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