]> git.lyx.org Git - features.git/blob - lib/doc/Additional.lyx
Additional.lyx: remove sloppypar
[features.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 \begin_local_layout
51 Format 57
52 InsetLayout Flex:MenuItem
53 LyxType               charstyle
54 LabelString          menu
55 LatexType           command
56 LatexName          menuitem
57 Font
58 Family              Sans
59 EndFont
60 Preamble
61 \newcommand*{\menuitem}[1]{{\sffamily #1}}
62 EndPreamble
63 ResetsFont true
64 End
65 \end_local_layout
66 \language english
67 \language_package default
68 \inputencoding auto
69 \fontencoding global
70 \font_roman "default" "default"
71 \font_sans "default" "default"
72 \font_typewriter "default" "default"
73 \font_math "auto" "auto"
74 \font_default_family default
75 \use_non_tex_fonts false
76 \font_sc false
77 \font_osf false
78 \font_sf_scale 100 100
79 \font_tt_scale 100 100
80 \graphics default
81 \default_output_format default
82 \output_sync 0
83 \bibtex_command default
84 \index_command default
85 \paperfontsize 12
86 \spacing single
87 \use_hyperref true
88 \pdf_title "LyX's Additional Features manual"
89 \pdf_author "LyX Team"
90 \pdf_subject "LyX's additional features documentation"
91 \pdf_keywords "LyX, Documentation, Additional"
92 \pdf_bookmarks true
93 \pdf_bookmarksnumbered true
94 \pdf_bookmarksopen false
95 \pdf_bookmarksopenlevel 1
96 \pdf_breaklinks false
97 \pdf_pdfborder false
98 \pdf_colorlinks true
99 \pdf_backref false
100 \pdf_pdfusetitle false
101 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
102 \papersize a4paper
103 \use_geometry false
104 \use_package amsmath 1
105 \use_package amssymb 1
106 \use_package cancel 0
107 \use_package esint 0
108 \use_package mathdots 1
109 \use_package mathtools 0
110 \use_package mhchem 1
111 \use_package stackrel 0
112 \use_package stmaryrd 0
113 \use_package undertilde 0
114 \cite_engine basic
115 \cite_engine_type default
116 \biblio_style plain
117 \use_bibtopic false
118 \use_indices false
119 \paperorientation portrait
120 \suppress_date false
121 \justification true
122 \use_refstyle 0
123 \notefontcolor #0000ff
124 \index Index
125 \shortcut idx
126 \color #008000
127 \end_index
128 \secnumdepth 3
129 \tocdepth 3
130 \paragraph_separation indent
131 \paragraph_indentation default
132 \quotes_language english
133 \papercolumns 1
134 \papersides 2
135 \paperpagestyle headings
136 \tracking_changes false
137 \output_changes false
138 \html_math_output 0
139 \html_css_as_file 0
140 \html_be_strict true
141 \end_header
142
143 \begin_body
144
145 \begin_layout Title
146 Additional \SpecialChar LyX
147  Features
148 \end_layout
149
150 \begin_layout Subtitle
151 Version 2.2.x
152 \end_layout
153
154 \begin_layout Author
155 by the \SpecialChar LyX
156  Team
157 \begin_inset Foot
158 status collapsed
159
160 \begin_layout Plain Layout
161 \noindent
162 Principal maintainer of this file is
163 \noun on
164  Richard Heck
165 \noun default
166 .
167  If you have comments or error corrections, please send them to the \SpecialChar LyX
168  Documentati
169 on mailing list, 
170 \begin_inset Flex Code
171 status collapsed
172
173 \begin_layout Plain Layout
174 \noindent
175 <lyx-docs@lists.lyx.org>
176 \end_layout
177
178 \end_inset
179
180 .
181 \end_layout
182
183 \end_inset
184
185
186 \end_layout
187
188 \begin_layout Standard
189 \begin_inset CommandInset toc
190 LatexCommand tableofcontents
191
192 \end_inset
193
194
195 \end_layout
196
197 \begin_layout Chapter
198 Introduction
199 \end_layout
200
201 \begin_layout Standard
202 This manual is essentially Part II of the 
203 \emph on
204 User's Guide\SpecialChar endofsentence
205
206 \emph default
207  The reason for separating the two documents is simple: the 
208 \emph on
209 User's Guide
210 \emph default
211  is already quite lengthy, and it contains information on all of the basic
212  features one needs to know in order to prepare most documents.
213  However, the \SpecialChar LyX
214  Team has worked to make \SpecialChar LyX
215  extensible through various configuration
216  files and external packages.
217  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
218  package, you can
219  create a layout file (or module) for it without having to alter \SpecialChar LyX
220  itself.
221  We've already had contributions of several new features this way, and some
222  of them are documented here.
223  There are also some more `advanced' features, such as how to control the
224  presentation of bibliographies and how to work with multi-part documents,
225  that are not covered in the 
226 \emph on
227 User's Guide
228 \emph default
229  and are discussed here.
230 \end_layout
231
232 \begin_layout Standard
233 This manual also documents some special features, like fax support, version
234  control, and SGML support, which require additional software to work properly.
235  There is also a chapter on \SpecialChar LyX
236 's support for HTML.
237  And lastly, there's a chapter of \SpecialChar LaTeX
238  tools and tips, things you can use to
239  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
240 .
241  After all, \SpecialChar LyX
242  
243 \emph on
244 is
245 \emph default
246  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
247  features.
248 \end_layout
249
250 \begin_layout Standard
251 If you haven't read the 
252 \emph on
253 Introduction
254 \emph default
255  yet, you are definitely in the wrong manual.
256  The 
257 \emph on
258 Introduction
259 \emph default
260  is the first place to go, since it describes the notation and format of
261  all of the manuals.
262  You should also be thoroughly familiar with the 
263 \emph on
264 User's Guide
265 \emph default
266  and all of the basic features of \SpecialChar LyX
267  before attempting to read this one.
268 \end_layout
269
270 \begin_layout Standard
271 Since many of the topics in this manual depend heavily on \SpecialChar LyX
272 's interaction
273  with \SpecialChar LaTeX
274 , this first chapter covers the inner workings of \SpecialChar LyX
275  and how to direct
276  \SpecialChar LyX
277  to generate exactly the \SpecialChar LaTeX
278  code you want.
279  It is obviously for more seasoned \SpecialChar LyX
280  users.
281 \end_layout
282
283 \begin_layout Chapter
284 \SpecialChar LyX
285  and \SpecialChar LaTeX
286
287 \end_layout
288
289 \begin_layout Section
290 How \SpecialChar LyX
291  Uses \SpecialChar LaTeX
292
293 \end_layout
294
295 \begin_layout Standard
296 This chapter is for both \SpecialChar TeX
297 -nicians and the \SpecialChar LaTeX
298 -curious.
299  In it, we'll explain how \SpecialChar LyX
300  and \SpecialChar LaTeX
301  work together to produce printable output.
302  This is the only place in any of the manuals where we assume you know something
303  about \SpecialChar LaTeX
304 .
305 \end_layout
306
307 \begin_layout Standard
308 At one time, \SpecialChar LyX
309  was called a 
310 \begin_inset Quotes eld
311 \end_inset
312
313 WYSIWYM frontend to \SpecialChar LaTeX
314 ,
315 \begin_inset Quotes erd
316 \end_inset
317
318  but that's no longer true.
319  There are frontends to \SpecialChar LaTeX
320  out there.
321 \begin_inset Foot
322 status collapsed
323
324 \begin_layout Plain Layout
325 Some familar ones are \SpecialChar TeX
326 maker and kile, on Linux, and \SpecialChar TeX
327 shop, OSX.
328  There are also the \SpecialChar LaTeX
329  modes for vi and emacs, of course.
330 \end_layout
331
332 \end_inset
333
334  These are basically text editors with the ability to run \SpecialChar LaTeX
335  and mark any
336  errors in the file you're editing.
337  Although \SpecialChar LyX
338  
339 \emph on
340 is
341 \emph default
342  an editor, and it 
343 \emph on
344 does
345 \emph default
346  run \SpecialChar LaTeX
347 , and it also indicates errors in the file, it also does much, much
348  more.
349  For one thing, you don't need to know \SpecialChar LaTeX
350  to use \SpecialChar LyX
351  effectively.
352  And \SpecialChar LyX
353  has added its own extensions to \SpecialChar LaTeX
354 .
355  Try the following sometime: select 
356 \begin_inset Flex MenuItem
357 status collapsed
358
359 \begin_layout Plain Layout
360 Export\SpecialChar menuseparator
361 \SpecialChar LaTeX
362
363 \end_layout
364
365 \end_inset
366
367  from the 
368 \begin_inset Flex MenuItem
369 status collapsed
370
371 \begin_layout Plain Layout
372 File
373 \end_layout
374
375 \end_inset
376
377  menu (or 
378 \begin_inset Flex MenuItem
379 status collapsed
380
381 \begin_layout Plain Layout
382 View\SpecialChar menuseparator
383 Source
384 \begin_inset space ~
385 \end_inset
386
387 Pane
388 \end_layout
389
390 \end_inset
391
392 ), then look at the preamble of the resulting 
393 \begin_inset Flex Code
394 status collapsed
395
396 \begin_layout Plain Layout
397 .tex
398 \end_layout
399
400 \end_inset
401
402  file.
403  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
404 .
405  These macros are defined automatically, according to the features you use
406  in the document.
407 \end_layout
408
409 \begin_layout Standard
410 There are several commands that automatically invoke \SpecialChar LaTeX
411 .
412  They are:
413 \end_layout
414
415 \begin_layout Itemize
416 \begin_inset Flex MenuItem
417 status collapsed
418
419 \begin_layout Plain Layout
420 Document\SpecialChar menuseparator
421 View
422 \end_layout
423
424 \end_inset
425
426
427 \end_layout
428
429 \begin_layout Itemize
430 \begin_inset Flex MenuItem
431 status collapsed
432
433 \begin_layout Plain Layout
434 Document\SpecialChar menuseparator
435 Update
436 \end_layout
437
438 \end_inset
439
440
441 \end_layout
442
443 \begin_layout Itemize
444 \begin_inset Flex MenuItem
445 status collapsed
446
447 \begin_layout Plain Layout
448 File\SpecialChar menuseparator
449 Print
450 \end_layout
451
452 \end_inset
453
454
455 \end_layout
456
457 \begin_layout Itemize
458 \begin_inset Flex MenuItem
459 status collapsed
460
461 \begin_layout Plain Layout
462 File\SpecialChar menuseparator
463 Fax
464 \end_layout
465
466 \end_inset
467
468
469 \end_layout
470
471 \begin_layout Standard
472 They will only invoke \SpecialChar LaTeX
473  if the file has changed since the last time \SpecialChar LaTeX
474  was
475  run.
476  
477 \end_layout
478
479 \begin_layout Standard
480 When \SpecialChar LyX
481  runs \SpecialChar LaTeX
482  on the file you're editing, it performs these steps:
483 \end_layout
484
485 \begin_layout Enumerate
486 Convert the document to \SpecialChar LaTeX
487  and save to a file with the extension 
488 \begin_inset Flex Code
489 status collapsed
490
491 \begin_layout Plain Layout
492 .tex
493 \end_layout
494
495 \end_inset
496
497  in place of 
498 \begin_inset Flex Code
499 status collapsed
500
501 \begin_layout Plain Layout
502 .lyx
503 \end_layout
504
505 \end_inset
506
507 .
508 \end_layout
509
510 \begin_layout Enumerate
511 Run \SpecialChar LaTeX
512  on the 
513 \begin_inset Flex Code
514 status collapsed
515
516 \begin_layout Plain Layout
517 .tex
518 \end_layout
519
520 \end_inset
521
522  file (maybe several times), and run any other commands (such as 
523 \begin_inset Flex Code
524 status collapsed
525
526 \begin_layout Plain Layout
527 bibtex
528 \end_layout
529
530 \end_inset
531
532  or 
533 \begin_inset Flex Code
534 status collapsed
535
536 \begin_layout Plain Layout
537 makeindex
538 \end_layout
539
540 \end_inset
541
542 ) needed to compile the \SpecialChar LaTeX
543  file.
544 \end_layout
545
546 \begin_layout Enumerate
547 If there are any errors, show the error log.
548 \end_layout
549
550 \begin_layout Standard
551 If you have run \SpecialChar LaTeX
552  using 
553 \begin_inset Flex MenuItem
554 status collapsed
555
556 \begin_layout Plain Layout
557 View
558 \bar under
559 \SpecialChar menuseparator
560
561 \bar default
562 DVI
563 \end_layout
564
565 \end_inset
566
567 , \SpecialChar LyX
568  then runs a DVI viewer to display the DVI-file.
569  If you have used 
570 \begin_inset Flex MenuItem
571 status collapsed
572
573 \begin_layout Plain Layout
574 View
575 \bar under
576 \SpecialChar menuseparator
577
578 \bar default
579 PostScript
580 \end_layout
581
582 \end_inset
583
584 , \SpecialChar LyX
585  performs further steps:
586 \end_layout
587
588 \begin_layout Itemize
589 Run 
590 \begin_inset Flex Code
591 status collapsed
592
593 \begin_layout Plain Layout
594 dvips
595 \end_layout
596
597 \end_inset
598
599  to convert the DVI file to PostScript.
600 \end_layout
601
602 \begin_layout Itemize
603 Run a PostScript viewer, such as 
604 \begin_inset Flex Code
605 status collapsed
606
607 \begin_layout Plain Layout
608 ghostview
609 \end_layout
610
611 \end_inset
612
613 , to display the PostScript file.
614 \end_layout
615
616 \begin_layout Standard
617 \SpecialChar LyX
618  does similar things when viewing, or exporting, other formats.
619 \end_layout
620
621 \begin_layout Section
622 Translating \SpecialChar LaTeX
623  files into \SpecialChar LyX
624
625 \end_layout
626
627 \begin_layout Standard
628 You can import a \SpecialChar LaTeX
629  file into \SpecialChar LyX
630  by using the 
631 \begin_inset Flex MenuItem
632 status collapsed
633
634 \begin_layout Plain Layout
635 File\SpecialChar menuseparator
636 Import\SpecialChar menuseparator
637 \SpecialChar LaTeX
638
639 \end_layout
640
641 \end_inset
642
643  command in \SpecialChar LyX
644 .
645  This will call a program named 
646 \begin_inset Flex Code
647 status collapsed
648
649 \begin_layout Plain Layout
650 tex2lyx
651 \end_layout
652
653 \end_inset
654
655  which will create a file 
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 foo.lyx
661 \end_layout
662
663 \end_inset
664
665  from the file 
666 \begin_inset Flex Code
667 status collapsed
668
669 \begin_layout Plain Layout
670 foo.tex
671 \end_layout
672
673 \end_inset
674
675 .
676  \SpecialChar LyX
677  will then open that file.
678 \begin_inset Foot
679 status collapsed
680
681 \begin_layout Plain Layout
682 \begin_inset Flex Code
683 status collapsed
684
685 \begin_layout Plain Layout
686 tex2lyx
687 \end_layout
688
689 \end_inset
690
691  can also be run from the command line, of course.
692 \end_layout
693
694 \end_inset
695
696
697 \end_layout
698
699 \begin_layout Standard
700 \begin_inset Flex Code
701 status collapsed
702
703 \begin_layout Plain Layout
704 tex2lyx
705 \end_layout
706
707 \end_inset
708
709  will translate most legal \SpecialChar LaTeX
710 , but not everything.
711  It will put things it doesn't understand into \SpecialChar TeX
712  code, so after translating
713  a file with 
714 \begin_inset Flex Code
715 status collapsed
716
717 \begin_layout Plain Layout
718 tex2lyx
719 \end_layout
720
721 \end_inset
722
723 , you can look for \SpecialChar TeX
724  code and hand-edit it until it looks right.
725 \end_layout
726
727 \begin_layout Standard
728 If you don't know what \SpecialChar TeX
729  code is, read the next section.
730 \end_layout
731
732 \begin_layout Section
733 \begin_inset CommandInset label
734 LatexCommand label
735 name "sec:Inserting-TeX-Code"
736
737 \end_inset
738
739 Inserting \SpecialChar TeX
740  Code into \SpecialChar LyX
741  Documents 
742 \end_layout
743
744 \begin_layout Standard
745 Anything you can do in \SpecialChar LaTeX
746  you can do in \SpecialChar LyX
747 , for a very simple reason: You can
748  always insert \SpecialChar TeX
749  code into any \SpecialChar LyX
750  document.
751  \SpecialChar LyX
752  cannot, and will never be able to, display every possible \SpecialChar LaTeX
753  construct.
754  If ever you need to insert \SpecialChar LaTeX
755  commands into your \SpecialChar LyX
756  document, you can use the
757  
758 \begin_inset Flex Code
759 status collapsed
760
761 \begin_layout Plain Layout
762 \SpecialChar TeX
763  Code
764 \end_layout
765
766 \end_inset
767
768  box, which you can insert into your document with 
769 \begin_inset Flex MenuItem
770 status collapsed
771
772 \begin_layout Plain Layout
773 Insert\SpecialChar menuseparator
774
775 \family sans
776 TeX
777 \family default
778  Code
779 \end_layout
780
781 \end_inset
782
783  or the keyboard shortcut 
784 \begin_inset Info
785 type  "shortcut"
786 arg   "ert-insert"
787 \end_inset
788
789 .
790 \end_layout
791
792 \begin_layout Standard
793 Here's an example of inserting \SpecialChar LaTeX
794  commands in a \SpecialChar LyX
795  document.
796  The code looks like this:
797 \end_layout
798
799 \begin_layout LyX-Code
800
801 \backslash
802 begin{tabular}{ll}
803 \begin_inset Newline newline
804 \end_inset
805
806
807 \backslash
808 begin{minipage}{5cm}
809 \begin_inset Newline newline
810 \end_inset
811
812 This is an example of a minipage environment.
813  You 
814 \begin_inset Newline newline
815 \end_inset
816
817 can put nearly everything in it, even (non-floating) 
818 \begin_inset Newline newline
819 \end_inset
820
821 figures and tables.
822  
823 \begin_inset Newline newline
824 \end_inset
825
826
827 \backslash
828 end{minipage}
829 \begin_inset Newline newline
830 \end_inset
831
832 &
833 \begin_inset Newline newline
834 \end_inset
835
836
837 \backslash
838 begin{minipage}{5cm}
839 \begin_inset Newline newline
840 \end_inset
841
842
843 \backslash
844 begin{verbatim}
845 \begin_inset Newline newline
846 \end_inset
847
848
849 \backslash
850 begin{minipage}{5cm}
851 \begin_inset Newline newline
852 \end_inset
853
854 This ...
855  
856 \begin_inset Newline newline
857 \end_inset
858
859
860 \backslash
861 end{minipage}
862 \begin_inset Newline newline
863 \end_inset
864
865
866 \backslash
867 end{verbatim}
868 \begin_inset Newline newline
869 \end_inset
870
871
872 \backslash
873 end{minipage}
874 \begin_inset Newline newline
875 \end_inset
876
877
878 \backslash
879 end{tabular}
880 \end_layout
881
882 \begin_layout LyX-Code
883
884 \end_layout
885
886 \begin_layout Standard
887 The 
888 \begin_inset Flex Code
889 status collapsed
890
891 \begin_layout Plain Layout
892 \SpecialChar TeX
893  Code
894 \end_layout
895
896 \end_inset
897
898  box containing this text is directly after this paragraph.
899  Those of you reading the manual in \SpecialChar LyX
900  will only see the \SpecialChar TeX
901  code inset.
902  Those reading a printed version of the manuals will see the actual results:
903 \begin_inset VSpace bigskip
904 \end_inset
905
906
907 \end_layout
908
909 \begin_layout Standard
910 \begin_inset ERT
911 status open
912
913 \begin_layout Plain Layout
914
915
916 \backslash
917 begin{tabular}{ll}
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 begin{minipage}{5cm}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929 This is an example of a minipage environment.
930  You can put nearly everything in it, even (non-floating) figures and tables.
931  
932 \end_layout
933
934 \begin_layout Plain Layout
935
936
937 \backslash
938 end{minipage}
939 \end_layout
940
941 \begin_layout Plain Layout
942
943 &
944 \end_layout
945
946 \begin_layout Plain Layout
947
948
949 \backslash
950 begin{minipage}{5cm}
951 \end_layout
952
953 \begin_layout Plain Layout
954
955
956 \backslash
957 begin{verbatim}
958 \end_layout
959
960 \begin_layout Plain Layout
961
962
963 \backslash
964 begin{minipage}{5cm}
965 \end_layout
966
967 \begin_layout Plain Layout
968
969 This ...
970  
971 \end_layout
972
973 \begin_layout Plain Layout
974
975
976 \backslash
977 end{minipage}
978 \end_layout
979
980 \begin_layout Plain Layout
981
982
983 \backslash
984 end{verbatim}
985 \end_layout
986
987 \begin_layout Plain Layout
988
989
990 \backslash
991 end{minipage}
992 \end_layout
993
994 \begin_layout Plain Layout
995
996
997 \backslash
998 end{tabular}
999 \end_layout
1000
1001 \end_inset
1002
1003
1004 \begin_inset VSpace bigskip
1005 \end_inset
1006
1007
1008 \end_layout
1009
1010 \begin_layout Standard
1011 In addition to using \SpecialChar TeX
1012  code, you can also create a separate file containing
1013  some complex \SpecialChar LaTeX
1014  structure and then use 
1015 \begin_inset Flex MenuItem
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 Insert\SpecialChar menuseparator
1020 Child
1021 \begin_inset space ~
1022 \end_inset
1023
1024 Document
1025 \end_layout
1026
1027 \end_inset
1028
1029  to include your file (you should select the type 
1030 \begin_inset Flex Code
1031 status collapsed
1032
1033 \begin_layout Plain Layout
1034 Input
1035 \end_layout
1036
1037 \end_inset
1038
1039 ).
1040  We recommend that you only do this if you have a 
1041 \begin_inset Flex Code
1042 status collapsed
1043
1044 \begin_layout Plain Layout
1045 .tex
1046 \end_layout
1047
1048 \end_inset
1049
1050  file which you 
1051 \emph on
1052 know
1053 \emph default
1054  works already.
1055  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1056  errors.
1057 \end_layout
1058
1059 \begin_layout Standard
1060 There are a few last points to emphasize:
1061 \end_layout
1062
1063 \begin_layout Itemize
1064 \SpecialChar LyX
1065  
1066 \emph on
1067 does not
1068 \emph default
1069  check if your \SpecialChar LaTeX
1070  code is correct.
1071 \end_layout
1072
1073 \begin_layout Itemize
1074 Beware of reinventing the wheel.
1075 \end_layout
1076
1077 \begin_layout Standard
1078 On that last point, \SpecialChar LyX
1079  does have quite a few features tucked into it, and
1080  more are coming.
1081  Be sure to check the manuals to make sure that \SpecialChar LyX
1082  doesn't have such-and-such
1083  feature before you decide you have to do it by hand.
1084  Moreover, there are numerous \SpecialChar LaTeX
1085  packages out there to do all sorts of things,
1086  from labels to envelopes to fancy multipage tables.
1087  Check out 
1088 \begin_inset CommandInset href
1089 LatexCommand href
1090 name "CTAN"
1091 target "http://www.ctan.org/"
1092
1093 \end_inset
1094
1095  for details.
1096 \end_layout
1097
1098 \begin_layout Standard
1099 If you do need to do some wild and fancy things within your document, be
1100  sure to check out a good \SpecialChar LaTeX
1101  book for assistance.
1102  There are a number of them listed in the bibliography of the 
1103 \emph on
1104 User's Guide
1105 \emph default
1106 .
1107 \end_layout
1108
1109 \begin_layout Section
1110 \SpecialChar LyX
1111  and the \SpecialChar LaTeX
1112  Preamble
1113 \end_layout
1114
1115 \begin_layout Subsection
1116 About the \SpecialChar LaTeX
1117  Preamble
1118 \end_layout
1119
1120 \begin_layout Standard
1121 If you already know \SpecialChar LaTeX
1122 , there is no need to explain here what the preamble
1123  is good for.
1124  If you don't, the following will give you some ideas—we recommend again
1125  that you consult a \SpecialChar LaTeX
1126  book for further information.
1127  In any case, you should read the points below, because they explain what
1128  you can do and what you don't need to do in the \SpecialChar LaTeX
1129  preamble of a \SpecialChar LyX
1130  document.
1131 \end_layout
1132
1133 \begin_layout Standard
1134 The \SpecialChar LaTeX
1135  preamble comes at the very beginning of a document, 
1136 \emph on
1137 before
1138 \emph default
1139  the text.
1140  It serves to:
1141 \end_layout
1142
1143 \begin_layout Itemize
1144 Declare the document class.
1145  
1146 \begin_inset Newline newline
1147 \end_inset
1148
1149 \SpecialChar LyX
1150  already does this for you.
1151  If you're a seasoned \SpecialChar LaTeX
1152 -nician, and you have a custom document class you
1153  want to use, check out the 
1154 \emph on
1155 Customization Manual
1156 \emph default
1157  for information on how to make \SpecialChar LyX
1158  interface to it.
1159 \end_layout
1160
1161 \begin_layout Itemize
1162 Declare the usage of packages.
1163  
1164 \begin_inset Newline newline
1165 \end_inset
1166
1167 \SpecialChar LaTeX
1168  packages provide special commands, which are only available within a document
1169  when the package has been declared in the preamble.
1170  In addition to providing special commands, the inclusion of a package can
1171  change the document.
1172  For example, the package 
1173 \begin_inset Flex Code
1174 status collapsed
1175
1176 \begin_layout Plain Layout
1177 indentfirst
1178 \end_layout
1179
1180 \end_inset
1181
1182  forces all paragraphs to be indented.
1183  There are other packages for labels, envelopes, margins, etc.
1184  
1185 \end_layout
1186
1187 \begin_layout Itemize
1188 Set counters, variables, lengths and widths.
1189  
1190 \begin_inset Newline newline
1191 \end_inset
1192
1193 There are several \SpecialChar LaTeX
1194  counters and variables that 
1195 \emph on
1196 must
1197 \emph default
1198  be set globally from within the preamble in order to have the desired effect.
1199  (There are variables that you can set and reset inside the document, too.)
1200  Margins are a good example of something that must be set in the preamble.
1201  Another example is the label format for lists.
1202  You can actually set these just about anywhere, but it's best to do it
1203  just once, inside the preamble.
1204 \end_layout
1205
1206 \begin_layout Itemize
1207 Declare user defined commands (with 
1208 \begin_inset Flex Code
1209 status collapsed
1210
1211 \begin_layout Plain Layout
1212
1213 \backslash
1214 newcommand
1215 \end_layout
1216
1217 \end_inset
1218
1219  or 
1220 \begin_inset Flex Code
1221 status collapsed
1222
1223 \begin_layout Plain Layout
1224
1225 \backslash
1226 renewcommand
1227 \end_layout
1228
1229 \end_inset
1230
1231 ).
1232 \begin_inset Newline newline
1233 \end_inset
1234
1235 These are abbreviations for \SpecialChar LaTeX
1236  commands which appear very often inside a document.
1237  Although the preamble is a good place to declare such commands, they 
1238 \emph on
1239 can
1240 \emph default
1241  be declared anywhere (before they are used for the first time, of course).
1242  This can be useful if there is a lot of raw \SpecialChar LaTeX
1243  code in your document, which
1244  normally should not be the case.
1245 \end_layout
1246
1247 \begin_layout Standard
1248 \SpecialChar LyX
1249  adds its own set of definitions to the preamble of the 
1250 \begin_inset Flex Code
1251 status collapsed
1252
1253 \begin_layout Plain Layout
1254 .tex
1255 \end_layout
1256
1257 \end_inset
1258
1259  file it produces.
1260  This makes \SpecialChar LaTeX
1261  files generated by \SpecialChar LyX
1262  portable.
1263 \end_layout
1264
1265 \begin_layout Subsection
1266 Changing the Preamble
1267 \end_layout
1268
1269 \begin_layout Standard
1270 The commands which \SpecialChar LyX
1271  adds to the preamble of a \SpecialChar LaTeX
1272  file are fixed; you can't
1273  change them without patching \SpecialChar LyX
1274  itself.
1275  You can, however, add your own stuff to the preamble by selecting 
1276 \begin_inset Flex MenuItem
1277 status collapsed
1278
1279 \begin_layout Plain Layout
1280 \SpecialChar LaTeX
1281
1282 \begin_inset space ~
1283 \end_inset
1284
1285 Preamble
1286 \end_layout
1287
1288 \end_inset
1289
1290  in the 
1291 \begin_inset Flex MenuItem
1292 status collapsed
1293
1294 \begin_layout Plain Layout
1295 Document\SpecialChar menuseparator
1296 Settings
1297 \end_layout
1298
1299 \end_inset
1300
1301  dialog.
1302  \SpecialChar LyX
1303  adds anything in the 
1304 \begin_inset Flex MenuItem
1305 status collapsed
1306
1307 \begin_layout Plain Layout
1308 Preamble
1309 \end_layout
1310
1311 \end_inset
1312
1313  dialog to its own built-in preamble.
1314  Before adding your own declarations in the preamble, you should make sure
1315  that \SpecialChar LyX
1316  doesn't already support what you want to do.
1317  (Remember what we said about reinventing the wheel?) Also, 
1318 \emph on
1319 make sure your preamble code is correct
1320 \emph default
1321 .
1322  \SpecialChar LyX
1323  doesn't check it for you.
1324  If there is an error, you're likely to get an error like 
1325 \begin_inset Quotes eld
1326 \end_inset
1327
1328
1329 \begin_inset Flex Code
1330 status collapsed
1331
1332 \begin_layout Plain Layout
1333 Missing 
1334 \backslash
1335 begin{document}
1336 \end_layout
1337
1338 \end_inset
1339
1340
1341 \begin_inset Quotes erd
1342 \end_inset
1343
1344 .
1345  If you see this error, check your preamble.
1346 \end_layout
1347
1348 \begin_layout Subsection
1349 Examples
1350 \end_layout
1351
1352 \begin_layout Standard
1353 Here are some examples of what you can add to a preamble, and what they
1354  do.
1355 \end_layout
1356
1357 \begin_layout Subsubsection
1358 Example #1: Offsets
1359 \end_layout
1360
1361 \begin_layout Standard
1362 There are two variables under \SpecialChar LaTeX
1363  that control page position: 
1364 \begin_inset Flex Code
1365 status collapsed
1366
1367 \begin_layout Plain Layout
1368
1369 \backslash
1370 hoffset
1371 \end_layout
1372
1373 \end_inset
1374
1375  and 
1376 \begin_inset Flex Code
1377 status collapsed
1378
1379 \begin_layout Plain Layout
1380
1381 \backslash
1382 voffset
1383 \end_layout
1384
1385 \end_inset
1386
1387 .
1388  Their names should be self-explanatory.
1389  These variables are useful if you think for a moment about computer labels.
1390  Sometimes, the size of a print medium and the area of the medium that you
1391  can actually print on aren't the same.
1392  This is where 
1393 \begin_inset Flex Code
1394 status collapsed
1395
1396 \begin_layout Plain Layout
1397
1398 \backslash
1399 hoffset
1400 \end_layout
1401
1402 \end_inset
1403
1404  and 
1405 \begin_inset Flex Code
1406 status collapsed
1407
1408 \begin_layout Plain Layout
1409
1410 \backslash
1411 voffset
1412 \end_layout
1413
1414 \end_inset
1415
1416  come in.
1417 \end_layout
1418
1419 \begin_layout Standard
1420 The default values for 
1421 \begin_inset Flex Code
1422 status collapsed
1423
1424 \begin_layout Plain Layout
1425
1426 \backslash
1427 hoffset
1428 \end_layout
1429
1430 \end_inset
1431
1432  and 
1433 \begin_inset Flex Code
1434 status collapsed
1435
1436 \begin_layout Plain Layout
1437
1438 \backslash
1439 voffset
1440 \end_layout
1441
1442 \end_inset
1443
1444  are both 0
1445 \begin_inset space \thinspace{}
1446 \end_inset
1447
1448 points, i.
1449 \begin_inset space \thinspace{}
1450 \end_inset
1451
1452 e.
1453 \begin_inset space \space{}
1454 \end_inset
1455
1456 the page isn't shifted.
1457  Unfortunately, some DVI drivers always seem to shift the page.
1458  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1459  If you're using \SpecialChar LyX
1460  on a system that you don't personally maintain, and your
1461  sysadmin is a doofus, 
1462 \begin_inset Flex Code
1463 status collapsed
1464
1465 \begin_layout Plain Layout
1466
1467 \backslash
1468 hoffset
1469 \end_layout
1470
1471 \end_inset
1472
1473  and 
1474 \begin_inset Flex Code
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478
1479 \backslash
1480 voffset
1481 \end_layout
1482
1483 \end_inset
1484
1485  can save the day.
1486  Suppose your left and top margins are always 0.5
1487 \begin_inset space \thinspace{}
1488 \end_inset
1489
1490 inches too big.
1491  You can add this to the preamble:
1492 \end_layout
1493
1494 \begin_layout LyX-Code
1495
1496 \backslash
1497 setlength{
1498 \backslash
1499 hoffset}{-0.5 in}
1500 \end_layout
1501
1502 \begin_layout LyX-Code
1503
1504 \backslash
1505 setlength{
1506 \backslash
1507 voffset}{-0.5 in}
1508 \end_layout
1509
1510 \begin_layout Standard
1511 and your margins should now be correct.
1512 \end_layout
1513
1514 \begin_layout Subsubsection
1515 Example #2: Labels
1516 \end_layout
1517
1518 \begin_layout Standard
1519 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1520  There's a rather nice package, available at your nearest CTAN archive,
1521  for printing sheets of labels: 
1522 \begin_inset Flex Code
1523 status collapsed
1524
1525 \begin_layout Plain Layout
1526 labels.sty
1527 \end_layout
1528
1529 \end_inset
1530
1531 .
1532  Now, your system may not have this package installed by default.
1533  We leave that up to you to check.
1534  You'll also want to read the documentation for it; we're not going to do
1535  that for you.
1536  Since this is an example, however, we'll give you an example of how you
1537  use this package.
1538 \end_layout
1539
1540 \begin_layout Standard
1541 First, make sure you're using the 
1542 \begin_inset Flex Code
1543 status collapsed
1544
1545 \begin_layout Plain Layout
1546 article
1547 \end_layout
1548
1549 \end_inset
1550
1551  document class.
1552  Next, you need to put the following in your preamble:
1553 \end_layout
1554
1555 \begin_layout LyX-Code
1556
1557 \backslash
1558 usepackage{labels}
1559 \end_layout
1560
1561 \begin_layout LyX-Code
1562
1563 \backslash
1564 LabelCols=3
1565 \end_layout
1566
1567 \begin_layout LyX-Code
1568
1569 \backslash
1570 LabelRows=7
1571 \end_layout
1572
1573 \begin_layout LyX-Code
1574
1575 \backslash
1576 LeftBorder=8mm
1577 \end_layout
1578
1579 \begin_layout LyX-Code
1580
1581 \backslash
1582 RightBorder=8mm
1583 \end_layout
1584
1585 \begin_layout LyX-Code
1586
1587 \backslash
1588 TopBorder=9mm
1589 \end_layout
1590
1591 \begin_layout LyX-Code
1592
1593 \backslash
1594 BottomBorder=2mm
1595 \end_layout
1596
1597 \begin_layout Standard
1598 This sets things up for Avery label sheets, stock #5360.
1599  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1600  code, placing
1601  the commands 
1602 \begin_inset Flex Code
1603 status collapsed
1604
1605 \begin_layout Plain Layout
1606
1607 \backslash
1608 begin{labels}
1609 \end_layout
1610
1611 \end_inset
1612
1613  and 
1614 \begin_inset Flex Code
1615 status collapsed
1616
1617 \begin_layout Plain Layout
1618
1619 \backslash
1620 end{labels}
1621 \end_layout
1622
1623 \end_inset
1624
1625  around each label text.
1626  This and other special features of 
1627 \begin_inset Flex Code
1628 status collapsed
1629
1630 \begin_layout Plain Layout
1631 labels.sty
1632 \end_layout
1633
1634 \end_inset
1635
1636  are explained in its documentation.
1637 \end_layout
1638
1639 \begin_layout Standard
1640 Someday, someone may write a \SpecialChar LyX
1641  layout file to support this package directly.
1642  Maybe that someone is you.
1643 \end_layout
1644
1645 \begin_layout Subsubsection
1646 Example #3: Paragraph Indentation
1647 \end_layout
1648
1649 \begin_layout Standard
1650 Americans are trained to indent the first line of 
1651 \emph on
1652 every
1653 \emph default
1654  paragraph.
1655  As with all of their other weird quirks, most Americans will whine and
1656  moan until they can have their way and indent the first line of all paragraphs.
1657  (Yes, we're joking.
1658  (We are?) 
1659 \emph on
1660 Yeah
1661 \emph default
1662 , we are.)
1663 \end_layout
1664
1665 \begin_layout Standard
1666 Of course, this behavior isn't standard typography.
1667  In books, you typically only indent the first line of a paragraph 
1668 \emph on
1669 if
1670 \emph default
1671  it follows another one.
1672  The idea behind indenting the first line of a paragraph is to distinguish
1673  neighboring paragraphs from one another.
1674  If there is no previous paragraph—for example, if it follows a figure or
1675  is the first paragraph in a section—then there is no need for indentation.
1676  
1677 \end_layout
1678
1679 \begin_layout Standard
1680 If you're a typical American (we're still joking!), though, you don't care
1681  about such esoteric things; you want your indentation! Add this to the
1682  preamble:
1683 \end_layout
1684
1685 \begin_layout LyX-Code
1686
1687 \backslash
1688 usepackage{indentfirst}
1689 \end_layout
1690
1691 \begin_layout Standard
1692 If your \SpecialChar TeX
1693  distribution isn't braindead, you'll have this package, and all
1694  of your paragraphs will get the indentation the Founding Fathers intended
1695  they should have.
1696 \end_layout
1697
1698 \begin_layout Subsubsection
1699 Example #4: This Document
1700 \end_layout
1701
1702 \begin_layout Standard
1703 You can also check out the preamble of this document to get an idea of some
1704  of the advanced things you can do.
1705 \end_layout
1706
1707 \begin_layout Section
1708 \SpecialChar LyX
1709  and \SpecialChar LaTeX
1710  Errors
1711 \end_layout
1712
1713 \begin_layout Standard
1714 When \SpecialChar LyX
1715  calls \SpecialChar LaTeX
1716 , it tells \SpecialChar LaTeX
1717  to blithely ignore any errors and keep going.
1718  It then uses the logfile from the \SpecialChar LaTeX
1719  run to do a post-mortem.
1720  After analyzing the logfile, \SpecialChar LyX
1721  displays a dialog listing the errors.
1722  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1723  file
1724  where the error occurred.
1725 \begin_inset Foot
1726 status collapsed
1727
1728 \begin_layout Plain Layout
1729 Well, usually.
1730  Analyzing the logfile is a tough job, and \SpecialChar LyX
1731  doesn't always go to the right
1732  line.
1733  There are also cases where \SpecialChar LaTeX
1734  reports the error on one line, but the actual
1735  error is earlier.
1736  This is not unlike forgetting a closing brace in a program: You'll get
1737  an error, but only later.
1738 \end_layout
1739
1740 \end_inset
1741
1742
1743 \end_layout
1744
1745 \begin_layout Standard
1746 Some folks also like to look at the log file directly: It is available from
1747  
1748 \begin_inset Flex MenuItem
1749 status collapsed
1750
1751 \begin_layout Plain Layout
1752 Document
1753 \bar under
1754 \SpecialChar menuseparator
1755
1756 \bar default
1757 Latex
1758 \begin_inset space ~
1759 \end_inset
1760
1761 Log
1762 \end_layout
1763
1764 \end_inset
1765
1766 .
1767  There are some fairly common error messages and warnings.
1768  We'll cover those here.
1769  You should look at a good \SpecialChar LaTeX
1770  book for a complete listing.
1771 \end_layout
1772
1773 \begin_layout Itemize
1774 \begin_inset Flex Code
1775 status collapsed
1776
1777 \begin_layout Plain Layout
1778 \SpecialChar LaTeX
1779  Warning
1780 \end_layout
1781
1782 \end_inset
1783
1784
1785 \begin_inset Newline newline
1786 \end_inset
1787
1788 Anything beginning with these words is a warning message for the purpose
1789  of 
1790 \begin_inset Quotes eld
1791 \end_inset
1792
1793 debugging
1794 \begin_inset Quotes erd
1795 \end_inset
1796
1797  the \SpecialChar LaTeX
1798  code itself.
1799  You'll get messages like this if you added or changed cross-references
1800  or bibliography entries, in which case, \SpecialChar LaTeX
1801  is trying to tell you that you
1802  need to make another run.
1803  You can by-and-large ignore these.
1804 \end_layout
1805
1806 \begin_layout Itemize
1807 \begin_inset Flex Code
1808 status collapsed
1809
1810 \begin_layout Plain Layout
1811 \SpecialChar LaTeX
1812  Font Warning
1813 \end_layout
1814
1815 \end_inset
1816
1817
1818 \begin_inset Newline newline
1819 \end_inset
1820
1821 Another warning message, this time about fonts which \SpecialChar LaTeX
1822  couldn't find.
1823  The rest of the message will often say something about a replacement font
1824  that \SpecialChar LaTeX
1825  used.
1826  You can safely ignore these, too.
1827 \end_layout
1828
1829 \begin_layout Itemize
1830 \begin_inset Flex Code
1831 status collapsed
1832
1833 \begin_layout Plain Layout
1834 Overfull 
1835 \backslash
1836 hbox
1837 \end_layout
1838
1839 \end_inset
1840
1841
1842 \begin_inset Newline newline
1843 \end_inset
1844
1845 \SpecialChar LaTeX
1846  absolutely 
1847 \emph on
1848 loves
1849 \emph default
1850  to spew these out.
1851  They are warnings about lines that were too long and run past the right
1852  margin.
1853  Almost always, this is unnoticeable in the final output.
1854  (It can be just a point or two.) Or, only one or two characters extend past
1855  the margin.
1856  \SpecialChar LaTeX
1857  seems to generate at least one of these messages for just about any document
1858  you write.
1859 \begin_inset Newline newline
1860 \end_inset
1861
1862 You can ignore these messages.
1863  Your eyes will tell you if there's a problem with something that's too
1864  wide; just look at the output.
1865 \begin_inset Foot
1866 status collapsed
1867
1868 \begin_layout Plain Layout
1869 You can also enable the `draft' option in 
1870 \begin_inset Flex MenuItem
1871 status collapsed
1872
1873 \begin_layout Plain Layout
1874 Document
1875 \bar under
1876 \SpecialChar menuseparator
1877
1878 \bar default
1879 Settings
1880 \end_layout
1881
1882 \end_inset
1883
1884 , and then \SpecialChar LaTeX
1885  will draw a black box in the margin of lines that are overfull.
1886 \end_layout
1887
1888 \end_inset
1889
1890
1891 \end_layout
1892
1893 \begin_layout Itemize
1894 \begin_inset Flex Code
1895 status collapsed
1896
1897 \begin_layout Plain Layout
1898 Underfull 
1899 \backslash
1900 hbox
1901 \end_layout
1902
1903 \end_inset
1904
1905
1906 \begin_inset Newline newline
1907 \end_inset
1908
1909 Not quite as common as its cousin.
1910  \SpecialChar LaTeX
1911  seems to like to print lines that are a bit too wide as opposed to ones
1912  that are a bit too narrow.
1913  We have no idea why.
1914 \end_layout
1915
1916 \begin_layout Itemize
1917 \begin_inset Flex Code
1918 status collapsed
1919
1920 \begin_layout Plain Layout
1921 Overfull 
1922 \backslash
1923 vbox
1924 \end_layout
1925
1926 \end_inset
1927
1928  and 
1929 \begin_inset Flex Code
1930 status collapsed
1931
1932 \begin_layout Plain Layout
1933 Underfull 
1934 \backslash
1935 vbox
1936 \end_layout
1937
1938 \end_inset
1939
1940
1941 \begin_inset Newline newline
1942 \end_inset
1943
1944 Warnings about troubles breaking the page.
1945  Once again, just look at the output.
1946  Your eyes will tell you where something has gone wrong.
1947 \end_layout
1948
1949 \begin_layout Itemize
1950 \begin_inset Flex Code
1951 status collapsed
1952
1953 \begin_layout Plain Layout
1954 \SpecialChar LaTeX
1955  Error: File 
1956 \begin_inset Quotes els
1957 \end_inset
1958
1959 Xxxx
1960 \begin_inset Quotes ers
1961 \end_inset
1962
1963  not found
1964 \end_layout
1965
1966 \end_inset
1967
1968
1969 \begin_inset Newline newline
1970 \end_inset
1971
1972 The file 
1973 \begin_inset Quotes eld
1974 \end_inset
1975
1976 Xxxx
1977 \begin_inset Quotes erd
1978 \end_inset
1979
1980  isn't installed on this system.
1981  This usually appears because some package your document needs isn't installed.
1982  If you didn't touch the preamble or didn't use the 
1983 \begin_inset Flex Code
1984 status collapsed
1985
1986 \begin_layout Plain Layout
1987
1988 \backslash
1989 usepackage{}
1990 \end_layout
1991
1992 \end_inset
1993
1994  command, then one of the packages \SpecialChar LyX
1995  tried to load is missing.
1996  Use 
1997 \begin_inset Flex MenuItem
1998 status collapsed
1999
2000 \begin_layout Plain Layout
2001 Help\SpecialChar menuseparator
2002 \SpecialChar LaTeX
2003  Configuration
2004 \end_layout
2005
2006 \end_inset
2007
2008  to get a list of packages that \SpecialChar LyX
2009  knows about.
2010  This file is updated whenever you reconfigure \SpecialChar LyX
2011  (using 
2012 \begin_inset Flex MenuItem
2013 status collapsed
2014
2015 \begin_layout Plain Layout
2016 Tools\SpecialChar menuseparator
2017 Reconfigure
2018 \end_layout
2019
2020 \end_inset
2021
2022 ) and tells you which packages have been detected and what they do.
2023 \begin_inset Newline newline
2024 \end_inset
2025
2026 If you did use the 
2027 \begin_inset Flex Code
2028 status collapsed
2029
2030 \begin_layout Plain Layout
2031
2032 \backslash
2033 usepackage{}
2034 \end_layout
2035
2036 \end_inset
2037
2038  command and the package in question isn't installed, then you'll need to
2039  install it yourself.
2040 \end_layout
2041
2042 \begin_layout Itemize
2043 \begin_inset Flex Code
2044 status collapsed
2045
2046 \begin_layout Plain Layout
2047 \SpecialChar LaTeX
2048  Error: Unknown option
2049 \end_layout
2050
2051 \end_inset
2052
2053
2054 \begin_inset Newline newline
2055 \end_inset
2056
2057 Error messages beginning with this are trying to tell you that you specified
2058  a bad or undefined option to a package.
2059  Check the package's documentation.
2060 \end_layout
2061
2062 \begin_layout Itemize
2063 \begin_inset Flex Code
2064 status collapsed
2065
2066 \begin_layout Plain Layout
2067 Undefined control sequence
2068 \end_layout
2069
2070 \end_inset
2071
2072
2073 \begin_inset Newline newline
2074 \end_inset
2075
2076 If you've inserted \SpecialChar LaTeX
2077  code into your document, but made a typo, you'll get
2078  one of these.
2079  You may have forgotten to load a package.
2080  In any case, this error message usually means that you used an undefined
2081  command.
2082  
2083 \end_layout
2084
2085 \begin_layout Standard
2086 There are other error and warning messages.
2087  Some are self-explanatory.
2088  These are usually \SpecialChar LaTeX
2089  messages.
2090  Others are downright cryptic.
2091  These are usually \SpecialChar TeX
2092  error messages, and we really have 
2093 \emph on
2094 no clue
2095 \emph default
2096  what they mean or how to decipher them.
2097  No-one does.
2098 \end_layout
2099
2100 \begin_layout Standard
2101 There's a general sequence you should follow if you get error messages:
2102 \end_layout
2103
2104 \begin_layout Enumerate
2105 Look at the \SpecialChar LaTeX
2106  code you inserted for typos.
2107 \end_layout
2108
2109 \begin_layout Enumerate
2110 If there are no typos, check that you used the command(s) correctly.
2111 \end_layout
2112
2113 \begin_layout Enumerate
2114 If you get a bunch of error boxes piled up at the very top of the document—and
2115  especially if you see a 
2116 \begin_inset Quotes eld
2117 \end_inset
2118
2119
2120 \begin_inset Flex Code
2121 status collapsed
2122
2123 \begin_layout Plain Layout
2124 Missing 
2125 \backslash
2126 begin{document}
2127 \end_layout
2128
2129 \end_inset
2130
2131
2132 \begin_inset Quotes erd
2133 \end_inset
2134
2135  error—it means that there are errors in the preamble.
2136  Start debugging your preamble.
2137 \end_layout
2138
2139 \begin_layout Enumerate
2140 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2141  code to the
2142  document, the first suspect is your \SpecialChar LaTeX
2143  distribution itself.
2144  Check for missing packages and install them.
2145 \end_layout
2146
2147 \begin_layout Enumerate
2148 Okay, so there are no missing packages.
2149  Did you use any of the fine-tuning options in \SpecialChar LyX
2150 ? Specifically, did you 
2151 \emph on
2152 misuse
2153 \emph default
2154  any of them, like trying to manually insert lots of 
2155 \begin_inset Flex Code
2156 status collapsed
2157
2158 \begin_layout Plain Layout
2159 Protected
2160 \begin_inset space ~
2161 \end_inset
2162
2163 Blanks
2164 \end_layout
2165
2166 \end_inset
2167
2168
2169 \begin_inset Flex Code
2170 status collapsed
2171
2172 \begin_layout Plain Layout
2173 Linebreaks
2174 \end_layout
2175
2176 \end_inset
2177
2178 , or 
2179 \begin_inset Flex Code
2180 status collapsed
2181
2182 \begin_layout Plain Layout
2183 Pagebreaks
2184 \end_layout
2185
2186 \end_inset
2187
2188 ? Did you try to kludge something together with these instead of using the
2189  appropriate paragraph environment?
2190 \end_layout
2191
2192 \begin_layout Enumerate
2193 All right, you didn't use any of the fine-tuning options, you played by
2194  the rules.
2195  Did you try to pull a fancy maneuver? Did you do something funky inside
2196  a table or an equation, like inserting a graphic into a table cell?
2197 \end_layout
2198
2199 \begin_layout Enumerate
2200 Do you have long sections of text where \SpecialChar LaTeX
2201  cannot find a place to break a
2202  line? By default, \SpecialChar LaTeX
2203  is rather strict about how much extra inter-word spacing
2204  it will add in order to break a line.
2205  Preferably, you should rework the paragraph to avoid the problem.
2206 \end_layout
2207
2208 \begin_layout Enumerate
2209 Did you go overboard with the nesting? \SpecialChar LyX
2210  (currently) doesn't check to make
2211  sure you're in the limits for nesting environments.
2212  If you nested a bunch of environments to the 
2213 \begin_inset Formula $17^{\mathrm{th}}$
2214 \end_inset
2215
2216  level, that's the problem.
2217  (The limit in \SpecialChar LaTeX
2218  is five.)
2219 \end_layout
2220
2221 \begin_layout Enumerate
2222 Okay, you didn't get any error messages, but your output looks awful.
2223  If you have a table or figure that's too wide or long for the page, you
2224  need to:
2225 \begin_inset Separator parbreak
2226 \end_inset
2227
2228
2229 \end_layout
2230
2231 \begin_deeper
2232 \begin_layout Enumerate
2233 rescale the figure so it fits.
2234 \end_layout
2235
2236 \begin_layout Enumerate
2237 trim down the table so it fits.
2238 \end_layout
2239
2240 \end_deeper
2241 \begin_layout Enumerate
2242 If something else is wrong with the output, and you didn't try to pull anything
2243  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2244 \end_layout
2245
2246 \begin_layout Standard
2247 If all this doesn't help—well, then 
2248 \emph on
2249 perhaps
2250 \emph default
2251  you might have found a bug in \SpecialChar LyX
2252 \SpecialChar ldots
2253 .
2254 \end_layout
2255
2256 \begin_layout Chapter
2257 Supplemental Tools
2258 \end_layout
2259
2260 \begin_layout Section
2261 Customizing Bibliographies with Bib\SpecialChar TeX
2262
2263 \end_layout
2264
2265 \begin_layout Standard
2266 The most basic information about how to use Bib\SpecialChar TeX
2267  with \SpecialChar LyX
2268  is contained in the
2269  section 
2270 \emph on
2271 Bibliography databases (Bib\SpecialChar TeX
2272 )
2273 \emph default
2274  of the 
2275 \emph on
2276 User's Guide
2277 \emph default
2278 .
2279  The following subsections explain special bibliography features supported
2280  by \SpecialChar LyX
2281 .
2282 \end_layout
2283
2284 \begin_layout Subsection
2285 Alternative Citation Styles
2286 \end_layout
2287
2288 \begin_layout Standard
2289 Standard Bib\SpecialChar TeX
2290  uses numbers (e.
2291 \begin_inset space \thinspace{}
2292 \end_inset
2293
2294 g.
2295 \begin_inset space \space{}
2296 \end_inset
2297
2298
2299 \begin_inset Quotes eld
2300 \end_inset
2301
2302 [12]
2303 \begin_inset Quotes erd
2304 \end_inset
2305
2306 ) to refer to a cited work.
2307  However, in many scientific disciplines, other citation styles are in use.
2308  The most common one is the author-year style (e.
2309 \begin_inset space \thinspace{}
2310 \end_inset
2311
2312 g.
2313 \begin_inset space \space{}
2314 \end_inset
2315
2316
2317 \begin_inset Quotes eld
2318 \end_inset
2319
2320 Knuth 1984a
2321 \begin_inset Quotes erd
2322 \end_inset
2323
2324 ).
2325  \SpecialChar LyX
2326  supports two packages that provide this style, 
2327 \begin_inset Flex Code
2328 status collapsed
2329
2330 \begin_layout Plain Layout
2331 natbib
2332 \end_layout
2333
2334 \end_inset
2335
2336  and 
2337 \begin_inset Flex Code
2338 status collapsed
2339
2340 \begin_layout Plain Layout
2341 jurabib
2342 \end_layout
2343
2344 \end_inset
2345
2346 .
2347  Both packages have their pros and cons, which cannot be listed in detail.
2348  If you only want to have simple author-year (or author-numerical) style,
2349  or if you want to use one of the countless style files for 
2350 \begin_inset Flex Code
2351 status collapsed
2352
2353 \begin_layout Plain Layout
2354 natbib
2355 \end_layout
2356
2357 \end_inset
2358
2359 , then the established 
2360 \begin_inset Flex Code
2361 status collapsed
2362
2363 \begin_layout Plain Layout
2364 natbib
2365 \end_layout
2366
2367 \end_inset
2368
2369  package is probably your choice.
2370  If you need special features like short title references, ibidem etc., you
2371  might consider the 
2372 \begin_inset Flex Code
2373 status collapsed
2374
2375 \begin_layout Plain Layout
2376 jurabib
2377 \end_layout
2378
2379 \end_inset
2380
2381  package.
2382 \end_layout
2383
2384 \begin_layout Standard
2385 The handling of both packages in \SpecialChar LyX
2386  is basically the same.
2387  Go to 
2388 \begin_inset Flex MenuItem
2389 status collapsed
2390
2391 \begin_layout Plain Layout
2392 Document\SpecialChar menuseparator
2393 Settings
2394 \end_layout
2395
2396 \end_inset
2397
2398  and select under 
2399 \begin_inset Flex MenuItem
2400 status collapsed
2401
2402 \begin_layout Plain Layout
2403 Bibliography
2404 \end_layout
2405
2406 \end_inset
2407
2408  the option 
2409 \begin_inset Flex MenuItem
2410 status collapsed
2411
2412 \begin_layout Plain Layout
2413 Natbib
2414 \end_layout
2415
2416 \end_inset
2417
2418  or 
2419 \begin_inset Flex MenuItem
2420 status collapsed
2421
2422 \begin_layout Plain Layout
2423 Jurabib
2424 \end_layout
2425
2426 \end_inset
2427
2428 .
2429  With both packages, you will get some extra features in the citation dialog
2430  and you can select the style of the reference (
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 Knuth (1984)
2443 \begin_inset Quotes erd
2444 \end_inset
2445
2446
2447 \begin_inset Quotes eld
2448 \end_inset
2449
2450 Knuth, 1984
2451 \begin_inset Quotes erd
2452 \end_inset
2453
2454
2455 \begin_inset Quotes eld
2456 \end_inset
2457
2458 1984
2459 \begin_inset Quotes erd
2460 \end_inset
2461
2462  etc.).
2463  Note that both packages need specifically designed style files.
2464  They both ship their own, but there are lots of additional style files,
2465  and there is even an interactive style file builder
2466 \begin_inset Foot
2467 status collapsed
2468
2469 \begin_layout Plain Layout
2470 See 
2471 \begin_inset Flex URL
2472 status open
2473
2474 \begin_layout Plain Layout
2475
2476 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2477 \end_layout
2478
2479 \end_inset
2480
2481
2482 \end_layout
2483
2484 \end_inset
2485
2486  for 
2487 \begin_inset Flex Code
2488 status collapsed
2489
2490 \begin_layout Plain Layout
2491 natbib
2492 \end_layout
2493
2494 \end_inset
2495
2496 .
2497 \end_layout
2498
2499 \begin_layout Subsection
2500 Sectioned Bibliographies
2501 \end_layout
2502
2503 \begin_layout Standard
2504 Sometimes you might need to divide your bibliography into several sections.
2505  If you are for instance a historian, the possibility to separate sources
2506  and scientific works is most likely a 
2507 \begin_inset Quotes eld
2508 \end_inset
2509
2510 must have
2511 \begin_inset Quotes erd
2512 \end_inset
2513
2514 .
2515  Unfortunately, Bib\SpecialChar TeX
2516  itself does not allow you to do this.
2517  But with the help of some \SpecialChar LaTeX
2518  packages, Bib\SpecialChar TeX
2519  can be extended to fit your needs.
2520 \end_layout
2521
2522 \begin_layout Standard
2523 \SpecialChar LyX
2524  provides native support for one of these packages, 
2525 \family typewriter
2526 bibtopic
2527 \family default
2528 .
2529 \begin_inset Foot
2530 status collapsed
2531
2532 \begin_layout Plain Layout
2533 Available from 
2534 \begin_inset Flex URL
2535 status open
2536
2537 \begin_layout Plain Layout
2538
2539 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2540 \end_layout
2541
2542 \end_inset
2543
2544
2545 \end_layout
2546
2547 \end_inset
2548
2549  The advantage of this package (compared to other packages like 
2550 \family typewriter
2551 multibib
2552 \family default
2553 ) is that you don't need to define new citation commands.
2554  Instead, you need to prepare different bibliographic databases which include
2555  the entries for the different sections of the bibliography.
2556  For example: If you want to divide your bibliography into the sections
2557  
2558 \begin_inset Quotes eld
2559 \end_inset
2560
2561 Sources
2562 \begin_inset Quotes erd
2563 \end_inset
2564
2565  and 
2566 \begin_inset Quotes eld
2567 \end_inset
2568
2569 Scientific works
2570 \begin_inset Quotes erd
2571 \end_inset
2572
2573 , you first need to create two bibliographic databases, e.
2574 \begin_inset space \thinspace{}
2575 \end_inset
2576
2577 g.
2578 \begin_inset space \space{}
2579 \end_inset
2580
2581
2582 \begin_inset Flex Code
2583 status collapsed
2584
2585 \begin_layout Plain Layout
2586 sources.bib
2587 \end_layout
2588
2589 \end_inset
2590
2591  and 
2592 \begin_inset Flex Code
2593 status collapsed
2594
2595 \begin_layout Plain Layout
2596 scientific.bib
2597 \end_layout
2598
2599 \end_inset
2600
2601 .
2602  
2603 \end_layout
2604
2605 \begin_layout Standard
2606 Go to 
2607 \begin_inset Flex MenuItem
2608 status collapsed
2609
2610 \begin_layout Plain Layout
2611 Document\SpecialChar menuseparator
2612 Settings
2613 \end_layout
2614
2615 \end_inset
2616
2617  and check under 
2618 \begin_inset Flex MenuItem
2619 status collapsed
2620
2621 \begin_layout Plain Layout
2622 Bibliography
2623 \end_layout
2624
2625 \end_inset
2626
2627  the option 
2628 \begin_inset Flex MenuItem
2629 status collapsed
2630
2631 \begin_layout Plain Layout
2632 Sectioned bibliography
2633 \end_layout
2634
2635 \end_inset
2636
2637 .
2638  Now you can insert multiple Bib\SpecialChar TeX
2639  bibliographies, one for each section of
2640  your bibliography.
2641  Returning to our example: Insert the Bib\SpecialChar TeX
2642  bibliography 
2643 \begin_inset Flex Code
2644 status collapsed
2645
2646 \begin_layout Plain Layout
2647 sources.bib
2648 \end_layout
2649
2650 \end_inset
2651
2652  and a second one for the database 
2653 \begin_inset Flex Code
2654 status collapsed
2655
2656 \begin_layout Plain Layout
2657 scientific.bib
2658 \end_layout
2659
2660 \end_inset
2661
2662 .
2663  You are free to use the same or different styles for each section.
2664  Additionally, you can choose if the bibliography section should contain
2665  
2666 \begin_inset Quotes eld
2667 \end_inset
2668
2669 all cited references
2670 \begin_inset Quotes erd
2671 \end_inset
2672
2673  of the specified database(s) (which is the default), 
2674 \begin_inset Quotes eld
2675 \end_inset
2676
2677 all uncited references
2678 \begin_inset Quotes erd
2679 \end_inset
2680
2681  or even 
2682 \begin_inset Quotes eld
2683 \end_inset
2684
2685 all references
2686 \begin_inset Quotes erd
2687 \end_inset
2688
2689 .
2690  This might be useful if you would like to separate your bibliography into
2691  three sections: 
2692 \begin_inset Quotes eld
2693 \end_inset
2694
2695 Cited sources
2696 \begin_inset Quotes erd
2697 \end_inset
2698
2699
2700 \begin_inset Quotes eld
2701 \end_inset
2702
2703 Uncited sources
2704 \begin_inset Quotes erd
2705 \end_inset
2706
2707 , and 
2708 \begin_inset Quotes eld
2709 \end_inset
2710
2711 Scientific works
2712 \begin_inset Quotes erd
2713 \end_inset
2714
2715 .
2716  The titles for the sections can be added as ordinary sections or subsections.
2717  Since 
2718 \begin_inset Flex Code
2719 status collapsed
2720
2721 \begin_layout Plain Layout
2722 bibtopic
2723 \end_layout
2724
2725 \end_inset
2726
2727  removes the bibliography title, you have to manually re-add that, too (as
2728  a chapter* or section*, for instance).
2729 \end_layout
2730
2731 \begin_layout Subsection
2732 Multiple Bibliographies
2733 \end_layout
2734
2735 \begin_layout Standard
2736 Multiple bibliographies, e.
2737 \begin_inset space \thinspace{}
2738 \end_inset
2739
2740 g.
2741 \begin_inset space \space{}
2742 \end_inset
2743
2744 a bibliography for each section or chapter of the document, are not supported
2745  by Bib\SpecialChar TeX
2746  itself.
2747  But the 
2748 \begin_inset Flex Code
2749 status collapsed
2750
2751 \begin_layout Plain Layout
2752 bibtopic
2753 \end_layout
2754
2755 \end_inset
2756
2757  package, which is used for the creation of sectioned bibliographies in
2758  \SpecialChar LyX
2759  (see the previous section), provides an easy way to solve this task, if
2760  you are willing to use some 
2761 \begin_inset Flex MenuItem
2762 status collapsed
2763
2764 \begin_layout Plain Layout
2765 \SpecialChar TeX
2766  Code
2767 \end_layout
2768
2769 \end_inset
2770
2771  (see section
2772 \begin_inset space ~
2773 \end_inset
2774
2775
2776 \begin_inset CommandInset ref
2777 LatexCommand ref
2778 reference "sec:Inserting-TeX-Code"
2779
2780 \end_inset
2781
2782 ).
2783 \begin_inset Foot
2784 status collapsed
2785
2786 \begin_layout Plain Layout
2787 An alternative approach is to use the 
2788 \begin_inset Flex Code
2789 status collapsed
2790
2791 \begin_layout Plain Layout
2792 chapterbib
2793 \end_layout
2794
2795 \end_inset
2796
2797  or 
2798 \begin_inset Flex Code
2799 status collapsed
2800
2801 \begin_layout Plain Layout
2802 bibunits
2803 \end_layout
2804
2805 \end_inset
2806
2807  package, respectively.
2808 \end_layout
2809
2810 \end_inset
2811
2812
2813 \end_layout
2814
2815 \begin_layout Standard
2816 First go to 
2817 \begin_inset Flex MenuItem
2818 status collapsed
2819
2820 \begin_layout Plain Layout
2821 Document\SpecialChar menuseparator
2822 Settings
2823 \end_layout
2824
2825 \end_inset
2826
2827  and under 
2828 \begin_inset Flex MenuItem
2829 status collapsed
2830
2831 \begin_layout Plain Layout
2832 Bibliography
2833 \end_layout
2834
2835 \end_inset
2836
2837  check 
2838 \begin_inset Flex MenuItem
2839 status collapsed
2840
2841 \begin_layout Plain Layout
2842 Sectioned bibliography
2843 \end_layout
2844
2845 \end_inset
2846
2847 .
2848  In the document, you have to enclose the sections, which shall contain
2849  their own bibliography (including the Bib\SpecialChar TeX
2850  bibliography itself), between
2851  
2852 \begin_inset Flex Code
2853 status collapsed
2854
2855 \begin_layout Plain Layout
2856
2857 \backslash
2858 begin{btUnit}
2859 \end_layout
2860
2861 \end_inset
2862
2863  and 
2864 \begin_inset Flex Code
2865 status collapsed
2866
2867 \begin_layout Plain Layout
2868
2869 \backslash
2870 end{btUnit}
2871 \end_layout
2872
2873 \end_inset
2874
2875  (those commands have to be inserted as \SpecialChar TeX
2876  code).
2877  The bibliography will contain all references that have been cited in the
2878  current 
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  
2890 \series bold
2891 Note:
2892 \series default
2893  If you are using this approach, then every citation reference has to be
2894  inside some 
2895 \begin_inset Flex Code
2896 status collapsed
2897
2898 \begin_layout Plain Layout
2899 btUnit
2900 \end_layout
2901
2902 \end_inset
2903
2904 .
2905  Also, the 
2906 \begin_inset Flex Code
2907 status collapsed
2908
2909 \begin_layout Plain Layout
2910 btUnit
2911 \end_layout
2912
2913 \end_inset
2914
2915 s cannot be nested.
2916 \end_layout
2917
2918 \begin_layout Section
2919 Multipart Documents
2920 \end_layout
2921
2922 \begin_layout Subsection
2923 General Operation
2924 \end_layout
2925
2926 \begin_layout Standard
2927 When you are working on a large file with many sections, it is often convenient
2928  to break up the document into several files, or perhaps you have something
2929  where a table may change from time to time, but the preceding text does
2930  not.
2931  In these cases, you should seriously consider using multipart documents.
2932  For example, scientific papers often have five major sections: the introduction
2933 , observations, results, discussion, and conclusion.
2934  Each of these could be its own separate \SpecialChar LyX
2935  file, with one 
2936 \begin_inset Quotes eld
2937 \end_inset
2938
2939 master
2940 \begin_inset Quotes erd
2941 \end_inset
2942
2943  file which contains the title, authors, abstract, references, etc., plus
2944  the five included files.
2945  It is important to note that each of these files is a full \SpecialChar LyX
2946  file which
2947  can be formatted and printed on its own, as well as included in a master
2948  file.
2949  Each of these files must have the same document class, however—don't attempt
2950  to mix book classes with article classes.
2951  You may also include \SpecialChar LaTeX
2952  files; however, these files must not have their own
2953  preamble (i.
2954 \begin_inset space \thinspace{}
2955 \end_inset
2956
2957 e.
2958 \begin_inset space \space{}
2959 \end_inset
2960
2961 everything up to and including the 
2962 \begin_inset Flex Code
2963 status collapsed
2964
2965 \begin_layout Plain Layout
2966
2967 \backslash
2968 begin{document}
2969 \end_layout
2970
2971 \end_inset
2972
2973  line as well as the 
2974 \begin_inset Flex Code
2975 status collapsed
2976
2977 \begin_layout Plain Layout
2978
2979 \backslash
2980 end{document}
2981 \end_layout
2982
2983 \end_inset
2984
2985  line must be deleted) or else errors will be generated when you try to
2986  make a DVI file.
2987 \end_layout
2988
2989 \begin_layout Standard
2990 \SpecialChar LyX
2991  allows you to include files quite easily with 
2992 \begin_inset Flex MenuItem
2993 status collapsed
2994
2995 \begin_layout Plain Layout
2996 Insert\SpecialChar menuseparator
2997 ChiId
2998 \begin_inset space ~
2999 \end_inset
3000
3001 Document
3002 \end_layout
3003
3004 \end_inset
3005
3006 .
3007  When you click on this selection a small box is inserted into the file
3008  at the current cursor location.
3009  Clicking on the box raises a dialog which allows you to select the file
3010  to be included, and the method of its inclusion.
3011  
3012 \end_layout
3013
3014 \begin_layout Standard
3015 The file selection box should by now be obvious.
3016  The three inclusion methods are 
3017 \begin_inset Quotes eld
3018 \end_inset
3019
3020 include
3021 \begin_inset Quotes erd
3022 \end_inset
3023
3024
3025 \begin_inset Quotes eld
3026 \end_inset
3027
3028 input
3029 \begin_inset Quotes erd
3030 \end_inset
3031
3032 , and 
3033 \begin_inset Quotes eld
3034 \end_inset
3035
3036 verbatim
3037 \begin_inset Quotes erd
3038 \end_inset
3039
3040 .
3041  The difference between 
3042 \begin_inset Quotes eld
3043 \end_inset
3044
3045 include
3046 \begin_inset Quotes erd
3047 \end_inset
3048
3049  and 
3050 \begin_inset Quotes eld
3051 \end_inset
3052
3053 input
3054 \begin_inset Quotes erd
3055 \end_inset
3056
3057  is really only meaningful to \SpecialChar LaTeX
3058 perts, but the practical difference is that
3059  files that are 
3060 \begin_inset Quotes eld
3061 \end_inset
3062
3063 included
3064 \begin_inset Quotes erd
3065 \end_inset
3066
3067  are typeset beginning on a new page, while files that are 
3068 \begin_inset Quotes eld
3069 \end_inset
3070
3071 inputted
3072 \begin_inset Quotes erd
3073 \end_inset
3074
3075  are typeset starting on the current page.
3076 \end_layout
3077
3078 \begin_layout Standard
3079 Generally, the master file is converted into a full \SpecialChar LaTeX
3080  file before typesetting,
3081  while the included files are converted to \SpecialChar LaTeX
3082  files that do not have all the
3083  preamble information.
3084 \end_layout
3085
3086 \begin_layout Standard
3087
3088 \begin_inset Quotes eld
3089 \end_inset
3090
3091 verbatim
3092 \begin_inset Quotes erd
3093 \end_inset
3094
3095  included file allows you to include a file typeset exactly as it appears
3096  in the file, i.
3097 \begin_inset space \thinspace{}
3098 \end_inset
3099
3100 e.
3101 \begin_inset space \space{}
3102 \end_inset
3103
3104 in 
3105 \begin_inset Flex Code
3106 status collapsed
3107
3108 \begin_layout Plain Layout
3109 verbatim
3110 \end_layout
3111
3112 \end_inset
3113
3114  mode, with the characters set in a fixed-width typewriter font.
3115  Normally, spaces in this file are invisible, though two consecutive spaces
3116  are conserved, unlike \SpecialChar LyX
3117 's normal treatment of spaces.
3118  However, setting the 
3119 \begin_inset Flex MenuItem
3120 status collapsed
3121
3122 \begin_layout Plain Layout
3123 Mark
3124 \begin_inset space ~
3125 \end_inset
3126
3127 spaces
3128 \begin_inset space ~
3129 \end_inset
3130
3131 in
3132 \begin_inset space ~
3133 \end_inset
3134
3135 output
3136 \end_layout
3137
3138 \end_inset
3139
3140  checkbox typesets a mark to unambiguously define the presence of a space.
3141  
3142 \end_layout
3143
3144 \begin_layout Subsection
3145 Cross-References Between Files
3146 \end_layout
3147
3148 \begin_layout Standard
3149 \begin_inset Box Shadowbox
3150 position "t"
3151 hor_pos "c"
3152 has_inner_box 1
3153 inner_pos "t"
3154 use_parbox 0
3155 use_makebox 0
3156 width "100col%"
3157 special "none"
3158 height "1in"
3159 height_special "totalheight"
3160 thickness "0.4pt"
3161 separation "3pt"
3162 shadowsize "4pt"
3163 framecolor "black"
3164 backgroundcolor "none"
3165 status open
3166
3167 \begin_layout Plain Layout
3168 This section is somewhat out of date.
3169  Need to describe default master documents and how children are opened when
3170  the master is.
3171  [[FIXME]]
3172 \end_layout
3173
3174 \end_inset
3175
3176
3177 \end_layout
3178
3179 \begin_layout Standard
3180 It is possible to set up cross-references between the different files.
3181  First, open all the files in question: let's call them A and B in a two
3182  file example, where B is included in A.
3183  Let's say you insert a label in A, then want to reference it in B.
3184  Open the cross-reference dialog whilst in document B, and you can select
3185  the 
3186 \begin_inset Quotes eld
3187 \end_inset
3188
3189 buffer
3190 \begin_inset Quotes erd
3191 \end_inset
3192
3193  to use.
3194 \end_layout
3195
3196 \begin_layout Subsection
3197 Bibliography Lists in all Subdocuments
3198 \end_layout
3199
3200 \begin_layout Standard
3201 \begin_inset Box Frameless
3202 position "t"
3203 hor_pos "c"
3204 has_inner_box 1
3205 inner_pos "t"
3206 use_parbox 0
3207 use_makebox 0
3208 width "100col%"
3209 special "none"
3210 height "1in"
3211 height_special "totalheight"
3212 thickness "0.4pt"
3213 separation "3pt"
3214 shadowsize "4pt"
3215 framecolor "black"
3216 backgroundcolor "none"
3217 status open
3218
3219 \begin_layout Plain Layout
3220 This section also needs updating.
3221  There is now material about this on the wiki, and it could be copied here.
3222 \end_layout
3223
3224 \end_inset
3225
3226
3227 \end_layout
3228
3229 \begin_layout Standard
3230 Copy the bibliography list with all entries to all subdocuments and transform
3231  them to a comment.
3232  This way \SpecialChar LyX
3233  will find the 
3234 \begin_inset Flex Code
3235 status collapsed
3236
3237 \begin_layout Plain Layout
3238 .bib
3239 \end_layout
3240
3241 \end_inset
3242
3243 -files and you can easily insert references without making the bibliography
3244  list visible.
3245 \end_layout
3246
3247 \begin_layout Standard
3248 As the bibliography list is in a comment, \SpecialChar LaTeX
3249  won't use it and the references
3250  will look like this: [?], instead of like this: [1].
3251  One solution is to use the \SpecialChar LaTeX
3252 -package 
3253 \begin_inset Flex Code
3254 status collapsed
3255
3256 \begin_layout Plain Layout
3257 comment
3258 \end_layout
3259
3260 \end_inset
3261
3262  that will only include comments by processing the files separately.
3263  To do this, add in the \SpecialChar LaTeX
3264  preamble of every subdocument the following:
3265 \end_layout
3266
3267 \begin_layout LyX-Code
3268
3269 \backslash
3270 usepackage{comment}
3271 \end_layout
3272
3273 \begin_layout LyX-Code
3274
3275 \backslash
3276 includecomment{comment}
3277 \end_layout
3278
3279 \begin_layout Standard
3280 See also 
3281 \begin_inset Flex URL
3282 status collapsed
3283
3284 \begin_layout Plain Layout
3285
3286 http://wiki.lyx.org/FAQ/Unsorted#toc31
3287 \end_layout
3288
3289 \end_inset
3290
3291 .
3292 \end_layout
3293
3294 \begin_layout Section
3295 \SpecialChar LyX
3296  Archives
3297 \end_layout
3298
3299 \begin_layout Standard
3300 Users sometimes need to be able to 
3301 \begin_inset Quotes eld
3302 \end_inset
3303
3304 bundle
3305 \begin_inset Quotes erd
3306 \end_inset
3307
3308  a \SpecialChar LyX
3309  file together with all the images (and other files) on which it depends,
3310  either for sending to a publisher or for sharing with a co-author.
3311  \SpecialChar LyX
3312  2.0 includes a Python script (
3313 \begin_inset Flex Code
3314 status collapsed
3315
3316 \begin_layout Plain Layout
3317 lyxpak.py
3318 \end_layout
3319
3320 \end_inset
3321
3322 ) that automates this process.
3323  To use it, you must have either the 
3324 \begin_inset Flex Code
3325 status collapsed
3326
3327 \begin_layout Plain Layout
3328 zipfile
3329 \end_layout
3330
3331 \end_inset
3332
3333  or 
3334 \begin_inset Flex Code
3335 status collapsed
3336
3337 \begin_layout Plain Layout
3338 tarfile
3339 \end_layout
3340
3341 \end_inset
3342
3343  python modules installed on your system.
3344  By default, the script prefers the 
3345 \begin_inset Flex Code
3346 status collapsed
3347
3348 \begin_layout Plain Layout
3349 gzip
3350 \end_layout
3351
3352 \end_inset
3353
3354 -compressed 
3355 \begin_inset Flex Code
3356 status collapsed
3357
3358 \begin_layout Plain Layout
3359 tar
3360 \end_layout
3361
3362 \end_inset
3363
3364  format on Unix-like systems and the 
3365 \begin_inset Flex Code
3366 status collapsed
3367
3368 \begin_layout Plain Layout
3369 zip
3370 \end_layout
3371
3372 \end_inset
3373
3374  format on Windows.
3375 \end_layout
3376
3377 \begin_layout Standard
3378 \SpecialChar LyX
3379 's configuration process will set the script up to export a `\SpecialChar LyX
3380  Archive',
3381  and this format will then be available under 
3382 \begin_inset Flex Code
3383 status collapsed
3384
3385 \begin_layout Plain Layout
3386 File\SpecialChar menuseparator
3387 Export
3388 \end_layout
3389
3390 \end_inset
3391
3392 .
3393 \end_layout
3394
3395 \begin_layout Standard
3396 Independently of the platform, the generation of a particular archive format
3397  can be forced by adding either the 
3398 \begin_inset Flex Code
3399 status collapsed
3400
3401 \begin_layout Plain Layout
3402 -t
3403 \end_layout
3404
3405 \end_inset
3406
3407  (for the 
3408 \begin_inset Flex Code
3409 status collapsed
3410
3411 \begin_layout Plain Layout
3412 tar
3413 \end_layout
3414
3415 \end_inset
3416
3417  format) or 
3418 \begin_inset Flex Code
3419 status collapsed
3420
3421 \begin_layout Plain Layout
3422 -z
3423 \end_layout
3424
3425 \end_inset
3426
3427  (for the 
3428 \begin_inset Flex Code
3429 status collapsed
3430
3431 \begin_layout Plain Layout
3432 zip
3433 \end_layout
3434
3435 \end_inset
3436
3437  format) switch to the 
3438 \begin_inset Flex Code
3439 status collapsed
3440
3441 \begin_layout Plain Layout
3442 \SpecialChar LyX
3443 \SpecialChar menuseparator
3444 \SpecialChar LyX
3445  Archive
3446 \end_layout
3447
3448 \end_inset
3449
3450  converter in 
3451 \begin_inset Flex Code
3452 status collapsed
3453
3454 \begin_layout Plain Layout
3455 Tools\SpecialChar menuseparator
3456 Preferences\SpecialChar menuseparator
3457 File Handling\SpecialChar menuseparator
3458 Converters
3459 \end_layout
3460
3461 \end_inset
3462
3463 .
3464  (Make sure you add the switch after the script name, not before it.)
3465 \end_layout
3466
3467 \begin_layout Section
3468 Fancy Headers and Footers
3469 \end_layout
3470
3471 \begin_layout Standard
3472 The default page layout is rather plain; for an 
3473 \begin_inset Flex Code
3474 status collapsed
3475
3476 \begin_layout Plain Layout
3477 article
3478 \end_layout
3479
3480 \end_inset
3481
3482  document class, all you get is a centered page number at the bottom of
3483  the page.
3484  This document uses KOMA-script's book class, so it appears to be a bit
3485  fancier.
3486  But to really put on a show, you need to set the document page style to
3487  
3488 \begin_inset Quotes eld
3489 \end_inset
3490
3491 fancy
3492 \begin_inset Quotes erd
3493 \end_inset
3494
3495 , as mentioned in the 
3496 \emph on
3497 User Guide
3498 \emph default
3499 .
3500  This section describes the \SpecialChar LaTeX
3501  code you need to insert in your \SpecialChar LaTeX
3502  preamble in
3503  order to get the desired effects.
3504 \end_layout
3505
3506 \begin_layout Standard
3507 For more information on fancy headers, see the 
3508 \begin_inset Flex Code
3509 status collapsed
3510
3511 \begin_layout Plain Layout
3512 fancyhdr
3513 \end_layout
3514
3515 \end_inset
3516
3517  package documentation.
3518  (
3519 \begin_inset Flex URL
3520 status collapsed
3521
3522 \begin_layout Plain Layout
3523
3524 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3525 \end_layout
3526
3527 \end_inset
3528
3529 )
3530 \end_layout
3531
3532 \begin_layout Standard
3533 The page header is divided into three fields, not surprisingly labeled 
3534 \begin_inset Quotes eld
3535 \end_inset
3536
3537 left
3538 \begin_inset Quotes erd
3539 \end_inset
3540
3541
3542 \begin_inset Quotes eld
3543 \end_inset
3544
3545 center
3546 \begin_inset Quotes erd
3547 \end_inset
3548
3549 , and 
3550 \begin_inset Quotes eld
3551 \end_inset
3552
3553 right
3554 \begin_inset Quotes erd
3555 \end_inset
3556
3557 .
3558  The footer is also divided into these three fields.
3559  The \SpecialChar LaTeX
3560  commands to set these fields in the simplest manner are 
3561 \begin_inset Flex Code
3562 status collapsed
3563
3564 \begin_layout Plain Layout
3565
3566 \backslash
3567 lhead
3568 \end_layout
3569
3570 \end_inset
3571
3572
3573 \begin_inset Flex Code
3574 status collapsed
3575
3576 \begin_layout Plain Layout
3577
3578 \backslash
3579 chead
3580 \end_layout
3581
3582 \end_inset
3583
3584
3585 \begin_inset Flex Code
3586 status collapsed
3587
3588 \begin_layout Plain Layout
3589
3590 \backslash
3591 rhead
3592 \end_layout
3593
3594 \end_inset
3595
3596
3597 \begin_inset Flex Code
3598 status collapsed
3599
3600 \begin_layout Plain Layout
3601
3602 \backslash
3603 lfoot
3604 \end_layout
3605
3606 \end_inset
3607
3608 , etc.
3609  Suppose you wish to put your name in the upper left hand corner of each
3610  page.
3611  Simply insert the following command in the preamble: 
3612 \end_layout
3613
3614 \begin_layout Standard
3615
3616 \family typewriter
3617
3618 \backslash
3619 lhead{John Q.
3620  DocWriter}
3621 \end_layout
3622
3623 \begin_layout Standard
3624 You will now see your name in the upper left.
3625  If a field has a default entry that you would like to get rid of (often
3626  the page number appears in the central footer) simply include a command
3627  with a blank argument, e.
3628 \begin_inset space \thinspace{}
3629 \end_inset
3630
3631 g.:
3632 \end_layout
3633
3634 \begin_layout Standard
3635
3636 \family typewriter
3637
3638 \backslash
3639 cfoot{}
3640 \end_layout
3641
3642 \begin_layout Standard
3643 Let's get really fancy: lets put the section number with the word 
3644 \begin_inset Quotes eld
3645 \end_inset
3646
3647 Section
3648 \begin_inset Quotes erd
3649 \end_inset
3650
3651  (e.
3652 \begin_inset space \thinspace{}
3653 \end_inset
3654
3655 g.
3656 \begin_inset space \space{}
3657 \end_inset
3658
3659 Section 3) in the upper left, the page number (e.
3660 \begin_inset space \thinspace{}
3661 \end_inset
3662
3663 g.
3664 \begin_inset space \space{}
3665 \end_inset
3666
3667 Page 4) in the upper right, your name in the lower left, and the date in
3668  the lower right.
3669  The following commands should now appear in the preamble:
3670 \end_layout
3671
3672 \begin_layout Standard
3673
3674 \family typewriter
3675
3676 \backslash
3677 lhead{Section 
3678 \backslash
3679 thesection}
3680 \end_layout
3681
3682 \begin_layout Standard
3683
3684 \family typewriter
3685
3686 \backslash
3687 chead{}
3688 \end_layout
3689
3690 \begin_layout Standard
3691
3692 \family typewriter
3693
3694 \backslash
3695 rhead{Page 
3696 \backslash
3697 thepage}
3698 \end_layout
3699
3700 \begin_layout Standard
3701
3702 \family typewriter
3703
3704 \backslash
3705 lfoot{John Q.
3706  DocWriter}
3707 \end_layout
3708
3709 \begin_layout Standard
3710
3711 \family typewriter
3712
3713 \backslash
3714 cfoot{}
3715 \end_layout
3716
3717 \begin_layout Standard
3718
3719 \family typewriter
3720
3721 \backslash
3722 rfoot{
3723 \backslash
3724 today}
3725 \end_layout
3726
3727 \begin_layout Standard
3728 The commands 
3729 \begin_inset Flex Code
3730 status collapsed
3731
3732 \begin_layout Plain Layout
3733
3734 \backslash
3735 thesection
3736 \end_layout
3737
3738 \end_inset
3739
3740  and 
3741 \begin_inset Flex Code
3742 status collapsed
3743
3744 \begin_layout Plain Layout
3745
3746 \backslash
3747 thepage
3748 \end_layout
3749
3750 \end_inset
3751
3752  access \SpecialChar LaTeX
3753 's section and page counters, and so print out the current section
3754  and page numbers.
3755  
3756 \begin_inset Flex Code
3757 status collapsed
3758
3759 \begin_layout Plain Layout
3760
3761 \backslash
3762 today
3763 \end_layout
3764
3765 \end_inset
3766
3767  simply prints out today's date.
3768 \end_layout
3769
3770 \begin_layout Standard
3771 The thicknesses of the horizontal rules drawn beneath the header and above
3772  the footer can also be modified.
3773  If you don't want one of the rules, set its thickness to 0.
3774  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3775  Use commands
3776 \family typewriter
3777  
3778 \family default
3779 like 
3780 \begin_inset Flex Code
3781 status collapsed
3782
3783 \begin_layout Plain Layout
3784
3785 \backslash
3786 renewcommand{
3787 \backslash
3788 headrulewidth}{0.4pt}
3789 \end_layout
3790
3791 \end_inset
3792
3793  and 
3794 \begin_inset Flex Code
3795 status collapsed
3796
3797 \begin_layout Plain Layout
3798
3799 \backslash
3800 renewcommand{
3801 \backslash
3802 footrulewidth}{0.4pt}
3803 \end_layout
3804
3805 \end_inset
3806
3807  to set the thicknesses.
3808 \end_layout
3809
3810 \begin_layout Standard
3811 You can switch the header/footer settings on and off for individual pages
3812  using commands like 
3813 \begin_inset Flex Code
3814 status collapsed
3815
3816 \begin_layout Plain Layout
3817
3818 \backslash
3819 thispagestyle{empty}
3820 \end_layout
3821
3822 \end_inset
3823
3824
3825 \begin_inset Flex Code
3826 status collapsed
3827
3828 \begin_layout Plain Layout
3829
3830 \backslash
3831 thispagestyle{plain}
3832 \end_layout
3833
3834 \end_inset
3835
3836 , and 
3837 \begin_inset Flex Code
3838 status collapsed
3839
3840 \begin_layout Plain Layout
3841
3842 \backslash
3843 thispagestyle{fancy}
3844 \end_layout
3845
3846 \end_inset
3847
3848 .
3849  Simply insert them in the text on the page you want changed and mark them
3850  as \SpecialChar TeX
3851  code.
3852  In fact, title pages are marked as plain by default, while following pages
3853  are marked fancy when using the global fancy setting.
3854 \end_layout
3855
3856 \begin_layout Standard
3857 As a final example, it is possible to include an image in the header or
3858  footer.
3859  Suppose you want to put a company logo in the upper lefthand corner.
3860  You might try something like
3861 \end_layout
3862
3863 \begin_layout Standard
3864
3865 \family typewriter
3866
3867 \backslash
3868 lhead{
3869 \backslash
3870 resizebox{1in}{!}{
3871 \backslash
3872 includegraphics{logo.eps}}}
3873 \end_layout
3874
3875 \begin_layout Standard
3876 \noindent
3877 (you may need to preface this with 
3878 \begin_inset Flex Code
3879 status collapsed
3880
3881 \begin_layout Plain Layout
3882 \noindent
3883
3884 \backslash
3885 usepackage{graphics}
3886 \end_layout
3887
3888 \end_inset
3889
3890  if you don't include graphics elsewhere in your document).
3891 \end_layout
3892
3893 \begin_layout Section
3894 Itemize Bullet Selection
3895 \begin_inset CommandInset label
3896 LatexCommand label
3897 name "sec:bullet"
3898
3899 \end_inset
3900
3901
3902 \end_layout
3903
3904 \begin_layout Standard
3905 by
3906 \noun on
3907  Allan Rae
3908 \end_layout
3909
3910 \begin_layout Subsection
3911 Introduction
3912 \end_layout
3913
3914 \begin_layout Standard
3915 \SpecialChar LyX
3916  provides 216 bullet shapes that can be accessed from a simple dialog.
3917  Using this dialog you can easily specify what bullet shape to use at each
3918  level of an itemized list.
3919  These settings are document-wide so you won't be able to specify different
3920  sets of bullets for different paragraphs.
3921 \begin_inset Foot
3922 status collapsed
3923
3924 \begin_layout Plain Layout
3925 Well, actually you can but you'll have to do it by hand.
3926 \end_layout
3927
3928 \end_inset
3929
3930
3931 \end_layout
3932
3933 \begin_layout Subsection
3934 How it looks
3935 \end_layout
3936
3937 \begin_layout Standard
3938 Open the dialog by selecting the 
3939 \begin_inset Flex MenuItem
3940 status collapsed
3941
3942 \begin_layout Plain Layout
3943 Document\SpecialChar menuseparator
3944 Settings
3945 \end_layout
3946
3947 \end_inset
3948
3949  menu item and then select the 
3950 \begin_inset Flex MenuItem
3951 status collapsed
3952
3953 \begin_layout Plain Layout
3954 Bullets
3955 \end_layout
3956
3957 \end_inset
3958
3959  tab.
3960 \end_layout
3961
3962 \begin_layout Standard
3963 The dialog provides you with a table of bullet shapes.
3964  A column of buttons on the left of the table provides access to the six
3965  different panels of bullet shapes.
3966  The row of buttons across the top is used to select which bullet depth
3967  you are changing.
3968  A text entry under the table shows the currently selected bullet shape's
3969  \SpecialChar LaTeX
3970  equivalent and this can be edited if desired.
3971  If you do modify the text you will also need to specify any needed packages
3972  in the \SpecialChar LaTeX
3973  preamble.
3974 \end_layout
3975
3976 \begin_layout Standard
3977 The six panels are divided up by the packages they require.
3978  The following table shows the mappings from button name to \SpecialChar LaTeX
3979  package.
3980 \begin_inset Separator parbreak
3981 \end_inset
3982
3983
3984 \end_layout
3985
3986 \begin_layout Standard
3987 \align center
3988 \begin_inset Tabular
3989 <lyxtabular version="3" rows="7" columns="2">
3990 <features tabularvalignment="middle">
3991 <column alignment="center" valignment="top" width="0pt">
3992 <column alignment="center" valignment="top" width="0pt">
3993 <row>
3994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3995 \begin_inset Text
3996
3997 \begin_layout Plain Layout
3998
3999 \family roman
4000 \series medium
4001 \shape up
4002 \size normal
4003 \emph off
4004 \bar no
4005 \noun off
4006 \color none
4007 Button
4008 \end_layout
4009
4010 \end_inset
4011 </cell>
4012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4013 \begin_inset Text
4014
4015 \begin_layout Plain Layout
4016
4017 \family roman
4018 \series medium
4019 \shape up
4020 \size normal
4021 \emph off
4022 \bar no
4023 \noun off
4024 \color none
4025 Packages Required
4026 \end_layout
4027
4028 \end_inset
4029 </cell>
4030 </row>
4031 <row>
4032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4033 \begin_inset Text
4034
4035 \begin_layout Plain Layout
4036
4037 \family sans
4038 \series medium
4039 \shape up
4040 \size normal
4041 \emph off
4042 \bar no
4043 \noun off
4044 \color none
4045 Standard
4046 \end_layout
4047
4048 \end_inset
4049 </cell>
4050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4051 \begin_inset Text
4052
4053 \begin_layout Plain Layout
4054
4055 \series medium
4056 \shape up
4057 \size normal
4058 \emph off
4059 \bar no
4060 \noun off
4061 \color none
4062 base \SpecialChar LaTeX
4063
4064 \end_layout
4065
4066 \end_inset
4067 </cell>
4068 </row>
4069 <row>
4070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4071 \begin_inset Text
4072
4073 \begin_layout Plain Layout
4074
4075 \family sans
4076 \series medium
4077 \shape up
4078 \size normal
4079 \emph off
4080 \bar no
4081 \noun off
4082 \color none
4083 Maths
4084 \end_layout
4085
4086 \end_inset
4087 </cell>
4088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4089 \begin_inset Text
4090
4091 \begin_layout Plain Layout
4092
4093 \family typewriter
4094 \series medium
4095 \shape up
4096 \size normal
4097 \emph off
4098 \bar no
4099 \noun off
4100 \color none
4101 amssymb.sty
4102 \end_layout
4103
4104 \end_inset
4105 </cell>
4106 </row>
4107 <row>
4108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4109 \begin_inset Text
4110
4111 \begin_layout Plain Layout
4112
4113 \family sans
4114 \series medium
4115 \shape up
4116 \size normal
4117 \emph off
4118 \bar no
4119 \noun off
4120 \color none
4121 Ding1
4122 \end_layout
4123
4124 \end_inset
4125 </cell>
4126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4127 \begin_inset Text
4128
4129 \begin_layout Plain Layout
4130
4131 \family typewriter
4132 \series medium
4133 \shape up
4134 \size normal
4135 \emph off
4136 \bar no
4137 \noun off
4138 \color none
4139 pifont.sty
4140 \end_layout
4141
4142 \end_inset
4143 </cell>
4144 </row>
4145 <row>
4146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4147 \begin_inset Text
4148
4149 \begin_layout Plain Layout
4150
4151 \family sans
4152 \series medium
4153 \shape up
4154 \size normal
4155 \emph off
4156 \bar no
4157 \noun off
4158 \color none
4159 Ding2
4160 \end_layout
4161
4162 \end_inset
4163 </cell>
4164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4165 \begin_inset Text
4166
4167 \begin_layout Plain Layout
4168
4169 \family typewriter
4170 \series medium
4171 \shape up
4172 \size normal
4173 \emph off
4174 \bar no
4175 \noun off
4176 \color none
4177 pifont.sty
4178 \end_layout
4179
4180 \end_inset
4181 </cell>
4182 </row>
4183 <row>
4184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4185 \begin_inset Text
4186
4187 \begin_layout Plain Layout
4188
4189 \family sans
4190 \series medium
4191 \shape up
4192 \size normal
4193 \emph off
4194 \bar no
4195 \noun off
4196 \color none
4197 Ding3
4198 \end_layout
4199
4200 \end_inset
4201 </cell>
4202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4203 \begin_inset Text
4204
4205 \begin_layout Plain Layout
4206
4207 \family typewriter
4208 \series medium
4209 \shape up
4210 \size normal
4211 \emph off
4212 \bar no
4213 \noun off
4214 \color none
4215 pifont.sty
4216 \end_layout
4217
4218 \end_inset
4219 </cell>
4220 </row>
4221 <row>
4222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4223 \begin_inset Text
4224
4225 \begin_layout Plain Layout
4226
4227 \family sans
4228 \series medium
4229 \shape up
4230 \size normal
4231 \emph off
4232 \bar no
4233 \noun off
4234 \color none
4235 Ding4
4236 \end_layout
4237
4238 \end_inset
4239 </cell>
4240 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4241 \begin_inset Text
4242
4243 \begin_layout Plain Layout
4244
4245 \family typewriter
4246 \series medium
4247 \shape up
4248 \size normal
4249 \emph off
4250 \bar no
4251 \noun off
4252 \color none
4253 pifont.sty
4254 \end_layout
4255
4256 \end_inset
4257 </cell>
4258 </row>
4259 </lyxtabular>
4260
4261 \end_inset
4262
4263
4264 \end_layout
4265
4266 \begin_layout Standard
4267 \SpecialChar LyX
4268  doesn't stop you using bullets from packages you don't have.
4269  If you get errors from \SpecialChar LaTeX
4270  when you try to view or print the file, then it
4271  is likely you are missing a package.
4272 \begin_inset Foot
4273 status collapsed
4274
4275 \begin_layout Plain Layout
4276 \SpecialChar LyX
4277  doesn't restrict your use since you may be editing locally and exporting
4278  elsewhere.
4279 \end_layout
4280
4281 \end_inset
4282
4283
4284 \end_layout
4285
4286 \begin_layout Subsection
4287 How to use it
4288 \end_layout
4289
4290 \begin_layout Standard
4291 Select which bullet depth you want to change then select the bullet shape
4292  and size.
4293  Any changes will not be visible in \SpecialChar LyX
4294 , but are visible when viewing the document.
4295 \end_layout
4296
4297 \begin_layout Standard
4298 You can reset a bullet shape to the default simply by clicking your right
4299  mouse button on the appropriate bullet depth button.
4300 \begin_inset Foot
4301 status collapsed
4302
4303 \begin_layout Plain Layout
4304 If you 
4305 \emph on
4306 really
4307 \emph default
4308  want to have multiple sets of paragraphs with different sets of bullets
4309  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4310  code.
4311  The bullet selection dialog can help though because it provides you with
4312  the \SpecialChar LaTeX
4313  code for a wide range of bullet shapes.
4314  To make your own custom paragraphs you have the following options:
4315 \end_layout
4316
4317 \begin_layout Plain Layout
4318 \begin_inset ERT
4319 status open
4320
4321 \begin_layout Plain Layout
4322
4323
4324 \backslash
4325 let
4326 \backslash
4327 savelabelitemi=
4328 \backslash
4329 labelitemi
4330 \end_layout
4331
4332 \end_inset
4333
4334
4335 \end_layout
4336
4337 \begin_layout Plain Layout
4338 \begin_inset ERT
4339 status open
4340
4341 \begin_layout Plain Layout
4342
4343
4344 \backslash
4345 renewcommand
4346 \backslash
4347 labelitemi[0]{
4348 \backslash
4349 small
4350 \backslash
4351 (
4352 \backslash
4353 sharp
4354 \backslash
4355 )}
4356 \end_layout
4357
4358 \end_inset
4359
4360
4361 \end_layout
4362
4363 \begin_layout Itemize
4364 Use the \SpecialChar LaTeX
4365  command 
4366 \begin_inset Flex Code
4367 status collapsed
4368
4369 \begin_layout Plain Layout
4370
4371 \backslash
4372 renewcommand{}{}
4373 \end_layout
4374
4375 \end_inset
4376
4377  to specify a new bullet shape for a given depth.
4378  You'll also need to save the current bullet shape so you can restore it
4379  again afterwards.
4380  In this itemized list the following \SpecialChar LaTeX
4381  code was used to change the bullet
4382  used for the first depth.
4383 \begin_inset Separator parbreak
4384 \end_inset
4385
4386
4387 \end_layout
4388
4389 \begin_deeper
4390 \begin_layout LyX-Code
4391
4392 \backslash
4393 let
4394 \backslash
4395 savelabelitemi=
4396 \backslash
4397 labelitemi 
4398 \end_layout
4399
4400 \begin_layout LyX-Code
4401
4402 \backslash
4403 renewcommand
4404 \backslash
4405 labelitemi[0]{
4406 \backslash
4407 small
4408 \backslash
4409 (
4410 \backslash
4411 sharp
4412 \backslash
4413 )}
4414 \end_layout
4415
4416 \end_deeper
4417 \begin_layout Itemize
4418 Note that the itemize depth is specified in Roman numerals as part of the
4419  
4420 \family typewriter
4421
4422 \backslash
4423 labelitem
4424 \family default
4425  command.
4426 \end_layout
4427
4428 \begin_layout Itemize
4429 \begin_inset ERT
4430 status open
4431
4432 \begin_layout Plain Layout
4433
4434 [
4435 \backslash
4436 (
4437 \backslash
4438 star
4439 \backslash
4440 )]
4441 \end_layout
4442
4443 \end_inset
4444
4445  Specify each individual entry by starting each item with the bullet shape
4446  enclosed in square brackets and set as 
4447 \begin_inset Flex MenuItem
4448 status collapsed
4449
4450 \begin_layout Plain Layout
4451 \SpecialChar TeX
4452  Code
4453 \end_layout
4454
4455 \end_inset
4456
4457 .
4458  For example, this item was started with 
4459 \begin_inset Flex Code
4460 status collapsed
4461
4462 \begin_layout Plain Layout
4463 [
4464 \backslash
4465 (
4466 \backslash
4467 star
4468 \backslash
4469 )]
4470 \end_layout
4471
4472 \end_inset
4473
4474 .
4475 \end_layout
4476
4477 \begin_layout Plain Layout
4478 \begin_inset ERT
4479 status open
4480
4481 \begin_layout Plain Layout
4482
4483
4484 \backslash
4485 renewcommand
4486 \backslash
4487 labelitemi[0]{
4488 \backslash
4489 savelabelitemi}
4490 \end_layout
4491
4492 \end_inset
4493
4494
4495 \end_layout
4496
4497 \begin_layout Plain Layout
4498 You'll also need to revert the labelitem back to its previous setting for
4499  the global bullet shape settings to remain in effect.
4500  The way used here was:
4501 \end_layout
4502
4503 \begin_layout LyX-Code
4504
4505 \backslash
4506 renewcommand
4507 \backslash
4508 labelitemi[0]{
4509 \backslash
4510 savelabelitemi}
4511 \end_layout
4512
4513 \end_inset
4514
4515
4516 \end_layout
4517
4518 \begin_layout Chapter
4519 \SpecialChar LyX
4520  and the World Wide Web
4521 \end_layout
4522
4523 \begin_layout Standard
4524 \SpecialChar LyX
4525  has long supported the export of documents to various web-friendly formats,
4526  such as HTML.
4527  Before verson 2.0, however, HTML export was always accomplished by the use
4528  of external converters.
4529 \begin_inset Foot
4530 status collapsed
4531
4532 \begin_layout Plain Layout
4533 For details on the use of external converters with \SpecialChar LyX
4534 , see the 
4535 \emph on
4536 Converters
4537 \emph default
4538  section of the Customization manual.
4539 \end_layout
4540
4541 \end_inset
4542
4543  These fall into two large groups: there are converters that use \SpecialChar LaTeX
4544  as an
4545  intermediate format, such as 
4546 \begin_inset Flex Code
4547 status collapsed
4548
4549 \begin_layout Plain Layout
4550 htlatex
4551 \end_layout
4552
4553 \end_inset
4554
4555
4556 \begin_inset Flex Code
4557 status collapsed
4558
4559 \begin_layout Plain Layout
4560 html2latex
4561 \end_layout
4562
4563 \end_inset
4564
4565 , and 
4566 \begin_inset Flex Code
4567 status collapsed
4568
4569 \begin_layout Plain Layout
4570 plastex
4571 \end_layout
4572
4573 \end_inset
4574
4575 , relying upon \SpecialChar LyX
4576  to produce the \SpecialChar LaTeX
4577 ; and there is a converter that works directly
4578  on \SpecialChar LyX
4579  files, 
4580 \begin_inset Flex Code
4581 status collapsed
4582
4583 \begin_layout Plain Layout
4584 e\SpecialChar LyX
4585 er
4586 \end_layout
4587
4588 \end_inset
4589
4590 .
4591  All of these have different advantages and disadvantages.
4592  
4593 \end_layout
4594
4595 \begin_layout Standard
4596 The \SpecialChar LaTeX
4597 -based converters have the advantage that, in principle, they know everythin
4598 g about the exported document that \SpecialChar LaTeX
4599  does.
4600  Such converters do not care, for example, if a certain block of code was
4601  produced by \SpecialChar LyX
4602  or was Evil Red Text.
4603  These converters know about 
4604 \begin_inset Flex Code
4605 status collapsed
4606
4607 \begin_layout Plain Layout
4608 aux
4609 \end_layout
4610
4611 \end_inset
4612
4613  files, counters, and references, and can often make use of the 
4614 \begin_inset Flex Code
4615 status collapsed
4616
4617 \begin_layout Plain Layout
4618 bbl
4619 \end_layout
4620
4621 \end_inset
4622
4623  files generated by Bib\SpecialChar TeX
4624 .
4625  On the other hand, \SpecialChar LaTeX
4626  is a very hard language to parse—it is sometimes said
4627  that only \SpecialChar TeX
4628  itself understands \SpecialChar TeX
4629 —and \SpecialChar LaTeX
4630 -based converters will often choke on
4631  what seem to be quite simple constructs; complex ones can throw them completely
4632 , and as of this writing, for example, the 
4633 \emph on
4634 Embedded Objects
4635 \emph default
4636  manual will not export with 
4637 \begin_inset Flex Code
4638 status collapsed
4639
4640 \begin_layout Plain Layout
4641 htlatex
4642 \end_layout
4643
4644 \end_inset
4645
4646 , though the others will.
4647  The other issue concerns how math is handled.
4648  These converters typically convert the formulae into little pictures that
4649  are then linked from the HTML document.
4650  Since these are actually generated by \SpecialChar LaTeX
4651 , they are accurate.
4652  But they do not scale well, and just getting them to look as if they are
4653  actually meant to be in your document—so that the font sizes seem to be
4654  roughly the same—can be a challenge.
4655 \end_layout
4656
4657 \begin_layout Standard
4658 Alex Fernandez's 
4659 \begin_inset Flex Code
4660 status collapsed
4661
4662 \begin_layout Plain Layout
4663 e\SpecialChar LyX
4664 er
4665 \end_layout
4666
4667 \end_inset
4668
4669  (
4670 \begin_inset CommandInset href
4671 LatexCommand href
4672 name "http://elyxer.nongnu.org/"
4673 target "http://elyxer.nongnu.org/"
4674
4675 \end_inset
4676
4677 ) solves some of these problems.
4678  In particular, the formulae it produces scale perfectly, since it renders
4679  math using a combination of HTML and CSS rather than converting the formulae
4680  to images.
4681  But even moderately complex formula are rendered less well than with 
4682 \begin_inset Flex Code
4683 status collapsed
4684
4685 \begin_layout Plain Layout
4686 htlatex
4687 \end_layout
4688
4689 \end_inset
4690
4691 ; this reflects the limitations of HTML.
4692 \begin_inset Foot
4693 status collapsed
4694
4695 \begin_layout Plain Layout
4696 That said, 
4697 \begin_inset Flex Code
4698 status collapsed
4699
4700 \begin_layout Plain Layout
4701 e\SpecialChar LyX
4702 er
4703 \end_layout
4704
4705 \end_inset
4706
4707  can also use jsMath and MathJax for equations, but this setting is only
4708  available globally and requires one to have access to a server that runs
4709  the backend.
4710 \end_layout
4711
4712 \end_inset
4713
4714  More importantly (as of version 1.1.1, at least), 
4715 \begin_inset Flex Code
4716 status collapsed
4717
4718 \begin_layout Plain Layout
4719 e\SpecialChar LyX
4720 er
4721 \end_layout
4722
4723 \end_inset
4724
4725  has limited support for math macros and no support for user-defined paragraph
4726  or character styles.
4727  These limitations make 
4728 \begin_inset Flex Code
4729 status collapsed
4730
4731 \begin_layout Plain Layout
4732 e\SpecialChar LyX
4733 er
4734 \end_layout
4735
4736 \end_inset
4737
4738  unsuitable for many of the documents \SpecialChar LyX
4739  users produce.
4740  In principle, of course, these problems could be solved, but the \SpecialChar LyX
4741  developers
4742  have decided to follow a different path and have made \SpecialChar LyX
4743  itself capable of
4744  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
4745 , DocBook, and plaintext.
4746 \end_layout
4747
4748 \begin_layout Standard
4749 As of this writing, XHTML output remains under development and should probably
4750  be regarded as 
4751 \begin_inset Quotes eld
4752 \end_inset
4753
4754 experimental
4755 \begin_inset Quotes erd
4756 \end_inset
4757
4758 .
4759 \begin_inset Foot
4760 status collapsed
4761
4762 \begin_layout Plain Layout
4763 The file 
4764 \begin_inset Flex Code
4765 status collapsed
4766
4767 \begin_layout Plain Layout
4768 development/HTML.notes
4769 \end_layout
4770
4771 \end_inset
4772
4773 , which can be found in the \SpecialChar LyX
4774  source tree or 
4775 \begin_inset CommandInset href
4776 LatexCommand href
4777 name "accessed online"
4778 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
4779
4780 \end_inset
4781
4782 , usually contains up-to-date information about the state of XHTML output.
4783  See also the list of XHTML bugs on 
4784 \begin_inset CommandInset href
4785 LatexCommand href
4786 name "the bug tracker"
4787 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"
4788
4789 \end_inset
4790
4791 .
4792 \end_layout
4793
4794 \end_inset
4795
4796  Still, the developers have chosen this approach because it has several
4797  potential advantages over the other two.
4798 \end_layout
4799
4800 \begin_layout Standard
4801 These advantages are primarily due to the fact that the XHTML output routines,
4802  since they are part of \SpecialChar LyX
4803 , know everything \SpecialChar LyX
4804  knows about the document being
4805  exported.
4806 \begin_inset Foot
4807 status collapsed
4808
4809 \begin_layout Plain Layout
4810 Another advantage is that, since these routines are internal to \SpecialChar LyX
4811 , they are
4812  immune to changes in \SpecialChar LyX
4813 's file format, or to changes in the semantics of
4814  existing insets.
4815 \end_layout
4816
4817 \end_inset
4818
4819  So they know about the table of contents (as displayed in the outline),
4820  about the counters associated with different paragraph styles, and about
4821  user-defined styles.
4822  The XHTML output routines know what \SpecialChar LyX
4823  knows about internationalization,
4824  too, so they will output 
4825 \begin_inset Quotes eld
4826 \end_inset
4827
4828 Chapter 1
4829 \begin_inset Quotes erd
4830 \end_inset
4831
4832  or 
4833 \begin_inset Quotes eld
4834 \end_inset
4835
4836
4837 \lang ngerman
4838 Kapitel
4839 \lang english
4840  1
4841 \begin_inset Quotes erd
4842 \end_inset
4843
4844 , depending upon the language in effect at the time.
4845  
4846 \end_layout
4847
4848 \begin_layout Standard
4849 Quite generally, the output routines know what \SpecialChar LyX
4850  knows about document layout,
4851  that is, about how the document is to be rendered on screen.
4852  We use this information when we output the document as XHTML.
4853  In particular, \SpecialChar LyX
4854  
4855 \emph on
4856 automatically
4857 \emph default
4858  generates CSS style information corresponding to the layout information
4859  it uses to render the document on screen: if section headings are supposed
4860  to be sans-serif and bold as seen in \SpecialChar LyX
4861 , then (by default) they will be sans-seri
4862 f and bold when viewed in a web browser, too.
4863  And this is true not just for pre-defined styles, like Section, but for
4864  any style, including user-defined styles.
4865  Indeed, the XHTML output routines make no distinction between user-defined
4866  paragraph and character styles and \SpecialChar LyX
4867 's own pre-defined styles: in each case,
4868  everything \SpecialChar LyX
4869  knows about the styles is contained in the layout files.
4870  And much the same is true as regards pre-defined textual insets, such as
4871  footnotes, and various custom insets.
4872  
4873 \end_layout
4874
4875 \begin_layout Standard
4876 The result is that XHTML output can be customized and extended in exactly
4877  the same way \SpecialChar LaTeX
4878  output can be customized and extended: through layout files
4879  and modules.
4880  See chapter five of the 
4881 \emph on
4882 Customization 
4883 \emph default
4884 manual for the details.
4885 \end_layout
4886
4887 \begin_layout Standard
4888 The remainder of this chapter contains more detailed information on XHTML
4889  output, its limitations, and ways to work around those limitations.
4890 \end_layout
4891
4892 \begin_layout Section
4893 Math Output in XHTML
4894 \end_layout
4895
4896 \begin_layout Standard
4897 \SpecialChar LyX
4898  offers four choices for how math is rendered.
4899  These have various advantages and disadvantages:
4900 \end_layout
4901
4902 \begin_layout Itemize
4903 MathML
4904 \begin_inset Newline newline
4905 \end_inset
4906
4907 MathML is a dialect of XML designed specifically for mathematics on the
4908  web, and it typically renders very well in browsers that support it.
4909  The disadvantage is that not all browsers support MathML, and support is
4910  not complete even in the Gecko-based browsers, such as Firefox.
4911 \begin_inset Newline newline
4912 \end_inset
4913
4914 If \SpecialChar LyX
4915  is unable to render a formula as MathML—for example, if the formula
4916  uses the 
4917 \begin_inset Flex Code
4918 status collapsed
4919
4920 \begin_layout Plain Layout
4921 xymatrix
4922 \end_layout
4923
4924 \end_inset
4925
4926  package or ERT—then it will instead output the formula as an image.
4927  
4928 \end_layout
4929
4930 \begin_layout Itemize
4931 HTML
4932 \begin_inset Newline newline
4933 \end_inset
4934
4935 As mentioned above, 
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  outputs math as HTML, styled by CSS.
4946 \begin_inset Foot
4947 status collapsed
4948
4949 \begin_layout Plain Layout
4950 \SpecialChar LyX
4951  has borrowed some of the CSS for its HTML output from 
4952 \begin_inset Flex Code
4953 status collapsed
4954
4955 \begin_layout Plain Layout
4956 elyxer
4957 \end_layout
4958
4959 \end_inset
4960
4961 .
4962 \end_layout
4963
4964 \end_inset
4965
4966  For simple formulae, this can work quite well, though with more complicated
4967  formulae it tends to break down.
4968  Still, this method has the advantage that it is very widely supported and
4969  so it may be appropriate for documents that contain only a little, fairly
4970  simple math.
4971 \begin_inset Newline newline
4972 \end_inset
4973
4974 If Lyx is unable to render a formula as HTML—for example, if the formula
4975  uses the 
4976 \begin_inset Flex Code
4977 status collapsed
4978
4979 \begin_layout Plain Layout
4980 xymatrix
4981 \end_layout
4982
4983 \end_inset
4984
4985  package or ERT—then it will instead output the formula as an image.
4986  
4987 \end_layout
4988
4989 \begin_layout Itemize
4990 Images
4991 \begin_inset Newline newline
4992 \end_inset
4993
4994 Like 
4995 \begin_inset Flex Code
4996 status collapsed
4997
4998 \begin_layout Plain Layout
4999 htlatex
5000 \end_layout
5001
5002 \end_inset
5003
5004 , \SpecialChar LyX
5005  will output formulae as images, the very same images, in fact, that are
5006  used for instant preview.
5007 \begin_inset Foot
5008 status collapsed
5009
5010 \begin_layout Plain Layout
5011 Instant preview does 
5012 \emph on
5013 not 
5014 \emph default
5015 have to be on for images to be output, however.
5016 \end_layout
5017
5018 \end_inset
5019
5020  The advantage to this method is that the images are simply generated by
5021  \SpecialChar LaTeX
5022 , so they are very accurate.
5023  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5024  so they do not scale terribly well, and one cannot copy them, etc.
5025  (As of this writing, there are also problems about equation numbering.
5026  See 
5027 \begin_inset CommandInset href
5028 LatexCommand href
5029 name "bug 6894"
5030 target "http://www.lyx.org/trac/ticket/6894"
5031
5032 \end_inset
5033
5034 .)
5035 \begin_inset Newline newline
5036 \end_inset
5037
5038 The size of the images can be controlled by setting the 
5039 \begin_inset Quotes eld
5040 \end_inset
5041
5042 Math Images Scaling
5043 \begin_inset Quotes erd
5044 \end_inset
5045
5046  parameter under 
5047 \begin_inset Flex MenuItem
5048 status collapsed
5049
5050 \begin_layout Plain Layout
5051 Document\SpecialChar menuseparator
5052 Settings\SpecialChar menuseparator
5053 Output
5054 \end_layout
5055
5056 \end_inset
5057
5058 .
5059 \begin_inset Foot
5060 status collapsed
5061
5062 \begin_layout Plain Layout
5063 For those who want to know, this controls the resolution of the image in
5064  dots per inch and is based upon a default of 75 dpi.
5065 \end_layout
5066
5067 \end_inset
5068
5069
5070 \begin_inset Newline newline
5071 \end_inset
5072
5073 If \SpecialChar LyX
5074  for some reason fails to create an image for a formula (e.g., if a required
5075  \SpecialChar LaTeX
5076  package is not installed), then it will fall back to outputing the raw
5077  \SpecialChar LaTeX
5078 .
5079 \end_layout
5080
5081 \begin_layout Itemize
5082 \SpecialChar LaTeX
5083
5084 \begin_inset Newline newline
5085 \end_inset
5086
5087 Finally, \SpecialChar LyX
5088  will happily output math as \SpecialChar LaTeX
5089 .
5090  As well as being the output of last resort, this method can be used with
5091  such tools as 
5092 \begin_inset CommandInset href
5093 LatexCommand href
5094 name "jsMath"
5095 target "http://www.math.union.edu/~dpvc/jsMath/"
5096
5097 \end_inset
5098
5099 , which uses JavaScript to render \SpecialChar LaTeX
5100  embedded in HTML documents.
5101  \SpecialChar LyX
5102  wraps the \SpecialChar LaTeX
5103  in either a 
5104 \begin_inset Flex Code
5105 status collapsed
5106
5107 \begin_layout Plain Layout
5108 span
5109 \end_layout
5110
5111 \end_inset
5112
5113  (for inline formulas) or 
5114 \begin_inset Flex Code
5115 status collapsed
5116
5117 \begin_layout Plain Layout
5118 div
5119 \end_layout
5120
5121 \end_inset
5122
5123  (for displayed formulas) with 
5124 \begin_inset Flex Code
5125 status collapsed
5126
5127 \begin_layout Plain Layout
5128 class='math'
5129 \end_layout
5130
5131 \end_inset
5132
5133 , as is required for jsMath.
5134 \end_layout
5135
5136 \begin_layout Standard
5137 One of these output methods must be selected under 
5138 \begin_inset Flex MenuItem
5139 status collapsed
5140
5141 \begin_layout Plain Layout
5142 Document\SpecialChar menuseparator
5143 Settings\SpecialChar menuseparator
5144 Output
5145 \end_layout
5146
5147 \end_inset
5148
5149 .
5150  By default, \SpecialChar LyX
5151  outputs MathML.
5152  This is a document-wide setting, therefore.
5153 \end_layout
5154
5155 \begin_layout Standard
5156 Eventually, \SpecialChar LyX
5157  will offer the user the option to select an alternate output
5158  method for a particular inset, say, one that isn't being rendered very
5159  well by MathML.
5160 \begin_inset Foot
5161 status collapsed
5162
5163 \begin_layout Plain Layout
5164 That said, since \SpecialChar LyX
5165  falls back to images if the inset contains ERT, then one
5166  can force output as an image by putting some harmless ERT into the math,
5167  for example: 
5168 \begin_inset Formula $a=b\relax$
5169 \end_inset
5170
5171 .
5172 \end_layout
5173
5174 \end_inset
5175
5176
5177 \end_layout
5178
5179 \begin_layout Section
5180 Bibliography and Citations
5181 \end_layout
5182
5183 \begin_layout Standard
5184 XHTML output fully supports bibliographies and citations.
5185  
5186 \end_layout
5187
5188 \begin_layout Standard
5189 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5190 's on-screen
5191  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5192 , though
5193  better.
5194  If you are using numerical citations, then \SpecialChar LyX
5195  will output numerical labels,
5196  such as [1] or [17], rather than simply showing the citation key in square
5197  brackets, as it does on-screen.
5198  If you are using author-year citations, then \SpecialChar LyX
5199  will add lowercase letters
5200  to the years, just as Bib\SpecialChar TeX
5201  does, if it finds more than one citation for
5202  a given author-year combination.
5203  The labels will be printed with the bibliography entries.
5204  Note that there is, at present, no way to customize the appearance of the
5205  labels, for example, to choose between square brackets and parentheses.
5206 \end_layout
5207
5208 \begin_layout Standard
5209 Bibliography output is handled by the same machinery that handles the presentati
5210 on of reference information in the citation dialog, so you will see in the
5211  XHTML output pretty much what you would see if you were to look at a given
5212  entry in the citation dialog.
5213  The formatting can be customized in your layout file or, preferably, in
5214  a module.
5215  See the 
5216 \emph on
5217 Customization
5218 \emph default
5219  manual for the details.
5220 \end_layout
5221
5222 \begin_layout Standard
5223 The main defect at present is that cross-referenced information is printed
5224  with every entry with which it is associated.
5225  So you can see things like this:
5226 \end_layout
5227
5228 \begin_layout Quote
5229 Jason Stanley, 
5230 \begin_inset Quotes eld
5231 \end_inset
5232
5233 Context and Logical Form
5234 \begin_inset Quotes erd
5235 \end_inset
5236
5237 , in 
5238 \emph on
5239 Language in Context: Selected Essays
5240 \emph default
5241  (Oxford: Oxford University Press, 2007), pp.
5242  30–68.
5243 \end_layout
5244
5245 \begin_layout Quote
5246 Jason Stanley, 
5247 \begin_inset Quotes eld
5248 \end_inset
5249
5250 Semantics in Context
5251 \begin_inset Quotes erd
5252 \end_inset
5253
5254 , in 
5255 \emph on
5256 Language in Context: Selected Essays
5257 \emph default
5258  (Oxford: Oxford University Press, 2007), pp.
5259  201–30.
5260 \end_layout
5261
5262 \begin_layout Standard
5263 This should be fixed before long.
5264 \end_layout
5265
5266 \begin_layout Standard
5267 There is no support at present for sectioned bibliographies.
5268  If you have multiple bibliographies, then \SpecialChar LyX
5269  will print the same bibliography
5270  over and over.
5271 \end_layout
5272
5273 \begin_layout Section
5274 Indexes
5275 \end_layout
5276
5277 \begin_layout Standard
5278 \SpecialChar LyX
5279  will happily export indexes as XHTML, but with certain limitations at the
5280  moment.
5281 \end_layout
5282
5283 \begin_layout Standard
5284 Index export will be most reliable when you do not attempt to use the fancy
5285  constructs that are described in the section on indexes in the 
5286 \emph on
5287 User's Guide
5288 \emph default
5289 .
5290 \begin_inset Foot
5291 status collapsed
5292
5293 \begin_layout Plain Layout
5294 The main issue here is that \SpecialChar LyX
5295  itself does not really handle these.
5296  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5297 .
5298 \end_layout
5299
5300 \end_inset
5301
5302  We'll describe how they are handled using the subsection headings from
5303  that section.
5304 \end_layout
5305
5306 \begin_layout Itemize
5307 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5308  makes an effort to support these,
5309  but the entries must be separated by 
5310 \begin_inset Quotes eld
5311 \end_inset
5312
5313  ! 
5314 \begin_inset Quotes erd
5315 \end_inset
5316
5317 , that is, there must be spaces around the exclamation point.
5318  This is because it is otherwise too difficult to check for escaped exclamation
5319  points, ones in math, and so forth.
5320 \end_layout
5321
5322 \begin_layout Itemize
5323 Page Ranges: There is no support at all for page ranges, since these make
5324  no sense with XHMTL.
5325  Instead, you will just get two index entries, one at either end.
5326 \end_layout
5327
5328 \begin_layout Itemize
5329 Cross-referencing: There is no support for cross-referencing.
5330  If \SpecialChar LyX
5331  finds an entry containing the 
5332 \begin_inset Quotes eld
5333 \end_inset
5334
5335 |see\SpecialChar ldots
5336
5337 \begin_inset Quotes erd
5338 \end_inset
5339
5340  construct, it is just dropped, and the rest is treated as an ordinary index
5341  entry.
5342 \end_layout
5343
5344 \begin_layout Itemize
5345 Index Entry Order: \SpecialChar LyX
5346  does support attempts to fix the sorting order.
5347  It will take what is before the first `@' it finds and use that for sorting,
5348  taking what follows the first `@' to be the actual entry.
5349  At present, \SpecialChar LyX
5350  does not check for escaped `@', so do not try to index email
5351  addresses.
5352 \end_layout
5353
5354 \begin_layout Itemize
5355 Index Entry Layout: You can format entries by using the text style dialog,
5356  or by using any other method available within \SpecialChar LyX
5357  itself.
5358  There is no support for constructs like: 
5359 \begin_inset Quotes eld
5360 \end_inset
5361
5362 entry|textbf
5363 \begin_inset Quotes erd
5364 \end_inset
5365
5366 .
5367  Indeed, if \SpecialChar LyX
5368  finds a pipe symbol, `|', in an entry, it will delete it and
5369  everything that follows it.
5370 \end_layout
5371
5372 \begin_layout Itemize
5373 Multiple Indexes: There is no support for multiple indexes.
5374  Rather, all index entries will be printed as one large index.
5375  To avoid our printing several versions of the index, we print only the
5376  main index, so make sure you have one.
5377 \end_layout
5378
5379 \begin_layout Section
5380 Nomenclature and Glossary
5381 \end_layout
5382
5383 \begin_layout Standard
5384 There is at present no support for glossaries.
5385  Adding it would be fairly trivial, and welcome.
5386 \end_layout
5387
5388 \begin_layout Chapter
5389 The \SpecialChar LyX
5390  Server
5391 \end_layout
5392
5393 \begin_layout Section
5394 Introduction
5395 \end_layout
5396
5397 \begin_layout Standard
5398 The `\SpecialChar LyX
5399  server' allows other programs to talk to \SpecialChar LyX
5400 , invoke \SpecialChar LyX
5401  commands, and retrieve
5402  information about the \SpecialChar LyX
5403  internal state.
5404  This is only intended for advanced users, but they should find it useful.
5405  It is by writing to the \SpecialChar LyX
5406  server, for example, that bibliography managers,
5407  such as JabRef, are able to 
5408 \begin_inset Quotes eld
5409 \end_inset
5410
5411 push
5412 \begin_inset Quotes erd
5413 \end_inset
5414
5415  citations to \SpecialChar LyX
5416 .
5417 \end_layout
5418
5419 \begin_layout Section
5420 Starting the \SpecialChar LyX
5421  Server
5422 \end_layout
5423
5424 \begin_layout Standard
5425 The \SpecialChar LyX
5426  server works through the use of a pair of named pipes.
5427  These are usually located in 
5428 \begin_inset Flex Code
5429 status collapsed
5430
5431 \begin_layout Plain Layout
5432 UserDir
5433 \end_layout
5434
5435 \end_inset
5436
5437 , (except on Windows, where 
5438 \emph on
5439 local
5440 \emph default
5441  named pipes are special objects located in 
5442 \begin_inset Flex Code
5443 status collapsed
5444
5445 \begin_layout Plain Layout
5446
5447 \backslash
5448
5449 \backslash
5450 .
5451 \backslash
5452 pipe
5453 \end_layout
5454
5455 \end_inset
5456
5457 ) and have the names 
5458 \begin_inset Quotes eld
5459 \end_inset
5460
5461
5462 \begin_inset Flex Code
5463 status collapsed
5464
5465 \begin_layout Plain Layout
5466 lyxpipe.in
5467 \end_layout
5468
5469 \end_inset
5470
5471
5472 \begin_inset Quotes erd
5473 \end_inset
5474
5475  and 
5476 \begin_inset Quotes eld
5477 \end_inset
5478
5479
5480 \begin_inset Flex Code
5481 status collapsed
5482
5483 \begin_layout Plain Layout
5484 lyxpipe.out
5485 \end_layout
5486
5487 \end_inset
5488
5489
5490 \begin_inset Quotes erd
5491 \end_inset
5492
5493 .
5494  External programs write into 
5495 \begin_inset Flex Code
5496 status collapsed
5497
5498 \begin_layout Plain Layout
5499 lyxpipe.in
5500 \end_layout
5501
5502 \end_inset
5503
5504  and read back data from 
5505 \begin_inset Flex Code
5506 status collapsed
5507
5508 \begin_layout Plain Layout
5509 lyxpipe.out
5510 \end_layout
5511
5512 \end_inset
5513
5514 .
5515  The stem of the pipe names can be defined in the 
5516 \begin_inset Flex MenuItem
5517 status collapsed
5518
5519 \begin_layout Plain Layout
5520 Tools\SpecialChar menuseparator
5521 Preferences
5522 \end_layout
5523
5524 \end_inset
5525
5526  dialog, for example 
5527 \begin_inset Flex Code
5528 status collapsed
5529
5530 \begin_layout Plain Layout
5531 "/home/myhome/lyxpipe"
5532 \end_layout
5533
5534 \end_inset
5535
5536 , or 
5537 \begin_inset Flex Code
5538 status collapsed
5539
5540 \begin_layout Plain Layout
5541 "
5542 \backslash
5543
5544 \backslash
5545 .
5546 \backslash
5547 pipe
5548 \backslash
5549 lyxpipe"
5550 \end_layout
5551
5552 \end_inset
5553
5554  on Windows (where any working path instead of lyxpipe can be used, for
5555  example 
5556 \begin_inset Flex Code
5557 status collapsed
5558
5559 \begin_layout Plain Layout
5560 "
5561 \backslash
5562
5563 \backslash
5564 .
5565 \backslash
5566 pipe
5567 \backslash
5568 my
5569 \backslash
5570 lyx
5571 \backslash
5572 pipe"
5573 \end_layout
5574
5575 \end_inset
5576
5577  would also work).
5578  You 
5579 \emph on
5580 must
5581 \emph default
5582  configure this manually in order for the server to start.
5583 \end_layout
5584
5585 \begin_layout Standard
5586 \SpecialChar LyX
5587  will add the '
5588 \begin_inset Flex Code
5589 status collapsed
5590
5591 \begin_layout Plain Layout
5592 .in
5593 \end_layout
5594
5595 \end_inset
5596
5597 ' and '
5598 \begin_inset Flex Code
5599 status collapsed
5600
5601 \begin_layout Plain Layout
5602 .out
5603 \end_layout
5604
5605 \end_inset
5606
5607 ' to create the pipes.
5608  If one of the pipes already exists, \SpecialChar LyX
5609  will assume that another \SpecialChar LyX
5610  process
5611  is already running and will not start the server.
5612  On POSIX (Unix like) systems, if for some other reason, an unused 
5613 \begin_inset Quotes eld
5614 \end_inset
5615
5616 stale
5617 \begin_inset Quotes erd
5618 \end_inset
5619
5620  pipe is left in existence when \SpecialChar LyX
5621  closes, then \SpecialChar LyX
5622  will try to delete it.
5623  If this fails for some reason, you will need to delete the pipes manually
5624  and then restart \SpecialChar LyX
5625 .
5626  On Windows, pipes are deleted by the OS on program termination or crash,
5627  so 
5628 \begin_inset Quotes eld
5629 \end_inset
5630
5631 stale
5632 \begin_inset Quotes erd
5633 \end_inset
5634
5635  pipes should not be possible.
5636 \end_layout
5637
5638 \begin_layout Standard
5639 To have several \SpecialChar LyX
5640  processes with servers at the same time, you have to use
5641  different configurations, perhaps by using separate user directories, each
5642  with its own 
5643 \begin_inset Flex Code
5644 status collapsed
5645
5646 \begin_layout Plain Layout
5647 preferences
5648 \end_layout
5649
5650 \end_inset
5651
5652  file, for each process.
5653 \end_layout
5654
5655 \begin_layout Standard
5656 If you are developing a client program, you might find it useful to enable
5657  debugging information from the \SpecialChar LyX
5658  server.
5659  Do this by starting \SpecialChar LyX
5660  as 
5661 \begin_inset Flex Code
5662 status collapsed
5663
5664 \begin_layout Plain Layout
5665 lyx -dbg lyxserver
5666 \end_layout
5667
5668 \end_inset
5669
5670 .
5671 \end_layout
5672
5673 \begin_layout Standard
5674 You can find a complete example client written in C++ in the source distribution
5675  as 
5676 \begin_inset Flex Code
5677 status collapsed
5678
5679 \begin_layout Plain Layout
5680 development/lyxserver/server_monitor.cpp
5681 \end_layout
5682
5683 \end_inset
5684
5685 .
5686 \end_layout
5687
5688 \begin_layout Standard
5689 Another useful tool is the command-line based client found in 
5690 \begin_inset Flex Code
5691 status collapsed
5692
5693 \begin_layout Plain Layout
5694 src/client/lyxclient
5695 \end_layout
5696
5697 \end_inset
5698
5699 .
5700 \end_layout
5701
5702 \begin_layout Section
5703 Normal communication
5704 \end_layout
5705
5706 \begin_layout Standard
5707 To issue a \SpecialChar LyX
5708  call, the client writes a line of ASCII text into the input
5709  pipe.
5710  This line has the following format:
5711 \end_layout
5712
5713 \begin_layout Quote
5714 LYXCMD:
5715 \emph on
5716 clientname
5717 \emph default
5718 :
5719 \emph on
5720 function
5721 \emph default
5722 :
5723 \emph on
5724 argument
5725 \end_layout
5726
5727 \begin_layout Description
5728 clientname is a name that the client can choose arbitrarily.
5729  Its only use is that \SpecialChar LyX
5730  will echo it if it sends an answer—so a client can
5731  dispatch results from different requesters.
5732 \end_layout
5733
5734 \begin_layout Description
5735 function is the function you want \SpecialChar LyX
5736  to perform.
5737  It is the same as the commands you'd use in the minibuffer.
5738 \end_layout
5739
5740 \begin_layout Description
5741 argument is an optional argument which is meaningful only to some functions
5742  (for instance, the 
5743 \begin_inset Quotes eld
5744 \end_inset
5745
5746 self-insert
5747 \begin_inset Quotes erd
5748 \end_inset
5749
5750  LFUN will insert the argument as text at the cursor position).
5751 \end_layout
5752
5753 \begin_layout Standard
5754 The answer from \SpecialChar LyX
5755  will arrive in the output pipe and be of the form
5756 \end_layout
5757
5758 \begin_layout Quote
5759 INFO:
5760 \emph on
5761 clientname
5762 \emph default
5763 :
5764 \emph on
5765 function
5766 \emph default
5767 :
5768 \emph on
5769 data
5770 \end_layout
5771
5772 \begin_layout Standard
5773 where 
5774 \emph on
5775 clientname
5776 \emph default
5777  and 
5778 \emph on
5779 function
5780 \emph default
5781  are just echoed from the command request, while 
5782 \emph on
5783 data
5784 \emph default
5785  is more or less useful information filled according to how the command
5786  execution worked out.
5787  Some commands, such as 
5788 \begin_inset Quotes eld
5789 \end_inset
5790
5791 font-state
5792 \begin_inset Quotes erd
5793 \end_inset
5794
5795 , will return information about the internal state of \SpecialChar LyX
5796 , while other will
5797  return an empty data-response.
5798  This means that the command execution went fine.
5799 \end_layout
5800
5801 \begin_layout Standard
5802 In case of errors, the response from \SpecialChar LyX
5803  will have this form
5804 \end_layout
5805
5806 \begin_layout Quote
5807 ERROR:
5808 \emph on
5809 clientname
5810 \emph default
5811 :
5812 \emph on
5813 function
5814 \emph default
5815 :
5816 \emph on
5817 error message
5818 \end_layout
5819
5820 \begin_layout Standard
5821 where the 
5822 \emph on
5823 error message
5824 \emph default
5825  should contain an explanation of why the command failed.
5826 \end_layout
5827
5828 \begin_layout Standard
5829 Examples:
5830 \end_layout
5831
5832 \begin_layout LyX-Code
5833 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
5834 \begin_inset Newline newline
5835 \end_inset
5836
5837 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
5838 \begin_inset Newline newline
5839 \end_inset
5840
5841 read a <~/.lyxpipe.out
5842 \begin_inset Newline newline
5843 \end_inset
5844
5845 echo $a
5846 \end_layout
5847
5848 \begin_layout Subsection
5849 AppleScript (Mac OS X)
5850 \end_layout
5851
5852 \begin_layout Standard
5853 Since \SpecialChar LyX
5854  2.1, \SpecialChar LyX
5855  supports basic interactions with AppleScript for normal communicatio
5856 n through the command run.
5857  This command takes a direct argument (the 
5858 \series bold
5859 function
5860 \series default
5861  to perform) and an optional argument.
5862  It either returns the output of the function or triggers an error with
5863  the error message and code.
5864 \end_layout
5865
5866 \begin_layout Standard
5867 Example:
5868 \end_layout
5869
5870 \begin_layout LyX-Code
5871 tell application "\SpecialChar LyX
5872 "
5873 \end_layout
5874
5875 \begin_layout LyX-Code
5876   try
5877 \end_layout
5878
5879 \begin_layout LyX-Code
5880     -- Stores the current file name into f
5881 \end_layout
5882
5883 \begin_layout LyX-Code
5884     set f to (run "server-get-filename" with argument "")
5885 \end_layout
5886
5887 \begin_layout LyX-Code
5888     on error the error_message number the error_number
5889 \end_layout
5890
5891 \begin_layout LyX-Code
5892       display dialog "Error: " & the error_number & ".
5893  " ¬
5894 \end_layout
5895
5896 \begin_layout LyX-Code
5897               & the error_message buttons {"OK"} default button 1
5898 \end_layout
5899
5900 \begin_layout LyX-Code
5901   end try
5902 \end_layout
5903
5904 \begin_layout LyX-Code
5905 end tell
5906 \end_layout
5907
5908 \begin_layout Section
5909 Notification
5910 \end_layout
5911
5912 \begin_layout Standard
5913 \SpecialChar LyX
5914  can notify clients of events going on asynchronously.
5915  Currently it will only do this if the user binds a key sequence with the
5916  function 
5917 \begin_inset Quotes eld
5918 \end_inset
5919
5920 notify
5921 \begin_inset Quotes erd
5922 \end_inset
5923
5924 .
5925  The format of the string \SpecialChar LyX
5926  sends is as follows:
5927 \end_layout
5928
5929 \begin_layout Quote
5930 \begin_inset Flex Code
5931 status collapsed
5932
5933 \begin_layout Plain Layout
5934 NOTIFY:
5935 \end_layout
5936
5937 \end_inset
5938
5939
5940 \emph on
5941 key-sequence
5942 \end_layout
5943
5944 \begin_layout Standard
5945 where 
5946 \emph on
5947 key-sequence
5948 \emph default
5949  is the printed representation of the key sequence that was actually typed
5950  by the user.
5951 \end_layout
5952
5953 \begin_layout Standard
5954 This mechanism can be used to extend \SpecialChar LyX
5955 's command set and implement macros.
5956  Bind some key sequence to 
5957 \begin_inset Quotes eld
5958 \end_inset
5959
5960 notify
5961 \begin_inset Quotes erd
5962 \end_inset
5963
5964 .
5965  Then start a client that listens on the output pipe, dispatches the command
5966  according to the sequence, and starts a function that may use \SpecialChar LyX
5967  calls and
5968  \SpecialChar LyX
5969  requests to issue a command or a series of commands to \SpecialChar LyX
5970 .
5971 \end_layout
5972
5973 \begin_layout Section
5974 The simple \SpecialChar LyX
5975  Server Protocol
5976 \end_layout
5977
5978 \begin_layout Standard
5979 \SpecialChar LyX
5980  implements a simple protocol that can be used for session management.
5981  All messages are of the form
5982 \end_layout
5983
5984 \begin_layout Quote
5985 LYXSRV:
5986 \emph on
5987 clientname
5988 \emph default
5989 :
5990 \emph on
5991 protocol message
5992 \end_layout
5993
5994 \begin_layout Standard
5995 where 
5996 \emph on
5997 protocol message
5998 \emph default
5999  can be 
6000 \begin_inset Quotes eld
6001 \end_inset
6002
6003 hello
6004 \begin_inset Quotes erd
6005 \end_inset
6006
6007  or 
6008 \begin_inset Quotes eld
6009 \end_inset
6010
6011 bye
6012 \begin_inset Quotes erd
6013 \end_inset
6014
6015 .
6016  If 
6017 \begin_inset Quotes eld
6018 \end_inset
6019
6020 hello
6021 \begin_inset Quotes erd
6022 \end_inset
6023
6024  is received from a client, \SpecialChar LyX
6025  will report back to inform the client that
6026  it's listening to it's messages, while 
6027 \begin_inset Quotes eld
6028 \end_inset
6029
6030 bye
6031 \begin_inset Quotes erd
6032 \end_inset
6033
6034  sent from \SpecialChar LyX
6035  will inform clients that \SpecialChar LyX
6036  is closing.
6037 \end_layout
6038
6039 \begin_layout Section
6040 Reverse DVI/PDF search
6041 \end_layout
6042
6043 \begin_layout Standard
6044 Some DVI/PDF viewers
6045 \begin_inset Foot
6046 status collapsed
6047
6048 \begin_layout Plain Layout
6049 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6050  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6051 \end_layout
6052
6053 \end_inset
6054
6055  provide 
6056 \emph on
6057 reverse search
6058 \emph default
6059  facility (also called 
6060 \emph on
6061 inverse search
6062 \emph default
6063 ).
6064  This means that you can tell \SpecialChar LyX
6065  to put the cursor to a specific line in the
6066  document by clicking at the respective position in the DVI/PDF output.
6067  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6068 .
6069  This is done via the \SpecialChar LyX
6070  server either by using the named pipe (
6071 \emph on
6072 lyxpipe
6073 \emph default
6074 ), or the UNIX domain socket (
6075 \emph on
6076 lyxsocket
6077 \emph default
6078 ) that \SpecialChar LyX
6079  creates in its temporary directory (this is the way the 
6080 \begin_inset Flex Code
6081 status collapsed
6082
6083 \begin_layout Plain Layout
6084 lyxclient
6085 \end_layout
6086
6087 \end_inset
6088
6089  program communicates with \SpecialChar LyX
6090 ).
6091  In some cases, you need a helper script that mediates between the viewer
6092  and \SpecialChar LyX
6093 , in others, the viewer can communicate with \SpecialChar LyX
6094  directly.
6095  This depends on the selected viewer and on your operating system.
6096  The same applies to the way viewers need to be configured and the way the
6097  reverse search is actually performed.
6098  In what follows, we will thus describe how to setup reverse search for
6099  specific viewers.
6100  Before we turn to this, though, we will explain what needs to be done generally
6101  to enable reverse search in the DVI/PDF output.
6102 \end_layout
6103
6104 \begin_layout Subsection
6105 Automatic setup
6106 \begin_inset CommandInset label
6107 LatexCommand label
6108 name "subsec:rev-search"
6109
6110 \end_inset
6111
6112
6113 \end_layout
6114
6115 \begin_layout Standard
6116 In most cases \SpecialChar LyX
6117  will do the work for you by enabling the option 
6118 \begin_inset Flex MenuItem
6119 status collapsed
6120
6121 \begin_layout Plain Layout
6122 Synchronize with Output
6123 \end_layout
6124
6125 \end_inset
6126
6127  in the menu 
6128 \begin_inset Flex MenuItem
6129 status collapsed
6130
6131 \begin_layout Plain Layout
6132 Document\SpecialChar menuseparator
6133 Settings\SpecialChar menuseparator
6134 Output
6135 \end_layout
6136
6137 \end_inset
6138
6139 .
6140  In such a case \SpecialChar LyX
6141  will automatically insert the necessary Sync\SpecialChar TeX
6142  macro (for
6143  PDF) or load the srcltx package (for DVI) respectively.
6144  This option can be easily reached also on 
6145 \begin_inset Flex Code
6146 status collapsed
6147
6148 \begin_layout Plain Layout
6149 View/Update
6150 \end_layout
6151
6152 \end_inset
6153
6154  Toolbar.
6155 \end_layout
6156
6157 \begin_layout Standard
6158 If you need a different setting, you can select or input a custom macro
6159  from the drop down box just below 
6160 \begin_inset Flex MenuItem
6161 status collapsed
6162
6163 \begin_layout Plain Layout
6164 Document\SpecialChar menuseparator
6165 Settings\SpecialChar menuseparator
6166 Output\SpecialChar menuseparator
6167 Synchronize with Output
6168 \end_layout
6169
6170 \end_inset
6171
6172 .
6173 \end_layout
6174
6175 \begin_layout Standard
6176 Note that the method 
6177 \begin_inset Flex Code
6178 status collapsed
6179
6180 \begin_layout Plain Layout
6181
6182 \backslash
6183 synctex=1
6184 \end_layout
6185
6186 \end_inset
6187
6188  enables gzip compression.
6189  If your viewer does not support it, you should instead use 
6190 \begin_inset Flex Code
6191 status collapsed
6192
6193 \begin_layout Plain Layout
6194
6195 \backslash
6196 synctex=-1
6197 \end_layout
6198
6199 \end_inset
6200
6201 .
6202 \end_layout
6203
6204 \begin_layout Standard
6205 Please also note that including the 
6206 \begin_inset Flex Code
6207 status collapsed
6208
6209 \begin_layout Plain Layout
6210 srcltx
6211 \end_layout
6212
6213 \end_inset
6214
6215  package or 
6216 \begin_inset Flex Code
6217 status collapsed
6218
6219 \begin_layout Plain Layout
6220 src-specials
6221 \end_layout
6222
6223 \end_inset
6224
6225  sometimes has an undesired impact on the typesetting.
6226  Thus, you should switch output synchronization off for the final typesetting
6227  if you use the 
6228 \begin_inset Flex Code
6229 status collapsed
6230
6231 \begin_layout Plain Layout
6232 srcltx
6233 \end_layout
6234
6235 \end_inset
6236
6237  package or 
6238 \begin_inset Flex Code
6239 status collapsed
6240
6241 \begin_layout Plain Layout
6242 src-specials
6243 \end_layout
6244
6245 \end_inset
6246
6247 .
6248  
6249 \end_layout
6250
6251 \begin_layout Standard
6252 In case you need some more special settings that are not covered by the
6253  automatic settings, read the next section about how to set up output synchroniz
6254 ation manually.
6255  If the automatic setup suits your needs, you can readily jump to section
6256 \begin_inset space ~
6257 \end_inset
6258
6259
6260 \begin_inset CommandInset ref
6261 LatexCommand ref
6262 reference "subsec:configuring-viewers"
6263
6264 \end_inset
6265
6266 , where the necessary configuration steps in your viewer – needed both with
6267  the automatic and the manual setup – are described.
6268 \end_layout
6269
6270 \begin_layout Subsection
6271 Manual setup
6272 \end_layout
6273
6274 \begin_layout Standard
6275 \SpecialChar LaTeX
6276  provides several different methods for reverse search.
6277  Some are built-in in the 
6278 \begin_inset Flex Code
6279 status collapsed
6280
6281 \begin_layout Plain Layout
6282 latex/pdflatex
6283 \end_layout
6284
6285 \end_inset
6286
6287  program, some are provided by external packages.
6288  Your choice depends on whether your \SpecialChar LaTeX
6289  distribution already provides a given
6290  method (the built-in methods are rather new) and whether your viewer can
6291  cope with it.
6292  The available methods are described in the following.
6293 \end_layout
6294
6295 \begin_layout Subsubsection*
6296 Built-in DVI-search via src-specials (DVI only) 
6297 \end_layout
6298
6299 \begin_layout Standard
6300 This method provides the DVI file with the necessary information for reverse
6301  search.
6302  It is available in \SpecialChar LaTeX
6303  since quite some time (any somewhat recent \SpecialChar LaTeX
6304  distribution
6305  should include it), and it works reliably.
6306  To enable it, change the 
6307 \begin_inset Flex MenuItem
6308 status collapsed
6309
6310 \begin_layout Plain Layout
6311 La
6312 \family sans
6313 TeX
6314 \family default
6315  (plain)->DVI
6316 \end_layout
6317
6318 \end_inset
6319
6320  or 
6321 \begin_inset Flex MenuItem
6322 status collapsed
6323
6324 \begin_layout Plain Layout
6325 La
6326 \family sans
6327 TeX
6328 \family default
6329  (plain)->DraftDVI
6330 \end_layout
6331
6332 \end_inset
6333
6334  converter in 
6335 \begin_inset Flex MenuItem
6336 status collapsed
6337
6338 \begin_layout Plain Layout
6339 Preferences\SpecialChar menuseparator
6340 File Handling\SpecialChar menuseparator
6341 Converters
6342 \end_layout
6343
6344 \end_inset
6345
6346  to 
6347 \begin_inset Flex Code
6348 status collapsed
6349
6350 \begin_layout Plain Layout
6351 latex -src-specials $$i
6352 \end_layout
6353
6354 \end_inset
6355
6356 .
6357  If this doesn't work, check if your \SpecialChar TeX
6358  engine needs different options (the
6359  syntax might differ in some distributions).
6360 \end_layout
6361
6362 \begin_layout Subsubsection*
6363 External Packages (PDFSync and scrltx) 
6364 \end_layout
6365
6366 \begin_layout Standard
6367 The packages 
6368 \emph on
6369 pdfsync
6370 \emph default
6371  and 
6372 \emph on
6373 scrltx
6374 \emph default
6375  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6376  respectively.
6377  In order to enable it, load the packages in the \SpecialChar LyX
6378  preamble: 
6379 \end_layout
6380
6381 \begin_layout Itemize
6382 \begin_inset Flex Code
6383 status collapsed
6384
6385 \begin_layout Plain Layout
6386
6387 \backslash
6388 usepackage{pdfsync}
6389 \end_layout
6390
6391 \end_inset
6392
6393  for reverse PDF search,
6394 \end_layout
6395
6396 \begin_layout Itemize
6397 \begin_inset Flex Code
6398 status collapsed
6399
6400 \begin_layout Plain Layout
6401
6402 \backslash
6403 usepackage[active]{srcltx}
6404 \end_layout
6405
6406 \end_inset
6407
6408  for reverse DVI search.
6409 \end_layout
6410
6411 \begin_layout Standard
6412 If you want to be able to perform both DVI and PDF reverse searches, you
6413  can also insert in the preamble the following lines
6414 \end_layout
6415
6416 \begin_layout LyX-Code
6417
6418 \backslash
6419 usepackage{ifpdf}
6420 \begin_inset Newline newline
6421 \end_inset
6422
6423
6424 \backslash
6425 ifpdf
6426 \begin_inset Newline newline
6427 \end_inset
6428
6429   
6430 \backslash
6431 usepackage{pdfsync}
6432 \begin_inset Newline newline
6433 \end_inset
6434
6435
6436 \backslash
6437 else
6438 \begin_inset Newline newline
6439 \end_inset
6440
6441   
6442 \backslash
6443 usepackage[active]{srcltx}
6444 \begin_inset Newline newline
6445 \end_inset
6446
6447
6448 \backslash
6449 fi
6450 \end_layout
6451
6452 \begin_layout Standard
6453 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6454  right package will be used.
6455 \end_layout
6456
6457 \begin_layout Standard
6458 Note that PDFSync might affect the output layout of your document.
6459  It is therefore advised to disable PDFsync for final documents.
6460 \end_layout
6461
6462 \begin_layout Subsubsection*
6463 Built-in reverse search via Sync\SpecialChar TeX
6464  (DVI and PDF) 
6465 \end_layout
6466
6467 \begin_layout Standard
6468 Recent versions of 
6469 \begin_inset Flex Code
6470 status collapsed
6471
6472 \begin_layout Plain Layout
6473 (pdf)latex
6474 \end_layout
6475
6476 \end_inset
6477
6478  have built-in support for both PDF and DVI reverse search.
6479  This so-called 
6480 \emph on
6481 Sync\SpecialChar TeX
6482
6483 \emph default
6484  facility is basically the result of the integration of the PDFSync package
6485  to the pdftex program and its merge with the 
6486 \emph on
6487 scr-specials
6488 \emph default
6489  approach.
6490  You need at least \SpecialChar TeX
6491 Live 2008 or a recent Mik\SpecialChar TeX
6492  distribution in order to use
6493  it.
6494 \begin_inset Foot
6495 status collapsed
6496
6497 \begin_layout Plain Layout
6498 For some reason, Mik\SpecialChar TeX
6499  does not understand/obey the command \SpecialChar LyX
6500  inserts into
6501  the preamble when you check the "Enable Forward/Reverse Search" button
6502  in the toolbar and does not generate the necessary info.
6503 \end_layout
6504
6505 \begin_layout Plain Layout
6506 The generation of the required info can be forced by changing the converter
6507  "\SpecialChar LaTeX
6508  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
6509  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
6510  the -synctex=1 switch).
6511 \end_layout
6512
6513 \end_inset
6514
6515  Also note that only a few PDF viewers (Okular and Qpdfview on Unix, Skim
6516  on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
6517  support.
6518 \end_layout
6519
6520 \begin_layout Standard
6521 To enable Sync\SpecialChar TeX
6522  for DVI output, change the 
6523 \begin_inset Flex MenuItem
6524 status collapsed
6525
6526 \begin_layout Plain Layout
6527 La
6528 \family sans
6529 TeX
6530 \family default
6531  (plain) -> DVI
6532 \end_layout
6533
6534 \end_inset
6535
6536  or 
6537 \begin_inset Flex MenuItem
6538 status collapsed
6539
6540 \begin_layout Plain Layout
6541 La
6542 \family sans
6543 TeX
6544 \family default
6545  (plain) -> DraftDVI
6546 \end_layout
6547
6548 \end_inset
6549
6550  converter in 
6551 \begin_inset Flex MenuItem
6552 status collapsed
6553
6554 \begin_layout Plain Layout
6555 Preferences\SpecialChar menuseparator
6556 File Handling\SpecialChar menuseparator
6557 Converters
6558 \end_layout
6559
6560 \end_inset
6561
6562  to 
6563 \begin_inset Flex Code
6564 status collapsed
6565
6566 \begin_layout Plain Layout
6567 latex -synctex=1 $$i
6568 \end_layout
6569
6570 \end_inset
6571
6572 , and for PDF output, change the 
6573 \begin_inset Flex MenuItem
6574 status collapsed
6575
6576 \begin_layout Plain Layout
6577 La
6578 \family sans
6579 TeX
6580 \family default
6581  (pdflatex) -> PDF (pdflatex)
6582 \end_layout
6583
6584 \end_inset
6585
6586  or converter to 
6587 \begin_inset Flex Code
6588 status collapsed
6589
6590 \begin_layout Plain Layout
6591 pdflatex -synctex=1 $$i
6592 \end_layout
6593
6594 \end_inset
6595
6596 .
6597  Check the documentation of your viewer whether the viewer needs to be configure
6598 d for the use with Sync\SpecialChar TeX
6599 .
6600 \begin_inset Foot
6601 status collapsed
6602
6603 \begin_layout Plain Layout
6604 Note that the option 
6605 \begin_inset Flex Code
6606 status collapsed
6607
6608 \begin_layout Plain Layout
6609 -synctex=1
6610 \end_layout
6611
6612 \end_inset
6613
6614  option enables gzip compression.
6615  If your viewer does not support it, you should instead use 
6616 \begin_inset Flex Code
6617 status collapsed
6618
6619 \begin_layout Plain Layout
6620 -synctex=-1
6621 \end_layout
6622
6623 \end_inset
6624
6625 .
6626 \end_layout
6627
6628 \end_inset
6629
6630
6631 \end_layout
6632
6633 \begin_layout Subsection
6634 Configuring and using specific viewers
6635 \begin_inset CommandInset label
6636 LatexCommand label
6637 name "subsec:configuring-viewers"
6638
6639 \end_inset
6640
6641
6642 \end_layout
6643
6644 \begin_layout Subsubsection*
6645 Xdvi (all platforms)
6646 \end_layout
6647
6648 \begin_layout Standard
6649 If you use 
6650 \begin_inset Flex Code
6651 status collapsed
6652
6653 \begin_layout Plain Layout
6654 xdvi
6655 \end_layout
6656
6657 \end_inset
6658
6659 , you don't need to do anything else for performing a reverse DVI search,
6660  as \SpecialChar LyX
6661  already provides the necessary hooks for automatically using the 
6662 \begin_inset Flex Code
6663 status collapsed
6664
6665 \begin_layout Plain Layout
6666 lyxclient
6667 \end_layout
6668
6669 \end_inset
6670
6671  program.
6672  Just setup your document as described above (reverse search is triggered
6673  by Ctrl-click or Alt-click on Mac OSX, respectively).
6674 \end_layout
6675
6676 \begin_layout Standard
6677 However, if for whatever reason you want to use the named pipe instead of
6678  the socket for communicating with \SpecialChar LyX
6679 , simply change the DVI viewer in 
6680 \begin_inset Flex MenuItem
6681 status collapsed
6682
6683 \begin_layout Plain Layout
6684 Preferences\SpecialChar menuseparator
6685 File Handling\SpecialChar menuseparator
6686 File formats
6687 \end_layout
6688
6689 \end_inset
6690
6691  to
6692 \begin_inset Foot
6693 status collapsed
6694
6695 \begin_layout Plain Layout
6696 On Mac OSX you have to use 
6697 \begin_inset Flex Code
6698 status collapsed
6699
6700 \begin_layout Plain Layout
6701 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
6702 \end_layout
6703
6704 \end_inset
6705
6706
6707 \end_layout
6708
6709 \end_inset
6710
6711  
6712 \begin_inset Flex Code
6713 status collapsed
6714
6715 \begin_layout Plain Layout
6716 xdvi -editor "lyxeditor.sh %f %l"
6717 \end_layout
6718
6719 \end_inset
6720
6721 , where 
6722 \begin_inset Flex Code
6723 status collapsed
6724
6725 \begin_layout Plain Layout
6726 lyxeditor.sh
6727 \end_layout
6728
6729 \end_inset
6730
6731  is a suitable script.
6732  For example, a minimal shell script is the following one:
6733 \end_layout
6734
6735 \begin_layout LyX-Code
6736 #!/bin/sh
6737 \begin_inset Newline newline
6738 \end_inset
6739
6740 LYXPIPE="/path/to/lyxpipe"
6741 \begin_inset Newline newline
6742 \end_inset
6743
6744 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6745 \begin_inset Newline newline
6746 \end_inset
6747
6748 echo "$COMMAND" > "${LYXPIPE}".in || exit
6749 \begin_inset Newline newline
6750 \end_inset
6751
6752 read TMP < "${LYXPIPE}".out || exit
6753 \end_layout
6754
6755 \begin_layout Standard
6756 where 
6757 \begin_inset Flex Code
6758 status collapsed
6759
6760 \begin_layout Plain Layout
6761 /path/to/lyxpipe
6762 \end_layout
6763
6764 \end_inset
6765
6766  is the Ly
6767 \begin_inset ERT
6768 status collapsed
6769
6770 \begin_layout Plain Layout
6771
6772 {}
6773 \end_layout
6774
6775 \end_inset
6776
6777 XServer pipe path specified in 
6778 \begin_inset Flex MenuItem
6779 status collapsed
6780
6781 \begin_layout Plain Layout
6782 Preferences\SpecialChar menuseparator
6783 Paths
6784 \end_layout
6785
6786 \end_inset
6787
6788 .
6789 \begin_inset Foot
6790 status collapsed
6791
6792 \begin_layout Plain Layout
6793 In the 
6794 \begin_inset Flex Code
6795 status collapsed
6796
6797 \begin_layout Plain Layout
6798 development/tools
6799 \end_layout
6800
6801 \end_inset
6802
6803  folder of a source distribution you can find a 
6804 \begin_inset Flex Code
6805 status collapsed
6806
6807 \begin_layout Plain Layout
6808 lyxeditor
6809 \end_layout
6810
6811 \end_inset
6812
6813  script which is able to locate the 
6814 \emph on
6815 lyxpipe
6816 \emph default
6817  based on your preferences.
6818 \end_layout
6819
6820 \end_inset
6821
6822
6823 \end_layout
6824
6825 \begin_layout Subsubsection*
6826 MacDviX (Mac OSX)
6827 \end_layout
6828
6829 \begin_layout Standard
6830 At the end of 
6831 \begin_inset Flex Code
6832 status collapsed
6833
6834 \begin_layout Plain Layout
6835 /Applications/MacDviX_Folder/calleditor.script
6836 \end_layout
6837
6838 \end_inset
6839
6840 , add the following lines:
6841 \end_layout
6842
6843 \begin_layout LyX-Code
6844 /Applications/Ly
6845 \begin_inset ERT
6846 status collapsed
6847
6848 \begin_layout Plain Layout
6849
6850 {}
6851 \end_layout
6852
6853 \end_inset
6854
6855 X.app/Contents/MacOS/lyxeditor "$2" $1
6856 \begin_inset Newline newline
6857 \end_inset
6858
6859 exit 1
6860 \end_layout
6861
6862 \begin_layout Standard
6863 Modify the lines accordingly if you install \SpecialChar LyX
6864  somewhere else than in the
6865  Applications folder.
6866 \end_layout
6867
6868 \begin_layout Standard
6869 Reverse search is triggered by Alt-click (OPTION-click).
6870 \end_layout
6871
6872 \begin_layout Subsubsection*
6873 Skim (Mac OSX)
6874 \end_layout
6875
6876 \begin_layout Standard
6877 Enter 
6878 \begin_inset Flex Code
6879 status collapsed
6880
6881 \begin_layout Plain Layout
6882 open -a Skim.app $$i
6883 \end_layout
6884
6885 \end_inset
6886
6887  to the viewer setting in 
6888 \begin_inset Flex MenuItem
6889 status collapsed
6890
6891 \begin_layout Plain Layout
6892 Preferences\SpecialChar menuseparator
6893 File Handling\SpecialChar menuseparator
6894 File formats\SpecialChar menuseparator
6895 PDF (pdflatex)
6896 \end_layout
6897
6898 \end_inset
6899
6900 , and then in 
6901 \begin_inset Flex MenuItem
6902 status collapsed
6903
6904 \begin_layout Plain Layout
6905 Skim\SpecialChar menuseparator
6906 Preferences\SpecialChar menuseparator
6907 Sync
6908 \end_layout
6909
6910 \end_inset
6911
6912  choose 
6913 \begin_inset Flex MenuItem
6914 status collapsed
6915
6916 \begin_layout Plain Layout
6917 custom
6918 \end_layout
6919
6920 \end_inset
6921
6922  preset and enter command 
6923 \begin_inset Flex MenuItem
6924 status collapsed
6925
6926 \begin_layout Plain Layout
6927 /Applications/\SpecialChar LyX
6928 .app/Contents/MacOS/lyxeditor
6929 \end_layout
6930
6931 \end_inset
6932
6933 .
6934 \end_layout
6935
6936 \begin_layout Standard
6937 Reverse search is triggered by COMMAND-SHIFT-click
6938 \end_layout
6939
6940 \begin_layout Subsubsection*
6941 Okular (KDE)
6942 \end_layout
6943
6944 \begin_layout Standard
6945 Go to 
6946 \begin_inset Flex MenuItem
6947 status collapsed
6948
6949 \begin_layout Plain Layout
6950 Settings\SpecialChar menuseparator
6951 Configure Okular\SpecialChar menuseparator
6952 Editor
6953 \end_layout
6954
6955 \end_inset
6956
6957 , select 
6958 \begin_inset Quotes eld
6959 \end_inset
6960
6961 Custom Text Editor
6962 \begin_inset Quotes erd
6963 \end_inset
6964
6965  and add the command 
6966 \begin_inset Flex Code
6967 status collapsed
6968
6969 \begin_layout Plain Layout
6970 lyxclient -g %f %l
6971 \end_layout
6972
6973 \end_inset
6974
6975 .
6976 \end_layout
6977
6978 \begin_layout Standard
6979 Reverse search is triggered by SHIFT-click.
6980 \end_layout
6981
6982 \begin_layout Subsubsection*
6983 Qpdfview (Unix)
6984 \end_layout
6985
6986 \begin_layout Standard
6987 Qpdfview supports Sync\SpecialChar TeX
6988  since version 0.3.5.
6989  Go to 
6990 \begin_inset Flex MenuItem
6991 status collapsed
6992
6993 \begin_layout Plain Layout
6994 Edit\SpecialChar menuseparator
6995 Settings\SpecialChar menuseparator
6996 Behavior
6997 \end_layout
6998
6999 \end_inset
7000
7001 , click on the input field of the 
7002 \begin_inset Quotes eld
7003 \end_inset
7004
7005 Source editor
7006 \begin_inset Quotes erd
7007 \end_inset
7008
7009  item and add the command 
7010 \begin_inset Flex Code
7011 status collapsed
7012
7013 \begin_layout Plain Layout
7014 lyxclient -g %1 %2
7015 \end_layout
7016
7017 \end_inset
7018
7019 .
7020 \end_layout
7021
7022 \begin_layout Standard
7023 Reverse search is triggered by double-click.
7024 \end_layout
7025
7026 \begin_layout Subsubsection*
7027 YAP (Windows)
7028 \end_layout
7029
7030 \begin_layout Standard
7031 Launch yap, choose its 
7032 \begin_inset Flex MenuItem
7033 status collapsed
7034
7035 \begin_layout Plain Layout
7036 View\SpecialChar menuseparator
7037 Options
7038 \end_layout
7039
7040 \end_inset
7041
7042  menu and select the 
7043 \begin_inset Quotes eld
7044 \end_inset
7045
7046 Inverse DVI Search
7047 \begin_inset Quotes erd
7048 \end_inset
7049
7050  tab.
7051  Click on the 
7052 \begin_inset Quotes eld
7053 \end_inset
7054
7055 New\SpecialChar ldots
7056
7057 \begin_inset Quotes erd
7058 \end_inset
7059
7060  button and, in the window that opens, enter 
7061 \begin_inset Quotes eld
7062 \end_inset
7063
7064 \SpecialChar LyX
7065  Editor
7066 \begin_inset Quotes erd
7067 \end_inset
7068
7069  (or any other name you like) in the 
7070 \begin_inset Quotes eld
7071 \end_inset
7072
7073 Name:
7074 \begin_inset Quotes erd
7075 \end_inset
7076
7077  field.
7078  Now click on the button labeled 
7079 \begin_inset Quotes eld
7080 \end_inset
7081
7082 \SpecialChar ldots
7083
7084 \begin_inset Quotes erd
7085 \end_inset
7086
7087  to open a file dialog and navigate to the directory containing the batch
7088  file 
7089 \begin_inset Flex Code
7090 status collapsed
7091
7092 \begin_layout Plain Layout
7093 lyxeditor.bat
7094 \end_layout
7095
7096 \end_inset
7097
7098  (see below).
7099  Select 
7100 \begin_inset Flex Code
7101 status collapsed
7102
7103 \begin_layout Plain Layout
7104 lyxeditor.bat
7105 \end_layout
7106
7107 \end_inset
7108
7109  and then specify the program arguments as 
7110 \begin_inset Flex Code
7111 status collapsed
7112
7113 \begin_layout Plain Layout
7114 %f %l
7115 \end_layout
7116
7117 \end_inset
7118
7119 .
7120  The 
7121 \begin_inset Flex Code
7122 status collapsed
7123
7124 \begin_layout Plain Layout
7125 lyxeditor.bat
7126 \end_layout
7127
7128 \end_inset
7129
7130  wrapper is used for communicating with \SpecialChar LyX
7131  through the 
7132 \emph on
7133 lyxpipe
7134 \emph default
7135  and is as follows:
7136 \end_layout
7137
7138 \begin_layout LyX-Code
7139 @echo off
7140 \begin_inset Newline newline
7141 \end_inset
7142
7143 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7144 \backslash
7145
7146 \backslash
7147 .
7148 \backslash
7149 pipe
7150 \backslash
7151 lyxpipe.in
7152 \begin_inset Newline newline
7153 \end_inset
7154
7155 type 
7156 \backslash
7157
7158 \backslash
7159 .
7160 \backslash
7161 pipe
7162 \backslash
7163 lyxpipe.out
7164 \end_layout
7165
7166 \begin_layout Standard
7167 Make sure that the \SpecialChar LyX
7168 Server pipe path you specified in \SpecialChar LyX
7169  is 
7170 \begin_inset Flex Code
7171 status collapsed
7172
7173 \begin_layout Plain Layout
7174
7175 \backslash
7176
7177 \backslash
7178 .
7179 \backslash
7180 pipe
7181 \backslash
7182 lyxpipe
7183 \end_layout
7184
7185 \end_inset
7186
7187 , otherwise change the 
7188 \begin_inset Flex Code
7189 status collapsed
7190
7191 \begin_layout Plain Layout
7192 lyxeditor.bat
7193 \end_layout
7194
7195 \end_inset
7196
7197  wrapper accordingly.
7198 \end_layout
7199
7200 \begin_layout Standard
7201 In yap, reverse search is triggered by double-click.
7202 \end_layout
7203
7204 \begin_layout Subsubsection*
7205 SumatraPDF (Windows)
7206 \end_layout
7207
7208 \begin_layout Standard
7209 In order to use SumatraPDF for inverse search, enter 
7210 \begin_inset Flex Code
7211 status collapsed
7212
7213 \begin_layout Plain Layout
7214 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
7215 \end_layout
7216
7217 \end_inset
7218
7219  in the viewer setting in 
7220 \begin_inset Flex MenuItem
7221 status collapsed
7222
7223 \begin_layout Plain Layout
7224 Preferences\SpecialChar menuseparator
7225 File Handling\SpecialChar menuseparator
7226 File formats\SpecialChar menuseparator
7227 PDF (pdflatex)
7228 \end_layout
7229
7230 \end_inset
7231
7232 , where 
7233 \begin_inset Flex Code
7234 status collapsed
7235
7236 \begin_layout Plain Layout
7237 lyxeditor.bat
7238 \end_layout
7239
7240 \end_inset
7241
7242  is the previous wrapper.
7243  If SumatraPDF.exe is not in your command PATH, use its full file name.
7244 \end_layout
7245
7246 \begin_layout Standard
7247 Reverse search is triggered by double-click.
7248 \end_layout
7249
7250 \begin_layout Subsubsection*
7251 YAP (Cygwin)
7252 \end_layout
7253
7254 \begin_layout Standard
7255 First of all, make sure that yap is your default DVI viewer in the Windows
7256  environment, then launch it, choose its 
7257 \begin_inset Flex MenuItem
7258 status collapsed
7259
7260 \begin_layout Plain Layout
7261 View\SpecialChar menuseparator
7262 Options
7263 \end_layout
7264
7265 \end_inset
7266
7267  menu and select the 
7268 \begin_inset Quotes eld
7269 \end_inset
7270
7271 Inverse DVI Search
7272 \begin_inset Quotes erd
7273 \end_inset
7274
7275  tab.
7276  Click on the 
7277 \begin_inset Quotes eld
7278 \end_inset
7279
7280 New\SpecialChar ldots
7281
7282 \begin_inset Quotes erd
7283 \end_inset
7284
7285  button and, in the window that opens, enter 
7286 \begin_inset Quotes eld
7287 \end_inset
7288
7289 \SpecialChar LyX
7290  Editor
7291 \begin_inset Quotes erd
7292 \end_inset
7293
7294  (or any other name you like) in the 
7295 \begin_inset Quotes eld
7296 \end_inset
7297
7298 Name:
7299 \begin_inset Quotes erd
7300 \end_inset
7301
7302  field.
7303  Now click on the button labeled 
7304 \begin_inset Quotes eld
7305 \end_inset
7306
7307 \SpecialChar ldots
7308
7309 \begin_inset Quotes erd
7310 \end_inset
7311
7312  to open a file dialog and navigate to the directory containing the 
7313 \begin_inset Flex Code
7314 status collapsed
7315
7316 \begin_layout Plain Layout
7317 lyxeditor.exe
7318 \end_layout
7319
7320 \end_inset
7321
7322  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7323  executable).
7324  Select 
7325 \begin_inset Flex Code
7326 status collapsed
7327
7328 \begin_layout Plain Layout
7329 lyxeditor.exe
7330 \end_layout
7331
7332 \end_inset
7333
7334  and then specify the program arguments as 
7335 \begin_inset Flex Code
7336 status collapsed
7337
7338 \begin_layout Plain Layout
7339 -g %f %l
7340 \end_layout
7341
7342 \end_inset
7343
7344 .
7345  In this way, you will be using the 
7346 \emph on
7347 lyxsocket
7348 \emph default
7349  for communicating with \SpecialChar LyX
7350 .
7351  If, for whatever reason, you want to use the 
7352 \emph on
7353 lyxpipe
7354 \emph default
7355 , omit the 
7356 \begin_inset Flex Code
7357 status collapsed
7358
7359 \begin_layout Plain Layout
7360 -g
7361 \end_layout
7362
7363 \end_inset
7364
7365  option and be sure to specify the \SpecialChar LyX
7366 Server pipe path in the \SpecialChar LyX
7367  preferences.
7368 \end_layout
7369
7370 \begin_layout Standard
7371 In yap, reverse search is triggered by double-click.
7372 \end_layout
7373
7374 \begin_layout Subsubsection*
7375 SumatraPDF (Cygwin)
7376 \end_layout
7377
7378 \begin_layout Standard
7379 In order to use SumatraPDF for inverse search, enter 
7380 \begin_inset Flex Code
7381 status collapsed
7382
7383 \begin_layout Plain Layout
7384 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7385 \end_layout
7386
7387 \end_inset
7388
7389  in the viewer setting in 
7390 \begin_inset Flex MenuItem
7391 status collapsed
7392
7393 \begin_layout Plain Layout
7394 Preferences\SpecialChar menuseparator
7395 File Handling\SpecialChar menuseparator
7396 File formats\SpecialChar menuseparator
7397 PDF (pdflatex)
7398 \end_layout
7399
7400 \end_inset
7401
7402 .
7403  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7404  The 
7405 \begin_inset Flex Code
7406 status collapsed
7407
7408 \begin_layout Plain Layout
7409 -g
7410 \end_layout
7411
7412 \end_inset
7413
7414  enables communication via the 
7415 \emph on
7416 lyxsocket
7417 \emph default
7418 .
7419  Again, omit the 
7420 \begin_inset Flex Code
7421 status collapsed
7422
7423 \begin_layout Plain Layout
7424 -g
7425 \end_layout
7426
7427 \end_inset
7428
7429  option if you want to use the 
7430 \emph on
7431 lyxpipe
7432 \emph default
7433 , and be sure to specify the \SpecialChar LyX
7434 Server pipe path in the \SpecialChar LyX
7435  preferences.
7436 \end_layout
7437
7438 \begin_layout Standard
7439 Reverse search is triggered by double-click.
7440 \end_layout
7441
7442 \begin_layout Section
7443 Forward search
7444 \end_layout
7445
7446 \begin_layout Standard
7447 Forward search is, as the name implies, in a sense the 
7448 \begin_inset Quotes eld
7449 \end_inset
7450
7451 opposite
7452 \begin_inset Quotes erd
7453 \end_inset
7454
7455  of reverse search.
7456  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7457 .
7458  If forward search is set up (as described in what follows), you can put
7459  the cursor anywhere in your \SpecialChar LyX
7460  document, and hit 
7461 \begin_inset Flex MenuItem
7462 status collapsed
7463
7464 \begin_layout Plain Layout
7465 Navigate\SpecialChar menuseparator
7466 Forward search
7467 \end_layout
7468
7469 \end_inset
7470
7471  (or select 
7472 \begin_inset Flex MenuItem
7473 status collapsed
7474
7475 \begin_layout Plain Layout
7476 Forward search
7477 \end_layout
7478
7479 \end_inset
7480
7481  in the context menu via right mouse click), and then the viewer will jump
7482  to that position as well.
7483  This implies, of course, that your viewer supports this function.
7484 \end_layout
7485
7486 \begin_layout Standard
7487 To make forward search possible, you first need to provide the generated
7488  output PDF/DVI file with additional information about the \SpecialChar TeX
7489  sources.
7490  This can be done via the methods described in the section 
7491 \begin_inset CommandInset ref
7492 LatexCommand ref
7493 reference "subsec:rev-search"
7494
7495 \end_inset
7496
7497 .
7498 \end_layout
7499
7500 \begin_layout Standard
7501 Additionally, you need to configure \SpecialChar LyX
7502  for using your viewers in 
7503 \begin_inset Flex MenuItem
7504 status collapsed
7505
7506 \begin_layout Plain Layout
7507 Tools\SpecialChar menuseparator
7508 Preferences\SpecialChar menuseparator
7509 Output\SpecialChar menuseparator
7510 General
7511 \end_layout
7512
7513 \end_inset
7514
7515 .
7516  We provide a range of tested configurations for some viewers, which you
7517  can select from the drop down list.
7518  If none of these configurations suits you, you have to find out and enter
7519  a suitable configuration yourself.
7520  The definition syntax uses the following placeholders:
7521 \end_layout
7522
7523 \begin_layout Itemize
7524 \noindent
7525 \begin_inset Flex Code
7526 status collapsed
7527
7528 \begin_layout Plain Layout
7529 $$n
7530 \end_layout
7531
7532 \end_inset
7533
7534 : row number
7535 \end_layout
7536
7537 \begin_layout Itemize
7538 \noindent
7539 \begin_inset Flex Code
7540 status collapsed
7541
7542 \begin_layout Plain Layout
7543 $$t
7544 \end_layout
7545
7546 \end_inset
7547
7548 : name of the (temporary) exported .tex file (without path)
7549 \end_layout
7550
7551 \begin_layout Itemize
7552 \noindent
7553 \begin_inset Flex Code
7554 status collapsed
7555
7556 \begin_layout Plain Layout
7557 $$f
7558 \end_layout
7559
7560 \end_inset
7561
7562 : name of the (temporary) exported .tex file (including path)
7563 \end_layout
7564
7565 \begin_layout Itemize
7566 \noindent
7567 \begin_inset Flex Code
7568 status collapsed
7569
7570 \begin_layout Plain Layout
7571 $$o
7572 \end_layout
7573
7574 \end_inset
7575
7576 : name of the exported output file (either dvi or pdf, depending on which
7577  one exists in the temporary directory)
7578 \end_layout
7579
7580 \begin_layout Standard
7581 Note that only some of the viewers provide full forward search functionality,
7582  among them yap, xdvi, okular
7583 \begin_inset Foot
7584 status collapsed
7585
7586 \begin_layout Plain Layout
7587 You might want to set 
7588 \begin_inset Flex Code
7589 status collapsed
7590
7591 \begin_layout Plain Layout
7592 okular –unique
7593 \end_layout
7594
7595 \end_inset
7596
7597  in 
7598 \begin_inset Flex MenuItem
7599 status collapsed
7600
7601 \begin_layout Plain Layout
7602 Tools\SpecialChar menuseparator
7603 Preferences\SpecialChar menuseparator
7604 File Handling\SpecialChar menuseparator
7605 File
7606 \begin_inset space ~
7607 \end_inset
7608
7609 Formats
7610 \end_layout
7611
7612 \end_inset
7613
7614
7615 \end_layout
7616
7617 \end_inset
7618
7619 , qpdfview and SumatraPDF
7620 \begin_inset Foot
7621 status collapsed
7622
7623 \begin_layout Plain Layout
7624 SumatraPDF can also use DDE commands through the external program CMCDDE
7625  — downloadable from 
7626 \begin_inset CommandInset href
7627 LatexCommand href
7628 target "ftp://ftp2.commence.com/pub/freebies/"
7629
7630 \end_inset
7631
7632
7633 \end_layout
7634
7635 \end_inset
7636
7637 .
7638  While many of the widespread PDF viewers (most notably Adobe Reader) do
7639  not support forward search at all, some other viewers – e.
7640 \begin_inset space \thinspace{}
7641 \end_inset
7642
7643 g.
7644  evince and xpdf – allow at least to reload the document and jump to a specific
7645  page of the file, so you can at least navigate 
7646 \begin_inset Quotes eld
7647 \end_inset
7648
7649 near
7650 \begin_inset Quotes erd
7651 \end_inset
7652
7653 .
7654  This latter functionality is provided by an external call of synctex (see
7655  the predefined example configurations).
7656  
7657 \end_layout
7658
7659 \begin_layout Standard
7660 Forward search works both with DVI and PDF output.
7661  \SpecialChar LyX
7662  simply checks which preview format you have used before (i.
7663 \begin_inset space \thinspace{}
7664 \end_inset
7665
7666 e., which format is already there in the temporary directory) and chooses
7667  the appropriate configuration for the respective format.
7668 \end_layout
7669
7670 \begin_layout Chapter
7671 Special Document Classes
7672 \end_layout
7673
7674 \begin_layout Section
7675 A&A Paper
7676 \end_layout
7677
7678 \begin_layout Standard
7679 by 
7680 \noun on
7681 Peter Sütterlin
7682 \end_layout
7683
7684 \begin_layout Subsection
7685 Introduction
7686 \end_layout
7687
7688 \begin_layout Standard
7689 This section describes how \SpecialChar LyX
7690  can be used to write articles for submission
7691  to the scientific journal 
7692 \emph on
7693 Astronomy and Astrophysics
7694 \emph default
7695  (
7696 \begin_inset Flex URL
7697 status collapsed
7698
7699 \begin_layout Plain Layout
7700
7701 http://www.edpsciences.fr/aa/
7702 \end_layout
7703
7704 \end_inset
7705
7706 ) using Version 5.01 of the document class 
7707 \family typewriter
7708 aa.cls
7709 \family default
7710 .
7711  This package can be downloaded from the ftp site
7712 \end_layout
7713
7714 \begin_layout Standard
7715 \begin_inset VSpace medskip
7716 \end_inset
7717
7718
7719 \end_layout
7720
7721 \begin_layout Standard
7722 \align center
7723 \begin_inset Flex URL
7724 status collapsed
7725
7726 \begin_layout Plain Layout
7727
7728 ftp://ftp.edpsciences.org/pub/aa/readme.html
7729 \end_layout
7730
7731 \end_inset
7732
7733
7734 \end_layout
7735
7736 \begin_layout Standard
7737 \begin_inset VSpace medskip
7738 \end_inset
7739
7740
7741 \end_layout
7742
7743 \begin_layout Standard
7744 A manual comes together with that package, and this text is not meant to
7745  replace the original manual but is merely a short guide in how to realize
7746  the correct form of your paper.
7747  
7748 \end_layout
7749
7750 \begin_layout Standard
7751 Please note that the publisher of the journal was changed from Springer
7752  to EDP Sciences starting January 1, 2001.
7753  That change involved also some slight changes to the style files, namely
7754  the removal of the thesaurus command.
7755  The \SpecialChar LyX
7756  class aa supports the newest version of these style files, V 5.01.
7757  If you have an older version installed, please upgrade.
7758  For compatibility, the old (version 4) layout has been kept as 
7759 \family sans
7760 article (A&A V4)
7761 \family default
7762 .
7763  Please refer to the comments in 
7764 \family typewriter
7765 \SpecialChar LyX
7766 Dir/layouts/aapaper.layout
7767 \family default
7768 .
7769 \end_layout
7770
7771 \begin_layout Subsection
7772 Getting started
7773 \end_layout
7774
7775 \begin_layout Standard
7776 It is recommended you start from the example template distributed with \SpecialChar LyX
7777 .
7778  If you are not using a template, note the following settings:
7779 \end_layout
7780
7781 \begin_layout Itemize
7782 Select 
7783 \family sans
7784 article (A&A)
7785 \family default
7786  in the 
7787 \family sans
7788 Document\SpecialChar menuseparator
7789 Settings
7790 \family default
7791  dialog (OK, that one was obvious).
7792 \end_layout
7793
7794 \begin_layout Itemize
7795 Don't change the option 
7796 \family sans
7797 Page
7798 \begin_inset space ~
7799 \end_inset
7800
7801 style
7802 \family default
7803 : Leave it set to 
7804 \family sans
7805 default
7806 \family default
7807 .
7808  The whole layout is done by the macros, you shouldn't change anything.
7809 \end_layout
7810
7811 \begin_layout Subsection
7812 The header block
7813 \end_layout
7814
7815 \begin_layout Standard
7816 First thing to enter is the header information.
7817  It consists of seven entries, of which some are optional.
7818  They are
7819 \end_layout
7820
7821 \begin_layout Itemize
7822
7823 \family sans
7824 Title
7825 \family default
7826 : [required] 
7827 \end_layout
7828
7829 \begin_layout Itemize
7830
7831 \family sans
7832 Subtitle
7833 \family default
7834 : [optional] 
7835 \end_layout
7836
7837 \begin_layout Itemize
7838
7839 \family sans
7840 Author
7841 \family default
7842 : [required]
7843 \end_layout
7844
7845 \begin_layout Itemize
7846
7847 \family sans
7848 Address
7849 \family default
7850 : [required]
7851 \end_layout
7852
7853 \begin_layout Itemize
7854
7855 \family sans
7856 Offprints
7857 \family default
7858 : [optional] if more than one author: whom to contact for offprint requests.
7859 \end_layout
7860
7861 \begin_layout Itemize
7862
7863 \family sans
7864 Mail
7865 \family default
7866 : [optional] mail address for contacts.
7867 \end_layout
7868
7869 \begin_layout Itemize
7870
7871 \family sans
7872 Date
7873 \family default
7874 : [required].
7875  Suggested format is 
7876 \family typewriter
7877 Received: <date>; Accepted <date> 
7878 \end_layout
7879
7880 \begin_layout Standard
7881 There is no need to issue the 
7882 \family typewriter
7883
7884 \backslash
7885 maketitle
7886 \family default
7887  command, this is done automatically by \SpecialChar LyX
7888  when the header is finished.
7889  Although the order of the single header entries doesn't matter it is advised
7890  to keep the above sequence, just to get the best optics and meets the layout
7891  of the real document.
7892 \end_layout
7893
7894 \begin_layout Standard
7895 If you want to place footnotes in the header block, e.
7896 \begin_inset space \thinspace{}
7897 \end_inset
7898
7899 g.
7900 \begin_inset space \space{}
7901 \end_inset
7902
7903 to state your present address, just use the standard footnote via the menu
7904  
7905 \family sans
7906 Insert\SpecialChar menuseparator
7907 Footnote.
7908
7909 \family default
7910  \SpecialChar LyX
7911  will automagically use the term 
7912 \family typewriter
7913
7914 \backslash
7915 thanks{}
7916 \family default
7917  in that case.
7918 \end_layout
7919
7920 \begin_layout Standard
7921 In addition to these topics, the macros use three additional \SpecialChar LaTeX
7922  commands that
7923  have no counterpart in \SpecialChar LyX
7924 :
7925 \end_layout
7926
7927 \begin_layout Itemize
7928
7929 \family typewriter
7930
7931 \backslash
7932 and
7933 \family default
7934  to separate different names for more than one author and institute, respectivel
7935 y.
7936 \end_layout
7937
7938 \begin_layout Itemize
7939
7940 \family typewriter
7941
7942 \backslash
7943 inst{<nr>}
7944 \family default
7945 to mark corresponding author/institute pairs.
7946  The institutes are numbered sequentially as they appear in the 
7947 \family sans
7948 Address
7949 \family default
7950  field, so you have to put a marker to each author.
7951 \end_layout
7952
7953 \begin_layout Itemize
7954
7955 \family typewriter
7956
7957 \backslash
7958 email{address}
7959 \family default
7960  to supply an email address for fast contact.
7961 \end_layout
7962
7963 \begin_layout Standard
7964 In all cases, the appropriate command has to be entered in \SpecialChar LyX
7965  and marked as
7966  \SpecialChar LaTeX
7967  code.
7968  See the examples.
7969  
7970 \end_layout
7971
7972 \begin_layout Subsection
7973 The abstract
7974 \end_layout
7975
7976 \begin_layout Standard
7977 The abstract should immediately follow the header block.
7978  With version 5 the abstract environment was changed to a command, and there
7979  is now a resctriction to only one paragraph.
7980  In addition, it should contain an entry with the keywords.
7981  This is not yet implemented for \SpecialChar LyX
7982 , therefore you have to enter the \SpecialChar LaTeX
7983  command
7984  
7985 \family typewriter
7986
7987 \backslash
7988 keywords{}
7989 \family default
7990  by hand and mark it as \SpecialChar LaTeX
7991  code.
7992  Refer to the example paper.
7993 \end_layout
7994
7995 \begin_layout Subsection
7996 Supported environments
7997 \end_layout
7998
7999 \begin_layout Standard
8000 The A&A paper layout supports the following environments for structuring
8001  your text:
8002 \end_layout
8003
8004 \begin_layout Itemize
8005
8006 \family sans
8007 Standard
8008 \end_layout
8009
8010 \begin_layout Itemize
8011
8012 \family sans
8013 Section
8014 \end_layout
8015
8016 \begin_layout Itemize
8017
8018 \family sans
8019 Subsection
8020 \end_layout
8021
8022 \begin_layout Itemize
8023
8024 \family sans
8025 Subsubsection
8026 \end_layout
8027
8028 \begin_layout Itemize
8029
8030 \family sans
8031 Itemize
8032 \end_layout
8033
8034 \begin_layout Itemize
8035
8036 \family sans
8037 Enumerate
8038 \end_layout
8039
8040 \begin_layout Itemize
8041
8042 \family sans
8043 Description
8044 \end_layout
8045
8046 \begin_layout Itemize
8047
8048 \family sans
8049 Caption
8050 \end_layout
8051
8052 \begin_layout Itemize
8053
8054 \family sans
8055 Abstract
8056 \end_layout
8057
8058 \begin_layout Itemize
8059
8060 \family sans
8061 Acknowledgment
8062 \end_layout
8063
8064 \begin_layout Itemize
8065
8066 \family sans
8067 Bibliography
8068 \end_layout
8069
8070 \begin_layout Itemize
8071
8072 \family sans
8073 \SpecialChar LaTeX
8074
8075 \end_layout
8076
8077 \begin_layout Subsection
8078 Commands not supported by \SpecialChar LyX
8079
8080 \end_layout
8081
8082 \begin_layout Standard
8083 Some commands are not yet supported by the 
8084 \family sans
8085 paper (A&A)
8086 \family default
8087  layout for \SpecialChar LyX
8088 .
8089  Some have already been mentioned.
8090  For the sake of completeness, they are listed all together here:
8091 \end_layout
8092
8093 \begin_layout Itemize
8094
8095 \family typewriter
8096
8097 \backslash
8098 and
8099 \end_layout
8100
8101 \begin_layout Itemize
8102
8103 \family typewriter
8104
8105 \backslash
8106 email
8107 \end_layout
8108
8109 \begin_layout Itemize
8110
8111 \family typewriter
8112
8113 \backslash
8114 appendix
8115 \end_layout
8116
8117 \begin_layout Itemize
8118
8119 \family typewriter
8120
8121 \backslash
8122 authorrunning
8123 \end_layout
8124
8125 \begin_layout Itemize
8126
8127 \family typewriter
8128
8129 \backslash
8130 inst{}
8131 \end_layout
8132
8133 \begin_layout Itemize
8134
8135 \family typewriter
8136
8137 \backslash
8138 keywords{}
8139 \end_layout
8140
8141 \begin_layout Itemize
8142
8143 \family typewriter
8144
8145 \backslash
8146 object{}
8147 \end_layout
8148
8149 \begin_layout Itemize
8150
8151 \family typewriter
8152
8153 \backslash
8154 titlerunning{}
8155 \end_layout
8156
8157 \begin_layout Standard
8158 If you want to use any of these commands, you have to enter them yourself.
8159  
8160 \series bold
8161 Do not forget to mark them as \SpecialChar LaTeX
8162  code!
8163 \end_layout
8164
8165 \begin_layout Subsection
8166 Figure and Table Floats
8167 \end_layout
8168
8169 \begin_layout Standard
8170 \SpecialChar LyX
8171  provides support for the necessary float environments 
8172 \family sans
8173 figure, figure*, table
8174 \family default
8175  and 
8176 \family sans
8177 table*
8178 \family default
8179 , therefore we won't tell much about it here.
8180  Refer to the 
8181 \emph on
8182 User's
8183 \begin_inset space ~
8184 \end_inset
8185
8186 Guide
8187 \emph default
8188 .
8189  Just remember that tables should be left-aligned.
8190  For that, select the table and change the alignment in 
8191 \family sans
8192 Edit\SpecialChar menuseparator
8193 Paragraph
8194 \begin_inset space ~
8195 \end_inset
8196
8197 Settings.
8198 \end_layout
8199
8200 \begin_layout Standard
8201 There is only one special thing: the figures with caption besides the figure.
8202  To create such a figure, you have to do the following:
8203 \end_layout
8204
8205 \begin_layout Enumerate
8206 Create a wide figure float: 
8207 \family sans
8208 Insert\SpecialChar menuseparator
8209 Float\SpecialChar menuseparator
8210 Figure
8211 \family default
8212 , then right click in the figure and select 
8213 \family sans
8214 \bar under
8215 S
8216 \bar default
8217 pan
8218 \begin_inset space ~
8219 \end_inset
8220
8221 columns
8222 \family default
8223 .
8224 \end_layout
8225
8226 \begin_layout Enumerate
8227 Enter your caption text.
8228 \end_layout
8229
8230 \begin_layout Enumerate
8231 Press 
8232 \family sans
8233 Return
8234 \family default
8235  to move the cursor above the caption.
8236 \end_layout
8237
8238 \begin_layout Enumerate
8239 Insert your figure
8240 \end_layout
8241
8242 \begin_layout Enumerate
8243 Position the cursor behind the figure and insert a horizontal fill: 
8244 \family sans
8245 Insert\SpecialChar menuseparator
8246 Special
8247 \begin_inset space ~
8248 \end_inset
8249
8250 Character\SpecialChar menuseparator
8251 Horizontal
8252 \begin_inset space ~
8253 \end_inset
8254
8255 Fill
8256 \family default
8257 .
8258 \end_layout
8259
8260 \begin_layout Enumerate
8261 Switch to \SpecialChar LaTeX
8262  mode: 
8263 \family sans
8264 M-c
8265 \begin_inset space ~
8266 \end_inset
8267
8268 t
8269 \family default
8270 .
8271 \end_layout
8272
8273 \begin_layout Enumerate
8274 Enter 
8275 \family typewriter
8276
8277 \backslash
8278 parbox[b]{55mm}{
8279 \family default
8280 .
8281  
8282 \series bold
8283 Do not close the brace!
8284 \end_layout
8285
8286 \begin_layout Enumerate
8287 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8288  mode and insert
8289  the closing brace: 
8290 \family sans
8291 M-c
8292 \begin_inset space ~
8293 \end_inset
8294
8295 t
8296 \family default
8297  
8298 \family typewriter
8299 }
8300 \family default
8301 .
8302 \end_layout
8303
8304 \begin_layout Standard
8305 Also, refer to the figures in the example paper.
8306 \end_layout
8307
8308 \begin_layout Subsection
8309 Referee layout
8310 \end_layout
8311
8312 \begin_layout Standard
8313 For submission, the paper has to be formated in a special double-spacing
8314  layout.
8315  For this purpose, you have to give the option 
8316 \family typewriter
8317 referee
8318 \family default
8319  to the documentclass.
8320  This must be done using the extra class options field in the 
8321 \family sans
8322 Document\SpecialChar menuseparator
8323 Settings
8324 \family default
8325  dialog.
8326  Just enter the string 
8327 \family typewriter
8328 referee
8329 \family default
8330  there.
8331 \end_layout
8332
8333 \begin_layout Subsection
8334 The example paper
8335 \end_layout
8336
8337 \begin_layout Standard
8338 The 
8339 \family sans
8340 Examples
8341 \family default
8342  directory contains an example paper written with \SpecialChar LyX
8343 .
8344  It is the example paper from the original macro package, translated to
8345  \SpecialChar LyX
8346 .
8347  Use it for inspiration, and compare the original \SpecialChar LaTeX
8348  code with \SpecialChar LyX
8349  way of writing.
8350 \end_layout
8351
8352 \begin_layout Section
8353 AAS\SpecialChar TeX
8354
8355 \end_layout
8356
8357 \begin_layout Standard
8358 by 
8359 \noun on
8360 Mike Ressler
8361 \end_layout
8362
8363 \begin_layout Subsection
8364 Introduction
8365 \end_layout
8366
8367 \begin_layout Standard
8368 AAS\SpecialChar TeX
8369  is a set of macros produced by the American Astronomical Society to
8370  facilitate electronic manuscript submission to the three journals they
8371  publish: the Astrophysical Journal (including the Letters and Supplement),
8372  the Astronomical Journal, and the Publications of the Astronomical Society
8373  of the Pacific.
8374  \SpecialChar LyX
8375  has proven to be an excellent tool for generating these documents, especially
8376  given its equation, citation, and figure handling capabilities.
8377  \SpecialChar LyX
8378  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8379  is the version described here, or higher.
8380  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8381 2.09 and are fundamentally
8382  incompatible with \SpecialChar LyX
8383 .
8384  The AAS\SpecialChar TeX
8385  package may be downloaded from the AAS\SpecialChar TeX
8386  Web site
8387 \end_layout
8388
8389 \begin_layout Standard
8390 \begin_inset VSpace medskip
8391 \end_inset
8392
8393
8394 \end_layout
8395
8396 \begin_layout Standard
8397 \align center
8398 \begin_inset Flex URL
8399 status collapsed
8400
8401 \begin_layout Plain Layout
8402
8403 http://www.journals.uchicago.edu/AAS/AASTeX
8404 \end_layout
8405
8406 \end_inset
8407
8408
8409 \end_layout
8410
8411 \begin_layout Standard
8412 \begin_inset VSpace medskip
8413 \end_inset
8414
8415
8416 \end_layout
8417
8418 \begin_layout Standard
8419 A complete user guide is contained in that package and you should familiarize
8420  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8421 .
8422  \SpecialChar LyX
8423  will not reduce the need to figure out all the AAS\SpecialChar TeX
8424  commands, it will only
8425  reduce the drudgery of typing everything in.
8426  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8427  document conforms
8428  completely to the requirements of the journal to which you are submitting
8429  your paper.
8430 \end_layout
8431
8432 \begin_layout Subsection
8433 Starting a New Paper
8434 \end_layout
8435
8436 \begin_layout Standard
8437 I strongly suggest that you start with the AAS\SpecialChar TeX
8438  template file.
8439  Click on 
8440 \family sans
8441 File\SpecialChar menuseparator
8442 New from
8443 \family default
8444  
8445 \family sans
8446 Template
8447 \family default
8448 , enter the new file name, then choose the 
8449 \family typewriter
8450 aastex.lyx
8451 \family default
8452  template.
8453  This will show the most common fields found in a manuscript.
8454  Simply overwrite the existing text (including the brackets, 
8455 \family typewriter
8456 <>
8457 \family default
8458 ) with the correct information.
8459  Many of the AAS\SpecialChar TeX
8460  commands and environments can be implemented directly in
8461  \SpecialChar LyX
8462 , but some cannot: most noticeably 
8463 \family typewriter
8464
8465 \backslash
8466 altaffilmark
8467 \family default
8468  and 
8469 \family typewriter
8470
8471 \backslash
8472 altaffiltext
8473 \family default
8474 , which should stick out like a sore thumb if you actually just opened the
8475  template file.
8476  For commands such as these, the \SpecialChar LaTeX
8477  code must be entered directly and marked
8478  as such.
8479  Such commands are referred to as \SpecialChar TeX
8480  code, or Evil Red Text.
8481  I tried to minimize the amount of \SpecialChar TeX
8482  code needed in an AAS\SpecialChar TeX
8483  document, but
8484  there is still a bit more required than any of us would like.
8485 \end_layout
8486
8487 \begin_layout Subsection
8488 Finishing Your Paper
8489 \end_layout
8490
8491 \begin_layout Standard
8492 When the paper is finished to your satisfaction and previews/prints correctly,
8493  there are a few 
8494 \begin_inset Quotes eld
8495 \end_inset
8496
8497 postprocessing
8498 \begin_inset Quotes erd
8499 \end_inset
8500
8501  actions which need to be done before you submit it to the journals.
8502  
8503 \end_layout
8504
8505 \begin_layout Enumerate
8506 Export your paper as a \SpecialChar LaTeX
8507  file (
8508 \family sans
8509 File\SpecialChar menuseparator
8510 Export\SpecialChar menuseparator
8511 \SpecialChar LaTeX
8512
8513 \family default
8514 ).
8515  
8516 \end_layout
8517
8518 \begin_layout Enumerate
8519 Edit the resulting 
8520 \family typewriter
8521 .tex
8522 \family default
8523  file with your favorite text editor
8524 \begin_inset Separator parbreak
8525 \end_inset
8526
8527
8528 \end_layout
8529
8530 \begin_deeper
8531 \begin_layout Enumerate
8532 remove the comment lines before the 
8533 \family typewriter
8534
8535 \backslash
8536 documentclass
8537 \family default
8538  command
8539 \end_layout
8540
8541 \begin_layout Enumerate
8542 remove the 
8543 \family typewriter
8544
8545 \backslash
8546 usepackage...{fontenc}
8547 \family default
8548  line if it appears (usually just after 
8549 \family typewriter
8550
8551 \backslash
8552 documentclass
8553 \family default
8554 }; also remove the 
8555 \family typewriter
8556
8557 \backslash
8558 secnumdepth
8559 \family default
8560  line if it appears.
8561 \end_layout
8562
8563 \begin_layout Enumerate
8564 remove everything between (and including) the 
8565 \family typewriter
8566
8567 \backslash
8568 makeatletter
8569 \family default
8570  and 
8571 \family typewriter
8572
8573 \backslash
8574 makeatother
8575 \family default
8576  commands, except for any commands you specifically put into the \SpecialChar LaTeX
8577  preamble
8578  (which should appear immediately after the 
8579 \begin_inset Quotes eld
8580 \end_inset
8581
8582 User specified \SpecialChar LaTeX
8583  commands
8584 \begin_inset Quotes erd
8585 \end_inset
8586
8587  comment in the 
8588 \family typewriter
8589 .tex
8590 \family default
8591  file).
8592 \end_layout
8593
8594 \end_deeper
8595 \begin_layout Enumerate
8596 Run the resulting file through \SpecialChar LaTeX
8597  to make sure it still processes correctly.
8598 \end_layout
8599
8600 \begin_layout Enumerate
8601 Reread the journal requirements to make sure your filenames and formats
8602  are correct.
8603 \end_layout
8604
8605 \begin_layout Enumerate
8606 Submit it.
8607 \end_layout
8608
8609 \begin_layout Subsection
8610 Comments On Specific Commands
8611 \end_layout
8612
8613 \begin_layout Standard
8614 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
8615  commands: the
8616  AAS\SpecialChar TeX
8617  User Guide (
8618 \family typewriter
8619 aasguide.tex
8620 \family default
8621 ) gives a good description of each.
8622  Thus it's probably easiest for me to go down the list as found in the guide
8623  and offer comments where necessary.
8624  So let's begin \SpecialChar ldots
8625
8626 \end_layout
8627
8628 \begin_layout Subsubsection
8629 Things that work as expected
8630 \end_layout
8631
8632 \begin_layout Standard
8633 Because they work as you might expect, I simply list them and the section
8634  they are found in: 
8635 \family typewriter
8636
8637 \backslash
8638 documentclass
8639 \family default
8640  (2.1.1), 
8641 \family typewriter
8642
8643 \backslash
8644 begin{document}
8645 \family default
8646  (2.2), 
8647 \family typewriter
8648
8649 \backslash
8650 title
8651 \family default
8652  (2.3), 
8653 \family typewriter
8654
8655 \backslash
8656 author
8657 \family default
8658  (2.3), 
8659 \family typewriter
8660
8661 \backslash
8662 affil
8663 \family default
8664  (2.3), 
8665 \family typewriter
8666
8667 \backslash
8668 abstract
8669 \family default
8670  (2.4), 
8671 \family typewriter
8672
8673 \backslash
8674 keywords
8675 \family default
8676  (2.5), 
8677 \family typewriter
8678
8679 \backslash
8680 section
8681 \family default
8682  (2.7), 
8683 \family typewriter
8684
8685 \backslash
8686 subsection
8687 \family default
8688  (2.7), 
8689 \family typewriter
8690
8691 \backslash
8692 subsubsection
8693 \family default
8694  (2.7), 
8695 \family typewriter
8696
8697 \backslash
8698 paragraph
8699 \family default
8700  (2.7), 
8701 \family typewriter
8702
8703 \backslash
8704 facility
8705 \family default
8706  (2.10), 
8707 \family typewriter
8708
8709 \backslash
8710 begin{displaymath}
8711 \family default
8712  (2.12), 
8713 \family typewriter
8714
8715 \backslash
8716 begin{equation}
8717 \family default
8718  (2.12), 
8719 \family typewriter
8720
8721 \backslash
8722 begin{eqnarray}
8723 \family default
8724  (2.12), 
8725 \family typewriter
8726
8727 \backslash
8728 begin{mathletters}
8729 \family default
8730  (2.12), 
8731 \family typewriter
8732
8733 \backslash
8734 begin{thebibliography}
8735 \family default
8736  (2.13.1), 
8737 \family typewriter
8738
8739 \backslash
8740 bibitem
8741 \family default
8742  (2.13.2), all the cite commands and their variations (2.13.2), the generic
8743  graphicx figure commands (2.14.1), 
8744 \family typewriter
8745
8746 \backslash
8747 begin{table}
8748 \family default
8749  (2.15.4), 
8750 \family typewriter
8751
8752 \backslash
8753 begin{tabular}
8754 \family default
8755  (2.15.4), 
8756 \family typewriter
8757
8758 \backslash
8759 caption
8760 \family default
8761  (2.15.4), 
8762 \family typewriter
8763
8764 \backslash
8765 label
8766 \family default
8767  (2.15.4, amongst other places), 
8768 \family typewriter
8769
8770 \backslash
8771 tablerefs
8772 \family default
8773  (2.15.5), 
8774 \family typewriter
8775
8776 \backslash
8777 tablecomments
8778 \family default
8779  (2.15.5), 
8780 \family typewriter
8781
8782 \backslash
8783 url
8784 \family default
8785  (2.17.4), 
8786 \family typewriter
8787
8788 \backslash
8789 end{document}
8790 \family default
8791  (2.18).
8792 \end_layout
8793
8794 \begin_layout Standard
8795 The following style options also work correctly: 
8796 \family typewriter
8797 longabstract
8798 \family default
8799  (2.4), 
8800 \family typewriter
8801 preprint
8802 \family default
8803  (3.2.1), 
8804 \family typewriter
8805 preprint2
8806 \family default
8807  (3.2.2), 
8808 \family typewriter
8809 eqsecnum
8810 \family default
8811  (3.3), 
8812 \family typewriter
8813 flushrt
8814 \family default
8815  (3.4).
8816  Simply put them in the 
8817 \family sans
8818 Options
8819 \family default
8820  box in 
8821 \family sans
8822 Layout\SpecialChar menuseparator
8823 Document
8824 \family default
8825 .
8826 \end_layout
8827
8828 \begin_layout Subsubsection
8829 Things that work, but require more comment
8830 \end_layout
8831
8832 \begin_layout Standard
8833 The following items work, but require a little more discussion:
8834 \end_layout
8835
8836 \begin_layout Itemize
8837 These items are reserved for use by the journal editors, but you can put
8838  them into the \SpecialChar LaTeX
8839  preamble if you feel compelled to do so: 
8840 \family typewriter
8841
8842 \backslash
8843 received
8844 \family default
8845
8846 \family typewriter
8847
8848 \backslash
8849 revised
8850 \family default
8851
8852 \family typewriter
8853
8854 \backslash
8855 accepted
8856 \family default
8857
8858 \family typewriter
8859
8860 \backslash
8861 ccc
8862 \family default
8863
8864 \family typewriter
8865
8866 \backslash
8867 cpright
8868 \family default
8869  (all from 2.1.3)
8870 \end_layout
8871
8872 \begin_layout Itemize
8873 These items may be placed in the \SpecialChar LaTeX
8874  preamble, and are included as blanks in
8875  the template file: 
8876 \family typewriter
8877
8878 \backslash
8879 slugcomment
8880 \family default
8881  (2.1.4), 
8882 \family typewriter
8883
8884 \backslash
8885 shorttitle
8886 \family default
8887  (2.1.5), 
8888 \family typewriter
8889
8890 \backslash
8891 shortauthors
8892 \family default
8893  (2.1.5)
8894 \end_layout
8895
8896 \begin_layout Itemize
8897
8898 \family typewriter
8899
8900 \backslash
8901 email
8902 \family default
8903  (2.3) – can only be used 
8904 \begin_inset Quotes eld
8905 \end_inset
8906
8907 standalone
8908 \begin_inset Quotes erd
8909 \end_inset
8910
8911 , not in the middle of a paragraph.
8912  Use \SpecialChar TeX
8913  code if you need to embed it.
8914 \end_layout
8915
8916 \begin_layout Itemize
8917
8918 \family typewriter
8919
8920 \backslash
8921 and
8922 \family default
8923  (2.3) – will have extra {} after it.
8924  This should not cause an error.
8925 \end_layout
8926
8927 \begin_layout Itemize
8928
8929 \family typewriter
8930
8931 \backslash
8932 notetoeditor
8933 \family default
8934  (2.6) – can only be used 
8935 \begin_inset Quotes eld
8936 \end_inset
8937
8938 standalone
8939 \begin_inset Quotes erd
8940 \end_inset
8941
8942 , not in the middle of a paragraph.
8943  Use \SpecialChar TeX
8944  code if you need to embed it.
8945 \end_layout
8946
8947 \begin_layout Itemize
8948
8949 \family typewriter
8950
8951 \backslash
8952 placetable
8953 \family default
8954  (2.8) – can't insert a cross-reference tag, you must type the tag name by
8955  hand
8956 \end_layout
8957
8958 \begin_layout Itemize
8959
8960 \family typewriter
8961
8962 \backslash
8963 placefigure
8964 \family default
8965  (2.8) – same as for 
8966 \family typewriter
8967
8968 \backslash
8969 placetable
8970 \end_layout
8971
8972 \begin_layout Itemize
8973
8974 \family typewriter
8975
8976 \backslash
8977 acknowledgements
8978 \family default
8979  (2.9) – will have extra {} after it.
8980  This should not cause an error.
8981 \end_layout
8982
8983 \begin_layout Itemize
8984
8985 \family typewriter
8986
8987 \backslash
8988 appendix
8989 \family default
8990  (2.11) – will have extra {} after it.
8991  This should not cause an error.
8992 \end_layout
8993
8994 \begin_layout Itemize
8995
8996 \family typewriter
8997
8998 \backslash
8999 figcaption
9000 \family default
9001  (2.14.2) – you can insert an optional filename argument by placing the cursor
9002  at the beginning of the text and selecting 
9003 \family sans
9004 Insert\SpecialChar menuseparator
9005 Short Title
9006 \family default
9007 .
9008  
9009 \begin_inset Quotes eld
9010 \end_inset
9011
9012 Short Title
9013 \begin_inset Quotes erd
9014 \end_inset
9015
9016  inserts an optional argument of the type needed by 
9017 \family typewriter
9018
9019 \backslash
9020 figcaption
9021 \family default
9022 .
9023  Hopefully it will be renamed someday.
9024 \end_layout
9025
9026 \begin_layout Itemize
9027
9028 \family typewriter
9029
9030 \backslash
9031 objectname
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 Itemize
9043
9044 \family typewriter
9045
9046 \backslash
9047 dataset
9048 \family default
9049  (2.17.1) – same as 
9050 \family typewriter
9051
9052 \backslash
9053 figcaption
9054 \family default
9055  for the catalog ID optional parameter
9056 \end_layout
9057
9058 \begin_layout Subsubsection
9059 Things not implemented, use \SpecialChar TeX
9060  code
9061 \end_layout
9062
9063 \begin_layout Standard
9064
9065 \family typewriter
9066
9067 \backslash
9068 altaffilmark
9069 \family default
9070  (2.3), 
9071 \family typewriter
9072
9073 \backslash
9074 altaffiltext
9075 \family default
9076  (2.3), 
9077 \family typewriter
9078
9079 \backslash
9080 eqnum
9081 \family default
9082  (2.12), 
9083 \family typewriter
9084
9085 \backslash
9086 setcounter{equation}
9087 \family default
9088  (2.12), Journal name abbreviations (2.13.4), 
9089 \family typewriter
9090
9091 \backslash
9092 figurenum
9093 \family default
9094  (2.14.1), 
9095 \family typewriter
9096
9097 \backslash
9098 epsscale
9099 \family default
9100  (2.14.1), 
9101 \family typewriter
9102
9103 \backslash
9104 plotone
9105 \family default
9106  (2.14.1), 
9107 \family typewriter
9108
9109 \backslash
9110 plottwo
9111 \family default
9112  (2.14.1), 
9113 \family typewriter
9114
9115 \backslash
9116 tablenum
9117 \family default
9118  (2.15.4), 
9119 \family typewriter
9120
9121 \backslash
9122 tableline
9123 \family default
9124  (2.15.4, insert it as the first element in the lefthand cell after where
9125  you want it.
9126  Don't use any of \SpecialChar LyX
9127 's rules in the table), 
9128 \family typewriter
9129
9130 \backslash
9131 tablenotemark
9132 \family default
9133  (2.15.5), 
9134 \family typewriter
9135
9136 \backslash
9137 tablenotetext
9138 \family default
9139  (2.15.5), much of Misc (2.17, except 
9140 \family typewriter
9141
9142 \backslash
9143 objectname
9144 \family default
9145
9146 \family typewriter
9147
9148 \backslash
9149 dataset
9150 \family default
9151
9152 \family typewriter
9153
9154 \backslash
9155 url
9156 \family default
9157 , and 
9158 \family typewriter
9159
9160 \backslash
9161 email
9162 \family default
9163 ; see above), 
9164 \family typewriter
9165
9166 \backslash
9167 singlespace
9168 \family default
9169  (3.1), 
9170 \family typewriter
9171
9172 \backslash
9173 doublespace
9174 \family default
9175  (3.1), 
9176 \family typewriter
9177
9178 \backslash
9179 onecolumn
9180 \family default
9181  (3.2), 
9182 \family typewriter
9183
9184 \backslash
9185 twocolumn
9186 \family default
9187  (3.2)
9188 \end_layout
9189
9190 \begin_layout Subsubsection
9191 Things that cannot be implemented
9192 \end_layout
9193
9194 \begin_layout Standard
9195 \SpecialChar ldots
9196  at least in any meaningful sort of way, so I suggest ignoring them.
9197  They are the references environment (2.13.3), and the deluxetable environment
9198  (2.15).
9199  If you really, really need to use deluxetable, I suggest editing it in
9200  a separate file with a text editor, then using 
9201 \family sans
9202 Insert\SpecialChar menuseparator
9203 Child
9204 \begin_inset space ~
9205 \end_inset
9206
9207 Document
9208 \family default
9209  to include it in your \SpecialChar LyX
9210  document.
9211  See the 
9212 \family typewriter
9213 aas_sample.lyx
9214 \family default
9215  file to see an example of this.
9216 \end_layout
9217
9218 \begin_layout Subsection
9219 FAQs, Tips, Tricks, and Other Ruminations
9220 \end_layout
9221
9222 \begin_layout Subsubsection
9223 Getting \SpecialChar LyX
9224  and AAS\SpecialChar TeX
9225  to cooperate
9226 \end_layout
9227
9228 \begin_layout Standard
9229 It can be a bit tricky to get \SpecialChar LyX
9230  to recognize a new layout and document class.
9231  When all else fails, do this:
9232 \end_layout
9233
9234 \begin_layout Enumerate
9235 Make certain that \SpecialChar LaTeX
9236  can find AAS\SpecialChar TeX
9237 .
9238  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9239  distribution into a
9240  directory completely unrelated to \SpecialChar LaTeX
9241  or AAS\SpecialChar TeX
9242  and run \SpecialChar LaTeX
9243  on 
9244 \family typewriter
9245 sample.tex
9246 \family default
9247 .
9248 \end_layout
9249
9250 \begin_layout Enumerate
9251 Make certain that 
9252 \family typewriter
9253 aastex.layout
9254 \family default
9255  appears in \SpecialChar LyX
9256 's 
9257 \family typewriter
9258 layouts
9259 \family default
9260  folder
9261 \end_layout
9262
9263 \begin_layout Enumerate
9264 Rerun 
9265 \family sans
9266 Tools\SpecialChar menuseparator
9267 Reconfigure
9268 \family default
9269  in \SpecialChar LyX
9270 , then restart \SpecialChar LyX
9271 .
9272 \end_layout
9273
9274 \begin_layout Enumerate
9275 Open a regular new file, not from a template.
9276  Does AAS\SpecialChar TeX
9277  appear in the class list in 
9278 \family sans
9279 Document\SpecialChar menuseparator
9280 Settings
9281 \family default
9282 ?
9283 \end_layout
9284
9285 \begin_layout Standard
9286 If you get a warning from an existing AAS\SpecialChar TeX
9287  document about not being able
9288  to find the AAS\SpecialChar TeX
9289  layout or a message about 
9290 \begin_inset Quotes eld
9291 \end_inset
9292
9293 You should not mix title layouts with normal ones
9294 \begin_inset Quotes erd
9295 \end_inset
9296
9297 , things haven't been installed correctly.
9298 \end_layout
9299
9300 \begin_layout Subsubsection
9301 \SpecialChar LaTeX
9302  error processing a table 
9303 \end_layout
9304
9305 \begin_layout Standard
9306 \SpecialChar LyX
9307 , by default, attempts to center the table caption/title.
9308  This seems to produce a bad interaction in AAS\SpecialChar TeX
9309  so you should click somewhere
9310  in the caption/title, then select 
9311 \family sans
9312 Edit\SpecialChar menuseparator
9313 Paragraph
9314 \begin_inset space ~
9315 \end_inset
9316
9317 Settings
9318 \family default
9319 , then set the 
9320 \family sans
9321 Alignment
9322 \family default
9323  to 
9324 \family sans
9325 Block
9326 \family default
9327 .
9328  This took care of it for me.
9329 \end_layout
9330
9331 \begin_layout Subsubsection
9332 References
9333 \end_layout
9334
9335 \begin_layout Standard
9336 A couple of things: 1) I have noticed some funny spacing in the reference
9337  entries in the text.
9338  When you enter the bibliography item data, make sure their is 
9339 \emph on
9340 no
9341 \emph default
9342  space between the last author and the parenthesis setting off the year;
9343  
9344 \emph on
9345 e.
9346 \begin_inset space \thinspace{}
9347 \end_inset
9348
9349 g.
9350 \begin_inset space \space{}
9351 \end_inset
9352
9353
9354 \emph default
9355 type 
9356 \family typewriter
9357 Ressler(1992)
9358 \family default
9359 , not 
9360 \family typewriter
9361 Ressler (1992)
9362 \family default
9363 .
9364  2) Entering the references at all is not obvious.
9365  The easiest thing is to start typing your first reference at the end of
9366  the document, then mark it as type 
9367 \family sans
9368 References
9369 \family default
9370 .
9371  That will put a small gray box in front of what you just typed.
9372  Click on the box to fill in the rest of the information.
9373  For new references, go to the end of an existing reference and press return.
9374  That will create a new line with its own box, etc.
9375 \end_layout
9376
9377 \begin_layout Subsubsection
9378 Including EPS files
9379 \end_layout
9380
9381 \begin_layout Standard
9382 Even though AAS\SpecialChar TeX
9383  provides its own figure commands (
9384 \family typewriter
9385
9386 \backslash
9387 plotone
9388 \family default
9389 , for example), I much prefer \SpecialChar LaTeX
9390 's standard figure commands (with the default
9391  graphicx).
9392  You can insert the 
9393 \family typewriter
9394
9395 \backslash
9396 plotone
9397 \family default
9398 , etc.
9399 \begin_inset space ~
9400 \end_inset
9401
9402 commands as \SpecialChar TeX
9403  code into a Figure Float box if you desire, but I never have
9404  much luck getting the layout right.
9405  With the standard graphics, \SpecialChar LyX
9406  will insert a 
9407 \family typewriter
9408
9409 \backslash
9410 usepackage{graphicx}
9411 \family default
9412  command into the \SpecialChar LaTeX
9413  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9414  way,
9415  interspersing the figures in the text.
9416  I believe ApJ accepts figures exactly this way now; AJ might still use
9417  the 
9418 \begin_inset Quotes eld
9419 \end_inset
9420
9421 stack everything at the end
9422 \begin_inset Quotes erd
9423 \end_inset
9424
9425  technique.
9426 \end_layout
9427
9428 \begin_layout Subsubsection
9429 Things I could have done, but didn't
9430 \end_layout
9431
9432 \begin_layout Standard
9433 There are a few 
9434 \begin_inset Quotes eld
9435 \end_inset
9436
9437 pretty
9438 \begin_inset Quotes erd
9439 \end_inset
9440
9441  things I could have implemented, but chose not to.
9442  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9443  window,
9444  even though it is double-spaced in the paper manuscript.
9445  Also, I chose not to make separate layouts for the preprint and preprint2
9446  styles.
9447  Since I assume you will spend most of your time in the plain manuscript
9448  mode anyway, I decided not to chew up more disk space with this.
9449  
9450 \end_layout
9451
9452 \begin_layout Subsection
9453 Final Caveat
9454 \end_layout
9455
9456 \begin_layout Standard
9457 Your mileage may vary.
9458  I've now had papers published by both ApJ and AJ that have had 98% of the
9459  effort done in \SpecialChar LyX
9460 ; the last 2% was the \SpecialChar LaTeX
9461  post-processing and a few cleanups.
9462  I have had no trouble with the submission process, and I'm sure the journals
9463  were never aware that there might be a difference.
9464  So, go forth and publish!
9465 \end_layout
9466
9467 \begin_layout Section
9468 AMS \SpecialChar LaTeX
9469
9470 \end_layout
9471
9472 \begin_layout Standard
9473 by 
9474 \noun on
9475 David Johnson
9476 \noun default
9477 ; updated by 
9478 \noun on
9479 Richard Heck
9480 \end_layout
9481
9482 \begin_layout Standard
9483 \begin_inset VSpace bigskip
9484 \end_inset
9485
9486
9487 \end_layout
9488
9489 \begin_layout Standard
9490 \noindent
9491 The AMS \SpecialChar LaTeX
9492  layouts are set up to conform to suggested styles for mathematical
9493  papers to be submitted to American Mathematical Society publications.
9494  The layouts are not tailored to a specific journal, but easily can be.
9495  You should refer to the AMS documentation for specific instructions for
9496  each journal (usually it will entail only changing a single line in the
9497  \SpecialChar TeX
9498  output).
9499  That documentation is available on the Web at 
9500 \begin_inset Flex URL
9501 status open
9502
9503 \begin_layout Plain Layout
9504
9505 http://www.ams.org
9506 \end_layout
9507
9508 \end_inset
9509
9510  or by ftp at 
9511 \begin_inset Flex URL
9512 status open
9513
9514 \begin_layout Plain Layout
9515
9516 ftp://ftp.ams.org/pub/tex/amslatex/
9517 \end_layout
9518
9519 \end_inset
9520
9521 .
9522  These layouts are appropriate, and useful, for any mathematical writing.
9523  
9524 \end_layout
9525
9526 \begin_layout Standard
9527 There are two basic AMS \SpecialChar LaTeX
9528  layouts: 
9529 \end_layout
9530
9531 \begin_layout Itemize
9532 amsart: The standard AMS article format.
9533 \end_layout
9534
9535 \begin_layout Itemize
9536 amsbook: the standard AMS book (really, monograph) format.
9537  
9538 \end_layout
9539
9540 \begin_layout Standard
9541 The layouts themselves contain only the minimum necessary to use the AMS
9542  classes.
9543  They do not, in particular, contain any of the `theorem' environments used
9544  for setting theorems, lemmas, and the like.
9545  These are contained, instead, in the 
9546 \begin_inset Flex Code
9547 status collapsed
9548
9549 \begin_layout Plain Layout
9550 Theorems (AMS)
9551 \end_layout
9552
9553 \end_inset
9554
9555  module, which is loaded by default when you select one of the AMS classes.
9556  (It can also be used with other classes and can be removed, if you would
9557  rather use something else.) Less commonly used environments are in the 
9558 \begin_inset Flex Code
9559 status collapsed
9560
9561 \begin_layout Plain Layout
9562 Theorems (AMS-Extended)
9563 \end_layout
9564
9565 \end_inset
9566
9567  module, which must be loaded manually.
9568 \end_layout
9569
9570 \begin_layout Standard
9571 By default, theorems and the like are numbered consecutively throughout
9572  the document, but this may be modified by loading the module 
9573 \begin_inset Flex Code
9574 status collapsed
9575
9576 \begin_layout Plain Layout
9577 Theorems (Order by Section)
9578 \end_layout
9579
9580 \end_inset
9581
9582  or, if you are using 
9583 \begin_inset Flex Code
9584 status collapsed
9585
9586 \begin_layout Plain Layout
9587 book (AMS)
9588 \end_layout
9589
9590 \end_inset
9591
9592 , the module 
9593 \begin_inset Flex Code
9594 status collapsed
9595
9596 \begin_layout Plain Layout
9597 Theorems (Order by Chapter)
9598 \end_layout
9599
9600 \end_inset
9601
9602 .
9603  These will number the results as 
9604 \begin_inset Formula $n.m$
9605 \end_inset
9606
9607 , where the first number refers to the section (or chapter) and the second
9608  refers to the total number of results so far in that section (or chapter).
9609  Many environments are also available unnumbered.
9610  These are indicated by an asterisk at the end.
9611  If you happen to want 
9612 \emph on
9613 only
9614 \emph default
9615  unnumbered results, the module 
9616 \begin_inset Flex Code
9617 status collapsed
9618
9619 \begin_layout Plain Layout
9620 Theorems (Starred)
9621 \end_layout
9622
9623 \end_inset
9624
9625  provides that option.
9626 \end_layout
9627
9628 \begin_layout Standard
9629 Note that these modules do not 
9630 \emph on
9631 have
9632 \emph default
9633  to be used with the AMS classes.
9634  It is perfectly possible to use the 
9635 \begin_inset Flex Code
9636 status collapsed
9637
9638 \begin_layout Plain Layout
9639 Theorems (AMS)
9640 \end_layout
9641
9642 \end_inset
9643
9644  module, and the others mentioned, with other classes, such as 
9645 \begin_inset Flex Code
9646 status collapsed
9647
9648 \begin_layout Plain Layout
9649 article
9650 \end_layout
9651
9652 \end_inset
9653
9654
9655 \begin_inset Flex Code
9656 status collapsed
9657
9658 \begin_layout Plain Layout
9659 report
9660 \end_layout
9661
9662 \end_inset
9663
9664
9665 \begin_inset Flex Code
9666 status collapsed
9667
9668 \begin_layout Plain Layout
9669 book (KOMA-script)
9670 \end_layout
9671
9672 \end_inset
9673
9674 , and so forth.
9675 \end_layout
9676
9677 \begin_layout Subsection
9678 What these layouts provide
9679 \end_layout
9680
9681 \begin_layout Standard
9682 There is a long list of included environments provided by these layouts.
9683  In AMS-\SpecialChar LaTeX
9684 , there is, in fact, an opportunity to define an unlimited variety
9685  of `theorem' environments.
9686  However, the AMS recommends the environments that are available in \SpecialChar LyX
9687 .
9688  
9689 \end_layout
9690
9691 \begin_layout Standard
9692 The following environments—as well as the standard environments, such as
9693  
9694 \begin_inset Flex Noun
9695 status collapsed
9696
9697 \begin_layout Plain Layout
9698 section
9699 \end_layout
9700
9701 \end_inset
9702
9703
9704 \begin_inset Flex Noun
9705 status collapsed
9706
9707 \begin_layout Plain Layout
9708 bibliography
9709 \end_layout
9710
9711 \end_inset
9712
9713
9714 \begin_inset Flex Noun
9715 status collapsed
9716
9717 \begin_layout Plain Layout
9718 title
9719 \end_layout
9720
9721 \end_inset
9722
9723
9724 \begin_inset Flex Noun
9725 status collapsed
9726
9727 \begin_layout Plain Layout
9728 author
9729 \end_layout
9730
9731 \end_inset
9732
9733 , and 
9734 \begin_inset Flex Noun
9735 status collapsed
9736
9737 \begin_layout Plain Layout
9738 date
9739 \end_layout
9740
9741 \end_inset
9742
9743 —are provided by 
9744 \begin_inset Flex Code
9745 status collapsed
9746
9747 \begin_layout Plain Layout
9748 article (AMS)
9749 \end_layout
9750
9751 \end_inset
9752
9753  and 
9754 \begin_inset Flex Code
9755 status collapsed
9756
9757 \begin_layout Plain Layout
9758 book (AMS)
9759 \end_layout
9760
9761 \end_inset
9762
9763 :
9764 \end_layout
9765
9766 \begin_layout Description
9767 Address This should be the author's permanent address.
9768 \end_layout
9769
9770 \begin_layout Description
9771 Current
9772 \begin_inset space ~
9773 \end_inset
9774
9775 Address This should be the author's temporary address at the time of submission,
9776  if different from the Address.
9777 \end_layout
9778
9779 \begin_layout Description
9780 Email Author's e-mail address
9781 \end_layout
9782
9783 \begin_layout Description
9784 URL Author's Web address, if desired.
9785 \end_layout
9786
9787 \begin_layout Description
9788 Keywords Key words or phrases used to identify specific topics discussed
9789  in the paper.
9790 \end_layout
9791
9792 \begin_layout Description
9793 Subjectclass These refer to the AMS Subject Classifications, published and
9794  described in 
9795 \emph on
9796 Mathematical Reviews
9797 \emph default
9798 .
9799  These are also available online at the AMS cites listed above.
9800 \end_layout
9801
9802 \begin_layout Description
9803 Thanks
9804 \end_layout
9805
9806 \begin_layout Description
9807 Dedicatory
9808 \end_layout
9809
9810 \begin_layout Description
9811 Translator
9812 \end_layout
9813
9814 \begin_layout Standard
9815 The following environments are provided by both the 
9816 \begin_inset Flex Code
9817 status collapsed
9818
9819 \begin_layout Plain Layout
9820 Theorems
9821 \end_layout
9822
9823 \end_inset
9824
9825  and 
9826 \begin_inset Flex Code
9827 status collapsed
9828
9829 \begin_layout Plain Layout
9830 Theorems (AMS)
9831 \end_layout
9832
9833 \end_inset
9834
9835  modules, in the latter case in both starred (unnumbered) and unstarred
9836  (numbered) versions.
9837  These same environments are provided only in the starred versions by the
9838  
9839 \begin_inset Flex Code
9840 status collapsed
9841
9842 \begin_layout Plain Layout
9843 Theorems (Starred)
9844 \end_layout
9845
9846 \end_inset
9847
9848  module:
9849 \end_layout
9850
9851 \begin_layout Theorem
9852 This is typically used for the statements of major results.
9853  
9854 \end_layout
9855
9856 \begin_layout Corollary*
9857 This is used for statements which follow fairly directly from previous statement
9858 s.
9859  Again, these can be major results.
9860  
9861 \end_layout
9862
9863 \begin_layout Lemma
9864 These are smaller results needed to prove other statements.
9865 \end_layout
9866
9867 \begin_layout Proposition
9868 These are less major results which (hopefully) add to the general theory
9869  being discussed.
9870 \end_layout
9871
9872 \begin_layout Conjecture
9873 These are statements provided without justification, which the author does
9874  not know how to prove, but which seem to be true (to the author, at least).
9875 \end_layout
9876
9877 \begin_layout Definition*
9878 Guess what this is for.
9879  The font is different for this environment than for the previous ones.
9880  
9881 \end_layout
9882
9883 \begin_layout Example*
9884 Used for examples illustrating proven results.
9885 \end_layout
9886
9887 \begin_layout Problem
9888 It's not really known what this is for.
9889  You should figure it out.
9890 \end_layout
9891
9892 \begin_layout Exercise*
9893 Write a description for this one.
9894 \end_layout
9895
9896 \begin_layout Remark
9897 This environment is also a type of theorem, usually a lesser sort of observation.
9898 \end_layout
9899
9900 \begin_layout Claim*
9901 Often used in the course of giving a proof of a larger result.
9902 \end_layout
9903
9904 \begin_layout Case
9905 Generally, these are used to break up long arguments, using specific instances
9906  of some condition.
9907  
9908 \end_layout
9909
9910 \begin_layout Case
9911 The numbering scheme for cases is on its own, not together with other numbered
9912  statements.
9913  
9914 \end_layout
9915
9916 \begin_layout Proof
9917 At the end of this environment, a QED symbol (usually a square, but it can
9918  vary with different styles) is placed.
9919  If you want to have other environments within this one—for example, Case
9920  environments—and have the QED symbol appear only after them, then the other
9921  environments need to be nested within the proof environment.
9922  See the section 
9923 \emph on
9924 Nesting Environments
9925 \emph default
9926  of the 
9927 \emph on
9928 User's Guide
9929 \emph default
9930  for information on nesting.
9931 \end_layout
9932
9933 \begin_layout Standard
9934 And these environments are provided by 
9935 \begin_inset Flex Code
9936 status collapsed
9937
9938 \begin_layout Plain Layout
9939 Theorems (AMS-Extended)
9940 \end_layout
9941
9942 \end_inset
9943
9944 :
9945 \end_layout
9946
9947 \begin_layout Criterion*
9948 A required condition.
9949 \end_layout
9950
9951 \begin_layout Algorithm*
9952 A general procedure to be used.
9953 \end_layout
9954
9955 \begin_layout Axiom*
9956 This is a property or statement taken as true within the system being discussed.
9957 \end_layout
9958
9959 \begin_layout Condition*
9960 Sometimes used to state a condition assumed within the present context of
9961  discussion.
9962 \end_layout
9963
9964 \begin_layout Note*
9965 Similar to a Remark.
9966 \end_layout
9967
9968 \begin_layout Notation*
9969 Used for the explanation of, yes, notation.
9970 \end_layout
9971
9972 \begin_layout Summary
9973 Do we really need to tell you? 
9974 \end_layout
9975
9976 \begin_layout Acknowledgement*
9977 Acknowledgement.
9978 \end_layout
9979
9980 \begin_layout Conclusion*
9981 Sometimes used at the end of a long train of argument.
9982 \end_layout
9983
9984 \begin_layout Fact
9985 Used in a way similar to Proposition, though perhaps lower on the scale.
9986 \end_layout
9987
9988 \begin_layout Standard
9989 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
9990  and AMS fonts
9991  packages.
9992  They need to be available on your system in order to use these environments.
9993 \end_layout
9994
9995 \begin_layout Section
9996 AGU journals (
9997 \family sans
9998 aguplus
9999 \family default
10000 )
10001 \end_layout
10002
10003 \begin_layout Standard
10004 by 
10005 \shape smallcaps
10006 Martin Vermeer
10007 \end_layout
10008
10009 \begin_layout Subsection
10010 Description
10011 \end_layout
10012
10013 \begin_layout Standard
10014 These are the layout files for some of the journals of the American Geophysical
10015  Society.
10016  It is assumed that you have both the AGU's own class files and AGUplus
10017  installed (everything to be found at
10018 \begin_inset Flex URL
10019 status collapsed
10020
10021 \begin_layout Plain Layout
10022
10023 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10024 \end_layout
10025
10026 \end_inset
10027
10028 ).
10029 \end_layout
10030
10031 \begin_layout Subsection
10032 New styles
10033 \end_layout
10034
10035 \begin_layout Standard
10036 Redefined are 
10037 \family sans
10038 Paragraph
10039 \family default
10040
10041 \family sans
10042 Paragraph*
10043 \family default
10044 .
10045  They are still called this in the \SpecialChar LyX
10046  GUI, though their \SpecialChar LaTeX
10047  equivalents in the
10048  AGU classes are 
10049 \family sans
10050 Subsubsubsection
10051 \family default
10052  and 
10053 \family sans
10054 Subsubsubsection*
10055 \family default
10056 .
10057 \end_layout
10058
10059 \begin_layout Standard
10060 Newly defined styles are 
10061 \family sans
10062 Left_Header
10063 \family default
10064
10065 \family sans
10066 Right_Header
10067 \family default
10068
10069 \family sans
10070 Received
10071 \family default
10072
10073 \family sans
10074 Revised
10075 \family default
10076
10077 \family sans
10078 Accepted
10079 \family default
10080
10081 \family sans
10082 CCC
10083 \family default
10084
10085 \family sans
10086 PaperId
10087 \family default
10088
10089 \family sans
10090 AuthorAddr
10091 \family default
10092
10093 \family sans
10094 SlugComment
10095 \family default
10096 .
10097  These are mostly manuscript attributes and defined in the AGU class documentati
10098 on.
10099 \end_layout
10100
10101 \begin_layout Standard
10102 I suspect this is still badly incomplete.
10103 \end_layout
10104
10105 \begin_layout Subsection
10106 New floats
10107 \end_layout
10108
10109 \begin_layout Standard
10110
10111 \family sans
10112 Planotable
10113 \family default
10114  and 
10115 \family sans
10116 Plate
10117 \family default
10118 .
10119  We also have a new 
10120 \family sans
10121 Table_Caption
10122 \family default
10123 .
10124 \end_layout
10125
10126 \begin_layout Subsection
10127 Supported journals
10128 \end_layout
10129
10130 \begin_layout Itemize
10131
10132 \emph on
10133 Journal of Geophysical Research
10134 \emph default
10135
10136 \family typewriter
10137 jgrga.layout
10138 \family default
10139  — Martin Vermeer
10140 \end_layout
10141
10142 \begin_layout Standard
10143 Add your own, it isn't so hard! Look at the 
10144 \family typewriter
10145 jgrga.layout
10146 \family default
10147  example and 
10148 \family typewriter
10149 aguplus.inc
10150 \family default
10151 .
10152 \end_layout
10153
10154 \begin_layout Subsection
10155 Bugs and things to remember
10156 \end_layout
10157
10158 \begin_layout Standard
10159 In order to use the new layouts, you must remember to do the following for
10160  a new document:
10161 \end_layout
10162
10163 \begin_layout Enumerate
10164
10165 \emph on
10166 Turn off babel
10167 \emph default
10168 .
10169  This can be done in the 
10170 \family sans
10171 Layout\SpecialChar menuseparator
10172 Document
10173 \family default
10174  or 
10175 \family sans
10176 Document\SpecialChar menuseparator
10177 Settings
10178 \family default
10179  menu item.
10180  (AGU articles are always in English, right? So 
10181 \emph on
10182 don't
10183 \emph default
10184  choose a language.)
10185 \end_layout
10186
10187 \begin_layout Enumerate
10188 Enter 
10189 \family typewriter
10190 jgrga
10191 \family default
10192  into the document's 
10193 \family sans
10194 Extra Options
10195 \family default
10196  field.
10197  (Yes, this is a bug.)
10198 \end_layout
10199
10200 \begin_layout Enumerate
10201 Make sure you use the 
10202 \family typewriter
10203 agu.bst
10204 \family default
10205  bibliography style, by entering 
10206 \family sans
10207 agu
10208 \family default
10209  into the second field of the Bib\SpecialChar TeX
10210  inset.
10211  None of the standard styles will do.
10212 \end_layout
10213
10214 \begin_layout Section
10215 Broadway
10216 \end_layout
10217
10218 \begin_layout Standard
10219 by 
10220 \shape smallcaps
10221 Garst Reese
10222 \end_layout
10223
10224 \begin_layout Subsection
10225 Introduction
10226 \end_layout
10227
10228 \begin_layout Standard
10229 Broadway is for writing plays.
10230  The format is more decorative than Hollywood, and much less standardized.
10231  This format should be suitable for workshops.
10232 \end_layout
10233
10234 \begin_layout Subsection
10235 Special problems
10236 \end_layout
10237
10238 \begin_layout Standard
10239 The same as in Hollywood.
10240 \end_layout
10241
10242 \begin_layout Subsection
10243 Special features
10244 \end_layout
10245
10246 \begin_layout Standard
10247 Insert the 
10248 \family sans
10249 Speaker
10250 \family default
10251  names as labels then cross-reference the label to insert the name.
10252  The cross-reference dialog will show the current cast of characters.
10253 \end_layout
10254
10255 \begin_layout Subsection
10256 Paper size and Margins
10257 \end_layout
10258
10259 \begin_layout Standard
10260 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10261 \end_layout
10262
10263 \begin_layout Subsection
10264 Environments
10265 \end_layout
10266
10267 \begin_layout Standard
10268 The following environments are available.
10269  You can use broadway.bind to get the bind keys shown at the right.
10270 \end_layout
10271
10272 \begin_layout Itemize
10273
10274 \family sans
10275 Standard
10276 \begin_inset Newline newline
10277 \end_inset
10278
10279
10280 \family default
10281 You should not have to use this, but it is here for anything that does not
10282  fit otherwise.
10283 \end_layout
10284
10285 \begin_layout Itemize
10286
10287 \family sans
10288 Narrative
10289 \begin_inset space \hfill{}
10290 \end_inset
10291
10292 M-z n
10293 \begin_inset Newline newline
10294 \end_inset
10295
10296
10297 \family default
10298 Used to describe stage setting and the action.
10299  First use of speaker names in all CAPs.
10300 \end_layout
10301
10302 \begin_layout Itemize
10303
10304 \family sans
10305 ACT
10306 \begin_inset space \hfill{}
10307 \end_inset
10308
10309 M-z a
10310 \begin_inset Newline newline
10311 \end_inset
10312
10313
10314 \family default
10315 Automatically numbered.
10316  On screen it will be arabic, but will print as Roman.
10317 \end_layout
10318
10319 \begin_layout Itemize
10320
10321 \family sans
10322 ACT*
10323 \begin_inset space \hfill{}
10324 \end_inset
10325
10326 M-z S at
10327 \begin_inset Newline newline
10328 \end_inset
10329
10330
10331 \family default
10332 Subtitle for 
10333 \family sans
10334 ACT.
10335
10336 \family default
10337  It is just centered text.
10338 \end_layout
10339
10340 \begin_layout Itemize
10341
10342 \family sans
10343 SCENE
10344 \begin_inset space \hfill{}
10345 \end_inset
10346
10347 M-z S-S
10348 \begin_inset Newline newline
10349 \end_inset
10350
10351
10352 \family default
10353 Not automatically numbered.
10354  You supply the number.
10355  This is because I couldn't figure out how.
10356 \end_layout
10357
10358 \begin_layout Itemize
10359
10360 \family sans
10361 AT_RISE:
10362 \begin_inset space \hfill{}
10363 \end_inset
10364
10365 M-z S-R
10366 \begin_inset Newline newline
10367 \end_inset
10368
10369
10370 \family default
10371 A special case of Narrative to describe the setting and action as the curtain
10372  rises.
10373 \end_layout
10374
10375 \begin_layout Itemize
10376
10377 \family sans
10378 Speaker
10379 \begin_inset space \hfill{}
10380 \end_inset
10381
10382 M-z s
10383 \begin_inset Newline newline
10384 \end_inset
10385
10386
10387 \family default
10388 The speaker's (actor's) title, centered in all CAPS.
10389 \end_layout
10390
10391 \begin_layout Itemize
10392
10393 \family sans
10394 Parenthetical
10395 \begin_inset space \hfill{}
10396 \end_inset
10397
10398 M-z p
10399 \begin_inset Newline newline
10400 \end_inset
10401
10402
10403 \family default
10404 Instructions to the speaker.
10405  The parentheses are automatically inserted.
10406  The ( will appear on screen, but both will be in the printed play.
10407  This environment is only used within 
10408 \family sans
10409 Dialogue
10410 \family default
10411 .
10412 \end_layout
10413
10414 \begin_layout Itemize
10415
10416 \family sans
10417 Dialogue
10418 \begin_inset space \hfill{}
10419 \end_inset
10420
10421 M-z d
10422 \begin_inset Newline newline
10423 \end_inset
10424
10425
10426 \family default
10427 What the Speaker says.
10428 \end_layout
10429
10430 \begin_layout Itemize
10431
10432 \family sans
10433 CURTAIN
10434 \begin_inset space \hfill{}
10435 \end_inset
10436
10437 M-z S-C
10438 \begin_inset Newline newline
10439 \end_inset
10440
10441
10442 \family default
10443 The curtain comes down.
10444 \end_layout
10445
10446 \begin_layout Itemize
10447
10448 \family sans
10449 Title
10450 \begin_inset space \hfill{}
10451 \end_inset
10452
10453 M-z S-T
10454 \end_layout
10455
10456 \begin_layout Itemize
10457
10458 \family sans
10459 Author
10460 \begin_inset space \hfill{}
10461 \end_inset
10462
10463 M-z S-A
10464 \end_layout
10465
10466 \begin_layout Itemize
10467
10468 \family sans
10469 Right_Address
10470 \begin_inset space \hfill{}
10471 \end_inset
10472
10473 M-z r
10474 \end_layout
10475
10476 \begin_layout Standard
10477 Hello there.
10478 \end_layout
10479
10480 \begin_layout Section
10481 Dinbrief
10482 \end_layout
10483
10484 \begin_layout Standard
10485 The document class 
10486 \family sans
10487 dinbrief
10488 \family default
10489  can be used to type letters according to German conventions.
10490  A template file is included in 
10491 \family typewriter
10492 .../lyx/share/templates
10493 \family default
10494  for you to use as a starting point.
10495 \end_layout
10496
10497 \begin_layout Section
10498 EGS journals (
10499 \family sans
10500 egs
10501 \family default
10502 )
10503 \end_layout
10504
10505 \begin_layout Standard
10506 by 
10507 \shape smallcaps
10508 Martin Vermeer
10509 \end_layout
10510
10511 \begin_layout Subsection
10512 Description
10513 \end_layout
10514
10515 \begin_layout Standard
10516 This is the layout file for the European Geophysical Society journals.
10517  The needed 
10518 \family typewriter
10519 egs.cls
10520 \family default
10521  can be downloaded from the web site of the EGS under 
10522 \begin_inset Flex URL
10523 status collapsed
10524
10525 \begin_layout Plain Layout
10526
10527 www.copernicus.org
10528 \end_layout
10529
10530 \end_inset
10531
10532 .
10533 \end_layout
10534
10535 \begin_layout Subsection
10536 New styles
10537 \end_layout
10538
10539 \begin_layout Standard
10540
10541 \family sans
10542 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10543  Accepted
10544 \family default
10545
10546 \family sans
10547 Offsets
10548 \family default
10549 .
10550  The current layout file is unfortunately very unmodular and would benefit
10551  from using the various 
10552 \family typewriter
10553 std*.inc
10554 \family default
10555  file inclusions.
10556 \end_layout
10557
10558 \begin_layout Section
10559 Elsevier Journals
10560 \end_layout
10561
10562 \begin_layout Standard
10563 See the \SpecialChar LyX
10564  template file 
10565 \family typewriter
10566 elsarticle.lyx
10567 \family default
10568 .
10569  It contains all infos you need.
10570 \end_layout
10571
10572 \begin_layout Section
10573 Foils [aka 
10574 \family sans
10575 Foil\SpecialChar TeX
10576
10577 \family default
10578 ]
10579 \begin_inset CommandInset label
10580 LatexCommand label
10581 name "sec:foiltex"
10582
10583 \end_inset
10584
10585
10586 \end_layout
10587
10588 \begin_layout Standard
10589 by 
10590 \noun on
10591 Allan Rae
10592 \end_layout
10593
10594 \begin_layout Subsection
10595 Introduction
10596 \end_layout
10597
10598 \begin_layout Standard
10599 This section describes how to use \SpecialChar LyX
10600  to make slides for overhead projectors.
10601  There are two document classes that can do this: the default slides class
10602  and the 
10603 \family sans
10604 Foil\SpecialChar TeX
10605
10606 \family default
10607  slides class.
10608  This section documents the latter.
10609 \end_layout
10610
10611 \begin_layout Standard
10612 I'm going to say this again, nice and clear, so that there's no misunderstanding
10613 :
10614 \end_layout
10615
10616 \begin_layout Standard
10617 \begin_inset VSpace bigskip
10618 \end_inset
10619
10620
10621 \end_layout
10622
10623 \begin_layout Standard
10624 \align center
10625
10626 \size large
10627 This section documents the class 
10628 \begin_inset Quotes eld
10629 \end_inset
10630
10631
10632 \family sans
10633 slides (FoilTeX)
10634 \family default
10635
10636 \begin_inset Quotes erd
10637 \end_inset
10638
10639  
10640 \emph on
10641 only.
10642 \end_layout
10643
10644 \begin_layout Standard
10645 \begin_inset VSpace bigskip
10646 \end_inset
10647
10648
10649 \end_layout
10650
10651 \begin_layout Standard
10652 If you're looking for the documentation for 
10653 \begin_inset Quotes eld
10654 \end_inset
10655
10656
10657 \family sans
10658 slides (default)
10659 \family default
10660
10661 \begin_inset Quotes erd
10662 \end_inset
10663
10664 , check out section
10665 \begin_inset space ~
10666 \end_inset
10667
10668
10669 \begin_inset CommandInset ref
10670 LatexCommand ref
10671 reference "sec:slitex"
10672
10673 \end_inset
10674
10675 .
10676  If your machine doesn't have the 
10677 \family sans
10678 foils
10679 \family default
10680  class [
10681 \begin_inset Quotes eld
10682 \end_inset
10683
10684
10685 \family sans
10686 slides (FoilTeX)
10687 \family default
10688
10689 \begin_inset Quotes erd
10690 \end_inset
10691
10692 ] installed, you'll probably have to use the default 
10693 \family sans
10694 slides
10695 \family default
10696  class, which isn't quite as good as 
10697 \family sans
10698 foils.
10699 \end_layout
10700
10701 \begin_layout Standard
10702 The 
10703 \family sans
10704 foils
10705 \family default
10706  class is designed for use with version 2.1 of the 
10707 \family sans
10708 foils.cls
10709 \family default
10710  \SpecialChar LaTeX
10711  class file which is now an integral part of \SpecialChar LaTeX2e
10712 .
10713 \end_layout
10714
10715 \begin_layout Subsection
10716 Getting Started
10717 \end_layout
10718
10719 \begin_layout Standard
10720 Obviously, to use this document class, you need to select 
10721 \begin_inset Quotes eld
10722 \end_inset
10723
10724
10725 \family sans
10726 slides (FoilTeX)
10727 \family default
10728
10729 \begin_inset Quotes erd
10730 \end_inset
10731
10732  from the 
10733 \family sans
10734 Class
10735 \family default
10736  entry in the 
10737 \family sans
10738 Document
10739 \begin_inset space ~
10740 \end_inset
10741
10742 Layout
10743 \family default
10744  dialog.
10745  There are some settings in the 
10746 \family sans
10747 Document
10748 \begin_inset space ~
10749 \end_inset
10750
10751 Layout
10752 \family default
10753  dialog that you should know about that are specific to this class:
10754 \end_layout
10755
10756 \begin_layout Itemize
10757 Don't change the options 
10758 \family sans
10759 Sides
10760 \family default
10761  and 
10762 \family sans
10763 Columns
10764 \family default
10765  on the 
10766 \family sans
10767 Document
10768 \begin_inset space ~
10769 \end_inset
10770
10771 Layout
10772 \family default
10773  dialog.
10774  They're ignored by the 
10775 \family sans
10776 foils
10777 \family default
10778  class.
10779 \end_layout
10780
10781 \begin_layout Itemize
10782 The default font size is 20
10783 \begin_inset space \thinspace{}
10784 \end_inset
10785
10786 pt with the other options being 17
10787 \begin_inset space \thinspace{}
10788 \end_inset
10789
10790 pt, 25
10791 \begin_inset space \thinspace{}
10792 \end_inset
10793
10794 pt and 30
10795 \begin_inset space \thinspace{}
10796 \end_inset
10797
10798 pt.
10799 \end_layout
10800
10801 \begin_layout Itemize
10802 The default font is 
10803 \family sans
10804 sans
10805 \family default
10806  
10807 \family sans
10808 serif
10809 \family default
10810  but all math equations are still typeset in the usual roman font.
10811 \end_layout
10812
10813 \begin_layout Itemize
10814
10815 \family sans
10816 Foil\SpecialChar TeX
10817
10818 \family default
10819  supports A4 and Letter paper sizes as well as a special size for working
10820  with 35
10821 \begin_inset space \thinspace{}
10822 \end_inset
10823
10824 mm slides.
10825  It doesn't support A5, B5, legal or executive paper sizes.
10826 \end_layout
10827
10828 \begin_layout Itemize
10829 Don't bother changing the 
10830 \family sans
10831 Float Placement
10832 \family default
10833  settings because they are ignored anyway.
10834  All floats appear where they are defined in the text.
10835 \end_layout
10836
10837 \begin_layout Itemize
10838 The 
10839 \family sans
10840 Pagestyle
10841 \family default
10842  setting behaves a bit differently for this class.
10843  
10844 \family sans
10845 Foil\SpecialChar TeX
10846
10847 \family default
10848  provides extensive footer and header capabilities including a user-defined
10849  logo.
10850  See section
10851 \begin_inset space ~
10852 \end_inset
10853
10854
10855 \begin_inset CommandInset ref
10856 LatexCommand ref
10857 reference "sec:foilfoot"
10858
10859 \end_inset
10860
10861  for more details.
10862  The title page is treated differently to all other pages in the document
10863  and is 
10864 \emph on
10865 always
10866 \emph default
10867  unnumbered and 
10868 \emph on
10869 always
10870 \emph default
10871  has the logo centered at the bottom of the page (if one is defined).
10872  The possible page style choices and what they do are as follows:
10873 \begin_inset Separator parbreak
10874 \end_inset
10875
10876
10877 \end_layout
10878
10879 \begin_deeper
10880 \begin_layout Labeling
10881 \labelwidthstring MMMMMMM
10882
10883 \family sans
10884 \series bold
10885 empty
10886 \family default
10887 \series default
10888  The final output contains no page numbers, or other headers or footers
10889  (except footnotes of course).
10890  
10891 \end_layout
10892
10893 \begin_layout Labeling
10894 \labelwidthstring MMMMMMM
10895
10896 \family sans
10897 \series bold
10898 plain
10899 \family default
10900 \series default
10901  The final output contains page numbers centered at the bottom of the page.
10902  No other headings or footers (other than footnotes).
10903 \end_layout
10904
10905 \begin_layout Labeling
10906 \labelwidthstring MMMMMMM
10907
10908 \series bold
10909 foilheadings
10910 \series default
10911  Page numbers in lower right corner.
10912  Additional headers and footers are also shown.
10913  This is also the default.
10914 \end_layout
10915
10916 \begin_layout Labeling
10917 \labelwidthstring MMMMMMM
10918
10919 \series bold
10920 fancy
10921 \series default
10922  Gives you access to the 
10923 \family sans
10924 fancyheadings
10925 \family default
10926  package although its use with 
10927 \family sans
10928 Foil\SpecialChar TeX
10929
10930 \family default
10931  is discouraged by the writer of the 
10932 \family sans
10933 Foil\SpecialChar TeX
10934
10935 \family default
10936  package because of some potential page layout clashes.
10937 \end_layout
10938
10939 \end_deeper
10940 \begin_layout Subsubsection
10941 Extra Options
10942 \end_layout
10943
10944 \begin_layout Standard
10945 The following options may be used in the extra class options in the 
10946 \family sans
10947 Document\SpecialChar menuseparator
10948 Settings
10949 \family default
10950  dialog.
10951 \end_layout
10952
10953 \begin_layout Labeling
10954 \labelwidthstring MMMMMMx
10955
10956 \series bold
10957 35mmSlide
10958 \series default
10959  This sets up the page layout for 7.33
10960 \begin_inset space \thinspace{}
10961 \end_inset
10962
10963 in by 11
10964 \begin_inset space \thinspace{}
10965 \end_inset
10966
10967 in paper, which is about the same aspect ratio as a 35
10968 \begin_inset space \thinspace{}
10969 \end_inset
10970
10971 mm slide, making it a bit easier to work with this medium.
10972 \end_layout
10973
10974 \begin_layout Labeling
10975 \labelwidthstring MMMMMMx
10976
10977 \series bold
10978 headrule
10979 \series default
10980  Places a rule across the page below the header on every page except the
10981  title page.
10982 \end_layout
10983
10984 \begin_layout Labeling
10985 \labelwidthstring MMMMMMx
10986
10987 \series bold
10988 footrule
10989 \series default
10990  Places a rule across the page above the footer on every page except the
10991  title page.
10992 \end_layout
10993
10994 \begin_layout Labeling
10995 \labelwidthstring MMMMMMx
10996
10997 \series bold
10998 dvips
10999 \series default
11000  This is automatically set each time you create a new 
11001 \family sans
11002 foils
11003 \family default
11004  document.
11005  This option tells 
11006 \family sans
11007 Foil\SpecialChar TeX
11008
11009 \family default
11010  to use the dvips driver to rotate those pages that are set as landscape
11011  foils.
11012 \end_layout
11013
11014 \begin_layout Labeling
11015 \labelwidthstring MMMMMMx
11016
11017 \series bold
11018 landscape
11019 \series default
11020  Simply changes the page dimensions to those of a landscape page but doesn't
11021  do any rotation.
11022  Thus if you use this option you need to use an external program to rotate
11023  each page or feed your paper through your printer as landscape.
11024  Note that this option effectively reverses the roles of the 
11025 \family sans
11026 Foilhead
11027 \family default
11028  and 
11029 \family sans
11030 Rotatefoilhead
11031 \family default
11032  environments (don't worry these are described in the next section).
11033 \end_layout
11034
11035 \begin_layout Labeling
11036 \labelwidthstring MMMMMMx
11037
11038 \series bold
11039 leqno
11040 \series default
11041  Equation numbers on the left.
11042 \end_layout
11043
11044 \begin_layout Labeling
11045 \labelwidthstring MMMMMMx
11046
11047 \series bold
11048 fleqn
11049 \series default
11050  Flush-left equations.
11051 \end_layout
11052
11053 \begin_layout Subsection
11054 Supported Environments
11055 \end_layout
11056
11057 \begin_layout Standard
11058 Most of the environments commonly supported in other classes are also supported
11059  by the 
11060 \family sans
11061 foils
11062 \family default
11063  class.
11064  There are several additional environments provided by 
11065 \family sans
11066 Foil\SpecialChar TeX
11067
11068 \family default
11069  as well as a couple added by \SpecialChar LyX
11070 .
11071  The following environments are shared with other classes:
11072 \end_layout
11073
11074 \begin_layout Standard
11075 \begin_inset Flex Multiple Columns
11076 status open
11077
11078 \begin_layout Itemize
11079
11080 \family sans
11081 Standard
11082 \end_layout
11083
11084 \begin_layout Itemize
11085
11086 \family sans
11087 Itemize
11088 \end_layout
11089
11090 \begin_layout Itemize
11091
11092 \family sans
11093 Enumerate
11094 \end_layout
11095
11096 \begin_layout Itemize
11097
11098 \family sans
11099 Description
11100 \end_layout
11101
11102 \begin_layout Itemize
11103
11104 \family sans
11105 List
11106 \end_layout
11107
11108 \begin_layout Itemize
11109
11110 \family sans
11111 \SpecialChar LyX
11112 -Code
11113 \end_layout
11114
11115 \begin_layout Itemize
11116
11117 \family sans
11118 Verse
11119 \end_layout
11120
11121 \begin_layout Itemize
11122
11123 \family sans
11124 Quote
11125 \end_layout
11126
11127 \begin_layout Itemize
11128
11129 \family sans
11130 Quotation
11131 \end_layout
11132
11133 \begin_layout Itemize
11134
11135 \family sans
11136 Title
11137 \end_layout
11138
11139 \begin_layout Itemize
11140
11141 \family sans
11142 Author
11143 \end_layout
11144
11145 \begin_layout Itemize
11146
11147 \family sans
11148 Date
11149 \end_layout
11150
11151 \begin_layout Itemize
11152
11153 \family sans
11154 Abstract
11155 \end_layout
11156
11157 \begin_layout Itemize
11158
11159 \family sans
11160 Bibliography
11161 \end_layout
11162
11163 \begin_layout Itemize
11164
11165 \family sans
11166 Address
11167 \end_layout
11168
11169 \begin_layout Itemize
11170
11171 \family sans
11172 RightAddress
11173 \end_layout
11174
11175 \begin_layout Itemize
11176
11177 \family sans
11178 Caption
11179 \end_layout
11180
11181 \begin_layout Itemize
11182
11183 \family sans
11184 Comment
11185 \end_layout
11186
11187 \end_inset
11188
11189
11190 \end_layout
11191
11192 \begin_layout Standard
11193 That is, all the major environments apart from the sectioning environments.
11194  Since foils are essentially self-contained sections, with a title and body,
11195  
11196 \family sans
11197 Foil\SpecialChar TeX
11198
11199 \family default
11200  provides specific commands for starting new foils and these are:
11201 \end_layout
11202
11203 \begin_layout Itemize
11204
11205 \family sans
11206 Foilhead
11207 \end_layout
11208
11209 \begin_layout Itemize
11210
11211 \family sans
11212 Rotatefoilhead
11213 \end_layout
11214
11215 \begin_layout Standard
11216 \SpecialChar LyX
11217  also provides slightly modified versions of these two environments called:
11218 \end_layout
11219
11220 \begin_layout Itemize
11221
11222 \family sans
11223 ShortFoilhead
11224 \end_layout
11225
11226 \begin_layout Itemize
11227
11228 \family sans
11229 ShortRotatefoilhead
11230 \end_layout
11231
11232 \begin_layout Standard
11233 and the differences will be explained in the next section.
11234 \end_layout
11235
11236 \begin_layout Standard
11237 Since foils are often used in presenting ideas or new theorems and such
11238  
11239 \family sans
11240 Foil\SpecialChar TeX
11241
11242 \family default
11243  also provides a comprehensive box of goodies for presenting them:
11244 \end_layout
11245
11246 \begin_layout Standard
11247 \begin_inset Flex Multiple Columns
11248 status open
11249
11250 \begin_layout Itemize
11251
11252 \family sans
11253 Theorem
11254 \end_layout
11255
11256 \begin_layout Itemize
11257
11258 \family sans
11259 Lemma
11260 \end_layout
11261
11262 \begin_layout Itemize
11263
11264 \family sans
11265 Corollary
11266 \end_layout
11267
11268 \begin_layout Itemize
11269
11270 \family sans
11271 Proposition
11272 \end_layout
11273
11274 \begin_layout Itemize
11275
11276 \family sans
11277 Definition
11278 \end_layout
11279
11280 \begin_layout Itemize
11281
11282 \family sans
11283 Proof
11284 \end_layout
11285
11286 \begin_layout Itemize
11287
11288 \family sans
11289 Theorem*
11290 \end_layout
11291
11292 \begin_layout Itemize
11293
11294 \family sans
11295 Lemma*
11296 \end_layout
11297
11298 \begin_layout Itemize
11299
11300 \family sans
11301 Corollary*
11302 \end_layout
11303
11304 \begin_layout Itemize
11305
11306 \family sans
11307 Proposition*
11308 \end_layout
11309
11310 \begin_layout Itemize
11311
11312 \family sans
11313 Definition*
11314 \end_layout
11315
11316 \end_inset
11317
11318
11319 \end_layout
11320
11321 \begin_layout Standard
11322 The starred versions are unnumbered while the unstarred versions are numbered.
11323  There are also two list environments added by \SpecialChar LyX
11324  and these are:
11325 \end_layout
11326
11327 \begin_layout Itemize
11328
11329 \family sans
11330 TickList
11331 \end_layout
11332
11333 \begin_layout Itemize
11334
11335 \family sans
11336 CrossList
11337 \end_layout
11338
11339 \begin_layout Standard
11340
11341 \family sans
11342 Foil\SpecialChar TeX
11343
11344 \family default
11345  provides some powerful header and footer capabilities that are best set
11346  in the preamble although they may be set at any point in a document.
11347  If you want to change these settings in your document the best place to
11348  do so is at the very top of a foil, i.
11349 \begin_inset space \thinspace{}
11350 \end_inset
11351
11352 e.
11353 \emph on
11354
11355 \begin_inset space \space{}
11356 \end_inset
11357
11358
11359 \emph default
11360 straight after the foilhead.
11361 \end_layout
11362
11363 \begin_layout Standard
11364 For this purpose, the following command styles are provided [
11365 \shape smallcaps
11366 Martin Vermeer
11367 \shape default
11368 ]:
11369 \end_layout
11370
11371 \begin_layout Standard
11372 \begin_inset Flex Multiple Columns
11373 status open
11374
11375 \begin_layout Itemize
11376
11377 \family sans
11378 My
11379 \begin_inset space ~
11380 \end_inset
11381
11382 Logo
11383 \end_layout
11384
11385 \begin_layout Itemize
11386
11387 \family sans
11388 Restriction
11389 \end_layout
11390
11391 \begin_layout Itemize
11392
11393 \family sans
11394 Right
11395 \begin_inset space ~
11396 \end_inset
11397
11398 Footer
11399 \end_layout
11400
11401 \begin_layout Itemize
11402
11403 \family sans
11404 Right
11405 \begin_inset space ~
11406 \end_inset
11407
11408 Header
11409 \end_layout
11410
11411 \begin_layout Itemize
11412
11413 \family sans
11414 Left
11415 \begin_inset space ~
11416 \end_inset
11417
11418 Header
11419 \family default
11420
11421 \begin_inset Separator parbreak
11422 \end_inset
11423
11424
11425 \end_layout
11426
11427 \begin_deeper
11428 \begin_layout Plain Layout
11429 \begin_inset space ~
11430 \end_inset
11431
11432
11433 \end_layout
11434
11435 \end_deeper
11436 \end_inset
11437
11438
11439 \end_layout
11440
11441 \begin_layout Standard
11442 There are also a few commands provided by 
11443 \family sans
11444 Foil\SpecialChar TeX
11445
11446 \family default
11447  that aren't directly supported by \SpecialChar LyX
11448  but I'll tell you what they do and how
11449  to use them in section
11450 \begin_inset space ~
11451 \end_inset
11452
11453
11454 \begin_inset CommandInset ref
11455 LatexCommand ref
11456 reference "sec:unsuppfoils"
11457
11458 \end_inset
11459
11460 .
11461 \end_layout
11462
11463 \begin_layout Subsection
11464 Building a Set of Foils
11465 \end_layout
11466
11467 \begin_layout Standard
11468 This section will give a simple introduction to using the different environments
11469  to build a set of foils.
11470  If you want to see an example set of foils, take a look at the 
11471 \family typewriter
11472 Foils.lyx
11473 \family default
11474  file you find in \SpecialChar LyX
11475 's 
11476 \family typewriter
11477 examples
11478 \family default
11479  folder.
11480 \end_layout
11481
11482 \begin_layout Subsubsection
11483 Give It a Title Page
11484 \end_layout
11485
11486 \begin_layout Standard
11487 Unlike other classes that provide 
11488 \family sans
11489 Title
11490 \family default
11491
11492 \family sans
11493 Author
11494 \family default
11495
11496 \family sans
11497 Date
11498 \family default
11499  and 
11500 \family sans
11501 Abstract
11502 \family default
11503  environments, 
11504 \family sans
11505 foils
11506 \family default
11507  creates the title on a page of its own.
11508  If you leave out the 
11509 \family sans
11510 Date
11511 \family default
11512  environment \SpecialChar LaTeX
11513  will substitute the current date (every time you regenerate
11514  the output).
11515 \end_layout
11516
11517 \begin_layout Subsubsection
11518 Start a New Foil
11519 \end_layout
11520
11521 \begin_layout Standard
11522 As I mentioned earlier, there are four ways of starting a new foil.
11523  For portrait foils you should use 
11524 \family sans
11525 Foilhead
11526 \family default
11527  or 
11528 \family sans
11529 ShortFoilhead.
11530
11531 \family default
11532  The difference between these two environments is the amount of space between
11533  the title of the foil (the foilhead) and the body of the foil.
11534 \end_layout
11535
11536 \begin_layout Standard
11537 Landscape foils are generated using the 
11538 \family sans
11539 Rotatefoilhead
11540 \family default
11541  and 
11542 \family sans
11543 ShortRotatefoilhead
11544 \family default
11545  environments.
11546  Again the only difference is the spacing between foilhead and body.
11547  Both of the short versions have 0.5
11548 \begin_inset space ~
11549 \end_inset
11550
11551 inches less separation between the foilhead and the body.
11552  
11553 \end_layout
11554
11555 \begin_layout Standard
11556 One problem with the support for landscape foils is the requirement that
11557  you have to use the 
11558 \family typewriter
11559 dvips
11560 \family default
11561  driver to generate the PostScript output otherwise the foils won't be rotated.
11562  It is possible to get landscape foils even if you haven't got the 
11563 \family typewriter
11564 dvips
11565 \family default
11566  driver provided you can feed your foils sideways through your printer ;-)
11567 \end_layout
11568
11569 \begin_layout Subsubsection
11570 Theorems, Lemmas, Proofs and more
11571 \end_layout
11572
11573 \begin_layout Standard
11574 Due to a small bug in \SpecialChar LyX
11575  you can't have two of the same type of these environments
11576  directly following each other.
11577  They must be separated by something.
11578  If you try, you will just be extending the previous environment as if you
11579  had merged the two environments together.
11580  So, how do you get around this problem? The simplest option is to insert
11581  some text between the two environments or add a 
11582 \family sans
11583 \SpecialChar LaTeX
11584
11585 \family default
11586  environment between the two with just a 
11587 \begin_inset Quotes eld
11588 \end_inset
11589
11590
11591 \family typewriter
11592 %
11593 \family default
11594
11595 \begin_inset Quotes erd
11596 \end_inset
11597
11598  in it.
11599  This will force \SpecialChar LyX
11600  to produce two separate environments and hence the correct
11601  \SpecialChar LaTeX
11602  output.
11603  An example is provided in the example file included with the \SpecialChar LyX
11604  distribution.
11605  Remember, this problem only occurs if you are trying to place two of the
11606  same type of theorem-like environments one directly after the other.
11607 \end_layout
11608
11609 \begin_layout Subsubsection
11610 Lists
11611 \end_layout
11612
11613 \begin_layout Standard
11614 You get all the commonly supported list styles found in other classes as
11615  well as two new ones.
11616  I'll only describe the new ones here.
11617  If you want to find out more about the other list environments check out
11618  the 
11619 \emph on
11620 User's Guide.
11621
11622 \emph default
11623  If you intend to use itemized lists you might also want to read about the
11624  
11625 \family sans
11626 Itemize
11627 \begin_inset space ~
11628 \end_inset
11629
11630 Bullet
11631 \begin_inset space ~
11632 \end_inset
11633
11634 Selection
11635 \family default
11636  dialog described above in section
11637 \begin_inset space ~
11638 \end_inset
11639
11640
11641 \begin_inset CommandInset ref
11642 LatexCommand ref
11643 reference "sec:bullet"
11644
11645 \end_inset
11646
11647 .
11648 \end_layout
11649
11650 \begin_layout Standard
11651 The two new list styles, 
11652 \family sans
11653 TickList
11654 \family default
11655  and 
11656 \family sans
11657 CrossList
11658 \family default
11659 , are designed to make it easier for you to create lists of do's and don'ts
11660  or right and wrong by providing dedicated environments that use a tick
11661  or a cross as the label of the list.
11662  These lists are in fact dedicated variants of the 
11663 \family sans
11664 Itemize
11665 \family default
11666  environment.
11667  They do however require that you have the 
11668 \family typewriter
11669 psnfss
11670 \family default
11671  packages installed.
11672 \end_layout
11673
11674 \begin_layout Subsubsection
11675 Figures and Tables
11676 \end_layout
11677
11678 \begin_layout Standard
11679
11680 \family sans
11681 Foil\SpecialChar TeX
11682
11683 \family default
11684  redefines the floating tables and figures so that they appear exactly where
11685  they are in the text rather than pushing them to the top of the page or
11686  to some user specified location.
11687  In fact if you change the float placement settings they are simply ignored.
11688 \end_layout
11689
11690 \begin_layout Subsubsection
11691 Page Headers and Footers
11692 \begin_inset CommandInset label
11693 LatexCommand label
11694 name "sec:foilfoot"
11695
11696 \end_inset
11697
11698
11699 \end_layout
11700
11701 \begin_layout Standard
11702
11703 \family sans
11704 My
11705 \begin_inset space ~
11706 \end_inset
11707
11708 Logo
11709 \family default
11710  and 
11711 \family sans
11712 Restriction
11713 \family default
11714  are two commands used to control the left-footer text string.
11715  The first is meant to allow you to include a graphic logo on your foils
11716  and defaults to 
11717 \begin_inset Quotes eld
11718 \end_inset
11719
11720 -Typeset by 
11721 \family sans
11722 Foil\SpecialChar TeX
11723
11724 \family default
11725 -
11726 \begin_inset Quotes erd
11727 \end_inset
11728
11729 .
11730  While the second is meant to provide a classification for the audience,
11731  
11732 \emph on
11733 e.
11734 \begin_inset space \thinspace{}
11735 \end_inset
11736
11737 g.
11738 \emph default
11739
11740 \begin_inset space \space{}
11741 \end_inset
11742
11743 Confidential.
11744  It is empty by default.
11745 \end_layout
11746
11747 \begin_layout Standard
11748 The remaining page corners can be filled by 
11749 \family sans
11750 Right
11751 \begin_inset space ~
11752 \end_inset
11753
11754 Footer
11755 \family default
11756  (which defaults to page numbers), 
11757 \family sans
11758 Right
11759 \begin_inset space ~
11760 \end_inset
11761
11762 Header
11763 \family default
11764  (top right) and 
11765 \family sans
11766 Left
11767 \begin_inset space ~
11768 \end_inset
11769
11770 Header
11771 \family default
11772  (top left).
11773 \end_layout
11774
11775 \begin_layout Subsection
11776 Unsupported 
11777 \family sans
11778 Foil\SpecialChar TeX
11779
11780 \family default
11781  Goodies
11782 \begin_inset CommandInset label
11783 LatexCommand label
11784 name "sec:unsuppfoils"
11785
11786 \end_inset
11787
11788
11789 \end_layout
11790
11791 \begin_layout Standard
11792 All the commands mentioned below need to be set in a 
11793 \family sans
11794 \SpecialChar LaTeX
11795
11796 \family default
11797  environment or as 
11798 \family sans
11799 \SpecialChar TeX
11800
11801 \family default
11802  within another environment.
11803 \end_layout
11804
11805 \begin_layout Subsubsection
11806 Lengths
11807 \end_layout
11808
11809 \begin_layout Standard
11810 All lengths are adjusted using the 
11811 \family typewriter
11812
11813 \backslash
11814 setlength{
11815 \family default
11816 \emph on
11817 lengthname
11818 \family typewriter
11819 \emph default
11820 }{
11821 \family default
11822 \emph on
11823 newlength
11824 \family typewriter
11825 \emph default
11826 }
11827 \family default
11828  command.
11829  Where 
11830 \emph on
11831 lengthname
11832 \emph default
11833  should be replaced by the name given to the length you want to change and
11834  
11835 \emph on
11836 newlength
11837 \emph default
11838  is the length value.
11839  All lengths should be specified in units of length such as inches (
11840 \family typewriter
11841 in
11842 \family default
11843 ), millimeters (
11844 \family typewriter
11845 mm
11846 \family default
11847 ) or points (
11848 \family typewriter
11849 pt
11850 \family default
11851 ) or relative to some document or font-based length such as 
11852 \family typewriter
11853
11854 \backslash
11855 textwidth
11856 \family default
11857 .
11858  
11859 \end_layout
11860
11861 \begin_layout Standard
11862 It's possible to change the spacing between a foilhead and the body of the
11863  foil by adjusting the length specified by 
11864 \family typewriter
11865
11866 \backslash
11867 foilheadskip
11868 \family default
11869 .
11870  For example, to make 
11871 \emph on
11872 all
11873 \emph default
11874  foilheads 0.5
11875 \begin_inset space \space{}
11876 \end_inset
11877
11878 in closer to their bodies put the following in the preamble: 
11879 \family typewriter
11880
11881 \backslash
11882 setlength{
11883 \backslash
11884 foilheadskip}{-0.5in}
11885 \end_layout
11886
11887 \begin_layout Standard
11888 The spacings around floats can be adjusted by setting these lengths:
11889 \end_layout
11890
11891 \begin_layout Labeling
11892 \labelwidthstring MMMMMMMMMMM
11893
11894 \family typewriter
11895
11896 \backslash
11897 abovefloatskip
11898 \family default
11899  Separation between the text and the top of the float
11900 \end_layout
11901
11902 \begin_layout Labeling
11903 \labelwidthstring MMMMMMMMMMM
11904
11905 \family typewriter
11906
11907 \backslash
11908 abovecaptionskip
11909 \family default
11910  Separation between the float and the caption
11911 \end_layout
11912
11913 \begin_layout Labeling
11914 \labelwidthstring MMMMMMMMMMM
11915
11916 \family typewriter
11917
11918 \backslash
11919 belowcaptionskip
11920 \family default
11921  Separation between the caption and the following text
11922 \end_layout
11923
11924 \begin_layout Labeling
11925 \labelwidthstring MMMMMMMMMMM
11926
11927 \family typewriter
11928
11929 \backslash
11930 captionwidth
11931 \family default
11932  You can make the captions narrower than the surrounding text by adjusting
11933  this length.
11934  Best done relative to 
11935 \family typewriter
11936
11937 \backslash
11938 textwidth
11939 \family default
11940 .
11941 \end_layout
11942
11943 \begin_layout Standard
11944 There are also several title page related lengths that you may find useful
11945  if you have a long title or several authors:
11946 \end_layout
11947
11948 \begin_layout Labeling
11949 \labelwidthstring MMMMMMMMMMM
11950
11951 \family typewriter
11952
11953 \backslash
11954 abovetitleskip
11955 \family default
11956  Separation from headers to 
11957 \family sans
11958 Title
11959 \end_layout
11960
11961 \begin_layout Labeling
11962 \labelwidthstring MMMMMMMMMMM
11963
11964 \family typewriter
11965
11966 \backslash
11967 titleauthorskip
11968 \family default
11969  between 
11970 \family sans
11971 Title
11972 \family default
11973  and 
11974 \family sans
11975 Author
11976 \family default
11977  environments
11978 \end_layout
11979
11980 \begin_layout Labeling
11981 \labelwidthstring MMMMMMMMMMM
11982
11983 \family typewriter
11984
11985 \backslash
11986 authorauthorskip
11987 \family default
11988  between multiple 
11989 \family sans
11990 Author
11991 \family default
11992  lines
11993 \end_layout
11994
11995 \begin_layout Labeling
11996 \labelwidthstring MMMMMMMMMMM
11997
11998 \family typewriter
11999
12000 \backslash
12001 authordateskip
12002 \family default
12003  between the 
12004 \family sans
12005 Author
12006 \family default
12007  and the 
12008 \family sans
12009 Date
12010 \end_layout
12011
12012 \begin_layout Labeling
12013 \labelwidthstring MMMMMMMMMMM
12014
12015 \family typewriter
12016
12017 \backslash
12018 dateabstractskip
12019 \family default
12020  between the 
12021 \family sans
12022 Date
12023 \family default
12024  and the 
12025 \family sans
12026 Abstract
12027 \end_layout
12028
12029 \begin_layout Standard
12030 The last length related command affects all the list environments.
12031  If you place 
12032 \family typewriter
12033
12034 \backslash
12035 zerolistvertdimens
12036 \family default
12037  
12038 \emph on
12039 inside
12040 \emph default
12041  a list environment then all the vertical spacing between the list items
12042  is removed.
12043  Note that this is a command not a length so it doesn't require 
12044 \family typewriter
12045
12046 \backslash
12047 setlength
12048 \family default
12049  like the stuff mentioned above.
12050 \end_layout
12051
12052 \begin_layout Subsubsection
12053 Headers and Footers
12054 \end_layout
12055
12056 \begin_layout Standard
12057 The 
12058 \family typewriter
12059
12060 \backslash
12061 LogoOn
12062 \family default
12063  and 
12064 \family typewriter
12065
12066 \backslash
12067 LogoOff
12068 \family default
12069  commands control whether the logo in the 
12070 \family sans
12071 MyLogo
12072 \family default
12073  definition appear on a given page.
12074  If you put 
12075 \family typewriter
12076
12077 \backslash
12078 LogoOff
12079 \family default
12080  in the preamble then none of the foils will have the logo on them.
12081  If you don't want the logo on a particular page place the 
12082 \family typewriter
12083
12084 \backslash
12085 LogoOff
12086 \family default
12087  directly after the foilhead of that page and the 
12088 \family typewriter
12089
12090 \backslash
12091 LogoOn
12092 \family default
12093  directly after the next foilhead.
12094 \end_layout
12095
12096 \begin_layout Standard
12097 If you decide to use the 
12098 \family sans
12099 fancy
12100 \family default
12101  page style setting in the 
12102 \family sans
12103 Document
12104 \begin_inset space ~
12105 \end_inset
12106
12107 Layout
12108 \family default
12109  dialog you should probably add 
12110 \family typewriter
12111
12112 \backslash
12113 let
12114 \backslash
12115 headwidth
12116 \backslash
12117 textwidth
12118 \family default
12119  to your preamble so headers and footers on landscape pages are correctly
12120  placed when rotated.
12121  This is due to some clashes between the page layouts provided by the 
12122 \family sans
12123 fancyheadings
12124 \family default
12125  package and the 
12126 \family sans
12127 foils
12128 \family default
12129  class.
12130 \end_layout
12131
12132 \begin_layout Section
12133 Hollywood (Hollywood spec scripts)
12134 \end_layout
12135
12136 \begin_layout Standard
12137 by 
12138 \shape smallcaps
12139 Garst Reese
12140 \end_layout
12141
12142 \begin_layout Subsection
12143 Introduction
12144 \end_layout
12145
12146 \begin_layout Standard
12147 Getting the format of a Hollywood script right is a 
12148 \begin_inset Quotes eld
12149 \end_inset
12150
12151 rite of passage.
12152 \begin_inset Quotes erd
12153 \end_inset
12154
12155  It is designed to make the readers focus on content and to be easy and
12156  familiar for the actors to read.
12157  Each page of a script should be one minute of film.
12158  Nothing goes in a script that you cannot see or hear on screen.
12159  The courier 12 pt font should be used throughout.
12160  No italics.
12161 \end_layout
12162
12163 \begin_layout Subsection
12164 Special problems
12165 \end_layout
12166
12167 \begin_layout Standard
12168 Speakers' lines should NEVER break in mid-sentence.
12169  If a speaker's lines continue over a page break, repeat the 
12170 \family sans
12171 Speaker
12172 \family default
12173  title followed by (Cont'd).
12174 \end_layout
12175
12176 \begin_layout Subsection
12177 Special features
12178 \end_layout
12179
12180 \begin_layout Standard
12181 Insert the 
12182 \family sans
12183 Speaker
12184 \family default
12185  names as labels then cross-reference the label to insert the name.
12186  The cross-reference dialog will show the current cast of characters.
12187  You can use this to insert the speaker name in narratives also.
12188 \end_layout
12189
12190 \begin_layout Subsection
12191 Paper size and Margins
12192 \end_layout
12193
12194 \begin_layout Standard
12195 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12196 \end_layout
12197
12198 \begin_layout Subsection
12199 Environments
12200 \end_layout
12201
12202 \begin_layout Standard
12203 The following environments are available.
12204  You can use hollywood.bind to get the bind keys shown at the right.
12205 \end_layout
12206
12207 \begin_layout Itemize
12208
12209 \family sans
12210 Standard
12211 \begin_inset Newline newline
12212 \end_inset
12213
12214
12215 \family default
12216 Used where nothing else works.
12217  Try to avoid it.
12218 \end_layout
12219
12220 \begin_layout Itemize
12221
12222 \family sans
12223 FADE_IN
12224 \family default
12225 :
12226 \begin_inset space \hfill{}
12227 \end_inset
12228
12229
12230 \family sans
12231 M-z S-I
12232 \family default
12233
12234 \begin_inset Newline newline
12235 \end_inset
12236
12237 Usually followed by something like 
12238 \begin_inset Quotes eld
12239 \end_inset
12240
12241 on Sally waking up.
12242 \begin_inset Quotes erd
12243 \end_inset
12244
12245
12246 \end_layout
12247
12248 \begin_layout Itemize
12249
12250 \family sans
12251 INT:
12252 \begin_inset space \hfill{}
12253 \end_inset
12254
12255 M-z i
12256 \begin_inset Newline newline
12257 \end_inset
12258
12259
12260 \family default
12261 Introduces a new INTERIOR camera set-up.
12262  Always followed by DAY or NIGHT, or something similar to define the lighting
12263  required.
12264  Everthing on this line in CAPS.
12265 \end_layout
12266
12267 \begin_layout Itemize
12268
12269 \family sans
12270 EXT:
12271 \begin_inset space \hfill{}
12272 \end_inset
12273
12274 M-z e
12275 \begin_inset Newline newline
12276 \end_inset
12277
12278
12279 \family default
12280 Introduces a new EXTERIOR camera set-up.
12281  Everthing on this line in CAPS.
12282 \end_layout
12283
12284 \begin_layout Itemize
12285
12286 \family sans
12287 Speaker
12288 \begin_inset space \hfill{}
12289 \end_inset
12290
12291 M-z s
12292 \begin_inset Newline newline
12293 \end_inset
12294
12295
12296 \family default
12297 The character speaking.
12298 \end_layout
12299
12300 \begin_layout Itemize
12301
12302 \family sans
12303 Parenthetical
12304 \begin_inset space \hfill{}
12305 \end_inset
12306
12307 M-z p
12308 \begin_inset Newline newline
12309 \end_inset
12310
12311
12312 \family default
12313 Instructions to the speaker.
12314  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12315 .
12316  Both will be printed.
12317 \end_layout
12318
12319 \begin_layout Itemize
12320
12321 \family sans
12322 Dialogue
12323 \begin_inset space \hfill{}
12324 \end_inset
12325
12326 M-z d
12327 \begin_inset Newline newline
12328 \end_inset
12329
12330
12331 \family default
12332 What the 
12333 \family sans
12334 Speaker
12335 \family default
12336  says.
12337 \end_layout
12338
12339 \begin_layout Itemize
12340
12341 \family sans
12342 Transition
12343 \begin_inset space \hfill{}
12344 \end_inset
12345
12346 M-z t
12347 \begin_inset Newline newline
12348 \end_inset
12349
12350
12351 \family default
12352 Camera movement instruction.
12353  e.
12354 \begin_inset space \thinspace{}
12355 \end_inset
12356
12357 g.
12358 \begin_inset space \space{}
12359 \end_inset
12360
12361 CUT TO:
12362 \end_layout
12363
12364 \begin_layout Itemize
12365
12366 \family sans
12367 FADE OUT:
12368 \begin_inset space \hfill{}
12369 \end_inset
12370
12371 M-z S-I
12372 \end_layout
12373
12374 \begin_layout Itemize
12375
12376 \family sans
12377 Author
12378 \begin_inset space \hfill{}
12379 \end_inset
12380
12381 M-z S-A
12382 \end_layout
12383
12384 \begin_layout Itemize
12385
12386 \family sans
12387 Title
12388 \begin_inset space \hfill{}
12389 \end_inset
12390
12391 M-z S-T
12392 \end_layout
12393
12394 \begin_layout Itemize
12395
12396 \family sans
12397 Right_Address
12398 \begin_inset space \hfill{}
12399 \end_inset
12400
12401 M-z r
12402 \end_layout
12403
12404 \begin_layout Subsection
12405 Script jargon
12406 \end_layout
12407
12408 \begin_layout Itemize
12409 (O.S) — off screen
12410 \end_layout
12411
12412 \begin_layout Itemize
12413 (V.0) — voice over
12414 \end_layout
12415
12416 \begin_layout Itemize
12417 b.
12418 \begin_inset space \thinspace{}
12419 \end_inset
12420
12421 g.
12422  — background
12423 \end_layout
12424
12425 \begin_layout Itemize
12426 C.U.
12427  — close-up
12428 \end_layout
12429
12430 \begin_layout Itemize
12431 PAN — camera movement
12432 \end_layout
12433
12434 \begin_layout Itemize
12435 INSERT — cut to close-up of
12436 \end_layout
12437
12438 \begin_layout Section
12439 ijmpc and ijmpd
12440 \end_layout
12441
12442 \begin_layout Standard
12443 by 
12444 \noun on
12445 Panayotis Papasotiriou
12446 \end_layout
12447
12448 \begin_layout Subsection
12449 Overview
12450 \end_layout
12451
12452 \begin_layout Standard
12453 The ijmpc package is a set of macros that facilitates electronic manuscript
12454  submission to the 
12455 \emph on
12456 International Journal of Modern Physics C
12457 \emph default
12458 .
12459  Similarly, the ijmpd package is for creating manuscripts to be submitted
12460  to the 
12461 \emph on
12462 International Journal of Modern Physics D
12463 \emph default
12464 .
12465  Both journals are published by World Scientific.
12466  The corresponding document classes are named 
12467 \family typewriter
12468 ws-ijmpc.cls
12469 \family default
12470  and 
12471 \family typewriter
12472 ws-ijmpd.cls
12473 \family default
12474 , respectively.
12475  These files, together with instructions for the authors, can be downloaded
12476  from the sites 
12477 \begin_inset Flex URL
12478 status collapsed
12479
12480 \begin_layout Plain Layout
12481
12482 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12483 \end_layout
12484
12485 \end_inset
12486
12487  and 
12488 \begin_inset Flex URL
12489 status collapsed
12490
12491 \begin_layout Plain Layout
12492
12493 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12494 \end_layout
12495
12496 \end_inset
12497
12498 .
12499  Both packages are modified versions of the standard 
12500 \begin_inset Quotes eld
12501 \end_inset
12502
12503 article
12504 \begin_inset Quotes erd
12505 \end_inset
12506
12507  package, and they are almost (but not exactly) identical.
12508  Most of their features are supported by \SpecialChar LyX
12509 .
12510  I have used \SpecialChar LyX
12511  successfully to write articles submitted to both journals
12512  without any problem.
12513 \end_layout
12514
12515 \begin_layout Subsection
12516 Writing a paper
12517 \end_layout
12518
12519 \begin_layout Standard
12520 As usual, the easiest way to write a paper is to start with a template.
12521  Click on 
12522 \family sans
12523 File\SpecialChar menuseparator
12524 New from
12525 \family default
12526  
12527 \family sans
12528 \bar under
12529 T
12530 \bar default
12531 emplate
12532 \family default
12533 , then choose the 
12534 \family typewriter
12535 ijmpc.lyx
12536 \family default
12537  or 
12538 \family typewriter
12539 ijmpd.lyx
12540 \family default
12541  template.
12542  This will give an (almost) empty document that includes the most common
12543  fields found in a manuscript.
12544  Simply overwrite the existing text (including the brackets, 
12545 \family typewriter
12546 <>
12547 \family default
12548 ) with your text.
12549  You should keep in mind the following remarks.
12550 \end_layout
12551
12552 \begin_layout Enumerate
12553 \SpecialChar LyX
12554  won't let you change the font size and the page style of the document,
12555  because such modifications are not allowed by both packages.
12556 \end_layout
12557
12558 \begin_layout Enumerate
12559 The language of the document should not be changed.
12560  Before previewing your paper, be sure that the babel package is not used.
12561  To do this, click on 
12562 \family sans
12563 Tools\SpecialChar menuseparator
12564 Preferences
12565 \family default
12566 , select the 
12567 \family sans
12568 Lang Opts
12569 \family default
12570  tab, deselect the 
12571 \family sans
12572 Use babel
12573 \family default
12574  checkbox in the language settings, and click on 
12575 \family sans
12576 Apply
12577 \family default
12578  (or 
12579 \family sans
12580 Save
12581 \family default
12582 , if you wish to make this change permanent).
12583 \end_layout
12584
12585 \begin_layout Enumerate
12586 The 
12587 \begin_inset Quotes eld
12588 \end_inset
12589
12590 Keywords
12591 \begin_inset Quotes erd
12592 \end_inset
12593
12594  style must be used to define keywords.
12595 \end_layout
12596
12597 \begin_layout Enumerate
12598 The ijmpc package provides a style named 
12599 \begin_inset Quotes eld
12600 \end_inset
12601
12602 Classification Codes
12603 \begin_inset Quotes erd
12604 \end_inset
12605
12606 , which can be used to define classification codes, such as PACS numbers.
12607  Note that this facility is not supported by the ijmpd package.
12608 \end_layout
12609
12610 \begin_layout Enumerate
12611 Several new environments are available: 
12612 \begin_inset Quotes eld
12613 \end_inset
12614
12615 Definition
12616 \begin_inset Quotes erd
12617 \end_inset
12618
12619
12620 \begin_inset Quotes eld
12621 \end_inset
12622
12623 Step
12624 \begin_inset Quotes erd
12625 \end_inset
12626
12627
12628 \begin_inset Quotes eld
12629 \end_inset
12630
12631 Example
12632 \begin_inset Quotes erd
12633 \end_inset
12634
12635
12636 \begin_inset Quotes eld
12637 \end_inset
12638
12639 Remark
12640 \begin_inset Quotes erd
12641 \end_inset
12642
12643
12644 \begin_inset Quotes eld
12645 \end_inset
12646
12647 Notation
12648 \begin_inset Quotes erd
12649 \end_inset
12650
12651
12652 \begin_inset Quotes eld
12653 \end_inset
12654
12655 Theorem
12656 \begin_inset Quotes erd
12657 \end_inset
12658
12659
12660 \begin_inset Quotes eld
12661 \end_inset
12662
12663 Proof
12664 \begin_inset Quotes erd
12665 \end_inset
12666
12667
12668 \begin_inset Quotes eld
12669 \end_inset
12670
12671 Corollary
12672 \begin_inset Quotes erd
12673 \end_inset
12674
12675
12676 \begin_inset Quotes eld
12677 \end_inset
12678
12679 Lemma
12680 \begin_inset Quotes erd
12681 \end_inset
12682
12683
12684 \begin_inset Quotes eld
12685 \end_inset
12686
12687 Proposition
12688 \begin_inset Quotes erd
12689 \end_inset
12690
12691
12692 \begin_inset Quotes eld
12693 \end_inset
12694
12695 Prop
12696 \begin_inset Quotes erd
12697 \end_inset
12698
12699
12700 \begin_inset Quotes eld
12701 \end_inset
12702
12703 Question
12704 \begin_inset Quotes erd
12705 \end_inset
12706
12707
12708 \begin_inset Quotes eld
12709 \end_inset
12710
12711 Claim
12712 \begin_inset Quotes erd
12713 \end_inset
12714
12715 , and 
12716 \begin_inset Quotes eld
12717 \end_inset
12718
12719 Conjecture
12720 \begin_inset Quotes erd
12721 \end_inset
12722
12723 .
12724  Their use is more or less obvious.
12725  \SpecialChar LyX
12726  supports all these environments; it will use the proper label, text style,
12727  and numbering scheme for each of them.
12728 \end_layout
12729
12730 \begin_layout Enumerate
12731 Both packages use basic citations; the natbib package should not be used.
12732  In \SpecialChar LyX
12733 , citation references are shown as usual; in the output, citations are
12734  shown as superscripts.
12735  If you want to use a citation as normal text, you should use the 
12736 \family typewriter
12737 refcite
12738 \family default
12739  command, e.
12740 \begin_inset space \thinspace{}
12741 \end_inset
12742
12743 g.
12744 \begin_inset space \space{}
12745 \end_inset
12746
12747
12748 \begin_inset Quotes eld
12749 \end_inset
12750
12751 See Ref.
12752 \begin_inset space \space{}
12753 \end_inset
12754
12755
12756 \family typewriter
12757
12758 \backslash
12759 refcite{key}
12760 \family default
12761
12762 \begin_inset Quotes erd
12763 \end_inset
12764
12765 .
12766 \end_layout
12767
12768 \begin_layout Enumerate
12769 There is no 
12770 \begin_inset Quotes eld
12771 \end_inset
12772
12773 Acknowledgments
12774 \begin_inset Quotes erd
12775 \end_inset
12776
12777  section in both packages.
12778  To put acknowledgments, just use the 
12779 \begin_inset Quotes eld
12780 \end_inset
12781
12782 Section*
12783 \begin_inset Quotes erd
12784 \end_inset
12785
12786  environment.
12787 \end_layout
12788
12789 \begin_layout Enumerate
12790 Appendices may be added to the paper, 
12791 \emph on
12792 after
12793 \emph default
12794  the Acknowledgments and 
12795 \shape italic
12796 before
12797 \shape default
12798  the References.
12799  \SpecialChar LyX
12800  provides a special environment, called 
12801 \begin_inset Quotes eld
12802 \end_inset
12803
12804 Appendices Section
12805 \begin_inset Quotes erd
12806 \end_inset
12807
12808  which marks the beginning of the appendices.
12809  This environment should be left blank; it just sends a \SpecialChar LaTeX
12810  command, but nothing
12811  is really printed.
12812  In \SpecialChar LyX
12813 , the word 
12814 \begin_inset Quotes eld
12815 \end_inset
12816
12817 Appendix
12818 \begin_inset Quotes erd
12819 \end_inset
12820
12821  is printed with blue letters, as a signal that all sections after that
12822  point are appendices.
12823  To write an appendix, use the 
12824 \begin_inset Quotes eld
12825 \end_inset
12826
12827 Appendix
12828 \begin_inset Quotes erd
12829 \end_inset
12830
12831  environment.
12832  \SpecialChar LyX
12833  will number each appendix with capital letters, as required by both journals.
12834  Note that 
12835 \begin_inset Quotes eld
12836 \end_inset
12837
12838 Appendices Section
12839 \begin_inset Quotes erd
12840 \end_inset
12841
12842  
12843 \emph on
12844 must
12845 \emph default
12846  be present before the first appendix; if not, all appendices will be numbered
12847  as normal sections in the output.
12848 \end_layout
12849
12850 \begin_layout Enumerate
12851 The ijmpc and the ijmpd packages use the 
12852 \family typewriter
12853 tbl
12854 \family default
12855  command to implement table captions.
12856  As a result, a table created by \SpecialChar LyX
12857  is printed correctly, but its caption
12858  is ignored.
12859  However, you can use some \SpecialChar TeX
12860  code to overcome this problem, so that captions
12861  are printed as expected.
12862  To do so, create a float table as usual, remove the caption, and replace
12863  it with the \SpecialChar TeX
12864  code 
12865 \family typewriter
12866
12867 \backslash
12868 tbl{
12869 \emph on
12870 your table caption
12871 \emph default
12872 }{
12873 \family default
12874  (sic); you must also the \SpecialChar TeX
12875  code 
12876 \family typewriter
12877 }
12878 \family default
12879  immediately after the tabular material.
12880  Study the example table included in the template files to see how this
12881  trick is implemented.
12882  Alternatively, If you need table captions, you should implement the whole
12883  table float in a 
12884 \family typewriter
12885 .tex
12886 \family default
12887  file, then include this file to the \SpecialChar LyX
12888  document (
12889 \family sans
12890 Insert\SpecialChar menuseparator
12891 File\SpecialChar menuseparator
12892 Child
12893 \begin_inset space ~
12894 \end_inset
12895
12896 Document
12897 \family default
12898 ).
12899  Details on how to create a table float can be found in the files 
12900 \family typewriter
12901 ws-ijmpc.tex
12902 \family default
12903  and 
12904 \family typewriter
12905 ws-ijmpd.tex
12906 \family default
12907 , included in the corresponding packages.
12908 \end_layout
12909
12910 \begin_layout Subsection
12911 Preparing a paper for submission
12912 \end_layout
12913
12914 \begin_layout Standard
12915 Before you submit your paper you must export the \SpecialChar LyX
12916  document as a \SpecialChar LaTeX
12917  file (
12918 \family sans
12919 File\SpecialChar menuseparator
12920 Export\SpecialChar menuseparator
12921 \SpecialChar LaTeX
12922
12923 \family default
12924 )
12925 \begin_inset Foot
12926 status open
12927
12928 \begin_layout Plain Layout
12929 Actually you have the choice between \SpecialChar LaTeX
12930  (plain) and pdflatex.
12931  If you intend to use pdflatex to prepare the paper, you should use the
12932  pdflatex option so that included graphics are converted to PDF format,
12933  ready for use by pdflatex.
12934 \end_layout
12935
12936 \end_inset
12937
12938 , then make the following changes to the resulting 
12939 \family typewriter
12940 .tex
12941 \family default
12942  file.
12943 \end_layout
12944
12945 \begin_layout Enumerate
12946 Remove the comment lines before the 
12947 \family typewriter
12948
12949 \backslash
12950 documentclass
12951 \family default
12952  command.
12953 \end_layout
12954
12955 \begin_layout Enumerate
12956 Remove everything between (and including) the 
12957 \family typewriter
12958
12959 \backslash
12960 makeatletter
12961 \family default
12962  and 
12963 \family typewriter
12964
12965 \backslash
12966 makeatother
12967 \family default
12968  commands, except for any commands you specifically put into the \SpecialChar LaTeX
12969  preamble.
12970 \end_layout
12971
12972 \begin_layout Standard
12973 The modified 
12974 \family typewriter
12975 .tex
12976 \family default
12977  file should be saved and processed through \SpecialChar LaTeX
12978  as many times as necessary.
12979  You may also want to check the resulting 
12980 \family typewriter
12981 .dvi
12982 \family default
12983  document.
12984 \end_layout
12985
12986 \begin_layout Subsection
12987 Use of \SpecialChar TeX
12988  code
12989 \end_layout
12990
12991 \begin_layout Standard
12992 The use of \SpecialChar TeX
12993  code is reduced to two commands, which must be placed at the
12994  top of the document.
12995  If you started writing your paper by using the 
12996 \family typewriter
12997 ijmpc.lyx
12998 \family default
12999  or the 
13000 \family typewriter
13001 ijmpd.lyx
13002 \family default
13003  template, the \SpecialChar TeX
13004  code needed is already in its place; you usually don't need
13005  to delete it.
13006  You may only modify the first \SpecialChar TeX
13007  code to specify the information printed
13008  to the top of odd and even pages (authors' names and short paper's title,
13009  respectively).
13010  This \SpecialChar TeX
13011  code must have the form 
13012 \family typewriter
13013
13014 \backslash
13015 markboth{Authors' Names}{Short Paper's Title}
13016 \family default
13017 .
13018 \end_layout
13019
13020 \begin_layout Section
13021 iopart
13022 \end_layout
13023
13024 \begin_layout Standard
13025 by 
13026 \noun on
13027 Uwe Stöhr
13028 \end_layout
13029
13030 \begin_layout Subsection
13031 Overview
13032 \end_layout
13033
13034 \begin_layout Standard
13035 The iopart package provides a document class to create electronic manuscript
13036  submission to the journals published by the Institute of Physics.
13037  Instructions for the authors how to create a paper using the iopart class
13038  can be downloaded together with the iopart package from the site 
13039 \begin_inset Flex URL
13040 status collapsed
13041
13042 \begin_layout Plain Layout
13043
13044 ftp://ftp.iop.org/pub/journals/latex2e
13045 \end_layout
13046
13047 \end_inset
13048
13049 .
13050 \end_layout
13051
13052 \begin_layout Subsection
13053 Writing a paper
13054 \end_layout
13055
13056 \begin_layout Standard
13057 The easiest way to write a paper is to start with the file 
13058 \emph on
13059 IOP-article.lyx
13060 \emph default
13061  that is available in \SpecialChar LyX
13062 's examples files folder.
13063  Open this file, save it under a new name, and start writing.
13064  The example file explains how to use the special text environments.
13065  Here are the most important advices:
13066 \end_layout
13067
13068 \begin_layout Itemize
13069 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13070  two options 
13071 \family sans
13072 Use AMS math package
13073 \family default
13074  in the document settings under 
13075 \family sans
13076 Math Options
13077 \family default
13078  are not used!
13079 \end_layout
13080
13081 \begin_layout Itemize
13082
13083 \size normal
13084 The title environment defines the kind of your paper.
13085  So use one of the following environments for the title:
13086 \size default
13087
13088 \begin_inset Separator parbreak
13089 \end_inset
13090
13091
13092 \end_layout
13093
13094 \begin_deeper
13095 \begin_layout Itemize
13096
13097 \family sans
13098 \size normal
13099 Title
13100 \family default
13101  for a Paper
13102 \end_layout
13103
13104 \begin_layout Itemize
13105
13106 \family sans
13107 \size normal
13108 Review
13109 \family default
13110  for a Review
13111 \end_layout
13112
13113 \begin_layout Itemize
13114
13115 \family sans
13116 \size normal
13117 Topical
13118 \family default
13119  for a Topical review
13120 \end_layout
13121
13122 \begin_layout Itemize
13123
13124 \family sans
13125 \size normal
13126 Comment
13127 \family default
13128  for a Comment
13129 \end_layout
13130
13131 \begin_layout Itemize
13132
13133 \family sans
13134 \size normal
13135 Note
13136 \family default
13137  for a Note
13138 \end_layout
13139
13140 \begin_layout Itemize
13141
13142 \family sans
13143 \size normal
13144 Paper
13145 \family default
13146  for a Paper (same as Title)
13147 \end_layout
13148
13149 \begin_layout Itemize
13150
13151 \family sans
13152 \size normal
13153 Prelim
13154 \family default
13155  for a Preliminary communication
13156 \end_layout
13157
13158 \begin_layout Itemize
13159
13160 \family sans
13161 \size normal
13162 Rapid
13163 \family default
13164  for a Rapid communication
13165 \end_layout
13166
13167 \begin_layout Itemize
13168
13169 \family sans
13170 \size normal
13171 Letter
13172 \family default
13173  for a Letter to the editor
13174 \end_layout
13175
13176 \end_deeper
13177 \begin_layout Itemize
13178
13179 \size normal
13180 All title environments except of 
13181 \family sans
13182 Letter
13183 \family default
13184  can have an optional short title.
13185 \end_layout
13186
13187 \begin_layout Itemize
13188 There is a general title environment 
13189 \family sans
13190 Article
13191 \family default
13192  which is not directly supported by the \SpecialChar LyX
13193 .
13194  This can be used as \SpecialChar TeX
13195  code when your document doesn't fit into one of the
13196  other title types.
13197 \end_layout
13198
13199 \begin_layout Standard
13200 For more informations like hints for special table and formula formatting,
13201  look at the IOP author guidelines.
13202 \end_layout
13203
13204 \begin_layout Section
13205 Kluwer
13206 \end_layout
13207
13208 \begin_layout Standard
13209 by 
13210 \noun on
13211 Panayotis Papasotiriou
13212 \end_layout
13213
13214 \begin_layout Subsection
13215 Overview
13216 \end_layout
13217
13218 \begin_layout Standard
13219 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13220  that facilitates electronic manuscript submission to the journals they
13221  publish.
13222  Most known of them (at least in my domain of interest) are 
13223 \emph on
13224 Astrophysics and Space Science
13225 \emph default
13226  and 
13227 \emph on
13228 Solar Physics
13229 \emph default
13230 , but there are many others (see a complete list at 
13231 \begin_inset Flex URL
13232 status open
13233
13234 \begin_layout Plain Layout
13235
13236 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13237 \end_layout
13238
13239 \end_inset
13240
13241 ).
13242  The Kluwer package may be downloaded from the site 
13243 \begin_inset Flex URL
13244 status collapsed
13245
13246 \begin_layout Plain Layout
13247
13248 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13249 \end_layout
13250
13251 \end_inset
13252
13253 .
13254  A complete user guide is contained in that package (but it can also be
13255  downloaded separately).
13256 \end_layout
13257
13258 \begin_layout Standard
13259 \SpecialChar LyX
13260  supports many features of the package but not everything.
13261  However, the \SpecialChar TeX
13262  code needed is reduced to some 
13263 \begin_inset Quotes eld
13264 \end_inset
13265
13266 peculiar
13267 \begin_inset Quotes erd
13268 \end_inset
13269
13270  commands of the package (see
13271 \begin_inset space ~
13272 \end_inset
13273
13274
13275 \begin_inset CommandInset ref
13276 LatexCommand ref
13277 reference "subsec:kluwer_peculiarities"
13278
13279 \end_inset
13280
13281 ).
13282  I have recently used \SpecialChar LyX
13283  to write an article submitted to the 
13284 \emph on
13285 Astrophysics and Space Science
13286 \emph default
13287  without any problem.
13288 \end_layout
13289
13290 \begin_layout Subsection
13291 Writing a paper
13292 \end_layout
13293
13294 \begin_layout Standard
13295 The easiest way to write a paper is to start with the Kluwer template file.
13296  Click on 
13297 \family sans
13298 File\SpecialChar menuseparator
13299 New from
13300 \family default
13301  
13302 \family sans
13303 Template
13304 \family default
13305 , then choose the 
13306 \family typewriter
13307 kluwer.lyx
13308 \family default
13309  template.
13310  This will give an (almost) empty document that includes the most common
13311  fields found in a manuscript and a short description of their use.
13312  As in most templates, simply overwrite the existing text (including the
13313  brackets, 
13314 \family typewriter
13315 <>
13316 \family default
13317 ) with the correct information.
13318 \end_layout
13319
13320 \begin_layout Subsection
13321 Preparing a paper for submission
13322 \end_layout
13323
13324 \begin_layout Standard
13325 As in the AAS\SpecialChar TeX
13326  package, before you submit your paper to a journal you must
13327  
13328 \begin_inset Quotes eld
13329 \end_inset
13330
13331 postprocess
13332 \begin_inset Quotes erd
13333 \end_inset
13334
13335  it as follows.
13336 \end_layout
13337
13338 \begin_layout Enumerate
13339 Export your paper as a \SpecialChar LaTeX
13340  file.
13341  To do this, click on 
13342 \family sans
13343 File\SpecialChar menuseparator
13344 Export\SpecialChar menuseparator
13345 \SpecialChar LaTeX
13346
13347 \family default
13348 .
13349  
13350 \end_layout
13351
13352 \begin_layout Enumerate
13353 Edit the resulting 
13354 \family typewriter
13355 .tex
13356 \family default
13357  file with a text editor and make the following changes
13358 \begin_inset Separator parbreak
13359 \end_inset
13360
13361
13362 \end_layout
13363
13364 \begin_deeper
13365 \begin_layout Enumerate
13366 remove the comment lines before the 
13367 \family typewriter
13368
13369 \backslash
13370 documentclass
13371 \family default
13372  command,
13373 \end_layout
13374
13375 \begin_layout Enumerate
13376 remove everything between (and including) the 
13377 \family typewriter
13378
13379 \backslash
13380 makeatletter
13381 \family default
13382  and 
13383 \family typewriter
13384
13385 \backslash
13386 makeatother
13387 \family default
13388  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13389  preamble.
13390 \end_layout
13391
13392 \begin_layout Standard
13393 Save the resulting 
13394 \family typewriter
13395 .tex
13396 \family default
13397  file.
13398 \end_layout
13399
13400 \end_deeper
13401 \begin_layout Enumerate
13402 Run the 
13403 \family typewriter
13404 .tex
13405 \family default
13406  file through \SpecialChar LaTeX
13407  as many times as necessary (usually up to three).
13408 \end_layout
13409
13410 \begin_layout Enumerate
13411 View the resulting 
13412 \family typewriter
13413 .dvi
13414 \family default
13415  document using, e.
13416 \begin_inset space \thinspace{}
13417 \end_inset
13418
13419 g.
13420 \begin_inset space \space{}
13421 \end_inset
13422
13423
13424 \family sans
13425 xdvi
13426 \family default
13427 , and check if everything is OK (it should, if you didn't make any mistake).
13428 \end_layout
13429
13430 \begin_layout Subsection
13431 \begin_inset Quotes eld
13432 \end_inset
13433
13434 Peculiarities
13435 \begin_inset Quotes erd
13436 \end_inset
13437
13438  of the Kluwer package
13439 \begin_inset CommandInset label
13440 LatexCommand label
13441 name "subsec:kluwer_peculiarities"
13442
13443 \end_inset
13444
13445
13446 \end_layout
13447
13448 \begin_layout Standard
13449 The Kluwer package has the following 
13450 \begin_inset Quotes eld
13451 \end_inset
13452
13453 peculiarities
13454 \begin_inset Quotes erd
13455 \end_inset
13456
13457 .
13458 \end_layout
13459
13460 \begin_layout Enumerate
13461 It is possible to write multiple articles in the same \SpecialChar LaTeX
13462  file
13463 \begin_inset Foot
13464 status collapsed
13465
13466 \begin_layout Plain Layout
13467 I can't imagine any good reason to do this.
13468 \end_layout
13469
13470 \end_inset
13471
13472 .
13473  Each article must be included in the environment 
13474 \begin_inset Quotes eld
13475 \end_inset
13476
13477 article
13478 \begin_inset Quotes erd
13479 \end_inset
13480
13481 .
13482  Unfortunately, this environment cannot be omitted, even if you write just
13483  one article.
13484  Therefore, each article starts with the command 
13485 \family typewriter
13486
13487 \backslash
13488 begin{article}
13489 \family default
13490  and, obviously, ends with the command 
13491 \family typewriter
13492
13493 \backslash
13494 end{article}
13495 \family default
13496 .
13497  Although this can be implemented in \SpecialChar LyX
13498 , I didn't included it, since it looks
13499  ugly and can confuse the novice user.
13500  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13501  code (the
13502  well-known 
13503 \begin_inset Quotes eld
13504 \end_inset
13505
13506 \SpecialChar TeX
13507  code
13508 \begin_inset Quotes erd
13509 \end_inset
13510
13511 ).
13512 \end_layout
13513
13514 \begin_layout Enumerate
13515 Information given at the beginning of the article (i.
13516 \begin_inset space \thinspace{}
13517 \end_inset
13518
13519 e.
13520 \begin_inset space \space{}
13521 \end_inset
13522
13523 title, subtitle, author, institution, running title, running author, abstract
13524  and keywords) must be included in an environment called 
13525 \begin_inset Quotes eld
13526 \end_inset
13527
13528 opening
13529 \begin_inset Quotes erd
13530 \end_inset
13531
13532 .
13533  This is not implemented in \SpecialChar LyX
13534 , so you must enter title, subtitle etc.
13535 \begin_inset space ~
13536 \end_inset
13537
13538 between two \SpecialChar TeX
13539  code lines (
13540 \family typewriter
13541
13542 \backslash
13543 begin{opening}
13544 \family default
13545  and 
13546 \family typewriter
13547
13548 \backslash
13549 end{opening}
13550 \family default
13551 ).
13552 \end_layout
13553
13554 \begin_layout Enumerate
13555 According to the user manual, the label of each bibliography item must be
13556  written as 
13557 \family typewriter
13558
13559 \backslash
13560 protect
13561 \backslash
13562 citeauthoryear{
13563 \family default
13564 \emph on
13565 author(s)
13566 \family typewriter
13567 \emph default
13568 }{
13569 \family default
13570 \emph on
13571 year
13572 \family typewriter
13573 \emph default
13574 }
13575 \family default
13576 .
13577 \end_layout
13578
13579 \begin_layout Standard
13580 The 
13581 \family typewriter
13582 kluwer.lyx
13583 \family default
13584  template takes care of all these 
13585 \begin_inset Quotes eld
13586 \end_inset
13587
13588 peculiarities
13589 \begin_inset Quotes erd
13590 \end_inset
13591
13592 .
13593  If you start a new paper using this template you don't need to do anything
13594  special.
13595  Just 
13596 \end_layout
13597
13598 \begin_layout Enumerate
13599 don't delete the \SpecialChar TeX
13600  code included in the template, and
13601 \end_layout
13602
13603 \begin_layout Enumerate
13604 copy the example bibliography item included in the template and modify it
13605  as necessary to enter new bibliography items.
13606 \end_layout
13607
13608 \begin_layout Section
13609 Koma-Script
13610 \end_layout
13611
13612 \begin_layout Standard
13613 by 
13614 \noun on
13615 Bernd Rellermeyer
13616 \end_layout
13617
13618 \begin_layout Subsection
13619 Overview
13620 \end_layout
13621
13622 \begin_layout Standard
13623 The \SpecialChar LyX
13624  document classes 
13625 \emph on
13626 article (koma-script)
13627 \emph default
13628
13629 \emph on
13630 report (koma-script)
13631 \emph default
13632
13633 \emph on
13634 book
13635 \emph default
13636  
13637 \emph on
13638 (koma-script)
13639 \emph default
13640 , and 
13641 \emph on
13642 letter
13643 \emph default
13644  
13645 \emph on
13646 (koma-script)
13647 \emph default
13648  correspond to the \SpecialChar LaTeX
13649  document classes 
13650 \family typewriter
13651 scrartcl.cls
13652 \family default
13653
13654 \family typewriter
13655 scrreprt.cls
13656 \family default
13657
13658 \family typewriter
13659 scrbook.cls
13660 \family default
13661 , and 
13662 \family typewriter
13663 scrlettr.cls
13664 \family default
13665 , resp.
13666 \begin_inset space ~
13667 \end_inset
13668
13669 of the Koma-Script family.
13670  They are replacements for the standard document classes 
13671 \family typewriter
13672 article.cls
13673 \family default
13674
13675 \family typewriter
13676 report.cls
13677 \family default
13678
13679 \family typewriter
13680 book.cls
13681 \family default
13682  and 
13683 \family typewriter
13684 letter.cls
13685 \family default
13686 , resp., and fit better to European typography conventions in a number of
13687  points.
13688 \end_layout
13689
13690 \begin_layout Itemize
13691 Standard character size is 11pt in 
13692 \emph on
13693 article (koma-script)
13694 \emph default
13695
13696 \emph on
13697 report (koma-script)
13698 \emph default
13699 , and 
13700 \emph on
13701 book (koma-script)
13702 \emph default
13703 , and 12pt in 
13704 \emph on
13705 letter (koma-script)
13706 \emph default
13707 .
13708 \end_layout
13709
13710 \begin_layout Itemize
13711 Headings, labels of the description environment, and a number of elements
13712  of the 
13713 \emph on
13714 letter (koma-script)
13715 \emph default
13716  document class are set in a bold sans serif font.
13717 \begin_inset Foot
13718 status collapsed
13719
13720 \begin_layout Plain Layout
13721 There is a big difference between the bold sans serif old cm fonts and new
13722  ec fonts, especially in the appearance of headings.
13723  In comparison, the ec bold sans serif fonts look a bit thin.
13724  Here the \SpecialChar LaTeX
13725  package 
13726 \family typewriter
13727 cmsd.sty by
13728 \family default
13729  
13730 \shape smallcaps
13731 Walter Schmidt
13732 \shape default
13733  helps to produce the 
13734 \begin_inset Quotes eld
13735 \end_inset
13736
13737 usual
13738 \begin_inset Quotes erd
13739 \end_inset
13740
13741  appearance when using the ec fonts.
13742 \end_layout
13743
13744 \end_inset
13745
13746  The numbering of chapter headings is made in the same way as the numbering
13747  of section headings, that is without the extra line 
13748 \begin_inset Quotes eld
13749 \end_inset
13750
13751 Chapter\SpecialChar ldots
13752
13753 \begin_inset Quotes erd
13754 \end_inset
13755
13756 .
13757  In addition, the appearance of the headings can be modified by using a
13758  number of options (in \SpecialChar LyX
13759  to be entered in the field 
13760 \family sans
13761 Extra
13762 \begin_inset space ~
13763 \end_inset
13764
13765 Options
13766 \family default
13767  of the dialog 
13768 \family sans
13769 Layout\SpecialChar menuseparator
13770 Document
13771 \family default
13772 ).
13773  
13774 \end_layout
13775
13776 \begin_layout Itemize
13777 The main means in the Koma-Script document classes to design the type area
13778  are the options 
13779 \family sans
13780 BCOR
13781 \family default
13782  and 
13783 \family sans
13784 DIV
13785 \family default
13786  (in \SpecialChar LyX
13787  to be entered in the extra class options field in the dialog 
13788 \family sans
13789 Document\SpecialChar menuseparator
13790 Settings
13791 \family default
13792 ).
13793  They make a clearer modification of page margins possible as do the options
13794  of the dialog 
13795 \family sans
13796 Document\SpecialChar menuseparator
13797 Settings
13798 \family default
13799 .
13800  
13801 \end_layout
13802
13803 \begin_layout Itemize
13804 The \SpecialChar LaTeX
13805  document classes of the Koma-Script family define a number of additional
13806  commands.
13807  Those part of it which makes sense in \SpecialChar LyX
13808  is implemented in corresponding
13809  paragraph types.
13810 \end_layout
13811
13812 \begin_layout Standard
13813 Detailed descriptions of the \SpecialChar LaTeX
13814  document classes of the Koma-Script family
13815  can be found in the Koma-Script documentation 
13816 \emph on
13817 scrguide
13818 \emph default
13819  (German) and 
13820 \emph on
13821 scrguien
13822 \emph default
13823  (English).
13824 \end_layout
13825
13826 \begin_layout Subsection
13827 article (koma-script), report (koma-script), and book (koma-script)
13828 \end_layout
13829
13830 \begin_layout Standard
13831 The document classes 
13832 \emph on
13833 article (koma-script)
13834 \emph default
13835
13836 \emph on
13837 report (koma-script)
13838 \emph default
13839 , and 
13840 \emph on
13841 book
13842 \emph default
13843  
13844 \emph on
13845 (koma-script)
13846 \emph default
13847  are implemented in the layout files 
13848 \family typewriter
13849 scrartcl.layout
13850 \family default
13851
13852 \family typewriter
13853 scrreprt.layout
13854 \family default
13855 , and 
13856 \family typewriter
13857 scrbook.layout
13858 \family default
13859 , resp.
13860  They contain all the paragraph types of the corresponding standard document
13861  classes 
13862 \emph on
13863 article
13864 \emph default
13865
13866 \emph on
13867 report
13868 \emph default
13869 , and 
13870 \emph on
13871 book
13872 \emph default
13873 , resp., partly modified, with the exception of the \SpecialChar LyX
13874  specific 
13875 \family sans
13876 List
13877 \family default
13878 -type, which is replaced by the new 
13879 \family sans
13880 Labeling
13881 \family default
13882 -type having the same functionality.
13883  Beside the 
13884 \family sans
13885 Labeling
13886 \family default
13887 -Type there is a number of new paragraph types added.
13888  They are 
13889 \emph on
13890 not
13891 \emph default
13892  part of 
13893 \emph on
13894 letter (koma-script)
13895 \emph default
13896 .
13897 \end_layout
13898
13899 \begin_layout Itemize
13900
13901 \family sans
13902 Addpart, Addchap
13903 \family default
13904
13905 \family sans
13906 Addsec
13907 \family default
13908 : are equivalents to 
13909 \family sans
13910 Part*, Chapter*
13911 \family default
13912  and 
13913 \family sans
13914 Section*
13915 \family default
13916 , resp., additionally inserting an entry in the table of contents.
13917  
13918 \family sans
13919 Addpart
13920 \family default
13921  and 
13922 \family sans
13923 Addchap
13924 \family default
13925  are not contained in 
13926 \emph on
13927 article (koma-script)
13928 \emph default
13929 .
13930 \end_layout
13931
13932 \begin_layout Itemize
13933
13934 \family sans
13935 Addchap*
13936 \family default
13937
13938 \family sans
13939 Addsec*
13940 \family default
13941 : behave exactly as 
13942 \family sans
13943 Addchap
13944 \family default
13945  and 
13946 \family sans
13947 Addsec
13948 \family default
13949 , resp., additionally clearing running heads.
13950  
13951 \family sans
13952 Addchap*
13953 \family default
13954  is not contained in 
13955 \emph on
13956 article (koma-script)
13957 \emph default
13958 .
13959 \begin_inset Foot
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963 There is also an 
13964 \family typewriter
13965
13966 \backslash
13967 addpart*
13968 \family default
13969  command in 
13970 \emph on
13971 book (koma-script)
13972 \emph default
13973  and in 
13974 \emph on
13975 report (koma-script)
13976 \emph default
13977 , but since this is identical to 
13978 \family sans
13979 Part*
13980 \family default
13981 , is has not been implemented in \SpecialChar LyX
13982 .
13983 \end_layout
13984
13985 \end_inset
13986
13987
13988 \end_layout
13989
13990 \begin_layout Itemize
13991
13992 \family sans
13993 Minisec
13994 \family default
13995 : generates a heading directly above the following paragraph in the standard
13996  character size without affecting the structure of the document.
13997 \end_layout
13998
13999 \begin_layout Itemize
14000
14001 \family sans
14002 Captionabove
14003 \family default
14004  and 
14005 \family sans
14006 Captionbelow
14007 \family default
14008  are special captions which respect the different space settings needed
14009  for captions placed above or below an element (if you follow strict typographic
14010  rules, you might want to place table captions always above the table).
14011  You can also use the class option 
14012 \family typewriter
14013 tablecaptionsabove
14014 \family default
14015 , which will switch 
14016 \family sans
14017 caption
14018 \family default
14019  to 
14020 \family sans
14021 captionabove
14022 \family default
14023  for tables and 
14024 \family sans
14025 captionbelow
14026 \family default
14027  for figures.
14028  You need at least Koma-Script version 2.8q to use this.
14029 \end_layout
14030
14031 \begin_layout Itemize
14032
14033 \family sans
14034 Dictum
14035 \family default
14036 : can be used to set a bonmot, e.
14037 \begin_inset space \thinspace{}
14038 \end_inset
14039
14040 g.
14041 \begin_inset space \space{}
14042 \end_inset
14043
14044 at the beginning of a chapter.
14045  If you use the optional argument (
14046 \family sans
14047 Insert\SpecialChar menuseparator
14048 Short
14049 \begin_inset space ~
14050 \end_inset
14051
14052 Title
14053 \family default
14054 ), you can insert the dictum's author there.
14055  Dictum and author are separated by a line.
14056  You need at least Koma-Script version 2.8q to use this.
14057  
14058 \family sans
14059 Dictum
14060 \family default
14061  is not contained in 
14062 \emph on
14063 article (koma-script)
14064 \emph default
14065 .
14066 \end_layout
14067
14068 \begin_layout Standard
14069 The following types, together with the standard types 
14070 \family sans
14071 Title
14072 \family default
14073
14074 \family sans
14075 Author
14076 \family default
14077 , and 
14078 \family sans
14079 Date
14080 \family default
14081 , form the title area of the document.
14082  They must be entered ahead of the first 
14083 \begin_inset Quotes eld
14084 \end_inset
14085
14086 ordinary
14087 \begin_inset Quotes erd
14088 \end_inset
14089
14090  paragraph.
14091 \begin_inset Foot
14092 status collapsed
14093
14094 \begin_layout Plain Layout
14095 The corresponding \SpecialChar LaTeX
14096  commands must appear before the 
14097 \family typewriter
14098
14099 \backslash
14100 maketitle
14101 \family default
14102  command.
14103 \end_layout
14104
14105 \end_inset
14106
14107  When such a type is used more than once, the latter usage overwrites the
14108  former one, that means, for every type only the latest usage is valid.
14109  The order of the different types however has, like 
14110 \family sans
14111 Title
14112 \family default
14113
14114 \family sans
14115 Author
14116 \family default
14117 , and 
14118 \family sans
14119 Date
14120 \family default
14121 , no effect on the appearance of the produced document.
14122 \end_layout
14123
14124 \begin_layout Itemize
14125
14126 \family sans
14127 Subject
14128 \family default
14129 : produces a centered paragraph above the ordinary title (
14130 \family sans
14131 Title
14132 \family default
14133
14134 \family sans
14135 Author
14136 \family default
14137
14138 \family sans
14139 Date
14140 \family default
14141 ) for the subject of the document.
14142 \end_layout
14143
14144 \begin_layout Itemize
14145
14146 \family sans
14147 Publishers
14148 \family default
14149 : produces a centered paragraph below the ordinary title (
14150 \family sans
14151 Title
14152 \family default
14153
14154 \family sans
14155 Author
14156 \family default
14157
14158 \family sans
14159 Date
14160 \family default
14161 ) for the publishers' name.
14162 \end_layout
14163
14164 \begin_layout Itemize
14165
14166 \family sans
14167 Dedication
14168 \family default
14169 : in 
14170 \emph on
14171 report (koma-script)
14172 \emph default
14173  and 
14174 \emph on
14175 book (koma-script)
14176 \emph default
14177  produces a centered paragraph on its own page behind the title page, or
14178  in 
14179 \emph on
14180 article (koma-script)
14181 \emph default
14182  produces a centered paragraph below the ordinary title (
14183 \family sans
14184 Title
14185 \family default
14186
14187 \family sans
14188 Author
14189 \family default
14190
14191 \family sans
14192 Date
14193 \family default
14194
14195 \family sans
14196 Publishers
14197 \family default
14198 ) for a dedication.
14199 \end_layout
14200
14201 \begin_layout Itemize
14202
14203 \family sans
14204 Titlehead
14205 \family default
14206 : produces a left aligned paragraph above the ordinary title (
14207 \family sans
14208 Title
14209 \family default
14210
14211 \family sans
14212 Author
14213 \family default
14214
14215 \family sans
14216 Date
14217 \family default
14218
14219 \family sans
14220 Subject
14221 \family default
14222 ) for a document`s head.
14223 \end_layout
14224
14225 \begin_layout Itemize
14226
14227 \family sans
14228 Uppertitleback
14229 \family default
14230 : produces in a double-sided print in 
14231 \emph on
14232 report (koma-script)
14233 \emph default
14234  and 
14235 \emph on
14236 book (koma-script)
14237 \emph default
14238  a left-aligned paragraph at the top of the title page`s back or has no
14239  effect in a single-sided print or in 
14240 \emph on
14241 article (koma-script)
14242 \emph default
14243 .
14244 \end_layout
14245
14246 \begin_layout Itemize
14247
14248 \family sans
14249 Lowertitleback
14250 \family default
14251 : produces in a double-sided print in 
14252 \emph on
14253 report (koma-script)
14254 \emph default
14255  and 
14256 \emph on
14257 book (koma-script)
14258 \emph default
14259  a left-aligned paragraph at the bottom of the title page`s back or has
14260  no effect in a single-sided print or in 
14261 \emph on
14262 article (koma-script)
14263 \emph default
14264 .
14265 \end_layout
14266
14267 \begin_layout Itemize
14268
14269 \family sans
14270 Extratitle
14271 \family default
14272 : produces a special 
14273 \begin_inset Quotes eld
14274 \end_inset
14275
14276 dirty
14277 \begin_inset Quotes erd
14278 \end_inset
14279
14280  page ahead of the actual document containing a paragraph without special
14281  formatting.
14282 \end_layout
14283
14284 \begin_layout Standard
14285 The layout files for the document classes 
14286 \emph on
14287 article (koma-script)
14288 \emph default
14289
14290 \emph on
14291 report (koma-script)
14292 \emph default
14293 , and 
14294 \emph on
14295 book (koma-script)
14296 \emph default
14297  do include the file 
14298 \family typewriter
14299 scrmacros.inc
14300 \family default
14301 .
14302  This is thought of as a place to define your own types.
14303  Copy scrmacros
14304 \family typewriter
14305 .inc
14306 \family default
14307  in your personal layout directory and edit the file!
14308 \end_layout
14309
14310 \begin_layout Subsection
14311 letter (koma-script)
14312 \end_layout
14313
14314 \begin_layout Standard
14315 \noindent
14316 The document class 
14317 \emph on
14318 letter (koma-script)
14319 \emph default
14320  is implemented in the layout file 
14321 \family typewriter
14322 scrlettr.layout
14323 \family default
14324 .
14325  It contains all the paragraph types of the corresponding standard document
14326  class 
14327 \emph on
14328 letter
14329 \emph default
14330 , partly modified, with the exception of the \SpecialChar LyX
14331  specific types 
14332 \family sans
14333 \SpecialChar LyX
14334 -Code
14335 \family default
14336  and 
14337 \family sans
14338 Comment
14339 \family default
14340  and the 
14341 \family sans
14342 List
14343 \family default
14344  type, which is replaced by the new 
14345 \family sans
14346 Labeling
14347 \family default
14348  type.
14349  In addition, it contains, in contrast to the standard document class, the
14350  standard types 
14351 \family sans
14352 \SpecialChar LaTeX
14353
14354 \family default
14355
14356 \family sans
14357 Quotation
14358 \family default
14359
14360 \family sans
14361 Quote
14362 \family default
14363 , and 
14364 \family sans
14365 Verse
14366 \family default
14367 .
14368  Furthermore, there are a number of new letter specific types.
14369 \end_layout
14370
14371 \begin_layout Standard
14372 The appearance of the letter produced by this document class can be controlled
14373  by a number of \SpecialChar LaTeX
14374  commands, which you can put in the \SpecialChar LaTeX
14375  preamble.
14376 \begin_inset Foot
14377 status collapsed
14378
14379 \begin_layout Plain Layout
14380 For example, the standard appearance of the letter`s heading, consisting
14381  of name and address, is quite self-willed.
14382  An 
14383 \begin_inset Quotes eld
14384 \end_inset
14385
14386 ordinary
14387 \begin_inset Quotes erd
14388 \end_inset
14389
14390  heading is produced by the following \SpecialChar LaTeX
14391  commands in the preamble:
14392 \end_layout
14393
14394 \begin_layout LyX-Code
14395
14396 \backslash
14397 firsthead{
14398 \backslash
14399 parbox[b]{
14400 \backslash
14401 textwidth}
14402 \end_layout
14403
14404 \begin_layout LyX-Code
14405   {
14406 \backslash
14407 ignorespaces 
14408 \backslash
14409 fromname
14410 \backslash
14411
14412 \backslash
14413  
14414 \backslash
14415 ignorespaces 
14416 \backslash
14417 fromaddress}} 
14418 \end_layout
14419
14420 \begin_layout LyX-Code
14421
14422 \backslash
14423 nexthead{
14424 \backslash
14425 parbox[b]{
14426 \backslash
14427 textwidth}
14428 \end_layout
14429
14430 \begin_layout LyX-Code
14431   {
14432 \backslash
14433 ignorespaces 
14434 \backslash
14435 fromname 
14436 \backslash
14437 hfill 
14438 \backslash
14439 ignorespaces 
14440 \backslash
14441 pagename
14442 \backslash
14443  
14444 \backslash
14445 thepage}}
14446 \end_layout
14447
14448 \end_inset
14449
14450  A detailed German description of such \SpecialChar LaTeX
14451  commands can be found in the Koma-Script
14452  documentation 
14453 \emph on
14454 scrguide
14455 \emph default
14456 .
14457  With it, the letter's author can produce his personal letter layout.
14458 \end_layout
14459
14460 \begin_layout Standard
14461 The types 
14462 \family sans
14463 Letter
14464 \family default
14465  and 
14466 \family sans
14467 Opening
14468 \family default
14469  define the beginning of the letter and must be used in every letter.
14470  To emphasize them in the \SpecialChar LyX
14471  document class, they are marked with the letter
14472  
14473 \shape italic
14474 L
14475 \shape default
14476  or 
14477 \shape italic
14478 O
14479 \shape default
14480 , resp.
14481 \begin_inset space ~
14482 \end_inset
14483
14484 in the left margin.
14485  It is possible to write any number of letters in one file.
14486  An 
14487 \family sans
14488 Opening
14489 \family default
14490  type produces a new letter using the same addressee and a 
14491 \family sans
14492 Letter
14493 \family default
14494  type produces a new addressee.
14495  The types 
14496 \family sans
14497 Closing
14498 \family default
14499
14500 \family sans
14501 PS
14502 \family default
14503
14504 \family sans
14505 CC
14506 \family default
14507 , and 
14508 \family sans
14509 Encl
14510 \family default
14511  are ordinary paragraph types and can also be used several times in one
14512  and the same letter.
14513 \end_layout
14514
14515 \begin_layout Itemize
14516
14517 \family sans
14518 Letter
14519 \family default
14520 : produces a paragraph for the addressee and implicitly defines the beginning
14521  of the letter.
14522 \end_layout
14523
14524 \begin_layout Itemize
14525
14526 \family sans
14527 Opening
14528 \family default
14529 : produces a paragraph for the form of address and implicitly produces a
14530  new letter.
14531 \end_layout
14532
14533 \begin_layout Itemize
14534
14535 \family sans
14536 Closing
14537 \family default
14538 : produces a paragraph for a close.
14539 \end_layout
14540
14541 \begin_layout Itemize
14542
14543 \family sans
14544 PS
14545 \family default
14546 : produces a paragraph for a postscript.
14547 \end_layout
14548
14549 \begin_layout Itemize
14550
14551 \family sans
14552 CC
14553 \family default
14554 : produces a paragraph for a distribution list.
14555 \end_layout
14556
14557 \begin_layout Itemize
14558
14559 \family sans
14560 Encl
14561 \family default
14562 : produces a paragraph for enclosures.
14563 \end_layout
14564
14565 \begin_layout Standard
14566 The types 
14567 \family sans
14568 Name
14569 \family default
14570
14571 \family sans
14572 Signature
14573 \family default
14574
14575 \family sans
14576 Address
14577 \family default
14578
14579 \family sans
14580 Telephone
14581 \family default
14582
14583 \family sans
14584 Place
14585 \family default
14586
14587 \family sans
14588 Backaddress
14589 \family default
14590
14591 \family sans
14592 Specialmail
14593 \family default
14594
14595 \family sans
14596 Location
14597 \family default
14598
14599 \family sans
14600 Title
14601 \family default
14602 , and 
14603 \family sans
14604 Subject
14605 \family default
14606  are input types provided with a label to enter information, which will
14607  be processed by the document class.
14608 \begin_inset Foot
14609 status open
14610
14611 \begin_layout Plain Layout
14612 It could be seen as a matter of inconsequence, that the types 
14613 \family sans
14614 Letter
14615 \family default
14616  and 
14617 \family sans
14618 Opening
14619 \family default
14620  described above are not such input types as well.
14621  Because of the special meaning of those types, however, I have implemented
14622  them as ordinary paragraph types with a one letter mark in the left margin.
14623  Moreover, it would affect my feeling of symmetry, if the 
14624 \family sans
14625 Opening
14626 \family default
14627  type and the 
14628 \family sans
14629 Closing
14630 \family default
14631  type had such a serious different appearance.
14632 \end_layout
14633
14634 \end_inset
14635
14636  The types must be used ahead of the corresponding 
14637 \family sans
14638 Opening
14639 \family default
14640  type.
14641 \end_layout
14642
14643 \begin_layout Standard
14644 An implementation of these types in a WYSIWYG fashion does not seem to make
14645  sense, because the real appearance of the produced letter does not only
14646  depend on the usage of the particular type, but also on other factors.
14647  For example, a signature entered in the 
14648 \family sans
14649 Signature
14650 \family default
14651  type will in the standard behavior appear in the produced letter only,
14652  when in the same letter also a 
14653 \family sans
14654 Closing
14655 \family default
14656  type is used.
14657  The entered value of the 
14658 \family sans
14659 Telephone
14660 \family default
14661  type will in the standard behavior not appear in the produced letter at
14662  all.
14663  The possibility to design the letter`s heading freely is already indicated
14664  in a footnote above.
14665 \end_layout
14666
14667 \begin_layout Standard
14668 The input types can also be used as empty paragraphs.
14669  This makes sense e.
14670 \begin_inset space \thinspace{}
14671 \end_inset
14672
14673 g.
14674 \begin_inset space \space{}
14675 \end_inset
14676
14677 for the 
14678 \family sans
14679 Signature
14680 \family default
14681  type.
14682  If the 
14683 \family sans
14684 Signature
14685 \family default
14686  type is not used at all, in the standard behavior the value of the 
14687 \family sans
14688 Name
14689 \family default
14690  type is used as signature, whereas if an empty 
14691 \family sans
14692 Signature
14693 \family default
14694  type is used, no signature value is defined.
14695 \end_layout
14696
14697 \begin_layout Standard
14698 By using the input types it is possible to write a letter template, containing
14699  filled input types with your personal dates (name, address, etc.) and empty
14700  input types for other dates you want to enter.
14701 \end_layout
14702
14703 \begin_layout Itemize
14704
14705 \family sans
14706 Name
14707 \family default
14708 : sender's name, in the standard behavior appears as a centered paragraph
14709  in small caps in the letter`s heading.
14710 \end_layout
14711
14712 \begin_layout Itemize
14713
14714 \family sans
14715 Signature
14716 \family default
14717 : sender's signature, in the standard behavior appears below the 
14718 \family sans
14719 Closing
14720 \family default
14721  type.
14722  If no 
14723 \family sans
14724 Signature
14725 \family default
14726  type is used, the value of the 
14727 \family sans
14728 Name
14729 \family default
14730  type appears instead.
14731 \end_layout
14732
14733 \begin_layout Itemize
14734
14735 \family sans
14736 Address
14737 \family default
14738 : sender's address, in the standard behavior appears in a centered paragraph
14739  in the letter`s heading below the sender's name.
14740 \end_layout
14741
14742 \begin_layout Itemize
14743
14744 \family sans
14745 Telephone
14746 \family default
14747 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
14748  variable
14749  
14750 \family typewriter
14751
14752 \backslash
14753 telephonenum
14754 \family default
14755 .
14756 \end_layout
14757
14758 \begin_layout Itemize
14759
14760 \family sans
14761 Place
14762 \family default
14763 : place of the letter`s making.
14764 \end_layout
14765
14766 \begin_layout Itemize
14767
14768 \family sans
14769 Date
14770 \family default
14771 : date of the letter`s making.
14772  
14773 \family sans
14774 Place
14775 \family default
14776  and 
14777 \family sans
14778 Date
14779 \family default
14780 , in the standard behavior, produce the place and the date in a right-aligned
14781  line below the addressee's field.
14782  If an empty 
14783 \family sans
14784 Date
14785 \family default
14786  type is used, neither place nor date appear, independent of the value of
14787  the 
14788 \family sans
14789 Place
14790 \family default
14791  type.
14792  If no 
14793 \family sans
14794 Date
14795 \family default
14796  type is used, the date of the letter `s production is used.
14797 \end_layout
14798
14799 \begin_layout Itemize
14800
14801 \family sans
14802 Backaddress
14803 \family default
14804 : sender`s back address, in the standard behavior appears above the addressee's
14805  field in a small sans serif font.
14806 \end_layout
14807
14808 \begin_layout Itemize
14809
14810 \family sans
14811 Specialmail
14812 \family default
14813 : special mail information, in the standard behavior appears underlined
14814  above the addressee's field below the back address.
14815 \end_layout
14816
14817 \begin_layout Itemize
14818
14819 \family sans
14820 Location
14821 \family default
14822 : additional information, in the standard behavior appears on right side
14823  below the addressee`s field.
14824 \end_layout
14825
14826 \begin_layout Itemize
14827
14828 \family sans
14829 Title
14830 \family default
14831 : the letter's title, in the standard behavior appears in a big, bold, sans
14832  serif font above the subject.
14833 \end_layout
14834
14835 \begin_layout Itemize
14836
14837 \family sans
14838 Subject
14839 \family default
14840 : the letter's subject, in the standard behavior appears in a bold font
14841  above the 
14842 \family sans
14843 Opening
14844 \family default
14845  paragraph.
14846 \end_layout
14847
14848 \begin_layout Standard
14849 The types 
14850 \family sans
14851 Yourref
14852 \family default
14853
14854 \family sans
14855 Yourmail
14856 \family default
14857
14858 \family sans
14859 Myref
14860 \family default
14861
14862 \family sans
14863 Customer
14864 \family default
14865 , and 
14866 \family sans
14867 Invoice
14868 \family default
14869  produce a business letter like line above the 
14870 \family sans
14871 Title
14872 \family default
14873  line containing the fields 
14874 \begin_inset Quotes eld
14875 \end_inset
14876
14877 Your ref.
14878 \begin_inset Quotes erd
14879 \end_inset
14880
14881
14882 \begin_inset Quotes eld
14883 \end_inset
14884
14885 Your letter of
14886 \begin_inset Quotes erd
14887 \end_inset
14888
14889
14890 \begin_inset Quotes eld
14891 \end_inset
14892
14893 Our ref.
14894 \begin_inset Quotes erd
14895 \end_inset
14896
14897
14898 \begin_inset Quotes eld
14899 \end_inset
14900
14901 Customer no.
14902 \begin_inset Quotes erd
14903 \end_inset
14904
14905
14906 \begin_inset Quotes eld
14907 \end_inset
14908
14909 Invoice no.
14910 \begin_inset Quotes erd
14911 \end_inset
14912
14913 , and 
14914 \begin_inset Quotes eld
14915 \end_inset
14916
14917 Date
14918 \begin_inset Quotes erd
14919 \end_inset
14920
14921 .
14922  For the date field, the value of the 
14923 \family sans
14924 Date
14925 \family default
14926  type is used.
14927  If one of these 
14928 \begin_inset Quotes eld
14929 \end_inset
14930
14931 business letter types
14932 \begin_inset Quotes erd
14933 \end_inset
14934
14935  is used, the value of the 
14936 \family sans
14937 Place
14938 \family default
14939  type however does not appear, but only the \SpecialChar LaTeX
14940  variable 
14941 \family typewriter
14942
14943 \backslash
14944 fromplace
14945 \family default
14946  is set.
14947  The ordinary output of place and date in a right-aligned line below the
14948  addressee`s field is suppressed.
14949  The types are implemented as input types provided with a label and must
14950  be used ahead of the corresponding 
14951 \family sans
14952 Opening
14953 \family default
14954  type.
14955 \end_layout
14956
14957 \begin_layout Itemize
14958
14959 \family sans
14960 Yourref
14961 \family default
14962 : Your ref.
14963 \end_layout
14964
14965 \begin_layout Itemize
14966
14967 \family sans
14968 Yourmail
14969 \family default
14970 : Your letter of.
14971 \end_layout
14972
14973 \begin_layout Itemize
14974
14975 \family sans
14976 Myref
14977 \family default
14978 : Our ref.
14979 \end_layout
14980
14981 \begin_layout Itemize
14982
14983 \family sans
14984 Customer
14985 \family default
14986 : Customer no.
14987 \end_layout
14988
14989 \begin_layout Itemize
14990
14991 \family sans
14992 Invoice
14993 \family default
14994 : Invoice no.
14995 \end_layout
14996
14997 \begin_layout Subsection
14998 The new letter class: letter (koma-script v.2)
14999 \end_layout
15000
15001 \begin_layout Standard
15002 by 
15003 \noun on
15004 Jürgen Spitzmüller
15005 \end_layout
15006
15007 \begin_layout Standard
15008 \begin_inset VSpace medskip
15009 \end_inset
15010
15011
15012 \end_layout
15013
15014 \begin_layout Standard
15015 \noindent
15016 Koma-Script version 2.8 has introduced a new letter class 
15017 \family typewriter
15018 scrlttr2
15019 \family default
15020  which supersedes the now unsupported 
15021 \family typewriter
15022 scrlettr
15023 \family default
15024 .
15025  It has — on the \SpecialChar LaTeX
15026  side — a completely new interface and is not compatible
15027  with the old class.
15028  Therefore, \SpecialChar LyX
15029  supports both, though it is recommended you use the new class.
15030 \end_layout
15031
15032 \begin_layout Standard
15033 This class covers the same functionality as 
15034 \emph on
15035 letter (koma-script),
15036 \emph default
15037  and a few more.
15038  The basic items are 
15039 \family sans
15040 Address
15041 \family default
15042  (receiver's address, same as 
15043 \family sans
15044 Letter
15045 \family default
15046  in the old layout), 
15047 \family sans
15048 Opening
15049 \family default
15050 , and 
15051 \family sans
15052 Closing
15053 \family default
15054 .
15055  
15056 \family sans
15057 NextAddress
15058 \family default
15059  will start a new letter (i.
15060 \begin_inset space \thinspace{}
15061 \end_inset
15062
15063 e.
15064 \begin_inset space \space{}
15065 \end_inset
15066
15067 you can write several letters per document).
15068  New elements are sender's 
15069 \family sans
15070 E-Mail
15071 \family default
15072
15073 \family sans
15074 URL
15075 \family default
15076
15077 \family sans
15078 Fax
15079 \family default
15080
15081 \family sans
15082 Bank
15083 \family default
15084  and the possibility to use a 
15085 \family sans
15086 Logo
15087 \family default
15088  (via 
15089 \family sans
15090 Insert\SpecialChar menuseparator
15091 Graphics
15092 \family default
15093 ) in the header.
15094 \end_layout
15095
15096 \begin_layout Standard
15097 The biggest improvement is, though, that the letter's layout is configurable
15098  to meet almost any needs.
15099  This can be done via the preamble or with a special style file (Letter
15100  Class Option, extension 
15101 \family typewriter
15102 *.lco
15103 \family default
15104 ), that will be read in as a class option.
15105 \begin_inset Foot
15106 status collapsed
15107
15108 \begin_layout Plain Layout
15109 The KOMA package comes with some default 
15110 \family typewriter
15111 *.lco
15112 \family default
15113  files.
15114  There is, for instance, a 
15115 \family typewriter
15116 DIN.lco
15117 \family default
15118  file that follows german typesetting rules, or a 
15119 \family typewriter
15120 KOMAold.lco
15121 \family default
15122  that provides the default layout of the old 
15123 \family typewriter
15124 scrlettr
15125 \family default
15126  class.
15127  The latter can be loaded with the class option 
15128 \family typewriter
15129 KOMAold
15130 \family default
15131 , inserted via the 
15132 \family sans
15133 \bar under
15134 L
15135 \bar default
15136 ayout\SpecialChar menuseparator
15137
15138 \bar under
15139 D
15140 \bar default
15141 ocument\SpecialChar menuseparator
15142 Extra Options
15143 \family default
15144  field.
15145 \end_layout
15146
15147 \end_inset
15148
15149  Have a look at the 
15150 \emph on
15151 koma-letter2
15152 \emph default
15153  template that is included in \SpecialChar LyX
15154  for examples.
15155  A detailed description is to be found in the Koma-Script documentation
15156  (
15157 \emph on
15158 scrguide
15159 \emph default
15160 ).
15161 \end_layout
15162
15163 \begin_layout Subsection
15164 Problems
15165 \end_layout
15166
15167 \begin_layout Standard
15168 Visualizing the Koma-Script document classes in \SpecialChar LyX
15169 , the \SpecialChar LyX
15170  internals cause some
15171  problems.
15172 \end_layout
15173
15174 \begin_layout Itemize
15175 The chapter number of a 
15176 \family sans
15177 Chapter
15178 \family default
15179  type appears on a line of its own above the chapter heading instead of
15180  appearing in the same line ahead of it.
15181  The cause for that is the \SpecialChar LyX
15182  internal behavior for the labeltype 
15183 \family sans
15184 Counter_Chapter
15185 \family default
15186  in the layout file.
15187 \end_layout
15188
15189 \begin_layout Itemize
15190 The headings of the types 
15191 \family sans
15192 Addchap
15193 \family default
15194  and 
15195 \family sans
15196 Addsec
15197 \family default
15198  are only put in the 
15199 \begin_inset Quotes eld
15200 \end_inset
15201
15202 true
15203 \begin_inset Quotes erd
15204 \end_inset
15205
15206  \SpecialChar LaTeX
15207  table of contents, but not in the \SpecialChar LyX
15208  table of contents (
15209 \family sans
15210 Document\SpecialChar menuseparator
15211 Table
15212 \begin_inset space ~
15213 \end_inset
15214
15215 of
15216 \begin_inset space ~
15217 \end_inset
15218
15219 Contents
15220 \family default
15221 ).
15222 \end_layout
15223
15224 \begin_layout Itemize
15225 The paragraphs in a 
15226 \emph on
15227 letter
15228 \emph default
15229  document class appear in a skip separation mode, not indented.
15230  This is the standard behavior, no special \SpecialChar LaTeX
15231  commands are needed for that.
15232  But in the 
15233 \family sans
15234 Document\SpecialChar menuseparator
15235 Settings
15236 \family default
15237  dialog the corresponding radio button indicates 
15238 \family sans
15239 Indent
15240 \family default
15241 .
15242  A 
15243 \family sans
15244 Skip
15245 \family default
15246  value always has the effect that extra \SpecialChar LaTeX
15247  commands are inserted in the document
15248  to produce the gap, which is not what is wanted in this case.
15249 \end_layout
15250
15251 \begin_layout Section
15252 Memoir
15253 \end_layout
15254
15255 \begin_layout Standard
15256 By 
15257 \noun on
15258 Jürgen Spitzmüller
15259 \end_layout
15260
15261 \begin_layout Subsection
15262 Overview
15263 \end_layout
15264
15265 \begin_layout Standard
15266 Memoir is a very powerful and constantly evolving class.
15267  It has been designed with regard to fictional and non-fictional literature.
15268  Its aim is to let the user have maximum control over the typesetting of
15269  his document.
15270  Memoir is based on the standard book class, but it can also emulate the
15271  article class (see below).
15272 \end_layout
15273
15274 \begin_layout Standard
15275 Peter Wilson, the developer of Memoir, is known as the author of lots of
15276  useful packages in the \SpecialChar LaTeX
15277  world.
15278  Most of them have been merged with Memoir.
15279  Therefore, it is much easier to layout the table of contents, appendices,
15280  chapter designs and such.
15281  \SpecialChar LyX
15282 , though, does not support all of these goodies natively.
15283  Some of them might be added to forthcoming releases
15284 \begin_inset Foot
15285 status collapsed
15286
15287 \begin_layout Plain Layout
15288 You are invited to send suggestions to 
15289 \begin_inset Flex URL
15290 status collapsed
15291
15292 \begin_layout Plain Layout
15293
15294 lyx-devel@lists.lyx.org
15295 \end_layout
15296
15297 \end_inset
15298
15299 .
15300 \end_layout
15301
15302 \end_inset
15303
15304 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15305 's framework.
15306  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15307
15308  commands (\SpecialChar TeX
15309  code
15310 \begin_inset Foot
15311 status collapsed
15312
15313 \begin_layout Plain Layout
15314 Cf.
15315 \begin_inset ERT
15316 status collapsed
15317
15318 \begin_layout Plain Layout
15319
15320
15321 \backslash
15322  
15323 \end_layout
15324
15325 \end_inset
15326
15327 section
15328 \begin_inset space ~
15329 \end_inset
15330
15331
15332 \begin_inset CommandInset ref
15333 LatexCommand ref
15334 reference "sec:Inserting-TeX-Code"
15335
15336 \end_inset
15337
15338  for details.
15339 \end_layout
15340
15341 \end_inset
15342
15343 ).
15344  In this section, we can only list those features that are natively supported
15345  by \SpecialChar LyX
15346 .
15347  For detailed descriptions (and for the rest of features) we recommend you
15348  have a look at the detailed manual of the Memoir class
15349 \begin_inset Foot
15350 status collapsed
15351
15352 \begin_layout Plain Layout
15353 Cf.
15354 \begin_inset ERT
15355 status collapsed
15356
15357 \begin_layout Plain Layout
15358
15359
15360 \backslash
15361  
15362 \end_layout
15363
15364 \end_inset
15365
15366
15367 \begin_inset Flex URL
15368 status collapsed
15369
15370 \begin_layout Plain Layout
15371
15372 CTAN:/macros/latex/memoir/memman.pdf
15373 \end_layout
15374
15375 \end_inset
15376
15377 .
15378 \end_layout
15379
15380 \end_inset
15381
15382 , which is not only a user guide for the class, but also both a comprehensive
15383  description on good typesetting and a superb example for good typesetting
15384  itself.
15385 \end_layout
15386
15387 \begin_layout Subsection
15388 Basic features and restrictions
15389 \end_layout
15390
15391 \begin_layout Standard
15392 Memoir supports basically all features of the standard book classes.
15393  There are, however, some differences, as follows:
15394 \end_layout
15395
15396 \begin_layout Description
15397 Font
15398 \begin_inset space ~
15399 \end_inset
15400
15401 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15402 \end_layout
15403
15404 \begin_layout Description
15405 Page
15406 \begin_inset space ~
15407 \end_inset
15408
15409 style: The fancy page style is not supported, due to a command clash between
15410  Memoir and the fancyhdr package (they both define a command with the same
15411  name, which confuses \SpecialChar LaTeX
15412 ).
15413  Instead, Memoir comes with a number of its own page styles (see 
15414 \family sans
15415 Layout\SpecialChar menuseparator
15416 Document\SpecialChar menuseparator
15417 Page
15418 \begin_inset space ~
15419 \end_inset
15420
15421 Style
15422 \family default
15423 ).
15424  If you want to use these for the chapter pages, you have to use the command
15425  
15426 \family typewriter
15427
15428 \backslash
15429 chapterstyle
15430 \family default
15431  in the main text or in preamble (e.
15432 \begin_inset space \thinspace{}
15433 \end_inset
15434
15435 g.
15436 \begin_inset space \space{}
15437 \end_inset
15438
15439
15440 \family typewriter
15441
15442 \backslash
15443 chapterstyle{companion}
15444 \family default
15445 ).
15446 \end_layout
15447
15448 \begin_layout Description
15449 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15450  optional argument in the standard classes.
15451  With this, you can specify an alternative version of the title for the
15452  table of contents and the headers (for instance, if the title is too long).
15453  In \SpecialChar LyX
15454 , you can do this via 
15455 \family sans
15456 Insert\SpecialChar menuseparator
15457 Short
15458 \begin_inset space ~
15459 \end_inset
15460
15461 Title
15462 \family default
15463  at the beginning of a chapter/section.
15464  Memoir features a second optional argument and thus separates the table
15465  of contents from the header.
15466  You can define three variants of a title with this: one for the main text,
15467  one for the table of contents, and one for the headers.
15468  Simply insert two optional arguments if you need this feature, the first
15469  one containing the short title for the Table of Contents, the second one
15470  containing an alternative short title for the headers.
15471 \end_layout
15472
15473 \begin_layout Description
15474 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15475  of contents, the list of figures and the list of table start a new page
15476  automatically.
15477  Memoir does not follow this route.
15478  You have to insert a page break yourself, if you want to have one.
15479 \end_layout
15480
15481 \begin_layout Description
15482 Titlepage: For some unknown reason, Memoir uses pagination on the title
15483  page (in the standard classes, title pages are 
15484 \begin_inset Quotes eld
15485 \end_inset
15486
15487 empty
15488 \begin_inset Quotes erd
15489 \end_inset
15490
15491 ).
15492  If you want an empty title page, type 
15493 \family typewriter
15494
15495 \backslash
15496 aliaspagestyle{title}{empty}
15497 \family default
15498  in the preamble.
15499 \end_layout
15500
15501 \begin_layout Description
15502 Article: With the class option 
15503 \emph on
15504 article
15505 \emph default
15506  (to be inserted in 
15507 \family sans
15508 Layout\SpecialChar menuseparator
15509 Document\SpecialChar menuseparator
15510 Extra
15511 \begin_inset space ~
15512 \end_inset
15513
15514 Options
15515 \family default
15516 ), you can emulate article style.
15517  That is, counters (footnotes, figures, tables etc.) will not be reset on
15518  new chapters, chapters don't start a new page (but are—in contrary to 
15519 \begin_inset Quotes eld
15520 \end_inset
15521
15522 real
15523 \begin_inset Quotes erd
15524 \end_inset
15525
15526  article classes—still allowed), parts, though, use their own page, as in
15527  book.
15528 \end_layout
15529
15530 \begin_layout Description
15531 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15532  font commands, which have been used in the old \SpecialChar LaTeX
15533  version 2.09 (e.
15534 \begin_inset space \thinspace{}
15535 \end_inset
15536
15537 g.
15538 \begin_inset space \space{}
15539 \end_inset
15540
15541
15542 \family typewriter
15543
15544 \backslash
15545 rm
15546 \family default
15547
15548 \family typewriter
15549
15550 \backslash
15551 it
15552 \family default
15553 ).
15554  It produces an error and stops \SpecialChar LaTeX
15555  whenever such a command appears.
15556  The class option 
15557 \emph on
15558 oldfontcommands
15559 \emph default
15560  reallows the commands and spits out warnings instead (which does at least
15561  not stop \SpecialChar LaTeX
15562 ).
15563  Since a lot of packages and particularly Bib\SpecialChar TeX
15564  style files are still using
15565  those commands, we have decided to use this option by default.
15566 \end_layout
15567
15568 \begin_layout Subsection
15569 Extra features
15570 \end_layout
15571
15572 \begin_layout Standard
15573 We will only describe the features supported by \SpecialChar LyX
15574  (which is not much currently).
15575  Please consult the Memoir manual
15576 \begin_inset Foot
15577 status collapsed
15578
15579 \begin_layout Plain Layout
15580 Cf.
15581 \begin_inset ERT
15582 status collapsed
15583
15584 \begin_layout Plain Layout
15585
15586
15587 \backslash
15588  
15589 \end_layout
15590
15591 \end_inset
15592
15593
15594 \begin_inset Flex URL
15595 status collapsed
15596
15597 \begin_layout Plain Layout
15598
15599 CTAN:/macros/latex/memoir/memman.pdf
15600 \end_layout
15601
15602 \end_inset
15603
15604 .
15605 \end_layout
15606
15607 \end_inset
15608
15609  for details.
15610 \end_layout
15611
15612 \begin_layout Description
15613 Abstract: You may wonder why an abstract is an extra feature.
15614  Well, it is in book class.
15615  Usually books don't have abstracts.
15616  Memoir, however, has.
15617  You can use it wherever and how often you like.
15618 \end_layout
15619
15620 \begin_layout Description
15621 Chapterprecis: You may know this older typesetting style: The contents of
15622  a chapter are summarized below the title and also in the table of contents
15623  (e.
15624 \begin_inset space \thinspace{}
15625 \end_inset
15626
15627 g.
15628 \begin_inset space \space{}
15629 \end_inset
15630
15631
15632 \emph on
15633 Our hero arrives in Troia; he loses some friends; he finds others
15634 \emph default
15635 ).
15636  Chapterprecis does exactly this.
15637  It is therefore only sensible below a chapter.
15638 \end_layout
15639
15640 \begin_layout Description
15641 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15642  The epigraph environment provides an elegant way of typesetting such a
15643  motto.
15644  The motto itself (text) and its author (source) are divided by a short
15645  line.
15646  Unfortunately, we have to fool \SpecialChar LyX
15647  a bit here again, since the environment
15648  needs two arguments (text and source).
15649  In this case, we have to use curly brackets (in \SpecialChar TeX
15650  mode) between the two
15651  arguments: 
15652 \emph on
15653 <smart slogan>
15654 \emph default
15655  
15656 \family typewriter
15657 }{
15658 \family default
15659  
15660 \emph on
15661 <author of the slogan>.
15662 \end_layout
15663
15664 \begin_layout Description
15665 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15666  complex figurative poems).
15667  \SpecialChar LyX
15668  can only support a few of them.
15669  One is poemtitle, which is a centered title for poems, which will also
15670  be added to the table of contents (verse is the standard environment for
15671  poems.
15672  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15673  code,
15674  because they have to be nested inside regular verse environments, which
15675  is not possible with \SpecialChar LyX
15676 ).
15677 \end_layout
15678
15679 \begin_layout Description
15680 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15681 \end_layout
15682
15683 \begin_layout Section
15684 Article (mwart), book (mwbk) and report (mwrep)
15685 \begin_inset Argument status
15686 status collapsed
15687
15688 \begin_layout Plain Layout
15689 The 
15690 \family typewriter
15691 mw
15692 \family default
15693  Classes
15694 \end_layout
15695
15696 \end_inset
15697
15698
15699 \end_layout
15700
15701 \begin_layout Standard
15702 by 
15703 \noun on
15704 Tomasz Luczak
15705 \end_layout
15706
15707 \begin_layout Standard
15708 The \SpecialChar LyX
15709  document classes 
15710 \emph on
15711 article (mwart)
15712 \emph default
15713
15714 \emph on
15715 report (mwrep)
15716 \emph default
15717  and 
15718 \emph on
15719 book
15720 \emph default
15721  
15722 \emph on
15723 (mwbk)
15724 \emph default
15725  correspond to the \SpecialChar LaTeX
15726  document classes 
15727 \family typewriter
15728 mwart.cls
15729 \family default
15730
15731 \family typewriter
15732 mwrep.cls
15733 \family default
15734  and 
15735 \family typewriter
15736 mwbk.cls
15737 \family default
15738 , resp.
15739  They are replacements for the standard document classes 
15740 \family typewriter
15741 article.cls
15742 \family default
15743
15744 \family typewriter
15745 report.cls
15746 \family default
15747  and 
15748 \family typewriter
15749 book.cls
15750 \family default
15751 , resp., and fit better to Polish typography conventions in a number of points.
15752  
15753 \end_layout
15754
15755 \begin_layout Standard
15756 Basic differences:
15757 \end_layout
15758
15759 \begin_layout Itemize
15760 Unnumbered titles (with star, e.
15761 \begin_inset space \thinspace{}
15762 \end_inset
15763
15764 g.
15765 \begin_inset space \space{}
15766 \end_inset
15767
15768
15769 \family sans
15770 Section*
15771 \family default
15772 ) are added into table of contents,
15773 \end_layout
15774
15775 \begin_layout Itemize
15776 Additional page styles:
15777 \begin_inset Separator parbreak
15778 \end_inset
15779
15780
15781 \end_layout
15782
15783 \begin_deeper
15784 \begin_layout Description
15785 uheadings header with separated lines,
15786 \end_layout
15787
15788 \begin_layout Description
15789 myheadings custom header, contents headers via commands: 
15790 \family typewriter
15791
15792 \backslash
15793 markright
15794 \family default
15795  and 
15796 \family typewriter
15797
15798 \backslash
15799 markboth
15800 \family default
15801 ,
15802 \end_layout
15803
15804 \begin_layout Description
15805 myuheadings custom header with separated lines,
15806 \end_layout
15807
15808 \begin_layout Description
15809 outer page number is placed on outer side of page
15810 \end_layout
15811
15812 \end_deeper
15813 \begin_layout Itemize
15814 Options 
15815 \begin_inset Separator parbreak
15816 \end_inset
15817
15818
15819 \end_layout
15820
15821 \begin_deeper
15822 \begin_layout Description
15823 rmheadings serif titles — default,
15824 \end_layout
15825
15826 \begin_layout Description
15827 sfheadings sansserif titles,
15828 \end_layout
15829
15830 \begin_layout Description
15831 authortitle on title page first placed is author next title — default,
15832 \end_layout
15833
15834 \begin_layout Description
15835 titleauthor on title page first placed is title next author,
15836 \end_layout
15837
15838 \begin_layout Description
15839 withmarginpar reserve place on page for margins.
15840 \end_layout
15841
15842 \end_deeper
15843 \begin_layout Section
15844 Paper
15845 \end_layout
15846
15847 \begin_layout Standard
15848 The document class 
15849 \family sans
15850 paper
15851 \family default
15852  provides an alternative to the standard 
15853 \family sans
15854 article
15855 \family default
15856  class.
15857  It provides similar functionality, but you might prefer this layout with
15858  sans serif sections, headings, and more.
15859 \end_layout
15860
15861 \begin_layout Section
15862 Rev\SpecialChar TeX
15863 4
15864 \end_layout
15865
15866 \begin_layout Standard
15867 by 
15868 \noun on
15869 Amir Karger
15870 \end_layout
15871
15872 \begin_layout Standard
15873 \begin_inset VSpace bigskip
15874 \end_inset
15875
15876
15877 \end_layout
15878
15879 \begin_layout Standard
15880 \noindent
15881 The 
15882 \family sans
15883 Revtex
15884 \begin_inset space ~
15885 \end_inset
15886
15887 4
15888 \family default
15889  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
15890  4.0 (the 
15891 \begin_inset Formula $\beta$
15892 \end_inset
15893
15894  release of May, 1999) class.
15895 \end_layout
15896
15897 \begin_layout Standard
15898 \SpecialChar LyX
15899  has a 
15900 \family sans
15901 Revtex
15902 \family default
15903  textclass, which works with Rev\SpecialChar TeX
15904  3.1.
15905  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
15906  2.09.
15907  That means that it doesn't interact very well with \SpecialChar LyX
15908 , which requires \SpecialChar LaTeX2e
15909 , although
15910  it has been kludged to work.
15911  Since Rev\SpecialChar TeX
15912  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
15913 , \SpecialChar LyX
15914  with the
15915  
15916 \family sans
15917 Rev\SpecialChar TeX
15918
15919 \begin_inset space ~
15920 \end_inset
15921
15922 4
15923 \family default
15924  textclass should also be pretty easy to use.
15925 \end_layout
15926
15927 \begin_layout Standard
15928 These documents are supposed to be used in 
15929 \emph on
15930 addition
15931 \emph default
15932  to the Rev\SpecialChar TeX
15933  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
15934  macros,
15935  and assume you'll know what to put in the preamble if necessary.
15936 \end_layout
15937
15938 \begin_layout Subsection
15939 Installation
15940 \end_layout
15941
15942 \begin_layout Standard
15943 All you need to do is install Rev\SpecialChar TeX
15944  4, as described in the package's README
15945  file.
15946  The package can be found at The Rev\SpecialChar TeX
15947  4 Web Site 
15948 \begin_inset Flex URL
15949 status collapsed
15950
15951 \begin_layout Plain Layout
15952
15953 http://publish.aps.org/revtex4/
15954 \end_layout
15955
15956 \end_inset
15957
15958 .
15959  Install it somewhere that \SpecialChar LaTeX
15960  can see it.
15961  Test it by trying to \SpecialChar LaTeX
15962  a short Rev\SpecialChar TeX
15963  4 document in some random directory (i.
15964 \begin_inset space \thinspace{}
15965 \end_inset
15966
15967 e.
15968 \begin_inset space \space{}
15969 \end_inset
15970
15971 not the directory where you installed the class file.) Then, if you reconfigure
15972  \SpecialChar LyX
15973 , it will find the class file and let you use the Rev\SpecialChar TeX
15974 4 textclass.
15975 \end_layout
15976
15977 \begin_layout Standard
15978 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
15979  4 document
15980  using 
15981 \family typewriter
15982 tex2lyx
15983 \family default
15984 , or to use the 
15985 \family sans
15986 Revtex
15987 \begin_inset space ~
15988 \end_inset
15989
15990 4
15991 \family default
15992  template, found in the templates directory.
15993 \end_layout
15994
15995 \begin_layout Subsection
15996 Preamble Matter
15997 \end_layout
15998
15999 \begin_layout Standard
16000 Optional arguments to 
16001 \family typewriter
16002
16003 \backslash
16004 documentclass
16005 \family default
16006 , like 
16007 \begin_inset Quotes eld
16008 \end_inset
16009
16010 preprint
16011 \begin_inset Quotes erd
16012 \end_inset
16013
16014  and 
16015 \begin_inset Quotes eld
16016 \end_inset
16017
16018 aps
16019 \begin_inset Quotes erd
16020 \end_inset
16021
16022 , go in the 
16023 \family sans
16024 E
16025 \bar under
16026 x
16027 \bar default
16028 tra
16029 \begin_inset space ~
16030 \end_inset
16031
16032 Options
16033 \family default
16034  field in the 
16035 \family sans
16036 Document
16037 \begin_inset space ~
16038 \end_inset
16039
16040 Layout
16041 \family default
16042  dialog, as usual.
16043  Remember that in Rev\SpecialChar TeX
16044 , at least one optional argument is required! 
16045 \end_layout
16046
16047 \begin_layout Standard
16048 Other preamble matter, like 
16049 \family typewriter
16050
16051 \backslash
16052 draft
16053 \family default
16054  etc.
16055 \begin_inset space ~
16056 \end_inset
16057
16058 goes in the 
16059 \family sans
16060 \SpecialChar LaTeX
16061
16062 \begin_inset space ~
16063 \end_inset
16064
16065 Preamble
16066 \family default
16067  dialog, also as usual.
16068 \end_layout
16069
16070 \begin_layout Subsection
16071 Layouts
16072 \end_layout
16073
16074 \begin_layout Standard
16075 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16076 4.0.
16077  For example, the Email layout corresponds to 
16078 \family typewriter
16079
16080 \backslash
16081 email{}
16082 \family default
16083 .
16084  Note that (at least as of Rev\SpecialChar TeX
16085  4.0 Beta), the 
16086 \family sans
16087 Address
16088 \family default
16089  and 
16090 \family sans
16091 Affiliation
16092 \family default
16093  layouts are exactly equivalent, so you shouldn't need to use both.
16094 \begin_inset Foot
16095 status collapsed
16096
16097 \begin_layout Plain Layout
16098 In case you're curious, both were included so that 
16099 \family typewriter
16100 tex2lyx
16101 \family default
16102  would be able to translate both 
16103 \family typewriter
16104
16105 \backslash
16106 address
16107 \family default
16108  and 
16109 \family typewriter
16110
16111 \backslash
16112 affiliation
16113 \family default
16114 .
16115 \end_layout
16116
16117 \end_inset
16118
16119
16120 \end_layout
16121
16122 \begin_layout Subsection
16123 Important Notes
16124 \end_layout
16125
16126 \begin_layout Standard
16127 There are a couple of important unique aspects of Rev\SpecialChar TeX
16128  4 which might cause
16129  bugs that will be even more confusing in \SpecialChar LyX
16130 .
16131 \end_layout
16132
16133 \begin_layout Standard
16134 In Rev\SpecialChar TeX
16135 , the 
16136 \family typewriter
16137
16138 \backslash
16139 thanks
16140 \family default
16141  command goes 
16142 \emph on
16143 outside
16144 \emph default
16145  the 
16146 \family typewriter
16147
16148 \backslash
16149 author
16150 \family default
16151  command.
16152  The \SpecialChar LyX
16153  equivalent is that there is a separate Thanks layout.
16154  Do 
16155 \emph on
16156 not
16157 \emph default
16158  write footnotes in the 
16159 \family sans
16160 Author
16161 \family default
16162  layout, or weird things may happen.
16163  See the Rev\SpecialChar TeX
16164  4 documentation for more details.
16165 \end_layout
16166
16167 \begin_layout Standard
16168 Also, the 
16169 \family sans
16170 Author
16171 \begin_inset space ~
16172 \end_inset
16173
16174 Email
16175 \family default
16176
16177 \family sans
16178 Author
16179 \begin_inset space ~
16180 \end_inset
16181
16182 URL
16183 \family default
16184 , and 
16185 \family sans
16186 Thanks
16187 \family default
16188  layouts must be placed 
16189 \emph on
16190 in between
16191 \emph default
16192  the 
16193 \family sans
16194 Author
16195 \family default
16196  layout and the corresponding 
16197 \family sans
16198 Address
16199 \family default
16200  (or equivalent 
16201 \family sans
16202 Affiliation
16203 \family default
16204 ) layout.
16205  If you put the 
16206 \family sans
16207 Thanks
16208 \family default
16209  after the 
16210 \family sans
16211 Address
16212 \family default
16213 , the \SpecialChar LaTeX
16214  won't compile.
16215 \end_layout
16216
16217 \begin_layout Subsection
16218 Drawbacks
16219 \end_layout
16220
16221 \begin_layout Standard
16222 The main problem with this layout is that you can't use the optional arguments
16223  to layouts like Email and Title.
16224  (The problem is not unique to this layout; you can't use optional arguments
16225  to the Section layouts either.) This means that after you export that file
16226  to \SpecialChar LaTeX
16227  (which you'll need to do eventually to send it in to APS), you'll need
16228  to edit the \SpecialChar LaTeX
16229  file with a text editor to add the optional arguments to set,
16230  e.
16231 \begin_inset space \thinspace{}
16232 \end_inset
16233
16234 g.
16235 \begin_inset space \space{}
16236 \end_inset
16237
16238 the running title for the page headers.
16239  Lacking these layouts makes the 
16240 \family typewriter
16241
16242 \backslash
16243 altaffiliation
16244 \family default
16245  (and the equivalent 
16246 \family typewriter
16247
16248 \backslash
16249 altaddress
16250 \family default
16251 ) useless, so the corresponding layouts don't exist, and will have to be
16252  added by hand.
16253 \begin_inset Foot
16254 status collapsed
16255
16256 \begin_layout Plain Layout
16257
16258 \emph on
16259 Note from JMarc:
16260 \emph default
16261  actually, \SpecialChar LyX
16262  1.3.0 supports some forms of optional arguments, but this layout
16263  has not been updated yet to take advantage of it.
16264 \end_layout
16265
16266 \end_inset
16267
16268  
16269 \end_layout
16270
16271 \begin_layout Section
16272 Springer Journals (
16273 \family sans
16274 svjour
16275 \family default
16276 )
16277 \end_layout
16278
16279 \begin_layout Standard
16280 by 
16281 \noun on
16282 Martin Vermeer
16283 \end_layout
16284
16285 \begin_layout Subsection
16286 Description
16287 \end_layout
16288
16289 \begin_layout Standard
16290 These are the layout files for some of the journal formats used by Springer
16291  Verlag and listed on 
16292 \begin_inset Flex URL
16293 status collapsed
16294
16295 \begin_layout Plain Layout
16296
16297 http://www.springer.de/author/tex/help-journals.html
16298 \end_layout
16299
16300 \end_inset
16301
16302 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16303  now!).
16304  It is a modular system: the things common to all journals are implemented
16305  in 
16306 \family typewriter
16307 svjour.inc
16308 \family default
16309 , which journal-specific layout files (such as, e.
16310 \begin_inset space \thinspace{}
16311 \end_inset
16312
16313 g.
16314 \begin_inset space \space{}
16315 \end_inset
16316
16317
16318 \family typewriter
16319 svjog.layout
16320 \family default
16321  for Journal of Geodesy) can include.
16322 \end_layout
16323
16324 \begin_layout Standard
16325 This means that implementing support for any other Springer journal on this
16326  list is as simple as writing your own 
16327 \family typewriter
16328 sv
16329 \family default
16330 <myjournal>
16331 \family typewriter
16332 .layout
16333 \family default
16334  file following the outline given in 
16335 \family typewriter
16336 svjog.layout
16337 \family default
16338 .
16339  
16340 \end_layout
16341
16342 \begin_layout Standard
16343 It is reasonably well tested only for the Journal of Geodesy.
16344  
16345 \family typewriter
16346 svjour
16347 \family default
16348  and 
16349 \family typewriter
16350 svjog
16351 \family default
16352  come with the standard \SpecialChar LyX
16353  distribution.
16354  Install the relevant class file (downloaded from Springer) in a proper
16355  directory, reconfigure \SpecialChar LaTeX
16356  (in the te\SpecialChar TeX
16357  case by running 
16358 \family typewriter
16359 texhash
16360 \family default
16361 , as root if necessary — doesn't \SpecialChar LyX
16362  take care of this?), reconfigure \SpecialChar LyX
16363  and
16364  it should work.
16365 \end_layout
16366
16367 \begin_layout Subsection
16368 New styles
16369 \end_layout
16370
16371 \begin_layout Standard
16372 A large number of theorem-like styles — 
16373 \family sans
16374 Claim, Conjecture,
16375 \family default
16376  
16377 \family sans
16378 \SpecialChar ldots
16379 Theorem
16380 \family default
16381 .
16382 \end_layout
16383
16384 \begin_layout Standard
16385
16386 \family sans
16387 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16388 _Title, Author_Running, Institute,
16389  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16390 \family default
16391 .
16392  See the Springer class file documentation for details.
16393 \end_layout
16394
16395 \begin_layout Subsection
16396 Supported journals
16397 \end_layout
16398
16399 \begin_layout Itemize
16400
16401 \emph on
16402 Journal of Geodesy
16403 \emph default
16404
16405 \family typewriter
16406 svjog.layout
16407 \family default
16408  — Martin Vermeer
16409 \end_layout
16410
16411 \begin_layout Itemize
16412
16413 \emph on
16414 Probability Theory and Related Fields
16415 \emph default
16416
16417 \family typewriter
16418 svprobth.layout
16419 \family default
16420  — Jean-Marc Lasgouttes
16421 \end_layout
16422
16423 \begin_layout Standard
16424 Add your own, it isn't so hard!
16425 \end_layout
16426
16427 \begin_layout Subsection
16428 Credits
16429 \end_layout
16430
16431 \begin_layout Standard
16432 These files are partly based on the older 
16433 \family typewriter
16434 ejour2.layout
16435 \family default
16436 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16437  2.09 style
16438  file from Springer.
16439  All this, and the 
16440 \family typewriter
16441 ejour2
16442 \family default
16443  layout, are now defunct.
16444  Jean-Marc Lasgouttes helped out big in making me find my way around the
16445  \SpecialChar LyX
16446  layout file mechanism.
16447 \end_layout
16448
16449 \begin_layout Subsection
16450 Bugs
16451 \end_layout
16452
16453 \begin_layout Standard
16454 Probably.
16455  But probably less than in the old hacked-\SpecialChar LaTeX
16456  
16457 \family typewriter
16458 ejour2
16459 \family default
16460 .
16461 \end_layout
16462
16463 \begin_layout Standard
16464 Limitations e.
16465 \begin_inset space \thinspace{}
16466 \end_inset
16467
16468 g.: does not display the number for theorem-like layouts, just #.
16469 \end_layout
16470
16471 \begin_layout Section
16472 Slides [aka 
16473 \noun on
16474 Sli\SpecialChar TeX
16475
16476 \noun default
16477 ]
16478 \begin_inset CommandInset label
16479 LatexCommand label
16480 name "sec:slitex"
16481
16482 \end_inset
16483
16484
16485 \end_layout
16486
16487 \begin_layout Standard
16488 by 
16489 \noun on
16490 John Weiss
16491 \noun default
16492  
16493 \end_layout
16494
16495 \begin_layout Subsection
16496 Introduction
16497 \end_layout
16498
16499 \begin_layout Standard
16500 This section describes how to use \SpecialChar LyX
16501  to make slides for overhead projectors.
16502  There are two document classes that can do this: the default slides class
16503  and the 
16504 \family sans
16505 Foil\SpecialChar TeX
16506
16507 \family default
16508  slides class.
16509  This section documents the former.
16510 \end_layout
16511
16512 \begin_layout Standard
16513 I'm going to say this again, nice and clear, so that there's no misunderstanding
16514 :
16515 \end_layout
16516
16517 \begin_layout Standard
16518 \begin_inset VSpace bigskip
16519 \end_inset
16520
16521
16522 \end_layout
16523
16524 \begin_layout Standard
16525 \align center
16526
16527 \size large
16528 This section documents the class 
16529 \begin_inset Quotes eld
16530 \end_inset
16531
16532
16533 \family sans
16534 slides (default)
16535 \family default
16536
16537 \begin_inset Quotes erd
16538 \end_inset
16539
16540  
16541 \emph on
16542 only.
16543 \end_layout
16544
16545 \begin_layout Standard
16546 \begin_inset VSpace bigskip
16547 \end_inset
16548
16549
16550 \end_layout
16551
16552 \begin_layout Standard
16553 If you're looking for the documentation for 
16554 \begin_inset Quotes eld
16555 \end_inset
16556
16557
16558 \family sans
16559 slides (Foil\SpecialChar TeX
16560 )
16561 \family default
16562
16563 \begin_inset Quotes erd
16564 \end_inset
16565
16566 , check out section
16567 \begin_inset space ~
16568 \end_inset
16569
16570
16571 \begin_inset CommandInset ref
16572 LatexCommand ref
16573 reference "sec:foiltex"
16574
16575 \end_inset
16576
16577 .
16578  The 
16579 \family sans
16580 foils
16581 \family default
16582  class [
16583 \begin_inset Quotes eld
16584 \end_inset
16585
16586
16587 \family sans
16588 slides (Foil\SpecialChar TeX
16589 )
16590 \family default
16591
16592 \begin_inset Quotes erd
16593 \end_inset
16594
16595 ] is actually somewhat better than the default 
16596 \family sans
16597 slides
16598 \family default
16599  class,
16600 \begin_inset Foot
16601 status collapsed
16602
16603 \begin_layout Plain Layout
16604 \SpecialChar ldots
16605 or so I've been told repeatedly by its advocates.
16606  Having never used it, I have no idea if this claim is true or not.
16607 \end_layout
16608
16609 \end_inset
16610
16611  which this section documents.
16612 \end_layout
16613
16614 \begin_layout Standard
16615 This class is the \SpecialChar LaTeX2e
16616  improvement of the old 
16617 \noun on
16618 Sli\SpecialChar TeX
16619
16620 \noun default
16621  package.
16622  Every \SpecialChar LaTeX2e
16623  distribution includes this class [which I'll just refer to as 
16624 \begin_inset Quotes eld
16625 \end_inset
16626
16627
16628 \family sans
16629 slides
16630 \family default
16631
16632 \begin_inset Quotes erd
16633 \end_inset
16634
16635  from now on], so you're bound to have it.
16636  As I noted earlier, there are other classes, such as 
16637 \family sans
16638 foils
16639 \family default
16640 , which also produce slides for overhead projectors and do a better job
16641  at it.
16642  However, there are some things which 
16643 \family sans
16644 slides
16645 \family default
16646  can do which the others can't, such as generate overlays.
16647  Read on to learn more!
16648 \end_layout
16649
16650 \begin_layout Subsection
16651 Getting Started
16652 \begin_inset CommandInset label
16653 LatexCommand label
16654 name "sec:slidesetup"
16655
16656 \end_inset
16657
16658
16659 \end_layout
16660
16661 \begin_layout Standard
16662 Obviously, to use this document class, you need to select 
16663 \begin_inset Quotes eld
16664 \end_inset
16665
16666
16667 \family sans
16668 slides (default)
16669 \family default
16670
16671 \begin_inset Quotes erd
16672 \end_inset
16673
16674  from the class list in the 
16675 \family sans
16676 Document\SpecialChar menuseparator
16677 Settings
16678 \family default
16679  dialog.
16680  There are some other special things you should know about this class:
16681 \end_layout
16682
16683 \begin_layout Itemize
16684 Don't bother changing the options 
16685 \family sans
16686 Sides and Columns
16687 \family default
16688 .
16689  They're not supported by the 
16690 \family sans
16691 slides
16692 \family default
16693  class, anyways.
16694 \end_layout
16695
16696 \begin_layout Itemize
16697 The option 
16698 \family sans
16699 Page
16700 \begin_inset space ~
16701 \end_inset
16702
16703 style
16704 \family default
16705  behaves a bit differently for this class.
16706  The possible choices and what they do are as follows:
16707 \begin_inset Separator parbreak
16708 \end_inset
16709
16710
16711 \end_layout
16712
16713 \begin_deeper
16714 \begin_layout Description
16715
16716 \family sans
16717 plain
16718 \family default
16719  The final output contains page numbers in the lower right corner.
16720 \end_layout
16721
16722 \begin_layout Description
16723
16724 \family sans
16725 headings
16726 \family default
16727  Like 
16728 \family sans
16729 plain
16730 \family default
16731 , but also prints out any time markers you've put in.
16732  This is the default.
16733 \end_layout
16734
16735 \begin_layout Description
16736
16737 \family sans
16738 empty
16739 \family default
16740  The final output contains no page numbers, time markers, or alignment markers.
16741 \end_layout
16742
16743 \end_deeper
16744 \begin_layout Itemize
16745 The 
16746 \family sans
16747 slides
16748 \family default
16749  class has an extra option: 
16750 \family typewriter
16751 clock
16752 \family default
16753 .
16754  To use it, put 
16755 \begin_inset Quotes eld
16756 \end_inset
16757
16758
16759 \family typewriter
16760 clock
16761 \family default
16762
16763 \begin_inset Quotes erd
16764 \end_inset
16765
16766  in the extra class options.
16767 \begin_inset Separator parbreak
16768 \end_inset
16769
16770
16771 \end_layout
16772
16773 \begin_deeper
16774 \begin_layout Standard
16775 Using this options allows you to add time markers to 
16776 \family sans
16777 Note
16778 \family default
16779 s.
16780  See section
16781 \begin_inset space ~
16782 \end_inset
16783
16784
16785 \begin_inset CommandInset ref
16786 LatexCommand ref
16787 reference "sec:slideNote"
16788
16789 \end_inset
16790
16791  for more details.
16792 \end_layout
16793
16794 \end_deeper
16795 \begin_layout Standard
16796 You can also use the template file 
16797 \begin_inset Quotes eld
16798 \end_inset
16799
16800
16801 \family typewriter
16802 slides.lyx
16803 \family default
16804
16805 \begin_inset Quotes erd
16806 \end_inset
16807
16808  to automatically set up a document to use the 
16809 \family sans
16810 slides
16811 \family default
16812  class [using 
16813 \family sans
16814 File\SpecialChar menuseparator
16815 New
16816 \begin_inset space ~
16817 \end_inset
16818
16819 from
16820 \begin_inset space ~
16821 \end_inset
16822
16823 Template
16824 \family default
16825  to open your new document].
16826  The template file also contains some examples of the special paragraph
16827  environments used by this class.
16828  I'll describe those next.
16829 \end_layout
16830
16831 \begin_layout Subsection
16832 Paragraph Environments
16833 \end_layout
16834
16835 \begin_layout Subsubsection
16836 Supported Environments
16837 \end_layout
16838
16839 \begin_layout Standard
16840 The first thing you'll notice when you start up a new 
16841 \family sans
16842 slides
16843 \family default
16844  document is the font size and type: it's the equivalent of the size 
16845 \begin_inset Quotes eld
16846 \end_inset
16847
16848
16849 \family sans
16850 Largest
16851 \family default
16852
16853 \begin_inset Quotes erd
16854 \end_inset
16855
16856  in the 
16857 \family sans
16858 Sans
16859 \begin_inset space ~
16860 \end_inset
16861
16862 Serif
16863 \family default
16864  font.
16865  This is also what's used in the output.
16866  Think of this as a 
16867 \begin_inset Quotes eld
16868 \end_inset
16869
16870 visual cue
16871 \begin_inset Quotes erd
16872 \end_inset
16873
16874  to remind you that this is a slide.
16875  Your final slides will use a larger font; ergo, you'll have less space.
16876  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
16877 \end_layout
16878
16879 \begin_layout Standard
16880 The next thing that becomes obvious is the changes to the paragraph environment
16881  pull-down box [at the far-left end of the toolbar].
16882  Most of the paragraph environments you're used to seeing are missing.
16883  There are also five new ones.
16884  That's because the 
16885 \family sans
16886 slides
16887 \family default
16888  class itself only supports certain paragraph environments:
16889 \end_layout
16890
16891 \begin_layout Itemize
16892
16893 \family sans
16894 Standard
16895 \end_layout
16896
16897 \begin_layout Itemize
16898
16899 \family sans
16900 Itemize
16901 \end_layout
16902
16903 \begin_layout Itemize
16904
16905 \family sans
16906 Enumerate
16907 \end_layout
16908
16909 \begin_layout Itemize
16910
16911 \family sans
16912 Description
16913 \end_layout
16914
16915 \begin_layout Itemize
16916
16917 \family sans
16918 List
16919 \end_layout
16920
16921 \begin_layout Itemize
16922
16923 \family sans
16924 Quotation
16925 \end_layout
16926
16927 \begin_layout Itemize
16928
16929 \family sans
16930 Quote
16931 \end_layout
16932
16933 \begin_layout Itemize
16934
16935 \family sans
16936 Verse
16937 \end_layout
16938
16939 \begin_layout Itemize
16940
16941 \family sans
16942 Caption
16943 \end_layout
16944
16945 \begin_layout Itemize
16946
16947 \family sans
16948 \SpecialChar LyX
16949 -Code
16950 \end_layout
16951
16952 \begin_layout Itemize
16953
16954 \family sans
16955 Comment
16956 \end_layout
16957
16958 \begin_layout Standard
16959 All of the other standard environments, including the section-heading environmen
16960 ts, aren't used in the 
16961 \family sans
16962 slides
16963 \family default
16964  class.
16965 \end_layout
16966
16967 \begin_layout Standard
16968 On the other hand, you'll notice the following new environments:
16969 \end_layout
16970
16971 \begin_layout Itemize
16972
16973 \family sans
16974 Slide
16975 \end_layout
16976
16977 \begin_layout Itemize
16978
16979 \family sans
16980 Overlay
16981 \end_layout
16982
16983 \begin_layout Itemize
16984
16985 \family sans
16986 Note
16987 \end_layout
16988
16989 \begin_layout Itemize
16990
16991 \family sans
16992 InvisibleText
16993 \end_layout
16994
16995 \begin_layout Itemize
16996
16997 \family sans
16998 VisibleText
16999 \end_layout
17000
17001 \begin_layout Standard
17002 These five are kind of quirky, due to a 
17003 \begin_inset Quotes eld
17004 \end_inset
17005
17006 feature
17007 \begin_inset Quotes erd
17008 \end_inset
17009
17010  in \SpecialChar LyX
17011 .
17012  You see, \SpecialChar LyX
17013  doesn't permit you to nest any other paragraph environment into
17014  an empty environment.
17015  Now, that's fine and dandy, but it means that you wouldn't be able to start
17016  a slide with anything except plain text.
17017  To deal with this, I've performed a little 
17018 \begin_inset Quotes eld
17019 \end_inset
17020
17021 \SpecialChar LaTeX
17022  magic.
17023 \begin_inset Quotes erd
17024 \end_inset
17025
17026  
17027 \end_layout
17028
17029 \begin_layout Subsubsection
17030 Quirks of the New Environments
17031 \begin_inset CommandInset label
17032 LatexCommand label
17033 name "sec:slideQuirk"
17034
17035 \end_inset
17036
17037
17038 \end_layout
17039
17040 \begin_layout Standard
17041 All five of the new paragraph environments are somewhat quirky due to inherent
17042  limitiations in the current version of \SpecialChar LyX
17043 .
17044  As I just mentioned, \SpecialChar LyX
17045  forbids environments that begin with another environment.
17046  To get around this, the 
17047 \family sans
17048 Slide
17049 \family default
17050  environment isn't a paragraph environment as described in the 
17051 \emph on
17052 User's Guide
17053 \emph default
17054 .
17055  
17056 \end_layout
17057
17058 \begin_layout Standard
17059 You should consider 
17060 \family sans
17061 Slide
17062 \family default
17063
17064 \family sans
17065 Overlay
17066 \family default
17067 , and 
17068 \family sans
17069 Note
17070 \family default
17071  to be 
17072 \begin_inset Quotes eld
17073 \end_inset
17074
17075 pseudo-environments.
17076 \begin_inset Quotes erd
17077 \end_inset
17078
17079  They look like a section heading or a 
17080 \begin_inset Quotes eld
17081 \end_inset
17082
17083
17084 \family sans
17085 Caption
17086 \family default
17087 ,
17088 \begin_inset Quotes erd
17089 \end_inset
17090
17091  but really begin a [and, if necessary, end the previous] paragraph environment.
17092  Likewise, treat 
17093 \family sans
17094 InvisibleText
17095 \family default
17096  and 
17097 \family sans
17098 VisibleText
17099 \family default
17100  as 
17101 \begin_inset Quotes eld
17102 \end_inset
17103
17104 pseudo-commands.
17105 \begin_inset Quotes erd
17106 \end_inset
17107
17108  These two perform some action.
17109 \end_layout
17110
17111 \begin_layout Standard
17112 A common feature of all five environments, 
17113 \family sans
17114 Slide
17115 \family default
17116
17117 \family sans
17118 Overlay
17119 \family default
17120
17121 \family sans
17122 Note
17123 \family default
17124
17125 \family sans
17126 InvisibleText
17127 \family default
17128  and 
17129 \family sans
17130 VisibleText
17131 \family default
17132 , is a rather long-ish label.
17133  The text following this label — ordinarily the contents of the paragraph
17134  environment — is utterly irrelevant for 
17135 \family sans
17136 Slide
17137 \family default
17138
17139 \family sans
17140 Overlay
17141 \family default
17142
17143 \family sans
17144 Note
17145 \family default
17146
17147 \family sans
17148 InvisibleText
17149 \family default
17150  and 
17151 \family sans
17152 VisibleText
17153 \family default
17154 .
17155  \SpecialChar LyX
17156  completely ignores it.
17157  In fact, you can leave these five environments completely empty.
17158  
17159 \end_layout
17160
17161 \begin_layout Standard
17162 While you don't 
17163 \emph on
17164 have
17165 \emph default
17166  to put any text after the rather long-ish label, you might want to.
17167  This could be a short description of the contents of the 
17168 \family sans
17169 Slide
17170 \family default
17171 , for example.
17172  In that case, enter your descriptive comment and hit 
17173 \family sans
17174 Return
17175 \family default
17176  as you normally would.
17177 \end_layout
17178
17179 \begin_layout Standard
17180 If, on the other hand, you don't want to enter any descriptive text, you'll
17181  hit another \SpecialChar LyX
17182  quirk.
17183  \SpecialChar LyX
17184 , like nature, abhors a vacuum, and will not let you start a new paragraph
17185  environment until you put something in the old one.
17186  So, do this:
17187 \end_layout
17188
17189 \begin_layout Itemize
17190 Start entering the text that will 
17191 \emph on
17192 follow
17193 \emph default
17194  the new 
17195 \family sans
17196 Slide
17197 \family default
17198
17199 \family sans
17200 Overlay
17201 \family default
17202
17203 \family sans
17204 Note
17205 \family default
17206
17207 \family sans
17208 InvisibleText
17209 \family default
17210  or 
17211 \family sans
17212 VisibleText
17213 \family default
17214 .
17215  
17216 \end_layout
17217
17218 \begin_layout Itemize
17219 Now move to the beginning of that paragraph.
17220  
17221 \end_layout
17222
17223 \begin_layout Itemize
17224 Next, hit 
17225 \family sans
17226 Return
17227 \family default
17228 .
17229  
17230 \end_layout
17231
17232 \begin_layout Itemize
17233 Finally, change this new, empty paragraph to a 
17234 \family sans
17235 Slide
17236 \family default
17237
17238 \family sans
17239 Overlay
17240 \family default
17241
17242 \family sans
17243 Note
17244 \family default
17245
17246 \family sans
17247 InvisibleText
17248 \family default
17249  or 
17250 \family sans
17251 VisibleText
17252 \family default
17253 .
17254  
17255 \end_layout
17256
17257 \begin_layout Standard
17258 Some future version of \SpecialChar LyX
17259  will, hopefully, resolve this quirkiness\SpecialChar ldots
17260
17261 \end_layout
17262
17263 \begin_layout Subsection
17264 Making a Presentation with 
17265 \family sans
17266 Slide
17267 \family default
17268
17269 \family sans
17270 Overlay
17271 \family default
17272  and 
17273 \family sans
17274 Note
17275 \end_layout
17276
17277 \begin_layout Subsubsection
17278 Using the 
17279 \family sans
17280 Slide
17281 \family default
17282  Environment
17283 \end_layout
17284
17285 \begin_layout Standard
17286 If you're expecting this section to teach you how to actually make a presentatio
17287 n, you'll be sorely disappointed.
17288  Naturally, I'll describe all of the ways the 
17289 \family sans
17290 slides
17291 \family default
17292  class can assist you in preparing the materials for a presentation.
17293  Filling in the contents, however, is up to you.
17294  [Then again, that 
17295 \emph on
17296 is
17297 \emph default
17298  the \SpecialChar LyX
17299  philosophy.]
17300 \end_layout
17301
17302 \begin_layout Standard
17303 Choosing the 
17304 \family sans
17305 Slide
17306 \family default
17307  environment [in the manner described in section
17308 \begin_inset space ~
17309 \end_inset
17310
17311
17312 \begin_inset CommandInset ref
17313 LatexCommand ref
17314 reference "sec:slideQuirk"
17315
17316 \end_inset
17317
17318 ] tells \SpecialChar LyX
17319  to begin a new slide [duh].
17320  The label for this environment/
17321 \begin_inset Quotes erd
17322 \end_inset
17323
17324 pseudo-command
17325 \begin_inset Quotes erd
17326 \end_inset
17327
17328  is an 
17329 \begin_inset Quotes eld
17330 \end_inset
17331
17332 ASCII line,
17333 \begin_inset Quotes erd
17334 \end_inset
17335
17336  in cool blue, followed by the label, 
17337 \begin_inset Quotes eld
17338 \end_inset
17339
17340 NewSlide:
17341 \begin_inset Quotes erd
17342 \end_inset
17343
17344 .
17345  Any text or paragraph environments that follow this one go on the new slide.
17346  It's that simple.
17347 \end_layout
17348
17349 \begin_layout Standard
17350 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17351
17352  (this can be specified in the 
17353 \family sans
17354 Paragraph Layout
17355 \family default
17356  dialog).
17357  In fact, you'll want to, once you finish entering the contents of one slide.
17358  If you've entered more text than can physically fit on a slide, the extra
17359  overflows onto a new slide.
17360  I don't recommend doing this, however, since the overflow slide won't have
17361  any page number on it.
17362  Furthermore, it may interfere with any 
17363 \family sans
17364 Overlay
17365 \family default
17366  you've made to accompany the oversized 
17367 \family sans
17368 Slide
17369 \family default
17370 .
17371 \end_layout
17372
17373 \begin_layout Standard
17374 The 
17375 \family sans
17376 Overlay
17377 \family default
17378  and 
17379 \family sans
17380 Note
17381 \family default
17382  environments work the same way as the 
17383 \family sans
17384 Slide
17385 \family default
17386  environment.
17387  They both create an 
17388 \begin_inset Quotes eld
17389 \end_inset
17390
17391 ASCII line
17392 \begin_inset Quotes erd
17393 \end_inset
17394
17395  followed by a label [
17396 \begin_inset Quotes eld
17397 \end_inset
17398
17399 NewOverlay:
17400 \begin_inset Quotes erd
17401 \end_inset
17402
17403  and 
17404 \begin_inset Quotes eld
17405 \end_inset
17406
17407 NewNote:
17408 \begin_inset Quotes erd
17409 \end_inset
17410
17411 , respectively].
17412  The color is a stunning magenta instead of blue, and the 
17413 \begin_inset Quotes eld
17414 \end_inset
17415
17416 ASCII line
17417 \begin_inset Quotes erd
17418 \end_inset
17419
17420  will look different, in style and in length.
17421  The label fonts of all three also differ from one another.
17422 \end_layout
17423
17424 \begin_layout Standard
17425 As with a 
17426 \family sans
17427 Slide
17428 \family default
17429 , if the contents of a 
17430 \family sans
17431 Note
17432 \family default
17433  or 
17434 \family sans
17435 Overlay
17436 \family default
17437  exceed the physical size of a slide or sheet of paper, the extra will overflow
17438  onto a new sheet.
17439  Again, you should avoid this.
17440  It defeats the whole purpose of 
17441 \family sans
17442 Note
17443 \family default
17444 s and 
17445 \family sans
17446 Overlay
17447 \family default
17448 s.
17449 \end_layout
17450
17451 \begin_layout Subsubsection
17452 Using 
17453 \family sans
17454 Overlay
17455 \family default
17456  with 
17457 \family sans
17458 Slide
17459 \end_layout
17460
17461 \begin_layout Standard
17462 The idea behind an 
17463 \family sans
17464 Overlay
17465 \family default
17466  is a slide that sits atop another slide.
17467  Perhaps you wish to discuss a figure on the main 
17468 \family sans
17469 Slide
17470 \family default
17471  before displaying the text associated with it.
17472  One way to accomplish this is tape a flap of dark paper over the part of
17473  the 
17474 \family sans
17475 Slide
17476 \family default
17477  you want to display later.
17478  This method fails, however, if you wish to overlap one graph with another,
17479  for example.
17480  You would then have to fumble while speaking to align the two separate,
17481  overlapping 
17482 \family sans
17483 Slide
17484 \family default
17485 s to align the two graphs.
17486  The use of an 
17487 \family sans
17488 Overlay
17489 \family default
17490  environment in both cases makes life much easier.
17491 \end_layout
17492
17493 \begin_layout Standard
17494 Each 
17495 \family sans
17496 Overlay
17497 \family default
17498  receives the page number of its 
17499 \begin_inset Quotes eld
17500 \end_inset
17501
17502 parent
17503 \begin_inset Quotes erd
17504 \end_inset
17505
17506  
17507 \family sans
17508 Slide
17509 \family default
17510 , appended by 
17511 \begin_inset Quotes eld
17512 \end_inset
17513
17514
17515 \family typewriter
17516 -a
17517 \family default
17518
17519 \begin_inset Quotes erd
17520 \end_inset
17521
17522 .
17523 \begin_inset Foot
17524 status collapsed
17525
17526 \begin_layout Plain Layout
17527 Presumably, mutliple 
17528 \family sans
17529 Overlay
17530 \family default
17531 s would have 
17532 \begin_inset Quotes eld
17533 \end_inset
17534
17535
17536 \family typewriter
17537 -a
17538 \family default
17539
17540 \begin_inset Quotes erd
17541 \end_inset
17542
17543
17544 \begin_inset Quotes eld
17545 \end_inset
17546
17547
17548 \family typewriter
17549 -b
17550 \family default
17551
17552 \begin_inset Quotes erd
17553 \end_inset
17554
17555
17556 \begin_inset Quotes eld
17557 \end_inset
17558
17559
17560 \family typewriter
17561 -c
17562 \family default
17563
17564 \begin_inset Quotes erd
17565 \end_inset
17566
17567 , etc.
17568 \begin_inset space ~
17569 \end_inset
17570
17571 appended to the page number of the parent 
17572 \family sans
17573 Slide
17574 \family default
17575 .
17576  
17577 \end_layout
17578
17579 \end_inset
17580
17581  Clearly, you want the contents of both the 
17582 \family sans
17583 Slide
17584 \family default
17585  and the 
17586 \family sans
17587 Overlay
17588 \family default
17589  to each fit on a single physical slide! You should probably consider an
17590  
17591 \family sans
17592 Overlay
17593 \family default
17594  as 
17595 \begin_inset Quotes eld
17596 \end_inset
17597
17598 part of
17599 \begin_inset Quotes erd
17600 \end_inset
17601
17602  a 
17603 \family sans
17604 Slide
17605 \family default
17606 .
17607  Indeed, the \SpecialChar LyX
17608  
17609 \family sans
17610 slides
17611 \family default
17612  class provides a visual cue for this: the label at the start of an 
17613 \family sans
17614 Overlay
17615 \family default
17616  is shorter than that at the start of a 
17617 \family sans
17618 Slide
17619 \family default
17620 .
17621  Lastly, when you generate printable output, you'll find alignment markers
17622  in all four corners of both the 
17623 \family sans
17624 Overlay
17625 \family default
17626  page and its parent 
17627 \family sans
17628 Slide
17629 \family default
17630 .
17631  These will assist you in lining up the two physical slides.
17632 \end_layout
17633
17634 \begin_layout Standard
17635 The major problem in overlaying two slides is aligning the contents of the
17636  two transparencies.
17637  How much space should you leave for that graph on the second slide? Worse
17638  still, what if you want a graph and a sentence on second slide, but there
17639  is text on the main transparency that goes in between them? You could try
17640  and insert vertical space of the right size.
17641  The better way is to use 
17642 \family sans
17643 InvisibleText
17644 \family default
17645  and 
17646 \family sans
17647 VisibleText
17648 \family default
17649 .
17650 \end_layout
17651
17652 \begin_layout Standard
17653 As their names imply, 
17654 \family sans
17655 InvisibleText
17656 \family default
17657  and 
17658 \family sans
17659 VisibleText
17660 \family default
17661  are two command-like paragraph environments that make all subsequent text
17662  invisible and visible, respectively.
17663  Note from section
17664 \begin_inset space ~
17665 \end_inset
17666
17667
17668 \begin_inset CommandInset ref
17669 LatexCommand ref
17670 reference "sec:slideQuirk"
17671
17672 \end_inset
17673
17674  that you don't place anything 
17675 \emph on
17676 into
17677 \emph default
17678  these two environments, however.
17679  When you create an 
17680 \family sans
17681 InvisibleText
17682 \family default
17683 , it inserts a centered, sky-blue label into the page reading 
17684 \begin_inset Quotes eld
17685 \end_inset
17686
17687 <Invisible Text Follows>
17688 \begin_inset Quotes erd
17689 \end_inset
17690
17691 .
17692  For paragraphs following this label, the parts of the 
17693 \family sans
17694 Slide
17695 \family default
17696  [or 
17697 \family sans
17698 Overlay
17699 \family default
17700 ; it doesn't matter which] where they would be contain instead blank space.
17701  
17702 \end_layout
17703
17704 \begin_layout Standard
17705 For 
17706 \family sans
17707 VisibleText
17708 \family default
17709 , the corresponding centered label is 
17710 \begin_inset Quotes eld
17711 \end_inset
17712
17713 <Visible Text Follows>
17714 \begin_inset Quotes erd
17715 \end_inset
17716
17717  in blazing green.
17718  Paragraphs following this label behave normally.
17719  Note that the beginning of a new 
17720 \family sans
17721 Slide
17722 \family default
17723
17724 \family sans
17725 Overlay
17726 \family default
17727 , or 
17728 \family sans
17729 Note
17730 \family default
17731  automatically shuts off an 
17732 \family sans
17733 InvisibleText
17734 \family default
17735 .
17736  It's therefore not necessary to use 
17737 \family sans
17738 VisibleText
17739 \family default
17740  at the end of a 
17741 \family sans
17742 Slide
17743 \family default
17744 .
17745 \end_layout
17746
17747 \begin_layout Standard
17748 By now, it should be obvious how to create overlay transparencies using
17749  the proper combination of 
17750 \family sans
17751 InvisibleText
17752 \family default
17753  and 
17754 \family sans
17755 VisibleText
17756 \family default
17757  on a 
17758 \family sans
17759 Slide
17760 \family default
17761  and 
17762 \family sans
17763 Overlay
17764 \family default
17765 :
17766 \end_layout
17767
17768 \begin_layout Enumerate
17769 Create a 
17770 \family sans
17771 Slide
17772 \family default
17773 , including everything that will appear on it, whether on the main slide
17774  or on the 
17775 \family sans
17776 Overlay
17777 \family default
17778 .
17779 \end_layout
17780
17781 \begin_layout Enumerate
17782 Before each figure or paragraph that will appear only on the 
17783 \family sans
17784 Overlay
17785 \family default
17786 , insert an 
17787 \family sans
17788 InvisibleText
17789 \family default
17790  environment.
17791  If necessary, insert a 
17792 \family sans
17793 VisibleText
17794 \family default
17795  environment after the 
17796 \family sans
17797 Overlay
17798 \family default
17799 -only text.
17800 \end_layout
17801
17802 \begin_layout Enumerate
17803 Start an 
17804 \family sans
17805 Overlay
17806 \family default
17807  immediately following the 
17808 \family sans
17809 Slide
17810 \family default
17811 .
17812 \end_layout
17813
17814 \begin_layout Enumerate
17815 Copy the contents of this 
17816 \family sans
17817 Slide
17818 \family default
17819  into the 
17820 \family sans
17821 Overlay
17822 \family default
17823 .
17824 \end_layout
17825
17826 \begin_layout Enumerate
17827 Within the 
17828 \family sans
17829 Overlay
17830 \family default
17831 , change all of the 
17832 \family sans
17833 InvisibleText
17834 \family default
17835  lines to 
17836 \family sans
17837 VisibleText
17838 \family default
17839  and vice-versa.
17840 \end_layout
17841
17842 \begin_layout Standard
17843 That's it.
17844  You've just made an 
17845 \family sans
17846 Overlay
17847 \family default
17848 .
17849 \end_layout
17850
17851 \begin_layout Standard
17852 There's one problem with the way I've designed the \SpecialChar LyX
17853  
17854 \family sans
17855 slides
17856 \family default
17857  class: you can't make text in the middle of a paragraph invisible, nor
17858  make text in the middle of an invisible paragraph visible again.
17859  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
17860  codes.
17861 \begin_inset Foot
17862 status collapsed
17863
17864 \begin_layout Plain Layout
17865 The commands of interest are: 
17866 \end_layout
17867
17868 \begin_layout Itemize
17869
17870 \family typewriter
17871 {
17872 \backslash
17873 invisible \SpecialChar ldots
17874  }
17875 \end_layout
17876
17877 \begin_layout Itemize
17878
17879 \family typewriter
17880 {
17881 \backslash
17882 visible \SpecialChar ldots
17883  }
17884 \end_layout
17885
17886 \begin_layout Plain Layout
17887 \SpecialChar ldots
17888 and need to be marked as \SpecialChar TeX
17889 .
17890  The text whose 
17891 \begin_inset Quotes eld
17892 \end_inset
17893
17894 visibility
17895 \begin_inset Quotes erd
17896 \end_inset
17897
17898  you wish to change goes in between the brackets [and after the 
17899 \family typewriter
17900
17901 \backslash
17902 invisible
17903 \family default
17904  or 
17905 \family typewriter
17906
17907 \backslash
17908 visible
17909 \family default
17910  command].
17911  If you don't know how to mark text as \SpecialChar TeX
17912 , see the appropriate section of
17913  the 
17914 \emph on
17915 User's Guide
17916 \emph default
17917 .
17918 \end_layout
17919
17920 \end_inset
17921
17922
17923 \end_layout
17924
17925 \begin_layout Subsubsection
17926 Using 
17927 \family sans
17928 Note
17929 \family default
17930  with 
17931 \family sans
17932 Slide
17933 \family default
17934
17935 \begin_inset CommandInset label
17936 LatexCommand label
17937 name "sec:slideNote"
17938
17939 \end_inset
17940
17941
17942 \end_layout
17943
17944 \begin_layout Standard
17945 Like an 
17946 \family sans
17947 Overlay
17948 \family default
17949 , a 
17950 \family sans
17951 Note
17952 \family default
17953  is associated with a 
17954 \begin_inset Quotes eld
17955 \end_inset
17956
17957 parent
17958 \begin_inset Quotes erd
17959 \end_inset
17960
17961  
17962 \family sans
17963 Slide
17964 \family default
17965 .
17966  Here, too, the \SpecialChar LyX
17967  
17968 \family sans
17969 slides
17970 \family default
17971  class provides visual cues.
17972  The label for a 
17973 \family sans
17974 Note
17975 \family default
17976  is shorter than that of a 
17977 \family sans
17978 Slide
17979 \family default
17980  [yet longer than that of an 
17981 \family sans
17982 Overlay
17983 \family default
17984 ] and, like the label of an 
17985 \family sans
17986 Overlay
17987 \family default
17988  is shockingly magenta.
17989  Additionally, the printed 
17990 \family sans
17991 Note
17992 \family default
17993  has the page number of its 
17994 \begin_inset Quotes eld
17995 \end_inset
17996
17997 parent
17998 \begin_inset Quotes erd
17999 \end_inset
18000
18001  
18002 \family sans
18003 Slide
18004 \family default
18005 , appended by 
18006 \begin_inset Quotes eld
18007 \end_inset
18008
18009
18010 \family typewriter
18011 -
18012 \family default
18013 1
18014 \begin_inset Quotes erd
18015 \end_inset
18016
18017
18018 \begin_inset Quotes eld
18019 \end_inset
18020
18021
18022 \family typewriter
18023 -
18024 \family default
18025 2
18026 \begin_inset Quotes erd
18027 \end_inset
18028
18029
18030 \begin_inset Quotes eld
18031 \end_inset
18032
18033
18034 \family typewriter
18035 -
18036 \family default
18037 3
18038 \begin_inset Quotes erd
18039 \end_inset
18040
18041 , etc.
18042  You can have multiple 
18043 \family sans
18044 Note
18045 \family default
18046 s associated with a single 
18047 \family sans
18048 Slide
18049 \family default
18050 , and, as with 
18051 \family sans
18052 Slide
18053 \family default
18054  and 
18055 \family sans
18056 Overlay
18057 \family default
18058 , you'll probably want to break up long 
18059 \family sans
18060 Note
18061 \family default
18062 s so that they fit on a single sheet of paper.
18063 \end_layout
18064
18065 \begin_layout Standard
18066 The purpose of a 
18067 \family sans
18068 Note
18069 \family default
18070  is obvious: it contains anything additional you might want to say about
18071  a 
18072 \family sans
18073 Slide
18074 \family default
18075 .
18076  It could also be used as a sheet of reminders for a particular 
18077 \family sans
18078 Slide
18079 \family default
18080 .
18081  In the case of the latter, you might want to make use of time markers.
18082  Currently, the \SpecialChar LyX
18083  
18084 \family sans
18085 slides
18086 \family default
18087  class has no 
18088 \begin_inset Quotes eld
18089 \end_inset
18090
18091 native
18092 \begin_inset Quotes erd
18093 \end_inset
18094
18095  support for time markers, a 
18096 \noun on
18097 Sli\SpecialChar TeX
18098
18099 \noun default
18100  feature.
18101  So, you'll have to resort to using the \SpecialChar LaTeX
18102  codes.
18103 \end_layout
18104
18105 \begin_layout Standard
18106 To use time markers, you'll need to specify the extra class option 
18107 \begin_inset Quotes eld
18108 \end_inset
18109
18110
18111 \family typewriter
18112 clock
18113 \family default
18114
18115 \begin_inset Quotes erd
18116 \end_inset
18117
18118  [see section
18119 \begin_inset space ~
18120 \end_inset
18121
18122
18123 \begin_inset CommandInset ref
18124 LatexCommand ref
18125 reference "sec:slidesetup"
18126
18127 \end_inset
18128
18129 ].
18130  This option turns on timing marks, which will appear in the lower-left-hand
18131  corner of every 
18132 \family sans
18133 Note
18134 \family default
18135  you generate.
18136  To set what appears in the time marker, you use the \SpecialChar LaTeX
18137  commands 
18138 \begin_inset Quotes eld
18139 \end_inset
18140
18141
18142 \family typewriter
18143
18144 \backslash
18145 settime{}
18146 \family default
18147
18148 \begin_inset Quotes erd
18149 \end_inset
18150
18151  and 
18152 \begin_inset Quotes eld
18153 \end_inset
18154
18155
18156 \family typewriter
18157
18158 \backslash
18159 addtime{}
18160 \family default
18161
18162 \begin_inset Quotes erd
18163 \end_inset
18164
18165 .
18166  The arguments of both commands are time measured in seconds.
18167  
18168 \begin_inset Quotes eld
18169 \end_inset
18170
18171
18172 \family typewriter
18173
18174 \backslash
18175 settime{}
18176 \family default
18177
18178 \begin_inset Quotes erd
18179 \end_inset
18180
18181  sets the time marker to a given time.
18182  
18183 \begin_inset Quotes eld
18184 \end_inset
18185
18186
18187 \family typewriter
18188
18189 \backslash
18190 addtime{}
18191 \family default
18192
18193 \begin_inset Quotes erd
18194 \end_inset
18195
18196  increments the time marker by the specified amount.
18197  Using time markers and 
18198 \family sans
18199 Note
18200 \family default
18201 s in this fashion, you can remind yourself how much time to spend on a particula
18202
18203 \family sans
18204 Slide
18205 \family default
18206 .
18207 \end_layout
18208
18209 \begin_layout Standard
18210 There's one last feature to describe.
18211  Clearly, you'd like to print out all of your 
18212 \family sans
18213 Slide
18214 \family default
18215 s and 
18216 \family sans
18217 Overlay
18218 \family default
18219 s on transparencies while printing all of your 
18220 \family sans
18221 Note
18222 \family default
18223 s on plain paper.
18224  However, a 
18225 \family sans
18226 Note
18227 \family default
18228  
18229 \emph on
18230 must
18231 \emph default
18232  follow the 
18233 \family sans
18234 Slide
18235 \family default
18236  with which it is associated.
18237  What's a person to do?
18238 \end_layout
18239
18240 \begin_layout Standard
18241 Luckily, there are two \SpecialChar LaTeX
18242  commands that allow you to select what to print
18243  out.
18244  Both must be placed into the preamble of your document.
18245  The command 
18246 \begin_inset Quotes eld
18247 \end_inset
18248
18249
18250 \family typewriter
18251
18252 \backslash
18253 onlyslides{
18254 \backslash
18255 slides}
18256 \family default
18257
18258 \begin_inset Quotes erd
18259 \end_inset
18260
18261  will cause the output to contain only the 
18262 \family sans
18263 Slide
18264 \family default
18265 s and 
18266 \family sans
18267 Overlay
18268 \family default
18269 s.
18270  Correspondingly, the command 
18271 \begin_inset Quotes eld
18272 \end_inset
18273
18274
18275 \family typewriter
18276
18277 \backslash
18278 onlynotes{
18279 \backslash
18280 notes}
18281 \family default
18282
18283 \begin_inset Quotes erd
18284 \end_inset
18285
18286  prevents the output of anything but 
18287 \family sans
18288 Note
18289 \family default
18290 s.
18291  I'd advise placing both commands in the preamble and initially comment
18292  both out.
18293  You can then preview your entire presentation as you write.
18294  When you're done writing, you can then uncomment one of the two to select
18295  what you want to print.
18296  I like to uncomment 
18297 \begin_inset Quotes eld
18298 \end_inset
18299
18300
18301 \family typewriter
18302
18303 \backslash
18304 onlyslides{
18305 \backslash
18306 slides}
18307 \family default
18308
18309 \begin_inset Quotes erd
18310 \end_inset
18311
18312  , print to a file with 
18313 \begin_inset Quotes eld
18314 \end_inset
18315
18316
18317 \family typewriter
18318 -slides
18319 \family default
18320
18321 \begin_inset Quotes erd
18322 \end_inset
18323
18324  in its name, comment it back out, then uncomment 
18325 \begin_inset Quotes eld
18326 \end_inset
18327
18328
18329 \family typewriter
18330
18331 \backslash
18332 onlynotes{
18333 \backslash
18334 notes}
18335 \family default
18336
18337 \begin_inset Quotes erd
18338 \end_inset
18339
18340  and print to a 
18341 \begin_inset Quotes eld
18342 \end_inset
18343
18344
18345 \family typewriter
18346 *-notes.ps
18347 \family default
18348
18349 \begin_inset Quotes erd
18350 \end_inset
18351
18352  file.
18353  I can then send either file to a printer, loading transparencies or plain
18354  paper as appropriate.
18355 \end_layout
18356
18357 \begin_layout Standard
18358 You can also provide other arguments to the 
18359 \begin_inset Quotes eld
18360 \end_inset
18361
18362
18363 \family typewriter
18364
18365 \backslash
18366 onlyslides{}
18367 \family default
18368
18369 \begin_inset Quotes erd
18370 \end_inset
18371
18372  and 
18373 \begin_inset Quotes eld
18374 \end_inset
18375
18376
18377 \family typewriter
18378
18379 \backslash
18380 onlynotes{}
18381 \family default
18382
18383 \begin_inset Quotes erd
18384 \end_inset
18385
18386  commands.
18387  See a good \SpecialChar LaTeX
18388  book for details.
18389 \end_layout
18390
18391 \begin_layout Subsection
18392 The 
18393 \family sans
18394 slides
18395 \family default
18396  Class Template File
18397 \end_layout
18398
18399 \begin_layout Standard
18400 I have also provided a template file, 
18401 \begin_inset Quotes eld
18402 \end_inset
18403
18404
18405 \family typewriter
18406 slides.lyx
18407 \family default
18408
18409 \begin_inset Quotes erd
18410 \end_inset
18411
18412 , with the 
18413 \family sans
18414 slides
18415 \family default
18416  class.
18417  To use it, begin your new presentation with 
18418 \family sans
18419 \bar under
18420 F
18421 \bar default
18422 ile\SpecialChar menuseparator
18423 New
18424 \begin_inset space ~
18425 \end_inset
18426
18427 from
18428 \begin_inset space ~
18429 \end_inset
18430
18431
18432 \bar under
18433 T
18434 \bar default
18435 emplate
18436 \family default
18437 .
18438  Your new \SpecialChar LyX
18439  presentation file will contain an example 
18440 \family sans
18441 Slide
18442 \family default
18443  – 
18444 \family sans
18445 Overlay
18446 \family default
18447  – 
18448 \family sans
18449 Note
18450 \family default
18451  triplet.
18452  The 
18453 \family sans
18454 Slide
18455 \family default
18456  and 
18457 \family sans
18458 Overlay
18459 \family default
18460  additionally contain an example of the use of 
18461 \family sans
18462 InvisibleText
18463 \family default
18464  and 
18465 \family sans
18466 VisibleText
18467 \family default
18468 .
18469  Lastly, the preamble will contain:
18470 \end_layout
18471
18472 \begin_layout LyX-Code
18473 % Uncomment to print out only slides and overlays
18474 \end_layout
18475
18476 \begin_layout LyX-Code
18477 %
18478 \end_layout
18479
18480 \begin_layout LyX-Code
18481 %
18482 \backslash
18483 onlyslides{
18484 \backslash
18485 slides}
18486 \begin_inset Newline newline
18487 \end_inset
18488
18489  
18490 \end_layout
18491
18492 \begin_layout LyX-Code
18493 % Uncomment to print out only notes
18494 \end_layout
18495
18496 \begin_layout LyX-Code
18497 %
18498 \end_layout
18499
18500 \begin_layout LyX-Code
18501 %
18502 \backslash
18503 onlynotes{
18504 \backslash
18505 notes}
18506 \end_layout
18507
18508 \begin_layout Standard
18509 One final thing: I created this class to support the \SpecialChar LaTeX2e
18510  
18511 \begin_inset Quotes eld
18512 \end_inset
18513
18514
18515 \noun on
18516 Sli\SpecialChar TeX
18517
18518 \noun default
18519  emulation
18520 \begin_inset Quotes erd
18521 \end_inset
18522
18523  class, one of the built-in \SpecialChar LaTeX2e
18524  classes.
18525  Neither I nor the rest of the \SpecialChar LyX
18526  Team endorse or oppose the use of this built-in
18527  slide class.
18528  It's here if you want it or need it.
18529  There exist other \SpecialChar LaTeX2e
18530  classes for creating presentations, such as the 
18531 \family sans
18532 Foils
18533 \family default
18534  class [see section
18535 \begin_inset space ~
18536 \end_inset
18537
18538
18539 \begin_inset CommandInset ref
18540 LatexCommand ref
18541 reference "sec:foiltex"
18542
18543 \end_inset
18544
18545 ] or the 
18546 \begin_inset Quotes eld
18547 \end_inset
18548
18549
18550 \family typewriter
18551 seminar
18552 \family default
18553
18554 \begin_inset Quotes erd
18555 \end_inset
18556
18557  package [present on some \SpecialChar TeX
18558  distributions].
18559  The latter is not yet supported under \SpecialChar LyX
18560 .
18561 \begin_inset Foot
18562 status collapsed
18563
18564 \begin_layout Plain Layout
18565 Perhaps you can take on the task\SpecialChar ldots
18566
18567 \end_layout
18568
18569 \end_inset
18570
18571  I know nothing about these other classes.
18572  Try them out to see what sort of alternative they provide.
18573 \end_layout
18574
18575 \begin_layout Chapter
18576 \SpecialChar LyX
18577  Features needing Extra Software
18578 \end_layout
18579
18580 \begin_layout Section
18581 Checking \SpecialChar TeX
18582
18583 \end_layout
18584
18585 \begin_layout Standard
18586 by 
18587 \noun on
18588 Asger Alstrup
18589 \end_layout
18590
18591 \begin_layout Subsection
18592 Introduction
18593 \end_layout
18594
18595 \begin_layout Standard
18596 If you have the 
18597 \family typewriter
18598 chktex
18599 \family default
18600  program installed
18601 \begin_inset Foot
18602 status collapsed
18603
18604 \begin_layout Plain Layout
18605
18606 \family typewriter
18607 chktex
18608 \family default
18609  is not yet available when you are using the \SpecialChar LaTeX
18610  distribution MiK\SpecialChar TeX
18611 .
18612 \end_layout
18613
18614 \end_inset
18615
18616 , you'll find in the 
18617 \family sans
18618 Tools
18619 \family default
18620  menu the entry: 
18621 \family sans
18622 Check
18623 \begin_inset space ~
18624 \end_inset
18625
18626 TeX
18627 \family default
18628 .
18629  You can get 
18630 \family typewriter
18631 chktex
18632 \family default
18633  from CTAN,
18634 \begin_inset Newline newline
18635 \end_inset
18636
18637
18638 \begin_inset CommandInset href
18639 LatexCommand href
18640 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18641
18642 \end_inset
18643
18644 .
18645 \end_layout
18646
18647 \begin_layout Standard
18648 The 
18649 \family sans
18650 Chk\SpecialChar TeX
18651
18652 \family default
18653  package is a program that was written by 
18654 \begin_inset Flex Noun
18655 status collapsed
18656
18657 \begin_layout Plain Layout
18658 Jens T.
18659 \begin_inset space ~
18660 \end_inset
18661
18662 Berger Thielemann
18663 \end_layout
18664
18665 \end_inset
18666
18667  in frustration because some constructs in \SpecialChar LaTeX
18668  are sometimes non-intuitive,
18669  and easy to forget.
18670  The program runs over your \SpecialChar LaTeX
18671  file, checks the integrity of the file, and
18672  flags some common errors.
18673  In other technical words, it is 
18674 \family typewriter
18675 lint
18676 \family default
18677  for \SpecialChar LaTeX
18678 .
18679 \end_layout
18680
18681 \begin_layout Standard
18682 Well, what is a syntax checker doing in \SpecialChar LyX
18683  which is supposed to produce correct
18684  \SpecialChar LaTeX
18685  anyways? The answer is simple: Just as 
18686 \family typewriter
18687 Lint
18688 \family default
18689  not only checks the 
18690 \emph on
18691 syntax
18692 \emph default
18693  of C programs, but also does 
18694 \emph on
18695 semantic
18696 \emph default
18697  checks for type-errors, 
18698 \family sans
18699 Chk\SpecialChar TeX
18700
18701 \family default
18702  catches some common 
18703 \emph on
18704 typographic
18705 \emph default
18706  errors, in addition to the syntactical ones.
18707  Specifically, 
18708 \family sans
18709 Chk\SpecialChar TeX
18710
18711 \family default
18712  is capable of detecting several common errors, such as
18713 \end_layout
18714
18715 \begin_layout Itemize
18716 Ellipsis detection:
18717 \begin_inset Newline newline
18718 \end_inset
18719
18720 Use \SpecialChar ldots
18721  instead of ...
18722 \end_layout
18723
18724 \begin_layout Itemize
18725 No space in front of/after parenthesis:
18726 \begin_inset Newline newline
18727 \end_inset
18728
18729 ( wrong spacing )
18730 \end_layout
18731
18732 \begin_layout Itemize
18733 Enforcement of normal space after common abbreviations:
18734 \begin_inset Newline newline
18735 \end_inset
18736
18737 e.
18738 \begin_inset space \thinspace{}
18739 \end_inset
18740
18741 g.
18742 \begin_inset space \space{}
18743 \end_inset
18744
18745 is too wide spacing.
18746 \end_layout
18747
18748 \begin_layout Itemize
18749 Enforcement of end-of-sentence space when the last sentence ends with a
18750  capital letter:
18751 \begin_inset Newline newline
18752 \end_inset
18753
18754 This is a TEST.
18755  And this is wrong spacing.
18756 \end_layout
18757
18758 \begin_layout Itemize
18759 Space in front of labels and similar commands:
18760 \begin_inset Newline newline
18761 \end_inset
18762
18763 The label should stick right up to the text to avoid falling to a wrong
18764  page.
18765  
18766 \begin_inset CommandInset label
18767 LatexCommand label
18768 name "sec:chktex"
18769
18770 \end_inset
18771
18772  
18773 \begin_inset Foot
18774 status collapsed
18775
18776 \begin_layout Plain Layout
18777 This footnote is in danger of falling off to a wrong page
18778 \end_layout
18779
18780 \end_inset
18781
18782  The label is separated too much.
18783 \end_layout
18784
18785 \begin_layout Itemize
18786 Space in front of references, instead of hard spaces:
18787 \begin_inset Newline newline
18788 \end_inset
18789
18790 If you have bad luck, the text will break right between the referenced text
18791  and reference number, and that's a pity.
18792  See section 
18793 \begin_inset CommandInset ref
18794 LatexCommand ref
18795 reference "sec:chktex"
18796
18797 \end_inset
18798
18799 .
18800 \end_layout
18801
18802 \begin_layout Itemize
18803 Use of 
18804 \begin_inset Quotes eld
18805 \end_inset
18806
18807 x
18808 \begin_inset Quotes erd
18809 \end_inset
18810
18811  instead of 
18812 \begin_inset Formula $\times$
18813 \end_inset
18814
18815  between numbers:
18816 \begin_inset Newline newline
18817 \end_inset
18818
18819 2x2 looks cheap compared to 
18820 \begin_inset Formula $2\times2$
18821 \end_inset
18822
18823 .
18824 \end_layout
18825
18826 \begin_layout Standard
18827 and more \SpecialChar ldots
18828  It is an invaluable tool when you are 
18829 \begin_inset Quotes eld
18830 \end_inset
18831
18832 finishing up
18833 \begin_inset Quotes erd
18834 \end_inset
18835
18836  your document before printing, and you should run it right after the obligatory
18837  spelling check, and before you go fine tuning the typesetting.
18838 \end_layout
18839
18840 \begin_layout Subsection
18841 How to use it
18842 \end_layout
18843
18844 \begin_layout Standard
18845 If you have the program installed, usage is as simple as choosing 
18846 \family sans
18847 Tools\SpecialChar menuseparator
18848 Check
18849 \begin_inset space ~
18850 \end_inset
18851
18852 TeX
18853 \family default
18854 .
18855  This will make \SpecialChar LyX
18856  generate a \SpecialChar LaTeX
18857  file of your document, start 
18858 \family sans
18859 Chk\SpecialChar TeX
18860
18861 \family default
18862  to check it, and then make \SpecialChar LyX
18863  insert 
18864 \begin_inset Quotes eld
18865 \end_inset
18866
18867 error boxes
18868 \begin_inset Quotes erd
18869 \end_inset
18870
18871  with the warnings from 
18872 \family sans
18873 Chk\SpecialChar TeX
18874
18875 \family default
18876 , if there were any.
18877  The warnings will be placed close to the point of the mistake, and you
18878  can quickly find them by using the 
18879 \family sans
18880 Navigate\SpecialChar menuseparator
18881 Error
18882 \family default
18883  menu item, or the shortcut key 
18884 \family sans
18885 C-g
18886 \family default
18887  from the default 
18888 \family typewriter
18889 cua
18890 \family default
18891  bind file.
18892  Open the error boxes by clicking on them with the mouse, or use the shortcut
18893  key 
18894 \family sans
18895 C-i
18896 \family default
18897  from 
18898 \family typewriter
18899 cua
18900 \family default
18901  bindings, or the corresponding 
18902 \family sans
18903 C-o
18904 \family default
18905  for the alternate 
18906 \family typewriter
18907 emacs
18908 \family default
18909  bind file.
18910  Read the warning and correct the mistake, if it is a mistake.
18911  If you have trouble understanding what the warning is about, you can safely
18912  ignore it.
18913  Remember that there is a hidden layer between the document on screen and
18914  the technical details in invoking 
18915 \family sans
18916 Chk\SpecialChar TeX
18917
18918 \family default
18919 , and this gap can make some warnings seem arcane or just plain silly.
18920 \end_layout
18921
18922 \begin_layout Standard
18923 This document is an excellent testing bed for the feature, and it should
18924  provide quite a few warnings for you to fiddle with.
18925  Since computers are only so smart, expect most of the warnings to be false
18926  alarms, though.
18927 \end_layout
18928
18929 \begin_layout Subsection
18930 How to fine tune it
18931 \end_layout
18932
18933 \begin_layout Standard
18934 Sometimes, you'll find that 
18935 \family sans
18936 Chk\SpecialChar TeX
18937
18938 \family default
18939  makes more noise than suits your mood.
18940  Then you can choose not to use it, wait until your mood changes, or try
18941  to customize 
18942 \family sans
18943 Chk\SpecialChar TeX
18944
18945 \family default
18946  to get better along with you.
18947 \end_layout
18948
18949 \begin_layout Standard
18950 Although 
18951 \family sans
18952 Chk\SpecialChar TeX
18953
18954 \family default
18955  
18956 \emph on
18957 is
18958 \emph default
18959  very configurable and extensible, you should not expect to solve all problems
18960  with 
18961 \family sans
18962 Chk\SpecialChar TeX
18963
18964 \family default
18965  in \SpecialChar LyX
18966  this way.
18967  Since \SpecialChar LyX
18968  has to generate a somewhat special \SpecialChar LaTeX
18969  file to be able to match the
18970  line numbers from the 
18971 \family sans
18972 Chk\SpecialChar TeX
18973
18974 \family default
18975  output
18976 \begin_inset Foot
18977 status collapsed
18978
18979 \begin_layout Plain Layout
18980 You can inspect the specific output from 
18981 \family sans
18982 chktex
18983 \family default
18984  by using 
18985 \family sans
18986 Document\SpecialChar menuseparator
18987 \SpecialChar LaTeX
18988
18989 \begin_inset space ~
18990 \end_inset
18991
18992 Log
18993 \family default
18994  right after a 
18995 \family sans
18996 chktex
18997 \family default
18998  run.
18999 \end_layout
19000
19001 \end_inset
19002
19003  to the internal document structure, some of the warnings will not appear
19004  correctly.
19005  There are two things you can do about this:
19006 \end_layout
19007
19008 \begin_layout Itemize
19009 Fine tune the 
19010 \family sans
19011 Chk\SpecialChar TeX
19012
19013 \family default
19014  invocation command line in 
19015 \begin_inset Flex MenuItem
19016 status collapsed
19017
19018 \begin_layout Plain Layout
19019 Tools\SpecialChar menuseparator
19020 Preferences\SpecialChar menuseparator
19021 Output\SpecialChar menuseparator
19022 LaTeX\SpecialChar menuseparator
19023 CheckTeX command
19024 \end_layout
19025
19026 \end_inset
19027
19028 , or the global 
19029 \family sans
19030 Chk\SpecialChar TeX
19031
19032 \family default
19033  installation configuration file (usually with the file 
19034 \family typewriter
19035 chktexrc
19036 \family default
19037 ).
19038  See below to learn what warnings can be enabled and disabled on the command
19039  line.
19040 \end_layout
19041
19042 \begin_layout Itemize
19043 Export your document as a raw \SpecialChar LaTeX
19044  file using 
19045 \family sans
19046 File\SpecialChar menuseparator
19047 Export\SpecialChar menuseparator
19048 \SpecialChar LaTeX
19049
19050 \family default
19051  and run 
19052 \family typewriter
19053 chktex
19054 \family default
19055  manually on that.
19056  Invoked in this way, it can be a hassle to find the corresponding place
19057  in the document inside \SpecialChar LyX
19058 , but with a little patience, you should be able
19059  to do it.
19060 \end_layout
19061
19062 \begin_layout Standard
19063 Here follows the warning messages that can be enabled and disabled in 
19064 \family sans
19065 Preferences
19066 \family default
19067 .
19068  Use 
19069 \family typewriter
19070 -n#
19071 \family default
19072  to disable a warning, and 
19073 \family typewriter
19074 -w#
19075 \family default
19076  to enable a warning.
19077  The emphasized entries are disabled by default, because the default is
19078  "
19079 \family typewriter
19080 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19081 \family default
19082 ".
19083 \end_layout
19084
19085 \begin_layout Standard
19086 Notice that you should only use the options that enable and disable warnings,
19087  because \SpecialChar LyX
19088  relies on some of the other command line parameters to be set
19089  in a specific way to have a chance to communicate with 
19090 \family typewriter
19091 chktex
19092 \family default
19093 .
19094 \end_layout
19095
19096 \begin_layout Enumerate
19097
19098 \size small
19099 \emph on
19100 Command terminated with space.
19101 \end_layout
19102
19103 \begin_layout Enumerate
19104
19105 \size small
19106 Non-breaking space (
19107 \begin_inset Quotes eld
19108 \end_inset
19109
19110
19111 \family typewriter
19112 ~
19113 \family default
19114
19115 \begin_inset Quotes erd
19116 \end_inset
19117
19118 ) should have been used.
19119 \end_layout
19120
19121 \begin_layout Enumerate
19122
19123 \size small
19124 \emph on
19125 You should enclose the previous parenthesis with 
19126 \begin_inset Quotes eld
19127 \end_inset
19128
19129
19130 \family typewriter
19131 {}
19132 \family default
19133
19134 \begin_inset Quotes erd
19135 \end_inset
19136
19137 .
19138 \end_layout
19139
19140 \begin_layout Enumerate
19141
19142 \size small
19143 Italic correction (
19144 \begin_inset Quotes eld
19145 \end_inset
19146
19147
19148 \family typewriter
19149
19150 \backslash
19151 /
19152 \family default
19153
19154 \begin_inset Quotes erd
19155 \end_inset
19156
19157 ) found in non-italic buffer.
19158 \end_layout
19159
19160 \begin_layout Enumerate
19161
19162 \size small
19163 Italic correction (
19164 \begin_inset Quotes eld
19165 \end_inset
19166
19167
19168 \family typewriter
19169
19170 \backslash
19171 /
19172 \family default
19173
19174 \begin_inset Quotes erd
19175 \end_inset
19176
19177 ) found more than once.
19178 \end_layout
19179
19180 \begin_layout Enumerate
19181
19182 \size small
19183 \emph on
19184 No italic correction (
19185 \begin_inset Quotes eld
19186 \end_inset
19187
19188
19189 \family typewriter
19190
19191 \backslash
19192 /
19193 \family default
19194
19195 \begin_inset Quotes erd
19196 \end_inset
19197
19198 ) found.
19199 \end_layout
19200
19201 \begin_layout Enumerate
19202
19203 \size small
19204 Accent command 
19205 \begin_inset Quotes eld
19206 \end_inset
19207
19208
19209 \family typewriter
19210 cmd
19211 \family default
19212
19213 \begin_inset Quotes erd
19214 \end_inset
19215
19216  needs use of 
19217 \begin_inset Quotes eld
19218 \end_inset
19219
19220
19221 \family typewriter
19222 cmd
19223 \family default
19224
19225 \begin_inset Quotes erd
19226 \end_inset
19227
19228 .
19229 \end_layout
19230
19231 \begin_layout Enumerate
19232
19233 \size small
19234 Wrong length of dash may have been used.
19235 \end_layout
19236
19237 \begin_layout Enumerate
19238
19239 \size small
19240 \emph on
19241 \begin_inset Quotes eld
19242 \end_inset
19243
19244
19245 \family typewriter
19246 %s
19247 \family default
19248
19249 \begin_inset Quotes erd
19250 \end_inset
19251
19252  expected, found 
19253 \begin_inset Quotes eld
19254 \end_inset
19255
19256
19257 \family typewriter
19258 %s
19259 \family default
19260
19261 \begin_inset Quotes erd
19262 \end_inset
19263
19264 .
19265 \end_layout
19266
19267 \begin_layout Enumerate
19268
19269 \size small
19270 Solo 
19271 \begin_inset Quotes eld
19272 \end_inset
19273
19274
19275 \family typewriter
19276 %s
19277 \family default
19278
19279 \begin_inset Quotes erd
19280 \end_inset
19281
19282  found.
19283 \end_layout
19284
19285 \begin_layout Enumerate
19286
19287 \size small
19288 You should use 
19289 \begin_inset Quotes eld
19290 \end_inset
19291
19292
19293 \family typewriter
19294 %s
19295 \family default
19296
19297 \begin_inset Quotes erd
19298 \end_inset
19299
19300  to achieve an ellipsis.
19301 \end_layout
19302
19303 \begin_layout Enumerate
19304
19305 \size small
19306 Inter-word spacing (
19307 \begin_inset Quotes eld
19308 \end_inset
19309
19310
19311 \family typewriter
19312
19313 \backslash
19314
19315 \family default
19316  
19317 \begin_inset Quotes eld
19318 \end_inset
19319
19320 ) should perhaps be used.
19321 \end_layout
19322
19323 \begin_layout Enumerate
19324
19325 \size small
19326 Inter-sentence spacing (
19327 \begin_inset Quotes eld
19328 \end_inset
19329
19330
19331 \family typewriter
19332
19333 \backslash
19334 @
19335 \family default
19336
19337 \begin_inset Quotes erd
19338 \end_inset
19339
19340 ) should perhaps be used.
19341 \end_layout
19342
19343 \begin_layout Enumerate
19344
19345 \size small
19346 Could not find argument for command.
19347 \end_layout
19348
19349 \begin_layout Enumerate
19350
19351 \size small
19352 No match found for 
19353 \begin_inset Quotes eld
19354 \end_inset
19355
19356
19357 \family typewriter
19358 %s
19359 \family default
19360
19361 \begin_inset Quotes erd
19362 \end_inset
19363
19364 .
19365 \end_layout
19366
19367 \begin_layout Enumerate
19368
19369 \size small
19370 Math mode still on at end of \SpecialChar LaTeX
19371  file.
19372 \end_layout
19373
19374 \begin_layout Enumerate
19375
19376 \size small
19377 Number of 
19378 \begin_inset Quotes eld
19379 \end_inset
19380
19381
19382 \family typewriter
19383 char
19384 \family default
19385
19386 \begin_inset Quotes erd
19387 \end_inset
19388
19389  doesn't match the number of 
19390 \begin_inset Quotes eld
19391 \end_inset
19392
19393
19394 \family typewriter
19395 char
19396 \family default
19397
19398 \begin_inset Quotes erd
19399 \end_inset
19400
19401 .
19402 \end_layout
19403
19404 \begin_layout Enumerate
19405
19406 \size small
19407 You should use either 
19408 \family typewriter
19409
19410 \begin_inset Quotes eld
19411 \end_inset
19412
19413
19414 \family default
19415  or 
19416 \family typewriter
19417
19418 \begin_inset Quotes erd
19419 \end_inset
19420
19421
19422 \family default
19423  as an alternative to 
19424 \begin_inset Quotes eld
19425 \end_inset
19426
19427
19428 \family typewriter
19429 "
19430 \family default
19431
19432 \begin_inset Quotes erd
19433 \end_inset
19434
19435 .
19436 \end_layout
19437
19438 \begin_layout Enumerate
19439
19440 \size small
19441 You should use "
19442 \family typewriter
19443 '
19444 \family default
19445 " (ASCII 39) instead of "
19446 \family typewriter
19447 ´
19448 \family default
19449 " (ASCII 180).
19450 \end_layout
19451
19452 \begin_layout Enumerate
19453
19454 \size small
19455 User-specified pattern found.
19456 \end_layout
19457
19458 \begin_layout Enumerate
19459
19460 \size small
19461 This command might not be intended.
19462 \end_layout
19463
19464 \begin_layout Enumerate
19465
19466 \size small
19467 \emph on
19468 Comment displayed.
19469 \end_layout
19470
19471 \begin_layout Enumerate
19472
19473 \size small
19474 Either 
19475 \family typewriter
19476 ''
19477 \backslash
19478 ,'
19479 \family default
19480  or 
19481 \family typewriter
19482 '
19483 \backslash
19484 ,''
19485 \family default
19486  will look better.
19487 \end_layout
19488
19489 \begin_layout Enumerate
19490
19491 \size small
19492 Delete this space to maintain correct page references.
19493 \end_layout
19494
19495 \begin_layout Enumerate
19496
19497 \size small
19498 \emph on
19499 You might wish to put this between a pair of 
19500 \begin_inset Quotes eld
19501 \end_inset
19502
19503
19504 \family typewriter
19505 {}
19506 \family default
19507
19508 \begin_inset Quotes erd
19509 \end_inset
19510
19511 .
19512 \end_layout
19513
19514 \begin_layout Enumerate
19515
19516 \size small
19517 You ought to remove spaces in front of punctuation.
19518 \end_layout
19519
19520 \begin_layout Enumerate
19521
19522 \size small
19523 Could not execute \SpecialChar LaTeX
19524  command.
19525 \end_layout
19526
19527 \begin_layout Enumerate
19528
19529 \size small
19530 Don't use 
19531 \family typewriter
19532
19533 \backslash
19534 /
19535 \family default
19536  in front of small punctuation.
19537 \end_layout
19538
19539 \begin_layout Enumerate
19540
19541 \family typewriter
19542 \size small
19543 $
19544 \backslash
19545 times$
19546 \family default
19547  may look prettier here.
19548 \end_layout
19549
19550 \begin_layout Enumerate
19551
19552 \size small
19553 \emph on
19554 Multiple spaces detected in output.
19555 \end_layout
19556
19557 \begin_layout Enumerate
19558
19559 \size small
19560 This text may be ignored.
19561 \end_layout
19562
19563 \begin_layout Enumerate
19564
19565 \size small
19566 Use 
19567 \family typewriter
19568
19569 \begin_inset Quotes eld
19570 \end_inset
19571
19572
19573 \family default
19574  to begin quotation, not 
19575 \family typewriter
19576 '
19577 \family default
19578 .
19579 \end_layout
19580
19581 \begin_layout Enumerate
19582
19583 \size small
19584 Use 
19585 \family typewriter
19586 '
19587 \family default
19588  to end quotation, not 
19589 \family typewriter
19590
19591 \begin_inset Quotes eld
19592 \end_inset
19593
19594
19595 \family default
19596 .
19597 \end_layout
19598
19599 \begin_layout Enumerate
19600
19601 \size small
19602 Don't mix quotes.
19603 \end_layout
19604
19605 \begin_layout Enumerate
19606
19607 \size small
19608 You should perhaps use 
19609 \begin_inset Quotes eld
19610 \end_inset
19611
19612
19613 \family typewriter
19614 cmd
19615 \family default
19616
19617 \begin_inset Quotes erd
19618 \end_inset
19619
19620  instead.
19621 \end_layout
19622
19623 \begin_layout Enumerate
19624
19625 \size small
19626 You should put a space in front of/after parenthesis.
19627 \end_layout
19628
19629 \begin_layout Enumerate
19630
19631 \size small
19632 You should avoid spaces in front of/after parenthesis.
19633 \end_layout
19634
19635 \begin_layout Enumerate
19636
19637 \size small
19638 \emph on
19639 You should not use punctuation in front of/after quotes.
19640 \end_layout
19641
19642 \begin_layout Enumerate
19643
19644 \size small
19645 Double space found.
19646 \end_layout
19647
19648 \begin_layout Enumerate
19649
19650 \size small
19651 You should put punctuation outside inner/inside display math mode.
19652 \end_layout
19653
19654 \begin_layout Enumerate
19655
19656 \size small
19657 You ought to not use primitive \SpecialChar TeX
19658  in \SpecialChar LaTeX
19659  code.
19660 \end_layout
19661
19662 \begin_layout Enumerate
19663
19664 \size small
19665 You should remove spaces in front of 
19666 \begin_inset Quotes eld
19667 \end_inset
19668
19669
19670 \family typewriter
19671 %s
19672 \family default
19673
19674 \begin_inset Quotes erd
19675 \end_inset
19676
19677
19678 \end_layout
19679
19680 \begin_layout Enumerate
19681
19682 \size small
19683 \begin_inset Quotes eld
19684 \end_inset
19685
19686
19687 \family typewriter
19688 %s
19689 \family default
19690
19691 \begin_inset Quotes erd
19692 \end_inset
19693
19694  is normally not followed by 
19695 \begin_inset Quotes eld
19696 \end_inset
19697
19698
19699 \family typewriter
19700 %c
19701 \family default
19702
19703 \begin_inset Quotes erd
19704 \end_inset
19705
19706 .
19707 \end_layout
19708
19709 \begin_layout Standard
19710 In later versions of \SpecialChar LyX
19711 , we hope to provide a more complete interface to this
19712  tool (and it's smaller cousin 
19713 \family typewriter
19714 lacheck
19715 \family default
19716 ) to exploit the full power of it.
19717  But it's not exactly useless as it is now: go try it on one of your existing
19718  documents of a certain length and be surprised.
19719 \end_layout
19720
19721 \begin_layout Section
19722 Version Control in \SpecialChar LyX
19723
19724 \end_layout
19725
19726 \begin_layout Standard
19727 by
19728 \noun on
19729  Lars Gullik Bjønnes 
19730 \noun default
19731 and 
19732 \noun on
19733 Pavel Sanda
19734 \end_layout
19735
19736 \begin_layout Subsection
19737 Introduction
19738 \end_layout
19739
19740 \begin_layout Standard
19741 \SpecialChar LyX
19742  supports some of the most basic RCS/CVS/SVN/GIT commands.
19743  If you need something a bit more sophisticated you will have to do that
19744  manually in a terminal.
19745 \end_layout
19746
19747 \begin_layout Standard
19748 Also note that CVS support is not as good as subversion support so we advise
19749  using SVN instead.
19750  A good place to start learning Subversion is SVN Book
19751 \begin_inset Foot
19752 status collapsed
19753
19754 \begin_layout Plain Layout
19755 \begin_inset CommandInset href
19756 LatexCommand href
19757 target "http://svnbook.red-bean.com/"
19758
19759 \end_inset
19760
19761
19762 \end_layout
19763
19764 \end_inset
19765
19766 .
19767  In the case of RCS you should read 
19768 \begin_inset Quotes eld
19769 \end_inset
19770
19771 rcsintro
19772 \begin_inset Quotes erd
19773 \end_inset
19774
19775  (a man file, read it with 
19776 \family typewriter
19777 man rcsintro
19778 \family default
19779 ).
19780  This file describes all the basic features of RCS.
19781  You should especially notice the comment about a RCS directory, and the
19782  notion of a master RCS file (the file ending in 
19783 \family typewriter
19784 ,v
19785 \family default
19786 ).
19787 \end_layout
19788
19789 \begin_layout Standard
19790 Before you begin to use the version control features in \SpecialChar LyX
19791 , you should be
19792  familiar with RCS/CVS/SVN/GIT usage.
19793  The implementation in \SpecialChar LyX
19794  assumes a recent version of the GNU RCS or CVS/SVN
19795  package — no guarantees are made for older versions.
19796  Most of the log messages are not currently displayed after operations —
19797  you can check them in the Messages pane if unsure.
19798  Regular users of version control will appreciate VC toolbar, which can
19799  be enabled via 
19800 \family sans
19801 View\SpecialChar menuseparator
19802 Toolbars\SpecialChar menuseparator
19803 Version
19804 \begin_inset space ~
19805 \end_inset
19806
19807 Control
19808 \family default
19809 .
19810 \end_layout
19811
19812 \begin_layout Standard
19813 For introducing your own external commands consult vc-command in the manual
19814  of \SpecialChar LyX
19815  functions.
19816 \end_layout
19817
19818 \begin_layout Standard
19819 It is strongly recommended to store documents in uncompressed format if
19820  using version control (uncheck 
19821 \family sans
19822 Document\SpecialChar menuseparator
19823 Compressed
19824 \family default
19825  if it is checked): Uncompressed LyX documents are text files and therefore
19826  for merging two different versions by version control systems.
19827  Compressed LyX documents are binary files, which cannot be merged by version
19828  control systems.
19829 \end_layout
19830
19831 \begin_layout Subsection
19832 RCS commands in \SpecialChar LyX
19833
19834 \end_layout
19835
19836 \begin_layout Standard
19837 The following sections describe the RCS commands supported by \SpecialChar LyX
19838 .
19839  You can find them in the 
19840 \family sans
19841 File\SpecialChar menuseparator
19842 Version
19843 \begin_inset space ~
19844 \end_inset
19845
19846 Control
19847 \family default
19848  submenu.
19849  \SpecialChar LyX
19850  was tested against RCS 5.7/5.8.
19851 \end_layout
19852
19853 \begin_layout Subsubsection
19854
19855 \family sans
19856 Register
19857 \end_layout
19858
19859 \begin_layout Standard
19860 If your document is not under revision control, this is the only item shown
19861  in the menu.
19862  And if it is under revision control, the 
19863 \family sans
19864 Register
19865 \family default
19866  item is not visible.
19867  
19868 \end_layout
19869
19870 \begin_layout Standard
19871 This command registers your document with RCS (unless you are under the
19872  directory managed by CVS)\SpecialChar endofsentence
19873  You are asked interactively to supply an initial
19874  description of the document.
19875  The document is now set in Read-Only mode and you have to 
19876 \family sans
19877 Check
19878 \begin_inset space ~
19879 \end_inset
19880
19881 Out
19882 \begin_inset space ~
19883 \end_inset
19884
19885 For
19886 \begin_inset space ~
19887 \end_inset
19888
19889 Edit
19890 \family default
19891 , before making any changes to it.
19892  A document under revision control has a 
19893 \begin_inset Quotes eld
19894 \end_inset
19895
19896 [RCS:<version> <locker>]
19897 \begin_inset Quotes erd
19898 \end_inset
19899
19900  item tagged to the filename in the minibuffer.
19901 \end_layout
19902
19903 \begin_layout Standard
19904 RCS command that is run: 
19905 \family typewriter
19906 ci -q -u -i -t-"<initial description>" <file-name>
19907 \end_layout
19908
19909 \begin_layout Standard
19910 Read 
19911 \family typewriter
19912 man ci
19913 \family default
19914  to understand the switches.
19915  
19916 \end_layout
19917
19918 \begin_layout Subsubsection
19919
19920 \family sans
19921 Check In Changes
19922 \end_layout
19923
19924 \begin_layout Standard
19925 When you are finished editing a file, you check in your changes.
19926  When you do this, you are asked for a description of the changes.
19927  This is stored in the history log.
19928  The version number is bumped, your changes are applied to the master RCS
19929  file, the document is unlocked and set to Read-Only mode.
19930 \end_layout
19931
19932 \begin_layout Standard
19933 RCS command: 
19934 \family typewriter
19935 ci -q -u -m"<description>" <file-name>
19936 \end_layout
19937
19938 \begin_layout Subsubsection
19939
19940 \family sans
19941 Check Out For Edit
19942 \end_layout
19943
19944 \begin_layout Standard
19945 By doing this you lock the document so that only you can edit it.
19946  This will also make the document Read-Write only for you.
19947  You will usually continue editing for a while and when you are finished
19948  you check in your changes.
19949  The status line is changed to reflect that you have locked the file.
19950 \end_layout
19951
19952 \begin_layout Standard
19953 RCS command: 
19954 \family typewriter
19955 co -q -l <file-name>
19956 \end_layout
19957
19958 \begin_layout Subsubsection
19959
19960 \family sans
19961 Revert To Repository Version
19962 \end_layout
19963
19964 \begin_layout Standard
19965 This will discard all changes made to the document since the last check
19966  in.
19967  You get a warning before changes are discarded.
19968 \end_layout
19969
19970 \begin_layout Standard
19971 RCS command: 
19972 \family typewriter
19973 co -f -u<version> <file-name>
19974 \end_layout
19975
19976 \begin_layout Subsubsection
19977
19978 \family sans
19979 Copy
19980 \end_layout
19981
19982 \begin_layout Standard
19983 This will create a copy of the current document.
19984  Since RCS does not support copy operations natively, the version history
19985  is not preserved, and the copy is added as a new file.
19986  It requires a clean document without any changes since the last checkin.
19987  You are asked for a file name and a description of the copy operation.
19988  After that the copy is created, both locally and in the repository.
19989  If the parent directories of the copied and original document differ, all
19990  relative paths of included files of the copy are adjusted (like in 
19991 \family sans
19992 File\SpecialChar menuseparator
19993 Save As
19994 \family default
19995 \SpecialChar ldots
19996 ).
19997  Finally, the copy is loaded instead of the original document.
19998 \end_layout
19999
20000 \begin_layout Labeling
20001 \labelwidthstring 00.00.0000
20002 RCS
20003 \begin_inset space ~
20004 \end_inset
20005
20006 commands: 
20007 \begin_inset space ~
20008 \end_inset
20009
20010
20011 \begin_inset Newline newline
20012 \end_inset
20013
20014 Copy 
20015 \begin_inset Flex Code
20016 status collapsed
20017
20018 \begin_layout Plain Layout
20019
20020 \family typewriter
20021 \begin_inset Quotes eld
20022 \end_inset
20023
20024 <file-name>
20025 \begin_inset Quotes erd
20026 \end_inset
20027
20028
20029 \end_layout
20030
20031 \end_inset
20032
20033  to 
20034 \begin_inset Flex Code
20035 status collapsed
20036
20037 \begin_layout Plain Layout
20038
20039 \family typewriter
20040 \begin_inset Quotes eld
20041 \end_inset
20042
20043 <new-file-name>
20044 \begin_inset Quotes erd
20045 \end_inset
20046
20047
20048 \end_layout
20049
20050 \end_inset
20051
20052
20053 \begin_inset Newline newline
20054 \end_inset
20055
20056
20057 \begin_inset Flex Code
20058 status collapsed
20059
20060 \begin_layout Plain Layout
20061 ci -q -u 
20062 \family typewriter
20063 -i 
20064 \begin_inset Quotes eld
20065 \end_inset
20066
20067 <new-file-name>
20068 \begin_inset Quotes erd
20069 \end_inset
20070
20071
20072 \end_layout
20073
20074 \end_inset
20075
20076
20077 \end_layout
20078
20079 \begin_layout Subsubsection
20080
20081 \family sans
20082 Undo Last Checkin
20083 \end_layout
20084
20085 \begin_layout Standard
20086 This makes as if the last check in never happened.
20087  No changes are made to the document loaded into \SpecialChar LyX
20088 , but the last version
20089  is removed from the master RCS file.
20090 \end_layout
20091
20092 \begin_layout Standard
20093 RCS command: 
20094 \family typewriter
20095 rcs -o<version> <file-name>
20096 \end_layout
20097
20098 \begin_layout Subsubsection
20099
20100 \family sans
20101 Show History
20102 \end_layout
20103
20104 \begin_layout Standard
20105 This shows the complete history of the RCS document.
20106  The output of 
20107 \family typewriter
20108 rlog <file-name>
20109 \family default
20110  is shown in a browser.
20111  See 
20112 \family typewriter
20113 man rlog
20114 \family default
20115  for more info.
20116 \end_layout
20117
20118 \begin_layout Subsubsection
20119 Revision info
20120 \end_layout
20121
20122 \begin_layout Standard
20123 \SpecialChar LyX
20124  supports RCS version number, author name, date and time of last commit.
20125  All those are extracted from 
20126 \family typewriter
20127 rlog -r <file-name>
20128 \family default
20129 .
20130  See 
20131 \begin_inset CommandInset ref
20132 LatexCommand ref
20133 reference "subsec:VCS-Revision-Information"
20134
20135 \end_inset
20136
20137  for details.
20138 \end_layout
20139
20140 \begin_layout Subsection
20141 CVS commands in \SpecialChar LyX
20142
20143 \end_layout
20144
20145 \begin_layout Standard
20146 A subset of CVS operations is supported by \SpecialChar LyX
20147 .
20148  You can find the commands in the 
20149 \family sans
20150 File\SpecialChar menuseparator
20151 Version
20152 \begin_inset space ~
20153 \end_inset
20154
20155 Control
20156 \family default
20157  submenu.
20158  The version control system SVN is more powerful, so please use it instead
20159  of CVS if possible.
20160 \end_layout
20161
20162 \begin_layout Subsubsection
20163
20164 \family sans
20165 General CVS usage
20166 \end_layout
20167
20168 \begin_layout Standard
20169 If you start from scratch with CVS you have to create your repository and
20170  checkout the working copy with external tools.
20171  If you're using a client-server setup you may need to login before doing
20172  the first repository checkout.
20173 \end_layout
20174
20175 \begin_layout Standard
20176 If your documents are under revision control and others are using the same
20177  repository problems arise when different changes to the same document at
20178  the same location happen.
20179  Standard CVS repositories don't operate with a file locking mechanism.
20180  This may be surprising, but conflicts only occur if people disagree on
20181  the proper content of the same part of a document.
20182  So, if co-workers are used to communicate regularly, these conflicts occur
20183  rarely.
20184  If they don't communicate they have a fundamental problem anyway.
20185  Nevertheless some people like to work with so called 
20186 \begin_inset Quotes eld
20187 \end_inset
20188
20189 reserved checkouts
20190 \begin_inset Quotes erd
20191 \end_inset
20192
20193 .
20194  If they do so the working copy of all files is readonly when checked out
20195  first and the user starts editing after using a special command to make
20196  the working copy writable.
20197  When the changes are checked in the working copy returns to readonly state.
20198  With \SpecialChar LyX
20199  one has to edit the 
20200 \begin_inset Flex Code
20201 status collapsed
20202
20203 \begin_layout Plain Layout
20204 .cvsrc
20205 \end_layout
20206
20207 \end_inset
20208
20209  file and add the line 
20210 \begin_inset Flex Code
20211 status collapsed
20212
20213 \begin_layout Plain Layout
20214 cvs -r
20215 \end_layout
20216
20217 \end_inset
20218
20219  to work with reserved checkouts.
20220  The benefit is the possibility to see who is using a writable copy of some
20221  document.
20222  It's not guaranteed only one user makes a copy writable.
20223 \end_layout
20224
20225 \begin_layout Standard
20226 \SpecialChar LyX
20227  tries to guess if you're using reserved or non-reserved checkouts.
20228  If your working copy is readonly or it is writable and an additional copy
20229  of your document exists in the CVS/Base sub-directory a reserved otherwise
20230  a non-reserved checkout is assumed.
20231  When a reserved checkout is detected you have to use 
20232 \begin_inset Flex MenuItem
20233 status collapsed
20234
20235 \begin_layout Plain Layout
20236 Check Out
20237 \end_layout
20238
20239 \end_inset
20240
20241  to make your working copy writable if it's readonly.
20242  After doing so the 
20243 \begin_inset Flex MenuItem
20244 status collapsed
20245
20246 \begin_layout Plain Layout
20247 Check In
20248 \end_layout
20249
20250 \end_inset
20251
20252  operation is possible and that makes your working copy readonly again after
20253  transferring your changes to the repository.
20254 \end_layout
20255
20256 \begin_layout Standard
20257 More information about CVS can be found here 
20258 \begin_inset Flex URL
20259 status collapsed
20260
20261 \begin_layout Plain Layout
20262
20263 http://www.nongnu.org/cvs
20264 \end_layout
20265
20266 \end_inset
20267
20268  and here 
20269 \begin_inset Flex URL
20270 status collapsed
20271
20272 \begin_layout Plain Layout
20273
20274 http://ximbiot.com/cvs
20275 \end_layout
20276
20277 \end_inset
20278
20279 .
20280 \end_layout
20281
20282 \begin_layout Standard
20283 Read 
20284 \family typewriter
20285 man cvs
20286 \family default
20287  to understand the sub-commands and the switches mentioned below.
20288 \end_layout
20289
20290 \begin_layout Subsubsection
20291
20292 \family sans
20293 Register
20294 \end_layout
20295
20296 \begin_layout Standard
20297 If your document is not under revision control, this is the only item shown
20298  in the menu.
20299  And if it is under revision control, the 
20300 \family sans
20301 \bar under
20302 R
20303 \bar default
20304 egister
20305 \family default
20306  item is not visible.
20307  
20308 \end_layout
20309
20310 \begin_layout Standard
20311 This command registers in CVS your document 
20312 \begin_inset Flex Strong
20313 status collapsed
20314
20315 \begin_layout Plain Layout
20316
20317 \emph on
20318 only
20319 \end_layout
20320
20321 \end_inset
20322
20323  in the case you have already the documents directory under CVS control
20324  (in particular 
20325 \family typewriter
20326 CVS/Entries
20327 \family default
20328  file exists).
20329  This means you have to create or checkout the archive by yourself using
20330  external tools.
20331  (In case you forget that step \SpecialChar LyX
20332  registers the document with RCS.)
20333 \end_layout
20334
20335 \begin_layout Standard
20336 Then you are asked interactively to supply an initial description of the
20337  document.
20338  Don't forget that registered file is not yet checked in.
20339 \end_layout
20340
20341 \begin_layout Standard
20342 CVS command that is run: 
20343 \family typewriter
20344 cvs -q add -m"<entered message>" "<file-name>"
20345 \end_layout
20346
20347 \begin_layout Standard
20348 The term 
20349 \family typewriter
20350 "<file-name>"
20351 \family default
20352  above and for all other CVS commands is an abbreviation for 
20353 \begin_inset Quotes eld
20354 \end_inset
20355
20356 change the current working directory to file location and use the file name
20357  without path component as argument
20358 \begin_inset Quotes erd
20359 \end_inset
20360
20361 .
20362 \end_layout
20363
20364 \begin_layout Subsubsection
20365
20366 \family sans
20367 Check In Changes
20368 \end_layout
20369
20370 \begin_layout Standard
20371 When you are finished editing a file, you commit your changes.
20372  When you do this and you had changed the document, you are asked for a
20373  description of the changes.
20374  After that changes are written to the repository.
20375  In case you didn't change the document and a reserved checkout is detected
20376  the reservation made on 
20377 \begin_inset Flex MenuItem
20378 status collapsed
20379
20380 \begin_layout Plain Layout
20381 Check Out
20382 \end_layout
20383
20384 \end_inset
20385
20386  is undone.
20387 \end_layout
20388
20389 \begin_layout Labeling
20390 \labelwidthstring 00.00.0000
20391 CVS
20392 \begin_inset space ~
20393 \end_inset
20394
20395 command: 
20396 \begin_inset space ~
20397 \end_inset
20398
20399
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 
20409 \family typewriter
20410 -q commit -m"<description>" "<file-name>"
20411 \end_layout
20412
20413 \end_inset
20414
20415  or
20416 \begin_inset Newline newline
20417 \end_inset
20418
20419
20420 \begin_inset Flex Code
20421 status collapsed
20422
20423 \begin_layout Plain Layout
20424 cvs -q unedit 
20425 \family typewriter
20426 "<file-name>"
20427 \end_layout
20428
20429 \end_inset
20430
20431
20432 \end_layout
20433
20434 \begin_layout Subsubsection
20435
20436 \family sans
20437 Check Out Changes
20438 \end_layout
20439
20440 \begin_layout Standard
20441 When you are sharing a repository with others, you may have to incorporate
20442  their changes into your working copy.
20443 \end_layout
20444
20445 \begin_layout Standard
20446 CVS command: 
20447 \family typewriter
20448 cvs -q update "<file-name>"
20449 \end_layout
20450
20451 \begin_layout Standard
20452 If a readonly checkout is detected the working copy is made writable and
20453  reserved.
20454 \end_layout
20455
20456 \begin_layout Standard
20457 CVS command: 
20458 \family typewriter
20459 cvs -q edit "<file-name>"
20460 \end_layout
20461
20462 \begin_layout Subsubsection
20463
20464 \family sans
20465 Revert To Repository Version
20466 \end_layout
20467
20468 \begin_layout Standard
20469 This will discard all changes made to the document since the last check
20470  in.
20471  You get a warning before changes are discarded.
20472  Firstly the file is deleted, secondly CVS update command is run.
20473 \end_layout
20474
20475 \begin_layout Standard
20476 CVS command: 
20477 \family typewriter
20478 cvs -q update "<file-name>"
20479 \end_layout
20480
20481 \begin_layout Standard
20482 If a reserved checkout is detected and the working copy has no changes only
20483  the reservation is undone.
20484 \end_layout
20485
20486 \begin_layout Standard
20487 CVS command: 
20488 \family typewriter
20489 cvs -q unedit "<file-name>"
20490 \end_layout
20491
20492 \begin_layout Subsubsection
20493
20494 \family sans
20495 Copy
20496 \end_layout
20497
20498 \begin_layout Standard
20499 This will create a copy of the current document.
20500  Since CVS does not support copy operations natively, the version history
20501  is not preserved, and the copy is added as a new file.
20502  It requires a clean document without any changes since the last checkin.
20503  You are asked for a file name and a description of the copy operation.
20504  After that the copy is created, both locally and in the repository.
20505  If the parent directories of the copied and original document differ, all
20506  relative paths of included files of the copy are adjusted (like in 
20507 \family sans
20508 File\SpecialChar menuseparator
20509 Save As
20510 \family default
20511 \SpecialChar ldots
20512 ).
20513  Finally, the copy is loaded instead of the original document.
20514 \end_layout
20515
20516 \begin_layout Labeling
20517 \labelwidthstring 00.00.0000
20518 CVS
20519 \begin_inset space ~
20520 \end_inset
20521
20522 commands: 
20523 \begin_inset space ~
20524 \end_inset
20525
20526
20527 \begin_inset Newline newline
20528 \end_inset
20529
20530 Copy 
20531 \begin_inset Flex Code
20532 status collapsed
20533
20534 \begin_layout Plain Layout
20535
20536 \family typewriter
20537 \begin_inset Quotes eld
20538 \end_inset
20539
20540 <file-name>
20541 \begin_inset Quotes erd
20542 \end_inset
20543
20544
20545 \end_layout
20546
20547 \end_inset
20548
20549  to 
20550 \begin_inset Flex Code
20551 status collapsed
20552
20553 \begin_layout Plain Layout
20554
20555 \family typewriter
20556 \begin_inset Quotes eld
20557 \end_inset
20558
20559 <new-file-name>
20560 \begin_inset Quotes erd
20561 \end_inset
20562
20563
20564 \end_layout
20565
20566 \end_inset
20567
20568
20569 \begin_inset Newline newline
20570 \end_inset
20571
20572
20573 \begin_inset Flex Code
20574 status collapsed
20575
20576 \begin_layout Plain Layout
20577 cvs -q add 
20578 \family typewriter
20579
20580 \begin_inset Quotes eld
20581 \end_inset
20582
20583 <new-file-name>
20584 \begin_inset Quotes erd
20585 \end_inset
20586
20587
20588 \end_layout
20589
20590 \end_inset
20591
20592
20593 \end_layout
20594
20595 \begin_layout Subsubsection
20596
20597 \family sans
20598 Rename
20599 \end_layout
20600
20601 \begin_layout Standard
20602 This will rename the current document.
20603  Since CVS does not support rename operations natively, the version history
20604  is not preserved, the renamed document is added as a new file, and the
20605  original document is deleted.
20606  It requires a clean document without any changes since the last checkin.
20607  You are asked for a file name and a description of the rename operation.
20608  After that the document is renamed, both locally and in the repository.
20609  If the parent directories of the new and old file names differ, all relative
20610  paths of included files are adjusted (like in 
20611 \family sans
20612 File\SpecialChar menuseparator
20613 Save As
20614 \family default
20615 \SpecialChar ldots
20616 ).
20617  Finally, the document is reloaded using the new name.
20618 \end_layout
20619
20620 \begin_layout Labeling
20621 \labelwidthstring 00.00.0000
20622 CVS
20623 \begin_inset space ~
20624 \end_inset
20625
20626 commands: 
20627 \begin_inset space ~
20628 \end_inset
20629
20630
20631 \begin_inset Newline newline
20632 \end_inset
20633
20634 Rename 
20635 \begin_inset Flex Code
20636 status collapsed
20637
20638 \begin_layout Plain Layout
20639
20640 \family typewriter
20641 \begin_inset Quotes eld
20642 \end_inset
20643
20644 <file-name>
20645 \begin_inset Quotes erd
20646 \end_inset
20647
20648
20649 \end_layout
20650
20651 \end_inset
20652
20653  to 
20654 \begin_inset Flex Code
20655 status collapsed
20656
20657 \begin_layout Plain Layout
20658
20659 \family typewriter
20660 \begin_inset Quotes eld
20661 \end_inset
20662
20663 <new-file-name>
20664 \begin_inset Quotes erd
20665 \end_inset
20666
20667
20668 \end_layout
20669
20670 \end_inset
20671
20672
20673 \begin_inset Newline newline
20674 \end_inset
20675
20676
20677 \begin_inset Flex Code
20678 status collapsed
20679
20680 \begin_layout Plain Layout
20681 cvs -q add 
20682 \family typewriter
20683
20684 \begin_inset Quotes eld
20685 \end_inset
20686
20687 <new-file-name>
20688 \begin_inset Quotes erd
20689 \end_inset
20690
20691
20692 \end_layout
20693
20694 \end_inset
20695
20696
20697 \begin_inset Newline newline
20698 \end_inset
20699
20700
20701 \begin_inset Flex Code
20702 status collapsed
20703
20704 \begin_layout Plain Layout
20705 cvs -q remove 
20706 \family typewriter
20707
20708 \begin_inset Quotes eld
20709 \end_inset
20710
20711 <file-name>
20712 \begin_inset Quotes erd
20713 \end_inset
20714
20715
20716 \end_layout
20717
20718 \end_inset
20719
20720
20721 \end_layout
20722
20723 \begin_layout Subsubsection
20724 Update of the local directory checkout from repository
20725 \end_layout
20726
20727 \begin_layout Standard
20728 Once your documents gets more complex, containing sub-documents and pictures,
20729  including external 
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 .tex
20735 \end_layout
20736
20737 \end_inset
20738
20739  files and so on using version control becomes more complicated.
20740  \SpecialChar LyX
20741  supports updating the whole tree in which resides the document.
20742  This become especially useful once you cooperate with people which neither
20743  have detailed knowledge about CVS usage nor they have ambition to commit
20744  additional material to the repository.
20745  You have to organize the files structure so that all external files are
20746  in the same directory or subdirectories of the document.
20747  It's good practice anyway to store multipart documents in an extra directory.
20748 \end_layout
20749
20750 \begin_layout Standard
20751 The 
20752 \begin_inset Flex Code
20753 status collapsed
20754
20755 \begin_layout Plain Layout
20756 Update local directory from repository
20757 \end_layout
20758
20759 \end_inset
20760
20761  command updates the whole directory.
20762  If local changes are detected user is warned before update starts.
20763  In case of merge conflicts both versions of the conflicting document parts
20764  are placed in the final document.
20765  You have to review and correct the result of the merge.
20766  You'll find the conflicts enclosed in pairs of 
20767 \begin_inset Flex Code
20768 status collapsed
20769
20770 \begin_layout Plain Layout
20771 <<<<<<<
20772 \end_layout
20773
20774 \end_inset
20775
20776  and 
20777 \begin_inset Flex Code
20778 status collapsed
20779
20780 \begin_layout Plain Layout
20781 >>>>>>>
20782 \end_layout
20783
20784 \end_inset
20785
20786  separated by 
20787 \begin_inset Flex Code
20788 status collapsed
20789
20790 \begin_layout Plain Layout
20791 =======
20792 \end_layout
20793
20794 \end_inset
20795
20796 .
20797  The first part is your version as before the update operation with the
20798  document name prepended.
20799  The second one is the repository version with the version number after
20800  the sequence of 
20801 \begin_inset Flex Code
20802 status collapsed
20803
20804 \begin_layout Plain Layout
20805 >
20806 \end_layout
20807
20808 \end_inset
20809
20810  signs.
20811 \end_layout
20812
20813 \begin_layout Labeling
20814 \labelwidthstring 00.00.0000
20815 CVS
20816 \begin_inset space ~
20817 \end_inset
20818
20819 commands: 
20820 \begin_inset space ~
20821 \end_inset
20822
20823
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 diff 
20833 \family typewriter
20834 "."
20835 \end_layout
20836
20837 \end_inset
20838
20839  (Ask if changes are detected.)
20840 \begin_inset Newline newline
20841 \end_inset
20842
20843
20844 \begin_inset Flex Code
20845 status collapsed
20846
20847 \begin_layout Plain Layout
20848 cd $path; cvs -q update 
20849 \family typewriter
20850 "."
20851 \end_layout
20852
20853 \end_inset
20854
20855
20856 \end_layout
20857
20858 \begin_layout Standard
20859 where 
20860 \begin_inset Flex Code
20861 status collapsed
20862
20863 \begin_layout Plain Layout
20864 $path
20865 \end_layout
20866
20867 \end_inset
20868
20869  stands for the path to the document.
20870 \end_layout
20871
20872 \begin_layout Subsubsection
20873
20874 \family sans
20875 Show History
20876 \end_layout
20877
20878 \begin_layout Standard
20879 This shows the complete history of the CVS document.
20880  The output of 
20881 \family typewriter
20882 cvs log "<file-name>"
20883 \family default
20884  is shown in a browser.
20885 \end_layout
20886
20887 \begin_layout Subsubsection
20888 Revision info
20889 \end_layout
20890
20891 \begin_layout Standard
20892 \SpecialChar LyX
20893  supports CVS version number, author name, date and time of last commit.
20894  All those are extracted from 
20895 \family typewriter
20896 cvs log -r <file-name>
20897 \family default
20898 .
20899  See 
20900 \begin_inset CommandInset ref
20901 LatexCommand ref
20902 reference "subsec:VCS-Revision-Information"
20903
20904 \end_inset
20905
20906  for details.
20907 \end_layout
20908
20909 \begin_layout Subsection
20910 SVN commands in \SpecialChar LyX
20911
20912 \end_layout
20913
20914 \begin_layout Standard
20915 SVN is now partially supported by \SpecialChar LyX
20916 .
20917  You can find the commands in the 
20918 \family sans
20919 File\SpecialChar menuseparator
20920 Version
20921 \begin_inset space ~
20922 \end_inset
20923
20924 Control
20925 \family default
20926  submenu.
20927  Please note that if you use password protected access to repository via
20928  ssh, you will be asked in terminal window.
20929  \SpecialChar LyX
20930  was tested against SVN 1.5, 1.6, 1.7 and 1.8
20931 \begin_inset Foot
20932 status open
20933
20934 \begin_layout Plain Layout
20935 Most of the commands will work with 1.4 too, see 
20936 \begin_inset CommandInset ref
20937 LatexCommand ref
20938 reference "subsec:SVN-Repo-Update"
20939
20940 \end_inset
20941
20942 .
20943  There seems to be currently unresolved permissions problem under SVN 1.8
20944  with reverting changes when file is locked.
20945 \end_layout
20946
20947 \end_inset
20948
20949
20950 \end_layout
20951
20952 \begin_layout Subsubsection
20953
20954 \family sans
20955 Register
20956 \end_layout
20957
20958 \begin_layout Standard
20959 If your document is not under revision control, this is the only item shown
20960  in the menu.
20961  And if it is under revision control, the 
20962 \family sans
20963 \bar under
20964 R
20965 \bar default
20966 egister
20967 \family default
20968  item is not visible.
20969 \end_layout
20970
20971 \begin_layout Standard
20972 This command registers in SVN your document ONLY in case you have already
20973  the documents directory under SVN control (in particular 
20974 \family typewriter
20975 .svn/entries
20976 \family default
20977  file exists).
20978  This means you have to checkout the archive by yourself.
20979 \end_layout
20980
20981 \begin_layout Standard
20982 Then you are asked interactively to supply an initial description of the
20983  document.
20984  Don't forget that registered file is not yet commited.
20985 \end_layout
20986
20987 \begin_layout Standard
20988 SVN command that is run: 
20989 \family typewriter
20990 svn add -q 
20991 \begin_inset Quotes eld
20992 \end_inset
20993
20994 <file-name>
20995 \begin_inset Quotes erd
20996 \end_inset
20997
20998
20999 \end_layout
21000
21001 \begin_layout Standard
21002 Read 
21003 \family typewriter
21004 man svn
21005 \family default
21006  to understand the switches.
21007 \end_layout
21008
21009 \begin_layout Subsubsection
21010
21011 \family sans
21012 Check In Changes
21013 \end_layout
21014
21015 \begin_layout Standard
21016 When you are finished editing a file, you commit your changes.
21017  When you do this, you are asked for a description of the changes.
21018  After that changes are commited.
21019 \end_layout
21020
21021 \begin_layout Standard
21022 SVN command:
21023 \begin_inset Foot
21024 status collapsed
21025
21026 \begin_layout Plain Layout
21027 In case locking is not enabled.
21028  See Section 
21029 \begin_inset CommandInset ref
21030 LatexCommand ref
21031 reference "subsec:SVN-File-Locking"
21032
21033 \end_inset
21034
21035 .
21036 \end_layout
21037
21038 \end_inset
21039
21040  
21041 \family typewriter
21042 svn commit -q -m"<description>" <file-name>
21043 \end_layout
21044
21045 \begin_layout Subsubsection
21046
21047 \family sans
21048 Check Out For Edit
21049 \end_layout
21050
21051 \begin_layout Standard
21052 Updates the changes of this file from the repository.
21053  Be sure you understand SVN merging and conflicts resolving before using
21054  this function, because all conflicts has to be resolved manually by you!
21055 \end_layout
21056
21057 \begin_layout Standard
21058 SVN command:
21059 \begin_inset Foot
21060 status collapsed
21061
21062 \begin_layout Plain Layout
21063 Ditto.
21064 \end_layout
21065
21066 \end_inset
21067
21068  
21069 \family typewriter
21070 svn update --non-interactive 
21071 \begin_inset Quotes eld
21072 \end_inset
21073
21074 <file-name>
21075 \begin_inset Quotes erd
21076 \end_inset
21077
21078
21079 \end_layout
21080
21081 \begin_layout Subsubsection
21082
21083 \family sans
21084 Revert To Repository Version
21085 \end_layout
21086
21087 \begin_layout Standard
21088 This will discard all changes made to the document since the last check
21089  in.
21090  You get a warning before changes are discarded.
21091 \end_layout
21092
21093 \begin_layout Standard
21094 SVN command: 
21095 \family typewriter
21096 svn revert -q 
21097 \begin_inset Quotes eld
21098 \end_inset
21099
21100 <file-name>
21101 \begin_inset Quotes erd
21102 \end_inset
21103
21104
21105 \end_layout
21106
21107 \begin_layout Subsubsection
21108
21109 \family sans
21110 Copy
21111 \end_layout
21112
21113 \begin_layout Standard
21114 This will create a copy of the current document including the version history.
21115  It requires a clean document without any changes since the last checkin.
21116  You are asked for a file name and a description of the copy operation.
21117  After that the copy is created, both locally and in the repository.
21118  If the parent directories of the copied and original document differ, all
21119  relative paths of included files of the copy are adjusted (like in 
21120 \family sans
21121 File\SpecialChar menuseparator
21122 Save As
21123 \family default
21124 \SpecialChar ldots
21125 ).
21126  Finally, the copy is loaded instead of the original document.
21127 \end_layout
21128
21129 \begin_layout Labeling
21130 \labelwidthstring 00.00.0000
21131 SVN
21132 \begin_inset space ~
21133 \end_inset
21134
21135 commands: 
21136 \begin_inset space ~
21137 \end_inset
21138
21139
21140 \begin_inset Newline newline
21141 \end_inset
21142
21143
21144 \begin_inset Flex Code
21145 status collapsed
21146
21147 \begin_layout Plain Layout
21148 svn copy -q 
21149 \family typewriter
21150
21151 \begin_inset Quotes eld
21152 \end_inset
21153
21154 <file-name>
21155 \begin_inset Quotes erd
21156 \end_inset
21157
21158  
21159 \begin_inset Quotes eld
21160 \end_inset
21161
21162 <new-file-name>
21163 \begin_inset Quotes erd
21164 \end_inset
21165
21166
21167 \end_layout
21168
21169 \end_inset
21170
21171
21172 \begin_inset Newline newline
21173 \end_inset
21174
21175
21176 \begin_inset Flex Code
21177 status collapsed
21178
21179 \begin_layout Plain Layout
21180 svn commit
21181 \end_layout
21182
21183 \end_inset
21184
21185
21186 \end_layout
21187
21188 \begin_layout Subsubsection
21189
21190 \family sans
21191 Rename
21192 \end_layout
21193
21194 \begin_layout Standard
21195 This will rename the current document including the version history.
21196  It requires a clean document without any changes since the last checkin.
21197  You are asked for a file name and a description of the rename operation.
21198  After that the document is renamed, both locally and in the repository.
21199  If the parent directories of the new and old file names differ, all relative
21200  paths of included files are adjusted (like in 
21201 \family sans
21202 File\SpecialChar menuseparator
21203 Save As
21204 \family default
21205 \SpecialChar ldots
21206 ).
21207  Finally, the document is reloaded using the new name.
21208 \end_layout
21209
21210 \begin_layout Labeling
21211 \labelwidthstring 00.00.0000
21212 SVN
21213 \begin_inset space ~
21214 \end_inset
21215
21216 commands: 
21217 \begin_inset space ~
21218 \end_inset
21219
21220
21221 \begin_inset Newline newline
21222 \end_inset
21223
21224
21225 \begin_inset Flex Code
21226 status collapsed
21227
21228 \begin_layout Plain Layout
21229 svn move -q 
21230 \family typewriter
21231
21232 \begin_inset Quotes eld
21233 \end_inset
21234
21235 <file-name>
21236 \begin_inset Quotes erd
21237 \end_inset
21238
21239  
21240 \begin_inset Quotes eld
21241 \end_inset
21242
21243 <new-file-name>
21244 \begin_inset Quotes erd
21245 \end_inset
21246
21247
21248 \end_layout
21249
21250 \end_inset
21251
21252
21253 \begin_inset Newline newline
21254 \end_inset
21255
21256
21257 \begin_inset Flex Code
21258 status collapsed
21259
21260 \begin_layout Plain Layout
21261 svn commit
21262 \end_layout
21263
21264 \end_inset
21265
21266
21267 \end_layout
21268
21269 \begin_layout Subsubsection
21270 \begin_inset CommandInset label
21271 LatexCommand label
21272 name "subsec:SVN-Repo-Update"
21273
21274 \end_inset
21275
21276 Update of the local directory checkout from repository
21277 \begin_inset Foot
21278 status collapsed
21279
21280 \begin_layout Plain Layout
21281 Note that this command will work only with subversion 
21282 \begin_inset Formula $\geqq1.5$
21283 \end_inset
21284
21285
21286 \end_layout
21287
21288 \end_inset
21289
21290
21291 \end_layout
21292
21293 \begin_layout Standard
21294 All the commands above have one shortcomming - they deal with the current
21295  document only.
21296  Once your document contains pictures, includes external 
21297 \begin_inset Flex Code
21298 status collapsed
21299
21300 \begin_layout Plain Layout
21301 .tex
21302 \end_layout
21303
21304 \end_inset
21305
21306  files and so on administration becomes more complicated.
21307  \SpecialChar LyX
21308  now supports updating the whole tree in which resides the document
21309 \begin_inset Foot
21310 status collapsed
21311
21312 \begin_layout Plain Layout
21313 One need to organize the files structure so that all external files are
21314  in the same directory or subdirectories of the document.
21315  
21316 \end_layout
21317
21318 \end_inset
21319
21320 .
21321  This become especially useful once you cooperate with people which neither
21322  know about subversion management nor they have ambition to commit additional
21323  material to the repository.
21324  
21325 \end_layout
21326
21327 \begin_layout Standard
21328 \begin_inset Flex Code
21329 status collapsed
21330
21331 \begin_layout Plain Layout
21332 Update local directory from repository
21333 \end_layout
21334
21335 \end_inset
21336
21337  command updates the whole directory and in case of merge conflicts local
21338  version of the files are left, so no unintended data loss occurs.
21339  If local changes are detected user is warned before update starts.
21340 \end_layout
21341
21342 \begin_layout Labeling
21343 \labelwidthstring 00.00.0000
21344 SVN
21345 \begin_inset space ~
21346 \end_inset
21347
21348 commands: 
21349 \begin_inset space ~
21350 \end_inset
21351
21352
21353 \begin_inset Newline newline
21354 \end_inset
21355
21356
21357 \begin_inset Flex Code
21358 status collapsed
21359
21360 \begin_layout Plain Layout
21361 svn diff $path
21362 \end_layout
21363
21364 \end_inset
21365
21366  (Ask if changes are detected.)
21367 \begin_inset Newline newline
21368 \end_inset
21369
21370
21371 \begin_inset Flex Code
21372 status collapsed
21373
21374 \begin_layout Plain Layout
21375 svn update –accept mine-full $path
21376 \end_layout
21377
21378 \end_inset
21379
21380
21381 \end_layout
21382
21383 \begin_layout Standard
21384 where 
21385 \begin_inset Flex Code
21386 status collapsed
21387
21388 \begin_layout Plain Layout
21389 $path
21390 \end_layout
21391
21392 \end_inset
21393
21394  stands for the path to the document.
21395 \end_layout
21396
21397 \begin_layout Subsubsection
21398
21399 \family sans
21400 Show History
21401 \end_layout
21402
21403 \begin_layout Standard
21404 This shows the complete history of the SVN document.
21405  The output of 
21406 \family typewriter
21407 svn log 
21408 \begin_inset Quotes eld
21409 \end_inset
21410
21411 <file-name>
21412 \begin_inset Quotes erd
21413 \end_inset
21414
21415
21416 \family default
21417  is shown in a browser.
21418 \end_layout
21419
21420 \begin_layout Subsubsection
21421 File Locking
21422 \begin_inset CommandInset label
21423 LatexCommand label
21424 name "subsec:SVN-File-Locking"
21425
21426 \end_inset
21427
21428
21429 \end_layout
21430
21431 \begin_layout Standard
21432 The file exchange through various revision control systems brings the problem
21433  of merge conflicts in case two different users try to edit the same (parts
21434  of) document.
21435  When such a conflict happens it needs manual resolving and one reasonable
21436  alternative is to provide some kind of locking mechanism, which guarantees
21437  that only one user is allowed to edit file at the given time.
21438 \end_layout
21439
21440 \begin_layout Standard
21441 SVN has two such mechanisms to provide mutual exclusivity for file access
21442  - locks and automatic setting of write permissions (see sec.
21443  
21444 \begin_inset CommandInset ref
21445 LatexCommand ref
21446 reference "subsec:Automatical-Locking-Property"
21447
21448 \end_inset
21449
21450 ) based on 
21451 \begin_inset Flex Code
21452 status collapsed
21453
21454 \begin_layout Plain Layout
21455 svn:needs-lock
21456 \end_layout
21457
21458 \end_inset
21459
21460  file svn property
21461 \begin_inset Foot
21462 status open
21463
21464 \begin_layout Plain Layout
21465 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21466 \end_layout
21467
21468 \end_inset
21469
21470 .
21471  If this property is detected for a given document \SpecialChar LyX
21472  starts to use SVN locks
21473  for document editing automatically and the whole check-in/out mechanism
21474  switches to the same regimen as for RCS.
21475  This in particular means there are two different modes of file use in \SpecialChar LyX
21476 :
21477 \end_layout
21478
21479 \begin_layout Itemize
21480 Unlocked state.
21481  The loaded file is in the read-only mode.
21482  For editing on needs to check-out.
21483  
21484 \emph on
21485 Check-out
21486 \emph default
21487  consists of updating from the repository and gaining write lock.
21488  If the lock is not possible to obtain, we remain in unlocked state.
21489 \end_layout
21490
21491 \begin_layout Itemize
21492 Locked state.
21493  The loaded file is in the 'normal' edit mode.
21494  No other user is allowed to edit the file.
21495  
21496 \emph on
21497 Check-in
21498 \emph default
21499  consists of commiting changes and releasing write-lock.
21500  If no changes have been made to the document, no commit will be produced
21501 \begin_inset Foot
21502 status collapsed
21503
21504 \begin_layout Plain Layout
21505 Don't be puzzled by the fact that you will be asked for commit message anyway.
21506 \end_layout
21507
21508 \end_inset
21509
21510  and only the write-lock will be released.
21511 \end_layout
21512
21513 \begin_layout Standard
21514 SVN commands:
21515 \end_layout
21516
21517 \begin_layout Labeling
21518 \labelwidthstring 00.00.0000
21519 Check-in:
21520 \family typewriter
21521  svn commit -q -m"<description>" "<file-name>"
21522 \begin_inset Newline newline
21523 \end_inset
21524
21525 svn unlock "<file-name>"
21526 \end_layout
21527
21528 \begin_layout Labeling
21529 \labelwidthstring 00.00.0000
21530 Check-out: 
21531 \family typewriter
21532 svn update "<file-name>"
21533 \begin_inset Newline newline
21534 \end_inset
21535
21536 svn lock "<file-name>"
21537 \end_layout
21538
21539 \begin_layout Subsubsection
21540
21541 \family typewriter
21542 \begin_inset CommandInset label
21543 LatexCommand label
21544 name "subsec:Automatical-Locking-Property"
21545
21546 \end_inset
21547
21548
21549 \family default
21550 Automatic Locking Property
21551 \end_layout
21552
21553 \begin_layout Standard
21554 The above mentioned automatic setting of write permissions of the .lyx file
21555  can be set through
21556 \family sans
21557 \bar under
21558  F
21559 \bar default
21560 ile\SpecialChar menuseparator
21561
21562 \bar under
21563 V
21564 \bar default
21565 ersion
21566 \begin_inset space ~
21567 \end_inset
21568
21569 Control\SpecialChar menuseparator
21570
21571 \bar under
21572 T
21573 \bar default
21574 oggle locking property
21575 \family default
21576 .
21577  This command is active only when the file is not locked on the svn server
21578  (i.e.
21579  you need to check-out before proceeding).
21580 \end_layout
21581
21582 \begin_layout Labeling
21583 \labelwidthstring 00.00.0000
21584 SVN
21585 \begin_inset space ~
21586 \end_inset
21587
21588 commands:
21589 \end_layout
21590
21591 \begin_layout Labeling
21592 \labelwidthstring 00.00.0000
21593 Set:
21594 \family typewriter
21595  svn propset svn:needs-lock ON "<file-name>"
21596 \end_layout
21597
21598 \begin_layout Labeling
21599 \labelwidthstring 00.00.0000
21600 Unset: 
21601 \family typewriter
21602 svn propdel svn:needs-lock "<file-name>"
21603 \end_layout
21604
21605 \begin_layout Subsubsection
21606 \begin_inset CommandInset label
21607 LatexCommand label
21608 name "subsec:VCS-Revision-Information"
21609
21610 \end_inset
21611
21612 Revision Information in Documents
21613 \end_layout
21614
21615 \begin_layout Standard
21616 There are more possibilities how to activate revision information in our
21617  document.
21618 \end_layout
21619
21620 \begin_layout Itemize
21621 \SpecialChar LyX
21622  supports directly:
21623 \begin_inset Separator parbreak
21624 \end_inset
21625
21626
21627 \end_layout
21628
21629 \begin_deeper
21630 \begin_layout Itemize
21631 tree revision information (
21632 \begin_inset Flex Code
21633 status collapsed
21634
21635 \begin_layout Plain Layout
21636 vcs-tree-revision
21637 \end_layout
21638
21639 \end_inset
21640
21641 ).
21642  The result is the output of the 
21643 \begin_inset Flex Code
21644 status collapsed
21645
21646 \begin_layout Plain Layout
21647 svnversion
21648 \end_layout
21649
21650 \end_inset
21651
21652  command, the following table gives you an idea, how to read the results.
21653 \end_layout
21654
21655 \begin_layout Standard
21656 \align center
21657 \begin_inset Tabular
21658 <lyxtabular version="3" rows="6" columns="2">
21659 <features tabularvalignment="middle">
21660 <column alignment="center" valignment="top">
21661 <column alignment="center" valignment="top">
21662 <row>
21663 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21664 \begin_inset Text
21665
21666 \begin_layout Plain Layout
21667 Output
21668 \end_layout
21669
21670 \end_inset
21671 </cell>
21672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21673 \begin_inset Text
21674
21675 \begin_layout Plain Layout
21676 Meaning
21677 \end_layout
21678
21679 \end_inset
21680 </cell>
21681 </row>
21682 <row>
21683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21684 \begin_inset Text
21685
21686 \begin_layout Plain Layout
21687 4123:4168
21688 \end_layout
21689
21690 \end_inset
21691 </cell>
21692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21693 \begin_inset Text
21694
21695 \begin_layout Plain Layout
21696 mixed revision working copy
21697 \end_layout
21698
21699 \end_inset
21700 </cell>
21701 </row>
21702 <row>
21703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21704 \begin_inset Text
21705
21706 \begin_layout Plain Layout
21707 4168M
21708 \end_layout
21709
21710 \end_inset
21711 </cell>
21712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21713 \begin_inset Text
21714
21715 \begin_layout Plain Layout
21716 modified working copy
21717 \end_layout
21718
21719 \end_inset
21720 </cell>
21721 </row>
21722 <row>
21723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21724 \begin_inset Text
21725
21726 \begin_layout Plain Layout
21727 4123S
21728 \end_layout
21729
21730 \end_inset
21731 </cell>
21732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21733 \begin_inset Text
21734
21735 \begin_layout Plain Layout
21736 switched working copy
21737 \end_layout
21738
21739 \end_inset
21740 </cell>
21741 </row>
21742 <row>
21743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21744 \begin_inset Text
21745
21746 \begin_layout Plain Layout
21747 4123P
21748 \end_layout
21749
21750 \end_inset
21751 </cell>
21752 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21753 \begin_inset Text
21754
21755 \begin_layout Plain Layout
21756 partial working copy, from a sparse checkout
21757 \end_layout
21758
21759 \end_inset
21760 </cell>
21761 </row>
21762 <row>
21763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21764 \begin_inset Text
21765
21766 \begin_layout Plain Layout
21767 4123:4168MS
21768 \end_layout
21769
21770 \end_inset
21771 </cell>
21772 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21773 \begin_inset Text
21774
21775 \begin_layout Plain Layout
21776 mixed revision, modified, switched working copy
21777 \end_layout
21778
21779 \end_inset
21780 </cell>
21781 </row>
21782 </lyxtabular>
21783
21784 \end_inset
21785
21786
21787 \end_layout
21788
21789 \begin_layout Itemize
21790 file revision information.
21791  The result comes from parsing the output of 
21792 \begin_inset Flex Code
21793 status collapsed
21794
21795 \begin_layout Plain Layout
21796 svn
21797 \begin_inset space ~
21798 \end_inset
21799
21800 info
21801 \begin_inset space ~
21802 \end_inset
21803
21804 –xml
21805 \begin_inset space ~
21806 \end_inset
21807
21808 file.lyx
21809 \end_layout
21810
21811 \end_inset
21812
21813 .
21814  Supported flags are:
21815 \begin_inset Separator parbreak
21816 \end_inset
21817
21818
21819 \end_layout
21820
21821 \begin_deeper
21822 \begin_layout Itemize
21823 version number of the last commit (
21824 \begin_inset Flex Code
21825 status collapsed
21826
21827 \begin_layout Plain Layout
21828 vcs-revision
21829 \end_layout
21830
21831 \end_inset
21832
21833 )
21834 \end_layout
21835
21836 \begin_layout Itemize
21837 author of the last commit (
21838 \begin_inset Flex Code
21839 status collapsed
21840
21841 \begin_layout Plain Layout
21842 vcs-author
21843 \end_layout
21844
21845 \end_inset
21846
21847 )
21848 \end_layout
21849
21850 \begin_layout Itemize
21851 date of the last commit (
21852 \begin_inset Flex Code
21853 status collapsed
21854
21855 \begin_layout Plain Layout
21856 vcs-date
21857 \end_layout
21858
21859 \end_inset
21860
21861 )
21862 \end_layout
21863
21864 \begin_layout Itemize
21865 time of the last commit (
21866 \begin_inset Flex Code
21867 status collapsed
21868
21869 \begin_layout Plain Layout
21870 vcs-time
21871 \end_layout
21872
21873 \end_inset
21874
21875 )
21876 \end_layout
21877
21878 \end_deeper
21879 \begin_layout Standard
21880 You can obtain this info via InsetInfo (e.g.
21881  
21882 \begin_inset Flex Code
21883 status collapsed
21884
21885 \begin_layout Plain Layout
21886 info-insert buffer vcs-date
21887 \end_layout
21888
21889 \end_inset
21890
21891 ).
21892  The information will be available only when you have the file stored under
21893  svn managment (i.e.
21894  the 
21895 \begin_inset Flex Code
21896 status collapsed
21897
21898 \begin_layout Plain Layout
21899 .svn
21900 \end_layout
21901
21902 \end_inset
21903
21904  directory is available with your document).
21905 \end_layout
21906
21907 \end_deeper
21908 \begin_layout Itemize
21909 Another—a hacking one—possibility is to use svn keywords
21910 \begin_inset Foot
21911 status collapsed
21912
21913 \begin_layout Plain Layout
21914 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21915 \end_layout
21916
21917 \end_inset
21918
21919 .
21920  In short – you set file keywords property (e.g.
21921  
21922 \family sans
21923 svn propset svn:keywords 'Rev' file.lyx
21924 \family default
21925 ) and then paste keyword \SpecialChar TeX
21926  code
21927 \begin_inset Foot
21928 status collapsed
21929
21930 \begin_layout Plain Layout
21931 This is an easy way how to ensure that \SpecialChar LyX
21932  won't break the line in the middle
21933  of keyword tag.
21934 \end_layout
21935
21936 \end_inset
21937
21938  tag in your document (e.g.
21939  
21940 \begin_inset ERT
21941 status open
21942
21943 \begin_layout Plain Layout
21944
21945 $Rev$
21946 \end_layout
21947
21948 \end_inset
21949
21950 ).
21951  This way svn client will automatically substitute revision number (e.g.
21952  
21953 \begin_inset ERT
21954 status open
21955
21956 \begin_layout Plain Layout
21957
21958 $Rev: 59 $
21959 \end_layout
21960
21961 \end_inset
21962
21963 ) after each update and commit.
21964  There are more problems with this approach.
21965  Firstly, the '$' character is used in \SpecialChar TeX
21966  world for math equations, so any
21967  occurence of math formula 
21968 \begin_inset Formula $Rev$
21969 \end_inset
21970
21971  become 
21972 \begin_inset Formula $Rev:59$
21973 \end_inset
21974
21975  in your \SpecialChar LyX
21976  document.
21977  Similarly for other keywords like Id, Date, Author, etc.
21978  Secondly svn output is dependent on your locales, so its very easy that
21979  svn would produce some problematic strings once Date is used.
21980  Thirdly you get the whole 'Rev: 59' string in your document instead of
21981  the plain number.
21982  Until subversion implements user's custom keywords it will be hard to use
21983  this approach reliably or let \SpecialChar LyX
21984  to support it directly.
21985 \end_layout
21986
21987 \begin_layout Subsection
21988 SVN and Windows Environment
21989 \end_layout
21990
21991 \begin_layout Quote
21992 My inclination is to say that if the user cannot figure out the command
21993  line operations on their own fairly quickly, they would be well advised
21994  to use TortoiseSVN.
21995  —P.
21996  A.
21997  Rubin
21998 \end_layout
21999
22000 \begin_layout Subsubsection
22001 Preparation
22002 \end_layout
22003
22004 \begin_layout Standard
22005 In addition to installing \SpecialChar LyX
22006 , and having access to a Subversion repository,
22007  the user will need to install the Subversion client program.
22008  A Windows installer for the client program is available from 
22009 \begin_inset CommandInset href
22010 LatexCommand href
22011 name "CollabNet"
22012 target "http://www.collab.net/nonav/downloads/subversion/"
22013
22014 \end_inset
22015
22016 .
22017  The user may also want to install 
22018 \begin_inset CommandInset href
22019 LatexCommand href
22020 name "TortoiseSVN"
22021 target "http://tortoisesvn.tigris.org/"
22022
22023 \end_inset
22024
22025 , which integrates Subversion operations into the context (rightclick) menu
22026  of Windows Explorer.
22027  Operations done outside \SpecialChar LyX
22028  will typically be more convenient using the Explorer
22029  context menu.
22030  Note that TortoiseSVN is not a replacement for the client program, which
22031  is what \SpecialChar LyX
22032  itself will use.
22033 \end_layout
22034
22035 \begin_layout Subsubsection
22036 Bringing a document under Subversion control
22037 \end_layout
22038
22039 \begin_layout Standard
22040 Before a \SpecialChar LyX
22041  document can be brought under version control in Subversion, its
22042  parent directory needs to be under version control.
22043  If the document is being added to a project already in the repository,
22044  this is accomplished by checking the project out to the directory where
22045  the new document will be placed.
22046  If the project itself is not yet under version control (for instance, if
22047  this document starts a new project), the directory must be imported into
22048  the repository.
22049  This is done outside \SpecialChar LyX
22050 .
22051  Both import and checkout are easily accomplished from the Explorer context
22052  menu using TortoiseSVN, or alternatively can be done using the command
22053  line client at a DOS prompt.
22054  The procedure for importing the project using TortoiseSVN is described
22055  below, assuming an existing repository and a new project being started
22056  in 
22057 \family typewriter
22058 C:
22059 \backslash
22060 new project
22061 \family default
22062 .
22063  For information on using the Subversion client program, run 
22064 \family typewriter
22065 svn --help 
22066 \family default
22067 in a DOS shell.
22068 \end_layout
22069
22070 \begin_layout Enumerate
22071 Locate 
22072 \family typewriter
22073 C:
22074 \backslash
22075 new project 
22076 \family default
22077 in Windows Explorer, right click it, and select 
22078 \family sans
22079 TortoiseSVN\SpecialChar menuseparator
22080 Repo-browser
22081 \family default
22082 .
22083  If necessary, adjust the URL for the repository, then click OK.
22084 \end_layout
22085
22086 \begin_layout Enumerate
22087 Right click the level of the repository under which you want to place the
22088  new project folder (typically the top level) and click 
22089 \family sans
22090 Create folder
22091 \family default
22092  Supply a name for the project folder and click OK.
22093  Add a message for the log file if desired, then click OK again.
22094  The new project folder should appear in the repository.
22095  Finally, click OK again to exit the repository browser.
22096 \end_layout
22097
22098 \begin_layout Enumerate
22099 Once again right click 
22100 \family typewriter
22101 C:
22102 \backslash
22103 new project
22104 \family default
22105 , this time selecting SVN Checkout\SpecialChar ldots
22106  Select the URL of the project folder
22107  you just created in the repository, and set the checkout directory to 
22108 \family typewriter
22109 C:
22110 \backslash
22111 new project.
22112
22113 \family default
22114  Click OK.
22115  You will be warned about a non-empty folder; click OK to proceed.
22116  You should now have a 
22117 \family typewriter
22118 .svn
22119 \family default
22120  directory under 
22121 \family typewriter
22122 C:
22123 \backslash
22124 new project.
22125 \end_layout
22126
22127 \begin_layout Enumerate
22128 Create or open your document in \SpecialChar LyX
22129  and click 
22130 \family sans
22131 File\SpecialChar menuseparator
22132 Version
22133 \begin_inset space ~
22134 \end_inset
22135
22136 Control\SpecialChar menuseparator
22137 Register.
22138  
22139 \family default
22140 Add a log message and click OK to commit the document to version control.
22141 \end_layout
22142
22143 \begin_layout Standard
22144 From this point onward, you should have full functionality in the 
22145 \family sans
22146 File\SpecialChar menuseparator
22147 Version
22148 \begin_inset space ~
22149 \end_inset
22150
22151 Control
22152 \family default
22153  menu.
22154  You also have the option of checking the document in and out, viewing its
22155  history, etc.
22156  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22157  client program from a command prompt.
22158 \end_layout
22159
22160 \begin_layout Subsubsection
22161 SSH tunnel used with SVN under Windows
22162 \end_layout
22163
22164 \begin_layout Standard
22165 Compared with Linux setting up an svn client to communicate over ssh under
22166  Windows is a rather troublesome task.
22167  We will at least offer some hints how to setup the client side but prior
22168  knowledge about ssh and the Windows command line is needed, also be prepared
22169  for a great deal of frustration\SpecialChar ldots
22170
22171 \end_layout
22172
22173 \begin_layout Enumerate
22174 Get an svn client for windows, as described in the previous sections.
22175  When it is a fresh install run some svn command (e.g.
22176  
22177 \begin_inset Flex Code
22178 status collapsed
22179
22180 \begin_layout Plain Layout
22181 svn –version
22182 \end_layout
22183
22184 \end_inset
22185
22186 ) to create config files, which you will need to change later on.
22187 \end_layout
22188
22189 \begin_layout Enumerate
22190 Choose an ssh client for Windows.
22191  There are several possibilities, we will use the one from Putty tools
22192 \begin_inset Foot
22193 status collapsed
22194
22195 \begin_layout Plain Layout
22196 \begin_inset Flex URL
22197 status collapsed
22198
22199 \begin_layout Plain Layout
22200
22201 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22202 \end_layout
22203
22204 \end_inset
22205
22206
22207 \end_layout
22208
22209 \end_inset
22210
22211 .
22212  You will need to set the connection up so that the client doesn't ask for
22213  any password from you.
22214  To keep things easy we will use only keys without any additional password
22215  protection etc.
22216 \begin_inset Separator parbreak
22217 \end_inset
22218
22219
22220 \end_layout
22221
22222 \begin_deeper
22223 \begin_layout Enumerate
22224 Generate keys by 
22225 \begin_inset Flex Code
22226 status collapsed
22227
22228 \begin_layout Plain Layout
22229 puttygen
22230 \end_layout
22231
22232 \end_inset
22233
22234 .
22235  Save your private .ppk key file and put the public one on the server side.
22236  If the SVN server runs on Linux, note that the format of the public key
22237  is not compatible with Linux openssh and you will need to direcly copy-paste
22238  the key from the “
22239 \emph on
22240 Public key for pasting into OpenSSH authorized_keys file
22241 \emph default
22242 :” edit field into the server's 
22243 \begin_inset Flex Code
22244 status collapsed
22245
22246 \begin_layout Plain Layout
22247 ~/.ssh/authorized_keys
22248 \end_layout
22249
22250 \end_inset
22251
22252  / 
22253 \begin_inset Flex Code
22254 status collapsed
22255
22256 \begin_layout Plain Layout
22257 authorized_keys2
22258 \end_layout
22259
22260 \end_inset
22261
22262  file.
22263 \end_layout
22264
22265 \begin_layout Enumerate
22266 Get the Putty's 
22267 \begin_inset Flex Code
22268 status collapsed
22269
22270 \begin_layout Plain Layout
22271 plink
22272 \end_layout
22273
22274 \end_inset
22275
22276 .
22277  In the SVN config file
22278 \begin_inset Foot
22279 status collapsed
22280
22281 \begin_layout Plain Layout
22282 Exact path depends on Windows version, usually somewhere around 
22283 \begin_inset Flex Code
22284 status collapsed
22285
22286 \begin_layout Plain Layout
22287 c:
22288 \backslash
22289 Documents and Settings
22290 \backslash
22291 user
22292 \backslash
22293 Application Data
22294 \backslash
22295 Subversion
22296 \backslash
22297 config
22298 \end_layout
22299
22300 \end_inset
22301
22302  / 
22303 \begin_inset Flex Code
22304 status collapsed
22305
22306 \begin_layout Plain Layout
22307 AppData
22308 \backslash
22309 Roaming
22310 \backslash
22311 Subversion
22312 \end_layout
22313
22314 \end_inset
22315
22316 .
22317 \end_layout
22318
22319 \end_inset
22320
22321 , section [tunnels], setup ssh command, e.g.
22322  
22323 \begin_inset Flex Code
22324 status collapsed
22325
22326 \begin_layout Plain Layout
22327 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22328 \end_layout
22329
22330 \end_inset
22331
22332 .
22333 \begin_inset Foot
22334 status collapsed
22335
22336 \begin_layout Plain Layout
22337 It will usually take a lot of time to get exact command right and it depends
22338  on many things.
22339  For example do not have some remote server saved as a default session in
22340  Putty etc.
22341  If things fail, try to connect via plink without SVN first.
22342 \end_layout
22343
22344 \end_inset
22345
22346
22347 \end_layout
22348
22349 \end_deeper
22350 \begin_layout Enumerate
22351 Checkout the SVN archive, e.
22352 \begin_inset space \thinspace{}
22353 \end_inset
22354
22355 g.
22356 \begin_inset Newline newline
22357 \end_inset
22358
22359
22360 \begin_inset Flex Code
22361 status collapsed
22362
22363 \begin_layout Plain Layout
22364 svn co svn+ssh://user@server/repository_path
22365 \end_layout
22366
22367 \end_inset
22368
22369 .
22370 \end_layout
22371
22372 \begin_layout Subsubsection
22373 End-of-Line Conversions
22374 \end_layout
22375
22376 \begin_layout Standard
22377 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22378  will
22379  use different line endings inside the .lyx files.
22380  This is not a problem as far as \SpecialChar LyX
22381  functionality is concerned, but the commit
22382  diffs will be huge and merge-conflicts prone.
22383  Fortunately SVN itself knows
22384 \begin_inset Foot
22385 status collapsed
22386
22387 \begin_layout Plain Layout
22388 \begin_inset Flex URL
22389 status collapsed
22390
22391 \begin_layout Plain Layout
22392
22393 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22394 \end_layout
22395
22396 \end_inset
22397
22398
22399 \end_layout
22400
22401 \end_inset
22402
22403  how to deal with CR/LF problems when switching .lyx files to the 
22404 \begin_inset Flex Code
22405 status collapsed
22406
22407 \begin_layout Plain Layout
22408 native
22409 \end_layout
22410
22411 \end_inset
22412
22413  mode.
22414 \begin_inset Foot
22415 status collapsed
22416
22417 \begin_layout Plain Layout
22418 For the lazy guys: 
22419 \begin_inset Flex Code
22420 status collapsed
22421
22422 \begin_layout Plain Layout
22423 svn propset svn:eol-style native FILE_NAME
22424 \end_layout
22425
22426 \end_inset
22427
22428
22429 \end_layout
22430
22431 \end_inset
22432
22433
22434 \end_layout
22435
22436 \begin_layout Subsection
22437 GIT commands in \SpecialChar LyX
22438
22439 \end_layout
22440
22441 \begin_layout Standard
22442 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22443 .
22444  You can find the commands in the 
22445 \family sans
22446 File\SpecialChar menuseparator
22447 Version
22448 \begin_inset space ~
22449 \end_inset
22450
22451 Control
22452 \family default
22453  submenu.
22454  Please note that if you use password protected access to repository via
22455  ssh, you will be asked in terminal window.
22456  \SpecialChar LyX
22457  was tested against GIT 1.7.
22458 \begin_inset Foot
22459 status open
22460
22461 \begin_layout Plain Layout
22462 Windows users please note that you need to ensure that git is on the path.
22463  This can be set from within \SpecialChar LyX
22464  at 
22465 \family sans
22466 Tools\SpecialChar menuseparator
22467 Preferences\SpecialChar menuseparator
22468 Paths\SpecialChar menuseparator
22469 PATH prefix
22470 \family default
22471 .
22472 \end_layout
22473
22474 \end_inset
22475
22476
22477 \end_layout
22478
22479 \begin_layout Standard
22480 One big difference of GIT and the other supported version control systems
22481  is the distributed nature of GIT: With traditional version control systems
22482  there is one central server which hosts the repository.
22483  Users commit their changes to the server, and get updates made by other
22484  users from it.
22485  With GIT, users commit to a local repository.
22486  The local repository can be synchronized with one or more remote repositories
22487  using the 
22488 \begin_inset Flex Code
22489 status collapsed
22490
22491 \begin_layout Plain Layout
22492 pull
22493 \end_layout
22494
22495 \end_inset
22496
22497  and 
22498 \begin_inset Flex Code
22499 status collapsed
22500
22501 \begin_layout Plain Layout
22502 push
22503 \end_layout
22504
22505 \end_inset
22506
22507  GIT commands.
22508  \SpecialChar LyX
22509  does not interact in any way with remote GIT repositories.
22510  It works exclusively with the local repository in a very similar way as
22511  with a central CVS or SVN repository.
22512  If you use remote GIT repositories you need to do the 
22513 \begin_inset Flex Code
22514 status collapsed
22515
22516 \begin_layout Plain Layout
22517 pull
22518 \end_layout
22519
22520 \end_inset
22521
22522  and 
22523 \begin_inset Flex Code
22524 status collapsed
22525
22526 \begin_layout Plain Layout
22527 push
22528 \end_layout
22529
22530 \end_inset
22531
22532  operations with your favourite GIT client.
22533 \end_layout
22534
22535 \begin_layout Subsubsection
22536
22537 \family sans
22538 Register
22539 \end_layout
22540
22541 \begin_layout Standard
22542 If your document is not under revision control, this is the only item shown
22543  in the menu.
22544  And if it is under revision control, the 
22545 \family sans
22546 \bar under
22547 R
22548 \bar default
22549 egister
22550 \family default
22551  item is not visible.
22552 \end_layout
22553
22554 \begin_layout Standard
22555 This command registers in GIT your document ONLY in case you have already
22556  the documents directory under GIT control (in particular 
22557 \family typewriter
22558 .git/index
22559 \family default
22560  file exists).
22561  This means you have to checkout the archive by yourself.
22562 \end_layout
22563
22564 \begin_layout Standard
22565 Then you are asked interactively to supply an initial description of the
22566  document.
22567  Don't forget that registered file is not yet commited.
22568 \end_layout
22569
22570 \begin_layout Standard
22571 GIT command that is run: 
22572 \family typewriter
22573 git add 
22574 \begin_inset Quotes eld
22575 \end_inset
22576
22577 <file-name>
22578 \begin_inset Quotes erd
22579 \end_inset
22580
22581
22582 \end_layout
22583
22584 \begin_layout Standard
22585 Read 
22586 \family typewriter
22587 man git
22588 \family default
22589  to understand the switches.
22590 \end_layout
22591
22592 \begin_layout Subsubsection
22593
22594 \family sans
22595 Check In Changes
22596 \end_layout
22597
22598 \begin_layout Standard
22599 When you are finished editing a file, you commit your changes.
22600  When you do this, you are asked for a description of the changes.
22601  After that changes are commited.
22602 \end_layout
22603
22604 \begin_layout Standard
22605 GIT command: 
22606 \family typewriter
22607 git commit -q -m"<description>" <file-name>
22608 \end_layout
22609
22610 \begin_layout Subsubsection
22611
22612 \family sans
22613 Revert To Repository Version
22614 \end_layout
22615
22616 \begin_layout Standard
22617 This will discard all changes made to the document since the last check
22618  in.
22619  You get a warning before changes are discarded.
22620 \end_layout
22621
22622 \begin_layout Standard
22623 GIT command: 
22624 \family typewriter
22625 git checkout -q 
22626 \begin_inset Quotes eld
22627 \end_inset
22628
22629 <file-name>
22630 \begin_inset Quotes erd
22631 \end_inset
22632
22633
22634 \end_layout
22635
22636 \begin_layout Subsubsection
22637
22638 \family sans
22639 Rename
22640 \end_layout
22641
22642 \begin_layout Standard
22643 This will rename the current document including the version history.
22644  It requires a clean document without any changes since the last checkin.
22645  You are asked for a file name and a description of the rename operation.
22646  After that the document is renamed, both locally and in the repository.
22647  If the parent directories of the new and old file names differ, all relative
22648  paths of included files are adjusted (like in 
22649 \family sans
22650 File\SpecialChar menuseparator
22651 Save As
22652 \family default
22653 \SpecialChar ldots
22654 ).
22655  Finally, the document is reloaded using the new name.
22656 \end_layout
22657
22658 \begin_layout Labeling
22659 \labelwidthstring 00.00.0000
22660 GIT
22661 \begin_inset space ~
22662 \end_inset
22663
22664 commands: 
22665 \begin_inset space ~
22666 \end_inset
22667
22668
22669 \begin_inset Newline newline
22670 \end_inset
22671
22672
22673 \begin_inset Flex Code
22674 status collapsed
22675
22676 \begin_layout Plain Layout
22677 git mv 
22678 \family typewriter
22679
22680 \begin_inset Quotes eld
22681 \end_inset
22682
22683 <file-name>
22684 \begin_inset Quotes erd
22685 \end_inset
22686
22687  
22688 \begin_inset Quotes eld
22689 \end_inset
22690
22691 <new-file-name>
22692 \begin_inset Quotes erd
22693 \end_inset
22694
22695
22696 \end_layout
22697
22698 \end_inset
22699
22700
22701 \begin_inset Newline newline
22702 \end_inset
22703
22704
22705 \begin_inset Flex Code
22706 status collapsed
22707
22708 \begin_layout Plain Layout
22709 git commit
22710 \end_layout
22711
22712 \end_inset
22713
22714
22715 \end_layout
22716
22717 \begin_layout Subsubsection
22718
22719 \family sans
22720 Show History
22721 \end_layout
22722
22723 \begin_layout Standard
22724 This shows the complete history of the GIT document.
22725  The output of 
22726 \family typewriter
22727 git log 
22728 \begin_inset Quotes eld
22729 \end_inset
22730
22731 <file-name>
22732 \begin_inset Quotes erd
22733 \end_inset
22734
22735
22736 \family default
22737  is shown in a browser.
22738 \end_layout
22739
22740 \begin_layout Subsubsection
22741 Version Info
22742 \end_layout
22743
22744 \begin_layout Standard
22745 \SpecialChar LyX
22746  supports GIT hash number of the last commit to the file, author name, date
22747  and time of last commit.
22748  All those are extracted from 
22749 \family typewriter
22750 git log -n 1 --pretty=format:%H%n%an%n%ai
22751 \family default
22752 .
22753  Tree version information is obtained via 
22754 \family typewriter
22755 git describe --abbrev --dirty --long
22756 \family default
22757 .
22758  See 
22759 \begin_inset CommandInset ref
22760 LatexCommand ref
22761 reference "subsec:VCS-Revision-Information"
22762
22763 \end_inset
22764
22765  for other details.
22766 \end_layout
22767
22768 \begin_layout Subsection
22769 Further tuning
22770 \end_layout
22771
22772 \begin_layout Standard
22773 With the recent addition of the vc-command function \SpecialChar LyX
22774  power users are allowed
22775  to create their own commands for revision control.
22776 \end_layout
22777
22778 \begin_layout Standard
22779 As an example you can see how two TortoiseSVN commands could be integrated
22780  directly:
22781 \end_layout
22782
22783 \begin_layout Description
22784 Commit: 
22785 \begin_inset Flex Code
22786 status collapsed
22787
22788 \begin_layout Plain Layout
22789 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22790 \end_layout
22791
22792 \end_inset
22793
22794
22795 \end_layout
22796
22797 \begin_layout Description
22798 Revert: 
22799 \begin_inset Flex Code
22800 status collapsed
22801
22802 \begin_layout Plain Layout
22803 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22804 \end_layout
22805
22806 \end_inset
22807
22808
22809 \end_layout
22810
22811 \begin_layout Subsection
22812 Version control and Document comparison
22813 \end_layout
22814
22815 \begin_layout Standard
22816 One of the typical uses of version control is to inspect the changes between
22817  revisions, usually by creating 
22818 \begin_inset Flex Code
22819 status collapsed
22820
22821 \begin_layout Plain Layout
22822 diff
22823 \end_layout
22824
22825 \end_inset
22826
22827  dumps.
22828  While this is useful for plain text files, it is much less useful in the
22829  case of \SpecialChar LyX
22830  files, which have more a complicated structure.
22831  Hence we provide binding to the Document comparison feature.
22832  There are two ways of calling this feature - either by direct call of 
22833 \begin_inset Flex Code
22834 status collapsed
22835
22836 \begin_layout Plain Layout
22837 VC_COMPARE
22838 \end_layout
22839
22840 \end_inset
22841
22842  \SpecialChar LyX
22843  function (for details see \SpecialChar LyX
22844  functions manual) or by icon/menu item 
22845 \begin_inset Flex MenuItem
22846 status collapsed
22847
22848 \begin_layout Plain Layout
22849 Compare with older revision...
22850 \end_layout
22851
22852 \end_inset
22853
22854 .
22855  One can either compare two chosen revisions of the document or he can simply
22856  compare the current version of edited text with older revisions (where
22857  '
22858 \begin_inset Flex MenuItem
22859 status collapsed
22860
22861 \begin_layout Plain Layout
22862 0
22863 \end_layout
22864
22865 \end_inset
22866
22867 ' revisions back means comparison of the edited file with last commited
22868  revision).
22869  
22870 \end_layout
22871
22872 \begin_layout Standard
22873 This feature is supported for SVN and RCS though due to the more complicated
22874  versioning scheme of RCS there is a constraint – when addressing the revisions
22875  in dialog, numbers always point to the last number in RCS revision number,
22876  i.e.
22877  '35' in '1.2.35'.
22878  We don't currently support GIT addressing of revisions, one can just compare
22879  edited document with its revision X steps backs, where X is addressed as
22880  HEAD~X.
22881 \end_layout
22882
22883 \begin_layout Section
22884 Literate Programming
22885 \end_layout
22886
22887 \begin_layout Standard
22888 Updated by 
22889 \noun on
22890 Kayvan Sylvan 
22891 \noun default
22892 (kayvan@sylvan.com)
22893 \noun on
22894
22895 \noun default
22896 original documentation written by 
22897 \noun on
22898 Edmar Wienskoski Jr.
22899
22900 \noun default
22901  (edmar-w-jr@technologist.com)
22902 \end_layout
22903
22904 \begin_layout Subsection
22905 Introduction
22906 \end_layout
22907
22908 \begin_layout Standard
22909 The main purpose of this documentation is to show you how to use \SpecialChar LyX
22910  for literate
22911  programming, where it is assumed that you are familiar with this programming
22912  technique, and know what 
22913 \begin_inset Quotes eld
22914 \end_inset
22915
22916 tangling
22917 \begin_inset Quotes erd
22918 \end_inset
22919
22920  and 
22921 \begin_inset Quotes eld
22922 \end_inset
22923
22924 weaving
22925 \begin_inset Quotes erd
22926 \end_inset
22927
22928  means.
22929  If that is not the case, please follow the web links provided in the following
22930  sections.
22931  There is a lot of good documentation out there covering old development
22932  history to the latest tools tips.
22933 \end_layout
22934
22935 \begin_layout Standard
22936 It is also assumed that you are familiar with \SpecialChar LyX
22937  itself to a point that you
22938  are comfortable changing your \SpecialChar LyX
22939  preferences, and X resources file.
22940  If that is not the case please refer to other \SpecialChar LyX
22941  documentation to cover your
22942  specific needs.
22943 \end_layout
22944
22945 \begin_layout Subsection
22946 Literate Programming
22947 \end_layout
22948
22949 \begin_layout Standard
22950 From the Literate Programming FAQ: 
22951 \end_layout
22952
22953 \begin_layout Quotation
22954 Literate programming is the combination of documentation and source together
22955  in a fashion suited for reading by human beings.
22956  In fact, literate programs should be enjoyable reading, even inviting!
22957  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
22958  and documentation in a single file.
22959  Literate programming tools then parse the file to produce either readable
22960  documentation or compilable source.
22961  The WEB style of literate programming was created by D.
22962 \begin_inset space \thinspace{}
22963 \end_inset
22964
22965 E.
22966  Knuth during the development of his \SpecialChar TeX
22967  typesetting software.
22968  
22969 \end_layout
22970
22971 \begin_layout Standard
22972 Another excerpt says:
22973 \end_layout
22974
22975 \begin_layout Quotation
22976
22977 \emph on
22978 How is literate programming different from verbose commenting?
22979 \end_layout
22980
22981 \begin_layout Quotation
22982 There are three distinguishing characteristics.
22983  In order of importance, they are: 
22984 \begin_inset Separator parbreak
22985 \end_inset
22986
22987
22988 \end_layout
22989
22990 \begin_deeper
22991 \begin_layout Itemize
22992 flexible order of elaboration 
22993 \end_layout
22994
22995 \begin_layout Itemize
22996 automatic support for browsing 
22997 \end_layout
22998
22999 \begin_layout Itemize
23000 typeset documentation, especially diagrams and mathematics 
23001 \end_layout
23002
23003 \end_deeper
23004 \begin_layout Standard
23005 Now that I sparked your curiosity, take a look in the references.
23006 \end_layout
23007
23008 \begin_layout Subsubsection
23009 References
23010 \end_layout
23011
23012 \begin_layout Standard
23013 The complete Literate Programming FAQ can be found at:
23014 \end_layout
23015
23016 \begin_layout Quote
23017 Literate Programming FAQ 
23018 \begin_inset Flex URL
23019 status collapsed
23020
23021 \begin_layout Plain Layout
23022
23023 http://www.literateprogramming.com/lpfaq.pdf
23024 \end_layout
23025
23026 \end_inset
23027
23028
23029 \end_layout
23030
23031 \begin_layout Standard
23032 The FAQ lists 23 (twenty three!) different literate programming tools.
23033  Where some are specialized or 
23034 \begin_inset Quotes eld
23035 \end_inset
23036
23037 tailored
23038 \begin_inset Quotes erd
23039 \end_inset
23040
23041  for particular programming languages, while other have general scope.
23042  I selected 
23043 \noun on
23044 Noweb
23045 \noun default
23046  for my own use for several reasons:
23047 \end_layout
23048
23049 \begin_layout Itemize
23050 It can generate the documentation either in \SpecialChar LaTeX
23051  or HTML.
23052 \end_layout
23053
23054 \begin_layout Itemize
23055 It has a open architecture, i.
23056 \begin_inset space \thinspace{}
23057 \end_inset
23058
23059 e.
23060 \begin_inset space \space{}
23061 \end_inset
23062
23063 it is easy to plug in new filters and to perform special processing that
23064  you may need.
23065  
23066 \end_layout
23067
23068 \begin_layout Itemize
23069 There is a good selection of filters available already (the HTML is one
23070  of them).
23071 \end_layout
23072
23073 \begin_layout Itemize
23074 It is free.
23075 \end_layout
23076
23077 \begin_layout Standard
23078 The Noweb web page can be found at: 
23079 \end_layout
23080
23081 \begin_layout Quote
23082 Noweb home page 
23083 \begin_inset Flex URL
23084 status collapsed
23085
23086 \begin_layout Plain Layout
23087
23088 http://www.cs.virginia.edu/~nr/noweb/
23089 \end_layout
23090
23091 \end_inset
23092
23093
23094 \end_layout
23095
23096 \begin_layout Standard
23097 Starting from there you can reach many other interesting links and even
23098  some literate program examples.
23099 \end_layout
23100
23101 \begin_layout Subsection
23102 \SpecialChar LyX
23103  and Literate Programming with Noweb
23104 \end_layout
23105
23106 \begin_layout Standard
23107 The \SpecialChar LyX
23108  support for Literate Programming is provided by using the generic \SpecialChar LyX
23109
23110  converters mechanism.
23111  This support is provided in a 
23112 \begin_inset Quotes eld
23113 \end_inset
23114
23115 Noweb independent
23116 \begin_inset Quotes erd
23117 \end_inset
23118
23119  way, i.
23120 \begin_inset space \thinspace{}
23121 \end_inset
23122
23123 e.
23124 \begin_inset space \space{}
23125 \end_inset
23126
23127 you will be able to use this new \SpecialChar LyX
23128  feature with some other literate programming
23129  tool of your choice by just changing your \SpecialChar LyX
23130  preferences.
23131 \end_layout
23132
23133 \begin_layout Subsubsection
23134 Generating documents and code (weaving and tangling)
23135 \end_layout
23136
23137 \begin_layout Paragraph
23138 Using the noweb module
23139 \end_layout
23140
23141 \begin_layout Standard
23142 If you have installed Noweb and \SpecialChar LyX
23143  successfully, whenever you open a new document,
23144  after you have chosen its document class, use the Document->Settings menu
23145  to add the 
23146 \begin_inset Quotes eld
23147 \end_inset
23148
23149 noweb
23150 \begin_inset Quotes erd
23151 \end_inset
23152
23153  module.
23154  If Noweb is correctly installed, when you click on the 
23155 \begin_inset Quotes eld
23156 \end_inset
23157
23158 Modules
23159 \begin_inset Quotes erd
23160 \end_inset
23161
23162  link, you will see the 
23163 \begin_inset Quotes eld
23164 \end_inset
23165
23166 noweb
23167 \begin_inset Quotes erd
23168 \end_inset
23169
23170  module in the available list and you can add it to your document.
23171 \end_layout
23172
23173 \begin_layout Paragraph
23174 Typing code in
23175 \end_layout
23176
23177 \begin_layout Standard
23178 \SpecialChar LyX
23179  enables you to write code with a layout named 
23180 \begin_inset Flex Noun
23181 status collapsed
23182
23183 \begin_layout Plain Layout
23184 Chunk
23185 \end_layout
23186
23187 \end_inset
23188
23189 .
23190  Noweb delimits chunks like this:
23191 \end_layout
23192
23193 \begin_layout LyX-Code
23194 <<My code>>=
23195 \end_layout
23196
23197 \begin_layout LyX-Code
23198   code
23199 \end_layout
23200
23201 \begin_layout LyX-Code
23202   more code
23203 \end_layout
23204
23205 \begin_layout LyX-Code
23206   even more code
23207 \end_layout
23208
23209 \begin_layout LyX-Code
23210   @
23211 \end_layout
23212
23213 \begin_layout Standard
23214 The problem is that whatever is written in between the << and the 
23215 \family typewriter
23216 @
23217 \family default
23218  must be taken literally, i.
23219 \begin_inset space \thinspace{}
23220 \end_inset
23221
23222 e.
23223 \begin_inset space \space{}
23224 \end_inset
23225
23226 \SpecialChar LyX
23227  should be prevented from making any special interpretation of what has
23228  been written.
23229  This is also handled by 
23230 \begin_inset Flex Noun
23231 status collapsed
23232
23233 \begin_layout Plain Layout
23234 Chunk
23235 \end_layout
23236
23237 \end_inset
23238
23239 , that works like a normal paragraph but has a free spacing capability.
23240 \end_layout
23241
23242 \begin_layout Standard
23243 As a special note, you can also use the 
23244 \begin_inset Quotes eld
23245 \end_inset
23246
23247 %def
23248 \begin_inset Quotes erd
23249 \end_inset
23250
23251  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23252 rence:
23253 \end_layout
23254
23255 \begin_layout LyX-Code
23256 <<My chunk>>=
23257 \end_layout
23258
23259 \begin_layout LyX-Code
23260 def some_function(args):
23261 \end_layout
23262
23263 \begin_layout LyX-Code
23264    "This is the doc string for this function."
23265 \end_layout
23266
23267 \begin_layout LyX-Code
23268    print "My args: ", args
23269 \end_layout
23270
23271 \begin_layout LyX-Code
23272 @ %def some_function
23273 \end_layout
23274
23275 \begin_layout Standard
23276 For an example of this usage and the resulting cross-reference output, look
23277  at the Literate python program in 
23278 \emph on
23279 LIBDIR/examples/listerrors.lyx
23280 \emph default
23281  which should make this all clear.
23282 \end_layout
23283
23284 \begin_layout Paragraph
23285 Generating the documentation
23286 \end_layout
23287
23288 \begin_layout Standard
23289 At this point you already have a new document file with a proper document
23290  class, and with some code and text on it.
23291  How do I print it? The answer is simple, you select 
23292 \family sans
23293 View\SpecialChar menuseparator
23294 DVI,
23295 \family default
23296  etc.
23297  Just like you would do for a plain document.
23298  No special procedure is required.
23299 \end_layout
23300
23301 \begin_layout Standard
23302 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23303 :
23304 \end_layout
23305
23306 \begin_layout Enumerate
23307 When the 
23308 \family sans
23309 Update\SpecialChar menuseparator
23310 DVI
23311 \family default
23312  menu option is chosen, a \SpecialChar LaTeX
23313  file is generated.
23314  
23315 \begin_inset Separator parbreak
23316 \end_inset
23317
23318
23319 \end_layout
23320
23321 \begin_deeper
23322 \begin_layout Standard
23323 If the document is of any literate class the generated file will be named
23324  with an extension name defined by the 
23325 \begin_inset Quotes eld
23326 \end_inset
23327
23328 literate
23329 \begin_inset Quotes erd
23330 \end_inset
23331
23332  format (defined in the Preferences panel), otherwise the file will have
23333  the usual 
23334 \family typewriter
23335 .tex
23336 \family default
23337  extension.
23338 \end_layout
23339
23340 \end_deeper
23341 \begin_layout Enumerate
23342 Note that the only difference so far is in the name of the file, no special
23343  processing is required by \SpecialChar LyX
23344 .
23345  Given that you formatted the code using the 
23346 \begin_inset Flex Noun
23347 status collapsed
23348
23349 \begin_layout Plain Layout
23350 Chunk
23351 \end_layout
23352
23353 \end_inset
23354
23355  layout that, by itself, takes care of the business.
23356 \end_layout
23357
23358 \begin_layout Enumerate
23359 If the document is of any literate class \SpecialChar LyX
23360  will then use the internal \SpecialChar LyX
23361  to
23362  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23363  converter
23364 \begin_inset Foot
23365 status collapsed
23366
23367 \begin_layout Plain Layout
23368 The converters are defined in the 
23369 \family sans
23370 Tools\SpecialChar menuseparator
23371 Preferences
23372 \family default
23373  panel, under the 
23374 \begin_inset Quotes eld
23375 \end_inset
23376
23377 Conversion
23378 \begin_inset Quotes erd
23379 \end_inset
23380
23381  tab.
23382  See section 
23383 \emph on
23384 Converters
23385 \emph default
23386  of the 
23387 \emph on
23388 Customization
23389 \emph default
23390  manual for general information about converters.
23391 \end_layout
23392
23393 \end_inset
23394
23395  to generate the \SpecialChar LaTeX
23396  file.
23397 \begin_inset Separator parbreak
23398 \end_inset
23399
23400
23401 \end_layout
23402
23403 \begin_deeper
23404 \begin_layout Standard
23405 Otherwise it will just skip this step.
23406 \end_layout
23407
23408 \end_deeper
23409 \begin_layout Enumerate
23410 Finally, \SpecialChar LaTeX
23411  is invoked and the regular post processing continues as in a plain
23412  document.
23413 \end_layout
23414
23415 \begin_layout Standard
23416 Independence from a particular 
23417 \begin_inset Quotes eld
23418 \end_inset
23419
23420 literate tool
23421 \begin_inset Quotes erd
23422 \end_inset
23423
23424  is easily achieved by changing the commands that are run by the various
23425  converters.
23426 \end_layout
23427
23428 \begin_layout Paragraph
23429 Generating the code
23430 \end_layout
23431
23432 \begin_layout Standard
23433 When the build menu option is chosen or the corresponding button in the
23434  toolbar is pressed, a \SpecialChar LaTeX
23435  file is generated just like step 1 above.
23436  Next, \SpecialChar LyX
23437  invokes the 
23438 \family typewriter
23439 Noweb->Program
23440 \family default
23441  converter.
23442  This converter needs to be defined by the user and is not installed by
23443  default, though the Program format is.
23444  This converter (like any other converter) will have two parts:
23445 \end_layout
23446
23447 \begin_layout Enumerate
23448 The converter program itself.
23449  This program performs the conversion from the one format to the other (in
23450  this case, from the Noweb format to the Program pseudo-format).
23451 \end_layout
23452
23453 \begin_layout Enumerate
23454 The error log parser.
23455  This is a program whose sole purpose is to rewrite error messages in a
23456  format that \SpecialChar LyX
23457  understands.
23458  This makes it possible for \SpecialChar LyX
23459  to place error boxes in the right places in
23460  the file buffer.
23461 \end_layout
23462
23463 \begin_layout Standard
23464 The first part, the 
23465 \begin_inset Quotes eld
23466 \end_inset
23467
23468 Converter
23469 \begin_inset Quotes erd
23470 \end_inset
23471
23472  setting, should be set to
23473 \begin_inset Newline newline
23474 \end_inset
23475
23476
23477 \begin_inset Quotes eld
23478 \end_inset
23479
23480
23481 \family typewriter
23482 build-script $$i
23483 \family default
23484  $$r
23485 \begin_inset Quotes erd
23486 \end_inset
23487
23488 .
23489 \begin_inset Newline newline
23490 \end_inset
23491
23492 This basically means that \SpecialChar LyX
23493  will call 
23494 \begin_inset Quotes eld
23495 \end_inset
23496
23497 build-script
23498 \begin_inset Quotes erd
23499 \end_inset
23500
23501  (a program or script) with the name of the Noweb file (normally a file
23502  in the \SpecialChar LyX
23503  temp directory) and the directory path of the original \SpecialChar LyX
23504  file.
23505  
23506 \end_layout
23507
23508 \begin_layout Standard
23509 This is an implementation of 
23510 \begin_inset Quotes eld
23511 \end_inset
23512
23513 build-script
23514 \begin_inset Quotes erd
23515 \end_inset
23516
23517  that you can place in a directory on your path:
23518 \end_layout
23519
23520 \begin_layout Standard
23521 \begin_inset VSpace defskip
23522 \end_inset
23523
23524
23525 \end_layout
23526
23527 \begin_layout Standard
23528 \begin_inset Newpage pagebreak
23529 \end_inset
23530
23531
23532 \end_layout
23533
23534 \begin_layout Standard
23535
23536 \family sans
23537 #!/bin/sh
23538 \end_layout
23539
23540 \begin_layout Standard
23541
23542 \family sans
23543 #
23544 \end_layout
23545
23546 \begin_layout Standard
23547
23548 \family sans
23549 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23550 \end_layout
23551
23552 \begin_layout Standard
23553 \begin_inset VSpace defskip
23554 \end_inset
23555
23556
23557 \end_layout
23558
23559 \begin_layout Standard
23560 The next part of the converter setting is the 
23561 \begin_inset Quotes eld
23562 \end_inset
23563
23564 Flags
23565 \begin_inset Quotes erd
23566 \end_inset
23567
23568  which is to be set to
23569 \begin_inset Newline newline
23570 \end_inset
23571
23572
23573 \begin_inset Quotes eld
23574 \end_inset
23575
23576
23577 \family typewriter
23578 parselog=$$s/scripts/listerrors
23579 \family default
23580
23581 \begin_inset Quotes erd
23582 \end_inset
23583
23584 .
23585 \begin_inset Newline newline
23586 \end_inset
23587
23588 This will run any errors that are generated by the 
23589 \begin_inset Quotes eld
23590 \end_inset
23591
23592 build-script
23593 \begin_inset Quotes erd
23594 \end_inset
23595
23596  process through the 
23597 \begin_inset Quotes eld
23598 \end_inset
23599
23600 listerrors
23601 \begin_inset Quotes erd
23602 \end_inset
23603
23604  program.
23605 \end_layout
23606
23607 \begin_layout Standard
23608 The build will normally take place in \SpecialChar LyX
23609 's temporary directory, so the files
23610  produced by the conversion will be in that directory.
23611  \SpecialChar LyX
23612  will copy out what it regards as the `main' file, but the 
23613 \family typewriter
23614 Noweb->Program
23615 \family default
23616  conversion may produce several files, and so most of these would then be
23617  deleted when \SpecialChar LyX
23618  was closed.
23619  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23620  the build-script chunk can place the generated files in that location.
23621 \end_layout
23622
23623 \begin_layout Paragraph
23624 Build instructions in the document
23625 \end_layout
23626
23627 \begin_layout Standard
23628 The last piece of the integration between \SpecialChar LyX
23629  and noweb is the 
23630 \begin_inset Quotes eld
23631 \end_inset
23632
23633 build-script
23634 \begin_inset Quotes erd
23635 \end_inset
23636
23637  chunk.
23638  Generally, the instructions for building your program should be embedded
23639  in a chunk of its own.
23640  The noweb-specific 
23641 \begin_inset Quotes eld
23642 \end_inset
23643
23644 build-script
23645 \begin_inset Quotes erd
23646 \end_inset
23647
23648  above uses the notangle command to look for this chunk (called 
23649 \begin_inset Quotes eld
23650 \end_inset
23651
23652 build-script
23653 \begin_inset Quotes erd
23654 \end_inset
23655
23656 ) and runs its contents through 
23657 \begin_inset Quotes eld
23658 \end_inset
23659
23660 sh
23661 \begin_inset Quotes erd
23662 \end_inset
23663
23664 .
23665 \end_layout
23666
23667 \begin_layout Standard
23668 Typically, such a chunk would look something like this:
23669 \end_layout
23670
23671 \begin_layout LyX-Code
23672 <<build-script>>=
23673 \end_layout
23674
23675 \begin_layout LyX-Code
23676 #!/bin/sh
23677 \begin_inset Newline newline
23678 \end_inset
23679
23680 if [ -z "${NOWEB_SOURCE}" ]
23681 \begin_inset Newline newline
23682 \end_inset
23683
23684 then
23685 \end_layout
23686
23687 \begin_layout LyX-Code
23688 NOWEB_SOURCE=myfile.nw
23689 \begin_inset Newline newline
23690 \end_inset
23691
23692 fi
23693 \begin_inset Newline newline
23694 \end_inset
23695
23696 [...
23697  code to extract files ...
23698  use NOWEB_OUTPUT_DIR here ...]
23699 \begin_inset Newline newline
23700 \end_inset
23701
23702 [...
23703  code to compile files ...]
23704 \begin_inset Newline newline
23705 \end_inset
23706
23707 @
23708 \end_layout
23709
23710 \begin_layout Standard
23711 Look in 
23712 \emph on
23713 LIBDIR/examples/listerrors.lyx
23714 \emph default
23715  or in 
23716 \emph on
23717 LIBDIR/examples/Literate.lyx
23718 \emph default
23719  which implement two versions of the 
23720 \begin_inset Quotes eld
23721 \end_inset
23722
23723 listerrors
23724 \begin_inset Quotes erd
23725 \end_inset
23726
23727  program for some illustrations of how all of these pieces go together or
23728  in 
23729 \emph on
23730 LIBDIR/examples/noweb2lyx.lyx.
23731
23732 \emph default
23733  Interestingly, these three files show off the language-indepence of the
23734  \SpecialChar LyX
23735  literate programming support since they are written in Python, C and Perl
23736  respectively.
23737 \end_layout
23738
23739 \begin_layout Subsubsection
23740 Configuring \SpecialChar LyX
23741
23742 \end_layout
23743
23744 \begin_layout Standard
23745 All the Literate Programming support is configured by the 
23746 \family sans
23747 Tools\SpecialChar menuseparator
23748 Preferences
23749 \family default
23750  panel in the 
23751 \begin_inset Quotes eld
23752 \end_inset
23753
23754 File Handling
23755 \begin_inset Quotes erd
23756 \end_inset
23757
23758  tab.
23759  The important parts are:
23760 \end_layout
23761
23762 \begin_layout Description
23763 the
23764 \begin_inset space ~
23765 \end_inset
23766
23767
23768 \begin_inset Quotes eld
23769 \end_inset
23770
23771 NoWeb
23772 \begin_inset Quotes erd
23773 \end_inset
23774
23775
23776 \begin_inset space ~
23777 \end_inset
23778
23779 format Set up via the File Formats tab, this is where the Noweb-specific
23780  pieces are set up.
23781  The 
23782 \family sans
23783 GUI Name
23784 \family default
23785  is set to 
23786 \family typewriter
23787 NoWeb
23788 \family default
23789 , the file extension is set to 
23790 \family typewriter
23791 .nw
23792 \family default
23793 .
23794  This tells \SpecialChar LyX
23795  to create a file with a 
23796 \family typewriter
23797 .nw
23798 \family default
23799  extension in the first step of the conversion process.
23800 \end_layout
23801
23802 \begin_layout Description
23803 the
23804 \begin_inset space ~
23805 \end_inset
23806
23807
23808 \family sans
23809 Program
23810 \family default
23811
23812 \begin_inset space ~
23813 \end_inset
23814
23815 format This is an empty format whose sole purpose is to be the endpoint
23816  of a conversion (which then allows us to set up a converter for it).
23817 \end_layout
23818
23819 \begin_layout Description
23820
23821 \family sans
23822 NoWeb
23823 \family default
23824 ->
23825 \family sans
23826 \SpecialChar LaTeX
23827
23828 \family default
23829  This converter performs the 
23830 \begin_inset Quotes eld
23831 \end_inset
23832
23833 weaving
23834 \begin_inset Quotes erd
23835 \end_inset
23836
23837  of the literate document.
23838  For Noweb, it is set to 
23839 \begin_inset Quotes eld
23840 \end_inset
23841
23842
23843 \family typewriter
23844 noweave -delay -index $$i > $$o
23845 \family default
23846
23847 \begin_inset Quotes erd
23848 \end_inset
23849
23850
23851 \end_layout
23852
23853 \begin_layout Description
23854
23855 \family sans
23856 NoWeb
23857 \family default
23858 ->
23859 \family sans
23860 Program
23861 \family default
23862  This performs the 
23863 \begin_inset Quotes eld
23864 \end_inset
23865
23866 tangling step
23867 \begin_inset Quotes erd
23868 \end_inset
23869
23870 .
23871  As stated above, the Converter is set to 
23872 \begin_inset Quotes eld
23873 \end_inset
23874
23875
23876 \family typewriter
23877 build-script $$i
23878 \family default
23879  $$r
23880 \begin_inset Quotes erd
23881 \end_inset
23882
23883 , with Flags set to
23884 \begin_inset Newline newline
23885 \end_inset
23886
23887
23888 \begin_inset Quotes eld
23889 \end_inset
23890
23891
23892 \family typewriter
23893 parselog=$$s/scripts/listerrors
23894 \family default
23895
23896 \begin_inset Quotes erd
23897 \end_inset
23898
23899 .
23900 \end_layout
23901
23902 \begin_layout Subsubsection
23903 Debug extensions
23904 \end_layout
23905
23906 \begin_layout Standard
23907 There is also a new function implemented in the \SpecialChar LyX
23908  server, the 
23909 \begin_inset Quotes eld
23910 \end_inset
23911
23912 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
23913  
23914 \end_layout
23915
23916 \begin_layout Standard
23917 When debugging code with ddd/gdb, it is possible to invoke a text editor
23918  at the current execution position with a single key stroke.
23919  The default ddd configuration for that is shift-ctrl-V.
23920  It happens that you can define the editor command line invocation in ddd
23921  by accessing the 
23922 \family sans
23923 Edit\SpecialChar menuseparator
23924 Preferences\SpecialChar menuseparator
23925 Helpers
23926 \family default
23927  dialog and changing the "Edit Sources" entry.
23928 \end_layout
23929
23930 \begin_layout Standard
23931 I take advantage of the newly created \SpecialChar LyX
23932  server function and this ddd feature,
23933  and set 
23934 \begin_inset Quotes eld
23935 \end_inset
23936
23937 Edit Sources
23938 \begin_inset Quotes erd
23939 \end_inset
23940
23941  to:
23942 \end_layout
23943
23944 \begin_layout Standard
23945 \begin_inset VSpace defskip
23946 \end_inset
23947
23948
23949 \end_layout
23950
23951 \begin_layout Standard
23952
23953 \family sans
23954 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
23955 \end_layout
23956
23957 \begin_layout Standard
23958 \begin_inset VSpace defskip
23959 \end_inset
23960
23961
23962 \end_layout
23963
23964 \begin_layout Standard
23965 With this, whenever you are using ddd and find a point in the program that
23966  you want to edit, you just press shift-ctrl-V (in the ddd window), and
23967  ddd will forward this information to \SpecialChar LyX
23968  through the \SpecialChar LyX
23969  server and then the
23970  \SpecialChar LyX
23971  window will show the same file with the cursor at the same position ddd
23972  was pointing to.
23973  No more guessing or long scrolling to locate a point in the program back
23974  from debugging !
23975 \end_layout
23976
23977 \begin_layout Standard
23978 Note however that you must enable the \SpecialChar LyX
23979  server to get this feature working
23980  (it is disabled by default).
23981  You can enable it in 
23982 \family sans
23983 Preferences
23984 \family default
23985  (tabs 
23986 \family sans
23987 Inputs
23988 \family default
23989
23990 \family sans
23991 Paths
23992 \family default
23993 ) by entering in the 
23994 \family sans
23995 \SpecialChar LyX
23996 server pipe
23997 \family default
23998  a path like 
23999 \begin_inset Quotes eld
24000 \end_inset
24001
24002
24003 \family typewriter
24004 /home/<your-home-directory>/.lyx/lyxpipe
24005 \family default
24006
24007 \begin_inset Quotes erd
24008 \end_inset
24009
24010
24011 \end_layout
24012
24013 \begin_layout Standard
24014 Read the \SpecialChar LyX
24015  server documentation in the 
24016 \emph on
24017 Customization Manual
24018 \emph default
24019  for further information.
24020 \end_layout
24021
24022 \begin_layout Subsubsection
24023 Toolbar extensions
24024 \end_layout
24025
24026 \begin_layout Standard
24027 There are six new buttons that can be added to your \SpecialChar LyX
24028  toolbar.
24029  Five of these buttons are short cuts to layout styles: 
24030 \family sans
24031 Standard
24032 \family default
24033
24034 \family sans
24035 Section
24036 \family default
24037
24038 \family sans
24039 \SpecialChar LaTeX
24040
24041 \family default
24042
24043 \family sans
24044 \SpecialChar LyX
24045 -Code
24046 \family default
24047 , and 
24048 \family sans
24049 Chunk
24050 \family default
24051 .
24052  The last one is a short cut to the 
24053 \begin_inset Quotes eld
24054 \end_inset
24055
24056 Build Program
24057 \begin_inset Quotes erd
24058 \end_inset
24059
24060  File menu entry.
24061  
24062 \end_layout
24063
24064 \begin_layout Standard
24065 \SpecialChar LyX
24066  has a range of buttons that are available for tool bar customization.
24067  In my toolbar I like to combine the six short cuts above with two more:
24068  One for 
24069 \family sans
24070 Document
24071 \family default
24072 \SpecialChar menuseparator
24073
24074 \family sans
24075 Update
24076 \family default
24077 \SpecialChar menuseparator
24078
24079 \family sans
24080 DVI
24081 \family default
24082  and the other for 
24083 \family sans
24084 Document\SpecialChar menuseparator
24085 View\SpecialChar menuseparator
24086 DVI
24087 \family default
24088  File menu entries.
24089  Here is how it looks like:
24090 \end_layout
24091
24092 \begin_layout LyX-Code
24093 Toolbar
24094 \end_layout
24095
24096 \begin_layout LyX-Code
24097   Layouts
24098 \end_layout
24099
24100 \begin_layout LyX-Code
24101   Icon "layout Standard"
24102 \end_layout
24103
24104 \begin_layout LyX-Code
24105   Icon "layout Section"
24106 \end_layout
24107
24108 \begin_layout LyX-Code
24109   Icon "layout \SpecialChar LaTeX
24110 "
24111 \end_layout
24112
24113 \begin_layout LyX-Code
24114   Icon "layout \SpecialChar LyX
24115 -Code"
24116 \end_layout
24117
24118 \begin_layout LyX-Code
24119   Icon "layout Chunk"
24120 \end_layout
24121
24122 \begin_layout LyX-Code
24123   Separator
24124 \end_layout
24125
24126 \begin_layout LyX-Code
24127   Icon "buffer-view"
24128 \end_layout
24129
24130 \begin_layout LyX-Code
24131   Icon "buffer-typeset"
24132 \end_layout
24133
24134 \begin_layout LyX-Code
24135   Icon "build-program"
24136 \end_layout
24137
24138 \begin_layout LyX-Code
24139   Separator
24140 \end_layout
24141
24142 \begin_layout LyX-Code
24143 .
24144 \end_layout
24145
24146 \begin_layout LyX-Code
24147 .
24148 \end_layout
24149
24150 \begin_layout LyX-Code
24151 .
24152 \end_layout
24153
24154 \begin_layout LyX-Code
24155 End
24156 \end_layout
24157
24158 \begin_layout Subsubsection
24159 Colors customization
24160 \end_layout
24161
24162 \begin_layout Standard
24163 There are a number of colors in \SpecialChar LyX
24164  that can be customized in 
24165 \family sans
24166 Preferences
24167 \family default
24168 .
24169  One of the things that bothers people is the \SpecialChar LaTeX
24170  font color.
24171  The default color is red, since the chunks uses \SpecialChar LaTeX
24172  font, and there is a lot
24173  of chunks in literate documents, you may get tired of seeing everything
24174  in red.
24175  You can change it by going to the tabs 
24176 \family sans
24177 Look&Feel
24178 \family default
24179
24180 \family sans
24181 Colors.
24182 \end_layout
24183
24184 \begin_layout Standard
24185 The next thing is the visible presence of the newline character in the screen.
24186  You can choose the color of this particular character and make it blend
24187  in the background.
24188  I recommend you choosing a color that is close to the background but not
24189  equal, that way you still can see it is there, but it is not bothering
24190  you anymore.
24191 \end_layout
24192
24193 \begin_layout Subsection
24194 \SpecialChar LyX
24195  and knitr/Sweave
24196 \end_layout
24197
24198 \begin_layout Standard
24199 Support for 
24200 \family sans
24201 knitr
24202 \family default
24203  and 
24204 \family sans
24205 Sweave
24206 \family default
24207  is documented in the 
24208 \emph on
24209 knitr.lyx
24210 \emph default
24211  example file and in the Sweave manual (menu 
24212 \family sans
24213 Help\SpecialChar menuseparator
24214 Specific Manuals
24215 \family default
24216 ).
24217 \end_layout
24218
24219 \begin_layout Chapter
24220 Special features
24221 \end_layout
24222
24223 \begin_layout Standard
24224 You can do everything with \SpecialChar LyX
24225  that you can do with \SpecialChar LaTeX
24226 .
24227  However, \SpecialChar LyX
24228  cannot support every \SpecialChar LaTeX
24229  feature directly.
24230  But you can always use \SpecialChar TeX
24231  Code.
24232  This chapter shows you some more special things you might want to use.
24233  For other special things you can do with figures, tables, floats, boxes
24234  and notes, have a look at the 
24235 \emph on
24236 Embedded
24237 \begin_inset space ~
24238 \end_inset
24239
24240 Objects
24241 \emph default
24242  manual.
24243 \end_layout
24244
24245 \begin_layout Section
24246 Multiple Text Columns
24247 \end_layout
24248
24249 \begin_layout Standard
24250 This feature is independent of the option 
24251 \family sans
24252 Two-column document
24253 \family default
24254  in the document settings under 
24255 \family sans
24256 Text Layout
24257 \family default
24258 .
24259  If you want to have 2
24260 \begin_inset space ~
24261 \end_inset
24262
24263 columns for the whole document, it is recommended to use the 
24264 \family sans
24265 Two-column document
24266 \family default
24267  option.
24268  For all other cases use this feature.
24269 \end_layout
24270
24271 \begin_layout Standard
24272 To use multiple text columns in your document, you have to load the module
24273  
24274 \family sans
24275 Multiple Columns
24276 \family default
24277  (menu 
24278 \family sans
24279 Document\SpecialChar menuseparator
24280 Settings\SpecialChar menuseparator
24281 Modules
24282 \family default
24283 ) and must have the \SpecialChar LaTeX
24284 -package 
24285 \series bold
24286 multicol
24287 \series default
24288  installed.
24289 \end_layout
24290
24291 \begin_layout Standard
24292 Footnotes within multiple columns will be placed at the bottom of the page
24293  and not under each column.
24294  Within the different columns you can use everything, with the limitation
24295  that for floats you need to use the float option 
24296 \family sans
24297 Span columns
24298 \family default
24299 .
24300 \end_layout
24301
24302 \begin_layout Subsection
24303 Basics
24304 \end_layout
24305
24306 \begin_layout Standard
24307 If you want to have 2
24308 \begin_inset space ~
24309 \end_inset
24310
24311 columns in your text, insert a multicolumn inset via the menu 
24312 \family sans
24313 Insert\SpecialChar menuseparator
24314 Custom
24315 \begin_inset space ~
24316 \end_inset
24317
24318 Insets\SpecialChar menuseparator
24319 Multiple
24320 \begin_inset space ~
24321 \end_inset
24322
24323 Columns
24324 \family default
24325  where the columns should start.
24326  Write all text that should be printed in 2
24327 \begin_inset space ~
24328 \end_inset
24329
24330 columns into this inset.
24331 \end_layout
24332
24333 \begin_layout Standard
24334 Here is an example:
24335 \end_layout
24336
24337 \begin_layout Standard
24338 \noindent
24339 \begin_inset Flex Multiple Columns
24340 status open
24341
24342 \begin_layout Plain Layout
24343 \noindent
24344
24345 \series bold
24346 \size small
24347 The Adventure of the Empty House
24348 \series default
24349
24350 \begin_inset Newline newline
24351 \end_inset
24352
24353 by Sir Arthur Conan Doyle
24354 \end_layout
24355
24356 \begin_layout Plain Layout
24357
24358 \size small
24359 It was in the spring of the year 1894 that all London was interested, and
24360  the fashionable world dismayed, by the murder of the Honourable Ronald
24361  Adair under most unusual and inexplicable circumstances.
24362  The public has already learned those particulars of the crime which came
24363  out in the police investigation, but a good deal was suppressed upon that
24364  occasion, since the case for the prosecution was so overwhelmingly strong
24365  that it was not necessary to bring forward all the facts.
24366  Only now, at the end of nearly ten years, am I allowed to supply those
24367  missing links which make up the whole of that remarkable chain.
24368  The crime was of interest in itself, but that interest was as nothing to
24369  me compared to the inconceivable sequel, which afforded me the greatest
24370  shock and surprise of any event in my adventurous life.
24371  Even now, after this long interval, I find myself thrilling as I think
24372  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24373 ty which utterly submerged my mind.
24374  Let me say to that public, which has shown some interest in those glimpses
24375  which I have occasionally given them of the thoughts and actions of a very
24376  remarkable man, that they are not to blame me if I have not shared my knowledge
24377  with them, for I should have considered it my first duty to do so, had
24378  I not been barred by a positive prohibition from his own lips, which was
24379  only withdrawn upon the third of last month.
24380 \end_layout
24381
24382 \end_inset
24383
24384
24385 \end_layout
24386
24387 \begin_layout Standard
24388 To get 3 or more columns, set the cursor into the multicolumn inset and
24389  use the menu 
24390 \family sans
24391 Insert\SpecialChar menuseparator
24392 Number
24393 \begin_inset space ~
24394 \end_inset
24395
24396 of
24397 \begin_inset space ~
24398 \end_inset
24399
24400 Columns
24401 \family default
24402 .
24403  The number of the desired columns is written into that inset (for 3
24404 \begin_inset space ~
24405 \end_inset
24406
24407 columns write 
24408 \begin_inset Quotes eld
24409 \end_inset
24410
24411 3
24412 \begin_inset Quotes erd
24413 \end_inset
24414
24415 ).
24416 \begin_inset Newline newline
24417 \end_inset
24418
24419 Here is an example with 3
24420 \begin_inset space ~
24421 \end_inset
24422
24423 columns:
24424 \end_layout
24425
24426 \begin_layout Standard
24427 \begin_inset Flex Multiple Columns
24428 status open
24429
24430 \begin_layout Plain Layout
24431
24432 \size footnotesize
24433 \begin_inset Argument 1
24434 status open
24435
24436 \begin_layout Plain Layout
24437 3
24438 \end_layout
24439
24440 \end_inset
24441
24442 It can be imagined that my close intimacy with Sherlock Holmes had interested
24443  me deeply in crime, and that after his disappearance I never failed to
24444  read with care the various problems which came before the public.
24445  And I even attempted, more than once, for my own private satisfaction,
24446  to employ his methods in their solution, though with indifferent success.
24447  There was none, however, which appealed to me like this tragedy of Ronald
24448  Adair.
24449  As I read the evidence at the inquest, which led up to a verdict of willful
24450  murder against some person or persons unknown, I realized more clearly
24451  than I had ever done the loss which the community had sustained by the
24452  death of Sherlock Holmes.
24453  There were points about this strange business which would, I was sure,
24454  have specially appealed to him, and the efforts of the police would have
24455  been supplemented, or more probably anticipated, by the trained observation
24456  and the alert mind of the first criminal agent in Europe.
24457  All day, as I drove upon my round, I turned over the case in my mind and
24458  found no explanation which appeared to me to be adequate.
24459  At the risk of telling a twice-told tale, I will recapitulate the facts
24460  as they were known to the public at the conclusion of the inquest.
24461 \end_layout
24462
24463 \end_inset
24464
24465
24466 \end_layout
24467
24468 \begin_layout Standard
24469 You can have up to 10
24470 \begin_inset space ~
24471 \end_inset
24472
24473 columns if you want to, but that might not be very pleasant for the readers
24474  of your document.
24475 \end_layout
24476
24477 \begin_layout Standard
24478 \begin_inset Newpage newpage
24479 \end_inset
24480
24481
24482 \end_layout
24483
24484 \begin_layout Subsection
24485 Columns inside Columns
24486 \end_layout
24487
24488 \begin_layout Standard
24489 You can also have columns inside columns:
24490 \end_layout
24491
24492 \begin_layout Standard
24493 \begin_inset Flex Multiple Columns
24494 status open
24495
24496 \begin_layout Plain Layout
24497
24498 \size footnotesize
24499 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24500  at that time governor of one of the Australian colonies.
24501  Adair's mother had returned from Australia to undergo the operation for
24502  cataract, and she, her son Ronald, and her daughter Hilda were living together
24503  at 427 Park Lane.
24504 \end_layout
24505
24506 \begin_layout Plain Layout
24507 \begin_inset Flex Multiple Columns
24508 status open
24509
24510 \begin_layout Plain Layout
24511
24512 \size footnotesize
24513 The youth moved in the best society–had, so far as was known, no enemies
24514  and no particular vices.
24515  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24516  had been broken off by mutual consent some months before, and there was
24517  no sign that it had left any very profound feeling behind it.
24518  For the rest {sic} the man's life moved in a narrow and conventional circle,
24519  for his habits were quiet and his nature unemotional.
24520  Yet it was upon this easy-going young aristocrat that death came, in most
24521  strange and unexpected form, between the hours of ten and eleven-twenty
24522  on the night of March 30, 1894.
24523 \end_layout
24524
24525 \end_inset
24526
24527
24528 \end_layout
24529
24530 \begin_layout Plain Layout
24531
24532 \size footnotesize
24533 Ronald Adair was fond of cards–playing continually, but never for such stakes
24534  as would hurt him.
24535  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24536  It was shown that, after dinner on the day of his death, he had played
24537  a rubber of whist at the latter club.
24538  He had also played there in the afternoon.
24539
24540 \size default
24541  
24542 \size footnotesize
24543 The evidence of those who had played with him– Mr.
24544  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24545  and that there was a fairly equal fall of the cards.
24546  Adair might have lost five pounds, but not more.
24547  His fortune was a considerable one, and such a loss could not in any way
24548  affect him.
24549  He had played nearly every day at one club or other, but he was a cautious
24550  player, and usually rose a winner.
24551  It came out in evidence that, in partnership with Colonel Moran, he had
24552  actually won as much as four hundred and twenty pounds in a sitting, some
24553  weeks before, from Godfrey Milner and Lord Balmoral.
24554  So much for his recent history as it came out at the inquest.
24555 \end_layout
24556
24557 \end_inset
24558
24559
24560 \end_layout
24561
24562 \begin_layout Subsection
24563 Advanced Examples
24564 \end_layout
24565
24566 \begin_layout Standard
24567 The examples in this section show some more special features of multiple
24568  columns.
24569 \end_layout
24570
24571 \begin_layout Standard
24572 For more features of multiple columns, have a look at the documentation
24573  of the \SpecialChar LaTeX
24574 -package 
24575 \series bold
24576 multicol
24577 \series default
24578
24579 \begin_inset CommandInset citation
24580 LatexCommand cite
24581 key "multicol"
24582
24583 \end_inset
24584
24585 .
24586 \end_layout
24587
24588 \begin_layout Subsubsection
24589 Preface
24590 \end_layout
24591
24592 \begin_layout Standard
24593 To add a preface text for multiple columns, set the cursor into the multicolumn
24594  inset and use the menu 
24595 \family sans
24596 Insert\SpecialChar menuseparator
24597 Preface
24598 \family default
24599 .
24600  Write your preface text into that inset.
24601 \begin_inset Newline newline
24602 \end_inset
24603
24604 This is an example with some preface text:
24605 \end_layout
24606
24607 \begin_layout Standard
24608 \begin_inset VSpace bigskip
24609 \end_inset
24610
24611
24612 \end_layout
24613
24614 \begin_layout Standard
24615 \begin_inset Flex Multiple Columns
24616 status open
24617
24618 \begin_layout Plain Layout
24619 \begin_inset Argument 2
24620 status open
24621
24622 \begin_layout Plain Layout
24623 And the story continues and continues and continues and continues\SpecialChar ldots
24624
24625 \end_layout
24626
24627 \end_inset
24628
24629
24630 \size small
24631 On the evening of the crime, he returned from the club exactly at ten.
24632  His mother and sister were out spending the evening with a relation.
24633  The servant deposed that she heard him enter the front room on the second
24634  floor, generally used as his sitting-room.
24635  She had lit a fire there, and as it smoked she had opened the window.
24636  No sound was heard from the room until eleven-twenty, the hour of the return
24637  of Lady Maynooth and her daughter.
24638  Desiring to say good-night, she attempted to enter her son's room.
24639  The door was locked on the inside, and no answer could be got to their
24640  cries and knocking.
24641  Help was obtained, and the door forced.
24642  The unfortunate young man was found lying near the table.
24643  His head had been horribly mutilated by an expanding revolver bullet, but
24644  no weapon of any sort was to be found in the room.
24645 \end_layout
24646
24647 \end_inset
24648
24649
24650 \end_layout
24651
24652 \begin_layout Standard
24653 You can also use a section heading as the preface if you use a section command
24654  as \SpecialChar TeX
24655  Code.
24656  For example the command
24657 \end_layout
24658
24659 \begin_layout Standard
24660
24661 \series bold
24662
24663 \backslash
24664 subsection{subsection title}
24665 \end_layout
24666
24667 \begin_layout Standard
24668 creates a subsection.
24669  In this example the preface is a subsubsection:
24670 \end_layout
24671
24672 \begin_layout Standard
24673 \begin_inset Flex Multiple Columns
24674 status open
24675
24676 \begin_layout Plain Layout
24677 \begin_inset Argument 2
24678 status open
24679
24680 \begin_layout Plain Layout
24681 \begin_inset ERT
24682 status collapsed
24683
24684 \begin_layout Plain Layout
24685
24686
24687 \backslash
24688 subsubsection{
24689 \end_layout
24690
24691 \end_inset
24692
24693 This is a subsubsection heading as a preface
24694 \begin_inset ERT
24695 status collapsed
24696
24697 \begin_layout Plain Layout
24698
24699 }
24700 \end_layout
24701
24702 \end_inset
24703
24704
24705 \end_layout
24706
24707 \end_inset
24708
24709
24710 \size small
24711 A minute examination of the circumstances served only to make the case more
24712  complex.
24713  In the first place, no reason could be given why the young man should have
24714  fastened the door upon the inside.
24715  There was the possibility that the murderer had done this, and had afterwards
24716  escaped by the window.
24717  The drop was at least twenty feet, however, and a bed of crocuses in full
24718  bloom lay beneath.
24719  Neither the flowers nor the earth showed any sign of having been disturbed,
24720  nor were there any marks upon the narrow strip of grass which separated
24721  the house from the road.
24722  Apparently, therefore, it was the young man himself who had fastened the
24723  door.
24724  But how did he come by his death? No one could have climbed up to the window
24725  without leaving traces.
24726  Suppose a man had fired through the window, he would indeed be a remarkable
24727  shot who could with a revolver inflict so deadly a wound.
24728  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24729  a hundred yards of the house.
24730  No one had heard a shot.
24731 \end_layout
24732
24733 \end_inset
24734
24735
24736 \end_layout
24737
24738 \begin_layout Standard
24739 If there is less vertical space than 6
24740 \begin_inset space ~
24741 \end_inset
24742
24743 text lines is left on the page at the beginning of the multiple columns,
24744  a page break will be inserted before the multiple columns.
24745  Depending on the number of lines of the preface text, you might want to
24746  change this space.
24747  This is done by setting the cursor into the mulitcolumn inset behind the
24748  preface (if there is any) and using the menu 
24749 \family sans
24750 Insert\SpecialChar menuseparator
24751 Space
24752 \begin_inset space ~
24753 \end_inset
24754
24755 Before
24756 \begin_inset space ~
24757 \end_inset
24758
24759 Page
24760 \begin_inset space ~
24761 \end_inset
24762
24763 Break
24764 \family default
24765 .
24766  Insert into that inset the amount of space like e.
24767 \begin_inset space \thinspace{}
24768 \end_inset
24769
24770 g.
24771 \begin_inset space \space{}
24772 \end_inset
24773
24774
24775 \begin_inset Quotes eld
24776 \end_inset
24777
24778 5cm
24779 \begin_inset Quotes erd
24780 \end_inset
24781
24782 .
24783 \begin_inset Newline newline
24784 \end_inset
24785
24786 In this example the space is set to 7
24787 \begin_inset space ~
24788 \end_inset
24789
24790 text lines by using 
24791 \begin_inset Quotes eld
24792 \end_inset
24793
24794 7
24795 \backslash
24796 baselineskip
24797 \begin_inset Quotes erd
24798 \end_inset
24799
24800  (where the command 
24801 \series bold
24802
24803 \backslash
24804 baselineskip
24805 \series default
24806  needs to be inserted as \SpecialChar TeX
24807  code):
24808 \end_layout
24809
24810 \begin_layout Standard
24811 \begin_inset Flex Multiple Columns
24812 status open
24813
24814 \begin_layout Plain Layout
24815 \begin_inset Argument 3
24816 status open
24817
24818 \begin_layout Plain Layout
24819 7
24820 \begin_inset ERT
24821 status collapsed
24822
24823 \begin_layout Plain Layout
24824
24825
24826 \backslash
24827 baselineskip
24828 \end_layout
24829
24830 \end_inset
24831
24832
24833 \end_layout
24834
24835 \end_inset
24836
24837
24838 \size small
24839 On the evening of the crime, he returned from the club exactly at ten.
24840  His mother and sister were out spending the evening with a relation.
24841  The servant deposed that she heard him enter the front room on the second
24842  floor, generally used as his sitting-room.
24843  She had lit a fire there, and as it smoked she had opened the window.
24844  No sound was heard from the room until eleven-twenty, the hour of the return
24845  of Lady Maynooth and her daughter.
24846  Desiring to say good-night, she attempted to enter her son's room.
24847  The door was locked on the inside, and no answer could be got to their
24848  cries and knocking.
24849  Help was obtained, and the door forced.
24850  The unfortunate young man was found lying near the table.
24851  His head had been horribly mutilated by an expanding revolver bullet, but
24852  no weapon of any sort was to be found in the room.
24853 \end_layout
24854
24855 \end_inset
24856
24857
24858 \end_layout
24859
24860 \begin_layout Subsubsection
24861 Surrounding Space
24862 \end_layout
24863
24864 \begin_layout Standard
24865 The amount of space before and after multiple columns can be changed by
24866  changing the length 
24867 \series bold
24868
24869 \backslash
24870 multicolsep
24871 \series default
24872 .
24873  For example the command
24874 \end_layout
24875
24876 \begin_layout Standard
24877
24878 \series bold
24879
24880 \backslash
24881 setlength{
24882 \backslash
24883 multicolsep}{3cm}
24884 \end_layout
24885
24886 \begin_layout Standard
24887 in \SpecialChar TeX
24888  Code changes its value to 3
24889 \begin_inset space \thinspace{}
24890 \end_inset
24891
24892 cm.
24893  The change must be made before the multiple columns' start.
24894  The predefined value is 13
24895 \begin_inset space \thinspace{}
24896 \end_inset
24897
24898 pt.
24899 \end_layout
24900
24901 \begin_layout Standard
24902 For this example 
24903 \series bold
24904
24905 \backslash
24906 multicolsep
24907 \series default
24908  was set to 2.5
24909 \begin_inset space \thinspace{}
24910 \end_inset
24911
24912 cm:
24913 \end_layout
24914
24915 \begin_layout Standard
24916 \begin_inset ERT
24917 status open
24918
24919 \begin_layout Plain Layout
24920
24921
24922 \backslash
24923 setlength{
24924 \backslash
24925 multicolsep}{2.5cm}
24926 \end_layout
24927
24928 \end_inset
24929
24930
24931 \end_layout
24932
24933 \begin_layout Standard
24934 \begin_inset Flex Multiple Columns
24935 status open
24936
24937 \begin_layout Plain Layout
24938
24939 \size small
24940 All day I turned these facts over in my mind, endeavouring to hit upon some
24941  theory which could reconcile them all, and to find that line of least resistanc
24942 e which my poor friend had declared to be the starting-point of every investigat
24943 ion.
24944  I confess that I made little progress.
24945  In the evening I strolled across the Park, and found myself about six o'clock
24946  at the Oxford Street end of Park Lane.
24947  A group of loafers upon the pavements, all staring up at a particular window,
24948  directed me to the house which I had come to see.
24949  A tall, thin man with coloured glasses, whom I strongly suspected of being
24950  a plain-clothes detective, was pointing out some theory of his own, while
24951  the others crowded round to listen to what he said.
24952  I got as near him as I could, but his observations seemed to me to be absurd,
24953  so I withdrew again in some disgust.
24954  As I did so I struck against an elderly, deformed man, who had been behind
24955  me, and I knocked down several books which he was carrying.
24956 \end_layout
24957
24958 \end_inset
24959
24960
24961 \end_layout
24962
24963 \begin_layout Standard
24964 \begin_inset Note Greyedout
24965 status open
24966
24967 \begin_layout Plain Layout
24968
24969 \series bold
24970 Note:
24971 \series default
24972  The values you set with 
24973 \series bold
24974
24975 \backslash
24976 setlength
24977 \series default
24978  will be used for all following multiple columns until you change them again.
24979 \end_layout
24980
24981 \end_inset
24982
24983
24984 \end_layout
24985
24986 \begin_layout Standard
24987 \begin_inset ERT
24988 status collapsed
24989
24990 \begin_layout Plain Layout
24991
24992
24993 \backslash
24994 setlength{
24995 \backslash
24996 multicolsep}{13pt}
24997 \end_layout
24998
24999 \end_inset
25000
25001
25002 \begin_inset Note Note
25003 status collapsed
25004
25005 \begin_layout Plain Layout
25006 go back to the default
25007 \end_layout
25008
25009 \end_inset
25010
25011
25012 \end_layout
25013
25014 \begin_layout Standard
25015 \begin_inset Newpage newpage
25016 \end_inset
25017
25018
25019 \end_layout
25020
25021 \begin_layout Subsubsection
25022 Column Breaks
25023 \end_layout
25024
25025 \begin_layout Standard
25026 A column break can be forced by inserting the command 
25027 \series bold
25028
25029 \backslash
25030 columnbreak{}
25031 \series default
25032  as \SpecialChar TeX
25033  Code to that position in the text where the column should be broken.
25034  Note that this leads in most cases to whitespace in the text.
25035 \begin_inset Newline newline
25036 \end_inset
25037
25038 Here is an example:
25039 \end_layout
25040
25041 \begin_layout Standard
25042 \begin_inset Flex Multiple Columns
25043 status open
25044
25045 \begin_layout Plain Layout
25046
25047 \size small
25048 \begin_inset Quotes eld
25049 \end_inset
25050
25051 You're surprised to see me, sir,
25052 \begin_inset Quotes erd
25053 \end_inset
25054
25055  said he, in a strange, croaking voice.
25056 \end_layout
25057
25058 \begin_layout Plain Layout
25059
25060 \size small
25061 I acknowledged that I was.
25062 \end_layout
25063
25064 \begin_layout Plain Layout
25065
25066 \size small
25067 \begin_inset Quotes eld
25068 \end_inset
25069
25070 Well, I've a conscience, sir, and when I chanced to see you go into this
25071  house, as I came hobbling after you, I thought to myself, I'll just step
25072  in and see that kind gentleman, and tell him that if I was a bit gruff
25073  in my manner there was not any harm meant, and that I am much obliged to
25074  him for picking up my books.
25075 \begin_inset Quotes erd
25076 \end_inset
25077
25078
25079 \end_layout
25080
25081 \begin_layout Plain Layout
25082
25083 \size small
25084 \begin_inset Quotes eld
25085 \end_inset
25086
25087 You make too much of a trifle,
25088 \begin_inset Quotes erd
25089 \end_inset
25090
25091  said I.
25092  
25093 \begin_inset Quotes eld
25094 \end_inset
25095
25096 May I ask how you knew who I was?
25097 \begin_inset Quotes erd
25098 \end_inset
25099
25100  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25101 \begin_inset ERT
25102 status collapsed
25103
25104 \begin_layout Plain Layout
25105
25106
25107 \backslash
25108 columnbreak{}
25109 \end_layout
25110
25111 \end_inset
25112
25113
25114 \end_layout
25115
25116 \begin_layout Plain Layout
25117
25118 \size small
25119 \begin_inset Quotes eld
25120 \end_inset
25121
25122 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25123  you'll find my little bookshop at the corner of Church Street, and very
25124  happy to see you, I am sure.
25125  Maybe you collect yourself, sir.
25126  Here's 
25127 \noun on
25128 British
25129 \begin_inset space ~
25130 \end_inset
25131
25132 Birds
25133 \noun default
25134 , and 
25135 \noun on
25136 Catullus
25137 \noun default
25138 , and 
25139 \noun on
25140 The Holy War
25141 \noun default
25142 –a bargain, every one of them.
25143  With five volumes you could just fill that gap on that second shelf.
25144  It looks untidy, does it not, sir?
25145 \begin_inset Quotes erd
25146 \end_inset
25147
25148
25149 \end_layout
25150
25151 \end_inset
25152
25153
25154 \end_layout
25155
25156 \begin_layout Subsubsection
25157 Column Separation
25158 \end_layout
25159
25160 \begin_layout Standard
25161 The width of the columns is automatically calculated, but you can modify
25162  the space between the columns.
25163  This is done by changing the length 
25164 \series bold
25165
25166 \backslash
25167 columnsep
25168 \series default
25169 .
25170  Its predefined value is 10
25171 \begin_inset space \thinspace{}
25172 \end_inset
25173
25174 pt.
25175  Here is an example where 
25176 \series bold
25177
25178 \backslash
25179 columnsep
25180 \series default
25181  is set to 3
25182 \begin_inset space \thinspace{}
25183 \end_inset
25184
25185 cm:
25186 \end_layout
25187
25188 \begin_layout Standard
25189 \begin_inset ERT
25190 status open
25191
25192 \begin_layout Plain Layout
25193
25194
25195 \backslash
25196 setlength{
25197 \backslash
25198 columnsep}{3cm}
25199 \end_layout
25200
25201 \end_inset
25202
25203
25204 \end_layout
25205
25206 \begin_layout Standard
25207 \begin_inset Flex Multiple Columns
25208 status open
25209
25210 \begin_layout Plain Layout
25211
25212 \size small
25213 My observations of No.
25214 \begin_inset space \space{}
25215 \end_inset
25216
25217 427 Park Lane did little to clear up the problem in which I was interested.
25218  The house was separated from the street by a low wall and railing, the
25219  whole not more than five feet high.
25220  It was perfectly easy, therefore, for anyone to get into the garden, but
25221  the window was entirely inaccessible, since there was no water pipe or
25222  anything which could help the most active man to climb it.
25223  More puzzled than ever, I retraced my steps to Kensington.
25224  I had not been in my study five minutes when the maid entered to say that
25225  a person desired to see me.
25226  To my astonishment it was none other than my strange old book collector,
25227  his sharp, wizened face peering out from a frame of white hair, and his
25228  precious volumes, a dozen of them at least, wedged under his right arm.
25229 \end_layout
25230
25231 \end_inset
25232
25233
25234 \end_layout
25235
25236 \begin_layout Standard
25237 \begin_inset ERT
25238 status collapsed
25239
25240 \begin_layout Plain Layout
25241
25242
25243 \backslash
25244 setlength{
25245 \backslash
25246 columnsep}{10pt}
25247 \end_layout
25248
25249 \end_inset
25250
25251
25252 \begin_inset Note Note
25253 status collapsed
25254
25255 \begin_layout Plain Layout
25256 go back to the default
25257 \end_layout
25258
25259 \end_inset
25260
25261
25262 \end_layout
25263
25264 \begin_layout Subsubsection
25265 Vertical Lines
25266 \end_layout
25267
25268 \begin_layout Standard
25269 Between the columns a rule with a width of the length 
25270 \series bold
25271
25272 \backslash
25273 columnseprule
25274 \series default
25275  is placed.
25276  If this rule width is set to 0
25277 \begin_inset space \thinspace{}
25278 \end_inset
25279
25280 pt (this is the default), the rule is suppressed.
25281  In the following example the rule is 2
25282 \begin_inset space \thinspace{}
25283 \end_inset
25284
25285 pt wide:
25286 \end_layout
25287
25288 \begin_layout Standard
25289 \begin_inset ERT
25290 status open
25291
25292 \begin_layout Plain Layout
25293
25294
25295 \backslash
25296 setlength{
25297 \backslash
25298 columnseprule}{2pt}
25299 \end_layout
25300
25301 \end_inset
25302
25303
25304 \end_layout
25305
25306 \begin_layout Standard
25307 \begin_inset Flex Multiple Columns
25308 status open
25309
25310 \begin_layout Plain Layout
25311
25312 \size small
25313 \begin_inset Quotes eld
25314 \end_inset
25315
25316 You're surprised to see me, sir,
25317 \begin_inset Quotes erd
25318 \end_inset
25319
25320  said he, in a strange, croaking voice.
25321 \end_layout
25322
25323 \begin_layout Plain Layout
25324
25325 \size small
25326 I acknowledged that I was.
25327 \end_layout
25328
25329 \begin_layout Plain Layout
25330
25331 \size small
25332 \begin_inset Quotes eld
25333 \end_inset
25334
25335 Well, I've a conscience, sir, and when I chanced to see you go into this
25336  house, as I came hobbling after you, I thought to myself, I'll just step
25337  in and see that kind gentleman, and tell him that if I was a bit gruff
25338  in my manner there was not any harm meant, and that I am much obliged to
25339  him for picking up my books.
25340 \begin_inset Quotes erd
25341 \end_inset
25342
25343
25344 \end_layout
25345
25346 \begin_layout Plain Layout
25347
25348 \size small
25349 \begin_inset Quotes eld
25350 \end_inset
25351
25352 You make too much of a trifle,
25353 \begin_inset Quotes erd
25354 \end_inset
25355
25356  said I.
25357  
25358 \begin_inset Quotes eld
25359 \end_inset
25360
25361 May I ask how you knew who I was?
25362 \begin_inset Quotes erd
25363 \end_inset
25364
25365
25366 \end_layout
25367
25368 \begin_layout Plain Layout
25369
25370 \size small
25371 \begin_inset Quotes eld
25372 \end_inset
25373
25374 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25375  you'll find my little bookshop at the corner of Church Street, and very
25376  happy to see you, I am sure.
25377  Maybe you collect yourself, sir.
25378  Here's 
25379 \noun on
25380 British
25381 \begin_inset space ~
25382 \end_inset
25383
25384 Birds
25385 \noun default
25386 , and 
25387 \noun on
25388 Catullus
25389 \noun default
25390 , and 
25391 \noun on
25392 The Holy War
25393 \noun default
25394 –a bargain, every one of them.
25395  With five volumes you could just fill that gap on that second shelf.
25396  It looks untidy, does it not, sir?
25397 \begin_inset Quotes erd
25398 \end_inset
25399
25400
25401 \end_layout
25402
25403 \end_inset
25404
25405
25406 \end_layout
25407
25408 \begin_layout Standard
25409 \begin_inset VSpace defskip
25410 \end_inset
25411
25412
25413 \end_layout
25414
25415 \begin_layout Standard
25416 The rule can be colored by redefining the command 
25417 \series bold
25418
25419 \backslash
25420 columnseprulecolor
25421 \series default
25422 .
25423  This is done by inserting the command
25424 \begin_inset Newline newline
25425 \end_inset
25426
25427
25428 \series bold
25429
25430 \backslash
25431 renewcommand{
25432 \backslash
25433 columnseprulecolor}{
25434 \backslash
25435 color{red}}
25436 \series default
25437
25438 \begin_inset Newline newline
25439 \end_inset
25440
25441 as \SpecialChar TeX
25442  Code before the multicolumn inset.
25443  Replace 
25444 \series bold
25445 red
25446 \series default
25447  in this command by a color of your choice.
25448  You can use all pre- and self-defined colors.
25449  See the 
25450 \emph on
25451 EmbeddedObjects
25452 \emph default
25453  manual, section 
25454 \emph on
25455 Colored
25456 \begin_inset space ~
25457 \end_inset
25458
25459 Tables
25460 \emph default
25461  for more information about pre- and self-defined colors.
25462  To go back to the default color insert the command
25463 \begin_inset Newline newline
25464 \end_inset
25465
25466
25467 \series bold
25468
25469 \backslash
25470 renewcommand{
25471 \backslash
25472 columnseprulecolor}{
25473 \backslash
25474 normalcolor}
25475 \series default
25476
25477 \begin_inset Newline newline
25478 \end_inset
25479
25480 Here is the example with a cyan rule and 1
25481 \begin_inset space \thinspace{}
25482 \end_inset
25483
25484 cm column separation:
25485 \end_layout
25486
25487 \begin_layout Standard
25488 \begin_inset ERT
25489 status open
25490
25491 \begin_layout Plain Layout
25492
25493
25494 \backslash
25495 setlength{
25496 \backslash
25497 columnsep}{1cm}
25498 \end_layout
25499
25500 \begin_layout Plain Layout
25501
25502
25503 \backslash
25504 renewcommand{
25505 \backslash
25506 columnseprulecolor}{
25507 \backslash
25508 color{cyan}}
25509 \end_layout
25510
25511 \end_inset
25512
25513
25514 \end_layout
25515
25516 \begin_layout Standard
25517 \begin_inset Flex Multiple Columns
25518 status open
25519
25520 \begin_layout Plain Layout
25521
25522 \size small
25523 \begin_inset Quotes eld
25524 \end_inset
25525
25526 You're surprised to see me, sir,
25527 \begin_inset Quotes erd
25528 \end_inset
25529
25530  said he, in a strange, croaking voice.
25531 \end_layout
25532
25533 \begin_layout Plain Layout
25534
25535 \size small
25536 I acknowledged that I was.
25537 \end_layout
25538
25539 \begin_layout Plain Layout
25540
25541 \size small
25542 \begin_inset Quotes eld
25543 \end_inset
25544
25545 Well, I've a conscience, sir, and when I chanced to see you go into this
25546  house, as I came hobbling after you, I thought to myself, I'll just step
25547  in and see that kind gentleman, and tell him that if I was a bit gruff
25548  in my manner there was not any harm meant, and that I am much obliged to
25549  him for picking up my books.
25550 \begin_inset Quotes erd
25551 \end_inset
25552
25553
25554 \end_layout
25555
25556 \begin_layout Plain Layout
25557
25558 \size small
25559 \begin_inset Quotes eld
25560 \end_inset
25561
25562 You make too much of a trifle,
25563 \begin_inset Quotes erd
25564 \end_inset
25565
25566  said I.
25567  
25568 \begin_inset Quotes eld
25569 \end_inset
25570
25571 May I ask how you knew who I was?
25572 \begin_inset Quotes erd
25573 \end_inset
25574
25575
25576 \end_layout
25577
25578 \begin_layout Plain Layout
25579
25580 \size small
25581 \begin_inset Quotes eld
25582 \end_inset
25583
25584 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25585  you'll find my little bookshop at the corner of Church Street, and very
25586  happy to see you, I am sure.
25587  Maybe you collect yourself, sir.
25588  Here's 
25589 \noun on
25590 British
25591 \begin_inset space ~
25592 \end_inset
25593
25594 Birds
25595 \noun default
25596 , and 
25597 \noun on
25598 Catullus
25599 \noun default
25600 , and 
25601 \noun on
25602 The Holy War
25603 \noun default
25604 –a bargain, every one of them.
25605  With five volumes you could just fill that gap on that second shelf.
25606  It looks untidy, does it not, sir?
25607 \begin_inset Quotes erd
25608 \end_inset
25609
25610
25611 \end_layout
25612
25613 \end_inset
25614
25615
25616 \end_layout
25617
25618 \begin_layout Standard
25619 \begin_inset ERT
25620 status collapsed
25621
25622 \begin_layout Plain Layout
25623
25624
25625 \backslash
25626 setlength{
25627 \backslash
25628 columnseprule}{0pt}
25629 \end_layout
25630
25631 \begin_layout Plain Layout
25632
25633
25634 \backslash
25635 renewcommand{
25636 \backslash
25637 columnseprulecolor}{
25638 \backslash
25639 normalcolor}
25640 \end_layout
25641
25642 \end_inset
25643
25644
25645 \begin_inset Note Note
25646 status collapsed
25647
25648 \begin_layout Plain Layout
25649 go back to the default
25650 \end_layout
25651
25652 \end_inset
25653
25654
25655 \end_layout
25656
25657 \begin_layout Section
25658 Non-standard Paragraph Shapes
25659 \end_layout
25660
25661 \begin_layout Standard
25662 \noindent
25663 \SpecialChar LaTeX
25664  as well as any other text processor uses by default rectangular paragraphs.
25665  For special cases like for example posters, invitation cards or poems you
25666  can modify the paragraph shape to one of your choice.
25667  This can be done by using the \SpecialChar LaTeX
25668 -package 
25669 \series bold
25670 shapepar
25671 \series default
25672  which is loaded by using in the document settings the module 
25673 \family sans
25674 Custom paragraph shapes
25675 \family default
25676 .
25677 \end_layout
25678
25679 \begin_layout Subsection
25680 Predefined shapes
25681 \end_layout
25682
25683 \begin_layout Standard
25684
25685 \series bold
25686 shapepar
25687 \series default
25688  provides the following shapes:
25689 \end_layout
25690
25691 \begin_layout Standard
25692 \begin_inset Tabular
25693 <lyxtabular version="3" rows="13" columns="3">
25694 <features booktabs="true" islongtable="true" longtabularalignment="center">
25695 <column alignment="center" valignment="middle" width="16col%">
25696 <column alignment="center" valignment="middle" width="40col%">
25697 <column alignment="center" valignment="middle" width="35col%">
25698 <row endhead="true">
25699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25700 \begin_inset Text
25701
25702 \begin_layout Plain Layout
25703 Name
25704 \end_layout
25705
25706 \end_inset
25707 </cell>
25708 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25709 \begin_inset Text
25710
25711 \begin_layout Plain Layout
25712 Description
25713 \end_layout
25714
25715 \end_inset
25716 </cell>
25717 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25718 \begin_inset Text
25719
25720 \begin_layout Plain Layout
25721 Annotation
25722 \end_layout
25723
25724 \end_inset
25725 </cell>
25726 </row>
25727 <row>
25728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25729 \begin_inset Text
25730
25731 \begin_layout Plain Layout
25732 CDlabel
25733 \end_layout
25734
25735 \end_inset
25736 </cell>
25737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25738 \begin_inset Text
25739
25740 \begin_layout Plain Layout
25741 Circle with circular hole (in the size of a CD/DVD)
25742 \end_layout
25743
25744 \end_inset
25745 </cell>
25746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25747 \begin_inset Text
25748
25749 \begin_layout Plain Layout
25750 Cannot be scaled, take care there is not too much text
25751 \end_layout
25752
25753 \end_inset
25754 </cell>
25755 </row>
25756 <row>
25757 <cell alignment="center" valignment="top" topline="true" usebox="none">
25758 \begin_inset Text
25759
25760 \begin_layout Plain Layout
25761 Circle
25762 \end_layout
25763
25764 \end_inset
25765 </cell>
25766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25767 \begin_inset Text
25768
25769 \begin_layout Plain Layout
25770 Circle
25771 \end_layout
25772
25773 \end_inset
25774 </cell>
25775 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25776 \begin_inset Text
25777
25778 \begin_layout Plain Layout
25779 Fragile, calculation might fail
25780 \end_layout
25781
25782 \end_inset
25783 </cell>
25784 </row>
25785 <row>
25786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25787 \begin_inset Text
25788
25789 \begin_layout Plain Layout
25790 Diamond
25791 \end_layout
25792
25793 \end_inset
25794 </cell>
25795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25796 \begin_inset Text
25797
25798 \begin_layout Plain Layout
25799 Rhomboid (symbolizing a 
25800 \begin_inset Quotes eld
25801 \end_inset
25802
25803 diamond
25804 \begin_inset Quotes erd
25805 \end_inset
25806
25807 )
25808 \end_layout
25809
25810 \end_inset
25811 </cell>
25812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25813 \begin_inset Text
25814
25815 \begin_layout Plain Layout
25816 -
25817 \end_layout
25818
25819 \end_inset
25820 </cell>
25821 </row>
25822 <row>
25823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25824 \begin_inset Text
25825
25826 \begin_layout Plain Layout
25827 Heart
25828 \end_layout
25829
25830 \end_inset
25831 </cell>
25832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25833 \begin_inset Text
25834
25835 \begin_layout Plain Layout
25836 Heart-like shape
25837 \end_layout
25838
25839 \end_inset
25840 </cell>
25841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25842 \begin_inset Text
25843
25844 \begin_layout Plain Layout
25845 -
25846 \end_layout
25847
25848 \end_inset
25849 </cell>
25850 </row>
25851 <row>
25852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25853 \begin_inset Text
25854
25855 \begin_layout Plain Layout
25856 Hexagon
25857 \end_layout
25858
25859 \end_inset
25860 </cell>
25861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25862 \begin_inset Text
25863
25864 \begin_layout Plain Layout
25865 Hexagon
25866 \end_layout
25867
25868 \end_inset
25869 </cell>
25870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25871 \begin_inset Text
25872
25873 \begin_layout Plain Layout
25874 -
25875 \end_layout
25876
25877 \end_inset
25878 </cell>
25879 </row>
25880 <row>
25881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25882 \begin_inset Text
25883
25884 \begin_layout Plain Layout
25885 Nut
25886 \end_layout
25887
25888 \end_inset
25889 </cell>
25890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25891 \begin_inset Text
25892
25893 \begin_layout Plain Layout
25894 Nut for bolt (hexagon with circular hole)
25895 \end_layout
25896
25897 \end_inset
25898 </cell>
25899 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25900 \begin_inset Text
25901
25902 \begin_layout Plain Layout
25903 -
25904 \end_layout
25905
25906 \end_inset
25907 </cell>
25908 </row>
25909 <row>
25910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25911 \begin_inset Text
25912
25913 \begin_layout Plain Layout
25914 Square
25915 \end_layout
25916
25917 \end_inset
25918 </cell>
25919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25920 \begin_inset Text
25921
25922 \begin_layout Plain Layout
25923 Square
25924 \end_layout
25925
25926 \end_inset
25927 </cell>
25928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25929 \begin_inset Text
25930
25931 \begin_layout Plain Layout
25932 -
25933 \end_layout
25934
25935 \end_inset
25936 </cell>
25937 </row>
25938 <row>
25939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25940 \begin_inset Text
25941
25942 \begin_layout Plain Layout
25943 Star
25944 \end_layout
25945
25946 \end_inset
25947 </cell>
25948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25949 \begin_inset Text
25950
25951 \begin_layout Plain Layout
25952 Five-point star
25953 \end_layout
25954
25955 \end_inset
25956 </cell>
25957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25958 \begin_inset Text
25959
25960 \begin_layout Plain Layout
25961 -
25962 \end_layout
25963
25964 \end_inset
25965 </cell>
25966 </row>
25967 <row>
25968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25969 \begin_inset Text
25970
25971 \begin_layout Plain Layout
25972 Candle
25973 \end_layout
25974
25975 \end_inset
25976 </cell>
25977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25978 \begin_inset Text
25979
25980 \begin_layout Plain Layout
25981 Burning candle
25982 \end_layout
25983
25984 \end_inset
25985 </cell>
25986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25987 \begin_inset Text
25988
25989 \begin_layout Plain Layout
25990 -
25991 \end_layout
25992
25993 \end_inset
25994 </cell>
25995 </row>
25996 <row>
25997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25998 \begin_inset Text
25999
26000 \begin_layout Plain Layout
26001 Drop down/up
26002 \end_layout
26003
26004 \end_inset
26005 </cell>
26006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26007 \begin_inset Text
26008
26009 \begin_layout Plain Layout
26010 Normal/reversed rain drop
26011 \end_layout
26012
26013 \end_inset
26014 </cell>
26015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26016 \begin_inset Text
26017
26018 \begin_layout Plain Layout
26019 Fragile, calculation might fail
26020 \end_layout
26021
26022 \end_inset
26023 </cell>
26024 </row>
26025 <row>
26026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26027 \begin_inset Text
26028
26029 \begin_layout Plain Layout
26030 \SpecialChar TeX
26031
26032 \end_layout
26033
26034 \end_inset
26035 </cell>
26036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26037 \begin_inset Text
26038
26039 \begin_layout Plain Layout
26040 The \SpecialChar TeX
26041  logo
26042 \end_layout
26043
26044 \end_inset
26045 </cell>
26046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26047 \begin_inset Text
26048
26049 \begin_layout Plain Layout
26050 -
26051 \end_layout
26052
26053 \end_inset
26054 </cell>
26055 </row>
26056 <row>
26057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26058 \begin_inset Text
26059
26060 \begin_layout Plain Layout
26061 Triangle up/down/
26062 \begin_inset Newline newline
26063 \end_inset
26064
26065 left/right
26066 \end_layout
26067
26068 \end_inset
26069 </cell>
26070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26071 \begin_inset Text
26072
26073 \begin_layout Plain Layout
26074 Triangles in different orientations
26075 \end_layout
26076
26077 \end_inset
26078 </cell>
26079 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26080 \begin_inset Text
26081
26082 \begin_layout Plain Layout
26083 -
26084 \end_layout
26085
26086 \end_inset
26087 </cell>
26088 </row>
26089 </lyxtabular>
26090
26091 \end_inset
26092
26093
26094 \end_layout
26095
26096 \begin_layout Standard
26097 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26098 's pull-down box
26099  for environments in the toolbar.
26100 \end_layout
26101
26102 \begin_layout Standard
26103 \begin_inset Newpage newpage
26104 \end_inset
26105
26106
26107 \end_layout
26108
26109 \begin_layout Standard
26110 Here is an example paragraph in the shape of a nut:
26111 \end_layout
26112
26113 \begin_layout Standard
26114 \begin_inset VSpace bigskip
26115 \end_inset
26116
26117
26118 \end_layout
26119
26120 \begin_layout Nut
26121
26122 \lang latin
26123 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26124  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26125  voluptua.
26126  At vero eos et accusam et justo duo dolores et ea rebum.
26127  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26128  sit amet.
26129  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26130  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26131  voluptua.
26132 \end_layout
26133
26134 \begin_layout Standard
26135 \begin_inset VSpace bigskip
26136 \end_inset
26137
26138
26139 \end_layout
26140
26141 \begin_layout Standard
26142 \begin_inset Note Greyedout
26143 status open
26144
26145 \begin_layout Plain Layout
26146
26147 \series bold
26148 Note
26149 \series default
26150 : shapepar paragraphs cannot run over a page break.
26151 \end_layout
26152
26153 \end_inset
26154
26155
26156 \end_layout
26157
26158 \begin_layout Standard
26159 \begin_inset VSpace bigskip
26160 \end_inset
26161
26162
26163 \end_layout
26164
26165 \begin_layout Standard
26166
26167 \series bold
26168 shapepar
26169 \series default
26170  takes care that the shape will always be preserved, no matter how much
26171  text is in the paragraph.
26172  Therefore the paragraph size changes with the amount of contained text.
26173  This can lead to paragraph sizes exceeding the page margins.
26174  To demonstrate the size scaling, here is the same example paragraph but
26175  with twice as much text:
26176 \end_layout
26177
26178 \begin_layout Standard
26179 \begin_inset Newpage newpage
26180 \end_inset
26181
26182
26183 \end_layout
26184
26185 \begin_layout Nut
26186
26187 \lang latin
26188 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26189  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26190  voluptua.
26191  At vero eos et accusam et justo duo dolores et ea rebum.
26192  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26193  sit amet.
26194  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26195  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26196  voluptua.
26197  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26198  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26199  voluptua.
26200  At vero eos et accusam et justo duo dolores et ea rebum.
26201  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26202  sit amet.
26203  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26204  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26205  voluptua.
26206 \end_layout
26207
26208 \begin_layout Standard
26209 \begin_inset VSpace bigskip
26210 \end_inset
26211
26212
26213 \end_layout
26214
26215 \begin_layout Standard
26216 An exception is the shape 
26217 \family sans
26218 CDlabel
26219 \family default
26220 .
26221  It cannot be scaled because it must fit the size of a CD/DVD.
26222  Therefore the amount of text that fits into the shape is limited.
26223 \begin_inset Newline newline
26224 \end_inset
26225
26226 The 
26227 \family sans
26228 drop
26229 \family default
26230  shapes and the 
26231 \family sans
26232 circle
26233 \family default
26234  shape are fragile, meaning that the calculation of their size can fail,
26235  depending on the amount of text.
26236  You will then get the \SpecialChar LaTeX
26237  error 
26238 \begin_inset Quotes eld
26239 \end_inset
26240
26241 Arithmetic overflow
26242 \begin_inset Quotes erd
26243 \end_inset
26244
26245 .
26246  In this case one can try to remove or add some text; if nothing works one
26247  has to use another shape.
26248 \end_layout
26249
26250 \begin_layout Standard
26251 \begin_inset VSpace bigskip
26252 \end_inset
26253
26254
26255 \end_layout
26256
26257 \begin_layout Standard
26258 For shapes with tips you will maybe see that \SpecialChar LaTeX
26259 's hyphenation routine fails
26260  for text in the tips.
26261  Therefore it is often necessary to add hyphenation points 
26262 \family sans
26263 (
26264 \begin_inset Info
26265 type  "shortcut"
26266 arg   "specialchar-insert hyphenation"
26267 \end_inset
26268
26269
26270 \family default
26271 ) to the corresponding text parts.
26272 \end_layout
26273
26274 \begin_layout Standard
26275 \begin_inset VSpace bigskip
26276 \end_inset
26277
26278
26279 \end_layout
26280
26281 \begin_layout Standard
26282 Shapepar paragraphs are either always centered or placed on the page so
26283  that their left border touches the left page margin.
26284  You can therefore not use the paragraph dialog to align such paragraphs.
26285  A solution is to put the paragraph into a minipage or parbox and align
26286  the box.
26287  The problem is hereby to find the right width for the box.
26288  Because if it is too wide and you center the box, the paragraph is not
26289  centered too because it sticks at the left side of the box.
26290  So you might have to play a bit with the width until it fits.
26291  Here are two heart-shaped paragraphs, the first one is not aligned, the
26292  second one is right-aligned:
26293 \end_layout
26294
26295 \begin_layout Standard
26296 \begin_inset Newpage newpage
26297 \end_inset
26298
26299
26300 \end_layout
26301
26302 \begin_layout Heart
26303 \noindent
26304
26305 \lang latin
26306 Lo\SpecialChar softhyphen
26307 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26308  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26309  voluptua.
26310  At vero eos et accusam et justo duo dolores et ea rebum.
26311  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26312  sit amet.
26313 \end_layout
26314
26315 \begin_layout Standard
26316 \begin_inset VSpace bigskip
26317 \end_inset
26318
26319
26320 \end_layout
26321
26322 \begin_layout Standard
26323 \noindent
26324 \align right
26325 \begin_inset Box Frameless
26326 position "t"
26327 hor_pos "c"
26328 has_inner_box 1
26329 inner_pos "t"
26330 use_parbox 1
26331 use_makebox 0
26332 width "42col%"
26333 special "none"
26334 height "1in"
26335 height_special "totalheight"
26336 thickness "0.4pt"
26337 separation "3pt"
26338 shadowsize "4pt"
26339 framecolor "black"
26340 backgroundcolor "none"
26341 status open
26342
26343 \begin_layout Heart
26344 \noindent
26345
26346 \lang latin
26347 Lo\SpecialChar softhyphen
26348 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26349  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26350  voluptua.
26351  At vero eos et accusam et justo duo dolores et ea rebum.
26352  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26353  sit amet.
26354 \end_layout
26355
26356 \end_inset
26357
26358
26359 \end_layout
26360
26361 \begin_layout Subsection
26362 Custom shapes
26363 \end_layout
26364
26365 \begin_layout Standard
26366 You can define any shape you want.
26367  Doing this manually is a lot of work because every coordinate must be specified.
26368  But there is a way to let the computer calculate the coordinates:
26369 \end_layout
26370
26371 \begin_layout Enumerate
26372 Install the program 
26373 \begin_inset CommandInset href
26374 LatexCommand href
26375 name "Jpgfdraw"
26376 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26377
26378 \end_inset
26379
26380 .
26381 \end_layout
26382
26383 \begin_layout Enumerate
26384 In 
26385 \family sans
26386 Jpgfdraw
26387 \family default
26388  go to the menu 
26389 \family sans
26390 TeX/LaTeX\SpecialChar menuseparator
26391 Settings\SpecialChar menuseparator
26392 Set Normal Size
26393 \family default
26394  and select the font size you are using in your document.
26395  For example this document uses the size 12
26396 \begin_inset space \thinspace{}
26397 \end_inset
26398
26399 pt.
26400 \end_layout
26401
26402 \begin_layout Enumerate
26403 Draw a shape.
26404 \end_layout
26405
26406 \begin_layout Enumerate
26407 Use the menu 
26408 \family sans
26409 TeX/LaTeX\SpecialChar menuseparator
26410 Shapepar
26411 \family default
26412  to export the shape to coordinates.
26413  In the appearing dialog use either the outline of your shape for the coordinate
26414 s or the path itself.
26415 \begin_inset Foot
26416 status collapsed
26417
26418 \begin_layout Plain Layout
26419 For more information see 
26420 \begin_inset CommandInset href
26421 LatexCommand href
26422 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26423
26424 \end_inset
26425
26426
26427 \end_layout
26428
26429 \end_inset
26430
26431
26432 \end_layout
26433
26434 \begin_layout Standard
26435 The coordinates are written into a \SpecialChar TeX
26436  file.
26437  To use it for your \SpecialChar LyX
26438  document
26439 \end_layout
26440
26441 \begin_layout Enumerate
26442 Place the cursor before the first character of your paragraph (or into a
26443  new empty one).
26444 \end_layout
26445
26446 \begin_layout Enumerate
26447 Open in \SpecialChar LyX
26448  the menu 
26449 \family sans
26450 Insert\SpecialChar menuseparator
26451 File\SpecialChar menuseparator
26452 Child
26453 \begin_inset space ~
26454 \end_inset
26455
26456 Document
26457 \family default
26458 , select the file and use 
26459 \family sans
26460 Input
26461 \family default
26462  as 
26463 \family sans
26464 Include Type.
26465 \end_layout
26466
26467 \begin_layout Standard
26468 \begin_inset VSpace defskip
26469 \end_inset
26470
26471
26472 \end_layout
26473
26474 \begin_layout Standard
26475 \begin_inset Note Greyedout
26476 status open
26477
26478 \begin_layout Plain Layout
26479
26480 \series bold
26481 Note
26482 \series default
26483 : The changed shape only applies to the current paragraph; everything is
26484  reset to normal for the next paragraph.
26485  Therefore the shape definition file must be input into every paragraph
26486  with the desired shape.
26487 \end_layout
26488
26489 \end_inset
26490
26491
26492 \end_layout
26493
26494 \begin_layout Standard
26495 \begin_inset VSpace bigskip
26496 \end_inset
26497
26498
26499 \end_layout
26500
26501 \begin_layout Standard
26502 Here is an example:
26503 \end_layout
26504
26505 \begin_layout Standard
26506 \begin_inset VSpace bigskip
26507 \end_inset
26508
26509
26510 \end_layout
26511
26512 \begin_layout Standard
26513 \begin_inset CommandInset include
26514 LatexCommand input
26515 filename "SpecialParagraphShape.tex"
26516
26517 \end_inset
26518
26519
26520 \lang latin
26521 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26522  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26523  voluptua.
26524  At vero eos et accusam et justo duo dolores et ea rebum.
26525  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26526  sit amet.
26527  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26528  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26529  voluptua.
26530 \end_layout
26531
26532 \begin_layout Standard
26533 \begin_inset VSpace bigskip
26534 \end_inset
26535
26536
26537 \end_layout
26538
26539 \begin_layout Standard
26540
26541 \series bold
26542 A tip:
26543 \series default
26544  to draw complexer shapes in 
26545 \family sans
26546 Jpgfdraw
26547 \family default
26548  you can draw the shape in a program of your choice and import the resulting
26549  image to 
26550 \family sans
26551 Jpgfdraw
26552 \family default
26553 .
26554  Then you only need to draw a line or spline along the outline of the image.
26555 \end_layout
26556
26557 \begin_layout Standard
26558 \begin_inset VSpace bigskip
26559 \end_inset
26560
26561
26562 \end_layout
26563
26564 \begin_layout Standard
26565 The module 
26566 \family sans
26567 Custom paragraph shapes
26568 \family default
26569  also provides the two commands 
26570 \family sans
26571 shapepar
26572 \family default
26573  and 
26574 \family sans
26575 Shapepar
26576 \family default
26577  which can be used to define custom shapes coordinate by coordinate.
26578 \begin_inset Foot
26579 status collapsed
26580
26581 \begin_layout Plain Layout
26582 These commands are internally used for all shapes described here.
26583 \end_layout
26584
26585 \end_inset
26586
26587  For information how these styles are used and about further customization
26588  possibilities, have a look at the documentation of the package 
26589 \series bold
26590 shapepar
26591 \series default
26592
26593 \begin_inset CommandInset citation
26594 LatexCommand cite
26595 key "shapepar"
26596
26597 \end_inset
26598
26599 .
26600 \end_layout
26601
26602 \begin_layout Bibliography
26603 \begin_inset CommandInset bibitem
26604 LatexCommand bibitem
26605 key "multicol"
26606
26607 \end_inset
26608
26609 Documentation of the \SpecialChar LaTeX
26610 -package 
26611 \begin_inset CommandInset href
26612 LatexCommand href
26613 name "multicol"
26614 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26615
26616 \end_inset
26617
26618
26619 \end_layout
26620
26621 \begin_layout Bibliography
26622 \begin_inset CommandInset bibitem
26623 LatexCommand bibitem
26624 key "shapepar"
26625
26626 \end_inset
26627
26628 Documentation of the \SpecialChar LaTeX
26629 -package 
26630 \begin_inset CommandInset href
26631 LatexCommand href
26632 name "shapepar"
26633 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
26634
26635 \end_inset
26636
26637
26638 \end_layout
26639
26640 \end_body
26641 \end_document