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