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