]> git.lyx.org Git - features.git/blob - lib/doc/Additional.lyx
doc/template/examples files: port recent changes
[features.git] / lib / doc / Additional.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 510
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30 \end_preamble
31 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 theorems-ams
36 theorems-ams-extended
37 multicol
38 shapepar
39 \end_modules
40 \maintain_unincluded_children false
41 \language english
42 \language_package default
43 \inputencoding auto
44 \fontencoding global
45 \font_roman "lmodern" "default"
46 \font_sans "lmss" "default"
47 \font_typewriter "lmtt" "default"
48 \font_math "auto" "auto"
49 \font_default_family default
50 \use_non_tex_fonts false
51 \font_sc false
52 \font_osf false
53 \font_sf_scale 100 100
54 \font_tt_scale 100 100
55 \use_microtype false
56 \graphics default
57 \default_output_format pdf2
58 \output_sync 0
59 \bibtex_command default
60 \index_command default
61 \paperfontsize 12
62 \spacing single
63 \use_hyperref true
64 \pdf_title "LyX's Additional Features manual"
65 \pdf_author "LyX Team"
66 \pdf_subject "LyX's additional features documentation"
67 \pdf_keywords "LyX, Documentation, Additional"
68 \pdf_bookmarks true
69 \pdf_bookmarksnumbered true
70 \pdf_bookmarksopen false
71 \pdf_bookmarksopenlevel 1
72 \pdf_breaklinks false
73 \pdf_pdfborder false
74 \pdf_colorlinks true
75 \pdf_backref false
76 \pdf_pdfusetitle false
77 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
78 \papersize a4paper
79 \use_geometry false
80 \use_package amsmath 1
81 \use_package amssymb 1
82 \use_package cancel 0
83 \use_package esint 0
84 \use_package mathdots 1
85 \use_package mathtools 0
86 \use_package mhchem 1
87 \use_package stackrel 0
88 \use_package stmaryrd 0
89 \use_package undertilde 0
90 \cite_engine basic
91 \cite_engine_type default
92 \biblio_style plain
93 \use_bibtopic false
94 \use_indices false
95 \paperorientation portrait
96 \suppress_date false
97 \justification true
98 \use_refstyle 0
99 \notefontcolor #0000ff
100 \index Index
101 \shortcut idx
102 \color #008000
103 \end_index
104 \secnumdepth 3
105 \tocdepth 3
106 \paragraph_separation indent
107 \paragraph_indentation default
108 \quotes_language english
109 \papercolumns 1
110 \papersides 2
111 \paperpagestyle headings
112 \tracking_changes true
113 \output_changes false
114 \html_math_output 0
115 \html_css_as_file 0
116 \html_be_strict true
117 \author 424524441 "rgheck"
118 \author 893223064 "John Robert Hudson" j.r.hudson@virginmedia.com
119 \end_header
120
121 \begin_body
122
123 \begin_layout Title
124 Additional \SpecialChar LyX
125  Features
126 \end_layout
127
128 \begin_layout Subtitle
129 Version 2.
130 \change_inserted 424524441 1467174349
131 3
132 \change_deleted 424524441 1467174348
133 2
134 \change_unchanged
135 .x
136 \end_layout
137
138 \begin_layout Author
139 by the \SpecialChar LyX
140  Team
141 \begin_inset Foot
142 status collapsed
143
144 \begin_layout Plain Layout
145 \noindent
146 Principal maintainer of this file is
147 \noun on
148  Richard Heck
149 \noun default
150 .
151  If you have comments or error corrections, please send them to the \SpecialChar LyX
152  Documentati
153 on mailing list, 
154 \begin_inset Flex Code
155 status collapsed
156
157 \begin_layout Plain Layout
158 \noindent
159 <lyx-docs@lists.lyx.org>
160 \end_layout
161
162 \end_inset
163
164 .
165 \end_layout
166
167 \end_inset
168
169
170 \end_layout
171
172 \begin_layout Standard
173 \begin_inset CommandInset toc
174 LatexCommand tableofcontents
175
176 \end_inset
177
178
179 \end_layout
180
181 \begin_layout Chapter
182 Introduction
183 \end_layout
184
185 \begin_layout Standard
186 This manual is essentially Part II of the 
187 \emph on
188 User's Guide\SpecialChar endofsentence
189
190 \emph default
191  The reason for separating the two documents is simple: the 
192 \emph on
193 User's Guide
194 \emph default
195  is already quite lengthy, and it contains information on all of the basic
196  features one needs to know in order to prepare most documents.
197  However, the \SpecialChar LyX
198  Team has worked to make \SpecialChar LyX
199  extensible through various configuration
200  files and external packages.
201  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
202  package, you can
203  create a layout file (or module) for it without having to alter \SpecialChar LyX
204  itself.
205  We've already had contributions of several new features this way, and some
206  of them are documented here.
207  There are also some more `advanced' features, such as how to control the
208  presentation of bibliographies and how to work with multi-part documents,
209  that are not covered in the 
210 \emph on
211 User's Guide
212 \emph default
213  and are discussed here.
214 \end_layout
215
216 \begin_layout Standard
217 This manual also documents some special features, like fax support, version
218  control, and SGML support, which require additional software to work properly.
219  There is also a chapter on \SpecialChar LyX
220 's support for HTML.
221  And lastly, there's a chapter of \SpecialChar LaTeX
222  tools and tips, things you can use to
223  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
224 .
225  After all, \SpecialChar LyX
226  
227 \emph on
228 is
229 \emph default
230  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
231  features.
232 \end_layout
233
234 \begin_layout Standard
235 If you haven't read the 
236 \emph on
237 Introduction
238 \emph default
239  yet, you are definitely in the wrong manual.
240  The 
241 \emph on
242 Introduction
243 \emph default
244  is the first place to go, since it describes the notation and format of
245  all of the manuals.
246  You should also be thoroughly familiar with the 
247 \emph on
248 User's Guide
249 \emph default
250  and all of the basic features of \SpecialChar LyX
251  before attempting to read this one.
252 \end_layout
253
254 \begin_layout Standard
255 Since many of the topics in this manual depend heavily on \SpecialChar LyX
256 's interaction
257  with \SpecialChar LaTeX
258 , this first chapter covers the inner workings of \SpecialChar LyX
259  and how to direct
260  \SpecialChar LyX
261  to generate exactly the \SpecialChar LaTeX
262  code you want.
263  It is obviously for more seasoned \SpecialChar LyX
264  users.
265 \end_layout
266
267 \begin_layout Chapter
268 \SpecialChar LyX
269  and \SpecialChar LaTeX
270
271 \end_layout
272
273 \begin_layout Section
274 How \SpecialChar LyX
275  Uses \SpecialChar LaTeX
276
277 \end_layout
278
279 \begin_layout Standard
280 This chapter is for both \SpecialChar TeX
281 -nicians and the \SpecialChar LaTeX
282 -curious.
283  In it, we'll explain how \SpecialChar LyX
284  and \SpecialChar LaTeX
285  work together to produce printable output.
286  This is the only place in any of the manuals where we assume you know something
287  about \SpecialChar LaTeX
288 .
289 \end_layout
290
291 \begin_layout Standard
292 At one time, \SpecialChar LyX
293  was called a 
294 \begin_inset Quotes eld
295 \end_inset
296
297 WYSIWYM frontend to \SpecialChar LaTeX
298 ,
299 \begin_inset Quotes erd
300 \end_inset
301
302  but that's no longer true.
303  There are frontends to \SpecialChar LaTeX
304  out there.
305 \begin_inset Foot
306 status collapsed
307
308 \begin_layout Plain Layout
309 Some familar ones are \SpecialChar TeX
310 maker and kile, on Linux, and \SpecialChar TeX
311 shop, OSX.
312  There are also the \SpecialChar LaTeX
313  modes for vi and emacs, of course.
314 \end_layout
315
316 \end_inset
317
318  These are basically text editors with the ability to run \SpecialChar LaTeX
319  and mark any
320  errors in the file you're editing.
321  Although \SpecialChar LyX
322  
323 \emph on
324 is
325 \emph default
326  an editor, and it 
327 \emph on
328 does
329 \emph default
330  run \SpecialChar LaTeX
331 , and it also indicates errors in the file, it also does much, much
332  more.
333  For one thing, you don't need to know \SpecialChar LaTeX
334  to use \SpecialChar LyX
335  effectively.
336  And \SpecialChar LyX
337  has added its own extensions to \SpecialChar LaTeX
338 .
339  Try the following sometime: select 
340 \begin_inset Flex Noun
341 status collapsed
342
343 \begin_layout Plain Layout
344 Export\SpecialChar menuseparator
345 LaTeX
346 \end_layout
347
348 \end_inset
349
350  from the 
351 \begin_inset Flex Noun
352 status collapsed
353
354 \begin_layout Plain Layout
355 File
356 \end_layout
357
358 \end_inset
359
360  menu (or 
361 \begin_inset Flex Noun
362 status collapsed
363
364 \begin_layout Plain Layout
365 View\SpecialChar menuseparator
366 Source
367 \begin_inset space ~
368 \end_inset
369
370 Pane
371 \end_layout
372
373 \end_inset
374
375 ), then look at the preamble of the resulting 
376 \begin_inset Flex Code
377 status collapsed
378
379 \begin_layout Plain Layout
380 .tex
381 \end_layout
382
383 \end_inset
384
385  file.
386  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
387 .
388  These macros are defined automatically, according to the features you use
389  in the document.
390 \end_layout
391
392 \begin_layout Standard
393 There are several commands that automatically invoke \SpecialChar LaTeX
394 .
395  They are:
396 \end_layout
397
398 \begin_layout Itemize
399 \begin_inset Flex Noun
400 status collapsed
401
402 \begin_layout Plain Layout
403 Document\SpecialChar menuseparator
404 View
405 \end_layout
406
407 \end_inset
408
409
410 \end_layout
411
412 \begin_layout Itemize
413 \begin_inset Flex Noun
414 status collapsed
415
416 \begin_layout Plain Layout
417 Document\SpecialChar menuseparator
418 Update
419 \end_layout
420
421 \end_inset
422
423
424 \end_layout
425
426 \begin_layout Standard
427 They will only invoke \SpecialChar LaTeX
428  if the file has changed since the last time \SpecialChar LaTeX
429  was
430  run.
431  
432 \end_layout
433
434 \begin_layout Standard
435 When \SpecialChar LyX
436  runs \SpecialChar LaTeX
437  on the file you're editing, it performs these steps:
438 \end_layout
439
440 \begin_layout Enumerate
441 Convert the document to \SpecialChar LaTeX
442  and save to a file with the extension 
443 \begin_inset Flex Code
444 status collapsed
445
446 \begin_layout Plain Layout
447 .tex
448 \end_layout
449
450 \end_inset
451
452  in place of 
453 \begin_inset Flex Code
454 status collapsed
455
456 \begin_layout Plain Layout
457 .lyx
458 \end_layout
459
460 \end_inset
461
462 .
463 \end_layout
464
465 \begin_layout Enumerate
466 Run \SpecialChar LaTeX
467  on the 
468 \begin_inset Flex Code
469 status collapsed
470
471 \begin_layout Plain Layout
472 .tex
473 \end_layout
474
475 \end_inset
476
477  file (maybe several times), and run any other commands (such as 
478 \begin_inset Flex Code
479 status collapsed
480
481 \begin_layout Plain Layout
482 bibtex
483 \end_layout
484
485 \end_inset
486
487  or 
488 \begin_inset Flex Code
489 status collapsed
490
491 \begin_layout Plain Layout
492 makeindex
493 \end_layout
494
495 \end_inset
496
497 ) needed to compile the \SpecialChar LaTeX
498  file.
499 \end_layout
500
501 \begin_layout Enumerate
502 If there are any errors, show the error log.
503 \end_layout
504
505 \begin_layout Standard
506 If you have run \SpecialChar LaTeX
507  using 
508 \begin_inset Flex Noun
509 status collapsed
510
511 \begin_layout Plain Layout
512 View\SpecialChar menuseparator
513 DVI
514 \end_layout
515
516 \end_inset
517
518 , \SpecialChar LyX
519  then runs a DVI viewer to display the DVI-file.
520  If you have used 
521 \begin_inset Flex Noun
522 status collapsed
523
524 \begin_layout Plain Layout
525 View\SpecialChar menuseparator
526 PostScript
527 \end_layout
528
529 \end_inset
530
531 , \SpecialChar LyX
532  performs further steps:
533 \end_layout
534
535 \begin_layout Itemize
536 Run 
537 \begin_inset Flex Code
538 status collapsed
539
540 \begin_layout Plain Layout
541 dvips
542 \end_layout
543
544 \end_inset
545
546  to convert the DVI file to PostScript.
547 \end_layout
548
549 \begin_layout Itemize
550 Run a PostScript viewer, such as 
551 \begin_inset Flex Code
552 status collapsed
553
554 \begin_layout Plain Layout
555 ghostview
556 \end_layout
557
558 \end_inset
559
560 , to display the PostScript file.
561 \end_layout
562
563 \begin_layout Standard
564 \SpecialChar LyX
565  does similar things when viewing, or exporting, other formats.
566 \end_layout
567
568 \begin_layout Section
569 Translating \SpecialChar LaTeX
570  files into \SpecialChar LyX
571
572 \end_layout
573
574 \begin_layout Standard
575 You can import a \SpecialChar LaTeX
576  file into \SpecialChar LyX
577  by using the 
578 \begin_inset Flex Noun
579 status collapsed
580
581 \begin_layout Plain Layout
582 File\SpecialChar menuseparator
583 Import\SpecialChar menuseparator
584 LaTeX
585 \end_layout
586
587 \end_inset
588
589  command in \SpecialChar LyX
590 .
591  This will call a program named 
592 \begin_inset Flex Code
593 status collapsed
594
595 \begin_layout Plain Layout
596 tex2lyx
597 \end_layout
598
599 \end_inset
600
601  which will create a file 
602 \begin_inset Flex Code
603 status collapsed
604
605 \begin_layout Plain Layout
606 foo.lyx
607 \end_layout
608
609 \end_inset
610
611  from the file 
612 \begin_inset Flex Code
613 status collapsed
614
615 \begin_layout Plain Layout
616 foo.tex
617 \end_layout
618
619 \end_inset
620
621 .
622  \SpecialChar LyX
623  will then open that file.
624 \begin_inset Foot
625 status collapsed
626
627 \begin_layout Plain Layout
628 \begin_inset Flex Code
629 status collapsed
630
631 \begin_layout Plain Layout
632 tex2lyx
633 \end_layout
634
635 \end_inset
636
637  can also be run from the command line, of course.
638 \end_layout
639
640 \end_inset
641
642
643 \end_layout
644
645 \begin_layout Standard
646 \begin_inset Flex Code
647 status collapsed
648
649 \begin_layout Plain Layout
650 tex2lyx
651 \end_layout
652
653 \end_inset
654
655  will translate most legal \SpecialChar LaTeX
656 , but not everything.
657  It will put things it doesn't understand into \SpecialChar TeX
658  code, so after translating
659  a file with 
660 \begin_inset Flex Code
661 status collapsed
662
663 \begin_layout Plain Layout
664 tex2lyx
665 \end_layout
666
667 \end_inset
668
669 , you can look for \SpecialChar TeX
670  code and hand-edit it until it looks right.
671 \end_layout
672
673 \begin_layout Standard
674 If you don't know what \SpecialChar TeX
675  code is, read the next section.
676 \end_layout
677
678 \begin_layout Section
679 \begin_inset CommandInset label
680 LatexCommand label
681 name "sec:Inserting-TeX-Code"
682
683 \end_inset
684
685 Inserting \SpecialChar TeX
686  Code into \SpecialChar LyX
687  Documents 
688 \end_layout
689
690 \begin_layout Standard
691 Anything you can do in \SpecialChar LaTeX
692  you can do in \SpecialChar LyX
693 , for a very simple reason: You can
694  always insert \SpecialChar TeX
695  code into any \SpecialChar LyX
696  document.
697  \SpecialChar LyX
698  cannot, and will never be able to, display every possible \SpecialChar LaTeX
699  construct.
700  If ever you need to insert \SpecialChar LaTeX
701  commands into your \SpecialChar LyX
702  document, you can use the
703  
704 \begin_inset Flex Code
705 status collapsed
706
707 \begin_layout Plain Layout
708 \SpecialChar TeX
709  Code
710 \end_layout
711
712 \end_inset
713
714  box, which you can insert into your document with 
715 \begin_inset Flex Noun
716 status collapsed
717
718 \begin_layout Plain Layout
719 Insert\SpecialChar menuseparator
720
721 \family sans
722 TeX
723 \family default
724  Code
725 \end_layout
726
727 \end_inset
728
729  or the keyboard shortcut 
730 \begin_inset Info
731 type  "shortcut"
732 arg   "ert-insert"
733 \end_inset
734
735 .
736 \end_layout
737
738 \begin_layout Standard
739 Here's an example of inserting \SpecialChar LaTeX
740  commands in a \SpecialChar LyX
741  document.
742  The code looks like this:
743 \end_layout
744
745 \begin_layout LyX-Code
746
747 \backslash
748 begin{tabular}{ll}
749 \begin_inset Newline newline
750 \end_inset
751
752
753 \backslash
754 begin{minipage}{5cm}
755 \begin_inset Newline newline
756 \end_inset
757
758 This is an example of a minipage environment.
759  You 
760 \begin_inset Newline newline
761 \end_inset
762
763 can put nearly everything in it, even (non-floating) 
764 \begin_inset Newline newline
765 \end_inset
766
767 figures and tables.
768  
769 \begin_inset Newline newline
770 \end_inset
771
772
773 \backslash
774 end{minipage}
775 \begin_inset Newline newline
776 \end_inset
777
778 &
779 \begin_inset Newline newline
780 \end_inset
781
782
783 \backslash
784 begin{minipage}{5cm}
785 \begin_inset Newline newline
786 \end_inset
787
788
789 \backslash
790 begin{verbatim}
791 \begin_inset Newline newline
792 \end_inset
793
794
795 \backslash
796 begin{minipage}{5cm}
797 \begin_inset Newline newline
798 \end_inset
799
800 This ...
801  
802 \begin_inset Newline newline
803 \end_inset
804
805
806 \backslash
807 end{minipage}
808 \begin_inset Newline newline
809 \end_inset
810
811
812 \backslash
813 end{verbatim}
814 \begin_inset Newline newline
815 \end_inset
816
817
818 \backslash
819 end{minipage}
820 \begin_inset Newline newline
821 \end_inset
822
823
824 \backslash
825 end{tabular}
826 \end_layout
827
828 \begin_layout LyX-Code
829
830 \end_layout
831
832 \begin_layout Standard
833 The 
834 \begin_inset Flex Code
835 status collapsed
836
837 \begin_layout Plain Layout
838 \SpecialChar TeX
839  Code
840 \end_layout
841
842 \end_inset
843
844  box containing this text is directly after this paragraph.
845  Those of you reading the manual in \SpecialChar LyX
846  will only see the \SpecialChar TeX
847  code inset.
848  Those reading a printed version of the manuals will see the actual results:
849 \begin_inset VSpace bigskip
850 \end_inset
851
852
853 \end_layout
854
855 \begin_layout Standard
856 \begin_inset ERT
857 status open
858
859 \begin_layout Plain Layout
860
861
862 \backslash
863 begin{tabular}{ll}
864 \end_layout
865
866 \begin_layout Plain Layout
867
868
869 \backslash
870 begin{minipage}{5cm}
871 \end_layout
872
873 \begin_layout Plain Layout
874
875 This is an example of a minipage environment.
876  You can put nearly everything in it, even (non-floating) figures and tables.
877  
878 \end_layout
879
880 \begin_layout Plain Layout
881
882
883 \backslash
884 end{minipage}
885 \end_layout
886
887 \begin_layout Plain Layout
888
889 &
890 \end_layout
891
892 \begin_layout Plain Layout
893
894
895 \backslash
896 begin{minipage}{5cm}
897 \end_layout
898
899 \begin_layout Plain Layout
900
901
902 \backslash
903 begin{verbatim}
904 \end_layout
905
906 \begin_layout Plain Layout
907
908
909 \backslash
910 begin{minipage}{5cm}
911 \end_layout
912
913 \begin_layout Plain Layout
914
915 This ...
916  
917 \end_layout
918
919 \begin_layout Plain Layout
920
921
922 \backslash
923 end{minipage}
924 \end_layout
925
926 \begin_layout Plain Layout
927
928
929 \backslash
930 end{verbatim}
931 \end_layout
932
933 \begin_layout Plain Layout
934
935
936 \backslash
937 end{minipage}
938 \end_layout
939
940 \begin_layout Plain Layout
941
942
943 \backslash
944 end{tabular}
945 \end_layout
946
947 \end_inset
948
949
950 \begin_inset VSpace bigskip
951 \end_inset
952
953
954 \end_layout
955
956 \begin_layout Standard
957 In addition to using \SpecialChar TeX
958  code, you can also create a separate file containing
959  some complex \SpecialChar LaTeX
960  structure and then use 
961 \begin_inset Flex Noun
962 status collapsed
963
964 \begin_layout Plain Layout
965 Insert\SpecialChar menuseparator
966 Child
967 \begin_inset space ~
968 \end_inset
969
970 Document
971 \end_layout
972
973 \end_inset
974
975  to include your file (you should select the type 
976 \begin_inset Flex Code
977 status collapsed
978
979 \begin_layout Plain Layout
980 Input
981 \end_layout
982
983 \end_inset
984
985 ).
986  We recommend that you only do this if you have a 
987 \begin_inset Flex Code
988 status collapsed
989
990 \begin_layout Plain Layout
991 .tex
992 \end_layout
993
994 \end_inset
995
996  file which you 
997 \emph on
998 know
999 \emph default
1000  works already.
1001  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1002  errors.
1003 \end_layout
1004
1005 \begin_layout Standard
1006 There are a few last points to emphasize:
1007 \end_layout
1008
1009 \begin_layout Itemize
1010 \SpecialChar LyX
1011  
1012 \emph on
1013 does not
1014 \emph default
1015  check if your \SpecialChar LaTeX
1016  code is correct.
1017 \end_layout
1018
1019 \begin_layout Itemize
1020 Beware of reinventing the wheel.
1021 \end_layout
1022
1023 \begin_layout Standard
1024 On that last point, \SpecialChar LyX
1025  does have quite a few features tucked into it, and
1026  more are coming.
1027  Be sure to check the manuals to make sure that \SpecialChar LyX
1028  doesn't have such-and-such
1029  feature before you decide you have to do it by hand.
1030  Moreover, there are numerous \SpecialChar LaTeX
1031  packages out there to do all sorts of things,
1032  from labels to envelopes to fancy multipage tables.
1033  Check out 
1034 \begin_inset CommandInset href
1035 LatexCommand href
1036 name "CTAN"
1037 target "http://www.ctan.org/"
1038
1039 \end_inset
1040
1041  for details.
1042 \end_layout
1043
1044 \begin_layout Standard
1045 If you do need to do some wild and fancy things within your document, be
1046  sure to check out a good \SpecialChar LaTeX
1047  book for assistance.
1048  There are a number of them listed in the bibliography of the 
1049 \emph on
1050 User's Guide
1051 \emph default
1052 .
1053 \end_layout
1054
1055 \begin_layout Section
1056 \SpecialChar LyX
1057  and the \SpecialChar LaTeX
1058  Preamble
1059 \end_layout
1060
1061 \begin_layout Subsection
1062 About the \SpecialChar LaTeX
1063  Preamble
1064 \end_layout
1065
1066 \begin_layout Standard
1067 If you already know \SpecialChar LaTeX
1068 , there is no need to explain here what the preamble
1069  is good for.
1070  If you don't, the following will give you some ideas—we recommend again
1071  that you consult a \SpecialChar LaTeX
1072  book for further information.
1073  In any case, you should read the points below, because they explain what
1074  you can do and what you don't need to do in the \SpecialChar LaTeX
1075  preamble of a \SpecialChar LyX
1076  document.
1077 \end_layout
1078
1079 \begin_layout Standard
1080 The \SpecialChar LaTeX
1081  preamble comes at the very beginning of a document, 
1082 \emph on
1083 before
1084 \emph default
1085  the text.
1086  It serves to:
1087 \end_layout
1088
1089 \begin_layout Itemize
1090 Declare the document class.
1091  
1092 \begin_inset Newline newline
1093 \end_inset
1094
1095 \SpecialChar LyX
1096  already does this for you.
1097  If you're a seasoned \SpecialChar LaTeX
1098 -nician, and you have a custom document class you
1099  want to use, check out the 
1100 \emph on
1101 Customization Manual
1102 \emph default
1103  for information on how to make \SpecialChar LyX
1104  interface to it.
1105 \end_layout
1106
1107 \begin_layout Itemize
1108 Declare the usage of packages.
1109  
1110 \begin_inset Newline newline
1111 \end_inset
1112
1113 \SpecialChar LaTeX
1114  packages provide special commands, which are only available within a document
1115  when the package has been declared in the preamble.
1116  In addition to providing special commands, the inclusion of a package can
1117  change the document.
1118  For example, the package 
1119 \begin_inset Flex Code
1120 status collapsed
1121
1122 \begin_layout Plain Layout
1123 indentfirst
1124 \end_layout
1125
1126 \end_inset
1127
1128  forces all paragraphs to be indented.
1129  There are other packages for labels, envelopes, margins, etc.
1130  
1131 \end_layout
1132
1133 \begin_layout Itemize
1134 Set counters, variables, lengths and widths.
1135  
1136 \begin_inset Newline newline
1137 \end_inset
1138
1139 There are several \SpecialChar LaTeX
1140  counters and variables that 
1141 \emph on
1142 must
1143 \emph default
1144  be set globally from within the preamble in order to have the desired effect.
1145  (There are variables that you can set and reset inside the document, too.)
1146  Margins are a good example of something that must be set in the preamble.
1147  Another example is the label format for lists.
1148  You can actually set these just about anywhere, but it's best to do it
1149  just once, inside the preamble.
1150 \end_layout
1151
1152 \begin_layout Itemize
1153 Declare user defined commands (with 
1154 \begin_inset Flex Code
1155 status collapsed
1156
1157 \begin_layout Plain Layout
1158
1159 \backslash
1160 newcommand
1161 \end_layout
1162
1163 \end_inset
1164
1165  or 
1166 \begin_inset Flex Code
1167 status collapsed
1168
1169 \begin_layout Plain Layout
1170
1171 \backslash
1172 renewcommand
1173 \end_layout
1174
1175 \end_inset
1176
1177 ).
1178 \begin_inset Newline newline
1179 \end_inset
1180
1181 These are abbreviations for \SpecialChar LaTeX
1182  commands which appear very often inside a document.
1183  Although the preamble is a good place to declare such commands, they 
1184 \emph on
1185 can
1186 \emph default
1187  be declared anywhere (before they are used for the first time, of course).
1188  This can be useful if there is a lot of raw \SpecialChar LaTeX
1189  code in your document, which
1190  normally should not be the case.
1191 \end_layout
1192
1193 \begin_layout Standard
1194 \SpecialChar LyX
1195  adds its own set of definitions to the preamble of the 
1196 \begin_inset Flex Code
1197 status collapsed
1198
1199 \begin_layout Plain Layout
1200 .tex
1201 \end_layout
1202
1203 \end_inset
1204
1205  file it produces.
1206  This makes \SpecialChar LaTeX
1207  files generated by \SpecialChar LyX
1208  portable.
1209 \end_layout
1210
1211 \begin_layout Subsection
1212 Changing the Preamble
1213 \end_layout
1214
1215 \begin_layout Standard
1216 The commands which \SpecialChar LyX
1217  adds to the preamble of a \SpecialChar LaTeX
1218  file are fixed; you can't
1219  change them without patching \SpecialChar LyX
1220  itself.
1221  You can, however, add your own stuff to the preamble by selecting 
1222 \begin_inset Flex Noun
1223 status collapsed
1224
1225 \begin_layout Plain Layout
1226 \SpecialChar LaTeX
1227
1228 \begin_inset space ~
1229 \end_inset
1230
1231 Preamble
1232 \end_layout
1233
1234 \end_inset
1235
1236  in the 
1237 \begin_inset Flex Noun
1238 status collapsed
1239
1240 \begin_layout Plain Layout
1241 Document\SpecialChar menuseparator
1242 Settings
1243 \end_layout
1244
1245 \end_inset
1246
1247  dialog.
1248  \SpecialChar LyX
1249  adds anything in the 
1250 \begin_inset Flex Noun
1251 status collapsed
1252
1253 \begin_layout Plain Layout
1254 Preamble
1255 \end_layout
1256
1257 \end_inset
1258
1259  dialog to its own built-in preamble.
1260  Before adding your own declarations in the preamble, you should make sure
1261  that \SpecialChar LyX
1262  doesn't already support what you want to do.
1263  (Remember what we said about reinventing the wheel?) Also, 
1264 \emph on
1265 make sure your preamble code is correct
1266 \emph default
1267 .
1268  \SpecialChar LyX
1269  doesn't check it for you.
1270  If there is an error, you're likely to get an error like 
1271 \begin_inset Quotes eld
1272 \end_inset
1273
1274
1275 \begin_inset Flex Code
1276 status collapsed
1277
1278 \begin_layout Plain Layout
1279 Missing 
1280 \backslash
1281 begin{document}
1282 \end_layout
1283
1284 \end_inset
1285
1286
1287 \begin_inset Quotes erd
1288 \end_inset
1289
1290 .
1291  If you see this error, check your preamble.
1292 \end_layout
1293
1294 \begin_layout Subsection
1295 Examples
1296 \end_layout
1297
1298 \begin_layout Standard
1299 Here are some examples of what you can add to a preamble, and what they
1300  do.
1301 \end_layout
1302
1303 \begin_layout Subsubsection
1304 Example #1: Offsets
1305 \end_layout
1306
1307 \begin_layout Standard
1308 There are two variables under \SpecialChar LaTeX
1309  that control page position: 
1310 \begin_inset Flex Code
1311 status collapsed
1312
1313 \begin_layout Plain Layout
1314
1315 \backslash
1316 hoffset
1317 \end_layout
1318
1319 \end_inset
1320
1321  and 
1322 \begin_inset Flex Code
1323 status collapsed
1324
1325 \begin_layout Plain Layout
1326
1327 \backslash
1328 voffset
1329 \end_layout
1330
1331 \end_inset
1332
1333 .
1334  Their names should be self-explanatory.
1335  These variables are useful if you think for a moment about computer labels.
1336  Sometimes, the size of a print medium and the area of the medium that you
1337  can actually print on aren't the same.
1338  This is where 
1339 \begin_inset Flex Code
1340 status collapsed
1341
1342 \begin_layout Plain Layout
1343
1344 \backslash
1345 hoffset
1346 \end_layout
1347
1348 \end_inset
1349
1350  and 
1351 \begin_inset Flex Code
1352 status collapsed
1353
1354 \begin_layout Plain Layout
1355
1356 \backslash
1357 voffset
1358 \end_layout
1359
1360 \end_inset
1361
1362  come in.
1363 \end_layout
1364
1365 \begin_layout Standard
1366 The default values for 
1367 \begin_inset Flex Code
1368 status collapsed
1369
1370 \begin_layout Plain Layout
1371
1372 \backslash
1373 hoffset
1374 \end_layout
1375
1376 \end_inset
1377
1378  and 
1379 \begin_inset Flex Code
1380 status collapsed
1381
1382 \begin_layout Plain Layout
1383
1384 \backslash
1385 voffset
1386 \end_layout
1387
1388 \end_inset
1389
1390  are both 0
1391 \begin_inset space \thinspace{}
1392 \end_inset
1393
1394 points, i.
1395 \begin_inset space \thinspace{}
1396 \end_inset
1397
1398 e.
1399 \begin_inset space \space{}
1400 \end_inset
1401
1402 the page isn't shifted.
1403  Unfortunately, some DVI drivers always seem to shift the page.
1404  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1405  If you're using \SpecialChar LyX
1406  on a system that you don't personally maintain, and your
1407  sysadmin is a doofus, 
1408 \begin_inset Flex Code
1409 status collapsed
1410
1411 \begin_layout Plain Layout
1412
1413 \backslash
1414 hoffset
1415 \end_layout
1416
1417 \end_inset
1418
1419  and 
1420 \begin_inset Flex Code
1421 status collapsed
1422
1423 \begin_layout Plain Layout
1424
1425 \backslash
1426 voffset
1427 \end_layout
1428
1429 \end_inset
1430
1431  can save the day.
1432  Suppose your left and top margins are always 0.5
1433 \begin_inset space \thinspace{}
1434 \end_inset
1435
1436 inches too big.
1437  You can add this to the preamble:
1438 \end_layout
1439
1440 \begin_layout LyX-Code
1441
1442 \backslash
1443 setlength{
1444 \backslash
1445 hoffset}{-0.5 in}
1446 \end_layout
1447
1448 \begin_layout LyX-Code
1449
1450 \backslash
1451 setlength{
1452 \backslash
1453 voffset}{-0.5 in}
1454 \end_layout
1455
1456 \begin_layout Standard
1457 and your margins should now be correct.
1458 \end_layout
1459
1460 \begin_layout Subsubsection
1461 Example #2: Labels
1462 \end_layout
1463
1464 \begin_layout Standard
1465 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1466  There's a rather nice package, available at your nearest CTAN archive,
1467  for printing sheets of labels: 
1468 \begin_inset Flex Code
1469 status collapsed
1470
1471 \begin_layout Plain Layout
1472 labels.sty
1473 \end_layout
1474
1475 \end_inset
1476
1477 .
1478  Now, your system may not have this package installed by default.
1479  We leave that up to you to check.
1480  You'll also want to read the documentation for it; we're not going to do
1481  that for you.
1482  Since this is an example, however, we'll give you an example of how you
1483  use this package.
1484 \end_layout
1485
1486 \begin_layout Standard
1487 First, make sure you're using the 
1488 \begin_inset Flex Code
1489 status collapsed
1490
1491 \begin_layout Plain Layout
1492 article
1493 \end_layout
1494
1495 \end_inset
1496
1497  document class.
1498  Next, you need to put the following in your preamble:
1499 \end_layout
1500
1501 \begin_layout LyX-Code
1502
1503 \backslash
1504 usepackage{labels}
1505 \end_layout
1506
1507 \begin_layout LyX-Code
1508
1509 \backslash
1510 LabelCols=3
1511 \end_layout
1512
1513 \begin_layout LyX-Code
1514
1515 \backslash
1516 LabelRows=7
1517 \end_layout
1518
1519 \begin_layout LyX-Code
1520
1521 \backslash
1522 LeftBorder=8mm
1523 \end_layout
1524
1525 \begin_layout LyX-Code
1526
1527 \backslash
1528 RightBorder=8mm
1529 \end_layout
1530
1531 \begin_layout LyX-Code
1532
1533 \backslash
1534 TopBorder=9mm
1535 \end_layout
1536
1537 \begin_layout LyX-Code
1538
1539 \backslash
1540 BottomBorder=2mm
1541 \end_layout
1542
1543 \begin_layout Standard
1544 This sets things up for Avery label sheets, stock #5360.
1545  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1546  code, placing
1547  the commands 
1548 \begin_inset Flex Code
1549 status collapsed
1550
1551 \begin_layout Plain Layout
1552
1553 \backslash
1554 begin{labels}
1555 \end_layout
1556
1557 \end_inset
1558
1559  and 
1560 \begin_inset Flex Code
1561 status collapsed
1562
1563 \begin_layout Plain Layout
1564
1565 \backslash
1566 end{labels}
1567 \end_layout
1568
1569 \end_inset
1570
1571  around each label text.
1572  This and other special features of 
1573 \begin_inset Flex Code
1574 status collapsed
1575
1576 \begin_layout Plain Layout
1577 labels.sty
1578 \end_layout
1579
1580 \end_inset
1581
1582  are explained in its documentation.
1583 \end_layout
1584
1585 \begin_layout Standard
1586 Someday, someone may write a \SpecialChar LyX
1587  layout file to support this package directly.
1588  Maybe that someone is you.
1589 \end_layout
1590
1591 \begin_layout Subsubsection
1592 Example #3: Paragraph Indentation
1593 \end_layout
1594
1595 \begin_layout Standard
1596 Americans are trained to indent the first line of 
1597 \emph on
1598 every
1599 \emph default
1600  paragraph.
1601  As with all of their other weird quirks, most Americans will whine and
1602  moan until they can have their way and indent the first line of all paragraphs.
1603  (Yes, we're joking.
1604  (We are?) 
1605 \emph on
1606 Yeah
1607 \emph default
1608 , we are.)
1609 \end_layout
1610
1611 \begin_layout Standard
1612 Of course, this behavior isn't standard typography.
1613  In books, you typically only indent the first line of a paragraph 
1614 \emph on
1615 if
1616 \emph default
1617  it follows another one.
1618  The idea behind indenting the first line of a paragraph is to distinguish
1619  neighboring paragraphs from one another.
1620  If there is no previous paragraph—for example, if it follows a figure or
1621  is the first paragraph in a section—then there is no need for indentation.
1622  
1623 \end_layout
1624
1625 \begin_layout Standard
1626 If you're a typical American (we're still joking!), though, you don't care
1627  about such esoteric things; you want your indentation! Add this to the
1628  preamble:
1629 \end_layout
1630
1631 \begin_layout LyX-Code
1632
1633 \backslash
1634 usepackage{indentfirst}
1635 \end_layout
1636
1637 \begin_layout Standard
1638 If your \SpecialChar TeX
1639  distribution isn't braindead, you'll have this package, and all
1640  of your paragraphs will get the indentation the Founding Fathers intended
1641  they should have.
1642 \end_layout
1643
1644 \begin_layout Subsubsection
1645 Example #4: This Document
1646 \end_layout
1647
1648 \begin_layout Standard
1649 You can also check out the preamble of this document to get an idea of some
1650  of the advanced things you can do.
1651 \end_layout
1652
1653 \begin_layout Section
1654 \SpecialChar LyX
1655  and \SpecialChar LaTeX
1656  Errors
1657 \end_layout
1658
1659 \begin_layout Standard
1660 When \SpecialChar LyX
1661  calls \SpecialChar LaTeX
1662 , it tells \SpecialChar LaTeX
1663  to blithely ignore any errors and keep going.
1664  It then uses the logfile from the \SpecialChar LaTeX
1665  run to do a post-mortem.
1666  After analyzing the logfile, \SpecialChar LyX
1667  displays a dialog listing the errors.
1668  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1669  file
1670  where the error occurred.
1671 \begin_inset Foot
1672 status collapsed
1673
1674 \begin_layout Plain Layout
1675 Well, usually.
1676  Analyzing the logfile is a tough job, and \SpecialChar LyX
1677  doesn't always go to the right
1678  line.
1679  There are also cases where \SpecialChar LaTeX
1680  reports the error on one line, but the actual
1681  error is earlier.
1682  This is not unlike forgetting a closing brace in a program: You'll get
1683  an error, but only later.
1684 \end_layout
1685
1686 \end_inset
1687
1688
1689 \end_layout
1690
1691 \begin_layout Standard
1692 Some folks also like to look at the log file directly: It is available from
1693  
1694 \begin_inset Flex Noun
1695 status collapsed
1696
1697 \begin_layout Plain Layout
1698 Document\SpecialChar menuseparator
1699 LaTeX
1700 \begin_inset space ~
1701 \end_inset
1702
1703 Log
1704 \end_layout
1705
1706 \end_inset
1707
1708 .
1709  There are some fairly common error messages and warnings.
1710  We'll cover those here.
1711  You should look at a good \SpecialChar LaTeX
1712  book for a complete listing.
1713 \end_layout
1714
1715 \begin_layout Itemize
1716 \begin_inset Flex Code
1717 status collapsed
1718
1719 \begin_layout Plain Layout
1720 LaTeX Warning
1721 \end_layout
1722
1723 \end_inset
1724
1725
1726 \begin_inset Newline newline
1727 \end_inset
1728
1729 Anything beginning with these words is a warning message for the purpose
1730  of 
1731 \begin_inset Quotes eld
1732 \end_inset
1733
1734 debugging
1735 \begin_inset Quotes erd
1736 \end_inset
1737
1738  the \SpecialChar LaTeX
1739  code itself.
1740  You'll get messages like this if you added or changed cross-references
1741  or bibliography entries, in which case, \SpecialChar LaTeX
1742  is trying to tell you that you
1743  need to make another run.
1744  You can by-and-large ignore these.
1745 \end_layout
1746
1747 \begin_layout Itemize
1748 \begin_inset Flex Code
1749 status collapsed
1750
1751 \begin_layout Plain Layout
1752 LaTeX Font Warning
1753 \end_layout
1754
1755 \end_inset
1756
1757
1758 \begin_inset Newline newline
1759 \end_inset
1760
1761 Another warning message, this time about fonts which \SpecialChar LaTeX
1762  couldn't find.
1763  The rest of the message will often say something about a replacement font
1764  that \SpecialChar LaTeX
1765  used.
1766  You can safely ignore these, too.
1767 \end_layout
1768
1769 \begin_layout Itemize
1770 \begin_inset Flex Code
1771 status collapsed
1772
1773 \begin_layout Plain Layout
1774 Overfull 
1775 \backslash
1776 hbox
1777 \end_layout
1778
1779 \end_inset
1780
1781
1782 \begin_inset Newline newline
1783 \end_inset
1784
1785 \SpecialChar LaTeX
1786  absolutely 
1787 \emph on
1788 loves
1789 \emph default
1790  to spew these out.
1791  They are warnings about lines that were too long and run past the right
1792  margin.
1793  Almost always, this is unnoticeable in the final output.
1794  (It can be just a point or two.) Or, only one or two characters extend past
1795  the margin.
1796  \SpecialChar LaTeX
1797  seems to generate at least one of these messages for just about any document
1798  you write.
1799 \begin_inset Newline newline
1800 \end_inset
1801
1802 You can ignore these messages.
1803  Your eyes will tell you if there's a problem with something that's too
1804  wide; just look at the output.
1805 \begin_inset Foot
1806 status collapsed
1807
1808 \begin_layout Plain Layout
1809 You can also enable the `draft' option in 
1810 \begin_inset Flex Noun
1811 status collapsed
1812
1813 \begin_layout Plain Layout
1814 Document\SpecialChar menuseparator
1815 Settings
1816 \end_layout
1817
1818 \end_inset
1819
1820 , and then \SpecialChar LaTeX
1821  will draw a black box in the margin of lines that are overfull.
1822 \end_layout
1823
1824 \end_inset
1825
1826
1827 \end_layout
1828
1829 \begin_layout Itemize
1830 \begin_inset Flex Code
1831 status collapsed
1832
1833 \begin_layout Plain Layout
1834 Underfull 
1835 \backslash
1836 hbox
1837 \end_layout
1838
1839 \end_inset
1840
1841
1842 \begin_inset Newline newline
1843 \end_inset
1844
1845 Not quite as common as its cousin.
1846  \SpecialChar LaTeX
1847  seems to like to print lines that are a bit too wide as opposed to ones
1848  that are a bit too narrow.
1849  We have no idea why.
1850 \end_layout
1851
1852 \begin_layout Itemize
1853 \begin_inset Flex Code
1854 status collapsed
1855
1856 \begin_layout Plain Layout
1857 Overfull 
1858 \backslash
1859 vbox
1860 \end_layout
1861
1862 \end_inset
1863
1864  and 
1865 \begin_inset Flex Code
1866 status collapsed
1867
1868 \begin_layout Plain Layout
1869 Underfull 
1870 \backslash
1871 vbox
1872 \end_layout
1873
1874 \end_inset
1875
1876
1877 \begin_inset Newline newline
1878 \end_inset
1879
1880 Warnings about troubles breaking the page.
1881  Once again, just look at the output.
1882  Your eyes will tell you where something has gone wrong.
1883 \end_layout
1884
1885 \begin_layout Itemize
1886 \begin_inset Flex Code
1887 status collapsed
1888
1889 \begin_layout Plain Layout
1890 LaTeX Error: File 
1891 \begin_inset Quotes els
1892 \end_inset
1893
1894 Xxxx
1895 \begin_inset Quotes ers
1896 \end_inset
1897
1898  not found
1899 \end_layout
1900
1901 \end_inset
1902
1903
1904 \begin_inset Newline newline
1905 \end_inset
1906
1907 The file 
1908 \begin_inset Quotes eld
1909 \end_inset
1910
1911 Xxxx
1912 \begin_inset Quotes erd
1913 \end_inset
1914
1915  isn't installed on this system.
1916  This usually appears because some package your document needs isn't installed.
1917  If you didn't touch the preamble or didn't use the 
1918 \begin_inset Flex Code
1919 status collapsed
1920
1921 \begin_layout Plain Layout
1922
1923 \backslash
1924 usepackage{}
1925 \end_layout
1926
1927 \end_inset
1928
1929  command, then one of the packages \SpecialChar LyX
1930  tried to load is missing.
1931  Use 
1932 \begin_inset Flex Noun
1933 status collapsed
1934
1935 \begin_layout Plain Layout
1936 Help\SpecialChar menuseparator
1937 \SpecialChar LaTeX
1938  Configuration
1939 \end_layout
1940
1941 \end_inset
1942
1943  to get a list of packages that \SpecialChar LyX
1944  knows about.
1945  This file is updated whenever you reconfigure \SpecialChar LyX
1946  (using 
1947 \begin_inset Flex Noun
1948 status collapsed
1949
1950 \begin_layout Plain Layout
1951 Tools\SpecialChar menuseparator
1952 Reconfigure
1953 \end_layout
1954
1955 \end_inset
1956
1957 ) and tells you which packages have been detected and what they do.
1958 \begin_inset Newline newline
1959 \end_inset
1960
1961 If you did use the 
1962 \begin_inset Flex Code
1963 status collapsed
1964
1965 \begin_layout Plain Layout
1966
1967 \backslash
1968 usepackage{}
1969 \end_layout
1970
1971 \end_inset
1972
1973  command and the package in question isn't installed, then you'll need to
1974  install it yourself.
1975 \end_layout
1976
1977 \begin_layout Itemize
1978 \begin_inset Flex Code
1979 status collapsed
1980
1981 \begin_layout Plain Layout
1982 LaTeX Error: Unknown option
1983 \end_layout
1984
1985 \end_inset
1986
1987
1988 \begin_inset Newline newline
1989 \end_inset
1990
1991 Error messages beginning with this are trying to tell you that you specified
1992  a bad or undefined option to a package.
1993  Check the package's documentation.
1994 \end_layout
1995
1996 \begin_layout Itemize
1997 \begin_inset Flex Code
1998 status collapsed
1999
2000 \begin_layout Plain Layout
2001 Undefined control sequence
2002 \end_layout
2003
2004 \end_inset
2005
2006
2007 \begin_inset Newline newline
2008 \end_inset
2009
2010 If you've inserted \SpecialChar LaTeX
2011  code into your document, but made a typo, you'll get
2012  one of these.
2013  You may have forgotten to load a package.
2014  In any case, this error message usually means that you used an undefined
2015  command.
2016  
2017 \end_layout
2018
2019 \begin_layout Standard
2020 There are other error and warning messages.
2021  Some are self-explanatory.
2022  These are usually \SpecialChar LaTeX
2023  messages.
2024  Others are downright cryptic.
2025  These are usually \SpecialChar TeX
2026  error messages, and we really have 
2027 \emph on
2028 no clue
2029 \emph default
2030  what they mean or how to decipher them.
2031  No-one does.
2032 \end_layout
2033
2034 \begin_layout Standard
2035 There's a general sequence you should follow if you get error messages:
2036 \end_layout
2037
2038 \begin_layout Enumerate
2039 Look at the \SpecialChar LaTeX
2040  code you inserted for typos.
2041 \end_layout
2042
2043 \begin_layout Enumerate
2044 If there are no typos, check that you used the command(s) correctly.
2045 \end_layout
2046
2047 \begin_layout Enumerate
2048 If you get a bunch of error boxes piled up at the very top of the document—and
2049  especially if you see a 
2050 \begin_inset Quotes eld
2051 \end_inset
2052
2053
2054 \begin_inset Flex Code
2055 status collapsed
2056
2057 \begin_layout Plain Layout
2058 Missing 
2059 \backslash
2060 begin{document}
2061 \end_layout
2062
2063 \end_inset
2064
2065
2066 \begin_inset Quotes erd
2067 \end_inset
2068
2069  error—it means that there are errors in the preamble.
2070  Start debugging your preamble.
2071 \end_layout
2072
2073 \begin_layout Enumerate
2074 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2075  code to the
2076  document, the first suspect is your \SpecialChar LaTeX
2077  distribution itself.
2078  Check for missing packages and install them.
2079 \end_layout
2080
2081 \begin_layout Enumerate
2082 Okay, so there are no missing packages.
2083  Did you use any of the fine-tuning options in \SpecialChar LyX
2084 ? Specifically, did you 
2085 \emph on
2086 misuse
2087 \emph default
2088  any of them, like trying to manually insert lots of 
2089 \begin_inset Flex Code
2090 status collapsed
2091
2092 \begin_layout Plain Layout
2093 Protected
2094 \begin_inset space ~
2095 \end_inset
2096
2097 Blanks
2098 \end_layout
2099
2100 \end_inset
2101
2102
2103 \begin_inset Flex Code
2104 status collapsed
2105
2106 \begin_layout Plain Layout
2107 Linebreaks
2108 \end_layout
2109
2110 \end_inset
2111
2112 , or 
2113 \begin_inset Flex Code
2114 status collapsed
2115
2116 \begin_layout Plain Layout
2117 Pagebreaks
2118 \end_layout
2119
2120 \end_inset
2121
2122 ? Did you try to kludge something together with these instead of using the
2123  appropriate paragraph environment?
2124 \end_layout
2125
2126 \begin_layout Enumerate
2127 All right, you didn't use any of the fine-tuning options, you played by
2128  the rules.
2129  Did you try to pull a fancy maneuver? Did you do something funky inside
2130  a table or an equation, like inserting a graphic into a table cell?
2131 \end_layout
2132
2133 \begin_layout Enumerate
2134 Do you have long sections of text where \SpecialChar LaTeX
2135  cannot find a place to break a
2136  line? By default, \SpecialChar LaTeX
2137  is rather strict about how much extra inter-word spacing
2138  it will add in order to break a line.
2139  Preferably, you should rework the paragraph to avoid the problem.
2140 \end_layout
2141
2142 \begin_layout Enumerate
2143 Did you go overboard with the nesting? \SpecialChar LyX
2144  (currently) doesn't check to make
2145  sure you're in the limits for nesting environments.
2146  If you nested a bunch of environments to the 
2147 \begin_inset Formula $17^{\mathrm{th}}$
2148 \end_inset
2149
2150  level, that's the problem.
2151  (The limit in \SpecialChar LaTeX
2152  is five.)
2153 \end_layout
2154
2155 \begin_layout Enumerate
2156 Okay, you didn't get any error messages, but your output looks awful.
2157  If you have a table or figure that's too wide or long for the page, you
2158  need to:
2159 \end_layout
2160
2161 \begin_deeper
2162 \begin_layout Enumerate
2163 rescale the figure so it fits.
2164 \end_layout
2165
2166 \begin_layout Enumerate
2167 trim down the table so it fits.
2168 \end_layout
2169
2170 \end_deeper
2171 \begin_layout Enumerate
2172 If something else is wrong with the output, and you didn't try to pull anything
2173  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2174 \end_layout
2175
2176 \begin_layout Standard
2177 If all this doesn't help—well, then 
2178 \emph on
2179 perhaps
2180 \emph default
2181  you might have found a bug in \SpecialChar LyX
2182 \SpecialChar ldots
2183 .
2184 \end_layout
2185
2186 \begin_layout Chapter
2187
2188 \change_inserted 893223064 1464851738
2189 Document classes
2190 \end_layout
2191
2192 \begin_layout Standard
2193
2194 \change_inserted 893223064 1464852146
2195 This section will be updated in due course.
2196 \end_layout
2197
2198 \begin_layout Standard
2199 Special Document Classes
2200 \end_layout
2201
2202 \begin_layout Section
2203 A&A Paper
2204 \end_layout
2205
2206 \begin_layout Standard
2207 by 
2208 \noun on
2209 Peter Sütterlin
2210 \end_layout
2211
2212 \begin_layout Subsection
2213 Introduction
2214 \end_layout
2215
2216 \begin_layout Standard
2217 This section describes how \SpecialChar LyX
2218  can be used to write articles for submission
2219  to the scientific journal 
2220 \emph on
2221 Astronomy and Astrophysics
2222 \emph default
2223  (
2224 \begin_inset Flex URL
2225 status collapsed
2226
2227 \begin_layout Plain Layout
2228
2229 http://www.edpsciences.fr/aa/
2230 \end_layout
2231
2232 \end_inset
2233
2234 ) using Version 5.01 of the document class 
2235 \family typewriter
2236 aa.cls
2237 \family default
2238 .
2239  This package can be downloaded from the ftp site
2240 \end_layout
2241
2242 \begin_layout Standard
2243 \begin_inset VSpace medskip
2244 \end_inset
2245
2246
2247 \end_layout
2248
2249 \begin_layout Standard
2250 \align center
2251 \begin_inset Flex URL
2252 status collapsed
2253
2254 \begin_layout Plain Layout
2255
2256 ftp://ftp.edpsciences.org/pub/aa/readme.html
2257 \end_layout
2258
2259 \end_inset
2260
2261
2262 \end_layout
2263
2264 \begin_layout Standard
2265 \begin_inset VSpace medskip
2266 \end_inset
2267
2268
2269 \end_layout
2270
2271 \begin_layout Standard
2272 A manual comes together with that package, and this text is not meant to
2273  replace the original manual but is merely a short guide in how to realize
2274  the correct form of your paper.
2275  
2276 \end_layout
2277
2278 \begin_layout Standard
2279 Please note that the publisher of the journal was changed from Springer
2280  to EDP Sciences starting January 1, 2001.
2281  That change involved also some slight changes to the style files, namely
2282  the removal of the thesaurus command.
2283  The \SpecialChar LyX
2284  class aa supports the newest version of these style files, V 5.01.
2285  If you have an older version installed, please upgrade.
2286  For compatibility, the old (version 4) layout has been kept as 
2287 \family sans
2288 article (A&A V4)
2289 \family default
2290 .
2291  Please refer to the comments in 
2292 \family typewriter
2293 \SpecialChar LyX
2294 Dir/layouts/aapaper.layout
2295 \family default
2296 .
2297 \end_layout
2298
2299 \begin_layout Subsection
2300 Getting started
2301 \end_layout
2302
2303 \begin_layout Standard
2304 It is recommended you start from the example template distributed with \SpecialChar LyX
2305 .
2306  If you are not using a template, note the following settings:
2307 \end_layout
2308
2309 \begin_layout Itemize
2310 Select 
2311 \family sans
2312 article (A&A)
2313 \family default
2314  in the 
2315 \family sans
2316 Document\SpecialChar menuseparator
2317 Settings
2318 \family default
2319  dialog (OK, that one was obvious).
2320 \end_layout
2321
2322 \begin_layout Itemize
2323 Don't change the option 
2324 \family sans
2325 Page
2326 \begin_inset space ~
2327 \end_inset
2328
2329 style
2330 \family default
2331 : Leave it set to 
2332 \family sans
2333 default
2334 \family default
2335 .
2336  The whole layout is done by the macros, you shouldn't change anything.
2337 \end_layout
2338
2339 \begin_layout Subsection
2340 The header block
2341 \end_layout
2342
2343 \begin_layout Standard
2344 First thing to enter is the header information.
2345  It consists of seven entries, of which some are optional.
2346  They are
2347 \end_layout
2348
2349 \begin_layout Itemize
2350
2351 \family sans
2352 Title
2353 \family default
2354 : [required] 
2355 \end_layout
2356
2357 \begin_layout Itemize
2358
2359 \family sans
2360 Subtitle
2361 \family default
2362 : [optional] 
2363 \end_layout
2364
2365 \begin_layout Itemize
2366
2367 \family sans
2368 Author
2369 \family default
2370 : [required]
2371 \end_layout
2372
2373 \begin_layout Itemize
2374
2375 \family sans
2376 Address
2377 \family default
2378 : [required]
2379 \end_layout
2380
2381 \begin_layout Itemize
2382
2383 \family sans
2384 Offprints
2385 \family default
2386 : [optional] if more than one author: whom to contact for offprint requests.
2387 \end_layout
2388
2389 \begin_layout Itemize
2390
2391 \family sans
2392 Mail
2393 \family default
2394 : [optional] mail address for contacts.
2395 \end_layout
2396
2397 \begin_layout Itemize
2398
2399 \family sans
2400 Date
2401 \family default
2402 : [required].
2403  Suggested format is 
2404 \family typewriter
2405 Received: <date>; Accepted <date> 
2406 \end_layout
2407
2408 \begin_layout Standard
2409 There is no need to issue the 
2410 \family typewriter
2411
2412 \backslash
2413 maketitle
2414 \family default
2415  command, this is done automatically by \SpecialChar LyX
2416  when the header is finished.
2417  Although the order of the single header entries doesn't matter it is advised
2418  to keep the above sequence, just to get the best optics and meets the layout
2419  of the real document.
2420 \end_layout
2421
2422 \begin_layout Standard
2423 If you want to place footnotes in the header block, e.
2424 \begin_inset space \thinspace{}
2425 \end_inset
2426
2427 g.
2428 \begin_inset space \space{}
2429 \end_inset
2430
2431 to state your present address, just use the standard footnote via the menu
2432  
2433 \family sans
2434 Insert\SpecialChar menuseparator
2435 Footnote.
2436
2437 \family default
2438  \SpecialChar LyX
2439  will automagically use the term 
2440 \family typewriter
2441
2442 \backslash
2443 thanks{}
2444 \family default
2445  in that case.
2446 \end_layout
2447
2448 \begin_layout Standard
2449 In addition to these topics, the macros use three additional \SpecialChar LaTeX
2450  commands that
2451  have no counterpart in \SpecialChar LyX
2452 :
2453 \end_layout
2454
2455 \begin_layout Itemize
2456
2457 \family typewriter
2458
2459 \backslash
2460 and
2461 \family default
2462  to separate different names for more than one author and institute, respectivel
2463 y.
2464 \end_layout
2465
2466 \begin_layout Itemize
2467
2468 \family typewriter
2469
2470 \backslash
2471 inst{<nr>}
2472 \family default
2473 to mark corresponding author/institute pairs.
2474  The institutes are numbered sequentially as they appear in the 
2475 \family sans
2476 Address
2477 \family default
2478  field, so you have to put a marker to each author.
2479 \end_layout
2480
2481 \begin_layout Itemize
2482
2483 \family typewriter
2484
2485 \backslash
2486 email{address}
2487 \family default
2488  to supply an email address for fast contact.
2489 \end_layout
2490
2491 \begin_layout Standard
2492 In all cases, the appropriate command has to be entered in \SpecialChar LyX
2493  and marked as
2494  \SpecialChar LaTeX
2495  code.
2496  See the examples.
2497  
2498 \end_layout
2499
2500 \begin_layout Subsection
2501 The abstract
2502 \end_layout
2503
2504 \begin_layout Standard
2505 The abstract should immediately follow the header block.
2506  With version 5 the abstract environment was changed to a command, and there
2507  is now a resctriction to only one paragraph.
2508  In addition, it should contain an entry with the keywords.
2509  This is not yet implemented for \SpecialChar LyX
2510 , therefore you have to enter the \SpecialChar LaTeX
2511  command
2512  
2513 \family typewriter
2514
2515 \backslash
2516 keywords{}
2517 \family default
2518  by hand and mark it as \SpecialChar LaTeX
2519  code.
2520  Refer to the example paper.
2521 \end_layout
2522
2523 \begin_layout Subsection
2524 Supported environments
2525 \end_layout
2526
2527 \begin_layout Standard
2528 The A&A paper layout supports the following environments for structuring
2529  your text:
2530 \end_layout
2531
2532 \begin_layout Itemize
2533
2534 \family sans
2535 Standard
2536 \end_layout
2537
2538 \begin_layout Itemize
2539
2540 \family sans
2541 Section
2542 \end_layout
2543
2544 \begin_layout Itemize
2545
2546 \family sans
2547 Subsection
2548 \end_layout
2549
2550 \begin_layout Itemize
2551
2552 \family sans
2553 Subsubsection
2554 \end_layout
2555
2556 \begin_layout Itemize
2557
2558 \family sans
2559 Itemize
2560 \end_layout
2561
2562 \begin_layout Itemize
2563
2564 \family sans
2565 Enumerate
2566 \end_layout
2567
2568 \begin_layout Itemize
2569
2570 \family sans
2571 Description
2572 \end_layout
2573
2574 \begin_layout Itemize
2575
2576 \family sans
2577 Caption
2578 \end_layout
2579
2580 \begin_layout Itemize
2581
2582 \family sans
2583 Abstract
2584 \end_layout
2585
2586 \begin_layout Itemize
2587
2588 \family sans
2589 Acknowledgment
2590 \end_layout
2591
2592 \begin_layout Itemize
2593
2594 \family sans
2595 Bibliography
2596 \end_layout
2597
2598 \begin_layout Itemize
2599
2600 \family sans
2601 \SpecialChar LaTeX
2602
2603 \end_layout
2604
2605 \begin_layout Subsection
2606 Commands not supported by \SpecialChar LyX
2607
2608 \end_layout
2609
2610 \begin_layout Standard
2611 Some commands are not yet supported by the 
2612 \family sans
2613 paper (A&A)
2614 \family default
2615  layout for \SpecialChar LyX
2616 .
2617  Some have already been mentioned.
2618  For the sake of completeness, they are listed all together here:
2619 \end_layout
2620
2621 \begin_layout Itemize
2622
2623 \family typewriter
2624
2625 \backslash
2626 and
2627 \end_layout
2628
2629 \begin_layout Itemize
2630
2631 \family typewriter
2632
2633 \backslash
2634 email
2635 \end_layout
2636
2637 \begin_layout Itemize
2638
2639 \family typewriter
2640
2641 \backslash
2642 appendix
2643 \end_layout
2644
2645 \begin_layout Itemize
2646
2647 \family typewriter
2648
2649 \backslash
2650 authorrunning
2651 \end_layout
2652
2653 \begin_layout Itemize
2654
2655 \family typewriter
2656
2657 \backslash
2658 inst{}
2659 \end_layout
2660
2661 \begin_layout Itemize
2662
2663 \family typewriter
2664
2665 \backslash
2666 keywords{}
2667 \end_layout
2668
2669 \begin_layout Itemize
2670
2671 \family typewriter
2672
2673 \backslash
2674 object{}
2675 \end_layout
2676
2677 \begin_layout Itemize
2678
2679 \family typewriter
2680
2681 \backslash
2682 titlerunning{}
2683 \end_layout
2684
2685 \begin_layout Standard
2686 If you want to use any of these commands, you have to enter them yourself.
2687  
2688 \series bold
2689 Do not forget to mark them as \SpecialChar LaTeX
2690  code!
2691 \end_layout
2692
2693 \begin_layout Subsection
2694 Figure and Table Floats
2695 \end_layout
2696
2697 \begin_layout Standard
2698 \SpecialChar LyX
2699  provides support for the necessary float environments 
2700 \family sans
2701 figure, figure*, table
2702 \family default
2703  and 
2704 \family sans
2705 table*
2706 \family default
2707 , therefore we won't tell much about it here.
2708  Refer to the 
2709 \emph on
2710 User's
2711 \begin_inset space ~
2712 \end_inset
2713
2714 Guide
2715 \emph default
2716 .
2717  Just remember that tables should be left-aligned.
2718  For that, select the table and change the alignment in 
2719 \family sans
2720 Edit\SpecialChar menuseparator
2721 Paragraph
2722 \begin_inset space ~
2723 \end_inset
2724
2725 Settings.
2726 \end_layout
2727
2728 \begin_layout Standard
2729 There is only one special thing: the figures with caption besides the figure.
2730  To create such a figure, you have to do the following:
2731 \end_layout
2732
2733 \begin_layout Enumerate
2734 Create a wide figure float: 
2735 \family sans
2736 Insert\SpecialChar menuseparator
2737 Float\SpecialChar menuseparator
2738 Figure
2739 \family default
2740 , then right click in the figure and select 
2741 \family sans
2742 Span
2743 \begin_inset space ~
2744 \end_inset
2745
2746 columns
2747 \family default
2748 .
2749 \end_layout
2750
2751 \begin_layout Enumerate
2752 Enter your caption text.
2753 \end_layout
2754
2755 \begin_layout Enumerate
2756 Press 
2757 \family sans
2758 Return
2759 \family default
2760  to move the cursor above the caption.
2761 \end_layout
2762
2763 \begin_layout Enumerate
2764 Insert your figure
2765 \end_layout
2766
2767 \begin_layout Enumerate
2768 Position the cursor behind the figure and insert a horizontal fill: 
2769 \family sans
2770 Insert\SpecialChar menuseparator
2771 Special
2772 \begin_inset space ~
2773 \end_inset
2774
2775 Character\SpecialChar menuseparator
2776 Horizontal
2777 \begin_inset space ~
2778 \end_inset
2779
2780 Fill
2781 \family default
2782 .
2783 \end_layout
2784
2785 \begin_layout Enumerate
2786 Switch to \SpecialChar LaTeX
2787  mode: 
2788 \family sans
2789 M-c
2790 \begin_inset space ~
2791 \end_inset
2792
2793 t
2794 \family default
2795 .
2796 \end_layout
2797
2798 \begin_layout Enumerate
2799 Enter 
2800 \family typewriter
2801
2802 \backslash
2803 parbox[b]{55mm}{
2804 \family default
2805 .
2806  
2807 \series bold
2808 Do not close the brace!
2809 \end_layout
2810
2811 \begin_layout Enumerate
2812 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
2813  mode and insert
2814  the closing brace: 
2815 \family sans
2816 M-c
2817 \begin_inset space ~
2818 \end_inset
2819
2820 t
2821 \family default
2822  
2823 \family typewriter
2824 }
2825 \family default
2826 .
2827 \end_layout
2828
2829 \begin_layout Standard
2830 Also, refer to the figures in the example paper.
2831 \end_layout
2832
2833 \begin_layout Subsection
2834 Referee layout
2835 \end_layout
2836
2837 \begin_layout Standard
2838 For submission, the paper has to be formated in a special double-spacing
2839  layout.
2840  For this purpose, you have to give the option 
2841 \family typewriter
2842 referee
2843 \family default
2844  to the documentclass.
2845  This must be done using the extra class options field in the 
2846 \family sans
2847 Document\SpecialChar menuseparator
2848 Settings
2849 \family default
2850  dialog.
2851  Just enter the string 
2852 \family typewriter
2853 referee
2854 \family default
2855  there.
2856 \end_layout
2857
2858 \begin_layout Subsection
2859 The example paper
2860 \end_layout
2861
2862 \begin_layout Standard
2863 The 
2864 \family sans
2865 Examples
2866 \family default
2867  directory contains an example paper written with \SpecialChar LyX
2868 .
2869  It is the example paper from the original macro package, translated to
2870  \SpecialChar LyX
2871 .
2872  Use it for inspiration, and compare the original \SpecialChar LaTeX
2873  code with \SpecialChar LyX
2874  way of writing.
2875 \end_layout
2876
2877 \begin_layout Section
2878 AAS\SpecialChar TeX
2879
2880 \end_layout
2881
2882 \begin_layout Standard
2883 by 
2884 \noun on
2885 Mike Ressler
2886 \end_layout
2887
2888 \begin_layout Subsection
2889 Introduction
2890 \end_layout
2891
2892 \begin_layout Standard
2893 AAS\SpecialChar TeX
2894  is a set of macros produced by the American Astronomical Society to
2895  facilitate electronic manuscript submission to the three journals they
2896  publish: the Astrophysical Journal (including the Letters and Supplement),
2897  the Astronomical Journal, and the Publications of the Astronomical Society
2898  of the Pacific.
2899  \SpecialChar LyX
2900  has proven to be an excellent tool for generating these documents, especially
2901  given its equation, citation, and figure handling capabilities.
2902  \SpecialChar LyX
2903  requires version 5.0 (or higher) of these macros; preferably 5.2, which
2904  is the version described here, or higher.
2905  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
2906 2.09 and are fundamentally
2907  incompatible with \SpecialChar LyX
2908 .
2909  The AAS\SpecialChar TeX
2910  package may be downloaded from the AAS\SpecialChar TeX
2911  Web site
2912 \end_layout
2913
2914 \begin_layout Standard
2915 \begin_inset VSpace medskip
2916 \end_inset
2917
2918
2919 \end_layout
2920
2921 \begin_layout Standard
2922 \align center
2923 \begin_inset Flex URL
2924 status collapsed
2925
2926 \begin_layout Plain Layout
2927
2928 https://aas.org/aastex/aastex-downloads
2929 \end_layout
2930
2931 \end_inset
2932
2933
2934 \end_layout
2935
2936 \begin_layout Standard
2937 \begin_inset VSpace medskip
2938 \end_inset
2939
2940
2941 \end_layout
2942
2943 \begin_layout Standard
2944 A complete user guide is contained in that package and you should familiarize
2945  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
2946 .
2947  \SpecialChar LyX
2948  will not reduce the need to figure out all the AAS\SpecialChar TeX
2949  commands, it will only
2950  reduce the drudgery of typing everything in.
2951  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
2952  document conforms
2953  completely to the requirements of the journal to which you are submitting
2954  your paper.
2955 \end_layout
2956
2957 \begin_layout Subsection
2958 Starting a New Paper
2959 \end_layout
2960
2961 \begin_layout Standard
2962 I strongly suggest that you start with the AAS\SpecialChar TeX
2963  template file.
2964  Click on 
2965 \family sans
2966 File\SpecialChar menuseparator
2967 New from
2968 \family default
2969  
2970 \family sans
2971 Template
2972 \family default
2973 , enter the new file name, then choose the 
2974 \family typewriter
2975 aastex.lyx
2976 \family default
2977  template.
2978  This will show the most common fields found in a manuscript.
2979  Simply overwrite the existing text (including the brackets, 
2980 \family typewriter
2981 <>
2982 \family default
2983 ) with the correct information.
2984  Many of the AAS\SpecialChar TeX
2985  commands and environments can be implemented directly in
2986  \SpecialChar LyX
2987 , but some cannot: most noticeably 
2988 \family typewriter
2989
2990 \backslash
2991 altaffilmark
2992 \family default
2993  and 
2994 \family typewriter
2995
2996 \backslash
2997 altaffiltext
2998 \family default
2999 , which should stick out like a sore thumb if you actually just opened the
3000  template file.
3001  For commands such as these, the \SpecialChar LaTeX
3002  code must be entered directly and marked
3003  as such.
3004  Such commands are referred to as \SpecialChar TeX
3005  code, or Evil Red Text.
3006  I tried to minimize the amount of \SpecialChar TeX
3007  code needed in an AAS\SpecialChar TeX
3008  document, but
3009  there is still a bit more required than any of us would like.
3010 \end_layout
3011
3012 \begin_layout Subsection
3013 Finishing Your Paper
3014 \end_layout
3015
3016 \begin_layout Standard
3017 When the paper is finished to your satisfaction and previews/prints correctly,
3018  there are a few 
3019 \begin_inset Quotes eld
3020 \end_inset
3021
3022 postprocessing
3023 \begin_inset Quotes erd
3024 \end_inset
3025
3026  actions which need to be done before you submit it to the journals.
3027  
3028 \end_layout
3029
3030 \begin_layout Enumerate
3031 Export your paper as a \SpecialChar LaTeX
3032  file (
3033 \family sans
3034 File\SpecialChar menuseparator
3035 Export\SpecialChar menuseparator
3036 \SpecialChar LaTeX
3037
3038 \family default
3039 ).
3040  
3041 \end_layout
3042
3043 \begin_layout Enumerate
3044 Edit the resulting 
3045 \family typewriter
3046 .tex
3047 \family default
3048  file with your favorite text editor
3049 \end_layout
3050
3051 \begin_deeper
3052 \begin_layout Enumerate
3053 remove the comment lines before the 
3054 \family typewriter
3055
3056 \backslash
3057 documentclass
3058 \family default
3059  command
3060 \end_layout
3061
3062 \begin_layout Enumerate
3063 remove the 
3064 \family typewriter
3065
3066 \backslash
3067 usepackage...{fontenc}
3068 \family default
3069  line if it appears (usually just after 
3070 \family typewriter
3071
3072 \backslash
3073 documentclass
3074 \family default
3075 }; also remove the 
3076 \family typewriter
3077
3078 \backslash
3079 secnumdepth
3080 \family default
3081  line if it appears.
3082 \end_layout
3083
3084 \begin_layout Enumerate
3085 remove everything between (and including) the 
3086 \family typewriter
3087
3088 \backslash
3089 makeatletter
3090 \family default
3091  and 
3092 \family typewriter
3093
3094 \backslash
3095 makeatother
3096 \family default
3097  commands, except for any commands you specifically put into the \SpecialChar LaTeX
3098  preamble
3099  (which should appear immediately after the 
3100 \begin_inset Quotes eld
3101 \end_inset
3102
3103 User specified \SpecialChar LaTeX
3104  commands
3105 \begin_inset Quotes erd
3106 \end_inset
3107
3108  comment in the 
3109 \family typewriter
3110 .tex
3111 \family default
3112  file).
3113 \end_layout
3114
3115 \end_deeper
3116 \begin_layout Enumerate
3117 Run the resulting file through \SpecialChar LaTeX
3118  to make sure it still processes correctly.
3119 \end_layout
3120
3121 \begin_layout Enumerate
3122 Reread the journal requirements to make sure your filenames and formats
3123  are correct.
3124 \end_layout
3125
3126 \begin_layout Enumerate
3127 Submit it.
3128 \end_layout
3129
3130 \begin_layout Subsection
3131 Comments On Specific Commands
3132 \end_layout
3133
3134 \begin_layout Standard
3135 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
3136  commands: the
3137  AAS\SpecialChar TeX
3138  User Guide (
3139 \family typewriter
3140 aasguide.tex
3141 \family default
3142 ) gives a good description of each.
3143  Thus it's probably easiest for me to go down the list as found in the guide
3144  and offer comments where necessary.
3145  So let's begin \SpecialChar ldots
3146
3147 \end_layout
3148
3149 \begin_layout Subsubsection
3150 Things that work as expected
3151 \end_layout
3152
3153 \begin_layout Standard
3154 Because they work as you might expect, I simply list them and the section
3155  they are found in: 
3156 \family typewriter
3157
3158 \backslash
3159 documentclass
3160 \family default
3161  (2.1.1), 
3162 \family typewriter
3163
3164 \backslash
3165 begin{document}
3166 \family default
3167  (2.2), 
3168 \family typewriter
3169
3170 \backslash
3171 title
3172 \family default
3173  (2.3), 
3174 \family typewriter
3175
3176 \backslash
3177 author
3178 \family default
3179  (2.3), 
3180 \family typewriter
3181
3182 \backslash
3183 affil
3184 \family default
3185  (2.3), 
3186 \family typewriter
3187
3188 \backslash
3189 abstract
3190 \family default
3191  (2.4), 
3192 \family typewriter
3193
3194 \backslash
3195 keywords
3196 \family default
3197  (2.5), 
3198 \family typewriter
3199
3200 \backslash
3201 section
3202 \family default
3203  (2.7), 
3204 \family typewriter
3205
3206 \backslash
3207 subsection
3208 \family default
3209  (2.7), 
3210 \family typewriter
3211
3212 \backslash
3213 subsubsection
3214 \family default
3215  (2.7), 
3216 \family typewriter
3217
3218 \backslash
3219 paragraph
3220 \family default
3221  (2.7), 
3222 \family typewriter
3223
3224 \backslash
3225 facility
3226 \family default
3227  (2.10), 
3228 \family typewriter
3229
3230 \backslash
3231 begin{displaymath}
3232 \family default
3233  (2.12), 
3234 \family typewriter
3235
3236 \backslash
3237 begin{equation}
3238 \family default
3239  (2.12), 
3240 \family typewriter
3241
3242 \backslash
3243 begin{eqnarray}
3244 \family default
3245  (2.12), 
3246 \family typewriter
3247
3248 \backslash
3249 begin{mathletters}
3250 \family default
3251  (2.12), 
3252 \family typewriter
3253
3254 \backslash
3255 begin{thebibliography}
3256 \family default
3257  (2.13.1), 
3258 \family typewriter
3259
3260 \backslash
3261 bibitem
3262 \family default
3263  (2.13.2), all the cite commands and their variations (2.13.2), the generic
3264  graphicx figure commands (2.14.1), 
3265 \family typewriter
3266
3267 \backslash
3268 begin{table}
3269 \family default
3270  (2.15.4), 
3271 \family typewriter
3272
3273 \backslash
3274 begin{tabular}
3275 \family default
3276  (2.15.4), 
3277 \family typewriter
3278
3279 \backslash
3280 caption
3281 \family default
3282  (2.15.4), 
3283 \family typewriter
3284
3285 \backslash
3286 label
3287 \family default
3288  (2.15.4, amongst other places), 
3289 \family typewriter
3290
3291 \backslash
3292 tablerefs
3293 \family default
3294  (2.15.5), 
3295 \family typewriter
3296
3297 \backslash
3298 tablecomments
3299 \family default
3300  (2.15.5), 
3301 \family typewriter
3302
3303 \backslash
3304 url
3305 \family default
3306  (2.17.4), 
3307 \family typewriter
3308
3309 \backslash
3310 end{document}
3311 \family default
3312  (2.18).
3313 \end_layout
3314
3315 \begin_layout Standard
3316 The following style options also work correctly: 
3317 \family typewriter
3318 longabstract
3319 \family default
3320  (2.4), 
3321 \family typewriter
3322 preprint
3323 \family default
3324  (3.2.1), 
3325 \family typewriter
3326 preprint2
3327 \family default
3328  (3.2.2), 
3329 \family typewriter
3330 eqsecnum
3331 \family default
3332  (3.3), 
3333 \family typewriter
3334 flushrt
3335 \family default
3336  (3.4).
3337  Simply put them in the 
3338 \family sans
3339 Options
3340 \family default
3341  box in 
3342 \family sans
3343 Layout\SpecialChar menuseparator
3344 Document
3345 \family default
3346 .
3347 \end_layout
3348
3349 \begin_layout Subsubsection
3350 Things that work, but require more comment
3351 \end_layout
3352
3353 \begin_layout Standard
3354 The following items work, but require a little more discussion:
3355 \end_layout
3356
3357 \begin_layout Itemize
3358 These items are reserved for use by the journal editors, but you can put
3359  them into the \SpecialChar LaTeX
3360  preamble if you feel compelled to do so: 
3361 \family typewriter
3362
3363 \backslash
3364 received
3365 \family default
3366
3367 \family typewriter
3368
3369 \backslash
3370 revised
3371 \family default
3372
3373 \family typewriter
3374
3375 \backslash
3376 accepted
3377 \family default
3378
3379 \family typewriter
3380
3381 \backslash
3382 ccc
3383 \family default
3384
3385 \family typewriter
3386
3387 \backslash
3388 cpright
3389 \family default
3390  (all from 2.1.3)
3391 \end_layout
3392
3393 \begin_layout Itemize
3394 These items may be placed in the \SpecialChar LaTeX
3395  preamble, and are included as blanks in
3396  the template file: 
3397 \family typewriter
3398
3399 \backslash
3400 slugcomment
3401 \family default
3402  (2.1.4), 
3403 \family typewriter
3404
3405 \backslash
3406 shorttitle
3407 \family default
3408  (2.1.5), 
3409 \family typewriter
3410
3411 \backslash
3412 shortauthors
3413 \family default
3414  (2.1.5)
3415 \end_layout
3416
3417 \begin_layout Itemize
3418
3419 \family typewriter
3420
3421 \backslash
3422 email
3423 \family default
3424  (2.3) – can only be used 
3425 \begin_inset Quotes eld
3426 \end_inset
3427
3428 standalone
3429 \begin_inset Quotes erd
3430 \end_inset
3431
3432 , not in the middle of a paragraph.
3433  Use \SpecialChar TeX
3434  code if you need to embed it.
3435 \end_layout
3436
3437 \begin_layout Itemize
3438
3439 \family typewriter
3440
3441 \backslash
3442 and
3443 \family default
3444  (2.3) – will have extra {} after it.
3445  This should not cause an error.
3446 \end_layout
3447
3448 \begin_layout Itemize
3449
3450 \family typewriter
3451
3452 \backslash
3453 notetoeditor
3454 \family default
3455  (2.6) – can only be used 
3456 \begin_inset Quotes eld
3457 \end_inset
3458
3459 standalone
3460 \begin_inset Quotes erd
3461 \end_inset
3462
3463 , not in the middle of a paragraph.
3464  Use \SpecialChar TeX
3465  code if you need to embed it.
3466 \end_layout
3467
3468 \begin_layout Itemize
3469
3470 \family typewriter
3471
3472 \backslash
3473 placetable
3474 \family default
3475  (2.8) – can't insert a cross-reference tag, you must type the tag name by
3476  hand
3477 \end_layout
3478
3479 \begin_layout Itemize
3480
3481 \family typewriter
3482
3483 \backslash
3484 placefigure
3485 \family default
3486  (2.8) – same as for 
3487 \family typewriter
3488
3489 \backslash
3490 placetable
3491 \end_layout
3492
3493 \begin_layout Itemize
3494
3495 \family typewriter
3496
3497 \backslash
3498 acknowledgements
3499 \family default
3500  (2.9) – will have extra {} after it.
3501  This should not cause an error.
3502 \end_layout
3503
3504 \begin_layout Itemize
3505
3506 \family typewriter
3507
3508 \backslash
3509 appendix
3510 \family default
3511  (2.11) – will have extra {} after it.
3512  This should not cause an error.
3513 \end_layout
3514
3515 \begin_layout Itemize
3516
3517 \family typewriter
3518
3519 \backslash
3520 figcaption
3521 \family default
3522  (2.14.2) – you can insert an optional filename argument by placing the cursor
3523  at the beginning of the text and selecting 
3524 \family sans
3525 Insert\SpecialChar menuseparator
3526 Short Title
3527 \family default
3528 .
3529  
3530 \begin_inset Quotes eld
3531 \end_inset
3532
3533 Short Title
3534 \begin_inset Quotes erd
3535 \end_inset
3536
3537  inserts an optional argument of the type needed by 
3538 \family typewriter
3539
3540 \backslash
3541 figcaption
3542 \family default
3543 .
3544  Hopefully it will be renamed someday.
3545 \end_layout
3546
3547 \begin_layout Itemize
3548
3549 \family typewriter
3550
3551 \backslash
3552 objectname
3553 \family default
3554  (2.17.1) – same as 
3555 \family typewriter
3556
3557 \backslash
3558 figcaption
3559 \family default
3560  for the catalog ID optional parameter
3561 \end_layout
3562
3563 \begin_layout Itemize
3564
3565 \family typewriter
3566
3567 \backslash
3568 dataset
3569 \family default
3570  (2.17.1) – same as 
3571 \family typewriter
3572
3573 \backslash
3574 figcaption
3575 \family default
3576  for the catalog ID optional parameter
3577 \end_layout
3578
3579 \begin_layout Subsubsection
3580 Things not implemented, use \SpecialChar TeX
3581  code
3582 \end_layout
3583
3584 \begin_layout Standard
3585
3586 \family typewriter
3587
3588 \backslash
3589 altaffilmark
3590 \family default
3591  (2.3), 
3592 \family typewriter
3593
3594 \backslash
3595 altaffiltext
3596 \family default
3597  (2.3), 
3598 \family typewriter
3599
3600 \backslash
3601 eqnum
3602 \family default
3603  (2.12), 
3604 \family typewriter
3605
3606 \backslash
3607 setcounter{equation}
3608 \family default
3609  (2.12), Journal name abbreviations (2.13.4), 
3610 \family typewriter
3611
3612 \backslash
3613 figurenum
3614 \family default
3615  (2.14.1), 
3616 \family typewriter
3617
3618 \backslash
3619 epsscale
3620 \family default
3621  (2.14.1), 
3622 \family typewriter
3623
3624 \backslash
3625 plotone
3626 \family default
3627  (2.14.1), 
3628 \family typewriter
3629
3630 \backslash
3631 plottwo
3632 \family default
3633  (2.14.1), 
3634 \family typewriter
3635
3636 \backslash
3637 tablenum
3638 \family default
3639  (2.15.4), 
3640 \family typewriter
3641
3642 \backslash
3643 tableline
3644 \family default
3645  (2.15.4, insert it as the first element in the lefthand cell after where
3646  you want it.
3647  Don't use any of \SpecialChar LyX
3648 's rules in the table), 
3649 \family typewriter
3650
3651 \backslash
3652 tablenotemark
3653 \family default
3654  (2.15.5), 
3655 \family typewriter
3656
3657 \backslash
3658 tablenotetext
3659 \family default
3660  (2.15.5), much of Misc (2.17, except 
3661 \family typewriter
3662
3663 \backslash
3664 objectname
3665 \family default
3666
3667 \family typewriter
3668
3669 \backslash
3670 dataset
3671 \family default
3672
3673 \family typewriter
3674
3675 \backslash
3676 url
3677 \family default
3678 , and 
3679 \family typewriter
3680
3681 \backslash
3682 email
3683 \family default
3684 ; see above), 
3685 \family typewriter
3686
3687 \backslash
3688 singlespace
3689 \family default
3690  (3.1), 
3691 \family typewriter
3692
3693 \backslash
3694 doublespace
3695 \family default
3696  (3.1), 
3697 \family typewriter
3698
3699 \backslash
3700 onecolumn
3701 \family default
3702  (3.2), 
3703 \family typewriter
3704
3705 \backslash
3706 twocolumn
3707 \family default
3708  (3.2)
3709 \end_layout
3710
3711 \begin_layout Subsubsection
3712 Things that cannot be implemented
3713 \end_layout
3714
3715 \begin_layout Standard
3716 \SpecialChar ldots
3717  at least in any meaningful sort of way, so I suggest ignoring them.
3718  They are the references environment (2.13.3), and the deluxetable environment
3719  (2.15).
3720  If you really, really need to use deluxetable, I suggest editing it in
3721  a separate file with a text editor, then using 
3722 \family sans
3723 Insert\SpecialChar menuseparator
3724 Child
3725 \begin_inset space ~
3726 \end_inset
3727
3728 Document
3729 \family default
3730  to include it in your \SpecialChar LyX
3731  document.
3732  See the 
3733 \family typewriter
3734 aas_sample.lyx
3735 \family default
3736  file to see an example of this.
3737 \end_layout
3738
3739 \begin_layout Subsection
3740 FAQs, Tips, Tricks, and Other Ruminations
3741 \end_layout
3742
3743 \begin_layout Subsubsection
3744 Getting \SpecialChar LyX
3745  and AAS\SpecialChar TeX
3746  to cooperate
3747 \end_layout
3748
3749 \begin_layout Standard
3750 It can be a bit tricky to get \SpecialChar LyX
3751  to recognize a new layout and document class.
3752  When all else fails, do this:
3753 \end_layout
3754
3755 \begin_layout Enumerate
3756 Make certain that \SpecialChar LaTeX
3757  can find AAS\SpecialChar TeX
3758 .
3759  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
3760  distribution into a
3761  directory completely unrelated to \SpecialChar LaTeX
3762  or AAS\SpecialChar TeX
3763  and run \SpecialChar LaTeX
3764  on 
3765 \family typewriter
3766 sample.tex
3767 \family default
3768 .
3769 \end_layout
3770
3771 \begin_layout Enumerate
3772 Make certain that 
3773 \family typewriter
3774 aastex.layout
3775 \family default
3776  appears in \SpecialChar LyX
3777 's 
3778 \family typewriter
3779 layouts
3780 \family default
3781  folder
3782 \end_layout
3783
3784 \begin_layout Enumerate
3785 Rerun 
3786 \family sans
3787 Tools\SpecialChar menuseparator
3788 Reconfigure
3789 \family default
3790  in \SpecialChar LyX
3791 , then restart \SpecialChar LyX
3792 .
3793 \end_layout
3794
3795 \begin_layout Enumerate
3796 Open a regular new file, not from a template.
3797  Does AAS\SpecialChar TeX
3798  appear in the class list in 
3799 \family sans
3800 Document\SpecialChar menuseparator
3801 Settings
3802 \family default
3803 ?
3804 \end_layout
3805
3806 \begin_layout Standard
3807 If you get a warning from an existing AAS\SpecialChar TeX
3808  document about not being able
3809  to find the AAS\SpecialChar TeX
3810  layout or a message about 
3811 \begin_inset Quotes eld
3812 \end_inset
3813
3814 You should not mix title layouts with normal ones
3815 \begin_inset Quotes erd
3816 \end_inset
3817
3818 , things haven't been installed correctly.
3819 \end_layout
3820
3821 \begin_layout Subsubsection
3822 \SpecialChar LaTeX
3823  error processing a table 
3824 \end_layout
3825
3826 \begin_layout Standard
3827 \SpecialChar LyX
3828 , by default, attempts to center the table caption/title.
3829  This seems to produce a bad interaction in AAS\SpecialChar TeX
3830  so you should click somewhere
3831  in the caption/title, then select 
3832 \family sans
3833 Edit\SpecialChar menuseparator
3834 Paragraph
3835 \begin_inset space ~
3836 \end_inset
3837
3838 Settings
3839 \family default
3840 , then set the 
3841 \family sans
3842 Alignment
3843 \family default
3844  to 
3845 \family sans
3846 Block
3847 \family default
3848 .
3849  This took care of it for me.
3850 \end_layout
3851
3852 \begin_layout Subsubsection
3853 References
3854 \end_layout
3855
3856 \begin_layout Standard
3857 A couple of things: 1) I have noticed some funny spacing in the reference
3858  entries in the text.
3859  When you enter the bibliography item data, make sure their is 
3860 \emph on
3861 no
3862 \emph default
3863  space between the last author and the parenthesis setting off the year;
3864  
3865 \emph on
3866 e.
3867 \begin_inset space \thinspace{}
3868 \end_inset
3869
3870 g.
3871 \begin_inset space \space{}
3872 \end_inset
3873
3874
3875 \emph default
3876 type 
3877 \family typewriter
3878 Ressler(1992)
3879 \family default
3880 , not 
3881 \family typewriter
3882 Ressler (1992)
3883 \family default
3884 .
3885  2) Entering the references at all is not obvious.
3886  The easiest thing is to start typing your first reference at the end of
3887  the document, then mark it as type 
3888 \family sans
3889 References
3890 \family default
3891 .
3892  That will put a small gray box in front of what you just typed.
3893  Click on the box to fill in the rest of the information.
3894  For new references, go to the end of an existing reference and press return.
3895  That will create a new line with its own box, etc.
3896 \end_layout
3897
3898 \begin_layout Subsubsection
3899 Including EPS files
3900 \end_layout
3901
3902 \begin_layout Standard
3903 Even though AAS\SpecialChar TeX
3904  provides its own figure commands (
3905 \family typewriter
3906
3907 \backslash
3908 plotone
3909 \family default
3910 , for example), I much prefer \SpecialChar LaTeX
3911 's standard figure commands (with the default
3912  graphicx).
3913  You can insert the 
3914 \family typewriter
3915
3916 \backslash
3917 plotone
3918 \family default
3919 , etc.
3920 \begin_inset space ~
3921 \end_inset
3922
3923 commands as \SpecialChar TeX
3924  code into a Figure Float box if you desire, but I never have
3925  much luck getting the layout right.
3926  With the standard graphics, \SpecialChar LyX
3927  will insert a 
3928 \family typewriter
3929
3930 \backslash
3931 usepackage{graphicx}
3932 \family default
3933  command into the \SpecialChar LaTeX
3934  preamble and handle the figures in the standard \SpecialChar LaTeX2e
3935  way,
3936  interspersing the figures in the text.
3937  I believe ApJ accepts figures exactly this way now; AJ might still use
3938  the 
3939 \begin_inset Quotes eld
3940 \end_inset
3941
3942 stack everything at the end
3943 \begin_inset Quotes erd
3944 \end_inset
3945
3946  technique.
3947 \end_layout
3948
3949 \begin_layout Subsubsection
3950 Things I could have done, but didn't
3951 \end_layout
3952
3953 \begin_layout Standard
3954 There are a few 
3955 \begin_inset Quotes eld
3956 \end_inset
3957
3958 pretty
3959 \begin_inset Quotes erd
3960 \end_inset
3961
3962  things I could have implemented, but chose not to.
3963  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
3964  window,
3965  even though it is double-spaced in the paper manuscript.
3966  Also, I chose not to make separate layouts for the preprint and preprint2
3967  styles.
3968  Since I assume you will spend most of your time in the plain manuscript
3969  mode anyway, I decided not to chew up more disk space with this.
3970  
3971 \end_layout
3972
3973 \begin_layout Subsection
3974 Final Caveat
3975 \end_layout
3976
3977 \begin_layout Standard
3978 Your mileage may vary.
3979  I've now had papers published by both ApJ and AJ that have had 98% of the
3980  effort done in \SpecialChar LyX
3981 ; the last 2% was the \SpecialChar LaTeX
3982  post-processing and a few cleanups.
3983  I have had no trouble with the submission process, and I'm sure the journals
3984  were never aware that there might be a difference.
3985  So, go forth and publish!
3986 \end_layout
3987
3988 \begin_layout Section
3989 AMS \SpecialChar LaTeX
3990
3991 \end_layout
3992
3993 \begin_layout Standard
3994 by 
3995 \noun on
3996 David Johnson
3997 \noun default
3998 ; updated by 
3999 \noun on
4000 Richard Heck
4001 \end_layout
4002
4003 \begin_layout Standard
4004 \begin_inset VSpace bigskip
4005 \end_inset
4006
4007
4008 \end_layout
4009
4010 \begin_layout Standard
4011 \noindent
4012 The AMS \SpecialChar LaTeX
4013  layouts are set up to conform to suggested styles for mathematical
4014  papers to be submitted to American Mathematical Society publications.
4015  The layouts are not tailored to a specific journal, but easily can be.
4016  You should refer to the AMS documentation for specific instructions for
4017  each journal (usually it will entail only changing a single line in the
4018  \SpecialChar TeX
4019  output).
4020  That documentation is available on the Web at 
4021 \begin_inset Flex URL
4022 status open
4023
4024 \begin_layout Plain Layout
4025
4026 http://www.ams.org
4027 \end_layout
4028
4029 \end_inset
4030
4031  or by ftp at 
4032 \begin_inset Flex URL
4033 status open
4034
4035 \begin_layout Plain Layout
4036
4037 ftp://ftp.ams.org/pub/tex/amslatex/
4038 \end_layout
4039
4040 \end_inset
4041
4042 .
4043  These layouts are appropriate, and useful, for any mathematical writing.
4044  
4045 \end_layout
4046
4047 \begin_layout Standard
4048 There are two basic AMS \SpecialChar LaTeX
4049  layouts: 
4050 \end_layout
4051
4052 \begin_layout Itemize
4053 amsart: The standard AMS article format.
4054 \end_layout
4055
4056 \begin_layout Itemize
4057 amsbook: the standard AMS book (really, monograph) format.
4058  
4059 \end_layout
4060
4061 \begin_layout Standard
4062 The layouts themselves contain only the minimum necessary to use the AMS
4063  classes.
4064  They do not, in particular, contain any of the `theorem' environments used
4065  for setting theorems, lemmas, and the like.
4066  These are contained, instead, in the 
4067 \begin_inset Flex Code
4068 status collapsed
4069
4070 \begin_layout Plain Layout
4071 Theorems (AMS)
4072 \end_layout
4073
4074 \end_inset
4075
4076  module, which is loaded by default when you select one of the AMS classes.
4077  (It can also be used with other classes and can be removed, if you would
4078  rather use something else.) Less commonly used environments are in the 
4079 \begin_inset Flex Code
4080 status collapsed
4081
4082 \begin_layout Plain Layout
4083 Theorems (AMS-Extended)
4084 \end_layout
4085
4086 \end_inset
4087
4088  module, which must be loaded manually.
4089 \end_layout
4090
4091 \begin_layout Standard
4092 By default, theorems and the like are numbered consecutively throughout
4093  the document, but this may be modified by loading the module 
4094 \begin_inset Flex Code
4095 status collapsed
4096
4097 \begin_layout Plain Layout
4098 Theorems (Order by Section)
4099 \end_layout
4100
4101 \end_inset
4102
4103  or, if you are using 
4104 \begin_inset Flex Code
4105 status collapsed
4106
4107 \begin_layout Plain Layout
4108 book (AMS)
4109 \end_layout
4110
4111 \end_inset
4112
4113 , the module 
4114 \begin_inset Flex Code
4115 status collapsed
4116
4117 \begin_layout Plain Layout
4118 Theorems (Order by Chapter)
4119 \end_layout
4120
4121 \end_inset
4122
4123 .
4124  These will number the results as 
4125 \begin_inset Formula $n.m$
4126 \end_inset
4127
4128 , where the first number refers to the section (or chapter) and the second
4129  refers to the total number of results so far in that section (or chapter).
4130  Many environments are also available unnumbered.
4131  These are indicated by an asterisk at the end.
4132  If you happen to want 
4133 \emph on
4134 only
4135 \emph default
4136  unnumbered results, the module 
4137 \begin_inset Flex Code
4138 status collapsed
4139
4140 \begin_layout Plain Layout
4141 Theorems (Starred)
4142 \end_layout
4143
4144 \end_inset
4145
4146  provides that option.
4147 \end_layout
4148
4149 \begin_layout Standard
4150 Note that these modules do not 
4151 \emph on
4152 have
4153 \emph default
4154  to be used with the AMS classes.
4155  It is perfectly possible to use the 
4156 \begin_inset Flex Code
4157 status collapsed
4158
4159 \begin_layout Plain Layout
4160 Theorems (AMS)
4161 \end_layout
4162
4163 \end_inset
4164
4165  module, and the others mentioned, with other classes, such as 
4166 \begin_inset Flex Code
4167 status collapsed
4168
4169 \begin_layout Plain Layout
4170 article
4171 \end_layout
4172
4173 \end_inset
4174
4175
4176 \begin_inset Flex Code
4177 status collapsed
4178
4179 \begin_layout Plain Layout
4180 report
4181 \end_layout
4182
4183 \end_inset
4184
4185
4186 \begin_inset Flex Code
4187 status collapsed
4188
4189 \begin_layout Plain Layout
4190 book (KOMA-script)
4191 \end_layout
4192
4193 \end_inset
4194
4195 , and so forth.
4196 \end_layout
4197
4198 \begin_layout Subsection
4199 What these layouts provide
4200 \end_layout
4201
4202 \begin_layout Standard
4203 There is a long list of included environments provided by these layouts.
4204  In AMS-\SpecialChar LaTeX
4205 , there is, in fact, an opportunity to define an unlimited variety
4206  of `theorem' environments.
4207  However, the AMS recommends the environments that are available in \SpecialChar LyX
4208 .
4209  
4210 \end_layout
4211
4212 \begin_layout Standard
4213 The following environments—as well as the standard environments, such as
4214  
4215 \begin_inset Flex Noun
4216 status collapsed
4217
4218 \begin_layout Plain Layout
4219 section
4220 \end_layout
4221
4222 \end_inset
4223
4224
4225 \begin_inset Flex Noun
4226 status collapsed
4227
4228 \begin_layout Plain Layout
4229 bibliography
4230 \end_layout
4231
4232 \end_inset
4233
4234
4235 \begin_inset Flex Noun
4236 status collapsed
4237
4238 \begin_layout Plain Layout
4239 title
4240 \end_layout
4241
4242 \end_inset
4243
4244
4245 \begin_inset Flex Noun
4246 status collapsed
4247
4248 \begin_layout Plain Layout
4249 author
4250 \end_layout
4251
4252 \end_inset
4253
4254 , and 
4255 \begin_inset Flex Noun
4256 status collapsed
4257
4258 \begin_layout Plain Layout
4259 date
4260 \end_layout
4261
4262 \end_inset
4263
4264 —are provided by 
4265 \begin_inset Flex Code
4266 status collapsed
4267
4268 \begin_layout Plain Layout
4269 article (AMS)
4270 \end_layout
4271
4272 \end_inset
4273
4274  and 
4275 \begin_inset Flex Code
4276 status collapsed
4277
4278 \begin_layout Plain Layout
4279 book (AMS)
4280 \end_layout
4281
4282 \end_inset
4283
4284 :
4285 \end_layout
4286
4287 \begin_layout Description
4288 Address This should be the author's permanent address.
4289 \end_layout
4290
4291 \begin_layout Description
4292 Current
4293 \begin_inset space ~
4294 \end_inset
4295
4296 Address This should be the author's temporary address at the time of submission,
4297  if different from the Address.
4298 \end_layout
4299
4300 \begin_layout Description
4301 Email Author's e-mail address
4302 \end_layout
4303
4304 \begin_layout Description
4305 URL Author's Web address, if desired.
4306 \end_layout
4307
4308 \begin_layout Description
4309 Keywords Key words or phrases used to identify specific topics discussed
4310  in the paper.
4311 \end_layout
4312
4313 \begin_layout Description
4314 Subjectclass These refer to the AMS Subject Classifications, published and
4315  described in 
4316 \emph on
4317 Mathematical Reviews
4318 \emph default
4319 .
4320  These are also available online at the AMS cites listed above.
4321 \end_layout
4322
4323 \begin_layout Description
4324 Thanks
4325 \end_layout
4326
4327 \begin_layout Description
4328 Dedicatory
4329 \end_layout
4330
4331 \begin_layout Description
4332 Translator
4333 \end_layout
4334
4335 \begin_layout Standard
4336 The following environments are provided by both the 
4337 \begin_inset Flex Code
4338 status collapsed
4339
4340 \begin_layout Plain Layout
4341 Theorems
4342 \end_layout
4343
4344 \end_inset
4345
4346  and 
4347 \begin_inset Flex Code
4348 status collapsed
4349
4350 \begin_layout Plain Layout
4351 Theorems (AMS)
4352 \end_layout
4353
4354 \end_inset
4355
4356  modules, in the latter case in both starred (unnumbered) and unstarred
4357  (numbered) versions.
4358  These same environments are provided only in the starred versions by the
4359  
4360 \begin_inset Flex Code
4361 status collapsed
4362
4363 \begin_layout Plain Layout
4364 Theorems (Starred)
4365 \end_layout
4366
4367 \end_inset
4368
4369  module:
4370 \end_layout
4371
4372 \begin_layout Theorem
4373 This is typically used for the statements of major results.
4374  
4375 \end_layout
4376
4377 \begin_layout Corollary*
4378 This is used for statements which follow fairly directly from previous statement
4379 s.
4380  Again, these can be major results.
4381  
4382 \end_layout
4383
4384 \begin_layout Lemma
4385 These are smaller results needed to prove other statements.
4386 \end_layout
4387
4388 \begin_layout Proposition
4389 These are less major results which (hopefully) add to the general theory
4390  being discussed.
4391 \end_layout
4392
4393 \begin_layout Conjecture
4394 These are statements provided without justification, which the author does
4395  not know how to prove, but which seem to be true (to the author, at least).
4396 \end_layout
4397
4398 \begin_layout Definition*
4399 Guess what this is for.
4400  The font is different for this environment than for the previous ones.
4401  
4402 \end_layout
4403
4404 \begin_layout Example*
4405 Used for examples illustrating proven results.
4406 \end_layout
4407
4408 \begin_layout Problem
4409 It's not really known what this is for.
4410  You should figure it out.
4411 \end_layout
4412
4413 \begin_layout Exercise*
4414 Write a description for this one.
4415 \end_layout
4416
4417 \begin_layout Remark
4418 This environment is also a type of theorem, usually a lesser sort of observation.
4419 \end_layout
4420
4421 \begin_layout Claim*
4422 Often used in the course of giving a proof of a larger result.
4423 \end_layout
4424
4425 \begin_layout Case
4426 Generally, these are used to break up long arguments, using specific instances
4427  of some condition.
4428  
4429 \end_layout
4430
4431 \begin_layout Case
4432 The numbering scheme for cases is on its own, not together with other numbered
4433  statements.
4434  
4435 \end_layout
4436
4437 \begin_layout Proof
4438 At the end of this environment, a QED symbol (usually a square, but it can
4439  vary with different styles) is placed.
4440  If you want to have other environments within this one—for example, Case
4441  environments—and have the QED symbol appear only after them, then the other
4442  environments need to be nested within the proof environment.
4443  See the section 
4444 \emph on
4445 Nesting Environments
4446 \emph default
4447  of the 
4448 \emph on
4449 User's Guide
4450 \emph default
4451  for information on nesting.
4452 \end_layout
4453
4454 \begin_layout Standard
4455 And these environments are provided by 
4456 \begin_inset Flex Code
4457 status collapsed
4458
4459 \begin_layout Plain Layout
4460 Theorems (AMS-Extended)
4461 \end_layout
4462
4463 \end_inset
4464
4465 :
4466 \end_layout
4467
4468 \begin_layout Criterion*
4469 A required condition.
4470 \end_layout
4471
4472 \begin_layout Algorithm*
4473 A general procedure to be used.
4474 \end_layout
4475
4476 \begin_layout Axiom*
4477 This is a property or statement taken as true within the system being discussed.
4478 \end_layout
4479
4480 \begin_layout Condition*
4481 Sometimes used to state a condition assumed within the present context of
4482  discussion.
4483 \end_layout
4484
4485 \begin_layout Note*
4486 Similar to a Remark.
4487 \end_layout
4488
4489 \begin_layout Notation*
4490 Used for the explanation of, yes, notation.
4491 \end_layout
4492
4493 \begin_layout Summary
4494 Do we really need to tell you? 
4495 \end_layout
4496
4497 \begin_layout Acknowledgement*
4498 Acknowledgement.
4499 \end_layout
4500
4501 \begin_layout Conclusion*
4502 Sometimes used at the end of a long train of argument.
4503 \end_layout
4504
4505 \begin_layout Fact
4506 Used in a way similar to Proposition, though perhaps lower on the scale.
4507 \end_layout
4508
4509 \begin_layout Standard
4510 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
4511  and AMS fonts
4512  packages.
4513  They need to be available on your system in order to use these environments.
4514 \end_layout
4515
4516 \begin_layout Section
4517 AGU journals (
4518 \family sans
4519 aguplus
4520 \family default
4521 )
4522 \end_layout
4523
4524 \begin_layout Standard
4525 by 
4526 \shape smallcaps
4527 Martin Vermeer
4528 \end_layout
4529
4530 \begin_layout Subsection
4531 Description
4532 \end_layout
4533
4534 \begin_layout Standard
4535 These are the layout files for some of the journals of the American Geophysical
4536  Society.
4537  It is assumed that you have both the AGU's own class files and AGUplus
4538  installed (everything to be found at
4539 \begin_inset Flex URL
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543
4544 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
4545 \end_layout
4546
4547 \end_inset
4548
4549 ).
4550 \end_layout
4551
4552 \begin_layout Subsection
4553 New styles
4554 \end_layout
4555
4556 \begin_layout Standard
4557 Redefined are 
4558 \family sans
4559 Paragraph
4560 \family default
4561
4562 \family sans
4563 Paragraph*
4564 \family default
4565 .
4566  They are still called this in the \SpecialChar LyX
4567  GUI, though their \SpecialChar LaTeX
4568  equivalents in the
4569  AGU classes are 
4570 \family sans
4571 Subsubsubsection
4572 \family default
4573  and 
4574 \family sans
4575 Subsubsubsection*
4576 \family default
4577 .
4578 \end_layout
4579
4580 \begin_layout Standard
4581 Newly defined styles are 
4582 \family sans
4583 Left_Header
4584 \family default
4585
4586 \family sans
4587 Right_Header
4588 \family default
4589
4590 \family sans
4591 Received
4592 \family default
4593
4594 \family sans
4595 Revised
4596 \family default
4597
4598 \family sans
4599 Accepted
4600 \family default
4601
4602 \family sans
4603 CCC
4604 \family default
4605
4606 \family sans
4607 PaperId
4608 \family default
4609
4610 \family sans
4611 AuthorAddr
4612 \family default
4613
4614 \family sans
4615 SlugComment
4616 \family default
4617 .
4618  These are mostly manuscript attributes and defined in the AGU class documentati
4619 on.
4620 \end_layout
4621
4622 \begin_layout Standard
4623 I suspect this is still badly incomplete.
4624 \end_layout
4625
4626 \begin_layout Subsection
4627 New floats
4628 \end_layout
4629
4630 \begin_layout Standard
4631
4632 \family sans
4633 Planotable
4634 \family default
4635  and 
4636 \family sans
4637 Plate
4638 \family default
4639 .
4640  We also have a new 
4641 \family sans
4642 Table_Caption
4643 \family default
4644 .
4645 \end_layout
4646
4647 \begin_layout Subsection
4648 Supported journals
4649 \end_layout
4650
4651 \begin_layout Itemize
4652
4653 \emph on
4654 Journal of Geophysical Research
4655 \emph default
4656
4657 \family typewriter
4658 jgrga.layout
4659 \family default
4660  — Martin Vermeer
4661 \end_layout
4662
4663 \begin_layout Standard
4664 Add your own, it isn't so hard! Look at the 
4665 \family typewriter
4666 jgrga.layout
4667 \family default
4668  example and 
4669 \family typewriter
4670 aguplus.inc
4671 \family default
4672 .
4673 \end_layout
4674
4675 \begin_layout Subsection
4676 Bugs and things to remember
4677 \end_layout
4678
4679 \begin_layout Standard
4680 In order to use the new layouts, you must remember to do the following for
4681  a new document:
4682 \end_layout
4683
4684 \begin_layout Enumerate
4685
4686 \emph on
4687 Turn off babel
4688 \emph default
4689 .
4690  This can be done in the 
4691 \family sans
4692 Layout\SpecialChar menuseparator
4693 Document
4694 \family default
4695  or 
4696 \family sans
4697 Document\SpecialChar menuseparator
4698 Settings
4699 \family default
4700  menu item.
4701  (AGU articles are always in English, right? So 
4702 \emph on
4703 don't
4704 \emph default
4705  choose a language.)
4706 \end_layout
4707
4708 \begin_layout Enumerate
4709 Enter 
4710 \family typewriter
4711 jgrga
4712 \family default
4713  into the document's 
4714 \family sans
4715 Extra Options
4716 \family default
4717  field.
4718  (Yes, this is a bug.)
4719 \end_layout
4720
4721 \begin_layout Enumerate
4722 Make sure you use the 
4723 \family typewriter
4724 agu.bst
4725 \family default
4726  bibliography style, by entering 
4727 \family sans
4728 agu
4729 \family default
4730  into the second field of the Bib\SpecialChar TeX
4731  inset.
4732  None of the standard styles will do.
4733 \end_layout
4734
4735 \begin_layout Section
4736 Broadway
4737 \end_layout
4738
4739 \begin_layout Standard
4740 by 
4741 \shape smallcaps
4742 Garst Reese
4743 \end_layout
4744
4745 \begin_layout Subsection
4746 Introduction
4747 \end_layout
4748
4749 \begin_layout Standard
4750 Broadway is for writing plays.
4751  The format is more decorative than Hollywood, and much less standardized.
4752  This format should be suitable for workshops.
4753 \end_layout
4754
4755 \begin_layout Subsection
4756 Special problems
4757 \end_layout
4758
4759 \begin_layout Standard
4760 The same as in Hollywood.
4761 \end_layout
4762
4763 \begin_layout Subsection
4764 Special features
4765 \end_layout
4766
4767 \begin_layout Standard
4768 Insert the 
4769 \family sans
4770 Speaker
4771 \family default
4772  names as labels then cross-reference the label to insert the name.
4773  The cross-reference dialog will show the current cast of characters.
4774 \end_layout
4775
4776 \begin_layout Subsection
4777 Paper size and Margins
4778 \end_layout
4779
4780 \begin_layout Standard
4781 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
4782 \end_layout
4783
4784 \begin_layout Subsection
4785 Environments
4786 \end_layout
4787
4788 \begin_layout Standard
4789 The following environments are available.
4790  You can use broadway.bind to get the bind keys shown at the right.
4791 \end_layout
4792
4793 \begin_layout Itemize
4794
4795 \family sans
4796 Standard
4797 \begin_inset Newline newline
4798 \end_inset
4799
4800
4801 \family default
4802 You should not have to use this, but it is here for anything that does not
4803  fit otherwise.
4804 \end_layout
4805
4806 \begin_layout Itemize
4807
4808 \family sans
4809 Narrative
4810 \begin_inset space \hfill{}
4811 \end_inset
4812
4813 M-z n
4814 \begin_inset Newline newline
4815 \end_inset
4816
4817
4818 \family default
4819 Used to describe stage setting and the action.
4820  First use of speaker names in all CAPs.
4821 \end_layout
4822
4823 \begin_layout Itemize
4824
4825 \family sans
4826 ACT
4827 \begin_inset space \hfill{}
4828 \end_inset
4829
4830 M-z a
4831 \begin_inset Newline newline
4832 \end_inset
4833
4834
4835 \family default
4836 Automatically numbered.
4837  On screen it will be arabic, but will print as Roman.
4838 \end_layout
4839
4840 \begin_layout Itemize
4841
4842 \family sans
4843 ACT*
4844 \begin_inset space \hfill{}
4845 \end_inset
4846
4847 M-z S at
4848 \begin_inset Newline newline
4849 \end_inset
4850
4851
4852 \family default
4853 Subtitle for 
4854 \family sans
4855 ACT.
4856
4857 \family default
4858  It is just centered text.
4859 \end_layout
4860
4861 \begin_layout Itemize
4862
4863 \family sans
4864 SCENE
4865 \begin_inset space \hfill{}
4866 \end_inset
4867
4868 M-z S-S
4869 \begin_inset Newline newline
4870 \end_inset
4871
4872
4873 \family default
4874 Not automatically numbered.
4875  You supply the number.
4876  This is because I couldn't figure out how.
4877 \end_layout
4878
4879 \begin_layout Itemize
4880
4881 \family sans
4882 AT_RISE:
4883 \begin_inset space \hfill{}
4884 \end_inset
4885
4886 M-z S-R
4887 \begin_inset Newline newline
4888 \end_inset
4889
4890
4891 \family default
4892 A special case of Narrative to describe the setting and action as the curtain
4893  rises.
4894 \end_layout
4895
4896 \begin_layout Itemize
4897
4898 \family sans
4899 Speaker
4900 \begin_inset space \hfill{}
4901 \end_inset
4902
4903 M-z s
4904 \begin_inset Newline newline
4905 \end_inset
4906
4907
4908 \family default
4909 The speaker's (actor's) title, centered in all CAPS.
4910 \end_layout
4911
4912 \begin_layout Itemize
4913
4914 \family sans
4915 Parenthetical
4916 \begin_inset space \hfill{}
4917 \end_inset
4918
4919 M-z p
4920 \begin_inset Newline newline
4921 \end_inset
4922
4923
4924 \family default
4925 Instructions to the speaker.
4926  The parentheses are automatically inserted.
4927  The ( will appear on screen, but both will be in the printed play.
4928  This environment is only used within 
4929 \family sans
4930 Dialogue
4931 \family default
4932 .
4933 \end_layout
4934
4935 \begin_layout Itemize
4936
4937 \family sans
4938 Dialogue
4939 \begin_inset space \hfill{}
4940 \end_inset
4941
4942 M-z d
4943 \begin_inset Newline newline
4944 \end_inset
4945
4946
4947 \family default
4948 What the Speaker says.
4949 \end_layout
4950
4951 \begin_layout Itemize
4952
4953 \family sans
4954 CURTAIN
4955 \begin_inset space \hfill{}
4956 \end_inset
4957
4958 M-z S-C
4959 \begin_inset Newline newline
4960 \end_inset
4961
4962
4963 \family default
4964 The curtain comes down.
4965 \end_layout
4966
4967 \begin_layout Itemize
4968
4969 \family sans
4970 Title
4971 \begin_inset space \hfill{}
4972 \end_inset
4973
4974 M-z S-T
4975 \end_layout
4976
4977 \begin_layout Itemize
4978
4979 \family sans
4980 Author
4981 \begin_inset space \hfill{}
4982 \end_inset
4983
4984 M-z S-A
4985 \end_layout
4986
4987 \begin_layout Itemize
4988
4989 \family sans
4990 Right_Address
4991 \begin_inset space \hfill{}
4992 \end_inset
4993
4994 M-z r
4995 \end_layout
4996
4997 \begin_layout Standard
4998 Hello there.
4999 \end_layout
5000
5001 \begin_layout Section
5002 Dinbrief
5003 \end_layout
5004
5005 \begin_layout Standard
5006 The document class 
5007 \family sans
5008 dinbrief
5009 \family default
5010  can be used to type letters according to German conventions.
5011  A template file is included in 
5012 \family typewriter
5013 .../lyx/share/templates
5014 \family default
5015  for you to use as a starting point.
5016 \end_layout
5017
5018 \begin_layout Section
5019 EGS journals (
5020 \family sans
5021 egs
5022 \family default
5023 )
5024 \end_layout
5025
5026 \begin_layout Standard
5027 by 
5028 \shape smallcaps
5029 Martin Vermeer
5030 \end_layout
5031
5032 \begin_layout Subsection
5033 Description
5034 \end_layout
5035
5036 \begin_layout Standard
5037 This is the layout file for the European Geophysical Society journals.
5038  The needed 
5039 \family typewriter
5040 egs.cls
5041 \family default
5042  can be downloaded from the web site of the EGS under 
5043 \begin_inset Flex URL
5044 status collapsed
5045
5046 \begin_layout Plain Layout
5047
5048 www.copernicus.org
5049 \end_layout
5050
5051 \end_inset
5052
5053 .
5054 \end_layout
5055
5056 \begin_layout Subsection
5057 New styles
5058 \end_layout
5059
5060 \begin_layout Standard
5061
5062 \family sans
5063 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
5064  Accepted
5065 \family default
5066
5067 \family sans
5068 Offsets
5069 \family default
5070 .
5071  The current layout file is unfortunately very unmodular and would benefit
5072  from using the various 
5073 \family typewriter
5074 std*.inc
5075 \family default
5076  file inclusions.
5077 \end_layout
5078
5079 \begin_layout Section
5080 Elsevier Journals
5081 \end_layout
5082
5083 \begin_layout Standard
5084 See the \SpecialChar LyX
5085  template file 
5086 \family typewriter
5087 elsarticle.lyx
5088 \family default
5089 .
5090  It contains all infos you need.
5091 \end_layout
5092
5093 \begin_layout Section
5094 Foils [aka 
5095 \family sans
5096 Foil\SpecialChar TeX
5097
5098 \family default
5099 ]
5100 \begin_inset CommandInset label
5101 LatexCommand label
5102 name "sec:foiltex"
5103
5104 \end_inset
5105
5106
5107 \end_layout
5108
5109 \begin_layout Standard
5110 by 
5111 \noun on
5112 Allan Rae
5113 \end_layout
5114
5115 \begin_layout Subsection
5116 Introduction
5117 \end_layout
5118
5119 \begin_layout Standard
5120 This section describes how to use \SpecialChar LyX
5121  to make slides for overhead projectors.
5122  There are two document classes that can do this: the default slides class
5123  and the 
5124 \family sans
5125 Foil\SpecialChar TeX
5126
5127 \family default
5128  slides class.
5129  This section documents the latter.
5130 \end_layout
5131
5132 \begin_layout Standard
5133 I'm going to say this again, nice and clear, so that there's no misunderstanding
5134 :
5135 \end_layout
5136
5137 \begin_layout Standard
5138 \begin_inset VSpace bigskip
5139 \end_inset
5140
5141
5142 \end_layout
5143
5144 \begin_layout Standard
5145 \align center
5146
5147 \size large
5148 This section documents the class 
5149 \begin_inset Quotes eld
5150 \end_inset
5151
5152
5153 \family sans
5154 FoilTeX
5155 \family default
5156
5157 \begin_inset Quotes erd
5158 \end_inset
5159
5160  
5161 \emph on
5162 only.
5163 \end_layout
5164
5165 \begin_layout Standard
5166 \begin_inset VSpace bigskip
5167 \end_inset
5168
5169
5170 \end_layout
5171
5172 \begin_layout Standard
5173 If you're looking for the documentation for 
5174 \begin_inset Quotes eld
5175 \end_inset
5176
5177
5178 \family sans
5179 slides (default)
5180 \family default
5181
5182 \begin_inset Quotes erd
5183 \end_inset
5184
5185 , check out section
5186 \begin_inset space ~
5187 \end_inset
5188
5189
5190 \begin_inset CommandInset ref
5191 LatexCommand ref
5192 reference "sec:slitex"
5193
5194 \end_inset
5195
5196 .
5197  If your machine doesn't have the 
5198 \family sans
5199 foils
5200 \family default
5201  class 
5202 \family sans
5203 FoilTeX
5204 \family default
5205  installed, you'll probably have to use the default 
5206 \family sans
5207 slides
5208 \family default
5209  class, which isn't quite as good as 
5210 \family sans
5211 foils.
5212 \end_layout
5213
5214 \begin_layout Standard
5215 The 
5216 \family sans
5217 foils
5218 \family default
5219  class is designed for use with version
5220 \begin_inset space ~
5221 \end_inset
5222
5223 2.1 of the 
5224 \family sans
5225 foils.cls
5226 \family default
5227  \SpecialChar LaTeX
5228  class file which is now an integral part of \SpecialChar LaTeX2e
5229 .
5230 \end_layout
5231
5232 \begin_layout Subsection
5233 Getting Started
5234 \end_layout
5235
5236 \begin_layout Standard
5237 Obviously, to use this document class, you need to select 
5238 \family sans
5239 FoilTeX
5240 \family default
5241  from the 
5242 \family sans
5243 Class
5244 \family default
5245  entry in the 
5246 \family sans
5247 Document
5248 \begin_inset space ~
5249 \end_inset
5250
5251 Layout
5252 \family default
5253  dialog.
5254  There are some settings in the 
5255 \family sans
5256 Document
5257 \begin_inset space ~
5258 \end_inset
5259
5260 Layout
5261 \family default
5262  dialog that you should know about that are specific to this class:
5263 \end_layout
5264
5265 \begin_layout Itemize
5266 Don't change the options 
5267 \family sans
5268 Sides
5269 \family default
5270  and 
5271 \family sans
5272 Columns
5273 \family default
5274  on the 
5275 \family sans
5276 Document
5277 \begin_inset space ~
5278 \end_inset
5279
5280 Layout
5281 \family default
5282  dialog.
5283  They're ignored by the 
5284 \family sans
5285 foils
5286 \family default
5287  class.
5288 \end_layout
5289
5290 \begin_layout Itemize
5291 The default font size is 20
5292 \begin_inset space \thinspace{}
5293 \end_inset
5294
5295 pt with the other options being 17
5296 \begin_inset space \thinspace{}
5297 \end_inset
5298
5299 pt, 25
5300 \begin_inset space \thinspace{}
5301 \end_inset
5302
5303 pt and 30
5304 \begin_inset space \thinspace{}
5305 \end_inset
5306
5307 pt.
5308 \end_layout
5309
5310 \begin_layout Itemize
5311 The default font is 
5312 \family sans
5313 sans
5314 \family default
5315  
5316 \family sans
5317 serif
5318 \family default
5319  but all math equations are still typeset in the usual roman font.
5320 \end_layout
5321
5322 \begin_layout Itemize
5323
5324 \family sans
5325 Foil\SpecialChar TeX
5326
5327 \family default
5328  supports A4 and Letter paper sizes as well as a special size for working
5329  with 35
5330 \begin_inset space \thinspace{}
5331 \end_inset
5332
5333 mm slides.
5334  It doesn't support A5, B5, legal or executive paper sizes.
5335 \end_layout
5336
5337 \begin_layout Itemize
5338 Don't bother changing the 
5339 \family sans
5340 Float Placement
5341 \family default
5342  settings because they are ignored anyway.
5343  All floats appear where they are defined in the text.
5344 \end_layout
5345
5346 \begin_layout Itemize
5347 The 
5348 \family sans
5349 Pagestyle
5350 \family default
5351  setting behaves a bit differently for this class.
5352  
5353 \family sans
5354 Foil\SpecialChar TeX
5355
5356 \family default
5357  provides extensive footer and header capabilities including a user-defined
5358  logo.
5359  See section
5360 \begin_inset space ~
5361 \end_inset
5362
5363
5364 \begin_inset CommandInset ref
5365 LatexCommand ref
5366 reference "sec:foilfoot"
5367
5368 \end_inset
5369
5370  for more details.
5371  The title page is treated differently to all other pages in the document
5372  and is 
5373 \emph on
5374 always
5375 \emph default
5376  unnumbered and 
5377 \emph on
5378 always
5379 \emph default
5380  has the logo centered at the bottom of the page (if one is defined).
5381  The possible page style choices and what they do are as follows:
5382 \end_layout
5383
5384 \begin_deeper
5385 \begin_layout Labeling
5386 \labelwidthstring MMMMMMM
5387
5388 \family sans
5389 \series bold
5390 empty
5391 \family default
5392 \series default
5393  The final output contains no page numbers, or other headers or footers
5394  (except footnotes of course).
5395  
5396 \end_layout
5397
5398 \begin_layout Labeling
5399 \labelwidthstring MMMMMMM
5400
5401 \family sans
5402 \series bold
5403 plain
5404 \family default
5405 \series default
5406  The final output contains page numbers centered at the bottom of the page.
5407  No other headings or footers (other than footnotes).
5408 \end_layout
5409
5410 \begin_layout Labeling
5411 \labelwidthstring MMMMMMM
5412
5413 \series bold
5414 foilheadings
5415 \series default
5416  Page numbers in lower right corner.
5417  Additional headers and footers are also shown.
5418  This is also the default.
5419 \end_layout
5420
5421 \begin_layout Labeling
5422 \labelwidthstring MMMMMMM
5423
5424 \series bold
5425 fancy
5426 \series default
5427  Gives you access to the 
5428 \family sans
5429 fancyheadings
5430 \family default
5431  package although its use with 
5432 \family sans
5433 Foil\SpecialChar TeX
5434
5435 \family default
5436  is discouraged by the writer of the 
5437 \family sans
5438 Foil\SpecialChar TeX
5439
5440 \family default
5441  package because of some potential page layout clashes.
5442 \end_layout
5443
5444 \end_deeper
5445 \begin_layout Subsubsection
5446 Extra Options
5447 \end_layout
5448
5449 \begin_layout Standard
5450 The following options may be used in the extra class options in the 
5451 \family sans
5452 Document\SpecialChar menuseparator
5453 Settings
5454 \family default
5455  dialog.
5456 \end_layout
5457
5458 \begin_layout Labeling
5459 \labelwidthstring MMMMMMx
5460
5461 \series bold
5462 35mmSlide
5463 \series default
5464  This sets up the page layout for 7.33
5465 \begin_inset space \thinspace{}
5466 \end_inset
5467
5468 in by 11
5469 \begin_inset space \thinspace{}
5470 \end_inset
5471
5472 in paper, which is about the same aspect ratio as a 35
5473 \begin_inset space \thinspace{}
5474 \end_inset
5475
5476 mm slide, making it a bit easier to work with this medium.
5477 \end_layout
5478
5479 \begin_layout Labeling
5480 \labelwidthstring MMMMMMx
5481
5482 \series bold
5483 headrule
5484 \series default
5485  Places a rule across the page below the header on every page except the
5486  title page.
5487 \end_layout
5488
5489 \begin_layout Labeling
5490 \labelwidthstring MMMMMMx
5491
5492 \series bold
5493 footrule
5494 \series default
5495  Places a rule across the page above the footer on every page except the
5496  title page.
5497 \end_layout
5498
5499 \begin_layout Labeling
5500 \labelwidthstring MMMMMMx
5501
5502 \series bold
5503 dvips
5504 \series default
5505  This is automatically set each time you create a new 
5506 \family sans
5507 foils
5508 \family default
5509  document.
5510  This option tells 
5511 \family sans
5512 Foil\SpecialChar TeX
5513
5514 \family default
5515  to use the dvips driver to rotate those pages that are set as landscape
5516  foils.
5517 \end_layout
5518
5519 \begin_layout Labeling
5520 \labelwidthstring MMMMMMx
5521
5522 \series bold
5523 landscape
5524 \series default
5525  Simply changes the page dimensions to those of a landscape page but doesn't
5526  do any rotation.
5527  Thus if you use this option you need to use an external program to rotate
5528  each page or feed your paper through your printer as landscape.
5529  Note that this option effectively reverses the roles of the 
5530 \family sans
5531 Foilhead
5532 \family default
5533  and 
5534 \family sans
5535 Rotatefoilhead
5536 \family default
5537  environments (don't worry these are described in the next section).
5538 \end_layout
5539
5540 \begin_layout Labeling
5541 \labelwidthstring MMMMMMx
5542
5543 \series bold
5544 leqno
5545 \series default
5546  Equation numbers on the left.
5547 \end_layout
5548
5549 \begin_layout Labeling
5550 \labelwidthstring MMMMMMx
5551
5552 \series bold
5553 fleqn
5554 \series default
5555  Flush-left equations.
5556 \end_layout
5557
5558 \begin_layout Subsection
5559 Supported Environments
5560 \end_layout
5561
5562 \begin_layout Standard
5563 Most of the environments commonly supported in other classes are also supported
5564  by the 
5565 \family sans
5566 foils
5567 \family default
5568  class.
5569  There are several additional environments provided by 
5570 \family sans
5571 Foil\SpecialChar TeX
5572
5573 \family default
5574  as well as a couple added by \SpecialChar LyX
5575 .
5576  The following environments are shared with other classes:
5577 \end_layout
5578
5579 \begin_layout Standard
5580 \begin_inset Flex Multiple Columns
5581 status open
5582
5583 \begin_layout Itemize
5584
5585 \family sans
5586 Standard
5587 \end_layout
5588
5589 \begin_layout Itemize
5590
5591 \family sans
5592 Itemize
5593 \end_layout
5594
5595 \begin_layout Itemize
5596
5597 \family sans
5598 Enumerate
5599 \end_layout
5600
5601 \begin_layout Itemize
5602
5603 \family sans
5604 Description
5605 \end_layout
5606
5607 \begin_layout Itemize
5608
5609 \family sans
5610 List
5611 \end_layout
5612
5613 \begin_layout Itemize
5614
5615 \family sans
5616 \SpecialChar LyX
5617 -Code
5618 \end_layout
5619
5620 \begin_layout Itemize
5621
5622 \family sans
5623 Verse
5624 \end_layout
5625
5626 \begin_layout Itemize
5627
5628 \family sans
5629 Quote
5630 \end_layout
5631
5632 \begin_layout Itemize
5633
5634 \family sans
5635 Quotation
5636 \end_layout
5637
5638 \begin_layout Itemize
5639
5640 \family sans
5641 Title
5642 \end_layout
5643
5644 \begin_layout Itemize
5645
5646 \family sans
5647 Author
5648 \end_layout
5649
5650 \begin_layout Itemize
5651
5652 \family sans
5653 Date
5654 \end_layout
5655
5656 \begin_layout Itemize
5657
5658 \family sans
5659 Abstract
5660 \end_layout
5661
5662 \begin_layout Itemize
5663
5664 \family sans
5665 Bibliography
5666 \end_layout
5667
5668 \begin_layout Itemize
5669
5670 \family sans
5671 Address
5672 \end_layout
5673
5674 \begin_layout Itemize
5675
5676 \family sans
5677 RightAddress
5678 \end_layout
5679
5680 \begin_layout Itemize
5681
5682 \family sans
5683 Caption
5684 \end_layout
5685
5686 \begin_layout Itemize
5687
5688 \family sans
5689 Comment
5690 \end_layout
5691
5692 \end_inset
5693
5694
5695 \end_layout
5696
5697 \begin_layout Standard
5698 That is, all the major environments apart from the sectioning environments.
5699  Since foils are essentially self-contained sections, with a title and body,
5700  
5701 \family sans
5702 Foil\SpecialChar TeX
5703
5704 \family default
5705  provides specific commands for starting new foils and these are:
5706 \end_layout
5707
5708 \begin_layout Itemize
5709
5710 \family sans
5711 Foilhead
5712 \end_layout
5713
5714 \begin_layout Itemize
5715
5716 \family sans
5717 Rotatefoilhead
5718 \end_layout
5719
5720 \begin_layout Standard
5721 \SpecialChar LyX
5722  also provides slightly modified versions of these two environments called:
5723 \end_layout
5724
5725 \begin_layout Itemize
5726
5727 \family sans
5728 ShortFoilhead
5729 \end_layout
5730
5731 \begin_layout Itemize
5732
5733 \family sans
5734 ShortRotatefoilhead
5735 \end_layout
5736
5737 \begin_layout Standard
5738 and the differences will be explained in the next section.
5739 \end_layout
5740
5741 \begin_layout Standard
5742 Since foils are often used in presenting ideas or new theorems and such
5743  
5744 \family sans
5745 Foil\SpecialChar TeX
5746
5747 \family default
5748  also provides a comprehensive box of goodies for presenting them:
5749 \end_layout
5750
5751 \begin_layout Standard
5752 \begin_inset Flex Multiple Columns
5753 status open
5754
5755 \begin_layout Itemize
5756
5757 \family sans
5758 Theorem
5759 \end_layout
5760
5761 \begin_layout Itemize
5762
5763 \family sans
5764 Lemma
5765 \end_layout
5766
5767 \begin_layout Itemize
5768
5769 \family sans
5770 Corollary
5771 \end_layout
5772
5773 \begin_layout Itemize
5774
5775 \family sans
5776 Proposition
5777 \end_layout
5778
5779 \begin_layout Itemize
5780
5781 \family sans
5782 Definition
5783 \end_layout
5784
5785 \begin_layout Itemize
5786
5787 \family sans
5788 Proof
5789 \end_layout
5790
5791 \begin_layout Itemize
5792
5793 \family sans
5794 Theorem*
5795 \end_layout
5796
5797 \begin_layout Itemize
5798
5799 \family sans
5800 Lemma*
5801 \end_layout
5802
5803 \begin_layout Itemize
5804
5805 \family sans
5806 Corollary*
5807 \end_layout
5808
5809 \begin_layout Itemize
5810
5811 \family sans
5812 Proposition*
5813 \end_layout
5814
5815 \begin_layout Itemize
5816
5817 \family sans
5818 Definition*
5819 \end_layout
5820
5821 \end_inset
5822
5823
5824 \end_layout
5825
5826 \begin_layout Standard
5827 The starred versions are unnumbered while the unstarred versions are numbered.
5828  There are also two list environments added by \SpecialChar LyX
5829  and these are:
5830 \end_layout
5831
5832 \begin_layout Itemize
5833
5834 \family sans
5835 TickList
5836 \end_layout
5837
5838 \begin_layout Itemize
5839
5840 \family sans
5841 CrossList
5842 \end_layout
5843
5844 \begin_layout Standard
5845
5846 \family sans
5847 Foil\SpecialChar TeX
5848
5849 \family default
5850  provides some powerful header and footer capabilities that are best set
5851  in the preamble although they may be set at any point in a document.
5852  If you want to change these settings in your document the best place to
5853  do so is at the very top of a foil, i.
5854 \begin_inset space \thinspace{}
5855 \end_inset
5856
5857 e.
5858 \emph on
5859
5860 \begin_inset space \space{}
5861 \end_inset
5862
5863
5864 \emph default
5865 straight after the foilhead.
5866 \end_layout
5867
5868 \begin_layout Standard
5869 For this purpose, the following command styles are provided [
5870 \shape smallcaps
5871 Martin Vermeer
5872 \shape default
5873 ]:
5874 \end_layout
5875
5876 \begin_layout Standard
5877 \begin_inset Flex Multiple Columns
5878 status open
5879
5880 \begin_layout Itemize
5881
5882 \family sans
5883 My
5884 \begin_inset space ~
5885 \end_inset
5886
5887 Logo
5888 \end_layout
5889
5890 \begin_layout Itemize
5891
5892 \family sans
5893 Restriction
5894 \end_layout
5895
5896 \begin_layout Itemize
5897
5898 \family sans
5899 Right
5900 \begin_inset space ~
5901 \end_inset
5902
5903 Footer
5904 \end_layout
5905
5906 \begin_layout Itemize
5907
5908 \family sans
5909 Right
5910 \begin_inset space ~
5911 \end_inset
5912
5913 Header
5914 \end_layout
5915
5916 \begin_layout Itemize
5917
5918 \family sans
5919 Left
5920 \begin_inset space ~
5921 \end_inset
5922
5923 Header
5924 \family default
5925
5926 \end_layout
5927
5928 \begin_deeper
5929 \begin_layout Plain Layout
5930 \begin_inset space ~
5931 \end_inset
5932
5933
5934 \end_layout
5935
5936 \end_deeper
5937 \end_inset
5938
5939
5940 \end_layout
5941
5942 \begin_layout Standard
5943 There are also a few commands provided by 
5944 \family sans
5945 Foil\SpecialChar TeX
5946
5947 \family default
5948  that aren't directly supported by \SpecialChar LyX
5949  but I'll tell you what they do and how
5950  to use them in section
5951 \begin_inset space ~
5952 \end_inset
5953
5954
5955 \begin_inset CommandInset ref
5956 LatexCommand ref
5957 reference "sec:unsuppfoils"
5958
5959 \end_inset
5960
5961 .
5962 \end_layout
5963
5964 \begin_layout Subsection
5965 Building a Set of Foils
5966 \end_layout
5967
5968 \begin_layout Standard
5969 This section will give a simple introduction to using the different environments
5970  to build a set of foils.
5971  If you want to see an example set of foils, take a look at the 
5972 \family typewriter
5973 Foils.lyx
5974 \family default
5975  file you find in \SpecialChar LyX
5976 's 
5977 \family typewriter
5978 examples
5979 \family default
5980  folder.
5981 \end_layout
5982
5983 \begin_layout Subsubsection
5984 Give It a Title Page
5985 \end_layout
5986
5987 \begin_layout Standard
5988 Unlike other classes that provide 
5989 \family sans
5990 Title
5991 \family default
5992
5993 \family sans
5994 Author
5995 \family default
5996
5997 \family sans
5998 Date
5999 \family default
6000  and 
6001 \family sans
6002 Abstract
6003 \family default
6004  environments, 
6005 \family sans
6006 foils
6007 \family default
6008  creates the title on a page of its own.
6009  If you leave out the 
6010 \family sans
6011 Date
6012 \family default
6013  environment \SpecialChar LaTeX
6014  will substitute the current date (every time you regenerate
6015  the output).
6016 \end_layout
6017
6018 \begin_layout Subsubsection
6019 Start a New Foil
6020 \end_layout
6021
6022 \begin_layout Standard
6023 As I mentioned earlier, there are four ways of starting a new foil.
6024  For portrait foils you should use 
6025 \family sans
6026 Foilhead
6027 \family default
6028  or 
6029 \family sans
6030 ShortFoilhead.
6031
6032 \family default
6033  The difference between these two environments is the amount of space between
6034  the title of the foil (the foilhead) and the body of the foil.
6035 \end_layout
6036
6037 \begin_layout Standard
6038 Landscape foils are generated using the 
6039 \family sans
6040 Rotatefoilhead
6041 \family default
6042  and 
6043 \family sans
6044 ShortRotatefoilhead
6045 \family default
6046  environments.
6047  Again the only difference is the spacing between foilhead and body.
6048  Both of the short versions have 0.5
6049 \begin_inset space ~
6050 \end_inset
6051
6052 inches less separation between the foilhead and the body.
6053  
6054 \end_layout
6055
6056 \begin_layout Standard
6057 One problem with the support for landscape foils is the requirement that
6058  you have to use the 
6059 \family typewriter
6060 dvips
6061 \family default
6062  driver to generate the PostScript output otherwise the foils won't be rotated.
6063  It is possible to get landscape foils even if you haven't got the 
6064 \family typewriter
6065 dvips
6066 \family default
6067  driver provided you can feed your foils sideways through your printer ;-)
6068 \end_layout
6069
6070 \begin_layout Subsubsection
6071 Theorems, Lemmas, Proofs and more
6072 \end_layout
6073
6074 \begin_layout Standard
6075 Due to a small bug in \SpecialChar LyX
6076  you can't have two of the same type of these environments
6077  directly following each other.
6078  They must be separated by something.
6079  If you try, you will just be extending the previous environment as if you
6080  had merged the two environments together.
6081  So, how do you get around this problem? The simplest option is to insert
6082  some text between the two environments or add a 
6083 \family sans
6084 \SpecialChar LaTeX
6085
6086 \family default
6087  environment between the two with just a 
6088 \begin_inset Quotes eld
6089 \end_inset
6090
6091
6092 \family typewriter
6093 %
6094 \family default
6095
6096 \begin_inset Quotes erd
6097 \end_inset
6098
6099  in it.
6100  This will force \SpecialChar LyX
6101  to produce two separate environments and hence the correct
6102  \SpecialChar LaTeX
6103  output.
6104  An example is provided in the example file included with the \SpecialChar LyX
6105  distribution.
6106  Remember, this problem only occurs if you are trying to place two of the
6107  same type of theorem-like environments one directly after the other.
6108 \end_layout
6109
6110 \begin_layout Subsubsection
6111 Lists
6112 \end_layout
6113
6114 \begin_layout Standard
6115 You get all the commonly supported list styles found in other classes as
6116  well as two new ones.
6117  I'll only describe the new ones here.
6118  If you want to find out more about the other list environments check out
6119  the 
6120 \emph on
6121 User's Guide.
6122
6123 \emph default
6124  If you intend to use itemized lists you might also want to read about the
6125  
6126 \family sans
6127 Itemize
6128 \begin_inset space ~
6129 \end_inset
6130
6131 Bullet
6132 \begin_inset space ~
6133 \end_inset
6134
6135 Selection
6136 \family default
6137  dialog described above in section
6138 \begin_inset space ~
6139 \end_inset
6140
6141
6142 \begin_inset CommandInset ref
6143 LatexCommand ref
6144 reference "sec:bullet"
6145
6146 \end_inset
6147
6148 .
6149 \end_layout
6150
6151 \begin_layout Standard
6152 The two new list styles, 
6153 \family sans
6154 TickList
6155 \family default
6156  and 
6157 \family sans
6158 CrossList
6159 \family default
6160 , are designed to make it easier for you to create lists of do's and don'ts
6161  or right and wrong by providing dedicated environments that use a tick
6162  or a cross as the label of the list.
6163  These lists are in fact dedicated variants of the 
6164 \family sans
6165 Itemize
6166 \family default
6167  environment.
6168  They do however require that you have the 
6169 \family typewriter
6170 psnfss
6171 \family default
6172  packages installed.
6173 \end_layout
6174
6175 \begin_layout Subsubsection
6176 Figures and Tables
6177 \end_layout
6178
6179 \begin_layout Standard
6180
6181 \family sans
6182 Foil\SpecialChar TeX
6183
6184 \family default
6185  redefines the floating tables and figures so that they appear exactly where
6186  they are in the text rather than pushing them to the top of the page or
6187  to some user specified location.
6188  In fact if you change the float placement settings they are simply ignored.
6189 \end_layout
6190
6191 \begin_layout Subsubsection
6192 Page Headers and Footers
6193 \begin_inset CommandInset label
6194 LatexCommand label
6195 name "sec:foilfoot"
6196
6197 \end_inset
6198
6199
6200 \end_layout
6201
6202 \begin_layout Standard
6203
6204 \family sans
6205 My
6206 \begin_inset space ~
6207 \end_inset
6208
6209 Logo
6210 \family default
6211  and 
6212 \family sans
6213 Restriction
6214 \family default
6215  are two commands used to control the left-footer text string.
6216  The first is meant to allow you to include a graphic logo on your foils
6217  and defaults to 
6218 \begin_inset Quotes eld
6219 \end_inset
6220
6221 -Typeset by 
6222 \family sans
6223 Foil\SpecialChar TeX
6224
6225 \family default
6226 -
6227 \begin_inset Quotes erd
6228 \end_inset
6229
6230 .
6231  While the second is meant to provide a classification for the audience,
6232  
6233 \emph on
6234 e.
6235 \begin_inset space \thinspace{}
6236 \end_inset
6237
6238 g.
6239 \emph default
6240
6241 \begin_inset space \space{}
6242 \end_inset
6243
6244 Confidential.
6245  It is empty by default.
6246 \end_layout
6247
6248 \begin_layout Standard
6249 The remaining page corners can be filled by 
6250 \family sans
6251 Right
6252 \begin_inset space ~
6253 \end_inset
6254
6255 Footer
6256 \family default
6257  (which defaults to page numbers), 
6258 \family sans
6259 Right
6260 \begin_inset space ~
6261 \end_inset
6262
6263 Header
6264 \family default
6265  (top right) and 
6266 \family sans
6267 Left
6268 \begin_inset space ~
6269 \end_inset
6270
6271 Header
6272 \family default
6273  (top left).
6274 \end_layout
6275
6276 \begin_layout Subsection
6277 Unsupported 
6278 \family sans
6279 Foil\SpecialChar TeX
6280
6281 \family default
6282  Goodies
6283 \begin_inset CommandInset label
6284 LatexCommand label
6285 name "sec:unsuppfoils"
6286
6287 \end_inset
6288
6289
6290 \end_layout
6291
6292 \begin_layout Standard
6293 All the commands mentioned below need to be set in a 
6294 \family sans
6295 \SpecialChar LaTeX
6296
6297 \family default
6298  environment or as 
6299 \family sans
6300 \SpecialChar TeX
6301
6302 \family default
6303  within another environment.
6304 \end_layout
6305
6306 \begin_layout Subsubsection
6307 Lengths
6308 \end_layout
6309
6310 \begin_layout Standard
6311 All lengths are adjusted using the 
6312 \family typewriter
6313
6314 \backslash
6315 setlength{
6316 \family default
6317 \emph on
6318 lengthname
6319 \family typewriter
6320 \emph default
6321 }{
6322 \family default
6323 \emph on
6324 newlength
6325 \family typewriter
6326 \emph default
6327 }
6328 \family default
6329  command.
6330  Where 
6331 \emph on
6332 lengthname
6333 \emph default
6334  should be replaced by the name given to the length you want to change and
6335  
6336 \emph on
6337 newlength
6338 \emph default
6339  is the length value.
6340  All lengths should be specified in units of length such as inches (
6341 \family typewriter
6342 in
6343 \family default
6344 ), millimeters (
6345 \family typewriter
6346 mm
6347 \family default
6348 ) or points (
6349 \family typewriter
6350 pt
6351 \family default
6352 ) or relative to some document or font-based length such as 
6353 \family typewriter
6354
6355 \backslash
6356 textwidth
6357 \family default
6358 .
6359  
6360 \end_layout
6361
6362 \begin_layout Standard
6363 It's possible to change the spacing between a foilhead and the body of the
6364  foil by adjusting the length specified by 
6365 \family typewriter
6366
6367 \backslash
6368 foilheadskip
6369 \family default
6370 .
6371  For example, to make 
6372 \emph on
6373 all
6374 \emph default
6375  foilheads 0.5
6376 \begin_inset space \space{}
6377 \end_inset
6378
6379 in closer to their bodies put the following in the preamble: 
6380 \family typewriter
6381
6382 \backslash
6383 setlength{
6384 \backslash
6385 foilheadskip}{-0.5in}
6386 \end_layout
6387
6388 \begin_layout Standard
6389 The spacings around floats can be adjusted by setting these lengths:
6390 \end_layout
6391
6392 \begin_layout Labeling
6393 \labelwidthstring MMMMMMMMMMM
6394
6395 \family typewriter
6396
6397 \backslash
6398 abovefloatskip
6399 \family default
6400  Separation between the text and the top of the float
6401 \end_layout
6402
6403 \begin_layout Labeling
6404 \labelwidthstring MMMMMMMMMMM
6405
6406 \family typewriter
6407
6408 \backslash
6409 abovecaptionskip
6410 \family default
6411  Separation between the float and the caption
6412 \end_layout
6413
6414 \begin_layout Labeling
6415 \labelwidthstring MMMMMMMMMMM
6416
6417 \family typewriter
6418
6419 \backslash
6420 belowcaptionskip
6421 \family default
6422  Separation between the caption and the following text
6423 \end_layout
6424
6425 \begin_layout Labeling
6426 \labelwidthstring MMMMMMMMMMM
6427
6428 \family typewriter
6429
6430 \backslash
6431 captionwidth
6432 \family default
6433  You can make the captions narrower than the surrounding text by adjusting
6434  this length.
6435  Best done relative to 
6436 \family typewriter
6437
6438 \backslash
6439 textwidth
6440 \family default
6441 .
6442 \end_layout
6443
6444 \begin_layout Standard
6445 There are also several title page related lengths that you may find useful
6446  if you have a long title or several authors:
6447 \end_layout
6448
6449 \begin_layout Labeling
6450 \labelwidthstring MMMMMMMMMMM
6451
6452 \family typewriter
6453
6454 \backslash
6455 abovetitleskip
6456 \family default
6457  Separation from headers to 
6458 \family sans
6459 Title
6460 \end_layout
6461
6462 \begin_layout Labeling
6463 \labelwidthstring MMMMMMMMMMM
6464
6465 \family typewriter
6466
6467 \backslash
6468 titleauthorskip
6469 \family default
6470  between 
6471 \family sans
6472 Title
6473 \family default
6474  and 
6475 \family sans
6476 Author
6477 \family default
6478  environments
6479 \end_layout
6480
6481 \begin_layout Labeling
6482 \labelwidthstring MMMMMMMMMMM
6483
6484 \family typewriter
6485
6486 \backslash
6487 authorauthorskip
6488 \family default
6489  between multiple 
6490 \family sans
6491 Author
6492 \family default
6493  lines
6494 \end_layout
6495
6496 \begin_layout Labeling
6497 \labelwidthstring MMMMMMMMMMM
6498
6499 \family typewriter
6500
6501 \backslash
6502 authordateskip
6503 \family default
6504  between the 
6505 \family sans
6506 Author
6507 \family default
6508  and the 
6509 \family sans
6510 Date
6511 \end_layout
6512
6513 \begin_layout Labeling
6514 \labelwidthstring MMMMMMMMMMM
6515
6516 \family typewriter
6517
6518 \backslash
6519 dateabstractskip
6520 \family default
6521  between the 
6522 \family sans
6523 Date
6524 \family default
6525  and the 
6526 \family sans
6527 Abstract
6528 \end_layout
6529
6530 \begin_layout Standard
6531 The last length related command affects all the list environments.
6532  If you place 
6533 \family typewriter
6534
6535 \backslash
6536 zerolistvertdimens
6537 \family default
6538  
6539 \emph on
6540 inside
6541 \emph default
6542  a list environment then all the vertical spacing between the list items
6543  is removed.
6544  Note that this is a command not a length so it doesn't require 
6545 \family typewriter
6546
6547 \backslash
6548 setlength
6549 \family default
6550  like the stuff mentioned above.
6551 \end_layout
6552
6553 \begin_layout Subsubsection
6554 Headers and Footers
6555 \end_layout
6556
6557 \begin_layout Standard
6558 The 
6559 \family typewriter
6560
6561 \backslash
6562 LogoOn
6563 \family default
6564  and 
6565 \family typewriter
6566
6567 \backslash
6568 LogoOff
6569 \family default
6570  commands control whether the logo in the 
6571 \family sans
6572 MyLogo
6573 \family default
6574  definition appear on a given page.
6575  If you put 
6576 \family typewriter
6577
6578 \backslash
6579 LogoOff
6580 \family default
6581  in the preamble then none of the foils will have the logo on them.
6582  If you don't want the logo on a particular page place the 
6583 \family typewriter
6584
6585 \backslash
6586 LogoOff
6587 \family default
6588  directly after the foilhead of that page and the 
6589 \family typewriter
6590
6591 \backslash
6592 LogoOn
6593 \family default
6594  directly after the next foilhead.
6595 \end_layout
6596
6597 \begin_layout Standard
6598 If you decide to use the 
6599 \family sans
6600 fancy
6601 \family default
6602  page style setting in the 
6603 \family sans
6604 Document
6605 \begin_inset space ~
6606 \end_inset
6607
6608 Layout
6609 \family default
6610  dialog you should probably add 
6611 \family typewriter
6612
6613 \backslash
6614 let
6615 \backslash
6616 headwidth
6617 \backslash
6618 textwidth
6619 \family default
6620  to your preamble so headers and footers on landscape pages are correctly
6621  placed when rotated.
6622  This is due to some clashes between the page layouts provided by the 
6623 \family sans
6624 fancyheadings
6625 \family default
6626  package and the 
6627 \family sans
6628 foils
6629 \family default
6630  class.
6631 \end_layout
6632
6633 \begin_layout Section
6634 Hollywood (Hollywood spec scripts)
6635 \end_layout
6636
6637 \begin_layout Standard
6638 by 
6639 \shape smallcaps
6640 Garst Reese
6641 \end_layout
6642
6643 \begin_layout Subsection
6644 Introduction
6645 \end_layout
6646
6647 \begin_layout Standard
6648 Getting the format of a Hollywood script right is a 
6649 \begin_inset Quotes eld
6650 \end_inset
6651
6652 rite of passage.
6653 \begin_inset Quotes erd
6654 \end_inset
6655
6656  It is designed to make the readers focus on content and to be easy and
6657  familiar for the actors to read.
6658  Each page of a script should be one minute of film.
6659  Nothing goes in a script that you cannot see or hear on screen.
6660  The courier 12 pt font should be used throughout.
6661  No italics.
6662 \end_layout
6663
6664 \begin_layout Subsection
6665 Special problems
6666 \end_layout
6667
6668 \begin_layout Standard
6669 Speakers' lines should NEVER break in mid-sentence.
6670  If a speaker's lines continue over a page break, repeat the 
6671 \family sans
6672 Speaker
6673 \family default
6674  title followed by (Cont'd).
6675 \end_layout
6676
6677 \begin_layout Subsection
6678 Special features
6679 \end_layout
6680
6681 \begin_layout Standard
6682 Insert the 
6683 \family sans
6684 Speaker
6685 \family default
6686  names as labels then cross-reference the label to insert the name.
6687  The cross-reference dialog will show the current cast of characters.
6688  You can use this to insert the speaker name in narratives also.
6689 \end_layout
6690
6691 \begin_layout Subsection
6692 Paper size and Margins
6693 \end_layout
6694
6695 \begin_layout Standard
6696 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
6697 \end_layout
6698
6699 \begin_layout Subsection
6700 Environments
6701 \end_layout
6702
6703 \begin_layout Standard
6704 The following environments are available.
6705  You can use hollywood.bind to get the bind keys shown at the right.
6706 \end_layout
6707
6708 \begin_layout Itemize
6709
6710 \family sans
6711 Standard
6712 \begin_inset Newline newline
6713 \end_inset
6714
6715
6716 \family default
6717 Used where nothing else works.
6718  Try to avoid it.
6719 \end_layout
6720
6721 \begin_layout Itemize
6722
6723 \family sans
6724 FADE_IN
6725 \family default
6726 :
6727 \begin_inset space \hfill{}
6728 \end_inset
6729
6730
6731 \family sans
6732 M-z S-I
6733 \family default
6734
6735 \begin_inset Newline newline
6736 \end_inset
6737
6738 Usually followed by something like 
6739 \begin_inset Quotes eld
6740 \end_inset
6741
6742 on Sally waking up.
6743 \begin_inset Quotes erd
6744 \end_inset
6745
6746
6747 \end_layout
6748
6749 \begin_layout Itemize
6750
6751 \family sans
6752 INT:
6753 \begin_inset space \hfill{}
6754 \end_inset
6755
6756 M-z i
6757 \begin_inset Newline newline
6758 \end_inset
6759
6760
6761 \family default
6762 Introduces a new INTERIOR camera set-up.
6763  Always followed by DAY or NIGHT, or something similar to define the lighting
6764  required.
6765  Everthing on this line in CAPS.
6766 \end_layout
6767
6768 \begin_layout Itemize
6769
6770 \family sans
6771 EXT:
6772 \begin_inset space \hfill{}
6773 \end_inset
6774
6775 M-z e
6776 \begin_inset Newline newline
6777 \end_inset
6778
6779
6780 \family default
6781 Introduces a new EXTERIOR camera set-up.
6782  Everthing on this line in CAPS.
6783 \end_layout
6784
6785 \begin_layout Itemize
6786
6787 \family sans
6788 Speaker
6789 \begin_inset space \hfill{}
6790 \end_inset
6791
6792 M-z s
6793 \begin_inset Newline newline
6794 \end_inset
6795
6796
6797 \family default
6798 The character speaking.
6799 \end_layout
6800
6801 \begin_layout Itemize
6802
6803 \family sans
6804 Parenthetical
6805 \begin_inset space \hfill{}
6806 \end_inset
6807
6808 M-z p
6809 \begin_inset Newline newline
6810 \end_inset
6811
6812
6813 \family default
6814 Instructions to the speaker.
6815  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
6816 .
6817  Both will be printed.
6818 \end_layout
6819
6820 \begin_layout Itemize
6821
6822 \family sans
6823 Dialogue
6824 \begin_inset space \hfill{}
6825 \end_inset
6826
6827 M-z d
6828 \begin_inset Newline newline
6829 \end_inset
6830
6831
6832 \family default
6833 What the 
6834 \family sans
6835 Speaker
6836 \family default
6837  says.
6838 \end_layout
6839
6840 \begin_layout Itemize
6841
6842 \family sans
6843 Transition
6844 \begin_inset space \hfill{}
6845 \end_inset
6846
6847 M-z t
6848 \begin_inset Newline newline
6849 \end_inset
6850
6851
6852 \family default
6853 Camera movement instruction.
6854  e.
6855 \begin_inset space \thinspace{}
6856 \end_inset
6857
6858 g.
6859 \begin_inset space \space{}
6860 \end_inset
6861
6862 CUT TO:
6863 \end_layout
6864
6865 \begin_layout Itemize
6866
6867 \family sans
6868 FADE OUT:
6869 \begin_inset space \hfill{}
6870 \end_inset
6871
6872 M-z S-I
6873 \end_layout
6874
6875 \begin_layout Itemize
6876
6877 \family sans
6878 Author
6879 \begin_inset space \hfill{}
6880 \end_inset
6881
6882 M-z S-A
6883 \end_layout
6884
6885 \begin_layout Itemize
6886
6887 \family sans
6888 Title
6889 \begin_inset space \hfill{}
6890 \end_inset
6891
6892 M-z S-T
6893 \end_layout
6894
6895 \begin_layout Itemize
6896
6897 \family sans
6898 Right_Address
6899 \begin_inset space \hfill{}
6900 \end_inset
6901
6902 M-z r
6903 \end_layout
6904
6905 \begin_layout Subsection
6906 Script jargon
6907 \end_layout
6908
6909 \begin_layout Itemize
6910 (O.S) — off screen
6911 \end_layout
6912
6913 \begin_layout Itemize
6914 (V.0) — voice over
6915 \end_layout
6916
6917 \begin_layout Itemize
6918 b.
6919 \begin_inset space \thinspace{}
6920 \end_inset
6921
6922 g.
6923  — background
6924 \end_layout
6925
6926 \begin_layout Itemize
6927 C.U.
6928  — close-up
6929 \end_layout
6930
6931 \begin_layout Itemize
6932 PAN — camera movement
6933 \end_layout
6934
6935 \begin_layout Itemize
6936 INSERT — cut to close-up of
6937 \end_layout
6938
6939 \begin_layout Section
6940 ijmpc and ijmpd
6941 \end_layout
6942
6943 \begin_layout Standard
6944 by 
6945 \noun on
6946 Panayotis Papasotiriou
6947 \end_layout
6948
6949 \begin_layout Subsection
6950 Overview
6951 \end_layout
6952
6953 \begin_layout Standard
6954 The ijmpc package is a set of macros that facilitates electronic manuscript
6955  submission to the 
6956 \emph on
6957 International Journal of Modern Physics C
6958 \emph default
6959 .
6960  Similarly, the ijmpd package is for creating manuscripts to be submitted
6961  to the 
6962 \emph on
6963 International Journal of Modern Physics D
6964 \emph default
6965 .
6966  Both journals are published by World Scientific.
6967  The corresponding document classes are named 
6968 \family typewriter
6969 ws-ijmpc.cls
6970 \family default
6971  and 
6972 \family typewriter
6973 ws-ijmpd.cls
6974 \family default
6975 , respectively.
6976  These files, together with instructions for the authors, can be downloaded
6977  from the sites 
6978 \begin_inset Flex URL
6979 status collapsed
6980
6981 \begin_layout Plain Layout
6982
6983 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
6984 \end_layout
6985
6986 \end_inset
6987
6988  and 
6989 \begin_inset Flex URL
6990 status collapsed
6991
6992 \begin_layout Plain Layout
6993
6994 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
6995 \end_layout
6996
6997 \end_inset
6998
6999 .
7000  Both packages are modified versions of the standard 
7001 \begin_inset Quotes eld
7002 \end_inset
7003
7004 article
7005 \begin_inset Quotes erd
7006 \end_inset
7007
7008  package, and they are almost (but not exactly) identical.
7009  Most of their features are supported by \SpecialChar LyX
7010 .
7011  I have used \SpecialChar LyX
7012  successfully to write articles submitted to both journals
7013  without any problem.
7014 \end_layout
7015
7016 \begin_layout Subsection
7017 Writing a paper
7018 \end_layout
7019
7020 \begin_layout Standard
7021 As usual, the easiest way to write a paper is to start with a template.
7022  Click on 
7023 \family sans
7024 File\SpecialChar menuseparator
7025 New from
7026 \family default
7027  
7028 \family sans
7029 Template
7030 \family default
7031 , then choose the 
7032 \family typewriter
7033 ijmpc.lyx
7034 \family default
7035  or 
7036 \family typewriter
7037 ijmpd.lyx
7038 \family default
7039  template.
7040  This will give an (almost) empty document that includes the most common
7041  fields found in a manuscript.
7042  Simply overwrite the existing text (including the brackets, 
7043 \family typewriter
7044 <>
7045 \family default
7046 ) with your text.
7047  You should keep in mind the following remarks.
7048 \end_layout
7049
7050 \begin_layout Enumerate
7051 \SpecialChar LyX
7052  won't let you change the font size and the page style of the document,
7053  because such modifications are not allowed by both packages.
7054 \end_layout
7055
7056 \begin_layout Enumerate
7057 The language of the document should not be changed.
7058  Before previewing your paper, be sure that the babel package is not used.
7059  To do this, click on 
7060 \family sans
7061 Tools\SpecialChar menuseparator
7062 Preferences
7063 \family default
7064 , select the 
7065 \family sans
7066 Lang Opts
7067 \family default
7068  tab, deselect the 
7069 \family sans
7070 Use babel
7071 \family default
7072  checkbox in the language settings, and click on 
7073 \family sans
7074 Apply
7075 \family default
7076  (or 
7077 \family sans
7078 Save
7079 \family default
7080 , if you wish to make this change permanent).
7081 \end_layout
7082
7083 \begin_layout Enumerate
7084 The 
7085 \begin_inset Quotes eld
7086 \end_inset
7087
7088 Keywords
7089 \begin_inset Quotes erd
7090 \end_inset
7091
7092  style must be used to define keywords.
7093 \end_layout
7094
7095 \begin_layout Enumerate
7096 The ijmpc package provides a style named 
7097 \begin_inset Quotes eld
7098 \end_inset
7099
7100 Classification Codes
7101 \begin_inset Quotes erd
7102 \end_inset
7103
7104 , which can be used to define classification codes, such as PACS numbers.
7105  Note that this facility is not supported by the ijmpd package.
7106 \end_layout
7107
7108 \begin_layout Enumerate
7109 Several new environments are available: 
7110 \begin_inset Quotes eld
7111 \end_inset
7112
7113 Definition
7114 \begin_inset Quotes erd
7115 \end_inset
7116
7117
7118 \begin_inset Quotes eld
7119 \end_inset
7120
7121 Step
7122 \begin_inset Quotes erd
7123 \end_inset
7124
7125
7126 \begin_inset Quotes eld
7127 \end_inset
7128
7129 Example
7130 \begin_inset Quotes erd
7131 \end_inset
7132
7133
7134 \begin_inset Quotes eld
7135 \end_inset
7136
7137 Remark
7138 \begin_inset Quotes erd
7139 \end_inset
7140
7141
7142 \begin_inset Quotes eld
7143 \end_inset
7144
7145 Notation
7146 \begin_inset Quotes erd
7147 \end_inset
7148
7149
7150 \begin_inset Quotes eld
7151 \end_inset
7152
7153 Theorem
7154 \begin_inset Quotes erd
7155 \end_inset
7156
7157
7158 \begin_inset Quotes eld
7159 \end_inset
7160
7161 Proof
7162 \begin_inset Quotes erd
7163 \end_inset
7164
7165
7166 \begin_inset Quotes eld
7167 \end_inset
7168
7169 Corollary
7170 \begin_inset Quotes erd
7171 \end_inset
7172
7173
7174 \begin_inset Quotes eld
7175 \end_inset
7176
7177 Lemma
7178 \begin_inset Quotes erd
7179 \end_inset
7180
7181
7182 \begin_inset Quotes eld
7183 \end_inset
7184
7185 Proposition
7186 \begin_inset Quotes erd
7187 \end_inset
7188
7189
7190 \begin_inset Quotes eld
7191 \end_inset
7192
7193 Prop
7194 \begin_inset Quotes erd
7195 \end_inset
7196
7197
7198 \begin_inset Quotes eld
7199 \end_inset
7200
7201 Question
7202 \begin_inset Quotes erd
7203 \end_inset
7204
7205
7206 \begin_inset Quotes eld
7207 \end_inset
7208
7209 Claim
7210 \begin_inset Quotes erd
7211 \end_inset
7212
7213 , and 
7214 \begin_inset Quotes eld
7215 \end_inset
7216
7217 Conjecture
7218 \begin_inset Quotes erd
7219 \end_inset
7220
7221 .
7222  Their use is more or less obvious.
7223  \SpecialChar LyX
7224  supports all these environments; it will use the proper label, text style,
7225  and numbering scheme for each of them.
7226 \end_layout
7227
7228 \begin_layout Enumerate
7229 Both packages use basic citations; the natbib package should not be used.
7230  In \SpecialChar LyX
7231 , citation references are shown as usual; in the output, citations are
7232  shown as superscripts.
7233  If you want to use a citation as normal text, you should use the 
7234 \family typewriter
7235 refcite
7236 \family default
7237  command, e.
7238 \begin_inset space \thinspace{}
7239 \end_inset
7240
7241 g.
7242 \begin_inset space \space{}
7243 \end_inset
7244
7245
7246 \begin_inset Quotes eld
7247 \end_inset
7248
7249 See Ref.
7250 \begin_inset space \space{}
7251 \end_inset
7252
7253
7254 \family typewriter
7255
7256 \backslash
7257 refcite{key}
7258 \family default
7259
7260 \begin_inset Quotes erd
7261 \end_inset
7262
7263 .
7264 \end_layout
7265
7266 \begin_layout Enumerate
7267 There is no 
7268 \begin_inset Quotes eld
7269 \end_inset
7270
7271 Acknowledgments
7272 \begin_inset Quotes erd
7273 \end_inset
7274
7275  section in both packages.
7276  To put acknowledgments, just use the 
7277 \begin_inset Quotes eld
7278 \end_inset
7279
7280 Section*
7281 \begin_inset Quotes erd
7282 \end_inset
7283
7284  environment.
7285 \end_layout
7286
7287 \begin_layout Enumerate
7288 Appendices may be added to the paper, 
7289 \emph on
7290 after
7291 \emph default
7292  the Acknowledgments and 
7293 \shape italic
7294 before
7295 \shape default
7296  the References.
7297  \SpecialChar LyX
7298  provides a special environment, called 
7299 \begin_inset Quotes eld
7300 \end_inset
7301
7302 Appendices Section
7303 \begin_inset Quotes erd
7304 \end_inset
7305
7306  which marks the beginning of the appendices.
7307  This environment should be left blank; it just sends a \SpecialChar LaTeX
7308  command, but nothing
7309  is really printed.
7310  In \SpecialChar LyX
7311 , the word 
7312 \begin_inset Quotes eld
7313 \end_inset
7314
7315 Appendix
7316 \begin_inset Quotes erd
7317 \end_inset
7318
7319  is printed with blue letters, as a signal that all sections after that
7320  point are appendices.
7321  To write an appendix, use the 
7322 \begin_inset Quotes eld
7323 \end_inset
7324
7325 Appendix
7326 \begin_inset Quotes erd
7327 \end_inset
7328
7329  environment.
7330  \SpecialChar LyX
7331  will number each appendix with capital letters, as required by both journals.
7332  Note that 
7333 \begin_inset Quotes eld
7334 \end_inset
7335
7336 Appendices Section
7337 \begin_inset Quotes erd
7338 \end_inset
7339
7340  
7341 \emph on
7342 must
7343 \emph default
7344  be present before the first appendix; if not, all appendices will be numbered
7345  as normal sections in the output.
7346 \end_layout
7347
7348 \begin_layout Enumerate
7349 The ijmpc and the ijmpd packages use the 
7350 \family typewriter
7351 tbl
7352 \family default
7353  command to implement table captions.
7354  As a result, a table created by \SpecialChar LyX
7355  is printed correctly, but its caption
7356  is ignored.
7357  However, you can use some \SpecialChar TeX
7358  code to overcome this problem, so that captions
7359  are printed as expected.
7360  To do so, create a float table as usual, remove the caption, and replace
7361  it with the \SpecialChar TeX
7362  code 
7363 \family typewriter
7364
7365 \backslash
7366 tbl{
7367 \emph on
7368 your table caption
7369 \emph default
7370 }{
7371 \family default
7372  (sic); you must also the \SpecialChar TeX
7373  code 
7374 \family typewriter
7375 }
7376 \family default
7377  immediately after the tabular material.
7378  Study the example table included in the template files to see how this
7379  trick is implemented.
7380  Alternatively, If you need table captions, you should implement the whole
7381  table float in a 
7382 \family typewriter
7383 .tex
7384 \family default
7385  file, then include this file to the \SpecialChar LyX
7386  document (
7387 \family sans
7388 Insert\SpecialChar menuseparator
7389 File\SpecialChar menuseparator
7390 Child
7391 \begin_inset space ~
7392 \end_inset
7393
7394 Document
7395 \family default
7396 ).
7397  Details on how to create a table float can be found in the files 
7398 \family typewriter
7399 ws-ijmpc.tex
7400 \family default
7401  and 
7402 \family typewriter
7403 ws-ijmpd.tex
7404 \family default
7405 , included in the corresponding packages.
7406 \end_layout
7407
7408 \begin_layout Subsection
7409 Preparing a paper for submission
7410 \end_layout
7411
7412 \begin_layout Standard
7413 Before you submit your paper you must export the \SpecialChar LyX
7414  document as a \SpecialChar LaTeX
7415  file (
7416 \family sans
7417 File\SpecialChar menuseparator
7418 Export\SpecialChar menuseparator
7419 \SpecialChar LaTeX
7420
7421 \family default
7422 )
7423 \begin_inset Foot
7424 status open
7425
7426 \begin_layout Plain Layout
7427 Actually you have the choice between \SpecialChar LaTeX
7428  (plain) and pdflatex.
7429  If you intend to use pdflatex to prepare the paper, you should use the
7430  pdflatex option so that included graphics are converted to PDF format,
7431  ready for use by pdflatex.
7432 \end_layout
7433
7434 \end_inset
7435
7436 , then make the following changes to the resulting 
7437 \family typewriter
7438 .tex
7439 \family default
7440  file.
7441 \end_layout
7442
7443 \begin_layout Enumerate
7444 Remove the comment lines before the 
7445 \family typewriter
7446
7447 \backslash
7448 documentclass
7449 \family default
7450  command.
7451 \end_layout
7452
7453 \begin_layout Enumerate
7454 Remove everything between (and including) the 
7455 \family typewriter
7456
7457 \backslash
7458 makeatletter
7459 \family default
7460  and 
7461 \family typewriter
7462
7463 \backslash
7464 makeatother
7465 \family default
7466  commands, except for any commands you specifically put into the \SpecialChar LaTeX
7467  preamble.
7468 \end_layout
7469
7470 \begin_layout Standard
7471 The modified 
7472 \family typewriter
7473 .tex
7474 \family default
7475  file should be saved and processed through \SpecialChar LaTeX
7476  as many times as necessary.
7477  You may also want to check the resulting 
7478 \family typewriter
7479 .dvi
7480 \family default
7481  document.
7482 \end_layout
7483
7484 \begin_layout Subsection
7485 Use of \SpecialChar TeX
7486  code
7487 \end_layout
7488
7489 \begin_layout Standard
7490 The use of \SpecialChar TeX
7491  code is reduced to two commands, which must be placed at the
7492  top of the document.
7493  If you started writing your paper by using the 
7494 \family typewriter
7495 ijmpc.lyx
7496 \family default
7497  or the 
7498 \family typewriter
7499 ijmpd.lyx
7500 \family default
7501  template, the \SpecialChar TeX
7502  code needed is already in its place; you usually don't need
7503  to delete it.
7504  You may only modify the first \SpecialChar TeX
7505  code to specify the information printed
7506  to the top of odd and even pages (authors' names and short paper's title,
7507  respectively).
7508  This \SpecialChar TeX
7509  code must have the form 
7510 \family typewriter
7511
7512 \backslash
7513 markboth{Authors' Names}{Short Paper's Title}
7514 \family default
7515 .
7516 \end_layout
7517
7518 \begin_layout Section
7519 iopart
7520 \end_layout
7521
7522 \begin_layout Standard
7523 by 
7524 \noun on
7525 Uwe Stöhr
7526 \end_layout
7527
7528 \begin_layout Subsection
7529 Overview
7530 \end_layout
7531
7532 \begin_layout Standard
7533 The iopart package provides a document class to create electronic manuscript
7534  submission to the journals published by the Institute of Physics.
7535  Instructions for the authors how to create a paper using the iopart class
7536  can be downloaded together with the iopart package from the site 
7537 \begin_inset Flex URL
7538 status collapsed
7539
7540 \begin_layout Plain Layout
7541
7542 ftp://ftp.iop.org/pub/journals/latex2e
7543 \end_layout
7544
7545 \end_inset
7546
7547 .
7548 \end_layout
7549
7550 \begin_layout Subsection
7551 Writing a paper
7552 \end_layout
7553
7554 \begin_layout Standard
7555 The easiest way to write a paper is to start with the file 
7556 \emph on
7557 IOP-article.lyx
7558 \emph default
7559  that is available in \SpecialChar LyX
7560 's examples files folder.
7561  Open this file, save it under a new name, and start writing.
7562  The example file explains how to use the special text environments.
7563  Here are the most important advices:
7564 \end_layout
7565
7566 \begin_layout Itemize
7567 To be able to compile your document to a PDF, PS, or DVI, ensure that the
7568  two options 
7569 \family sans
7570 Use AMS math package
7571 \family default
7572  in the document settings under 
7573 \family sans
7574 Math Options
7575 \family default
7576  are not used!
7577 \end_layout
7578
7579 \begin_layout Itemize
7580
7581 \size normal
7582 The title environment defines the kind of your paper.
7583  So use one of the following environments for the title:
7584 \size default
7585
7586 \end_layout
7587
7588 \begin_deeper
7589 \begin_layout Itemize
7590
7591 \family sans
7592 \size normal
7593 Title
7594 \family default
7595  for a Paper
7596 \end_layout
7597
7598 \begin_layout Itemize
7599
7600 \family sans
7601 \size normal
7602 Review
7603 \family default
7604  for a Review
7605 \end_layout
7606
7607 \begin_layout Itemize
7608
7609 \family sans
7610 \size normal
7611 Topical
7612 \family default
7613  for a Topical review
7614 \end_layout
7615
7616 \begin_layout Itemize
7617
7618 \family sans
7619 \size normal
7620 Comment
7621 \family default
7622  for a Comment
7623 \end_layout
7624
7625 \begin_layout Itemize
7626
7627 \family sans
7628 \size normal
7629 Note
7630 \family default
7631  for a Note
7632 \end_layout
7633
7634 \begin_layout Itemize
7635
7636 \family sans
7637 \size normal
7638 Paper
7639 \family default
7640  for a Paper (same as Title)
7641 \end_layout
7642
7643 \begin_layout Itemize
7644
7645 \family sans
7646 \size normal
7647 Prelim
7648 \family default
7649  for a Preliminary communication
7650 \end_layout
7651
7652 \begin_layout Itemize
7653
7654 \family sans
7655 \size normal
7656 Rapid
7657 \family default
7658  for a Rapid communication
7659 \end_layout
7660
7661 \begin_layout Itemize
7662
7663 \family sans
7664 \size normal
7665 Letter
7666 \family default
7667  for a Letter to the editor
7668 \end_layout
7669
7670 \end_deeper
7671 \begin_layout Itemize
7672
7673 \size normal
7674 All title environments except of 
7675 \family sans
7676 Letter
7677 \family default
7678  can have an optional short title.
7679 \end_layout
7680
7681 \begin_layout Itemize
7682 There is a general title environment 
7683 \family sans
7684 Article
7685 \family default
7686  which is not directly supported by the \SpecialChar LyX
7687 .
7688  This can be used as \SpecialChar TeX
7689  code when your document doesn't fit into one of the
7690  other title types.
7691 \end_layout
7692
7693 \begin_layout Standard
7694 For more informations like hints for special table and formula formatting,
7695  look at the IOP author guidelines.
7696 \end_layout
7697
7698 \begin_layout Section
7699 Kluwer
7700 \end_layout
7701
7702 \begin_layout Standard
7703 by 
7704 \noun on
7705 Panayotis Papasotiriou
7706 \end_layout
7707
7708 \begin_layout Subsection
7709 Overview
7710 \end_layout
7711
7712 \begin_layout Standard
7713 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
7714  that facilitates electronic manuscript submission to the journals they
7715  publish.
7716  Most known of them (at least in my domain of interest) are 
7717 \emph on
7718 Astrophysics and Space Science
7719 \emph default
7720  and 
7721 \emph on
7722 Solar Physics
7723 \emph default
7724 , but there are many others (see a complete list at 
7725 \begin_inset Flex URL
7726 status open
7727
7728 \begin_layout Plain Layout
7729
7730 http://www.wkap.nl/jrnllist.htm/JRNLHOME
7731 \end_layout
7732
7733 \end_inset
7734
7735 ).
7736  The Kluwer package may be downloaded from the site 
7737 \begin_inset Flex URL
7738 status collapsed
7739
7740 \begin_layout Plain Layout
7741
7742 http://www.wkap.nl/kaphtml.htm/STYLEFILES
7743 \end_layout
7744
7745 \end_inset
7746
7747 .
7748  A complete user guide is contained in that package (but it can also be
7749  downloaded separately).
7750 \end_layout
7751
7752 \begin_layout Standard
7753 \SpecialChar LyX
7754  supports many features of the package but not everything.
7755  However, the \SpecialChar TeX
7756  code needed is reduced to some 
7757 \begin_inset Quotes eld
7758 \end_inset
7759
7760 peculiar
7761 \begin_inset Quotes erd
7762 \end_inset
7763
7764  commands of the package (see
7765 \begin_inset space ~
7766 \end_inset
7767
7768
7769 \begin_inset CommandInset ref
7770 LatexCommand ref
7771 reference "subsec:kluwer_peculiarities"
7772
7773 \end_inset
7774
7775 ).
7776  I have recently used \SpecialChar LyX
7777  to write an article submitted to the 
7778 \emph on
7779 Astrophysics and Space Science
7780 \emph default
7781  without any problem.
7782 \end_layout
7783
7784 \begin_layout Subsection
7785 Writing a paper
7786 \end_layout
7787
7788 \begin_layout Standard
7789 The easiest way to write a paper is to start with the Kluwer template file.
7790  Click on 
7791 \family sans
7792 File\SpecialChar menuseparator
7793 New from
7794 \family default
7795  
7796 \family sans
7797 Template
7798 \family default
7799 , then choose the 
7800 \family typewriter
7801 kluwer.lyx
7802 \family default
7803  template.
7804  This will give an (almost) empty document that includes the most common
7805  fields found in a manuscript and a short description of their use.
7806  As in most templates, simply overwrite the existing text (including the
7807  brackets, 
7808 \family typewriter
7809 <>
7810 \family default
7811 ) with the correct information.
7812 \end_layout
7813
7814 \begin_layout Subsection
7815 Preparing a paper for submission
7816 \end_layout
7817
7818 \begin_layout Standard
7819 As in the AAS\SpecialChar TeX
7820  package, before you submit your paper to a journal you must
7821  
7822 \begin_inset Quotes eld
7823 \end_inset
7824
7825 postprocess
7826 \begin_inset Quotes erd
7827 \end_inset
7828
7829  it as follows.
7830 \end_layout
7831
7832 \begin_layout Enumerate
7833 Export your paper as a \SpecialChar LaTeX
7834  file.
7835  To do this, click on 
7836 \family sans
7837 File\SpecialChar menuseparator
7838 Export\SpecialChar menuseparator
7839 \SpecialChar LaTeX
7840
7841 \family default
7842 .
7843  
7844 \end_layout
7845
7846 \begin_layout Enumerate
7847 Edit the resulting 
7848 \family typewriter
7849 .tex
7850 \family default
7851  file with a text editor and make the following changes
7852 \end_layout
7853
7854 \begin_deeper
7855 \begin_layout Enumerate
7856 remove the comment lines before the 
7857 \family typewriter
7858
7859 \backslash
7860 documentclass
7861 \family default
7862  command,
7863 \end_layout
7864
7865 \begin_layout Enumerate
7866 remove everything between (and including) the 
7867 \family typewriter
7868
7869 \backslash
7870 makeatletter
7871 \family default
7872  and 
7873 \family typewriter
7874
7875 \backslash
7876 makeatother
7877 \family default
7878  commands, except for any commands you specifically put into the \SpecialChar LaTeX
7879  preamble.
7880 \end_layout
7881
7882 \begin_layout Standard
7883 Save the resulting 
7884 \family typewriter
7885 .tex
7886 \family default
7887  file.
7888 \end_layout
7889
7890 \end_deeper
7891 \begin_layout Enumerate
7892 Run the 
7893 \family typewriter
7894 .tex
7895 \family default
7896  file through \SpecialChar LaTeX
7897  as many times as necessary (usually up to three).
7898 \end_layout
7899
7900 \begin_layout Enumerate
7901 View the resulting 
7902 \family typewriter
7903 .dvi
7904 \family default
7905  document using, e.
7906 \begin_inset space \thinspace{}
7907 \end_inset
7908
7909 g.
7910 \begin_inset space \space{}
7911 \end_inset
7912
7913
7914 \family sans
7915 xdvi
7916 \family default
7917 , and check if everything is OK (it should, if you didn't make any mistake).
7918 \end_layout
7919
7920 \begin_layout Subsection
7921 \begin_inset Quotes eld
7922 \end_inset
7923
7924 Peculiarities
7925 \begin_inset Quotes erd
7926 \end_inset
7927
7928  of the Kluwer package
7929 \begin_inset CommandInset label
7930 LatexCommand label
7931 name "subsec:kluwer_peculiarities"
7932
7933 \end_inset
7934
7935
7936 \end_layout
7937
7938 \begin_layout Standard
7939 The Kluwer package has the following 
7940 \begin_inset Quotes eld
7941 \end_inset
7942
7943 peculiarities
7944 \begin_inset Quotes erd
7945 \end_inset
7946
7947 .
7948 \end_layout
7949
7950 \begin_layout Enumerate
7951 It is possible to write multiple articles in the same \SpecialChar LaTeX
7952  file
7953 \begin_inset Foot
7954 status collapsed
7955
7956 \begin_layout Plain Layout
7957 I can't imagine any good reason to do this.
7958 \end_layout
7959
7960 \end_inset
7961
7962 .
7963  Each article must be included in the environment 
7964 \begin_inset Quotes eld
7965 \end_inset
7966
7967 article
7968 \begin_inset Quotes erd
7969 \end_inset
7970
7971 .
7972  Unfortunately, this environment cannot be omitted, even if you write just
7973  one article.
7974  Therefore, each article starts with the command 
7975 \family typewriter
7976
7977 \backslash
7978 begin{article}
7979 \family default
7980  and, obviously, ends with the command 
7981 \family typewriter
7982
7983 \backslash
7984 end{article}
7985 \family default
7986 .
7987  Although this can be implemented in \SpecialChar LyX
7988 , I didn't included it, since it looks
7989  ugly and can confuse the novice user.
7990  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
7991  code (the
7992  well-known 
7993 \begin_inset Quotes eld
7994 \end_inset
7995
7996 \SpecialChar TeX
7997  code
7998 \begin_inset Quotes erd
7999 \end_inset
8000
8001 ).
8002 \end_layout
8003
8004 \begin_layout Enumerate
8005 Information given at the beginning of the article (i.
8006 \begin_inset space \thinspace{}
8007 \end_inset
8008
8009 e.
8010 \begin_inset space \space{}
8011 \end_inset
8012
8013 title, subtitle, author, institution, running title, running author, abstract
8014  and keywords) must be included in an environment called 
8015 \begin_inset Quotes eld
8016 \end_inset
8017
8018 opening
8019 \begin_inset Quotes erd
8020 \end_inset
8021
8022 .
8023  This is not implemented in \SpecialChar LyX
8024 , so you must enter title, subtitle etc.
8025 \begin_inset space ~
8026 \end_inset
8027
8028 between two \SpecialChar TeX
8029  code lines (
8030 \family typewriter
8031
8032 \backslash
8033 begin{opening}
8034 \family default
8035  and 
8036 \family typewriter
8037
8038 \backslash
8039 end{opening}
8040 \family default
8041 ).
8042 \end_layout
8043
8044 \begin_layout Enumerate
8045 According to the user manual, the label of each bibliography item must be
8046  written as 
8047 \family typewriter
8048
8049 \backslash
8050 protect
8051 \backslash
8052 citeauthoryear{
8053 \family default
8054 \emph on
8055 author(s)
8056 \family typewriter
8057 \emph default
8058 }{
8059 \family default
8060 \emph on
8061 year
8062 \family typewriter
8063 \emph default
8064 }
8065 \family default
8066 .
8067 \end_layout
8068
8069 \begin_layout Standard
8070 The 
8071 \family typewriter
8072 kluwer.lyx
8073 \family default
8074  template takes care of all these 
8075 \begin_inset Quotes eld
8076 \end_inset
8077
8078 peculiarities
8079 \begin_inset Quotes erd
8080 \end_inset
8081
8082 .
8083  If you start a new paper using this template you don't need to do anything
8084  special.
8085  Just 
8086 \end_layout
8087
8088 \begin_layout Enumerate
8089 don't delete the \SpecialChar TeX
8090  code included in the template, and
8091 \end_layout
8092
8093 \begin_layout Enumerate
8094 copy the example bibliography item included in the template and modify it
8095  as necessary to enter new bibliography items.
8096 \end_layout
8097
8098 \begin_layout Section
8099 Koma-Script
8100 \end_layout
8101
8102 \begin_layout Standard
8103 by 
8104 \noun on
8105 Bernd Rellermeyer
8106 \end_layout
8107
8108 \begin_layout Subsection
8109 Overview
8110 \end_layout
8111
8112 \begin_layout Standard
8113 The \SpecialChar LyX
8114  document classes 
8115 \emph on
8116 article (koma-script)
8117 \emph default
8118
8119 \emph on
8120 report (koma-script)
8121 \emph default
8122
8123 \emph on
8124 book
8125 \emph default
8126  
8127 \emph on
8128 (koma-script)
8129 \emph default
8130 , and 
8131 \emph on
8132 letter
8133 \emph default
8134  
8135 \emph on
8136 (koma-script)
8137 \emph default
8138  correspond to the \SpecialChar LaTeX
8139  document classes 
8140 \family typewriter
8141 scrartcl.cls
8142 \family default
8143
8144 \family typewriter
8145 scrreprt.cls
8146 \family default
8147
8148 \family typewriter
8149 scrbook.cls
8150 \family default
8151 , and 
8152 \family typewriter
8153 scrlettr.cls
8154 \family default
8155 , resp.
8156 \begin_inset space ~
8157 \end_inset
8158
8159 of the Koma-Script family.
8160  They are replacements for the standard document classes 
8161 \family typewriter
8162 article.cls
8163 \family default
8164
8165 \family typewriter
8166 report.cls
8167 \family default
8168
8169 \family typewriter
8170 book.cls
8171 \family default
8172  and 
8173 \family typewriter
8174 letter.cls
8175 \family default
8176 , resp., and fit better to European typography conventions in a number of
8177  points.
8178 \end_layout
8179
8180 \begin_layout Itemize
8181 Standard character size is 11pt in 
8182 \emph on
8183 article (koma-script)
8184 \emph default
8185
8186 \emph on
8187 report (koma-script)
8188 \emph default
8189 , and 
8190 \emph on
8191 book (koma-script)
8192 \emph default
8193 , and 12pt in 
8194 \emph on
8195 letter (koma-script)
8196 \emph default
8197 .
8198 \end_layout
8199
8200 \begin_layout Itemize
8201 Headings, labels of the description environment, and a number of elements
8202  of the 
8203 \emph on
8204 letter (koma-script)
8205 \emph default
8206  document class are set in a bold sans serif font.
8207 \begin_inset Foot
8208 status collapsed
8209
8210 \begin_layout Plain Layout
8211 There is a big difference between the bold sans serif old cm fonts and new
8212  ec fonts, especially in the appearance of headings.
8213  In comparison, the ec bold sans serif fonts look a bit thin.
8214  Here the \SpecialChar LaTeX
8215  package 
8216 \family typewriter
8217 cmsd.sty by
8218 \family default
8219  
8220 \shape smallcaps
8221 Walter Schmidt
8222 \shape default
8223  helps to produce the 
8224 \begin_inset Quotes eld
8225 \end_inset
8226
8227 usual
8228 \begin_inset Quotes erd
8229 \end_inset
8230
8231  appearance when using the ec fonts.
8232 \end_layout
8233
8234 \end_inset
8235
8236  The numbering of chapter headings is made in the same way as the numbering
8237  of section headings, that is without the extra line 
8238 \begin_inset Quotes eld
8239 \end_inset
8240
8241 Chapter\SpecialChar ldots
8242
8243 \begin_inset Quotes erd
8244 \end_inset
8245
8246 .
8247  In addition, the appearance of the headings can be modified by using a
8248  number of options (in \SpecialChar LyX
8249  to be entered in the field 
8250 \family sans
8251 Extra
8252 \begin_inset space ~
8253 \end_inset
8254
8255 Options
8256 \family default
8257  of the dialog 
8258 \family sans
8259 Layout\SpecialChar menuseparator
8260 Document
8261 \family default
8262 ).
8263  
8264 \end_layout
8265
8266 \begin_layout Itemize
8267 The main means in the Koma-Script document classes to design the type area
8268  are the options 
8269 \family sans
8270 BCOR
8271 \family default
8272  and 
8273 \family sans
8274 DIV
8275 \family default
8276  (in \SpecialChar LyX
8277  to be entered in the extra class options field in the dialog 
8278 \family sans
8279 Document\SpecialChar menuseparator
8280 Settings
8281 \family default
8282 ).
8283  They make a clearer modification of page margins possible as do the options
8284  of the dialog 
8285 \family sans
8286 Document\SpecialChar menuseparator
8287 Settings
8288 \family default
8289 .
8290  
8291 \end_layout
8292
8293 \begin_layout Itemize
8294 The \SpecialChar LaTeX
8295  document classes of the Koma-Script family define a number of additional
8296  commands.
8297  Those part of it which makes sense in \SpecialChar LyX
8298  is implemented in corresponding
8299  paragraph types.
8300 \end_layout
8301
8302 \begin_layout Standard
8303 Detailed descriptions of the \SpecialChar LaTeX
8304  document classes of the Koma-Script family
8305  can be found in the Koma-Script documentation 
8306 \emph on
8307 scrguide
8308 \emph default
8309  (German) and 
8310 \emph on
8311 scrguien
8312 \emph default
8313  (English).
8314 \end_layout
8315
8316 \begin_layout Subsection
8317 article (koma-script), report (koma-script), and book (koma-script)
8318 \end_layout
8319
8320 \begin_layout Standard
8321 The document classes 
8322 \emph on
8323 article (koma-script)
8324 \emph default
8325
8326 \emph on
8327 report (koma-script)
8328 \emph default
8329 , and 
8330 \emph on
8331 book
8332 \emph default
8333  
8334 \emph on
8335 (koma-script)
8336 \emph default
8337  are implemented in the layout files 
8338 \family typewriter
8339 scrartcl.layout
8340 \family default
8341
8342 \family typewriter
8343 scrreprt.layout
8344 \family default
8345 , and 
8346 \family typewriter
8347 scrbook.layout
8348 \family default
8349 , resp.
8350  They contain all the paragraph types of the corresponding standard document
8351  classes 
8352 \emph on
8353 article
8354 \emph default
8355
8356 \emph on
8357 report
8358 \emph default
8359 , and 
8360 \emph on
8361 book
8362 \emph default
8363 , resp., partly modified, with the exception of the \SpecialChar LyX
8364  specific 
8365 \family sans
8366 List
8367 \family default
8368 -type, which is replaced by the new 
8369 \family sans
8370 Labeling
8371 \family default
8372 -type having the same functionality.
8373  Beside the 
8374 \family sans
8375 Labeling
8376 \family default
8377 -Type there is a number of new paragraph types added.
8378  They are 
8379 \emph on
8380 not
8381 \emph default
8382  part of 
8383 \emph on
8384 letter (koma-script)
8385 \emph default
8386 .
8387 \end_layout
8388
8389 \begin_layout Itemize
8390
8391 \family sans
8392 Addpart, Addchap
8393 \family default
8394
8395 \family sans
8396 Addsec
8397 \family default
8398 : are equivalents to 
8399 \family sans
8400 Part*, Chapter*
8401 \family default
8402  and 
8403 \family sans
8404 Section*
8405 \family default
8406 , resp., additionally inserting an entry in the table of contents.
8407  
8408 \family sans
8409 Addpart
8410 \family default
8411  and 
8412 \family sans
8413 Addchap
8414 \family default
8415  are not contained in 
8416 \emph on
8417 article (koma-script)
8418 \emph default
8419 .
8420 \end_layout
8421
8422 \begin_layout Itemize
8423
8424 \family sans
8425 Addchap*
8426 \family default
8427
8428 \family sans
8429 Addsec*
8430 \family default
8431 : behave exactly as 
8432 \family sans
8433 Addchap
8434 \family default
8435  and 
8436 \family sans
8437 Addsec
8438 \family default
8439 , resp., additionally clearing running heads.
8440  
8441 \family sans
8442 Addchap*
8443 \family default
8444  is not contained in 
8445 \emph on
8446 article (koma-script)
8447 \emph default
8448 .
8449 \begin_inset Foot
8450 status collapsed
8451
8452 \begin_layout Plain Layout
8453 There is also an 
8454 \family typewriter
8455
8456 \backslash
8457 addpart*
8458 \family default
8459  command in 
8460 \emph on
8461 book (koma-script)
8462 \emph default
8463  and in 
8464 \emph on
8465 report (koma-script)
8466 \emph default
8467 , but since this is identical to 
8468 \family sans
8469 Part*
8470 \family default
8471 , is has not been implemented in \SpecialChar LyX
8472 .
8473 \end_layout
8474
8475 \end_inset
8476
8477
8478 \end_layout
8479
8480 \begin_layout Itemize
8481
8482 \family sans
8483 Minisec
8484 \family default
8485 : generates a heading directly above the following paragraph in the standard
8486  character size without affecting the structure of the document.
8487 \end_layout
8488
8489 \begin_layout Itemize
8490
8491 \family sans
8492 Captionabove
8493 \family default
8494  and 
8495 \family sans
8496 Captionbelow
8497 \family default
8498  are special captions which respect the different space settings needed
8499  for captions placed above or below an element (if you follow strict typographic
8500  rules, you might want to place table captions always above the table).
8501  You can also use the class option 
8502 \family typewriter
8503 tablecaptionsabove
8504 \family default
8505 , which will switch 
8506 \family sans
8507 caption
8508 \family default
8509  to 
8510 \family sans
8511 captionabove
8512 \family default
8513  for tables and 
8514 \family sans
8515 captionbelow
8516 \family default
8517  for figures.
8518  You need at least Koma-Script version 2.8q to use this.
8519 \end_layout
8520
8521 \begin_layout Itemize
8522
8523 \family sans
8524 Dictum
8525 \family default
8526 : can be used to set a bonmot, e.
8527 \begin_inset space \thinspace{}
8528 \end_inset
8529
8530 g.
8531 \begin_inset space \space{}
8532 \end_inset
8533
8534 at the beginning of a chapter.
8535  If you use the optional argument (
8536 \family sans
8537 Insert\SpecialChar menuseparator
8538 Short
8539 \begin_inset space ~
8540 \end_inset
8541
8542 Title
8543 \family default
8544 ), you can insert the dictum's author there.
8545  Dictum and author are separated by a line.
8546  You need at least Koma-Script version 2.8q to use this.
8547  
8548 \family sans
8549 Dictum
8550 \family default
8551  is not contained in 
8552 \emph on
8553 article (koma-script)
8554 \emph default
8555 .
8556 \end_layout
8557
8558 \begin_layout Standard
8559 The following types, together with the standard types 
8560 \family sans
8561 Title
8562 \family default
8563
8564 \family sans
8565 Author
8566 \family default
8567 , and 
8568 \family sans
8569 Date
8570 \family default
8571 , form the title area of the document.
8572  They must be entered ahead of the first 
8573 \begin_inset Quotes eld
8574 \end_inset
8575
8576 ordinary
8577 \begin_inset Quotes erd
8578 \end_inset
8579
8580  paragraph.
8581 \begin_inset Foot
8582 status collapsed
8583
8584 \begin_layout Plain Layout
8585 The corresponding \SpecialChar LaTeX
8586  commands must appear before the 
8587 \family typewriter
8588
8589 \backslash
8590 maketitle
8591 \family default
8592  command.
8593 \end_layout
8594
8595 \end_inset
8596
8597  When such a type is used more than once, the latter usage overwrites the
8598  former one, that means, for every type only the latest usage is valid.
8599  The order of the different types however has, like 
8600 \family sans
8601 Title
8602 \family default
8603
8604 \family sans
8605 Author
8606 \family default
8607 , and 
8608 \family sans
8609 Date
8610 \family default
8611 , no effect on the appearance of the produced document.
8612 \end_layout
8613
8614 \begin_layout Itemize
8615
8616 \family sans
8617 Subject
8618 \family default
8619 : produces a centered paragraph above the ordinary title (
8620 \family sans
8621 Title
8622 \family default
8623
8624 \family sans
8625 Author
8626 \family default
8627
8628 \family sans
8629 Date
8630 \family default
8631 ) for the subject of the document.
8632 \end_layout
8633
8634 \begin_layout Itemize
8635
8636 \family sans
8637 Publishers
8638 \family default
8639 : produces a centered paragraph below the ordinary title (
8640 \family sans
8641 Title
8642 \family default
8643
8644 \family sans
8645 Author
8646 \family default
8647
8648 \family sans
8649 Date
8650 \family default
8651 ) for the publishers' name.
8652 \end_layout
8653
8654 \begin_layout Itemize
8655
8656 \family sans
8657 Dedication
8658 \family default
8659 : in 
8660 \emph on
8661 report (koma-script)
8662 \emph default
8663  and 
8664 \emph on
8665 book (koma-script)
8666 \emph default
8667  produces a centered paragraph on its own page behind the title page, or
8668  in 
8669 \emph on
8670 article (koma-script)
8671 \emph default
8672  produces a centered paragraph below the ordinary title (
8673 \family sans
8674 Title
8675 \family default
8676
8677 \family sans
8678 Author
8679 \family default
8680
8681 \family sans
8682 Date
8683 \family default
8684
8685 \family sans
8686 Publishers
8687 \family default
8688 ) for a dedication.
8689 \end_layout
8690
8691 \begin_layout Itemize
8692
8693 \family sans
8694 Titlehead
8695 \family default
8696 : produces a left aligned paragraph above the ordinary title (
8697 \family sans
8698 Title
8699 \family default
8700
8701 \family sans
8702 Author
8703 \family default
8704
8705 \family sans
8706 Date
8707 \family default
8708
8709 \family sans
8710 Subject
8711 \family default
8712 ) for a document`s head.
8713 \end_layout
8714
8715 \begin_layout Itemize
8716
8717 \family sans
8718 Uppertitleback
8719 \family default
8720 : produces in a double-sided print in 
8721 \emph on
8722 report (koma-script)
8723 \emph default
8724  and 
8725 \emph on
8726 book (koma-script)
8727 \emph default
8728  a left-aligned paragraph at the top of the title page`s back or has no
8729  effect in a single-sided print or in 
8730 \emph on
8731 article (koma-script)
8732 \emph default
8733 .
8734 \end_layout
8735
8736 \begin_layout Itemize
8737
8738 \family sans
8739 Lowertitleback
8740 \family default
8741 : produces in a double-sided print in 
8742 \emph on
8743 report (koma-script)
8744 \emph default
8745  and 
8746 \emph on
8747 book (koma-script)
8748 \emph default
8749  a left-aligned paragraph at the bottom of the title page`s back or has
8750  no effect in a single-sided print or in 
8751 \emph on
8752 article (koma-script)
8753 \emph default
8754 .
8755 \end_layout
8756
8757 \begin_layout Itemize
8758
8759 \family sans
8760 Extratitle
8761 \family default
8762 : produces a special 
8763 \begin_inset Quotes eld
8764 \end_inset
8765
8766 dirty
8767 \begin_inset Quotes erd
8768 \end_inset
8769
8770  page ahead of the actual document containing a paragraph without special
8771  formatting.
8772 \end_layout
8773
8774 \begin_layout Standard
8775 The layout files for the document classes 
8776 \emph on
8777 article (koma-script)
8778 \emph default
8779
8780 \emph on
8781 report (koma-script)
8782 \emph default
8783 , and 
8784 \emph on
8785 book (koma-script)
8786 \emph default
8787  do include the file 
8788 \family typewriter
8789 scrmacros.inc
8790 \family default
8791 .
8792  This is thought of as a place to define your own types.
8793  Copy scrmacros
8794 \family typewriter
8795 .inc
8796 \family default
8797  in your personal layout directory and edit the file!
8798 \end_layout
8799
8800 \begin_layout Subsection
8801 letter (koma-script)
8802 \end_layout
8803
8804 \begin_layout Standard
8805 \noindent
8806 The document class 
8807 \emph on
8808 letter (koma-script)
8809 \emph default
8810  is implemented in the layout file 
8811 \family typewriter
8812 scrlettr.layout
8813 \family default
8814 .
8815  It contains all the paragraph types of the corresponding standard document
8816  class 
8817 \emph on
8818 letter
8819 \emph default
8820 , partly modified, with the exception of the \SpecialChar LyX
8821  specific types 
8822 \family sans
8823 \SpecialChar LyX
8824 -Code
8825 \family default
8826  and 
8827 \family sans
8828 Comment
8829 \family default
8830  and the 
8831 \family sans
8832 List
8833 \family default
8834  type, which is replaced by the new 
8835 \family sans
8836 Labeling
8837 \family default
8838  type.
8839  In addition, it contains, in contrast to the standard document class, the
8840  standard types 
8841 \family sans
8842 \SpecialChar LaTeX
8843
8844 \family default
8845
8846 \family sans
8847 Quotation
8848 \family default
8849
8850 \family sans
8851 Quote
8852 \family default
8853 , and 
8854 \family sans
8855 Verse
8856 \family default
8857 .
8858  Furthermore, there are a number of new letter specific types.
8859 \end_layout
8860
8861 \begin_layout Standard
8862 The appearance of the letter produced by this document class can be controlled
8863  by a number of \SpecialChar LaTeX
8864  commands, which you can put in the \SpecialChar LaTeX
8865  preamble.
8866 \begin_inset Foot
8867 status collapsed
8868
8869 \begin_layout Plain Layout
8870 For example, the standard appearance of the letter`s heading, consisting
8871  of name and address, is quite self-willed.
8872  An 
8873 \begin_inset Quotes eld
8874 \end_inset
8875
8876 ordinary
8877 \begin_inset Quotes erd
8878 \end_inset
8879
8880  heading is produced by the following \SpecialChar LaTeX
8881  commands in the preamble:
8882 \end_layout
8883
8884 \begin_layout LyX-Code
8885
8886 \backslash
8887 firsthead{
8888 \backslash
8889 parbox[b]{
8890 \backslash
8891 textwidth}
8892 \end_layout
8893
8894 \begin_layout LyX-Code
8895   {
8896 \backslash
8897 ignorespaces 
8898 \backslash
8899 fromname
8900 \backslash
8901
8902 \backslash
8903  
8904 \backslash
8905 ignorespaces 
8906 \backslash
8907 fromaddress}} 
8908 \end_layout
8909
8910 \begin_layout LyX-Code
8911
8912 \backslash
8913 nexthead{
8914 \backslash
8915 parbox[b]{
8916 \backslash
8917 textwidth}
8918 \end_layout
8919
8920 \begin_layout LyX-Code
8921   {
8922 \backslash
8923 ignorespaces 
8924 \backslash
8925 fromname 
8926 \backslash
8927 hfill 
8928 \backslash
8929 ignorespaces 
8930 \backslash
8931 pagename
8932 \backslash
8933  
8934 \backslash
8935 thepage}}
8936 \end_layout
8937
8938 \end_inset
8939
8940  A detailed German description of such \SpecialChar LaTeX
8941  commands can be found in the Koma-Script
8942  documentation 
8943 \emph on
8944 scrguide
8945 \emph default
8946 .
8947  With it, the letter's author can produce his personal letter layout.
8948 \end_layout
8949
8950 \begin_layout Standard
8951 The types 
8952 \family sans
8953 Letter
8954 \family default
8955  and 
8956 \family sans
8957 Opening
8958 \family default
8959  define the beginning of the letter and must be used in every letter.
8960  To emphasize them in the \SpecialChar LyX
8961  document class, they are marked with the letter
8962  
8963 \shape italic
8964 L
8965 \shape default
8966  or 
8967 \shape italic
8968 O
8969 \shape default
8970 , resp.
8971 \begin_inset space ~
8972 \end_inset
8973
8974 in the left margin.
8975  It is possible to write any number of letters in one file.
8976  An 
8977 \family sans
8978 Opening
8979 \family default
8980  type produces a new letter using the same addressee and a 
8981 \family sans
8982 Letter
8983 \family default
8984  type produces a new addressee.
8985  The types 
8986 \family sans
8987 Closing
8988 \family default
8989
8990 \family sans
8991 PS
8992 \family default
8993
8994 \family sans
8995 CC
8996 \family default
8997 , and 
8998 \family sans
8999 Encl
9000 \family default
9001  are ordinary paragraph types and can also be used several times in one
9002  and the same letter.
9003 \end_layout
9004
9005 \begin_layout Itemize
9006
9007 \family sans
9008 Letter
9009 \family default
9010 : produces a paragraph for the addressee and implicitly defines the beginning
9011  of the letter.
9012 \end_layout
9013
9014 \begin_layout Itemize
9015
9016 \family sans
9017 Opening
9018 \family default
9019 : produces a paragraph for the form of address and implicitly produces a
9020  new letter.
9021 \end_layout
9022
9023 \begin_layout Itemize
9024
9025 \family sans
9026 Closing
9027 \family default
9028 : produces a paragraph for a close.
9029 \end_layout
9030
9031 \begin_layout Itemize
9032
9033 \family sans
9034 PS
9035 \family default
9036 : produces a paragraph for a postscript.
9037 \end_layout
9038
9039 \begin_layout Itemize
9040
9041 \family sans
9042 CC
9043 \family default
9044 : produces a paragraph for a distribution list.
9045 \end_layout
9046
9047 \begin_layout Itemize
9048
9049 \family sans
9050 Encl
9051 \family default
9052 : produces a paragraph for enclosures.
9053 \end_layout
9054
9055 \begin_layout Standard
9056 The types 
9057 \family sans
9058 Name
9059 \family default
9060
9061 \family sans
9062 Signature
9063 \family default
9064
9065 \family sans
9066 Address
9067 \family default
9068
9069 \family sans
9070 Telephone
9071 \family default
9072
9073 \family sans
9074 Place
9075 \family default
9076
9077 \family sans
9078 Backaddress
9079 \family default
9080
9081 \family sans
9082 Specialmail
9083 \family default
9084
9085 \family sans
9086 Location
9087 \family default
9088
9089 \family sans
9090 Title
9091 \family default
9092 , and 
9093 \family sans
9094 Subject
9095 \family default
9096  are input types provided with a label to enter information, which will
9097  be processed by the document class.
9098 \begin_inset Foot
9099 status open
9100
9101 \begin_layout Plain Layout
9102 It could be seen as a matter of inconsequence, that the types 
9103 \family sans
9104 Letter
9105 \family default
9106  and 
9107 \family sans
9108 Opening
9109 \family default
9110  described above are not such input types as well.
9111  Because of the special meaning of those types, however, I have implemented
9112  them as ordinary paragraph types with a one letter mark in the left margin.
9113  Moreover, it would affect my feeling of symmetry, if the 
9114 \family sans
9115 Opening
9116 \family default
9117  type and the 
9118 \family sans
9119 Closing
9120 \family default
9121  type had such a serious different appearance.
9122 \end_layout
9123
9124 \end_inset
9125
9126  The types must be used ahead of the corresponding 
9127 \family sans
9128 Opening
9129 \family default
9130  type.
9131 \end_layout
9132
9133 \begin_layout Standard
9134 An implementation of these types in a WYSIWYG fashion does not seem to make
9135  sense, because the real appearance of the produced letter does not only
9136  depend on the usage of the particular type, but also on other factors.
9137  For example, a signature entered in the 
9138 \family sans
9139 Signature
9140 \family default
9141  type will in the standard behavior appear in the produced letter only,
9142  when in the same letter also a 
9143 \family sans
9144 Closing
9145 \family default
9146  type is used.
9147  The entered value of the 
9148 \family sans
9149 Telephone
9150 \family default
9151  type will in the standard behavior not appear in the produced letter at
9152  all.
9153  The possibility to design the letter`s heading freely is already indicated
9154  in a footnote above.
9155 \end_layout
9156
9157 \begin_layout Standard
9158 The input types can also be used as empty paragraphs.
9159  This makes sense e.
9160 \begin_inset space \thinspace{}
9161 \end_inset
9162
9163 g.
9164 \begin_inset space \space{}
9165 \end_inset
9166
9167 for the 
9168 \family sans
9169 Signature
9170 \family default
9171  type.
9172  If the 
9173 \family sans
9174 Signature
9175 \family default
9176  type is not used at all, in the standard behavior the value of the 
9177 \family sans
9178 Name
9179 \family default
9180  type is used as signature, whereas if an empty 
9181 \family sans
9182 Signature
9183 \family default
9184  type is used, no signature value is defined.
9185 \end_layout
9186
9187 \begin_layout Standard
9188 By using the input types it is possible to write a letter template, containing
9189  filled input types with your personal dates (name, address, etc.) and empty
9190  input types for other dates you want to enter.
9191 \end_layout
9192
9193 \begin_layout Itemize
9194
9195 \family sans
9196 Name
9197 \family default
9198 : sender's name, in the standard behavior appears as a centered paragraph
9199  in small caps in the letter`s heading.
9200 \end_layout
9201
9202 \begin_layout Itemize
9203
9204 \family sans
9205 Signature
9206 \family default
9207 : sender's signature, in the standard behavior appears below the 
9208 \family sans
9209 Closing
9210 \family default
9211  type.
9212  If no 
9213 \family sans
9214 Signature
9215 \family default
9216  type is used, the value of the 
9217 \family sans
9218 Name
9219 \family default
9220  type appears instead.
9221 \end_layout
9222
9223 \begin_layout Itemize
9224
9225 \family sans
9226 Address
9227 \family default
9228 : sender's address, in the standard behavior appears in a centered paragraph
9229  in the letter`s heading below the sender's name.
9230 \end_layout
9231
9232 \begin_layout Itemize
9233
9234 \family sans
9235 Telephone
9236 \family default
9237 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
9238  variable
9239  
9240 \family typewriter
9241
9242 \backslash
9243 telephonenum
9244 \family default
9245 .
9246 \end_layout
9247
9248 \begin_layout Itemize
9249
9250 \family sans
9251 Place
9252 \family default
9253 : place of the letter`s making.
9254 \end_layout
9255
9256 \begin_layout Itemize
9257
9258 \family sans
9259 Date
9260 \family default
9261 : date of the letter`s making.
9262  
9263 \family sans
9264 Place
9265 \family default
9266  and 
9267 \family sans
9268 Date
9269 \family default
9270 , in the standard behavior, produce the place and the date in a right-aligned
9271  line below the addressee's field.
9272  If an empty 
9273 \family sans
9274 Date
9275 \family default
9276  type is used, neither place nor date appear, independent of the value of
9277  the 
9278 \family sans
9279 Place
9280 \family default
9281  type.
9282  If no 
9283 \family sans
9284 Date
9285 \family default
9286  type is used, the date of the letter `s production is used.
9287 \end_layout
9288
9289 \begin_layout Itemize
9290
9291 \family sans
9292 Backaddress
9293 \family default
9294 : sender`s back address, in the standard behavior appears above the addressee's
9295  field in a small sans serif font.
9296 \end_layout
9297
9298 \begin_layout Itemize
9299
9300 \family sans
9301 Specialmail
9302 \family default
9303 : special mail information, in the standard behavior appears underlined
9304  above the addressee's field below the back address.
9305 \end_layout
9306
9307 \begin_layout Itemize
9308
9309 \family sans
9310 Location
9311 \family default
9312 : additional information, in the standard behavior appears on right side
9313  below the addressee`s field.
9314 \end_layout
9315
9316 \begin_layout Itemize
9317
9318 \family sans
9319 Title
9320 \family default
9321 : the letter's title, in the standard behavior appears in a big, bold, sans
9322  serif font above the subject.
9323 \end_layout
9324
9325 \begin_layout Itemize
9326
9327 \family sans
9328 Subject
9329 \family default
9330 : the letter's subject, in the standard behavior appears in a bold font
9331  above the 
9332 \family sans
9333 Opening
9334 \family default
9335  paragraph.
9336 \end_layout
9337
9338 \begin_layout Standard
9339 The types 
9340 \family sans
9341 Yourref
9342 \family default
9343
9344 \family sans
9345 Yourmail
9346 \family default
9347
9348 \family sans
9349 Myref
9350 \family default
9351
9352 \family sans
9353 Customer
9354 \family default
9355 , and 
9356 \family sans
9357 Invoice
9358 \family default
9359  produce a business letter like line above the 
9360 \family sans
9361 Title
9362 \family default
9363  line containing the fields 
9364 \begin_inset Quotes eld
9365 \end_inset
9366
9367 Your ref.
9368 \begin_inset Quotes erd
9369 \end_inset
9370
9371
9372 \begin_inset Quotes eld
9373 \end_inset
9374
9375 Your letter of
9376 \begin_inset Quotes erd
9377 \end_inset
9378
9379
9380 \begin_inset Quotes eld
9381 \end_inset
9382
9383 Our ref.
9384 \begin_inset Quotes erd
9385 \end_inset
9386
9387
9388 \begin_inset Quotes eld
9389 \end_inset
9390
9391 Customer no.
9392 \begin_inset Quotes erd
9393 \end_inset
9394
9395
9396 \begin_inset Quotes eld
9397 \end_inset
9398
9399 Invoice no.
9400 \begin_inset Quotes erd
9401 \end_inset
9402
9403 , and 
9404 \begin_inset Quotes eld
9405 \end_inset
9406
9407 Date
9408 \begin_inset Quotes erd
9409 \end_inset
9410
9411 .
9412  For the date field, the value of the 
9413 \family sans
9414 Date
9415 \family default
9416  type is used.
9417  If one of these 
9418 \begin_inset Quotes eld
9419 \end_inset
9420
9421 business letter types
9422 \begin_inset Quotes erd
9423 \end_inset
9424
9425  is used, the value of the 
9426 \family sans
9427 Place
9428 \family default
9429  type however does not appear, but only the \SpecialChar LaTeX
9430  variable 
9431 \family typewriter
9432
9433 \backslash
9434 fromplace
9435 \family default
9436  is set.
9437  The ordinary output of place and date in a right-aligned line below the
9438  addressee`s field is suppressed.
9439  The types are implemented as input types provided with a label and must
9440  be used ahead of the corresponding 
9441 \family sans
9442 Opening
9443 \family default
9444  type.
9445 \end_layout
9446
9447 \begin_layout Itemize
9448
9449 \family sans
9450 Yourref
9451 \family default
9452 : Your ref.
9453 \end_layout
9454
9455 \begin_layout Itemize
9456
9457 \family sans
9458 Yourmail
9459 \family default
9460 : Your letter of.
9461 \end_layout
9462
9463 \begin_layout Itemize
9464
9465 \family sans
9466 Myref
9467 \family default
9468 : Our ref.
9469 \end_layout
9470
9471 \begin_layout Itemize
9472
9473 \family sans
9474 Customer
9475 \family default
9476 : Customer no.
9477 \end_layout
9478
9479 \begin_layout Itemize
9480
9481 \family sans
9482 Invoice
9483 \family default
9484 : Invoice no.
9485 \end_layout
9486
9487 \begin_layout Subsection
9488 The new letter class: letter (koma-script v.2)
9489 \end_layout
9490
9491 \begin_layout Standard
9492 by 
9493 \noun on
9494 Jürgen Spitzmüller
9495 \end_layout
9496
9497 \begin_layout Standard
9498 \begin_inset VSpace medskip
9499 \end_inset
9500
9501
9502 \end_layout
9503
9504 \begin_layout Standard
9505 \noindent
9506 Koma-Script version 2.8 has introduced a new letter class 
9507 \family typewriter
9508 scrlttr2
9509 \family default
9510  which supersedes the now unsupported 
9511 \family typewriter
9512 scrlettr
9513 \family default
9514 .
9515  It has — on the \SpecialChar LaTeX
9516  side — a completely new interface and is not compatible
9517  with the old class.
9518  Therefore, \SpecialChar LyX
9519  supports both, though it is recommended you use the new class.
9520 \end_layout
9521
9522 \begin_layout Standard
9523 This class covers the same functionality as 
9524 \emph on
9525 letter (koma-script),
9526 \emph default
9527  and a few more.
9528  The basic items are 
9529 \family sans
9530 Address
9531 \family default
9532  (receiver's address, same as 
9533 \family sans
9534 Letter
9535 \family default
9536  in the old layout), 
9537 \family sans
9538 Opening
9539 \family default
9540 , and 
9541 \family sans
9542 Closing
9543 \family default
9544 .
9545  
9546 \family sans
9547 NextAddress
9548 \family default
9549  will start a new letter (i.
9550 \begin_inset space \thinspace{}
9551 \end_inset
9552
9553 e.
9554 \begin_inset space \space{}
9555 \end_inset
9556
9557 you can write several letters per document).
9558  New elements are sender's 
9559 \family sans
9560 E-Mail
9561 \family default
9562
9563 \family sans
9564 URL
9565 \family default
9566
9567 \family sans
9568 Fax
9569 \family default
9570
9571 \family sans
9572 Bank
9573 \family default
9574  and the possibility to use a 
9575 \family sans
9576 Logo
9577 \family default
9578  (via 
9579 \family sans
9580 Insert\SpecialChar menuseparator
9581 Graphics
9582 \family default
9583 ) in the header.
9584 \end_layout
9585
9586 \begin_layout Standard
9587 The biggest improvement is, though, that the letter's layout is configurable
9588  to meet almost any needs.
9589  This can be done via the preamble or with a special style file (Letter
9590  Class Option, extension 
9591 \family typewriter
9592 *.lco
9593 \family default
9594 ), that will be read in as a class option.
9595 \begin_inset Foot
9596 status collapsed
9597
9598 \begin_layout Plain Layout
9599 The KOMA package comes with some default 
9600 \family typewriter
9601 *.lco
9602 \family default
9603  files.
9604  There is, for instance, a 
9605 \family typewriter
9606 DIN.lco
9607 \family default
9608  file that follows german typesetting rules, or a 
9609 \family typewriter
9610 KOMAold.lco
9611 \family default
9612  that provides the default layout of the old 
9613 \family typewriter
9614 scrlettr
9615 \family default
9616  class.
9617  The latter can be loaded with the class option 
9618 \family typewriter
9619 KOMAold
9620 \family default
9621 , inserted via the 
9622 \family sans
9623 Layout\SpecialChar menuseparator
9624 Document\SpecialChar menuseparator
9625 Extra Options
9626 \family default
9627  field.
9628 \end_layout
9629
9630 \end_inset
9631
9632  Have a look at the 
9633 \emph on
9634 koma-letter2
9635 \emph default
9636  template that is included in \SpecialChar LyX
9637  for examples.
9638  A detailed description is to be found in the Koma-Script documentation
9639  (
9640 \emph on
9641 scrguide
9642 \emph default
9643 ).
9644 \end_layout
9645
9646 \begin_layout Subsection
9647 Problems
9648 \end_layout
9649
9650 \begin_layout Standard
9651 Visualizing the Koma-Script document classes in \SpecialChar LyX
9652 , the \SpecialChar LyX
9653  internals cause some
9654  problems.
9655 \end_layout
9656
9657 \begin_layout Itemize
9658 The chapter number of a 
9659 \family sans
9660 Chapter
9661 \family default
9662  type appears on a line of its own above the chapter heading instead of
9663  appearing in the same line ahead of it.
9664  The cause for that is the \SpecialChar LyX
9665  internal behavior for the labeltype 
9666 \family sans
9667 Counter_Chapter
9668 \family default
9669  in the layout file.
9670 \end_layout
9671
9672 \begin_layout Itemize
9673 The headings of the types 
9674 \family sans
9675 Addchap
9676 \family default
9677  and 
9678 \family sans
9679 Addsec
9680 \family default
9681  are only put in the 
9682 \begin_inset Quotes eld
9683 \end_inset
9684
9685 true
9686 \begin_inset Quotes erd
9687 \end_inset
9688
9689  \SpecialChar LaTeX
9690  table of contents, but not in the \SpecialChar LyX
9691  table of contents (
9692 \family sans
9693 Document\SpecialChar menuseparator
9694 Table
9695 \begin_inset space ~
9696 \end_inset
9697
9698 of
9699 \begin_inset space ~
9700 \end_inset
9701
9702 Contents
9703 \family default
9704 ).
9705 \end_layout
9706
9707 \begin_layout Itemize
9708 The paragraphs in a 
9709 \emph on
9710 letter
9711 \emph default
9712  document class appear in a skip separation mode, not indented.
9713  This is the standard behavior, no special \SpecialChar LaTeX
9714  commands are needed for that.
9715  But in the 
9716 \family sans
9717 Document\SpecialChar menuseparator
9718 Settings
9719 \family default
9720  dialog the corresponding radio button indicates 
9721 \family sans
9722 Indent
9723 \family default
9724 .
9725  A 
9726 \family sans
9727 Skip
9728 \family default
9729  value always has the effect that extra \SpecialChar LaTeX
9730  commands are inserted in the document
9731  to produce the gap, which is not what is wanted in this case.
9732 \end_layout
9733
9734 \begin_layout Section
9735 Memoir
9736 \end_layout
9737
9738 \begin_layout Standard
9739 By 
9740 \noun on
9741 Jürgen Spitzmüller
9742 \end_layout
9743
9744 \begin_layout Subsection
9745 Overview
9746 \end_layout
9747
9748 \begin_layout Standard
9749 Memoir is a very powerful and constantly evolving class.
9750  It has been designed with regard to fictional and non-fictional literature.
9751  Its aim is to let the user have maximum control over the typesetting of
9752  his document.
9753  Memoir is based on the standard book class, but it can also emulate the
9754  article class (see below).
9755 \end_layout
9756
9757 \begin_layout Standard
9758 Peter Wilson, the developer of Memoir, is known as the author of lots of
9759  useful packages in the \SpecialChar LaTeX
9760  world.
9761  Most of them have been merged with Memoir.
9762  Therefore, it is much easier to layout the table of contents, appendices,
9763  chapter designs and such.
9764  \SpecialChar LyX
9765 , though, does not support all of these goodies natively.
9766  Some of them might be added to forthcoming releases
9767 \begin_inset Foot
9768 status collapsed
9769
9770 \begin_layout Plain Layout
9771 You are invited to send suggestions to 
9772 \begin_inset Flex URL
9773 status collapsed
9774
9775 \begin_layout Plain Layout
9776
9777 lyx-devel@lists.lyx.org
9778 \end_layout
9779
9780 \end_inset
9781
9782 .
9783 \end_layout
9784
9785 \end_inset
9786
9787 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
9788 's framework.
9789  Of course you can still use all features with the help of some native \SpecialChar LaTeX
9790
9791  commands (\SpecialChar TeX
9792  code
9793 \begin_inset Foot
9794 status collapsed
9795
9796 \begin_layout Plain Layout
9797 Cf.
9798 \begin_inset ERT
9799 status collapsed
9800
9801 \begin_layout Plain Layout
9802
9803
9804 \backslash
9805  
9806 \end_layout
9807
9808 \end_inset
9809
9810 section
9811 \begin_inset space ~
9812 \end_inset
9813
9814
9815 \begin_inset CommandInset ref
9816 LatexCommand ref
9817 reference "sec:Inserting-TeX-Code"
9818
9819 \end_inset
9820
9821  for details.
9822 \end_layout
9823
9824 \end_inset
9825
9826 ).
9827  In this section, we can only list those features that are natively supported
9828  by \SpecialChar LyX
9829 .
9830  For detailed descriptions (and for the rest of features) we recommend you
9831  have a look at the detailed manual of the Memoir class
9832 \begin_inset Foot
9833 status collapsed
9834
9835 \begin_layout Plain Layout
9836 Cf.
9837 \begin_inset ERT
9838 status collapsed
9839
9840 \begin_layout Plain Layout
9841
9842
9843 \backslash
9844  
9845 \end_layout
9846
9847 \end_inset
9848
9849
9850 \begin_inset Flex URL
9851 status collapsed
9852
9853 \begin_layout Plain Layout
9854
9855 CTAN:/macros/latex/memoir/memman.pdf
9856 \end_layout
9857
9858 \end_inset
9859
9860 .
9861 \end_layout
9862
9863 \end_inset
9864
9865 , which is not only a user guide for the class, but also both a comprehensive
9866  description on good typesetting and a superb example for good typesetting
9867  itself.
9868 \end_layout
9869
9870 \begin_layout Subsection
9871 Basic features and restrictions
9872 \end_layout
9873
9874 \begin_layout Standard
9875 Memoir supports basically all features of the standard book classes.
9876  There are, however, some differences, as follows:
9877 \end_layout
9878
9879 \begin_layout Description
9880 Font
9881 \begin_inset space ~
9882 \end_inset
9883
9884 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
9885 \end_layout
9886
9887 \begin_layout Description
9888 Page
9889 \begin_inset space ~
9890 \end_inset
9891
9892 style: The fancy page style is not supported, due to a command clash between
9893  Memoir and the fancyhdr package (they both define a command with the same
9894  name, which confuses \SpecialChar LaTeX
9895 ).
9896  Instead, Memoir comes with a number of its own page styles (see 
9897 \family sans
9898 Layout\SpecialChar menuseparator
9899 Document\SpecialChar menuseparator
9900 Page
9901 \begin_inset space ~
9902 \end_inset
9903
9904 Style
9905 \family default
9906 ).
9907  If you want to use these for the chapter pages, you have to use the command
9908  
9909 \family typewriter
9910
9911 \backslash
9912 chapterstyle
9913 \family default
9914  in the main text or in preamble (e.
9915 \begin_inset space \thinspace{}
9916 \end_inset
9917
9918 g.
9919 \begin_inset space \space{}
9920 \end_inset
9921
9922
9923 \family typewriter
9924
9925 \backslash
9926 chapterstyle{companion}
9927 \family default
9928 ).
9929 \end_layout
9930
9931 \begin_layout Description
9932 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
9933  optional argument in the standard classes.
9934  With this, you can specify an alternative version of the title for the
9935  table of contents and the headers (for instance, if the title is too long).
9936  In \SpecialChar LyX
9937 , you can do this via 
9938 \family sans
9939 Insert\SpecialChar menuseparator
9940 Short
9941 \begin_inset space ~
9942 \end_inset
9943
9944 Title
9945 \family default
9946  at the beginning of a chapter/section.
9947  Memoir features a second optional argument and thus separates the table
9948  of contents from the header.
9949  You can define three variants of a title with this: one for the main text,
9950  one for the table of contents, and one for the headers.
9951  Simply insert two optional arguments if you need this feature, the first
9952  one containing the short title for the Table of Contents, the second one
9953  containing an alternative short title for the headers.
9954 \end_layout
9955
9956 \begin_layout Description
9957 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
9958  of contents, the list of figures and the list of table start a new page
9959  automatically.
9960  Memoir does not follow this route.
9961  You have to insert a page break yourself, if you want to have one.
9962 \end_layout
9963
9964 \begin_layout Description
9965 Titlepage: For some unknown reason, Memoir uses pagination on the title
9966  page (in the standard classes, title pages are 
9967 \begin_inset Quotes eld
9968 \end_inset
9969
9970 empty
9971 \begin_inset Quotes erd
9972 \end_inset
9973
9974 ).
9975  If you want an empty title page, type 
9976 \family typewriter
9977
9978 \backslash
9979 aliaspagestyle{title}{empty}
9980 \family default
9981  in the preamble.
9982 \end_layout
9983
9984 \begin_layout Description
9985 Article: With the class option 
9986 \emph on
9987 article
9988 \emph default
9989  (to be inserted in 
9990 \family sans
9991 Layout\SpecialChar menuseparator
9992 Document\SpecialChar menuseparator
9993 Extra
9994 \begin_inset space ~
9995 \end_inset
9996
9997 Options
9998 \family default
9999 ), you can emulate article style.
10000  That is, counters (footnotes, figures, tables etc.) will not be reset on
10001  new chapters, chapters don't start a new page (but are—in contrary to 
10002 \begin_inset Quotes eld
10003 \end_inset
10004
10005 real
10006 \begin_inset Quotes erd
10007 \end_inset
10008
10009  article classes—still allowed), parts, though, use their own page, as in
10010  book.
10011 \end_layout
10012
10013 \begin_layout Description
10014 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
10015  font commands, which have been used in the old \SpecialChar LaTeX
10016  version 2.09 (e.
10017 \begin_inset space \thinspace{}
10018 \end_inset
10019
10020 g.
10021 \begin_inset space \space{}
10022 \end_inset
10023
10024
10025 \family typewriter
10026
10027 \backslash
10028 rm
10029 \family default
10030
10031 \family typewriter
10032
10033 \backslash
10034 it
10035 \family default
10036 ).
10037  It produces an error and stops \SpecialChar LaTeX
10038  whenever such a command appears.
10039  The class option 
10040 \emph on
10041 oldfontcommands
10042 \emph default
10043  reallows the commands and spits out warnings instead (which does at least
10044  not stop \SpecialChar LaTeX
10045 ).
10046  Since a lot of packages and particularly Bib\SpecialChar TeX
10047  style files are still using
10048  those commands, we have decided to use this option by default.
10049 \end_layout
10050
10051 \begin_layout Subsection
10052 Extra features
10053 \end_layout
10054
10055 \begin_layout Standard
10056 We will only describe the features supported by \SpecialChar LyX
10057  (which is not much currently).
10058  Please consult the Memoir manual
10059 \begin_inset Foot
10060 status collapsed
10061
10062 \begin_layout Plain Layout
10063 Cf.
10064 \begin_inset ERT
10065 status collapsed
10066
10067 \begin_layout Plain Layout
10068
10069
10070 \backslash
10071  
10072 \end_layout
10073
10074 \end_inset
10075
10076
10077 \begin_inset Flex URL
10078 status collapsed
10079
10080 \begin_layout Plain Layout
10081
10082 CTAN:/macros/latex/memoir/memman.pdf
10083 \end_layout
10084
10085 \end_inset
10086
10087 .
10088 \end_layout
10089
10090 \end_inset
10091
10092  for details.
10093 \end_layout
10094
10095 \begin_layout Description
10096 Abstract: You may wonder why an abstract is an extra feature.
10097  Well, it is in book class.
10098  Usually books don't have abstracts.
10099  Memoir, however, has.
10100  You can use it wherever and how often you like.
10101 \end_layout
10102
10103 \begin_layout Description
10104 Chapterprecis: You may know this older typesetting style: The contents of
10105  a chapter are summarized below the title and also in the table of contents
10106  (e.
10107 \begin_inset space \thinspace{}
10108 \end_inset
10109
10110 g.
10111 \begin_inset space \space{}
10112 \end_inset
10113
10114
10115 \emph on
10116 Our hero arrives in Troia; he loses some friends; he finds others
10117 \emph default
10118 ).
10119  Chapterprecis does exactly this.
10120  It is therefore only sensible below a chapter.
10121 \end_layout
10122
10123 \begin_layout Description
10124 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
10125  The epigraph environment provides an elegant way of typesetting such a
10126  motto.
10127  The motto itself (text) and its author (source) are divided by a short
10128  line.
10129  Unfortunately, we have to fool \SpecialChar LyX
10130  a bit here again, since the environment
10131  needs two arguments (text and source).
10132  In this case, we have to use curly brackets (in \SpecialChar TeX
10133  mode) between the two
10134  arguments: 
10135 \emph on
10136 <smart slogan>
10137 \emph default
10138  
10139 \family typewriter
10140 }{
10141 \family default
10142  
10143 \emph on
10144 <author of the slogan>.
10145 \end_layout
10146
10147 \begin_layout Description
10148 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
10149  complex figurative poems).
10150  \SpecialChar LyX
10151  can only support a few of them.
10152  One is poemtitle, which is a centered title for poems, which will also
10153  be added to the table of contents (verse is the standard environment for
10154  poems.
10155  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
10156  code,
10157  because they have to be nested inside regular verse environments, which
10158  is not possible with \SpecialChar LyX
10159 ).
10160 \end_layout
10161
10162 \begin_layout Description
10163 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
10164 \end_layout
10165
10166 \begin_layout Section
10167 Article (mwart), book (mwbk) and report (mwrep)
10168 \begin_inset Argument status
10169 status collapsed
10170
10171 \begin_layout Plain Layout
10172 The 
10173 \family typewriter
10174 mw
10175 \family default
10176  Classes
10177 \end_layout
10178
10179 \end_inset
10180
10181
10182 \end_layout
10183
10184 \begin_layout Standard
10185 by 
10186 \noun on
10187 Tomasz Luczak
10188 \end_layout
10189
10190 \begin_layout Standard
10191 The \SpecialChar LyX
10192  document classes 
10193 \emph on
10194 article (mwart)
10195 \emph default
10196
10197 \emph on
10198 report (mwrep)
10199 \emph default
10200  and 
10201 \emph on
10202 book
10203 \emph default
10204  
10205 \emph on
10206 (mwbk)
10207 \emph default
10208  correspond to the \SpecialChar LaTeX
10209  document classes 
10210 \family typewriter
10211 mwart.cls
10212 \family default
10213
10214 \family typewriter
10215 mwrep.cls
10216 \family default
10217  and 
10218 \family typewriter
10219 mwbk.cls
10220 \family default
10221 , resp.
10222  They are replacements for the standard document classes 
10223 \family typewriter
10224 article.cls
10225 \family default
10226
10227 \family typewriter
10228 report.cls
10229 \family default
10230  and 
10231 \family typewriter
10232 book.cls
10233 \family default
10234 , resp., and fit better to Polish typography conventions in a number of points.
10235  
10236 \end_layout
10237
10238 \begin_layout Standard
10239 Basic differences:
10240 \end_layout
10241
10242 \begin_layout Itemize
10243 Unnumbered titles (with star, e.
10244 \begin_inset space \thinspace{}
10245 \end_inset
10246
10247 g.
10248 \begin_inset space \space{}
10249 \end_inset
10250
10251
10252 \family sans
10253 Section*
10254 \family default
10255 ) are added into table of contents,
10256 \end_layout
10257
10258 \begin_layout Itemize
10259 Additional page styles:
10260 \end_layout
10261
10262 \begin_deeper
10263 \begin_layout Description
10264 uheadings header with separated lines,
10265 \end_layout
10266
10267 \begin_layout Description
10268 myheadings custom header, contents headers via commands: 
10269 \family typewriter
10270
10271 \backslash
10272 markright
10273 \family default
10274  and 
10275 \family typewriter
10276
10277 \backslash
10278 markboth
10279 \family default
10280 ,
10281 \end_layout
10282
10283 \begin_layout Description
10284 myuheadings custom header with separated lines,
10285 \end_layout
10286
10287 \begin_layout Description
10288 outer page number is placed on outer side of page
10289 \end_layout
10290
10291 \end_deeper
10292 \begin_layout Itemize
10293 Options 
10294 \end_layout
10295
10296 \begin_deeper
10297 \begin_layout Description
10298 rmheadings serif titles — default,
10299 \end_layout
10300
10301 \begin_layout Description
10302 sfheadings sansserif titles,
10303 \end_layout
10304
10305 \begin_layout Description
10306 authortitle on title page first placed is author next title — default,
10307 \end_layout
10308
10309 \begin_layout Description
10310 titleauthor on title page first placed is title next author,
10311 \end_layout
10312
10313 \begin_layout Description
10314 withmarginpar reserve place on page for margins.
10315 \end_layout
10316
10317 \end_deeper
10318 \begin_layout Section
10319 Paper
10320 \end_layout
10321
10322 \begin_layout Standard
10323 The document class 
10324 \family sans
10325 paper
10326 \family default
10327  provides an alternative to the standard 
10328 \family sans
10329 article
10330 \family default
10331  class.
10332  It provides similar functionality, but you might prefer this layout with
10333  sans serif sections, headings, and more.
10334 \end_layout
10335
10336 \begin_layout Section
10337 Rev\SpecialChar TeX
10338 4
10339 \end_layout
10340
10341 \begin_layout Standard
10342 by 
10343 \noun on
10344 Amir Karger
10345 \end_layout
10346
10347 \begin_layout Standard
10348 \begin_inset VSpace bigskip
10349 \end_inset
10350
10351
10352 \end_layout
10353
10354 \begin_layout Standard
10355 \noindent
10356 The 
10357 \family sans
10358 Revtex
10359 \begin_inset space ~
10360 \end_inset
10361
10362 4
10363 \family default
10364  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
10365  4.0 (the 
10366 \begin_inset Formula $\beta$
10367 \end_inset
10368
10369  release of May, 1999) class.
10370 \end_layout
10371
10372 \begin_layout Standard
10373 \SpecialChar LyX
10374  has a 
10375 \family sans
10376 Revtex
10377 \family default
10378  textclass, which works with Rev\SpecialChar TeX
10379  3.1.
10380  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
10381  2.09.
10382  That means that it doesn't interact very well with \SpecialChar LyX
10383 , which requires \SpecialChar LaTeX2e
10384 , although
10385  it has been kludged to work.
10386  Since Rev\SpecialChar TeX
10387  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
10388 , \SpecialChar LyX
10389  with the
10390  
10391 \family sans
10392 Rev\SpecialChar TeX
10393
10394 \begin_inset space ~
10395 \end_inset
10396
10397 4
10398 \family default
10399  textclass should also be pretty easy to use.
10400 \end_layout
10401
10402 \begin_layout Standard
10403 These documents are supposed to be used in 
10404 \emph on
10405 addition
10406 \emph default
10407  to the Rev\SpecialChar TeX
10408  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
10409  macros,
10410  and assume you'll know what to put in the preamble if necessary.
10411 \end_layout
10412
10413 \begin_layout Subsection
10414 Installation
10415 \end_layout
10416
10417 \begin_layout Standard
10418 All you need to do is install Rev\SpecialChar TeX
10419  4, as described in the package's README
10420  file.
10421  The package can be found at The Rev\SpecialChar TeX
10422  4 Web Site 
10423 \begin_inset Flex URL
10424 status collapsed
10425
10426 \begin_layout Plain Layout
10427
10428 http://publish.aps.org/revtex4/
10429 \end_layout
10430
10431 \end_inset
10432
10433 .
10434  Install it somewhere that \SpecialChar LaTeX
10435  can see it.
10436  Test it by trying to \SpecialChar LaTeX
10437  a short Rev\SpecialChar TeX
10438  4 document in some random directory (i.
10439 \begin_inset space \thinspace{}
10440 \end_inset
10441
10442 e.
10443 \begin_inset space \space{}
10444 \end_inset
10445
10446 not the directory where you installed the class file.) Then, if you reconfigure
10447  \SpecialChar LyX
10448 , it will find the class file and let you use the Rev\SpecialChar TeX
10449 4 textclass.
10450 \end_layout
10451
10452 \begin_layout Standard
10453 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
10454  4 document
10455  using 
10456 \family typewriter
10457 tex2lyx
10458 \family default
10459 , or to use the 
10460 \family sans
10461 Revtex
10462 \begin_inset space ~
10463 \end_inset
10464
10465 4
10466 \family default
10467  template, found in the templates directory.
10468 \end_layout
10469
10470 \begin_layout Subsection
10471 Preamble Matter
10472 \end_layout
10473
10474 \begin_layout Standard
10475 Optional arguments to 
10476 \family typewriter
10477
10478 \backslash
10479 documentclass
10480 \family default
10481 , like 
10482 \begin_inset Quotes eld
10483 \end_inset
10484
10485 preprint
10486 \begin_inset Quotes erd
10487 \end_inset
10488
10489  and 
10490 \begin_inset Quotes eld
10491 \end_inset
10492
10493 aps
10494 \begin_inset Quotes erd
10495 \end_inset
10496
10497 , go in the 
10498 \family sans
10499 Extra
10500 \begin_inset space ~
10501 \end_inset
10502
10503 Options
10504 \family default
10505  field in the 
10506 \family sans
10507 Document
10508 \begin_inset space ~
10509 \end_inset
10510
10511 Layout
10512 \family default
10513  dialog, as usual.
10514  Remember that in Rev\SpecialChar TeX
10515 , at least one optional argument is required! 
10516 \end_layout
10517
10518 \begin_layout Standard
10519 Other preamble matter, like 
10520 \family typewriter
10521
10522 \backslash
10523 draft
10524 \family default
10525  etc.
10526 \begin_inset space ~
10527 \end_inset
10528
10529 goes in the 
10530 \family sans
10531 \SpecialChar LaTeX
10532
10533 \begin_inset space ~
10534 \end_inset
10535
10536 Preamble
10537 \family default
10538  dialog, also as usual.
10539 \end_layout
10540
10541 \begin_layout Subsection
10542 Layouts
10543 \end_layout
10544
10545 \begin_layout Standard
10546 The layouts basically correspond to the commands in Rev\SpecialChar TeX
10547 4.0.
10548  For example, the Email layout corresponds to 
10549 \family typewriter
10550
10551 \backslash
10552 email{}
10553 \family default
10554 .
10555  Note that (at least as of Rev\SpecialChar TeX
10556  4.0 Beta), the 
10557 \family sans
10558 Address
10559 \family default
10560  and 
10561 \family sans
10562 Affiliation
10563 \family default
10564  layouts are exactly equivalent, so you shouldn't need to use both.
10565 \begin_inset Foot
10566 status collapsed
10567
10568 \begin_layout Plain Layout
10569 In case you're curious, both were included so that 
10570 \family typewriter
10571 tex2lyx
10572 \family default
10573  would be able to translate both 
10574 \family typewriter
10575
10576 \backslash
10577 address
10578 \family default
10579  and 
10580 \family typewriter
10581
10582 \backslash
10583 affiliation
10584 \family default
10585 .
10586 \end_layout
10587
10588 \end_inset
10589
10590
10591 \end_layout
10592
10593 \begin_layout Subsection
10594 Important Notes
10595 \end_layout
10596
10597 \begin_layout Standard
10598 There are a couple of important unique aspects of Rev\SpecialChar TeX
10599  4 which might cause
10600  bugs that will be even more confusing in \SpecialChar LyX
10601 .
10602 \end_layout
10603
10604 \begin_layout Standard
10605 In Rev\SpecialChar TeX
10606 , the 
10607 \family typewriter
10608
10609 \backslash
10610 thanks
10611 \family default
10612  command goes 
10613 \emph on
10614 outside
10615 \emph default
10616  the 
10617 \family typewriter
10618
10619 \backslash
10620 author
10621 \family default
10622  command.
10623  The \SpecialChar LyX
10624  equivalent is that there is a separate Thanks layout.
10625  Do 
10626 \emph on
10627 not
10628 \emph default
10629  write footnotes in the 
10630 \family sans
10631 Author
10632 \family default
10633  layout, or weird things may happen.
10634  See the Rev\SpecialChar TeX
10635  4 documentation for more details.
10636 \end_layout
10637
10638 \begin_layout Standard
10639 Also, the 
10640 \family sans
10641 Author
10642 \begin_inset space ~
10643 \end_inset
10644
10645 Email
10646 \family default
10647
10648 \family sans
10649 Author
10650 \begin_inset space ~
10651 \end_inset
10652
10653 URL
10654 \family default
10655 , and 
10656 \family sans
10657 Thanks
10658 \family default
10659  layouts must be placed 
10660 \emph on
10661 in between
10662 \emph default
10663  the 
10664 \family sans
10665 Author
10666 \family default
10667  layout and the corresponding 
10668 \family sans
10669 Address
10670 \family default
10671  (or equivalent 
10672 \family sans
10673 Affiliation
10674 \family default
10675 ) layout.
10676  If you put the 
10677 \family sans
10678 Thanks
10679 \family default
10680  after the 
10681 \family sans
10682 Address
10683 \family default
10684 , the \SpecialChar LaTeX
10685  won't compile.
10686 \end_layout
10687
10688 \begin_layout Subsection
10689 Drawbacks
10690 \end_layout
10691
10692 \begin_layout Standard
10693 The main problem with this layout is that you can't use the optional arguments
10694  to layouts like Email and Title.
10695  (The problem is not unique to this layout; you can't use optional arguments
10696  to the Section layouts either.) This means that after you export that file
10697  to \SpecialChar LaTeX
10698  (which you'll need to do eventually to send it in to APS), you'll need
10699  to edit the \SpecialChar LaTeX
10700  file with a text editor to add the optional arguments to set,
10701  e.
10702 \begin_inset space \thinspace{}
10703 \end_inset
10704
10705 g.
10706 \begin_inset space \space{}
10707 \end_inset
10708
10709 the running title for the page headers.
10710  Lacking these layouts makes the 
10711 \family typewriter
10712
10713 \backslash
10714 altaffiliation
10715 \family default
10716  (and the equivalent 
10717 \family typewriter
10718
10719 \backslash
10720 altaddress
10721 \family default
10722 ) useless, so the corresponding layouts don't exist, and will have to be
10723  added by hand.
10724 \begin_inset Foot
10725 status collapsed
10726
10727 \begin_layout Plain Layout
10728
10729 \emph on
10730 Note from JMarc:
10731 \emph default
10732  actually, \SpecialChar LyX
10733  1.3.0 supports some forms of optional arguments, but this layout
10734  has not been updated yet to take advantage of it.
10735 \end_layout
10736
10737 \end_inset
10738
10739  
10740 \end_layout
10741
10742 \begin_layout Section
10743 Springer Journals (
10744 \family sans
10745 svjour
10746 \family default
10747 )
10748 \end_layout
10749
10750 \begin_layout Standard
10751 by 
10752 \noun on
10753 Martin Vermeer
10754 \end_layout
10755
10756 \begin_layout Subsection
10757 Description
10758 \end_layout
10759
10760 \begin_layout Standard
10761 These are the layout files for some of the journal formats used by Springer
10762  Verlag and listed on 
10763 \begin_inset Flex URL
10764 status collapsed
10765
10766 \begin_layout Plain Layout
10767
10768 http://www.springer.de/author/tex/help-journals.html
10769 \end_layout
10770
10771 \end_inset
10772
10773 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
10774  now!).
10775  It is a modular system: the things common to all journals are implemented
10776  in 
10777 \family typewriter
10778 svjour.inc
10779 \family default
10780 , which journal-specific layout files (such as, e.
10781 \begin_inset space \thinspace{}
10782 \end_inset
10783
10784 g.
10785 \begin_inset space \space{}
10786 \end_inset
10787
10788
10789 \family typewriter
10790 svjog.layout
10791 \family default
10792  for Journal of Geodesy) can include.
10793 \end_layout
10794
10795 \begin_layout Standard
10796 This means that implementing support for any other Springer journal on this
10797  list is as simple as writing your own 
10798 \family typewriter
10799 sv
10800 \family default
10801 <myjournal>
10802 \family typewriter
10803 .layout
10804 \family default
10805  file following the outline given in 
10806 \family typewriter
10807 svjog.layout
10808 \family default
10809 .
10810  
10811 \end_layout
10812
10813 \begin_layout Standard
10814 It is reasonably well tested only for the Journal of Geodesy.
10815  
10816 \family typewriter
10817 svjour
10818 \family default
10819  and 
10820 \family typewriter
10821 svjog
10822 \family default
10823  come with the standard \SpecialChar LyX
10824  distribution.
10825  Install the relevant class file (downloaded from Springer) in a proper
10826  directory, reconfigure \SpecialChar LaTeX
10827  (in the te\SpecialChar TeX
10828  case by running 
10829 \family typewriter
10830 texhash
10831 \family default
10832 , as root if necessary — doesn't \SpecialChar LyX
10833  take care of this?), reconfigure \SpecialChar LyX
10834  and
10835  it should work.
10836 \end_layout
10837
10838 \begin_layout Subsection
10839 New styles
10840 \end_layout
10841
10842 \begin_layout Standard
10843 A large number of theorem-like styles — 
10844 \family sans
10845 Claim, Conjecture,
10846 \family default
10847  
10848 \family sans
10849 \SpecialChar ldots
10850 Theorem
10851 \family default
10852 .
10853 \end_layout
10854
10855 \begin_layout Standard
10856
10857 \family sans
10858 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
10859 _Title, Author_Running, Institute,
10860  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
10861 \family default
10862 .
10863  See the Springer class file documentation for details.
10864 \end_layout
10865
10866 \begin_layout Subsection
10867 Supported journals
10868 \end_layout
10869
10870 \begin_layout Itemize
10871
10872 \emph on
10873 Journal of Geodesy
10874 \emph default
10875
10876 \family typewriter
10877 svjog.layout
10878 \family default
10879  — Martin Vermeer
10880 \end_layout
10881
10882 \begin_layout Itemize
10883
10884 \emph on
10885 Probability Theory and Related Fields
10886 \emph default
10887
10888 \family typewriter
10889 svprobth.layout
10890 \family default
10891  — Jean-Marc Lasgouttes
10892 \end_layout
10893
10894 \begin_layout Standard
10895 Add your own, it isn't so hard!
10896 \end_layout
10897
10898 \begin_layout Subsection
10899 Credits
10900 \end_layout
10901
10902 \begin_layout Standard
10903 These files are partly based on the older 
10904 \family typewriter
10905 ejour2.layout
10906 \family default
10907 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
10908  2.09 style
10909  file from Springer.
10910  All this, and the 
10911 \family typewriter
10912 ejour2
10913 \family default
10914  layout, are now defunct.
10915  Jean-Marc Lasgouttes helped out big in making me find my way around the
10916  \SpecialChar LyX
10917  layout file mechanism.
10918 \end_layout
10919
10920 \begin_layout Subsection
10921 Bugs
10922 \end_layout
10923
10924 \begin_layout Standard
10925 Probably.
10926  But probably less than in the old hacked-\SpecialChar LaTeX
10927  
10928 \family typewriter
10929 ejour2
10930 \family default
10931 .
10932 \end_layout
10933
10934 \begin_layout Standard
10935 Limitations e.
10936 \begin_inset space \thinspace{}
10937 \end_inset
10938
10939 g.: does not display the number for theorem-like layouts, just #.
10940 \end_layout
10941
10942 \begin_layout Section
10943 Slides [aka 
10944 \noun on
10945 Sli\SpecialChar TeX
10946
10947 \noun default
10948 ]
10949 \begin_inset CommandInset label
10950 LatexCommand label
10951 name "sec:slitex"
10952
10953 \end_inset
10954
10955
10956 \end_layout
10957
10958 \begin_layout Standard
10959 by 
10960 \noun on
10961 John Weiss
10962 \noun default
10963  
10964 \end_layout
10965
10966 \begin_layout Subsection
10967 Introduction
10968 \end_layout
10969
10970 \begin_layout Standard
10971 This section describes how to use \SpecialChar LyX
10972  to make slides for overhead projectors.
10973  There are two document classes that can do this: the default slides class
10974  and the 
10975 \family sans
10976 Foil\SpecialChar TeX
10977
10978 \family default
10979  slides class.
10980  This section documents the former.
10981 \end_layout
10982
10983 \begin_layout Standard
10984 I'm going to say this again, nice and clear, so that there's no misunderstanding
10985 :
10986 \end_layout
10987
10988 \begin_layout Standard
10989 \begin_inset VSpace bigskip
10990 \end_inset
10991
10992
10993 \end_layout
10994
10995 \begin_layout Standard
10996 \align center
10997
10998 \size large
10999 This section documents the class 
11000 \begin_inset Quotes eld
11001 \end_inset
11002
11003
11004 \family sans
11005 slides (default)
11006 \family default
11007
11008 \begin_inset Quotes erd
11009 \end_inset
11010
11011  
11012 \emph on
11013 only.
11014 \end_layout
11015
11016 \begin_layout Standard
11017 \begin_inset VSpace bigskip
11018 \end_inset
11019
11020
11021 \end_layout
11022
11023 \begin_layout Standard
11024 If you're looking for the documentation for 
11025 \begin_inset Quotes eld
11026 \end_inset
11027
11028
11029 \family sans
11030 slides (Foil\SpecialChar TeX
11031 )
11032 \family default
11033
11034 \begin_inset Quotes erd
11035 \end_inset
11036
11037 , check out section
11038 \begin_inset space ~
11039 \end_inset
11040
11041
11042 \begin_inset CommandInset ref
11043 LatexCommand ref
11044 reference "sec:foiltex"
11045
11046 \end_inset
11047
11048 .
11049  The 
11050 \family sans
11051 foils
11052 \family default
11053  class [
11054 \begin_inset Quotes eld
11055 \end_inset
11056
11057
11058 \family sans
11059 slides (Foil\SpecialChar TeX
11060 )
11061 \family default
11062
11063 \begin_inset Quotes erd
11064 \end_inset
11065
11066 ] is actually somewhat better than the default 
11067 \family sans
11068 slides
11069 \family default
11070  class,
11071 \begin_inset Foot
11072 status collapsed
11073
11074 \begin_layout Plain Layout
11075 \SpecialChar ldots
11076 or so I've been told repeatedly by its advocates.
11077  Having never used it, I have no idea if this claim is true or not.
11078 \end_layout
11079
11080 \end_inset
11081
11082  which this section documents.
11083 \end_layout
11084
11085 \begin_layout Standard
11086 This class is the \SpecialChar LaTeX2e
11087  improvement of the old 
11088 \noun on
11089 Sli\SpecialChar TeX
11090
11091 \noun default
11092  package.
11093  Every \SpecialChar LaTeX2e
11094  distribution includes this class [which I'll just refer to as 
11095 \begin_inset Quotes eld
11096 \end_inset
11097
11098
11099 \family sans
11100 slides
11101 \family default
11102
11103 \begin_inset Quotes erd
11104 \end_inset
11105
11106  from now on], so you're bound to have it.
11107  As I noted earlier, there are other classes, such as 
11108 \family sans
11109 foils
11110 \family default
11111 , which also produce slides for overhead projectors and do a better job
11112  at it.
11113  However, there are some things which 
11114 \family sans
11115 slides
11116 \family default
11117  can do which the others can't, such as generate overlays.
11118  Read on to learn more!
11119 \end_layout
11120
11121 \begin_layout Subsection
11122 Getting Started
11123 \begin_inset CommandInset label
11124 LatexCommand label
11125 name "sec:slidesetup"
11126
11127 \end_inset
11128
11129
11130 \end_layout
11131
11132 \begin_layout Standard
11133 Obviously, to use this document class, you need to select 
11134 \begin_inset Quotes eld
11135 \end_inset
11136
11137
11138 \family sans
11139 slides (default)
11140 \family default
11141
11142 \begin_inset Quotes erd
11143 \end_inset
11144
11145  from the class list in the 
11146 \family sans
11147 Document\SpecialChar menuseparator
11148 Settings
11149 \family default
11150  dialog.
11151  There are some other special things you should know about this class:
11152 \end_layout
11153
11154 \begin_layout Itemize
11155 Don't bother changing the options 
11156 \family sans
11157 Sides and Columns
11158 \family default
11159 .
11160  They're not supported by the 
11161 \family sans
11162 slides
11163 \family default
11164  class, anyways.
11165 \end_layout
11166
11167 \begin_layout Itemize
11168 The option 
11169 \family sans
11170 Page
11171 \begin_inset space ~
11172 \end_inset
11173
11174 style
11175 \family default
11176  behaves a bit differently for this class.
11177  The possible choices and what they do are as follows:
11178 \end_layout
11179
11180 \begin_deeper
11181 \begin_layout Description
11182
11183 \family sans
11184 plain
11185 \family default
11186  The final output contains page numbers in the lower right corner.
11187 \end_layout
11188
11189 \begin_layout Description
11190
11191 \family sans
11192 headings
11193 \family default
11194  Like 
11195 \family sans
11196 plain
11197 \family default
11198 , but also prints out any time markers you've put in.
11199  This is the default.
11200 \end_layout
11201
11202 \begin_layout Description
11203
11204 \family sans
11205 empty
11206 \family default
11207  The final output contains no page numbers, time markers, or alignment markers.
11208 \end_layout
11209
11210 \end_deeper
11211 \begin_layout Itemize
11212 The 
11213 \family sans
11214 slides
11215 \family default
11216  class has an extra option: 
11217 \family typewriter
11218 clock
11219 \family default
11220 .
11221  To use it, put 
11222 \begin_inset Quotes eld
11223 \end_inset
11224
11225
11226 \family typewriter
11227 clock
11228 \family default
11229
11230 \begin_inset Quotes erd
11231 \end_inset
11232
11233  in the extra class options.
11234 \end_layout
11235
11236 \begin_deeper
11237 \begin_layout Standard
11238 Using this options allows you to add time markers to 
11239 \family sans
11240 Note
11241 \family default
11242 s.
11243  See section
11244 \begin_inset space ~
11245 \end_inset
11246
11247
11248 \begin_inset CommandInset ref
11249 LatexCommand ref
11250 reference "sec:slideNote"
11251
11252 \end_inset
11253
11254  for more details.
11255 \end_layout
11256
11257 \end_deeper
11258 \begin_layout Standard
11259 You can also use the template file 
11260 \begin_inset Quotes eld
11261 \end_inset
11262
11263
11264 \family typewriter
11265 slides.lyx
11266 \family default
11267
11268 \begin_inset Quotes erd
11269 \end_inset
11270
11271  to automatically set up a document to use the 
11272 \family sans
11273 slides
11274 \family default
11275  class [using 
11276 \family sans
11277 File\SpecialChar menuseparator
11278 New
11279 \begin_inset space ~
11280 \end_inset
11281
11282 from
11283 \begin_inset space ~
11284 \end_inset
11285
11286 Template
11287 \family default
11288  to open your new document].
11289  The template file also contains some examples of the special paragraph
11290  environments used by this class.
11291  I'll describe those next.
11292 \end_layout
11293
11294 \begin_layout Subsection
11295 Paragraph Environments
11296 \end_layout
11297
11298 \begin_layout Subsubsection
11299 Supported Environments
11300 \end_layout
11301
11302 \begin_layout Standard
11303 The first thing you'll notice when you start up a new 
11304 \family sans
11305 slides
11306 \family default
11307  document is the font size and type: it's the equivalent of the size 
11308 \begin_inset Quotes eld
11309 \end_inset
11310
11311
11312 \family sans
11313 Largest
11314 \family default
11315
11316 \begin_inset Quotes erd
11317 \end_inset
11318
11319  in the 
11320 \family sans
11321 Sans
11322 \begin_inset space ~
11323 \end_inset
11324
11325 Serif
11326 \family default
11327  font.
11328  This is also what's used in the output.
11329  Think of this as a 
11330 \begin_inset Quotes eld
11331 \end_inset
11332
11333 visual cue
11334 \begin_inset Quotes erd
11335 \end_inset
11336
11337  to remind you that this is a slide.
11338  Your final slides will use a larger font; ergo, you'll have less space.
11339  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
11340 \end_layout
11341
11342 \begin_layout Standard
11343 The next thing that becomes obvious is the changes to the paragraph environment
11344  pull-down box [at the far-left end of the toolbar].
11345  Most of the paragraph environments you're used to seeing are missing.
11346  There are also five new ones.
11347  That's because the 
11348 \family sans
11349 slides
11350 \family default
11351  class itself only supports certain paragraph environments:
11352 \end_layout
11353
11354 \begin_layout Itemize
11355
11356 \family sans
11357 Standard
11358 \end_layout
11359
11360 \begin_layout Itemize
11361
11362 \family sans
11363 Itemize
11364 \end_layout
11365
11366 \begin_layout Itemize
11367
11368 \family sans
11369 Enumerate
11370 \end_layout
11371
11372 \begin_layout Itemize
11373
11374 \family sans
11375 Description
11376 \end_layout
11377
11378 \begin_layout Itemize
11379
11380 \family sans
11381 List
11382 \end_layout
11383
11384 \begin_layout Itemize
11385
11386 \family sans
11387 Quotation
11388 \end_layout
11389
11390 \begin_layout Itemize
11391
11392 \family sans
11393 Quote
11394 \end_layout
11395
11396 \begin_layout Itemize
11397
11398 \family sans
11399 Verse
11400 \end_layout
11401
11402 \begin_layout Itemize
11403
11404 \family sans
11405 Caption
11406 \end_layout
11407
11408 \begin_layout Itemize
11409
11410 \family sans
11411 \SpecialChar LyX
11412 -Code
11413 \end_layout
11414
11415 \begin_layout Itemize
11416
11417 \family sans
11418 Comment
11419 \end_layout
11420
11421 \begin_layout Standard
11422 All of the other standard environments, including the section-heading environmen
11423 ts, aren't used in the 
11424 \family sans
11425 slides
11426 \family default
11427  class.
11428 \end_layout
11429
11430 \begin_layout Standard
11431 On the other hand, you'll notice the following new environments:
11432 \end_layout
11433
11434 \begin_layout Itemize
11435
11436 \family sans
11437 Slide
11438 \end_layout
11439
11440 \begin_layout Itemize
11441
11442 \family sans
11443 Overlay
11444 \end_layout
11445
11446 \begin_layout Itemize
11447
11448 \family sans
11449 Note
11450 \end_layout
11451
11452 \begin_layout Itemize
11453
11454 \family sans
11455 InvisibleText
11456 \end_layout
11457
11458 \begin_layout Itemize
11459
11460 \family sans
11461 VisibleText
11462 \end_layout
11463
11464 \begin_layout Standard
11465 These five are kind of quirky, due to a 
11466 \begin_inset Quotes eld
11467 \end_inset
11468
11469 feature
11470 \begin_inset Quotes erd
11471 \end_inset
11472
11473  in \SpecialChar LyX
11474 .
11475  You see, \SpecialChar LyX
11476  doesn't permit you to nest any other paragraph environment into
11477  an empty environment.
11478  Now, that's fine and dandy, but it means that you wouldn't be able to start
11479  a slide with anything except plain text.
11480  To deal with this, I've performed a little 
11481 \begin_inset Quotes eld
11482 \end_inset
11483
11484 \SpecialChar LaTeX
11485  magic.
11486 \begin_inset Quotes erd
11487 \end_inset
11488
11489  
11490 \end_layout
11491
11492 \begin_layout Subsubsection
11493 Quirks of the New Environments
11494 \begin_inset CommandInset label
11495 LatexCommand label
11496 name "sec:slideQuirk"
11497
11498 \end_inset
11499
11500
11501 \end_layout
11502
11503 \begin_layout Standard
11504 All five of the new paragraph environments are somewhat quirky due to inherent
11505  limitiations in the current version of \SpecialChar LyX
11506 .
11507  As I just mentioned, \SpecialChar LyX
11508  forbids environments that begin with another environment.
11509  To get around this, the 
11510 \family sans
11511 Slide
11512 \family default
11513  environment isn't a paragraph environment as described in the 
11514 \emph on
11515 User's Guide
11516 \emph default
11517 .
11518  
11519 \end_layout
11520
11521 \begin_layout Standard
11522 You should consider 
11523 \family sans
11524 Slide
11525 \family default
11526
11527 \family sans
11528 Overlay
11529 \family default
11530 , and 
11531 \family sans
11532 Note
11533 \family default
11534  to be 
11535 \begin_inset Quotes eld
11536 \end_inset
11537
11538 pseudo-environments.
11539 \begin_inset Quotes erd
11540 \end_inset
11541
11542  They look like a section heading or a 
11543 \begin_inset Quotes eld
11544 \end_inset
11545
11546
11547 \family sans
11548 Caption
11549 \family default
11550 ,
11551 \begin_inset Quotes erd
11552 \end_inset
11553
11554  but really begin a [and, if necessary, end the previous] paragraph environment.
11555  Likewise, treat 
11556 \family sans
11557 InvisibleText
11558 \family default
11559  and 
11560 \family sans
11561 VisibleText
11562 \family default
11563  as 
11564 \begin_inset Quotes eld
11565 \end_inset
11566
11567 pseudo-commands.
11568 \begin_inset Quotes erd
11569 \end_inset
11570
11571  These two perform some action.
11572 \end_layout
11573
11574 \begin_layout Standard
11575 A common feature of all five environments, 
11576 \family sans
11577 Slide
11578 \family default
11579
11580 \family sans
11581 Overlay
11582 \family default
11583
11584 \family sans
11585 Note
11586 \family default
11587
11588 \family sans
11589 InvisibleText
11590 \family default
11591  and 
11592 \family sans
11593 VisibleText
11594 \family default
11595 , is a rather long-ish label.
11596  The text following this label — ordinarily the contents of the paragraph
11597  environment — is utterly irrelevant for 
11598 \family sans
11599 Slide
11600 \family default
11601
11602 \family sans
11603 Overlay
11604 \family default
11605
11606 \family sans
11607 Note
11608 \family default
11609
11610 \family sans
11611 InvisibleText
11612 \family default
11613  and 
11614 \family sans
11615 VisibleText
11616 \family default
11617 .
11618  \SpecialChar LyX
11619  completely ignores it.
11620  In fact, you can leave these five environments completely empty.
11621  
11622 \end_layout
11623
11624 \begin_layout Standard
11625 While you don't 
11626 \emph on
11627 have
11628 \emph default
11629  to put any text after the rather long-ish label, you might want to.
11630  This could be a short description of the contents of the 
11631 \family sans
11632 Slide
11633 \family default
11634 , for example.
11635  In that case, enter your descriptive comment and hit 
11636 \family sans
11637 Return
11638 \family default
11639  as you normally would.
11640 \end_layout
11641
11642 \begin_layout Standard
11643 If, on the other hand, you don't want to enter any descriptive text, you'll
11644  hit another \SpecialChar LyX
11645  quirk.
11646  \SpecialChar LyX
11647 , like nature, abhors a vacuum, and will not let you start a new paragraph
11648  environment until you put something in the old one.
11649  So, do this:
11650 \end_layout
11651
11652 \begin_layout Itemize
11653 Start entering the text that will 
11654 \emph on
11655 follow
11656 \emph default
11657  the new 
11658 \family sans
11659 Slide
11660 \family default
11661
11662 \family sans
11663 Overlay
11664 \family default
11665
11666 \family sans
11667 Note
11668 \family default
11669
11670 \family sans
11671 InvisibleText
11672 \family default
11673  or 
11674 \family sans
11675 VisibleText
11676 \family default
11677 .
11678  
11679 \end_layout
11680
11681 \begin_layout Itemize
11682 Now move to the beginning of that paragraph.
11683  
11684 \end_layout
11685
11686 \begin_layout Itemize
11687 Next, hit 
11688 \family sans
11689 Return
11690 \family default
11691 .
11692  
11693 \end_layout
11694
11695 \begin_layout Itemize
11696 Finally, change this new, empty paragraph to a 
11697 \family sans
11698 Slide
11699 \family default
11700
11701 \family sans
11702 Overlay
11703 \family default
11704
11705 \family sans
11706 Note
11707 \family default
11708
11709 \family sans
11710 InvisibleText
11711 \family default
11712  or 
11713 \family sans
11714 VisibleText
11715 \family default
11716 .
11717  
11718 \end_layout
11719
11720 \begin_layout Standard
11721 Some future version of \SpecialChar LyX
11722  will, hopefully, resolve this quirkiness\SpecialChar ldots
11723
11724 \end_layout
11725
11726 \begin_layout Subsection
11727 Making a Presentation with 
11728 \family sans
11729 Slide
11730 \family default
11731
11732 \family sans
11733 Overlay
11734 \family default
11735  and 
11736 \family sans
11737 Note
11738 \end_layout
11739
11740 \begin_layout Subsubsection
11741 Using the 
11742 \family sans
11743 Slide
11744 \family default
11745  Environment
11746 \end_layout
11747
11748 \begin_layout Standard
11749 If you're expecting this section to teach you how to actually make a presentatio
11750 n, you'll be sorely disappointed.
11751  Naturally, I'll describe all of the ways the 
11752 \family sans
11753 slides
11754 \family default
11755  class can assist you in preparing the materials for a presentation.
11756  Filling in the contents, however, is up to you.
11757  [Then again, that 
11758 \emph on
11759 is
11760 \emph default
11761  the \SpecialChar LyX
11762  philosophy.]
11763 \end_layout
11764
11765 \begin_layout Standard
11766 Choosing the 
11767 \family sans
11768 Slide
11769 \family default
11770  environment [in the manner described in section
11771 \begin_inset space ~
11772 \end_inset
11773
11774
11775 \begin_inset CommandInset ref
11776 LatexCommand ref
11777 reference "sec:slideQuirk"
11778
11779 \end_inset
11780
11781 ] tells \SpecialChar LyX
11782  to begin a new slide [duh].
11783  The label for this environment/
11784 \begin_inset Quotes erd
11785 \end_inset
11786
11787 pseudo-command
11788 \begin_inset Quotes erd
11789 \end_inset
11790
11791  is an 
11792 \begin_inset Quotes eld
11793 \end_inset
11794
11795 ASCII line,
11796 \begin_inset Quotes erd
11797 \end_inset
11798
11799  in cool blue, followed by the label, 
11800 \begin_inset Quotes eld
11801 \end_inset
11802
11803 NewSlide:
11804 \begin_inset Quotes erd
11805 \end_inset
11806
11807 .
11808  Any text or paragraph environments that follow this one go on the new slide.
11809  It's that simple.
11810 \end_layout
11811
11812 \begin_layout Standard
11813 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
11814
11815  (this can be specified in the 
11816 \family sans
11817 Paragraph Layout
11818 \family default
11819  dialog).
11820  In fact, you'll want to, once you finish entering the contents of one slide.
11821  If you've entered more text than can physically fit on a slide, the extra
11822  overflows onto a new slide.
11823  I don't recommend doing this, however, since the overflow slide won't have
11824  any page number on it.
11825  Furthermore, it may interfere with any 
11826 \family sans
11827 Overlay
11828 \family default
11829  you've made to accompany the oversized 
11830 \family sans
11831 Slide
11832 \family default
11833 .
11834 \end_layout
11835
11836 \begin_layout Standard
11837 The 
11838 \family sans
11839 Overlay
11840 \family default
11841  and 
11842 \family sans
11843 Note
11844 \family default
11845  environments work the same way as the 
11846 \family sans
11847 Slide
11848 \family default
11849  environment.
11850  They both create an 
11851 \begin_inset Quotes eld
11852 \end_inset
11853
11854 ASCII line
11855 \begin_inset Quotes erd
11856 \end_inset
11857
11858  followed by a label [
11859 \begin_inset Quotes eld
11860 \end_inset
11861
11862 NewOverlay:
11863 \begin_inset Quotes erd
11864 \end_inset
11865
11866  and 
11867 \begin_inset Quotes eld
11868 \end_inset
11869
11870 NewNote:
11871 \begin_inset Quotes erd
11872 \end_inset
11873
11874 , respectively].
11875  The color is a stunning magenta instead of blue, and the 
11876 \begin_inset Quotes eld
11877 \end_inset
11878
11879 ASCII line
11880 \begin_inset Quotes erd
11881 \end_inset
11882
11883  will look different, in style and in length.
11884  The label fonts of all three also differ from one another.
11885 \end_layout
11886
11887 \begin_layout Standard
11888 As with a 
11889 \family sans
11890 Slide
11891 \family default
11892 , if the contents of a 
11893 \family sans
11894 Note
11895 \family default
11896  or 
11897 \family sans
11898 Overlay
11899 \family default
11900  exceed the physical size of a slide or sheet of paper, the extra will overflow
11901  onto a new sheet.
11902  Again, you should avoid this.
11903  It defeats the whole purpose of 
11904 \family sans
11905 Note
11906 \family default
11907 s and 
11908 \family sans
11909 Overlay
11910 \family default
11911 s.
11912 \end_layout
11913
11914 \begin_layout Subsubsection
11915 Using 
11916 \family sans
11917 Overlay
11918 \family default
11919  with 
11920 \family sans
11921 Slide
11922 \end_layout
11923
11924 \begin_layout Standard
11925 The idea behind an 
11926 \family sans
11927 Overlay
11928 \family default
11929  is a slide that sits atop another slide.
11930  Perhaps you wish to discuss a figure on the main 
11931 \family sans
11932 Slide
11933 \family default
11934  before displaying the text associated with it.
11935  One way to accomplish this is tape a flap of dark paper over the part of
11936  the 
11937 \family sans
11938 Slide
11939 \family default
11940  you want to display later.
11941  This method fails, however, if you wish to overlap one graph with another,
11942  for example.
11943  You would then have to fumble while speaking to align the two separate,
11944  overlapping 
11945 \family sans
11946 Slide
11947 \family default
11948 s to align the two graphs.
11949  The use of an 
11950 \family sans
11951 Overlay
11952 \family default
11953  environment in both cases makes life much easier.
11954 \end_layout
11955
11956 \begin_layout Standard
11957 Each 
11958 \family sans
11959 Overlay
11960 \family default
11961  receives the page number of its 
11962 \begin_inset Quotes eld
11963 \end_inset
11964
11965 parent
11966 \begin_inset Quotes erd
11967 \end_inset
11968
11969  
11970 \family sans
11971 Slide
11972 \family default
11973 , appended by 
11974 \begin_inset Quotes eld
11975 \end_inset
11976
11977
11978 \family typewriter
11979 -a
11980 \family default
11981
11982 \begin_inset Quotes erd
11983 \end_inset
11984
11985 .
11986 \begin_inset Foot
11987 status collapsed
11988
11989 \begin_layout Plain Layout
11990 Presumably, mutliple 
11991 \family sans
11992 Overlay
11993 \family default
11994 s would have 
11995 \begin_inset Quotes eld
11996 \end_inset
11997
11998
11999 \family typewriter
12000 -a
12001 \family default
12002
12003 \begin_inset Quotes erd
12004 \end_inset
12005
12006
12007 \begin_inset Quotes eld
12008 \end_inset
12009
12010
12011 \family typewriter
12012 -b
12013 \family default
12014
12015 \begin_inset Quotes erd
12016 \end_inset
12017
12018
12019 \begin_inset Quotes eld
12020 \end_inset
12021
12022
12023 \family typewriter
12024 -c
12025 \family default
12026
12027 \begin_inset Quotes erd
12028 \end_inset
12029
12030 , etc.
12031 \begin_inset space ~
12032 \end_inset
12033
12034 appended to the page number of the parent 
12035 \family sans
12036 Slide
12037 \family default
12038 .
12039  
12040 \end_layout
12041
12042 \end_inset
12043
12044  Clearly, you want the contents of both the 
12045 \family sans
12046 Slide
12047 \family default
12048  and the 
12049 \family sans
12050 Overlay
12051 \family default
12052  to each fit on a single physical slide! You should probably consider an
12053  
12054 \family sans
12055 Overlay
12056 \family default
12057  as 
12058 \begin_inset Quotes eld
12059 \end_inset
12060
12061 part of
12062 \begin_inset Quotes erd
12063 \end_inset
12064
12065  a 
12066 \family sans
12067 Slide
12068 \family default
12069 .
12070  Indeed, the \SpecialChar LyX
12071  
12072 \family sans
12073 slides
12074 \family default
12075  class provides a visual cue for this: the label at the start of an 
12076 \family sans
12077 Overlay
12078 \family default
12079  is shorter than that at the start of a 
12080 \family sans
12081 Slide
12082 \family default
12083 .
12084  Lastly, when you generate printable output, you'll find alignment markers
12085  in all four corners of both the 
12086 \family sans
12087 Overlay
12088 \family default
12089  page and its parent 
12090 \family sans
12091 Slide
12092 \family default
12093 .
12094  These will assist you in lining up the two physical slides.
12095 \end_layout
12096
12097 \begin_layout Standard
12098 The major problem in overlaying two slides is aligning the contents of the
12099  two transparencies.
12100  How much space should you leave for that graph on the second slide? Worse
12101  still, what if you want a graph and a sentence on second slide, but there
12102  is text on the main transparency that goes in between them? You could try
12103  and insert vertical space of the right size.
12104  The better way is to use 
12105 \family sans
12106 InvisibleText
12107 \family default
12108  and 
12109 \family sans
12110 VisibleText
12111 \family default
12112 .
12113 \end_layout
12114
12115 \begin_layout Standard
12116 As their names imply, 
12117 \family sans
12118 InvisibleText
12119 \family default
12120  and 
12121 \family sans
12122 VisibleText
12123 \family default
12124  are two command-like paragraph environments that make all subsequent text
12125  invisible and visible, respectively.
12126  Note from section
12127 \begin_inset space ~
12128 \end_inset
12129
12130
12131 \begin_inset CommandInset ref
12132 LatexCommand ref
12133 reference "sec:slideQuirk"
12134
12135 \end_inset
12136
12137  that you don't place anything 
12138 \emph on
12139 into
12140 \emph default
12141  these two environments, however.
12142  When you create an 
12143 \family sans
12144 InvisibleText
12145 \family default
12146 , it inserts a centered, sky-blue label into the page reading 
12147 \begin_inset Quotes eld
12148 \end_inset
12149
12150 <Invisible Text Follows>
12151 \begin_inset Quotes erd
12152 \end_inset
12153
12154 .
12155  For paragraphs following this label, the parts of the 
12156 \family sans
12157 Slide
12158 \family default
12159  [or 
12160 \family sans
12161 Overlay
12162 \family default
12163 ; it doesn't matter which] where they would be contain instead blank space.
12164  
12165 \end_layout
12166
12167 \begin_layout Standard
12168 For 
12169 \family sans
12170 VisibleText
12171 \family default
12172 , the corresponding centered label is 
12173 \begin_inset Quotes eld
12174 \end_inset
12175
12176 <Visible Text Follows>
12177 \begin_inset Quotes erd
12178 \end_inset
12179
12180  in blazing green.
12181  Paragraphs following this label behave normally.
12182  Note that the beginning of a new 
12183 \family sans
12184 Slide
12185 \family default
12186
12187 \family sans
12188 Overlay
12189 \family default
12190 , or 
12191 \family sans
12192 Note
12193 \family default
12194  automatically shuts off an 
12195 \family sans
12196 InvisibleText
12197 \family default
12198 .
12199  It's therefore not necessary to use 
12200 \family sans
12201 VisibleText
12202 \family default
12203  at the end of a 
12204 \family sans
12205 Slide
12206 \family default
12207 .
12208 \end_layout
12209
12210 \begin_layout Standard
12211 By now, it should be obvious how to create overlay transparencies using
12212  the proper combination of 
12213 \family sans
12214 InvisibleText
12215 \family default
12216  and 
12217 \family sans
12218 VisibleText
12219 \family default
12220  on a 
12221 \family sans
12222 Slide
12223 \family default
12224  and 
12225 \family sans
12226 Overlay
12227 \family default
12228 :
12229 \end_layout
12230
12231 \begin_layout Enumerate
12232 Create a 
12233 \family sans
12234 Slide
12235 \family default
12236 , including everything that will appear on it, whether on the main slide
12237  or on the 
12238 \family sans
12239 Overlay
12240 \family default
12241 .
12242 \end_layout
12243
12244 \begin_layout Enumerate
12245 Before each figure or paragraph that will appear only on the 
12246 \family sans
12247 Overlay
12248 \family default
12249 , insert an 
12250 \family sans
12251 InvisibleText
12252 \family default
12253  environment.
12254  If necessary, insert a 
12255 \family sans
12256 VisibleText
12257 \family default
12258  environment after the 
12259 \family sans
12260 Overlay
12261 \family default
12262 -only text.
12263 \end_layout
12264
12265 \begin_layout Enumerate
12266 Start an 
12267 \family sans
12268 Overlay
12269 \family default
12270  immediately following the 
12271 \family sans
12272 Slide
12273 \family default
12274 .
12275 \end_layout
12276
12277 \begin_layout Enumerate
12278 Copy the contents of this 
12279 \family sans
12280 Slide
12281 \family default
12282  into the 
12283 \family sans
12284 Overlay
12285 \family default
12286 .
12287 \end_layout
12288
12289 \begin_layout Enumerate
12290 Within the 
12291 \family sans
12292 Overlay
12293 \family default
12294 , change all of the 
12295 \family sans
12296 InvisibleText
12297 \family default
12298  lines to 
12299 \family sans
12300 VisibleText
12301 \family default
12302  and vice-versa.
12303 \end_layout
12304
12305 \begin_layout Standard
12306 That's it.
12307  You've just made an 
12308 \family sans
12309 Overlay
12310 \family default
12311 .
12312 \end_layout
12313
12314 \begin_layout Standard
12315 There's one problem with the way I've designed the \SpecialChar LyX
12316  
12317 \family sans
12318 slides
12319 \family default
12320  class: you can't make text in the middle of a paragraph invisible, nor
12321  make text in the middle of an invisible paragraph visible again.
12322  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
12323  codes.
12324 \begin_inset Foot
12325 status collapsed
12326
12327 \begin_layout Plain Layout
12328 The commands of interest are: 
12329 \end_layout
12330
12331 \begin_layout Itemize
12332
12333 \family typewriter
12334 {
12335 \backslash
12336 invisible \SpecialChar ldots
12337  }
12338 \end_layout
12339
12340 \begin_layout Itemize
12341
12342 \family typewriter
12343 {
12344 \backslash
12345 visible \SpecialChar ldots
12346  }
12347 \end_layout
12348
12349 \begin_layout Plain Layout
12350 \SpecialChar ldots
12351 and need to be marked as \SpecialChar TeX
12352 .
12353  The text whose 
12354 \begin_inset Quotes eld
12355 \end_inset
12356
12357 visibility
12358 \begin_inset Quotes erd
12359 \end_inset
12360
12361  you wish to change goes in between the brackets [and after the 
12362 \family typewriter
12363
12364 \backslash
12365 invisible
12366 \family default
12367  or 
12368 \family typewriter
12369
12370 \backslash
12371 visible
12372 \family default
12373  command].
12374  If you don't know how to mark text as \SpecialChar TeX
12375 , see the appropriate section of
12376  the 
12377 \emph on
12378 User's Guide
12379 \emph default
12380 .
12381 \end_layout
12382
12383 \end_inset
12384
12385
12386 \end_layout
12387
12388 \begin_layout Subsubsection
12389 Using 
12390 \family sans
12391 Note
12392 \family default
12393  with 
12394 \family sans
12395 Slide
12396 \family default
12397
12398 \begin_inset CommandInset label
12399 LatexCommand label
12400 name "sec:slideNote"
12401
12402 \end_inset
12403
12404
12405 \end_layout
12406
12407 \begin_layout Standard
12408 Like an 
12409 \family sans
12410 Overlay
12411 \family default
12412 , a 
12413 \family sans
12414 Note
12415 \family default
12416  is associated with a 
12417 \begin_inset Quotes eld
12418 \end_inset
12419
12420 parent
12421 \begin_inset Quotes erd
12422 \end_inset
12423
12424  
12425 \family sans
12426 Slide
12427 \family default
12428 .
12429  Here, too, the \SpecialChar LyX
12430  
12431 \family sans
12432 slides
12433 \family default
12434  class provides visual cues.
12435  The label for a 
12436 \family sans
12437 Note
12438 \family default
12439  is shorter than that of a 
12440 \family sans
12441 Slide
12442 \family default
12443  [yet longer than that of an 
12444 \family sans
12445 Overlay
12446 \family default
12447 ] and, like the label of an 
12448 \family sans
12449 Overlay
12450 \family default
12451  is shockingly magenta.
12452  Additionally, the printed 
12453 \family sans
12454 Note
12455 \family default
12456  has the page number of its 
12457 \begin_inset Quotes eld
12458 \end_inset
12459
12460 parent
12461 \begin_inset Quotes erd
12462 \end_inset
12463
12464  
12465 \family sans
12466 Slide
12467 \family default
12468 , appended by 
12469 \begin_inset Quotes eld
12470 \end_inset
12471
12472
12473 \family typewriter
12474 -
12475 \family default
12476 1
12477 \begin_inset Quotes erd
12478 \end_inset
12479
12480
12481 \begin_inset Quotes eld
12482 \end_inset
12483
12484
12485 \family typewriter
12486 -
12487 \family default
12488 2
12489 \begin_inset Quotes erd
12490 \end_inset
12491
12492
12493 \begin_inset Quotes eld
12494 \end_inset
12495
12496
12497 \family typewriter
12498 -
12499 \family default
12500 3
12501 \begin_inset Quotes erd
12502 \end_inset
12503
12504 , etc.
12505  You can have multiple 
12506 \family sans
12507 Note
12508 \family default
12509 s associated with a single 
12510 \family sans
12511 Slide
12512 \family default
12513 , and, as with 
12514 \family sans
12515 Slide
12516 \family default
12517  and 
12518 \family sans
12519 Overlay
12520 \family default
12521 , you'll probably want to break up long 
12522 \family sans
12523 Note
12524 \family default
12525 s so that they fit on a single sheet of paper.
12526 \end_layout
12527
12528 \begin_layout Standard
12529 The purpose of a 
12530 \family sans
12531 Note
12532 \family default
12533  is obvious: it contains anything additional you might want to say about
12534  a 
12535 \family sans
12536 Slide
12537 \family default
12538 .
12539  It could also be used as a sheet of reminders for a particular 
12540 \family sans
12541 Slide
12542 \family default
12543 .
12544  In the case of the latter, you might want to make use of time markers.
12545  Currently, the \SpecialChar LyX
12546  
12547 \family sans
12548 slides
12549 \family default
12550  class has no 
12551 \begin_inset Quotes eld
12552 \end_inset
12553
12554 native
12555 \begin_inset Quotes erd
12556 \end_inset
12557
12558  support for time markers, a 
12559 \noun on
12560 Sli\SpecialChar TeX
12561
12562 \noun default
12563  feature.
12564  So, you'll have to resort to using the \SpecialChar LaTeX
12565  codes.
12566 \end_layout
12567
12568 \begin_layout Standard
12569 To use time markers, you'll need to specify the extra class option 
12570 \begin_inset Quotes eld
12571 \end_inset
12572
12573
12574 \family typewriter
12575 clock
12576 \family default
12577
12578 \begin_inset Quotes erd
12579 \end_inset
12580
12581  [see section
12582 \begin_inset space ~
12583 \end_inset
12584
12585
12586 \begin_inset CommandInset ref
12587 LatexCommand ref
12588 reference "sec:slidesetup"
12589
12590 \end_inset
12591
12592 ].
12593  This option turns on timing marks, which will appear in the lower-left-hand
12594  corner of every 
12595 \family sans
12596 Note
12597 \family default
12598  you generate.
12599  To set what appears in the time marker, you use the \SpecialChar LaTeX
12600  commands 
12601 \begin_inset Quotes eld
12602 \end_inset
12603
12604
12605 \family typewriter
12606
12607 \backslash
12608 settime{}
12609 \family default
12610
12611 \begin_inset Quotes erd
12612 \end_inset
12613
12614  and 
12615 \begin_inset Quotes eld
12616 \end_inset
12617
12618
12619 \family typewriter
12620
12621 \backslash
12622 addtime{}
12623 \family default
12624
12625 \begin_inset Quotes erd
12626 \end_inset
12627
12628 .
12629  The arguments of both commands are time measured in seconds.
12630  
12631 \begin_inset Quotes eld
12632 \end_inset
12633
12634
12635 \family typewriter
12636
12637 \backslash
12638 settime{}
12639 \family default
12640
12641 \begin_inset Quotes erd
12642 \end_inset
12643
12644  sets the time marker to a given time.
12645  
12646 \begin_inset Quotes eld
12647 \end_inset
12648
12649
12650 \family typewriter
12651
12652 \backslash
12653 addtime{}
12654 \family default
12655
12656 \begin_inset Quotes erd
12657 \end_inset
12658
12659  increments the time marker by the specified amount.
12660  Using time markers and 
12661 \family sans
12662 Note
12663 \family default
12664 s in this fashion, you can remind yourself how much time to spend on a particula
12665
12666 \family sans
12667 Slide
12668 \family default
12669 .
12670 \end_layout
12671
12672 \begin_layout Standard
12673 There's one last feature to describe.
12674  Clearly, you'd like to print out all of your 
12675 \family sans
12676 Slide
12677 \family default
12678 s and 
12679 \family sans
12680 Overlay
12681 \family default
12682 s on transparencies while printing all of your 
12683 \family sans
12684 Note
12685 \family default
12686 s on plain paper.
12687  However, a 
12688 \family sans
12689 Note
12690 \family default
12691  
12692 \emph on
12693 must
12694 \emph default
12695  follow the 
12696 \family sans
12697 Slide
12698 \family default
12699  with which it is associated.
12700  What's a person to do?
12701 \end_layout
12702
12703 \begin_layout Standard
12704 Luckily, there are two \SpecialChar LaTeX
12705  commands that allow you to select what to print
12706  out.
12707  Both must be placed into the preamble of your document.
12708  The command 
12709 \begin_inset Quotes eld
12710 \end_inset
12711
12712
12713 \family typewriter
12714
12715 \backslash
12716 onlyslides{
12717 \backslash
12718 slides}
12719 \family default
12720
12721 \begin_inset Quotes erd
12722 \end_inset
12723
12724  will cause the output to contain only the 
12725 \family sans
12726 Slide
12727 \family default
12728 s and 
12729 \family sans
12730 Overlay
12731 \family default
12732 s.
12733  Correspondingly, the command 
12734 \begin_inset Quotes eld
12735 \end_inset
12736
12737
12738 \family typewriter
12739
12740 \backslash
12741 onlynotes{
12742 \backslash
12743 notes}
12744 \family default
12745
12746 \begin_inset Quotes erd
12747 \end_inset
12748
12749  prevents the output of anything but 
12750 \family sans
12751 Note
12752 \family default
12753 s.
12754  I'd advise placing both commands in the preamble and initially comment
12755  both out.
12756  You can then preview your entire presentation as you write.
12757  When you're done writing, you can then uncomment one of the two to select
12758  what you want to print.
12759  I like to uncomment 
12760 \begin_inset Quotes eld
12761 \end_inset
12762
12763
12764 \family typewriter
12765
12766 \backslash
12767 onlyslides{
12768 \backslash
12769 slides}
12770 \family default
12771
12772 \begin_inset Quotes erd
12773 \end_inset
12774
12775  , print to a file with 
12776 \begin_inset Quotes eld
12777 \end_inset
12778
12779
12780 \family typewriter
12781 -slides
12782 \family default
12783
12784 \begin_inset Quotes erd
12785 \end_inset
12786
12787  in its name, comment it back out, then uncomment 
12788 \begin_inset Quotes eld
12789 \end_inset
12790
12791
12792 \family typewriter
12793
12794 \backslash
12795 onlynotes{
12796 \backslash
12797 notes}
12798 \family default
12799
12800 \begin_inset Quotes erd
12801 \end_inset
12802
12803  and print to a 
12804 \begin_inset Quotes eld
12805 \end_inset
12806
12807
12808 \family typewriter
12809 *-notes.ps
12810 \family default
12811
12812 \begin_inset Quotes erd
12813 \end_inset
12814
12815  file.
12816  I can then send either file to a printer, loading transparencies or plain
12817  paper as appropriate.
12818 \end_layout
12819
12820 \begin_layout Standard
12821 You can also provide other arguments to the 
12822 \begin_inset Quotes eld
12823 \end_inset
12824
12825
12826 \family typewriter
12827
12828 \backslash
12829 onlyslides{}
12830 \family default
12831
12832 \begin_inset Quotes erd
12833 \end_inset
12834
12835  and 
12836 \begin_inset Quotes eld
12837 \end_inset
12838
12839
12840 \family typewriter
12841
12842 \backslash
12843 onlynotes{}
12844 \family default
12845
12846 \begin_inset Quotes erd
12847 \end_inset
12848
12849  commands.
12850  See a good \SpecialChar LaTeX
12851  book for details.
12852 \end_layout
12853
12854 \begin_layout Subsection
12855 The 
12856 \family sans
12857 slides
12858 \family default
12859  Class Template File
12860 \end_layout
12861
12862 \begin_layout Standard
12863 I have also provided a template file, 
12864 \begin_inset Quotes eld
12865 \end_inset
12866
12867
12868 \family typewriter
12869 slides.lyx
12870 \family default
12871
12872 \begin_inset Quotes erd
12873 \end_inset
12874
12875 , with the 
12876 \family sans
12877 slides
12878 \family default
12879  class.
12880  To use it, begin your new presentation with 
12881 \family sans
12882 File\SpecialChar menuseparator
12883 New
12884 \begin_inset space ~
12885 \end_inset
12886
12887 from
12888 \begin_inset space ~
12889 \end_inset
12890
12891 Template
12892 \family default
12893 .
12894  Your new \SpecialChar LyX
12895  presentation file will contain an example 
12896 \family sans
12897 Slide
12898 \family default
12899  – 
12900 \family sans
12901 Overlay
12902 \family default
12903  – 
12904 \family sans
12905 Note
12906 \family default
12907  triplet.
12908  The 
12909 \family sans
12910 Slide
12911 \family default
12912  and 
12913 \family sans
12914 Overlay
12915 \family default
12916  additionally contain an example of the use of 
12917 \family sans
12918 InvisibleText
12919 \family default
12920  and 
12921 \family sans
12922 VisibleText
12923 \family default
12924 .
12925  Lastly, the preamble will contain:
12926 \end_layout
12927
12928 \begin_layout LyX-Code
12929 % Uncomment to print out only slides and overlays
12930 \end_layout
12931
12932 \begin_layout LyX-Code
12933 %
12934 \end_layout
12935
12936 \begin_layout LyX-Code
12937 %
12938 \backslash
12939 onlyslides{
12940 \backslash
12941 slides}
12942 \begin_inset Newline newline
12943 \end_inset
12944
12945  
12946 \end_layout
12947
12948 \begin_layout LyX-Code
12949 % Uncomment to print out only notes
12950 \end_layout
12951
12952 \begin_layout LyX-Code
12953 %
12954 \end_layout
12955
12956 \begin_layout LyX-Code
12957 %
12958 \backslash
12959 onlynotes{
12960 \backslash
12961 notes}
12962 \end_layout
12963
12964 \begin_layout Standard
12965 One final thing: I created this class to support the \SpecialChar LaTeX2e
12966  
12967 \begin_inset Quotes eld
12968 \end_inset
12969
12970
12971 \noun on
12972 Sli\SpecialChar TeX
12973
12974 \noun default
12975  emulation
12976 \begin_inset Quotes erd
12977 \end_inset
12978
12979  class, one of the built-in \SpecialChar LaTeX2e
12980  classes.
12981  Neither I nor the rest of the \SpecialChar LyX
12982  Team endorse or oppose the use of this built-in
12983  slide class.
12984  It's here if you want it or need it.
12985  There exist other \SpecialChar LaTeX2e
12986  classes for creating presentations, such as the 
12987 \family sans
12988 Foils
12989 \family default
12990  class [see section
12991 \begin_inset space ~
12992 \end_inset
12993
12994
12995 \begin_inset CommandInset ref
12996 LatexCommand ref
12997 reference "sec:foiltex"
12998
12999 \end_inset
13000
13001 ] or the 
13002 \begin_inset Quotes eld
13003 \end_inset
13004
13005
13006 \family typewriter
13007 seminar
13008 \family default
13009
13010 \begin_inset Quotes erd
13011 \end_inset
13012
13013  package [present on some \SpecialChar TeX
13014  distributions].
13015  The latter is not yet supported under \SpecialChar LyX
13016 .
13017 \begin_inset Foot
13018 status collapsed
13019
13020 \begin_layout Plain Layout
13021 Perhaps you can take on the task\SpecialChar ldots
13022
13023 \end_layout
13024
13025 \end_inset
13026
13027  I know nothing about these other classes.
13028  Try them out to see what sort of alternative they provide.
13029 \end_layout
13030
13031 \begin_layout Chapter
13032
13033 \change_inserted 893223064 1464851900
13034 Modules
13035 \end_layout
13036
13037 \begin_layout Standard
13038
13039 \change_inserted 893223064 1464851910
13040 This is a holder for prepared text.
13041 \end_layout
13042
13043 \begin_layout Chapter
13044
13045 \change_inserted 893223064 1464851939
13046 Page layout
13047 \end_layout
13048
13049 \begin_layout Standard
13050
13051 \change_inserted 893223064 1464851945
13052 This is a holder for prepared text.
13053 \end_layout
13054
13055 \begin_layout Section
13056 Special features
13057 \end_layout
13058
13059 \begin_layout Standard
13060 You can do everything with \SpecialChar LyX
13061  that you can do with \SpecialChar LaTeX
13062 .
13063  However, \SpecialChar LyX
13064  cannot support every \SpecialChar LaTeX
13065  feature directly.
13066  But you can always use \SpecialChar TeX
13067  Code.
13068  This chapter shows you some more special things you might want to use.
13069  For other special things you can do with figures, tables, floats, boxes
13070  and notes, have a look at the 
13071 \emph on
13072 Embedded
13073 \begin_inset space ~
13074 \end_inset
13075
13076 Objects
13077 \emph default
13078  manual.
13079 \end_layout
13080
13081 \begin_layout Section
13082 Fancy Headers and Footers
13083 \end_layout
13084
13085 \begin_layout Standard
13086 The default page layout is rather plain; for an 
13087 \begin_inset Flex Code
13088 status collapsed
13089
13090 \begin_layout Plain Layout
13091 article
13092 \end_layout
13093
13094 \end_inset
13095
13096  document class, all you get is a centered page number at the bottom of
13097  the page.
13098  This document uses KOMA-script's book class, so it appears to be a bit
13099  fancier.
13100  But to really put on a show, you need to set the document page style to
13101  
13102 \begin_inset Quotes eld
13103 \end_inset
13104
13105 fancy
13106 \begin_inset Quotes erd
13107 \end_inset
13108
13109 , as mentioned in the 
13110 \emph on
13111 User Guide
13112 \emph default
13113 .
13114  This section describes the \SpecialChar LaTeX
13115  code you need to insert in your \SpecialChar LaTeX
13116  preamble in
13117  order to get the desired effects.
13118 \end_layout
13119
13120 \begin_layout Standard
13121 For more information on fancy headers, see the 
13122 \begin_inset Flex Code
13123 status collapsed
13124
13125 \begin_layout Plain Layout
13126 fancyhdr
13127 \end_layout
13128
13129 \end_inset
13130
13131  package documentation.
13132  (
13133 \begin_inset Flex URL
13134 status collapsed
13135
13136 \begin_layout Plain Layout
13137
13138 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
13139 \end_layout
13140
13141 \end_inset
13142
13143 )
13144 \end_layout
13145
13146 \begin_layout Standard
13147 The page header is divided into three fields, not surprisingly labeled 
13148 \begin_inset Quotes eld
13149 \end_inset
13150
13151 left
13152 \begin_inset Quotes erd
13153 \end_inset
13154
13155
13156 \begin_inset Quotes eld
13157 \end_inset
13158
13159 center
13160 \begin_inset Quotes erd
13161 \end_inset
13162
13163 , and 
13164 \begin_inset Quotes eld
13165 \end_inset
13166
13167 right
13168 \begin_inset Quotes erd
13169 \end_inset
13170
13171 .
13172  The footer is also divided into these three fields.
13173  The \SpecialChar LaTeX
13174  commands to set these fields in the simplest manner are 
13175 \begin_inset Flex Code
13176 status collapsed
13177
13178 \begin_layout Plain Layout
13179
13180 \backslash
13181 lhead
13182 \end_layout
13183
13184 \end_inset
13185
13186
13187 \begin_inset Flex Code
13188 status collapsed
13189
13190 \begin_layout Plain Layout
13191
13192 \backslash
13193 chead
13194 \end_layout
13195
13196 \end_inset
13197
13198
13199 \begin_inset Flex Code
13200 status collapsed
13201
13202 \begin_layout Plain Layout
13203
13204 \backslash
13205 rhead
13206 \end_layout
13207
13208 \end_inset
13209
13210
13211 \begin_inset Flex Code
13212 status collapsed
13213
13214 \begin_layout Plain Layout
13215
13216 \backslash
13217 lfoot
13218 \end_layout
13219
13220 \end_inset
13221
13222 , etc.
13223  Suppose you wish to put your name in the upper left hand corner of each
13224  page.
13225  Simply insert the following command in the preamble: 
13226 \end_layout
13227
13228 \begin_layout Standard
13229
13230 \family typewriter
13231
13232 \backslash
13233 lhead{John Q.
13234  DocWriter}
13235 \end_layout
13236
13237 \begin_layout Standard
13238 You will now see your name in the upper left.
13239  If a field has a default entry that you would like to get rid of (often
13240  the page number appears in the central footer) simply include a command
13241  with a blank argument, e.
13242 \begin_inset space \thinspace{}
13243 \end_inset
13244
13245 g.:
13246 \end_layout
13247
13248 \begin_layout Standard
13249
13250 \family typewriter
13251
13252 \backslash
13253 cfoot{}
13254 \end_layout
13255
13256 \begin_layout Standard
13257 Let's get really fancy: lets put the section number with the word 
13258 \begin_inset Quotes eld
13259 \end_inset
13260
13261 Section
13262 \begin_inset Quotes erd
13263 \end_inset
13264
13265  (e.
13266 \begin_inset space \thinspace{}
13267 \end_inset
13268
13269 g.
13270 \begin_inset space \space{}
13271 \end_inset
13272
13273 Section 3) in the upper left, the page number (e.
13274 \begin_inset space \thinspace{}
13275 \end_inset
13276
13277 g.
13278 \begin_inset space \space{}
13279 \end_inset
13280
13281 Page 4) in the upper right, your name in the lower left, and the date in
13282  the lower right.
13283  The following commands should now appear in the preamble:
13284 \end_layout
13285
13286 \begin_layout Standard
13287
13288 \family typewriter
13289
13290 \backslash
13291 lhead{Section 
13292 \backslash
13293 thesection}
13294 \end_layout
13295
13296 \begin_layout Standard
13297
13298 \family typewriter
13299
13300 \backslash
13301 chead{}
13302 \end_layout
13303
13304 \begin_layout Standard
13305
13306 \family typewriter
13307
13308 \backslash
13309 rhead{Page 
13310 \backslash
13311 thepage}
13312 \end_layout
13313
13314 \begin_layout Standard
13315
13316 \family typewriter
13317
13318 \backslash
13319 lfoot{John Q.
13320  DocWriter}
13321 \end_layout
13322
13323 \begin_layout Standard
13324
13325 \family typewriter
13326
13327 \backslash
13328 cfoot{}
13329 \end_layout
13330
13331 \begin_layout Standard
13332
13333 \family typewriter
13334
13335 \backslash
13336 rfoot{
13337 \backslash
13338 today}
13339 \end_layout
13340
13341 \begin_layout Standard
13342 The commands 
13343 \begin_inset Flex Code
13344 status collapsed
13345
13346 \begin_layout Plain Layout
13347
13348 \backslash
13349 thesection
13350 \end_layout
13351
13352 \end_inset
13353
13354  and 
13355 \begin_inset Flex Code
13356 status collapsed
13357
13358 \begin_layout Plain Layout
13359
13360 \backslash
13361 thepage
13362 \end_layout
13363
13364 \end_inset
13365
13366  access \SpecialChar LaTeX
13367 's section and page counters, and so print out the current section
13368  and page numbers.
13369  
13370 \begin_inset Flex Code
13371 status collapsed
13372
13373 \begin_layout Plain Layout
13374
13375 \backslash
13376 today
13377 \end_layout
13378
13379 \end_inset
13380
13381  simply prints out today's date.
13382 \end_layout
13383
13384 \begin_layout Standard
13385 The thicknesses of the horizontal rules drawn beneath the header and above
13386  the footer can also be modified.
13387  If you don't want one of the rules, set its thickness to 0.
13388  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
13389  Use commands
13390 \family typewriter
13391  
13392 \family default
13393 like 
13394 \begin_inset Flex Code
13395 status collapsed
13396
13397 \begin_layout Plain Layout
13398
13399 \backslash
13400 renewcommand{
13401 \backslash
13402 headrulewidth}{0.4pt}
13403 \end_layout
13404
13405 \end_inset
13406
13407  and 
13408 \begin_inset Flex Code
13409 status collapsed
13410
13411 \begin_layout Plain Layout
13412
13413 \backslash
13414 renewcommand{
13415 \backslash
13416 footrulewidth}{0.4pt}
13417 \end_layout
13418
13419 \end_inset
13420
13421  to set the thicknesses.
13422 \end_layout
13423
13424 \begin_layout Standard
13425 You can switch the header/footer settings on and off for individual pages
13426  using commands like 
13427 \begin_inset Flex Code
13428 status collapsed
13429
13430 \begin_layout Plain Layout
13431
13432 \backslash
13433 thispagestyle{empty}
13434 \end_layout
13435
13436 \end_inset
13437
13438
13439 \begin_inset Flex Code
13440 status collapsed
13441
13442 \begin_layout Plain Layout
13443
13444 \backslash
13445 thispagestyle{plain}
13446 \end_layout
13447
13448 \end_inset
13449
13450 , and 
13451 \begin_inset Flex Code
13452 status collapsed
13453
13454 \begin_layout Plain Layout
13455
13456 \backslash
13457 thispagestyle{fancy}
13458 \end_layout
13459
13460 \end_inset
13461
13462 .
13463  Simply insert them in the text on the page you want changed and mark them
13464  as \SpecialChar TeX
13465  code.
13466  In fact, title pages are marked as plain by default, while following pages
13467  are marked fancy when using the global fancy setting.
13468 \end_layout
13469
13470 \begin_layout Standard
13471 As a final example, it is possible to include an image in the header or
13472  footer.
13473  Suppose you want to put a company logo in the upper lefthand corner.
13474  You might try something like
13475 \end_layout
13476
13477 \begin_layout Standard
13478
13479 \family typewriter
13480
13481 \backslash
13482 lhead{
13483 \backslash
13484 resizebox{1in}{!}{
13485 \backslash
13486 includegraphics{logo.eps}}}
13487 \end_layout
13488
13489 \begin_layout Standard
13490 \noindent
13491 (you may need to preface this with 
13492 \begin_inset Flex Code
13493 status collapsed
13494
13495 \begin_layout Plain Layout
13496 \noindent
13497
13498 \backslash
13499 usepackage{graphics}
13500 \end_layout
13501
13502 \end_inset
13503
13504  if you don't include graphics elsewhere in your document).
13505 \end_layout
13506
13507 \begin_layout Section
13508 Multiple Text Columns
13509 \end_layout
13510
13511 \begin_layout Standard
13512 This feature is independent of the option 
13513 \family sans
13514 Two-column document
13515 \family default
13516  in the document settings under 
13517 \family sans
13518 Text Layout
13519 \family default
13520 .
13521  If you want to have 2
13522 \begin_inset space ~
13523 \end_inset
13524
13525 columns for the whole document, it is recommended to use the 
13526 \family sans
13527 Two-column document
13528 \family default
13529  option.
13530  For all other cases use this feature.
13531 \end_layout
13532
13533 \begin_layout Standard
13534 To use multiple text columns in your document, you have to load the module
13535  
13536 \family sans
13537 Multiple Columns
13538 \family default
13539  (menu 
13540 \family sans
13541 Document\SpecialChar menuseparator
13542 Settings\SpecialChar menuseparator
13543 Modules
13544 \family default
13545 ) and must have the \SpecialChar LaTeX
13546 -package 
13547 \series bold
13548 multicol
13549 \series default
13550  installed.
13551 \end_layout
13552
13553 \begin_layout Standard
13554 Footnotes within multiple columns will be placed at the bottom of the page
13555  and not under each column.
13556  Within the different columns you can use everything, with the limitation
13557  that for floats you need to use the float option 
13558 \family sans
13559 Span columns
13560 \family default
13561 .
13562 \end_layout
13563
13564 \begin_layout Subsection
13565 Basics
13566 \end_layout
13567
13568 \begin_layout Standard
13569 If you want to have 2
13570 \begin_inset space ~
13571 \end_inset
13572
13573 columns in your text, insert a multicolumn inset via the menu 
13574 \family sans
13575 Insert\SpecialChar menuseparator
13576 Custom
13577 \begin_inset space ~
13578 \end_inset
13579
13580 Insets\SpecialChar menuseparator
13581 Multiple
13582 \begin_inset space ~
13583 \end_inset
13584
13585 Columns
13586 \family default
13587  where the columns should start.
13588  Write all text that should be printed in 2
13589 \begin_inset space ~
13590 \end_inset
13591
13592 columns into this inset.
13593 \end_layout
13594
13595 \begin_layout Standard
13596 Here is an example:
13597 \end_layout
13598
13599 \begin_layout Standard
13600 \noindent
13601 \begin_inset Flex Multiple Columns
13602 status open
13603
13604 \begin_layout Plain Layout
13605 \noindent
13606
13607 \series bold
13608 \size small
13609 The Adventure of the Empty House
13610 \series default
13611
13612 \begin_inset Newline newline
13613 \end_inset
13614
13615 by Sir Arthur Conan Doyle
13616 \end_layout
13617
13618 \begin_layout Plain Layout
13619
13620 \size small
13621 It was in the spring of the year 1894 that all London was interested, and
13622  the fashionable world dismayed, by the murder of the Honourable Ronald
13623  Adair under most unusual and inexplicable circumstances.
13624  The public has already learned those particulars of the crime which came
13625  out in the police investigation, but a good deal was suppressed upon that
13626  occasion, since the case for the prosecution was so overwhelmingly strong
13627  that it was not necessary to bring forward all the facts.
13628  Only now, at the end of nearly ten years, am I allowed to supply those
13629  missing links which make up the whole of that remarkable chain.
13630  The crime was of interest in itself, but that interest was as nothing to
13631  me compared to the inconceivable sequel, which afforded me the greatest
13632  shock and surprise of any event in my adventurous life.
13633  Even now, after this long interval, I find myself thrilling as I think
13634  of it, and feeling once more that sudden flood of joy, amazement, and increduli
13635 ty which utterly submerged my mind.
13636  Let me say to that public, which has shown some interest in those glimpses
13637  which I have occasionally given them of the thoughts and actions of a very
13638  remarkable man, that they are not to blame me if I have not shared my knowledge
13639  with them, for I should have considered it my first duty to do so, had
13640  I not been barred by a positive prohibition from his own lips, which was
13641  only withdrawn upon the third of last month.
13642 \end_layout
13643
13644 \end_inset
13645
13646
13647 \end_layout
13648
13649 \begin_layout Standard
13650 To get 3 or more columns, set the cursor into the multicolumn inset and
13651  use the menu 
13652 \family sans
13653 Insert\SpecialChar menuseparator
13654 Number
13655 \begin_inset space ~
13656 \end_inset
13657
13658 of
13659 \begin_inset space ~
13660 \end_inset
13661
13662 Columns
13663 \family default
13664 .
13665  The number of the desired columns is written into that inset (for 3
13666 \begin_inset space ~
13667 \end_inset
13668
13669 columns write 
13670 \begin_inset Quotes eld
13671 \end_inset
13672
13673 3
13674 \begin_inset Quotes erd
13675 \end_inset
13676
13677 ).
13678 \begin_inset Newline newline
13679 \end_inset
13680
13681 Here is an example with 3
13682 \begin_inset space ~
13683 \end_inset
13684
13685 columns:
13686 \end_layout
13687
13688 \begin_layout Standard
13689 \begin_inset Flex Multiple Columns
13690 status open
13691
13692 \begin_layout Plain Layout
13693
13694 \size footnotesize
13695 \begin_inset Argument 1
13696 status open
13697
13698 \begin_layout Plain Layout
13699 3
13700 \end_layout
13701
13702 \end_inset
13703
13704 It can be imagined that my close intimacy with Sherlock Holmes had interested
13705  me deeply in crime, and that after his disappearance I never failed to
13706  read with care the various problems which came before the public.
13707  And I even attempted, more than once, for my own private satisfaction,
13708  to employ his methods in their solution, though with indifferent success.
13709  There was none, however, which appealed to me like this tragedy of Ronald
13710  Adair.
13711  As I read the evidence at the inquest, which led up to a verdict of willful
13712  murder against some person or persons unknown, I realized more clearly
13713  than I had ever done the loss which the community had sustained by the
13714  death of Sherlock Holmes.
13715  There were points about this strange business which would, I was sure,
13716  have specially appealed to him, and the efforts of the police would have
13717  been supplemented, or more probably anticipated, by the trained observation
13718  and the alert mind of the first criminal agent in Europe.
13719  All day, as I drove upon my round, I turned over the case in my mind and
13720  found no explanation which appeared to me to be adequate.
13721  At the risk of telling a twice-told tale, I will recapitulate the facts
13722  as they were known to the public at the conclusion of the inquest.
13723 \end_layout
13724
13725 \end_inset
13726
13727
13728 \end_layout
13729
13730 \begin_layout Standard
13731 You can have up to 10
13732 \begin_inset space ~
13733 \end_inset
13734
13735 columns if you want to, but that might not be very pleasant for the readers
13736  of your document.
13737 \end_layout
13738
13739 \begin_layout Standard
13740 \begin_inset Newpage newpage
13741 \end_inset
13742
13743
13744 \end_layout
13745
13746 \begin_layout Subsection
13747 Columns inside Columns
13748 \end_layout
13749
13750 \begin_layout Standard
13751 You can also have columns inside columns:
13752 \end_layout
13753
13754 \begin_layout Standard
13755 \begin_inset Flex Multiple Columns
13756 status open
13757
13758 \begin_layout Plain Layout
13759
13760 \size footnotesize
13761 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
13762  at that time governor of one of the Australian colonies.
13763  Adair's mother had returned from Australia to undergo the operation for
13764  cataract, and she, her son Ronald, and her daughter Hilda were living together
13765  at 427 Park Lane.
13766 \end_layout
13767
13768 \begin_layout Plain Layout
13769 \begin_inset Flex Multiple Columns
13770 status open
13771
13772 \begin_layout Plain Layout
13773
13774 \size footnotesize
13775 The youth moved in the best society–had, so far as was known, no enemies
13776  and no particular vices.
13777  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
13778  had been broken off by mutual consent some months before, and there was
13779  no sign that it had left any very profound feeling behind it.
13780  For the rest {sic} the man's life moved in a narrow and conventional circle,
13781  for his habits were quiet and his nature unemotional.
13782  Yet it was upon this easy-going young aristocrat that death came, in most
13783  strange and unexpected form, between the hours of ten and eleven-twenty
13784  on the night of March 30, 1894.
13785 \end_layout
13786
13787 \end_inset
13788
13789
13790 \end_layout
13791
13792 \begin_layout Plain Layout
13793
13794 \size footnotesize
13795 Ronald Adair was fond of cards–playing continually, but never for such stakes
13796  as would hurt him.
13797  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
13798  It was shown that, after dinner on the day of his death, he had played
13799  a rubber of whist at the latter club.
13800  He had also played there in the afternoon.
13801
13802 \size default
13803  
13804 \size footnotesize
13805 The evidence of those who had played with him– Mr.
13806  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
13807  and that there was a fairly equal fall of the cards.
13808  Adair might have lost five pounds, but not more.
13809  His fortune was a considerable one, and such a loss could not in any way
13810  affect him.
13811  He had played nearly every day at one club or other, but he was a cautious
13812  player, and usually rose a winner.
13813  It came out in evidence that, in partnership with Colonel Moran, he had
13814  actually won as much as four hundred and twenty pounds in a sitting, some
13815  weeks before, from Godfrey Milner and Lord Balmoral.
13816  So much for his recent history as it came out at the inquest.
13817 \end_layout
13818
13819 \end_inset
13820
13821
13822 \end_layout
13823
13824 \begin_layout Subsection
13825 Advanced Examples
13826 \end_layout
13827
13828 \begin_layout Standard
13829 The examples in this section show some more special features of multiple
13830  columns.
13831 \end_layout
13832
13833 \begin_layout Standard
13834 For more features of multiple columns, have a look at the documentation
13835  of the \SpecialChar LaTeX
13836 -package 
13837 \series bold
13838 multicol
13839 \series default
13840
13841 \begin_inset CommandInset citation
13842 LatexCommand cite
13843 key "multicol"
13844
13845 \end_inset
13846
13847 .
13848 \end_layout
13849
13850 \begin_layout Subsubsection
13851 Preface
13852 \end_layout
13853
13854 \begin_layout Standard
13855 To add a preface text for multiple columns, set the cursor into the multicolumn
13856  inset and use the menu 
13857 \family sans
13858 Insert\SpecialChar menuseparator
13859 Preface
13860 \family default
13861 .
13862  Write your preface text into that inset.
13863 \begin_inset Newline newline
13864 \end_inset
13865
13866 This is an example with some preface text:
13867 \end_layout
13868
13869 \begin_layout Standard
13870 \begin_inset VSpace bigskip
13871 \end_inset
13872
13873
13874 \end_layout
13875
13876 \begin_layout Standard
13877 \begin_inset Flex Multiple Columns
13878 status open
13879
13880 \begin_layout Plain Layout
13881 \begin_inset Argument 2
13882 status open
13883
13884 \begin_layout Plain Layout
13885 And the story continues and continues and continues and continues\SpecialChar ldots
13886
13887 \end_layout
13888
13889 \end_inset
13890
13891
13892 \size small
13893 On the evening of the crime, he returned from the club exactly at ten.
13894  His mother and sister were out spending the evening with a relation.
13895  The servant deposed that she heard him enter the front room on the second
13896  floor, generally used as his sitting-room.
13897  She had lit a fire there, and as it smoked she had opened the window.
13898  No sound was heard from the room until eleven-twenty, the hour of the return
13899  of Lady Maynooth and her daughter.
13900  Desiring to say good-night, she attempted to enter her son's room.
13901  The door was locked on the inside, and no answer could be got to their
13902  cries and knocking.
13903  Help was obtained, and the door forced.
13904  The unfortunate young man was found lying near the table.
13905  His head had been horribly mutilated by an expanding revolver bullet, but
13906  no weapon of any sort was to be found in the room.
13907 \end_layout
13908
13909 \end_inset
13910
13911
13912 \end_layout
13913
13914 \begin_layout Standard
13915 You can also use a section heading as the preface if you use a section command
13916  as \SpecialChar TeX
13917  Code.
13918  For example the command
13919 \end_layout
13920
13921 \begin_layout Standard
13922
13923 \series bold
13924
13925 \backslash
13926 subsection{subsection title}
13927 \end_layout
13928
13929 \begin_layout Standard
13930 creates a subsection.
13931  In this example the preface is a subsubsection:
13932 \end_layout
13933
13934 \begin_layout Standard
13935 \begin_inset Flex Multiple Columns
13936 status open
13937
13938 \begin_layout Plain Layout
13939 \begin_inset Argument 2
13940 status open
13941
13942 \begin_layout Plain Layout
13943 \begin_inset ERT
13944 status collapsed
13945
13946 \begin_layout Plain Layout
13947
13948
13949 \backslash
13950 subsubsection{
13951 \end_layout
13952
13953 \end_inset
13954
13955 This is a subsubsection heading as a preface
13956 \begin_inset ERT
13957 status collapsed
13958
13959 \begin_layout Plain Layout
13960
13961 }
13962 \end_layout
13963
13964 \end_inset
13965
13966
13967 \end_layout
13968
13969 \end_inset
13970
13971
13972 \size small
13973 A minute examination of the circumstances served only to make the case more
13974  complex.
13975  In the first place, no reason could be given why the young man should have
13976  fastened the door upon the inside.
13977  There was the possibility that the murderer had done this, and had afterwards
13978  escaped by the window.
13979  The drop was at least twenty feet, however, and a bed of crocuses in full
13980  bloom lay beneath.
13981  Neither the flowers nor the earth showed any sign of having been disturbed,
13982  nor were there any marks upon the narrow strip of grass which separated
13983  the house from the road.
13984  Apparently, therefore, it was the young man himself who had fastened the
13985  door.
13986  But how did he come by his death? No one could have climbed up to the window
13987  without leaving traces.
13988  Suppose a man had fired through the window, he would indeed be a remarkable
13989  shot who could with a revolver inflict so deadly a wound.
13990  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
13991  a hundred yards of the house.
13992  No one had heard a shot.
13993 \end_layout
13994
13995 \end_inset
13996
13997
13998 \end_layout
13999
14000 \begin_layout Standard
14001 If there is less vertical space than 6
14002 \begin_inset space ~
14003 \end_inset
14004
14005 text lines is left on the page at the beginning of the multiple columns,
14006  a page break will be inserted before the multiple columns.
14007  Depending on the number of lines of the preface text, you might want to
14008  change this space.
14009  This is done by setting the cursor into the mulitcolumn inset behind the
14010  preface (if there is any) and using the menu 
14011 \family sans
14012 Insert\SpecialChar menuseparator
14013 Space
14014 \begin_inset space ~
14015 \end_inset
14016
14017 Before
14018 \begin_inset space ~
14019 \end_inset
14020
14021 Page
14022 \begin_inset space ~
14023 \end_inset
14024
14025 Break
14026 \family default
14027 .
14028  Insert into that inset the amount of space like e.
14029 \begin_inset space \thinspace{}
14030 \end_inset
14031
14032 g.
14033 \begin_inset space \space{}
14034 \end_inset
14035
14036
14037 \begin_inset Quotes eld
14038 \end_inset
14039
14040 5cm
14041 \begin_inset Quotes erd
14042 \end_inset
14043
14044 .
14045 \begin_inset Newline newline
14046 \end_inset
14047
14048 In this example the space is set to 7
14049 \begin_inset space ~
14050 \end_inset
14051
14052 text lines by using 
14053 \begin_inset Quotes eld
14054 \end_inset
14055
14056 7
14057 \backslash
14058 baselineskip
14059 \begin_inset Quotes erd
14060 \end_inset
14061
14062  (where the command 
14063 \series bold
14064
14065 \backslash
14066 baselineskip
14067 \series default
14068  needs to be inserted as \SpecialChar TeX
14069  code):
14070 \end_layout
14071
14072 \begin_layout Standard
14073 \begin_inset Flex Multiple Columns
14074 status open
14075
14076 \begin_layout Plain Layout
14077 \begin_inset Argument 3
14078 status open
14079
14080 \begin_layout Plain Layout
14081 7
14082 \begin_inset ERT
14083 status collapsed
14084
14085 \begin_layout Plain Layout
14086
14087
14088 \backslash
14089 baselineskip
14090 \end_layout
14091
14092 \end_inset
14093
14094
14095 \end_layout
14096
14097 \end_inset
14098
14099
14100 \size small
14101 On the evening of the crime, he returned from the club exactly at ten.
14102  His mother and sister were out spending the evening with a relation.
14103  The servant deposed that she heard him enter the front room on the second
14104  floor, generally used as his sitting-room.
14105  She had lit a fire there, and as it smoked she had opened the window.
14106  No sound was heard from the room until eleven-twenty, the hour of the return
14107  of Lady Maynooth and her daughter.
14108  Desiring to say good-night, she attempted to enter her son's room.
14109  The door was locked on the inside, and no answer could be got to their
14110  cries and knocking.
14111  Help was obtained, and the door forced.
14112  The unfortunate young man was found lying near the table.
14113  His head had been horribly mutilated by an expanding revolver bullet, but
14114  no weapon of any sort was to be found in the room.
14115 \end_layout
14116
14117 \end_inset
14118
14119
14120 \end_layout
14121
14122 \begin_layout Subsubsection
14123 Surrounding Space
14124 \end_layout
14125
14126 \begin_layout Standard
14127 The amount of space before and after multiple columns can be changed by
14128  changing the length 
14129 \series bold
14130
14131 \backslash
14132 multicolsep
14133 \series default
14134 .
14135  For example the command
14136 \end_layout
14137
14138 \begin_layout Standard
14139
14140 \series bold
14141
14142 \backslash
14143 setlength{
14144 \backslash
14145 multicolsep}{3cm}
14146 \end_layout
14147
14148 \begin_layout Standard
14149 in \SpecialChar TeX
14150  Code changes its value to 3
14151 \begin_inset space \thinspace{}
14152 \end_inset
14153
14154 cm.
14155  The change must be made before the multiple columns' start.
14156  The predefined value is 13
14157 \begin_inset space \thinspace{}
14158 \end_inset
14159
14160 pt.
14161 \end_layout
14162
14163 \begin_layout Standard
14164 For this example 
14165 \series bold
14166
14167 \backslash
14168 multicolsep
14169 \series default
14170  was set to 2.5
14171 \begin_inset space \thinspace{}
14172 \end_inset
14173
14174 cm:
14175 \end_layout
14176
14177 \begin_layout Standard
14178 \begin_inset ERT
14179 status open
14180
14181 \begin_layout Plain Layout
14182
14183
14184 \backslash
14185 setlength{
14186 \backslash
14187 multicolsep}{2.5cm}
14188 \end_layout
14189
14190 \end_inset
14191
14192
14193 \end_layout
14194
14195 \begin_layout Standard
14196 \begin_inset Flex Multiple Columns
14197 status open
14198
14199 \begin_layout Plain Layout
14200
14201 \size small
14202 All day I turned these facts over in my mind, endeavouring to hit upon some
14203  theory which could reconcile them all, and to find that line of least resistanc
14204 e which my poor friend had declared to be the starting-point of every investigat
14205 ion.
14206  I confess that I made little progress.
14207  In the evening I strolled across the Park, and found myself about six o'clock
14208  at the Oxford Street end of Park Lane.
14209  A group of loafers upon the pavements, all staring up at a particular window,
14210  directed me to the house which I had come to see.
14211  A tall, thin man with coloured glasses, whom I strongly suspected of being
14212  a plain-clothes detective, was pointing out some theory of his own, while
14213  the others crowded round to listen to what he said.
14214  I got as near him as I could, but his observations seemed to me to be absurd,
14215  so I withdrew again in some disgust.
14216  As I did so I struck against an elderly, deformed man, who had been behind
14217  me, and I knocked down several books which he was carrying.
14218 \end_layout
14219
14220 \end_inset
14221
14222
14223 \end_layout
14224
14225 \begin_layout Standard
14226 \begin_inset Note Greyedout
14227 status open
14228
14229 \begin_layout Plain Layout
14230
14231 \series bold
14232 Note:
14233 \series default
14234  The values you set with 
14235 \series bold
14236
14237 \backslash
14238 setlength
14239 \series default
14240  will be used for all following multiple columns until you change them again.
14241 \end_layout
14242
14243 \end_inset
14244
14245
14246 \end_layout
14247
14248 \begin_layout Standard
14249 \begin_inset ERT
14250 status collapsed
14251
14252 \begin_layout Plain Layout
14253
14254
14255 \backslash
14256 setlength{
14257 \backslash
14258 multicolsep}{13pt}
14259 \end_layout
14260
14261 \end_inset
14262
14263
14264 \begin_inset Note Note
14265 status collapsed
14266
14267 \begin_layout Plain Layout
14268 go back to the default
14269 \end_layout
14270
14271 \end_inset
14272
14273
14274 \end_layout
14275
14276 \begin_layout Standard
14277 \begin_inset Newpage newpage
14278 \end_inset
14279
14280
14281 \end_layout
14282
14283 \begin_layout Subsubsection
14284 Column Breaks
14285 \end_layout
14286
14287 \begin_layout Standard
14288 A column break can be forced by inserting the command 
14289 \series bold
14290
14291 \backslash
14292 columnbreak{}
14293 \series default
14294  as \SpecialChar TeX
14295  Code to that position in the text where the column should be broken.
14296  Note that this leads in most cases to whitespace in the text.
14297 \begin_inset Newline newline
14298 \end_inset
14299
14300 Here is an example:
14301 \end_layout
14302
14303 \begin_layout Standard
14304 \begin_inset Flex Multiple Columns
14305 status open
14306
14307 \begin_layout Plain Layout
14308
14309 \size small
14310 \begin_inset Quotes eld
14311 \end_inset
14312
14313 You're surprised to see me, sir,
14314 \begin_inset Quotes erd
14315 \end_inset
14316
14317  said he, in a strange, croaking voice.
14318 \end_layout
14319
14320 \begin_layout Plain Layout
14321
14322 \size small
14323 I acknowledged that I was.
14324 \end_layout
14325
14326 \begin_layout Plain Layout
14327
14328 \size small
14329 \begin_inset Quotes eld
14330 \end_inset
14331
14332 Well, I've a conscience, sir, and when I chanced to see you go into this
14333  house, as I came hobbling after you, I thought to myself, I'll just step
14334  in and see that kind gentleman, and tell him that if I was a bit gruff
14335  in my manner there was not any harm meant, and that I am much obliged to
14336  him for picking up my books.
14337 \begin_inset Quotes erd
14338 \end_inset
14339
14340
14341 \end_layout
14342
14343 \begin_layout Plain Layout
14344
14345 \size small
14346 \begin_inset Quotes eld
14347 \end_inset
14348
14349 You make too much of a trifle,
14350 \begin_inset Quotes erd
14351 \end_inset
14352
14353  said I.
14354  
14355 \begin_inset Quotes eld
14356 \end_inset
14357
14358 May I ask how you knew who I was?
14359 \begin_inset Quotes erd
14360 \end_inset
14361
14362  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
14363 \begin_inset ERT
14364 status collapsed
14365
14366 \begin_layout Plain Layout
14367
14368
14369 \backslash
14370 columnbreak{}
14371 \end_layout
14372
14373 \end_inset
14374
14375
14376 \end_layout
14377
14378 \begin_layout Plain Layout
14379
14380 \size small
14381 \begin_inset Quotes eld
14382 \end_inset
14383
14384 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14385  you'll find my little bookshop at the corner of Church Street, and very
14386  happy to see you, I am sure.
14387  Maybe you collect yourself, sir.
14388  Here's 
14389 \noun on
14390 British
14391 \begin_inset space ~
14392 \end_inset
14393
14394 Birds
14395 \noun default
14396 , and 
14397 \noun on
14398 Catullus
14399 \noun default
14400 , and 
14401 \noun on
14402 The Holy War
14403 \noun default
14404 –a bargain, every one of them.
14405  With five volumes you could just fill that gap on that second shelf.
14406  It looks untidy, does it not, sir?
14407 \begin_inset Quotes erd
14408 \end_inset
14409
14410
14411 \end_layout
14412
14413 \end_inset
14414
14415
14416 \end_layout
14417
14418 \begin_layout Subsubsection
14419 Column Separation
14420 \end_layout
14421
14422 \begin_layout Standard
14423 The width of the columns is automatically calculated, but you can modify
14424  the space between the columns.
14425  This is done by changing the length 
14426 \series bold
14427
14428 \backslash
14429 columnsep
14430 \series default
14431 .
14432  Its predefined value is 10
14433 \begin_inset space \thinspace{}
14434 \end_inset
14435
14436 pt.
14437  Here is an example where 
14438 \series bold
14439
14440 \backslash
14441 columnsep
14442 \series default
14443  is set to 3
14444 \begin_inset space \thinspace{}
14445 \end_inset
14446
14447 cm:
14448 \end_layout
14449
14450 \begin_layout Standard
14451 \begin_inset ERT
14452 status open
14453
14454 \begin_layout Plain Layout
14455
14456
14457 \backslash
14458 setlength{
14459 \backslash
14460 columnsep}{3cm}
14461 \end_layout
14462
14463 \end_inset
14464
14465
14466 \end_layout
14467
14468 \begin_layout Standard
14469 \begin_inset Flex Multiple Columns
14470 status open
14471
14472 \begin_layout Plain Layout
14473
14474 \size small
14475 My observations of No.
14476 \begin_inset space \space{}
14477 \end_inset
14478
14479 427 Park Lane did little to clear up the problem in which I was interested.
14480  The house was separated from the street by a low wall and railing, the
14481  whole not more than five feet high.
14482  It was perfectly easy, therefore, for anyone to get into the garden, but
14483  the window was entirely inaccessible, since there was no water pipe or
14484  anything which could help the most active man to climb it.
14485  More puzzled than ever, I retraced my steps to Kensington.
14486  I had not been in my study five minutes when the maid entered to say that
14487  a person desired to see me.
14488  To my astonishment it was none other than my strange old book collector,
14489  his sharp, wizened face peering out from a frame of white hair, and his
14490  precious volumes, a dozen of them at least, wedged under his right arm.
14491 \end_layout
14492
14493 \end_inset
14494
14495
14496 \end_layout
14497
14498 \begin_layout Standard
14499 \begin_inset ERT
14500 status collapsed
14501
14502 \begin_layout Plain Layout
14503
14504
14505 \backslash
14506 setlength{
14507 \backslash
14508 columnsep}{10pt}
14509 \end_layout
14510
14511 \end_inset
14512
14513
14514 \begin_inset Note Note
14515 status collapsed
14516
14517 \begin_layout Plain Layout
14518 go back to the default
14519 \end_layout
14520
14521 \end_inset
14522
14523
14524 \end_layout
14525
14526 \begin_layout Subsubsection
14527 Vertical Lines
14528 \end_layout
14529
14530 \begin_layout Standard
14531 Between the columns a rule with a width of the length 
14532 \series bold
14533
14534 \backslash
14535 columnseprule
14536 \series default
14537  is placed.
14538  If this rule width is set to 0
14539 \begin_inset space \thinspace{}
14540 \end_inset
14541
14542 pt (this is the default), the rule is suppressed.
14543  In the following example the rule is 2
14544 \begin_inset space \thinspace{}
14545 \end_inset
14546
14547 pt wide:
14548 \end_layout
14549
14550 \begin_layout Standard
14551 \begin_inset ERT
14552 status open
14553
14554 \begin_layout Plain Layout
14555
14556
14557 \backslash
14558 setlength{
14559 \backslash
14560 columnseprule}{2pt}
14561 \end_layout
14562
14563 \end_inset
14564
14565
14566 \end_layout
14567
14568 \begin_layout Standard
14569 \begin_inset Flex Multiple Columns
14570 status open
14571
14572 \begin_layout Plain Layout
14573
14574 \size small
14575 \begin_inset Quotes eld
14576 \end_inset
14577
14578 You're surprised to see me, sir,
14579 \begin_inset Quotes erd
14580 \end_inset
14581
14582  said he, in a strange, croaking voice.
14583 \end_layout
14584
14585 \begin_layout Plain Layout
14586
14587 \size small
14588 I acknowledged that I was.
14589 \end_layout
14590
14591 \begin_layout Plain Layout
14592
14593 \size small
14594 \begin_inset Quotes eld
14595 \end_inset
14596
14597 Well, I've a conscience, sir, and when I chanced to see you go into this
14598  house, as I came hobbling after you, I thought to myself, I'll just step
14599  in and see that kind gentleman, and tell him that if I was a bit gruff
14600  in my manner there was not any harm meant, and that I am much obliged to
14601  him for picking up my books.
14602 \begin_inset Quotes erd
14603 \end_inset
14604
14605
14606 \end_layout
14607
14608 \begin_layout Plain Layout
14609
14610 \size small
14611 \begin_inset Quotes eld
14612 \end_inset
14613
14614 You make too much of a trifle,
14615 \begin_inset Quotes erd
14616 \end_inset
14617
14618  said I.
14619  
14620 \begin_inset Quotes eld
14621 \end_inset
14622
14623 May I ask how you knew who I was?
14624 \begin_inset Quotes erd
14625 \end_inset
14626
14627
14628 \end_layout
14629
14630 \begin_layout Plain Layout
14631
14632 \size small
14633 \begin_inset Quotes eld
14634 \end_inset
14635
14636 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14637  you'll find my little bookshop at the corner of Church Street, and very
14638  happy to see you, I am sure.
14639  Maybe you collect yourself, sir.
14640  Here's 
14641 \noun on
14642 British
14643 \begin_inset space ~
14644 \end_inset
14645
14646 Birds
14647 \noun default
14648 , and 
14649 \noun on
14650 Catullus
14651 \noun default
14652 , and 
14653 \noun on
14654 The Holy War
14655 \noun default
14656 –a bargain, every one of them.
14657  With five volumes you could just fill that gap on that second shelf.
14658  It looks untidy, does it not, sir?
14659 \begin_inset Quotes erd
14660 \end_inset
14661
14662
14663 \end_layout
14664
14665 \end_inset
14666
14667
14668 \end_layout
14669
14670 \begin_layout Standard
14671 \begin_inset VSpace defskip
14672 \end_inset
14673
14674
14675 \end_layout
14676
14677 \begin_layout Standard
14678 The rule can be colored by redefining the command 
14679 \series bold
14680
14681 \backslash
14682 columnseprulecolor
14683 \series default
14684 .
14685  This is done by inserting the command
14686 \begin_inset Newline newline
14687 \end_inset
14688
14689
14690 \series bold
14691
14692 \backslash
14693 renewcommand{
14694 \backslash
14695 columnseprulecolor}{
14696 \backslash
14697 color{red}}
14698 \series default
14699
14700 \begin_inset Newline newline
14701 \end_inset
14702
14703 as \SpecialChar TeX
14704  Code before the multicolumn inset.
14705  Replace 
14706 \series bold
14707 red
14708 \series default
14709  in this command by a color of your choice.
14710  You can use all pre- and self-defined colors.
14711  See the 
14712 \emph on
14713 EmbeddedObjects
14714 \emph default
14715  manual, section 
14716 \emph on
14717 Colored
14718 \begin_inset space ~
14719 \end_inset
14720
14721 Tables
14722 \emph default
14723  for more information about pre- and self-defined colors.
14724  To go back to the default color insert the command
14725 \begin_inset Newline newline
14726 \end_inset
14727
14728
14729 \series bold
14730
14731 \backslash
14732 renewcommand{
14733 \backslash
14734 columnseprulecolor}{
14735 \backslash
14736 normalcolor}
14737 \series default
14738
14739 \begin_inset Newline newline
14740 \end_inset
14741
14742 Here is the example with a cyan rule and 1
14743 \begin_inset space \thinspace{}
14744 \end_inset
14745
14746 cm column separation:
14747 \end_layout
14748
14749 \begin_layout Standard
14750 \begin_inset ERT
14751 status open
14752
14753 \begin_layout Plain Layout
14754
14755
14756 \backslash
14757 setlength{
14758 \backslash
14759 columnsep}{1cm}
14760 \end_layout
14761
14762 \begin_layout Plain Layout
14763
14764
14765 \backslash
14766 renewcommand{
14767 \backslash
14768 columnseprulecolor}{
14769 \backslash
14770 color{cyan}}
14771 \end_layout
14772
14773 \end_inset
14774
14775
14776 \end_layout
14777
14778 \begin_layout Standard
14779 \begin_inset Flex Multiple Columns
14780 status open
14781
14782 \begin_layout Plain Layout
14783
14784 \size small
14785 \begin_inset Quotes eld
14786 \end_inset
14787
14788 You're surprised to see me, sir,
14789 \begin_inset Quotes erd
14790 \end_inset
14791
14792  said he, in a strange, croaking voice.
14793 \end_layout
14794
14795 \begin_layout Plain Layout
14796
14797 \size small
14798 I acknowledged that I was.
14799 \end_layout
14800
14801 \begin_layout Plain Layout
14802
14803 \size small
14804 \begin_inset Quotes eld
14805 \end_inset
14806
14807 Well, I've a conscience, sir, and when I chanced to see you go into this
14808  house, as I came hobbling after you, I thought to myself, I'll just step
14809  in and see that kind gentleman, and tell him that if I was a bit gruff
14810  in my manner there was not any harm meant, and that I am much obliged to
14811  him for picking up my books.
14812 \begin_inset Quotes erd
14813 \end_inset
14814
14815
14816 \end_layout
14817
14818 \begin_layout Plain Layout
14819
14820 \size small
14821 \begin_inset Quotes eld
14822 \end_inset
14823
14824 You make too much of a trifle,
14825 \begin_inset Quotes erd
14826 \end_inset
14827
14828  said I.
14829  
14830 \begin_inset Quotes eld
14831 \end_inset
14832
14833 May I ask how you knew who I was?
14834 \begin_inset Quotes erd
14835 \end_inset
14836
14837
14838 \end_layout
14839
14840 \begin_layout Plain Layout
14841
14842 \size small
14843 \begin_inset Quotes eld
14844 \end_inset
14845
14846 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14847  you'll find my little bookshop at the corner of Church Street, and very
14848  happy to see you, I am sure.
14849  Maybe you collect yourself, sir.
14850  Here's 
14851 \noun on
14852 British
14853 \begin_inset space ~
14854 \end_inset
14855
14856 Birds
14857 \noun default
14858 , and 
14859 \noun on
14860 Catullus
14861 \noun default
14862 , and 
14863 \noun on
14864 The Holy War
14865 \noun default
14866 –a bargain, every one of them.
14867  With five volumes you could just fill that gap on that second shelf.
14868  It looks untidy, does it not, sir?
14869 \begin_inset Quotes erd
14870 \end_inset
14871
14872
14873 \end_layout
14874
14875 \end_inset
14876
14877
14878 \end_layout
14879
14880 \begin_layout Standard
14881 \begin_inset ERT
14882 status collapsed
14883
14884 \begin_layout Plain Layout
14885
14886
14887 \backslash
14888 setlength{
14889 \backslash
14890 columnseprule}{0pt}
14891 \end_layout
14892
14893 \begin_layout Plain Layout
14894
14895
14896 \backslash
14897 renewcommand{
14898 \backslash
14899 columnseprulecolor}{
14900 \backslash
14901 normalcolor}
14902 \end_layout
14903
14904 \end_inset
14905
14906
14907 \begin_inset Note Note
14908 status collapsed
14909
14910 \begin_layout Plain Layout
14911 go back to the default
14912 \end_layout
14913
14914 \end_inset
14915
14916
14917 \end_layout
14918
14919 \begin_layout Chapter
14920
14921 \change_inserted 893223064 1464852301
14922 Text formatting
14923 \end_layout
14924
14925 \begin_layout Section
14926 Non-standard Paragraph Shapes
14927 \end_layout
14928
14929 \begin_layout Standard
14930 \noindent
14931 \SpecialChar LaTeX
14932  as well as any other text processor uses by default rectangular paragraphs.
14933  For special cases like for example posters, invitation cards or poems you
14934  can modify the paragraph shape to one of your choice.
14935  This can be done by using the \SpecialChar LaTeX
14936 -package 
14937 \series bold
14938 shapepar
14939 \series default
14940  which is loaded by using in the document settings the module 
14941 \family sans
14942 Custom paragraph shapes
14943 \family default
14944 .
14945 \end_layout
14946
14947 \begin_layout Subsection
14948 Predefined shapes
14949 \end_layout
14950
14951 \begin_layout Standard
14952
14953 \series bold
14954 shapepar
14955 \series default
14956  provides the following shapes:
14957 \end_layout
14958
14959 \begin_layout Standard
14960 \begin_inset Tabular
14961 <lyxtabular version="3" rows="13" columns="3">
14962 <features booktabs="true" islongtable="true" longtabularalignment="center">
14963 <column alignment="center" valignment="middle" width="16col%">
14964 <column alignment="center" valignment="middle" width="40col%">
14965 <column alignment="center" valignment="middle" width="35col%">
14966 <row endhead="true">
14967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14968 \begin_inset Text
14969
14970 \begin_layout Plain Layout
14971 Name
14972 \end_layout
14973
14974 \end_inset
14975 </cell>
14976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14977 \begin_inset Text
14978
14979 \begin_layout Plain Layout
14980 Description
14981 \end_layout
14982
14983 \end_inset
14984 </cell>
14985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14986 \begin_inset Text
14987
14988 \begin_layout Plain Layout
14989 Annotation
14990 \end_layout
14991
14992 \end_inset
14993 </cell>
14994 </row>
14995 <row>
14996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14997 \begin_inset Text
14998
14999 \begin_layout Plain Layout
15000 CDlabel
15001 \end_layout
15002
15003 \end_inset
15004 </cell>
15005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15006 \begin_inset Text
15007
15008 \begin_layout Plain Layout
15009 Circle with circular hole (in the size of a CD/DVD)
15010 \end_layout
15011
15012 \end_inset
15013 </cell>
15014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15015 \begin_inset Text
15016
15017 \begin_layout Plain Layout
15018 Cannot be scaled, take care there is not too much text
15019 \end_layout
15020
15021 \end_inset
15022 </cell>
15023 </row>
15024 <row>
15025 <cell alignment="center" valignment="top" topline="true" usebox="none">
15026 \begin_inset Text
15027
15028 \begin_layout Plain Layout
15029 Circle
15030 \end_layout
15031
15032 \end_inset
15033 </cell>
15034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15035 \begin_inset Text
15036
15037 \begin_layout Plain Layout
15038 Circle
15039 \end_layout
15040
15041 \end_inset
15042 </cell>
15043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15044 \begin_inset Text
15045
15046 \begin_layout Plain Layout
15047 Fragile, calculation might fail
15048 \end_layout
15049
15050 \end_inset
15051 </cell>
15052 </row>
15053 <row>
15054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15055 \begin_inset Text
15056
15057 \begin_layout Plain Layout
15058 Diamond
15059 \end_layout
15060
15061 \end_inset
15062 </cell>
15063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15064 \begin_inset Text
15065
15066 \begin_layout Plain Layout
15067 Rhomboid (symbolizing a 
15068 \begin_inset Quotes eld
15069 \end_inset
15070
15071 diamond
15072 \begin_inset Quotes erd
15073 \end_inset
15074
15075 )
15076 \end_layout
15077
15078 \end_inset
15079 </cell>
15080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15081 \begin_inset Text
15082
15083 \begin_layout Plain Layout
15084 -
15085 \end_layout
15086
15087 \end_inset
15088 </cell>
15089 </row>
15090 <row>
15091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15092 \begin_inset Text
15093
15094 \begin_layout Plain Layout
15095 Heart
15096 \end_layout
15097
15098 \end_inset
15099 </cell>
15100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15101 \begin_inset Text
15102
15103 \begin_layout Plain Layout
15104 Heart-like shape
15105 \end_layout
15106
15107 \end_inset
15108 </cell>
15109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15110 \begin_inset Text
15111
15112 \begin_layout Plain Layout
15113 -
15114 \end_layout
15115
15116 \end_inset
15117 </cell>
15118 </row>
15119 <row>
15120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15121 \begin_inset Text
15122
15123 \begin_layout Plain Layout
15124 Hexagon
15125 \end_layout
15126
15127 \end_inset
15128 </cell>
15129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15130 \begin_inset Text
15131
15132 \begin_layout Plain Layout
15133 Hexagon
15134 \end_layout
15135
15136 \end_inset
15137 </cell>
15138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15139 \begin_inset Text
15140
15141 \begin_layout Plain Layout
15142 -
15143 \end_layout
15144
15145 \end_inset
15146 </cell>
15147 </row>
15148 <row>
15149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15150 \begin_inset Text
15151
15152 \begin_layout Plain Layout
15153 Nut
15154 \end_layout
15155
15156 \end_inset
15157 </cell>
15158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15159 \begin_inset Text
15160
15161 \begin_layout Plain Layout
15162 Nut for bolt (hexagon with circular hole)
15163 \end_layout
15164
15165 \end_inset
15166 </cell>
15167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15168 \begin_inset Text
15169
15170 \begin_layout Plain Layout
15171 -
15172 \end_layout
15173
15174 \end_inset
15175 </cell>
15176 </row>
15177 <row>
15178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15179 \begin_inset Text
15180
15181 \begin_layout Plain Layout
15182 Square
15183 \end_layout
15184
15185 \end_inset
15186 </cell>
15187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15188 \begin_inset Text
15189
15190 \begin_layout Plain Layout
15191 Square
15192 \end_layout
15193
15194 \end_inset
15195 </cell>
15196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15197 \begin_inset Text
15198
15199 \begin_layout Plain Layout
15200 -
15201 \end_layout
15202
15203 \end_inset
15204 </cell>
15205 </row>
15206 <row>
15207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15208 \begin_inset Text
15209
15210 \begin_layout Plain Layout
15211 Star
15212 \end_layout
15213
15214 \end_inset
15215 </cell>
15216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15217 \begin_inset Text
15218
15219 \begin_layout Plain Layout
15220 Five-point star
15221 \end_layout
15222
15223 \end_inset
15224 </cell>
15225 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15226 \begin_inset Text
15227
15228 \begin_layout Plain Layout
15229 -
15230 \end_layout
15231
15232 \end_inset
15233 </cell>
15234 </row>
15235 <row>
15236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15237 \begin_inset Text
15238
15239 \begin_layout Plain Layout
15240 Candle
15241 \end_layout
15242
15243 \end_inset
15244 </cell>
15245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15246 \begin_inset Text
15247
15248 \begin_layout Plain Layout
15249 Burning candle
15250 \end_layout
15251
15252 \end_inset
15253 </cell>
15254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15255 \begin_inset Text
15256
15257 \begin_layout Plain Layout
15258 -
15259 \end_layout
15260
15261 \end_inset
15262 </cell>
15263 </row>
15264 <row>
15265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15266 \begin_inset Text
15267
15268 \begin_layout Plain Layout
15269 Drop down/up
15270 \end_layout
15271
15272 \end_inset
15273 </cell>
15274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15275 \begin_inset Text
15276
15277 \begin_layout Plain Layout
15278 Normal/reversed rain drop
15279 \end_layout
15280
15281 \end_inset
15282 </cell>
15283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15284 \begin_inset Text
15285
15286 \begin_layout Plain Layout
15287 Fragile, calculation might fail
15288 \end_layout
15289
15290 \end_inset
15291 </cell>
15292 </row>
15293 <row>
15294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15295 \begin_inset Text
15296
15297 \begin_layout Plain Layout
15298 \SpecialChar TeX
15299
15300 \end_layout
15301
15302 \end_inset
15303 </cell>
15304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15305 \begin_inset Text
15306
15307 \begin_layout Plain Layout
15308 The \SpecialChar TeX
15309  logo
15310 \end_layout
15311
15312 \end_inset
15313 </cell>
15314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15315 \begin_inset Text
15316
15317 \begin_layout Plain Layout
15318 -
15319 \end_layout
15320
15321 \end_inset
15322 </cell>
15323 </row>
15324 <row>
15325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15326 \begin_inset Text
15327
15328 \begin_layout Plain Layout
15329 Triangle up/down/
15330 \begin_inset Newline newline
15331 \end_inset
15332
15333 left/right
15334 \end_layout
15335
15336 \end_inset
15337 </cell>
15338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15339 \begin_inset Text
15340
15341 \begin_layout Plain Layout
15342 Triangles in different orientations
15343 \end_layout
15344
15345 \end_inset
15346 </cell>
15347 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15348 \begin_inset Text
15349
15350 \begin_layout Plain Layout
15351 -
15352 \end_layout
15353
15354 \end_inset
15355 </cell>
15356 </row>
15357 </lyxtabular>
15358
15359 \end_inset
15360
15361
15362 \end_layout
15363
15364 \begin_layout Standard
15365 To use a shape for your paragraph, simply select it in \SpecialChar LyX
15366 's pull-down box
15367  for environments in the toolbar.
15368 \end_layout
15369
15370 \begin_layout Standard
15371 \begin_inset Newpage newpage
15372 \end_inset
15373
15374
15375 \end_layout
15376
15377 \begin_layout Standard
15378 Here is an example paragraph in the shape of a nut:
15379 \end_layout
15380
15381 \begin_layout Standard
15382 \begin_inset VSpace bigskip
15383 \end_inset
15384
15385
15386 \end_layout
15387
15388 \begin_layout Nut
15389
15390 \lang latin
15391 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15392  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15393  voluptua.
15394  At vero eos et accusam et justo duo dolores et ea rebum.
15395  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15396  sit amet.
15397  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15398  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15399  voluptua.
15400 \end_layout
15401
15402 \begin_layout Standard
15403 \begin_inset VSpace bigskip
15404 \end_inset
15405
15406
15407 \end_layout
15408
15409 \begin_layout Standard
15410 \begin_inset Note Greyedout
15411 status open
15412
15413 \begin_layout Plain Layout
15414
15415 \series bold
15416 Note
15417 \series default
15418 : shapepar paragraphs cannot run over a page break.
15419 \end_layout
15420
15421 \end_inset
15422
15423
15424 \end_layout
15425
15426 \begin_layout Standard
15427 \begin_inset VSpace bigskip
15428 \end_inset
15429
15430
15431 \end_layout
15432
15433 \begin_layout Standard
15434
15435 \series bold
15436 shapepar
15437 \series default
15438  takes care that the shape will always be preserved, no matter how much
15439  text is in the paragraph.
15440  Therefore the paragraph size changes with the amount of contained text.
15441  This can lead to paragraph sizes exceeding the page margins.
15442  To demonstrate the size scaling, here is the same example paragraph but
15443  with twice as much text:
15444 \end_layout
15445
15446 \begin_layout Standard
15447 \begin_inset Newpage newpage
15448 \end_inset
15449
15450
15451 \end_layout
15452
15453 \begin_layout Nut
15454
15455 \lang latin
15456 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15457  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15458  voluptua.
15459  At vero eos et accusam et justo duo dolores et ea rebum.
15460  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15461  sit amet.
15462  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15463  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15464  voluptua.
15465  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15466  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15467  voluptua.
15468  At vero eos et accusam et justo duo dolores et ea rebum.
15469  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15470  sit amet.
15471  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15472  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15473  voluptua.
15474 \end_layout
15475
15476 \begin_layout Standard
15477 \begin_inset VSpace bigskip
15478 \end_inset
15479
15480
15481 \end_layout
15482
15483 \begin_layout Standard
15484 An exception is the shape 
15485 \family sans
15486 CDlabel
15487 \family default
15488 .
15489  It cannot be scaled because it must fit the size of a CD/DVD.
15490  Therefore the amount of text that fits into the shape is limited.
15491 \begin_inset Newline newline
15492 \end_inset
15493
15494 The 
15495 \family sans
15496 drop
15497 \family default
15498  shapes and the 
15499 \family sans
15500 circle
15501 \family default
15502  shape are fragile, meaning that the calculation of their size can fail,
15503  depending on the amount of text.
15504  You will then get the \SpecialChar LaTeX
15505  error 
15506 \begin_inset Quotes eld
15507 \end_inset
15508
15509 Arithmetic overflow
15510 \begin_inset Quotes erd
15511 \end_inset
15512
15513 .
15514  In this case one can try to remove or add some text; if nothing works one
15515  has to use another shape.
15516 \end_layout
15517
15518 \begin_layout Standard
15519 \begin_inset VSpace bigskip
15520 \end_inset
15521
15522
15523 \end_layout
15524
15525 \begin_layout Standard
15526 For shapes with tips you will maybe see that \SpecialChar LaTeX
15527 's hyphenation routine fails
15528  for text in the tips.
15529  Therefore it is often necessary to add hyphenation points 
15530 \family sans
15531 (
15532 \begin_inset Info
15533 type  "shortcut"
15534 arg   "specialchar-insert hyphenation"
15535 \end_inset
15536
15537
15538 \family default
15539 ) to the corresponding text parts.
15540 \end_layout
15541
15542 \begin_layout Standard
15543 \begin_inset VSpace bigskip
15544 \end_inset
15545
15546
15547 \end_layout
15548
15549 \begin_layout Standard
15550 Shapepar paragraphs are either always centered or placed on the page so
15551  that their left border touches the left page margin.
15552  You can therefore not use the paragraph dialog to align such paragraphs.
15553  A solution is to put the paragraph into a minipage or parbox and align
15554  the box.
15555  The problem is hereby to find the right width for the box.
15556  Because if it is too wide and you center the box, the paragraph is not
15557  centered too because it sticks at the left side of the box.
15558  So you might have to play a bit with the width until it fits.
15559  Here are two heart-shaped paragraphs, the first one is not aligned, the
15560  second one is right-aligned:
15561 \end_layout
15562
15563 \begin_layout Standard
15564 \begin_inset Newpage newpage
15565 \end_inset
15566
15567
15568 \end_layout
15569
15570 \begin_layout Heart
15571 \noindent
15572
15573 \lang latin
15574 Lo\SpecialChar softhyphen
15575 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15576  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15577  voluptua.
15578  At vero eos et accusam et justo duo dolores et ea rebum.
15579  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15580  sit amet.
15581 \end_layout
15582
15583 \begin_layout Standard
15584 \begin_inset VSpace bigskip
15585 \end_inset
15586
15587
15588 \end_layout
15589
15590 \begin_layout Standard
15591 \noindent
15592 \align right
15593 \begin_inset Box Frameless
15594 position "t"
15595 hor_pos "c"
15596 has_inner_box 1
15597 inner_pos "t"
15598 use_parbox 1
15599 use_makebox 0
15600 width "42col%"
15601 special "none"
15602 height "1in"
15603 height_special "totalheight"
15604 thickness "0.4pt"
15605 separation "3pt"
15606 shadowsize "4pt"
15607 framecolor "black"
15608 backgroundcolor "none"
15609 status open
15610
15611 \begin_layout Heart
15612 \noindent
15613
15614 \lang latin
15615 Lo\SpecialChar softhyphen
15616 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15617  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15618  voluptua.
15619  At vero eos et accusam et justo duo dolores et ea rebum.
15620  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15621  sit amet.
15622 \end_layout
15623
15624 \end_inset
15625
15626
15627 \end_layout
15628
15629 \begin_layout Subsection
15630 Custom shapes
15631 \end_layout
15632
15633 \begin_layout Standard
15634 You can define any shape you want.
15635  Doing this manually is a lot of work because every coordinate must be specified.
15636  But there is a way to let the computer calculate the coordinates:
15637 \end_layout
15638
15639 \begin_layout Enumerate
15640 Install the program 
15641 \begin_inset CommandInset href
15642 LatexCommand href
15643 name "Jpgfdraw"
15644 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
15645
15646 \end_inset
15647
15648 .
15649 \end_layout
15650
15651 \begin_layout Enumerate
15652 In 
15653 \family sans
15654 Jpgfdraw
15655 \family default
15656  go to the menu 
15657 \family sans
15658 TeX/LaTeX\SpecialChar menuseparator
15659 Settings\SpecialChar menuseparator
15660 Set Normal Size
15661 \family default
15662  and select the font size you are using in your document.
15663  For example this document uses the size 12
15664 \begin_inset space \thinspace{}
15665 \end_inset
15666
15667 pt.
15668 \end_layout
15669
15670 \begin_layout Enumerate
15671 Draw a shape.
15672 \end_layout
15673
15674 \begin_layout Enumerate
15675 Use the menu 
15676 \family sans
15677 TeX/LaTeX\SpecialChar menuseparator
15678 Shapepar
15679 \family default
15680  to export the shape to coordinates.
15681  In the appearing dialog use either the outline of your shape for the coordinate
15682 s or the path itself.
15683 \begin_inset Foot
15684 status collapsed
15685
15686 \begin_layout Plain Layout
15687 For more information see 
15688 \begin_inset CommandInset href
15689 LatexCommand href
15690 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
15691
15692 \end_inset
15693
15694
15695 \end_layout
15696
15697 \end_inset
15698
15699
15700 \end_layout
15701
15702 \begin_layout Standard
15703 The coordinates are written into a \SpecialChar TeX
15704  file.
15705  To use it for your \SpecialChar LyX
15706  document
15707 \end_layout
15708
15709 \begin_layout Enumerate
15710 Place the cursor before the first character of your paragraph (or into a
15711  new empty one).
15712 \end_layout
15713
15714 \begin_layout Enumerate
15715 Open in \SpecialChar LyX
15716  the menu 
15717 \family sans
15718 Insert\SpecialChar menuseparator
15719 File\SpecialChar menuseparator
15720 Child
15721 \begin_inset space ~
15722 \end_inset
15723
15724 Document
15725 \family default
15726 , select the file and use 
15727 \family sans
15728 Input
15729 \family default
15730  as 
15731 \family sans
15732 Include Type.
15733 \end_layout
15734
15735 \begin_layout Standard
15736 \begin_inset VSpace defskip
15737 \end_inset
15738
15739
15740 \end_layout
15741
15742 \begin_layout Standard
15743 \begin_inset Note Greyedout
15744 status open
15745
15746 \begin_layout Plain Layout
15747
15748 \series bold
15749 Note
15750 \series default
15751 : The changed shape only applies to the current paragraph; everything is
15752  reset to normal for the next paragraph.
15753  Therefore the shape definition file must be input into every paragraph
15754  with the desired shape.
15755 \end_layout
15756
15757 \end_inset
15758
15759
15760 \end_layout
15761
15762 \begin_layout Standard
15763 \begin_inset VSpace bigskip
15764 \end_inset
15765
15766
15767 \end_layout
15768
15769 \begin_layout Standard
15770 Here is an example:
15771 \end_layout
15772
15773 \begin_layout Standard
15774 \begin_inset VSpace bigskip
15775 \end_inset
15776
15777
15778 \end_layout
15779
15780 \begin_layout Standard
15781 \begin_inset CommandInset include
15782 LatexCommand input
15783 filename "/usr/share/lyx/doc/SpecialParagraphShape.tex"
15784
15785 \end_inset
15786
15787
15788 \lang latin
15789 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15790  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15791  voluptua.
15792  At vero eos et accusam et justo duo dolores et ea rebum.
15793  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15794  sit amet.
15795  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15796  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15797  voluptua.
15798 \end_layout
15799
15800 \begin_layout Standard
15801 \begin_inset VSpace bigskip
15802 \end_inset
15803
15804
15805 \end_layout
15806
15807 \begin_layout Standard
15808
15809 \series bold
15810 A tip:
15811 \series default
15812  to draw complexer shapes in 
15813 \family sans
15814 Jpgfdraw
15815 \family default
15816  you can draw the shape in a program of your choice and import the resulting
15817  image to 
15818 \family sans
15819 Jpgfdraw
15820 \family default
15821 .
15822  Then you only need to draw a line or spline along the outline of the image.
15823 \end_layout
15824
15825 \begin_layout Standard
15826 \begin_inset VSpace bigskip
15827 \end_inset
15828
15829
15830 \end_layout
15831
15832 \begin_layout Standard
15833 The module 
15834 \family sans
15835 Custom paragraph shapes
15836 \family default
15837  also provides the two commands 
15838 \family sans
15839 shapepar
15840 \family default
15841  and 
15842 \family sans
15843 Shapepar
15844 \family default
15845  which can be used to define custom shapes coordinate by coordinate.
15846 \begin_inset Foot
15847 status collapsed
15848
15849 \begin_layout Plain Layout
15850 These commands are internally used for all shapes described here.
15851 \end_layout
15852
15853 \end_inset
15854
15855  For information how these styles are used and about further customization
15856  possibilities, have a look at the documentation of the package 
15857 \series bold
15858 shapepar
15859 \series default
15860
15861 \begin_inset CommandInset citation
15862 LatexCommand cite
15863 key "shapepar"
15864
15865 \end_inset
15866
15867 .
15868 \end_layout
15869
15870 \begin_layout Bibliography
15871 \begin_inset CommandInset bibitem
15872 LatexCommand bibitem
15873 key "multicol"
15874
15875 \end_inset
15876
15877 Documentation of the \SpecialChar LaTeX
15878 -package 
15879 \begin_inset CommandInset href
15880 LatexCommand href
15881 name "multicol"
15882 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
15883
15884 \end_inset
15885
15886
15887 \end_layout
15888
15889 \begin_layout Bibliography
15890 \begin_inset CommandInset bibitem
15891 LatexCommand bibitem
15892 key "shapepar"
15893
15894 \end_inset
15895
15896 Documentation of the \SpecialChar LaTeX
15897 -package 
15898 \begin_inset CommandInset href
15899 LatexCommand href
15900 name "shapepar"
15901 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
15902
15903 \end_inset
15904
15905
15906 \end_layout
15907
15908 \begin_layout Chapter
15909
15910 \change_inserted 893223064 1464852414
15911 Bibliographic databases
15912 \change_deleted 893223064 1464852406
15913 Supplemental Tools
15914 \change_unchanged
15915
15916 \end_layout
15917
15918 \begin_layout Section
15919 Customizing Bibliographies with Bib\SpecialChar TeX
15920
15921 \end_layout
15922
15923 \begin_layout Standard
15924 The most basic information about how to use Bib\SpecialChar TeX
15925  with \SpecialChar LyX
15926  is contained in the
15927  section 
15928 \emph on
15929 Bibliography databases (Bib\SpecialChar TeX
15930 )
15931 \emph default
15932  of the 
15933 \emph on
15934 User's Guide
15935 \emph default
15936 .
15937  The following subsections explain special bibliography features supported
15938  by \SpecialChar LyX
15939 .
15940 \end_layout
15941
15942 \begin_layout Subsection
15943 Alternative Citation Styles
15944 \end_layout
15945
15946 \begin_layout Standard
15947 Standard Bib\SpecialChar TeX
15948  uses numbers (e.
15949 \begin_inset space \thinspace{}
15950 \end_inset
15951
15952 g.
15953 \begin_inset space \space{}
15954 \end_inset
15955
15956
15957 \begin_inset Quotes eld
15958 \end_inset
15959
15960 [12]
15961 \begin_inset Quotes erd
15962 \end_inset
15963
15964 ) to refer to a cited work.
15965  However, in many scientific disciplines, other citation styles are in use.
15966  The most common one is the author-year style (e.
15967 \begin_inset space \thinspace{}
15968 \end_inset
15969
15970 g.
15971 \begin_inset space \space{}
15972 \end_inset
15973
15974
15975 \begin_inset Quotes eld
15976 \end_inset
15977
15978 Knuth 1984a
15979 \begin_inset Quotes erd
15980 \end_inset
15981
15982 ).
15983  \SpecialChar LyX
15984  supports two packages that provide this style, 
15985 \begin_inset Flex Code
15986 status collapsed
15987
15988 \begin_layout Plain Layout
15989 natbib
15990 \end_layout
15991
15992 \end_inset
15993
15994  and 
15995 \begin_inset Flex Code
15996 status collapsed
15997
15998 \begin_layout Plain Layout
15999 jurabib
16000 \end_layout
16001
16002 \end_inset
16003
16004 .
16005  Both packages have their pros and cons, which cannot be listed in detail.
16006  If you only want to have simple author-year (or author-numerical) style,
16007  or if you want to use one of the countless style files for 
16008 \begin_inset Flex Code
16009 status collapsed
16010
16011 \begin_layout Plain Layout
16012 natbib
16013 \end_layout
16014
16015 \end_inset
16016
16017 , then the established 
16018 \begin_inset Flex Code
16019 status collapsed
16020
16021 \begin_layout Plain Layout
16022 natbib
16023 \end_layout
16024
16025 \end_inset
16026
16027  package is probably your choice.
16028  If you need special features like short title references, ibidem etc., you
16029  might consider the 
16030 \begin_inset Flex Code
16031 status collapsed
16032
16033 \begin_layout Plain Layout
16034 jurabib
16035 \end_layout
16036
16037 \end_inset
16038
16039  package.
16040 \end_layout
16041
16042 \begin_layout Standard
16043 The handling of both packages in \SpecialChar LyX
16044  is basically the same.
16045  Go to 
16046 \begin_inset Flex Noun
16047 status collapsed
16048
16049 \begin_layout Plain Layout
16050 Document\SpecialChar menuseparator
16051 Settings
16052 \end_layout
16053
16054 \end_inset
16055
16056  and select under 
16057 \begin_inset Flex Noun
16058 status collapsed
16059
16060 \begin_layout Plain Layout
16061 Bibliography
16062 \end_layout
16063
16064 \end_inset
16065
16066  the option 
16067 \begin_inset Flex Noun
16068 status collapsed
16069
16070 \begin_layout Plain Layout
16071 Natbib
16072 \end_layout
16073
16074 \end_inset
16075
16076  or 
16077 \begin_inset Flex Noun
16078 status collapsed
16079
16080 \begin_layout Plain Layout
16081 Jurabib
16082 \end_layout
16083
16084 \end_inset
16085
16086 .
16087  With both packages, you will get some extra features in the citation dialog
16088  and you can select the style of the reference (
16089 \begin_inset Quotes eld
16090 \end_inset
16091
16092 Knuth 1984
16093 \begin_inset Quotes erd
16094 \end_inset
16095
16096
16097 \begin_inset Quotes eld
16098 \end_inset
16099
16100 Knuth (1984)
16101 \begin_inset Quotes erd
16102 \end_inset
16103
16104
16105 \begin_inset Quotes eld
16106 \end_inset
16107
16108 Knuth, 1984
16109 \begin_inset Quotes erd
16110 \end_inset
16111
16112
16113 \begin_inset Quotes eld
16114 \end_inset
16115
16116 1984
16117 \begin_inset Quotes erd
16118 \end_inset
16119
16120  etc.).
16121  Note that both packages need specifically designed style files.
16122  They both ship their own, but there are lots of additional style files,
16123  and there is even an interactive style file builder
16124 \begin_inset Foot
16125 status collapsed
16126
16127 \begin_layout Plain Layout
16128 See 
16129 \begin_inset Flex URL
16130 status open
16131
16132 \begin_layout Plain Layout
16133
16134 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
16135 \end_layout
16136
16137 \end_inset
16138
16139
16140 \end_layout
16141
16142 \end_inset
16143
16144  for 
16145 \begin_inset Flex Code
16146 status collapsed
16147
16148 \begin_layout Plain Layout
16149 natbib
16150 \end_layout
16151
16152 \end_inset
16153
16154 .
16155 \end_layout
16156
16157 \begin_layout Subsection
16158 Sectioned Bibliographies
16159 \end_layout
16160
16161 \begin_layout Standard
16162 Sometimes you might need to divide your bibliography into several sections.
16163  If you are for instance a historian, the possibility to separate sources
16164  and scientific works is most likely a 
16165 \begin_inset Quotes eld
16166 \end_inset
16167
16168 must have
16169 \begin_inset Quotes erd
16170 \end_inset
16171
16172 .
16173  Unfortunately, Bib\SpecialChar TeX
16174  itself does not allow you to do this.
16175  But with the help of some \SpecialChar LaTeX
16176  packages, Bib\SpecialChar TeX
16177  can be extended to fit your needs.
16178 \end_layout
16179
16180 \begin_layout Standard
16181 \SpecialChar LyX
16182  provides native support for one of these packages, 
16183 \family typewriter
16184 bibtopic
16185 \family default
16186 .
16187 \begin_inset Foot
16188 status collapsed
16189
16190 \begin_layout Plain Layout
16191 Available from 
16192 \begin_inset Flex URL
16193 status open
16194
16195 \begin_layout Plain Layout
16196
16197 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
16198 \end_layout
16199
16200 \end_inset
16201
16202
16203 \end_layout
16204
16205 \end_inset
16206
16207  The advantage of this package (compared to other packages like 
16208 \family typewriter
16209 multibib
16210 \family default
16211 ) is that you don't need to define new citation commands.
16212  Instead, you need to prepare different bibliographic databases which include
16213  the entries for the different sections of the bibliography.
16214  For example: If you want to divide your bibliography into the sections
16215  
16216 \begin_inset Quotes eld
16217 \end_inset
16218
16219 Sources
16220 \begin_inset Quotes erd
16221 \end_inset
16222
16223  and 
16224 \begin_inset Quotes eld
16225 \end_inset
16226
16227 Scientific works
16228 \begin_inset Quotes erd
16229 \end_inset
16230
16231 , you first need to create two bibliographic databases, e.
16232 \begin_inset space \thinspace{}
16233 \end_inset
16234
16235 g.
16236 \begin_inset space \space{}
16237 \end_inset
16238
16239
16240 \begin_inset Flex Code
16241 status collapsed
16242
16243 \begin_layout Plain Layout
16244 sources.bib
16245 \end_layout
16246
16247 \end_inset
16248
16249  and 
16250 \begin_inset Flex Code
16251 status collapsed
16252
16253 \begin_layout Plain Layout
16254 scientific.bib
16255 \end_layout
16256
16257 \end_inset
16258
16259 .
16260  
16261 \end_layout
16262
16263 \begin_layout Standard
16264 Go to 
16265 \begin_inset Flex Noun
16266 status collapsed
16267
16268 \begin_layout Plain Layout
16269 Document\SpecialChar menuseparator
16270 Settings
16271 \end_layout
16272
16273 \end_inset
16274
16275  and check under 
16276 \begin_inset Flex Noun
16277 status collapsed
16278
16279 \begin_layout Plain Layout
16280 Bibliography
16281 \end_layout
16282
16283 \end_inset
16284
16285  the option 
16286 \begin_inset Flex Noun
16287 status collapsed
16288
16289 \begin_layout Plain Layout
16290 Sectioned bibliography
16291 \end_layout
16292
16293 \end_inset
16294
16295 .
16296  Now you can insert multiple Bib\SpecialChar TeX
16297  bibliographies, one for each section of
16298  your bibliography.
16299  Returning to our example: Insert the Bib\SpecialChar TeX
16300  bibliography 
16301 \begin_inset Flex Code
16302 status collapsed
16303
16304 \begin_layout Plain Layout
16305 sources.bib
16306 \end_layout
16307
16308 \end_inset
16309
16310  and a second one for the database 
16311 \begin_inset Flex Code
16312 status collapsed
16313
16314 \begin_layout Plain Layout
16315 scientific.bib
16316 \end_layout
16317
16318 \end_inset
16319
16320 .
16321  You are free to use the same or different styles for each section.
16322  Additionally, you can choose if the bibliography section should contain
16323  
16324 \begin_inset Quotes eld
16325 \end_inset
16326
16327 all cited references
16328 \begin_inset Quotes erd
16329 \end_inset
16330
16331  of the specified database(s) (which is the default), 
16332 \begin_inset Quotes eld
16333 \end_inset
16334
16335 all uncited references
16336 \begin_inset Quotes erd
16337 \end_inset
16338
16339  or even 
16340 \begin_inset Quotes eld
16341 \end_inset
16342
16343 all references
16344 \begin_inset Quotes erd
16345 \end_inset
16346
16347 .
16348  This might be useful if you would like to separate your bibliography into
16349  three sections: 
16350 \begin_inset Quotes eld
16351 \end_inset
16352
16353 Cited sources
16354 \begin_inset Quotes erd
16355 \end_inset
16356
16357
16358 \begin_inset Quotes eld
16359 \end_inset
16360
16361 Uncited sources
16362 \begin_inset Quotes erd
16363 \end_inset
16364
16365 , and 
16366 \begin_inset Quotes eld
16367 \end_inset
16368
16369 Scientific works
16370 \begin_inset Quotes erd
16371 \end_inset
16372
16373 .
16374  The titles for the sections can be added as ordinary sections or subsections.
16375  Since 
16376 \begin_inset Flex Code
16377 status collapsed
16378
16379 \begin_layout Plain Layout
16380 bibtopic
16381 \end_layout
16382
16383 \end_inset
16384
16385  removes the bibliography title, you have to manually re-add that, too (as
16386  a chapter* or section*, for instance).
16387 \end_layout
16388
16389 \begin_layout Subsection
16390 Multiple Bibliographies
16391 \end_layout
16392
16393 \begin_layout Standard
16394 Multiple bibliographies, e.
16395 \begin_inset space \thinspace{}
16396 \end_inset
16397
16398 g.
16399 \begin_inset space \space{}
16400 \end_inset
16401
16402 a bibliography for each section or chapter of the document, are not supported
16403  by Bib\SpecialChar TeX
16404  itself.
16405  But the 
16406 \begin_inset Flex Code
16407 status collapsed
16408
16409 \begin_layout Plain Layout
16410 bibtopic
16411 \end_layout
16412
16413 \end_inset
16414
16415  package, which is used for the creation of sectioned bibliographies in
16416  \SpecialChar LyX
16417  (see the previous section), provides an easy way to solve this task, if
16418  you are willing to use some 
16419 \begin_inset Flex Noun
16420 status collapsed
16421
16422 \begin_layout Plain Layout
16423 \SpecialChar TeX
16424  Code
16425 \end_layout
16426
16427 \end_inset
16428
16429  (see section
16430 \begin_inset space ~
16431 \end_inset
16432
16433
16434 \begin_inset CommandInset ref
16435 LatexCommand ref
16436 reference "sec:Inserting-TeX-Code"
16437
16438 \end_inset
16439
16440 ).
16441 \begin_inset Foot
16442 status collapsed
16443
16444 \begin_layout Plain Layout
16445 An alternative approach is to use the 
16446 \begin_inset Flex Code
16447 status collapsed
16448
16449 \begin_layout Plain Layout
16450 chapterbib
16451 \end_layout
16452
16453 \end_inset
16454
16455  or 
16456 \begin_inset Flex Code
16457 status collapsed
16458
16459 \begin_layout Plain Layout
16460 bibunits
16461 \end_layout
16462
16463 \end_inset
16464
16465  package, respectively.
16466 \end_layout
16467
16468 \end_inset
16469
16470
16471 \end_layout
16472
16473 \begin_layout Standard
16474 First go to 
16475 \begin_inset Flex Noun
16476 status collapsed
16477
16478 \begin_layout Plain Layout
16479 Document\SpecialChar menuseparator
16480 Settings
16481 \end_layout
16482
16483 \end_inset
16484
16485  and under 
16486 \begin_inset Flex Noun
16487 status collapsed
16488
16489 \begin_layout Plain Layout
16490 Bibliography
16491 \end_layout
16492
16493 \end_inset
16494
16495  check 
16496 \begin_inset Flex Noun
16497 status collapsed
16498
16499 \begin_layout Plain Layout
16500 Sectioned bibliography
16501 \end_layout
16502
16503 \end_inset
16504
16505 .
16506  In the document, you have to enclose the sections, which shall contain
16507  their own bibliography (including the Bib\SpecialChar TeX
16508  bibliography itself), between
16509  
16510 \begin_inset Flex Code
16511 status collapsed
16512
16513 \begin_layout Plain Layout
16514
16515 \backslash
16516 begin{btUnit}
16517 \end_layout
16518
16519 \end_inset
16520
16521  and 
16522 \begin_inset Flex Code
16523 status collapsed
16524
16525 \begin_layout Plain Layout
16526
16527 \backslash
16528 end{btUnit}
16529 \end_layout
16530
16531 \end_inset
16532
16533  (those commands have to be inserted as \SpecialChar TeX
16534  code).
16535  The bibliography will contain all references that have been cited in the
16536  current 
16537 \begin_inset Flex Code
16538 status collapsed
16539
16540 \begin_layout Plain Layout
16541 btUnit
16542 \end_layout
16543
16544 \end_inset
16545
16546 .
16547  
16548 \series bold
16549 Note:
16550 \series default
16551  If you are using this approach, then every citation reference has to be
16552  inside some 
16553 \begin_inset Flex Code
16554 status collapsed
16555
16556 \begin_layout Plain Layout
16557 btUnit
16558 \end_layout
16559
16560 \end_inset
16561
16562 .
16563  Also, the 
16564 \begin_inset Flex Code
16565 status collapsed
16566
16567 \begin_layout Plain Layout
16568 btUnit
16569 \end_layout
16570
16571 \end_inset
16572
16573 s cannot be nested.
16574 \end_layout
16575
16576 \begin_layout Chapter
16577 Multipart Documents
16578 \end_layout
16579
16580 \begin_layout Section
16581 General Operation
16582 \end_layout
16583
16584 \begin_layout Standard
16585 When you are working on a large file with many sections, it is often convenient
16586  to break up the document into several files, or perhaps you have something
16587  where a table may change from time to time, but the preceding text does
16588  not.
16589  In these cases, you should seriously consider using multipart documents.
16590  For example, scientific papers often have five major sections: the introduction
16591 , observations, results, discussion, and conclusion.
16592  Each of these could be its own separate \SpecialChar LyX
16593  file, with one 
16594 \begin_inset Quotes eld
16595 \end_inset
16596
16597 master
16598 \begin_inset Quotes erd
16599 \end_inset
16600
16601  file which contains the title, authors, abstract, references, etc., plus
16602  the five included files.
16603  It is important to note that each of these files is a full \SpecialChar LyX
16604  file which
16605  can be formatted and printed on its own, as well as included in a master
16606  file.
16607  Each of these files must have the same document class, however—don't attempt
16608  to mix book classes with article classes.
16609  You may also include \SpecialChar LaTeX
16610  files; however, these files must not have their own
16611  preamble (i.
16612 \begin_inset space \thinspace{}
16613 \end_inset
16614
16615 e.
16616 \begin_inset space \space{}
16617 \end_inset
16618
16619 everything up to and including the 
16620 \begin_inset Flex Code
16621 status collapsed
16622
16623 \begin_layout Plain Layout
16624
16625 \backslash
16626 begin{document}
16627 \end_layout
16628
16629 \end_inset
16630
16631  line as well as the 
16632 \begin_inset Flex Code
16633 status collapsed
16634
16635 \begin_layout Plain Layout
16636
16637 \backslash
16638 end{document}
16639 \end_layout
16640
16641 \end_inset
16642
16643  line must be deleted) or else errors will be generated when you try to
16644  make a DVI file.
16645 \end_layout
16646
16647 \begin_layout Standard
16648 \SpecialChar LyX
16649  allows you to include files quite easily with 
16650 \begin_inset Flex Noun
16651 status collapsed
16652
16653 \begin_layout Plain Layout
16654 Insert\SpecialChar menuseparator
16655 ChiId
16656 \begin_inset space ~
16657 \end_inset
16658
16659 Document
16660 \end_layout
16661
16662 \end_inset
16663
16664 .
16665  When you click on this selection a small box is inserted into the file
16666  at the current cursor location.
16667  Clicking on the box raises a dialog which allows you to select the file
16668  to be included, and the method of its inclusion.
16669  
16670 \end_layout
16671
16672 \begin_layout Standard
16673 The file selection box should by now be obvious.
16674  The three inclusion methods are 
16675 \begin_inset Quotes eld
16676 \end_inset
16677
16678 include
16679 \begin_inset Quotes erd
16680 \end_inset
16681
16682
16683 \begin_inset Quotes eld
16684 \end_inset
16685
16686 input
16687 \begin_inset Quotes erd
16688 \end_inset
16689
16690 , and 
16691 \begin_inset Quotes eld
16692 \end_inset
16693
16694 verbatim
16695 \begin_inset Quotes erd
16696 \end_inset
16697
16698 .
16699  The difference between 
16700 \begin_inset Quotes eld
16701 \end_inset
16702
16703 include
16704 \begin_inset Quotes erd
16705 \end_inset
16706
16707  and 
16708 \begin_inset Quotes eld
16709 \end_inset
16710
16711 input
16712 \begin_inset Quotes erd
16713 \end_inset
16714
16715  is really only meaningful to \SpecialChar LaTeX
16716 perts, but the practical difference is that
16717  files that are 
16718 \begin_inset Quotes eld
16719 \end_inset
16720
16721 included
16722 \begin_inset Quotes erd
16723 \end_inset
16724
16725  are typeset beginning on a new page, while files that are 
16726 \begin_inset Quotes eld
16727 \end_inset
16728
16729 inputted
16730 \begin_inset Quotes erd
16731 \end_inset
16732
16733  are typeset starting on the current page.
16734 \end_layout
16735
16736 \begin_layout Standard
16737 Generally, the master file is converted into a full \SpecialChar LaTeX
16738  file before typesetting,
16739  while the included files are converted to \SpecialChar LaTeX
16740  files that do not have all the
16741  preamble information.
16742 \end_layout
16743
16744 \begin_layout Standard
16745
16746 \begin_inset Quotes eld
16747 \end_inset
16748
16749 verbatim
16750 \begin_inset Quotes erd
16751 \end_inset
16752
16753  included file allows you to include a file typeset exactly as it appears
16754  in the file, i.
16755 \begin_inset space \thinspace{}
16756 \end_inset
16757
16758 e.
16759 \begin_inset space \space{}
16760 \end_inset
16761
16762 in 
16763 \begin_inset Flex Code
16764 status collapsed
16765
16766 \begin_layout Plain Layout
16767 verbatim
16768 \end_layout
16769
16770 \end_inset
16771
16772  mode, with the characters set in a fixed-width typewriter font.
16773  Normally, spaces in this file are invisible, though two consecutive spaces
16774  are conserved, unlike \SpecialChar LyX
16775 's normal treatment of spaces.
16776  However, setting the 
16777 \begin_inset Flex Noun
16778 status collapsed
16779
16780 \begin_layout Plain Layout
16781 Mark
16782 \begin_inset space ~
16783 \end_inset
16784
16785 spaces
16786 \begin_inset space ~
16787 \end_inset
16788
16789 in
16790 \begin_inset space ~
16791 \end_inset
16792
16793 output
16794 \end_layout
16795
16796 \end_inset
16797
16798  checkbox typesets a mark to unambiguously define the presence of a space.
16799  
16800 \end_layout
16801
16802 \begin_layout Section
16803 Cross-References Between Files
16804 \end_layout
16805
16806 \begin_layout Standard
16807 \begin_inset Box Shadowbox
16808 position "t"
16809 hor_pos "c"
16810 has_inner_box 1
16811 inner_pos "t"
16812 use_parbox 0
16813 use_makebox 0
16814 width "100col%"
16815 special "none"
16816 height "1in"
16817 height_special "totalheight"
16818 thickness "0.4pt"
16819 separation "3pt"
16820 shadowsize "4pt"
16821 framecolor "black"
16822 backgroundcolor "none"
16823 status open
16824
16825 \begin_layout Plain Layout
16826 This section is somewhat out of date.
16827  Need to describe default master documents and how children are opened when
16828  the master is.
16829  [[FIXME]]
16830 \end_layout
16831
16832 \end_inset
16833
16834
16835 \end_layout
16836
16837 \begin_layout Standard
16838 It is possible to set up cross-references between the different files.
16839  First, open all the files in question: let's call them A and B in a two
16840  file example, where B is included in A.
16841  Let's say you insert a label in A, then want to reference it in B.
16842  Open the cross-reference dialog whilst in document B, and you can select
16843  the 
16844 \begin_inset Quotes eld
16845 \end_inset
16846
16847 buffer
16848 \begin_inset Quotes erd
16849 \end_inset
16850
16851  to use.
16852 \end_layout
16853
16854 \begin_layout Section
16855 Bibliography Lists in all Subdocuments
16856 \end_layout
16857
16858 \begin_layout Standard
16859 \begin_inset Box Frameless
16860 position "t"
16861 hor_pos "c"
16862 has_inner_box 1
16863 inner_pos "t"
16864 use_parbox 0
16865 use_makebox 0
16866 width "100col%"
16867 special "none"
16868 height "1in"
16869 height_special "totalheight"
16870 thickness "0.4pt"
16871 separation "3pt"
16872 shadowsize "4pt"
16873 framecolor "black"
16874 backgroundcolor "none"
16875 status open
16876
16877 \begin_layout Plain Layout
16878 This section also needs updating.
16879  There is now material about this on the wiki, and it could be copied here.
16880 \end_layout
16881
16882 \end_inset
16883
16884
16885 \end_layout
16886
16887 \begin_layout Standard
16888 Copy the bibliography list with all entries to all subdocuments and transform
16889  them to a comment.
16890  This way \SpecialChar LyX
16891  will find the 
16892 \begin_inset Flex Code
16893 status collapsed
16894
16895 \begin_layout Plain Layout
16896 .bib
16897 \end_layout
16898
16899 \end_inset
16900
16901 -files and you can easily insert references without making the bibliography
16902  list visible.
16903 \end_layout
16904
16905 \begin_layout Standard
16906 As the bibliography list is in a comment, \SpecialChar LaTeX
16907  won't use it and the references
16908  will look like this: [?], instead of like this: [1].
16909  One solution is to use the \SpecialChar LaTeX
16910 -package 
16911 \begin_inset Flex Code
16912 status collapsed
16913
16914 \begin_layout Plain Layout
16915 comment
16916 \end_layout
16917
16918 \end_inset
16919
16920  that will only include comments by processing the files separately.
16921  To do this, add in the \SpecialChar LaTeX
16922  preamble of every subdocument the following:
16923 \end_layout
16924
16925 \begin_layout LyX-Code
16926
16927 \backslash
16928 usepackage{comment}
16929 \end_layout
16930
16931 \begin_layout LyX-Code
16932
16933 \backslash
16934 includecomment{comment}
16935 \end_layout
16936
16937 \begin_layout Standard
16938 See also 
16939 \begin_inset Flex URL
16940 status collapsed
16941
16942 \begin_layout Plain Layout
16943
16944 http://wiki.lyx.org/FAQ/Unsorted#toc31
16945 \end_layout
16946
16947 \end_inset
16948
16949 .
16950 \end_layout
16951
16952 \begin_layout Section
16953 Itemize Bullet Selection
16954 \begin_inset CommandInset label
16955 LatexCommand label
16956 name "sec:bullet"
16957
16958 \end_inset
16959
16960
16961 \end_layout
16962
16963 \begin_layout Standard
16964 by
16965 \noun on
16966  Allan Rae
16967 \end_layout
16968
16969 \begin_layout Subsection
16970 Introduction
16971 \end_layout
16972
16973 \begin_layout Standard
16974 \SpecialChar LyX
16975  provides 216 bullet shapes that can be accessed from a simple dialog.
16976  Using this dialog you can easily specify what bullet shape to use at each
16977  level of an itemized list.
16978  These settings are document-wide so you won't be able to specify different
16979  sets of bullets for different paragraphs.
16980 \begin_inset Foot
16981 status collapsed
16982
16983 \begin_layout Plain Layout
16984 Well, actually you can but you'll have to do it by hand.
16985 \end_layout
16986
16987 \end_inset
16988
16989
16990 \end_layout
16991
16992 \begin_layout Subsection
16993 How it looks
16994 \end_layout
16995
16996 \begin_layout Standard
16997 Open the dialog by selecting the 
16998 \begin_inset Flex Noun
16999 status collapsed
17000
17001 \begin_layout Plain Layout
17002 Document\SpecialChar menuseparator
17003 Settings
17004 \end_layout
17005
17006 \end_inset
17007
17008  menu item and then select the 
17009 \begin_inset Flex Noun
17010 status collapsed
17011
17012 \begin_layout Plain Layout
17013 Bullets
17014 \end_layout
17015
17016 \end_inset
17017
17018  tab.
17019 \end_layout
17020
17021 \begin_layout Standard
17022 The dialog provides you with a table of bullet shapes.
17023  A column of buttons on the left of the table provides access to the six
17024  different panels of bullet shapes.
17025  The row of buttons across the top is used to select which bullet depth
17026  you are changing.
17027  A text entry under the table shows the currently selected bullet shape's
17028  \SpecialChar LaTeX
17029  equivalent and this can be edited if desired.
17030  If you do modify the text you will also need to specify any needed packages
17031  in the \SpecialChar LaTeX
17032  preamble.
17033 \end_layout
17034
17035 \begin_layout Standard
17036 The six panels are divided up by the packages they require.
17037  The following table shows the mappings from button name to \SpecialChar LaTeX
17038  package.
17039 \begin_inset Separator latexpar
17040 \end_inset
17041
17042
17043 \end_layout
17044
17045 \begin_layout Standard
17046 \align center
17047 \begin_inset Tabular
17048 <lyxtabular version="3" rows="7" columns="2">
17049 <features tabularvalignment="middle">
17050 <column alignment="center" valignment="top" width="0pt">
17051 <column alignment="center" valignment="top" width="0pt">
17052 <row>
17053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17054 \begin_inset Text
17055
17056 \begin_layout Plain Layout
17057
17058 \family roman
17059 \series medium
17060 \shape up
17061 \size normal
17062 \emph off
17063 \bar no
17064 \noun off
17065 \color none
17066 Button
17067 \end_layout
17068
17069 \end_inset
17070 </cell>
17071 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17072 \begin_inset Text
17073
17074 \begin_layout Plain Layout
17075
17076 \family roman
17077 \series medium
17078 \shape up
17079 \size normal
17080 \emph off
17081 \bar no
17082 \noun off
17083 \color none
17084 Packages Required
17085 \end_layout
17086
17087 \end_inset
17088 </cell>
17089 </row>
17090 <row>
17091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17092 \begin_inset Text
17093
17094 \begin_layout Plain Layout
17095
17096 \family sans
17097 \series medium
17098 \shape up
17099 \size normal
17100 \emph off
17101 \bar no
17102 \noun off
17103 \color none
17104 Standard
17105 \end_layout
17106
17107 \end_inset
17108 </cell>
17109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17110 \begin_inset Text
17111
17112 \begin_layout Plain Layout
17113
17114 \series medium
17115 \shape up
17116 \size normal
17117 \emph off
17118 \bar no
17119 \noun off
17120 \color none
17121 base \SpecialChar LaTeX
17122
17123 \end_layout
17124
17125 \end_inset
17126 </cell>
17127 </row>
17128 <row>
17129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17130 \begin_inset Text
17131
17132 \begin_layout Plain Layout
17133
17134 \family sans
17135 \series medium
17136 \shape up
17137 \size normal
17138 \emph off
17139 \bar no
17140 \noun off
17141 \color none
17142 Maths
17143 \end_layout
17144
17145 \end_inset
17146 </cell>
17147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17148 \begin_inset Text
17149
17150 \begin_layout Plain Layout
17151
17152 \family typewriter
17153 \series medium
17154 \shape up
17155 \size normal
17156 \emph off
17157 \bar no
17158 \noun off
17159 \color none
17160 amssymb.sty
17161 \end_layout
17162
17163 \end_inset
17164 </cell>
17165 </row>
17166 <row>
17167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17168 \begin_inset Text
17169
17170 \begin_layout Plain Layout
17171
17172 \family sans
17173 \series medium
17174 \shape up
17175 \size normal
17176 \emph off
17177 \bar no
17178 \noun off
17179 \color none
17180 Ding1
17181 \end_layout
17182
17183 \end_inset
17184 </cell>
17185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17186 \begin_inset Text
17187
17188 \begin_layout Plain Layout
17189
17190 \family typewriter
17191 \series medium
17192 \shape up
17193 \size normal
17194 \emph off
17195 \bar no
17196 \noun off
17197 \color none
17198 pifont.sty
17199 \end_layout
17200
17201 \end_inset
17202 </cell>
17203 </row>
17204 <row>
17205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17206 \begin_inset Text
17207
17208 \begin_layout Plain Layout
17209
17210 \family sans
17211 \series medium
17212 \shape up
17213 \size normal
17214 \emph off
17215 \bar no
17216 \noun off
17217 \color none
17218 Ding2
17219 \end_layout
17220
17221 \end_inset
17222 </cell>
17223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17224 \begin_inset Text
17225
17226 \begin_layout Plain Layout
17227
17228 \family typewriter
17229 \series medium
17230 \shape up
17231 \size normal
17232 \emph off
17233 \bar no
17234 \noun off
17235 \color none
17236 pifont.sty
17237 \end_layout
17238
17239 \end_inset
17240 </cell>
17241 </row>
17242 <row>
17243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17244 \begin_inset Text
17245
17246 \begin_layout Plain Layout
17247
17248 \family sans
17249 \series medium
17250 \shape up
17251 \size normal
17252 \emph off
17253 \bar no
17254 \noun off
17255 \color none
17256 Ding3
17257 \end_layout
17258
17259 \end_inset
17260 </cell>
17261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17262 \begin_inset Text
17263
17264 \begin_layout Plain Layout
17265
17266 \family typewriter
17267 \series medium
17268 \shape up
17269 \size normal
17270 \emph off
17271 \bar no
17272 \noun off
17273 \color none
17274 pifont.sty
17275 \end_layout
17276
17277 \end_inset
17278 </cell>
17279 </row>
17280 <row>
17281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17282 \begin_inset Text
17283
17284 \begin_layout Plain Layout
17285
17286 \family sans
17287 \series medium
17288 \shape up
17289 \size normal
17290 \emph off
17291 \bar no
17292 \noun off
17293 \color none
17294 Ding4
17295 \end_layout
17296
17297 \end_inset
17298 </cell>
17299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17300 \begin_inset Text
17301
17302 \begin_layout Plain Layout
17303
17304 \family typewriter
17305 \series medium
17306 \shape up
17307 \size normal
17308 \emph off
17309 \bar no
17310 \noun off
17311 \color none
17312 pifont.sty
17313 \end_layout
17314
17315 \end_inset
17316 </cell>
17317 </row>
17318 </lyxtabular>
17319
17320 \end_inset
17321
17322
17323 \end_layout
17324
17325 \begin_layout Standard
17326 \SpecialChar LyX
17327  doesn't stop you using bullets from packages you don't have.
17328  If you get errors from \SpecialChar LaTeX
17329  when you try to view or print the file, then it
17330  is likely you are missing a package.
17331 \begin_inset Foot
17332 status collapsed
17333
17334 \begin_layout Plain Layout
17335 \SpecialChar LyX
17336  doesn't restrict your use since you may be editing locally and exporting
17337  elsewhere.
17338 \end_layout
17339
17340 \end_inset
17341
17342
17343 \end_layout
17344
17345 \begin_layout Subsection
17346 How to use it
17347 \end_layout
17348
17349 \begin_layout Standard
17350 Select which bullet depth you want to change then select the bullet shape
17351  and size.
17352  Any changes will not be visible in \SpecialChar LyX
17353 , but are visible when viewing the document.
17354 \end_layout
17355
17356 \begin_layout Standard
17357 You can reset a bullet shape to the default simply by clicking your right
17358  mouse button on the appropriate bullet depth button.
17359 \begin_inset Foot
17360 status collapsed
17361
17362 \begin_layout Plain Layout
17363 If you 
17364 \emph on
17365 really
17366 \emph default
17367  want to have multiple sets of paragraphs with different sets of bullets
17368  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
17369  code.
17370  The bullet selection dialog can help though because it provides you with
17371  the \SpecialChar LaTeX
17372  code for a wide range of bullet shapes.
17373  To make your own custom paragraphs you have the following options:
17374 \end_layout
17375
17376 \begin_layout Plain Layout
17377 \begin_inset ERT
17378 status open
17379
17380 \begin_layout Plain Layout
17381
17382
17383 \backslash
17384 let
17385 \backslash
17386 savelabelitemi=
17387 \backslash
17388 labelitemi
17389 \end_layout
17390
17391 \end_inset
17392
17393
17394 \end_layout
17395
17396 \begin_layout Plain Layout
17397 \begin_inset ERT
17398 status open
17399
17400 \begin_layout Plain Layout
17401
17402
17403 \backslash
17404 renewcommand
17405 \backslash
17406 labelitemi[0]{
17407 \backslash
17408 small
17409 \backslash
17410 (
17411 \backslash
17412 sharp
17413 \backslash
17414 )}
17415 \end_layout
17416
17417 \end_inset
17418
17419
17420 \end_layout
17421
17422 \begin_layout Itemize
17423 Use the \SpecialChar LaTeX
17424  command 
17425 \begin_inset Flex Code
17426 status collapsed
17427
17428 \begin_layout Plain Layout
17429
17430 \backslash
17431 renewcommand{}{}
17432 \end_layout
17433
17434 \end_inset
17435
17436  to specify a new bullet shape for a given depth.
17437  You'll also need to save the current bullet shape so you can restore it
17438  again afterwards.
17439  In this itemized list the following \SpecialChar LaTeX
17440  code was used to change the bullet
17441  used for the first depth.
17442 \begin_inset Separator latexpar
17443 \end_inset
17444
17445
17446 \end_layout
17447
17448 \begin_deeper
17449 \begin_layout LyX-Code
17450
17451 \backslash
17452 let
17453 \backslash
17454 savelabelitemi=
17455 \backslash
17456 labelitemi 
17457 \end_layout
17458
17459 \begin_layout LyX-Code
17460
17461 \backslash
17462 renewcommand
17463 \backslash
17464 labelitemi[0]{
17465 \backslash
17466 small
17467 \backslash
17468 (
17469 \backslash
17470 sharp
17471 \backslash
17472 )}
17473 \end_layout
17474
17475 \end_deeper
17476 \begin_layout Itemize
17477 Note that the itemize depth is specified in Roman numerals as part of the
17478  
17479 \family typewriter
17480
17481 \backslash
17482 labelitem
17483 \family default
17484  command.
17485 \end_layout
17486
17487 \begin_layout Itemize
17488 \begin_inset ERT
17489 status open
17490
17491 \begin_layout Plain Layout
17492
17493 [
17494 \backslash
17495 (
17496 \backslash
17497 star
17498 \backslash
17499 )]
17500 \end_layout
17501
17502 \end_inset
17503
17504  Specify each individual entry by starting each item with the bullet shape
17505  enclosed in square brackets and set as 
17506 \begin_inset Flex Noun
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510 \SpecialChar TeX
17511  Code
17512 \end_layout
17513
17514 \end_inset
17515
17516 .
17517  For example, this item was started with 
17518 \begin_inset Flex Code
17519 status collapsed
17520
17521 \begin_layout Plain Layout
17522 [
17523 \backslash
17524 (
17525 \backslash
17526 star
17527 \backslash
17528 )]
17529 \end_layout
17530
17531 \end_inset
17532
17533 .
17534 \end_layout
17535
17536 \begin_layout Plain Layout
17537 \begin_inset ERT
17538 status open
17539
17540 \begin_layout Plain Layout
17541
17542
17543 \backslash
17544 renewcommand
17545 \backslash
17546 labelitemi[0]{
17547 \backslash
17548 savelabelitemi}
17549 \end_layout
17550
17551 \end_inset
17552
17553
17554 \end_layout
17555
17556 \begin_layout Plain Layout
17557 You'll also need to revert the labelitem back to its previous setting for
17558  the global bullet shape settings to remain in effect.
17559  The way used here was:
17560 \end_layout
17561
17562 \begin_layout LyX-Code
17563
17564 \backslash
17565 renewcommand
17566 \backslash
17567 labelitemi[0]{
17568 \backslash
17569 savelabelitemi}
17570 \end_layout
17571
17572 \end_inset
17573
17574
17575 \end_layout
17576
17577 \begin_layout Chapter
17578 \SpecialChar LyX
17579  Features needing Extra Software
17580 \end_layout
17581
17582 \begin_layout Section
17583 Checking \SpecialChar TeX
17584
17585 \end_layout
17586
17587 \begin_layout Standard
17588 by 
17589 \noun on
17590 Asger Alstrup
17591 \end_layout
17592
17593 \begin_layout Subsection
17594 Introduction
17595 \end_layout
17596
17597 \begin_layout Standard
17598 If you have the 
17599 \family typewriter
17600 chktex
17601 \family default
17602  program installed
17603 \begin_inset Foot
17604 status collapsed
17605
17606 \begin_layout Plain Layout
17607
17608 \family typewriter
17609 chktex
17610 \family default
17611  is not yet available when you are using the \SpecialChar LaTeX
17612  distribution MiK\SpecialChar TeX
17613 .
17614 \end_layout
17615
17616 \end_inset
17617
17618 , you'll find in the 
17619 \family sans
17620 Tools
17621 \family default
17622  menu the entry: 
17623 \family sans
17624 Check
17625 \begin_inset space ~
17626 \end_inset
17627
17628 TeX
17629 \family default
17630 .
17631  You can get 
17632 \family typewriter
17633 chktex
17634 \family default
17635  from CTAN,
17636 \begin_inset Newline newline
17637 \end_inset
17638
17639
17640 \begin_inset CommandInset href
17641 LatexCommand href
17642 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17643
17644 \end_inset
17645
17646 .
17647 \end_layout
17648
17649 \begin_layout Standard
17650 The 
17651 \family sans
17652 Chk\SpecialChar TeX
17653
17654 \family default
17655  package is a program that was written by 
17656 \begin_inset Flex Noun
17657 status collapsed
17658
17659 \begin_layout Plain Layout
17660 Jens T.
17661 \begin_inset space ~
17662 \end_inset
17663
17664 Berger Thielemann
17665 \end_layout
17666
17667 \end_inset
17668
17669  in frustration because some constructs in \SpecialChar LaTeX
17670  are sometimes non-intuitive,
17671  and easy to forget.
17672  The program runs over your \SpecialChar LaTeX
17673  file, checks the integrity of the file, and
17674  flags some common errors.
17675  In other technical words, it is 
17676 \family typewriter
17677 lint
17678 \family default
17679  for \SpecialChar LaTeX
17680 .
17681 \end_layout
17682
17683 \begin_layout Standard
17684 Well, what is a syntax checker doing in \SpecialChar LyX
17685  which is supposed to produce correct
17686  \SpecialChar LaTeX
17687  anyways? The answer is simple: Just as 
17688 \family typewriter
17689 Lint
17690 \family default
17691  not only checks the 
17692 \emph on
17693 syntax
17694 \emph default
17695  of C programs, but also does 
17696 \emph on
17697 semantic
17698 \emph default
17699  checks for type-errors, 
17700 \family sans
17701 Chk\SpecialChar TeX
17702
17703 \family default
17704  catches some common 
17705 \emph on
17706 typographic
17707 \emph default
17708  errors, in addition to the syntactical ones.
17709  Specifically, 
17710 \family sans
17711 Chk\SpecialChar TeX
17712
17713 \family default
17714  is capable of detecting several common errors, such as
17715 \end_layout
17716
17717 \begin_layout Itemize
17718 Ellipsis detection:
17719 \begin_inset Newline newline
17720 \end_inset
17721
17722 Use \SpecialChar ldots
17723  instead of ...
17724 \end_layout
17725
17726 \begin_layout Itemize
17727 No space in front of/after parenthesis:
17728 \begin_inset Newline newline
17729 \end_inset
17730
17731 ( wrong spacing )
17732 \end_layout
17733
17734 \begin_layout Itemize
17735 Enforcement of normal space after common abbreviations:
17736 \begin_inset Newline newline
17737 \end_inset
17738
17739 e.
17740 \begin_inset space \thinspace{}
17741 \end_inset
17742
17743 g.
17744 \begin_inset space \space{}
17745 \end_inset
17746
17747 is too wide spacing.
17748 \end_layout
17749
17750 \begin_layout Itemize
17751 Enforcement of end-of-sentence space when the last sentence ends with a
17752  capital letter:
17753 \begin_inset Newline newline
17754 \end_inset
17755
17756 This is a TEST.
17757  And this is wrong spacing.
17758 \end_layout
17759
17760 \begin_layout Itemize
17761 Space in front of labels and similar commands:
17762 \begin_inset Newline newline
17763 \end_inset
17764
17765 The label should stick right up to the text to avoid falling to a wrong
17766  page.
17767  
17768 \begin_inset CommandInset label
17769 LatexCommand label
17770 name "sec:chktex"
17771
17772 \end_inset
17773
17774  
17775 \begin_inset Foot
17776 status collapsed
17777
17778 \begin_layout Plain Layout
17779 This footnote is in danger of falling off to a wrong page
17780 \end_layout
17781
17782 \end_inset
17783
17784  The label is separated too much.
17785 \end_layout
17786
17787 \begin_layout Itemize
17788 Space in front of references, instead of hard spaces:
17789 \begin_inset Newline newline
17790 \end_inset
17791
17792 If you have bad luck, the text will break right between the referenced text
17793  and reference number, and that's a pity.
17794  See section 
17795 \begin_inset CommandInset ref
17796 LatexCommand ref
17797 reference "sec:chktex"
17798
17799 \end_inset
17800
17801 .
17802 \end_layout
17803
17804 \begin_layout Itemize
17805 Use of 
17806 \begin_inset Quotes eld
17807 \end_inset
17808
17809 x
17810 \begin_inset Quotes erd
17811 \end_inset
17812
17813  instead of 
17814 \begin_inset Formula $\times$
17815 \end_inset
17816
17817  between numbers:
17818 \begin_inset Newline newline
17819 \end_inset
17820
17821 2x2 looks cheap compared to 
17822 \begin_inset Formula $2\times2$
17823 \end_inset
17824
17825 .
17826 \end_layout
17827
17828 \begin_layout Standard
17829 and more \SpecialChar ldots
17830  It is an invaluable tool when you are 
17831 \begin_inset Quotes eld
17832 \end_inset
17833
17834 finishing up
17835 \begin_inset Quotes erd
17836 \end_inset
17837
17838  your document before printing, and you should run it right after the obligatory
17839  spelling check, and before you go fine tuning the typesetting.
17840 \end_layout
17841
17842 \begin_layout Subsection
17843 How to use it
17844 \end_layout
17845
17846 \begin_layout Standard
17847 If you have the program installed, usage is as simple as choosing 
17848 \family sans
17849 Tools\SpecialChar menuseparator
17850 Check
17851 \begin_inset space ~
17852 \end_inset
17853
17854 TeX
17855 \family default
17856 .
17857  This will make \SpecialChar LyX
17858  generate a \SpecialChar LaTeX
17859  file of your document, start 
17860 \family sans
17861 Chk\SpecialChar TeX
17862
17863 \family default
17864  to check it, and then make \SpecialChar LyX
17865  insert 
17866 \begin_inset Quotes eld
17867 \end_inset
17868
17869 error boxes
17870 \begin_inset Quotes erd
17871 \end_inset
17872
17873  with the warnings from 
17874 \family sans
17875 Chk\SpecialChar TeX
17876
17877 \family default
17878 , if there were any.
17879  The warnings will be placed close to the point of the mistake, and you
17880  can quickly find them by using the 
17881 \family sans
17882 Navigate\SpecialChar menuseparator
17883 Error
17884 \family default
17885  menu item, or the shortcut key 
17886 \family sans
17887 C-g
17888 \family default
17889  from the default 
17890 \family typewriter
17891 cua
17892 \family default
17893  bind file.
17894  Open the error boxes by clicking on them with the mouse, or use the shortcut
17895  key 
17896 \family sans
17897 C-i
17898 \family default
17899  from 
17900 \family typewriter
17901 cua
17902 \family default
17903  bindings, or the corresponding 
17904 \family sans
17905 C-o
17906 \family default
17907  for the alternate 
17908 \family typewriter
17909 emacs
17910 \family default
17911  bind file.
17912  Read the warning and correct the mistake, if it is a mistake.
17913  If you have trouble understanding what the warning is about, you can safely
17914  ignore it.
17915  Remember that there is a hidden layer between the document on screen and
17916  the technical details in invoking 
17917 \family sans
17918 Chk\SpecialChar TeX
17919
17920 \family default
17921 , and this gap can make some warnings seem arcane or just plain silly.
17922 \end_layout
17923
17924 \begin_layout Standard
17925 This document is an excellent testing bed for the feature, and it should
17926  provide quite a few warnings for you to fiddle with.
17927  Since computers are only so smart, expect most of the warnings to be false
17928  alarms, though.
17929 \end_layout
17930
17931 \begin_layout Subsection
17932 How to fine tune it
17933 \end_layout
17934
17935 \begin_layout Standard
17936 Sometimes, you'll find that 
17937 \family sans
17938 Chk\SpecialChar TeX
17939
17940 \family default
17941  makes more noise than suits your mood.
17942  Then you can choose not to use it, wait until your mood changes, or try
17943  to customize 
17944 \family sans
17945 Chk\SpecialChar TeX
17946
17947 \family default
17948  to get better along with you.
17949 \end_layout
17950
17951 \begin_layout Standard
17952 Although 
17953 \family sans
17954 Chk\SpecialChar TeX
17955
17956 \family default
17957  
17958 \emph on
17959 is
17960 \emph default
17961  very configurable and extensible, you should not expect to solve all problems
17962  with 
17963 \family sans
17964 Chk\SpecialChar TeX
17965
17966 \family default
17967  in \SpecialChar LyX
17968  this way.
17969  Since \SpecialChar LyX
17970  has to generate a somewhat special \SpecialChar LaTeX
17971  file to be able to match the
17972  line numbers from the 
17973 \family sans
17974 Chk\SpecialChar TeX
17975
17976 \family default
17977  output
17978 \begin_inset Foot
17979 status collapsed
17980
17981 \begin_layout Plain Layout
17982 You can inspect the specific output from 
17983 \family sans
17984 chktex
17985 \family default
17986  by using 
17987 \family sans
17988 Document\SpecialChar menuseparator
17989 \SpecialChar LaTeX
17990
17991 \begin_inset space ~
17992 \end_inset
17993
17994 Log
17995 \family default
17996  right after a 
17997 \family sans
17998 chktex
17999 \family default
18000  run.
18001 \end_layout
18002
18003 \end_inset
18004
18005  to the internal document structure, some of the warnings will not appear
18006  correctly.
18007  There are two things you can do about this:
18008 \end_layout
18009
18010 \begin_layout Itemize
18011 Fine tune the 
18012 \family sans
18013 Chk\SpecialChar TeX
18014
18015 \family default
18016  invocation command line in 
18017 \begin_inset Flex Noun
18018 status collapsed
18019
18020 \begin_layout Plain Layout
18021 Tools\SpecialChar menuseparator
18022 Preferences\SpecialChar menuseparator
18023 Output\SpecialChar menuseparator
18024 LaTeX\SpecialChar menuseparator
18025 CheckTeX command
18026 \end_layout
18027
18028 \end_inset
18029
18030 , or the global 
18031 \family sans
18032 Chk\SpecialChar TeX
18033
18034 \family default
18035  installation configuration file (usually with the file 
18036 \family typewriter
18037 chktexrc
18038 \family default
18039 ).
18040  See below to learn what warnings can be enabled and disabled on the command
18041  line.
18042 \end_layout
18043
18044 \begin_layout Itemize
18045 Export your document as a raw \SpecialChar LaTeX
18046  file using 
18047 \family sans
18048 File\SpecialChar menuseparator
18049 Export\SpecialChar menuseparator
18050 \SpecialChar LaTeX
18051
18052 \family default
18053  and run 
18054 \family typewriter
18055 chktex
18056 \family default
18057  manually on that.
18058  Invoked in this way, it can be a hassle to find the corresponding place
18059  in the document inside \SpecialChar LyX
18060 , but with a little patience, you should be able
18061  to do it.
18062 \end_layout
18063
18064 \begin_layout Standard
18065 Here follows the warning messages that can be enabled and disabled in 
18066 \family sans
18067 Preferences
18068 \family default
18069 .
18070  Use 
18071 \family typewriter
18072 -n#
18073 \family default
18074  to disable a warning, and 
18075 \family typewriter
18076 -w#
18077 \family default
18078  to enable a warning.
18079  The emphasized entries are disabled by default, because the default is
18080  "
18081 \family typewriter
18082 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
18083 \family default
18084 ".
18085 \end_layout
18086
18087 \begin_layout Standard
18088 Notice that you should only use the options that enable and disable warnings,
18089  because \SpecialChar LyX
18090  relies on some of the other command line parameters to be set
18091  in a specific way to have a chance to communicate with 
18092 \family typewriter
18093 chktex
18094 \family default
18095 .
18096 \end_layout
18097
18098 \begin_layout Enumerate
18099
18100 \size small
18101 \emph on
18102 Command terminated with space.
18103 \end_layout
18104
18105 \begin_layout Enumerate
18106
18107 \size small
18108 Non-breaking space (
18109 \begin_inset Quotes eld
18110 \end_inset
18111
18112
18113 \family typewriter
18114 ~
18115 \family default
18116
18117 \begin_inset Quotes erd
18118 \end_inset
18119
18120 ) should have been used.
18121 \end_layout
18122
18123 \begin_layout Enumerate
18124
18125 \size small
18126 \emph on
18127 You should enclose the previous parenthesis with 
18128 \begin_inset Quotes eld
18129 \end_inset
18130
18131
18132 \family typewriter
18133 {}
18134 \family default
18135
18136 \begin_inset Quotes erd
18137 \end_inset
18138
18139 .
18140 \end_layout
18141
18142 \begin_layout Enumerate
18143
18144 \size small
18145 Italic correction (
18146 \begin_inset Quotes eld
18147 \end_inset
18148
18149
18150 \family typewriter
18151
18152 \backslash
18153 /
18154 \family default
18155
18156 \begin_inset Quotes erd
18157 \end_inset
18158
18159 ) found in non-italic buffer.
18160 \end_layout
18161
18162 \begin_layout Enumerate
18163
18164 \size small
18165 Italic correction (
18166 \begin_inset Quotes eld
18167 \end_inset
18168
18169
18170 \family typewriter
18171
18172 \backslash
18173 /
18174 \family default
18175
18176 \begin_inset Quotes erd
18177 \end_inset
18178
18179 ) found more than once.
18180 \end_layout
18181
18182 \begin_layout Enumerate
18183
18184 \size small
18185 \emph on
18186 No italic correction (
18187 \begin_inset Quotes eld
18188 \end_inset
18189
18190
18191 \family typewriter
18192
18193 \backslash
18194 /
18195 \family default
18196
18197 \begin_inset Quotes erd
18198 \end_inset
18199
18200 ) found.
18201 \end_layout
18202
18203 \begin_layout Enumerate
18204
18205 \size small
18206 Accent command 
18207 \begin_inset Quotes eld
18208 \end_inset
18209
18210
18211 \family typewriter
18212 cmd
18213 \family default
18214
18215 \begin_inset Quotes erd
18216 \end_inset
18217
18218  needs use of 
18219 \begin_inset Quotes eld
18220 \end_inset
18221
18222
18223 \family typewriter
18224 cmd
18225 \family default
18226
18227 \begin_inset Quotes erd
18228 \end_inset
18229
18230 .
18231 \end_layout
18232
18233 \begin_layout Enumerate
18234
18235 \size small
18236 Wrong length of dash may have been used.
18237 \end_layout
18238
18239 \begin_layout Enumerate
18240
18241 \size small
18242 \emph on
18243 \begin_inset Quotes eld
18244 \end_inset
18245
18246
18247 \family typewriter
18248 %s
18249 \family default
18250
18251 \begin_inset Quotes erd
18252 \end_inset
18253
18254  expected, found 
18255 \begin_inset Quotes eld
18256 \end_inset
18257
18258
18259 \family typewriter
18260 %s
18261 \family default
18262
18263 \begin_inset Quotes erd
18264 \end_inset
18265
18266 .
18267 \end_layout
18268
18269 \begin_layout Enumerate
18270
18271 \size small
18272 Solo 
18273 \begin_inset Quotes eld
18274 \end_inset
18275
18276
18277 \family typewriter
18278 %s
18279 \family default
18280
18281 \begin_inset Quotes erd
18282 \end_inset
18283
18284  found.
18285 \end_layout
18286
18287 \begin_layout Enumerate
18288
18289 \size small
18290 You should use 
18291 \begin_inset Quotes eld
18292 \end_inset
18293
18294
18295 \family typewriter
18296 %s
18297 \family default
18298
18299 \begin_inset Quotes erd
18300 \end_inset
18301
18302  to achieve an ellipsis.
18303 \end_layout
18304
18305 \begin_layout Enumerate
18306
18307 \size small
18308 Inter-word spacing (
18309 \begin_inset Quotes eld
18310 \end_inset
18311
18312
18313 \family typewriter
18314
18315 \backslash
18316
18317 \family default
18318  
18319 \begin_inset Quotes eld
18320 \end_inset
18321
18322 ) should perhaps be used.
18323 \end_layout
18324
18325 \begin_layout Enumerate
18326
18327 \size small
18328 Inter-sentence spacing (
18329 \begin_inset Quotes eld
18330 \end_inset
18331
18332
18333 \family typewriter
18334
18335 \backslash
18336 @
18337 \family default
18338
18339 \begin_inset Quotes erd
18340 \end_inset
18341
18342 ) should perhaps be used.
18343 \end_layout
18344
18345 \begin_layout Enumerate
18346
18347 \size small
18348 Could not find argument for command.
18349 \end_layout
18350
18351 \begin_layout Enumerate
18352
18353 \size small
18354 No match found for 
18355 \begin_inset Quotes eld
18356 \end_inset
18357
18358
18359 \family typewriter
18360 %s
18361 \family default
18362
18363 \begin_inset Quotes erd
18364 \end_inset
18365
18366 .
18367 \end_layout
18368
18369 \begin_layout Enumerate
18370
18371 \size small
18372 Math mode still on at end of \SpecialChar LaTeX
18373  file.
18374 \end_layout
18375
18376 \begin_layout Enumerate
18377
18378 \size small
18379 Number of 
18380 \begin_inset Quotes eld
18381 \end_inset
18382
18383
18384 \family typewriter
18385 char
18386 \family default
18387
18388 \begin_inset Quotes erd
18389 \end_inset
18390
18391  doesn't match the number of 
18392 \begin_inset Quotes eld
18393 \end_inset
18394
18395
18396 \family typewriter
18397 char
18398 \family default
18399
18400 \begin_inset Quotes erd
18401 \end_inset
18402
18403 .
18404 \end_layout
18405
18406 \begin_layout Enumerate
18407
18408 \size small
18409 You should use either 
18410 \family typewriter
18411
18412 \begin_inset Quotes eld
18413 \end_inset
18414
18415
18416 \family default
18417  or 
18418 \family typewriter
18419
18420 \begin_inset Quotes erd
18421 \end_inset
18422
18423
18424 \family default
18425  as an alternative to 
18426 \begin_inset Quotes eld
18427 \end_inset
18428
18429
18430 \family typewriter
18431 "
18432 \family default
18433
18434 \begin_inset Quotes erd
18435 \end_inset
18436
18437 .
18438 \end_layout
18439
18440 \begin_layout Enumerate
18441
18442 \size small
18443 You should use "
18444 \family typewriter
18445 '
18446 \family default
18447 " (ASCII 39) instead of "
18448 \family typewriter
18449 ´
18450 \family default
18451 " (ASCII 180).
18452 \end_layout
18453
18454 \begin_layout Enumerate
18455
18456 \size small
18457 User-specified pattern found.
18458 \end_layout
18459
18460 \begin_layout Enumerate
18461
18462 \size small
18463 This command might not be intended.
18464 \end_layout
18465
18466 \begin_layout Enumerate
18467
18468 \size small
18469 \emph on
18470 Comment displayed.
18471 \end_layout
18472
18473 \begin_layout Enumerate
18474
18475 \size small
18476 Either 
18477 \family typewriter
18478 ''
18479 \backslash
18480 ,'
18481 \family default
18482  or 
18483 \family typewriter
18484 '
18485 \backslash
18486 ,''
18487 \family default
18488  will look better.
18489 \end_layout
18490
18491 \begin_layout Enumerate
18492
18493 \size small
18494 Delete this space to maintain correct page references.
18495 \end_layout
18496
18497 \begin_layout Enumerate
18498
18499 \size small
18500 \emph on
18501 You might wish to put this between a pair of 
18502 \begin_inset Quotes eld
18503 \end_inset
18504
18505
18506 \family typewriter
18507 {}
18508 \family default
18509
18510 \begin_inset Quotes erd
18511 \end_inset
18512
18513 .
18514 \end_layout
18515
18516 \begin_layout Enumerate
18517
18518 \size small
18519 You ought to remove spaces in front of punctuation.
18520 \end_layout
18521
18522 \begin_layout Enumerate
18523
18524 \size small
18525 Could not execute \SpecialChar LaTeX
18526  command.
18527 \end_layout
18528
18529 \begin_layout Enumerate
18530
18531 \size small
18532 Don't use 
18533 \family typewriter
18534
18535 \backslash
18536 /
18537 \family default
18538  in front of small punctuation.
18539 \end_layout
18540
18541 \begin_layout Enumerate
18542
18543 \family typewriter
18544 \size small
18545 $
18546 \backslash
18547 times$
18548 \family default
18549  may look prettier here.
18550 \end_layout
18551
18552 \begin_layout Enumerate
18553
18554 \size small
18555 \emph on
18556 Multiple spaces detected in output.
18557 \end_layout
18558
18559 \begin_layout Enumerate
18560
18561 \size small
18562 This text may be ignored.
18563 \end_layout
18564
18565 \begin_layout Enumerate
18566
18567 \size small
18568 Use 
18569 \family typewriter
18570
18571 \begin_inset Quotes eld
18572 \end_inset
18573
18574
18575 \family default
18576  to begin quotation, not 
18577 \family typewriter
18578 '
18579 \family default
18580 .
18581 \end_layout
18582
18583 \begin_layout Enumerate
18584
18585 \size small
18586 Use 
18587 \family typewriter
18588 '
18589 \family default
18590  to end quotation, not 
18591 \family typewriter
18592
18593 \begin_inset Quotes eld
18594 \end_inset
18595
18596
18597 \family default
18598 .
18599 \end_layout
18600
18601 \begin_layout Enumerate
18602
18603 \size small
18604 Don't mix quotes.
18605 \end_layout
18606
18607 \begin_layout Enumerate
18608
18609 \size small
18610 You should perhaps use 
18611 \begin_inset Quotes eld
18612 \end_inset
18613
18614
18615 \family typewriter
18616 cmd
18617 \family default
18618
18619 \begin_inset Quotes erd
18620 \end_inset
18621
18622  instead.
18623 \end_layout
18624
18625 \begin_layout Enumerate
18626
18627 \size small
18628 You should put a space in front of/after parenthesis.
18629 \end_layout
18630
18631 \begin_layout Enumerate
18632
18633 \size small
18634 You should avoid spaces in front of/after parenthesis.
18635 \end_layout
18636
18637 \begin_layout Enumerate
18638
18639 \size small
18640 \emph on
18641 You should not use punctuation in front of/after quotes.
18642 \end_layout
18643
18644 \begin_layout Enumerate
18645
18646 \size small
18647 Double space found.
18648 \end_layout
18649
18650 \begin_layout Enumerate
18651
18652 \size small
18653 You should put punctuation outside inner/inside display math mode.
18654 \end_layout
18655
18656 \begin_layout Enumerate
18657
18658 \size small
18659 You ought to not use primitive \SpecialChar TeX
18660  in \SpecialChar LaTeX
18661  code.
18662 \end_layout
18663
18664 \begin_layout Enumerate
18665
18666 \size small
18667 You should remove spaces in front of 
18668 \begin_inset Quotes eld
18669 \end_inset
18670
18671
18672 \family typewriter
18673 %s
18674 \family default
18675
18676 \begin_inset Quotes erd
18677 \end_inset
18678
18679
18680 \end_layout
18681
18682 \begin_layout Enumerate
18683
18684 \size small
18685 \begin_inset Quotes eld
18686 \end_inset
18687
18688
18689 \family typewriter
18690 %s
18691 \family default
18692
18693 \begin_inset Quotes erd
18694 \end_inset
18695
18696  is normally not followed by 
18697 \begin_inset Quotes eld
18698 \end_inset
18699
18700
18701 \family typewriter
18702 %c
18703 \family default
18704
18705 \begin_inset Quotes erd
18706 \end_inset
18707
18708 .
18709 \end_layout
18710
18711 \begin_layout Standard
18712 In later versions of \SpecialChar LyX
18713 , we hope to provide a more complete interface to this
18714  tool (and it's smaller cousin 
18715 \family typewriter
18716 lacheck
18717 \family default
18718 ) to exploit the full power of it.
18719  But it's not exactly useless as it is now: go try it on one of your existing
18720  documents of a certain length and be surprised.
18721 \end_layout
18722
18723 \begin_layout Section
18724 Version Control in \SpecialChar LyX
18725
18726 \end_layout
18727
18728 \begin_layout Standard
18729 by
18730 \noun on
18731  Lars Gullik Bjønnes 
18732 \noun default
18733 and 
18734 \noun on
18735 Pavel Sanda
18736 \end_layout
18737
18738 \begin_layout Subsection
18739 Introduction
18740 \end_layout
18741
18742 \begin_layout Standard
18743 \SpecialChar LyX
18744  supports some of the most basic RCS/CVS/SVN/GIT commands.
18745  If you need something a bit more sophisticated you will have to do that
18746  manually in a terminal.
18747 \end_layout
18748
18749 \begin_layout Standard
18750 Also note that CVS support is not as good as subversion support so we advise
18751  using SVN instead.
18752  A good place to start learning Subversion is SVN Book
18753 \begin_inset Foot
18754 status collapsed
18755
18756 \begin_layout Plain Layout
18757 \begin_inset CommandInset href
18758 LatexCommand href
18759 target "http://svnbook.red-bean.com/"
18760
18761 \end_inset
18762
18763
18764 \end_layout
18765
18766 \end_inset
18767
18768 .
18769  In the case of RCS you should read 
18770 \begin_inset Quotes eld
18771 \end_inset
18772
18773 rcsintro
18774 \begin_inset Quotes erd
18775 \end_inset
18776
18777  (a man file, read it with 
18778 \family typewriter
18779 man rcsintro
18780 \family default
18781 ).
18782  This file describes all the basic features of RCS.
18783  You should especially notice the comment about a RCS directory, and the
18784  notion of a master RCS file (the file ending in 
18785 \family typewriter
18786 ,v
18787 \family default
18788 ).
18789 \end_layout
18790
18791 \begin_layout Standard
18792 Before you begin to use the version control features in \SpecialChar LyX
18793 , you should be
18794  familiar with RCS/CVS/SVN/GIT usage.
18795  The implementation in \SpecialChar LyX
18796  assumes a recent version of the GNU RCS or CVS/SVN
18797  package — no guarantees are made for older versions.
18798  Most of the log messages are not currently displayed after operations —
18799  you can check them in the Messages pane if unsure.
18800  Regular users of version control will appreciate VC toolbar, which can
18801  be enabled via 
18802 \family sans
18803 View\SpecialChar menuseparator
18804 Toolbars\SpecialChar menuseparator
18805 Version
18806 \begin_inset space ~
18807 \end_inset
18808
18809 Control
18810 \family default
18811 .
18812 \end_layout
18813
18814 \begin_layout Standard
18815 For introducing your own external commands consult vc-command in the manual
18816  of \SpecialChar LyX
18817  functions.
18818 \end_layout
18819
18820 \begin_layout Standard
18821 It is strongly recommended to store documents in uncompressed format if
18822  using version control (uncheck 
18823 \family sans
18824 Document\SpecialChar menuseparator
18825 Compressed
18826 \family default
18827  if it is checked): Uncompressed LyX documents are text files and therefore
18828  for merging two different versions by version control systems.
18829  Compressed LyX documents are binary files, which cannot be merged by version
18830  control systems.
18831 \end_layout
18832
18833 \begin_layout Subsection
18834 RCS commands in \SpecialChar LyX
18835
18836 \end_layout
18837
18838 \begin_layout Standard
18839 The following sections describe the RCS commands supported by \SpecialChar LyX
18840 .
18841  You can find them in the 
18842 \family sans
18843 File\SpecialChar menuseparator
18844 Version
18845 \begin_inset space ~
18846 \end_inset
18847
18848 Control
18849 \family default
18850  submenu.
18851  \SpecialChar LyX
18852  was tested against RCS 5.7/5.8.
18853 \end_layout
18854
18855 \begin_layout Subsubsection
18856
18857 \family sans
18858 Register
18859 \end_layout
18860
18861 \begin_layout Standard
18862 If your document is not under revision control, this is the only item shown
18863  in the menu.
18864  And if it is under revision control, the 
18865 \family sans
18866 Register
18867 \family default
18868  item is not visible.
18869  
18870 \end_layout
18871
18872 \begin_layout Standard
18873 This command registers your document with RCS (unless you are under the
18874  directory managed by CVS)\SpecialChar endofsentence
18875  You are asked interactively to supply an initial
18876  description of the document.
18877  The document is now set in Read-Only mode and you have to 
18878 \family sans
18879 Check
18880 \begin_inset space ~
18881 \end_inset
18882
18883 Out
18884 \begin_inset space ~
18885 \end_inset
18886
18887 For
18888 \begin_inset space ~
18889 \end_inset
18890
18891 Edit
18892 \family default
18893 , before making any changes to it.
18894  A document under revision control has a 
18895 \begin_inset Quotes eld
18896 \end_inset
18897
18898 [RCS:<version> <locker>]
18899 \begin_inset Quotes erd
18900 \end_inset
18901
18902  item tagged to the filename in the minibuffer.
18903 \end_layout
18904
18905 \begin_layout Standard
18906 RCS command that is run: 
18907 \family typewriter
18908 ci -q -u -i -t-"<initial description>" <file-name>
18909 \end_layout
18910
18911 \begin_layout Standard
18912 Read 
18913 \family typewriter
18914 man ci
18915 \family default
18916  to understand the switches.
18917  
18918 \end_layout
18919
18920 \begin_layout Subsubsection
18921
18922 \family sans
18923 Check In Changes
18924 \end_layout
18925
18926 \begin_layout Standard
18927 When you are finished editing a file, you check in your changes.
18928  When you do this, you are asked for a description of the changes.
18929  This is stored in the history log.
18930  The version number is bumped, your changes are applied to the master RCS
18931  file, the document is unlocked and set to Read-Only mode.
18932 \end_layout
18933
18934 \begin_layout Standard
18935 RCS command: 
18936 \family typewriter
18937 ci -q -u -m"<description>" <file-name>
18938 \end_layout
18939
18940 \begin_layout Subsubsection
18941
18942 \family sans
18943 Check Out For Edit
18944 \end_layout
18945
18946 \begin_layout Standard
18947 By doing this you lock the document so that only you can edit it.
18948  This will also make the document Read-Write only for you.
18949  You will usually continue editing for a while and when you are finished
18950  you check in your changes.
18951  The status line is changed to reflect that you have locked the file.
18952 \end_layout
18953
18954 \begin_layout Standard
18955 RCS command: 
18956 \family typewriter
18957 co -q -l <file-name>
18958 \end_layout
18959
18960 \begin_layout Subsubsection
18961
18962 \family sans
18963 Revert To Repository Version
18964 \end_layout
18965
18966 \begin_layout Standard
18967 This will discard all changes made to the document since the last check
18968  in.
18969  You get a warning before changes are discarded.
18970 \end_layout
18971
18972 \begin_layout Standard
18973 RCS command: 
18974 \family typewriter
18975 co -f -u<version> <file-name>
18976 \end_layout
18977
18978 \begin_layout Subsubsection
18979
18980 \family sans
18981 Copy
18982 \end_layout
18983
18984 \begin_layout Standard
18985 This will create a copy of the current document.
18986  Since RCS does not support copy operations natively, the version history
18987  is not preserved, and the copy is added as a new file.
18988  It requires a clean document without any changes since the last checkin.
18989  You are asked for a file name and a description of the copy operation.
18990  After that the copy is created, both locally and in the repository.
18991  If the parent directories of the copied and original document differ, all
18992  relative paths of included files of the copy are adjusted (like in 
18993 \family sans
18994 File\SpecialChar menuseparator
18995 Save As
18996 \family default
18997 \SpecialChar ldots
18998 ).
18999  Finally, the copy is loaded instead of the original document.
19000 \end_layout
19001
19002 \begin_layout Labeling
19003 \labelwidthstring 00.00.0000
19004 RCS
19005 \begin_inset space ~
19006 \end_inset
19007
19008 commands: 
19009 \begin_inset space ~
19010 \end_inset
19011
19012
19013 \begin_inset Newline newline
19014 \end_inset
19015
19016 Copy 
19017 \begin_inset Flex Code
19018 status collapsed
19019
19020 \begin_layout Plain Layout
19021
19022 \family typewriter
19023 \begin_inset Quotes eld
19024 \end_inset
19025
19026 <file-name>
19027 \begin_inset Quotes erd
19028 \end_inset
19029
19030
19031 \end_layout
19032
19033 \end_inset
19034
19035  to 
19036 \begin_inset Flex Code
19037 status collapsed
19038
19039 \begin_layout Plain Layout
19040
19041 \family typewriter
19042 \begin_inset Quotes eld
19043 \end_inset
19044
19045 <new-file-name>
19046 \begin_inset Quotes erd
19047 \end_inset
19048
19049
19050 \end_layout
19051
19052 \end_inset
19053
19054
19055 \begin_inset Newline newline
19056 \end_inset
19057
19058
19059 \begin_inset Flex Code
19060 status collapsed
19061
19062 \begin_layout Plain Layout
19063 ci -q -u 
19064 \family typewriter
19065 -i 
19066 \begin_inset Quotes eld
19067 \end_inset
19068
19069 <new-file-name>
19070 \begin_inset Quotes erd
19071 \end_inset
19072
19073
19074 \end_layout
19075
19076 \end_inset
19077
19078
19079 \end_layout
19080
19081 \begin_layout Subsubsection
19082
19083 \family sans
19084 Undo Last Checkin
19085 \end_layout
19086
19087 \begin_layout Standard
19088 This makes as if the last check in never happened.
19089  No changes are made to the document loaded into \SpecialChar LyX
19090 , but the last version
19091  is removed from the master RCS file.
19092 \end_layout
19093
19094 \begin_layout Standard
19095 RCS command: 
19096 \family typewriter
19097 rcs -o<version> <file-name>
19098 \end_layout
19099
19100 \begin_layout Subsubsection
19101
19102 \family sans
19103 Show History
19104 \end_layout
19105
19106 \begin_layout Standard
19107 This shows the complete history of the RCS document.
19108  The output of 
19109 \family typewriter
19110 rlog <file-name>
19111 \family default
19112  is shown in a browser.
19113  See 
19114 \family typewriter
19115 man rlog
19116 \family default
19117  for more info.
19118 \end_layout
19119
19120 \begin_layout Subsubsection
19121 Revision info
19122 \end_layout
19123
19124 \begin_layout Standard
19125 \SpecialChar LyX
19126  supports RCS version number, author name, date and time of last commit.
19127  All those are extracted from 
19128 \family typewriter
19129 rlog -r <file-name>
19130 \family default
19131 .
19132  See 
19133 \begin_inset CommandInset ref
19134 LatexCommand ref
19135 reference "subsec:VCS-Revision-Information"
19136
19137 \end_inset
19138
19139  for details.
19140 \end_layout
19141
19142 \begin_layout Subsection
19143 CVS commands in \SpecialChar LyX
19144
19145 \end_layout
19146
19147 \begin_layout Standard
19148 A subset of CVS operations is supported by \SpecialChar LyX
19149 .
19150  You can find the commands in the 
19151 \family sans
19152 File\SpecialChar menuseparator
19153 Version
19154 \begin_inset space ~
19155 \end_inset
19156
19157 Control
19158 \family default
19159  submenu.
19160  The version control system SVN is more powerful, so please use it instead
19161  of CVS if possible.
19162 \end_layout
19163
19164 \begin_layout Subsubsection
19165
19166 \family sans
19167 General CVS usage
19168 \end_layout
19169
19170 \begin_layout Standard
19171 If you start from scratch with CVS you have to create your repository and
19172  checkout the working copy with external tools.
19173  If you're using a client-server setup you may need to login before doing
19174  the first repository checkout.
19175 \end_layout
19176
19177 \begin_layout Standard
19178 If your documents are under revision control and others are using the same
19179  repository problems arise when different changes to the same document at
19180  the same location happen.
19181  Standard CVS repositories don't operate with a file locking mechanism.
19182  This may be surprising, but conflicts only occur if people disagree on
19183  the proper content of the same part of a document.
19184  So, if co-workers are used to communicate regularly, these conflicts occur
19185  rarely.
19186  If they don't communicate they have a fundamental problem anyway.
19187  Nevertheless some people like to work with so called 
19188 \begin_inset Quotes eld
19189 \end_inset
19190
19191 reserved checkouts
19192 \begin_inset Quotes erd
19193 \end_inset
19194
19195 .
19196  If they do so the working copy of all files is readonly when checked out
19197  first and the user starts editing after using a special command to make
19198  the working copy writable.
19199  When the changes are checked in the working copy returns to readonly state.
19200  With \SpecialChar LyX
19201  one has to edit the 
19202 \begin_inset Flex Code
19203 status collapsed
19204
19205 \begin_layout Plain Layout
19206 .cvsrc
19207 \end_layout
19208
19209 \end_inset
19210
19211  file and add the line 
19212 \begin_inset Flex Code
19213 status collapsed
19214
19215 \begin_layout Plain Layout
19216 cvs -r
19217 \end_layout
19218
19219 \end_inset
19220
19221  to work with reserved checkouts.
19222  The benefit is the possibility to see who is using a writable copy of some
19223  document.
19224  It's not guaranteed only one user makes a copy writable.
19225 \end_layout
19226
19227 \begin_layout Standard
19228 \SpecialChar LyX
19229  tries to guess if you're using reserved or non-reserved checkouts.
19230  If your working copy is readonly or it is writable and an additional copy
19231  of your document exists in the CVS/Base sub-directory a reserved otherwise
19232  a non-reserved checkout is assumed.
19233  When a reserved checkout is detected you have to use 
19234 \begin_inset Flex Noun
19235 status collapsed
19236
19237 \begin_layout Plain Layout
19238 Check Out
19239 \end_layout
19240
19241 \end_inset
19242
19243  to make your working copy writable if it's readonly.
19244  After doing so the 
19245 \begin_inset Flex Noun
19246 status collapsed
19247
19248 \begin_layout Plain Layout
19249 Check In
19250 \end_layout
19251
19252 \end_inset
19253
19254  operation is possible and that makes your working copy readonly again after
19255  transferring your changes to the repository.
19256 \end_layout
19257
19258 \begin_layout Standard
19259 More information about CVS can be found here 
19260 \begin_inset Flex URL
19261 status collapsed
19262
19263 \begin_layout Plain Layout
19264
19265 http://www.nongnu.org/cvs
19266 \end_layout
19267
19268 \end_inset
19269
19270  and here 
19271 \begin_inset Flex URL
19272 status collapsed
19273
19274 \begin_layout Plain Layout
19275
19276 http://ximbiot.com/cvs
19277 \end_layout
19278
19279 \end_inset
19280
19281 .
19282 \end_layout
19283
19284 \begin_layout Standard
19285 Read 
19286 \family typewriter
19287 man cvs
19288 \family default
19289  to understand the sub-commands and the switches mentioned below.
19290 \end_layout
19291
19292 \begin_layout Subsubsection
19293
19294 \family sans
19295 Register
19296 \end_layout
19297
19298 \begin_layout Standard
19299 If your document is not under revision control, this is the only item shown
19300  in the menu.
19301  And if it is under revision control, the 
19302 \family sans
19303 Register
19304 \family default
19305  item is not visible.
19306  
19307 \end_layout
19308
19309 \begin_layout Standard
19310 This command registers in CVS your document 
19311 \begin_inset Flex Strong
19312 status collapsed
19313
19314 \begin_layout Plain Layout
19315
19316 \emph on
19317 only
19318 \end_layout
19319
19320 \end_inset
19321
19322  in the case you have already the documents directory under CVS control
19323  (in particular 
19324 \family typewriter
19325 CVS/Entries
19326 \family default
19327  file exists).
19328  This means you have to create or checkout the archive by yourself using
19329  external tools.
19330  (In case you forget that step \SpecialChar LyX
19331  registers the document with RCS.)
19332 \end_layout
19333
19334 \begin_layout Standard
19335 Then you are asked interactively to supply an initial description of the
19336  document.
19337  Don't forget that registered file is not yet checked in.
19338 \end_layout
19339
19340 \begin_layout Standard
19341 CVS command that is run: 
19342 \family typewriter
19343 cvs -q add -m"<entered message>" "<file-name>"
19344 \end_layout
19345
19346 \begin_layout Standard
19347 The term 
19348 \family typewriter
19349 "<file-name>"
19350 \family default
19351  above and for all other CVS commands is an abbreviation for 
19352 \begin_inset Quotes eld
19353 \end_inset
19354
19355 change the current working directory to file location and use the file name
19356  without path component as argument
19357 \begin_inset Quotes erd
19358 \end_inset
19359
19360 .
19361 \end_layout
19362
19363 \begin_layout Subsubsection
19364
19365 \family sans
19366 Check In Changes
19367 \end_layout
19368
19369 \begin_layout Standard
19370 When you are finished editing a file, you commit your changes.
19371  When you do this and you had changed the document, you are asked for a
19372  description of the changes.
19373  After that changes are written to the repository.
19374  In case you didn't change the document and a reserved checkout is detected
19375  the reservation made on 
19376 \begin_inset Flex Noun
19377 status collapsed
19378
19379 \begin_layout Plain Layout
19380 Check Out
19381 \end_layout
19382
19383 \end_inset
19384
19385  is undone.
19386 \end_layout
19387
19388 \begin_layout Labeling
19389 \labelwidthstring 00.00.0000
19390 CVS
19391 \begin_inset space ~
19392 \end_inset
19393
19394 command: 
19395 \begin_inset space ~
19396 \end_inset
19397
19398
19399 \begin_inset Newline newline
19400 \end_inset
19401
19402
19403 \begin_inset Flex Code
19404 status collapsed
19405
19406 \begin_layout Plain Layout
19407 cvs 
19408 \family typewriter
19409 -q commit -m"<description>" "<file-name>"
19410 \end_layout
19411
19412 \end_inset
19413
19414  or
19415 \begin_inset Newline newline
19416 \end_inset
19417
19418
19419 \begin_inset Flex Code
19420 status collapsed
19421
19422 \begin_layout Plain Layout
19423 cvs -q unedit 
19424 \family typewriter
19425 "<file-name>"
19426 \end_layout
19427
19428 \end_inset
19429
19430
19431 \end_layout
19432
19433 \begin_layout Subsubsection
19434
19435 \family sans
19436 Check Out Changes
19437 \end_layout
19438
19439 \begin_layout Standard
19440 When you are sharing a repository with others, you may have to incorporate
19441  their changes into your working copy.
19442 \end_layout
19443
19444 \begin_layout Standard
19445 CVS command: 
19446 \family typewriter
19447 cvs -q update "<file-name>"
19448 \end_layout
19449
19450 \begin_layout Standard
19451 If a readonly checkout is detected the working copy is made writable and
19452  reserved.
19453 \end_layout
19454
19455 \begin_layout Standard
19456 CVS command: 
19457 \family typewriter
19458 cvs -q edit "<file-name>"
19459 \end_layout
19460
19461 \begin_layout Subsubsection
19462
19463 \family sans
19464 Revert To Repository Version
19465 \end_layout
19466
19467 \begin_layout Standard
19468 This will discard all changes made to the document since the last check
19469  in.
19470  You get a warning before changes are discarded.
19471  Firstly the file is deleted, secondly CVS update command is run.
19472 \end_layout
19473
19474 \begin_layout Standard
19475 CVS command: 
19476 \family typewriter
19477 cvs -q update "<file-name>"
19478 \end_layout
19479
19480 \begin_layout Standard
19481 If a reserved checkout is detected and the working copy has no changes only
19482  the reservation is undone.
19483 \end_layout
19484
19485 \begin_layout Standard
19486 CVS command: 
19487 \family typewriter
19488 cvs -q unedit "<file-name>"
19489 \end_layout
19490
19491 \begin_layout Subsubsection
19492
19493 \family sans
19494 Copy
19495 \end_layout
19496
19497 \begin_layout Standard
19498 This will create a copy of the current document.
19499  Since CVS does not support copy operations natively, the version history
19500  is not preserved, and the copy is added as a new file.
19501  It requires a clean document without any changes since the last checkin.
19502  You are asked for a file name and a description of the copy operation.
19503  After that the copy is created, both locally and in the repository.
19504  If the parent directories of the copied and original document differ, all
19505  relative paths of included files of the copy are adjusted (like in 
19506 \family sans
19507 File\SpecialChar menuseparator
19508 Save As
19509 \family default
19510 \SpecialChar ldots
19511 ).
19512  Finally, the copy is loaded instead of the original document.
19513 \end_layout
19514
19515 \begin_layout Labeling
19516 \labelwidthstring 00.00.0000
19517 CVS
19518 \begin_inset space ~
19519 \end_inset
19520
19521 commands: 
19522 \begin_inset space ~
19523 \end_inset
19524
19525
19526 \begin_inset Newline newline
19527 \end_inset
19528
19529 Copy 
19530 \begin_inset Flex Code
19531 status collapsed
19532
19533 \begin_layout Plain Layout
19534
19535 \family typewriter
19536 \begin_inset Quotes eld
19537 \end_inset
19538
19539 <file-name>
19540 \begin_inset Quotes erd
19541 \end_inset
19542
19543
19544 \end_layout
19545
19546 \end_inset
19547
19548  to 
19549 \begin_inset Flex Code
19550 status collapsed
19551
19552 \begin_layout Plain Layout
19553
19554 \family typewriter
19555 \begin_inset Quotes eld
19556 \end_inset
19557
19558 <new-file-name>
19559 \begin_inset Quotes erd
19560 \end_inset
19561
19562
19563 \end_layout
19564
19565 \end_inset
19566
19567
19568 \begin_inset Newline newline
19569 \end_inset
19570
19571
19572 \begin_inset Flex Code
19573 status collapsed
19574
19575 \begin_layout Plain Layout
19576 cvs -q add 
19577 \family typewriter
19578
19579 \begin_inset Quotes eld
19580 \end_inset
19581
19582 <new-file-name>
19583 \begin_inset Quotes erd
19584 \end_inset
19585
19586
19587 \end_layout
19588
19589 \end_inset
19590
19591
19592 \end_layout
19593
19594 \begin_layout Subsubsection
19595
19596 \family sans
19597 Rename
19598 \end_layout
19599
19600 \begin_layout Standard
19601 This will rename the current document.
19602  Since CVS does not support rename operations natively, the version history
19603  is not preserved, the renamed document is added as a new file, and the
19604  original document is deleted.
19605  It requires a clean document without any changes since the last checkin.
19606  You are asked for a file name and a description of the rename operation.
19607  After that the document is renamed, both locally and in the repository.
19608  If the parent directories of the new and old file names differ, all relative
19609  paths of included files are adjusted (like in 
19610 \family sans
19611 File\SpecialChar menuseparator
19612 Save As
19613 \family default
19614 \SpecialChar ldots
19615 ).
19616  Finally, the document is reloaded using the new name.
19617 \end_layout
19618
19619 \begin_layout Labeling
19620 \labelwidthstring 00.00.0000
19621 CVS
19622 \begin_inset space ~
19623 \end_inset
19624
19625 commands: 
19626 \begin_inset space ~
19627 \end_inset
19628
19629
19630 \begin_inset Newline newline
19631 \end_inset
19632
19633 Rename 
19634 \begin_inset Flex Code
19635 status collapsed
19636
19637 \begin_layout Plain Layout
19638
19639 \family typewriter
19640 \begin_inset Quotes eld
19641 \end_inset
19642
19643 <file-name>
19644 \begin_inset Quotes erd
19645 \end_inset
19646
19647
19648 \end_layout
19649
19650 \end_inset
19651
19652  to 
19653 \begin_inset Flex Code
19654 status collapsed
19655
19656 \begin_layout Plain Layout
19657
19658 \family typewriter
19659 \begin_inset Quotes eld
19660 \end_inset
19661
19662 <new-file-name>
19663 \begin_inset Quotes erd
19664 \end_inset
19665
19666
19667 \end_layout
19668
19669 \end_inset
19670
19671
19672 \begin_inset Newline newline
19673 \end_inset
19674
19675
19676 \begin_inset Flex Code
19677 status collapsed
19678
19679 \begin_layout Plain Layout
19680 cvs -q add 
19681 \family typewriter
19682
19683 \begin_inset Quotes eld
19684 \end_inset
19685
19686 <new-file-name>
19687 \begin_inset Quotes erd
19688 \end_inset
19689
19690
19691 \end_layout
19692
19693 \end_inset
19694
19695
19696 \begin_inset Newline newline
19697 \end_inset
19698
19699
19700 \begin_inset Flex Code
19701 status collapsed
19702
19703 \begin_layout Plain Layout
19704 cvs -q remove 
19705 \family typewriter
19706
19707 \begin_inset Quotes eld
19708 \end_inset
19709
19710 <file-name>
19711 \begin_inset Quotes erd
19712 \end_inset
19713
19714
19715 \end_layout
19716
19717 \end_inset
19718
19719
19720 \end_layout
19721
19722 \begin_layout Subsubsection
19723 Update of the local directory checkout from repository
19724 \end_layout
19725
19726 \begin_layout Standard
19727 Once your documents gets more complex, containing sub-documents and pictures,
19728  including external 
19729 \begin_inset Flex Code
19730 status collapsed
19731
19732 \begin_layout Plain Layout
19733 .tex
19734 \end_layout
19735
19736 \end_inset
19737
19738  files and so on using version control becomes more complicated.
19739  \SpecialChar LyX
19740  supports updating the whole tree in which resides the document.
19741  This become especially useful once you cooperate with people which neither
19742  have detailed knowledge about CVS usage nor they have ambition to commit
19743  additional material to the repository.
19744  You have to organize the files structure so that all external files are
19745  in the same directory or subdirectories of the document.
19746  It's good practice anyway to store multipart documents in an extra directory.
19747 \end_layout
19748
19749 \begin_layout Standard
19750 The 
19751 \begin_inset Flex Code
19752 status collapsed
19753
19754 \begin_layout Plain Layout
19755 Update local directory from repository
19756 \end_layout
19757
19758 \end_inset
19759
19760  command updates the whole directory.
19761  If local changes are detected user is warned before update starts.
19762  In case of merge conflicts both versions of the conflicting document parts
19763  are placed in the final document.
19764  You have to review and correct the result of the merge.
19765  You'll find the conflicts enclosed in pairs of 
19766 \begin_inset Flex Code
19767 status collapsed
19768
19769 \begin_layout Plain Layout
19770 <<<<<<<
19771 \end_layout
19772
19773 \end_inset
19774
19775  and 
19776 \begin_inset Flex Code
19777 status collapsed
19778
19779 \begin_layout Plain Layout
19780 >>>>>>>
19781 \end_layout
19782
19783 \end_inset
19784
19785  separated by 
19786 \begin_inset Flex Code
19787 status collapsed
19788
19789 \begin_layout Plain Layout
19790 =======
19791 \end_layout
19792
19793 \end_inset
19794
19795 .
19796  The first part is your version as before the update operation with the
19797  document name prepended.
19798  The second one is the repository version with the version number after
19799  the sequence of 
19800 \begin_inset Flex Code
19801 status collapsed
19802
19803 \begin_layout Plain Layout
19804 >
19805 \end_layout
19806
19807 \end_inset
19808
19809  signs.
19810 \end_layout
19811
19812 \begin_layout Labeling
19813 \labelwidthstring 00.00.0000
19814 CVS
19815 \begin_inset space ~
19816 \end_inset
19817
19818 commands: 
19819 \begin_inset space ~
19820 \end_inset
19821
19822
19823 \begin_inset Newline newline
19824 \end_inset
19825
19826
19827 \begin_inset Flex Code
19828 status collapsed
19829
19830 \begin_layout Plain Layout
19831 cd $path; cvs diff 
19832 \family typewriter
19833 "."
19834 \end_layout
19835
19836 \end_inset
19837
19838  (Ask if changes are detected.)
19839 \begin_inset Newline newline
19840 \end_inset
19841
19842
19843 \begin_inset Flex Code
19844 status collapsed
19845
19846 \begin_layout Plain Layout
19847 cd $path; cvs -q update 
19848 \family typewriter
19849 "."
19850 \end_layout
19851
19852 \end_inset
19853
19854
19855 \end_layout
19856
19857 \begin_layout Standard
19858 where 
19859 \begin_inset Flex Code
19860 status collapsed
19861
19862 \begin_layout Plain Layout
19863 $path
19864 \end_layout
19865
19866 \end_inset
19867
19868  stands for the path to the document.
19869 \end_layout
19870
19871 \begin_layout Subsubsection
19872
19873 \family sans
19874 Show History
19875 \end_layout
19876
19877 \begin_layout Standard
19878 This shows the complete history of the CVS document.
19879  The output of 
19880 \family typewriter
19881 cvs log "<file-name>"
19882 \family default
19883  is shown in a browser.
19884 \end_layout
19885
19886 \begin_layout Subsubsection
19887 Revision info
19888 \end_layout
19889
19890 \begin_layout Standard
19891 \SpecialChar LyX
19892  supports CVS version number, author name, date and time of last commit.
19893  All those are extracted from 
19894 \family typewriter
19895 cvs log -r <file-name>
19896 \family default
19897 .
19898  See 
19899 \begin_inset CommandInset ref
19900 LatexCommand ref
19901 reference "subsec:VCS-Revision-Information"
19902
19903 \end_inset
19904
19905  for details.
19906 \end_layout
19907
19908 \begin_layout Subsection
19909 SVN commands in \SpecialChar LyX
19910
19911 \end_layout
19912
19913 \begin_layout Standard
19914 SVN is now partially supported by \SpecialChar LyX
19915 .
19916  You can find the commands in the 
19917 \family sans
19918 File\SpecialChar menuseparator
19919 Version
19920 \begin_inset space ~
19921 \end_inset
19922
19923 Control
19924 \family default
19925  submenu.
19926  Please note that if you use password protected access to repository via
19927  ssh, you will be asked in terminal window.
19928  \SpecialChar LyX
19929  was tested against SVN 1.5, 1.6, 1.7 and 1.8
19930 \begin_inset Foot
19931 status open
19932
19933 \begin_layout Plain Layout
19934 Most of the commands will work with 1.4 too, see 
19935 \begin_inset CommandInset ref
19936 LatexCommand ref
19937 reference "subsec:SVN-Repo-Update"
19938
19939 \end_inset
19940
19941 .
19942  There seems to be currently unresolved permissions problem under SVN 1.8
19943  with reverting changes when file is locked.
19944 \end_layout
19945
19946 \end_inset
19947
19948
19949 \end_layout
19950
19951 \begin_layout Subsubsection
19952
19953 \family sans
19954 Register
19955 \end_layout
19956
19957 \begin_layout Standard
19958 If your document is not under revision control, this is the only item shown
19959  in the menu.
19960  And if it is under revision control, the 
19961 \family sans
19962 Register
19963 \family default
19964  item is not visible.
19965 \end_layout
19966
19967 \begin_layout Standard
19968 This command registers in SVN your document ONLY in case you have already
19969  the documents directory under SVN control (in particular 
19970 \family typewriter
19971 .svn/entries
19972 \family default
19973  file exists).
19974  This means you have to checkout the archive by yourself.
19975 \end_layout
19976
19977 \begin_layout Standard
19978 Then you are asked interactively to supply an initial description of the
19979  document.
19980  Don't forget that registered file is not yet commited.
19981 \end_layout
19982
19983 \begin_layout Standard
19984 SVN command that is run: 
19985 \family typewriter
19986 svn add -q 
19987 \begin_inset Quotes eld
19988 \end_inset
19989
19990 <file-name>
19991 \begin_inset Quotes erd
19992 \end_inset
19993
19994
19995 \end_layout
19996
19997 \begin_layout Standard
19998 Read 
19999 \family typewriter
20000 man svn
20001 \family default
20002  to understand the switches.
20003 \end_layout
20004
20005 \begin_layout Subsubsection
20006
20007 \family sans
20008 Check In Changes
20009 \end_layout
20010
20011 \begin_layout Standard
20012 When you are finished editing a file, you commit your changes.
20013  When you do this, you are asked for a description of the changes.
20014  After that changes are commited.
20015 \end_layout
20016
20017 \begin_layout Standard
20018 SVN command:
20019 \begin_inset Foot
20020 status collapsed
20021
20022 \begin_layout Plain Layout
20023 In case locking is not enabled.
20024  See Section 
20025 \begin_inset CommandInset ref
20026 LatexCommand ref
20027 reference "subsec:SVN-File-Locking"
20028
20029 \end_inset
20030
20031 .
20032 \end_layout
20033
20034 \end_inset
20035
20036  
20037 \family typewriter
20038 svn commit -q -m"<description>" <file-name>
20039 \end_layout
20040
20041 \begin_layout Subsubsection
20042
20043 \family sans
20044 Check Out For Edit
20045 \end_layout
20046
20047 \begin_layout Standard
20048 Updates the changes of this file from the repository.
20049  Be sure you understand SVN merging and conflicts resolving before using
20050  this function, because all conflicts has to be resolved manually by you!
20051 \end_layout
20052
20053 \begin_layout Standard
20054 SVN command:
20055 \begin_inset Foot
20056 status collapsed
20057
20058 \begin_layout Plain Layout
20059 Ditto.
20060 \end_layout
20061
20062 \end_inset
20063
20064  
20065 \family typewriter
20066 svn update --non-interactive 
20067 \begin_inset Quotes eld
20068 \end_inset
20069
20070 <file-name>
20071 \begin_inset Quotes erd
20072 \end_inset
20073
20074
20075 \end_layout
20076
20077 \begin_layout Subsubsection
20078
20079 \family sans
20080 Revert To Repository Version
20081 \end_layout
20082
20083 \begin_layout Standard
20084 This will discard all changes made to the document since the last check
20085  in.
20086  You get a warning before changes are discarded.
20087 \end_layout
20088
20089 \begin_layout Standard
20090 SVN command: 
20091 \family typewriter
20092 svn revert -q 
20093 \begin_inset Quotes eld
20094 \end_inset
20095
20096 <file-name>
20097 \begin_inset Quotes erd
20098 \end_inset
20099
20100
20101 \end_layout
20102
20103 \begin_layout Subsubsection
20104
20105 \family sans
20106 Copy
20107 \end_layout
20108
20109 \begin_layout Standard
20110 This will create a copy of the current document including the version history.
20111  It requires a clean document without any changes since the last checkin.
20112  You are asked for a file name and a description of the copy operation.
20113  After that the copy is created, both locally and in the repository.
20114  If the parent directories of the copied and original document differ, all
20115  relative paths of included files of the copy are adjusted (like in 
20116 \family sans
20117 File\SpecialChar menuseparator
20118 Save As
20119 \family default
20120 \SpecialChar ldots
20121 ).
20122  Finally, the copy is loaded instead of the original document.
20123 \end_layout
20124
20125 \begin_layout Labeling
20126 \labelwidthstring 00.00.0000
20127 SVN
20128 \begin_inset space ~
20129 \end_inset
20130
20131 commands: 
20132 \begin_inset space ~
20133 \end_inset
20134
20135
20136 \begin_inset Newline newline
20137 \end_inset
20138
20139
20140 \begin_inset Flex Code
20141 status collapsed
20142
20143 \begin_layout Plain Layout
20144 svn copy -q 
20145 \family typewriter
20146
20147 \begin_inset Quotes eld
20148 \end_inset
20149
20150 <file-name>
20151 \begin_inset Quotes erd
20152 \end_inset
20153
20154  
20155 \begin_inset Quotes eld
20156 \end_inset
20157
20158 <new-file-name>
20159 \begin_inset Quotes erd
20160 \end_inset
20161
20162
20163 \end_layout
20164
20165 \end_inset
20166
20167
20168 \begin_inset Newline newline
20169 \end_inset
20170
20171
20172 \begin_inset Flex Code
20173 status collapsed
20174
20175 \begin_layout Plain Layout
20176 svn commit
20177 \end_layout
20178
20179 \end_inset
20180
20181
20182 \end_layout
20183
20184 \begin_layout Subsubsection
20185
20186 \family sans
20187 Rename
20188 \end_layout
20189
20190 \begin_layout Standard
20191 This will rename the current document including the version history.
20192  It requires a clean document without any changes since the last checkin.
20193  You are asked for a file name and a description of the rename operation.
20194  After that the document is renamed, both locally and in the repository.
20195  If the parent directories of the new and old file names differ, all relative
20196  paths of included files are adjusted (like in 
20197 \family sans
20198 File\SpecialChar menuseparator
20199 Save As
20200 \family default
20201 \SpecialChar ldots
20202 ).
20203  Finally, the document is reloaded using the new name.
20204 \end_layout
20205
20206 \begin_layout Labeling
20207 \labelwidthstring 00.00.0000
20208 SVN
20209 \begin_inset space ~
20210 \end_inset
20211
20212 commands: 
20213 \begin_inset space ~
20214 \end_inset
20215
20216
20217 \begin_inset Newline newline
20218 \end_inset
20219
20220
20221 \begin_inset Flex Code
20222 status collapsed
20223
20224 \begin_layout Plain Layout
20225 svn move -q 
20226 \family typewriter
20227
20228 \begin_inset Quotes eld
20229 \end_inset
20230
20231 <file-name>
20232 \begin_inset Quotes erd
20233 \end_inset
20234
20235  
20236 \begin_inset Quotes eld
20237 \end_inset
20238
20239 <new-file-name>
20240 \begin_inset Quotes erd
20241 \end_inset
20242
20243
20244 \end_layout
20245
20246 \end_inset
20247
20248
20249 \begin_inset Newline newline
20250 \end_inset
20251
20252
20253 \begin_inset Flex Code
20254 status collapsed
20255
20256 \begin_layout Plain Layout
20257 svn commit
20258 \end_layout
20259
20260 \end_inset
20261
20262
20263 \end_layout
20264
20265 \begin_layout Subsubsection
20266 \begin_inset CommandInset label
20267 LatexCommand label
20268 name "subsec:SVN-Repo-Update"
20269
20270 \end_inset
20271
20272 Update of the local directory checkout from repository
20273 \begin_inset Foot
20274 status collapsed
20275
20276 \begin_layout Plain Layout
20277 Note that this command will work only with subversion 
20278 \begin_inset Formula $\geqq1.5$
20279 \end_inset
20280
20281
20282 \end_layout
20283
20284 \end_inset
20285
20286
20287 \end_layout
20288
20289 \begin_layout Standard
20290 All the commands above have one shortcomming - they deal with the current
20291  document only.
20292  Once your document contains pictures, includes external 
20293 \begin_inset Flex Code
20294 status collapsed
20295
20296 \begin_layout Plain Layout
20297 .tex
20298 \end_layout
20299
20300 \end_inset
20301
20302  files and so on administration becomes more complicated.
20303  \SpecialChar LyX
20304  now supports updating the whole tree in which resides the document
20305 \begin_inset Foot
20306 status collapsed
20307
20308 \begin_layout Plain Layout
20309 One need to organize the files structure so that all external files are
20310  in the same directory or subdirectories of the document.
20311  
20312 \end_layout
20313
20314 \end_inset
20315
20316 .
20317  This become especially useful once you cooperate with people which neither
20318  know about subversion management nor they have ambition to commit additional
20319  material to the repository.
20320  
20321 \end_layout
20322
20323 \begin_layout Standard
20324 \begin_inset Flex Code
20325 status collapsed
20326
20327 \begin_layout Plain Layout
20328 Update local directory from repository
20329 \end_layout
20330
20331 \end_inset
20332
20333  command updates the whole directory and in case of merge conflicts local
20334  version of the files are left, so no unintended data loss occurs.
20335  If local changes are detected user is warned before update starts.
20336 \end_layout
20337
20338 \begin_layout Labeling
20339 \labelwidthstring 00.00.0000
20340 SVN
20341 \begin_inset space ~
20342 \end_inset
20343
20344 commands: 
20345 \begin_inset space ~
20346 \end_inset
20347
20348
20349 \begin_inset Newline newline
20350 \end_inset
20351
20352
20353 \begin_inset Flex Code
20354 status collapsed
20355
20356 \begin_layout Plain Layout
20357 svn diff $path
20358 \end_layout
20359
20360 \end_inset
20361
20362  (Ask if changes are detected.)
20363 \begin_inset Newline newline
20364 \end_inset
20365
20366
20367 \begin_inset Flex Code
20368 status collapsed
20369
20370 \begin_layout Plain Layout
20371 svn update –accept mine-full $path
20372 \end_layout
20373
20374 \end_inset
20375
20376
20377 \end_layout
20378
20379 \begin_layout Standard
20380 where 
20381 \begin_inset Flex Code
20382 status collapsed
20383
20384 \begin_layout Plain Layout
20385 $path
20386 \end_layout
20387
20388 \end_inset
20389
20390  stands for the path to the document.
20391 \end_layout
20392
20393 \begin_layout Subsubsection
20394
20395 \family sans
20396 Show History
20397 \end_layout
20398
20399 \begin_layout Standard
20400 This shows the complete history of the SVN document.
20401  The output of 
20402 \family typewriter
20403 svn log 
20404 \begin_inset Quotes eld
20405 \end_inset
20406
20407 <file-name>
20408 \begin_inset Quotes erd
20409 \end_inset
20410
20411
20412 \family default
20413  is shown in a browser.
20414 \end_layout
20415
20416 \begin_layout Subsubsection
20417 File Locking
20418 \begin_inset CommandInset label
20419 LatexCommand label
20420 name "subsec:SVN-File-Locking"
20421
20422 \end_inset
20423
20424
20425 \end_layout
20426
20427 \begin_layout Standard
20428 The file exchange through various revision control systems brings the problem
20429  of merge conflicts in case two different users try to edit the same (parts
20430  of) document.
20431  When such a conflict happens it needs manual resolving and one reasonable
20432  alternative is to provide some kind of locking mechanism, which guarantees
20433  that only one user is allowed to edit file at the given time.
20434 \end_layout
20435
20436 \begin_layout Standard
20437 SVN has two such mechanisms to provide mutual exclusivity for file access
20438  - locks and automatic setting of write permissions (see sec.
20439  
20440 \begin_inset CommandInset ref
20441 LatexCommand ref
20442 reference "subsec:Automatical-Locking-Property"
20443
20444 \end_inset
20445
20446 ) based on 
20447 \begin_inset Flex Code
20448 status collapsed
20449
20450 \begin_layout Plain Layout
20451 svn:needs-lock
20452 \end_layout
20453
20454 \end_inset
20455
20456  file svn property
20457 \begin_inset Foot
20458 status open
20459
20460 \begin_layout Plain Layout
20461 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
20462 \end_layout
20463
20464 \end_inset
20465
20466 .
20467  If this property is detected for a given document \SpecialChar LyX
20468  starts to use SVN locks
20469  for document editing automatically and the whole check-in/out mechanism
20470  switches to the same regimen as for RCS.
20471  This in particular means there are two different modes of file use in \SpecialChar LyX
20472 :
20473 \end_layout
20474
20475 \begin_layout Itemize
20476 Unlocked state.
20477  The loaded file is in the read-only mode.
20478  For editing on needs to check-out.
20479  
20480 \emph on
20481 Check-out
20482 \emph default
20483  consists of updating from the repository and gaining write lock.
20484  If the lock is not possible to obtain, we remain in unlocked state.
20485 \end_layout
20486
20487 \begin_layout Itemize
20488 Locked state.
20489  The loaded file is in the 'normal' edit mode.
20490  No other user is allowed to edit the file.
20491  
20492 \emph on
20493 Check-in
20494 \emph default
20495  consists of commiting changes and releasing write-lock.
20496  If no changes have been made to the document, no commit will be produced
20497 \begin_inset Foot
20498 status collapsed
20499
20500 \begin_layout Plain Layout
20501 Don't be puzzled by the fact that you will be asked for commit message anyway.
20502 \end_layout
20503
20504 \end_inset
20505
20506  and only the write-lock will be released.
20507 \end_layout
20508
20509 \begin_layout Standard
20510 SVN commands:
20511 \end_layout
20512
20513 \begin_layout Labeling
20514 \labelwidthstring 00.00.0000
20515 Check-in:
20516 \family typewriter
20517  svn commit -q -m"<description>" "<file-name>"
20518 \begin_inset Newline newline
20519 \end_inset
20520
20521 svn unlock "<file-name>"
20522 \end_layout
20523
20524 \begin_layout Labeling
20525 \labelwidthstring 00.00.0000
20526 Check-out: 
20527 \family typewriter
20528 svn update "<file-name>"
20529 \begin_inset Newline newline
20530 \end_inset
20531
20532 svn lock "<file-name>"
20533 \end_layout
20534
20535 \begin_layout Subsubsection
20536
20537 \family typewriter
20538 \begin_inset CommandInset label
20539 LatexCommand label
20540 name "subsec:Automatical-Locking-Property"
20541
20542 \end_inset
20543
20544
20545 \family default
20546 Automatic Locking Property
20547 \end_layout
20548
20549 \begin_layout Standard
20550 The above mentioned automatic setting of write permissions of the .lyx file
20551  can be set through
20552 \family sans
20553  File\SpecialChar menuseparator
20554 Version
20555 \begin_inset space ~
20556 \end_inset
20557
20558 Control\SpecialChar menuseparator
20559 Toggle locking property
20560 \family default
20561 .
20562  This command is active only when the file is not locked on the svn server
20563  (i.e.
20564  you need to check-out before proceeding).
20565 \end_layout
20566
20567 \begin_layout Labeling
20568 \labelwidthstring 00.00.0000
20569 SVN
20570 \begin_inset space ~
20571 \end_inset
20572
20573 commands:
20574 \end_layout
20575
20576 \begin_layout Labeling
20577 \labelwidthstring 00.00.0000
20578 Set:
20579 \family typewriter
20580  svn propset svn:needs-lock ON "<file-name>"
20581 \end_layout
20582
20583 \begin_layout Labeling
20584 \labelwidthstring 00.00.0000
20585 Unset: 
20586 \family typewriter
20587 svn propdel svn:needs-lock "<file-name>"
20588 \end_layout
20589
20590 \begin_layout Subsubsection
20591 \begin_inset CommandInset label
20592 LatexCommand label
20593 name "subsec:VCS-Revision-Information"
20594
20595 \end_inset
20596
20597 Revision Information in Documents
20598 \end_layout
20599
20600 \begin_layout Standard
20601 There are more possibilities how to activate revision information in our
20602  document.
20603 \end_layout
20604
20605 \begin_layout Itemize
20606 \SpecialChar LyX
20607  supports directly:
20608 \end_layout
20609
20610 \begin_deeper
20611 \begin_layout Itemize
20612 tree revision information (
20613 \begin_inset Flex Code
20614 status collapsed
20615
20616 \begin_layout Plain Layout
20617 vcs-tree-revision
20618 \end_layout
20619
20620 \end_inset
20621
20622 ).
20623  The result is the output of the 
20624 \begin_inset Flex Code
20625 status collapsed
20626
20627 \begin_layout Plain Layout
20628 svnversion
20629 \end_layout
20630
20631 \end_inset
20632
20633  command, the following table gives you an idea, how to read the results.
20634 \end_layout
20635
20636 \begin_layout Standard
20637 \align center
20638 \begin_inset Tabular
20639 <lyxtabular version="3" rows="6" columns="2">
20640 <features tabularvalignment="middle">
20641 <column alignment="center" valignment="top">
20642 <column alignment="center" valignment="top">
20643 <row>
20644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20645 \begin_inset Text
20646
20647 \begin_layout Plain Layout
20648 Output
20649 \end_layout
20650
20651 \end_inset
20652 </cell>
20653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20654 \begin_inset Text
20655
20656 \begin_layout Plain Layout
20657 Meaning
20658 \end_layout
20659
20660 \end_inset
20661 </cell>
20662 </row>
20663 <row>
20664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20665 \begin_inset Text
20666
20667 \begin_layout Plain Layout
20668 4123:4168
20669 \end_layout
20670
20671 \end_inset
20672 </cell>
20673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20674 \begin_inset Text
20675
20676 \begin_layout Plain Layout
20677 mixed revision working copy
20678 \end_layout
20679
20680 \end_inset
20681 </cell>
20682 </row>
20683 <row>
20684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20685 \begin_inset Text
20686
20687 \begin_layout Plain Layout
20688 4168M
20689 \end_layout
20690
20691 \end_inset
20692 </cell>
20693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20694 \begin_inset Text
20695
20696 \begin_layout Plain Layout
20697 modified working copy
20698 \end_layout
20699
20700 \end_inset
20701 </cell>
20702 </row>
20703 <row>
20704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20705 \begin_inset Text
20706
20707 \begin_layout Plain Layout
20708 4123S
20709 \end_layout
20710
20711 \end_inset
20712 </cell>
20713 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20714 \begin_inset Text
20715
20716 \begin_layout Plain Layout
20717 switched working copy
20718 \end_layout
20719
20720 \end_inset
20721 </cell>
20722 </row>
20723 <row>
20724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20725 \begin_inset Text
20726
20727 \begin_layout Plain Layout
20728 4123P
20729 \end_layout
20730
20731 \end_inset
20732 </cell>
20733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20734 \begin_inset Text
20735
20736 \begin_layout Plain Layout
20737 partial working copy, from a sparse checkout
20738 \end_layout
20739
20740 \end_inset
20741 </cell>
20742 </row>
20743 <row>
20744 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20745 \begin_inset Text
20746
20747 \begin_layout Plain Layout
20748 4123:4168MS
20749 \end_layout
20750
20751 \end_inset
20752 </cell>
20753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20754 \begin_inset Text
20755
20756 \begin_layout Plain Layout
20757 mixed revision, modified, switched working copy
20758 \end_layout
20759
20760 \end_inset
20761 </cell>
20762 </row>
20763 </lyxtabular>
20764
20765 \end_inset
20766
20767
20768 \end_layout
20769
20770 \begin_layout Itemize
20771 file revision information.
20772  The result comes from parsing the output of 
20773 \begin_inset Flex Code
20774 status collapsed
20775
20776 \begin_layout Plain Layout
20777 svn
20778 \begin_inset space ~
20779 \end_inset
20780
20781 info
20782 \begin_inset space ~
20783 \end_inset
20784
20785 –xml
20786 \begin_inset space ~
20787 \end_inset
20788
20789 file.lyx
20790 \end_layout
20791
20792 \end_inset
20793
20794 .
20795  Supported flags are:
20796 \end_layout
20797
20798 \begin_deeper
20799 \begin_layout Itemize
20800 version number of the last commit (
20801 \begin_inset Flex Code
20802 status collapsed
20803
20804 \begin_layout Plain Layout
20805 vcs-revision
20806 \end_layout
20807
20808 \end_inset
20809
20810 )
20811 \end_layout
20812
20813 \begin_layout Itemize
20814 author of the last commit (
20815 \begin_inset Flex Code
20816 status collapsed
20817
20818 \begin_layout Plain Layout
20819 vcs-author
20820 \end_layout
20821
20822 \end_inset
20823
20824 )
20825 \end_layout
20826
20827 \begin_layout Itemize
20828 date of the last commit (
20829 \begin_inset Flex Code
20830 status collapsed
20831
20832 \begin_layout Plain Layout
20833 vcs-date
20834 \end_layout
20835
20836 \end_inset
20837
20838 )
20839 \end_layout
20840
20841 \begin_layout Itemize
20842 time of the last commit (
20843 \begin_inset Flex Code
20844 status collapsed
20845
20846 \begin_layout Plain Layout
20847 vcs-time
20848 \end_layout
20849
20850 \end_inset
20851
20852 )
20853 \end_layout
20854
20855 \end_deeper
20856 \begin_layout Standard
20857 You can obtain this info via InsetInfo (e.g.
20858  
20859 \begin_inset Flex Code
20860 status collapsed
20861
20862 \begin_layout Plain Layout
20863 info-insert buffer vcs-date
20864 \end_layout
20865
20866 \end_inset
20867
20868 ).
20869  The information will be available only when you have the file stored under
20870  svn managment (i.e.
20871  the 
20872 \begin_inset Flex Code
20873 status collapsed
20874
20875 \begin_layout Plain Layout
20876 .svn
20877 \end_layout
20878
20879 \end_inset
20880
20881  directory is available with your document).
20882 \end_layout
20883
20884 \end_deeper
20885 \begin_layout Itemize
20886 Another—a hacking one—possibility is to use svn keywords
20887 \begin_inset Foot
20888 status collapsed
20889
20890 \begin_layout Plain Layout
20891 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20892 \end_layout
20893
20894 \end_inset
20895
20896 .
20897  In short – you set file keywords property (e.g.
20898  
20899 \family sans
20900 svn propset svn:keywords 'Rev' file.lyx
20901 \family default
20902 ) and then paste keyword \SpecialChar TeX
20903  code
20904 \begin_inset Foot
20905 status collapsed
20906
20907 \begin_layout Plain Layout
20908 This is an easy way how to ensure that \SpecialChar LyX
20909  won't break the line in the middle
20910  of keyword tag.
20911 \end_layout
20912
20913 \end_inset
20914
20915  tag in your document (e.g.
20916  
20917 \begin_inset ERT
20918 status open
20919
20920 \begin_layout Plain Layout
20921
20922 $Rev$
20923 \end_layout
20924
20925 \end_inset
20926
20927 ).
20928  This way svn client will automatically substitute revision number (e.g.
20929  
20930 \begin_inset ERT
20931 status open
20932
20933 \begin_layout Plain Layout
20934
20935 $Rev: 59 $
20936 \end_layout
20937
20938 \end_inset
20939
20940 ) after each update and commit.
20941  There are more problems with this approach.
20942  Firstly, the '$' character is used in \SpecialChar TeX
20943  world for math equations, so any
20944  occurence of math formula 
20945 \begin_inset Formula $Rev$
20946 \end_inset
20947
20948  become 
20949 \begin_inset Formula $Rev:59$
20950 \end_inset
20951
20952  in your \SpecialChar LyX
20953  document.
20954  Similarly for other keywords like Id, Date, Author, etc.
20955  Secondly svn output is dependent on your locales, so its very easy that
20956  svn would produce some problematic strings once Date is used.
20957  Thirdly you get the whole 'Rev: 59' string in your document instead of
20958  the plain number.
20959  Until subversion implements user's custom keywords it will be hard to use
20960  this approach reliably or let \SpecialChar LyX
20961  to support it directly.
20962 \end_layout
20963
20964 \begin_layout Subsection
20965 SVN and Windows Environment
20966 \end_layout
20967
20968 \begin_layout Quote
20969 My inclination is to say that if the user cannot figure out the command
20970  line operations on their own fairly quickly, they would be well advised
20971  to use TortoiseSVN.
20972  —P.
20973  A.
20974  Rubin
20975 \end_layout
20976
20977 \begin_layout Subsubsection
20978 Preparation
20979 \end_layout
20980
20981 \begin_layout Standard
20982 In addition to installing \SpecialChar LyX
20983 , and having access to a Subversion repository,
20984  the user will need to install the Subversion client program.
20985  A Windows installer for the client program is available from 
20986 \begin_inset CommandInset href
20987 LatexCommand href
20988 name "CollabNet"
20989 target "http://www.collab.net/nonav/downloads/subversion/"
20990
20991 \end_inset
20992
20993 .
20994  The user may also want to install 
20995 \begin_inset CommandInset href
20996 LatexCommand href
20997 name "TortoiseSVN"
20998 target "http://tortoisesvn.tigris.org/"
20999
21000 \end_inset
21001
21002 , which integrates Subversion operations into the context (rightclick) menu
21003  of Windows Explorer.
21004  Operations done outside \SpecialChar LyX
21005  will typically be more convenient using the Explorer
21006  context menu.
21007  Note that TortoiseSVN is not a replacement for the client program, which
21008  is what \SpecialChar LyX
21009  itself will use.
21010 \end_layout
21011
21012 \begin_layout Subsubsection
21013 Bringing a document under Subversion control
21014 \end_layout
21015
21016 \begin_layout Standard
21017 Before a \SpecialChar LyX
21018  document can be brought under version control in Subversion, its
21019  parent directory needs to be under version control.
21020  If the document is being added to a project already in the repository,
21021  this is accomplished by checking the project out to the directory where
21022  the new document will be placed.
21023  If the project itself is not yet under version control (for instance, if
21024  this document starts a new project), the directory must be imported into
21025  the repository.
21026  This is done outside \SpecialChar LyX
21027 .
21028  Both import and checkout are easily accomplished from the Explorer context
21029  menu using TortoiseSVN, or alternatively can be done using the command
21030  line client at a DOS prompt.
21031  The procedure for importing the project using TortoiseSVN is described
21032  below, assuming an existing repository and a new project being started
21033  in 
21034 \family typewriter
21035 C:
21036 \backslash
21037 new project
21038 \family default
21039 .
21040  For information on using the Subversion client program, run 
21041 \family typewriter
21042 svn --help 
21043 \family default
21044 in a DOS shell.
21045 \end_layout
21046
21047 \begin_layout Enumerate
21048 Locate 
21049 \family typewriter
21050 C:
21051 \backslash
21052 new project 
21053 \family default
21054 in Windows Explorer, right click it, and select 
21055 \family sans
21056 TortoiseSVN\SpecialChar menuseparator
21057 Repo-browser
21058 \family default
21059 .
21060  If necessary, adjust the URL for the repository, then click OK.
21061 \end_layout
21062
21063 \begin_layout Enumerate
21064 Right click the level of the repository under which you want to place the
21065  new project folder (typically the top level) and click 
21066 \family sans
21067 Create folder
21068 \family default
21069  Supply a name for the project folder and click OK.
21070  Add a message for the log file if desired, then click OK again.
21071  The new project folder should appear in the repository.
21072  Finally, click OK again to exit the repository browser.
21073 \end_layout
21074
21075 \begin_layout Enumerate
21076 Once again right click 
21077 \family typewriter
21078 C:
21079 \backslash
21080 new project
21081 \family default
21082 , this time selecting SVN Checkout\SpecialChar ldots
21083  Select the URL of the project folder
21084  you just created in the repository, and set the checkout directory to 
21085 \family typewriter
21086 C:
21087 \backslash
21088 new project.
21089
21090 \family default
21091  Click OK.
21092  You will be warned about a non-empty folder; click OK to proceed.
21093  You should now have a 
21094 \family typewriter
21095 .svn
21096 \family default
21097  directory under 
21098 \family typewriter
21099 C:
21100 \backslash
21101 new project.
21102 \end_layout
21103
21104 \begin_layout Enumerate
21105 Create or open your document in \SpecialChar LyX
21106  and click 
21107 \family sans
21108 File\SpecialChar menuseparator
21109 Version
21110 \begin_inset space ~
21111 \end_inset
21112
21113 Control\SpecialChar menuseparator
21114 Register.
21115  
21116 \family default
21117 Add a log message and click OK to commit the document to version control.
21118 \end_layout
21119
21120 \begin_layout Standard
21121 From this point onward, you should have full functionality in the 
21122 \family sans
21123 File\SpecialChar menuseparator
21124 Version
21125 \begin_inset space ~
21126 \end_inset
21127
21128 Control
21129 \family default
21130  menu.
21131  You also have the option of checking the document in and out, viewing its
21132  history, etc.
21133  using the TortoiseSVN context menu in Windows Explorer or the Subversion
21134  client program from a command prompt.
21135 \end_layout
21136
21137 \begin_layout Subsubsection
21138 SSH tunnel used with SVN under Windows
21139 \end_layout
21140
21141 \begin_layout Standard
21142 Compared with Linux setting up an svn client to communicate over ssh under
21143  Windows is a rather troublesome task.
21144  We will at least offer some hints how to setup the client side but prior
21145  knowledge about ssh and the Windows command line is needed, also be prepared
21146  for a great deal of frustration\SpecialChar ldots
21147
21148 \end_layout
21149
21150 \begin_layout Enumerate
21151 Get an svn client for windows, as described in the previous sections.
21152  When it is a fresh install run some svn command (e.g.
21153  
21154 \begin_inset Flex Code
21155 status collapsed
21156
21157 \begin_layout Plain Layout
21158 svn –version
21159 \end_layout
21160
21161 \end_inset
21162
21163 ) to create config files, which you will need to change later on.
21164 \end_layout
21165
21166 \begin_layout Enumerate
21167 Choose an ssh client for Windows.
21168  There are several possibilities, we will use the one from Putty tools
21169 \begin_inset Foot
21170 status collapsed
21171
21172 \begin_layout Plain Layout
21173 \begin_inset Flex URL
21174 status collapsed
21175
21176 \begin_layout Plain Layout
21177
21178 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
21179 \end_layout
21180
21181 \end_inset
21182
21183
21184 \end_layout
21185
21186 \end_inset
21187
21188 .
21189  You will need to set the connection up so that the client doesn't ask for
21190  any password from you.
21191  To keep things easy we will use only keys without any additional password
21192  protection etc.
21193 \end_layout
21194
21195 \begin_deeper
21196 \begin_layout Enumerate
21197 Generate keys by 
21198 \begin_inset Flex Code
21199 status collapsed
21200
21201 \begin_layout Plain Layout
21202 puttygen
21203 \end_layout
21204
21205 \end_inset
21206
21207 .
21208  Save your private .ppk key file and put the public one on the server side.
21209  If the SVN server runs on Linux, note that the format of the public key
21210  is not compatible with Linux openssh and you will need to direcly copy-paste
21211  the key from the “
21212 \emph on
21213 Public key for pasting into OpenSSH authorized_keys file
21214 \emph default
21215 :” edit field into the server's 
21216 \begin_inset Flex Code
21217 status collapsed
21218
21219 \begin_layout Plain Layout
21220 ~/.ssh/authorized_keys
21221 \end_layout
21222
21223 \end_inset
21224
21225  / 
21226 \begin_inset Flex Code
21227 status collapsed
21228
21229 \begin_layout Plain Layout
21230 authorized_keys2
21231 \end_layout
21232
21233 \end_inset
21234
21235  file.
21236 \end_layout
21237
21238 \begin_layout Enumerate
21239 Get the Putty's 
21240 \begin_inset Flex Code
21241 status collapsed
21242
21243 \begin_layout Plain Layout
21244 plink
21245 \end_layout
21246
21247 \end_inset
21248
21249 .
21250  In the SVN config file
21251 \begin_inset Foot
21252 status collapsed
21253
21254 \begin_layout Plain Layout
21255 Exact path depends on Windows version, usually somewhere around 
21256 \begin_inset Flex Code
21257 status collapsed
21258
21259 \begin_layout Plain Layout
21260 c:
21261 \backslash
21262 Documents and Settings
21263 \backslash
21264 user
21265 \backslash
21266 Application Data
21267 \backslash
21268 Subversion
21269 \backslash
21270 config
21271 \end_layout
21272
21273 \end_inset
21274
21275  / 
21276 \begin_inset Flex Code
21277 status collapsed
21278
21279 \begin_layout Plain Layout
21280 AppData
21281 \backslash
21282 Roaming
21283 \backslash
21284 Subversion
21285 \end_layout
21286
21287 \end_inset
21288
21289 .
21290 \end_layout
21291
21292 \end_inset
21293
21294 , section [tunnels], setup ssh command, e.g.
21295  
21296 \begin_inset Flex Code
21297 status collapsed
21298
21299 \begin_layout Plain Layout
21300 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
21301 \end_layout
21302
21303 \end_inset
21304
21305 .
21306 \begin_inset Foot
21307 status collapsed
21308
21309 \begin_layout Plain Layout
21310 It will usually take a lot of time to get exact command right and it depends
21311  on many things.
21312  For example do not have some remote server saved as a default session in
21313  Putty etc.
21314  If things fail, try to connect via plink without SVN first.
21315 \end_layout
21316
21317 \end_inset
21318
21319
21320 \end_layout
21321
21322 \end_deeper
21323 \begin_layout Enumerate
21324 Checkout the SVN archive, e.
21325 \begin_inset space \thinspace{}
21326 \end_inset
21327
21328 g.
21329 \begin_inset Newline newline
21330 \end_inset
21331
21332
21333 \begin_inset Flex Code
21334 status collapsed
21335
21336 \begin_layout Plain Layout
21337 svn co svn+ssh://user@server/repository_path
21338 \end_layout
21339
21340 \end_inset
21341
21342 .
21343 \end_layout
21344
21345 \begin_layout Subsubsection
21346 End-of-Line Conversions
21347 \end_layout
21348
21349 \begin_layout Standard
21350 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
21351  will
21352  use different line endings inside the .lyx files.
21353  This is not a problem as far as \SpecialChar LyX
21354  functionality is concerned, but the commit
21355  diffs will be huge and merge-conflicts prone.
21356  Fortunately SVN itself knows
21357 \begin_inset Foot
21358 status collapsed
21359
21360 \begin_layout Plain Layout
21361 \begin_inset Flex URL
21362 status collapsed
21363
21364 \begin_layout Plain Layout
21365
21366 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21367 \end_layout
21368
21369 \end_inset
21370
21371
21372 \end_layout
21373
21374 \end_inset
21375
21376  how to deal with CR/LF problems when switching .lyx files to the 
21377 \begin_inset Flex Code
21378 status collapsed
21379
21380 \begin_layout Plain Layout
21381 native
21382 \end_layout
21383
21384 \end_inset
21385
21386  mode.
21387 \begin_inset Foot
21388 status collapsed
21389
21390 \begin_layout Plain Layout
21391 For the lazy guys: 
21392 \begin_inset Flex Code
21393 status collapsed
21394
21395 \begin_layout Plain Layout
21396 svn propset svn:eol-style native FILE_NAME
21397 \end_layout
21398
21399 \end_inset
21400
21401
21402 \end_layout
21403
21404 \end_inset
21405
21406
21407 \end_layout
21408
21409 \begin_layout Subsection
21410 GIT commands in \SpecialChar LyX
21411
21412 \end_layout
21413
21414 \begin_layout Standard
21415 A minimal subset of GIT commands is now supported by \SpecialChar LyX
21416 .
21417  You can find the commands in the 
21418 \family sans
21419 File\SpecialChar menuseparator
21420 Version
21421 \begin_inset space ~
21422 \end_inset
21423
21424 Control
21425 \family default
21426  submenu.
21427  Please note that if you use password protected access to repository via
21428  ssh, you will be asked in terminal window.
21429  \SpecialChar LyX
21430  was tested against GIT 1.7.
21431 \begin_inset Foot
21432 status open
21433
21434 \begin_layout Plain Layout
21435 Windows users please note that you need to ensure that git is on the path.
21436  This can be set from within \SpecialChar LyX
21437  at 
21438 \family sans
21439 Tools\SpecialChar menuseparator
21440 Preferences\SpecialChar menuseparator
21441 Paths\SpecialChar menuseparator
21442 PATH prefix
21443 \family default
21444 .
21445 \end_layout
21446
21447 \end_inset
21448
21449
21450 \end_layout
21451
21452 \begin_layout Standard
21453 One big difference of GIT and the other supported version control systems
21454  is the distributed nature of GIT: With traditional version control systems
21455  there is one central server which hosts the repository.
21456  Users commit their changes to the server, and get updates made by other
21457  users from it.
21458  With GIT, users commit to a local repository.
21459  The local repository can be synchronized with one or more remote repositories
21460  using the 
21461 \begin_inset Flex Code
21462 status collapsed
21463
21464 \begin_layout Plain Layout
21465 pull
21466 \end_layout
21467
21468 \end_inset
21469
21470  and 
21471 \begin_inset Flex Code
21472 status collapsed
21473
21474 \begin_layout Plain Layout
21475 push
21476 \end_layout
21477
21478 \end_inset
21479
21480  GIT commands.
21481  \SpecialChar LyX
21482  does not interact in any way with remote GIT repositories.
21483  It works exclusively with the local repository in a very similar way as
21484  with a central CVS or SVN repository.
21485  If you use remote GIT repositories you need to do the 
21486 \begin_inset Flex Code
21487 status collapsed
21488
21489 \begin_layout Plain Layout
21490 pull
21491 \end_layout
21492
21493 \end_inset
21494
21495  and 
21496 \begin_inset Flex Code
21497 status collapsed
21498
21499 \begin_layout Plain Layout
21500 push
21501 \end_layout
21502
21503 \end_inset
21504
21505  operations with your favourite GIT client.
21506 \end_layout
21507
21508 \begin_layout Subsubsection
21509
21510 \family sans
21511 Register
21512 \end_layout
21513
21514 \begin_layout Standard
21515 If your document is not under revision control, this is the only item shown
21516  in the menu.
21517  And if it is under revision control, the 
21518 \family sans
21519 Register
21520 \family default
21521  item is not visible.
21522 \end_layout
21523
21524 \begin_layout Standard
21525 This command registers in GIT your document ONLY in case you have already
21526  the documents directory under GIT control (in particular 
21527 \family typewriter
21528 .git/index
21529 \family default
21530  file exists).
21531  This means you have to checkout the archive by yourself.
21532 \end_layout
21533
21534 \begin_layout Standard
21535 Then you are asked interactively to supply an initial description of the
21536  document.
21537  Don't forget that registered file is not yet commited.
21538 \end_layout
21539
21540 \begin_layout Standard
21541 GIT command that is run: 
21542 \family typewriter
21543 git add 
21544 \begin_inset Quotes eld
21545 \end_inset
21546
21547 <file-name>
21548 \begin_inset Quotes erd
21549 \end_inset
21550
21551
21552 \end_layout
21553
21554 \begin_layout Standard
21555 Read 
21556 \family typewriter
21557 man git
21558 \family default
21559  to understand the switches.
21560 \end_layout
21561
21562 \begin_layout Subsubsection
21563
21564 \family sans
21565 Check In Changes
21566 \end_layout
21567
21568 \begin_layout Standard
21569 When you are finished editing a file, you commit your changes.
21570  When you do this, you are asked for a description of the changes.
21571  After that changes are commited.
21572 \end_layout
21573
21574 \begin_layout Standard
21575 GIT command: 
21576 \family typewriter
21577 git commit -q -m"<description>" <file-name>
21578 \end_layout
21579
21580 \begin_layout Subsubsection
21581
21582 \family sans
21583 Revert To Repository Version
21584 \end_layout
21585
21586 \begin_layout Standard
21587 This will discard all changes made to the document since the last check
21588  in.
21589  You get a warning before changes are discarded.
21590 \end_layout
21591
21592 \begin_layout Standard
21593 GIT command: 
21594 \family typewriter
21595 git checkout -q 
21596 \begin_inset Quotes eld
21597 \end_inset
21598
21599 <file-name>
21600 \begin_inset Quotes erd
21601 \end_inset
21602
21603
21604 \end_layout
21605
21606 \begin_layout Subsubsection
21607
21608 \family sans
21609 Rename
21610 \end_layout
21611
21612 \begin_layout Standard
21613 This will rename the current document including the version history.
21614  It requires a clean document without any changes since the last checkin.
21615  You are asked for a file name and a description of the rename operation.
21616  After that the document is renamed, both locally and in the repository.
21617  If the parent directories of the new and old file names differ, all relative
21618  paths of included files are adjusted (like in 
21619 \family sans
21620 File\SpecialChar menuseparator
21621 Save As
21622 \family default
21623 \SpecialChar ldots
21624 ).
21625  Finally, the document is reloaded using the new name.
21626 \end_layout
21627
21628 \begin_layout Labeling
21629 \labelwidthstring 00.00.0000
21630 GIT
21631 \begin_inset space ~
21632 \end_inset
21633
21634 commands: 
21635 \begin_inset space ~
21636 \end_inset
21637
21638
21639 \begin_inset Newline newline
21640 \end_inset
21641
21642
21643 \begin_inset Flex Code
21644 status collapsed
21645
21646 \begin_layout Plain Layout
21647 git mv 
21648 \family typewriter
21649
21650 \begin_inset Quotes eld
21651 \end_inset
21652
21653 <file-name>
21654 \begin_inset Quotes erd
21655 \end_inset
21656
21657  
21658 \begin_inset Quotes eld
21659 \end_inset
21660
21661 <new-file-name>
21662 \begin_inset Quotes erd
21663 \end_inset
21664
21665
21666 \end_layout
21667
21668 \end_inset
21669
21670
21671 \begin_inset Newline newline
21672 \end_inset
21673
21674
21675 \begin_inset Flex Code
21676 status collapsed
21677
21678 \begin_layout Plain Layout
21679 git commit
21680 \end_layout
21681
21682 \end_inset
21683
21684
21685 \end_layout
21686
21687 \begin_layout Subsubsection
21688
21689 \family sans
21690 Show History
21691 \end_layout
21692
21693 \begin_layout Standard
21694 This shows the complete history of the GIT document.
21695  The output of 
21696 \family typewriter
21697 git log 
21698 \begin_inset Quotes eld
21699 \end_inset
21700
21701 <file-name>
21702 \begin_inset Quotes erd
21703 \end_inset
21704
21705
21706 \family default
21707  is shown in a browser.
21708 \end_layout
21709
21710 \begin_layout Subsubsection
21711 Version Info
21712 \end_layout
21713
21714 \begin_layout Standard
21715 \SpecialChar LyX
21716  supports GIT hash number of the last commit to the file, author name, date
21717  and time of last commit.
21718  All those are extracted from 
21719 \family typewriter
21720 git log -n 1 --pretty=format:%H%n%an%n%ai
21721 \family default
21722 .
21723  Tree version information is obtained via 
21724 \family typewriter
21725 git describe --abbrev --dirty --long
21726 \family default
21727 .
21728  See 
21729 \begin_inset CommandInset ref
21730 LatexCommand ref
21731 reference "subsec:VCS-Revision-Information"
21732
21733 \end_inset
21734
21735  for other details.
21736 \end_layout
21737
21738 \begin_layout Subsection
21739 Further tuning
21740 \end_layout
21741
21742 \begin_layout Standard
21743 With the recent addition of the vc-command function \SpecialChar LyX
21744  power users are allowed
21745  to create their own commands for revision control.
21746 \end_layout
21747
21748 \begin_layout Standard
21749 As an example you can see how two TortoiseSVN commands could be integrated
21750  directly:
21751 \end_layout
21752
21753 \begin_layout Description
21754 Commit: 
21755 \begin_inset Flex Code
21756 status collapsed
21757
21758 \begin_layout Plain Layout
21759 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21760 \end_layout
21761
21762 \end_inset
21763
21764
21765 \end_layout
21766
21767 \begin_layout Description
21768 Revert: 
21769 \begin_inset Flex Code
21770 status collapsed
21771
21772 \begin_layout Plain Layout
21773 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21774 \end_layout
21775
21776 \end_inset
21777
21778
21779 \end_layout
21780
21781 \begin_layout Subsection
21782 Version control and Document comparison
21783 \end_layout
21784
21785 \begin_layout Standard
21786 One of the typical uses of version control is to inspect the changes between
21787  revisions, usually by creating 
21788 \begin_inset Flex Code
21789 status collapsed
21790
21791 \begin_layout Plain Layout
21792 diff
21793 \end_layout
21794
21795 \end_inset
21796
21797  dumps.
21798  While this is useful for plain text files, it is much less useful in the
21799  case of \SpecialChar LyX
21800  files, which have more a complicated structure.
21801  Hence we provide binding to the Document comparison feature.
21802  There are two ways of calling this feature - either by direct call of 
21803 \begin_inset Flex Code
21804 status collapsed
21805
21806 \begin_layout Plain Layout
21807 VC_COMPARE
21808 \end_layout
21809
21810 \end_inset
21811
21812  \SpecialChar LyX
21813  function (for details see \SpecialChar LyX
21814  functions manual) or by icon/menu item 
21815 \begin_inset Flex Noun
21816 status collapsed
21817
21818 \begin_layout Plain Layout
21819 Compare with older revision...
21820 \end_layout
21821
21822 \end_inset
21823
21824 .
21825  One can either compare two chosen revisions of the document or he can simply
21826  compare the current version of edited text with older revisions (where
21827  '
21828 \begin_inset Flex Noun
21829 status collapsed
21830
21831 \begin_layout Plain Layout
21832 0
21833 \end_layout
21834
21835 \end_inset
21836
21837 ' revisions back means comparison of the edited file with last commited
21838  revision).
21839  
21840 \end_layout
21841
21842 \begin_layout Standard
21843 This feature is supported for SVN and RCS though due to the more complicated
21844  versioning scheme of RCS there is a constraint – when addressing the revisions
21845  in dialog, numbers always point to the last number in RCS revision number,
21846  i.e.
21847  '35' in '1.2.35'.
21848  We don't currently support GIT addressing of revisions, one can just compare
21849  edited document with its revision X steps backs, where X is addressed as
21850  HEAD~X.
21851 \end_layout
21852
21853 \begin_layout Section
21854 Literate Programming
21855 \end_layout
21856
21857 \begin_layout Standard
21858 Updated by 
21859 \noun on
21860 Kayvan Sylvan 
21861 \noun default
21862 (kayvan@sylvan.com)
21863 \noun on
21864
21865 \noun default
21866 original documentation written by 
21867 \noun on
21868 Edmar Wienskoski Jr.
21869
21870 \noun default
21871  (edmar-w-jr@technologist.com)
21872 \end_layout
21873
21874 \begin_layout Subsection
21875 Introduction
21876 \end_layout
21877
21878 \begin_layout Standard
21879 The main purpose of this documentation is to show you how to use \SpecialChar LyX
21880  for literate
21881  programming, where it is assumed that you are familiar with this programming
21882  technique, and know what 
21883 \begin_inset Quotes eld
21884 \end_inset
21885
21886 tangling
21887 \begin_inset Quotes erd
21888 \end_inset
21889
21890  and 
21891 \begin_inset Quotes eld
21892 \end_inset
21893
21894 weaving
21895 \begin_inset Quotes erd
21896 \end_inset
21897
21898  means.
21899  If that is not the case, please follow the web links provided in the following
21900  sections.
21901  There is a lot of good documentation out there covering old development
21902  history to the latest tools tips.
21903 \end_layout
21904
21905 \begin_layout Standard
21906 It is also assumed that you are familiar with \SpecialChar LyX
21907  itself to a point that you
21908  are comfortable changing your \SpecialChar LyX
21909  preferences, and X resources file.
21910  If that is not the case please refer to other \SpecialChar LyX
21911  documentation to cover your
21912  specific needs.
21913 \end_layout
21914
21915 \begin_layout Subsection
21916 Literate Programming
21917 \end_layout
21918
21919 \begin_layout Standard
21920 From the Literate Programming FAQ: 
21921 \end_layout
21922
21923 \begin_layout Quotation
21924 Literate programming is the combination of documentation and source together
21925  in a fashion suited for reading by human beings.
21926  In fact, literate programs should be enjoyable reading, even inviting!
21927  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
21928  and documentation in a single file.
21929  Literate programming tools then parse the file to produce either readable
21930  documentation or compilable source.
21931  The WEB style of literate programming was created by D.
21932 \begin_inset space \thinspace{}
21933 \end_inset
21934
21935 E.
21936  Knuth during the development of his \SpecialChar TeX
21937  typesetting software.
21938  
21939 \end_layout
21940
21941 \begin_layout Standard
21942 Another excerpt says:
21943 \end_layout
21944
21945 \begin_layout Quotation
21946
21947 \emph on
21948 How is literate programming different from verbose commenting?
21949 \end_layout
21950
21951 \begin_layout Quotation
21952 There are three distinguishing characteristics.
21953  In order of importance, they are: 
21954 \end_layout
21955
21956 \begin_deeper
21957 \begin_layout Itemize
21958 flexible order of elaboration 
21959 \end_layout
21960
21961 \begin_layout Itemize
21962 automatic support for browsing 
21963 \end_layout
21964
21965 \begin_layout Itemize
21966 typeset documentation, especially diagrams and mathematics 
21967 \end_layout
21968
21969 \end_deeper
21970 \begin_layout Standard
21971 Now that I sparked your curiosity, take a look in the references.
21972 \end_layout
21973
21974 \begin_layout Subsubsection
21975 References
21976 \end_layout
21977
21978 \begin_layout Standard
21979 The complete Literate Programming FAQ can be found at:
21980 \end_layout
21981
21982 \begin_layout Quote
21983 Literate Programming FAQ 
21984 \begin_inset Flex URL
21985 status collapsed
21986
21987 \begin_layout Plain Layout
21988
21989 http://www.literateprogramming.com/lpfaq.pdf
21990 \end_layout
21991
21992 \end_inset
21993
21994
21995 \end_layout
21996
21997 \begin_layout Standard
21998 The FAQ lists 23 (twenty three!) different literate programming tools.
21999  Where some are specialized or 
22000 \begin_inset Quotes eld
22001 \end_inset
22002
22003 tailored
22004 \begin_inset Quotes erd
22005 \end_inset
22006
22007  for particular programming languages, while other have general scope.
22008  I selected 
22009 \noun on
22010 Noweb
22011 \noun default
22012  for my own use for several reasons:
22013 \end_layout
22014
22015 \begin_layout Itemize
22016 It can generate the documentation either in \SpecialChar LaTeX
22017  or HTML.
22018 \end_layout
22019
22020 \begin_layout Itemize
22021 It has a open architecture, i.
22022 \begin_inset space \thinspace{}
22023 \end_inset
22024
22025 e.
22026 \begin_inset space \space{}
22027 \end_inset
22028
22029 it is easy to plug in new filters and to perform special processing that
22030  you may need.
22031  
22032 \end_layout
22033
22034 \begin_layout Itemize
22035 There is a good selection of filters available already (the HTML is one
22036  of them).
22037 \end_layout
22038
22039 \begin_layout Itemize
22040 It is free.
22041 \end_layout
22042
22043 \begin_layout Standard
22044 The Noweb web page can be found at: 
22045 \end_layout
22046
22047 \begin_layout Quote
22048 Noweb home page 
22049 \begin_inset Flex URL
22050 status collapsed
22051
22052 \begin_layout Plain Layout
22053
22054 http://www.cs.virginia.edu/~nr/noweb/
22055 \end_layout
22056
22057 \end_inset
22058
22059
22060 \end_layout
22061
22062 \begin_layout Standard
22063 Starting from there you can reach many other interesting links and even
22064  some literate program examples.
22065 \end_layout
22066
22067 \begin_layout Subsection
22068 \SpecialChar LyX
22069  and Literate Programming with Noweb
22070 \end_layout
22071
22072 \begin_layout Standard
22073 The \SpecialChar LyX
22074  support for Literate Programming is provided by using the generic \SpecialChar LyX
22075
22076  converters mechanism.
22077  This support is provided in a 
22078 \begin_inset Quotes eld
22079 \end_inset
22080
22081 Noweb independent
22082 \begin_inset Quotes erd
22083 \end_inset
22084
22085  way, i.
22086 \begin_inset space \thinspace{}
22087 \end_inset
22088
22089 e.
22090 \begin_inset space \space{}
22091 \end_inset
22092
22093 you will be able to use this new \SpecialChar LyX
22094  feature with some other literate programming
22095  tool of your choice by just changing your \SpecialChar LyX
22096  preferences.
22097 \end_layout
22098
22099 \begin_layout Subsubsection
22100 Generating documents and code (weaving and tangling)
22101 \end_layout
22102
22103 \begin_layout Paragraph
22104 Using the noweb module
22105 \end_layout
22106
22107 \begin_layout Standard
22108 If you have installed Noweb and \SpecialChar LyX
22109  successfully, whenever you open a new document,
22110  after you have chosen its document class, use the Document->Settings menu
22111  to add the 
22112 \begin_inset Quotes eld
22113 \end_inset
22114
22115 noweb
22116 \begin_inset Quotes erd
22117 \end_inset
22118
22119  module.
22120  If Noweb is correctly installed, when you click on the 
22121 \begin_inset Quotes eld
22122 \end_inset
22123
22124 Modules
22125 \begin_inset Quotes erd
22126 \end_inset
22127
22128  link, you will see the 
22129 \begin_inset Quotes eld
22130 \end_inset
22131
22132 noweb
22133 \begin_inset Quotes erd
22134 \end_inset
22135
22136  module in the available list and you can add it to your document.
22137 \end_layout
22138
22139 \begin_layout Paragraph
22140 Typing code in
22141 \end_layout
22142
22143 \begin_layout Standard
22144 \SpecialChar LyX
22145  enables you to write code with a layout named 
22146 \begin_inset Flex Noun
22147 status collapsed
22148
22149 \begin_layout Plain Layout
22150 Chunk
22151 \end_layout
22152
22153 \end_inset
22154
22155 .
22156  Noweb delimits chunks like this:
22157 \end_layout
22158
22159 \begin_layout LyX-Code
22160 <<My code>>=
22161 \end_layout
22162
22163 \begin_layout LyX-Code
22164   code
22165 \end_layout
22166
22167 \begin_layout LyX-Code
22168   more code
22169 \end_layout
22170
22171 \begin_layout LyX-Code
22172   even more code
22173 \end_layout
22174
22175 \begin_layout LyX-Code
22176   @
22177 \end_layout
22178
22179 \begin_layout Standard
22180 The problem is that whatever is written in between the << and the 
22181 \family typewriter
22182 @
22183 \family default
22184  must be taken literally, i.
22185 \begin_inset space \thinspace{}
22186 \end_inset
22187
22188 e.
22189 \begin_inset space \space{}
22190 \end_inset
22191
22192 \SpecialChar LyX
22193  should be prevented from making any special interpretation of what has
22194  been written.
22195  This is also handled by 
22196 \begin_inset Flex Noun
22197 status collapsed
22198
22199 \begin_layout Plain Layout
22200 Chunk
22201 \end_layout
22202
22203 \end_inset
22204
22205 , that works like a normal paragraph but has a free spacing capability.
22206 \end_layout
22207
22208 \begin_layout Standard
22209 As a special note, you can also use the 
22210 \begin_inset Quotes eld
22211 \end_inset
22212
22213 %def
22214 \begin_inset Quotes erd
22215 \end_inset
22216
22217  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
22218 rence:
22219 \end_layout
22220
22221 \begin_layout LyX-Code
22222 <<My chunk>>=
22223 \end_layout
22224
22225 \begin_layout LyX-Code
22226 def some_function(args):
22227 \end_layout
22228
22229 \begin_layout LyX-Code
22230    "This is the doc string for this function."
22231 \end_layout
22232
22233 \begin_layout LyX-Code
22234    print "My args: ", args
22235 \end_layout
22236
22237 \begin_layout LyX-Code
22238 @ %def some_function
22239 \end_layout
22240
22241 \begin_layout Standard
22242 For an example of this usage and the resulting cross-reference output, look
22243  at the Literate python program in 
22244 \emph on
22245 LIBDIR/examples/listerrors.lyx
22246 \emph default
22247  which should make this all clear.
22248 \end_layout
22249
22250 \begin_layout Paragraph
22251 Generating the documentation
22252 \end_layout
22253
22254 \begin_layout Standard
22255 At this point you already have a new document file with a proper document
22256  class, and with some code and text on it.
22257  How do I print it? The answer is simple, you select 
22258 \family sans
22259 View\SpecialChar menuseparator
22260 DVI,
22261 \family default
22262  etc.
22263  Just like you would do for a plain document.
22264  No special procedure is required.
22265 \end_layout
22266
22267 \begin_layout Standard
22268 To help orientate you, I will now explain what happens inside \SpecialChar LyX
22269 :
22270 \end_layout
22271
22272 \begin_layout Enumerate
22273 When the 
22274 \family sans
22275 Update\SpecialChar menuseparator
22276 DVI
22277 \family default
22278  menu option is chosen, a \SpecialChar LaTeX
22279  file is generated.
22280  
22281 \end_layout
22282
22283 \begin_deeper
22284 \begin_layout Standard
22285 If the document is of any literate class the generated file will be named
22286  with an extension name defined by the 
22287 \begin_inset Quotes eld
22288 \end_inset
22289
22290 literate
22291 \begin_inset Quotes erd
22292 \end_inset
22293
22294  format (defined in the Preferences panel), otherwise the file will have
22295  the usual 
22296 \family typewriter
22297 .tex
22298 \family default
22299  extension.
22300 \end_layout
22301
22302 \end_deeper
22303 \begin_layout Enumerate
22304 Note that the only difference so far is in the name of the file, no special
22305  processing is required by \SpecialChar LyX
22306 .
22307  Given that you formatted the code using the 
22308 \begin_inset Flex Noun
22309 status collapsed
22310
22311 \begin_layout Plain Layout
22312 Chunk
22313 \end_layout
22314
22315 \end_inset
22316
22317  layout that, by itself, takes care of the business.
22318 \end_layout
22319
22320 \begin_layout Enumerate
22321 If the document is of any literate class \SpecialChar LyX
22322  will then use the internal \SpecialChar LyX
22323  to
22324  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
22325  converter
22326 \begin_inset Foot
22327 status collapsed
22328
22329 \begin_layout Plain Layout
22330 The converters are defined in the 
22331 \family sans
22332 Tools\SpecialChar menuseparator
22333 Preferences
22334 \family default
22335  panel, under the 
22336 \begin_inset Quotes eld
22337 \end_inset
22338
22339 Conversion
22340 \begin_inset Quotes erd
22341 \end_inset
22342
22343  tab.
22344  See section 
22345 \emph on
22346 Converters
22347 \emph default
22348  of the 
22349 \emph on
22350 Customization
22351 \emph default
22352  manual for general information about converters.
22353 \end_layout
22354
22355 \end_inset
22356
22357  to generate the \SpecialChar LaTeX
22358  file.
22359 \end_layout
22360
22361 \begin_deeper
22362 \begin_layout Standard
22363 Otherwise it will just skip this step.
22364 \end_layout
22365
22366 \end_deeper
22367 \begin_layout Enumerate
22368 Finally, \SpecialChar LaTeX
22369  is invoked and the regular post processing continues as in a plain
22370  document.
22371 \end_layout
22372
22373 \begin_layout Standard
22374 Independence from a particular 
22375 \begin_inset Quotes eld
22376 \end_inset
22377
22378 literate tool
22379 \begin_inset Quotes erd
22380 \end_inset
22381
22382  is easily achieved by changing the commands that are run by the various
22383  converters.
22384 \end_layout
22385
22386 \begin_layout Paragraph
22387 Generating the code
22388 \end_layout
22389
22390 \begin_layout Standard
22391 When the build menu option is chosen or the corresponding button in the
22392  toolbar is pressed, a \SpecialChar LaTeX
22393  file is generated just like step 1 above.
22394  Next, \SpecialChar LyX
22395  invokes the 
22396 \family typewriter
22397 Noweb->Program
22398 \family default
22399  converter.
22400  This converter needs to be defined by the user and is not installed by
22401  default, though the Program format is.
22402  This converter (like any other converter) will have two parts:
22403 \end_layout
22404
22405 \begin_layout Enumerate
22406 The converter program itself.
22407  This program performs the conversion from the one format to the other (in
22408  this case, from the Noweb format to the Program pseudo-format).
22409 \end_layout
22410
22411 \begin_layout Enumerate
22412 The error log parser.
22413  This is a program whose sole purpose is to rewrite error messages in a
22414  format that \SpecialChar LyX
22415  understands.
22416  This makes it possible for \SpecialChar LyX
22417  to place error boxes in the right places in
22418  the file buffer.
22419 \end_layout
22420
22421 \begin_layout Standard
22422 The first part, the 
22423 \begin_inset Quotes eld
22424 \end_inset
22425
22426 Converter
22427 \begin_inset Quotes erd
22428 \end_inset
22429
22430  setting, should be set to
22431 \begin_inset Newline newline
22432 \end_inset
22433
22434
22435 \begin_inset Quotes eld
22436 \end_inset
22437
22438
22439 \family typewriter
22440 build-script $$i
22441 \family default
22442  $$r
22443 \begin_inset Quotes erd
22444 \end_inset
22445
22446 .
22447 \begin_inset Newline newline
22448 \end_inset
22449
22450 This basically means that \SpecialChar LyX
22451  will call 
22452 \begin_inset Quotes eld
22453 \end_inset
22454
22455 build-script
22456 \begin_inset Quotes erd
22457 \end_inset
22458
22459  (a program or script) with the name of the Noweb file (normally a file
22460  in the \SpecialChar LyX
22461  temp directory) and the directory path of the original \SpecialChar LyX
22462  file.
22463  
22464 \end_layout
22465
22466 \begin_layout Standard
22467 This is an implementation of 
22468 \begin_inset Quotes eld
22469 \end_inset
22470
22471 build-script
22472 \begin_inset Quotes erd
22473 \end_inset
22474
22475  that you can place in a directory on your path:
22476 \end_layout
22477
22478 \begin_layout Standard
22479 \begin_inset VSpace defskip
22480 \end_inset
22481
22482
22483 \end_layout
22484
22485 \begin_layout Standard
22486 \begin_inset Newpage pagebreak
22487 \end_inset
22488
22489
22490 \end_layout
22491
22492 \begin_layout Standard
22493
22494 \family sans
22495 #!/bin/sh
22496 \end_layout
22497
22498 \begin_layout Standard
22499
22500 \family sans
22501 #
22502 \end_layout
22503
22504 \begin_layout Standard
22505
22506 \family sans
22507 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
22508 \end_layout
22509
22510 \begin_layout Standard
22511 \begin_inset VSpace defskip
22512 \end_inset
22513
22514
22515 \end_layout
22516
22517 \begin_layout Standard
22518 The next part of the converter setting is the 
22519 \begin_inset Quotes eld
22520 \end_inset
22521
22522 Flags
22523 \begin_inset Quotes erd
22524 \end_inset
22525
22526  which is to be set to
22527 \begin_inset Newline newline
22528 \end_inset
22529
22530
22531 \begin_inset Quotes eld
22532 \end_inset
22533
22534
22535 \family typewriter
22536 parselog=$$s/scripts/listerrors
22537 \family default
22538
22539 \begin_inset Quotes erd
22540 \end_inset
22541
22542 .
22543 \begin_inset Newline newline
22544 \end_inset
22545
22546 This will run any errors that are generated by the 
22547 \begin_inset Quotes eld
22548 \end_inset
22549
22550 build-script
22551 \begin_inset Quotes erd
22552 \end_inset
22553
22554  process through the 
22555 \begin_inset Quotes eld
22556 \end_inset
22557
22558 listerrors
22559 \begin_inset Quotes erd
22560 \end_inset
22561
22562  program.
22563 \end_layout
22564
22565 \begin_layout Standard
22566 The build will normally take place in \SpecialChar LyX
22567 's temporary directory, so the files
22568  produced by the conversion will be in that directory.
22569  \SpecialChar LyX
22570  will copy out what it regards as the `main' file, but the 
22571 \family typewriter
22572 Noweb->Program
22573 \family default
22574  conversion may produce several files, and so most of these would then be
22575  deleted when \SpecialChar LyX
22576  was closed.
22577  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
22578  the build-script chunk can place the generated files in that location.
22579 \end_layout
22580
22581 \begin_layout Paragraph
22582 Build instructions in the document
22583 \end_layout
22584
22585 \begin_layout Standard
22586 The last piece of the integration between \SpecialChar LyX
22587  and noweb is the 
22588 \begin_inset Quotes eld
22589 \end_inset
22590
22591 build-script
22592 \begin_inset Quotes erd
22593 \end_inset
22594
22595  chunk.
22596  Generally, the instructions for building your program should be embedded
22597  in a chunk of its own.
22598  The noweb-specific 
22599 \begin_inset Quotes eld
22600 \end_inset
22601
22602 build-script
22603 \begin_inset Quotes erd
22604 \end_inset
22605
22606  above uses the notangle command to look for this chunk (called 
22607 \begin_inset Quotes eld
22608 \end_inset
22609
22610 build-script
22611 \begin_inset Quotes erd
22612 \end_inset
22613
22614 ) and runs its contents through 
22615 \begin_inset Quotes eld
22616 \end_inset
22617
22618 sh
22619 \begin_inset Quotes erd
22620 \end_inset
22621
22622 .
22623 \end_layout
22624
22625 \begin_layout Standard
22626 Typically, such a chunk would look something like this:
22627 \end_layout
22628
22629 \begin_layout LyX-Code
22630 <<build-script>>=
22631 \end_layout
22632
22633 \begin_layout LyX-Code
22634 #!/bin/sh
22635 \begin_inset Newline newline
22636 \end_inset
22637
22638 if [ -z "${NOWEB_SOURCE}" ]
22639 \begin_inset Newline newline
22640 \end_inset
22641
22642 then
22643 \end_layout
22644
22645 \begin_layout LyX-Code
22646 NOWEB_SOURCE=myfile.nw
22647 \begin_inset Newline newline
22648 \end_inset
22649
22650 fi
22651 \begin_inset Newline newline
22652 \end_inset
22653
22654 [...
22655  code to extract files ...
22656  use NOWEB_OUTPUT_DIR here ...]
22657 \begin_inset Newline newline
22658 \end_inset
22659
22660 [...
22661  code to compile files ...]
22662 \begin_inset Newline newline
22663 \end_inset
22664
22665 @
22666 \end_layout
22667
22668 \begin_layout Standard
22669 Look in 
22670 \emph on
22671 LIBDIR/examples/listerrors.lyx
22672 \emph default
22673  or in 
22674 \emph on
22675 LIBDIR/examples/Literate.lyx
22676 \emph default
22677  which implement two versions of the 
22678 \begin_inset Quotes eld
22679 \end_inset
22680
22681 listerrors
22682 \begin_inset Quotes erd
22683 \end_inset
22684
22685  program for some illustrations of how all of these pieces go together or
22686  in 
22687 \emph on
22688 LIBDIR/examples/noweb2lyx.lyx.
22689
22690 \emph default
22691  Interestingly, these three files show off the language-indepence of the
22692  \SpecialChar LyX
22693  literate programming support since they are written in Python, C and Perl
22694  respectively.
22695 \end_layout
22696
22697 \begin_layout Subsubsection
22698 Configuring \SpecialChar LyX
22699
22700 \end_layout
22701
22702 \begin_layout Standard
22703 All the Literate Programming support is configured by the 
22704 \family sans
22705 Tools\SpecialChar menuseparator
22706 Preferences
22707 \family default
22708  panel in the 
22709 \begin_inset Quotes eld
22710 \end_inset
22711
22712 File Handling
22713 \begin_inset Quotes erd
22714 \end_inset
22715
22716  tab.
22717  The important parts are:
22718 \end_layout
22719
22720 \begin_layout Description
22721 the
22722 \begin_inset space ~
22723 \end_inset
22724
22725
22726 \begin_inset Quotes eld
22727 \end_inset
22728
22729 NoWeb
22730 \begin_inset Quotes erd
22731 \end_inset
22732
22733
22734 \begin_inset space ~
22735 \end_inset
22736
22737 format Set up via the File Formats tab, this is where the Noweb-specific
22738  pieces are set up.
22739  The 
22740 \family sans
22741 GUI Name
22742 \family default
22743  is set to 
22744 \family typewriter
22745 NoWeb
22746 \family default
22747 , the file extension is set to 
22748 \family typewriter
22749 .nw
22750 \family default
22751 .
22752  This tells \SpecialChar LyX
22753  to create a file with a 
22754 \family typewriter
22755 .nw
22756 \family default
22757  extension in the first step of the conversion process.
22758 \end_layout
22759
22760 \begin_layout Description
22761 the
22762 \begin_inset space ~
22763 \end_inset
22764
22765
22766 \family sans
22767 Program
22768 \family default
22769
22770 \begin_inset space ~
22771 \end_inset
22772
22773 format This is an empty format whose sole purpose is to be the endpoint
22774  of a conversion (which then allows us to set up a converter for it).
22775 \end_layout
22776
22777 \begin_layout Description
22778
22779 \family sans
22780 NoWeb
22781 \family default
22782 ->
22783 \family sans
22784 \SpecialChar LaTeX
22785
22786 \family default
22787  This converter performs the 
22788 \begin_inset Quotes eld
22789 \end_inset
22790
22791 weaving
22792 \begin_inset Quotes erd
22793 \end_inset
22794
22795  of the literate document.
22796  For Noweb, it is set to 
22797 \begin_inset Quotes eld
22798 \end_inset
22799
22800
22801 \family typewriter
22802 noweave -delay -index $$i > $$o
22803 \family default
22804
22805 \begin_inset Quotes erd
22806 \end_inset
22807
22808
22809 \end_layout
22810
22811 \begin_layout Description
22812
22813 \family sans
22814 NoWeb
22815 \family default
22816 ->
22817 \family sans
22818 Program
22819 \family default
22820  This performs the 
22821 \begin_inset Quotes eld
22822 \end_inset
22823
22824 tangling step
22825 \begin_inset Quotes erd
22826 \end_inset
22827
22828 .
22829  As stated above, the Converter is set to 
22830 \begin_inset Quotes eld
22831 \end_inset
22832
22833
22834 \family typewriter
22835 build-script $$i
22836 \family default
22837  $$r
22838 \begin_inset Quotes erd
22839 \end_inset
22840
22841 , with Flags set to
22842 \begin_inset Newline newline
22843 \end_inset
22844
22845
22846 \begin_inset Quotes eld
22847 \end_inset
22848
22849
22850 \family typewriter
22851 parselog=$$s/scripts/listerrors
22852 \family default
22853
22854 \begin_inset Quotes erd
22855 \end_inset
22856
22857 .
22858 \end_layout
22859
22860 \begin_layout Subsubsection
22861 Debug extensions
22862 \end_layout
22863
22864 \begin_layout Standard
22865 There is also a new function implemented in the \SpecialChar LyX
22866  server, the 
22867 \begin_inset Quotes eld
22868 \end_inset
22869
22870 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
22871  
22872 \end_layout
22873
22874 \begin_layout Standard
22875 When debugging code with ddd/gdb, it is possible to invoke a text editor
22876  at the current execution position with a single key stroke.
22877  The default ddd configuration for that is shift-ctrl-V.
22878  It happens that you can define the editor command line invocation in ddd
22879  by accessing the 
22880 \family sans
22881 Edit\SpecialChar menuseparator
22882 Preferences\SpecialChar menuseparator
22883 Helpers
22884 \family default
22885  dialog and changing the "Edit Sources" entry.
22886 \end_layout
22887
22888 \begin_layout Standard
22889 I take advantage of the newly created \SpecialChar LyX
22890  server function and this ddd feature,
22891  and set 
22892 \begin_inset Quotes eld
22893 \end_inset
22894
22895 Edit Sources
22896 \begin_inset Quotes erd
22897 \end_inset
22898
22899  to:
22900 \end_layout
22901
22902 \begin_layout Standard
22903 \begin_inset VSpace defskip
22904 \end_inset
22905
22906
22907 \end_layout
22908
22909 \begin_layout Standard
22910
22911 \family sans
22912 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
22913 \end_layout
22914
22915 \begin_layout Standard
22916 \begin_inset VSpace defskip
22917 \end_inset
22918
22919
22920 \end_layout
22921
22922 \begin_layout Standard
22923 With this, whenever you are using ddd and find a point in the program that
22924  you want to edit, you just press shift-ctrl-V (in the ddd window), and
22925  ddd will forward this information to \SpecialChar LyX
22926  through the \SpecialChar LyX
22927  server and then the
22928  \SpecialChar LyX
22929  window will show the same file with the cursor at the same position ddd
22930  was pointing to.
22931  No more guessing or long scrolling to locate a point in the program back
22932  from debugging !
22933 \end_layout
22934
22935 \begin_layout Standard
22936 Note however that you must enable the \SpecialChar LyX
22937  server to get this feature working
22938  (it is disabled by default).
22939  You can enable it in 
22940 \family sans
22941 Preferences
22942 \family default
22943  (tabs 
22944 \family sans
22945 Inputs
22946 \family default
22947
22948 \family sans
22949 Paths
22950 \family default
22951 ) by entering in the 
22952 \family sans
22953 \SpecialChar LyX
22954 server pipe
22955 \family default
22956  a path like 
22957 \begin_inset Quotes eld
22958 \end_inset
22959
22960
22961 \family typewriter
22962 /home/<your-home-directory>/.lyx/lyxpipe
22963 \family default
22964
22965 \begin_inset Quotes erd
22966 \end_inset
22967
22968
22969 \end_layout
22970
22971 \begin_layout Standard
22972 Read the \SpecialChar LyX
22973  server documentation in the 
22974 \emph on
22975 Customization Manual
22976 \emph default
22977  for further information.
22978 \end_layout
22979
22980 \begin_layout Subsubsection
22981 Toolbar extensions
22982 \end_layout
22983
22984 \begin_layout Standard
22985 There are six new buttons that can be added to your \SpecialChar LyX
22986  toolbar.
22987  Five of these buttons are short cuts to layout styles: 
22988 \family sans
22989 Standard
22990 \family default
22991
22992 \family sans
22993 Section
22994 \family default
22995
22996 \family sans
22997 \SpecialChar LaTeX
22998
22999 \family default
23000
23001 \family sans
23002 \SpecialChar LyX
23003 -Code
23004 \family default
23005 , and 
23006 \family sans
23007 Chunk
23008 \family default
23009 .
23010  The last one is a short cut to the 
23011 \begin_inset Quotes eld
23012 \end_inset
23013
23014 Build Program
23015 \begin_inset Quotes erd
23016 \end_inset
23017
23018  File menu entry.
23019  
23020 \end_layout
23021
23022 \begin_layout Standard
23023 \SpecialChar LyX
23024  has a range of buttons that are available for tool bar customization.
23025  In my toolbar I like to combine the six short cuts above with two more:
23026  One for 
23027 \family sans
23028 Document
23029 \family default
23030 \SpecialChar menuseparator
23031
23032 \family sans
23033 Update
23034 \family default
23035 \SpecialChar menuseparator
23036
23037 \family sans
23038 DVI
23039 \family default
23040  and the other for 
23041 \family sans
23042 Document\SpecialChar menuseparator
23043 View\SpecialChar menuseparator
23044 DVI
23045 \family default
23046  File menu entries.
23047  Here is how it looks like:
23048 \end_layout
23049
23050 \begin_layout LyX-Code
23051 Toolbar
23052 \end_layout
23053
23054 \begin_layout LyX-Code
23055   Layouts
23056 \end_layout
23057
23058 \begin_layout LyX-Code
23059   Icon "layout Standard"
23060 \end_layout
23061
23062 \begin_layout LyX-Code
23063   Icon "layout Section"
23064 \end_layout
23065
23066 \begin_layout LyX-Code
23067   Icon "layout \SpecialChar LaTeX
23068 "
23069 \end_layout
23070
23071 \begin_layout LyX-Code
23072   Icon "layout \SpecialChar LyX
23073 -Code"
23074 \end_layout
23075
23076 \begin_layout LyX-Code
23077   Icon "layout Chunk"
23078 \end_layout
23079
23080 \begin_layout LyX-Code
23081   Separator
23082 \end_layout
23083
23084 \begin_layout LyX-Code
23085   Icon "buffer-view"
23086 \end_layout
23087
23088 \begin_layout LyX-Code
23089   Icon "buffer-typeset"
23090 \end_layout
23091
23092 \begin_layout LyX-Code
23093   Icon "build-program"
23094 \end_layout
23095
23096 \begin_layout LyX-Code
23097   Separator
23098 \end_layout
23099
23100 \begin_layout LyX-Code
23101 .
23102 \end_layout
23103
23104 \begin_layout LyX-Code
23105 .
23106 \end_layout
23107
23108 \begin_layout LyX-Code
23109 .
23110 \end_layout
23111
23112 \begin_layout LyX-Code
23113 End
23114 \end_layout
23115
23116 \begin_layout Subsubsection
23117 Colors customization
23118 \end_layout
23119
23120 \begin_layout Standard
23121 There are a number of colors in \SpecialChar LyX
23122  that can be customized in 
23123 \family sans
23124 Preferences
23125 \family default
23126 .
23127  One of the things that bothers people is the \SpecialChar LaTeX
23128  font color.
23129  The default color is red, since the chunks uses \SpecialChar LaTeX
23130  font, and there is a lot
23131  of chunks in literate documents, you may get tired of seeing everything
23132  in red.
23133  You can change it by going to the tabs 
23134 \family sans
23135 Look&Feel
23136 \family default
23137
23138 \family sans
23139 Colors.
23140 \end_layout
23141
23142 \begin_layout Standard
23143 The next thing is the visible presence of the newline character in the screen.
23144  You can choose the color of this particular character and make it blend
23145  in the background.
23146  I recommend you choosing a color that is close to the background but not
23147  equal, that way you still can see it is there, but it is not bothering
23148  you anymore.
23149 \end_layout
23150
23151 \begin_layout Subsection
23152 \SpecialChar LyX
23153  and knitr/Sweave
23154 \end_layout
23155
23156 \begin_layout Standard
23157 Support for 
23158 \family sans
23159 knitr
23160 \family default
23161  and 
23162 \family sans
23163 Sweave
23164 \family default
23165  is documented in the 
23166 \emph on
23167 knitr.lyx
23168 \emph default
23169  example file and in the Sweave manual (menu 
23170 \family sans
23171 Help\SpecialChar menuseparator
23172 Specific Manuals
23173 \family default
23174 ).
23175 \end_layout
23176
23177 \begin_layout Chapter
23178 \SpecialChar LyX
23179  Archives
23180 \end_layout
23181
23182 \begin_layout Standard
23183 Users sometimes need to be able to 
23184 \begin_inset Quotes eld
23185 \end_inset
23186
23187 bundle
23188 \begin_inset Quotes erd
23189 \end_inset
23190
23191  a \SpecialChar LyX
23192  file together with all the images (and other files) on which it depends,
23193  either for sending to a publisher or for sharing with a co-author.
23194  \SpecialChar LyX
23195  2.0 includes a Python script (
23196 \begin_inset Flex Code
23197 status collapsed
23198
23199 \begin_layout Plain Layout
23200 lyxpak.py
23201 \end_layout
23202
23203 \end_inset
23204
23205 ) that automates this process.
23206  To use it, you must have either the 
23207 \begin_inset Flex Code
23208 status collapsed
23209
23210 \begin_layout Plain Layout
23211 zipfile
23212 \end_layout
23213
23214 \end_inset
23215
23216  or 
23217 \begin_inset Flex Code
23218 status collapsed
23219
23220 \begin_layout Plain Layout
23221 tarfile
23222 \end_layout
23223
23224 \end_inset
23225
23226  python modules installed on your system.
23227  By default, the script prefers the 
23228 \begin_inset Flex Code
23229 status collapsed
23230
23231 \begin_layout Plain Layout
23232 gzip
23233 \end_layout
23234
23235 \end_inset
23236
23237 -compressed 
23238 \begin_inset Flex Code
23239 status collapsed
23240
23241 \begin_layout Plain Layout
23242 tar
23243 \end_layout
23244
23245 \end_inset
23246
23247  format on Unix-like systems and the 
23248 \begin_inset Flex Code
23249 status collapsed
23250
23251 \begin_layout Plain Layout
23252 zip
23253 \end_layout
23254
23255 \end_inset
23256
23257  format on Windows.
23258 \end_layout
23259
23260 \begin_layout Standard
23261 \SpecialChar LyX
23262 's configuration process will set the script up to export a `\SpecialChar LyX
23263  Archive',
23264  and this format will then be available under 
23265 \begin_inset Flex Code
23266 status collapsed
23267
23268 \begin_layout Plain Layout
23269 File\SpecialChar menuseparator
23270 Export
23271 \end_layout
23272
23273 \end_inset
23274
23275 .
23276 \end_layout
23277
23278 \begin_layout Standard
23279 Independently of the platform, the generation of a particular archive format
23280  can be forced by adding either the 
23281 \begin_inset Flex Code
23282 status collapsed
23283
23284 \begin_layout Plain Layout
23285 -t
23286 \end_layout
23287
23288 \end_inset
23289
23290  (for the 
23291 \begin_inset Flex Code
23292 status collapsed
23293
23294 \begin_layout Plain Layout
23295 tar
23296 \end_layout
23297
23298 \end_inset
23299
23300  format) or 
23301 \begin_inset Flex Code
23302 status collapsed
23303
23304 \begin_layout Plain Layout
23305 -z
23306 \end_layout
23307
23308 \end_inset
23309
23310  (for the 
23311 \begin_inset Flex Code
23312 status collapsed
23313
23314 \begin_layout Plain Layout
23315 zip
23316 \end_layout
23317
23318 \end_inset
23319
23320  format) switch to the 
23321 \begin_inset Flex Code
23322 status collapsed
23323
23324 \begin_layout Plain Layout
23325 \SpecialChar LyX
23326 \SpecialChar menuseparator
23327 \SpecialChar LyX
23328  Archive
23329 \end_layout
23330
23331 \end_inset
23332
23333  converter in 
23334 \begin_inset Flex Code
23335 status collapsed
23336
23337 \begin_layout Plain Layout
23338 Tools\SpecialChar menuseparator
23339 Preferences\SpecialChar menuseparator
23340 File Handling\SpecialChar menuseparator
23341 Converters
23342 \end_layout
23343
23344 \end_inset
23345
23346 .
23347  (Make sure you add the switch after the script name, not before it.)
23348 \end_layout
23349
23350 \begin_layout Chapter
23351 \SpecialChar LyX
23352  and the World Wide Web
23353 \end_layout
23354
23355 \begin_layout Standard
23356 \SpecialChar LyX
23357  has long supported the export of documents to various web-friendly formats,
23358  such as HTML.
23359  Before verson 2.0, however, HTML export was always accomplished by the use
23360  of external converters.
23361 \begin_inset Foot
23362 status collapsed
23363
23364 \begin_layout Plain Layout
23365 For details on the use of external converters with \SpecialChar LyX
23366 , see the 
23367 \emph on
23368 Converters
23369 \emph default
23370  section of the Customization manual.
23371 \end_layout
23372
23373 \end_inset
23374
23375  These fall into two large groups: there are converters that use \SpecialChar LaTeX
23376  as an
23377  intermediate format, such as 
23378 \begin_inset Flex Code
23379 status collapsed
23380
23381 \begin_layout Plain Layout
23382 htlatex
23383 \end_layout
23384
23385 \end_inset
23386
23387
23388 \begin_inset Flex Code
23389 status collapsed
23390
23391 \begin_layout Plain Layout
23392 html2latex
23393 \end_layout
23394
23395 \end_inset
23396
23397 , and 
23398 \begin_inset Flex Code
23399 status collapsed
23400
23401 \begin_layout Plain Layout
23402 plastex
23403 \end_layout
23404
23405 \end_inset
23406
23407 , relying upon \SpecialChar LyX
23408  to produce the \SpecialChar LaTeX
23409 ; and there is a converter that works directly
23410  on \SpecialChar LyX
23411  files, 
23412 \begin_inset Flex Code
23413 status collapsed
23414
23415 \begin_layout Plain Layout
23416 e\SpecialChar LyX
23417 er
23418 \end_layout
23419
23420 \end_inset
23421
23422 .
23423  All of these have different advantages and disadvantages.
23424  
23425 \end_layout
23426
23427 \begin_layout Standard
23428 The \SpecialChar LaTeX
23429 -based converters have the advantage that, in principle, they know everythin
23430 g about the exported document that \SpecialChar LaTeX
23431  does.
23432  Such converters do not care, for example, if a certain block of code was
23433  produced by \SpecialChar LyX
23434  or was Evil Red Text.
23435  These converters know about 
23436 \begin_inset Flex Code
23437 status collapsed
23438
23439 \begin_layout Plain Layout
23440 aux
23441 \end_layout
23442
23443 \end_inset
23444
23445  files, counters, and references, and can often make use of the 
23446 \begin_inset Flex Code
23447 status collapsed
23448
23449 \begin_layout Plain Layout
23450 bbl
23451 \end_layout
23452
23453 \end_inset
23454
23455  files generated by Bib\SpecialChar TeX
23456 .
23457  On the other hand, \SpecialChar LaTeX
23458  is a very hard language to parse—it is sometimes said
23459  that only \SpecialChar TeX
23460  itself understands \SpecialChar TeX
23461 —and \SpecialChar LaTeX
23462 -based converters will often choke on
23463  what seem to be quite simple constructs; complex ones can throw them completely
23464 , and as of this writing, for example, the 
23465 \emph on
23466 Embedded Objects
23467 \emph default
23468  manual will not export with 
23469 \begin_inset Flex Code
23470 status collapsed
23471
23472 \begin_layout Plain Layout
23473 htlatex
23474 \end_layout
23475
23476 \end_inset
23477
23478 , though the others will.
23479  The other issue concerns how math is handled.
23480  These converters typically convert the formulae into little pictures that
23481  are then linked from the HTML document.
23482  Since these are actually generated by \SpecialChar LaTeX
23483 , they are accurate.
23484  But they do not scale well, and just getting them to look as if they are
23485  actually meant to be in your document—so that the font sizes seem to be
23486  roughly the same—can be a challenge.
23487 \end_layout
23488
23489 \begin_layout Standard
23490 Alex Fernandez's 
23491 \begin_inset Flex Code
23492 status collapsed
23493
23494 \begin_layout Plain Layout
23495 e\SpecialChar LyX
23496 er
23497 \end_layout
23498
23499 \end_inset
23500
23501  (
23502 \begin_inset CommandInset href
23503 LatexCommand href
23504 name "http://elyxer.nongnu.org/"
23505 target "http://elyxer.nongnu.org/"
23506
23507 \end_inset
23508
23509 ) solves some of these problems.
23510  In particular, the formulae it produces scale perfectly, since it renders
23511  math using a combination of HTML and CSS rather than converting the formulae
23512  to images.
23513  But even moderately complex formula are rendered less well than with 
23514 \begin_inset Flex Code
23515 status collapsed
23516
23517 \begin_layout Plain Layout
23518 htlatex
23519 \end_layout
23520
23521 \end_inset
23522
23523 ; this reflects the limitations of HTML.
23524 \begin_inset Foot
23525 status collapsed
23526
23527 \begin_layout Plain Layout
23528 That said, 
23529 \begin_inset Flex Code
23530 status collapsed
23531
23532 \begin_layout Plain Layout
23533 e\SpecialChar LyX
23534 er
23535 \end_layout
23536
23537 \end_inset
23538
23539  can also use jsMath and MathJax for equations, but this setting is only
23540  available globally and requires one to have access to a server that runs
23541  the backend.
23542 \end_layout
23543
23544 \end_inset
23545
23546  More importantly (as of version 1.1.1, at least), 
23547 \begin_inset Flex Code
23548 status collapsed
23549
23550 \begin_layout Plain Layout
23551 e\SpecialChar LyX
23552 er
23553 \end_layout
23554
23555 \end_inset
23556
23557  has limited support for math macros and no support for user-defined paragraph
23558  or character styles.
23559  These limitations make 
23560 \begin_inset Flex Code
23561 status collapsed
23562
23563 \begin_layout Plain Layout
23564 e\SpecialChar LyX
23565 er
23566 \end_layout
23567
23568 \end_inset
23569
23570  unsuitable for many of the documents \SpecialChar LyX
23571  users produce.
23572  In principle, of course, these problems could be solved, but the \SpecialChar LyX
23573  developers
23574  have decided to follow a different path and have made \SpecialChar LyX
23575  itself capable of
23576  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
23577 , DocBook, and plaintext.
23578 \end_layout
23579
23580 \begin_layout Standard
23581 As of this writing, XHTML output remains under development and should probably
23582  be regarded as 
23583 \begin_inset Quotes eld
23584 \end_inset
23585
23586 experimental
23587 \begin_inset Quotes erd
23588 \end_inset
23589
23590 .
23591 \begin_inset Foot
23592 status collapsed
23593
23594 \begin_layout Plain Layout
23595 The file 
23596 \begin_inset Flex Code
23597 status collapsed
23598
23599 \begin_layout Plain Layout
23600 development/HTML.notes
23601 \end_layout
23602
23603 \end_inset
23604
23605 , which can be found in the \SpecialChar LyX
23606  source tree or 
23607 \begin_inset CommandInset href
23608 LatexCommand href
23609 name "accessed online"
23610 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
23611
23612 \end_inset
23613
23614 , usually contains up-to-date information about the state of XHTML output.
23615  See also the list of XHTML bugs on 
23616 \begin_inset CommandInset href
23617 LatexCommand href
23618 name "the bug tracker"
23619 target "http://www.lyx.org/trac/query?status=reopened&status=assigned&status=new&max=0&component=xhtml+export&order=id&col=id&col=summary&col=reporter&col=keywords&keywords=%21%7Efixedintrunk&desc=1"
23620
23621 \end_inset
23622
23623 .
23624 \end_layout
23625
23626 \end_inset
23627
23628  Still, the developers have chosen this approach because it has several
23629  potential advantages over the other two.
23630 \end_layout
23631
23632 \begin_layout Standard
23633 These advantages are primarily due to the fact that the XHTML output routines,
23634  since they are part of \SpecialChar LyX
23635 , know everything \SpecialChar LyX
23636  knows about the document being
23637  exported.
23638 \begin_inset Foot
23639 status collapsed
23640
23641 \begin_layout Plain Layout
23642 Another advantage is that, since these routines are internal to \SpecialChar LyX
23643 , they are
23644  immune to changes in \SpecialChar LyX
23645 's file format, or to changes in the semantics of
23646  existing insets.
23647 \end_layout
23648
23649 \end_inset
23650
23651  So they know about the table of contents (as displayed in the outline),
23652  about the counters associated with different paragraph styles, and about
23653  user-defined styles.
23654  The XHTML output routines know what \SpecialChar LyX
23655  knows about internationalization,
23656  too, so they will output 
23657 \begin_inset Quotes eld
23658 \end_inset
23659
23660 Chapter 1
23661 \begin_inset Quotes erd
23662 \end_inset
23663
23664  or 
23665 \begin_inset Quotes eld
23666 \end_inset
23667
23668
23669 \lang ngerman
23670 Kapitel
23671 \lang english
23672  1
23673 \begin_inset Quotes erd
23674 \end_inset
23675
23676 , depending upon the language in effect at the time.
23677  
23678 \end_layout
23679
23680 \begin_layout Standard
23681 Quite generally, the output routines know what \SpecialChar LyX
23682  knows about document layout,
23683  that is, about how the document is to be rendered on screen.
23684  We use this information when we output the document as XHTML.
23685  In particular, \SpecialChar LyX
23686  
23687 \emph on
23688 automatically
23689 \emph default
23690  generates CSS style information corresponding to the layout information
23691  it uses to render the document on screen: if section headings are supposed
23692  to be sans-serif and bold as seen in \SpecialChar LyX
23693 , then (by default) they will be sans-seri
23694 f and bold when viewed in a web browser, too.
23695  And this is true not just for pre-defined styles, like Section, but for
23696  any style, including user-defined styles.
23697  Indeed, the XHTML output routines make no distinction between user-defined
23698  paragraph and character styles and \SpecialChar LyX
23699 's own pre-defined styles: in each case,
23700  everything \SpecialChar LyX
23701  knows about the styles is contained in the layout files.
23702  And much the same is true as regards pre-defined textual insets, such as
23703  footnotes, and various custom insets.
23704  
23705 \end_layout
23706
23707 \begin_layout Standard
23708 The result is that XHTML output can be customized and extended in exactly
23709  the same way \SpecialChar LaTeX
23710  output can be customized and extended: through layout files
23711  and modules.
23712  See chapter five of the 
23713 \emph on
23714 Customization 
23715 \emph default
23716 manual for the details.
23717 \end_layout
23718
23719 \begin_layout Standard
23720 The remainder of this chapter contains more detailed information on XHTML
23721  output, its limitations, and ways to work around those limitations.
23722 \end_layout
23723
23724 \begin_layout Section
23725 Math Output in XHTML
23726 \end_layout
23727
23728 \begin_layout Standard
23729 \SpecialChar LyX
23730  offers four choices for how math is rendered.
23731  These have various advantages and disadvantages:
23732 \end_layout
23733
23734 \begin_layout Itemize
23735 MathML
23736 \begin_inset Newline newline
23737 \end_inset
23738
23739 MathML is a dialect of XML designed specifically for mathematics on the
23740  web, and it typically renders very well in browsers that support it.
23741  The disadvantage is that not all browsers support MathML, and support is
23742  not complete even in the Gecko-based browsers, such as Firefox.
23743 \begin_inset Newline newline
23744 \end_inset
23745
23746 If \SpecialChar LyX
23747  is unable to render a formula as MathML—for example, if the formula
23748  uses the 
23749 \begin_inset Flex Code
23750 status collapsed
23751
23752 \begin_layout Plain Layout
23753 xymatrix
23754 \end_layout
23755
23756 \end_inset
23757
23758  package or ERT—then it will instead output the formula as an image.
23759  
23760 \end_layout
23761
23762 \begin_layout Itemize
23763 HTML
23764 \begin_inset Newline newline
23765 \end_inset
23766
23767 As mentioned above, 
23768 \begin_inset Flex Code
23769 status collapsed
23770
23771 \begin_layout Plain Layout
23772 elyxer
23773 \end_layout
23774
23775 \end_inset
23776
23777  outputs math as HTML, styled by CSS.
23778 \begin_inset Foot
23779 status collapsed
23780
23781 \begin_layout Plain Layout
23782 \SpecialChar LyX
23783  has borrowed some of the CSS for its HTML output from 
23784 \begin_inset Flex Code
23785 status collapsed
23786
23787 \begin_layout Plain Layout
23788 elyxer
23789 \end_layout
23790
23791 \end_inset
23792
23793 .
23794 \end_layout
23795
23796 \end_inset
23797
23798  For simple formulae, this can work quite well, though with more complicated
23799  formulae it tends to break down.
23800  Still, this method has the advantage that it is very widely supported and
23801  so it may be appropriate for documents that contain only a little, fairly
23802  simple math.
23803 \begin_inset Newline newline
23804 \end_inset
23805
23806 If Lyx is unable to render a formula as HTML—for example, if the formula
23807  uses the 
23808 \begin_inset Flex Code
23809 status collapsed
23810
23811 \begin_layout Plain Layout
23812 xymatrix
23813 \end_layout
23814
23815 \end_inset
23816
23817  package or ERT—then it will instead output the formula as an image.
23818  
23819 \end_layout
23820
23821 \begin_layout Itemize
23822 Images
23823 \begin_inset Newline newline
23824 \end_inset
23825
23826 Like 
23827 \begin_inset Flex Code
23828 status collapsed
23829
23830 \begin_layout Plain Layout
23831 htlatex
23832 \end_layout
23833
23834 \end_inset
23835
23836 , \SpecialChar LyX
23837  will output formulae as images, the very same images, in fact, that are
23838  used for instant preview.
23839 \begin_inset Foot
23840 status collapsed
23841
23842 \begin_layout Plain Layout
23843 Instant preview does 
23844 \emph on
23845 not 
23846 \emph default
23847 have to be on for images to be output, however.
23848 \end_layout
23849
23850 \end_inset
23851
23852  The advantage to this method is that the images are simply generated by
23853  \SpecialChar LaTeX
23854 , so they are very accurate.
23855  The disadvantage, as mentioned earlier, is that these are bitmapped images,
23856  so they do not scale terribly well, and one cannot copy them, etc.
23857  (As of this writing, there are also problems about equation numbering.
23858  See 
23859 \begin_inset CommandInset href
23860 LatexCommand href
23861 name "bug 6894"
23862 target "http://www.lyx.org/trac/ticket/6894"
23863
23864 \end_inset
23865
23866 .)
23867 \begin_inset Newline newline
23868 \end_inset
23869
23870 The size of the images can be controlled by setting the 
23871 \begin_inset Quotes eld
23872 \end_inset
23873
23874 Math Images Scaling
23875 \begin_inset Quotes erd
23876 \end_inset
23877
23878  parameter under 
23879 \begin_inset Flex Noun
23880 status collapsed
23881
23882 \begin_layout Plain Layout
23883 Document\SpecialChar menuseparator
23884 Settings\SpecialChar menuseparator
23885 Output
23886 \end_layout
23887
23888 \end_inset
23889
23890 .
23891 \begin_inset Foot
23892 status collapsed
23893
23894 \begin_layout Plain Layout
23895 For those who want to know, this controls the resolution of the image in
23896  dots per inch and is based upon a default of 75 dpi.
23897 \end_layout
23898
23899 \end_inset
23900
23901
23902 \begin_inset Newline newline
23903 \end_inset
23904
23905 If \SpecialChar LyX
23906  for some reason fails to create an image for a formula (e.g., if a required
23907  \SpecialChar LaTeX
23908  package is not installed), then it will fall back to outputing the raw
23909  \SpecialChar LaTeX
23910 .
23911 \end_layout
23912
23913 \begin_layout Itemize
23914 \SpecialChar LaTeX
23915
23916 \begin_inset Newline newline
23917 \end_inset
23918
23919 Finally, \SpecialChar LyX
23920  will happily output math as \SpecialChar LaTeX
23921 .
23922  As well as being the output of last resort, this method can be used with
23923  such tools as 
23924 \begin_inset CommandInset href
23925 LatexCommand href
23926 name "jsMath"
23927 target "http://www.math.union.edu/~dpvc/jsMath/"
23928
23929 \end_inset
23930
23931 , which uses JavaScript to render \SpecialChar LaTeX
23932  embedded in HTML documents.
23933  \SpecialChar LyX
23934  wraps the \SpecialChar LaTeX
23935  in either a 
23936 \begin_inset Flex Code
23937 status collapsed
23938
23939 \begin_layout Plain Layout
23940 span
23941 \end_layout
23942
23943 \end_inset
23944
23945  (for inline formulas) or 
23946 \begin_inset Flex Code
23947 status collapsed
23948
23949 \begin_layout Plain Layout
23950 div
23951 \end_layout
23952
23953 \end_inset
23954
23955  (for displayed formulas) with 
23956 \begin_inset Flex Code
23957 status collapsed
23958
23959 \begin_layout Plain Layout
23960 class='math'
23961 \end_layout
23962
23963 \end_inset
23964
23965 , as is required for jsMath.
23966 \end_layout
23967
23968 \begin_layout Standard
23969 One of these output methods must be selected under 
23970 \begin_inset Flex Noun
23971 status collapsed
23972
23973 \begin_layout Plain Layout
23974 Document\SpecialChar menuseparator
23975 Settings\SpecialChar menuseparator
23976 Output
23977 \end_layout
23978
23979 \end_inset
23980
23981 .
23982  By default, \SpecialChar LyX
23983  outputs MathML.
23984  This is a document-wide setting, therefore.
23985 \end_layout
23986
23987 \begin_layout Standard
23988 Eventually, \SpecialChar LyX
23989  will offer the user the option to select an alternate output
23990  method for a particular inset, say, one that isn't being rendered very
23991  well by MathML.
23992 \begin_inset Foot
23993 status collapsed
23994
23995 \begin_layout Plain Layout
23996 That said, since \SpecialChar LyX
23997  falls back to images if the inset contains ERT, then one
23998  can force output as an image by putting some harmless ERT into the math,
23999  for example: 
24000 \begin_inset Formula $a=b\relax$
24001 \end_inset
24002
24003 .
24004 \end_layout
24005
24006 \end_inset
24007
24008
24009 \end_layout
24010
24011 \begin_layout Section
24012 Bibliography and Citations
24013 \end_layout
24014
24015 \begin_layout Standard
24016 XHTML output fully supports bibliographies and citations.
24017  
24018 \end_layout
24019
24020 \begin_layout Standard
24021 Citation labels are generated by the same machinery that generates \SpecialChar LyX
24022 's on-screen
24023  labels, so the labels will look in the output much as they do in \SpecialChar LyX
24024 , though
24025  better.
24026  If you are using numerical citations, then \SpecialChar LyX
24027  will output numerical labels,
24028  such as [1] or [17], rather than simply showing the citation key in square
24029  brackets, as it does on-screen.
24030  If you are using author-year citations, then \SpecialChar LyX
24031  will add lowercase letters
24032  to the years, just as Bib\SpecialChar TeX
24033  does, if it finds more than one citation for
24034  a given author-year combination.
24035  The labels will be printed with the bibliography entries.
24036  Note that there is, at present, no way to customize the appearance of the
24037  labels, for example, to choose between square brackets and parentheses.
24038 \end_layout
24039
24040 \begin_layout Standard
24041 Bibliography output is handled by the same machinery that handles the presentati
24042 on of reference information in the citation dialog, so you will see in the
24043  XHTML output pretty much what you would see if you were to look at a given
24044  entry in the citation dialog.
24045  The formatting can be customized in your layout file or, preferably, in
24046  a module.
24047  See the 
24048 \emph on
24049 Customization
24050 \emph default
24051  manual for the details.
24052 \end_layout
24053
24054 \begin_layout Standard
24055 The main defect at present is that cross-referenced information is printed
24056  with every entry with which it is associated.
24057  So you can see things like this:
24058 \end_layout
24059
24060 \begin_layout Quote
24061 Jason Stanley, 
24062 \begin_inset Quotes eld
24063 \end_inset
24064
24065 Context and Logical Form
24066 \begin_inset Quotes erd
24067 \end_inset
24068
24069 , in 
24070 \emph on
24071 Language in Context: Selected Essays
24072 \emph default
24073  (Oxford: Oxford University Press, 2007), pp.
24074  30–68.
24075 \end_layout
24076
24077 \begin_layout Quote
24078 Jason Stanley, 
24079 \begin_inset Quotes eld
24080 \end_inset
24081
24082 Semantics in Context
24083 \begin_inset Quotes erd
24084 \end_inset
24085
24086 , in 
24087 \emph on
24088 Language in Context: Selected Essays
24089 \emph default
24090  (Oxford: Oxford University Press, 2007), pp.
24091  201–30.
24092 \end_layout
24093
24094 \begin_layout Standard
24095 This should be fixed before long.
24096 \end_layout
24097
24098 \begin_layout Standard
24099 There is no support at present for sectioned bibliographies.
24100  If you have multiple bibliographies, then \SpecialChar LyX
24101  will print the same bibliography
24102  over and over.
24103 \end_layout
24104
24105 \begin_layout Section
24106 Indexes
24107 \end_layout
24108
24109 \begin_layout Standard
24110 \SpecialChar LyX
24111  will happily export indexes as XHTML, but with certain limitations at the
24112  moment.
24113 \end_layout
24114
24115 \begin_layout Standard
24116 Index export will be most reliable when you do not attempt to use the fancy
24117  constructs that are described in the section on indexes in the 
24118 \emph on
24119 User's Guide
24120 \emph default
24121 .
24122 \begin_inset Foot
24123 status collapsed
24124
24125 \begin_layout Plain Layout
24126 The main issue here is that \SpecialChar LyX
24127  itself does not really handle these.
24128  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
24129 .
24130 \end_layout
24131
24132 \end_inset
24133
24134  We'll describe how they are handled using the subsection headings from
24135  that section.
24136 \end_layout
24137
24138 \begin_layout Itemize
24139 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
24140  makes an effort to support these,
24141  but the entries must be separated by 
24142 \begin_inset Quotes eld
24143 \end_inset
24144
24145  ! 
24146 \begin_inset Quotes erd
24147 \end_inset
24148
24149 , that is, there must be spaces around the exclamation point.
24150  This is because it is otherwise too difficult to check for escaped exclamation
24151  points, ones in math, and so forth.
24152 \end_layout
24153
24154 \begin_layout Itemize
24155 Page Ranges: There is no support at all for page ranges, since these make
24156  no sense with XHMTL.
24157  Instead, you will just get two index entries, one at either end.
24158 \end_layout
24159
24160 \begin_layout Itemize
24161 Cross-referencing: There is no support for cross-referencing.
24162  If \SpecialChar LyX
24163  finds an entry containing the 
24164 \begin_inset Quotes eld
24165 \end_inset
24166
24167 |see\SpecialChar ldots
24168
24169 \begin_inset Quotes erd
24170 \end_inset
24171
24172  construct, it is just dropped, and the rest is treated as an ordinary index
24173  entry.
24174 \end_layout
24175
24176 \begin_layout Itemize
24177 Index Entry Order: \SpecialChar LyX
24178  does support attempts to fix the sorting order.
24179  It will take what is before the first `@' it finds and use that for sorting,
24180  taking what follows the first `@' to be the actual entry.
24181  At present, \SpecialChar LyX
24182  does not check for escaped `@', so do not try to index email
24183  addresses.
24184 \end_layout
24185
24186 \begin_layout Itemize
24187 Index Entry Layout: You can format entries by using the text style dialog,
24188  or by using any other method available within \SpecialChar LyX
24189  itself.
24190  There is no support for constructs like: 
24191 \begin_inset Quotes eld
24192 \end_inset
24193
24194 entry|textbf
24195 \begin_inset Quotes erd
24196 \end_inset
24197
24198 .
24199  Indeed, if \SpecialChar LyX
24200  finds a pipe symbol, `|', in an entry, it will delete it and
24201  everything that follows it.
24202 \end_layout
24203
24204 \begin_layout Itemize
24205 Multiple Indexes: There is no support for multiple indexes.
24206  Rather, all index entries will be printed as one large index.
24207  To avoid our printing several versions of the index, we print only the
24208  main index, so make sure you have one.
24209 \end_layout
24210
24211 \begin_layout Section
24212 Nomenclature and Glossary
24213 \end_layout
24214
24215 \begin_layout Standard
24216 There is at present no support for glossaries.
24217  Adding it would be fairly trivial, and welcome.
24218 \end_layout
24219
24220 \begin_layout Chapter
24221 The \SpecialChar LyX
24222  Server
24223 \end_layout
24224
24225 \begin_layout Section
24226 Introduction
24227 \end_layout
24228
24229 \begin_layout Standard
24230 The `\SpecialChar LyX
24231  server' allows other programs to talk to \SpecialChar LyX
24232 , invoke \SpecialChar LyX
24233  commands, and retrieve
24234  information about the \SpecialChar LyX
24235  internal state.
24236  This is only intended for advanced users, but they should find it useful.
24237  It is by writing to the \SpecialChar LyX
24238  server, for example, that bibliography managers,
24239  such as JabRef, are able to 
24240 \begin_inset Quotes eld
24241 \end_inset
24242
24243 push
24244 \begin_inset Quotes erd
24245 \end_inset
24246
24247  citations to \SpecialChar LyX
24248 .
24249 \end_layout
24250
24251 \begin_layout Section
24252 Starting the \SpecialChar LyX
24253  Server
24254 \end_layout
24255
24256 \begin_layout Standard
24257 The \SpecialChar LyX
24258  server works through the use of a pair of named pipes.
24259  These are usually located in 
24260 \begin_inset Flex Code
24261 status collapsed
24262
24263 \begin_layout Plain Layout
24264 UserDir
24265 \end_layout
24266
24267 \end_inset
24268
24269 , (except on Windows, where 
24270 \emph on
24271 local
24272 \emph default
24273  named pipes are special objects located in 
24274 \begin_inset Flex Code
24275 status collapsed
24276
24277 \begin_layout Plain Layout
24278
24279 \backslash
24280
24281 \backslash
24282 .
24283 \backslash
24284 pipe
24285 \end_layout
24286
24287 \end_inset
24288
24289 ) and have the names 
24290 \begin_inset Quotes eld
24291 \end_inset
24292
24293
24294 \begin_inset Flex Code
24295 status collapsed
24296
24297 \begin_layout Plain Layout
24298 lyxpipe.in
24299 \end_layout
24300
24301 \end_inset
24302
24303
24304 \begin_inset Quotes erd
24305 \end_inset
24306
24307  and 
24308 \begin_inset Quotes eld
24309 \end_inset
24310
24311
24312 \begin_inset Flex Code
24313 status collapsed
24314
24315 \begin_layout Plain Layout
24316 lyxpipe.out
24317 \end_layout
24318
24319 \end_inset
24320
24321
24322 \begin_inset Quotes erd
24323 \end_inset
24324
24325 .
24326  External programs write into 
24327 \begin_inset Flex Code
24328 status collapsed
24329
24330 \begin_layout Plain Layout
24331 lyxpipe.in
24332 \end_layout
24333
24334 \end_inset
24335
24336  and read back data from 
24337 \begin_inset Flex Code
24338 status collapsed
24339
24340 \begin_layout Plain Layout
24341 lyxpipe.out
24342 \end_layout
24343
24344 \end_inset
24345
24346 .
24347  The stem of the pipe names can be defined in the 
24348 \begin_inset Flex Noun
24349 status collapsed
24350
24351 \begin_layout Plain Layout
24352 Tools\SpecialChar menuseparator
24353 Preferences
24354 \end_layout
24355
24356 \end_inset
24357
24358  dialog, for example 
24359 \begin_inset Flex Code
24360 status collapsed
24361
24362 \begin_layout Plain Layout
24363 "/home/myhome/lyxpipe"
24364 \end_layout
24365
24366 \end_inset
24367
24368 , or 
24369 \begin_inset Flex Code
24370 status collapsed
24371
24372 \begin_layout Plain Layout
24373 "
24374 \backslash
24375
24376 \backslash
24377 .
24378 \backslash
24379 pipe
24380 \backslash
24381 lyxpipe"
24382 \end_layout
24383
24384 \end_inset
24385
24386  on Windows (where any working path instead of lyxpipe can be used, for
24387  example 
24388 \begin_inset Flex Code
24389 status collapsed
24390
24391 \begin_layout Plain Layout
24392 "
24393 \backslash
24394
24395 \backslash
24396 .
24397 \backslash
24398 pipe
24399 \backslash
24400 my
24401 \backslash
24402 lyx
24403 \backslash
24404 pipe"
24405 \end_layout
24406
24407 \end_inset
24408
24409  would also work).
24410  You 
24411 \emph on
24412 must
24413 \emph default
24414  configure this manually in order for the server to start.
24415 \end_layout
24416
24417 \begin_layout Standard
24418 \SpecialChar LyX
24419  will add the '
24420 \begin_inset Flex Code
24421 status collapsed
24422
24423 \begin_layout Plain Layout
24424 .in
24425 \end_layout
24426
24427 \end_inset
24428
24429 ' and '
24430 \begin_inset Flex Code
24431 status collapsed
24432
24433 \begin_layout Plain Layout
24434 .out
24435 \end_layout
24436
24437 \end_inset
24438
24439 ' to create the pipes.
24440  If one of the pipes already exists, \SpecialChar LyX
24441  will assume that another \SpecialChar LyX
24442  process
24443  is already running and will not start the server.
24444  On POSIX (Unix like) systems, if for some other reason, an unused 
24445 \begin_inset Quotes eld
24446 \end_inset
24447
24448 stale
24449 \begin_inset Quotes erd
24450 \end_inset
24451
24452  pipe is left in existence when \SpecialChar LyX
24453  closes, then \SpecialChar LyX
24454  will try to delete it.
24455  If this fails for some reason, you will need to delete the pipes manually
24456  and then restart \SpecialChar LyX
24457 .
24458  On Windows, pipes are deleted by the OS on program termination or crash,
24459  so 
24460 \begin_inset Quotes eld
24461 \end_inset
24462
24463 stale
24464 \begin_inset Quotes erd
24465 \end_inset
24466
24467  pipes should not be possible.
24468 \end_layout
24469
24470 \begin_layout Standard
24471 To have several \SpecialChar LyX
24472  processes with servers at the same time, you have to use
24473  different configurations, perhaps by using separate user directories, each
24474  with its own 
24475 \begin_inset Flex Code
24476 status collapsed
24477
24478 \begin_layout Plain Layout
24479 preferences
24480 \end_layout
24481
24482 \end_inset
24483
24484  file, for each process.
24485 \end_layout
24486
24487 \begin_layout Standard
24488 If you are developing a client program, you might find it useful to enable
24489  debugging information from the \SpecialChar LyX
24490  server.
24491  Do this by starting \SpecialChar LyX
24492  as 
24493 \begin_inset Flex Code
24494 status collapsed
24495
24496 \begin_layout Plain Layout
24497 lyx -dbg lyxserver
24498 \end_layout
24499
24500 \end_inset
24501
24502 .
24503 \end_layout
24504
24505 \begin_layout Standard
24506 You can find a complete example client written in C++ in the source distribution
24507  as 
24508 \begin_inset Flex Code
24509 status collapsed
24510
24511 \begin_layout Plain Layout
24512 development/lyxserver/server_monitor.cpp
24513 \end_layout
24514
24515 \end_inset
24516
24517 .
24518 \end_layout
24519
24520 \begin_layout Standard
24521 Another useful tool is the command-line based client found in 
24522 \begin_inset Flex Code
24523 status collapsed
24524
24525 \begin_layout Plain Layout
24526 src/client/lyxclient
24527 \end_layout
24528
24529 \end_inset
24530
24531 .
24532 \end_layout
24533
24534 \begin_layout Section
24535 Normal communication
24536 \end_layout
24537
24538 \begin_layout Standard
24539 To issue a \SpecialChar LyX
24540  call, the client writes a line of ASCII text into the input
24541  pipe.
24542  This line has the following format:
24543 \end_layout
24544
24545 \begin_layout Quote
24546 LYXCMD:
24547 \emph on
24548 clientname
24549 \emph default
24550 :
24551 \emph on
24552 function
24553 \emph default
24554 :
24555 \emph on
24556 argument
24557 \end_layout
24558
24559 \begin_layout Description
24560 clientname is a name that the client can choose arbitrarily.
24561  Its only use is that \SpecialChar LyX
24562  will echo it if it sends an answer—so a client can
24563  dispatch results from different requesters.
24564 \end_layout
24565
24566 \begin_layout Description
24567 function is the function you want \SpecialChar LyX
24568  to perform.
24569  It is the same as the commands you'd use in the minibuffer.
24570 \end_layout
24571
24572 \begin_layout Description
24573 argument is an optional argument which is meaningful only to some functions
24574  (for instance, the 
24575 \begin_inset Quotes eld
24576 \end_inset
24577
24578 self-insert
24579 \begin_inset Quotes erd
24580 \end_inset
24581
24582  LFUN will insert the argument as text at the cursor position).
24583 \end_layout
24584
24585 \begin_layout Standard
24586 The answer from \SpecialChar LyX
24587  will arrive in the output pipe and be of the form
24588 \end_layout
24589
24590 \begin_layout Quote
24591 INFO:
24592 \emph on
24593 clientname
24594 \emph default
24595 :
24596 \emph on
24597 function
24598 \emph default
24599 :
24600 \emph on
24601 data
24602 \end_layout
24603
24604 \begin_layout Standard
24605 where 
24606 \emph on
24607 clientname
24608 \emph default
24609  and 
24610 \emph on
24611 function
24612 \emph default
24613  are just echoed from the command request, while 
24614 \emph on
24615 data
24616 \emph default
24617  is more or less useful information filled according to how the command
24618  execution worked out.
24619  Some commands, such as 
24620 \begin_inset Quotes eld
24621 \end_inset
24622
24623 font-state
24624 \begin_inset Quotes erd
24625 \end_inset
24626
24627 , will return information about the internal state of \SpecialChar LyX
24628 , while other will
24629  return an empty data-response.
24630  This means that the command execution went fine.
24631 \end_layout
24632
24633 \begin_layout Standard
24634 In case of errors, the response from \SpecialChar LyX
24635  will have this form
24636 \end_layout
24637
24638 \begin_layout Quote
24639 ERROR:
24640 \emph on
24641 clientname
24642 \emph default
24643 :
24644 \emph on
24645 function
24646 \emph default
24647 :
24648 \emph on
24649 error message
24650 \end_layout
24651
24652 \begin_layout Standard
24653 where the 
24654 \emph on
24655 error message
24656 \emph default
24657  should contain an explanation of why the command failed.
24658 \end_layout
24659
24660 \begin_layout Standard
24661 Examples:
24662 \end_layout
24663
24664 \begin_layout LyX-Code
24665 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
24666 \begin_inset Newline newline
24667 \end_inset
24668
24669 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
24670 \begin_inset Newline newline
24671 \end_inset
24672
24673 read a <~/.lyxpipe.out
24674 \begin_inset Newline newline
24675 \end_inset
24676
24677 echo $a
24678 \end_layout
24679
24680 \begin_layout Subsection
24681 AppleScript (Mac OS X)
24682 \end_layout
24683
24684 \begin_layout Standard
24685 Since \SpecialChar LyX
24686  2.1, \SpecialChar LyX
24687  supports basic interactions with AppleScript for normal communicatio
24688 n through the command run.
24689  This command takes a direct argument (the 
24690 \series bold
24691 function
24692 \series default
24693  to perform) and an optional argument.
24694  It either returns the output of the function or triggers an error with
24695  the error message and code.
24696 \end_layout
24697
24698 \begin_layout Standard
24699 Example:
24700 \end_layout
24701
24702 \begin_layout LyX-Code
24703 tell application "\SpecialChar LyX
24704 "
24705 \end_layout
24706
24707 \begin_layout LyX-Code
24708   try
24709 \end_layout
24710
24711 \begin_layout LyX-Code
24712     -- Stores the current file name into f
24713 \end_layout
24714
24715 \begin_layout LyX-Code
24716     set f to (run "server-get-filename" with argument "")
24717 \end_layout
24718
24719 \begin_layout LyX-Code
24720     on error the error_message number the error_number
24721 \end_layout
24722
24723 \begin_layout LyX-Code
24724       display dialog "Error: " & the error_number & ".
24725  " ¬
24726 \end_layout
24727
24728 \begin_layout LyX-Code
24729               & the error_message buttons {"OK"} default button 1
24730 \end_layout
24731
24732 \begin_layout LyX-Code
24733   end try
24734 \end_layout
24735
24736 \begin_layout LyX-Code
24737 end tell
24738 \end_layout
24739
24740 \begin_layout Section
24741 Notification
24742 \end_layout
24743
24744 \begin_layout Standard
24745 \SpecialChar LyX
24746  can notify clients of events going on asynchronously.
24747  Currently it will only do this if the user binds a key sequence with the
24748  function 
24749 \begin_inset Quotes eld
24750 \end_inset
24751
24752 notify
24753 \begin_inset Quotes erd
24754 \end_inset
24755
24756 .
24757  The format of the string \SpecialChar LyX
24758  sends is as follows:
24759 \end_layout
24760
24761 \begin_layout Quote
24762 \begin_inset Flex Code
24763 status collapsed
24764
24765 \begin_layout Plain Layout
24766 NOTIFY:
24767 \end_layout
24768
24769 \end_inset
24770
24771
24772 \emph on
24773 key-sequence
24774 \end_layout
24775
24776 \begin_layout Standard
24777 where 
24778 \emph on
24779 key-sequence
24780 \emph default
24781  is the printed representation of the key sequence that was actually typed
24782  by the user.
24783 \end_layout
24784
24785 \begin_layout Standard
24786 This mechanism can be used to extend \SpecialChar LyX
24787 's command set and implement macros.
24788  Bind some key sequence to 
24789 \begin_inset Quotes eld
24790 \end_inset
24791
24792 notify
24793 \begin_inset Quotes erd
24794 \end_inset
24795
24796 .
24797  Then start a client that listens on the output pipe, dispatches the command
24798  according to the sequence, and starts a function that may use \SpecialChar LyX
24799  calls and
24800  \SpecialChar LyX
24801  requests to issue a command or a series of commands to \SpecialChar LyX
24802 .
24803 \end_layout
24804
24805 \begin_layout Section
24806 The simple \SpecialChar LyX
24807  Server Protocol
24808 \end_layout
24809
24810 \begin_layout Standard
24811 \SpecialChar LyX
24812  implements a simple protocol that can be used for session management.
24813  All messages are of the form
24814 \end_layout
24815
24816 \begin_layout Quote
24817 LYXSRV:
24818 \emph on
24819 clientname
24820 \emph default
24821 :
24822 \emph on
24823 protocol message
24824 \end_layout
24825
24826 \begin_layout Standard
24827 where 
24828 \emph on
24829 protocol message
24830 \emph default
24831  can be 
24832 \begin_inset Quotes eld
24833 \end_inset
24834
24835 hello
24836 \begin_inset Quotes erd
24837 \end_inset
24838
24839  or 
24840 \begin_inset Quotes eld
24841 \end_inset
24842
24843 bye
24844 \begin_inset Quotes erd
24845 \end_inset
24846
24847 .
24848  If 
24849 \begin_inset Quotes eld
24850 \end_inset
24851
24852 hello
24853 \begin_inset Quotes erd
24854 \end_inset
24855
24856  is received from a client, \SpecialChar LyX
24857  will report back to inform the client that
24858  it's listening to it's messages, while 
24859 \begin_inset Quotes eld
24860 \end_inset
24861
24862 bye
24863 \begin_inset Quotes erd
24864 \end_inset
24865
24866  sent from \SpecialChar LyX
24867  will inform clients that \SpecialChar LyX
24868  is closing.
24869 \end_layout
24870
24871 \begin_layout Section
24872 Reverse DVI/PDF search
24873 \end_layout
24874
24875 \begin_layout Standard
24876 Some DVI/PDF viewers
24877 \begin_inset Foot
24878 status collapsed
24879
24880 \begin_layout Plain Layout
24881 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
24882  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
24883 \end_layout
24884
24885 \end_inset
24886
24887  provide 
24888 \emph on
24889 reverse search
24890 \emph default
24891  facility (also called 
24892 \emph on
24893 inverse search
24894 \emph default
24895 ).
24896  This means that you can tell \SpecialChar LyX
24897  to put the cursor to a specific line in the
24898  document by clicking at the respective position in the DVI/PDF output.
24899  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
24900 .
24901  This is done via the \SpecialChar LyX
24902  server either by using the named pipe (
24903 \emph on
24904 lyxpipe
24905 \emph default
24906 ), or the UNIX domain socket (
24907 \emph on
24908 lyxsocket
24909 \emph default
24910 ) that \SpecialChar LyX
24911  creates in its temporary directory (this is the way the 
24912 \begin_inset Flex Code
24913 status collapsed
24914
24915 \begin_layout Plain Layout
24916 lyxclient
24917 \end_layout
24918
24919 \end_inset
24920
24921  program communicates with \SpecialChar LyX
24922 ).
24923  In some cases, you need a helper script that mediates between the viewer
24924  and \SpecialChar LyX
24925 , in others, the viewer can communicate with \SpecialChar LyX
24926  directly.
24927  This depends on the selected viewer and on your operating system.
24928  The same applies to the way viewers need to be configured and the way the
24929  reverse search is actually performed.
24930  In what follows, we will thus describe how to setup reverse search for
24931  specific viewers.
24932  Before we turn to this, though, we will explain what needs to be done generally
24933  to enable reverse search in the DVI/PDF output.
24934 \end_layout
24935
24936 \begin_layout Subsection
24937 Automatic setup
24938 \begin_inset CommandInset label
24939 LatexCommand label
24940 name "subsec:rev-search"
24941
24942 \end_inset
24943
24944
24945 \end_layout
24946
24947 \begin_layout Standard
24948 In most cases \SpecialChar LyX
24949  will do the work for you by enabling the option 
24950 \begin_inset Flex Noun
24951 status collapsed
24952
24953 \begin_layout Plain Layout
24954 Synchronize with Output
24955 \end_layout
24956
24957 \end_inset
24958
24959  in the menu 
24960 \begin_inset Flex Noun
24961 status collapsed
24962
24963 \begin_layout Plain Layout
24964 Document\SpecialChar menuseparator
24965 Settings\SpecialChar menuseparator
24966 Output
24967 \end_layout
24968
24969 \end_inset
24970
24971 .
24972  In such a case \SpecialChar LyX
24973  will automatically insert the necessary Sync\SpecialChar TeX
24974  macro (for
24975  PDF) or load the srcltx package (for DVI) respectively.
24976  This option can be easily reached also on 
24977 \begin_inset Flex Code
24978 status collapsed
24979
24980 \begin_layout Plain Layout
24981 View/Update
24982 \end_layout
24983
24984 \end_inset
24985
24986  Toolbar.
24987 \end_layout
24988
24989 \begin_layout Standard
24990 If you need a different setting, you can select or input a custom macro
24991  from the drop down box just below 
24992 \begin_inset Flex Noun
24993 status collapsed
24994
24995 \begin_layout Plain Layout
24996 Document\SpecialChar menuseparator
24997 Settings\SpecialChar menuseparator
24998 Output\SpecialChar menuseparator
24999 Synchronize with Output
25000 \end_layout
25001
25002 \end_inset
25003
25004 .
25005 \end_layout
25006
25007 \begin_layout Standard
25008 Note that the method 
25009 \begin_inset Flex Code
25010 status collapsed
25011
25012 \begin_layout Plain Layout
25013
25014 \backslash
25015 synctex=1
25016 \end_layout
25017
25018 \end_inset
25019
25020  enables gzip compression.
25021  If your viewer does not support it, you should instead use 
25022 \begin_inset Flex Code
25023 status collapsed
25024
25025 \begin_layout Plain Layout
25026
25027 \backslash
25028 synctex=-1
25029 \end_layout
25030
25031 \end_inset
25032
25033 .
25034 \end_layout
25035
25036 \begin_layout Standard
25037 Please also note that including the 
25038 \begin_inset Flex Code
25039 status collapsed
25040
25041 \begin_layout Plain Layout
25042 srcltx
25043 \end_layout
25044
25045 \end_inset
25046
25047  package or 
25048 \begin_inset Flex Code
25049 status collapsed
25050
25051 \begin_layout Plain Layout
25052 src-specials
25053 \end_layout
25054
25055 \end_inset
25056
25057  sometimes has an undesired impact on the typesetting.
25058  Thus, you should switch output synchronization off for the final typesetting
25059  if you use the 
25060 \begin_inset Flex Code
25061 status collapsed
25062
25063 \begin_layout Plain Layout
25064 srcltx
25065 \end_layout
25066
25067 \end_inset
25068
25069  package or 
25070 \begin_inset Flex Code
25071 status collapsed
25072
25073 \begin_layout Plain Layout
25074 src-specials
25075 \end_layout
25076
25077 \end_inset
25078
25079 .
25080  
25081 \end_layout
25082
25083 \begin_layout Standard
25084 In case you need some more special settings that are not covered by the
25085  automatic settings, read the next section about how to set up output synchroniz
25086 ation manually.
25087  If the automatic setup suits your needs, you can readily jump to section
25088 \begin_inset space ~
25089 \end_inset
25090
25091
25092 \begin_inset CommandInset ref
25093 LatexCommand ref
25094 reference "subsec:configuring-viewers"
25095
25096 \end_inset
25097
25098 , where the necessary configuration steps in your viewer – needed both with
25099  the automatic and the manual setup – are described.
25100 \end_layout
25101
25102 \begin_layout Subsection
25103 Manual setup
25104 \end_layout
25105
25106 \begin_layout Standard
25107 \SpecialChar LaTeX
25108  provides several different methods for reverse search.
25109  Some are built-in in the 
25110 \begin_inset Flex Code
25111 status collapsed
25112
25113 \begin_layout Plain Layout
25114 latex/pdflatex
25115 \end_layout
25116
25117 \end_inset
25118
25119  program, some are provided by external packages.
25120  Your choice depends on whether your \SpecialChar LaTeX
25121  distribution already provides a given
25122  method (the built-in methods are rather new) and whether your viewer can
25123  cope with it.
25124  The available methods are described in the following.
25125 \end_layout
25126
25127 \begin_layout Subsubsection*
25128 Built-in DVI-search via src-specials (DVI only) 
25129 \end_layout
25130
25131 \begin_layout Standard
25132 This method provides the DVI file with the necessary information for reverse
25133  search.
25134  It is available in \SpecialChar LaTeX
25135  since quite some time (any somewhat recent \SpecialChar LaTeX
25136  distribution
25137  should include it), and it works reliably.
25138  To enable it, change the 
25139 \begin_inset Flex Noun
25140 status collapsed
25141
25142 \begin_layout Plain Layout
25143 La
25144 \family sans
25145 TeX
25146 \family default
25147  (plain)->DVI
25148 \end_layout
25149
25150 \end_inset
25151
25152  or 
25153 \begin_inset Flex Noun
25154 status collapsed
25155
25156 \begin_layout Plain Layout
25157 La
25158 \family sans
25159 TeX
25160 \family default
25161  (plain)->DraftDVI
25162 \end_layout
25163
25164 \end_inset
25165
25166  converter in 
25167 \begin_inset Flex Noun
25168 status collapsed
25169
25170 \begin_layout Plain Layout
25171 Preferences\SpecialChar menuseparator
25172 File Handling\SpecialChar menuseparator
25173 Converters
25174 \end_layout
25175
25176 \end_inset
25177
25178  to 
25179 \begin_inset Flex Code
25180 status collapsed
25181
25182 \begin_layout Plain Layout
25183 latex -src-specials $$i
25184 \end_layout
25185
25186 \end_inset
25187
25188 .
25189  If this doesn't work, check if your \SpecialChar TeX
25190  engine needs different options (the
25191  syntax might differ in some distributions).
25192 \end_layout
25193
25194 \begin_layout Subsubsection*
25195 External Packages (PDFSync and scrltx) 
25196 \end_layout
25197
25198 \begin_layout Standard
25199 The packages 
25200 \emph on
25201 pdfsync
25202 \emph default
25203  and 
25204 \emph on
25205 scrltx
25206 \emph default
25207  provide reverse search facility for PDF output (via pdflatex) and DVI output,
25208  respectively.
25209  In order to enable it, load the packages in the \SpecialChar LyX
25210  preamble: 
25211 \end_layout
25212
25213 \begin_layout Itemize
25214 \begin_inset Flex Code
25215 status collapsed
25216
25217 \begin_layout Plain Layout
25218
25219 \backslash
25220 usepackage{pdfsync}
25221 \end_layout
25222
25223 \end_inset
25224
25225  for reverse PDF search,
25226 \end_layout
25227
25228 \begin_layout Itemize
25229 \begin_inset Flex Code
25230 status collapsed
25231
25232 \begin_layout Plain Layout
25233
25234 \backslash
25235 usepackage[active]{srcltx}
25236 \end_layout
25237
25238 \end_inset
25239
25240  for reverse DVI search.
25241 \end_layout
25242
25243 \begin_layout Standard
25244 If you want to be able to perform both DVI and PDF reverse searches, you
25245  can also insert in the preamble the following lines
25246 \end_layout
25247
25248 \begin_layout LyX-Code
25249
25250 \backslash
25251 usepackage{ifpdf}
25252 \begin_inset Newline newline
25253 \end_inset
25254
25255
25256 \backslash
25257 ifpdf
25258 \begin_inset Newline newline
25259 \end_inset
25260
25261   
25262 \backslash
25263 usepackage{pdfsync}
25264 \begin_inset Newline newline
25265 \end_inset
25266
25267
25268 \backslash
25269 else
25270 \begin_inset Newline newline
25271 \end_inset
25272
25273   
25274 \backslash
25275 usepackage[active]{srcltx}
25276 \begin_inset Newline newline
25277 \end_inset
25278
25279
25280 \backslash
25281 fi
25282 \end_layout
25283
25284 \begin_layout Standard
25285 This way, you can preview the file as either DVI or PDF (pdflatex) and the
25286  right package will be used.
25287 \end_layout
25288
25289 \begin_layout Standard
25290 Note that PDFSync might affect the output layout of your document.
25291  It is therefore advised to disable PDFsync for final documents.
25292 \end_layout
25293
25294 \begin_layout Subsubsection*
25295 Built-in reverse search via Sync\SpecialChar TeX
25296  (DVI and PDF) 
25297 \end_layout
25298
25299 \begin_layout Standard
25300 Recent versions of 
25301 \begin_inset Flex Code
25302 status collapsed
25303
25304 \begin_layout Plain Layout
25305 (pdf)latex
25306 \end_layout
25307
25308 \end_inset
25309
25310  have built-in support for both PDF and DVI reverse search.
25311  This so-called 
25312 \emph on
25313 Sync\SpecialChar TeX
25314
25315 \emph default
25316  facility is basically the result of the integration of the PDFSync package
25317  to the pdftex program and its merge with the 
25318 \emph on
25319 scr-specials
25320 \emph default
25321  approach.
25322  You need at least \SpecialChar TeX
25323 Live 2008 or a recent Mik\SpecialChar TeX
25324  distribution in order to use
25325  it.
25326 \begin_inset Foot
25327 status collapsed
25328
25329 \begin_layout Plain Layout
25330 For some reason, Mik\SpecialChar TeX
25331  does not understand/obey the command \SpecialChar LyX
25332  inserts into
25333  the preamble when you check the "Enable Forward/Reverse Search" button
25334  in the toolbar and does not generate the necessary info.
25335 \end_layout
25336
25337 \begin_layout Plain Layout
25338 The generation of the required info can be forced by changing the converter
25339  "\SpecialChar LaTeX
25340  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
25341  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
25342  the -synctex=1 switch).
25343 \end_layout
25344
25345 \end_inset
25346
25347  Also note that only a few PDF viewers (Okular and Qpdfview on Unix, Skim
25348  on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
25349  support.
25350 \end_layout
25351
25352 \begin_layout Standard
25353 To enable Sync\SpecialChar TeX
25354  for DVI output, change the 
25355 \begin_inset Flex Noun
25356 status collapsed
25357
25358 \begin_layout Plain Layout
25359 La
25360 \family sans
25361 TeX
25362 \family default
25363  (plain) -> DVI
25364 \end_layout
25365
25366 \end_inset
25367
25368  or 
25369 \begin_inset Flex Noun
25370 status collapsed
25371
25372 \begin_layout Plain Layout
25373 La
25374 \family sans
25375 TeX
25376 \family default
25377  (plain) -> DraftDVI
25378 \end_layout
25379
25380 \end_inset
25381
25382  converter in 
25383 \begin_inset Flex Noun
25384 status collapsed
25385
25386 \begin_layout Plain Layout
25387 Preferences\SpecialChar menuseparator
25388 File Handling\SpecialChar menuseparator
25389 Converters
25390 \end_layout
25391
25392 \end_inset
25393
25394  to 
25395 \begin_inset Flex Code
25396 status collapsed
25397
25398 \begin_layout Plain Layout
25399 latex -synctex=1 $$i
25400 \end_layout
25401
25402 \end_inset
25403
25404 , and for PDF output, change the 
25405 \begin_inset Flex Noun
25406 status collapsed
25407
25408 \begin_layout Plain Layout
25409 La
25410 \family sans
25411 TeX
25412 \family default
25413  (pdflatex) -> PDF (pdflatex)
25414 \end_layout
25415
25416 \end_inset
25417
25418  or converter to 
25419 \begin_inset Flex Code
25420 status collapsed
25421
25422 \begin_layout Plain Layout
25423 pdflatex -synctex=1 $$i
25424 \end_layout
25425
25426 \end_inset
25427
25428 .
25429  Check the documentation of your viewer whether the viewer needs to be configure
25430 d for the use with Sync\SpecialChar TeX
25431 .
25432 \begin_inset Foot
25433 status collapsed
25434
25435 \begin_layout Plain Layout
25436 Note that the option 
25437 \begin_inset Flex Code
25438 status collapsed
25439
25440 \begin_layout Plain Layout
25441 -synctex=1
25442 \end_layout
25443
25444 \end_inset
25445
25446  option enables gzip compression.
25447  If your viewer does not support it, you should instead use 
25448 \begin_inset Flex Code
25449 status collapsed
25450
25451 \begin_layout Plain Layout
25452 -synctex=-1
25453 \end_layout
25454
25455 \end_inset
25456
25457 .
25458 \end_layout
25459
25460 \end_inset
25461
25462
25463 \end_layout
25464
25465 \begin_layout Subsection
25466 Configuring and using specific viewers
25467 \begin_inset CommandInset label
25468 LatexCommand label
25469 name "subsec:configuring-viewers"
25470
25471 \end_inset
25472
25473
25474 \end_layout
25475
25476 \begin_layout Subsubsection*
25477 Xdvi (all platforms)
25478 \end_layout
25479
25480 \begin_layout Standard
25481 If you use 
25482 \begin_inset Flex Code
25483 status collapsed
25484
25485 \begin_layout Plain Layout
25486 xdvi
25487 \end_layout
25488
25489 \end_inset
25490
25491 , you don't need to do anything else for performing a reverse DVI search,
25492  as \SpecialChar LyX
25493  already provides the necessary hooks for automatically using the 
25494 \begin_inset Flex Code
25495 status collapsed
25496
25497 \begin_layout Plain Layout
25498 lyxclient
25499 \end_layout
25500
25501 \end_inset
25502
25503  program.
25504  Just setup your document as described above (reverse search is triggered
25505  by Ctrl-click or Alt-click on Mac OSX, respectively).
25506 \end_layout
25507
25508 \begin_layout Standard
25509 However, if for whatever reason you want to use the named pipe instead of
25510  the socket for communicating with \SpecialChar LyX
25511 , simply change the DVI viewer in 
25512 \begin_inset Flex Noun
25513 status collapsed
25514
25515 \begin_layout Plain Layout
25516 Preferences\SpecialChar menuseparator
25517 File Handling\SpecialChar menuseparator
25518 File formats
25519 \end_layout
25520
25521 \end_inset
25522
25523  to
25524 \begin_inset Foot
25525 status collapsed
25526
25527 \begin_layout Plain Layout
25528 On Mac OSX you have to use 
25529 \begin_inset Flex Code
25530 status collapsed
25531
25532 \begin_layout Plain Layout
25533 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
25534 \end_layout
25535
25536 \end_inset
25537
25538
25539 \end_layout
25540
25541 \end_inset
25542
25543  
25544 \begin_inset Flex Code
25545 status collapsed
25546
25547 \begin_layout Plain Layout
25548 xdvi -editor "lyxeditor.sh %f %l"
25549 \end_layout
25550
25551 \end_inset
25552
25553 , where 
25554 \begin_inset Flex Code
25555 status collapsed
25556
25557 \begin_layout Plain Layout
25558 lyxeditor.sh
25559 \end_layout
25560
25561 \end_inset
25562
25563  is a suitable script.
25564  For example, a minimal shell script is the following one:
25565 \end_layout
25566
25567 \begin_layout LyX-Code
25568 #!/bin/sh
25569 \begin_inset Newline newline
25570 \end_inset
25571
25572 LYXPIPE="/path/to/lyxpipe"
25573 \begin_inset Newline newline
25574 \end_inset
25575
25576 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
25577 \begin_inset Newline newline
25578 \end_inset
25579
25580 echo "$COMMAND" > "${LYXPIPE}".in || exit
25581 \begin_inset Newline newline
25582 \end_inset
25583
25584 read TMP < "${LYXPIPE}".out || exit
25585 \end_layout
25586
25587 \begin_layout Standard
25588 where 
25589 \begin_inset Flex Code
25590 status collapsed
25591
25592 \begin_layout Plain Layout
25593 /path/to/lyxpipe
25594 \end_layout
25595
25596 \end_inset
25597
25598  is the Ly
25599 \begin_inset ERT
25600 status collapsed
25601
25602 \begin_layout Plain Layout
25603
25604 {}
25605 \end_layout
25606
25607 \end_inset
25608
25609 XServer pipe path specified in 
25610 \begin_inset Flex Noun
25611 status collapsed
25612
25613 \begin_layout Plain Layout
25614 Preferences\SpecialChar menuseparator
25615 Paths
25616 \end_layout
25617
25618 \end_inset
25619
25620 .
25621 \begin_inset Foot
25622 status collapsed
25623
25624 \begin_layout Plain Layout
25625 In the 
25626 \begin_inset Flex Code
25627 status collapsed
25628
25629 \begin_layout Plain Layout
25630 development/tools
25631 \end_layout
25632
25633 \end_inset
25634
25635  folder of a source distribution you can find a 
25636 \begin_inset Flex Code
25637 status collapsed
25638
25639 \begin_layout Plain Layout
25640 lyxeditor
25641 \end_layout
25642
25643 \end_inset
25644
25645  script which is able to locate the 
25646 \emph on
25647 lyxpipe
25648 \emph default
25649  based on your preferences.
25650 \end_layout
25651
25652 \end_inset
25653
25654
25655 \end_layout
25656
25657 \begin_layout Subsubsection*
25658 MacDviX (Mac OSX)
25659 \end_layout
25660
25661 \begin_layout Standard
25662 At the end of 
25663 \begin_inset Flex Code
25664 status collapsed
25665
25666 \begin_layout Plain Layout
25667 /Applications/MacDviX_Folder/calleditor.script
25668 \end_layout
25669
25670 \end_inset
25671
25672 , add the following lines:
25673 \end_layout
25674
25675 \begin_layout LyX-Code
25676 /Applications/Ly
25677 \begin_inset ERT
25678 status collapsed
25679
25680 \begin_layout Plain Layout
25681
25682 {}
25683 \end_layout
25684
25685 \end_inset
25686
25687 X.app/Contents/MacOS/lyxeditor "$2" $1
25688 \begin_inset Newline newline
25689 \end_inset
25690
25691 exit 1
25692 \end_layout
25693
25694 \begin_layout Standard
25695 Modify the lines accordingly if you install \SpecialChar LyX
25696  somewhere else than in the
25697  Applications folder.
25698 \end_layout
25699
25700 \begin_layout Standard
25701 Reverse search is triggered by Alt-click (OPTION-click).
25702 \end_layout
25703
25704 \begin_layout Subsubsection*
25705 Skim (Mac OSX)
25706 \end_layout
25707
25708 \begin_layout Standard
25709 Enter 
25710 \begin_inset Flex Code
25711 status collapsed
25712
25713 \begin_layout Plain Layout
25714 open -a Skim.app $$i
25715 \end_layout
25716
25717 \end_inset
25718
25719  to the viewer setting in 
25720 \begin_inset Flex Noun
25721 status collapsed
25722
25723 \begin_layout Plain Layout
25724 Preferences\SpecialChar menuseparator
25725 File Handling\SpecialChar menuseparator
25726 File formats\SpecialChar menuseparator
25727 PDF (pdflatex)
25728 \end_layout
25729
25730 \end_inset
25731
25732 , and then in 
25733 \begin_inset Flex Noun
25734 status collapsed
25735
25736 \begin_layout Plain Layout
25737 Skim\SpecialChar menuseparator
25738 Preferences\SpecialChar menuseparator
25739 Sync
25740 \end_layout
25741
25742 \end_inset
25743
25744  choose 
25745 \begin_inset Flex Noun
25746 status collapsed
25747
25748 \begin_layout Plain Layout
25749 custom
25750 \end_layout
25751
25752 \end_inset
25753
25754  preset and enter command 
25755 \begin_inset Flex Noun
25756 status collapsed
25757
25758 \begin_layout Plain Layout
25759 /Applications/\SpecialChar LyX
25760 .app/Contents/MacOS/lyxeditor
25761 \end_layout
25762
25763 \end_inset
25764
25765 .
25766 \end_layout
25767
25768 \begin_layout Standard
25769 Reverse search is triggered by COMMAND-SHIFT-click
25770 \end_layout
25771
25772 \begin_layout Subsubsection*
25773 Okular (KDE)
25774 \end_layout
25775
25776 \begin_layout Standard
25777 Go to 
25778 \begin_inset Flex Noun
25779 status collapsed
25780
25781 \begin_layout Plain Layout
25782 Settings\SpecialChar menuseparator
25783 Configure Okular\SpecialChar menuseparator
25784 Editor
25785 \end_layout
25786
25787 \end_inset
25788
25789 , select 
25790 \begin_inset Quotes eld
25791 \end_inset
25792
25793 Custom Text Editor
25794 \begin_inset Quotes erd
25795 \end_inset
25796
25797  and add the command 
25798 \begin_inset Flex Code
25799 status collapsed
25800
25801 \begin_layout Plain Layout
25802 lyxclient -g %f %l
25803 \end_layout
25804
25805 \end_inset
25806
25807 .
25808 \end_layout
25809
25810 \begin_layout Standard
25811 Reverse search is triggered by SHIFT-click.
25812 \end_layout
25813
25814 \begin_layout Subsubsection*
25815 Qpdfview (Unix)
25816 \end_layout
25817
25818 \begin_layout Standard
25819 Qpdfview supports Sync\SpecialChar TeX
25820  since version 0.3.5.
25821  Go to 
25822 \begin_inset Flex Noun
25823 status collapsed
25824
25825 \begin_layout Plain Layout
25826 Edit\SpecialChar menuseparator
25827 Settings\SpecialChar menuseparator
25828 Behavior
25829 \end_layout
25830
25831 \end_inset
25832
25833 , click on the input field of the 
25834 \begin_inset Quotes eld
25835 \end_inset
25836
25837 Source editor
25838 \begin_inset Quotes erd
25839 \end_inset
25840
25841  item and add the command 
25842 \begin_inset Flex Code
25843 status collapsed
25844
25845 \begin_layout Plain Layout
25846 lyxclient -g %1 %2
25847 \end_layout
25848
25849 \end_inset
25850
25851 .
25852 \end_layout
25853
25854 \begin_layout Standard
25855 Reverse search is triggered by double-click.
25856 \end_layout
25857
25858 \begin_layout Subsubsection*
25859 YAP (Windows)
25860 \end_layout
25861
25862 \begin_layout Standard
25863 Launch yap, choose its 
25864 \begin_inset Flex Noun
25865 status collapsed
25866
25867 \begin_layout Plain Layout
25868 View\SpecialChar menuseparator
25869 Options
25870 \end_layout
25871
25872 \end_inset
25873
25874  menu and select the 
25875 \begin_inset Quotes eld
25876 \end_inset
25877
25878 Inverse DVI Search
25879 \begin_inset Quotes erd
25880 \end_inset
25881
25882  tab.
25883  Click on the 
25884 \begin_inset Quotes eld
25885 \end_inset
25886
25887 New\SpecialChar ldots
25888
25889 \begin_inset Quotes erd
25890 \end_inset
25891
25892  button and, in the window that opens, enter 
25893 \begin_inset Quotes eld
25894 \end_inset
25895
25896 \SpecialChar LyX
25897  Editor
25898 \begin_inset Quotes erd
25899 \end_inset
25900
25901  (or any other name you like) in the 
25902 \begin_inset Quotes eld
25903 \end_inset
25904
25905 Name:
25906 \begin_inset Quotes erd
25907 \end_inset
25908
25909  field.
25910  Now click on the button labeled 
25911 \begin_inset Quotes eld
25912 \end_inset
25913
25914 \SpecialChar ldots
25915
25916 \begin_inset Quotes erd
25917 \end_inset
25918
25919  to open a file dialog and navigate to the directory containing the batch
25920  file 
25921 \begin_inset Flex Code
25922 status collapsed
25923
25924 \begin_layout Plain Layout
25925 lyxeditor.bat
25926 \end_layout
25927
25928 \end_inset
25929
25930  (see below).
25931  Select 
25932 \begin_inset Flex Code
25933 status collapsed
25934
25935 \begin_layout Plain Layout
25936 lyxeditor.bat
25937 \end_layout
25938
25939 \end_inset
25940
25941  and then specify the program arguments as 
25942 \begin_inset Flex Code
25943 status collapsed
25944
25945 \begin_layout Plain Layout
25946 %f %l
25947 \end_layout
25948
25949 \end_inset
25950
25951 .
25952  The 
25953 \begin_inset Flex Code
25954 status collapsed
25955
25956 \begin_layout Plain Layout
25957 lyxeditor.bat
25958 \end_layout
25959
25960 \end_inset
25961
25962  wrapper is used for communicating with \SpecialChar LyX
25963  through the 
25964 \emph on
25965 lyxpipe
25966 \emph default
25967  and is as follows:
25968 \end_layout
25969
25970 \begin_layout LyX-Code
25971 @echo off
25972 \begin_inset Newline newline
25973 \end_inset
25974
25975 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
25976 \backslash
25977
25978 \backslash
25979 .
25980 \backslash
25981 pipe
25982 \backslash
25983 lyxpipe.in
25984 \begin_inset Newline newline
25985 \end_inset
25986
25987 type 
25988 \backslash
25989
25990 \backslash
25991 .
25992 \backslash
25993 pipe
25994 \backslash
25995 lyxpipe.out
25996 \end_layout
25997
25998 \begin_layout Standard
25999 Make sure that the \SpecialChar LyX
26000 Server pipe path you specified in \SpecialChar LyX
26001  is 
26002 \begin_inset Flex Code
26003 status collapsed
26004
26005 \begin_layout Plain Layout
26006
26007 \backslash
26008
26009 \backslash
26010 .
26011 \backslash
26012 pipe
26013 \backslash
26014 lyxpipe
26015 \end_layout
26016
26017 \end_inset
26018
26019 , otherwise change the 
26020 \begin_inset Flex Code
26021 status collapsed
26022
26023 \begin_layout Plain Layout
26024 lyxeditor.bat
26025 \end_layout
26026
26027 \end_inset
26028
26029  wrapper accordingly.
26030 \end_layout
26031
26032 \begin_layout Standard
26033 In yap, reverse search is triggered by double-click.
26034 \end_layout
26035
26036 \begin_layout Subsubsection*
26037 SumatraPDF (Windows)
26038 \end_layout
26039
26040 \begin_layout Standard
26041 In order to use SumatraPDF for inverse search, enter 
26042 \begin_inset Flex Code
26043 status collapsed
26044
26045 \begin_layout Plain Layout
26046 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
26047 \end_layout
26048
26049 \end_inset
26050
26051  in the viewer setting in 
26052 \begin_inset Flex Noun
26053 status collapsed
26054
26055 \begin_layout Plain Layout
26056 Preferences\SpecialChar menuseparator
26057 File Handling\SpecialChar menuseparator
26058 File formats\SpecialChar menuseparator
26059 PDF (pdflatex)
26060 \end_layout
26061
26062 \end_inset
26063
26064 , where 
26065 \begin_inset Flex Code
26066 status collapsed
26067
26068 \begin_layout Plain Layout
26069 lyxeditor.bat
26070 \end_layout
26071
26072 \end_inset
26073
26074  is the previous wrapper.
26075  If SumatraPDF.exe is not in your command PATH, use its full file name.
26076 \end_layout
26077
26078 \begin_layout Standard
26079 Reverse search is triggered by double-click.
26080 \end_layout
26081
26082 \begin_layout Subsubsection*
26083 YAP (Cygwin)
26084 \end_layout
26085
26086 \begin_layout Standard
26087 First of all, make sure that yap is your default DVI viewer in the Windows
26088  environment, then launch it, choose its 
26089 \begin_inset Flex Noun
26090 status collapsed
26091
26092 \begin_layout Plain Layout
26093 View\SpecialChar menuseparator
26094 Options
26095 \end_layout
26096
26097 \end_inset
26098
26099  menu and select the 
26100 \begin_inset Quotes eld
26101 \end_inset
26102
26103 Inverse DVI Search
26104 \begin_inset Quotes erd
26105 \end_inset
26106
26107  tab.
26108  Click on the 
26109 \begin_inset Quotes eld
26110 \end_inset
26111
26112 New\SpecialChar ldots
26113
26114 \begin_inset Quotes erd
26115 \end_inset
26116
26117  button and, in the window that opens, enter 
26118 \begin_inset Quotes eld
26119 \end_inset
26120
26121 \SpecialChar LyX
26122  Editor
26123 \begin_inset Quotes erd
26124 \end_inset
26125
26126  (or any other name you like) in the 
26127 \begin_inset Quotes eld
26128 \end_inset
26129
26130 Name:
26131 \begin_inset Quotes erd
26132 \end_inset
26133
26134  field.
26135  Now click on the button labeled 
26136 \begin_inset Quotes eld
26137 \end_inset
26138
26139 \SpecialChar ldots
26140
26141 \begin_inset Quotes erd
26142 \end_inset
26143
26144  to open a file dialog and navigate to the directory containing the 
26145 \begin_inset Flex Code
26146 status collapsed
26147
26148 \begin_layout Plain Layout
26149 lyxeditor.exe
26150 \end_layout
26151
26152 \end_inset
26153
26154  program (which is installed by default on Cygwin along with the \SpecialChar LyX
26155  executable).
26156  Select 
26157 \begin_inset Flex Code
26158 status collapsed
26159
26160 \begin_layout Plain Layout
26161 lyxeditor.exe
26162 \end_layout
26163
26164 \end_inset
26165
26166  and then specify the program arguments as 
26167 \begin_inset Flex Code
26168 status collapsed
26169
26170 \begin_layout Plain Layout
26171 -g %f %l
26172 \end_layout
26173
26174 \end_inset
26175
26176 .
26177  In this way, you will be using the 
26178 \emph on
26179 lyxsocket
26180 \emph default
26181  for communicating with \SpecialChar LyX
26182 .
26183  If, for whatever reason, you want to use the 
26184 \emph on
26185 lyxpipe
26186 \emph default
26187 , omit the 
26188 \begin_inset Flex Code
26189 status collapsed
26190
26191 \begin_layout Plain Layout
26192 -g
26193 \end_layout
26194
26195 \end_inset
26196
26197  option and be sure to specify the \SpecialChar LyX
26198 Server pipe path in the \SpecialChar LyX
26199  preferences.
26200 \end_layout
26201
26202 \begin_layout Standard
26203 In yap, reverse search is triggered by double-click.
26204 \end_layout
26205
26206 \begin_layout Subsubsection*
26207 SumatraPDF (Cygwin)
26208 \end_layout
26209
26210 \begin_layout Standard
26211 In order to use SumatraPDF for inverse search, enter 
26212 \begin_inset Flex Code
26213 status collapsed
26214
26215 \begin_layout Plain Layout
26216 SumatraPDF -inverse-search "lyxeditor -g %f %l"
26217 \end_layout
26218
26219 \end_inset
26220
26221  in the viewer setting in 
26222 \begin_inset Flex Noun
26223 status collapsed
26224
26225 \begin_layout Plain Layout
26226 Preferences\SpecialChar menuseparator
26227 File Handling\SpecialChar menuseparator
26228 File formats\SpecialChar menuseparator
26229 PDF (pdflatex)
26230 \end_layout
26231
26232 \end_inset
26233
26234 .
26235  If SumatraPDF.exe is not in your command PATH, use its full posix path.
26236  The 
26237 \begin_inset Flex Code
26238 status collapsed
26239
26240 \begin_layout Plain Layout
26241 -g
26242 \end_layout
26243
26244 \end_inset
26245
26246  enables communication via the 
26247 \emph on
26248 lyxsocket
26249 \emph default
26250 .
26251  Again, omit the 
26252 \begin_inset Flex Code
26253 status collapsed
26254
26255 \begin_layout Plain Layout
26256 -g
26257 \end_layout
26258
26259 \end_inset
26260
26261  option if you want to use the 
26262 \emph on
26263 lyxpipe
26264 \emph default
26265 , and be sure to specify the \SpecialChar LyX
26266 Server pipe path in the \SpecialChar LyX
26267  preferences.
26268 \end_layout
26269
26270 \begin_layout Standard
26271 Reverse search is triggered by double-click.
26272 \end_layout
26273
26274 \begin_layout Section
26275 Forward search
26276 \end_layout
26277
26278 \begin_layout Standard
26279 Forward search is, as the name implies, in a sense the 
26280 \begin_inset Quotes eld
26281 \end_inset
26282
26283 opposite
26284 \begin_inset Quotes erd
26285 \end_inset
26286
26287  of reverse search.
26288  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
26289 .
26290  If forward search is set up (as described in what follows), you can put
26291  the cursor anywhere in your \SpecialChar LyX
26292  document, and hit 
26293 \begin_inset Flex Noun
26294 status collapsed
26295
26296 \begin_layout Plain Layout
26297 Navigate\SpecialChar menuseparator
26298 Forward search
26299 \end_layout
26300
26301 \end_inset
26302
26303  (or select 
26304 \begin_inset Flex Noun
26305 status collapsed
26306
26307 \begin_layout Plain Layout
26308 Forward search
26309 \end_layout
26310
26311 \end_inset
26312
26313  in the context menu via right mouse click), and then the viewer will jump
26314  to that position as well.
26315  This implies, of course, that your viewer supports this function.
26316 \end_layout
26317
26318 \begin_layout Standard
26319 To make forward search possible, you first need to provide the generated
26320  output PDF/DVI file with additional information about the \SpecialChar TeX
26321  sources.
26322  This can be done via the methods described in the section 
26323 \begin_inset CommandInset ref
26324 LatexCommand ref
26325 reference "subsec:rev-search"
26326
26327 \end_inset
26328
26329 .
26330 \end_layout
26331
26332 \begin_layout Standard
26333 Additionally, you need to configure \SpecialChar LyX
26334  for using your viewers in 
26335 \begin_inset Flex Noun
26336 status collapsed
26337
26338 \begin_layout Plain Layout
26339 Tools\SpecialChar menuseparator
26340 Preferences\SpecialChar menuseparator
26341 Output\SpecialChar menuseparator
26342 General
26343 \end_layout
26344
26345 \end_inset
26346
26347 .
26348  We provide a range of tested configurations for some viewers, which you
26349  can select from the drop down list.
26350  If none of these configurations suits you, you have to find out and enter
26351  a suitable configuration yourself.
26352  The definition syntax uses the following placeholders:
26353 \end_layout
26354
26355 \begin_layout Itemize
26356 \noindent
26357 \begin_inset Flex Code
26358 status collapsed
26359
26360 \begin_layout Plain Layout
26361 $$n
26362 \end_layout
26363
26364 \end_inset
26365
26366 : row number
26367 \end_layout
26368
26369 \begin_layout Itemize
26370 \noindent
26371 \begin_inset Flex Code
26372 status collapsed
26373
26374 \begin_layout Plain Layout
26375 $$t
26376 \end_layout
26377
26378 \end_inset
26379
26380 : name of the (temporary) exported .tex file (without path)
26381 \end_layout
26382
26383 \begin_layout Itemize
26384 \noindent
26385 \begin_inset Flex Code
26386 status collapsed
26387
26388 \begin_layout Plain Layout
26389 $$f
26390 \end_layout
26391
26392 \end_inset
26393
26394 : name of the (temporary) exported .tex file (including path)
26395 \end_layout
26396
26397 \begin_layout Itemize
26398 \noindent
26399 \begin_inset Flex Code
26400 status collapsed
26401
26402 \begin_layout Plain Layout
26403 $$o
26404 \end_layout
26405
26406 \end_inset
26407
26408 : name of the exported output file (either dvi or pdf, depending on which
26409  one exists in the temporary directory)
26410 \end_layout
26411
26412 \begin_layout Standard
26413 Note that only some of the viewers provide full forward search functionality,
26414  among them yap, xdvi, okular
26415 \begin_inset Foot
26416 status collapsed
26417
26418 \begin_layout Plain Layout
26419 You might want to set 
26420 \begin_inset Flex Code
26421 status collapsed
26422
26423 \begin_layout Plain Layout
26424 okular –unique
26425 \end_layout
26426
26427 \end_inset
26428
26429  in 
26430 \begin_inset Flex Noun
26431 status collapsed
26432
26433 \begin_layout Plain Layout
26434 Tools\SpecialChar menuseparator
26435 Preferences\SpecialChar menuseparator
26436 File Handling\SpecialChar menuseparator
26437 File
26438 \begin_inset space ~
26439 \end_inset
26440
26441 Formats
26442 \end_layout
26443
26444 \end_inset
26445
26446
26447 \end_layout
26448
26449 \end_inset
26450
26451 , qpdfview and SumatraPDF
26452 \begin_inset Foot
26453 status collapsed
26454
26455 \begin_layout Plain Layout
26456 SumatraPDF can also use DDE commands through the external program CMCDDE
26457  — downloadable from 
26458 \begin_inset CommandInset href
26459 LatexCommand href
26460 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
26461
26462 \end_inset
26463
26464
26465 \end_layout
26466
26467 \end_inset
26468
26469 .
26470  While many of the widespread PDF viewers (most notably Adobe Reader) do
26471  not support forward search at all, some other viewers – e.
26472 \begin_inset space \thinspace{}
26473 \end_inset
26474
26475 g.
26476  evince and xpdf – allow at least to reload the document and jump to a specific
26477  page of the file, so you can at least navigate 
26478 \begin_inset Quotes eld
26479 \end_inset
26480
26481 near
26482 \begin_inset Quotes erd
26483 \end_inset
26484
26485 .
26486  This latter functionality is provided by an external call of synctex (see
26487  the predefined example configurations).
26488  
26489 \end_layout
26490
26491 \begin_layout Standard
26492 Forward search works both with DVI and PDF output.
26493  \SpecialChar LyX
26494  simply checks which preview format you have used before (i.
26495 \begin_inset space \thinspace{}
26496 \end_inset
26497
26498 e., which format is already there in the temporary directory) and chooses
26499  the appropriate configuration for the respective format.
26500 \end_layout
26501
26502 \end_body
26503 \end_document