]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Update the link to CMCDDE in our documents
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 503
3 \begin_document
4 \begin_header
5 \origin unavailable
6 \textclass scrbook
7 \begin_preamble
8 % DO NOT ALTER THIS PREAMBLE!!!
9 %
10 % This preamble is designed to ensure that the manual prints
11 % out as advertised. If you mess with this preamble,
12 % parts of the manual may not print out as expected.  If you
13 % have problems LaTeXing this file, please contact 
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
16
17 % if pdflatex is used
18 \usepackage{ifpdf}
19 \ifpdf
20
21  % set fonts for nicer pdf view
22  \IfFileExists{lmodern.sty}
23   {\usepackage{lmodern}}{}
24
25 \fi % end if pdflatex is used
26
27 % the pages of the TOC are numbered roman
28 % and a PDF-bookmark for the TOC is added
29 \pagenumbering{roman}
30 \let\myTOC\tableofcontents
31 \renewcommand{\tableofcontents}{%
32  \pdfbookmark[1]{\contentsname}{}
33  \myTOC
34  \cleardoublepage
35  \pagenumbering{arabic}}
36
37 % extra space for tables
38 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
39 \end_preamble
40 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
41 \use_default_options false
42 \begin_modules
43 logicalmkup
44 theorems-ams
45 theorems-ams-extended
46 multicol
47 shapepar
48 \end_modules
49 \maintain_unincluded_children false
50 \language english
51 \language_package default
52 \inputencoding auto
53 \fontencoding global
54 \font_roman "default" "default"
55 \font_sans "default" "default"
56 \font_typewriter "default" "default"
57 \font_math "auto" "auto"
58 \font_default_family default
59 \use_non_tex_fonts false
60 \font_sc false
61 \font_osf false
62 \font_sf_scale 100 100
63 \font_tt_scale 100 100
64 \graphics default
65 \default_output_format default
66 \output_sync 0
67 \bibtex_command default
68 \index_command default
69 \paperfontsize 12
70 \spacing single
71 \use_hyperref true
72 \pdf_title "LyX's Additional Features manual"
73 \pdf_author "LyX Team"
74 \pdf_subject "LyX's additional features documentation"
75 \pdf_keywords "LyX, Documentation, Additional"
76 \pdf_bookmarks true
77 \pdf_bookmarksnumbered true
78 \pdf_bookmarksopen false
79 \pdf_bookmarksopenlevel 1
80 \pdf_breaklinks false
81 \pdf_pdfborder false
82 \pdf_colorlinks true
83 \pdf_backref false
84 \pdf_pdfusetitle false
85 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
86 \papersize a4paper
87 \use_geometry false
88 \use_package amsmath 1
89 \use_package amssymb 1
90 \use_package cancel 0
91 \use_package esint 0
92 \use_package mathdots 1
93 \use_package mathtools 0
94 \use_package mhchem 1
95 \use_package stackrel 0
96 \use_package stmaryrd 0
97 \use_package undertilde 0
98 \cite_engine basic
99 \cite_engine_type default
100 \biblio_style plain
101 \use_bibtopic false
102 \use_indices false
103 \paperorientation portrait
104 \suppress_date false
105 \justification true
106 \use_refstyle 0
107 \notefontcolor #0000ff
108 \index Index
109 \shortcut idx
110 \color #008000
111 \end_index
112 \secnumdepth 3
113 \tocdepth 3
114 \paragraph_separation indent
115 \paragraph_indentation default
116 \quotes_language english
117 \papercolumns 1
118 \papersides 2
119 \paperpagestyle headings
120 \tracking_changes false
121 \output_changes false
122 \html_math_output 0
123 \html_css_as_file 0
124 \html_be_strict true
125 \end_header
126
127 \begin_body
128
129 \begin_layout Title
130 Additional \SpecialChar LyX
131  Features
132 \end_layout
133
134 \begin_layout Subtitle
135 Version 2.2.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 \SpecialChar LaTeX
346
347 \end_layout
348
349 \end_inset
350
351  from the 
352 \begin_inset Flex Noun
353 status collapsed
354
355 \begin_layout Plain Layout
356 File
357 \end_layout
358
359 \end_inset
360
361  menu (or 
362 \begin_inset Flex Noun
363 status collapsed
364
365 \begin_layout Plain Layout
366 View\SpecialChar menuseparator
367 Source
368 \begin_inset space ~
369 \end_inset
370
371 Pane
372 \end_layout
373
374 \end_inset
375
376 ), then look at the preamble of the resulting 
377 \begin_inset Flex Code
378 status collapsed
379
380 \begin_layout Plain Layout
381 .tex
382 \end_layout
383
384 \end_inset
385
386  file.
387  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
388 .
389  These macros are defined automatically, according to the features you use
390  in the document.
391 \end_layout
392
393 \begin_layout Standard
394 There are several commands that automatically invoke \SpecialChar LaTeX
395 .
396  They are:
397 \end_layout
398
399 \begin_layout Itemize
400 \begin_inset Flex Noun
401 status collapsed
402
403 \begin_layout Plain Layout
404 Document\SpecialChar menuseparator
405 View
406 \end_layout
407
408 \end_inset
409
410
411 \end_layout
412
413 \begin_layout Itemize
414 \begin_inset Flex Noun
415 status collapsed
416
417 \begin_layout Plain Layout
418 Document\SpecialChar menuseparator
419 Update
420 \end_layout
421
422 \end_inset
423
424
425 \end_layout
426
427 \begin_layout Itemize
428 \begin_inset Flex Noun
429 status collapsed
430
431 \begin_layout Plain Layout
432 File\SpecialChar menuseparator
433 Print
434 \end_layout
435
436 \end_inset
437
438
439 \end_layout
440
441 \begin_layout Itemize
442 \begin_inset Flex Noun
443 status collapsed
444
445 \begin_layout Plain Layout
446 File\SpecialChar menuseparator
447 Fax
448 \end_layout
449
450 \end_inset
451
452
453 \end_layout
454
455 \begin_layout Standard
456 They will only invoke \SpecialChar LaTeX
457  if the file has changed since the last time \SpecialChar LaTeX
458  was
459  run.
460  
461 \end_layout
462
463 \begin_layout Standard
464 When \SpecialChar LyX
465  runs \SpecialChar LaTeX
466  on the file you're editing, it performs these steps:
467 \end_layout
468
469 \begin_layout Enumerate
470 Convert the document to \SpecialChar LaTeX
471  and save to a file with the extension 
472 \begin_inset Flex Code
473 status collapsed
474
475 \begin_layout Plain Layout
476 .tex
477 \end_layout
478
479 \end_inset
480
481  in place of 
482 \begin_inset Flex Code
483 status collapsed
484
485 \begin_layout Plain Layout
486 .lyx
487 \end_layout
488
489 \end_inset
490
491 .
492 \end_layout
493
494 \begin_layout Enumerate
495 Run \SpecialChar LaTeX
496  on the 
497 \begin_inset Flex Code
498 status collapsed
499
500 \begin_layout Plain Layout
501 .tex
502 \end_layout
503
504 \end_inset
505
506  file (maybe several times), and run any other commands (such as 
507 \begin_inset Flex Code
508 status collapsed
509
510 \begin_layout Plain Layout
511 bibtex
512 \end_layout
513
514 \end_inset
515
516  or 
517 \begin_inset Flex Code
518 status collapsed
519
520 \begin_layout Plain Layout
521 makeindex
522 \end_layout
523
524 \end_inset
525
526 ) needed to compile the \SpecialChar LaTeX
527  file.
528 \end_layout
529
530 \begin_layout Enumerate
531 If there are any errors, show the error log.
532 \end_layout
533
534 \begin_layout Standard
535 If you have run \SpecialChar LaTeX
536  using 
537 \begin_inset Flex Noun
538 status collapsed
539
540 \begin_layout Plain Layout
541 View
542 \bar under
543 \SpecialChar menuseparator
544
545 \bar default
546 DVI
547 \end_layout
548
549 \end_inset
550
551 , \SpecialChar LyX
552  then runs a DVI viewer to display the DVI-file.
553  If you have used 
554 \begin_inset Flex Noun
555 status collapsed
556
557 \begin_layout Plain Layout
558 View
559 \bar under
560 \SpecialChar menuseparator
561
562 \bar default
563 PostScript
564 \end_layout
565
566 \end_inset
567
568 , \SpecialChar LyX
569  performs further steps:
570 \end_layout
571
572 \begin_layout Itemize
573 Run 
574 \begin_inset Flex Code
575 status collapsed
576
577 \begin_layout Plain Layout
578 dvips
579 \end_layout
580
581 \end_inset
582
583  to convert the DVI file to PostScript.
584 \end_layout
585
586 \begin_layout Itemize
587 Run a PostScript viewer, such as 
588 \begin_inset Flex Code
589 status collapsed
590
591 \begin_layout Plain Layout
592 ghostview
593 \end_layout
594
595 \end_inset
596
597 , to display the PostScript file.
598 \end_layout
599
600 \begin_layout Standard
601 \SpecialChar LyX
602  does similar things when viewing, or exporting, other formats.
603 \end_layout
604
605 \begin_layout Section
606 Translating \SpecialChar LaTeX
607  files into \SpecialChar LyX
608
609 \end_layout
610
611 \begin_layout Standard
612 You can import a \SpecialChar LaTeX
613  file into \SpecialChar LyX
614  by using the 
615 \begin_inset Flex Noun
616 status collapsed
617
618 \begin_layout Plain Layout
619 File\SpecialChar menuseparator
620 Import\SpecialChar menuseparator
621 \SpecialChar LaTeX
622
623 \end_layout
624
625 \end_inset
626
627  command in \SpecialChar LyX
628 .
629  This will call a program named 
630 \begin_inset Flex Code
631 status collapsed
632
633 \begin_layout Plain Layout
634 tex2lyx
635 \end_layout
636
637 \end_inset
638
639  which will create a file 
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 foo.lyx
645 \end_layout
646
647 \end_inset
648
649  from the file 
650 \begin_inset Flex Code
651 status collapsed
652
653 \begin_layout Plain Layout
654 foo.tex
655 \end_layout
656
657 \end_inset
658
659 .
660  \SpecialChar LyX
661  will then open that file.
662 \begin_inset Foot
663 status collapsed
664
665 \begin_layout Plain Layout
666 \begin_inset Flex Code
667 status collapsed
668
669 \begin_layout Plain Layout
670 tex2lyx
671 \end_layout
672
673 \end_inset
674
675  can also be run from the command line, of course.
676 \end_layout
677
678 \end_inset
679
680
681 \end_layout
682
683 \begin_layout Standard
684 \begin_inset Flex Code
685 status collapsed
686
687 \begin_layout Plain Layout
688 tex2lyx
689 \end_layout
690
691 \end_inset
692
693  will translate most legal \SpecialChar LaTeX
694 , but not everything.
695  It will put things it doesn't understand into \SpecialChar TeX
696  code, so after translating
697  a file with 
698 \begin_inset Flex Code
699 status collapsed
700
701 \begin_layout Plain Layout
702 tex2lyx
703 \end_layout
704
705 \end_inset
706
707 , you can look for \SpecialChar TeX
708  code and hand-edit it until it looks right.
709 \end_layout
710
711 \begin_layout Standard
712 If you don't know what \SpecialChar TeX
713  code is, read the next section.
714 \end_layout
715
716 \begin_layout Section
717 \begin_inset CommandInset label
718 LatexCommand label
719 name "sec:Inserting-TeX-Code"
720
721 \end_inset
722
723 Inserting \SpecialChar TeX
724  Code into \SpecialChar LyX
725  Documents 
726 \end_layout
727
728 \begin_layout Standard
729 Anything you can do in \SpecialChar LaTeX
730  you can do in \SpecialChar LyX
731 , for a very simple reason: You can
732  always insert \SpecialChar TeX
733  code into any \SpecialChar LyX
734  document.
735  \SpecialChar LyX
736  cannot, and will never be able to, display every possible \SpecialChar LaTeX
737  construct.
738  If ever you need to insert \SpecialChar LaTeX
739  commands into your \SpecialChar LyX
740  document, you can use the
741  
742 \begin_inset Flex Code
743 status collapsed
744
745 \begin_layout Plain Layout
746 \SpecialChar TeX
747  Code
748 \end_layout
749
750 \end_inset
751
752  box, which you can insert into your document with 
753 \begin_inset Flex Noun
754 status collapsed
755
756 \begin_layout Plain Layout
757 Insert\SpecialChar menuseparator
758
759 \family sans
760 TeX
761 \family default
762  Code
763 \end_layout
764
765 \end_inset
766
767  or the keyboard shortcut 
768 \begin_inset Info
769 type  "shortcut"
770 arg   "ert-insert"
771 \end_inset
772
773 .
774 \end_layout
775
776 \begin_layout Standard
777 Here's an example of inserting \SpecialChar LaTeX
778  commands in a \SpecialChar LyX
779  document.
780  The code looks like this:
781 \end_layout
782
783 \begin_layout LyX-Code
784
785 \backslash
786 begin{tabular}{ll}
787 \begin_inset Newline newline
788 \end_inset
789
790
791 \backslash
792 begin{minipage}{5cm}
793 \begin_inset Newline newline
794 \end_inset
795
796 This is an example of a minipage environment.
797  You 
798 \begin_inset Newline newline
799 \end_inset
800
801 can put nearly everything in it, even (non-floating) 
802 \begin_inset Newline newline
803 \end_inset
804
805 figures and tables.
806  
807 \begin_inset Newline newline
808 \end_inset
809
810
811 \backslash
812 end{minipage}
813 \begin_inset Newline newline
814 \end_inset
815
816 &
817 \begin_inset Newline newline
818 \end_inset
819
820
821 \backslash
822 begin{minipage}{5cm}
823 \begin_inset Newline newline
824 \end_inset
825
826
827 \backslash
828 begin{verbatim}
829 \begin_inset Newline newline
830 \end_inset
831
832
833 \backslash
834 begin{minipage}{5cm}
835 \begin_inset Newline newline
836 \end_inset
837
838 This ...
839  
840 \begin_inset Newline newline
841 \end_inset
842
843
844 \backslash
845 end{minipage}
846 \begin_inset Newline newline
847 \end_inset
848
849
850 \backslash
851 end{verbatim}
852 \begin_inset Newline newline
853 \end_inset
854
855
856 \backslash
857 end{minipage}
858 \begin_inset Newline newline
859 \end_inset
860
861
862 \backslash
863 end{tabular}
864 \end_layout
865
866 \begin_layout LyX-Code
867
868 \end_layout
869
870 \begin_layout Standard
871 The 
872 \begin_inset Flex Code
873 status collapsed
874
875 \begin_layout Plain Layout
876 \SpecialChar TeX
877  Code
878 \end_layout
879
880 \end_inset
881
882  box containing this text is directly after this paragraph.
883  Those of you reading the manual in \SpecialChar LyX
884  will only see the \SpecialChar TeX
885  code inset.
886  Those reading a printed version of the manuals will see the actual results:
887 \begin_inset VSpace bigskip
888 \end_inset
889
890
891 \end_layout
892
893 \begin_layout Standard
894 \begin_inset ERT
895 status open
896
897 \begin_layout Plain Layout
898
899
900 \backslash
901 begin{tabular}{ll}
902 \end_layout
903
904 \begin_layout Plain Layout
905
906
907 \backslash
908 begin{minipage}{5cm}
909 \end_layout
910
911 \begin_layout Plain Layout
912
913 This is an example of a minipage environment.
914  You can put nearly everything in it, even (non-floating) figures and tables.
915  
916 \end_layout
917
918 \begin_layout Plain Layout
919
920
921 \backslash
922 end{minipage}
923 \end_layout
924
925 \begin_layout Plain Layout
926
927 &
928 \end_layout
929
930 \begin_layout Plain Layout
931
932
933 \backslash
934 begin{minipage}{5cm}
935 \end_layout
936
937 \begin_layout Plain Layout
938
939
940 \backslash
941 begin{verbatim}
942 \end_layout
943
944 \begin_layout Plain Layout
945
946
947 \backslash
948 begin{minipage}{5cm}
949 \end_layout
950
951 \begin_layout Plain Layout
952
953 This ...
954  
955 \end_layout
956
957 \begin_layout Plain Layout
958
959
960 \backslash
961 end{minipage}
962 \end_layout
963
964 \begin_layout Plain Layout
965
966
967 \backslash
968 end{verbatim}
969 \end_layout
970
971 \begin_layout Plain Layout
972
973
974 \backslash
975 end{minipage}
976 \end_layout
977
978 \begin_layout Plain Layout
979
980
981 \backslash
982 end{tabular}
983 \end_layout
984
985 \end_inset
986
987
988 \begin_inset VSpace bigskip
989 \end_inset
990
991
992 \end_layout
993
994 \begin_layout Standard
995 In addition to using \SpecialChar TeX
996  code, you can also create a separate file containing
997  some complex \SpecialChar LaTeX
998  structure and then use 
999 \begin_inset Flex Noun
1000 status collapsed
1001
1002 \begin_layout Plain Layout
1003 Insert\SpecialChar menuseparator
1004 Child
1005 \begin_inset space ~
1006 \end_inset
1007
1008 Document
1009 \end_layout
1010
1011 \end_inset
1012
1013  to include your file (you should select the type 
1014 \begin_inset Flex Code
1015 status collapsed
1016
1017 \begin_layout Plain Layout
1018 Input
1019 \end_layout
1020
1021 \end_inset
1022
1023 ).
1024  We recommend that you only do this if you have a 
1025 \begin_inset Flex Code
1026 status collapsed
1027
1028 \begin_layout Plain Layout
1029 .tex
1030 \end_layout
1031
1032 \end_inset
1033
1034  file which you 
1035 \emph on
1036 know
1037 \emph default
1038  works already.
1039  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1040  errors.
1041 \end_layout
1042
1043 \begin_layout Standard
1044 There are a few last points to emphasize:
1045 \end_layout
1046
1047 \begin_layout Itemize
1048 \SpecialChar LyX
1049  
1050 \emph on
1051 does not
1052 \emph default
1053  check if your \SpecialChar LaTeX
1054  code is correct.
1055 \end_layout
1056
1057 \begin_layout Itemize
1058 Beware of reinventing the wheel.
1059 \end_layout
1060
1061 \begin_layout Standard
1062 On that last point, \SpecialChar LyX
1063  does have quite a few features tucked into it, and
1064  more are coming.
1065  Be sure to check the manuals to make sure that \SpecialChar LyX
1066  doesn't have such-and-such
1067  feature before you decide you have to do it by hand.
1068  Moreover, there are numerous \SpecialChar LaTeX
1069  packages out there to do all sorts of things,
1070  from labels to envelopes to fancy multipage tables.
1071  Check out 
1072 \begin_inset CommandInset href
1073 LatexCommand href
1074 name "CTAN"
1075 target "http://www.ctan.org/"
1076
1077 \end_inset
1078
1079  for details.
1080 \end_layout
1081
1082 \begin_layout Standard
1083 If you do need to do some wild and fancy things within your document, be
1084  sure to check out a good \SpecialChar LaTeX
1085  book for assistance.
1086  There are a number of them listed in the bibliography of the 
1087 \emph on
1088 User's Guide
1089 \emph default
1090 .
1091 \end_layout
1092
1093 \begin_layout Section
1094 \SpecialChar LyX
1095  and the \SpecialChar LaTeX
1096  Preamble
1097 \end_layout
1098
1099 \begin_layout Subsection
1100 About the \SpecialChar LaTeX
1101  Preamble
1102 \end_layout
1103
1104 \begin_layout Standard
1105 If you already know \SpecialChar LaTeX
1106 , there is no need to explain here what the preamble
1107  is good for.
1108  If you don't, the following will give you some ideas—we recommend again
1109  that you consult a \SpecialChar LaTeX
1110  book for further information.
1111  In any case, you should read the points below, because they explain what
1112  you can do and what you don't need to do in the \SpecialChar LaTeX
1113  preamble of a \SpecialChar LyX
1114  document.
1115 \end_layout
1116
1117 \begin_layout Standard
1118 The \SpecialChar LaTeX
1119  preamble comes at the very beginning of a document, 
1120 \emph on
1121 before
1122 \emph default
1123  the text.
1124  It serves to:
1125 \end_layout
1126
1127 \begin_layout Itemize
1128 Declare the document class.
1129  
1130 \begin_inset Newline newline
1131 \end_inset
1132
1133 \SpecialChar LyX
1134  already does this for you.
1135  If you're a seasoned \SpecialChar LaTeX
1136 -nician, and you have a custom document class you
1137  want to use, check out the 
1138 \emph on
1139 Customization Manual
1140 \emph default
1141  for information on how to make \SpecialChar LyX
1142  interface to it.
1143 \end_layout
1144
1145 \begin_layout Itemize
1146 Declare the usage of packages.
1147  
1148 \begin_inset Newline newline
1149 \end_inset
1150
1151 \SpecialChar LaTeX
1152  packages provide special commands, which are only available within a document
1153  when the package has been declared in the preamble.
1154  In addition to providing special commands, the inclusion of a package can
1155  change the document.
1156  For example, the package 
1157 \begin_inset Flex Code
1158 status collapsed
1159
1160 \begin_layout Plain Layout
1161 indentfirst
1162 \end_layout
1163
1164 \end_inset
1165
1166  forces all paragraphs to be indented.
1167  There are other packages for labels, envelopes, margins, etc.
1168  
1169 \end_layout
1170
1171 \begin_layout Itemize
1172 Set counters, variables, lengths and widths.
1173  
1174 \begin_inset Newline newline
1175 \end_inset
1176
1177 There are several \SpecialChar LaTeX
1178  counters and variables that 
1179 \emph on
1180 must
1181 \emph default
1182  be set globally from within the preamble in order to have the desired effect.
1183  (There are variables that you can set and reset inside the document, too.)
1184  Margins are a good example of something that must be set in the preamble.
1185  Another example is the label format for lists.
1186  You can actually set these just about anywhere, but it's best to do it
1187  just once, inside the preamble.
1188 \end_layout
1189
1190 \begin_layout Itemize
1191 Declare user defined commands (with 
1192 \begin_inset Flex Code
1193 status collapsed
1194
1195 \begin_layout Plain Layout
1196
1197 \backslash
1198 newcommand
1199 \end_layout
1200
1201 \end_inset
1202
1203  or 
1204 \begin_inset Flex Code
1205 status collapsed
1206
1207 \begin_layout Plain Layout
1208
1209 \backslash
1210 renewcommand
1211 \end_layout
1212
1213 \end_inset
1214
1215 ).
1216 \begin_inset Newline newline
1217 \end_inset
1218
1219 These are abbreviations for \SpecialChar LaTeX
1220  commands which appear very often inside a document.
1221  Although the preamble is a good place to declare such commands, they 
1222 \emph on
1223 can
1224 \emph default
1225  be declared anywhere (before they are used for the first time, of course).
1226  This can be useful if there is a lot of raw \SpecialChar LaTeX
1227  code in your document, which
1228  normally should not be the case.
1229 \end_layout
1230
1231 \begin_layout Standard
1232 \SpecialChar LyX
1233  adds its own set of definitions to the preamble of the 
1234 \begin_inset Flex Code
1235 status collapsed
1236
1237 \begin_layout Plain Layout
1238 .tex
1239 \end_layout
1240
1241 \end_inset
1242
1243  file it produces.
1244  This makes \SpecialChar LaTeX
1245  files generated by \SpecialChar LyX
1246  portable.
1247 \end_layout
1248
1249 \begin_layout Subsection
1250 Changing the Preamble
1251 \end_layout
1252
1253 \begin_layout Standard
1254 The commands which \SpecialChar LyX
1255  adds to the preamble of a \SpecialChar LaTeX
1256  file are fixed; you can't
1257  change them without patching \SpecialChar LyX
1258  itself.
1259  You can, however, add your own stuff to the preamble by selecting 
1260 \begin_inset Flex Noun
1261 status collapsed
1262
1263 \begin_layout Plain Layout
1264 \SpecialChar LaTeX
1265
1266 \begin_inset space ~
1267 \end_inset
1268
1269 Preamble
1270 \end_layout
1271
1272 \end_inset
1273
1274  in the 
1275 \begin_inset Flex Noun
1276 status collapsed
1277
1278 \begin_layout Plain Layout
1279 Document\SpecialChar menuseparator
1280 Settings
1281 \end_layout
1282
1283 \end_inset
1284
1285  dialog.
1286  \SpecialChar LyX
1287  adds anything in the 
1288 \begin_inset Flex Noun
1289 status collapsed
1290
1291 \begin_layout Plain Layout
1292 Preamble
1293 \end_layout
1294
1295 \end_inset
1296
1297  dialog to its own built-in preamble.
1298  Before adding your own declarations in the preamble, you should make sure
1299  that \SpecialChar LyX
1300  doesn't already support what you want to do.
1301  (Remember what we said about reinventing the wheel?) Also, 
1302 \emph on
1303 make sure your preamble code is correct
1304 \emph default
1305 .
1306  \SpecialChar LyX
1307  doesn't check it for you.
1308  If there is an error, you're likely to get an error like 
1309 \begin_inset Quotes eld
1310 \end_inset
1311
1312
1313 \begin_inset Flex Code
1314 status collapsed
1315
1316 \begin_layout Plain Layout
1317 Missing 
1318 \backslash
1319 begin{document}
1320 \end_layout
1321
1322 \end_inset
1323
1324
1325 \begin_inset Quotes erd
1326 \end_inset
1327
1328 .
1329  If you see this error, check your preamble.
1330 \end_layout
1331
1332 \begin_layout Subsection
1333 Examples
1334 \end_layout
1335
1336 \begin_layout Standard
1337 Here are some examples of what you can add to a preamble, and what they
1338  do.
1339 \end_layout
1340
1341 \begin_layout Subsubsection
1342 Example #1: Offsets
1343 \end_layout
1344
1345 \begin_layout Standard
1346 There are two variables under \SpecialChar LaTeX
1347  that control page position: 
1348 \begin_inset Flex Code
1349 status collapsed
1350
1351 \begin_layout Plain Layout
1352
1353 \backslash
1354 hoffset
1355 \end_layout
1356
1357 \end_inset
1358
1359  and 
1360 \begin_inset Flex Code
1361 status collapsed
1362
1363 \begin_layout Plain Layout
1364
1365 \backslash
1366 voffset
1367 \end_layout
1368
1369 \end_inset
1370
1371 .
1372  Their names should be self-explanatory.
1373  These variables are useful if you think for a moment about computer labels.
1374  Sometimes, the size of a print medium and the area of the medium that you
1375  can actually print on aren't the same.
1376  This is where 
1377 \begin_inset Flex Code
1378 status collapsed
1379
1380 \begin_layout Plain Layout
1381
1382 \backslash
1383 hoffset
1384 \end_layout
1385
1386 \end_inset
1387
1388  and 
1389 \begin_inset Flex Code
1390 status collapsed
1391
1392 \begin_layout Plain Layout
1393
1394 \backslash
1395 voffset
1396 \end_layout
1397
1398 \end_inset
1399
1400  come in.
1401 \end_layout
1402
1403 \begin_layout Standard
1404 The default values for 
1405 \begin_inset Flex Code
1406 status collapsed
1407
1408 \begin_layout Plain Layout
1409
1410 \backslash
1411 hoffset
1412 \end_layout
1413
1414 \end_inset
1415
1416  and 
1417 \begin_inset Flex Code
1418 status collapsed
1419
1420 \begin_layout Plain Layout
1421
1422 \backslash
1423 voffset
1424 \end_layout
1425
1426 \end_inset
1427
1428  are both 0
1429 \begin_inset space \thinspace{}
1430 \end_inset
1431
1432 points, i.
1433 \begin_inset space \thinspace{}
1434 \end_inset
1435
1436 e.
1437 \begin_inset space \space{}
1438 \end_inset
1439
1440 the page isn't shifted.
1441  Unfortunately, some DVI drivers always seem to shift the page.
1442  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1443  If you're using \SpecialChar LyX
1444  on a system that you don't personally maintain, and your
1445  sysadmin is a doofus, 
1446 \begin_inset Flex Code
1447 status collapsed
1448
1449 \begin_layout Plain Layout
1450
1451 \backslash
1452 hoffset
1453 \end_layout
1454
1455 \end_inset
1456
1457  and 
1458 \begin_inset Flex Code
1459 status collapsed
1460
1461 \begin_layout Plain Layout
1462
1463 \backslash
1464 voffset
1465 \end_layout
1466
1467 \end_inset
1468
1469  can save the day.
1470  Suppose your left and top margins are always 0.5
1471 \begin_inset space \thinspace{}
1472 \end_inset
1473
1474 inches too big.
1475  You can add this to the preamble:
1476 \end_layout
1477
1478 \begin_layout LyX-Code
1479
1480 \backslash
1481 setlength{
1482 \backslash
1483 hoffset}{-0.5 in}
1484 \end_layout
1485
1486 \begin_layout LyX-Code
1487
1488 \backslash
1489 setlength{
1490 \backslash
1491 voffset}{-0.5 in}
1492 \end_layout
1493
1494 \begin_layout Standard
1495 and your margins should now be correct.
1496 \end_layout
1497
1498 \begin_layout Subsubsection
1499 Example #2: Labels
1500 \end_layout
1501
1502 \begin_layout Standard
1503 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1504  There's a rather nice package, available at your nearest CTAN archive,
1505  for printing sheets of labels: 
1506 \begin_inset Flex Code
1507 status collapsed
1508
1509 \begin_layout Plain Layout
1510 labels.sty
1511 \end_layout
1512
1513 \end_inset
1514
1515 .
1516  Now, your system may not have this package installed by default.
1517  We leave that up to you to check.
1518  You'll also want to read the documentation for it; we're not going to do
1519  that for you.
1520  Since this is an example, however, we'll give you an example of how you
1521  use this package.
1522 \end_layout
1523
1524 \begin_layout Standard
1525 First, make sure you're using the 
1526 \begin_inset Flex Code
1527 status collapsed
1528
1529 \begin_layout Plain Layout
1530 article
1531 \end_layout
1532
1533 \end_inset
1534
1535  document class.
1536  Next, you need to put the following in your preamble:
1537 \end_layout
1538
1539 \begin_layout LyX-Code
1540
1541 \backslash
1542 usepackage{labels}
1543 \end_layout
1544
1545 \begin_layout LyX-Code
1546
1547 \backslash
1548 LabelCols=3
1549 \end_layout
1550
1551 \begin_layout LyX-Code
1552
1553 \backslash
1554 LabelRows=7
1555 \end_layout
1556
1557 \begin_layout LyX-Code
1558
1559 \backslash
1560 LeftBorder=8mm
1561 \end_layout
1562
1563 \begin_layout LyX-Code
1564
1565 \backslash
1566 RightBorder=8mm
1567 \end_layout
1568
1569 \begin_layout LyX-Code
1570
1571 \backslash
1572 TopBorder=9mm
1573 \end_layout
1574
1575 \begin_layout LyX-Code
1576
1577 \backslash
1578 BottomBorder=2mm
1579 \end_layout
1580
1581 \begin_layout Standard
1582 This sets things up for Avery label sheets, stock #5360.
1583  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1584  code, placing
1585  the commands 
1586 \begin_inset Flex Code
1587 status collapsed
1588
1589 \begin_layout Plain Layout
1590
1591 \backslash
1592 begin{labels}
1593 \end_layout
1594
1595 \end_inset
1596
1597  and 
1598 \begin_inset Flex Code
1599 status collapsed
1600
1601 \begin_layout Plain Layout
1602
1603 \backslash
1604 end{labels}
1605 \end_layout
1606
1607 \end_inset
1608
1609  around each label text.
1610  This and other special features of 
1611 \begin_inset Flex Code
1612 status collapsed
1613
1614 \begin_layout Plain Layout
1615 labels.sty
1616 \end_layout
1617
1618 \end_inset
1619
1620  are explained in its documentation.
1621 \end_layout
1622
1623 \begin_layout Standard
1624 Someday, someone may write a \SpecialChar LyX
1625  layout file to support this package directly.
1626  Maybe that someone is you.
1627 \end_layout
1628
1629 \begin_layout Subsubsection
1630 Example #3: Paragraph Indentation
1631 \end_layout
1632
1633 \begin_layout Standard
1634 Americans are trained to indent the first line of 
1635 \emph on
1636 every
1637 \emph default
1638  paragraph.
1639  As with all of their other weird quirks, most Americans will whine and
1640  moan until they can have their way and indent the first line of all paragraphs.
1641  (Yes, we're joking.
1642  (We are?) 
1643 \emph on
1644 Yeah
1645 \emph default
1646 , we are.)
1647 \end_layout
1648
1649 \begin_layout Standard
1650 Of course, this behavior isn't standard typography.
1651  In books, you typically only indent the first line of a paragraph 
1652 \emph on
1653 if
1654 \emph default
1655  it follows another one.
1656  The idea behind indenting the first line of a paragraph is to distinguish
1657  neighboring paragraphs from one another.
1658  If there is no previous paragraph—for example, if it follows a figure or
1659  is the first paragraph in a section—then there is no need for indentation.
1660  
1661 \end_layout
1662
1663 \begin_layout Standard
1664 If you're a typical American (we're still joking!), though, you don't care
1665  about such esoteric things; you want your indentation! Add this to the
1666  preamble:
1667 \end_layout
1668
1669 \begin_layout LyX-Code
1670
1671 \backslash
1672 usepackage{indentfirst}
1673 \end_layout
1674
1675 \begin_layout Standard
1676 If your \SpecialChar TeX
1677  distribution isn't braindead, you'll have this package, and all
1678  of your paragraphs will get the indentation the Founding Fathers intended
1679  they should have.
1680 \end_layout
1681
1682 \begin_layout Subsubsection
1683 Example #4: This Document
1684 \end_layout
1685
1686 \begin_layout Standard
1687 You can also check out the preamble of this document to get an idea of some
1688  of the advanced things you can do.
1689 \end_layout
1690
1691 \begin_layout Section
1692 \SpecialChar LyX
1693  and \SpecialChar LaTeX
1694  Errors
1695 \end_layout
1696
1697 \begin_layout Standard
1698 When \SpecialChar LyX
1699  calls \SpecialChar LaTeX
1700 , it tells \SpecialChar LaTeX
1701  to blithely ignore any errors and keep going.
1702  It then uses the logfile from the \SpecialChar LaTeX
1703  run to do a post-mortem.
1704  After analyzing the logfile, \SpecialChar LyX
1705  displays a dialog listing the errors.
1706  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1707  file
1708  where the error occurred.
1709 \begin_inset Foot
1710 status collapsed
1711
1712 \begin_layout Plain Layout
1713 Well, usually.
1714  Analyzing the logfile is a tough job, and \SpecialChar LyX
1715  doesn't always go to the right
1716  line.
1717  There are also cases where \SpecialChar LaTeX
1718  reports the error on one line, but the actual
1719  error is earlier.
1720  This is not unlike forgetting a closing brace in a program: You'll get
1721  an error, but only later.
1722 \end_layout
1723
1724 \end_inset
1725
1726
1727 \end_layout
1728
1729 \begin_layout Standard
1730 Some folks also like to look at the log file directly: It is available from
1731  
1732 \begin_inset Flex Noun
1733 status collapsed
1734
1735 \begin_layout Plain Layout
1736 Document
1737 \bar under
1738 \SpecialChar menuseparator
1739
1740 \bar default
1741 Latex
1742 \begin_inset space ~
1743 \end_inset
1744
1745 Log
1746 \end_layout
1747
1748 \end_inset
1749
1750 .
1751  There are some fairly common error messages and warnings.
1752  We'll cover those here.
1753  You should look at a good \SpecialChar LaTeX
1754  book for a complete listing.
1755 \end_layout
1756
1757 \begin_layout Itemize
1758 \begin_inset Flex Code
1759 status collapsed
1760
1761 \begin_layout Plain Layout
1762 \SpecialChar LaTeX
1763  Warning
1764 \end_layout
1765
1766 \end_inset
1767
1768
1769 \begin_inset Newline newline
1770 \end_inset
1771
1772 Anything beginning with these words is a warning message for the purpose
1773  of 
1774 \begin_inset Quotes eld
1775 \end_inset
1776
1777 debugging
1778 \begin_inset Quotes erd
1779 \end_inset
1780
1781  the \SpecialChar LaTeX
1782  code itself.
1783  You'll get messages like this if you added or changed cross-references
1784  or bibliography entries, in which case, \SpecialChar LaTeX
1785  is trying to tell you that you
1786  need to make another run.
1787  You can by-and-large ignore these.
1788 \end_layout
1789
1790 \begin_layout Itemize
1791 \begin_inset Flex Code
1792 status collapsed
1793
1794 \begin_layout Plain Layout
1795 \SpecialChar LaTeX
1796  Font Warning
1797 \end_layout
1798
1799 \end_inset
1800
1801
1802 \begin_inset Newline newline
1803 \end_inset
1804
1805 Another warning message, this time about fonts which \SpecialChar LaTeX
1806  couldn't find.
1807  The rest of the message will often say something about a replacement font
1808  that \SpecialChar LaTeX
1809  used.
1810  You can safely ignore these, too.
1811 \end_layout
1812
1813 \begin_layout Itemize
1814 \begin_inset Flex Code
1815 status collapsed
1816
1817 \begin_layout Plain Layout
1818 Overfull 
1819 \backslash
1820 hbox
1821 \end_layout
1822
1823 \end_inset
1824
1825
1826 \begin_inset Newline newline
1827 \end_inset
1828
1829 \SpecialChar LaTeX
1830  absolutely 
1831 \emph on
1832 loves
1833 \emph default
1834  to spew these out.
1835  They are warnings about lines that were too long and run past the right
1836  margin.
1837  Almost always, this is unnoticeable in the final output.
1838  (It can be just a point or two.) Or, only one or two characters extend past
1839  the margin.
1840  \SpecialChar LaTeX
1841  seems to generate at least one of these messages for just about any document
1842  you write.
1843 \begin_inset Newline newline
1844 \end_inset
1845
1846 You can ignore these messages.
1847  Your eyes will tell you if there's a problem with something that's too
1848  wide; just look at the output.
1849 \begin_inset Foot
1850 status collapsed
1851
1852 \begin_layout Plain Layout
1853 You can also enable the `draft' option in 
1854 \begin_inset Flex Noun
1855 status collapsed
1856
1857 \begin_layout Plain Layout
1858 Document
1859 \bar under
1860 \SpecialChar menuseparator
1861
1862 \bar default
1863 Settings
1864 \end_layout
1865
1866 \end_inset
1867
1868 , and then \SpecialChar LaTeX
1869  will draw a black box in the margin of lines that are overfull.
1870 \end_layout
1871
1872 \end_inset
1873
1874
1875 \end_layout
1876
1877 \begin_layout Itemize
1878 \begin_inset Flex Code
1879 status collapsed
1880
1881 \begin_layout Plain Layout
1882 Underfull 
1883 \backslash
1884 hbox
1885 \end_layout
1886
1887 \end_inset
1888
1889
1890 \begin_inset Newline newline
1891 \end_inset
1892
1893 Not quite as common as its cousin.
1894  \SpecialChar LaTeX
1895  seems to like to print lines that are a bit too wide as opposed to ones
1896  that are a bit too narrow.
1897  We have no idea why.
1898 \end_layout
1899
1900 \begin_layout Itemize
1901 \begin_inset Flex Code
1902 status collapsed
1903
1904 \begin_layout Plain Layout
1905 Overfull 
1906 \backslash
1907 vbox
1908 \end_layout
1909
1910 \end_inset
1911
1912  and 
1913 \begin_inset Flex Code
1914 status collapsed
1915
1916 \begin_layout Plain Layout
1917 Underfull 
1918 \backslash
1919 vbox
1920 \end_layout
1921
1922 \end_inset
1923
1924
1925 \begin_inset Newline newline
1926 \end_inset
1927
1928 Warnings about troubles breaking the page.
1929  Once again, just look at the output.
1930  Your eyes will tell you where something has gone wrong.
1931 \end_layout
1932
1933 \begin_layout Itemize
1934 \begin_inset Flex Code
1935 status collapsed
1936
1937 \begin_layout Plain Layout
1938 \SpecialChar LaTeX
1939  Error: File 
1940 \begin_inset Quotes els
1941 \end_inset
1942
1943 Xxxx
1944 \begin_inset Quotes ers
1945 \end_inset
1946
1947  not found
1948 \end_layout
1949
1950 \end_inset
1951
1952
1953 \begin_inset Newline newline
1954 \end_inset
1955
1956 The file 
1957 \begin_inset Quotes eld
1958 \end_inset
1959
1960 Xxxx
1961 \begin_inset Quotes erd
1962 \end_inset
1963
1964  isn't installed on this system.
1965  This usually appears because some package your document needs isn't installed.
1966  If you didn't touch the preamble or didn't use the 
1967 \begin_inset Flex Code
1968 status collapsed
1969
1970 \begin_layout Plain Layout
1971
1972 \backslash
1973 usepackage{}
1974 \end_layout
1975
1976 \end_inset
1977
1978  command, then one of the packages \SpecialChar LyX
1979  tried to load is missing.
1980  Use 
1981 \begin_inset Flex Noun
1982 status collapsed
1983
1984 \begin_layout Plain Layout
1985 Help\SpecialChar menuseparator
1986 \SpecialChar LaTeX
1987  Configuration
1988 \end_layout
1989
1990 \end_inset
1991
1992  to get a list of packages that \SpecialChar LyX
1993  knows about.
1994  This file is updated whenever you reconfigure \SpecialChar LyX
1995  (using 
1996 \begin_inset Flex Noun
1997 status collapsed
1998
1999 \begin_layout Plain Layout
2000 Tools\SpecialChar menuseparator
2001 Reconfigure
2002 \end_layout
2003
2004 \end_inset
2005
2006 ) and tells you which packages have been detected and what they do.
2007 \begin_inset Newline newline
2008 \end_inset
2009
2010 If you did use the 
2011 \begin_inset Flex Code
2012 status collapsed
2013
2014 \begin_layout Plain Layout
2015
2016 \backslash
2017 usepackage{}
2018 \end_layout
2019
2020 \end_inset
2021
2022  command and the package in question isn't installed, then you'll need to
2023  install it yourself.
2024 \end_layout
2025
2026 \begin_layout Itemize
2027 \begin_inset Flex Code
2028 status collapsed
2029
2030 \begin_layout Plain Layout
2031 \SpecialChar LaTeX
2032  Error: Unknown option
2033 \end_layout
2034
2035 \end_inset
2036
2037
2038 \begin_inset Newline newline
2039 \end_inset
2040
2041 Error messages beginning with this are trying to tell you that you specified
2042  a bad or undefined option to a package.
2043  Check the package's documentation.
2044 \end_layout
2045
2046 \begin_layout Itemize
2047 \begin_inset Flex Code
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051 Undefined control sequence
2052 \end_layout
2053
2054 \end_inset
2055
2056
2057 \begin_inset Newline newline
2058 \end_inset
2059
2060 If you've inserted \SpecialChar LaTeX
2061  code into your document, but made a typo, you'll get
2062  one of these.
2063  You may have forgotten to load a package.
2064  In any case, this error message usually means that you used an undefined
2065  command.
2066  
2067 \end_layout
2068
2069 \begin_layout Standard
2070 There are other error and warning messages.
2071  Some are self-explanatory.
2072  These are usually \SpecialChar LaTeX
2073  messages.
2074  Others are downright cryptic.
2075  These are usually \SpecialChar TeX
2076  error messages, and we really have 
2077 \emph on
2078 no clue
2079 \emph default
2080  what they mean or how to decipher them.
2081  No-one does.
2082 \end_layout
2083
2084 \begin_layout Standard
2085 There's a general sequence you should follow if you get error messages:
2086 \end_layout
2087
2088 \begin_layout Enumerate
2089 Look at the \SpecialChar LaTeX
2090  code you inserted for typos.
2091 \end_layout
2092
2093 \begin_layout Enumerate
2094 If there are no typos, check that you used the command(s) correctly.
2095 \end_layout
2096
2097 \begin_layout Enumerate
2098 If you get a bunch of error boxes piled up at the very top of the document—and
2099  especially if you see a 
2100 \begin_inset Quotes eld
2101 \end_inset
2102
2103
2104 \begin_inset Flex Code
2105 status collapsed
2106
2107 \begin_layout Plain Layout
2108 Missing 
2109 \backslash
2110 begin{document}
2111 \end_layout
2112
2113 \end_inset
2114
2115
2116 \begin_inset Quotes erd
2117 \end_inset
2118
2119  error—it means that there are errors in the preamble.
2120  Start debugging your preamble.
2121 \end_layout
2122
2123 \begin_layout Enumerate
2124 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2125  code to the
2126  document, the first suspect is your \SpecialChar LaTeX
2127  distribution itself.
2128  Check for missing packages and install them.
2129 \end_layout
2130
2131 \begin_layout Enumerate
2132 Okay, so there are no missing packages.
2133  Did you use any of the fine-tuning options in \SpecialChar LyX
2134 ? Specifically, did you 
2135 \emph on
2136 misuse
2137 \emph default
2138  any of them, like trying to manually insert lots of 
2139 \begin_inset Flex Code
2140 status collapsed
2141
2142 \begin_layout Plain Layout
2143 Protected
2144 \begin_inset space ~
2145 \end_inset
2146
2147 Blanks
2148 \end_layout
2149
2150 \end_inset
2151
2152
2153 \begin_inset Flex Code
2154 status collapsed
2155
2156 \begin_layout Plain Layout
2157 Linebreaks
2158 \end_layout
2159
2160 \end_inset
2161
2162 , or 
2163 \begin_inset Flex Code
2164 status collapsed
2165
2166 \begin_layout Plain Layout
2167 Pagebreaks
2168 \end_layout
2169
2170 \end_inset
2171
2172 ? Did you try to kludge something together with these instead of using the
2173  appropriate paragraph environment?
2174 \end_layout
2175
2176 \begin_layout Enumerate
2177 All right, you didn't use any of the fine-tuning options, you played by
2178  the rules.
2179  Did you try to pull a fancy maneuver? Did you do something funky inside
2180  a table or an equation, like inserting a graphic into a table cell?
2181 \end_layout
2182
2183 \begin_layout Enumerate
2184 Do you have long sections of text where \SpecialChar LaTeX
2185  cannot find a place to break a
2186  line? By default, \SpecialChar LaTeX
2187  is rather strict about how much extra inter-word spacing
2188  it will add in order to break a line.
2189  Preferably, you should rework the paragraph to avoid the problem.
2190 \end_layout
2191
2192 \begin_layout Enumerate
2193 Did you go overboard with the nesting? \SpecialChar LyX
2194  (currently) doesn't check to make
2195  sure you're in the limits for nesting environments.
2196  If you nested a bunch of environments to the 
2197 \begin_inset Formula $17^{\mathrm{th}}$
2198 \end_inset
2199
2200  level, that's the problem.
2201  (The limit in \SpecialChar LaTeX
2202  is five.)
2203 \end_layout
2204
2205 \begin_layout Enumerate
2206 Okay, you didn't get any error messages, but your output looks awful.
2207  If you have a table or figure that's too wide or long for the page, you
2208  need to:
2209 \begin_inset Separator parbreak
2210 \end_inset
2211
2212
2213 \end_layout
2214
2215 \begin_deeper
2216 \begin_layout Enumerate
2217 rescale the figure so it fits.
2218 \end_layout
2219
2220 \begin_layout Enumerate
2221 trim down the table so it fits.
2222 \end_layout
2223
2224 \end_deeper
2225 \begin_layout Enumerate
2226 If something else is wrong with the output, and you didn't try to pull anything
2227  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2228 \end_layout
2229
2230 \begin_layout Standard
2231 If all this doesn't help—well, then 
2232 \emph on
2233 perhaps
2234 \emph default
2235  you might have found a bug in \SpecialChar LyX
2236 \SpecialChar ldots
2237 .
2238 \end_layout
2239
2240 \begin_layout Chapter
2241 Supplemental Tools
2242 \end_layout
2243
2244 \begin_layout Section
2245 Customizing Bibliographies with Bib\SpecialChar TeX
2246
2247 \end_layout
2248
2249 \begin_layout Standard
2250 The most basic information about how to use Bib\SpecialChar TeX
2251  with \SpecialChar LyX
2252  is contained in the
2253  section 
2254 \emph on
2255 Bibliography databases (Bib\SpecialChar TeX
2256 )
2257 \emph default
2258  of the 
2259 \emph on
2260 User's Guide
2261 \emph default
2262 .
2263  The following subsections explain special bibliography features supported
2264  by \SpecialChar LyX
2265 .
2266 \end_layout
2267
2268 \begin_layout Subsection
2269 Alternative Citation Styles
2270 \end_layout
2271
2272 \begin_layout Standard
2273 Standard Bib\SpecialChar TeX
2274  uses numbers (e.
2275 \begin_inset space \thinspace{}
2276 \end_inset
2277
2278 g.
2279 \begin_inset space \space{}
2280 \end_inset
2281
2282
2283 \begin_inset Quotes eld
2284 \end_inset
2285
2286 [12]
2287 \begin_inset Quotes erd
2288 \end_inset
2289
2290 ) to refer to a cited work.
2291  However, in many scientific disciplines, other citation styles are in use.
2292  The most common one is the author-year style (e.
2293 \begin_inset space \thinspace{}
2294 \end_inset
2295
2296 g.
2297 \begin_inset space \space{}
2298 \end_inset
2299
2300
2301 \begin_inset Quotes eld
2302 \end_inset
2303
2304 Knuth 1984a
2305 \begin_inset Quotes erd
2306 \end_inset
2307
2308 ).
2309  \SpecialChar LyX
2310  supports two packages that provide this style, 
2311 \begin_inset Flex Code
2312 status collapsed
2313
2314 \begin_layout Plain Layout
2315 natbib
2316 \end_layout
2317
2318 \end_inset
2319
2320  and 
2321 \begin_inset Flex Code
2322 status collapsed
2323
2324 \begin_layout Plain Layout
2325 jurabib
2326 \end_layout
2327
2328 \end_inset
2329
2330 .
2331  Both packages have their pros and cons, which cannot be listed in detail.
2332  If you only want to have simple author-year (or author-numerical) style,
2333  or if you want to use one of the countless style files for 
2334 \begin_inset Flex Code
2335 status collapsed
2336
2337 \begin_layout Plain Layout
2338 natbib
2339 \end_layout
2340
2341 \end_inset
2342
2343 , then the established 
2344 \begin_inset Flex Code
2345 status collapsed
2346
2347 \begin_layout Plain Layout
2348 natbib
2349 \end_layout
2350
2351 \end_inset
2352
2353  package is probably your choice.
2354  If you need special features like short title references, ibidem etc., you
2355  might consider the 
2356 \begin_inset Flex Code
2357 status collapsed
2358
2359 \begin_layout Plain Layout
2360 jurabib
2361 \end_layout
2362
2363 \end_inset
2364
2365  package.
2366 \end_layout
2367
2368 \begin_layout Standard
2369 The handling of both packages in \SpecialChar LyX
2370  is basically the same.
2371  Go to 
2372 \begin_inset Flex Noun
2373 status collapsed
2374
2375 \begin_layout Plain Layout
2376 Document\SpecialChar menuseparator
2377 Settings
2378 \end_layout
2379
2380 \end_inset
2381
2382  and select under 
2383 \begin_inset Flex Noun
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387 Bibliography
2388 \end_layout
2389
2390 \end_inset
2391
2392  the option 
2393 \begin_inset Flex Noun
2394 status collapsed
2395
2396 \begin_layout Plain Layout
2397 Natbib
2398 \end_layout
2399
2400 \end_inset
2401
2402  or 
2403 \begin_inset Flex Noun
2404 status collapsed
2405
2406 \begin_layout Plain Layout
2407 Jurabib
2408 \end_layout
2409
2410 \end_inset
2411
2412 .
2413  With both packages, you will get some extra features in the citation dialog
2414  and you can select the style of the reference (
2415 \begin_inset Quotes eld
2416 \end_inset
2417
2418 Knuth 1984
2419 \begin_inset Quotes erd
2420 \end_inset
2421
2422
2423 \begin_inset Quotes eld
2424 \end_inset
2425
2426 Knuth (1984)
2427 \begin_inset Quotes erd
2428 \end_inset
2429
2430
2431 \begin_inset Quotes eld
2432 \end_inset
2433
2434 Knuth, 1984
2435 \begin_inset Quotes erd
2436 \end_inset
2437
2438
2439 \begin_inset Quotes eld
2440 \end_inset
2441
2442 1984
2443 \begin_inset Quotes erd
2444 \end_inset
2445
2446  etc.).
2447  Note that both packages need specifically designed style files.
2448  They both ship their own, but there are lots of additional style files,
2449  and there is even an interactive style file builder
2450 \begin_inset Foot
2451 status collapsed
2452
2453 \begin_layout Plain Layout
2454 See 
2455 \begin_inset Flex URL
2456 status open
2457
2458 \begin_layout Plain Layout
2459
2460 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2461 \end_layout
2462
2463 \end_inset
2464
2465
2466 \end_layout
2467
2468 \end_inset
2469
2470  for 
2471 \begin_inset Flex Code
2472 status collapsed
2473
2474 \begin_layout Plain Layout
2475 natbib
2476 \end_layout
2477
2478 \end_inset
2479
2480 .
2481 \end_layout
2482
2483 \begin_layout Subsection
2484 Sectioned Bibliographies
2485 \end_layout
2486
2487 \begin_layout Standard
2488 Sometimes you might need to divide your bibliography into several sections.
2489  If you are for instance a historian, the possibility to separate sources
2490  and scientific works is most likely a 
2491 \begin_inset Quotes eld
2492 \end_inset
2493
2494 must have
2495 \begin_inset Quotes erd
2496 \end_inset
2497
2498 .
2499  Unfortunately, Bib\SpecialChar TeX
2500  itself does not allow you to do this.
2501  But with the help of some \SpecialChar LaTeX
2502  packages, Bib\SpecialChar TeX
2503  can be extended to fit your needs.
2504 \end_layout
2505
2506 \begin_layout Standard
2507 \SpecialChar LyX
2508  provides native support for one of these packages, 
2509 \family typewriter
2510 bibtopic
2511 \family default
2512 .
2513 \begin_inset Foot
2514 status collapsed
2515
2516 \begin_layout Plain Layout
2517 Available from 
2518 \begin_inset Flex URL
2519 status open
2520
2521 \begin_layout Plain Layout
2522
2523 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2524 \end_layout
2525
2526 \end_inset
2527
2528
2529 \end_layout
2530
2531 \end_inset
2532
2533  The advantage of this package (compared to other packages like 
2534 \family typewriter
2535 multibib
2536 \family default
2537 ) is that you don't need to define new citation commands.
2538  Instead, you need to prepare different bibliographic databases which include
2539  the entries for the different sections of the bibliography.
2540  For example: If you want to divide your bibliography into the sections
2541  
2542 \begin_inset Quotes eld
2543 \end_inset
2544
2545 Sources
2546 \begin_inset Quotes erd
2547 \end_inset
2548
2549  and 
2550 \begin_inset Quotes eld
2551 \end_inset
2552
2553 Scientific works
2554 \begin_inset Quotes erd
2555 \end_inset
2556
2557 , you first need to create two bibliographic databases, e.
2558 \begin_inset space \thinspace{}
2559 \end_inset
2560
2561 g.
2562 \begin_inset space \space{}
2563 \end_inset
2564
2565
2566 \begin_inset Flex Code
2567 status collapsed
2568
2569 \begin_layout Plain Layout
2570 sources.bib
2571 \end_layout
2572
2573 \end_inset
2574
2575  and 
2576 \begin_inset Flex Code
2577 status collapsed
2578
2579 \begin_layout Plain Layout
2580 scientific.bib
2581 \end_layout
2582
2583 \end_inset
2584
2585 .
2586  
2587 \end_layout
2588
2589 \begin_layout Standard
2590 Go to 
2591 \begin_inset Flex Noun
2592 status collapsed
2593
2594 \begin_layout Plain Layout
2595 Document\SpecialChar menuseparator
2596 Settings
2597 \end_layout
2598
2599 \end_inset
2600
2601  and check under 
2602 \begin_inset Flex Noun
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 Bibliography
2607 \end_layout
2608
2609 \end_inset
2610
2611  the option 
2612 \begin_inset Flex Noun
2613 status collapsed
2614
2615 \begin_layout Plain Layout
2616 Sectioned bibliography
2617 \end_layout
2618
2619 \end_inset
2620
2621 .
2622  Now you can insert multiple Bib\SpecialChar TeX
2623  bibliographies, one for each section of
2624  your bibliography.
2625  Returning to our example: Insert the Bib\SpecialChar TeX
2626  bibliography 
2627 \begin_inset Flex Code
2628 status collapsed
2629
2630 \begin_layout Plain Layout
2631 sources.bib
2632 \end_layout
2633
2634 \end_inset
2635
2636  and a second one for the database 
2637 \begin_inset Flex Code
2638 status collapsed
2639
2640 \begin_layout Plain Layout
2641 scientific.bib
2642 \end_layout
2643
2644 \end_inset
2645
2646 .
2647  You are free to use the same or different styles for each section.
2648  Additionally, you can choose if the bibliography section should contain
2649  
2650 \begin_inset Quotes eld
2651 \end_inset
2652
2653 all cited references
2654 \begin_inset Quotes erd
2655 \end_inset
2656
2657  of the specified database(s) (which is the default), 
2658 \begin_inset Quotes eld
2659 \end_inset
2660
2661 all uncited references
2662 \begin_inset Quotes erd
2663 \end_inset
2664
2665  or even 
2666 \begin_inset Quotes eld
2667 \end_inset
2668
2669 all references
2670 \begin_inset Quotes erd
2671 \end_inset
2672
2673 .
2674  This might be useful if you would like to separate your bibliography into
2675  three sections: 
2676 \begin_inset Quotes eld
2677 \end_inset
2678
2679 Cited sources
2680 \begin_inset Quotes erd
2681 \end_inset
2682
2683
2684 \begin_inset Quotes eld
2685 \end_inset
2686
2687 Uncited sources
2688 \begin_inset Quotes erd
2689 \end_inset
2690
2691 , and 
2692 \begin_inset Quotes eld
2693 \end_inset
2694
2695 Scientific works
2696 \begin_inset Quotes erd
2697 \end_inset
2698
2699 .
2700  The titles for the sections can be added as ordinary sections or subsections.
2701  Since 
2702 \begin_inset Flex Code
2703 status collapsed
2704
2705 \begin_layout Plain Layout
2706 bibtopic
2707 \end_layout
2708
2709 \end_inset
2710
2711  removes the bibliography title, you have to manually re-add that, too (as
2712  a chapter* or section*, for instance).
2713 \end_layout
2714
2715 \begin_layout Subsection
2716 Multiple Bibliographies
2717 \end_layout
2718
2719 \begin_layout Standard
2720 Multiple bibliographies, e.
2721 \begin_inset space \thinspace{}
2722 \end_inset
2723
2724 g.
2725 \begin_inset space \space{}
2726 \end_inset
2727
2728 a bibliography for each section or chapter of the document, are not supported
2729  by Bib\SpecialChar TeX
2730  itself.
2731  But the 
2732 \begin_inset Flex Code
2733 status collapsed
2734
2735 \begin_layout Plain Layout
2736 bibtopic
2737 \end_layout
2738
2739 \end_inset
2740
2741  package, which is used for the creation of sectioned bibliographies in
2742  \SpecialChar LyX
2743  (see the previous section), provides an easy way to solve this task, if
2744  you are willing to use some 
2745 \begin_inset Flex Noun
2746 status collapsed
2747
2748 \begin_layout Plain Layout
2749 \SpecialChar TeX
2750  Code
2751 \end_layout
2752
2753 \end_inset
2754
2755  (see section
2756 \begin_inset space ~
2757 \end_inset
2758
2759
2760 \begin_inset CommandInset ref
2761 LatexCommand ref
2762 reference "sec:Inserting-TeX-Code"
2763
2764 \end_inset
2765
2766 ).
2767 \begin_inset Foot
2768 status collapsed
2769
2770 \begin_layout Plain Layout
2771 An alternative approach is to use the 
2772 \begin_inset Flex Code
2773 status collapsed
2774
2775 \begin_layout Plain Layout
2776 chapterbib
2777 \end_layout
2778
2779 \end_inset
2780
2781  or 
2782 \begin_inset Flex Code
2783 status collapsed
2784
2785 \begin_layout Plain Layout
2786 bibunits
2787 \end_layout
2788
2789 \end_inset
2790
2791  package, respectively.
2792 \end_layout
2793
2794 \end_inset
2795
2796
2797 \end_layout
2798
2799 \begin_layout Standard
2800 First go to 
2801 \begin_inset Flex Noun
2802 status collapsed
2803
2804 \begin_layout Plain Layout
2805 Document\SpecialChar menuseparator
2806 Settings
2807 \end_layout
2808
2809 \end_inset
2810
2811  and under 
2812 \begin_inset Flex Noun
2813 status collapsed
2814
2815 \begin_layout Plain Layout
2816 Bibliography
2817 \end_layout
2818
2819 \end_inset
2820
2821  check 
2822 \begin_inset Flex Noun
2823 status collapsed
2824
2825 \begin_layout Plain Layout
2826 Sectioned bibliography
2827 \end_layout
2828
2829 \end_inset
2830
2831 .
2832  In the document, you have to enclose the sections, which shall contain
2833  their own bibliography (including the Bib\SpecialChar TeX
2834  bibliography itself), between
2835  
2836 \begin_inset Flex Code
2837 status collapsed
2838
2839 \begin_layout Plain Layout
2840
2841 \backslash
2842 begin{btUnit}
2843 \end_layout
2844
2845 \end_inset
2846
2847  and 
2848 \begin_inset Flex Code
2849 status collapsed
2850
2851 \begin_layout Plain Layout
2852
2853 \backslash
2854 end{btUnit}
2855 \end_layout
2856
2857 \end_inset
2858
2859  (those commands have to be inserted as \SpecialChar TeX
2860  code).
2861  The bibliography will contain all references that have been cited in the
2862  current 
2863 \begin_inset Flex Code
2864 status collapsed
2865
2866 \begin_layout Plain Layout
2867 btUnit
2868 \end_layout
2869
2870 \end_inset
2871
2872 .
2873  
2874 \series bold
2875 Note:
2876 \series default
2877  If you are using this approach, then every citation reference has to be
2878  inside some 
2879 \begin_inset Flex Code
2880 status collapsed
2881
2882 \begin_layout Plain Layout
2883 btUnit
2884 \end_layout
2885
2886 \end_inset
2887
2888 .
2889  Also, the 
2890 \begin_inset Flex Code
2891 status collapsed
2892
2893 \begin_layout Plain Layout
2894 btUnit
2895 \end_layout
2896
2897 \end_inset
2898
2899 s cannot be nested.
2900 \end_layout
2901
2902 \begin_layout Section
2903 Multipart Documents
2904 \end_layout
2905
2906 \begin_layout Subsection
2907 General Operation
2908 \end_layout
2909
2910 \begin_layout Standard
2911 When you are working on a large file with many sections, it is often convenient
2912  to break up the document into several files, or perhaps you have something
2913  where a table may change from time to time, but the preceding text does
2914  not.
2915  In these cases, you should seriously consider using multipart documents.
2916  For example, scientific papers often have five major sections: the introduction
2917 , observations, results, discussion, and conclusion.
2918  Each of these could be its own separate \SpecialChar LyX
2919  file, with one 
2920 \begin_inset Quotes eld
2921 \end_inset
2922
2923 master
2924 \begin_inset Quotes erd
2925 \end_inset
2926
2927  file which contains the title, authors, abstract, references, etc., plus
2928  the five included files.
2929  It is important to note that each of these files is a full \SpecialChar LyX
2930  file which
2931  can be formatted and printed on its own, as well as included in a master
2932  file.
2933  Each of these files must have the same document class, however—don't attempt
2934  to mix book classes with article classes.
2935  You may also include \SpecialChar LaTeX
2936  files; however, these files must not have their own
2937  preamble (i.
2938 \begin_inset space \thinspace{}
2939 \end_inset
2940
2941 e.
2942 \begin_inset space \space{}
2943 \end_inset
2944
2945 everything up to and including the 
2946 \begin_inset Flex Code
2947 status collapsed
2948
2949 \begin_layout Plain Layout
2950
2951 \backslash
2952 begin{document}
2953 \end_layout
2954
2955 \end_inset
2956
2957  line as well as the 
2958 \begin_inset Flex Code
2959 status collapsed
2960
2961 \begin_layout Plain Layout
2962
2963 \backslash
2964 end{document}
2965 \end_layout
2966
2967 \end_inset
2968
2969  line must be deleted) or else errors will be generated when you try to
2970  make a DVI file.
2971 \end_layout
2972
2973 \begin_layout Standard
2974 \SpecialChar LyX
2975  allows you to include files quite easily with 
2976 \begin_inset Flex Noun
2977 status collapsed
2978
2979 \begin_layout Plain Layout
2980 Insert\SpecialChar menuseparator
2981 ChiId
2982 \begin_inset space ~
2983 \end_inset
2984
2985 Document
2986 \end_layout
2987
2988 \end_inset
2989
2990 .
2991  When you click on this selection a small box is inserted into the file
2992  at the current cursor location.
2993  Clicking on the box raises a dialog which allows you to select the file
2994  to be included, and the method of its inclusion.
2995  
2996 \end_layout
2997
2998 \begin_layout Standard
2999 The file selection box should by now be obvious.
3000  The three inclusion methods are 
3001 \begin_inset Quotes eld
3002 \end_inset
3003
3004 include
3005 \begin_inset Quotes erd
3006 \end_inset
3007
3008
3009 \begin_inset Quotes eld
3010 \end_inset
3011
3012 input
3013 \begin_inset Quotes erd
3014 \end_inset
3015
3016 , and 
3017 \begin_inset Quotes eld
3018 \end_inset
3019
3020 verbatim
3021 \begin_inset Quotes erd
3022 \end_inset
3023
3024 .
3025  The difference between 
3026 \begin_inset Quotes eld
3027 \end_inset
3028
3029 include
3030 \begin_inset Quotes erd
3031 \end_inset
3032
3033  and 
3034 \begin_inset Quotes eld
3035 \end_inset
3036
3037 input
3038 \begin_inset Quotes erd
3039 \end_inset
3040
3041  is really only meaningful to \SpecialChar LaTeX
3042 perts, but the practical difference is that
3043  files that are 
3044 \begin_inset Quotes eld
3045 \end_inset
3046
3047 included
3048 \begin_inset Quotes erd
3049 \end_inset
3050
3051  are typeset beginning on a new page, while files that are 
3052 \begin_inset Quotes eld
3053 \end_inset
3054
3055 inputted
3056 \begin_inset Quotes erd
3057 \end_inset
3058
3059  are typeset starting on the current page.
3060 \end_layout
3061
3062 \begin_layout Standard
3063 Generally, the master file is converted into a full \SpecialChar LaTeX
3064  file before typesetting,
3065  while the included files are converted to \SpecialChar LaTeX
3066  files that do not have all the
3067  preamble information.
3068 \end_layout
3069
3070 \begin_layout Standard
3071
3072 \begin_inset Quotes eld
3073 \end_inset
3074
3075 verbatim
3076 \begin_inset Quotes erd
3077 \end_inset
3078
3079  included file allows you to include a file typeset exactly as it appears
3080  in the file, i.
3081 \begin_inset space \thinspace{}
3082 \end_inset
3083
3084 e.
3085 \begin_inset space \space{}
3086 \end_inset
3087
3088 in 
3089 \begin_inset Flex Code
3090 status collapsed
3091
3092 \begin_layout Plain Layout
3093 verbatim
3094 \end_layout
3095
3096 \end_inset
3097
3098  mode, with the characters set in a fixed-width typewriter font.
3099  Normally, spaces in this file are invisible, though two consecutive spaces
3100  are conserved, unlike \SpecialChar LyX
3101 's normal treatment of spaces.
3102  However, setting the 
3103 \begin_inset Flex Noun
3104 status collapsed
3105
3106 \begin_layout Plain Layout
3107 Mark
3108 \begin_inset space ~
3109 \end_inset
3110
3111 spaces
3112 \begin_inset space ~
3113 \end_inset
3114
3115 in
3116 \begin_inset space ~
3117 \end_inset
3118
3119 output
3120 \end_layout
3121
3122 \end_inset
3123
3124  checkbox typesets a mark to unambiguously define the presence of a space.
3125  
3126 \end_layout
3127
3128 \begin_layout Subsection
3129 Cross-References Between Files
3130 \end_layout
3131
3132 \begin_layout Standard
3133 \begin_inset Box Shadowbox
3134 position "t"
3135 hor_pos "c"
3136 has_inner_box 1
3137 inner_pos "t"
3138 use_parbox 0
3139 use_makebox 0
3140 width "100col%"
3141 special "none"
3142 height "1in"
3143 height_special "totalheight"
3144 thickness "0.4pt"
3145 separation "3pt"
3146 shadowsize "4pt"
3147 framecolor "black"
3148 backgroundcolor "none"
3149 status open
3150
3151 \begin_layout Plain Layout
3152 This section is somewhat out of date.
3153  Need to describe default master documents and how children are opened when
3154  the master is.
3155  [[FIXME]]
3156 \end_layout
3157
3158 \end_inset
3159
3160
3161 \end_layout
3162
3163 \begin_layout Standard
3164 It is possible to set up cross-references between the different files.
3165  First, open all the files in question: let's call them A and B in a two
3166  file example, where B is included in A.
3167  Let's say you insert a label in A, then want to reference it in B.
3168  Open the cross-reference dialog whilst in document B, and you can select
3169  the 
3170 \begin_inset Quotes eld
3171 \end_inset
3172
3173 buffer
3174 \begin_inset Quotes erd
3175 \end_inset
3176
3177  to use.
3178 \end_layout
3179
3180 \begin_layout Subsection
3181 Bibliography Lists in all Subdocuments
3182 \end_layout
3183
3184 \begin_layout Standard
3185 \begin_inset Box Frameless
3186 position "t"
3187 hor_pos "c"
3188 has_inner_box 1
3189 inner_pos "t"
3190 use_parbox 0
3191 use_makebox 0
3192 width "100col%"
3193 special "none"
3194 height "1in"
3195 height_special "totalheight"
3196 thickness "0.4pt"
3197 separation "3pt"
3198 shadowsize "4pt"
3199 framecolor "black"
3200 backgroundcolor "none"
3201 status open
3202
3203 \begin_layout Plain Layout
3204 This section also needs updating.
3205  There is now material about this on the wiki, and it could be copied here.
3206 \end_layout
3207
3208 \end_inset
3209
3210
3211 \end_layout
3212
3213 \begin_layout Standard
3214 Copy the bibliography list with all entries to all subdocuments and transform
3215  them to a comment.
3216  This way \SpecialChar LyX
3217  will find the 
3218 \begin_inset Flex Code
3219 status collapsed
3220
3221 \begin_layout Plain Layout
3222 .bib
3223 \end_layout
3224
3225 \end_inset
3226
3227 -files and you can easily insert references without making the bibliography
3228  list visible.
3229 \end_layout
3230
3231 \begin_layout Standard
3232 As the bibliography list is in a comment, \SpecialChar LaTeX
3233  won't use it and the references
3234  will look like this: [?], instead of like this: [1].
3235  One solution is to use the \SpecialChar LaTeX
3236 -package 
3237 \begin_inset Flex Code
3238 status collapsed
3239
3240 \begin_layout Plain Layout
3241 comment
3242 \end_layout
3243
3244 \end_inset
3245
3246  that will only include comments by processing the files separately.
3247  To do this, add in the \SpecialChar LaTeX
3248  preamble of every subdocument the following:
3249 \end_layout
3250
3251 \begin_layout LyX-Code
3252
3253 \backslash
3254 usepackage{comment}
3255 \end_layout
3256
3257 \begin_layout LyX-Code
3258
3259 \backslash
3260 includecomment{comment}
3261 \end_layout
3262
3263 \begin_layout Standard
3264 See also 
3265 \begin_inset Flex URL
3266 status collapsed
3267
3268 \begin_layout Plain Layout
3269
3270 http://wiki.lyx.org/FAQ/Unsorted#toc31
3271 \end_layout
3272
3273 \end_inset
3274
3275 .
3276 \end_layout
3277
3278 \begin_layout Section
3279 \SpecialChar LyX
3280  Archives
3281 \end_layout
3282
3283 \begin_layout Standard
3284 Users sometimes need to be able to 
3285 \begin_inset Quotes eld
3286 \end_inset
3287
3288 bundle
3289 \begin_inset Quotes erd
3290 \end_inset
3291
3292  a \SpecialChar LyX
3293  file together with all the images (and other files) on which it depends,
3294  either for sending to a publisher or for sharing with a co-author.
3295  \SpecialChar LyX
3296  2.0 includes a Python script (
3297 \begin_inset Flex Code
3298 status collapsed
3299
3300 \begin_layout Plain Layout
3301 lyxpak.py
3302 \end_layout
3303
3304 \end_inset
3305
3306 ) that automates this process.
3307  To use it, you must have either the 
3308 \begin_inset Flex Code
3309 status collapsed
3310
3311 \begin_layout Plain Layout
3312 zipfile
3313 \end_layout
3314
3315 \end_inset
3316
3317  or 
3318 \begin_inset Flex Code
3319 status collapsed
3320
3321 \begin_layout Plain Layout
3322 tarfile
3323 \end_layout
3324
3325 \end_inset
3326
3327  python modules installed on your system.
3328  By default, the script prefers the 
3329 \begin_inset Flex Code
3330 status collapsed
3331
3332 \begin_layout Plain Layout
3333 gzip
3334 \end_layout
3335
3336 \end_inset
3337
3338 -compressed 
3339 \begin_inset Flex Code
3340 status collapsed
3341
3342 \begin_layout Plain Layout
3343 tar
3344 \end_layout
3345
3346 \end_inset
3347
3348  format on Unix-like systems and the 
3349 \begin_inset Flex Code
3350 status collapsed
3351
3352 \begin_layout Plain Layout
3353 zip
3354 \end_layout
3355
3356 \end_inset
3357
3358  format on Windows.
3359 \end_layout
3360
3361 \begin_layout Standard
3362 \SpecialChar LyX
3363 's configuration process will set the script up to export a `\SpecialChar LyX
3364  Archive',
3365  and this format will then be available under 
3366 \begin_inset Flex Code
3367 status collapsed
3368
3369 \begin_layout Plain Layout
3370 File\SpecialChar menuseparator
3371 Export
3372 \end_layout
3373
3374 \end_inset
3375
3376 .
3377 \end_layout
3378
3379 \begin_layout Standard
3380 Independently of the platform, the generation of a particular archive format
3381  can be forced by adding either the 
3382 \begin_inset Flex Code
3383 status collapsed
3384
3385 \begin_layout Plain Layout
3386 -t
3387 \end_layout
3388
3389 \end_inset
3390
3391  (for the 
3392 \begin_inset Flex Code
3393 status collapsed
3394
3395 \begin_layout Plain Layout
3396 tar
3397 \end_layout
3398
3399 \end_inset
3400
3401  format) or 
3402 \begin_inset Flex Code
3403 status collapsed
3404
3405 \begin_layout Plain Layout
3406 -z
3407 \end_layout
3408
3409 \end_inset
3410
3411  (for the 
3412 \begin_inset Flex Code
3413 status collapsed
3414
3415 \begin_layout Plain Layout
3416 zip
3417 \end_layout
3418
3419 \end_inset
3420
3421  format) switch to the 
3422 \begin_inset Flex Code
3423 status collapsed
3424
3425 \begin_layout Plain Layout
3426 \SpecialChar LyX
3427 \SpecialChar menuseparator
3428 \SpecialChar LyX
3429  Archive
3430 \end_layout
3431
3432 \end_inset
3433
3434  converter in 
3435 \begin_inset Flex Code
3436 status collapsed
3437
3438 \begin_layout Plain Layout
3439 Tools\SpecialChar menuseparator
3440 Preferences\SpecialChar menuseparator
3441 File Handling\SpecialChar menuseparator
3442 Converters
3443 \end_layout
3444
3445 \end_inset
3446
3447 .
3448  (Make sure you add the switch after the script name, not before it.)
3449 \end_layout
3450
3451 \begin_layout Section
3452 Fancy Headers and Footers
3453 \end_layout
3454
3455 \begin_layout Standard
3456 The default page layout is rather plain; for an 
3457 \begin_inset Flex Code
3458 status collapsed
3459
3460 \begin_layout Plain Layout
3461 article
3462 \end_layout
3463
3464 \end_inset
3465
3466  document class, all you get is a centered page number at the bottom of
3467  the page.
3468  This document uses KOMA-script's book class, so it appears to be a bit
3469  fancier.
3470  But to really put on a show, you need to set the document page style to
3471  
3472 \begin_inset Quotes eld
3473 \end_inset
3474
3475 fancy
3476 \begin_inset Quotes erd
3477 \end_inset
3478
3479 , as mentioned in the 
3480 \emph on
3481 User Guide
3482 \emph default
3483 .
3484  This section describes the \SpecialChar LaTeX
3485  code you need to insert in your \SpecialChar LaTeX
3486  preamble in
3487  order to get the desired effects.
3488 \end_layout
3489
3490 \begin_layout Standard
3491 For more information on fancy headers, see the 
3492 \begin_inset Flex Code
3493 status collapsed
3494
3495 \begin_layout Plain Layout
3496 fancyhdr
3497 \end_layout
3498
3499 \end_inset
3500
3501  package documentation.
3502  (
3503 \begin_inset Flex URL
3504 status collapsed
3505
3506 \begin_layout Plain Layout
3507
3508 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3509 \end_layout
3510
3511 \end_inset
3512
3513 )
3514 \end_layout
3515
3516 \begin_layout Standard
3517 The page header is divided into three fields, not surprisingly labeled 
3518 \begin_inset Quotes eld
3519 \end_inset
3520
3521 left
3522 \begin_inset Quotes erd
3523 \end_inset
3524
3525
3526 \begin_inset Quotes eld
3527 \end_inset
3528
3529 center
3530 \begin_inset Quotes erd
3531 \end_inset
3532
3533 , and 
3534 \begin_inset Quotes eld
3535 \end_inset
3536
3537 right
3538 \begin_inset Quotes erd
3539 \end_inset
3540
3541 .
3542  The footer is also divided into these three fields.
3543  The \SpecialChar LaTeX
3544  commands to set these fields in the simplest manner are 
3545 \begin_inset Flex Code
3546 status collapsed
3547
3548 \begin_layout Plain Layout
3549
3550 \backslash
3551 lhead
3552 \end_layout
3553
3554 \end_inset
3555
3556
3557 \begin_inset Flex Code
3558 status collapsed
3559
3560 \begin_layout Plain Layout
3561
3562 \backslash
3563 chead
3564 \end_layout
3565
3566 \end_inset
3567
3568
3569 \begin_inset Flex Code
3570 status collapsed
3571
3572 \begin_layout Plain Layout
3573
3574 \backslash
3575 rhead
3576 \end_layout
3577
3578 \end_inset
3579
3580
3581 \begin_inset Flex Code
3582 status collapsed
3583
3584 \begin_layout Plain Layout
3585
3586 \backslash
3587 lfoot
3588 \end_layout
3589
3590 \end_inset
3591
3592 , etc.
3593  Suppose you wish to put your name in the upper left hand corner of each
3594  page.
3595  Simply insert the following command in the preamble: 
3596 \end_layout
3597
3598 \begin_layout Standard
3599
3600 \family typewriter
3601
3602 \backslash
3603 lhead{John Q.
3604  DocWriter}
3605 \end_layout
3606
3607 \begin_layout Standard
3608 You will now see your name in the upper left.
3609  If a field has a default entry that you would like to get rid of (often
3610  the page number appears in the central footer) simply include a command
3611  with a blank argument, e.
3612 \begin_inset space \thinspace{}
3613 \end_inset
3614
3615 g.:
3616 \end_layout
3617
3618 \begin_layout Standard
3619
3620 \family typewriter
3621
3622 \backslash
3623 cfoot{}
3624 \end_layout
3625
3626 \begin_layout Standard
3627 Let's get really fancy: lets put the section number with the word 
3628 \begin_inset Quotes eld
3629 \end_inset
3630
3631 Section
3632 \begin_inset Quotes erd
3633 \end_inset
3634
3635  (e.
3636 \begin_inset space \thinspace{}
3637 \end_inset
3638
3639 g.
3640 \begin_inset space \space{}
3641 \end_inset
3642
3643 Section 3) in the upper left, the page number (e.
3644 \begin_inset space \thinspace{}
3645 \end_inset
3646
3647 g.
3648 \begin_inset space \space{}
3649 \end_inset
3650
3651 Page 4) in the upper right, your name in the lower left, and the date in
3652  the lower right.
3653  The following commands should now appear in the preamble:
3654 \end_layout
3655
3656 \begin_layout Standard
3657
3658 \family typewriter
3659
3660 \backslash
3661 lhead{Section 
3662 \backslash
3663 thesection}
3664 \end_layout
3665
3666 \begin_layout Standard
3667
3668 \family typewriter
3669
3670 \backslash
3671 chead{}
3672 \end_layout
3673
3674 \begin_layout Standard
3675
3676 \family typewriter
3677
3678 \backslash
3679 rhead{Page 
3680 \backslash
3681 thepage}
3682 \end_layout
3683
3684 \begin_layout Standard
3685
3686 \family typewriter
3687
3688 \backslash
3689 lfoot{John Q.
3690  DocWriter}
3691 \end_layout
3692
3693 \begin_layout Standard
3694
3695 \family typewriter
3696
3697 \backslash
3698 cfoot{}
3699 \end_layout
3700
3701 \begin_layout Standard
3702
3703 \family typewriter
3704
3705 \backslash
3706 rfoot{
3707 \backslash
3708 today}
3709 \end_layout
3710
3711 \begin_layout Standard
3712 The commands 
3713 \begin_inset Flex Code
3714 status collapsed
3715
3716 \begin_layout Plain Layout
3717
3718 \backslash
3719 thesection
3720 \end_layout
3721
3722 \end_inset
3723
3724  and 
3725 \begin_inset Flex Code
3726 status collapsed
3727
3728 \begin_layout Plain Layout
3729
3730 \backslash
3731 thepage
3732 \end_layout
3733
3734 \end_inset
3735
3736  access \SpecialChar LaTeX
3737 's section and page counters, and so print out the current section
3738  and page numbers.
3739  
3740 \begin_inset Flex Code
3741 status collapsed
3742
3743 \begin_layout Plain Layout
3744
3745 \backslash
3746 today
3747 \end_layout
3748
3749 \end_inset
3750
3751  simply prints out today's date.
3752 \end_layout
3753
3754 \begin_layout Standard
3755 The thicknesses of the horizontal rules drawn beneath the header and above
3756  the footer can also be modified.
3757  If you don't want one of the rules, set its thickness to 0.
3758  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3759  Use commands
3760 \family typewriter
3761  
3762 \family default
3763 like 
3764 \begin_inset Flex Code
3765 status collapsed
3766
3767 \begin_layout Plain Layout
3768
3769 \backslash
3770 renewcommand{
3771 \backslash
3772 headrulewidth}{0.4pt}
3773 \end_layout
3774
3775 \end_inset
3776
3777  and 
3778 \begin_inset Flex Code
3779 status collapsed
3780
3781 \begin_layout Plain Layout
3782
3783 \backslash
3784 renewcommand{
3785 \backslash
3786 footrulewidth}{0.4pt}
3787 \end_layout
3788
3789 \end_inset
3790
3791  to set the thicknesses.
3792 \end_layout
3793
3794 \begin_layout Standard
3795 You can switch the header/footer settings on and off for individual pages
3796  using commands like 
3797 \begin_inset Flex Code
3798 status collapsed
3799
3800 \begin_layout Plain Layout
3801
3802 \backslash
3803 thispagestyle{empty}
3804 \end_layout
3805
3806 \end_inset
3807
3808
3809 \begin_inset Flex Code
3810 status collapsed
3811
3812 \begin_layout Plain Layout
3813
3814 \backslash
3815 thispagestyle{plain}
3816 \end_layout
3817
3818 \end_inset
3819
3820 , and 
3821 \begin_inset Flex Code
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825
3826 \backslash
3827 thispagestyle{fancy}
3828 \end_layout
3829
3830 \end_inset
3831
3832 .
3833  Simply insert them in the text on the page you want changed and mark them
3834  as \SpecialChar TeX
3835  code.
3836  In fact, title pages are marked as plain by default, while following pages
3837  are marked fancy when using the global fancy setting.
3838 \end_layout
3839
3840 \begin_layout Standard
3841 As a final example, it is possible to include an image in the header or
3842  footer.
3843  Suppose you want to put a company logo in the upper lefthand corner.
3844  You might try something like
3845 \end_layout
3846
3847 \begin_layout Standard
3848
3849 \family typewriter
3850
3851 \backslash
3852 lhead{
3853 \backslash
3854 resizebox{1in}{!}{
3855 \backslash
3856 includegraphics{logo.eps}}}
3857 \end_layout
3858
3859 \begin_layout Standard
3860 \noindent
3861 (you may need to preface this with 
3862 \begin_inset Flex Code
3863 status collapsed
3864
3865 \begin_layout Plain Layout
3866 \noindent
3867
3868 \backslash
3869 usepackage{graphics}
3870 \end_layout
3871
3872 \end_inset
3873
3874  if you don't include graphics elsewhere in your document).
3875 \end_layout
3876
3877 \begin_layout Section
3878 Itemize Bullet Selection
3879 \begin_inset CommandInset label
3880 LatexCommand label
3881 name "sec:bullet"
3882
3883 \end_inset
3884
3885
3886 \end_layout
3887
3888 \begin_layout Standard
3889 by
3890 \noun on
3891  Allan Rae
3892 \end_layout
3893
3894 \begin_layout Subsection
3895 Introduction
3896 \end_layout
3897
3898 \begin_layout Standard
3899 \SpecialChar LyX
3900  provides 216 bullet shapes that can be accessed from a simple dialog.
3901  Using this dialog you can easily specify what bullet shape to use at each
3902  level of an itemized list.
3903  These settings are document-wide so you won't be able to specify different
3904  sets of bullets for different paragraphs.
3905 \begin_inset Foot
3906 status collapsed
3907
3908 \begin_layout Plain Layout
3909 Well, actually you can but you'll have to do it by hand.
3910 \end_layout
3911
3912 \end_inset
3913
3914
3915 \end_layout
3916
3917 \begin_layout Subsection
3918 How it looks
3919 \end_layout
3920
3921 \begin_layout Standard
3922 Open the dialog by selecting the 
3923 \begin_inset Flex Noun
3924 status collapsed
3925
3926 \begin_layout Plain Layout
3927 Document\SpecialChar menuseparator
3928 Settings
3929 \end_layout
3930
3931 \end_inset
3932
3933  menu item and then select the 
3934 \begin_inset Flex Noun
3935 status collapsed
3936
3937 \begin_layout Plain Layout
3938 Bullets
3939 \end_layout
3940
3941 \end_inset
3942
3943  tab.
3944 \end_layout
3945
3946 \begin_layout Standard
3947 The dialog provides you with a table of bullet shapes.
3948  A column of buttons on the left of the table provides access to the six
3949  different panels of bullet shapes.
3950  The row of buttons across the top is used to select which bullet depth
3951  you are changing.
3952  A text entry under the table shows the currently selected bullet shape's
3953  \SpecialChar LaTeX
3954  equivalent and this can be edited if desired.
3955  If you do modify the text you will also need to specify any needed packages
3956  in the \SpecialChar LaTeX
3957  preamble.
3958 \end_layout
3959
3960 \begin_layout Standard
3961 The six panels are divided up by the packages they require.
3962  The following table shows the mappings from button name to \SpecialChar LaTeX
3963  package.
3964 \begin_inset Separator parbreak
3965 \end_inset
3966
3967
3968 \end_layout
3969
3970 \begin_layout Standard
3971 \align center
3972 \begin_inset Tabular
3973 <lyxtabular version="3" rows="7" columns="2">
3974 <features tabularvalignment="middle">
3975 <column alignment="center" valignment="top" width="0pt">
3976 <column alignment="center" valignment="top" width="0pt">
3977 <row>
3978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3979 \begin_inset Text
3980
3981 \begin_layout Plain Layout
3982
3983 \family roman
3984 \series medium
3985 \shape up
3986 \size normal
3987 \emph off
3988 \bar no
3989 \noun off
3990 \color none
3991 Button
3992 \end_layout
3993
3994 \end_inset
3995 </cell>
3996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3997 \begin_inset Text
3998
3999 \begin_layout Plain Layout
4000
4001 \family roman
4002 \series medium
4003 \shape up
4004 \size normal
4005 \emph off
4006 \bar no
4007 \noun off
4008 \color none
4009 Packages Required
4010 \end_layout
4011
4012 \end_inset
4013 </cell>
4014 </row>
4015 <row>
4016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4017 \begin_inset Text
4018
4019 \begin_layout Plain Layout
4020
4021 \family sans
4022 \series medium
4023 \shape up
4024 \size normal
4025 \emph off
4026 \bar no
4027 \noun off
4028 \color none
4029 Standard
4030 \end_layout
4031
4032 \end_inset
4033 </cell>
4034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4035 \begin_inset Text
4036
4037 \begin_layout Plain Layout
4038
4039 \series medium
4040 \shape up
4041 \size normal
4042 \emph off
4043 \bar no
4044 \noun off
4045 \color none
4046 base \SpecialChar LaTeX
4047
4048 \end_layout
4049
4050 \end_inset
4051 </cell>
4052 </row>
4053 <row>
4054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4055 \begin_inset Text
4056
4057 \begin_layout Plain Layout
4058
4059 \family sans
4060 \series medium
4061 \shape up
4062 \size normal
4063 \emph off
4064 \bar no
4065 \noun off
4066 \color none
4067 Maths
4068 \end_layout
4069
4070 \end_inset
4071 </cell>
4072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4073 \begin_inset Text
4074
4075 \begin_layout Plain Layout
4076
4077 \family typewriter
4078 \series medium
4079 \shape up
4080 \size normal
4081 \emph off
4082 \bar no
4083 \noun off
4084 \color none
4085 amssymb.sty
4086 \end_layout
4087
4088 \end_inset
4089 </cell>
4090 </row>
4091 <row>
4092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4093 \begin_inset Text
4094
4095 \begin_layout Plain Layout
4096
4097 \family sans
4098 \series medium
4099 \shape up
4100 \size normal
4101 \emph off
4102 \bar no
4103 \noun off
4104 \color none
4105 Ding1
4106 \end_layout
4107
4108 \end_inset
4109 </cell>
4110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4111 \begin_inset Text
4112
4113 \begin_layout Plain Layout
4114
4115 \family typewriter
4116 \series medium
4117 \shape up
4118 \size normal
4119 \emph off
4120 \bar no
4121 \noun off
4122 \color none
4123 pifont.sty
4124 \end_layout
4125
4126 \end_inset
4127 </cell>
4128 </row>
4129 <row>
4130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4131 \begin_inset Text
4132
4133 \begin_layout Plain Layout
4134
4135 \family sans
4136 \series medium
4137 \shape up
4138 \size normal
4139 \emph off
4140 \bar no
4141 \noun off
4142 \color none
4143 Ding2
4144 \end_layout
4145
4146 \end_inset
4147 </cell>
4148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4149 \begin_inset Text
4150
4151 \begin_layout Plain Layout
4152
4153 \family typewriter
4154 \series medium
4155 \shape up
4156 \size normal
4157 \emph off
4158 \bar no
4159 \noun off
4160 \color none
4161 pifont.sty
4162 \end_layout
4163
4164 \end_inset
4165 </cell>
4166 </row>
4167 <row>
4168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4169 \begin_inset Text
4170
4171 \begin_layout Plain Layout
4172
4173 \family sans
4174 \series medium
4175 \shape up
4176 \size normal
4177 \emph off
4178 \bar no
4179 \noun off
4180 \color none
4181 Ding3
4182 \end_layout
4183
4184 \end_inset
4185 </cell>
4186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4187 \begin_inset Text
4188
4189 \begin_layout Plain Layout
4190
4191 \family typewriter
4192 \series medium
4193 \shape up
4194 \size normal
4195 \emph off
4196 \bar no
4197 \noun off
4198 \color none
4199 pifont.sty
4200 \end_layout
4201
4202 \end_inset
4203 </cell>
4204 </row>
4205 <row>
4206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4207 \begin_inset Text
4208
4209 \begin_layout Plain Layout
4210
4211 \family sans
4212 \series medium
4213 \shape up
4214 \size normal
4215 \emph off
4216 \bar no
4217 \noun off
4218 \color none
4219 Ding4
4220 \end_layout
4221
4222 \end_inset
4223 </cell>
4224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4225 \begin_inset Text
4226
4227 \begin_layout Plain Layout
4228
4229 \family typewriter
4230 \series medium
4231 \shape up
4232 \size normal
4233 \emph off
4234 \bar no
4235 \noun off
4236 \color none
4237 pifont.sty
4238 \end_layout
4239
4240 \end_inset
4241 </cell>
4242 </row>
4243 </lyxtabular>
4244
4245 \end_inset
4246
4247
4248 \end_layout
4249
4250 \begin_layout Standard
4251 \SpecialChar LyX
4252  doesn't stop you using bullets from packages you don't have.
4253  If you get errors from \SpecialChar LaTeX
4254  when you try to view or print the file, then it
4255  is likely you are missing a package.
4256 \begin_inset Foot
4257 status collapsed
4258
4259 \begin_layout Plain Layout
4260 \SpecialChar LyX
4261  doesn't restrict your use since you may be editing locally and exporting
4262  elsewhere.
4263 \end_layout
4264
4265 \end_inset
4266
4267
4268 \end_layout
4269
4270 \begin_layout Subsection
4271 How to use it
4272 \end_layout
4273
4274 \begin_layout Standard
4275 Select which bullet depth you want to change then select the bullet shape
4276  and size.
4277  Any changes will not be visible in \SpecialChar LyX
4278 , but are visible when viewing the document.
4279 \end_layout
4280
4281 \begin_layout Standard
4282 You can reset a bullet shape to the default simply by clicking your right
4283  mouse button on the appropriate bullet depth button.
4284 \begin_inset Foot
4285 status collapsed
4286
4287 \begin_layout Plain Layout
4288 If you 
4289 \emph on
4290 really
4291 \emph default
4292  want to have multiple sets of paragraphs with different sets of bullets
4293  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4294  code.
4295  The bullet selection dialog can help though because it provides you with
4296  the \SpecialChar LaTeX
4297  code for a wide range of bullet shapes.
4298  To make your own custom paragraphs you have the following options:
4299 \end_layout
4300
4301 \begin_layout Plain Layout
4302 \begin_inset ERT
4303 status open
4304
4305 \begin_layout Plain Layout
4306
4307
4308 \backslash
4309 let
4310 \backslash
4311 savelabelitemi=
4312 \backslash
4313 labelitemi
4314 \end_layout
4315
4316 \end_inset
4317
4318
4319 \end_layout
4320
4321 \begin_layout Plain Layout
4322 \begin_inset ERT
4323 status open
4324
4325 \begin_layout Plain Layout
4326
4327
4328 \backslash
4329 renewcommand
4330 \backslash
4331 labelitemi[0]{
4332 \backslash
4333 small
4334 \backslash
4335 (
4336 \backslash
4337 sharp
4338 \backslash
4339 )}
4340 \end_layout
4341
4342 \end_inset
4343
4344
4345 \end_layout
4346
4347 \begin_layout Itemize
4348 Use the \SpecialChar LaTeX
4349  command 
4350 \begin_inset Flex Code
4351 status collapsed
4352
4353 \begin_layout Plain Layout
4354
4355 \backslash
4356 renewcommand{}{}
4357 \end_layout
4358
4359 \end_inset
4360
4361  to specify a new bullet shape for a given depth.
4362  You'll also need to save the current bullet shape so you can restore it
4363  again afterwards.
4364  In this itemized list the following \SpecialChar LaTeX
4365  code was used to change the bullet
4366  used for the first depth.
4367 \begin_inset Separator parbreak
4368 \end_inset
4369
4370
4371 \end_layout
4372
4373 \begin_deeper
4374 \begin_layout LyX-Code
4375
4376 \backslash
4377 let
4378 \backslash
4379 savelabelitemi=
4380 \backslash
4381 labelitemi 
4382 \end_layout
4383
4384 \begin_layout LyX-Code
4385
4386 \backslash
4387 renewcommand
4388 \backslash
4389 labelitemi[0]{
4390 \backslash
4391 small
4392 \backslash
4393 (
4394 \backslash
4395 sharp
4396 \backslash
4397 )}
4398 \end_layout
4399
4400 \end_deeper
4401 \begin_layout Itemize
4402 Note that the itemize depth is specified in Roman numerals as part of the
4403  
4404 \family typewriter
4405
4406 \backslash
4407 labelitem
4408 \family default
4409  command.
4410 \end_layout
4411
4412 \begin_layout Itemize
4413 \begin_inset ERT
4414 status open
4415
4416 \begin_layout Plain Layout
4417
4418 [
4419 \backslash
4420 (
4421 \backslash
4422 star
4423 \backslash
4424 )]
4425 \end_layout
4426
4427 \end_inset
4428
4429  Specify each individual entry by starting each item with the bullet shape
4430  enclosed in square brackets and set as 
4431 \begin_inset Flex Noun
4432 status collapsed
4433
4434 \begin_layout Plain Layout
4435 \SpecialChar TeX
4436  Code
4437 \end_layout
4438
4439 \end_inset
4440
4441 .
4442  For example, this item was started with 
4443 \begin_inset Flex Code
4444 status collapsed
4445
4446 \begin_layout Plain Layout
4447 [
4448 \backslash
4449 (
4450 \backslash
4451 star
4452 \backslash
4453 )]
4454 \end_layout
4455
4456 \end_inset
4457
4458 .
4459 \end_layout
4460
4461 \begin_layout Plain Layout
4462 \begin_inset ERT
4463 status open
4464
4465 \begin_layout Plain Layout
4466
4467
4468 \backslash
4469 renewcommand
4470 \backslash
4471 labelitemi[0]{
4472 \backslash
4473 savelabelitemi}
4474 \end_layout
4475
4476 \end_inset
4477
4478
4479 \end_layout
4480
4481 \begin_layout Plain Layout
4482 You'll also need to revert the labelitem back to its previous setting for
4483  the global bullet shape settings to remain in effect.
4484  The way used here was:
4485 \end_layout
4486
4487 \begin_layout LyX-Code
4488
4489 \backslash
4490 renewcommand
4491 \backslash
4492 labelitemi[0]{
4493 \backslash
4494 savelabelitemi}
4495 \end_layout
4496
4497 \end_inset
4498
4499
4500 \end_layout
4501
4502 \begin_layout Chapter
4503 \SpecialChar LyX
4504  and the World Wide Web
4505 \end_layout
4506
4507 \begin_layout Standard
4508 \SpecialChar LyX
4509  has long supported the export of documents to various web-friendly formats,
4510  such as HTML.
4511  Before verson 2.0, however, HTML export was always accomplished by the use
4512  of external converters.
4513 \begin_inset Foot
4514 status collapsed
4515
4516 \begin_layout Plain Layout
4517 For details on the use of external converters with \SpecialChar LyX
4518 , see the 
4519 \emph on
4520 Converters
4521 \emph default
4522  section of the Customization manual.
4523 \end_layout
4524
4525 \end_inset
4526
4527  These fall into two large groups: there are converters that use \SpecialChar LaTeX
4528  as an
4529  intermediate format, such as 
4530 \begin_inset Flex Code
4531 status collapsed
4532
4533 \begin_layout Plain Layout
4534 htlatex
4535 \end_layout
4536
4537 \end_inset
4538
4539
4540 \begin_inset Flex Code
4541 status collapsed
4542
4543 \begin_layout Plain Layout
4544 html2latex
4545 \end_layout
4546
4547 \end_inset
4548
4549 , and 
4550 \begin_inset Flex Code
4551 status collapsed
4552
4553 \begin_layout Plain Layout
4554 plastex
4555 \end_layout
4556
4557 \end_inset
4558
4559 , relying upon \SpecialChar LyX
4560  to produce the \SpecialChar LaTeX
4561 ; and there is a converter that works directly
4562  on \SpecialChar LyX
4563  files, 
4564 \begin_inset Flex Code
4565 status collapsed
4566
4567 \begin_layout Plain Layout
4568 e\SpecialChar LyX
4569 er
4570 \end_layout
4571
4572 \end_inset
4573
4574 .
4575  All of these have different advantages and disadvantages.
4576  
4577 \end_layout
4578
4579 \begin_layout Standard
4580 The \SpecialChar LaTeX
4581 -based converters have the advantage that, in principle, they know everythin
4582 g about the exported document that \SpecialChar LaTeX
4583  does.
4584  Such converters do not care, for example, if a certain block of code was
4585  produced by \SpecialChar LyX
4586  or was Evil Red Text.
4587  These converters know about 
4588 \begin_inset Flex Code
4589 status collapsed
4590
4591 \begin_layout Plain Layout
4592 aux
4593 \end_layout
4594
4595 \end_inset
4596
4597  files, counters, and references, and can often make use of the 
4598 \begin_inset Flex Code
4599 status collapsed
4600
4601 \begin_layout Plain Layout
4602 bbl
4603 \end_layout
4604
4605 \end_inset
4606
4607  files generated by Bib\SpecialChar TeX
4608 .
4609  On the other hand, \SpecialChar LaTeX
4610  is a very hard language to parse—it is sometimes said
4611  that only \SpecialChar TeX
4612  itself understands \SpecialChar TeX
4613 —and \SpecialChar LaTeX
4614 -based converters will often choke on
4615  what seem to be quite simple constructs; complex ones can throw them completely
4616 , and as of this writing, for example, the 
4617 \emph on
4618 Embedded Objects
4619 \emph default
4620  manual will not export with 
4621 \begin_inset Flex Code
4622 status collapsed
4623
4624 \begin_layout Plain Layout
4625 htlatex
4626 \end_layout
4627
4628 \end_inset
4629
4630 , though the others will.
4631  The other issue concerns how math is handled.
4632  These converters typically convert the formulae into little pictures that
4633  are then linked from the HTML document.
4634  Since these are actually generated by \SpecialChar LaTeX
4635 , they are accurate.
4636  But they do not scale well, and just getting them to look as if they are
4637  actually meant to be in your document—so that the font sizes seem to be
4638  roughly the same—can be a challenge.
4639 \end_layout
4640
4641 \begin_layout Standard
4642 Alex Fernandez's 
4643 \begin_inset Flex Code
4644 status collapsed
4645
4646 \begin_layout Plain Layout
4647 e\SpecialChar LyX
4648 er
4649 \end_layout
4650
4651 \end_inset
4652
4653  (
4654 \begin_inset CommandInset href
4655 LatexCommand href
4656 name "http://elyxer.nongnu.org/"
4657 target "http://elyxer.nongnu.org/"
4658
4659 \end_inset
4660
4661 ) solves some of these problems.
4662  In particular, the formulae it produces scale perfectly, since it renders
4663  math using a combination of HTML and CSS rather than converting the formulae
4664  to images.
4665  But even moderately complex formula are rendered less well than with 
4666 \begin_inset Flex Code
4667 status collapsed
4668
4669 \begin_layout Plain Layout
4670 htlatex
4671 \end_layout
4672
4673 \end_inset
4674
4675 ; this reflects the limitations of HTML.
4676 \begin_inset Foot
4677 status collapsed
4678
4679 \begin_layout Plain Layout
4680 That said, 
4681 \begin_inset Flex Code
4682 status collapsed
4683
4684 \begin_layout Plain Layout
4685 e\SpecialChar LyX
4686 er
4687 \end_layout
4688
4689 \end_inset
4690
4691  can also use jsMath and MathJax for equations, but this setting is only
4692  available globally and requires one to have access to a server that runs
4693  the backend.
4694 \end_layout
4695
4696 \end_inset
4697
4698  More importantly (as of version 1.1.1, at least), 
4699 \begin_inset Flex Code
4700 status collapsed
4701
4702 \begin_layout Plain Layout
4703 e\SpecialChar LyX
4704 er
4705 \end_layout
4706
4707 \end_inset
4708
4709  has limited support for math macros and no support for user-defined paragraph
4710  or character styles.
4711  These limitations make 
4712 \begin_inset Flex Code
4713 status collapsed
4714
4715 \begin_layout Plain Layout
4716 e\SpecialChar LyX
4717 er
4718 \end_layout
4719
4720 \end_inset
4721
4722  unsuitable for many of the documents \SpecialChar LyX
4723  users produce.
4724  In principle, of course, these problems could be solved, but the \SpecialChar LyX
4725  developers
4726  have decided to follow a different path and have made \SpecialChar LyX
4727  itself capable of
4728  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
4729 , DocBook, and plaintext.
4730 \end_layout
4731
4732 \begin_layout Standard
4733 As of this writing, XHTML output remains under development and should probably
4734  be regarded as 
4735 \begin_inset Quotes eld
4736 \end_inset
4737
4738 experimental
4739 \begin_inset Quotes erd
4740 \end_inset
4741
4742 .
4743 \begin_inset Foot
4744 status collapsed
4745
4746 \begin_layout Plain Layout
4747 The file 
4748 \begin_inset Flex Code
4749 status collapsed
4750
4751 \begin_layout Plain Layout
4752 development/HTML.notes
4753 \end_layout
4754
4755 \end_inset
4756
4757 , which can be found in the \SpecialChar LyX
4758  source tree or 
4759 \begin_inset CommandInset href
4760 LatexCommand href
4761 name "accessed online"
4762 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
4763
4764 \end_inset
4765
4766 , usually contains up-to-date information about the state of XHTML output.
4767  See also the list of XHTML bugs on 
4768 \begin_inset CommandInset href
4769 LatexCommand href
4770 name "the bug tracker"
4771 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"
4772
4773 \end_inset
4774
4775 .
4776 \end_layout
4777
4778 \end_inset
4779
4780  Still, the developers have chosen this approach because it has several
4781  potential advantages over the other two.
4782 \end_layout
4783
4784 \begin_layout Standard
4785 These advantages are primarily due to the fact that the XHTML output routines,
4786  since they are part of \SpecialChar LyX
4787 , know everything \SpecialChar LyX
4788  knows about the document being
4789  exported.
4790 \begin_inset Foot
4791 status collapsed
4792
4793 \begin_layout Plain Layout
4794 Another advantage is that, since these routines are internal to \SpecialChar LyX
4795 , they are
4796  immune to changes in \SpecialChar LyX
4797 's file format, or to changes in the semantics of
4798  existing insets.
4799 \end_layout
4800
4801 \end_inset
4802
4803  So they know about the table of contents (as displayed in the outline),
4804  about the counters associated with different paragraph styles, and about
4805  user-defined styles.
4806  The XHTML output routines know what \SpecialChar LyX
4807  knows about internationalization,
4808  too, so they will output 
4809 \begin_inset Quotes eld
4810 \end_inset
4811
4812 Chapter 1
4813 \begin_inset Quotes erd
4814 \end_inset
4815
4816  or 
4817 \begin_inset Quotes eld
4818 \end_inset
4819
4820
4821 \lang ngerman
4822 Kapitel
4823 \lang english
4824  1
4825 \begin_inset Quotes erd
4826 \end_inset
4827
4828 , depending upon the language in effect at the time.
4829  
4830 \end_layout
4831
4832 \begin_layout Standard
4833 Quite generally, the output routines know what \SpecialChar LyX
4834  knows about document layout,
4835  that is, about how the document is to be rendered on screen.
4836  We use this information when we output the document as XHTML.
4837  In particular, \SpecialChar LyX
4838  
4839 \emph on
4840 automatically
4841 \emph default
4842  generates CSS style information corresponding to the layout information
4843  it uses to render the document on screen: if section headings are supposed
4844  to be sans-serif and bold as seen in \SpecialChar LyX
4845 , then (by default) they will be sans-seri
4846 f and bold when viewed in a web browser, too.
4847  And this is true not just for pre-defined styles, like Section, but for
4848  any style, including user-defined styles.
4849  Indeed, the XHTML output routines make no distinction between user-defined
4850  paragraph and character styles and \SpecialChar LyX
4851 's own pre-defined styles: in each case,
4852  everything \SpecialChar LyX
4853  knows about the styles is contained in the layout files.
4854  And much the same is true as regards pre-defined textual insets, such as
4855  footnotes, and various custom insets.
4856  
4857 \end_layout
4858
4859 \begin_layout Standard
4860 The result is that XHTML output can be customized and extended in exactly
4861  the same way \SpecialChar LaTeX
4862  output can be customized and extended: through layout files
4863  and modules.
4864  See chapter five of the 
4865 \emph on
4866 Customization 
4867 \emph default
4868 manual for the details.
4869 \end_layout
4870
4871 \begin_layout Standard
4872 The remainder of this chapter contains more detailed information on XHTML
4873  output, its limitations, and ways to work around those limitations.
4874 \end_layout
4875
4876 \begin_layout Section
4877 Math Output in XHTML
4878 \end_layout
4879
4880 \begin_layout Standard
4881 \SpecialChar LyX
4882  offers four choices for how math is rendered.
4883  These have various advantages and disadvantages:
4884 \end_layout
4885
4886 \begin_layout Itemize
4887 MathML
4888 \begin_inset Newline newline
4889 \end_inset
4890
4891 MathML is a dialect of XML designed specifically for mathematics on the
4892  web, and it typically renders very well in browsers that support it.
4893  The disadvantage is that not all browsers support MathML, and support is
4894  not complete even in the Gecko-based browsers, such as Firefox.
4895 \begin_inset Newline newline
4896 \end_inset
4897
4898 If \SpecialChar LyX
4899  is unable to render a formula as MathML—for example, if the formula
4900  uses the 
4901 \begin_inset Flex Code
4902 status collapsed
4903
4904 \begin_layout Plain Layout
4905 xymatrix
4906 \end_layout
4907
4908 \end_inset
4909
4910  package or ERT—then it will instead output the formula as an image.
4911  
4912 \end_layout
4913
4914 \begin_layout Itemize
4915 HTML
4916 \begin_inset Newline newline
4917 \end_inset
4918
4919 As mentioned above, 
4920 \begin_inset Flex Code
4921 status collapsed
4922
4923 \begin_layout Plain Layout
4924 elyxer
4925 \end_layout
4926
4927 \end_inset
4928
4929  outputs math as HTML, styled by CSS.
4930 \begin_inset Foot
4931 status collapsed
4932
4933 \begin_layout Plain Layout
4934 \SpecialChar LyX
4935  has borrowed some of the CSS for its HTML output from 
4936 \begin_inset Flex Code
4937 status collapsed
4938
4939 \begin_layout Plain Layout
4940 elyxer
4941 \end_layout
4942
4943 \end_inset
4944
4945 .
4946 \end_layout
4947
4948 \end_inset
4949
4950  For simple formulae, this can work quite well, though with more complicated
4951  formulae it tends to break down.
4952  Still, this method has the advantage that it is very widely supported and
4953  so it may be appropriate for documents that contain only a little, fairly
4954  simple math.
4955 \begin_inset Newline newline
4956 \end_inset
4957
4958 If Lyx is unable to render a formula as HTML—for example, if the formula
4959  uses the 
4960 \begin_inset Flex Code
4961 status collapsed
4962
4963 \begin_layout Plain Layout
4964 xymatrix
4965 \end_layout
4966
4967 \end_inset
4968
4969  package or ERT—then it will instead output the formula as an image.
4970  
4971 \end_layout
4972
4973 \begin_layout Itemize
4974 Images
4975 \begin_inset Newline newline
4976 \end_inset
4977
4978 Like 
4979 \begin_inset Flex Code
4980 status collapsed
4981
4982 \begin_layout Plain Layout
4983 htlatex
4984 \end_layout
4985
4986 \end_inset
4987
4988 , \SpecialChar LyX
4989  will output formulae as images, the very same images, in fact, that are
4990  used for instant preview.
4991 \begin_inset Foot
4992 status collapsed
4993
4994 \begin_layout Plain Layout
4995 Instant preview does 
4996 \emph on
4997 not 
4998 \emph default
4999 have to be on for images to be output, however.
5000 \end_layout
5001
5002 \end_inset
5003
5004  The advantage to this method is that the images are simply generated by
5005  \SpecialChar LaTeX
5006 , so they are very accurate.
5007  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5008  so they do not scale terribly well, and one cannot copy them, etc.
5009  (As of this writing, there are also problems about equation numbering.
5010  See 
5011 \begin_inset CommandInset href
5012 LatexCommand href
5013 name "bug 6894"
5014 target "http://www.lyx.org/trac/ticket/6894"
5015
5016 \end_inset
5017
5018 .)
5019 \begin_inset Newline newline
5020 \end_inset
5021
5022 The size of the images can be controlled by setting the 
5023 \begin_inset Quotes eld
5024 \end_inset
5025
5026 Math Images Scaling
5027 \begin_inset Quotes erd
5028 \end_inset
5029
5030  parameter under 
5031 \begin_inset Flex Noun
5032 status collapsed
5033
5034 \begin_layout Plain Layout
5035 Document\SpecialChar menuseparator
5036 Settings\SpecialChar menuseparator
5037 Output
5038 \end_layout
5039
5040 \end_inset
5041
5042 .
5043 \begin_inset Foot
5044 status collapsed
5045
5046 \begin_layout Plain Layout
5047 For those who want to know, this controls the resolution of the image in
5048  dots per inch and is based upon a default of 75 dpi.
5049 \end_layout
5050
5051 \end_inset
5052
5053
5054 \begin_inset Newline newline
5055 \end_inset
5056
5057 If \SpecialChar LyX
5058  for some reason fails to create an image for a formula (e.g., if a required
5059  \SpecialChar LaTeX
5060  package is not installed), then it will fall back to outputing the raw
5061  \SpecialChar LaTeX
5062 .
5063 \end_layout
5064
5065 \begin_layout Itemize
5066 \SpecialChar LaTeX
5067
5068 \begin_inset Newline newline
5069 \end_inset
5070
5071 Finally, \SpecialChar LyX
5072  will happily output math as \SpecialChar LaTeX
5073 .
5074  As well as being the output of last resort, this method can be used with
5075  such tools as 
5076 \begin_inset CommandInset href
5077 LatexCommand href
5078 name "jsMath"
5079 target "http://www.math.union.edu/~dpvc/jsMath/"
5080
5081 \end_inset
5082
5083 , which uses JavaScript to render \SpecialChar LaTeX
5084  embedded in HTML documents.
5085  \SpecialChar LyX
5086  wraps the \SpecialChar LaTeX
5087  in either a 
5088 \begin_inset Flex Code
5089 status collapsed
5090
5091 \begin_layout Plain Layout
5092 span
5093 \end_layout
5094
5095 \end_inset
5096
5097  (for inline formulas) or 
5098 \begin_inset Flex Code
5099 status collapsed
5100
5101 \begin_layout Plain Layout
5102 div
5103 \end_layout
5104
5105 \end_inset
5106
5107  (for displayed formulas) with 
5108 \begin_inset Flex Code
5109 status collapsed
5110
5111 \begin_layout Plain Layout
5112 class='math'
5113 \end_layout
5114
5115 \end_inset
5116
5117 , as is required for jsMath.
5118 \end_layout
5119
5120 \begin_layout Standard
5121 One of these output methods must be selected under 
5122 \begin_inset Flex Noun
5123 status collapsed
5124
5125 \begin_layout Plain Layout
5126 Document\SpecialChar menuseparator
5127 Settings\SpecialChar menuseparator
5128 Output
5129 \end_layout
5130
5131 \end_inset
5132
5133 .
5134  By default, \SpecialChar LyX
5135  outputs MathML.
5136  This is a document-wide setting, therefore.
5137 \end_layout
5138
5139 \begin_layout Standard
5140 Eventually, \SpecialChar LyX
5141  will offer the user the option to select an alternate output
5142  method for a particular inset, say, one that isn't being rendered very
5143  well by MathML.
5144 \begin_inset Foot
5145 status collapsed
5146
5147 \begin_layout Plain Layout
5148 That said, since \SpecialChar LyX
5149  falls back to images if the inset contains ERT, then one
5150  can force output as an image by putting some harmless ERT into the math,
5151  for example: 
5152 \begin_inset Formula $a=b\relax$
5153 \end_inset
5154
5155 .
5156 \end_layout
5157
5158 \end_inset
5159
5160
5161 \end_layout
5162
5163 \begin_layout Section
5164 Bibliography and Citations
5165 \end_layout
5166
5167 \begin_layout Standard
5168 XHTML output fully supports bibliographies and citations.
5169  
5170 \end_layout
5171
5172 \begin_layout Standard
5173 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5174 's on-screen
5175  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5176 , though
5177  better.
5178  If you are using numerical citations, then \SpecialChar LyX
5179  will output numerical labels,
5180  such as [1] or [17], rather than simply showing the citation key in square
5181  brackets, as it does on-screen.
5182  If you are using author-year citations, then \SpecialChar LyX
5183  will add lowercase letters
5184  to the years, just as Bib\SpecialChar TeX
5185  does, if it finds more than one citation for
5186  a given author-year combination.
5187  The labels will be printed with the bibliography entries.
5188  Note that there is, at present, no way to customize the appearance of the
5189  labels, for example, to choose between square brackets and parentheses.
5190 \end_layout
5191
5192 \begin_layout Standard
5193 Bibliography output is handled by the same machinery that handles the presentati
5194 on of reference information in the citation dialog, so you will see in the
5195  XHTML output pretty much what you would see if you were to look at a given
5196  entry in the citation dialog.
5197  The formatting can be customized in your layout file or, preferably, in
5198  a module.
5199  See the 
5200 \emph on
5201 Customization
5202 \emph default
5203  manual for the details.
5204 \end_layout
5205
5206 \begin_layout Standard
5207 The main defect at present is that cross-referenced information is printed
5208  with every entry with which it is associated.
5209  So you can see things like this:
5210 \end_layout
5211
5212 \begin_layout Quote
5213 Jason Stanley, 
5214 \begin_inset Quotes eld
5215 \end_inset
5216
5217 Context and Logical Form
5218 \begin_inset Quotes erd
5219 \end_inset
5220
5221 , in 
5222 \emph on
5223 Language in Context: Selected Essays
5224 \emph default
5225  (Oxford: Oxford University Press, 2007), pp.
5226  30–68.
5227 \end_layout
5228
5229 \begin_layout Quote
5230 Jason Stanley, 
5231 \begin_inset Quotes eld
5232 \end_inset
5233
5234 Semantics in Context
5235 \begin_inset Quotes erd
5236 \end_inset
5237
5238 , in 
5239 \emph on
5240 Language in Context: Selected Essays
5241 \emph default
5242  (Oxford: Oxford University Press, 2007), pp.
5243  201–30.
5244 \end_layout
5245
5246 \begin_layout Standard
5247 This should be fixed before long.
5248 \end_layout
5249
5250 \begin_layout Standard
5251 There is no support at present for sectioned bibliographies.
5252  If you have multiple bibliographies, then \SpecialChar LyX
5253  will print the same bibliography
5254  over and over.
5255 \end_layout
5256
5257 \begin_layout Section
5258 Indexes
5259 \end_layout
5260
5261 \begin_layout Standard
5262 \SpecialChar LyX
5263  will happily export indexes as XHTML, but with certain limitations at the
5264  moment.
5265 \end_layout
5266
5267 \begin_layout Standard
5268 Index export will be most reliable when you do not attempt to use the fancy
5269  constructs that are described in the section on indexes in the 
5270 \emph on
5271 User's Guide
5272 \emph default
5273 .
5274 \begin_inset Foot
5275 status collapsed
5276
5277 \begin_layout Plain Layout
5278 The main issue here is that \SpecialChar LyX
5279  itself does not really handle these.
5280  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5281 .
5282 \end_layout
5283
5284 \end_inset
5285
5286  We'll describe how they are handled using the subsection headings from
5287  that section.
5288 \end_layout
5289
5290 \begin_layout Itemize
5291 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5292  makes an effort to support these,
5293  but the entries must be separated by 
5294 \begin_inset Quotes eld
5295 \end_inset
5296
5297  ! 
5298 \begin_inset Quotes erd
5299 \end_inset
5300
5301 , that is, there must be spaces around the exclamation point.
5302  This is because it is otherwise too difficult to check for escaped exclamation
5303  points, ones in math, and so forth.
5304 \end_layout
5305
5306 \begin_layout Itemize
5307 Page Ranges: There is no support at all for page ranges, since these make
5308  no sense with XHMTL.
5309  Instead, you will just get two index entries, one at either end.
5310 \end_layout
5311
5312 \begin_layout Itemize
5313 Cross-referencing: There is no support for cross-referencing.
5314  If \SpecialChar LyX
5315  finds an entry containing the 
5316 \begin_inset Quotes eld
5317 \end_inset
5318
5319 |see\SpecialChar ldots
5320
5321 \begin_inset Quotes erd
5322 \end_inset
5323
5324  construct, it is just dropped, and the rest is treated as an ordinary index
5325  entry.
5326 \end_layout
5327
5328 \begin_layout Itemize
5329 Index Entry Order: \SpecialChar LyX
5330  does support attempts to fix the sorting order.
5331  It will take what is before the first `@' it finds and use that for sorting,
5332  taking what follows the first `@' to be the actual entry.
5333  At present, \SpecialChar LyX
5334  does not check for escaped `@', so do not try to index email
5335  addresses.
5336 \end_layout
5337
5338 \begin_layout Itemize
5339 Index Entry Layout: You can format entries by using the text style dialog,
5340  or by using any other method available within \SpecialChar LyX
5341  itself.
5342  There is no support for constructs like: 
5343 \begin_inset Quotes eld
5344 \end_inset
5345
5346 entry|textbf
5347 \begin_inset Quotes erd
5348 \end_inset
5349
5350 .
5351  Indeed, if \SpecialChar LyX
5352  finds a pipe symbol, `|', in an entry, it will delete it and
5353  everything that follows it.
5354 \end_layout
5355
5356 \begin_layout Itemize
5357 Multiple Indexes: There is no support for multiple indexes.
5358  Rather, all index entries will be printed as one large index.
5359  To avoid our printing several versions of the index, we print only the
5360  main index, so make sure you have one.
5361 \end_layout
5362
5363 \begin_layout Section
5364 Nomenclature and Glossary
5365 \end_layout
5366
5367 \begin_layout Standard
5368 There is at present no support for glossaries.
5369  Adding it would be fairly trivial, and welcome.
5370 \end_layout
5371
5372 \begin_layout Chapter
5373 The \SpecialChar LyX
5374  Server
5375 \end_layout
5376
5377 \begin_layout Section
5378 Introduction
5379 \end_layout
5380
5381 \begin_layout Standard
5382 The `\SpecialChar LyX
5383  server' allows other programs to talk to \SpecialChar LyX
5384 , invoke \SpecialChar LyX
5385  commands, and retrieve
5386  information about the \SpecialChar LyX
5387  internal state.
5388  This is only intended for advanced users, but they should find it useful.
5389  It is by writing to the \SpecialChar LyX
5390  server, for example, that bibliography managers,
5391  such as JabRef, are able to 
5392 \begin_inset Quotes eld
5393 \end_inset
5394
5395 push
5396 \begin_inset Quotes erd
5397 \end_inset
5398
5399  citations to \SpecialChar LyX
5400 .
5401 \end_layout
5402
5403 \begin_layout Section
5404 Starting the \SpecialChar LyX
5405  Server
5406 \end_layout
5407
5408 \begin_layout Standard
5409 The \SpecialChar LyX
5410  server works through the use of a pair of named pipes.
5411  These are usually located in 
5412 \begin_inset Flex Code
5413 status collapsed
5414
5415 \begin_layout Plain Layout
5416 UserDir
5417 \end_layout
5418
5419 \end_inset
5420
5421 , (except on Windows, where 
5422 \emph on
5423 local
5424 \emph default
5425  named pipes are special objects located in 
5426 \begin_inset Flex Code
5427 status collapsed
5428
5429 \begin_layout Plain Layout
5430
5431 \backslash
5432
5433 \backslash
5434 .
5435 \backslash
5436 pipe
5437 \end_layout
5438
5439 \end_inset
5440
5441 ) and have the names 
5442 \begin_inset Quotes eld
5443 \end_inset
5444
5445
5446 \begin_inset Flex Code
5447 status collapsed
5448
5449 \begin_layout Plain Layout
5450 lyxpipe.in
5451 \end_layout
5452
5453 \end_inset
5454
5455
5456 \begin_inset Quotes erd
5457 \end_inset
5458
5459  and 
5460 \begin_inset Quotes eld
5461 \end_inset
5462
5463
5464 \begin_inset Flex Code
5465 status collapsed
5466
5467 \begin_layout Plain Layout
5468 lyxpipe.out
5469 \end_layout
5470
5471 \end_inset
5472
5473
5474 \begin_inset Quotes erd
5475 \end_inset
5476
5477 .
5478  External programs write into 
5479 \begin_inset Flex Code
5480 status collapsed
5481
5482 \begin_layout Plain Layout
5483 lyxpipe.in
5484 \end_layout
5485
5486 \end_inset
5487
5488  and read back data from 
5489 \begin_inset Flex Code
5490 status collapsed
5491
5492 \begin_layout Plain Layout
5493 lyxpipe.out
5494 \end_layout
5495
5496 \end_inset
5497
5498 .
5499  The stem of the pipe names can be defined in the 
5500 \begin_inset Flex Noun
5501 status collapsed
5502
5503 \begin_layout Plain Layout
5504 Tools\SpecialChar menuseparator
5505 Preferences
5506 \end_layout
5507
5508 \end_inset
5509
5510  dialog, for example 
5511 \begin_inset Flex Code
5512 status collapsed
5513
5514 \begin_layout Plain Layout
5515 "/home/myhome/lyxpipe"
5516 \end_layout
5517
5518 \end_inset
5519
5520 , or 
5521 \begin_inset Flex Code
5522 status collapsed
5523
5524 \begin_layout Plain Layout
5525 "
5526 \backslash
5527
5528 \backslash
5529 .
5530 \backslash
5531 pipe
5532 \backslash
5533 lyxpipe"
5534 \end_layout
5535
5536 \end_inset
5537
5538  on Windows (where any working path instead of lyxpipe can be used, for
5539  example 
5540 \begin_inset Flex Code
5541 status collapsed
5542
5543 \begin_layout Plain Layout
5544 "
5545 \backslash
5546
5547 \backslash
5548 .
5549 \backslash
5550 pipe
5551 \backslash
5552 my
5553 \backslash
5554 lyx
5555 \backslash
5556 pipe"
5557 \end_layout
5558
5559 \end_inset
5560
5561  would also work).
5562  You 
5563 \emph on
5564 must
5565 \emph default
5566  configure this manually in order for the server to start.
5567 \end_layout
5568
5569 \begin_layout Standard
5570 \SpecialChar LyX
5571  will add the '
5572 \begin_inset Flex Code
5573 status collapsed
5574
5575 \begin_layout Plain Layout
5576 .in
5577 \end_layout
5578
5579 \end_inset
5580
5581 ' and '
5582 \begin_inset Flex Code
5583 status collapsed
5584
5585 \begin_layout Plain Layout
5586 .out
5587 \end_layout
5588
5589 \end_inset
5590
5591 ' to create the pipes.
5592  If one of the pipes already exists, \SpecialChar LyX
5593  will assume that another \SpecialChar LyX
5594  process
5595  is already running and will not start the server.
5596  On POSIX (Unix like) systems, if for some other reason, an unused 
5597 \begin_inset Quotes eld
5598 \end_inset
5599
5600 stale
5601 \begin_inset Quotes erd
5602 \end_inset
5603
5604  pipe is left in existence when \SpecialChar LyX
5605  closes, then \SpecialChar LyX
5606  will try to delete it.
5607  If this fails for some reason, you will need to delete the pipes manually
5608  and then restart \SpecialChar LyX
5609 .
5610  On Windows, pipes are deleted by the OS on program termination or crash,
5611  so 
5612 \begin_inset Quotes eld
5613 \end_inset
5614
5615 stale
5616 \begin_inset Quotes erd
5617 \end_inset
5618
5619  pipes should not be possible.
5620 \end_layout
5621
5622 \begin_layout Standard
5623 To have several \SpecialChar LyX
5624  processes with servers at the same time, you have to use
5625  different configurations, perhaps by using separate user directories, each
5626  with its own 
5627 \begin_inset Flex Code
5628 status collapsed
5629
5630 \begin_layout Plain Layout
5631 preferences
5632 \end_layout
5633
5634 \end_inset
5635
5636  file, for each process.
5637 \end_layout
5638
5639 \begin_layout Standard
5640 If you are developing a client program, you might find it useful to enable
5641  debugging information from the \SpecialChar LyX
5642  server.
5643  Do this by starting \SpecialChar LyX
5644  as 
5645 \begin_inset Flex Code
5646 status collapsed
5647
5648 \begin_layout Plain Layout
5649 lyx -dbg lyxserver
5650 \end_layout
5651
5652 \end_inset
5653
5654 .
5655 \end_layout
5656
5657 \begin_layout Standard
5658 You can find a complete example client written in C++ in the source distribution
5659  as 
5660 \begin_inset Flex Code
5661 status collapsed
5662
5663 \begin_layout Plain Layout
5664 development/lyxserver/server_monitor.cpp
5665 \end_layout
5666
5667 \end_inset
5668
5669 .
5670 \end_layout
5671
5672 \begin_layout Standard
5673 Another useful tool is the command-line based client found in 
5674 \begin_inset Flex Code
5675 status collapsed
5676
5677 \begin_layout Plain Layout
5678 src/client/lyxclient
5679 \end_layout
5680
5681 \end_inset
5682
5683 .
5684 \end_layout
5685
5686 \begin_layout Section
5687 Normal communication
5688 \end_layout
5689
5690 \begin_layout Standard
5691 To issue a \SpecialChar LyX
5692  call, the client writes a line of ASCII text into the input
5693  pipe.
5694  This line has the following format:
5695 \end_layout
5696
5697 \begin_layout Quote
5698 LYXCMD:
5699 \emph on
5700 clientname
5701 \emph default
5702 :
5703 \emph on
5704 function
5705 \emph default
5706 :
5707 \emph on
5708 argument
5709 \end_layout
5710
5711 \begin_layout Description
5712 clientname is a name that the client can choose arbitrarily.
5713  Its only use is that \SpecialChar LyX
5714  will echo it if it sends an answer—so a client can
5715  dispatch results from different requesters.
5716 \end_layout
5717
5718 \begin_layout Description
5719 function is the function you want \SpecialChar LyX
5720  to perform.
5721  It is the same as the commands you'd use in the minibuffer.
5722 \end_layout
5723
5724 \begin_layout Description
5725 argument is an optional argument which is meaningful only to some functions
5726  (for instance, the 
5727 \begin_inset Quotes eld
5728 \end_inset
5729
5730 self-insert
5731 \begin_inset Quotes erd
5732 \end_inset
5733
5734  LFUN will insert the argument as text at the cursor position).
5735 \end_layout
5736
5737 \begin_layout Standard
5738 The answer from \SpecialChar LyX
5739  will arrive in the output pipe and be of the form
5740 \end_layout
5741
5742 \begin_layout Quote
5743 INFO:
5744 \emph on
5745 clientname
5746 \emph default
5747 :
5748 \emph on
5749 function
5750 \emph default
5751 :
5752 \emph on
5753 data
5754 \end_layout
5755
5756 \begin_layout Standard
5757 where 
5758 \emph on
5759 clientname
5760 \emph default
5761  and 
5762 \emph on
5763 function
5764 \emph default
5765  are just echoed from the command request, while 
5766 \emph on
5767 data
5768 \emph default
5769  is more or less useful information filled according to how the command
5770  execution worked out.
5771  Some commands, such as 
5772 \begin_inset Quotes eld
5773 \end_inset
5774
5775 font-state
5776 \begin_inset Quotes erd
5777 \end_inset
5778
5779 , will return information about the internal state of \SpecialChar LyX
5780 , while other will
5781  return an empty data-response.
5782  This means that the command execution went fine.
5783 \end_layout
5784
5785 \begin_layout Standard
5786 In case of errors, the response from \SpecialChar LyX
5787  will have this form
5788 \end_layout
5789
5790 \begin_layout Quote
5791 ERROR:
5792 \emph on
5793 clientname
5794 \emph default
5795 :
5796 \emph on
5797 function
5798 \emph default
5799 :
5800 \emph on
5801 error message
5802 \end_layout
5803
5804 \begin_layout Standard
5805 where the 
5806 \emph on
5807 error message
5808 \emph default
5809  should contain an explanation of why the command failed.
5810 \end_layout
5811
5812 \begin_layout Standard
5813 Examples:
5814 \end_layout
5815
5816 \begin_layout LyX-Code
5817 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
5818 \begin_inset Newline newline
5819 \end_inset
5820
5821 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
5822 \begin_inset Newline newline
5823 \end_inset
5824
5825 read a <~/.lyxpipe.out
5826 \begin_inset Newline newline
5827 \end_inset
5828
5829 echo $a
5830 \end_layout
5831
5832 \begin_layout Subsection
5833 AppleScript (Mac OS X)
5834 \end_layout
5835
5836 \begin_layout Standard
5837 Since \SpecialChar LyX
5838  2.1, \SpecialChar LyX
5839  supports basic interactions with AppleScript for normal communicatio
5840 n through the command run.
5841  This command takes a direct argument (the 
5842 \series bold
5843 function
5844 \series default
5845  to perform) and an optional argument.
5846  It either returns the output of the function or triggers an error with
5847  the error message and code.
5848 \end_layout
5849
5850 \begin_layout Standard
5851 Example:
5852 \end_layout
5853
5854 \begin_layout LyX-Code
5855 tell application "\SpecialChar LyX
5856 "
5857 \end_layout
5858
5859 \begin_layout LyX-Code
5860   try
5861 \end_layout
5862
5863 \begin_layout LyX-Code
5864     -- Stores the current file name into f
5865 \end_layout
5866
5867 \begin_layout LyX-Code
5868     set f to (run "server-get-filename" with argument "")
5869 \end_layout
5870
5871 \begin_layout LyX-Code
5872     on error the error_message number the error_number
5873 \end_layout
5874
5875 \begin_layout LyX-Code
5876       display dialog "Error: " & the error_number & ".
5877  " ¬
5878 \end_layout
5879
5880 \begin_layout LyX-Code
5881               & the error_message buttons {"OK"} default button 1
5882 \end_layout
5883
5884 \begin_layout LyX-Code
5885   end try
5886 \end_layout
5887
5888 \begin_layout LyX-Code
5889 end tell
5890 \end_layout
5891
5892 \begin_layout Section
5893 Notification
5894 \end_layout
5895
5896 \begin_layout Standard
5897 \SpecialChar LyX
5898  can notify clients of events going on asynchronously.
5899  Currently it will only do this if the user binds a key sequence with the
5900  function 
5901 \begin_inset Quotes eld
5902 \end_inset
5903
5904 notify
5905 \begin_inset Quotes erd
5906 \end_inset
5907
5908 .
5909  The format of the string \SpecialChar LyX
5910  sends is as follows:
5911 \end_layout
5912
5913 \begin_layout Quote
5914 \begin_inset Flex Code
5915 status collapsed
5916
5917 \begin_layout Plain Layout
5918 NOTIFY:
5919 \end_layout
5920
5921 \end_inset
5922
5923
5924 \emph on
5925 key-sequence
5926 \end_layout
5927
5928 \begin_layout Standard
5929 where 
5930 \emph on
5931 key-sequence
5932 \emph default
5933  is the printed representation of the key sequence that was actually typed
5934  by the user.
5935 \end_layout
5936
5937 \begin_layout Standard
5938 This mechanism can be used to extend \SpecialChar LyX
5939 's command set and implement macros.
5940  Bind some key sequence to 
5941 \begin_inset Quotes eld
5942 \end_inset
5943
5944 notify
5945 \begin_inset Quotes erd
5946 \end_inset
5947
5948 .
5949  Then start a client that listens on the output pipe, dispatches the command
5950  according to the sequence, and starts a function that may use \SpecialChar LyX
5951  calls and
5952  \SpecialChar LyX
5953  requests to issue a command or a series of commands to \SpecialChar LyX
5954 .
5955 \end_layout
5956
5957 \begin_layout Section
5958 The simple \SpecialChar LyX
5959  Server Protocol
5960 \end_layout
5961
5962 \begin_layout Standard
5963 \SpecialChar LyX
5964  implements a simple protocol that can be used for session management.
5965  All messages are of the form
5966 \end_layout
5967
5968 \begin_layout Quote
5969 LYXSRV:
5970 \emph on
5971 clientname
5972 \emph default
5973 :
5974 \emph on
5975 protocol message
5976 \end_layout
5977
5978 \begin_layout Standard
5979 where 
5980 \emph on
5981 protocol message
5982 \emph default
5983  can be 
5984 \begin_inset Quotes eld
5985 \end_inset
5986
5987 hello
5988 \begin_inset Quotes erd
5989 \end_inset
5990
5991  or 
5992 \begin_inset Quotes eld
5993 \end_inset
5994
5995 bye
5996 \begin_inset Quotes erd
5997 \end_inset
5998
5999 .
6000  If 
6001 \begin_inset Quotes eld
6002 \end_inset
6003
6004 hello
6005 \begin_inset Quotes erd
6006 \end_inset
6007
6008  is received from a client, \SpecialChar LyX
6009  will report back to inform the client that
6010  it's listening to it's messages, while 
6011 \begin_inset Quotes eld
6012 \end_inset
6013
6014 bye
6015 \begin_inset Quotes erd
6016 \end_inset
6017
6018  sent from \SpecialChar LyX
6019  will inform clients that \SpecialChar LyX
6020  is closing.
6021 \end_layout
6022
6023 \begin_layout Section
6024 Reverse DVI/PDF search
6025 \end_layout
6026
6027 \begin_layout Standard
6028 Some DVI/PDF viewers
6029 \begin_inset Foot
6030 status collapsed
6031
6032 \begin_layout Plain Layout
6033 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6034  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6035 \end_layout
6036
6037 \end_inset
6038
6039  provide 
6040 \emph on
6041 reverse search
6042 \emph default
6043  facility (also called 
6044 \emph on
6045 inverse search
6046 \emph default
6047 ).
6048  This means that you can tell \SpecialChar LyX
6049  to put the cursor to a specific line in the
6050  document by clicking at the respective position in the DVI/PDF output.
6051  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6052 .
6053  This is done via the \SpecialChar LyX
6054  server either by using the named pipe (
6055 \emph on
6056 lyxpipe
6057 \emph default
6058 ), or the UNIX domain socket (
6059 \emph on
6060 lyxsocket
6061 \emph default
6062 ) that \SpecialChar LyX
6063  creates in its temporary directory (this is the way the 
6064 \begin_inset Flex Code
6065 status collapsed
6066
6067 \begin_layout Plain Layout
6068 lyxclient
6069 \end_layout
6070
6071 \end_inset
6072
6073  program communicates with \SpecialChar LyX
6074 ).
6075  In some cases, you need a helper script that mediates between the viewer
6076  and \SpecialChar LyX
6077 , in others, the viewer can communicate with \SpecialChar LyX
6078  directly.
6079  This depends on the selected viewer and on your operating system.
6080  The same applies to the way viewers need to be configured and the way the
6081  reverse search is actually performed.
6082  In what follows, we will thus describe how to setup reverse search for
6083  specific viewers.
6084  Before we turn to this, though, we will explain what needs to be done generally
6085  to enable reverse search in the DVI/PDF output.
6086 \end_layout
6087
6088 \begin_layout Subsection
6089 Automatic setup
6090 \begin_inset CommandInset label
6091 LatexCommand label
6092 name "subsec:rev-search"
6093
6094 \end_inset
6095
6096
6097 \end_layout
6098
6099 \begin_layout Standard
6100 In most cases \SpecialChar LyX
6101  will do the work for you by enabling the option 
6102 \begin_inset Flex Noun
6103 status collapsed
6104
6105 \begin_layout Plain Layout
6106 Synchronize with Output
6107 \end_layout
6108
6109 \end_inset
6110
6111  in the menu 
6112 \begin_inset Flex Noun
6113 status collapsed
6114
6115 \begin_layout Plain Layout
6116 Document\SpecialChar menuseparator
6117 Settings\SpecialChar menuseparator
6118 Output
6119 \end_layout
6120
6121 \end_inset
6122
6123 .
6124  In such a case \SpecialChar LyX
6125  will automatically insert the necessary Sync\SpecialChar TeX
6126  macro (for
6127  PDF) or load the srcltx package (for DVI) respectively.
6128  This option can be easily reached also on 
6129 \begin_inset Flex Code
6130 status collapsed
6131
6132 \begin_layout Plain Layout
6133 View/Update
6134 \end_layout
6135
6136 \end_inset
6137
6138  Toolbar.
6139 \end_layout
6140
6141 \begin_layout Standard
6142 If you need a different setting, you can select or input a custom macro
6143  from the drop down box just below 
6144 \begin_inset Flex Noun
6145 status collapsed
6146
6147 \begin_layout Plain Layout
6148 Document\SpecialChar menuseparator
6149 Settings\SpecialChar menuseparator
6150 Output\SpecialChar menuseparator
6151 Synchronize with Output
6152 \end_layout
6153
6154 \end_inset
6155
6156 .
6157 \end_layout
6158
6159 \begin_layout Standard
6160 Note that the method 
6161 \begin_inset Flex Code
6162 status collapsed
6163
6164 \begin_layout Plain Layout
6165
6166 \backslash
6167 synctex=1
6168 \end_layout
6169
6170 \end_inset
6171
6172  enables gzip compression.
6173  If your viewer does not support it, you should instead use 
6174 \begin_inset Flex Code
6175 status collapsed
6176
6177 \begin_layout Plain Layout
6178
6179 \backslash
6180 synctex=-1
6181 \end_layout
6182
6183 \end_inset
6184
6185 .
6186 \end_layout
6187
6188 \begin_layout Standard
6189 Please also note that including the 
6190 \begin_inset Flex Code
6191 status collapsed
6192
6193 \begin_layout Plain Layout
6194 srcltx
6195 \end_layout
6196
6197 \end_inset
6198
6199  package or 
6200 \begin_inset Flex Code
6201 status collapsed
6202
6203 \begin_layout Plain Layout
6204 src-specials
6205 \end_layout
6206
6207 \end_inset
6208
6209  sometimes has an undesired impact on the typesetting.
6210  Thus, you should switch output synchronization off for the final typesetting
6211  if you use the 
6212 \begin_inset Flex Code
6213 status collapsed
6214
6215 \begin_layout Plain Layout
6216 srcltx
6217 \end_layout
6218
6219 \end_inset
6220
6221  package or 
6222 \begin_inset Flex Code
6223 status collapsed
6224
6225 \begin_layout Plain Layout
6226 src-specials
6227 \end_layout
6228
6229 \end_inset
6230
6231 .
6232  
6233 \end_layout
6234
6235 \begin_layout Standard
6236 In case you need some more special settings that are not covered by the
6237  automatic settings, read the next section about how to set up output synchroniz
6238 ation manually.
6239  If the automatic setup suits your needs, you can readily jump to section
6240 \begin_inset space ~
6241 \end_inset
6242
6243
6244 \begin_inset CommandInset ref
6245 LatexCommand ref
6246 reference "subsec:configuring-viewers"
6247
6248 \end_inset
6249
6250 , where the necessary configuration steps in your viewer – needed both with
6251  the automatic and the manual setup – are described.
6252 \end_layout
6253
6254 \begin_layout Subsection
6255 Manual setup
6256 \end_layout
6257
6258 \begin_layout Standard
6259 \SpecialChar LaTeX
6260  provides several different methods for reverse search.
6261  Some are built-in in the 
6262 \begin_inset Flex Code
6263 status collapsed
6264
6265 \begin_layout Plain Layout
6266 latex/pdflatex
6267 \end_layout
6268
6269 \end_inset
6270
6271  program, some are provided by external packages.
6272  Your choice depends on whether your \SpecialChar LaTeX
6273  distribution already provides a given
6274  method (the built-in methods are rather new) and whether your viewer can
6275  cope with it.
6276  The available methods are described in the following.
6277 \end_layout
6278
6279 \begin_layout Subsubsection*
6280 Built-in DVI-search via src-specials (DVI only) 
6281 \end_layout
6282
6283 \begin_layout Standard
6284 This method provides the DVI file with the necessary information for reverse
6285  search.
6286  It is available in \SpecialChar LaTeX
6287  since quite some time (any somewhat recent \SpecialChar LaTeX
6288  distribution
6289  should include it), and it works reliably.
6290  To enable it, change the 
6291 \begin_inset Flex Noun
6292 status collapsed
6293
6294 \begin_layout Plain Layout
6295 La
6296 \family sans
6297 TeX
6298 \family default
6299  (plain)->DVI
6300 \end_layout
6301
6302 \end_inset
6303
6304  or 
6305 \begin_inset Flex Noun
6306 status collapsed
6307
6308 \begin_layout Plain Layout
6309 La
6310 \family sans
6311 TeX
6312 \family default
6313  (plain)->DraftDVI
6314 \end_layout
6315
6316 \end_inset
6317
6318  converter in 
6319 \begin_inset Flex Noun
6320 status collapsed
6321
6322 \begin_layout Plain Layout
6323 Preferences\SpecialChar menuseparator
6324 File Handling\SpecialChar menuseparator
6325 Converters
6326 \end_layout
6327
6328 \end_inset
6329
6330  to 
6331 \begin_inset Flex Code
6332 status collapsed
6333
6334 \begin_layout Plain Layout
6335 latex -src-specials $$i
6336 \end_layout
6337
6338 \end_inset
6339
6340 .
6341  If this doesn't work, check if your \SpecialChar TeX
6342  engine needs different options (the
6343  syntax might differ in some distributions).
6344 \end_layout
6345
6346 \begin_layout Subsubsection*
6347 External Packages (PDFSync and scrltx) 
6348 \end_layout
6349
6350 \begin_layout Standard
6351 The packages 
6352 \emph on
6353 pdfsync
6354 \emph default
6355  and 
6356 \emph on
6357 scrltx
6358 \emph default
6359  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6360  respectively.
6361  In order to enable it, load the packages in the \SpecialChar LyX
6362  preamble: 
6363 \end_layout
6364
6365 \begin_layout Itemize
6366 \begin_inset Flex Code
6367 status collapsed
6368
6369 \begin_layout Plain Layout
6370
6371 \backslash
6372 usepackage{pdfsync}
6373 \end_layout
6374
6375 \end_inset
6376
6377  for reverse PDF search,
6378 \end_layout
6379
6380 \begin_layout Itemize
6381 \begin_inset Flex Code
6382 status collapsed
6383
6384 \begin_layout Plain Layout
6385
6386 \backslash
6387 usepackage[active]{srcltx}
6388 \end_layout
6389
6390 \end_inset
6391
6392  for reverse DVI search.
6393 \end_layout
6394
6395 \begin_layout Standard
6396 If you want to be able to perform both DVI and PDF reverse searches, you
6397  can also insert in the preamble the following lines
6398 \end_layout
6399
6400 \begin_layout LyX-Code
6401
6402 \backslash
6403 usepackage{ifpdf}
6404 \begin_inset Newline newline
6405 \end_inset
6406
6407
6408 \backslash
6409 ifpdf
6410 \begin_inset Newline newline
6411 \end_inset
6412
6413   
6414 \backslash
6415 usepackage{pdfsync}
6416 \begin_inset Newline newline
6417 \end_inset
6418
6419
6420 \backslash
6421 else
6422 \begin_inset Newline newline
6423 \end_inset
6424
6425   
6426 \backslash
6427 usepackage[active]{srcltx}
6428 \begin_inset Newline newline
6429 \end_inset
6430
6431
6432 \backslash
6433 fi
6434 \end_layout
6435
6436 \begin_layout Standard
6437 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6438  right package will be used.
6439 \end_layout
6440
6441 \begin_layout Standard
6442 Note that PDFSync might affect the output layout of your document.
6443  It is therefore advised to disable PDFsync for final documents.
6444 \end_layout
6445
6446 \begin_layout Subsubsection*
6447 Built-in reverse search via Sync\SpecialChar TeX
6448  (DVI and PDF) 
6449 \end_layout
6450
6451 \begin_layout Standard
6452 Recent versions of 
6453 \begin_inset Flex Code
6454 status collapsed
6455
6456 \begin_layout Plain Layout
6457 (pdf)latex
6458 \end_layout
6459
6460 \end_inset
6461
6462  have built-in support for both PDF and DVI reverse search.
6463  This so-called 
6464 \emph on
6465 Sync\SpecialChar TeX
6466
6467 \emph default
6468  facility is basically the result of the integration of the PDFSync package
6469  to the pdftex program and its merge with the 
6470 \emph on
6471 scr-specials
6472 \emph default
6473  approach.
6474  You need at least \SpecialChar TeX
6475 Live 2008 or a recent Mik\SpecialChar TeX
6476  distribution in order to use
6477  it.
6478 \begin_inset Foot
6479 status collapsed
6480
6481 \begin_layout Plain Layout
6482 For some reason, Mik\SpecialChar TeX
6483  does not understand/obey the command \SpecialChar LyX
6484  inserts into
6485  the preamble when you check the "Enable Forward/Reverse Search" button
6486  in the toolbar and does not generate the necessary info.
6487 \end_layout
6488
6489 \begin_layout Plain Layout
6490 The generation of the required info can be forced by changing the converter
6491  "\SpecialChar LaTeX
6492  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
6493  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
6494  the -synctex=1 switch).
6495 \end_layout
6496
6497 \end_inset
6498
6499  Also note that only a few PDF viewers (Okular and Qpdfview on Unix, Skim
6500  on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
6501  support.
6502 \end_layout
6503
6504 \begin_layout Standard
6505 To enable Sync\SpecialChar TeX
6506  for DVI output, change the 
6507 \begin_inset Flex Noun
6508 status collapsed
6509
6510 \begin_layout Plain Layout
6511 La
6512 \family sans
6513 TeX
6514 \family default
6515  (plain) -> DVI
6516 \end_layout
6517
6518 \end_inset
6519
6520  or 
6521 \begin_inset Flex Noun
6522 status collapsed
6523
6524 \begin_layout Plain Layout
6525 La
6526 \family sans
6527 TeX
6528 \family default
6529  (plain) -> DraftDVI
6530 \end_layout
6531
6532 \end_inset
6533
6534  converter in 
6535 \begin_inset Flex Noun
6536 status collapsed
6537
6538 \begin_layout Plain Layout
6539 Preferences\SpecialChar menuseparator
6540 File Handling\SpecialChar menuseparator
6541 Converters
6542 \end_layout
6543
6544 \end_inset
6545
6546  to 
6547 \begin_inset Flex Code
6548 status collapsed
6549
6550 \begin_layout Plain Layout
6551 latex -synctex=1 $$i
6552 \end_layout
6553
6554 \end_inset
6555
6556 , and for PDF output, change the 
6557 \begin_inset Flex Noun
6558 status collapsed
6559
6560 \begin_layout Plain Layout
6561 La
6562 \family sans
6563 TeX
6564 \family default
6565  (pdflatex) -> PDF (pdflatex)
6566 \end_layout
6567
6568 \end_inset
6569
6570  or converter to 
6571 \begin_inset Flex Code
6572 status collapsed
6573
6574 \begin_layout Plain Layout
6575 pdflatex -synctex=1 $$i
6576 \end_layout
6577
6578 \end_inset
6579
6580 .
6581  Check the documentation of your viewer whether the viewer needs to be configure
6582 d for the use with Sync\SpecialChar TeX
6583 .
6584 \begin_inset Foot
6585 status collapsed
6586
6587 \begin_layout Plain Layout
6588 Note that the option 
6589 \begin_inset Flex Code
6590 status collapsed
6591
6592 \begin_layout Plain Layout
6593 -synctex=1
6594 \end_layout
6595
6596 \end_inset
6597
6598  option enables gzip compression.
6599  If your viewer does not support it, you should instead use 
6600 \begin_inset Flex Code
6601 status collapsed
6602
6603 \begin_layout Plain Layout
6604 -synctex=-1
6605 \end_layout
6606
6607 \end_inset
6608
6609 .
6610 \end_layout
6611
6612 \end_inset
6613
6614
6615 \end_layout
6616
6617 \begin_layout Subsection
6618 Configuring and using specific viewers
6619 \begin_inset CommandInset label
6620 LatexCommand label
6621 name "subsec:configuring-viewers"
6622
6623 \end_inset
6624
6625
6626 \end_layout
6627
6628 \begin_layout Subsubsection*
6629 Xdvi (all platforms)
6630 \end_layout
6631
6632 \begin_layout Standard
6633 If you use 
6634 \begin_inset Flex Code
6635 status collapsed
6636
6637 \begin_layout Plain Layout
6638 xdvi
6639 \end_layout
6640
6641 \end_inset
6642
6643 , you don't need to do anything else for performing a reverse DVI search,
6644  as \SpecialChar LyX
6645  already provides the necessary hooks for automatically using the 
6646 \begin_inset Flex Code
6647 status collapsed
6648
6649 \begin_layout Plain Layout
6650 lyxclient
6651 \end_layout
6652
6653 \end_inset
6654
6655  program.
6656  Just setup your document as described above (reverse search is triggered
6657  by Ctrl-click or Alt-click on Mac OSX, respectively).
6658 \end_layout
6659
6660 \begin_layout Standard
6661 However, if for whatever reason you want to use the named pipe instead of
6662  the socket for communicating with \SpecialChar LyX
6663 , simply change the DVI viewer in 
6664 \begin_inset Flex Noun
6665 status collapsed
6666
6667 \begin_layout Plain Layout
6668 Preferences\SpecialChar menuseparator
6669 File Handling\SpecialChar menuseparator
6670 File formats
6671 \end_layout
6672
6673 \end_inset
6674
6675  to
6676 \begin_inset Foot
6677 status collapsed
6678
6679 \begin_layout Plain Layout
6680 On Mac OSX you have to use 
6681 \begin_inset Flex Code
6682 status collapsed
6683
6684 \begin_layout Plain Layout
6685 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
6686 \end_layout
6687
6688 \end_inset
6689
6690
6691 \end_layout
6692
6693 \end_inset
6694
6695  
6696 \begin_inset Flex Code
6697 status collapsed
6698
6699 \begin_layout Plain Layout
6700 xdvi -editor "lyxeditor.sh %f %l"
6701 \end_layout
6702
6703 \end_inset
6704
6705 , where 
6706 \begin_inset Flex Code
6707 status collapsed
6708
6709 \begin_layout Plain Layout
6710 lyxeditor.sh
6711 \end_layout
6712
6713 \end_inset
6714
6715  is a suitable script.
6716  For example, a minimal shell script is the following one:
6717 \end_layout
6718
6719 \begin_layout LyX-Code
6720 #!/bin/sh
6721 \begin_inset Newline newline
6722 \end_inset
6723
6724 LYXPIPE="/path/to/lyxpipe"
6725 \begin_inset Newline newline
6726 \end_inset
6727
6728 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6729 \begin_inset Newline newline
6730 \end_inset
6731
6732 echo "$COMMAND" > "${LYXPIPE}".in || exit
6733 \begin_inset Newline newline
6734 \end_inset
6735
6736 read TMP < "${LYXPIPE}".out || exit
6737 \end_layout
6738
6739 \begin_layout Standard
6740 where 
6741 \begin_inset Flex Code
6742 status collapsed
6743
6744 \begin_layout Plain Layout
6745 /path/to/lyxpipe
6746 \end_layout
6747
6748 \end_inset
6749
6750  is the Ly
6751 \begin_inset ERT
6752 status collapsed
6753
6754 \begin_layout Plain Layout
6755
6756 {}
6757 \end_layout
6758
6759 \end_inset
6760
6761 XServer pipe path specified in 
6762 \begin_inset Flex Noun
6763 status collapsed
6764
6765 \begin_layout Plain Layout
6766 Preferences\SpecialChar menuseparator
6767 Paths
6768 \end_layout
6769
6770 \end_inset
6771
6772 .
6773 \begin_inset Foot
6774 status collapsed
6775
6776 \begin_layout Plain Layout
6777 In the 
6778 \begin_inset Flex Code
6779 status collapsed
6780
6781 \begin_layout Plain Layout
6782 development/tools
6783 \end_layout
6784
6785 \end_inset
6786
6787  folder of a source distribution you can find a 
6788 \begin_inset Flex Code
6789 status collapsed
6790
6791 \begin_layout Plain Layout
6792 lyxeditor
6793 \end_layout
6794
6795 \end_inset
6796
6797  script which is able to locate the 
6798 \emph on
6799 lyxpipe
6800 \emph default
6801  based on your preferences.
6802 \end_layout
6803
6804 \end_inset
6805
6806
6807 \end_layout
6808
6809 \begin_layout Subsubsection*
6810 MacDviX (Mac OSX)
6811 \end_layout
6812
6813 \begin_layout Standard
6814 At the end of 
6815 \begin_inset Flex Code
6816 status collapsed
6817
6818 \begin_layout Plain Layout
6819 /Applications/MacDviX_Folder/calleditor.script
6820 \end_layout
6821
6822 \end_inset
6823
6824 , add the following lines:
6825 \end_layout
6826
6827 \begin_layout LyX-Code
6828 /Applications/Ly
6829 \begin_inset ERT
6830 status collapsed
6831
6832 \begin_layout Plain Layout
6833
6834 {}
6835 \end_layout
6836
6837 \end_inset
6838
6839 X.app/Contents/MacOS/lyxeditor "$2" $1
6840 \begin_inset Newline newline
6841 \end_inset
6842
6843 exit 1
6844 \end_layout
6845
6846 \begin_layout Standard
6847 Modify the lines accordingly if you install \SpecialChar LyX
6848  somewhere else than in the
6849  Applications folder.
6850 \end_layout
6851
6852 \begin_layout Standard
6853 Reverse search is triggered by Alt-click (OPTION-click).
6854 \end_layout
6855
6856 \begin_layout Subsubsection*
6857 Skim (Mac OSX)
6858 \end_layout
6859
6860 \begin_layout Standard
6861 Enter 
6862 \begin_inset Flex Code
6863 status collapsed
6864
6865 \begin_layout Plain Layout
6866 open -a Skim.app $$i
6867 \end_layout
6868
6869 \end_inset
6870
6871  to the viewer setting in 
6872 \begin_inset Flex Noun
6873 status collapsed
6874
6875 \begin_layout Plain Layout
6876 Preferences\SpecialChar menuseparator
6877 File Handling\SpecialChar menuseparator
6878 File formats\SpecialChar menuseparator
6879 PDF (pdflatex)
6880 \end_layout
6881
6882 \end_inset
6883
6884 , and then in 
6885 \begin_inset Flex Noun
6886 status collapsed
6887
6888 \begin_layout Plain Layout
6889 Skim\SpecialChar menuseparator
6890 Preferences\SpecialChar menuseparator
6891 Sync
6892 \end_layout
6893
6894 \end_inset
6895
6896  choose 
6897 \begin_inset Flex Noun
6898 status collapsed
6899
6900 \begin_layout Plain Layout
6901 custom
6902 \end_layout
6903
6904 \end_inset
6905
6906  preset and enter command 
6907 \begin_inset Flex Noun
6908 status collapsed
6909
6910 \begin_layout Plain Layout
6911 /Applications/\SpecialChar LyX
6912 .app/Contents/MacOS/lyxeditor
6913 \end_layout
6914
6915 \end_inset
6916
6917 .
6918 \end_layout
6919
6920 \begin_layout Standard
6921 Reverse search is triggered by COMMAND-SHIFT-click
6922 \end_layout
6923
6924 \begin_layout Subsubsection*
6925 Okular (KDE)
6926 \end_layout
6927
6928 \begin_layout Standard
6929 Go to 
6930 \begin_inset Flex Noun
6931 status collapsed
6932
6933 \begin_layout Plain Layout
6934 Settings\SpecialChar menuseparator
6935 Configure Okular\SpecialChar menuseparator
6936 Editor
6937 \end_layout
6938
6939 \end_inset
6940
6941 , select 
6942 \begin_inset Quotes eld
6943 \end_inset
6944
6945 Custom Text Editor
6946 \begin_inset Quotes erd
6947 \end_inset
6948
6949  and add the command 
6950 \begin_inset Flex Code
6951 status collapsed
6952
6953 \begin_layout Plain Layout
6954 lyxclient -g %f %l
6955 \end_layout
6956
6957 \end_inset
6958
6959 .
6960 \end_layout
6961
6962 \begin_layout Standard
6963 Reverse search is triggered by SHIFT-click.
6964 \end_layout
6965
6966 \begin_layout Subsubsection*
6967 Qpdfview (Unix)
6968 \end_layout
6969
6970 \begin_layout Standard
6971 Qpdfview supports Sync\SpecialChar TeX
6972  since version 0.3.5.
6973  Go to 
6974 \begin_inset Flex Noun
6975 status collapsed
6976
6977 \begin_layout Plain Layout
6978 Edit\SpecialChar menuseparator
6979 Settings\SpecialChar menuseparator
6980 Behavior
6981 \end_layout
6982
6983 \end_inset
6984
6985 , click on the input field of the 
6986 \begin_inset Quotes eld
6987 \end_inset
6988
6989 Source editor
6990 \begin_inset Quotes erd
6991 \end_inset
6992
6993  item and add the command 
6994 \begin_inset Flex Code
6995 status collapsed
6996
6997 \begin_layout Plain Layout
6998 lyxclient -g %1 %2
6999 \end_layout
7000
7001 \end_inset
7002
7003 .
7004 \end_layout
7005
7006 \begin_layout Standard
7007 Reverse search is triggered by double-click.
7008 \end_layout
7009
7010 \begin_layout Subsubsection*
7011 YAP (Windows)
7012 \end_layout
7013
7014 \begin_layout Standard
7015 Launch yap, choose its 
7016 \begin_inset Flex Noun
7017 status collapsed
7018
7019 \begin_layout Plain Layout
7020 View\SpecialChar menuseparator
7021 Options
7022 \end_layout
7023
7024 \end_inset
7025
7026  menu and select the 
7027 \begin_inset Quotes eld
7028 \end_inset
7029
7030 Inverse DVI Search
7031 \begin_inset Quotes erd
7032 \end_inset
7033
7034  tab.
7035  Click on the 
7036 \begin_inset Quotes eld
7037 \end_inset
7038
7039 New\SpecialChar ldots
7040
7041 \begin_inset Quotes erd
7042 \end_inset
7043
7044  button and, in the window that opens, enter 
7045 \begin_inset Quotes eld
7046 \end_inset
7047
7048 \SpecialChar LyX
7049  Editor
7050 \begin_inset Quotes erd
7051 \end_inset
7052
7053  (or any other name you like) in the 
7054 \begin_inset Quotes eld
7055 \end_inset
7056
7057 Name:
7058 \begin_inset Quotes erd
7059 \end_inset
7060
7061  field.
7062  Now click on the button labeled 
7063 \begin_inset Quotes eld
7064 \end_inset
7065
7066 \SpecialChar ldots
7067
7068 \begin_inset Quotes erd
7069 \end_inset
7070
7071  to open a file dialog and navigate to the directory containing the batch
7072  file 
7073 \begin_inset Flex Code
7074 status collapsed
7075
7076 \begin_layout Plain Layout
7077 lyxeditor.bat
7078 \end_layout
7079
7080 \end_inset
7081
7082  (see below).
7083  Select 
7084 \begin_inset Flex Code
7085 status collapsed
7086
7087 \begin_layout Plain Layout
7088 lyxeditor.bat
7089 \end_layout
7090
7091 \end_inset
7092
7093  and then specify the program arguments as 
7094 \begin_inset Flex Code
7095 status collapsed
7096
7097 \begin_layout Plain Layout
7098 %f %l
7099 \end_layout
7100
7101 \end_inset
7102
7103 .
7104  The 
7105 \begin_inset Flex Code
7106 status collapsed
7107
7108 \begin_layout Plain Layout
7109 lyxeditor.bat
7110 \end_layout
7111
7112 \end_inset
7113
7114  wrapper is used for communicating with \SpecialChar LyX
7115  through the 
7116 \emph on
7117 lyxpipe
7118 \emph default
7119  and is as follows:
7120 \end_layout
7121
7122 \begin_layout LyX-Code
7123 @echo off
7124 \begin_inset Newline newline
7125 \end_inset
7126
7127 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7128 \backslash
7129
7130 \backslash
7131 .
7132 \backslash
7133 pipe
7134 \backslash
7135 lyxpipe.in
7136 \begin_inset Newline newline
7137 \end_inset
7138
7139 type 
7140 \backslash
7141
7142 \backslash
7143 .
7144 \backslash
7145 pipe
7146 \backslash
7147 lyxpipe.out
7148 \end_layout
7149
7150 \begin_layout Standard
7151 Make sure that the \SpecialChar LyX
7152 Server pipe path you specified in \SpecialChar LyX
7153  is 
7154 \begin_inset Flex Code
7155 status collapsed
7156
7157 \begin_layout Plain Layout
7158
7159 \backslash
7160
7161 \backslash
7162 .
7163 \backslash
7164 pipe
7165 \backslash
7166 lyxpipe
7167 \end_layout
7168
7169 \end_inset
7170
7171 , otherwise change the 
7172 \begin_inset Flex Code
7173 status collapsed
7174
7175 \begin_layout Plain Layout
7176 lyxeditor.bat
7177 \end_layout
7178
7179 \end_inset
7180
7181  wrapper accordingly.
7182 \end_layout
7183
7184 \begin_layout Standard
7185 In yap, reverse search is triggered by double-click.
7186 \end_layout
7187
7188 \begin_layout Subsubsection*
7189 SumatraPDF (Windows)
7190 \end_layout
7191
7192 \begin_layout Standard
7193 In order to use SumatraPDF for inverse search, enter 
7194 \begin_inset Flex Code
7195 status collapsed
7196
7197 \begin_layout Plain Layout
7198 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
7199 \end_layout
7200
7201 \end_inset
7202
7203  in the viewer setting in 
7204 \begin_inset Flex Noun
7205 status collapsed
7206
7207 \begin_layout Plain Layout
7208 Preferences\SpecialChar menuseparator
7209 File Handling\SpecialChar menuseparator
7210 File formats\SpecialChar menuseparator
7211 PDF (pdflatex)
7212 \end_layout
7213
7214 \end_inset
7215
7216 , where 
7217 \begin_inset Flex Code
7218 status collapsed
7219
7220 \begin_layout Plain Layout
7221 lyxeditor.bat
7222 \end_layout
7223
7224 \end_inset
7225
7226  is the previous wrapper.
7227  If SumatraPDF.exe is not in your command PATH, use its full file name.
7228 \end_layout
7229
7230 \begin_layout Standard
7231 Reverse search is triggered by double-click.
7232 \end_layout
7233
7234 \begin_layout Subsubsection*
7235 YAP (Cygwin)
7236 \end_layout
7237
7238 \begin_layout Standard
7239 First of all, make sure that yap is your default DVI viewer in the Windows
7240  environment, then launch it, choose its 
7241 \begin_inset Flex Noun
7242 status collapsed
7243
7244 \begin_layout Plain Layout
7245 View\SpecialChar menuseparator
7246 Options
7247 \end_layout
7248
7249 \end_inset
7250
7251  menu and select the 
7252 \begin_inset Quotes eld
7253 \end_inset
7254
7255 Inverse DVI Search
7256 \begin_inset Quotes erd
7257 \end_inset
7258
7259  tab.
7260  Click on the 
7261 \begin_inset Quotes eld
7262 \end_inset
7263
7264 New\SpecialChar ldots
7265
7266 \begin_inset Quotes erd
7267 \end_inset
7268
7269  button and, in the window that opens, enter 
7270 \begin_inset Quotes eld
7271 \end_inset
7272
7273 \SpecialChar LyX
7274  Editor
7275 \begin_inset Quotes erd
7276 \end_inset
7277
7278  (or any other name you like) in the 
7279 \begin_inset Quotes eld
7280 \end_inset
7281
7282 Name:
7283 \begin_inset Quotes erd
7284 \end_inset
7285
7286  field.
7287  Now click on the button labeled 
7288 \begin_inset Quotes eld
7289 \end_inset
7290
7291 \SpecialChar ldots
7292
7293 \begin_inset Quotes erd
7294 \end_inset
7295
7296  to open a file dialog and navigate to the directory containing the 
7297 \begin_inset Flex Code
7298 status collapsed
7299
7300 \begin_layout Plain Layout
7301 lyxeditor.exe
7302 \end_layout
7303
7304 \end_inset
7305
7306  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7307  executable).
7308  Select 
7309 \begin_inset Flex Code
7310 status collapsed
7311
7312 \begin_layout Plain Layout
7313 lyxeditor.exe
7314 \end_layout
7315
7316 \end_inset
7317
7318  and then specify the program arguments as 
7319 \begin_inset Flex Code
7320 status collapsed
7321
7322 \begin_layout Plain Layout
7323 -g %f %l
7324 \end_layout
7325
7326 \end_inset
7327
7328 .
7329  In this way, you will be using the 
7330 \emph on
7331 lyxsocket
7332 \emph default
7333  for communicating with \SpecialChar LyX
7334 .
7335  If, for whatever reason, you want to use the 
7336 \emph on
7337 lyxpipe
7338 \emph default
7339 , omit the 
7340 \begin_inset Flex Code
7341 status collapsed
7342
7343 \begin_layout Plain Layout
7344 -g
7345 \end_layout
7346
7347 \end_inset
7348
7349  option and be sure to specify the \SpecialChar LyX
7350 Server pipe path in the \SpecialChar LyX
7351  preferences.
7352 \end_layout
7353
7354 \begin_layout Standard
7355 In yap, reverse search is triggered by double-click.
7356 \end_layout
7357
7358 \begin_layout Subsubsection*
7359 SumatraPDF (Cygwin)
7360 \end_layout
7361
7362 \begin_layout Standard
7363 In order to use SumatraPDF for inverse search, enter 
7364 \begin_inset Flex Code
7365 status collapsed
7366
7367 \begin_layout Plain Layout
7368 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7369 \end_layout
7370
7371 \end_inset
7372
7373  in the viewer setting in 
7374 \begin_inset Flex Noun
7375 status collapsed
7376
7377 \begin_layout Plain Layout
7378 Preferences\SpecialChar menuseparator
7379 File Handling\SpecialChar menuseparator
7380 File formats\SpecialChar menuseparator
7381 PDF (pdflatex)
7382 \end_layout
7383
7384 \end_inset
7385
7386 .
7387  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7388  The 
7389 \begin_inset Flex Code
7390 status collapsed
7391
7392 \begin_layout Plain Layout
7393 -g
7394 \end_layout
7395
7396 \end_inset
7397
7398  enables communication via the 
7399 \emph on
7400 lyxsocket
7401 \emph default
7402 .
7403  Again, omit the 
7404 \begin_inset Flex Code
7405 status collapsed
7406
7407 \begin_layout Plain Layout
7408 -g
7409 \end_layout
7410
7411 \end_inset
7412
7413  option if you want to use the 
7414 \emph on
7415 lyxpipe
7416 \emph default
7417 , and be sure to specify the \SpecialChar LyX
7418 Server pipe path in the \SpecialChar LyX
7419  preferences.
7420 \end_layout
7421
7422 \begin_layout Standard
7423 Reverse search is triggered by double-click.
7424 \end_layout
7425
7426 \begin_layout Section
7427 Forward search
7428 \end_layout
7429
7430 \begin_layout Standard
7431 Forward search is, as the name implies, in a sense the 
7432 \begin_inset Quotes eld
7433 \end_inset
7434
7435 opposite
7436 \begin_inset Quotes erd
7437 \end_inset
7438
7439  of reverse search.
7440  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7441 .
7442  If forward search is set up (as described in what follows), you can put
7443  the cursor anywhere in your \SpecialChar LyX
7444  document, and hit 
7445 \begin_inset Flex Noun
7446 status collapsed
7447
7448 \begin_layout Plain Layout
7449 Navigate\SpecialChar menuseparator
7450 Forward search
7451 \end_layout
7452
7453 \end_inset
7454
7455  (or select 
7456 \begin_inset Flex Noun
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460 Forward search
7461 \end_layout
7462
7463 \end_inset
7464
7465  in the context menu via right mouse click), and then the viewer will jump
7466  to that position as well.
7467  This implies, of course, that your viewer supports this function.
7468 \end_layout
7469
7470 \begin_layout Standard
7471 To make forward search possible, you first need to provide the generated
7472  output PDF/DVI file with additional information about the \SpecialChar TeX
7473  sources.
7474  This can be done via the methods described in the section 
7475 \begin_inset CommandInset ref
7476 LatexCommand ref
7477 reference "subsec:rev-search"
7478
7479 \end_inset
7480
7481 .
7482 \end_layout
7483
7484 \begin_layout Standard
7485 Additionally, you need to configure \SpecialChar LyX
7486  for using your viewers in 
7487 \begin_inset Flex Noun
7488 status collapsed
7489
7490 \begin_layout Plain Layout
7491 Tools\SpecialChar menuseparator
7492 Preferences\SpecialChar menuseparator
7493 Output\SpecialChar menuseparator
7494 General
7495 \end_layout
7496
7497 \end_inset
7498
7499 .
7500  We provide a range of tested configurations for some viewers, which you
7501  can select from the drop down list.
7502  If none of these configurations suits you, you have to find out and enter
7503  a suitable configuration yourself.
7504  The definition syntax uses the following placeholders:
7505 \end_layout
7506
7507 \begin_layout Itemize
7508 \noindent
7509 \begin_inset Flex Code
7510 status collapsed
7511
7512 \begin_layout Plain Layout
7513 $$n
7514 \end_layout
7515
7516 \end_inset
7517
7518 : row number
7519 \end_layout
7520
7521 \begin_layout Itemize
7522 \noindent
7523 \begin_inset Flex Code
7524 status collapsed
7525
7526 \begin_layout Plain Layout
7527 $$t
7528 \end_layout
7529
7530 \end_inset
7531
7532 : name of the (temporary) exported .tex file (without path)
7533 \end_layout
7534
7535 \begin_layout Itemize
7536 \noindent
7537 \begin_inset Flex Code
7538 status collapsed
7539
7540 \begin_layout Plain Layout
7541 $$f
7542 \end_layout
7543
7544 \end_inset
7545
7546 : name of the (temporary) exported .tex file (including path)
7547 \end_layout
7548
7549 \begin_layout Itemize
7550 \noindent
7551 \begin_inset Flex Code
7552 status collapsed
7553
7554 \begin_layout Plain Layout
7555 $$o
7556 \end_layout
7557
7558 \end_inset
7559
7560 : name of the exported output file (either dvi or pdf, depending on which
7561  one exists in the temporary directory)
7562 \end_layout
7563
7564 \begin_layout Standard
7565 Note that only some of the viewers provide full forward search functionality,
7566  among them yap, xdvi, okular
7567 \begin_inset Foot
7568 status collapsed
7569
7570 \begin_layout Plain Layout
7571 You might want to set 
7572 \begin_inset Flex Code
7573 status collapsed
7574
7575 \begin_layout Plain Layout
7576 okular –unique
7577 \end_layout
7578
7579 \end_inset
7580
7581  in 
7582 \begin_inset Flex Noun
7583 status collapsed
7584
7585 \begin_layout Plain Layout
7586 Tools\SpecialChar menuseparator
7587 Preferences\SpecialChar menuseparator
7588 File Handling\SpecialChar menuseparator
7589 File
7590 \begin_inset space ~
7591 \end_inset
7592
7593 Formats
7594 \end_layout
7595
7596 \end_inset
7597
7598
7599 \end_layout
7600
7601 \end_inset
7602
7603 , qpdfview and SumatraPDF
7604 \begin_inset Foot
7605 status collapsed
7606
7607 \begin_layout Plain Layout
7608 SumatraPDF can also use DDE commands through the external program CMCDDE
7609  — downloadable from 
7610 \begin_inset CommandInset href
7611 LatexCommand href
7612 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
7613
7614 \end_inset
7615
7616
7617 \end_layout
7618
7619 \end_inset
7620
7621 .
7622  While many of the widespread PDF viewers (most notably Adobe Reader) do
7623  not support forward search at all, some other viewers – e.
7624 \begin_inset space \thinspace{}
7625 \end_inset
7626
7627 g.
7628  evince and xpdf – allow at least to reload the document and jump to a specific
7629  page of the file, so you can at least navigate 
7630 \begin_inset Quotes eld
7631 \end_inset
7632
7633 near
7634 \begin_inset Quotes erd
7635 \end_inset
7636
7637 .
7638  This latter functionality is provided by an external call of synctex (see
7639  the predefined example configurations).
7640  
7641 \end_layout
7642
7643 \begin_layout Standard
7644 Forward search works both with DVI and PDF output.
7645  \SpecialChar LyX
7646  simply checks which preview format you have used before (i.
7647 \begin_inset space \thinspace{}
7648 \end_inset
7649
7650 e., which format is already there in the temporary directory) and chooses
7651  the appropriate configuration for the respective format.
7652 \end_layout
7653
7654 \begin_layout Chapter
7655 Special Document Classes
7656 \end_layout
7657
7658 \begin_layout Section
7659 A&A Paper
7660 \end_layout
7661
7662 \begin_layout Standard
7663 by 
7664 \noun on
7665 Peter Sütterlin
7666 \end_layout
7667
7668 \begin_layout Subsection
7669 Introduction
7670 \end_layout
7671
7672 \begin_layout Standard
7673 This section describes how \SpecialChar LyX
7674  can be used to write articles for submission
7675  to the scientific journal 
7676 \emph on
7677 Astronomy and Astrophysics
7678 \emph default
7679  (
7680 \begin_inset Flex URL
7681 status collapsed
7682
7683 \begin_layout Plain Layout
7684
7685 http://www.edpsciences.fr/aa/
7686 \end_layout
7687
7688 \end_inset
7689
7690 ) using Version 5.01 of the document class 
7691 \family typewriter
7692 aa.cls
7693 \family default
7694 .
7695  This package can be downloaded from the ftp site
7696 \end_layout
7697
7698 \begin_layout Standard
7699 \begin_inset VSpace medskip
7700 \end_inset
7701
7702
7703 \end_layout
7704
7705 \begin_layout Standard
7706 \align center
7707 \begin_inset Flex URL
7708 status collapsed
7709
7710 \begin_layout Plain Layout
7711
7712 ftp://ftp.edpsciences.org/pub/aa/readme.html
7713 \end_layout
7714
7715 \end_inset
7716
7717
7718 \end_layout
7719
7720 \begin_layout Standard
7721 \begin_inset VSpace medskip
7722 \end_inset
7723
7724
7725 \end_layout
7726
7727 \begin_layout Standard
7728 A manual comes together with that package, and this text is not meant to
7729  replace the original manual but is merely a short guide in how to realize
7730  the correct form of your paper.
7731  
7732 \end_layout
7733
7734 \begin_layout Standard
7735 Please note that the publisher of the journal was changed from Springer
7736  to EDP Sciences starting January 1, 2001.
7737  That change involved also some slight changes to the style files, namely
7738  the removal of the thesaurus command.
7739  The \SpecialChar LyX
7740  class aa supports the newest version of these style files, V 5.01.
7741  If you have an older version installed, please upgrade.
7742  For compatibility, the old (version 4) layout has been kept as 
7743 \family sans
7744 article (A&A V4)
7745 \family default
7746 .
7747  Please refer to the comments in 
7748 \family typewriter
7749 \SpecialChar LyX
7750 Dir/layouts/aapaper.layout
7751 \family default
7752 .
7753 \end_layout
7754
7755 \begin_layout Subsection
7756 Getting started
7757 \end_layout
7758
7759 \begin_layout Standard
7760 It is recommended you start from the example template distributed with \SpecialChar LyX
7761 .
7762  If you are not using a template, note the following settings:
7763 \end_layout
7764
7765 \begin_layout Itemize
7766 Select 
7767 \family sans
7768 article (A&A)
7769 \family default
7770  in the 
7771 \family sans
7772 Document\SpecialChar menuseparator
7773 Settings
7774 \family default
7775  dialog (OK, that one was obvious).
7776 \end_layout
7777
7778 \begin_layout Itemize
7779 Don't change the option 
7780 \family sans
7781 Page
7782 \begin_inset space ~
7783 \end_inset
7784
7785 style
7786 \family default
7787 : Leave it set to 
7788 \family sans
7789 default
7790 \family default
7791 .
7792  The whole layout is done by the macros, you shouldn't change anything.
7793 \end_layout
7794
7795 \begin_layout Subsection
7796 The header block
7797 \end_layout
7798
7799 \begin_layout Standard
7800 First thing to enter is the header information.
7801  It consists of seven entries, of which some are optional.
7802  They are
7803 \end_layout
7804
7805 \begin_layout Itemize
7806
7807 \family sans
7808 Title
7809 \family default
7810 : [required] 
7811 \end_layout
7812
7813 \begin_layout Itemize
7814
7815 \family sans
7816 Subtitle
7817 \family default
7818 : [optional] 
7819 \end_layout
7820
7821 \begin_layout Itemize
7822
7823 \family sans
7824 Author
7825 \family default
7826 : [required]
7827 \end_layout
7828
7829 \begin_layout Itemize
7830
7831 \family sans
7832 Address
7833 \family default
7834 : [required]
7835 \end_layout
7836
7837 \begin_layout Itemize
7838
7839 \family sans
7840 Offprints
7841 \family default
7842 : [optional] if more than one author: whom to contact for offprint requests.
7843 \end_layout
7844
7845 \begin_layout Itemize
7846
7847 \family sans
7848 Mail
7849 \family default
7850 : [optional] mail address for contacts.
7851 \end_layout
7852
7853 \begin_layout Itemize
7854
7855 \family sans
7856 Date
7857 \family default
7858 : [required].
7859  Suggested format is 
7860 \family typewriter
7861 Received: <date>; Accepted <date> 
7862 \end_layout
7863
7864 \begin_layout Standard
7865 There is no need to issue the 
7866 \family typewriter
7867
7868 \backslash
7869 maketitle
7870 \family default
7871  command, this is done automatically by \SpecialChar LyX
7872  when the header is finished.
7873  Although the order of the single header entries doesn't matter it is advised
7874  to keep the above sequence, just to get the best optics and meets the layout
7875  of the real document.
7876 \end_layout
7877
7878 \begin_layout Standard
7879 If you want to place footnotes in the header block, e.
7880 \begin_inset space \thinspace{}
7881 \end_inset
7882
7883 g.
7884 \begin_inset space \space{}
7885 \end_inset
7886
7887 to state your present address, just use the standard footnote via the menu
7888  
7889 \family sans
7890 Insert\SpecialChar menuseparator
7891 Footnote.
7892
7893 \family default
7894  \SpecialChar LyX
7895  will automagically use the term 
7896 \family typewriter
7897
7898 \backslash
7899 thanks{}
7900 \family default
7901  in that case.
7902 \end_layout
7903
7904 \begin_layout Standard
7905 In addition to these topics, the macros use three additional \SpecialChar LaTeX
7906  commands that
7907  have no counterpart in \SpecialChar LyX
7908 :
7909 \end_layout
7910
7911 \begin_layout Itemize
7912
7913 \family typewriter
7914
7915 \backslash
7916 and
7917 \family default
7918  to separate different names for more than one author and institute, respectivel
7919 y.
7920 \end_layout
7921
7922 \begin_layout Itemize
7923
7924 \family typewriter
7925
7926 \backslash
7927 inst{<nr>}
7928 \family default
7929 to mark corresponding author/institute pairs.
7930  The institutes are numbered sequentially as they appear in the 
7931 \family sans
7932 Address
7933 \family default
7934  field, so you have to put a marker to each author.
7935 \end_layout
7936
7937 \begin_layout Itemize
7938
7939 \family typewriter
7940
7941 \backslash
7942 email{address}
7943 \family default
7944  to supply an email address for fast contact.
7945 \end_layout
7946
7947 \begin_layout Standard
7948 In all cases, the appropriate command has to be entered in \SpecialChar LyX
7949  and marked as
7950  \SpecialChar LaTeX
7951  code.
7952  See the examples.
7953  
7954 \end_layout
7955
7956 \begin_layout Subsection
7957 The abstract
7958 \end_layout
7959
7960 \begin_layout Standard
7961 The abstract should immediately follow the header block.
7962  With version 5 the abstract environment was changed to a command, and there
7963  is now a resctriction to only one paragraph.
7964  In addition, it should contain an entry with the keywords.
7965  This is not yet implemented for \SpecialChar LyX
7966 , therefore you have to enter the \SpecialChar LaTeX
7967  command
7968  
7969 \family typewriter
7970
7971 \backslash
7972 keywords{}
7973 \family default
7974  by hand and mark it as \SpecialChar LaTeX
7975  code.
7976  Refer to the example paper.
7977 \end_layout
7978
7979 \begin_layout Subsection
7980 Supported environments
7981 \end_layout
7982
7983 \begin_layout Standard
7984 The A&A paper layout supports the following environments for structuring
7985  your text:
7986 \end_layout
7987
7988 \begin_layout Itemize
7989
7990 \family sans
7991 Standard
7992 \end_layout
7993
7994 \begin_layout Itemize
7995
7996 \family sans
7997 Section
7998 \end_layout
7999
8000 \begin_layout Itemize
8001
8002 \family sans
8003 Subsection
8004 \end_layout
8005
8006 \begin_layout Itemize
8007
8008 \family sans
8009 Subsubsection
8010 \end_layout
8011
8012 \begin_layout Itemize
8013
8014 \family sans
8015 Itemize
8016 \end_layout
8017
8018 \begin_layout Itemize
8019
8020 \family sans
8021 Enumerate
8022 \end_layout
8023
8024 \begin_layout Itemize
8025
8026 \family sans
8027 Description
8028 \end_layout
8029
8030 \begin_layout Itemize
8031
8032 \family sans
8033 Caption
8034 \end_layout
8035
8036 \begin_layout Itemize
8037
8038 \family sans
8039 Abstract
8040 \end_layout
8041
8042 \begin_layout Itemize
8043
8044 \family sans
8045 Acknowledgment
8046 \end_layout
8047
8048 \begin_layout Itemize
8049
8050 \family sans
8051 Bibliography
8052 \end_layout
8053
8054 \begin_layout Itemize
8055
8056 \family sans
8057 \SpecialChar LaTeX
8058
8059 \end_layout
8060
8061 \begin_layout Subsection
8062 Commands not supported by \SpecialChar LyX
8063
8064 \end_layout
8065
8066 \begin_layout Standard
8067 Some commands are not yet supported by the 
8068 \family sans
8069 paper (A&A)
8070 \family default
8071  layout for \SpecialChar LyX
8072 .
8073  Some have already been mentioned.
8074  For the sake of completeness, they are listed all together here:
8075 \end_layout
8076
8077 \begin_layout Itemize
8078
8079 \family typewriter
8080
8081 \backslash
8082 and
8083 \end_layout
8084
8085 \begin_layout Itemize
8086
8087 \family typewriter
8088
8089 \backslash
8090 email
8091 \end_layout
8092
8093 \begin_layout Itemize
8094
8095 \family typewriter
8096
8097 \backslash
8098 appendix
8099 \end_layout
8100
8101 \begin_layout Itemize
8102
8103 \family typewriter
8104
8105 \backslash
8106 authorrunning
8107 \end_layout
8108
8109 \begin_layout Itemize
8110
8111 \family typewriter
8112
8113 \backslash
8114 inst{}
8115 \end_layout
8116
8117 \begin_layout Itemize
8118
8119 \family typewriter
8120
8121 \backslash
8122 keywords{}
8123 \end_layout
8124
8125 \begin_layout Itemize
8126
8127 \family typewriter
8128
8129 \backslash
8130 object{}
8131 \end_layout
8132
8133 \begin_layout Itemize
8134
8135 \family typewriter
8136
8137 \backslash
8138 titlerunning{}
8139 \end_layout
8140
8141 \begin_layout Standard
8142 If you want to use any of these commands, you have to enter them yourself.
8143  
8144 \series bold
8145 Do not forget to mark them as \SpecialChar LaTeX
8146  code!
8147 \end_layout
8148
8149 \begin_layout Subsection
8150 Figure and Table Floats
8151 \end_layout
8152
8153 \begin_layout Standard
8154 \SpecialChar LyX
8155  provides support for the necessary float environments 
8156 \family sans
8157 figure, figure*, table
8158 \family default
8159  and 
8160 \family sans
8161 table*
8162 \family default
8163 , therefore we won't tell much about it here.
8164  Refer to the 
8165 \emph on
8166 User's
8167 \begin_inset space ~
8168 \end_inset
8169
8170 Guide
8171 \emph default
8172 .
8173  Just remember that tables should be left-aligned.
8174  For that, select the table and change the alignment in 
8175 \family sans
8176 Edit\SpecialChar menuseparator
8177 Paragraph
8178 \begin_inset space ~
8179 \end_inset
8180
8181 Settings.
8182 \end_layout
8183
8184 \begin_layout Standard
8185 There is only one special thing: the figures with caption besides the figure.
8186  To create such a figure, you have to do the following:
8187 \end_layout
8188
8189 \begin_layout Enumerate
8190 Create a wide figure float: 
8191 \family sans
8192 Insert\SpecialChar menuseparator
8193 Float\SpecialChar menuseparator
8194 Figure
8195 \family default
8196 , then right click in the figure and select 
8197 \family sans
8198 \bar under
8199 S
8200 \bar default
8201 pan
8202 \begin_inset space ~
8203 \end_inset
8204
8205 columns
8206 \family default
8207 .
8208 \end_layout
8209
8210 \begin_layout Enumerate
8211 Enter your caption text.
8212 \end_layout
8213
8214 \begin_layout Enumerate
8215 Press 
8216 \family sans
8217 Return
8218 \family default
8219  to move the cursor above the caption.
8220 \end_layout
8221
8222 \begin_layout Enumerate
8223 Insert your figure
8224 \end_layout
8225
8226 \begin_layout Enumerate
8227 Position the cursor behind the figure and insert a horizontal fill: 
8228 \family sans
8229 Insert\SpecialChar menuseparator
8230 Special
8231 \begin_inset space ~
8232 \end_inset
8233
8234 Character\SpecialChar menuseparator
8235 Horizontal
8236 \begin_inset space ~
8237 \end_inset
8238
8239 Fill
8240 \family default
8241 .
8242 \end_layout
8243
8244 \begin_layout Enumerate
8245 Switch to \SpecialChar LaTeX
8246  mode: 
8247 \family sans
8248 M-c
8249 \begin_inset space ~
8250 \end_inset
8251
8252 t
8253 \family default
8254 .
8255 \end_layout
8256
8257 \begin_layout Enumerate
8258 Enter 
8259 \family typewriter
8260
8261 \backslash
8262 parbox[b]{55mm}{
8263 \family default
8264 .
8265  
8266 \series bold
8267 Do not close the brace!
8268 \end_layout
8269
8270 \begin_layout Enumerate
8271 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8272  mode and insert
8273  the closing brace: 
8274 \family sans
8275 M-c
8276 \begin_inset space ~
8277 \end_inset
8278
8279 t
8280 \family default
8281  
8282 \family typewriter
8283 }
8284 \family default
8285 .
8286 \end_layout
8287
8288 \begin_layout Standard
8289 Also, refer to the figures in the example paper.
8290 \end_layout
8291
8292 \begin_layout Subsection
8293 Referee layout
8294 \end_layout
8295
8296 \begin_layout Standard
8297 For submission, the paper has to be formated in a special double-spacing
8298  layout.
8299  For this purpose, you have to give the option 
8300 \family typewriter
8301 referee
8302 \family default
8303  to the documentclass.
8304  This must be done using the extra class options field in the 
8305 \family sans
8306 Document\SpecialChar menuseparator
8307 Settings
8308 \family default
8309  dialog.
8310  Just enter the string 
8311 \family typewriter
8312 referee
8313 \family default
8314  there.
8315 \end_layout
8316
8317 \begin_layout Subsection
8318 The example paper
8319 \end_layout
8320
8321 \begin_layout Standard
8322 The 
8323 \family sans
8324 Examples
8325 \family default
8326  directory contains an example paper written with \SpecialChar LyX
8327 .
8328  It is the example paper from the original macro package, translated to
8329  \SpecialChar LyX
8330 .
8331  Use it for inspiration, and compare the original \SpecialChar LaTeX
8332  code with \SpecialChar LyX
8333  way of writing.
8334 \end_layout
8335
8336 \begin_layout Section
8337 AAS\SpecialChar TeX
8338
8339 \end_layout
8340
8341 \begin_layout Standard
8342 by 
8343 \noun on
8344 Mike Ressler
8345 \end_layout
8346
8347 \begin_layout Subsection
8348 Introduction
8349 \end_layout
8350
8351 \begin_layout Standard
8352 AAS\SpecialChar TeX
8353  is a set of macros produced by the American Astronomical Society to
8354  facilitate electronic manuscript submission to the three journals they
8355  publish: the Astrophysical Journal (including the Letters and Supplement),
8356  the Astronomical Journal, and the Publications of the Astronomical Society
8357  of the Pacific.
8358  \SpecialChar LyX
8359  has proven to be an excellent tool for generating these documents, especially
8360  given its equation, citation, and figure handling capabilities.
8361  \SpecialChar LyX
8362  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8363  is the version described here, or higher.
8364  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8365 2.09 and are fundamentally
8366  incompatible with \SpecialChar LyX
8367 .
8368  The AAS\SpecialChar TeX
8369  package may be downloaded from the AAS\SpecialChar TeX
8370  Web site
8371 \end_layout
8372
8373 \begin_layout Standard
8374 \begin_inset VSpace medskip
8375 \end_inset
8376
8377
8378 \end_layout
8379
8380 \begin_layout Standard
8381 \align center
8382 \begin_inset Flex URL
8383 status collapsed
8384
8385 \begin_layout Plain Layout
8386
8387 http://www.journals.uchicago.edu/AAS/AASTeX
8388 \end_layout
8389
8390 \end_inset
8391
8392
8393 \end_layout
8394
8395 \begin_layout Standard
8396 \begin_inset VSpace medskip
8397 \end_inset
8398
8399
8400 \end_layout
8401
8402 \begin_layout Standard
8403 A complete user guide is contained in that package and you should familiarize
8404  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8405 .
8406  \SpecialChar LyX
8407  will not reduce the need to figure out all the AAS\SpecialChar TeX
8408  commands, it will only
8409  reduce the drudgery of typing everything in.
8410  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8411  document conforms
8412  completely to the requirements of the journal to which you are submitting
8413  your paper.
8414 \end_layout
8415
8416 \begin_layout Subsection
8417 Starting a New Paper
8418 \end_layout
8419
8420 \begin_layout Standard
8421 I strongly suggest that you start with the AAS\SpecialChar TeX
8422  template file.
8423  Click on 
8424 \family sans
8425 File\SpecialChar menuseparator
8426 New from
8427 \family default
8428  
8429 \family sans
8430 Template
8431 \family default
8432 , enter the new file name, then choose the 
8433 \family typewriter
8434 aastex.lyx
8435 \family default
8436  template.
8437  This will show the most common fields found in a manuscript.
8438  Simply overwrite the existing text (including the brackets, 
8439 \family typewriter
8440 <>
8441 \family default
8442 ) with the correct information.
8443  Many of the AAS\SpecialChar TeX
8444  commands and environments can be implemented directly in
8445  \SpecialChar LyX
8446 , but some cannot: most noticeably 
8447 \family typewriter
8448
8449 \backslash
8450 altaffilmark
8451 \family default
8452  and 
8453 \family typewriter
8454
8455 \backslash
8456 altaffiltext
8457 \family default
8458 , which should stick out like a sore thumb if you actually just opened the
8459  template file.
8460  For commands such as these, the \SpecialChar LaTeX
8461  code must be entered directly and marked
8462  as such.
8463  Such commands are referred to as \SpecialChar TeX
8464  code, or Evil Red Text.
8465  I tried to minimize the amount of \SpecialChar TeX
8466  code needed in an AAS\SpecialChar TeX
8467  document, but
8468  there is still a bit more required than any of us would like.
8469 \end_layout
8470
8471 \begin_layout Subsection
8472 Finishing Your Paper
8473 \end_layout
8474
8475 \begin_layout Standard
8476 When the paper is finished to your satisfaction and previews/prints correctly,
8477  there are a few 
8478 \begin_inset Quotes eld
8479 \end_inset
8480
8481 postprocessing
8482 \begin_inset Quotes erd
8483 \end_inset
8484
8485  actions which need to be done before you submit it to the journals.
8486  
8487 \end_layout
8488
8489 \begin_layout Enumerate
8490 Export your paper as a \SpecialChar LaTeX
8491  file (
8492 \family sans
8493 File\SpecialChar menuseparator
8494 Export\SpecialChar menuseparator
8495 \SpecialChar LaTeX
8496
8497 \family default
8498 ).
8499  
8500 \end_layout
8501
8502 \begin_layout Enumerate
8503 Edit the resulting 
8504 \family typewriter
8505 .tex
8506 \family default
8507  file with your favorite text editor
8508 \begin_inset Separator parbreak
8509 \end_inset
8510
8511
8512 \end_layout
8513
8514 \begin_deeper
8515 \begin_layout Enumerate
8516 remove the comment lines before the 
8517 \family typewriter
8518
8519 \backslash
8520 documentclass
8521 \family default
8522  command
8523 \end_layout
8524
8525 \begin_layout Enumerate
8526 remove the 
8527 \family typewriter
8528
8529 \backslash
8530 usepackage...{fontenc}
8531 \family default
8532  line if it appears (usually just after 
8533 \family typewriter
8534
8535 \backslash
8536 documentclass
8537 \family default
8538 }; also remove the 
8539 \family typewriter
8540
8541 \backslash
8542 secnumdepth
8543 \family default
8544  line if it appears.
8545 \end_layout
8546
8547 \begin_layout Enumerate
8548 remove everything between (and including) the 
8549 \family typewriter
8550
8551 \backslash
8552 makeatletter
8553 \family default
8554  and 
8555 \family typewriter
8556
8557 \backslash
8558 makeatother
8559 \family default
8560  commands, except for any commands you specifically put into the \SpecialChar LaTeX
8561  preamble
8562  (which should appear immediately after the 
8563 \begin_inset Quotes eld
8564 \end_inset
8565
8566 User specified \SpecialChar LaTeX
8567  commands
8568 \begin_inset Quotes erd
8569 \end_inset
8570
8571  comment in the 
8572 \family typewriter
8573 .tex
8574 \family default
8575  file).
8576 \end_layout
8577
8578 \end_deeper
8579 \begin_layout Enumerate
8580 Run the resulting file through \SpecialChar LaTeX
8581  to make sure it still processes correctly.
8582 \end_layout
8583
8584 \begin_layout Enumerate
8585 Reread the journal requirements to make sure your filenames and formats
8586  are correct.
8587 \end_layout
8588
8589 \begin_layout Enumerate
8590 Submit it.
8591 \end_layout
8592
8593 \begin_layout Subsection
8594 Comments On Specific Commands
8595 \end_layout
8596
8597 \begin_layout Standard
8598 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
8599  commands: the
8600  AAS\SpecialChar TeX
8601  User Guide (
8602 \family typewriter
8603 aasguide.tex
8604 \family default
8605 ) gives a good description of each.
8606  Thus it's probably easiest for me to go down the list as found in the guide
8607  and offer comments where necessary.
8608  So let's begin \SpecialChar ldots
8609
8610 \end_layout
8611
8612 \begin_layout Subsubsection
8613 Things that work as expected
8614 \end_layout
8615
8616 \begin_layout Standard
8617 Because they work as you might expect, I simply list them and the section
8618  they are found in: 
8619 \family typewriter
8620
8621 \backslash
8622 documentclass
8623 \family default
8624  (2.1.1), 
8625 \family typewriter
8626
8627 \backslash
8628 begin{document}
8629 \family default
8630  (2.2), 
8631 \family typewriter
8632
8633 \backslash
8634 title
8635 \family default
8636  (2.3), 
8637 \family typewriter
8638
8639 \backslash
8640 author
8641 \family default
8642  (2.3), 
8643 \family typewriter
8644
8645 \backslash
8646 affil
8647 \family default
8648  (2.3), 
8649 \family typewriter
8650
8651 \backslash
8652 abstract
8653 \family default
8654  (2.4), 
8655 \family typewriter
8656
8657 \backslash
8658 keywords
8659 \family default
8660  (2.5), 
8661 \family typewriter
8662
8663 \backslash
8664 section
8665 \family default
8666  (2.7), 
8667 \family typewriter
8668
8669 \backslash
8670 subsection
8671 \family default
8672  (2.7), 
8673 \family typewriter
8674
8675 \backslash
8676 subsubsection
8677 \family default
8678  (2.7), 
8679 \family typewriter
8680
8681 \backslash
8682 paragraph
8683 \family default
8684  (2.7), 
8685 \family typewriter
8686
8687 \backslash
8688 facility
8689 \family default
8690  (2.10), 
8691 \family typewriter
8692
8693 \backslash
8694 begin{displaymath}
8695 \family default
8696  (2.12), 
8697 \family typewriter
8698
8699 \backslash
8700 begin{equation}
8701 \family default
8702  (2.12), 
8703 \family typewriter
8704
8705 \backslash
8706 begin{eqnarray}
8707 \family default
8708  (2.12), 
8709 \family typewriter
8710
8711 \backslash
8712 begin{mathletters}
8713 \family default
8714  (2.12), 
8715 \family typewriter
8716
8717 \backslash
8718 begin{thebibliography}
8719 \family default
8720  (2.13.1), 
8721 \family typewriter
8722
8723 \backslash
8724 bibitem
8725 \family default
8726  (2.13.2), all the cite commands and their variations (2.13.2), the generic
8727  graphicx figure commands (2.14.1), 
8728 \family typewriter
8729
8730 \backslash
8731 begin{table}
8732 \family default
8733  (2.15.4), 
8734 \family typewriter
8735
8736 \backslash
8737 begin{tabular}
8738 \family default
8739  (2.15.4), 
8740 \family typewriter
8741
8742 \backslash
8743 caption
8744 \family default
8745  (2.15.4), 
8746 \family typewriter
8747
8748 \backslash
8749 label
8750 \family default
8751  (2.15.4, amongst other places), 
8752 \family typewriter
8753
8754 \backslash
8755 tablerefs
8756 \family default
8757  (2.15.5), 
8758 \family typewriter
8759
8760 \backslash
8761 tablecomments
8762 \family default
8763  (2.15.5), 
8764 \family typewriter
8765
8766 \backslash
8767 url
8768 \family default
8769  (2.17.4), 
8770 \family typewriter
8771
8772 \backslash
8773 end{document}
8774 \family default
8775  (2.18).
8776 \end_layout
8777
8778 \begin_layout Standard
8779 The following style options also work correctly: 
8780 \family typewriter
8781 longabstract
8782 \family default
8783  (2.4), 
8784 \family typewriter
8785 preprint
8786 \family default
8787  (3.2.1), 
8788 \family typewriter
8789 preprint2
8790 \family default
8791  (3.2.2), 
8792 \family typewriter
8793 eqsecnum
8794 \family default
8795  (3.3), 
8796 \family typewriter
8797 flushrt
8798 \family default
8799  (3.4).
8800  Simply put them in the 
8801 \family sans
8802 Options
8803 \family default
8804  box in 
8805 \family sans
8806 Layout\SpecialChar menuseparator
8807 Document
8808 \family default
8809 .
8810 \end_layout
8811
8812 \begin_layout Subsubsection
8813 Things that work, but require more comment
8814 \end_layout
8815
8816 \begin_layout Standard
8817 The following items work, but require a little more discussion:
8818 \end_layout
8819
8820 \begin_layout Itemize
8821 These items are reserved for use by the journal editors, but you can put
8822  them into the \SpecialChar LaTeX
8823  preamble if you feel compelled to do so: 
8824 \family typewriter
8825
8826 \backslash
8827 received
8828 \family default
8829
8830 \family typewriter
8831
8832 \backslash
8833 revised
8834 \family default
8835
8836 \family typewriter
8837
8838 \backslash
8839 accepted
8840 \family default
8841
8842 \family typewriter
8843
8844 \backslash
8845 ccc
8846 \family default
8847
8848 \family typewriter
8849
8850 \backslash
8851 cpright
8852 \family default
8853  (all from 2.1.3)
8854 \end_layout
8855
8856 \begin_layout Itemize
8857 These items may be placed in the \SpecialChar LaTeX
8858  preamble, and are included as blanks in
8859  the template file: 
8860 \family typewriter
8861
8862 \backslash
8863 slugcomment
8864 \family default
8865  (2.1.4), 
8866 \family typewriter
8867
8868 \backslash
8869 shorttitle
8870 \family default
8871  (2.1.5), 
8872 \family typewriter
8873
8874 \backslash
8875 shortauthors
8876 \family default
8877  (2.1.5)
8878 \end_layout
8879
8880 \begin_layout Itemize
8881
8882 \family typewriter
8883
8884 \backslash
8885 email
8886 \family default
8887  (2.3) – can only be used 
8888 \begin_inset Quotes eld
8889 \end_inset
8890
8891 standalone
8892 \begin_inset Quotes erd
8893 \end_inset
8894
8895 , not in the middle of a paragraph.
8896  Use \SpecialChar TeX
8897  code if you need to embed it.
8898 \end_layout
8899
8900 \begin_layout Itemize
8901
8902 \family typewriter
8903
8904 \backslash
8905 and
8906 \family default
8907  (2.3) – will have extra {} after it.
8908  This should not cause an error.
8909 \end_layout
8910
8911 \begin_layout Itemize
8912
8913 \family typewriter
8914
8915 \backslash
8916 notetoeditor
8917 \family default
8918  (2.6) – can only be used 
8919 \begin_inset Quotes eld
8920 \end_inset
8921
8922 standalone
8923 \begin_inset Quotes erd
8924 \end_inset
8925
8926 , not in the middle of a paragraph.
8927  Use \SpecialChar TeX
8928  code if you need to embed it.
8929 \end_layout
8930
8931 \begin_layout Itemize
8932
8933 \family typewriter
8934
8935 \backslash
8936 placetable
8937 \family default
8938  (2.8) – can't insert a cross-reference tag, you must type the tag name by
8939  hand
8940 \end_layout
8941
8942 \begin_layout Itemize
8943
8944 \family typewriter
8945
8946 \backslash
8947 placefigure
8948 \family default
8949  (2.8) – same as for 
8950 \family typewriter
8951
8952 \backslash
8953 placetable
8954 \end_layout
8955
8956 \begin_layout Itemize
8957
8958 \family typewriter
8959
8960 \backslash
8961 acknowledgements
8962 \family default
8963  (2.9) – will have extra {} after it.
8964  This should not cause an error.
8965 \end_layout
8966
8967 \begin_layout Itemize
8968
8969 \family typewriter
8970
8971 \backslash
8972 appendix
8973 \family default
8974  (2.11) – will have extra {} after it.
8975  This should not cause an error.
8976 \end_layout
8977
8978 \begin_layout Itemize
8979
8980 \family typewriter
8981
8982 \backslash
8983 figcaption
8984 \family default
8985  (2.14.2) – you can insert an optional filename argument by placing the cursor
8986  at the beginning of the text and selecting 
8987 \family sans
8988 Insert\SpecialChar menuseparator
8989 Short Title
8990 \family default
8991 .
8992  
8993 \begin_inset Quotes eld
8994 \end_inset
8995
8996 Short Title
8997 \begin_inset Quotes erd
8998 \end_inset
8999
9000  inserts an optional argument of the type needed by 
9001 \family typewriter
9002
9003 \backslash
9004 figcaption
9005 \family default
9006 .
9007  Hopefully it will be renamed someday.
9008 \end_layout
9009
9010 \begin_layout Itemize
9011
9012 \family typewriter
9013
9014 \backslash
9015 objectname
9016 \family default
9017  (2.17.1) – same as 
9018 \family typewriter
9019
9020 \backslash
9021 figcaption
9022 \family default
9023  for the catalog ID optional parameter
9024 \end_layout
9025
9026 \begin_layout Itemize
9027
9028 \family typewriter
9029
9030 \backslash
9031 dataset
9032 \family default
9033  (2.17.1) – same as 
9034 \family typewriter
9035
9036 \backslash
9037 figcaption
9038 \family default
9039  for the catalog ID optional parameter
9040 \end_layout
9041
9042 \begin_layout Subsubsection
9043 Things not implemented, use \SpecialChar TeX
9044  code
9045 \end_layout
9046
9047 \begin_layout Standard
9048
9049 \family typewriter
9050
9051 \backslash
9052 altaffilmark
9053 \family default
9054  (2.3), 
9055 \family typewriter
9056
9057 \backslash
9058 altaffiltext
9059 \family default
9060  (2.3), 
9061 \family typewriter
9062
9063 \backslash
9064 eqnum
9065 \family default
9066  (2.12), 
9067 \family typewriter
9068
9069 \backslash
9070 setcounter{equation}
9071 \family default
9072  (2.12), Journal name abbreviations (2.13.4), 
9073 \family typewriter
9074
9075 \backslash
9076 figurenum
9077 \family default
9078  (2.14.1), 
9079 \family typewriter
9080
9081 \backslash
9082 epsscale
9083 \family default
9084  (2.14.1), 
9085 \family typewriter
9086
9087 \backslash
9088 plotone
9089 \family default
9090  (2.14.1), 
9091 \family typewriter
9092
9093 \backslash
9094 plottwo
9095 \family default
9096  (2.14.1), 
9097 \family typewriter
9098
9099 \backslash
9100 tablenum
9101 \family default
9102  (2.15.4), 
9103 \family typewriter
9104
9105 \backslash
9106 tableline
9107 \family default
9108  (2.15.4, insert it as the first element in the lefthand cell after where
9109  you want it.
9110  Don't use any of \SpecialChar LyX
9111 's rules in the table), 
9112 \family typewriter
9113
9114 \backslash
9115 tablenotemark
9116 \family default
9117  (2.15.5), 
9118 \family typewriter
9119
9120 \backslash
9121 tablenotetext
9122 \family default
9123  (2.15.5), much of Misc (2.17, except 
9124 \family typewriter
9125
9126 \backslash
9127 objectname
9128 \family default
9129
9130 \family typewriter
9131
9132 \backslash
9133 dataset
9134 \family default
9135
9136 \family typewriter
9137
9138 \backslash
9139 url
9140 \family default
9141 , and 
9142 \family typewriter
9143
9144 \backslash
9145 email
9146 \family default
9147 ; see above), 
9148 \family typewriter
9149
9150 \backslash
9151 singlespace
9152 \family default
9153  (3.1), 
9154 \family typewriter
9155
9156 \backslash
9157 doublespace
9158 \family default
9159  (3.1), 
9160 \family typewriter
9161
9162 \backslash
9163 onecolumn
9164 \family default
9165  (3.2), 
9166 \family typewriter
9167
9168 \backslash
9169 twocolumn
9170 \family default
9171  (3.2)
9172 \end_layout
9173
9174 \begin_layout Subsubsection
9175 Things that cannot be implemented
9176 \end_layout
9177
9178 \begin_layout Standard
9179 \SpecialChar ldots
9180  at least in any meaningful sort of way, so I suggest ignoring them.
9181  They are the references environment (2.13.3), and the deluxetable environment
9182  (2.15).
9183  If you really, really need to use deluxetable, I suggest editing it in
9184  a separate file with a text editor, then using 
9185 \family sans
9186 Insert\SpecialChar menuseparator
9187 Child
9188 \begin_inset space ~
9189 \end_inset
9190
9191 Document
9192 \family default
9193  to include it in your \SpecialChar LyX
9194  document.
9195  See the 
9196 \family typewriter
9197 aas_sample.lyx
9198 \family default
9199  file to see an example of this.
9200 \end_layout
9201
9202 \begin_layout Subsection
9203 FAQs, Tips, Tricks, and Other Ruminations
9204 \end_layout
9205
9206 \begin_layout Subsubsection
9207 Getting \SpecialChar LyX
9208  and AAS\SpecialChar TeX
9209  to cooperate
9210 \end_layout
9211
9212 \begin_layout Standard
9213 It can be a bit tricky to get \SpecialChar LyX
9214  to recognize a new layout and document class.
9215  When all else fails, do this:
9216 \end_layout
9217
9218 \begin_layout Enumerate
9219 Make certain that \SpecialChar LaTeX
9220  can find AAS\SpecialChar TeX
9221 .
9222  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9223  distribution into a
9224  directory completely unrelated to \SpecialChar LaTeX
9225  or AAS\SpecialChar TeX
9226  and run \SpecialChar LaTeX
9227  on 
9228 \family typewriter
9229 sample.tex
9230 \family default
9231 .
9232 \end_layout
9233
9234 \begin_layout Enumerate
9235 Make certain that 
9236 \family typewriter
9237 aastex.layout
9238 \family default
9239  appears in \SpecialChar LyX
9240 's 
9241 \family typewriter
9242 layouts
9243 \family default
9244  folder
9245 \end_layout
9246
9247 \begin_layout Enumerate
9248 Rerun 
9249 \family sans
9250 Tools\SpecialChar menuseparator
9251 Reconfigure
9252 \family default
9253  in \SpecialChar LyX
9254 , then restart \SpecialChar LyX
9255 .
9256 \end_layout
9257
9258 \begin_layout Enumerate
9259 Open a regular new file, not from a template.
9260  Does AAS\SpecialChar TeX
9261  appear in the class list in 
9262 \family sans
9263 Document\SpecialChar menuseparator
9264 Settings
9265 \family default
9266 ?
9267 \end_layout
9268
9269 \begin_layout Standard
9270 If you get a warning from an existing AAS\SpecialChar TeX
9271  document about not being able
9272  to find the AAS\SpecialChar TeX
9273  layout or a message about 
9274 \begin_inset Quotes eld
9275 \end_inset
9276
9277 You should not mix title layouts with normal ones
9278 \begin_inset Quotes erd
9279 \end_inset
9280
9281 , things haven't been installed correctly.
9282 \end_layout
9283
9284 \begin_layout Subsubsection
9285 \SpecialChar LaTeX
9286  error processing a table 
9287 \end_layout
9288
9289 \begin_layout Standard
9290 \SpecialChar LyX
9291 , by default, attempts to center the table caption/title.
9292  This seems to produce a bad interaction in AAS\SpecialChar TeX
9293  so you should click somewhere
9294  in the caption/title, then select 
9295 \family sans
9296 Edit\SpecialChar menuseparator
9297 Paragraph
9298 \begin_inset space ~
9299 \end_inset
9300
9301 Settings
9302 \family default
9303 , then set the 
9304 \family sans
9305 Alignment
9306 \family default
9307  to 
9308 \family sans
9309 Block
9310 \family default
9311 .
9312  This took care of it for me.
9313 \end_layout
9314
9315 \begin_layout Subsubsection
9316 References
9317 \end_layout
9318
9319 \begin_layout Standard
9320 A couple of things: 1) I have noticed some funny spacing in the reference
9321  entries in the text.
9322  When you enter the bibliography item data, make sure their is 
9323 \emph on
9324 no
9325 \emph default
9326  space between the last author and the parenthesis setting off the year;
9327  
9328 \emph on
9329 e.
9330 \begin_inset space \thinspace{}
9331 \end_inset
9332
9333 g.
9334 \begin_inset space \space{}
9335 \end_inset
9336
9337
9338 \emph default
9339 type 
9340 \family typewriter
9341 Ressler(1992)
9342 \family default
9343 , not 
9344 \family typewriter
9345 Ressler (1992)
9346 \family default
9347 .
9348  2) Entering the references at all is not obvious.
9349  The easiest thing is to start typing your first reference at the end of
9350  the document, then mark it as type 
9351 \family sans
9352 References
9353 \family default
9354 .
9355  That will put a small gray box in front of what you just typed.
9356  Click on the box to fill in the rest of the information.
9357  For new references, go to the end of an existing reference and press return.
9358  That will create a new line with its own box, etc.
9359 \end_layout
9360
9361 \begin_layout Subsubsection
9362 Including EPS files
9363 \end_layout
9364
9365 \begin_layout Standard
9366 Even though AAS\SpecialChar TeX
9367  provides its own figure commands (
9368 \family typewriter
9369
9370 \backslash
9371 plotone
9372 \family default
9373 , for example), I much prefer \SpecialChar LaTeX
9374 's standard figure commands (with the default
9375  graphicx).
9376  You can insert the 
9377 \family typewriter
9378
9379 \backslash
9380 plotone
9381 \family default
9382 , etc.
9383 \begin_inset space ~
9384 \end_inset
9385
9386 commands as \SpecialChar TeX
9387  code into a Figure Float box if you desire, but I never have
9388  much luck getting the layout right.
9389  With the standard graphics, \SpecialChar LyX
9390  will insert a 
9391 \family typewriter
9392
9393 \backslash
9394 usepackage{graphicx}
9395 \family default
9396  command into the \SpecialChar LaTeX
9397  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9398  way,
9399  interspersing the figures in the text.
9400  I believe ApJ accepts figures exactly this way now; AJ might still use
9401  the 
9402 \begin_inset Quotes eld
9403 \end_inset
9404
9405 stack everything at the end
9406 \begin_inset Quotes erd
9407 \end_inset
9408
9409  technique.
9410 \end_layout
9411
9412 \begin_layout Subsubsection
9413 Things I could have done, but didn't
9414 \end_layout
9415
9416 \begin_layout Standard
9417 There are a few 
9418 \begin_inset Quotes eld
9419 \end_inset
9420
9421 pretty
9422 \begin_inset Quotes erd
9423 \end_inset
9424
9425  things I could have implemented, but chose not to.
9426  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9427  window,
9428  even though it is double-spaced in the paper manuscript.
9429  Also, I chose not to make separate layouts for the preprint and preprint2
9430  styles.
9431  Since I assume you will spend most of your time in the plain manuscript
9432  mode anyway, I decided not to chew up more disk space with this.
9433  
9434 \end_layout
9435
9436 \begin_layout Subsection
9437 Final Caveat
9438 \end_layout
9439
9440 \begin_layout Standard
9441 Your mileage may vary.
9442  I've now had papers published by both ApJ and AJ that have had 98% of the
9443  effort done in \SpecialChar LyX
9444 ; the last 2% was the \SpecialChar LaTeX
9445  post-processing and a few cleanups.
9446  I have had no trouble with the submission process, and I'm sure the journals
9447  were never aware that there might be a difference.
9448  So, go forth and publish!
9449 \end_layout
9450
9451 \begin_layout Section
9452 AMS \SpecialChar LaTeX
9453
9454 \end_layout
9455
9456 \begin_layout Standard
9457 by 
9458 \noun on
9459 David Johnson
9460 \noun default
9461 ; updated by 
9462 \noun on
9463 Richard Heck
9464 \end_layout
9465
9466 \begin_layout Standard
9467 \begin_inset VSpace bigskip
9468 \end_inset
9469
9470
9471 \end_layout
9472
9473 \begin_layout Standard
9474 \noindent
9475 The AMS \SpecialChar LaTeX
9476  layouts are set up to conform to suggested styles for mathematical
9477  papers to be submitted to American Mathematical Society publications.
9478  The layouts are not tailored to a specific journal, but easily can be.
9479  You should refer to the AMS documentation for specific instructions for
9480  each journal (usually it will entail only changing a single line in the
9481  \SpecialChar TeX
9482  output).
9483  That documentation is available on the Web at 
9484 \begin_inset Flex URL
9485 status open
9486
9487 \begin_layout Plain Layout
9488
9489 http://www.ams.org
9490 \end_layout
9491
9492 \end_inset
9493
9494  or by ftp at 
9495 \begin_inset Flex URL
9496 status open
9497
9498 \begin_layout Plain Layout
9499
9500 ftp://ftp.ams.org/pub/tex/amslatex/
9501 \end_layout
9502
9503 \end_inset
9504
9505 .
9506  These layouts are appropriate, and useful, for any mathematical writing.
9507  
9508 \end_layout
9509
9510 \begin_layout Standard
9511 There are two basic AMS \SpecialChar LaTeX
9512  layouts: 
9513 \end_layout
9514
9515 \begin_layout Itemize
9516 amsart: The standard AMS article format.
9517 \end_layout
9518
9519 \begin_layout Itemize
9520 amsbook: the standard AMS book (really, monograph) format.
9521  
9522 \end_layout
9523
9524 \begin_layout Standard
9525 The layouts themselves contain only the minimum necessary to use the AMS
9526  classes.
9527  They do not, in particular, contain any of the `theorem' environments used
9528  for setting theorems, lemmas, and the like.
9529  These are contained, instead, in the 
9530 \begin_inset Flex Code
9531 status collapsed
9532
9533 \begin_layout Plain Layout
9534 Theorems (AMS)
9535 \end_layout
9536
9537 \end_inset
9538
9539  module, which is loaded by default when you select one of the AMS classes.
9540  (It can also be used with other classes and can be removed, if you would
9541  rather use something else.) Less commonly used environments are in the 
9542 \begin_inset Flex Code
9543 status collapsed
9544
9545 \begin_layout Plain Layout
9546 Theorems (AMS-Extended)
9547 \end_layout
9548
9549 \end_inset
9550
9551  module, which must be loaded manually.
9552 \end_layout
9553
9554 \begin_layout Standard
9555 By default, theorems and the like are numbered consecutively throughout
9556  the document, but this may be modified by loading the module 
9557 \begin_inset Flex Code
9558 status collapsed
9559
9560 \begin_layout Plain Layout
9561 Theorems (Order by Section)
9562 \end_layout
9563
9564 \end_inset
9565
9566  or, if you are using 
9567 \begin_inset Flex Code
9568 status collapsed
9569
9570 \begin_layout Plain Layout
9571 book (AMS)
9572 \end_layout
9573
9574 \end_inset
9575
9576 , the module 
9577 \begin_inset Flex Code
9578 status collapsed
9579
9580 \begin_layout Plain Layout
9581 Theorems (Order by Chapter)
9582 \end_layout
9583
9584 \end_inset
9585
9586 .
9587  These will number the results as 
9588 \begin_inset Formula $n.m$
9589 \end_inset
9590
9591 , where the first number refers to the section (or chapter) and the second
9592  refers to the total number of results so far in that section (or chapter).
9593  Many environments are also available unnumbered.
9594  These are indicated by an asterisk at the end.
9595  If you happen to want 
9596 \emph on
9597 only
9598 \emph default
9599  unnumbered results, the module 
9600 \begin_inset Flex Code
9601 status collapsed
9602
9603 \begin_layout Plain Layout
9604 Theorems (Starred)
9605 \end_layout
9606
9607 \end_inset
9608
9609  provides that option.
9610 \end_layout
9611
9612 \begin_layout Standard
9613 Note that these modules do not 
9614 \emph on
9615 have
9616 \emph default
9617  to be used with the AMS classes.
9618  It is perfectly possible to use the 
9619 \begin_inset Flex Code
9620 status collapsed
9621
9622 \begin_layout Plain Layout
9623 Theorems (AMS)
9624 \end_layout
9625
9626 \end_inset
9627
9628  module, and the others mentioned, with other classes, such as 
9629 \begin_inset Flex Code
9630 status collapsed
9631
9632 \begin_layout Plain Layout
9633 article
9634 \end_layout
9635
9636 \end_inset
9637
9638
9639 \begin_inset Flex Code
9640 status collapsed
9641
9642 \begin_layout Plain Layout
9643 report
9644 \end_layout
9645
9646 \end_inset
9647
9648
9649 \begin_inset Flex Code
9650 status collapsed
9651
9652 \begin_layout Plain Layout
9653 book (KOMA-script)
9654 \end_layout
9655
9656 \end_inset
9657
9658 , and so forth.
9659 \end_layout
9660
9661 \begin_layout Subsection
9662 What these layouts provide
9663 \end_layout
9664
9665 \begin_layout Standard
9666 There is a long list of included environments provided by these layouts.
9667  In AMS-\SpecialChar LaTeX
9668 , there is, in fact, an opportunity to define an unlimited variety
9669  of `theorem' environments.
9670  However, the AMS recommends the environments that are available in \SpecialChar LyX
9671 .
9672  
9673 \end_layout
9674
9675 \begin_layout Standard
9676 The following environments—as well as the standard environments, such as
9677  
9678 \begin_inset Flex Noun
9679 status collapsed
9680
9681 \begin_layout Plain Layout
9682 section
9683 \end_layout
9684
9685 \end_inset
9686
9687
9688 \begin_inset Flex Noun
9689 status collapsed
9690
9691 \begin_layout Plain Layout
9692 bibliography
9693 \end_layout
9694
9695 \end_inset
9696
9697
9698 \begin_inset Flex Noun
9699 status collapsed
9700
9701 \begin_layout Plain Layout
9702 title
9703 \end_layout
9704
9705 \end_inset
9706
9707
9708 \begin_inset Flex Noun
9709 status collapsed
9710
9711 \begin_layout Plain Layout
9712 author
9713 \end_layout
9714
9715 \end_inset
9716
9717 , and 
9718 \begin_inset Flex Noun
9719 status collapsed
9720
9721 \begin_layout Plain Layout
9722 date
9723 \end_layout
9724
9725 \end_inset
9726
9727 —are provided by 
9728 \begin_inset Flex Code
9729 status collapsed
9730
9731 \begin_layout Plain Layout
9732 article (AMS)
9733 \end_layout
9734
9735 \end_inset
9736
9737  and 
9738 \begin_inset Flex Code
9739 status collapsed
9740
9741 \begin_layout Plain Layout
9742 book (AMS)
9743 \end_layout
9744
9745 \end_inset
9746
9747 :
9748 \end_layout
9749
9750 \begin_layout Description
9751 Address This should be the author's permanent address.
9752 \end_layout
9753
9754 \begin_layout Description
9755 Current
9756 \begin_inset space ~
9757 \end_inset
9758
9759 Address This should be the author's temporary address at the time of submission,
9760  if different from the Address.
9761 \end_layout
9762
9763 \begin_layout Description
9764 Email Author's e-mail address
9765 \end_layout
9766
9767 \begin_layout Description
9768 URL Author's Web address, if desired.
9769 \end_layout
9770
9771 \begin_layout Description
9772 Keywords Key words or phrases used to identify specific topics discussed
9773  in the paper.
9774 \end_layout
9775
9776 \begin_layout Description
9777 Subjectclass These refer to the AMS Subject Classifications, published and
9778  described in 
9779 \emph on
9780 Mathematical Reviews
9781 \emph default
9782 .
9783  These are also available online at the AMS cites listed above.
9784 \end_layout
9785
9786 \begin_layout Description
9787 Thanks
9788 \end_layout
9789
9790 \begin_layout Description
9791 Dedicatory
9792 \end_layout
9793
9794 \begin_layout Description
9795 Translator
9796 \end_layout
9797
9798 \begin_layout Standard
9799 The following environments are provided by both the 
9800 \begin_inset Flex Code
9801 status collapsed
9802
9803 \begin_layout Plain Layout
9804 Theorems
9805 \end_layout
9806
9807 \end_inset
9808
9809  and 
9810 \begin_inset Flex Code
9811 status collapsed
9812
9813 \begin_layout Plain Layout
9814 Theorems (AMS)
9815 \end_layout
9816
9817 \end_inset
9818
9819  modules, in the latter case in both starred (unnumbered) and unstarred
9820  (numbered) versions.
9821  These same environments are provided only in the starred versions by the
9822  
9823 \begin_inset Flex Code
9824 status collapsed
9825
9826 \begin_layout Plain Layout
9827 Theorems (Starred)
9828 \end_layout
9829
9830 \end_inset
9831
9832  module:
9833 \end_layout
9834
9835 \begin_layout Theorem
9836 This is typically used for the statements of major results.
9837  
9838 \end_layout
9839
9840 \begin_layout Corollary*
9841 This is used for statements which follow fairly directly from previous statement
9842 s.
9843  Again, these can be major results.
9844  
9845 \end_layout
9846
9847 \begin_layout Lemma
9848 These are smaller results needed to prove other statements.
9849 \end_layout
9850
9851 \begin_layout Proposition
9852 These are less major results which (hopefully) add to the general theory
9853  being discussed.
9854 \end_layout
9855
9856 \begin_layout Conjecture
9857 These are statements provided without justification, which the author does
9858  not know how to prove, but which seem to be true (to the author, at least).
9859 \end_layout
9860
9861 \begin_layout Definition*
9862 Guess what this is for.
9863  The font is different for this environment than for the previous ones.
9864  
9865 \end_layout
9866
9867 \begin_layout Example*
9868 Used for examples illustrating proven results.
9869 \end_layout
9870
9871 \begin_layout Problem
9872 It's not really known what this is for.
9873  You should figure it out.
9874 \end_layout
9875
9876 \begin_layout Exercise*
9877 Write a description for this one.
9878 \end_layout
9879
9880 \begin_layout Remark
9881 This environment is also a type of theorem, usually a lesser sort of observation.
9882 \end_layout
9883
9884 \begin_layout Claim*
9885 Often used in the course of giving a proof of a larger result.
9886 \end_layout
9887
9888 \begin_layout Case
9889 Generally, these are used to break up long arguments, using specific instances
9890  of some condition.
9891  
9892 \end_layout
9893
9894 \begin_layout Case
9895 The numbering scheme for cases is on its own, not together with other numbered
9896  statements.
9897  
9898 \end_layout
9899
9900 \begin_layout Proof
9901 At the end of this environment, a QED symbol (usually a square, but it can
9902  vary with different styles) is placed.
9903  If you want to have other environments within this one—for example, Case
9904  environments—and have the QED symbol appear only after them, then the other
9905  environments need to be nested within the proof environment.
9906  See the section 
9907 \emph on
9908 Nesting Environments
9909 \emph default
9910  of the 
9911 \emph on
9912 User's Guide
9913 \emph default
9914  for information on nesting.
9915 \end_layout
9916
9917 \begin_layout Standard
9918 And these environments are provided by 
9919 \begin_inset Flex Code
9920 status collapsed
9921
9922 \begin_layout Plain Layout
9923 Theorems (AMS-Extended)
9924 \end_layout
9925
9926 \end_inset
9927
9928 :
9929 \end_layout
9930
9931 \begin_layout Criterion*
9932 A required condition.
9933 \end_layout
9934
9935 \begin_layout Algorithm*
9936 A general procedure to be used.
9937 \end_layout
9938
9939 \begin_layout Axiom*
9940 This is a property or statement taken as true within the system being discussed.
9941 \end_layout
9942
9943 \begin_layout Condition*
9944 Sometimes used to state a condition assumed within the present context of
9945  discussion.
9946 \end_layout
9947
9948 \begin_layout Note*
9949 Similar to a Remark.
9950 \end_layout
9951
9952 \begin_layout Notation*
9953 Used for the explanation of, yes, notation.
9954 \end_layout
9955
9956 \begin_layout Summary
9957 Do we really need to tell you? 
9958 \end_layout
9959
9960 \begin_layout Acknowledgement*
9961 Acknowledgement.
9962 \end_layout
9963
9964 \begin_layout Conclusion*
9965 Sometimes used at the end of a long train of argument.
9966 \end_layout
9967
9968 \begin_layout Fact
9969 Used in a way similar to Proposition, though perhaps lower on the scale.
9970 \end_layout
9971
9972 \begin_layout Standard
9973 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
9974  and AMS fonts
9975  packages.
9976  They need to be available on your system in order to use these environments.
9977 \end_layout
9978
9979 \begin_layout Section
9980 AGU journals (
9981 \family sans
9982 aguplus
9983 \family default
9984 )
9985 \end_layout
9986
9987 \begin_layout Standard
9988 by 
9989 \shape smallcaps
9990 Martin Vermeer
9991 \end_layout
9992
9993 \begin_layout Subsection
9994 Description
9995 \end_layout
9996
9997 \begin_layout Standard
9998 These are the layout files for some of the journals of the American Geophysical
9999  Society.
10000  It is assumed that you have both the AGU's own class files and AGUplus
10001  installed (everything to be found at
10002 \begin_inset Flex URL
10003 status collapsed
10004
10005 \begin_layout Plain Layout
10006
10007 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10008 \end_layout
10009
10010 \end_inset
10011
10012 ).
10013 \end_layout
10014
10015 \begin_layout Subsection
10016 New styles
10017 \end_layout
10018
10019 \begin_layout Standard
10020 Redefined are 
10021 \family sans
10022 Paragraph
10023 \family default
10024
10025 \family sans
10026 Paragraph*
10027 \family default
10028 .
10029  They are still called this in the \SpecialChar LyX
10030  GUI, though their \SpecialChar LaTeX
10031  equivalents in the
10032  AGU classes are 
10033 \family sans
10034 Subsubsubsection
10035 \family default
10036  and 
10037 \family sans
10038 Subsubsubsection*
10039 \family default
10040 .
10041 \end_layout
10042
10043 \begin_layout Standard
10044 Newly defined styles are 
10045 \family sans
10046 Left_Header
10047 \family default
10048
10049 \family sans
10050 Right_Header
10051 \family default
10052
10053 \family sans
10054 Received
10055 \family default
10056
10057 \family sans
10058 Revised
10059 \family default
10060
10061 \family sans
10062 Accepted
10063 \family default
10064
10065 \family sans
10066 CCC
10067 \family default
10068
10069 \family sans
10070 PaperId
10071 \family default
10072
10073 \family sans
10074 AuthorAddr
10075 \family default
10076
10077 \family sans
10078 SlugComment
10079 \family default
10080 .
10081  These are mostly manuscript attributes and defined in the AGU class documentati
10082 on.
10083 \end_layout
10084
10085 \begin_layout Standard
10086 I suspect this is still badly incomplete.
10087 \end_layout
10088
10089 \begin_layout Subsection
10090 New floats
10091 \end_layout
10092
10093 \begin_layout Standard
10094
10095 \family sans
10096 Planotable
10097 \family default
10098  and 
10099 \family sans
10100 Plate
10101 \family default
10102 .
10103  We also have a new 
10104 \family sans
10105 Table_Caption
10106 \family default
10107 .
10108 \end_layout
10109
10110 \begin_layout Subsection
10111 Supported journals
10112 \end_layout
10113
10114 \begin_layout Itemize
10115
10116 \emph on
10117 Journal of Geophysical Research
10118 \emph default
10119
10120 \family typewriter
10121 jgrga.layout
10122 \family default
10123  — Martin Vermeer
10124 \end_layout
10125
10126 \begin_layout Standard
10127 Add your own, it isn't so hard! Look at the 
10128 \family typewriter
10129 jgrga.layout
10130 \family default
10131  example and 
10132 \family typewriter
10133 aguplus.inc
10134 \family default
10135 .
10136 \end_layout
10137
10138 \begin_layout Subsection
10139 Bugs and things to remember
10140 \end_layout
10141
10142 \begin_layout Standard
10143 In order to use the new layouts, you must remember to do the following for
10144  a new document:
10145 \end_layout
10146
10147 \begin_layout Enumerate
10148
10149 \emph on
10150 Turn off babel
10151 \emph default
10152 .
10153  This can be done in the 
10154 \family sans
10155 Layout\SpecialChar menuseparator
10156 Document
10157 \family default
10158  or 
10159 \family sans
10160 Document\SpecialChar menuseparator
10161 Settings
10162 \family default
10163  menu item.
10164  (AGU articles are always in English, right? So 
10165 \emph on
10166 don't
10167 \emph default
10168  choose a language.)
10169 \end_layout
10170
10171 \begin_layout Enumerate
10172 Enter 
10173 \family typewriter
10174 jgrga
10175 \family default
10176  into the document's 
10177 \family sans
10178 Extra Options
10179 \family default
10180  field.
10181  (Yes, this is a bug.)
10182 \end_layout
10183
10184 \begin_layout Enumerate
10185 Make sure you use the 
10186 \family typewriter
10187 agu.bst
10188 \family default
10189  bibliography style, by entering 
10190 \family sans
10191 agu
10192 \family default
10193  into the second field of the Bib\SpecialChar TeX
10194  inset.
10195  None of the standard styles will do.
10196 \end_layout
10197
10198 \begin_layout Section
10199 Broadway
10200 \end_layout
10201
10202 \begin_layout Standard
10203 by 
10204 \shape smallcaps
10205 Garst Reese
10206 \end_layout
10207
10208 \begin_layout Subsection
10209 Introduction
10210 \end_layout
10211
10212 \begin_layout Standard
10213 Broadway is for writing plays.
10214  The format is more decorative than Hollywood, and much less standardized.
10215  This format should be suitable for workshops.
10216 \end_layout
10217
10218 \begin_layout Subsection
10219 Special problems
10220 \end_layout
10221
10222 \begin_layout Standard
10223 The same as in Hollywood.
10224 \end_layout
10225
10226 \begin_layout Subsection
10227 Special features
10228 \end_layout
10229
10230 \begin_layout Standard
10231 Insert the 
10232 \family sans
10233 Speaker
10234 \family default
10235  names as labels then cross-reference the label to insert the name.
10236  The cross-reference dialog will show the current cast of characters.
10237 \end_layout
10238
10239 \begin_layout Subsection
10240 Paper size and Margins
10241 \end_layout
10242
10243 \begin_layout Standard
10244 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10245 \end_layout
10246
10247 \begin_layout Subsection
10248 Environments
10249 \end_layout
10250
10251 \begin_layout Standard
10252 The following environments are available.
10253  You can use broadway.bind to get the bind keys shown at the right.
10254 \end_layout
10255
10256 \begin_layout Itemize
10257
10258 \family sans
10259 Standard
10260 \begin_inset Newline newline
10261 \end_inset
10262
10263
10264 \family default
10265 You should not have to use this, but it is here for anything that does not
10266  fit otherwise.
10267 \end_layout
10268
10269 \begin_layout Itemize
10270
10271 \family sans
10272 Narrative
10273 \begin_inset space \hfill{}
10274 \end_inset
10275
10276 M-z n
10277 \begin_inset Newline newline
10278 \end_inset
10279
10280
10281 \family default
10282 Used to describe stage setting and the action.
10283  First use of speaker names in all CAPs.
10284 \end_layout
10285
10286 \begin_layout Itemize
10287
10288 \family sans
10289 ACT
10290 \begin_inset space \hfill{}
10291 \end_inset
10292
10293 M-z a
10294 \begin_inset Newline newline
10295 \end_inset
10296
10297
10298 \family default
10299 Automatically numbered.
10300  On screen it will be arabic, but will print as Roman.
10301 \end_layout
10302
10303 \begin_layout Itemize
10304
10305 \family sans
10306 ACT*
10307 \begin_inset space \hfill{}
10308 \end_inset
10309
10310 M-z S at
10311 \begin_inset Newline newline
10312 \end_inset
10313
10314
10315 \family default
10316 Subtitle for 
10317 \family sans
10318 ACT.
10319
10320 \family default
10321  It is just centered text.
10322 \end_layout
10323
10324 \begin_layout Itemize
10325
10326 \family sans
10327 SCENE
10328 \begin_inset space \hfill{}
10329 \end_inset
10330
10331 M-z S-S
10332 \begin_inset Newline newline
10333 \end_inset
10334
10335
10336 \family default
10337 Not automatically numbered.
10338  You supply the number.
10339  This is because I couldn't figure out how.
10340 \end_layout
10341
10342 \begin_layout Itemize
10343
10344 \family sans
10345 AT_RISE:
10346 \begin_inset space \hfill{}
10347 \end_inset
10348
10349 M-z S-R
10350 \begin_inset Newline newline
10351 \end_inset
10352
10353
10354 \family default
10355 A special case of Narrative to describe the setting and action as the curtain
10356  rises.
10357 \end_layout
10358
10359 \begin_layout Itemize
10360
10361 \family sans
10362 Speaker
10363 \begin_inset space \hfill{}
10364 \end_inset
10365
10366 M-z s
10367 \begin_inset Newline newline
10368 \end_inset
10369
10370
10371 \family default
10372 The speaker's (actor's) title, centered in all CAPS.
10373 \end_layout
10374
10375 \begin_layout Itemize
10376
10377 \family sans
10378 Parenthetical
10379 \begin_inset space \hfill{}
10380 \end_inset
10381
10382 M-z p
10383 \begin_inset Newline newline
10384 \end_inset
10385
10386
10387 \family default
10388 Instructions to the speaker.
10389  The parentheses are automatically inserted.
10390  The ( will appear on screen, but both will be in the printed play.
10391  This environment is only used within 
10392 \family sans
10393 Dialogue
10394 \family default
10395 .
10396 \end_layout
10397
10398 \begin_layout Itemize
10399
10400 \family sans
10401 Dialogue
10402 \begin_inset space \hfill{}
10403 \end_inset
10404
10405 M-z d
10406 \begin_inset Newline newline
10407 \end_inset
10408
10409
10410 \family default
10411 What the Speaker says.
10412 \end_layout
10413
10414 \begin_layout Itemize
10415
10416 \family sans
10417 CURTAIN
10418 \begin_inset space \hfill{}
10419 \end_inset
10420
10421 M-z S-C
10422 \begin_inset Newline newline
10423 \end_inset
10424
10425
10426 \family default
10427 The curtain comes down.
10428 \end_layout
10429
10430 \begin_layout Itemize
10431
10432 \family sans
10433 Title
10434 \begin_inset space \hfill{}
10435 \end_inset
10436
10437 M-z S-T
10438 \end_layout
10439
10440 \begin_layout Itemize
10441
10442 \family sans
10443 Author
10444 \begin_inset space \hfill{}
10445 \end_inset
10446
10447 M-z S-A
10448 \end_layout
10449
10450 \begin_layout Itemize
10451
10452 \family sans
10453 Right_Address
10454 \begin_inset space \hfill{}
10455 \end_inset
10456
10457 M-z r
10458 \end_layout
10459
10460 \begin_layout Standard
10461 Hello there.
10462 \end_layout
10463
10464 \begin_layout Section
10465 Dinbrief
10466 \end_layout
10467
10468 \begin_layout Standard
10469 The document class 
10470 \family sans
10471 dinbrief
10472 \family default
10473  can be used to type letters according to German conventions.
10474  A template file is included in 
10475 \family typewriter
10476 .../lyx/share/templates
10477 \family default
10478  for you to use as a starting point.
10479 \end_layout
10480
10481 \begin_layout Section
10482 EGS journals (
10483 \family sans
10484 egs
10485 \family default
10486 )
10487 \end_layout
10488
10489 \begin_layout Standard
10490 by 
10491 \shape smallcaps
10492 Martin Vermeer
10493 \end_layout
10494
10495 \begin_layout Subsection
10496 Description
10497 \end_layout
10498
10499 \begin_layout Standard
10500 This is the layout file for the European Geophysical Society journals.
10501  The needed 
10502 \family typewriter
10503 egs.cls
10504 \family default
10505  can be downloaded from the web site of the EGS under 
10506 \begin_inset Flex URL
10507 status collapsed
10508
10509 \begin_layout Plain Layout
10510
10511 www.copernicus.org
10512 \end_layout
10513
10514 \end_inset
10515
10516 .
10517 \end_layout
10518
10519 \begin_layout Subsection
10520 New styles
10521 \end_layout
10522
10523 \begin_layout Standard
10524
10525 \family sans
10526 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10527  Accepted
10528 \family default
10529
10530 \family sans
10531 Offsets
10532 \family default
10533 .
10534  The current layout file is unfortunately very unmodular and would benefit
10535  from using the various 
10536 \family typewriter
10537 std*.inc
10538 \family default
10539  file inclusions.
10540 \end_layout
10541
10542 \begin_layout Section
10543 Elsevier Journals
10544 \end_layout
10545
10546 \begin_layout Standard
10547 See the \SpecialChar LyX
10548  template file 
10549 \family typewriter
10550 elsarticle.lyx
10551 \family default
10552 .
10553  It contains all infos you need.
10554 \end_layout
10555
10556 \begin_layout Section
10557 Foils [aka 
10558 \family sans
10559 Foil\SpecialChar TeX
10560
10561 \family default
10562 ]
10563 \begin_inset CommandInset label
10564 LatexCommand label
10565 name "sec:foiltex"
10566
10567 \end_inset
10568
10569
10570 \end_layout
10571
10572 \begin_layout Standard
10573 by 
10574 \noun on
10575 Allan Rae
10576 \end_layout
10577
10578 \begin_layout Subsection
10579 Introduction
10580 \end_layout
10581
10582 \begin_layout Standard
10583 This section describes how to use \SpecialChar LyX
10584  to make slides for overhead projectors.
10585  There are two document classes that can do this: the default slides class
10586  and the 
10587 \family sans
10588 Foil\SpecialChar TeX
10589
10590 \family default
10591  slides class.
10592  This section documents the latter.
10593 \end_layout
10594
10595 \begin_layout Standard
10596 I'm going to say this again, nice and clear, so that there's no misunderstanding
10597 :
10598 \end_layout
10599
10600 \begin_layout Standard
10601 \begin_inset VSpace bigskip
10602 \end_inset
10603
10604
10605 \end_layout
10606
10607 \begin_layout Standard
10608 \align center
10609
10610 \size large
10611 This section documents the class 
10612 \begin_inset Quotes eld
10613 \end_inset
10614
10615
10616 \family sans
10617 slides (FoilTeX)
10618 \family default
10619
10620 \begin_inset Quotes erd
10621 \end_inset
10622
10623  
10624 \emph on
10625 only.
10626 \end_layout
10627
10628 \begin_layout Standard
10629 \begin_inset VSpace bigskip
10630 \end_inset
10631
10632
10633 \end_layout
10634
10635 \begin_layout Standard
10636 If you're looking for the documentation for 
10637 \begin_inset Quotes eld
10638 \end_inset
10639
10640
10641 \family sans
10642 slides (default)
10643 \family default
10644
10645 \begin_inset Quotes erd
10646 \end_inset
10647
10648 , check out section
10649 \begin_inset space ~
10650 \end_inset
10651
10652
10653 \begin_inset CommandInset ref
10654 LatexCommand ref
10655 reference "sec:slitex"
10656
10657 \end_inset
10658
10659 .
10660  If your machine doesn't have the 
10661 \family sans
10662 foils
10663 \family default
10664  class [
10665 \begin_inset Quotes eld
10666 \end_inset
10667
10668
10669 \family sans
10670 slides (FoilTeX)
10671 \family default
10672
10673 \begin_inset Quotes erd
10674 \end_inset
10675
10676 ] installed, you'll probably have to use the default 
10677 \family sans
10678 slides
10679 \family default
10680  class, which isn't quite as good as 
10681 \family sans
10682 foils.
10683 \end_layout
10684
10685 \begin_layout Standard
10686 The 
10687 \family sans
10688 foils
10689 \family default
10690  class is designed for use with version 2.1 of the 
10691 \family sans
10692 foils.cls
10693 \family default
10694  \SpecialChar LaTeX
10695  class file which is now an integral part of \SpecialChar LaTeX2e
10696 .
10697 \end_layout
10698
10699 \begin_layout Subsection
10700 Getting Started
10701 \end_layout
10702
10703 \begin_layout Standard
10704 Obviously, to use this document class, you need to select 
10705 \begin_inset Quotes eld
10706 \end_inset
10707
10708
10709 \family sans
10710 slides (FoilTeX)
10711 \family default
10712
10713 \begin_inset Quotes erd
10714 \end_inset
10715
10716  from the 
10717 \family sans
10718 Class
10719 \family default
10720  entry in the 
10721 \family sans
10722 Document
10723 \begin_inset space ~
10724 \end_inset
10725
10726 Layout
10727 \family default
10728  dialog.
10729  There are some settings in the 
10730 \family sans
10731 Document
10732 \begin_inset space ~
10733 \end_inset
10734
10735 Layout
10736 \family default
10737  dialog that you should know about that are specific to this class:
10738 \end_layout
10739
10740 \begin_layout Itemize
10741 Don't change the options 
10742 \family sans
10743 Sides
10744 \family default
10745  and 
10746 \family sans
10747 Columns
10748 \family default
10749  on the 
10750 \family sans
10751 Document
10752 \begin_inset space ~
10753 \end_inset
10754
10755 Layout
10756 \family default
10757  dialog.
10758  They're ignored by the 
10759 \family sans
10760 foils
10761 \family default
10762  class.
10763 \end_layout
10764
10765 \begin_layout Itemize
10766 The default font size is 20
10767 \begin_inset space \thinspace{}
10768 \end_inset
10769
10770 pt with the other options being 17
10771 \begin_inset space \thinspace{}
10772 \end_inset
10773
10774 pt, 25
10775 \begin_inset space \thinspace{}
10776 \end_inset
10777
10778 pt and 30
10779 \begin_inset space \thinspace{}
10780 \end_inset
10781
10782 pt.
10783 \end_layout
10784
10785 \begin_layout Itemize
10786 The default font is 
10787 \family sans
10788 sans
10789 \family default
10790  
10791 \family sans
10792 serif
10793 \family default
10794  but all math equations are still typeset in the usual roman font.
10795 \end_layout
10796
10797 \begin_layout Itemize
10798
10799 \family sans
10800 Foil\SpecialChar TeX
10801
10802 \family default
10803  supports A4 and Letter paper sizes as well as a special size for working
10804  with 35
10805 \begin_inset space \thinspace{}
10806 \end_inset
10807
10808 mm slides.
10809  It doesn't support A5, B5, legal or executive paper sizes.
10810 \end_layout
10811
10812 \begin_layout Itemize
10813 Don't bother changing the 
10814 \family sans
10815 Float Placement
10816 \family default
10817  settings because they are ignored anyway.
10818  All floats appear where they are defined in the text.
10819 \end_layout
10820
10821 \begin_layout Itemize
10822 The 
10823 \family sans
10824 Pagestyle
10825 \family default
10826  setting behaves a bit differently for this class.
10827  
10828 \family sans
10829 Foil\SpecialChar TeX
10830
10831 \family default
10832  provides extensive footer and header capabilities including a user-defined
10833  logo.
10834  See section
10835 \begin_inset space ~
10836 \end_inset
10837
10838
10839 \begin_inset CommandInset ref
10840 LatexCommand ref
10841 reference "sec:foilfoot"
10842
10843 \end_inset
10844
10845  for more details.
10846  The title page is treated differently to all other pages in the document
10847  and is 
10848 \emph on
10849 always
10850 \emph default
10851  unnumbered and 
10852 \emph on
10853 always
10854 \emph default
10855  has the logo centered at the bottom of the page (if one is defined).
10856  The possible page style choices and what they do are as follows:
10857 \begin_inset Separator parbreak
10858 \end_inset
10859
10860
10861 \end_layout
10862
10863 \begin_deeper
10864 \begin_layout Labeling
10865 \labelwidthstring MMMMMMM
10866
10867 \family sans
10868 \series bold
10869 empty
10870 \family default
10871 \series default
10872  The final output contains no page numbers, or other headers or footers
10873  (except footnotes of course).
10874  
10875 \end_layout
10876
10877 \begin_layout Labeling
10878 \labelwidthstring MMMMMMM
10879
10880 \family sans
10881 \series bold
10882 plain
10883 \family default
10884 \series default
10885  The final output contains page numbers centered at the bottom of the page.
10886  No other headings or footers (other than footnotes).
10887 \end_layout
10888
10889 \begin_layout Labeling
10890 \labelwidthstring MMMMMMM
10891
10892 \series bold
10893 foilheadings
10894 \series default
10895  Page numbers in lower right corner.
10896  Additional headers and footers are also shown.
10897  This is also the default.
10898 \end_layout
10899
10900 \begin_layout Labeling
10901 \labelwidthstring MMMMMMM
10902
10903 \series bold
10904 fancy
10905 \series default
10906  Gives you access to the 
10907 \family sans
10908 fancyheadings
10909 \family default
10910  package although its use with 
10911 \family sans
10912 Foil\SpecialChar TeX
10913
10914 \family default
10915  is discouraged by the writer of the 
10916 \family sans
10917 Foil\SpecialChar TeX
10918
10919 \family default
10920  package because of some potential page layout clashes.
10921 \end_layout
10922
10923 \end_deeper
10924 \begin_layout Subsubsection
10925 Extra Options
10926 \end_layout
10927
10928 \begin_layout Standard
10929 The following options may be used in the extra class options in the 
10930 \family sans
10931 Document\SpecialChar menuseparator
10932 Settings
10933 \family default
10934  dialog.
10935 \end_layout
10936
10937 \begin_layout Labeling
10938 \labelwidthstring MMMMMMx
10939
10940 \series bold
10941 35mmSlide
10942 \series default
10943  This sets up the page layout for 7.33
10944 \begin_inset space \thinspace{}
10945 \end_inset
10946
10947 in by 11
10948 \begin_inset space \thinspace{}
10949 \end_inset
10950
10951 in paper, which is about the same aspect ratio as a 35
10952 \begin_inset space \thinspace{}
10953 \end_inset
10954
10955 mm slide, making it a bit easier to work with this medium.
10956 \end_layout
10957
10958 \begin_layout Labeling
10959 \labelwidthstring MMMMMMx
10960
10961 \series bold
10962 headrule
10963 \series default
10964  Places a rule across the page below the header on every page except the
10965  title page.
10966 \end_layout
10967
10968 \begin_layout Labeling
10969 \labelwidthstring MMMMMMx
10970
10971 \series bold
10972 footrule
10973 \series default
10974  Places a rule across the page above the footer on every page except the
10975  title page.
10976 \end_layout
10977
10978 \begin_layout Labeling
10979 \labelwidthstring MMMMMMx
10980
10981 \series bold
10982 dvips
10983 \series default
10984  This is automatically set each time you create a new 
10985 \family sans
10986 foils
10987 \family default
10988  document.
10989  This option tells 
10990 \family sans
10991 Foil\SpecialChar TeX
10992
10993 \family default
10994  to use the dvips driver to rotate those pages that are set as landscape
10995  foils.
10996 \end_layout
10997
10998 \begin_layout Labeling
10999 \labelwidthstring MMMMMMx
11000
11001 \series bold
11002 landscape
11003 \series default
11004  Simply changes the page dimensions to those of a landscape page but doesn't
11005  do any rotation.
11006  Thus if you use this option you need to use an external program to rotate
11007  each page or feed your paper through your printer as landscape.
11008  Note that this option effectively reverses the roles of the 
11009 \family sans
11010 Foilhead
11011 \family default
11012  and 
11013 \family sans
11014 Rotatefoilhead
11015 \family default
11016  environments (don't worry these are described in the next section).
11017 \end_layout
11018
11019 \begin_layout Labeling
11020 \labelwidthstring MMMMMMx
11021
11022 \series bold
11023 leqno
11024 \series default
11025  Equation numbers on the left.
11026 \end_layout
11027
11028 \begin_layout Labeling
11029 \labelwidthstring MMMMMMx
11030
11031 \series bold
11032 fleqn
11033 \series default
11034  Flush-left equations.
11035 \end_layout
11036
11037 \begin_layout Subsection
11038 Supported Environments
11039 \end_layout
11040
11041 \begin_layout Standard
11042 Most of the environments commonly supported in other classes are also supported
11043  by the 
11044 \family sans
11045 foils
11046 \family default
11047  class.
11048  There are several additional environments provided by 
11049 \family sans
11050 Foil\SpecialChar TeX
11051
11052 \family default
11053  as well as a couple added by \SpecialChar LyX
11054 .
11055  The following environments are shared with other classes:
11056 \end_layout
11057
11058 \begin_layout Standard
11059 \begin_inset Flex Multiple Columns
11060 status open
11061
11062 \begin_layout Itemize
11063
11064 \family sans
11065 Standard
11066 \end_layout
11067
11068 \begin_layout Itemize
11069
11070 \family sans
11071 Itemize
11072 \end_layout
11073
11074 \begin_layout Itemize
11075
11076 \family sans
11077 Enumerate
11078 \end_layout
11079
11080 \begin_layout Itemize
11081
11082 \family sans
11083 Description
11084 \end_layout
11085
11086 \begin_layout Itemize
11087
11088 \family sans
11089 List
11090 \end_layout
11091
11092 \begin_layout Itemize
11093
11094 \family sans
11095 \SpecialChar LyX
11096 -Code
11097 \end_layout
11098
11099 \begin_layout Itemize
11100
11101 \family sans
11102 Verse
11103 \end_layout
11104
11105 \begin_layout Itemize
11106
11107 \family sans
11108 Quote
11109 \end_layout
11110
11111 \begin_layout Itemize
11112
11113 \family sans
11114 Quotation
11115 \end_layout
11116
11117 \begin_layout Itemize
11118
11119 \family sans
11120 Title
11121 \end_layout
11122
11123 \begin_layout Itemize
11124
11125 \family sans
11126 Author
11127 \end_layout
11128
11129 \begin_layout Itemize
11130
11131 \family sans
11132 Date
11133 \end_layout
11134
11135 \begin_layout Itemize
11136
11137 \family sans
11138 Abstract
11139 \end_layout
11140
11141 \begin_layout Itemize
11142
11143 \family sans
11144 Bibliography
11145 \end_layout
11146
11147 \begin_layout Itemize
11148
11149 \family sans
11150 Address
11151 \end_layout
11152
11153 \begin_layout Itemize
11154
11155 \family sans
11156 RightAddress
11157 \end_layout
11158
11159 \begin_layout Itemize
11160
11161 \family sans
11162 Caption
11163 \end_layout
11164
11165 \begin_layout Itemize
11166
11167 \family sans
11168 Comment
11169 \end_layout
11170
11171 \end_inset
11172
11173
11174 \end_layout
11175
11176 \begin_layout Standard
11177 That is, all the major environments apart from the sectioning environments.
11178  Since foils are essentially self-contained sections, with a title and body,
11179  
11180 \family sans
11181 Foil\SpecialChar TeX
11182
11183 \family default
11184  provides specific commands for starting new foils and these are:
11185 \end_layout
11186
11187 \begin_layout Itemize
11188
11189 \family sans
11190 Foilhead
11191 \end_layout
11192
11193 \begin_layout Itemize
11194
11195 \family sans
11196 Rotatefoilhead
11197 \end_layout
11198
11199 \begin_layout Standard
11200 \SpecialChar LyX
11201  also provides slightly modified versions of these two environments called:
11202 \end_layout
11203
11204 \begin_layout Itemize
11205
11206 \family sans
11207 ShortFoilhead
11208 \end_layout
11209
11210 \begin_layout Itemize
11211
11212 \family sans
11213 ShortRotatefoilhead
11214 \end_layout
11215
11216 \begin_layout Standard
11217 and the differences will be explained in the next section.
11218 \end_layout
11219
11220 \begin_layout Standard
11221 Since foils are often used in presenting ideas or new theorems and such
11222  
11223 \family sans
11224 Foil\SpecialChar TeX
11225
11226 \family default
11227  also provides a comprehensive box of goodies for presenting them:
11228 \end_layout
11229
11230 \begin_layout Standard
11231 \begin_inset Flex Multiple Columns
11232 status open
11233
11234 \begin_layout Itemize
11235
11236 \family sans
11237 Theorem
11238 \end_layout
11239
11240 \begin_layout Itemize
11241
11242 \family sans
11243 Lemma
11244 \end_layout
11245
11246 \begin_layout Itemize
11247
11248 \family sans
11249 Corollary
11250 \end_layout
11251
11252 \begin_layout Itemize
11253
11254 \family sans
11255 Proposition
11256 \end_layout
11257
11258 \begin_layout Itemize
11259
11260 \family sans
11261 Definition
11262 \end_layout
11263
11264 \begin_layout Itemize
11265
11266 \family sans
11267 Proof
11268 \end_layout
11269
11270 \begin_layout Itemize
11271
11272 \family sans
11273 Theorem*
11274 \end_layout
11275
11276 \begin_layout Itemize
11277
11278 \family sans
11279 Lemma*
11280 \end_layout
11281
11282 \begin_layout Itemize
11283
11284 \family sans
11285 Corollary*
11286 \end_layout
11287
11288 \begin_layout Itemize
11289
11290 \family sans
11291 Proposition*
11292 \end_layout
11293
11294 \begin_layout Itemize
11295
11296 \family sans
11297 Definition*
11298 \end_layout
11299
11300 \end_inset
11301
11302
11303 \end_layout
11304
11305 \begin_layout Standard
11306 The starred versions are unnumbered while the unstarred versions are numbered.
11307  There are also two list environments added by \SpecialChar LyX
11308  and these are:
11309 \end_layout
11310
11311 \begin_layout Itemize
11312
11313 \family sans
11314 TickList
11315 \end_layout
11316
11317 \begin_layout Itemize
11318
11319 \family sans
11320 CrossList
11321 \end_layout
11322
11323 \begin_layout Standard
11324
11325 \family sans
11326 Foil\SpecialChar TeX
11327
11328 \family default
11329  provides some powerful header and footer capabilities that are best set
11330  in the preamble although they may be set at any point in a document.
11331  If you want to change these settings in your document the best place to
11332  do so is at the very top of a foil, i.
11333 \begin_inset space \thinspace{}
11334 \end_inset
11335
11336 e.
11337 \emph on
11338
11339 \begin_inset space \space{}
11340 \end_inset
11341
11342
11343 \emph default
11344 straight after the foilhead.
11345 \end_layout
11346
11347 \begin_layout Standard
11348 For this purpose, the following command styles are provided [
11349 \shape smallcaps
11350 Martin Vermeer
11351 \shape default
11352 ]:
11353 \end_layout
11354
11355 \begin_layout Standard
11356 \begin_inset Flex Multiple Columns
11357 status open
11358
11359 \begin_layout Itemize
11360
11361 \family sans
11362 My
11363 \begin_inset space ~
11364 \end_inset
11365
11366 Logo
11367 \end_layout
11368
11369 \begin_layout Itemize
11370
11371 \family sans
11372 Restriction
11373 \end_layout
11374
11375 \begin_layout Itemize
11376
11377 \family sans
11378 Right
11379 \begin_inset space ~
11380 \end_inset
11381
11382 Footer
11383 \end_layout
11384
11385 \begin_layout Itemize
11386
11387 \family sans
11388 Right
11389 \begin_inset space ~
11390 \end_inset
11391
11392 Header
11393 \end_layout
11394
11395 \begin_layout Itemize
11396
11397 \family sans
11398 Left
11399 \begin_inset space ~
11400 \end_inset
11401
11402 Header
11403 \family default
11404
11405 \begin_inset Separator parbreak
11406 \end_inset
11407
11408
11409 \end_layout
11410
11411 \begin_deeper
11412 \begin_layout Plain Layout
11413 \begin_inset space ~
11414 \end_inset
11415
11416
11417 \end_layout
11418
11419 \end_deeper
11420 \end_inset
11421
11422
11423 \end_layout
11424
11425 \begin_layout Standard
11426 There are also a few commands provided by 
11427 \family sans
11428 Foil\SpecialChar TeX
11429
11430 \family default
11431  that aren't directly supported by \SpecialChar LyX
11432  but I'll tell you what they do and how
11433  to use them in section
11434 \begin_inset space ~
11435 \end_inset
11436
11437
11438 \begin_inset CommandInset ref
11439 LatexCommand ref
11440 reference "sec:unsuppfoils"
11441
11442 \end_inset
11443
11444 .
11445 \end_layout
11446
11447 \begin_layout Subsection
11448 Building a Set of Foils
11449 \end_layout
11450
11451 \begin_layout Standard
11452 This section will give a simple introduction to using the different environments
11453  to build a set of foils.
11454  If you want to see an example set of foils, take a look at the 
11455 \family typewriter
11456 Foils.lyx
11457 \family default
11458  file you find in \SpecialChar LyX
11459 's 
11460 \family typewriter
11461 examples
11462 \family default
11463  folder.
11464 \end_layout
11465
11466 \begin_layout Subsubsection
11467 Give It a Title Page
11468 \end_layout
11469
11470 \begin_layout Standard
11471 Unlike other classes that provide 
11472 \family sans
11473 Title
11474 \family default
11475
11476 \family sans
11477 Author
11478 \family default
11479
11480 \family sans
11481 Date
11482 \family default
11483  and 
11484 \family sans
11485 Abstract
11486 \family default
11487  environments, 
11488 \family sans
11489 foils
11490 \family default
11491  creates the title on a page of its own.
11492  If you leave out the 
11493 \family sans
11494 Date
11495 \family default
11496  environment \SpecialChar LaTeX
11497  will substitute the current date (every time you regenerate
11498  the output).
11499 \end_layout
11500
11501 \begin_layout Subsubsection
11502 Start a New Foil
11503 \end_layout
11504
11505 \begin_layout Standard
11506 As I mentioned earlier, there are four ways of starting a new foil.
11507  For portrait foils you should use 
11508 \family sans
11509 Foilhead
11510 \family default
11511  or 
11512 \family sans
11513 ShortFoilhead.
11514
11515 \family default
11516  The difference between these two environments is the amount of space between
11517  the title of the foil (the foilhead) and the body of the foil.
11518 \end_layout
11519
11520 \begin_layout Standard
11521 Landscape foils are generated using the 
11522 \family sans
11523 Rotatefoilhead
11524 \family default
11525  and 
11526 \family sans
11527 ShortRotatefoilhead
11528 \family default
11529  environments.
11530  Again the only difference is the spacing between foilhead and body.
11531  Both of the short versions have 0.5
11532 \begin_inset space ~
11533 \end_inset
11534
11535 inches less separation between the foilhead and the body.
11536  
11537 \end_layout
11538
11539 \begin_layout Standard
11540 One problem with the support for landscape foils is the requirement that
11541  you have to use the 
11542 \family typewriter
11543 dvips
11544 \family default
11545  driver to generate the PostScript output otherwise the foils won't be rotated.
11546  It is possible to get landscape foils even if you haven't got the 
11547 \family typewriter
11548 dvips
11549 \family default
11550  driver provided you can feed your foils sideways through your printer ;-)
11551 \end_layout
11552
11553 \begin_layout Subsubsection
11554 Theorems, Lemmas, Proofs and more
11555 \end_layout
11556
11557 \begin_layout Standard
11558 Due to a small bug in \SpecialChar LyX
11559  you can't have two of the same type of these environments
11560  directly following each other.
11561  They must be separated by something.
11562  If you try, you will just be extending the previous environment as if you
11563  had merged the two environments together.
11564  So, how do you get around this problem? The simplest option is to insert
11565  some text between the two environments or add a 
11566 \family sans
11567 \SpecialChar LaTeX
11568
11569 \family default
11570  environment between the two with just a 
11571 \begin_inset Quotes eld
11572 \end_inset
11573
11574
11575 \family typewriter
11576 %
11577 \family default
11578
11579 \begin_inset Quotes erd
11580 \end_inset
11581
11582  in it.
11583  This will force \SpecialChar LyX
11584  to produce two separate environments and hence the correct
11585  \SpecialChar LaTeX
11586  output.
11587  An example is provided in the example file included with the \SpecialChar LyX
11588  distribution.
11589  Remember, this problem only occurs if you are trying to place two of the
11590  same type of theorem-like environments one directly after the other.
11591 \end_layout
11592
11593 \begin_layout Subsubsection
11594 Lists
11595 \end_layout
11596
11597 \begin_layout Standard
11598 You get all the commonly supported list styles found in other classes as
11599  well as two new ones.
11600  I'll only describe the new ones here.
11601  If you want to find out more about the other list environments check out
11602  the 
11603 \emph on
11604 User's Guide.
11605
11606 \emph default
11607  If you intend to use itemized lists you might also want to read about the
11608  
11609 \family sans
11610 Itemize
11611 \begin_inset space ~
11612 \end_inset
11613
11614 Bullet
11615 \begin_inset space ~
11616 \end_inset
11617
11618 Selection
11619 \family default
11620  dialog described above in section
11621 \begin_inset space ~
11622 \end_inset
11623
11624
11625 \begin_inset CommandInset ref
11626 LatexCommand ref
11627 reference "sec:bullet"
11628
11629 \end_inset
11630
11631 .
11632 \end_layout
11633
11634 \begin_layout Standard
11635 The two new list styles, 
11636 \family sans
11637 TickList
11638 \family default
11639  and 
11640 \family sans
11641 CrossList
11642 \family default
11643 , are designed to make it easier for you to create lists of do's and don'ts
11644  or right and wrong by providing dedicated environments that use a tick
11645  or a cross as the label of the list.
11646  These lists are in fact dedicated variants of the 
11647 \family sans
11648 Itemize
11649 \family default
11650  environment.
11651  They do however require that you have the 
11652 \family typewriter
11653 psnfss
11654 \family default
11655  packages installed.
11656 \end_layout
11657
11658 \begin_layout Subsubsection
11659 Figures and Tables
11660 \end_layout
11661
11662 \begin_layout Standard
11663
11664 \family sans
11665 Foil\SpecialChar TeX
11666
11667 \family default
11668  redefines the floating tables and figures so that they appear exactly where
11669  they are in the text rather than pushing them to the top of the page or
11670  to some user specified location.
11671  In fact if you change the float placement settings they are simply ignored.
11672 \end_layout
11673
11674 \begin_layout Subsubsection
11675 Page Headers and Footers
11676 \begin_inset CommandInset label
11677 LatexCommand label
11678 name "sec:foilfoot"
11679
11680 \end_inset
11681
11682
11683 \end_layout
11684
11685 \begin_layout Standard
11686
11687 \family sans
11688 My
11689 \begin_inset space ~
11690 \end_inset
11691
11692 Logo
11693 \family default
11694  and 
11695 \family sans
11696 Restriction
11697 \family default
11698  are two commands used to control the left-footer text string.
11699  The first is meant to allow you to include a graphic logo on your foils
11700  and defaults to 
11701 \begin_inset Quotes eld
11702 \end_inset
11703
11704 -Typeset by 
11705 \family sans
11706 Foil\SpecialChar TeX
11707
11708 \family default
11709 -
11710 \begin_inset Quotes erd
11711 \end_inset
11712
11713 .
11714  While the second is meant to provide a classification for the audience,
11715  
11716 \emph on
11717 e.
11718 \begin_inset space \thinspace{}
11719 \end_inset
11720
11721 g.
11722 \emph default
11723
11724 \begin_inset space \space{}
11725 \end_inset
11726
11727 Confidential.
11728  It is empty by default.
11729 \end_layout
11730
11731 \begin_layout Standard
11732 The remaining page corners can be filled by 
11733 \family sans
11734 Right
11735 \begin_inset space ~
11736 \end_inset
11737
11738 Footer
11739 \family default
11740  (which defaults to page numbers), 
11741 \family sans
11742 Right
11743 \begin_inset space ~
11744 \end_inset
11745
11746 Header
11747 \family default
11748  (top right) and 
11749 \family sans
11750 Left
11751 \begin_inset space ~
11752 \end_inset
11753
11754 Header
11755 \family default
11756  (top left).
11757 \end_layout
11758
11759 \begin_layout Subsection
11760 Unsupported 
11761 \family sans
11762 Foil\SpecialChar TeX
11763
11764 \family default
11765  Goodies
11766 \begin_inset CommandInset label
11767 LatexCommand label
11768 name "sec:unsuppfoils"
11769
11770 \end_inset
11771
11772
11773 \end_layout
11774
11775 \begin_layout Standard
11776 All the commands mentioned below need to be set in a 
11777 \family sans
11778 \SpecialChar LaTeX
11779
11780 \family default
11781  environment or as 
11782 \family sans
11783 \SpecialChar TeX
11784
11785 \family default
11786  within another environment.
11787 \end_layout
11788
11789 \begin_layout Subsubsection
11790 Lengths
11791 \end_layout
11792
11793 \begin_layout Standard
11794 All lengths are adjusted using the 
11795 \family typewriter
11796
11797 \backslash
11798 setlength{
11799 \family default
11800 \emph on
11801 lengthname
11802 \family typewriter
11803 \emph default
11804 }{
11805 \family default
11806 \emph on
11807 newlength
11808 \family typewriter
11809 \emph default
11810 }
11811 \family default
11812  command.
11813  Where 
11814 \emph on
11815 lengthname
11816 \emph default
11817  should be replaced by the name given to the length you want to change and
11818  
11819 \emph on
11820 newlength
11821 \emph default
11822  is the length value.
11823  All lengths should be specified in units of length such as inches (
11824 \family typewriter
11825 in
11826 \family default
11827 ), millimeters (
11828 \family typewriter
11829 mm
11830 \family default
11831 ) or points (
11832 \family typewriter
11833 pt
11834 \family default
11835 ) or relative to some document or font-based length such as 
11836 \family typewriter
11837
11838 \backslash
11839 textwidth
11840 \family default
11841 .
11842  
11843 \end_layout
11844
11845 \begin_layout Standard
11846 It's possible to change the spacing between a foilhead and the body of the
11847  foil by adjusting the length specified by 
11848 \family typewriter
11849
11850 \backslash
11851 foilheadskip
11852 \family default
11853 .
11854  For example, to make 
11855 \emph on
11856 all
11857 \emph default
11858  foilheads 0.5
11859 \begin_inset space \space{}
11860 \end_inset
11861
11862 in closer to their bodies put the following in the preamble: 
11863 \family typewriter
11864
11865 \backslash
11866 setlength{
11867 \backslash
11868 foilheadskip}{-0.5in}
11869 \end_layout
11870
11871 \begin_layout Standard
11872 The spacings around floats can be adjusted by setting these lengths:
11873 \end_layout
11874
11875 \begin_layout Labeling
11876 \labelwidthstring MMMMMMMMMMM
11877
11878 \family typewriter
11879
11880 \backslash
11881 abovefloatskip
11882 \family default
11883  Separation between the text and the top of the float
11884 \end_layout
11885
11886 \begin_layout Labeling
11887 \labelwidthstring MMMMMMMMMMM
11888
11889 \family typewriter
11890
11891 \backslash
11892 abovecaptionskip
11893 \family default
11894  Separation between the float and the caption
11895 \end_layout
11896
11897 \begin_layout Labeling
11898 \labelwidthstring MMMMMMMMMMM
11899
11900 \family typewriter
11901
11902 \backslash
11903 belowcaptionskip
11904 \family default
11905  Separation between the caption and the following text
11906 \end_layout
11907
11908 \begin_layout Labeling
11909 \labelwidthstring MMMMMMMMMMM
11910
11911 \family typewriter
11912
11913 \backslash
11914 captionwidth
11915 \family default
11916  You can make the captions narrower than the surrounding text by adjusting
11917  this length.
11918  Best done relative to 
11919 \family typewriter
11920
11921 \backslash
11922 textwidth
11923 \family default
11924 .
11925 \end_layout
11926
11927 \begin_layout Standard
11928 There are also several title page related lengths that you may find useful
11929  if you have a long title or several authors:
11930 \end_layout
11931
11932 \begin_layout Labeling
11933 \labelwidthstring MMMMMMMMMMM
11934
11935 \family typewriter
11936
11937 \backslash
11938 abovetitleskip
11939 \family default
11940  Separation from headers to 
11941 \family sans
11942 Title
11943 \end_layout
11944
11945 \begin_layout Labeling
11946 \labelwidthstring MMMMMMMMMMM
11947
11948 \family typewriter
11949
11950 \backslash
11951 titleauthorskip
11952 \family default
11953  between 
11954 \family sans
11955 Title
11956 \family default
11957  and 
11958 \family sans
11959 Author
11960 \family default
11961  environments
11962 \end_layout
11963
11964 \begin_layout Labeling
11965 \labelwidthstring MMMMMMMMMMM
11966
11967 \family typewriter
11968
11969 \backslash
11970 authorauthorskip
11971 \family default
11972  between multiple 
11973 \family sans
11974 Author
11975 \family default
11976  lines
11977 \end_layout
11978
11979 \begin_layout Labeling
11980 \labelwidthstring MMMMMMMMMMM
11981
11982 \family typewriter
11983
11984 \backslash
11985 authordateskip
11986 \family default
11987  between the 
11988 \family sans
11989 Author
11990 \family default
11991  and the 
11992 \family sans
11993 Date
11994 \end_layout
11995
11996 \begin_layout Labeling
11997 \labelwidthstring MMMMMMMMMMM
11998
11999 \family typewriter
12000
12001 \backslash
12002 dateabstractskip
12003 \family default
12004  between the 
12005 \family sans
12006 Date
12007 \family default
12008  and the 
12009 \family sans
12010 Abstract
12011 \end_layout
12012
12013 \begin_layout Standard
12014 The last length related command affects all the list environments.
12015  If you place 
12016 \family typewriter
12017
12018 \backslash
12019 zerolistvertdimens
12020 \family default
12021  
12022 \emph on
12023 inside
12024 \emph default
12025  a list environment then all the vertical spacing between the list items
12026  is removed.
12027  Note that this is a command not a length so it doesn't require 
12028 \family typewriter
12029
12030 \backslash
12031 setlength
12032 \family default
12033  like the stuff mentioned above.
12034 \end_layout
12035
12036 \begin_layout Subsubsection
12037 Headers and Footers
12038 \end_layout
12039
12040 \begin_layout Standard
12041 The 
12042 \family typewriter
12043
12044 \backslash
12045 LogoOn
12046 \family default
12047  and 
12048 \family typewriter
12049
12050 \backslash
12051 LogoOff
12052 \family default
12053  commands control whether the logo in the 
12054 \family sans
12055 MyLogo
12056 \family default
12057  definition appear on a given page.
12058  If you put 
12059 \family typewriter
12060
12061 \backslash
12062 LogoOff
12063 \family default
12064  in the preamble then none of the foils will have the logo on them.
12065  If you don't want the logo on a particular page place the 
12066 \family typewriter
12067
12068 \backslash
12069 LogoOff
12070 \family default
12071  directly after the foilhead of that page and the 
12072 \family typewriter
12073
12074 \backslash
12075 LogoOn
12076 \family default
12077  directly after the next foilhead.
12078 \end_layout
12079
12080 \begin_layout Standard
12081 If you decide to use the 
12082 \family sans
12083 fancy
12084 \family default
12085  page style setting in the 
12086 \family sans
12087 Document
12088 \begin_inset space ~
12089 \end_inset
12090
12091 Layout
12092 \family default
12093  dialog you should probably add 
12094 \family typewriter
12095
12096 \backslash
12097 let
12098 \backslash
12099 headwidth
12100 \backslash
12101 textwidth
12102 \family default
12103  to your preamble so headers and footers on landscape pages are correctly
12104  placed when rotated.
12105  This is due to some clashes between the page layouts provided by the 
12106 \family sans
12107 fancyheadings
12108 \family default
12109  package and the 
12110 \family sans
12111 foils
12112 \family default
12113  class.
12114 \end_layout
12115
12116 \begin_layout Section
12117 Hollywood (Hollywood spec scripts)
12118 \end_layout
12119
12120 \begin_layout Standard
12121 by 
12122 \shape smallcaps
12123 Garst Reese
12124 \end_layout
12125
12126 \begin_layout Subsection
12127 Introduction
12128 \end_layout
12129
12130 \begin_layout Standard
12131 Getting the format of a Hollywood script right is a 
12132 \begin_inset Quotes eld
12133 \end_inset
12134
12135 rite of passage.
12136 \begin_inset Quotes erd
12137 \end_inset
12138
12139  It is designed to make the readers focus on content and to be easy and
12140  familiar for the actors to read.
12141  Each page of a script should be one minute of film.
12142  Nothing goes in a script that you cannot see or hear on screen.
12143  The courier 12 pt font should be used throughout.
12144  No italics.
12145 \end_layout
12146
12147 \begin_layout Subsection
12148 Special problems
12149 \end_layout
12150
12151 \begin_layout Standard
12152 Speakers' lines should NEVER break in mid-sentence.
12153  If a speaker's lines continue over a page break, repeat the 
12154 \family sans
12155 Speaker
12156 \family default
12157  title followed by (Cont'd).
12158 \end_layout
12159
12160 \begin_layout Subsection
12161 Special features
12162 \end_layout
12163
12164 \begin_layout Standard
12165 Insert the 
12166 \family sans
12167 Speaker
12168 \family default
12169  names as labels then cross-reference the label to insert the name.
12170  The cross-reference dialog will show the current cast of characters.
12171  You can use this to insert the speaker name in narratives also.
12172 \end_layout
12173
12174 \begin_layout Subsection
12175 Paper size and Margins
12176 \end_layout
12177
12178 \begin_layout Standard
12179 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12180 \end_layout
12181
12182 \begin_layout Subsection
12183 Environments
12184 \end_layout
12185
12186 \begin_layout Standard
12187 The following environments are available.
12188  You can use hollywood.bind to get the bind keys shown at the right.
12189 \end_layout
12190
12191 \begin_layout Itemize
12192
12193 \family sans
12194 Standard
12195 \begin_inset Newline newline
12196 \end_inset
12197
12198
12199 \family default
12200 Used where nothing else works.
12201  Try to avoid it.
12202 \end_layout
12203
12204 \begin_layout Itemize
12205
12206 \family sans
12207 FADE_IN
12208 \family default
12209 :
12210 \begin_inset space \hfill{}
12211 \end_inset
12212
12213
12214 \family sans
12215 M-z S-I
12216 \family default
12217
12218 \begin_inset Newline newline
12219 \end_inset
12220
12221 Usually followed by something like 
12222 \begin_inset Quotes eld
12223 \end_inset
12224
12225 on Sally waking up.
12226 \begin_inset Quotes erd
12227 \end_inset
12228
12229
12230 \end_layout
12231
12232 \begin_layout Itemize
12233
12234 \family sans
12235 INT:
12236 \begin_inset space \hfill{}
12237 \end_inset
12238
12239 M-z i
12240 \begin_inset Newline newline
12241 \end_inset
12242
12243
12244 \family default
12245 Introduces a new INTERIOR camera set-up.
12246  Always followed by DAY or NIGHT, or something similar to define the lighting
12247  required.
12248  Everthing on this line in CAPS.
12249 \end_layout
12250
12251 \begin_layout Itemize
12252
12253 \family sans
12254 EXT:
12255 \begin_inset space \hfill{}
12256 \end_inset
12257
12258 M-z e
12259 \begin_inset Newline newline
12260 \end_inset
12261
12262
12263 \family default
12264 Introduces a new EXTERIOR camera set-up.
12265  Everthing on this line in CAPS.
12266 \end_layout
12267
12268 \begin_layout Itemize
12269
12270 \family sans
12271 Speaker
12272 \begin_inset space \hfill{}
12273 \end_inset
12274
12275 M-z s
12276 \begin_inset Newline newline
12277 \end_inset
12278
12279
12280 \family default
12281 The character speaking.
12282 \end_layout
12283
12284 \begin_layout Itemize
12285
12286 \family sans
12287 Parenthetical
12288 \begin_inset space \hfill{}
12289 \end_inset
12290
12291 M-z p
12292 \begin_inset Newline newline
12293 \end_inset
12294
12295
12296 \family default
12297 Instructions to the speaker.
12298  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12299 .
12300  Both will be printed.
12301 \end_layout
12302
12303 \begin_layout Itemize
12304
12305 \family sans
12306 Dialogue
12307 \begin_inset space \hfill{}
12308 \end_inset
12309
12310 M-z d
12311 \begin_inset Newline newline
12312 \end_inset
12313
12314
12315 \family default
12316 What the 
12317 \family sans
12318 Speaker
12319 \family default
12320  says.
12321 \end_layout
12322
12323 \begin_layout Itemize
12324
12325 \family sans
12326 Transition
12327 \begin_inset space \hfill{}
12328 \end_inset
12329
12330 M-z t
12331 \begin_inset Newline newline
12332 \end_inset
12333
12334
12335 \family default
12336 Camera movement instruction.
12337  e.
12338 \begin_inset space \thinspace{}
12339 \end_inset
12340
12341 g.
12342 \begin_inset space \space{}
12343 \end_inset
12344
12345 CUT TO:
12346 \end_layout
12347
12348 \begin_layout Itemize
12349
12350 \family sans
12351 FADE OUT:
12352 \begin_inset space \hfill{}
12353 \end_inset
12354
12355 M-z S-I
12356 \end_layout
12357
12358 \begin_layout Itemize
12359
12360 \family sans
12361 Author
12362 \begin_inset space \hfill{}
12363 \end_inset
12364
12365 M-z S-A
12366 \end_layout
12367
12368 \begin_layout Itemize
12369
12370 \family sans
12371 Title
12372 \begin_inset space \hfill{}
12373 \end_inset
12374
12375 M-z S-T
12376 \end_layout
12377
12378 \begin_layout Itemize
12379
12380 \family sans
12381 Right_Address
12382 \begin_inset space \hfill{}
12383 \end_inset
12384
12385 M-z r
12386 \end_layout
12387
12388 \begin_layout Subsection
12389 Script jargon
12390 \end_layout
12391
12392 \begin_layout Itemize
12393 (O.S) — off screen
12394 \end_layout
12395
12396 \begin_layout Itemize
12397 (V.0) — voice over
12398 \end_layout
12399
12400 \begin_layout Itemize
12401 b.
12402 \begin_inset space \thinspace{}
12403 \end_inset
12404
12405 g.
12406  — background
12407 \end_layout
12408
12409 \begin_layout Itemize
12410 C.U.
12411  — close-up
12412 \end_layout
12413
12414 \begin_layout Itemize
12415 PAN — camera movement
12416 \end_layout
12417
12418 \begin_layout Itemize
12419 INSERT — cut to close-up of
12420 \end_layout
12421
12422 \begin_layout Section
12423 ijmpc and ijmpd
12424 \end_layout
12425
12426 \begin_layout Standard
12427 by 
12428 \noun on
12429 Panayotis Papasotiriou
12430 \end_layout
12431
12432 \begin_layout Subsection
12433 Overview
12434 \end_layout
12435
12436 \begin_layout Standard
12437 The ijmpc package is a set of macros that facilitates electronic manuscript
12438  submission to the 
12439 \emph on
12440 International Journal of Modern Physics C
12441 \emph default
12442 .
12443  Similarly, the ijmpd package is for creating manuscripts to be submitted
12444  to the 
12445 \emph on
12446 International Journal of Modern Physics D
12447 \emph default
12448 .
12449  Both journals are published by World Scientific.
12450  The corresponding document classes are named 
12451 \family typewriter
12452 ws-ijmpc.cls
12453 \family default
12454  and 
12455 \family typewriter
12456 ws-ijmpd.cls
12457 \family default
12458 , respectively.
12459  These files, together with instructions for the authors, can be downloaded
12460  from the sites 
12461 \begin_inset Flex URL
12462 status collapsed
12463
12464 \begin_layout Plain Layout
12465
12466 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12467 \end_layout
12468
12469 \end_inset
12470
12471  and 
12472 \begin_inset Flex URL
12473 status collapsed
12474
12475 \begin_layout Plain Layout
12476
12477 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12478 \end_layout
12479
12480 \end_inset
12481
12482 .
12483  Both packages are modified versions of the standard 
12484 \begin_inset Quotes eld
12485 \end_inset
12486
12487 article
12488 \begin_inset Quotes erd
12489 \end_inset
12490
12491  package, and they are almost (but not exactly) identical.
12492  Most of their features are supported by \SpecialChar LyX
12493 .
12494  I have used \SpecialChar LyX
12495  successfully to write articles submitted to both journals
12496  without any problem.
12497 \end_layout
12498
12499 \begin_layout Subsection
12500 Writing a paper
12501 \end_layout
12502
12503 \begin_layout Standard
12504 As usual, the easiest way to write a paper is to start with a template.
12505  Click on 
12506 \family sans
12507 File\SpecialChar menuseparator
12508 New from
12509 \family default
12510  
12511 \family sans
12512 \bar under
12513 T
12514 \bar default
12515 emplate
12516 \family default
12517 , then choose the 
12518 \family typewriter
12519 ijmpc.lyx
12520 \family default
12521  or 
12522 \family typewriter
12523 ijmpd.lyx
12524 \family default
12525  template.
12526  This will give an (almost) empty document that includes the most common
12527  fields found in a manuscript.
12528  Simply overwrite the existing text (including the brackets, 
12529 \family typewriter
12530 <>
12531 \family default
12532 ) with your text.
12533  You should keep in mind the following remarks.
12534 \end_layout
12535
12536 \begin_layout Enumerate
12537 \SpecialChar LyX
12538  won't let you change the font size and the page style of the document,
12539  because such modifications are not allowed by both packages.
12540 \end_layout
12541
12542 \begin_layout Enumerate
12543 The language of the document should not be changed.
12544  Before previewing your paper, be sure that the babel package is not used.
12545  To do this, click on 
12546 \family sans
12547 Tools\SpecialChar menuseparator
12548 Preferences
12549 \family default
12550 , select the 
12551 \family sans
12552 Lang Opts
12553 \family default
12554  tab, deselect the 
12555 \family sans
12556 Use babel
12557 \family default
12558  checkbox in the language settings, and click on 
12559 \family sans
12560 Apply
12561 \family default
12562  (or 
12563 \family sans
12564 Save
12565 \family default
12566 , if you wish to make this change permanent).
12567 \end_layout
12568
12569 \begin_layout Enumerate
12570 The 
12571 \begin_inset Quotes eld
12572 \end_inset
12573
12574 Keywords
12575 \begin_inset Quotes erd
12576 \end_inset
12577
12578  style must be used to define keywords.
12579 \end_layout
12580
12581 \begin_layout Enumerate
12582 The ijmpc package provides a style named 
12583 \begin_inset Quotes eld
12584 \end_inset
12585
12586 Classification Codes
12587 \begin_inset Quotes erd
12588 \end_inset
12589
12590 , which can be used to define classification codes, such as PACS numbers.
12591  Note that this facility is not supported by the ijmpd package.
12592 \end_layout
12593
12594 \begin_layout Enumerate
12595 Several new environments are available: 
12596 \begin_inset Quotes eld
12597 \end_inset
12598
12599 Definition
12600 \begin_inset Quotes erd
12601 \end_inset
12602
12603
12604 \begin_inset Quotes eld
12605 \end_inset
12606
12607 Step
12608 \begin_inset Quotes erd
12609 \end_inset
12610
12611
12612 \begin_inset Quotes eld
12613 \end_inset
12614
12615 Example
12616 \begin_inset Quotes erd
12617 \end_inset
12618
12619
12620 \begin_inset Quotes eld
12621 \end_inset
12622
12623 Remark
12624 \begin_inset Quotes erd
12625 \end_inset
12626
12627
12628 \begin_inset Quotes eld
12629 \end_inset
12630
12631 Notation
12632 \begin_inset Quotes erd
12633 \end_inset
12634
12635
12636 \begin_inset Quotes eld
12637 \end_inset
12638
12639 Theorem
12640 \begin_inset Quotes erd
12641 \end_inset
12642
12643
12644 \begin_inset Quotes eld
12645 \end_inset
12646
12647 Proof
12648 \begin_inset Quotes erd
12649 \end_inset
12650
12651
12652 \begin_inset Quotes eld
12653 \end_inset
12654
12655 Corollary
12656 \begin_inset Quotes erd
12657 \end_inset
12658
12659
12660 \begin_inset Quotes eld
12661 \end_inset
12662
12663 Lemma
12664 \begin_inset Quotes erd
12665 \end_inset
12666
12667
12668 \begin_inset Quotes eld
12669 \end_inset
12670
12671 Proposition
12672 \begin_inset Quotes erd
12673 \end_inset
12674
12675
12676 \begin_inset Quotes eld
12677 \end_inset
12678
12679 Prop
12680 \begin_inset Quotes erd
12681 \end_inset
12682
12683
12684 \begin_inset Quotes eld
12685 \end_inset
12686
12687 Question
12688 \begin_inset Quotes erd
12689 \end_inset
12690
12691
12692 \begin_inset Quotes eld
12693 \end_inset
12694
12695 Claim
12696 \begin_inset Quotes erd
12697 \end_inset
12698
12699 , and 
12700 \begin_inset Quotes eld
12701 \end_inset
12702
12703 Conjecture
12704 \begin_inset Quotes erd
12705 \end_inset
12706
12707 .
12708  Their use is more or less obvious.
12709  \SpecialChar LyX
12710  supports all these environments; it will use the proper label, text style,
12711  and numbering scheme for each of them.
12712 \end_layout
12713
12714 \begin_layout Enumerate
12715 Both packages use basic citations; the natbib package should not be used.
12716  In \SpecialChar LyX
12717 , citation references are shown as usual; in the output, citations are
12718  shown as superscripts.
12719  If you want to use a citation as normal text, you should use the 
12720 \family typewriter
12721 refcite
12722 \family default
12723  command, e.
12724 \begin_inset space \thinspace{}
12725 \end_inset
12726
12727 g.
12728 \begin_inset space \space{}
12729 \end_inset
12730
12731
12732 \begin_inset Quotes eld
12733 \end_inset
12734
12735 See Ref.
12736 \begin_inset space \space{}
12737 \end_inset
12738
12739
12740 \family typewriter
12741
12742 \backslash
12743 refcite{key}
12744 \family default
12745
12746 \begin_inset Quotes erd
12747 \end_inset
12748
12749 .
12750 \end_layout
12751
12752 \begin_layout Enumerate
12753 There is no 
12754 \begin_inset Quotes eld
12755 \end_inset
12756
12757 Acknowledgments
12758 \begin_inset Quotes erd
12759 \end_inset
12760
12761  section in both packages.
12762  To put acknowledgments, just use the 
12763 \begin_inset Quotes eld
12764 \end_inset
12765
12766 Section*
12767 \begin_inset Quotes erd
12768 \end_inset
12769
12770  environment.
12771 \end_layout
12772
12773 \begin_layout Enumerate
12774 Appendices may be added to the paper, 
12775 \emph on
12776 after
12777 \emph default
12778  the Acknowledgments and 
12779 \shape italic
12780 before
12781 \shape default
12782  the References.
12783  \SpecialChar LyX
12784  provides a special environment, called 
12785 \begin_inset Quotes eld
12786 \end_inset
12787
12788 Appendices Section
12789 \begin_inset Quotes erd
12790 \end_inset
12791
12792  which marks the beginning of the appendices.
12793  This environment should be left blank; it just sends a \SpecialChar LaTeX
12794  command, but nothing
12795  is really printed.
12796  In \SpecialChar LyX
12797 , the word 
12798 \begin_inset Quotes eld
12799 \end_inset
12800
12801 Appendix
12802 \begin_inset Quotes erd
12803 \end_inset
12804
12805  is printed with blue letters, as a signal that all sections after that
12806  point are appendices.
12807  To write an appendix, use the 
12808 \begin_inset Quotes eld
12809 \end_inset
12810
12811 Appendix
12812 \begin_inset Quotes erd
12813 \end_inset
12814
12815  environment.
12816  \SpecialChar LyX
12817  will number each appendix with capital letters, as required by both journals.
12818  Note that 
12819 \begin_inset Quotes eld
12820 \end_inset
12821
12822 Appendices Section
12823 \begin_inset Quotes erd
12824 \end_inset
12825
12826  
12827 \emph on
12828 must
12829 \emph default
12830  be present before the first appendix; if not, all appendices will be numbered
12831  as normal sections in the output.
12832 \end_layout
12833
12834 \begin_layout Enumerate
12835 The ijmpc and the ijmpd packages use the 
12836 \family typewriter
12837 tbl
12838 \family default
12839  command to implement table captions.
12840  As a result, a table created by \SpecialChar LyX
12841  is printed correctly, but its caption
12842  is ignored.
12843  However, you can use some \SpecialChar TeX
12844  code to overcome this problem, so that captions
12845  are printed as expected.
12846  To do so, create a float table as usual, remove the caption, and replace
12847  it with the \SpecialChar TeX
12848  code 
12849 \family typewriter
12850
12851 \backslash
12852 tbl{
12853 \emph on
12854 your table caption
12855 \emph default
12856 }{
12857 \family default
12858  (sic); you must also the \SpecialChar TeX
12859  code 
12860 \family typewriter
12861 }
12862 \family default
12863  immediately after the tabular material.
12864  Study the example table included in the template files to see how this
12865  trick is implemented.
12866  Alternatively, If you need table captions, you should implement the whole
12867  table float in a 
12868 \family typewriter
12869 .tex
12870 \family default
12871  file, then include this file to the \SpecialChar LyX
12872  document (
12873 \family sans
12874 Insert\SpecialChar menuseparator
12875 File\SpecialChar menuseparator
12876 Child
12877 \begin_inset space ~
12878 \end_inset
12879
12880 Document
12881 \family default
12882 ).
12883  Details on how to create a table float can be found in the files 
12884 \family typewriter
12885 ws-ijmpc.tex
12886 \family default
12887  and 
12888 \family typewriter
12889 ws-ijmpd.tex
12890 \family default
12891 , included in the corresponding packages.
12892 \end_layout
12893
12894 \begin_layout Subsection
12895 Preparing a paper for submission
12896 \end_layout
12897
12898 \begin_layout Standard
12899 Before you submit your paper you must export the \SpecialChar LyX
12900  document as a \SpecialChar LaTeX
12901  file (
12902 \family sans
12903 File\SpecialChar menuseparator
12904 Export\SpecialChar menuseparator
12905 \SpecialChar LaTeX
12906
12907 \family default
12908 )
12909 \begin_inset Foot
12910 status open
12911
12912 \begin_layout Plain Layout
12913 Actually you have the choice between \SpecialChar LaTeX
12914  (plain) and pdflatex.
12915  If you intend to use pdflatex to prepare the paper, you should use the
12916  pdflatex option so that included graphics are converted to PDF format,
12917  ready for use by pdflatex.
12918 \end_layout
12919
12920 \end_inset
12921
12922 , then make the following changes to the resulting 
12923 \family typewriter
12924 .tex
12925 \family default
12926  file.
12927 \end_layout
12928
12929 \begin_layout Enumerate
12930 Remove the comment lines before the 
12931 \family typewriter
12932
12933 \backslash
12934 documentclass
12935 \family default
12936  command.
12937 \end_layout
12938
12939 \begin_layout Enumerate
12940 Remove everything between (and including) the 
12941 \family typewriter
12942
12943 \backslash
12944 makeatletter
12945 \family default
12946  and 
12947 \family typewriter
12948
12949 \backslash
12950 makeatother
12951 \family default
12952  commands, except for any commands you specifically put into the \SpecialChar LaTeX
12953  preamble.
12954 \end_layout
12955
12956 \begin_layout Standard
12957 The modified 
12958 \family typewriter
12959 .tex
12960 \family default
12961  file should be saved and processed through \SpecialChar LaTeX
12962  as many times as necessary.
12963  You may also want to check the resulting 
12964 \family typewriter
12965 .dvi
12966 \family default
12967  document.
12968 \end_layout
12969
12970 \begin_layout Subsection
12971 Use of \SpecialChar TeX
12972  code
12973 \end_layout
12974
12975 \begin_layout Standard
12976 The use of \SpecialChar TeX
12977  code is reduced to two commands, which must be placed at the
12978  top of the document.
12979  If you started writing your paper by using the 
12980 \family typewriter
12981 ijmpc.lyx
12982 \family default
12983  or the 
12984 \family typewriter
12985 ijmpd.lyx
12986 \family default
12987  template, the \SpecialChar TeX
12988  code needed is already in its place; you usually don't need
12989  to delete it.
12990  You may only modify the first \SpecialChar TeX
12991  code to specify the information printed
12992  to the top of odd and even pages (authors' names and short paper's title,
12993  respectively).
12994  This \SpecialChar TeX
12995  code must have the form 
12996 \family typewriter
12997
12998 \backslash
12999 markboth{Authors' Names}{Short Paper's Title}
13000 \family default
13001 .
13002 \end_layout
13003
13004 \begin_layout Section
13005 iopart
13006 \end_layout
13007
13008 \begin_layout Standard
13009 by 
13010 \noun on
13011 Uwe Stöhr
13012 \end_layout
13013
13014 \begin_layout Subsection
13015 Overview
13016 \end_layout
13017
13018 \begin_layout Standard
13019 The iopart package provides a document class to create electronic manuscript
13020  submission to the journals published by the Institute of Physics.
13021  Instructions for the authors how to create a paper using the iopart class
13022  can be downloaded together with the iopart package from the site 
13023 \begin_inset Flex URL
13024 status collapsed
13025
13026 \begin_layout Plain Layout
13027
13028 ftp://ftp.iop.org/pub/journals/latex2e
13029 \end_layout
13030
13031 \end_inset
13032
13033 .
13034 \end_layout
13035
13036 \begin_layout Subsection
13037 Writing a paper
13038 \end_layout
13039
13040 \begin_layout Standard
13041 The easiest way to write a paper is to start with the file 
13042 \emph on
13043 IOP-article.lyx
13044 \emph default
13045  that is available in \SpecialChar LyX
13046 's examples files folder.
13047  Open this file, save it under a new name, and start writing.
13048  The example file explains how to use the special text environments.
13049  Here are the most important advices:
13050 \end_layout
13051
13052 \begin_layout Itemize
13053 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13054  two options 
13055 \family sans
13056 Use AMS math package
13057 \family default
13058  in the document settings under 
13059 \family sans
13060 Math Options
13061 \family default
13062  are not used!
13063 \end_layout
13064
13065 \begin_layout Itemize
13066
13067 \size normal
13068 The title environment defines the kind of your paper.
13069  So use one of the following environments for the title:
13070 \size default
13071
13072 \begin_inset Separator parbreak
13073 \end_inset
13074
13075
13076 \end_layout
13077
13078 \begin_deeper
13079 \begin_layout Itemize
13080
13081 \family sans
13082 \size normal
13083 Title
13084 \family default
13085  for a Paper
13086 \end_layout
13087
13088 \begin_layout Itemize
13089
13090 \family sans
13091 \size normal
13092 Review
13093 \family default
13094  for a Review
13095 \end_layout
13096
13097 \begin_layout Itemize
13098
13099 \family sans
13100 \size normal
13101 Topical
13102 \family default
13103  for a Topical review
13104 \end_layout
13105
13106 \begin_layout Itemize
13107
13108 \family sans
13109 \size normal
13110 Comment
13111 \family default
13112  for a Comment
13113 \end_layout
13114
13115 \begin_layout Itemize
13116
13117 \family sans
13118 \size normal
13119 Note
13120 \family default
13121  for a Note
13122 \end_layout
13123
13124 \begin_layout Itemize
13125
13126 \family sans
13127 \size normal
13128 Paper
13129 \family default
13130  for a Paper (same as Title)
13131 \end_layout
13132
13133 \begin_layout Itemize
13134
13135 \family sans
13136 \size normal
13137 Prelim
13138 \family default
13139  for a Preliminary communication
13140 \end_layout
13141
13142 \begin_layout Itemize
13143
13144 \family sans
13145 \size normal
13146 Rapid
13147 \family default
13148  for a Rapid communication
13149 \end_layout
13150
13151 \begin_layout Itemize
13152
13153 \family sans
13154 \size normal
13155 Letter
13156 \family default
13157  for a Letter to the editor
13158 \end_layout
13159
13160 \end_deeper
13161 \begin_layout Itemize
13162
13163 \size normal
13164 All title environments except of 
13165 \family sans
13166 Letter
13167 \family default
13168  can have an optional short title.
13169 \end_layout
13170
13171 \begin_layout Itemize
13172 There is a general title environment 
13173 \family sans
13174 Article
13175 \family default
13176  which is not directly supported by the \SpecialChar LyX
13177 .
13178  This can be used as \SpecialChar TeX
13179  code when your document doesn't fit into one of the
13180  other title types.
13181 \end_layout
13182
13183 \begin_layout Standard
13184 For more informations like hints for special table and formula formatting,
13185  look at the IOP author guidelines.
13186 \end_layout
13187
13188 \begin_layout Section
13189 Kluwer
13190 \end_layout
13191
13192 \begin_layout Standard
13193 by 
13194 \noun on
13195 Panayotis Papasotiriou
13196 \end_layout
13197
13198 \begin_layout Subsection
13199 Overview
13200 \end_layout
13201
13202 \begin_layout Standard
13203 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13204  that facilitates electronic manuscript submission to the journals they
13205  publish.
13206  Most known of them (at least in my domain of interest) are 
13207 \emph on
13208 Astrophysics and Space Science
13209 \emph default
13210  and 
13211 \emph on
13212 Solar Physics
13213 \emph default
13214 , but there are many others (see a complete list at 
13215 \begin_inset Flex URL
13216 status open
13217
13218 \begin_layout Plain Layout
13219
13220 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13221 \end_layout
13222
13223 \end_inset
13224
13225 ).
13226  The Kluwer package may be downloaded from the site 
13227 \begin_inset Flex URL
13228 status collapsed
13229
13230 \begin_layout Plain Layout
13231
13232 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13233 \end_layout
13234
13235 \end_inset
13236
13237 .
13238  A complete user guide is contained in that package (but it can also be
13239  downloaded separately).
13240 \end_layout
13241
13242 \begin_layout Standard
13243 \SpecialChar LyX
13244  supports many features of the package but not everything.
13245  However, the \SpecialChar TeX
13246  code needed is reduced to some 
13247 \begin_inset Quotes eld
13248 \end_inset
13249
13250 peculiar
13251 \begin_inset Quotes erd
13252 \end_inset
13253
13254  commands of the package (see
13255 \begin_inset space ~
13256 \end_inset
13257
13258
13259 \begin_inset CommandInset ref
13260 LatexCommand ref
13261 reference "subsec:kluwer_peculiarities"
13262
13263 \end_inset
13264
13265 ).
13266  I have recently used \SpecialChar LyX
13267  to write an article submitted to the 
13268 \emph on
13269 Astrophysics and Space Science
13270 \emph default
13271  without any problem.
13272 \end_layout
13273
13274 \begin_layout Subsection
13275 Writing a paper
13276 \end_layout
13277
13278 \begin_layout Standard
13279 The easiest way to write a paper is to start with the Kluwer template file.
13280  Click on 
13281 \family sans
13282 File\SpecialChar menuseparator
13283 New from
13284 \family default
13285  
13286 \family sans
13287 Template
13288 \family default
13289 , then choose the 
13290 \family typewriter
13291 kluwer.lyx
13292 \family default
13293  template.
13294  This will give an (almost) empty document that includes the most common
13295  fields found in a manuscript and a short description of their use.
13296  As in most templates, simply overwrite the existing text (including the
13297  brackets, 
13298 \family typewriter
13299 <>
13300 \family default
13301 ) with the correct information.
13302 \end_layout
13303
13304 \begin_layout Subsection
13305 Preparing a paper for submission
13306 \end_layout
13307
13308 \begin_layout Standard
13309 As in the AAS\SpecialChar TeX
13310  package, before you submit your paper to a journal you must
13311  
13312 \begin_inset Quotes eld
13313 \end_inset
13314
13315 postprocess
13316 \begin_inset Quotes erd
13317 \end_inset
13318
13319  it as follows.
13320 \end_layout
13321
13322 \begin_layout Enumerate
13323 Export your paper as a \SpecialChar LaTeX
13324  file.
13325  To do this, click on 
13326 \family sans
13327 File\SpecialChar menuseparator
13328 Export\SpecialChar menuseparator
13329 \SpecialChar LaTeX
13330
13331 \family default
13332 .
13333  
13334 \end_layout
13335
13336 \begin_layout Enumerate
13337 Edit the resulting 
13338 \family typewriter
13339 .tex
13340 \family default
13341  file with a text editor and make the following changes
13342 \begin_inset Separator parbreak
13343 \end_inset
13344
13345
13346 \end_layout
13347
13348 \begin_deeper
13349 \begin_layout Enumerate
13350 remove the comment lines before the 
13351 \family typewriter
13352
13353 \backslash
13354 documentclass
13355 \family default
13356  command,
13357 \end_layout
13358
13359 \begin_layout Enumerate
13360 remove everything between (and including) the 
13361 \family typewriter
13362
13363 \backslash
13364 makeatletter
13365 \family default
13366  and 
13367 \family typewriter
13368
13369 \backslash
13370 makeatother
13371 \family default
13372  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13373  preamble.
13374 \end_layout
13375
13376 \begin_layout Standard
13377 Save the resulting 
13378 \family typewriter
13379 .tex
13380 \family default
13381  file.
13382 \end_layout
13383
13384 \end_deeper
13385 \begin_layout Enumerate
13386 Run the 
13387 \family typewriter
13388 .tex
13389 \family default
13390  file through \SpecialChar LaTeX
13391  as many times as necessary (usually up to three).
13392 \end_layout
13393
13394 \begin_layout Enumerate
13395 View the resulting 
13396 \family typewriter
13397 .dvi
13398 \family default
13399  document using, e.
13400 \begin_inset space \thinspace{}
13401 \end_inset
13402
13403 g.
13404 \begin_inset space \space{}
13405 \end_inset
13406
13407
13408 \family sans
13409 xdvi
13410 \family default
13411 , and check if everything is OK (it should, if you didn't make any mistake).
13412 \end_layout
13413
13414 \begin_layout Subsection
13415 \begin_inset Quotes eld
13416 \end_inset
13417
13418 Peculiarities
13419 \begin_inset Quotes erd
13420 \end_inset
13421
13422  of the Kluwer package
13423 \begin_inset CommandInset label
13424 LatexCommand label
13425 name "subsec:kluwer_peculiarities"
13426
13427 \end_inset
13428
13429
13430 \end_layout
13431
13432 \begin_layout Standard
13433 The Kluwer package has the following 
13434 \begin_inset Quotes eld
13435 \end_inset
13436
13437 peculiarities
13438 \begin_inset Quotes erd
13439 \end_inset
13440
13441 .
13442 \end_layout
13443
13444 \begin_layout Enumerate
13445 It is possible to write multiple articles in the same \SpecialChar LaTeX
13446  file
13447 \begin_inset Foot
13448 status collapsed
13449
13450 \begin_layout Plain Layout
13451 I can't imagine any good reason to do this.
13452 \end_layout
13453
13454 \end_inset
13455
13456 .
13457  Each article must be included in the environment 
13458 \begin_inset Quotes eld
13459 \end_inset
13460
13461 article
13462 \begin_inset Quotes erd
13463 \end_inset
13464
13465 .
13466  Unfortunately, this environment cannot be omitted, even if you write just
13467  one article.
13468  Therefore, each article starts with the command 
13469 \family typewriter
13470
13471 \backslash
13472 begin{article}
13473 \family default
13474  and, obviously, ends with the command 
13475 \family typewriter
13476
13477 \backslash
13478 end{article}
13479 \family default
13480 .
13481  Although this can be implemented in \SpecialChar LyX
13482 , I didn't included it, since it looks
13483  ugly and can confuse the novice user.
13484  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13485  code (the
13486  well-known 
13487 \begin_inset Quotes eld
13488 \end_inset
13489
13490 \SpecialChar TeX
13491  code
13492 \begin_inset Quotes erd
13493 \end_inset
13494
13495 ).
13496 \end_layout
13497
13498 \begin_layout Enumerate
13499 Information given at the beginning of the article (i.
13500 \begin_inset space \thinspace{}
13501 \end_inset
13502
13503 e.
13504 \begin_inset space \space{}
13505 \end_inset
13506
13507 title, subtitle, author, institution, running title, running author, abstract
13508  and keywords) must be included in an environment called 
13509 \begin_inset Quotes eld
13510 \end_inset
13511
13512 opening
13513 \begin_inset Quotes erd
13514 \end_inset
13515
13516 .
13517  This is not implemented in \SpecialChar LyX
13518 , so you must enter title, subtitle etc.
13519 \begin_inset space ~
13520 \end_inset
13521
13522 between two \SpecialChar TeX
13523  code lines (
13524 \family typewriter
13525
13526 \backslash
13527 begin{opening}
13528 \family default
13529  and 
13530 \family typewriter
13531
13532 \backslash
13533 end{opening}
13534 \family default
13535 ).
13536 \end_layout
13537
13538 \begin_layout Enumerate
13539 According to the user manual, the label of each bibliography item must be
13540  written as 
13541 \family typewriter
13542
13543 \backslash
13544 protect
13545 \backslash
13546 citeauthoryear{
13547 \family default
13548 \emph on
13549 author(s)
13550 \family typewriter
13551 \emph default
13552 }{
13553 \family default
13554 \emph on
13555 year
13556 \family typewriter
13557 \emph default
13558 }
13559 \family default
13560 .
13561 \end_layout
13562
13563 \begin_layout Standard
13564 The 
13565 \family typewriter
13566 kluwer.lyx
13567 \family default
13568  template takes care of all these 
13569 \begin_inset Quotes eld
13570 \end_inset
13571
13572 peculiarities
13573 \begin_inset Quotes erd
13574 \end_inset
13575
13576 .
13577  If you start a new paper using this template you don't need to do anything
13578  special.
13579  Just 
13580 \end_layout
13581
13582 \begin_layout Enumerate
13583 don't delete the \SpecialChar TeX
13584  code included in the template, and
13585 \end_layout
13586
13587 \begin_layout Enumerate
13588 copy the example bibliography item included in the template and modify it
13589  as necessary to enter new bibliography items.
13590 \end_layout
13591
13592 \begin_layout Section
13593 Koma-Script
13594 \end_layout
13595
13596 \begin_layout Standard
13597 by 
13598 \noun on
13599 Bernd Rellermeyer
13600 \end_layout
13601
13602 \begin_layout Subsection
13603 Overview
13604 \end_layout
13605
13606 \begin_layout Standard
13607 The \SpecialChar LyX
13608  document classes 
13609 \emph on
13610 article (koma-script)
13611 \emph default
13612
13613 \emph on
13614 report (koma-script)
13615 \emph default
13616
13617 \emph on
13618 book
13619 \emph default
13620  
13621 \emph on
13622 (koma-script)
13623 \emph default
13624 , and 
13625 \emph on
13626 letter
13627 \emph default
13628  
13629 \emph on
13630 (koma-script)
13631 \emph default
13632  correspond to the \SpecialChar LaTeX
13633  document classes 
13634 \family typewriter
13635 scrartcl.cls
13636 \family default
13637
13638 \family typewriter
13639 scrreprt.cls
13640 \family default
13641
13642 \family typewriter
13643 scrbook.cls
13644 \family default
13645 , and 
13646 \family typewriter
13647 scrlettr.cls
13648 \family default
13649 , resp.
13650 \begin_inset space ~
13651 \end_inset
13652
13653 of the Koma-Script family.
13654  They are replacements for the standard document classes 
13655 \family typewriter
13656 article.cls
13657 \family default
13658
13659 \family typewriter
13660 report.cls
13661 \family default
13662
13663 \family typewriter
13664 book.cls
13665 \family default
13666  and 
13667 \family typewriter
13668 letter.cls
13669 \family default
13670 , resp., and fit better to European typography conventions in a number of
13671  points.
13672 \end_layout
13673
13674 \begin_layout Itemize
13675 Standard character size is 11pt in 
13676 \emph on
13677 article (koma-script)
13678 \emph default
13679
13680 \emph on
13681 report (koma-script)
13682 \emph default
13683 , and 
13684 \emph on
13685 book (koma-script)
13686 \emph default
13687 , and 12pt in 
13688 \emph on
13689 letter (koma-script)
13690 \emph default
13691 .
13692 \end_layout
13693
13694 \begin_layout Itemize
13695 Headings, labels of the description environment, and a number of elements
13696  of the 
13697 \emph on
13698 letter (koma-script)
13699 \emph default
13700  document class are set in a bold sans serif font.
13701 \begin_inset Foot
13702 status collapsed
13703
13704 \begin_layout Plain Layout
13705 There is a big difference between the bold sans serif old cm fonts and new
13706  ec fonts, especially in the appearance of headings.
13707  In comparison, the ec bold sans serif fonts look a bit thin.
13708  Here the \SpecialChar LaTeX
13709  package 
13710 \family typewriter
13711 cmsd.sty by
13712 \family default
13713  
13714 \shape smallcaps
13715 Walter Schmidt
13716 \shape default
13717  helps to produce the 
13718 \begin_inset Quotes eld
13719 \end_inset
13720
13721 usual
13722 \begin_inset Quotes erd
13723 \end_inset
13724
13725  appearance when using the ec fonts.
13726 \end_layout
13727
13728 \end_inset
13729
13730  The numbering of chapter headings is made in the same way as the numbering
13731  of section headings, that is without the extra line 
13732 \begin_inset Quotes eld
13733 \end_inset
13734
13735 Chapter\SpecialChar ldots
13736
13737 \begin_inset Quotes erd
13738 \end_inset
13739
13740 .
13741  In addition, the appearance of the headings can be modified by using a
13742  number of options (in \SpecialChar LyX
13743  to be entered in the field 
13744 \family sans
13745 Extra
13746 \begin_inset space ~
13747 \end_inset
13748
13749 Options
13750 \family default
13751  of the dialog 
13752 \family sans
13753 Layout\SpecialChar menuseparator
13754 Document
13755 \family default
13756 ).
13757  
13758 \end_layout
13759
13760 \begin_layout Itemize
13761 The main means in the Koma-Script document classes to design the type area
13762  are the options 
13763 \family sans
13764 BCOR
13765 \family default
13766  and 
13767 \family sans
13768 DIV
13769 \family default
13770  (in \SpecialChar LyX
13771  to be entered in the extra class options field in the dialog 
13772 \family sans
13773 Document\SpecialChar menuseparator
13774 Settings
13775 \family default
13776 ).
13777  They make a clearer modification of page margins possible as do the options
13778  of the dialog 
13779 \family sans
13780 Document\SpecialChar menuseparator
13781 Settings
13782 \family default
13783 .
13784  
13785 \end_layout
13786
13787 \begin_layout Itemize
13788 The \SpecialChar LaTeX
13789  document classes of the Koma-Script family define a number of additional
13790  commands.
13791  Those part of it which makes sense in \SpecialChar LyX
13792  is implemented in corresponding
13793  paragraph types.
13794 \end_layout
13795
13796 \begin_layout Standard
13797 Detailed descriptions of the \SpecialChar LaTeX
13798  document classes of the Koma-Script family
13799  can be found in the Koma-Script documentation 
13800 \emph on
13801 scrguide
13802 \emph default
13803  (German) and 
13804 \emph on
13805 scrguien
13806 \emph default
13807  (English).
13808 \end_layout
13809
13810 \begin_layout Subsection
13811 article (koma-script), report (koma-script), and book (koma-script)
13812 \end_layout
13813
13814 \begin_layout Standard
13815 The document classes 
13816 \emph on
13817 article (koma-script)
13818 \emph default
13819
13820 \emph on
13821 report (koma-script)
13822 \emph default
13823 , and 
13824 \emph on
13825 book
13826 \emph default
13827  
13828 \emph on
13829 (koma-script)
13830 \emph default
13831  are implemented in the layout files 
13832 \family typewriter
13833 scrartcl.layout
13834 \family default
13835
13836 \family typewriter
13837 scrreprt.layout
13838 \family default
13839 , and 
13840 \family typewriter
13841 scrbook.layout
13842 \family default
13843 , resp.
13844  They contain all the paragraph types of the corresponding standard document
13845  classes 
13846 \emph on
13847 article
13848 \emph default
13849
13850 \emph on
13851 report
13852 \emph default
13853 , and 
13854 \emph on
13855 book
13856 \emph default
13857 , resp., partly modified, with the exception of the \SpecialChar LyX
13858  specific 
13859 \family sans
13860 List
13861 \family default
13862 -type, which is replaced by the new 
13863 \family sans
13864 Labeling
13865 \family default
13866 -type having the same functionality.
13867  Beside the 
13868 \family sans
13869 Labeling
13870 \family default
13871 -Type there is a number of new paragraph types added.
13872  They are 
13873 \emph on
13874 not
13875 \emph default
13876  part of 
13877 \emph on
13878 letter (koma-script)
13879 \emph default
13880 .
13881 \end_layout
13882
13883 \begin_layout Itemize
13884
13885 \family sans
13886 Addpart, Addchap
13887 \family default
13888
13889 \family sans
13890 Addsec
13891 \family default
13892 : are equivalents to 
13893 \family sans
13894 Part*, Chapter*
13895 \family default
13896  and 
13897 \family sans
13898 Section*
13899 \family default
13900 , resp., additionally inserting an entry in the table of contents.
13901  
13902 \family sans
13903 Addpart
13904 \family default
13905  and 
13906 \family sans
13907 Addchap
13908 \family default
13909  are not contained in 
13910 \emph on
13911 article (koma-script)
13912 \emph default
13913 .
13914 \end_layout
13915
13916 \begin_layout Itemize
13917
13918 \family sans
13919 Addchap*
13920 \family default
13921
13922 \family sans
13923 Addsec*
13924 \family default
13925 : behave exactly as 
13926 \family sans
13927 Addchap
13928 \family default
13929  and 
13930 \family sans
13931 Addsec
13932 \family default
13933 , resp., additionally clearing running heads.
13934  
13935 \family sans
13936 Addchap*
13937 \family default
13938  is not contained in 
13939 \emph on
13940 article (koma-script)
13941 \emph default
13942 .
13943 \begin_inset Foot
13944 status collapsed
13945
13946 \begin_layout Plain Layout
13947 There is also an 
13948 \family typewriter
13949
13950 \backslash
13951 addpart*
13952 \family default
13953  command in 
13954 \emph on
13955 book (koma-script)
13956 \emph default
13957  and in 
13958 \emph on
13959 report (koma-script)
13960 \emph default
13961 , but since this is identical to 
13962 \family sans
13963 Part*
13964 \family default
13965 , is has not been implemented in \SpecialChar LyX
13966 .
13967 \end_layout
13968
13969 \end_inset
13970
13971
13972 \end_layout
13973
13974 \begin_layout Itemize
13975
13976 \family sans
13977 Minisec
13978 \family default
13979 : generates a heading directly above the following paragraph in the standard
13980  character size without affecting the structure of the document.
13981 \end_layout
13982
13983 \begin_layout Itemize
13984
13985 \family sans
13986 Captionabove
13987 \family default
13988  and 
13989 \family sans
13990 Captionbelow
13991 \family default
13992  are special captions which respect the different space settings needed
13993  for captions placed above or below an element (if you follow strict typographic
13994  rules, you might want to place table captions always above the table).
13995  You can also use the class option 
13996 \family typewriter
13997 tablecaptionsabove
13998 \family default
13999 , which will switch 
14000 \family sans
14001 caption
14002 \family default
14003  to 
14004 \family sans
14005 captionabove
14006 \family default
14007  for tables and 
14008 \family sans
14009 captionbelow
14010 \family default
14011  for figures.
14012  You need at least Koma-Script version 2.8q to use this.
14013 \end_layout
14014
14015 \begin_layout Itemize
14016
14017 \family sans
14018 Dictum
14019 \family default
14020 : can be used to set a bonmot, e.
14021 \begin_inset space \thinspace{}
14022 \end_inset
14023
14024 g.
14025 \begin_inset space \space{}
14026 \end_inset
14027
14028 at the beginning of a chapter.
14029  If you use the optional argument (
14030 \family sans
14031 Insert\SpecialChar menuseparator
14032 Short
14033 \begin_inset space ~
14034 \end_inset
14035
14036 Title
14037 \family default
14038 ), you can insert the dictum's author there.
14039  Dictum and author are separated by a line.
14040  You need at least Koma-Script version 2.8q to use this.
14041  
14042 \family sans
14043 Dictum
14044 \family default
14045  is not contained in 
14046 \emph on
14047 article (koma-script)
14048 \emph default
14049 .
14050 \end_layout
14051
14052 \begin_layout Standard
14053 The following types, together with the standard types 
14054 \family sans
14055 Title
14056 \family default
14057
14058 \family sans
14059 Author
14060 \family default
14061 , and 
14062 \family sans
14063 Date
14064 \family default
14065 , form the title area of the document.
14066  They must be entered ahead of the first 
14067 \begin_inset Quotes eld
14068 \end_inset
14069
14070 ordinary
14071 \begin_inset Quotes erd
14072 \end_inset
14073
14074  paragraph.
14075 \begin_inset Foot
14076 status collapsed
14077
14078 \begin_layout Plain Layout
14079 The corresponding \SpecialChar LaTeX
14080  commands must appear before the 
14081 \family typewriter
14082
14083 \backslash
14084 maketitle
14085 \family default
14086  command.
14087 \end_layout
14088
14089 \end_inset
14090
14091  When such a type is used more than once, the latter usage overwrites the
14092  former one, that means, for every type only the latest usage is valid.
14093  The order of the different types however has, like 
14094 \family sans
14095 Title
14096 \family default
14097
14098 \family sans
14099 Author
14100 \family default
14101 , and 
14102 \family sans
14103 Date
14104 \family default
14105 , no effect on the appearance of the produced document.
14106 \end_layout
14107
14108 \begin_layout Itemize
14109
14110 \family sans
14111 Subject
14112 \family default
14113 : produces a centered paragraph above the ordinary title (
14114 \family sans
14115 Title
14116 \family default
14117
14118 \family sans
14119 Author
14120 \family default
14121
14122 \family sans
14123 Date
14124 \family default
14125 ) for the subject of the document.
14126 \end_layout
14127
14128 \begin_layout Itemize
14129
14130 \family sans
14131 Publishers
14132 \family default
14133 : produces a centered paragraph below the ordinary title (
14134 \family sans
14135 Title
14136 \family default
14137
14138 \family sans
14139 Author
14140 \family default
14141
14142 \family sans
14143 Date
14144 \family default
14145 ) for the publishers' name.
14146 \end_layout
14147
14148 \begin_layout Itemize
14149
14150 \family sans
14151 Dedication
14152 \family default
14153 : in 
14154 \emph on
14155 report (koma-script)
14156 \emph default
14157  and 
14158 \emph on
14159 book (koma-script)
14160 \emph default
14161  produces a centered paragraph on its own page behind the title page, or
14162  in 
14163 \emph on
14164 article (koma-script)
14165 \emph default
14166  produces a centered paragraph below the ordinary title (
14167 \family sans
14168 Title
14169 \family default
14170
14171 \family sans
14172 Author
14173 \family default
14174
14175 \family sans
14176 Date
14177 \family default
14178
14179 \family sans
14180 Publishers
14181 \family default
14182 ) for a dedication.
14183 \end_layout
14184
14185 \begin_layout Itemize
14186
14187 \family sans
14188 Titlehead
14189 \family default
14190 : produces a left aligned paragraph above the ordinary title (
14191 \family sans
14192 Title
14193 \family default
14194
14195 \family sans
14196 Author
14197 \family default
14198
14199 \family sans
14200 Date
14201 \family default
14202
14203 \family sans
14204 Subject
14205 \family default
14206 ) for a document`s head.
14207 \end_layout
14208
14209 \begin_layout Itemize
14210
14211 \family sans
14212 Uppertitleback
14213 \family default
14214 : produces in a double-sided print in 
14215 \emph on
14216 report (koma-script)
14217 \emph default
14218  and 
14219 \emph on
14220 book (koma-script)
14221 \emph default
14222  a left-aligned paragraph at the top of the title page`s back or has no
14223  effect in a single-sided print or in 
14224 \emph on
14225 article (koma-script)
14226 \emph default
14227 .
14228 \end_layout
14229
14230 \begin_layout Itemize
14231
14232 \family sans
14233 Lowertitleback
14234 \family default
14235 : produces in a double-sided print in 
14236 \emph on
14237 report (koma-script)
14238 \emph default
14239  and 
14240 \emph on
14241 book (koma-script)
14242 \emph default
14243  a left-aligned paragraph at the bottom of the title page`s back or has
14244  no effect in a single-sided print or in 
14245 \emph on
14246 article (koma-script)
14247 \emph default
14248 .
14249 \end_layout
14250
14251 \begin_layout Itemize
14252
14253 \family sans
14254 Extratitle
14255 \family default
14256 : produces a special 
14257 \begin_inset Quotes eld
14258 \end_inset
14259
14260 dirty
14261 \begin_inset Quotes erd
14262 \end_inset
14263
14264  page ahead of the actual document containing a paragraph without special
14265  formatting.
14266 \end_layout
14267
14268 \begin_layout Standard
14269 The layout files for the document classes 
14270 \emph on
14271 article (koma-script)
14272 \emph default
14273
14274 \emph on
14275 report (koma-script)
14276 \emph default
14277 , and 
14278 \emph on
14279 book (koma-script)
14280 \emph default
14281  do include the file 
14282 \family typewriter
14283 scrmacros.inc
14284 \family default
14285 .
14286  This is thought of as a place to define your own types.
14287  Copy scrmacros
14288 \family typewriter
14289 .inc
14290 \family default
14291  in your personal layout directory and edit the file!
14292 \end_layout
14293
14294 \begin_layout Subsection
14295 letter (koma-script)
14296 \end_layout
14297
14298 \begin_layout Standard
14299 \noindent
14300 The document class 
14301 \emph on
14302 letter (koma-script)
14303 \emph default
14304  is implemented in the layout file 
14305 \family typewriter
14306 scrlettr.layout
14307 \family default
14308 .
14309  It contains all the paragraph types of the corresponding standard document
14310  class 
14311 \emph on
14312 letter
14313 \emph default
14314 , partly modified, with the exception of the \SpecialChar LyX
14315  specific types 
14316 \family sans
14317 \SpecialChar LyX
14318 -Code
14319 \family default
14320  and 
14321 \family sans
14322 Comment
14323 \family default
14324  and the 
14325 \family sans
14326 List
14327 \family default
14328  type, which is replaced by the new 
14329 \family sans
14330 Labeling
14331 \family default
14332  type.
14333  In addition, it contains, in contrast to the standard document class, the
14334  standard types 
14335 \family sans
14336 \SpecialChar LaTeX
14337
14338 \family default
14339
14340 \family sans
14341 Quotation
14342 \family default
14343
14344 \family sans
14345 Quote
14346 \family default
14347 , and 
14348 \family sans
14349 Verse
14350 \family default
14351 .
14352  Furthermore, there are a number of new letter specific types.
14353 \end_layout
14354
14355 \begin_layout Standard
14356 The appearance of the letter produced by this document class can be controlled
14357  by a number of \SpecialChar LaTeX
14358  commands, which you can put in the \SpecialChar LaTeX
14359  preamble.
14360 \begin_inset Foot
14361 status collapsed
14362
14363 \begin_layout Plain Layout
14364 For example, the standard appearance of the letter`s heading, consisting
14365  of name and address, is quite self-willed.
14366  An 
14367 \begin_inset Quotes eld
14368 \end_inset
14369
14370 ordinary
14371 \begin_inset Quotes erd
14372 \end_inset
14373
14374  heading is produced by the following \SpecialChar LaTeX
14375  commands in the preamble:
14376 \end_layout
14377
14378 \begin_layout LyX-Code
14379
14380 \backslash
14381 firsthead{
14382 \backslash
14383 parbox[b]{
14384 \backslash
14385 textwidth}
14386 \end_layout
14387
14388 \begin_layout LyX-Code
14389   {
14390 \backslash
14391 ignorespaces 
14392 \backslash
14393 fromname
14394 \backslash
14395
14396 \backslash
14397  
14398 \backslash
14399 ignorespaces 
14400 \backslash
14401 fromaddress}} 
14402 \end_layout
14403
14404 \begin_layout LyX-Code
14405
14406 \backslash
14407 nexthead{
14408 \backslash
14409 parbox[b]{
14410 \backslash
14411 textwidth}
14412 \end_layout
14413
14414 \begin_layout LyX-Code
14415   {
14416 \backslash
14417 ignorespaces 
14418 \backslash
14419 fromname 
14420 \backslash
14421 hfill 
14422 \backslash
14423 ignorespaces 
14424 \backslash
14425 pagename
14426 \backslash
14427  
14428 \backslash
14429 thepage}}
14430 \end_layout
14431
14432 \end_inset
14433
14434  A detailed German description of such \SpecialChar LaTeX
14435  commands can be found in the Koma-Script
14436  documentation 
14437 \emph on
14438 scrguide
14439 \emph default
14440 .
14441  With it, the letter's author can produce his personal letter layout.
14442 \end_layout
14443
14444 \begin_layout Standard
14445 The types 
14446 \family sans
14447 Letter
14448 \family default
14449  and 
14450 \family sans
14451 Opening
14452 \family default
14453  define the beginning of the letter and must be used in every letter.
14454  To emphasize them in the \SpecialChar LyX
14455  document class, they are marked with the letter
14456  
14457 \shape italic
14458 L
14459 \shape default
14460  or 
14461 \shape italic
14462 O
14463 \shape default
14464 , resp.
14465 \begin_inset space ~
14466 \end_inset
14467
14468 in the left margin.
14469  It is possible to write any number of letters in one file.
14470  An 
14471 \family sans
14472 Opening
14473 \family default
14474  type produces a new letter using the same addressee and a 
14475 \family sans
14476 Letter
14477 \family default
14478  type produces a new addressee.
14479  The types 
14480 \family sans
14481 Closing
14482 \family default
14483
14484 \family sans
14485 PS
14486 \family default
14487
14488 \family sans
14489 CC
14490 \family default
14491 , and 
14492 \family sans
14493 Encl
14494 \family default
14495  are ordinary paragraph types and can also be used several times in one
14496  and the same letter.
14497 \end_layout
14498
14499 \begin_layout Itemize
14500
14501 \family sans
14502 Letter
14503 \family default
14504 : produces a paragraph for the addressee and implicitly defines the beginning
14505  of the letter.
14506 \end_layout
14507
14508 \begin_layout Itemize
14509
14510 \family sans
14511 Opening
14512 \family default
14513 : produces a paragraph for the form of address and implicitly produces a
14514  new letter.
14515 \end_layout
14516
14517 \begin_layout Itemize
14518
14519 \family sans
14520 Closing
14521 \family default
14522 : produces a paragraph for a close.
14523 \end_layout
14524
14525 \begin_layout Itemize
14526
14527 \family sans
14528 PS
14529 \family default
14530 : produces a paragraph for a postscript.
14531 \end_layout
14532
14533 \begin_layout Itemize
14534
14535 \family sans
14536 CC
14537 \family default
14538 : produces a paragraph for a distribution list.
14539 \end_layout
14540
14541 \begin_layout Itemize
14542
14543 \family sans
14544 Encl
14545 \family default
14546 : produces a paragraph for enclosures.
14547 \end_layout
14548
14549 \begin_layout Standard
14550 The types 
14551 \family sans
14552 Name
14553 \family default
14554
14555 \family sans
14556 Signature
14557 \family default
14558
14559 \family sans
14560 Address
14561 \family default
14562
14563 \family sans
14564 Telephone
14565 \family default
14566
14567 \family sans
14568 Place
14569 \family default
14570
14571 \family sans
14572 Backaddress
14573 \family default
14574
14575 \family sans
14576 Specialmail
14577 \family default
14578
14579 \family sans
14580 Location
14581 \family default
14582
14583 \family sans
14584 Title
14585 \family default
14586 , and 
14587 \family sans
14588 Subject
14589 \family default
14590  are input types provided with a label to enter information, which will
14591  be processed by the document class.
14592 \begin_inset Foot
14593 status open
14594
14595 \begin_layout Plain Layout
14596 It could be seen as a matter of inconsequence, that the types 
14597 \family sans
14598 Letter
14599 \family default
14600  and 
14601 \family sans
14602 Opening
14603 \family default
14604  described above are not such input types as well.
14605  Because of the special meaning of those types, however, I have implemented
14606  them as ordinary paragraph types with a one letter mark in the left margin.
14607  Moreover, it would affect my feeling of symmetry, if the 
14608 \family sans
14609 Opening
14610 \family default
14611  type and the 
14612 \family sans
14613 Closing
14614 \family default
14615  type had such a serious different appearance.
14616 \end_layout
14617
14618 \end_inset
14619
14620  The types must be used ahead of the corresponding 
14621 \family sans
14622 Opening
14623 \family default
14624  type.
14625 \end_layout
14626
14627 \begin_layout Standard
14628 An implementation of these types in a WYSIWYG fashion does not seem to make
14629  sense, because the real appearance of the produced letter does not only
14630  depend on the usage of the particular type, but also on other factors.
14631  For example, a signature entered in the 
14632 \family sans
14633 Signature
14634 \family default
14635  type will in the standard behavior appear in the produced letter only,
14636  when in the same letter also a 
14637 \family sans
14638 Closing
14639 \family default
14640  type is used.
14641  The entered value of the 
14642 \family sans
14643 Telephone
14644 \family default
14645  type will in the standard behavior not appear in the produced letter at
14646  all.
14647  The possibility to design the letter`s heading freely is already indicated
14648  in a footnote above.
14649 \end_layout
14650
14651 \begin_layout Standard
14652 The input types can also be used as empty paragraphs.
14653  This makes sense e.
14654 \begin_inset space \thinspace{}
14655 \end_inset
14656
14657 g.
14658 \begin_inset space \space{}
14659 \end_inset
14660
14661 for the 
14662 \family sans
14663 Signature
14664 \family default
14665  type.
14666  If the 
14667 \family sans
14668 Signature
14669 \family default
14670  type is not used at all, in the standard behavior the value of the 
14671 \family sans
14672 Name
14673 \family default
14674  type is used as signature, whereas if an empty 
14675 \family sans
14676 Signature
14677 \family default
14678  type is used, no signature value is defined.
14679 \end_layout
14680
14681 \begin_layout Standard
14682 By using the input types it is possible to write a letter template, containing
14683  filled input types with your personal dates (name, address, etc.) and empty
14684  input types for other dates you want to enter.
14685 \end_layout
14686
14687 \begin_layout Itemize
14688
14689 \family sans
14690 Name
14691 \family default
14692 : sender's name, in the standard behavior appears as a centered paragraph
14693  in small caps in the letter`s heading.
14694 \end_layout
14695
14696 \begin_layout Itemize
14697
14698 \family sans
14699 Signature
14700 \family default
14701 : sender's signature, in the standard behavior appears below the 
14702 \family sans
14703 Closing
14704 \family default
14705  type.
14706  If no 
14707 \family sans
14708 Signature
14709 \family default
14710  type is used, the value of the 
14711 \family sans
14712 Name
14713 \family default
14714  type appears instead.
14715 \end_layout
14716
14717 \begin_layout Itemize
14718
14719 \family sans
14720 Address
14721 \family default
14722 : sender's address, in the standard behavior appears in a centered paragraph
14723  in the letter`s heading below the sender's name.
14724 \end_layout
14725
14726 \begin_layout Itemize
14727
14728 \family sans
14729 Telephone
14730 \family default
14731 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
14732  variable
14733  
14734 \family typewriter
14735
14736 \backslash
14737 telephonenum
14738 \family default
14739 .
14740 \end_layout
14741
14742 \begin_layout Itemize
14743
14744 \family sans
14745 Place
14746 \family default
14747 : place of the letter`s making.
14748 \end_layout
14749
14750 \begin_layout Itemize
14751
14752 \family sans
14753 Date
14754 \family default
14755 : date of the letter`s making.
14756  
14757 \family sans
14758 Place
14759 \family default
14760  and 
14761 \family sans
14762 Date
14763 \family default
14764 , in the standard behavior, produce the place and the date in a right-aligned
14765  line below the addressee's field.
14766  If an empty 
14767 \family sans
14768 Date
14769 \family default
14770  type is used, neither place nor date appear, independent of the value of
14771  the 
14772 \family sans
14773 Place
14774 \family default
14775  type.
14776  If no 
14777 \family sans
14778 Date
14779 \family default
14780  type is used, the date of the letter `s production is used.
14781 \end_layout
14782
14783 \begin_layout Itemize
14784
14785 \family sans
14786 Backaddress
14787 \family default
14788 : sender`s back address, in the standard behavior appears above the addressee's
14789  field in a small sans serif font.
14790 \end_layout
14791
14792 \begin_layout Itemize
14793
14794 \family sans
14795 Specialmail
14796 \family default
14797 : special mail information, in the standard behavior appears underlined
14798  above the addressee's field below the back address.
14799 \end_layout
14800
14801 \begin_layout Itemize
14802
14803 \family sans
14804 Location
14805 \family default
14806 : additional information, in the standard behavior appears on right side
14807  below the addressee`s field.
14808 \end_layout
14809
14810 \begin_layout Itemize
14811
14812 \family sans
14813 Title
14814 \family default
14815 : the letter's title, in the standard behavior appears in a big, bold, sans
14816  serif font above the subject.
14817 \end_layout
14818
14819 \begin_layout Itemize
14820
14821 \family sans
14822 Subject
14823 \family default
14824 : the letter's subject, in the standard behavior appears in a bold font
14825  above the 
14826 \family sans
14827 Opening
14828 \family default
14829  paragraph.
14830 \end_layout
14831
14832 \begin_layout Standard
14833 The types 
14834 \family sans
14835 Yourref
14836 \family default
14837
14838 \family sans
14839 Yourmail
14840 \family default
14841
14842 \family sans
14843 Myref
14844 \family default
14845
14846 \family sans
14847 Customer
14848 \family default
14849 , and 
14850 \family sans
14851 Invoice
14852 \family default
14853  produce a business letter like line above the 
14854 \family sans
14855 Title
14856 \family default
14857  line containing the fields 
14858 \begin_inset Quotes eld
14859 \end_inset
14860
14861 Your ref.
14862 \begin_inset Quotes erd
14863 \end_inset
14864
14865
14866 \begin_inset Quotes eld
14867 \end_inset
14868
14869 Your letter of
14870 \begin_inset Quotes erd
14871 \end_inset
14872
14873
14874 \begin_inset Quotes eld
14875 \end_inset
14876
14877 Our ref.
14878 \begin_inset Quotes erd
14879 \end_inset
14880
14881
14882 \begin_inset Quotes eld
14883 \end_inset
14884
14885 Customer no.
14886 \begin_inset Quotes erd
14887 \end_inset
14888
14889
14890 \begin_inset Quotes eld
14891 \end_inset
14892
14893 Invoice no.
14894 \begin_inset Quotes erd
14895 \end_inset
14896
14897 , and 
14898 \begin_inset Quotes eld
14899 \end_inset
14900
14901 Date
14902 \begin_inset Quotes erd
14903 \end_inset
14904
14905 .
14906  For the date field, the value of the 
14907 \family sans
14908 Date
14909 \family default
14910  type is used.
14911  If one of these 
14912 \begin_inset Quotes eld
14913 \end_inset
14914
14915 business letter types
14916 \begin_inset Quotes erd
14917 \end_inset
14918
14919  is used, the value of the 
14920 \family sans
14921 Place
14922 \family default
14923  type however does not appear, but only the \SpecialChar LaTeX
14924  variable 
14925 \family typewriter
14926
14927 \backslash
14928 fromplace
14929 \family default
14930  is set.
14931  The ordinary output of place and date in a right-aligned line below the
14932  addressee`s field is suppressed.
14933  The types are implemented as input types provided with a label and must
14934  be used ahead of the corresponding 
14935 \family sans
14936 Opening
14937 \family default
14938  type.
14939 \end_layout
14940
14941 \begin_layout Itemize
14942
14943 \family sans
14944 Yourref
14945 \family default
14946 : Your ref.
14947 \end_layout
14948
14949 \begin_layout Itemize
14950
14951 \family sans
14952 Yourmail
14953 \family default
14954 : Your letter of.
14955 \end_layout
14956
14957 \begin_layout Itemize
14958
14959 \family sans
14960 Myref
14961 \family default
14962 : Our ref.
14963 \end_layout
14964
14965 \begin_layout Itemize
14966
14967 \family sans
14968 Customer
14969 \family default
14970 : Customer no.
14971 \end_layout
14972
14973 \begin_layout Itemize
14974
14975 \family sans
14976 Invoice
14977 \family default
14978 : Invoice no.
14979 \end_layout
14980
14981 \begin_layout Subsection
14982 The new letter class: letter (koma-script v.2)
14983 \end_layout
14984
14985 \begin_layout Standard
14986 by 
14987 \noun on
14988 Jürgen Spitzmüller
14989 \end_layout
14990
14991 \begin_layout Standard
14992 \begin_inset VSpace medskip
14993 \end_inset
14994
14995
14996 \end_layout
14997
14998 \begin_layout Standard
14999 \noindent
15000 Koma-Script version 2.8 has introduced a new letter class 
15001 \family typewriter
15002 scrlttr2
15003 \family default
15004  which supersedes the now unsupported 
15005 \family typewriter
15006 scrlettr
15007 \family default
15008 .
15009  It has — on the \SpecialChar LaTeX
15010  side — a completely new interface and is not compatible
15011  with the old class.
15012  Therefore, \SpecialChar LyX
15013  supports both, though it is recommended you use the new class.
15014 \end_layout
15015
15016 \begin_layout Standard
15017 This class covers the same functionality as 
15018 \emph on
15019 letter (koma-script),
15020 \emph default
15021  and a few more.
15022  The basic items are 
15023 \family sans
15024 Address
15025 \family default
15026  (receiver's address, same as 
15027 \family sans
15028 Letter
15029 \family default
15030  in the old layout), 
15031 \family sans
15032 Opening
15033 \family default
15034 , and 
15035 \family sans
15036 Closing
15037 \family default
15038 .
15039  
15040 \family sans
15041 NextAddress
15042 \family default
15043  will start a new letter (i.
15044 \begin_inset space \thinspace{}
15045 \end_inset
15046
15047 e.
15048 \begin_inset space \space{}
15049 \end_inset
15050
15051 you can write several letters per document).
15052  New elements are sender's 
15053 \family sans
15054 E-Mail
15055 \family default
15056
15057 \family sans
15058 URL
15059 \family default
15060
15061 \family sans
15062 Fax
15063 \family default
15064
15065 \family sans
15066 Bank
15067 \family default
15068  and the possibility to use a 
15069 \family sans
15070 Logo
15071 \family default
15072  (via 
15073 \family sans
15074 Insert\SpecialChar menuseparator
15075 Graphics
15076 \family default
15077 ) in the header.
15078 \end_layout
15079
15080 \begin_layout Standard
15081 The biggest improvement is, though, that the letter's layout is configurable
15082  to meet almost any needs.
15083  This can be done via the preamble or with a special style file (Letter
15084  Class Option, extension 
15085 \family typewriter
15086 *.lco
15087 \family default
15088 ), that will be read in as a class option.
15089 \begin_inset Foot
15090 status collapsed
15091
15092 \begin_layout Plain Layout
15093 The KOMA package comes with some default 
15094 \family typewriter
15095 *.lco
15096 \family default
15097  files.
15098  There is, for instance, a 
15099 \family typewriter
15100 DIN.lco
15101 \family default
15102  file that follows german typesetting rules, or a 
15103 \family typewriter
15104 KOMAold.lco
15105 \family default
15106  that provides the default layout of the old 
15107 \family typewriter
15108 scrlettr
15109 \family default
15110  class.
15111  The latter can be loaded with the class option 
15112 \family typewriter
15113 KOMAold
15114 \family default
15115 , inserted via the 
15116 \family sans
15117 \bar under
15118 L
15119 \bar default
15120 ayout\SpecialChar menuseparator
15121
15122 \bar under
15123 D
15124 \bar default
15125 ocument\SpecialChar menuseparator
15126 Extra Options
15127 \family default
15128  field.
15129 \end_layout
15130
15131 \end_inset
15132
15133  Have a look at the 
15134 \emph on
15135 koma-letter2
15136 \emph default
15137  template that is included in \SpecialChar LyX
15138  for examples.
15139  A detailed description is to be found in the Koma-Script documentation
15140  (
15141 \emph on
15142 scrguide
15143 \emph default
15144 ).
15145 \end_layout
15146
15147 \begin_layout Subsection
15148 Problems
15149 \end_layout
15150
15151 \begin_layout Standard
15152 Visualizing the Koma-Script document classes in \SpecialChar LyX
15153 , the \SpecialChar LyX
15154  internals cause some
15155  problems.
15156 \end_layout
15157
15158 \begin_layout Itemize
15159 The chapter number of a 
15160 \family sans
15161 Chapter
15162 \family default
15163  type appears on a line of its own above the chapter heading instead of
15164  appearing in the same line ahead of it.
15165  The cause for that is the \SpecialChar LyX
15166  internal behavior for the labeltype 
15167 \family sans
15168 Counter_Chapter
15169 \family default
15170  in the layout file.
15171 \end_layout
15172
15173 \begin_layout Itemize
15174 The headings of the types 
15175 \family sans
15176 Addchap
15177 \family default
15178  and 
15179 \family sans
15180 Addsec
15181 \family default
15182  are only put in the 
15183 \begin_inset Quotes eld
15184 \end_inset
15185
15186 true
15187 \begin_inset Quotes erd
15188 \end_inset
15189
15190  \SpecialChar LaTeX
15191  table of contents, but not in the \SpecialChar LyX
15192  table of contents (
15193 \family sans
15194 Document\SpecialChar menuseparator
15195 Table
15196 \begin_inset space ~
15197 \end_inset
15198
15199 of
15200 \begin_inset space ~
15201 \end_inset
15202
15203 Contents
15204 \family default
15205 ).
15206 \end_layout
15207
15208 \begin_layout Itemize
15209 The paragraphs in a 
15210 \emph on
15211 letter
15212 \emph default
15213  document class appear in a skip separation mode, not indented.
15214  This is the standard behavior, no special \SpecialChar LaTeX
15215  commands are needed for that.
15216  But in the 
15217 \family sans
15218 Document\SpecialChar menuseparator
15219 Settings
15220 \family default
15221  dialog the corresponding radio button indicates 
15222 \family sans
15223 Indent
15224 \family default
15225 .
15226  A 
15227 \family sans
15228 Skip
15229 \family default
15230  value always has the effect that extra \SpecialChar LaTeX
15231  commands are inserted in the document
15232  to produce the gap, which is not what is wanted in this case.
15233 \end_layout
15234
15235 \begin_layout Section
15236 Memoir
15237 \end_layout
15238
15239 \begin_layout Standard
15240 By 
15241 \noun on
15242 Jürgen Spitzmüller
15243 \end_layout
15244
15245 \begin_layout Subsection
15246 Overview
15247 \end_layout
15248
15249 \begin_layout Standard
15250 Memoir is a very powerful and constantly evolving class.
15251  It has been designed with regard to fictional and non-fictional literature.
15252  Its aim is to let the user have maximum control over the typesetting of
15253  his document.
15254  Memoir is based on the standard book class, but it can also emulate the
15255  article class (see below).
15256 \end_layout
15257
15258 \begin_layout Standard
15259 Peter Wilson, the developer of Memoir, is known as the author of lots of
15260  useful packages in the \SpecialChar LaTeX
15261  world.
15262  Most of them have been merged with Memoir.
15263  Therefore, it is much easier to layout the table of contents, appendices,
15264  chapter designs and such.
15265  \SpecialChar LyX
15266 , though, does not support all of these goodies natively.
15267  Some of them might be added to forthcoming releases
15268 \begin_inset Foot
15269 status collapsed
15270
15271 \begin_layout Plain Layout
15272 You are invited to send suggestions to 
15273 \begin_inset Flex URL
15274 status collapsed
15275
15276 \begin_layout Plain Layout
15277
15278 lyx-devel@lists.lyx.org
15279 \end_layout
15280
15281 \end_inset
15282
15283 .
15284 \end_layout
15285
15286 \end_inset
15287
15288 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15289 's framework.
15290  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15291
15292  commands (\SpecialChar TeX
15293  code
15294 \begin_inset Foot
15295 status collapsed
15296
15297 \begin_layout Plain Layout
15298 Cf.
15299 \begin_inset ERT
15300 status collapsed
15301
15302 \begin_layout Plain Layout
15303
15304
15305 \backslash
15306  
15307 \end_layout
15308
15309 \end_inset
15310
15311 section
15312 \begin_inset space ~
15313 \end_inset
15314
15315
15316 \begin_inset CommandInset ref
15317 LatexCommand ref
15318 reference "sec:Inserting-TeX-Code"
15319
15320 \end_inset
15321
15322  for details.
15323 \end_layout
15324
15325 \end_inset
15326
15327 ).
15328  In this section, we can only list those features that are natively supported
15329  by \SpecialChar LyX
15330 .
15331  For detailed descriptions (and for the rest of features) we recommend you
15332  have a look at the detailed manual of the Memoir class
15333 \begin_inset Foot
15334 status collapsed
15335
15336 \begin_layout Plain Layout
15337 Cf.
15338 \begin_inset ERT
15339 status collapsed
15340
15341 \begin_layout Plain Layout
15342
15343
15344 \backslash
15345  
15346 \end_layout
15347
15348 \end_inset
15349
15350
15351 \begin_inset Flex URL
15352 status collapsed
15353
15354 \begin_layout Plain Layout
15355
15356 CTAN:/macros/latex/memoir/memman.pdf
15357 \end_layout
15358
15359 \end_inset
15360
15361 .
15362 \end_layout
15363
15364 \end_inset
15365
15366 , which is not only a user guide for the class, but also both a comprehensive
15367  description on good typesetting and a superb example for good typesetting
15368  itself.
15369 \end_layout
15370
15371 \begin_layout Subsection
15372 Basic features and restrictions
15373 \end_layout
15374
15375 \begin_layout Standard
15376 Memoir supports basically all features of the standard book classes.
15377  There are, however, some differences, as follows:
15378 \end_layout
15379
15380 \begin_layout Description
15381 Font
15382 \begin_inset space ~
15383 \end_inset
15384
15385 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15386 \end_layout
15387
15388 \begin_layout Description
15389 Page
15390 \begin_inset space ~
15391 \end_inset
15392
15393 style: The fancy page style is not supported, due to a command clash between
15394  Memoir and the fancyhdr package (they both define a command with the same
15395  name, which confuses \SpecialChar LaTeX
15396 ).
15397  Instead, Memoir comes with a number of its own page styles (see 
15398 \family sans
15399 Layout\SpecialChar menuseparator
15400 Document\SpecialChar menuseparator
15401 Page
15402 \begin_inset space ~
15403 \end_inset
15404
15405 Style
15406 \family default
15407 ).
15408  If you want to use these for the chapter pages, you have to use the command
15409  
15410 \family typewriter
15411
15412 \backslash
15413 chapterstyle
15414 \family default
15415  in the main text or in preamble (e.
15416 \begin_inset space \thinspace{}
15417 \end_inset
15418
15419 g.
15420 \begin_inset space \space{}
15421 \end_inset
15422
15423
15424 \family typewriter
15425
15426 \backslash
15427 chapterstyle{companion}
15428 \family default
15429 ).
15430 \end_layout
15431
15432 \begin_layout Description
15433 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15434  optional argument in the standard classes.
15435  With this, you can specify an alternative version of the title for the
15436  table of contents and the headers (for instance, if the title is too long).
15437  In \SpecialChar LyX
15438 , you can do this via 
15439 \family sans
15440 Insert\SpecialChar menuseparator
15441 Short
15442 \begin_inset space ~
15443 \end_inset
15444
15445 Title
15446 \family default
15447  at the beginning of a chapter/section.
15448  Memoir features a second optional argument and thus separates the table
15449  of contents from the header.
15450  You can define three variants of a title with this: one for the main text,
15451  one for the table of contents, and one for the headers.
15452  Simply insert two optional arguments if you need this feature, the first
15453  one containing the short title for the Table of Contents, the second one
15454  containing an alternative short title for the headers.
15455 \end_layout
15456
15457 \begin_layout Description
15458 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15459  of contents, the list of figures and the list of table start a new page
15460  automatically.
15461  Memoir does not follow this route.
15462  You have to insert a page break yourself, if you want to have one.
15463 \end_layout
15464
15465 \begin_layout Description
15466 Titlepage: For some unknown reason, Memoir uses pagination on the title
15467  page (in the standard classes, title pages are 
15468 \begin_inset Quotes eld
15469 \end_inset
15470
15471 empty
15472 \begin_inset Quotes erd
15473 \end_inset
15474
15475 ).
15476  If you want an empty title page, type 
15477 \family typewriter
15478
15479 \backslash
15480 aliaspagestyle{title}{empty}
15481 \family default
15482  in the preamble.
15483 \end_layout
15484
15485 \begin_layout Description
15486 Article: With the class option 
15487 \emph on
15488 article
15489 \emph default
15490  (to be inserted in 
15491 \family sans
15492 Layout\SpecialChar menuseparator
15493 Document\SpecialChar menuseparator
15494 Extra
15495 \begin_inset space ~
15496 \end_inset
15497
15498 Options
15499 \family default
15500 ), you can emulate article style.
15501  That is, counters (footnotes, figures, tables etc.) will not be reset on
15502  new chapters, chapters don't start a new page (but are—in contrary to 
15503 \begin_inset Quotes eld
15504 \end_inset
15505
15506 real
15507 \begin_inset Quotes erd
15508 \end_inset
15509
15510  article classes—still allowed), parts, though, use their own page, as in
15511  book.
15512 \end_layout
15513
15514 \begin_layout Description
15515 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15516  font commands, which have been used in the old \SpecialChar LaTeX
15517  version 2.09 (e.
15518 \begin_inset space \thinspace{}
15519 \end_inset
15520
15521 g.
15522 \begin_inset space \space{}
15523 \end_inset
15524
15525
15526 \family typewriter
15527
15528 \backslash
15529 rm
15530 \family default
15531
15532 \family typewriter
15533
15534 \backslash
15535 it
15536 \family default
15537 ).
15538  It produces an error and stops \SpecialChar LaTeX
15539  whenever such a command appears.
15540  The class option 
15541 \emph on
15542 oldfontcommands
15543 \emph default
15544  reallows the commands and spits out warnings instead (which does at least
15545  not stop \SpecialChar LaTeX
15546 ).
15547  Since a lot of packages and particularly Bib\SpecialChar TeX
15548  style files are still using
15549  those commands, we have decided to use this option by default.
15550 \end_layout
15551
15552 \begin_layout Subsection
15553 Extra features
15554 \end_layout
15555
15556 \begin_layout Standard
15557 We will only describe the features supported by \SpecialChar LyX
15558  (which is not much currently).
15559  Please consult the Memoir manual
15560 \begin_inset Foot
15561 status collapsed
15562
15563 \begin_layout Plain Layout
15564 Cf.
15565 \begin_inset ERT
15566 status collapsed
15567
15568 \begin_layout Plain Layout
15569
15570
15571 \backslash
15572  
15573 \end_layout
15574
15575 \end_inset
15576
15577
15578 \begin_inset Flex URL
15579 status collapsed
15580
15581 \begin_layout Plain Layout
15582
15583 CTAN:/macros/latex/memoir/memman.pdf
15584 \end_layout
15585
15586 \end_inset
15587
15588 .
15589 \end_layout
15590
15591 \end_inset
15592
15593  for details.
15594 \end_layout
15595
15596 \begin_layout Description
15597 Abstract: You may wonder why an abstract is an extra feature.
15598  Well, it is in book class.
15599  Usually books don't have abstracts.
15600  Memoir, however, has.
15601  You can use it wherever and how often you like.
15602 \end_layout
15603
15604 \begin_layout Description
15605 Chapterprecis: You may know this older typesetting style: The contents of
15606  a chapter are summarized below the title and also in the table of contents
15607  (e.
15608 \begin_inset space \thinspace{}
15609 \end_inset
15610
15611 g.
15612 \begin_inset space \space{}
15613 \end_inset
15614
15615
15616 \emph on
15617 Our hero arrives in Troia; he loses some friends; he finds others
15618 \emph default
15619 ).
15620  Chapterprecis does exactly this.
15621  It is therefore only sensible below a chapter.
15622 \end_layout
15623
15624 \begin_layout Description
15625 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15626  The epigraph environment provides an elegant way of typesetting such a
15627  motto.
15628  The motto itself (text) and its author (source) are divided by a short
15629  line.
15630  Unfortunately, we have to fool \SpecialChar LyX
15631  a bit here again, since the environment
15632  needs two arguments (text and source).
15633  In this case, we have to use curly brackets (in \SpecialChar TeX
15634  mode) between the two
15635  arguments: 
15636 \emph on
15637 <smart slogan>
15638 \emph default
15639  
15640 \family typewriter
15641 }{
15642 \family default
15643  
15644 \emph on
15645 <author of the slogan>.
15646 \end_layout
15647
15648 \begin_layout Description
15649 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15650  complex figurative poems).
15651  \SpecialChar LyX
15652  can only support a few of them.
15653  One is poemtitle, which is a centered title for poems, which will also
15654  be added to the table of contents (verse is the standard environment for
15655  poems.
15656  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15657  code,
15658  because they have to be nested inside regular verse environments, which
15659  is not possible with \SpecialChar LyX
15660 ).
15661 \end_layout
15662
15663 \begin_layout Description
15664 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15665 \end_layout
15666
15667 \begin_layout Section
15668 Article (mwart), book (mwbk) and report (mwrep)
15669 \begin_inset Argument status
15670 status collapsed
15671
15672 \begin_layout Plain Layout
15673 The 
15674 \family typewriter
15675 mw
15676 \family default
15677  Classes
15678 \end_layout
15679
15680 \end_inset
15681
15682
15683 \end_layout
15684
15685 \begin_layout Standard
15686 by 
15687 \noun on
15688 Tomasz Luczak
15689 \end_layout
15690
15691 \begin_layout Standard
15692 The \SpecialChar LyX
15693  document classes 
15694 \emph on
15695 article (mwart)
15696 \emph default
15697
15698 \emph on
15699 report (mwrep)
15700 \emph default
15701  and 
15702 \emph on
15703 book
15704 \emph default
15705  
15706 \emph on
15707 (mwbk)
15708 \emph default
15709  correspond to the \SpecialChar LaTeX
15710  document classes 
15711 \family typewriter
15712 mwart.cls
15713 \family default
15714
15715 \family typewriter
15716 mwrep.cls
15717 \family default
15718  and 
15719 \family typewriter
15720 mwbk.cls
15721 \family default
15722 , resp.
15723  They are replacements for the standard document classes 
15724 \family typewriter
15725 article.cls
15726 \family default
15727
15728 \family typewriter
15729 report.cls
15730 \family default
15731  and 
15732 \family typewriter
15733 book.cls
15734 \family default
15735 , resp., and fit better to Polish typography conventions in a number of points.
15736  
15737 \end_layout
15738
15739 \begin_layout Standard
15740 Basic differences:
15741 \end_layout
15742
15743 \begin_layout Itemize
15744 Unnumbered titles (with star, e.
15745 \begin_inset space \thinspace{}
15746 \end_inset
15747
15748 g.
15749 \begin_inset space \space{}
15750 \end_inset
15751
15752
15753 \family sans
15754 Section*
15755 \family default
15756 ) are added into table of contents,
15757 \end_layout
15758
15759 \begin_layout Itemize
15760 Additional page styles:
15761 \begin_inset Separator parbreak
15762 \end_inset
15763
15764
15765 \end_layout
15766
15767 \begin_deeper
15768 \begin_layout Description
15769 uheadings header with separated lines,
15770 \end_layout
15771
15772 \begin_layout Description
15773 myheadings custom header, contents headers via commands: 
15774 \family typewriter
15775
15776 \backslash
15777 markright
15778 \family default
15779  and 
15780 \family typewriter
15781
15782 \backslash
15783 markboth
15784 \family default
15785 ,
15786 \end_layout
15787
15788 \begin_layout Description
15789 myuheadings custom header with separated lines,
15790 \end_layout
15791
15792 \begin_layout Description
15793 outer page number is placed on outer side of page
15794 \end_layout
15795
15796 \end_deeper
15797 \begin_layout Itemize
15798 Options 
15799 \begin_inset Separator parbreak
15800 \end_inset
15801
15802
15803 \end_layout
15804
15805 \begin_deeper
15806 \begin_layout Description
15807 rmheadings serif titles — default,
15808 \end_layout
15809
15810 \begin_layout Description
15811 sfheadings sansserif titles,
15812 \end_layout
15813
15814 \begin_layout Description
15815 authortitle on title page first placed is author next title — default,
15816 \end_layout
15817
15818 \begin_layout Description
15819 titleauthor on title page first placed is title next author,
15820 \end_layout
15821
15822 \begin_layout Description
15823 withmarginpar reserve place on page for margins.
15824 \end_layout
15825
15826 \end_deeper
15827 \begin_layout Section
15828 Paper
15829 \end_layout
15830
15831 \begin_layout Standard
15832 The document class 
15833 \family sans
15834 paper
15835 \family default
15836  provides an alternative to the standard 
15837 \family sans
15838 article
15839 \family default
15840  class.
15841  It provides similar functionality, but you might prefer this layout with
15842  sans serif sections, headings, and more.
15843 \end_layout
15844
15845 \begin_layout Section
15846 Rev\SpecialChar TeX
15847 4
15848 \end_layout
15849
15850 \begin_layout Standard
15851 by 
15852 \noun on
15853 Amir Karger
15854 \end_layout
15855
15856 \begin_layout Standard
15857 \begin_inset VSpace bigskip
15858 \end_inset
15859
15860
15861 \end_layout
15862
15863 \begin_layout Standard
15864 \noindent
15865 The 
15866 \family sans
15867 Revtex
15868 \begin_inset space ~
15869 \end_inset
15870
15871 4
15872 \family default
15873  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
15874  4.0 (the 
15875 \begin_inset Formula $\beta$
15876 \end_inset
15877
15878  release of May, 1999) class.
15879 \end_layout
15880
15881 \begin_layout Standard
15882 \SpecialChar LyX
15883  has a 
15884 \family sans
15885 Revtex
15886 \family default
15887  textclass, which works with Rev\SpecialChar TeX
15888  3.1.
15889  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
15890  2.09.
15891  That means that it doesn't interact very well with \SpecialChar LyX
15892 , which requires \SpecialChar LaTeX2e
15893 , although
15894  it has been kludged to work.
15895  Since Rev\SpecialChar TeX
15896  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
15897 , \SpecialChar LyX
15898  with the
15899  
15900 \family sans
15901 Rev\SpecialChar TeX
15902
15903 \begin_inset space ~
15904 \end_inset
15905
15906 4
15907 \family default
15908  textclass should also be pretty easy to use.
15909 \end_layout
15910
15911 \begin_layout Standard
15912 These documents are supposed to be used in 
15913 \emph on
15914 addition
15915 \emph default
15916  to the Rev\SpecialChar TeX
15917  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
15918  macros,
15919  and assume you'll know what to put in the preamble if necessary.
15920 \end_layout
15921
15922 \begin_layout Subsection
15923 Installation
15924 \end_layout
15925
15926 \begin_layout Standard
15927 All you need to do is install Rev\SpecialChar TeX
15928  4, as described in the package's README
15929  file.
15930  The package can be found at The Rev\SpecialChar TeX
15931  4 Web Site 
15932 \begin_inset Flex URL
15933 status collapsed
15934
15935 \begin_layout Plain Layout
15936
15937 http://publish.aps.org/revtex4/
15938 \end_layout
15939
15940 \end_inset
15941
15942 .
15943  Install it somewhere that \SpecialChar LaTeX
15944  can see it.
15945  Test it by trying to \SpecialChar LaTeX
15946  a short Rev\SpecialChar TeX
15947  4 document in some random directory (i.
15948 \begin_inset space \thinspace{}
15949 \end_inset
15950
15951 e.
15952 \begin_inset space \space{}
15953 \end_inset
15954
15955 not the directory where you installed the class file.) Then, if you reconfigure
15956  \SpecialChar LyX
15957 , it will find the class file and let you use the Rev\SpecialChar TeX
15958 4 textclass.
15959 \end_layout
15960
15961 \begin_layout Standard
15962 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
15963  4 document
15964  using 
15965 \family typewriter
15966 tex2lyx
15967 \family default
15968 , or to use the 
15969 \family sans
15970 Revtex
15971 \begin_inset space ~
15972 \end_inset
15973
15974 4
15975 \family default
15976  template, found in the templates directory.
15977 \end_layout
15978
15979 \begin_layout Subsection
15980 Preamble Matter
15981 \end_layout
15982
15983 \begin_layout Standard
15984 Optional arguments to 
15985 \family typewriter
15986
15987 \backslash
15988 documentclass
15989 \family default
15990 , like 
15991 \begin_inset Quotes eld
15992 \end_inset
15993
15994 preprint
15995 \begin_inset Quotes erd
15996 \end_inset
15997
15998  and 
15999 \begin_inset Quotes eld
16000 \end_inset
16001
16002 aps
16003 \begin_inset Quotes erd
16004 \end_inset
16005
16006 , go in the 
16007 \family sans
16008 E
16009 \bar under
16010 x
16011 \bar default
16012 tra
16013 \begin_inset space ~
16014 \end_inset
16015
16016 Options
16017 \family default
16018  field in the 
16019 \family sans
16020 Document
16021 \begin_inset space ~
16022 \end_inset
16023
16024 Layout
16025 \family default
16026  dialog, as usual.
16027  Remember that in Rev\SpecialChar TeX
16028 , at least one optional argument is required! 
16029 \end_layout
16030
16031 \begin_layout Standard
16032 Other preamble matter, like 
16033 \family typewriter
16034
16035 \backslash
16036 draft
16037 \family default
16038  etc.
16039 \begin_inset space ~
16040 \end_inset
16041
16042 goes in the 
16043 \family sans
16044 \SpecialChar LaTeX
16045
16046 \begin_inset space ~
16047 \end_inset
16048
16049 Preamble
16050 \family default
16051  dialog, also as usual.
16052 \end_layout
16053
16054 \begin_layout Subsection
16055 Layouts
16056 \end_layout
16057
16058 \begin_layout Standard
16059 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16060 4.0.
16061  For example, the Email layout corresponds to 
16062 \family typewriter
16063
16064 \backslash
16065 email{}
16066 \family default
16067 .
16068  Note that (at least as of Rev\SpecialChar TeX
16069  4.0 Beta), the 
16070 \family sans
16071 Address
16072 \family default
16073  and 
16074 \family sans
16075 Affiliation
16076 \family default
16077  layouts are exactly equivalent, so you shouldn't need to use both.
16078 \begin_inset Foot
16079 status collapsed
16080
16081 \begin_layout Plain Layout
16082 In case you're curious, both were included so that 
16083 \family typewriter
16084 tex2lyx
16085 \family default
16086  would be able to translate both 
16087 \family typewriter
16088
16089 \backslash
16090 address
16091 \family default
16092  and 
16093 \family typewriter
16094
16095 \backslash
16096 affiliation
16097 \family default
16098 .
16099 \end_layout
16100
16101 \end_inset
16102
16103
16104 \end_layout
16105
16106 \begin_layout Subsection
16107 Important Notes
16108 \end_layout
16109
16110 \begin_layout Standard
16111 There are a couple of important unique aspects of Rev\SpecialChar TeX
16112  4 which might cause
16113  bugs that will be even more confusing in \SpecialChar LyX
16114 .
16115 \end_layout
16116
16117 \begin_layout Standard
16118 In Rev\SpecialChar TeX
16119 , the 
16120 \family typewriter
16121
16122 \backslash
16123 thanks
16124 \family default
16125  command goes 
16126 \emph on
16127 outside
16128 \emph default
16129  the 
16130 \family typewriter
16131
16132 \backslash
16133 author
16134 \family default
16135  command.
16136  The \SpecialChar LyX
16137  equivalent is that there is a separate Thanks layout.
16138  Do 
16139 \emph on
16140 not
16141 \emph default
16142  write footnotes in the 
16143 \family sans
16144 Author
16145 \family default
16146  layout, or weird things may happen.
16147  See the Rev\SpecialChar TeX
16148  4 documentation for more details.
16149 \end_layout
16150
16151 \begin_layout Standard
16152 Also, the 
16153 \family sans
16154 Author
16155 \begin_inset space ~
16156 \end_inset
16157
16158 Email
16159 \family default
16160
16161 \family sans
16162 Author
16163 \begin_inset space ~
16164 \end_inset
16165
16166 URL
16167 \family default
16168 , and 
16169 \family sans
16170 Thanks
16171 \family default
16172  layouts must be placed 
16173 \emph on
16174 in between
16175 \emph default
16176  the 
16177 \family sans
16178 Author
16179 \family default
16180  layout and the corresponding 
16181 \family sans
16182 Address
16183 \family default
16184  (or equivalent 
16185 \family sans
16186 Affiliation
16187 \family default
16188 ) layout.
16189  If you put the 
16190 \family sans
16191 Thanks
16192 \family default
16193  after the 
16194 \family sans
16195 Address
16196 \family default
16197 , the \SpecialChar LaTeX
16198  won't compile.
16199 \end_layout
16200
16201 \begin_layout Subsection
16202 Drawbacks
16203 \end_layout
16204
16205 \begin_layout Standard
16206 The main problem with this layout is that you can't use the optional arguments
16207  to layouts like Email and Title.
16208  (The problem is not unique to this layout; you can't use optional arguments
16209  to the Section layouts either.) This means that after you export that file
16210  to \SpecialChar LaTeX
16211  (which you'll need to do eventually to send it in to APS), you'll need
16212  to edit the \SpecialChar LaTeX
16213  file with a text editor to add the optional arguments to set,
16214  e.
16215 \begin_inset space \thinspace{}
16216 \end_inset
16217
16218 g.
16219 \begin_inset space \space{}
16220 \end_inset
16221
16222 the running title for the page headers.
16223  Lacking these layouts makes the 
16224 \family typewriter
16225
16226 \backslash
16227 altaffiliation
16228 \family default
16229  (and the equivalent 
16230 \family typewriter
16231
16232 \backslash
16233 altaddress
16234 \family default
16235 ) useless, so the corresponding layouts don't exist, and will have to be
16236  added by hand.
16237 \begin_inset Foot
16238 status collapsed
16239
16240 \begin_layout Plain Layout
16241
16242 \emph on
16243 Note from JMarc:
16244 \emph default
16245  actually, \SpecialChar LyX
16246  1.3.0 supports some forms of optional arguments, but this layout
16247  has not been updated yet to take advantage of it.
16248 \end_layout
16249
16250 \end_inset
16251
16252  
16253 \end_layout
16254
16255 \begin_layout Section
16256 Springer Journals (
16257 \family sans
16258 svjour
16259 \family default
16260 )
16261 \end_layout
16262
16263 \begin_layout Standard
16264 by 
16265 \noun on
16266 Martin Vermeer
16267 \end_layout
16268
16269 \begin_layout Subsection
16270 Description
16271 \end_layout
16272
16273 \begin_layout Standard
16274 These are the layout files for some of the journal formats used by Springer
16275  Verlag and listed on 
16276 \begin_inset Flex URL
16277 status collapsed
16278
16279 \begin_layout Plain Layout
16280
16281 http://www.springer.de/author/tex/help-journals.html
16282 \end_layout
16283
16284 \end_inset
16285
16286 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16287  now!).
16288  It is a modular system: the things common to all journals are implemented
16289  in 
16290 \family typewriter
16291 svjour.inc
16292 \family default
16293 , which journal-specific layout files (such as, e.
16294 \begin_inset space \thinspace{}
16295 \end_inset
16296
16297 g.
16298 \begin_inset space \space{}
16299 \end_inset
16300
16301
16302 \family typewriter
16303 svjog.layout
16304 \family default
16305  for Journal of Geodesy) can include.
16306 \end_layout
16307
16308 \begin_layout Standard
16309 This means that implementing support for any other Springer journal on this
16310  list is as simple as writing your own 
16311 \family typewriter
16312 sv
16313 \family default
16314 <myjournal>
16315 \family typewriter
16316 .layout
16317 \family default
16318  file following the outline given in 
16319 \family typewriter
16320 svjog.layout
16321 \family default
16322 .
16323  
16324 \end_layout
16325
16326 \begin_layout Standard
16327 It is reasonably well tested only for the Journal of Geodesy.
16328  
16329 \family typewriter
16330 svjour
16331 \family default
16332  and 
16333 \family typewriter
16334 svjog
16335 \family default
16336  come with the standard \SpecialChar LyX
16337  distribution.
16338  Install the relevant class file (downloaded from Springer) in a proper
16339  directory, reconfigure \SpecialChar LaTeX
16340  (in the te\SpecialChar TeX
16341  case by running 
16342 \family typewriter
16343 texhash
16344 \family default
16345 , as root if necessary — doesn't \SpecialChar LyX
16346  take care of this?), reconfigure \SpecialChar LyX
16347  and
16348  it should work.
16349 \end_layout
16350
16351 \begin_layout Subsection
16352 New styles
16353 \end_layout
16354
16355 \begin_layout Standard
16356 A large number of theorem-like styles — 
16357 \family sans
16358 Claim, Conjecture,
16359 \family default
16360  
16361 \family sans
16362 \SpecialChar ldots
16363 Theorem
16364 \family default
16365 .
16366 \end_layout
16367
16368 \begin_layout Standard
16369
16370 \family sans
16371 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16372 _Title, Author_Running, Institute,
16373  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16374 \family default
16375 .
16376  See the Springer class file documentation for details.
16377 \end_layout
16378
16379 \begin_layout Subsection
16380 Supported journals
16381 \end_layout
16382
16383 \begin_layout Itemize
16384
16385 \emph on
16386 Journal of Geodesy
16387 \emph default
16388
16389 \family typewriter
16390 svjog.layout
16391 \family default
16392  — Martin Vermeer
16393 \end_layout
16394
16395 \begin_layout Itemize
16396
16397 \emph on
16398 Probability Theory and Related Fields
16399 \emph default
16400
16401 \family typewriter
16402 svprobth.layout
16403 \family default
16404  — Jean-Marc Lasgouttes
16405 \end_layout
16406
16407 \begin_layout Standard
16408 Add your own, it isn't so hard!
16409 \end_layout
16410
16411 \begin_layout Subsection
16412 Credits
16413 \end_layout
16414
16415 \begin_layout Standard
16416 These files are partly based on the older 
16417 \family typewriter
16418 ejour2.layout
16419 \family default
16420 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16421  2.09 style
16422  file from Springer.
16423  All this, and the 
16424 \family typewriter
16425 ejour2
16426 \family default
16427  layout, are now defunct.
16428  Jean-Marc Lasgouttes helped out big in making me find my way around the
16429  \SpecialChar LyX
16430  layout file mechanism.
16431 \end_layout
16432
16433 \begin_layout Subsection
16434 Bugs
16435 \end_layout
16436
16437 \begin_layout Standard
16438 Probably.
16439  But probably less than in the old hacked-\SpecialChar LaTeX
16440  
16441 \family typewriter
16442 ejour2
16443 \family default
16444 .
16445 \end_layout
16446
16447 \begin_layout Standard
16448 Limitations e.
16449 \begin_inset space \thinspace{}
16450 \end_inset
16451
16452 g.: does not display the number for theorem-like layouts, just #.
16453 \end_layout
16454
16455 \begin_layout Section
16456 Slides [aka 
16457 \noun on
16458 Sli\SpecialChar TeX
16459
16460 \noun default
16461 ]
16462 \begin_inset CommandInset label
16463 LatexCommand label
16464 name "sec:slitex"
16465
16466 \end_inset
16467
16468
16469 \end_layout
16470
16471 \begin_layout Standard
16472 by 
16473 \noun on
16474 John Weiss
16475 \noun default
16476  
16477 \end_layout
16478
16479 \begin_layout Subsection
16480 Introduction
16481 \end_layout
16482
16483 \begin_layout Standard
16484 This section describes how to use \SpecialChar LyX
16485  to make slides for overhead projectors.
16486  There are two document classes that can do this: the default slides class
16487  and the 
16488 \family sans
16489 Foil\SpecialChar TeX
16490
16491 \family default
16492  slides class.
16493  This section documents the former.
16494 \end_layout
16495
16496 \begin_layout Standard
16497 I'm going to say this again, nice and clear, so that there's no misunderstanding
16498 :
16499 \end_layout
16500
16501 \begin_layout Standard
16502 \begin_inset VSpace bigskip
16503 \end_inset
16504
16505
16506 \end_layout
16507
16508 \begin_layout Standard
16509 \align center
16510
16511 \size large
16512 This section documents the class 
16513 \begin_inset Quotes eld
16514 \end_inset
16515
16516
16517 \family sans
16518 slides (default)
16519 \family default
16520
16521 \begin_inset Quotes erd
16522 \end_inset
16523
16524  
16525 \emph on
16526 only.
16527 \end_layout
16528
16529 \begin_layout Standard
16530 \begin_inset VSpace bigskip
16531 \end_inset
16532
16533
16534 \end_layout
16535
16536 \begin_layout Standard
16537 If you're looking for the documentation for 
16538 \begin_inset Quotes eld
16539 \end_inset
16540
16541
16542 \family sans
16543 slides (Foil\SpecialChar TeX
16544 )
16545 \family default
16546
16547 \begin_inset Quotes erd
16548 \end_inset
16549
16550 , check out section
16551 \begin_inset space ~
16552 \end_inset
16553
16554
16555 \begin_inset CommandInset ref
16556 LatexCommand ref
16557 reference "sec:foiltex"
16558
16559 \end_inset
16560
16561 .
16562  The 
16563 \family sans
16564 foils
16565 \family default
16566  class [
16567 \begin_inset Quotes eld
16568 \end_inset
16569
16570
16571 \family sans
16572 slides (Foil\SpecialChar TeX
16573 )
16574 \family default
16575
16576 \begin_inset Quotes erd
16577 \end_inset
16578
16579 ] is actually somewhat better than the default 
16580 \family sans
16581 slides
16582 \family default
16583  class,
16584 \begin_inset Foot
16585 status collapsed
16586
16587 \begin_layout Plain Layout
16588 \SpecialChar ldots
16589 or so I've been told repeatedly by its advocates.
16590  Having never used it, I have no idea if this claim is true or not.
16591 \end_layout
16592
16593 \end_inset
16594
16595  which this section documents.
16596 \end_layout
16597
16598 \begin_layout Standard
16599 This class is the \SpecialChar LaTeX2e
16600  improvement of the old 
16601 \noun on
16602 Sli\SpecialChar TeX
16603
16604 \noun default
16605  package.
16606  Every \SpecialChar LaTeX2e
16607  distribution includes this class [which I'll just refer to as 
16608 \begin_inset Quotes eld
16609 \end_inset
16610
16611
16612 \family sans
16613 slides
16614 \family default
16615
16616 \begin_inset Quotes erd
16617 \end_inset
16618
16619  from now on], so you're bound to have it.
16620  As I noted earlier, there are other classes, such as 
16621 \family sans
16622 foils
16623 \family default
16624 , which also produce slides for overhead projectors and do a better job
16625  at it.
16626  However, there are some things which 
16627 \family sans
16628 slides
16629 \family default
16630  can do which the others can't, such as generate overlays.
16631  Read on to learn more!
16632 \end_layout
16633
16634 \begin_layout Subsection
16635 Getting Started
16636 \begin_inset CommandInset label
16637 LatexCommand label
16638 name "sec:slidesetup"
16639
16640 \end_inset
16641
16642
16643 \end_layout
16644
16645 \begin_layout Standard
16646 Obviously, to use this document class, you need to select 
16647 \begin_inset Quotes eld
16648 \end_inset
16649
16650
16651 \family sans
16652 slides (default)
16653 \family default
16654
16655 \begin_inset Quotes erd
16656 \end_inset
16657
16658  from the class list in the 
16659 \family sans
16660 Document\SpecialChar menuseparator
16661 Settings
16662 \family default
16663  dialog.
16664  There are some other special things you should know about this class:
16665 \end_layout
16666
16667 \begin_layout Itemize
16668 Don't bother changing the options 
16669 \family sans
16670 Sides and Columns
16671 \family default
16672 .
16673  They're not supported by the 
16674 \family sans
16675 slides
16676 \family default
16677  class, anyways.
16678 \end_layout
16679
16680 \begin_layout Itemize
16681 The option 
16682 \family sans
16683 Page
16684 \begin_inset space ~
16685 \end_inset
16686
16687 style
16688 \family default
16689  behaves a bit differently for this class.
16690  The possible choices and what they do are as follows:
16691 \begin_inset Separator parbreak
16692 \end_inset
16693
16694
16695 \end_layout
16696
16697 \begin_deeper
16698 \begin_layout Description
16699
16700 \family sans
16701 plain
16702 \family default
16703  The final output contains page numbers in the lower right corner.
16704 \end_layout
16705
16706 \begin_layout Description
16707
16708 \family sans
16709 headings
16710 \family default
16711  Like 
16712 \family sans
16713 plain
16714 \family default
16715 , but also prints out any time markers you've put in.
16716  This is the default.
16717 \end_layout
16718
16719 \begin_layout Description
16720
16721 \family sans
16722 empty
16723 \family default
16724  The final output contains no page numbers, time markers, or alignment markers.
16725 \end_layout
16726
16727 \end_deeper
16728 \begin_layout Itemize
16729 The 
16730 \family sans
16731 slides
16732 \family default
16733  class has an extra option: 
16734 \family typewriter
16735 clock
16736 \family default
16737 .
16738  To use it, put 
16739 \begin_inset Quotes eld
16740 \end_inset
16741
16742
16743 \family typewriter
16744 clock
16745 \family default
16746
16747 \begin_inset Quotes erd
16748 \end_inset
16749
16750  in the extra class options.
16751 \begin_inset Separator parbreak
16752 \end_inset
16753
16754
16755 \end_layout
16756
16757 \begin_deeper
16758 \begin_layout Standard
16759 Using this options allows you to add time markers to 
16760 \family sans
16761 Note
16762 \family default
16763 s.
16764  See section
16765 \begin_inset space ~
16766 \end_inset
16767
16768
16769 \begin_inset CommandInset ref
16770 LatexCommand ref
16771 reference "sec:slideNote"
16772
16773 \end_inset
16774
16775  for more details.
16776 \end_layout
16777
16778 \end_deeper
16779 \begin_layout Standard
16780 You can also use the template file 
16781 \begin_inset Quotes eld
16782 \end_inset
16783
16784
16785 \family typewriter
16786 slides.lyx
16787 \family default
16788
16789 \begin_inset Quotes erd
16790 \end_inset
16791
16792  to automatically set up a document to use the 
16793 \family sans
16794 slides
16795 \family default
16796  class [using 
16797 \family sans
16798 File\SpecialChar menuseparator
16799 New
16800 \begin_inset space ~
16801 \end_inset
16802
16803 from
16804 \begin_inset space ~
16805 \end_inset
16806
16807 Template
16808 \family default
16809  to open your new document].
16810  The template file also contains some examples of the special paragraph
16811  environments used by this class.
16812  I'll describe those next.
16813 \end_layout
16814
16815 \begin_layout Subsection
16816 Paragraph Environments
16817 \end_layout
16818
16819 \begin_layout Subsubsection
16820 Supported Environments
16821 \end_layout
16822
16823 \begin_layout Standard
16824 The first thing you'll notice when you start up a new 
16825 \family sans
16826 slides
16827 \family default
16828  document is the font size and type: it's the equivalent of the size 
16829 \begin_inset Quotes eld
16830 \end_inset
16831
16832
16833 \family sans
16834 Largest
16835 \family default
16836
16837 \begin_inset Quotes erd
16838 \end_inset
16839
16840  in the 
16841 \family sans
16842 Sans
16843 \begin_inset space ~
16844 \end_inset
16845
16846 Serif
16847 \family default
16848  font.
16849  This is also what's used in the output.
16850  Think of this as a 
16851 \begin_inset Quotes eld
16852 \end_inset
16853
16854 visual cue
16855 \begin_inset Quotes erd
16856 \end_inset
16857
16858  to remind you that this is a slide.
16859  Your final slides will use a larger font; ergo, you'll have less space.
16860  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
16861 \end_layout
16862
16863 \begin_layout Standard
16864 The next thing that becomes obvious is the changes to the paragraph environment
16865  pull-down box [at the far-left end of the toolbar].
16866  Most of the paragraph environments you're used to seeing are missing.
16867  There are also five new ones.
16868  That's because the 
16869 \family sans
16870 slides
16871 \family default
16872  class itself only supports certain paragraph environments:
16873 \end_layout
16874
16875 \begin_layout Itemize
16876
16877 \family sans
16878 Standard
16879 \end_layout
16880
16881 \begin_layout Itemize
16882
16883 \family sans
16884 Itemize
16885 \end_layout
16886
16887 \begin_layout Itemize
16888
16889 \family sans
16890 Enumerate
16891 \end_layout
16892
16893 \begin_layout Itemize
16894
16895 \family sans
16896 Description
16897 \end_layout
16898
16899 \begin_layout Itemize
16900
16901 \family sans
16902 List
16903 \end_layout
16904
16905 \begin_layout Itemize
16906
16907 \family sans
16908 Quotation
16909 \end_layout
16910
16911 \begin_layout Itemize
16912
16913 \family sans
16914 Quote
16915 \end_layout
16916
16917 \begin_layout Itemize
16918
16919 \family sans
16920 Verse
16921 \end_layout
16922
16923 \begin_layout Itemize
16924
16925 \family sans
16926 Caption
16927 \end_layout
16928
16929 \begin_layout Itemize
16930
16931 \family sans
16932 \SpecialChar LyX
16933 -Code
16934 \end_layout
16935
16936 \begin_layout Itemize
16937
16938 \family sans
16939 Comment
16940 \end_layout
16941
16942 \begin_layout Standard
16943 All of the other standard environments, including the section-heading environmen
16944 ts, aren't used in the 
16945 \family sans
16946 slides
16947 \family default
16948  class.
16949 \end_layout
16950
16951 \begin_layout Standard
16952 On the other hand, you'll notice the following new environments:
16953 \end_layout
16954
16955 \begin_layout Itemize
16956
16957 \family sans
16958 Slide
16959 \end_layout
16960
16961 \begin_layout Itemize
16962
16963 \family sans
16964 Overlay
16965 \end_layout
16966
16967 \begin_layout Itemize
16968
16969 \family sans
16970 Note
16971 \end_layout
16972
16973 \begin_layout Itemize
16974
16975 \family sans
16976 InvisibleText
16977 \end_layout
16978
16979 \begin_layout Itemize
16980
16981 \family sans
16982 VisibleText
16983 \end_layout
16984
16985 \begin_layout Standard
16986 These five are kind of quirky, due to a 
16987 \begin_inset Quotes eld
16988 \end_inset
16989
16990 feature
16991 \begin_inset Quotes erd
16992 \end_inset
16993
16994  in \SpecialChar LyX
16995 .
16996  You see, \SpecialChar LyX
16997  doesn't permit you to nest any other paragraph environment into
16998  an empty environment.
16999  Now, that's fine and dandy, but it means that you wouldn't be able to start
17000  a slide with anything except plain text.
17001  To deal with this, I've performed a little 
17002 \begin_inset Quotes eld
17003 \end_inset
17004
17005 \SpecialChar LaTeX
17006  magic.
17007 \begin_inset Quotes erd
17008 \end_inset
17009
17010  
17011 \end_layout
17012
17013 \begin_layout Subsubsection
17014 Quirks of the New Environments
17015 \begin_inset CommandInset label
17016 LatexCommand label
17017 name "sec:slideQuirk"
17018
17019 \end_inset
17020
17021
17022 \end_layout
17023
17024 \begin_layout Standard
17025 All five of the new paragraph environments are somewhat quirky due to inherent
17026  limitiations in the current version of \SpecialChar LyX
17027 .
17028  As I just mentioned, \SpecialChar LyX
17029  forbids environments that begin with another environment.
17030  To get around this, the 
17031 \family sans
17032 Slide
17033 \family default
17034  environment isn't a paragraph environment as described in the 
17035 \emph on
17036 User's Guide
17037 \emph default
17038 .
17039  
17040 \end_layout
17041
17042 \begin_layout Standard
17043 You should consider 
17044 \family sans
17045 Slide
17046 \family default
17047
17048 \family sans
17049 Overlay
17050 \family default
17051 , and 
17052 \family sans
17053 Note
17054 \family default
17055  to be 
17056 \begin_inset Quotes eld
17057 \end_inset
17058
17059 pseudo-environments.
17060 \begin_inset Quotes erd
17061 \end_inset
17062
17063  They look like a section heading or a 
17064 \begin_inset Quotes eld
17065 \end_inset
17066
17067
17068 \family sans
17069 Caption
17070 \family default
17071 ,
17072 \begin_inset Quotes erd
17073 \end_inset
17074
17075  but really begin a [and, if necessary, end the previous] paragraph environment.
17076  Likewise, treat 
17077 \family sans
17078 InvisibleText
17079 \family default
17080  and 
17081 \family sans
17082 VisibleText
17083 \family default
17084  as 
17085 \begin_inset Quotes eld
17086 \end_inset
17087
17088 pseudo-commands.
17089 \begin_inset Quotes erd
17090 \end_inset
17091
17092  These two perform some action.
17093 \end_layout
17094
17095 \begin_layout Standard
17096 A common feature of all five environments, 
17097 \family sans
17098 Slide
17099 \family default
17100
17101 \family sans
17102 Overlay
17103 \family default
17104
17105 \family sans
17106 Note
17107 \family default
17108
17109 \family sans
17110 InvisibleText
17111 \family default
17112  and 
17113 \family sans
17114 VisibleText
17115 \family default
17116 , is a rather long-ish label.
17117  The text following this label — ordinarily the contents of the paragraph
17118  environment — is utterly irrelevant for 
17119 \family sans
17120 Slide
17121 \family default
17122
17123 \family sans
17124 Overlay
17125 \family default
17126
17127 \family sans
17128 Note
17129 \family default
17130
17131 \family sans
17132 InvisibleText
17133 \family default
17134  and 
17135 \family sans
17136 VisibleText
17137 \family default
17138 .
17139  \SpecialChar LyX
17140  completely ignores it.
17141  In fact, you can leave these five environments completely empty.
17142  
17143 \end_layout
17144
17145 \begin_layout Standard
17146 While you don't 
17147 \emph on
17148 have
17149 \emph default
17150  to put any text after the rather long-ish label, you might want to.
17151  This could be a short description of the contents of the 
17152 \family sans
17153 Slide
17154 \family default
17155 , for example.
17156  In that case, enter your descriptive comment and hit 
17157 \family sans
17158 Return
17159 \family default
17160  as you normally would.
17161 \end_layout
17162
17163 \begin_layout Standard
17164 If, on the other hand, you don't want to enter any descriptive text, you'll
17165  hit another \SpecialChar LyX
17166  quirk.
17167  \SpecialChar LyX
17168 , like nature, abhors a vacuum, and will not let you start a new paragraph
17169  environment until you put something in the old one.
17170  So, do this:
17171 \end_layout
17172
17173 \begin_layout Itemize
17174 Start entering the text that will 
17175 \emph on
17176 follow
17177 \emph default
17178  the new 
17179 \family sans
17180 Slide
17181 \family default
17182
17183 \family sans
17184 Overlay
17185 \family default
17186
17187 \family sans
17188 Note
17189 \family default
17190
17191 \family sans
17192 InvisibleText
17193 \family default
17194  or 
17195 \family sans
17196 VisibleText
17197 \family default
17198 .
17199  
17200 \end_layout
17201
17202 \begin_layout Itemize
17203 Now move to the beginning of that paragraph.
17204  
17205 \end_layout
17206
17207 \begin_layout Itemize
17208 Next, hit 
17209 \family sans
17210 Return
17211 \family default
17212 .
17213  
17214 \end_layout
17215
17216 \begin_layout Itemize
17217 Finally, change this new, empty paragraph to a 
17218 \family sans
17219 Slide
17220 \family default
17221
17222 \family sans
17223 Overlay
17224 \family default
17225
17226 \family sans
17227 Note
17228 \family default
17229
17230 \family sans
17231 InvisibleText
17232 \family default
17233  or 
17234 \family sans
17235 VisibleText
17236 \family default
17237 .
17238  
17239 \end_layout
17240
17241 \begin_layout Standard
17242 Some future version of \SpecialChar LyX
17243  will, hopefully, resolve this quirkiness\SpecialChar ldots
17244
17245 \end_layout
17246
17247 \begin_layout Subsection
17248 Making a Presentation with 
17249 \family sans
17250 Slide
17251 \family default
17252
17253 \family sans
17254 Overlay
17255 \family default
17256  and 
17257 \family sans
17258 Note
17259 \end_layout
17260
17261 \begin_layout Subsubsection
17262 Using the 
17263 \family sans
17264 Slide
17265 \family default
17266  Environment
17267 \end_layout
17268
17269 \begin_layout Standard
17270 If you're expecting this section to teach you how to actually make a presentatio
17271 n, you'll be sorely disappointed.
17272  Naturally, I'll describe all of the ways the 
17273 \family sans
17274 slides
17275 \family default
17276  class can assist you in preparing the materials for a presentation.
17277  Filling in the contents, however, is up to you.
17278  [Then again, that 
17279 \emph on
17280 is
17281 \emph default
17282  the \SpecialChar LyX
17283  philosophy.]
17284 \end_layout
17285
17286 \begin_layout Standard
17287 Choosing the 
17288 \family sans
17289 Slide
17290 \family default
17291  environment [in the manner described in section
17292 \begin_inset space ~
17293 \end_inset
17294
17295
17296 \begin_inset CommandInset ref
17297 LatexCommand ref
17298 reference "sec:slideQuirk"
17299
17300 \end_inset
17301
17302 ] tells \SpecialChar LyX
17303  to begin a new slide [duh].
17304  The label for this environment/
17305 \begin_inset Quotes erd
17306 \end_inset
17307
17308 pseudo-command
17309 \begin_inset Quotes erd
17310 \end_inset
17311
17312  is an 
17313 \begin_inset Quotes eld
17314 \end_inset
17315
17316 ASCII line,
17317 \begin_inset Quotes erd
17318 \end_inset
17319
17320  in cool blue, followed by the label, 
17321 \begin_inset Quotes eld
17322 \end_inset
17323
17324 NewSlide:
17325 \begin_inset Quotes erd
17326 \end_inset
17327
17328 .
17329  Any text or paragraph environments that follow this one go on the new slide.
17330  It's that simple.
17331 \end_layout
17332
17333 \begin_layout Standard
17334 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17335
17336  (this can be specified in the 
17337 \family sans
17338 Paragraph Layout
17339 \family default
17340  dialog).
17341  In fact, you'll want to, once you finish entering the contents of one slide.
17342  If you've entered more text than can physically fit on a slide, the extra
17343  overflows onto a new slide.
17344  I don't recommend doing this, however, since the overflow slide won't have
17345  any page number on it.
17346  Furthermore, it may interfere with any 
17347 \family sans
17348 Overlay
17349 \family default
17350  you've made to accompany the oversized 
17351 \family sans
17352 Slide
17353 \family default
17354 .
17355 \end_layout
17356
17357 \begin_layout Standard
17358 The 
17359 \family sans
17360 Overlay
17361 \family default
17362  and 
17363 \family sans
17364 Note
17365 \family default
17366  environments work the same way as the 
17367 \family sans
17368 Slide
17369 \family default
17370  environment.
17371  They both create an 
17372 \begin_inset Quotes eld
17373 \end_inset
17374
17375 ASCII line
17376 \begin_inset Quotes erd
17377 \end_inset
17378
17379  followed by a label [
17380 \begin_inset Quotes eld
17381 \end_inset
17382
17383 NewOverlay:
17384 \begin_inset Quotes erd
17385 \end_inset
17386
17387  and 
17388 \begin_inset Quotes eld
17389 \end_inset
17390
17391 NewNote:
17392 \begin_inset Quotes erd
17393 \end_inset
17394
17395 , respectively].
17396  The color is a stunning magenta instead of blue, and the 
17397 \begin_inset Quotes eld
17398 \end_inset
17399
17400 ASCII line
17401 \begin_inset Quotes erd
17402 \end_inset
17403
17404  will look different, in style and in length.
17405  The label fonts of all three also differ from one another.
17406 \end_layout
17407
17408 \begin_layout Standard
17409 As with a 
17410 \family sans
17411 Slide
17412 \family default
17413 , if the contents of a 
17414 \family sans
17415 Note
17416 \family default
17417  or 
17418 \family sans
17419 Overlay
17420 \family default
17421  exceed the physical size of a slide or sheet of paper, the extra will overflow
17422  onto a new sheet.
17423  Again, you should avoid this.
17424  It defeats the whole purpose of 
17425 \family sans
17426 Note
17427 \family default
17428 s and 
17429 \family sans
17430 Overlay
17431 \family default
17432 s.
17433 \end_layout
17434
17435 \begin_layout Subsubsection
17436 Using 
17437 \family sans
17438 Overlay
17439 \family default
17440  with 
17441 \family sans
17442 Slide
17443 \end_layout
17444
17445 \begin_layout Standard
17446 The idea behind an 
17447 \family sans
17448 Overlay
17449 \family default
17450  is a slide that sits atop another slide.
17451  Perhaps you wish to discuss a figure on the main 
17452 \family sans
17453 Slide
17454 \family default
17455  before displaying the text associated with it.
17456  One way to accomplish this is tape a flap of dark paper over the part of
17457  the 
17458 \family sans
17459 Slide
17460 \family default
17461  you want to display later.
17462  This method fails, however, if you wish to overlap one graph with another,
17463  for example.
17464  You would then have to fumble while speaking to align the two separate,
17465  overlapping 
17466 \family sans
17467 Slide
17468 \family default
17469 s to align the two graphs.
17470  The use of an 
17471 \family sans
17472 Overlay
17473 \family default
17474  environment in both cases makes life much easier.
17475 \end_layout
17476
17477 \begin_layout Standard
17478 Each 
17479 \family sans
17480 Overlay
17481 \family default
17482  receives the page number of its 
17483 \begin_inset Quotes eld
17484 \end_inset
17485
17486 parent
17487 \begin_inset Quotes erd
17488 \end_inset
17489
17490  
17491 \family sans
17492 Slide
17493 \family default
17494 , appended by 
17495 \begin_inset Quotes eld
17496 \end_inset
17497
17498
17499 \family typewriter
17500 -a
17501 \family default
17502
17503 \begin_inset Quotes erd
17504 \end_inset
17505
17506 .
17507 \begin_inset Foot
17508 status collapsed
17509
17510 \begin_layout Plain Layout
17511 Presumably, mutliple 
17512 \family sans
17513 Overlay
17514 \family default
17515 s would have 
17516 \begin_inset Quotes eld
17517 \end_inset
17518
17519
17520 \family typewriter
17521 -a
17522 \family default
17523
17524 \begin_inset Quotes erd
17525 \end_inset
17526
17527
17528 \begin_inset Quotes eld
17529 \end_inset
17530
17531
17532 \family typewriter
17533 -b
17534 \family default
17535
17536 \begin_inset Quotes erd
17537 \end_inset
17538
17539
17540 \begin_inset Quotes eld
17541 \end_inset
17542
17543
17544 \family typewriter
17545 -c
17546 \family default
17547
17548 \begin_inset Quotes erd
17549 \end_inset
17550
17551 , etc.
17552 \begin_inset space ~
17553 \end_inset
17554
17555 appended to the page number of the parent 
17556 \family sans
17557 Slide
17558 \family default
17559 .
17560  
17561 \end_layout
17562
17563 \end_inset
17564
17565  Clearly, you want the contents of both the 
17566 \family sans
17567 Slide
17568 \family default
17569  and the 
17570 \family sans
17571 Overlay
17572 \family default
17573  to each fit on a single physical slide! You should probably consider an
17574  
17575 \family sans
17576 Overlay
17577 \family default
17578  as 
17579 \begin_inset Quotes eld
17580 \end_inset
17581
17582 part of
17583 \begin_inset Quotes erd
17584 \end_inset
17585
17586  a 
17587 \family sans
17588 Slide
17589 \family default
17590 .
17591  Indeed, the \SpecialChar LyX
17592  
17593 \family sans
17594 slides
17595 \family default
17596  class provides a visual cue for this: the label at the start of an 
17597 \family sans
17598 Overlay
17599 \family default
17600  is shorter than that at the start of a 
17601 \family sans
17602 Slide
17603 \family default
17604 .
17605  Lastly, when you generate printable output, you'll find alignment markers
17606  in all four corners of both the 
17607 \family sans
17608 Overlay
17609 \family default
17610  page and its parent 
17611 \family sans
17612 Slide
17613 \family default
17614 .
17615  These will assist you in lining up the two physical slides.
17616 \end_layout
17617
17618 \begin_layout Standard
17619 The major problem in overlaying two slides is aligning the contents of the
17620  two transparencies.
17621  How much space should you leave for that graph on the second slide? Worse
17622  still, what if you want a graph and a sentence on second slide, but there
17623  is text on the main transparency that goes in between them? You could try
17624  and insert vertical space of the right size.
17625  The better way is to use 
17626 \family sans
17627 InvisibleText
17628 \family default
17629  and 
17630 \family sans
17631 VisibleText
17632 \family default
17633 .
17634 \end_layout
17635
17636 \begin_layout Standard
17637 As their names imply, 
17638 \family sans
17639 InvisibleText
17640 \family default
17641  and 
17642 \family sans
17643 VisibleText
17644 \family default
17645  are two command-like paragraph environments that make all subsequent text
17646  invisible and visible, respectively.
17647  Note from section
17648 \begin_inset space ~
17649 \end_inset
17650
17651
17652 \begin_inset CommandInset ref
17653 LatexCommand ref
17654 reference "sec:slideQuirk"
17655
17656 \end_inset
17657
17658  that you don't place anything 
17659 \emph on
17660 into
17661 \emph default
17662  these two environments, however.
17663  When you create an 
17664 \family sans
17665 InvisibleText
17666 \family default
17667 , it inserts a centered, sky-blue label into the page reading 
17668 \begin_inset Quotes eld
17669 \end_inset
17670
17671 <Invisible Text Follows>
17672 \begin_inset Quotes erd
17673 \end_inset
17674
17675 .
17676  For paragraphs following this label, the parts of the 
17677 \family sans
17678 Slide
17679 \family default
17680  [or 
17681 \family sans
17682 Overlay
17683 \family default
17684 ; it doesn't matter which] where they would be contain instead blank space.
17685  
17686 \end_layout
17687
17688 \begin_layout Standard
17689 For 
17690 \family sans
17691 VisibleText
17692 \family default
17693 , the corresponding centered label is 
17694 \begin_inset Quotes eld
17695 \end_inset
17696
17697 <Visible Text Follows>
17698 \begin_inset Quotes erd
17699 \end_inset
17700
17701  in blazing green.
17702  Paragraphs following this label behave normally.
17703  Note that the beginning of a new 
17704 \family sans
17705 Slide
17706 \family default
17707
17708 \family sans
17709 Overlay
17710 \family default
17711 , or 
17712 \family sans
17713 Note
17714 \family default
17715  automatically shuts off an 
17716 \family sans
17717 InvisibleText
17718 \family default
17719 .
17720  It's therefore not necessary to use 
17721 \family sans
17722 VisibleText
17723 \family default
17724  at the end of a 
17725 \family sans
17726 Slide
17727 \family default
17728 .
17729 \end_layout
17730
17731 \begin_layout Standard
17732 By now, it should be obvious how to create overlay transparencies using
17733  the proper combination of 
17734 \family sans
17735 InvisibleText
17736 \family default
17737  and 
17738 \family sans
17739 VisibleText
17740 \family default
17741  on a 
17742 \family sans
17743 Slide
17744 \family default
17745  and 
17746 \family sans
17747 Overlay
17748 \family default
17749 :
17750 \end_layout
17751
17752 \begin_layout Enumerate
17753 Create a 
17754 \family sans
17755 Slide
17756 \family default
17757 , including everything that will appear on it, whether on the main slide
17758  or on the 
17759 \family sans
17760 Overlay
17761 \family default
17762 .
17763 \end_layout
17764
17765 \begin_layout Enumerate
17766 Before each figure or paragraph that will appear only on the 
17767 \family sans
17768 Overlay
17769 \family default
17770 , insert an 
17771 \family sans
17772 InvisibleText
17773 \family default
17774  environment.
17775  If necessary, insert a 
17776 \family sans
17777 VisibleText
17778 \family default
17779  environment after the 
17780 \family sans
17781 Overlay
17782 \family default
17783 -only text.
17784 \end_layout
17785
17786 \begin_layout Enumerate
17787 Start an 
17788 \family sans
17789 Overlay
17790 \family default
17791  immediately following the 
17792 \family sans
17793 Slide
17794 \family default
17795 .
17796 \end_layout
17797
17798 \begin_layout Enumerate
17799 Copy the contents of this 
17800 \family sans
17801 Slide
17802 \family default
17803  into the 
17804 \family sans
17805 Overlay
17806 \family default
17807 .
17808 \end_layout
17809
17810 \begin_layout Enumerate
17811 Within the 
17812 \family sans
17813 Overlay
17814 \family default
17815 , change all of the 
17816 \family sans
17817 InvisibleText
17818 \family default
17819  lines to 
17820 \family sans
17821 VisibleText
17822 \family default
17823  and vice-versa.
17824 \end_layout
17825
17826 \begin_layout Standard
17827 That's it.
17828  You've just made an 
17829 \family sans
17830 Overlay
17831 \family default
17832 .
17833 \end_layout
17834
17835 \begin_layout Standard
17836 There's one problem with the way I've designed the \SpecialChar LyX
17837  
17838 \family sans
17839 slides
17840 \family default
17841  class: you can't make text in the middle of a paragraph invisible, nor
17842  make text in the middle of an invisible paragraph visible again.
17843  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
17844  codes.
17845 \begin_inset Foot
17846 status collapsed
17847
17848 \begin_layout Plain Layout
17849 The commands of interest are: 
17850 \end_layout
17851
17852 \begin_layout Itemize
17853
17854 \family typewriter
17855 {
17856 \backslash
17857 invisible \SpecialChar ldots
17858  }
17859 \end_layout
17860
17861 \begin_layout Itemize
17862
17863 \family typewriter
17864 {
17865 \backslash
17866 visible \SpecialChar ldots
17867  }
17868 \end_layout
17869
17870 \begin_layout Plain Layout
17871 \SpecialChar ldots
17872 and need to be marked as \SpecialChar TeX
17873 .
17874  The text whose 
17875 \begin_inset Quotes eld
17876 \end_inset
17877
17878 visibility
17879 \begin_inset Quotes erd
17880 \end_inset
17881
17882  you wish to change goes in between the brackets [and after the 
17883 \family typewriter
17884
17885 \backslash
17886 invisible
17887 \family default
17888  or 
17889 \family typewriter
17890
17891 \backslash
17892 visible
17893 \family default
17894  command].
17895  If you don't know how to mark text as \SpecialChar TeX
17896 , see the appropriate section of
17897  the 
17898 \emph on
17899 User's Guide
17900 \emph default
17901 .
17902 \end_layout
17903
17904 \end_inset
17905
17906
17907 \end_layout
17908
17909 \begin_layout Subsubsection
17910 Using 
17911 \family sans
17912 Note
17913 \family default
17914  with 
17915 \family sans
17916 Slide
17917 \family default
17918
17919 \begin_inset CommandInset label
17920 LatexCommand label
17921 name "sec:slideNote"
17922
17923 \end_inset
17924
17925
17926 \end_layout
17927
17928 \begin_layout Standard
17929 Like an 
17930 \family sans
17931 Overlay
17932 \family default
17933 , a 
17934 \family sans
17935 Note
17936 \family default
17937  is associated with a 
17938 \begin_inset Quotes eld
17939 \end_inset
17940
17941 parent
17942 \begin_inset Quotes erd
17943 \end_inset
17944
17945  
17946 \family sans
17947 Slide
17948 \family default
17949 .
17950  Here, too, the \SpecialChar LyX
17951  
17952 \family sans
17953 slides
17954 \family default
17955  class provides visual cues.
17956  The label for a 
17957 \family sans
17958 Note
17959 \family default
17960  is shorter than that of a 
17961 \family sans
17962 Slide
17963 \family default
17964  [yet longer than that of an 
17965 \family sans
17966 Overlay
17967 \family default
17968 ] and, like the label of an 
17969 \family sans
17970 Overlay
17971 \family default
17972  is shockingly magenta.
17973  Additionally, the printed 
17974 \family sans
17975 Note
17976 \family default
17977  has the page number of its 
17978 \begin_inset Quotes eld
17979 \end_inset
17980
17981 parent
17982 \begin_inset Quotes erd
17983 \end_inset
17984
17985  
17986 \family sans
17987 Slide
17988 \family default
17989 , appended by 
17990 \begin_inset Quotes eld
17991 \end_inset
17992
17993
17994 \family typewriter
17995 -
17996 \family default
17997 1
17998 \begin_inset Quotes erd
17999 \end_inset
18000
18001
18002 \begin_inset Quotes eld
18003 \end_inset
18004
18005
18006 \family typewriter
18007 -
18008 \family default
18009 2
18010 \begin_inset Quotes erd
18011 \end_inset
18012
18013
18014 \begin_inset Quotes eld
18015 \end_inset
18016
18017
18018 \family typewriter
18019 -
18020 \family default
18021 3
18022 \begin_inset Quotes erd
18023 \end_inset
18024
18025 , etc.
18026  You can have multiple 
18027 \family sans
18028 Note
18029 \family default
18030 s associated with a single 
18031 \family sans
18032 Slide
18033 \family default
18034 , and, as with 
18035 \family sans
18036 Slide
18037 \family default
18038  and 
18039 \family sans
18040 Overlay
18041 \family default
18042 , you'll probably want to break up long 
18043 \family sans
18044 Note
18045 \family default
18046 s so that they fit on a single sheet of paper.
18047 \end_layout
18048
18049 \begin_layout Standard
18050 The purpose of a 
18051 \family sans
18052 Note
18053 \family default
18054  is obvious: it contains anything additional you might want to say about
18055  a 
18056 \family sans
18057 Slide
18058 \family default
18059 .
18060  It could also be used as a sheet of reminders for a particular 
18061 \family sans
18062 Slide
18063 \family default
18064 .
18065  In the case of the latter, you might want to make use of time markers.
18066  Currently, the \SpecialChar LyX
18067  
18068 \family sans
18069 slides
18070 \family default
18071  class has no 
18072 \begin_inset Quotes eld
18073 \end_inset
18074
18075 native
18076 \begin_inset Quotes erd
18077 \end_inset
18078
18079  support for time markers, a 
18080 \noun on
18081 Sli\SpecialChar TeX
18082
18083 \noun default
18084  feature.
18085  So, you'll have to resort to using the \SpecialChar LaTeX
18086  codes.
18087 \end_layout
18088
18089 \begin_layout Standard
18090 To use time markers, you'll need to specify the extra class option 
18091 \begin_inset Quotes eld
18092 \end_inset
18093
18094
18095 \family typewriter
18096 clock
18097 \family default
18098
18099 \begin_inset Quotes erd
18100 \end_inset
18101
18102  [see section
18103 \begin_inset space ~
18104 \end_inset
18105
18106
18107 \begin_inset CommandInset ref
18108 LatexCommand ref
18109 reference "sec:slidesetup"
18110
18111 \end_inset
18112
18113 ].
18114  This option turns on timing marks, which will appear in the lower-left-hand
18115  corner of every 
18116 \family sans
18117 Note
18118 \family default
18119  you generate.
18120  To set what appears in the time marker, you use the \SpecialChar LaTeX
18121  commands 
18122 \begin_inset Quotes eld
18123 \end_inset
18124
18125
18126 \family typewriter
18127
18128 \backslash
18129 settime{}
18130 \family default
18131
18132 \begin_inset Quotes erd
18133 \end_inset
18134
18135  and 
18136 \begin_inset Quotes eld
18137 \end_inset
18138
18139
18140 \family typewriter
18141
18142 \backslash
18143 addtime{}
18144 \family default
18145
18146 \begin_inset Quotes erd
18147 \end_inset
18148
18149 .
18150  The arguments of both commands are time measured in seconds.
18151  
18152 \begin_inset Quotes eld
18153 \end_inset
18154
18155
18156 \family typewriter
18157
18158 \backslash
18159 settime{}
18160 \family default
18161
18162 \begin_inset Quotes erd
18163 \end_inset
18164
18165  sets the time marker to a given time.
18166  
18167 \begin_inset Quotes eld
18168 \end_inset
18169
18170
18171 \family typewriter
18172
18173 \backslash
18174 addtime{}
18175 \family default
18176
18177 \begin_inset Quotes erd
18178 \end_inset
18179
18180  increments the time marker by the specified amount.
18181  Using time markers and 
18182 \family sans
18183 Note
18184 \family default
18185 s in this fashion, you can remind yourself how much time to spend on a particula
18186
18187 \family sans
18188 Slide
18189 \family default
18190 .
18191 \end_layout
18192
18193 \begin_layout Standard
18194 There's one last feature to describe.
18195  Clearly, you'd like to print out all of your 
18196 \family sans
18197 Slide
18198 \family default
18199 s and 
18200 \family sans
18201 Overlay
18202 \family default
18203 s on transparencies while printing all of your 
18204 \family sans
18205 Note
18206 \family default
18207 s on plain paper.
18208  However, a 
18209 \family sans
18210 Note
18211 \family default
18212  
18213 \emph on
18214 must
18215 \emph default
18216  follow the 
18217 \family sans
18218 Slide
18219 \family default
18220  with which it is associated.
18221  What's a person to do?
18222 \end_layout
18223
18224 \begin_layout Standard
18225 Luckily, there are two \SpecialChar LaTeX
18226  commands that allow you to select what to print
18227  out.
18228  Both must be placed into the preamble of your document.
18229  The command 
18230 \begin_inset Quotes eld
18231 \end_inset
18232
18233
18234 \family typewriter
18235
18236 \backslash
18237 onlyslides{
18238 \backslash
18239 slides}
18240 \family default
18241
18242 \begin_inset Quotes erd
18243 \end_inset
18244
18245  will cause the output to contain only the 
18246 \family sans
18247 Slide
18248 \family default
18249 s and 
18250 \family sans
18251 Overlay
18252 \family default
18253 s.
18254  Correspondingly, the command 
18255 \begin_inset Quotes eld
18256 \end_inset
18257
18258
18259 \family typewriter
18260
18261 \backslash
18262 onlynotes{
18263 \backslash
18264 notes}
18265 \family default
18266
18267 \begin_inset Quotes erd
18268 \end_inset
18269
18270  prevents the output of anything but 
18271 \family sans
18272 Note
18273 \family default
18274 s.
18275  I'd advise placing both commands in the preamble and initially comment
18276  both out.
18277  You can then preview your entire presentation as you write.
18278  When you're done writing, you can then uncomment one of the two to select
18279  what you want to print.
18280  I like to uncomment 
18281 \begin_inset Quotes eld
18282 \end_inset
18283
18284
18285 \family typewriter
18286
18287 \backslash
18288 onlyslides{
18289 \backslash
18290 slides}
18291 \family default
18292
18293 \begin_inset Quotes erd
18294 \end_inset
18295
18296  , print to a file with 
18297 \begin_inset Quotes eld
18298 \end_inset
18299
18300
18301 \family typewriter
18302 -slides
18303 \family default
18304
18305 \begin_inset Quotes erd
18306 \end_inset
18307
18308  in its name, comment it back out, then uncomment 
18309 \begin_inset Quotes eld
18310 \end_inset
18311
18312
18313 \family typewriter
18314
18315 \backslash
18316 onlynotes{
18317 \backslash
18318 notes}
18319 \family default
18320
18321 \begin_inset Quotes erd
18322 \end_inset
18323
18324  and print to a 
18325 \begin_inset Quotes eld
18326 \end_inset
18327
18328
18329 \family typewriter
18330 *-notes.ps
18331 \family default
18332
18333 \begin_inset Quotes erd
18334 \end_inset
18335
18336  file.
18337  I can then send either file to a printer, loading transparencies or plain
18338  paper as appropriate.
18339 \end_layout
18340
18341 \begin_layout Standard
18342 You can also provide other arguments to the 
18343 \begin_inset Quotes eld
18344 \end_inset
18345
18346
18347 \family typewriter
18348
18349 \backslash
18350 onlyslides{}
18351 \family default
18352
18353 \begin_inset Quotes erd
18354 \end_inset
18355
18356  and 
18357 \begin_inset Quotes eld
18358 \end_inset
18359
18360
18361 \family typewriter
18362
18363 \backslash
18364 onlynotes{}
18365 \family default
18366
18367 \begin_inset Quotes erd
18368 \end_inset
18369
18370  commands.
18371  See a good \SpecialChar LaTeX
18372  book for details.
18373 \end_layout
18374
18375 \begin_layout Subsection
18376 The 
18377 \family sans
18378 slides
18379 \family default
18380  Class Template File
18381 \end_layout
18382
18383 \begin_layout Standard
18384 I have also provided a template file, 
18385 \begin_inset Quotes eld
18386 \end_inset
18387
18388
18389 \family typewriter
18390 slides.lyx
18391 \family default
18392
18393 \begin_inset Quotes erd
18394 \end_inset
18395
18396 , with the 
18397 \family sans
18398 slides
18399 \family default
18400  class.
18401  To use it, begin your new presentation with 
18402 \family sans
18403 \bar under
18404 F
18405 \bar default
18406 ile\SpecialChar menuseparator
18407 New
18408 \begin_inset space ~
18409 \end_inset
18410
18411 from
18412 \begin_inset space ~
18413 \end_inset
18414
18415
18416 \bar under
18417 T
18418 \bar default
18419 emplate
18420 \family default
18421 .
18422  Your new \SpecialChar LyX
18423  presentation file will contain an example 
18424 \family sans
18425 Slide
18426 \family default
18427  – 
18428 \family sans
18429 Overlay
18430 \family default
18431  – 
18432 \family sans
18433 Note
18434 \family default
18435  triplet.
18436  The 
18437 \family sans
18438 Slide
18439 \family default
18440  and 
18441 \family sans
18442 Overlay
18443 \family default
18444  additionally contain an example of the use of 
18445 \family sans
18446 InvisibleText
18447 \family default
18448  and 
18449 \family sans
18450 VisibleText
18451 \family default
18452 .
18453  Lastly, the preamble will contain:
18454 \end_layout
18455
18456 \begin_layout LyX-Code
18457 % Uncomment to print out only slides and overlays
18458 \end_layout
18459
18460 \begin_layout LyX-Code
18461 %
18462 \end_layout
18463
18464 \begin_layout LyX-Code
18465 %
18466 \backslash
18467 onlyslides{
18468 \backslash
18469 slides}
18470 \begin_inset Newline newline
18471 \end_inset
18472
18473  
18474 \end_layout
18475
18476 \begin_layout LyX-Code
18477 % Uncomment to print out only notes
18478 \end_layout
18479
18480 \begin_layout LyX-Code
18481 %
18482 \end_layout
18483
18484 \begin_layout LyX-Code
18485 %
18486 \backslash
18487 onlynotes{
18488 \backslash
18489 notes}
18490 \end_layout
18491
18492 \begin_layout Standard
18493 One final thing: I created this class to support the \SpecialChar LaTeX2e
18494  
18495 \begin_inset Quotes eld
18496 \end_inset
18497
18498
18499 \noun on
18500 Sli\SpecialChar TeX
18501
18502 \noun default
18503  emulation
18504 \begin_inset Quotes erd
18505 \end_inset
18506
18507  class, one of the built-in \SpecialChar LaTeX2e
18508  classes.
18509  Neither I nor the rest of the \SpecialChar LyX
18510  Team endorse or oppose the use of this built-in
18511  slide class.
18512  It's here if you want it or need it.
18513  There exist other \SpecialChar LaTeX2e
18514  classes for creating presentations, such as the 
18515 \family sans
18516 Foils
18517 \family default
18518  class [see section
18519 \begin_inset space ~
18520 \end_inset
18521
18522
18523 \begin_inset CommandInset ref
18524 LatexCommand ref
18525 reference "sec:foiltex"
18526
18527 \end_inset
18528
18529 ] or the 
18530 \begin_inset Quotes eld
18531 \end_inset
18532
18533
18534 \family typewriter
18535 seminar
18536 \family default
18537
18538 \begin_inset Quotes erd
18539 \end_inset
18540
18541  package [present on some \SpecialChar TeX
18542  distributions].
18543  The latter is not yet supported under \SpecialChar LyX
18544 .
18545 \begin_inset Foot
18546 status collapsed
18547
18548 \begin_layout Plain Layout
18549 Perhaps you can take on the task\SpecialChar ldots
18550
18551 \end_layout
18552
18553 \end_inset
18554
18555  I know nothing about these other classes.
18556  Try them out to see what sort of alternative they provide.
18557 \end_layout
18558
18559 \begin_layout Chapter
18560 \SpecialChar LyX
18561  Features needing Extra Software
18562 \end_layout
18563
18564 \begin_layout Section
18565 Checking \SpecialChar TeX
18566
18567 \end_layout
18568
18569 \begin_layout Standard
18570 by 
18571 \noun on
18572 Asger Alstrup
18573 \end_layout
18574
18575 \begin_layout Subsection
18576 Introduction
18577 \end_layout
18578
18579 \begin_layout Standard
18580 If you have the 
18581 \family typewriter
18582 chktex
18583 \family default
18584  program installed
18585 \begin_inset Foot
18586 status collapsed
18587
18588 \begin_layout Plain Layout
18589
18590 \family typewriter
18591 chktex
18592 \family default
18593  is not yet available when you are using the \SpecialChar LaTeX
18594  distribution MiK\SpecialChar TeX
18595 .
18596 \end_layout
18597
18598 \end_inset
18599
18600 , you'll find in the 
18601 \family sans
18602 Tools
18603 \family default
18604  menu the entry: 
18605 \family sans
18606 Check
18607 \begin_inset space ~
18608 \end_inset
18609
18610 TeX
18611 \family default
18612 .
18613  You can get 
18614 \family typewriter
18615 chktex
18616 \family default
18617  from CTAN,
18618 \begin_inset Newline newline
18619 \end_inset
18620
18621
18622 \begin_inset CommandInset href
18623 LatexCommand href
18624 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18625
18626 \end_inset
18627
18628 .
18629 \end_layout
18630
18631 \begin_layout Standard
18632 The 
18633 \family sans
18634 Chk\SpecialChar TeX
18635
18636 \family default
18637  package is a program that was written by 
18638 \begin_inset Flex Noun
18639 status collapsed
18640
18641 \begin_layout Plain Layout
18642 Jens T.
18643 \begin_inset space ~
18644 \end_inset
18645
18646 Berger Thielemann
18647 \end_layout
18648
18649 \end_inset
18650
18651  in frustration because some constructs in \SpecialChar LaTeX
18652  are sometimes non-intuitive,
18653  and easy to forget.
18654  The program runs over your \SpecialChar LaTeX
18655  file, checks the integrity of the file, and
18656  flags some common errors.
18657  In other technical words, it is 
18658 \family typewriter
18659 lint
18660 \family default
18661  for \SpecialChar LaTeX
18662 .
18663 \end_layout
18664
18665 \begin_layout Standard
18666 Well, what is a syntax checker doing in \SpecialChar LyX
18667  which is supposed to produce correct
18668  \SpecialChar LaTeX
18669  anyways? The answer is simple: Just as 
18670 \family typewriter
18671 Lint
18672 \family default
18673  not only checks the 
18674 \emph on
18675 syntax
18676 \emph default
18677  of C programs, but also does 
18678 \emph on
18679 semantic
18680 \emph default
18681  checks for type-errors, 
18682 \family sans
18683 Chk\SpecialChar TeX
18684
18685 \family default
18686  catches some common 
18687 \emph on
18688 typographic
18689 \emph default
18690  errors, in addition to the syntactical ones.
18691  Specifically, 
18692 \family sans
18693 Chk\SpecialChar TeX
18694
18695 \family default
18696  is capable of detecting several common errors, such as
18697 \end_layout
18698
18699 \begin_layout Itemize
18700 Ellipsis detection:
18701 \begin_inset Newline newline
18702 \end_inset
18703
18704 Use \SpecialChar ldots
18705  instead of ...
18706 \end_layout
18707
18708 \begin_layout Itemize
18709 No space in front of/after parenthesis:
18710 \begin_inset Newline newline
18711 \end_inset
18712
18713 ( wrong spacing )
18714 \end_layout
18715
18716 \begin_layout Itemize
18717 Enforcement of normal space after common abbreviations:
18718 \begin_inset Newline newline
18719 \end_inset
18720
18721 e.
18722 \begin_inset space \thinspace{}
18723 \end_inset
18724
18725 g.
18726 \begin_inset space \space{}
18727 \end_inset
18728
18729 is too wide spacing.
18730 \end_layout
18731
18732 \begin_layout Itemize
18733 Enforcement of end-of-sentence space when the last sentence ends with a
18734  capital letter:
18735 \begin_inset Newline newline
18736 \end_inset
18737
18738 This is a TEST.
18739  And this is wrong spacing.
18740 \end_layout
18741
18742 \begin_layout Itemize
18743 Space in front of labels and similar commands:
18744 \begin_inset Newline newline
18745 \end_inset
18746
18747 The label should stick right up to the text to avoid falling to a wrong
18748  page.
18749  
18750 \begin_inset CommandInset label
18751 LatexCommand label
18752 name "sec:chktex"
18753
18754 \end_inset
18755
18756  
18757 \begin_inset Foot
18758 status collapsed
18759
18760 \begin_layout Plain Layout
18761 This footnote is in danger of falling off to a wrong page
18762 \end_layout
18763
18764 \end_inset
18765
18766  The label is separated too much.
18767 \end_layout
18768
18769 \begin_layout Itemize
18770 Space in front of references, instead of hard spaces:
18771 \begin_inset Newline newline
18772 \end_inset
18773
18774 If you have bad luck, the text will break right between the referenced text
18775  and reference number, and that's a pity.
18776  See section 
18777 \begin_inset CommandInset ref
18778 LatexCommand ref
18779 reference "sec:chktex"
18780
18781 \end_inset
18782
18783 .
18784 \end_layout
18785
18786 \begin_layout Itemize
18787 Use of 
18788 \begin_inset Quotes eld
18789 \end_inset
18790
18791 x
18792 \begin_inset Quotes erd
18793 \end_inset
18794
18795  instead of 
18796 \begin_inset Formula $\times$
18797 \end_inset
18798
18799  between numbers:
18800 \begin_inset Newline newline
18801 \end_inset
18802
18803 2x2 looks cheap compared to 
18804 \begin_inset Formula $2\times2$
18805 \end_inset
18806
18807 .
18808 \end_layout
18809
18810 \begin_layout Standard
18811 and more \SpecialChar ldots
18812  It is an invaluable tool when you are 
18813 \begin_inset Quotes eld
18814 \end_inset
18815
18816 finishing up
18817 \begin_inset Quotes erd
18818 \end_inset
18819
18820  your document before printing, and you should run it right after the obligatory
18821  spelling check, and before you go fine tuning the typesetting.
18822 \end_layout
18823
18824 \begin_layout Subsection
18825 How to use it
18826 \end_layout
18827
18828 \begin_layout Standard
18829 If you have the program installed, usage is as simple as choosing 
18830 \family sans
18831 Tools\SpecialChar menuseparator
18832 Check
18833 \begin_inset space ~
18834 \end_inset
18835
18836 TeX
18837 \family default
18838 .
18839  This will make \SpecialChar LyX
18840  generate a \SpecialChar LaTeX
18841  file of your document, start 
18842 \family sans
18843 Chk\SpecialChar TeX
18844
18845 \family default
18846  to check it, and then make \SpecialChar LyX
18847  insert 
18848 \begin_inset Quotes eld
18849 \end_inset
18850
18851 error boxes
18852 \begin_inset Quotes erd
18853 \end_inset
18854
18855  with the warnings from 
18856 \family sans
18857 Chk\SpecialChar TeX
18858
18859 \family default
18860 , if there were any.
18861  The warnings will be placed close to the point of the mistake, and you
18862  can quickly find them by using the 
18863 \family sans
18864 Navigate\SpecialChar menuseparator
18865 Error
18866 \family default
18867  menu item, or the shortcut key 
18868 \family sans
18869 C-g
18870 \family default
18871  from the default 
18872 \family typewriter
18873 cua
18874 \family default
18875  bind file.
18876  Open the error boxes by clicking on them with the mouse, or use the shortcut
18877  key 
18878 \family sans
18879 C-i
18880 \family default
18881  from 
18882 \family typewriter
18883 cua
18884 \family default
18885  bindings, or the corresponding 
18886 \family sans
18887 C-o
18888 \family default
18889  for the alternate 
18890 \family typewriter
18891 emacs
18892 \family default
18893  bind file.
18894  Read the warning and correct the mistake, if it is a mistake.
18895  If you have trouble understanding what the warning is about, you can safely
18896  ignore it.
18897  Remember that there is a hidden layer between the document on screen and
18898  the technical details in invoking 
18899 \family sans
18900 Chk\SpecialChar TeX
18901
18902 \family default
18903 , and this gap can make some warnings seem arcane or just plain silly.
18904 \end_layout
18905
18906 \begin_layout Standard
18907 This document is an excellent testing bed for the feature, and it should
18908  provide quite a few warnings for you to fiddle with.
18909  Since computers are only so smart, expect most of the warnings to be false
18910  alarms, though.
18911 \end_layout
18912
18913 \begin_layout Subsection
18914 How to fine tune it
18915 \end_layout
18916
18917 \begin_layout Standard
18918 Sometimes, you'll find that 
18919 \family sans
18920 Chk\SpecialChar TeX
18921
18922 \family default
18923  makes more noise than suits your mood.
18924  Then you can choose not to use it, wait until your mood changes, or try
18925  to customize 
18926 \family sans
18927 Chk\SpecialChar TeX
18928
18929 \family default
18930  to get better along with you.
18931 \end_layout
18932
18933 \begin_layout Standard
18934 Although 
18935 \family sans
18936 Chk\SpecialChar TeX
18937
18938 \family default
18939  
18940 \emph on
18941 is
18942 \emph default
18943  very configurable and extensible, you should not expect to solve all problems
18944  with 
18945 \family sans
18946 Chk\SpecialChar TeX
18947
18948 \family default
18949  in \SpecialChar LyX
18950  this way.
18951  Since \SpecialChar LyX
18952  has to generate a somewhat special \SpecialChar LaTeX
18953  file to be able to match the
18954  line numbers from the 
18955 \family sans
18956 Chk\SpecialChar TeX
18957
18958 \family default
18959  output
18960 \begin_inset Foot
18961 status collapsed
18962
18963 \begin_layout Plain Layout
18964 You can inspect the specific output from 
18965 \family sans
18966 chktex
18967 \family default
18968  by using 
18969 \family sans
18970 Document\SpecialChar menuseparator
18971 \SpecialChar LaTeX
18972
18973 \begin_inset space ~
18974 \end_inset
18975
18976 Log
18977 \family default
18978  right after a 
18979 \family sans
18980 chktex
18981 \family default
18982  run.
18983 \end_layout
18984
18985 \end_inset
18986
18987  to the internal document structure, some of the warnings will not appear
18988  correctly.
18989  There are two things you can do about this:
18990 \end_layout
18991
18992 \begin_layout Itemize
18993 Fine tune the 
18994 \family sans
18995 Chk\SpecialChar TeX
18996
18997 \family default
18998  invocation command line in 
18999 \begin_inset Flex Noun
19000 status collapsed
19001
19002 \begin_layout Plain Layout
19003 Tools\SpecialChar menuseparator
19004 Preferences\SpecialChar menuseparator
19005 Output\SpecialChar menuseparator
19006 LaTeX\SpecialChar menuseparator
19007 CheckTeX command
19008 \end_layout
19009
19010 \end_inset
19011
19012 , or the global 
19013 \family sans
19014 Chk\SpecialChar TeX
19015
19016 \family default
19017  installation configuration file (usually with the file 
19018 \family typewriter
19019 chktexrc
19020 \family default
19021 ).
19022  See below to learn what warnings can be enabled and disabled on the command
19023  line.
19024 \end_layout
19025
19026 \begin_layout Itemize
19027 Export your document as a raw \SpecialChar LaTeX
19028  file using 
19029 \family sans
19030 File\SpecialChar menuseparator
19031 Export\SpecialChar menuseparator
19032 \SpecialChar LaTeX
19033
19034 \family default
19035  and run 
19036 \family typewriter
19037 chktex
19038 \family default
19039  manually on that.
19040  Invoked in this way, it can be a hassle to find the corresponding place
19041  in the document inside \SpecialChar LyX
19042 , but with a little patience, you should be able
19043  to do it.
19044 \end_layout
19045
19046 \begin_layout Standard
19047 Here follows the warning messages that can be enabled and disabled in 
19048 \family sans
19049 Preferences
19050 \family default
19051 .
19052  Use 
19053 \family typewriter
19054 -n#
19055 \family default
19056  to disable a warning, and 
19057 \family typewriter
19058 -w#
19059 \family default
19060  to enable a warning.
19061  The emphasized entries are disabled by default, because the default is
19062  "
19063 \family typewriter
19064 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19065 \family default
19066 ".
19067 \end_layout
19068
19069 \begin_layout Standard
19070 Notice that you should only use the options that enable and disable warnings,
19071  because \SpecialChar LyX
19072  relies on some of the other command line parameters to be set
19073  in a specific way to have a chance to communicate with 
19074 \family typewriter
19075 chktex
19076 \family default
19077 .
19078 \end_layout
19079
19080 \begin_layout Enumerate
19081
19082 \size small
19083 \emph on
19084 Command terminated with space.
19085 \end_layout
19086
19087 \begin_layout Enumerate
19088
19089 \size small
19090 Non-breaking space (
19091 \begin_inset Quotes eld
19092 \end_inset
19093
19094
19095 \family typewriter
19096 ~
19097 \family default
19098
19099 \begin_inset Quotes erd
19100 \end_inset
19101
19102 ) should have been used.
19103 \end_layout
19104
19105 \begin_layout Enumerate
19106
19107 \size small
19108 \emph on
19109 You should enclose the previous parenthesis with 
19110 \begin_inset Quotes eld
19111 \end_inset
19112
19113
19114 \family typewriter
19115 {}
19116 \family default
19117
19118 \begin_inset Quotes erd
19119 \end_inset
19120
19121 .
19122 \end_layout
19123
19124 \begin_layout Enumerate
19125
19126 \size small
19127 Italic correction (
19128 \begin_inset Quotes eld
19129 \end_inset
19130
19131
19132 \family typewriter
19133
19134 \backslash
19135 /
19136 \family default
19137
19138 \begin_inset Quotes erd
19139 \end_inset
19140
19141 ) found in non-italic buffer.
19142 \end_layout
19143
19144 \begin_layout Enumerate
19145
19146 \size small
19147 Italic correction (
19148 \begin_inset Quotes eld
19149 \end_inset
19150
19151
19152 \family typewriter
19153
19154 \backslash
19155 /
19156 \family default
19157
19158 \begin_inset Quotes erd
19159 \end_inset
19160
19161 ) found more than once.
19162 \end_layout
19163
19164 \begin_layout Enumerate
19165
19166 \size small
19167 \emph on
19168 No italic correction (
19169 \begin_inset Quotes eld
19170 \end_inset
19171
19172
19173 \family typewriter
19174
19175 \backslash
19176 /
19177 \family default
19178
19179 \begin_inset Quotes erd
19180 \end_inset
19181
19182 ) found.
19183 \end_layout
19184
19185 \begin_layout Enumerate
19186
19187 \size small
19188 Accent command 
19189 \begin_inset Quotes eld
19190 \end_inset
19191
19192
19193 \family typewriter
19194 cmd
19195 \family default
19196
19197 \begin_inset Quotes erd
19198 \end_inset
19199
19200  needs use of 
19201 \begin_inset Quotes eld
19202 \end_inset
19203
19204
19205 \family typewriter
19206 cmd
19207 \family default
19208
19209 \begin_inset Quotes erd
19210 \end_inset
19211
19212 .
19213 \end_layout
19214
19215 \begin_layout Enumerate
19216
19217 \size small
19218 Wrong length of dash may have been used.
19219 \end_layout
19220
19221 \begin_layout Enumerate
19222
19223 \size small
19224 \emph on
19225 \begin_inset Quotes eld
19226 \end_inset
19227
19228
19229 \family typewriter
19230 %s
19231 \family default
19232
19233 \begin_inset Quotes erd
19234 \end_inset
19235
19236  expected, found 
19237 \begin_inset Quotes eld
19238 \end_inset
19239
19240
19241 \family typewriter
19242 %s
19243 \family default
19244
19245 \begin_inset Quotes erd
19246 \end_inset
19247
19248 .
19249 \end_layout
19250
19251 \begin_layout Enumerate
19252
19253 \size small
19254 Solo 
19255 \begin_inset Quotes eld
19256 \end_inset
19257
19258
19259 \family typewriter
19260 %s
19261 \family default
19262
19263 \begin_inset Quotes erd
19264 \end_inset
19265
19266  found.
19267 \end_layout
19268
19269 \begin_layout Enumerate
19270
19271 \size small
19272 You should use 
19273 \begin_inset Quotes eld
19274 \end_inset
19275
19276
19277 \family typewriter
19278 %s
19279 \family default
19280
19281 \begin_inset Quotes erd
19282 \end_inset
19283
19284  to achieve an ellipsis.
19285 \end_layout
19286
19287 \begin_layout Enumerate
19288
19289 \size small
19290 Inter-word spacing (
19291 \begin_inset Quotes eld
19292 \end_inset
19293
19294
19295 \family typewriter
19296
19297 \backslash
19298
19299 \family default
19300  
19301 \begin_inset Quotes eld
19302 \end_inset
19303
19304 ) should perhaps be used.
19305 \end_layout
19306
19307 \begin_layout Enumerate
19308
19309 \size small
19310 Inter-sentence spacing (
19311 \begin_inset Quotes eld
19312 \end_inset
19313
19314
19315 \family typewriter
19316
19317 \backslash
19318 @
19319 \family default
19320
19321 \begin_inset Quotes erd
19322 \end_inset
19323
19324 ) should perhaps be used.
19325 \end_layout
19326
19327 \begin_layout Enumerate
19328
19329 \size small
19330 Could not find argument for command.
19331 \end_layout
19332
19333 \begin_layout Enumerate
19334
19335 \size small
19336 No match found for 
19337 \begin_inset Quotes eld
19338 \end_inset
19339
19340
19341 \family typewriter
19342 %s
19343 \family default
19344
19345 \begin_inset Quotes erd
19346 \end_inset
19347
19348 .
19349 \end_layout
19350
19351 \begin_layout Enumerate
19352
19353 \size small
19354 Math mode still on at end of \SpecialChar LaTeX
19355  file.
19356 \end_layout
19357
19358 \begin_layout Enumerate
19359
19360 \size small
19361 Number of 
19362 \begin_inset Quotes eld
19363 \end_inset
19364
19365
19366 \family typewriter
19367 char
19368 \family default
19369
19370 \begin_inset Quotes erd
19371 \end_inset
19372
19373  doesn't match the number of 
19374 \begin_inset Quotes eld
19375 \end_inset
19376
19377
19378 \family typewriter
19379 char
19380 \family default
19381
19382 \begin_inset Quotes erd
19383 \end_inset
19384
19385 .
19386 \end_layout
19387
19388 \begin_layout Enumerate
19389
19390 \size small
19391 You should use either 
19392 \family typewriter
19393
19394 \begin_inset Quotes eld
19395 \end_inset
19396
19397
19398 \family default
19399  or 
19400 \family typewriter
19401
19402 \begin_inset Quotes erd
19403 \end_inset
19404
19405
19406 \family default
19407  as an alternative to 
19408 \begin_inset Quotes eld
19409 \end_inset
19410
19411
19412 \family typewriter
19413 "
19414 \family default
19415
19416 \begin_inset Quotes erd
19417 \end_inset
19418
19419 .
19420 \end_layout
19421
19422 \begin_layout Enumerate
19423
19424 \size small
19425 You should use "
19426 \family typewriter
19427 '
19428 \family default
19429 " (ASCII 39) instead of "
19430 \family typewriter
19431 ´
19432 \family default
19433 " (ASCII 180).
19434 \end_layout
19435
19436 \begin_layout Enumerate
19437
19438 \size small
19439 User-specified pattern found.
19440 \end_layout
19441
19442 \begin_layout Enumerate
19443
19444 \size small
19445 This command might not be intended.
19446 \end_layout
19447
19448 \begin_layout Enumerate
19449
19450 \size small
19451 \emph on
19452 Comment displayed.
19453 \end_layout
19454
19455 \begin_layout Enumerate
19456
19457 \size small
19458 Either 
19459 \family typewriter
19460 ''
19461 \backslash
19462 ,'
19463 \family default
19464  or 
19465 \family typewriter
19466 '
19467 \backslash
19468 ,''
19469 \family default
19470  will look better.
19471 \end_layout
19472
19473 \begin_layout Enumerate
19474
19475 \size small
19476 Delete this space to maintain correct page references.
19477 \end_layout
19478
19479 \begin_layout Enumerate
19480
19481 \size small
19482 \emph on
19483 You might wish to put this between a pair of 
19484 \begin_inset Quotes eld
19485 \end_inset
19486
19487
19488 \family typewriter
19489 {}
19490 \family default
19491
19492 \begin_inset Quotes erd
19493 \end_inset
19494
19495 .
19496 \end_layout
19497
19498 \begin_layout Enumerate
19499
19500 \size small
19501 You ought to remove spaces in front of punctuation.
19502 \end_layout
19503
19504 \begin_layout Enumerate
19505
19506 \size small
19507 Could not execute \SpecialChar LaTeX
19508  command.
19509 \end_layout
19510
19511 \begin_layout Enumerate
19512
19513 \size small
19514 Don't use 
19515 \family typewriter
19516
19517 \backslash
19518 /
19519 \family default
19520  in front of small punctuation.
19521 \end_layout
19522
19523 \begin_layout Enumerate
19524
19525 \family typewriter
19526 \size small
19527 $
19528 \backslash
19529 times$
19530 \family default
19531  may look prettier here.
19532 \end_layout
19533
19534 \begin_layout Enumerate
19535
19536 \size small
19537 \emph on
19538 Multiple spaces detected in output.
19539 \end_layout
19540
19541 \begin_layout Enumerate
19542
19543 \size small
19544 This text may be ignored.
19545 \end_layout
19546
19547 \begin_layout Enumerate
19548
19549 \size small
19550 Use 
19551 \family typewriter
19552
19553 \begin_inset Quotes eld
19554 \end_inset
19555
19556
19557 \family default
19558  to begin quotation, not 
19559 \family typewriter
19560 '
19561 \family default
19562 .
19563 \end_layout
19564
19565 \begin_layout Enumerate
19566
19567 \size small
19568 Use 
19569 \family typewriter
19570 '
19571 \family default
19572  to end quotation, not 
19573 \family typewriter
19574
19575 \begin_inset Quotes eld
19576 \end_inset
19577
19578
19579 \family default
19580 .
19581 \end_layout
19582
19583 \begin_layout Enumerate
19584
19585 \size small
19586 Don't mix quotes.
19587 \end_layout
19588
19589 \begin_layout Enumerate
19590
19591 \size small
19592 You should perhaps use 
19593 \begin_inset Quotes eld
19594 \end_inset
19595
19596
19597 \family typewriter
19598 cmd
19599 \family default
19600
19601 \begin_inset Quotes erd
19602 \end_inset
19603
19604  instead.
19605 \end_layout
19606
19607 \begin_layout Enumerate
19608
19609 \size small
19610 You should put a space in front of/after parenthesis.
19611 \end_layout
19612
19613 \begin_layout Enumerate
19614
19615 \size small
19616 You should avoid spaces in front of/after parenthesis.
19617 \end_layout
19618
19619 \begin_layout Enumerate
19620
19621 \size small
19622 \emph on
19623 You should not use punctuation in front of/after quotes.
19624 \end_layout
19625
19626 \begin_layout Enumerate
19627
19628 \size small
19629 Double space found.
19630 \end_layout
19631
19632 \begin_layout Enumerate
19633
19634 \size small
19635 You should put punctuation outside inner/inside display math mode.
19636 \end_layout
19637
19638 \begin_layout Enumerate
19639
19640 \size small
19641 You ought to not use primitive \SpecialChar TeX
19642  in \SpecialChar LaTeX
19643  code.
19644 \end_layout
19645
19646 \begin_layout Enumerate
19647
19648 \size small
19649 You should remove spaces in front of 
19650 \begin_inset Quotes eld
19651 \end_inset
19652
19653
19654 \family typewriter
19655 %s
19656 \family default
19657
19658 \begin_inset Quotes erd
19659 \end_inset
19660
19661
19662 \end_layout
19663
19664 \begin_layout Enumerate
19665
19666 \size small
19667 \begin_inset Quotes eld
19668 \end_inset
19669
19670
19671 \family typewriter
19672 %s
19673 \family default
19674
19675 \begin_inset Quotes erd
19676 \end_inset
19677
19678  is normally not followed by 
19679 \begin_inset Quotes eld
19680 \end_inset
19681
19682
19683 \family typewriter
19684 %c
19685 \family default
19686
19687 \begin_inset Quotes erd
19688 \end_inset
19689
19690 .
19691 \end_layout
19692
19693 \begin_layout Standard
19694 In later versions of \SpecialChar LyX
19695 , we hope to provide a more complete interface to this
19696  tool (and it's smaller cousin 
19697 \family typewriter
19698 lacheck
19699 \family default
19700 ) to exploit the full power of it.
19701  But it's not exactly useless as it is now: go try it on one of your existing
19702  documents of a certain length and be surprised.
19703 \end_layout
19704
19705 \begin_layout Section
19706 Version Control in \SpecialChar LyX
19707
19708 \end_layout
19709
19710 \begin_layout Standard
19711 by
19712 \noun on
19713  Lars Gullik Bjønnes 
19714 \noun default
19715 and 
19716 \noun on
19717 Pavel Sanda
19718 \end_layout
19719
19720 \begin_layout Subsection
19721 Introduction
19722 \end_layout
19723
19724 \begin_layout Standard
19725 \SpecialChar LyX
19726  supports some of the most basic RCS/CVS/SVN/GIT commands.
19727  If you need something a bit more sophisticated you will have to do that
19728  manually in a terminal.
19729 \end_layout
19730
19731 \begin_layout Standard
19732 Also note that CVS support is not as good as subversion support so we advise
19733  using SVN instead.
19734  A good place to start learning Subversion is SVN Book
19735 \begin_inset Foot
19736 status collapsed
19737
19738 \begin_layout Plain Layout
19739 \begin_inset CommandInset href
19740 LatexCommand href
19741 target "http://svnbook.red-bean.com/"
19742
19743 \end_inset
19744
19745
19746 \end_layout
19747
19748 \end_inset
19749
19750 .
19751  In the case of RCS you should read 
19752 \begin_inset Quotes eld
19753 \end_inset
19754
19755 rcsintro
19756 \begin_inset Quotes erd
19757 \end_inset
19758
19759  (a man file, read it with 
19760 \family typewriter
19761 man rcsintro
19762 \family default
19763 ).
19764  This file describes all the basic features of RCS.
19765  You should especially notice the comment about a RCS directory, and the
19766  notion of a master RCS file (the file ending in 
19767 \family typewriter
19768 ,v
19769 \family default
19770 ).
19771 \end_layout
19772
19773 \begin_layout Standard
19774 Before you begin to use the version control features in \SpecialChar LyX
19775 , you should be
19776  familiar with RCS/CVS/SVN/GIT usage.
19777  The implementation in \SpecialChar LyX
19778  assumes a recent version of the GNU RCS or CVS/SVN
19779  package — no guarantees are made for older versions.
19780  Most of the log messages are not currently displayed after operations —
19781  you can check them in the Messages pane if unsure.
19782  Regular users of version control will appreciate VC toolbar, which can
19783  be enabled via 
19784 \family sans
19785 View\SpecialChar menuseparator
19786 Toolbars\SpecialChar menuseparator
19787 Version
19788 \begin_inset space ~
19789 \end_inset
19790
19791 Control
19792 \family default
19793 .
19794 \end_layout
19795
19796 \begin_layout Standard
19797 For introducing your own external commands consult vc-command in the manual
19798  of \SpecialChar LyX
19799  functions.
19800 \end_layout
19801
19802 \begin_layout Standard
19803 It is strongly recommended to store documents in uncompressed format if
19804  using version control (uncheck 
19805 \family sans
19806 Document\SpecialChar menuseparator
19807 Compressed
19808 \family default
19809  if it is checked): Uncompressed LyX documents are text files and therefore
19810  for merging two different versions by version control systems.
19811  Compressed LyX documents are binary files, which cannot be merged by version
19812  control systems.
19813 \end_layout
19814
19815 \begin_layout Subsection
19816 RCS commands in \SpecialChar LyX
19817
19818 \end_layout
19819
19820 \begin_layout Standard
19821 The following sections describe the RCS commands supported by \SpecialChar LyX
19822 .
19823  You can find them in the 
19824 \family sans
19825 File\SpecialChar menuseparator
19826 Version
19827 \begin_inset space ~
19828 \end_inset
19829
19830 Control
19831 \family default
19832  submenu.
19833  \SpecialChar LyX
19834  was tested against RCS 5.7/5.8.
19835 \end_layout
19836
19837 \begin_layout Subsubsection
19838
19839 \family sans
19840 Register
19841 \end_layout
19842
19843 \begin_layout Standard
19844 If your document is not under revision control, this is the only item shown
19845  in the menu.
19846  And if it is under revision control, the 
19847 \family sans
19848 Register
19849 \family default
19850  item is not visible.
19851  
19852 \end_layout
19853
19854 \begin_layout Standard
19855 This command registers your document with RCS (unless you are under the
19856  directory managed by CVS)\SpecialChar endofsentence
19857  You are asked interactively to supply an initial
19858  description of the document.
19859  The document is now set in Read-Only mode and you have to 
19860 \family sans
19861 Check
19862 \begin_inset space ~
19863 \end_inset
19864
19865 Out
19866 \begin_inset space ~
19867 \end_inset
19868
19869 For
19870 \begin_inset space ~
19871 \end_inset
19872
19873 Edit
19874 \family default
19875 , before making any changes to it.
19876  A document under revision control has a 
19877 \begin_inset Quotes eld
19878 \end_inset
19879
19880 [RCS:<version> <locker>]
19881 \begin_inset Quotes erd
19882 \end_inset
19883
19884  item tagged to the filename in the minibuffer.
19885 \end_layout
19886
19887 \begin_layout Standard
19888 RCS command that is run: 
19889 \family typewriter
19890 ci -q -u -i -t-"<initial description>" <file-name>
19891 \end_layout
19892
19893 \begin_layout Standard
19894 Read 
19895 \family typewriter
19896 man ci
19897 \family default
19898  to understand the switches.
19899  
19900 \end_layout
19901
19902 \begin_layout Subsubsection
19903
19904 \family sans
19905 Check In Changes
19906 \end_layout
19907
19908 \begin_layout Standard
19909 When you are finished editing a file, you check in your changes.
19910  When you do this, you are asked for a description of the changes.
19911  This is stored in the history log.
19912  The version number is bumped, your changes are applied to the master RCS
19913  file, the document is unlocked and set to Read-Only mode.
19914 \end_layout
19915
19916 \begin_layout Standard
19917 RCS command: 
19918 \family typewriter
19919 ci -q -u -m"<description>" <file-name>
19920 \end_layout
19921
19922 \begin_layout Subsubsection
19923
19924 \family sans
19925 Check Out For Edit
19926 \end_layout
19927
19928 \begin_layout Standard
19929 By doing this you lock the document so that only you can edit it.
19930  This will also make the document Read-Write only for you.
19931  You will usually continue editing for a while and when you are finished
19932  you check in your changes.
19933  The status line is changed to reflect that you have locked the file.
19934 \end_layout
19935
19936 \begin_layout Standard
19937 RCS command: 
19938 \family typewriter
19939 co -q -l <file-name>
19940 \end_layout
19941
19942 \begin_layout Subsubsection
19943
19944 \family sans
19945 Revert To Repository Version
19946 \end_layout
19947
19948 \begin_layout Standard
19949 This will discard all changes made to the document since the last check
19950  in.
19951  You get a warning before changes are discarded.
19952 \end_layout
19953
19954 \begin_layout Standard
19955 RCS command: 
19956 \family typewriter
19957 co -f -u<version> <file-name>
19958 \end_layout
19959
19960 \begin_layout Subsubsection
19961
19962 \family sans
19963 Copy
19964 \end_layout
19965
19966 \begin_layout Standard
19967 This will create a copy of the current document.
19968  Since RCS does not support copy operations natively, the version history
19969  is not preserved, and the copy is added as a new file.
19970  It requires a clean document without any changes since the last checkin.
19971  You are asked for a file name and a description of the copy operation.
19972  After that the copy is created, both locally and in the repository.
19973  If the parent directories of the copied and original document differ, all
19974  relative paths of included files of the copy are adjusted (like in 
19975 \family sans
19976 File\SpecialChar menuseparator
19977 Save As
19978 \family default
19979 \SpecialChar ldots
19980 ).
19981  Finally, the copy is loaded instead of the original document.
19982 \end_layout
19983
19984 \begin_layout Labeling
19985 \labelwidthstring 00.00.0000
19986 RCS
19987 \begin_inset space ~
19988 \end_inset
19989
19990 commands: 
19991 \begin_inset space ~
19992 \end_inset
19993
19994
19995 \begin_inset Newline newline
19996 \end_inset
19997
19998 Copy 
19999 \begin_inset Flex Code
20000 status collapsed
20001
20002 \begin_layout Plain Layout
20003
20004 \family typewriter
20005 \begin_inset Quotes eld
20006 \end_inset
20007
20008 <file-name>
20009 \begin_inset Quotes erd
20010 \end_inset
20011
20012
20013 \end_layout
20014
20015 \end_inset
20016
20017  to 
20018 \begin_inset Flex Code
20019 status collapsed
20020
20021 \begin_layout Plain Layout
20022
20023 \family typewriter
20024 \begin_inset Quotes eld
20025 \end_inset
20026
20027 <new-file-name>
20028 \begin_inset Quotes erd
20029 \end_inset
20030
20031
20032 \end_layout
20033
20034 \end_inset
20035
20036
20037 \begin_inset Newline newline
20038 \end_inset
20039
20040
20041 \begin_inset Flex Code
20042 status collapsed
20043
20044 \begin_layout Plain Layout
20045 ci -q -u 
20046 \family typewriter
20047 -i 
20048 \begin_inset Quotes eld
20049 \end_inset
20050
20051 <new-file-name>
20052 \begin_inset Quotes erd
20053 \end_inset
20054
20055
20056 \end_layout
20057
20058 \end_inset
20059
20060
20061 \end_layout
20062
20063 \begin_layout Subsubsection
20064
20065 \family sans
20066 Undo Last Checkin
20067 \end_layout
20068
20069 \begin_layout Standard
20070 This makes as if the last check in never happened.
20071  No changes are made to the document loaded into \SpecialChar LyX
20072 , but the last version
20073  is removed from the master RCS file.
20074 \end_layout
20075
20076 \begin_layout Standard
20077 RCS command: 
20078 \family typewriter
20079 rcs -o<version> <file-name>
20080 \end_layout
20081
20082 \begin_layout Subsubsection
20083
20084 \family sans
20085 Show History
20086 \end_layout
20087
20088 \begin_layout Standard
20089 This shows the complete history of the RCS document.
20090  The output of 
20091 \family typewriter
20092 rlog <file-name>
20093 \family default
20094  is shown in a browser.
20095  See 
20096 \family typewriter
20097 man rlog
20098 \family default
20099  for more info.
20100 \end_layout
20101
20102 \begin_layout Subsubsection
20103 Revision info
20104 \end_layout
20105
20106 \begin_layout Standard
20107 \SpecialChar LyX
20108  supports RCS version number, author name, date and time of last commit.
20109  All those are extracted from 
20110 \family typewriter
20111 rlog -r <file-name>
20112 \family default
20113 .
20114  See 
20115 \begin_inset CommandInset ref
20116 LatexCommand ref
20117 reference "subsec:VCS-Revision-Information"
20118
20119 \end_inset
20120
20121  for details.
20122 \end_layout
20123
20124 \begin_layout Subsection
20125 CVS commands in \SpecialChar LyX
20126
20127 \end_layout
20128
20129 \begin_layout Standard
20130 A subset of CVS operations is supported by \SpecialChar LyX
20131 .
20132  You can find the commands in the 
20133 \family sans
20134 File\SpecialChar menuseparator
20135 Version
20136 \begin_inset space ~
20137 \end_inset
20138
20139 Control
20140 \family default
20141  submenu.
20142  The version control system SVN is more powerful, so please use it instead
20143  of CVS if possible.
20144 \end_layout
20145
20146 \begin_layout Subsubsection
20147
20148 \family sans
20149 General CVS usage
20150 \end_layout
20151
20152 \begin_layout Standard
20153 If you start from scratch with CVS you have to create your repository and
20154  checkout the working copy with external tools.
20155  If you're using a client-server setup you may need to login before doing
20156  the first repository checkout.
20157 \end_layout
20158
20159 \begin_layout Standard
20160 If your documents are under revision control and others are using the same
20161  repository problems arise when different changes to the same document at
20162  the same location happen.
20163  Standard CVS repositories don't operate with a file locking mechanism.
20164  This may be surprising, but conflicts only occur if people disagree on
20165  the proper content of the same part of a document.
20166  So, if co-workers are used to communicate regularly, these conflicts occur
20167  rarely.
20168  If they don't communicate they have a fundamental problem anyway.
20169  Nevertheless some people like to work with so called 
20170 \begin_inset Quotes eld
20171 \end_inset
20172
20173 reserved checkouts
20174 \begin_inset Quotes erd
20175 \end_inset
20176
20177 .
20178  If they do so the working copy of all files is readonly when checked out
20179  first and the user starts editing after using a special command to make
20180  the working copy writable.
20181  When the changes are checked in the working copy returns to readonly state.
20182  With \SpecialChar LyX
20183  one has to edit the 
20184 \begin_inset Flex Code
20185 status collapsed
20186
20187 \begin_layout Plain Layout
20188 .cvsrc
20189 \end_layout
20190
20191 \end_inset
20192
20193  file and add the line 
20194 \begin_inset Flex Code
20195 status collapsed
20196
20197 \begin_layout Plain Layout
20198 cvs -r
20199 \end_layout
20200
20201 \end_inset
20202
20203  to work with reserved checkouts.
20204  The benefit is the possibility to see who is using a writable copy of some
20205  document.
20206  It's not guaranteed only one user makes a copy writable.
20207 \end_layout
20208
20209 \begin_layout Standard
20210 \SpecialChar LyX
20211  tries to guess if you're using reserved or non-reserved checkouts.
20212  If your working copy is readonly or it is writable and an additional copy
20213  of your document exists in the CVS/Base sub-directory a reserved otherwise
20214  a non-reserved checkout is assumed.
20215  When a reserved checkout is detected you have to use 
20216 \begin_inset Flex Noun
20217 status collapsed
20218
20219 \begin_layout Plain Layout
20220 Check Out
20221 \end_layout
20222
20223 \end_inset
20224
20225  to make your working copy writable if it's readonly.
20226  After doing so the 
20227 \begin_inset Flex Noun
20228 status collapsed
20229
20230 \begin_layout Plain Layout
20231 Check In
20232 \end_layout
20233
20234 \end_inset
20235
20236  operation is possible and that makes your working copy readonly again after
20237  transferring your changes to the repository.
20238 \end_layout
20239
20240 \begin_layout Standard
20241 More information about CVS can be found here 
20242 \begin_inset Flex URL
20243 status collapsed
20244
20245 \begin_layout Plain Layout
20246
20247 http://www.nongnu.org/cvs
20248 \end_layout
20249
20250 \end_inset
20251
20252  and here 
20253 \begin_inset Flex URL
20254 status collapsed
20255
20256 \begin_layout Plain Layout
20257
20258 http://ximbiot.com/cvs
20259 \end_layout
20260
20261 \end_inset
20262
20263 .
20264 \end_layout
20265
20266 \begin_layout Standard
20267 Read 
20268 \family typewriter
20269 man cvs
20270 \family default
20271  to understand the sub-commands and the switches mentioned below.
20272 \end_layout
20273
20274 \begin_layout Subsubsection
20275
20276 \family sans
20277 Register
20278 \end_layout
20279
20280 \begin_layout Standard
20281 If your document is not under revision control, this is the only item shown
20282  in the menu.
20283  And if it is under revision control, the 
20284 \family sans
20285 \bar under
20286 R
20287 \bar default
20288 egister
20289 \family default
20290  item is not visible.
20291  
20292 \end_layout
20293
20294 \begin_layout Standard
20295 This command registers in CVS your document 
20296 \begin_inset Flex Strong
20297 status collapsed
20298
20299 \begin_layout Plain Layout
20300
20301 \emph on
20302 only
20303 \end_layout
20304
20305 \end_inset
20306
20307  in the case you have already the documents directory under CVS control
20308  (in particular 
20309 \family typewriter
20310 CVS/Entries
20311 \family default
20312  file exists).
20313  This means you have to create or checkout the archive by yourself using
20314  external tools.
20315  (In case you forget that step \SpecialChar LyX
20316  registers the document with RCS.)
20317 \end_layout
20318
20319 \begin_layout Standard
20320 Then you are asked interactively to supply an initial description of the
20321  document.
20322  Don't forget that registered file is not yet checked in.
20323 \end_layout
20324
20325 \begin_layout Standard
20326 CVS command that is run: 
20327 \family typewriter
20328 cvs -q add -m"<entered message>" "<file-name>"
20329 \end_layout
20330
20331 \begin_layout Standard
20332 The term 
20333 \family typewriter
20334 "<file-name>"
20335 \family default
20336  above and for all other CVS commands is an abbreviation for 
20337 \begin_inset Quotes eld
20338 \end_inset
20339
20340 change the current working directory to file location and use the file name
20341  without path component as argument
20342 \begin_inset Quotes erd
20343 \end_inset
20344
20345 .
20346 \end_layout
20347
20348 \begin_layout Subsubsection
20349
20350 \family sans
20351 Check In Changes
20352 \end_layout
20353
20354 \begin_layout Standard
20355 When you are finished editing a file, you commit your changes.
20356  When you do this and you had changed the document, you are asked for a
20357  description of the changes.
20358  After that changes are written to the repository.
20359  In case you didn't change the document and a reserved checkout is detected
20360  the reservation made on 
20361 \begin_inset Flex Noun
20362 status collapsed
20363
20364 \begin_layout Plain Layout
20365 Check Out
20366 \end_layout
20367
20368 \end_inset
20369
20370  is undone.
20371 \end_layout
20372
20373 \begin_layout Labeling
20374 \labelwidthstring 00.00.0000
20375 CVS
20376 \begin_inset space ~
20377 \end_inset
20378
20379 command: 
20380 \begin_inset space ~
20381 \end_inset
20382
20383
20384 \begin_inset Newline newline
20385 \end_inset
20386
20387
20388 \begin_inset Flex Code
20389 status collapsed
20390
20391 \begin_layout Plain Layout
20392 cvs 
20393 \family typewriter
20394 -q commit -m"<description>" "<file-name>"
20395 \end_layout
20396
20397 \end_inset
20398
20399  or
20400 \begin_inset Newline newline
20401 \end_inset
20402
20403
20404 \begin_inset Flex Code
20405 status collapsed
20406
20407 \begin_layout Plain Layout
20408 cvs -q unedit 
20409 \family typewriter
20410 "<file-name>"
20411 \end_layout
20412
20413 \end_inset
20414
20415
20416 \end_layout
20417
20418 \begin_layout Subsubsection
20419
20420 \family sans
20421 Check Out Changes
20422 \end_layout
20423
20424 \begin_layout Standard
20425 When you are sharing a repository with others, you may have to incorporate
20426  their changes into your working copy.
20427 \end_layout
20428
20429 \begin_layout Standard
20430 CVS command: 
20431 \family typewriter
20432 cvs -q update "<file-name>"
20433 \end_layout
20434
20435 \begin_layout Standard
20436 If a readonly checkout is detected the working copy is made writable and
20437  reserved.
20438 \end_layout
20439
20440 \begin_layout Standard
20441 CVS command: 
20442 \family typewriter
20443 cvs -q edit "<file-name>"
20444 \end_layout
20445
20446 \begin_layout Subsubsection
20447
20448 \family sans
20449 Revert To Repository Version
20450 \end_layout
20451
20452 \begin_layout Standard
20453 This will discard all changes made to the document since the last check
20454  in.
20455  You get a warning before changes are discarded.
20456  Firstly the file is deleted, secondly CVS update command is run.
20457 \end_layout
20458
20459 \begin_layout Standard
20460 CVS command: 
20461 \family typewriter
20462 cvs -q update "<file-name>"
20463 \end_layout
20464
20465 \begin_layout Standard
20466 If a reserved checkout is detected and the working copy has no changes only
20467  the reservation is undone.
20468 \end_layout
20469
20470 \begin_layout Standard
20471 CVS command: 
20472 \family typewriter
20473 cvs -q unedit "<file-name>"
20474 \end_layout
20475
20476 \begin_layout Subsubsection
20477
20478 \family sans
20479 Copy
20480 \end_layout
20481
20482 \begin_layout Standard
20483 This will create a copy of the current document.
20484  Since CVS does not support copy operations natively, the version history
20485  is not preserved, and the copy is added as a new file.
20486  It requires a clean document without any changes since the last checkin.
20487  You are asked for a file name and a description of the copy operation.
20488  After that the copy is created, both locally and in the repository.
20489  If the parent directories of the copied and original document differ, all
20490  relative paths of included files of the copy are adjusted (like in 
20491 \family sans
20492 File\SpecialChar menuseparator
20493 Save As
20494 \family default
20495 \SpecialChar ldots
20496 ).
20497  Finally, the copy is loaded instead of the original document.
20498 \end_layout
20499
20500 \begin_layout Labeling
20501 \labelwidthstring 00.00.0000
20502 CVS
20503 \begin_inset space ~
20504 \end_inset
20505
20506 commands: 
20507 \begin_inset space ~
20508 \end_inset
20509
20510
20511 \begin_inset Newline newline
20512 \end_inset
20513
20514 Copy 
20515 \begin_inset Flex Code
20516 status collapsed
20517
20518 \begin_layout Plain Layout
20519
20520 \family typewriter
20521 \begin_inset Quotes eld
20522 \end_inset
20523
20524 <file-name>
20525 \begin_inset Quotes erd
20526 \end_inset
20527
20528
20529 \end_layout
20530
20531 \end_inset
20532
20533  to 
20534 \begin_inset Flex Code
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538
20539 \family typewriter
20540 \begin_inset Quotes eld
20541 \end_inset
20542
20543 <new-file-name>
20544 \begin_inset Quotes erd
20545 \end_inset
20546
20547
20548 \end_layout
20549
20550 \end_inset
20551
20552
20553 \begin_inset Newline newline
20554 \end_inset
20555
20556
20557 \begin_inset Flex Code
20558 status collapsed
20559
20560 \begin_layout Plain Layout
20561 cvs -q add 
20562 \family typewriter
20563
20564 \begin_inset Quotes eld
20565 \end_inset
20566
20567 <new-file-name>
20568 \begin_inset Quotes erd
20569 \end_inset
20570
20571
20572 \end_layout
20573
20574 \end_inset
20575
20576
20577 \end_layout
20578
20579 \begin_layout Subsubsection
20580
20581 \family sans
20582 Rename
20583 \end_layout
20584
20585 \begin_layout Standard
20586 This will rename the current document.
20587  Since CVS does not support rename operations natively, the version history
20588  is not preserved, the renamed document is added as a new file, and the
20589  original document is deleted.
20590  It requires a clean document without any changes since the last checkin.
20591  You are asked for a file name and a description of the rename operation.
20592  After that the document is renamed, both locally and in the repository.
20593  If the parent directories of the new and old file names differ, all relative
20594  paths of included files are adjusted (like in 
20595 \family sans
20596 File\SpecialChar menuseparator
20597 Save As
20598 \family default
20599 \SpecialChar ldots
20600 ).
20601  Finally, the document is reloaded using the new name.
20602 \end_layout
20603
20604 \begin_layout Labeling
20605 \labelwidthstring 00.00.0000
20606 CVS
20607 \begin_inset space ~
20608 \end_inset
20609
20610 commands: 
20611 \begin_inset space ~
20612 \end_inset
20613
20614
20615 \begin_inset Newline newline
20616 \end_inset
20617
20618 Rename 
20619 \begin_inset Flex Code
20620 status collapsed
20621
20622 \begin_layout Plain Layout
20623
20624 \family typewriter
20625 \begin_inset Quotes eld
20626 \end_inset
20627
20628 <file-name>
20629 \begin_inset Quotes erd
20630 \end_inset
20631
20632
20633 \end_layout
20634
20635 \end_inset
20636
20637  to 
20638 \begin_inset Flex Code
20639 status collapsed
20640
20641 \begin_layout Plain Layout
20642
20643 \family typewriter
20644 \begin_inset Quotes eld
20645 \end_inset
20646
20647 <new-file-name>
20648 \begin_inset Quotes erd
20649 \end_inset
20650
20651
20652 \end_layout
20653
20654 \end_inset
20655
20656
20657 \begin_inset Newline newline
20658 \end_inset
20659
20660
20661 \begin_inset Flex Code
20662 status collapsed
20663
20664 \begin_layout Plain Layout
20665 cvs -q add 
20666 \family typewriter
20667
20668 \begin_inset Quotes eld
20669 \end_inset
20670
20671 <new-file-name>
20672 \begin_inset Quotes erd
20673 \end_inset
20674
20675
20676 \end_layout
20677
20678 \end_inset
20679
20680
20681 \begin_inset Newline newline
20682 \end_inset
20683
20684
20685 \begin_inset Flex Code
20686 status collapsed
20687
20688 \begin_layout Plain Layout
20689 cvs -q remove 
20690 \family typewriter
20691
20692 \begin_inset Quotes eld
20693 \end_inset
20694
20695 <file-name>
20696 \begin_inset Quotes erd
20697 \end_inset
20698
20699
20700 \end_layout
20701
20702 \end_inset
20703
20704
20705 \end_layout
20706
20707 \begin_layout Subsubsection
20708 Update of the local directory checkout from repository
20709 \end_layout
20710
20711 \begin_layout Standard
20712 Once your documents gets more complex, containing sub-documents and pictures,
20713  including external 
20714 \begin_inset Flex Code
20715 status collapsed
20716
20717 \begin_layout Plain Layout
20718 .tex
20719 \end_layout
20720
20721 \end_inset
20722
20723  files and so on using version control becomes more complicated.
20724  \SpecialChar LyX
20725  supports updating the whole tree in which resides the document.
20726  This become especially useful once you cooperate with people which neither
20727  have detailed knowledge about CVS usage nor they have ambition to commit
20728  additional material to the repository.
20729  You have to organize the files structure so that all external files are
20730  in the same directory or subdirectories of the document.
20731  It's good practice anyway to store multipart documents in an extra directory.
20732 \end_layout
20733
20734 \begin_layout Standard
20735 The 
20736 \begin_inset Flex Code
20737 status collapsed
20738
20739 \begin_layout Plain Layout
20740 Update local directory from repository
20741 \end_layout
20742
20743 \end_inset
20744
20745  command updates the whole directory.
20746  If local changes are detected user is warned before update starts.
20747  In case of merge conflicts both versions of the conflicting document parts
20748  are placed in the final document.
20749  You have to review and correct the result of the merge.
20750  You'll find the conflicts enclosed in pairs of 
20751 \begin_inset Flex Code
20752 status collapsed
20753
20754 \begin_layout Plain Layout
20755 <<<<<<<
20756 \end_layout
20757
20758 \end_inset
20759
20760  and 
20761 \begin_inset Flex Code
20762 status collapsed
20763
20764 \begin_layout Plain Layout
20765 >>>>>>>
20766 \end_layout
20767
20768 \end_inset
20769
20770  separated by 
20771 \begin_inset Flex Code
20772 status collapsed
20773
20774 \begin_layout Plain Layout
20775 =======
20776 \end_layout
20777
20778 \end_inset
20779
20780 .
20781  The first part is your version as before the update operation with the
20782  document name prepended.
20783  The second one is the repository version with the version number after
20784  the sequence of 
20785 \begin_inset Flex Code
20786 status collapsed
20787
20788 \begin_layout Plain Layout
20789 >
20790 \end_layout
20791
20792 \end_inset
20793
20794  signs.
20795 \end_layout
20796
20797 \begin_layout Labeling
20798 \labelwidthstring 00.00.0000
20799 CVS
20800 \begin_inset space ~
20801 \end_inset
20802
20803 commands: 
20804 \begin_inset space ~
20805 \end_inset
20806
20807
20808 \begin_inset Newline newline
20809 \end_inset
20810
20811
20812 \begin_inset Flex Code
20813 status collapsed
20814
20815 \begin_layout Plain Layout
20816 cd $path; cvs diff 
20817 \family typewriter
20818 "."
20819 \end_layout
20820
20821 \end_inset
20822
20823  (Ask if changes are detected.)
20824 \begin_inset Newline newline
20825 \end_inset
20826
20827
20828 \begin_inset Flex Code
20829 status collapsed
20830
20831 \begin_layout Plain Layout
20832 cd $path; cvs -q update 
20833 \family typewriter
20834 "."
20835 \end_layout
20836
20837 \end_inset
20838
20839
20840 \end_layout
20841
20842 \begin_layout Standard
20843 where 
20844 \begin_inset Flex Code
20845 status collapsed
20846
20847 \begin_layout Plain Layout
20848 $path
20849 \end_layout
20850
20851 \end_inset
20852
20853  stands for the path to the document.
20854 \end_layout
20855
20856 \begin_layout Subsubsection
20857
20858 \family sans
20859 Show History
20860 \end_layout
20861
20862 \begin_layout Standard
20863 This shows the complete history of the CVS document.
20864  The output of 
20865 \family typewriter
20866 cvs log "<file-name>"
20867 \family default
20868  is shown in a browser.
20869 \end_layout
20870
20871 \begin_layout Subsubsection
20872 Revision info
20873 \end_layout
20874
20875 \begin_layout Standard
20876 \SpecialChar LyX
20877  supports CVS version number, author name, date and time of last commit.
20878  All those are extracted from 
20879 \family typewriter
20880 cvs log -r <file-name>
20881 \family default
20882 .
20883  See 
20884 \begin_inset CommandInset ref
20885 LatexCommand ref
20886 reference "subsec:VCS-Revision-Information"
20887
20888 \end_inset
20889
20890  for details.
20891 \end_layout
20892
20893 \begin_layout Subsection
20894 SVN commands in \SpecialChar LyX
20895
20896 \end_layout
20897
20898 \begin_layout Standard
20899 SVN is now partially supported by \SpecialChar LyX
20900 .
20901  You can find the commands in the 
20902 \family sans
20903 File\SpecialChar menuseparator
20904 Version
20905 \begin_inset space ~
20906 \end_inset
20907
20908 Control
20909 \family default
20910  submenu.
20911  Please note that if you use password protected access to repository via
20912  ssh, you will be asked in terminal window.
20913  \SpecialChar LyX
20914  was tested against SVN 1.5, 1.6, 1.7 and 1.8
20915 \begin_inset Foot
20916 status open
20917
20918 \begin_layout Plain Layout
20919 Most of the commands will work with 1.4 too, see 
20920 \begin_inset CommandInset ref
20921 LatexCommand ref
20922 reference "subsec:SVN-Repo-Update"
20923
20924 \end_inset
20925
20926 .
20927  There seems to be currently unresolved permissions problem under SVN 1.8
20928  with reverting changes when file is locked.
20929 \end_layout
20930
20931 \end_inset
20932
20933
20934 \end_layout
20935
20936 \begin_layout Subsubsection
20937
20938 \family sans
20939 Register
20940 \end_layout
20941
20942 \begin_layout Standard
20943 If your document is not under revision control, this is the only item shown
20944  in the menu.
20945  And if it is under revision control, the 
20946 \family sans
20947 \bar under
20948 R
20949 \bar default
20950 egister
20951 \family default
20952  item is not visible.
20953 \end_layout
20954
20955 \begin_layout Standard
20956 This command registers in SVN your document ONLY in case you have already
20957  the documents directory under SVN control (in particular 
20958 \family typewriter
20959 .svn/entries
20960 \family default
20961  file exists).
20962  This means you have to checkout the archive by yourself.
20963 \end_layout
20964
20965 \begin_layout Standard
20966 Then you are asked interactively to supply an initial description of the
20967  document.
20968  Don't forget that registered file is not yet commited.
20969 \end_layout
20970
20971 \begin_layout Standard
20972 SVN command that is run: 
20973 \family typewriter
20974 svn add -q 
20975 \begin_inset Quotes eld
20976 \end_inset
20977
20978 <file-name>
20979 \begin_inset Quotes erd
20980 \end_inset
20981
20982
20983 \end_layout
20984
20985 \begin_layout Standard
20986 Read 
20987 \family typewriter
20988 man svn
20989 \family default
20990  to understand the switches.
20991 \end_layout
20992
20993 \begin_layout Subsubsection
20994
20995 \family sans
20996 Check In Changes
20997 \end_layout
20998
20999 \begin_layout Standard
21000 When you are finished editing a file, you commit your changes.
21001  When you do this, you are asked for a description of the changes.
21002  After that changes are commited.
21003 \end_layout
21004
21005 \begin_layout Standard
21006 SVN command:
21007 \begin_inset Foot
21008 status collapsed
21009
21010 \begin_layout Plain Layout
21011 In case locking is not enabled.
21012  See Section 
21013 \begin_inset CommandInset ref
21014 LatexCommand ref
21015 reference "subsec:SVN-File-Locking"
21016
21017 \end_inset
21018
21019 .
21020 \end_layout
21021
21022 \end_inset
21023
21024  
21025 \family typewriter
21026 svn commit -q -m"<description>" <file-name>
21027 \end_layout
21028
21029 \begin_layout Subsubsection
21030
21031 \family sans
21032 Check Out For Edit
21033 \end_layout
21034
21035 \begin_layout Standard
21036 Updates the changes of this file from the repository.
21037  Be sure you understand SVN merging and conflicts resolving before using
21038  this function, because all conflicts has to be resolved manually by you!
21039 \end_layout
21040
21041 \begin_layout Standard
21042 SVN command:
21043 \begin_inset Foot
21044 status collapsed
21045
21046 \begin_layout Plain Layout
21047 Ditto.
21048 \end_layout
21049
21050 \end_inset
21051
21052  
21053 \family typewriter
21054 svn update --non-interactive 
21055 \begin_inset Quotes eld
21056 \end_inset
21057
21058 <file-name>
21059 \begin_inset Quotes erd
21060 \end_inset
21061
21062
21063 \end_layout
21064
21065 \begin_layout Subsubsection
21066
21067 \family sans
21068 Revert To Repository Version
21069 \end_layout
21070
21071 \begin_layout Standard
21072 This will discard all changes made to the document since the last check
21073  in.
21074  You get a warning before changes are discarded.
21075 \end_layout
21076
21077 \begin_layout Standard
21078 SVN command: 
21079 \family typewriter
21080 svn revert -q 
21081 \begin_inset Quotes eld
21082 \end_inset
21083
21084 <file-name>
21085 \begin_inset Quotes erd
21086 \end_inset
21087
21088
21089 \end_layout
21090
21091 \begin_layout Subsubsection
21092
21093 \family sans
21094 Copy
21095 \end_layout
21096
21097 \begin_layout Standard
21098 This will create a copy of the current document including the version history.
21099  It requires a clean document without any changes since the last checkin.
21100  You are asked for a file name and a description of the copy operation.
21101  After that the copy is created, both locally and in the repository.
21102  If the parent directories of the copied and original document differ, all
21103  relative paths of included files of the copy are adjusted (like in 
21104 \family sans
21105 File\SpecialChar menuseparator
21106 Save As
21107 \family default
21108 \SpecialChar ldots
21109 ).
21110  Finally, the copy is loaded instead of the original document.
21111 \end_layout
21112
21113 \begin_layout Labeling
21114 \labelwidthstring 00.00.0000
21115 SVN
21116 \begin_inset space ~
21117 \end_inset
21118
21119 commands: 
21120 \begin_inset space ~
21121 \end_inset
21122
21123
21124 \begin_inset Newline newline
21125 \end_inset
21126
21127
21128 \begin_inset Flex Code
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132 svn copy -q 
21133 \family typewriter
21134
21135 \begin_inset Quotes eld
21136 \end_inset
21137
21138 <file-name>
21139 \begin_inset Quotes erd
21140 \end_inset
21141
21142  
21143 \begin_inset Quotes eld
21144 \end_inset
21145
21146 <new-file-name>
21147 \begin_inset Quotes erd
21148 \end_inset
21149
21150
21151 \end_layout
21152
21153 \end_inset
21154
21155
21156 \begin_inset Newline newline
21157 \end_inset
21158
21159
21160 \begin_inset Flex Code
21161 status collapsed
21162
21163 \begin_layout Plain Layout
21164 svn commit
21165 \end_layout
21166
21167 \end_inset
21168
21169
21170 \end_layout
21171
21172 \begin_layout Subsubsection
21173
21174 \family sans
21175 Rename
21176 \end_layout
21177
21178 \begin_layout Standard
21179 This will rename the current document including the version history.
21180  It requires a clean document without any changes since the last checkin.
21181  You are asked for a file name and a description of the rename operation.
21182  After that the document is renamed, both locally and in the repository.
21183  If the parent directories of the new and old file names differ, all relative
21184  paths of included files are adjusted (like in 
21185 \family sans
21186 File\SpecialChar menuseparator
21187 Save As
21188 \family default
21189 \SpecialChar ldots
21190 ).
21191  Finally, the document is reloaded using the new name.
21192 \end_layout
21193
21194 \begin_layout Labeling
21195 \labelwidthstring 00.00.0000
21196 SVN
21197 \begin_inset space ~
21198 \end_inset
21199
21200 commands: 
21201 \begin_inset space ~
21202 \end_inset
21203
21204
21205 \begin_inset Newline newline
21206 \end_inset
21207
21208
21209 \begin_inset Flex Code
21210 status collapsed
21211
21212 \begin_layout Plain Layout
21213 svn move -q 
21214 \family typewriter
21215
21216 \begin_inset Quotes eld
21217 \end_inset
21218
21219 <file-name>
21220 \begin_inset Quotes erd
21221 \end_inset
21222
21223  
21224 \begin_inset Quotes eld
21225 \end_inset
21226
21227 <new-file-name>
21228 \begin_inset Quotes erd
21229 \end_inset
21230
21231
21232 \end_layout
21233
21234 \end_inset
21235
21236
21237 \begin_inset Newline newline
21238 \end_inset
21239
21240
21241 \begin_inset Flex Code
21242 status collapsed
21243
21244 \begin_layout Plain Layout
21245 svn commit
21246 \end_layout
21247
21248 \end_inset
21249
21250
21251 \end_layout
21252
21253 \begin_layout Subsubsection
21254 \begin_inset CommandInset label
21255 LatexCommand label
21256 name "subsec:SVN-Repo-Update"
21257
21258 \end_inset
21259
21260 Update of the local directory checkout from repository
21261 \begin_inset Foot
21262 status collapsed
21263
21264 \begin_layout Plain Layout
21265 Note that this command will work only with subversion 
21266 \begin_inset Formula $\geqq1.5$
21267 \end_inset
21268
21269
21270 \end_layout
21271
21272 \end_inset
21273
21274
21275 \end_layout
21276
21277 \begin_layout Standard
21278 All the commands above have one shortcomming - they deal with the current
21279  document only.
21280  Once your document contains pictures, includes external 
21281 \begin_inset Flex Code
21282 status collapsed
21283
21284 \begin_layout Plain Layout
21285 .tex
21286 \end_layout
21287
21288 \end_inset
21289
21290  files and so on administration becomes more complicated.
21291  \SpecialChar LyX
21292  now supports updating the whole tree in which resides the document
21293 \begin_inset Foot
21294 status collapsed
21295
21296 \begin_layout Plain Layout
21297 One need to organize the files structure so that all external files are
21298  in the same directory or subdirectories of the document.
21299  
21300 \end_layout
21301
21302 \end_inset
21303
21304 .
21305  This become especially useful once you cooperate with people which neither
21306  know about subversion management nor they have ambition to commit additional
21307  material to the repository.
21308  
21309 \end_layout
21310
21311 \begin_layout Standard
21312 \begin_inset Flex Code
21313 status collapsed
21314
21315 \begin_layout Plain Layout
21316 Update local directory from repository
21317 \end_layout
21318
21319 \end_inset
21320
21321  command updates the whole directory and in case of merge conflicts local
21322  version of the files are left, so no unintended data loss occurs.
21323  If local changes are detected user is warned before update starts.
21324 \end_layout
21325
21326 \begin_layout Labeling
21327 \labelwidthstring 00.00.0000
21328 SVN
21329 \begin_inset space ~
21330 \end_inset
21331
21332 commands: 
21333 \begin_inset space ~
21334 \end_inset
21335
21336
21337 \begin_inset Newline newline
21338 \end_inset
21339
21340
21341 \begin_inset Flex Code
21342 status collapsed
21343
21344 \begin_layout Plain Layout
21345 svn diff $path
21346 \end_layout
21347
21348 \end_inset
21349
21350  (Ask if changes are detected.)
21351 \begin_inset Newline newline
21352 \end_inset
21353
21354
21355 \begin_inset Flex Code
21356 status collapsed
21357
21358 \begin_layout Plain Layout
21359 svn update –accept mine-full $path
21360 \end_layout
21361
21362 \end_inset
21363
21364
21365 \end_layout
21366
21367 \begin_layout Standard
21368 where 
21369 \begin_inset Flex Code
21370 status collapsed
21371
21372 \begin_layout Plain Layout
21373 $path
21374 \end_layout
21375
21376 \end_inset
21377
21378  stands for the path to the document.
21379 \end_layout
21380
21381 \begin_layout Subsubsection
21382
21383 \family sans
21384 Show History
21385 \end_layout
21386
21387 \begin_layout Standard
21388 This shows the complete history of the SVN document.
21389  The output of 
21390 \family typewriter
21391 svn log 
21392 \begin_inset Quotes eld
21393 \end_inset
21394
21395 <file-name>
21396 \begin_inset Quotes erd
21397 \end_inset
21398
21399
21400 \family default
21401  is shown in a browser.
21402 \end_layout
21403
21404 \begin_layout Subsubsection
21405 File Locking
21406 \begin_inset CommandInset label
21407 LatexCommand label
21408 name "subsec:SVN-File-Locking"
21409
21410 \end_inset
21411
21412
21413 \end_layout
21414
21415 \begin_layout Standard
21416 The file exchange through various revision control systems brings the problem
21417  of merge conflicts in case two different users try to edit the same (parts
21418  of) document.
21419  When such a conflict happens it needs manual resolving and one reasonable
21420  alternative is to provide some kind of locking mechanism, which guarantees
21421  that only one user is allowed to edit file at the given time.
21422 \end_layout
21423
21424 \begin_layout Standard
21425 SVN has two such mechanisms to provide mutual exclusivity for file access
21426  - locks and automatic setting of write permissions (see sec.
21427  
21428 \begin_inset CommandInset ref
21429 LatexCommand ref
21430 reference "subsec:Automatical-Locking-Property"
21431
21432 \end_inset
21433
21434 ) based on 
21435 \begin_inset Flex Code
21436 status collapsed
21437
21438 \begin_layout Plain Layout
21439 svn:needs-lock
21440 \end_layout
21441
21442 \end_inset
21443
21444  file svn property
21445 \begin_inset Foot
21446 status open
21447
21448 \begin_layout Plain Layout
21449 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21450 \end_layout
21451
21452 \end_inset
21453
21454 .
21455  If this property is detected for a given document \SpecialChar LyX
21456  starts to use SVN locks
21457  for document editing automatically and the whole check-in/out mechanism
21458  switches to the same regimen as for RCS.
21459  This in particular means there are two different modes of file use in \SpecialChar LyX
21460 :
21461 \end_layout
21462
21463 \begin_layout Itemize
21464 Unlocked state.
21465  The loaded file is in the read-only mode.
21466  For editing on needs to check-out.
21467  
21468 \emph on
21469 Check-out
21470 \emph default
21471  consists of updating from the repository and gaining write lock.
21472  If the lock is not possible to obtain, we remain in unlocked state.
21473 \end_layout
21474
21475 \begin_layout Itemize
21476 Locked state.
21477  The loaded file is in the 'normal' edit mode.
21478  No other user is allowed to edit the file.
21479  
21480 \emph on
21481 Check-in
21482 \emph default
21483  consists of commiting changes and releasing write-lock.
21484  If no changes have been made to the document, no commit will be produced
21485 \begin_inset Foot
21486 status collapsed
21487
21488 \begin_layout Plain Layout
21489 Don't be puzzled by the fact that you will be asked for commit message anyway.
21490 \end_layout
21491
21492 \end_inset
21493
21494  and only the write-lock will be released.
21495 \end_layout
21496
21497 \begin_layout Standard
21498 SVN commands:
21499 \end_layout
21500
21501 \begin_layout Labeling
21502 \labelwidthstring 00.00.0000
21503 Check-in:
21504 \family typewriter
21505  svn commit -q -m"<description>" "<file-name>"
21506 \begin_inset Newline newline
21507 \end_inset
21508
21509 svn unlock "<file-name>"
21510 \end_layout
21511
21512 \begin_layout Labeling
21513 \labelwidthstring 00.00.0000
21514 Check-out: 
21515 \family typewriter
21516 svn update "<file-name>"
21517 \begin_inset Newline newline
21518 \end_inset
21519
21520 svn lock "<file-name>"
21521 \end_layout
21522
21523 \begin_layout Subsubsection
21524
21525 \family typewriter
21526 \begin_inset CommandInset label
21527 LatexCommand label
21528 name "subsec:Automatical-Locking-Property"
21529
21530 \end_inset
21531
21532
21533 \family default
21534 Automatic Locking Property
21535 \end_layout
21536
21537 \begin_layout Standard
21538 The above mentioned automatic setting of write permissions of the .lyx file
21539  can be set through
21540 \family sans
21541 \bar under
21542  F
21543 \bar default
21544 ile\SpecialChar menuseparator
21545
21546 \bar under
21547 V
21548 \bar default
21549 ersion
21550 \begin_inset space ~
21551 \end_inset
21552
21553 Control\SpecialChar menuseparator
21554
21555 \bar under
21556 T
21557 \bar default
21558 oggle locking property
21559 \family default
21560 .
21561  This command is active only when the file is not locked on the svn server
21562  (i.e.
21563  you need to check-out before proceeding).
21564 \end_layout
21565
21566 \begin_layout Labeling
21567 \labelwidthstring 00.00.0000
21568 SVN
21569 \begin_inset space ~
21570 \end_inset
21571
21572 commands:
21573 \end_layout
21574
21575 \begin_layout Labeling
21576 \labelwidthstring 00.00.0000
21577 Set:
21578 \family typewriter
21579  svn propset svn:needs-lock ON "<file-name>"
21580 \end_layout
21581
21582 \begin_layout Labeling
21583 \labelwidthstring 00.00.0000
21584 Unset: 
21585 \family typewriter
21586 svn propdel svn:needs-lock "<file-name>"
21587 \end_layout
21588
21589 \begin_layout Subsubsection
21590 \begin_inset CommandInset label
21591 LatexCommand label
21592 name "subsec:VCS-Revision-Information"
21593
21594 \end_inset
21595
21596 Revision Information in Documents
21597 \end_layout
21598
21599 \begin_layout Standard
21600 There are more possibilities how to activate revision information in our
21601  document.
21602 \end_layout
21603
21604 \begin_layout Itemize
21605 \SpecialChar LyX
21606  supports directly:
21607 \begin_inset Separator parbreak
21608 \end_inset
21609
21610
21611 \end_layout
21612
21613 \begin_deeper
21614 \begin_layout Itemize
21615 tree revision information (
21616 \begin_inset Flex Code
21617 status collapsed
21618
21619 \begin_layout Plain Layout
21620 vcs-tree-revision
21621 \end_layout
21622
21623 \end_inset
21624
21625 ).
21626  The result is the output of the 
21627 \begin_inset Flex Code
21628 status collapsed
21629
21630 \begin_layout Plain Layout
21631 svnversion
21632 \end_layout
21633
21634 \end_inset
21635
21636  command, the following table gives you an idea, how to read the results.
21637 \end_layout
21638
21639 \begin_layout Standard
21640 \align center
21641 \begin_inset Tabular
21642 <lyxtabular version="3" rows="6" columns="2">
21643 <features tabularvalignment="middle">
21644 <column alignment="center" valignment="top">
21645 <column alignment="center" valignment="top">
21646 <row>
21647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21648 \begin_inset Text
21649
21650 \begin_layout Plain Layout
21651 Output
21652 \end_layout
21653
21654 \end_inset
21655 </cell>
21656 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21657 \begin_inset Text
21658
21659 \begin_layout Plain Layout
21660 Meaning
21661 \end_layout
21662
21663 \end_inset
21664 </cell>
21665 </row>
21666 <row>
21667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21668 \begin_inset Text
21669
21670 \begin_layout Plain Layout
21671 4123:4168
21672 \end_layout
21673
21674 \end_inset
21675 </cell>
21676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21677 \begin_inset Text
21678
21679 \begin_layout Plain Layout
21680 mixed revision working copy
21681 \end_layout
21682
21683 \end_inset
21684 </cell>
21685 </row>
21686 <row>
21687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21688 \begin_inset Text
21689
21690 \begin_layout Plain Layout
21691 4168M
21692 \end_layout
21693
21694 \end_inset
21695 </cell>
21696 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21697 \begin_inset Text
21698
21699 \begin_layout Plain Layout
21700 modified working copy
21701 \end_layout
21702
21703 \end_inset
21704 </cell>
21705 </row>
21706 <row>
21707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21708 \begin_inset Text
21709
21710 \begin_layout Plain Layout
21711 4123S
21712 \end_layout
21713
21714 \end_inset
21715 </cell>
21716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21717 \begin_inset Text
21718
21719 \begin_layout Plain Layout
21720 switched working copy
21721 \end_layout
21722
21723 \end_inset
21724 </cell>
21725 </row>
21726 <row>
21727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21728 \begin_inset Text
21729
21730 \begin_layout Plain Layout
21731 4123P
21732 \end_layout
21733
21734 \end_inset
21735 </cell>
21736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21737 \begin_inset Text
21738
21739 \begin_layout Plain Layout
21740 partial working copy, from a sparse checkout
21741 \end_layout
21742
21743 \end_inset
21744 </cell>
21745 </row>
21746 <row>
21747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21748 \begin_inset Text
21749
21750 \begin_layout Plain Layout
21751 4123:4168MS
21752 \end_layout
21753
21754 \end_inset
21755 </cell>
21756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21757 \begin_inset Text
21758
21759 \begin_layout Plain Layout
21760 mixed revision, modified, switched working copy
21761 \end_layout
21762
21763 \end_inset
21764 </cell>
21765 </row>
21766 </lyxtabular>
21767
21768 \end_inset
21769
21770
21771 \end_layout
21772
21773 \begin_layout Itemize
21774 file revision information.
21775  The result comes from parsing the output of 
21776 \begin_inset Flex Code
21777 status collapsed
21778
21779 \begin_layout Plain Layout
21780 svn
21781 \begin_inset space ~
21782 \end_inset
21783
21784 info
21785 \begin_inset space ~
21786 \end_inset
21787
21788 –xml
21789 \begin_inset space ~
21790 \end_inset
21791
21792 file.lyx
21793 \end_layout
21794
21795 \end_inset
21796
21797 .
21798  Supported flags are:
21799 \begin_inset Separator parbreak
21800 \end_inset
21801
21802
21803 \end_layout
21804
21805 \begin_deeper
21806 \begin_layout Itemize
21807 version number of the last commit (
21808 \begin_inset Flex Code
21809 status collapsed
21810
21811 \begin_layout Plain Layout
21812 vcs-revision
21813 \end_layout
21814
21815 \end_inset
21816
21817 )
21818 \end_layout
21819
21820 \begin_layout Itemize
21821 author of the last commit (
21822 \begin_inset Flex Code
21823 status collapsed
21824
21825 \begin_layout Plain Layout
21826 vcs-author
21827 \end_layout
21828
21829 \end_inset
21830
21831 )
21832 \end_layout
21833
21834 \begin_layout Itemize
21835 date of the last commit (
21836 \begin_inset Flex Code
21837 status collapsed
21838
21839 \begin_layout Plain Layout
21840 vcs-date
21841 \end_layout
21842
21843 \end_inset
21844
21845 )
21846 \end_layout
21847
21848 \begin_layout Itemize
21849 time of the last commit (
21850 \begin_inset Flex Code
21851 status collapsed
21852
21853 \begin_layout Plain Layout
21854 vcs-time
21855 \end_layout
21856
21857 \end_inset
21858
21859 )
21860 \end_layout
21861
21862 \end_deeper
21863 \begin_layout Standard
21864 You can obtain this info via InsetInfo (e.g.
21865  
21866 \begin_inset Flex Code
21867 status collapsed
21868
21869 \begin_layout Plain Layout
21870 info-insert buffer vcs-date
21871 \end_layout
21872
21873 \end_inset
21874
21875 ).
21876  The information will be available only when you have the file stored under
21877  svn managment (i.e.
21878  the 
21879 \begin_inset Flex Code
21880 status collapsed
21881
21882 \begin_layout Plain Layout
21883 .svn
21884 \end_layout
21885
21886 \end_inset
21887
21888  directory is available with your document).
21889 \end_layout
21890
21891 \end_deeper
21892 \begin_layout Itemize
21893 Another—a hacking one—possibility is to use svn keywords
21894 \begin_inset Foot
21895 status collapsed
21896
21897 \begin_layout Plain Layout
21898 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21899 \end_layout
21900
21901 \end_inset
21902
21903 .
21904  In short – you set file keywords property (e.g.
21905  
21906 \family sans
21907 svn propset svn:keywords 'Rev' file.lyx
21908 \family default
21909 ) and then paste keyword \SpecialChar TeX
21910  code
21911 \begin_inset Foot
21912 status collapsed
21913
21914 \begin_layout Plain Layout
21915 This is an easy way how to ensure that \SpecialChar LyX
21916  won't break the line in the middle
21917  of keyword tag.
21918 \end_layout
21919
21920 \end_inset
21921
21922  tag in your document (e.g.
21923  
21924 \begin_inset ERT
21925 status open
21926
21927 \begin_layout Plain Layout
21928
21929 $Rev$
21930 \end_layout
21931
21932 \end_inset
21933
21934 ).
21935  This way svn client will automatically substitute revision number (e.g.
21936  
21937 \begin_inset ERT
21938 status open
21939
21940 \begin_layout Plain Layout
21941
21942 $Rev: 59 $
21943 \end_layout
21944
21945 \end_inset
21946
21947 ) after each update and commit.
21948  There are more problems with this approach.
21949  Firstly, the '$' character is used in \SpecialChar TeX
21950  world for math equations, so any
21951  occurence of math formula 
21952 \begin_inset Formula $Rev$
21953 \end_inset
21954
21955  become 
21956 \begin_inset Formula $Rev:59$
21957 \end_inset
21958
21959  in your \SpecialChar LyX
21960  document.
21961  Similarly for other keywords like Id, Date, Author, etc.
21962  Secondly svn output is dependent on your locales, so its very easy that
21963  svn would produce some problematic strings once Date is used.
21964  Thirdly you get the whole 'Rev: 59' string in your document instead of
21965  the plain number.
21966  Until subversion implements user's custom keywords it will be hard to use
21967  this approach reliably or let \SpecialChar LyX
21968  to support it directly.
21969 \end_layout
21970
21971 \begin_layout Subsection
21972 SVN and Windows Environment
21973 \end_layout
21974
21975 \begin_layout Quote
21976 My inclination is to say that if the user cannot figure out the command
21977  line operations on their own fairly quickly, they would be well advised
21978  to use TortoiseSVN.
21979  —P.
21980  A.
21981  Rubin
21982 \end_layout
21983
21984 \begin_layout Subsubsection
21985 Preparation
21986 \end_layout
21987
21988 \begin_layout Standard
21989 In addition to installing \SpecialChar LyX
21990 , and having access to a Subversion repository,
21991  the user will need to install the Subversion client program.
21992  A Windows installer for the client program is available from 
21993 \begin_inset CommandInset href
21994 LatexCommand href
21995 name "CollabNet"
21996 target "http://www.collab.net/nonav/downloads/subversion/"
21997
21998 \end_inset
21999
22000 .
22001  The user may also want to install 
22002 \begin_inset CommandInset href
22003 LatexCommand href
22004 name "TortoiseSVN"
22005 target "http://tortoisesvn.tigris.org/"
22006
22007 \end_inset
22008
22009 , which integrates Subversion operations into the context (rightclick) menu
22010  of Windows Explorer.
22011  Operations done outside \SpecialChar LyX
22012  will typically be more convenient using the Explorer
22013  context menu.
22014  Note that TortoiseSVN is not a replacement for the client program, which
22015  is what \SpecialChar LyX
22016  itself will use.
22017 \end_layout
22018
22019 \begin_layout Subsubsection
22020 Bringing a document under Subversion control
22021 \end_layout
22022
22023 \begin_layout Standard
22024 Before a \SpecialChar LyX
22025  document can be brought under version control in Subversion, its
22026  parent directory needs to be under version control.
22027  If the document is being added to a project already in the repository,
22028  this is accomplished by checking the project out to the directory where
22029  the new document will be placed.
22030  If the project itself is not yet under version control (for instance, if
22031  this document starts a new project), the directory must be imported into
22032  the repository.
22033  This is done outside \SpecialChar LyX
22034 .
22035  Both import and checkout are easily accomplished from the Explorer context
22036  menu using TortoiseSVN, or alternatively can be done using the command
22037  line client at a DOS prompt.
22038  The procedure for importing the project using TortoiseSVN is described
22039  below, assuming an existing repository and a new project being started
22040  in 
22041 \family typewriter
22042 C:
22043 \backslash
22044 new project
22045 \family default
22046 .
22047  For information on using the Subversion client program, run 
22048 \family typewriter
22049 svn --help 
22050 \family default
22051 in a DOS shell.
22052 \end_layout
22053
22054 \begin_layout Enumerate
22055 Locate 
22056 \family typewriter
22057 C:
22058 \backslash
22059 new project 
22060 \family default
22061 in Windows Explorer, right click it, and select 
22062 \family sans
22063 TortoiseSVN\SpecialChar menuseparator
22064 Repo-browser
22065 \family default
22066 .
22067  If necessary, adjust the URL for the repository, then click OK.
22068 \end_layout
22069
22070 \begin_layout Enumerate
22071 Right click the level of the repository under which you want to place the
22072  new project folder (typically the top level) and click 
22073 \family sans
22074 Create folder
22075 \family default
22076  Supply a name for the project folder and click OK.
22077  Add a message for the log file if desired, then click OK again.
22078  The new project folder should appear in the repository.
22079  Finally, click OK again to exit the repository browser.
22080 \end_layout
22081
22082 \begin_layout Enumerate
22083 Once again right click 
22084 \family typewriter
22085 C:
22086 \backslash
22087 new project
22088 \family default
22089 , this time selecting SVN Checkout\SpecialChar ldots
22090  Select the URL of the project folder
22091  you just created in the repository, and set the checkout directory to 
22092 \family typewriter
22093 C:
22094 \backslash
22095 new project.
22096
22097 \family default
22098  Click OK.
22099  You will be warned about a non-empty folder; click OK to proceed.
22100  You should now have a 
22101 \family typewriter
22102 .svn
22103 \family default
22104  directory under 
22105 \family typewriter
22106 C:
22107 \backslash
22108 new project.
22109 \end_layout
22110
22111 \begin_layout Enumerate
22112 Create or open your document in \SpecialChar LyX
22113  and click 
22114 \family sans
22115 File\SpecialChar menuseparator
22116 Version
22117 \begin_inset space ~
22118 \end_inset
22119
22120 Control\SpecialChar menuseparator
22121 Register.
22122  
22123 \family default
22124 Add a log message and click OK to commit the document to version control.
22125 \end_layout
22126
22127 \begin_layout Standard
22128 From this point onward, you should have full functionality in the 
22129 \family sans
22130 File\SpecialChar menuseparator
22131 Version
22132 \begin_inset space ~
22133 \end_inset
22134
22135 Control
22136 \family default
22137  menu.
22138  You also have the option of checking the document in and out, viewing its
22139  history, etc.
22140  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22141  client program from a command prompt.
22142 \end_layout
22143
22144 \begin_layout Subsubsection
22145 SSH tunnel used with SVN under Windows
22146 \end_layout
22147
22148 \begin_layout Standard
22149 Compared with Linux setting up an svn client to communicate over ssh under
22150  Windows is a rather troublesome task.
22151  We will at least offer some hints how to setup the client side but prior
22152  knowledge about ssh and the Windows command line is needed, also be prepared
22153  for a great deal of frustration\SpecialChar ldots
22154
22155 \end_layout
22156
22157 \begin_layout Enumerate
22158 Get an svn client for windows, as described in the previous sections.
22159  When it is a fresh install run some svn command (e.g.
22160  
22161 \begin_inset Flex Code
22162 status collapsed
22163
22164 \begin_layout Plain Layout
22165 svn –version
22166 \end_layout
22167
22168 \end_inset
22169
22170 ) to create config files, which you will need to change later on.
22171 \end_layout
22172
22173 \begin_layout Enumerate
22174 Choose an ssh client for Windows.
22175  There are several possibilities, we will use the one from Putty tools
22176 \begin_inset Foot
22177 status collapsed
22178
22179 \begin_layout Plain Layout
22180 \begin_inset Flex URL
22181 status collapsed
22182
22183 \begin_layout Plain Layout
22184
22185 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22186 \end_layout
22187
22188 \end_inset
22189
22190
22191 \end_layout
22192
22193 \end_inset
22194
22195 .
22196  You will need to set the connection up so that the client doesn't ask for
22197  any password from you.
22198  To keep things easy we will use only keys without any additional password
22199  protection etc.
22200 \begin_inset Separator parbreak
22201 \end_inset
22202
22203
22204 \end_layout
22205
22206 \begin_deeper
22207 \begin_layout Enumerate
22208 Generate keys by 
22209 \begin_inset Flex Code
22210 status collapsed
22211
22212 \begin_layout Plain Layout
22213 puttygen
22214 \end_layout
22215
22216 \end_inset
22217
22218 .
22219  Save your private .ppk key file and put the public one on the server side.
22220  If the SVN server runs on Linux, note that the format of the public key
22221  is not compatible with Linux openssh and you will need to direcly copy-paste
22222  the key from the “
22223 \emph on
22224 Public key for pasting into OpenSSH authorized_keys file
22225 \emph default
22226 :” edit field into the server's 
22227 \begin_inset Flex Code
22228 status collapsed
22229
22230 \begin_layout Plain Layout
22231 ~/.ssh/authorized_keys
22232 \end_layout
22233
22234 \end_inset
22235
22236  / 
22237 \begin_inset Flex Code
22238 status collapsed
22239
22240 \begin_layout Plain Layout
22241 authorized_keys2
22242 \end_layout
22243
22244 \end_inset
22245
22246  file.
22247 \end_layout
22248
22249 \begin_layout Enumerate
22250 Get the Putty's 
22251 \begin_inset Flex Code
22252 status collapsed
22253
22254 \begin_layout Plain Layout
22255 plink
22256 \end_layout
22257
22258 \end_inset
22259
22260 .
22261  In the SVN config file
22262 \begin_inset Foot
22263 status collapsed
22264
22265 \begin_layout Plain Layout
22266 Exact path depends on Windows version, usually somewhere around 
22267 \begin_inset Flex Code
22268 status collapsed
22269
22270 \begin_layout Plain Layout
22271 c:
22272 \backslash
22273 Documents and Settings
22274 \backslash
22275 user
22276 \backslash
22277 Application Data
22278 \backslash
22279 Subversion
22280 \backslash
22281 config
22282 \end_layout
22283
22284 \end_inset
22285
22286  / 
22287 \begin_inset Flex Code
22288 status collapsed
22289
22290 \begin_layout Plain Layout
22291 AppData
22292 \backslash
22293 Roaming
22294 \backslash
22295 Subversion
22296 \end_layout
22297
22298 \end_inset
22299
22300 .
22301 \end_layout
22302
22303 \end_inset
22304
22305 , section [tunnels], setup ssh command, e.g.
22306  
22307 \begin_inset Flex Code
22308 status collapsed
22309
22310 \begin_layout Plain Layout
22311 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22312 \end_layout
22313
22314 \end_inset
22315
22316 .
22317 \begin_inset Foot
22318 status collapsed
22319
22320 \begin_layout Plain Layout
22321 It will usually take a lot of time to get exact command right and it depends
22322  on many things.
22323  For example do not have some remote server saved as a default session in
22324  Putty etc.
22325  If things fail, try to connect via plink without SVN first.
22326 \end_layout
22327
22328 \end_inset
22329
22330
22331 \end_layout
22332
22333 \end_deeper
22334 \begin_layout Enumerate
22335 Checkout the SVN archive, e.
22336 \begin_inset space \thinspace{}
22337 \end_inset
22338
22339 g.
22340 \begin_inset Newline newline
22341 \end_inset
22342
22343
22344 \begin_inset Flex Code
22345 status collapsed
22346
22347 \begin_layout Plain Layout
22348 svn co svn+ssh://user@server/repository_path
22349 \end_layout
22350
22351 \end_inset
22352
22353 .
22354 \end_layout
22355
22356 \begin_layout Subsubsection
22357 End-of-Line Conversions
22358 \end_layout
22359
22360 \begin_layout Standard
22361 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22362  will
22363  use different line endings inside the .lyx files.
22364  This is not a problem as far as \SpecialChar LyX
22365  functionality is concerned, but the commit
22366  diffs will be huge and merge-conflicts prone.
22367  Fortunately SVN itself knows
22368 \begin_inset Foot
22369 status collapsed
22370
22371 \begin_layout Plain Layout
22372 \begin_inset Flex URL
22373 status collapsed
22374
22375 \begin_layout Plain Layout
22376
22377 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22378 \end_layout
22379
22380 \end_inset
22381
22382
22383 \end_layout
22384
22385 \end_inset
22386
22387  how to deal with CR/LF problems when switching .lyx files to the 
22388 \begin_inset Flex Code
22389 status collapsed
22390
22391 \begin_layout Plain Layout
22392 native
22393 \end_layout
22394
22395 \end_inset
22396
22397  mode.
22398 \begin_inset Foot
22399 status collapsed
22400
22401 \begin_layout Plain Layout
22402 For the lazy guys: 
22403 \begin_inset Flex Code
22404 status collapsed
22405
22406 \begin_layout Plain Layout
22407 svn propset svn:eol-style native FILE_NAME
22408 \end_layout
22409
22410 \end_inset
22411
22412
22413 \end_layout
22414
22415 \end_inset
22416
22417
22418 \end_layout
22419
22420 \begin_layout Subsection
22421 GIT commands in \SpecialChar LyX
22422
22423 \end_layout
22424
22425 \begin_layout Standard
22426 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22427 .
22428  You can find the commands in the 
22429 \family sans
22430 File\SpecialChar menuseparator
22431 Version
22432 \begin_inset space ~
22433 \end_inset
22434
22435 Control
22436 \family default
22437  submenu.
22438  Please note that if you use password protected access to repository via
22439  ssh, you will be asked in terminal window.
22440  \SpecialChar LyX
22441  was tested against GIT 1.7.
22442 \begin_inset Foot
22443 status open
22444
22445 \begin_layout Plain Layout
22446 Windows users please note that you need to ensure that git is on the path.
22447  This can be set from within \SpecialChar LyX
22448  at 
22449 \family sans
22450 Tools\SpecialChar menuseparator
22451 Preferences\SpecialChar menuseparator
22452 Paths\SpecialChar menuseparator
22453 PATH prefix
22454 \family default
22455 .
22456 \end_layout
22457
22458 \end_inset
22459
22460
22461 \end_layout
22462
22463 \begin_layout Standard
22464 One big difference of GIT and the other supported version control systems
22465  is the distributed nature of GIT: With traditional version control systems
22466  there is one central server which hosts the repository.
22467  Users commit their changes to the server, and get updates made by other
22468  users from it.
22469  With GIT, users commit to a local repository.
22470  The local repository can be synchronized with one or more remote repositories
22471  using the 
22472 \begin_inset Flex Code
22473 status collapsed
22474
22475 \begin_layout Plain Layout
22476 pull
22477 \end_layout
22478
22479 \end_inset
22480
22481  and 
22482 \begin_inset Flex Code
22483 status collapsed
22484
22485 \begin_layout Plain Layout
22486 push
22487 \end_layout
22488
22489 \end_inset
22490
22491  GIT commands.
22492  \SpecialChar LyX
22493  does not interact in any way with remote GIT repositories.
22494  It works exclusively with the local repository in a very similar way as
22495  with a central CVS or SVN repository.
22496  If you use remote GIT repositories you need to do the 
22497 \begin_inset Flex Code
22498 status collapsed
22499
22500 \begin_layout Plain Layout
22501 pull
22502 \end_layout
22503
22504 \end_inset
22505
22506  and 
22507 \begin_inset Flex Code
22508 status collapsed
22509
22510 \begin_layout Plain Layout
22511 push
22512 \end_layout
22513
22514 \end_inset
22515
22516  operations with your favourite GIT client.
22517 \end_layout
22518
22519 \begin_layout Subsubsection
22520
22521 \family sans
22522 Register
22523 \end_layout
22524
22525 \begin_layout Standard
22526 If your document is not under revision control, this is the only item shown
22527  in the menu.
22528  And if it is under revision control, the 
22529 \family sans
22530 \bar under
22531 R
22532 \bar default
22533 egister
22534 \family default
22535  item is not visible.
22536 \end_layout
22537
22538 \begin_layout Standard
22539 This command registers in GIT your document ONLY in case you have already
22540  the documents directory under GIT control (in particular 
22541 \family typewriter
22542 .git/index
22543 \family default
22544  file exists).
22545  This means you have to checkout the archive by yourself.
22546 \end_layout
22547
22548 \begin_layout Standard
22549 Then you are asked interactively to supply an initial description of the
22550  document.
22551  Don't forget that registered file is not yet commited.
22552 \end_layout
22553
22554 \begin_layout Standard
22555 GIT command that is run: 
22556 \family typewriter
22557 git add 
22558 \begin_inset Quotes eld
22559 \end_inset
22560
22561 <file-name>
22562 \begin_inset Quotes erd
22563 \end_inset
22564
22565
22566 \end_layout
22567
22568 \begin_layout Standard
22569 Read 
22570 \family typewriter
22571 man git
22572 \family default
22573  to understand the switches.
22574 \end_layout
22575
22576 \begin_layout Subsubsection
22577
22578 \family sans
22579 Check In Changes
22580 \end_layout
22581
22582 \begin_layout Standard
22583 When you are finished editing a file, you commit your changes.
22584  When you do this, you are asked for a description of the changes.
22585  After that changes are commited.
22586 \end_layout
22587
22588 \begin_layout Standard
22589 GIT command: 
22590 \family typewriter
22591 git commit -q -m"<description>" <file-name>
22592 \end_layout
22593
22594 \begin_layout Subsubsection
22595
22596 \family sans
22597 Revert To Repository Version
22598 \end_layout
22599
22600 \begin_layout Standard
22601 This will discard all changes made to the document since the last check
22602  in.
22603  You get a warning before changes are discarded.
22604 \end_layout
22605
22606 \begin_layout Standard
22607 GIT command: 
22608 \family typewriter
22609 git checkout -q 
22610 \begin_inset Quotes eld
22611 \end_inset
22612
22613 <file-name>
22614 \begin_inset Quotes erd
22615 \end_inset
22616
22617
22618 \end_layout
22619
22620 \begin_layout Subsubsection
22621
22622 \family sans
22623 Rename
22624 \end_layout
22625
22626 \begin_layout Standard
22627 This will rename the current document including the version history.
22628  It requires a clean document without any changes since the last checkin.
22629  You are asked for a file name and a description of the rename operation.
22630  After that the document is renamed, both locally and in the repository.
22631  If the parent directories of the new and old file names differ, all relative
22632  paths of included files are adjusted (like in 
22633 \family sans
22634 File\SpecialChar menuseparator
22635 Save As
22636 \family default
22637 \SpecialChar ldots
22638 ).
22639  Finally, the document is reloaded using the new name.
22640 \end_layout
22641
22642 \begin_layout Labeling
22643 \labelwidthstring 00.00.0000
22644 GIT
22645 \begin_inset space ~
22646 \end_inset
22647
22648 commands: 
22649 \begin_inset space ~
22650 \end_inset
22651
22652
22653 \begin_inset Newline newline
22654 \end_inset
22655
22656
22657 \begin_inset Flex Code
22658 status collapsed
22659
22660 \begin_layout Plain Layout
22661 git mv 
22662 \family typewriter
22663
22664 \begin_inset Quotes eld
22665 \end_inset
22666
22667 <file-name>
22668 \begin_inset Quotes erd
22669 \end_inset
22670
22671  
22672 \begin_inset Quotes eld
22673 \end_inset
22674
22675 <new-file-name>
22676 \begin_inset Quotes erd
22677 \end_inset
22678
22679
22680 \end_layout
22681
22682 \end_inset
22683
22684
22685 \begin_inset Newline newline
22686 \end_inset
22687
22688
22689 \begin_inset Flex Code
22690 status collapsed
22691
22692 \begin_layout Plain Layout
22693 git commit
22694 \end_layout
22695
22696 \end_inset
22697
22698
22699 \end_layout
22700
22701 \begin_layout Subsubsection
22702
22703 \family sans
22704 Show History
22705 \end_layout
22706
22707 \begin_layout Standard
22708 This shows the complete history of the GIT document.
22709  The output of 
22710 \family typewriter
22711 git log 
22712 \begin_inset Quotes eld
22713 \end_inset
22714
22715 <file-name>
22716 \begin_inset Quotes erd
22717 \end_inset
22718
22719
22720 \family default
22721  is shown in a browser.
22722 \end_layout
22723
22724 \begin_layout Subsubsection
22725 Version Info
22726 \end_layout
22727
22728 \begin_layout Standard
22729 \SpecialChar LyX
22730  supports GIT hash number of the last commit to the file, author name, date
22731  and time of last commit.
22732  All those are extracted from 
22733 \family typewriter
22734 git log -n 1 --pretty=format:%H%n%an%n%ai
22735 \family default
22736 .
22737  Tree version information is obtained via 
22738 \family typewriter
22739 git describe --abbrev --dirty --long
22740 \family default
22741 .
22742  See 
22743 \begin_inset CommandInset ref
22744 LatexCommand ref
22745 reference "subsec:VCS-Revision-Information"
22746
22747 \end_inset
22748
22749  for other details.
22750 \end_layout
22751
22752 \begin_layout Subsection
22753 Further tuning
22754 \end_layout
22755
22756 \begin_layout Standard
22757 With the recent addition of the vc-command function \SpecialChar LyX
22758  power users are allowed
22759  to create their own commands for revision control.
22760 \end_layout
22761
22762 \begin_layout Standard
22763 As an example you can see how two TortoiseSVN commands could be integrated
22764  directly:
22765 \end_layout
22766
22767 \begin_layout Description
22768 Commit: 
22769 \begin_inset Flex Code
22770 status collapsed
22771
22772 \begin_layout Plain Layout
22773 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22774 \end_layout
22775
22776 \end_inset
22777
22778
22779 \end_layout
22780
22781 \begin_layout Description
22782 Revert: 
22783 \begin_inset Flex Code
22784 status collapsed
22785
22786 \begin_layout Plain Layout
22787 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22788 \end_layout
22789
22790 \end_inset
22791
22792
22793 \end_layout
22794
22795 \begin_layout Subsection
22796 Version control and Document comparison
22797 \end_layout
22798
22799 \begin_layout Standard
22800 One of the typical uses of version control is to inspect the changes between
22801  revisions, usually by creating 
22802 \begin_inset Flex Code
22803 status collapsed
22804
22805 \begin_layout Plain Layout
22806 diff
22807 \end_layout
22808
22809 \end_inset
22810
22811  dumps.
22812  While this is useful for plain text files, it is much less useful in the
22813  case of \SpecialChar LyX
22814  files, which have more a complicated structure.
22815  Hence we provide binding to the Document comparison feature.
22816  There are two ways of calling this feature - either by direct call of 
22817 \begin_inset Flex Code
22818 status collapsed
22819
22820 \begin_layout Plain Layout
22821 VC_COMPARE
22822 \end_layout
22823
22824 \end_inset
22825
22826  \SpecialChar LyX
22827  function (for details see \SpecialChar LyX
22828  functions manual) or by icon/menu item 
22829 \begin_inset Flex Noun
22830 status collapsed
22831
22832 \begin_layout Plain Layout
22833 Compare with older revision...
22834 \end_layout
22835
22836 \end_inset
22837
22838 .
22839  One can either compare two chosen revisions of the document or he can simply
22840  compare the current version of edited text with older revisions (where
22841  '
22842 \begin_inset Flex Noun
22843 status collapsed
22844
22845 \begin_layout Plain Layout
22846 0
22847 \end_layout
22848
22849 \end_inset
22850
22851 ' revisions back means comparison of the edited file with last commited
22852  revision).
22853  
22854 \end_layout
22855
22856 \begin_layout Standard
22857 This feature is supported for SVN and RCS though due to the more complicated
22858  versioning scheme of RCS there is a constraint – when addressing the revisions
22859  in dialog, numbers always point to the last number in RCS revision number,
22860  i.e.
22861  '35' in '1.2.35'.
22862  We don't currently support GIT addressing of revisions, one can just compare
22863  edited document with its revision X steps backs, where X is addressed as
22864  HEAD~X.
22865 \end_layout
22866
22867 \begin_layout Section
22868 Literate Programming
22869 \end_layout
22870
22871 \begin_layout Standard
22872 Updated by 
22873 \noun on
22874 Kayvan Sylvan 
22875 \noun default
22876 (kayvan@sylvan.com)
22877 \noun on
22878
22879 \noun default
22880 original documentation written by 
22881 \noun on
22882 Edmar Wienskoski Jr.
22883
22884 \noun default
22885  (edmar-w-jr@technologist.com)
22886 \end_layout
22887
22888 \begin_layout Subsection
22889 Introduction
22890 \end_layout
22891
22892 \begin_layout Standard
22893 The main purpose of this documentation is to show you how to use \SpecialChar LyX
22894  for literate
22895  programming, where it is assumed that you are familiar with this programming
22896  technique, and know what 
22897 \begin_inset Quotes eld
22898 \end_inset
22899
22900 tangling
22901 \begin_inset Quotes erd
22902 \end_inset
22903
22904  and 
22905 \begin_inset Quotes eld
22906 \end_inset
22907
22908 weaving
22909 \begin_inset Quotes erd
22910 \end_inset
22911
22912  means.
22913  If that is not the case, please follow the web links provided in the following
22914  sections.
22915  There is a lot of good documentation out there covering old development
22916  history to the latest tools tips.
22917 \end_layout
22918
22919 \begin_layout Standard
22920 It is also assumed that you are familiar with \SpecialChar LyX
22921  itself to a point that you
22922  are comfortable changing your \SpecialChar LyX
22923  preferences, and X resources file.
22924  If that is not the case please refer to other \SpecialChar LyX
22925  documentation to cover your
22926  specific needs.
22927 \end_layout
22928
22929 \begin_layout Subsection
22930 Literate Programming
22931 \end_layout
22932
22933 \begin_layout Standard
22934 From the Literate Programming FAQ: 
22935 \end_layout
22936
22937 \begin_layout Quotation
22938 Literate programming is the combination of documentation and source together
22939  in a fashion suited for reading by human beings.
22940  In fact, literate programs should be enjoyable reading, even inviting!
22941  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
22942  and documentation in a single file.
22943  Literate programming tools then parse the file to produce either readable
22944  documentation or compilable source.
22945  The WEB style of literate programming was created by D.
22946 \begin_inset space \thinspace{}
22947 \end_inset
22948
22949 E.
22950  Knuth during the development of his \SpecialChar TeX
22951  typesetting software.
22952  
22953 \end_layout
22954
22955 \begin_layout Standard
22956 Another excerpt says:
22957 \end_layout
22958
22959 \begin_layout Quotation
22960
22961 \emph on
22962 How is literate programming different from verbose commenting?
22963 \end_layout
22964
22965 \begin_layout Quotation
22966 There are three distinguishing characteristics.
22967  In order of importance, they are: 
22968 \begin_inset Separator parbreak
22969 \end_inset
22970
22971
22972 \end_layout
22973
22974 \begin_deeper
22975 \begin_layout Itemize
22976 flexible order of elaboration 
22977 \end_layout
22978
22979 \begin_layout Itemize
22980 automatic support for browsing 
22981 \end_layout
22982
22983 \begin_layout Itemize
22984 typeset documentation, especially diagrams and mathematics 
22985 \end_layout
22986
22987 \end_deeper
22988 \begin_layout Standard
22989 Now that I sparked your curiosity, take a look in the references.
22990 \end_layout
22991
22992 \begin_layout Subsubsection
22993 References
22994 \end_layout
22995
22996 \begin_layout Standard
22997 The complete Literate Programming FAQ can be found at:
22998 \end_layout
22999
23000 \begin_layout Quote
23001 Literate Programming FAQ 
23002 \begin_inset Flex URL
23003 status collapsed
23004
23005 \begin_layout Plain Layout
23006
23007 http://www.literateprogramming.com/lpfaq.pdf
23008 \end_layout
23009
23010 \end_inset
23011
23012
23013 \end_layout
23014
23015 \begin_layout Standard
23016 The FAQ lists 23 (twenty three!) different literate programming tools.
23017  Where some are specialized or 
23018 \begin_inset Quotes eld
23019 \end_inset
23020
23021 tailored
23022 \begin_inset Quotes erd
23023 \end_inset
23024
23025  for particular programming languages, while other have general scope.
23026  I selected 
23027 \noun on
23028 Noweb
23029 \noun default
23030  for my own use for several reasons:
23031 \end_layout
23032
23033 \begin_layout Itemize
23034 It can generate the documentation either in \SpecialChar LaTeX
23035  or HTML.
23036 \end_layout
23037
23038 \begin_layout Itemize
23039 It has a open architecture, i.
23040 \begin_inset space \thinspace{}
23041 \end_inset
23042
23043 e.
23044 \begin_inset space \space{}
23045 \end_inset
23046
23047 it is easy to plug in new filters and to perform special processing that
23048  you may need.
23049  
23050 \end_layout
23051
23052 \begin_layout Itemize
23053 There is a good selection of filters available already (the HTML is one
23054  of them).
23055 \end_layout
23056
23057 \begin_layout Itemize
23058 It is free.
23059 \end_layout
23060
23061 \begin_layout Standard
23062 The Noweb web page can be found at: 
23063 \end_layout
23064
23065 \begin_layout Quote
23066 Noweb home page 
23067 \begin_inset Flex URL
23068 status collapsed
23069
23070 \begin_layout Plain Layout
23071
23072 http://www.cs.virginia.edu/~nr/noweb/
23073 \end_layout
23074
23075 \end_inset
23076
23077
23078 \end_layout
23079
23080 \begin_layout Standard
23081 Starting from there you can reach many other interesting links and even
23082  some literate program examples.
23083 \end_layout
23084
23085 \begin_layout Subsection
23086 \SpecialChar LyX
23087  and Literate Programming with Noweb
23088 \end_layout
23089
23090 \begin_layout Standard
23091 The \SpecialChar LyX
23092  support for Literate Programming is provided by using the generic \SpecialChar LyX
23093
23094  converters mechanism.
23095  This support is provided in a 
23096 \begin_inset Quotes eld
23097 \end_inset
23098
23099 Noweb independent
23100 \begin_inset Quotes erd
23101 \end_inset
23102
23103  way, i.
23104 \begin_inset space \thinspace{}
23105 \end_inset
23106
23107 e.
23108 \begin_inset space \space{}
23109 \end_inset
23110
23111 you will be able to use this new \SpecialChar LyX
23112  feature with some other literate programming
23113  tool of your choice by just changing your \SpecialChar LyX
23114  preferences.
23115 \end_layout
23116
23117 \begin_layout Subsubsection
23118 Generating documents and code (weaving and tangling)
23119 \end_layout
23120
23121 \begin_layout Paragraph
23122 Using the noweb module
23123 \end_layout
23124
23125 \begin_layout Standard
23126 If you have installed Noweb and \SpecialChar LyX
23127  successfully, whenever you open a new document,
23128  after you have chosen its document class, use the Document->Settings menu
23129  to add the 
23130 \begin_inset Quotes eld
23131 \end_inset
23132
23133 noweb
23134 \begin_inset Quotes erd
23135 \end_inset
23136
23137  module.
23138  If Noweb is correctly installed, when you click on the 
23139 \begin_inset Quotes eld
23140 \end_inset
23141
23142 Modules
23143 \begin_inset Quotes erd
23144 \end_inset
23145
23146  link, you will see the 
23147 \begin_inset Quotes eld
23148 \end_inset
23149
23150 noweb
23151 \begin_inset Quotes erd
23152 \end_inset
23153
23154  module in the available list and you can add it to your document.
23155 \end_layout
23156
23157 \begin_layout Paragraph
23158 Typing code in
23159 \end_layout
23160
23161 \begin_layout Standard
23162 \SpecialChar LyX
23163  enables you to write code with a layout named 
23164 \begin_inset Flex Noun
23165 status collapsed
23166
23167 \begin_layout Plain Layout
23168 Chunk
23169 \end_layout
23170
23171 \end_inset
23172
23173 .
23174  Noweb delimits chunks like this:
23175 \end_layout
23176
23177 \begin_layout LyX-Code
23178 <<My code>>=
23179 \end_layout
23180
23181 \begin_layout LyX-Code
23182   code
23183 \end_layout
23184
23185 \begin_layout LyX-Code
23186   more code
23187 \end_layout
23188
23189 \begin_layout LyX-Code
23190   even more code
23191 \end_layout
23192
23193 \begin_layout LyX-Code
23194   @
23195 \end_layout
23196
23197 \begin_layout Standard
23198 The problem is that whatever is written in between the << and the 
23199 \family typewriter
23200 @
23201 \family default
23202  must be taken literally, i.
23203 \begin_inset space \thinspace{}
23204 \end_inset
23205
23206 e.
23207 \begin_inset space \space{}
23208 \end_inset
23209
23210 \SpecialChar LyX
23211  should be prevented from making any special interpretation of what has
23212  been written.
23213  This is also handled by 
23214 \begin_inset Flex Noun
23215 status collapsed
23216
23217 \begin_layout Plain Layout
23218 Chunk
23219 \end_layout
23220
23221 \end_inset
23222
23223 , that works like a normal paragraph but has a free spacing capability.
23224 \end_layout
23225
23226 \begin_layout Standard
23227 As a special note, you can also use the 
23228 \begin_inset Quotes eld
23229 \end_inset
23230
23231 %def
23232 \begin_inset Quotes erd
23233 \end_inset
23234
23235  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23236 rence:
23237 \end_layout
23238
23239 \begin_layout LyX-Code
23240 <<My chunk>>=
23241 \end_layout
23242
23243 \begin_layout LyX-Code
23244 def some_function(args):
23245 \end_layout
23246
23247 \begin_layout LyX-Code
23248    "This is the doc string for this function."
23249 \end_layout
23250
23251 \begin_layout LyX-Code
23252    print "My args: ", args
23253 \end_layout
23254
23255 \begin_layout LyX-Code
23256 @ %def some_function
23257 \end_layout
23258
23259 \begin_layout Standard
23260 For an example of this usage and the resulting cross-reference output, look
23261  at the Literate python program in 
23262 \emph on
23263 LIBDIR/examples/listerrors.lyx
23264 \emph default
23265  which should make this all clear.
23266 \end_layout
23267
23268 \begin_layout Paragraph
23269 Generating the documentation
23270 \end_layout
23271
23272 \begin_layout Standard
23273 At this point you already have a new document file with a proper document
23274  class, and with some code and text on it.
23275  How do I print it? The answer is simple, you select 
23276 \family sans
23277 View\SpecialChar menuseparator
23278 DVI,
23279 \family default
23280  etc.
23281  Just like you would do for a plain document.
23282  No special procedure is required.
23283 \end_layout
23284
23285 \begin_layout Standard
23286 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23287 :
23288 \end_layout
23289
23290 \begin_layout Enumerate
23291 When the 
23292 \family sans
23293 Update\SpecialChar menuseparator
23294 DVI
23295 \family default
23296  menu option is chosen, a \SpecialChar LaTeX
23297  file is generated.
23298  
23299 \begin_inset Separator parbreak
23300 \end_inset
23301
23302
23303 \end_layout
23304
23305 \begin_deeper
23306 \begin_layout Standard
23307 If the document is of any literate class the generated file will be named
23308  with an extension name defined by the 
23309 \begin_inset Quotes eld
23310 \end_inset
23311
23312 literate
23313 \begin_inset Quotes erd
23314 \end_inset
23315
23316  format (defined in the Preferences panel), otherwise the file will have
23317  the usual 
23318 \family typewriter
23319 .tex
23320 \family default
23321  extension.
23322 \end_layout
23323
23324 \end_deeper
23325 \begin_layout Enumerate
23326 Note that the only difference so far is in the name of the file, no special
23327  processing is required by \SpecialChar LyX
23328 .
23329  Given that you formatted the code using the 
23330 \begin_inset Flex Noun
23331 status collapsed
23332
23333 \begin_layout Plain Layout
23334 Chunk
23335 \end_layout
23336
23337 \end_inset
23338
23339  layout that, by itself, takes care of the business.
23340 \end_layout
23341
23342 \begin_layout Enumerate
23343 If the document is of any literate class \SpecialChar LyX
23344  will then use the internal \SpecialChar LyX
23345  to
23346  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23347  converter
23348 \begin_inset Foot
23349 status collapsed
23350
23351 \begin_layout Plain Layout
23352 The converters are defined in the 
23353 \family sans
23354 Tools\SpecialChar menuseparator
23355 Preferences
23356 \family default
23357  panel, under the 
23358 \begin_inset Quotes eld
23359 \end_inset
23360
23361 Conversion
23362 \begin_inset Quotes erd
23363 \end_inset
23364
23365  tab.
23366  See section 
23367 \emph on
23368 Converters
23369 \emph default
23370  of the 
23371 \emph on
23372 Customization
23373 \emph default
23374  manual for general information about converters.
23375 \end_layout
23376
23377 \end_inset
23378
23379  to generate the \SpecialChar LaTeX
23380  file.
23381 \begin_inset Separator parbreak
23382 \end_inset
23383
23384
23385 \end_layout
23386
23387 \begin_deeper
23388 \begin_layout Standard
23389 Otherwise it will just skip this step.
23390 \end_layout
23391
23392 \end_deeper
23393 \begin_layout Enumerate
23394 Finally, \SpecialChar LaTeX
23395  is invoked and the regular post processing continues as in a plain
23396  document.
23397 \end_layout
23398
23399 \begin_layout Standard
23400 Independence from a particular 
23401 \begin_inset Quotes eld
23402 \end_inset
23403
23404 literate tool
23405 \begin_inset Quotes erd
23406 \end_inset
23407
23408  is easily achieved by changing the commands that are run by the various
23409  converters.
23410 \end_layout
23411
23412 \begin_layout Paragraph
23413 Generating the code
23414 \end_layout
23415
23416 \begin_layout Standard
23417 When the build menu option is chosen or the corresponding button in the
23418  toolbar is pressed, a \SpecialChar LaTeX
23419  file is generated just like step 1 above.
23420  Next, \SpecialChar LyX
23421  invokes the 
23422 \family typewriter
23423 Noweb->Program
23424 \family default
23425  converter.
23426  This converter needs to be defined by the user and is not installed by
23427  default, though the Program format is.
23428  This converter (like any other converter) will have two parts:
23429 \end_layout
23430
23431 \begin_layout Enumerate
23432 The converter program itself.
23433  This program performs the conversion from the one format to the other (in
23434  this case, from the Noweb format to the Program pseudo-format).
23435 \end_layout
23436
23437 \begin_layout Enumerate
23438 The error log parser.
23439  This is a program whose sole purpose is to rewrite error messages in a
23440  format that \SpecialChar LyX
23441  understands.
23442  This makes it possible for \SpecialChar LyX
23443  to place error boxes in the right places in
23444  the file buffer.
23445 \end_layout
23446
23447 \begin_layout Standard
23448 The first part, the 
23449 \begin_inset Quotes eld
23450 \end_inset
23451
23452 Converter
23453 \begin_inset Quotes erd
23454 \end_inset
23455
23456  setting, should be set to
23457 \begin_inset Newline newline
23458 \end_inset
23459
23460
23461 \begin_inset Quotes eld
23462 \end_inset
23463
23464
23465 \family typewriter
23466 build-script $$i
23467 \family default
23468  $$r
23469 \begin_inset Quotes erd
23470 \end_inset
23471
23472 .
23473 \begin_inset Newline newline
23474 \end_inset
23475
23476 This basically means that \SpecialChar LyX
23477  will call 
23478 \begin_inset Quotes eld
23479 \end_inset
23480
23481 build-script
23482 \begin_inset Quotes erd
23483 \end_inset
23484
23485  (a program or script) with the name of the Noweb file (normally a file
23486  in the \SpecialChar LyX
23487  temp directory) and the directory path of the original \SpecialChar LyX
23488  file.
23489  
23490 \end_layout
23491
23492 \begin_layout Standard
23493 This is an implementation of 
23494 \begin_inset Quotes eld
23495 \end_inset
23496
23497 build-script
23498 \begin_inset Quotes erd
23499 \end_inset
23500
23501  that you can place in a directory on your path:
23502 \end_layout
23503
23504 \begin_layout Standard
23505 \begin_inset VSpace defskip
23506 \end_inset
23507
23508
23509 \end_layout
23510
23511 \begin_layout Standard
23512 \begin_inset Newpage pagebreak
23513 \end_inset
23514
23515
23516 \end_layout
23517
23518 \begin_layout Standard
23519
23520 \family sans
23521 #!/bin/sh
23522 \end_layout
23523
23524 \begin_layout Standard
23525
23526 \family sans
23527 #
23528 \end_layout
23529
23530 \begin_layout Standard
23531
23532 \family sans
23533 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23534 \end_layout
23535
23536 \begin_layout Standard
23537 \begin_inset VSpace defskip
23538 \end_inset
23539
23540
23541 \end_layout
23542
23543 \begin_layout Standard
23544 The next part of the converter setting is the 
23545 \begin_inset Quotes eld
23546 \end_inset
23547
23548 Flags
23549 \begin_inset Quotes erd
23550 \end_inset
23551
23552  which is to be set to
23553 \begin_inset Newline newline
23554 \end_inset
23555
23556
23557 \begin_inset Quotes eld
23558 \end_inset
23559
23560
23561 \family typewriter
23562 parselog=$$s/scripts/listerrors
23563 \family default
23564
23565 \begin_inset Quotes erd
23566 \end_inset
23567
23568 .
23569 \begin_inset Newline newline
23570 \end_inset
23571
23572 This will run any errors that are generated by the 
23573 \begin_inset Quotes eld
23574 \end_inset
23575
23576 build-script
23577 \begin_inset Quotes erd
23578 \end_inset
23579
23580  process through the 
23581 \begin_inset Quotes eld
23582 \end_inset
23583
23584 listerrors
23585 \begin_inset Quotes erd
23586 \end_inset
23587
23588  program.
23589 \end_layout
23590
23591 \begin_layout Standard
23592 The build will normally take place in \SpecialChar LyX
23593 's temporary directory, so the files
23594  produced by the conversion will be in that directory.
23595  \SpecialChar LyX
23596  will copy out what it regards as the `main' file, but the 
23597 \family typewriter
23598 Noweb->Program
23599 \family default
23600  conversion may produce several files, and so most of these would then be
23601  deleted when \SpecialChar LyX
23602  was closed.
23603  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23604  the build-script chunk can place the generated files in that location.
23605 \end_layout
23606
23607 \begin_layout Paragraph
23608 Build instructions in the document
23609 \end_layout
23610
23611 \begin_layout Standard
23612 The last piece of the integration between \SpecialChar LyX
23613  and noweb is the 
23614 \begin_inset Quotes eld
23615 \end_inset
23616
23617 build-script
23618 \begin_inset Quotes erd
23619 \end_inset
23620
23621  chunk.
23622  Generally, the instructions for building your program should be embedded
23623  in a chunk of its own.
23624  The noweb-specific 
23625 \begin_inset Quotes eld
23626 \end_inset
23627
23628 build-script
23629 \begin_inset Quotes erd
23630 \end_inset
23631
23632  above uses the notangle command to look for this chunk (called 
23633 \begin_inset Quotes eld
23634 \end_inset
23635
23636 build-script
23637 \begin_inset Quotes erd
23638 \end_inset
23639
23640 ) and runs its contents through 
23641 \begin_inset Quotes eld
23642 \end_inset
23643
23644 sh
23645 \begin_inset Quotes erd
23646 \end_inset
23647
23648 .
23649 \end_layout
23650
23651 \begin_layout Standard
23652 Typically, such a chunk would look something like this:
23653 \end_layout
23654
23655 \begin_layout LyX-Code
23656 <<build-script>>=
23657 \end_layout
23658
23659 \begin_layout LyX-Code
23660 #!/bin/sh
23661 \begin_inset Newline newline
23662 \end_inset
23663
23664 if [ -z "${NOWEB_SOURCE}" ]
23665 \begin_inset Newline newline
23666 \end_inset
23667
23668 then
23669 \end_layout
23670
23671 \begin_layout LyX-Code
23672 NOWEB_SOURCE=myfile.nw
23673 \begin_inset Newline newline
23674 \end_inset
23675
23676 fi
23677 \begin_inset Newline newline
23678 \end_inset
23679
23680 [...
23681  code to extract files ...
23682  use NOWEB_OUTPUT_DIR here ...]
23683 \begin_inset Newline newline
23684 \end_inset
23685
23686 [...
23687  code to compile files ...]
23688 \begin_inset Newline newline
23689 \end_inset
23690
23691 @
23692 \end_layout
23693
23694 \begin_layout Standard
23695 Look in 
23696 \emph on
23697 LIBDIR/examples/listerrors.lyx
23698 \emph default
23699  or in 
23700 \emph on
23701 LIBDIR/examples/Literate.lyx
23702 \emph default
23703  which implement two versions of the 
23704 \begin_inset Quotes eld
23705 \end_inset
23706
23707 listerrors
23708 \begin_inset Quotes erd
23709 \end_inset
23710
23711  program for some illustrations of how all of these pieces go together or
23712  in 
23713 \emph on
23714 LIBDIR/examples/noweb2lyx.lyx.
23715
23716 \emph default
23717  Interestingly, these three files show off the language-indepence of the
23718  \SpecialChar LyX
23719  literate programming support since they are written in Python, C and Perl
23720  respectively.
23721 \end_layout
23722
23723 \begin_layout Subsubsection
23724 Configuring \SpecialChar LyX
23725
23726 \end_layout
23727
23728 \begin_layout Standard
23729 All the Literate Programming support is configured by the 
23730 \family sans
23731 Tools\SpecialChar menuseparator
23732 Preferences
23733 \family default
23734  panel in the 
23735 \begin_inset Quotes eld
23736 \end_inset
23737
23738 File Handling
23739 \begin_inset Quotes erd
23740 \end_inset
23741
23742  tab.
23743  The important parts are:
23744 \end_layout
23745
23746 \begin_layout Description
23747 the
23748 \begin_inset space ~
23749 \end_inset
23750
23751
23752 \begin_inset Quotes eld
23753 \end_inset
23754
23755 NoWeb
23756 \begin_inset Quotes erd
23757 \end_inset
23758
23759
23760 \begin_inset space ~
23761 \end_inset
23762
23763 format Set up via the File Formats tab, this is where the Noweb-specific
23764  pieces are set up.
23765  The 
23766 \family sans
23767 GUI Name
23768 \family default
23769  is set to 
23770 \family typewriter
23771 NoWeb
23772 \family default
23773 , the file extension is set to 
23774 \family typewriter
23775 .nw
23776 \family default
23777 .
23778  This tells \SpecialChar LyX
23779  to create a file with a 
23780 \family typewriter
23781 .nw
23782 \family default
23783  extension in the first step of the conversion process.
23784 \end_layout
23785
23786 \begin_layout Description
23787 the
23788 \begin_inset space ~
23789 \end_inset
23790
23791
23792 \family sans
23793 Program
23794 \family default
23795
23796 \begin_inset space ~
23797 \end_inset
23798
23799 format This is an empty format whose sole purpose is to be the endpoint
23800  of a conversion (which then allows us to set up a converter for it).
23801 \end_layout
23802
23803 \begin_layout Description
23804
23805 \family sans
23806 NoWeb
23807 \family default
23808 ->
23809 \family sans
23810 \SpecialChar LaTeX
23811
23812 \family default
23813  This converter performs the 
23814 \begin_inset Quotes eld
23815 \end_inset
23816
23817 weaving
23818 \begin_inset Quotes erd
23819 \end_inset
23820
23821  of the literate document.
23822  For Noweb, it is set to 
23823 \begin_inset Quotes eld
23824 \end_inset
23825
23826
23827 \family typewriter
23828 noweave -delay -index $$i > $$o
23829 \family default
23830
23831 \begin_inset Quotes erd
23832 \end_inset
23833
23834
23835 \end_layout
23836
23837 \begin_layout Description
23838
23839 \family sans
23840 NoWeb
23841 \family default
23842 ->
23843 \family sans
23844 Program
23845 \family default
23846  This performs the 
23847 \begin_inset Quotes eld
23848 \end_inset
23849
23850 tangling step
23851 \begin_inset Quotes erd
23852 \end_inset
23853
23854 .
23855  As stated above, the Converter is set to 
23856 \begin_inset Quotes eld
23857 \end_inset
23858
23859
23860 \family typewriter
23861 build-script $$i
23862 \family default
23863  $$r
23864 \begin_inset Quotes erd
23865 \end_inset
23866
23867 , with Flags set to
23868 \begin_inset Newline newline
23869 \end_inset
23870
23871
23872 \begin_inset Quotes eld
23873 \end_inset
23874
23875
23876 \family typewriter
23877 parselog=$$s/scripts/listerrors
23878 \family default
23879
23880 \begin_inset Quotes erd
23881 \end_inset
23882
23883 .
23884 \end_layout
23885
23886 \begin_layout Subsubsection
23887 Debug extensions
23888 \end_layout
23889
23890 \begin_layout Standard
23891 There is also a new function implemented in the \SpecialChar LyX
23892  server, the 
23893 \begin_inset Quotes eld
23894 \end_inset
23895
23896 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
23897  
23898 \end_layout
23899
23900 \begin_layout Standard
23901 When debugging code with ddd/gdb, it is possible to invoke a text editor
23902  at the current execution position with a single key stroke.
23903  The default ddd configuration for that is shift-ctrl-V.
23904  It happens that you can define the editor command line invocation in ddd
23905  by accessing the 
23906 \family sans
23907 Edit\SpecialChar menuseparator
23908 Preferences\SpecialChar menuseparator
23909 Helpers
23910 \family default
23911  dialog and changing the "Edit Sources" entry.
23912 \end_layout
23913
23914 \begin_layout Standard
23915 I take advantage of the newly created \SpecialChar LyX
23916  server function and this ddd feature,
23917  and set 
23918 \begin_inset Quotes eld
23919 \end_inset
23920
23921 Edit Sources
23922 \begin_inset Quotes erd
23923 \end_inset
23924
23925  to:
23926 \end_layout
23927
23928 \begin_layout Standard
23929 \begin_inset VSpace defskip
23930 \end_inset
23931
23932
23933 \end_layout
23934
23935 \begin_layout Standard
23936
23937 \family sans
23938 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
23939 \end_layout
23940
23941 \begin_layout Standard
23942 \begin_inset VSpace defskip
23943 \end_inset
23944
23945
23946 \end_layout
23947
23948 \begin_layout Standard
23949 With this, whenever you are using ddd and find a point in the program that
23950  you want to edit, you just press shift-ctrl-V (in the ddd window), and
23951  ddd will forward this information to \SpecialChar LyX
23952  through the \SpecialChar LyX
23953  server and then the
23954  \SpecialChar LyX
23955  window will show the same file with the cursor at the same position ddd
23956  was pointing to.
23957  No more guessing or long scrolling to locate a point in the program back
23958  from debugging !
23959 \end_layout
23960
23961 \begin_layout Standard
23962 Note however that you must enable the \SpecialChar LyX
23963  server to get this feature working
23964  (it is disabled by default).
23965  You can enable it in 
23966 \family sans
23967 Preferences
23968 \family default
23969  (tabs 
23970 \family sans
23971 Inputs
23972 \family default
23973
23974 \family sans
23975 Paths
23976 \family default
23977 ) by entering in the 
23978 \family sans
23979 \SpecialChar LyX
23980 server pipe
23981 \family default
23982  a path like 
23983 \begin_inset Quotes eld
23984 \end_inset
23985
23986
23987 \family typewriter
23988 /home/<your-home-directory>/.lyx/lyxpipe
23989 \family default
23990
23991 \begin_inset Quotes erd
23992 \end_inset
23993
23994
23995 \end_layout
23996
23997 \begin_layout Standard
23998 Read the \SpecialChar LyX
23999  server documentation in the 
24000 \emph on
24001 Customization Manual
24002 \emph default
24003  for further information.
24004 \end_layout
24005
24006 \begin_layout Subsubsection
24007 Toolbar extensions
24008 \end_layout
24009
24010 \begin_layout Standard
24011 There are six new buttons that can be added to your \SpecialChar LyX
24012  toolbar.
24013  Five of these buttons are short cuts to layout styles: 
24014 \family sans
24015 Standard
24016 \family default
24017
24018 \family sans
24019 Section
24020 \family default
24021
24022 \family sans
24023 \SpecialChar LaTeX
24024
24025 \family default
24026
24027 \family sans
24028 \SpecialChar LyX
24029 -Code
24030 \family default
24031 , and 
24032 \family sans
24033 Chunk
24034 \family default
24035 .
24036  The last one is a short cut to the 
24037 \begin_inset Quotes eld
24038 \end_inset
24039
24040 Build Program
24041 \begin_inset Quotes erd
24042 \end_inset
24043
24044  File menu entry.
24045  
24046 \end_layout
24047
24048 \begin_layout Standard
24049 \SpecialChar LyX
24050  has a range of buttons that are available for tool bar customization.
24051  In my toolbar I like to combine the six short cuts above with two more:
24052  One for 
24053 \family sans
24054 Document
24055 \family default
24056 \SpecialChar menuseparator
24057
24058 \family sans
24059 Update
24060 \family default
24061 \SpecialChar menuseparator
24062
24063 \family sans
24064 DVI
24065 \family default
24066  and the other for 
24067 \family sans
24068 Document\SpecialChar menuseparator
24069 View\SpecialChar menuseparator
24070 DVI
24071 \family default
24072  File menu entries.
24073  Here is how it looks like:
24074 \end_layout
24075
24076 \begin_layout LyX-Code
24077 Toolbar
24078 \end_layout
24079
24080 \begin_layout LyX-Code
24081   Layouts
24082 \end_layout
24083
24084 \begin_layout LyX-Code
24085   Icon "layout Standard"
24086 \end_layout
24087
24088 \begin_layout LyX-Code
24089   Icon "layout Section"
24090 \end_layout
24091
24092 \begin_layout LyX-Code
24093   Icon "layout \SpecialChar LaTeX
24094 "
24095 \end_layout
24096
24097 \begin_layout LyX-Code
24098   Icon "layout \SpecialChar LyX
24099 -Code"
24100 \end_layout
24101
24102 \begin_layout LyX-Code
24103   Icon "layout Chunk"
24104 \end_layout
24105
24106 \begin_layout LyX-Code
24107   Separator
24108 \end_layout
24109
24110 \begin_layout LyX-Code
24111   Icon "buffer-view"
24112 \end_layout
24113
24114 \begin_layout LyX-Code
24115   Icon "buffer-typeset"
24116 \end_layout
24117
24118 \begin_layout LyX-Code
24119   Icon "build-program"
24120 \end_layout
24121
24122 \begin_layout LyX-Code
24123   Separator
24124 \end_layout
24125
24126 \begin_layout LyX-Code
24127 .
24128 \end_layout
24129
24130 \begin_layout LyX-Code
24131 .
24132 \end_layout
24133
24134 \begin_layout LyX-Code
24135 .
24136 \end_layout
24137
24138 \begin_layout LyX-Code
24139 End
24140 \end_layout
24141
24142 \begin_layout Subsubsection
24143 Colors customization
24144 \end_layout
24145
24146 \begin_layout Standard
24147 There are a number of colors in \SpecialChar LyX
24148  that can be customized in 
24149 \family sans
24150 Preferences
24151 \family default
24152 .
24153  One of the things that bothers people is the \SpecialChar LaTeX
24154  font color.
24155  The default color is red, since the chunks uses \SpecialChar LaTeX
24156  font, and there is a lot
24157  of chunks in literate documents, you may get tired of seeing everything
24158  in red.
24159  You can change it by going to the tabs 
24160 \family sans
24161 Look&Feel
24162 \family default
24163
24164 \family sans
24165 Colors.
24166 \end_layout
24167
24168 \begin_layout Standard
24169 The next thing is the visible presence of the newline character in the screen.
24170  You can choose the color of this particular character and make it blend
24171  in the background.
24172  I recommend you choosing a color that is close to the background but not
24173  equal, that way you still can see it is there, but it is not bothering
24174  you anymore.
24175 \end_layout
24176
24177 \begin_layout Subsection
24178 \SpecialChar LyX
24179  and knitr/Sweave
24180 \end_layout
24181
24182 \begin_layout Standard
24183 Support for 
24184 \family sans
24185 knitr
24186 \family default
24187  and 
24188 \family sans
24189 Sweave
24190 \family default
24191  is documented in the 
24192 \emph on
24193 knitr.lyx
24194 \emph default
24195  example file and in the Sweave manual (menu 
24196 \family sans
24197 Help\SpecialChar menuseparator
24198 Specific Manuals
24199 \family default
24200 ).
24201 \end_layout
24202
24203 \begin_layout Chapter
24204 Special features
24205 \end_layout
24206
24207 \begin_layout Standard
24208 You can do everything with \SpecialChar LyX
24209  that you can do with \SpecialChar LaTeX
24210 .
24211  However, \SpecialChar LyX
24212  cannot support every \SpecialChar LaTeX
24213  feature directly.
24214  But you can always use \SpecialChar TeX
24215  Code.
24216  This chapter shows you some more special things you might want to use.
24217  For other special things you can do with figures, tables, floats, boxes
24218  and notes, have a look at the 
24219 \emph on
24220 Embedded
24221 \begin_inset space ~
24222 \end_inset
24223
24224 Objects
24225 \emph default
24226  manual.
24227 \end_layout
24228
24229 \begin_layout Section
24230 Multiple Text Columns
24231 \end_layout
24232
24233 \begin_layout Standard
24234 This feature is independent of the option 
24235 \family sans
24236 Two-column document
24237 \family default
24238  in the document settings under 
24239 \family sans
24240 Text Layout
24241 \family default
24242 .
24243  If you want to have 2
24244 \begin_inset space ~
24245 \end_inset
24246
24247 columns for the whole document, it is recommended to use the 
24248 \family sans
24249 Two-column document
24250 \family default
24251  option.
24252  For all other cases use this feature.
24253 \end_layout
24254
24255 \begin_layout Standard
24256 To use multiple text columns in your document, you have to load the module
24257  
24258 \family sans
24259 Multiple Columns
24260 \family default
24261  (menu 
24262 \family sans
24263 Document\SpecialChar menuseparator
24264 Settings\SpecialChar menuseparator
24265 Modules
24266 \family default
24267 ) and must have the \SpecialChar LaTeX
24268 -package 
24269 \series bold
24270 multicol
24271 \series default
24272  installed.
24273 \end_layout
24274
24275 \begin_layout Standard
24276 Footnotes within multiple columns will be placed at the bottom of the page
24277  and not under each column.
24278  Within the different columns you can use everything, with the limitation
24279  that for floats you need to use the float option 
24280 \family sans
24281 Span columns
24282 \family default
24283 .
24284 \end_layout
24285
24286 \begin_layout Subsection
24287 Basics
24288 \end_layout
24289
24290 \begin_layout Standard
24291 If you want to have 2
24292 \begin_inset space ~
24293 \end_inset
24294
24295 columns in your text, insert a multicolumn inset via the menu 
24296 \family sans
24297 Insert\SpecialChar menuseparator
24298 Custom
24299 \begin_inset space ~
24300 \end_inset
24301
24302 Insets\SpecialChar menuseparator
24303 Multiple
24304 \begin_inset space ~
24305 \end_inset
24306
24307 Columns
24308 \family default
24309  where the columns should start.
24310  Write all text that should be printed in 2
24311 \begin_inset space ~
24312 \end_inset
24313
24314 columns into this inset.
24315 \end_layout
24316
24317 \begin_layout Standard
24318 Here is an example:
24319 \end_layout
24320
24321 \begin_layout Standard
24322 \noindent
24323 \begin_inset Flex Multiple Columns
24324 status open
24325
24326 \begin_layout Plain Layout
24327 \noindent
24328
24329 \series bold
24330 \size small
24331 The Adventure of the Empty House
24332 \series default
24333
24334 \begin_inset Newline newline
24335 \end_inset
24336
24337 by Sir Arthur Conan Doyle
24338 \end_layout
24339
24340 \begin_layout Plain Layout
24341
24342 \size small
24343 It was in the spring of the year 1894 that all London was interested, and
24344  the fashionable world dismayed, by the murder of the Honourable Ronald
24345  Adair under most unusual and inexplicable circumstances.
24346  The public has already learned those particulars of the crime which came
24347  out in the police investigation, but a good deal was suppressed upon that
24348  occasion, since the case for the prosecution was so overwhelmingly strong
24349  that it was not necessary to bring forward all the facts.
24350  Only now, at the end of nearly ten years, am I allowed to supply those
24351  missing links which make up the whole of that remarkable chain.
24352  The crime was of interest in itself, but that interest was as nothing to
24353  me compared to the inconceivable sequel, which afforded me the greatest
24354  shock and surprise of any event in my adventurous life.
24355  Even now, after this long interval, I find myself thrilling as I think
24356  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24357 ty which utterly submerged my mind.
24358  Let me say to that public, which has shown some interest in those glimpses
24359  which I have occasionally given them of the thoughts and actions of a very
24360  remarkable man, that they are not to blame me if I have not shared my knowledge
24361  with them, for I should have considered it my first duty to do so, had
24362  I not been barred by a positive prohibition from his own lips, which was
24363  only withdrawn upon the third of last month.
24364 \end_layout
24365
24366 \end_inset
24367
24368
24369 \end_layout
24370
24371 \begin_layout Standard
24372 To get 3 or more columns, set the cursor into the multicolumn inset and
24373  use the menu 
24374 \family sans
24375 Insert\SpecialChar menuseparator
24376 Number
24377 \begin_inset space ~
24378 \end_inset
24379
24380 of
24381 \begin_inset space ~
24382 \end_inset
24383
24384 Columns
24385 \family default
24386 .
24387  The number of the desired columns is written into that inset (for 3
24388 \begin_inset space ~
24389 \end_inset
24390
24391 columns write 
24392 \begin_inset Quotes eld
24393 \end_inset
24394
24395 3
24396 \begin_inset Quotes erd
24397 \end_inset
24398
24399 ).
24400 \begin_inset Newline newline
24401 \end_inset
24402
24403 Here is an example with 3
24404 \begin_inset space ~
24405 \end_inset
24406
24407 columns:
24408 \end_layout
24409
24410 \begin_layout Standard
24411 \begin_inset Flex Multiple Columns
24412 status open
24413
24414 \begin_layout Plain Layout
24415
24416 \size footnotesize
24417 \begin_inset Argument 1
24418 status open
24419
24420 \begin_layout Plain Layout
24421 3
24422 \end_layout
24423
24424 \end_inset
24425
24426 It can be imagined that my close intimacy with Sherlock Holmes had interested
24427  me deeply in crime, and that after his disappearance I never failed to
24428  read with care the various problems which came before the public.
24429  And I even attempted, more than once, for my own private satisfaction,
24430  to employ his methods in their solution, though with indifferent success.
24431  There was none, however, which appealed to me like this tragedy of Ronald
24432  Adair.
24433  As I read the evidence at the inquest, which led up to a verdict of willful
24434  murder against some person or persons unknown, I realized more clearly
24435  than I had ever done the loss which the community had sustained by the
24436  death of Sherlock Holmes.
24437  There were points about this strange business which would, I was sure,
24438  have specially appealed to him, and the efforts of the police would have
24439  been supplemented, or more probably anticipated, by the trained observation
24440  and the alert mind of the first criminal agent in Europe.
24441  All day, as I drove upon my round, I turned over the case in my mind and
24442  found no explanation which appeared to me to be adequate.
24443  At the risk of telling a twice-told tale, I will recapitulate the facts
24444  as they were known to the public at the conclusion of the inquest.
24445 \end_layout
24446
24447 \end_inset
24448
24449
24450 \end_layout
24451
24452 \begin_layout Standard
24453 You can have up to 10
24454 \begin_inset space ~
24455 \end_inset
24456
24457 columns if you want to, but that might not be very pleasant for the readers
24458  of your document.
24459 \end_layout
24460
24461 \begin_layout Standard
24462 \begin_inset Newpage newpage
24463 \end_inset
24464
24465
24466 \end_layout
24467
24468 \begin_layout Subsection
24469 Columns inside Columns
24470 \end_layout
24471
24472 \begin_layout Standard
24473 You can also have columns inside columns:
24474 \end_layout
24475
24476 \begin_layout Standard
24477 \begin_inset Flex Multiple Columns
24478 status open
24479
24480 \begin_layout Plain Layout
24481
24482 \size footnotesize
24483 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24484  at that time governor of one of the Australian colonies.
24485  Adair's mother had returned from Australia to undergo the operation for
24486  cataract, and she, her son Ronald, and her daughter Hilda were living together
24487  at 427 Park Lane.
24488 \end_layout
24489
24490 \begin_layout Plain Layout
24491 \begin_inset Flex Multiple Columns
24492 status open
24493
24494 \begin_layout Plain Layout
24495
24496 \size footnotesize
24497 The youth moved in the best society–had, so far as was known, no enemies
24498  and no particular vices.
24499  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24500  had been broken off by mutual consent some months before, and there was
24501  no sign that it had left any very profound feeling behind it.
24502  For the rest {sic} the man's life moved in a narrow and conventional circle,
24503  for his habits were quiet and his nature unemotional.
24504  Yet it was upon this easy-going young aristocrat that death came, in most
24505  strange and unexpected form, between the hours of ten and eleven-twenty
24506  on the night of March 30, 1894.
24507 \end_layout
24508
24509 \end_inset
24510
24511
24512 \end_layout
24513
24514 \begin_layout Plain Layout
24515
24516 \size footnotesize
24517 Ronald Adair was fond of cards–playing continually, but never for such stakes
24518  as would hurt him.
24519  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24520  It was shown that, after dinner on the day of his death, he had played
24521  a rubber of whist at the latter club.
24522  He had also played there in the afternoon.
24523
24524 \size default
24525  
24526 \size footnotesize
24527 The evidence of those who had played with him– Mr.
24528  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24529  and that there was a fairly equal fall of the cards.
24530  Adair might have lost five pounds, but not more.
24531  His fortune was a considerable one, and such a loss could not in any way
24532  affect him.
24533  He had played nearly every day at one club or other, but he was a cautious
24534  player, and usually rose a winner.
24535  It came out in evidence that, in partnership with Colonel Moran, he had
24536  actually won as much as four hundred and twenty pounds in a sitting, some
24537  weeks before, from Godfrey Milner and Lord Balmoral.
24538  So much for his recent history as it came out at the inquest.
24539 \end_layout
24540
24541 \end_inset
24542
24543
24544 \end_layout
24545
24546 \begin_layout Subsection
24547 Advanced Examples
24548 \end_layout
24549
24550 \begin_layout Standard
24551 The examples in this section show some more special features of multiple
24552  columns.
24553 \end_layout
24554
24555 \begin_layout Standard
24556 For more features of multiple columns, have a look at the documentation
24557  of the \SpecialChar LaTeX
24558 -package 
24559 \series bold
24560 multicol
24561 \series default
24562
24563 \begin_inset CommandInset citation
24564 LatexCommand cite
24565 key "multicol"
24566
24567 \end_inset
24568
24569 .
24570 \end_layout
24571
24572 \begin_layout Subsubsection
24573 Preface
24574 \end_layout
24575
24576 \begin_layout Standard
24577 To add a preface text for multiple columns, set the cursor into the multicolumn
24578  inset and use the menu 
24579 \family sans
24580 Insert\SpecialChar menuseparator
24581 Preface
24582 \family default
24583 .
24584  Write your preface text into that inset.
24585 \begin_inset Newline newline
24586 \end_inset
24587
24588 This is an example with some preface text:
24589 \end_layout
24590
24591 \begin_layout Standard
24592 \begin_inset VSpace bigskip
24593 \end_inset
24594
24595
24596 \end_layout
24597
24598 \begin_layout Standard
24599 \begin_inset Flex Multiple Columns
24600 status open
24601
24602 \begin_layout Plain Layout
24603 \begin_inset Argument 2
24604 status open
24605
24606 \begin_layout Plain Layout
24607 And the story continues and continues and continues and continues\SpecialChar ldots
24608
24609 \end_layout
24610
24611 \end_inset
24612
24613
24614 \size small
24615 On the evening of the crime, he returned from the club exactly at ten.
24616  His mother and sister were out spending the evening with a relation.
24617  The servant deposed that she heard him enter the front room on the second
24618  floor, generally used as his sitting-room.
24619  She had lit a fire there, and as it smoked she had opened the window.
24620  No sound was heard from the room until eleven-twenty, the hour of the return
24621  of Lady Maynooth and her daughter.
24622  Desiring to say good-night, she attempted to enter her son's room.
24623  The door was locked on the inside, and no answer could be got to their
24624  cries and knocking.
24625  Help was obtained, and the door forced.
24626  The unfortunate young man was found lying near the table.
24627  His head had been horribly mutilated by an expanding revolver bullet, but
24628  no weapon of any sort was to be found in the room.
24629 \end_layout
24630
24631 \end_inset
24632
24633
24634 \end_layout
24635
24636 \begin_layout Standard
24637 You can also use a section heading as the preface if you use a section command
24638  as \SpecialChar TeX
24639  Code.
24640  For example the command
24641 \end_layout
24642
24643 \begin_layout Standard
24644
24645 \series bold
24646
24647 \backslash
24648 subsection{subsection title}
24649 \end_layout
24650
24651 \begin_layout Standard
24652 creates a subsection.
24653  In this example the preface is a subsubsection:
24654 \end_layout
24655
24656 \begin_layout Standard
24657 \begin_inset Flex Multiple Columns
24658 status open
24659
24660 \begin_layout Plain Layout
24661 \begin_inset Argument 2
24662 status open
24663
24664 \begin_layout Plain Layout
24665 \begin_inset ERT
24666 status collapsed
24667
24668 \begin_layout Plain Layout
24669
24670
24671 \backslash
24672 subsubsection{
24673 \end_layout
24674
24675 \end_inset
24676
24677 This is a subsubsection heading as a preface
24678 \begin_inset ERT
24679 status collapsed
24680
24681 \begin_layout Plain Layout
24682
24683 }
24684 \end_layout
24685
24686 \end_inset
24687
24688
24689 \end_layout
24690
24691 \end_inset
24692
24693
24694 \size small
24695 A minute examination of the circumstances served only to make the case more
24696  complex.
24697  In the first place, no reason could be given why the young man should have
24698  fastened the door upon the inside.
24699  There was the possibility that the murderer had done this, and had afterwards
24700  escaped by the window.
24701  The drop was at least twenty feet, however, and a bed of crocuses in full
24702  bloom lay beneath.
24703  Neither the flowers nor the earth showed any sign of having been disturbed,
24704  nor were there any marks upon the narrow strip of grass which separated
24705  the house from the road.
24706  Apparently, therefore, it was the young man himself who had fastened the
24707  door.
24708  But how did he come by his death? No one could have climbed up to the window
24709  without leaving traces.
24710  Suppose a man had fired through the window, he would indeed be a remarkable
24711  shot who could with a revolver inflict so deadly a wound.
24712  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24713  a hundred yards of the house.
24714  No one had heard a shot.
24715 \end_layout
24716
24717 \end_inset
24718
24719
24720 \end_layout
24721
24722 \begin_layout Standard
24723 If there is less vertical space than 6
24724 \begin_inset space ~
24725 \end_inset
24726
24727 text lines is left on the page at the beginning of the multiple columns,
24728  a page break will be inserted before the multiple columns.
24729  Depending on the number of lines of the preface text, you might want to
24730  change this space.
24731  This is done by setting the cursor into the mulitcolumn inset behind the
24732  preface (if there is any) and using the menu 
24733 \family sans
24734 Insert\SpecialChar menuseparator
24735 Space
24736 \begin_inset space ~
24737 \end_inset
24738
24739 Before
24740 \begin_inset space ~
24741 \end_inset
24742
24743 Page
24744 \begin_inset space ~
24745 \end_inset
24746
24747 Break
24748 \family default
24749 .
24750  Insert into that inset the amount of space like e.
24751 \begin_inset space \thinspace{}
24752 \end_inset
24753
24754 g.
24755 \begin_inset space \space{}
24756 \end_inset
24757
24758
24759 \begin_inset Quotes eld
24760 \end_inset
24761
24762 5cm
24763 \begin_inset Quotes erd
24764 \end_inset
24765
24766 .
24767 \begin_inset Newline newline
24768 \end_inset
24769
24770 In this example the space is set to 7
24771 \begin_inset space ~
24772 \end_inset
24773
24774 text lines by using 
24775 \begin_inset Quotes eld
24776 \end_inset
24777
24778 7
24779 \backslash
24780 baselineskip
24781 \begin_inset Quotes erd
24782 \end_inset
24783
24784  (where the command 
24785 \series bold
24786
24787 \backslash
24788 baselineskip
24789 \series default
24790  needs to be inserted as \SpecialChar TeX
24791  code):
24792 \end_layout
24793
24794 \begin_layout Standard
24795 \begin_inset Flex Multiple Columns
24796 status open
24797
24798 \begin_layout Plain Layout
24799 \begin_inset Argument 3
24800 status open
24801
24802 \begin_layout Plain Layout
24803 7
24804 \begin_inset ERT
24805 status collapsed
24806
24807 \begin_layout Plain Layout
24808
24809
24810 \backslash
24811 baselineskip
24812 \end_layout
24813
24814 \end_inset
24815
24816
24817 \end_layout
24818
24819 \end_inset
24820
24821
24822 \size small
24823 On the evening of the crime, he returned from the club exactly at ten.
24824  His mother and sister were out spending the evening with a relation.
24825  The servant deposed that she heard him enter the front room on the second
24826  floor, generally used as his sitting-room.
24827  She had lit a fire there, and as it smoked she had opened the window.
24828  No sound was heard from the room until eleven-twenty, the hour of the return
24829  of Lady Maynooth and her daughter.
24830  Desiring to say good-night, she attempted to enter her son's room.
24831  The door was locked on the inside, and no answer could be got to their
24832  cries and knocking.
24833  Help was obtained, and the door forced.
24834  The unfortunate young man was found lying near the table.
24835  His head had been horribly mutilated by an expanding revolver bullet, but
24836  no weapon of any sort was to be found in the room.
24837 \end_layout
24838
24839 \end_inset
24840
24841
24842 \end_layout
24843
24844 \begin_layout Subsubsection
24845 Surrounding Space
24846 \end_layout
24847
24848 \begin_layout Standard
24849 The amount of space before and after multiple columns can be changed by
24850  changing the length 
24851 \series bold
24852
24853 \backslash
24854 multicolsep
24855 \series default
24856 .
24857  For example the command
24858 \end_layout
24859
24860 \begin_layout Standard
24861
24862 \series bold
24863
24864 \backslash
24865 setlength{
24866 \backslash
24867 multicolsep}{3cm}
24868 \end_layout
24869
24870 \begin_layout Standard
24871 in \SpecialChar TeX
24872  Code changes its value to 3
24873 \begin_inset space \thinspace{}
24874 \end_inset
24875
24876 cm.
24877  The change must be made before the multiple columns' start.
24878  The predefined value is 13
24879 \begin_inset space \thinspace{}
24880 \end_inset
24881
24882 pt.
24883 \end_layout
24884
24885 \begin_layout Standard
24886 For this example 
24887 \series bold
24888
24889 \backslash
24890 multicolsep
24891 \series default
24892  was set to 2.5
24893 \begin_inset space \thinspace{}
24894 \end_inset
24895
24896 cm:
24897 \end_layout
24898
24899 \begin_layout Standard
24900 \begin_inset ERT
24901 status open
24902
24903 \begin_layout Plain Layout
24904
24905
24906 \backslash
24907 setlength{
24908 \backslash
24909 multicolsep}{2.5cm}
24910 \end_layout
24911
24912 \end_inset
24913
24914
24915 \end_layout
24916
24917 \begin_layout Standard
24918 \begin_inset Flex Multiple Columns
24919 status open
24920
24921 \begin_layout Plain Layout
24922
24923 \size small
24924 All day I turned these facts over in my mind, endeavouring to hit upon some
24925  theory which could reconcile them all, and to find that line of least resistanc
24926 e which my poor friend had declared to be the starting-point of every investigat
24927 ion.
24928  I confess that I made little progress.
24929  In the evening I strolled across the Park, and found myself about six o'clock
24930  at the Oxford Street end of Park Lane.
24931  A group of loafers upon the pavements, all staring up at a particular window,
24932  directed me to the house which I had come to see.
24933  A tall, thin man with coloured glasses, whom I strongly suspected of being
24934  a plain-clothes detective, was pointing out some theory of his own, while
24935  the others crowded round to listen to what he said.
24936  I got as near him as I could, but his observations seemed to me to be absurd,
24937  so I withdrew again in some disgust.
24938  As I did so I struck against an elderly, deformed man, who had been behind
24939  me, and I knocked down several books which he was carrying.
24940 \end_layout
24941
24942 \end_inset
24943
24944
24945 \end_layout
24946
24947 \begin_layout Standard
24948 \begin_inset Note Greyedout
24949 status open
24950
24951 \begin_layout Plain Layout
24952
24953 \series bold
24954 Note:
24955 \series default
24956  The values you set with 
24957 \series bold
24958
24959 \backslash
24960 setlength
24961 \series default
24962  will be used for all following multiple columns until you change them again.
24963 \end_layout
24964
24965 \end_inset
24966
24967
24968 \end_layout
24969
24970 \begin_layout Standard
24971 \begin_inset ERT
24972 status collapsed
24973
24974 \begin_layout Plain Layout
24975
24976
24977 \backslash
24978 setlength{
24979 \backslash
24980 multicolsep}{13pt}
24981 \end_layout
24982
24983 \end_inset
24984
24985
24986 \begin_inset Note Note
24987 status collapsed
24988
24989 \begin_layout Plain Layout
24990 go back to the default
24991 \end_layout
24992
24993 \end_inset
24994
24995
24996 \end_layout
24997
24998 \begin_layout Standard
24999 \begin_inset Newpage newpage
25000 \end_inset
25001
25002
25003 \end_layout
25004
25005 \begin_layout Subsubsection
25006 Column Breaks
25007 \end_layout
25008
25009 \begin_layout Standard
25010 A column break can be forced by inserting the command 
25011 \series bold
25012
25013 \backslash
25014 columnbreak{}
25015 \series default
25016  as \SpecialChar TeX
25017  Code to that position in the text where the column should be broken.
25018  Note that this leads in most cases to whitespace in the text.
25019 \begin_inset Newline newline
25020 \end_inset
25021
25022 Here is an example:
25023 \end_layout
25024
25025 \begin_layout Standard
25026 \begin_inset Flex Multiple Columns
25027 status open
25028
25029 \begin_layout Plain Layout
25030
25031 \size small
25032 \begin_inset Quotes eld
25033 \end_inset
25034
25035 You're surprised to see me, sir,
25036 \begin_inset Quotes erd
25037 \end_inset
25038
25039  said he, in a strange, croaking voice.
25040 \end_layout
25041
25042 \begin_layout Plain Layout
25043
25044 \size small
25045 I acknowledged that I was.
25046 \end_layout
25047
25048 \begin_layout Plain Layout
25049
25050 \size small
25051 \begin_inset Quotes eld
25052 \end_inset
25053
25054 Well, I've a conscience, sir, and when I chanced to see you go into this
25055  house, as I came hobbling after you, I thought to myself, I'll just step
25056  in and see that kind gentleman, and tell him that if I was a bit gruff
25057  in my manner there was not any harm meant, and that I am much obliged to
25058  him for picking up my books.
25059 \begin_inset Quotes erd
25060 \end_inset
25061
25062
25063 \end_layout
25064
25065 \begin_layout Plain Layout
25066
25067 \size small
25068 \begin_inset Quotes eld
25069 \end_inset
25070
25071 You make too much of a trifle,
25072 \begin_inset Quotes erd
25073 \end_inset
25074
25075  said I.
25076  
25077 \begin_inset Quotes eld
25078 \end_inset
25079
25080 May I ask how you knew who I was?
25081 \begin_inset Quotes erd
25082 \end_inset
25083
25084  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25085 \begin_inset ERT
25086 status collapsed
25087
25088 \begin_layout Plain Layout
25089
25090
25091 \backslash
25092 columnbreak{}
25093 \end_layout
25094
25095 \end_inset
25096
25097
25098 \end_layout
25099
25100 \begin_layout Plain Layout
25101
25102 \size small
25103 \begin_inset Quotes eld
25104 \end_inset
25105
25106 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25107  you'll find my little bookshop at the corner of Church Street, and very
25108  happy to see you, I am sure.
25109  Maybe you collect yourself, sir.
25110  Here's 
25111 \noun on
25112 British
25113 \begin_inset space ~
25114 \end_inset
25115
25116 Birds
25117 \noun default
25118 , and 
25119 \noun on
25120 Catullus
25121 \noun default
25122 , and 
25123 \noun on
25124 The Holy War
25125 \noun default
25126 –a bargain, every one of them.
25127  With five volumes you could just fill that gap on that second shelf.
25128  It looks untidy, does it not, sir?
25129 \begin_inset Quotes erd
25130 \end_inset
25131
25132
25133 \end_layout
25134
25135 \end_inset
25136
25137
25138 \end_layout
25139
25140 \begin_layout Subsubsection
25141 Column Separation
25142 \end_layout
25143
25144 \begin_layout Standard
25145 The width of the columns is automatically calculated, but you can modify
25146  the space between the columns.
25147  This is done by changing the length 
25148 \series bold
25149
25150 \backslash
25151 columnsep
25152 \series default
25153 .
25154  Its predefined value is 10
25155 \begin_inset space \thinspace{}
25156 \end_inset
25157
25158 pt.
25159  Here is an example where 
25160 \series bold
25161
25162 \backslash
25163 columnsep
25164 \series default
25165  is set to 3
25166 \begin_inset space \thinspace{}
25167 \end_inset
25168
25169 cm:
25170 \end_layout
25171
25172 \begin_layout Standard
25173 \begin_inset ERT
25174 status open
25175
25176 \begin_layout Plain Layout
25177
25178
25179 \backslash
25180 setlength{
25181 \backslash
25182 columnsep}{3cm}
25183 \end_layout
25184
25185 \end_inset
25186
25187
25188 \end_layout
25189
25190 \begin_layout Standard
25191 \begin_inset Flex Multiple Columns
25192 status open
25193
25194 \begin_layout Plain Layout
25195
25196 \size small
25197 My observations of No.
25198 \begin_inset space \space{}
25199 \end_inset
25200
25201 427 Park Lane did little to clear up the problem in which I was interested.
25202  The house was separated from the street by a low wall and railing, the
25203  whole not more than five feet high.
25204  It was perfectly easy, therefore, for anyone to get into the garden, but
25205  the window was entirely inaccessible, since there was no water pipe or
25206  anything which could help the most active man to climb it.
25207  More puzzled than ever, I retraced my steps to Kensington.
25208  I had not been in my study five minutes when the maid entered to say that
25209  a person desired to see me.
25210  To my astonishment it was none other than my strange old book collector,
25211  his sharp, wizened face peering out from a frame of white hair, and his
25212  precious volumes, a dozen of them at least, wedged under his right arm.
25213 \end_layout
25214
25215 \end_inset
25216
25217
25218 \end_layout
25219
25220 \begin_layout Standard
25221 \begin_inset ERT
25222 status collapsed
25223
25224 \begin_layout Plain Layout
25225
25226
25227 \backslash
25228 setlength{
25229 \backslash
25230 columnsep}{10pt}
25231 \end_layout
25232
25233 \end_inset
25234
25235
25236 \begin_inset Note Note
25237 status collapsed
25238
25239 \begin_layout Plain Layout
25240 go back to the default
25241 \end_layout
25242
25243 \end_inset
25244
25245
25246 \end_layout
25247
25248 \begin_layout Subsubsection
25249 Vertical Lines
25250 \end_layout
25251
25252 \begin_layout Standard
25253 Between the columns a rule with a width of the length 
25254 \series bold
25255
25256 \backslash
25257 columnseprule
25258 \series default
25259  is placed.
25260  If this rule width is set to 0
25261 \begin_inset space \thinspace{}
25262 \end_inset
25263
25264 pt (this is the default), the rule is suppressed.
25265  In the following example the rule is 2
25266 \begin_inset space \thinspace{}
25267 \end_inset
25268
25269 pt wide:
25270 \end_layout
25271
25272 \begin_layout Standard
25273 \begin_inset ERT
25274 status open
25275
25276 \begin_layout Plain Layout
25277
25278
25279 \backslash
25280 setlength{
25281 \backslash
25282 columnseprule}{2pt}
25283 \end_layout
25284
25285 \end_inset
25286
25287
25288 \end_layout
25289
25290 \begin_layout Standard
25291 \begin_inset Flex Multiple Columns
25292 status open
25293
25294 \begin_layout Plain Layout
25295
25296 \size small
25297 \begin_inset Quotes eld
25298 \end_inset
25299
25300 You're surprised to see me, sir,
25301 \begin_inset Quotes erd
25302 \end_inset
25303
25304  said he, in a strange, croaking voice.
25305 \end_layout
25306
25307 \begin_layout Plain Layout
25308
25309 \size small
25310 I acknowledged that I was.
25311 \end_layout
25312
25313 \begin_layout Plain Layout
25314
25315 \size small
25316 \begin_inset Quotes eld
25317 \end_inset
25318
25319 Well, I've a conscience, sir, and when I chanced to see you go into this
25320  house, as I came hobbling after you, I thought to myself, I'll just step
25321  in and see that kind gentleman, and tell him that if I was a bit gruff
25322  in my manner there was not any harm meant, and that I am much obliged to
25323  him for picking up my books.
25324 \begin_inset Quotes erd
25325 \end_inset
25326
25327
25328 \end_layout
25329
25330 \begin_layout Plain Layout
25331
25332 \size small
25333 \begin_inset Quotes eld
25334 \end_inset
25335
25336 You make too much of a trifle,
25337 \begin_inset Quotes erd
25338 \end_inset
25339
25340  said I.
25341  
25342 \begin_inset Quotes eld
25343 \end_inset
25344
25345 May I ask how you knew who I was?
25346 \begin_inset Quotes erd
25347 \end_inset
25348
25349
25350 \end_layout
25351
25352 \begin_layout Plain Layout
25353
25354 \size small
25355 \begin_inset Quotes eld
25356 \end_inset
25357
25358 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25359  you'll find my little bookshop at the corner of Church Street, and very
25360  happy to see you, I am sure.
25361  Maybe you collect yourself, sir.
25362  Here's 
25363 \noun on
25364 British
25365 \begin_inset space ~
25366 \end_inset
25367
25368 Birds
25369 \noun default
25370 , and 
25371 \noun on
25372 Catullus
25373 \noun default
25374 , and 
25375 \noun on
25376 The Holy War
25377 \noun default
25378 –a bargain, every one of them.
25379  With five volumes you could just fill that gap on that second shelf.
25380  It looks untidy, does it not, sir?
25381 \begin_inset Quotes erd
25382 \end_inset
25383
25384
25385 \end_layout
25386
25387 \end_inset
25388
25389
25390 \end_layout
25391
25392 \begin_layout Standard
25393 \begin_inset VSpace defskip
25394 \end_inset
25395
25396
25397 \end_layout
25398
25399 \begin_layout Standard
25400 The rule can be colored by redefining the command 
25401 \series bold
25402
25403 \backslash
25404 columnseprulecolor
25405 \series default
25406 .
25407  This is done by inserting the command
25408 \begin_inset Newline newline
25409 \end_inset
25410
25411
25412 \series bold
25413
25414 \backslash
25415 renewcommand{
25416 \backslash
25417 columnseprulecolor}{
25418 \backslash
25419 color{red}}
25420 \series default
25421
25422 \begin_inset Newline newline
25423 \end_inset
25424
25425 as \SpecialChar TeX
25426  Code before the multicolumn inset.
25427  Replace 
25428 \series bold
25429 red
25430 \series default
25431  in this command by a color of your choice.
25432  You can use all pre- and self-defined colors.
25433  See the 
25434 \emph on
25435 EmbeddedObjects
25436 \emph default
25437  manual, section 
25438 \emph on
25439 Colored
25440 \begin_inset space ~
25441 \end_inset
25442
25443 Tables
25444 \emph default
25445  for more information about pre- and self-defined colors.
25446  To go back to the default color insert the command
25447 \begin_inset Newline newline
25448 \end_inset
25449
25450
25451 \series bold
25452
25453 \backslash
25454 renewcommand{
25455 \backslash
25456 columnseprulecolor}{
25457 \backslash
25458 normalcolor}
25459 \series default
25460
25461 \begin_inset Newline newline
25462 \end_inset
25463
25464 Here is the example with a cyan rule and 1
25465 \begin_inset space \thinspace{}
25466 \end_inset
25467
25468 cm column separation:
25469 \end_layout
25470
25471 \begin_layout Standard
25472 \begin_inset ERT
25473 status open
25474
25475 \begin_layout Plain Layout
25476
25477
25478 \backslash
25479 setlength{
25480 \backslash
25481 columnsep}{1cm}
25482 \end_layout
25483
25484 \begin_layout Plain Layout
25485
25486
25487 \backslash
25488 renewcommand{
25489 \backslash
25490 columnseprulecolor}{
25491 \backslash
25492 color{cyan}}
25493 \end_layout
25494
25495 \end_inset
25496
25497
25498 \end_layout
25499
25500 \begin_layout Standard
25501 \begin_inset Flex Multiple Columns
25502 status open
25503
25504 \begin_layout Plain Layout
25505
25506 \size small
25507 \begin_inset Quotes eld
25508 \end_inset
25509
25510 You're surprised to see me, sir,
25511 \begin_inset Quotes erd
25512 \end_inset
25513
25514  said he, in a strange, croaking voice.
25515 \end_layout
25516
25517 \begin_layout Plain Layout
25518
25519 \size small
25520 I acknowledged that I was.
25521 \end_layout
25522
25523 \begin_layout Plain Layout
25524
25525 \size small
25526 \begin_inset Quotes eld
25527 \end_inset
25528
25529 Well, I've a conscience, sir, and when I chanced to see you go into this
25530  house, as I came hobbling after you, I thought to myself, I'll just step
25531  in and see that kind gentleman, and tell him that if I was a bit gruff
25532  in my manner there was not any harm meant, and that I am much obliged to
25533  him for picking up my books.
25534 \begin_inset Quotes erd
25535 \end_inset
25536
25537
25538 \end_layout
25539
25540 \begin_layout Plain Layout
25541
25542 \size small
25543 \begin_inset Quotes eld
25544 \end_inset
25545
25546 You make too much of a trifle,
25547 \begin_inset Quotes erd
25548 \end_inset
25549
25550  said I.
25551  
25552 \begin_inset Quotes eld
25553 \end_inset
25554
25555 May I ask how you knew who I was?
25556 \begin_inset Quotes erd
25557 \end_inset
25558
25559
25560 \end_layout
25561
25562 \begin_layout Plain Layout
25563
25564 \size small
25565 \begin_inset Quotes eld
25566 \end_inset
25567
25568 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25569  you'll find my little bookshop at the corner of Church Street, and very
25570  happy to see you, I am sure.
25571  Maybe you collect yourself, sir.
25572  Here's 
25573 \noun on
25574 British
25575 \begin_inset space ~
25576 \end_inset
25577
25578 Birds
25579 \noun default
25580 , and 
25581 \noun on
25582 Catullus
25583 \noun default
25584 , and 
25585 \noun on
25586 The Holy War
25587 \noun default
25588 –a bargain, every one of them.
25589  With five volumes you could just fill that gap on that second shelf.
25590  It looks untidy, does it not, sir?
25591 \begin_inset Quotes erd
25592 \end_inset
25593
25594
25595 \end_layout
25596
25597 \end_inset
25598
25599
25600 \end_layout
25601
25602 \begin_layout Standard
25603 \begin_inset ERT
25604 status collapsed
25605
25606 \begin_layout Plain Layout
25607
25608
25609 \backslash
25610 setlength{
25611 \backslash
25612 columnseprule}{0pt}
25613 \end_layout
25614
25615 \begin_layout Plain Layout
25616
25617
25618 \backslash
25619 renewcommand{
25620 \backslash
25621 columnseprulecolor}{
25622 \backslash
25623 normalcolor}
25624 \end_layout
25625
25626 \end_inset
25627
25628
25629 \begin_inset Note Note
25630 status collapsed
25631
25632 \begin_layout Plain Layout
25633 go back to the default
25634 \end_layout
25635
25636 \end_inset
25637
25638
25639 \end_layout
25640
25641 \begin_layout Section
25642 Non-standard Paragraph Shapes
25643 \end_layout
25644
25645 \begin_layout Standard
25646 \noindent
25647 \SpecialChar LaTeX
25648  as well as any other text processor uses by default rectangular paragraphs.
25649  For special cases like for example posters, invitation cards or poems you
25650  can modify the paragraph shape to one of your choice.
25651  This can be done by using the \SpecialChar LaTeX
25652 -package 
25653 \series bold
25654 shapepar
25655 \series default
25656  which is loaded by using in the document settings the module 
25657 \family sans
25658 Custom paragraph shapes
25659 \family default
25660 .
25661 \end_layout
25662
25663 \begin_layout Subsection
25664 Predefined shapes
25665 \end_layout
25666
25667 \begin_layout Standard
25668
25669 \series bold
25670 shapepar
25671 \series default
25672  provides the following shapes:
25673 \end_layout
25674
25675 \begin_layout Standard
25676 \begin_inset Tabular
25677 <lyxtabular version="3" rows="13" columns="3">
25678 <features booktabs="true" islongtable="true" longtabularalignment="center">
25679 <column alignment="center" valignment="middle" width="16col%">
25680 <column alignment="center" valignment="middle" width="40col%">
25681 <column alignment="center" valignment="middle" width="35col%">
25682 <row endhead="true">
25683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25684 \begin_inset Text
25685
25686 \begin_layout Plain Layout
25687 Name
25688 \end_layout
25689
25690 \end_inset
25691 </cell>
25692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25693 \begin_inset Text
25694
25695 \begin_layout Plain Layout
25696 Description
25697 \end_layout
25698
25699 \end_inset
25700 </cell>
25701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25702 \begin_inset Text
25703
25704 \begin_layout Plain Layout
25705 Annotation
25706 \end_layout
25707
25708 \end_inset
25709 </cell>
25710 </row>
25711 <row>
25712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25713 \begin_inset Text
25714
25715 \begin_layout Plain Layout
25716 CDlabel
25717 \end_layout
25718
25719 \end_inset
25720 </cell>
25721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25722 \begin_inset Text
25723
25724 \begin_layout Plain Layout
25725 Circle with circular hole (in the size of a CD/DVD)
25726 \end_layout
25727
25728 \end_inset
25729 </cell>
25730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25731 \begin_inset Text
25732
25733 \begin_layout Plain Layout
25734 Cannot be scaled, take care there is not too much text
25735 \end_layout
25736
25737 \end_inset
25738 </cell>
25739 </row>
25740 <row>
25741 <cell alignment="center" valignment="top" topline="true" usebox="none">
25742 \begin_inset Text
25743
25744 \begin_layout Plain Layout
25745 Circle
25746 \end_layout
25747
25748 \end_inset
25749 </cell>
25750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25751 \begin_inset Text
25752
25753 \begin_layout Plain Layout
25754 Circle
25755 \end_layout
25756
25757 \end_inset
25758 </cell>
25759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25760 \begin_inset Text
25761
25762 \begin_layout Plain Layout
25763 Fragile, calculation might fail
25764 \end_layout
25765
25766 \end_inset
25767 </cell>
25768 </row>
25769 <row>
25770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25771 \begin_inset Text
25772
25773 \begin_layout Plain Layout
25774 Diamond
25775 \end_layout
25776
25777 \end_inset
25778 </cell>
25779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25780 \begin_inset Text
25781
25782 \begin_layout Plain Layout
25783 Rhomboid (symbolizing a 
25784 \begin_inset Quotes eld
25785 \end_inset
25786
25787 diamond
25788 \begin_inset Quotes erd
25789 \end_inset
25790
25791 )
25792 \end_layout
25793
25794 \end_inset
25795 </cell>
25796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25797 \begin_inset Text
25798
25799 \begin_layout Plain Layout
25800 -
25801 \end_layout
25802
25803 \end_inset
25804 </cell>
25805 </row>
25806 <row>
25807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25808 \begin_inset Text
25809
25810 \begin_layout Plain Layout
25811 Heart
25812 \end_layout
25813
25814 \end_inset
25815 </cell>
25816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25817 \begin_inset Text
25818
25819 \begin_layout Plain Layout
25820 Heart-like shape
25821 \end_layout
25822
25823 \end_inset
25824 </cell>
25825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25826 \begin_inset Text
25827
25828 \begin_layout Plain Layout
25829 -
25830 \end_layout
25831
25832 \end_inset
25833 </cell>
25834 </row>
25835 <row>
25836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25837 \begin_inset Text
25838
25839 \begin_layout Plain Layout
25840 Hexagon
25841 \end_layout
25842
25843 \end_inset
25844 </cell>
25845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25846 \begin_inset Text
25847
25848 \begin_layout Plain Layout
25849 Hexagon
25850 \end_layout
25851
25852 \end_inset
25853 </cell>
25854 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25855 \begin_inset Text
25856
25857 \begin_layout Plain Layout
25858 -
25859 \end_layout
25860
25861 \end_inset
25862 </cell>
25863 </row>
25864 <row>
25865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25866 \begin_inset Text
25867
25868 \begin_layout Plain Layout
25869 Nut
25870 \end_layout
25871
25872 \end_inset
25873 </cell>
25874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25875 \begin_inset Text
25876
25877 \begin_layout Plain Layout
25878 Nut for bolt (hexagon with circular hole)
25879 \end_layout
25880
25881 \end_inset
25882 </cell>
25883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25884 \begin_inset Text
25885
25886 \begin_layout Plain Layout
25887 -
25888 \end_layout
25889
25890 \end_inset
25891 </cell>
25892 </row>
25893 <row>
25894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25895 \begin_inset Text
25896
25897 \begin_layout Plain Layout
25898 Square
25899 \end_layout
25900
25901 \end_inset
25902 </cell>
25903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25904 \begin_inset Text
25905
25906 \begin_layout Plain Layout
25907 Square
25908 \end_layout
25909
25910 \end_inset
25911 </cell>
25912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25913 \begin_inset Text
25914
25915 \begin_layout Plain Layout
25916 -
25917 \end_layout
25918
25919 \end_inset
25920 </cell>
25921 </row>
25922 <row>
25923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25924 \begin_inset Text
25925
25926 \begin_layout Plain Layout
25927 Star
25928 \end_layout
25929
25930 \end_inset
25931 </cell>
25932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25933 \begin_inset Text
25934
25935 \begin_layout Plain Layout
25936 Five-point star
25937 \end_layout
25938
25939 \end_inset
25940 </cell>
25941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25942 \begin_inset Text
25943
25944 \begin_layout Plain Layout
25945 -
25946 \end_layout
25947
25948 \end_inset
25949 </cell>
25950 </row>
25951 <row>
25952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25953 \begin_inset Text
25954
25955 \begin_layout Plain Layout
25956 Candle
25957 \end_layout
25958
25959 \end_inset
25960 </cell>
25961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25962 \begin_inset Text
25963
25964 \begin_layout Plain Layout
25965 Burning candle
25966 \end_layout
25967
25968 \end_inset
25969 </cell>
25970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25971 \begin_inset Text
25972
25973 \begin_layout Plain Layout
25974 -
25975 \end_layout
25976
25977 \end_inset
25978 </cell>
25979 </row>
25980 <row>
25981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25982 \begin_inset Text
25983
25984 \begin_layout Plain Layout
25985 Drop down/up
25986 \end_layout
25987
25988 \end_inset
25989 </cell>
25990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25991 \begin_inset Text
25992
25993 \begin_layout Plain Layout
25994 Normal/reversed rain drop
25995 \end_layout
25996
25997 \end_inset
25998 </cell>
25999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26000 \begin_inset Text
26001
26002 \begin_layout Plain Layout
26003 Fragile, calculation might fail
26004 \end_layout
26005
26006 \end_inset
26007 </cell>
26008 </row>
26009 <row>
26010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26011 \begin_inset Text
26012
26013 \begin_layout Plain Layout
26014 \SpecialChar TeX
26015
26016 \end_layout
26017
26018 \end_inset
26019 </cell>
26020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26021 \begin_inset Text
26022
26023 \begin_layout Plain Layout
26024 The \SpecialChar TeX
26025  logo
26026 \end_layout
26027
26028 \end_inset
26029 </cell>
26030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26031 \begin_inset Text
26032
26033 \begin_layout Plain Layout
26034 -
26035 \end_layout
26036
26037 \end_inset
26038 </cell>
26039 </row>
26040 <row>
26041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26042 \begin_inset Text
26043
26044 \begin_layout Plain Layout
26045 Triangle up/down/
26046 \begin_inset Newline newline
26047 \end_inset
26048
26049 left/right
26050 \end_layout
26051
26052 \end_inset
26053 </cell>
26054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26055 \begin_inset Text
26056
26057 \begin_layout Plain Layout
26058 Triangles in different orientations
26059 \end_layout
26060
26061 \end_inset
26062 </cell>
26063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26064 \begin_inset Text
26065
26066 \begin_layout Plain Layout
26067 -
26068 \end_layout
26069
26070 \end_inset
26071 </cell>
26072 </row>
26073 </lyxtabular>
26074
26075 \end_inset
26076
26077
26078 \end_layout
26079
26080 \begin_layout Standard
26081 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26082 's pull-down box
26083  for environments in the toolbar.
26084 \end_layout
26085
26086 \begin_layout Standard
26087 \begin_inset Newpage newpage
26088 \end_inset
26089
26090
26091 \end_layout
26092
26093 \begin_layout Standard
26094 Here is an example paragraph in the shape of a nut:
26095 \end_layout
26096
26097 \begin_layout Standard
26098 \begin_inset VSpace bigskip
26099 \end_inset
26100
26101
26102 \end_layout
26103
26104 \begin_layout Nut
26105
26106 \lang latin
26107 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26108  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26109  voluptua.
26110  At vero eos et accusam et justo duo dolores et ea rebum.
26111  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26112  sit amet.
26113  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26114  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26115  voluptua.
26116 \end_layout
26117
26118 \begin_layout Standard
26119 \begin_inset VSpace bigskip
26120 \end_inset
26121
26122
26123 \end_layout
26124
26125 \begin_layout Standard
26126 \begin_inset Note Greyedout
26127 status open
26128
26129 \begin_layout Plain Layout
26130
26131 \series bold
26132 Note
26133 \series default
26134 : shapepar paragraphs cannot run over a page break.
26135 \end_layout
26136
26137 \end_inset
26138
26139
26140 \end_layout
26141
26142 \begin_layout Standard
26143 \begin_inset VSpace bigskip
26144 \end_inset
26145
26146
26147 \end_layout
26148
26149 \begin_layout Standard
26150
26151 \series bold
26152 shapepar
26153 \series default
26154  takes care that the shape will always be preserved, no matter how much
26155  text is in the paragraph.
26156  Therefore the paragraph size changes with the amount of contained text.
26157  This can lead to paragraph sizes exceeding the page margins.
26158  To demonstrate the size scaling, here is the same example paragraph but
26159  with twice as much text:
26160 \end_layout
26161
26162 \begin_layout Standard
26163 \begin_inset Newpage newpage
26164 \end_inset
26165
26166
26167 \end_layout
26168
26169 \begin_layout Nut
26170
26171 \lang latin
26172 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26173  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26174  voluptua.
26175  At vero eos et accusam et justo duo dolores et ea rebum.
26176  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26177  sit amet.
26178  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26179  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26180  voluptua.
26181  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26182  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26183  voluptua.
26184  At vero eos et accusam et justo duo dolores et ea rebum.
26185  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26186  sit amet.
26187  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26188  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26189  voluptua.
26190 \end_layout
26191
26192 \begin_layout Standard
26193 \begin_inset VSpace bigskip
26194 \end_inset
26195
26196
26197 \end_layout
26198
26199 \begin_layout Standard
26200 An exception is the shape 
26201 \family sans
26202 CDlabel
26203 \family default
26204 .
26205  It cannot be scaled because it must fit the size of a CD/DVD.
26206  Therefore the amount of text that fits into the shape is limited.
26207 \begin_inset Newline newline
26208 \end_inset
26209
26210 The 
26211 \family sans
26212 drop
26213 \family default
26214  shapes and the 
26215 \family sans
26216 circle
26217 \family default
26218  shape are fragile, meaning that the calculation of their size can fail,
26219  depending on the amount of text.
26220  You will then get the \SpecialChar LaTeX
26221  error 
26222 \begin_inset Quotes eld
26223 \end_inset
26224
26225 Arithmetic overflow
26226 \begin_inset Quotes erd
26227 \end_inset
26228
26229 .
26230  In this case one can try to remove or add some text; if nothing works one
26231  has to use another shape.
26232 \end_layout
26233
26234 \begin_layout Standard
26235 \begin_inset VSpace bigskip
26236 \end_inset
26237
26238
26239 \end_layout
26240
26241 \begin_layout Standard
26242 For shapes with tips you will maybe see that \SpecialChar LaTeX
26243 's hyphenation routine fails
26244  for text in the tips.
26245  Therefore it is often necessary to add hyphenation points 
26246 \family sans
26247 (
26248 \begin_inset Info
26249 type  "shortcut"
26250 arg   "specialchar-insert hyphenation"
26251 \end_inset
26252
26253
26254 \family default
26255 ) to the corresponding text parts.
26256 \end_layout
26257
26258 \begin_layout Standard
26259 \begin_inset VSpace bigskip
26260 \end_inset
26261
26262
26263 \end_layout
26264
26265 \begin_layout Standard
26266 Shapepar paragraphs are either always centered or placed on the page so
26267  that their left border touches the left page margin.
26268  You can therefore not use the paragraph dialog to align such paragraphs.
26269  A solution is to put the paragraph into a minipage or parbox and align
26270  the box.
26271  The problem is hereby to find the right width for the box.
26272  Because if it is too wide and you center the box, the paragraph is not
26273  centered too because it sticks at the left side of the box.
26274  So you might have to play a bit with the width until it fits.
26275  Here are two heart-shaped paragraphs, the first one is not aligned, the
26276  second one is right-aligned:
26277 \end_layout
26278
26279 \begin_layout Standard
26280 \begin_inset Newpage newpage
26281 \end_inset
26282
26283
26284 \end_layout
26285
26286 \begin_layout Heart
26287 \noindent
26288
26289 \lang latin
26290 Lo\SpecialChar softhyphen
26291 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26292  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26293  voluptua.
26294  At vero eos et accusam et justo duo dolores et ea rebum.
26295  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26296  sit amet.
26297 \end_layout
26298
26299 \begin_layout Standard
26300 \begin_inset VSpace bigskip
26301 \end_inset
26302
26303
26304 \end_layout
26305
26306 \begin_layout Standard
26307 \noindent
26308 \align right
26309 \begin_inset Box Frameless
26310 position "t"
26311 hor_pos "c"
26312 has_inner_box 1
26313 inner_pos "t"
26314 use_parbox 1
26315 use_makebox 0
26316 width "42col%"
26317 special "none"
26318 height "1in"
26319 height_special "totalheight"
26320 thickness "0.4pt"
26321 separation "3pt"
26322 shadowsize "4pt"
26323 framecolor "black"
26324 backgroundcolor "none"
26325 status open
26326
26327 \begin_layout Heart
26328 \noindent
26329
26330 \lang latin
26331 Lo\SpecialChar softhyphen
26332 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26333  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26334  voluptua.
26335  At vero eos et accusam et justo duo dolores et ea rebum.
26336  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26337  sit amet.
26338 \end_layout
26339
26340 \end_inset
26341
26342
26343 \end_layout
26344
26345 \begin_layout Subsection
26346 Custom shapes
26347 \end_layout
26348
26349 \begin_layout Standard
26350 You can define any shape you want.
26351  Doing this manually is a lot of work because every coordinate must be specified.
26352  But there is a way to let the computer calculate the coordinates:
26353 \end_layout
26354
26355 \begin_layout Enumerate
26356 Install the program 
26357 \begin_inset CommandInset href
26358 LatexCommand href
26359 name "Jpgfdraw"
26360 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26361
26362 \end_inset
26363
26364 .
26365 \end_layout
26366
26367 \begin_layout Enumerate
26368 In 
26369 \family sans
26370 Jpgfdraw
26371 \family default
26372  go to the menu 
26373 \family sans
26374 TeX/LaTeX\SpecialChar menuseparator
26375 Settings\SpecialChar menuseparator
26376 Set Normal Size
26377 \family default
26378  and select the font size you are using in your document.
26379  For example this document uses the size 12
26380 \begin_inset space \thinspace{}
26381 \end_inset
26382
26383 pt.
26384 \end_layout
26385
26386 \begin_layout Enumerate
26387 Draw a shape.
26388 \end_layout
26389
26390 \begin_layout Enumerate
26391 Use the menu 
26392 \family sans
26393 TeX/LaTeX\SpecialChar menuseparator
26394 Shapepar
26395 \family default
26396  to export the shape to coordinates.
26397  In the appearing dialog use either the outline of your shape for the coordinate
26398 s or the path itself.
26399 \begin_inset Foot
26400 status collapsed
26401
26402 \begin_layout Plain Layout
26403 For more information see 
26404 \begin_inset CommandInset href
26405 LatexCommand href
26406 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26407
26408 \end_inset
26409
26410
26411 \end_layout
26412
26413 \end_inset
26414
26415
26416 \end_layout
26417
26418 \begin_layout Standard
26419 The coordinates are written into a \SpecialChar TeX
26420  file.
26421  To use it for your \SpecialChar LyX
26422  document
26423 \end_layout
26424
26425 \begin_layout Enumerate
26426 Place the cursor before the first character of your paragraph (or into a
26427  new empty one).
26428 \end_layout
26429
26430 \begin_layout Enumerate
26431 Open in \SpecialChar LyX
26432  the menu 
26433 \family sans
26434 Insert\SpecialChar menuseparator
26435 File\SpecialChar menuseparator
26436 Child
26437 \begin_inset space ~
26438 \end_inset
26439
26440 Document
26441 \family default
26442 , select the file and use 
26443 \family sans
26444 Input
26445 \family default
26446  as 
26447 \family sans
26448 Include Type.
26449 \end_layout
26450
26451 \begin_layout Standard
26452 \begin_inset VSpace defskip
26453 \end_inset
26454
26455
26456 \end_layout
26457
26458 \begin_layout Standard
26459 \begin_inset Note Greyedout
26460 status open
26461
26462 \begin_layout Plain Layout
26463
26464 \series bold
26465 Note
26466 \series default
26467 : The changed shape only applies to the current paragraph; everything is
26468  reset to normal for the next paragraph.
26469  Therefore the shape definition file must be input into every paragraph
26470  with the desired shape.
26471 \end_layout
26472
26473 \end_inset
26474
26475
26476 \end_layout
26477
26478 \begin_layout Standard
26479 \begin_inset VSpace bigskip
26480 \end_inset
26481
26482
26483 \end_layout
26484
26485 \begin_layout Standard
26486 Here is an example:
26487 \end_layout
26488
26489 \begin_layout Standard
26490 \begin_inset VSpace bigskip
26491 \end_inset
26492
26493
26494 \end_layout
26495
26496 \begin_layout Standard
26497 \begin_inset CommandInset include
26498 LatexCommand input
26499 filename "SpecialParagraphShape.tex"
26500
26501 \end_inset
26502
26503
26504 \lang latin
26505 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26506  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26507  voluptua.
26508  At vero eos et accusam et justo duo dolores et ea rebum.
26509  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26510  sit amet.
26511  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26512  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26513  voluptua.
26514 \end_layout
26515
26516 \begin_layout Standard
26517 \begin_inset VSpace bigskip
26518 \end_inset
26519
26520
26521 \end_layout
26522
26523 \begin_layout Standard
26524
26525 \series bold
26526 A tip:
26527 \series default
26528  to draw complexer shapes in 
26529 \family sans
26530 Jpgfdraw
26531 \family default
26532  you can draw the shape in a program of your choice and import the resulting
26533  image to 
26534 \family sans
26535 Jpgfdraw
26536 \family default
26537 .
26538  Then you only need to draw a line or spline along the outline of the image.
26539 \end_layout
26540
26541 \begin_layout Standard
26542 \begin_inset VSpace bigskip
26543 \end_inset
26544
26545
26546 \end_layout
26547
26548 \begin_layout Standard
26549 The module 
26550 \family sans
26551 Custom paragraph shapes
26552 \family default
26553  also provides the two commands 
26554 \family sans
26555 shapepar
26556 \family default
26557  and 
26558 \family sans
26559 Shapepar
26560 \family default
26561  which can be used to define custom shapes coordinate by coordinate.
26562 \begin_inset Foot
26563 status collapsed
26564
26565 \begin_layout Plain Layout
26566 These commands are internally used for all shapes described here.
26567 \end_layout
26568
26569 \end_inset
26570
26571  For information how these styles are used and about further customization
26572  possibilities, have a look at the documentation of the package 
26573 \series bold
26574 shapepar
26575 \series default
26576
26577 \begin_inset CommandInset citation
26578 LatexCommand cite
26579 key "shapepar"
26580
26581 \end_inset
26582
26583 .
26584 \end_layout
26585
26586 \begin_layout Bibliography
26587 \begin_inset CommandInset bibitem
26588 LatexCommand bibitem
26589 key "multicol"
26590
26591 \end_inset
26592
26593 Documentation of the \SpecialChar LaTeX
26594 -package 
26595 \begin_inset CommandInset href
26596 LatexCommand href
26597 name "multicol"
26598 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26599
26600 \end_inset
26601
26602
26603 \end_layout
26604
26605 \begin_layout Bibliography
26606 \begin_inset CommandInset bibitem
26607 LatexCommand bibitem
26608 key "shapepar"
26609
26610 \end_inset
26611
26612 Documentation of the \SpecialChar LaTeX
26613 -package 
26614 \begin_inset CommandInset href
26615 LatexCommand href
26616 name "shapepar"
26617 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
26618
26619 \end_inset
26620
26621
26622 \end_layout
26623
26624 \end_body
26625 \end_document