]> git.lyx.org Git - features.git/blob - lib/doc/Additional.lyx
French Customization.lyx: compile fix
[features.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 false
131 \output_changes false
132 \html_math_output 0
133 \html_css_as_file 0
134 \html_be_strict true
135 \end_header
136
137 \begin_body
138
139 \begin_layout Title
140 Additional LyX Features
141 \end_layout
142
143 \begin_layout Author
144 by the LyX Team
145 \begin_inset Foot
146 status collapsed
147
148 \begin_layout Plain Layout
149 \noindent
150 Principal maintainer of this file is
151 \noun on
152  Richard Heck
153 \noun default
154 .
155  If you have comments or error corrections, please send them to the LyX
156  Documentation mailing list, 
157 \begin_inset Flex Code
158 status collapsed
159
160 \begin_layout Plain Layout
161 \noindent
162 <lyx-docs@lists.lyx.org>
163 \end_layout
164
165 \end_inset
166
167 .
168 \end_layout
169
170 \end_inset
171
172  
173 \end_layout
174
175 \begin_layout Standard
176 \begin_inset CommandInset toc
177 LatexCommand tableofcontents
178
179 \end_inset
180
181
182 \end_layout
183
184 \begin_layout Chapter
185 Introduction
186 \end_layout
187
188 \begin_layout Standard
189 This manual is essentially Part II of the 
190 \emph on
191 User's Guide\SpecialChar \@.
192
193 \emph default
194  The reason for separating this document out is simple: the 
195 \emph on
196 User's Guide
197 \emph default
198  is already quite lengthy, and it contains information on all of the basic
199  features one needs to know in order to prepare most documents.
200  However, the LyX Team has worked to make LyX extensible through various
201  configuration files and external packages.
202  That means that if you want to support the Fizzwizzle LaTeX package, you
203  can create a layout file (or module) for it without having to alter LyX
204  itself.
205  We've already had contributions of several new features this way, and some
206  of them are documented here.
207  There are also some more `advanced' features, such as how to control the
208  presentation of bibliographies and how to work with multi-part documents,
209  that are not covered in the 
210 \emph on
211 User's Guide
212 \emph default
213  and are discussed here.
214 \end_layout
215
216 \begin_layout Standard
217 This manual also documents some special features, like fax support, version
218  control, and SGML support, which require additional software to work properly.
219  There is also a chapter on LyX's support for HTML.
220  And lastly, there's a chapter of LaTeX tools and tips, things you can use
221  to spruce up your documents by directly using the powerful features of
222  LaTeX.
223  After all, LyX 
224 \emph on
225 is
226 \emph default
227  only WYSIWYM and will only ever interface to some, not all, LaTeX features.
228 \end_layout
229
230 \begin_layout Standard
231 If you haven't read the 
232 \emph on
233 Introduction
234 \emph default
235  yet, you are definitely in the wrong manual.
236  The 
237 \emph on
238 Introduction
239 \emph default
240  is the first place to go, since it describes the notation and format of
241  all of the manuals.
242  You should also be thoroughly familiar with the 
243 \emph on
244 User's Guide
245 \emph default
246  and all of the basic features of LyX before attempting to read this one.
247 \end_layout
248
249 \begin_layout Standard
250 Since many of the topics in this manual depend heavily on LyX's interaction
251  with LaTeX, this first chapter covers the inner workings of LyX and how
252  to direct LyX to generate exactly the LaTeX code you want.
253  It is obviously for more seasoned LyX users.
254 \end_layout
255
256 \begin_layout Chapter
257 LyX and LaTeX
258 \end_layout
259
260 \begin_layout Section
261 How LyX Uses LaTeX
262 \end_layout
263
264 \begin_layout Standard
265 This chapter is for both TeX-nicians and the LaTeX-curious.
266  In it, we'll explain how LyX and LaTeX work together to produce printable
267  output.
268  This is the only place in any of the manuals where we assume you know something
269  about LaTeX.
270 \end_layout
271
272 \begin_layout Standard
273 At one time, LyX was called a 
274 \begin_inset Quotes eld
275 \end_inset
276
277 WYSIWYM frontend to LaTeX,
278 \begin_inset Quotes erd
279 \end_inset
280
281  but that's no longer true.
282  There are frontends to LaTeX out there.
283 \begin_inset Foot
284 status collapsed
285
286 \begin_layout Plain Layout
287 Some familar ones are TeXmaker and kile, on Linux, and TeXshop, OSX.
288  There are also the LaTeX modes for vi and emacs, of course.
289 \end_layout
290
291 \end_inset
292
293  These are basically text editors with the ability to run LaTeX and mark
294  any errors in the file you're editing.
295  Although LyX 
296 \emph on
297 is
298 \emph default
299  an editor, and it 
300 \emph on
301 does
302 \emph default
303  run LaTeX, and it also indicates errors in the file, it also does much,
304  much more.
305  For one thing, you don't need to know LaTeX to use LyX effectively.
306  And LyX has added its own extensions to LaTeX.
307  Try the following sometime: select 
308 \begin_inset Flex MenuItem
309 status collapsed
310
311 \begin_layout Plain Layout
312 Export\SpecialChar \menuseparator
313 LaTeX
314 \end_layout
315
316 \end_inset
317
318  from the 
319 \begin_inset Flex MenuItem
320 status collapsed
321
322 \begin_layout Plain Layout
323 File
324 \end_layout
325
326 \end_inset
327
328  menu (or 
329 \begin_inset Flex MenuItem
330 status collapsed
331
332 \begin_layout Plain Layout
333 View\SpecialChar \menuseparator
334 Source
335 \end_layout
336
337 \end_inset
338
339 ), then look at the preamble of the resulting 
340 \begin_inset Flex Code
341 status collapsed
342
343 \begin_layout Plain Layout
344 .tex
345 \end_layout
346
347 \end_inset
348
349  file.
350  You'll notice a variety of new macros defined specifically by LyX.
351  These macros are defined automatically, according to the features you use
352  in the document.
353 \end_layout
354
355 \begin_layout Standard
356 There are several commands that automatically invoke LaTeX.
357  They are:
358 \end_layout
359
360 \begin_layout Itemize
361 \begin_inset Flex MenuItem
362 status collapsed
363
364 \begin_layout Plain Layout
365 View\SpecialChar \menuseparator
366 Format
367 \end_layout
368
369 \end_inset
370
371
372 \end_layout
373
374 \begin_layout Itemize
375 \begin_inset Flex MenuItem
376 status collapsed
377
378 \begin_layout Plain Layout
379 View\SpecialChar \menuseparator
380 Update\SpecialChar \menuseparator
381 Format
382 \end_layout
383
384 \end_inset
385
386
387 \end_layout
388
389 \begin_layout Itemize
390 \begin_inset Flex MenuItem
391 status collapsed
392
393 \begin_layout Plain Layout
394 File\SpecialChar \menuseparator
395 Print
396 \end_layout
397
398 \end_inset
399
400
401 \end_layout
402
403 \begin_layout Itemize
404 \begin_inset Flex MenuItem
405 status collapsed
406
407 \begin_layout Plain Layout
408 File\SpecialChar \menuseparator
409 Fax
410 \end_layout
411
412 \end_inset
413
414
415 \end_layout
416
417 \begin_layout Standard
418 They will only invoke LaTeX if the file has changed since the last time
419  LaTeX was run.
420  
421 \end_layout
422
423 \begin_layout Standard
424 When LyX runs LaTeX on the file you're editing, it performs these steps:
425 \end_layout
426
427 \begin_layout Enumerate
428 Convert the document to LaTeX and save to a file with the extension 
429 \begin_inset Flex Code
430 status collapsed
431
432 \begin_layout Plain Layout
433 .tex
434 \end_layout
435
436 \end_inset
437
438  in place of 
439 \begin_inset Flex Code
440 status collapsed
441
442 \begin_layout Plain Layout
443 .lyx
444 \end_layout
445
446 \end_inset
447
448 .
449 \end_layout
450
451 \begin_layout Enumerate
452 Run LaTeX on the 
453 \begin_inset Flex Code
454 status collapsed
455
456 \begin_layout Plain Layout
457 .tex
458 \end_layout
459
460 \end_inset
461
462  file (maybe several times), and run any other commands (such as 
463 \begin_inset Flex Code
464 status collapsed
465
466 \begin_layout Plain Layout
467 bibtex
468 \end_layout
469
470 \end_inset
471
472  or 
473 \begin_inset Flex Code
474 status collapsed
475
476 \begin_layout Plain Layout
477 makeindex
478 \end_layout
479
480 \end_inset
481
482 ) needed to compile the LaTeX file.
483 \end_layout
484
485 \begin_layout Enumerate
486 If there are any errors, show the error log.
487 \end_layout
488
489 \begin_layout Standard
490 If you've run LaTeX using 
491 \begin_inset Flex MenuItem
492 status collapsed
493
494 \begin_layout Plain Layout
495 View
496 \bar under
497 \SpecialChar \menuseparator
498
499 \bar default
500 DVI
501 \end_layout
502
503 \end_inset
504
505 , LyX then runs a DVI viewer to display the DVI-file.
506  If you've used 
507 \begin_inset Flex MenuItem
508 status collapsed
509
510 \begin_layout Plain Layout
511 View
512 \bar under
513 \SpecialChar \menuseparator
514
515 \bar default
516 PostScript
517 \end_layout
518
519 \end_inset
520
521 , LyX performs further steps:
522 \end_layout
523
524 \begin_layout Itemize
525 Run 
526 \begin_inset Flex Code
527 status collapsed
528
529 \begin_layout Plain Layout
530 dvips
531 \end_layout
532
533 \end_inset
534
535  to convert the DVI file to PostScript.
536 \end_layout
537
538 \begin_layout Itemize
539 Run a PostScript viewer, such as 
540 \begin_inset Flex Code
541 status collapsed
542
543 \begin_layout Plain Layout
544 ghostview
545 \end_layout
546
547 \end_inset
548
549 , to display the PostScript file.
550 \end_layout
551
552 \begin_layout Standard
553 LyX does similar things when viewing, or exporting, other formats.
554 \end_layout
555
556 \begin_layout Section
557 Translating LaTeX files into LyX
558 \end_layout
559
560 \begin_layout Standard
561 You can import a LaTeX file into LyX by using the 
562 \begin_inset Flex MenuItem
563 status collapsed
564
565 \begin_layout Plain Layout
566 File\SpecialChar \menuseparator
567 Import\SpecialChar \menuseparator
568 LaTeX
569 \end_layout
570
571 \end_inset
572
573  command in LyX.
574  This will call a program named 
575 \begin_inset Flex Code
576 status collapsed
577
578 \begin_layout Plain Layout
579 tex2lyx
580 \end_layout
581
582 \end_inset
583
584  which will create a file 
585 \begin_inset Flex Code
586 status collapsed
587
588 \begin_layout Plain Layout
589 foo.lyx
590 \end_layout
591
592 \end_inset
593
594  from the file 
595 \begin_inset Flex Code
596 status collapsed
597
598 \begin_layout Plain Layout
599 foo.tex
600 \end_layout
601
602 \end_inset
603
604 .
605  LyX will then open that file.
606 \begin_inset Foot
607 status collapsed
608
609 \begin_layout Plain Layout
610 \begin_inset Flex Code
611 status collapsed
612
613 \begin_layout Plain Layout
614 tex2lyx
615 \end_layout
616
617 \end_inset
618
619  can also be run from the command line, of course.
620 \end_layout
621
622 \end_inset
623
624
625 \end_layout
626
627 \begin_layout Standard
628 \begin_inset Flex Code
629 status collapsed
630
631 \begin_layout Plain Layout
632 tex2lyx
633 \end_layout
634
635 \end_inset
636
637  will translate most legal LaTeX, but not everything.
638  It will put things it doesn't understand into TeX code, so after translating
639  a file with 
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 tex2lyx
645 \end_layout
646
647 \end_inset
648
649 , you can look for TeX code and hand-edit it until it looks right.
650 \end_layout
651
652 \begin_layout Standard
653 If you don't know what TeX code is, read the next section.
654 \end_layout
655
656 \begin_layout Section
657 \begin_inset CommandInset label
658 LatexCommand label
659 name "sec:Inserting-TeX-Code"
660
661 \end_inset
662
663 Inserting TeX Code into LyX Documents 
664 \end_layout
665
666 \begin_layout Standard
667 Anything you can do in LaTeX you can do in LyX, for a very simple reason:
668  You can always insert TeX code into any LyX document.
669  LyX cannot, and will never be able to, display every possible LaTeX construct.
670  If ever you need to insert LaTeX commands into your LyX document, you can
671  use the 
672 \begin_inset Flex Code
673 status collapsed
674
675 \begin_layout Plain Layout
676 TeX Code
677 \end_layout
678
679 \end_inset
680
681  box, which you can insert into your document with 
682 \begin_inset Flex MenuItem
683 status collapsed
684
685 \begin_layout Plain Layout
686 Insert\SpecialChar \menuseparator
687 TeX Code
688 \end_layout
689
690 \end_inset
691
692 .
693 \end_layout
694
695 \begin_layout Standard
696 Here's an example of inserting LaTeX commands in a LyX document.
697  The code looks like this:
698 \end_layout
699
700 \begin_layout LyX-Code
701
702 \backslash
703 begin{tabular}{ll}
704 \begin_inset Newline newline
705 \end_inset
706
707
708 \backslash
709 begin{minipage}{5cm}
710 \begin_inset Newline newline
711 \end_inset
712
713 This is an example for a minipage environment.
714  You 
715 \begin_inset Newline newline
716 \end_inset
717
718 can put nearly everything in it, even (non-floating) 
719 \begin_inset Newline newline
720 \end_inset
721
722 figures and tables.
723  
724 \begin_inset Newline newline
725 \end_inset
726
727
728 \backslash
729 end{minipage}
730 \begin_inset Newline newline
731 \end_inset
732
733 &
734 \begin_inset Newline newline
735 \end_inset
736
737
738 \backslash
739 begin{minipage}{5cm}
740 \begin_inset Newline newline
741 \end_inset
742
743
744 \backslash
745 begin{verbatim}
746 \begin_inset Newline newline
747 \end_inset
748
749
750 \backslash
751 begin{minipage}{5cm}
752 \begin_inset Newline newline
753 \end_inset
754
755 This ...
756  
757 \begin_inset Newline newline
758 \end_inset
759
760
761 \backslash
762 end{minipage}
763 \begin_inset Newline newline
764 \end_inset
765
766
767 \backslash
768 end{verbatim}
769 \begin_inset Newline newline
770 \end_inset
771
772
773 \backslash
774 end{minipage}
775 \begin_inset Newline newline
776 \end_inset
777
778
779 \backslash
780 end{tabular}
781 \end_layout
782
783 \begin_layout LyX-Code
784
785 \end_layout
786
787 \begin_layout Standard
788 The 
789 \begin_inset Flex Code
790 status collapsed
791
792 \begin_layout Plain Layout
793 TeX Code
794 \end_layout
795
796 \end_inset
797
798  box containing this text is directly after this paragraph.
799  Those of you reading the manual in LyX will only see the TeX code inset.
800  Those reading a printed version of the manuals will see the actual results:
801 \end_layout
802
803 \begin_layout Standard
804 \begin_inset ERT
805 status collapsed
806
807 \begin_layout Plain Layout
808
809
810 \backslash
811 begin{tabular}{ll}
812 \end_layout
813
814 \begin_layout Plain Layout
815
816
817 \backslash
818 begin{minipage}{5cm}
819 \end_layout
820
821 \begin_layout Plain Layout
822
823 This is an example for a minipage environment.
824  You can put nearly everything in it, even (non-floating) figures and tables.
825  
826 \end_layout
827
828 \begin_layout Plain Layout
829
830
831 \backslash
832 end{minipage}
833 \end_layout
834
835 \begin_layout Plain Layout
836
837 &
838 \end_layout
839
840 \begin_layout Plain Layout
841
842
843 \backslash
844 begin{minipage}{5cm}
845 \end_layout
846
847 \begin_layout Plain Layout
848
849
850 \backslash
851 begin{verbatim}
852 \end_layout
853
854 \begin_layout Plain Layout
855
856
857 \backslash
858 begin{minipage}{5cm}
859 \end_layout
860
861 \begin_layout Plain Layout
862
863 This ...
864  
865 \end_layout
866
867 \begin_layout Plain Layout
868
869
870 \backslash
871 end{minipage}
872 \end_layout
873
874 \begin_layout Plain Layout
875
876
877 \backslash
878 end{verbatim}
879 \end_layout
880
881 \begin_layout Plain Layout
882
883
884 \backslash
885 end{minipage}
886 \end_layout
887
888 \begin_layout Plain Layout
889
890
891 \backslash
892 end{tabular}
893 \end_layout
894
895 \end_inset
896
897
898 \end_layout
899
900 \begin_layout Standard
901 In addition to using TeX code, you can also create a separate file containing
902  some complex LaTeX structure and then use 
903 \begin_inset Flex MenuItem
904 status collapsed
905
906 \begin_layout Plain Layout
907 Insert\SpecialChar \menuseparator
908 Child
909 \begin_inset space ~
910 \end_inset
911
912 Document
913 \end_layout
914
915 \end_inset
916
917  to include your file (you should select the type 
918 \begin_inset Flex Code
919 status collapsed
920
921 \begin_layout Plain Layout
922 Input
923 \end_layout
924
925 \end_inset
926
927 ).
928  We recommend that you only do this if you have a 
929 \begin_inset Flex Code
930 status collapsed
931
932 \begin_layout Plain Layout
933 .tex
934 \end_layout
935
936 \end_inset
937
938  file which you 
939 \emph on
940 know
941 \emph default
942  works already.
943  Otherwise, you'll have a big job tracking down LaTeX errors.
944 \end_layout
945
946 \begin_layout Standard
947 There are a few last points to emphasize:
948 \end_layout
949
950 \begin_layout Itemize
951 LyX 
952 \emph on
953 does not
954 \emph default
955  check if your LaTeX code is correct.
956 \end_layout
957
958 \begin_layout Itemize
959 Beware reinventing the wheel.
960 \end_layout
961
962 \begin_layout Standard
963 On that last point, LyX does have quite a few features tucked into it, and
964  more are coming.
965  Be sure to check the manuals to make sure that LyX doesn't have such-and-such
966  feature before you decide you have to do it by hand.
967  Moreover, there are numerous LaTeX packages out there to do all sorts of
968  things, from labels to envelopes to fancy multipage tables.
969  Check out 
970 \begin_inset CommandInset href
971 LatexCommand href
972 name "CTAN"
973 target "http://www.ctan.org/"
974
975 \end_inset
976
977  for details, and see chapter 
978 \begin_inset CommandInset ref
979 LatexCommand ref
980 reference "cha:secrets"
981
982 \end_inset
983
984 .
985 \end_layout
986
987 \begin_layout Standard
988 If you do need to do some wild and fancy things within your document, be
989  sure to check out a good LaTeX book for assistance.
990  There are a number of them listed in the bibliography of the 
991 \emph on
992 User's Guide
993 \emph default
994 .
995 \end_layout
996
997 \begin_layout Section
998 LyX and the LaTeX Preamble
999 \end_layout
1000
1001 \begin_layout Subsection
1002 About the LaTeX Preamble
1003 \end_layout
1004
1005 \begin_layout Standard
1006 If you already know LaTeX, there is no need to explain here what the preamble
1007  is good for.
1008  If you don't, the following will give you some ideas—we recommend again
1009  that you consult a LaTeX book for further information.
1010  In any case, you should read the points below, because they explain what
1011  you can do and what you don't need to do in the LaTeX preamble of a LyX
1012  document.
1013 \end_layout
1014
1015 \begin_layout Standard
1016 The LaTeX preamble comes at the very beginning of a document, 
1017 \emph on
1018 before
1019 \emph default
1020  the text.
1021  It serves to:
1022 \end_layout
1023
1024 \begin_layout Itemize
1025 Declare the document class.
1026  
1027 \begin_inset Newline newline
1028 \end_inset
1029
1030 LyX already does this for you.
1031  If you're a seasoned LaTeX-nician, and you have a custom document class
1032  you want to use, check out the 
1033 \emph on
1034 Customization Manual
1035 \emph default
1036  for information on how to make LyX interface to it.
1037 \end_layout
1038
1039 \begin_layout Itemize
1040 Declare the usage of packages.
1041  
1042 \begin_inset Newline newline
1043 \end_inset
1044
1045 LaTeX packages provide special commands, which are only available within
1046  a document when the package has been declared in the preamble.
1047  For example, the package 
1048 \begin_inset Flex Code
1049 status collapsed
1050
1051 \begin_layout Plain Layout
1052 indentfirst
1053 \end_layout
1054
1055 \end_inset
1056
1057  forces all paragraphs to be indented.
1058  There are other packages for labels, envelopes, margins, etc.
1059  
1060 \end_layout
1061
1062 \begin_layout Itemize
1063 Set counters, variables, lengths and widths.
1064  
1065 \begin_inset Newline newline
1066 \end_inset
1067
1068 There are several LaTeX counters and variables which 
1069 \emph on
1070 must
1071 \emph default
1072  be set globally from within the preamble in order to have the desired effect.
1073  (There are variables which you can set and reset inside the document, too.)
1074  Margins are a good example of something which must be set in the preamble.
1075  Another example is the label format for lists.
1076  You can actually set these just about anywhere, but it's best to do it
1077  just once, inside the preamble.
1078 \end_layout
1079
1080 \begin_layout Itemize
1081 Declare user defined commands (with 
1082 \begin_inset Flex Code
1083 status collapsed
1084
1085 \begin_layout Plain Layout
1086
1087 \backslash
1088 newcommand
1089 \end_layout
1090
1091 \end_inset
1092
1093  or 
1094 \begin_inset Flex Code
1095 status collapsed
1096
1097 \begin_layout Plain Layout
1098
1099 \backslash
1100 renewcommand
1101 \end_layout
1102
1103 \end_inset
1104
1105 ).
1106 \begin_inset Newline newline
1107 \end_inset
1108
1109 These are abbreviations for LaTeX commands which appear very often inside
1110  a document.
1111  Although the preamble is a good place to declare such commands, they 
1112 \emph on
1113 can
1114 \emph default
1115  be declared anywhere (before they are used for the first time, of course).
1116  This can be useful if there is a lot of raw LaTeX code in your document,
1117  which normally should not be the case.
1118 \end_layout
1119
1120 \begin_layout Standard
1121 LyX adds its own set of definitions to the preamble of the 
1122 \begin_inset Flex Code
1123 status collapsed
1124
1125 \begin_layout Plain Layout
1126 .tex
1127 \end_layout
1128
1129 \end_inset
1130
1131  file it produces.
1132  This makes LaTeX files generated by LyX portable.
1133 \end_layout
1134
1135 \begin_layout Subsection
1136 Changing the Preamble
1137 \end_layout
1138
1139 \begin_layout Standard
1140 The commands which LyX adds to the preamble of a LaTeX file are fixed; you
1141  can't change them without patching LyX itself.
1142  You can, however, add your own stuff to the preamble by selecting 
1143 \begin_inset Flex MenuItem
1144 status collapsed
1145
1146 \begin_layout Plain Layout
1147 LaTeX
1148 \begin_inset space ~
1149 \end_inset
1150
1151 Preamble
1152 \end_layout
1153
1154 \end_inset
1155
1156  in the 
1157 \begin_inset Flex MenuItem
1158 status collapsed
1159
1160 \begin_layout Plain Layout
1161 Document\SpecialChar \menuseparator
1162 Settings
1163 \end_layout
1164
1165 \end_inset
1166
1167  dialog.
1168  LyX adds anything in the 
1169 \begin_inset Flex MenuItem
1170 status collapsed
1171
1172 \begin_layout Plain Layout
1173 Preamble
1174 \end_layout
1175
1176 \end_inset
1177
1178  dialog to its own built-in preamble.
1179  Before adding your own declarations in the preamble, you should make sure
1180  that LyX doesn't already support what you want to do.
1181  (Remember what we said about reinventing the wheel?) Also, 
1182 \emph on
1183 make sure your preamble code is correct
1184 \emph default
1185 .
1186  LyX doesn't check it for you.
1187  If there is an error, you're likely to get an error like 
1188 \begin_inset Quotes eld
1189 \end_inset
1190
1191
1192 \begin_inset Flex Code
1193 status collapsed
1194
1195 \begin_layout Plain Layout
1196 Missing 
1197 \backslash
1198 begin{document}
1199 \end_layout
1200
1201 \end_inset
1202
1203
1204 \begin_inset Quotes erd
1205 \end_inset
1206
1207 .
1208  If you see this error, check your preamble.
1209 \end_layout
1210
1211 \begin_layout Subsection
1212 Examples
1213 \end_layout
1214
1215 \begin_layout Standard
1216 Here are some examples of what you can add to a preamble, and what they
1217  do.
1218 \end_layout
1219
1220 \begin_layout Subsubsection
1221 Example #1: Offsets
1222 \end_layout
1223
1224 \begin_layout Standard
1225 There are two variables under LaTeX that control page position: 
1226 \begin_inset Flex Code
1227 status collapsed
1228
1229 \begin_layout Plain Layout
1230
1231 \backslash
1232 hoffset
1233 \end_layout
1234
1235 \end_inset
1236
1237  and 
1238 \begin_inset Flex Code
1239 status collapsed
1240
1241 \begin_layout Plain Layout
1242
1243 \backslash
1244 voffset
1245 \end_layout
1246
1247 \end_inset
1248
1249 .
1250  Their names should be self-explanatory.
1251  These variables are useful if you think for a moment about computer labels.
1252  Sometimes, the size of a print medium and the area of the medium that you
1253  can actually print on aren't the same.
1254  This is where 
1255 \begin_inset Flex Code
1256 status collapsed
1257
1258 \begin_layout Plain Layout
1259
1260 \backslash
1261 hoffset
1262 \end_layout
1263
1264 \end_inset
1265
1266  and 
1267 \begin_inset Flex Code
1268 status collapsed
1269
1270 \begin_layout Plain Layout
1271
1272 \backslash
1273 voffset
1274 \end_layout
1275
1276 \end_inset
1277
1278  come in.
1279 \end_layout
1280
1281 \begin_layout Standard
1282 The default values for 
1283 \begin_inset Flex Code
1284 status collapsed
1285
1286 \begin_layout Plain Layout
1287
1288 \backslash
1289 hoffset
1290 \end_layout
1291
1292 \end_inset
1293
1294  and 
1295 \begin_inset Flex Code
1296 status collapsed
1297
1298 \begin_layout Plain Layout
1299
1300 \backslash
1301 voffset
1302 \end_layout
1303
1304 \end_inset
1305
1306  are both 0
1307 \begin_inset space \thinspace{}
1308 \end_inset
1309
1310 points, i.
1311 \begin_inset space \thinspace{}
1312 \end_inset
1313
1314 e.
1315 \begin_inset space \space{}
1316 \end_inset
1317
1318 the page isn't shifted.
1319  Unfortunately, some DVI drivers always seem to shift the page.
1320  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1321  If you're using LyX on a system that you don't personally maintain, and
1322  your sysadmin is a doofus, 
1323 \begin_inset Flex Code
1324 status collapsed
1325
1326 \begin_layout Plain Layout
1327
1328 \backslash
1329 hoffset
1330 \end_layout
1331
1332 \end_inset
1333
1334  and 
1335 \begin_inset Flex Code
1336 status collapsed
1337
1338 \begin_layout Plain Layout
1339
1340 \backslash
1341 voffset
1342 \end_layout
1343
1344 \end_inset
1345
1346  can save the day.
1347  Suppose your left and top margins are always 0.5
1348 \begin_inset space \thinspace{}
1349 \end_inset
1350
1351 inches too big.
1352  You can add this to the preamble:
1353 \end_layout
1354
1355 \begin_layout LyX-Code
1356
1357 \backslash
1358 setlength{
1359 \backslash
1360 hoffset}{-0.5 in}
1361 \end_layout
1362
1363 \begin_layout LyX-Code
1364
1365 \backslash
1366 setlength{
1367 \backslash
1368 voffset}{-0.5 in}
1369 \end_layout
1370
1371 \begin_layout Standard
1372 and your margins should now be correct.
1373 \end_layout
1374
1375 \begin_layout Subsubsection
1376 Example #2: Labels
1377 \end_layout
1378
1379 \begin_layout Standard
1380 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1381  There's a rather nice package, available at your nearest CTAN archive,
1382  for printing sheets of labels: 
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387 labels.sty
1388 \end_layout
1389
1390 \end_inset
1391
1392 .
1393  Now, your system may not have this package installed by default.
1394  We leave that up to you to check.
1395  You'll also want to read the documentation for it; we're not going to do
1396  that for you.
1397  Since this is an example, however, we'll give you an example of how you
1398  use this package.
1399 \end_layout
1400
1401 \begin_layout Standard
1402 First, make sure you're using the 
1403 \begin_inset Flex Code
1404 status collapsed
1405
1406 \begin_layout Plain Layout
1407 article
1408 \end_layout
1409
1410 \end_inset
1411
1412  document class.
1413  Next, you need to put the following in your preamble:
1414 \end_layout
1415
1416 \begin_layout LyX-Code
1417
1418 \backslash
1419 usepackage{labels}
1420 \end_layout
1421
1422 \begin_layout LyX-Code
1423
1424 \backslash
1425 LabelCols=3
1426 \end_layout
1427
1428 \begin_layout LyX-Code
1429
1430 \backslash
1431 LabelRows=7
1432 \end_layout
1433
1434 \begin_layout LyX-Code
1435
1436 \backslash
1437 LeftBorder=8mm
1438 \end_layout
1439
1440 \begin_layout LyX-Code
1441
1442 \backslash
1443 RightBorder=8mm
1444 \end_layout
1445
1446 \begin_layout LyX-Code
1447
1448 \backslash
1449 TopBorder=9mm
1450 \end_layout
1451
1452 \begin_layout LyX-Code
1453
1454 \backslash
1455 BottomBorder=2mm
1456 \end_layout
1457
1458 \begin_layout Standard
1459 This sets things up for Avery label sheets, stock #5360.
1460  You're now ready to print labels, but you'll need to insert LaTeX code,
1461  placing the commands 
1462 \begin_inset Flex Code
1463 status collapsed
1464
1465 \begin_layout Plain Layout
1466
1467 \backslash
1468 begin{labels}
1469 \end_layout
1470
1471 \end_inset
1472
1473  and 
1474 \begin_inset Flex Code
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478
1479 \backslash
1480 end{labels}
1481 \end_layout
1482
1483 \end_inset
1484
1485  around each label text.
1486  This and other special features of 
1487 \begin_inset Flex Code
1488 status collapsed
1489
1490 \begin_layout Plain Layout
1491 labels.sty
1492 \end_layout
1493
1494 \end_inset
1495
1496  are explained in its documentation.
1497 \end_layout
1498
1499 \begin_layout Standard
1500 Someday, someone may write a LyX layout file to support this package directly.
1501  Maybe that someone is you.
1502 \end_layout
1503
1504 \begin_layout Subsubsection
1505 Example #3: Paragraph Indentation
1506 \end_layout
1507
1508 \begin_layout Standard
1509 Americans are trained to indent the first line of 
1510 \emph on
1511 every
1512 \emph default
1513  paragraph.
1514  As with all of their other weird quirks, most Americans will whine and
1515  moan until they can have their way and indent the first line of all paragraphs.
1516  (Yes, we're joking.
1517  (We are?) 
1518 \emph on
1519 Yeah
1520 \emph default
1521 , we are.)
1522 \end_layout
1523
1524 \begin_layout Standard
1525 Of course, this behavior isn't standard typography.
1526  In books, you typically only indent the first line of a paragraph 
1527 \emph on
1528 if
1529 \emph default
1530  it follows another one.
1531  The idea behind indenting the first line of a paragraph is to distinguish
1532  neighboring paragraphs from one another.
1533  If there is no previous paragraph—for example, if it follows a figure or
1534  is the first paragraph in a section—then there is no need for indentation.
1535  
1536 \end_layout
1537
1538 \begin_layout Standard
1539 If you're a typical American (we're still joking!), though, you don't care
1540  about such esoteric things; you want your indentation! Add this to the
1541  preamble:
1542 \end_layout
1543
1544 \begin_layout LyX-Code
1545
1546 \backslash
1547 usepackage{indentfirst}
1548 \end_layout
1549
1550 \begin_layout Standard
1551 If your TeX distribution isn't braindead, you'll have this package, and
1552  all of your paragraphs will get the indentation the Founding Fathers intended
1553  they should have.
1554 \end_layout
1555
1556 \begin_layout Subsubsection
1557 Example #4: This Document
1558 \end_layout
1559
1560 \begin_layout Standard
1561 You can also check out the preamble of this document to get an idea of some
1562  of the advanced things you can do.
1563  Also, there are more examples and an assortment of LaTeX 
1564 \begin_inset Quotes eld
1565 \end_inset
1566
1567 dirty tricks
1568 \begin_inset Quotes erd
1569 \end_inset
1570
1571  given in Chapter
1572 \begin_inset space ~
1573 \end_inset
1574
1575
1576 \begin_inset CommandInset ref
1577 LatexCommand ref
1578 reference "cha:secrets"
1579
1580 \end_inset
1581
1582 .
1583  
1584 \end_layout
1585
1586 \begin_layout Section
1587 LyX and LaTeX Errors
1588 \end_layout
1589
1590 \begin_layout Standard
1591 When LyX calls LaTeX, it tells LaTeX to blithely ignore any errors and keep
1592  going.
1593  It then uses the logfile from the LaTeX run to do a post-mortem.
1594  After analyzing the logfile,LyX displays a dialog listing the errors.
1595  Clicking on any one of them will take you to the position in your LyX file
1596  where the error occurred.
1597 \begin_inset Foot
1598 status collapsed
1599
1600 \begin_layout Plain Layout
1601 Well, usually.
1602  Analyzing the logfile is a tough job, and LyX doesn't always go to the
1603  right line.
1604  There are also cases where LaTeX reports the error on one line, but the
1605  actual error is earlier.
1606  This is not unlike forgetting a closing brace in a program: You'll get
1607  an error, but only later.
1608 \end_layout
1609
1610 \end_inset
1611
1612
1613 \end_layout
1614
1615 \begin_layout Standard
1616 Some folks also like to look at the log file directly: It is available from
1617  
1618 \begin_inset Flex MenuItem
1619 status collapsed
1620
1621 \begin_layout Plain Layout
1622 Document
1623 \bar under
1624 \SpecialChar \menuseparator
1625
1626 \bar default
1627 Latex
1628 \begin_inset space ~
1629 \end_inset
1630
1631 Log
1632 \end_layout
1633
1634 \end_inset
1635
1636 .
1637  There are some fairly common error messages and warnings.
1638  We'll cover those here.
1639  You should look at a good LaTeX book for a complete listing.
1640 \end_layout
1641
1642 \begin_layout Itemize
1643 \begin_inset Flex Code
1644 status collapsed
1645
1646 \begin_layout Plain Layout
1647 LaTeX Warning
1648 \end_layout
1649
1650 \end_inset
1651
1652
1653 \begin_inset Newline newline
1654 \end_inset
1655
1656 Anything beginning with these words is a warning message for the purpose
1657  of 
1658 \begin_inset Quotes eld
1659 \end_inset
1660
1661 debugging
1662 \begin_inset Quotes erd
1663 \end_inset
1664
1665  the LaTeX code itself.
1666  You'll get messages like this if you added or changed cross-references
1667  or bibliography entries, in which case, LaTeX is trying to tell you that
1668  you need to make another run.
1669  You can by-and-large ignore these.
1670 \end_layout
1671
1672 \begin_layout Itemize
1673 \begin_inset Flex Code
1674 status collapsed
1675
1676 \begin_layout Plain Layout
1677 LaTeX Font Warning
1678 \end_layout
1679
1680 \end_inset
1681
1682
1683 \begin_inset Newline newline
1684 \end_inset
1685
1686 Another warning message, this time about fonts which LaTeX couldn't find.
1687  The rest of the message will often say something about a replacement font
1688  that LaTeX used.
1689  You can safely ignore these, too.
1690 \end_layout
1691
1692 \begin_layout Itemize
1693 \begin_inset Flex Code
1694 status collapsed
1695
1696 \begin_layout Plain Layout
1697 Overfull 
1698 \backslash
1699 hbox
1700 \end_layout
1701
1702 \end_inset
1703
1704
1705 \begin_inset Newline newline
1706 \end_inset
1707
1708 LaTeX absolutely 
1709 \emph on
1710 loves
1711 \emph default
1712  to spew these out.
1713  They are warnings about lines that were too long and run past the right
1714  margin.
1715  Almost always, this is unnoticeable in the final output.
1716  (It can be just a point or two.) Or, only one or two characters extend past
1717  the margin.
1718  LaTeX seems to generate at least one of these messages for just about any
1719  document you write.
1720 \begin_inset Newline newline
1721 \end_inset
1722
1723 You can ignore these messages.
1724  Your eyes will tell you if there's a problem with something that's too
1725  wide; just look at the output.
1726 \begin_inset Foot
1727 status collapsed
1728
1729 \begin_layout Plain Layout
1730 You can also enable the `draft' option in 
1731 \begin_inset Flex MenuItem
1732 status collapsed
1733
1734 \begin_layout Plain Layout
1735 Document
1736 \bar under
1737 \SpecialChar \menuseparator
1738
1739 \bar default
1740 Settings
1741 \end_layout
1742
1743 \end_inset
1744
1745 , and then LaTeX will draw a black box in the margin of lines that are overfull.
1746 \end_layout
1747
1748 \end_inset
1749
1750
1751 \end_layout
1752
1753 \begin_layout Itemize
1754 \begin_inset Flex Code
1755 status collapsed
1756
1757 \begin_layout Plain Layout
1758 Underfull 
1759 \backslash
1760 hbox
1761 \end_layout
1762
1763 \end_inset
1764
1765
1766 \begin_inset Newline newline
1767 \end_inset
1768
1769 Not quite as common as its cousin.
1770  LaTeX seems to like to print lines that are a bit too wide as opposed to
1771  ones that are a bit too narrow.
1772  We have no idea why.
1773 \end_layout
1774
1775 \begin_layout Itemize
1776 \begin_inset Flex Code
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780 Overfull 
1781 \backslash
1782 vbox
1783 \end_layout
1784
1785 \end_inset
1786
1787  and 
1788 \begin_inset Flex Code
1789 status collapsed
1790
1791 \begin_layout Plain Layout
1792 Underfull 
1793 \backslash
1794 vbox
1795 \end_layout
1796
1797 \end_inset
1798
1799
1800 \begin_inset Newline newline
1801 \end_inset
1802
1803 Warnings about troubles breaking the page.
1804  Once again, just look at the output.
1805  Your eyes will tell you where something has gone wrong.
1806 \end_layout
1807
1808 \begin_layout Itemize
1809 \begin_inset Flex Code
1810 status collapsed
1811
1812 \begin_layout Plain Layout
1813  LaTeX Error: File 
1814 \begin_inset Quotes els
1815 \end_inset
1816
1817 Xxxx
1818 \begin_inset Quotes ers
1819 \end_inset
1820
1821  not found
1822 \end_layout
1823
1824 \end_inset
1825
1826
1827 \begin_inset Newline newline
1828 \end_inset
1829
1830 The file 
1831 \begin_inset Quotes eld
1832 \end_inset
1833
1834 Xxxx
1835 \begin_inset Quotes erd
1836 \end_inset
1837
1838  isn't installed on this system.
1839  This usually appears because some package your document needs isn't installed.
1840  If you didn't touch the preamble or didn't use the 
1841 \begin_inset Flex Code
1842 status collapsed
1843
1844 \begin_layout Plain Layout
1845
1846 \backslash
1847 usepackage{}
1848 \end_layout
1849
1850 \end_inset
1851
1852  command, then one of the packages LyX tried to load is missing.
1853  Use 
1854 \begin_inset Flex MenuItem
1855 status collapsed
1856
1857 \begin_layout Plain Layout
1858 Help\SpecialChar \menuseparator
1859 LaTeX Configuration
1860 \end_layout
1861
1862 \end_inset
1863
1864  to get a list of packages that LyX knows about.
1865  This file is updated whenever you reconfigure LyX (using 
1866 \begin_inset Flex MenuItem
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 Tools\SpecialChar \menuseparator
1871 Reconfigure
1872 \end_layout
1873
1874 \end_inset
1875
1876 ) and tells you which packages have been detected and what they do.
1877 \begin_inset Newline newline
1878 \end_inset
1879
1880 If you did use the 
1881 \begin_inset Flex Code
1882 status collapsed
1883
1884 \begin_layout Plain Layout
1885
1886 \backslash
1887 usepackage{}
1888 \end_layout
1889
1890 \end_inset
1891
1892  command and the package in question isn't installed, then you'll need to
1893  install it yourself.
1894 \end_layout
1895
1896 \begin_layout Itemize
1897 \begin_inset Flex Code
1898 status collapsed
1899
1900 \begin_layout Plain Layout
1901 LaTeX Error: Unknown option
1902 \end_layout
1903
1904 \end_inset
1905
1906
1907 \begin_inset Newline newline
1908 \end_inset
1909
1910 Error messages beginning with this are trying to tell you that you specified
1911  a bad or undefined option to a package.
1912  Check the package's documentation.
1913 \end_layout
1914
1915 \begin_layout Itemize
1916 \begin_inset Flex Code
1917 status collapsed
1918
1919 \begin_layout Plain Layout
1920 Undefined control sequence
1921 \end_layout
1922
1923 \end_inset
1924
1925
1926 \begin_inset Newline newline
1927 \end_inset
1928
1929 If you've inserted LaTeX code into your document, but made a typo, you'll
1930  get one of these.
1931  You may have forgotten to load a package.
1932  In any case, this error message usually means that you used an undefined
1933  command.
1934  
1935 \end_layout
1936
1937 \begin_layout Standard
1938 There are other error and warning messages.
1939  Some are self-explanatory.
1940  These are usually LaTeX messages.
1941  Others are downright cryptic.
1942  These are usually TeX error messages, and we really have 
1943 \emph on
1944 no clue
1945 \emph default
1946  what they mean or how to decipher them.
1947  No-one does.
1948 \end_layout
1949
1950 \begin_layout Standard
1951 There's a general sequence you should follow if you get error messages:
1952 \end_layout
1953
1954 \begin_layout Enumerate
1955 Look at the LaTeX code you inserted for typos.
1956 \end_layout
1957
1958 \begin_layout Enumerate
1959 If there are no typos, check that you used the command(s) correctly.
1960 \end_layout
1961
1962 \begin_layout Enumerate
1963 If you get a bunch of error boxes piled up at the very top of the document—and
1964  especially if you see a 
1965 \begin_inset Quotes eld
1966 \end_inset
1967
1968
1969 \begin_inset Flex Code
1970 status collapsed
1971
1972 \begin_layout Plain Layout
1973 Missing 
1974 \backslash
1975 begin{document}
1976 \end_layout
1977
1978 \end_inset
1979
1980
1981 \begin_inset Quotes erd
1982 \end_inset
1983
1984  error—it means that there are errors in the preamble.
1985  Start debugging your preamble.
1986 \end_layout
1987
1988 \begin_layout Enumerate
1989 If you didn't add anything to the preamble and didn't add any LaTeX code
1990  to the document, the first suspect is your LaTeX distribution itself.
1991  Check for missing packages and install them.
1992 \end_layout
1993
1994 \begin_layout Enumerate
1995 Okay, so there are no missing packages.
1996  Did you use any of the fine-tuning options in LyX? Specifically, did you
1997  
1998 \emph on
1999 misuse
2000 \emph default
2001  any of them, like trying to manually insert lots of 
2002 \begin_inset Flex Code
2003 status collapsed
2004
2005 \begin_layout Plain Layout
2006 Protected
2007 \begin_inset space ~
2008 \end_inset
2009
2010 Blanks
2011 \end_layout
2012
2013 \end_inset
2014
2015
2016 \begin_inset Flex Code
2017 status collapsed
2018
2019 \begin_layout Plain Layout
2020 Linebreaks
2021 \end_layout
2022
2023 \end_inset
2024
2025 , or 
2026 \begin_inset Flex Code
2027 status collapsed
2028
2029 \begin_layout Plain Layout
2030 Pagebreaks
2031 \end_layout
2032
2033 \end_inset
2034
2035 ? Did you try to kludge something together with these instead of using the
2036  appropriate paragraph environment?
2037 \end_layout
2038
2039 \begin_layout Enumerate
2040 All right, you didn't use any of the fine-tuning options, you played by
2041  the rules.
2042  Did you try to pull a fancy maneuver? Did you do something funky inside
2043  a table or an equation, like inserting a graphic into a table cell?
2044 \end_layout
2045
2046 \begin_layout Enumerate
2047 Do you have long sections of text where LaTeX cannot find a place to break
2048  a line? By default, LaTeX is rather strict about how much extra inter-word
2049  spacing it will add in order to break a line.
2050  Preferably, you should rework the paragraph to avoid the problem.
2051  If this isn't an option, you can wrap your text in 
2052 \begin_inset Flex Code
2053 status collapsed
2054
2055 \begin_layout Plain Layout
2056
2057 \backslash
2058 sloppypar
2059 \end_layout
2060
2061 \end_inset
2062
2063  to make LaTeX's line breaking more, well, sloppy.
2064 \end_layout
2065
2066 \begin_layout Enumerate
2067 Did you go overboard with the nesting? LyX (currently) doesn't check to
2068  make sure you're in the limits for nesting environments.
2069  If you nested a bunch of environments to the 
2070 \begin_inset Formula $17^{\mathrm{th}}$
2071 \end_inset
2072
2073  level, that's the problem.
2074  (The limit in LaTeX is five.)
2075 \end_layout
2076
2077 \begin_layout Enumerate
2078 Okay, you didn't get any error messages, but your output looks awful.
2079  If you have a table or figure that's too wide or long for the page, you
2080  need to:
2081 \end_layout
2082
2083 \begin_deeper
2084 \begin_layout Enumerate
2085 rescale the figure so it fits.
2086 \end_layout
2087
2088 \begin_layout Enumerate
2089 trim down the table so it fits.
2090 \end_layout
2091
2092 \end_deeper
2093 \begin_layout Enumerate
2094 If something else is wrong with the output, and you didn't try to pull anything
2095  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2096 \end_layout
2097
2098 \begin_layout Standard
2099 If all this doesn't help—well, then 
2100 \emph on
2101 perhaps
2102 \emph default
2103  you might have found a bug in LyX\SpecialChar \ldots{}
2104 .
2105 \end_layout
2106
2107 \begin_layout Chapter
2108 Supplemental Tools
2109 \end_layout
2110
2111 \begin_layout Section
2112 Customizing Bibliographies with BibTeX
2113 \end_layout
2114
2115 \begin_layout Standard
2116 The most basic information about how to use BibTeX with LyX is contained
2117  in the section 
2118 \emph on
2119 Bibliography databases (BibTeX)
2120 \emph default
2121  of the 
2122 \emph on
2123 User's Guide
2124 \emph default
2125 .
2126  The following subsections explain special bibliography features supported
2127  by LyX.
2128 \end_layout
2129
2130 \begin_layout Subsection
2131 Alternative Citation Styles
2132 \end_layout
2133
2134 \begin_layout Standard
2135 Standard BibTeX uses numbers (e.
2136 \begin_inset space \thinspace{}
2137 \end_inset
2138
2139 g.
2140 \begin_inset space \space{}
2141 \end_inset
2142
2143
2144 \begin_inset Quotes eld
2145 \end_inset
2146
2147 [12]
2148 \begin_inset Quotes erd
2149 \end_inset
2150
2151 ) to refer to a cited work.
2152  However, in many scientific disciplines, other citation styles are in use.
2153  The most common one is the author-year style (e.
2154 \begin_inset space \thinspace{}
2155 \end_inset
2156
2157 g.
2158 \begin_inset space \space{}
2159 \end_inset
2160
2161
2162 \begin_inset Quotes eld
2163 \end_inset
2164
2165 Knuth 1984a
2166 \begin_inset Quotes erd
2167 \end_inset
2168
2169 ).
2170  LyX supports two packages that provide this style, 
2171 \begin_inset Flex Code
2172 status collapsed
2173
2174 \begin_layout Plain Layout
2175 natbib
2176 \end_layout
2177
2178 \end_inset
2179
2180  and 
2181 \begin_inset Flex Code
2182 status collapsed
2183
2184 \begin_layout Plain Layout
2185 jurabib
2186 \end_layout
2187
2188 \end_inset
2189
2190 .
2191  Both packages have their pros and cons, which cannot be listed in detail.
2192  If you only want to have simple author-year (or author-numerical) style,
2193  or if you want to use one of the countless style files for 
2194 \begin_inset Flex Code
2195 status collapsed
2196
2197 \begin_layout Plain Layout
2198 natbib
2199 \end_layout
2200
2201 \end_inset
2202
2203 , than the established 
2204 \begin_inset Flex Code
2205 status collapsed
2206
2207 \begin_layout Plain Layout
2208 natbib
2209 \end_layout
2210
2211 \end_inset
2212
2213  package is probably your choice.
2214  If you need special features like short title references, ibidem etc., you
2215  might consider the 
2216 \begin_inset Flex Code
2217 status collapsed
2218
2219 \begin_layout Plain Layout
2220 jurabib
2221 \end_layout
2222
2223 \end_inset
2224
2225  package.
2226 \end_layout
2227
2228 \begin_layout Standard
2229 The handling of both packages in LyX is basically the same.
2230  Go to 
2231 \begin_inset Flex MenuItem
2232 status collapsed
2233
2234 \begin_layout Plain Layout
2235 Document\SpecialChar \menuseparator
2236 Settings
2237 \end_layout
2238
2239 \end_inset
2240
2241  and select under 
2242 \begin_inset Flex MenuItem
2243 status collapsed
2244
2245 \begin_layout Plain Layout
2246 Bibliography
2247 \end_layout
2248
2249 \end_inset
2250
2251  the option 
2252 \begin_inset Flex MenuItem
2253 status collapsed
2254
2255 \begin_layout Plain Layout
2256 Natbib
2257 \end_layout
2258
2259 \end_inset
2260
2261  or 
2262 \begin_inset Flex MenuItem
2263 status collapsed
2264
2265 \begin_layout Plain Layout
2266 Jurabib
2267 \end_layout
2268
2269 \end_inset
2270
2271 .
2272  With both packages, you will get some extra features in the citation dialog
2273  and you can select the style of the reference (
2274 \begin_inset Quotes eld
2275 \end_inset
2276
2277 Knuth 1984
2278 \begin_inset Quotes erd
2279 \end_inset
2280
2281
2282 \begin_inset Quotes eld
2283 \end_inset
2284
2285 Knuth (1984)
2286 \begin_inset Quotes erd
2287 \end_inset
2288
2289
2290 \begin_inset Quotes eld
2291 \end_inset
2292
2293 Knuth, 1984
2294 \begin_inset Quotes erd
2295 \end_inset
2296
2297
2298 \begin_inset Quotes eld
2299 \end_inset
2300
2301 1984
2302 \begin_inset Quotes erd
2303 \end_inset
2304
2305  etc.).
2306  Note that both packages need specifically designed style files.
2307  They both ship their own, but there are lots of additional style files,
2308  and there is even an interactive style file builder
2309 \begin_inset Foot
2310 status collapsed
2311
2312 \begin_layout Plain Layout
2313 See 
2314 \begin_inset Flex URL
2315 status open
2316
2317 \begin_layout Plain Layout
2318
2319 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2320 \end_layout
2321
2322 \end_inset
2323
2324
2325 \end_layout
2326
2327 \end_inset
2328
2329  for 
2330 \begin_inset Flex Code
2331 status collapsed
2332
2333 \begin_layout Plain Layout
2334 natbib
2335 \end_layout
2336
2337 \end_inset
2338
2339 .
2340 \end_layout
2341
2342 \begin_layout Subsection
2343 Sectioned Bibliographies
2344 \end_layout
2345
2346 \begin_layout Standard
2347 Sometimes you might need to divide your bibliography into several sections.
2348  If you are for instance a historian, the possibility to separate sources
2349  and scientific works is most likely a 
2350 \begin_inset Quotes eld
2351 \end_inset
2352
2353 must have
2354 \begin_inset Quotes erd
2355 \end_inset
2356
2357 .
2358  Unfortunately, BibTeX itself does not allow you to do this.
2359  But with the help of some LaTeX packages, BibTeX can be extended to fit
2360  your needs.
2361 \end_layout
2362
2363 \begin_layout Standard
2364 LyX provides native support for one of these packages, 
2365 \family typewriter
2366 bibtopic
2367 \family default
2368 .
2369 \begin_inset Foot
2370 status collapsed
2371
2372 \begin_layout Plain Layout
2373 Available from 
2374 \begin_inset Flex URL
2375 status open
2376
2377 \begin_layout Plain Layout
2378
2379 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2380 \end_layout
2381
2382 \end_inset
2383
2384
2385 \end_layout
2386
2387 \end_inset
2388
2389  The advantage of this package (compared to other packages like 
2390 \family typewriter
2391 multibib
2392 \family default
2393 ) is that you don't need to define new citation commands.
2394  Instead, you need to prepare different bibliographic databases which include
2395  the entries for the different sections of the bibliography.
2396  For example: If you want to divide your bibliography into the sections
2397  
2398 \begin_inset Quotes eld
2399 \end_inset
2400
2401 Sources
2402 \begin_inset Quotes erd
2403 \end_inset
2404
2405  and 
2406 \begin_inset Quotes eld
2407 \end_inset
2408
2409 Scientific works
2410 \begin_inset Quotes erd
2411 \end_inset
2412
2413 , you first need to create two bibliographic databases, e.
2414 \begin_inset space \thinspace{}
2415 \end_inset
2416
2417 g.
2418 \begin_inset space \space{}
2419 \end_inset
2420
2421
2422 \begin_inset Flex Code
2423 status collapsed
2424
2425 \begin_layout Plain Layout
2426 sources.bib
2427 \end_layout
2428
2429 \end_inset
2430
2431  and 
2432 \begin_inset Flex Code
2433 status collapsed
2434
2435 \begin_layout Plain Layout
2436 scientific.bib
2437 \end_layout
2438
2439 \end_inset
2440
2441 .
2442  
2443 \end_layout
2444
2445 \begin_layout Standard
2446 Go to 
2447 \begin_inset Flex MenuItem
2448 status collapsed
2449
2450 \begin_layout Plain Layout
2451 Document\SpecialChar \menuseparator
2452 Settings
2453 \end_layout
2454
2455 \end_inset
2456
2457  and check under 
2458 \begin_inset Flex MenuItem
2459 status collapsed
2460
2461 \begin_layout Plain Layout
2462 Bibliography
2463 \end_layout
2464
2465 \end_inset
2466
2467  the option 
2468 \begin_inset Flex MenuItem
2469 status collapsed
2470
2471 \begin_layout Plain Layout
2472 Sectioned bibliography
2473 \end_layout
2474
2475 \end_inset
2476
2477 .
2478  Now you can insert multiple BibTeX bibliographies, one for each section
2479  of your bibliography.
2480  Returning to our example: Insert the BibTeX bibliography 
2481 \begin_inset Flex Code
2482 status collapsed
2483
2484 \begin_layout Plain Layout
2485 sources.bib
2486 \end_layout
2487
2488 \end_inset
2489
2490  and a second one for the database 
2491 \begin_inset Flex Code
2492 status collapsed
2493
2494 \begin_layout Plain Layout
2495 scientific.bib
2496 \end_layout
2497
2498 \end_inset
2499
2500 .
2501  You are free to use the same or different styles for each section.
2502  Additionally, you can chose if the bibliography section should contain
2503  
2504 \begin_inset Quotes eld
2505 \end_inset
2506
2507 all cited references
2508 \begin_inset Quotes erd
2509 \end_inset
2510
2511  of the specified database(s) (which is the default), 
2512 \begin_inset Quotes eld
2513 \end_inset
2514
2515 all uncited references
2516 \begin_inset Quotes erd
2517 \end_inset
2518
2519  or even 
2520 \begin_inset Quotes eld
2521 \end_inset
2522
2523 all references
2524 \begin_inset Quotes erd
2525 \end_inset
2526
2527 .
2528  This might be useful if you would like to separate your bibliography into
2529  three sections: 
2530 \begin_inset Quotes eld
2531 \end_inset
2532
2533 Cited sources
2534 \begin_inset Quotes erd
2535 \end_inset
2536
2537
2538 \begin_inset Quotes eld
2539 \end_inset
2540
2541 Uncited sources
2542 \begin_inset Quotes erd
2543 \end_inset
2544
2545 , and 
2546 \begin_inset Quotes eld
2547 \end_inset
2548
2549 Scientific works
2550 \begin_inset Quotes erd
2551 \end_inset
2552
2553 .
2554  The titles for the sections can be added as ordinary sections or subsections.
2555  Since 
2556 \begin_inset Flex Code
2557 status collapsed
2558
2559 \begin_layout Plain Layout
2560 bibtopic
2561 \end_layout
2562
2563 \end_inset
2564
2565  removes the bibliography title, you have manually re-add that, too (as
2566  a chapter* or section*, for instance).
2567 \end_layout
2568
2569 \begin_layout Subsection
2570 Multiple Bibliographies
2571 \end_layout
2572
2573 \begin_layout Standard
2574 Multiple bibliographies, e.
2575 \begin_inset space \thinspace{}
2576 \end_inset
2577
2578 g.
2579 \begin_inset space \space{}
2580 \end_inset
2581
2582 a bibliography for each section or chapter of the document, are not supported
2583  by BibTeX itself.
2584  But the 
2585 \begin_inset Flex Code
2586 status collapsed
2587
2588 \begin_layout Plain Layout
2589 bibtopic
2590 \end_layout
2591
2592 \end_inset
2593
2594  package, which is used for the creation of sectioned bibliographies in
2595  LyX (see the previous section), provides an easy way to solve this task,
2596  if you are willing to use some 
2597 \begin_inset Flex MenuItem
2598 status collapsed
2599
2600 \begin_layout Plain Layout
2601 TeX Code
2602 \end_layout
2603
2604 \end_inset
2605
2606  (see section
2607 \begin_inset space ~
2608 \end_inset
2609
2610
2611 \begin_inset CommandInset ref
2612 LatexCommand ref
2613 reference "sec:Inserting-TeX-Code"
2614
2615 \end_inset
2616
2617 ).
2618 \begin_inset Foot
2619 status collapsed
2620
2621 \begin_layout Plain Layout
2622 An alternative approach is to use the 
2623 \begin_inset Flex Code
2624 status collapsed
2625
2626 \begin_layout Plain Layout
2627 chapterbib
2628 \end_layout
2629
2630 \end_inset
2631
2632  or 
2633 \begin_inset Flex Code
2634 status collapsed
2635
2636 \begin_layout Plain Layout
2637 bibunits
2638 \end_layout
2639
2640 \end_inset
2641
2642  package, respectively.
2643 \end_layout
2644
2645 \end_inset
2646
2647
2648 \end_layout
2649
2650 \begin_layout Standard
2651 First go to 
2652 \begin_inset Flex MenuItem
2653 status collapsed
2654
2655 \begin_layout Plain Layout
2656 Document\SpecialChar \menuseparator
2657 Settings
2658 \end_layout
2659
2660 \end_inset
2661
2662  and under 
2663 \begin_inset Flex MenuItem
2664 status collapsed
2665
2666 \begin_layout Plain Layout
2667 Bibliography
2668 \end_layout
2669
2670 \end_inset
2671
2672  check 
2673 \begin_inset Flex MenuItem
2674 status collapsed
2675
2676 \begin_layout Plain Layout
2677 Sectioned bibliography
2678 \end_layout
2679
2680 \end_inset
2681
2682 .
2683  In the document, you have to enclose the sections, which shall contain
2684  their own bibliography (including the BibTeX bibliography itself), between
2685  
2686 \begin_inset Flex Code
2687 status collapsed
2688
2689 \begin_layout Plain Layout
2690
2691 \backslash
2692 begin{btUnit}
2693 \end_layout
2694
2695 \end_inset
2696
2697  and 
2698 \begin_inset Flex Code
2699 status collapsed
2700
2701 \begin_layout Plain Layout
2702
2703 \backslash
2704 end{btUnit}
2705 \end_layout
2706
2707 \end_inset
2708
2709  (those commands have to be inserted as TeX code).
2710  The bibliography will contain all references which have been cited in the
2711  current 
2712 \begin_inset Flex Code
2713 status collapsed
2714
2715 \begin_layout Plain Layout
2716 btUnit
2717 \end_layout
2718
2719 \end_inset
2720
2721 .
2722  
2723 \series bold
2724 Note:
2725 \series default
2726  If you are using this approach, then every citation reference has to be
2727  inside some 
2728 \begin_inset Flex Code
2729 status collapsed
2730
2731 \begin_layout Plain Layout
2732 btUnit
2733 \end_layout
2734
2735 \end_inset
2736
2737 .
2738  Also, the 
2739 \begin_inset Flex Code
2740 status collapsed
2741
2742 \begin_layout Plain Layout
2743 btUnit
2744 \end_layout
2745
2746 \end_inset
2747
2748 s cannot be nested.
2749 \end_layout
2750
2751 \begin_layout Section
2752 Multipart Documents
2753 \end_layout
2754
2755 \begin_layout Subsection
2756 General Operation
2757 \end_layout
2758
2759 \begin_layout Standard
2760 When you are working on a large file with many sections, it is often convenient
2761  to break up the document into several files, or perhaps you have something
2762  where a table may change from time to time, but the preceding text does
2763  not.
2764  In these cases, you should seriously consider using multipart documents.
2765  For example, scientific papers often have five major sections: the introduction
2766 , observations, results, discussion, and conclusion.
2767  Each of these could be its own separate LyX file, with one 
2768 \begin_inset Quotes eld
2769 \end_inset
2770
2771 master
2772 \begin_inset Quotes erd
2773 \end_inset
2774
2775  file which contains the title, authors, abstract, references, etc., plus
2776  the five included files.
2777  It is important to note that each of these files is a full LyX file which
2778  can be formatted and printed on its own, as well as included in a master
2779  file.
2780  Each of these files must have the same document class, however—don't attempt
2781  to mix book classes with article classes.
2782  You may also include LaTeX files; however, these files must not have their
2783  own preamble (i.
2784 \begin_inset space \thinspace{}
2785 \end_inset
2786
2787 g.
2788 \begin_inset space \space{}
2789 \end_inset
2790
2791 everything up to and including the 
2792 \begin_inset Flex Code
2793 status collapsed
2794
2795 \begin_layout Plain Layout
2796
2797 \backslash
2798 begin{document}
2799 \end_layout
2800
2801 \end_inset
2802
2803  line as well as the 
2804 \begin_inset Flex Code
2805 status collapsed
2806
2807 \begin_layout Plain Layout
2808
2809 \backslash
2810 end{document}
2811 \end_layout
2812
2813 \end_inset
2814
2815  line must be deleted) or else errors will be generated when you try to
2816  make a DVI file.
2817 \end_layout
2818
2819 \begin_layout Standard
2820 LyX allows you to include files quite easily with 
2821 \begin_inset Flex MenuItem
2822 status collapsed
2823
2824 \begin_layout Plain Layout
2825 Insert\SpecialChar \menuseparator
2826 ChiId
2827 \begin_inset space ~
2828 \end_inset
2829
2830 Document
2831 \end_layout
2832
2833 \end_inset
2834
2835 .
2836  When you click on this selection a small box is inserted into the file
2837  at the current cursor location.
2838  Clicking on the box raises a dialog which allows you to select the file
2839  to be included, and the method of its inclusion.
2840  
2841 \end_layout
2842
2843 \begin_layout Standard
2844 The file selection box should by now be obvious.
2845  The three inclusion methods are 
2846 \begin_inset Quotes eld
2847 \end_inset
2848
2849 include
2850 \begin_inset Quotes erd
2851 \end_inset
2852
2853
2854 \begin_inset Quotes eld
2855 \end_inset
2856
2857 input
2858 \begin_inset Quotes erd
2859 \end_inset
2860
2861 , and 
2862 \begin_inset Quotes eld
2863 \end_inset
2864
2865 verbatim
2866 \begin_inset Quotes erd
2867 \end_inset
2868
2869 .
2870  The difference between 
2871 \begin_inset Quotes eld
2872 \end_inset
2873
2874 include
2875 \begin_inset Quotes erd
2876 \end_inset
2877
2878  and 
2879 \begin_inset Quotes eld
2880 \end_inset
2881
2882 input
2883 \begin_inset Quotes erd
2884 \end_inset
2885
2886  is really only meaningful to LaTeXperts, but the practical difference is
2887  that files which are 
2888 \begin_inset Quotes eld
2889 \end_inset
2890
2891 included
2892 \begin_inset Quotes erd
2893 \end_inset
2894
2895  are typeset beginning on a new page, while files which are 
2896 \begin_inset Quotes eld
2897 \end_inset
2898
2899 inputted
2900 \begin_inset Quotes erd
2901 \end_inset
2902
2903  are typeset starting on the current page.
2904 \end_layout
2905
2906 \begin_layout Standard
2907 Generally, the master file is converted into a full LaTeX file before typesettin
2908 g, while the included files are converted to LaTeX files which do not have
2909  all the preamble information.
2910 \end_layout
2911
2912 \begin_layout Standard
2913
2914 \begin_inset Quotes eld
2915 \end_inset
2916
2917 verbatim
2918 \begin_inset Quotes erd
2919 \end_inset
2920
2921  included file allows you to include a file typeset exactly as it appears
2922  in the file, i.
2923 \begin_inset space \thinspace{}
2924 \end_inset
2925
2926 g.
2927 \begin_inset space \space{}
2928 \end_inset
2929
2930 in 
2931 \begin_inset Flex Code
2932 status collapsed
2933
2934 \begin_layout Plain Layout
2935 verbatim
2936 \end_layout
2937
2938 \end_inset
2939
2940  mode, with the characters set in a fixed-width typewriter font.
2941  Normally, spaces in this file are invisible, though two consecutive spaces
2942  are conserved, unlike LyX's normal treatment of spaces.
2943  However, setting the 
2944 \begin_inset Flex MenuItem
2945 status collapsed
2946
2947 \begin_layout Plain Layout
2948 Mark
2949 \begin_inset space ~
2950 \end_inset
2951
2952 spaces
2953 \begin_inset space ~
2954 \end_inset
2955
2956 in
2957 \begin_inset space ~
2958 \end_inset
2959
2960 output
2961 \end_layout
2962
2963 \end_inset
2964
2965  checkbox typesets a mark to unambiguously define the presence of a space.
2966  
2967 \end_layout
2968
2969 \begin_layout Subsection
2970 Cross-References Between Files
2971 \end_layout
2972
2973 \begin_layout Standard
2974 \begin_inset Box Shadowbox
2975 position "t"
2976 hor_pos "c"
2977 has_inner_box 1
2978 inner_pos "t"
2979 use_parbox 0
2980 use_makebox 0
2981 width "100col%"
2982 special "none"
2983 height "1in"
2984 height_special "totalheight"
2985 status open
2986
2987 \begin_layout Plain Layout
2988 This section is somewhat out of date.
2989  Need to describe default master documents and how children are opened when
2990  the master is.
2991  [[FIXME]]
2992 \end_layout
2993
2994 \end_inset
2995
2996
2997 \end_layout
2998
2999 \begin_layout Standard
3000 It is possible to set up cross-references between the different files.
3001  First, open all the files in question: let's call them A and B in a two
3002  file example, where B is included in A.
3003  Let's say you insert a label in A, then want to reference it in B.
3004  Open the cross-reference dialog in whilst in document B, and you can select
3005  the 
3006 \begin_inset Quotes eld
3007 \end_inset
3008
3009 buffer
3010 \begin_inset Quotes erd
3011 \end_inset
3012
3013  to use.
3014 \end_layout
3015
3016 \begin_layout Subsection
3017 Bibliography Lists in all Subdocuments
3018 \end_layout
3019
3020 \begin_layout Standard
3021 \begin_inset Box Frameless
3022 position "t"
3023 hor_pos "c"
3024 has_inner_box 1
3025 inner_pos "t"
3026 use_parbox 0
3027 use_makebox 0
3028 width "100col%"
3029 special "none"
3030 height "1in"
3031 height_special "totalheight"
3032 status open
3033
3034 \begin_layout Plain Layout
3035 This section also needs updating.
3036  There is now material about this on the wiki, and it could be copied here.
3037 \end_layout
3038
3039 \end_inset
3040
3041
3042 \end_layout
3043
3044 \begin_layout Standard
3045 Copy the bibliography list with all entries to all subdocuments and transform
3046  them to a comment.
3047  This way LyX will find the 
3048 \begin_inset Flex Code
3049 status collapsed
3050
3051 \begin_layout Plain Layout
3052 .bib
3053 \end_layout
3054
3055 \end_inset
3056
3057 -files and you can easily insert references without making the bibliography
3058  list visible.
3059 \end_layout
3060
3061 \begin_layout Standard
3062 As the bibliography list is in a comment, LaTeX won't use use it and the
3063  references will look like this: [?], instead of like this: [1].
3064  One solution is to use the LaTeX-package 
3065 \begin_inset Flex Code
3066 status collapsed
3067
3068 \begin_layout Plain Layout
3069 comment
3070 \end_layout
3071
3072 \end_inset
3073
3074  that will only include comments by processing the files separately.
3075  To do this, add in the LaTeX preamble of every subdocument the following:
3076 \end_layout
3077
3078 \begin_layout LyX-Code
3079
3080 \backslash
3081 usepackage{comment}
3082 \end_layout
3083
3084 \begin_layout LyX-Code
3085
3086 \backslash
3087 includecomment{comment}
3088 \end_layout
3089
3090 \begin_layout Standard
3091 See also 
3092 \begin_inset Flex URL
3093 status collapsed
3094
3095 \begin_layout Plain Layout
3096
3097 http://wiki.lyx.org/FAQ/Unsorted#toc31
3098 \end_layout
3099
3100 \end_inset
3101
3102 .
3103 \end_layout
3104
3105 \begin_layout Section
3106 LyX Archives
3107 \end_layout
3108
3109 \begin_layout Standard
3110 Users sometimes need to be able to 
3111 \begin_inset Quotes eld
3112 \end_inset
3113
3114 bundle
3115 \begin_inset Quotes erd
3116 \end_inset
3117
3118  a LyX file together with all the images (and other files) on which it depends,
3119  either for sending to a publisher or for sharing with a co-author.
3120  LyX 2.0 includes a Python script (
3121 \begin_inset Flex Code
3122 status collapsed
3123
3124 \begin_layout Plain Layout
3125 lyxpak.py
3126 \end_layout
3127
3128 \end_inset
3129
3130 ) that automates this process.
3131  To use it, you must have either the 
3132 \begin_inset Flex Code
3133 status collapsed
3134
3135 \begin_layout Plain Layout
3136 zipfile
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 tarfile
3147 \end_layout
3148
3149 \end_inset
3150
3151  python modules installed on your system.
3152  By default, the script prefers the 
3153 \begin_inset Flex Code
3154 status collapsed
3155
3156 \begin_layout Plain Layout
3157 gzip
3158 \end_layout
3159
3160 \end_inset
3161
3162 -compressed 
3163 \begin_inset Flex Code
3164 status collapsed
3165
3166 \begin_layout Plain Layout
3167 tar
3168 \end_layout
3169
3170 \end_inset
3171
3172  format on Unix-like systems and the 
3173 \begin_inset Flex Code
3174 status collapsed
3175
3176 \begin_layout Plain Layout
3177 zip
3178 \end_layout
3179
3180 \end_inset
3181
3182  format on Windows.
3183 \end_layout
3184
3185 \begin_layout Standard
3186 LyX's configuration process will set the script up to export a `LyX Archive',
3187  and this format will then be available under 
3188 \begin_inset Flex Code
3189 status collapsed
3190
3191 \begin_layout Plain Layout
3192 File\SpecialChar \menuseparator
3193 Export
3194 \end_layout
3195
3196 \end_inset
3197
3198 .
3199 \end_layout
3200
3201 \begin_layout Standard
3202 Independently of the platform, the generation of a particular archive format
3203  can be forced by adding either the 
3204 \begin_inset Flex Code
3205 status collapsed
3206
3207 \begin_layout Plain Layout
3208 -t
3209 \end_layout
3210
3211 \end_inset
3212
3213  (for the 
3214 \begin_inset Flex Code
3215 status collapsed
3216
3217 \begin_layout Plain Layout
3218 tar
3219 \end_layout
3220
3221 \end_inset
3222
3223  format) or 
3224 \begin_inset Flex Code
3225 status collapsed
3226
3227 \begin_layout Plain Layout
3228 -z
3229 \end_layout
3230
3231 \end_inset
3232
3233  (for the 
3234 \begin_inset Flex Code
3235 status collapsed
3236
3237 \begin_layout Plain Layout
3238 zip
3239 \end_layout
3240
3241 \end_inset
3242
3243  format) switch to the 
3244 \begin_inset Flex Code
3245 status collapsed
3246
3247 \begin_layout Plain Layout
3248 LyX\SpecialChar \menuseparator
3249 LyX Archive
3250 \end_layout
3251
3252 \end_inset
3253
3254  converter in 
3255 \begin_inset Flex Code
3256 status collapsed
3257
3258 \begin_layout Plain Layout
3259 Tools\SpecialChar \menuseparator
3260 Preferences\SpecialChar \menuseparator
3261 File Handling\SpecialChar \menuseparator
3262 Converters
3263 \end_layout
3264
3265 \end_inset
3266
3267 .
3268  (Make sure you add the switch after the script name, not before it.)
3269 \end_layout
3270
3271 \begin_layout Section
3272 Fancy Headers and Footers
3273 \end_layout
3274
3275 \begin_layout Standard
3276 The default page layout is rather plain; for an 
3277 \begin_inset Flex Code
3278 status collapsed
3279
3280 \begin_layout Plain Layout
3281 article
3282 \end_layout
3283
3284 \end_inset
3285
3286  document class, all you get is a centered page number at the bottom of
3287  the page.
3288  This document uses KOMA-script's book class, so it appears to be a bit
3289  fancier.
3290  But to really put on a show, you need to set the document page style to
3291  
3292 \begin_inset Quotes eld
3293 \end_inset
3294
3295 fancy
3296 \begin_inset Quotes erd
3297 \end_inset
3298
3299 , as mentioned in the 
3300 \emph on
3301 User Guide
3302 \emph default
3303 .
3304  This section describes the LaTeX code you need to insert in your LaTeX
3305  preamble in order to get the desired effects.
3306 \end_layout
3307
3308 \begin_layout Standard
3309 For more information on fancy headers, see the 
3310 \begin_inset Flex Code
3311 status collapsed
3312
3313 \begin_layout Plain Layout
3314 fancyhdr
3315 \end_layout
3316
3317 \end_inset
3318
3319  package documentation.
3320  (
3321 \begin_inset Flex URL
3322 status collapsed
3323
3324 \begin_layout Plain Layout
3325
3326 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3327 \end_layout
3328
3329 \end_inset
3330
3331 )
3332 \end_layout
3333
3334 \begin_layout Standard
3335 The page header is divided into three fields, not surprisingly labeled 
3336 \begin_inset Quotes eld
3337 \end_inset
3338
3339 left
3340 \begin_inset Quotes erd
3341 \end_inset
3342
3343
3344 \begin_inset Quotes eld
3345 \end_inset
3346
3347 center
3348 \begin_inset Quotes erd
3349 \end_inset
3350
3351 , and 
3352 \begin_inset Quotes eld
3353 \end_inset
3354
3355 right
3356 \begin_inset Quotes erd
3357 \end_inset
3358
3359 .
3360  The footer is also divided into these three fields.
3361  The LaTeX commands to set these fields in the simplest manner are 
3362 \begin_inset Flex Code
3363 status collapsed
3364
3365 \begin_layout Plain Layout
3366
3367 \backslash
3368 lhead
3369 \end_layout
3370
3371 \end_inset
3372
3373
3374 \begin_inset Flex Code
3375 status collapsed
3376
3377 \begin_layout Plain Layout
3378
3379 \backslash
3380 chead
3381 \end_layout
3382
3383 \end_inset
3384
3385
3386 \begin_inset Flex Code
3387 status collapsed
3388
3389 \begin_layout Plain Layout
3390
3391 \backslash
3392 rhead
3393 \end_layout
3394
3395 \end_inset
3396
3397
3398 \begin_inset Flex Code
3399 status collapsed
3400
3401 \begin_layout Plain Layout
3402
3403 \backslash
3404 lfoot
3405 \end_layout
3406
3407 \end_inset
3408
3409 , etc.
3410  Suppose you wish to put your name in the upper left hand corner of each
3411  page.
3412  Simply insert the following command in the preamble: 
3413 \end_layout
3414
3415 \begin_layout Standard
3416
3417 \family typewriter
3418
3419 \backslash
3420 lhead{John Q.
3421  DocWriter}
3422 \end_layout
3423
3424 \begin_layout Standard
3425 You will now see your name in the upper left.
3426  If a field has a default entry that you would like to get rid of (often
3427  the page number appears in the central footer, simply include a command
3428  with a blank argument, e.
3429 \begin_inset space \thinspace{}
3430 \end_inset
3431
3432 g.:
3433 \end_layout
3434
3435 \begin_layout Standard
3436
3437 \family typewriter
3438
3439 \backslash
3440 cfoot{}
3441 \end_layout
3442
3443 \begin_layout Standard
3444 Let's get really fancy: lets put the section number with the word 
3445 \begin_inset Quotes eld
3446 \end_inset
3447
3448 Section
3449 \begin_inset Quotes erd
3450 \end_inset
3451
3452  (e.
3453 \begin_inset space \thinspace{}
3454 \end_inset
3455
3456 g.
3457 \begin_inset space \space{}
3458 \end_inset
3459
3460 Section 3) in the upper left, the page number (e.
3461 \begin_inset space \thinspace{}
3462 \end_inset
3463
3464 g.
3465 \begin_inset space \space{}
3466 \end_inset
3467
3468 Page 4) in the upper right, your name in the lower left, and the date in
3469  the lower right.
3470  The following commands should now appear in the preamble:
3471 \end_layout
3472
3473 \begin_layout Standard
3474
3475 \family typewriter
3476
3477 \backslash
3478 lhead{Section 
3479 \backslash
3480 thesection}
3481 \end_layout
3482
3483 \begin_layout Standard
3484
3485 \family typewriter
3486
3487 \backslash
3488 chead{}
3489 \end_layout
3490
3491 \begin_layout Standard
3492
3493 \family typewriter
3494
3495 \backslash
3496 rhead{Page 
3497 \backslash
3498 thepage}
3499 \end_layout
3500
3501 \begin_layout Standard
3502
3503 \family typewriter
3504
3505 \backslash
3506 lfoot{John Q.
3507  DocWriter}
3508 \end_layout
3509
3510 \begin_layout Standard
3511
3512 \family typewriter
3513
3514 \backslash
3515 cfoot{}
3516 \end_layout
3517
3518 \begin_layout Standard
3519
3520 \family typewriter
3521
3522 \backslash
3523 rfoot{
3524 \backslash
3525 today}
3526 \end_layout
3527
3528 \begin_layout Standard
3529 The commands 
3530 \begin_inset Flex Code
3531 status collapsed
3532
3533 \begin_layout Plain Layout
3534
3535 \backslash
3536 thesection
3537 \end_layout
3538
3539 \end_inset
3540
3541  and 
3542 \begin_inset Flex Code
3543 status collapsed
3544
3545 \begin_layout Plain Layout
3546
3547 \backslash
3548 thepage
3549 \end_layout
3550
3551 \end_inset
3552
3553  access LaTeX's section and page counters, and so print out the current
3554  section and page numbers.
3555  
3556 \begin_inset Flex Code
3557 status collapsed
3558
3559 \begin_layout Plain Layout
3560
3561 \backslash
3562 today
3563 \end_layout
3564
3565 \end_inset
3566
3567  simply prints out today's date.
3568 \end_layout
3569
3570 \begin_layout Standard
3571 The thicknesses of the horizontal rules drawn beneath the header and above
3572  the footer can also be modified.
3573  If you don't want one of the rules, set its thickness to 0.
3574  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3575  Use commands
3576 \family typewriter
3577  
3578 \family default
3579 like 
3580 \begin_inset Flex Code
3581 status collapsed
3582
3583 \begin_layout Plain Layout
3584
3585 \backslash
3586 renewcommand{
3587 \backslash
3588 headrulewidth}{0.4pt}
3589 \end_layout
3590
3591 \end_inset
3592
3593  and 
3594 \begin_inset Flex Code
3595 status collapsed
3596
3597 \begin_layout Plain Layout
3598
3599 \backslash
3600 renewcommand{
3601 \backslash
3602 footrulewidth}{0.4pt}
3603 \end_layout
3604
3605 \end_inset
3606
3607  to set the thicknesses.
3608 \end_layout
3609
3610 \begin_layout Standard
3611 You can switch the header/footer settings on and off for individual pages
3612  using commands like 
3613 \begin_inset Flex Code
3614 status collapsed
3615
3616 \begin_layout Plain Layout
3617
3618 \backslash
3619 thispagestyle{empty}
3620 \end_layout
3621
3622 \end_inset
3623
3624
3625 \begin_inset Flex Code
3626 status collapsed
3627
3628 \begin_layout Plain Layout
3629
3630 \backslash
3631 thispagestyle{plain}
3632 \end_layout
3633
3634 \end_inset
3635
3636 , and 
3637 \begin_inset Flex Code
3638 status collapsed
3639
3640 \begin_layout Plain Layout
3641
3642 \backslash
3643 thispagestyle{fancy}
3644 \end_layout
3645
3646 \end_inset
3647
3648 .
3649  Simply insert them in the text on the page you want changed and mark them
3650  as TeX code.
3651  In fact, title pages are marked as plain by default, while following pages
3652  are marked fancy when using the global fancy setting.
3653 \end_layout
3654
3655 \begin_layout Standard
3656 As a final example, it is possible to include an image in the header or
3657  footer.
3658  Suppose you want to put a company logo in the upper lefthand corner.
3659  You might try something like
3660 \end_layout
3661
3662 \begin_layout Standard
3663
3664 \family typewriter
3665
3666 \backslash
3667 lhead{
3668 \backslash
3669 resizebox{1in}{!}{
3670 \backslash
3671 includegraphics{logo.eps}}}
3672 \end_layout
3673
3674 \begin_layout Standard
3675 \noindent
3676 (you may need to preface this with 
3677 \begin_inset Flex Code
3678 status collapsed
3679
3680 \begin_layout Plain Layout
3681 \noindent
3682
3683 \backslash
3684 usepackage{graphics}
3685 \end_layout
3686
3687 \end_inset
3688
3689  if you don't include graphics elsewhere in your document).
3690 \end_layout
3691
3692 \begin_layout Section
3693 Itemize Bullet Selection
3694 \begin_inset CommandInset label
3695 LatexCommand label
3696 name "sec:bullet"
3697
3698 \end_inset
3699
3700
3701 \end_layout
3702
3703 \begin_layout Standard
3704 by
3705 \noun on
3706  Allan Rae
3707 \end_layout
3708
3709 \begin_layout Subsection
3710 Introduction
3711 \end_layout
3712
3713 \begin_layout Standard
3714 LyX provides 216 bullet shapes that can be accessed from a simple dialog.
3715  Using this dialog you can easily specify what bullet shape to use at each
3716  level of an itemized list.
3717  These settings are document-wide so you won't be able to specify different
3718  sets of bullets for different paragraphs.
3719 \begin_inset Foot
3720 status collapsed
3721
3722 \begin_layout Plain Layout
3723 Well, actually you can but you'll have to do it by hand.
3724 \end_layout
3725
3726 \end_inset
3727
3728
3729 \end_layout
3730
3731 \begin_layout Subsection
3732 How it looks
3733 \end_layout
3734
3735 \begin_layout Standard
3736 Open the dialog by selecting the 
3737 \begin_inset Flex MenuItem
3738 status collapsed
3739
3740 \begin_layout Plain Layout
3741 Document\SpecialChar \menuseparator
3742 Settings
3743 \end_layout
3744
3745 \end_inset
3746
3747  menu item and then select the 
3748 \begin_inset Flex MenuItem
3749 status collapsed
3750
3751 \begin_layout Plain Layout
3752 Bullets
3753 \end_layout
3754
3755 \end_inset
3756
3757  tab.
3758 \end_layout
3759
3760 \begin_layout Standard
3761 The dialog provides you with a table of bullet shapes.
3762  A column of buttons on the left of the table provides access to the six
3763  different panels of bullet shapes.
3764  The row of buttons across the top is used to select which bullet depth
3765  you are changing.
3766  A text entry under the table shows the currently selected bullet shape's
3767  LaTeX equivalent and this can be edited if desired.
3768  If you do modify the text you will also need to specify any needed packages
3769  in the LaTeX preamble.
3770 \end_layout
3771
3772 \begin_layout Standard
3773 The six panels are divided up by the packages they require.
3774  The following table shows the mappings from button name to LaTeX packages.
3775 \end_layout
3776
3777 \begin_layout Standard
3778 \align center
3779 \begin_inset Tabular
3780 <lyxtabular version="3" rows="7" columns="2">
3781 <features tabularvalignment="middle">
3782 <column alignment="center" valignment="top" width="0pt">
3783 <column alignment="center" valignment="top" width="0pt">
3784 <row>
3785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3786 \begin_inset Text
3787
3788 \begin_layout Plain Layout
3789
3790 \family roman
3791 \series medium
3792 \shape up
3793 \size normal
3794 \emph off
3795 \bar no
3796 \noun off
3797 \color none
3798 Button
3799 \end_layout
3800
3801 \end_inset
3802 </cell>
3803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3804 \begin_inset Text
3805
3806 \begin_layout Plain Layout
3807
3808 \family roman
3809 \series medium
3810 \shape up
3811 \size normal
3812 \emph off
3813 \bar no
3814 \noun off
3815 \color none
3816 Packages Required
3817 \end_layout
3818
3819 \end_inset
3820 </cell>
3821 </row>
3822 <row>
3823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3824 \begin_inset Text
3825
3826 \begin_layout Plain Layout
3827
3828 \family sans
3829 \series medium
3830 \shape up
3831 \size normal
3832 \emph off
3833 \bar no
3834 \noun off
3835 \color none
3836 Standard
3837 \end_layout
3838
3839 \end_inset
3840 </cell>
3841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3842 \begin_inset Text
3843
3844 \begin_layout Plain Layout
3845
3846 \series medium
3847 \shape up
3848 \size normal
3849 \emph off
3850 \bar no
3851 \noun off
3852 \color none
3853 base LaTeX
3854 \end_layout
3855
3856 \end_inset
3857 </cell>
3858 </row>
3859 <row>
3860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3861 \begin_inset Text
3862
3863 \begin_layout Plain Layout
3864
3865 \family sans
3866 \series medium
3867 \shape up
3868 \size normal
3869 \emph off
3870 \bar no
3871 \noun off
3872 \color none
3873 Maths
3874 \end_layout
3875
3876 \end_inset
3877 </cell>
3878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3879 \begin_inset Text
3880
3881 \begin_layout Plain Layout
3882
3883 \family typewriter
3884 \series medium
3885 \shape up
3886 \size normal
3887 \emph off
3888 \bar no
3889 \noun off
3890 \color none
3891 amssymb.sty
3892 \end_layout
3893
3894 \end_inset
3895 </cell>
3896 </row>
3897 <row>
3898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3899 \begin_inset Text
3900
3901 \begin_layout Plain Layout
3902
3903 \family sans
3904 \series medium
3905 \shape up
3906 \size normal
3907 \emph off
3908 \bar no
3909 \noun off
3910 \color none
3911 Ding1
3912 \end_layout
3913
3914 \end_inset
3915 </cell>
3916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3917 \begin_inset Text
3918
3919 \begin_layout Plain Layout
3920
3921 \family typewriter
3922 \series medium
3923 \shape up
3924 \size normal
3925 \emph off
3926 \bar no
3927 \noun off
3928 \color none
3929 pifont.sty
3930 \end_layout
3931
3932 \end_inset
3933 </cell>
3934 </row>
3935 <row>
3936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3937 \begin_inset Text
3938
3939 \begin_layout Plain Layout
3940
3941 \family sans
3942 \series medium
3943 \shape up
3944 \size normal
3945 \emph off
3946 \bar no
3947 \noun off
3948 \color none
3949 Ding2
3950 \end_layout
3951
3952 \end_inset
3953 </cell>
3954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3955 \begin_inset Text
3956
3957 \begin_layout Plain Layout
3958
3959 \family typewriter
3960 \series medium
3961 \shape up
3962 \size normal
3963 \emph off
3964 \bar no
3965 \noun off
3966 \color none
3967 pifont.sty
3968 \end_layout
3969
3970 \end_inset
3971 </cell>
3972 </row>
3973 <row>
3974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3975 \begin_inset Text
3976
3977 \begin_layout Plain Layout
3978
3979 \family sans
3980 \series medium
3981 \shape up
3982 \size normal
3983 \emph off
3984 \bar no
3985 \noun off
3986 \color none
3987 Ding3
3988 \end_layout
3989
3990 \end_inset
3991 </cell>
3992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3993 \begin_inset Text
3994
3995 \begin_layout Plain Layout
3996
3997 \family typewriter
3998 \series medium
3999 \shape up
4000 \size normal
4001 \emph off
4002 \bar no
4003 \noun off
4004 \color none
4005 pifont.sty
4006 \end_layout
4007
4008 \end_inset
4009 </cell>
4010 </row>
4011 <row>
4012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4013 \begin_inset Text
4014
4015 \begin_layout Plain Layout
4016
4017 \family sans
4018 \series medium
4019 \shape up
4020 \size normal
4021 \emph off
4022 \bar no
4023 \noun off
4024 \color none
4025 Ding4
4026 \end_layout
4027
4028 \end_inset
4029 </cell>
4030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4031 \begin_inset Text
4032
4033 \begin_layout Plain Layout
4034
4035 \family typewriter
4036 \series medium
4037 \shape up
4038 \size normal
4039 \emph off
4040 \bar no
4041 \noun off
4042 \color none
4043 pifont.sty
4044 \end_layout
4045
4046 \end_inset
4047 </cell>
4048 </row>
4049 </lyxtabular>
4050
4051 \end_inset
4052
4053
4054 \end_layout
4055
4056 \begin_layout Standard
4057 LyX doesn't stop you using bullets from packages you don't have.
4058  If you get errors from LaTeX when you try to view or print the file, then
4059  it is likely you are missing a package.
4060 \begin_inset Foot
4061 status collapsed
4062
4063 \begin_layout Plain Layout
4064 LyX doesn't restrict your use since you may be editing locally and exporting
4065  elsewhere.
4066 \end_layout
4067
4068 \end_inset
4069
4070
4071 \end_layout
4072
4073 \begin_layout Subsection
4074 How to use it
4075 \end_layout
4076
4077 \begin_layout Standard
4078 Select which bullet depth you want to change then select the bullet shape
4079  and size.
4080  Any changes will not be visible in LyX, but are visible when viewing the
4081  document.
4082 \end_layout
4083
4084 \begin_layout Standard
4085 You can reset a bullet shape to the default simply by clicking your right
4086  mouse button on the appropriate bullet depth button.
4087 \begin_inset Foot
4088 status collapsed
4089
4090 \begin_layout Plain Layout
4091 If you 
4092 \emph on
4093 really
4094 \emph default
4095  want to have multiple sets of paragraphs with different sets of bullets
4096  in each, then you're going to have to get your hands dirty with TeX code.
4097  The bullet selection dialog can help though because it provides you with
4098  the LaTeX code for a wide range of bullet shapes.
4099  To make your own custom paragraphs you have the following options:
4100 \end_layout
4101
4102 \begin_layout Plain Layout
4103 \begin_inset ERT
4104 status open
4105
4106 \begin_layout Plain Layout
4107
4108
4109 \backslash
4110 let
4111 \backslash
4112 savelabelitemi=
4113 \backslash
4114 labelitemi
4115 \end_layout
4116
4117 \end_inset
4118
4119
4120 \end_layout
4121
4122 \begin_layout Plain Layout
4123 \begin_inset ERT
4124 status open
4125
4126 \begin_layout Plain Layout
4127
4128
4129 \backslash
4130 renewcommand
4131 \backslash
4132 labelitemi[0]{
4133 \backslash
4134 small
4135 \backslash
4136 (
4137 \backslash
4138 sharp
4139 \backslash
4140 )}
4141 \end_layout
4142
4143 \end_inset
4144
4145
4146 \end_layout
4147
4148 \begin_layout Itemize
4149 Use the LaTeX command 
4150 \begin_inset Flex Code
4151 status collapsed
4152
4153 \begin_layout Plain Layout
4154
4155 \backslash
4156 renewcommand{}{}
4157 \end_layout
4158
4159 \end_inset
4160
4161  to specify a new bullet shape for a given depth.
4162  You'll also need to save the current bullet shape so you can restore it
4163  again afterwards.
4164  In this itemized list the following LaTeX code was used to change the bullet
4165  used for the first depth.
4166 \end_layout
4167
4168 \begin_deeper
4169 \begin_layout LyX-Code
4170
4171 \backslash
4172 let
4173 \backslash
4174 savelabelitemi=
4175 \backslash
4176 labelitemi 
4177 \end_layout
4178
4179 \begin_layout LyX-Code
4180
4181 \backslash
4182 renewcommand
4183 \backslash
4184 labelitemi[0]{
4185 \backslash
4186 small
4187 \backslash
4188 (
4189 \backslash
4190 sharp
4191 \backslash
4192 )}
4193 \end_layout
4194
4195 \end_deeper
4196 \begin_layout Itemize
4197 Note that the itemize depth is specified in Roman numerals as part of the
4198  
4199 \family typewriter
4200
4201 \backslash
4202 labelitem
4203 \family default
4204  command.
4205 \end_layout
4206
4207 \begin_layout Itemize
4208 \begin_inset ERT
4209 status open
4210
4211 \begin_layout Plain Layout
4212
4213 [
4214 \backslash
4215 (
4216 \backslash
4217 star
4218 \backslash
4219 )]
4220 \end_layout
4221
4222 \end_inset
4223
4224  Specify each individual entry by starting each item with the bullet shape
4225  enclosed in square brackets and set as 
4226 \begin_inset Flex MenuItem
4227 status collapsed
4228
4229 \begin_layout Plain Layout
4230 TeX Code
4231 \end_layout
4232
4233 \end_inset
4234
4235 .
4236  For example, this item was started with 
4237 \begin_inset Flex Code
4238 status collapsed
4239
4240 \begin_layout Plain Layout
4241 [
4242 \backslash
4243 (
4244 \backslash
4245 star
4246 \backslash
4247 )]
4248 \end_layout
4249
4250 \end_inset
4251
4252 .
4253 \end_layout
4254
4255 \begin_layout Plain Layout
4256 \begin_inset ERT
4257 status open
4258
4259 \begin_layout Plain Layout
4260
4261
4262 \backslash
4263 renewcommand
4264 \backslash
4265 labelitemi[0]{
4266 \backslash
4267 savelabelitemi}
4268 \end_layout
4269
4270 \end_inset
4271
4272
4273 \end_layout
4274
4275 \begin_layout Plain Layout
4276 You'll also need to revert the labelitem back to its previous setting for
4277  the global bullet shape settings to remain in effect.
4278  The way used here was:
4279 \end_layout
4280
4281 \begin_layout LyX-Code
4282
4283 \backslash
4284 renewcommand
4285 \backslash
4286 labelitemi[0]{
4287 \backslash
4288 savelabelitemi}
4289 \end_layout
4290
4291 \end_inset
4292
4293
4294 \end_layout
4295
4296 \begin_layout Chapter
4297 LyX and the World Wide Web
4298 \end_layout
4299
4300 \begin_layout Standard
4301 LyX has long supported the export of documents to various web-friendly formats,
4302  such as HTML.
4303  Before verson 2.0, however, HTML export was always accomplished by the use
4304  of external converters.
4305 \begin_inset Foot
4306 status collapsed
4307
4308 \begin_layout Plain Layout
4309 For details on the use of external converters with LyX, see the 
4310 \emph on
4311 Converters
4312 \emph default
4313  section of the Customization manual.
4314 \end_layout
4315
4316 \end_inset
4317
4318  These fall into two large groups: there are converters that use LaTeX as
4319  an intermediate format, such as 
4320 \begin_inset Flex Code
4321 status collapsed
4322
4323 \begin_layout Plain Layout
4324 htlatex
4325 \end_layout
4326
4327 \end_inset
4328
4329
4330 \begin_inset Flex Code
4331 status collapsed
4332
4333 \begin_layout Plain Layout
4334 html2latex
4335 \end_layout
4336
4337 \end_inset
4338
4339 , and 
4340 \begin_inset Flex Code
4341 status collapsed
4342
4343 \begin_layout Plain Layout
4344 plastex
4345 \end_layout
4346
4347 \end_inset
4348
4349 , relying upon LyX to produce the LaTeX; and there is a converter that works
4350  directly on LyX files, 
4351 \begin_inset Flex Code
4352 status collapsed
4353
4354 \begin_layout Plain Layout
4355 eLyXer
4356 \end_layout
4357
4358 \end_inset
4359
4360 .
4361  All of these have different advantages and disadvantages.
4362  
4363 \end_layout
4364
4365 \begin_layout Standard
4366 The LaTeX-based converters have the advantage that, in principle, they know
4367  everything about the exported document that LaTeX does.
4368  Such converters do not care, for example, if a certain block of code was
4369  produced by LyX or was Evil Red Text.
4370  These converters know about 
4371 \begin_inset Flex Code
4372 status collapsed
4373
4374 \begin_layout Plain Layout
4375 aux
4376 \end_layout
4377
4378 \end_inset
4379
4380  files, counters, and references, and can often make use of the 
4381 \begin_inset Flex Code
4382 status collapsed
4383
4384 \begin_layout Plain Layout
4385 bbl
4386 \end_layout
4387
4388 \end_inset
4389
4390  files generated by BibTeX.
4391  On the other hand, LaTeX is a very hard language to parse---it is sometimes
4392  said that only TeX itself understands TeX---and LaTeX-based converters
4393  will often choke on what seem to be quite simple constructs; complex ones
4394  can throw them completely, and as of this writing, for example, the 
4395 \emph on
4396 Embedded Objects
4397 \emph default
4398  manual will not export with 
4399 \begin_inset Flex Code
4400 status collapsed
4401
4402 \begin_layout Plain Layout
4403 htlatex
4404 \end_layout
4405
4406 \end_inset
4407
4408 , though the others will.
4409  The other issue concerns how math is handled.
4410  These converters typically convert the formulae into little pictures that
4411  are then linked from the HTML document.
4412  Since these are actually generated by LaTeX, they are accurate.
4413  But they do not scale well, and just getting them to look as if they are
4414  actually meant to be in your document---so that the font sizes seem to
4415  be roughly the same---can be a challenge.
4416 \end_layout
4417
4418 \begin_layout Standard
4419 Alex Fernandez's 
4420 \begin_inset Flex Code
4421 status collapsed
4422
4423 \begin_layout Plain Layout
4424 eLyXer
4425 \end_layout
4426
4427 \end_inset
4428
4429  (
4430 \begin_inset CommandInset href
4431 LatexCommand href
4432 name "http://elyxer.nongnu.org/"
4433 target "http://elyxer.nongnu.org/"
4434
4435 \end_inset
4436
4437 ) solves some of these problems.
4438  In particular, the formulae it produces scale perfectly, since it renders
4439  math using a combination of HTML and CSS rather than converting the formulae
4440  to images.
4441  But even moderately complex formula are rendered less well than with 
4442 \begin_inset Flex Code
4443 status collapsed
4444
4445 \begin_layout Plain Layout
4446 htlatex
4447 \end_layout
4448
4449 \end_inset
4450
4451 ; this reflects the limitations of HTML.
4452 \begin_inset Foot
4453 status collapsed
4454
4455 \begin_layout Plain Layout
4456 That said, 
4457 \begin_inset Flex Code
4458 status collapsed
4459
4460 \begin_layout Plain Layout
4461 eLyXer
4462 \end_layout
4463
4464 \end_inset
4465
4466  can also use jsMath and MathJax for equations, but this setting is only
4467  available globally and requires one to have access to a server that runs
4468  the backend.
4469 \end_layout
4470
4471 \end_inset
4472
4473  More importantly (as of version 1.1.1, at least), 
4474 \begin_inset Flex Code
4475 status collapsed
4476
4477 \begin_layout Plain Layout
4478 eLyXer
4479 \end_layout
4480
4481 \end_inset
4482
4483  has limited support for math macros and no support for user-defined paragraph
4484  or character styles.
4485  These limitations make 
4486 \begin_inset Flex Code
4487 status collapsed
4488
4489 \begin_layout Plain Layout
4490 eLyXer
4491 \end_layout
4492
4493 \end_inset
4494
4495  unsuitable for many of the documents LyX users produce.
4496  In principle, of course, these problems could be solved, but the LyX developers
4497  have decided to follow a different path and have made LyX itself capable
4498  of writing XHTML, just as it is capable of writing LaTeX, DocBook, and
4499  plaintext.
4500 \end_layout
4501
4502 \begin_layout Standard
4503 As of this writing, XHTML output remains under development and should probably
4504  be regarded as 
4505 \begin_inset Quotes eld
4506 \end_inset
4507
4508 experimental
4509 \begin_inset Quotes erd
4510 \end_inset
4511
4512 .
4513 \begin_inset Foot
4514 status collapsed
4515
4516 \begin_layout Plain Layout
4517 The file 
4518 \begin_inset Flex Code
4519 status collapsed
4520
4521 \begin_layout Plain Layout
4522 development/HTML.notes
4523 \end_layout
4524
4525 \end_inset
4526
4527 , which can be found in the LyX source tree or 
4528 \begin_inset CommandInset href
4529 LatexCommand href
4530 name "accessed online"
4531 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
4532
4533 \end_inset
4534
4535 , usually contains up-to-date information about the state of XHTML output.
4536  See also the list of XHTML bugs on 
4537 \begin_inset CommandInset href
4538 LatexCommand href
4539 name "the bug tracker"
4540 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"
4541
4542 \end_inset
4543
4544 .
4545 \end_layout
4546
4547 \end_inset
4548
4549  Still, the developers have chosen this approach because it has several
4550  potential advantages over the other two.
4551 \end_layout
4552
4553 \begin_layout Standard
4554 These advantages are primarily due to the fact that the XHTML output routines,
4555  since they are part of LyX, know everything LyX knows about the document
4556  being exported.
4557 \begin_inset Foot
4558 status collapsed
4559
4560 \begin_layout Plain Layout
4561 Another advantage is that, since these routines are internal to LyX, they
4562  are immune to changes in LyX's file format, or to changes in the semantics
4563  of existing insets.
4564 \end_layout
4565
4566 \end_inset
4567
4568  So they know about the table of contents (as displayed in the outline),
4569  about the counters associated with different paragraph styles, and about
4570  user-defined styles.
4571  The XHTML output routines know what LyX knows about internationalization,
4572  too, so they will output 
4573 \begin_inset Quotes eld
4574 \end_inset
4575
4576 Chapter 1
4577 \begin_inset Quotes erd
4578 \end_inset
4579
4580  or 
4581 \begin_inset Quotes eld
4582 \end_inset
4583
4584
4585 \lang ngerman
4586 Kapitel
4587 \lang english
4588  1
4589 \begin_inset Quotes erd
4590 \end_inset
4591
4592 , depending upon the language in effect at the time.
4593  
4594 \end_layout
4595
4596 \begin_layout Standard
4597 Quite generally, the output routines know what LyX knows about document
4598  layout, that is, about how the document is to be rendered on screen.
4599  We use this information when we output the document as XHTML.
4600  In particular, LyX 
4601 \emph on
4602 automatically
4603 \emph default
4604  generates CSS style information corresponding to the layout information
4605  it uses to render the document on screen: if section headings are supposed
4606  to be sans-serif and bold as seen in LyX, then (by default) they will be
4607  sans-serif and bold when viewed in a web browser, too.
4608  And this is true not just for pre-defined styles, like Section, but for
4609  any style, including user-defined styles.
4610  Indeed, the XHTML output routines make no distinction between user-defined
4611  paragraph and character styles and LyX's own pre-defined styles: in each
4612  case, everything LyX knows about the styles is contained in the layout
4613  files.
4614  And much the same is true as regards pre-defined textual insets, such as
4615  footnotes, and various custom insets.
4616  
4617 \end_layout
4618
4619 \begin_layout Standard
4620 The result is that XHTML output can be customized and extended in exactly
4621  the same way LaTeX output can be customized and extended: through layout
4622  files and modules.
4623  See chapter five of the 
4624 \emph on
4625 Customization 
4626 \emph default
4627 manual for the details.
4628 \end_layout
4629
4630 \begin_layout Standard
4631 The remainder of this chapter contains more detailed information on XHTML
4632  output, its limitations, and ways to work around those limitations.
4633 \end_layout
4634
4635 \begin_layout Section
4636 Math Output in XHTML
4637 \end_layout
4638
4639 \begin_layout Standard
4640 LyX offers four choices for how math is rendered.
4641  These have various advantages and disadvantages:
4642 \end_layout
4643
4644 \begin_layout Itemize
4645 MathML
4646 \begin_inset Newline newline
4647 \end_inset
4648
4649 MathML is a dialect of XML designed specifically for mathematics on the
4650  web, and it typically renders very well in browsers that support it.
4651  The disadvantage is that not all browsers support MathML, and support is
4652  not complete even in the Gecko-based browsers, such as Firefox.
4653 \begin_inset Newline newline
4654 \end_inset
4655
4656 If LyX is unable to render a formula as MathML---for example, if the formula
4657  uses the 
4658 \begin_inset Flex Code
4659 status collapsed
4660
4661 \begin_layout Plain Layout
4662 xymatrix
4663 \end_layout
4664
4665 \end_inset
4666
4667  package or ERT---then it will instead output the formula as an image.
4668  
4669 \end_layout
4670
4671 \begin_layout Itemize
4672 HTML
4673 \begin_inset Newline newline
4674 \end_inset
4675
4676 As mentioned above, 
4677 \begin_inset Flex Code
4678 status collapsed
4679
4680 \begin_layout Plain Layout
4681 elyxer
4682 \end_layout
4683
4684 \end_inset
4685
4686  outputs math as HTML, styled by CSS.
4687 \begin_inset Foot
4688 status collapsed
4689
4690 \begin_layout Plain Layout
4691 LyX has borrowed some of the CSS for its HTML output from 
4692 \begin_inset Flex Code
4693 status collapsed
4694
4695 \begin_layout Plain Layout
4696 elyxer
4697 \end_layout
4698
4699 \end_inset
4700
4701 .
4702 \end_layout
4703
4704 \end_inset
4705
4706  For simple formulae, this can work quite well, though with more complicated
4707  formulae it tends to break down.
4708  Still, this method has the advantage that it is very widely supported and
4709  so it may be appropriate for documents that contain only a little, fairly
4710  simple math.
4711 \begin_inset Newline newline
4712 \end_inset
4713
4714 If Lyx is unable to render a formula as HTML---for example, if the formula
4715  uses the 
4716 \begin_inset Flex Code
4717 status collapsed
4718
4719 \begin_layout Plain Layout
4720 xymatrix
4721 \end_layout
4722
4723 \end_inset
4724
4725  package or ERT---then it will instead output the formula as an image.
4726  
4727 \end_layout
4728
4729 \begin_layout Itemize
4730 Images
4731 \begin_inset Newline newline
4732 \end_inset
4733
4734 Like 
4735 \begin_inset Flex Code
4736 status collapsed
4737
4738 \begin_layout Plain Layout
4739 htlatex
4740 \end_layout
4741
4742 \end_inset
4743
4744 , LyX will output formulae as images, the very same images, in fact, that
4745  are used for instant preview.
4746 \begin_inset Foot
4747 status collapsed
4748
4749 \begin_layout Plain Layout
4750 Instant preview does 
4751 \emph on
4752 not 
4753 \emph default
4754 have to be on for images to be output, however.
4755 \end_layout
4756
4757 \end_inset
4758
4759  The advantage to this method is that the images are simply generated by
4760  LaTeX, so they are very accurate.
4761  The disadvantage, as mentioned earlier, is that these are bitmapped images,
4762  so they do not scale terribly well, and one cannot copy them, etc.
4763  (As of this writing, there are also problems about equation numbering.
4764  See 
4765 \begin_inset CommandInset href
4766 LatexCommand href
4767 name "bug 6894"
4768 target "http://www.lyx.org/trac/ticket/6894"
4769
4770 \end_inset
4771
4772 .)
4773 \begin_inset Newline newline
4774 \end_inset
4775
4776 The size of the images can be controlled by setting the 
4777 \begin_inset Quotes eld
4778 \end_inset
4779
4780 Math Images Scaling
4781 \begin_inset Quotes erd
4782 \end_inset
4783
4784  parameter under 
4785 \begin_inset Flex MenuItem
4786 status collapsed
4787
4788 \begin_layout Plain Layout
4789 Document\SpecialChar \menuseparator
4790 Settings\SpecialChar \menuseparator
4791 Output
4792 \end_layout
4793
4794 \end_inset
4795
4796 .
4797 \begin_inset Foot
4798 status collapsed
4799
4800 \begin_layout Plain Layout
4801 For those who want to know, this controls the resolution of the image in
4802  dots per inch and is based upon a default of 75 dpi.
4803 \end_layout
4804
4805 \end_inset
4806
4807
4808 \begin_inset Newline newline
4809 \end_inset
4810
4811 If LyX for some reason fails to create an image for a formula (e.g., if a
4812  required LaTeX package is not installed), then it will fall back to outputing
4813  the raw LaTeX.
4814 \end_layout
4815
4816 \begin_layout Itemize
4817 LaTeX
4818 \begin_inset Newline newline
4819 \end_inset
4820
4821 Finally, LyX will happily output math as LaTeX.
4822  As well as being the output of last resort, this method can be used with
4823  such tools as 
4824 \begin_inset CommandInset href
4825 LatexCommand href
4826 name "jsMath"
4827 target "http://www.math.union.edu/~dpvc/jsMath/"
4828
4829 \end_inset
4830
4831 , which uses JavaScript to render LaTeX embedded in HTML documents.
4832  LyX wraps the LaTeX in either a 
4833 \begin_inset Flex Code
4834 status collapsed
4835
4836 \begin_layout Plain Layout
4837 span
4838 \end_layout
4839
4840 \end_inset
4841
4842  (for inline formulas) or 
4843 \begin_inset Flex Code
4844 status collapsed
4845
4846 \begin_layout Plain Layout
4847 div
4848 \end_layout
4849
4850 \end_inset
4851
4852  (for displayed formulas) with 
4853 \begin_inset Flex Code
4854 status collapsed
4855
4856 \begin_layout Plain Layout
4857 class='math'
4858 \end_layout
4859
4860 \end_inset
4861
4862 , as is required for jsMath.
4863 \end_layout
4864
4865 \begin_layout Standard
4866 One of these output methods must be selected under 
4867 \begin_inset Flex MenuItem
4868 status collapsed
4869
4870 \begin_layout Plain Layout
4871 Document\SpecialChar \menuseparator
4872 Settings\SpecialChar \menuseparator
4873 Output
4874 \end_layout
4875
4876 \end_inset
4877
4878 .
4879  By default, LyX outputs MathML.
4880  This is a document-wide setting, therefore.
4881 \end_layout
4882
4883 \begin_layout Standard
4884 Eventually, LyX will offer the user the option to select an alternate output
4885  method for a particular inset, say, one that isn't being rendered very
4886  well by MathML.
4887 \begin_inset Foot
4888 status collapsed
4889
4890 \begin_layout Plain Layout
4891 That said, since LyX falls back to images if the inset contains ERT, then
4892  one can force output as an image by putting some harmless ERT into the
4893  math, for example: 
4894 \begin_inset Formula $a=b\relax$
4895 \end_inset
4896
4897 .
4898 \end_layout
4899
4900 \end_inset
4901
4902
4903 \end_layout
4904
4905 \begin_layout Section
4906 Bibliography and Citations
4907 \end_layout
4908
4909 \begin_layout Standard
4910 XHTML output fully supports bibliographies and citations.
4911  
4912 \end_layout
4913
4914 \begin_layout Standard
4915 Citation labels are generated by the same machinery that generates LyX's
4916  on-screen labels, so the labels will look in the output much as they do
4917  in LyX, though better.
4918  If you are using numerical citations, then LyX will output numerical labels,
4919  such as [1] or [17], rather than simply showing the citation key in square
4920  brackets, as it does on-screen.
4921  If you are using author-year citations, then LyX will add lowercase letters
4922  to the years, just as BibTeX does, if it finds more than one citation for
4923  a given author-year combination.
4924  The labels will be printed with the bibliography entries.
4925  Note that there is, at present, no way to customize the appearance of the
4926  labels, for example, to choose between square brackets and parentheses.
4927 \end_layout
4928
4929 \begin_layout Standard
4930 Bibliography output is handled by the same machinery that handles the presentati
4931 on of reference information in the citation dialog, so you will see in the
4932  XHTML output pretty much what you would see if you were to look at a given
4933  entry in the citation dialog.
4934  The formatting can be customized in your layout file or, preferably, in
4935  a module.
4936  See the 
4937 \emph on
4938 Customization
4939 \emph default
4940  manual for the details.
4941 \end_layout
4942
4943 \begin_layout Standard
4944 The main defect at present is that cross-referenced information is printed
4945  with every entry with which it is associated.
4946  So you can see things like this:
4947 \end_layout
4948
4949 \begin_layout Quote
4950 Jason Stanley, 
4951 \begin_inset Quotes eld
4952 \end_inset
4953
4954 Context and Logical Form
4955 \begin_inset Quotes erd
4956 \end_inset
4957
4958 , in 
4959 \emph on
4960 Language in Context: Selected Essays
4961 \emph default
4962  (Oxford: Oxford University Press, 2007), pp.
4963  30--68.
4964 \end_layout
4965
4966 \begin_layout Quote
4967 Jason Stanley, 
4968 \begin_inset Quotes eld
4969 \end_inset
4970
4971 Semantics in Context
4972 \begin_inset Quotes erd
4973 \end_inset
4974
4975 , in 
4976 \emph on
4977 Language in Context: Selected Essays
4978 \emph default
4979  (Oxford: Oxford University Press, 2007), pp.
4980  201--30.
4981 \end_layout
4982
4983 \begin_layout Standard
4984 This should be fixed before long.
4985 \end_layout
4986
4987 \begin_layout Standard
4988 There is no support at present for sectioned bibliographies.
4989  If you have multiple bibliographies, then LyX will print the same bibliography
4990  over and over.
4991 \end_layout
4992
4993 \begin_layout Section
4994 Indexes
4995 \end_layout
4996
4997 \begin_layout Standard
4998 LyX will happily export indexes as XHTML, but with certain limitations at
4999  the moment.
5000 \end_layout
5001
5002 \begin_layout Standard
5003 Index export will be most reliable when you do not attempt to use the fancy
5004  constructs that are described in the section on indexes in the 
5005 \emph on
5006 User's Guide
5007 \emph default
5008 .
5009 \begin_inset Foot
5010 status collapsed
5011
5012 \begin_layout Plain Layout
5013 The main issue here is that LyX itself does not really handle these.
5014  It just lets you enter what you would have to enter in raw LaTeX.
5015 \end_layout
5016
5017 \end_inset
5018
5019  We'll describe how they are handled using the subsection headings from
5020  that section.
5021 \end_layout
5022
5023 \begin_layout Itemize
5024 Grouping Index Entries (aka, sub-entries): LyX makes an effort to support
5025  these, but the entries must be separated by 
5026 \begin_inset Quotes eld
5027 \end_inset
5028
5029  ! 
5030 \begin_inset Quotes erd
5031 \end_inset
5032
5033 , that is, there must be spaces around the exclamation point.
5034  This is because it is otherwise too difficult to check for escaped exclamation
5035  points, ones in math, and so forth.
5036 \end_layout
5037
5038 \begin_layout Itemize
5039 Page Ranges: There is no support at all for page ranges, since these make
5040  no sense with XHMTL.
5041  Instead, you will just get two index entries, one at either end.
5042 \end_layout
5043
5044 \begin_layout Itemize
5045 Cross-referencing: There is no support for cross-referencing.
5046  If LyX finds an entry containing the 
5047 \begin_inset Quotes eld
5048 \end_inset
5049
5050 |see\SpecialChar \ldots{}
5051
5052 \begin_inset Quotes erd
5053 \end_inset
5054
5055  construct, it is just dropped, and the rest is treated as an ordinary index
5056  entry.
5057 \end_layout
5058
5059 \begin_layout Itemize
5060 Index Entry Order: LyX does support attempts to fix the sorting order.
5061  It will take what is before the first `@' it finds and use that for sorting,
5062  taking what follows the first `@' to be the actual entry.
5063  At present, LyX does not check for escaped `@', so do not try to index
5064  email addresses.
5065 \end_layout
5066
5067 \begin_layout Itemize
5068 Index Entry Layout: You can format entries by using the text style dialog,
5069  or by using any other method available within LyX itself.
5070  There is no support for constructs like: 
5071 \begin_inset Quotes eld
5072 \end_inset
5073
5074 entry|textbf
5075 \begin_inset Quotes erd
5076 \end_inset
5077
5078 .
5079  Indeed, if LyX finds a pipe symbol, `|', in an entry, it will delete it
5080  and everything that follows it.
5081 \end_layout
5082
5083 \begin_layout Itemize
5084 Multiple Indexes: There is no support for multiple indexes.
5085  Rather, all index entries will be printed as one large index.
5086  To avoid our printing several versions of the index, we print only the
5087  main index, so make sure you have one.
5088 \end_layout
5089
5090 \begin_layout Section
5091 Nomenclature and Glossary
5092 \end_layout
5093
5094 \begin_layout Standard
5095 There is at present no support for glossaries.
5096  Adding it would be fairly trivial, and welcome.
5097 \end_layout
5098
5099 \begin_layout Chapter
5100 The LyX Server
5101 \end_layout
5102
5103 \begin_layout Section
5104 Introduction
5105 \end_layout
5106
5107 \begin_layout Standard
5108 The `LyX server' allows other programs to talk to LyX, invoke LyX commands,
5109  and retrieve information about the LyX internal state.
5110  This is only intended for advanced users, but they should find it useful.
5111  It is by writing to the LyX server, for example, that bibliography managers,
5112  such as JabRef, are able to 
5113 \begin_inset Quotes eld
5114 \end_inset
5115
5116 push
5117 \begin_inset Quotes erd
5118 \end_inset
5119
5120  citations to LyX.
5121 \end_layout
5122
5123 \begin_layout Section
5124 Starting the LyX Server
5125 \end_layout
5126
5127 \begin_layout Standard
5128 The LyX server works through the use of a pair of named pipes.
5129  These are usually located in 
5130 \begin_inset Flex Code
5131 status collapsed
5132
5133 \begin_layout Plain Layout
5134 UserDir
5135 \end_layout
5136
5137 \end_inset
5138
5139 , (except on Windows, where 
5140 \emph on
5141 local
5142 \emph default
5143  named pipes are special objects located in 
5144 \begin_inset Flex Code
5145 status collapsed
5146
5147 \begin_layout Plain Layout
5148
5149 \backslash
5150
5151 \backslash
5152 .
5153 \backslash
5154 pipe
5155 \end_layout
5156
5157 \end_inset
5158
5159 ) and have the names 
5160 \begin_inset Quotes eld
5161 \end_inset
5162
5163
5164 \begin_inset Flex Code
5165 status collapsed
5166
5167 \begin_layout Plain Layout
5168 lyxpipe.in
5169 \end_layout
5170
5171 \end_inset
5172
5173
5174 \begin_inset Quotes erd
5175 \end_inset
5176
5177  and 
5178 \begin_inset Quotes eld
5179 \end_inset
5180
5181
5182 \begin_inset Flex Code
5183 status collapsed
5184
5185 \begin_layout Plain Layout
5186 lyxpipe.out
5187 \end_layout
5188
5189 \end_inset
5190
5191
5192 \begin_inset Quotes erd
5193 \end_inset
5194
5195 .
5196  External programs write into 
5197 \begin_inset Flex Code
5198 status collapsed
5199
5200 \begin_layout Plain Layout
5201 lyxpipe.in
5202 \end_layout
5203
5204 \end_inset
5205
5206  and read back data from 
5207 \begin_inset Flex Code
5208 status collapsed
5209
5210 \begin_layout Plain Layout
5211 lyxpipe.out
5212 \end_layout
5213
5214 \end_inset
5215
5216 .
5217  The stem of the pipe names can be defined in the 
5218 \begin_inset Flex MenuItem
5219 status collapsed
5220
5221 \begin_layout Plain Layout
5222 Tools\SpecialChar \menuseparator
5223 Preferences
5224 \end_layout
5225
5226 \end_inset
5227
5228  dialog, for example 
5229 \begin_inset Flex Code
5230 status collapsed
5231
5232 \begin_layout Plain Layout
5233 "/home/myhome/lyxpipe"
5234 \end_layout
5235
5236 \end_inset
5237
5238 , or 
5239 \begin_inset Flex Code
5240 status collapsed
5241
5242 \begin_layout Plain Layout
5243 "
5244 \backslash
5245
5246 \backslash
5247 .
5248 \backslash
5249 pipe
5250 \backslash
5251 lyxpipe"
5252 \end_layout
5253
5254 \end_inset
5255
5256  on Windows (but any working path can be used).
5257  You 
5258 \emph on
5259 must
5260 \emph default
5261  configure this manually in order for the server to start.
5262 \end_layout
5263
5264 \begin_layout Standard
5265 LyX will add the '
5266 \begin_inset Flex Code
5267 status collapsed
5268
5269 \begin_layout Plain Layout
5270 .in
5271 \end_layout
5272
5273 \end_inset
5274
5275 ' and '
5276 \begin_inset Flex Code
5277 status collapsed
5278
5279 \begin_layout Plain Layout
5280 .out
5281 \end_layout
5282
5283 \end_inset
5284
5285 ' to create the pipes.
5286  If one of the pipes already exists, LyX will assume that another LyX process
5287  is already running and will not start the server.
5288  On POSIX (Unix like) systems, if for some other reason, an unused 
5289 \begin_inset Quotes eld
5290 \end_inset
5291
5292 stale
5293 \begin_inset Quotes erd
5294 \end_inset
5295
5296  pipe is left in existence when LyX closes, then LyX will try to delete
5297  it.
5298  If this fails for some reason, you will need to delete the pipes manually
5299  and then restart LyX.
5300  On Windows, pipes are deleted by the OS on program termination or crash,
5301  so 
5302 \begin_inset Quotes eld
5303 \end_inset
5304
5305 stale
5306 \begin_inset Quotes erd
5307 \end_inset
5308
5309  pipes should not be possible.
5310 \end_layout
5311
5312 \begin_layout Standard
5313 To have several LyX processes with servers at the same time, you have to
5314  use different configurations, perhaps by using separate user directories,
5315  each with its own 
5316 \begin_inset Flex Code
5317 status collapsed
5318
5319 \begin_layout Plain Layout
5320 preferences
5321 \end_layout
5322
5323 \end_inset
5324
5325  file, for each process.
5326 \end_layout
5327
5328 \begin_layout Standard
5329 If you are developing a client program, you might find it useful to enable
5330  debugging information from the LyX server.
5331  Do this by starting LyX as 
5332 \begin_inset Flex Code
5333 status collapsed
5334
5335 \begin_layout Plain Layout
5336 lyx -dbg lyxserver
5337 \end_layout
5338
5339 \end_inset
5340
5341 .
5342 \end_layout
5343
5344 \begin_layout Standard
5345 You can find a complete example client written in C in the source distribution
5346  as 
5347 \begin_inset Flex Code
5348 status collapsed
5349
5350 \begin_layout Plain Layout
5351 development/lyxserver/server_monitor.c
5352 \end_layout
5353
5354 \end_inset
5355
5356 .
5357 \end_layout
5358
5359 \begin_layout Standard
5360 Another useful tool is command-line based client you will find in 
5361 \begin_inset Flex Code
5362 status collapsed
5363
5364 \begin_layout Plain Layout
5365 src/client/lyxclient
5366 \end_layout
5367
5368 \end_inset
5369
5370 .
5371 \end_layout
5372
5373 \begin_layout Section
5374 Normal communication
5375 \end_layout
5376
5377 \begin_layout Standard
5378 To issue a LyX call, the client writes a line of ASCII text into the input
5379  pipe.
5380  This line has the following format:
5381 \end_layout
5382
5383 \begin_layout Quote
5384 LYXCMD:
5385 \emph on
5386 clientname
5387 \emph default
5388 :
5389 \emph on
5390 function
5391 \emph default
5392 :
5393 \emph on
5394 argument
5395 \end_layout
5396
5397 \begin_layout Description
5398 clientname is a name that the client can choose arbitrarily.
5399  Its only use is that LyX will echo it if it sends an answer—so a client
5400  can dispatch results from different requesters.
5401 \end_layout
5402
5403 \begin_layout Description
5404 function is the function you want LyX to perform.
5405  It is the same as the commands you'd use in the minibuffer.
5406 \end_layout
5407
5408 \begin_layout Description
5409 argument is an optional argument which is meaningful only to some functions
5410  (for instance, the 
5411 \begin_inset Quotes eld
5412 \end_inset
5413
5414 self-insert
5415 \begin_inset Quotes erd
5416 \end_inset
5417
5418  LFUN will insert the argument as text at the cursor position).
5419 \end_layout
5420
5421 \begin_layout Standard
5422 The answer from LyX will arrive in the output pipe and be of the form
5423 \end_layout
5424
5425 \begin_layout Quote
5426 INFO:
5427 \emph on
5428 clientname
5429 \emph default
5430 :
5431 \emph on
5432 function
5433 \emph default
5434 :
5435 \emph on
5436 data
5437 \end_layout
5438
5439 \begin_layout Standard
5440 where 
5441 \emph on
5442 clientname
5443 \emph default
5444  and 
5445 \emph on
5446 function
5447 \emph default
5448  are just echoed from the command request, while 
5449 \emph on
5450 data
5451 \emph default
5452  is more or less useful information filled according to how the command
5453  execution worked out.
5454  Some commands, such as 
5455 \begin_inset Quotes eld
5456 \end_inset
5457
5458 font-state
5459 \begin_inset Quotes erd
5460 \end_inset
5461
5462 , will return information about the internal state of LyX, while other will
5463  return an empty data-response.
5464  This means that the command execution went fine.
5465 \end_layout
5466
5467 \begin_layout Standard
5468 In case of errors, the response from LyX will have this form
5469 \end_layout
5470
5471 \begin_layout Quote
5472 ERROR:
5473 \emph on
5474 clientname
5475 \emph default
5476 :
5477 \emph on
5478 function
5479 \emph default
5480 :
5481 \emph on
5482 error message
5483 \end_layout
5484
5485 \begin_layout Standard
5486 where the 
5487 \emph on
5488 error message
5489 \emph default
5490  should contain an explanation of why the command failed.
5491 \end_layout
5492
5493 \begin_layout Standard
5494 Examples:
5495 \end_layout
5496
5497 \begin_layout LyX-Code
5498 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
5499 \begin_inset Newline newline
5500 \end_inset
5501
5502 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
5503 \begin_inset Newline newline
5504 \end_inset
5505
5506 read a <~/.lyxpipe.out
5507 \begin_inset Newline newline
5508 \end_inset
5509
5510 echo $a
5511 \end_layout
5512
5513 \begin_layout Section
5514 Notification
5515 \end_layout
5516
5517 \begin_layout Standard
5518 LyX can notify clients of events going on asynchronously.
5519  Currently it will only do this if the user binds a key sequence with the
5520  function 
5521 \begin_inset Quotes eld
5522 \end_inset
5523
5524 notify
5525 \begin_inset Quotes erd
5526 \end_inset
5527
5528 .
5529  The format of the string LyX sends is as follows:
5530 \end_layout
5531
5532 \begin_layout Quote
5533 \begin_inset Flex Code
5534 status collapsed
5535
5536 \begin_layout Plain Layout
5537 NOTIFY:
5538 \end_layout
5539
5540 \end_inset
5541
5542
5543 \emph on
5544 key-sequence
5545 \end_layout
5546
5547 \begin_layout Standard
5548 where 
5549 \emph on
5550 key-sequence
5551 \emph default
5552  is the printed representation of the key sequence that was actually typed
5553  by the user.
5554 \end_layout
5555
5556 \begin_layout Standard
5557 This mechanism can be used to extend LyX's command set and implement macros.
5558  Bind some key sequence to 
5559 \begin_inset Quotes eld
5560 \end_inset
5561
5562 notify
5563 \begin_inset Quotes erd
5564 \end_inset
5565
5566 .
5567  Then start a client that listens on the output pipe, dispatches the command
5568  according to the sequence, and starts a function that may use LyX calls
5569  and LyX requests to issue a command or a series of commands to LyX.
5570 \end_layout
5571
5572 \begin_layout Section
5573 The simple LyX Server Protocol
5574 \end_layout
5575
5576 \begin_layout Standard
5577 LyX implements a simple protocol that can be used for session management.
5578  All messages are of the form
5579 \end_layout
5580
5581 \begin_layout Quote
5582 LYXSRV:
5583 \emph on
5584 clientname
5585 \emph default
5586 :
5587 \emph on
5588 protocol message
5589 \end_layout
5590
5591 \begin_layout Standard
5592 where 
5593 \emph on
5594 protocol message
5595 \emph default
5596  can be 
5597 \begin_inset Quotes eld
5598 \end_inset
5599
5600 hello
5601 \begin_inset Quotes erd
5602 \end_inset
5603
5604  or 
5605 \begin_inset Quotes eld
5606 \end_inset
5607
5608 bye
5609 \begin_inset Quotes erd
5610 \end_inset
5611
5612 .
5613  If 
5614 \begin_inset Quotes eld
5615 \end_inset
5616
5617 hello
5618 \begin_inset Quotes erd
5619 \end_inset
5620
5621  is received from a client, LyX will report back to inform the client that
5622  it's listening to it's messages, while 
5623 \begin_inset Quotes eld
5624 \end_inset
5625
5626 bye
5627 \begin_inset Quotes erd
5628 \end_inset
5629
5630  sent from LyX will inform clients that LyX is closing.
5631 \end_layout
5632
5633 \begin_layout Section
5634 Reverse DVI/PDF search
5635 \end_layout
5636
5637 \begin_layout Standard
5638 Some DVI/PDF viewers
5639 \begin_inset Foot
5640 status collapsed
5641
5642 \begin_layout Plain Layout
5643 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
5644  Skim on Mac OSX and SumatraPDF on Windows.
5645 \end_layout
5646
5647 \end_inset
5648
5649  provide 
5650 \emph on
5651 reverse search
5652 \emph default
5653  facility (also called 
5654 \emph on
5655 inverse search
5656 \emph default
5657 ).
5658  This means that you can tell LyX to put the cursor to a specific line in
5659  the document by clicking at the respective position in the DVI/PDF output.
5660  To achieve this, the viewer must be able to communicate with LyX.
5661  This is done via the LyX server either by using the named pipe (
5662 \emph on
5663 lyxpipe
5664 \emph default
5665 ), or the UNIX domain socket (
5666 \emph on
5667 lyxsocket
5668 \emph default
5669 ) that LyX creates in its temporary directory (this is the way the 
5670 \begin_inset Flex Code
5671 status collapsed
5672
5673 \begin_layout Plain Layout
5674 lyxclient
5675 \end_layout
5676
5677 \end_inset
5678
5679  program communicates with LyX).
5680  In some cases, you need a helper script that mediates between the viewer
5681  and LyX, in others, the viewer can communicate with LyX directly.
5682  This depends on the selected viewer and on your operating system.
5683  The same applies to the way viewers need to be configured and the way the
5684  reverse search is actually performed.
5685  In what follows, we will thus describe how to setup reverse search for
5686  specific viewers.
5687  Before we turn to this, though, we will explain what needs to be done generally
5688  to enable reverse search in the DVI/PDF output.
5689 \end_layout
5690
5691 \begin_layout Subsection
5692 \begin_inset CommandInset label
5693 LatexCommand label
5694 name "sub:rev-search"
5695
5696 \end_inset
5697
5698 Automatic setup
5699 \end_layout
5700
5701 \begin_layout Standard
5702 In most cases LyX will do the work for you by enabling 
5703 \begin_inset Flex MenuItem
5704 status collapsed
5705
5706 \begin_layout Plain Layout
5707 Document\SpecialChar \menuseparator
5708 Output\SpecialChar \menuseparator
5709 Synchronize with Output
5710 \end_layout
5711
5712 \end_inset
5713
5714 .
5715  In such a case LyX will automatically insert the necessary SyncTeX macro
5716  (for PDF) or load the srcltx package (for DVI) respectively.
5717  This option can be easily reached also on 
5718 \begin_inset Flex Code
5719 status collapsed
5720
5721 \begin_layout Plain Layout
5722 View/Update
5723 \end_layout
5724
5725 \end_inset
5726
5727  Toolbar.
5728 \end_layout
5729
5730 \begin_layout Standard
5731 If you need a different setting, you can select or input a custom macro
5732  from the drop down box just below 
5733 \begin_inset Flex MenuItem
5734 status collapsed
5735
5736 \begin_layout Plain Layout
5737 Document\SpecialChar \menuseparator
5738 Output\SpecialChar \menuseparator
5739 Synchronize with Output
5740 \end_layout
5741
5742 \end_inset
5743
5744 .
5745 \end_layout
5746
5747 \begin_layout Standard
5748 Please note that including the 
5749 \begin_inset Flex Code
5750 status collapsed
5751
5752 \begin_layout Plain Layout
5753 srcltx
5754 \end_layout
5755
5756 \end_inset
5757
5758  package or 
5759 \begin_inset Flex Code
5760 status collapsed
5761
5762 \begin_layout Plain Layout
5763 src-specials
5764 \end_layout
5765
5766 \end_inset
5767
5768  sometimes has an undesired impact on the typesetting.
5769  Thus, you should switch output synchronization off for the final typesetting
5770  if you use the 
5771 \begin_inset Flex Code
5772 status collapsed
5773
5774 \begin_layout Plain Layout
5775 srcltx
5776 \end_layout
5777
5778 \end_inset
5779
5780  package or 
5781 \begin_inset Flex Code
5782 status collapsed
5783
5784 \begin_layout Plain Layout
5785 src-specials
5786 \end_layout
5787
5788 \end_inset
5789
5790 .
5791 \end_layout
5792
5793 \begin_layout Standard
5794 In case you need some more special settings that are not covered by the
5795  automatic settings, read the next section about how to set up output synchroniz
5796 ation manually.
5797  If the automatic setup suits your needs, you can readily jump to section
5798 \begin_inset space ~
5799 \end_inset
5800
5801
5802 \begin_inset CommandInset ref
5803 LatexCommand ref
5804 reference "sub:configuring-viewers"
5805
5806 \end_inset
5807
5808 , where the necessary configuration steps in your viewer -- needed both
5809  with the automatic and the manual setup -- are described.
5810 \end_layout
5811
5812 \begin_layout Subsection
5813 Manual setup
5814 \end_layout
5815
5816 \begin_layout Standard
5817 LaTeX provides several different methods for reverse search.
5818  Some are built-in in the 
5819 \begin_inset Flex Code
5820 status collapsed
5821
5822 \begin_layout Plain Layout
5823 latex/pdflatex
5824 \end_layout
5825
5826 \end_inset
5827
5828  program, some are provided by external packages.
5829  Your choice depends on whether your LaTeX distribution already provides
5830  a given method (the built-in methods are rather new) and whether your viewer
5831  can cope with it.
5832  The available methods are described in the following.
5833 \end_layout
5834
5835 \begin_layout Subsubsection*
5836 Built-in DVI-search via src-specials (DVI only) 
5837 \end_layout
5838
5839 \begin_layout Standard
5840 This method provides the DVI file with the necessary information for reverse
5841  search.
5842  It is available in LaTeX since quite some time (any somewhat recent LaTeX
5843  distribution should include it), and it works reliably.
5844  To enable it, change the 
5845 \begin_inset Flex MenuItem
5846 status collapsed
5847
5848 \begin_layout Plain Layout
5849 LaT
5850 \begin_inset ERT
5851 status collapsed
5852
5853 \begin_layout Plain Layout
5854
5855 {}
5856 \end_layout
5857
5858 \end_inset
5859
5860 eX (plain)->DVI
5861 \end_layout
5862
5863 \end_inset
5864
5865  or 
5866 \begin_inset Flex MenuItem
5867 status collapsed
5868
5869 \begin_layout Plain Layout
5870 LaT
5871 \begin_inset ERT
5872 status collapsed
5873
5874 \begin_layout Plain Layout
5875
5876 {}
5877 \end_layout
5878
5879 \end_inset
5880
5881 eX (plain)->DraftDVI
5882 \end_layout
5883
5884 \end_inset
5885
5886  converter in 
5887 \begin_inset Flex MenuItem
5888 status collapsed
5889
5890 \begin_layout Plain Layout
5891 Preferences\SpecialChar \menuseparator
5892 File Handling\SpecialChar \menuseparator
5893 Converters
5894 \end_layout
5895
5896 \end_inset
5897
5898  to 
5899 \begin_inset Flex Code
5900 status collapsed
5901
5902 \begin_layout Plain Layout
5903 latex -src-specials $$i
5904 \end_layout
5905
5906 \end_inset
5907
5908 .
5909  If this doesn't work, check if your TeX engine needs different options
5910  (the syntax might differ in some distributions).
5911 \end_layout
5912
5913 \begin_layout Subsubsection*
5914 External Packages (PDFSync and scrltx) 
5915 \end_layout
5916
5917 \begin_layout Standard
5918 The packages 
5919 \emph on
5920 pdfsync
5921 \emph default
5922  and 
5923 \emph on
5924 scrltx
5925 \emph default
5926  provide reverse search facility for PDF output (via pdflatex) and DVI output,
5927  respectively.
5928  In order to enable it, load the packages in the LyX preamble: 
5929 \end_layout
5930
5931 \begin_layout Itemize
5932 \begin_inset Flex Code
5933 status collapsed
5934
5935 \begin_layout Plain Layout
5936
5937 \backslash
5938 usepackage{pdfsync}
5939 \end_layout
5940
5941 \end_inset
5942
5943  for reverse PDF search,
5944 \end_layout
5945
5946 \begin_layout Itemize
5947 \begin_inset Flex Code
5948 status collapsed
5949
5950 \begin_layout Plain Layout
5951
5952 \backslash
5953 usepackage[active]{srcltx}
5954 \end_layout
5955
5956 \end_inset
5957
5958  for reverse DVI search.
5959 \end_layout
5960
5961 \begin_layout Standard
5962 If you want to be able to perform both DVI and PDF reverse searches, you
5963  can also insert in the preamble the following lines
5964 \end_layout
5965
5966 \begin_layout LyX-Code
5967
5968 \backslash
5969 usepackage{ifpdf}
5970 \begin_inset Newline newline
5971 \end_inset
5972
5973
5974 \backslash
5975 ifpdf
5976 \begin_inset Newline newline
5977 \end_inset
5978
5979   
5980 \backslash
5981 usepackage{pdfsync}
5982 \begin_inset Newline newline
5983 \end_inset
5984
5985
5986 \backslash
5987 else
5988 \begin_inset Newline newline
5989 \end_inset
5990
5991   
5992 \backslash
5993 usepackage[active]{srcltx}
5994 \begin_inset Newline newline
5995 \end_inset
5996
5997
5998 \backslash
5999 fi
6000 \end_layout
6001
6002 \begin_layout Standard
6003 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6004  right package will be used.
6005 \end_layout
6006
6007 \begin_layout Standard
6008 Note that PDFSync might affect the output layout of your document.
6009  It is therefore advised to disable PDFsync for final documents.
6010 \end_layout
6011
6012 \begin_layout Subsubsection*
6013 Built-in reverse search via SyncTeX (DVI and PDF) 
6014 \end_layout
6015
6016 \begin_layout Standard
6017 Recent versions of 
6018 \begin_inset Flex Code
6019 status collapsed
6020
6021 \begin_layout Plain Layout
6022 (pdf)latex
6023 \end_layout
6024
6025 \end_inset
6026
6027  have built-in support for both PDF and DVI reverse search.
6028  This so-called 
6029 \emph on
6030 SyncTeX
6031 \emph default
6032  facility is basically the result of the integration of the PDFSync package
6033  to the pdftex program and its merge with the 
6034 \emph on
6035 scr-specials
6036 \emph default
6037  approach.
6038  You need at least TeXLive 2008 or a recent MikTeX distribution in order
6039  to use it.
6040  Also note that only a few PDF viewers (Skim on the Mac, SumatraPDF on Windows)
6041  already provide SyncTeX support.
6042 \end_layout
6043
6044 \begin_layout Standard
6045 To enable SyncTeX for DVI output, change the 
6046 \begin_inset Flex MenuItem
6047 status collapsed
6048
6049 \begin_layout Plain Layout
6050 LaT
6051 \begin_inset ERT
6052 status collapsed
6053
6054 \begin_layout Plain Layout
6055
6056 {}
6057 \end_layout
6058
6059 \end_inset
6060
6061 eX (plain) -> DVI
6062 \end_layout
6063
6064 \end_inset
6065
6066  or 
6067 \begin_inset Flex MenuItem
6068 status collapsed
6069
6070 \begin_layout Plain Layout
6071 LaT
6072 \begin_inset ERT
6073 status collapsed
6074
6075 \begin_layout Plain Layout
6076
6077 {}
6078 \end_layout
6079
6080 \end_inset
6081
6082 eX (plain) -> DraftDVI
6083 \end_layout
6084
6085 \end_inset
6086
6087  converter in 
6088 \begin_inset Flex MenuItem
6089 status collapsed
6090
6091 \begin_layout Plain Layout
6092 Preferences\SpecialChar \menuseparator
6093 File Handling\SpecialChar \menuseparator
6094 Converters
6095 \end_layout
6096
6097 \end_inset
6098
6099  to 
6100 \begin_inset Flex Code
6101 status collapsed
6102
6103 \begin_layout Plain Layout
6104 latex -synctex=1 $$i
6105 \end_layout
6106
6107 \end_inset
6108
6109 , and for PDF output, change the 
6110 \begin_inset Flex MenuItem
6111 status collapsed
6112
6113 \begin_layout Plain Layout
6114 LaT
6115 \begin_inset ERT
6116 status collapsed
6117
6118 \begin_layout Plain Layout
6119
6120 {}
6121 \end_layout
6122
6123 \end_inset
6124
6125 eX (pdflatex) -> PDF (pdflatex)
6126 \end_layout
6127
6128 \end_inset
6129
6130  or converter to 
6131 \begin_inset Flex Code
6132 status collapsed
6133
6134 \begin_layout Plain Layout
6135 pdflatex -synctex=1 $$i
6136 \end_layout
6137
6138 \end_inset
6139
6140 .
6141  Check the documentation of your viewer whether the viewer needs to be configure
6142 d for the use with SyncTeX.
6143 \begin_inset Foot
6144 status collapsed
6145
6146 \begin_layout Plain Layout
6147 The 
6148 \begin_inset Flex Code
6149 status collapsed
6150
6151 \begin_layout Plain Layout
6152 -synctex=1
6153 \end_layout
6154
6155 \end_inset
6156
6157  option enables gzip compression.
6158  If your viewer does not support it, you should instead use 
6159 \begin_inset Flex Code
6160 status collapsed
6161
6162 \begin_layout Plain Layout
6163 -synctex=-1
6164 \end_layout
6165
6166 \end_inset
6167
6168 .
6169 \end_layout
6170
6171 \end_inset
6172
6173
6174 \end_layout
6175
6176 \begin_layout Subsection
6177 Configuring and using specific viewers
6178 \begin_inset CommandInset label
6179 LatexCommand label
6180 name "sub:configuring-viewers"
6181
6182 \end_inset
6183
6184
6185 \end_layout
6186
6187 \begin_layout Subsubsection*
6188 Xdvi (all platforms)
6189 \end_layout
6190
6191 \begin_layout Standard
6192 If you use 
6193 \begin_inset Flex Code
6194 status collapsed
6195
6196 \begin_layout Plain Layout
6197 xdvi
6198 \end_layout
6199
6200 \end_inset
6201
6202 , you don't need to do anything else for performing a reverse DVI search,
6203  as LyX already provides the necessary hooks for automatically using the
6204  
6205 \begin_inset Flex Code
6206 status collapsed
6207
6208 \begin_layout Plain Layout
6209 lyxclient
6210 \end_layout
6211
6212 \end_inset
6213
6214  program.
6215  Just setup your document as described above (reverse search is triggered
6216  by Ctrl-click or Alt-click on Mac OSX, respectively).
6217 \end_layout
6218
6219 \begin_layout Standard
6220 However, if for whatever reason you want to use the named pipe instead of
6221  the socket for communicating with LyX, simply change the DVI viewer in
6222  
6223 \begin_inset Flex MenuItem
6224 status collapsed
6225
6226 \begin_layout Plain Layout
6227 Preferences\SpecialChar \menuseparator
6228 File Handling\SpecialChar \menuseparator
6229 File formats
6230 \end_layout
6231
6232 \end_inset
6233
6234  to
6235 \begin_inset Foot
6236 status collapsed
6237
6238 \begin_layout Plain Layout
6239 On Mac OSX you have to use 
6240 \begin_inset Flex Code
6241 status collapsed
6242
6243 \begin_layout Plain Layout
6244 DISPLAY=:0.0 xdvi -editor 'lyxeditor.sh %f %l'
6245 \end_layout
6246
6247 \end_inset
6248
6249
6250 \end_layout
6251
6252 \end_inset
6253
6254  
6255 \begin_inset Flex Code
6256 status collapsed
6257
6258 \begin_layout Plain Layout
6259 xdvi -editor 'lyxeditor.sh %f %l'
6260 \end_layout
6261
6262 \end_inset
6263
6264 , where 
6265 \begin_inset Flex Code
6266 status collapsed
6267
6268 \begin_layout Plain Layout
6269 lyxeditor.sh
6270 \end_layout
6271
6272 \end_inset
6273
6274  is a suitable script.
6275  For example, a minimal shell script is the following one:
6276 \end_layout
6277
6278 \begin_layout LyX-Code
6279 #!/bin/sh
6280 \begin_inset Newline newline
6281 \end_inset
6282
6283 LYXPIPE="/path/to/lyxpipe"
6284 \begin_inset Newline newline
6285 \end_inset
6286
6287 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6288 \begin_inset Newline newline
6289 \end_inset
6290
6291 echo "$COMMAND" > "${LYXPIPE}".in || exit
6292 \begin_inset Newline newline
6293 \end_inset
6294
6295 read < "${LYXPIPE}".out || exit
6296 \end_layout
6297
6298 \begin_layout Standard
6299 where 
6300 \begin_inset Flex Code
6301 status collapsed
6302
6303 \begin_layout Plain Layout
6304 /path/to/lyxpipe
6305 \end_layout
6306
6307 \end_inset
6308
6309  is the Ly
6310 \begin_inset ERT
6311 status collapsed
6312
6313 \begin_layout Plain Layout
6314
6315 {}
6316 \end_layout
6317
6318 \end_inset
6319
6320 XServer pipe path specified in 
6321 \begin_inset Flex MenuItem
6322 status collapsed
6323
6324 \begin_layout Plain Layout
6325 Preferences\SpecialChar \menuseparator
6326 Paths
6327 \end_layout
6328
6329 \end_inset
6330
6331 .
6332 \begin_inset Foot
6333 status collapsed
6334
6335 \begin_layout Plain Layout
6336 In the 
6337 \begin_inset Flex Code
6338 status collapsed
6339
6340 \begin_layout Plain Layout
6341 development/tools
6342 \end_layout
6343
6344 \end_inset
6345
6346  folder of a source distribution you can find a 
6347 \begin_inset Flex Code
6348 status collapsed
6349
6350 \begin_layout Plain Layout
6351 lyxeditor
6352 \end_layout
6353
6354 \end_inset
6355
6356  script which is able to locate the 
6357 \emph on
6358 lyxpipe
6359 \emph default
6360  based on your preferences.
6361 \end_layout
6362
6363 \end_inset
6364
6365
6366 \end_layout
6367
6368 \begin_layout Subsubsection*
6369 MacDviX (Mac OSX)
6370 \end_layout
6371
6372 \begin_layout Standard
6373 At the end of 
6374 \begin_inset Flex Code
6375 status collapsed
6376
6377 \begin_layout Plain Layout
6378 /Applications/MacDviX_Folder/calleditor.script
6379 \end_layout
6380
6381 \end_inset
6382
6383 , add the following lines:
6384 \end_layout
6385
6386 \begin_layout LyX-Code
6387 /Applications/Ly
6388 \begin_inset ERT
6389 status collapsed
6390
6391 \begin_layout Plain Layout
6392
6393 {}
6394 \end_layout
6395
6396 \end_inset
6397
6398 X.app/Contents/MacOS/lyxeditor "$2" $1
6399 \begin_inset Newline newline
6400 \end_inset
6401
6402 exit 1
6403 \end_layout
6404
6405 \begin_layout Standard
6406 Modify the lines accordingly if you install LyX somewhere else than in the
6407  Applications folder.
6408 \end_layout
6409
6410 \begin_layout Standard
6411 Reverse search is triggered by Alt-click (OPTION-click).
6412 \end_layout
6413
6414 \begin_layout Subsubsection*
6415 Skim (Mac OSX)
6416 \end_layout
6417
6418 \begin_layout Standard
6419 Enter 
6420 \begin_inset Flex Code
6421 status collapsed
6422
6423 \begin_layout Plain Layout
6424 open -a Skim.app $$i
6425 \end_layout
6426
6427 \end_inset
6428
6429  to the viewer setting in 
6430 \begin_inset Flex MenuItem
6431 status collapsed
6432
6433 \begin_layout Plain Layout
6434 Preferences\SpecialChar \menuseparator
6435 File Handling\SpecialChar \menuseparator
6436 File formats\SpecialChar \menuseparator
6437 PDF (pdflatex)
6438 \end_layout
6439
6440 \end_inset
6441
6442 , and then in 
6443 \begin_inset Flex MenuItem
6444 status collapsed
6445
6446 \begin_layout Plain Layout
6447 Skim\SpecialChar \menuseparator
6448 Preferences\SpecialChar \menuseparator
6449 Sync
6450 \end_layout
6451
6452 \end_inset
6453
6454  select Ly
6455 \begin_inset ERT
6456 status collapsed
6457
6458 \begin_layout Plain Layout
6459
6460 {}
6461 \end_layout
6462
6463 \end_inset
6464
6465 X.
6466 \end_layout
6467
6468 \begin_layout Standard
6469 Reverse search is triggered by COMMAND-SHIFT-click
6470 \end_layout
6471
6472 \begin_layout Subsubsection*
6473 Okular (KDE)
6474 \end_layout
6475
6476 \begin_layout Standard
6477 Go to 
6478 \begin_inset Flex MenuItem
6479 status collapsed
6480
6481 \begin_layout Plain Layout
6482 Settings\SpecialChar \menuseparator
6483 Configure Okular\SpecialChar \ldots{}
6484 \SpecialChar \menuseparator
6485 Editor
6486 \end_layout
6487
6488 \end_inset
6489
6490 , select 
6491 \begin_inset Quotes eld
6492 \end_inset
6493
6494 Custom Text Editor
6495 \begin_inset Quotes erd
6496 \end_inset
6497
6498  and add the command 
6499 \begin_inset Flex Code
6500 status collapsed
6501
6502 \begin_layout Plain Layout
6503 lyxclient -g %f %l
6504 \end_layout
6505
6506 \end_inset
6507
6508 .
6509 \end_layout
6510
6511 \begin_layout Standard
6512 Reverse search is triggered by SHIFT-click.
6513 \end_layout
6514
6515 \begin_layout Subsubsection*
6516 YAP (Windows)
6517 \end_layout
6518
6519 \begin_layout Standard
6520 Launch yap, choose its 
6521 \begin_inset Flex MenuItem
6522 status collapsed
6523
6524 \begin_layout Plain Layout
6525 View\SpecialChar \menuseparator
6526 Options
6527 \end_layout
6528
6529 \end_inset
6530
6531  menu and select the 
6532 \begin_inset Quotes eld
6533 \end_inset
6534
6535 Inverse DVI Search
6536 \begin_inset Quotes erd
6537 \end_inset
6538
6539  tab.
6540  Click on the 
6541 \begin_inset Quotes eld
6542 \end_inset
6543
6544 New\SpecialChar \ldots{}
6545
6546 \begin_inset Quotes erd
6547 \end_inset
6548
6549  button and, in the window that opens, enter 
6550 \begin_inset Quotes eld
6551 \end_inset
6552
6553 LyX Editor
6554 \begin_inset Quotes erd
6555 \end_inset
6556
6557  (or any other name you like) in the 
6558 \begin_inset Quotes eld
6559 \end_inset
6560
6561 Name:
6562 \begin_inset Quotes erd
6563 \end_inset
6564
6565  field.
6566  Now click on the button labeled 
6567 \begin_inset Quotes eld
6568 \end_inset
6569
6570 \SpecialChar \ldots{}
6571
6572 \begin_inset Quotes erd
6573 \end_inset
6574
6575  to open a file dialog and navigate to the directory containing the batch
6576  file 
6577 \begin_inset Flex Code
6578 status collapsed
6579
6580 \begin_layout Plain Layout
6581 lyxeditor.bat
6582 \end_layout
6583
6584 \end_inset
6585
6586  (see below).
6587  Select 
6588 \begin_inset Flex Code
6589 status collapsed
6590
6591 \begin_layout Plain Layout
6592 lyxeditor.bat
6593 \end_layout
6594
6595 \end_inset
6596
6597  and then specify the program arguments as 
6598 \begin_inset Flex Code
6599 status collapsed
6600
6601 \begin_layout Plain Layout
6602 %f %l
6603 \end_layout
6604
6605 \end_inset
6606
6607 .
6608  The 
6609 \begin_inset Flex Code
6610 status collapsed
6611
6612 \begin_layout Plain Layout
6613 lyxeditor.bat
6614 \end_layout
6615
6616 \end_inset
6617
6618  wrapper is used for communicating with LyX through the 
6619 \emph on
6620 lyxpipe
6621 \emph default
6622  and is as follows:
6623 \end_layout
6624
6625 \begin_layout LyX-Code
6626 @echo off
6627 \begin_inset Newline newline
6628 \end_inset
6629
6630 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
6631 \backslash
6632
6633 \backslash
6634 .
6635 \backslash
6636 pipe
6637 \backslash
6638 lyxpipe.in
6639 \begin_inset Newline newline
6640 \end_inset
6641
6642 type 
6643 \backslash
6644
6645 \backslash
6646 .
6647 \backslash
6648 pipe
6649 \backslash
6650 lyxpipe.out
6651 \end_layout
6652
6653 \begin_layout Standard
6654 Make sure that the LyXServer pipe path you specified in LyX is 
6655 \begin_inset Flex Code
6656 status collapsed
6657
6658 \begin_layout Plain Layout
6659
6660 \backslash
6661
6662 \backslash
6663 .
6664 \backslash
6665 pipe
6666 \backslash
6667 lyxpipe
6668 \end_layout
6669
6670 \end_inset
6671
6672 , otherwise change the 
6673 \begin_inset Flex Code
6674 status collapsed
6675
6676 \begin_layout Plain Layout
6677 lyxeditor.bat
6678 \end_layout
6679
6680 \end_inset
6681
6682  wrapper accordingly.
6683 \end_layout
6684
6685 \begin_layout Standard
6686 In yap, reverse search is triggered by double-click.
6687 \end_layout
6688
6689 \begin_layout Subsubsection*
6690 SumatraPDF (Windows)
6691 \end_layout
6692
6693 \begin_layout Standard
6694 In order to use SumatraPDF for inverse search, enter 
6695 \begin_inset Flex Code
6696 status collapsed
6697
6698 \begin_layout Plain Layout
6699 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
6700 \end_layout
6701
6702 \end_inset
6703
6704  in the viewer setting in 
6705 \begin_inset Flex MenuItem
6706 status collapsed
6707
6708 \begin_layout Plain Layout
6709 Preferences\SpecialChar \menuseparator
6710 File Handling\SpecialChar \menuseparator
6711 File formats\SpecialChar \menuseparator
6712 PDF (pdflatex)
6713 \end_layout
6714
6715 \end_inset
6716
6717 , where 
6718 \begin_inset Flex Code
6719 status collapsed
6720
6721 \begin_layout Plain Layout
6722 lyxeditor.bat
6723 \end_layout
6724
6725 \end_inset
6726
6727  is the previous wrapper.
6728  If SumatraPDF.exe is not in your command PATH, use its full file name.
6729 \end_layout
6730
6731 \begin_layout Standard
6732 Reverse search is triggered by double-click.
6733 \end_layout
6734
6735 \begin_layout Subsubsection*
6736 YAP (Cygwin)
6737 \end_layout
6738
6739 \begin_layout Standard
6740 First of all, make sure that yap is your default DVI viewer in the Windows
6741  environment, then launch it, choose its 
6742 \begin_inset Flex MenuItem
6743 status collapsed
6744
6745 \begin_layout Plain Layout
6746 View\SpecialChar \menuseparator
6747 Options
6748 \end_layout
6749
6750 \end_inset
6751
6752  menu and select the 
6753 \begin_inset Quotes eld
6754 \end_inset
6755
6756 Inverse DVI Search
6757 \begin_inset Quotes erd
6758 \end_inset
6759
6760  tab.
6761  Click on the 
6762 \begin_inset Quotes eld
6763 \end_inset
6764
6765 New\SpecialChar \ldots{}
6766
6767 \begin_inset Quotes erd
6768 \end_inset
6769
6770  button and, in the window that opens, enter 
6771 \begin_inset Quotes eld
6772 \end_inset
6773
6774 LyX Editor
6775 \begin_inset Quotes erd
6776 \end_inset
6777
6778  (or any other name you like) in the 
6779 \begin_inset Quotes eld
6780 \end_inset
6781
6782 Name:
6783 \begin_inset Quotes erd
6784 \end_inset
6785
6786  field.
6787  Now click on the button labeled 
6788 \begin_inset Quotes eld
6789 \end_inset
6790
6791 \SpecialChar \ldots{}
6792
6793 \begin_inset Quotes erd
6794 \end_inset
6795
6796  to open a file dialog and navigate to the directory containing the 
6797 \begin_inset Flex Code
6798 status collapsed
6799
6800 \begin_layout Plain Layout
6801 lyxeditor.exe
6802 \end_layout
6803
6804 \end_inset
6805
6806  program (which is installed by default on Cygwin along with the LyX executable).
6807  Select 
6808 \begin_inset Flex Code
6809 status collapsed
6810
6811 \begin_layout Plain Layout
6812 lyxeditor.exe
6813 \end_layout
6814
6815 \end_inset
6816
6817  and then specify the program arguments as 
6818 \begin_inset Flex Code
6819 status collapsed
6820
6821 \begin_layout Plain Layout
6822 -g %f %l
6823 \end_layout
6824
6825 \end_inset
6826
6827 .
6828  In this way, you will be using the 
6829 \emph on
6830 lyxsocket
6831 \emph default
6832  for communicating with LyX.
6833  If, for whatever reason, you want to use the 
6834 \emph on
6835 lyxpipe
6836 \emph default
6837 , omit the 
6838 \begin_inset Flex Code
6839 status collapsed
6840
6841 \begin_layout Plain Layout
6842 -g
6843 \end_layout
6844
6845 \end_inset
6846
6847  option and be sure to specify the LyXServer pipe path in the LyX preferences.
6848 \end_layout
6849
6850 \begin_layout Standard
6851 In yap, reverse search is triggered by double-click.
6852 \end_layout
6853
6854 \begin_layout Subsubsection*
6855 SumatraPDF (Cygwin)
6856 \end_layout
6857
6858 \begin_layout Standard
6859 In order to use SumatraPDF for inverse search, enter 
6860 \begin_inset Flex Code
6861 status collapsed
6862
6863 \begin_layout Plain Layout
6864 SumatraPDF.sh
6865 \end_layout
6866
6867 \end_inset
6868
6869  in the viewer setting in 
6870 \begin_inset Flex MenuItem
6871 status collapsed
6872
6873 \begin_layout Plain Layout
6874 Preferences\SpecialChar \menuseparator
6875 File Handling\SpecialChar \menuseparator
6876 File formats\SpecialChar \menuseparator
6877 PDF (pdflatex)
6878 \end_layout
6879
6880 \end_inset
6881
6882 , where 
6883 \begin_inset Flex Code
6884 status collapsed
6885
6886 \begin_layout Plain Layout
6887 SumatraPDF.sh
6888 \end_layout
6889
6890 \end_inset
6891
6892  is the following script (to be placed in your command PATH, 
6893 \begin_inset Flex Code
6894 status collapsed
6895
6896 \begin_layout Plain Layout
6897 /usr/local/bin
6898 \end_layout
6899
6900 \end_inset
6901
6902  being the best choice):
6903 \end_layout
6904
6905 \begin_layout LyX-Code
6906 #!/bin/bash
6907 \begin_inset Newline newline
6908 \end_inset
6909
6910 cd $(dirname $1)
6911 \begin_inset Newline newline
6912 \end_inset
6913
6914 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
6915 \end_layout
6916
6917 \begin_layout Standard
6918 This wrapper script is needed because SumatraPDF is a native Windows application
6919  and does not understand the posix paths used by the Cygwin version of LyX.
6920  If SumatraPDF.exe is not in your command PATH, use its full posix path in
6921  the script above.
6922  The 
6923 \begin_inset Flex Code
6924 status collapsed
6925
6926 \begin_layout Plain Layout
6927 -g
6928 \end_layout
6929
6930 \end_inset
6931
6932  enables communication via the 
6933 \emph on
6934 lyxsocket
6935 \emph default
6936 .
6937  Again, omit the 
6938 \begin_inset Flex Code
6939 status collapsed
6940
6941 \begin_layout Plain Layout
6942 -g
6943 \end_layout
6944
6945 \end_inset
6946
6947  option if you want to use the 
6948 \emph on
6949 lyxpipe
6950 \emph default
6951 , and be sure to specify the LyXServer pipe path in the LyX preferences.
6952 \end_layout
6953
6954 \begin_layout Standard
6955 Reverse search is triggered by double-click.
6956 \end_layout
6957
6958 \begin_layout Section
6959 Forward search
6960 \end_layout
6961
6962 \begin_layout Standard
6963 Forward search is, as the name implies, in a sense the 
6964 \begin_inset Quotes eld
6965 \end_inset
6966
6967 opposite
6968 \begin_inset Quotes erd
6969 \end_inset
6970
6971  to reverse search.
6972  It allows you to let the viewer jump to a given position from within LyX.
6973  If forward search is set up (as described in what follows), you can put
6974  the cursor anywhere in your LyX document, and hit 
6975 \begin_inset Flex MenuItem
6976 status collapsed
6977
6978 \begin_layout Plain Layout
6979 Navigate\SpecialChar \menuseparator
6980 Forward search
6981 \end_layout
6982
6983 \end_inset
6984
6985  (or select 
6986 \begin_inset Flex MenuItem
6987 status collapsed
6988
6989 \begin_layout Plain Layout
6990 Forward search
6991 \end_layout
6992
6993 \end_inset
6994
6995  in the context menu via right mouse click), and then the viewer will jump
6996  to that position as well.
6997  This implies, of course, that your viewer supports this function.
6998 \end_layout
6999
7000 \begin_layout Standard
7001 To make forward search possible, you first need to provide the generated
7002  output PDF/DVI file with additional information about the TeX sources.
7003  This can be done via the methods described in the section 
7004 \begin_inset CommandInset ref
7005 LatexCommand ref
7006 reference "sub:rev-search"
7007
7008 \end_inset
7009
7010 .
7011 \end_layout
7012
7013 \begin_layout Standard
7014 Additionally, you need to configure LyX for using your viewers in 
7015 \begin_inset Flex MenuItem
7016 status collapsed
7017
7018 \begin_layout Plain Layout
7019 Tools\SpecialChar \menuseparator
7020 Preferences\SpecialChar \menuseparator
7021 Output\SpecialChar \menuseparator
7022 General
7023 \end_layout
7024
7025 \end_inset
7026
7027 .
7028  We provide a range of tested configurations for some viewers, which you
7029  can select from the drop down list.
7030  If none of these configurations suits you, you have to find out and enter
7031  a suitable configuration yourself.
7032  The definition syntax uses the following placeholders: 
7033 \end_layout
7034
7035 \begin_layout Itemize
7036 \noindent
7037 \begin_inset Flex Code
7038 status collapsed
7039
7040 \begin_layout Plain Layout
7041 $$n
7042 \end_layout
7043
7044 \end_inset
7045
7046 : row number
7047 \end_layout
7048
7049 \begin_layout Itemize
7050 \noindent
7051 \begin_inset Flex Code
7052 status collapsed
7053
7054 \begin_layout Plain Layout
7055 $$t
7056 \end_layout
7057
7058 \end_inset
7059
7060 : name of the (temporary) exported .tex file
7061 \end_layout
7062
7063 \begin_layout Itemize
7064 \noindent
7065 \begin_inset Flex Code
7066 status collapsed
7067
7068 \begin_layout Plain Layout
7069 $$o
7070 \end_layout
7071
7072 \end_inset
7073
7074 : name of the exported output file (either dvi or pdf, depending on which
7075  one exists in the temporary directory)
7076 \end_layout
7077
7078 \begin_layout Standard
7079 Note that only some of the viewers provide full forward search functionality,
7080  among them yap, xdvi, okular and Sumatra PDF
7081 \begin_inset Foot
7082 status collapsed
7083
7084 \begin_layout Plain Layout
7085 For Sumatra CMCDDE is needed --- downloadable from http://www.istri.fr/zip/CMCDDE.z
7086 ip
7087 \end_layout
7088
7089 \end_inset
7090
7091 .
7092  While many of the widespread PDF viewers (most notably Adobe Reader) do
7093  not support forward search at all, some other viewers -- e.
7094 \begin_inset space \thinspace{}
7095 \end_inset
7096
7097 g.
7098  evince and xpdf -- allow at least to reload the document and jump to a
7099  specific page of the file, so you can at least navigate 
7100 \begin_inset Quotes eld
7101 \end_inset
7102
7103 near
7104 \begin_inset Quotes erd
7105 \end_inset
7106
7107 .
7108  These latter functionality is provided by an external call of synctex (see
7109  the predefined example configurations).
7110  
7111 \end_layout
7112
7113 \begin_layout Standard
7114 Forward search works both with DVI and PDF output.
7115  LyX simply checks which preview format you have used before (i.
7116 \begin_inset space \thinspace{}
7117 \end_inset
7118
7119 e., which format is already there in the temporary directory) and chooses
7120  the appropriate configuration for the respective format.
7121  
7122 \end_layout
7123
7124 \begin_layout Chapter
7125 Special Document Classes
7126 \end_layout
7127
7128 \begin_layout Section
7129 A&A Paper
7130 \end_layout
7131
7132 \begin_layout Standard
7133 by 
7134 \noun on
7135 Peter Sütterlin
7136 \end_layout
7137
7138 \begin_layout Subsection
7139 Introduction
7140 \end_layout
7141
7142 \begin_layout Standard
7143 This section describes how LyX can be used to write articles for submission
7144  to the scientific journal 
7145 \emph on
7146 Astronomy and Astrophysics
7147 \emph default
7148  (www.edpsciences.fr/aa/ 
7149 \begin_inset Flex URL
7150 status collapsed
7151
7152 \begin_layout Plain Layout
7153
7154 http://www.edpsciences.fr/aa/
7155 \end_layout
7156
7157 \end_inset
7158
7159 ) using Version 5.01 of the document class 
7160 \family typewriter
7161 aa.cls
7162 \family default
7163 .
7164  This package can be downloaded from the ftp site
7165 \end_layout
7166
7167 \begin_layout Standard
7168 \begin_inset VSpace medskip
7169 \end_inset
7170
7171
7172 \end_layout
7173
7174 \begin_layout Standard
7175 \align center
7176 \begin_inset Flex URL
7177 status collapsed
7178
7179 \begin_layout Plain Layout
7180
7181 ftp://ftp.edpsciences.org/pub/aa/readme.html
7182 \end_layout
7183
7184 \end_inset
7185
7186
7187 \end_layout
7188
7189 \begin_layout Standard
7190 \begin_inset VSpace medskip
7191 \end_inset
7192
7193
7194 \end_layout
7195
7196 \begin_layout Standard
7197 A manual comes together with that package, and this text is not meant to
7198  replace the original manual but is merely a short guide in how to realize
7199  the correct form of your paper.
7200  
7201 \end_layout
7202
7203 \begin_layout Standard
7204 Please note that the publisher of the journal was changed from Springer
7205  to EDP Sciences starting January 1, 2001.
7206  That change involved also some slight changes to the style files, namely
7207  the removal of the thesaurus command.
7208  The LyX class aa supports the newest version of these style files, V 5.01.
7209  If you have an older version installed, please upgrade.
7210  For compatibility, the old (version 4) layout has been kept as 
7211 \family sans
7212 article (A&A V4)
7213 \family default
7214 .
7215  Please refer to the comments in 
7216 \family typewriter
7217 LyXDir/layouts/aapaper.layout
7218 \family default
7219 .
7220 \end_layout
7221
7222 \begin_layout Subsection
7223 Getting started
7224 \end_layout
7225
7226 \begin_layout Standard
7227 It is recommended you start from the example template distributed with LyX.
7228  If you are not using a template, note the following settings:
7229 \end_layout
7230
7231 \begin_layout Itemize
7232 Select 
7233 \family sans
7234 article (A&A)
7235 \family default
7236  in the 
7237 \family sans
7238 Document\SpecialChar \menuseparator
7239 Settings
7240 \family default
7241  dialog (OK, that one was obvious).
7242 \end_layout
7243
7244 \begin_layout Itemize
7245 Don't change the option 
7246 \family sans
7247 Page
7248 \begin_inset space ~
7249 \end_inset
7250
7251 style
7252 \family default
7253 : Leave it set to 
7254 \family sans
7255 default
7256 \family default
7257 .
7258  The whole layout is done by the macros, you shouldn't change anything.
7259 \end_layout
7260
7261 \begin_layout Subsection
7262 The header block
7263 \end_layout
7264
7265 \begin_layout Standard
7266 First thing to enter is the header information.
7267  It consists of seven entries, of which some are optional.
7268  They are
7269 \end_layout
7270
7271 \begin_layout Itemize
7272
7273 \family sans
7274 Title
7275 \family default
7276 : [required] 
7277 \end_layout
7278
7279 \begin_layout Itemize
7280
7281 \family sans
7282 Subtitle
7283 \family default
7284 : [optional] 
7285 \end_layout
7286
7287 \begin_layout Itemize
7288
7289 \family sans
7290 Author
7291 \family default
7292 : [required]
7293 \end_layout
7294
7295 \begin_layout Itemize
7296
7297 \family sans
7298 Address
7299 \family default
7300 : [required]
7301 \end_layout
7302
7303 \begin_layout Itemize
7304
7305 \family sans
7306 Offprints
7307 \family default
7308 : [optional] if more than one author: whom to contact for offprint requests.
7309 \end_layout
7310
7311 \begin_layout Itemize
7312
7313 \family sans
7314 Mail
7315 \family default
7316 : [optional] mail address for contacts.
7317 \end_layout
7318
7319 \begin_layout Itemize
7320
7321 \family sans
7322 Date
7323 \family default
7324 : [required].
7325  Suggested format is 
7326 \family typewriter
7327 Received: <date>; Accepted <date> 
7328 \end_layout
7329
7330 \begin_layout Standard
7331 There is no need to issue the 
7332 \family typewriter
7333
7334 \backslash
7335 maketitle
7336 \family default
7337  command, this is done automatically by LyX when the header is finished.
7338  Although the order of the single header entries doesn't matter it is advised
7339  to keep the above sequence, just to get the best optics and meets the layout
7340  of the real document.
7341 \end_layout
7342
7343 \begin_layout Standard
7344 If you want to place footnotes in the header block, e.
7345 \begin_inset space \thinspace{}
7346 \end_inset
7347
7348 g.
7349 \begin_inset space \space{}
7350 \end_inset
7351
7352 to state your present address, just use the standard footnote via the menu
7353  
7354 \family sans
7355 Insert\SpecialChar \menuseparator
7356 Footnote.
7357
7358 \family default
7359  LyX will automagically use the term 
7360 \family typewriter
7361
7362 \backslash
7363 thanks{}
7364 \family default
7365  in that case.
7366 \end_layout
7367
7368 \begin_layout Standard
7369 In addition to these topics, the macros use three additional LaTeX commands
7370  that have no counterpart in LyX:
7371 \end_layout
7372
7373 \begin_layout Itemize
7374
7375 \family typewriter
7376
7377 \backslash
7378 and
7379 \family default
7380  to separate different names for more than one author and institute, respectivel
7381 y.
7382 \end_layout
7383
7384 \begin_layout Itemize
7385
7386 \family typewriter
7387
7388 \backslash
7389 inst{<nr>}
7390 \family default
7391 to mark corresponding author/institute pairs.
7392  The institutes are numbered sequentially as they appear in the 
7393 \family sans
7394 Address
7395 \family default
7396  field, so you have to put a marker to each author.
7397 \end_layout
7398
7399 \begin_layout Itemize
7400
7401 \family typewriter
7402
7403 \backslash
7404 email{address}
7405 \family default
7406  to supply an email address for fast contact.
7407 \end_layout
7408
7409 \begin_layout Standard
7410 In all cases, the appropriate command has to be entered in LyX and marked
7411  as LaTeX code.
7412  See the examples.
7413  
7414 \end_layout
7415
7416 \begin_layout Subsection
7417 The abstract
7418 \end_layout
7419
7420 \begin_layout Standard
7421 The abstract should immediately follow the header block.
7422  With version 5 the abstract environment was changed to a command, and there
7423  is now a resctriction to only one paragraph.
7424  In addition, it should contain an entry with the keywords.
7425  This is not yet implemented for LyX, therefore you have to enter the LaTeX
7426  command 
7427 \family typewriter
7428
7429 \backslash
7430 keywords{}
7431 \family default
7432  by hand and mark it as LaTeX code.
7433  Refer to the example paper.
7434 \end_layout
7435
7436 \begin_layout Subsection
7437 Supported environments
7438 \end_layout
7439
7440 \begin_layout Standard
7441 The A&A paper layout supports the following environments for structuring
7442  your text:
7443 \end_layout
7444
7445 \begin_layout Itemize
7446
7447 \family sans
7448 Standard
7449 \end_layout
7450
7451 \begin_layout Itemize
7452
7453 \family sans
7454 Section
7455 \end_layout
7456
7457 \begin_layout Itemize
7458
7459 \family sans
7460 Subsection
7461 \end_layout
7462
7463 \begin_layout Itemize
7464
7465 \family sans
7466 Subsubsection
7467 \end_layout
7468
7469 \begin_layout Itemize
7470
7471 \family sans
7472 Itemize
7473 \end_layout
7474
7475 \begin_layout Itemize
7476
7477 \family sans
7478 Enumerate
7479 \end_layout
7480
7481 \begin_layout Itemize
7482
7483 \family sans
7484 Description
7485 \end_layout
7486
7487 \begin_layout Itemize
7488
7489 \family sans
7490 Caption
7491 \end_layout
7492
7493 \begin_layout Itemize
7494
7495 \family sans
7496 Abstract
7497 \end_layout
7498
7499 \begin_layout Itemize
7500
7501 \family sans
7502 Acknowledgment
7503 \end_layout
7504
7505 \begin_layout Itemize
7506
7507 \family sans
7508 Bibliography
7509 \end_layout
7510
7511 \begin_layout Itemize
7512
7513 \family sans
7514 LaTeX
7515 \end_layout
7516
7517 \begin_layout Subsection
7518 Commands not supported by LyX
7519 \end_layout
7520
7521 \begin_layout Standard
7522 Some commands are not yet supported by the 
7523 \family sans
7524 paper (A&A)
7525 \family default
7526  layout for LyX.
7527  Some have already been mentioned.
7528  For the sake of completeness, they are listed all together here:
7529 \end_layout
7530
7531 \begin_layout Itemize
7532
7533 \family typewriter
7534
7535 \backslash
7536 and
7537 \end_layout
7538
7539 \begin_layout Itemize
7540
7541 \family typewriter
7542
7543 \backslash
7544 email
7545 \end_layout
7546
7547 \begin_layout Itemize
7548
7549 \family typewriter
7550
7551 \backslash
7552 appendix
7553 \end_layout
7554
7555 \begin_layout Itemize
7556
7557 \family typewriter
7558
7559 \backslash
7560 authorrunning
7561 \end_layout
7562
7563 \begin_layout Itemize
7564
7565 \family typewriter
7566
7567 \backslash
7568 inst{}
7569 \end_layout
7570
7571 \begin_layout Itemize
7572
7573 \family typewriter
7574
7575 \backslash
7576 keywords{}
7577 \end_layout
7578
7579 \begin_layout Itemize
7580
7581 \family typewriter
7582
7583 \backslash
7584 object{}
7585 \end_layout
7586
7587 \begin_layout Itemize
7588
7589 \family typewriter
7590
7591 \backslash
7592 titlerunning{}
7593 \end_layout
7594
7595 \begin_layout Standard
7596 If you want to use any of these commands, you have to enter them yourself.
7597  
7598 \series bold
7599 Do not forget to mark them as LaTeX code!
7600 \end_layout
7601
7602 \begin_layout Subsection
7603 Figure and Table Floats
7604 \end_layout
7605
7606 \begin_layout Standard
7607 LyX provides support for the necessary float environments 
7608 \family sans
7609 figure, figure*, table
7610 \family default
7611  and 
7612 \family sans
7613 table*
7614 \family default
7615 , therefore we won't tell much about it here.
7616  Refer to the 
7617 \emph on
7618 User's
7619 \begin_inset space ~
7620 \end_inset
7621
7622 Guide
7623 \emph default
7624 .
7625  Just remember that tables should be left-aligned.
7626  For that, select the table and change the alignment in 
7627 \family sans
7628 Edit\SpecialChar \menuseparator
7629 Paragraph
7630 \begin_inset space ~
7631 \end_inset
7632
7633 Settings.
7634 \end_layout
7635
7636 \begin_layout Standard
7637 There is only one special thing: the figures with caption besides the figure.
7638  To create such a figure, you have to do the following:
7639 \end_layout
7640
7641 \begin_layout Enumerate
7642 Create a wide figure float: 
7643 \family sans
7644 Insert\SpecialChar \menuseparator
7645 Float\SpecialChar \menuseparator
7646 Figure
7647 \family default
7648 , then right click in the figure and select 
7649 \family sans
7650 \bar under
7651 S
7652 \bar default
7653 pan
7654 \begin_inset space ~
7655 \end_inset
7656
7657 columns
7658 \family default
7659 .
7660 \end_layout
7661
7662 \begin_layout Enumerate
7663 Enter your caption text.
7664 \end_layout
7665
7666 \begin_layout Enumerate
7667 Press 
7668 \family sans
7669 Return
7670 \family default
7671  to move the cursor above the caption.
7672 \end_layout
7673
7674 \begin_layout Enumerate
7675 Insert your figure
7676 \end_layout
7677
7678 \begin_layout Enumerate
7679 Position the cursor behind the figure and insert a horizontal fill: 
7680 \family sans
7681 Insert\SpecialChar \menuseparator
7682 Special
7683 \begin_inset space ~
7684 \end_inset
7685
7686 Character\SpecialChar \menuseparator
7687 Horizontal
7688 \begin_inset space ~
7689 \end_inset
7690
7691 Fill
7692 \family default
7693 .
7694 \end_layout
7695
7696 \begin_layout Enumerate
7697 Switch to LaTeX mode: 
7698 \family sans
7699 M-c
7700 \begin_inset space ~
7701 \end_inset
7702
7703 t
7704 \family default
7705 .
7706 \end_layout
7707
7708 \begin_layout Enumerate
7709 Enter 
7710 \family typewriter
7711
7712 \backslash
7713 parbox[b]{55mm}{
7714 \family default
7715 .
7716  
7717 \series bold
7718 Do not close the brace!
7719 \end_layout
7720
7721 \begin_layout Enumerate
7722 Position the cursor behind the caption text, switch to LaTeX mode and insert
7723  the closing brace: 
7724 \family sans
7725 M-c
7726 \begin_inset space ~
7727 \end_inset
7728
7729 t
7730 \family default
7731  
7732 \family typewriter
7733 }
7734 \family default
7735 .
7736 \end_layout
7737
7738 \begin_layout Standard
7739 Also, refer to the figures in the example paper.
7740 \end_layout
7741
7742 \begin_layout Subsection
7743 Referee layout
7744 \end_layout
7745
7746 \begin_layout Standard
7747 For submission, the paper has to be formated in a special double-spacing
7748  layout.
7749  For this purpose, you have to give the option 
7750 \family typewriter
7751 referee
7752 \family default
7753  to the documentclass.
7754  This must be done using the extra class options field in the 
7755 \family sans
7756 Document\SpecialChar \menuseparator
7757 Settings
7758 \family default
7759  dialog.
7760  Just enter the string 
7761 \family typewriter
7762 referee
7763 \family default
7764  there.
7765 \end_layout
7766
7767 \begin_layout Subsection
7768 The example paper
7769 \end_layout
7770
7771 \begin_layout Standard
7772 The 
7773 \family sans
7774 Examples
7775 \family default
7776  directory contains an example paper written with LyX.
7777  It is the example paper from the original macro package, translated to
7778  LyX.
7779  Use it for inspiration, and compare the original LaTeX code with LyX way
7780  of writing.
7781 \end_layout
7782
7783 \begin_layout Section
7784 AASTeX
7785 \end_layout
7786
7787 \begin_layout Standard
7788 by 
7789 \noun on
7790 Mike Ressler
7791 \end_layout
7792
7793 \begin_layout Subsection
7794 Introduction
7795 \end_layout
7796
7797 \begin_layout Standard
7798 AASTeX is a set of macros produced by the American Astronomical Society
7799  to facilitate electronic manuscript submission to the three journals they
7800  publish: the Astrophysical Journal (including the Letters and Supplement),
7801  the Astronomical Journal, and the Publications of the Astronomical Society
7802  of the Pacific.
7803  LyX has proven to be an excellent tool for generating these documents,
7804  especially given its equation, citation, and figure handling capabilities.
7805  LyX requires version 5.0 (or higher) of these macros; preferably 5.2, which
7806  is the version described here, or higher.
7807  Versions prior to 5.0 are intended for use with LaTeX2.09 and are fundamentally
7808  incompatible with LyX.
7809  The AASTeX package may be downloaded from the AASTeX Web site
7810 \end_layout
7811
7812 \begin_layout Standard
7813 \begin_inset VSpace medskip
7814 \end_inset
7815
7816
7817 \end_layout
7818
7819 \begin_layout Standard
7820 \align center
7821 \begin_inset Flex URL
7822 status collapsed
7823
7824 \begin_layout Plain Layout
7825
7826 http://www.journals.uchicago.edu/AAS/AASTeX
7827 \end_layout
7828
7829 \end_inset
7830
7831
7832 \end_layout
7833
7834 \begin_layout Standard
7835 \begin_inset VSpace medskip
7836 \end_inset
7837
7838
7839 \end_layout
7840
7841 \begin_layout Standard
7842 A complete user guide is contained in that package and you should familiarize
7843  yourself with it thoroughly before embarking on writing a paper in LyX.
7844  LyX will not reduce the need to figure out all the AASTeX commands, it
7845  will only reduce the drudgery of typing everything in.
7846  It is your responsibility to ensure that the final exported LaTeX document
7847  conforms completely to the requirements of the journal to which you are
7848  submitting your paper.
7849 \end_layout
7850
7851 \begin_layout Subsection
7852 Starting a New Paper
7853 \end_layout
7854
7855 \begin_layout Standard
7856 I strongly suggest that you start with the AASTeX template file.
7857  Click on 
7858 \family sans
7859 File\SpecialChar \menuseparator
7860 New from
7861 \family default
7862  
7863 \family sans
7864 Template
7865 \family default
7866 , enter the new file name, then choose the 
7867 \family typewriter
7868 aastex.lyx
7869 \family default
7870  template.
7871  This will show the most common fields found in a manuscript.
7872  Simply overwrite the existing text (including the brackets, 
7873 \family typewriter
7874 <>
7875 \family default
7876 ) with the correct information.
7877  Many of the AASTeX commands and environments can be implemented directly
7878  in LyX, but some cannot: most noticeably 
7879 \family typewriter
7880
7881 \backslash
7882 altaffilmark
7883 \family default
7884  and 
7885 \family typewriter
7886
7887 \backslash
7888 altaffiltext
7889 \family default
7890 , which should stick out like a sore thumb if you actually just opened the
7891  template file.
7892  For commands such as these, the LaTeX code must be entered directly and
7893  marked as such.
7894  Such commands are referred to as TeX code, or Evil Red Text.
7895  I tried to minimize the amount of TeX code needed in an AASTeX document,
7896  but there is still a bit more required than any of us would like.
7897 \end_layout
7898
7899 \begin_layout Subsection
7900 Finishing Your Paper
7901 \end_layout
7902
7903 \begin_layout Standard
7904 When the paper is finished to your satisfaction and previews/prints correctly,
7905  there are a few 
7906 \begin_inset Quotes eld
7907 \end_inset
7908
7909 postprocessing
7910 \begin_inset Quotes erd
7911 \end_inset
7912
7913  actions which need to be done before you submit it to the journals.
7914  
7915 \end_layout
7916
7917 \begin_layout Enumerate
7918 Export your paper as a LaTeX file (
7919 \family sans
7920 File\SpecialChar \menuseparator
7921 Export\SpecialChar \menuseparator
7922 LaTeX
7923 \family default
7924 ).
7925  
7926 \end_layout
7927
7928 \begin_layout Enumerate
7929 Edit the resulting 
7930 \family typewriter
7931 .tex
7932 \family default
7933  file with your favorite text editor
7934 \end_layout
7935
7936 \begin_deeper
7937 \begin_layout Enumerate
7938 remove the comment lines before the 
7939 \family typewriter
7940
7941 \backslash
7942 documentclass
7943 \family default
7944  command
7945 \end_layout
7946
7947 \begin_layout Enumerate
7948 remove the 
7949 \family typewriter
7950
7951 \backslash
7952 usepackage...{fontenc}
7953 \family default
7954  line if it appears (usually just after 
7955 \family typewriter
7956
7957 \backslash
7958 documentclass
7959 \family default
7960 }; also remove the 
7961 \family typewriter
7962
7963 \backslash
7964 secnumdepth
7965 \family default
7966  line if it appears.
7967 \end_layout
7968
7969 \begin_layout Enumerate
7970 remove everything between (and including) the 
7971 \family typewriter
7972
7973 \backslash
7974 makeatletter
7975 \family default
7976  and 
7977 \family typewriter
7978
7979 \backslash
7980 makeatother
7981 \family default
7982  commands, except for any commands you specifically put into the LaTeX preamble
7983  (which should appear immediately after the 
7984 \begin_inset Quotes eld
7985 \end_inset
7986
7987 User specified LaTeX commands
7988 \begin_inset Quotes erd
7989 \end_inset
7990
7991  comment in the 
7992 \family typewriter
7993 .tex
7994 \family default
7995  file).
7996 \end_layout
7997
7998 \end_deeper
7999 \begin_layout Enumerate
8000 Run the resulting file through LaTeX to make sure it still processes correctly.
8001 \end_layout
8002
8003 \begin_layout Enumerate
8004 Reread the journal requirements to make sure your filenames and formats
8005  are correct.
8006 \end_layout
8007
8008 \begin_layout Enumerate
8009 Submit it.
8010 \end_layout
8011
8012 \begin_layout Subsection
8013 Comments On Specific Commands
8014 \end_layout
8015
8016 \begin_layout Standard
8017 I will not describe the detailed usage of the individual AASTeX commands:
8018  the AASTeX User Guide (
8019 \family typewriter
8020 aasguide.tex
8021 \family default
8022 ) gives a good description of each.
8023  Thus it's probably easiest for me to go down the list as found in the guide
8024  and offer comments where necessary.
8025  So let's begin \SpecialChar \ldots{}
8026
8027 \end_layout
8028
8029 \begin_layout Subsubsection
8030 Things that work as expected
8031 \end_layout
8032
8033 \begin_layout Standard
8034 \begin_inset ERT
8035 status open
8036
8037 \begin_layout Plain Layout
8038
8039
8040 \backslash
8041 begin{sloppypar}
8042 \end_layout
8043
8044 \end_inset
8045
8046
8047 \end_layout
8048
8049 \begin_layout Standard
8050 Because they work as you might expect, I simply list them and the section
8051  they are found in: 
8052 \family typewriter
8053
8054 \backslash
8055 documentclass
8056 \family default
8057  (2.1.1), 
8058 \family typewriter
8059
8060 \backslash
8061 begin{document}
8062 \family default
8063  (2.2), 
8064 \family typewriter
8065
8066 \backslash
8067 title
8068 \family default
8069  (2.3), 
8070 \family typewriter
8071
8072 \backslash
8073 author
8074 \family default
8075  (2.3), 
8076 \family typewriter
8077
8078 \backslash
8079 affil
8080 \family default
8081  (2.3), 
8082 \family typewriter
8083
8084 \backslash
8085 abstract
8086 \family default
8087  (2.4), 
8088 \family typewriter
8089
8090 \backslash
8091 keywords
8092 \family default
8093  (2.5), 
8094 \family typewriter
8095
8096 \backslash
8097 section
8098 \family default
8099  (2.7), 
8100 \family typewriter
8101
8102 \backslash
8103 subsection
8104 \family default
8105  (2.7), 
8106 \family typewriter
8107
8108 \backslash
8109 subsubsection
8110 \family default
8111  (2.7), 
8112 \family typewriter
8113
8114 \backslash
8115 paragraph
8116 \family default
8117  (2.7), 
8118 \family typewriter
8119
8120 \backslash
8121 facility
8122 \family default
8123  (2.10), 
8124 \family typewriter
8125
8126 \backslash
8127 begin{displaymath}
8128 \family default
8129  (2.12), 
8130 \family typewriter
8131
8132 \backslash
8133 begin{equation}
8134 \family default
8135  (2.12), 
8136 \family typewriter
8137
8138 \backslash
8139 begin{eqnarray}
8140 \family default
8141  (2.12), 
8142 \family typewriter
8143
8144 \backslash
8145 begin{mathletters}
8146 \family default
8147  (2.12), 
8148 \family typewriter
8149
8150 \backslash
8151 begin{thebibliography}
8152 \family default
8153  (2.13.1), 
8154 \family typewriter
8155
8156 \backslash
8157 bibitem
8158 \family default
8159  (2.13.2), all the cite commands and their variations (2.13.2), the generic
8160  graphicx figure commands (2.14.1), 
8161 \family typewriter
8162
8163 \backslash
8164 begin{table}
8165 \family default
8166  (2.15.4), 
8167 \family typewriter
8168
8169 \backslash
8170 begin{tabular}
8171 \family default
8172  (2.15.4), 
8173 \family typewriter
8174
8175 \backslash
8176 caption
8177 \family default
8178  (2.15.4), 
8179 \family typewriter
8180
8181 \backslash
8182 label
8183 \family default
8184  (2.15.4, amongst other places), 
8185 \family typewriter
8186
8187 \backslash
8188 tablerefs
8189 \family default
8190  (2.15.5), 
8191 \family typewriter
8192
8193 \backslash
8194 tablecomments
8195 \family default
8196  (2.15.5), 
8197 \family typewriter
8198
8199 \backslash
8200 url
8201 \family default
8202  (2.17.4), 
8203 \family typewriter
8204
8205 \backslash
8206 end{document}
8207 \family default
8208  (2.18).
8209 \end_layout
8210
8211 \begin_layout Standard
8212 The following style options also work correctly: 
8213 \family typewriter
8214 longabstract
8215 \family default
8216  (2.4), 
8217 \family typewriter
8218 preprint
8219 \family default
8220  (3.2.1), 
8221 \family typewriter
8222 preprint2
8223 \family default
8224  (3.2.2), 
8225 \family typewriter
8226 eqsecnum
8227 \family default
8228  (3.3), 
8229 \family typewriter
8230 flushrt
8231 \family default
8232  (3.4).
8233  Simply put them in the 
8234 \family sans
8235 Options
8236 \family default
8237  box in 
8238 \family sans
8239 Layout\SpecialChar \menuseparator
8240 Document
8241 \family default
8242 .
8243 \end_layout
8244
8245 \begin_layout Standard
8246 \begin_inset ERT
8247 status open
8248
8249 \begin_layout Plain Layout
8250
8251
8252 \backslash
8253 end{sloppypar}
8254 \end_layout
8255
8256 \end_inset
8257
8258
8259 \end_layout
8260
8261 \begin_layout Subsubsection
8262 Things that work, but require more comment
8263 \end_layout
8264
8265 \begin_layout Standard
8266 The following items work, but require a little more discussion:
8267 \end_layout
8268
8269 \begin_layout Itemize
8270 These items are reserved for use by the journal editors, but you can put
8271  them into the LaTeX preamble if you feel compelled to do so: 
8272 \family typewriter
8273
8274 \backslash
8275 received
8276 \family default
8277
8278 \family typewriter
8279
8280 \backslash
8281 revised
8282 \family default
8283
8284 \family typewriter
8285
8286 \backslash
8287 accepted
8288 \family default
8289
8290 \family typewriter
8291
8292 \backslash
8293 ccc
8294 \family default
8295
8296 \family typewriter
8297
8298 \backslash
8299 cpright
8300 \family default
8301  (all from 2.1.3)
8302 \end_layout
8303
8304 \begin_layout Itemize
8305 These items may be placed in the LaTeX preamble, and are included as blanks
8306  in the template file: 
8307 \family typewriter
8308
8309 \backslash
8310 slugcomment
8311 \family default
8312  (2.1.4), 
8313 \family typewriter
8314
8315 \backslash
8316 shorttitle
8317 \family default
8318  (2.1.5), 
8319 \family typewriter
8320
8321 \backslash
8322 shortauthors
8323 \family default
8324  (2.1.5)
8325 \end_layout
8326
8327 \begin_layout Itemize
8328
8329 \family typewriter
8330
8331 \backslash
8332 email
8333 \family default
8334  (2.3) – can only be used 
8335 \begin_inset Quotes eld
8336 \end_inset
8337
8338 standalone
8339 \begin_inset Quotes erd
8340 \end_inset
8341
8342 , not in the middle of a paragraph.
8343  Use TeX code if you need to embed it.
8344 \end_layout
8345
8346 \begin_layout Itemize
8347
8348 \family typewriter
8349
8350 \backslash
8351 and
8352 \family default
8353  (2.3) – will have extra {} after it.
8354  This should not cause an error.
8355 \end_layout
8356
8357 \begin_layout Itemize
8358
8359 \family typewriter
8360
8361 \backslash
8362 notetoeditor
8363 \family default
8364  (2.6) – can only be used 
8365 \begin_inset Quotes eld
8366 \end_inset
8367
8368 standalone
8369 \begin_inset Quotes erd
8370 \end_inset
8371
8372 , not in the middle of a paragraph.
8373  Use TeX code if you need to embed it.
8374 \end_layout
8375
8376 \begin_layout Itemize
8377
8378 \family typewriter
8379
8380 \backslash
8381 placetable
8382 \family default
8383  (2.8) – can't insert a cross-reference tag, you must type the tag name by
8384  hand
8385 \end_layout
8386
8387 \begin_layout Itemize
8388
8389 \family typewriter
8390
8391 \backslash
8392 placefigure
8393 \family default
8394  (2.8) – same as for 
8395 \family typewriter
8396
8397 \backslash
8398 placetable
8399 \end_layout
8400
8401 \begin_layout Itemize
8402
8403 \family typewriter
8404
8405 \backslash
8406 acknowledgements
8407 \family default
8408  (2.9) – will have extra {} after it.
8409  This should not cause an error.
8410 \end_layout
8411
8412 \begin_layout Itemize
8413
8414 \family typewriter
8415
8416 \backslash
8417 appendix
8418 \family default
8419  (2.11) – will have extra {} after it.
8420  This should not cause an error.
8421 \end_layout
8422
8423 \begin_layout Itemize
8424
8425 \family typewriter
8426
8427 \backslash
8428 figcaption
8429 \family default
8430  (2.14.2) – you can insert an optional filename argument by placing the cursor
8431  at the beginning of the text and selecting 
8432 \family sans
8433 Insert\SpecialChar \menuseparator
8434 Short Title
8435 \family default
8436 .
8437  
8438 \begin_inset Quotes eld
8439 \end_inset
8440
8441 Short Title
8442 \begin_inset Quotes erd
8443 \end_inset
8444
8445  inserts an optional argument of the type needed by 
8446 \family typewriter
8447
8448 \backslash
8449 figcaption
8450 \family default
8451 .
8452  Hopefully it will be renamed someday.
8453 \end_layout
8454
8455 \begin_layout Itemize
8456
8457 \family typewriter
8458
8459 \backslash
8460 objectname
8461 \family default
8462  (2.17.1) – same as 
8463 \family typewriter
8464
8465 \backslash
8466 figcaption
8467 \family default
8468  for the catalog ID optional parameter
8469 \end_layout
8470
8471 \begin_layout Itemize
8472
8473 \family typewriter
8474
8475 \backslash
8476 dataset
8477 \family default
8478  (2.17.1) – same as 
8479 \family typewriter
8480
8481 \backslash
8482 figcaption
8483 \family default
8484  for the catalog ID optional parameter
8485 \end_layout
8486
8487 \begin_layout Subsubsection
8488 Things not implemented, use TeX code
8489 \end_layout
8490
8491 \begin_layout Standard
8492 \begin_inset ERT
8493 status open
8494
8495 \begin_layout Plain Layout
8496
8497
8498 \backslash
8499 begin{sloppypar}
8500 \end_layout
8501
8502 \end_inset
8503
8504
8505 \end_layout
8506
8507 \begin_layout Standard
8508
8509 \family typewriter
8510
8511 \backslash
8512 altaffilmark
8513 \family default
8514  (2.3), 
8515 \family typewriter
8516
8517 \backslash
8518 altaffiltext
8519 \family default
8520  (2.3), 
8521 \family typewriter
8522
8523 \backslash
8524 eqnum
8525 \family default
8526  (2.12), 
8527 \family typewriter
8528
8529 \backslash
8530 setcounter{equation}
8531 \family default
8532  (2.12), Journal name abbreviations (2.13.4), 
8533 \family typewriter
8534
8535 \backslash
8536 figurenum
8537 \family default
8538  (2.14.1), 
8539 \family typewriter
8540
8541 \backslash
8542 epsscale
8543 \family default
8544  (2.14.1), 
8545 \family typewriter
8546
8547 \backslash
8548 plotone
8549 \family default
8550  (2.14.1), 
8551 \family typewriter
8552
8553 \backslash
8554 plottwo
8555 \family default
8556  (2.14.1), 
8557 \family typewriter
8558
8559 \backslash
8560 tablenum
8561 \family default
8562  (2.15.4), 
8563 \family typewriter
8564
8565 \backslash
8566 tableline
8567 \family default
8568  (2.15.4, insert it as the first element in the lefthand cell after where
8569  you want it.
8570  Don't use any of LyX's rules in the table), 
8571 \family typewriter
8572
8573 \backslash
8574 tablenotemark
8575 \family default
8576  (2.15.5), 
8577 \family typewriter
8578
8579 \backslash
8580 tablenotetext
8581 \family default
8582  (2.15.5), much of Misc (2.17, except 
8583 \family typewriter
8584
8585 \backslash
8586 objectname
8587 \family default
8588
8589 \family typewriter
8590
8591 \backslash
8592 dataset
8593 \family default
8594
8595 \family typewriter
8596
8597 \backslash
8598 url
8599 \family default
8600 , and 
8601 \family typewriter
8602
8603 \backslash
8604 email
8605 \family default
8606 ; see above), 
8607 \family typewriter
8608
8609 \backslash
8610 singlespace
8611 \family default
8612  (3.1), 
8613 \family typewriter
8614
8615 \backslash
8616 doublespace
8617 \family default
8618  (3.1), 
8619 \family typewriter
8620
8621 \backslash
8622 onecolumn
8623 \family default
8624  (3.2), 
8625 \family typewriter
8626
8627 \backslash
8628 twocolumn
8629 \family default
8630  (3.2)
8631 \end_layout
8632
8633 \begin_layout Standard
8634 \begin_inset ERT
8635 status open
8636
8637 \begin_layout Plain Layout
8638
8639
8640 \backslash
8641 end{sloppypar}
8642 \end_layout
8643
8644 \end_inset
8645
8646
8647 \end_layout
8648
8649 \begin_layout Subsubsection
8650 Things that cannot be implemented
8651 \end_layout
8652
8653 \begin_layout Standard
8654 \SpecialChar \ldots{}
8655  at least in any meaningful sort of way, so I suggest ignoring them.
8656  They are the references environment (2.13.3), and the deluxetable environment
8657  (2.15).
8658  If you really, really need to use deluxetable, I suggest editing it in
8659  a separate file with a text editor, then using 
8660 \family sans
8661 Insert\SpecialChar \menuseparator
8662 Child
8663 \begin_inset space ~
8664 \end_inset
8665
8666 Document
8667 \family default
8668  to include it in your LyX document.
8669  See the 
8670 \family typewriter
8671 aas_sample.lyx
8672 \family default
8673  file to see an example of this.
8674 \end_layout
8675
8676 \begin_layout Subsection
8677 FAQs, Tips, Tricks, and Other Ruminations
8678 \end_layout
8679
8680 \begin_layout Subsubsection
8681 Getting LyX and AASTeX to cooperate
8682 \end_layout
8683
8684 \begin_layout Standard
8685 It can be a bit tricky to get LyX to recognize a new layout and document
8686  class.
8687  When all else fails, do this:
8688 \end_layout
8689
8690 \begin_layout Enumerate
8691 Make certain that LaTeX can find AASTeX.
8692  Copy sample.tex (and perhaps table.tex) from the AASTeX distribution into
8693  a directory completely unrelated to LaTeX or AASTeX and run LaTeX on 
8694 \family typewriter
8695 sample.tex
8696 \family default
8697 .
8698 \end_layout
8699
8700 \begin_layout Enumerate
8701 Make certain that 
8702 \family typewriter
8703 aastex.layout
8704 \family default
8705  appears in LyX's 
8706 \family typewriter
8707 layouts
8708 \family default
8709  folder
8710 \end_layout
8711
8712 \begin_layout Enumerate
8713 Rerun 
8714 \family sans
8715 Tools\SpecialChar \menuseparator
8716 Reconfigure
8717 \family default
8718  in LyX, then restart LyX.
8719 \end_layout
8720
8721 \begin_layout Enumerate
8722 Open a regular new file, not from a template.
8723  Does AASTeX appear in the class list in 
8724 \family sans
8725 Document\SpecialChar \menuseparator
8726 Settings
8727 \family default
8728 ?
8729 \end_layout
8730
8731 \begin_layout Standard
8732 If you get a warning from an existing AASTeX document about not being able
8733  to find the AASTeX layout or a message about 
8734 \begin_inset Quotes eld
8735 \end_inset
8736
8737 You should not mix title layouts with normal ones
8738 \begin_inset Quotes erd
8739 \end_inset
8740
8741 , things haven't been installed correctly.
8742 \end_layout
8743
8744 \begin_layout Subsubsection
8745 LaTeX error processing a table 
8746 \end_layout
8747
8748 \begin_layout Standard
8749 LyX, by default, attempts to center the table caption/title.
8750  This seems to produce a bad interaction in AASTeX so you should click somewhere
8751  in the caption/title, then select 
8752 \family sans
8753 Edit\SpecialChar \menuseparator
8754 Paragraph
8755 \begin_inset space ~
8756 \end_inset
8757
8758 Settings
8759 \family default
8760 , then set the 
8761 \family sans
8762 Alignment
8763 \family default
8764  to 
8765 \family sans
8766 Block
8767 \family default
8768 .
8769  This took care of it for me.
8770 \end_layout
8771
8772 \begin_layout Subsubsection
8773 References
8774 \end_layout
8775
8776 \begin_layout Standard
8777 A couple of things: 1) I have noticed some funny spacing in the reference
8778  entries in the text.
8779  When you enter the bibliography item data, make sure their is 
8780 \emph on
8781 no
8782 \emph default
8783  space between the last author and the parenthesis setting off the year;
8784  
8785 \emph on
8786 e.
8787 \begin_inset space \thinspace{}
8788 \end_inset
8789
8790 g.
8791 \begin_inset space \space{}
8792 \end_inset
8793
8794
8795 \emph default
8796 type 
8797 \family typewriter
8798 Ressler(1992)
8799 \family default
8800 , not 
8801 \family typewriter
8802 Ressler (1992)
8803 \family default
8804 .
8805  2) Entering the references at all is not obvious.
8806  The easiest thing is to start typing your first reference at the end of
8807  the document, then mark it as type 
8808 \family sans
8809 References
8810 \family default
8811 .
8812  That will put a small gray box in front of what you just typed.
8813  Click on the box to fill in the rest of the information.
8814  For new references, go to the end of an existing reference and press return.
8815  That will create a new line with its own box, etc.
8816 \end_layout
8817
8818 \begin_layout Subsubsection
8819 Including EPS files
8820 \end_layout
8821
8822 \begin_layout Standard
8823 Even though AASTeX provides its own figure commands (
8824 \family typewriter
8825
8826 \backslash
8827 plotone
8828 \family default
8829 , for example), I much prefer LaTeX's standard figure commands (with the
8830  default graphicx).
8831  You can insert the 
8832 \family typewriter
8833
8834 \backslash
8835 plotone
8836 \family default
8837 , etc.
8838 \begin_inset space ~
8839 \end_inset
8840
8841 commands as TeX code into a Figure Float box if you desire, but I never
8842  have much luck getting the layout right.
8843  With the standard graphics, LyX will insert a 
8844 \family typewriter
8845
8846 \backslash
8847 usepackage{graphicx}
8848 \family default
8849  command into the LaTeX preamble and handle the figures in the standard
8850  LaTeX2e way, interspersing the figures in the text.
8851  I believe ApJ accepts figures exactly this way now; AJ might still use
8852  the 
8853 \begin_inset Quotes eld
8854 \end_inset
8855
8856 stack everything at the end
8857 \begin_inset Quotes erd
8858 \end_inset
8859
8860  technique.
8861 \end_layout
8862
8863 \begin_layout Subsubsection
8864 Things I could have done, but didn't
8865 \end_layout
8866
8867 \begin_layout Standard
8868 There are a few 
8869 \begin_inset Quotes eld
8870 \end_inset
8871
8872 pretty
8873 \begin_inset Quotes erd
8874 \end_inset
8875
8876  things I could have implemented, but chose not to.
8877  For instance, I saw no point in double-spacing the text in the LyX window,
8878  even though it is double-spaced in the paper manuscript.
8879  Also, I chose not to make separate layouts for the preprint and preprint2
8880  styles.
8881  Since I assume you will spend most of your time in the plain manuscript
8882  mode anyway, I decided not to chew up more disk space with this.
8883  
8884 \end_layout
8885
8886 \begin_layout Subsection
8887 Final Caveat
8888 \end_layout
8889
8890 \begin_layout Standard
8891 Your mileage may vary.
8892  I've now had papers published by both ApJ and AJ that have had 98% of the
8893  effort done in LyX; the last 2% was the LaTeX post-processing and a few
8894  cleanups.
8895  I have had no trouble with the submission process, and I'm sure the journals
8896  were never aware that there might be a difference.
8897  So, go forth and publish!
8898 \end_layout
8899
8900 \begin_layout Section
8901 AMS LaTeX
8902 \end_layout
8903
8904 \begin_layout Standard
8905 by 
8906 \noun on
8907 David Johnson; updated by Richard Heck
8908 \end_layout
8909
8910 \begin_layout Standard
8911 \begin_inset VSpace bigskip
8912 \end_inset
8913
8914
8915 \end_layout
8916
8917 \begin_layout Standard
8918 \noindent
8919 The AMS LaTeX layouts are set up to conform to suggested styles for mathematical
8920  papers to be submitted to American Mathematical Society publications.
8921  The layouts are not tailored to a specific journal, but easily can be.
8922  You should refer to the AMS documentation for specific instructions for
8923  each journal (usually it will entail only changing a single line in the
8924  TeX output).
8925  That documentation is available on the Web at 
8926 \begin_inset Flex URL
8927 status open
8928
8929 \begin_layout Plain Layout
8930
8931 http://www.ams.org
8932 \end_layout
8933
8934 \end_inset
8935
8936  or by ftp at 
8937 \begin_inset Flex URL
8938 status open
8939
8940 \begin_layout Plain Layout
8941
8942 ftp://ftp.ams.org/pub/tex/amslatex/
8943 \end_layout
8944
8945 \end_inset
8946
8947 .
8948  These layouts are appropriate, and useful, for any mathematical writing.
8949  
8950 \end_layout
8951
8952 \begin_layout Standard
8953 There are two basic AMS LaTeX layouts: 
8954 \end_layout
8955
8956 \begin_layout Itemize
8957 amsart: The standard AMS article format.
8958 \end_layout
8959
8960 \begin_layout Itemize
8961 amsbook: the standard AMS book (really, monograph) format.
8962  
8963 \end_layout
8964
8965 \begin_layout Standard
8966 The layouts themselves contain only the minimum necessary to use the AMS
8967  classes.
8968  They do not, in particular, contain any of the `theorem' environments used
8969  for setting theorems, lemmas, and the like.
8970  These are contained, instead, in the 
8971 \begin_inset Flex Code
8972 status collapsed
8973
8974 \begin_layout Plain Layout
8975 Theorems (AMS)
8976 \end_layout
8977
8978 \end_inset
8979
8980  module, which is loaded by default when when you select one of the AMS
8981  classes.
8982  (It can also be used with other classes and can be removed, if you would
8983  rather use something else.) Less commonly used environments are in the 
8984 \begin_inset Flex Code
8985 status collapsed
8986
8987 \begin_layout Plain Layout
8988 Theorems (AMS-Extended)
8989 \end_layout
8990
8991 \end_inset
8992
8993  module, which must be loaded manually.
8994 \end_layout
8995
8996 \begin_layout Standard
8997 By default, theorems and the like are numbered consecutively throughout
8998  the document, but this may be modified by loading the module 
8999 \begin_inset Flex Code
9000 status collapsed
9001
9002 \begin_layout Plain Layout
9003 Theorems (Order by Section)
9004 \end_layout
9005
9006 \end_inset
9007
9008  or, if you are using 
9009 \begin_inset Flex Code
9010 status collapsed
9011
9012 \begin_layout Plain Layout
9013 book (AMS)
9014 \end_layout
9015
9016 \end_inset
9017
9018 , the module 
9019 \begin_inset Flex Code
9020 status collapsed
9021
9022 \begin_layout Plain Layout
9023 Theorems (Order by Chapter)
9024 \end_layout
9025
9026 \end_inset
9027
9028 .
9029  These will number the results as 
9030 \begin_inset Formula $n.m$
9031 \end_inset
9032
9033 , where the first number refers to the section (or chapter) and the second
9034  refers to the total number of results so far in that section (or chapter).
9035  Many environments are also available unnumbered.
9036  These are indicated by an asterisk at the end.
9037  If you happen to want 
9038 \emph on
9039 only
9040 \emph default
9041  unnumbered results, the module 
9042 \begin_inset Flex Code
9043 status collapsed
9044
9045 \begin_layout Plain Layout
9046 Theorems (Starred)
9047 \end_layout
9048
9049 \end_inset
9050
9051  provides that option.
9052 \end_layout
9053
9054 \begin_layout Standard
9055 Note that these modules do not 
9056 \emph on
9057 have
9058 \emph default
9059  to be used with the AMS classes.
9060  It is perfectly possible to use the 
9061 \begin_inset Flex Code
9062 status collapsed
9063
9064 \begin_layout Plain Layout
9065 Theorems (AMS)
9066 \end_layout
9067
9068 \end_inset
9069
9070  module, and the others mentioned, with other classes, such as 
9071 \begin_inset Flex Code
9072 status collapsed
9073
9074 \begin_layout Plain Layout
9075 article
9076 \end_layout
9077
9078 \end_inset
9079
9080
9081 \begin_inset Flex Code
9082 status collapsed
9083
9084 \begin_layout Plain Layout
9085 report
9086 \end_layout
9087
9088 \end_inset
9089
9090
9091 \begin_inset Flex Code
9092 status collapsed
9093
9094 \begin_layout Plain Layout
9095 book (KOMA-script)
9096 \end_layout
9097
9098 \end_inset
9099
9100 , and so forth.
9101 \end_layout
9102
9103 \begin_layout Subsection
9104 What these layouts provide
9105 \end_layout
9106
9107 \begin_layout Standard
9108 There is a long list of included environments provided by these layouts.
9109  In AMS-LaTeX, there is, in fact, an opportunity to define an unlimited
9110  variety of `theorem' environments.
9111  However, the AMS recommends the environments that are available in LyX.
9112  
9113 \end_layout
9114
9115 \begin_layout Standard
9116 The following environments—as well as the standard environments, such as
9117  
9118 \begin_inset Flex Noun
9119 status collapsed
9120
9121 \begin_layout Plain Layout
9122 section
9123 \end_layout
9124
9125 \end_inset
9126
9127
9128 \begin_inset Flex Noun
9129 status collapsed
9130
9131 \begin_layout Plain Layout
9132 bibliography
9133 \end_layout
9134
9135 \end_inset
9136
9137
9138 \begin_inset Flex Noun
9139 status collapsed
9140
9141 \begin_layout Plain Layout
9142 title
9143 \end_layout
9144
9145 \end_inset
9146
9147
9148 \begin_inset Flex Noun
9149 status collapsed
9150
9151 \begin_layout Plain Layout
9152 author
9153 \end_layout
9154
9155 \end_inset
9156
9157 , and 
9158 \begin_inset Flex Noun
9159 status collapsed
9160
9161 \begin_layout Plain Layout
9162 date
9163 \end_layout
9164
9165 \end_inset
9166
9167 —are provided by 
9168 \begin_inset Flex Code
9169 status collapsed
9170
9171 \begin_layout Plain Layout
9172 article (AMS)
9173 \end_layout
9174
9175 \end_inset
9176
9177  and 
9178 \begin_inset Flex Code
9179 status collapsed
9180
9181 \begin_layout Plain Layout
9182 book (AMS)
9183 \end_layout
9184
9185 \end_inset
9186
9187 :
9188 \end_layout
9189
9190 \begin_layout Description
9191 Address This should be the author's permanent address.
9192 \end_layout
9193
9194 \begin_layout Description
9195 Current
9196 \begin_inset space ~
9197 \end_inset
9198
9199 Address This should be the author's temporary address at the time of submission,
9200  if different from the Address.
9201 \end_layout
9202
9203 \begin_layout Description
9204 Email Author's e-mail address
9205 \end_layout
9206
9207 \begin_layout Description
9208 URL Author's Web address, if desired.
9209 \end_layout
9210
9211 \begin_layout Description
9212 Keywords Key words or phrases used to identify specific topics discussed
9213  in the paper.
9214 \end_layout
9215
9216 \begin_layout Description
9217 Subjectclass These refer to the AMS Subject Classifications, published and
9218  described in 
9219 \emph on
9220 Mathematical Reviews
9221 \emph default
9222 .
9223  These are also available online at the AMS cites listed above.
9224 \end_layout
9225
9226 \begin_layout Description
9227 Thanks
9228 \end_layout
9229
9230 \begin_layout Description
9231 Dedicatory
9232 \end_layout
9233
9234 \begin_layout Description
9235 Translator
9236 \end_layout
9237
9238 \begin_layout Standard
9239 The following environments are provided by both the 
9240 \begin_inset Flex Code
9241 status collapsed
9242
9243 \begin_layout Plain Layout
9244 Theorems
9245 \end_layout
9246
9247 \end_inset
9248
9249  and 
9250 \begin_inset Flex Code
9251 status collapsed
9252
9253 \begin_layout Plain Layout
9254 Theorems (AMS)
9255 \end_layout
9256
9257 \end_inset
9258
9259  modules, in the latter case in both starred (unnumbered) and unstarred
9260  (numbered) versions.
9261  These same environments are provided only in the starred versions by the
9262  
9263 \begin_inset Flex Code
9264 status collapsed
9265
9266 \begin_layout Plain Layout
9267 Theorems (Starred)
9268 \end_layout
9269
9270 \end_inset
9271
9272  module:
9273 \end_layout
9274
9275 \begin_layout Theorem
9276 This is typically used for the statements of major results.
9277  
9278 \end_layout
9279
9280 \begin_layout Corollary*
9281 This is used for statements which follow fairly directly from previous statement
9282 s.
9283  Again, these can be major results.
9284  
9285 \end_layout
9286
9287 \begin_layout Lemma
9288 These are smaller results needed to prove other statements.
9289 \end_layout
9290
9291 \begin_layout Proposition
9292 These are less major results which (hopefully) add to the general theory
9293  being discussed.
9294 \end_layout
9295
9296 \begin_layout Conjecture
9297 These are statements provided without justification, which the author does
9298  not know how to prove, but which seem to be true (to the author, at least).
9299 \end_layout
9300
9301 \begin_layout Definition*
9302 Guess what this is for.
9303  The font is different for this environment than for the previous ones.
9304  
9305 \end_layout
9306
9307 \begin_layout Example*
9308 Used for examples illustrating proven results.
9309 \end_layout
9310
9311 \begin_layout Problem
9312 It's not really known what this is for.
9313  You should figure it out.
9314 \end_layout
9315
9316 \begin_layout Exercise*
9317 Write a description for this one.
9318 \end_layout
9319
9320 \begin_layout Remark
9321 This environment is also a type of theorem, usually a lesser sort of observation.
9322 \end_layout
9323
9324 \begin_layout Claim*
9325 Often used in the course of giving a proof of a larger result.
9326 \end_layout
9327
9328 \begin_layout Case
9329 Generally, these are used to break up long arguments, using specific instances
9330  of some condition.
9331  
9332 \end_layout
9333
9334 \begin_layout Case
9335 The numbering scheme for cases is on its own, not together with other numbered
9336  statements.
9337  
9338 \end_layout
9339
9340 \begin_layout Proof
9341 At the end of this environment, a QED symbol (usually a square, but it can
9342  vary with different styles) is placed.
9343  If you want to have other environments within this one—for example, Case
9344  environments—and have the QED symbol appear only after them, then the other
9345  environments need to be nested within the proof environment.
9346  See the section 
9347 \emph on
9348 Nesting Environments
9349 \emph default
9350  of the 
9351 \emph on
9352 User's Guide
9353 \emph default
9354  for information on nesting.
9355 \end_layout
9356
9357 \begin_layout Standard
9358 And these environments are provided by 
9359 \begin_inset Flex Code
9360 status collapsed
9361
9362 \begin_layout Plain Layout
9363 Theorems (AMS-Extended)
9364 \end_layout
9365
9366 \end_inset
9367
9368 :
9369 \end_layout
9370
9371 \begin_layout Criterion*
9372 A required condition.
9373 \end_layout
9374
9375 \begin_layout Algorithm*
9376 A general procedure to be used.
9377 \end_layout
9378
9379 \begin_layout Axiom*
9380 This is a property or statement taken as true within the system being discussed.
9381 \end_layout
9382
9383 \begin_layout Condition*
9384 Sometimes used to state a condition assumed within the present context of
9385  discussion.
9386 \end_layout
9387
9388 \begin_layout Note*
9389 Similar to a Remark.
9390 \end_layout
9391
9392 \begin_layout Notation*
9393 Used for the explanation of, yes, notation.
9394 \end_layout
9395
9396 \begin_layout Summary
9397 Do we really need to tell you? 
9398 \end_layout
9399
9400 \begin_layout Acknowledgement*
9401 Acknowledgement.
9402 \end_layout
9403
9404 \begin_layout Conclusion*
9405 Sometimes used at the end of a long train of argument.
9406 \end_layout
9407
9408 \begin_layout Fact
9409 Used in a way similar to Proposition, though perhaps lower on the scale.
9410 \end_layout
9411
9412 \begin_layout Standard
9413 In addition, the AMS classes automatically provide the AMS LaTeX and AMS
9414  fonts packages.
9415  They need to be available on your system in order to use these environments.
9416 \end_layout
9417
9418 \begin_layout Section
9419 AGU journals (
9420 \family sans
9421 aguplus
9422 \family default
9423 )
9424 \end_layout
9425
9426 \begin_layout Standard
9427 by 
9428 \shape smallcaps
9429 Martin Vermeer
9430 \end_layout
9431
9432 \begin_layout Subsection
9433 Description
9434 \end_layout
9435
9436 \begin_layout Standard
9437 These are the layout files for some of the journals of the American Geophysical
9438  Society.
9439  It is assumed that you have both the AGU's own class files and AGUplus
9440  installed (everything to be found at
9441 \begin_inset Flex URL
9442 status collapsed
9443
9444 \begin_layout Plain Layout
9445
9446 ftp://ftp.agu.org/journals/latex/journals
9447 \end_layout
9448
9449 \end_inset
9450
9451 ).
9452 \end_layout
9453
9454 \begin_layout Subsection
9455 New styles
9456 \end_layout
9457
9458 \begin_layout Standard
9459 Redefined are 
9460 \family sans
9461 Paragraph
9462 \family default
9463
9464 \family sans
9465 Paragraph*
9466 \family default
9467 .
9468  They are still called this in the LyX GUI, though their LaTeX equivalents
9469  in the AGU classes are 
9470 \family sans
9471 Subsubsubsection
9472 \family default
9473  and 
9474 \family sans
9475 Subsubsubsection*
9476 \family default
9477 .
9478 \end_layout
9479
9480 \begin_layout Standard
9481 Newly defined styles are 
9482 \family sans
9483 Left_Header
9484 \family default
9485
9486 \family sans
9487 Right_Header
9488 \family default
9489
9490 \family sans
9491 Received
9492 \family default
9493
9494 \family sans
9495 Revised
9496 \family default
9497
9498 \family sans
9499 Accepted
9500 \family default
9501
9502 \family sans
9503 CCC
9504 \family default
9505
9506 \family sans
9507 PaperId
9508 \family default
9509
9510 \family sans
9511 AuthorAddr
9512 \family default
9513
9514 \family sans
9515 SlugComment
9516 \family default
9517 .
9518  These are mostly manuscript attributes and defined in the AGU class documentati
9519 on.
9520 \end_layout
9521
9522 \begin_layout Standard
9523 I suspect this is still badly incomplete.
9524 \end_layout
9525
9526 \begin_layout Subsection
9527 New floats
9528 \end_layout
9529
9530 \begin_layout Standard
9531
9532 \family sans
9533 Planotable
9534 \family default
9535  and 
9536 \family sans
9537 Plate
9538 \family default
9539 .
9540  We also have a new 
9541 \family sans
9542 Table_Caption
9543 \family default
9544 .
9545 \end_layout
9546
9547 \begin_layout Subsection
9548 Supported journals
9549 \end_layout
9550
9551 \begin_layout Itemize
9552
9553 \emph on
9554 Journal of Geophysical Research
9555 \emph default
9556
9557 \family typewriter
9558 jgrga.layout
9559 \family default
9560  — Martin Vermeer
9561 \end_layout
9562
9563 \begin_layout Standard
9564 Add your own, it isn't so hard! Look at the 
9565 \family typewriter
9566 jgrga.layout
9567 \family default
9568  example and 
9569 \family typewriter
9570 aguplus.inc
9571 \family default
9572 .
9573 \end_layout
9574
9575 \begin_layout Subsection
9576 Bugs and things to remember
9577 \end_layout
9578
9579 \begin_layout Standard
9580 In order to use the new layouts, you must remember to do the following for
9581  a new document:
9582 \end_layout
9583
9584 \begin_layout Enumerate
9585
9586 \emph on
9587 Turn off babel
9588 \emph default
9589 .
9590  This can be done in the 
9591 \family sans
9592 Layout\SpecialChar \menuseparator
9593 Document
9594 \family default
9595  or 
9596 \family sans
9597 Document\SpecialChar \menuseparator
9598 Settings
9599 \family default
9600  menu item.
9601  (AGU articles are always in English, right? So 
9602 \emph on
9603 don't
9604 \emph default
9605  choose a language.)
9606 \end_layout
9607
9608 \begin_layout Enumerate
9609 Enter 
9610 \family typewriter
9611 jgrga
9612 \family default
9613  into the document's 
9614 \family sans
9615 Extra Options
9616 \family default
9617  field.
9618  (Yes, this is a bug.)
9619 \end_layout
9620
9621 \begin_layout Enumerate
9622 Make sure you use the 
9623 \family typewriter
9624 agu.bst
9625 \family default
9626  bibliography style, by entering 
9627 \family sans
9628 agu
9629 \family default
9630  into the second field of the BibTeX inset.
9631  None of the standard styles will do.
9632 \end_layout
9633
9634 \begin_layout Section
9635 Broadway
9636 \end_layout
9637
9638 \begin_layout Standard
9639 by 
9640 \shape smallcaps
9641 Garst Reese
9642 \end_layout
9643
9644 \begin_layout Subsection
9645 Introduction
9646 \end_layout
9647
9648 \begin_layout Standard
9649 Broadway is for writing plays.
9650  The format is more decorative than Hollywood, and much less standardized.
9651  This format should be suitable for workshops.
9652 \end_layout
9653
9654 \begin_layout Subsection
9655 Special problems
9656 \end_layout
9657
9658 \begin_layout Standard
9659 The same as in Hollywood.
9660 \end_layout
9661
9662 \begin_layout Subsection
9663 Special features
9664 \end_layout
9665
9666 \begin_layout Standard
9667 Insert the 
9668 \family sans
9669 Speaker
9670 \family default
9671  names as labels then cross-reference the label to insert the name.
9672  The cross-reference dialog will show the current cast of characters.
9673 \end_layout
9674
9675 \begin_layout Subsection
9676 Paper size and Margins
9677 \end_layout
9678
9679 \begin_layout Standard
9680 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
9681 \end_layout
9682
9683 \begin_layout Subsection
9684 Environments
9685 \end_layout
9686
9687 \begin_layout Standard
9688 The following environments are available.
9689  You can use broadway.bind to get the bind keys shown at the right.
9690 \end_layout
9691
9692 \begin_layout Itemize
9693
9694 \family sans
9695 Standard
9696 \begin_inset Newline newline
9697 \end_inset
9698
9699
9700 \family default
9701 You should not have to use this, but it is here for anything that does not
9702  fit otherwise.
9703 \end_layout
9704
9705 \begin_layout Itemize
9706
9707 \family sans
9708 Narrative
9709 \begin_inset space \hfill{}
9710 \end_inset
9711
9712 M-z n
9713 \begin_inset Newline newline
9714 \end_inset
9715
9716
9717 \family default
9718 Used to describe stage setting and the action.
9719  First use of speaker names in all CAPs.
9720 \end_layout
9721
9722 \begin_layout Itemize
9723
9724 \family sans
9725 ACT
9726 \begin_inset space \hfill{}
9727 \end_inset
9728
9729 M-z a
9730 \begin_inset Newline newline
9731 \end_inset
9732
9733
9734 \family default
9735 Automatically numbered.
9736  On screen it will be arabic, but will print as Roman.
9737 \end_layout
9738
9739 \begin_layout Itemize
9740
9741 \family sans
9742 ACT*
9743 \begin_inset space \hfill{}
9744 \end_inset
9745
9746 M-z S at
9747 \begin_inset Newline newline
9748 \end_inset
9749
9750
9751 \family default
9752 Subtitle for 
9753 \family sans
9754 ACT.
9755
9756 \family default
9757  It is just centered text.
9758 \end_layout
9759
9760 \begin_layout Itemize
9761
9762 \family sans
9763 SCENE
9764 \begin_inset space \hfill{}
9765 \end_inset
9766
9767 M-z S-S
9768 \begin_inset Newline newline
9769 \end_inset
9770
9771
9772 \family default
9773 Not automatically numbered.
9774  You supply the number.
9775  This is because I couldn't figure out how.
9776 \end_layout
9777
9778 \begin_layout Itemize
9779
9780 \family sans
9781 AT_RISE:
9782 \begin_inset space \hfill{}
9783 \end_inset
9784
9785 M-z S-R
9786 \begin_inset Newline newline
9787 \end_inset
9788
9789
9790 \family default
9791 A special case of Narrative to describe the setting and action as the curtain
9792  rises.
9793 \end_layout
9794
9795 \begin_layout Itemize
9796
9797 \family sans
9798 Speaker
9799 \begin_inset space \hfill{}
9800 \end_inset
9801
9802 M-z s
9803 \begin_inset Newline newline
9804 \end_inset
9805
9806
9807 \family default
9808 The speaker's (actor's) title, centered in all CAPS.
9809 \end_layout
9810
9811 \begin_layout Itemize
9812
9813 \family sans
9814 Parenthetical
9815 \begin_inset space \hfill{}
9816 \end_inset
9817
9818 M-z p
9819 \begin_inset Newline newline
9820 \end_inset
9821
9822
9823 \family default
9824 Instructions to the speaker.
9825  The parentheses are automatically inserted.
9826  The ( will appear on screen, but both will be in the printed play.
9827  This environment is only used within 
9828 \family sans
9829 Dialogue
9830 \family default
9831 .
9832 \end_layout
9833
9834 \begin_layout Itemize
9835
9836 \family sans
9837 Dialogue
9838 \begin_inset space \hfill{}
9839 \end_inset
9840
9841 M-z d
9842 \begin_inset Newline newline
9843 \end_inset
9844
9845
9846 \family default
9847 What the Speaker says.
9848 \end_layout
9849
9850 \begin_layout Itemize
9851
9852 \family sans
9853 CURTAIN
9854 \begin_inset space \hfill{}
9855 \end_inset
9856
9857 M-z S-C
9858 \begin_inset Newline newline
9859 \end_inset
9860
9861
9862 \family default
9863 The curtain comes down.
9864 \end_layout
9865
9866 \begin_layout Itemize
9867
9868 \family sans
9869 Title
9870 \begin_inset space \hfill{}
9871 \end_inset
9872
9873 M-z S-T
9874 \end_layout
9875
9876 \begin_layout Itemize
9877
9878 \family sans
9879 Author
9880 \begin_inset space \hfill{}
9881 \end_inset
9882
9883 M-z S-A
9884 \end_layout
9885
9886 \begin_layout Itemize
9887
9888 \family sans
9889 Right_Address
9890 \begin_inset space \hfill{}
9891 \end_inset
9892
9893 M-z r
9894 \end_layout
9895
9896 \begin_layout Standard
9897 Hello there.
9898 \end_layout
9899
9900 \begin_layout Section
9901 Dinbrief
9902 \end_layout
9903
9904 \begin_layout Standard
9905 The document class 
9906 \family sans
9907 dinbrief
9908 \family default
9909  can be used to type letters according to German conventions.
9910  A template file is included in 
9911 \family typewriter
9912 .../lyx/share/templates
9913 \family default
9914  for you to use as a starting point.
9915 \end_layout
9916
9917 \begin_layout Section
9918 EGS journals (
9919 \family sans
9920 egs
9921 \family default
9922 )
9923 \end_layout
9924
9925 \begin_layout Standard
9926 by 
9927 \shape smallcaps
9928 Martin Vermeer
9929 \end_layout
9930
9931 \begin_layout Subsection
9932 Description
9933 \end_layout
9934
9935 \begin_layout Standard
9936 This is the layout file for the European Geophysical Society journals.
9937  The needed 
9938 \family typewriter
9939 egs.cls
9940 \family default
9941  can be downloaded from the web site of the EGS under 
9942 \begin_inset Flex URL
9943 status collapsed
9944
9945 \begin_layout Plain Layout
9946
9947 www.copernicus.org
9948 \end_layout
9949
9950 \end_inset
9951
9952 .
9953 \end_layout
9954
9955 \begin_layout Subsection
9956 New styles
9957 \end_layout
9958
9959 \begin_layout Standard
9960
9961 \family sans
9962 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
9963  Accepted
9964 \family default
9965
9966 \family sans
9967 Offsets
9968 \family default
9969 .
9970  The current layout file is unfortunately very unmodular and would benefit
9971  from using the various 
9972 \family typewriter
9973 std*.inc
9974 \family default
9975  file inclusions.
9976 \end_layout
9977
9978 \begin_layout Section
9979 Elsevier Journals
9980 \end_layout
9981
9982 \begin_layout Standard
9983 By 
9984 \noun on
9985 Rod Pinna
9986 \end_layout
9987
9988 \begin_layout Standard
9989 Elsevier Science Publishers B.V.
9990  provides a standard LaTeX document class (
9991 \family typewriter
9992 elsart.cls
9993 \family default
9994 ) for submitting articles to their various journals.
9995  The style file can be downloaded directly from their web site: 
9996 \begin_inset Flex URL
9997 status collapsed
9998
9999 \begin_layout Plain Layout
10000
10001 http://www.elsevier.com/wps/find/authorsview.authors/latex
10002 \end_layout
10003
10004 \end_inset
10005
10006 .
10007  Instructions are supplied along with the class file, which details the
10008  requirements of the publishers.
10009  LyX includes a package that allows for the use of this class, by a layout
10010  and a template file.
10011  Installation of the class file is the same as for any other LaTeX package;
10012  instructions are provided in the Elsevier documentation.
10013 \end_layout
10014
10015 \begin_layout Standard
10016 To make use of 
10017 \family typewriter
10018 elsart.cls
10019 \family default
10020 , a file 
10021 \family typewriter
10022 elsart.layout
10023 \family default
10024  is supplied.
10025  As the Elsevier class file is based mainly on the standard article class,
10026  most of the normal functionality is provided.
10027  The Elsevier class defines a number of mathematical environments, which
10028  are similar to the AMS environments.
10029  These commands are all described in the Elsevier documentation, and are
10030  available in LyX.
10031 \end_layout
10032
10033 \begin_layout Standard
10034 The easiest way to use the Elsevier style is to base documents on the included
10035  template file.
10036  It is best not to use options such as fancy headings or the geometry package,
10037  as elements such as these are defined by Elsevier in their style file.
10038  Ideally, no extra packages except those mentioned in the Elsevier documentation
10039  should be used.
10040  Essentially, Elsevier require as 
10041 \begin_inset Quotes eld
10042 \end_inset
10043
10044 clean
10045 \begin_inset Quotes erd
10046 \end_inset
10047
10048  a LaTeX file as possible, as their intention is to take the supplied file
10049  and replace the class file with one for the particular journal to which
10050  the paper has been submitted.
10051  This also means that not too much time should be spent on the formating
10052  of the document.
10053  When it comes to be published, this will change anyway.
10054  The rest of the usage for this layout is substantially the same as for
10055  the normal article class.
10056  For details of what Elsevier do and don't allow, refer to their documentation.
10057 \end_layout
10058
10059 \begin_layout Section
10060 Foils [aka 
10061 \family sans
10062 FoilTeX
10063 \family default
10064 ]
10065 \begin_inset CommandInset label
10066 LatexCommand label
10067 name "sec:foiltex"
10068
10069 \end_inset
10070
10071
10072 \end_layout
10073
10074 \begin_layout Standard
10075 by 
10076 \noun on
10077 Allan Rae
10078 \end_layout
10079
10080 \begin_layout Subsection
10081 Introduction
10082 \end_layout
10083
10084 \begin_layout Standard
10085 This section describes how to use LyX to make slides for overhead projectors.
10086  There are two document classes that can do this: the default slides class
10087  and the 
10088 \family sans
10089 FoilTeX
10090 \family default
10091  slides class.
10092  This section documents the latter.
10093 \end_layout
10094
10095 \begin_layout Standard
10096 I'm going to say this again, nice and clear, so that there's no misunderstanding
10097 :
10098 \end_layout
10099
10100 \begin_layout Standard
10101 \begin_inset VSpace bigskip
10102 \end_inset
10103
10104
10105 \end_layout
10106
10107 \begin_layout Standard
10108 \align center
10109
10110 \size large
10111 This section documents the class 
10112 \begin_inset Quotes eld
10113 \end_inset
10114
10115
10116 \family sans
10117 slides (FoilTeX)
10118 \family default
10119
10120 \begin_inset Quotes erd
10121 \end_inset
10122
10123  
10124 \emph on
10125 only.
10126 \end_layout
10127
10128 \begin_layout Standard
10129 \begin_inset VSpace bigskip
10130 \end_inset
10131
10132
10133 \end_layout
10134
10135 \begin_layout Standard
10136 If you're looking for the documentation for 
10137 \begin_inset Quotes eld
10138 \end_inset
10139
10140
10141 \family sans
10142 slides (default)
10143 \family default
10144
10145 \begin_inset Quotes erd
10146 \end_inset
10147
10148 , check out section
10149 \begin_inset space ~
10150 \end_inset
10151
10152
10153 \begin_inset CommandInset ref
10154 LatexCommand ref
10155 reference "sec:slitex"
10156
10157 \end_inset
10158
10159 .
10160  If your machine doesn't have the 
10161 \family sans
10162 foils
10163 \family default
10164  class [
10165 \begin_inset Quotes eld
10166 \end_inset
10167
10168
10169 \family sans
10170 slides (FoilTeX)
10171 \family default
10172
10173 \begin_inset Quotes erd
10174 \end_inset
10175
10176 ] installed, you'll probably have to use the default 
10177 \family sans
10178 slides
10179 \family default
10180  class, which isn't quite as good as 
10181 \family sans
10182 foils.
10183 \end_layout
10184
10185 \begin_layout Standard
10186 The 
10187 \family sans
10188 foils
10189 \family default
10190  class is designed for use with version 2.1 of the 
10191 \family sans
10192 foils.cls
10193 \family default
10194  LaTeX class file which is now an integral part of LaTeX2e.
10195 \end_layout
10196
10197 \begin_layout Subsection
10198 Getting Started
10199 \end_layout
10200
10201 \begin_layout Standard
10202 Obviously, to use this document class, you need to select 
10203 \begin_inset Quotes eld
10204 \end_inset
10205
10206
10207 \family sans
10208 slides (FoilTeX)
10209 \family default
10210
10211 \begin_inset Quotes erd
10212 \end_inset
10213
10214  from the 
10215 \family sans
10216 Class
10217 \family default
10218  entry in the 
10219 \family sans
10220 Document
10221 \begin_inset space ~
10222 \end_inset
10223
10224 Layout
10225 \family default
10226  dialog.
10227  There are some settings in the 
10228 \family sans
10229 Document
10230 \begin_inset space ~
10231 \end_inset
10232
10233 Layout
10234 \family default
10235  dialog that you should know about that are specific to this class:
10236 \end_layout
10237
10238 \begin_layout Itemize
10239 Don't change the options 
10240 \family sans
10241 Sides
10242 \family default
10243  and 
10244 \family sans
10245 Columns
10246 \family default
10247  on the 
10248 \family sans
10249 Document
10250 \begin_inset space ~
10251 \end_inset
10252
10253 Layout
10254 \family default
10255  dialog.
10256  They're ignored by the 
10257 \family sans
10258 foils
10259 \family default
10260  class.
10261 \end_layout
10262
10263 \begin_layout Itemize
10264 The default font size is 20
10265 \begin_inset space \thinspace{}
10266 \end_inset
10267
10268 pt with the other options being 17
10269 \begin_inset space \thinspace{}
10270 \end_inset
10271
10272 pt, 25
10273 \begin_inset space \thinspace{}
10274 \end_inset
10275
10276 pt and 30
10277 \begin_inset space \thinspace{}
10278 \end_inset
10279
10280 pt.
10281 \end_layout
10282
10283 \begin_layout Itemize
10284 The default font is 
10285 \family sans
10286 sans
10287 \family default
10288  
10289 \family sans
10290 serif
10291 \family default
10292  but all math equations are still typeset in the usual roman font.
10293 \end_layout
10294
10295 \begin_layout Itemize
10296
10297 \family sans
10298 FoilTeX
10299 \family default
10300  supports A4 and Letter paper sizes as well as a special size for working
10301  with 35
10302 \begin_inset space \thinspace{}
10303 \end_inset
10304
10305 mm slides.
10306  It doesn't support A5, B5, legal or executive paper sizes.
10307 \end_layout
10308
10309 \begin_layout Itemize
10310 Don't bother changing the 
10311 \family sans
10312 Float Placement
10313 \family default
10314  settings because they are ignored anyway.
10315  All floats appear where they are defined in the text.
10316 \end_layout
10317
10318 \begin_layout Itemize
10319 The 
10320 \family sans
10321 Pagestyle
10322 \family default
10323  setting behaves a bit differently for this class.
10324  
10325 \family sans
10326 FoilTeX
10327 \family default
10328  provides extensive footer and header capabilities including a user-defined
10329  logo.
10330  See section
10331 \begin_inset space ~
10332 \end_inset
10333
10334
10335 \begin_inset CommandInset ref
10336 LatexCommand ref
10337 reference "sec:foilfoot"
10338
10339 \end_inset
10340
10341  for more details.
10342  The title page is treated differently to all other pages in the document
10343  and is 
10344 \emph on
10345 always
10346 \emph default
10347  unnumbered and 
10348 \emph on
10349 always
10350 \emph default
10351  has the logo centered at the bottom of the page (if one is defined).
10352  The possible page style choices and what they do are as follows:
10353 \end_layout
10354
10355 \begin_deeper
10356 \begin_layout Labeling
10357 \labelwidthstring MMMMMMM
10358
10359 \family sans
10360 \series bold
10361 empty
10362 \family default
10363 \series default
10364  The final output contains no page numbers, or other headers or footers
10365  (except footnotes of course).
10366  
10367 \end_layout
10368
10369 \begin_layout Labeling
10370 \labelwidthstring MMMMMMM
10371
10372 \family sans
10373 \series bold
10374 plain
10375 \family default
10376 \series default
10377  The final output contains page numbers centered at the bottom of the page.
10378  No other headings or footers (other than footnotes).
10379 \end_layout
10380
10381 \begin_layout Labeling
10382 \labelwidthstring MMMMMMM
10383
10384 \series bold
10385 foilheadings
10386 \series default
10387  Page numbers in lower right corner.
10388  Additional headers and footers are also shown.
10389  This is also the default.
10390 \end_layout
10391
10392 \begin_layout Labeling
10393 \labelwidthstring MMMMMMM
10394
10395 \series bold
10396 fancy
10397 \series default
10398  Gives you access to the 
10399 \family sans
10400 fancyheadings
10401 \family default
10402  package although its use with 
10403 \family sans
10404 FoilTeX
10405 \family default
10406  is discouraged by the writer of the 
10407 \family sans
10408 FoilTeX
10409 \family default
10410  package because of some potential page layout clashes.
10411 \end_layout
10412
10413 \end_deeper
10414 \begin_layout Subsubsection
10415 Extra Options
10416 \end_layout
10417
10418 \begin_layout Standard
10419 The following options may be used in the extra class options in the 
10420 \family sans
10421 Document\SpecialChar \menuseparator
10422 Settings
10423 \family default
10424  dialog.
10425 \end_layout
10426
10427 \begin_layout Labeling
10428 \labelwidthstring MMMMMMx
10429
10430 \series bold
10431 35mmSlide
10432 \series default
10433  This sets up the page layout for 7.33
10434 \begin_inset space \thinspace{}
10435 \end_inset
10436
10437 in by 11
10438 \begin_inset space \thinspace{}
10439 \end_inset
10440
10441 in paper, which is about the same aspect ratio as a 35
10442 \begin_inset space \thinspace{}
10443 \end_inset
10444
10445 mm slide, making it a bit easier to work with this medium.
10446 \end_layout
10447
10448 \begin_layout Labeling
10449 \labelwidthstring MMMMMMx
10450
10451 \series bold
10452 headrule
10453 \series default
10454  Places a rule across the page below the header on every page except the
10455  title page.
10456 \end_layout
10457
10458 \begin_layout Labeling
10459 \labelwidthstring MMMMMMx
10460
10461 \series bold
10462 footrule
10463 \series default
10464  Places a rule across the page above the footer on every page except the
10465  title page.
10466 \end_layout
10467
10468 \begin_layout Labeling
10469 \labelwidthstring MMMMMMx
10470
10471 \series bold
10472 dvips
10473 \series default
10474  This is automatically set each time you create a new 
10475 \family sans
10476 foils
10477 \family default
10478  document.
10479  This option tells 
10480 \family sans
10481 FoilTeX
10482 \family default
10483  to use the dvips driver to rotate those pages that are set as landscape
10484  foils.
10485 \end_layout
10486
10487 \begin_layout Labeling
10488 \labelwidthstring MMMMMMx
10489
10490 \series bold
10491 landscape
10492 \series default
10493  Simply changes the page dimensions to those of a landscape page but doesn't
10494  do any rotation.
10495  Thus if you use this option you need to use an external program to rotate
10496  each page or feed your paper through your printer as landscape.
10497  Note that this option effectively reverses the roles of the 
10498 \family sans
10499 Foilhead
10500 \family default
10501  and 
10502 \family sans
10503 Rotatefoilhead
10504 \family default
10505  environments (don't worry these are described in the next section).
10506 \end_layout
10507
10508 \begin_layout Labeling
10509 \labelwidthstring MMMMMMx
10510
10511 \series bold
10512 leqno
10513 \series default
10514  Equation numbers on the left.
10515 \end_layout
10516
10517 \begin_layout Labeling
10518 \labelwidthstring MMMMMMx
10519
10520 \series bold
10521 fleqn
10522 \series default
10523  Flush-left equations.
10524 \end_layout
10525
10526 \begin_layout Subsection
10527 Supported Environments
10528 \end_layout
10529
10530 \begin_layout Standard
10531 Most of the environments commonly supported in other classes are also supported
10532  by the 
10533 \family sans
10534 foils
10535 \family default
10536  class.
10537  There are several additional environments provided by 
10538 \family sans
10539 FoilTeX
10540 \family default
10541  as well as a couple added by LyX.
10542  The following environments are shared with other classes:
10543 \end_layout
10544
10545 \begin_layout Standard
10546 \begin_inset ERT
10547 status open
10548
10549 \begin_layout Plain Layout
10550
10551
10552 \backslash
10553 begin{multicols}{2}
10554 \end_layout
10555
10556 \end_inset
10557
10558
10559 \end_layout
10560
10561 \begin_layout Itemize
10562
10563 \family sans
10564 Standard
10565 \end_layout
10566
10567 \begin_layout Itemize
10568
10569 \family sans
10570 Itemize
10571 \end_layout
10572
10573 \begin_layout Itemize
10574
10575 \family sans
10576 Enumerate
10577 \end_layout
10578
10579 \begin_layout Itemize
10580
10581 \family sans
10582 Description
10583 \end_layout
10584
10585 \begin_layout Itemize
10586
10587 \family sans
10588 List
10589 \end_layout
10590
10591 \begin_layout Itemize
10592
10593 \family sans
10594 LyX-Code
10595 \end_layout
10596
10597 \begin_layout Itemize
10598
10599 \family sans
10600 Verse
10601 \end_layout
10602
10603 \begin_layout Itemize
10604
10605 \family sans
10606 Quote
10607 \end_layout
10608
10609 \begin_layout Itemize
10610
10611 \family sans
10612 Quotation
10613 \end_layout
10614
10615 \begin_layout Itemize
10616
10617 \family sans
10618 Title
10619 \end_layout
10620
10621 \begin_layout Itemize
10622
10623 \family sans
10624 Author
10625 \end_layout
10626
10627 \begin_layout Itemize
10628
10629 \family sans
10630 Date
10631 \end_layout
10632
10633 \begin_layout Itemize
10634
10635 \family sans
10636 Abstract
10637 \end_layout
10638
10639 \begin_layout Itemize
10640
10641 \family sans
10642 Bibliography
10643 \end_layout
10644
10645 \begin_layout Itemize
10646
10647 \family sans
10648 Address
10649 \end_layout
10650
10651 \begin_layout Itemize
10652
10653 \family sans
10654 RightAddress
10655 \end_layout
10656
10657 \begin_layout Itemize
10658
10659 \family sans
10660 Caption
10661 \end_layout
10662
10663 \begin_layout Itemize
10664
10665 \family sans
10666 Comment
10667 \end_layout
10668
10669 \begin_layout Standard
10670 \begin_inset ERT
10671 status open
10672
10673 \begin_layout Plain Layout
10674
10675
10676 \backslash
10677 end{multicols}
10678 \end_layout
10679
10680 \end_inset
10681
10682
10683 \end_layout
10684
10685 \begin_layout Standard
10686 That is, all the major environments apart from the sectioning environments.
10687  Since foils are essentially self-contained sections, with a title and body,
10688  
10689 \family sans
10690 FoilTeX
10691 \family default
10692  provides specific commands for starting new foils and these are:
10693 \end_layout
10694
10695 \begin_layout Itemize
10696
10697 \family sans
10698 Foilhead
10699 \end_layout
10700
10701 \begin_layout Itemize
10702
10703 \family sans
10704 Rotatefoilhead
10705 \end_layout
10706
10707 \begin_layout Standard
10708 LyX also provides slightly modified versions of these two environments called:
10709 \end_layout
10710
10711 \begin_layout Itemize
10712
10713 \family sans
10714 ShortFoilhead
10715 \end_layout
10716
10717 \begin_layout Itemize
10718
10719 \family sans
10720 ShortRotatefoilhead
10721 \end_layout
10722
10723 \begin_layout Standard
10724 and the differences will be explained in the next section.
10725 \end_layout
10726
10727 \begin_layout Standard
10728 Since foils are often used in presenting ideas or new theorems and such
10729  
10730 \family sans
10731 FoilTeX
10732 \family default
10733  also provides a comprehensive box of goodies for presenting them:
10734 \end_layout
10735
10736 \begin_layout Standard
10737 \begin_inset ERT
10738 status open
10739
10740 \begin_layout Plain Layout
10741
10742
10743 \backslash
10744 begin{multicols}{2}
10745 \end_layout
10746
10747 \end_inset
10748
10749
10750 \end_layout
10751
10752 \begin_layout Itemize
10753
10754 \family sans
10755 Theorem
10756 \end_layout
10757
10758 \begin_layout Itemize
10759
10760 \family sans
10761 Lemma
10762 \end_layout
10763
10764 \begin_layout Itemize
10765
10766 \family sans
10767 Corollary
10768 \end_layout
10769
10770 \begin_layout Itemize
10771
10772 \family sans
10773 Proposition
10774 \end_layout
10775
10776 \begin_layout Itemize
10777
10778 \family sans
10779 Definition
10780 \end_layout
10781
10782 \begin_layout Itemize
10783
10784 \family sans
10785 Proof
10786 \end_layout
10787
10788 \begin_layout Itemize
10789
10790 \family sans
10791 Theorem*
10792 \end_layout
10793
10794 \begin_layout Itemize
10795
10796 \family sans
10797 Lemma*
10798 \end_layout
10799
10800 \begin_layout Itemize
10801
10802 \family sans
10803 Corollary*
10804 \end_layout
10805
10806 \begin_layout Itemize
10807
10808 \family sans
10809 Proposition*
10810 \end_layout
10811
10812 \begin_layout Itemize
10813
10814 \family sans
10815 Definition*
10816 \end_layout
10817
10818 \begin_layout Standard
10819 \begin_inset ERT
10820 status open
10821
10822 \begin_layout Plain Layout
10823
10824
10825 \backslash
10826 end{multicols}
10827 \end_layout
10828
10829 \end_inset
10830
10831
10832 \end_layout
10833
10834 \begin_layout Standard
10835 The starred versions are unnumbered while the unstarred versions are numbered.
10836  There are also two list environments added by LyX and these are:
10837 \end_layout
10838
10839 \begin_layout Itemize
10840
10841 \family sans
10842 TickList
10843 \end_layout
10844
10845 \begin_layout Itemize
10846
10847 \family sans
10848 CrossList
10849 \end_layout
10850
10851 \begin_layout Standard
10852
10853 \family sans
10854 FoilTeX
10855 \family default
10856  provides some powerful header and footer capabilities that are best set
10857  in the preamble although they may be set at any point in a document.
10858  If you want to change these settings in your document the best place to
10859  do so is at the very top of a foil, i.
10860 \begin_inset space \thinspace{}
10861 \end_inset
10862
10863 g.
10864 \emph on
10865
10866 \begin_inset space \space{}
10867 \end_inset
10868
10869
10870 \emph default
10871 straight after the foilhead.
10872 \end_layout
10873
10874 \begin_layout Standard
10875 For this purpose, the following command styles are provided [
10876 \shape smallcaps
10877 Martin Vermeer
10878 \shape default
10879 ]:
10880 \end_layout
10881
10882 \begin_layout Standard
10883 \begin_inset ERT
10884 status open
10885
10886 \begin_layout Plain Layout
10887
10888
10889 \backslash
10890 begin{multicols}{2}
10891 \end_layout
10892
10893 \end_inset
10894
10895
10896 \end_layout
10897
10898 \begin_layout Itemize
10899
10900 \family sans
10901 My
10902 \begin_inset space ~
10903 \end_inset
10904
10905 Logo
10906 \end_layout
10907
10908 \begin_layout Itemize
10909
10910 \family sans
10911 Restriction
10912 \end_layout
10913
10914 \begin_layout Itemize
10915
10916 \family sans
10917 Right
10918 \begin_inset space ~
10919 \end_inset
10920
10921 Footer
10922 \end_layout
10923
10924 \begin_layout Itemize
10925
10926 \family sans
10927 Right
10928 \begin_inset space ~
10929 \end_inset
10930
10931 Header
10932 \end_layout
10933
10934 \begin_layout Itemize
10935
10936 \family sans
10937 Left
10938 \begin_inset space ~
10939 \end_inset
10940
10941 Header
10942 \end_layout
10943
10944 \begin_deeper
10945 \begin_layout Standard
10946 \begin_inset space ~
10947 \end_inset
10948
10949
10950 \end_layout
10951
10952 \end_deeper
10953 \begin_layout Standard
10954 \begin_inset ERT
10955 status open
10956
10957 \begin_layout Plain Layout
10958
10959
10960 \backslash
10961 end{multicols}
10962 \end_layout
10963
10964 \end_inset
10965
10966
10967 \end_layout
10968
10969 \begin_layout Standard
10970 There are also a few commands provided by 
10971 \family sans
10972 FoilTeX
10973 \family default
10974  that aren't directly supported by LyX but I'll tell you what they do and
10975  how to use them in section
10976 \begin_inset space ~
10977 \end_inset
10978
10979
10980 \begin_inset CommandInset ref
10981 LatexCommand ref
10982 reference "sec:unsuppfoils"
10983
10984 \end_inset
10985
10986 .
10987 \end_layout
10988
10989 \begin_layout Subsection
10990 Building a Set of Foils
10991 \end_layout
10992
10993 \begin_layout Standard
10994 This section will give a simple introduction to using the different environments
10995  to build a set of foils.
10996  If you want to see an example set of foils, take a look at the 
10997 \family typewriter
10998 Foils.lyx
10999 \family default
11000  file you find in LyX's 
11001 \family typewriter
11002 examples
11003 \family default
11004  folder.
11005 \end_layout
11006
11007 \begin_layout Subsubsection
11008 Give It a Title Page
11009 \end_layout
11010
11011 \begin_layout Standard
11012 Unlike other classes that provide 
11013 \family sans
11014 Title
11015 \family default
11016
11017 \family sans
11018 Author
11019 \family default
11020
11021 \family sans
11022 Date
11023 \family default
11024  and 
11025 \family sans
11026 Abstract
11027 \family default
11028  environments, 
11029 \family sans
11030 foils
11031 \family default
11032  creates the title on a page of its own.
11033  If you leave out the 
11034 \family sans
11035 Date
11036 \family default
11037  environment LaTeX will substitute the current date (every time you regenerate
11038  the output).
11039 \end_layout
11040
11041 \begin_layout Subsubsection
11042 Start a New Foil
11043 \end_layout
11044
11045 \begin_layout Standard
11046 As I mentioned earlier, there are four ways of starting a new foil.
11047  For portrait foils you should use 
11048 \family sans
11049 Foilhead
11050 \family default
11051  or 
11052 \family sans
11053 ShortFoilhead.
11054
11055 \family default
11056  The difference between these two environments is the amount of space between
11057  the title of the foil (the foilhead) and the body of the foil.
11058 \end_layout
11059
11060 \begin_layout Standard
11061 Landscape foils are generated using the 
11062 \family sans
11063 Rotatefoilhead
11064 \family default
11065  and 
11066 \family sans
11067 ShortRotatefoilhead
11068 \family default
11069  environments.
11070  Again the only difference is the spacing between foilhead and body.
11071  Both of the short versions have 0.5 inches less separation between the foilhead
11072  and the body.
11073  
11074 \end_layout
11075
11076 \begin_layout Standard
11077 One problem with the support for landscape foils is the requirement that
11078  you have to use the 
11079 \family typewriter
11080 dvips
11081 \family default
11082  driver to generate the PostScript output otherwise the foils won't be rotated.
11083  It is possible to get landscape foils even if you haven't got the 
11084 \family typewriter
11085 dvips
11086 \family default
11087  driver provided you can feed your foils sideways through your printer ;-)
11088 \end_layout
11089
11090 \begin_layout Subsubsection
11091 Theorems, Lemmas, Proofs and more
11092 \end_layout
11093
11094 \begin_layout Standard
11095 Due to a small bug in LyX you can't have two of the same type of these environme
11096 nts directly following each other.
11097  They must be separated by something.
11098  If you try, you will just be extending the previous environment as if you
11099  had merged the two environments together.
11100  So, how do you get around this problem? The simplest option is to insert
11101  some text between the two environments or add a 
11102 \family sans
11103 LaTeX
11104 \family default
11105  environment between the two with just a 
11106 \begin_inset Quotes eld
11107 \end_inset
11108
11109
11110 \family typewriter
11111 %
11112 \family default
11113
11114 \begin_inset Quotes erd
11115 \end_inset
11116
11117  in it.
11118  This will force LyX to produce two separate environments and hence the
11119  correct LaTeX output.
11120  An example is provided in the example file included with the LyX distribution.
11121  Remember, this problem only occurs if you are trying to place two of the
11122  same type of theorem-like environments one directly after the other.
11123 \end_layout
11124
11125 \begin_layout Subsubsection
11126 Lists
11127 \end_layout
11128
11129 \begin_layout Standard
11130 You get all the commonly supported list styles found in other classes as
11131  well as two new ones.
11132  I'll only describe the new ones here.
11133  If you want to find out more about the other list environments check out
11134  the 
11135 \emph on
11136 User's Guide.
11137
11138 \emph default
11139  If you intend to use itemized lists you might also want to read about the
11140  
11141 \family sans
11142 Itemize
11143 \begin_inset space ~
11144 \end_inset
11145
11146 Bullet
11147 \begin_inset space ~
11148 \end_inset
11149
11150 Selection
11151 \family default
11152  dialog described above in section
11153 \begin_inset space ~
11154 \end_inset
11155
11156
11157 \begin_inset CommandInset ref
11158 LatexCommand ref
11159 reference "sec:bullet"
11160
11161 \end_inset
11162
11163 .
11164 \end_layout
11165
11166 \begin_layout Standard
11167 The two new list styles, 
11168 \family sans
11169 TickList
11170 \family default
11171  and 
11172 \family sans
11173 CrossList
11174 \family default
11175 , are designed to make it easier for you to create lists of do's and don'ts
11176  or right and wrong by providing dedicated environments that use a tick
11177  or a cross as the label of the list.
11178  These lists are in fact dedicated variants of the 
11179 \family sans
11180 Itemize
11181 \family default
11182  environment.
11183  They do however require that you have the 
11184 \family typewriter
11185 psnfss
11186 \family default
11187  packages installed.
11188 \end_layout
11189
11190 \begin_layout Subsubsection
11191 Figures and Tables
11192 \end_layout
11193
11194 \begin_layout Standard
11195
11196 \family sans
11197 FoilTeX
11198 \family default
11199  redefines the floating tables and figures so that they appear exactly where
11200  they are in the text rather than pushing them to the top of the page or
11201  to some user specified location.
11202  In fact if you change the float placement settings they are simply ignored.
11203 \end_layout
11204
11205 \begin_layout Subsubsection
11206 Page Headers and Footers
11207 \begin_inset CommandInset label
11208 LatexCommand label
11209 name "sec:foilfoot"
11210
11211 \end_inset
11212
11213
11214 \end_layout
11215
11216 \begin_layout Standard
11217
11218 \family sans
11219 My
11220 \begin_inset space ~
11221 \end_inset
11222
11223 Logo
11224 \family default
11225  and 
11226 \family sans
11227 Restriction
11228 \family default
11229  are two commands used to control the left-footer text string.
11230  The first is meant to allow you to include a graphic logo on your foils
11231  and defaults to 
11232 \begin_inset Quotes eld
11233 \end_inset
11234
11235 -Typeset by 
11236 \family sans
11237 FoilTeX
11238 \family default
11239 -
11240 \begin_inset Quotes erd
11241 \end_inset
11242
11243 .
11244  While the second is meant to provide a classification for the audience,
11245  
11246 \emph on
11247 e.
11248 \begin_inset space \thinspace{}
11249 \end_inset
11250
11251 g.
11252 \emph default
11253
11254 \begin_inset space \space{}
11255 \end_inset
11256
11257 Confidential.
11258  It is empty by default.
11259 \end_layout
11260
11261 \begin_layout Standard
11262 The remaining page corners can be filled by 
11263 \family sans
11264 Right
11265 \begin_inset space ~
11266 \end_inset
11267
11268 Footer
11269 \family default
11270  (which defaults to page numbers), 
11271 \family sans
11272 Right
11273 \begin_inset space ~
11274 \end_inset
11275
11276 Header
11277 \family default
11278  (top right) and 
11279 \family sans
11280 Left
11281 \begin_inset space ~
11282 \end_inset
11283
11284 Header
11285 \family default
11286  (top left).
11287 \end_layout
11288
11289 \begin_layout Subsection
11290 Unsupported 
11291 \family sans
11292 FoilTeX
11293 \family default
11294  Goodies
11295 \begin_inset CommandInset label
11296 LatexCommand label
11297 name "sec:unsuppfoils"
11298
11299 \end_inset
11300
11301
11302 \end_layout
11303
11304 \begin_layout Standard
11305 All the commands mentioned below need to be set in a 
11306 \family sans
11307 LaTeX
11308 \family default
11309  environment or as 
11310 \family sans
11311 TeX
11312 \family default
11313  within another environment.
11314 \end_layout
11315
11316 \begin_layout Subsubsection
11317 Lengths
11318 \end_layout
11319
11320 \begin_layout Standard
11321 All lengths are adjusted using the 
11322 \family typewriter
11323
11324 \backslash
11325 setlength{
11326 \family default
11327 \emph on
11328 lengthname
11329 \family typewriter
11330 \emph default
11331 }{
11332 \family default
11333 \emph on
11334 newlength
11335 \family typewriter
11336 \emph default
11337 }
11338 \family default
11339  command.
11340  Where 
11341 \emph on
11342 lengthname
11343 \emph default
11344  should be replaced by the name given to the length you want to change and
11345  
11346 \emph on
11347 newlength
11348 \emph default
11349  is the length value.
11350  All lengths should be specified in units of length such as inches (
11351 \family typewriter
11352 in
11353 \family default
11354 ), millimeters (
11355 \family typewriter
11356 mm
11357 \family default
11358 ) or points (
11359 \family typewriter
11360 pt
11361 \family default
11362 ) or relative to some document or font-based length such as 
11363 \family typewriter
11364
11365 \backslash
11366 textwidth
11367 \family default
11368 .
11369  
11370 \end_layout
11371
11372 \begin_layout Standard
11373 It's possible to change the spacing between a foilhead and the body of the
11374  foil by adjusting the length specified by 
11375 \family typewriter
11376
11377 \backslash
11378 foilheadskip
11379 \family default
11380 .
11381  For example, to make 
11382 \emph on
11383 all
11384 \emph default
11385  foilheads 0.5
11386 \begin_inset space \space{}
11387 \end_inset
11388
11389 in closer to their bodies put the following in the preamble: 
11390 \family typewriter
11391
11392 \backslash
11393 setlength{
11394 \backslash
11395 foilheadskip}{-0.5in}
11396 \end_layout
11397
11398 \begin_layout Standard
11399 The spacings around floats can be adjusted by setting these lengths:
11400 \end_layout
11401
11402 \begin_layout Labeling
11403 \labelwidthstring MMMMMMMMMMM
11404
11405 \family typewriter
11406
11407 \backslash
11408 abovefloatskip
11409 \family default
11410  Separation between the text and the top of the float
11411 \end_layout
11412
11413 \begin_layout Labeling
11414 \labelwidthstring MMMMMMMMMMM
11415
11416 \family typewriter
11417
11418 \backslash
11419 abovecaptionskip
11420 \family default
11421  Separation between the float and the caption
11422 \end_layout
11423
11424 \begin_layout Labeling
11425 \labelwidthstring MMMMMMMMMMM
11426
11427 \family typewriter
11428
11429 \backslash
11430 belowcaptionskip
11431 \family default
11432  Separation between the caption and the following text
11433 \end_layout
11434
11435 \begin_layout Labeling
11436 \labelwidthstring MMMMMMMMMMM
11437
11438 \family typewriter
11439
11440 \backslash
11441 captionwidth
11442 \family default
11443  You can make the captions narrower than the surrounding text by adjusting
11444  this length.
11445  Best done relative to 
11446 \family typewriter
11447
11448 \backslash
11449 textwidth
11450 \family default
11451 .
11452 \end_layout
11453
11454 \begin_layout Standard
11455 There are also several title page related lengths that you may find useful
11456  if you have a long title or several authors:
11457 \end_layout
11458
11459 \begin_layout Labeling
11460 \labelwidthstring MMMMMMMMMMM
11461
11462 \family typewriter
11463
11464 \backslash
11465 abovetitleskip
11466 \family default
11467  Separation from headers to 
11468 \family sans
11469 Title
11470 \end_layout
11471
11472 \begin_layout Labeling
11473 \labelwidthstring MMMMMMMMMMM
11474
11475 \family typewriter
11476
11477 \backslash
11478 titleauthorskip
11479 \family default
11480  between 
11481 \family sans
11482 Title
11483 \family default
11484  and 
11485 \family sans
11486 Author
11487 \family default
11488  environments
11489 \end_layout
11490
11491 \begin_layout Labeling
11492 \labelwidthstring MMMMMMMMMMM
11493
11494 \family typewriter
11495
11496 \backslash
11497 authorauthorskip
11498 \family default
11499  between multiple 
11500 \family sans
11501 Author
11502 \family default
11503  lines
11504 \end_layout
11505
11506 \begin_layout Labeling
11507 \labelwidthstring MMMMMMMMMMM
11508
11509 \family typewriter
11510
11511 \backslash
11512 authordateskip
11513 \family default
11514  between the 
11515 \family sans
11516 Author
11517 \family default
11518  and the 
11519 \family sans
11520 Date
11521 \end_layout
11522
11523 \begin_layout Labeling
11524 \labelwidthstring MMMMMMMMMMM
11525
11526 \family typewriter
11527
11528 \backslash
11529 dateabstractskip
11530 \family default
11531  between the 
11532 \family sans
11533 Date
11534 \family default
11535  and the 
11536 \family sans
11537 Abstract
11538 \end_layout
11539
11540 \begin_layout Standard
11541 The last length related command affects all the list environments.
11542  If you place 
11543 \family typewriter
11544
11545 \backslash
11546 zerolistvertdimens
11547 \family default
11548  
11549 \emph on
11550 inside
11551 \emph default
11552  a list environment then all the vertical spacing between the list items
11553  is removed.
11554  Note that this is a command not a length so it doesn't require 
11555 \family typewriter
11556
11557 \backslash
11558 setlength
11559 \family default
11560  like the stuff mentioned above.
11561 \end_layout
11562
11563 \begin_layout Subsubsection
11564 Headers and Footers
11565 \end_layout
11566
11567 \begin_layout Standard
11568 The 
11569 \family typewriter
11570
11571 \backslash
11572 LogoOn
11573 \family default
11574  and 
11575 \family typewriter
11576
11577 \backslash
11578 LogoOff
11579 \family default
11580  commands control whether the logo in the 
11581 \family sans
11582 MyLogo
11583 \family default
11584  definition appear on a given page.
11585  If you put 
11586 \family typewriter
11587
11588 \backslash
11589 LogoOff
11590 \family default
11591  in the preamble then none of the foils will have the logo on them.
11592  If you don't want the logo on a particular page place the 
11593 \family typewriter
11594
11595 \backslash
11596 LogoOff
11597 \family default
11598  directly after the foilhead of that page and the 
11599 \family typewriter
11600
11601 \backslash
11602 LogoOn
11603 \family default
11604  directly after the next foilhead.
11605 \end_layout
11606
11607 \begin_layout Standard
11608 If you decide to use the 
11609 \family sans
11610 fancy
11611 \family default
11612  page style setting in the 
11613 \family sans
11614 Document
11615 \begin_inset space ~
11616 \end_inset
11617
11618 Layout
11619 \family default
11620  dialog you should probably add 
11621 \family typewriter
11622
11623 \backslash
11624 let
11625 \backslash
11626 headwidth
11627 \backslash
11628 textwidth
11629 \family default
11630  to your preamble so headers and footers on landscape pages are correctly
11631  placed when rotated.
11632  This is due to some clashes between the page layouts provided by the 
11633 \family sans
11634 fancyheadings
11635 \family default
11636  package and the 
11637 \family sans
11638 foils
11639 \family default
11640  class.
11641 \end_layout
11642
11643 \begin_layout Section
11644 Hollywood (Hollywood spec scripts)
11645 \end_layout
11646
11647 \begin_layout Standard
11648 by 
11649 \shape smallcaps
11650 Garst Reese
11651 \end_layout
11652
11653 \begin_layout Subsection
11654 Introduction
11655 \end_layout
11656
11657 \begin_layout Standard
11658 Getting the format of a Hollywood script right is a 
11659 \begin_inset Quotes eld
11660 \end_inset
11661
11662 rite of passage.
11663 \begin_inset Quotes erd
11664 \end_inset
11665
11666  It is designed to make the readers focus on content and to be easy and
11667  familiar for the actors to read.
11668  Each page of a script should be one minute of film.
11669  Nothing goes in a script that you cannot see or hear on screen.
11670  The courier 12 pt font should be used throughout.
11671  No italics.
11672 \end_layout
11673
11674 \begin_layout Subsection
11675 Special problems
11676 \end_layout
11677
11678 \begin_layout Standard
11679 Speakers' lines should NEVER break in mid-sentence.
11680  If a speaker's lines continue over a page break, repeat the 
11681 \family sans
11682 Speaker
11683 \family default
11684  title followed by (Cont'd).
11685 \end_layout
11686
11687 \begin_layout Subsection
11688 Special features
11689 \end_layout
11690
11691 \begin_layout Standard
11692 Insert the 
11693 \family sans
11694 Speaker
11695 \family default
11696  names as labels then cross-reference the label to insert the name.
11697  The cross-reference dialog will show the current cast of characters.
11698  You can use this to insert the speaker name in narratives also.
11699 \end_layout
11700
11701 \begin_layout Subsection
11702 Paper size and Margins
11703 \end_layout
11704
11705 \begin_layout Standard
11706 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11707 \end_layout
11708
11709 \begin_layout Subsection
11710 Environments
11711 \end_layout
11712
11713 \begin_layout Standard
11714 The following environments are available.
11715  You can use hollywood.bind to get the bind keys shown at the right.
11716 \end_layout
11717
11718 \begin_layout Itemize
11719
11720 \family sans
11721 Standard
11722 \begin_inset Newline newline
11723 \end_inset
11724
11725
11726 \family default
11727 Used where nothing else works.
11728  Try to avoid it.
11729 \end_layout
11730
11731 \begin_layout Itemize
11732
11733 \family sans
11734 FADE_IN
11735 \family default
11736 :
11737 \begin_inset space \hfill{}
11738 \end_inset
11739
11740
11741 \family sans
11742 M-z S-I
11743 \family default
11744
11745 \begin_inset Newline newline
11746 \end_inset
11747
11748 Usually followed by something like 
11749 \begin_inset Quotes eld
11750 \end_inset
11751
11752 on Sally waking up.
11753 \begin_inset Quotes erd
11754 \end_inset
11755
11756
11757 \end_layout
11758
11759 \begin_layout Itemize
11760
11761 \family sans
11762 INT:
11763 \begin_inset space \hfill{}
11764 \end_inset
11765
11766 M-z i
11767 \begin_inset Newline newline
11768 \end_inset
11769
11770
11771 \family default
11772 Introduces a new INTERIOR camera set-up.
11773  Always followed by DAY or NIGHT, or something similar to define the lighting
11774  required.
11775  Everthing on this line in CAPS.
11776 \end_layout
11777
11778 \begin_layout Itemize
11779
11780 \family sans
11781 EXT:
11782 \begin_inset space \hfill{}
11783 \end_inset
11784
11785 M-z e
11786 \begin_inset Newline newline
11787 \end_inset
11788
11789
11790 \family default
11791 Introduces a new EXTERIOR camera set-up.
11792  Everthing on this line in CAPS.
11793 \end_layout
11794
11795 \begin_layout Itemize
11796
11797 \family sans
11798 Speaker
11799 \begin_inset space \hfill{}
11800 \end_inset
11801
11802 M-z s
11803 \begin_inset Newline newline
11804 \end_inset
11805
11806
11807 \family default
11808 The character speaking.
11809 \end_layout
11810
11811 \begin_layout Itemize
11812
11813 \family sans
11814 Parenthetical
11815 \begin_inset space \hfill{}
11816 \end_inset
11817
11818 M-z p
11819 \begin_inset Newline newline
11820 \end_inset
11821
11822
11823 \family default
11824 Instructions to the speaker.
11825  The () are automatically inserted, but only the ( will show in LyX.
11826  Both will be printed.
11827 \end_layout
11828
11829 \begin_layout Itemize
11830
11831 \family sans
11832 Dialogue
11833 \begin_inset space \hfill{}
11834 \end_inset
11835
11836 M-z d
11837 \begin_inset Newline newline
11838 \end_inset
11839
11840
11841 \family default
11842 What the 
11843 \family sans
11844 Speaker
11845 \family default
11846  says.
11847 \end_layout
11848
11849 \begin_layout Itemize
11850
11851 \family sans
11852 Transition
11853 \begin_inset space \hfill{}
11854 \end_inset
11855
11856 M-z t
11857 \begin_inset Newline newline
11858 \end_inset
11859
11860
11861 \family default
11862 Camera movement instruction.
11863  e.
11864 \begin_inset space \thinspace{}
11865 \end_inset
11866
11867 g.
11868 \begin_inset space \space{}
11869 \end_inset
11870
11871 CUT TO:
11872 \end_layout
11873
11874 \begin_layout Itemize
11875
11876 \family sans
11877 FADE OUT:
11878 \begin_inset space \hfill{}
11879 \end_inset
11880
11881 M-z S-I
11882 \end_layout
11883
11884 \begin_layout Itemize
11885
11886 \family sans
11887 Author
11888 \begin_inset space \hfill{}
11889 \end_inset
11890
11891 M-z S-A
11892 \end_layout
11893
11894 \begin_layout Itemize
11895
11896 \family sans
11897 Title
11898 \begin_inset space \hfill{}
11899 \end_inset
11900
11901 M-z S-T
11902 \end_layout
11903
11904 \begin_layout Itemize
11905
11906 \family sans
11907 Right_Address
11908 \begin_inset space \hfill{}
11909 \end_inset
11910
11911 M-z r
11912 \end_layout
11913
11914 \begin_layout Subsection
11915 Script jargon
11916 \end_layout
11917
11918 \begin_layout Itemize
11919 (O.S) — off screen
11920 \end_layout
11921
11922 \begin_layout Itemize
11923 (V.0) — voice over
11924 \end_layout
11925
11926 \begin_layout Itemize
11927 b.
11928 \begin_inset space \thinspace{}
11929 \end_inset
11930
11931 g.
11932  — background
11933 \end_layout
11934
11935 \begin_layout Itemize
11936 C.U.
11937  — close-up
11938 \end_layout
11939
11940 \begin_layout Itemize
11941 PAN — camera movement
11942 \end_layout
11943
11944 \begin_layout Itemize
11945 INSERT — cut to close-up of
11946 \end_layout
11947
11948 \begin_layout Section
11949 ijmpc and ijmpd
11950 \end_layout
11951
11952 \begin_layout Standard
11953 by 
11954 \noun on
11955 Panayotis Papasotiriou
11956 \end_layout
11957
11958 \begin_layout Subsection
11959 Overview
11960 \end_layout
11961
11962 \begin_layout Standard
11963 The ijmpc package is a set of macros that facilitates electronic manuscript
11964  submission to the 
11965 \emph on
11966 International Journal of Modern Physics C
11967 \emph default
11968 .
11969  Similarly, the ijmpd package is for creating manuscripts to be submitted
11970  to the 
11971 \emph on
11972 International Journal of Modern Physics D
11973 \emph default
11974 .
11975  Both journals are published by World Scientific.
11976  The corresponding document classes are named 
11977 \family typewriter
11978 ws-ijmpc.cls
11979 \family default
11980  and 
11981 \family typewriter
11982 ws-ijmpd.cls
11983 \family default
11984 , respectively.
11985  These files, together with instructions for the authors, can be downloaded
11986  from the sites 
11987 \begin_inset Flex URL
11988 status collapsed
11989
11990 \begin_layout Plain Layout
11991
11992 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
11993 \end_layout
11994
11995 \end_inset
11996
11997  and 
11998 \begin_inset Flex URL
11999 status collapsed
12000
12001 \begin_layout Plain Layout
12002
12003 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12004 \end_layout
12005
12006 \end_inset
12007
12008 .
12009  Both packages are modified versions of the standard 
12010 \begin_inset Quotes eld
12011 \end_inset
12012
12013 article
12014 \begin_inset Quotes erd
12015 \end_inset
12016
12017  package, and they are almost (but not exactly) identical.
12018  Most of their features are supported by LyX.
12019  I have used LyX successfully to write articles submitted to both journals
12020  without any problem.
12021 \end_layout
12022
12023 \begin_layout Subsection
12024 Writing a paper
12025 \end_layout
12026
12027 \begin_layout Standard
12028 As usual, the easiest way to write a paper is to start with a template.
12029  Click on 
12030 \family sans
12031 File\SpecialChar \menuseparator
12032 New from
12033 \family default
12034  
12035 \family sans
12036 \bar under
12037 T
12038 \bar default
12039 emplate
12040 \family default
12041 , then choose the 
12042 \family typewriter
12043 ijmpc.lyx
12044 \family default
12045  or 
12046 \family typewriter
12047 ijmpd.lyx
12048 \family default
12049  template.
12050  This will give an (almost) empty document that includes the most common
12051  fields found in a manuscript.
12052  Simply overwrite the existing text (including the brackets, 
12053 \family typewriter
12054 <>
12055 \family default
12056 ) with your text.
12057  You should keep in mind the following remarks.
12058 \end_layout
12059
12060 \begin_layout Enumerate
12061 LyX won't let you change the font size and the page style of the document,
12062  because such modifications are not allowed by both packages.
12063 \end_layout
12064
12065 \begin_layout Enumerate
12066 The language of the document should not be changed.
12067  Before previewing your paper, be sure that the babel package is not used.
12068  To do this, click on 
12069 \family sans
12070 Tools\SpecialChar \menuseparator
12071 Preferences
12072 \family default
12073 , select the 
12074 \family sans
12075 Lang Opts
12076 \family default
12077  tab, deselect the 
12078 \family sans
12079 Use babel
12080 \family default
12081  checkbox in the language settings, and click on 
12082 \family sans
12083 Apply
12084 \family default
12085  (or 
12086 \family sans
12087 Save
12088 \family default
12089 , if you wish to make this change permanent).
12090 \end_layout
12091
12092 \begin_layout Enumerate
12093 The 
12094 \begin_inset Quotes eld
12095 \end_inset
12096
12097 Keywords
12098 \begin_inset Quotes erd
12099 \end_inset
12100
12101  style must be used to define keywords.
12102 \end_layout
12103
12104 \begin_layout Enumerate
12105 The ijmpc package provides a style named 
12106 \begin_inset Quotes eld
12107 \end_inset
12108
12109 Classification Codes
12110 \begin_inset Quotes erd
12111 \end_inset
12112
12113 , which can be used to define classification codes, such as PACS numbers.
12114  Note that this facility is not supported by the ijmpd package.
12115 \end_layout
12116
12117 \begin_layout Enumerate
12118 Several new environments are available: 
12119 \begin_inset Quotes eld
12120 \end_inset
12121
12122 Definition
12123 \begin_inset Quotes erd
12124 \end_inset
12125
12126
12127 \begin_inset Quotes eld
12128 \end_inset
12129
12130 Step
12131 \begin_inset Quotes erd
12132 \end_inset
12133
12134
12135 \begin_inset Quotes eld
12136 \end_inset
12137
12138 Example
12139 \begin_inset Quotes erd
12140 \end_inset
12141
12142
12143 \begin_inset Quotes eld
12144 \end_inset
12145
12146 Remark
12147 \begin_inset Quotes erd
12148 \end_inset
12149
12150
12151 \begin_inset Quotes eld
12152 \end_inset
12153
12154 Notation
12155 \begin_inset Quotes erd
12156 \end_inset
12157
12158
12159 \begin_inset Quotes eld
12160 \end_inset
12161
12162 Theorem
12163 \begin_inset Quotes erd
12164 \end_inset
12165
12166
12167 \begin_inset Quotes eld
12168 \end_inset
12169
12170 Proof
12171 \begin_inset Quotes erd
12172 \end_inset
12173
12174
12175 \begin_inset Quotes eld
12176 \end_inset
12177
12178 Corollary
12179 \begin_inset Quotes erd
12180 \end_inset
12181
12182
12183 \begin_inset Quotes eld
12184 \end_inset
12185
12186 Lemma
12187 \begin_inset Quotes erd
12188 \end_inset
12189
12190
12191 \begin_inset Quotes eld
12192 \end_inset
12193
12194 Proposition
12195 \begin_inset Quotes erd
12196 \end_inset
12197
12198
12199 \begin_inset Quotes eld
12200 \end_inset
12201
12202 Prop
12203 \begin_inset Quotes erd
12204 \end_inset
12205
12206
12207 \begin_inset Quotes eld
12208 \end_inset
12209
12210 Question
12211 \begin_inset Quotes erd
12212 \end_inset
12213
12214
12215 \begin_inset Quotes eld
12216 \end_inset
12217
12218 Claim
12219 \begin_inset Quotes erd
12220 \end_inset
12221
12222 , and 
12223 \begin_inset Quotes eld
12224 \end_inset
12225
12226 Conjecture
12227 \begin_inset Quotes erd
12228 \end_inset
12229
12230 .
12231  Their use is more or less obvious.
12232  LyX supports all these environments; it will use the proper label, text
12233  style, and numbering scheme for each of them.
12234 \end_layout
12235
12236 \begin_layout Enumerate
12237 Both packages use basic citations; the natbib package should not be used.
12238  In LyX, citation references are shown as usual; in the output, citations
12239  are shown as superscripts.
12240  If you want to use a citation as normal text, you should use the 
12241 \family typewriter
12242 refcite
12243 \family default
12244  command, e.
12245 \begin_inset space \thinspace{}
12246 \end_inset
12247
12248 g.
12249 \begin_inset space \space{}
12250 \end_inset
12251
12252
12253 \begin_inset Quotes eld
12254 \end_inset
12255
12256 See Ref.
12257 \begin_inset space \space{}
12258 \end_inset
12259
12260
12261 \family typewriter
12262
12263 \backslash
12264 refcite{key}
12265 \family default
12266
12267 \begin_inset Quotes erd
12268 \end_inset
12269
12270 .
12271 \end_layout
12272
12273 \begin_layout Enumerate
12274 There is no 
12275 \begin_inset Quotes eld
12276 \end_inset
12277
12278 Acknowledgments
12279 \begin_inset Quotes erd
12280 \end_inset
12281
12282  section in both packages.
12283  To put acknowledgments, just use the 
12284 \begin_inset Quotes eld
12285 \end_inset
12286
12287 Section*
12288 \begin_inset Quotes erd
12289 \end_inset
12290
12291  environment.
12292 \end_layout
12293
12294 \begin_layout Enumerate
12295 Appendices may be added to the paper, 
12296 \emph on
12297 after
12298 \emph default
12299  the Acknowledgments and 
12300 \shape italic
12301 before
12302 \shape default
12303  the References.
12304  LyX provides a special environment, called 
12305 \begin_inset Quotes eld
12306 \end_inset
12307
12308 Appendices Section
12309 \begin_inset Quotes erd
12310 \end_inset
12311
12312  which marks the beginning of the appendices.
12313  This environment should be left blank; it just sends a LaTeX command, but
12314  nothing is really printed.
12315  In LyX, the word 
12316 \begin_inset Quotes eld
12317 \end_inset
12318
12319 Appendix
12320 \begin_inset Quotes erd
12321 \end_inset
12322
12323  is printed with blue letters, as a signal that all sections after that
12324  point are appendices.
12325  To write an appendix, use the 
12326 \begin_inset Quotes eld
12327 \end_inset
12328
12329 Appendix
12330 \begin_inset Quotes erd
12331 \end_inset
12332
12333  environment.
12334  LyX will number each appendix with capital letters, as required by both
12335  journals.
12336  Note that 
12337 \begin_inset Quotes eld
12338 \end_inset
12339
12340 Appendices Section
12341 \begin_inset Quotes erd
12342 \end_inset
12343
12344  
12345 \emph on
12346 must
12347 \emph default
12348  be present before the first appendix; if not, all appendices will be numbered
12349  as normal sections in the output.
12350 \end_layout
12351
12352 \begin_layout Enumerate
12353 The ijmpc and the ijmpd packages use the 
12354 \family typewriter
12355 tbl
12356 \family default
12357  command to implement table captions.
12358  As a result, a table created by LyX is printed correctly, but its caption
12359  is ignored.
12360  However, you can use some TeX code to overcome this problem, so that captions
12361  are printed as expected.
12362  To do so, create a float table as usual, remove the caption, and replace
12363  it with the TeX code 
12364 \family typewriter
12365
12366 \backslash
12367 tbl{
12368 \emph on
12369 your table caption
12370 \emph default
12371 }{
12372 \family default
12373  (sic); you must also the TeX code 
12374 \family typewriter
12375 }
12376 \family default
12377  immediately after the tabular material.
12378  Study the example table included in the template files to see how this
12379  trick is implemented.
12380  Alternatively, If you need table captions, you should implement the whole
12381  table float in a 
12382 \family typewriter
12383 .tex
12384 \family default
12385  file, then include this file to the LyX document (
12386 \family sans
12387 Insert\SpecialChar \menuseparator
12388 File\SpecialChar \menuseparator
12389 Child
12390 \begin_inset space ~
12391 \end_inset
12392
12393 Document
12394 \family default
12395 ).
12396  Details on how to create a table float can be found in the files 
12397 \family typewriter
12398 ws-ijmpc.tex
12399 \family default
12400  and 
12401 \family typewriter
12402 ws-ijmpd.tex
12403 \family default
12404 , included in the corresponding packages.
12405 \end_layout
12406
12407 \begin_layout Subsection
12408 Preparing a paper for submission
12409 \end_layout
12410
12411 \begin_layout Standard
12412 Before you submit your paper you must export the LyX document as a LaTeX
12413  file (
12414 \family sans
12415 File\SpecialChar \menuseparator
12416 Export\SpecialChar \menuseparator
12417 LaTeX
12418 \family default
12419 )
12420 \begin_inset Foot
12421 status open
12422
12423 \begin_layout Plain Layout
12424 Actually you have the choice between LaTeX (plain) and pdflatex.
12425  If you intend to use pdflatex to prepare the paper, you should use the
12426  pdflatex option so that included graphics are converted to PDF format,
12427  ready for use by pdflatex.
12428 \end_layout
12429
12430 \end_inset
12431
12432 , then make the following changes to the resulting 
12433 \family typewriter
12434 .tex
12435 \family default
12436  file.
12437 \end_layout
12438
12439 \begin_layout Enumerate
12440 Remove the comment lines before the 
12441 \family typewriter
12442
12443 \backslash
12444 documentclass
12445 \family default
12446  command.
12447 \end_layout
12448
12449 \begin_layout Enumerate
12450 Remove everything between (and including) the 
12451 \family typewriter
12452
12453 \backslash
12454 makeatletter
12455 \family default
12456  and 
12457 \family typewriter
12458
12459 \backslash
12460 makeatother
12461 \family default
12462  commands, except for any commands you specifically put into the LaTeX preamble.
12463 \end_layout
12464
12465 \begin_layout Standard
12466 The modified 
12467 \family typewriter
12468 .tex
12469 \family default
12470  file should be saved and processed through LaTeX as many times as necessary.
12471  You may also want to check the resulting 
12472 \family typewriter
12473 .dvi
12474 \family default
12475  document.
12476 \end_layout
12477
12478 \begin_layout Subsection
12479 Use of TeX code
12480 \end_layout
12481
12482 \begin_layout Standard
12483 The use of TeX code is reduced to two commands, which must be placed at
12484  the top of the document.
12485  If you started writing your paper by using the 
12486 \family typewriter
12487 ijmpc.lyx
12488 \family default
12489  or the 
12490 \family typewriter
12491 ijmpd.lyx
12492 \family default
12493  template, the TeX code needed is already in its place; you usually don't
12494  need to delete it.
12495  You may only modify the first TeX code to specify the information printed
12496  to the top of odd and even pages (authors' names and short paper's title,
12497  respectively).
12498  This TeX code must have the form 
12499 \family typewriter
12500
12501 \backslash
12502 markboth{Authors' Names}{Short Paper's Title}
12503 \family default
12504 .
12505 \end_layout
12506
12507 \begin_layout Section
12508 iopart
12509 \end_layout
12510
12511 \begin_layout Standard
12512 by 
12513 \noun on
12514 Uwe Stöhr
12515 \end_layout
12516
12517 \begin_layout Subsection
12518 Overview
12519 \end_layout
12520
12521 \begin_layout Standard
12522 The iopart package provides a document class to create electronic manuscript
12523  submission to the journals published by the Institute of Physics.
12524  Instructions for the authors how to create a paper using the iopart class
12525  can be downloaded together with the iopart package from the site 
12526 \begin_inset Flex URL
12527 status collapsed
12528
12529 \begin_layout Plain Layout
12530
12531 ftp://ftp.iop.org/pub/journals/latex2e
12532 \end_layout
12533
12534 \end_inset
12535
12536 .
12537 \end_layout
12538
12539 \begin_layout Subsection
12540 Writing a paper
12541 \end_layout
12542
12543 \begin_layout Standard
12544 The easiest way to write a paper is to start with the file 
12545 \emph on
12546 IOP-article.lyx
12547 \emph default
12548  that is available in LyX's examples files folder.
12549  Open this file, save it under a new name, and start writing.
12550  The example file explains how to use the special text environments.
12551  Here are the most important advices:
12552 \end_layout
12553
12554 \begin_layout Itemize
12555 To be able to compile your document to a PDF, PS, or DVI, ensure that the
12556  two options 
12557 \family sans
12558 Use AMS math package
12559 \family default
12560  in the document settings under 
12561 \family sans
12562 Math Options
12563 \family default
12564  are not used!
12565 \end_layout
12566
12567 \begin_layout Itemize
12568
12569 \size normal
12570 The title environment defines the kind of your paper.
12571  So use one of the following environments for the title:
12572 \end_layout
12573
12574 \begin_deeper
12575 \begin_layout Itemize
12576
12577 \family sans
12578 \size normal
12579 Title
12580 \family default
12581  for a Paper
12582 \end_layout
12583
12584 \begin_layout Itemize
12585
12586 \family sans
12587 \size normal
12588 Review
12589 \family default
12590  for a Review
12591 \end_layout
12592
12593 \begin_layout Itemize
12594
12595 \family sans
12596 \size normal
12597 Topical
12598 \family default
12599  for a Topical review
12600 \end_layout
12601
12602 \begin_layout Itemize
12603
12604 \family sans
12605 \size normal
12606 Comment
12607 \family default
12608  for a Comment
12609 \end_layout
12610
12611 \begin_layout Itemize
12612
12613 \family sans
12614 \size normal
12615 Note
12616 \family default
12617  for a Note
12618 \end_layout
12619
12620 \begin_layout Itemize
12621
12622 \family sans
12623 \size normal
12624 Paper
12625 \family default
12626  for a Paper (same as Title)
12627 \end_layout
12628
12629 \begin_layout Itemize
12630
12631 \family sans
12632 \size normal
12633 Prelim
12634 \family default
12635  for a Preliminary communication
12636 \end_layout
12637
12638 \begin_layout Itemize
12639
12640 \family sans
12641 \size normal
12642 Rapid
12643 \family default
12644  for a Rapid communication
12645 \end_layout
12646
12647 \begin_layout Itemize
12648
12649 \family sans
12650 \size normal
12651 Letter
12652 \family default
12653  for a Letter to the editor
12654 \end_layout
12655
12656 \end_deeper
12657 \begin_layout Itemize
12658
12659 \size normal
12660 All title environments except of 
12661 \family sans
12662 Letter
12663 \family default
12664  can have an optional short title.
12665 \end_layout
12666
12667 \begin_layout Itemize
12668 There is a general title environment 
12669 \family sans
12670 Article
12671 \family default
12672  which is not directly supported by the LyX.
12673  This can be used as TeX code when your document doesn't fit into one of
12674  the other title types.
12675 \end_layout
12676
12677 \begin_layout Standard
12678 For more informations like hints for special table and formula formatting,
12679  look at the IOP author guidelines.
12680 \end_layout
12681
12682 \begin_layout Section
12683 Kluwer
12684 \end_layout
12685
12686 \begin_layout Standard
12687 by 
12688 \noun on
12689 Panayotis Papasotiriou
12690 \end_layout
12691
12692 \begin_layout Subsection
12693 Overview
12694 \end_layout
12695
12696 \begin_layout Standard
12697 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
12698  that facilitates electronic manuscript submission to the journals they
12699  publish.
12700  Most known of them (at least in my domain of interest) are 
12701 \emph on
12702 Astrophysics and Space Science
12703 \emph default
12704  and 
12705 \emph on
12706 Solar Physics
12707 \emph default
12708 , but there are many others (see a complete list at 
12709 \begin_inset Flex URL
12710 status open
12711
12712 \begin_layout Plain Layout
12713
12714 http://www.wkap.nl/jrnllist.htm/JRNLHOME
12715 \end_layout
12716
12717 \end_inset
12718
12719 ).
12720  The Kluwer package may be downloaded from the site 
12721 \begin_inset Flex URL
12722 status collapsed
12723
12724 \begin_layout Plain Layout
12725
12726 http://www.wkap.nl/kaphtml.htm/STYLEFILES
12727 \end_layout
12728
12729 \end_inset
12730
12731 .
12732  A complete user guide is contained in that package (but it can also be
12733  downloaded separately).
12734 \end_layout
12735
12736 \begin_layout Standard
12737 LyX supports many features of the package but not everything.
12738  However, the TeX code needed is reduced to some 
12739 \begin_inset Quotes eld
12740 \end_inset
12741
12742 peculiar
12743 \begin_inset Quotes erd
12744 \end_inset
12745
12746  commands of the package (see
12747 \begin_inset space ~
12748 \end_inset
12749
12750
12751 \begin_inset CommandInset ref
12752 LatexCommand ref
12753 reference "subsec:kluwer_peculiarities"
12754
12755 \end_inset
12756
12757 ).
12758  I have recently used LyX to write an article submitted to the 
12759 \emph on
12760 Astrophysics and Space Science
12761 \emph default
12762  without any problem.
12763 \end_layout
12764
12765 \begin_layout Subsection
12766 Writing a paper
12767 \end_layout
12768
12769 \begin_layout Standard
12770 The easiest way to write a paper is to start with the Kluwer template file.
12771  Click on 
12772 \family sans
12773 File\SpecialChar \menuseparator
12774 New from
12775 \family default
12776  
12777 \family sans
12778 Template
12779 \family default
12780 , then choose the 
12781 \family typewriter
12782 kluwer.lyx
12783 \family default
12784  template.
12785  This will give an (almost) empty document that includes the most common
12786  fields found in a manuscript and a short description of their use.
12787  As in most templates, simply overwrite the existing text (including the
12788  brackets, 
12789 \family typewriter
12790 <>
12791 \family default
12792 ) with the correct information.
12793 \end_layout
12794
12795 \begin_layout Subsection
12796 Preparing a paper for submission
12797 \end_layout
12798
12799 \begin_layout Standard
12800 As in the AASTeX package, before you submit your paper to a journal you
12801  must 
12802 \begin_inset Quotes eld
12803 \end_inset
12804
12805 postprocess
12806 \begin_inset Quotes erd
12807 \end_inset
12808
12809  it as follows.
12810 \end_layout
12811
12812 \begin_layout Enumerate
12813 Export your paper as a LaTeX file.
12814  To do this, click on 
12815 \family sans
12816 File\SpecialChar \menuseparator
12817 Export\SpecialChar \menuseparator
12818 LaTeX
12819 \family default
12820 .
12821  
12822 \end_layout
12823
12824 \begin_layout Enumerate
12825 Edit the resulting 
12826 \family typewriter
12827 .tex
12828 \family default
12829  file with a text editor and make the following changes
12830 \end_layout
12831
12832 \begin_deeper
12833 \begin_layout Enumerate
12834 remove the comment lines before the 
12835 \family typewriter
12836
12837 \backslash
12838 documentclass
12839 \family default
12840  command,
12841 \end_layout
12842
12843 \begin_layout Enumerate
12844 remove everything between (and including) the 
12845 \family typewriter
12846
12847 \backslash
12848 makeatletter
12849 \family default
12850  and 
12851 \family typewriter
12852
12853 \backslash
12854 makeatother
12855 \family default
12856  commands, except for any commands you specifically put into the LaTeX preamble.
12857 \end_layout
12858
12859 \begin_layout Standard
12860 Save the resulting 
12861 \family typewriter
12862 .tex
12863 \family default
12864  file.
12865 \end_layout
12866
12867 \end_deeper
12868 \begin_layout Enumerate
12869 Run the 
12870 \family typewriter
12871 .tex
12872 \family default
12873  file through LaTeX as many times as necessary (usually up to three).
12874 \end_layout
12875
12876 \begin_layout Enumerate
12877 View the resulting 
12878 \family typewriter
12879 .dvi
12880 \family default
12881  document using, e.
12882 \begin_inset space \thinspace{}
12883 \end_inset
12884
12885 g.
12886 \begin_inset space \space{}
12887 \end_inset
12888
12889
12890 \family sans
12891 xdvi
12892 \family default
12893 , and check if everything is OK (it should, if you didn't make any mistake).
12894 \end_layout
12895
12896 \begin_layout Subsection
12897 \begin_inset Quotes eld
12898 \end_inset
12899
12900 Peculiarities
12901 \begin_inset Quotes erd
12902 \end_inset
12903
12904  of the Kluwer package
12905 \begin_inset CommandInset label
12906 LatexCommand label
12907 name "subsec:kluwer_peculiarities"
12908
12909 \end_inset
12910
12911
12912 \end_layout
12913
12914 \begin_layout Standard
12915 The Kluwer package has the following 
12916 \begin_inset Quotes eld
12917 \end_inset
12918
12919 peculiarities
12920 \begin_inset Quotes erd
12921 \end_inset
12922
12923 .
12924 \end_layout
12925
12926 \begin_layout Enumerate
12927 It is possible to write multiple articles in the same LaTeX file
12928 \begin_inset Foot
12929 status collapsed
12930
12931 \begin_layout Plain Layout
12932 I can't imagine any good reason to do this.
12933 \end_layout
12934
12935 \end_inset
12936
12937 .
12938  Each article must be included in the environment 
12939 \begin_inset Quotes eld
12940 \end_inset
12941
12942 article
12943 \begin_inset Quotes erd
12944 \end_inset
12945
12946 .
12947  Unfortunately, this environment cannot be omitted, even if you write just
12948  one article.
12949  Therefore, each article starts with the command 
12950 \family typewriter
12951
12952 \backslash
12953 begin{article}
12954 \family default
12955  and, obviously, ends with the command 
12956 \family typewriter
12957
12958 \backslash
12959 end{article}
12960 \family default
12961 .
12962  Although this can be implemented in LyX, I didn't included it, since it
12963  looks ugly and can confuse the novice user.
12964  Therefore, you need to enter them directly and mark them as LaTeX code
12965  (the well-known 
12966 \begin_inset Quotes eld
12967 \end_inset
12968
12969 TeX code
12970 \begin_inset Quotes erd
12971 \end_inset
12972
12973 ).
12974 \end_layout
12975
12976 \begin_layout Enumerate
12977 Information given at the beginning of the article (i.
12978 \begin_inset space \thinspace{}
12979 \end_inset
12980
12981 g.
12982 \begin_inset space \space{}
12983 \end_inset
12984
12985 title, subtitle, author, institution, running title, running author, abstract
12986  and keywords) must be included in an environment called 
12987 \begin_inset Quotes eld
12988 \end_inset
12989
12990 opening
12991 \begin_inset Quotes erd
12992 \end_inset
12993
12994 .
12995  This is not implemented in LyX, so you must enter title, subtitle etc.
12996 \begin_inset space ~
12997 \end_inset
12998
12999 between two TeX code lines (
13000 \family typewriter
13001
13002 \backslash
13003 begin{opening}
13004 \family default
13005  and 
13006 \family typewriter
13007
13008 \backslash
13009 end{opening}
13010 \family default
13011 ).
13012 \end_layout
13013
13014 \begin_layout Enumerate
13015 According to the user manual, the label of each bibliography item must be
13016  written as 
13017 \family typewriter
13018
13019 \backslash
13020 protect
13021 \backslash
13022 citeauthoryear{
13023 \family default
13024 \emph on
13025 author(s)
13026 \family typewriter
13027 \emph default
13028 }{
13029 \family default
13030 \emph on
13031 year
13032 \family typewriter
13033 \emph default
13034 }
13035 \family default
13036 .
13037 \end_layout
13038
13039 \begin_layout Standard
13040 The 
13041 \family typewriter
13042 kluwer.lyx
13043 \family default
13044  template takes care of all these 
13045 \begin_inset Quotes eld
13046 \end_inset
13047
13048 peculiarities
13049 \begin_inset Quotes erd
13050 \end_inset
13051
13052 .
13053  If you start a new paper using this template you don't need to do anything
13054  special.
13055  Just 
13056 \end_layout
13057
13058 \begin_layout Enumerate
13059 don't delete the TeX code included in the template, and
13060 \end_layout
13061
13062 \begin_layout Enumerate
13063 copy the example bibliography item included in the template and modify it
13064  as necessary to enter new bibliography items.
13065 \end_layout
13066
13067 \begin_layout Section
13068 Koma-Script
13069 \end_layout
13070
13071 \begin_layout Standard
13072 by 
13073 \noun on
13074 Bernd Rellermeyer
13075 \end_layout
13076
13077 \begin_layout Subsection
13078 Overview
13079 \end_layout
13080
13081 \begin_layout Standard
13082 The LyX document classes 
13083 \emph on
13084 article (koma-script)
13085 \emph default
13086
13087 \emph on
13088 report (koma-script)
13089 \emph default
13090
13091 \emph on
13092 book
13093 \emph default
13094  
13095 \emph on
13096 (koma-script)
13097 \emph default
13098 , and 
13099 \emph on
13100 letter
13101 \emph default
13102  
13103 \emph on
13104 (koma-script)
13105 \emph default
13106  correspond to the LaTeX document classes 
13107 \family typewriter
13108 scrartcl.cls
13109 \family default
13110
13111 \family typewriter
13112 scrreprt.cls
13113 \family default
13114
13115 \family typewriter
13116 scrbook.cls
13117 \family default
13118 , and 
13119 \family typewriter
13120 scrlettr.cls
13121 \family default
13122 , resp.
13123 \begin_inset space ~
13124 \end_inset
13125
13126 of the Koma-Script family.
13127  They are replacements for the standard document classes 
13128 \family typewriter
13129 article.cls
13130 \family default
13131
13132 \family typewriter
13133 report.cls
13134 \family default
13135
13136 \family typewriter
13137 book.cls
13138 \family default
13139  and 
13140 \family typewriter
13141 letter.cls
13142 \family default
13143 , resp., and fit better to European typography conventions in a number of
13144  points.
13145 \end_layout
13146
13147 \begin_layout Itemize
13148 Standard character size is 11pt in 
13149 \emph on
13150 article (koma-script)
13151 \emph default
13152
13153 \emph on
13154 report (koma-script)
13155 \emph default
13156 , and 
13157 \emph on
13158 book (koma-script)
13159 \emph default
13160 , and 12pt in 
13161 \emph on
13162 letter (koma-script)
13163 \emph default
13164 .
13165 \end_layout
13166
13167 \begin_layout Itemize
13168 Headings, labels of the description environment, and a number of elements
13169  of the 
13170 \emph on
13171 letter (koma-script)
13172 \emph default
13173  document class are set in a bold sans serif font.
13174 \begin_inset Foot
13175 status collapsed
13176
13177 \begin_layout Plain Layout
13178 There is a big difference between the bold sans serif old cm fonts and new
13179  ec fonts, especially in the appearance of headings.
13180  In comparison, the ec bold sans serif fonts look a bit thin.
13181  Here the LaTeX package 
13182 \family typewriter
13183 cmsd.sty by
13184 \family default
13185  
13186 \shape smallcaps
13187 Walter Schmidt
13188 \shape default
13189  helps to produce the 
13190 \begin_inset Quotes eld
13191 \end_inset
13192
13193 usual
13194 \begin_inset Quotes erd
13195 \end_inset
13196
13197  appearance when using the ec fonts.
13198 \end_layout
13199
13200 \end_inset
13201
13202  The numbering of chapter headings is made in the same way as the numbering
13203  of section headings, that is without the extra line 
13204 \begin_inset Quotes eld
13205 \end_inset
13206
13207 Chapter\SpecialChar \ldots{}
13208
13209 \begin_inset Quotes erd
13210 \end_inset
13211
13212 .
13213  In addition, the appearance of the headings can be modified by using a
13214  number of options (in LyX to be entered in the field 
13215 \family sans
13216 Extra
13217 \begin_inset space ~
13218 \end_inset
13219
13220 Options
13221 \family default
13222  of the dialog 
13223 \family sans
13224 Layout\SpecialChar \menuseparator
13225 Document
13226 \family default
13227 ).
13228  
13229 \end_layout
13230
13231 \begin_layout Itemize
13232 The main means in the Koma-Script document classes to design the type area
13233  are the options 
13234 \family sans
13235 BCOR
13236 \family default
13237  and 
13238 \family sans
13239 DIV
13240 \family default
13241  (in LyX to be entered in the extra class options field in the dialog 
13242 \family sans
13243 Document\SpecialChar \menuseparator
13244 Settings
13245 \family default
13246 ).
13247  They make a clearer modification of page margins possible as do the options
13248  of the dialog 
13249 \family sans
13250 Document\SpecialChar \menuseparator
13251 Settings
13252 \family default
13253 .
13254  
13255 \end_layout
13256
13257 \begin_layout Itemize
13258 The LaTeX document classes of the Koma-Script family define a number of
13259  additional commands.
13260  Those part of it which makes sense in LyX is implemented in corresponding
13261  paragraph types.
13262 \end_layout
13263
13264 \begin_layout Standard
13265 Detailed descriptions of the LaTeX document classes of the Koma-Script family
13266  can be found in the Koma-Script documentation 
13267 \emph on
13268 scrguide
13269 \emph default
13270  (German) and 
13271 \emph on
13272 scrguien
13273 \emph default
13274  (English).
13275 \end_layout
13276
13277 \begin_layout Subsection
13278 article (koma-script), report (koma-script), and book (koma-script)
13279 \end_layout
13280
13281 \begin_layout Standard
13282 The document classes 
13283 \emph on
13284 article (koma-script)
13285 \emph default
13286
13287 \emph on
13288 report (koma-script)
13289 \emph default
13290 , and 
13291 \emph on
13292 book
13293 \emph default
13294  
13295 \emph on
13296 (koma-script)
13297 \emph default
13298  are implemented in the layout files 
13299 \family typewriter
13300 scrartcl.layout
13301 \family default
13302
13303 \family typewriter
13304 scrreprt.layout
13305 \family default
13306 , and 
13307 \family typewriter
13308 scrbook.layout
13309 \family default
13310 , resp.
13311  They contain all the paragraph types of the corresponding standard document
13312  classes 
13313 \emph on
13314 article
13315 \emph default
13316
13317 \emph on
13318 report
13319 \emph default
13320 , and 
13321 \emph on
13322 book
13323 \emph default
13324 , resp., partly modified, with the exception of the LyX specific 
13325 \family sans
13326 List
13327 \family default
13328 -type, which is replaced by the new 
13329 \family sans
13330 Labeling
13331 \family default
13332 -type having the same functionality.
13333  Beside the 
13334 \family sans
13335 Labeling
13336 \family default
13337 -Type there is a number of new paragraph types added.
13338  They are 
13339 \emph on
13340 not
13341 \emph default
13342  part of 
13343 \emph on
13344 letter (koma-script)
13345 \emph default
13346 .
13347 \end_layout
13348
13349 \begin_layout Itemize
13350
13351 \family sans
13352 Addpart, Addchap
13353 \family default
13354
13355 \family sans
13356 Addsec
13357 \family default
13358 : are equivalents to 
13359 \family sans
13360 Part*, Chapter*
13361 \family default
13362  and 
13363 \family sans
13364 Section*
13365 \family default
13366 , resp., additionally inserting an entry in the table of contents.
13367  
13368 \family sans
13369 Addpart
13370 \family default
13371  and 
13372 \family sans
13373 Addchap
13374 \family default
13375  are not contained in 
13376 \emph on
13377 article (koma-script)
13378 \emph default
13379 .
13380 \end_layout
13381
13382 \begin_layout Itemize
13383
13384 \family sans
13385 Addchap*
13386 \family default
13387
13388 \family sans
13389 Addsec*
13390 \family default
13391 : behave exactly as 
13392 \family sans
13393 Addchap
13394 \family default
13395  and 
13396 \family sans
13397 Addsec
13398 \family default
13399 , resp., additionally clearing running heads.
13400  
13401 \family sans
13402 Addchap*
13403 \family default
13404  is not contained in 
13405 \emph on
13406 article (koma-script)
13407 \emph default
13408 .
13409 \begin_inset Foot
13410 status collapsed
13411
13412 \begin_layout Plain Layout
13413 There is also an 
13414 \family typewriter
13415
13416 \backslash
13417 addpart*
13418 \family default
13419  command in 
13420 \emph on
13421 book (koma-script)
13422 \emph default
13423  and in 
13424 \emph on
13425 report (koma-script)
13426 \emph default
13427 , but since this is identical to 
13428 \family sans
13429 Part*
13430 \family default
13431 , is has not been implemented in LyX.
13432 \end_layout
13433
13434 \end_inset
13435
13436
13437 \end_layout
13438
13439 \begin_layout Itemize
13440
13441 \family sans
13442 Minisec
13443 \family default
13444 : generates a heading directly above the following paragraph in the standard
13445  character size without affecting the structure of the document.
13446 \end_layout
13447
13448 \begin_layout Itemize
13449
13450 \family sans
13451 Captionabove
13452 \family default
13453  and 
13454 \family sans
13455 Captionbelow
13456 \family default
13457  are special captions which respect the different space settings needed
13458  for captions placed above or below an element (if you follow strict typographic
13459  rules, you might want to place table captions always above the table).
13460  You can also use the class option 
13461 \family typewriter
13462 tablecaptionsabove
13463 \family default
13464 , which will switch 
13465 \family sans
13466 caption
13467 \family default
13468  to 
13469 \family sans
13470 captionabove
13471 \family default
13472  for tables and 
13473 \family sans
13474 captionbelow
13475 \family default
13476  for figures.
13477  You need at least Koma-Script version 2.8q to use this.
13478 \end_layout
13479
13480 \begin_layout Itemize
13481
13482 \family sans
13483 Dictum
13484 \family default
13485 : can be used to set a bonmot, e.
13486 \begin_inset space \thinspace{}
13487 \end_inset
13488
13489 g.
13490 \begin_inset space \space{}
13491 \end_inset
13492
13493 at the beginning of a chapter.
13494  If you use the optional argument (
13495 \family sans
13496 Insert\SpecialChar \menuseparator
13497 Short
13498 \begin_inset space ~
13499 \end_inset
13500
13501 Title
13502 \family default
13503 ), you can insert the dictum's author there.
13504  Dictum and author are separated by a line.
13505  You need at least Koma-Script version 2.8q to use this.
13506  
13507 \family sans
13508 Dictum
13509 \family default
13510  is not contained in 
13511 \emph on
13512 article (koma-script)
13513 \emph default
13514 .
13515 \end_layout
13516
13517 \begin_layout Standard
13518 The following types, together with the standard types 
13519 \family sans
13520 Title
13521 \family default
13522
13523 \family sans
13524 Author
13525 \family default
13526 , and 
13527 \family sans
13528 Date
13529 \family default
13530 , form the title area of the document.
13531  They must be entered ahead of the first 
13532 \begin_inset Quotes eld
13533 \end_inset
13534
13535 ordinary
13536 \begin_inset Quotes erd
13537 \end_inset
13538
13539  paragraph.
13540 \begin_inset Foot
13541 status collapsed
13542
13543 \begin_layout Plain Layout
13544 The corresponding LaTeX commands must appear before the 
13545 \family typewriter
13546
13547 \backslash
13548 maketitle
13549 \family default
13550  command.
13551 \end_layout
13552
13553 \end_inset
13554
13555  When such a type is used more than once, the latter usage overwrites the
13556  former one, that means, for every type only the latest usage is valid.
13557  The order of the different types however has, like 
13558 \family sans
13559 Title
13560 \family default
13561
13562 \family sans
13563 Author
13564 \family default
13565 , and 
13566 \family sans
13567 Date
13568 \family default
13569 , no effect on the appearance of the produced document.
13570 \end_layout
13571
13572 \begin_layout Itemize
13573
13574 \family sans
13575 Subject
13576 \family default
13577 : produces a centered paragraph above the ordinary title (
13578 \family sans
13579 Title
13580 \family default
13581
13582 \family sans
13583 Author
13584 \family default
13585
13586 \family sans
13587 Date
13588 \family default
13589 ) for the subject of the document.
13590 \end_layout
13591
13592 \begin_layout Itemize
13593
13594 \family sans
13595 Publishers
13596 \family default
13597 : produces a centered paragraph below the ordinary title (
13598 \family sans
13599 Title
13600 \family default
13601
13602 \family sans
13603 Author
13604 \family default
13605
13606 \family sans
13607 Date
13608 \family default
13609 ) for the publishers' name.
13610 \end_layout
13611
13612 \begin_layout Itemize
13613
13614 \family sans
13615 Dedication
13616 \family default
13617 : in 
13618 \emph on
13619 report (koma-script)
13620 \emph default
13621  and 
13622 \emph on
13623 book (koma-script)
13624 \emph default
13625  produces a centered paragraph on its own page behind the title page, or
13626  in 
13627 \emph on
13628 article (koma-script)
13629 \emph default
13630  produces a centered paragraph below the ordinary title (
13631 \family sans
13632 Title
13633 \family default
13634
13635 \family sans
13636 Author
13637 \family default
13638
13639 \family sans
13640 Date
13641 \family default
13642
13643 \family sans
13644 Publishers
13645 \family default
13646 ) for a dedication.
13647 \end_layout
13648
13649 \begin_layout Itemize
13650
13651 \family sans
13652 Titlehead
13653 \family default
13654 : produces a left aligned paragraph above the ordinary title (
13655 \family sans
13656 Title
13657 \family default
13658
13659 \family sans
13660 Author
13661 \family default
13662
13663 \family sans
13664 Date
13665 \family default
13666
13667 \family sans
13668 Subject
13669 \family default
13670 ) for a document`s head.
13671 \end_layout
13672
13673 \begin_layout Itemize
13674
13675 \family sans
13676 Uppertitleback
13677 \family default
13678 : produces in a double-sided print in 
13679 \emph on
13680 report (koma-script)
13681 \emph default
13682  and 
13683 \emph on
13684 book (koma-script)
13685 \emph default
13686  a left-aligned paragraph at the top of the title page`s back or has no
13687  effect in a single-sided print or in 
13688 \emph on
13689 article (koma-script)
13690 \emph default
13691 .
13692 \end_layout
13693
13694 \begin_layout Itemize
13695
13696 \family sans
13697 Lowertitleback
13698 \family default
13699 : produces in a double-sided print in 
13700 \emph on
13701 report (koma-script)
13702 \emph default
13703  and 
13704 \emph on
13705 book (koma-script)
13706 \emph default
13707  a left-aligned paragraph at the bottom of the title page`s back or has
13708  no effect in a single-sided print or in 
13709 \emph on
13710 article (koma-script)
13711 \emph default
13712 .
13713 \end_layout
13714
13715 \begin_layout Itemize
13716
13717 \family sans
13718 Extratitle
13719 \family default
13720 : produces a special 
13721 \begin_inset Quotes eld
13722 \end_inset
13723
13724 dirty
13725 \begin_inset Quotes erd
13726 \end_inset
13727
13728  page ahead of the actual document containing a paragraph without special
13729  formatting.
13730 \end_layout
13731
13732 \begin_layout Standard
13733 The layout files for the document classes 
13734 \emph on
13735 article (koma-script)
13736 \emph default
13737
13738 \emph on
13739 report (koma-script)
13740 \emph default
13741 , and 
13742 \emph on
13743 book (koma-script)
13744 \emph default
13745  do include the file 
13746 \family typewriter
13747 scrmacros.inc
13748 \family default
13749 .
13750  This is thought of as a place to define your own types.
13751  Copy scrmacros
13752 \family typewriter
13753 .inc
13754 \family default
13755  in your personal layout directory and edit the file!
13756 \end_layout
13757
13758 \begin_layout Subsection
13759 letter (koma-script)
13760 \end_layout
13761
13762 \begin_layout Standard
13763 \begin_inset ERT
13764 status open
13765
13766 \begin_layout Plain Layout
13767
13768
13769 \backslash
13770 begin{sloppypar}
13771 \end_layout
13772
13773 \end_inset
13774
13775
13776 \end_layout
13777
13778 \begin_layout Standard
13779 \noindent
13780 The document class 
13781 \emph on
13782 letter (koma-script)
13783 \emph default
13784  is implemented in the layout file 
13785 \family typewriter
13786 scrlettr.layout
13787 \family default
13788 .
13789  It contains all the paragraph types of the corresponding standard document
13790  class 
13791 \emph on
13792 letter
13793 \emph default
13794 , partly modified, with the exception of the LyX specific types 
13795 \family sans
13796 LyX-Code
13797 \family default
13798  and 
13799 \family sans
13800 Comment
13801 \family default
13802  and the 
13803 \family sans
13804 List
13805 \family default
13806  type, which is replaced by the new 
13807 \family sans
13808 Labeling
13809 \family default
13810  type.
13811  In addition, it contains, in contrast to the standard document class, the
13812  standard types 
13813 \family sans
13814 LaTeX
13815 \family default
13816
13817 \family sans
13818 Quotation
13819 \family default
13820
13821 \family sans
13822 Quote
13823 \family default
13824 , and 
13825 \family sans
13826 Verse
13827 \family default
13828 .
13829  Furthermore, there are a number of new letter specific types.
13830 \end_layout
13831
13832 \begin_layout Standard
13833 \begin_inset ERT
13834 status open
13835
13836 \begin_layout Plain Layout
13837
13838
13839 \backslash
13840 end{sloppypar}
13841 \end_layout
13842
13843 \end_inset
13844
13845
13846 \end_layout
13847
13848 \begin_layout Standard
13849 The appearance of the letter produced by this document class can be controlled
13850  by a number of LaTeX commands, which you can put in the LaTeX preamble.
13851 \begin_inset Foot
13852 status collapsed
13853
13854 \begin_layout Plain Layout
13855 For example, the standard appearance of the letter`s heading, consisting
13856  of name and address, is quite self-willed.
13857  An 
13858 \begin_inset Quotes eld
13859 \end_inset
13860
13861 ordinary
13862 \begin_inset Quotes erd
13863 \end_inset
13864
13865  heading is produced by the following LaTeX commands in the preamble:
13866 \end_layout
13867
13868 \begin_layout LyX-Code
13869
13870 \backslash
13871 firsthead{
13872 \backslash
13873 parbox[b]{
13874 \backslash
13875 textwidth}
13876 \end_layout
13877
13878 \begin_layout LyX-Code
13879   {
13880 \backslash
13881 ignorespaces 
13882 \backslash
13883 fromname
13884 \backslash
13885
13886 \backslash
13887  
13888 \backslash
13889 ignorespaces 
13890 \backslash
13891 fromaddress}} 
13892 \end_layout
13893
13894 \begin_layout LyX-Code
13895
13896 \backslash
13897 nexthead{
13898 \backslash
13899 parbox[b]{
13900 \backslash
13901 textwidth}
13902 \end_layout
13903
13904 \begin_layout LyX-Code
13905   {
13906 \backslash
13907 ignorespaces 
13908 \backslash
13909 fromname 
13910 \backslash
13911 hfill 
13912 \backslash
13913 ignorespaces 
13914 \backslash
13915 pagename
13916 \backslash
13917  
13918 \backslash
13919 thepage}}
13920 \end_layout
13921
13922 \end_inset
13923
13924  A detailed German description of such LaTeX commands can be found in the
13925  Koma-Script documentation 
13926 \emph on
13927 scrguide
13928 \emph default
13929 .
13930  With it, the letter's author can produce his personal letter layout.
13931 \end_layout
13932
13933 \begin_layout Standard
13934 The types 
13935 \family sans
13936 Letter
13937 \family default
13938  and 
13939 \family sans
13940 Opening
13941 \family default
13942  define the beginning of the letter and must be used in every letter.
13943  To emphasize them in the LyX document class, they are marked with the letter
13944  
13945 \shape italic
13946 L
13947 \shape default
13948  or 
13949 \shape italic
13950 O
13951 \shape default
13952 , resp.
13953 \begin_inset space ~
13954 \end_inset
13955
13956 in the left margin.
13957  It is possible to write any number of letters in one file.
13958  An 
13959 \family sans
13960 Opening
13961 \family default
13962  type produces a new letter using the same addressee and a 
13963 \family sans
13964 Letter
13965 \family default
13966  type produces a new addressee.
13967  The types 
13968 \family sans
13969 Closing
13970 \family default
13971
13972 \family sans
13973 PS
13974 \family default
13975
13976 \family sans
13977 CC
13978 \family default
13979 , and 
13980 \family sans
13981 Encl
13982 \family default
13983  are ordinary paragraph types and can also be used several times in one
13984  and the same letter.
13985 \end_layout
13986
13987 \begin_layout Itemize
13988
13989 \family sans
13990 Letter
13991 \family default
13992 : produces a paragraph for the addressee and implicitly defines the beginning
13993  of the letter.
13994 \end_layout
13995
13996 \begin_layout Itemize
13997
13998 \family sans
13999 Opening
14000 \family default
14001 : produces a paragraph for the form of address and implicitly produces a
14002  new letter.
14003 \end_layout
14004
14005 \begin_layout Itemize
14006
14007 \family sans
14008 Closing
14009 \family default
14010 : produces a paragraph for a close.
14011 \end_layout
14012
14013 \begin_layout Itemize
14014
14015 \family sans
14016 PS
14017 \family default
14018 : produces a paragraph for a postscript.
14019 \end_layout
14020
14021 \begin_layout Itemize
14022
14023 \family sans
14024 CC
14025 \family default
14026 : produces a paragraph for a distribution list.
14027 \end_layout
14028
14029 \begin_layout Itemize
14030
14031 \family sans
14032 Encl
14033 \family default
14034 : produces a paragraph for enclosures.
14035 \end_layout
14036
14037 \begin_layout Standard
14038 The types 
14039 \family sans
14040 Name
14041 \family default
14042
14043 \family sans
14044 Signature
14045 \family default
14046
14047 \family sans
14048 Address
14049 \family default
14050
14051 \family sans
14052 Telephone
14053 \family default
14054
14055 \family sans
14056 Place
14057 \family default
14058
14059 \family sans
14060 Backaddress
14061 \family default
14062
14063 \family sans
14064 Specialmail
14065 \family default
14066
14067 \family sans
14068 Location
14069 \family default
14070
14071 \family sans
14072 Title
14073 \family default
14074 , and 
14075 \family sans
14076 Subject
14077 \family default
14078  are input types provided with a label to enter information, which will
14079  be processed by the document class.
14080 \begin_inset Foot
14081 status open
14082
14083 \begin_layout Plain Layout
14084 It could be seen as a matter of inconsequence, that the types 
14085 \family sans
14086 Letter
14087 \family default
14088  and 
14089 \family sans
14090 Opening
14091 \family default
14092  described above are not such input types as well.
14093  Because of the special meaning of those types, however, I have implemented
14094  them as ordinary paragraph types with a one letter mark in the left margin.
14095  Moreover, it would affect my feeling of symmetry, if the 
14096 \family sans
14097 Opening
14098 \family default
14099  type and the 
14100 \family sans
14101 Closing
14102 \family default
14103  type had such a serious different appearance.
14104 \end_layout
14105
14106 \end_inset
14107
14108  The types must be used ahead of the corresponding 
14109 \family sans
14110 Opening
14111 \family default
14112  type.
14113 \end_layout
14114
14115 \begin_layout Standard
14116 An implementation of these types in a WYSIWYG fashion does not seem to make
14117  sense, because the real appearance of the produced letter does not only
14118  depend on the usage of the particular type, but also on other factors.
14119  For example, a signature entered in the 
14120 \family sans
14121 Signature
14122 \family default
14123  type will in the standard behavior appear in the produced letter only,
14124  when in the same letter also a 
14125 \family sans
14126 Closing
14127 \family default
14128  type is used.
14129  The entered value of the 
14130 \family sans
14131 Telephone
14132 \family default
14133  type will in the standard behavior not appear in the produced letter at
14134  all.
14135  The possibility to design the letter`s heading freely is already indicated
14136  in a footnote above.
14137 \end_layout
14138
14139 \begin_layout Standard
14140 The input types can also be used as empty paragraphs.
14141  This makes sense e.
14142 \begin_inset space \thinspace{}
14143 \end_inset
14144
14145 g.
14146 \begin_inset space \space{}
14147 \end_inset
14148
14149 for the 
14150 \family sans
14151 Signature
14152 \family default
14153  type.
14154  If the 
14155 \family sans
14156 Signature
14157 \family default
14158  type is not used at all, in the standard behavior the value of the 
14159 \family sans
14160 Name
14161 \family default
14162  type is used as signature, whereas if an empty 
14163 \family sans
14164 Signature
14165 \family default
14166  type is used, no signature value is defined.
14167 \end_layout
14168
14169 \begin_layout Standard
14170 By using the input types it is possible to write a letter template, containing
14171  filled input types with your personal dates (name, address, etc.) and empty
14172  input types for other dates you want to enter.
14173 \end_layout
14174
14175 \begin_layout Itemize
14176
14177 \family sans
14178 Name
14179 \family default
14180 : sender's name, in the standard behavior appears as a centered paragraph
14181  in small caps in the letter`s heading.
14182 \end_layout
14183
14184 \begin_layout Itemize
14185
14186 \family sans
14187 Signature
14188 \family default
14189 : sender's signature, in the standard behavior appears below the 
14190 \family sans
14191 Closing
14192 \family default
14193  type.
14194  If no 
14195 \family sans
14196 Signature
14197 \family default
14198  type is used, the value of the 
14199 \family sans
14200 Name
14201 \family default
14202  type appears instead.
14203 \end_layout
14204
14205 \begin_layout Itemize
14206
14207 \family sans
14208 Address
14209 \family default
14210 : sender's address, in the standard behavior appears in a centered paragraph
14211  in the letter`s heading below the sender's name.
14212 \end_layout
14213
14214 \begin_layout Itemize
14215
14216 \family sans
14217 Telephone
14218 \family default
14219 : sender's telephone number, in the standard behavior only sets the LaTeX
14220  variable 
14221 \family typewriter
14222
14223 \backslash
14224 telephonenum
14225 \family default
14226 .
14227 \end_layout
14228
14229 \begin_layout Itemize
14230
14231 \family sans
14232 Place
14233 \family default
14234 : place of the letter`s making.
14235 \end_layout
14236
14237 \begin_layout Itemize
14238
14239 \family sans
14240 Date
14241 \family default
14242 : date of the letter`s making.
14243  
14244 \family sans
14245 Place
14246 \family default
14247  and 
14248 \family sans
14249 Date
14250 \family default
14251 , in the standard behavior, produce the place and the date in a right-aligned
14252  line below the addressee's field.
14253  If an empty 
14254 \family sans
14255 Date
14256 \family default
14257  type is used, neither place nor date appear, independent of the value of
14258  the 
14259 \family sans
14260 Place
14261 \family default
14262  type.
14263  If no 
14264 \family sans
14265 Date
14266 \family default
14267  type is used, the date of the letter `s production is used.
14268 \end_layout
14269
14270 \begin_layout Itemize
14271
14272 \family sans
14273 Backaddress
14274 \family default
14275 : sender`s back address, in the standard behavior appears above the addressee's
14276  field in a small sans serif font.
14277 \end_layout
14278
14279 \begin_layout Itemize
14280
14281 \family sans
14282 Specialmail
14283 \family default
14284 : special mail information, in the standard behavior appears underlined
14285  above the addressee's field below the back address.
14286 \end_layout
14287
14288 \begin_layout Itemize
14289
14290 \family sans
14291 Location
14292 \family default
14293 : additional information, in the standard behavior appears on right side
14294  below the addressee`s field.
14295 \end_layout
14296
14297 \begin_layout Itemize
14298
14299 \family sans
14300 Title
14301 \family default
14302 : the letter's title, in the standard behavior appears in a big, bold, sans
14303  serif font above the subject.
14304 \end_layout
14305
14306 \begin_layout Itemize
14307
14308 \family sans
14309 Subject
14310 \family default
14311 : the letter's subject, in the standard behavior appears in a bold font
14312  above the 
14313 \family sans
14314 Opening
14315 \family default
14316  paragraph.
14317 \end_layout
14318
14319 \begin_layout Standard
14320 The types 
14321 \family sans
14322 Yourref
14323 \family default
14324
14325 \family sans
14326 Yourmail
14327 \family default
14328
14329 \family sans
14330 Myref
14331 \family default
14332
14333 \family sans
14334 Customer
14335 \family default
14336 , and 
14337 \family sans
14338 Invoice
14339 \family default
14340  produce a business letter like line above the 
14341 \family sans
14342 Title
14343 \family default
14344  line containing the fields 
14345 \begin_inset Quotes eld
14346 \end_inset
14347
14348 Your ref.
14349 \begin_inset Quotes erd
14350 \end_inset
14351
14352
14353 \begin_inset Quotes eld
14354 \end_inset
14355
14356 Your letter of
14357 \begin_inset Quotes erd
14358 \end_inset
14359
14360
14361 \begin_inset Quotes eld
14362 \end_inset
14363
14364 Our ref.
14365 \begin_inset Quotes erd
14366 \end_inset
14367
14368
14369 \begin_inset Quotes eld
14370 \end_inset
14371
14372 Customer no.
14373 \begin_inset Quotes erd
14374 \end_inset
14375
14376
14377 \begin_inset Quotes eld
14378 \end_inset
14379
14380 Invoice no.
14381 \begin_inset Quotes erd
14382 \end_inset
14383
14384 , and 
14385 \begin_inset Quotes eld
14386 \end_inset
14387
14388 Date
14389 \begin_inset Quotes erd
14390 \end_inset
14391
14392 .
14393  For the date field, the value of the 
14394 \family sans
14395 Date
14396 \family default
14397  type is used.
14398  If one of these 
14399 \begin_inset Quotes eld
14400 \end_inset
14401
14402 business letter types
14403 \begin_inset Quotes erd
14404 \end_inset
14405
14406  is used, the value of the 
14407 \family sans
14408 Place
14409 \family default
14410  type however does not appear, but only the LaTeX variable 
14411 \family typewriter
14412
14413 \backslash
14414 fromplace
14415 \family default
14416  is set.
14417  The ordinary output of place and date in a right-aligned line below the
14418  addressee`s field is suppressed.
14419  The types are implemented as input types provided with a label and must
14420  be used ahead of the corresponding 
14421 \family sans
14422 Opening
14423 \family default
14424  type.
14425 \end_layout
14426
14427 \begin_layout Itemize
14428
14429 \family sans
14430 Yourref
14431 \family default
14432 : Your ref.
14433 \end_layout
14434
14435 \begin_layout Itemize
14436
14437 \family sans
14438 Yourmail
14439 \family default
14440 : Your letter of.
14441 \end_layout
14442
14443 \begin_layout Itemize
14444
14445 \family sans
14446 Myref
14447 \family default
14448 : Our ref.
14449 \end_layout
14450
14451 \begin_layout Itemize
14452
14453 \family sans
14454 Customer
14455 \family default
14456 : Customer no.
14457 \end_layout
14458
14459 \begin_layout Itemize
14460
14461 \family sans
14462 Invoice
14463 \family default
14464 : Invoice no.
14465 \end_layout
14466
14467 \begin_layout Subsection
14468 The new letter class: letter (koma-script v.2)
14469 \end_layout
14470
14471 \begin_layout Standard
14472 by 
14473 \noun on
14474 Jürgen Spitzmüller
14475 \end_layout
14476
14477 \begin_layout Standard
14478 \begin_inset VSpace medskip
14479 \end_inset
14480
14481
14482 \end_layout
14483
14484 \begin_layout Standard
14485 \noindent
14486 Koma-Script version 2.8 has introduced a new letter class 
14487 \family typewriter
14488 scrlttr2
14489 \family default
14490  which supersedes the now unsupported 
14491 \family typewriter
14492 scrlettr
14493 \family default
14494 .
14495  It has — on the LaTeX side — a completely new interface and is not compatible
14496  with the old class.
14497  Therefore, LyX supports both, though it is recommended you use the new
14498  class.
14499 \end_layout
14500
14501 \begin_layout Standard
14502 This class covers the same functionality as 
14503 \emph on
14504 letter (koma-script),
14505 \emph default
14506  and a few more.
14507  The basic items are 
14508 \family sans
14509 Address
14510 \family default
14511  (receiver's address, same as 
14512 \family sans
14513 Letter
14514 \family default
14515  in the old layout), 
14516 \family sans
14517 Opening
14518 \family default
14519 , and 
14520 \family sans
14521 Closing
14522 \family default
14523 .
14524  
14525 \family sans
14526 NextAddress
14527 \family default
14528  will start a new letter (i.
14529 \begin_inset space \thinspace{}
14530 \end_inset
14531
14532 g.
14533 \begin_inset space \space{}
14534 \end_inset
14535
14536 you can write several letters per document).
14537  New elements are sender's 
14538 \family sans
14539 E-Mail
14540 \family default
14541
14542 \family sans
14543 URL
14544 \family default
14545
14546 \family sans
14547 Fax
14548 \family default
14549
14550 \family sans
14551 Bank
14552 \family default
14553  and the possibility to use a 
14554 \family sans
14555 Logo
14556 \family default
14557  (via 
14558 \family sans
14559 Insert\SpecialChar \menuseparator
14560 Graphics
14561 \family default
14562 ) in the header.
14563 \end_layout
14564
14565 \begin_layout Standard
14566 The biggest improvement is, though, that the letter's layout is configurable
14567  to meet almost any needs.
14568  This can be done via the preamble or with a special style file (Letter
14569  Class Option, extension 
14570 \family typewriter
14571 *.lco
14572 \family default
14573 ), that will be read in as a class option.
14574 \begin_inset Foot
14575 status collapsed
14576
14577 \begin_layout Plain Layout
14578 The KOMA package comes with some default 
14579 \family typewriter
14580 *.lco
14581 \family default
14582  files.
14583  There is, for instance, a 
14584 \family typewriter
14585 DIN.lco
14586 \family default
14587  file that follows german typesetting rules, or a 
14588 \family typewriter
14589 KOMAold.lco
14590 \family default
14591  that provides the default layout of the old 
14592 \family typewriter
14593 scrlettr
14594 \family default
14595  class.
14596  The latter can be loaded with the class option 
14597 \family typewriter
14598 KOMAold
14599 \family default
14600 , inserted via the 
14601 \family sans
14602 \bar under
14603 L
14604 \bar default
14605 ayout\SpecialChar \menuseparator
14606
14607 \bar under
14608 D
14609 \bar default
14610 ocument\SpecialChar \menuseparator
14611 Extra Options
14612 \family default
14613  field.
14614 \end_layout
14615
14616 \end_inset
14617
14618  Have a look at the 
14619 \emph on
14620 koma-letter2
14621 \emph default
14622  template that is included in LyX for examples.
14623  A detailed description is to be found in the Koma-Script documentation
14624  (
14625 \emph on
14626 scrguide
14627 \emph default
14628 ).
14629 \end_layout
14630
14631 \begin_layout Subsection
14632 Problems
14633 \end_layout
14634
14635 \begin_layout Standard
14636 Visualizing the Koma-Script document classes in LyX, the LyX internals cause
14637  some problems.
14638 \end_layout
14639
14640 \begin_layout Itemize
14641 The chapter number of a 
14642 \family sans
14643 Chapter
14644 \family default
14645  type appears on a line of its own above the chapter heading instead of
14646  appearing in the same line ahead of it.
14647  The cause for that is the LyX internal behavior for the labeltype 
14648 \family sans
14649 Counter_Chapter
14650 \family default
14651  in the layout file.
14652 \end_layout
14653
14654 \begin_layout Itemize
14655 The headings of the types 
14656 \family sans
14657 Addchap
14658 \family default
14659  and 
14660 \family sans
14661 Addsec
14662 \family default
14663  are only put in the 
14664 \begin_inset Quotes eld
14665 \end_inset
14666
14667 true
14668 \begin_inset Quotes erd
14669 \end_inset
14670
14671  LaTeX table of contents, but not in the LyX table of contents (
14672 \family sans
14673 Document\SpecialChar \menuseparator
14674 Table
14675 \begin_inset space ~
14676 \end_inset
14677
14678 of
14679 \begin_inset space ~
14680 \end_inset
14681
14682 Contents
14683 \family default
14684 ).
14685 \end_layout
14686
14687 \begin_layout Itemize
14688 The paragraphs in a 
14689 \emph on
14690 letter
14691 \emph default
14692  document class appear in a skip separation mode, not indented.
14693  This is the standard behavior, no special LaTeX commands are needed for
14694  that.
14695  But in the 
14696 \family sans
14697 Document\SpecialChar \menuseparator
14698 Settings
14699 \family default
14700  dialog the corresponding radio button indicates 
14701 \family sans
14702 Indent
14703 \family default
14704 .
14705  A 
14706 \family sans
14707 Skip
14708 \family default
14709  value always has the effect that extra LaTeX commands are inserted in the
14710  document to produce the gap, which is not what is wanted in this case.
14711 \end_layout
14712
14713 \begin_layout Section
14714 Latex8 (IEEE Conference Papers)
14715 \end_layout
14716
14717 \begin_layout Standard
14718 by 
14719 \noun on
14720 Allan Rae
14721 \end_layout
14722
14723 \begin_layout Subsection
14724 Introduction
14725 \end_layout
14726
14727 \begin_layout Standard
14728 Since this class is specifically for writing submissions to IEEE sponsored
14729  conferences I strongly recommend that you get a copy of their Authors Kit.
14730  The 
14731 \family sans
14732 latex.sty
14733 \family default
14734  package and associated bibliography style file is included in the kit.
14735  The Authors Kit is usually sent out by email once your initial submission
14736  has been accepted.
14737  There is a lot of useful information in the Authors Kit explaining formatting
14738  restrictions and so on and I will assume you have read this since that
14739  means I don't have to repeat it all here.
14740 \end_layout
14741
14742 \begin_layout Subsection
14743 Getting Started
14744 \end_layout
14745
14746 \begin_layout Standard
14747 [AR\SpecialChar \@.
14748  more to come]
14749 \end_layout
14750
14751 \begin_layout Subsection
14752 Supported Environments
14753 \end_layout
14754
14755 \begin_layout Itemize
14756
14757 \family sans
14758 Standard
14759 \end_layout
14760
14761 \begin_layout Itemize
14762
14763 \family sans
14764 Title
14765 \end_layout
14766
14767 \begin_layout Itemize
14768
14769 \family sans
14770 Author
14771 \end_layout
14772
14773 \begin_layout Itemize
14774
14775 \family sans
14776 E-mail
14777 \end_layout
14778
14779 \begin_layout Itemize
14780
14781 \family sans
14782 Affiliation
14783 \end_layout
14784
14785 \begin_layout Itemize
14786
14787 \family sans
14788 Abstract
14789 \end_layout
14790
14791 \begin_layout Itemize
14792
14793 \family sans
14794 Section
14795 \end_layout
14796
14797 \begin_layout Itemize
14798
14799 \family sans
14800 SubSection
14801 \end_layout
14802
14803 \begin_layout Itemize
14804
14805 \family sans
14806 Caption
14807 \end_layout
14808
14809 \begin_layout Subsection
14810 Differences Between Screen and Paper
14811 \end_layout
14812
14813 \begin_layout Standard
14814 There are slight differences in appearance mainly with the presentation
14815  of section counters.
14816  On screen the trailing period of the section counter is missing but it
14817  will appear in the output so don't let this worry you.
14818 \end_layout
14819
14820 \begin_layout Section
14821 Memoir
14822 \end_layout
14823
14824 \begin_layout Standard
14825 By 
14826 \noun on
14827 Jürgen Spitzmüller
14828 \end_layout
14829
14830 \begin_layout Subsection
14831 Overview
14832 \end_layout
14833
14834 \begin_layout Standard
14835 Memoir is a very powerful and constantly evolving class.
14836  It has been designed with regard to fictional and non-fictional literature.
14837  Its aim is to let the user have maximum control over the typesetting of
14838  his document.
14839  Memoir is based on the standard book class, but it can also emulate the
14840  article class (see below).
14841 \end_layout
14842
14843 \begin_layout Standard
14844 Peter Wilson, the developer of Memoir, is known as the author of lots of
14845  useful packages in the LaTeX world.
14846  Most of them have been merged with Memoir.
14847  Therefore, it is much easier to layout the table of contents, appendices,
14848  chapter designs and such.
14849  LyX, though, does not support all of these goodies natively.
14850  Some of them might be added to forthcoming releases
14851 \begin_inset Foot
14852 status collapsed
14853
14854 \begin_layout Plain Layout
14855 You are invited to send suggestions to 
14856 \begin_inset Flex URL
14857 status collapsed
14858
14859 \begin_layout Plain Layout
14860
14861 lyx-devel@lists.lyx.org
14862 \end_layout
14863
14864 \end_inset
14865
14866 .
14867 \end_layout
14868
14869 \end_inset
14870
14871 , lots will probably never, due to the limitations of LyX's framework.
14872  Of course you can still use all features with the help of some native LaTeX
14873  commands (TeX code
14874 \begin_inset Foot
14875 status collapsed
14876
14877 \begin_layout Plain Layout
14878 Cf.
14879 \begin_inset ERT
14880 status collapsed
14881
14882 \begin_layout Plain Layout
14883
14884
14885 \backslash
14886  
14887 \end_layout
14888
14889 \end_inset
14890
14891 section
14892 \begin_inset space ~
14893 \end_inset
14894
14895
14896 \begin_inset CommandInset ref
14897 LatexCommand ref
14898 reference "sec:Inserting-TeX-Code"
14899
14900 \end_inset
14901
14902  for details.
14903 \end_layout
14904
14905 \end_inset
14906
14907 ).
14908  In this section, we can only list those features which are natively supported
14909  by LyX.
14910  For detailed descriptions (and for the rest of features) we recommend you
14911  have a look at the detailed manual of the Memoir class
14912 \begin_inset Foot
14913 status collapsed
14914
14915 \begin_layout Plain Layout
14916 Cf.
14917 \begin_inset ERT
14918 status collapsed
14919
14920 \begin_layout Plain Layout
14921
14922
14923 \backslash
14924  
14925 \end_layout
14926
14927 \end_inset
14928
14929
14930 \begin_inset Flex URL
14931 status collapsed
14932
14933 \begin_layout Plain Layout
14934
14935 CTAN:/macros/latex/memoir/memman.pdf
14936 \end_layout
14937
14938 \end_inset
14939
14940 .
14941 \end_layout
14942
14943 \end_inset
14944
14945 , which is not only a user guide for the class, but also both a comprehensive
14946  description on good typesetting and a superb example for good typesetting
14947  itself.
14948 \end_layout
14949
14950 \begin_layout Subsection
14951 Basic features and restrictions
14952 \end_layout
14953
14954 \begin_layout Standard
14955 Memoir supports basically all features of the standard book classes.
14956  There are, however, some differences, as follows:
14957 \end_layout
14958
14959 \begin_layout Description
14960 Font
14961 \begin_inset space ~
14962 \end_inset
14963
14964 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
14965 \end_layout
14966
14967 \begin_layout Description
14968 Page
14969 \begin_inset space ~
14970 \end_inset
14971
14972 style: The fancy page style is not supported, due to a command clash between
14973  Memoir and the fancyhdr package (they both define a command with the same
14974  name, which confuses LaTeX).
14975  Instead, Memoir comes with a number of its own page styles (see 
14976 \family sans
14977 Layout\SpecialChar \menuseparator
14978 Document\SpecialChar \menuseparator
14979 Page
14980 \begin_inset space ~
14981 \end_inset
14982
14983 Style
14984 \family default
14985 ).
14986  If you want to use these for the chapter pages, you have to use the command
14987  
14988 \family typewriter
14989
14990 \backslash
14991 chapterstyle
14992 \family default
14993  in the main text or in preamble (e.
14994 \begin_inset space \thinspace{}
14995 \end_inset
14996
14997 g.
14998 \begin_inset space \space{}
14999 \end_inset
15000
15001
15002 \family typewriter
15003
15004 \backslash
15005 chapterstyle{companion}
15006 \family default
15007 ).
15008 \end_layout
15009
15010 \begin_layout Description
15011 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15012  optional argument in the standard classes.
15013  With this, you can specify an alternative version of the title for the
15014  table of contents and the headers (for instance, if the title is too long).
15015  In LyX, you can do this via 
15016 \family sans
15017 Insert\SpecialChar \menuseparator
15018 Short
15019 \begin_inset space ~
15020 \end_inset
15021
15022 Title
15023 \family default
15024  at the beginning of a chapter/section.
15025  Memoir features a second optional argument and thus separates the table
15026  of contents from the header.
15027  You can define three variants of a title with this: one for the main text,
15028  one for the table of contents, and one for the headers.
15029  Simply insert two optional arguments if you need this feature, the first
15030  one containing the short title for the Table of Contents, the second one
15031  containing an alternative short title for the headers.
15032 \end_layout
15033
15034 \begin_layout Description
15035 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15036  of contents, the list of figures and the list of table start a new page
15037  automatically.
15038  Memoir does not follow this route.
15039  You have to insert a page break yourself, if you want to have one.
15040 \end_layout
15041
15042 \begin_layout Description
15043 Titlepage: For some unknown reason, Memoir uses pagination on the title
15044  page (in the standard classes, title pages are 
15045 \begin_inset Quotes eld
15046 \end_inset
15047
15048 empty
15049 \begin_inset Quotes erd
15050 \end_inset
15051
15052 , i.
15053 \begin_inset space \thinspace{}
15054 \end_inset
15055
15056 g.
15057 \begin_inset space \space{}
15058 \end_inset
15059
15060 without pagina).
15061  If you want an empty title page, type 
15062 \family typewriter
15063
15064 \backslash
15065 aliaspagestyle{title}{empty}
15066 \family default
15067  in the preamble.
15068 \end_layout
15069
15070 \begin_layout Description
15071 Article: With the class option 
15072 \emph on
15073 article
15074 \emph default
15075  (to be inserted in 
15076 \family sans
15077 Layout\SpecialChar \menuseparator
15078 Document\SpecialChar \menuseparator
15079 Extra
15080 \begin_inset space ~
15081 \end_inset
15082
15083 Options
15084 \family default
15085 ), you can emulate article style.
15086  That is, counters (footnotes, figures, tables etc.) will not be reset on
15087  new chapters, chapters don't start a new page (but are—in contrary to 
15088 \begin_inset Quotes eld
15089 \end_inset
15090
15091 real
15092 \begin_inset Quotes erd
15093 \end_inset
15094
15095  article classes—still allowed), parts, though, use their own page, as in
15096  book.
15097 \end_layout
15098
15099 \begin_layout Description
15100 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15101  font commands, which have been used in the old LaTeX version 2.09 (e.
15102 \begin_inset space \thinspace{}
15103 \end_inset
15104
15105 g.
15106 \begin_inset space \space{}
15107 \end_inset
15108
15109
15110 \family typewriter
15111
15112 \backslash
15113 rm
15114 \family default
15115
15116 \family typewriter
15117
15118 \backslash
15119 it
15120 \family default
15121 ).
15122  It produces an error and stops LaTeX whenever such a command appears.
15123  The class option 
15124 \emph on
15125 oldfontcommands
15126 \emph default
15127  reallows the commands and spits out warnings instead (which does at least
15128  not stop LaTeX).
15129  Since a lot of packages and particularly BibTeX style files are still using
15130  those commands, we have decided to use this option by default.
15131 \end_layout
15132
15133 \begin_layout Subsection
15134 Extra features
15135 \end_layout
15136
15137 \begin_layout Standard
15138 We will only describe the features supported by LyX (which is not much currently
15139 ).
15140  Please consult the Memoir manual
15141 \begin_inset Foot
15142 status collapsed
15143
15144 \begin_layout Plain Layout
15145 Cf.
15146 \begin_inset ERT
15147 status collapsed
15148
15149 \begin_layout Plain Layout
15150
15151
15152 \backslash
15153  
15154 \end_layout
15155
15156 \end_inset
15157
15158
15159 \begin_inset Flex URL
15160 status collapsed
15161
15162 \begin_layout Plain Layout
15163
15164 CTAN:/macros/latex/memoir/memman.pdf
15165 \end_layout
15166
15167 \end_inset
15168
15169 .
15170 \end_layout
15171
15172 \end_inset
15173
15174  for details.
15175 \end_layout
15176
15177 \begin_layout Description
15178 Abstract: You may wonder why an abstract is an extra feature.
15179  Well, it is in book class.
15180  Usually books don't have abstracts.
15181  Memoir, however, has.
15182  You can use it wherever and how often you like.
15183 \end_layout
15184
15185 \begin_layout Description
15186 Chapterprecis: You may know this older typesetting style: The contents of
15187  a chapter are summarized below the title and also in the table of contents
15188  (e.
15189 \begin_inset space \thinspace{}
15190 \end_inset
15191
15192 g.
15193 \begin_inset space \space{}
15194 \end_inset
15195
15196
15197 \emph on
15198 Our hero arrives in Troia; he loses some friends; he finds others
15199 \emph default
15200 ).
15201  Chapterprecis does exactly this.
15202  It is therefore only sensible below a chapter.
15203 \end_layout
15204
15205 \begin_layout Description
15206 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15207  The epigraph environment provides an elegant way of typesetting such a
15208  motto.
15209  The motto itself (text) and its author (source) are divided by a short
15210  line.
15211  Unfortunately, we have to fool LyX a bit here again, since the environment
15212  needs two arguments (text and source).
15213  In this case, we have to use curly brackets (in TeX mode) between the two
15214  arguments: 
15215 \emph on
15216 <smart slogan>
15217 \emph default
15218  
15219 \family typewriter
15220 }{
15221 \family default
15222  
15223 \emph on
15224 <author of the slogan>.
15225 \end_layout
15226
15227 \begin_layout Description
15228 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15229  complex figurative poems).
15230  LyX can only support a few of them.
15231  One is poemtitle, which is a centered title for poems, which will also
15232  be added to the table of contents (verse is the standard environment for
15233  poems.
15234  Memoir has some enhanced versions of verse, but you need to use TeX code,
15235  because they have to be nested inside regular verse environments, which
15236  is not possible with LyX).
15237 \end_layout
15238
15239 \begin_layout Description
15240 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15241 \end_layout
15242
15243 \begin_layout Section
15244 Article (mwart), book (mwbk) and report (mwrep)
15245 \begin_inset Argument
15246 status collapsed
15247
15248 \begin_layout Plain Layout
15249 The 
15250 \family typewriter
15251 mw
15252 \family default
15253  Classes
15254 \end_layout
15255
15256 \end_inset
15257
15258
15259 \end_layout
15260
15261 \begin_layout Standard
15262 by 
15263 \noun on
15264 Tomasz Luczak
15265 \end_layout
15266
15267 \begin_layout Standard
15268 The LyX document classes 
15269 \emph on
15270 article (mwart)
15271 \emph default
15272
15273 \emph on
15274 report (mwrep)
15275 \emph default
15276  and 
15277 \emph on
15278 book
15279 \emph default
15280  
15281 \emph on
15282 (mwbk)
15283 \emph default
15284  correspond to the LaTeX document classes 
15285 \family typewriter
15286 mwart.cls
15287 \family default
15288
15289 \family typewriter
15290 mwrep.cls
15291 \family default
15292  and 
15293 \family typewriter
15294 mwbk.cls
15295 \family default
15296 , resp.
15297  They are replacements for the standard document classes 
15298 \family typewriter
15299 article.cls
15300 \family default
15301
15302 \family typewriter
15303 report.cls
15304 \family default
15305  and 
15306 \family typewriter
15307 book.cls
15308 \family default
15309 , resp., and fit better to Polish typography conventions in a number of points.
15310  
15311 \end_layout
15312
15313 \begin_layout Standard
15314 Basic differences:
15315 \end_layout
15316
15317 \begin_layout Itemize
15318 Unnumbered titles (with star, e.
15319 \begin_inset space \thinspace{}
15320 \end_inset
15321
15322 g.
15323 \begin_inset space \space{}
15324 \end_inset
15325
15326
15327 \family sans
15328 Section*
15329 \family default
15330 ) are added into table of contents,
15331 \end_layout
15332
15333 \begin_layout Itemize
15334 Additional page styles:
15335 \end_layout
15336
15337 \begin_deeper
15338 \begin_layout Description
15339 uheadings header with separated lines,
15340 \end_layout
15341
15342 \begin_layout Description
15343 myheadings custom header, contents headers via commands: 
15344 \family typewriter
15345
15346 \backslash
15347 markright
15348 \family default
15349  and 
15350 \family typewriter
15351
15352 \backslash
15353 markboth
15354 \family default
15355 ,
15356 \end_layout
15357
15358 \begin_layout Description
15359 myuheadings custom header with separated lines,
15360 \end_layout
15361
15362 \begin_layout Description
15363 outer page number is placed on outer side of page
15364 \end_layout
15365
15366 \end_deeper
15367 \begin_layout Itemize
15368 Options 
15369 \end_layout
15370
15371 \begin_deeper
15372 \begin_layout Description
15373 rmheadings serif titles — default,
15374 \end_layout
15375
15376 \begin_layout Description
15377 sfheadings sansserif titles,
15378 \end_layout
15379
15380 \begin_layout Description
15381 authortitle on title page first placed is author next title — default,
15382 \end_layout
15383
15384 \begin_layout Description
15385 titleauthor on title page first placed is title next author,
15386 \end_layout
15387
15388 \begin_layout Description
15389 withmarginpar reserve place on page for margins.
15390 \end_layout
15391
15392 \end_deeper
15393 \begin_layout Section
15394 Paper
15395 \end_layout
15396
15397 \begin_layout Standard
15398 The document class 
15399 \family sans
15400 paper
15401 \family default
15402  provides an alternative to the standard 
15403 \family sans
15404 article
15405 \family default
15406  class.
15407  It provides similar functionality, but you might prefer this layout with
15408  sans serif sections, headings, and more.
15409 \end_layout
15410
15411 \begin_layout Section
15412 RevTeX4
15413 \end_layout
15414
15415 \begin_layout Standard
15416 by 
15417 \noun on
15418 Amir Karger
15419 \end_layout
15420
15421 \begin_layout Standard
15422 \begin_inset VSpace bigskip
15423 \end_inset
15424
15425
15426 \end_layout
15427
15428 \begin_layout Standard
15429 \noindent
15430 The 
15431 \family sans
15432 Revtex
15433 \begin_inset space ~
15434 \end_inset
15435
15436 4
15437 \family default
15438  textclass works with the American Physical Sociey's RevTeX 4.0 (the 
15439 \begin_inset Formula $\beta$
15440 \end_inset
15441
15442  release of May, 1999) class.
15443 \end_layout
15444
15445 \begin_layout Standard
15446 LyX has a 
15447 \family sans
15448 Revtex
15449 \family default
15450  textclass, which works with RevTeX 3.1.
15451  However, v3.1 is basically obsolete, as it works with LaTeX 2.09.
15452  That means that it doesn't interact very well with LyX, which requires
15453  LaTeX2e, although it has been kludged to work.
15454  Since RevTeX 4.0 has been designed to work much more cleanly with LaTeX2e,
15455  LyX with the 
15456 \family sans
15457 RevTeX
15458 \begin_inset space ~
15459 \end_inset
15460
15461 4
15462 \family default
15463  textclass should also be pretty easy to use.
15464 \end_layout
15465
15466 \begin_layout Standard
15467 These documents are supposed to be used in 
15468 \emph on
15469 addition
15470 \emph default
15471  to the RevTeX 4.0 documents, so we don't describe any of the special RevTeX
15472  macros, and assume you'll know what to put in the preamble if necessary.
15473 \end_layout
15474
15475 \begin_layout Subsection
15476 Installation
15477 \end_layout
15478
15479 \begin_layout Standard
15480 All you need to do is install RevTeX 4, as described in the package's README
15481  file.
15482  The package can be found at The RevTeX 4 Web Site 
15483 \begin_inset Flex URL
15484 status collapsed
15485
15486 \begin_layout Plain Layout
15487
15488 http://publish.aps.org/revtex4/
15489 \end_layout
15490
15491 \end_inset
15492
15493 .
15494  Install it somewhere that LaTeX can see it.
15495  Test it by trying to LaTeX a short RevTeX 4 document in some random directory
15496  (i.
15497 \begin_inset space \thinspace{}
15498 \end_inset
15499
15500 g.
15501 \begin_inset space \space{}
15502 \end_inset
15503
15504 not the directory where you installed the class file.) Then, if you reconfigure
15505  LyX, it will find the class file and let you use the RevTeX4 textclass.
15506 \end_layout
15507
15508 \begin_layout Standard
15509 Probably the easiest way to get started is either to import a RevTeX 4 document
15510  using 
15511 \family typewriter
15512 tex2lyx
15513 \family default
15514 , or to use the 
15515 \family sans
15516 Revtex
15517 \begin_inset space ~
15518 \end_inset
15519
15520 4
15521 \family default
15522  template, found in the templates directory.
15523 \end_layout
15524
15525 \begin_layout Subsection
15526 Preamble Matter
15527 \end_layout
15528
15529 \begin_layout Standard
15530 Optional arguments to 
15531 \family typewriter
15532
15533 \backslash
15534 documentclass
15535 \family default
15536 , like 
15537 \begin_inset Quotes eld
15538 \end_inset
15539
15540 preprint
15541 \begin_inset Quotes erd
15542 \end_inset
15543
15544  and 
15545 \begin_inset Quotes eld
15546 \end_inset
15547
15548 aps
15549 \begin_inset Quotes erd
15550 \end_inset
15551
15552 , go in the 
15553 \family sans
15554 E
15555 \bar under
15556 x
15557 \bar default
15558 tra
15559 \begin_inset space ~
15560 \end_inset
15561
15562 Options
15563 \family default
15564  field in the 
15565 \family sans
15566 Document
15567 \begin_inset space ~
15568 \end_inset
15569
15570 Layout
15571 \family default
15572  dialog, as usual.
15573  Remember that in RevTeX, at least one optional argument is required! 
15574 \end_layout
15575
15576 \begin_layout Standard
15577 Other preamble matter, like 
15578 \family typewriter
15579
15580 \backslash
15581 draft
15582 \family default
15583  etc.
15584 \begin_inset space ~
15585 \end_inset
15586
15587 goes in the 
15588 \family sans
15589 LaTeX
15590 \begin_inset space ~
15591 \end_inset
15592
15593 Preamble
15594 \family default
15595  dialog, also as usual.
15596 \end_layout
15597
15598 \begin_layout Subsection
15599 Layouts
15600 \end_layout
15601
15602 \begin_layout Standard
15603 The layouts basically correspond to the commands in RevTeX4.0.
15604  For example, the Email layout corresponds to 
15605 \family typewriter
15606
15607 \backslash
15608 email{}
15609 \family default
15610 .
15611  Note that (at least as of RevTeX 4.0 Beta), the 
15612 \family sans
15613 Address
15614 \family default
15615  and 
15616 \family sans
15617 Affiliation
15618 \family default
15619  layouts are exactly equivalent, so you shouldn't need to use both.
15620 \begin_inset Foot
15621 status collapsed
15622
15623 \begin_layout Plain Layout
15624 In case you're curious, both were included so that 
15625 \family typewriter
15626 tex2lyx
15627 \family default
15628  would be able to translate both 
15629 \family typewriter
15630
15631 \backslash
15632 address
15633 \family default
15634  and 
15635 \family typewriter
15636
15637 \backslash
15638 affiliation
15639 \family default
15640 .
15641 \end_layout
15642
15643 \end_inset
15644
15645
15646 \end_layout
15647
15648 \begin_layout Subsection
15649 Important Notes
15650 \end_layout
15651
15652 \begin_layout Standard
15653 There are a couple of important unique aspects of RevTeX 4 which might cause
15654  bugs that will be even more confusing in LyX.
15655 \end_layout
15656
15657 \begin_layout Standard
15658 In RevTeX, the 
15659 \family typewriter
15660
15661 \backslash
15662 thanks
15663 \family default
15664  command goes 
15665 \emph on
15666 outside
15667 \emph default
15668  the 
15669 \family typewriter
15670
15671 \backslash
15672 author
15673 \family default
15674  command.
15675  The LyX equivalent is that there is a separate Thanks layout.
15676  Do 
15677 \emph on
15678 not
15679 \emph default
15680  write footnotes in the 
15681 \family sans
15682 Author
15683 \family default
15684  layout, or weird things may happen.
15685  See the RevTeX 4 documentation for more details.
15686 \end_layout
15687
15688 \begin_layout Standard
15689 Also, the 
15690 \family sans
15691 Author
15692 \begin_inset space ~
15693 \end_inset
15694
15695 Email
15696 \family default
15697
15698 \family sans
15699 Author
15700 \begin_inset space ~
15701 \end_inset
15702
15703 URL
15704 \family default
15705 , and 
15706 \family sans
15707 Thanks
15708 \family default
15709  layouts must be placed 
15710 \emph on
15711 in between
15712 \emph default
15713  the 
15714 \family sans
15715 Author
15716 \family default
15717  layout and the corresponding 
15718 \family sans
15719 Address
15720 \family default
15721  (or equivalent 
15722 \family sans
15723 Affiliation
15724 \family default
15725 ) layout.
15726  If you put the 
15727 \family sans
15728 Thanks
15729 \family default
15730  after the 
15731 \family sans
15732 Address
15733 \family default
15734 , the LaTeX won't compile.
15735 \end_layout
15736
15737 \begin_layout Subsection
15738 Drawbacks
15739 \end_layout
15740
15741 \begin_layout Standard
15742 The main problem with this layout is that you can't use the optional arguments
15743  to layouts like Email and Title.
15744  (The problem is not unique to this layout; you can't use optional arguments
15745  to the Section layouts either.) This means that after you export that file
15746  to LaTeX (which you'll need to do eventually to send it in to APS), you'll
15747  need to edit the LaTeX file with a text editor to add the optional arguments
15748  to set, e.
15749 \begin_inset space \thinspace{}
15750 \end_inset
15751
15752 g.
15753 \begin_inset space \space{}
15754 \end_inset
15755
15756 the running title for the page headers.
15757  Lacking these layouts makes the 
15758 \family typewriter
15759
15760 \backslash
15761 altaffiliation
15762 \family default
15763  (and the equivalent 
15764 \family typewriter
15765
15766 \backslash
15767 altaddress
15768 \family default
15769 ) useless, so the corresponding layouts don't exist, and will have to be
15770  added by hand.
15771 \begin_inset Foot
15772 status collapsed
15773
15774 \begin_layout Plain Layout
15775
15776 \emph on
15777 Note from JMarc:
15778 \emph default
15779  actually, LyX 1.3.0 supports some forms of optional arguments, but this layout
15780  has not been updated yet to take advantage of it.
15781 \end_layout
15782
15783 \end_inset
15784
15785  
15786 \end_layout
15787
15788 \begin_layout Section
15789 Springer Journals (
15790 \family sans
15791 svjour
15792 \family default
15793 )
15794 \end_layout
15795
15796 \begin_layout Standard
15797 by 
15798 \noun on
15799 Martin Vermeer
15800 \end_layout
15801
15802 \begin_layout Subsection
15803 Description
15804 \end_layout
15805
15806 \begin_layout Standard
15807 These are the layout files for some of the journal formats used by Springer
15808  Verlag and listed on 
15809 \begin_inset Flex URL
15810 status collapsed
15811
15812 \begin_layout Plain Layout
15813
15814 http://www.springer.de/author/tex/help-journals.html
15815 \end_layout
15816
15817 \end_inset
15818
15819 , where you should also go to fetch the class files (yes, these are LaTeX2e
15820  now!).
15821  It is a modular system: the things common to all journals are implemented
15822  in 
15823 \family typewriter
15824 svjour.inc
15825 \family default
15826 , which journal-specific layout files (such as, e.
15827 \begin_inset space \thinspace{}
15828 \end_inset
15829
15830 g.
15831 \begin_inset space \space{}
15832 \end_inset
15833
15834
15835 \family typewriter
15836 svjog.layout
15837 \family default
15838  for Journal of Geodesy) can include.
15839 \end_layout
15840
15841 \begin_layout Standard
15842 This means that implementing support for any other Springer journal on this
15843  list is as simple as writing your own 
15844 \family typewriter
15845 sv
15846 \family default
15847 <myjournal>
15848 \family typewriter
15849 .layout
15850 \family default
15851  file following the outline given in 
15852 \family typewriter
15853 svjog.layout
15854 \family default
15855 .
15856  
15857 \end_layout
15858
15859 \begin_layout Standard
15860 It is reasonably well tested only for the Journal of Geodesy.
15861  
15862 \family typewriter
15863 svjour
15864 \family default
15865  and 
15866 \family typewriter
15867 svjog
15868 \family default
15869  come with the standard LyX distribution.
15870  Install the relevant class file (downloaded from Springer) in a proper
15871  directory, reconfigure LaTeX (in the teTeX case by running 
15872 \family typewriter
15873 texhash
15874 \family default
15875 , as root if necessary — doesn't LyX take care of this?), reconfigure LyX
15876  and it should work.
15877 \end_layout
15878
15879 \begin_layout Subsection
15880 New styles
15881 \end_layout
15882
15883 \begin_layout Standard
15884 A large number of theorem-like styles — 
15885 \family sans
15886 Claim, Conjecture,
15887 \family default
15888  
15889 \family sans
15890 \SpecialChar \ldots{}
15891 Theorem
15892 \family default
15893 .
15894 \end_layout
15895
15896 \begin_layout Standard
15897
15898 \family sans
15899 Headnote, Dedication, Subtitle, Running_LaTeX_Title, Author_Running, Institute,
15900  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
15901 \family default
15902 .
15903  See the Springer class file documentation for details.
15904 \end_layout
15905
15906 \begin_layout Subsection
15907 Supported journals
15908 \end_layout
15909
15910 \begin_layout Itemize
15911
15912 \emph on
15913 Journal of Geodesy
15914 \emph default
15915
15916 \family typewriter
15917 svjog.layout
15918 \family default
15919  — Martin Vermeer
15920 \end_layout
15921
15922 \begin_layout Itemize
15923
15924 \emph on
15925 Probability Theory and Related Fields
15926 \emph default
15927
15928 \family typewriter
15929 svprobth.layout
15930 \family default
15931  — Jean-Marc Lasgouttes
15932 \end_layout
15933
15934 \begin_layout Standard
15935 Add your own, it isn't so hard!
15936 \end_layout
15937
15938 \begin_layout Subsection
15939 Credits
15940 \end_layout
15941
15942 \begin_layout Standard
15943 These files are partly based on the older 
15944 \family typewriter
15945 ejour2.layout
15946 \family default
15947 , which was again based on a tinkered-with version of an old LaTeX 2.09 style
15948  file from Springer.
15949  All this, and the 
15950 \family typewriter
15951 ejour2
15952 \family default
15953  layout, are now defunct.
15954  Jean-Marc Lasgouttes helped out big in making me find my way around the
15955  LyX layout file mechanism.
15956 \end_layout
15957
15958 \begin_layout Subsection
15959 Bugs
15960 \end_layout
15961
15962 \begin_layout Standard
15963 Probably.
15964  But probably less than in the old hacked-LaTeX 
15965 \family typewriter
15966 ejour2
15967 \family default
15968 .
15969 \end_layout
15970
15971 \begin_layout Standard
15972 Limitations e.
15973 \begin_inset space \thinspace{}
15974 \end_inset
15975
15976 g.: does not display the number for theorem-like layouts, just #.
15977 \end_layout
15978
15979 \begin_layout Section
15980 Slides [aka 
15981 \noun on
15982 SliTeX
15983 \noun default
15984 ]
15985 \begin_inset CommandInset label
15986 LatexCommand label
15987 name "sec:slitex"
15988
15989 \end_inset
15990
15991
15992 \end_layout
15993
15994 \begin_layout Standard
15995 by 
15996 \noun on
15997 John Weiss
15998 \noun default
15999  
16000 \end_layout
16001
16002 \begin_layout Subsection
16003 Introduction
16004 \end_layout
16005
16006 \begin_layout Standard
16007 This section describes how to use LyX to make slides for overhead projectors.
16008  There are two document classes that can do this: the default slides class
16009  and the 
16010 \family sans
16011 FoilTeX
16012 \family default
16013  slides class.
16014  This section documents the former.
16015 \end_layout
16016
16017 \begin_layout Standard
16018 I'm going to say this again, nice and clear, so that there's no misunderstanding
16019 :
16020 \end_layout
16021
16022 \begin_layout Standard
16023 \begin_inset VSpace bigskip
16024 \end_inset
16025
16026
16027 \end_layout
16028
16029 \begin_layout Standard
16030 \align center
16031
16032 \size large
16033 This section documents the class 
16034 \begin_inset Quotes eld
16035 \end_inset
16036
16037
16038 \family sans
16039 slides (default)
16040 \family default
16041
16042 \begin_inset Quotes erd
16043 \end_inset
16044
16045  
16046 \emph on
16047 only.
16048 \end_layout
16049
16050 \begin_layout Standard
16051 \begin_inset VSpace bigskip
16052 \end_inset
16053
16054
16055 \end_layout
16056
16057 \begin_layout Standard
16058 If you're looking for the documentation for 
16059 \begin_inset Quotes eld
16060 \end_inset
16061
16062
16063 \family sans
16064 slides (FoilTeX)
16065 \family default
16066
16067 \begin_inset Quotes erd
16068 \end_inset
16069
16070 , check out section
16071 \begin_inset space ~
16072 \end_inset
16073
16074
16075 \begin_inset CommandInset ref
16076 LatexCommand ref
16077 reference "sec:foiltex"
16078
16079 \end_inset
16080
16081 .
16082  The 
16083 \family sans
16084 foils
16085 \family default
16086  class [
16087 \begin_inset Quotes eld
16088 \end_inset
16089
16090
16091 \family sans
16092 slides (FoilTeX)
16093 \family default
16094
16095 \begin_inset Quotes erd
16096 \end_inset
16097
16098 ] is actually somewhat better than the default 
16099 \family sans
16100 slides
16101 \family default
16102  class,
16103 \begin_inset Foot
16104 status collapsed
16105
16106 \begin_layout Plain Layout
16107 \SpecialChar \ldots{}
16108 or so I've been told repeatedly by its advocates.
16109  Having never used it, I have no idea if this claim is true or not.
16110 \end_layout
16111
16112 \end_inset
16113
16114  which this section documents.
16115 \end_layout
16116
16117 \begin_layout Standard
16118 This class is the LaTeX2e improvement of the old 
16119 \noun on
16120 SliTeX
16121 \noun default
16122  package.
16123  Every LaTeX2e distribution includes this class [which I'll just refer to
16124  as 
16125 \begin_inset Quotes eld
16126 \end_inset
16127
16128
16129 \family sans
16130 slides
16131 \family default
16132
16133 \begin_inset Quotes erd
16134 \end_inset
16135
16136  from now on], so you're bound to have it.
16137  As I noted earlier, there are other classes, such as 
16138 \family sans
16139 foils
16140 \family default
16141 , which also produce slides for overhead projectors and do a better job
16142  at it.
16143  However, there are some things which 
16144 \family sans
16145 slides
16146 \family default
16147  can do which the others can't, such as generate overlays.
16148  Read on to learn more!
16149 \end_layout
16150
16151 \begin_layout Subsection
16152 Getting Started
16153 \begin_inset CommandInset label
16154 LatexCommand label
16155 name "sec:slidesetup"
16156
16157 \end_inset
16158
16159
16160 \end_layout
16161
16162 \begin_layout Standard
16163 Obviously, to use this document class, you need to select 
16164 \begin_inset Quotes eld
16165 \end_inset
16166
16167
16168 \family sans
16169 slides (default)
16170 \family default
16171
16172 \begin_inset Quotes erd
16173 \end_inset
16174
16175  from the class list in the 
16176 \family sans
16177 Document\SpecialChar \menuseparator
16178 Settings
16179 \family default
16180  dialog.
16181  There are some other special things you should know about this class:
16182 \end_layout
16183
16184 \begin_layout Itemize
16185 Don't bother changing the options 
16186 \family sans
16187 Sides and Columns
16188 \family default
16189 .
16190  They're not supported by the 
16191 \family sans
16192 slides
16193 \family default
16194  class, anyways.
16195 \end_layout
16196
16197 \begin_layout Itemize
16198 The option 
16199 \family sans
16200 Page
16201 \begin_inset space ~
16202 \end_inset
16203
16204 style
16205 \family default
16206  behaves a bit differently for this class.
16207  The possible choices and what they do are as follows:
16208 \end_layout
16209
16210 \begin_deeper
16211 \begin_layout Description
16212
16213 \family sans
16214 plain
16215 \family default
16216  The final output contains page numbers in the lower right corner.
16217 \end_layout
16218
16219 \begin_layout Description
16220
16221 \family sans
16222 headings
16223 \family default
16224  Like 
16225 \family sans
16226 plain
16227 \family default
16228 , but also prints out any time markers you've put in.
16229  This is the default.
16230 \end_layout
16231
16232 \begin_layout Description
16233
16234 \family sans
16235 empty
16236 \family default
16237  The final output contains no page numbers, time markers, or alignment markers.
16238 \end_layout
16239
16240 \end_deeper
16241 \begin_layout Itemize
16242 The 
16243 \family sans
16244 slides
16245 \family default
16246  class has an extra option: 
16247 \family typewriter
16248 clock
16249 \family default
16250 .
16251  To use it, put 
16252 \begin_inset Quotes eld
16253 \end_inset
16254
16255
16256 \family typewriter
16257 clock
16258 \family default
16259
16260 \begin_inset Quotes erd
16261 \end_inset
16262
16263  in the extra class options.
16264 \end_layout
16265
16266 \begin_deeper
16267 \begin_layout Standard
16268 Using this options allows you to add time markers to 
16269 \family sans
16270 Note
16271 \family default
16272 s.
16273  See section
16274 \begin_inset space ~
16275 \end_inset
16276
16277
16278 \begin_inset CommandInset ref
16279 LatexCommand ref
16280 reference "sec:slideNote"
16281
16282 \end_inset
16283
16284  for more details.
16285 \end_layout
16286
16287 \end_deeper
16288 \begin_layout Standard
16289 You can also use the template file 
16290 \begin_inset Quotes eld
16291 \end_inset
16292
16293
16294 \family typewriter
16295 slides.lyx
16296 \family default
16297
16298 \begin_inset Quotes erd
16299 \end_inset
16300
16301  to automatically set up a document to use the 
16302 \family sans
16303 slides
16304 \family default
16305  class [using 
16306 \family sans
16307 File\SpecialChar \menuseparator
16308 New
16309 \begin_inset space ~
16310 \end_inset
16311
16312 from
16313 \begin_inset space ~
16314 \end_inset
16315
16316 Template
16317 \family default
16318  to open your new document].
16319  The template file also contains some examples of the special paragraph
16320  environments used by this class.
16321  I'll describe those next.
16322 \end_layout
16323
16324 \begin_layout Subsection
16325 Paragraph Environments
16326 \end_layout
16327
16328 \begin_layout Subsubsection
16329 Supported Environments
16330 \end_layout
16331
16332 \begin_layout Standard
16333 The first thing you'll notice when you start up a new 
16334 \family sans
16335 slides
16336 \family default
16337  document is the font size and type: it's the equivalent of the size 
16338 \begin_inset Quotes eld
16339 \end_inset
16340
16341
16342 \family sans
16343 Largest
16344 \family default
16345
16346 \begin_inset Quotes erd
16347 \end_inset
16348
16349  in the 
16350 \family sans
16351 Sans
16352 \begin_inset space ~
16353 \end_inset
16354
16355 Serif
16356 \family default
16357  font.
16358  This is also what's used in the output.
16359  Think of this as a 
16360 \begin_inset Quotes eld
16361 \end_inset
16362
16363 visual cue
16364 \begin_inset Quotes erd
16365 \end_inset
16366
16367  to remind you that this is a slide.
16368  Your final slides will use a larger font; ergo, you'll have less space.
16369  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
16370 \end_layout
16371
16372 \begin_layout Standard
16373 The next thing that becomes obvious is the changes to the paragraph environment
16374  pull-down box [at the far-left end of the toolbar].
16375  Most of the paragraph environments you're used to seeing are missing.
16376  There are also five new ones.
16377  That's because the 
16378 \family sans
16379 slides
16380 \family default
16381  class itself only supports certain paragraph environments:
16382 \end_layout
16383
16384 \begin_layout Itemize
16385
16386 \family sans
16387 Standard
16388 \end_layout
16389
16390 \begin_layout Itemize
16391
16392 \family sans
16393 Itemize
16394 \end_layout
16395
16396 \begin_layout Itemize
16397
16398 \family sans
16399 Enumerate
16400 \end_layout
16401
16402 \begin_layout Itemize
16403
16404 \family sans
16405 Description
16406 \end_layout
16407
16408 \begin_layout Itemize
16409
16410 \family sans
16411 List
16412 \end_layout
16413
16414 \begin_layout Itemize
16415
16416 \family sans
16417 Quotation
16418 \end_layout
16419
16420 \begin_layout Itemize
16421
16422 \family sans
16423 Quote
16424 \end_layout
16425
16426 \begin_layout Itemize
16427
16428 \family sans
16429 Verse
16430 \end_layout
16431
16432 \begin_layout Itemize
16433
16434 \family sans
16435 Caption
16436 \end_layout
16437
16438 \begin_layout Itemize
16439
16440 \family sans
16441 LyX-Code
16442 \end_layout
16443
16444 \begin_layout Itemize
16445
16446 \family sans
16447 Comment
16448 \end_layout
16449
16450 \begin_layout Standard
16451 All of the other standard environments, including the section-heading environmen
16452 ts, aren't used in the 
16453 \family sans
16454 slides
16455 \family default
16456  class.
16457 \end_layout
16458
16459 \begin_layout Standard
16460 On the other hand, you'll notice the following new environments:
16461 \end_layout
16462
16463 \begin_layout Itemize
16464
16465 \family sans
16466 Slide
16467 \end_layout
16468
16469 \begin_layout Itemize
16470
16471 \family sans
16472 Overlay
16473 \end_layout
16474
16475 \begin_layout Itemize
16476
16477 \family sans
16478 Note
16479 \end_layout
16480
16481 \begin_layout Itemize
16482
16483 \family sans
16484 InvisibleText
16485 \end_layout
16486
16487 \begin_layout Itemize
16488
16489 \family sans
16490 VisibleText
16491 \end_layout
16492
16493 \begin_layout Standard
16494 These five are kind of quirky, due to a 
16495 \begin_inset Quotes eld
16496 \end_inset
16497
16498 feature
16499 \begin_inset Quotes erd
16500 \end_inset
16501
16502  in LyX.
16503  You see, LyX doesn't permit you to nest any other paragraph environment
16504  into an empty environment.
16505  Now, that's fine and dandy, but it means that you wouldn't be able to start
16506  a slide with anything except plain text.
16507  To deal with this, I've performed a little 
16508 \begin_inset Quotes eld
16509 \end_inset
16510
16511 LaTeX magic.
16512 \begin_inset Quotes erd
16513 \end_inset
16514
16515  
16516 \end_layout
16517
16518 \begin_layout Subsubsection
16519 Quirks of the New Environments
16520 \begin_inset CommandInset label
16521 LatexCommand label
16522 name "sec:slideQuirk"
16523
16524 \end_inset
16525
16526
16527 \end_layout
16528
16529 \begin_layout Standard
16530 All five of the new paragraph environments are somewhat quirky due to inherent
16531  limitiations in the current version of LyX.
16532  As I just mentioned, LyX forbids environments that begin with another environme
16533 nt.
16534  To get around this, the 
16535 \family sans
16536 Slide
16537 \family default
16538  environment isn't a paragraph environment as described in the 
16539 \emph on
16540 User's Guide
16541 \emph default
16542 .
16543  
16544 \end_layout
16545
16546 \begin_layout Standard
16547 You should consider 
16548 \family sans
16549 Slide
16550 \family default
16551
16552 \family sans
16553 Overlay
16554 \family default
16555 , and 
16556 \family sans
16557 Note
16558 \family default
16559  to be 
16560 \begin_inset Quotes eld
16561 \end_inset
16562
16563 pseudo-environments.
16564 \begin_inset Quotes erd
16565 \end_inset
16566
16567  They look like a section heading or a 
16568 \begin_inset Quotes eld
16569 \end_inset
16570
16571
16572 \family sans
16573 Caption
16574 \family default
16575 ,
16576 \begin_inset Quotes erd
16577 \end_inset
16578
16579  but really begin a [and, if necessary, end the previous] paragraph environment.
16580  Likewise, treat 
16581 \family sans
16582 InvisibleText
16583 \family default
16584  and 
16585 \family sans
16586 VisibleText
16587 \family default
16588  as 
16589 \begin_inset Quotes eld
16590 \end_inset
16591
16592 pseudo-commands.
16593 \begin_inset Quotes erd
16594 \end_inset
16595
16596  These two perform some action.
16597 \end_layout
16598
16599 \begin_layout Standard
16600 A common feature of all five environments, 
16601 \family sans
16602 Slide
16603 \family default
16604
16605 \family sans
16606 Overlay
16607 \family default
16608
16609 \family sans
16610 Note
16611 \family default
16612
16613 \family sans
16614 InvisibleText
16615 \family default
16616  and 
16617 \family sans
16618 VisibleText
16619 \family default
16620 , is a rather long-ish label.
16621  The text following this label — ordinarily the contents of the paragraph
16622  environment — is utterly irrelevant for 
16623 \family sans
16624 Slide
16625 \family default
16626
16627 \family sans
16628 Overlay
16629 \family default
16630
16631 \family sans
16632 Note
16633 \family default
16634
16635 \family sans
16636 InvisibleText
16637 \family default
16638  and 
16639 \family sans
16640 VisibleText
16641 \family default
16642 .
16643  LyX completely ignores it.
16644  In fact, you can leave these five environments completely empty.
16645  
16646 \end_layout
16647
16648 \begin_layout Standard
16649 While you don't 
16650 \emph on
16651 have
16652 \emph default
16653  to put any text after the rather long-ish label, you might want to.
16654  This could be a short description of the contents of the 
16655 \family sans
16656 Slide
16657 \family default
16658 , for example.
16659  In that case, enter your descriptive comment and hit 
16660 \family sans
16661 Return
16662 \family default
16663  as you normally would.
16664 \end_layout
16665
16666 \begin_layout Standard
16667 If, on the other hand, you don't want to enter any descriptive text, you'll
16668  hit another LyX quirk.
16669  LyX, like nature, abhors a vacuum, and will not let you start a new paragraph
16670  environment until you put something in the old one.
16671  So, do this:
16672 \end_layout
16673
16674 \begin_layout Itemize
16675 Start entering the text that will 
16676 \emph on
16677 follow
16678 \emph default
16679  the new 
16680 \family sans
16681 Slide
16682 \family default
16683
16684 \family sans
16685 Overlay
16686 \family default
16687
16688 \family sans
16689 Note
16690 \family default
16691
16692 \family sans
16693 InvisibleText
16694 \family default
16695  or 
16696 \family sans
16697 VisibleText
16698 \family default
16699 .
16700  
16701 \end_layout
16702
16703 \begin_layout Itemize
16704 Now move to the beginning of that paragraph.
16705  
16706 \end_layout
16707
16708 \begin_layout Itemize
16709 Next, hit 
16710 \family sans
16711 Return
16712 \family default
16713 .
16714  
16715 \end_layout
16716
16717 \begin_layout Itemize
16718 Finally, change this new, empty paragraph to a 
16719 \family sans
16720 Slide
16721 \family default
16722
16723 \family sans
16724 Overlay
16725 \family default
16726
16727 \family sans
16728 Note
16729 \family default
16730
16731 \family sans
16732 InvisibleText
16733 \family default
16734  or 
16735 \family sans
16736 VisibleText
16737 \family default
16738 .
16739  
16740 \end_layout
16741
16742 \begin_layout Standard
16743 Some future version of LyX will, hopefully, resolve this quirkiness\SpecialChar \ldots{}
16744
16745 \end_layout
16746
16747 \begin_layout Subsection
16748 Making a Presentation with 
16749 \family sans
16750 Slide
16751 \family default
16752
16753 \family sans
16754 Overlay
16755 \family default
16756  and 
16757 \family sans
16758 Note
16759 \end_layout
16760
16761 \begin_layout Subsubsection
16762 Using the 
16763 \family sans
16764 Slide
16765 \family default
16766  Environment
16767 \end_layout
16768
16769 \begin_layout Standard
16770 If you're expecting this section to teach you how to actually make a presentatio
16771 n, you'll be sorely disappointed.
16772  Naturally, I'll describe all of the ways the 
16773 \family sans
16774 slides
16775 \family default
16776  class can assist you in preparing the materials for a presentation.
16777  Filling in the contents, however, is up to you.
16778  [Then again, that 
16779 \emph on
16780 is
16781 \emph default
16782  the LyX philosophy.]
16783 \end_layout
16784
16785 \begin_layout Standard
16786 Choosing the 
16787 \family sans
16788 Slide
16789 \family default
16790  environment [in the manner described in section
16791 \begin_inset space ~
16792 \end_inset
16793
16794
16795 \begin_inset CommandInset ref
16796 LatexCommand ref
16797 reference "sec:slideQuirk"
16798
16799 \end_inset
16800
16801 ] tells LyX to begin a new slide [duh].
16802  The label for this environment/
16803 \begin_inset Quotes erd
16804 \end_inset
16805
16806 pseudo-command
16807 \begin_inset Quotes erd
16808 \end_inset
16809
16810  is an 
16811 \begin_inset Quotes eld
16812 \end_inset
16813
16814 ASCII line,
16815 \begin_inset Quotes erd
16816 \end_inset
16817
16818  in cool blue, followed by the label, 
16819 \begin_inset Quotes eld
16820 \end_inset
16821
16822 NewSlide:
16823 \begin_inset Quotes erd
16824 \end_inset
16825
16826 .
16827  Any text or paragraph environments that follow this one go on the new slide.
16828  It's that simple.
16829 \end_layout
16830
16831 \begin_layout Standard
16832 Slides are probably the only time you'll need to forcibly end pages in LyX
16833  (this can be specified in the 
16834 \family sans
16835 Paragraph Layout
16836 \family default
16837  dialog).
16838  In fact, you'll want to, once you finish entering the contents of one slide.
16839  If you've entered more text than can physically fit on a slide, the extra
16840  overflows onto a new slide.
16841  I don't recommend doing this, however, since the overflow slide won't have
16842  any page number on it.
16843  Furthermore, it may interfere with any 
16844 \family sans
16845 Overlay
16846 \family default
16847  you've made to accompany the oversized 
16848 \family sans
16849 Slide
16850 \family default
16851 .
16852 \end_layout
16853
16854 \begin_layout Standard
16855 The 
16856 \family sans
16857 Overlay
16858 \family default
16859  and 
16860 \family sans
16861 Note
16862 \family default
16863  environments work the same way as the 
16864 \family sans
16865 Slide
16866 \family default
16867  environment.
16868  They both create an 
16869 \begin_inset Quotes eld
16870 \end_inset
16871
16872 ASCII line
16873 \begin_inset Quotes erd
16874 \end_inset
16875
16876  followed by a label [
16877 \begin_inset Quotes eld
16878 \end_inset
16879
16880 NewOverlay:
16881 \begin_inset Quotes erd
16882 \end_inset
16883
16884  and 
16885 \begin_inset Quotes eld
16886 \end_inset
16887
16888 NewNote:
16889 \begin_inset Quotes erd
16890 \end_inset
16891
16892 , respectively].
16893  The color is a stunning magenta instead of blue, and the 
16894 \begin_inset Quotes eld
16895 \end_inset
16896
16897 ASCII line
16898 \begin_inset Quotes erd
16899 \end_inset
16900
16901  will look different, in style and in length.
16902  The label fonts of all three also differ from one another.
16903 \end_layout
16904
16905 \begin_layout Standard
16906 As with a 
16907 \family sans
16908 Slide
16909 \family default
16910 , if the contents of a 
16911 \family sans
16912 Note
16913 \family default
16914  or 
16915 \family sans
16916 Overlay
16917 \family default
16918  exceed the physical size of a slide or sheet of paper, the extra will overflow
16919  onto a new sheet.
16920  Again, you should avoid this.
16921  It defeats the whole purpose of 
16922 \family sans
16923 Note
16924 \family default
16925 s and 
16926 \family sans
16927 Overlay
16928 \family default
16929 s.
16930 \end_layout
16931
16932 \begin_layout Subsubsection
16933 Using 
16934 \family sans
16935 Overlay
16936 \family default
16937  with 
16938 \family sans
16939 Slide
16940 \end_layout
16941
16942 \begin_layout Standard
16943 The idea behind an 
16944 \family sans
16945 Overlay
16946 \family default
16947  is a slide that sits atop another slide.
16948  Perhaps you wish to discuss a figure on the main 
16949 \family sans
16950 Slide
16951 \family default
16952  before displaying the text associated with it.
16953  One way to accomplish this is tape a flap of dark paper over the part of
16954  the 
16955 \family sans
16956 Slide
16957 \family default
16958  you want to display later.
16959  This method fails, however, if you wish to overlap one graph with another,
16960  for example.
16961  You would then have to fumble while speaking to align the two separate,
16962  overlapping 
16963 \family sans
16964 Slide
16965 \family default
16966 s to align the two graphs.
16967  The use of an 
16968 \family sans
16969 Overlay
16970 \family default
16971  environment in both cases makes life much easier.
16972 \end_layout
16973
16974 \begin_layout Standard
16975 Each 
16976 \family sans
16977 Overlay
16978 \family default
16979  receives the page number of its 
16980 \begin_inset Quotes eld
16981 \end_inset
16982
16983 parent
16984 \begin_inset Quotes erd
16985 \end_inset
16986
16987  
16988 \family sans
16989 Slide
16990 \family default
16991 , appended by 
16992 \begin_inset Quotes eld
16993 \end_inset
16994
16995
16996 \family typewriter
16997 -a
16998 \family default
16999
17000 \begin_inset Quotes erd
17001 \end_inset
17002
17003 .
17004 \begin_inset Foot
17005 status collapsed
17006
17007 \begin_layout Plain Layout
17008 Presumably, mutliple 
17009 \family sans
17010 Overlay
17011 \family default
17012 s would have 
17013 \begin_inset Quotes eld
17014 \end_inset
17015
17016
17017 \family typewriter
17018 -a
17019 \family default
17020
17021 \begin_inset Quotes erd
17022 \end_inset
17023
17024
17025 \begin_inset Quotes eld
17026 \end_inset
17027
17028
17029 \family typewriter
17030 -b
17031 \family default
17032
17033 \begin_inset Quotes erd
17034 \end_inset
17035
17036
17037 \begin_inset Quotes eld
17038 \end_inset
17039
17040
17041 \family typewriter
17042 -c
17043 \family default
17044
17045 \begin_inset Quotes erd
17046 \end_inset
17047
17048 , etc.
17049 \begin_inset space ~
17050 \end_inset
17051
17052 appended to the page number of the parent 
17053 \family sans
17054 Slide
17055 \family default
17056 .
17057  
17058 \end_layout
17059
17060 \end_inset
17061
17062  Clearly, you want the contents of both the 
17063 \family sans
17064 Slide
17065 \family default
17066  and the 
17067 \family sans
17068 Overlay
17069 \family default
17070  to each fit on a single physical slide! You should probably consider an
17071  
17072 \family sans
17073 Overlay
17074 \family default
17075  as 
17076 \begin_inset Quotes eld
17077 \end_inset
17078
17079 part of
17080 \begin_inset Quotes erd
17081 \end_inset
17082
17083  a 
17084 \family sans
17085 Slide
17086 \family default
17087 .
17088  Indeed, the LyX 
17089 \family sans
17090 slides
17091 \family default
17092  class provides a visual cue for this: the label at the start of an 
17093 \family sans
17094 Overlay
17095 \family default
17096  is shorter than that at the start of a 
17097 \family sans
17098 Slide
17099 \family default
17100 .
17101  Lastly, when you generate printable output, you'll find alignment markers
17102  in all four corners of both the 
17103 \family sans
17104 Overlay
17105 \family default
17106  page and its parent 
17107 \family sans
17108 Slide
17109 \family default
17110 .
17111  These will assist you in lining up the two physical slides.
17112 \end_layout
17113
17114 \begin_layout Standard
17115 The major problem in overlaying two slides is aligning the contents of the
17116  two transparencies.
17117  How much space should you leave for that graph on the second slide? Worse
17118  still, what if you want a graph and a sentence on second slide, but there
17119  is text on the main transparency that goes in between them? You could try
17120  and insert vertical space of the right size.
17121  The better way is to use 
17122 \family sans
17123 InvisibleText
17124 \family default
17125  and 
17126 \family sans
17127 VisibleText
17128 \family default
17129 .
17130 \end_layout
17131
17132 \begin_layout Standard
17133 As their names imply, 
17134 \family sans
17135 InvisibleText
17136 \family default
17137  and 
17138 \family sans
17139 VisibleText
17140 \family default
17141  are two command-like paragraph environments that make all subsequent text
17142  invisible and visible, respectively.
17143  Note from section
17144 \begin_inset space ~
17145 \end_inset
17146
17147
17148 \begin_inset CommandInset ref
17149 LatexCommand ref
17150 reference "sec:slideQuirk"
17151
17152 \end_inset
17153
17154  that you don't place anything 
17155 \emph on
17156 into
17157 \emph default
17158  these two environments, however.
17159  When you create an 
17160 \family sans
17161 InvisibleText
17162 \family default
17163 , it inserts a centered, sky-blue label into the page reading 
17164 \begin_inset Quotes eld
17165 \end_inset
17166
17167 <Invisible Text Follows>
17168 \begin_inset Quotes erd
17169 \end_inset
17170
17171 .
17172  For paragraphs following this label, the parts of the 
17173 \family sans
17174 Slide
17175 \family default
17176  [or 
17177 \family sans
17178 Overlay
17179 \family default
17180 ; it doesn't matter which] where they would be contain instead blank space.
17181  
17182 \end_layout
17183
17184 \begin_layout Standard
17185 For 
17186 \family sans
17187 VisibleText
17188 \family default
17189 , the corresponding centered label is 
17190 \begin_inset Quotes eld
17191 \end_inset
17192
17193 <Visible Text Follows>
17194 \begin_inset Quotes erd
17195 \end_inset
17196
17197  in blazing green.
17198  Paragraphs following this label behave normally.
17199  Note that the beginning of a new 
17200 \family sans
17201 Slide
17202 \family default
17203
17204 \family sans
17205 Overlay
17206 \family default
17207 , or 
17208 \family sans
17209 Note
17210 \family default
17211  automatically shuts off an 
17212 \family sans
17213 InvisibleText
17214 \family default
17215 .
17216  It's therefore not necessary to use 
17217 \family sans
17218 VisibleText
17219 \family default
17220  at the end of a 
17221 \family sans
17222 Slide
17223 \family default
17224 .
17225 \end_layout
17226
17227 \begin_layout Standard
17228 By now, it should be obvious how to create overlay transparencies using
17229  the proper combination of 
17230 \family sans
17231 InvisibleText
17232 \family default
17233  and 
17234 \family sans
17235 VisibleText
17236 \family default
17237  on a 
17238 \family sans
17239 Slide
17240 \family default
17241  and 
17242 \family sans
17243 Overlay
17244 \family default
17245 :
17246 \end_layout
17247
17248 \begin_layout Enumerate
17249 Create a 
17250 \family sans
17251 Slide
17252 \family default
17253 , including everything that will appear on it, whether on the main slide
17254  or on the 
17255 \family sans
17256 Overlay
17257 \family default
17258 .
17259 \end_layout
17260
17261 \begin_layout Enumerate
17262 Before each figure or paragraph that will appear only on the 
17263 \family sans
17264 Overlay
17265 \family default
17266 , insert an 
17267 \family sans
17268 InvisibleText
17269 \family default
17270  environment.
17271  If necessary, insert a 
17272 \family sans
17273 VisibleText
17274 \family default
17275  environment after the 
17276 \family sans
17277 Overlay
17278 \family default
17279 -only text.
17280 \end_layout
17281
17282 \begin_layout Enumerate
17283 Start an 
17284 \family sans
17285 Overlay
17286 \family default
17287  immediately following the 
17288 \family sans
17289 Slide
17290 \family default
17291 .
17292 \end_layout
17293
17294 \begin_layout Enumerate
17295 Copy the contents of this 
17296 \family sans
17297 Slide
17298 \family default
17299  into the 
17300 \family sans
17301 Overlay
17302 \family default
17303 .
17304 \end_layout
17305
17306 \begin_layout Enumerate
17307 Within the 
17308 \family sans
17309 Overlay
17310 \family default
17311 , change all of the 
17312 \family sans
17313 InvisibleText
17314 \family default
17315  lines to 
17316 \family sans
17317 VisibleText
17318 \family default
17319  and vice-versa.
17320 \end_layout
17321
17322 \begin_layout Standard
17323 That's it.
17324  You've just made an 
17325 \family sans
17326 Overlay
17327 \family default
17328 .
17329 \end_layout
17330
17331 \begin_layout Standard
17332 There's one problem with the way I've designed the LyX 
17333 \family sans
17334 slides
17335 \family default
17336  class: you can't make text in the middle of a paragraph invisible, nor
17337  make text in the middle of an invisible paragraph visible again.
17338  To accomplish this feat, you'll need to use some inlined LaTeX codes.
17339 \begin_inset Foot
17340 status collapsed
17341
17342 \begin_layout Plain Layout
17343 The commands of interest are: 
17344 \end_layout
17345
17346 \begin_layout Itemize
17347
17348 \family typewriter
17349 {
17350 \backslash
17351 invisible \SpecialChar \ldots{}
17352  }
17353 \end_layout
17354
17355 \begin_layout Itemize
17356
17357 \family typewriter
17358 {
17359 \backslash
17360 visible \SpecialChar \ldots{}
17361  }
17362 \end_layout
17363
17364 \begin_layout Plain Layout
17365 \SpecialChar \ldots{}
17366 and need to be marked as TeX.
17367  The text whose 
17368 \begin_inset Quotes eld
17369 \end_inset
17370
17371 visibility
17372 \begin_inset Quotes erd
17373 \end_inset
17374
17375  you wish to change goes in between the brackets [and after the 
17376 \family typewriter
17377
17378 \backslash
17379 invisible
17380 \family default
17381  or 
17382 \family typewriter
17383
17384 \backslash
17385 visible
17386 \family default
17387  command].
17388  If you don't know how to mark text as TeX, see the appropriate section
17389  of the 
17390 \emph on
17391 User's Guide
17392 \emph default
17393 .
17394 \end_layout
17395
17396 \end_inset
17397
17398
17399 \end_layout
17400
17401 \begin_layout Subsubsection
17402 Using 
17403 \family sans
17404 Note
17405 \family default
17406  with 
17407 \family sans
17408 Slide
17409 \family default
17410
17411 \begin_inset CommandInset label
17412 LatexCommand label
17413 name "sec:slideNote"
17414
17415 \end_inset
17416
17417
17418 \end_layout
17419
17420 \begin_layout Standard
17421 Like an 
17422 \family sans
17423 Overlay
17424 \family default
17425 , a 
17426 \family sans
17427 Note
17428 \family default
17429  is associated with a 
17430 \begin_inset Quotes eld
17431 \end_inset
17432
17433 parent
17434 \begin_inset Quotes erd
17435 \end_inset
17436
17437  
17438 \family sans
17439 Slide
17440 \family default
17441 .
17442  Here, too, the LyX 
17443 \family sans
17444 slides
17445 \family default
17446  class provides visual cues.
17447  The label for a 
17448 \family sans
17449 Note
17450 \family default
17451  is shorter than that of a 
17452 \family sans
17453 Slide
17454 \family default
17455  [yet longer than that of an 
17456 \family sans
17457 Overlay
17458 \family default
17459 ] and, like the label of an 
17460 \family sans
17461 Overlay
17462 \family default
17463  is shockingly magenta.
17464  Additionally, the printed 
17465 \family sans
17466 Note
17467 \family default
17468  has the page number of its 
17469 \begin_inset Quotes eld
17470 \end_inset
17471
17472 parent
17473 \begin_inset Quotes erd
17474 \end_inset
17475
17476  
17477 \family sans
17478 Slide
17479 \family default
17480 , appended by 
17481 \begin_inset Quotes eld
17482 \end_inset
17483
17484
17485 \family typewriter
17486 -
17487 \family default
17488 1
17489 \begin_inset Quotes erd
17490 \end_inset
17491
17492
17493 \begin_inset Quotes eld
17494 \end_inset
17495
17496
17497 \family typewriter
17498 -
17499 \family default
17500 2
17501 \begin_inset Quotes erd
17502 \end_inset
17503
17504
17505 \begin_inset Quotes eld
17506 \end_inset
17507
17508
17509 \family typewriter
17510 -
17511 \family default
17512 3
17513 \begin_inset Quotes erd
17514 \end_inset
17515
17516 , etc.
17517  You can have multiple 
17518 \family sans
17519 Note
17520 \family default
17521 s associated with a single 
17522 \family sans
17523 Slide
17524 \family default
17525 , and, as with 
17526 \family sans
17527 Slide
17528 \family default
17529  and 
17530 \family sans
17531 Overlay
17532 \family default
17533 , you'll probably want to break up long 
17534 \family sans
17535 Note
17536 \family default
17537 s so that they fit on a single sheet of paper.
17538 \end_layout
17539
17540 \begin_layout Standard
17541 The purpose of a 
17542 \family sans
17543 Note
17544 \family default
17545  is obvious: it contains anything additional you might want to say about
17546  a 
17547 \family sans
17548 Slide
17549 \family default
17550 .
17551  It could also be used as a sheet of reminders for a particular 
17552 \family sans
17553 Slide
17554 \family default
17555 .
17556  In the case of the latter, you might want to make use of time markers.
17557  Currently, the LyX 
17558 \family sans
17559 slides
17560 \family default
17561  class has no 
17562 \begin_inset Quotes eld
17563 \end_inset
17564
17565 native
17566 \begin_inset Quotes erd
17567 \end_inset
17568
17569  support for time markers, a 
17570 \noun on
17571 SliTeX
17572 \noun default
17573  feature.
17574  So, you'll have to resort to using the LaTeX codes.
17575 \end_layout
17576
17577 \begin_layout Standard
17578 To use time markers, you'll need to specify the extra class option 
17579 \begin_inset Quotes eld
17580 \end_inset
17581
17582
17583 \family typewriter
17584 clock
17585 \family default
17586
17587 \begin_inset Quotes erd
17588 \end_inset
17589
17590  [see section
17591 \begin_inset space ~
17592 \end_inset
17593
17594
17595 \begin_inset CommandInset ref
17596 LatexCommand ref
17597 reference "sec:slidesetup"
17598
17599 \end_inset
17600
17601 ].
17602  This option turns on timing marks, which will appear in the lower-left-hand
17603  corner of every 
17604 \family sans
17605 Note
17606 \family default
17607  you generate.
17608  To set what appears in the time marker, you use the LaTeX commands 
17609 \begin_inset Quotes eld
17610 \end_inset
17611
17612
17613 \family typewriter
17614
17615 \backslash
17616 settime{}
17617 \family default
17618
17619 \begin_inset Quotes erd
17620 \end_inset
17621
17622  and 
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 .
17637  The arguments of both commands are time measured in seconds.
17638  
17639 \begin_inset Quotes eld
17640 \end_inset
17641
17642
17643 \family typewriter
17644
17645 \backslash
17646 settime{}
17647 \family default
17648
17649 \begin_inset Quotes erd
17650 \end_inset
17651
17652  sets the time marker to a given time.
17653  
17654 \begin_inset Quotes eld
17655 \end_inset
17656
17657
17658 \family typewriter
17659
17660 \backslash
17661 addtime{}
17662 \family default
17663
17664 \begin_inset Quotes erd
17665 \end_inset
17666
17667  increments the time marker by the specified amount.
17668  Using time markers and 
17669 \family sans
17670 Note
17671 \family default
17672 s in this fashion, you can remind yourself how much time to spend on a particula
17673
17674 \family sans
17675 Slide
17676 \family default
17677 .
17678 \end_layout
17679
17680 \begin_layout Standard
17681 There's one last feature to describe.
17682  Clearly, you'd like to print out all of your 
17683 \family sans
17684 Slide
17685 \family default
17686 s and 
17687 \family sans
17688 Overlay
17689 \family default
17690 s on transparencies while printing all of your 
17691 \family sans
17692 Note
17693 \family default
17694 s on plain paper.
17695  However, a 
17696 \family sans
17697 Note
17698 \family default
17699  
17700 \emph on
17701 must
17702 \emph default
17703  follow the 
17704 \family sans
17705 Slide
17706 \family default
17707  with which it is associated.
17708  What's a person to do?
17709 \end_layout
17710
17711 \begin_layout Standard
17712 Luckily, there are two LaTeX commands that allow you to select what to print
17713  out.
17714  Both must be placed into the preamble of your document.
17715  The command 
17716 \begin_inset Quotes eld
17717 \end_inset
17718
17719
17720 \family typewriter
17721
17722 \backslash
17723 onlyslides{
17724 \backslash
17725 slides}
17726 \family default
17727
17728 \begin_inset Quotes erd
17729 \end_inset
17730
17731  will cause the output to contain only the 
17732 \family sans
17733 Slide
17734 \family default
17735 s and 
17736 \family sans
17737 Overlay
17738 \family default
17739 s.
17740  Correspondingly, the command 
17741 \begin_inset Quotes eld
17742 \end_inset
17743
17744
17745 \family typewriter
17746
17747 \backslash
17748 onlynotes{
17749 \backslash
17750 notes}
17751 \family default
17752
17753 \begin_inset Quotes erd
17754 \end_inset
17755
17756  prevents the output of anything but 
17757 \family sans
17758 Note
17759 \family default
17760 s.
17761  I'd advise placing both commands in the preamble and initially comment
17762  both out.
17763  You can then preview your entire presentation as you write.
17764  When you're done writing, you can then uncomment one of the two to select
17765  what you want to print.
17766  I like to uncomment 
17767 \begin_inset Quotes eld
17768 \end_inset
17769
17770
17771 \family typewriter
17772
17773 \backslash
17774 onlyslides{
17775 \backslash
17776 slides}
17777 \family default
17778
17779 \begin_inset Quotes erd
17780 \end_inset
17781
17782  , print to a file with 
17783 \begin_inset Quotes eld
17784 \end_inset
17785
17786
17787 \family typewriter
17788 -slides
17789 \family default
17790
17791 \begin_inset Quotes erd
17792 \end_inset
17793
17794  in its name, comment it back out, then uncomment 
17795 \begin_inset Quotes eld
17796 \end_inset
17797
17798
17799 \family typewriter
17800
17801 \backslash
17802 onlynotes{
17803 \backslash
17804 notes}
17805 \family default
17806
17807 \begin_inset Quotes erd
17808 \end_inset
17809
17810  and print to a 
17811 \begin_inset Quotes eld
17812 \end_inset
17813
17814
17815 \family typewriter
17816 *-notes.ps
17817 \family default
17818
17819 \begin_inset Quotes erd
17820 \end_inset
17821
17822  file.
17823  I can then send either file to a printer, loading transparencies or plain
17824  paper as appropriate.
17825 \end_layout
17826
17827 \begin_layout Standard
17828 You can also provide other arguments to the 
17829 \begin_inset Quotes eld
17830 \end_inset
17831
17832
17833 \family typewriter
17834
17835 \backslash
17836 onlyslides{}
17837 \family default
17838
17839 \begin_inset Quotes erd
17840 \end_inset
17841
17842  and 
17843 \begin_inset Quotes eld
17844 \end_inset
17845
17846
17847 \family typewriter
17848
17849 \backslash
17850 onlynotes{}
17851 \family default
17852
17853 \begin_inset Quotes erd
17854 \end_inset
17855
17856  commands.
17857  See a good LaTeX book for details.
17858 \end_layout
17859
17860 \begin_layout Subsection
17861 The 
17862 \family sans
17863 slides
17864 \family default
17865  Class Template File
17866 \end_layout
17867
17868 \begin_layout Standard
17869 I have also provided a template file, 
17870 \begin_inset Quotes eld
17871 \end_inset
17872
17873
17874 \family typewriter
17875 slides.lyx
17876 \family default
17877
17878 \begin_inset Quotes erd
17879 \end_inset
17880
17881 , with the 
17882 \family sans
17883 slides
17884 \family default
17885  class.
17886  To use it, begin your new presentation with 
17887 \family sans
17888 \bar under
17889 F
17890 \bar default
17891 ile\SpecialChar \menuseparator
17892 New
17893 \begin_inset space ~
17894 \end_inset
17895
17896 from
17897 \begin_inset space ~
17898 \end_inset
17899
17900
17901 \bar under
17902 T
17903 \bar default
17904 emplate
17905 \family default
17906 .
17907  Your new LyX presentation file will contain an example 
17908 \family sans
17909 Slide
17910 \family default
17911  – 
17912 \family sans
17913 Overlay
17914 \family default
17915  – 
17916 \family sans
17917 Note
17918 \family default
17919  triplet.
17920  The 
17921 \family sans
17922 Slide
17923 \family default
17924  and 
17925 \family sans
17926 Overlay
17927 \family default
17928  additionally contain an example of the use of 
17929 \family sans
17930 InvisibleText
17931 \family default
17932  and 
17933 \family sans
17934 VisibleText
17935 \family default
17936 .
17937  Lastly, the preamble will contain:
17938 \end_layout
17939
17940 \begin_layout LyX-Code
17941 % Uncomment to print out only slides and overlays
17942 \end_layout
17943
17944 \begin_layout LyX-Code
17945 %
17946 \end_layout
17947
17948 \begin_layout LyX-Code
17949 %
17950 \backslash
17951 onlyslides{
17952 \backslash
17953 slides}
17954 \begin_inset Newline newline
17955 \end_inset
17956
17957  
17958 \end_layout
17959
17960 \begin_layout LyX-Code
17961 % Uncomment to print out only notes
17962 \end_layout
17963
17964 \begin_layout LyX-Code
17965 %
17966 \end_layout
17967
17968 \begin_layout LyX-Code
17969 %
17970 \backslash
17971 onlynotes{
17972 \backslash
17973 notes}
17974 \end_layout
17975
17976 \begin_layout Standard
17977 One final thing: I created this class to support the LaTeX2e 
17978 \begin_inset Quotes eld
17979 \end_inset
17980
17981
17982 \noun on
17983 SliTeX
17984 \noun default
17985  emulation
17986 \begin_inset Quotes erd
17987 \end_inset
17988
17989  class, one of the built-in LaTeX2e classes.
17990  Neither I nor the rest of the LyX Team endorse or oppose the use of this
17991  built-in slide class.
17992  It's here if you want it or need it.
17993  There exist other LaTeX2e classes for creating presentations, such as the
17994  
17995 \family sans
17996 Foils
17997 \family default
17998  class [see section
17999 \begin_inset space ~
18000 \end_inset
18001
18002
18003 \begin_inset CommandInset ref
18004 LatexCommand ref
18005 reference "sec:foiltex"
18006
18007 \end_inset
18008
18009 ] or the 
18010 \begin_inset Quotes eld
18011 \end_inset
18012
18013
18014 \family typewriter
18015 seminar
18016 \family default
18017
18018 \begin_inset Quotes erd
18019 \end_inset
18020
18021  package [present on some TeX distributions].
18022  The latter is not yet supported under LyX.
18023 \begin_inset Foot
18024 status collapsed
18025
18026 \begin_layout Plain Layout
18027 Perhaps you can take on the task\SpecialChar \ldots{}
18028
18029 \end_layout
18030
18031 \end_inset
18032
18033  I know nothing about these other classes.
18034  Try them out to see what sort of alternative they provide.
18035 \end_layout
18036
18037 \begin_layout Chapter
18038 LyX Features needing Extra Software
18039 \end_layout
18040
18041 \begin_layout Section
18042 Checking TeX
18043 \end_layout
18044
18045 \begin_layout Standard
18046 by 
18047 \noun on
18048 Asger Alstrup
18049 \end_layout
18050
18051 \begin_layout Subsection
18052 Introduction
18053 \end_layout
18054
18055 \begin_layout Standard
18056 If you have the 
18057 \family typewriter
18058 chktex
18059 \family default
18060  program installed
18061 \begin_inset Foot
18062 status collapsed
18063
18064 \begin_layout Plain Layout
18065
18066 \family typewriter
18067 chktex
18068 \family default
18069  is not yet available when you are using the LaTeX distribution MiKTeX.
18070 \end_layout
18071
18072 \end_inset
18073
18074 , you'll find in the 
18075 \family sans
18076 Tools
18077 \family default
18078  menu the entry: 
18079 \family sans
18080 Check
18081 \begin_inset space ~
18082 \end_inset
18083
18084 TeX
18085 \family default
18086 .
18087  You can get 
18088 \family typewriter
18089 chktex
18090 \family default
18091  it from CTAN, 
18092 \begin_inset CommandInset href
18093 LatexCommand href
18094 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18095
18096 \end_inset
18097
18098 .
18099 \end_layout
18100
18101 \begin_layout Standard
18102 The 
18103 \family sans
18104 ChkTeX
18105 \family default
18106  package is a program that was written by 
18107 \begin_inset Flex Noun
18108 status collapsed
18109
18110 \begin_layout Plain Layout
18111 Jens T.
18112 \begin_inset space ~
18113 \end_inset
18114
18115 Berger Thielemann
18116 \end_layout
18117
18118 \end_inset
18119
18120  in frustration because some constructs in LaTeX are sometimes non-intuitive,
18121  and easy to forget.
18122  The program runs over your LaTeX file, checks the integrity of the file,
18123  and flags some common errors.
18124  In other technical words, it is 
18125 \family typewriter
18126 lint
18127 \family default
18128  for LaTeX.
18129 \end_layout
18130
18131 \begin_layout Standard
18132 Well, what is a syntax checker doing in LyX which is supposed to produce
18133  correct LaTeX anyways? The answer is simple: Just as 
18134 \family typewriter
18135 Lint
18136 \family default
18137  not only checks the 
18138 \emph on
18139 syntax
18140 \emph default
18141  of C programs, but also does 
18142 \emph on
18143 semantic
18144 \emph default
18145  checks for type-errors, 
18146 \family sans
18147 ChkTeX
18148 \family default
18149  catches some common 
18150 \emph on
18151 typographic
18152 \emph default
18153  errors, in addition to the syntactical ones.
18154  Specifically, 
18155 \family sans
18156 ChkTeX
18157 \family default
18158  is capable of detecting several common errors, such as
18159 \end_layout
18160
18161 \begin_layout Itemize
18162 Ellipsis detection:
18163 \begin_inset Newline newline
18164 \end_inset
18165
18166 Use \SpecialChar \ldots{}
18167  instead of ...
18168 \end_layout
18169
18170 \begin_layout Itemize
18171 No space in front of/after parenthesis:
18172 \begin_inset Newline newline
18173 \end_inset
18174
18175 ( wrong spacing )
18176 \end_layout
18177
18178 \begin_layout Itemize
18179 Enforcement of normal space after common abbreviations:
18180 \begin_inset Newline newline
18181 \end_inset
18182
18183 e.
18184 \begin_inset space \thinspace{}
18185 \end_inset
18186
18187 g.
18188 \begin_inset space \space{}
18189 \end_inset
18190
18191 is too wide spacing.
18192 \end_layout
18193
18194 \begin_layout Itemize
18195 Enforcement of end-of-sentence space when the last sentence ends with a
18196  capital letter:
18197 \begin_inset Newline newline
18198 \end_inset
18199
18200 This is a TEST.
18201  And this is wrong spacing.
18202 \end_layout
18203
18204 \begin_layout Itemize
18205 Space in front of labels and similar commands:
18206 \begin_inset Newline newline
18207 \end_inset
18208
18209 The label should stick right up to the text to avoid falling to a wrong
18210  page.
18211  
18212 \begin_inset CommandInset label
18213 LatexCommand label
18214 name "sec:chktex"
18215
18216 \end_inset
18217
18218  
18219 \begin_inset Foot
18220 status collapsed
18221
18222 \begin_layout Plain Layout
18223 This footnote is in danger of falling off to a wrong page
18224 \end_layout
18225
18226 \end_inset
18227
18228  The label is separated too much.
18229 \end_layout
18230
18231 \begin_layout Itemize
18232 Space in front of references, instead of hard spaces:
18233 \begin_inset Newline newline
18234 \end_inset
18235
18236 In you are in bad luck, the text will break right between the referenced
18237  text and reference number, and that's a pity.
18238  See section 
18239 \begin_inset CommandInset ref
18240 LatexCommand ref
18241 reference "sec:chktex"
18242
18243 \end_inset
18244
18245 .
18246 \end_layout
18247
18248 \begin_layout Itemize
18249 Use of 
18250 \begin_inset Quotes eld
18251 \end_inset
18252
18253 x
18254 \begin_inset Quotes erd
18255 \end_inset
18256
18257  instead of 
18258 \begin_inset Formula $\times$
18259 \end_inset
18260
18261  between numbers:
18262 \begin_inset Newline newline
18263 \end_inset
18264
18265 2x2 looks cheap compared to 
18266 \begin_inset Formula $2\times2$
18267 \end_inset
18268
18269 .
18270 \end_layout
18271
18272 \begin_layout Standard
18273 and more \SpecialChar \ldots{}
18274  It is an invaluable tool when you are 
18275 \begin_inset Quotes eld
18276 \end_inset
18277
18278 finishing up
18279 \begin_inset Quotes erd
18280 \end_inset
18281
18282  your document before printing, and you should run it right after the obligatory
18283  spelling check, and before you go fine tuning the typesetting.
18284 \end_layout
18285
18286 \begin_layout Subsection
18287 How to use it
18288 \end_layout
18289
18290 \begin_layout Standard
18291 If you have the program installed, usage is as simple as choosing 
18292 \family sans
18293 Tools\SpecialChar \menuseparator
18294 Check
18295 \begin_inset space ~
18296 \end_inset
18297
18298 TeX
18299 \family default
18300 .
18301  This will make LyX generate a LaTeX file of your document, start 
18302 \family sans
18303 ChkTeX
18304 \family default
18305  to check it, and then make LyX insert 
18306 \begin_inset Quotes eld
18307 \end_inset
18308
18309 error boxes
18310 \begin_inset Quotes erd
18311 \end_inset
18312
18313  with the warnings from 
18314 \family sans
18315 ChkTeX
18316 \family default
18317 , if there were any.
18318  The warnings will be placed close to the point of the mistake, and you
18319  can quickly find them by using the 
18320 \family sans
18321 Navigate\SpecialChar \menuseparator
18322 Error
18323 \family default
18324  menu item, or the shortcut key 
18325 \family sans
18326 C-g
18327 \family default
18328  from the default 
18329 \family typewriter
18330 cua
18331 \family default
18332  bind file.
18333  Open the error boxes by clicking on them with the mouse, or use the shortcut
18334  key 
18335 \family sans
18336 C-i
18337 \family default
18338  from 
18339 \family typewriter
18340 cua
18341 \family default
18342  bindings, or the corresponding 
18343 \family sans
18344 C-o
18345 \family default
18346  for the alternate 
18347 \family typewriter
18348 emacs
18349 \family default
18350  bind file.
18351  Read the warning and correct the mistake, if it is a mistake.
18352  If you have trouble understanding what the warning is about, you can safely
18353  ignore it.
18354  Remember that there is a hidden layer between the document on screen and
18355  the technical details in invoking 
18356 \family sans
18357 ChkTeX
18358 \family default
18359 , and this gap can make some warnings seem arcane or just right down plain
18360  silly.
18361 \end_layout
18362
18363 \begin_layout Standard
18364 This document is an excellent testing bed for the feature, and it should
18365  provide quite a few warnings for you to fiddle with.
18366  Since computers are only so smart, expect most of the warnings to be false
18367  alarms, though.
18368 \end_layout
18369
18370 \begin_layout Subsection
18371 How to fine tune it
18372 \end_layout
18373
18374 \begin_layout Standard
18375 Sometimes, you'll find that 
18376 \family sans
18377 ChkTeX
18378 \family default
18379  makes more noise than suits your mood.
18380  Then you can choose not to use it, wait until your mood changes, or try
18381  to customize 
18382 \family sans
18383 ChkTeX
18384 \family default
18385  to get better along with you.
18386  Another choice in the most desperate situations is to use 
18387 \family sans
18388 View\SpecialChar \menuseparator
18389 Remove
18390 \begin_inset space ~
18391 \end_inset
18392
18393 All
18394 \begin_inset space ~
18395 \end_inset
18396
18397 Error
18398 \begin_inset space ~
18399 \end_inset
18400
18401 Boxes
18402 \family default
18403 , which will get rid of all warnings instantly.
18404 \end_layout
18405
18406 \begin_layout Standard
18407 Although 
18408 \family sans
18409 ChkTeX
18410 \family default
18411  
18412 \emph on
18413 is
18414 \emph default
18415  very configurable and extensible, you shouldn't expect to solve all problems
18416  with 
18417 \family sans
18418 ChkTeX
18419 \family default
18420  in LyX this way.
18421  Since LyX has to generate a somewhat special LaTeX file to be able to match
18422  the line numbers from the 
18423 \family sans
18424 ChkTeX
18425 \family default
18426  output
18427 \begin_inset Foot
18428 status collapsed
18429
18430 \begin_layout Plain Layout
18431 You can inspect the specific output from 
18432 \family sans
18433 chktex
18434 \family default
18435  by using 
18436 \family sans
18437 Edit\SpecialChar \menuseparator
18438 View
18439 \begin_inset space ~
18440 \end_inset
18441
18442 LaTeX
18443 \begin_inset space ~
18444 \end_inset
18445
18446 Log
18447 \family default
18448  right after a 
18449 \family sans
18450 chktex
18451 \family default
18452  run.
18453 \end_layout
18454
18455 \end_inset
18456
18457  to the internal document structure, some of the warnings will not seen
18458  to appear correctly.
18459  There are two things you can do about this:
18460 \end_layout
18461
18462 \begin_layout Itemize
18463 Fine tune the 
18464 \family sans
18465 ChkTeX
18466 \family default
18467  invocation command line in 
18468 \family sans
18469 Preferences
18470 \family default
18471  (tabs 
18472 \family sans
18473 Outputs
18474 \family default
18475
18476 \family sans
18477 Misc
18478 \family default
18479 ), or the global 
18480 \family sans
18481 ChkTeX
18482 \family default
18483  installation configuration file (usually with the file 
18484 \family typewriter
18485 chktexrc
18486 \family default
18487 ).
18488  See below to learn what warnings can be enabled and disabled on the command
18489  line.
18490  
18491 \end_layout
18492
18493 \begin_layout Itemize
18494 Export your document as a raw LaTeX file using 
18495 \family sans
18496 File\SpecialChar \menuseparator
18497 Export\SpecialChar \menuseparator
18498 LaTeX
18499 \family default
18500  and run 
18501 \family typewriter
18502 chktex
18503 \family default
18504  manually on that.
18505  Invoked in this way, it can be a hassle to find the corresponding place
18506  in the document inside LyX, but with a little patience, you should be able
18507  to do it.
18508 \end_layout
18509
18510 \begin_layout Standard
18511 Here follows the warning messages that can be enabled and disabled in 
18512 \family sans
18513 Preferences
18514 \family default
18515 .
18516  Use 
18517 \family typewriter
18518 -n#
18519 \family default
18520  to disable a warning, and 
18521 \family typewriter
18522 -w#
18523 \family default
18524  to enable a warning.
18525  The emphasized entries are disabled by default, because the default is
18526  "
18527 \family typewriter
18528 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
18529 \family default
18530 ".
18531 \end_layout
18532
18533 \begin_layout Standard
18534 Notice that you should only use the options that enable and disable warnings,
18535  because LyX relies on some of the other command line parameters to be set
18536  in a specific way to have a chance to communicate with 
18537 \family typewriter
18538 chktex
18539 \family default
18540 .
18541 \end_layout
18542
18543 \begin_layout Enumerate
18544
18545 \size small
18546 \emph on
18547 Command terminated with space.
18548 \end_layout
18549
18550 \begin_layout Enumerate
18551
18552 \size small
18553 Non-breaking space (
18554 \begin_inset Quotes eld
18555 \end_inset
18556
18557
18558 \family typewriter
18559 ~
18560 \family default
18561
18562 \begin_inset Quotes erd
18563 \end_inset
18564
18565 ) should have been used.
18566 \end_layout
18567
18568 \begin_layout Enumerate
18569
18570 \size small
18571 \emph on
18572 You should enclose the previous parenthesis with 
18573 \begin_inset Quotes eld
18574 \end_inset
18575
18576
18577 \family typewriter
18578 {}
18579 \family default
18580
18581 \begin_inset Quotes erd
18582 \end_inset
18583
18584 .
18585 \end_layout
18586
18587 \begin_layout Enumerate
18588
18589 \size small
18590 Italic correction (
18591 \begin_inset Quotes eld
18592 \end_inset
18593
18594
18595 \family typewriter
18596
18597 \backslash
18598 /
18599 \family default
18600
18601 \begin_inset Quotes erd
18602 \end_inset
18603
18604 ) found in non-italic buffer.
18605 \end_layout
18606
18607 \begin_layout Enumerate
18608
18609 \size small
18610 Italic correction (
18611 \begin_inset Quotes eld
18612 \end_inset
18613
18614
18615 \family typewriter
18616
18617 \backslash
18618 /
18619 \family default
18620
18621 \begin_inset Quotes erd
18622 \end_inset
18623
18624 ) found more than once.
18625 \end_layout
18626
18627 \begin_layout Enumerate
18628
18629 \size small
18630 \emph on
18631 No italic correction (
18632 \begin_inset Quotes eld
18633 \end_inset
18634
18635
18636 \family typewriter
18637
18638 \backslash
18639 /
18640 \family default
18641
18642 \begin_inset Quotes erd
18643 \end_inset
18644
18645 ) found.
18646 \end_layout
18647
18648 \begin_layout Enumerate
18649
18650 \size small
18651 Accent command 
18652 \begin_inset Quotes eld
18653 \end_inset
18654
18655
18656 \family typewriter
18657 cmd
18658 \family default
18659
18660 \begin_inset Quotes erd
18661 \end_inset
18662
18663  needs use of 
18664 \begin_inset Quotes eld
18665 \end_inset
18666
18667
18668 \family typewriter
18669 cmd
18670 \family default
18671
18672 \begin_inset Quotes erd
18673 \end_inset
18674
18675 .
18676 \end_layout
18677
18678 \begin_layout Enumerate
18679
18680 \size small
18681 Wrong length of dash may have been used.
18682 \end_layout
18683
18684 \begin_layout Enumerate
18685
18686 \size small
18687 \emph on
18688 \begin_inset Quotes eld
18689 \end_inset
18690
18691
18692 \family typewriter
18693 %s
18694 \family default
18695
18696 \begin_inset Quotes erd
18697 \end_inset
18698
18699  expected, found 
18700 \begin_inset Quotes eld
18701 \end_inset
18702
18703
18704 \family typewriter
18705 %s
18706 \family default
18707
18708 \begin_inset Quotes erd
18709 \end_inset
18710
18711 .
18712 \end_layout
18713
18714 \begin_layout Enumerate
18715
18716 \size small
18717 Solo 
18718 \begin_inset Quotes eld
18719 \end_inset
18720
18721
18722 \family typewriter
18723 %s
18724 \family default
18725
18726 \begin_inset Quotes erd
18727 \end_inset
18728
18729  found.
18730 \end_layout
18731
18732 \begin_layout Enumerate
18733
18734 \size small
18735 You should use 
18736 \begin_inset Quotes eld
18737 \end_inset
18738
18739
18740 \family typewriter
18741 %s
18742 \family default
18743
18744 \begin_inset Quotes erd
18745 \end_inset
18746
18747  to achieve an ellipsis.
18748 \end_layout
18749
18750 \begin_layout Enumerate
18751
18752 \size small
18753 Inter-word spacing (
18754 \begin_inset Quotes eld
18755 \end_inset
18756
18757
18758 \family typewriter
18759
18760 \backslash
18761
18762 \family default
18763  
18764 \begin_inset Quotes eld
18765 \end_inset
18766
18767 ) should perhaps be used.
18768 \end_layout
18769
18770 \begin_layout Enumerate
18771
18772 \size small
18773 Inter-sentence spacing (
18774 \begin_inset Quotes eld
18775 \end_inset
18776
18777
18778 \family typewriter
18779
18780 \backslash
18781 @
18782 \family default
18783
18784 \begin_inset Quotes erd
18785 \end_inset
18786
18787 ) should perhaps be used.
18788 \end_layout
18789
18790 \begin_layout Enumerate
18791
18792 \size small
18793 Could not find argument for command.
18794 \end_layout
18795
18796 \begin_layout Enumerate
18797
18798 \size small
18799 No match found for 
18800 \begin_inset Quotes eld
18801 \end_inset
18802
18803
18804 \family typewriter
18805 %s
18806 \family default
18807
18808 \begin_inset Quotes erd
18809 \end_inset
18810
18811 .
18812 \end_layout
18813
18814 \begin_layout Enumerate
18815
18816 \size small
18817 Math mode still on at end of LaTeX file.
18818 \end_layout
18819
18820 \begin_layout Enumerate
18821
18822 \size small
18823 Number of 
18824 \begin_inset Quotes eld
18825 \end_inset
18826
18827
18828 \family typewriter
18829 char
18830 \family default
18831
18832 \begin_inset Quotes erd
18833 \end_inset
18834
18835  doesn't match the number of 
18836 \begin_inset Quotes eld
18837 \end_inset
18838
18839
18840 \family typewriter
18841 char
18842 \family default
18843
18844 \begin_inset Quotes erd
18845 \end_inset
18846
18847 .
18848 \end_layout
18849
18850 \begin_layout Enumerate
18851
18852 \size small
18853 You should use either 
18854 \family typewriter
18855
18856 \begin_inset Quotes eld
18857 \end_inset
18858
18859
18860 \family default
18861  or 
18862 \family typewriter
18863
18864 \begin_inset Quotes erd
18865 \end_inset
18866
18867
18868 \family default
18869  as an alternative to 
18870 \begin_inset Quotes eld
18871 \end_inset
18872
18873
18874 \family typewriter
18875 "
18876 \family default
18877
18878 \begin_inset Quotes erd
18879 \end_inset
18880
18881 .
18882 \end_layout
18883
18884 \begin_layout Enumerate
18885
18886 \size small
18887 You should use "
18888 \family typewriter
18889 '
18890 \family default
18891 " (ASCII 39) instead of "
18892 \family typewriter
18893 ´
18894 \family default
18895 " (ASCII 180).
18896 \end_layout
18897
18898 \begin_layout Enumerate
18899
18900 \size small
18901 User-specified pattern found.
18902 \end_layout
18903
18904 \begin_layout Enumerate
18905
18906 \size small
18907 This command might not be intended.
18908 \end_layout
18909
18910 \begin_layout Enumerate
18911
18912 \size small
18913 \emph on
18914 Comment displayed.
18915 \end_layout
18916
18917 \begin_layout Enumerate
18918
18919 \size small
18920 Either 
18921 \family typewriter
18922 ''
18923 \backslash
18924 ,'
18925 \family default
18926  or 
18927 \family typewriter
18928 '
18929 \backslash
18930 ,''
18931 \family default
18932  will look better.
18933 \end_layout
18934
18935 \begin_layout Enumerate
18936
18937 \size small
18938 Delete this space to maintain correct page references.
18939 \end_layout
18940
18941 \begin_layout Enumerate
18942
18943 \size small
18944 \emph on
18945 You might wish to put this between a pair of 
18946 \begin_inset Quotes eld
18947 \end_inset
18948
18949
18950 \family typewriter
18951 {}
18952 \family default
18953
18954 \begin_inset Quotes erd
18955 \end_inset
18956
18957 .
18958 \end_layout
18959
18960 \begin_layout Enumerate
18961
18962 \size small
18963 You ought to remove spaces in front of punctuation.
18964 \end_layout
18965
18966 \begin_layout Enumerate
18967
18968 \size small
18969 Could not execute LaTeX command.
18970 \end_layout
18971
18972 \begin_layout Enumerate
18973
18974 \size small
18975 Don't use 
18976 \family typewriter
18977
18978 \backslash
18979 /
18980 \family default
18981  in front of small punctuation.
18982 \end_layout
18983
18984 \begin_layout Enumerate
18985
18986 \family typewriter
18987 \size small
18988 $
18989 \backslash
18990 times$
18991 \family default
18992  may look prettier here.
18993 \end_layout
18994
18995 \begin_layout Enumerate
18996
18997 \size small
18998 \emph on
18999 Multiple spaces detected in output.
19000 \end_layout
19001
19002 \begin_layout Enumerate
19003
19004 \size small
19005 This text may be ignored.
19006 \end_layout
19007
19008 \begin_layout Enumerate
19009
19010 \size small
19011 Use 
19012 \family typewriter
19013
19014 \begin_inset Quotes eld
19015 \end_inset
19016
19017
19018 \family default
19019  to begin quotation, not 
19020 \family typewriter
19021 '
19022 \family default
19023 .
19024 \end_layout
19025
19026 \begin_layout Enumerate
19027
19028 \size small
19029 Use 
19030 \family typewriter
19031 '
19032 \family default
19033  to end quotation, not 
19034 \family typewriter
19035
19036 \begin_inset Quotes eld
19037 \end_inset
19038
19039
19040 \family default
19041 .
19042 \end_layout
19043
19044 \begin_layout Enumerate
19045
19046 \size small
19047 Don't mix quotes.
19048 \end_layout
19049
19050 \begin_layout Enumerate
19051
19052 \size small
19053 You should perhaps use 
19054 \begin_inset Quotes eld
19055 \end_inset
19056
19057
19058 \family typewriter
19059 cmd
19060 \family default
19061
19062 \begin_inset Quotes erd
19063 \end_inset
19064
19065  instead.
19066 \end_layout
19067
19068 \begin_layout Enumerate
19069
19070 \size small
19071 You should put a space in front of/after parenthesis.
19072 \end_layout
19073
19074 \begin_layout Enumerate
19075
19076 \size small
19077 You should avoid spaces in front of/after parenthesis.
19078 \end_layout
19079
19080 \begin_layout Enumerate
19081
19082 \size small
19083 \emph on
19084 You should not use punctuation in front of/after quotes.
19085 \end_layout
19086
19087 \begin_layout Enumerate
19088
19089 \size small
19090 Double space found.
19091 \end_layout
19092
19093 \begin_layout Enumerate
19094
19095 \size small
19096 You should put punctuation outside inner/inside display math mode.
19097 \end_layout
19098
19099 \begin_layout Enumerate
19100
19101 \size small
19102 You ought to not use primitive TeX in LaTeX code.
19103 \end_layout
19104
19105 \begin_layout Enumerate
19106
19107 \size small
19108 You should remove spaces in front of 
19109 \begin_inset Quotes eld
19110 \end_inset
19111
19112
19113 \family typewriter
19114 %s
19115 \family default
19116
19117 \begin_inset Quotes erd
19118 \end_inset
19119
19120
19121 \end_layout
19122
19123 \begin_layout Enumerate
19124
19125 \size small
19126 \begin_inset Quotes eld
19127 \end_inset
19128
19129
19130 \family typewriter
19131 %s
19132 \family default
19133
19134 \begin_inset Quotes erd
19135 \end_inset
19136
19137  is normally not followed by 
19138 \begin_inset Quotes eld
19139 \end_inset
19140
19141
19142 \family typewriter
19143 %c
19144 \family default
19145
19146 \begin_inset Quotes erd
19147 \end_inset
19148
19149 .
19150 \end_layout
19151
19152 \begin_layout Standard
19153 In later versions of LyX, we hope to provide a more complete interface to
19154  this tool (and it's smaller cousin 
19155 \family typewriter
19156 lacheck
19157 \family default
19158 ) to exploit the full power of it.
19159  But it's not exactly useless as it is now: go try it on one of your existing
19160  documents of a certain length and be surprised.
19161 \end_layout
19162
19163 \begin_layout Section
19164 Version Control in LyX
19165 \end_layout
19166
19167 \begin_layout Standard
19168 by
19169 \noun on
19170  Lars Gullik Bjønnes 
19171 \noun default
19172 and 
19173 \noun on
19174 Pavel Sanda
19175 \end_layout
19176
19177 \begin_layout Subsection
19178 Introduction
19179 \end_layout
19180
19181 \begin_layout Standard
19182 A friend of mine wanted to try LyX for a group project.
19183  When he didn't find support for version control or file locking, he dropped
19184  it.
19185  This angered me a bit, so I thought that I should at least make support
19186  for RCS (with the possibility of CVS and/or SCCS as a future improvement.)
19187  This has been done.
19188  LyX now supports some of the most basic RCS/CVS/SVN commands.
19189  If you need something a bit more sophisticated you will have to do that
19190  manually in a terminal.
19191 \end_layout
19192
19193 \begin_layout Standard
19194 Before you begin to use the version control features in LyX, you should
19195  be familiar with RCS/CVS/SVN usage before start using it under LyX.
19196  Also note that CVS support is not as good as subversion support so we advice
19197  using SVN instead.
19198  Good place to start with Subversion is SVN Book
19199 \begin_inset Foot
19200 status open
19201
19202 \begin_layout Plain Layout
19203 \begin_inset CommandInset href
19204 LatexCommand href
19205 target "http://svnbook.red-bean.com/"
19206
19207 \end_inset
19208
19209
19210 \end_layout
19211
19212 \end_inset
19213
19214 .
19215  In case of RCS you should read 
19216 \begin_inset Quotes eld
19217 \end_inset
19218
19219 rcsintro
19220 \begin_inset Quotes erd
19221 \end_inset
19222
19223  (a man file, read it with 
19224 \family typewriter
19225 man rcsintro
19226 \family default
19227 ).
19228  This file describes all the basic features of RCS.
19229  You should especially notice the comment about a RCS directory, and the
19230  notion of a master RCS file (the file ending in 
19231 \family typewriter
19232 ,v
19233 \family default
19234 ).
19235 \end_layout
19236
19237 \begin_layout Standard
19238 The implementation in LyX assumes a recent version of the GNU RCS or CVS/SVN
19239  package—no guarantees are made for older versions.
19240  Most of the log messages are not currently displayed after operations —
19241  you can check them in Messages pane if unsure.
19242 \end_layout
19243
19244 \begin_layout Standard
19245 For introducing your own external commands consult vc-command in the manual
19246  of LyX functions.
19247 \end_layout
19248
19249 \begin_layout Subsection
19250 RCS commands in LyX
19251 \end_layout
19252
19253 \begin_layout Standard
19254 The following sections describe the RCS commands supported by LyX.
19255  You can find them in the 
19256 \family sans
19257 File\SpecialChar \menuseparator
19258 Version
19259 \begin_inset space ~
19260 \end_inset
19261
19262 Control
19263 \family default
19264  submenu.
19265  LyX was tested against RCS 5.7.
19266 \end_layout
19267
19268 \begin_layout Subsubsection
19269
19270 \family sans
19271 Register
19272 \end_layout
19273
19274 \begin_layout Standard
19275 If your document is not under revision control, this is the only item shown
19276  in the menu.
19277  And if it is under revision control, the 
19278 \family sans
19279 Register
19280 \family default
19281  item is not visible.
19282  
19283 \end_layout
19284
19285 \begin_layout Standard
19286 This command registers your document with RCS (unless you are under the
19287  directory managed by CVS)\SpecialChar \@.
19288  You are asked interactively to supply an initial
19289  description of the document.
19290  The document is now set in Read-Only mode and you have to 
19291 \family sans
19292 Check
19293 \begin_inset space ~
19294 \end_inset
19295
19296 Out
19297 \begin_inset space ~
19298 \end_inset
19299
19300 For
19301 \begin_inset space ~
19302 \end_inset
19303
19304 Edit
19305 \family default
19306 , before making any changes to it.
19307  A document under revision control has a 
19308 \begin_inset Quotes eld
19309 \end_inset
19310
19311 [RCS:<version> <locker>]
19312 \begin_inset Quotes erd
19313 \end_inset
19314
19315  item tagged to the filename in the minibuffer.
19316 \end_layout
19317
19318 \begin_layout Standard
19319 RCS command that is run: 
19320 \family typewriter
19321 ci -q -u -i -t-"<initial description>" <file-name>
19322 \end_layout
19323
19324 \begin_layout Standard
19325 Read 
19326 \family typewriter
19327 man ci
19328 \family default
19329  to understand the switches.
19330  
19331 \end_layout
19332
19333 \begin_layout Subsubsection
19334
19335 \family sans
19336 Check In Changes
19337 \end_layout
19338
19339 \begin_layout Standard
19340 When you are finished editing a file, you check in your changes.
19341  When you do this, you are asked for a description of the changes.
19342  This is stored in the history log.
19343  The version number is bumped, your changes are applied to the master RCS
19344  file, the document is unlocked and set to Read-Only mode.
19345  
19346 \end_layout
19347
19348 \begin_layout Standard
19349 RCS command: 
19350 \family typewriter
19351 ci -q -u -m"<description>" <file-name>
19352 \end_layout
19353
19354 \begin_layout Subsubsection
19355
19356 \family sans
19357 Check Out For Edit
19358 \end_layout
19359
19360 \begin_layout Standard
19361 By doing this you lock the document so that only you can edit it.
19362  This will also make the document Read-Write only for you.
19363  You will usually continue editing for a while and when you are finished
19364  you check in your changes.
19365  The status line is changed to reflect that you have locked the file.
19366  
19367 \end_layout
19368
19369 \begin_layout Standard
19370 RCS command: 
19371 \family typewriter
19372 co -q -l <file-name>
19373 \end_layout
19374
19375 \begin_layout Subsubsection
19376
19377 \family sans
19378 Revert To Repository Version
19379 \end_layout
19380
19381 \begin_layout Standard
19382 This will discard all changes made to the document since the last check
19383  in.
19384  You get a warning before changes are discarded.
19385 \end_layout
19386
19387 \begin_layout Standard
19388 RCS command: 
19389 \family typewriter
19390 co -f -u<version> <file-name>
19391 \end_layout
19392
19393 \begin_layout Subsubsection
19394
19395 \family sans
19396 Undo Last Checkin
19397 \end_layout
19398
19399 \begin_layout Standard
19400 This makes as if the last check in never happened.
19401  No changes are made to the document loaded into LyX, but the last version
19402  is removed from the master RCS file.
19403  
19404 \end_layout
19405
19406 \begin_layout Standard
19407 RCS command: 
19408 \family typewriter
19409 rcs -o<version> <file-name>
19410 \end_layout
19411
19412 \begin_layout Subsubsection
19413
19414 \family sans
19415 Show History
19416 \end_layout
19417
19418 \begin_layout Standard
19419 This shows the complete history of the RCS document.
19420  The output of 
19421 \family typewriter
19422 rlog <file-name>
19423 \family default
19424  is shown in a browser.
19425  See 
19426 \family typewriter
19427 man rlog
19428 \family default
19429  for more info.
19430 \end_layout
19431
19432 \begin_layout Subsubsection
19433 Revision info
19434 \end_layout
19435
19436 \begin_layout Standard
19437 LyX supports RCS version number information (only), see 
19438 \begin_inset CommandInset ref
19439 LatexCommand ref
19440 reference "sub:VCS-Revision-Information"
19441
19442 \end_inset
19443
19444  for details.
19445 \end_layout
19446
19447 \begin_layout Subsection
19448 CVS commands in LyX
19449 \end_layout
19450
19451 \begin_layout Standard
19452 A subset of CVS operations is supported by LyX.
19453  You can find the commands in the 
19454 \family sans
19455 File\SpecialChar \menuseparator
19456 Version
19457 \begin_inset space ~
19458 \end_inset
19459
19460 Control
19461 \family default
19462  submenu.
19463  The version control system SVN is more powerful, so please use it instead
19464  of CVS if possible.
19465 \end_layout
19466
19467 \begin_layout Subsubsection
19468
19469 \family sans
19470 General CVS usage
19471 \end_layout
19472
19473 \begin_layout Standard
19474 If you start from scratch with CVS you have to create your repository and
19475  checkout the working copy with external tools.
19476  If you're using a client-server setup you may need to login before doing
19477  the first repository checkout.
19478 \end_layout
19479
19480 \begin_layout Standard
19481 If your documents are under revision control and others are using the same
19482  repository problems arise when different changes to the same document at
19483  the same location happen.
19484  Standard CVS repositories doesn't operate with a file locking mechanism.
19485  This may be surprising, but conflicts only occur if people disagree on
19486  the proper content of the same part of a document.
19487  So, if co-workers are used to communicate regularly, these conflicts occur
19488  rarely.
19489  If they don't communicate they have a fundamental problem anyway.
19490  Nevertheless some people like to work with so called 
19491 \begin_inset Quotes eld
19492 \end_inset
19493
19494 reserved checkouts
19495 \begin_inset Quotes erd
19496 \end_inset
19497
19498 .
19499  If they do so the working copy of all files is readonly when checked out
19500  first and the user starts editing after using a special command to make
19501  the working copy writable.
19502  When the changes are checked in the working copy returns to readonly state.
19503  With LyX one has to edit the 
19504 \begin_inset Flex Code
19505 status collapsed
19506
19507 \begin_layout Plain Layout
19508 .cvsrc
19509 \end_layout
19510
19511 \end_inset
19512
19513  file and add the line 
19514 \begin_inset Flex Code
19515 status collapsed
19516
19517 \begin_layout Plain Layout
19518 cvs -r
19519 \end_layout
19520
19521 \end_inset
19522
19523  to work with reserved checkouts.
19524  The benefit is the possibility to see who is using a writable copy of some
19525  document.
19526  It's not guaranteed only one user makes a copy writable.
19527 \end_layout
19528
19529 \begin_layout Standard
19530 LyX tries to guess if you're using reserved or non-reserved checkouts.
19531  If your working copy is readonly or it is writable and an additional copy
19532  of your document exists in the CVS/Base sub-directory a reserved otherwise
19533  a non-reserved checkout is assumed.
19534  When a reserved checkout is detected you have to use 
19535 \begin_inset Flex MenuItem
19536 status collapsed
19537
19538 \begin_layout Plain Layout
19539 Check Out
19540 \end_layout
19541
19542 \end_inset
19543
19544  to make your working copy writable if it's readonly.
19545  After doing so the 
19546 \begin_inset Flex MenuItem
19547 status collapsed
19548
19549 \begin_layout Plain Layout
19550 Check In
19551 \end_layout
19552
19553 \end_inset
19554
19555  operation is possible and that makes your working copy readonly again after
19556  transferring your changes to the repository.
19557 \end_layout
19558
19559 \begin_layout Standard
19560 More information about CVS can be found here 
19561 \begin_inset Flex URL
19562 status collapsed
19563
19564 \begin_layout Plain Layout
19565
19566 http://www.nongnu.org/cvs
19567 \end_layout
19568
19569 \end_inset
19570
19571  and here 
19572 \begin_inset Flex URL
19573 status collapsed
19574
19575 \begin_layout Plain Layout
19576
19577 http://ximbiot.com/cvs
19578 \end_layout
19579
19580 \end_inset
19581
19582 .
19583 \end_layout
19584
19585 \begin_layout Standard
19586 Read 
19587 \family typewriter
19588 man cvs
19589 \family default
19590  to understand the sub-commands and the switches mentioned below.
19591 \end_layout
19592
19593 \begin_layout Subsubsection
19594
19595 \family sans
19596 Register
19597 \end_layout
19598
19599 \begin_layout Standard
19600 If your document is not under revision control, this is the only item shown
19601  in the menu.
19602  And if it is under revision control, the 
19603 \family sans
19604 \bar under
19605 R
19606 \bar default
19607 egister
19608 \family default
19609  item is not visible.
19610  
19611 \end_layout
19612
19613 \begin_layout Standard
19614 This command registers in CVS your document 
19615 \begin_inset Flex Strong
19616 status collapsed
19617
19618 \begin_layout Plain Layout
19619
19620 \emph on
19621 only
19622 \end_layout
19623
19624 \end_inset
19625
19626  in case you have already the documents directory under CVS control (in
19627  particular 
19628 \family typewriter
19629 CVS/Entries
19630 \family default
19631  file exists).
19632  This means you have to create or checkout the archive by yourself using
19633  external tools.
19634  (In case you forget that step LyX registers the document with RCS.)
19635 \end_layout
19636
19637 \begin_layout Standard
19638 Then you are asked interactively to supply an initial description of the
19639  document.
19640  Don't forget that registered file is not yet checked in.
19641 \end_layout
19642
19643 \begin_layout Standard
19644 CVS command that is run: 
19645 \family typewriter
19646 cvs -q add -m"<entered message>" "<file-name>"
19647 \end_layout
19648
19649 \begin_layout Standard
19650 The term 
19651 \family typewriter
19652 "<file-name>"
19653 \family default
19654  above and for all other CVS commands is an abbreviation for 
19655 \begin_inset Quotes eld
19656 \end_inset
19657
19658 change the current working directory to file location and use the file name
19659  without path component as argument
19660 \begin_inset Quotes erd
19661 \end_inset
19662
19663 .
19664 \end_layout
19665
19666 \begin_layout Subsubsection
19667
19668 \family sans
19669 Check In Changes
19670 \end_layout
19671
19672 \begin_layout Standard
19673 When you are finished editing a file, you commit your changes.
19674  When you do this and you had changed the document, you are asked for a
19675  description of the changes.
19676  After that changes are written to the repository.
19677  In case you didn't change the document and a reserved checkout is detected
19678  the reservation made on 
19679 \begin_inset Flex MenuItem
19680 status collapsed
19681
19682 \begin_layout Plain Layout
19683 Check Out
19684 \end_layout
19685
19686 \end_inset
19687
19688  is undone.
19689 \end_layout
19690
19691 \begin_layout Labeling
19692 \labelwidthstring 00.00.0000
19693 CVS
19694 \begin_inset space ~
19695 \end_inset
19696
19697 command: 
19698 \begin_inset space ~
19699 \end_inset
19700
19701
19702 \begin_inset Newline newline
19703 \end_inset
19704
19705
19706 \begin_inset Flex Code
19707 status collapsed
19708
19709 \begin_layout Plain Layout
19710 cvs 
19711 \family typewriter
19712 -q commit -m"<description>" "<file-name>"
19713 \end_layout
19714
19715 \end_inset
19716
19717  or
19718 \begin_inset Newline newline
19719 \end_inset
19720
19721
19722 \begin_inset Flex Code
19723 status collapsed
19724
19725 \begin_layout Plain Layout
19726 cvs -q unedit 
19727 \family typewriter
19728 "<file-name>"
19729 \end_layout
19730
19731 \end_inset
19732
19733
19734 \end_layout
19735
19736 \begin_layout Subsubsection
19737
19738 \family sans
19739 Check Out Changes
19740 \end_layout
19741
19742 \begin_layout Standard
19743 When you are sharing a repository with others, you may have to incorporate
19744  their changes into your working copy.
19745 \end_layout
19746
19747 \begin_layout Standard
19748 CVS command: 
19749 \family typewriter
19750 cvs -q update "<file-name>"
19751 \end_layout
19752
19753 \begin_layout Standard
19754 If a readonly checkout is detected the working copy is made writable and
19755  reserved.
19756 \end_layout
19757
19758 \begin_layout Standard
19759 CVS command: 
19760 \family typewriter
19761 cvs -q edit "<file-name>"
19762 \end_layout
19763
19764 \begin_layout Subsubsection
19765
19766 \family sans
19767 Revert To Repository Version
19768 \end_layout
19769
19770 \begin_layout Standard
19771 This will discard all changes made to the document since the last check
19772  in.
19773  You get a warning before changes are discarded.
19774  Firstly the file is deleted, secondly CVS update command is run.
19775 \end_layout
19776
19777 \begin_layout Standard
19778 CVS command: 
19779 \family typewriter
19780 cvs -q update "<file-name>"
19781 \end_layout
19782
19783 \begin_layout Standard
19784 If a reserved checkout is detected and the working copy has no changes only
19785  the reservation is undone.
19786 \end_layout
19787
19788 \begin_layout Standard
19789 CVS command: 
19790 \family typewriter
19791 cvs -q unedit "<file-name>"
19792 \end_layout
19793
19794 \begin_layout Subsubsection
19795 Update of the local directory checkout from repository
19796 \end_layout
19797
19798 \begin_layout Standard
19799 Once your documents gets more complex, containing sub-documents and pictures,
19800  including external 
19801 \begin_inset Flex Code
19802 status collapsed
19803
19804 \begin_layout Plain Layout
19805 .tex
19806 \end_layout
19807
19808 \end_inset
19809
19810  files and so on using version control becomes more complicated.
19811  LyX supports updating the whole tree in which resides the document.
19812  This become especially useful once you cooperate with people which neither
19813  have detailed knowledge about CVS usage nor they have ambition to commit
19814  additional material to the repository.
19815  You have to organize the files structure so that all external files are
19816  in the same directory or subdirectories of the document.
19817  It's good practice anyway to store multipart documents in an extra directory.
19818 \end_layout
19819
19820 \begin_layout Standard
19821 The 
19822 \begin_inset Flex Code
19823 status collapsed
19824
19825 \begin_layout Plain Layout
19826 Update local directory from repository
19827 \end_layout
19828
19829 \end_inset
19830
19831  command updates the whole directory.
19832  If local changes are detected user is warned before update starts.
19833  In case of merge conflicts both versions of the conflicting document parts
19834  are placed in the final document.
19835  You have to review and correct the result of the merge.
19836  You'll find the conflicts enclosed in pairs of 
19837 \begin_inset Flex Code
19838 status collapsed
19839
19840 \begin_layout Plain Layout
19841 <<<<<<<
19842 \end_layout
19843
19844 \end_inset
19845
19846  and 
19847 \begin_inset Flex Code
19848 status collapsed
19849
19850 \begin_layout Plain Layout
19851 >>>>>>>
19852 \end_layout
19853
19854 \end_inset
19855
19856  separated by 
19857 \begin_inset Flex Code
19858 status collapsed
19859
19860 \begin_layout Plain Layout
19861 =======
19862 \end_layout
19863
19864 \end_inset
19865
19866 .
19867  The first part is your version as before the update operation with the
19868  document name prepended.
19869  The second one is the repository version with the version number after
19870  the sequence of 
19871 \begin_inset Flex Code
19872 status collapsed
19873
19874 \begin_layout Plain Layout
19875 >
19876 \end_layout
19877
19878 \end_inset
19879
19880  signs.
19881 \end_layout
19882
19883 \begin_layout Labeling
19884 \labelwidthstring 00.00.0000
19885 CVS
19886 \begin_inset space ~
19887 \end_inset
19888
19889 commands: 
19890 \begin_inset space ~
19891 \end_inset
19892
19893
19894 \begin_inset Newline newline
19895 \end_inset
19896
19897
19898 \begin_inset Flex Code
19899 status collapsed
19900
19901 \begin_layout Plain Layout
19902 cd $path; cvs diff 
19903 \family typewriter
19904 "."
19905 \end_layout
19906
19907 \end_inset
19908
19909  (Ask if changes are detected.)
19910 \begin_inset Newline newline
19911 \end_inset
19912
19913
19914 \begin_inset Flex Code
19915 status collapsed
19916
19917 \begin_layout Plain Layout
19918 cd $path; cvs -q update 
19919 \family typewriter
19920 "."
19921 \end_layout
19922
19923 \end_inset
19924
19925
19926 \end_layout
19927
19928 \begin_layout Standard
19929 where 
19930 \begin_inset Flex Code
19931 status collapsed
19932
19933 \begin_layout Plain Layout
19934 $path
19935 \end_layout
19936
19937 \end_inset
19938
19939  stands for the path to the document.
19940 \end_layout
19941
19942 \begin_layout Subsubsection
19943
19944 \family sans
19945 Show History
19946 \end_layout
19947
19948 \begin_layout Standard
19949 This shows the complete history of the CVS document.
19950  The output of 
19951 \family typewriter
19952 cvs log "<file-name>"
19953 \family default
19954  is shown in a browser.
19955 \end_layout
19956
19957 \begin_layout Subsection
19958 SVN commands in LyX
19959 \end_layout
19960
19961 \begin_layout Standard
19962 SVN is now partially supported by LyX.
19963  You can find the commands in the 
19964 \family sans
19965 File\SpecialChar \menuseparator
19966 Version
19967 \begin_inset space ~
19968 \end_inset
19969
19970 Control
19971 \family default
19972  submenu.
19973  Please note that if you use password protected access to repository via
19974  ssh, you will be asked in terminal window.
19975  LyX was tested against SVN 1.5 and 1.6
19976 \begin_inset Foot
19977 status open
19978
19979 \begin_layout Plain Layout
19980 Most of the commands will work with 1.4 too, see 
19981 \begin_inset CommandInset ref
19982 LatexCommand ref
19983 reference "sub:SVN-Repo-Update"
19984
19985 \end_inset
19986
19987 .
19988 \end_layout
19989
19990 \end_inset
19991
19992
19993 \end_layout
19994
19995 \begin_layout Subsubsection
19996
19997 \family sans
19998 Register
19999 \end_layout
20000
20001 \begin_layout Standard
20002 If your document is not under revision control, this is the only item shown
20003  in the menu.
20004  And if it is under revision control, the 
20005 \family sans
20006 \bar under
20007 R
20008 \bar default
20009 egister
20010 \family default
20011  item is not visible.
20012  
20013 \end_layout
20014
20015 \begin_layout Standard
20016 This command registers in SVN your document ONLY in case you have already
20017  the documents directory under SVN control (in particular 
20018 \family typewriter
20019 .svn/entries
20020 \family default
20021  file exists).
20022  This means you have to checkout the archive by yourself.
20023  
20024 \end_layout
20025
20026 \begin_layout Standard
20027 Then you are asked interactively to supply an initial description of the
20028  document.
20029  Don't forget that registered file is not yet commited.
20030 \end_layout
20031
20032 \begin_layout Standard
20033 SVN command that is run: 
20034 \family typewriter
20035 svn add -q 
20036 \begin_inset Quotes eld
20037 \end_inset
20038
20039 <file-name>
20040 \begin_inset Quotes erd
20041 \end_inset
20042
20043
20044 \end_layout
20045
20046 \begin_layout Standard
20047 Read 
20048 \family typewriter
20049 man svn
20050 \family default
20051  to understand the switches.
20052  
20053 \end_layout
20054
20055 \begin_layout Subsubsection
20056
20057 \family sans
20058 Check In Changes
20059 \end_layout
20060
20061 \begin_layout Standard
20062 When you are finished editing a file, you commit your changes.
20063  When you do this, you are asked for a description of the changes.
20064  After that changes are commited.
20065 \end_layout
20066
20067 \begin_layout Standard
20068 SVN command:
20069 \begin_inset Foot
20070 status collapsed
20071
20072 \begin_layout Plain Layout
20073 In case locking is not enabled.
20074  See Section 
20075 \begin_inset CommandInset ref
20076 LatexCommand ref
20077 reference "subsec:SVN-File-Locking"
20078
20079 \end_inset
20080
20081 .
20082 \end_layout
20083
20084 \end_inset
20085
20086  
20087 \family typewriter
20088 svn commit -q -m"<description>" <file-name>
20089 \end_layout
20090
20091 \begin_layout Subsubsection
20092
20093 \family sans
20094 Check Out For Edit
20095 \end_layout
20096
20097 \begin_layout Standard
20098 Updates the changes of this file from the repository.
20099  Be sure you understand SVN merging and conflicts resolving before using
20100  this function, because all conflicts has to be resolved manually by you!
20101 \end_layout
20102
20103 \begin_layout Standard
20104 SVN command:
20105 \begin_inset Foot
20106 status collapsed
20107
20108 \begin_layout Plain Layout
20109 Ditto.
20110 \end_layout
20111
20112 \end_inset
20113
20114  
20115 \family typewriter
20116 svn update --non-interactive 
20117 \begin_inset Quotes eld
20118 \end_inset
20119
20120 <file-name>
20121 \begin_inset Quotes erd
20122 \end_inset
20123
20124
20125 \end_layout
20126
20127 \begin_layout Subsubsection
20128
20129 \family sans
20130 Revert To Repository Version
20131 \end_layout
20132
20133 \begin_layout Standard
20134 This will discard all changes made to the document since the last check
20135  in.
20136  You get a warning before changes are discarded.
20137  
20138 \end_layout
20139
20140 \begin_layout Standard
20141 SVN command: 
20142 \family typewriter
20143 svn revert -q 
20144 \begin_inset Quotes eld
20145 \end_inset
20146
20147 <file-name>
20148 \begin_inset Quotes erd
20149 \end_inset
20150
20151
20152 \end_layout
20153
20154 \begin_layout Subsubsection
20155 \begin_inset CommandInset label
20156 LatexCommand label
20157 name "sub:SVN-Repo-Update"
20158
20159 \end_inset
20160
20161 Update of the local directory checkout from repository
20162 \begin_inset Foot
20163 status collapsed
20164
20165 \begin_layout Plain Layout
20166 Note that this command will work only with subversion 
20167 \begin_inset Formula $\geqq1.5$
20168 \end_inset
20169
20170
20171 \end_layout
20172
20173 \end_inset
20174
20175
20176 \end_layout
20177
20178 \begin_layout Standard
20179 All the commands above have one shortcomming - they deal with the current
20180  document only.
20181  Once your document contains pictures, includes external 
20182 \begin_inset Flex Code
20183 status collapsed
20184
20185 \begin_layout Plain Layout
20186 .tex
20187 \end_layout
20188
20189 \end_inset
20190
20191  files and so on administration becomes more complicated.
20192  LyX now supports updating the whole tree in which resides the document
20193 \begin_inset Foot
20194 status collapsed
20195
20196 \begin_layout Plain Layout
20197 One need to organize the files structure so that all external files are
20198  in the same directory or subdirectories of the document.
20199  
20200 \end_layout
20201
20202 \end_inset
20203
20204 .
20205  This become especially useful once you cooperate with people which neither
20206  know about subversion management nor they have ambition to commit additional
20207  material to the repository.
20208  
20209 \end_layout
20210
20211 \begin_layout Standard
20212 \begin_inset Flex Code
20213 status collapsed
20214
20215 \begin_layout Plain Layout
20216 Update local directory from repository
20217 \end_layout
20218
20219 \end_inset
20220
20221  command updates the whole directory and in case of merge conflicts local
20222  version of the files are left, so no unintended data loss occurs.
20223  If local changes are detected user is warned before update starts.
20224 \end_layout
20225
20226 \begin_layout Labeling
20227 \labelwidthstring 00.00.0000
20228 SVN
20229 \begin_inset space ~
20230 \end_inset
20231
20232 commands: 
20233 \begin_inset space ~
20234 \end_inset
20235
20236
20237 \begin_inset Newline newline
20238 \end_inset
20239
20240
20241 \begin_inset Flex Code
20242 status collapsed
20243
20244 \begin_layout Plain Layout
20245 svn diff $path
20246 \end_layout
20247
20248 \end_inset
20249
20250  (Ask if changes are detected.)
20251 \begin_inset Newline newline
20252 \end_inset
20253
20254
20255 \begin_inset Flex Code
20256 status collapsed
20257
20258 \begin_layout Plain Layout
20259 svn update --accept mine-full $path
20260 \end_layout
20261
20262 \end_inset
20263
20264
20265 \end_layout
20266
20267 \begin_layout Standard
20268 where 
20269 \begin_inset Flex Code
20270 status collapsed
20271
20272 \begin_layout Plain Layout
20273 $path
20274 \end_layout
20275
20276 \end_inset
20277
20278  stands for the path to the document.
20279 \end_layout
20280
20281 \begin_layout Subsubsection
20282
20283 \family sans
20284 Show History
20285 \end_layout
20286
20287 \begin_layout Standard
20288 This shows the complete history of the SVN document.
20289  The output of 
20290 \family typewriter
20291 svn log 
20292 \begin_inset Quotes eld
20293 \end_inset
20294
20295 <file-name>
20296 \begin_inset Quotes erd
20297 \end_inset
20298
20299
20300 \family default
20301  is shown in a browser.
20302 \end_layout
20303
20304 \begin_layout Subsubsection
20305 File Locking
20306 \begin_inset CommandInset label
20307 LatexCommand label
20308 name "subsec:SVN-File-Locking"
20309
20310 \end_inset
20311
20312
20313 \end_layout
20314
20315 \begin_layout Standard
20316 The file exchange through various revision control systems brings the problem
20317  of merge conflicts in case two different users try to edit the same (parts
20318  of) document.
20319  When such a conflict happens it needs manual resolving and one reasonable
20320  alternative is to provide some kind of locking mechanism, which guarantees
20321  that only one user is allowed to edit file at the given time.
20322 \end_layout
20323
20324 \begin_layout Standard
20325 SVN has two such mechanisms to provide mutual exclusivity for file access
20326  - locks and automatic setting of write permissions (see sec.
20327  
20328 \begin_inset CommandInset ref
20329 LatexCommand ref
20330 reference "subsec:Automatical-Locking-Property"
20331
20332 \end_inset
20333
20334 ) based on 
20335 \begin_inset Flex Code
20336 status collapsed
20337
20338 \begin_layout Plain Layout
20339 svn:needs-lock
20340 \end_layout
20341
20342 \end_inset
20343
20344  file svn property
20345 \begin_inset Foot
20346 status open
20347
20348 \begin_layout Plain Layout
20349 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
20350 \end_layout
20351
20352 \end_inset
20353
20354 .
20355  If this property is detected for a given document LyX starts to use SVN
20356  locks for document editing automatically and the whole check-in/out mechanism
20357  switches to the same regimen as for RCS.
20358  This in particular means there are two different modes of file use in LyX:
20359 \end_layout
20360
20361 \begin_layout Itemize
20362 Unlocked state.
20363  The loaded file is in the read-only mode.
20364  For editing on needs to check-out.
20365  
20366 \emph on
20367 Check-out
20368 \emph default
20369  consists of updating from the repository and gaining write lock.
20370  If the lock is not possible to obtain, we remain in unlocked state.
20371 \end_layout
20372
20373 \begin_layout Itemize
20374 Locked state.
20375  The loaded file is in the 'normal' edit mode.
20376  No other user is allowed to edit the file.
20377  
20378 \emph on
20379 Check-in
20380 \emph default
20381  consists of commiting changes and releasing write-lock.
20382  If no changes have been made to the document, no commit will be produced
20383 \begin_inset Foot
20384 status collapsed
20385
20386 \begin_layout Plain Layout
20387 Don't be puzzled by the fact that you will be asked for commit message anyway.
20388 \end_layout
20389
20390 \end_inset
20391
20392  and only the write-lock will be released.
20393 \end_layout
20394
20395 \begin_layout Standard
20396 SVN commands:
20397 \end_layout
20398
20399 \begin_layout Labeling
20400 \labelwidthstring 00.00.0000
20401 Check-in:
20402 \family typewriter
20403  svn commit -q -m"<description>" "<file-name>"
20404 \begin_inset Newline newline
20405 \end_inset
20406
20407 svn unlock "<file-name>"
20408 \end_layout
20409
20410 \begin_layout Labeling
20411 \labelwidthstring 00.00.0000
20412 Check-out: 
20413 \family typewriter
20414 svn update "<file-name>"
20415 \begin_inset Newline newline
20416 \end_inset
20417
20418 svn lock "<file-name>"
20419 \end_layout
20420
20421 \begin_layout Subsubsection
20422
20423 \family typewriter
20424 \begin_inset CommandInset label
20425 LatexCommand label
20426 name "subsec:Automatical-Locking-Property"
20427
20428 \end_inset
20429
20430
20431 \family default
20432 Automatic Locking Property
20433 \end_layout
20434
20435 \begin_layout Standard
20436 The above mentioned automatic setting of write permissions of the .lyx file
20437  can be set through
20438 \family sans
20439 \bar under
20440  F
20441 \bar default
20442 ile\SpecialChar \menuseparator
20443
20444 \bar under
20445 V
20446 \bar default
20447 ersion
20448 \begin_inset space ~
20449 \end_inset
20450
20451 Control\SpecialChar \menuseparator
20452
20453 \bar under
20454 T
20455 \bar default
20456 oggle locking property
20457 \family default
20458 .
20459  This command is active only when the file is not locked on the svn server
20460  (i.e.
20461  you need to check-out before proceeding).
20462 \end_layout
20463
20464 \begin_layout Labeling
20465 \labelwidthstring 00.00.0000
20466 SVN
20467 \begin_inset space ~
20468 \end_inset
20469
20470 commands:
20471 \end_layout
20472
20473 \begin_layout Labeling
20474 \labelwidthstring 00.00.0000
20475 Set:
20476 \family typewriter
20477  svn propset svn:needs-lock ON "<file-name>"
20478 \end_layout
20479
20480 \begin_layout Labeling
20481 \labelwidthstring 00.00.0000
20482 Unset: 
20483 \family typewriter
20484 svn propdel svn:needs-lock "<file-name>"
20485 \end_layout
20486
20487 \begin_layout Subsubsection
20488 \begin_inset CommandInset label
20489 LatexCommand label
20490 name "sub:VCS-Revision-Information"
20491
20492 \end_inset
20493
20494 Revision Information in Documents
20495 \end_layout
20496
20497 \begin_layout Standard
20498 There are more possibilities how to activate revision information in our
20499  document.
20500 \end_layout
20501
20502 \begin_layout Itemize
20503 LyX supports directly:
20504 \end_layout
20505
20506 \begin_deeper
20507 \begin_layout Itemize
20508 tree revision information (
20509 \begin_inset Flex Code
20510 status collapsed
20511
20512 \begin_layout Plain Layout
20513 vcs-tree-revision
20514 \end_layout
20515
20516 \end_inset
20517
20518 ).
20519  The result is the output of the 
20520 \begin_inset Flex Code
20521 status collapsed
20522
20523 \begin_layout Plain Layout
20524 svnversion
20525 \end_layout
20526
20527 \end_inset
20528
20529  command, the following table gives you an idea, how to read the results.
20530 \end_layout
20531
20532 \begin_layout Standard
20533 \align center
20534 \begin_inset Tabular
20535 <lyxtabular version="3" rows="6" columns="2">
20536 <features tabularvalignment="middle">
20537 <column alignment="center" valignment="top" width="0">
20538 <column alignment="center" valignment="top" width="0">
20539 <row>
20540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20541 \begin_inset Text
20542
20543 \begin_layout Plain Layout
20544 Output
20545 \end_layout
20546
20547 \end_inset
20548 </cell>
20549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20550 \begin_inset Text
20551
20552 \begin_layout Plain Layout
20553 Meaning
20554 \end_layout
20555
20556 \end_inset
20557 </cell>
20558 </row>
20559 <row>
20560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20561 \begin_inset Text
20562
20563 \begin_layout Plain Layout
20564 4123:4168
20565 \end_layout
20566
20567 \end_inset
20568 </cell>
20569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20570 \begin_inset Text
20571
20572 \begin_layout Plain Layout
20573 mixed revision working copy
20574 \end_layout
20575
20576 \end_inset
20577 </cell>
20578 </row>
20579 <row>
20580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20581 \begin_inset Text
20582
20583 \begin_layout Plain Layout
20584 4168M
20585 \end_layout
20586
20587 \end_inset
20588 </cell>
20589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20590 \begin_inset Text
20591
20592 \begin_layout Plain Layout
20593 modified working copy
20594 \end_layout
20595
20596 \end_inset
20597 </cell>
20598 </row>
20599 <row>
20600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20601 \begin_inset Text
20602
20603 \begin_layout Plain Layout
20604 4123S
20605 \end_layout
20606
20607 \end_inset
20608 </cell>
20609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20610 \begin_inset Text
20611
20612 \begin_layout Plain Layout
20613 switched working copy
20614 \end_layout
20615
20616 \end_inset
20617 </cell>
20618 </row>
20619 <row>
20620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20621 \begin_inset Text
20622
20623 \begin_layout Plain Layout
20624 4123P
20625 \end_layout
20626
20627 \end_inset
20628 </cell>
20629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20630 \begin_inset Text
20631
20632 \begin_layout Plain Layout
20633 partial working copy, from a sparse checkout
20634 \end_layout
20635
20636 \end_inset
20637 </cell>
20638 </row>
20639 <row>
20640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20641 \begin_inset Text
20642
20643 \begin_layout Plain Layout
20644 4123:4168MS
20645 \end_layout
20646
20647 \end_inset
20648 </cell>
20649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20650 \begin_inset Text
20651
20652 \begin_layout Plain Layout
20653 mixed revision, modified, switched working copy
20654 \end_layout
20655
20656 \end_inset
20657 </cell>
20658 </row>
20659 </lyxtabular>
20660
20661 \end_inset
20662
20663
20664 \end_layout
20665
20666 \begin_layout Itemize
20667 file revision information.
20668  The result comes from parsing the output of 
20669 \begin_inset Flex Code
20670 status collapsed
20671
20672 \begin_layout Plain Layout
20673 svn
20674 \begin_inset space ~
20675 \end_inset
20676
20677 info
20678 \begin_inset space ~
20679 \end_inset
20680
20681 --xml
20682 \begin_inset space ~
20683 \end_inset
20684
20685 file.lyx
20686 \end_layout
20687
20688 \end_inset
20689
20690 .
20691  Supported flags are:
20692 \end_layout
20693
20694 \begin_deeper
20695 \begin_layout Itemize
20696 version number of the last commit (
20697 \begin_inset Flex Code
20698 status collapsed
20699
20700 \begin_layout Plain Layout
20701 vcs-revision
20702 \end_layout
20703
20704 \end_inset
20705
20706 )
20707 \end_layout
20708
20709 \begin_layout Itemize
20710 author of the last commit (
20711 \begin_inset Flex Code
20712 status collapsed
20713
20714 \begin_layout Plain Layout
20715 vcs-author
20716 \end_layout
20717
20718 \end_inset
20719
20720 )
20721 \end_layout
20722
20723 \begin_layout Itemize
20724 date of the last commit (
20725 \begin_inset Flex Code
20726 status collapsed
20727
20728 \begin_layout Plain Layout
20729 vcs-date
20730 \end_layout
20731
20732 \end_inset
20733
20734 )
20735 \end_layout
20736
20737 \begin_layout Itemize
20738 time of the last commit (
20739 \begin_inset Flex Code
20740 status collapsed
20741
20742 \begin_layout Plain Layout
20743 vcs-time
20744 \end_layout
20745
20746 \end_inset
20747
20748 )
20749 \end_layout
20750
20751 \end_deeper
20752 \begin_layout Standard
20753 You can obtain this info via InsetInfo (e.g.
20754  
20755 \begin_inset Flex Code
20756 status collapsed
20757
20758 \begin_layout Plain Layout
20759 info-insert buffer vcs-date
20760 \end_layout
20761
20762 \end_inset
20763
20764 ).
20765  The information will be available only when you have the file stored under
20766  svn managment (i.e.
20767  the 
20768 \begin_inset Flex Code
20769 status collapsed
20770
20771 \begin_layout Plain Layout
20772 .svn
20773 \end_layout
20774
20775 \end_inset
20776
20777  directory is available with your document).
20778 \end_layout
20779
20780 \end_deeper
20781 \begin_layout Itemize
20782 Another---a hacking one---possibility is to use svn keywords
20783 \begin_inset Foot
20784 status collapsed
20785
20786 \begin_layout Plain Layout
20787 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20788 \end_layout
20789
20790 \end_inset
20791
20792 .
20793  In short -- you set file keywords property (e.g.
20794  
20795 \family sans
20796 svn propset svn:keywords 'Rev' file.lyx
20797 \family default
20798 ) and then paste keyword TeX code
20799 \begin_inset Foot
20800 status collapsed
20801
20802 \begin_layout Plain Layout
20803 This is an easy way how to ensure that LyX won't break the line in the middle
20804  of keyword tag.
20805 \end_layout
20806
20807 \end_inset
20808
20809  tag in your document (e.g.
20810  
20811 \begin_inset ERT
20812 status open
20813
20814 \begin_layout Plain Layout
20815
20816 $Rev$
20817 \end_layout
20818
20819 \end_inset
20820
20821 ).
20822  This way svn client will automatically substitute revision number (e.g.
20823  
20824 \begin_inset ERT
20825 status open
20826
20827 \begin_layout Plain Layout
20828
20829 $Rev: 59 $
20830 \end_layout
20831
20832 \end_inset
20833
20834 ) after each update and commit.
20835  There are more problems with this approach.
20836  Firstly, the '$' character is used in TeX world for math equations, so
20837  any occurence of math formula 
20838 \begin_inset Formula $Rev$
20839 \end_inset
20840
20841  become 
20842 \begin_inset Formula $Rev:59$
20843 \end_inset
20844
20845  in your LyX document.
20846  Similarly for other keywords like Id, Date, Author, etc.
20847  Secondly svn output is dependent on your locales, so its very easy that
20848  svn would produce some problematic strings once Date is used.
20849  Thirdly you get the whole 'Rev: 59' string in your document instead of
20850  the plain number.
20851  Until subversion implements user's custom keywords it will be hard to use
20852  this approach reliably or let LyX to support it directly.
20853 \end_layout
20854
20855 \begin_layout Subsection
20856 SVN and Windows Environment
20857 \end_layout
20858
20859 \begin_layout Quote
20860 My inclination is to say that if the user cannot figure out the command
20861  line operations on their own fairly quickly, they would be well advised
20862  to use TortoiseSVN.
20863  ---P.
20864  A.
20865  Rubin
20866 \end_layout
20867
20868 \begin_layout Subsubsection
20869 Preparation
20870 \end_layout
20871
20872 \begin_layout Standard
20873 In addition to installing LyX, and having access to a Subversion repository,
20874  the user will need to install the Subversion client program.
20875  A Windows installer for the client program is available from 
20876 \begin_inset CommandInset href
20877 LatexCommand href
20878 name "CollabNet"
20879 target "http://www.collab.net/nonav/downloads/subversion/"
20880
20881 \end_inset
20882
20883 .
20884  The user may also want to install 
20885 \begin_inset CommandInset href
20886 LatexCommand href
20887 name "TortoiseSVN"
20888 target "http://tortoisesvn.tigris.org/"
20889
20890 \end_inset
20891
20892 , which integrates Subversion operations into the context (rightclick) menu
20893  of Windows Explorer.
20894  Operations done outside LyX will typically be more convenient using the
20895  Explorer context menu.
20896  Note that TortoiseSVN is not a replacement for the client program, which
20897  is what LyX itself will use.
20898 \end_layout
20899
20900 \begin_layout Subsubsection
20901 Bringing a document under Subversion control
20902 \end_layout
20903
20904 \begin_layout Standard
20905 Before a LyX document can be brought under version control in Subversion,
20906  its parent directory needs to be under version control.
20907  If the document is being added to a project already in the repository,
20908  this is accomplished by checking the project out to the directory where
20909  the new document will be placed.
20910  If the project itself is not yet under version control (for instance, if
20911  this document starts a new project), the directory must be imported into
20912  the repository.
20913  This is done outside LyX.
20914  Both import and checkout are easily accomplished from the Explorer context
20915  menu using TortoiseSVN, or alternatively can be done using the command
20916  line client at a DOS prompt.
20917  The procedure for importing the project using TortoiseSVN is described
20918  below, assuming an existing repository and a new project being started
20919  in 
20920 \family typewriter
20921 C:
20922 \backslash
20923 new project
20924 \family default
20925 .
20926  For information on using the Subversion client program, run 
20927 \family typewriter
20928 svn --help 
20929 \family default
20930 in a DOS shell.
20931 \end_layout
20932
20933 \begin_layout Enumerate
20934 Locate 
20935 \family typewriter
20936 C:
20937 \backslash
20938 new project 
20939 \family default
20940 in Windows Explorer, right click it, and select 
20941 \family typewriter
20942 TortoiseSVN > Repo-browser
20943 \family default
20944 .
20945  If necessary, adjust the URL for the repository, then click OK.
20946 \end_layout
20947
20948 \begin_layout Enumerate
20949 Right click the level of the repository under which you want to place the
20950  new project folder (typically the top level) and click 
20951 \family typewriter
20952 Create folder\SpecialChar \ldots{}
20953
20954 \family default
20955  Supply a name for the project folder and click OK.
20956  Add a message for the log file if desired, then click OK again.
20957  The new project folder should appear in the repository.
20958  Finally, click OK again to exit the repository browser.
20959 \end_layout
20960
20961 \begin_layout Enumerate
20962 Once again right click 
20963 \family typewriter
20964 C:
20965 \backslash
20966 new project
20967 \family default
20968 , this time selecting SVN Checkout\SpecialChar \ldots{}
20969  Select the URL of the project folder
20970  you just created in the repository, and set the checkout directory to 
20971 \family typewriter
20972 C:
20973 \backslash
20974 new project.
20975
20976 \family default
20977  Click OK.
20978  You will be warned about a non-empty folder; click OK to proceed.
20979  You should now have a 
20980 \family typewriter
20981 .svn
20982 \family default
20983  directory under 
20984 \family typewriter
20985 C:
20986 \backslash
20987 new project.
20988 \end_layout
20989
20990 \begin_layout Enumerate
20991 Create or open your document in LyX and click 
20992 \family sans
20993 \bar under
20994 F
20995 \bar default
20996 ile\SpecialChar \menuseparator
20997
20998 \bar under
20999 V
21000 \bar default
21001 ersion
21002 \begin_inset space ~
21003 \end_inset
21004
21005 Control\SpecialChar \menuseparator
21006
21007 \bar under
21008 R
21009 \bar default
21010 egister.
21011  
21012 \family default
21013 Add a log message and click OK to commit the document to version control.
21014 \end_layout
21015
21016 \begin_layout Standard
21017 From this point onward, you should have full functionality in the 
21018 \family sans
21019 \bar under
21020 F
21021 \bar default
21022 ile\SpecialChar \menuseparator
21023
21024 \bar under
21025 V
21026 \bar default
21027 ersion
21028 \begin_inset space ~
21029 \end_inset
21030
21031 Control
21032 \family default
21033  menu.
21034  You also have the option of checking the document in and out, viewing its
21035  history, etc.
21036  using the TortoiseSVN context menu in Windows Explorer or the Subversion
21037  client program from a command prompt.
21038 \end_layout
21039
21040 \begin_layout Subsubsection
21041 SSH tunnel used with SVN under Windows
21042 \end_layout
21043
21044 \begin_layout Standard
21045 Compared with Linux setting up svn client to communicate over ssh under
21046  Windows is a rather troublesome task.
21047  We will at least offer some hints how to setup the client side but prior
21048  knowledge about ssh and the Windows command line is needed, also be prepared
21049  for a great deal of frustration\SpecialChar \ldots{}
21050
21051 \end_layout
21052
21053 \begin_layout Enumerate
21054 Get a svn client for windows, as described in the previous sections.
21055  When it is a fresh install run some svn command (e.g.
21056  
21057 \begin_inset Flex Code
21058 status collapsed
21059
21060 \begin_layout Plain Layout
21061 svn --version
21062 \end_layout
21063
21064 \end_inset
21065
21066 ) to create config files, which you will need to change later on.
21067 \end_layout
21068
21069 \begin_layout Enumerate
21070 Choose a ssh client for Windows.
21071  There are several possibilities, we will use the one from Putty tools
21072 \begin_inset Foot
21073 status open
21074
21075 \begin_layout Plain Layout
21076 \begin_inset Flex URL
21077 status collapsed
21078
21079 \begin_layout Plain Layout
21080
21081 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
21082 \end_layout
21083
21084 \end_inset
21085
21086
21087 \end_layout
21088
21089 \end_inset
21090
21091 .
21092  You will need to set the connection up so that the client doesn't ask for
21093  any password from you.
21094  To keep things easy we will use only keys without any additional password
21095  protection etc.
21096 \end_layout
21097
21098 \begin_deeper
21099 \begin_layout Enumerate
21100 Generate keys by 
21101 \begin_inset Flex Code
21102 status collapsed
21103
21104 \begin_layout Plain Layout
21105 puttygen
21106 \end_layout
21107
21108 \end_inset
21109
21110 .
21111  Save your private .ppk key file and put the public one on the server side.
21112  If the SVN server runs on Linux, note that the format of the public key
21113  is not compatible with Linux openssh and you will need to direcly copy-paste
21114  the key from the “
21115 \emph on
21116 Public key for pasting into OpenSSH authorized_keys file
21117 \emph default
21118 :” edit field into the server's 
21119 \begin_inset Flex Code
21120 status collapsed
21121
21122 \begin_layout Plain Layout
21123 ~/.ssh/authorized_keys
21124 \end_layout
21125
21126 \end_inset
21127
21128
21129 \begin_inset Flex Code
21130 status collapsed
21131
21132 \begin_layout Plain Layout
21133 authorized_keys2
21134 \end_layout
21135
21136 \end_inset
21137
21138  file.
21139 \end_layout
21140
21141 \begin_layout Enumerate
21142 Get the Putty's 
21143 \begin_inset Flex Code
21144 status collapsed
21145
21146 \begin_layout Plain Layout
21147 plink
21148 \end_layout
21149
21150 \end_inset
21151
21152 .
21153  In the SVN config file
21154 \begin_inset Foot
21155 status collapsed
21156
21157 \begin_layout Plain Layout
21158 Exact path depends on Windows version, usually somewhere around 
21159 \begin_inset Flex Code
21160 status collapsed
21161
21162 \begin_layout Plain Layout
21163 c:
21164 \backslash
21165 Documents and Settings
21166 \backslash
21167 user
21168 \backslash
21169 Application Data
21170 \backslash
21171 Subversion
21172 \backslash
21173 config
21174 \end_layout
21175
21176 \end_inset
21177
21178  / 
21179 \begin_inset Flex Code
21180 status collapsed
21181
21182 \begin_layout Plain Layout
21183 AppData
21184 \backslash
21185 Roaming
21186 \backslash
21187 Subversion
21188 \end_layout
21189
21190 \end_inset
21191
21192 .
21193 \end_layout
21194
21195 \end_inset
21196
21197 , section [tunnels], setup ssh command, e.g.
21198  
21199 \begin_inset Flex Code
21200 status collapsed
21201
21202 \begin_layout Plain Layout
21203 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
21204 \end_layout
21205
21206 \end_inset
21207
21208 .
21209 \begin_inset Foot
21210 status collapsed
21211
21212 \begin_layout Plain Layout
21213 It will usually take a lot of time to get exact command right and it depends
21214  on many things.
21215  For example do not have some remote server saved as a default session in
21216  Putty etc.
21217  If things fail, try to connect via plink without SVN first.
21218 \end_layout
21219
21220 \end_inset
21221
21222
21223 \end_layout
21224
21225 \end_deeper
21226 \begin_layout Enumerate
21227 Checkout the SVN archive, e.g.
21228  
21229 \begin_inset Flex Code
21230 status collapsed
21231
21232 \begin_layout Plain Layout
21233 svn co svn+ssh://user@server/repository_path
21234 \end_layout
21235
21236 \end_inset
21237
21238 .
21239 \end_layout
21240
21241 \begin_layout Subsubsection
21242 End-of-Line Conversions
21243 \end_layout
21244
21245 \begin_layout Standard
21246 When the collsraborators are mixing Linux and Windows environments, LyX
21247  will use different line endings inside the .lyx files.
21248  This is not a problem as far as LyX functionality is concerned, but the
21249  commit diffs will be huge and merge-conflicts prone.
21250  Fortunately SVN itself knows
21251 \begin_inset Foot
21252 status collapsed
21253
21254 \begin_layout Plain Layout
21255 \begin_inset Flex URL
21256 status collapsed
21257
21258 \begin_layout Plain Layout
21259
21260 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21261 \end_layout
21262
21263 \end_inset
21264
21265
21266 \end_layout
21267
21268 \end_inset
21269
21270  how to deal with CR/LF problems when switching .lyx files to the 
21271 \begin_inset Flex Code
21272 status collapsed
21273
21274 \begin_layout Plain Layout
21275 native
21276 \end_layout
21277
21278 \end_inset
21279
21280  mode.
21281 \begin_inset Foot
21282 status collapsed
21283
21284 \begin_layout Plain Layout
21285 For the lazy guys: 
21286 \begin_inset Flex Code
21287 status collapsed
21288
21289 \begin_layout Plain Layout
21290 svn propset svn:eol-style native FILE_NAME
21291 \end_layout
21292
21293 \end_inset
21294
21295
21296 \end_layout
21297
21298 \end_inset
21299
21300
21301 \end_layout
21302
21303 \begin_layout Subsection
21304 Further tuning
21305 \end_layout
21306
21307 \begin_layout Standard
21308 With the recent addition of the vc-command function LyX power users are
21309  allowed to create their own commands for revision control.
21310 \end_layout
21311
21312 \begin_layout Standard
21313 As an example you can see how two TortoiseSVN commands could be integrated
21314  directly:
21315 \end_layout
21316
21317 \begin_layout Description
21318 Commit: 
21319 \begin_inset Flex Code
21320 status collapsed
21321
21322 \begin_layout Plain Layout
21323 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21324 \end_layout
21325
21326 \end_inset
21327
21328
21329 \end_layout
21330
21331 \begin_layout Description
21332 Revert: 
21333 \begin_inset Flex Code
21334 status collapsed
21335
21336 \begin_layout Plain Layout
21337 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21338 \end_layout
21339
21340 \end_inset
21341
21342
21343 \end_layout
21344
21345 \begin_layout Subsection
21346 Version control and Document comparison
21347 \end_layout
21348
21349 \begin_layout Standard
21350 One of the typical uses of version control is to inspect the changes between
21351  revisions, usually by creating 
21352 \begin_inset Flex Code
21353 status collapsed
21354
21355 \begin_layout Plain Layout
21356 diff
21357 \end_layout
21358
21359 \end_inset
21360
21361  dumps.
21362  While this is useful for plain text files, it is much less useful in the
21363  case of LyX files, which have more complicated structure.
21364  Hence we provide binding to the Document comparison feature.
21365  They are two ways of calling this feature - either by direct call of 
21366 \begin_inset Flex Code
21367 status collapsed
21368
21369 \begin_layout Plain Layout
21370 VC_COMPARE
21371 \end_layout
21372
21373 \end_inset
21374
21375  LyX function (for details see LyX functions manual) or by icon/menu item
21376  
21377 \begin_inset Flex MenuItem
21378 status collapsed
21379
21380 \begin_layout Plain Layout
21381 Compare with older revision...
21382 \end_layout
21383
21384 \end_inset
21385
21386 .
21387  One can either compare two chosen revisions of the document or he can simply
21388  compare the current version of edited text with older revisions (where
21389  '
21390 \begin_inset Flex MenuItem
21391 status collapsed
21392
21393 \begin_layout Plain Layout
21394 0
21395 \end_layout
21396
21397 \end_inset
21398
21399 ' revisions back means comparison of the edited file with last commited
21400  revision).
21401  
21402 \end_layout
21403
21404 \begin_layout Standard
21405 This feature is supported for SVN and RCS though due to the more complicated
21406  versioning scheme of RCS there is a constraint -- when addressing the revisions
21407  in dialog, numbers always point to the last number in RCS revision number,
21408  i.e.
21409  '35' in '1.2.35'.
21410 \end_layout
21411
21412 \begin_layout Section
21413 Literate Programming
21414 \end_layout
21415
21416 \begin_layout Standard
21417 Updated by 
21418 \noun on
21419 Kayvan Sylvan 
21420 \noun default
21421 (kayvan@sylvan.com)
21422 \noun on
21423
21424 \noun default
21425 original documentation written by 
21426 \noun on
21427 Edmar Wienskoski Jr.
21428
21429 \noun default
21430  (edmar-w-jr@technologist.com)
21431 \end_layout
21432
21433 \begin_layout Subsection
21434 Introduction
21435 \end_layout
21436
21437 \begin_layout Standard
21438 The main purpose of this documentation is to show you how to use LyX for
21439  literate programming, where it is assumed that you are familiar with this
21440  programming technique, and know what 
21441 \begin_inset Quotes eld
21442 \end_inset
21443
21444 tangling
21445 \begin_inset Quotes erd
21446 \end_inset
21447
21448  and 
21449 \begin_inset Quotes eld
21450 \end_inset
21451
21452 weaving
21453 \begin_inset Quotes erd
21454 \end_inset
21455
21456  means.
21457  If that is not the case, please follow the web links provided in the following
21458  sections.
21459  There is a lot of good documentation out there covering old development
21460  history to the latest tools tips.
21461 \end_layout
21462
21463 \begin_layout Standard
21464 It is also assumed that you are familiar with LyX itself to a point that
21465  you are comfortable changing your LyX preferences, and X resources file.
21466  If that is not the case please refer to other LyX documentation to cover
21467  your specific needs.
21468 \end_layout
21469
21470 \begin_layout Subsection
21471 Literate Programming
21472 \end_layout
21473
21474 \begin_layout Standard
21475 From the Literate Programming FAQ: 
21476 \end_layout
21477
21478 \begin_layout Quotation
21479 Literate programming is the combination of documentation and source together
21480  in a fashion suited for reading by human beings.
21481  In fact, literate programs should be enjoyable reading, even inviting!
21482  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
21483  and documentation in a single file.
21484  Literate programming tools then parse the file to produce either readable
21485  documentation or compilable source.
21486  The WEB style of literate programming was created by D.
21487 \begin_inset space \thinspace{}
21488 \end_inset
21489
21490 E.
21491  Knuth during the development of his TeX typesetting software.
21492  
21493 \end_layout
21494
21495 \begin_layout Standard
21496 Another excerpt says:
21497 \end_layout
21498
21499 \begin_layout Quotation
21500
21501 \emph on
21502 How is literate programming different from verbose commenting?
21503 \end_layout
21504
21505 \begin_layout Quotation
21506 There are three distinguishing characteristics.
21507  In order of importance, they are: 
21508 \end_layout
21509
21510 \begin_deeper
21511 \begin_layout Itemize
21512 flexible order of elaboration 
21513 \end_layout
21514
21515 \begin_layout Itemize
21516 automatic support for browsing 
21517 \end_layout
21518
21519 \begin_layout Itemize
21520 typeset documentation, especially diagrams and mathematics 
21521 \end_layout
21522
21523 \end_deeper
21524 \begin_layout Standard
21525 Now that I sparked your curiosity, take a look in the references.
21526 \end_layout
21527
21528 \begin_layout Subsubsection
21529 References
21530 \end_layout
21531
21532 \begin_layout Standard
21533 The complete Literate Programming FAQ can be found at:
21534 \end_layout
21535
21536 \begin_layout Quote
21537 Literate Programming FAQ 
21538 \begin_inset Flex URL
21539 status collapsed
21540
21541 \begin_layout Plain Layout
21542
21543 http://www.literateprogramming.com/lpfaq.pdf
21544 \end_layout
21545
21546 \end_inset
21547
21548
21549 \end_layout
21550
21551 \begin_layout Standard
21552 The FAQ lists 23 (twenty three!) different literate programming tools.
21553  Where some are specialized or 
21554 \begin_inset Quotes eld
21555 \end_inset
21556
21557 tailored
21558 \begin_inset Quotes erd
21559 \end_inset
21560
21561  for particular programming languages, while other have general scope.
21562  I selected 
21563 \noun on
21564 Noweb
21565 \noun default
21566  for my own use for several reasons:
21567 \end_layout
21568
21569 \begin_layout Itemize
21570 It can generate the documentation either in LaTeX or HTML.
21571 \end_layout
21572
21573 \begin_layout Itemize
21574 It has a open architecture, i.
21575 \begin_inset space \thinspace{}
21576 \end_inset
21577
21578 g.
21579 \begin_inset space \space{}
21580 \end_inset
21581
21582 it is easy to plug in new filters and to perform special processing that
21583  you may need.
21584  
21585 \end_layout
21586
21587 \begin_layout Itemize
21588 There is a good selection of filters available already (the HTML is one
21589  of them).
21590 \end_layout
21591
21592 \begin_layout Itemize
21593 It is free.
21594 \end_layout
21595
21596 \begin_layout Standard
21597 The Noweb web page can be found at: 
21598 \end_layout
21599
21600 \begin_layout Quote
21601 Noweb home page 
21602 \begin_inset Flex URL
21603 status collapsed
21604
21605 \begin_layout Plain Layout
21606
21607 http://www.cs.virginia.edu/~nr/noweb/
21608 \end_layout
21609
21610 \end_inset
21611
21612
21613 \end_layout
21614
21615 \begin_layout Standard
21616 Starting from there you can reach many other interesting links and even
21617  some literate program examples.
21618 \end_layout
21619
21620 \begin_layout Subsection
21621 LyX and Literate Programming
21622 \end_layout
21623
21624 \begin_layout Standard
21625 The LyX support for Literate Programming is provided by using the generic
21626  LyX converters mechanism.
21627  This support is provided in a 
21628 \begin_inset Quotes eld
21629 \end_inset
21630
21631 Noweb independent
21632 \begin_inset Quotes erd
21633 \end_inset
21634
21635  way, i.
21636 \begin_inset space \thinspace{}
21637 \end_inset
21638
21639 g.
21640 \begin_inset space \space{}
21641 \end_inset
21642
21643 you will be able to use this new LyX feature with some other literate programmin
21644 g tool of your choice by just changing your LyX preferences.
21645 \end_layout
21646
21647 \begin_layout Subsubsection
21648 Generating documents and code (weaving and tangling)
21649 \end_layout
21650
21651 \begin_layout Paragraph
21652 Selecting the document class
21653 \end_layout
21654
21655 \begin_layout Standard
21656 If you have installed Noweb and LyX successfully, whenever you open a new
21657  document or try to change the document class of an existing one, you will
21658  find that there are three new document classes available:
21659 \end_layout
21660
21661 \begin_layout Itemize
21662 Article (Noweb)
21663 \end_layout
21664
21665 \begin_layout Itemize
21666 Book (Noweb)
21667 \end_layout
21668
21669 \begin_layout Itemize
21670 Report (Noweb)
21671 \end_layout
21672
21673 \begin_layout Standard
21674 You must select one of them to create your literate documents from.
21675  
21676 \end_layout
21677
21678 \begin_layout Standard
21679 Note that literate documents are not limited to these three classes.
21680  New classes can be generated from other styles like letter or in combination
21681  with other class variations like Article (AMS).
21682  If you have special needs that cannot be covered by one of the existing
21683  classes, let the LyX developers list (lyx-devel@lists.lyx.org) know and we
21684  will arrange to insert a new entry, or teach you how to do it.
21685 \begin_inset Foot
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689 It is very simple, it involves the creation of a file with four lines, and
21690  re-running of the auto configuration.
21691 \end_layout
21692
21693 \end_inset
21694
21695  Moreover, if you use a literate tool other than Noweb you may need to create
21696  a new set of document classes for it.
21697 \end_layout
21698
21699 \begin_layout Paragraph
21700 Typing code in
21701 \end_layout
21702
21703 \begin_layout Standard
21704 LyX enables you to write code with a layout named 
21705 \noun on
21706 Scrap
21707 \noun default
21708 .
21709 \begin_inset Foot
21710 status collapsed
21711
21712 \begin_layout Plain Layout
21713 The equivalent Noweb term is 
21714 \begin_inset Quotes eld
21715 \end_inset
21716
21717 Chunk
21718 \begin_inset Quotes erd
21719 \end_inset
21720
21721 .
21722  For historical reasons, I got used to the term 
21723 \begin_inset Quotes eld
21724 \end_inset
21725
21726 scrap
21727 \begin_inset Quotes erd
21728 \end_inset
21729
21730  introduced by other literate tool named Nuweb, which I used for many years
21731  before rendering myself to Noweb.
21732 \end_layout
21733
21734 \end_inset
21735
21736  Noweb delimits scraps like this:
21737 \end_layout
21738
21739 \begin_layout LyX-Code
21740 <<My scrap>>=
21741 \end_layout
21742
21743 \begin_layout LyX-Code
21744   code
21745 \end_layout
21746
21747 \begin_layout LyX-Code
21748   more code
21749 \end_layout
21750
21751 \begin_layout LyX-Code
21752   even more code
21753 \end_layout
21754
21755 \begin_layout LyX-Code
21756   @
21757 \end_layout
21758
21759 \begin_layout Standard
21760 The problem is that whatever is written in between the << and the 
21761 \family typewriter
21762 @
21763 \family default
21764  must be taken literally, i.
21765 \begin_inset space \thinspace{}
21766 \end_inset
21767
21768 g.
21769 \begin_inset space \space{}
21770 \end_inset
21771
21772 LyX should be prevented from making any special interpretation of what has
21773  been written.
21774  This is handled by a special layout named Scrap, that works like a normal
21775  paragraph but has a free spacing capability.
21776 \end_layout
21777
21778 \begin_layout Standard
21779 The down side of the Scrap paragraph layout is that consecutive paragraphs
21780  of code will be spaced with one empty line in the source code and also
21781  in the printed documentation.
21782  The work around is to enter each line of code within a single Scrap, with
21783  a newline (ctrl-return).
21784  The example above will look like this:
21785 \begin_inset Foot
21786 status collapsed
21787
21788 \begin_layout Plain Layout
21789 If you have a printed version of this document you will not see any difference
21790  between the previous example and this one.
21791 \end_layout
21792
21793 \end_inset
21794
21795
21796 \end_layout
21797
21798 \begin_layout LyX-Code
21799 <<My scrap>>=
21800 \begin_inset Newline newline
21801 \end_inset
21802
21803   code
21804 \begin_inset Newline newline
21805 \end_inset
21806
21807   more code
21808 \begin_inset Newline newline
21809 \end_inset
21810
21811   even more code
21812 \begin_inset Newline newline
21813 \end_inset
21814
21815   @
21816 \end_layout
21817
21818 \begin_layout Standard
21819 This layout works fine.
21820  The only real inconvenience is that you have to type ctrl-return instead
21821  of a plain return.
21822 \begin_inset Foot
21823 status collapsed
21824
21825 \begin_layout Plain Layout
21826 It is in my list of 
21827 \begin_inset Quotes eld
21828 \end_inset
21829
21830 improvements
21831 \begin_inset Quotes erd
21832 \end_inset
21833
21834  to fix that.
21835 \end_layout
21836
21837 \end_inset
21838
21839
21840 \end_layout
21841
21842 \begin_layout Standard
21843 As a special note, you can also use the 
21844 \begin_inset Quotes eld
21845 \end_inset
21846
21847 %def
21848 \begin_inset Quotes erd
21849 \end_inset
21850
21851  construct of Noweb in your scraps to add items to Noweb's identifier cross-refe
21852 rence:
21853 \end_layout
21854
21855 \begin_layout LyX-Code
21856 <<My scrap>>=
21857 \begin_inset Newline newline
21858 \end_inset
21859
21860   def some_function(args):
21861 \begin_inset Newline newline
21862 \end_inset
21863
21864     "This is the doc string for this function."
21865 \begin_inset Newline newline
21866 \end_inset
21867
21868     print "My args: ", args
21869 \end_layout
21870
21871 \begin_layout LyX-Code
21872 @ %def some_function
21873 \end_layout
21874
21875 \begin_layout Standard
21876 For an example of this usage and the resulting cross-reference output, look
21877  at the Literate python program in 
21878 \emph on
21879 LIBDIR/examples/listerrors.lyx
21880 \emph default
21881  which should make this all clear.
21882 \end_layout
21883
21884 \begin_layout Paragraph
21885 Generating the documentation
21886 \end_layout
21887
21888 \begin_layout Standard
21889 At this point you already have a new document file with a proper document
21890  class, and with some code and text on it.
21891  How do I print it? The answer is simple, you select 
21892 \family sans
21893 View\SpecialChar \menuseparator
21894 DVI,
21895 \family default
21896  etc.
21897  Just like you would do for a plain document.
21898  No special procedure is required.
21899 \end_layout
21900
21901 \begin_layout Standard
21902 To help orientate you, I will now explain what happens inside LyX:
21903 \end_layout
21904
21905 \begin_layout Enumerate
21906 When the 
21907 \family sans
21908 Update\SpecialChar \menuseparator
21909 DVI
21910 \family default
21911  menu option is chosen, a LaTeX file is generated.
21912  
21913 \end_layout
21914
21915 \begin_deeper
21916 \begin_layout Standard
21917 If the document is of any literate class the generated file will be named
21918  with an extension name defined by the 
21919 \begin_inset Quotes eld
21920 \end_inset
21921
21922 literate
21923 \begin_inset Quotes erd
21924 \end_inset
21925
21926  format (defined in the Preferences panel), otherwise the file will have
21927  the usual 
21928 \family typewriter
21929 .tex
21930 \family default
21931  extension.
21932 \end_layout
21933
21934 \end_deeper
21935 \begin_layout Enumerate
21936 Note that the only difference so far is in the name of the file, no special
21937  processing is required by LyX.
21938  Given that you formatted the code using the Scrap layout that, by itself,
21939  takes care of the business.
21940 \end_layout
21941
21942 \begin_layout Enumerate
21943 If the document is of any literate class LyX will then use the internal
21944  LyX to Noweb converter, followed by the Noweb to LaTeX converter
21945 \begin_inset Foot
21946 status collapsed
21947
21948 \begin_layout Plain Layout
21949 The converters are defined in the 
21950 \family sans
21951 Tools\SpecialChar \menuseparator
21952 Preferences
21953 \family default
21954  panel, under the 
21955 \begin_inset Quotes eld
21956 \end_inset
21957
21958 Conversion
21959 \begin_inset Quotes erd
21960 \end_inset
21961
21962  tab.
21963  See section 
21964 \emph on
21965 Converters
21966 \emph default
21967  of the 
21968 \emph on
21969 Customization
21970 \emph default
21971  manual for general information about converters.
21972 \end_layout
21973
21974 \end_inset
21975
21976  to generate the LaTeX file.
21977 \end_layout
21978
21979 \begin_deeper
21980 \begin_layout Standard
21981 Otherwise it will just skip this step.
21982 \end_layout
21983
21984 \end_deeper
21985 \begin_layout Enumerate
21986 Finally, LaTeX is invoked and the regular post processing continues as in
21987  a plain document.
21988 \end_layout
21989
21990 \begin_layout Standard
21991 Independence from a particular 
21992 \begin_inset Quotes eld
21993 \end_inset
21994
21995 literate tool
21996 \begin_inset Quotes erd
21997 \end_inset
21998
21999  is easily achieved by changing the commands that are run by the various
22000  converters.
22001 \end_layout
22002
22003 \begin_layout Paragraph
22004 Generating the code
22005 \end_layout
22006
22007 \begin_layout Standard
22008 When the build menu option is chosen or the corresponding button in the
22009  toolbar is pressed, a LaTeX file is generated just like step 1 above.
22010  Next, LyX invokes the 
22011 \family typewriter
22012 Noweb->Program
22013 \family default
22014  converter.
22015  This converter needs to be defined by the user and is not installed by
22016  default, though the Program format is.
22017  This converter (like any other converter) will have two parts:
22018 \end_layout
22019
22020 \begin_layout Enumerate
22021 The converter program itself.
22022  This program performs the conversion from the one format to the other (in
22023  this case, from the Noweb format to the Program pseudo-format).
22024 \end_layout
22025
22026 \begin_layout Enumerate
22027 The error log parser.
22028  This is a program whose sole purpose is to rewrite error messages in a
22029  format that LyX understands.
22030  This makes it possible for LyX to place error boxes in the right places
22031  in the file buffer.
22032 \end_layout
22033
22034 \begin_layout Standard
22035 The first part, the 
22036 \begin_inset Quotes eld
22037 \end_inset
22038
22039 Converter
22040 \begin_inset Quotes erd
22041 \end_inset
22042
22043  setting, should be set to 
22044 \begin_inset Quotes eld
22045 \end_inset
22046
22047
22048 \family typewriter
22049 build-script $$i
22050 \family default
22051
22052 \begin_inset Quotes erd
22053 \end_inset
22054
22055 .
22056  This basically means that LyX will call 
22057 \begin_inset Quotes eld
22058 \end_inset
22059
22060 build-script
22061 \begin_inset Quotes erd
22062 \end_inset
22063
22064  (a program or script) with the name of the Noweb file (normally a file
22065  in the LyX temp directory).
22066  
22067 \end_layout
22068
22069 \begin_layout Standard
22070 This is an implementation of 
22071 \begin_inset Quotes eld
22072 \end_inset
22073
22074 build-script
22075 \begin_inset Quotes erd
22076 \end_inset
22077
22078  that you can place in a directory on your path:
22079 \end_layout
22080
22081 \begin_layout LyX-Code
22082 #!/bin/sh
22083 \end_layout
22084
22085 \begin_layout LyX-Code
22086 #
22087 \end_layout
22088
22089 \begin_layout LyX-Code
22090 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
22091 \end_layout
22092
22093 \begin_layout Standard
22094 The next part of the converter setting is the 
22095 \begin_inset Quotes eld
22096 \end_inset
22097
22098 Flags
22099 \begin_inset Quotes erd
22100 \end_inset
22101
22102  which is to be set to 
22103 \begin_inset Quotes eld
22104 \end_inset
22105
22106
22107 \family typewriter
22108 parselog=listerrors
22109 \family default
22110
22111 \begin_inset Quotes erd
22112 \end_inset
22113
22114 .
22115  This will run any errors that are generated by the 
22116 \begin_inset Quotes eld
22117 \end_inset
22118
22119 build-script
22120 \begin_inset Quotes erd
22121 \end_inset
22122
22123  process through the 
22124 \begin_inset Quotes eld
22125 \end_inset
22126
22127 listerrors
22128 \begin_inset Quotes erd
22129 \end_inset
22130
22131  program.
22132 \end_layout
22133
22134 \begin_layout Standard
22135 The converter code looks in 
22136 \emph on
22137 MYLYXDIR/scripts
22138 \emph default
22139  first, then in 
22140 \emph on
22141 LIBDIR/scripts
22142 \emph default
22143  then on the path for the 
22144 \begin_inset Quotes eld
22145 \end_inset
22146
22147 listerrors
22148 \begin_inset Quotes erd
22149 \end_inset
22150
22151  program.
22152 \end_layout
22153
22154 \begin_layout Standard
22155 The build will normally take place in LyX's temporary directory, so the
22156  files produced by the conversion will be in that directory.
22157  LyX will copy out what it regards as the `main' file, but the 
22158 \family typewriter
22159 Noweb->Program
22160 \family default
22161  conversion may produce several files, and so most of these would then be
22162  deleted when LyX was closed.
22163  The present solution is to use a `copier',
22164 \begin_inset Foot
22165 status collapsed
22166
22167 \begin_layout Plain Layout
22168 See section 
22169 \emph on
22170 Copiers
22171 \emph default
22172  of the 
22173 \emph on
22174 Customization
22175 \emph default
22176  manual for information on these.
22177 \end_layout
22178
22179 \end_inset
22180
22181  in this case, the 
22182 \family typewriter
22183 ext_copy.py
22184 \family default
22185  script in its default mode, so that the entire contents of the temporary
22186  directory is copied.
22187  More will get copied than is needed, to be sure, but nothing will be lost.
22188  If, however, you know what extensions the generated files will have, this
22189  can be improved by using the 
22190 \family typewriter
22191 -e
22192 \family default
22193  option to 
22194 \family typewriter
22195 ext_copy
22196 \family default
22197 .
22198  This option takes a comma-separated list of extensions to copy.
22199  So, for example, if the conversion will generate only files with the extensions
22200  
22201 \family typewriter
22202 .c
22203 \family default
22204  and 
22205 \family typewriter
22206 .h
22207 \family default
22208 , then the correct definition would be:
22209 \end_layout
22210
22211 \begin_layout LyX-Code
22212 python -tt $$s/scripts/ext_copy.py -e c,h $$i $$o
22213 \end_layout
22214
22215 \begin_layout Standard
22216 The result will be that only files with these two extensions will be copied
22217  out.
22218 \end_layout
22219
22220 \begin_layout Paragraph
22221 Build instructions in the document
22222 \end_layout
22223
22224 \begin_layout Standard
22225 The last piece of the integration between LyX and noweb is the 
22226 \begin_inset Quotes eld
22227 \end_inset
22228
22229 build-script
22230 \begin_inset Quotes erd
22231 \end_inset
22232
22233  scrap.
22234  Generally, the instructions for building your program should be embedded
22235  in a scrap of its own.
22236  The noweb-specific 
22237 \begin_inset Quotes eld
22238 \end_inset
22239
22240 build-script
22241 \begin_inset Quotes erd
22242 \end_inset
22243
22244  above uses the notangle command to look for this scrap (called 
22245 \begin_inset Quotes eld
22246 \end_inset
22247
22248 build-script
22249 \begin_inset Quotes erd
22250 \end_inset
22251
22252 ) and runs its contents through 
22253 \begin_inset Quotes eld
22254 \end_inset
22255
22256 sh
22257 \begin_inset Quotes erd
22258 \end_inset
22259
22260 .
22261 \end_layout
22262
22263 \begin_layout Standard
22264 Typically, such a scrap would look something like this:
22265 \end_layout
22266
22267 \begin_layout LyX-Code
22268 <<build-script>>=
22269 \begin_inset Newline newline
22270 \end_inset
22271
22272 #!/bin/sh
22273 \begin_inset Newline newline
22274 \end_inset
22275
22276
22277 \begin_inset Newline newline
22278 \end_inset
22279
22280 if [ -z "${NOWEB_SOURCE}" ]
22281 \begin_inset Newline newline
22282 \end_inset
22283
22284 then
22285 \begin_inset Newline newline
22286 \end_inset
22287
22288   NOWEB_SOURCE=myfile.nw
22289 \begin_inset Newline newline
22290 \end_inset
22291
22292 fi
22293 \begin_inset Newline newline
22294 \end_inset
22295
22296 [...
22297  code to extract files ...]
22298 \begin_inset Newline newline
22299 \end_inset
22300
22301 [...
22302  code to compile files ...]
22303 \begin_inset Newline newline
22304 \end_inset
22305
22306 @
22307 \end_layout
22308
22309 \begin_layout Standard
22310 Look in 
22311 \emph on
22312 LIBDIR/examples/listerrors.lyx
22313 \emph default
22314  or in 
22315 \emph on
22316 LIBDIR/examples/Literate.lyx
22317 \emph default
22318  which implement two versions of the 
22319 \begin_inset Quotes eld
22320 \end_inset
22321
22322 listerrors
22323 \begin_inset Quotes erd
22324 \end_inset
22325
22326  program for some illustrations of how all of these pieces go together or
22327  in 
22328 \emph on
22329 LIBDIR/examples/noweb2lyx.lyx.
22330
22331 \emph default
22332  Interestingly, these three files show off the language-indepence of the
22333  LyX literate programming support since they are written in Python, C and
22334  Perl respectively.
22335 \end_layout
22336
22337 \begin_layout Subsubsection
22338 Configuring LyX
22339 \end_layout
22340
22341 \begin_layout Standard
22342 All the Literate Programming support is configured by the 
22343 \family sans
22344 Tools\SpecialChar \menuseparator
22345 Preferences
22346 \family default
22347  panel in the 
22348 \begin_inset Quotes eld
22349 \end_inset
22350
22351 Conversion
22352 \begin_inset Quotes erd
22353 \end_inset
22354
22355  tab.
22356  The important parts are:
22357 \end_layout
22358
22359 \begin_layout Description
22360 the
22361 \begin_inset space ~
22362 \end_inset
22363
22364
22365 \begin_inset Quotes eld
22366 \end_inset
22367
22368 literate
22369 \begin_inset Quotes erd
22370 \end_inset
22371
22372
22373 \begin_inset space ~
22374 \end_inset
22375
22376 format Set up via the Formats tab, this is where the Noweb-specific pieces
22377  are set up.
22378  The 
22379 \family sans
22380 GUI Name
22381 \family default
22382  is set to 
22383 \family typewriter
22384 NoWeb
22385 \family default
22386 , the file extension is set to 
22387 \family typewriter
22388 .nw
22389 \family default
22390 .
22391  This tells LyX to create a file with a 
22392 \family typewriter
22393 .nw
22394 \family default
22395  extension in the first step of the conversion process.
22396 \end_layout
22397
22398 \begin_layout Description
22399 the
22400 \begin_inset space ~
22401 \end_inset
22402
22403
22404 \family sans
22405 Program
22406 \family default
22407
22408 \begin_inset space ~
22409 \end_inset
22410
22411 format This is an empty format whose sole purpose is to be the endpoint
22412  of a conversion (which then allows us to set up a converter for it).
22413 \end_layout
22414
22415 \begin_layout Description
22416
22417 \family sans
22418 NoWeb
22419 \family default
22420 ->
22421 \family sans
22422 LaTeX
22423 \family default
22424  This converter performs the 
22425 \begin_inset Quotes eld
22426 \end_inset
22427
22428 weaving
22429 \begin_inset Quotes erd
22430 \end_inset
22431
22432  of the literate document.
22433  For Noweb, it is set to 
22434 \begin_inset Quotes eld
22435 \end_inset
22436
22437
22438 \family typewriter
22439 noweave -delay -index $$i > $$o
22440 \family default
22441
22442 \begin_inset Quotes erd
22443 \end_inset
22444
22445
22446 \end_layout
22447
22448 \begin_layout Description
22449
22450 \family sans
22451 NoWeb
22452 \family default
22453 ->
22454 \family sans
22455 Program
22456 \family default
22457  This performs the 
22458 \begin_inset Quotes eld
22459 \end_inset
22460
22461 tangling step
22462 \begin_inset Quotes erd
22463 \end_inset
22464
22465 .
22466  As stated above, the Converter is set to 
22467 \begin_inset Quotes eld
22468 \end_inset
22469
22470
22471 \family typewriter
22472 build-script $$i
22473 \family default
22474
22475 \begin_inset Quotes erd
22476 \end_inset
22477
22478 , with Flags set to 
22479 \begin_inset Quotes eld
22480 \end_inset
22481
22482
22483 \family typewriter
22484 originaldir,parselog=listerrors
22485 \family default
22486
22487 \begin_inset Quotes erd
22488 \end_inset
22489
22490 .
22491 \end_layout
22492
22493 \begin_layout Subsubsection
22494 Debug extensions
22495 \end_layout
22496
22497 \begin_layout Standard
22498 There is also a new function implemented in the LyX server, the 
22499 \begin_inset Quotes eld
22500 \end_inset
22501
22502 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
22503  
22504 \end_layout
22505
22506 \begin_layout Standard
22507 When debugging code with ddd/gdb, it is possible to invoke a text editor
22508  at the current execution position with a single key stroke.
22509  The default ddd configuration for that is shift-ctrl-V.
22510  It happens that you can define the editor command line invocation in ddd
22511  by accessing the 
22512 \family sans
22513 Edit\SpecialChar \menuseparator
22514 Preferences\SpecialChar \menuseparator
22515 Helpers
22516 \family default
22517  dialog and changing the "Edit Sources" entry.
22518 \end_layout
22519
22520 \begin_layout Standard
22521 I take advantage of the new created LyX server function and this ddd feature,
22522  and set 
22523 \begin_inset Quotes eld
22524 \end_inset
22525
22526 Edit Sources
22527 \begin_inset Quotes erd
22528 \end_inset
22529
22530  to:
22531 \end_layout
22532
22533 \begin_layout LyX-Code
22534 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
22535 \end_layout
22536
22537 \begin_layout Standard
22538 With this, whenever you are using ddd and find a point in the program that
22539  you want to edit, you just press shift-ctrl-V (in the ddd window), and
22540  ddd you forward this information to LyX through the LyX server and then
22541  the LyX window will show the same file with the cursor at the same position
22542  ddd was pointing to.
22543  No more guessing or long scrolling to locate a point in the program back
22544  from debugging !
22545 \end_layout
22546
22547 \begin_layout Standard
22548 Note however that you must enable the LyX server to get this feature working
22549  (it is disabled by default).
22550  You can enable it in 
22551 \family sans
22552 Preferences
22553 \family default
22554  (tabs 
22555 \family sans
22556 Inputs
22557 \family default
22558
22559 \family sans
22560 Paths
22561 \family default
22562 ) by entering in the 
22563 \family sans
22564 LyXserver pipe
22565 \family default
22566  a path like 
22567 \begin_inset Quotes eld
22568 \end_inset
22569
22570
22571 \family typewriter
22572 /home/<your-home-directory>/.lyx/lyxpipe
22573 \family default
22574
22575 \begin_inset Quotes erd
22576 \end_inset
22577
22578
22579 \end_layout
22580
22581 \begin_layout Standard
22582 Read the LyX server documentation in the 
22583 \emph on
22584 Customization Manual
22585 \emph default
22586  for further information.
22587 \end_layout
22588
22589 \begin_layout Subsubsection
22590 Toolbar extensions
22591 \end_layout
22592
22593 \begin_layout Standard
22594 There are six new buttons that can be added to your LyX toolbar.
22595  Five of these buttons are short cuts to layout styles: 
22596 \family sans
22597 Standard
22598 \family default
22599
22600 \family sans
22601 Section
22602 \family default
22603
22604 \family sans
22605 LaTeX
22606 \family default
22607
22608 \family sans
22609 LyX-Code
22610 \family default
22611 , and 
22612 \family sans
22613 Scrap
22614 \family default
22615 .
22616  The last one is a short cut to the 
22617 \begin_inset Quotes eld
22618 \end_inset
22619
22620 Build Program
22621 \begin_inset Quotes erd
22622 \end_inset
22623
22624  File menu entry.
22625  
22626 \end_layout
22627
22628 \begin_layout Standard
22629 LyX has a range of buttons that are available for tool bar customization.
22630  In my toolbar I like to combine the six short cuts above with two more:
22631  One for 
22632 \family sans
22633 View
22634 \family default
22635 \SpecialChar \menuseparator
22636
22637 \family sans
22638 Update
22639 \family default
22640 \SpecialChar \menuseparator
22641
22642 \family sans
22643 DVI
22644 \family default
22645  and the other for 
22646 \family sans
22647 View\SpecialChar \menuseparator
22648 DVI
22649 \family default
22650  File menu entries.
22651  Here is how it looks like:
22652 \end_layout
22653
22654 \begin_layout LyX-Code
22655 Toolbar
22656 \end_layout
22657
22658 \begin_layout LyX-Code
22659   Layouts
22660 \end_layout
22661
22662 \begin_layout LyX-Code
22663   Icon "layout Standard"
22664 \end_layout
22665
22666 \begin_layout LyX-Code
22667   Icon "layout Section"
22668 \end_layout
22669
22670 \begin_layout LyX-Code
22671   Icon "layout LaTeX"
22672 \end_layout
22673
22674 \begin_layout LyX-Code
22675   Icon "layout LyX-Code"
22676 \end_layout
22677
22678 \begin_layout LyX-Code
22679   Icon "layout Scrap"
22680 \end_layout
22681
22682 \begin_layout LyX-Code
22683   Separator
22684 \end_layout
22685
22686 \begin_layout LyX-Code
22687   Icon "buffer-view"
22688 \end_layout
22689
22690 \begin_layout LyX-Code
22691   Icon "buffer-typeset"
22692 \end_layout
22693
22694 \begin_layout LyX-Code
22695   Icon "build-program"
22696 \end_layout
22697
22698 \begin_layout LyX-Code
22699   Separator
22700 \end_layout
22701
22702 \begin_layout LyX-Code
22703 .
22704 \end_layout
22705
22706 \begin_layout LyX-Code
22707 .
22708 \end_layout
22709
22710 \begin_layout LyX-Code
22711 .
22712 \end_layout
22713
22714 \begin_layout LyX-Code
22715 End
22716 \end_layout
22717
22718 \begin_layout Subsubsection
22719 Colors customization
22720 \end_layout
22721
22722 \begin_layout Standard
22723 There are a number of colors in LyX that can be customized in 
22724 \family sans
22725 Preferences
22726 \family default
22727 .
22728  One of the things that bothers people is the LaTeX font color.
22729  The default color is red, since the scraps uses LaTeX font, and there is
22730  a lot of scraps in literate documents, you may get tired of seeing everything
22731  in red.
22732  You can change it by going to the tabs 
22733 \family sans
22734 Look&Feel
22735 \family default
22736
22737 \family sans
22738 Colors.
22739 \end_layout
22740
22741 \begin_layout Standard
22742 The next thing is the visible presence of the newline character in the screen.
22743  You can choose the color of this particular character and make it blend
22744  in the background.
22745  I recommend you choosing a color that is close to the background but not
22746  equal, that way you still can see it is there, but it is not bothering
22747  you anymore.
22748  
22749 \end_layout
22750
22751 \begin_layout Chapter
22752 Secrets of the LaTeX Masters
22753 \begin_inset CommandInset label
22754 LatexCommand label
22755 name "cha:secrets"
22756
22757 \end_inset
22758
22759
22760 \end_layout
22761
22762 \begin_layout Standard
22763 Though LyX is a powerful tool, it cannot hope to support everything that
22764  can be done with pure TeX/LaTeX.
22765  However, many familiar dirty TeX and LaTeX tricks can be done within LyX,
22766  as long as you are not afraid to use that 
22767 \begin_inset Quotes eld
22768 \end_inset
22769
22770 TeX
22771 \begin_inset Quotes erd
22772 \end_inset
22773
22774  button on the toolbar or add things to the LaTeX preamble.
22775  This section lists some tips, tricks, and otherwise cool ideas to give
22776  your document that extra little flair.
22777  
22778 \emph on
22779 Do try this at home
22780 \emph default
22781 , just start with something a little smaller and less important than your
22782  dissertation!
22783 \end_layout
22784
22785 \begin_layout Standard
22786 Most ideas in this section require less common files in your LaTeX installation.
22787  If you have a system like TeXLive, most will already be available.
22788  A few, however, will need to be downloaded from one of the CTAN archives.
22789  Often, there are several ways to do something, or several LaTeX style files
22790  which do the same thing.
22791  We do not endorse one choice over another, we simply claim that we have
22792  done a particular task with a particular file.
22793  Put on your wizard hat, keep an eye out for dragons, and let us begin.
22794 \end_layout
22795
22796 \begin_layout Section
22797 Multiple Columns
22798 \end_layout
22799
22800 \begin_layout Standard
22801 by 
22802 \noun on
22803 Lars Gullik Bjønnes
22804 \end_layout
22805
22806 \begin_layout Subsection
22807 Purpose
22808 \end_layout
22809
22810 \begin_layout Standard
22811 The aim for this chapter
22812 \begin_inset Foot
22813 status collapsed
22814
22815 \begin_layout Plain Layout
22816 Editor's note: Lars' original chapter was a masterful description of how
22817  to use the 
22818 \family typewriter
22819 multicol
22820 \family default
22821  package.
22822  However, it was too long to flow smoothly in this document.
22823  I have therefore chosen to excerpt the most important sections here (sorry,
22824  Lars); you can read the original chapter (and more of the story!) in the
22825  example file 
22826 \family typewriter
22827 examples/multicol.lyx
22828 \family default
22829 .
22830  — mer
22831 \end_layout
22832
22833 \end_inset
22834
22835  is to show how the LaTeX package 
22836 \family typewriter
22837 multicol
22838 \family default
22839  can be used in a LyX document.
22840  As LyX doesn't support the 
22841 \family typewriter
22842 multicol
22843 \family default
22844  package natively yet, we have to use some small hacks.
22845  By reading this section it should be obvious how to do this.
22846 \end_layout
22847
22848 \begin_layout Subsection
22849 Limitations 
22850 \end_layout
22851
22852 \begin_layout Standard
22853 The 
22854 \family typewriter
22855 multicol
22856 \family default
22857  package allows switching between one and multicolumn format on the same
22858  page.
22859  Footnotes are handled correctly (for the most part), but will be placed
22860  at the bottom of the page and not under each column.
22861  LaTeX's float mechanism, however, is partly disabled in the current implementat
22862 ion.
22863  At the moment only page-wide floats can be used within the scope of the
22864  environment.
22865 \end_layout
22866
22867 \begin_layout Subsection
22868 Examples
22869 \end_layout
22870
22871 \begin_layout Subsubsection
22872 Two columns
22873 \end_layout
22874
22875 \begin_layout Standard
22876 If you want to have two columns in your text, you have use LaTeX mode to
22877  insert 
22878 \family typewriter
22879
22880 \backslash
22881 begin{multicols}{2}
22882 \family default
22883  at the point where you want the two column layout to start, and then 
22884 \family typewriter
22885
22886 \backslash
22887 end{multicols}
22888 \family default
22889  where you want it to end.
22890  Like this:
22891 \end_layout
22892
22893 \begin_layout Standard
22894 \begin_inset ERT
22895 status open
22896
22897 \begin_layout Plain Layout
22898
22899
22900 \backslash
22901 begin{multicols}{2}
22902 \end_layout
22903
22904 \end_inset
22905
22906
22907 \end_layout
22908
22909 \begin_layout Standard
22910 \noindent
22911
22912 \series bold
22913 \size small
22914 The Adventure of the Empty House
22915 \series default
22916
22917 \begin_inset Newline newline
22918 \end_inset
22919
22920 by 
22921 \noun on
22922 Sir Arthur Conan Doyle
22923 \end_layout
22924
22925 \begin_layout Standard
22926
22927 \size small
22928 It was in the spring of the year 1894 that all London was interested, and
22929  the fashionable world dismayed, by the murder of the Honourable Ronald
22930  Adair under most unusual and inexplicable circumstances.
22931  The public has already learned those particulars of the crime which came
22932  out in the police investigation, but a good deal was suppressed upon that
22933  occasion, since the case for the prosecution was so overwhelmingly strong
22934  that it was not necessary to bring forward all the facts.
22935  Only now, at the end of nearly ten years, am I allowed to supply those
22936  missing links which make up the whole of that remarkable chain.
22937  The crime was of interest in itself, but that interest was as nothing to
22938  me compared to the inconceivable sequel, which afforded me the greatest
22939  shock and surprise of any event in my adventurous life.
22940  Even now, after this long interval, I find myself thrilling as I think
22941  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22942 ty which utterly submerged my mind.
22943  Let me say to that public, which has shown some interest in those glimpses
22944  which I have occasionally given them of the thoughts and actions of a very
22945  remarkable man, that they are not to blame me if I have not shared my knowledge
22946  with them, for I should have considered it my first duty to do so, had
22947  I not been barred by a positive prohibition from his own lips, which was
22948  only withdrawn upon the third of last month.
22949 \end_layout
22950
22951 \begin_layout Standard
22952 \begin_inset ERT
22953 status open
22954
22955 \begin_layout Plain Layout
22956
22957
22958 \backslash
22959 end{multicols}
22960 \end_layout
22961
22962 \end_inset
22963
22964
22965 \end_layout
22966
22967 \begin_layout Subsubsection
22968 Multiple columns
22969 \end_layout
22970
22971 \begin_layout Standard
22972 The same pattern is used when you want more than two columns:
22973 \end_layout
22974
22975 \begin_layout Standard
22976 \begin_inset ERT
22977 status open
22978
22979 \begin_layout Plain Layout
22980
22981
22982 \backslash
22983 begin{multicols}{3}
22984 \end_layout
22985
22986 \end_inset
22987
22988
22989 \end_layout
22990
22991 \begin_layout Standard
22992
22993 \size footnotesize
22994 It can be imagined that my close intimacy with Sherlock Holmes had interested
22995  me deeply in crime, and that after his disappearance I never failed to
22996  read with care the various problems which came before the public.
22997  And I even attempted, more than once, for my own private satisfaction,
22998  to employ his methods in their solution, though with indifferent success.
22999  There was none, however, which appealed to me like this tragedy of Ronald
23000  Adair.
23001  As I read the evidence at the inquest, which led up to a verdict of willful
23002  murder against some person or persons unknown, I realized more clearly
23003  than I had ever done the loss which the community had sustained by the
23004  death of Sherlock Holmes.
23005  There were points about this strange business which would, I was sure,
23006  have specially appealed to him, and the efforts of the police would have
23007  been supplemented, or more probably anticipated, by the trained observation
23008  and the alert mind of the first criminal agent in Europe.
23009  All day, as I drove upon my round, I turned over the case in my mind and
23010  found no explanation which appeared to me to be adequate.
23011  At the risk of telling a twice-told tale, I will recapitulate the facts
23012  as they were known to the public at the conclusion of the inquest.
23013 \end_layout
23014
23015 \begin_layout Standard
23016 \begin_inset ERT
23017 status open
23018
23019 \begin_layout Plain Layout
23020
23021
23022 \backslash
23023 end{multicols}
23024 \end_layout
23025
23026 \end_inset
23027
23028
23029 \end_layout
23030
23031 \begin_layout Standard
23032 You can have more than 3 columns if you want to, but that might not be very
23033  pleasant for the eye.
23034 \end_layout
23035
23036 \begin_layout Subsubsection
23037 Columns inside columns
23038 \end_layout
23039
23040 \begin_layout Standard
23041 You can even have columns inside columns:
23042 \end_layout
23043
23044 \begin_layout Standard
23045 \begin_inset ERT
23046 status open
23047
23048 \begin_layout Plain Layout
23049
23050
23051 \backslash
23052 begin{multicols}{2}
23053 \end_layout
23054
23055 \end_inset
23056
23057
23058 \end_layout
23059
23060 \begin_layout Standard
23061
23062 \size footnotesize
23063 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
23064  at that time governor of one of the Australian colonies.
23065  Adair's mother had returned from Australia to undergo the operation for
23066  cataract, and she, her son Ronald, and her daughter Hilda were living together
23067  at 427 Park Lane.
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 begin{multicols}{2}
23079 \end_layout
23080
23081 \end_inset
23082
23083
23084 \end_layout
23085
23086 \begin_layout Standard
23087
23088 \size footnotesize
23089 The youth moved in the best society–had, so far as was known, no enemies
23090  and no particular vices.
23091  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
23092  had been broken off by mutual consent some months before, and there was
23093  no sign that it had left any very profound feeling behind it.
23094  For the rest {sic} the man's life moved in a narrow and conventional circle,
23095  for his habits were quiet and his nature unemotional.
23096  Yet it was upon this easy-going young aristocrat that death came, in most
23097  strange and unexpected form, between the hours of ten and eleven-twenty
23098  on the night of March 30, 1894.
23099 \end_layout
23100
23101 \begin_layout Standard
23102 \begin_inset ERT
23103 status open
23104
23105 \begin_layout Plain Layout
23106
23107
23108 \backslash
23109 end{multicols}
23110 \end_layout
23111
23112 \end_inset
23113
23114
23115 \end_layout
23116
23117 \begin_layout Standard
23118
23119 \size footnotesize
23120 Ronald Adair was fond of cards–playing continually, but never for such stakes
23121  as would hurt him.
23122  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
23123  It was shown that, after dinner on the day of his death, he had played
23124  a rubber of whist at the latter club.
23125  He had also played there in the afternoon.
23126
23127 \size default
23128  
23129 \size footnotesize
23130 The evidence of those who had played with him– Mr.
23131  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
23132  and that there was a fairly equal fall of the cards.
23133  Adair might have lost five pounds, but not more.
23134  His fortune was a considerable one, and such a loss could not in any way
23135  affect him.
23136  He had played nearly every day at one club or other, but he was a cautious
23137  player, and usually rose a winner.
23138  It came out in evidence that, in partnership with Colonel Moran, he had
23139  actually won as much as four hundred and twenty pounds in a sitting, some
23140  weeks before, from Godfrey Milner and Lord Balmoral.
23141  So much for his recent history as it came out at the inquest.
23142 \end_layout
23143
23144 \begin_layout Standard
23145 \begin_inset ERT
23146 status open
23147
23148 \begin_layout Plain Layout
23149
23150
23151 \backslash
23152 end{multicols}
23153 \end_layout
23154
23155 \end_inset
23156
23157
23158 \end_layout
23159
23160 \begin_layout Standard
23161 Please do read the file 
23162 \family typewriter
23163 examples/multicol.lyx
23164 \family default
23165  for more advanced examples including column and header spacing, vertical
23166  separator lines, and more.
23167 \end_layout
23168
23169 \begin_layout Section
23170 Numbering in the 
23171 \family sans
23172 Enumerate
23173 \family default
23174  Paragraph Environment
23175 \begin_inset Argument
23176 status collapsed
23177
23178 \begin_layout Plain Layout
23179 Numbering in Enumerate
23180 \end_layout
23181
23182 \end_inset
23183
23184
23185 \end_layout
23186
23187 \begin_layout Standard
23188 by 
23189 \noun on
23190 John Weiss
23191 \end_layout
23192
23193 \begin_layout Standard
23194 \begin_inset VSpace bigskip
23195 \end_inset
23196
23197
23198 \end_layout
23199
23200 \begin_layout Standard
23201 \noindent
23202 The default numbering for the 
23203 \family sans
23204 Enumerate
23205 \family default
23206  paragraph environment begins with Arabic numbers and ends with uppercase
23207  letters.
23208  Suppose, however, you wanted a different type of numbering scheme.
23209  Here's a quickie example of how to change the numbering scheme:
23210 \end_layout
23211
23212 \begin_layout LyX-Code
23213
23214 \backslash
23215 renewcommand{
23216 \backslash
23217 labelenumi}{
23218 \backslash
23219 Roman{enumi}.}
23220 \end_layout
23221
23222 \begin_layout LyX-Code
23223
23224 \backslash
23225 renewcommand{
23226 \backslash
23227 labelenumii}{
23228 \backslash
23229 Alph{enumii}.}
23230 \end_layout
23231
23232 \begin_layout LyX-Code
23233
23234 \backslash
23235 renewcommand{
23236 \backslash
23237 labelenumiii}{
23238 \backslash
23239 arabic{enumiii}.}
23240 \end_layout
23241
23242 \begin_layout LyX-Code
23243
23244 \backslash
23245 renewcommand{
23246 \backslash
23247 labelenumiv}{
23248 \backslash
23249 alph{enumiv}.)}
23250 \end_layout
23251
23252 \begin_layout Standard
23253 \SpecialChar \ldots{}
23254  which changes the numbering scheme to uppercase Roman numerals, uppercase
23255  letters, Arabic numbers, and lowercase letter.
23256 \end_layout
23257
23258 \begin_layout Standard
23259 Additionally, the previous example also adds a little bit extra to the numbering
23260  scheme.
23261  For example, the first level label actually looks like: 
23262 \begin_inset Quotes eld
23263 \end_inset
23264
23265 I.
23266 \begin_inset Quotes erd
23267 \end_inset
23268
23269 .
23270  For ease of reading, we'll describe what the numbering schemes look like
23271  using a notation something like this: <
23272 \begin_inset Quotes eld
23273 \end_inset
23274
23275 I.
23276 \begin_inset Quotes erd
23277 \end_inset
23278
23279 ,
23280 \begin_inset space ~
23281 \end_inset
23282
23283
23284 \begin_inset Quotes erd
23285 \end_inset
23286
23287 A.
23288 \begin_inset Quotes erd
23289 \end_inset
23290
23291 ,
23292 \begin_inset space ~
23293 \end_inset
23294
23295
23296 \begin_inset Quotes erd
23297 \end_inset
23298
23299 1.
23300 \begin_inset Quotes erd
23301 \end_inset
23302
23303 ,
23304 \begin_inset space ~
23305 \end_inset
23306
23307
23308 \begin_inset Quotes eld
23309 \end_inset
23310
23311 a.)
23312 \begin_inset Quotes erd
23313 \end_inset
23314
23315 >.
23316  
23317 \end_layout
23318
23319 \begin_layout Standard
23320 As you can see in the example, there is a label command for each nesting
23321  level, 
23322 \family typewriter
23323
23324 \backslash
23325 labelenumi
23326 \family default
23327  \SpecialChar \ldots{}
23328  
23329 \family typewriter
23330
23331 \backslash
23332 labelenumiv
23333 \family default
23334 , as well as a counter, 
23335 \family typewriter
23336 enumi
23337 \family default
23338  \SpecialChar \ldots{}
23339  
23340 \family typewriter
23341 enumiv
23342 \family default
23343 .
23344  There are also five 
23345 \begin_inset Quotes eld
23346 \end_inset
23347
23348 number printing
23349 \begin_inset Quotes erd
23350 \end_inset
23351
23352  commands, 
23353 \family typewriter
23354
23355 \backslash
23356 arabic{}
23357 \family default
23358
23359 \family typewriter
23360
23361 \backslash
23362 roman{}
23363 \family default
23364
23365 \family typewriter
23366
23367 \backslash
23368 Roman{}
23369 \family default
23370
23371 \family typewriter
23372
23373 \backslash
23374 alph{}
23375 \family default
23376 , and 
23377 \family typewriter
23378
23379 \backslash
23380 Alph{}
23381 \family default
23382 , each of which take one counter as an argument.
23383  You can add characters before or after these, but there's no need to add
23384  spaces.
23385 \end_layout
23386
23387 \begin_layout Standard
23388 You can get really fancy with these.
23389  For example:
23390 \end_layout
23391
23392 \begin_layout LyX-Code
23393
23394 \backslash
23395 renewcommand{
23396 \backslash
23397 labelenumi}{
23398 \backslash
23399 #
23400 \backslash
23401 Alph{enumi}
23402 \backslash
23403 #}
23404 \end_layout
23405
23406 \begin_layout LyX-Code
23407
23408 \backslash
23409 renewcommand{
23410 \backslash
23411 labelenumii}{
23412 \backslash
23413 Alph{enumi}.
23414 \backslash
23415 arabic{enumii}}
23416 \end_layout
23417
23418 \begin_layout LyX-Code
23419
23420 \backslash
23421 renewcommand{
23422 \backslash
23423 labelenumiii}{
23424 \backslash
23425 alph{enumiii}+}
23426 \end_layout
23427
23428 \begin_layout LyX-Code
23429
23430 \backslash
23431 renewcommand{
23432 \backslash
23433 labelenumiv}{(
23434 \backslash
23435 roman{enumiv})}
23436 \end_layout
23437
23438 \begin_layout Standard
23439 produces the somewhat out of hand numbering scheme: <
23440 \begin_inset Quotes eld
23441 \end_inset
23442
23443 #A#
23444 \begin_inset Quotes erd
23445 \end_inset
23446
23447 ,
23448 \begin_inset space ~
23449 \end_inset
23450
23451
23452 \begin_inset Quotes erd
23453 \end_inset
23454
23455 A.1
23456 \begin_inset Quotes erd
23457 \end_inset
23458
23459 ,
23460 \begin_inset space ~
23461 \end_inset
23462
23463
23464 \begin_inset Quotes erd
23465 \end_inset
23466
23467 a+
23468 \begin_inset Quotes erd
23469 \end_inset
23470
23471 ,
23472 \begin_inset space ~
23473 \end_inset
23474
23475
23476 \begin_inset Quotes eld
23477 \end_inset
23478
23479 (i)
23480 \begin_inset Quotes erd
23481 \end_inset
23482
23483 >.
23484  
23485 \end_layout
23486
23487 \begin_layout Section
23488 Dropped Capitals
23489 \end_layout
23490
23491 \begin_layout Standard
23492 by 
23493 \noun on
23494 Mike Ressler
23495 \end_layout
23496
23497 \begin_layout Standard
23498 \begin_inset VSpace bigskip
23499 \end_inset
23500
23501
23502 \end_layout
23503
23504 \begin_layout Standard
23505 \noindent
23506 \begin_inset ERT
23507 status collapsed
23508
23509 \begin_layout Plain Layout
23510
23511
23512 \backslash
23513 newfont{
23514 \backslash
23515 tmpfont}{cmr17 scaled 2500}{
23516 \backslash
23517 tmpfont T}
23518 \backslash
23519 vspace*{-8.4ex}
23520 \end_layout
23521
23522 \end_inset
23523
23524
23525 \end_layout
23526
23527 \begin_layout Standard
23528 \noindent
23529 \begin_inset ERT
23530 status open
23531
23532 \begin_layout Plain Layout
23533
23534
23535 \backslash
23536 hangindent=3.3em 
23537 \backslash
23538 hangafter=-3
23539 \end_layout
23540
23541 \end_inset
23542
23543  hose of you who like the style of old books probably also like 
23544 \begin_inset Quotes eld
23545 \end_inset
23546
23547 dropped capitals
23548 \begin_inset Quotes erd
23549 \end_inset
23550
23551 —those large capital letters which begin each new chapter or section.
23552  Implementing them with plain LyX/LaTeX is straightforward (assuming you
23553  know some plain TeX!) but does require a lot of work and many iterations,
23554  as you can see by all the ugly TeX-mode stuff at the beginning of this
23555  paragraph.
23556 \end_layout
23557
23558 \begin_layout Standard
23559 \begin_inset ERT
23560 status open
23561
23562 \begin_layout Plain Layout
23563
23564
23565 \backslash
23566 verb+
23567 \backslash
23568 bigdrop{-1em}{3}{ptmri}{T}+
23569 \end_layout
23570
23571 \end_inset
23572
23573 here is a much easier way of doing this, of course.
23574  The 
23575 \family typewriter
23576 dropcaps
23577 \family default
23578  (or the newer 
23579 \family typewriter
23580 dropping
23581 \family default
23582 ) package from CTAN allows a simple way to add such letters to your documents.
23583  Since this package is not a standard part of TeXLive, I can't demonstrate
23584  it within this document, but if you copy this paragraph to a new document,
23585  delete the 
23586 \begin_inset Quotes eld
23587 \end_inset
23588
23589
23590 \family typewriter
23591
23592 \backslash
23593 verb
23594 \family default
23595
23596 \begin_inset Quotes erd
23597 \end_inset
23598
23599  and the pluses from the TeX code at the beginning of the paragraph, and
23600  add 
23601 \family typewriter
23602
23603 \backslash
23604 usepackage{dropcaps}
23605 \family default
23606  to your LaTeX preamble, you will get a nice Times Roman Italic 
23607 \begin_inset Quotes eld
23608 \end_inset
23609
23610 T
23611 \begin_inset Quotes erd
23612 \end_inset
23613
23614 , whose height is three lines of text and which protrudes 1 em into the
23615  margin.
23616  (Make certain you have copied 
23617 \begin_inset Quotes eld
23618 \end_inset
23619
23620
23621 \family typewriter
23622 dropcaps.sty
23623 \family default
23624
23625 \begin_inset Quotes erd
23626 \end_inset
23627
23628  into a directory where TeX can see it.) The first argument is the amount
23629  of indentation; in this case the negative sign moves it into the margin.
23630  The second argument is the height of the letter in number of lines of text.
23631  The third argument is the font name: virtually anything which has a tfm
23632  file should work (wade through the 
23633 \family typewriter
23634 .../texmf/fonts/tfm
23635 \family default
23636  directory for possibilities).
23637  My personal favorite is 
23638 \begin_inset Quotes eld
23639 \end_inset
23640
23641
23642 \family typewriter
23643 yinit
23644 \family default
23645
23646 \begin_inset Quotes erd
23647 \end_inset
23648
23649 , a fancy German font specifically designed for dropped capitals.
23650  The fourth argument is the letter (or letters) to be dropped.
23651  The 
23652 \family typewriter
23653 dropping
23654 \family default
23655  package also offers the 
23656 \family typewriter
23657
23658 \backslash
23659 bigdrop
23660 \family default
23661  command, as well as a slightly simplified 
23662 \family typewriter
23663
23664 \backslash
23665 dropping
23666 \family default
23667  command.
23668 \end_layout
23669
23670 \begin_layout Section
23671 Non-standard Paragraph Shapes
23672 \end_layout
23673
23674 \begin_layout Standard
23675 by 
23676 \noun on
23677 Mike Ressler
23678 \end_layout
23679
23680 \begin_layout Standard
23681 \begin_inset VSpace bigskip
23682 \end_inset
23683
23684
23685 \end_layout
23686
23687 \begin_layout Standard
23688 \begin_inset ERT
23689 status collapsed
23690
23691 \begin_layout Plain Layout
23692
23693
23694 \backslash
23695 begin{sloppypar}
23696 \end_layout
23697
23698 \end_inset
23699
23700
23701 \end_layout
23702
23703 \begin_layout Standard
23704 \begin_inset ERT
23705 status collapsed
23706
23707 \begin_layout Plain Layout
23708
23709
23710 \backslash
23711 newdimen
23712 \backslash
23713 varunit 
23714 \end_layout
23715
23716 \begin_layout Plain Layout
23717
23718
23719 \backslash
23720 setlength{
23721 \backslash
23722 varunit}{4.5in}
23723 \end_layout
23724
23725 \end_inset
23726
23727
23728 \end_layout
23729
23730 \begin_layout Standard
23731 \noindent
23732 \begin_inset ERT
23733 status collapsed
23734
23735 \begin_layout Plain Layout
23736
23737
23738 \backslash
23739 parshape 19 0.45
23740 \backslash
23741 varunit 0.332
23742 \backslash
23743 varunit
23744 \end_layout
23745
23746 \begin_layout Plain Layout
23747
23748 0.40
23749 \backslash
23750 varunit 0.300
23751 \backslash
23752 varunit
23753 \end_layout
23754
23755 \begin_layout Plain Layout
23756
23757 0.35
23758 \backslash
23759 varunit 0.293
23760 \backslash
23761 varunit
23762 \end_layout
23763
23764 \begin_layout Plain Layout
23765
23766 0.30
23767 \backslash
23768 varunit 0.300
23769 \backslash
23770 varunit
23771 \end_layout
23772
23773 \begin_layout Plain Layout
23774
23775 0.25
23776 \backslash
23777 varunit 0.317
23778 \backslash
23779 varunit
23780 \end_layout
23781
23782 \begin_layout Plain Layout
23783
23784 0.20
23785 \backslash
23786 varunit 0.342
23787 \backslash
23788 varunit
23789 \end_layout
23790
23791 \begin_layout Plain Layout
23792
23793 0.15
23794 \backslash
23795 varunit 0.373
23796 \backslash
23797 varunit
23798 \end_layout
23799
23800 \begin_layout Plain Layout
23801
23802 0.10
23803 \backslash
23804 varunit 0.410
23805 \backslash
23806 varunit
23807 \end_layout
23808
23809 \begin_layout Plain Layout
23810
23811 0.05
23812 \backslash
23813 varunit 0.453
23814 \backslash
23815 varunit
23816 \end_layout
23817
23818 \begin_layout Plain Layout
23819
23820 0.00
23821 \backslash
23822 varunit 0.500
23823 \backslash
23824 varunit
23825 \end_layout
23826
23827 \begin_layout Plain Layout
23828
23829 0.05
23830 \backslash
23831 varunit 0.453
23832 \backslash
23833 varunit
23834 \end_layout
23835
23836 \begin_layout Plain Layout
23837
23838 0.10
23839 \backslash
23840 varunit 0.410
23841 \backslash
23842 varunit
23843 \end_layout
23844
23845 \begin_layout Plain Layout
23846
23847 0.15
23848 \backslash
23849 varunit 0.373
23850 \backslash
23851 varunit
23852 \end_layout
23853
23854 \begin_layout Plain Layout
23855
23856 0.20
23857 \backslash
23858 varunit 0.342
23859 \backslash
23860 varunit
23861 \end_layout
23862
23863 \begin_layout Plain Layout
23864
23865 0.25
23866 \backslash
23867 varunit 0.317
23868 \backslash
23869 varunit
23870 \end_layout
23871
23872 \begin_layout Plain Layout
23873
23874 0.30
23875 \backslash
23876 varunit 0.300
23877 \backslash
23878 varunit
23879 \end_layout
23880
23881 \begin_layout Plain Layout
23882
23883 0.35
23884 \backslash
23885 varunit 0.293
23886 \backslash
23887 varunit
23888 \end_layout
23889
23890 \begin_layout Plain Layout
23891
23892 0.40
23893 \backslash
23894 varunit 0.300
23895 \backslash
23896 varunit
23897 \end_layout
23898
23899 \begin_layout Plain Layout
23900
23901 0.45
23902 \backslash
23903 varunit 0.332
23904 \backslash
23905 varunit
23906 \end_layout
23907
23908 \begin_layout Plain Layout
23909
23910 \end_layout
23911
23912 \end_inset
23913
23914 There are times when the tyranny of rectangular paragraphs must be overthrown.
23915  In such situations, a call to the delightful plain TeX command 
23916 \family typewriter
23917
23918 \backslash
23919 parshape
23920 \family default
23921  is called for.
23922  As you can see, completely arbitrary shapes can be laid out with a suitable
23923  set of linelength definitions.
23924  While this parshape may look a bit silly and useless, one could conceive
23925  of situations such as finely tuned dropped capitals, word wrapping around
23926  non-rectangular graphics, etc.
23927  which will benefit from such handcrafting.
23928 \end_layout
23929
23930 \begin_layout Standard
23931 \begin_inset VSpace bigskip
23932 \end_inset
23933
23934
23935 \end_layout
23936
23937 \begin_layout Standard
23938 The syntax is 
23939 \family typewriter
23940
23941 \backslash
23942 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
23943  #nindent #nlength
23944 \family default
23945 , where 
23946 \family typewriter
23947 numlines
23948 \family default
23949  is the number of lines of text which define the paragraph.
23950  If there turn out to be fewer lines, the shape is truncated; if there are
23951  more, the excess lines have the same dimensions as the last line of the
23952  definition.
23953  The 
23954 \family typewriter
23955 #nindent
23956 \family default
23957  and 
23958 \family typewriter
23959 #nlength
23960 \family default
23961  entries specify the indentation of the line from the left margin, and the
23962  length of the line as measured from that point.
23963  The shape applies only to the current paragraph; everything is reset to
23964  normal for the next paragraph.
23965 \end_layout
23966
23967 \begin_layout Standard
23968 \begin_inset ERT
23969 status collapsed
23970
23971 \begin_layout Plain Layout
23972
23973
23974 \backslash
23975 end{sloppypar}
23976 \end_layout
23977
23978 \end_inset
23979
23980
23981 \end_layout
23982
23983 \begin_layout Section
23984 Summary
23985 \end_layout
23986
23987 \begin_layout Standard
23988 As you can see, the examples in this section range from the useful to the
23989  whimsical.
23990  While I don't expect that anyone will ever need the paragraph shape demonstrate
23991 d in the last section, the important point is that you can do almost anything
23992  you want in LyX if you are willing to figure out how to do it in TeX and
23993  LaTeX.
23994  TeX is a fantastically powerful typesetting system and all that power is
23995  available to you since LyX uses it as its backend.
23996  Happy LyXing!
23997 \end_layout
23998
23999 \end_body
24000 \end_document