]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Cmake export tests: Handle attic files with now missing references to png graphics
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 503
3 \begin_document
4 \begin_header
5 \origin unavailable
6 \textclass scrbook
7 \begin_preamble
8 % DO NOT ALTER THIS PREAMBLE!!!
9 %
10 % This preamble is designed to ensure that the manual prints
11 % out as advertised. If you mess with this preamble,
12 % parts of the manual may not print out as expected.  If you
13 % have problems LaTeXing this file, please contact 
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
16
17 % the pages of the TOC are numbered roman
18 % and a PDF-bookmark for the TOC is added
19 \pagenumbering{roman}
20 \let\myTOC\tableofcontents
21 \renewcommand{\tableofcontents}{%
22  \pdfbookmark[1]{\contentsname}{}
23  \myTOC
24  \cleardoublepage
25  \pagenumbering{arabic}}
26
27 % extra space for tables
28 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
29 \end_preamble
30 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
31 \use_default_options false
32 \begin_modules
33 logicalmkup
34 theorems-ams
35 theorems-ams-extended
36 multicol
37 shapepar
38 \end_modules
39 \maintain_unincluded_children false
40 \language english
41 \language_package default
42 \inputencoding auto
43 \fontencoding global
44 \font_roman "lmodern" "default"
45 \font_sans "lmss" "default"
46 \font_typewriter "lmtt" "default"
47 \font_math "auto" "auto"
48 \font_default_family default
49 \use_non_tex_fonts false
50 \font_sc false
51 \font_osf false
52 \font_sf_scale 100 100
53 \font_tt_scale 100 100
54 \graphics default
55 \default_output_format pdf2
56 \output_sync 0
57 \bibtex_command default
58 \index_command default
59 \paperfontsize 12
60 \spacing single
61 \use_hyperref true
62 \pdf_title "LyX's Additional Features manual"
63 \pdf_author "LyX Team"
64 \pdf_subject "LyX's additional features documentation"
65 \pdf_keywords "LyX, Documentation, Additional"
66 \pdf_bookmarks true
67 \pdf_bookmarksnumbered true
68 \pdf_bookmarksopen false
69 \pdf_bookmarksopenlevel 1
70 \pdf_breaklinks false
71 \pdf_pdfborder false
72 \pdf_colorlinks true
73 \pdf_backref false
74 \pdf_pdfusetitle false
75 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
76 \papersize a4paper
77 \use_geometry false
78 \use_package amsmath 1
79 \use_package amssymb 1
80 \use_package cancel 0
81 \use_package esint 0
82 \use_package mathdots 1
83 \use_package mathtools 0
84 \use_package mhchem 1
85 \use_package stackrel 0
86 \use_package stmaryrd 0
87 \use_package undertilde 0
88 \cite_engine basic
89 \cite_engine_type default
90 \biblio_style plain
91 \use_bibtopic false
92 \use_indices false
93 \paperorientation portrait
94 \suppress_date false
95 \justification true
96 \use_refstyle 0
97 \notefontcolor #0000ff
98 \index Index
99 \shortcut idx
100 \color #008000
101 \end_index
102 \secnumdepth 3
103 \tocdepth 3
104 \paragraph_separation indent
105 \paragraph_indentation default
106 \quotes_language english
107 \papercolumns 1
108 \papersides 2
109 \paperpagestyle headings
110 \tracking_changes false
111 \output_changes false
112 \html_math_output 0
113 \html_css_as_file 0
114 \html_be_strict true
115 \end_header
116
117 \begin_body
118
119 \begin_layout Title
120 Additional \SpecialChar LyX
121  Features
122 \end_layout
123
124 \begin_layout Subtitle
125 Version 2.2.x
126 \end_layout
127
128 \begin_layout Author
129 by the \SpecialChar LyX
130  Team
131 \begin_inset Foot
132 status collapsed
133
134 \begin_layout Plain Layout
135 \noindent
136 Principal maintainer of this file is
137 \noun on
138  Richard Heck
139 \noun default
140 .
141  If you have comments or error corrections, please send them to the \SpecialChar LyX
142  Documentati
143 on mailing list, 
144 \begin_inset Flex Code
145 status collapsed
146
147 \begin_layout Plain Layout
148 \noindent
149 <lyx-docs@lists.lyx.org>
150 \end_layout
151
152 \end_inset
153
154 .
155 \end_layout
156
157 \end_inset
158
159
160 \end_layout
161
162 \begin_layout Standard
163 \begin_inset CommandInset toc
164 LatexCommand tableofcontents
165
166 \end_inset
167
168
169 \end_layout
170
171 \begin_layout Chapter
172 Introduction
173 \end_layout
174
175 \begin_layout Standard
176 This manual is essentially Part II of the 
177 \emph on
178 User's Guide\SpecialChar endofsentence
179
180 \emph default
181  The reason for separating the two documents is simple: the 
182 \emph on
183 User's Guide
184 \emph default
185  is already quite lengthy, and it contains information on all of the basic
186  features one needs to know in order to prepare most documents.
187  However, the \SpecialChar LyX
188  Team has worked to make \SpecialChar LyX
189  extensible through various configuration
190  files and external packages.
191  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
192  package, you can
193  create a layout file (or module) for it without having to alter \SpecialChar LyX
194  itself.
195  We've already had contributions of several new features this way, and some
196  of them are documented here.
197  There are also some more `advanced' features, such as how to control the
198  presentation of bibliographies and how to work with multi-part documents,
199  that are not covered in the 
200 \emph on
201 User's Guide
202 \emph default
203  and are discussed here.
204 \end_layout
205
206 \begin_layout Standard
207 This manual also documents some special features, like fax support, version
208  control, and SGML support, which require additional software to work properly.
209  There is also a chapter on \SpecialChar LyX
210 's support for HTML.
211  And lastly, there's a chapter of \SpecialChar LaTeX
212  tools and tips, things you can use to
213  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
214 .
215  After all, \SpecialChar LyX
216  
217 \emph on
218 is
219 \emph default
220  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
221  features.
222 \end_layout
223
224 \begin_layout Standard
225 If you haven't read the 
226 \emph on
227 Introduction
228 \emph default
229  yet, you are definitely in the wrong manual.
230  The 
231 \emph on
232 Introduction
233 \emph default
234  is the first place to go, since it describes the notation and format of
235  all of the manuals.
236  You should also be thoroughly familiar with the 
237 \emph on
238 User's Guide
239 \emph default
240  and all of the basic features of \SpecialChar LyX
241  before attempting to read this one.
242 \end_layout
243
244 \begin_layout Standard
245 Since many of the topics in this manual depend heavily on \SpecialChar LyX
246 's interaction
247  with \SpecialChar LaTeX
248 , this first chapter covers the inner workings of \SpecialChar LyX
249  and how to direct
250  \SpecialChar LyX
251  to generate exactly the \SpecialChar LaTeX
252  code you want.
253  It is obviously for more seasoned \SpecialChar LyX
254  users.
255 \end_layout
256
257 \begin_layout Chapter
258 \SpecialChar LyX
259  and \SpecialChar LaTeX
260
261 \end_layout
262
263 \begin_layout Section
264 How \SpecialChar LyX
265  Uses \SpecialChar LaTeX
266
267 \end_layout
268
269 \begin_layout Standard
270 This chapter is for both \SpecialChar TeX
271 -nicians and the \SpecialChar LaTeX
272 -curious.
273  In it, we'll explain how \SpecialChar LyX
274  and \SpecialChar LaTeX
275  work together to produce printable output.
276  This is the only place in any of the manuals where we assume you know something
277  about \SpecialChar LaTeX
278 .
279 \end_layout
280
281 \begin_layout Standard
282 At one time, \SpecialChar LyX
283  was called a 
284 \begin_inset Quotes eld
285 \end_inset
286
287 WYSIWYM frontend to \SpecialChar LaTeX
288 ,
289 \begin_inset Quotes erd
290 \end_inset
291
292  but that's no longer true.
293  There are frontends to \SpecialChar LaTeX
294  out there.
295 \begin_inset Foot
296 status collapsed
297
298 \begin_layout Plain Layout
299 Some familar ones are \SpecialChar TeX
300 maker and kile, on Linux, and \SpecialChar TeX
301 shop, OSX.
302  There are also the \SpecialChar LaTeX
303  modes for vi and emacs, of course.
304 \end_layout
305
306 \end_inset
307
308  These are basically text editors with the ability to run \SpecialChar LaTeX
309  and mark any
310  errors in the file you're editing.
311  Although \SpecialChar LyX
312  
313 \emph on
314 is
315 \emph default
316  an editor, and it 
317 \emph on
318 does
319 \emph default
320  run \SpecialChar LaTeX
321 , and it also indicates errors in the file, it also does much, much
322  more.
323  For one thing, you don't need to know \SpecialChar LaTeX
324  to use \SpecialChar LyX
325  effectively.
326  And \SpecialChar LyX
327  has added its own extensions to \SpecialChar LaTeX
328 .
329  Try the following sometime: select 
330 \begin_inset Flex Noun
331 status collapsed
332
333 \begin_layout Plain Layout
334 Export\SpecialChar menuseparator
335 \SpecialChar LaTeX
336
337 \end_layout
338
339 \end_inset
340
341  from the 
342 \begin_inset Flex Noun
343 status collapsed
344
345 \begin_layout Plain Layout
346 File
347 \end_layout
348
349 \end_inset
350
351  menu (or 
352 \begin_inset Flex Noun
353 status collapsed
354
355 \begin_layout Plain Layout
356 View\SpecialChar menuseparator
357 Source
358 \begin_inset space ~
359 \end_inset
360
361 Pane
362 \end_layout
363
364 \end_inset
365
366 ), then look at the preamble of the resulting 
367 \begin_inset Flex Code
368 status collapsed
369
370 \begin_layout Plain Layout
371 .tex
372 \end_layout
373
374 \end_inset
375
376  file.
377  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
378 .
379  These macros are defined automatically, according to the features you use
380  in the document.
381 \end_layout
382
383 \begin_layout Standard
384 There are several commands that automatically invoke \SpecialChar LaTeX
385 .
386  They are:
387 \end_layout
388
389 \begin_layout Itemize
390 \begin_inset Flex Noun
391 status collapsed
392
393 \begin_layout Plain Layout
394 Document\SpecialChar menuseparator
395 View
396 \end_layout
397
398 \end_inset
399
400
401 \end_layout
402
403 \begin_layout Itemize
404 \begin_inset Flex Noun
405 status collapsed
406
407 \begin_layout Plain Layout
408 Document\SpecialChar menuseparator
409 Update
410 \end_layout
411
412 \end_inset
413
414
415 \end_layout
416
417 \begin_layout Itemize
418 \begin_inset Flex Noun
419 status collapsed
420
421 \begin_layout Plain Layout
422 File\SpecialChar menuseparator
423 Print
424 \end_layout
425
426 \end_inset
427
428
429 \end_layout
430
431 \begin_layout Itemize
432 \begin_inset Flex Noun
433 status collapsed
434
435 \begin_layout Plain Layout
436 File\SpecialChar menuseparator
437 Fax
438 \end_layout
439
440 \end_inset
441
442
443 \end_layout
444
445 \begin_layout Standard
446 They will only invoke \SpecialChar LaTeX
447  if the file has changed since the last time \SpecialChar LaTeX
448  was
449  run.
450  
451 \end_layout
452
453 \begin_layout Standard
454 When \SpecialChar LyX
455  runs \SpecialChar LaTeX
456  on the file you're editing, it performs these steps:
457 \end_layout
458
459 \begin_layout Enumerate
460 Convert the document to \SpecialChar LaTeX
461  and save to a file with the extension 
462 \begin_inset Flex Code
463 status collapsed
464
465 \begin_layout Plain Layout
466 .tex
467 \end_layout
468
469 \end_inset
470
471  in place of 
472 \begin_inset Flex Code
473 status collapsed
474
475 \begin_layout Plain Layout
476 .lyx
477 \end_layout
478
479 \end_inset
480
481 .
482 \end_layout
483
484 \begin_layout Enumerate
485 Run \SpecialChar LaTeX
486  on the 
487 \begin_inset Flex Code
488 status collapsed
489
490 \begin_layout Plain Layout
491 .tex
492 \end_layout
493
494 \end_inset
495
496  file (maybe several times), and run any other commands (such as 
497 \begin_inset Flex Code
498 status collapsed
499
500 \begin_layout Plain Layout
501 bibtex
502 \end_layout
503
504 \end_inset
505
506  or 
507 \begin_inset Flex Code
508 status collapsed
509
510 \begin_layout Plain Layout
511 makeindex
512 \end_layout
513
514 \end_inset
515
516 ) needed to compile the \SpecialChar LaTeX
517  file.
518 \end_layout
519
520 \begin_layout Enumerate
521 If there are any errors, show the error log.
522 \end_layout
523
524 \begin_layout Standard
525 If you have run \SpecialChar LaTeX
526  using 
527 \begin_inset Flex Noun
528 status collapsed
529
530 \begin_layout Plain Layout
531 View
532 \bar under
533 \SpecialChar menuseparator
534
535 \bar default
536 DVI
537 \end_layout
538
539 \end_inset
540
541 , \SpecialChar LyX
542  then runs a DVI viewer to display the DVI-file.
543  If you have used 
544 \begin_inset Flex Noun
545 status collapsed
546
547 \begin_layout Plain Layout
548 View
549 \bar under
550 \SpecialChar menuseparator
551
552 \bar default
553 PostScript
554 \end_layout
555
556 \end_inset
557
558 , \SpecialChar LyX
559  performs further steps:
560 \end_layout
561
562 \begin_layout Itemize
563 Run 
564 \begin_inset Flex Code
565 status collapsed
566
567 \begin_layout Plain Layout
568 dvips
569 \end_layout
570
571 \end_inset
572
573  to convert the DVI file to PostScript.
574 \end_layout
575
576 \begin_layout Itemize
577 Run a PostScript viewer, such as 
578 \begin_inset Flex Code
579 status collapsed
580
581 \begin_layout Plain Layout
582 ghostview
583 \end_layout
584
585 \end_inset
586
587 , to display the PostScript file.
588 \end_layout
589
590 \begin_layout Standard
591 \SpecialChar LyX
592  does similar things when viewing, or exporting, other formats.
593 \end_layout
594
595 \begin_layout Section
596 Translating \SpecialChar LaTeX
597  files into \SpecialChar LyX
598
599 \end_layout
600
601 \begin_layout Standard
602 You can import a \SpecialChar LaTeX
603  file into \SpecialChar LyX
604  by using the 
605 \begin_inset Flex Noun
606 status collapsed
607
608 \begin_layout Plain Layout
609 File\SpecialChar menuseparator
610 Import\SpecialChar menuseparator
611 \SpecialChar LaTeX
612
613 \end_layout
614
615 \end_inset
616
617  command in \SpecialChar LyX
618 .
619  This will call a program named 
620 \begin_inset Flex Code
621 status collapsed
622
623 \begin_layout Plain Layout
624 tex2lyx
625 \end_layout
626
627 \end_inset
628
629  which will create a file 
630 \begin_inset Flex Code
631 status collapsed
632
633 \begin_layout Plain Layout
634 foo.lyx
635 \end_layout
636
637 \end_inset
638
639  from the file 
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 foo.tex
645 \end_layout
646
647 \end_inset
648
649 .
650  \SpecialChar LyX
651  will then open that file.
652 \begin_inset Foot
653 status collapsed
654
655 \begin_layout Plain Layout
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 tex2lyx
661 \end_layout
662
663 \end_inset
664
665  can also be run from the command line, of course.
666 \end_layout
667
668 \end_inset
669
670
671 \end_layout
672
673 \begin_layout Standard
674 \begin_inset Flex Code
675 status collapsed
676
677 \begin_layout Plain Layout
678 tex2lyx
679 \end_layout
680
681 \end_inset
682
683  will translate most legal \SpecialChar LaTeX
684 , but not everything.
685  It will put things it doesn't understand into \SpecialChar TeX
686  code, so after translating
687  a file with 
688 \begin_inset Flex Code
689 status collapsed
690
691 \begin_layout Plain Layout
692 tex2lyx
693 \end_layout
694
695 \end_inset
696
697 , you can look for \SpecialChar TeX
698  code and hand-edit it until it looks right.
699 \end_layout
700
701 \begin_layout Standard
702 If you don't know what \SpecialChar TeX
703  code is, read the next section.
704 \end_layout
705
706 \begin_layout Section
707 \begin_inset CommandInset label
708 LatexCommand label
709 name "sec:Inserting-TeX-Code"
710
711 \end_inset
712
713 Inserting \SpecialChar TeX
714  Code into \SpecialChar LyX
715  Documents 
716 \end_layout
717
718 \begin_layout Standard
719 Anything you can do in \SpecialChar LaTeX
720  you can do in \SpecialChar LyX
721 , for a very simple reason: You can
722  always insert \SpecialChar TeX
723  code into any \SpecialChar LyX
724  document.
725  \SpecialChar LyX
726  cannot, and will never be able to, display every possible \SpecialChar LaTeX
727  construct.
728  If ever you need to insert \SpecialChar LaTeX
729  commands into your \SpecialChar LyX
730  document, you can use the
731  
732 \begin_inset Flex Code
733 status collapsed
734
735 \begin_layout Plain Layout
736 \SpecialChar TeX
737  Code
738 \end_layout
739
740 \end_inset
741
742  box, which you can insert into your document with 
743 \begin_inset Flex Noun
744 status collapsed
745
746 \begin_layout Plain Layout
747 Insert\SpecialChar menuseparator
748
749 \family sans
750 TeX
751 \family default
752  Code
753 \end_layout
754
755 \end_inset
756
757  or the keyboard shortcut 
758 \begin_inset Info
759 type  "shortcut"
760 arg   "ert-insert"
761 \end_inset
762
763 .
764 \end_layout
765
766 \begin_layout Standard
767 Here's an example of inserting \SpecialChar LaTeX
768  commands in a \SpecialChar LyX
769  document.
770  The code looks like this:
771 \end_layout
772
773 \begin_layout LyX-Code
774
775 \backslash
776 begin{tabular}{ll}
777 \begin_inset Newline newline
778 \end_inset
779
780
781 \backslash
782 begin{minipage}{5cm}
783 \begin_inset Newline newline
784 \end_inset
785
786 This is an example of a minipage environment.
787  You 
788 \begin_inset Newline newline
789 \end_inset
790
791 can put nearly everything in it, even (non-floating) 
792 \begin_inset Newline newline
793 \end_inset
794
795 figures and tables.
796  
797 \begin_inset Newline newline
798 \end_inset
799
800
801 \backslash
802 end{minipage}
803 \begin_inset Newline newline
804 \end_inset
805
806 &
807 \begin_inset Newline newline
808 \end_inset
809
810
811 \backslash
812 begin{minipage}{5cm}
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 begin{verbatim}
819 \begin_inset Newline newline
820 \end_inset
821
822
823 \backslash
824 begin{minipage}{5cm}
825 \begin_inset Newline newline
826 \end_inset
827
828 This ...
829  
830 \begin_inset Newline newline
831 \end_inset
832
833
834 \backslash
835 end{minipage}
836 \begin_inset Newline newline
837 \end_inset
838
839
840 \backslash
841 end{verbatim}
842 \begin_inset Newline newline
843 \end_inset
844
845
846 \backslash
847 end{minipage}
848 \begin_inset Newline newline
849 \end_inset
850
851
852 \backslash
853 end{tabular}
854 \end_layout
855
856 \begin_layout LyX-Code
857
858 \end_layout
859
860 \begin_layout Standard
861 The 
862 \begin_inset Flex Code
863 status collapsed
864
865 \begin_layout Plain Layout
866 \SpecialChar TeX
867  Code
868 \end_layout
869
870 \end_inset
871
872  box containing this text is directly after this paragraph.
873  Those of you reading the manual in \SpecialChar LyX
874  will only see the \SpecialChar TeX
875  code inset.
876  Those reading a printed version of the manuals will see the actual results:
877 \begin_inset VSpace bigskip
878 \end_inset
879
880
881 \end_layout
882
883 \begin_layout Standard
884 \begin_inset ERT
885 status open
886
887 \begin_layout Plain Layout
888
889
890 \backslash
891 begin{tabular}{ll}
892 \end_layout
893
894 \begin_layout Plain Layout
895
896
897 \backslash
898 begin{minipage}{5cm}
899 \end_layout
900
901 \begin_layout Plain Layout
902
903 This is an example of a minipage environment.
904  You can put nearly everything in it, even (non-floating) figures and tables.
905  
906 \end_layout
907
908 \begin_layout Plain Layout
909
910
911 \backslash
912 end{minipage}
913 \end_layout
914
915 \begin_layout Plain Layout
916
917 &
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
930 \backslash
931 begin{verbatim}
932 \end_layout
933
934 \begin_layout Plain Layout
935
936
937 \backslash
938 begin{minipage}{5cm}
939 \end_layout
940
941 \begin_layout Plain Layout
942
943 This ...
944  
945 \end_layout
946
947 \begin_layout Plain Layout
948
949
950 \backslash
951 end{minipage}
952 \end_layout
953
954 \begin_layout Plain Layout
955
956
957 \backslash
958 end{verbatim}
959 \end_layout
960
961 \begin_layout Plain Layout
962
963
964 \backslash
965 end{minipage}
966 \end_layout
967
968 \begin_layout Plain Layout
969
970
971 \backslash
972 end{tabular}
973 \end_layout
974
975 \end_inset
976
977
978 \begin_inset VSpace bigskip
979 \end_inset
980
981
982 \end_layout
983
984 \begin_layout Standard
985 In addition to using \SpecialChar TeX
986  code, you can also create a separate file containing
987  some complex \SpecialChar LaTeX
988  structure and then use 
989 \begin_inset Flex Noun
990 status collapsed
991
992 \begin_layout Plain Layout
993 Insert\SpecialChar menuseparator
994 Child
995 \begin_inset space ~
996 \end_inset
997
998 Document
999 \end_layout
1000
1001 \end_inset
1002
1003  to include your file (you should select the type 
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008 Input
1009 \end_layout
1010
1011 \end_inset
1012
1013 ).
1014  We recommend that you only do this if you have a 
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 .tex
1020 \end_layout
1021
1022 \end_inset
1023
1024  file which you 
1025 \emph on
1026 know
1027 \emph default
1028  works already.
1029  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1030  errors.
1031 \end_layout
1032
1033 \begin_layout Standard
1034 There are a few last points to emphasize:
1035 \end_layout
1036
1037 \begin_layout Itemize
1038 \SpecialChar LyX
1039  
1040 \emph on
1041 does not
1042 \emph default
1043  check if your \SpecialChar LaTeX
1044  code is correct.
1045 \end_layout
1046
1047 \begin_layout Itemize
1048 Beware of reinventing the wheel.
1049 \end_layout
1050
1051 \begin_layout Standard
1052 On that last point, \SpecialChar LyX
1053  does have quite a few features tucked into it, and
1054  more are coming.
1055  Be sure to check the manuals to make sure that \SpecialChar LyX
1056  doesn't have such-and-such
1057  feature before you decide you have to do it by hand.
1058  Moreover, there are numerous \SpecialChar LaTeX
1059  packages out there to do all sorts of things,
1060  from labels to envelopes to fancy multipage tables.
1061  Check out 
1062 \begin_inset CommandInset href
1063 LatexCommand href
1064 name "CTAN"
1065 target "http://www.ctan.org/"
1066
1067 \end_inset
1068
1069  for details.
1070 \end_layout
1071
1072 \begin_layout Standard
1073 If you do need to do some wild and fancy things within your document, be
1074  sure to check out a good \SpecialChar LaTeX
1075  book for assistance.
1076  There are a number of them listed in the bibliography of the 
1077 \emph on
1078 User's Guide
1079 \emph default
1080 .
1081 \end_layout
1082
1083 \begin_layout Section
1084 \SpecialChar LyX
1085  and the \SpecialChar LaTeX
1086  Preamble
1087 \end_layout
1088
1089 \begin_layout Subsection
1090 About the \SpecialChar LaTeX
1091  Preamble
1092 \end_layout
1093
1094 \begin_layout Standard
1095 If you already know \SpecialChar LaTeX
1096 , there is no need to explain here what the preamble
1097  is good for.
1098  If you don't, the following will give you some ideas—we recommend again
1099  that you consult a \SpecialChar LaTeX
1100  book for further information.
1101  In any case, you should read the points below, because they explain what
1102  you can do and what you don't need to do in the \SpecialChar LaTeX
1103  preamble of a \SpecialChar LyX
1104  document.
1105 \end_layout
1106
1107 \begin_layout Standard
1108 The \SpecialChar LaTeX
1109  preamble comes at the very beginning of a document, 
1110 \emph on
1111 before
1112 \emph default
1113  the text.
1114  It serves to:
1115 \end_layout
1116
1117 \begin_layout Itemize
1118 Declare the document class.
1119  
1120 \begin_inset Newline newline
1121 \end_inset
1122
1123 \SpecialChar LyX
1124  already does this for you.
1125  If you're a seasoned \SpecialChar LaTeX
1126 -nician, and you have a custom document class you
1127  want to use, check out the 
1128 \emph on
1129 Customization Manual
1130 \emph default
1131  for information on how to make \SpecialChar LyX
1132  interface to it.
1133 \end_layout
1134
1135 \begin_layout Itemize
1136 Declare the usage of packages.
1137  
1138 \begin_inset Newline newline
1139 \end_inset
1140
1141 \SpecialChar LaTeX
1142  packages provide special commands, which are only available within a document
1143  when the package has been declared in the preamble.
1144  In addition to providing special commands, the inclusion of a package can
1145  change the document.
1146  For example, the package 
1147 \begin_inset Flex Code
1148 status collapsed
1149
1150 \begin_layout Plain Layout
1151 indentfirst
1152 \end_layout
1153
1154 \end_inset
1155
1156  forces all paragraphs to be indented.
1157  There are other packages for labels, envelopes, margins, etc.
1158  
1159 \end_layout
1160
1161 \begin_layout Itemize
1162 Set counters, variables, lengths and widths.
1163  
1164 \begin_inset Newline newline
1165 \end_inset
1166
1167 There are several \SpecialChar LaTeX
1168  counters and variables that 
1169 \emph on
1170 must
1171 \emph default
1172  be set globally from within the preamble in order to have the desired effect.
1173  (There are variables that you can set and reset inside the document, too.)
1174  Margins are a good example of something that must be set in the preamble.
1175  Another example is the label format for lists.
1176  You can actually set these just about anywhere, but it's best to do it
1177  just once, inside the preamble.
1178 \end_layout
1179
1180 \begin_layout Itemize
1181 Declare user defined commands (with 
1182 \begin_inset Flex Code
1183 status collapsed
1184
1185 \begin_layout Plain Layout
1186
1187 \backslash
1188 newcommand
1189 \end_layout
1190
1191 \end_inset
1192
1193  or 
1194 \begin_inset Flex Code
1195 status collapsed
1196
1197 \begin_layout Plain Layout
1198
1199 \backslash
1200 renewcommand
1201 \end_layout
1202
1203 \end_inset
1204
1205 ).
1206 \begin_inset Newline newline
1207 \end_inset
1208
1209 These are abbreviations for \SpecialChar LaTeX
1210  commands which appear very often inside a document.
1211  Although the preamble is a good place to declare such commands, they 
1212 \emph on
1213 can
1214 \emph default
1215  be declared anywhere (before they are used for the first time, of course).
1216  This can be useful if there is a lot of raw \SpecialChar LaTeX
1217  code in your document, which
1218  normally should not be the case.
1219 \end_layout
1220
1221 \begin_layout Standard
1222 \SpecialChar LyX
1223  adds its own set of definitions to the preamble of the 
1224 \begin_inset Flex Code
1225 status collapsed
1226
1227 \begin_layout Plain Layout
1228 .tex
1229 \end_layout
1230
1231 \end_inset
1232
1233  file it produces.
1234  This makes \SpecialChar LaTeX
1235  files generated by \SpecialChar LyX
1236  portable.
1237 \end_layout
1238
1239 \begin_layout Subsection
1240 Changing the Preamble
1241 \end_layout
1242
1243 \begin_layout Standard
1244 The commands which \SpecialChar LyX
1245  adds to the preamble of a \SpecialChar LaTeX
1246  file are fixed; you can't
1247  change them without patching \SpecialChar LyX
1248  itself.
1249  You can, however, add your own stuff to the preamble by selecting 
1250 \begin_inset Flex Noun
1251 status collapsed
1252
1253 \begin_layout Plain Layout
1254 \SpecialChar LaTeX
1255
1256 \begin_inset space ~
1257 \end_inset
1258
1259 Preamble
1260 \end_layout
1261
1262 \end_inset
1263
1264  in the 
1265 \begin_inset Flex Noun
1266 status collapsed
1267
1268 \begin_layout Plain Layout
1269 Document\SpecialChar menuseparator
1270 Settings
1271 \end_layout
1272
1273 \end_inset
1274
1275  dialog.
1276  \SpecialChar LyX
1277  adds anything in the 
1278 \begin_inset Flex Noun
1279 status collapsed
1280
1281 \begin_layout Plain Layout
1282 Preamble
1283 \end_layout
1284
1285 \end_inset
1286
1287  dialog to its own built-in preamble.
1288  Before adding your own declarations in the preamble, you should make sure
1289  that \SpecialChar LyX
1290  doesn't already support what you want to do.
1291  (Remember what we said about reinventing the wheel?) Also, 
1292 \emph on
1293 make sure your preamble code is correct
1294 \emph default
1295 .
1296  \SpecialChar LyX
1297  doesn't check it for you.
1298  If there is an error, you're likely to get an error like 
1299 \begin_inset Quotes eld
1300 \end_inset
1301
1302
1303 \begin_inset Flex Code
1304 status collapsed
1305
1306 \begin_layout Plain Layout
1307 Missing 
1308 \backslash
1309 begin{document}
1310 \end_layout
1311
1312 \end_inset
1313
1314
1315 \begin_inset Quotes erd
1316 \end_inset
1317
1318 .
1319  If you see this error, check your preamble.
1320 \end_layout
1321
1322 \begin_layout Subsection
1323 Examples
1324 \end_layout
1325
1326 \begin_layout Standard
1327 Here are some examples of what you can add to a preamble, and what they
1328  do.
1329 \end_layout
1330
1331 \begin_layout Subsubsection
1332 Example #1: Offsets
1333 \end_layout
1334
1335 \begin_layout Standard
1336 There are two variables under \SpecialChar LaTeX
1337  that control page position: 
1338 \begin_inset Flex Code
1339 status collapsed
1340
1341 \begin_layout Plain Layout
1342
1343 \backslash
1344 hoffset
1345 \end_layout
1346
1347 \end_inset
1348
1349  and 
1350 \begin_inset Flex Code
1351 status collapsed
1352
1353 \begin_layout Plain Layout
1354
1355 \backslash
1356 voffset
1357 \end_layout
1358
1359 \end_inset
1360
1361 .
1362  Their names should be self-explanatory.
1363  These variables are useful if you think for a moment about computer labels.
1364  Sometimes, the size of a print medium and the area of the medium that you
1365  can actually print on aren't the same.
1366  This is where 
1367 \begin_inset Flex Code
1368 status collapsed
1369
1370 \begin_layout Plain Layout
1371
1372 \backslash
1373 hoffset
1374 \end_layout
1375
1376 \end_inset
1377
1378  and 
1379 \begin_inset Flex Code
1380 status collapsed
1381
1382 \begin_layout Plain Layout
1383
1384 \backslash
1385 voffset
1386 \end_layout
1387
1388 \end_inset
1389
1390  come in.
1391 \end_layout
1392
1393 \begin_layout Standard
1394 The default values for 
1395 \begin_inset Flex Code
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399
1400 \backslash
1401 hoffset
1402 \end_layout
1403
1404 \end_inset
1405
1406  and 
1407 \begin_inset Flex Code
1408 status collapsed
1409
1410 \begin_layout Plain Layout
1411
1412 \backslash
1413 voffset
1414 \end_layout
1415
1416 \end_inset
1417
1418  are both 0
1419 \begin_inset space \thinspace{}
1420 \end_inset
1421
1422 points, i.
1423 \begin_inset space \thinspace{}
1424 \end_inset
1425
1426 e.
1427 \begin_inset space \space{}
1428 \end_inset
1429
1430 the page isn't shifted.
1431  Unfortunately, some DVI drivers always seem to shift the page.
1432  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1433  If you're using \SpecialChar LyX
1434  on a system that you don't personally maintain, and your
1435  sysadmin is a doofus, 
1436 \begin_inset Flex Code
1437 status collapsed
1438
1439 \begin_layout Plain Layout
1440
1441 \backslash
1442 hoffset
1443 \end_layout
1444
1445 \end_inset
1446
1447  and 
1448 \begin_inset Flex Code
1449 status collapsed
1450
1451 \begin_layout Plain Layout
1452
1453 \backslash
1454 voffset
1455 \end_layout
1456
1457 \end_inset
1458
1459  can save the day.
1460  Suppose your left and top margins are always 0.5
1461 \begin_inset space \thinspace{}
1462 \end_inset
1463
1464 inches too big.
1465  You can add this to the preamble:
1466 \end_layout
1467
1468 \begin_layout LyX-Code
1469
1470 \backslash
1471 setlength{
1472 \backslash
1473 hoffset}{-0.5 in}
1474 \end_layout
1475
1476 \begin_layout LyX-Code
1477
1478 \backslash
1479 setlength{
1480 \backslash
1481 voffset}{-0.5 in}
1482 \end_layout
1483
1484 \begin_layout Standard
1485 and your margins should now be correct.
1486 \end_layout
1487
1488 \begin_layout Subsubsection
1489 Example #2: Labels
1490 \end_layout
1491
1492 \begin_layout Standard
1493 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1494  There's a rather nice package, available at your nearest CTAN archive,
1495  for printing sheets of labels: 
1496 \begin_inset Flex Code
1497 status collapsed
1498
1499 \begin_layout Plain Layout
1500 labels.sty
1501 \end_layout
1502
1503 \end_inset
1504
1505 .
1506  Now, your system may not have this package installed by default.
1507  We leave that up to you to check.
1508  You'll also want to read the documentation for it; we're not going to do
1509  that for you.
1510  Since this is an example, however, we'll give you an example of how you
1511  use this package.
1512 \end_layout
1513
1514 \begin_layout Standard
1515 First, make sure you're using the 
1516 \begin_inset Flex Code
1517 status collapsed
1518
1519 \begin_layout Plain Layout
1520 article
1521 \end_layout
1522
1523 \end_inset
1524
1525  document class.
1526  Next, you need to put the following in your preamble:
1527 \end_layout
1528
1529 \begin_layout LyX-Code
1530
1531 \backslash
1532 usepackage{labels}
1533 \end_layout
1534
1535 \begin_layout LyX-Code
1536
1537 \backslash
1538 LabelCols=3
1539 \end_layout
1540
1541 \begin_layout LyX-Code
1542
1543 \backslash
1544 LabelRows=7
1545 \end_layout
1546
1547 \begin_layout LyX-Code
1548
1549 \backslash
1550 LeftBorder=8mm
1551 \end_layout
1552
1553 \begin_layout LyX-Code
1554
1555 \backslash
1556 RightBorder=8mm
1557 \end_layout
1558
1559 \begin_layout LyX-Code
1560
1561 \backslash
1562 TopBorder=9mm
1563 \end_layout
1564
1565 \begin_layout LyX-Code
1566
1567 \backslash
1568 BottomBorder=2mm
1569 \end_layout
1570
1571 \begin_layout Standard
1572 This sets things up for Avery label sheets, stock #5360.
1573  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1574  code, placing
1575  the commands 
1576 \begin_inset Flex Code
1577 status collapsed
1578
1579 \begin_layout Plain Layout
1580
1581 \backslash
1582 begin{labels}
1583 \end_layout
1584
1585 \end_inset
1586
1587  and 
1588 \begin_inset Flex Code
1589 status collapsed
1590
1591 \begin_layout Plain Layout
1592
1593 \backslash
1594 end{labels}
1595 \end_layout
1596
1597 \end_inset
1598
1599  around each label text.
1600  This and other special features of 
1601 \begin_inset Flex Code
1602 status collapsed
1603
1604 \begin_layout Plain Layout
1605 labels.sty
1606 \end_layout
1607
1608 \end_inset
1609
1610  are explained in its documentation.
1611 \end_layout
1612
1613 \begin_layout Standard
1614 Someday, someone may write a \SpecialChar LyX
1615  layout file to support this package directly.
1616  Maybe that someone is you.
1617 \end_layout
1618
1619 \begin_layout Subsubsection
1620 Example #3: Paragraph Indentation
1621 \end_layout
1622
1623 \begin_layout Standard
1624 Americans are trained to indent the first line of 
1625 \emph on
1626 every
1627 \emph default
1628  paragraph.
1629  As with all of their other weird quirks, most Americans will whine and
1630  moan until they can have their way and indent the first line of all paragraphs.
1631  (Yes, we're joking.
1632  (We are?) 
1633 \emph on
1634 Yeah
1635 \emph default
1636 , we are.)
1637 \end_layout
1638
1639 \begin_layout Standard
1640 Of course, this behavior isn't standard typography.
1641  In books, you typically only indent the first line of a paragraph 
1642 \emph on
1643 if
1644 \emph default
1645  it follows another one.
1646  The idea behind indenting the first line of a paragraph is to distinguish
1647  neighboring paragraphs from one another.
1648  If there is no previous paragraph—for example, if it follows a figure or
1649  is the first paragraph in a section—then there is no need for indentation.
1650  
1651 \end_layout
1652
1653 \begin_layout Standard
1654 If you're a typical American (we're still joking!), though, you don't care
1655  about such esoteric things; you want your indentation! Add this to the
1656  preamble:
1657 \end_layout
1658
1659 \begin_layout LyX-Code
1660
1661 \backslash
1662 usepackage{indentfirst}
1663 \end_layout
1664
1665 \begin_layout Standard
1666 If your \SpecialChar TeX
1667  distribution isn't braindead, you'll have this package, and all
1668  of your paragraphs will get the indentation the Founding Fathers intended
1669  they should have.
1670 \end_layout
1671
1672 \begin_layout Subsubsection
1673 Example #4: This Document
1674 \end_layout
1675
1676 \begin_layout Standard
1677 You can also check out the preamble of this document to get an idea of some
1678  of the advanced things you can do.
1679 \end_layout
1680
1681 \begin_layout Section
1682 \SpecialChar LyX
1683  and \SpecialChar LaTeX
1684  Errors
1685 \end_layout
1686
1687 \begin_layout Standard
1688 When \SpecialChar LyX
1689  calls \SpecialChar LaTeX
1690 , it tells \SpecialChar LaTeX
1691  to blithely ignore any errors and keep going.
1692  It then uses the logfile from the \SpecialChar LaTeX
1693  run to do a post-mortem.
1694  After analyzing the logfile, \SpecialChar LyX
1695  displays a dialog listing the errors.
1696  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1697  file
1698  where the error occurred.
1699 \begin_inset Foot
1700 status collapsed
1701
1702 \begin_layout Plain Layout
1703 Well, usually.
1704  Analyzing the logfile is a tough job, and \SpecialChar LyX
1705  doesn't always go to the right
1706  line.
1707  There are also cases where \SpecialChar LaTeX
1708  reports the error on one line, but the actual
1709  error is earlier.
1710  This is not unlike forgetting a closing brace in a program: You'll get
1711  an error, but only later.
1712 \end_layout
1713
1714 \end_inset
1715
1716
1717 \end_layout
1718
1719 \begin_layout Standard
1720 Some folks also like to look at the log file directly: It is available from
1721  
1722 \begin_inset Flex Noun
1723 status collapsed
1724
1725 \begin_layout Plain Layout
1726 Document
1727 \bar under
1728 \SpecialChar menuseparator
1729
1730 \bar default
1731 Latex
1732 \begin_inset space ~
1733 \end_inset
1734
1735 Log
1736 \end_layout
1737
1738 \end_inset
1739
1740 .
1741  There are some fairly common error messages and warnings.
1742  We'll cover those here.
1743  You should look at a good \SpecialChar LaTeX
1744  book for a complete listing.
1745 \end_layout
1746
1747 \begin_layout Itemize
1748 \begin_inset Flex Code
1749 status collapsed
1750
1751 \begin_layout Plain Layout
1752 \SpecialChar LaTeX
1753  Warning
1754 \end_layout
1755
1756 \end_inset
1757
1758
1759 \begin_inset Newline newline
1760 \end_inset
1761
1762 Anything beginning with these words is a warning message for the purpose
1763  of 
1764 \begin_inset Quotes eld
1765 \end_inset
1766
1767 debugging
1768 \begin_inset Quotes erd
1769 \end_inset
1770
1771  the \SpecialChar LaTeX
1772  code itself.
1773  You'll get messages like this if you added or changed cross-references
1774  or bibliography entries, in which case, \SpecialChar LaTeX
1775  is trying to tell you that you
1776  need to make another run.
1777  You can by-and-large ignore these.
1778 \end_layout
1779
1780 \begin_layout Itemize
1781 \begin_inset Flex Code
1782 status collapsed
1783
1784 \begin_layout Plain Layout
1785 \SpecialChar LaTeX
1786  Font Warning
1787 \end_layout
1788
1789 \end_inset
1790
1791
1792 \begin_inset Newline newline
1793 \end_inset
1794
1795 Another warning message, this time about fonts which \SpecialChar LaTeX
1796  couldn't find.
1797  The rest of the message will often say something about a replacement font
1798  that \SpecialChar LaTeX
1799  used.
1800  You can safely ignore these, too.
1801 \end_layout
1802
1803 \begin_layout Itemize
1804 \begin_inset Flex Code
1805 status collapsed
1806
1807 \begin_layout Plain Layout
1808 Overfull 
1809 \backslash
1810 hbox
1811 \end_layout
1812
1813 \end_inset
1814
1815
1816 \begin_inset Newline newline
1817 \end_inset
1818
1819 \SpecialChar LaTeX
1820  absolutely 
1821 \emph on
1822 loves
1823 \emph default
1824  to spew these out.
1825  They are warnings about lines that were too long and run past the right
1826  margin.
1827  Almost always, this is unnoticeable in the final output.
1828  (It can be just a point or two.) Or, only one or two characters extend past
1829  the margin.
1830  \SpecialChar LaTeX
1831  seems to generate at least one of these messages for just about any document
1832  you write.
1833 \begin_inset Newline newline
1834 \end_inset
1835
1836 You can ignore these messages.
1837  Your eyes will tell you if there's a problem with something that's too
1838  wide; just look at the output.
1839 \begin_inset Foot
1840 status collapsed
1841
1842 \begin_layout Plain Layout
1843 You can also enable the `draft' option in 
1844 \begin_inset Flex Noun
1845 status collapsed
1846
1847 \begin_layout Plain Layout
1848 Document
1849 \bar under
1850 \SpecialChar menuseparator
1851
1852 \bar default
1853 Settings
1854 \end_layout
1855
1856 \end_inset
1857
1858 , and then \SpecialChar LaTeX
1859  will draw a black box in the margin of lines that are overfull.
1860 \end_layout
1861
1862 \end_inset
1863
1864
1865 \end_layout
1866
1867 \begin_layout Itemize
1868 \begin_inset Flex Code
1869 status collapsed
1870
1871 \begin_layout Plain Layout
1872 Underfull 
1873 \backslash
1874 hbox
1875 \end_layout
1876
1877 \end_inset
1878
1879
1880 \begin_inset Newline newline
1881 \end_inset
1882
1883 Not quite as common as its cousin.
1884  \SpecialChar LaTeX
1885  seems to like to print lines that are a bit too wide as opposed to ones
1886  that are a bit too narrow.
1887  We have no idea why.
1888 \end_layout
1889
1890 \begin_layout Itemize
1891 \begin_inset Flex Code
1892 status collapsed
1893
1894 \begin_layout Plain Layout
1895 Overfull 
1896 \backslash
1897 vbox
1898 \end_layout
1899
1900 \end_inset
1901
1902  and 
1903 \begin_inset Flex Code
1904 status collapsed
1905
1906 \begin_layout Plain Layout
1907 Underfull 
1908 \backslash
1909 vbox
1910 \end_layout
1911
1912 \end_inset
1913
1914
1915 \begin_inset Newline newline
1916 \end_inset
1917
1918 Warnings about troubles breaking the page.
1919  Once again, just look at the output.
1920  Your eyes will tell you where something has gone wrong.
1921 \end_layout
1922
1923 \begin_layout Itemize
1924 \begin_inset Flex Code
1925 status collapsed
1926
1927 \begin_layout Plain Layout
1928 \SpecialChar LaTeX
1929  Error: File 
1930 \begin_inset Quotes els
1931 \end_inset
1932
1933 Xxxx
1934 \begin_inset Quotes ers
1935 \end_inset
1936
1937  not found
1938 \end_layout
1939
1940 \end_inset
1941
1942
1943 \begin_inset Newline newline
1944 \end_inset
1945
1946 The file 
1947 \begin_inset Quotes eld
1948 \end_inset
1949
1950 Xxxx
1951 \begin_inset Quotes erd
1952 \end_inset
1953
1954  isn't installed on this system.
1955  This usually appears because some package your document needs isn't installed.
1956  If you didn't touch the preamble or didn't use the 
1957 \begin_inset Flex Code
1958 status collapsed
1959
1960 \begin_layout Plain Layout
1961
1962 \backslash
1963 usepackage{}
1964 \end_layout
1965
1966 \end_inset
1967
1968  command, then one of the packages \SpecialChar LyX
1969  tried to load is missing.
1970  Use 
1971 \begin_inset Flex Noun
1972 status collapsed
1973
1974 \begin_layout Plain Layout
1975 Help\SpecialChar menuseparator
1976 \SpecialChar LaTeX
1977  Configuration
1978 \end_layout
1979
1980 \end_inset
1981
1982  to get a list of packages that \SpecialChar LyX
1983  knows about.
1984  This file is updated whenever you reconfigure \SpecialChar LyX
1985  (using 
1986 \begin_inset Flex Noun
1987 status collapsed
1988
1989 \begin_layout Plain Layout
1990 Tools\SpecialChar menuseparator
1991 Reconfigure
1992 \end_layout
1993
1994 \end_inset
1995
1996 ) and tells you which packages have been detected and what they do.
1997 \begin_inset Newline newline
1998 \end_inset
1999
2000 If you did use the 
2001 \begin_inset Flex Code
2002 status collapsed
2003
2004 \begin_layout Plain Layout
2005
2006 \backslash
2007 usepackage{}
2008 \end_layout
2009
2010 \end_inset
2011
2012  command and the package in question isn't installed, then you'll need to
2013  install it yourself.
2014 \end_layout
2015
2016 \begin_layout Itemize
2017 \begin_inset Flex Code
2018 status collapsed
2019
2020 \begin_layout Plain Layout
2021 \SpecialChar LaTeX
2022  Error: Unknown option
2023 \end_layout
2024
2025 \end_inset
2026
2027
2028 \begin_inset Newline newline
2029 \end_inset
2030
2031 Error messages beginning with this are trying to tell you that you specified
2032  a bad or undefined option to a package.
2033  Check the package's documentation.
2034 \end_layout
2035
2036 \begin_layout Itemize
2037 \begin_inset Flex Code
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041 Undefined control sequence
2042 \end_layout
2043
2044 \end_inset
2045
2046
2047 \begin_inset Newline newline
2048 \end_inset
2049
2050 If you've inserted \SpecialChar LaTeX
2051  code into your document, but made a typo, you'll get
2052  one of these.
2053  You may have forgotten to load a package.
2054  In any case, this error message usually means that you used an undefined
2055  command.
2056  
2057 \end_layout
2058
2059 \begin_layout Standard
2060 There are other error and warning messages.
2061  Some are self-explanatory.
2062  These are usually \SpecialChar LaTeX
2063  messages.
2064  Others are downright cryptic.
2065  These are usually \SpecialChar TeX
2066  error messages, and we really have 
2067 \emph on
2068 no clue
2069 \emph default
2070  what they mean or how to decipher them.
2071  No-one does.
2072 \end_layout
2073
2074 \begin_layout Standard
2075 There's a general sequence you should follow if you get error messages:
2076 \end_layout
2077
2078 \begin_layout Enumerate
2079 Look at the \SpecialChar LaTeX
2080  code you inserted for typos.
2081 \end_layout
2082
2083 \begin_layout Enumerate
2084 If there are no typos, check that you used the command(s) correctly.
2085 \end_layout
2086
2087 \begin_layout Enumerate
2088 If you get a bunch of error boxes piled up at the very top of the document—and
2089  especially if you see a 
2090 \begin_inset Quotes eld
2091 \end_inset
2092
2093
2094 \begin_inset Flex Code
2095 status collapsed
2096
2097 \begin_layout Plain Layout
2098 Missing 
2099 \backslash
2100 begin{document}
2101 \end_layout
2102
2103 \end_inset
2104
2105
2106 \begin_inset Quotes erd
2107 \end_inset
2108
2109  error—it means that there are errors in the preamble.
2110  Start debugging your preamble.
2111 \end_layout
2112
2113 \begin_layout Enumerate
2114 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2115  code to the
2116  document, the first suspect is your \SpecialChar LaTeX
2117  distribution itself.
2118  Check for missing packages and install them.
2119 \end_layout
2120
2121 \begin_layout Enumerate
2122 Okay, so there are no missing packages.
2123  Did you use any of the fine-tuning options in \SpecialChar LyX
2124 ? Specifically, did you 
2125 \emph on
2126 misuse
2127 \emph default
2128  any of them, like trying to manually insert lots of 
2129 \begin_inset Flex Code
2130 status collapsed
2131
2132 \begin_layout Plain Layout
2133 Protected
2134 \begin_inset space ~
2135 \end_inset
2136
2137 Blanks
2138 \end_layout
2139
2140 \end_inset
2141
2142
2143 \begin_inset Flex Code
2144 status collapsed
2145
2146 \begin_layout Plain Layout
2147 Linebreaks
2148 \end_layout
2149
2150 \end_inset
2151
2152 , or 
2153 \begin_inset Flex Code
2154 status collapsed
2155
2156 \begin_layout Plain Layout
2157 Pagebreaks
2158 \end_layout
2159
2160 \end_inset
2161
2162 ? Did you try to kludge something together with these instead of using the
2163  appropriate paragraph environment?
2164 \end_layout
2165
2166 \begin_layout Enumerate
2167 All right, you didn't use any of the fine-tuning options, you played by
2168  the rules.
2169  Did you try to pull a fancy maneuver? Did you do something funky inside
2170  a table or an equation, like inserting a graphic into a table cell?
2171 \end_layout
2172
2173 \begin_layout Enumerate
2174 Do you have long sections of text where \SpecialChar LaTeX
2175  cannot find a place to break a
2176  line? By default, \SpecialChar LaTeX
2177  is rather strict about how much extra inter-word spacing
2178  it will add in order to break a line.
2179  Preferably, you should rework the paragraph to avoid the problem.
2180 \end_layout
2181
2182 \begin_layout Enumerate
2183 Did you go overboard with the nesting? \SpecialChar LyX
2184  (currently) doesn't check to make
2185  sure you're in the limits for nesting environments.
2186  If you nested a bunch of environments to the 
2187 \begin_inset Formula $17^{\mathrm{th}}$
2188 \end_inset
2189
2190  level, that's the problem.
2191  (The limit in \SpecialChar LaTeX
2192  is five.)
2193 \end_layout
2194
2195 \begin_layout Enumerate
2196 Okay, you didn't get any error messages, but your output looks awful.
2197  If you have a table or figure that's too wide or long for the page, you
2198  need to:
2199 \begin_inset Separator parbreak
2200 \end_inset
2201
2202
2203 \end_layout
2204
2205 \begin_deeper
2206 \begin_layout Enumerate
2207 rescale the figure so it fits.
2208 \end_layout
2209
2210 \begin_layout Enumerate
2211 trim down the table so it fits.
2212 \end_layout
2213
2214 \end_deeper
2215 \begin_layout Enumerate
2216 If something else is wrong with the output, and you didn't try to pull anything
2217  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2218 \end_layout
2219
2220 \begin_layout Standard
2221 If all this doesn't help—well, then 
2222 \emph on
2223 perhaps
2224 \emph default
2225  you might have found a bug in \SpecialChar LyX
2226 \SpecialChar ldots
2227 .
2228 \end_layout
2229
2230 \begin_layout Chapter
2231 Supplemental Tools
2232 \end_layout
2233
2234 \begin_layout Section
2235 Customizing Bibliographies with Bib\SpecialChar TeX
2236
2237 \end_layout
2238
2239 \begin_layout Standard
2240 The most basic information about how to use Bib\SpecialChar TeX
2241  with \SpecialChar LyX
2242  is contained in the
2243  section 
2244 \emph on
2245 Bibliography databases (Bib\SpecialChar TeX
2246 )
2247 \emph default
2248  of the 
2249 \emph on
2250 User's Guide
2251 \emph default
2252 .
2253  The following subsections explain special bibliography features supported
2254  by \SpecialChar LyX
2255 .
2256 \end_layout
2257
2258 \begin_layout Subsection
2259 Alternative Citation Styles
2260 \end_layout
2261
2262 \begin_layout Standard
2263 Standard Bib\SpecialChar TeX
2264  uses numbers (e.
2265 \begin_inset space \thinspace{}
2266 \end_inset
2267
2268 g.
2269 \begin_inset space \space{}
2270 \end_inset
2271
2272
2273 \begin_inset Quotes eld
2274 \end_inset
2275
2276 [12]
2277 \begin_inset Quotes erd
2278 \end_inset
2279
2280 ) to refer to a cited work.
2281  However, in many scientific disciplines, other citation styles are in use.
2282  The most common one is the author-year style (e.
2283 \begin_inset space \thinspace{}
2284 \end_inset
2285
2286 g.
2287 \begin_inset space \space{}
2288 \end_inset
2289
2290
2291 \begin_inset Quotes eld
2292 \end_inset
2293
2294 Knuth 1984a
2295 \begin_inset Quotes erd
2296 \end_inset
2297
2298 ).
2299  \SpecialChar LyX
2300  supports two packages that provide this style, 
2301 \begin_inset Flex Code
2302 status collapsed
2303
2304 \begin_layout Plain Layout
2305 natbib
2306 \end_layout
2307
2308 \end_inset
2309
2310  and 
2311 \begin_inset Flex Code
2312 status collapsed
2313
2314 \begin_layout Plain Layout
2315 jurabib
2316 \end_layout
2317
2318 \end_inset
2319
2320 .
2321  Both packages have their pros and cons, which cannot be listed in detail.
2322  If you only want to have simple author-year (or author-numerical) style,
2323  or if you want to use one of the countless style files for 
2324 \begin_inset Flex Code
2325 status collapsed
2326
2327 \begin_layout Plain Layout
2328 natbib
2329 \end_layout
2330
2331 \end_inset
2332
2333 , then the established 
2334 \begin_inset Flex Code
2335 status collapsed
2336
2337 \begin_layout Plain Layout
2338 natbib
2339 \end_layout
2340
2341 \end_inset
2342
2343  package is probably your choice.
2344  If you need special features like short title references, ibidem etc., you
2345  might consider the 
2346 \begin_inset Flex Code
2347 status collapsed
2348
2349 \begin_layout Plain Layout
2350 jurabib
2351 \end_layout
2352
2353 \end_inset
2354
2355  package.
2356 \end_layout
2357
2358 \begin_layout Standard
2359 The handling of both packages in \SpecialChar LyX
2360  is basically the same.
2361  Go to 
2362 \begin_inset Flex Noun
2363 status collapsed
2364
2365 \begin_layout Plain Layout
2366 Document\SpecialChar menuseparator
2367 Settings
2368 \end_layout
2369
2370 \end_inset
2371
2372  and select under 
2373 \begin_inset Flex Noun
2374 status collapsed
2375
2376 \begin_layout Plain Layout
2377 Bibliography
2378 \end_layout
2379
2380 \end_inset
2381
2382  the option 
2383 \begin_inset Flex Noun
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387 Natbib
2388 \end_layout
2389
2390 \end_inset
2391
2392  or 
2393 \begin_inset Flex Noun
2394 status collapsed
2395
2396 \begin_layout Plain Layout
2397 Jurabib
2398 \end_layout
2399
2400 \end_inset
2401
2402 .
2403  With both packages, you will get some extra features in the citation dialog
2404  and you can select the style of the reference (
2405 \begin_inset Quotes eld
2406 \end_inset
2407
2408 Knuth 1984
2409 \begin_inset Quotes erd
2410 \end_inset
2411
2412
2413 \begin_inset Quotes eld
2414 \end_inset
2415
2416 Knuth (1984)
2417 \begin_inset Quotes erd
2418 \end_inset
2419
2420
2421 \begin_inset Quotes eld
2422 \end_inset
2423
2424 Knuth, 1984
2425 \begin_inset Quotes erd
2426 \end_inset
2427
2428
2429 \begin_inset Quotes eld
2430 \end_inset
2431
2432 1984
2433 \begin_inset Quotes erd
2434 \end_inset
2435
2436  etc.).
2437  Note that both packages need specifically designed style files.
2438  They both ship their own, but there are lots of additional style files,
2439  and there is even an interactive style file builder
2440 \begin_inset Foot
2441 status collapsed
2442
2443 \begin_layout Plain Layout
2444 See 
2445 \begin_inset Flex URL
2446 status open
2447
2448 \begin_layout Plain Layout
2449
2450 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2451 \end_layout
2452
2453 \end_inset
2454
2455
2456 \end_layout
2457
2458 \end_inset
2459
2460  for 
2461 \begin_inset Flex Code
2462 status collapsed
2463
2464 \begin_layout Plain Layout
2465 natbib
2466 \end_layout
2467
2468 \end_inset
2469
2470 .
2471 \end_layout
2472
2473 \begin_layout Subsection
2474 Sectioned Bibliographies
2475 \end_layout
2476
2477 \begin_layout Standard
2478 Sometimes you might need to divide your bibliography into several sections.
2479  If you are for instance a historian, the possibility to separate sources
2480  and scientific works is most likely a 
2481 \begin_inset Quotes eld
2482 \end_inset
2483
2484 must have
2485 \begin_inset Quotes erd
2486 \end_inset
2487
2488 .
2489  Unfortunately, Bib\SpecialChar TeX
2490  itself does not allow you to do this.
2491  But with the help of some \SpecialChar LaTeX
2492  packages, Bib\SpecialChar TeX
2493  can be extended to fit your needs.
2494 \end_layout
2495
2496 \begin_layout Standard
2497 \SpecialChar LyX
2498  provides native support for one of these packages, 
2499 \family typewriter
2500 bibtopic
2501 \family default
2502 .
2503 \begin_inset Foot
2504 status collapsed
2505
2506 \begin_layout Plain Layout
2507 Available from 
2508 \begin_inset Flex URL
2509 status open
2510
2511 \begin_layout Plain Layout
2512
2513 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2514 \end_layout
2515
2516 \end_inset
2517
2518
2519 \end_layout
2520
2521 \end_inset
2522
2523  The advantage of this package (compared to other packages like 
2524 \family typewriter
2525 multibib
2526 \family default
2527 ) is that you don't need to define new citation commands.
2528  Instead, you need to prepare different bibliographic databases which include
2529  the entries for the different sections of the bibliography.
2530  For example: If you want to divide your bibliography into the sections
2531  
2532 \begin_inset Quotes eld
2533 \end_inset
2534
2535 Sources
2536 \begin_inset Quotes erd
2537 \end_inset
2538
2539  and 
2540 \begin_inset Quotes eld
2541 \end_inset
2542
2543 Scientific works
2544 \begin_inset Quotes erd
2545 \end_inset
2546
2547 , you first need to create two bibliographic databases, e.
2548 \begin_inset space \thinspace{}
2549 \end_inset
2550
2551 g.
2552 \begin_inset space \space{}
2553 \end_inset
2554
2555
2556 \begin_inset Flex Code
2557 status collapsed
2558
2559 \begin_layout Plain Layout
2560 sources.bib
2561 \end_layout
2562
2563 \end_inset
2564
2565  and 
2566 \begin_inset Flex Code
2567 status collapsed
2568
2569 \begin_layout Plain Layout
2570 scientific.bib
2571 \end_layout
2572
2573 \end_inset
2574
2575 .
2576  
2577 \end_layout
2578
2579 \begin_layout Standard
2580 Go to 
2581 \begin_inset Flex Noun
2582 status collapsed
2583
2584 \begin_layout Plain Layout
2585 Document\SpecialChar menuseparator
2586 Settings
2587 \end_layout
2588
2589 \end_inset
2590
2591  and check under 
2592 \begin_inset Flex Noun
2593 status collapsed
2594
2595 \begin_layout Plain Layout
2596 Bibliography
2597 \end_layout
2598
2599 \end_inset
2600
2601  the option 
2602 \begin_inset Flex Noun
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 Sectioned bibliography
2607 \end_layout
2608
2609 \end_inset
2610
2611 .
2612  Now you can insert multiple Bib\SpecialChar TeX
2613  bibliographies, one for each section of
2614  your bibliography.
2615  Returning to our example: Insert the Bib\SpecialChar TeX
2616  bibliography 
2617 \begin_inset Flex Code
2618 status collapsed
2619
2620 \begin_layout Plain Layout
2621 sources.bib
2622 \end_layout
2623
2624 \end_inset
2625
2626  and a second one for the database 
2627 \begin_inset Flex Code
2628 status collapsed
2629
2630 \begin_layout Plain Layout
2631 scientific.bib
2632 \end_layout
2633
2634 \end_inset
2635
2636 .
2637  You are free to use the same or different styles for each section.
2638  Additionally, you can choose if the bibliography section should contain
2639  
2640 \begin_inset Quotes eld
2641 \end_inset
2642
2643 all cited references
2644 \begin_inset Quotes erd
2645 \end_inset
2646
2647  of the specified database(s) (which is the default), 
2648 \begin_inset Quotes eld
2649 \end_inset
2650
2651 all uncited references
2652 \begin_inset Quotes erd
2653 \end_inset
2654
2655  or even 
2656 \begin_inset Quotes eld
2657 \end_inset
2658
2659 all references
2660 \begin_inset Quotes erd
2661 \end_inset
2662
2663 .
2664  This might be useful if you would like to separate your bibliography into
2665  three sections: 
2666 \begin_inset Quotes eld
2667 \end_inset
2668
2669 Cited sources
2670 \begin_inset Quotes erd
2671 \end_inset
2672
2673
2674 \begin_inset Quotes eld
2675 \end_inset
2676
2677 Uncited sources
2678 \begin_inset Quotes erd
2679 \end_inset
2680
2681 , and 
2682 \begin_inset Quotes eld
2683 \end_inset
2684
2685 Scientific works
2686 \begin_inset Quotes erd
2687 \end_inset
2688
2689 .
2690  The titles for the sections can be added as ordinary sections or subsections.
2691  Since 
2692 \begin_inset Flex Code
2693 status collapsed
2694
2695 \begin_layout Plain Layout
2696 bibtopic
2697 \end_layout
2698
2699 \end_inset
2700
2701  removes the bibliography title, you have to manually re-add that, too (as
2702  a chapter* or section*, for instance).
2703 \end_layout
2704
2705 \begin_layout Subsection
2706 Multiple Bibliographies
2707 \end_layout
2708
2709 \begin_layout Standard
2710 Multiple bibliographies, e.
2711 \begin_inset space \thinspace{}
2712 \end_inset
2713
2714 g.
2715 \begin_inset space \space{}
2716 \end_inset
2717
2718 a bibliography for each section or chapter of the document, are not supported
2719  by Bib\SpecialChar TeX
2720  itself.
2721  But the 
2722 \begin_inset Flex Code
2723 status collapsed
2724
2725 \begin_layout Plain Layout
2726 bibtopic
2727 \end_layout
2728
2729 \end_inset
2730
2731  package, which is used for the creation of sectioned bibliographies in
2732  \SpecialChar LyX
2733  (see the previous section), provides an easy way to solve this task, if
2734  you are willing to use some 
2735 \begin_inset Flex Noun
2736 status collapsed
2737
2738 \begin_layout Plain Layout
2739 \SpecialChar TeX
2740  Code
2741 \end_layout
2742
2743 \end_inset
2744
2745  (see section
2746 \begin_inset space ~
2747 \end_inset
2748
2749
2750 \begin_inset CommandInset ref
2751 LatexCommand ref
2752 reference "sec:Inserting-TeX-Code"
2753
2754 \end_inset
2755
2756 ).
2757 \begin_inset Foot
2758 status collapsed
2759
2760 \begin_layout Plain Layout
2761 An alternative approach is to use the 
2762 \begin_inset Flex Code
2763 status collapsed
2764
2765 \begin_layout Plain Layout
2766 chapterbib
2767 \end_layout
2768
2769 \end_inset
2770
2771  or 
2772 \begin_inset Flex Code
2773 status collapsed
2774
2775 \begin_layout Plain Layout
2776 bibunits
2777 \end_layout
2778
2779 \end_inset
2780
2781  package, respectively.
2782 \end_layout
2783
2784 \end_inset
2785
2786
2787 \end_layout
2788
2789 \begin_layout Standard
2790 First go to 
2791 \begin_inset Flex Noun
2792 status collapsed
2793
2794 \begin_layout Plain Layout
2795 Document\SpecialChar menuseparator
2796 Settings
2797 \end_layout
2798
2799 \end_inset
2800
2801  and under 
2802 \begin_inset Flex Noun
2803 status collapsed
2804
2805 \begin_layout Plain Layout
2806 Bibliography
2807 \end_layout
2808
2809 \end_inset
2810
2811  check 
2812 \begin_inset Flex Noun
2813 status collapsed
2814
2815 \begin_layout Plain Layout
2816 Sectioned bibliography
2817 \end_layout
2818
2819 \end_inset
2820
2821 .
2822  In the document, you have to enclose the sections, which shall contain
2823  their own bibliography (including the Bib\SpecialChar TeX
2824  bibliography itself), between
2825  
2826 \begin_inset Flex Code
2827 status collapsed
2828
2829 \begin_layout Plain Layout
2830
2831 \backslash
2832 begin{btUnit}
2833 \end_layout
2834
2835 \end_inset
2836
2837  and 
2838 \begin_inset Flex Code
2839 status collapsed
2840
2841 \begin_layout Plain Layout
2842
2843 \backslash
2844 end{btUnit}
2845 \end_layout
2846
2847 \end_inset
2848
2849  (those commands have to be inserted as \SpecialChar TeX
2850  code).
2851  The bibliography will contain all references that have been cited in the
2852  current 
2853 \begin_inset Flex Code
2854 status collapsed
2855
2856 \begin_layout Plain Layout
2857 btUnit
2858 \end_layout
2859
2860 \end_inset
2861
2862 .
2863  
2864 \series bold
2865 Note:
2866 \series default
2867  If you are using this approach, then every citation reference has to be
2868  inside some 
2869 \begin_inset Flex Code
2870 status collapsed
2871
2872 \begin_layout Plain Layout
2873 btUnit
2874 \end_layout
2875
2876 \end_inset
2877
2878 .
2879  Also, the 
2880 \begin_inset Flex Code
2881 status collapsed
2882
2883 \begin_layout Plain Layout
2884 btUnit
2885 \end_layout
2886
2887 \end_inset
2888
2889 s cannot be nested.
2890 \end_layout
2891
2892 \begin_layout Section
2893 Multipart Documents
2894 \end_layout
2895
2896 \begin_layout Subsection
2897 General Operation
2898 \end_layout
2899
2900 \begin_layout Standard
2901 When you are working on a large file with many sections, it is often convenient
2902  to break up the document into several files, or perhaps you have something
2903  where a table may change from time to time, but the preceding text does
2904  not.
2905  In these cases, you should seriously consider using multipart documents.
2906  For example, scientific papers often have five major sections: the introduction
2907 , observations, results, discussion, and conclusion.
2908  Each of these could be its own separate \SpecialChar LyX
2909  file, with one 
2910 \begin_inset Quotes eld
2911 \end_inset
2912
2913 master
2914 \begin_inset Quotes erd
2915 \end_inset
2916
2917  file which contains the title, authors, abstract, references, etc., plus
2918  the five included files.
2919  It is important to note that each of these files is a full \SpecialChar LyX
2920  file which
2921  can be formatted and printed on its own, as well as included in a master
2922  file.
2923  Each of these files must have the same document class, however—don't attempt
2924  to mix book classes with article classes.
2925  You may also include \SpecialChar LaTeX
2926  files; however, these files must not have their own
2927  preamble (i.
2928 \begin_inset space \thinspace{}
2929 \end_inset
2930
2931 e.
2932 \begin_inset space \space{}
2933 \end_inset
2934
2935 everything up to and including the 
2936 \begin_inset Flex Code
2937 status collapsed
2938
2939 \begin_layout Plain Layout
2940
2941 \backslash
2942 begin{document}
2943 \end_layout
2944
2945 \end_inset
2946
2947  line as well as the 
2948 \begin_inset Flex Code
2949 status collapsed
2950
2951 \begin_layout Plain Layout
2952
2953 \backslash
2954 end{document}
2955 \end_layout
2956
2957 \end_inset
2958
2959  line must be deleted) or else errors will be generated when you try to
2960  make a DVI file.
2961 \end_layout
2962
2963 \begin_layout Standard
2964 \SpecialChar LyX
2965  allows you to include files quite easily with 
2966 \begin_inset Flex Noun
2967 status collapsed
2968
2969 \begin_layout Plain Layout
2970 Insert\SpecialChar menuseparator
2971 ChiId
2972 \begin_inset space ~
2973 \end_inset
2974
2975 Document
2976 \end_layout
2977
2978 \end_inset
2979
2980 .
2981  When you click on this selection a small box is inserted into the file
2982  at the current cursor location.
2983  Clicking on the box raises a dialog which allows you to select the file
2984  to be included, and the method of its inclusion.
2985  
2986 \end_layout
2987
2988 \begin_layout Standard
2989 The file selection box should by now be obvious.
2990  The three inclusion methods are 
2991 \begin_inset Quotes eld
2992 \end_inset
2993
2994 include
2995 \begin_inset Quotes erd
2996 \end_inset
2997
2998
2999 \begin_inset Quotes eld
3000 \end_inset
3001
3002 input
3003 \begin_inset Quotes erd
3004 \end_inset
3005
3006 , and 
3007 \begin_inset Quotes eld
3008 \end_inset
3009
3010 verbatim
3011 \begin_inset Quotes erd
3012 \end_inset
3013
3014 .
3015  The difference between 
3016 \begin_inset Quotes eld
3017 \end_inset
3018
3019 include
3020 \begin_inset Quotes erd
3021 \end_inset
3022
3023  and 
3024 \begin_inset Quotes eld
3025 \end_inset
3026
3027 input
3028 \begin_inset Quotes erd
3029 \end_inset
3030
3031  is really only meaningful to \SpecialChar LaTeX
3032 perts, but the practical difference is that
3033  files that are 
3034 \begin_inset Quotes eld
3035 \end_inset
3036
3037 included
3038 \begin_inset Quotes erd
3039 \end_inset
3040
3041  are typeset beginning on a new page, while files that are 
3042 \begin_inset Quotes eld
3043 \end_inset
3044
3045 inputted
3046 \begin_inset Quotes erd
3047 \end_inset
3048
3049  are typeset starting on the current page.
3050 \end_layout
3051
3052 \begin_layout Standard
3053 Generally, the master file is converted into a full \SpecialChar LaTeX
3054  file before typesetting,
3055  while the included files are converted to \SpecialChar LaTeX
3056  files that do not have all the
3057  preamble information.
3058 \end_layout
3059
3060 \begin_layout Standard
3061
3062 \begin_inset Quotes eld
3063 \end_inset
3064
3065 verbatim
3066 \begin_inset Quotes erd
3067 \end_inset
3068
3069  included file allows you to include a file typeset exactly as it appears
3070  in the file, i.
3071 \begin_inset space \thinspace{}
3072 \end_inset
3073
3074 e.
3075 \begin_inset space \space{}
3076 \end_inset
3077
3078 in 
3079 \begin_inset Flex Code
3080 status collapsed
3081
3082 \begin_layout Plain Layout
3083 verbatim
3084 \end_layout
3085
3086 \end_inset
3087
3088  mode, with the characters set in a fixed-width typewriter font.
3089  Normally, spaces in this file are invisible, though two consecutive spaces
3090  are conserved, unlike \SpecialChar LyX
3091 's normal treatment of spaces.
3092  However, setting the 
3093 \begin_inset Flex Noun
3094 status collapsed
3095
3096 \begin_layout Plain Layout
3097 Mark
3098 \begin_inset space ~
3099 \end_inset
3100
3101 spaces
3102 \begin_inset space ~
3103 \end_inset
3104
3105 in
3106 \begin_inset space ~
3107 \end_inset
3108
3109 output
3110 \end_layout
3111
3112 \end_inset
3113
3114  checkbox typesets a mark to unambiguously define the presence of a space.
3115  
3116 \end_layout
3117
3118 \begin_layout Subsection
3119 Cross-References Between Files
3120 \end_layout
3121
3122 \begin_layout Standard
3123 \begin_inset Box Shadowbox
3124 position "t"
3125 hor_pos "c"
3126 has_inner_box 1
3127 inner_pos "t"
3128 use_parbox 0
3129 use_makebox 0
3130 width "100col%"
3131 special "none"
3132 height "1in"
3133 height_special "totalheight"
3134 thickness "0.4pt"
3135 separation "3pt"
3136 shadowsize "4pt"
3137 framecolor "black"
3138 backgroundcolor "none"
3139 status open
3140
3141 \begin_layout Plain Layout
3142 This section is somewhat out of date.
3143  Need to describe default master documents and how children are opened when
3144  the master is.
3145  [[FIXME]]
3146 \end_layout
3147
3148 \end_inset
3149
3150
3151 \end_layout
3152
3153 \begin_layout Standard
3154 It is possible to set up cross-references between the different files.
3155  First, open all the files in question: let's call them A and B in a two
3156  file example, where B is included in A.
3157  Let's say you insert a label in A, then want to reference it in B.
3158  Open the cross-reference dialog whilst in document B, and you can select
3159  the 
3160 \begin_inset Quotes eld
3161 \end_inset
3162
3163 buffer
3164 \begin_inset Quotes erd
3165 \end_inset
3166
3167  to use.
3168 \end_layout
3169
3170 \begin_layout Subsection
3171 Bibliography Lists in all Subdocuments
3172 \end_layout
3173
3174 \begin_layout Standard
3175 \begin_inset Box Frameless
3176 position "t"
3177 hor_pos "c"
3178 has_inner_box 1
3179 inner_pos "t"
3180 use_parbox 0
3181 use_makebox 0
3182 width "100col%"
3183 special "none"
3184 height "1in"
3185 height_special "totalheight"
3186 thickness "0.4pt"
3187 separation "3pt"
3188 shadowsize "4pt"
3189 framecolor "black"
3190 backgroundcolor "none"
3191 status open
3192
3193 \begin_layout Plain Layout
3194 This section also needs updating.
3195  There is now material about this on the wiki, and it could be copied here.
3196 \end_layout
3197
3198 \end_inset
3199
3200
3201 \end_layout
3202
3203 \begin_layout Standard
3204 Copy the bibliography list with all entries to all subdocuments and transform
3205  them to a comment.
3206  This way \SpecialChar LyX
3207  will find the 
3208 \begin_inset Flex Code
3209 status collapsed
3210
3211 \begin_layout Plain Layout
3212 .bib
3213 \end_layout
3214
3215 \end_inset
3216
3217 -files and you can easily insert references without making the bibliography
3218  list visible.
3219 \end_layout
3220
3221 \begin_layout Standard
3222 As the bibliography list is in a comment, \SpecialChar LaTeX
3223  won't use it and the references
3224  will look like this: [?], instead of like this: [1].
3225  One solution is to use the \SpecialChar LaTeX
3226 -package 
3227 \begin_inset Flex Code
3228 status collapsed
3229
3230 \begin_layout Plain Layout
3231 comment
3232 \end_layout
3233
3234 \end_inset
3235
3236  that will only include comments by processing the files separately.
3237  To do this, add in the \SpecialChar LaTeX
3238  preamble of every subdocument the following:
3239 \end_layout
3240
3241 \begin_layout LyX-Code
3242
3243 \backslash
3244 usepackage{comment}
3245 \end_layout
3246
3247 \begin_layout LyX-Code
3248
3249 \backslash
3250 includecomment{comment}
3251 \end_layout
3252
3253 \begin_layout Standard
3254 See also 
3255 \begin_inset Flex URL
3256 status collapsed
3257
3258 \begin_layout Plain Layout
3259
3260 http://wiki.lyx.org/FAQ/Unsorted#toc31
3261 \end_layout
3262
3263 \end_inset
3264
3265 .
3266 \end_layout
3267
3268 \begin_layout Section
3269 \SpecialChar LyX
3270  Archives
3271 \end_layout
3272
3273 \begin_layout Standard
3274 Users sometimes need to be able to 
3275 \begin_inset Quotes eld
3276 \end_inset
3277
3278 bundle
3279 \begin_inset Quotes erd
3280 \end_inset
3281
3282  a \SpecialChar LyX
3283  file together with all the images (and other files) on which it depends,
3284  either for sending to a publisher or for sharing with a co-author.
3285  \SpecialChar LyX
3286  2.0 includes a Python script (
3287 \begin_inset Flex Code
3288 status collapsed
3289
3290 \begin_layout Plain Layout
3291 lyxpak.py
3292 \end_layout
3293
3294 \end_inset
3295
3296 ) that automates this process.
3297  To use it, you must have either the 
3298 \begin_inset Flex Code
3299 status collapsed
3300
3301 \begin_layout Plain Layout
3302 zipfile
3303 \end_layout
3304
3305 \end_inset
3306
3307  or 
3308 \begin_inset Flex Code
3309 status collapsed
3310
3311 \begin_layout Plain Layout
3312 tarfile
3313 \end_layout
3314
3315 \end_inset
3316
3317  python modules installed on your system.
3318  By default, the script prefers the 
3319 \begin_inset Flex Code
3320 status collapsed
3321
3322 \begin_layout Plain Layout
3323 gzip
3324 \end_layout
3325
3326 \end_inset
3327
3328 -compressed 
3329 \begin_inset Flex Code
3330 status collapsed
3331
3332 \begin_layout Plain Layout
3333 tar
3334 \end_layout
3335
3336 \end_inset
3337
3338  format on Unix-like systems and the 
3339 \begin_inset Flex Code
3340 status collapsed
3341
3342 \begin_layout Plain Layout
3343 zip
3344 \end_layout
3345
3346 \end_inset
3347
3348  format on Windows.
3349 \end_layout
3350
3351 \begin_layout Standard
3352 \SpecialChar LyX
3353 's configuration process will set the script up to export a `\SpecialChar LyX
3354  Archive',
3355  and this format will then be available under 
3356 \begin_inset Flex Code
3357 status collapsed
3358
3359 \begin_layout Plain Layout
3360 File\SpecialChar menuseparator
3361 Export
3362 \end_layout
3363
3364 \end_inset
3365
3366 .
3367 \end_layout
3368
3369 \begin_layout Standard
3370 Independently of the platform, the generation of a particular archive format
3371  can be forced by adding either the 
3372 \begin_inset Flex Code
3373 status collapsed
3374
3375 \begin_layout Plain Layout
3376 -t
3377 \end_layout
3378
3379 \end_inset
3380
3381  (for the 
3382 \begin_inset Flex Code
3383 status collapsed
3384
3385 \begin_layout Plain Layout
3386 tar
3387 \end_layout
3388
3389 \end_inset
3390
3391  format) or 
3392 \begin_inset Flex Code
3393 status collapsed
3394
3395 \begin_layout Plain Layout
3396 -z
3397 \end_layout
3398
3399 \end_inset
3400
3401  (for the 
3402 \begin_inset Flex Code
3403 status collapsed
3404
3405 \begin_layout Plain Layout
3406 zip
3407 \end_layout
3408
3409 \end_inset
3410
3411  format) switch to the 
3412 \begin_inset Flex Code
3413 status collapsed
3414
3415 \begin_layout Plain Layout
3416 \SpecialChar LyX
3417 \SpecialChar menuseparator
3418 \SpecialChar LyX
3419  Archive
3420 \end_layout
3421
3422 \end_inset
3423
3424  converter in 
3425 \begin_inset Flex Code
3426 status collapsed
3427
3428 \begin_layout Plain Layout
3429 Tools\SpecialChar menuseparator
3430 Preferences\SpecialChar menuseparator
3431 File Handling\SpecialChar menuseparator
3432 Converters
3433 \end_layout
3434
3435 \end_inset
3436
3437 .
3438  (Make sure you add the switch after the script name, not before it.)
3439 \end_layout
3440
3441 \begin_layout Section
3442 Fancy Headers and Footers
3443 \end_layout
3444
3445 \begin_layout Standard
3446 The default page layout is rather plain; for an 
3447 \begin_inset Flex Code
3448 status collapsed
3449
3450 \begin_layout Plain Layout
3451 article
3452 \end_layout
3453
3454 \end_inset
3455
3456  document class, all you get is a centered page number at the bottom of
3457  the page.
3458  This document uses KOMA-script's book class, so it appears to be a bit
3459  fancier.
3460  But to really put on a show, you need to set the document page style to
3461  
3462 \begin_inset Quotes eld
3463 \end_inset
3464
3465 fancy
3466 \begin_inset Quotes erd
3467 \end_inset
3468
3469 , as mentioned in the 
3470 \emph on
3471 User Guide
3472 \emph default
3473 .
3474  This section describes the \SpecialChar LaTeX
3475  code you need to insert in your \SpecialChar LaTeX
3476  preamble in
3477  order to get the desired effects.
3478 \end_layout
3479
3480 \begin_layout Standard
3481 For more information on fancy headers, see the 
3482 \begin_inset Flex Code
3483 status collapsed
3484
3485 \begin_layout Plain Layout
3486 fancyhdr
3487 \end_layout
3488
3489 \end_inset
3490
3491  package documentation.
3492  (
3493 \begin_inset Flex URL
3494 status collapsed
3495
3496 \begin_layout Plain Layout
3497
3498 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3499 \end_layout
3500
3501 \end_inset
3502
3503 )
3504 \end_layout
3505
3506 \begin_layout Standard
3507 The page header is divided into three fields, not surprisingly labeled 
3508 \begin_inset Quotes eld
3509 \end_inset
3510
3511 left
3512 \begin_inset Quotes erd
3513 \end_inset
3514
3515
3516 \begin_inset Quotes eld
3517 \end_inset
3518
3519 center
3520 \begin_inset Quotes erd
3521 \end_inset
3522
3523 , and 
3524 \begin_inset Quotes eld
3525 \end_inset
3526
3527 right
3528 \begin_inset Quotes erd
3529 \end_inset
3530
3531 .
3532  The footer is also divided into these three fields.
3533  The \SpecialChar LaTeX
3534  commands to set these fields in the simplest manner are 
3535 \begin_inset Flex Code
3536 status collapsed
3537
3538 \begin_layout Plain Layout
3539
3540 \backslash
3541 lhead
3542 \end_layout
3543
3544 \end_inset
3545
3546
3547 \begin_inset Flex Code
3548 status collapsed
3549
3550 \begin_layout Plain Layout
3551
3552 \backslash
3553 chead
3554 \end_layout
3555
3556 \end_inset
3557
3558
3559 \begin_inset Flex Code
3560 status collapsed
3561
3562 \begin_layout Plain Layout
3563
3564 \backslash
3565 rhead
3566 \end_layout
3567
3568 \end_inset
3569
3570
3571 \begin_inset Flex Code
3572 status collapsed
3573
3574 \begin_layout Plain Layout
3575
3576 \backslash
3577 lfoot
3578 \end_layout
3579
3580 \end_inset
3581
3582 , etc.
3583  Suppose you wish to put your name in the upper left hand corner of each
3584  page.
3585  Simply insert the following command in the preamble: 
3586 \end_layout
3587
3588 \begin_layout Standard
3589
3590 \family typewriter
3591
3592 \backslash
3593 lhead{John Q.
3594  DocWriter}
3595 \end_layout
3596
3597 \begin_layout Standard
3598 You will now see your name in the upper left.
3599  If a field has a default entry that you would like to get rid of (often
3600  the page number appears in the central footer) simply include a command
3601  with a blank argument, e.
3602 \begin_inset space \thinspace{}
3603 \end_inset
3604
3605 g.:
3606 \end_layout
3607
3608 \begin_layout Standard
3609
3610 \family typewriter
3611
3612 \backslash
3613 cfoot{}
3614 \end_layout
3615
3616 \begin_layout Standard
3617 Let's get really fancy: lets put the section number with the word 
3618 \begin_inset Quotes eld
3619 \end_inset
3620
3621 Section
3622 \begin_inset Quotes erd
3623 \end_inset
3624
3625  (e.
3626 \begin_inset space \thinspace{}
3627 \end_inset
3628
3629 g.
3630 \begin_inset space \space{}
3631 \end_inset
3632
3633 Section 3) in the upper left, the page number (e.
3634 \begin_inset space \thinspace{}
3635 \end_inset
3636
3637 g.
3638 \begin_inset space \space{}
3639 \end_inset
3640
3641 Page 4) in the upper right, your name in the lower left, and the date in
3642  the lower right.
3643  The following commands should now appear in the preamble:
3644 \end_layout
3645
3646 \begin_layout Standard
3647
3648 \family typewriter
3649
3650 \backslash
3651 lhead{Section 
3652 \backslash
3653 thesection}
3654 \end_layout
3655
3656 \begin_layout Standard
3657
3658 \family typewriter
3659
3660 \backslash
3661 chead{}
3662 \end_layout
3663
3664 \begin_layout Standard
3665
3666 \family typewriter
3667
3668 \backslash
3669 rhead{Page 
3670 \backslash
3671 thepage}
3672 \end_layout
3673
3674 \begin_layout Standard
3675
3676 \family typewriter
3677
3678 \backslash
3679 lfoot{John Q.
3680  DocWriter}
3681 \end_layout
3682
3683 \begin_layout Standard
3684
3685 \family typewriter
3686
3687 \backslash
3688 cfoot{}
3689 \end_layout
3690
3691 \begin_layout Standard
3692
3693 \family typewriter
3694
3695 \backslash
3696 rfoot{
3697 \backslash
3698 today}
3699 \end_layout
3700
3701 \begin_layout Standard
3702 The commands 
3703 \begin_inset Flex Code
3704 status collapsed
3705
3706 \begin_layout Plain Layout
3707
3708 \backslash
3709 thesection
3710 \end_layout
3711
3712 \end_inset
3713
3714  and 
3715 \begin_inset Flex Code
3716 status collapsed
3717
3718 \begin_layout Plain Layout
3719
3720 \backslash
3721 thepage
3722 \end_layout
3723
3724 \end_inset
3725
3726  access \SpecialChar LaTeX
3727 's section and page counters, and so print out the current section
3728  and page numbers.
3729  
3730 \begin_inset Flex Code
3731 status collapsed
3732
3733 \begin_layout Plain Layout
3734
3735 \backslash
3736 today
3737 \end_layout
3738
3739 \end_inset
3740
3741  simply prints out today's date.
3742 \end_layout
3743
3744 \begin_layout Standard
3745 The thicknesses of the horizontal rules drawn beneath the header and above
3746  the footer can also be modified.
3747  If you don't want one of the rules, set its thickness to 0.
3748  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3749  Use commands
3750 \family typewriter
3751  
3752 \family default
3753 like 
3754 \begin_inset Flex Code
3755 status collapsed
3756
3757 \begin_layout Plain Layout
3758
3759 \backslash
3760 renewcommand{
3761 \backslash
3762 headrulewidth}{0.4pt}
3763 \end_layout
3764
3765 \end_inset
3766
3767  and 
3768 \begin_inset Flex Code
3769 status collapsed
3770
3771 \begin_layout Plain Layout
3772
3773 \backslash
3774 renewcommand{
3775 \backslash
3776 footrulewidth}{0.4pt}
3777 \end_layout
3778
3779 \end_inset
3780
3781  to set the thicknesses.
3782 \end_layout
3783
3784 \begin_layout Standard
3785 You can switch the header/footer settings on and off for individual pages
3786  using commands like 
3787 \begin_inset Flex Code
3788 status collapsed
3789
3790 \begin_layout Plain Layout
3791
3792 \backslash
3793 thispagestyle{empty}
3794 \end_layout
3795
3796 \end_inset
3797
3798
3799 \begin_inset Flex Code
3800 status collapsed
3801
3802 \begin_layout Plain Layout
3803
3804 \backslash
3805 thispagestyle{plain}
3806 \end_layout
3807
3808 \end_inset
3809
3810 , and 
3811 \begin_inset Flex Code
3812 status collapsed
3813
3814 \begin_layout Plain Layout
3815
3816 \backslash
3817 thispagestyle{fancy}
3818 \end_layout
3819
3820 \end_inset
3821
3822 .
3823  Simply insert them in the text on the page you want changed and mark them
3824  as \SpecialChar TeX
3825  code.
3826  In fact, title pages are marked as plain by default, while following pages
3827  are marked fancy when using the global fancy setting.
3828 \end_layout
3829
3830 \begin_layout Standard
3831 As a final example, it is possible to include an image in the header or
3832  footer.
3833  Suppose you want to put a company logo in the upper lefthand corner.
3834  You might try something like
3835 \end_layout
3836
3837 \begin_layout Standard
3838
3839 \family typewriter
3840
3841 \backslash
3842 lhead{
3843 \backslash
3844 resizebox{1in}{!}{
3845 \backslash
3846 includegraphics{logo.eps}}}
3847 \end_layout
3848
3849 \begin_layout Standard
3850 \noindent
3851 (you may need to preface this with 
3852 \begin_inset Flex Code
3853 status collapsed
3854
3855 \begin_layout Plain Layout
3856 \noindent
3857
3858 \backslash
3859 usepackage{graphics}
3860 \end_layout
3861
3862 \end_inset
3863
3864  if you don't include graphics elsewhere in your document).
3865 \end_layout
3866
3867 \begin_layout Section
3868 Itemize Bullet Selection
3869 \begin_inset CommandInset label
3870 LatexCommand label
3871 name "sec:bullet"
3872
3873 \end_inset
3874
3875
3876 \end_layout
3877
3878 \begin_layout Standard
3879 by
3880 \noun on
3881  Allan Rae
3882 \end_layout
3883
3884 \begin_layout Subsection
3885 Introduction
3886 \end_layout
3887
3888 \begin_layout Standard
3889 \SpecialChar LyX
3890  provides 216 bullet shapes that can be accessed from a simple dialog.
3891  Using this dialog you can easily specify what bullet shape to use at each
3892  level of an itemized list.
3893  These settings are document-wide so you won't be able to specify different
3894  sets of bullets for different paragraphs.
3895 \begin_inset Foot
3896 status collapsed
3897
3898 \begin_layout Plain Layout
3899 Well, actually you can but you'll have to do it by hand.
3900 \end_layout
3901
3902 \end_inset
3903
3904
3905 \end_layout
3906
3907 \begin_layout Subsection
3908 How it looks
3909 \end_layout
3910
3911 \begin_layout Standard
3912 Open the dialog by selecting the 
3913 \begin_inset Flex Noun
3914 status collapsed
3915
3916 \begin_layout Plain Layout
3917 Document\SpecialChar menuseparator
3918 Settings
3919 \end_layout
3920
3921 \end_inset
3922
3923  menu item and then select the 
3924 \begin_inset Flex Noun
3925 status collapsed
3926
3927 \begin_layout Plain Layout
3928 Bullets
3929 \end_layout
3930
3931 \end_inset
3932
3933  tab.
3934 \end_layout
3935
3936 \begin_layout Standard
3937 The dialog provides you with a table of bullet shapes.
3938  A column of buttons on the left of the table provides access to the six
3939  different panels of bullet shapes.
3940  The row of buttons across the top is used to select which bullet depth
3941  you are changing.
3942  A text entry under the table shows the currently selected bullet shape's
3943  \SpecialChar LaTeX
3944  equivalent and this can be edited if desired.
3945  If you do modify the text you will also need to specify any needed packages
3946  in the \SpecialChar LaTeX
3947  preamble.
3948 \end_layout
3949
3950 \begin_layout Standard
3951 The six panels are divided up by the packages they require.
3952  The following table shows the mappings from button name to \SpecialChar LaTeX
3953  package.
3954 \begin_inset Separator parbreak
3955 \end_inset
3956
3957
3958 \end_layout
3959
3960 \begin_layout Standard
3961 \align center
3962 \begin_inset Tabular
3963 <lyxtabular version="3" rows="7" columns="2">
3964 <features tabularvalignment="middle">
3965 <column alignment="center" valignment="top" width="0pt">
3966 <column alignment="center" valignment="top" width="0pt">
3967 <row>
3968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3969 \begin_inset Text
3970
3971 \begin_layout Plain Layout
3972
3973 \family roman
3974 \series medium
3975 \shape up
3976 \size normal
3977 \emph off
3978 \bar no
3979 \noun off
3980 \color none
3981 Button
3982 \end_layout
3983
3984 \end_inset
3985 </cell>
3986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3987 \begin_inset Text
3988
3989 \begin_layout Plain Layout
3990
3991 \family roman
3992 \series medium
3993 \shape up
3994 \size normal
3995 \emph off
3996 \bar no
3997 \noun off
3998 \color none
3999 Packages Required
4000 \end_layout
4001
4002 \end_inset
4003 </cell>
4004 </row>
4005 <row>
4006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4007 \begin_inset Text
4008
4009 \begin_layout Plain Layout
4010
4011 \family sans
4012 \series medium
4013 \shape up
4014 \size normal
4015 \emph off
4016 \bar no
4017 \noun off
4018 \color none
4019 Standard
4020 \end_layout
4021
4022 \end_inset
4023 </cell>
4024 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4025 \begin_inset Text
4026
4027 \begin_layout Plain Layout
4028
4029 \series medium
4030 \shape up
4031 \size normal
4032 \emph off
4033 \bar no
4034 \noun off
4035 \color none
4036 base \SpecialChar LaTeX
4037
4038 \end_layout
4039
4040 \end_inset
4041 </cell>
4042 </row>
4043 <row>
4044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4045 \begin_inset Text
4046
4047 \begin_layout Plain Layout
4048
4049 \family sans
4050 \series medium
4051 \shape up
4052 \size normal
4053 \emph off
4054 \bar no
4055 \noun off
4056 \color none
4057 Maths
4058 \end_layout
4059
4060 \end_inset
4061 </cell>
4062 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4063 \begin_inset Text
4064
4065 \begin_layout Plain Layout
4066
4067 \family typewriter
4068 \series medium
4069 \shape up
4070 \size normal
4071 \emph off
4072 \bar no
4073 \noun off
4074 \color none
4075 amssymb.sty
4076 \end_layout
4077
4078 \end_inset
4079 </cell>
4080 </row>
4081 <row>
4082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4083 \begin_inset Text
4084
4085 \begin_layout Plain Layout
4086
4087 \family sans
4088 \series medium
4089 \shape up
4090 \size normal
4091 \emph off
4092 \bar no
4093 \noun off
4094 \color none
4095 Ding1
4096 \end_layout
4097
4098 \end_inset
4099 </cell>
4100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4101 \begin_inset Text
4102
4103 \begin_layout Plain Layout
4104
4105 \family typewriter
4106 \series medium
4107 \shape up
4108 \size normal
4109 \emph off
4110 \bar no
4111 \noun off
4112 \color none
4113 pifont.sty
4114 \end_layout
4115
4116 \end_inset
4117 </cell>
4118 </row>
4119 <row>
4120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4121 \begin_inset Text
4122
4123 \begin_layout Plain Layout
4124
4125 \family sans
4126 \series medium
4127 \shape up
4128 \size normal
4129 \emph off
4130 \bar no
4131 \noun off
4132 \color none
4133 Ding2
4134 \end_layout
4135
4136 \end_inset
4137 </cell>
4138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4139 \begin_inset Text
4140
4141 \begin_layout Plain Layout
4142
4143 \family typewriter
4144 \series medium
4145 \shape up
4146 \size normal
4147 \emph off
4148 \bar no
4149 \noun off
4150 \color none
4151 pifont.sty
4152 \end_layout
4153
4154 \end_inset
4155 </cell>
4156 </row>
4157 <row>
4158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4159 \begin_inset Text
4160
4161 \begin_layout Plain Layout
4162
4163 \family sans
4164 \series medium
4165 \shape up
4166 \size normal
4167 \emph off
4168 \bar no
4169 \noun off
4170 \color none
4171 Ding3
4172 \end_layout
4173
4174 \end_inset
4175 </cell>
4176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4177 \begin_inset Text
4178
4179 \begin_layout Plain Layout
4180
4181 \family typewriter
4182 \series medium
4183 \shape up
4184 \size normal
4185 \emph off
4186 \bar no
4187 \noun off
4188 \color none
4189 pifont.sty
4190 \end_layout
4191
4192 \end_inset
4193 </cell>
4194 </row>
4195 <row>
4196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4197 \begin_inset Text
4198
4199 \begin_layout Plain Layout
4200
4201 \family sans
4202 \series medium
4203 \shape up
4204 \size normal
4205 \emph off
4206 \bar no
4207 \noun off
4208 \color none
4209 Ding4
4210 \end_layout
4211
4212 \end_inset
4213 </cell>
4214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4215 \begin_inset Text
4216
4217 \begin_layout Plain Layout
4218
4219 \family typewriter
4220 \series medium
4221 \shape up
4222 \size normal
4223 \emph off
4224 \bar no
4225 \noun off
4226 \color none
4227 pifont.sty
4228 \end_layout
4229
4230 \end_inset
4231 </cell>
4232 </row>
4233 </lyxtabular>
4234
4235 \end_inset
4236
4237
4238 \end_layout
4239
4240 \begin_layout Standard
4241 \SpecialChar LyX
4242  doesn't stop you using bullets from packages you don't have.
4243  If you get errors from \SpecialChar LaTeX
4244  when you try to view or print the file, then it
4245  is likely you are missing a package.
4246 \begin_inset Foot
4247 status collapsed
4248
4249 \begin_layout Plain Layout
4250 \SpecialChar LyX
4251  doesn't restrict your use since you may be editing locally and exporting
4252  elsewhere.
4253 \end_layout
4254
4255 \end_inset
4256
4257
4258 \end_layout
4259
4260 \begin_layout Subsection
4261 How to use it
4262 \end_layout
4263
4264 \begin_layout Standard
4265 Select which bullet depth you want to change then select the bullet shape
4266  and size.
4267  Any changes will not be visible in \SpecialChar LyX
4268 , but are visible when viewing the document.
4269 \end_layout
4270
4271 \begin_layout Standard
4272 You can reset a bullet shape to the default simply by clicking your right
4273  mouse button on the appropriate bullet depth button.
4274 \begin_inset Foot
4275 status collapsed
4276
4277 \begin_layout Plain Layout
4278 If you 
4279 \emph on
4280 really
4281 \emph default
4282  want to have multiple sets of paragraphs with different sets of bullets
4283  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4284  code.
4285  The bullet selection dialog can help though because it provides you with
4286  the \SpecialChar LaTeX
4287  code for a wide range of bullet shapes.
4288  To make your own custom paragraphs you have the following options:
4289 \end_layout
4290
4291 \begin_layout Plain Layout
4292 \begin_inset ERT
4293 status open
4294
4295 \begin_layout Plain Layout
4296
4297
4298 \backslash
4299 let
4300 \backslash
4301 savelabelitemi=
4302 \backslash
4303 labelitemi
4304 \end_layout
4305
4306 \end_inset
4307
4308
4309 \end_layout
4310
4311 \begin_layout Plain Layout
4312 \begin_inset ERT
4313 status open
4314
4315 \begin_layout Plain Layout
4316
4317
4318 \backslash
4319 renewcommand
4320 \backslash
4321 labelitemi[0]{
4322 \backslash
4323 small
4324 \backslash
4325 (
4326 \backslash
4327 sharp
4328 \backslash
4329 )}
4330 \end_layout
4331
4332 \end_inset
4333
4334
4335 \end_layout
4336
4337 \begin_layout Itemize
4338 Use the \SpecialChar LaTeX
4339  command 
4340 \begin_inset Flex Code
4341 status collapsed
4342
4343 \begin_layout Plain Layout
4344
4345 \backslash
4346 renewcommand{}{}
4347 \end_layout
4348
4349 \end_inset
4350
4351  to specify a new bullet shape for a given depth.
4352  You'll also need to save the current bullet shape so you can restore it
4353  again afterwards.
4354  In this itemized list the following \SpecialChar LaTeX
4355  code was used to change the bullet
4356  used for the first depth.
4357 \begin_inset Separator parbreak
4358 \end_inset
4359
4360
4361 \end_layout
4362
4363 \begin_deeper
4364 \begin_layout LyX-Code
4365
4366 \backslash
4367 let
4368 \backslash
4369 savelabelitemi=
4370 \backslash
4371 labelitemi 
4372 \end_layout
4373
4374 \begin_layout LyX-Code
4375
4376 \backslash
4377 renewcommand
4378 \backslash
4379 labelitemi[0]{
4380 \backslash
4381 small
4382 \backslash
4383 (
4384 \backslash
4385 sharp
4386 \backslash
4387 )}
4388 \end_layout
4389
4390 \end_deeper
4391 \begin_layout Itemize
4392 Note that the itemize depth is specified in Roman numerals as part of the
4393  
4394 \family typewriter
4395
4396 \backslash
4397 labelitem
4398 \family default
4399  command.
4400 \end_layout
4401
4402 \begin_layout Itemize
4403 \begin_inset ERT
4404 status open
4405
4406 \begin_layout Plain Layout
4407
4408 [
4409 \backslash
4410 (
4411 \backslash
4412 star
4413 \backslash
4414 )]
4415 \end_layout
4416
4417 \end_inset
4418
4419  Specify each individual entry by starting each item with the bullet shape
4420  enclosed in square brackets and set as 
4421 \begin_inset Flex Noun
4422 status collapsed
4423
4424 \begin_layout Plain Layout
4425 \SpecialChar TeX
4426  Code
4427 \end_layout
4428
4429 \end_inset
4430
4431 .
4432  For example, this item was started with 
4433 \begin_inset Flex Code
4434 status collapsed
4435
4436 \begin_layout Plain Layout
4437 [
4438 \backslash
4439 (
4440 \backslash
4441 star
4442 \backslash
4443 )]
4444 \end_layout
4445
4446 \end_inset
4447
4448 .
4449 \end_layout
4450
4451 \begin_layout Plain Layout
4452 \begin_inset ERT
4453 status open
4454
4455 \begin_layout Plain Layout
4456
4457
4458 \backslash
4459 renewcommand
4460 \backslash
4461 labelitemi[0]{
4462 \backslash
4463 savelabelitemi}
4464 \end_layout
4465
4466 \end_inset
4467
4468
4469 \end_layout
4470
4471 \begin_layout Plain Layout
4472 You'll also need to revert the labelitem back to its previous setting for
4473  the global bullet shape settings to remain in effect.
4474  The way used here was:
4475 \end_layout
4476
4477 \begin_layout LyX-Code
4478
4479 \backslash
4480 renewcommand
4481 \backslash
4482 labelitemi[0]{
4483 \backslash
4484 savelabelitemi}
4485 \end_layout
4486
4487 \end_inset
4488
4489
4490 \end_layout
4491
4492 \begin_layout Chapter
4493 \SpecialChar LyX
4494  and the World Wide Web
4495 \end_layout
4496
4497 \begin_layout Standard
4498 \SpecialChar LyX
4499  has long supported the export of documents to various web-friendly formats,
4500  such as HTML.
4501  Before verson 2.0, however, HTML export was always accomplished by the use
4502  of external converters.
4503 \begin_inset Foot
4504 status collapsed
4505
4506 \begin_layout Plain Layout
4507 For details on the use of external converters with \SpecialChar LyX
4508 , see the 
4509 \emph on
4510 Converters
4511 \emph default
4512  section of the Customization manual.
4513 \end_layout
4514
4515 \end_inset
4516
4517  These fall into two large groups: there are converters that use \SpecialChar LaTeX
4518  as an
4519  intermediate format, such as 
4520 \begin_inset Flex Code
4521 status collapsed
4522
4523 \begin_layout Plain Layout
4524 htlatex
4525 \end_layout
4526
4527 \end_inset
4528
4529
4530 \begin_inset Flex Code
4531 status collapsed
4532
4533 \begin_layout Plain Layout
4534 html2latex
4535 \end_layout
4536
4537 \end_inset
4538
4539 , and 
4540 \begin_inset Flex Code
4541 status collapsed
4542
4543 \begin_layout Plain Layout
4544 plastex
4545 \end_layout
4546
4547 \end_inset
4548
4549 , relying upon \SpecialChar LyX
4550  to produce the \SpecialChar LaTeX
4551 ; and there is a converter that works directly
4552  on \SpecialChar LyX
4553  files, 
4554 \begin_inset Flex Code
4555 status collapsed
4556
4557 \begin_layout Plain Layout
4558 e\SpecialChar LyX
4559 er
4560 \end_layout
4561
4562 \end_inset
4563
4564 .
4565  All of these have different advantages and disadvantages.
4566  
4567 \end_layout
4568
4569 \begin_layout Standard
4570 The \SpecialChar LaTeX
4571 -based converters have the advantage that, in principle, they know everythin
4572 g about the exported document that \SpecialChar LaTeX
4573  does.
4574  Such converters do not care, for example, if a certain block of code was
4575  produced by \SpecialChar LyX
4576  or was Evil Red Text.
4577  These converters know about 
4578 \begin_inset Flex Code
4579 status collapsed
4580
4581 \begin_layout Plain Layout
4582 aux
4583 \end_layout
4584
4585 \end_inset
4586
4587  files, counters, and references, and can often make use of the 
4588 \begin_inset Flex Code
4589 status collapsed
4590
4591 \begin_layout Plain Layout
4592 bbl
4593 \end_layout
4594
4595 \end_inset
4596
4597  files generated by Bib\SpecialChar TeX
4598 .
4599  On the other hand, \SpecialChar LaTeX
4600  is a very hard language to parse—it is sometimes said
4601  that only \SpecialChar TeX
4602  itself understands \SpecialChar TeX
4603 —and \SpecialChar LaTeX
4604 -based converters will often choke on
4605  what seem to be quite simple constructs; complex ones can throw them completely
4606 , and as of this writing, for example, the 
4607 \emph on
4608 Embedded Objects
4609 \emph default
4610  manual will not export with 
4611 \begin_inset Flex Code
4612 status collapsed
4613
4614 \begin_layout Plain Layout
4615 htlatex
4616 \end_layout
4617
4618 \end_inset
4619
4620 , though the others will.
4621  The other issue concerns how math is handled.
4622  These converters typically convert the formulae into little pictures that
4623  are then linked from the HTML document.
4624  Since these are actually generated by \SpecialChar LaTeX
4625 , they are accurate.
4626  But they do not scale well, and just getting them to look as if they are
4627  actually meant to be in your document—so that the font sizes seem to be
4628  roughly the same—can be a challenge.
4629 \end_layout
4630
4631 \begin_layout Standard
4632 Alex Fernandez's 
4633 \begin_inset Flex Code
4634 status collapsed
4635
4636 \begin_layout Plain Layout
4637 e\SpecialChar LyX
4638 er
4639 \end_layout
4640
4641 \end_inset
4642
4643  (
4644 \begin_inset CommandInset href
4645 LatexCommand href
4646 name "http://elyxer.nongnu.org/"
4647 target "http://elyxer.nongnu.org/"
4648
4649 \end_inset
4650
4651 ) solves some of these problems.
4652  In particular, the formulae it produces scale perfectly, since it renders
4653  math using a combination of HTML and CSS rather than converting the formulae
4654  to images.
4655  But even moderately complex formula are rendered less well than with 
4656 \begin_inset Flex Code
4657 status collapsed
4658
4659 \begin_layout Plain Layout
4660 htlatex
4661 \end_layout
4662
4663 \end_inset
4664
4665 ; this reflects the limitations of HTML.
4666 \begin_inset Foot
4667 status collapsed
4668
4669 \begin_layout Plain Layout
4670 That said, 
4671 \begin_inset Flex Code
4672 status collapsed
4673
4674 \begin_layout Plain Layout
4675 e\SpecialChar LyX
4676 er
4677 \end_layout
4678
4679 \end_inset
4680
4681  can also use jsMath and MathJax for equations, but this setting is only
4682  available globally and requires one to have access to a server that runs
4683  the backend.
4684 \end_layout
4685
4686 \end_inset
4687
4688  More importantly (as of version 1.1.1, at least), 
4689 \begin_inset Flex Code
4690 status collapsed
4691
4692 \begin_layout Plain Layout
4693 e\SpecialChar LyX
4694 er
4695 \end_layout
4696
4697 \end_inset
4698
4699  has limited support for math macros and no support for user-defined paragraph
4700  or character styles.
4701  These limitations make 
4702 \begin_inset Flex Code
4703 status collapsed
4704
4705 \begin_layout Plain Layout
4706 e\SpecialChar LyX
4707 er
4708 \end_layout
4709
4710 \end_inset
4711
4712  unsuitable for many of the documents \SpecialChar LyX
4713  users produce.
4714  In principle, of course, these problems could be solved, but the \SpecialChar LyX
4715  developers
4716  have decided to follow a different path and have made \SpecialChar LyX
4717  itself capable of
4718  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
4719 , DocBook, and plaintext.
4720 \end_layout
4721
4722 \begin_layout Standard
4723 As of this writing, XHTML output remains under development and should probably
4724  be regarded as 
4725 \begin_inset Quotes eld
4726 \end_inset
4727
4728 experimental
4729 \begin_inset Quotes erd
4730 \end_inset
4731
4732 .
4733 \begin_inset Foot
4734 status collapsed
4735
4736 \begin_layout Plain Layout
4737 The file 
4738 \begin_inset Flex Code
4739 status collapsed
4740
4741 \begin_layout Plain Layout
4742 development/HTML.notes
4743 \end_layout
4744
4745 \end_inset
4746
4747 , which can be found in the \SpecialChar LyX
4748  source tree or 
4749 \begin_inset CommandInset href
4750 LatexCommand href
4751 name "accessed online"
4752 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
4753
4754 \end_inset
4755
4756 , usually contains up-to-date information about the state of XHTML output.
4757  See also the list of XHTML bugs on 
4758 \begin_inset CommandInset href
4759 LatexCommand href
4760 name "the bug tracker"
4761 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"
4762
4763 \end_inset
4764
4765 .
4766 \end_layout
4767
4768 \end_inset
4769
4770  Still, the developers have chosen this approach because it has several
4771  potential advantages over the other two.
4772 \end_layout
4773
4774 \begin_layout Standard
4775 These advantages are primarily due to the fact that the XHTML output routines,
4776  since they are part of \SpecialChar LyX
4777 , know everything \SpecialChar LyX
4778  knows about the document being
4779  exported.
4780 \begin_inset Foot
4781 status collapsed
4782
4783 \begin_layout Plain Layout
4784 Another advantage is that, since these routines are internal to \SpecialChar LyX
4785 , they are
4786  immune to changes in \SpecialChar LyX
4787 's file format, or to changes in the semantics of
4788  existing insets.
4789 \end_layout
4790
4791 \end_inset
4792
4793  So they know about the table of contents (as displayed in the outline),
4794  about the counters associated with different paragraph styles, and about
4795  user-defined styles.
4796  The XHTML output routines know what \SpecialChar LyX
4797  knows about internationalization,
4798  too, so they will output 
4799 \begin_inset Quotes eld
4800 \end_inset
4801
4802 Chapter 1
4803 \begin_inset Quotes erd
4804 \end_inset
4805
4806  or 
4807 \begin_inset Quotes eld
4808 \end_inset
4809
4810
4811 \lang ngerman
4812 Kapitel
4813 \lang english
4814  1
4815 \begin_inset Quotes erd
4816 \end_inset
4817
4818 , depending upon the language in effect at the time.
4819  
4820 \end_layout
4821
4822 \begin_layout Standard
4823 Quite generally, the output routines know what \SpecialChar LyX
4824  knows about document layout,
4825  that is, about how the document is to be rendered on screen.
4826  We use this information when we output the document as XHTML.
4827  In particular, \SpecialChar LyX
4828  
4829 \emph on
4830 automatically
4831 \emph default
4832  generates CSS style information corresponding to the layout information
4833  it uses to render the document on screen: if section headings are supposed
4834  to be sans-serif and bold as seen in \SpecialChar LyX
4835 , then (by default) they will be sans-seri
4836 f and bold when viewed in a web browser, too.
4837  And this is true not just for pre-defined styles, like Section, but for
4838  any style, including user-defined styles.
4839  Indeed, the XHTML output routines make no distinction between user-defined
4840  paragraph and character styles and \SpecialChar LyX
4841 's own pre-defined styles: in each case,
4842  everything \SpecialChar LyX
4843  knows about the styles is contained in the layout files.
4844  And much the same is true as regards pre-defined textual insets, such as
4845  footnotes, and various custom insets.
4846  
4847 \end_layout
4848
4849 \begin_layout Standard
4850 The result is that XHTML output can be customized and extended in exactly
4851  the same way \SpecialChar LaTeX
4852  output can be customized and extended: through layout files
4853  and modules.
4854  See chapter five of the 
4855 \emph on
4856 Customization 
4857 \emph default
4858 manual for the details.
4859 \end_layout
4860
4861 \begin_layout Standard
4862 The remainder of this chapter contains more detailed information on XHTML
4863  output, its limitations, and ways to work around those limitations.
4864 \end_layout
4865
4866 \begin_layout Section
4867 Math Output in XHTML
4868 \end_layout
4869
4870 \begin_layout Standard
4871 \SpecialChar LyX
4872  offers four choices for how math is rendered.
4873  These have various advantages and disadvantages:
4874 \end_layout
4875
4876 \begin_layout Itemize
4877 MathML
4878 \begin_inset Newline newline
4879 \end_inset
4880
4881 MathML is a dialect of XML designed specifically for mathematics on the
4882  web, and it typically renders very well in browsers that support it.
4883  The disadvantage is that not all browsers support MathML, and support is
4884  not complete even in the Gecko-based browsers, such as Firefox.
4885 \begin_inset Newline newline
4886 \end_inset
4887
4888 If \SpecialChar LyX
4889  is unable to render a formula as MathML—for example, if the formula
4890  uses the 
4891 \begin_inset Flex Code
4892 status collapsed
4893
4894 \begin_layout Plain Layout
4895 xymatrix
4896 \end_layout
4897
4898 \end_inset
4899
4900  package or ERT—then it will instead output the formula as an image.
4901  
4902 \end_layout
4903
4904 \begin_layout Itemize
4905 HTML
4906 \begin_inset Newline newline
4907 \end_inset
4908
4909 As mentioned above, 
4910 \begin_inset Flex Code
4911 status collapsed
4912
4913 \begin_layout Plain Layout
4914 elyxer
4915 \end_layout
4916
4917 \end_inset
4918
4919  outputs math as HTML, styled by CSS.
4920 \begin_inset Foot
4921 status collapsed
4922
4923 \begin_layout Plain Layout
4924 \SpecialChar LyX
4925  has borrowed some of the CSS for its HTML output from 
4926 \begin_inset Flex Code
4927 status collapsed
4928
4929 \begin_layout Plain Layout
4930 elyxer
4931 \end_layout
4932
4933 \end_inset
4934
4935 .
4936 \end_layout
4937
4938 \end_inset
4939
4940  For simple formulae, this can work quite well, though with more complicated
4941  formulae it tends to break down.
4942  Still, this method has the advantage that it is very widely supported and
4943  so it may be appropriate for documents that contain only a little, fairly
4944  simple math.
4945 \begin_inset Newline newline
4946 \end_inset
4947
4948 If Lyx is unable to render a formula as HTML—for example, if the formula
4949  uses the 
4950 \begin_inset Flex Code
4951 status collapsed
4952
4953 \begin_layout Plain Layout
4954 xymatrix
4955 \end_layout
4956
4957 \end_inset
4958
4959  package or ERT—then it will instead output the formula as an image.
4960  
4961 \end_layout
4962
4963 \begin_layout Itemize
4964 Images
4965 \begin_inset Newline newline
4966 \end_inset
4967
4968 Like 
4969 \begin_inset Flex Code
4970 status collapsed
4971
4972 \begin_layout Plain Layout
4973 htlatex
4974 \end_layout
4975
4976 \end_inset
4977
4978 , \SpecialChar LyX
4979  will output formulae as images, the very same images, in fact, that are
4980  used for instant preview.
4981 \begin_inset Foot
4982 status collapsed
4983
4984 \begin_layout Plain Layout
4985 Instant preview does 
4986 \emph on
4987 not 
4988 \emph default
4989 have to be on for images to be output, however.
4990 \end_layout
4991
4992 \end_inset
4993
4994  The advantage to this method is that the images are simply generated by
4995  \SpecialChar LaTeX
4996 , so they are very accurate.
4997  The disadvantage, as mentioned earlier, is that these are bitmapped images,
4998  so they do not scale terribly well, and one cannot copy them, etc.
4999  (As of this writing, there are also problems about equation numbering.
5000  See 
5001 \begin_inset CommandInset href
5002 LatexCommand href
5003 name "bug 6894"
5004 target "http://www.lyx.org/trac/ticket/6894"
5005
5006 \end_inset
5007
5008 .)
5009 \begin_inset Newline newline
5010 \end_inset
5011
5012 The size of the images can be controlled by setting the 
5013 \begin_inset Quotes eld
5014 \end_inset
5015
5016 Math Images Scaling
5017 \begin_inset Quotes erd
5018 \end_inset
5019
5020  parameter under 
5021 \begin_inset Flex Noun
5022 status collapsed
5023
5024 \begin_layout Plain Layout
5025 Document\SpecialChar menuseparator
5026 Settings\SpecialChar menuseparator
5027 Output
5028 \end_layout
5029
5030 \end_inset
5031
5032 .
5033 \begin_inset Foot
5034 status collapsed
5035
5036 \begin_layout Plain Layout
5037 For those who want to know, this controls the resolution of the image in
5038  dots per inch and is based upon a default of 75 dpi.
5039 \end_layout
5040
5041 \end_inset
5042
5043
5044 \begin_inset Newline newline
5045 \end_inset
5046
5047 If \SpecialChar LyX
5048  for some reason fails to create an image for a formula (e.g., if a required
5049  \SpecialChar LaTeX
5050  package is not installed), then it will fall back to outputing the raw
5051  \SpecialChar LaTeX
5052 .
5053 \end_layout
5054
5055 \begin_layout Itemize
5056 \SpecialChar LaTeX
5057
5058 \begin_inset Newline newline
5059 \end_inset
5060
5061 Finally, \SpecialChar LyX
5062  will happily output math as \SpecialChar LaTeX
5063 .
5064  As well as being the output of last resort, this method can be used with
5065  such tools as 
5066 \begin_inset CommandInset href
5067 LatexCommand href
5068 name "jsMath"
5069 target "http://www.math.union.edu/~dpvc/jsMath/"
5070
5071 \end_inset
5072
5073 , which uses JavaScript to render \SpecialChar LaTeX
5074  embedded in HTML documents.
5075  \SpecialChar LyX
5076  wraps the \SpecialChar LaTeX
5077  in either a 
5078 \begin_inset Flex Code
5079 status collapsed
5080
5081 \begin_layout Plain Layout
5082 span
5083 \end_layout
5084
5085 \end_inset
5086
5087  (for inline formulas) or 
5088 \begin_inset Flex Code
5089 status collapsed
5090
5091 \begin_layout Plain Layout
5092 div
5093 \end_layout
5094
5095 \end_inset
5096
5097  (for displayed formulas) with 
5098 \begin_inset Flex Code
5099 status collapsed
5100
5101 \begin_layout Plain Layout
5102 class='math'
5103 \end_layout
5104
5105 \end_inset
5106
5107 , as is required for jsMath.
5108 \end_layout
5109
5110 \begin_layout Standard
5111 One of these output methods must be selected under 
5112 \begin_inset Flex Noun
5113 status collapsed
5114
5115 \begin_layout Plain Layout
5116 Document\SpecialChar menuseparator
5117 Settings\SpecialChar menuseparator
5118 Output
5119 \end_layout
5120
5121 \end_inset
5122
5123 .
5124  By default, \SpecialChar LyX
5125  outputs MathML.
5126  This is a document-wide setting, therefore.
5127 \end_layout
5128
5129 \begin_layout Standard
5130 Eventually, \SpecialChar LyX
5131  will offer the user the option to select an alternate output
5132  method for a particular inset, say, one that isn't being rendered very
5133  well by MathML.
5134 \begin_inset Foot
5135 status collapsed
5136
5137 \begin_layout Plain Layout
5138 That said, since \SpecialChar LyX
5139  falls back to images if the inset contains ERT, then one
5140  can force output as an image by putting some harmless ERT into the math,
5141  for example: 
5142 \begin_inset Formula $a=b\relax$
5143 \end_inset
5144
5145 .
5146 \end_layout
5147
5148 \end_inset
5149
5150
5151 \end_layout
5152
5153 \begin_layout Section
5154 Bibliography and Citations
5155 \end_layout
5156
5157 \begin_layout Standard
5158 XHTML output fully supports bibliographies and citations.
5159  
5160 \end_layout
5161
5162 \begin_layout Standard
5163 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5164 's on-screen
5165  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5166 , though
5167  better.
5168  If you are using numerical citations, then \SpecialChar LyX
5169  will output numerical labels,
5170  such as [1] or [17], rather than simply showing the citation key in square
5171  brackets, as it does on-screen.
5172  If you are using author-year citations, then \SpecialChar LyX
5173  will add lowercase letters
5174  to the years, just as Bib\SpecialChar TeX
5175  does, if it finds more than one citation for
5176  a given author-year combination.
5177  The labels will be printed with the bibliography entries.
5178  Note that there is, at present, no way to customize the appearance of the
5179  labels, for example, to choose between square brackets and parentheses.
5180 \end_layout
5181
5182 \begin_layout Standard
5183 Bibliography output is handled by the same machinery that handles the presentati
5184 on of reference information in the citation dialog, so you will see in the
5185  XHTML output pretty much what you would see if you were to look at a given
5186  entry in the citation dialog.
5187  The formatting can be customized in your layout file or, preferably, in
5188  a module.
5189  See the 
5190 \emph on
5191 Customization
5192 \emph default
5193  manual for the details.
5194 \end_layout
5195
5196 \begin_layout Standard
5197 The main defect at present is that cross-referenced information is printed
5198  with every entry with which it is associated.
5199  So you can see things like this:
5200 \end_layout
5201
5202 \begin_layout Quote
5203 Jason Stanley, 
5204 \begin_inset Quotes eld
5205 \end_inset
5206
5207 Context and Logical Form
5208 \begin_inset Quotes erd
5209 \end_inset
5210
5211 , in 
5212 \emph on
5213 Language in Context: Selected Essays
5214 \emph default
5215  (Oxford: Oxford University Press, 2007), pp.
5216  30–68.
5217 \end_layout
5218
5219 \begin_layout Quote
5220 Jason Stanley, 
5221 \begin_inset Quotes eld
5222 \end_inset
5223
5224 Semantics in Context
5225 \begin_inset Quotes erd
5226 \end_inset
5227
5228 , in 
5229 \emph on
5230 Language in Context: Selected Essays
5231 \emph default
5232  (Oxford: Oxford University Press, 2007), pp.
5233  201–30.
5234 \end_layout
5235
5236 \begin_layout Standard
5237 This should be fixed before long.
5238 \end_layout
5239
5240 \begin_layout Standard
5241 There is no support at present for sectioned bibliographies.
5242  If you have multiple bibliographies, then \SpecialChar LyX
5243  will print the same bibliography
5244  over and over.
5245 \end_layout
5246
5247 \begin_layout Section
5248 Indexes
5249 \end_layout
5250
5251 \begin_layout Standard
5252 \SpecialChar LyX
5253  will happily export indexes as XHTML, but with certain limitations at the
5254  moment.
5255 \end_layout
5256
5257 \begin_layout Standard
5258 Index export will be most reliable when you do not attempt to use the fancy
5259  constructs that are described in the section on indexes in the 
5260 \emph on
5261 User's Guide
5262 \emph default
5263 .
5264 \begin_inset Foot
5265 status collapsed
5266
5267 \begin_layout Plain Layout
5268 The main issue here is that \SpecialChar LyX
5269  itself does not really handle these.
5270  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5271 .
5272 \end_layout
5273
5274 \end_inset
5275
5276  We'll describe how they are handled using the subsection headings from
5277  that section.
5278 \end_layout
5279
5280 \begin_layout Itemize
5281 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5282  makes an effort to support these,
5283  but the entries must be separated by 
5284 \begin_inset Quotes eld
5285 \end_inset
5286
5287  ! 
5288 \begin_inset Quotes erd
5289 \end_inset
5290
5291 , that is, there must be spaces around the exclamation point.
5292  This is because it is otherwise too difficult to check for escaped exclamation
5293  points, ones in math, and so forth.
5294 \end_layout
5295
5296 \begin_layout Itemize
5297 Page Ranges: There is no support at all for page ranges, since these make
5298  no sense with XHMTL.
5299  Instead, you will just get two index entries, one at either end.
5300 \end_layout
5301
5302 \begin_layout Itemize
5303 Cross-referencing: There is no support for cross-referencing.
5304  If \SpecialChar LyX
5305  finds an entry containing the 
5306 \begin_inset Quotes eld
5307 \end_inset
5308
5309 |see\SpecialChar ldots
5310
5311 \begin_inset Quotes erd
5312 \end_inset
5313
5314  construct, it is just dropped, and the rest is treated as an ordinary index
5315  entry.
5316 \end_layout
5317
5318 \begin_layout Itemize
5319 Index Entry Order: \SpecialChar LyX
5320  does support attempts to fix the sorting order.
5321  It will take what is before the first `@' it finds and use that for sorting,
5322  taking what follows the first `@' to be the actual entry.
5323  At present, \SpecialChar LyX
5324  does not check for escaped `@', so do not try to index email
5325  addresses.
5326 \end_layout
5327
5328 \begin_layout Itemize
5329 Index Entry Layout: You can format entries by using the text style dialog,
5330  or by using any other method available within \SpecialChar LyX
5331  itself.
5332  There is no support for constructs like: 
5333 \begin_inset Quotes eld
5334 \end_inset
5335
5336 entry|textbf
5337 \begin_inset Quotes erd
5338 \end_inset
5339
5340 .
5341  Indeed, if \SpecialChar LyX
5342  finds a pipe symbol, `|', in an entry, it will delete it and
5343  everything that follows it.
5344 \end_layout
5345
5346 \begin_layout Itemize
5347 Multiple Indexes: There is no support for multiple indexes.
5348  Rather, all index entries will be printed as one large index.
5349  To avoid our printing several versions of the index, we print only the
5350  main index, so make sure you have one.
5351 \end_layout
5352
5353 \begin_layout Section
5354 Nomenclature and Glossary
5355 \end_layout
5356
5357 \begin_layout Standard
5358 There is at present no support for glossaries.
5359  Adding it would be fairly trivial, and welcome.
5360 \end_layout
5361
5362 \begin_layout Chapter
5363 The \SpecialChar LyX
5364  Server
5365 \end_layout
5366
5367 \begin_layout Section
5368 Introduction
5369 \end_layout
5370
5371 \begin_layout Standard
5372 The `\SpecialChar LyX
5373  server' allows other programs to talk to \SpecialChar LyX
5374 , invoke \SpecialChar LyX
5375  commands, and retrieve
5376  information about the \SpecialChar LyX
5377  internal state.
5378  This is only intended for advanced users, but they should find it useful.
5379  It is by writing to the \SpecialChar LyX
5380  server, for example, that bibliography managers,
5381  such as JabRef, are able to 
5382 \begin_inset Quotes eld
5383 \end_inset
5384
5385 push
5386 \begin_inset Quotes erd
5387 \end_inset
5388
5389  citations to \SpecialChar LyX
5390 .
5391 \end_layout
5392
5393 \begin_layout Section
5394 Starting the \SpecialChar LyX
5395  Server
5396 \end_layout
5397
5398 \begin_layout Standard
5399 The \SpecialChar LyX
5400  server works through the use of a pair of named pipes.
5401  These are usually located in 
5402 \begin_inset Flex Code
5403 status collapsed
5404
5405 \begin_layout Plain Layout
5406 UserDir
5407 \end_layout
5408
5409 \end_inset
5410
5411 , (except on Windows, where 
5412 \emph on
5413 local
5414 \emph default
5415  named pipes are special objects located in 
5416 \begin_inset Flex Code
5417 status collapsed
5418
5419 \begin_layout Plain Layout
5420
5421 \backslash
5422
5423 \backslash
5424 .
5425 \backslash
5426 pipe
5427 \end_layout
5428
5429 \end_inset
5430
5431 ) and have the names 
5432 \begin_inset Quotes eld
5433 \end_inset
5434
5435
5436 \begin_inset Flex Code
5437 status collapsed
5438
5439 \begin_layout Plain Layout
5440 lyxpipe.in
5441 \end_layout
5442
5443 \end_inset
5444
5445
5446 \begin_inset Quotes erd
5447 \end_inset
5448
5449  and 
5450 \begin_inset Quotes eld
5451 \end_inset
5452
5453
5454 \begin_inset Flex Code
5455 status collapsed
5456
5457 \begin_layout Plain Layout
5458 lyxpipe.out
5459 \end_layout
5460
5461 \end_inset
5462
5463
5464 \begin_inset Quotes erd
5465 \end_inset
5466
5467 .
5468  External programs write into 
5469 \begin_inset Flex Code
5470 status collapsed
5471
5472 \begin_layout Plain Layout
5473 lyxpipe.in
5474 \end_layout
5475
5476 \end_inset
5477
5478  and read back data from 
5479 \begin_inset Flex Code
5480 status collapsed
5481
5482 \begin_layout Plain Layout
5483 lyxpipe.out
5484 \end_layout
5485
5486 \end_inset
5487
5488 .
5489  The stem of the pipe names can be defined in the 
5490 \begin_inset Flex Noun
5491 status collapsed
5492
5493 \begin_layout Plain Layout
5494 Tools\SpecialChar menuseparator
5495 Preferences
5496 \end_layout
5497
5498 \end_inset
5499
5500  dialog, for example 
5501 \begin_inset Flex Code
5502 status collapsed
5503
5504 \begin_layout Plain Layout
5505 "/home/myhome/lyxpipe"
5506 \end_layout
5507
5508 \end_inset
5509
5510 , or 
5511 \begin_inset Flex Code
5512 status collapsed
5513
5514 \begin_layout Plain Layout
5515 "
5516 \backslash
5517
5518 \backslash
5519 .
5520 \backslash
5521 pipe
5522 \backslash
5523 lyxpipe"
5524 \end_layout
5525
5526 \end_inset
5527
5528  on Windows (where any working path instead of lyxpipe can be used, for
5529  example 
5530 \begin_inset Flex Code
5531 status collapsed
5532
5533 \begin_layout Plain Layout
5534 "
5535 \backslash
5536
5537 \backslash
5538 .
5539 \backslash
5540 pipe
5541 \backslash
5542 my
5543 \backslash
5544 lyx
5545 \backslash
5546 pipe"
5547 \end_layout
5548
5549 \end_inset
5550
5551  would also work).
5552  You 
5553 \emph on
5554 must
5555 \emph default
5556  configure this manually in order for the server to start.
5557 \end_layout
5558
5559 \begin_layout Standard
5560 \SpecialChar LyX
5561  will add the '
5562 \begin_inset Flex Code
5563 status collapsed
5564
5565 \begin_layout Plain Layout
5566 .in
5567 \end_layout
5568
5569 \end_inset
5570
5571 ' and '
5572 \begin_inset Flex Code
5573 status collapsed
5574
5575 \begin_layout Plain Layout
5576 .out
5577 \end_layout
5578
5579 \end_inset
5580
5581 ' to create the pipes.
5582  If one of the pipes already exists, \SpecialChar LyX
5583  will assume that another \SpecialChar LyX
5584  process
5585  is already running and will not start the server.
5586  On POSIX (Unix like) systems, if for some other reason, an unused 
5587 \begin_inset Quotes eld
5588 \end_inset
5589
5590 stale
5591 \begin_inset Quotes erd
5592 \end_inset
5593
5594  pipe is left in existence when \SpecialChar LyX
5595  closes, then \SpecialChar LyX
5596  will try to delete it.
5597  If this fails for some reason, you will need to delete the pipes manually
5598  and then restart \SpecialChar LyX
5599 .
5600  On Windows, pipes are deleted by the OS on program termination or crash,
5601  so 
5602 \begin_inset Quotes eld
5603 \end_inset
5604
5605 stale
5606 \begin_inset Quotes erd
5607 \end_inset
5608
5609  pipes should not be possible.
5610 \end_layout
5611
5612 \begin_layout Standard
5613 To have several \SpecialChar LyX
5614  processes with servers at the same time, you have to use
5615  different configurations, perhaps by using separate user directories, each
5616  with its own 
5617 \begin_inset Flex Code
5618 status collapsed
5619
5620 \begin_layout Plain Layout
5621 preferences
5622 \end_layout
5623
5624 \end_inset
5625
5626  file, for each process.
5627 \end_layout
5628
5629 \begin_layout Standard
5630 If you are developing a client program, you might find it useful to enable
5631  debugging information from the \SpecialChar LyX
5632  server.
5633  Do this by starting \SpecialChar LyX
5634  as 
5635 \begin_inset Flex Code
5636 status collapsed
5637
5638 \begin_layout Plain Layout
5639 lyx -dbg lyxserver
5640 \end_layout
5641
5642 \end_inset
5643
5644 .
5645 \end_layout
5646
5647 \begin_layout Standard
5648 You can find a complete example client written in C++ in the source distribution
5649  as 
5650 \begin_inset Flex Code
5651 status collapsed
5652
5653 \begin_layout Plain Layout
5654 development/lyxserver/server_monitor.cpp
5655 \end_layout
5656
5657 \end_inset
5658
5659 .
5660 \end_layout
5661
5662 \begin_layout Standard
5663 Another useful tool is the command-line based client found in 
5664 \begin_inset Flex Code
5665 status collapsed
5666
5667 \begin_layout Plain Layout
5668 src/client/lyxclient
5669 \end_layout
5670
5671 \end_inset
5672
5673 .
5674 \end_layout
5675
5676 \begin_layout Section
5677 Normal communication
5678 \end_layout
5679
5680 \begin_layout Standard
5681 To issue a \SpecialChar LyX
5682  call, the client writes a line of ASCII text into the input
5683  pipe.
5684  This line has the following format:
5685 \end_layout
5686
5687 \begin_layout Quote
5688 LYXCMD:
5689 \emph on
5690 clientname
5691 \emph default
5692 :
5693 \emph on
5694 function
5695 \emph default
5696 :
5697 \emph on
5698 argument
5699 \end_layout
5700
5701 \begin_layout Description
5702 clientname is a name that the client can choose arbitrarily.
5703  Its only use is that \SpecialChar LyX
5704  will echo it if it sends an answer—so a client can
5705  dispatch results from different requesters.
5706 \end_layout
5707
5708 \begin_layout Description
5709 function is the function you want \SpecialChar LyX
5710  to perform.
5711  It is the same as the commands you'd use in the minibuffer.
5712 \end_layout
5713
5714 \begin_layout Description
5715 argument is an optional argument which is meaningful only to some functions
5716  (for instance, the 
5717 \begin_inset Quotes eld
5718 \end_inset
5719
5720 self-insert
5721 \begin_inset Quotes erd
5722 \end_inset
5723
5724  LFUN will insert the argument as text at the cursor position).
5725 \end_layout
5726
5727 \begin_layout Standard
5728 The answer from \SpecialChar LyX
5729  will arrive in the output pipe and be of the form
5730 \end_layout
5731
5732 \begin_layout Quote
5733 INFO:
5734 \emph on
5735 clientname
5736 \emph default
5737 :
5738 \emph on
5739 function
5740 \emph default
5741 :
5742 \emph on
5743 data
5744 \end_layout
5745
5746 \begin_layout Standard
5747 where 
5748 \emph on
5749 clientname
5750 \emph default
5751  and 
5752 \emph on
5753 function
5754 \emph default
5755  are just echoed from the command request, while 
5756 \emph on
5757 data
5758 \emph default
5759  is more or less useful information filled according to how the command
5760  execution worked out.
5761  Some commands, such as 
5762 \begin_inset Quotes eld
5763 \end_inset
5764
5765 font-state
5766 \begin_inset Quotes erd
5767 \end_inset
5768
5769 , will return information about the internal state of \SpecialChar LyX
5770 , while other will
5771  return an empty data-response.
5772  This means that the command execution went fine.
5773 \end_layout
5774
5775 \begin_layout Standard
5776 In case of errors, the response from \SpecialChar LyX
5777  will have this form
5778 \end_layout
5779
5780 \begin_layout Quote
5781 ERROR:
5782 \emph on
5783 clientname
5784 \emph default
5785 :
5786 \emph on
5787 function
5788 \emph default
5789 :
5790 \emph on
5791 error message
5792 \end_layout
5793
5794 \begin_layout Standard
5795 where the 
5796 \emph on
5797 error message
5798 \emph default
5799  should contain an explanation of why the command failed.
5800 \end_layout
5801
5802 \begin_layout Standard
5803 Examples:
5804 \end_layout
5805
5806 \begin_layout LyX-Code
5807 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
5808 \begin_inset Newline newline
5809 \end_inset
5810
5811 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
5812 \begin_inset Newline newline
5813 \end_inset
5814
5815 read a <~/.lyxpipe.out
5816 \begin_inset Newline newline
5817 \end_inset
5818
5819 echo $a
5820 \end_layout
5821
5822 \begin_layout Subsection
5823 AppleScript (Mac OS X)
5824 \end_layout
5825
5826 \begin_layout Standard
5827 Since \SpecialChar LyX
5828  2.1, \SpecialChar LyX
5829  supports basic interactions with AppleScript for normal communicatio
5830 n through the command run.
5831  This command takes a direct argument (the 
5832 \series bold
5833 function
5834 \series default
5835  to perform) and an optional argument.
5836  It either returns the output of the function or triggers an error with
5837  the error message and code.
5838 \end_layout
5839
5840 \begin_layout Standard
5841 Example:
5842 \end_layout
5843
5844 \begin_layout LyX-Code
5845 tell application "\SpecialChar LyX
5846 "
5847 \end_layout
5848
5849 \begin_layout LyX-Code
5850   try
5851 \end_layout
5852
5853 \begin_layout LyX-Code
5854     -- Stores the current file name into f
5855 \end_layout
5856
5857 \begin_layout LyX-Code
5858     set f to (run "server-get-filename" with argument "")
5859 \end_layout
5860
5861 \begin_layout LyX-Code
5862     on error the error_message number the error_number
5863 \end_layout
5864
5865 \begin_layout LyX-Code
5866       display dialog "Error: " & the error_number & ".
5867  " ¬
5868 \end_layout
5869
5870 \begin_layout LyX-Code
5871               & the error_message buttons {"OK"} default button 1
5872 \end_layout
5873
5874 \begin_layout LyX-Code
5875   end try
5876 \end_layout
5877
5878 \begin_layout LyX-Code
5879 end tell
5880 \end_layout
5881
5882 \begin_layout Section
5883 Notification
5884 \end_layout
5885
5886 \begin_layout Standard
5887 \SpecialChar LyX
5888  can notify clients of events going on asynchronously.
5889  Currently it will only do this if the user binds a key sequence with the
5890  function 
5891 \begin_inset Quotes eld
5892 \end_inset
5893
5894 notify
5895 \begin_inset Quotes erd
5896 \end_inset
5897
5898 .
5899  The format of the string \SpecialChar LyX
5900  sends is as follows:
5901 \end_layout
5902
5903 \begin_layout Quote
5904 \begin_inset Flex Code
5905 status collapsed
5906
5907 \begin_layout Plain Layout
5908 NOTIFY:
5909 \end_layout
5910
5911 \end_inset
5912
5913
5914 \emph on
5915 key-sequence
5916 \end_layout
5917
5918 \begin_layout Standard
5919 where 
5920 \emph on
5921 key-sequence
5922 \emph default
5923  is the printed representation of the key sequence that was actually typed
5924  by the user.
5925 \end_layout
5926
5927 \begin_layout Standard
5928 This mechanism can be used to extend \SpecialChar LyX
5929 's command set and implement macros.
5930  Bind some key sequence to 
5931 \begin_inset Quotes eld
5932 \end_inset
5933
5934 notify
5935 \begin_inset Quotes erd
5936 \end_inset
5937
5938 .
5939  Then start a client that listens on the output pipe, dispatches the command
5940  according to the sequence, and starts a function that may use \SpecialChar LyX
5941  calls and
5942  \SpecialChar LyX
5943  requests to issue a command or a series of commands to \SpecialChar LyX
5944 .
5945 \end_layout
5946
5947 \begin_layout Section
5948 The simple \SpecialChar LyX
5949  Server Protocol
5950 \end_layout
5951
5952 \begin_layout Standard
5953 \SpecialChar LyX
5954  implements a simple protocol that can be used for session management.
5955  All messages are of the form
5956 \end_layout
5957
5958 \begin_layout Quote
5959 LYXSRV:
5960 \emph on
5961 clientname
5962 \emph default
5963 :
5964 \emph on
5965 protocol message
5966 \end_layout
5967
5968 \begin_layout Standard
5969 where 
5970 \emph on
5971 protocol message
5972 \emph default
5973  can be 
5974 \begin_inset Quotes eld
5975 \end_inset
5976
5977 hello
5978 \begin_inset Quotes erd
5979 \end_inset
5980
5981  or 
5982 \begin_inset Quotes eld
5983 \end_inset
5984
5985 bye
5986 \begin_inset Quotes erd
5987 \end_inset
5988
5989 .
5990  If 
5991 \begin_inset Quotes eld
5992 \end_inset
5993
5994 hello
5995 \begin_inset Quotes erd
5996 \end_inset
5997
5998  is received from a client, \SpecialChar LyX
5999  will report back to inform the client that
6000  it's listening to it's messages, while 
6001 \begin_inset Quotes eld
6002 \end_inset
6003
6004 bye
6005 \begin_inset Quotes erd
6006 \end_inset
6007
6008  sent from \SpecialChar LyX
6009  will inform clients that \SpecialChar LyX
6010  is closing.
6011 \end_layout
6012
6013 \begin_layout Section
6014 Reverse DVI/PDF search
6015 \end_layout
6016
6017 \begin_layout Standard
6018 Some DVI/PDF viewers
6019 \begin_inset Foot
6020 status collapsed
6021
6022 \begin_layout Plain Layout
6023 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6024  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6025 \end_layout
6026
6027 \end_inset
6028
6029  provide 
6030 \emph on
6031 reverse search
6032 \emph default
6033  facility (also called 
6034 \emph on
6035 inverse search
6036 \emph default
6037 ).
6038  This means that you can tell \SpecialChar LyX
6039  to put the cursor to a specific line in the
6040  document by clicking at the respective position in the DVI/PDF output.
6041  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6042 .
6043  This is done via the \SpecialChar LyX
6044  server either by using the named pipe (
6045 \emph on
6046 lyxpipe
6047 \emph default
6048 ), or the UNIX domain socket (
6049 \emph on
6050 lyxsocket
6051 \emph default
6052 ) that \SpecialChar LyX
6053  creates in its temporary directory (this is the way the 
6054 \begin_inset Flex Code
6055 status collapsed
6056
6057 \begin_layout Plain Layout
6058 lyxclient
6059 \end_layout
6060
6061 \end_inset
6062
6063  program communicates with \SpecialChar LyX
6064 ).
6065  In some cases, you need a helper script that mediates between the viewer
6066  and \SpecialChar LyX
6067 , in others, the viewer can communicate with \SpecialChar LyX
6068  directly.
6069  This depends on the selected viewer and on your operating system.
6070  The same applies to the way viewers need to be configured and the way the
6071  reverse search is actually performed.
6072  In what follows, we will thus describe how to setup reverse search for
6073  specific viewers.
6074  Before we turn to this, though, we will explain what needs to be done generally
6075  to enable reverse search in the DVI/PDF output.
6076 \end_layout
6077
6078 \begin_layout Subsection
6079 Automatic setup
6080 \begin_inset CommandInset label
6081 LatexCommand label
6082 name "subsec:rev-search"
6083
6084 \end_inset
6085
6086
6087 \end_layout
6088
6089 \begin_layout Standard
6090 In most cases \SpecialChar LyX
6091  will do the work for you by enabling the option 
6092 \begin_inset Flex Noun
6093 status collapsed
6094
6095 \begin_layout Plain Layout
6096 Synchronize with Output
6097 \end_layout
6098
6099 \end_inset
6100
6101  in the menu 
6102 \begin_inset Flex Noun
6103 status collapsed
6104
6105 \begin_layout Plain Layout
6106 Document\SpecialChar menuseparator
6107 Settings\SpecialChar menuseparator
6108 Output
6109 \end_layout
6110
6111 \end_inset
6112
6113 .
6114  In such a case \SpecialChar LyX
6115  will automatically insert the necessary Sync\SpecialChar TeX
6116  macro (for
6117  PDF) or load the srcltx package (for DVI) respectively.
6118  This option can be easily reached also on 
6119 \begin_inset Flex Code
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 View/Update
6124 \end_layout
6125
6126 \end_inset
6127
6128  Toolbar.
6129 \end_layout
6130
6131 \begin_layout Standard
6132 If you need a different setting, you can select or input a custom macro
6133  from the drop down box just below 
6134 \begin_inset Flex Noun
6135 status collapsed
6136
6137 \begin_layout Plain Layout
6138 Document\SpecialChar menuseparator
6139 Settings\SpecialChar menuseparator
6140 Output\SpecialChar menuseparator
6141 Synchronize with Output
6142 \end_layout
6143
6144 \end_inset
6145
6146 .
6147 \end_layout
6148
6149 \begin_layout Standard
6150 Note that the method 
6151 \begin_inset Flex Code
6152 status collapsed
6153
6154 \begin_layout Plain Layout
6155
6156 \backslash
6157 synctex=1
6158 \end_layout
6159
6160 \end_inset
6161
6162  enables gzip compression.
6163  If your viewer does not support it, you should instead use 
6164 \begin_inset Flex Code
6165 status collapsed
6166
6167 \begin_layout Plain Layout
6168
6169 \backslash
6170 synctex=-1
6171 \end_layout
6172
6173 \end_inset
6174
6175 .
6176 \end_layout
6177
6178 \begin_layout Standard
6179 Please also note that including the 
6180 \begin_inset Flex Code
6181 status collapsed
6182
6183 \begin_layout Plain Layout
6184 srcltx
6185 \end_layout
6186
6187 \end_inset
6188
6189  package or 
6190 \begin_inset Flex Code
6191 status collapsed
6192
6193 \begin_layout Plain Layout
6194 src-specials
6195 \end_layout
6196
6197 \end_inset
6198
6199  sometimes has an undesired impact on the typesetting.
6200  Thus, you should switch output synchronization off for the final typesetting
6201  if you use the 
6202 \begin_inset Flex Code
6203 status collapsed
6204
6205 \begin_layout Plain Layout
6206 srcltx
6207 \end_layout
6208
6209 \end_inset
6210
6211  package or 
6212 \begin_inset Flex Code
6213 status collapsed
6214
6215 \begin_layout Plain Layout
6216 src-specials
6217 \end_layout
6218
6219 \end_inset
6220
6221 .
6222  
6223 \end_layout
6224
6225 \begin_layout Standard
6226 In case you need some more special settings that are not covered by the
6227  automatic settings, read the next section about how to set up output synchroniz
6228 ation manually.
6229  If the automatic setup suits your needs, you can readily jump to section
6230 \begin_inset space ~
6231 \end_inset
6232
6233
6234 \begin_inset CommandInset ref
6235 LatexCommand ref
6236 reference "subsec:configuring-viewers"
6237
6238 \end_inset
6239
6240 , where the necessary configuration steps in your viewer – needed both with
6241  the automatic and the manual setup – are described.
6242 \end_layout
6243
6244 \begin_layout Subsection
6245 Manual setup
6246 \end_layout
6247
6248 \begin_layout Standard
6249 \SpecialChar LaTeX
6250  provides several different methods for reverse search.
6251  Some are built-in in the 
6252 \begin_inset Flex Code
6253 status collapsed
6254
6255 \begin_layout Plain Layout
6256 latex/pdflatex
6257 \end_layout
6258
6259 \end_inset
6260
6261  program, some are provided by external packages.
6262  Your choice depends on whether your \SpecialChar LaTeX
6263  distribution already provides a given
6264  method (the built-in methods are rather new) and whether your viewer can
6265  cope with it.
6266  The available methods are described in the following.
6267 \end_layout
6268
6269 \begin_layout Subsubsection*
6270 Built-in DVI-search via src-specials (DVI only) 
6271 \end_layout
6272
6273 \begin_layout Standard
6274 This method provides the DVI file with the necessary information for reverse
6275  search.
6276  It is available in \SpecialChar LaTeX
6277  since quite some time (any somewhat recent \SpecialChar LaTeX
6278  distribution
6279  should include it), and it works reliably.
6280  To enable it, change the 
6281 \begin_inset Flex Noun
6282 status collapsed
6283
6284 \begin_layout Plain Layout
6285 La
6286 \family sans
6287 TeX
6288 \family default
6289  (plain)->DVI
6290 \end_layout
6291
6292 \end_inset
6293
6294  or 
6295 \begin_inset Flex Noun
6296 status collapsed
6297
6298 \begin_layout Plain Layout
6299 La
6300 \family sans
6301 TeX
6302 \family default
6303  (plain)->DraftDVI
6304 \end_layout
6305
6306 \end_inset
6307
6308  converter in 
6309 \begin_inset Flex Noun
6310 status collapsed
6311
6312 \begin_layout Plain Layout
6313 Preferences\SpecialChar menuseparator
6314 File Handling\SpecialChar menuseparator
6315 Converters
6316 \end_layout
6317
6318 \end_inset
6319
6320  to 
6321 \begin_inset Flex Code
6322 status collapsed
6323
6324 \begin_layout Plain Layout
6325 latex -src-specials $$i
6326 \end_layout
6327
6328 \end_inset
6329
6330 .
6331  If this doesn't work, check if your \SpecialChar TeX
6332  engine needs different options (the
6333  syntax might differ in some distributions).
6334 \end_layout
6335
6336 \begin_layout Subsubsection*
6337 External Packages (PDFSync and scrltx) 
6338 \end_layout
6339
6340 \begin_layout Standard
6341 The packages 
6342 \emph on
6343 pdfsync
6344 \emph default
6345  and 
6346 \emph on
6347 scrltx
6348 \emph default
6349  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6350  respectively.
6351  In order to enable it, load the packages in the \SpecialChar LyX
6352  preamble: 
6353 \end_layout
6354
6355 \begin_layout Itemize
6356 \begin_inset Flex Code
6357 status collapsed
6358
6359 \begin_layout Plain Layout
6360
6361 \backslash
6362 usepackage{pdfsync}
6363 \end_layout
6364
6365 \end_inset
6366
6367  for reverse PDF search,
6368 \end_layout
6369
6370 \begin_layout Itemize
6371 \begin_inset Flex Code
6372 status collapsed
6373
6374 \begin_layout Plain Layout
6375
6376 \backslash
6377 usepackage[active]{srcltx}
6378 \end_layout
6379
6380 \end_inset
6381
6382  for reverse DVI search.
6383 \end_layout
6384
6385 \begin_layout Standard
6386 If you want to be able to perform both DVI and PDF reverse searches, you
6387  can also insert in the preamble the following lines
6388 \end_layout
6389
6390 \begin_layout LyX-Code
6391
6392 \backslash
6393 usepackage{ifpdf}
6394 \begin_inset Newline newline
6395 \end_inset
6396
6397
6398 \backslash
6399 ifpdf
6400 \begin_inset Newline newline
6401 \end_inset
6402
6403   
6404 \backslash
6405 usepackage{pdfsync}
6406 \begin_inset Newline newline
6407 \end_inset
6408
6409
6410 \backslash
6411 else
6412 \begin_inset Newline newline
6413 \end_inset
6414
6415   
6416 \backslash
6417 usepackage[active]{srcltx}
6418 \begin_inset Newline newline
6419 \end_inset
6420
6421
6422 \backslash
6423 fi
6424 \end_layout
6425
6426 \begin_layout Standard
6427 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6428  right package will be used.
6429 \end_layout
6430
6431 \begin_layout Standard
6432 Note that PDFSync might affect the output layout of your document.
6433  It is therefore advised to disable PDFsync for final documents.
6434 \end_layout
6435
6436 \begin_layout Subsubsection*
6437 Built-in reverse search via Sync\SpecialChar TeX
6438  (DVI and PDF) 
6439 \end_layout
6440
6441 \begin_layout Standard
6442 Recent versions of 
6443 \begin_inset Flex Code
6444 status collapsed
6445
6446 \begin_layout Plain Layout
6447 (pdf)latex
6448 \end_layout
6449
6450 \end_inset
6451
6452  have built-in support for both PDF and DVI reverse search.
6453  This so-called 
6454 \emph on
6455 Sync\SpecialChar TeX
6456
6457 \emph default
6458  facility is basically the result of the integration of the PDFSync package
6459  to the pdftex program and its merge with the 
6460 \emph on
6461 scr-specials
6462 \emph default
6463  approach.
6464  You need at least \SpecialChar TeX
6465 Live 2008 or a recent Mik\SpecialChar TeX
6466  distribution in order to use
6467  it.
6468 \begin_inset Foot
6469 status collapsed
6470
6471 \begin_layout Plain Layout
6472 For some reason, Mik\SpecialChar TeX
6473  does not understand/obey the command \SpecialChar LyX
6474  inserts into
6475  the preamble when you check the "Enable Forward/Reverse Search" button
6476  in the toolbar and does not generate the necessary info.
6477 \end_layout
6478
6479 \begin_layout Plain Layout
6480 The generation of the required info can be forced by changing the converter
6481  "\SpecialChar LaTeX
6482  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
6483  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
6484  the -synctex=1 switch).
6485 \end_layout
6486
6487 \end_inset
6488
6489  Also note that only a few PDF viewers (Okular and Qpdfview on Unix, Skim
6490  on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
6491  support.
6492 \end_layout
6493
6494 \begin_layout Standard
6495 To enable Sync\SpecialChar TeX
6496  for DVI output, change the 
6497 \begin_inset Flex Noun
6498 status collapsed
6499
6500 \begin_layout Plain Layout
6501 La
6502 \family sans
6503 TeX
6504 \family default
6505  (plain) -> DVI
6506 \end_layout
6507
6508 \end_inset
6509
6510  or 
6511 \begin_inset Flex Noun
6512 status collapsed
6513
6514 \begin_layout Plain Layout
6515 La
6516 \family sans
6517 TeX
6518 \family default
6519  (plain) -> DraftDVI
6520 \end_layout
6521
6522 \end_inset
6523
6524  converter in 
6525 \begin_inset Flex Noun
6526 status collapsed
6527
6528 \begin_layout Plain Layout
6529 Preferences\SpecialChar menuseparator
6530 File Handling\SpecialChar menuseparator
6531 Converters
6532 \end_layout
6533
6534 \end_inset
6535
6536  to 
6537 \begin_inset Flex Code
6538 status collapsed
6539
6540 \begin_layout Plain Layout
6541 latex -synctex=1 $$i
6542 \end_layout
6543
6544 \end_inset
6545
6546 , and for PDF output, change the 
6547 \begin_inset Flex Noun
6548 status collapsed
6549
6550 \begin_layout Plain Layout
6551 La
6552 \family sans
6553 TeX
6554 \family default
6555  (pdflatex) -> PDF (pdflatex)
6556 \end_layout
6557
6558 \end_inset
6559
6560  or converter to 
6561 \begin_inset Flex Code
6562 status collapsed
6563
6564 \begin_layout Plain Layout
6565 pdflatex -synctex=1 $$i
6566 \end_layout
6567
6568 \end_inset
6569
6570 .
6571  Check the documentation of your viewer whether the viewer needs to be configure
6572 d for the use with Sync\SpecialChar TeX
6573 .
6574 \begin_inset Foot
6575 status collapsed
6576
6577 \begin_layout Plain Layout
6578 Note that the option 
6579 \begin_inset Flex Code
6580 status collapsed
6581
6582 \begin_layout Plain Layout
6583 -synctex=1
6584 \end_layout
6585
6586 \end_inset
6587
6588  option enables gzip compression.
6589  If your viewer does not support it, you should instead use 
6590 \begin_inset Flex Code
6591 status collapsed
6592
6593 \begin_layout Plain Layout
6594 -synctex=-1
6595 \end_layout
6596
6597 \end_inset
6598
6599 .
6600 \end_layout
6601
6602 \end_inset
6603
6604
6605 \end_layout
6606
6607 \begin_layout Subsection
6608 Configuring and using specific viewers
6609 \begin_inset CommandInset label
6610 LatexCommand label
6611 name "subsec:configuring-viewers"
6612
6613 \end_inset
6614
6615
6616 \end_layout
6617
6618 \begin_layout Subsubsection*
6619 Xdvi (all platforms)
6620 \end_layout
6621
6622 \begin_layout Standard
6623 If you use 
6624 \begin_inset Flex Code
6625 status collapsed
6626
6627 \begin_layout Plain Layout
6628 xdvi
6629 \end_layout
6630
6631 \end_inset
6632
6633 , you don't need to do anything else for performing a reverse DVI search,
6634  as \SpecialChar LyX
6635  already provides the necessary hooks for automatically using the 
6636 \begin_inset Flex Code
6637 status collapsed
6638
6639 \begin_layout Plain Layout
6640 lyxclient
6641 \end_layout
6642
6643 \end_inset
6644
6645  program.
6646  Just setup your document as described above (reverse search is triggered
6647  by Ctrl-click or Alt-click on Mac OSX, respectively).
6648 \end_layout
6649
6650 \begin_layout Standard
6651 However, if for whatever reason you want to use the named pipe instead of
6652  the socket for communicating with \SpecialChar LyX
6653 , simply change the DVI viewer in 
6654 \begin_inset Flex Noun
6655 status collapsed
6656
6657 \begin_layout Plain Layout
6658 Preferences\SpecialChar menuseparator
6659 File Handling\SpecialChar menuseparator
6660 File formats
6661 \end_layout
6662
6663 \end_inset
6664
6665  to
6666 \begin_inset Foot
6667 status collapsed
6668
6669 \begin_layout Plain Layout
6670 On Mac OSX you have to use 
6671 \begin_inset Flex Code
6672 status collapsed
6673
6674 \begin_layout Plain Layout
6675 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
6676 \end_layout
6677
6678 \end_inset
6679
6680
6681 \end_layout
6682
6683 \end_inset
6684
6685  
6686 \begin_inset Flex Code
6687 status collapsed
6688
6689 \begin_layout Plain Layout
6690 xdvi -editor "lyxeditor.sh %f %l"
6691 \end_layout
6692
6693 \end_inset
6694
6695 , where 
6696 \begin_inset Flex Code
6697 status collapsed
6698
6699 \begin_layout Plain Layout
6700 lyxeditor.sh
6701 \end_layout
6702
6703 \end_inset
6704
6705  is a suitable script.
6706  For example, a minimal shell script is the following one:
6707 \end_layout
6708
6709 \begin_layout LyX-Code
6710 #!/bin/sh
6711 \begin_inset Newline newline
6712 \end_inset
6713
6714 LYXPIPE="/path/to/lyxpipe"
6715 \begin_inset Newline newline
6716 \end_inset
6717
6718 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6719 \begin_inset Newline newline
6720 \end_inset
6721
6722 echo "$COMMAND" > "${LYXPIPE}".in || exit
6723 \begin_inset Newline newline
6724 \end_inset
6725
6726 read TMP < "${LYXPIPE}".out || exit
6727 \end_layout
6728
6729 \begin_layout Standard
6730 where 
6731 \begin_inset Flex Code
6732 status collapsed
6733
6734 \begin_layout Plain Layout
6735 /path/to/lyxpipe
6736 \end_layout
6737
6738 \end_inset
6739
6740  is the Ly
6741 \begin_inset ERT
6742 status collapsed
6743
6744 \begin_layout Plain Layout
6745
6746 {}
6747 \end_layout
6748
6749 \end_inset
6750
6751 XServer pipe path specified in 
6752 \begin_inset Flex Noun
6753 status collapsed
6754
6755 \begin_layout Plain Layout
6756 Preferences\SpecialChar menuseparator
6757 Paths
6758 \end_layout
6759
6760 \end_inset
6761
6762 .
6763 \begin_inset Foot
6764 status collapsed
6765
6766 \begin_layout Plain Layout
6767 In the 
6768 \begin_inset Flex Code
6769 status collapsed
6770
6771 \begin_layout Plain Layout
6772 development/tools
6773 \end_layout
6774
6775 \end_inset
6776
6777  folder of a source distribution you can find a 
6778 \begin_inset Flex Code
6779 status collapsed
6780
6781 \begin_layout Plain Layout
6782 lyxeditor
6783 \end_layout
6784
6785 \end_inset
6786
6787  script which is able to locate the 
6788 \emph on
6789 lyxpipe
6790 \emph default
6791  based on your preferences.
6792 \end_layout
6793
6794 \end_inset
6795
6796
6797 \end_layout
6798
6799 \begin_layout Subsubsection*
6800 MacDviX (Mac OSX)
6801 \end_layout
6802
6803 \begin_layout Standard
6804 At the end of 
6805 \begin_inset Flex Code
6806 status collapsed
6807
6808 \begin_layout Plain Layout
6809 /Applications/MacDviX_Folder/calleditor.script
6810 \end_layout
6811
6812 \end_inset
6813
6814 , add the following lines:
6815 \end_layout
6816
6817 \begin_layout LyX-Code
6818 /Applications/Ly
6819 \begin_inset ERT
6820 status collapsed
6821
6822 \begin_layout Plain Layout
6823
6824 {}
6825 \end_layout
6826
6827 \end_inset
6828
6829 X.app/Contents/MacOS/lyxeditor "$2" $1
6830 \begin_inset Newline newline
6831 \end_inset
6832
6833 exit 1
6834 \end_layout
6835
6836 \begin_layout Standard
6837 Modify the lines accordingly if you install \SpecialChar LyX
6838  somewhere else than in the
6839  Applications folder.
6840 \end_layout
6841
6842 \begin_layout Standard
6843 Reverse search is triggered by Alt-click (OPTION-click).
6844 \end_layout
6845
6846 \begin_layout Subsubsection*
6847 Skim (Mac OSX)
6848 \end_layout
6849
6850 \begin_layout Standard
6851 Enter 
6852 \begin_inset Flex Code
6853 status collapsed
6854
6855 \begin_layout Plain Layout
6856 open -a Skim.app $$i
6857 \end_layout
6858
6859 \end_inset
6860
6861  to the viewer setting in 
6862 \begin_inset Flex Noun
6863 status collapsed
6864
6865 \begin_layout Plain Layout
6866 Preferences\SpecialChar menuseparator
6867 File Handling\SpecialChar menuseparator
6868 File formats\SpecialChar menuseparator
6869 PDF (pdflatex)
6870 \end_layout
6871
6872 \end_inset
6873
6874 , and then in 
6875 \begin_inset Flex Noun
6876 status collapsed
6877
6878 \begin_layout Plain Layout
6879 Skim\SpecialChar menuseparator
6880 Preferences\SpecialChar menuseparator
6881 Sync
6882 \end_layout
6883
6884 \end_inset
6885
6886  choose 
6887 \begin_inset Flex Noun
6888 status collapsed
6889
6890 \begin_layout Plain Layout
6891 custom
6892 \end_layout
6893
6894 \end_inset
6895
6896  preset and enter command 
6897 \begin_inset Flex Noun
6898 status collapsed
6899
6900 \begin_layout Plain Layout
6901 /Applications/\SpecialChar LyX
6902 .app/Contents/MacOS/lyxeditor
6903 \end_layout
6904
6905 \end_inset
6906
6907 .
6908 \end_layout
6909
6910 \begin_layout Standard
6911 Reverse search is triggered by COMMAND-SHIFT-click
6912 \end_layout
6913
6914 \begin_layout Subsubsection*
6915 Okular (KDE)
6916 \end_layout
6917
6918 \begin_layout Standard
6919 Go to 
6920 \begin_inset Flex Noun
6921 status collapsed
6922
6923 \begin_layout Plain Layout
6924 Settings\SpecialChar menuseparator
6925 Configure Okular\SpecialChar menuseparator
6926 Editor
6927 \end_layout
6928
6929 \end_inset
6930
6931 , select 
6932 \begin_inset Quotes eld
6933 \end_inset
6934
6935 Custom Text Editor
6936 \begin_inset Quotes erd
6937 \end_inset
6938
6939  and add the command 
6940 \begin_inset Flex Code
6941 status collapsed
6942
6943 \begin_layout Plain Layout
6944 lyxclient -g %f %l
6945 \end_layout
6946
6947 \end_inset
6948
6949 .
6950 \end_layout
6951
6952 \begin_layout Standard
6953 Reverse search is triggered by SHIFT-click.
6954 \end_layout
6955
6956 \begin_layout Subsubsection*
6957 Qpdfview (Unix)
6958 \end_layout
6959
6960 \begin_layout Standard
6961 Qpdfview supports Sync\SpecialChar TeX
6962  since version 0.3.5.
6963  Go to 
6964 \begin_inset Flex Noun
6965 status collapsed
6966
6967 \begin_layout Plain Layout
6968 Edit\SpecialChar menuseparator
6969 Settings\SpecialChar menuseparator
6970 Behavior
6971 \end_layout
6972
6973 \end_inset
6974
6975 , click on the input field of the 
6976 \begin_inset Quotes eld
6977 \end_inset
6978
6979 Source editor
6980 \begin_inset Quotes erd
6981 \end_inset
6982
6983  item and add the command 
6984 \begin_inset Flex Code
6985 status collapsed
6986
6987 \begin_layout Plain Layout
6988 lyxclient -g %1 %2
6989 \end_layout
6990
6991 \end_inset
6992
6993 .
6994 \end_layout
6995
6996 \begin_layout Standard
6997 Reverse search is triggered by double-click.
6998 \end_layout
6999
7000 \begin_layout Subsubsection*
7001 YAP (Windows)
7002 \end_layout
7003
7004 \begin_layout Standard
7005 Launch yap, choose its 
7006 \begin_inset Flex Noun
7007 status collapsed
7008
7009 \begin_layout Plain Layout
7010 View\SpecialChar menuseparator
7011 Options
7012 \end_layout
7013
7014 \end_inset
7015
7016  menu and select the 
7017 \begin_inset Quotes eld
7018 \end_inset
7019
7020 Inverse DVI Search
7021 \begin_inset Quotes erd
7022 \end_inset
7023
7024  tab.
7025  Click on the 
7026 \begin_inset Quotes eld
7027 \end_inset
7028
7029 New\SpecialChar ldots
7030
7031 \begin_inset Quotes erd
7032 \end_inset
7033
7034  button and, in the window that opens, enter 
7035 \begin_inset Quotes eld
7036 \end_inset
7037
7038 \SpecialChar LyX
7039  Editor
7040 \begin_inset Quotes erd
7041 \end_inset
7042
7043  (or any other name you like) in the 
7044 \begin_inset Quotes eld
7045 \end_inset
7046
7047 Name:
7048 \begin_inset Quotes erd
7049 \end_inset
7050
7051  field.
7052  Now click on the button labeled 
7053 \begin_inset Quotes eld
7054 \end_inset
7055
7056 \SpecialChar ldots
7057
7058 \begin_inset Quotes erd
7059 \end_inset
7060
7061  to open a file dialog and navigate to the directory containing the batch
7062  file 
7063 \begin_inset Flex Code
7064 status collapsed
7065
7066 \begin_layout Plain Layout
7067 lyxeditor.bat
7068 \end_layout
7069
7070 \end_inset
7071
7072  (see below).
7073  Select 
7074 \begin_inset Flex Code
7075 status collapsed
7076
7077 \begin_layout Plain Layout
7078 lyxeditor.bat
7079 \end_layout
7080
7081 \end_inset
7082
7083  and then specify the program arguments as 
7084 \begin_inset Flex Code
7085 status collapsed
7086
7087 \begin_layout Plain Layout
7088 %f %l
7089 \end_layout
7090
7091 \end_inset
7092
7093 .
7094  The 
7095 \begin_inset Flex Code
7096 status collapsed
7097
7098 \begin_layout Plain Layout
7099 lyxeditor.bat
7100 \end_layout
7101
7102 \end_inset
7103
7104  wrapper is used for communicating with \SpecialChar LyX
7105  through the 
7106 \emph on
7107 lyxpipe
7108 \emph default
7109  and is as follows:
7110 \end_layout
7111
7112 \begin_layout LyX-Code
7113 @echo off
7114 \begin_inset Newline newline
7115 \end_inset
7116
7117 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7118 \backslash
7119
7120 \backslash
7121 .
7122 \backslash
7123 pipe
7124 \backslash
7125 lyxpipe.in
7126 \begin_inset Newline newline
7127 \end_inset
7128
7129 type 
7130 \backslash
7131
7132 \backslash
7133 .
7134 \backslash
7135 pipe
7136 \backslash
7137 lyxpipe.out
7138 \end_layout
7139
7140 \begin_layout Standard
7141 Make sure that the \SpecialChar LyX
7142 Server pipe path you specified in \SpecialChar LyX
7143  is 
7144 \begin_inset Flex Code
7145 status collapsed
7146
7147 \begin_layout Plain Layout
7148
7149 \backslash
7150
7151 \backslash
7152 .
7153 \backslash
7154 pipe
7155 \backslash
7156 lyxpipe
7157 \end_layout
7158
7159 \end_inset
7160
7161 , otherwise change the 
7162 \begin_inset Flex Code
7163 status collapsed
7164
7165 \begin_layout Plain Layout
7166 lyxeditor.bat
7167 \end_layout
7168
7169 \end_inset
7170
7171  wrapper accordingly.
7172 \end_layout
7173
7174 \begin_layout Standard
7175 In yap, reverse search is triggered by double-click.
7176 \end_layout
7177
7178 \begin_layout Subsubsection*
7179 SumatraPDF (Windows)
7180 \end_layout
7181
7182 \begin_layout Standard
7183 In order to use SumatraPDF for inverse search, enter 
7184 \begin_inset Flex Code
7185 status collapsed
7186
7187 \begin_layout Plain Layout
7188 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
7189 \end_layout
7190
7191 \end_inset
7192
7193  in the viewer setting in 
7194 \begin_inset Flex Noun
7195 status collapsed
7196
7197 \begin_layout Plain Layout
7198 Preferences\SpecialChar menuseparator
7199 File Handling\SpecialChar menuseparator
7200 File formats\SpecialChar menuseparator
7201 PDF (pdflatex)
7202 \end_layout
7203
7204 \end_inset
7205
7206 , where 
7207 \begin_inset Flex Code
7208 status collapsed
7209
7210 \begin_layout Plain Layout
7211 lyxeditor.bat
7212 \end_layout
7213
7214 \end_inset
7215
7216  is the previous wrapper.
7217  If SumatraPDF.exe is not in your command PATH, use its full file name.
7218 \end_layout
7219
7220 \begin_layout Standard
7221 Reverse search is triggered by double-click.
7222 \end_layout
7223
7224 \begin_layout Subsubsection*
7225 YAP (Cygwin)
7226 \end_layout
7227
7228 \begin_layout Standard
7229 First of all, make sure that yap is your default DVI viewer in the Windows
7230  environment, then launch it, choose its 
7231 \begin_inset Flex Noun
7232 status collapsed
7233
7234 \begin_layout Plain Layout
7235 View\SpecialChar menuseparator
7236 Options
7237 \end_layout
7238
7239 \end_inset
7240
7241  menu and select the 
7242 \begin_inset Quotes eld
7243 \end_inset
7244
7245 Inverse DVI Search
7246 \begin_inset Quotes erd
7247 \end_inset
7248
7249  tab.
7250  Click on the 
7251 \begin_inset Quotes eld
7252 \end_inset
7253
7254 New\SpecialChar ldots
7255
7256 \begin_inset Quotes erd
7257 \end_inset
7258
7259  button and, in the window that opens, enter 
7260 \begin_inset Quotes eld
7261 \end_inset
7262
7263 \SpecialChar LyX
7264  Editor
7265 \begin_inset Quotes erd
7266 \end_inset
7267
7268  (or any other name you like) in the 
7269 \begin_inset Quotes eld
7270 \end_inset
7271
7272 Name:
7273 \begin_inset Quotes erd
7274 \end_inset
7275
7276  field.
7277  Now click on the button labeled 
7278 \begin_inset Quotes eld
7279 \end_inset
7280
7281 \SpecialChar ldots
7282
7283 \begin_inset Quotes erd
7284 \end_inset
7285
7286  to open a file dialog and navigate to the directory containing the 
7287 \begin_inset Flex Code
7288 status collapsed
7289
7290 \begin_layout Plain Layout
7291 lyxeditor.exe
7292 \end_layout
7293
7294 \end_inset
7295
7296  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7297  executable).
7298  Select 
7299 \begin_inset Flex Code
7300 status collapsed
7301
7302 \begin_layout Plain Layout
7303 lyxeditor.exe
7304 \end_layout
7305
7306 \end_inset
7307
7308  and then specify the program arguments as 
7309 \begin_inset Flex Code
7310 status collapsed
7311
7312 \begin_layout Plain Layout
7313 -g %f %l
7314 \end_layout
7315
7316 \end_inset
7317
7318 .
7319  In this way, you will be using the 
7320 \emph on
7321 lyxsocket
7322 \emph default
7323  for communicating with \SpecialChar LyX
7324 .
7325  If, for whatever reason, you want to use the 
7326 \emph on
7327 lyxpipe
7328 \emph default
7329 , omit the 
7330 \begin_inset Flex Code
7331 status collapsed
7332
7333 \begin_layout Plain Layout
7334 -g
7335 \end_layout
7336
7337 \end_inset
7338
7339  option and be sure to specify the \SpecialChar LyX
7340 Server pipe path in the \SpecialChar LyX
7341  preferences.
7342 \end_layout
7343
7344 \begin_layout Standard
7345 In yap, reverse search is triggered by double-click.
7346 \end_layout
7347
7348 \begin_layout Subsubsection*
7349 SumatraPDF (Cygwin)
7350 \end_layout
7351
7352 \begin_layout Standard
7353 In order to use SumatraPDF for inverse search, enter 
7354 \begin_inset Flex Code
7355 status collapsed
7356
7357 \begin_layout Plain Layout
7358 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7359 \end_layout
7360
7361 \end_inset
7362
7363  in the viewer setting in 
7364 \begin_inset Flex Noun
7365 status collapsed
7366
7367 \begin_layout Plain Layout
7368 Preferences\SpecialChar menuseparator
7369 File Handling\SpecialChar menuseparator
7370 File formats\SpecialChar menuseparator
7371 PDF (pdflatex)
7372 \end_layout
7373
7374 \end_inset
7375
7376 .
7377  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7378  The 
7379 \begin_inset Flex Code
7380 status collapsed
7381
7382 \begin_layout Plain Layout
7383 -g
7384 \end_layout
7385
7386 \end_inset
7387
7388  enables communication via the 
7389 \emph on
7390 lyxsocket
7391 \emph default
7392 .
7393  Again, omit the 
7394 \begin_inset Flex Code
7395 status collapsed
7396
7397 \begin_layout Plain Layout
7398 -g
7399 \end_layout
7400
7401 \end_inset
7402
7403  option if you want to use the 
7404 \emph on
7405 lyxpipe
7406 \emph default
7407 , and be sure to specify the \SpecialChar LyX
7408 Server pipe path in the \SpecialChar LyX
7409  preferences.
7410 \end_layout
7411
7412 \begin_layout Standard
7413 Reverse search is triggered by double-click.
7414 \end_layout
7415
7416 \begin_layout Section
7417 Forward search
7418 \end_layout
7419
7420 \begin_layout Standard
7421 Forward search is, as the name implies, in a sense the 
7422 \begin_inset Quotes eld
7423 \end_inset
7424
7425 opposite
7426 \begin_inset Quotes erd
7427 \end_inset
7428
7429  of reverse search.
7430  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7431 .
7432  If forward search is set up (as described in what follows), you can put
7433  the cursor anywhere in your \SpecialChar LyX
7434  document, and hit 
7435 \begin_inset Flex Noun
7436 status collapsed
7437
7438 \begin_layout Plain Layout
7439 Navigate\SpecialChar menuseparator
7440 Forward search
7441 \end_layout
7442
7443 \end_inset
7444
7445  (or select 
7446 \begin_inset Flex Noun
7447 status collapsed
7448
7449 \begin_layout Plain Layout
7450 Forward search
7451 \end_layout
7452
7453 \end_inset
7454
7455  in the context menu via right mouse click), and then the viewer will jump
7456  to that position as well.
7457  This implies, of course, that your viewer supports this function.
7458 \end_layout
7459
7460 \begin_layout Standard
7461 To make forward search possible, you first need to provide the generated
7462  output PDF/DVI file with additional information about the \SpecialChar TeX
7463  sources.
7464  This can be done via the methods described in the section 
7465 \begin_inset CommandInset ref
7466 LatexCommand ref
7467 reference "subsec:rev-search"
7468
7469 \end_inset
7470
7471 .
7472 \end_layout
7473
7474 \begin_layout Standard
7475 Additionally, you need to configure \SpecialChar LyX
7476  for using your viewers in 
7477 \begin_inset Flex Noun
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481 Tools\SpecialChar menuseparator
7482 Preferences\SpecialChar menuseparator
7483 Output\SpecialChar menuseparator
7484 General
7485 \end_layout
7486
7487 \end_inset
7488
7489 .
7490  We provide a range of tested configurations for some viewers, which you
7491  can select from the drop down list.
7492  If none of these configurations suits you, you have to find out and enter
7493  a suitable configuration yourself.
7494  The definition syntax uses the following placeholders:
7495 \end_layout
7496
7497 \begin_layout Itemize
7498 \noindent
7499 \begin_inset Flex Code
7500 status collapsed
7501
7502 \begin_layout Plain Layout
7503 $$n
7504 \end_layout
7505
7506 \end_inset
7507
7508 : row number
7509 \end_layout
7510
7511 \begin_layout Itemize
7512 \noindent
7513 \begin_inset Flex Code
7514 status collapsed
7515
7516 \begin_layout Plain Layout
7517 $$t
7518 \end_layout
7519
7520 \end_inset
7521
7522 : name of the (temporary) exported .tex file (without path)
7523 \end_layout
7524
7525 \begin_layout Itemize
7526 \noindent
7527 \begin_inset Flex Code
7528 status collapsed
7529
7530 \begin_layout Plain Layout
7531 $$f
7532 \end_layout
7533
7534 \end_inset
7535
7536 : name of the (temporary) exported .tex file (including path)
7537 \end_layout
7538
7539 \begin_layout Itemize
7540 \noindent
7541 \begin_inset Flex Code
7542 status collapsed
7543
7544 \begin_layout Plain Layout
7545 $$o
7546 \end_layout
7547
7548 \end_inset
7549
7550 : name of the exported output file (either dvi or pdf, depending on which
7551  one exists in the temporary directory)
7552 \end_layout
7553
7554 \begin_layout Standard
7555 Note that only some of the viewers provide full forward search functionality,
7556  among them yap, xdvi, okular
7557 \begin_inset Foot
7558 status collapsed
7559
7560 \begin_layout Plain Layout
7561 You might want to set 
7562 \begin_inset Flex Code
7563 status collapsed
7564
7565 \begin_layout Plain Layout
7566 okular –unique
7567 \end_layout
7568
7569 \end_inset
7570
7571  in 
7572 \begin_inset Flex Noun
7573 status collapsed
7574
7575 \begin_layout Plain Layout
7576 Tools\SpecialChar menuseparator
7577 Preferences\SpecialChar menuseparator
7578 File Handling\SpecialChar menuseparator
7579 File
7580 \begin_inset space ~
7581 \end_inset
7582
7583 Formats
7584 \end_layout
7585
7586 \end_inset
7587
7588
7589 \end_layout
7590
7591 \end_inset
7592
7593 , qpdfview and SumatraPDF
7594 \begin_inset Foot
7595 status collapsed
7596
7597 \begin_layout Plain Layout
7598 SumatraPDF can also use DDE commands through the external program CMCDDE
7599  — downloadable from 
7600 \begin_inset CommandInset href
7601 LatexCommand href
7602 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
7603
7604 \end_inset
7605
7606
7607 \end_layout
7608
7609 \end_inset
7610
7611 .
7612  While many of the widespread PDF viewers (most notably Adobe Reader) do
7613  not support forward search at all, some other viewers – e.
7614 \begin_inset space \thinspace{}
7615 \end_inset
7616
7617 g.
7618  evince and xpdf – allow at least to reload the document and jump to a specific
7619  page of the file, so you can at least navigate 
7620 \begin_inset Quotes eld
7621 \end_inset
7622
7623 near
7624 \begin_inset Quotes erd
7625 \end_inset
7626
7627 .
7628  This latter functionality is provided by an external call of synctex (see
7629  the predefined example configurations).
7630  
7631 \end_layout
7632
7633 \begin_layout Standard
7634 Forward search works both with DVI and PDF output.
7635  \SpecialChar LyX
7636  simply checks which preview format you have used before (i.
7637 \begin_inset space \thinspace{}
7638 \end_inset
7639
7640 e., which format is already there in the temporary directory) and chooses
7641  the appropriate configuration for the respective format.
7642 \end_layout
7643
7644 \begin_layout Chapter
7645 Special Document Classes
7646 \end_layout
7647
7648 \begin_layout Section
7649 A&A Paper
7650 \end_layout
7651
7652 \begin_layout Standard
7653 by 
7654 \noun on
7655 Peter Sütterlin
7656 \end_layout
7657
7658 \begin_layout Subsection
7659 Introduction
7660 \end_layout
7661
7662 \begin_layout Standard
7663 This section describes how \SpecialChar LyX
7664  can be used to write articles for submission
7665  to the scientific journal 
7666 \emph on
7667 Astronomy and Astrophysics
7668 \emph default
7669  (
7670 \begin_inset Flex URL
7671 status collapsed
7672
7673 \begin_layout Plain Layout
7674
7675 http://www.edpsciences.fr/aa/
7676 \end_layout
7677
7678 \end_inset
7679
7680 ) using Version 5.01 of the document class 
7681 \family typewriter
7682 aa.cls
7683 \family default
7684 .
7685  This package can be downloaded from the ftp site
7686 \end_layout
7687
7688 \begin_layout Standard
7689 \begin_inset VSpace medskip
7690 \end_inset
7691
7692
7693 \end_layout
7694
7695 \begin_layout Standard
7696 \align center
7697 \begin_inset Flex URL
7698 status collapsed
7699
7700 \begin_layout Plain Layout
7701
7702 ftp://ftp.edpsciences.org/pub/aa/readme.html
7703 \end_layout
7704
7705 \end_inset
7706
7707
7708 \end_layout
7709
7710 \begin_layout Standard
7711 \begin_inset VSpace medskip
7712 \end_inset
7713
7714
7715 \end_layout
7716
7717 \begin_layout Standard
7718 A manual comes together with that package, and this text is not meant to
7719  replace the original manual but is merely a short guide in how to realize
7720  the correct form of your paper.
7721  
7722 \end_layout
7723
7724 \begin_layout Standard
7725 Please note that the publisher of the journal was changed from Springer
7726  to EDP Sciences starting January 1, 2001.
7727  That change involved also some slight changes to the style files, namely
7728  the removal of the thesaurus command.
7729  The \SpecialChar LyX
7730  class aa supports the newest version of these style files, V 5.01.
7731  If you have an older version installed, please upgrade.
7732  For compatibility, the old (version 4) layout has been kept as 
7733 \family sans
7734 article (A&A V4)
7735 \family default
7736 .
7737  Please refer to the comments in 
7738 \family typewriter
7739 \SpecialChar LyX
7740 Dir/layouts/aapaper.layout
7741 \family default
7742 .
7743 \end_layout
7744
7745 \begin_layout Subsection
7746 Getting started
7747 \end_layout
7748
7749 \begin_layout Standard
7750 It is recommended you start from the example template distributed with \SpecialChar LyX
7751 .
7752  If you are not using a template, note the following settings:
7753 \end_layout
7754
7755 \begin_layout Itemize
7756 Select 
7757 \family sans
7758 article (A&A)
7759 \family default
7760  in the 
7761 \family sans
7762 Document\SpecialChar menuseparator
7763 Settings
7764 \family default
7765  dialog (OK, that one was obvious).
7766 \end_layout
7767
7768 \begin_layout Itemize
7769 Don't change the option 
7770 \family sans
7771 Page
7772 \begin_inset space ~
7773 \end_inset
7774
7775 style
7776 \family default
7777 : Leave it set to 
7778 \family sans
7779 default
7780 \family default
7781 .
7782  The whole layout is done by the macros, you shouldn't change anything.
7783 \end_layout
7784
7785 \begin_layout Subsection
7786 The header block
7787 \end_layout
7788
7789 \begin_layout Standard
7790 First thing to enter is the header information.
7791  It consists of seven entries, of which some are optional.
7792  They are
7793 \end_layout
7794
7795 \begin_layout Itemize
7796
7797 \family sans
7798 Title
7799 \family default
7800 : [required] 
7801 \end_layout
7802
7803 \begin_layout Itemize
7804
7805 \family sans
7806 Subtitle
7807 \family default
7808 : [optional] 
7809 \end_layout
7810
7811 \begin_layout Itemize
7812
7813 \family sans
7814 Author
7815 \family default
7816 : [required]
7817 \end_layout
7818
7819 \begin_layout Itemize
7820
7821 \family sans
7822 Address
7823 \family default
7824 : [required]
7825 \end_layout
7826
7827 \begin_layout Itemize
7828
7829 \family sans
7830 Offprints
7831 \family default
7832 : [optional] if more than one author: whom to contact for offprint requests.
7833 \end_layout
7834
7835 \begin_layout Itemize
7836
7837 \family sans
7838 Mail
7839 \family default
7840 : [optional] mail address for contacts.
7841 \end_layout
7842
7843 \begin_layout Itemize
7844
7845 \family sans
7846 Date
7847 \family default
7848 : [required].
7849  Suggested format is 
7850 \family typewriter
7851 Received: <date>; Accepted <date> 
7852 \end_layout
7853
7854 \begin_layout Standard
7855 There is no need to issue the 
7856 \family typewriter
7857
7858 \backslash
7859 maketitle
7860 \family default
7861  command, this is done automatically by \SpecialChar LyX
7862  when the header is finished.
7863  Although the order of the single header entries doesn't matter it is advised
7864  to keep the above sequence, just to get the best optics and meets the layout
7865  of the real document.
7866 \end_layout
7867
7868 \begin_layout Standard
7869 If you want to place footnotes in the header block, e.
7870 \begin_inset space \thinspace{}
7871 \end_inset
7872
7873 g.
7874 \begin_inset space \space{}
7875 \end_inset
7876
7877 to state your present address, just use the standard footnote via the menu
7878  
7879 \family sans
7880 Insert\SpecialChar menuseparator
7881 Footnote.
7882
7883 \family default
7884  \SpecialChar LyX
7885  will automagically use the term 
7886 \family typewriter
7887
7888 \backslash
7889 thanks{}
7890 \family default
7891  in that case.
7892 \end_layout
7893
7894 \begin_layout Standard
7895 In addition to these topics, the macros use three additional \SpecialChar LaTeX
7896  commands that
7897  have no counterpart in \SpecialChar LyX
7898 :
7899 \end_layout
7900
7901 \begin_layout Itemize
7902
7903 \family typewriter
7904
7905 \backslash
7906 and
7907 \family default
7908  to separate different names for more than one author and institute, respectivel
7909 y.
7910 \end_layout
7911
7912 \begin_layout Itemize
7913
7914 \family typewriter
7915
7916 \backslash
7917 inst{<nr>}
7918 \family default
7919 to mark corresponding author/institute pairs.
7920  The institutes are numbered sequentially as they appear in the 
7921 \family sans
7922 Address
7923 \family default
7924  field, so you have to put a marker to each author.
7925 \end_layout
7926
7927 \begin_layout Itemize
7928
7929 \family typewriter
7930
7931 \backslash
7932 email{address}
7933 \family default
7934  to supply an email address for fast contact.
7935 \end_layout
7936
7937 \begin_layout Standard
7938 In all cases, the appropriate command has to be entered in \SpecialChar LyX
7939  and marked as
7940  \SpecialChar LaTeX
7941  code.
7942  See the examples.
7943  
7944 \end_layout
7945
7946 \begin_layout Subsection
7947 The abstract
7948 \end_layout
7949
7950 \begin_layout Standard
7951 The abstract should immediately follow the header block.
7952  With version 5 the abstract environment was changed to a command, and there
7953  is now a resctriction to only one paragraph.
7954  In addition, it should contain an entry with the keywords.
7955  This is not yet implemented for \SpecialChar LyX
7956 , therefore you have to enter the \SpecialChar LaTeX
7957  command
7958  
7959 \family typewriter
7960
7961 \backslash
7962 keywords{}
7963 \family default
7964  by hand and mark it as \SpecialChar LaTeX
7965  code.
7966  Refer to the example paper.
7967 \end_layout
7968
7969 \begin_layout Subsection
7970 Supported environments
7971 \end_layout
7972
7973 \begin_layout Standard
7974 The A&A paper layout supports the following environments for structuring
7975  your text:
7976 \end_layout
7977
7978 \begin_layout Itemize
7979
7980 \family sans
7981 Standard
7982 \end_layout
7983
7984 \begin_layout Itemize
7985
7986 \family sans
7987 Section
7988 \end_layout
7989
7990 \begin_layout Itemize
7991
7992 \family sans
7993 Subsection
7994 \end_layout
7995
7996 \begin_layout Itemize
7997
7998 \family sans
7999 Subsubsection
8000 \end_layout
8001
8002 \begin_layout Itemize
8003
8004 \family sans
8005 Itemize
8006 \end_layout
8007
8008 \begin_layout Itemize
8009
8010 \family sans
8011 Enumerate
8012 \end_layout
8013
8014 \begin_layout Itemize
8015
8016 \family sans
8017 Description
8018 \end_layout
8019
8020 \begin_layout Itemize
8021
8022 \family sans
8023 Caption
8024 \end_layout
8025
8026 \begin_layout Itemize
8027
8028 \family sans
8029 Abstract
8030 \end_layout
8031
8032 \begin_layout Itemize
8033
8034 \family sans
8035 Acknowledgment
8036 \end_layout
8037
8038 \begin_layout Itemize
8039
8040 \family sans
8041 Bibliography
8042 \end_layout
8043
8044 \begin_layout Itemize
8045
8046 \family sans
8047 \SpecialChar LaTeX
8048
8049 \end_layout
8050
8051 \begin_layout Subsection
8052 Commands not supported by \SpecialChar LyX
8053
8054 \end_layout
8055
8056 \begin_layout Standard
8057 Some commands are not yet supported by the 
8058 \family sans
8059 paper (A&A)
8060 \family default
8061  layout for \SpecialChar LyX
8062 .
8063  Some have already been mentioned.
8064  For the sake of completeness, they are listed all together here:
8065 \end_layout
8066
8067 \begin_layout Itemize
8068
8069 \family typewriter
8070
8071 \backslash
8072 and
8073 \end_layout
8074
8075 \begin_layout Itemize
8076
8077 \family typewriter
8078
8079 \backslash
8080 email
8081 \end_layout
8082
8083 \begin_layout Itemize
8084
8085 \family typewriter
8086
8087 \backslash
8088 appendix
8089 \end_layout
8090
8091 \begin_layout Itemize
8092
8093 \family typewriter
8094
8095 \backslash
8096 authorrunning
8097 \end_layout
8098
8099 \begin_layout Itemize
8100
8101 \family typewriter
8102
8103 \backslash
8104 inst{}
8105 \end_layout
8106
8107 \begin_layout Itemize
8108
8109 \family typewriter
8110
8111 \backslash
8112 keywords{}
8113 \end_layout
8114
8115 \begin_layout Itemize
8116
8117 \family typewriter
8118
8119 \backslash
8120 object{}
8121 \end_layout
8122
8123 \begin_layout Itemize
8124
8125 \family typewriter
8126
8127 \backslash
8128 titlerunning{}
8129 \end_layout
8130
8131 \begin_layout Standard
8132 If you want to use any of these commands, you have to enter them yourself.
8133  
8134 \series bold
8135 Do not forget to mark them as \SpecialChar LaTeX
8136  code!
8137 \end_layout
8138
8139 \begin_layout Subsection
8140 Figure and Table Floats
8141 \end_layout
8142
8143 \begin_layout Standard
8144 \SpecialChar LyX
8145  provides support for the necessary float environments 
8146 \family sans
8147 figure, figure*, table
8148 \family default
8149  and 
8150 \family sans
8151 table*
8152 \family default
8153 , therefore we won't tell much about it here.
8154  Refer to the 
8155 \emph on
8156 User's
8157 \begin_inset space ~
8158 \end_inset
8159
8160 Guide
8161 \emph default
8162 .
8163  Just remember that tables should be left-aligned.
8164  For that, select the table and change the alignment in 
8165 \family sans
8166 Edit\SpecialChar menuseparator
8167 Paragraph
8168 \begin_inset space ~
8169 \end_inset
8170
8171 Settings.
8172 \end_layout
8173
8174 \begin_layout Standard
8175 There is only one special thing: the figures with caption besides the figure.
8176  To create such a figure, you have to do the following:
8177 \end_layout
8178
8179 \begin_layout Enumerate
8180 Create a wide figure float: 
8181 \family sans
8182 Insert\SpecialChar menuseparator
8183 Float\SpecialChar menuseparator
8184 Figure
8185 \family default
8186 , then right click in the figure and select 
8187 \family sans
8188 \bar under
8189 S
8190 \bar default
8191 pan
8192 \begin_inset space ~
8193 \end_inset
8194
8195 columns
8196 \family default
8197 .
8198 \end_layout
8199
8200 \begin_layout Enumerate
8201 Enter your caption text.
8202 \end_layout
8203
8204 \begin_layout Enumerate
8205 Press 
8206 \family sans
8207 Return
8208 \family default
8209  to move the cursor above the caption.
8210 \end_layout
8211
8212 \begin_layout Enumerate
8213 Insert your figure
8214 \end_layout
8215
8216 \begin_layout Enumerate
8217 Position the cursor behind the figure and insert a horizontal fill: 
8218 \family sans
8219 Insert\SpecialChar menuseparator
8220 Special
8221 \begin_inset space ~
8222 \end_inset
8223
8224 Character\SpecialChar menuseparator
8225 Horizontal
8226 \begin_inset space ~
8227 \end_inset
8228
8229 Fill
8230 \family default
8231 .
8232 \end_layout
8233
8234 \begin_layout Enumerate
8235 Switch to \SpecialChar LaTeX
8236  mode: 
8237 \family sans
8238 M-c
8239 \begin_inset space ~
8240 \end_inset
8241
8242 t
8243 \family default
8244 .
8245 \end_layout
8246
8247 \begin_layout Enumerate
8248 Enter 
8249 \family typewriter
8250
8251 \backslash
8252 parbox[b]{55mm}{
8253 \family default
8254 .
8255  
8256 \series bold
8257 Do not close the brace!
8258 \end_layout
8259
8260 \begin_layout Enumerate
8261 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8262  mode and insert
8263  the closing brace: 
8264 \family sans
8265 M-c
8266 \begin_inset space ~
8267 \end_inset
8268
8269 t
8270 \family default
8271  
8272 \family typewriter
8273 }
8274 \family default
8275 .
8276 \end_layout
8277
8278 \begin_layout Standard
8279 Also, refer to the figures in the example paper.
8280 \end_layout
8281
8282 \begin_layout Subsection
8283 Referee layout
8284 \end_layout
8285
8286 \begin_layout Standard
8287 For submission, the paper has to be formated in a special double-spacing
8288  layout.
8289  For this purpose, you have to give the option 
8290 \family typewriter
8291 referee
8292 \family default
8293  to the documentclass.
8294  This must be done using the extra class options field in the 
8295 \family sans
8296 Document\SpecialChar menuseparator
8297 Settings
8298 \family default
8299  dialog.
8300  Just enter the string 
8301 \family typewriter
8302 referee
8303 \family default
8304  there.
8305 \end_layout
8306
8307 \begin_layout Subsection
8308 The example paper
8309 \end_layout
8310
8311 \begin_layout Standard
8312 The 
8313 \family sans
8314 Examples
8315 \family default
8316  directory contains an example paper written with \SpecialChar LyX
8317 .
8318  It is the example paper from the original macro package, translated to
8319  \SpecialChar LyX
8320 .
8321  Use it for inspiration, and compare the original \SpecialChar LaTeX
8322  code with \SpecialChar LyX
8323  way of writing.
8324 \end_layout
8325
8326 \begin_layout Section
8327 AAS\SpecialChar TeX
8328
8329 \end_layout
8330
8331 \begin_layout Standard
8332 by 
8333 \noun on
8334 Mike Ressler
8335 \end_layout
8336
8337 \begin_layout Subsection
8338 Introduction
8339 \end_layout
8340
8341 \begin_layout Standard
8342 AAS\SpecialChar TeX
8343  is a set of macros produced by the American Astronomical Society to
8344  facilitate electronic manuscript submission to the three journals they
8345  publish: the Astrophysical Journal (including the Letters and Supplement),
8346  the Astronomical Journal, and the Publications of the Astronomical Society
8347  of the Pacific.
8348  \SpecialChar LyX
8349  has proven to be an excellent tool for generating these documents, especially
8350  given its equation, citation, and figure handling capabilities.
8351  \SpecialChar LyX
8352  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8353  is the version described here, or higher.
8354  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8355 2.09 and are fundamentally
8356  incompatible with \SpecialChar LyX
8357 .
8358  The AAS\SpecialChar TeX
8359  package may be downloaded from the AAS\SpecialChar TeX
8360  Web site
8361 \end_layout
8362
8363 \begin_layout Standard
8364 \begin_inset VSpace medskip
8365 \end_inset
8366
8367
8368 \end_layout
8369
8370 \begin_layout Standard
8371 \align center
8372 \begin_inset Flex URL
8373 status collapsed
8374
8375 \begin_layout Plain Layout
8376
8377 http://www.journals.uchicago.edu/AAS/AASTeX
8378 \end_layout
8379
8380 \end_inset
8381
8382
8383 \end_layout
8384
8385 \begin_layout Standard
8386 \begin_inset VSpace medskip
8387 \end_inset
8388
8389
8390 \end_layout
8391
8392 \begin_layout Standard
8393 A complete user guide is contained in that package and you should familiarize
8394  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8395 .
8396  \SpecialChar LyX
8397  will not reduce the need to figure out all the AAS\SpecialChar TeX
8398  commands, it will only
8399  reduce the drudgery of typing everything in.
8400  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8401  document conforms
8402  completely to the requirements of the journal to which you are submitting
8403  your paper.
8404 \end_layout
8405
8406 \begin_layout Subsection
8407 Starting a New Paper
8408 \end_layout
8409
8410 \begin_layout Standard
8411 I strongly suggest that you start with the AAS\SpecialChar TeX
8412  template file.
8413  Click on 
8414 \family sans
8415 File\SpecialChar menuseparator
8416 New from
8417 \family default
8418  
8419 \family sans
8420 Template
8421 \family default
8422 , enter the new file name, then choose the 
8423 \family typewriter
8424 aastex.lyx
8425 \family default
8426  template.
8427  This will show the most common fields found in a manuscript.
8428  Simply overwrite the existing text (including the brackets, 
8429 \family typewriter
8430 <>
8431 \family default
8432 ) with the correct information.
8433  Many of the AAS\SpecialChar TeX
8434  commands and environments can be implemented directly in
8435  \SpecialChar LyX
8436 , but some cannot: most noticeably 
8437 \family typewriter
8438
8439 \backslash
8440 altaffilmark
8441 \family default
8442  and 
8443 \family typewriter
8444
8445 \backslash
8446 altaffiltext
8447 \family default
8448 , which should stick out like a sore thumb if you actually just opened the
8449  template file.
8450  For commands such as these, the \SpecialChar LaTeX
8451  code must be entered directly and marked
8452  as such.
8453  Such commands are referred to as \SpecialChar TeX
8454  code, or Evil Red Text.
8455  I tried to minimize the amount of \SpecialChar TeX
8456  code needed in an AAS\SpecialChar TeX
8457  document, but
8458  there is still a bit more required than any of us would like.
8459 \end_layout
8460
8461 \begin_layout Subsection
8462 Finishing Your Paper
8463 \end_layout
8464
8465 \begin_layout Standard
8466 When the paper is finished to your satisfaction and previews/prints correctly,
8467  there are a few 
8468 \begin_inset Quotes eld
8469 \end_inset
8470
8471 postprocessing
8472 \begin_inset Quotes erd
8473 \end_inset
8474
8475  actions which need to be done before you submit it to the journals.
8476  
8477 \end_layout
8478
8479 \begin_layout Enumerate
8480 Export your paper as a \SpecialChar LaTeX
8481  file (
8482 \family sans
8483 File\SpecialChar menuseparator
8484 Export\SpecialChar menuseparator
8485 \SpecialChar LaTeX
8486
8487 \family default
8488 ).
8489  
8490 \end_layout
8491
8492 \begin_layout Enumerate
8493 Edit the resulting 
8494 \family typewriter
8495 .tex
8496 \family default
8497  file with your favorite text editor
8498 \begin_inset Separator parbreak
8499 \end_inset
8500
8501
8502 \end_layout
8503
8504 \begin_deeper
8505 \begin_layout Enumerate
8506 remove the comment lines before the 
8507 \family typewriter
8508
8509 \backslash
8510 documentclass
8511 \family default
8512  command
8513 \end_layout
8514
8515 \begin_layout Enumerate
8516 remove the 
8517 \family typewriter
8518
8519 \backslash
8520 usepackage...{fontenc}
8521 \family default
8522  line if it appears (usually just after 
8523 \family typewriter
8524
8525 \backslash
8526 documentclass
8527 \family default
8528 }; also remove the 
8529 \family typewriter
8530
8531 \backslash
8532 secnumdepth
8533 \family default
8534  line if it appears.
8535 \end_layout
8536
8537 \begin_layout Enumerate
8538 remove everything between (and including) the 
8539 \family typewriter
8540
8541 \backslash
8542 makeatletter
8543 \family default
8544  and 
8545 \family typewriter
8546
8547 \backslash
8548 makeatother
8549 \family default
8550  commands, except for any commands you specifically put into the \SpecialChar LaTeX
8551  preamble
8552  (which should appear immediately after the 
8553 \begin_inset Quotes eld
8554 \end_inset
8555
8556 User specified \SpecialChar LaTeX
8557  commands
8558 \begin_inset Quotes erd
8559 \end_inset
8560
8561  comment in the 
8562 \family typewriter
8563 .tex
8564 \family default
8565  file).
8566 \end_layout
8567
8568 \end_deeper
8569 \begin_layout Enumerate
8570 Run the resulting file through \SpecialChar LaTeX
8571  to make sure it still processes correctly.
8572 \end_layout
8573
8574 \begin_layout Enumerate
8575 Reread the journal requirements to make sure your filenames and formats
8576  are correct.
8577 \end_layout
8578
8579 \begin_layout Enumerate
8580 Submit it.
8581 \end_layout
8582
8583 \begin_layout Subsection
8584 Comments On Specific Commands
8585 \end_layout
8586
8587 \begin_layout Standard
8588 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
8589  commands: the
8590  AAS\SpecialChar TeX
8591  User Guide (
8592 \family typewriter
8593 aasguide.tex
8594 \family default
8595 ) gives a good description of each.
8596  Thus it's probably easiest for me to go down the list as found in the guide
8597  and offer comments where necessary.
8598  So let's begin \SpecialChar ldots
8599
8600 \end_layout
8601
8602 \begin_layout Subsubsection
8603 Things that work as expected
8604 \end_layout
8605
8606 \begin_layout Standard
8607 Because they work as you might expect, I simply list them and the section
8608  they are found in: 
8609 \family typewriter
8610
8611 \backslash
8612 documentclass
8613 \family default
8614  (2.1.1), 
8615 \family typewriter
8616
8617 \backslash
8618 begin{document}
8619 \family default
8620  (2.2), 
8621 \family typewriter
8622
8623 \backslash
8624 title
8625 \family default
8626  (2.3), 
8627 \family typewriter
8628
8629 \backslash
8630 author
8631 \family default
8632  (2.3), 
8633 \family typewriter
8634
8635 \backslash
8636 affil
8637 \family default
8638  (2.3), 
8639 \family typewriter
8640
8641 \backslash
8642 abstract
8643 \family default
8644  (2.4), 
8645 \family typewriter
8646
8647 \backslash
8648 keywords
8649 \family default
8650  (2.5), 
8651 \family typewriter
8652
8653 \backslash
8654 section
8655 \family default
8656  (2.7), 
8657 \family typewriter
8658
8659 \backslash
8660 subsection
8661 \family default
8662  (2.7), 
8663 \family typewriter
8664
8665 \backslash
8666 subsubsection
8667 \family default
8668  (2.7), 
8669 \family typewriter
8670
8671 \backslash
8672 paragraph
8673 \family default
8674  (2.7), 
8675 \family typewriter
8676
8677 \backslash
8678 facility
8679 \family default
8680  (2.10), 
8681 \family typewriter
8682
8683 \backslash
8684 begin{displaymath}
8685 \family default
8686  (2.12), 
8687 \family typewriter
8688
8689 \backslash
8690 begin{equation}
8691 \family default
8692  (2.12), 
8693 \family typewriter
8694
8695 \backslash
8696 begin{eqnarray}
8697 \family default
8698  (2.12), 
8699 \family typewriter
8700
8701 \backslash
8702 begin{mathletters}
8703 \family default
8704  (2.12), 
8705 \family typewriter
8706
8707 \backslash
8708 begin{thebibliography}
8709 \family default
8710  (2.13.1), 
8711 \family typewriter
8712
8713 \backslash
8714 bibitem
8715 \family default
8716  (2.13.2), all the cite commands and their variations (2.13.2), the generic
8717  graphicx figure commands (2.14.1), 
8718 \family typewriter
8719
8720 \backslash
8721 begin{table}
8722 \family default
8723  (2.15.4), 
8724 \family typewriter
8725
8726 \backslash
8727 begin{tabular}
8728 \family default
8729  (2.15.4), 
8730 \family typewriter
8731
8732 \backslash
8733 caption
8734 \family default
8735  (2.15.4), 
8736 \family typewriter
8737
8738 \backslash
8739 label
8740 \family default
8741  (2.15.4, amongst other places), 
8742 \family typewriter
8743
8744 \backslash
8745 tablerefs
8746 \family default
8747  (2.15.5), 
8748 \family typewriter
8749
8750 \backslash
8751 tablecomments
8752 \family default
8753  (2.15.5), 
8754 \family typewriter
8755
8756 \backslash
8757 url
8758 \family default
8759  (2.17.4), 
8760 \family typewriter
8761
8762 \backslash
8763 end{document}
8764 \family default
8765  (2.18).
8766 \end_layout
8767
8768 \begin_layout Standard
8769 The following style options also work correctly: 
8770 \family typewriter
8771 longabstract
8772 \family default
8773  (2.4), 
8774 \family typewriter
8775 preprint
8776 \family default
8777  (3.2.1), 
8778 \family typewriter
8779 preprint2
8780 \family default
8781  (3.2.2), 
8782 \family typewriter
8783 eqsecnum
8784 \family default
8785  (3.3), 
8786 \family typewriter
8787 flushrt
8788 \family default
8789  (3.4).
8790  Simply put them in the 
8791 \family sans
8792 Options
8793 \family default
8794  box in 
8795 \family sans
8796 Layout\SpecialChar menuseparator
8797 Document
8798 \family default
8799 .
8800 \end_layout
8801
8802 \begin_layout Subsubsection
8803 Things that work, but require more comment
8804 \end_layout
8805
8806 \begin_layout Standard
8807 The following items work, but require a little more discussion:
8808 \end_layout
8809
8810 \begin_layout Itemize
8811 These items are reserved for use by the journal editors, but you can put
8812  them into the \SpecialChar LaTeX
8813  preamble if you feel compelled to do so: 
8814 \family typewriter
8815
8816 \backslash
8817 received
8818 \family default
8819
8820 \family typewriter
8821
8822 \backslash
8823 revised
8824 \family default
8825
8826 \family typewriter
8827
8828 \backslash
8829 accepted
8830 \family default
8831
8832 \family typewriter
8833
8834 \backslash
8835 ccc
8836 \family default
8837
8838 \family typewriter
8839
8840 \backslash
8841 cpright
8842 \family default
8843  (all from 2.1.3)
8844 \end_layout
8845
8846 \begin_layout Itemize
8847 These items may be placed in the \SpecialChar LaTeX
8848  preamble, and are included as blanks in
8849  the template file: 
8850 \family typewriter
8851
8852 \backslash
8853 slugcomment
8854 \family default
8855  (2.1.4), 
8856 \family typewriter
8857
8858 \backslash
8859 shorttitle
8860 \family default
8861  (2.1.5), 
8862 \family typewriter
8863
8864 \backslash
8865 shortauthors
8866 \family default
8867  (2.1.5)
8868 \end_layout
8869
8870 \begin_layout Itemize
8871
8872 \family typewriter
8873
8874 \backslash
8875 email
8876 \family default
8877  (2.3) – can only be used 
8878 \begin_inset Quotes eld
8879 \end_inset
8880
8881 standalone
8882 \begin_inset Quotes erd
8883 \end_inset
8884
8885 , not in the middle of a paragraph.
8886  Use \SpecialChar TeX
8887  code if you need to embed it.
8888 \end_layout
8889
8890 \begin_layout Itemize
8891
8892 \family typewriter
8893
8894 \backslash
8895 and
8896 \family default
8897  (2.3) – will have extra {} after it.
8898  This should not cause an error.
8899 \end_layout
8900
8901 \begin_layout Itemize
8902
8903 \family typewriter
8904
8905 \backslash
8906 notetoeditor
8907 \family default
8908  (2.6) – can only be used 
8909 \begin_inset Quotes eld
8910 \end_inset
8911
8912 standalone
8913 \begin_inset Quotes erd
8914 \end_inset
8915
8916 , not in the middle of a paragraph.
8917  Use \SpecialChar TeX
8918  code if you need to embed it.
8919 \end_layout
8920
8921 \begin_layout Itemize
8922
8923 \family typewriter
8924
8925 \backslash
8926 placetable
8927 \family default
8928  (2.8) – can't insert a cross-reference tag, you must type the tag name by
8929  hand
8930 \end_layout
8931
8932 \begin_layout Itemize
8933
8934 \family typewriter
8935
8936 \backslash
8937 placefigure
8938 \family default
8939  (2.8) – same as for 
8940 \family typewriter
8941
8942 \backslash
8943 placetable
8944 \end_layout
8945
8946 \begin_layout Itemize
8947
8948 \family typewriter
8949
8950 \backslash
8951 acknowledgements
8952 \family default
8953  (2.9) – will have extra {} after it.
8954  This should not cause an error.
8955 \end_layout
8956
8957 \begin_layout Itemize
8958
8959 \family typewriter
8960
8961 \backslash
8962 appendix
8963 \family default
8964  (2.11) – will have extra {} after it.
8965  This should not cause an error.
8966 \end_layout
8967
8968 \begin_layout Itemize
8969
8970 \family typewriter
8971
8972 \backslash
8973 figcaption
8974 \family default
8975  (2.14.2) – you can insert an optional filename argument by placing the cursor
8976  at the beginning of the text and selecting 
8977 \family sans
8978 Insert\SpecialChar menuseparator
8979 Short Title
8980 \family default
8981 .
8982  
8983 \begin_inset Quotes eld
8984 \end_inset
8985
8986 Short Title
8987 \begin_inset Quotes erd
8988 \end_inset
8989
8990  inserts an optional argument of the type needed by 
8991 \family typewriter
8992
8993 \backslash
8994 figcaption
8995 \family default
8996 .
8997  Hopefully it will be renamed someday.
8998 \end_layout
8999
9000 \begin_layout Itemize
9001
9002 \family typewriter
9003
9004 \backslash
9005 objectname
9006 \family default
9007  (2.17.1) – same as 
9008 \family typewriter
9009
9010 \backslash
9011 figcaption
9012 \family default
9013  for the catalog ID optional parameter
9014 \end_layout
9015
9016 \begin_layout Itemize
9017
9018 \family typewriter
9019
9020 \backslash
9021 dataset
9022 \family default
9023  (2.17.1) – same as 
9024 \family typewriter
9025
9026 \backslash
9027 figcaption
9028 \family default
9029  for the catalog ID optional parameter
9030 \end_layout
9031
9032 \begin_layout Subsubsection
9033 Things not implemented, use \SpecialChar TeX
9034  code
9035 \end_layout
9036
9037 \begin_layout Standard
9038
9039 \family typewriter
9040
9041 \backslash
9042 altaffilmark
9043 \family default
9044  (2.3), 
9045 \family typewriter
9046
9047 \backslash
9048 altaffiltext
9049 \family default
9050  (2.3), 
9051 \family typewriter
9052
9053 \backslash
9054 eqnum
9055 \family default
9056  (2.12), 
9057 \family typewriter
9058
9059 \backslash
9060 setcounter{equation}
9061 \family default
9062  (2.12), Journal name abbreviations (2.13.4), 
9063 \family typewriter
9064
9065 \backslash
9066 figurenum
9067 \family default
9068  (2.14.1), 
9069 \family typewriter
9070
9071 \backslash
9072 epsscale
9073 \family default
9074  (2.14.1), 
9075 \family typewriter
9076
9077 \backslash
9078 plotone
9079 \family default
9080  (2.14.1), 
9081 \family typewriter
9082
9083 \backslash
9084 plottwo
9085 \family default
9086  (2.14.1), 
9087 \family typewriter
9088
9089 \backslash
9090 tablenum
9091 \family default
9092  (2.15.4), 
9093 \family typewriter
9094
9095 \backslash
9096 tableline
9097 \family default
9098  (2.15.4, insert it as the first element in the lefthand cell after where
9099  you want it.
9100  Don't use any of \SpecialChar LyX
9101 's rules in the table), 
9102 \family typewriter
9103
9104 \backslash
9105 tablenotemark
9106 \family default
9107  (2.15.5), 
9108 \family typewriter
9109
9110 \backslash
9111 tablenotetext
9112 \family default
9113  (2.15.5), much of Misc (2.17, except 
9114 \family typewriter
9115
9116 \backslash
9117 objectname
9118 \family default
9119
9120 \family typewriter
9121
9122 \backslash
9123 dataset
9124 \family default
9125
9126 \family typewriter
9127
9128 \backslash
9129 url
9130 \family default
9131 , and 
9132 \family typewriter
9133
9134 \backslash
9135 email
9136 \family default
9137 ; see above), 
9138 \family typewriter
9139
9140 \backslash
9141 singlespace
9142 \family default
9143  (3.1), 
9144 \family typewriter
9145
9146 \backslash
9147 doublespace
9148 \family default
9149  (3.1), 
9150 \family typewriter
9151
9152 \backslash
9153 onecolumn
9154 \family default
9155  (3.2), 
9156 \family typewriter
9157
9158 \backslash
9159 twocolumn
9160 \family default
9161  (3.2)
9162 \end_layout
9163
9164 \begin_layout Subsubsection
9165 Things that cannot be implemented
9166 \end_layout
9167
9168 \begin_layout Standard
9169 \SpecialChar ldots
9170  at least in any meaningful sort of way, so I suggest ignoring them.
9171  They are the references environment (2.13.3), and the deluxetable environment
9172  (2.15).
9173  If you really, really need to use deluxetable, I suggest editing it in
9174  a separate file with a text editor, then using 
9175 \family sans
9176 Insert\SpecialChar menuseparator
9177 Child
9178 \begin_inset space ~
9179 \end_inset
9180
9181 Document
9182 \family default
9183  to include it in your \SpecialChar LyX
9184  document.
9185  See the 
9186 \family typewriter
9187 aas_sample.lyx
9188 \family default
9189  file to see an example of this.
9190 \end_layout
9191
9192 \begin_layout Subsection
9193 FAQs, Tips, Tricks, and Other Ruminations
9194 \end_layout
9195
9196 \begin_layout Subsubsection
9197 Getting \SpecialChar LyX
9198  and AAS\SpecialChar TeX
9199  to cooperate
9200 \end_layout
9201
9202 \begin_layout Standard
9203 It can be a bit tricky to get \SpecialChar LyX
9204  to recognize a new layout and document class.
9205  When all else fails, do this:
9206 \end_layout
9207
9208 \begin_layout Enumerate
9209 Make certain that \SpecialChar LaTeX
9210  can find AAS\SpecialChar TeX
9211 .
9212  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9213  distribution into a
9214  directory completely unrelated to \SpecialChar LaTeX
9215  or AAS\SpecialChar TeX
9216  and run \SpecialChar LaTeX
9217  on 
9218 \family typewriter
9219 sample.tex
9220 \family default
9221 .
9222 \end_layout
9223
9224 \begin_layout Enumerate
9225 Make certain that 
9226 \family typewriter
9227 aastex.layout
9228 \family default
9229  appears in \SpecialChar LyX
9230 's 
9231 \family typewriter
9232 layouts
9233 \family default
9234  folder
9235 \end_layout
9236
9237 \begin_layout Enumerate
9238 Rerun 
9239 \family sans
9240 Tools\SpecialChar menuseparator
9241 Reconfigure
9242 \family default
9243  in \SpecialChar LyX
9244 , then restart \SpecialChar LyX
9245 .
9246 \end_layout
9247
9248 \begin_layout Enumerate
9249 Open a regular new file, not from a template.
9250  Does AAS\SpecialChar TeX
9251  appear in the class list in 
9252 \family sans
9253 Document\SpecialChar menuseparator
9254 Settings
9255 \family default
9256 ?
9257 \end_layout
9258
9259 \begin_layout Standard
9260 If you get a warning from an existing AAS\SpecialChar TeX
9261  document about not being able
9262  to find the AAS\SpecialChar TeX
9263  layout or a message about 
9264 \begin_inset Quotes eld
9265 \end_inset
9266
9267 You should not mix title layouts with normal ones
9268 \begin_inset Quotes erd
9269 \end_inset
9270
9271 , things haven't been installed correctly.
9272 \end_layout
9273
9274 \begin_layout Subsubsection
9275 \SpecialChar LaTeX
9276  error processing a table 
9277 \end_layout
9278
9279 \begin_layout Standard
9280 \SpecialChar LyX
9281 , by default, attempts to center the table caption/title.
9282  This seems to produce a bad interaction in AAS\SpecialChar TeX
9283  so you should click somewhere
9284  in the caption/title, then select 
9285 \family sans
9286 Edit\SpecialChar menuseparator
9287 Paragraph
9288 \begin_inset space ~
9289 \end_inset
9290
9291 Settings
9292 \family default
9293 , then set the 
9294 \family sans
9295 Alignment
9296 \family default
9297  to 
9298 \family sans
9299 Block
9300 \family default
9301 .
9302  This took care of it for me.
9303 \end_layout
9304
9305 \begin_layout Subsubsection
9306 References
9307 \end_layout
9308
9309 \begin_layout Standard
9310 A couple of things: 1) I have noticed some funny spacing in the reference
9311  entries in the text.
9312  When you enter the bibliography item data, make sure their is 
9313 \emph on
9314 no
9315 \emph default
9316  space between the last author and the parenthesis setting off the year;
9317  
9318 \emph on
9319 e.
9320 \begin_inset space \thinspace{}
9321 \end_inset
9322
9323 g.
9324 \begin_inset space \space{}
9325 \end_inset
9326
9327
9328 \emph default
9329 type 
9330 \family typewriter
9331 Ressler(1992)
9332 \family default
9333 , not 
9334 \family typewriter
9335 Ressler (1992)
9336 \family default
9337 .
9338  2) Entering the references at all is not obvious.
9339  The easiest thing is to start typing your first reference at the end of
9340  the document, then mark it as type 
9341 \family sans
9342 References
9343 \family default
9344 .
9345  That will put a small gray box in front of what you just typed.
9346  Click on the box to fill in the rest of the information.
9347  For new references, go to the end of an existing reference and press return.
9348  That will create a new line with its own box, etc.
9349 \end_layout
9350
9351 \begin_layout Subsubsection
9352 Including EPS files
9353 \end_layout
9354
9355 \begin_layout Standard
9356 Even though AAS\SpecialChar TeX
9357  provides its own figure commands (
9358 \family typewriter
9359
9360 \backslash
9361 plotone
9362 \family default
9363 , for example), I much prefer \SpecialChar LaTeX
9364 's standard figure commands (with the default
9365  graphicx).
9366  You can insert the 
9367 \family typewriter
9368
9369 \backslash
9370 plotone
9371 \family default
9372 , etc.
9373 \begin_inset space ~
9374 \end_inset
9375
9376 commands as \SpecialChar TeX
9377  code into a Figure Float box if you desire, but I never have
9378  much luck getting the layout right.
9379  With the standard graphics, \SpecialChar LyX
9380  will insert a 
9381 \family typewriter
9382
9383 \backslash
9384 usepackage{graphicx}
9385 \family default
9386  command into the \SpecialChar LaTeX
9387  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9388  way,
9389  interspersing the figures in the text.
9390  I believe ApJ accepts figures exactly this way now; AJ might still use
9391  the 
9392 \begin_inset Quotes eld
9393 \end_inset
9394
9395 stack everything at the end
9396 \begin_inset Quotes erd
9397 \end_inset
9398
9399  technique.
9400 \end_layout
9401
9402 \begin_layout Subsubsection
9403 Things I could have done, but didn't
9404 \end_layout
9405
9406 \begin_layout Standard
9407 There are a few 
9408 \begin_inset Quotes eld
9409 \end_inset
9410
9411 pretty
9412 \begin_inset Quotes erd
9413 \end_inset
9414
9415  things I could have implemented, but chose not to.
9416  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9417  window,
9418  even though it is double-spaced in the paper manuscript.
9419  Also, I chose not to make separate layouts for the preprint and preprint2
9420  styles.
9421  Since I assume you will spend most of your time in the plain manuscript
9422  mode anyway, I decided not to chew up more disk space with this.
9423  
9424 \end_layout
9425
9426 \begin_layout Subsection
9427 Final Caveat
9428 \end_layout
9429
9430 \begin_layout Standard
9431 Your mileage may vary.
9432  I've now had papers published by both ApJ and AJ that have had 98% of the
9433  effort done in \SpecialChar LyX
9434 ; the last 2% was the \SpecialChar LaTeX
9435  post-processing and a few cleanups.
9436  I have had no trouble with the submission process, and I'm sure the journals
9437  were never aware that there might be a difference.
9438  So, go forth and publish!
9439 \end_layout
9440
9441 \begin_layout Section
9442 AMS \SpecialChar LaTeX
9443
9444 \end_layout
9445
9446 \begin_layout Standard
9447 by 
9448 \noun on
9449 David Johnson
9450 \noun default
9451 ; updated by 
9452 \noun on
9453 Richard Heck
9454 \end_layout
9455
9456 \begin_layout Standard
9457 \begin_inset VSpace bigskip
9458 \end_inset
9459
9460
9461 \end_layout
9462
9463 \begin_layout Standard
9464 \noindent
9465 The AMS \SpecialChar LaTeX
9466  layouts are set up to conform to suggested styles for mathematical
9467  papers to be submitted to American Mathematical Society publications.
9468  The layouts are not tailored to a specific journal, but easily can be.
9469  You should refer to the AMS documentation for specific instructions for
9470  each journal (usually it will entail only changing a single line in the
9471  \SpecialChar TeX
9472  output).
9473  That documentation is available on the Web at 
9474 \begin_inset Flex URL
9475 status open
9476
9477 \begin_layout Plain Layout
9478
9479 http://www.ams.org
9480 \end_layout
9481
9482 \end_inset
9483
9484  or by ftp at 
9485 \begin_inset Flex URL
9486 status open
9487
9488 \begin_layout Plain Layout
9489
9490 ftp://ftp.ams.org/pub/tex/amslatex/
9491 \end_layout
9492
9493 \end_inset
9494
9495 .
9496  These layouts are appropriate, and useful, for any mathematical writing.
9497  
9498 \end_layout
9499
9500 \begin_layout Standard
9501 There are two basic AMS \SpecialChar LaTeX
9502  layouts: 
9503 \end_layout
9504
9505 \begin_layout Itemize
9506 amsart: The standard AMS article format.
9507 \end_layout
9508
9509 \begin_layout Itemize
9510 amsbook: the standard AMS book (really, monograph) format.
9511  
9512 \end_layout
9513
9514 \begin_layout Standard
9515 The layouts themselves contain only the minimum necessary to use the AMS
9516  classes.
9517  They do not, in particular, contain any of the `theorem' environments used
9518  for setting theorems, lemmas, and the like.
9519  These are contained, instead, in the 
9520 \begin_inset Flex Code
9521 status collapsed
9522
9523 \begin_layout Plain Layout
9524 Theorems (AMS)
9525 \end_layout
9526
9527 \end_inset
9528
9529  module, which is loaded by default when you select one of the AMS classes.
9530  (It can also be used with other classes and can be removed, if you would
9531  rather use something else.) Less commonly used environments are in the 
9532 \begin_inset Flex Code
9533 status collapsed
9534
9535 \begin_layout Plain Layout
9536 Theorems (AMS-Extended)
9537 \end_layout
9538
9539 \end_inset
9540
9541  module, which must be loaded manually.
9542 \end_layout
9543
9544 \begin_layout Standard
9545 By default, theorems and the like are numbered consecutively throughout
9546  the document, but this may be modified by loading the module 
9547 \begin_inset Flex Code
9548 status collapsed
9549
9550 \begin_layout Plain Layout
9551 Theorems (Order by Section)
9552 \end_layout
9553
9554 \end_inset
9555
9556  or, if you are using 
9557 \begin_inset Flex Code
9558 status collapsed
9559
9560 \begin_layout Plain Layout
9561 book (AMS)
9562 \end_layout
9563
9564 \end_inset
9565
9566 , the module 
9567 \begin_inset Flex Code
9568 status collapsed
9569
9570 \begin_layout Plain Layout
9571 Theorems (Order by Chapter)
9572 \end_layout
9573
9574 \end_inset
9575
9576 .
9577  These will number the results as 
9578 \begin_inset Formula $n.m$
9579 \end_inset
9580
9581 , where the first number refers to the section (or chapter) and the second
9582  refers to the total number of results so far in that section (or chapter).
9583  Many environments are also available unnumbered.
9584  These are indicated by an asterisk at the end.
9585  If you happen to want 
9586 \emph on
9587 only
9588 \emph default
9589  unnumbered results, the module 
9590 \begin_inset Flex Code
9591 status collapsed
9592
9593 \begin_layout Plain Layout
9594 Theorems (Starred)
9595 \end_layout
9596
9597 \end_inset
9598
9599  provides that option.
9600 \end_layout
9601
9602 \begin_layout Standard
9603 Note that these modules do not 
9604 \emph on
9605 have
9606 \emph default
9607  to be used with the AMS classes.
9608  It is perfectly possible to use the 
9609 \begin_inset Flex Code
9610 status collapsed
9611
9612 \begin_layout Plain Layout
9613 Theorems (AMS)
9614 \end_layout
9615
9616 \end_inset
9617
9618  module, and the others mentioned, with other classes, such as 
9619 \begin_inset Flex Code
9620 status collapsed
9621
9622 \begin_layout Plain Layout
9623 article
9624 \end_layout
9625
9626 \end_inset
9627
9628
9629 \begin_inset Flex Code
9630 status collapsed
9631
9632 \begin_layout Plain Layout
9633 report
9634 \end_layout
9635
9636 \end_inset
9637
9638
9639 \begin_inset Flex Code
9640 status collapsed
9641
9642 \begin_layout Plain Layout
9643 book (KOMA-script)
9644 \end_layout
9645
9646 \end_inset
9647
9648 , and so forth.
9649 \end_layout
9650
9651 \begin_layout Subsection
9652 What these layouts provide
9653 \end_layout
9654
9655 \begin_layout Standard
9656 There is a long list of included environments provided by these layouts.
9657  In AMS-\SpecialChar LaTeX
9658 , there is, in fact, an opportunity to define an unlimited variety
9659  of `theorem' environments.
9660  However, the AMS recommends the environments that are available in \SpecialChar LyX
9661 .
9662  
9663 \end_layout
9664
9665 \begin_layout Standard
9666 The following environments—as well as the standard environments, such as
9667  
9668 \begin_inset Flex Noun
9669 status collapsed
9670
9671 \begin_layout Plain Layout
9672 section
9673 \end_layout
9674
9675 \end_inset
9676
9677
9678 \begin_inset Flex Noun
9679 status collapsed
9680
9681 \begin_layout Plain Layout
9682 bibliography
9683 \end_layout
9684
9685 \end_inset
9686
9687
9688 \begin_inset Flex Noun
9689 status collapsed
9690
9691 \begin_layout Plain Layout
9692 title
9693 \end_layout
9694
9695 \end_inset
9696
9697
9698 \begin_inset Flex Noun
9699 status collapsed
9700
9701 \begin_layout Plain Layout
9702 author
9703 \end_layout
9704
9705 \end_inset
9706
9707 , and 
9708 \begin_inset Flex Noun
9709 status collapsed
9710
9711 \begin_layout Plain Layout
9712 date
9713 \end_layout
9714
9715 \end_inset
9716
9717 —are provided by 
9718 \begin_inset Flex Code
9719 status collapsed
9720
9721 \begin_layout Plain Layout
9722 article (AMS)
9723 \end_layout
9724
9725 \end_inset
9726
9727  and 
9728 \begin_inset Flex Code
9729 status collapsed
9730
9731 \begin_layout Plain Layout
9732 book (AMS)
9733 \end_layout
9734
9735 \end_inset
9736
9737 :
9738 \end_layout
9739
9740 \begin_layout Description
9741 Address This should be the author's permanent address.
9742 \end_layout
9743
9744 \begin_layout Description
9745 Current
9746 \begin_inset space ~
9747 \end_inset
9748
9749 Address This should be the author's temporary address at the time of submission,
9750  if different from the Address.
9751 \end_layout
9752
9753 \begin_layout Description
9754 Email Author's e-mail address
9755 \end_layout
9756
9757 \begin_layout Description
9758 URL Author's Web address, if desired.
9759 \end_layout
9760
9761 \begin_layout Description
9762 Keywords Key words or phrases used to identify specific topics discussed
9763  in the paper.
9764 \end_layout
9765
9766 \begin_layout Description
9767 Subjectclass These refer to the AMS Subject Classifications, published and
9768  described in 
9769 \emph on
9770 Mathematical Reviews
9771 \emph default
9772 .
9773  These are also available online at the AMS cites listed above.
9774 \end_layout
9775
9776 \begin_layout Description
9777 Thanks
9778 \end_layout
9779
9780 \begin_layout Description
9781 Dedicatory
9782 \end_layout
9783
9784 \begin_layout Description
9785 Translator
9786 \end_layout
9787
9788 \begin_layout Standard
9789 The following environments are provided by both the 
9790 \begin_inset Flex Code
9791 status collapsed
9792
9793 \begin_layout Plain Layout
9794 Theorems
9795 \end_layout
9796
9797 \end_inset
9798
9799  and 
9800 \begin_inset Flex Code
9801 status collapsed
9802
9803 \begin_layout Plain Layout
9804 Theorems (AMS)
9805 \end_layout
9806
9807 \end_inset
9808
9809  modules, in the latter case in both starred (unnumbered) and unstarred
9810  (numbered) versions.
9811  These same environments are provided only in the starred versions by the
9812  
9813 \begin_inset Flex Code
9814 status collapsed
9815
9816 \begin_layout Plain Layout
9817 Theorems (Starred)
9818 \end_layout
9819
9820 \end_inset
9821
9822  module:
9823 \end_layout
9824
9825 \begin_layout Theorem
9826 This is typically used for the statements of major results.
9827  
9828 \end_layout
9829
9830 \begin_layout Corollary*
9831 This is used for statements which follow fairly directly from previous statement
9832 s.
9833  Again, these can be major results.
9834  
9835 \end_layout
9836
9837 \begin_layout Lemma
9838 These are smaller results needed to prove other statements.
9839 \end_layout
9840
9841 \begin_layout Proposition
9842 These are less major results which (hopefully) add to the general theory
9843  being discussed.
9844 \end_layout
9845
9846 \begin_layout Conjecture
9847 These are statements provided without justification, which the author does
9848  not know how to prove, but which seem to be true (to the author, at least).
9849 \end_layout
9850
9851 \begin_layout Definition*
9852 Guess what this is for.
9853  The font is different for this environment than for the previous ones.
9854  
9855 \end_layout
9856
9857 \begin_layout Example*
9858 Used for examples illustrating proven results.
9859 \end_layout
9860
9861 \begin_layout Problem
9862 It's not really known what this is for.
9863  You should figure it out.
9864 \end_layout
9865
9866 \begin_layout Exercise*
9867 Write a description for this one.
9868 \end_layout
9869
9870 \begin_layout Remark
9871 This environment is also a type of theorem, usually a lesser sort of observation.
9872 \end_layout
9873
9874 \begin_layout Claim*
9875 Often used in the course of giving a proof of a larger result.
9876 \end_layout
9877
9878 \begin_layout Case
9879 Generally, these are used to break up long arguments, using specific instances
9880  of some condition.
9881  
9882 \end_layout
9883
9884 \begin_layout Case
9885 The numbering scheme for cases is on its own, not together with other numbered
9886  statements.
9887  
9888 \end_layout
9889
9890 \begin_layout Proof
9891 At the end of this environment, a QED symbol (usually a square, but it can
9892  vary with different styles) is placed.
9893  If you want to have other environments within this one—for example, Case
9894  environments—and have the QED symbol appear only after them, then the other
9895  environments need to be nested within the proof environment.
9896  See the section 
9897 \emph on
9898 Nesting Environments
9899 \emph default
9900  of the 
9901 \emph on
9902 User's Guide
9903 \emph default
9904  for information on nesting.
9905 \end_layout
9906
9907 \begin_layout Standard
9908 And these environments are provided by 
9909 \begin_inset Flex Code
9910 status collapsed
9911
9912 \begin_layout Plain Layout
9913 Theorems (AMS-Extended)
9914 \end_layout
9915
9916 \end_inset
9917
9918 :
9919 \end_layout
9920
9921 \begin_layout Criterion*
9922 A required condition.
9923 \end_layout
9924
9925 \begin_layout Algorithm*
9926 A general procedure to be used.
9927 \end_layout
9928
9929 \begin_layout Axiom*
9930 This is a property or statement taken as true within the system being discussed.
9931 \end_layout
9932
9933 \begin_layout Condition*
9934 Sometimes used to state a condition assumed within the present context of
9935  discussion.
9936 \end_layout
9937
9938 \begin_layout Note*
9939 Similar to a Remark.
9940 \end_layout
9941
9942 \begin_layout Notation*
9943 Used for the explanation of, yes, notation.
9944 \end_layout
9945
9946 \begin_layout Summary
9947 Do we really need to tell you? 
9948 \end_layout
9949
9950 \begin_layout Acknowledgement*
9951 Acknowledgement.
9952 \end_layout
9953
9954 \begin_layout Conclusion*
9955 Sometimes used at the end of a long train of argument.
9956 \end_layout
9957
9958 \begin_layout Fact
9959 Used in a way similar to Proposition, though perhaps lower on the scale.
9960 \end_layout
9961
9962 \begin_layout Standard
9963 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
9964  and AMS fonts
9965  packages.
9966  They need to be available on your system in order to use these environments.
9967 \end_layout
9968
9969 \begin_layout Section
9970 AGU journals (
9971 \family sans
9972 aguplus
9973 \family default
9974 )
9975 \end_layout
9976
9977 \begin_layout Standard
9978 by 
9979 \shape smallcaps
9980 Martin Vermeer
9981 \end_layout
9982
9983 \begin_layout Subsection
9984 Description
9985 \end_layout
9986
9987 \begin_layout Standard
9988 These are the layout files for some of the journals of the American Geophysical
9989  Society.
9990  It is assumed that you have both the AGU's own class files and AGUplus
9991  installed (everything to be found at
9992 \begin_inset Flex URL
9993 status collapsed
9994
9995 \begin_layout Plain Layout
9996
9997 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
9998 \end_layout
9999
10000 \end_inset
10001
10002 ).
10003 \end_layout
10004
10005 \begin_layout Subsection
10006 New styles
10007 \end_layout
10008
10009 \begin_layout Standard
10010 Redefined are 
10011 \family sans
10012 Paragraph
10013 \family default
10014
10015 \family sans
10016 Paragraph*
10017 \family default
10018 .
10019  They are still called this in the \SpecialChar LyX
10020  GUI, though their \SpecialChar LaTeX
10021  equivalents in the
10022  AGU classes are 
10023 \family sans
10024 Subsubsubsection
10025 \family default
10026  and 
10027 \family sans
10028 Subsubsubsection*
10029 \family default
10030 .
10031 \end_layout
10032
10033 \begin_layout Standard
10034 Newly defined styles are 
10035 \family sans
10036 Left_Header
10037 \family default
10038
10039 \family sans
10040 Right_Header
10041 \family default
10042
10043 \family sans
10044 Received
10045 \family default
10046
10047 \family sans
10048 Revised
10049 \family default
10050
10051 \family sans
10052 Accepted
10053 \family default
10054
10055 \family sans
10056 CCC
10057 \family default
10058
10059 \family sans
10060 PaperId
10061 \family default
10062
10063 \family sans
10064 AuthorAddr
10065 \family default
10066
10067 \family sans
10068 SlugComment
10069 \family default
10070 .
10071  These are mostly manuscript attributes and defined in the AGU class documentati
10072 on.
10073 \end_layout
10074
10075 \begin_layout Standard
10076 I suspect this is still badly incomplete.
10077 \end_layout
10078
10079 \begin_layout Subsection
10080 New floats
10081 \end_layout
10082
10083 \begin_layout Standard
10084
10085 \family sans
10086 Planotable
10087 \family default
10088  and 
10089 \family sans
10090 Plate
10091 \family default
10092 .
10093  We also have a new 
10094 \family sans
10095 Table_Caption
10096 \family default
10097 .
10098 \end_layout
10099
10100 \begin_layout Subsection
10101 Supported journals
10102 \end_layout
10103
10104 \begin_layout Itemize
10105
10106 \emph on
10107 Journal of Geophysical Research
10108 \emph default
10109
10110 \family typewriter
10111 jgrga.layout
10112 \family default
10113  — Martin Vermeer
10114 \end_layout
10115
10116 \begin_layout Standard
10117 Add your own, it isn't so hard! Look at the 
10118 \family typewriter
10119 jgrga.layout
10120 \family default
10121  example and 
10122 \family typewriter
10123 aguplus.inc
10124 \family default
10125 .
10126 \end_layout
10127
10128 \begin_layout Subsection
10129 Bugs and things to remember
10130 \end_layout
10131
10132 \begin_layout Standard
10133 In order to use the new layouts, you must remember to do the following for
10134  a new document:
10135 \end_layout
10136
10137 \begin_layout Enumerate
10138
10139 \emph on
10140 Turn off babel
10141 \emph default
10142 .
10143  This can be done in the 
10144 \family sans
10145 Layout\SpecialChar menuseparator
10146 Document
10147 \family default
10148  or 
10149 \family sans
10150 Document\SpecialChar menuseparator
10151 Settings
10152 \family default
10153  menu item.
10154  (AGU articles are always in English, right? So 
10155 \emph on
10156 don't
10157 \emph default
10158  choose a language.)
10159 \end_layout
10160
10161 \begin_layout Enumerate
10162 Enter 
10163 \family typewriter
10164 jgrga
10165 \family default
10166  into the document's 
10167 \family sans
10168 Extra Options
10169 \family default
10170  field.
10171  (Yes, this is a bug.)
10172 \end_layout
10173
10174 \begin_layout Enumerate
10175 Make sure you use the 
10176 \family typewriter
10177 agu.bst
10178 \family default
10179  bibliography style, by entering 
10180 \family sans
10181 agu
10182 \family default
10183  into the second field of the Bib\SpecialChar TeX
10184  inset.
10185  None of the standard styles will do.
10186 \end_layout
10187
10188 \begin_layout Section
10189 Broadway
10190 \end_layout
10191
10192 \begin_layout Standard
10193 by 
10194 \shape smallcaps
10195 Garst Reese
10196 \end_layout
10197
10198 \begin_layout Subsection
10199 Introduction
10200 \end_layout
10201
10202 \begin_layout Standard
10203 Broadway is for writing plays.
10204  The format is more decorative than Hollywood, and much less standardized.
10205  This format should be suitable for workshops.
10206 \end_layout
10207
10208 \begin_layout Subsection
10209 Special problems
10210 \end_layout
10211
10212 \begin_layout Standard
10213 The same as in Hollywood.
10214 \end_layout
10215
10216 \begin_layout Subsection
10217 Special features
10218 \end_layout
10219
10220 \begin_layout Standard
10221 Insert the 
10222 \family sans
10223 Speaker
10224 \family default
10225  names as labels then cross-reference the label to insert the name.
10226  The cross-reference dialog will show the current cast of characters.
10227 \end_layout
10228
10229 \begin_layout Subsection
10230 Paper size and Margins
10231 \end_layout
10232
10233 \begin_layout Standard
10234 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10235 \end_layout
10236
10237 \begin_layout Subsection
10238 Environments
10239 \end_layout
10240
10241 \begin_layout Standard
10242 The following environments are available.
10243  You can use broadway.bind to get the bind keys shown at the right.
10244 \end_layout
10245
10246 \begin_layout Itemize
10247
10248 \family sans
10249 Standard
10250 \begin_inset Newline newline
10251 \end_inset
10252
10253
10254 \family default
10255 You should not have to use this, but it is here for anything that does not
10256  fit otherwise.
10257 \end_layout
10258
10259 \begin_layout Itemize
10260
10261 \family sans
10262 Narrative
10263 \begin_inset space \hfill{}
10264 \end_inset
10265
10266 M-z n
10267 \begin_inset Newline newline
10268 \end_inset
10269
10270
10271 \family default
10272 Used to describe stage setting and the action.
10273  First use of speaker names in all CAPs.
10274 \end_layout
10275
10276 \begin_layout Itemize
10277
10278 \family sans
10279 ACT
10280 \begin_inset space \hfill{}
10281 \end_inset
10282
10283 M-z a
10284 \begin_inset Newline newline
10285 \end_inset
10286
10287
10288 \family default
10289 Automatically numbered.
10290  On screen it will be arabic, but will print as Roman.
10291 \end_layout
10292
10293 \begin_layout Itemize
10294
10295 \family sans
10296 ACT*
10297 \begin_inset space \hfill{}
10298 \end_inset
10299
10300 M-z S at
10301 \begin_inset Newline newline
10302 \end_inset
10303
10304
10305 \family default
10306 Subtitle for 
10307 \family sans
10308 ACT.
10309
10310 \family default
10311  It is just centered text.
10312 \end_layout
10313
10314 \begin_layout Itemize
10315
10316 \family sans
10317 SCENE
10318 \begin_inset space \hfill{}
10319 \end_inset
10320
10321 M-z S-S
10322 \begin_inset Newline newline
10323 \end_inset
10324
10325
10326 \family default
10327 Not automatically numbered.
10328  You supply the number.
10329  This is because I couldn't figure out how.
10330 \end_layout
10331
10332 \begin_layout Itemize
10333
10334 \family sans
10335 AT_RISE:
10336 \begin_inset space \hfill{}
10337 \end_inset
10338
10339 M-z S-R
10340 \begin_inset Newline newline
10341 \end_inset
10342
10343
10344 \family default
10345 A special case of Narrative to describe the setting and action as the curtain
10346  rises.
10347 \end_layout
10348
10349 \begin_layout Itemize
10350
10351 \family sans
10352 Speaker
10353 \begin_inset space \hfill{}
10354 \end_inset
10355
10356 M-z s
10357 \begin_inset Newline newline
10358 \end_inset
10359
10360
10361 \family default
10362 The speaker's (actor's) title, centered in all CAPS.
10363 \end_layout
10364
10365 \begin_layout Itemize
10366
10367 \family sans
10368 Parenthetical
10369 \begin_inset space \hfill{}
10370 \end_inset
10371
10372 M-z p
10373 \begin_inset Newline newline
10374 \end_inset
10375
10376
10377 \family default
10378 Instructions to the speaker.
10379  The parentheses are automatically inserted.
10380  The ( will appear on screen, but both will be in the printed play.
10381  This environment is only used within 
10382 \family sans
10383 Dialogue
10384 \family default
10385 .
10386 \end_layout
10387
10388 \begin_layout Itemize
10389
10390 \family sans
10391 Dialogue
10392 \begin_inset space \hfill{}
10393 \end_inset
10394
10395 M-z d
10396 \begin_inset Newline newline
10397 \end_inset
10398
10399
10400 \family default
10401 What the Speaker says.
10402 \end_layout
10403
10404 \begin_layout Itemize
10405
10406 \family sans
10407 CURTAIN
10408 \begin_inset space \hfill{}
10409 \end_inset
10410
10411 M-z S-C
10412 \begin_inset Newline newline
10413 \end_inset
10414
10415
10416 \family default
10417 The curtain comes down.
10418 \end_layout
10419
10420 \begin_layout Itemize
10421
10422 \family sans
10423 Title
10424 \begin_inset space \hfill{}
10425 \end_inset
10426
10427 M-z S-T
10428 \end_layout
10429
10430 \begin_layout Itemize
10431
10432 \family sans
10433 Author
10434 \begin_inset space \hfill{}
10435 \end_inset
10436
10437 M-z S-A
10438 \end_layout
10439
10440 \begin_layout Itemize
10441
10442 \family sans
10443 Right_Address
10444 \begin_inset space \hfill{}
10445 \end_inset
10446
10447 M-z r
10448 \end_layout
10449
10450 \begin_layout Standard
10451 Hello there.
10452 \end_layout
10453
10454 \begin_layout Section
10455 Dinbrief
10456 \end_layout
10457
10458 \begin_layout Standard
10459 The document class 
10460 \family sans
10461 dinbrief
10462 \family default
10463  can be used to type letters according to German conventions.
10464  A template file is included in 
10465 \family typewriter
10466 .../lyx/share/templates
10467 \family default
10468  for you to use as a starting point.
10469 \end_layout
10470
10471 \begin_layout Section
10472 EGS journals (
10473 \family sans
10474 egs
10475 \family default
10476 )
10477 \end_layout
10478
10479 \begin_layout Standard
10480 by 
10481 \shape smallcaps
10482 Martin Vermeer
10483 \end_layout
10484
10485 \begin_layout Subsection
10486 Description
10487 \end_layout
10488
10489 \begin_layout Standard
10490 This is the layout file for the European Geophysical Society journals.
10491  The needed 
10492 \family typewriter
10493 egs.cls
10494 \family default
10495  can be downloaded from the web site of the EGS under 
10496 \begin_inset Flex URL
10497 status collapsed
10498
10499 \begin_layout Plain Layout
10500
10501 www.copernicus.org
10502 \end_layout
10503
10504 \end_inset
10505
10506 .
10507 \end_layout
10508
10509 \begin_layout Subsection
10510 New styles
10511 \end_layout
10512
10513 \begin_layout Standard
10514
10515 \family sans
10516 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10517  Accepted
10518 \family default
10519
10520 \family sans
10521 Offsets
10522 \family default
10523 .
10524  The current layout file is unfortunately very unmodular and would benefit
10525  from using the various 
10526 \family typewriter
10527 std*.inc
10528 \family default
10529  file inclusions.
10530 \end_layout
10531
10532 \begin_layout Section
10533 Elsevier Journals
10534 \end_layout
10535
10536 \begin_layout Standard
10537 See the \SpecialChar LyX
10538  template file 
10539 \family typewriter
10540 elsarticle.lyx
10541 \family default
10542 .
10543  It contains all infos you need.
10544 \end_layout
10545
10546 \begin_layout Section
10547 Foils [aka 
10548 \family sans
10549 Foil\SpecialChar TeX
10550
10551 \family default
10552 ]
10553 \begin_inset CommandInset label
10554 LatexCommand label
10555 name "sec:foiltex"
10556
10557 \end_inset
10558
10559
10560 \end_layout
10561
10562 \begin_layout Standard
10563 by 
10564 \noun on
10565 Allan Rae
10566 \end_layout
10567
10568 \begin_layout Subsection
10569 Introduction
10570 \end_layout
10571
10572 \begin_layout Standard
10573 This section describes how to use \SpecialChar LyX
10574  to make slides for overhead projectors.
10575  There are two document classes that can do this: the default slides class
10576  and the 
10577 \family sans
10578 Foil\SpecialChar TeX
10579
10580 \family default
10581  slides class.
10582  This section documents the latter.
10583 \end_layout
10584
10585 \begin_layout Standard
10586 I'm going to say this again, nice and clear, so that there's no misunderstanding
10587 :
10588 \end_layout
10589
10590 \begin_layout Standard
10591 \begin_inset VSpace bigskip
10592 \end_inset
10593
10594
10595 \end_layout
10596
10597 \begin_layout Standard
10598 \align center
10599
10600 \size large
10601 This section documents the class 
10602 \begin_inset Quotes eld
10603 \end_inset
10604
10605
10606 \family sans
10607 slides (FoilTeX)
10608 \family default
10609
10610 \begin_inset Quotes erd
10611 \end_inset
10612
10613  
10614 \emph on
10615 only.
10616 \end_layout
10617
10618 \begin_layout Standard
10619 \begin_inset VSpace bigskip
10620 \end_inset
10621
10622
10623 \end_layout
10624
10625 \begin_layout Standard
10626 If you're looking for the documentation for 
10627 \begin_inset Quotes eld
10628 \end_inset
10629
10630
10631 \family sans
10632 slides (default)
10633 \family default
10634
10635 \begin_inset Quotes erd
10636 \end_inset
10637
10638 , check out section
10639 \begin_inset space ~
10640 \end_inset
10641
10642
10643 \begin_inset CommandInset ref
10644 LatexCommand ref
10645 reference "sec:slitex"
10646
10647 \end_inset
10648
10649 .
10650  If your machine doesn't have the 
10651 \family sans
10652 foils
10653 \family default
10654  class [
10655 \begin_inset Quotes eld
10656 \end_inset
10657
10658
10659 \family sans
10660 slides (FoilTeX)
10661 \family default
10662
10663 \begin_inset Quotes erd
10664 \end_inset
10665
10666 ] installed, you'll probably have to use the default 
10667 \family sans
10668 slides
10669 \family default
10670  class, which isn't quite as good as 
10671 \family sans
10672 foils.
10673 \end_layout
10674
10675 \begin_layout Standard
10676 The 
10677 \family sans
10678 foils
10679 \family default
10680  class is designed for use with version 2.1 of the 
10681 \family sans
10682 foils.cls
10683 \family default
10684  \SpecialChar LaTeX
10685  class file which is now an integral part of \SpecialChar LaTeX2e
10686 .
10687 \end_layout
10688
10689 \begin_layout Subsection
10690 Getting Started
10691 \end_layout
10692
10693 \begin_layout Standard
10694 Obviously, to use this document class, you need to select 
10695 \begin_inset Quotes eld
10696 \end_inset
10697
10698
10699 \family sans
10700 slides (FoilTeX)
10701 \family default
10702
10703 \begin_inset Quotes erd
10704 \end_inset
10705
10706  from the 
10707 \family sans
10708 Class
10709 \family default
10710  entry in the 
10711 \family sans
10712 Document
10713 \begin_inset space ~
10714 \end_inset
10715
10716 Layout
10717 \family default
10718  dialog.
10719  There are some settings in the 
10720 \family sans
10721 Document
10722 \begin_inset space ~
10723 \end_inset
10724
10725 Layout
10726 \family default
10727  dialog that you should know about that are specific to this class:
10728 \end_layout
10729
10730 \begin_layout Itemize
10731 Don't change the options 
10732 \family sans
10733 Sides
10734 \family default
10735  and 
10736 \family sans
10737 Columns
10738 \family default
10739  on the 
10740 \family sans
10741 Document
10742 \begin_inset space ~
10743 \end_inset
10744
10745 Layout
10746 \family default
10747  dialog.
10748  They're ignored by the 
10749 \family sans
10750 foils
10751 \family default
10752  class.
10753 \end_layout
10754
10755 \begin_layout Itemize
10756 The default font size is 20
10757 \begin_inset space \thinspace{}
10758 \end_inset
10759
10760 pt with the other options being 17
10761 \begin_inset space \thinspace{}
10762 \end_inset
10763
10764 pt, 25
10765 \begin_inset space \thinspace{}
10766 \end_inset
10767
10768 pt and 30
10769 \begin_inset space \thinspace{}
10770 \end_inset
10771
10772 pt.
10773 \end_layout
10774
10775 \begin_layout Itemize
10776 The default font is 
10777 \family sans
10778 sans
10779 \family default
10780  
10781 \family sans
10782 serif
10783 \family default
10784  but all math equations are still typeset in the usual roman font.
10785 \end_layout
10786
10787 \begin_layout Itemize
10788
10789 \family sans
10790 Foil\SpecialChar TeX
10791
10792 \family default
10793  supports A4 and Letter paper sizes as well as a special size for working
10794  with 35
10795 \begin_inset space \thinspace{}
10796 \end_inset
10797
10798 mm slides.
10799  It doesn't support A5, B5, legal or executive paper sizes.
10800 \end_layout
10801
10802 \begin_layout Itemize
10803 Don't bother changing the 
10804 \family sans
10805 Float Placement
10806 \family default
10807  settings because they are ignored anyway.
10808  All floats appear where they are defined in the text.
10809 \end_layout
10810
10811 \begin_layout Itemize
10812 The 
10813 \family sans
10814 Pagestyle
10815 \family default
10816  setting behaves a bit differently for this class.
10817  
10818 \family sans
10819 Foil\SpecialChar TeX
10820
10821 \family default
10822  provides extensive footer and header capabilities including a user-defined
10823  logo.
10824  See section
10825 \begin_inset space ~
10826 \end_inset
10827
10828
10829 \begin_inset CommandInset ref
10830 LatexCommand ref
10831 reference "sec:foilfoot"
10832
10833 \end_inset
10834
10835  for more details.
10836  The title page is treated differently to all other pages in the document
10837  and is 
10838 \emph on
10839 always
10840 \emph default
10841  unnumbered and 
10842 \emph on
10843 always
10844 \emph default
10845  has the logo centered at the bottom of the page (if one is defined).
10846  The possible page style choices and what they do are as follows:
10847 \begin_inset Separator parbreak
10848 \end_inset
10849
10850
10851 \end_layout
10852
10853 \begin_deeper
10854 \begin_layout Labeling
10855 \labelwidthstring MMMMMMM
10856
10857 \family sans
10858 \series bold
10859 empty
10860 \family default
10861 \series default
10862  The final output contains no page numbers, or other headers or footers
10863  (except footnotes of course).
10864  
10865 \end_layout
10866
10867 \begin_layout Labeling
10868 \labelwidthstring MMMMMMM
10869
10870 \family sans
10871 \series bold
10872 plain
10873 \family default
10874 \series default
10875  The final output contains page numbers centered at the bottom of the page.
10876  No other headings or footers (other than footnotes).
10877 \end_layout
10878
10879 \begin_layout Labeling
10880 \labelwidthstring MMMMMMM
10881
10882 \series bold
10883 foilheadings
10884 \series default
10885  Page numbers in lower right corner.
10886  Additional headers and footers are also shown.
10887  This is also the default.
10888 \end_layout
10889
10890 \begin_layout Labeling
10891 \labelwidthstring MMMMMMM
10892
10893 \series bold
10894 fancy
10895 \series default
10896  Gives you access to the 
10897 \family sans
10898 fancyheadings
10899 \family default
10900  package although its use with 
10901 \family sans
10902 Foil\SpecialChar TeX
10903
10904 \family default
10905  is discouraged by the writer of the 
10906 \family sans
10907 Foil\SpecialChar TeX
10908
10909 \family default
10910  package because of some potential page layout clashes.
10911 \end_layout
10912
10913 \end_deeper
10914 \begin_layout Subsubsection
10915 Extra Options
10916 \end_layout
10917
10918 \begin_layout Standard
10919 The following options may be used in the extra class options in the 
10920 \family sans
10921 Document\SpecialChar menuseparator
10922 Settings
10923 \family default
10924  dialog.
10925 \end_layout
10926
10927 \begin_layout Labeling
10928 \labelwidthstring MMMMMMx
10929
10930 \series bold
10931 35mmSlide
10932 \series default
10933  This sets up the page layout for 7.33
10934 \begin_inset space \thinspace{}
10935 \end_inset
10936
10937 in by 11
10938 \begin_inset space \thinspace{}
10939 \end_inset
10940
10941 in paper, which is about the same aspect ratio as a 35
10942 \begin_inset space \thinspace{}
10943 \end_inset
10944
10945 mm slide, making it a bit easier to work with this medium.
10946 \end_layout
10947
10948 \begin_layout Labeling
10949 \labelwidthstring MMMMMMx
10950
10951 \series bold
10952 headrule
10953 \series default
10954  Places a rule across the page below the header on every page except the
10955  title page.
10956 \end_layout
10957
10958 \begin_layout Labeling
10959 \labelwidthstring MMMMMMx
10960
10961 \series bold
10962 footrule
10963 \series default
10964  Places a rule across the page above the footer on every page except the
10965  title page.
10966 \end_layout
10967
10968 \begin_layout Labeling
10969 \labelwidthstring MMMMMMx
10970
10971 \series bold
10972 dvips
10973 \series default
10974  This is automatically set each time you create a new 
10975 \family sans
10976 foils
10977 \family default
10978  document.
10979  This option tells 
10980 \family sans
10981 Foil\SpecialChar TeX
10982
10983 \family default
10984  to use the dvips driver to rotate those pages that are set as landscape
10985  foils.
10986 \end_layout
10987
10988 \begin_layout Labeling
10989 \labelwidthstring MMMMMMx
10990
10991 \series bold
10992 landscape
10993 \series default
10994  Simply changes the page dimensions to those of a landscape page but doesn't
10995  do any rotation.
10996  Thus if you use this option you need to use an external program to rotate
10997  each page or feed your paper through your printer as landscape.
10998  Note that this option effectively reverses the roles of the 
10999 \family sans
11000 Foilhead
11001 \family default
11002  and 
11003 \family sans
11004 Rotatefoilhead
11005 \family default
11006  environments (don't worry these are described in the next section).
11007 \end_layout
11008
11009 \begin_layout Labeling
11010 \labelwidthstring MMMMMMx
11011
11012 \series bold
11013 leqno
11014 \series default
11015  Equation numbers on the left.
11016 \end_layout
11017
11018 \begin_layout Labeling
11019 \labelwidthstring MMMMMMx
11020
11021 \series bold
11022 fleqn
11023 \series default
11024  Flush-left equations.
11025 \end_layout
11026
11027 \begin_layout Subsection
11028 Supported Environments
11029 \end_layout
11030
11031 \begin_layout Standard
11032 Most of the environments commonly supported in other classes are also supported
11033  by the 
11034 \family sans
11035 foils
11036 \family default
11037  class.
11038  There are several additional environments provided by 
11039 \family sans
11040 Foil\SpecialChar TeX
11041
11042 \family default
11043  as well as a couple added by \SpecialChar LyX
11044 .
11045  The following environments are shared with other classes:
11046 \end_layout
11047
11048 \begin_layout Standard
11049 \begin_inset Flex Multiple Columns
11050 status open
11051
11052 \begin_layout Itemize
11053
11054 \family sans
11055 Standard
11056 \end_layout
11057
11058 \begin_layout Itemize
11059
11060 \family sans
11061 Itemize
11062 \end_layout
11063
11064 \begin_layout Itemize
11065
11066 \family sans
11067 Enumerate
11068 \end_layout
11069
11070 \begin_layout Itemize
11071
11072 \family sans
11073 Description
11074 \end_layout
11075
11076 \begin_layout Itemize
11077
11078 \family sans
11079 List
11080 \end_layout
11081
11082 \begin_layout Itemize
11083
11084 \family sans
11085 \SpecialChar LyX
11086 -Code
11087 \end_layout
11088
11089 \begin_layout Itemize
11090
11091 \family sans
11092 Verse
11093 \end_layout
11094
11095 \begin_layout Itemize
11096
11097 \family sans
11098 Quote
11099 \end_layout
11100
11101 \begin_layout Itemize
11102
11103 \family sans
11104 Quotation
11105 \end_layout
11106
11107 \begin_layout Itemize
11108
11109 \family sans
11110 Title
11111 \end_layout
11112
11113 \begin_layout Itemize
11114
11115 \family sans
11116 Author
11117 \end_layout
11118
11119 \begin_layout Itemize
11120
11121 \family sans
11122 Date
11123 \end_layout
11124
11125 \begin_layout Itemize
11126
11127 \family sans
11128 Abstract
11129 \end_layout
11130
11131 \begin_layout Itemize
11132
11133 \family sans
11134 Bibliography
11135 \end_layout
11136
11137 \begin_layout Itemize
11138
11139 \family sans
11140 Address
11141 \end_layout
11142
11143 \begin_layout Itemize
11144
11145 \family sans
11146 RightAddress
11147 \end_layout
11148
11149 \begin_layout Itemize
11150
11151 \family sans
11152 Caption
11153 \end_layout
11154
11155 \begin_layout Itemize
11156
11157 \family sans
11158 Comment
11159 \end_layout
11160
11161 \end_inset
11162
11163
11164 \end_layout
11165
11166 \begin_layout Standard
11167 That is, all the major environments apart from the sectioning environments.
11168  Since foils are essentially self-contained sections, with a title and body,
11169  
11170 \family sans
11171 Foil\SpecialChar TeX
11172
11173 \family default
11174  provides specific commands for starting new foils and these are:
11175 \end_layout
11176
11177 \begin_layout Itemize
11178
11179 \family sans
11180 Foilhead
11181 \end_layout
11182
11183 \begin_layout Itemize
11184
11185 \family sans
11186 Rotatefoilhead
11187 \end_layout
11188
11189 \begin_layout Standard
11190 \SpecialChar LyX
11191  also provides slightly modified versions of these two environments called:
11192 \end_layout
11193
11194 \begin_layout Itemize
11195
11196 \family sans
11197 ShortFoilhead
11198 \end_layout
11199
11200 \begin_layout Itemize
11201
11202 \family sans
11203 ShortRotatefoilhead
11204 \end_layout
11205
11206 \begin_layout Standard
11207 and the differences will be explained in the next section.
11208 \end_layout
11209
11210 \begin_layout Standard
11211 Since foils are often used in presenting ideas or new theorems and such
11212  
11213 \family sans
11214 Foil\SpecialChar TeX
11215
11216 \family default
11217  also provides a comprehensive box of goodies for presenting them:
11218 \end_layout
11219
11220 \begin_layout Standard
11221 \begin_inset Flex Multiple Columns
11222 status open
11223
11224 \begin_layout Itemize
11225
11226 \family sans
11227 Theorem
11228 \end_layout
11229
11230 \begin_layout Itemize
11231
11232 \family sans
11233 Lemma
11234 \end_layout
11235
11236 \begin_layout Itemize
11237
11238 \family sans
11239 Corollary
11240 \end_layout
11241
11242 \begin_layout Itemize
11243
11244 \family sans
11245 Proposition
11246 \end_layout
11247
11248 \begin_layout Itemize
11249
11250 \family sans
11251 Definition
11252 \end_layout
11253
11254 \begin_layout Itemize
11255
11256 \family sans
11257 Proof
11258 \end_layout
11259
11260 \begin_layout Itemize
11261
11262 \family sans
11263 Theorem*
11264 \end_layout
11265
11266 \begin_layout Itemize
11267
11268 \family sans
11269 Lemma*
11270 \end_layout
11271
11272 \begin_layout Itemize
11273
11274 \family sans
11275 Corollary*
11276 \end_layout
11277
11278 \begin_layout Itemize
11279
11280 \family sans
11281 Proposition*
11282 \end_layout
11283
11284 \begin_layout Itemize
11285
11286 \family sans
11287 Definition*
11288 \end_layout
11289
11290 \end_inset
11291
11292
11293 \end_layout
11294
11295 \begin_layout Standard
11296 The starred versions are unnumbered while the unstarred versions are numbered.
11297  There are also two list environments added by \SpecialChar LyX
11298  and these are:
11299 \end_layout
11300
11301 \begin_layout Itemize
11302
11303 \family sans
11304 TickList
11305 \end_layout
11306
11307 \begin_layout Itemize
11308
11309 \family sans
11310 CrossList
11311 \end_layout
11312
11313 \begin_layout Standard
11314
11315 \family sans
11316 Foil\SpecialChar TeX
11317
11318 \family default
11319  provides some powerful header and footer capabilities that are best set
11320  in the preamble although they may be set at any point in a document.
11321  If you want to change these settings in your document the best place to
11322  do so is at the very top of a foil, i.
11323 \begin_inset space \thinspace{}
11324 \end_inset
11325
11326 e.
11327 \emph on
11328
11329 \begin_inset space \space{}
11330 \end_inset
11331
11332
11333 \emph default
11334 straight after the foilhead.
11335 \end_layout
11336
11337 \begin_layout Standard
11338 For this purpose, the following command styles are provided [
11339 \shape smallcaps
11340 Martin Vermeer
11341 \shape default
11342 ]:
11343 \end_layout
11344
11345 \begin_layout Standard
11346 \begin_inset Flex Multiple Columns
11347 status open
11348
11349 \begin_layout Itemize
11350
11351 \family sans
11352 My
11353 \begin_inset space ~
11354 \end_inset
11355
11356 Logo
11357 \end_layout
11358
11359 \begin_layout Itemize
11360
11361 \family sans
11362 Restriction
11363 \end_layout
11364
11365 \begin_layout Itemize
11366
11367 \family sans
11368 Right
11369 \begin_inset space ~
11370 \end_inset
11371
11372 Footer
11373 \end_layout
11374
11375 \begin_layout Itemize
11376
11377 \family sans
11378 Right
11379 \begin_inset space ~
11380 \end_inset
11381
11382 Header
11383 \end_layout
11384
11385 \begin_layout Itemize
11386
11387 \family sans
11388 Left
11389 \begin_inset space ~
11390 \end_inset
11391
11392 Header
11393 \family default
11394
11395 \begin_inset Separator parbreak
11396 \end_inset
11397
11398
11399 \end_layout
11400
11401 \begin_deeper
11402 \begin_layout Plain Layout
11403 \begin_inset space ~
11404 \end_inset
11405
11406
11407 \end_layout
11408
11409 \end_deeper
11410 \end_inset
11411
11412
11413 \end_layout
11414
11415 \begin_layout Standard
11416 There are also a few commands provided by 
11417 \family sans
11418 Foil\SpecialChar TeX
11419
11420 \family default
11421  that aren't directly supported by \SpecialChar LyX
11422  but I'll tell you what they do and how
11423  to use them in section
11424 \begin_inset space ~
11425 \end_inset
11426
11427
11428 \begin_inset CommandInset ref
11429 LatexCommand ref
11430 reference "sec:unsuppfoils"
11431
11432 \end_inset
11433
11434 .
11435 \end_layout
11436
11437 \begin_layout Subsection
11438 Building a Set of Foils
11439 \end_layout
11440
11441 \begin_layout Standard
11442 This section will give a simple introduction to using the different environments
11443  to build a set of foils.
11444  If you want to see an example set of foils, take a look at the 
11445 \family typewriter
11446 Foils.lyx
11447 \family default
11448  file you find in \SpecialChar LyX
11449 's 
11450 \family typewriter
11451 examples
11452 \family default
11453  folder.
11454 \end_layout
11455
11456 \begin_layout Subsubsection
11457 Give It a Title Page
11458 \end_layout
11459
11460 \begin_layout Standard
11461 Unlike other classes that provide 
11462 \family sans
11463 Title
11464 \family default
11465
11466 \family sans
11467 Author
11468 \family default
11469
11470 \family sans
11471 Date
11472 \family default
11473  and 
11474 \family sans
11475 Abstract
11476 \family default
11477  environments, 
11478 \family sans
11479 foils
11480 \family default
11481  creates the title on a page of its own.
11482  If you leave out the 
11483 \family sans
11484 Date
11485 \family default
11486  environment \SpecialChar LaTeX
11487  will substitute the current date (every time you regenerate
11488  the output).
11489 \end_layout
11490
11491 \begin_layout Subsubsection
11492 Start a New Foil
11493 \end_layout
11494
11495 \begin_layout Standard
11496 As I mentioned earlier, there are four ways of starting a new foil.
11497  For portrait foils you should use 
11498 \family sans
11499 Foilhead
11500 \family default
11501  or 
11502 \family sans
11503 ShortFoilhead.
11504
11505 \family default
11506  The difference between these two environments is the amount of space between
11507  the title of the foil (the foilhead) and the body of the foil.
11508 \end_layout
11509
11510 \begin_layout Standard
11511 Landscape foils are generated using the 
11512 \family sans
11513 Rotatefoilhead
11514 \family default
11515  and 
11516 \family sans
11517 ShortRotatefoilhead
11518 \family default
11519  environments.
11520  Again the only difference is the spacing between foilhead and body.
11521  Both of the short versions have 0.5
11522 \begin_inset space ~
11523 \end_inset
11524
11525 inches less separation between the foilhead and the body.
11526  
11527 \end_layout
11528
11529 \begin_layout Standard
11530 One problem with the support for landscape foils is the requirement that
11531  you have to use the 
11532 \family typewriter
11533 dvips
11534 \family default
11535  driver to generate the PostScript output otherwise the foils won't be rotated.
11536  It is possible to get landscape foils even if you haven't got the 
11537 \family typewriter
11538 dvips
11539 \family default
11540  driver provided you can feed your foils sideways through your printer ;-)
11541 \end_layout
11542
11543 \begin_layout Subsubsection
11544 Theorems, Lemmas, Proofs and more
11545 \end_layout
11546
11547 \begin_layout Standard
11548 Due to a small bug in \SpecialChar LyX
11549  you can't have two of the same type of these environments
11550  directly following each other.
11551  They must be separated by something.
11552  If you try, you will just be extending the previous environment as if you
11553  had merged the two environments together.
11554  So, how do you get around this problem? The simplest option is to insert
11555  some text between the two environments or add a 
11556 \family sans
11557 \SpecialChar LaTeX
11558
11559 \family default
11560  environment between the two with just a 
11561 \begin_inset Quotes eld
11562 \end_inset
11563
11564
11565 \family typewriter
11566 %
11567 \family default
11568
11569 \begin_inset Quotes erd
11570 \end_inset
11571
11572  in it.
11573  This will force \SpecialChar LyX
11574  to produce two separate environments and hence the correct
11575  \SpecialChar LaTeX
11576  output.
11577  An example is provided in the example file included with the \SpecialChar LyX
11578  distribution.
11579  Remember, this problem only occurs if you are trying to place two of the
11580  same type of theorem-like environments one directly after the other.
11581 \end_layout
11582
11583 \begin_layout Subsubsection
11584 Lists
11585 \end_layout
11586
11587 \begin_layout Standard
11588 You get all the commonly supported list styles found in other classes as
11589  well as two new ones.
11590  I'll only describe the new ones here.
11591  If you want to find out more about the other list environments check out
11592  the 
11593 \emph on
11594 User's Guide.
11595
11596 \emph default
11597  If you intend to use itemized lists you might also want to read about the
11598  
11599 \family sans
11600 Itemize
11601 \begin_inset space ~
11602 \end_inset
11603
11604 Bullet
11605 \begin_inset space ~
11606 \end_inset
11607
11608 Selection
11609 \family default
11610  dialog described above in section
11611 \begin_inset space ~
11612 \end_inset
11613
11614
11615 \begin_inset CommandInset ref
11616 LatexCommand ref
11617 reference "sec:bullet"
11618
11619 \end_inset
11620
11621 .
11622 \end_layout
11623
11624 \begin_layout Standard
11625 The two new list styles, 
11626 \family sans
11627 TickList
11628 \family default
11629  and 
11630 \family sans
11631 CrossList
11632 \family default
11633 , are designed to make it easier for you to create lists of do's and don'ts
11634  or right and wrong by providing dedicated environments that use a tick
11635  or a cross as the label of the list.
11636  These lists are in fact dedicated variants of the 
11637 \family sans
11638 Itemize
11639 \family default
11640  environment.
11641  They do however require that you have the 
11642 \family typewriter
11643 psnfss
11644 \family default
11645  packages installed.
11646 \end_layout
11647
11648 \begin_layout Subsubsection
11649 Figures and Tables
11650 \end_layout
11651
11652 \begin_layout Standard
11653
11654 \family sans
11655 Foil\SpecialChar TeX
11656
11657 \family default
11658  redefines the floating tables and figures so that they appear exactly where
11659  they are in the text rather than pushing them to the top of the page or
11660  to some user specified location.
11661  In fact if you change the float placement settings they are simply ignored.
11662 \end_layout
11663
11664 \begin_layout Subsubsection
11665 Page Headers and Footers
11666 \begin_inset CommandInset label
11667 LatexCommand label
11668 name "sec:foilfoot"
11669
11670 \end_inset
11671
11672
11673 \end_layout
11674
11675 \begin_layout Standard
11676
11677 \family sans
11678 My
11679 \begin_inset space ~
11680 \end_inset
11681
11682 Logo
11683 \family default
11684  and 
11685 \family sans
11686 Restriction
11687 \family default
11688  are two commands used to control the left-footer text string.
11689  The first is meant to allow you to include a graphic logo on your foils
11690  and defaults to 
11691 \begin_inset Quotes eld
11692 \end_inset
11693
11694 -Typeset by 
11695 \family sans
11696 Foil\SpecialChar TeX
11697
11698 \family default
11699 -
11700 \begin_inset Quotes erd
11701 \end_inset
11702
11703 .
11704  While the second is meant to provide a classification for the audience,
11705  
11706 \emph on
11707 e.
11708 \begin_inset space \thinspace{}
11709 \end_inset
11710
11711 g.
11712 \emph default
11713
11714 \begin_inset space \space{}
11715 \end_inset
11716
11717 Confidential.
11718  It is empty by default.
11719 \end_layout
11720
11721 \begin_layout Standard
11722 The remaining page corners can be filled by 
11723 \family sans
11724 Right
11725 \begin_inset space ~
11726 \end_inset
11727
11728 Footer
11729 \family default
11730  (which defaults to page numbers), 
11731 \family sans
11732 Right
11733 \begin_inset space ~
11734 \end_inset
11735
11736 Header
11737 \family default
11738  (top right) and 
11739 \family sans
11740 Left
11741 \begin_inset space ~
11742 \end_inset
11743
11744 Header
11745 \family default
11746  (top left).
11747 \end_layout
11748
11749 \begin_layout Subsection
11750 Unsupported 
11751 \family sans
11752 Foil\SpecialChar TeX
11753
11754 \family default
11755  Goodies
11756 \begin_inset CommandInset label
11757 LatexCommand label
11758 name "sec:unsuppfoils"
11759
11760 \end_inset
11761
11762
11763 \end_layout
11764
11765 \begin_layout Standard
11766 All the commands mentioned below need to be set in a 
11767 \family sans
11768 \SpecialChar LaTeX
11769
11770 \family default
11771  environment or as 
11772 \family sans
11773 \SpecialChar TeX
11774
11775 \family default
11776  within another environment.
11777 \end_layout
11778
11779 \begin_layout Subsubsection
11780 Lengths
11781 \end_layout
11782
11783 \begin_layout Standard
11784 All lengths are adjusted using the 
11785 \family typewriter
11786
11787 \backslash
11788 setlength{
11789 \family default
11790 \emph on
11791 lengthname
11792 \family typewriter
11793 \emph default
11794 }{
11795 \family default
11796 \emph on
11797 newlength
11798 \family typewriter
11799 \emph default
11800 }
11801 \family default
11802  command.
11803  Where 
11804 \emph on
11805 lengthname
11806 \emph default
11807  should be replaced by the name given to the length you want to change and
11808  
11809 \emph on
11810 newlength
11811 \emph default
11812  is the length value.
11813  All lengths should be specified in units of length such as inches (
11814 \family typewriter
11815 in
11816 \family default
11817 ), millimeters (
11818 \family typewriter
11819 mm
11820 \family default
11821 ) or points (
11822 \family typewriter
11823 pt
11824 \family default
11825 ) or relative to some document or font-based length such as 
11826 \family typewriter
11827
11828 \backslash
11829 textwidth
11830 \family default
11831 .
11832  
11833 \end_layout
11834
11835 \begin_layout Standard
11836 It's possible to change the spacing between a foilhead and the body of the
11837  foil by adjusting the length specified by 
11838 \family typewriter
11839
11840 \backslash
11841 foilheadskip
11842 \family default
11843 .
11844  For example, to make 
11845 \emph on
11846 all
11847 \emph default
11848  foilheads 0.5
11849 \begin_inset space \space{}
11850 \end_inset
11851
11852 in closer to their bodies put the following in the preamble: 
11853 \family typewriter
11854
11855 \backslash
11856 setlength{
11857 \backslash
11858 foilheadskip}{-0.5in}
11859 \end_layout
11860
11861 \begin_layout Standard
11862 The spacings around floats can be adjusted by setting these lengths:
11863 \end_layout
11864
11865 \begin_layout Labeling
11866 \labelwidthstring MMMMMMMMMMM
11867
11868 \family typewriter
11869
11870 \backslash
11871 abovefloatskip
11872 \family default
11873  Separation between the text and the top of the float
11874 \end_layout
11875
11876 \begin_layout Labeling
11877 \labelwidthstring MMMMMMMMMMM
11878
11879 \family typewriter
11880
11881 \backslash
11882 abovecaptionskip
11883 \family default
11884  Separation between the float and the caption
11885 \end_layout
11886
11887 \begin_layout Labeling
11888 \labelwidthstring MMMMMMMMMMM
11889
11890 \family typewriter
11891
11892 \backslash
11893 belowcaptionskip
11894 \family default
11895  Separation between the caption and the following text
11896 \end_layout
11897
11898 \begin_layout Labeling
11899 \labelwidthstring MMMMMMMMMMM
11900
11901 \family typewriter
11902
11903 \backslash
11904 captionwidth
11905 \family default
11906  You can make the captions narrower than the surrounding text by adjusting
11907  this length.
11908  Best done relative to 
11909 \family typewriter
11910
11911 \backslash
11912 textwidth
11913 \family default
11914 .
11915 \end_layout
11916
11917 \begin_layout Standard
11918 There are also several title page related lengths that you may find useful
11919  if you have a long title or several authors:
11920 \end_layout
11921
11922 \begin_layout Labeling
11923 \labelwidthstring MMMMMMMMMMM
11924
11925 \family typewriter
11926
11927 \backslash
11928 abovetitleskip
11929 \family default
11930  Separation from headers to 
11931 \family sans
11932 Title
11933 \end_layout
11934
11935 \begin_layout Labeling
11936 \labelwidthstring MMMMMMMMMMM
11937
11938 \family typewriter
11939
11940 \backslash
11941 titleauthorskip
11942 \family default
11943  between 
11944 \family sans
11945 Title
11946 \family default
11947  and 
11948 \family sans
11949 Author
11950 \family default
11951  environments
11952 \end_layout
11953
11954 \begin_layout Labeling
11955 \labelwidthstring MMMMMMMMMMM
11956
11957 \family typewriter
11958
11959 \backslash
11960 authorauthorskip
11961 \family default
11962  between multiple 
11963 \family sans
11964 Author
11965 \family default
11966  lines
11967 \end_layout
11968
11969 \begin_layout Labeling
11970 \labelwidthstring MMMMMMMMMMM
11971
11972 \family typewriter
11973
11974 \backslash
11975 authordateskip
11976 \family default
11977  between the 
11978 \family sans
11979 Author
11980 \family default
11981  and the 
11982 \family sans
11983 Date
11984 \end_layout
11985
11986 \begin_layout Labeling
11987 \labelwidthstring MMMMMMMMMMM
11988
11989 \family typewriter
11990
11991 \backslash
11992 dateabstractskip
11993 \family default
11994  between the 
11995 \family sans
11996 Date
11997 \family default
11998  and the 
11999 \family sans
12000 Abstract
12001 \end_layout
12002
12003 \begin_layout Standard
12004 The last length related command affects all the list environments.
12005  If you place 
12006 \family typewriter
12007
12008 \backslash
12009 zerolistvertdimens
12010 \family default
12011  
12012 \emph on
12013 inside
12014 \emph default
12015  a list environment then all the vertical spacing between the list items
12016  is removed.
12017  Note that this is a command not a length so it doesn't require 
12018 \family typewriter
12019
12020 \backslash
12021 setlength
12022 \family default
12023  like the stuff mentioned above.
12024 \end_layout
12025
12026 \begin_layout Subsubsection
12027 Headers and Footers
12028 \end_layout
12029
12030 \begin_layout Standard
12031 The 
12032 \family typewriter
12033
12034 \backslash
12035 LogoOn
12036 \family default
12037  and 
12038 \family typewriter
12039
12040 \backslash
12041 LogoOff
12042 \family default
12043  commands control whether the logo in the 
12044 \family sans
12045 MyLogo
12046 \family default
12047  definition appear on a given page.
12048  If you put 
12049 \family typewriter
12050
12051 \backslash
12052 LogoOff
12053 \family default
12054  in the preamble then none of the foils will have the logo on them.
12055  If you don't want the logo on a particular page place the 
12056 \family typewriter
12057
12058 \backslash
12059 LogoOff
12060 \family default
12061  directly after the foilhead of that page and the 
12062 \family typewriter
12063
12064 \backslash
12065 LogoOn
12066 \family default
12067  directly after the next foilhead.
12068 \end_layout
12069
12070 \begin_layout Standard
12071 If you decide to use the 
12072 \family sans
12073 fancy
12074 \family default
12075  page style setting in the 
12076 \family sans
12077 Document
12078 \begin_inset space ~
12079 \end_inset
12080
12081 Layout
12082 \family default
12083  dialog you should probably add 
12084 \family typewriter
12085
12086 \backslash
12087 let
12088 \backslash
12089 headwidth
12090 \backslash
12091 textwidth
12092 \family default
12093  to your preamble so headers and footers on landscape pages are correctly
12094  placed when rotated.
12095  This is due to some clashes between the page layouts provided by the 
12096 \family sans
12097 fancyheadings
12098 \family default
12099  package and the 
12100 \family sans
12101 foils
12102 \family default
12103  class.
12104 \end_layout
12105
12106 \begin_layout Section
12107 Hollywood (Hollywood spec scripts)
12108 \end_layout
12109
12110 \begin_layout Standard
12111 by 
12112 \shape smallcaps
12113 Garst Reese
12114 \end_layout
12115
12116 \begin_layout Subsection
12117 Introduction
12118 \end_layout
12119
12120 \begin_layout Standard
12121 Getting the format of a Hollywood script right is a 
12122 \begin_inset Quotes eld
12123 \end_inset
12124
12125 rite of passage.
12126 \begin_inset Quotes erd
12127 \end_inset
12128
12129  It is designed to make the readers focus on content and to be easy and
12130  familiar for the actors to read.
12131  Each page of a script should be one minute of film.
12132  Nothing goes in a script that you cannot see or hear on screen.
12133  The courier 12 pt font should be used throughout.
12134  No italics.
12135 \end_layout
12136
12137 \begin_layout Subsection
12138 Special problems
12139 \end_layout
12140
12141 \begin_layout Standard
12142 Speakers' lines should NEVER break in mid-sentence.
12143  If a speaker's lines continue over a page break, repeat the 
12144 \family sans
12145 Speaker
12146 \family default
12147  title followed by (Cont'd).
12148 \end_layout
12149
12150 \begin_layout Subsection
12151 Special features
12152 \end_layout
12153
12154 \begin_layout Standard
12155 Insert the 
12156 \family sans
12157 Speaker
12158 \family default
12159  names as labels then cross-reference the label to insert the name.
12160  The cross-reference dialog will show the current cast of characters.
12161  You can use this to insert the speaker name in narratives also.
12162 \end_layout
12163
12164 \begin_layout Subsection
12165 Paper size and Margins
12166 \end_layout
12167
12168 \begin_layout Standard
12169 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12170 \end_layout
12171
12172 \begin_layout Subsection
12173 Environments
12174 \end_layout
12175
12176 \begin_layout Standard
12177 The following environments are available.
12178  You can use hollywood.bind to get the bind keys shown at the right.
12179 \end_layout
12180
12181 \begin_layout Itemize
12182
12183 \family sans
12184 Standard
12185 \begin_inset Newline newline
12186 \end_inset
12187
12188
12189 \family default
12190 Used where nothing else works.
12191  Try to avoid it.
12192 \end_layout
12193
12194 \begin_layout Itemize
12195
12196 \family sans
12197 FADE_IN
12198 \family default
12199 :
12200 \begin_inset space \hfill{}
12201 \end_inset
12202
12203
12204 \family sans
12205 M-z S-I
12206 \family default
12207
12208 \begin_inset Newline newline
12209 \end_inset
12210
12211 Usually followed by something like 
12212 \begin_inset Quotes eld
12213 \end_inset
12214
12215 on Sally waking up.
12216 \begin_inset Quotes erd
12217 \end_inset
12218
12219
12220 \end_layout
12221
12222 \begin_layout Itemize
12223
12224 \family sans
12225 INT:
12226 \begin_inset space \hfill{}
12227 \end_inset
12228
12229 M-z i
12230 \begin_inset Newline newline
12231 \end_inset
12232
12233
12234 \family default
12235 Introduces a new INTERIOR camera set-up.
12236  Always followed by DAY or NIGHT, or something similar to define the lighting
12237  required.
12238  Everthing on this line in CAPS.
12239 \end_layout
12240
12241 \begin_layout Itemize
12242
12243 \family sans
12244 EXT:
12245 \begin_inset space \hfill{}
12246 \end_inset
12247
12248 M-z e
12249 \begin_inset Newline newline
12250 \end_inset
12251
12252
12253 \family default
12254 Introduces a new EXTERIOR camera set-up.
12255  Everthing on this line in CAPS.
12256 \end_layout
12257
12258 \begin_layout Itemize
12259
12260 \family sans
12261 Speaker
12262 \begin_inset space \hfill{}
12263 \end_inset
12264
12265 M-z s
12266 \begin_inset Newline newline
12267 \end_inset
12268
12269
12270 \family default
12271 The character speaking.
12272 \end_layout
12273
12274 \begin_layout Itemize
12275
12276 \family sans
12277 Parenthetical
12278 \begin_inset space \hfill{}
12279 \end_inset
12280
12281 M-z p
12282 \begin_inset Newline newline
12283 \end_inset
12284
12285
12286 \family default
12287 Instructions to the speaker.
12288  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12289 .
12290  Both will be printed.
12291 \end_layout
12292
12293 \begin_layout Itemize
12294
12295 \family sans
12296 Dialogue
12297 \begin_inset space \hfill{}
12298 \end_inset
12299
12300 M-z d
12301 \begin_inset Newline newline
12302 \end_inset
12303
12304
12305 \family default
12306 What the 
12307 \family sans
12308 Speaker
12309 \family default
12310  says.
12311 \end_layout
12312
12313 \begin_layout Itemize
12314
12315 \family sans
12316 Transition
12317 \begin_inset space \hfill{}
12318 \end_inset
12319
12320 M-z t
12321 \begin_inset Newline newline
12322 \end_inset
12323
12324
12325 \family default
12326 Camera movement instruction.
12327  e.
12328 \begin_inset space \thinspace{}
12329 \end_inset
12330
12331 g.
12332 \begin_inset space \space{}
12333 \end_inset
12334
12335 CUT TO:
12336 \end_layout
12337
12338 \begin_layout Itemize
12339
12340 \family sans
12341 FADE OUT:
12342 \begin_inset space \hfill{}
12343 \end_inset
12344
12345 M-z S-I
12346 \end_layout
12347
12348 \begin_layout Itemize
12349
12350 \family sans
12351 Author
12352 \begin_inset space \hfill{}
12353 \end_inset
12354
12355 M-z S-A
12356 \end_layout
12357
12358 \begin_layout Itemize
12359
12360 \family sans
12361 Title
12362 \begin_inset space \hfill{}
12363 \end_inset
12364
12365 M-z S-T
12366 \end_layout
12367
12368 \begin_layout Itemize
12369
12370 \family sans
12371 Right_Address
12372 \begin_inset space \hfill{}
12373 \end_inset
12374
12375 M-z r
12376 \end_layout
12377
12378 \begin_layout Subsection
12379 Script jargon
12380 \end_layout
12381
12382 \begin_layout Itemize
12383 (O.S) — off screen
12384 \end_layout
12385
12386 \begin_layout Itemize
12387 (V.0) — voice over
12388 \end_layout
12389
12390 \begin_layout Itemize
12391 b.
12392 \begin_inset space \thinspace{}
12393 \end_inset
12394
12395 g.
12396  — background
12397 \end_layout
12398
12399 \begin_layout Itemize
12400 C.U.
12401  — close-up
12402 \end_layout
12403
12404 \begin_layout Itemize
12405 PAN — camera movement
12406 \end_layout
12407
12408 \begin_layout Itemize
12409 INSERT — cut to close-up of
12410 \end_layout
12411
12412 \begin_layout Section
12413 ijmpc and ijmpd
12414 \end_layout
12415
12416 \begin_layout Standard
12417 by 
12418 \noun on
12419 Panayotis Papasotiriou
12420 \end_layout
12421
12422 \begin_layout Subsection
12423 Overview
12424 \end_layout
12425
12426 \begin_layout Standard
12427 The ijmpc package is a set of macros that facilitates electronic manuscript
12428  submission to the 
12429 \emph on
12430 International Journal of Modern Physics C
12431 \emph default
12432 .
12433  Similarly, the ijmpd package is for creating manuscripts to be submitted
12434  to the 
12435 \emph on
12436 International Journal of Modern Physics D
12437 \emph default
12438 .
12439  Both journals are published by World Scientific.
12440  The corresponding document classes are named 
12441 \family typewriter
12442 ws-ijmpc.cls
12443 \family default
12444  and 
12445 \family typewriter
12446 ws-ijmpd.cls
12447 \family default
12448 , respectively.
12449  These files, together with instructions for the authors, can be downloaded
12450  from the sites 
12451 \begin_inset Flex URL
12452 status collapsed
12453
12454 \begin_layout Plain Layout
12455
12456 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12457 \end_layout
12458
12459 \end_inset
12460
12461  and 
12462 \begin_inset Flex URL
12463 status collapsed
12464
12465 \begin_layout Plain Layout
12466
12467 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12468 \end_layout
12469
12470 \end_inset
12471
12472 .
12473  Both packages are modified versions of the standard 
12474 \begin_inset Quotes eld
12475 \end_inset
12476
12477 article
12478 \begin_inset Quotes erd
12479 \end_inset
12480
12481  package, and they are almost (but not exactly) identical.
12482  Most of their features are supported by \SpecialChar LyX
12483 .
12484  I have used \SpecialChar LyX
12485  successfully to write articles submitted to both journals
12486  without any problem.
12487 \end_layout
12488
12489 \begin_layout Subsection
12490 Writing a paper
12491 \end_layout
12492
12493 \begin_layout Standard
12494 As usual, the easiest way to write a paper is to start with a template.
12495  Click on 
12496 \family sans
12497 File\SpecialChar menuseparator
12498 New from
12499 \family default
12500  
12501 \family sans
12502 \bar under
12503 T
12504 \bar default
12505 emplate
12506 \family default
12507 , then choose the 
12508 \family typewriter
12509 ijmpc.lyx
12510 \family default
12511  or 
12512 \family typewriter
12513 ijmpd.lyx
12514 \family default
12515  template.
12516  This will give an (almost) empty document that includes the most common
12517  fields found in a manuscript.
12518  Simply overwrite the existing text (including the brackets, 
12519 \family typewriter
12520 <>
12521 \family default
12522 ) with your text.
12523  You should keep in mind the following remarks.
12524 \end_layout
12525
12526 \begin_layout Enumerate
12527 \SpecialChar LyX
12528  won't let you change the font size and the page style of the document,
12529  because such modifications are not allowed by both packages.
12530 \end_layout
12531
12532 \begin_layout Enumerate
12533 The language of the document should not be changed.
12534  Before previewing your paper, be sure that the babel package is not used.
12535  To do this, click on 
12536 \family sans
12537 Tools\SpecialChar menuseparator
12538 Preferences
12539 \family default
12540 , select the 
12541 \family sans
12542 Lang Opts
12543 \family default
12544  tab, deselect the 
12545 \family sans
12546 Use babel
12547 \family default
12548  checkbox in the language settings, and click on 
12549 \family sans
12550 Apply
12551 \family default
12552  (or 
12553 \family sans
12554 Save
12555 \family default
12556 , if you wish to make this change permanent).
12557 \end_layout
12558
12559 \begin_layout Enumerate
12560 The 
12561 \begin_inset Quotes eld
12562 \end_inset
12563
12564 Keywords
12565 \begin_inset Quotes erd
12566 \end_inset
12567
12568  style must be used to define keywords.
12569 \end_layout
12570
12571 \begin_layout Enumerate
12572 The ijmpc package provides a style named 
12573 \begin_inset Quotes eld
12574 \end_inset
12575
12576 Classification Codes
12577 \begin_inset Quotes erd
12578 \end_inset
12579
12580 , which can be used to define classification codes, such as PACS numbers.
12581  Note that this facility is not supported by the ijmpd package.
12582 \end_layout
12583
12584 \begin_layout Enumerate
12585 Several new environments are available: 
12586 \begin_inset Quotes eld
12587 \end_inset
12588
12589 Definition
12590 \begin_inset Quotes erd
12591 \end_inset
12592
12593
12594 \begin_inset Quotes eld
12595 \end_inset
12596
12597 Step
12598 \begin_inset Quotes erd
12599 \end_inset
12600
12601
12602 \begin_inset Quotes eld
12603 \end_inset
12604
12605 Example
12606 \begin_inset Quotes erd
12607 \end_inset
12608
12609
12610 \begin_inset Quotes eld
12611 \end_inset
12612
12613 Remark
12614 \begin_inset Quotes erd
12615 \end_inset
12616
12617
12618 \begin_inset Quotes eld
12619 \end_inset
12620
12621 Notation
12622 \begin_inset Quotes erd
12623 \end_inset
12624
12625
12626 \begin_inset Quotes eld
12627 \end_inset
12628
12629 Theorem
12630 \begin_inset Quotes erd
12631 \end_inset
12632
12633
12634 \begin_inset Quotes eld
12635 \end_inset
12636
12637 Proof
12638 \begin_inset Quotes erd
12639 \end_inset
12640
12641
12642 \begin_inset Quotes eld
12643 \end_inset
12644
12645 Corollary
12646 \begin_inset Quotes erd
12647 \end_inset
12648
12649
12650 \begin_inset Quotes eld
12651 \end_inset
12652
12653 Lemma
12654 \begin_inset Quotes erd
12655 \end_inset
12656
12657
12658 \begin_inset Quotes eld
12659 \end_inset
12660
12661 Proposition
12662 \begin_inset Quotes erd
12663 \end_inset
12664
12665
12666 \begin_inset Quotes eld
12667 \end_inset
12668
12669 Prop
12670 \begin_inset Quotes erd
12671 \end_inset
12672
12673
12674 \begin_inset Quotes eld
12675 \end_inset
12676
12677 Question
12678 \begin_inset Quotes erd
12679 \end_inset
12680
12681
12682 \begin_inset Quotes eld
12683 \end_inset
12684
12685 Claim
12686 \begin_inset Quotes erd
12687 \end_inset
12688
12689 , and 
12690 \begin_inset Quotes eld
12691 \end_inset
12692
12693 Conjecture
12694 \begin_inset Quotes erd
12695 \end_inset
12696
12697 .
12698  Their use is more or less obvious.
12699  \SpecialChar LyX
12700  supports all these environments; it will use the proper label, text style,
12701  and numbering scheme for each of them.
12702 \end_layout
12703
12704 \begin_layout Enumerate
12705 Both packages use basic citations; the natbib package should not be used.
12706  In \SpecialChar LyX
12707 , citation references are shown as usual; in the output, citations are
12708  shown as superscripts.
12709  If you want to use a citation as normal text, you should use the 
12710 \family typewriter
12711 refcite
12712 \family default
12713  command, e.
12714 \begin_inset space \thinspace{}
12715 \end_inset
12716
12717 g.
12718 \begin_inset space \space{}
12719 \end_inset
12720
12721
12722 \begin_inset Quotes eld
12723 \end_inset
12724
12725 See Ref.
12726 \begin_inset space \space{}
12727 \end_inset
12728
12729
12730 \family typewriter
12731
12732 \backslash
12733 refcite{key}
12734 \family default
12735
12736 \begin_inset Quotes erd
12737 \end_inset
12738
12739 .
12740 \end_layout
12741
12742 \begin_layout Enumerate
12743 There is no 
12744 \begin_inset Quotes eld
12745 \end_inset
12746
12747 Acknowledgments
12748 \begin_inset Quotes erd
12749 \end_inset
12750
12751  section in both packages.
12752  To put acknowledgments, just use the 
12753 \begin_inset Quotes eld
12754 \end_inset
12755
12756 Section*
12757 \begin_inset Quotes erd
12758 \end_inset
12759
12760  environment.
12761 \end_layout
12762
12763 \begin_layout Enumerate
12764 Appendices may be added to the paper, 
12765 \emph on
12766 after
12767 \emph default
12768  the Acknowledgments and 
12769 \shape italic
12770 before
12771 \shape default
12772  the References.
12773  \SpecialChar LyX
12774  provides a special environment, called 
12775 \begin_inset Quotes eld
12776 \end_inset
12777
12778 Appendices Section
12779 \begin_inset Quotes erd
12780 \end_inset
12781
12782  which marks the beginning of the appendices.
12783  This environment should be left blank; it just sends a \SpecialChar LaTeX
12784  command, but nothing
12785  is really printed.
12786  In \SpecialChar LyX
12787 , the word 
12788 \begin_inset Quotes eld
12789 \end_inset
12790
12791 Appendix
12792 \begin_inset Quotes erd
12793 \end_inset
12794
12795  is printed with blue letters, as a signal that all sections after that
12796  point are appendices.
12797  To write an appendix, use the 
12798 \begin_inset Quotes eld
12799 \end_inset
12800
12801 Appendix
12802 \begin_inset Quotes erd
12803 \end_inset
12804
12805  environment.
12806  \SpecialChar LyX
12807  will number each appendix with capital letters, as required by both journals.
12808  Note that 
12809 \begin_inset Quotes eld
12810 \end_inset
12811
12812 Appendices Section
12813 \begin_inset Quotes erd
12814 \end_inset
12815
12816  
12817 \emph on
12818 must
12819 \emph default
12820  be present before the first appendix; if not, all appendices will be numbered
12821  as normal sections in the output.
12822 \end_layout
12823
12824 \begin_layout Enumerate
12825 The ijmpc and the ijmpd packages use the 
12826 \family typewriter
12827 tbl
12828 \family default
12829  command to implement table captions.
12830  As a result, a table created by \SpecialChar LyX
12831  is printed correctly, but its caption
12832  is ignored.
12833  However, you can use some \SpecialChar TeX
12834  code to overcome this problem, so that captions
12835  are printed as expected.
12836  To do so, create a float table as usual, remove the caption, and replace
12837  it with the \SpecialChar TeX
12838  code 
12839 \family typewriter
12840
12841 \backslash
12842 tbl{
12843 \emph on
12844 your table caption
12845 \emph default
12846 }{
12847 \family default
12848  (sic); you must also the \SpecialChar TeX
12849  code 
12850 \family typewriter
12851 }
12852 \family default
12853  immediately after the tabular material.
12854  Study the example table included in the template files to see how this
12855  trick is implemented.
12856  Alternatively, If you need table captions, you should implement the whole
12857  table float in a 
12858 \family typewriter
12859 .tex
12860 \family default
12861  file, then include this file to the \SpecialChar LyX
12862  document (
12863 \family sans
12864 Insert\SpecialChar menuseparator
12865 File\SpecialChar menuseparator
12866 Child
12867 \begin_inset space ~
12868 \end_inset
12869
12870 Document
12871 \family default
12872 ).
12873  Details on how to create a table float can be found in the files 
12874 \family typewriter
12875 ws-ijmpc.tex
12876 \family default
12877  and 
12878 \family typewriter
12879 ws-ijmpd.tex
12880 \family default
12881 , included in the corresponding packages.
12882 \end_layout
12883
12884 \begin_layout Subsection
12885 Preparing a paper for submission
12886 \end_layout
12887
12888 \begin_layout Standard
12889 Before you submit your paper you must export the \SpecialChar LyX
12890  document as a \SpecialChar LaTeX
12891  file (
12892 \family sans
12893 File\SpecialChar menuseparator
12894 Export\SpecialChar menuseparator
12895 \SpecialChar LaTeX
12896
12897 \family default
12898 )
12899 \begin_inset Foot
12900 status open
12901
12902 \begin_layout Plain Layout
12903 Actually you have the choice between \SpecialChar LaTeX
12904  (plain) and pdflatex.
12905  If you intend to use pdflatex to prepare the paper, you should use the
12906  pdflatex option so that included graphics are converted to PDF format,
12907  ready for use by pdflatex.
12908 \end_layout
12909
12910 \end_inset
12911
12912 , then make the following changes to the resulting 
12913 \family typewriter
12914 .tex
12915 \family default
12916  file.
12917 \end_layout
12918
12919 \begin_layout Enumerate
12920 Remove the comment lines before the 
12921 \family typewriter
12922
12923 \backslash
12924 documentclass
12925 \family default
12926  command.
12927 \end_layout
12928
12929 \begin_layout Enumerate
12930 Remove everything between (and including) the 
12931 \family typewriter
12932
12933 \backslash
12934 makeatletter
12935 \family default
12936  and 
12937 \family typewriter
12938
12939 \backslash
12940 makeatother
12941 \family default
12942  commands, except for any commands you specifically put into the \SpecialChar LaTeX
12943  preamble.
12944 \end_layout
12945
12946 \begin_layout Standard
12947 The modified 
12948 \family typewriter
12949 .tex
12950 \family default
12951  file should be saved and processed through \SpecialChar LaTeX
12952  as many times as necessary.
12953  You may also want to check the resulting 
12954 \family typewriter
12955 .dvi
12956 \family default
12957  document.
12958 \end_layout
12959
12960 \begin_layout Subsection
12961 Use of \SpecialChar TeX
12962  code
12963 \end_layout
12964
12965 \begin_layout Standard
12966 The use of \SpecialChar TeX
12967  code is reduced to two commands, which must be placed at the
12968  top of the document.
12969  If you started writing your paper by using the 
12970 \family typewriter
12971 ijmpc.lyx
12972 \family default
12973  or the 
12974 \family typewriter
12975 ijmpd.lyx
12976 \family default
12977  template, the \SpecialChar TeX
12978  code needed is already in its place; you usually don't need
12979  to delete it.
12980  You may only modify the first \SpecialChar TeX
12981  code to specify the information printed
12982  to the top of odd and even pages (authors' names and short paper's title,
12983  respectively).
12984  This \SpecialChar TeX
12985  code must have the form 
12986 \family typewriter
12987
12988 \backslash
12989 markboth{Authors' Names}{Short Paper's Title}
12990 \family default
12991 .
12992 \end_layout
12993
12994 \begin_layout Section
12995 iopart
12996 \end_layout
12997
12998 \begin_layout Standard
12999 by 
13000 \noun on
13001 Uwe Stöhr
13002 \end_layout
13003
13004 \begin_layout Subsection
13005 Overview
13006 \end_layout
13007
13008 \begin_layout Standard
13009 The iopart package provides a document class to create electronic manuscript
13010  submission to the journals published by the Institute of Physics.
13011  Instructions for the authors how to create a paper using the iopart class
13012  can be downloaded together with the iopart package from the site 
13013 \begin_inset Flex URL
13014 status collapsed
13015
13016 \begin_layout Plain Layout
13017
13018 ftp://ftp.iop.org/pub/journals/latex2e
13019 \end_layout
13020
13021 \end_inset
13022
13023 .
13024 \end_layout
13025
13026 \begin_layout Subsection
13027 Writing a paper
13028 \end_layout
13029
13030 \begin_layout Standard
13031 The easiest way to write a paper is to start with the file 
13032 \emph on
13033 IOP-article.lyx
13034 \emph default
13035  that is available in \SpecialChar LyX
13036 's examples files folder.
13037  Open this file, save it under a new name, and start writing.
13038  The example file explains how to use the special text environments.
13039  Here are the most important advices:
13040 \end_layout
13041
13042 \begin_layout Itemize
13043 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13044  two options 
13045 \family sans
13046 Use AMS math package
13047 \family default
13048  in the document settings under 
13049 \family sans
13050 Math Options
13051 \family default
13052  are not used!
13053 \end_layout
13054
13055 \begin_layout Itemize
13056
13057 \size normal
13058 The title environment defines the kind of your paper.
13059  So use one of the following environments for the title:
13060 \size default
13061
13062 \begin_inset Separator parbreak
13063 \end_inset
13064
13065
13066 \end_layout
13067
13068 \begin_deeper
13069 \begin_layout Itemize
13070
13071 \family sans
13072 \size normal
13073 Title
13074 \family default
13075  for a Paper
13076 \end_layout
13077
13078 \begin_layout Itemize
13079
13080 \family sans
13081 \size normal
13082 Review
13083 \family default
13084  for a Review
13085 \end_layout
13086
13087 \begin_layout Itemize
13088
13089 \family sans
13090 \size normal
13091 Topical
13092 \family default
13093  for a Topical review
13094 \end_layout
13095
13096 \begin_layout Itemize
13097
13098 \family sans
13099 \size normal
13100 Comment
13101 \family default
13102  for a Comment
13103 \end_layout
13104
13105 \begin_layout Itemize
13106
13107 \family sans
13108 \size normal
13109 Note
13110 \family default
13111  for a Note
13112 \end_layout
13113
13114 \begin_layout Itemize
13115
13116 \family sans
13117 \size normal
13118 Paper
13119 \family default
13120  for a Paper (same as Title)
13121 \end_layout
13122
13123 \begin_layout Itemize
13124
13125 \family sans
13126 \size normal
13127 Prelim
13128 \family default
13129  for a Preliminary communication
13130 \end_layout
13131
13132 \begin_layout Itemize
13133
13134 \family sans
13135 \size normal
13136 Rapid
13137 \family default
13138  for a Rapid communication
13139 \end_layout
13140
13141 \begin_layout Itemize
13142
13143 \family sans
13144 \size normal
13145 Letter
13146 \family default
13147  for a Letter to the editor
13148 \end_layout
13149
13150 \end_deeper
13151 \begin_layout Itemize
13152
13153 \size normal
13154 All title environments except of 
13155 \family sans
13156 Letter
13157 \family default
13158  can have an optional short title.
13159 \end_layout
13160
13161 \begin_layout Itemize
13162 There is a general title environment 
13163 \family sans
13164 Article
13165 \family default
13166  which is not directly supported by the \SpecialChar LyX
13167 .
13168  This can be used as \SpecialChar TeX
13169  code when your document doesn't fit into one of the
13170  other title types.
13171 \end_layout
13172
13173 \begin_layout Standard
13174 For more informations like hints for special table and formula formatting,
13175  look at the IOP author guidelines.
13176 \end_layout
13177
13178 \begin_layout Section
13179 Kluwer
13180 \end_layout
13181
13182 \begin_layout Standard
13183 by 
13184 \noun on
13185 Panayotis Papasotiriou
13186 \end_layout
13187
13188 \begin_layout Subsection
13189 Overview
13190 \end_layout
13191
13192 \begin_layout Standard
13193 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13194  that facilitates electronic manuscript submission to the journals they
13195  publish.
13196  Most known of them (at least in my domain of interest) are 
13197 \emph on
13198 Astrophysics and Space Science
13199 \emph default
13200  and 
13201 \emph on
13202 Solar Physics
13203 \emph default
13204 , but there are many others (see a complete list at 
13205 \begin_inset Flex URL
13206 status open
13207
13208 \begin_layout Plain Layout
13209
13210 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13211 \end_layout
13212
13213 \end_inset
13214
13215 ).
13216  The Kluwer package may be downloaded from the site 
13217 \begin_inset Flex URL
13218 status collapsed
13219
13220 \begin_layout Plain Layout
13221
13222 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13223 \end_layout
13224
13225 \end_inset
13226
13227 .
13228  A complete user guide is contained in that package (but it can also be
13229  downloaded separately).
13230 \end_layout
13231
13232 \begin_layout Standard
13233 \SpecialChar LyX
13234  supports many features of the package but not everything.
13235  However, the \SpecialChar TeX
13236  code needed is reduced to some 
13237 \begin_inset Quotes eld
13238 \end_inset
13239
13240 peculiar
13241 \begin_inset Quotes erd
13242 \end_inset
13243
13244  commands of the package (see
13245 \begin_inset space ~
13246 \end_inset
13247
13248
13249 \begin_inset CommandInset ref
13250 LatexCommand ref
13251 reference "subsec:kluwer_peculiarities"
13252
13253 \end_inset
13254
13255 ).
13256  I have recently used \SpecialChar LyX
13257  to write an article submitted to the 
13258 \emph on
13259 Astrophysics and Space Science
13260 \emph default
13261  without any problem.
13262 \end_layout
13263
13264 \begin_layout Subsection
13265 Writing a paper
13266 \end_layout
13267
13268 \begin_layout Standard
13269 The easiest way to write a paper is to start with the Kluwer template file.
13270  Click on 
13271 \family sans
13272 File\SpecialChar menuseparator
13273 New from
13274 \family default
13275  
13276 \family sans
13277 Template
13278 \family default
13279 , then choose the 
13280 \family typewriter
13281 kluwer.lyx
13282 \family default
13283  template.
13284  This will give an (almost) empty document that includes the most common
13285  fields found in a manuscript and a short description of their use.
13286  As in most templates, simply overwrite the existing text (including the
13287  brackets, 
13288 \family typewriter
13289 <>
13290 \family default
13291 ) with the correct information.
13292 \end_layout
13293
13294 \begin_layout Subsection
13295 Preparing a paper for submission
13296 \end_layout
13297
13298 \begin_layout Standard
13299 As in the AAS\SpecialChar TeX
13300  package, before you submit your paper to a journal you must
13301  
13302 \begin_inset Quotes eld
13303 \end_inset
13304
13305 postprocess
13306 \begin_inset Quotes erd
13307 \end_inset
13308
13309  it as follows.
13310 \end_layout
13311
13312 \begin_layout Enumerate
13313 Export your paper as a \SpecialChar LaTeX
13314  file.
13315  To do this, click on 
13316 \family sans
13317 File\SpecialChar menuseparator
13318 Export\SpecialChar menuseparator
13319 \SpecialChar LaTeX
13320
13321 \family default
13322 .
13323  
13324 \end_layout
13325
13326 \begin_layout Enumerate
13327 Edit the resulting 
13328 \family typewriter
13329 .tex
13330 \family default
13331  file with a text editor and make the following changes
13332 \begin_inset Separator parbreak
13333 \end_inset
13334
13335
13336 \end_layout
13337
13338 \begin_deeper
13339 \begin_layout Enumerate
13340 remove the comment lines before the 
13341 \family typewriter
13342
13343 \backslash
13344 documentclass
13345 \family default
13346  command,
13347 \end_layout
13348
13349 \begin_layout Enumerate
13350 remove everything between (and including) the 
13351 \family typewriter
13352
13353 \backslash
13354 makeatletter
13355 \family default
13356  and 
13357 \family typewriter
13358
13359 \backslash
13360 makeatother
13361 \family default
13362  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13363  preamble.
13364 \end_layout
13365
13366 \begin_layout Standard
13367 Save the resulting 
13368 \family typewriter
13369 .tex
13370 \family default
13371  file.
13372 \end_layout
13373
13374 \end_deeper
13375 \begin_layout Enumerate
13376 Run the 
13377 \family typewriter
13378 .tex
13379 \family default
13380  file through \SpecialChar LaTeX
13381  as many times as necessary (usually up to three).
13382 \end_layout
13383
13384 \begin_layout Enumerate
13385 View the resulting 
13386 \family typewriter
13387 .dvi
13388 \family default
13389  document using, e.
13390 \begin_inset space \thinspace{}
13391 \end_inset
13392
13393 g.
13394 \begin_inset space \space{}
13395 \end_inset
13396
13397
13398 \family sans
13399 xdvi
13400 \family default
13401 , and check if everything is OK (it should, if you didn't make any mistake).
13402 \end_layout
13403
13404 \begin_layout Subsection
13405 \begin_inset Quotes eld
13406 \end_inset
13407
13408 Peculiarities
13409 \begin_inset Quotes erd
13410 \end_inset
13411
13412  of the Kluwer package
13413 \begin_inset CommandInset label
13414 LatexCommand label
13415 name "subsec:kluwer_peculiarities"
13416
13417 \end_inset
13418
13419
13420 \end_layout
13421
13422 \begin_layout Standard
13423 The Kluwer package has the following 
13424 \begin_inset Quotes eld
13425 \end_inset
13426
13427 peculiarities
13428 \begin_inset Quotes erd
13429 \end_inset
13430
13431 .
13432 \end_layout
13433
13434 \begin_layout Enumerate
13435 It is possible to write multiple articles in the same \SpecialChar LaTeX
13436  file
13437 \begin_inset Foot
13438 status collapsed
13439
13440 \begin_layout Plain Layout
13441 I can't imagine any good reason to do this.
13442 \end_layout
13443
13444 \end_inset
13445
13446 .
13447  Each article must be included in the environment 
13448 \begin_inset Quotes eld
13449 \end_inset
13450
13451 article
13452 \begin_inset Quotes erd
13453 \end_inset
13454
13455 .
13456  Unfortunately, this environment cannot be omitted, even if you write just
13457  one article.
13458  Therefore, each article starts with the command 
13459 \family typewriter
13460
13461 \backslash
13462 begin{article}
13463 \family default
13464  and, obviously, ends with the command 
13465 \family typewriter
13466
13467 \backslash
13468 end{article}
13469 \family default
13470 .
13471  Although this can be implemented in \SpecialChar LyX
13472 , I didn't included it, since it looks
13473  ugly and can confuse the novice user.
13474  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13475  code (the
13476  well-known 
13477 \begin_inset Quotes eld
13478 \end_inset
13479
13480 \SpecialChar TeX
13481  code
13482 \begin_inset Quotes erd
13483 \end_inset
13484
13485 ).
13486 \end_layout
13487
13488 \begin_layout Enumerate
13489 Information given at the beginning of the article (i.
13490 \begin_inset space \thinspace{}
13491 \end_inset
13492
13493 e.
13494 \begin_inset space \space{}
13495 \end_inset
13496
13497 title, subtitle, author, institution, running title, running author, abstract
13498  and keywords) must be included in an environment called 
13499 \begin_inset Quotes eld
13500 \end_inset
13501
13502 opening
13503 \begin_inset Quotes erd
13504 \end_inset
13505
13506 .
13507  This is not implemented in \SpecialChar LyX
13508 , so you must enter title, subtitle etc.
13509 \begin_inset space ~
13510 \end_inset
13511
13512 between two \SpecialChar TeX
13513  code lines (
13514 \family typewriter
13515
13516 \backslash
13517 begin{opening}
13518 \family default
13519  and 
13520 \family typewriter
13521
13522 \backslash
13523 end{opening}
13524 \family default
13525 ).
13526 \end_layout
13527
13528 \begin_layout Enumerate
13529 According to the user manual, the label of each bibliography item must be
13530  written as 
13531 \family typewriter
13532
13533 \backslash
13534 protect
13535 \backslash
13536 citeauthoryear{
13537 \family default
13538 \emph on
13539 author(s)
13540 \family typewriter
13541 \emph default
13542 }{
13543 \family default
13544 \emph on
13545 year
13546 \family typewriter
13547 \emph default
13548 }
13549 \family default
13550 .
13551 \end_layout
13552
13553 \begin_layout Standard
13554 The 
13555 \family typewriter
13556 kluwer.lyx
13557 \family default
13558  template takes care of all these 
13559 \begin_inset Quotes eld
13560 \end_inset
13561
13562 peculiarities
13563 \begin_inset Quotes erd
13564 \end_inset
13565
13566 .
13567  If you start a new paper using this template you don't need to do anything
13568  special.
13569  Just 
13570 \end_layout
13571
13572 \begin_layout Enumerate
13573 don't delete the \SpecialChar TeX
13574  code included in the template, and
13575 \end_layout
13576
13577 \begin_layout Enumerate
13578 copy the example bibliography item included in the template and modify it
13579  as necessary to enter new bibliography items.
13580 \end_layout
13581
13582 \begin_layout Section
13583 Koma-Script
13584 \end_layout
13585
13586 \begin_layout Standard
13587 by 
13588 \noun on
13589 Bernd Rellermeyer
13590 \end_layout
13591
13592 \begin_layout Subsection
13593 Overview
13594 \end_layout
13595
13596 \begin_layout Standard
13597 The \SpecialChar LyX
13598  document classes 
13599 \emph on
13600 article (koma-script)
13601 \emph default
13602
13603 \emph on
13604 report (koma-script)
13605 \emph default
13606
13607 \emph on
13608 book
13609 \emph default
13610  
13611 \emph on
13612 (koma-script)
13613 \emph default
13614 , and 
13615 \emph on
13616 letter
13617 \emph default
13618  
13619 \emph on
13620 (koma-script)
13621 \emph default
13622  correspond to the \SpecialChar LaTeX
13623  document classes 
13624 \family typewriter
13625 scrartcl.cls
13626 \family default
13627
13628 \family typewriter
13629 scrreprt.cls
13630 \family default
13631
13632 \family typewriter
13633 scrbook.cls
13634 \family default
13635 , and 
13636 \family typewriter
13637 scrlettr.cls
13638 \family default
13639 , resp.
13640 \begin_inset space ~
13641 \end_inset
13642
13643 of the Koma-Script family.
13644  They are replacements for the standard document classes 
13645 \family typewriter
13646 article.cls
13647 \family default
13648
13649 \family typewriter
13650 report.cls
13651 \family default
13652
13653 \family typewriter
13654 book.cls
13655 \family default
13656  and 
13657 \family typewriter
13658 letter.cls
13659 \family default
13660 , resp., and fit better to European typography conventions in a number of
13661  points.
13662 \end_layout
13663
13664 \begin_layout Itemize
13665 Standard character size is 11pt in 
13666 \emph on
13667 article (koma-script)
13668 \emph default
13669
13670 \emph on
13671 report (koma-script)
13672 \emph default
13673 , and 
13674 \emph on
13675 book (koma-script)
13676 \emph default
13677 , and 12pt in 
13678 \emph on
13679 letter (koma-script)
13680 \emph default
13681 .
13682 \end_layout
13683
13684 \begin_layout Itemize
13685 Headings, labels of the description environment, and a number of elements
13686  of the 
13687 \emph on
13688 letter (koma-script)
13689 \emph default
13690  document class are set in a bold sans serif font.
13691 \begin_inset Foot
13692 status collapsed
13693
13694 \begin_layout Plain Layout
13695 There is a big difference between the bold sans serif old cm fonts and new
13696  ec fonts, especially in the appearance of headings.
13697  In comparison, the ec bold sans serif fonts look a bit thin.
13698  Here the \SpecialChar LaTeX
13699  package 
13700 \family typewriter
13701 cmsd.sty by
13702 \family default
13703  
13704 \shape smallcaps
13705 Walter Schmidt
13706 \shape default
13707  helps to produce the 
13708 \begin_inset Quotes eld
13709 \end_inset
13710
13711 usual
13712 \begin_inset Quotes erd
13713 \end_inset
13714
13715  appearance when using the ec fonts.
13716 \end_layout
13717
13718 \end_inset
13719
13720  The numbering of chapter headings is made in the same way as the numbering
13721  of section headings, that is without the extra line 
13722 \begin_inset Quotes eld
13723 \end_inset
13724
13725 Chapter\SpecialChar ldots
13726
13727 \begin_inset Quotes erd
13728 \end_inset
13729
13730 .
13731  In addition, the appearance of the headings can be modified by using a
13732  number of options (in \SpecialChar LyX
13733  to be entered in the field 
13734 \family sans
13735 Extra
13736 \begin_inset space ~
13737 \end_inset
13738
13739 Options
13740 \family default
13741  of the dialog 
13742 \family sans
13743 Layout\SpecialChar menuseparator
13744 Document
13745 \family default
13746 ).
13747  
13748 \end_layout
13749
13750 \begin_layout Itemize
13751 The main means in the Koma-Script document classes to design the type area
13752  are the options 
13753 \family sans
13754 BCOR
13755 \family default
13756  and 
13757 \family sans
13758 DIV
13759 \family default
13760  (in \SpecialChar LyX
13761  to be entered in the extra class options field in the dialog 
13762 \family sans
13763 Document\SpecialChar menuseparator
13764 Settings
13765 \family default
13766 ).
13767  They make a clearer modification of page margins possible as do the options
13768  of the dialog 
13769 \family sans
13770 Document\SpecialChar menuseparator
13771 Settings
13772 \family default
13773 .
13774  
13775 \end_layout
13776
13777 \begin_layout Itemize
13778 The \SpecialChar LaTeX
13779  document classes of the Koma-Script family define a number of additional
13780  commands.
13781  Those part of it which makes sense in \SpecialChar LyX
13782  is implemented in corresponding
13783  paragraph types.
13784 \end_layout
13785
13786 \begin_layout Standard
13787 Detailed descriptions of the \SpecialChar LaTeX
13788  document classes of the Koma-Script family
13789  can be found in the Koma-Script documentation 
13790 \emph on
13791 scrguide
13792 \emph default
13793  (German) and 
13794 \emph on
13795 scrguien
13796 \emph default
13797  (English).
13798 \end_layout
13799
13800 \begin_layout Subsection
13801 article (koma-script), report (koma-script), and book (koma-script)
13802 \end_layout
13803
13804 \begin_layout Standard
13805 The document classes 
13806 \emph on
13807 article (koma-script)
13808 \emph default
13809
13810 \emph on
13811 report (koma-script)
13812 \emph default
13813 , and 
13814 \emph on
13815 book
13816 \emph default
13817  
13818 \emph on
13819 (koma-script)
13820 \emph default
13821  are implemented in the layout files 
13822 \family typewriter
13823 scrartcl.layout
13824 \family default
13825
13826 \family typewriter
13827 scrreprt.layout
13828 \family default
13829 , and 
13830 \family typewriter
13831 scrbook.layout
13832 \family default
13833 , resp.
13834  They contain all the paragraph types of the corresponding standard document
13835  classes 
13836 \emph on
13837 article
13838 \emph default
13839
13840 \emph on
13841 report
13842 \emph default
13843 , and 
13844 \emph on
13845 book
13846 \emph default
13847 , resp., partly modified, with the exception of the \SpecialChar LyX
13848  specific 
13849 \family sans
13850 List
13851 \family default
13852 -type, which is replaced by the new 
13853 \family sans
13854 Labeling
13855 \family default
13856 -type having the same functionality.
13857  Beside the 
13858 \family sans
13859 Labeling
13860 \family default
13861 -Type there is a number of new paragraph types added.
13862  They are 
13863 \emph on
13864 not
13865 \emph default
13866  part of 
13867 \emph on
13868 letter (koma-script)
13869 \emph default
13870 .
13871 \end_layout
13872
13873 \begin_layout Itemize
13874
13875 \family sans
13876 Addpart, Addchap
13877 \family default
13878
13879 \family sans
13880 Addsec
13881 \family default
13882 : are equivalents to 
13883 \family sans
13884 Part*, Chapter*
13885 \family default
13886  and 
13887 \family sans
13888 Section*
13889 \family default
13890 , resp., additionally inserting an entry in the table of contents.
13891  
13892 \family sans
13893 Addpart
13894 \family default
13895  and 
13896 \family sans
13897 Addchap
13898 \family default
13899  are not contained in 
13900 \emph on
13901 article (koma-script)
13902 \emph default
13903 .
13904 \end_layout
13905
13906 \begin_layout Itemize
13907
13908 \family sans
13909 Addchap*
13910 \family default
13911
13912 \family sans
13913 Addsec*
13914 \family default
13915 : behave exactly as 
13916 \family sans
13917 Addchap
13918 \family default
13919  and 
13920 \family sans
13921 Addsec
13922 \family default
13923 , resp., additionally clearing running heads.
13924  
13925 \family sans
13926 Addchap*
13927 \family default
13928  is not contained in 
13929 \emph on
13930 article (koma-script)
13931 \emph default
13932 .
13933 \begin_inset Foot
13934 status collapsed
13935
13936 \begin_layout Plain Layout
13937 There is also an 
13938 \family typewriter
13939
13940 \backslash
13941 addpart*
13942 \family default
13943  command in 
13944 \emph on
13945 book (koma-script)
13946 \emph default
13947  and in 
13948 \emph on
13949 report (koma-script)
13950 \emph default
13951 , but since this is identical to 
13952 \family sans
13953 Part*
13954 \family default
13955 , is has not been implemented in \SpecialChar LyX
13956 .
13957 \end_layout
13958
13959 \end_inset
13960
13961
13962 \end_layout
13963
13964 \begin_layout Itemize
13965
13966 \family sans
13967 Minisec
13968 \family default
13969 : generates a heading directly above the following paragraph in the standard
13970  character size without affecting the structure of the document.
13971 \end_layout
13972
13973 \begin_layout Itemize
13974
13975 \family sans
13976 Captionabove
13977 \family default
13978  and 
13979 \family sans
13980 Captionbelow
13981 \family default
13982  are special captions which respect the different space settings needed
13983  for captions placed above or below an element (if you follow strict typographic
13984  rules, you might want to place table captions always above the table).
13985  You can also use the class option 
13986 \family typewriter
13987 tablecaptionsabove
13988 \family default
13989 , which will switch 
13990 \family sans
13991 caption
13992 \family default
13993  to 
13994 \family sans
13995 captionabove
13996 \family default
13997  for tables and 
13998 \family sans
13999 captionbelow
14000 \family default
14001  for figures.
14002  You need at least Koma-Script version 2.8q to use this.
14003 \end_layout
14004
14005 \begin_layout Itemize
14006
14007 \family sans
14008 Dictum
14009 \family default
14010 : can be used to set a bonmot, e.
14011 \begin_inset space \thinspace{}
14012 \end_inset
14013
14014 g.
14015 \begin_inset space \space{}
14016 \end_inset
14017
14018 at the beginning of a chapter.
14019  If you use the optional argument (
14020 \family sans
14021 Insert\SpecialChar menuseparator
14022 Short
14023 \begin_inset space ~
14024 \end_inset
14025
14026 Title
14027 \family default
14028 ), you can insert the dictum's author there.
14029  Dictum and author are separated by a line.
14030  You need at least Koma-Script version 2.8q to use this.
14031  
14032 \family sans
14033 Dictum
14034 \family default
14035  is not contained in 
14036 \emph on
14037 article (koma-script)
14038 \emph default
14039 .
14040 \end_layout
14041
14042 \begin_layout Standard
14043 The following types, together with the standard types 
14044 \family sans
14045 Title
14046 \family default
14047
14048 \family sans
14049 Author
14050 \family default
14051 , and 
14052 \family sans
14053 Date
14054 \family default
14055 , form the title area of the document.
14056  They must be entered ahead of the first 
14057 \begin_inset Quotes eld
14058 \end_inset
14059
14060 ordinary
14061 \begin_inset Quotes erd
14062 \end_inset
14063
14064  paragraph.
14065 \begin_inset Foot
14066 status collapsed
14067
14068 \begin_layout Plain Layout
14069 The corresponding \SpecialChar LaTeX
14070  commands must appear before the 
14071 \family typewriter
14072
14073 \backslash
14074 maketitle
14075 \family default
14076  command.
14077 \end_layout
14078
14079 \end_inset
14080
14081  When such a type is used more than once, the latter usage overwrites the
14082  former one, that means, for every type only the latest usage is valid.
14083  The order of the different types however has, like 
14084 \family sans
14085 Title
14086 \family default
14087
14088 \family sans
14089 Author
14090 \family default
14091 , and 
14092 \family sans
14093 Date
14094 \family default
14095 , no effect on the appearance of the produced document.
14096 \end_layout
14097
14098 \begin_layout Itemize
14099
14100 \family sans
14101 Subject
14102 \family default
14103 : produces a centered paragraph above the ordinary title (
14104 \family sans
14105 Title
14106 \family default
14107
14108 \family sans
14109 Author
14110 \family default
14111
14112 \family sans
14113 Date
14114 \family default
14115 ) for the subject of the document.
14116 \end_layout
14117
14118 \begin_layout Itemize
14119
14120 \family sans
14121 Publishers
14122 \family default
14123 : produces a centered paragraph below the ordinary title (
14124 \family sans
14125 Title
14126 \family default
14127
14128 \family sans
14129 Author
14130 \family default
14131
14132 \family sans
14133 Date
14134 \family default
14135 ) for the publishers' name.
14136 \end_layout
14137
14138 \begin_layout Itemize
14139
14140 \family sans
14141 Dedication
14142 \family default
14143 : in 
14144 \emph on
14145 report (koma-script)
14146 \emph default
14147  and 
14148 \emph on
14149 book (koma-script)
14150 \emph default
14151  produces a centered paragraph on its own page behind the title page, or
14152  in 
14153 \emph on
14154 article (koma-script)
14155 \emph default
14156  produces a centered paragraph below the ordinary title (
14157 \family sans
14158 Title
14159 \family default
14160
14161 \family sans
14162 Author
14163 \family default
14164
14165 \family sans
14166 Date
14167 \family default
14168
14169 \family sans
14170 Publishers
14171 \family default
14172 ) for a dedication.
14173 \end_layout
14174
14175 \begin_layout Itemize
14176
14177 \family sans
14178 Titlehead
14179 \family default
14180 : produces a left aligned paragraph above the ordinary title (
14181 \family sans
14182 Title
14183 \family default
14184
14185 \family sans
14186 Author
14187 \family default
14188
14189 \family sans
14190 Date
14191 \family default
14192
14193 \family sans
14194 Subject
14195 \family default
14196 ) for a document`s head.
14197 \end_layout
14198
14199 \begin_layout Itemize
14200
14201 \family sans
14202 Uppertitleback
14203 \family default
14204 : produces in a double-sided print in 
14205 \emph on
14206 report (koma-script)
14207 \emph default
14208  and 
14209 \emph on
14210 book (koma-script)
14211 \emph default
14212  a left-aligned paragraph at the top of the title page`s back or has no
14213  effect in a single-sided print or in 
14214 \emph on
14215 article (koma-script)
14216 \emph default
14217 .
14218 \end_layout
14219
14220 \begin_layout Itemize
14221
14222 \family sans
14223 Lowertitleback
14224 \family default
14225 : produces in a double-sided print in 
14226 \emph on
14227 report (koma-script)
14228 \emph default
14229  and 
14230 \emph on
14231 book (koma-script)
14232 \emph default
14233  a left-aligned paragraph at the bottom of the title page`s back or has
14234  no effect in a single-sided print or in 
14235 \emph on
14236 article (koma-script)
14237 \emph default
14238 .
14239 \end_layout
14240
14241 \begin_layout Itemize
14242
14243 \family sans
14244 Extratitle
14245 \family default
14246 : produces a special 
14247 \begin_inset Quotes eld
14248 \end_inset
14249
14250 dirty
14251 \begin_inset Quotes erd
14252 \end_inset
14253
14254  page ahead of the actual document containing a paragraph without special
14255  formatting.
14256 \end_layout
14257
14258 \begin_layout Standard
14259 The layout files for the document classes 
14260 \emph on
14261 article (koma-script)
14262 \emph default
14263
14264 \emph on
14265 report (koma-script)
14266 \emph default
14267 , and 
14268 \emph on
14269 book (koma-script)
14270 \emph default
14271  do include the file 
14272 \family typewriter
14273 scrmacros.inc
14274 \family default
14275 .
14276  This is thought of as a place to define your own types.
14277  Copy scrmacros
14278 \family typewriter
14279 .inc
14280 \family default
14281  in your personal layout directory and edit the file!
14282 \end_layout
14283
14284 \begin_layout Subsection
14285 letter (koma-script)
14286 \end_layout
14287
14288 \begin_layout Standard
14289 \noindent
14290 The document class 
14291 \emph on
14292 letter (koma-script)
14293 \emph default
14294  is implemented in the layout file 
14295 \family typewriter
14296 scrlettr.layout
14297 \family default
14298 .
14299  It contains all the paragraph types of the corresponding standard document
14300  class 
14301 \emph on
14302 letter
14303 \emph default
14304 , partly modified, with the exception of the \SpecialChar LyX
14305  specific types 
14306 \family sans
14307 \SpecialChar LyX
14308 -Code
14309 \family default
14310  and 
14311 \family sans
14312 Comment
14313 \family default
14314  and the 
14315 \family sans
14316 List
14317 \family default
14318  type, which is replaced by the new 
14319 \family sans
14320 Labeling
14321 \family default
14322  type.
14323  In addition, it contains, in contrast to the standard document class, the
14324  standard types 
14325 \family sans
14326 \SpecialChar LaTeX
14327
14328 \family default
14329
14330 \family sans
14331 Quotation
14332 \family default
14333
14334 \family sans
14335 Quote
14336 \family default
14337 , and 
14338 \family sans
14339 Verse
14340 \family default
14341 .
14342  Furthermore, there are a number of new letter specific types.
14343 \end_layout
14344
14345 \begin_layout Standard
14346 The appearance of the letter produced by this document class can be controlled
14347  by a number of \SpecialChar LaTeX
14348  commands, which you can put in the \SpecialChar LaTeX
14349  preamble.
14350 \begin_inset Foot
14351 status collapsed
14352
14353 \begin_layout Plain Layout
14354 For example, the standard appearance of the letter`s heading, consisting
14355  of name and address, is quite self-willed.
14356  An 
14357 \begin_inset Quotes eld
14358 \end_inset
14359
14360 ordinary
14361 \begin_inset Quotes erd
14362 \end_inset
14363
14364  heading is produced by the following \SpecialChar LaTeX
14365  commands in the preamble:
14366 \end_layout
14367
14368 \begin_layout LyX-Code
14369
14370 \backslash
14371 firsthead{
14372 \backslash
14373 parbox[b]{
14374 \backslash
14375 textwidth}
14376 \end_layout
14377
14378 \begin_layout LyX-Code
14379   {
14380 \backslash
14381 ignorespaces 
14382 \backslash
14383 fromname
14384 \backslash
14385
14386 \backslash
14387  
14388 \backslash
14389 ignorespaces 
14390 \backslash
14391 fromaddress}} 
14392 \end_layout
14393
14394 \begin_layout LyX-Code
14395
14396 \backslash
14397 nexthead{
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 hfill 
14412 \backslash
14413 ignorespaces 
14414 \backslash
14415 pagename
14416 \backslash
14417  
14418 \backslash
14419 thepage}}
14420 \end_layout
14421
14422 \end_inset
14423
14424  A detailed German description of such \SpecialChar LaTeX
14425  commands can be found in the Koma-Script
14426  documentation 
14427 \emph on
14428 scrguide
14429 \emph default
14430 .
14431  With it, the letter's author can produce his personal letter layout.
14432 \end_layout
14433
14434 \begin_layout Standard
14435 The types 
14436 \family sans
14437 Letter
14438 \family default
14439  and 
14440 \family sans
14441 Opening
14442 \family default
14443  define the beginning of the letter and must be used in every letter.
14444  To emphasize them in the \SpecialChar LyX
14445  document class, they are marked with the letter
14446  
14447 \shape italic
14448 L
14449 \shape default
14450  or 
14451 \shape italic
14452 O
14453 \shape default
14454 , resp.
14455 \begin_inset space ~
14456 \end_inset
14457
14458 in the left margin.
14459  It is possible to write any number of letters in one file.
14460  An 
14461 \family sans
14462 Opening
14463 \family default
14464  type produces a new letter using the same addressee and a 
14465 \family sans
14466 Letter
14467 \family default
14468  type produces a new addressee.
14469  The types 
14470 \family sans
14471 Closing
14472 \family default
14473
14474 \family sans
14475 PS
14476 \family default
14477
14478 \family sans
14479 CC
14480 \family default
14481 , and 
14482 \family sans
14483 Encl
14484 \family default
14485  are ordinary paragraph types and can also be used several times in one
14486  and the same letter.
14487 \end_layout
14488
14489 \begin_layout Itemize
14490
14491 \family sans
14492 Letter
14493 \family default
14494 : produces a paragraph for the addressee and implicitly defines the beginning
14495  of the letter.
14496 \end_layout
14497
14498 \begin_layout Itemize
14499
14500 \family sans
14501 Opening
14502 \family default
14503 : produces a paragraph for the form of address and implicitly produces a
14504  new letter.
14505 \end_layout
14506
14507 \begin_layout Itemize
14508
14509 \family sans
14510 Closing
14511 \family default
14512 : produces a paragraph for a close.
14513 \end_layout
14514
14515 \begin_layout Itemize
14516
14517 \family sans
14518 PS
14519 \family default
14520 : produces a paragraph for a postscript.
14521 \end_layout
14522
14523 \begin_layout Itemize
14524
14525 \family sans
14526 CC
14527 \family default
14528 : produces a paragraph for a distribution list.
14529 \end_layout
14530
14531 \begin_layout Itemize
14532
14533 \family sans
14534 Encl
14535 \family default
14536 : produces a paragraph for enclosures.
14537 \end_layout
14538
14539 \begin_layout Standard
14540 The types 
14541 \family sans
14542 Name
14543 \family default
14544
14545 \family sans
14546 Signature
14547 \family default
14548
14549 \family sans
14550 Address
14551 \family default
14552
14553 \family sans
14554 Telephone
14555 \family default
14556
14557 \family sans
14558 Place
14559 \family default
14560
14561 \family sans
14562 Backaddress
14563 \family default
14564
14565 \family sans
14566 Specialmail
14567 \family default
14568
14569 \family sans
14570 Location
14571 \family default
14572
14573 \family sans
14574 Title
14575 \family default
14576 , and 
14577 \family sans
14578 Subject
14579 \family default
14580  are input types provided with a label to enter information, which will
14581  be processed by the document class.
14582 \begin_inset Foot
14583 status open
14584
14585 \begin_layout Plain Layout
14586 It could be seen as a matter of inconsequence, that the types 
14587 \family sans
14588 Letter
14589 \family default
14590  and 
14591 \family sans
14592 Opening
14593 \family default
14594  described above are not such input types as well.
14595  Because of the special meaning of those types, however, I have implemented
14596  them as ordinary paragraph types with a one letter mark in the left margin.
14597  Moreover, it would affect my feeling of symmetry, if the 
14598 \family sans
14599 Opening
14600 \family default
14601  type and the 
14602 \family sans
14603 Closing
14604 \family default
14605  type had such a serious different appearance.
14606 \end_layout
14607
14608 \end_inset
14609
14610  The types must be used ahead of the corresponding 
14611 \family sans
14612 Opening
14613 \family default
14614  type.
14615 \end_layout
14616
14617 \begin_layout Standard
14618 An implementation of these types in a WYSIWYG fashion does not seem to make
14619  sense, because the real appearance of the produced letter does not only
14620  depend on the usage of the particular type, but also on other factors.
14621  For example, a signature entered in the 
14622 \family sans
14623 Signature
14624 \family default
14625  type will in the standard behavior appear in the produced letter only,
14626  when in the same letter also a 
14627 \family sans
14628 Closing
14629 \family default
14630  type is used.
14631  The entered value of the 
14632 \family sans
14633 Telephone
14634 \family default
14635  type will in the standard behavior not appear in the produced letter at
14636  all.
14637  The possibility to design the letter`s heading freely is already indicated
14638  in a footnote above.
14639 \end_layout
14640
14641 \begin_layout Standard
14642 The input types can also be used as empty paragraphs.
14643  This makes sense e.
14644 \begin_inset space \thinspace{}
14645 \end_inset
14646
14647 g.
14648 \begin_inset space \space{}
14649 \end_inset
14650
14651 for the 
14652 \family sans
14653 Signature
14654 \family default
14655  type.
14656  If the 
14657 \family sans
14658 Signature
14659 \family default
14660  type is not used at all, in the standard behavior the value of the 
14661 \family sans
14662 Name
14663 \family default
14664  type is used as signature, whereas if an empty 
14665 \family sans
14666 Signature
14667 \family default
14668  type is used, no signature value is defined.
14669 \end_layout
14670
14671 \begin_layout Standard
14672 By using the input types it is possible to write a letter template, containing
14673  filled input types with your personal dates (name, address, etc.) and empty
14674  input types for other dates you want to enter.
14675 \end_layout
14676
14677 \begin_layout Itemize
14678
14679 \family sans
14680 Name
14681 \family default
14682 : sender's name, in the standard behavior appears as a centered paragraph
14683  in small caps in the letter`s heading.
14684 \end_layout
14685
14686 \begin_layout Itemize
14687
14688 \family sans
14689 Signature
14690 \family default
14691 : sender's signature, in the standard behavior appears below the 
14692 \family sans
14693 Closing
14694 \family default
14695  type.
14696  If no 
14697 \family sans
14698 Signature
14699 \family default
14700  type is used, the value of the 
14701 \family sans
14702 Name
14703 \family default
14704  type appears instead.
14705 \end_layout
14706
14707 \begin_layout Itemize
14708
14709 \family sans
14710 Address
14711 \family default
14712 : sender's address, in the standard behavior appears in a centered paragraph
14713  in the letter`s heading below the sender's name.
14714 \end_layout
14715
14716 \begin_layout Itemize
14717
14718 \family sans
14719 Telephone
14720 \family default
14721 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
14722  variable
14723  
14724 \family typewriter
14725
14726 \backslash
14727 telephonenum
14728 \family default
14729 .
14730 \end_layout
14731
14732 \begin_layout Itemize
14733
14734 \family sans
14735 Place
14736 \family default
14737 : place of the letter`s making.
14738 \end_layout
14739
14740 \begin_layout Itemize
14741
14742 \family sans
14743 Date
14744 \family default
14745 : date of the letter`s making.
14746  
14747 \family sans
14748 Place
14749 \family default
14750  and 
14751 \family sans
14752 Date
14753 \family default
14754 , in the standard behavior, produce the place and the date in a right-aligned
14755  line below the addressee's field.
14756  If an empty 
14757 \family sans
14758 Date
14759 \family default
14760  type is used, neither place nor date appear, independent of the value of
14761  the 
14762 \family sans
14763 Place
14764 \family default
14765  type.
14766  If no 
14767 \family sans
14768 Date
14769 \family default
14770  type is used, the date of the letter `s production is used.
14771 \end_layout
14772
14773 \begin_layout Itemize
14774
14775 \family sans
14776 Backaddress
14777 \family default
14778 : sender`s back address, in the standard behavior appears above the addressee's
14779  field in a small sans serif font.
14780 \end_layout
14781
14782 \begin_layout Itemize
14783
14784 \family sans
14785 Specialmail
14786 \family default
14787 : special mail information, in the standard behavior appears underlined
14788  above the addressee's field below the back address.
14789 \end_layout
14790
14791 \begin_layout Itemize
14792
14793 \family sans
14794 Location
14795 \family default
14796 : additional information, in the standard behavior appears on right side
14797  below the addressee`s field.
14798 \end_layout
14799
14800 \begin_layout Itemize
14801
14802 \family sans
14803 Title
14804 \family default
14805 : the letter's title, in the standard behavior appears in a big, bold, sans
14806  serif font above the subject.
14807 \end_layout
14808
14809 \begin_layout Itemize
14810
14811 \family sans
14812 Subject
14813 \family default
14814 : the letter's subject, in the standard behavior appears in a bold font
14815  above the 
14816 \family sans
14817 Opening
14818 \family default
14819  paragraph.
14820 \end_layout
14821
14822 \begin_layout Standard
14823 The types 
14824 \family sans
14825 Yourref
14826 \family default
14827
14828 \family sans
14829 Yourmail
14830 \family default
14831
14832 \family sans
14833 Myref
14834 \family default
14835
14836 \family sans
14837 Customer
14838 \family default
14839 , and 
14840 \family sans
14841 Invoice
14842 \family default
14843  produce a business letter like line above the 
14844 \family sans
14845 Title
14846 \family default
14847  line containing the fields 
14848 \begin_inset Quotes eld
14849 \end_inset
14850
14851 Your ref.
14852 \begin_inset Quotes erd
14853 \end_inset
14854
14855
14856 \begin_inset Quotes eld
14857 \end_inset
14858
14859 Your letter of
14860 \begin_inset Quotes erd
14861 \end_inset
14862
14863
14864 \begin_inset Quotes eld
14865 \end_inset
14866
14867 Our ref.
14868 \begin_inset Quotes erd
14869 \end_inset
14870
14871
14872 \begin_inset Quotes eld
14873 \end_inset
14874
14875 Customer no.
14876 \begin_inset Quotes erd
14877 \end_inset
14878
14879
14880 \begin_inset Quotes eld
14881 \end_inset
14882
14883 Invoice no.
14884 \begin_inset Quotes erd
14885 \end_inset
14886
14887 , and 
14888 \begin_inset Quotes eld
14889 \end_inset
14890
14891 Date
14892 \begin_inset Quotes erd
14893 \end_inset
14894
14895 .
14896  For the date field, the value of the 
14897 \family sans
14898 Date
14899 \family default
14900  type is used.
14901  If one of these 
14902 \begin_inset Quotes eld
14903 \end_inset
14904
14905 business letter types
14906 \begin_inset Quotes erd
14907 \end_inset
14908
14909  is used, the value of the 
14910 \family sans
14911 Place
14912 \family default
14913  type however does not appear, but only the \SpecialChar LaTeX
14914  variable 
14915 \family typewriter
14916
14917 \backslash
14918 fromplace
14919 \family default
14920  is set.
14921  The ordinary output of place and date in a right-aligned line below the
14922  addressee`s field is suppressed.
14923  The types are implemented as input types provided with a label and must
14924  be used ahead of the corresponding 
14925 \family sans
14926 Opening
14927 \family default
14928  type.
14929 \end_layout
14930
14931 \begin_layout Itemize
14932
14933 \family sans
14934 Yourref
14935 \family default
14936 : Your ref.
14937 \end_layout
14938
14939 \begin_layout Itemize
14940
14941 \family sans
14942 Yourmail
14943 \family default
14944 : Your letter of.
14945 \end_layout
14946
14947 \begin_layout Itemize
14948
14949 \family sans
14950 Myref
14951 \family default
14952 : Our ref.
14953 \end_layout
14954
14955 \begin_layout Itemize
14956
14957 \family sans
14958 Customer
14959 \family default
14960 : Customer no.
14961 \end_layout
14962
14963 \begin_layout Itemize
14964
14965 \family sans
14966 Invoice
14967 \family default
14968 : Invoice no.
14969 \end_layout
14970
14971 \begin_layout Subsection
14972 The new letter class: letter (koma-script v.2)
14973 \end_layout
14974
14975 \begin_layout Standard
14976 by 
14977 \noun on
14978 Jürgen Spitzmüller
14979 \end_layout
14980
14981 \begin_layout Standard
14982 \begin_inset VSpace medskip
14983 \end_inset
14984
14985
14986 \end_layout
14987
14988 \begin_layout Standard
14989 \noindent
14990 Koma-Script version 2.8 has introduced a new letter class 
14991 \family typewriter
14992 scrlttr2
14993 \family default
14994  which supersedes the now unsupported 
14995 \family typewriter
14996 scrlettr
14997 \family default
14998 .
14999  It has — on the \SpecialChar LaTeX
15000  side — a completely new interface and is not compatible
15001  with the old class.
15002  Therefore, \SpecialChar LyX
15003  supports both, though it is recommended you use the new class.
15004 \end_layout
15005
15006 \begin_layout Standard
15007 This class covers the same functionality as 
15008 \emph on
15009 letter (koma-script),
15010 \emph default
15011  and a few more.
15012  The basic items are 
15013 \family sans
15014 Address
15015 \family default
15016  (receiver's address, same as 
15017 \family sans
15018 Letter
15019 \family default
15020  in the old layout), 
15021 \family sans
15022 Opening
15023 \family default
15024 , and 
15025 \family sans
15026 Closing
15027 \family default
15028 .
15029  
15030 \family sans
15031 NextAddress
15032 \family default
15033  will start a new letter (i.
15034 \begin_inset space \thinspace{}
15035 \end_inset
15036
15037 e.
15038 \begin_inset space \space{}
15039 \end_inset
15040
15041 you can write several letters per document).
15042  New elements are sender's 
15043 \family sans
15044 E-Mail
15045 \family default
15046
15047 \family sans
15048 URL
15049 \family default
15050
15051 \family sans
15052 Fax
15053 \family default
15054
15055 \family sans
15056 Bank
15057 \family default
15058  and the possibility to use a 
15059 \family sans
15060 Logo
15061 \family default
15062  (via 
15063 \family sans
15064 Insert\SpecialChar menuseparator
15065 Graphics
15066 \family default
15067 ) in the header.
15068 \end_layout
15069
15070 \begin_layout Standard
15071 The biggest improvement is, though, that the letter's layout is configurable
15072  to meet almost any needs.
15073  This can be done via the preamble or with a special style file (Letter
15074  Class Option, extension 
15075 \family typewriter
15076 *.lco
15077 \family default
15078 ), that will be read in as a class option.
15079 \begin_inset Foot
15080 status collapsed
15081
15082 \begin_layout Plain Layout
15083 The KOMA package comes with some default 
15084 \family typewriter
15085 *.lco
15086 \family default
15087  files.
15088  There is, for instance, a 
15089 \family typewriter
15090 DIN.lco
15091 \family default
15092  file that follows german typesetting rules, or a 
15093 \family typewriter
15094 KOMAold.lco
15095 \family default
15096  that provides the default layout of the old 
15097 \family typewriter
15098 scrlettr
15099 \family default
15100  class.
15101  The latter can be loaded with the class option 
15102 \family typewriter
15103 KOMAold
15104 \family default
15105 , inserted via the 
15106 \family sans
15107 \bar under
15108 L
15109 \bar default
15110 ayout\SpecialChar menuseparator
15111
15112 \bar under
15113 D
15114 \bar default
15115 ocument\SpecialChar menuseparator
15116 Extra Options
15117 \family default
15118  field.
15119 \end_layout
15120
15121 \end_inset
15122
15123  Have a look at the 
15124 \emph on
15125 koma-letter2
15126 \emph default
15127  template that is included in \SpecialChar LyX
15128  for examples.
15129  A detailed description is to be found in the Koma-Script documentation
15130  (
15131 \emph on
15132 scrguide
15133 \emph default
15134 ).
15135 \end_layout
15136
15137 \begin_layout Subsection
15138 Problems
15139 \end_layout
15140
15141 \begin_layout Standard
15142 Visualizing the Koma-Script document classes in \SpecialChar LyX
15143 , the \SpecialChar LyX
15144  internals cause some
15145  problems.
15146 \end_layout
15147
15148 \begin_layout Itemize
15149 The chapter number of a 
15150 \family sans
15151 Chapter
15152 \family default
15153  type appears on a line of its own above the chapter heading instead of
15154  appearing in the same line ahead of it.
15155  The cause for that is the \SpecialChar LyX
15156  internal behavior for the labeltype 
15157 \family sans
15158 Counter_Chapter
15159 \family default
15160  in the layout file.
15161 \end_layout
15162
15163 \begin_layout Itemize
15164 The headings of the types 
15165 \family sans
15166 Addchap
15167 \family default
15168  and 
15169 \family sans
15170 Addsec
15171 \family default
15172  are only put in the 
15173 \begin_inset Quotes eld
15174 \end_inset
15175
15176 true
15177 \begin_inset Quotes erd
15178 \end_inset
15179
15180  \SpecialChar LaTeX
15181  table of contents, but not in the \SpecialChar LyX
15182  table of contents (
15183 \family sans
15184 Document\SpecialChar menuseparator
15185 Table
15186 \begin_inset space ~
15187 \end_inset
15188
15189 of
15190 \begin_inset space ~
15191 \end_inset
15192
15193 Contents
15194 \family default
15195 ).
15196 \end_layout
15197
15198 \begin_layout Itemize
15199 The paragraphs in a 
15200 \emph on
15201 letter
15202 \emph default
15203  document class appear in a skip separation mode, not indented.
15204  This is the standard behavior, no special \SpecialChar LaTeX
15205  commands are needed for that.
15206  But in the 
15207 \family sans
15208 Document\SpecialChar menuseparator
15209 Settings
15210 \family default
15211  dialog the corresponding radio button indicates 
15212 \family sans
15213 Indent
15214 \family default
15215 .
15216  A 
15217 \family sans
15218 Skip
15219 \family default
15220  value always has the effect that extra \SpecialChar LaTeX
15221  commands are inserted in the document
15222  to produce the gap, which is not what is wanted in this case.
15223 \end_layout
15224
15225 \begin_layout Section
15226 Memoir
15227 \end_layout
15228
15229 \begin_layout Standard
15230 By 
15231 \noun on
15232 Jürgen Spitzmüller
15233 \end_layout
15234
15235 \begin_layout Subsection
15236 Overview
15237 \end_layout
15238
15239 \begin_layout Standard
15240 Memoir is a very powerful and constantly evolving class.
15241  It has been designed with regard to fictional and non-fictional literature.
15242  Its aim is to let the user have maximum control over the typesetting of
15243  his document.
15244  Memoir is based on the standard book class, but it can also emulate the
15245  article class (see below).
15246 \end_layout
15247
15248 \begin_layout Standard
15249 Peter Wilson, the developer of Memoir, is known as the author of lots of
15250  useful packages in the \SpecialChar LaTeX
15251  world.
15252  Most of them have been merged with Memoir.
15253  Therefore, it is much easier to layout the table of contents, appendices,
15254  chapter designs and such.
15255  \SpecialChar LyX
15256 , though, does not support all of these goodies natively.
15257  Some of them might be added to forthcoming releases
15258 \begin_inset Foot
15259 status collapsed
15260
15261 \begin_layout Plain Layout
15262 You are invited to send suggestions to 
15263 \begin_inset Flex URL
15264 status collapsed
15265
15266 \begin_layout Plain Layout
15267
15268 lyx-devel@lists.lyx.org
15269 \end_layout
15270
15271 \end_inset
15272
15273 .
15274 \end_layout
15275
15276 \end_inset
15277
15278 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15279 's framework.
15280  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15281
15282  commands (\SpecialChar TeX
15283  code
15284 \begin_inset Foot
15285 status collapsed
15286
15287 \begin_layout Plain Layout
15288 Cf.
15289 \begin_inset ERT
15290 status collapsed
15291
15292 \begin_layout Plain Layout
15293
15294
15295 \backslash
15296  
15297 \end_layout
15298
15299 \end_inset
15300
15301 section
15302 \begin_inset space ~
15303 \end_inset
15304
15305
15306 \begin_inset CommandInset ref
15307 LatexCommand ref
15308 reference "sec:Inserting-TeX-Code"
15309
15310 \end_inset
15311
15312  for details.
15313 \end_layout
15314
15315 \end_inset
15316
15317 ).
15318  In this section, we can only list those features that are natively supported
15319  by \SpecialChar LyX
15320 .
15321  For detailed descriptions (and for the rest of features) we recommend you
15322  have a look at the detailed manual of the Memoir class
15323 \begin_inset Foot
15324 status collapsed
15325
15326 \begin_layout Plain Layout
15327 Cf.
15328 \begin_inset ERT
15329 status collapsed
15330
15331 \begin_layout Plain Layout
15332
15333
15334 \backslash
15335  
15336 \end_layout
15337
15338 \end_inset
15339
15340
15341 \begin_inset Flex URL
15342 status collapsed
15343
15344 \begin_layout Plain Layout
15345
15346 CTAN:/macros/latex/memoir/memman.pdf
15347 \end_layout
15348
15349 \end_inset
15350
15351 .
15352 \end_layout
15353
15354 \end_inset
15355
15356 , which is not only a user guide for the class, but also both a comprehensive
15357  description on good typesetting and a superb example for good typesetting
15358  itself.
15359 \end_layout
15360
15361 \begin_layout Subsection
15362 Basic features and restrictions
15363 \end_layout
15364
15365 \begin_layout Standard
15366 Memoir supports basically all features of the standard book classes.
15367  There are, however, some differences, as follows:
15368 \end_layout
15369
15370 \begin_layout Description
15371 Font
15372 \begin_inset space ~
15373 \end_inset
15374
15375 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15376 \end_layout
15377
15378 \begin_layout Description
15379 Page
15380 \begin_inset space ~
15381 \end_inset
15382
15383 style: The fancy page style is not supported, due to a command clash between
15384  Memoir and the fancyhdr package (they both define a command with the same
15385  name, which confuses \SpecialChar LaTeX
15386 ).
15387  Instead, Memoir comes with a number of its own page styles (see 
15388 \family sans
15389 Layout\SpecialChar menuseparator
15390 Document\SpecialChar menuseparator
15391 Page
15392 \begin_inset space ~
15393 \end_inset
15394
15395 Style
15396 \family default
15397 ).
15398  If you want to use these for the chapter pages, you have to use the command
15399  
15400 \family typewriter
15401
15402 \backslash
15403 chapterstyle
15404 \family default
15405  in the main text or in preamble (e.
15406 \begin_inset space \thinspace{}
15407 \end_inset
15408
15409 g.
15410 \begin_inset space \space{}
15411 \end_inset
15412
15413
15414 \family typewriter
15415
15416 \backslash
15417 chapterstyle{companion}
15418 \family default
15419 ).
15420 \end_layout
15421
15422 \begin_layout Description
15423 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15424  optional argument in the standard classes.
15425  With this, you can specify an alternative version of the title for the
15426  table of contents and the headers (for instance, if the title is too long).
15427  In \SpecialChar LyX
15428 , you can do this via 
15429 \family sans
15430 Insert\SpecialChar menuseparator
15431 Short
15432 \begin_inset space ~
15433 \end_inset
15434
15435 Title
15436 \family default
15437  at the beginning of a chapter/section.
15438  Memoir features a second optional argument and thus separates the table
15439  of contents from the header.
15440  You can define three variants of a title with this: one for the main text,
15441  one for the table of contents, and one for the headers.
15442  Simply insert two optional arguments if you need this feature, the first
15443  one containing the short title for the Table of Contents, the second one
15444  containing an alternative short title for the headers.
15445 \end_layout
15446
15447 \begin_layout Description
15448 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15449  of contents, the list of figures and the list of table start a new page
15450  automatically.
15451  Memoir does not follow this route.
15452  You have to insert a page break yourself, if you want to have one.
15453 \end_layout
15454
15455 \begin_layout Description
15456 Titlepage: For some unknown reason, Memoir uses pagination on the title
15457  page (in the standard classes, title pages are 
15458 \begin_inset Quotes eld
15459 \end_inset
15460
15461 empty
15462 \begin_inset Quotes erd
15463 \end_inset
15464
15465 ).
15466  If you want an empty title page, type 
15467 \family typewriter
15468
15469 \backslash
15470 aliaspagestyle{title}{empty}
15471 \family default
15472  in the preamble.
15473 \end_layout
15474
15475 \begin_layout Description
15476 Article: With the class option 
15477 \emph on
15478 article
15479 \emph default
15480  (to be inserted in 
15481 \family sans
15482 Layout\SpecialChar menuseparator
15483 Document\SpecialChar menuseparator
15484 Extra
15485 \begin_inset space ~
15486 \end_inset
15487
15488 Options
15489 \family default
15490 ), you can emulate article style.
15491  That is, counters (footnotes, figures, tables etc.) will not be reset on
15492  new chapters, chapters don't start a new page (but are—in contrary to 
15493 \begin_inset Quotes eld
15494 \end_inset
15495
15496 real
15497 \begin_inset Quotes erd
15498 \end_inset
15499
15500  article classes—still allowed), parts, though, use their own page, as in
15501  book.
15502 \end_layout
15503
15504 \begin_layout Description
15505 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15506  font commands, which have been used in the old \SpecialChar LaTeX
15507  version 2.09 (e.
15508 \begin_inset space \thinspace{}
15509 \end_inset
15510
15511 g.
15512 \begin_inset space \space{}
15513 \end_inset
15514
15515
15516 \family typewriter
15517
15518 \backslash
15519 rm
15520 \family default
15521
15522 \family typewriter
15523
15524 \backslash
15525 it
15526 \family default
15527 ).
15528  It produces an error and stops \SpecialChar LaTeX
15529  whenever such a command appears.
15530  The class option 
15531 \emph on
15532 oldfontcommands
15533 \emph default
15534  reallows the commands and spits out warnings instead (which does at least
15535  not stop \SpecialChar LaTeX
15536 ).
15537  Since a lot of packages and particularly Bib\SpecialChar TeX
15538  style files are still using
15539  those commands, we have decided to use this option by default.
15540 \end_layout
15541
15542 \begin_layout Subsection
15543 Extra features
15544 \end_layout
15545
15546 \begin_layout Standard
15547 We will only describe the features supported by \SpecialChar LyX
15548  (which is not much currently).
15549  Please consult the Memoir manual
15550 \begin_inset Foot
15551 status collapsed
15552
15553 \begin_layout Plain Layout
15554 Cf.
15555 \begin_inset ERT
15556 status collapsed
15557
15558 \begin_layout Plain Layout
15559
15560
15561 \backslash
15562  
15563 \end_layout
15564
15565 \end_inset
15566
15567
15568 \begin_inset Flex URL
15569 status collapsed
15570
15571 \begin_layout Plain Layout
15572
15573 CTAN:/macros/latex/memoir/memman.pdf
15574 \end_layout
15575
15576 \end_inset
15577
15578 .
15579 \end_layout
15580
15581 \end_inset
15582
15583  for details.
15584 \end_layout
15585
15586 \begin_layout Description
15587 Abstract: You may wonder why an abstract is an extra feature.
15588  Well, it is in book class.
15589  Usually books don't have abstracts.
15590  Memoir, however, has.
15591  You can use it wherever and how often you like.
15592 \end_layout
15593
15594 \begin_layout Description
15595 Chapterprecis: You may know this older typesetting style: The contents of
15596  a chapter are summarized below the title and also in the table of contents
15597  (e.
15598 \begin_inset space \thinspace{}
15599 \end_inset
15600
15601 g.
15602 \begin_inset space \space{}
15603 \end_inset
15604
15605
15606 \emph on
15607 Our hero arrives in Troia; he loses some friends; he finds others
15608 \emph default
15609 ).
15610  Chapterprecis does exactly this.
15611  It is therefore only sensible below a chapter.
15612 \end_layout
15613
15614 \begin_layout Description
15615 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15616  The epigraph environment provides an elegant way of typesetting such a
15617  motto.
15618  The motto itself (text) and its author (source) are divided by a short
15619  line.
15620  Unfortunately, we have to fool \SpecialChar LyX
15621  a bit here again, since the environment
15622  needs two arguments (text and source).
15623  In this case, we have to use curly brackets (in \SpecialChar TeX
15624  mode) between the two
15625  arguments: 
15626 \emph on
15627 <smart slogan>
15628 \emph default
15629  
15630 \family typewriter
15631 }{
15632 \family default
15633  
15634 \emph on
15635 <author of the slogan>.
15636 \end_layout
15637
15638 \begin_layout Description
15639 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15640  complex figurative poems).
15641  \SpecialChar LyX
15642  can only support a few of them.
15643  One is poemtitle, which is a centered title for poems, which will also
15644  be added to the table of contents (verse is the standard environment for
15645  poems.
15646  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15647  code,
15648  because they have to be nested inside regular verse environments, which
15649  is not possible with \SpecialChar LyX
15650 ).
15651 \end_layout
15652
15653 \begin_layout Description
15654 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15655 \end_layout
15656
15657 \begin_layout Section
15658 Article (mwart), book (mwbk) and report (mwrep)
15659 \begin_inset Argument status
15660 status collapsed
15661
15662 \begin_layout Plain Layout
15663 The 
15664 \family typewriter
15665 mw
15666 \family default
15667  Classes
15668 \end_layout
15669
15670 \end_inset
15671
15672
15673 \end_layout
15674
15675 \begin_layout Standard
15676 by 
15677 \noun on
15678 Tomasz Luczak
15679 \end_layout
15680
15681 \begin_layout Standard
15682 The \SpecialChar LyX
15683  document classes 
15684 \emph on
15685 article (mwart)
15686 \emph default
15687
15688 \emph on
15689 report (mwrep)
15690 \emph default
15691  and 
15692 \emph on
15693 book
15694 \emph default
15695  
15696 \emph on
15697 (mwbk)
15698 \emph default
15699  correspond to the \SpecialChar LaTeX
15700  document classes 
15701 \family typewriter
15702 mwart.cls
15703 \family default
15704
15705 \family typewriter
15706 mwrep.cls
15707 \family default
15708  and 
15709 \family typewriter
15710 mwbk.cls
15711 \family default
15712 , resp.
15713  They are replacements for the standard document classes 
15714 \family typewriter
15715 article.cls
15716 \family default
15717
15718 \family typewriter
15719 report.cls
15720 \family default
15721  and 
15722 \family typewriter
15723 book.cls
15724 \family default
15725 , resp., and fit better to Polish typography conventions in a number of points.
15726  
15727 \end_layout
15728
15729 \begin_layout Standard
15730 Basic differences:
15731 \end_layout
15732
15733 \begin_layout Itemize
15734 Unnumbered titles (with star, e.
15735 \begin_inset space \thinspace{}
15736 \end_inset
15737
15738 g.
15739 \begin_inset space \space{}
15740 \end_inset
15741
15742
15743 \family sans
15744 Section*
15745 \family default
15746 ) are added into table of contents,
15747 \end_layout
15748
15749 \begin_layout Itemize
15750 Additional page styles:
15751 \begin_inset Separator parbreak
15752 \end_inset
15753
15754
15755 \end_layout
15756
15757 \begin_deeper
15758 \begin_layout Description
15759 uheadings header with separated lines,
15760 \end_layout
15761
15762 \begin_layout Description
15763 myheadings custom header, contents headers via commands: 
15764 \family typewriter
15765
15766 \backslash
15767 markright
15768 \family default
15769  and 
15770 \family typewriter
15771
15772 \backslash
15773 markboth
15774 \family default
15775 ,
15776 \end_layout
15777
15778 \begin_layout Description
15779 myuheadings custom header with separated lines,
15780 \end_layout
15781
15782 \begin_layout Description
15783 outer page number is placed on outer side of page
15784 \end_layout
15785
15786 \end_deeper
15787 \begin_layout Itemize
15788 Options 
15789 \begin_inset Separator parbreak
15790 \end_inset
15791
15792
15793 \end_layout
15794
15795 \begin_deeper
15796 \begin_layout Description
15797 rmheadings serif titles — default,
15798 \end_layout
15799
15800 \begin_layout Description
15801 sfheadings sansserif titles,
15802 \end_layout
15803
15804 \begin_layout Description
15805 authortitle on title page first placed is author next title — default,
15806 \end_layout
15807
15808 \begin_layout Description
15809 titleauthor on title page first placed is title next author,
15810 \end_layout
15811
15812 \begin_layout Description
15813 withmarginpar reserve place on page for margins.
15814 \end_layout
15815
15816 \end_deeper
15817 \begin_layout Section
15818 Paper
15819 \end_layout
15820
15821 \begin_layout Standard
15822 The document class 
15823 \family sans
15824 paper
15825 \family default
15826  provides an alternative to the standard 
15827 \family sans
15828 article
15829 \family default
15830  class.
15831  It provides similar functionality, but you might prefer this layout with
15832  sans serif sections, headings, and more.
15833 \end_layout
15834
15835 \begin_layout Section
15836 Rev\SpecialChar TeX
15837 4
15838 \end_layout
15839
15840 \begin_layout Standard
15841 by 
15842 \noun on
15843 Amir Karger
15844 \end_layout
15845
15846 \begin_layout Standard
15847 \begin_inset VSpace bigskip
15848 \end_inset
15849
15850
15851 \end_layout
15852
15853 \begin_layout Standard
15854 \noindent
15855 The 
15856 \family sans
15857 Revtex
15858 \begin_inset space ~
15859 \end_inset
15860
15861 4
15862 \family default
15863  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
15864  4.0 (the 
15865 \begin_inset Formula $\beta$
15866 \end_inset
15867
15868  release of May, 1999) class.
15869 \end_layout
15870
15871 \begin_layout Standard
15872 \SpecialChar LyX
15873  has a 
15874 \family sans
15875 Revtex
15876 \family default
15877  textclass, which works with Rev\SpecialChar TeX
15878  3.1.
15879  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
15880  2.09.
15881  That means that it doesn't interact very well with \SpecialChar LyX
15882 , which requires \SpecialChar LaTeX2e
15883 , although
15884  it has been kludged to work.
15885  Since Rev\SpecialChar TeX
15886  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
15887 , \SpecialChar LyX
15888  with the
15889  
15890 \family sans
15891 Rev\SpecialChar TeX
15892
15893 \begin_inset space ~
15894 \end_inset
15895
15896 4
15897 \family default
15898  textclass should also be pretty easy to use.
15899 \end_layout
15900
15901 \begin_layout Standard
15902 These documents are supposed to be used in 
15903 \emph on
15904 addition
15905 \emph default
15906  to the Rev\SpecialChar TeX
15907  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
15908  macros,
15909  and assume you'll know what to put in the preamble if necessary.
15910 \end_layout
15911
15912 \begin_layout Subsection
15913 Installation
15914 \end_layout
15915
15916 \begin_layout Standard
15917 All you need to do is install Rev\SpecialChar TeX
15918  4, as described in the package's README
15919  file.
15920  The package can be found at The Rev\SpecialChar TeX
15921  4 Web Site 
15922 \begin_inset Flex URL
15923 status collapsed
15924
15925 \begin_layout Plain Layout
15926
15927 http://publish.aps.org/revtex4/
15928 \end_layout
15929
15930 \end_inset
15931
15932 .
15933  Install it somewhere that \SpecialChar LaTeX
15934  can see it.
15935  Test it by trying to \SpecialChar LaTeX
15936  a short Rev\SpecialChar TeX
15937  4 document in some random directory (i.
15938 \begin_inset space \thinspace{}
15939 \end_inset
15940
15941 e.
15942 \begin_inset space \space{}
15943 \end_inset
15944
15945 not the directory where you installed the class file.) Then, if you reconfigure
15946  \SpecialChar LyX
15947 , it will find the class file and let you use the Rev\SpecialChar TeX
15948 4 textclass.
15949 \end_layout
15950
15951 \begin_layout Standard
15952 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
15953  4 document
15954  using 
15955 \family typewriter
15956 tex2lyx
15957 \family default
15958 , or to use the 
15959 \family sans
15960 Revtex
15961 \begin_inset space ~
15962 \end_inset
15963
15964 4
15965 \family default
15966  template, found in the templates directory.
15967 \end_layout
15968
15969 \begin_layout Subsection
15970 Preamble Matter
15971 \end_layout
15972
15973 \begin_layout Standard
15974 Optional arguments to 
15975 \family typewriter
15976
15977 \backslash
15978 documentclass
15979 \family default
15980 , like 
15981 \begin_inset Quotes eld
15982 \end_inset
15983
15984 preprint
15985 \begin_inset Quotes erd
15986 \end_inset
15987
15988  and 
15989 \begin_inset Quotes eld
15990 \end_inset
15991
15992 aps
15993 \begin_inset Quotes erd
15994 \end_inset
15995
15996 , go in the 
15997 \family sans
15998 E
15999 \bar under
16000 x
16001 \bar default
16002 tra
16003 \begin_inset space ~
16004 \end_inset
16005
16006 Options
16007 \family default
16008  field in the 
16009 \family sans
16010 Document
16011 \begin_inset space ~
16012 \end_inset
16013
16014 Layout
16015 \family default
16016  dialog, as usual.
16017  Remember that in Rev\SpecialChar TeX
16018 , at least one optional argument is required! 
16019 \end_layout
16020
16021 \begin_layout Standard
16022 Other preamble matter, like 
16023 \family typewriter
16024
16025 \backslash
16026 draft
16027 \family default
16028  etc.
16029 \begin_inset space ~
16030 \end_inset
16031
16032 goes in the 
16033 \family sans
16034 \SpecialChar LaTeX
16035
16036 \begin_inset space ~
16037 \end_inset
16038
16039 Preamble
16040 \family default
16041  dialog, also as usual.
16042 \end_layout
16043
16044 \begin_layout Subsection
16045 Layouts
16046 \end_layout
16047
16048 \begin_layout Standard
16049 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16050 4.0.
16051  For example, the Email layout corresponds to 
16052 \family typewriter
16053
16054 \backslash
16055 email{}
16056 \family default
16057 .
16058  Note that (at least as of Rev\SpecialChar TeX
16059  4.0 Beta), the 
16060 \family sans
16061 Address
16062 \family default
16063  and 
16064 \family sans
16065 Affiliation
16066 \family default
16067  layouts are exactly equivalent, so you shouldn't need to use both.
16068 \begin_inset Foot
16069 status collapsed
16070
16071 \begin_layout Plain Layout
16072 In case you're curious, both were included so that 
16073 \family typewriter
16074 tex2lyx
16075 \family default
16076  would be able to translate both 
16077 \family typewriter
16078
16079 \backslash
16080 address
16081 \family default
16082  and 
16083 \family typewriter
16084
16085 \backslash
16086 affiliation
16087 \family default
16088 .
16089 \end_layout
16090
16091 \end_inset
16092
16093
16094 \end_layout
16095
16096 \begin_layout Subsection
16097 Important Notes
16098 \end_layout
16099
16100 \begin_layout Standard
16101 There are a couple of important unique aspects of Rev\SpecialChar TeX
16102  4 which might cause
16103  bugs that will be even more confusing in \SpecialChar LyX
16104 .
16105 \end_layout
16106
16107 \begin_layout Standard
16108 In Rev\SpecialChar TeX
16109 , the 
16110 \family typewriter
16111
16112 \backslash
16113 thanks
16114 \family default
16115  command goes 
16116 \emph on
16117 outside
16118 \emph default
16119  the 
16120 \family typewriter
16121
16122 \backslash
16123 author
16124 \family default
16125  command.
16126  The \SpecialChar LyX
16127  equivalent is that there is a separate Thanks layout.
16128  Do 
16129 \emph on
16130 not
16131 \emph default
16132  write footnotes in the 
16133 \family sans
16134 Author
16135 \family default
16136  layout, or weird things may happen.
16137  See the Rev\SpecialChar TeX
16138  4 documentation for more details.
16139 \end_layout
16140
16141 \begin_layout Standard
16142 Also, the 
16143 \family sans
16144 Author
16145 \begin_inset space ~
16146 \end_inset
16147
16148 Email
16149 \family default
16150
16151 \family sans
16152 Author
16153 \begin_inset space ~
16154 \end_inset
16155
16156 URL
16157 \family default
16158 , and 
16159 \family sans
16160 Thanks
16161 \family default
16162  layouts must be placed 
16163 \emph on
16164 in between
16165 \emph default
16166  the 
16167 \family sans
16168 Author
16169 \family default
16170  layout and the corresponding 
16171 \family sans
16172 Address
16173 \family default
16174  (or equivalent 
16175 \family sans
16176 Affiliation
16177 \family default
16178 ) layout.
16179  If you put the 
16180 \family sans
16181 Thanks
16182 \family default
16183  after the 
16184 \family sans
16185 Address
16186 \family default
16187 , the \SpecialChar LaTeX
16188  won't compile.
16189 \end_layout
16190
16191 \begin_layout Subsection
16192 Drawbacks
16193 \end_layout
16194
16195 \begin_layout Standard
16196 The main problem with this layout is that you can't use the optional arguments
16197  to layouts like Email and Title.
16198  (The problem is not unique to this layout; you can't use optional arguments
16199  to the Section layouts either.) This means that after you export that file
16200  to \SpecialChar LaTeX
16201  (which you'll need to do eventually to send it in to APS), you'll need
16202  to edit the \SpecialChar LaTeX
16203  file with a text editor to add the optional arguments to set,
16204  e.
16205 \begin_inset space \thinspace{}
16206 \end_inset
16207
16208 g.
16209 \begin_inset space \space{}
16210 \end_inset
16211
16212 the running title for the page headers.
16213  Lacking these layouts makes the 
16214 \family typewriter
16215
16216 \backslash
16217 altaffiliation
16218 \family default
16219  (and the equivalent 
16220 \family typewriter
16221
16222 \backslash
16223 altaddress
16224 \family default
16225 ) useless, so the corresponding layouts don't exist, and will have to be
16226  added by hand.
16227 \begin_inset Foot
16228 status collapsed
16229
16230 \begin_layout Plain Layout
16231
16232 \emph on
16233 Note from JMarc:
16234 \emph default
16235  actually, \SpecialChar LyX
16236  1.3.0 supports some forms of optional arguments, but this layout
16237  has not been updated yet to take advantage of it.
16238 \end_layout
16239
16240 \end_inset
16241
16242  
16243 \end_layout
16244
16245 \begin_layout Section
16246 Springer Journals (
16247 \family sans
16248 svjour
16249 \family default
16250 )
16251 \end_layout
16252
16253 \begin_layout Standard
16254 by 
16255 \noun on
16256 Martin Vermeer
16257 \end_layout
16258
16259 \begin_layout Subsection
16260 Description
16261 \end_layout
16262
16263 \begin_layout Standard
16264 These are the layout files for some of the journal formats used by Springer
16265  Verlag and listed on 
16266 \begin_inset Flex URL
16267 status collapsed
16268
16269 \begin_layout Plain Layout
16270
16271 http://www.springer.de/author/tex/help-journals.html
16272 \end_layout
16273
16274 \end_inset
16275
16276 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16277  now!).
16278  It is a modular system: the things common to all journals are implemented
16279  in 
16280 \family typewriter
16281 svjour.inc
16282 \family default
16283 , which journal-specific layout files (such as, e.
16284 \begin_inset space \thinspace{}
16285 \end_inset
16286
16287 g.
16288 \begin_inset space \space{}
16289 \end_inset
16290
16291
16292 \family typewriter
16293 svjog.layout
16294 \family default
16295  for Journal of Geodesy) can include.
16296 \end_layout
16297
16298 \begin_layout Standard
16299 This means that implementing support for any other Springer journal on this
16300  list is as simple as writing your own 
16301 \family typewriter
16302 sv
16303 \family default
16304 <myjournal>
16305 \family typewriter
16306 .layout
16307 \family default
16308  file following the outline given in 
16309 \family typewriter
16310 svjog.layout
16311 \family default
16312 .
16313  
16314 \end_layout
16315
16316 \begin_layout Standard
16317 It is reasonably well tested only for the Journal of Geodesy.
16318  
16319 \family typewriter
16320 svjour
16321 \family default
16322  and 
16323 \family typewriter
16324 svjog
16325 \family default
16326  come with the standard \SpecialChar LyX
16327  distribution.
16328  Install the relevant class file (downloaded from Springer) in a proper
16329  directory, reconfigure \SpecialChar LaTeX
16330  (in the te\SpecialChar TeX
16331  case by running 
16332 \family typewriter
16333 texhash
16334 \family default
16335 , as root if necessary — doesn't \SpecialChar LyX
16336  take care of this?), reconfigure \SpecialChar LyX
16337  and
16338  it should work.
16339 \end_layout
16340
16341 \begin_layout Subsection
16342 New styles
16343 \end_layout
16344
16345 \begin_layout Standard
16346 A large number of theorem-like styles — 
16347 \family sans
16348 Claim, Conjecture,
16349 \family default
16350  
16351 \family sans
16352 \SpecialChar ldots
16353 Theorem
16354 \family default
16355 .
16356 \end_layout
16357
16358 \begin_layout Standard
16359
16360 \family sans
16361 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16362 _Title, Author_Running, Institute,
16363  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16364 \family default
16365 .
16366  See the Springer class file documentation for details.
16367 \end_layout
16368
16369 \begin_layout Subsection
16370 Supported journals
16371 \end_layout
16372
16373 \begin_layout Itemize
16374
16375 \emph on
16376 Journal of Geodesy
16377 \emph default
16378
16379 \family typewriter
16380 svjog.layout
16381 \family default
16382  — Martin Vermeer
16383 \end_layout
16384
16385 \begin_layout Itemize
16386
16387 \emph on
16388 Probability Theory and Related Fields
16389 \emph default
16390
16391 \family typewriter
16392 svprobth.layout
16393 \family default
16394  — Jean-Marc Lasgouttes
16395 \end_layout
16396
16397 \begin_layout Standard
16398 Add your own, it isn't so hard!
16399 \end_layout
16400
16401 \begin_layout Subsection
16402 Credits
16403 \end_layout
16404
16405 \begin_layout Standard
16406 These files are partly based on the older 
16407 \family typewriter
16408 ejour2.layout
16409 \family default
16410 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16411  2.09 style
16412  file from Springer.
16413  All this, and the 
16414 \family typewriter
16415 ejour2
16416 \family default
16417  layout, are now defunct.
16418  Jean-Marc Lasgouttes helped out big in making me find my way around the
16419  \SpecialChar LyX
16420  layout file mechanism.
16421 \end_layout
16422
16423 \begin_layout Subsection
16424 Bugs
16425 \end_layout
16426
16427 \begin_layout Standard
16428 Probably.
16429  But probably less than in the old hacked-\SpecialChar LaTeX
16430  
16431 \family typewriter
16432 ejour2
16433 \family default
16434 .
16435 \end_layout
16436
16437 \begin_layout Standard
16438 Limitations e.
16439 \begin_inset space \thinspace{}
16440 \end_inset
16441
16442 g.: does not display the number for theorem-like layouts, just #.
16443 \end_layout
16444
16445 \begin_layout Section
16446 Slides [aka 
16447 \noun on
16448 Sli\SpecialChar TeX
16449
16450 \noun default
16451 ]
16452 \begin_inset CommandInset label
16453 LatexCommand label
16454 name "sec:slitex"
16455
16456 \end_inset
16457
16458
16459 \end_layout
16460
16461 \begin_layout Standard
16462 by 
16463 \noun on
16464 John Weiss
16465 \noun default
16466  
16467 \end_layout
16468
16469 \begin_layout Subsection
16470 Introduction
16471 \end_layout
16472
16473 \begin_layout Standard
16474 This section describes how to use \SpecialChar LyX
16475  to make slides for overhead projectors.
16476  There are two document classes that can do this: the default slides class
16477  and the 
16478 \family sans
16479 Foil\SpecialChar TeX
16480
16481 \family default
16482  slides class.
16483  This section documents the former.
16484 \end_layout
16485
16486 \begin_layout Standard
16487 I'm going to say this again, nice and clear, so that there's no misunderstanding
16488 :
16489 \end_layout
16490
16491 \begin_layout Standard
16492 \begin_inset VSpace bigskip
16493 \end_inset
16494
16495
16496 \end_layout
16497
16498 \begin_layout Standard
16499 \align center
16500
16501 \size large
16502 This section documents the class 
16503 \begin_inset Quotes eld
16504 \end_inset
16505
16506
16507 \family sans
16508 slides (default)
16509 \family default
16510
16511 \begin_inset Quotes erd
16512 \end_inset
16513
16514  
16515 \emph on
16516 only.
16517 \end_layout
16518
16519 \begin_layout Standard
16520 \begin_inset VSpace bigskip
16521 \end_inset
16522
16523
16524 \end_layout
16525
16526 \begin_layout Standard
16527 If you're looking for the documentation for 
16528 \begin_inset Quotes eld
16529 \end_inset
16530
16531
16532 \family sans
16533 slides (Foil\SpecialChar TeX
16534 )
16535 \family default
16536
16537 \begin_inset Quotes erd
16538 \end_inset
16539
16540 , check out section
16541 \begin_inset space ~
16542 \end_inset
16543
16544
16545 \begin_inset CommandInset ref
16546 LatexCommand ref
16547 reference "sec:foiltex"
16548
16549 \end_inset
16550
16551 .
16552  The 
16553 \family sans
16554 foils
16555 \family default
16556  class [
16557 \begin_inset Quotes eld
16558 \end_inset
16559
16560
16561 \family sans
16562 slides (Foil\SpecialChar TeX
16563 )
16564 \family default
16565
16566 \begin_inset Quotes erd
16567 \end_inset
16568
16569 ] is actually somewhat better than the default 
16570 \family sans
16571 slides
16572 \family default
16573  class,
16574 \begin_inset Foot
16575 status collapsed
16576
16577 \begin_layout Plain Layout
16578 \SpecialChar ldots
16579 or so I've been told repeatedly by its advocates.
16580  Having never used it, I have no idea if this claim is true or not.
16581 \end_layout
16582
16583 \end_inset
16584
16585  which this section documents.
16586 \end_layout
16587
16588 \begin_layout Standard
16589 This class is the \SpecialChar LaTeX2e
16590  improvement of the old 
16591 \noun on
16592 Sli\SpecialChar TeX
16593
16594 \noun default
16595  package.
16596  Every \SpecialChar LaTeX2e
16597  distribution includes this class [which I'll just refer to as 
16598 \begin_inset Quotes eld
16599 \end_inset
16600
16601
16602 \family sans
16603 slides
16604 \family default
16605
16606 \begin_inset Quotes erd
16607 \end_inset
16608
16609  from now on], so you're bound to have it.
16610  As I noted earlier, there are other classes, such as 
16611 \family sans
16612 foils
16613 \family default
16614 , which also produce slides for overhead projectors and do a better job
16615  at it.
16616  However, there are some things which 
16617 \family sans
16618 slides
16619 \family default
16620  can do which the others can't, such as generate overlays.
16621  Read on to learn more!
16622 \end_layout
16623
16624 \begin_layout Subsection
16625 Getting Started
16626 \begin_inset CommandInset label
16627 LatexCommand label
16628 name "sec:slidesetup"
16629
16630 \end_inset
16631
16632
16633 \end_layout
16634
16635 \begin_layout Standard
16636 Obviously, to use this document class, you need to select 
16637 \begin_inset Quotes eld
16638 \end_inset
16639
16640
16641 \family sans
16642 slides (default)
16643 \family default
16644
16645 \begin_inset Quotes erd
16646 \end_inset
16647
16648  from the class list in the 
16649 \family sans
16650 Document\SpecialChar menuseparator
16651 Settings
16652 \family default
16653  dialog.
16654  There are some other special things you should know about this class:
16655 \end_layout
16656
16657 \begin_layout Itemize
16658 Don't bother changing the options 
16659 \family sans
16660 Sides and Columns
16661 \family default
16662 .
16663  They're not supported by the 
16664 \family sans
16665 slides
16666 \family default
16667  class, anyways.
16668 \end_layout
16669
16670 \begin_layout Itemize
16671 The option 
16672 \family sans
16673 Page
16674 \begin_inset space ~
16675 \end_inset
16676
16677 style
16678 \family default
16679  behaves a bit differently for this class.
16680  The possible choices and what they do are as follows:
16681 \begin_inset Separator parbreak
16682 \end_inset
16683
16684
16685 \end_layout
16686
16687 \begin_deeper
16688 \begin_layout Description
16689
16690 \family sans
16691 plain
16692 \family default
16693  The final output contains page numbers in the lower right corner.
16694 \end_layout
16695
16696 \begin_layout Description
16697
16698 \family sans
16699 headings
16700 \family default
16701  Like 
16702 \family sans
16703 plain
16704 \family default
16705 , but also prints out any time markers you've put in.
16706  This is the default.
16707 \end_layout
16708
16709 \begin_layout Description
16710
16711 \family sans
16712 empty
16713 \family default
16714  The final output contains no page numbers, time markers, or alignment markers.
16715 \end_layout
16716
16717 \end_deeper
16718 \begin_layout Itemize
16719 The 
16720 \family sans
16721 slides
16722 \family default
16723  class has an extra option: 
16724 \family typewriter
16725 clock
16726 \family default
16727 .
16728  To use it, put 
16729 \begin_inset Quotes eld
16730 \end_inset
16731
16732
16733 \family typewriter
16734 clock
16735 \family default
16736
16737 \begin_inset Quotes erd
16738 \end_inset
16739
16740  in the extra class options.
16741 \begin_inset Separator parbreak
16742 \end_inset
16743
16744
16745 \end_layout
16746
16747 \begin_deeper
16748 \begin_layout Standard
16749 Using this options allows you to add time markers to 
16750 \family sans
16751 Note
16752 \family default
16753 s.
16754  See section
16755 \begin_inset space ~
16756 \end_inset
16757
16758
16759 \begin_inset CommandInset ref
16760 LatexCommand ref
16761 reference "sec:slideNote"
16762
16763 \end_inset
16764
16765  for more details.
16766 \end_layout
16767
16768 \end_deeper
16769 \begin_layout Standard
16770 You can also use the template file 
16771 \begin_inset Quotes eld
16772 \end_inset
16773
16774
16775 \family typewriter
16776 slides.lyx
16777 \family default
16778
16779 \begin_inset Quotes erd
16780 \end_inset
16781
16782  to automatically set up a document to use the 
16783 \family sans
16784 slides
16785 \family default
16786  class [using 
16787 \family sans
16788 File\SpecialChar menuseparator
16789 New
16790 \begin_inset space ~
16791 \end_inset
16792
16793 from
16794 \begin_inset space ~
16795 \end_inset
16796
16797 Template
16798 \family default
16799  to open your new document].
16800  The template file also contains some examples of the special paragraph
16801  environments used by this class.
16802  I'll describe those next.
16803 \end_layout
16804
16805 \begin_layout Subsection
16806 Paragraph Environments
16807 \end_layout
16808
16809 \begin_layout Subsubsection
16810 Supported Environments
16811 \end_layout
16812
16813 \begin_layout Standard
16814 The first thing you'll notice when you start up a new 
16815 \family sans
16816 slides
16817 \family default
16818  document is the font size and type: it's the equivalent of the size 
16819 \begin_inset Quotes eld
16820 \end_inset
16821
16822
16823 \family sans
16824 Largest
16825 \family default
16826
16827 \begin_inset Quotes erd
16828 \end_inset
16829
16830  in the 
16831 \family sans
16832 Sans
16833 \begin_inset space ~
16834 \end_inset
16835
16836 Serif
16837 \family default
16838  font.
16839  This is also what's used in the output.
16840  Think of this as a 
16841 \begin_inset Quotes eld
16842 \end_inset
16843
16844 visual cue
16845 \begin_inset Quotes erd
16846 \end_inset
16847
16848  to remind you that this is a slide.
16849  Your final slides will use a larger font; ergo, you'll have less space.
16850  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
16851 \end_layout
16852
16853 \begin_layout Standard
16854 The next thing that becomes obvious is the changes to the paragraph environment
16855  pull-down box [at the far-left end of the toolbar].
16856  Most of the paragraph environments you're used to seeing are missing.
16857  There are also five new ones.
16858  That's because the 
16859 \family sans
16860 slides
16861 \family default
16862  class itself only supports certain paragraph environments:
16863 \end_layout
16864
16865 \begin_layout Itemize
16866
16867 \family sans
16868 Standard
16869 \end_layout
16870
16871 \begin_layout Itemize
16872
16873 \family sans
16874 Itemize
16875 \end_layout
16876
16877 \begin_layout Itemize
16878
16879 \family sans
16880 Enumerate
16881 \end_layout
16882
16883 \begin_layout Itemize
16884
16885 \family sans
16886 Description
16887 \end_layout
16888
16889 \begin_layout Itemize
16890
16891 \family sans
16892 List
16893 \end_layout
16894
16895 \begin_layout Itemize
16896
16897 \family sans
16898 Quotation
16899 \end_layout
16900
16901 \begin_layout Itemize
16902
16903 \family sans
16904 Quote
16905 \end_layout
16906
16907 \begin_layout Itemize
16908
16909 \family sans
16910 Verse
16911 \end_layout
16912
16913 \begin_layout Itemize
16914
16915 \family sans
16916 Caption
16917 \end_layout
16918
16919 \begin_layout Itemize
16920
16921 \family sans
16922 \SpecialChar LyX
16923 -Code
16924 \end_layout
16925
16926 \begin_layout Itemize
16927
16928 \family sans
16929 Comment
16930 \end_layout
16931
16932 \begin_layout Standard
16933 All of the other standard environments, including the section-heading environmen
16934 ts, aren't used in the 
16935 \family sans
16936 slides
16937 \family default
16938  class.
16939 \end_layout
16940
16941 \begin_layout Standard
16942 On the other hand, you'll notice the following new environments:
16943 \end_layout
16944
16945 \begin_layout Itemize
16946
16947 \family sans
16948 Slide
16949 \end_layout
16950
16951 \begin_layout Itemize
16952
16953 \family sans
16954 Overlay
16955 \end_layout
16956
16957 \begin_layout Itemize
16958
16959 \family sans
16960 Note
16961 \end_layout
16962
16963 \begin_layout Itemize
16964
16965 \family sans
16966 InvisibleText
16967 \end_layout
16968
16969 \begin_layout Itemize
16970
16971 \family sans
16972 VisibleText
16973 \end_layout
16974
16975 \begin_layout Standard
16976 These five are kind of quirky, due to a 
16977 \begin_inset Quotes eld
16978 \end_inset
16979
16980 feature
16981 \begin_inset Quotes erd
16982 \end_inset
16983
16984  in \SpecialChar LyX
16985 .
16986  You see, \SpecialChar LyX
16987  doesn't permit you to nest any other paragraph environment into
16988  an empty environment.
16989  Now, that's fine and dandy, but it means that you wouldn't be able to start
16990  a slide with anything except plain text.
16991  To deal with this, I've performed a little 
16992 \begin_inset Quotes eld
16993 \end_inset
16994
16995 \SpecialChar LaTeX
16996  magic.
16997 \begin_inset Quotes erd
16998 \end_inset
16999
17000  
17001 \end_layout
17002
17003 \begin_layout Subsubsection
17004 Quirks of the New Environments
17005 \begin_inset CommandInset label
17006 LatexCommand label
17007 name "sec:slideQuirk"
17008
17009 \end_inset
17010
17011
17012 \end_layout
17013
17014 \begin_layout Standard
17015 All five of the new paragraph environments are somewhat quirky due to inherent
17016  limitiations in the current version of \SpecialChar LyX
17017 .
17018  As I just mentioned, \SpecialChar LyX
17019  forbids environments that begin with another environment.
17020  To get around this, the 
17021 \family sans
17022 Slide
17023 \family default
17024  environment isn't a paragraph environment as described in the 
17025 \emph on
17026 User's Guide
17027 \emph default
17028 .
17029  
17030 \end_layout
17031
17032 \begin_layout Standard
17033 You should consider 
17034 \family sans
17035 Slide
17036 \family default
17037
17038 \family sans
17039 Overlay
17040 \family default
17041 , and 
17042 \family sans
17043 Note
17044 \family default
17045  to be 
17046 \begin_inset Quotes eld
17047 \end_inset
17048
17049 pseudo-environments.
17050 \begin_inset Quotes erd
17051 \end_inset
17052
17053  They look like a section heading or a 
17054 \begin_inset Quotes eld
17055 \end_inset
17056
17057
17058 \family sans
17059 Caption
17060 \family default
17061 ,
17062 \begin_inset Quotes erd
17063 \end_inset
17064
17065  but really begin a [and, if necessary, end the previous] paragraph environment.
17066  Likewise, treat 
17067 \family sans
17068 InvisibleText
17069 \family default
17070  and 
17071 \family sans
17072 VisibleText
17073 \family default
17074  as 
17075 \begin_inset Quotes eld
17076 \end_inset
17077
17078 pseudo-commands.
17079 \begin_inset Quotes erd
17080 \end_inset
17081
17082  These two perform some action.
17083 \end_layout
17084
17085 \begin_layout Standard
17086 A common feature of all five environments, 
17087 \family sans
17088 Slide
17089 \family default
17090
17091 \family sans
17092 Overlay
17093 \family default
17094
17095 \family sans
17096 Note
17097 \family default
17098
17099 \family sans
17100 InvisibleText
17101 \family default
17102  and 
17103 \family sans
17104 VisibleText
17105 \family default
17106 , is a rather long-ish label.
17107  The text following this label — ordinarily the contents of the paragraph
17108  environment — is utterly irrelevant for 
17109 \family sans
17110 Slide
17111 \family default
17112
17113 \family sans
17114 Overlay
17115 \family default
17116
17117 \family sans
17118 Note
17119 \family default
17120
17121 \family sans
17122 InvisibleText
17123 \family default
17124  and 
17125 \family sans
17126 VisibleText
17127 \family default
17128 .
17129  \SpecialChar LyX
17130  completely ignores it.
17131  In fact, you can leave these five environments completely empty.
17132  
17133 \end_layout
17134
17135 \begin_layout Standard
17136 While you don't 
17137 \emph on
17138 have
17139 \emph default
17140  to put any text after the rather long-ish label, you might want to.
17141  This could be a short description of the contents of the 
17142 \family sans
17143 Slide
17144 \family default
17145 , for example.
17146  In that case, enter your descriptive comment and hit 
17147 \family sans
17148 Return
17149 \family default
17150  as you normally would.
17151 \end_layout
17152
17153 \begin_layout Standard
17154 If, on the other hand, you don't want to enter any descriptive text, you'll
17155  hit another \SpecialChar LyX
17156  quirk.
17157  \SpecialChar LyX
17158 , like nature, abhors a vacuum, and will not let you start a new paragraph
17159  environment until you put something in the old one.
17160  So, do this:
17161 \end_layout
17162
17163 \begin_layout Itemize
17164 Start entering the text that will 
17165 \emph on
17166 follow
17167 \emph default
17168  the new 
17169 \family sans
17170 Slide
17171 \family default
17172
17173 \family sans
17174 Overlay
17175 \family default
17176
17177 \family sans
17178 Note
17179 \family default
17180
17181 \family sans
17182 InvisibleText
17183 \family default
17184  or 
17185 \family sans
17186 VisibleText
17187 \family default
17188 .
17189  
17190 \end_layout
17191
17192 \begin_layout Itemize
17193 Now move to the beginning of that paragraph.
17194  
17195 \end_layout
17196
17197 \begin_layout Itemize
17198 Next, hit 
17199 \family sans
17200 Return
17201 \family default
17202 .
17203  
17204 \end_layout
17205
17206 \begin_layout Itemize
17207 Finally, change this new, empty paragraph to a 
17208 \family sans
17209 Slide
17210 \family default
17211
17212 \family sans
17213 Overlay
17214 \family default
17215
17216 \family sans
17217 Note
17218 \family default
17219
17220 \family sans
17221 InvisibleText
17222 \family default
17223  or 
17224 \family sans
17225 VisibleText
17226 \family default
17227 .
17228  
17229 \end_layout
17230
17231 \begin_layout Standard
17232 Some future version of \SpecialChar LyX
17233  will, hopefully, resolve this quirkiness\SpecialChar ldots
17234
17235 \end_layout
17236
17237 \begin_layout Subsection
17238 Making a Presentation with 
17239 \family sans
17240 Slide
17241 \family default
17242
17243 \family sans
17244 Overlay
17245 \family default
17246  and 
17247 \family sans
17248 Note
17249 \end_layout
17250
17251 \begin_layout Subsubsection
17252 Using the 
17253 \family sans
17254 Slide
17255 \family default
17256  Environment
17257 \end_layout
17258
17259 \begin_layout Standard
17260 If you're expecting this section to teach you how to actually make a presentatio
17261 n, you'll be sorely disappointed.
17262  Naturally, I'll describe all of the ways the 
17263 \family sans
17264 slides
17265 \family default
17266  class can assist you in preparing the materials for a presentation.
17267  Filling in the contents, however, is up to you.
17268  [Then again, that 
17269 \emph on
17270 is
17271 \emph default
17272  the \SpecialChar LyX
17273  philosophy.]
17274 \end_layout
17275
17276 \begin_layout Standard
17277 Choosing the 
17278 \family sans
17279 Slide
17280 \family default
17281  environment [in the manner described in section
17282 \begin_inset space ~
17283 \end_inset
17284
17285
17286 \begin_inset CommandInset ref
17287 LatexCommand ref
17288 reference "sec:slideQuirk"
17289
17290 \end_inset
17291
17292 ] tells \SpecialChar LyX
17293  to begin a new slide [duh].
17294  The label for this environment/
17295 \begin_inset Quotes erd
17296 \end_inset
17297
17298 pseudo-command
17299 \begin_inset Quotes erd
17300 \end_inset
17301
17302  is an 
17303 \begin_inset Quotes eld
17304 \end_inset
17305
17306 ASCII line,
17307 \begin_inset Quotes erd
17308 \end_inset
17309
17310  in cool blue, followed by the label, 
17311 \begin_inset Quotes eld
17312 \end_inset
17313
17314 NewSlide:
17315 \begin_inset Quotes erd
17316 \end_inset
17317
17318 .
17319  Any text or paragraph environments that follow this one go on the new slide.
17320  It's that simple.
17321 \end_layout
17322
17323 \begin_layout Standard
17324 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17325
17326  (this can be specified in the 
17327 \family sans
17328 Paragraph Layout
17329 \family default
17330  dialog).
17331  In fact, you'll want to, once you finish entering the contents of one slide.
17332  If you've entered more text than can physically fit on a slide, the extra
17333  overflows onto a new slide.
17334  I don't recommend doing this, however, since the overflow slide won't have
17335  any page number on it.
17336  Furthermore, it may interfere with any 
17337 \family sans
17338 Overlay
17339 \family default
17340  you've made to accompany the oversized 
17341 \family sans
17342 Slide
17343 \family default
17344 .
17345 \end_layout
17346
17347 \begin_layout Standard
17348 The 
17349 \family sans
17350 Overlay
17351 \family default
17352  and 
17353 \family sans
17354 Note
17355 \family default
17356  environments work the same way as the 
17357 \family sans
17358 Slide
17359 \family default
17360  environment.
17361  They both create an 
17362 \begin_inset Quotes eld
17363 \end_inset
17364
17365 ASCII line
17366 \begin_inset Quotes erd
17367 \end_inset
17368
17369  followed by a label [
17370 \begin_inset Quotes eld
17371 \end_inset
17372
17373 NewOverlay:
17374 \begin_inset Quotes erd
17375 \end_inset
17376
17377  and 
17378 \begin_inset Quotes eld
17379 \end_inset
17380
17381 NewNote:
17382 \begin_inset Quotes erd
17383 \end_inset
17384
17385 , respectively].
17386  The color is a stunning magenta instead of blue, and the 
17387 \begin_inset Quotes eld
17388 \end_inset
17389
17390 ASCII line
17391 \begin_inset Quotes erd
17392 \end_inset
17393
17394  will look different, in style and in length.
17395  The label fonts of all three also differ from one another.
17396 \end_layout
17397
17398 \begin_layout Standard
17399 As with a 
17400 \family sans
17401 Slide
17402 \family default
17403 , if the contents of a 
17404 \family sans
17405 Note
17406 \family default
17407  or 
17408 \family sans
17409 Overlay
17410 \family default
17411  exceed the physical size of a slide or sheet of paper, the extra will overflow
17412  onto a new sheet.
17413  Again, you should avoid this.
17414  It defeats the whole purpose of 
17415 \family sans
17416 Note
17417 \family default
17418 s and 
17419 \family sans
17420 Overlay
17421 \family default
17422 s.
17423 \end_layout
17424
17425 \begin_layout Subsubsection
17426 Using 
17427 \family sans
17428 Overlay
17429 \family default
17430  with 
17431 \family sans
17432 Slide
17433 \end_layout
17434
17435 \begin_layout Standard
17436 The idea behind an 
17437 \family sans
17438 Overlay
17439 \family default
17440  is a slide that sits atop another slide.
17441  Perhaps you wish to discuss a figure on the main 
17442 \family sans
17443 Slide
17444 \family default
17445  before displaying the text associated with it.
17446  One way to accomplish this is tape a flap of dark paper over the part of
17447  the 
17448 \family sans
17449 Slide
17450 \family default
17451  you want to display later.
17452  This method fails, however, if you wish to overlap one graph with another,
17453  for example.
17454  You would then have to fumble while speaking to align the two separate,
17455  overlapping 
17456 \family sans
17457 Slide
17458 \family default
17459 s to align the two graphs.
17460  The use of an 
17461 \family sans
17462 Overlay
17463 \family default
17464  environment in both cases makes life much easier.
17465 \end_layout
17466
17467 \begin_layout Standard
17468 Each 
17469 \family sans
17470 Overlay
17471 \family default
17472  receives the page number of its 
17473 \begin_inset Quotes eld
17474 \end_inset
17475
17476 parent
17477 \begin_inset Quotes erd
17478 \end_inset
17479
17480  
17481 \family sans
17482 Slide
17483 \family default
17484 , appended by 
17485 \begin_inset Quotes eld
17486 \end_inset
17487
17488
17489 \family typewriter
17490 -a
17491 \family default
17492
17493 \begin_inset Quotes erd
17494 \end_inset
17495
17496 .
17497 \begin_inset Foot
17498 status collapsed
17499
17500 \begin_layout Plain Layout
17501 Presumably, mutliple 
17502 \family sans
17503 Overlay
17504 \family default
17505 s would have 
17506 \begin_inset Quotes eld
17507 \end_inset
17508
17509
17510 \family typewriter
17511 -a
17512 \family default
17513
17514 \begin_inset Quotes erd
17515 \end_inset
17516
17517
17518 \begin_inset Quotes eld
17519 \end_inset
17520
17521
17522 \family typewriter
17523 -b
17524 \family default
17525
17526 \begin_inset Quotes erd
17527 \end_inset
17528
17529
17530 \begin_inset Quotes eld
17531 \end_inset
17532
17533
17534 \family typewriter
17535 -c
17536 \family default
17537
17538 \begin_inset Quotes erd
17539 \end_inset
17540
17541 , etc.
17542 \begin_inset space ~
17543 \end_inset
17544
17545 appended to the page number of the parent 
17546 \family sans
17547 Slide
17548 \family default
17549 .
17550  
17551 \end_layout
17552
17553 \end_inset
17554
17555  Clearly, you want the contents of both the 
17556 \family sans
17557 Slide
17558 \family default
17559  and the 
17560 \family sans
17561 Overlay
17562 \family default
17563  to each fit on a single physical slide! You should probably consider an
17564  
17565 \family sans
17566 Overlay
17567 \family default
17568  as 
17569 \begin_inset Quotes eld
17570 \end_inset
17571
17572 part of
17573 \begin_inset Quotes erd
17574 \end_inset
17575
17576  a 
17577 \family sans
17578 Slide
17579 \family default
17580 .
17581  Indeed, the \SpecialChar LyX
17582  
17583 \family sans
17584 slides
17585 \family default
17586  class provides a visual cue for this: the label at the start of an 
17587 \family sans
17588 Overlay
17589 \family default
17590  is shorter than that at the start of a 
17591 \family sans
17592 Slide
17593 \family default
17594 .
17595  Lastly, when you generate printable output, you'll find alignment markers
17596  in all four corners of both the 
17597 \family sans
17598 Overlay
17599 \family default
17600  page and its parent 
17601 \family sans
17602 Slide
17603 \family default
17604 .
17605  These will assist you in lining up the two physical slides.
17606 \end_layout
17607
17608 \begin_layout Standard
17609 The major problem in overlaying two slides is aligning the contents of the
17610  two transparencies.
17611  How much space should you leave for that graph on the second slide? Worse
17612  still, what if you want a graph and a sentence on second slide, but there
17613  is text on the main transparency that goes in between them? You could try
17614  and insert vertical space of the right size.
17615  The better way is to use 
17616 \family sans
17617 InvisibleText
17618 \family default
17619  and 
17620 \family sans
17621 VisibleText
17622 \family default
17623 .
17624 \end_layout
17625
17626 \begin_layout Standard
17627 As their names imply, 
17628 \family sans
17629 InvisibleText
17630 \family default
17631  and 
17632 \family sans
17633 VisibleText
17634 \family default
17635  are two command-like paragraph environments that make all subsequent text
17636  invisible and visible, respectively.
17637  Note from section
17638 \begin_inset space ~
17639 \end_inset
17640
17641
17642 \begin_inset CommandInset ref
17643 LatexCommand ref
17644 reference "sec:slideQuirk"
17645
17646 \end_inset
17647
17648  that you don't place anything 
17649 \emph on
17650 into
17651 \emph default
17652  these two environments, however.
17653  When you create an 
17654 \family sans
17655 InvisibleText
17656 \family default
17657 , it inserts a centered, sky-blue label into the page reading 
17658 \begin_inset Quotes eld
17659 \end_inset
17660
17661 <Invisible Text Follows>
17662 \begin_inset Quotes erd
17663 \end_inset
17664
17665 .
17666  For paragraphs following this label, the parts of the 
17667 \family sans
17668 Slide
17669 \family default
17670  [or 
17671 \family sans
17672 Overlay
17673 \family default
17674 ; it doesn't matter which] where they would be contain instead blank space.
17675  
17676 \end_layout
17677
17678 \begin_layout Standard
17679 For 
17680 \family sans
17681 VisibleText
17682 \family default
17683 , the corresponding centered label is 
17684 \begin_inset Quotes eld
17685 \end_inset
17686
17687 <Visible Text Follows>
17688 \begin_inset Quotes erd
17689 \end_inset
17690
17691  in blazing green.
17692  Paragraphs following this label behave normally.
17693  Note that the beginning of a new 
17694 \family sans
17695 Slide
17696 \family default
17697
17698 \family sans
17699 Overlay
17700 \family default
17701 , or 
17702 \family sans
17703 Note
17704 \family default
17705  automatically shuts off an 
17706 \family sans
17707 InvisibleText
17708 \family default
17709 .
17710  It's therefore not necessary to use 
17711 \family sans
17712 VisibleText
17713 \family default
17714  at the end of a 
17715 \family sans
17716 Slide
17717 \family default
17718 .
17719 \end_layout
17720
17721 \begin_layout Standard
17722 By now, it should be obvious how to create overlay transparencies using
17723  the proper combination of 
17724 \family sans
17725 InvisibleText
17726 \family default
17727  and 
17728 \family sans
17729 VisibleText
17730 \family default
17731  on a 
17732 \family sans
17733 Slide
17734 \family default
17735  and 
17736 \family sans
17737 Overlay
17738 \family default
17739 :
17740 \end_layout
17741
17742 \begin_layout Enumerate
17743 Create a 
17744 \family sans
17745 Slide
17746 \family default
17747 , including everything that will appear on it, whether on the main slide
17748  or on the 
17749 \family sans
17750 Overlay
17751 \family default
17752 .
17753 \end_layout
17754
17755 \begin_layout Enumerate
17756 Before each figure or paragraph that will appear only on the 
17757 \family sans
17758 Overlay
17759 \family default
17760 , insert an 
17761 \family sans
17762 InvisibleText
17763 \family default
17764  environment.
17765  If necessary, insert a 
17766 \family sans
17767 VisibleText
17768 \family default
17769  environment after the 
17770 \family sans
17771 Overlay
17772 \family default
17773 -only text.
17774 \end_layout
17775
17776 \begin_layout Enumerate
17777 Start an 
17778 \family sans
17779 Overlay
17780 \family default
17781  immediately following the 
17782 \family sans
17783 Slide
17784 \family default
17785 .
17786 \end_layout
17787
17788 \begin_layout Enumerate
17789 Copy the contents of this 
17790 \family sans
17791 Slide
17792 \family default
17793  into the 
17794 \family sans
17795 Overlay
17796 \family default
17797 .
17798 \end_layout
17799
17800 \begin_layout Enumerate
17801 Within the 
17802 \family sans
17803 Overlay
17804 \family default
17805 , change all of the 
17806 \family sans
17807 InvisibleText
17808 \family default
17809  lines to 
17810 \family sans
17811 VisibleText
17812 \family default
17813  and vice-versa.
17814 \end_layout
17815
17816 \begin_layout Standard
17817 That's it.
17818  You've just made an 
17819 \family sans
17820 Overlay
17821 \family default
17822 .
17823 \end_layout
17824
17825 \begin_layout Standard
17826 There's one problem with the way I've designed the \SpecialChar LyX
17827  
17828 \family sans
17829 slides
17830 \family default
17831  class: you can't make text in the middle of a paragraph invisible, nor
17832  make text in the middle of an invisible paragraph visible again.
17833  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
17834  codes.
17835 \begin_inset Foot
17836 status collapsed
17837
17838 \begin_layout Plain Layout
17839 The commands of interest are: 
17840 \end_layout
17841
17842 \begin_layout Itemize
17843
17844 \family typewriter
17845 {
17846 \backslash
17847 invisible \SpecialChar ldots
17848  }
17849 \end_layout
17850
17851 \begin_layout Itemize
17852
17853 \family typewriter
17854 {
17855 \backslash
17856 visible \SpecialChar ldots
17857  }
17858 \end_layout
17859
17860 \begin_layout Plain Layout
17861 \SpecialChar ldots
17862 and need to be marked as \SpecialChar TeX
17863 .
17864  The text whose 
17865 \begin_inset Quotes eld
17866 \end_inset
17867
17868 visibility
17869 \begin_inset Quotes erd
17870 \end_inset
17871
17872  you wish to change goes in between the brackets [and after the 
17873 \family typewriter
17874
17875 \backslash
17876 invisible
17877 \family default
17878  or 
17879 \family typewriter
17880
17881 \backslash
17882 visible
17883 \family default
17884  command].
17885  If you don't know how to mark text as \SpecialChar TeX
17886 , see the appropriate section of
17887  the 
17888 \emph on
17889 User's Guide
17890 \emph default
17891 .
17892 \end_layout
17893
17894 \end_inset
17895
17896
17897 \end_layout
17898
17899 \begin_layout Subsubsection
17900 Using 
17901 \family sans
17902 Note
17903 \family default
17904  with 
17905 \family sans
17906 Slide
17907 \family default
17908
17909 \begin_inset CommandInset label
17910 LatexCommand label
17911 name "sec:slideNote"
17912
17913 \end_inset
17914
17915
17916 \end_layout
17917
17918 \begin_layout Standard
17919 Like an 
17920 \family sans
17921 Overlay
17922 \family default
17923 , a 
17924 \family sans
17925 Note
17926 \family default
17927  is associated with a 
17928 \begin_inset Quotes eld
17929 \end_inset
17930
17931 parent
17932 \begin_inset Quotes erd
17933 \end_inset
17934
17935  
17936 \family sans
17937 Slide
17938 \family default
17939 .
17940  Here, too, the \SpecialChar LyX
17941  
17942 \family sans
17943 slides
17944 \family default
17945  class provides visual cues.
17946  The label for a 
17947 \family sans
17948 Note
17949 \family default
17950  is shorter than that of a 
17951 \family sans
17952 Slide
17953 \family default
17954  [yet longer than that of an 
17955 \family sans
17956 Overlay
17957 \family default
17958 ] and, like the label of an 
17959 \family sans
17960 Overlay
17961 \family default
17962  is shockingly magenta.
17963  Additionally, the printed 
17964 \family sans
17965 Note
17966 \family default
17967  has the page number of its 
17968 \begin_inset Quotes eld
17969 \end_inset
17970
17971 parent
17972 \begin_inset Quotes erd
17973 \end_inset
17974
17975  
17976 \family sans
17977 Slide
17978 \family default
17979 , appended by 
17980 \begin_inset Quotes eld
17981 \end_inset
17982
17983
17984 \family typewriter
17985 -
17986 \family default
17987 1
17988 \begin_inset Quotes erd
17989 \end_inset
17990
17991
17992 \begin_inset Quotes eld
17993 \end_inset
17994
17995
17996 \family typewriter
17997 -
17998 \family default
17999 2
18000 \begin_inset Quotes erd
18001 \end_inset
18002
18003
18004 \begin_inset Quotes eld
18005 \end_inset
18006
18007
18008 \family typewriter
18009 -
18010 \family default
18011 3
18012 \begin_inset Quotes erd
18013 \end_inset
18014
18015 , etc.
18016  You can have multiple 
18017 \family sans
18018 Note
18019 \family default
18020 s associated with a single 
18021 \family sans
18022 Slide
18023 \family default
18024 , and, as with 
18025 \family sans
18026 Slide
18027 \family default
18028  and 
18029 \family sans
18030 Overlay
18031 \family default
18032 , you'll probably want to break up long 
18033 \family sans
18034 Note
18035 \family default
18036 s so that they fit on a single sheet of paper.
18037 \end_layout
18038
18039 \begin_layout Standard
18040 The purpose of a 
18041 \family sans
18042 Note
18043 \family default
18044  is obvious: it contains anything additional you might want to say about
18045  a 
18046 \family sans
18047 Slide
18048 \family default
18049 .
18050  It could also be used as a sheet of reminders for a particular 
18051 \family sans
18052 Slide
18053 \family default
18054 .
18055  In the case of the latter, you might want to make use of time markers.
18056  Currently, the \SpecialChar LyX
18057  
18058 \family sans
18059 slides
18060 \family default
18061  class has no 
18062 \begin_inset Quotes eld
18063 \end_inset
18064
18065 native
18066 \begin_inset Quotes erd
18067 \end_inset
18068
18069  support for time markers, a 
18070 \noun on
18071 Sli\SpecialChar TeX
18072
18073 \noun default
18074  feature.
18075  So, you'll have to resort to using the \SpecialChar LaTeX
18076  codes.
18077 \end_layout
18078
18079 \begin_layout Standard
18080 To use time markers, you'll need to specify the extra class option 
18081 \begin_inset Quotes eld
18082 \end_inset
18083
18084
18085 \family typewriter
18086 clock
18087 \family default
18088
18089 \begin_inset Quotes erd
18090 \end_inset
18091
18092  [see section
18093 \begin_inset space ~
18094 \end_inset
18095
18096
18097 \begin_inset CommandInset ref
18098 LatexCommand ref
18099 reference "sec:slidesetup"
18100
18101 \end_inset
18102
18103 ].
18104  This option turns on timing marks, which will appear in the lower-left-hand
18105  corner of every 
18106 \family sans
18107 Note
18108 \family default
18109  you generate.
18110  To set what appears in the time marker, you use the \SpecialChar LaTeX
18111  commands 
18112 \begin_inset Quotes eld
18113 \end_inset
18114
18115
18116 \family typewriter
18117
18118 \backslash
18119 settime{}
18120 \family default
18121
18122 \begin_inset Quotes erd
18123 \end_inset
18124
18125  and 
18126 \begin_inset Quotes eld
18127 \end_inset
18128
18129
18130 \family typewriter
18131
18132 \backslash
18133 addtime{}
18134 \family default
18135
18136 \begin_inset Quotes erd
18137 \end_inset
18138
18139 .
18140  The arguments of both commands are time measured in seconds.
18141  
18142 \begin_inset Quotes eld
18143 \end_inset
18144
18145
18146 \family typewriter
18147
18148 \backslash
18149 settime{}
18150 \family default
18151
18152 \begin_inset Quotes erd
18153 \end_inset
18154
18155  sets the time marker to a given time.
18156  
18157 \begin_inset Quotes eld
18158 \end_inset
18159
18160
18161 \family typewriter
18162
18163 \backslash
18164 addtime{}
18165 \family default
18166
18167 \begin_inset Quotes erd
18168 \end_inset
18169
18170  increments the time marker by the specified amount.
18171  Using time markers and 
18172 \family sans
18173 Note
18174 \family default
18175 s in this fashion, you can remind yourself how much time to spend on a particula
18176
18177 \family sans
18178 Slide
18179 \family default
18180 .
18181 \end_layout
18182
18183 \begin_layout Standard
18184 There's one last feature to describe.
18185  Clearly, you'd like to print out all of your 
18186 \family sans
18187 Slide
18188 \family default
18189 s and 
18190 \family sans
18191 Overlay
18192 \family default
18193 s on transparencies while printing all of your 
18194 \family sans
18195 Note
18196 \family default
18197 s on plain paper.
18198  However, a 
18199 \family sans
18200 Note
18201 \family default
18202  
18203 \emph on
18204 must
18205 \emph default
18206  follow the 
18207 \family sans
18208 Slide
18209 \family default
18210  with which it is associated.
18211  What's a person to do?
18212 \end_layout
18213
18214 \begin_layout Standard
18215 Luckily, there are two \SpecialChar LaTeX
18216  commands that allow you to select what to print
18217  out.
18218  Both must be placed into the preamble of your document.
18219  The command 
18220 \begin_inset Quotes eld
18221 \end_inset
18222
18223
18224 \family typewriter
18225
18226 \backslash
18227 onlyslides{
18228 \backslash
18229 slides}
18230 \family default
18231
18232 \begin_inset Quotes erd
18233 \end_inset
18234
18235  will cause the output to contain only the 
18236 \family sans
18237 Slide
18238 \family default
18239 s and 
18240 \family sans
18241 Overlay
18242 \family default
18243 s.
18244  Correspondingly, the command 
18245 \begin_inset Quotes eld
18246 \end_inset
18247
18248
18249 \family typewriter
18250
18251 \backslash
18252 onlynotes{
18253 \backslash
18254 notes}
18255 \family default
18256
18257 \begin_inset Quotes erd
18258 \end_inset
18259
18260  prevents the output of anything but 
18261 \family sans
18262 Note
18263 \family default
18264 s.
18265  I'd advise placing both commands in the preamble and initially comment
18266  both out.
18267  You can then preview your entire presentation as you write.
18268  When you're done writing, you can then uncomment one of the two to select
18269  what you want to print.
18270  I like to uncomment 
18271 \begin_inset Quotes eld
18272 \end_inset
18273
18274
18275 \family typewriter
18276
18277 \backslash
18278 onlyslides{
18279 \backslash
18280 slides}
18281 \family default
18282
18283 \begin_inset Quotes erd
18284 \end_inset
18285
18286  , print to a file with 
18287 \begin_inset Quotes eld
18288 \end_inset
18289
18290
18291 \family typewriter
18292 -slides
18293 \family default
18294
18295 \begin_inset Quotes erd
18296 \end_inset
18297
18298  in its name, comment it back out, then uncomment 
18299 \begin_inset Quotes eld
18300 \end_inset
18301
18302
18303 \family typewriter
18304
18305 \backslash
18306 onlynotes{
18307 \backslash
18308 notes}
18309 \family default
18310
18311 \begin_inset Quotes erd
18312 \end_inset
18313
18314  and print to a 
18315 \begin_inset Quotes eld
18316 \end_inset
18317
18318
18319 \family typewriter
18320 *-notes.ps
18321 \family default
18322
18323 \begin_inset Quotes erd
18324 \end_inset
18325
18326  file.
18327  I can then send either file to a printer, loading transparencies or plain
18328  paper as appropriate.
18329 \end_layout
18330
18331 \begin_layout Standard
18332 You can also provide other arguments to the 
18333 \begin_inset Quotes eld
18334 \end_inset
18335
18336
18337 \family typewriter
18338
18339 \backslash
18340 onlyslides{}
18341 \family default
18342
18343 \begin_inset Quotes erd
18344 \end_inset
18345
18346  and 
18347 \begin_inset Quotes eld
18348 \end_inset
18349
18350
18351 \family typewriter
18352
18353 \backslash
18354 onlynotes{}
18355 \family default
18356
18357 \begin_inset Quotes erd
18358 \end_inset
18359
18360  commands.
18361  See a good \SpecialChar LaTeX
18362  book for details.
18363 \end_layout
18364
18365 \begin_layout Subsection
18366 The 
18367 \family sans
18368 slides
18369 \family default
18370  Class Template File
18371 \end_layout
18372
18373 \begin_layout Standard
18374 I have also provided a template file, 
18375 \begin_inset Quotes eld
18376 \end_inset
18377
18378
18379 \family typewriter
18380 slides.lyx
18381 \family default
18382
18383 \begin_inset Quotes erd
18384 \end_inset
18385
18386 , with the 
18387 \family sans
18388 slides
18389 \family default
18390  class.
18391  To use it, begin your new presentation with 
18392 \family sans
18393 \bar under
18394 F
18395 \bar default
18396 ile\SpecialChar menuseparator
18397 New
18398 \begin_inset space ~
18399 \end_inset
18400
18401 from
18402 \begin_inset space ~
18403 \end_inset
18404
18405
18406 \bar under
18407 T
18408 \bar default
18409 emplate
18410 \family default
18411 .
18412  Your new \SpecialChar LyX
18413  presentation file will contain an example 
18414 \family sans
18415 Slide
18416 \family default
18417  – 
18418 \family sans
18419 Overlay
18420 \family default
18421  – 
18422 \family sans
18423 Note
18424 \family default
18425  triplet.
18426  The 
18427 \family sans
18428 Slide
18429 \family default
18430  and 
18431 \family sans
18432 Overlay
18433 \family default
18434  additionally contain an example of the use of 
18435 \family sans
18436 InvisibleText
18437 \family default
18438  and 
18439 \family sans
18440 VisibleText
18441 \family default
18442 .
18443  Lastly, the preamble will contain:
18444 \end_layout
18445
18446 \begin_layout LyX-Code
18447 % Uncomment to print out only slides and overlays
18448 \end_layout
18449
18450 \begin_layout LyX-Code
18451 %
18452 \end_layout
18453
18454 \begin_layout LyX-Code
18455 %
18456 \backslash
18457 onlyslides{
18458 \backslash
18459 slides}
18460 \begin_inset Newline newline
18461 \end_inset
18462
18463  
18464 \end_layout
18465
18466 \begin_layout LyX-Code
18467 % Uncomment to print out only notes
18468 \end_layout
18469
18470 \begin_layout LyX-Code
18471 %
18472 \end_layout
18473
18474 \begin_layout LyX-Code
18475 %
18476 \backslash
18477 onlynotes{
18478 \backslash
18479 notes}
18480 \end_layout
18481
18482 \begin_layout Standard
18483 One final thing: I created this class to support the \SpecialChar LaTeX2e
18484  
18485 \begin_inset Quotes eld
18486 \end_inset
18487
18488
18489 \noun on
18490 Sli\SpecialChar TeX
18491
18492 \noun default
18493  emulation
18494 \begin_inset Quotes erd
18495 \end_inset
18496
18497  class, one of the built-in \SpecialChar LaTeX2e
18498  classes.
18499  Neither I nor the rest of the \SpecialChar LyX
18500  Team endorse or oppose the use of this built-in
18501  slide class.
18502  It's here if you want it or need it.
18503  There exist other \SpecialChar LaTeX2e
18504  classes for creating presentations, such as the 
18505 \family sans
18506 Foils
18507 \family default
18508  class [see section
18509 \begin_inset space ~
18510 \end_inset
18511
18512
18513 \begin_inset CommandInset ref
18514 LatexCommand ref
18515 reference "sec:foiltex"
18516
18517 \end_inset
18518
18519 ] or the 
18520 \begin_inset Quotes eld
18521 \end_inset
18522
18523
18524 \family typewriter
18525 seminar
18526 \family default
18527
18528 \begin_inset Quotes erd
18529 \end_inset
18530
18531  package [present on some \SpecialChar TeX
18532  distributions].
18533  The latter is not yet supported under \SpecialChar LyX
18534 .
18535 \begin_inset Foot
18536 status collapsed
18537
18538 \begin_layout Plain Layout
18539 Perhaps you can take on the task\SpecialChar ldots
18540
18541 \end_layout
18542
18543 \end_inset
18544
18545  I know nothing about these other classes.
18546  Try them out to see what sort of alternative they provide.
18547 \end_layout
18548
18549 \begin_layout Chapter
18550 \SpecialChar LyX
18551  Features needing Extra Software
18552 \end_layout
18553
18554 \begin_layout Section
18555 Checking \SpecialChar TeX
18556
18557 \end_layout
18558
18559 \begin_layout Standard
18560 by 
18561 \noun on
18562 Asger Alstrup
18563 \end_layout
18564
18565 \begin_layout Subsection
18566 Introduction
18567 \end_layout
18568
18569 \begin_layout Standard
18570 If you have the 
18571 \family typewriter
18572 chktex
18573 \family default
18574  program installed
18575 \begin_inset Foot
18576 status collapsed
18577
18578 \begin_layout Plain Layout
18579
18580 \family typewriter
18581 chktex
18582 \family default
18583  is not yet available when you are using the \SpecialChar LaTeX
18584  distribution MiK\SpecialChar TeX
18585 .
18586 \end_layout
18587
18588 \end_inset
18589
18590 , you'll find in the 
18591 \family sans
18592 Tools
18593 \family default
18594  menu the entry: 
18595 \family sans
18596 Check
18597 \begin_inset space ~
18598 \end_inset
18599
18600 TeX
18601 \family default
18602 .
18603  You can get 
18604 \family typewriter
18605 chktex
18606 \family default
18607  from CTAN,
18608 \begin_inset Newline newline
18609 \end_inset
18610
18611
18612 \begin_inset CommandInset href
18613 LatexCommand href
18614 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18615
18616 \end_inset
18617
18618 .
18619 \end_layout
18620
18621 \begin_layout Standard
18622 The 
18623 \family sans
18624 Chk\SpecialChar TeX
18625
18626 \family default
18627  package is a program that was written by 
18628 \begin_inset Flex Noun
18629 status collapsed
18630
18631 \begin_layout Plain Layout
18632 Jens T.
18633 \begin_inset space ~
18634 \end_inset
18635
18636 Berger Thielemann
18637 \end_layout
18638
18639 \end_inset
18640
18641  in frustration because some constructs in \SpecialChar LaTeX
18642  are sometimes non-intuitive,
18643  and easy to forget.
18644  The program runs over your \SpecialChar LaTeX
18645  file, checks the integrity of the file, and
18646  flags some common errors.
18647  In other technical words, it is 
18648 \family typewriter
18649 lint
18650 \family default
18651  for \SpecialChar LaTeX
18652 .
18653 \end_layout
18654
18655 \begin_layout Standard
18656 Well, what is a syntax checker doing in \SpecialChar LyX
18657  which is supposed to produce correct
18658  \SpecialChar LaTeX
18659  anyways? The answer is simple: Just as 
18660 \family typewriter
18661 Lint
18662 \family default
18663  not only checks the 
18664 \emph on
18665 syntax
18666 \emph default
18667  of C programs, but also does 
18668 \emph on
18669 semantic
18670 \emph default
18671  checks for type-errors, 
18672 \family sans
18673 Chk\SpecialChar TeX
18674
18675 \family default
18676  catches some common 
18677 \emph on
18678 typographic
18679 \emph default
18680  errors, in addition to the syntactical ones.
18681  Specifically, 
18682 \family sans
18683 Chk\SpecialChar TeX
18684
18685 \family default
18686  is capable of detecting several common errors, such as
18687 \end_layout
18688
18689 \begin_layout Itemize
18690 Ellipsis detection:
18691 \begin_inset Newline newline
18692 \end_inset
18693
18694 Use \SpecialChar ldots
18695  instead of ...
18696 \end_layout
18697
18698 \begin_layout Itemize
18699 No space in front of/after parenthesis:
18700 \begin_inset Newline newline
18701 \end_inset
18702
18703 ( wrong spacing )
18704 \end_layout
18705
18706 \begin_layout Itemize
18707 Enforcement of normal space after common abbreviations:
18708 \begin_inset Newline newline
18709 \end_inset
18710
18711 e.
18712 \begin_inset space \thinspace{}
18713 \end_inset
18714
18715 g.
18716 \begin_inset space \space{}
18717 \end_inset
18718
18719 is too wide spacing.
18720 \end_layout
18721
18722 \begin_layout Itemize
18723 Enforcement of end-of-sentence space when the last sentence ends with a
18724  capital letter:
18725 \begin_inset Newline newline
18726 \end_inset
18727
18728 This is a TEST.
18729  And this is wrong spacing.
18730 \end_layout
18731
18732 \begin_layout Itemize
18733 Space in front of labels and similar commands:
18734 \begin_inset Newline newline
18735 \end_inset
18736
18737 The label should stick right up to the text to avoid falling to a wrong
18738  page.
18739  
18740 \begin_inset CommandInset label
18741 LatexCommand label
18742 name "sec:chktex"
18743
18744 \end_inset
18745
18746  
18747 \begin_inset Foot
18748 status collapsed
18749
18750 \begin_layout Plain Layout
18751 This footnote is in danger of falling off to a wrong page
18752 \end_layout
18753
18754 \end_inset
18755
18756  The label is separated too much.
18757 \end_layout
18758
18759 \begin_layout Itemize
18760 Space in front of references, instead of hard spaces:
18761 \begin_inset Newline newline
18762 \end_inset
18763
18764 If you have bad luck, the text will break right between the referenced text
18765  and reference number, and that's a pity.
18766  See section 
18767 \begin_inset CommandInset ref
18768 LatexCommand ref
18769 reference "sec:chktex"
18770
18771 \end_inset
18772
18773 .
18774 \end_layout
18775
18776 \begin_layout Itemize
18777 Use of 
18778 \begin_inset Quotes eld
18779 \end_inset
18780
18781 x
18782 \begin_inset Quotes erd
18783 \end_inset
18784
18785  instead of 
18786 \begin_inset Formula $\times$
18787 \end_inset
18788
18789  between numbers:
18790 \begin_inset Newline newline
18791 \end_inset
18792
18793 2x2 looks cheap compared to 
18794 \begin_inset Formula $2\times2$
18795 \end_inset
18796
18797 .
18798 \end_layout
18799
18800 \begin_layout Standard
18801 and more \SpecialChar ldots
18802  It is an invaluable tool when you are 
18803 \begin_inset Quotes eld
18804 \end_inset
18805
18806 finishing up
18807 \begin_inset Quotes erd
18808 \end_inset
18809
18810  your document before printing, and you should run it right after the obligatory
18811  spelling check, and before you go fine tuning the typesetting.
18812 \end_layout
18813
18814 \begin_layout Subsection
18815 How to use it
18816 \end_layout
18817
18818 \begin_layout Standard
18819 If you have the program installed, usage is as simple as choosing 
18820 \family sans
18821 Tools\SpecialChar menuseparator
18822 Check
18823 \begin_inset space ~
18824 \end_inset
18825
18826 TeX
18827 \family default
18828 .
18829  This will make \SpecialChar LyX
18830  generate a \SpecialChar LaTeX
18831  file of your document, start 
18832 \family sans
18833 Chk\SpecialChar TeX
18834
18835 \family default
18836  to check it, and then make \SpecialChar LyX
18837  insert 
18838 \begin_inset Quotes eld
18839 \end_inset
18840
18841 error boxes
18842 \begin_inset Quotes erd
18843 \end_inset
18844
18845  with the warnings from 
18846 \family sans
18847 Chk\SpecialChar TeX
18848
18849 \family default
18850 , if there were any.
18851  The warnings will be placed close to the point of the mistake, and you
18852  can quickly find them by using the 
18853 \family sans
18854 Navigate\SpecialChar menuseparator
18855 Error
18856 \family default
18857  menu item, or the shortcut key 
18858 \family sans
18859 C-g
18860 \family default
18861  from the default 
18862 \family typewriter
18863 cua
18864 \family default
18865  bind file.
18866  Open the error boxes by clicking on them with the mouse, or use the shortcut
18867  key 
18868 \family sans
18869 C-i
18870 \family default
18871  from 
18872 \family typewriter
18873 cua
18874 \family default
18875  bindings, or the corresponding 
18876 \family sans
18877 C-o
18878 \family default
18879  for the alternate 
18880 \family typewriter
18881 emacs
18882 \family default
18883  bind file.
18884  Read the warning and correct the mistake, if it is a mistake.
18885  If you have trouble understanding what the warning is about, you can safely
18886  ignore it.
18887  Remember that there is a hidden layer between the document on screen and
18888  the technical details in invoking 
18889 \family sans
18890 Chk\SpecialChar TeX
18891
18892 \family default
18893 , and this gap can make some warnings seem arcane or just plain silly.
18894 \end_layout
18895
18896 \begin_layout Standard
18897 This document is an excellent testing bed for the feature, and it should
18898  provide quite a few warnings for you to fiddle with.
18899  Since computers are only so smart, expect most of the warnings to be false
18900  alarms, though.
18901 \end_layout
18902
18903 \begin_layout Subsection
18904 How to fine tune it
18905 \end_layout
18906
18907 \begin_layout Standard
18908 Sometimes, you'll find that 
18909 \family sans
18910 Chk\SpecialChar TeX
18911
18912 \family default
18913  makes more noise than suits your mood.
18914  Then you can choose not to use it, wait until your mood changes, or try
18915  to customize 
18916 \family sans
18917 Chk\SpecialChar TeX
18918
18919 \family default
18920  to get better along with you.
18921 \end_layout
18922
18923 \begin_layout Standard
18924 Although 
18925 \family sans
18926 Chk\SpecialChar TeX
18927
18928 \family default
18929  
18930 \emph on
18931 is
18932 \emph default
18933  very configurable and extensible, you should not expect to solve all problems
18934  with 
18935 \family sans
18936 Chk\SpecialChar TeX
18937
18938 \family default
18939  in \SpecialChar LyX
18940  this way.
18941  Since \SpecialChar LyX
18942  has to generate a somewhat special \SpecialChar LaTeX
18943  file to be able to match the
18944  line numbers from the 
18945 \family sans
18946 Chk\SpecialChar TeX
18947
18948 \family default
18949  output
18950 \begin_inset Foot
18951 status collapsed
18952
18953 \begin_layout Plain Layout
18954 You can inspect the specific output from 
18955 \family sans
18956 chktex
18957 \family default
18958  by using 
18959 \family sans
18960 Document\SpecialChar menuseparator
18961 \SpecialChar LaTeX
18962
18963 \begin_inset space ~
18964 \end_inset
18965
18966 Log
18967 \family default
18968  right after a 
18969 \family sans
18970 chktex
18971 \family default
18972  run.
18973 \end_layout
18974
18975 \end_inset
18976
18977  to the internal document structure, some of the warnings will not appear
18978  correctly.
18979  There are two things you can do about this:
18980 \end_layout
18981
18982 \begin_layout Itemize
18983 Fine tune the 
18984 \family sans
18985 Chk\SpecialChar TeX
18986
18987 \family default
18988  invocation command line in 
18989 \begin_inset Flex Noun
18990 status collapsed
18991
18992 \begin_layout Plain Layout
18993 Tools\SpecialChar menuseparator
18994 Preferences\SpecialChar menuseparator
18995 Output\SpecialChar menuseparator
18996 LaTeX\SpecialChar menuseparator
18997 CheckTeX command
18998 \end_layout
18999
19000 \end_inset
19001
19002 , or the global 
19003 \family sans
19004 Chk\SpecialChar TeX
19005
19006 \family default
19007  installation configuration file (usually with the file 
19008 \family typewriter
19009 chktexrc
19010 \family default
19011 ).
19012  See below to learn what warnings can be enabled and disabled on the command
19013  line.
19014 \end_layout
19015
19016 \begin_layout Itemize
19017 Export your document as a raw \SpecialChar LaTeX
19018  file using 
19019 \family sans
19020 File\SpecialChar menuseparator
19021 Export\SpecialChar menuseparator
19022 \SpecialChar LaTeX
19023
19024 \family default
19025  and run 
19026 \family typewriter
19027 chktex
19028 \family default
19029  manually on that.
19030  Invoked in this way, it can be a hassle to find the corresponding place
19031  in the document inside \SpecialChar LyX
19032 , but with a little patience, you should be able
19033  to do it.
19034 \end_layout
19035
19036 \begin_layout Standard
19037 Here follows the warning messages that can be enabled and disabled in 
19038 \family sans
19039 Preferences
19040 \family default
19041 .
19042  Use 
19043 \family typewriter
19044 -n#
19045 \family default
19046  to disable a warning, and 
19047 \family typewriter
19048 -w#
19049 \family default
19050  to enable a warning.
19051  The emphasized entries are disabled by default, because the default is
19052  "
19053 \family typewriter
19054 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19055 \family default
19056 ".
19057 \end_layout
19058
19059 \begin_layout Standard
19060 Notice that you should only use the options that enable and disable warnings,
19061  because \SpecialChar LyX
19062  relies on some of the other command line parameters to be set
19063  in a specific way to have a chance to communicate with 
19064 \family typewriter
19065 chktex
19066 \family default
19067 .
19068 \end_layout
19069
19070 \begin_layout Enumerate
19071
19072 \size small
19073 \emph on
19074 Command terminated with space.
19075 \end_layout
19076
19077 \begin_layout Enumerate
19078
19079 \size small
19080 Non-breaking space (
19081 \begin_inset Quotes eld
19082 \end_inset
19083
19084
19085 \family typewriter
19086 ~
19087 \family default
19088
19089 \begin_inset Quotes erd
19090 \end_inset
19091
19092 ) should have been used.
19093 \end_layout
19094
19095 \begin_layout Enumerate
19096
19097 \size small
19098 \emph on
19099 You should enclose the previous parenthesis with 
19100 \begin_inset Quotes eld
19101 \end_inset
19102
19103
19104 \family typewriter
19105 {}
19106 \family default
19107
19108 \begin_inset Quotes erd
19109 \end_inset
19110
19111 .
19112 \end_layout
19113
19114 \begin_layout Enumerate
19115
19116 \size small
19117 Italic correction (
19118 \begin_inset Quotes eld
19119 \end_inset
19120
19121
19122 \family typewriter
19123
19124 \backslash
19125 /
19126 \family default
19127
19128 \begin_inset Quotes erd
19129 \end_inset
19130
19131 ) found in non-italic buffer.
19132 \end_layout
19133
19134 \begin_layout Enumerate
19135
19136 \size small
19137 Italic correction (
19138 \begin_inset Quotes eld
19139 \end_inset
19140
19141
19142 \family typewriter
19143
19144 \backslash
19145 /
19146 \family default
19147
19148 \begin_inset Quotes erd
19149 \end_inset
19150
19151 ) found more than once.
19152 \end_layout
19153
19154 \begin_layout Enumerate
19155
19156 \size small
19157 \emph on
19158 No italic correction (
19159 \begin_inset Quotes eld
19160 \end_inset
19161
19162
19163 \family typewriter
19164
19165 \backslash
19166 /
19167 \family default
19168
19169 \begin_inset Quotes erd
19170 \end_inset
19171
19172 ) found.
19173 \end_layout
19174
19175 \begin_layout Enumerate
19176
19177 \size small
19178 Accent command 
19179 \begin_inset Quotes eld
19180 \end_inset
19181
19182
19183 \family typewriter
19184 cmd
19185 \family default
19186
19187 \begin_inset Quotes erd
19188 \end_inset
19189
19190  needs use of 
19191 \begin_inset Quotes eld
19192 \end_inset
19193
19194
19195 \family typewriter
19196 cmd
19197 \family default
19198
19199 \begin_inset Quotes erd
19200 \end_inset
19201
19202 .
19203 \end_layout
19204
19205 \begin_layout Enumerate
19206
19207 \size small
19208 Wrong length of dash may have been used.
19209 \end_layout
19210
19211 \begin_layout Enumerate
19212
19213 \size small
19214 \emph on
19215 \begin_inset Quotes eld
19216 \end_inset
19217
19218
19219 \family typewriter
19220 %s
19221 \family default
19222
19223 \begin_inset Quotes erd
19224 \end_inset
19225
19226  expected, found 
19227 \begin_inset Quotes eld
19228 \end_inset
19229
19230
19231 \family typewriter
19232 %s
19233 \family default
19234
19235 \begin_inset Quotes erd
19236 \end_inset
19237
19238 .
19239 \end_layout
19240
19241 \begin_layout Enumerate
19242
19243 \size small
19244 Solo 
19245 \begin_inset Quotes eld
19246 \end_inset
19247
19248
19249 \family typewriter
19250 %s
19251 \family default
19252
19253 \begin_inset Quotes erd
19254 \end_inset
19255
19256  found.
19257 \end_layout
19258
19259 \begin_layout Enumerate
19260
19261 \size small
19262 You should use 
19263 \begin_inset Quotes eld
19264 \end_inset
19265
19266
19267 \family typewriter
19268 %s
19269 \family default
19270
19271 \begin_inset Quotes erd
19272 \end_inset
19273
19274  to achieve an ellipsis.
19275 \end_layout
19276
19277 \begin_layout Enumerate
19278
19279 \size small
19280 Inter-word spacing (
19281 \begin_inset Quotes eld
19282 \end_inset
19283
19284
19285 \family typewriter
19286
19287 \backslash
19288
19289 \family default
19290  
19291 \begin_inset Quotes eld
19292 \end_inset
19293
19294 ) should perhaps be used.
19295 \end_layout
19296
19297 \begin_layout Enumerate
19298
19299 \size small
19300 Inter-sentence spacing (
19301 \begin_inset Quotes eld
19302 \end_inset
19303
19304
19305 \family typewriter
19306
19307 \backslash
19308 @
19309 \family default
19310
19311 \begin_inset Quotes erd
19312 \end_inset
19313
19314 ) should perhaps be used.
19315 \end_layout
19316
19317 \begin_layout Enumerate
19318
19319 \size small
19320 Could not find argument for command.
19321 \end_layout
19322
19323 \begin_layout Enumerate
19324
19325 \size small
19326 No match found for 
19327 \begin_inset Quotes eld
19328 \end_inset
19329
19330
19331 \family typewriter
19332 %s
19333 \family default
19334
19335 \begin_inset Quotes erd
19336 \end_inset
19337
19338 .
19339 \end_layout
19340
19341 \begin_layout Enumerate
19342
19343 \size small
19344 Math mode still on at end of \SpecialChar LaTeX
19345  file.
19346 \end_layout
19347
19348 \begin_layout Enumerate
19349
19350 \size small
19351 Number of 
19352 \begin_inset Quotes eld
19353 \end_inset
19354
19355
19356 \family typewriter
19357 char
19358 \family default
19359
19360 \begin_inset Quotes erd
19361 \end_inset
19362
19363  doesn't match the number of 
19364 \begin_inset Quotes eld
19365 \end_inset
19366
19367
19368 \family typewriter
19369 char
19370 \family default
19371
19372 \begin_inset Quotes erd
19373 \end_inset
19374
19375 .
19376 \end_layout
19377
19378 \begin_layout Enumerate
19379
19380 \size small
19381 You should use either 
19382 \family typewriter
19383
19384 \begin_inset Quotes eld
19385 \end_inset
19386
19387
19388 \family default
19389  or 
19390 \family typewriter
19391
19392 \begin_inset Quotes erd
19393 \end_inset
19394
19395
19396 \family default
19397  as an alternative to 
19398 \begin_inset Quotes eld
19399 \end_inset
19400
19401
19402 \family typewriter
19403 "
19404 \family default
19405
19406 \begin_inset Quotes erd
19407 \end_inset
19408
19409 .
19410 \end_layout
19411
19412 \begin_layout Enumerate
19413
19414 \size small
19415 You should use "
19416 \family typewriter
19417 '
19418 \family default
19419 " (ASCII 39) instead of "
19420 \family typewriter
19421 ´
19422 \family default
19423 " (ASCII 180).
19424 \end_layout
19425
19426 \begin_layout Enumerate
19427
19428 \size small
19429 User-specified pattern found.
19430 \end_layout
19431
19432 \begin_layout Enumerate
19433
19434 \size small
19435 This command might not be intended.
19436 \end_layout
19437
19438 \begin_layout Enumerate
19439
19440 \size small
19441 \emph on
19442 Comment displayed.
19443 \end_layout
19444
19445 \begin_layout Enumerate
19446
19447 \size small
19448 Either 
19449 \family typewriter
19450 ''
19451 \backslash
19452 ,'
19453 \family default
19454  or 
19455 \family typewriter
19456 '
19457 \backslash
19458 ,''
19459 \family default
19460  will look better.
19461 \end_layout
19462
19463 \begin_layout Enumerate
19464
19465 \size small
19466 Delete this space to maintain correct page references.
19467 \end_layout
19468
19469 \begin_layout Enumerate
19470
19471 \size small
19472 \emph on
19473 You might wish to put this between a pair of 
19474 \begin_inset Quotes eld
19475 \end_inset
19476
19477
19478 \family typewriter
19479 {}
19480 \family default
19481
19482 \begin_inset Quotes erd
19483 \end_inset
19484
19485 .
19486 \end_layout
19487
19488 \begin_layout Enumerate
19489
19490 \size small
19491 You ought to remove spaces in front of punctuation.
19492 \end_layout
19493
19494 \begin_layout Enumerate
19495
19496 \size small
19497 Could not execute \SpecialChar LaTeX
19498  command.
19499 \end_layout
19500
19501 \begin_layout Enumerate
19502
19503 \size small
19504 Don't use 
19505 \family typewriter
19506
19507 \backslash
19508 /
19509 \family default
19510  in front of small punctuation.
19511 \end_layout
19512
19513 \begin_layout Enumerate
19514
19515 \family typewriter
19516 \size small
19517 $
19518 \backslash
19519 times$
19520 \family default
19521  may look prettier here.
19522 \end_layout
19523
19524 \begin_layout Enumerate
19525
19526 \size small
19527 \emph on
19528 Multiple spaces detected in output.
19529 \end_layout
19530
19531 \begin_layout Enumerate
19532
19533 \size small
19534 This text may be ignored.
19535 \end_layout
19536
19537 \begin_layout Enumerate
19538
19539 \size small
19540 Use 
19541 \family typewriter
19542
19543 \begin_inset Quotes eld
19544 \end_inset
19545
19546
19547 \family default
19548  to begin quotation, not 
19549 \family typewriter
19550 '
19551 \family default
19552 .
19553 \end_layout
19554
19555 \begin_layout Enumerate
19556
19557 \size small
19558 Use 
19559 \family typewriter
19560 '
19561 \family default
19562  to end quotation, not 
19563 \family typewriter
19564
19565 \begin_inset Quotes eld
19566 \end_inset
19567
19568
19569 \family default
19570 .
19571 \end_layout
19572
19573 \begin_layout Enumerate
19574
19575 \size small
19576 Don't mix quotes.
19577 \end_layout
19578
19579 \begin_layout Enumerate
19580
19581 \size small
19582 You should perhaps use 
19583 \begin_inset Quotes eld
19584 \end_inset
19585
19586
19587 \family typewriter
19588 cmd
19589 \family default
19590
19591 \begin_inset Quotes erd
19592 \end_inset
19593
19594  instead.
19595 \end_layout
19596
19597 \begin_layout Enumerate
19598
19599 \size small
19600 You should put a space in front of/after parenthesis.
19601 \end_layout
19602
19603 \begin_layout Enumerate
19604
19605 \size small
19606 You should avoid spaces in front of/after parenthesis.
19607 \end_layout
19608
19609 \begin_layout Enumerate
19610
19611 \size small
19612 \emph on
19613 You should not use punctuation in front of/after quotes.
19614 \end_layout
19615
19616 \begin_layout Enumerate
19617
19618 \size small
19619 Double space found.
19620 \end_layout
19621
19622 \begin_layout Enumerate
19623
19624 \size small
19625 You should put punctuation outside inner/inside display math mode.
19626 \end_layout
19627
19628 \begin_layout Enumerate
19629
19630 \size small
19631 You ought to not use primitive \SpecialChar TeX
19632  in \SpecialChar LaTeX
19633  code.
19634 \end_layout
19635
19636 \begin_layout Enumerate
19637
19638 \size small
19639 You should remove spaces in front of 
19640 \begin_inset Quotes eld
19641 \end_inset
19642
19643
19644 \family typewriter
19645 %s
19646 \family default
19647
19648 \begin_inset Quotes erd
19649 \end_inset
19650
19651
19652 \end_layout
19653
19654 \begin_layout Enumerate
19655
19656 \size small
19657 \begin_inset Quotes eld
19658 \end_inset
19659
19660
19661 \family typewriter
19662 %s
19663 \family default
19664
19665 \begin_inset Quotes erd
19666 \end_inset
19667
19668  is normally not followed by 
19669 \begin_inset Quotes eld
19670 \end_inset
19671
19672
19673 \family typewriter
19674 %c
19675 \family default
19676
19677 \begin_inset Quotes erd
19678 \end_inset
19679
19680 .
19681 \end_layout
19682
19683 \begin_layout Standard
19684 In later versions of \SpecialChar LyX
19685 , we hope to provide a more complete interface to this
19686  tool (and it's smaller cousin 
19687 \family typewriter
19688 lacheck
19689 \family default
19690 ) to exploit the full power of it.
19691  But it's not exactly useless as it is now: go try it on one of your existing
19692  documents of a certain length and be surprised.
19693 \end_layout
19694
19695 \begin_layout Section
19696 Version Control in \SpecialChar LyX
19697
19698 \end_layout
19699
19700 \begin_layout Standard
19701 by
19702 \noun on
19703  Lars Gullik Bjønnes 
19704 \noun default
19705 and 
19706 \noun on
19707 Pavel Sanda
19708 \end_layout
19709
19710 \begin_layout Subsection
19711 Introduction
19712 \end_layout
19713
19714 \begin_layout Standard
19715 \SpecialChar LyX
19716  supports some of the most basic RCS/CVS/SVN/GIT commands.
19717  If you need something a bit more sophisticated you will have to do that
19718  manually in a terminal.
19719 \end_layout
19720
19721 \begin_layout Standard
19722 Also note that CVS support is not as good as subversion support so we advise
19723  using SVN instead.
19724  A good place to start learning Subversion is SVN Book
19725 \begin_inset Foot
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729 \begin_inset CommandInset href
19730 LatexCommand href
19731 target "http://svnbook.red-bean.com/"
19732
19733 \end_inset
19734
19735
19736 \end_layout
19737
19738 \end_inset
19739
19740 .
19741  In the case of RCS you should read 
19742 \begin_inset Quotes eld
19743 \end_inset
19744
19745 rcsintro
19746 \begin_inset Quotes erd
19747 \end_inset
19748
19749  (a man file, read it with 
19750 \family typewriter
19751 man rcsintro
19752 \family default
19753 ).
19754  This file describes all the basic features of RCS.
19755  You should especially notice the comment about a RCS directory, and the
19756  notion of a master RCS file (the file ending in 
19757 \family typewriter
19758 ,v
19759 \family default
19760 ).
19761 \end_layout
19762
19763 \begin_layout Standard
19764 Before you begin to use the version control features in \SpecialChar LyX
19765 , you should be
19766  familiar with RCS/CVS/SVN/GIT usage.
19767  The implementation in \SpecialChar LyX
19768  assumes a recent version of the GNU RCS or CVS/SVN
19769  package — no guarantees are made for older versions.
19770  Most of the log messages are not currently displayed after operations —
19771  you can check them in the Messages pane if unsure.
19772  Regular users of version control will appreciate VC toolbar, which can
19773  be enabled via 
19774 \family sans
19775 View\SpecialChar menuseparator
19776 Toolbars\SpecialChar menuseparator
19777 Version
19778 \begin_inset space ~
19779 \end_inset
19780
19781 Control
19782 \family default
19783 .
19784 \end_layout
19785
19786 \begin_layout Standard
19787 For introducing your own external commands consult vc-command in the manual
19788  of \SpecialChar LyX
19789  functions.
19790 \end_layout
19791
19792 \begin_layout Standard
19793 It is strongly recommended to store documents in uncompressed format if
19794  using version control (uncheck 
19795 \family sans
19796 Document\SpecialChar menuseparator
19797 Compressed
19798 \family default
19799  if it is checked): Uncompressed LyX documents are text files and therefore
19800  for merging two different versions by version control systems.
19801  Compressed LyX documents are binary files, which cannot be merged by version
19802  control systems.
19803 \end_layout
19804
19805 \begin_layout Subsection
19806 RCS commands in \SpecialChar LyX
19807
19808 \end_layout
19809
19810 \begin_layout Standard
19811 The following sections describe the RCS commands supported by \SpecialChar LyX
19812 .
19813  You can find them in the 
19814 \family sans
19815 File\SpecialChar menuseparator
19816 Version
19817 \begin_inset space ~
19818 \end_inset
19819
19820 Control
19821 \family default
19822  submenu.
19823  \SpecialChar LyX
19824  was tested against RCS 5.7/5.8.
19825 \end_layout
19826
19827 \begin_layout Subsubsection
19828
19829 \family sans
19830 Register
19831 \end_layout
19832
19833 \begin_layout Standard
19834 If your document is not under revision control, this is the only item shown
19835  in the menu.
19836  And if it is under revision control, the 
19837 \family sans
19838 Register
19839 \family default
19840  item is not visible.
19841  
19842 \end_layout
19843
19844 \begin_layout Standard
19845 This command registers your document with RCS (unless you are under the
19846  directory managed by CVS)\SpecialChar endofsentence
19847  You are asked interactively to supply an initial
19848  description of the document.
19849  The document is now set in Read-Only mode and you have to 
19850 \family sans
19851 Check
19852 \begin_inset space ~
19853 \end_inset
19854
19855 Out
19856 \begin_inset space ~
19857 \end_inset
19858
19859 For
19860 \begin_inset space ~
19861 \end_inset
19862
19863 Edit
19864 \family default
19865 , before making any changes to it.
19866  A document under revision control has a 
19867 \begin_inset Quotes eld
19868 \end_inset
19869
19870 [RCS:<version> <locker>]
19871 \begin_inset Quotes erd
19872 \end_inset
19873
19874  item tagged to the filename in the minibuffer.
19875 \end_layout
19876
19877 \begin_layout Standard
19878 RCS command that is run: 
19879 \family typewriter
19880 ci -q -u -i -t-"<initial description>" <file-name>
19881 \end_layout
19882
19883 \begin_layout Standard
19884 Read 
19885 \family typewriter
19886 man ci
19887 \family default
19888  to understand the switches.
19889  
19890 \end_layout
19891
19892 \begin_layout Subsubsection
19893
19894 \family sans
19895 Check In Changes
19896 \end_layout
19897
19898 \begin_layout Standard
19899 When you are finished editing a file, you check in your changes.
19900  When you do this, you are asked for a description of the changes.
19901  This is stored in the history log.
19902  The version number is bumped, your changes are applied to the master RCS
19903  file, the document is unlocked and set to Read-Only mode.
19904 \end_layout
19905
19906 \begin_layout Standard
19907 RCS command: 
19908 \family typewriter
19909 ci -q -u -m"<description>" <file-name>
19910 \end_layout
19911
19912 \begin_layout Subsubsection
19913
19914 \family sans
19915 Check Out For Edit
19916 \end_layout
19917
19918 \begin_layout Standard
19919 By doing this you lock the document so that only you can edit it.
19920  This will also make the document Read-Write only for you.
19921  You will usually continue editing for a while and when you are finished
19922  you check in your changes.
19923  The status line is changed to reflect that you have locked the file.
19924 \end_layout
19925
19926 \begin_layout Standard
19927 RCS command: 
19928 \family typewriter
19929 co -q -l <file-name>
19930 \end_layout
19931
19932 \begin_layout Subsubsection
19933
19934 \family sans
19935 Revert To Repository Version
19936 \end_layout
19937
19938 \begin_layout Standard
19939 This will discard all changes made to the document since the last check
19940  in.
19941  You get a warning before changes are discarded.
19942 \end_layout
19943
19944 \begin_layout Standard
19945 RCS command: 
19946 \family typewriter
19947 co -f -u<version> <file-name>
19948 \end_layout
19949
19950 \begin_layout Subsubsection
19951
19952 \family sans
19953 Copy
19954 \end_layout
19955
19956 \begin_layout Standard
19957 This will create a copy of the current document.
19958  Since RCS does not support copy operations natively, the version history
19959  is not preserved, and the copy is added as a new file.
19960  It requires a clean document without any changes since the last checkin.
19961  You are asked for a file name and a description of the copy operation.
19962  After that the copy is created, both locally and in the repository.
19963  If the parent directories of the copied and original document differ, all
19964  relative paths of included files of the copy are adjusted (like in 
19965 \family sans
19966 File\SpecialChar menuseparator
19967 Save As
19968 \family default
19969 \SpecialChar ldots
19970 ).
19971  Finally, the copy is loaded instead of the original document.
19972 \end_layout
19973
19974 \begin_layout Labeling
19975 \labelwidthstring 00.00.0000
19976 RCS
19977 \begin_inset space ~
19978 \end_inset
19979
19980 commands: 
19981 \begin_inset space ~
19982 \end_inset
19983
19984
19985 \begin_inset Newline newline
19986 \end_inset
19987
19988 Copy 
19989 \begin_inset Flex Code
19990 status collapsed
19991
19992 \begin_layout Plain Layout
19993
19994 \family typewriter
19995 \begin_inset Quotes eld
19996 \end_inset
19997
19998 <file-name>
19999 \begin_inset Quotes erd
20000 \end_inset
20001
20002
20003 \end_layout
20004
20005 \end_inset
20006
20007  to 
20008 \begin_inset Flex Code
20009 status collapsed
20010
20011 \begin_layout Plain Layout
20012
20013 \family typewriter
20014 \begin_inset Quotes eld
20015 \end_inset
20016
20017 <new-file-name>
20018 \begin_inset Quotes erd
20019 \end_inset
20020
20021
20022 \end_layout
20023
20024 \end_inset
20025
20026
20027 \begin_inset Newline newline
20028 \end_inset
20029
20030
20031 \begin_inset Flex Code
20032 status collapsed
20033
20034 \begin_layout Plain Layout
20035 ci -q -u 
20036 \family typewriter
20037 -i 
20038 \begin_inset Quotes eld
20039 \end_inset
20040
20041 <new-file-name>
20042 \begin_inset Quotes erd
20043 \end_inset
20044
20045
20046 \end_layout
20047
20048 \end_inset
20049
20050
20051 \end_layout
20052
20053 \begin_layout Subsubsection
20054
20055 \family sans
20056 Undo Last Checkin
20057 \end_layout
20058
20059 \begin_layout Standard
20060 This makes as if the last check in never happened.
20061  No changes are made to the document loaded into \SpecialChar LyX
20062 , but the last version
20063  is removed from the master RCS file.
20064 \end_layout
20065
20066 \begin_layout Standard
20067 RCS command: 
20068 \family typewriter
20069 rcs -o<version> <file-name>
20070 \end_layout
20071
20072 \begin_layout Subsubsection
20073
20074 \family sans
20075 Show History
20076 \end_layout
20077
20078 \begin_layout Standard
20079 This shows the complete history of the RCS document.
20080  The output of 
20081 \family typewriter
20082 rlog <file-name>
20083 \family default
20084  is shown in a browser.
20085  See 
20086 \family typewriter
20087 man rlog
20088 \family default
20089  for more info.
20090 \end_layout
20091
20092 \begin_layout Subsubsection
20093 Revision info
20094 \end_layout
20095
20096 \begin_layout Standard
20097 \SpecialChar LyX
20098  supports RCS version number, author name, date and time of last commit.
20099  All those are extracted from 
20100 \family typewriter
20101 rlog -r <file-name>
20102 \family default
20103 .
20104  See 
20105 \begin_inset CommandInset ref
20106 LatexCommand ref
20107 reference "subsec:VCS-Revision-Information"
20108
20109 \end_inset
20110
20111  for details.
20112 \end_layout
20113
20114 \begin_layout Subsection
20115 CVS commands in \SpecialChar LyX
20116
20117 \end_layout
20118
20119 \begin_layout Standard
20120 A subset of CVS operations is supported by \SpecialChar LyX
20121 .
20122  You can find the commands in the 
20123 \family sans
20124 File\SpecialChar menuseparator
20125 Version
20126 \begin_inset space ~
20127 \end_inset
20128
20129 Control
20130 \family default
20131  submenu.
20132  The version control system SVN is more powerful, so please use it instead
20133  of CVS if possible.
20134 \end_layout
20135
20136 \begin_layout Subsubsection
20137
20138 \family sans
20139 General CVS usage
20140 \end_layout
20141
20142 \begin_layout Standard
20143 If you start from scratch with CVS you have to create your repository and
20144  checkout the working copy with external tools.
20145  If you're using a client-server setup you may need to login before doing
20146  the first repository checkout.
20147 \end_layout
20148
20149 \begin_layout Standard
20150 If your documents are under revision control and others are using the same
20151  repository problems arise when different changes to the same document at
20152  the same location happen.
20153  Standard CVS repositories don't operate with a file locking mechanism.
20154  This may be surprising, but conflicts only occur if people disagree on
20155  the proper content of the same part of a document.
20156  So, if co-workers are used to communicate regularly, these conflicts occur
20157  rarely.
20158  If they don't communicate they have a fundamental problem anyway.
20159  Nevertheless some people like to work with so called 
20160 \begin_inset Quotes eld
20161 \end_inset
20162
20163 reserved checkouts
20164 \begin_inset Quotes erd
20165 \end_inset
20166
20167 .
20168  If they do so the working copy of all files is readonly when checked out
20169  first and the user starts editing after using a special command to make
20170  the working copy writable.
20171  When the changes are checked in the working copy returns to readonly state.
20172  With \SpecialChar LyX
20173  one has to edit the 
20174 \begin_inset Flex Code
20175 status collapsed
20176
20177 \begin_layout Plain Layout
20178 .cvsrc
20179 \end_layout
20180
20181 \end_inset
20182
20183  file and add the line 
20184 \begin_inset Flex Code
20185 status collapsed
20186
20187 \begin_layout Plain Layout
20188 cvs -r
20189 \end_layout
20190
20191 \end_inset
20192
20193  to work with reserved checkouts.
20194  The benefit is the possibility to see who is using a writable copy of some
20195  document.
20196  It's not guaranteed only one user makes a copy writable.
20197 \end_layout
20198
20199 \begin_layout Standard
20200 \SpecialChar LyX
20201  tries to guess if you're using reserved or non-reserved checkouts.
20202  If your working copy is readonly or it is writable and an additional copy
20203  of your document exists in the CVS/Base sub-directory a reserved otherwise
20204  a non-reserved checkout is assumed.
20205  When a reserved checkout is detected you have to use 
20206 \begin_inset Flex Noun
20207 status collapsed
20208
20209 \begin_layout Plain Layout
20210 Check Out
20211 \end_layout
20212
20213 \end_inset
20214
20215  to make your working copy writable if it's readonly.
20216  After doing so the 
20217 \begin_inset Flex Noun
20218 status collapsed
20219
20220 \begin_layout Plain Layout
20221 Check In
20222 \end_layout
20223
20224 \end_inset
20225
20226  operation is possible and that makes your working copy readonly again after
20227  transferring your changes to the repository.
20228 \end_layout
20229
20230 \begin_layout Standard
20231 More information about CVS can be found here 
20232 \begin_inset Flex URL
20233 status collapsed
20234
20235 \begin_layout Plain Layout
20236
20237 http://www.nongnu.org/cvs
20238 \end_layout
20239
20240 \end_inset
20241
20242  and here 
20243 \begin_inset Flex URL
20244 status collapsed
20245
20246 \begin_layout Plain Layout
20247
20248 http://ximbiot.com/cvs
20249 \end_layout
20250
20251 \end_inset
20252
20253 .
20254 \end_layout
20255
20256 \begin_layout Standard
20257 Read 
20258 \family typewriter
20259 man cvs
20260 \family default
20261  to understand the sub-commands and the switches mentioned below.
20262 \end_layout
20263
20264 \begin_layout Subsubsection
20265
20266 \family sans
20267 Register
20268 \end_layout
20269
20270 \begin_layout Standard
20271 If your document is not under revision control, this is the only item shown
20272  in the menu.
20273  And if it is under revision control, the 
20274 \family sans
20275 \bar under
20276 R
20277 \bar default
20278 egister
20279 \family default
20280  item is not visible.
20281  
20282 \end_layout
20283
20284 \begin_layout Standard
20285 This command registers in CVS your document 
20286 \begin_inset Flex Strong
20287 status collapsed
20288
20289 \begin_layout Plain Layout
20290
20291 \emph on
20292 only
20293 \end_layout
20294
20295 \end_inset
20296
20297  in the case you have already the documents directory under CVS control
20298  (in particular 
20299 \family typewriter
20300 CVS/Entries
20301 \family default
20302  file exists).
20303  This means you have to create or checkout the archive by yourself using
20304  external tools.
20305  (In case you forget that step \SpecialChar LyX
20306  registers the document with RCS.)
20307 \end_layout
20308
20309 \begin_layout Standard
20310 Then you are asked interactively to supply an initial description of the
20311  document.
20312  Don't forget that registered file is not yet checked in.
20313 \end_layout
20314
20315 \begin_layout Standard
20316 CVS command that is run: 
20317 \family typewriter
20318 cvs -q add -m"<entered message>" "<file-name>"
20319 \end_layout
20320
20321 \begin_layout Standard
20322 The term 
20323 \family typewriter
20324 "<file-name>"
20325 \family default
20326  above and for all other CVS commands is an abbreviation for 
20327 \begin_inset Quotes eld
20328 \end_inset
20329
20330 change the current working directory to file location and use the file name
20331  without path component as argument
20332 \begin_inset Quotes erd
20333 \end_inset
20334
20335 .
20336 \end_layout
20337
20338 \begin_layout Subsubsection
20339
20340 \family sans
20341 Check In Changes
20342 \end_layout
20343
20344 \begin_layout Standard
20345 When you are finished editing a file, you commit your changes.
20346  When you do this and you had changed the document, you are asked for a
20347  description of the changes.
20348  After that changes are written to the repository.
20349  In case you didn't change the document and a reserved checkout is detected
20350  the reservation made on 
20351 \begin_inset Flex Noun
20352 status collapsed
20353
20354 \begin_layout Plain Layout
20355 Check Out
20356 \end_layout
20357
20358 \end_inset
20359
20360  is undone.
20361 \end_layout
20362
20363 \begin_layout Labeling
20364 \labelwidthstring 00.00.0000
20365 CVS
20366 \begin_inset space ~
20367 \end_inset
20368
20369 command: 
20370 \begin_inset space ~
20371 \end_inset
20372
20373
20374 \begin_inset Newline newline
20375 \end_inset
20376
20377
20378 \begin_inset Flex Code
20379 status collapsed
20380
20381 \begin_layout Plain Layout
20382 cvs 
20383 \family typewriter
20384 -q commit -m"<description>" "<file-name>"
20385 \end_layout
20386
20387 \end_inset
20388
20389  or
20390 \begin_inset Newline newline
20391 \end_inset
20392
20393
20394 \begin_inset Flex Code
20395 status collapsed
20396
20397 \begin_layout Plain Layout
20398 cvs -q unedit 
20399 \family typewriter
20400 "<file-name>"
20401 \end_layout
20402
20403 \end_inset
20404
20405
20406 \end_layout
20407
20408 \begin_layout Subsubsection
20409
20410 \family sans
20411 Check Out Changes
20412 \end_layout
20413
20414 \begin_layout Standard
20415 When you are sharing a repository with others, you may have to incorporate
20416  their changes into your working copy.
20417 \end_layout
20418
20419 \begin_layout Standard
20420 CVS command: 
20421 \family typewriter
20422 cvs -q update "<file-name>"
20423 \end_layout
20424
20425 \begin_layout Standard
20426 If a readonly checkout is detected the working copy is made writable and
20427  reserved.
20428 \end_layout
20429
20430 \begin_layout Standard
20431 CVS command: 
20432 \family typewriter
20433 cvs -q edit "<file-name>"
20434 \end_layout
20435
20436 \begin_layout Subsubsection
20437
20438 \family sans
20439 Revert To Repository Version
20440 \end_layout
20441
20442 \begin_layout Standard
20443 This will discard all changes made to the document since the last check
20444  in.
20445  You get a warning before changes are discarded.
20446  Firstly the file is deleted, secondly CVS update command is run.
20447 \end_layout
20448
20449 \begin_layout Standard
20450 CVS command: 
20451 \family typewriter
20452 cvs -q update "<file-name>"
20453 \end_layout
20454
20455 \begin_layout Standard
20456 If a reserved checkout is detected and the working copy has no changes only
20457  the reservation is undone.
20458 \end_layout
20459
20460 \begin_layout Standard
20461 CVS command: 
20462 \family typewriter
20463 cvs -q unedit "<file-name>"
20464 \end_layout
20465
20466 \begin_layout Subsubsection
20467
20468 \family sans
20469 Copy
20470 \end_layout
20471
20472 \begin_layout Standard
20473 This will create a copy of the current document.
20474  Since CVS does not support copy operations natively, the version history
20475  is not preserved, and the copy is added as a new file.
20476  It requires a clean document without any changes since the last checkin.
20477  You are asked for a file name and a description of the copy operation.
20478  After that the copy is created, both locally and in the repository.
20479  If the parent directories of the copied and original document differ, all
20480  relative paths of included files of the copy are adjusted (like in 
20481 \family sans
20482 File\SpecialChar menuseparator
20483 Save As
20484 \family default
20485 \SpecialChar ldots
20486 ).
20487  Finally, the copy is loaded instead of the original document.
20488 \end_layout
20489
20490 \begin_layout Labeling
20491 \labelwidthstring 00.00.0000
20492 CVS
20493 \begin_inset space ~
20494 \end_inset
20495
20496 commands: 
20497 \begin_inset space ~
20498 \end_inset
20499
20500
20501 \begin_inset Newline newline
20502 \end_inset
20503
20504 Copy 
20505 \begin_inset Flex Code
20506 status collapsed
20507
20508 \begin_layout Plain Layout
20509
20510 \family typewriter
20511 \begin_inset Quotes eld
20512 \end_inset
20513
20514 <file-name>
20515 \begin_inset Quotes erd
20516 \end_inset
20517
20518
20519 \end_layout
20520
20521 \end_inset
20522
20523  to 
20524 \begin_inset Flex Code
20525 status collapsed
20526
20527 \begin_layout Plain Layout
20528
20529 \family typewriter
20530 \begin_inset Quotes eld
20531 \end_inset
20532
20533 <new-file-name>
20534 \begin_inset Quotes erd
20535 \end_inset
20536
20537
20538 \end_layout
20539
20540 \end_inset
20541
20542
20543 \begin_inset Newline newline
20544 \end_inset
20545
20546
20547 \begin_inset Flex Code
20548 status collapsed
20549
20550 \begin_layout Plain Layout
20551 cvs -q add 
20552 \family typewriter
20553
20554 \begin_inset Quotes eld
20555 \end_inset
20556
20557 <new-file-name>
20558 \begin_inset Quotes erd
20559 \end_inset
20560
20561
20562 \end_layout
20563
20564 \end_inset
20565
20566
20567 \end_layout
20568
20569 \begin_layout Subsubsection
20570
20571 \family sans
20572 Rename
20573 \end_layout
20574
20575 \begin_layout Standard
20576 This will rename the current document.
20577  Since CVS does not support rename operations natively, the version history
20578  is not preserved, the renamed document is added as a new file, and the
20579  original document is deleted.
20580  It requires a clean document without any changes since the last checkin.
20581  You are asked for a file name and a description of the rename operation.
20582  After that the document is renamed, both locally and in the repository.
20583  If the parent directories of the new and old file names differ, all relative
20584  paths of included files are adjusted (like in 
20585 \family sans
20586 File\SpecialChar menuseparator
20587 Save As
20588 \family default
20589 \SpecialChar ldots
20590 ).
20591  Finally, the document is reloaded using the new name.
20592 \end_layout
20593
20594 \begin_layout Labeling
20595 \labelwidthstring 00.00.0000
20596 CVS
20597 \begin_inset space ~
20598 \end_inset
20599
20600 commands: 
20601 \begin_inset space ~
20602 \end_inset
20603
20604
20605 \begin_inset Newline newline
20606 \end_inset
20607
20608 Rename 
20609 \begin_inset Flex Code
20610 status collapsed
20611
20612 \begin_layout Plain Layout
20613
20614 \family typewriter
20615 \begin_inset Quotes eld
20616 \end_inset
20617
20618 <file-name>
20619 \begin_inset Quotes erd
20620 \end_inset
20621
20622
20623 \end_layout
20624
20625 \end_inset
20626
20627  to 
20628 \begin_inset Flex Code
20629 status collapsed
20630
20631 \begin_layout Plain Layout
20632
20633 \family typewriter
20634 \begin_inset Quotes eld
20635 \end_inset
20636
20637 <new-file-name>
20638 \begin_inset Quotes erd
20639 \end_inset
20640
20641
20642 \end_layout
20643
20644 \end_inset
20645
20646
20647 \begin_inset Newline newline
20648 \end_inset
20649
20650
20651 \begin_inset Flex Code
20652 status collapsed
20653
20654 \begin_layout Plain Layout
20655 cvs -q add 
20656 \family typewriter
20657
20658 \begin_inset Quotes eld
20659 \end_inset
20660
20661 <new-file-name>
20662 \begin_inset Quotes erd
20663 \end_inset
20664
20665
20666 \end_layout
20667
20668 \end_inset
20669
20670
20671 \begin_inset Newline newline
20672 \end_inset
20673
20674
20675 \begin_inset Flex Code
20676 status collapsed
20677
20678 \begin_layout Plain Layout
20679 cvs -q remove 
20680 \family typewriter
20681
20682 \begin_inset Quotes eld
20683 \end_inset
20684
20685 <file-name>
20686 \begin_inset Quotes erd
20687 \end_inset
20688
20689
20690 \end_layout
20691
20692 \end_inset
20693
20694
20695 \end_layout
20696
20697 \begin_layout Subsubsection
20698 Update of the local directory checkout from repository
20699 \end_layout
20700
20701 \begin_layout Standard
20702 Once your documents gets more complex, containing sub-documents and pictures,
20703  including external 
20704 \begin_inset Flex Code
20705 status collapsed
20706
20707 \begin_layout Plain Layout
20708 .tex
20709 \end_layout
20710
20711 \end_inset
20712
20713  files and so on using version control becomes more complicated.
20714  \SpecialChar LyX
20715  supports updating the whole tree in which resides the document.
20716  This become especially useful once you cooperate with people which neither
20717  have detailed knowledge about CVS usage nor they have ambition to commit
20718  additional material to the repository.
20719  You have to organize the files structure so that all external files are
20720  in the same directory or subdirectories of the document.
20721  It's good practice anyway to store multipart documents in an extra directory.
20722 \end_layout
20723
20724 \begin_layout Standard
20725 The 
20726 \begin_inset Flex Code
20727 status collapsed
20728
20729 \begin_layout Plain Layout
20730 Update local directory from repository
20731 \end_layout
20732
20733 \end_inset
20734
20735  command updates the whole directory.
20736  If local changes are detected user is warned before update starts.
20737  In case of merge conflicts both versions of the conflicting document parts
20738  are placed in the final document.
20739  You have to review and correct the result of the merge.
20740  You'll find the conflicts enclosed in pairs of 
20741 \begin_inset Flex Code
20742 status collapsed
20743
20744 \begin_layout Plain Layout
20745 <<<<<<<
20746 \end_layout
20747
20748 \end_inset
20749
20750  and 
20751 \begin_inset Flex Code
20752 status collapsed
20753
20754 \begin_layout Plain Layout
20755 >>>>>>>
20756 \end_layout
20757
20758 \end_inset
20759
20760  separated by 
20761 \begin_inset Flex Code
20762 status collapsed
20763
20764 \begin_layout Plain Layout
20765 =======
20766 \end_layout
20767
20768 \end_inset
20769
20770 .
20771  The first part is your version as before the update operation with the
20772  document name prepended.
20773  The second one is the repository version with the version number after
20774  the sequence of 
20775 \begin_inset Flex Code
20776 status collapsed
20777
20778 \begin_layout Plain Layout
20779 >
20780 \end_layout
20781
20782 \end_inset
20783
20784  signs.
20785 \end_layout
20786
20787 \begin_layout Labeling
20788 \labelwidthstring 00.00.0000
20789 CVS
20790 \begin_inset space ~
20791 \end_inset
20792
20793 commands: 
20794 \begin_inset space ~
20795 \end_inset
20796
20797
20798 \begin_inset Newline newline
20799 \end_inset
20800
20801
20802 \begin_inset Flex Code
20803 status collapsed
20804
20805 \begin_layout Plain Layout
20806 cd $path; cvs diff 
20807 \family typewriter
20808 "."
20809 \end_layout
20810
20811 \end_inset
20812
20813  (Ask if changes are detected.)
20814 \begin_inset Newline newline
20815 \end_inset
20816
20817
20818 \begin_inset Flex Code
20819 status collapsed
20820
20821 \begin_layout Plain Layout
20822 cd $path; cvs -q update 
20823 \family typewriter
20824 "."
20825 \end_layout
20826
20827 \end_inset
20828
20829
20830 \end_layout
20831
20832 \begin_layout Standard
20833 where 
20834 \begin_inset Flex Code
20835 status collapsed
20836
20837 \begin_layout Plain Layout
20838 $path
20839 \end_layout
20840
20841 \end_inset
20842
20843  stands for the path to the document.
20844 \end_layout
20845
20846 \begin_layout Subsubsection
20847
20848 \family sans
20849 Show History
20850 \end_layout
20851
20852 \begin_layout Standard
20853 This shows the complete history of the CVS document.
20854  The output of 
20855 \family typewriter
20856 cvs log "<file-name>"
20857 \family default
20858  is shown in a browser.
20859 \end_layout
20860
20861 \begin_layout Subsubsection
20862 Revision info
20863 \end_layout
20864
20865 \begin_layout Standard
20866 \SpecialChar LyX
20867  supports CVS version number, author name, date and time of last commit.
20868  All those are extracted from 
20869 \family typewriter
20870 cvs log -r <file-name>
20871 \family default
20872 .
20873  See 
20874 \begin_inset CommandInset ref
20875 LatexCommand ref
20876 reference "subsec:VCS-Revision-Information"
20877
20878 \end_inset
20879
20880  for details.
20881 \end_layout
20882
20883 \begin_layout Subsection
20884 SVN commands in \SpecialChar LyX
20885
20886 \end_layout
20887
20888 \begin_layout Standard
20889 SVN is now partially supported by \SpecialChar LyX
20890 .
20891  You can find the commands in the 
20892 \family sans
20893 File\SpecialChar menuseparator
20894 Version
20895 \begin_inset space ~
20896 \end_inset
20897
20898 Control
20899 \family default
20900  submenu.
20901  Please note that if you use password protected access to repository via
20902  ssh, you will be asked in terminal window.
20903  \SpecialChar LyX
20904  was tested against SVN 1.5, 1.6, 1.7 and 1.8
20905 \begin_inset Foot
20906 status open
20907
20908 \begin_layout Plain Layout
20909 Most of the commands will work with 1.4 too, see 
20910 \begin_inset CommandInset ref
20911 LatexCommand ref
20912 reference "subsec:SVN-Repo-Update"
20913
20914 \end_inset
20915
20916 .
20917  There seems to be currently unresolved permissions problem under SVN 1.8
20918  with reverting changes when file is locked.
20919 \end_layout
20920
20921 \end_inset
20922
20923
20924 \end_layout
20925
20926 \begin_layout Subsubsection
20927
20928 \family sans
20929 Register
20930 \end_layout
20931
20932 \begin_layout Standard
20933 If your document is not under revision control, this is the only item shown
20934  in the menu.
20935  And if it is under revision control, the 
20936 \family sans
20937 \bar under
20938 R
20939 \bar default
20940 egister
20941 \family default
20942  item is not visible.
20943 \end_layout
20944
20945 \begin_layout Standard
20946 This command registers in SVN your document ONLY in case you have already
20947  the documents directory under SVN control (in particular 
20948 \family typewriter
20949 .svn/entries
20950 \family default
20951  file exists).
20952  This means you have to checkout the archive by yourself.
20953 \end_layout
20954
20955 \begin_layout Standard
20956 Then you are asked interactively to supply an initial description of the
20957  document.
20958  Don't forget that registered file is not yet commited.
20959 \end_layout
20960
20961 \begin_layout Standard
20962 SVN command that is run: 
20963 \family typewriter
20964 svn add -q 
20965 \begin_inset Quotes eld
20966 \end_inset
20967
20968 <file-name>
20969 \begin_inset Quotes erd
20970 \end_inset
20971
20972
20973 \end_layout
20974
20975 \begin_layout Standard
20976 Read 
20977 \family typewriter
20978 man svn
20979 \family default
20980  to understand the switches.
20981 \end_layout
20982
20983 \begin_layout Subsubsection
20984
20985 \family sans
20986 Check In Changes
20987 \end_layout
20988
20989 \begin_layout Standard
20990 When you are finished editing a file, you commit your changes.
20991  When you do this, you are asked for a description of the changes.
20992  After that changes are commited.
20993 \end_layout
20994
20995 \begin_layout Standard
20996 SVN command:
20997 \begin_inset Foot
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001 In case locking is not enabled.
21002  See Section 
21003 \begin_inset CommandInset ref
21004 LatexCommand ref
21005 reference "subsec:SVN-File-Locking"
21006
21007 \end_inset
21008
21009 .
21010 \end_layout
21011
21012 \end_inset
21013
21014  
21015 \family typewriter
21016 svn commit -q -m"<description>" <file-name>
21017 \end_layout
21018
21019 \begin_layout Subsubsection
21020
21021 \family sans
21022 Check Out For Edit
21023 \end_layout
21024
21025 \begin_layout Standard
21026 Updates the changes of this file from the repository.
21027  Be sure you understand SVN merging and conflicts resolving before using
21028  this function, because all conflicts has to be resolved manually by you!
21029 \end_layout
21030
21031 \begin_layout Standard
21032 SVN command:
21033 \begin_inset Foot
21034 status collapsed
21035
21036 \begin_layout Plain Layout
21037 Ditto.
21038 \end_layout
21039
21040 \end_inset
21041
21042  
21043 \family typewriter
21044 svn update --non-interactive 
21045 \begin_inset Quotes eld
21046 \end_inset
21047
21048 <file-name>
21049 \begin_inset Quotes erd
21050 \end_inset
21051
21052
21053 \end_layout
21054
21055 \begin_layout Subsubsection
21056
21057 \family sans
21058 Revert To Repository Version
21059 \end_layout
21060
21061 \begin_layout Standard
21062 This will discard all changes made to the document since the last check
21063  in.
21064  You get a warning before changes are discarded.
21065 \end_layout
21066
21067 \begin_layout Standard
21068 SVN command: 
21069 \family typewriter
21070 svn revert -q 
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 Copy
21085 \end_layout
21086
21087 \begin_layout Standard
21088 This will create a copy of the current document including the version history.
21089  It requires a clean document without any changes since the last checkin.
21090  You are asked for a file name and a description of the copy operation.
21091  After that the copy is created, both locally and in the repository.
21092  If the parent directories of the copied and original document differ, all
21093  relative paths of included files of the copy are adjusted (like in 
21094 \family sans
21095 File\SpecialChar menuseparator
21096 Save As
21097 \family default
21098 \SpecialChar ldots
21099 ).
21100  Finally, the copy is loaded instead of the original document.
21101 \end_layout
21102
21103 \begin_layout Labeling
21104 \labelwidthstring 00.00.0000
21105 SVN
21106 \begin_inset space ~
21107 \end_inset
21108
21109 commands: 
21110 \begin_inset space ~
21111 \end_inset
21112
21113
21114 \begin_inset Newline newline
21115 \end_inset
21116
21117
21118 \begin_inset Flex Code
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122 svn copy -q 
21123 \family typewriter
21124
21125 \begin_inset Quotes eld
21126 \end_inset
21127
21128 <file-name>
21129 \begin_inset Quotes erd
21130 \end_inset
21131
21132  
21133 \begin_inset Quotes eld
21134 \end_inset
21135
21136 <new-file-name>
21137 \begin_inset Quotes erd
21138 \end_inset
21139
21140
21141 \end_layout
21142
21143 \end_inset
21144
21145
21146 \begin_inset Newline newline
21147 \end_inset
21148
21149
21150 \begin_inset Flex Code
21151 status collapsed
21152
21153 \begin_layout Plain Layout
21154 svn commit
21155 \end_layout
21156
21157 \end_inset
21158
21159
21160 \end_layout
21161
21162 \begin_layout Subsubsection
21163
21164 \family sans
21165 Rename
21166 \end_layout
21167
21168 \begin_layout Standard
21169 This will rename the current document including the version history.
21170  It requires a clean document without any changes since the last checkin.
21171  You are asked for a file name and a description of the rename operation.
21172  After that the document is renamed, both locally and in the repository.
21173  If the parent directories of the new and old file names differ, all relative
21174  paths of included files are adjusted (like in 
21175 \family sans
21176 File\SpecialChar menuseparator
21177 Save As
21178 \family default
21179 \SpecialChar ldots
21180 ).
21181  Finally, the document is reloaded using the new name.
21182 \end_layout
21183
21184 \begin_layout Labeling
21185 \labelwidthstring 00.00.0000
21186 SVN
21187 \begin_inset space ~
21188 \end_inset
21189
21190 commands: 
21191 \begin_inset space ~
21192 \end_inset
21193
21194
21195 \begin_inset Newline newline
21196 \end_inset
21197
21198
21199 \begin_inset Flex Code
21200 status collapsed
21201
21202 \begin_layout Plain Layout
21203 svn move -q 
21204 \family typewriter
21205
21206 \begin_inset Quotes eld
21207 \end_inset
21208
21209 <file-name>
21210 \begin_inset Quotes erd
21211 \end_inset
21212
21213  
21214 \begin_inset Quotes eld
21215 \end_inset
21216
21217 <new-file-name>
21218 \begin_inset Quotes erd
21219 \end_inset
21220
21221
21222 \end_layout
21223
21224 \end_inset
21225
21226
21227 \begin_inset Newline newline
21228 \end_inset
21229
21230
21231 \begin_inset Flex Code
21232 status collapsed
21233
21234 \begin_layout Plain Layout
21235 svn commit
21236 \end_layout
21237
21238 \end_inset
21239
21240
21241 \end_layout
21242
21243 \begin_layout Subsubsection
21244 \begin_inset CommandInset label
21245 LatexCommand label
21246 name "subsec:SVN-Repo-Update"
21247
21248 \end_inset
21249
21250 Update of the local directory checkout from repository
21251 \begin_inset Foot
21252 status collapsed
21253
21254 \begin_layout Plain Layout
21255 Note that this command will work only with subversion 
21256 \begin_inset Formula $\geqq1.5$
21257 \end_inset
21258
21259
21260 \end_layout
21261
21262 \end_inset
21263
21264
21265 \end_layout
21266
21267 \begin_layout Standard
21268 All the commands above have one shortcomming - they deal with the current
21269  document only.
21270  Once your document contains pictures, includes external 
21271 \begin_inset Flex Code
21272 status collapsed
21273
21274 \begin_layout Plain Layout
21275 .tex
21276 \end_layout
21277
21278 \end_inset
21279
21280  files and so on administration becomes more complicated.
21281  \SpecialChar LyX
21282  now supports updating the whole tree in which resides the document
21283 \begin_inset Foot
21284 status collapsed
21285
21286 \begin_layout Plain Layout
21287 One need to organize the files structure so that all external files are
21288  in the same directory or subdirectories of the document.
21289  
21290 \end_layout
21291
21292 \end_inset
21293
21294 .
21295  This become especially useful once you cooperate with people which neither
21296  know about subversion management nor they have ambition to commit additional
21297  material to the repository.
21298  
21299 \end_layout
21300
21301 \begin_layout Standard
21302 \begin_inset Flex Code
21303 status collapsed
21304
21305 \begin_layout Plain Layout
21306 Update local directory from repository
21307 \end_layout
21308
21309 \end_inset
21310
21311  command updates the whole directory and in case of merge conflicts local
21312  version of the files are left, so no unintended data loss occurs.
21313  If local changes are detected user is warned before update starts.
21314 \end_layout
21315
21316 \begin_layout Labeling
21317 \labelwidthstring 00.00.0000
21318 SVN
21319 \begin_inset space ~
21320 \end_inset
21321
21322 commands: 
21323 \begin_inset space ~
21324 \end_inset
21325
21326
21327 \begin_inset Newline newline
21328 \end_inset
21329
21330
21331 \begin_inset Flex Code
21332 status collapsed
21333
21334 \begin_layout Plain Layout
21335 svn diff $path
21336 \end_layout
21337
21338 \end_inset
21339
21340  (Ask if changes are detected.)
21341 \begin_inset Newline newline
21342 \end_inset
21343
21344
21345 \begin_inset Flex Code
21346 status collapsed
21347
21348 \begin_layout Plain Layout
21349 svn update –accept mine-full $path
21350 \end_layout
21351
21352 \end_inset
21353
21354
21355 \end_layout
21356
21357 \begin_layout Standard
21358 where 
21359 \begin_inset Flex Code
21360 status collapsed
21361
21362 \begin_layout Plain Layout
21363 $path
21364 \end_layout
21365
21366 \end_inset
21367
21368  stands for the path to the document.
21369 \end_layout
21370
21371 \begin_layout Subsubsection
21372
21373 \family sans
21374 Show History
21375 \end_layout
21376
21377 \begin_layout Standard
21378 This shows the complete history of the SVN document.
21379  The output of 
21380 \family typewriter
21381 svn log 
21382 \begin_inset Quotes eld
21383 \end_inset
21384
21385 <file-name>
21386 \begin_inset Quotes erd
21387 \end_inset
21388
21389
21390 \family default
21391  is shown in a browser.
21392 \end_layout
21393
21394 \begin_layout Subsubsection
21395 File Locking
21396 \begin_inset CommandInset label
21397 LatexCommand label
21398 name "subsec:SVN-File-Locking"
21399
21400 \end_inset
21401
21402
21403 \end_layout
21404
21405 \begin_layout Standard
21406 The file exchange through various revision control systems brings the problem
21407  of merge conflicts in case two different users try to edit the same (parts
21408  of) document.
21409  When such a conflict happens it needs manual resolving and one reasonable
21410  alternative is to provide some kind of locking mechanism, which guarantees
21411  that only one user is allowed to edit file at the given time.
21412 \end_layout
21413
21414 \begin_layout Standard
21415 SVN has two such mechanisms to provide mutual exclusivity for file access
21416  - locks and automatic setting of write permissions (see sec.
21417  
21418 \begin_inset CommandInset ref
21419 LatexCommand ref
21420 reference "subsec:Automatical-Locking-Property"
21421
21422 \end_inset
21423
21424 ) based on 
21425 \begin_inset Flex Code
21426 status collapsed
21427
21428 \begin_layout Plain Layout
21429 svn:needs-lock
21430 \end_layout
21431
21432 \end_inset
21433
21434  file svn property
21435 \begin_inset Foot
21436 status open
21437
21438 \begin_layout Plain Layout
21439 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21440 \end_layout
21441
21442 \end_inset
21443
21444 .
21445  If this property is detected for a given document \SpecialChar LyX
21446  starts to use SVN locks
21447  for document editing automatically and the whole check-in/out mechanism
21448  switches to the same regimen as for RCS.
21449  This in particular means there are two different modes of file use in \SpecialChar LyX
21450 :
21451 \end_layout
21452
21453 \begin_layout Itemize
21454 Unlocked state.
21455  The loaded file is in the read-only mode.
21456  For editing on needs to check-out.
21457  
21458 \emph on
21459 Check-out
21460 \emph default
21461  consists of updating from the repository and gaining write lock.
21462  If the lock is not possible to obtain, we remain in unlocked state.
21463 \end_layout
21464
21465 \begin_layout Itemize
21466 Locked state.
21467  The loaded file is in the 'normal' edit mode.
21468  No other user is allowed to edit the file.
21469  
21470 \emph on
21471 Check-in
21472 \emph default
21473  consists of commiting changes and releasing write-lock.
21474  If no changes have been made to the document, no commit will be produced
21475 \begin_inset Foot
21476 status collapsed
21477
21478 \begin_layout Plain Layout
21479 Don't be puzzled by the fact that you will be asked for commit message anyway.
21480 \end_layout
21481
21482 \end_inset
21483
21484  and only the write-lock will be released.
21485 \end_layout
21486
21487 \begin_layout Standard
21488 SVN commands:
21489 \end_layout
21490
21491 \begin_layout Labeling
21492 \labelwidthstring 00.00.0000
21493 Check-in:
21494 \family typewriter
21495  svn commit -q -m"<description>" "<file-name>"
21496 \begin_inset Newline newline
21497 \end_inset
21498
21499 svn unlock "<file-name>"
21500 \end_layout
21501
21502 \begin_layout Labeling
21503 \labelwidthstring 00.00.0000
21504 Check-out: 
21505 \family typewriter
21506 svn update "<file-name>"
21507 \begin_inset Newline newline
21508 \end_inset
21509
21510 svn lock "<file-name>"
21511 \end_layout
21512
21513 \begin_layout Subsubsection
21514
21515 \family typewriter
21516 \begin_inset CommandInset label
21517 LatexCommand label
21518 name "subsec:Automatical-Locking-Property"
21519
21520 \end_inset
21521
21522
21523 \family default
21524 Automatic Locking Property
21525 \end_layout
21526
21527 \begin_layout Standard
21528 The above mentioned automatic setting of write permissions of the .lyx file
21529  can be set through
21530 \family sans
21531 \bar under
21532  F
21533 \bar default
21534 ile\SpecialChar menuseparator
21535
21536 \bar under
21537 V
21538 \bar default
21539 ersion
21540 \begin_inset space ~
21541 \end_inset
21542
21543 Control\SpecialChar menuseparator
21544
21545 \bar under
21546 T
21547 \bar default
21548 oggle locking property
21549 \family default
21550 .
21551  This command is active only when the file is not locked on the svn server
21552  (i.e.
21553  you need to check-out before proceeding).
21554 \end_layout
21555
21556 \begin_layout Labeling
21557 \labelwidthstring 00.00.0000
21558 SVN
21559 \begin_inset space ~
21560 \end_inset
21561
21562 commands:
21563 \end_layout
21564
21565 \begin_layout Labeling
21566 \labelwidthstring 00.00.0000
21567 Set:
21568 \family typewriter
21569  svn propset svn:needs-lock ON "<file-name>"
21570 \end_layout
21571
21572 \begin_layout Labeling
21573 \labelwidthstring 00.00.0000
21574 Unset: 
21575 \family typewriter
21576 svn propdel svn:needs-lock "<file-name>"
21577 \end_layout
21578
21579 \begin_layout Subsubsection
21580 \begin_inset CommandInset label
21581 LatexCommand label
21582 name "subsec:VCS-Revision-Information"
21583
21584 \end_inset
21585
21586 Revision Information in Documents
21587 \end_layout
21588
21589 \begin_layout Standard
21590 There are more possibilities how to activate revision information in our
21591  document.
21592 \end_layout
21593
21594 \begin_layout Itemize
21595 \SpecialChar LyX
21596  supports directly:
21597 \begin_inset Separator parbreak
21598 \end_inset
21599
21600
21601 \end_layout
21602
21603 \begin_deeper
21604 \begin_layout Itemize
21605 tree revision information (
21606 \begin_inset Flex Code
21607 status collapsed
21608
21609 \begin_layout Plain Layout
21610 vcs-tree-revision
21611 \end_layout
21612
21613 \end_inset
21614
21615 ).
21616  The result is the output of the 
21617 \begin_inset Flex Code
21618 status collapsed
21619
21620 \begin_layout Plain Layout
21621 svnversion
21622 \end_layout
21623
21624 \end_inset
21625
21626  command, the following table gives you an idea, how to read the results.
21627 \end_layout
21628
21629 \begin_layout Standard
21630 \align center
21631 \begin_inset Tabular
21632 <lyxtabular version="3" rows="6" columns="2">
21633 <features tabularvalignment="middle">
21634 <column alignment="center" valignment="top">
21635 <column alignment="center" valignment="top">
21636 <row>
21637 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21638 \begin_inset Text
21639
21640 \begin_layout Plain Layout
21641 Output
21642 \end_layout
21643
21644 \end_inset
21645 </cell>
21646 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21647 \begin_inset Text
21648
21649 \begin_layout Plain Layout
21650 Meaning
21651 \end_layout
21652
21653 \end_inset
21654 </cell>
21655 </row>
21656 <row>
21657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21658 \begin_inset Text
21659
21660 \begin_layout Plain Layout
21661 4123:4168
21662 \end_layout
21663
21664 \end_inset
21665 </cell>
21666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21667 \begin_inset Text
21668
21669 \begin_layout Plain Layout
21670 mixed revision working copy
21671 \end_layout
21672
21673 \end_inset
21674 </cell>
21675 </row>
21676 <row>
21677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21678 \begin_inset Text
21679
21680 \begin_layout Plain Layout
21681 4168M
21682 \end_layout
21683
21684 \end_inset
21685 </cell>
21686 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21687 \begin_inset Text
21688
21689 \begin_layout Plain Layout
21690 modified working copy
21691 \end_layout
21692
21693 \end_inset
21694 </cell>
21695 </row>
21696 <row>
21697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21698 \begin_inset Text
21699
21700 \begin_layout Plain Layout
21701 4123S
21702 \end_layout
21703
21704 \end_inset
21705 </cell>
21706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21707 \begin_inset Text
21708
21709 \begin_layout Plain Layout
21710 switched working copy
21711 \end_layout
21712
21713 \end_inset
21714 </cell>
21715 </row>
21716 <row>
21717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21718 \begin_inset Text
21719
21720 \begin_layout Plain Layout
21721 4123P
21722 \end_layout
21723
21724 \end_inset
21725 </cell>
21726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21727 \begin_inset Text
21728
21729 \begin_layout Plain Layout
21730 partial working copy, from a sparse checkout
21731 \end_layout
21732
21733 \end_inset
21734 </cell>
21735 </row>
21736 <row>
21737 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21738 \begin_inset Text
21739
21740 \begin_layout Plain Layout
21741 4123:4168MS
21742 \end_layout
21743
21744 \end_inset
21745 </cell>
21746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21747 \begin_inset Text
21748
21749 \begin_layout Plain Layout
21750 mixed revision, modified, switched working copy
21751 \end_layout
21752
21753 \end_inset
21754 </cell>
21755 </row>
21756 </lyxtabular>
21757
21758 \end_inset
21759
21760
21761 \end_layout
21762
21763 \begin_layout Itemize
21764 file revision information.
21765  The result comes from parsing the output of 
21766 \begin_inset Flex Code
21767 status collapsed
21768
21769 \begin_layout Plain Layout
21770 svn
21771 \begin_inset space ~
21772 \end_inset
21773
21774 info
21775 \begin_inset space ~
21776 \end_inset
21777
21778 –xml
21779 \begin_inset space ~
21780 \end_inset
21781
21782 file.lyx
21783 \end_layout
21784
21785 \end_inset
21786
21787 .
21788  Supported flags are:
21789 \begin_inset Separator parbreak
21790 \end_inset
21791
21792
21793 \end_layout
21794
21795 \begin_deeper
21796 \begin_layout Itemize
21797 version number of the last commit (
21798 \begin_inset Flex Code
21799 status collapsed
21800
21801 \begin_layout Plain Layout
21802 vcs-revision
21803 \end_layout
21804
21805 \end_inset
21806
21807 )
21808 \end_layout
21809
21810 \begin_layout Itemize
21811 author of the last commit (
21812 \begin_inset Flex Code
21813 status collapsed
21814
21815 \begin_layout Plain Layout
21816 vcs-author
21817 \end_layout
21818
21819 \end_inset
21820
21821 )
21822 \end_layout
21823
21824 \begin_layout Itemize
21825 date of the last commit (
21826 \begin_inset Flex Code
21827 status collapsed
21828
21829 \begin_layout Plain Layout
21830 vcs-date
21831 \end_layout
21832
21833 \end_inset
21834
21835 )
21836 \end_layout
21837
21838 \begin_layout Itemize
21839 time of the last commit (
21840 \begin_inset Flex Code
21841 status collapsed
21842
21843 \begin_layout Plain Layout
21844 vcs-time
21845 \end_layout
21846
21847 \end_inset
21848
21849 )
21850 \end_layout
21851
21852 \end_deeper
21853 \begin_layout Standard
21854 You can obtain this info via InsetInfo (e.g.
21855  
21856 \begin_inset Flex Code
21857 status collapsed
21858
21859 \begin_layout Plain Layout
21860 info-insert buffer vcs-date
21861 \end_layout
21862
21863 \end_inset
21864
21865 ).
21866  The information will be available only when you have the file stored under
21867  svn managment (i.e.
21868  the 
21869 \begin_inset Flex Code
21870 status collapsed
21871
21872 \begin_layout Plain Layout
21873 .svn
21874 \end_layout
21875
21876 \end_inset
21877
21878  directory is available with your document).
21879 \end_layout
21880
21881 \end_deeper
21882 \begin_layout Itemize
21883 Another—a hacking one—possibility is to use svn keywords
21884 \begin_inset Foot
21885 status collapsed
21886
21887 \begin_layout Plain Layout
21888 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21889 \end_layout
21890
21891 \end_inset
21892
21893 .
21894  In short – you set file keywords property (e.g.
21895  
21896 \family sans
21897 svn propset svn:keywords 'Rev' file.lyx
21898 \family default
21899 ) and then paste keyword \SpecialChar TeX
21900  code
21901 \begin_inset Foot
21902 status collapsed
21903
21904 \begin_layout Plain Layout
21905 This is an easy way how to ensure that \SpecialChar LyX
21906  won't break the line in the middle
21907  of keyword tag.
21908 \end_layout
21909
21910 \end_inset
21911
21912  tag in your document (e.g.
21913  
21914 \begin_inset ERT
21915 status open
21916
21917 \begin_layout Plain Layout
21918
21919 $Rev$
21920 \end_layout
21921
21922 \end_inset
21923
21924 ).
21925  This way svn client will automatically substitute revision number (e.g.
21926  
21927 \begin_inset ERT
21928 status open
21929
21930 \begin_layout Plain Layout
21931
21932 $Rev: 59 $
21933 \end_layout
21934
21935 \end_inset
21936
21937 ) after each update and commit.
21938  There are more problems with this approach.
21939  Firstly, the '$' character is used in \SpecialChar TeX
21940  world for math equations, so any
21941  occurence of math formula 
21942 \begin_inset Formula $Rev$
21943 \end_inset
21944
21945  become 
21946 \begin_inset Formula $Rev:59$
21947 \end_inset
21948
21949  in your \SpecialChar LyX
21950  document.
21951  Similarly for other keywords like Id, Date, Author, etc.
21952  Secondly svn output is dependent on your locales, so its very easy that
21953  svn would produce some problematic strings once Date is used.
21954  Thirdly you get the whole 'Rev: 59' string in your document instead of
21955  the plain number.
21956  Until subversion implements user's custom keywords it will be hard to use
21957  this approach reliably or let \SpecialChar LyX
21958  to support it directly.
21959 \end_layout
21960
21961 \begin_layout Subsection
21962 SVN and Windows Environment
21963 \end_layout
21964
21965 \begin_layout Quote
21966 My inclination is to say that if the user cannot figure out the command
21967  line operations on their own fairly quickly, they would be well advised
21968  to use TortoiseSVN.
21969  —P.
21970  A.
21971  Rubin
21972 \end_layout
21973
21974 \begin_layout Subsubsection
21975 Preparation
21976 \end_layout
21977
21978 \begin_layout Standard
21979 In addition to installing \SpecialChar LyX
21980 , and having access to a Subversion repository,
21981  the user will need to install the Subversion client program.
21982  A Windows installer for the client program is available from 
21983 \begin_inset CommandInset href
21984 LatexCommand href
21985 name "CollabNet"
21986 target "http://www.collab.net/nonav/downloads/subversion/"
21987
21988 \end_inset
21989
21990 .
21991  The user may also want to install 
21992 \begin_inset CommandInset href
21993 LatexCommand href
21994 name "TortoiseSVN"
21995 target "http://tortoisesvn.tigris.org/"
21996
21997 \end_inset
21998
21999 , which integrates Subversion operations into the context (rightclick) menu
22000  of Windows Explorer.
22001  Operations done outside \SpecialChar LyX
22002  will typically be more convenient using the Explorer
22003  context menu.
22004  Note that TortoiseSVN is not a replacement for the client program, which
22005  is what \SpecialChar LyX
22006  itself will use.
22007 \end_layout
22008
22009 \begin_layout Subsubsection
22010 Bringing a document under Subversion control
22011 \end_layout
22012
22013 \begin_layout Standard
22014 Before a \SpecialChar LyX
22015  document can be brought under version control in Subversion, its
22016  parent directory needs to be under version control.
22017  If the document is being added to a project already in the repository,
22018  this is accomplished by checking the project out to the directory where
22019  the new document will be placed.
22020  If the project itself is not yet under version control (for instance, if
22021  this document starts a new project), the directory must be imported into
22022  the repository.
22023  This is done outside \SpecialChar LyX
22024 .
22025  Both import and checkout are easily accomplished from the Explorer context
22026  menu using TortoiseSVN, or alternatively can be done using the command
22027  line client at a DOS prompt.
22028  The procedure for importing the project using TortoiseSVN is described
22029  below, assuming an existing repository and a new project being started
22030  in 
22031 \family typewriter
22032 C:
22033 \backslash
22034 new project
22035 \family default
22036 .
22037  For information on using the Subversion client program, run 
22038 \family typewriter
22039 svn --help 
22040 \family default
22041 in a DOS shell.
22042 \end_layout
22043
22044 \begin_layout Enumerate
22045 Locate 
22046 \family typewriter
22047 C:
22048 \backslash
22049 new project 
22050 \family default
22051 in Windows Explorer, right click it, and select 
22052 \family sans
22053 TortoiseSVN\SpecialChar menuseparator
22054 Repo-browser
22055 \family default
22056 .
22057  If necessary, adjust the URL for the repository, then click OK.
22058 \end_layout
22059
22060 \begin_layout Enumerate
22061 Right click the level of the repository under which you want to place the
22062  new project folder (typically the top level) and click 
22063 \family sans
22064 Create folder
22065 \family default
22066  Supply a name for the project folder and click OK.
22067  Add a message for the log file if desired, then click OK again.
22068  The new project folder should appear in the repository.
22069  Finally, click OK again to exit the repository browser.
22070 \end_layout
22071
22072 \begin_layout Enumerate
22073 Once again right click 
22074 \family typewriter
22075 C:
22076 \backslash
22077 new project
22078 \family default
22079 , this time selecting SVN Checkout\SpecialChar ldots
22080  Select the URL of the project folder
22081  you just created in the repository, and set the checkout directory to 
22082 \family typewriter
22083 C:
22084 \backslash
22085 new project.
22086
22087 \family default
22088  Click OK.
22089  You will be warned about a non-empty folder; click OK to proceed.
22090  You should now have a 
22091 \family typewriter
22092 .svn
22093 \family default
22094  directory under 
22095 \family typewriter
22096 C:
22097 \backslash
22098 new project.
22099 \end_layout
22100
22101 \begin_layout Enumerate
22102 Create or open your document in \SpecialChar LyX
22103  and click 
22104 \family sans
22105 File\SpecialChar menuseparator
22106 Version
22107 \begin_inset space ~
22108 \end_inset
22109
22110 Control\SpecialChar menuseparator
22111 Register.
22112  
22113 \family default
22114 Add a log message and click OK to commit the document to version control.
22115 \end_layout
22116
22117 \begin_layout Standard
22118 From this point onward, you should have full functionality in the 
22119 \family sans
22120 File\SpecialChar menuseparator
22121 Version
22122 \begin_inset space ~
22123 \end_inset
22124
22125 Control
22126 \family default
22127  menu.
22128  You also have the option of checking the document in and out, viewing its
22129  history, etc.
22130  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22131  client program from a command prompt.
22132 \end_layout
22133
22134 \begin_layout Subsubsection
22135 SSH tunnel used with SVN under Windows
22136 \end_layout
22137
22138 \begin_layout Standard
22139 Compared with Linux setting up an svn client to communicate over ssh under
22140  Windows is a rather troublesome task.
22141  We will at least offer some hints how to setup the client side but prior
22142  knowledge about ssh and the Windows command line is needed, also be prepared
22143  for a great deal of frustration\SpecialChar ldots
22144
22145 \end_layout
22146
22147 \begin_layout Enumerate
22148 Get an svn client for windows, as described in the previous sections.
22149  When it is a fresh install run some svn command (e.g.
22150  
22151 \begin_inset Flex Code
22152 status collapsed
22153
22154 \begin_layout Plain Layout
22155 svn –version
22156 \end_layout
22157
22158 \end_inset
22159
22160 ) to create config files, which you will need to change later on.
22161 \end_layout
22162
22163 \begin_layout Enumerate
22164 Choose an ssh client for Windows.
22165  There are several possibilities, we will use the one from Putty tools
22166 \begin_inset Foot
22167 status collapsed
22168
22169 \begin_layout Plain Layout
22170 \begin_inset Flex URL
22171 status collapsed
22172
22173 \begin_layout Plain Layout
22174
22175 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22176 \end_layout
22177
22178 \end_inset
22179
22180
22181 \end_layout
22182
22183 \end_inset
22184
22185 .
22186  You will need to set the connection up so that the client doesn't ask for
22187  any password from you.
22188  To keep things easy we will use only keys without any additional password
22189  protection etc.
22190 \begin_inset Separator parbreak
22191 \end_inset
22192
22193
22194 \end_layout
22195
22196 \begin_deeper
22197 \begin_layout Enumerate
22198 Generate keys by 
22199 \begin_inset Flex Code
22200 status collapsed
22201
22202 \begin_layout Plain Layout
22203 puttygen
22204 \end_layout
22205
22206 \end_inset
22207
22208 .
22209  Save your private .ppk key file and put the public one on the server side.
22210  If the SVN server runs on Linux, note that the format of the public key
22211  is not compatible with Linux openssh and you will need to direcly copy-paste
22212  the key from the “
22213 \emph on
22214 Public key for pasting into OpenSSH authorized_keys file
22215 \emph default
22216 :” edit field into the server's 
22217 \begin_inset Flex Code
22218 status collapsed
22219
22220 \begin_layout Plain Layout
22221 ~/.ssh/authorized_keys
22222 \end_layout
22223
22224 \end_inset
22225
22226  / 
22227 \begin_inset Flex Code
22228 status collapsed
22229
22230 \begin_layout Plain Layout
22231 authorized_keys2
22232 \end_layout
22233
22234 \end_inset
22235
22236  file.
22237 \end_layout
22238
22239 \begin_layout Enumerate
22240 Get the Putty's 
22241 \begin_inset Flex Code
22242 status collapsed
22243
22244 \begin_layout Plain Layout
22245 plink
22246 \end_layout
22247
22248 \end_inset
22249
22250 .
22251  In the SVN config file
22252 \begin_inset Foot
22253 status collapsed
22254
22255 \begin_layout Plain Layout
22256 Exact path depends on Windows version, usually somewhere around 
22257 \begin_inset Flex Code
22258 status collapsed
22259
22260 \begin_layout Plain Layout
22261 c:
22262 \backslash
22263 Documents and Settings
22264 \backslash
22265 user
22266 \backslash
22267 Application Data
22268 \backslash
22269 Subversion
22270 \backslash
22271 config
22272 \end_layout
22273
22274 \end_inset
22275
22276  / 
22277 \begin_inset Flex Code
22278 status collapsed
22279
22280 \begin_layout Plain Layout
22281 AppData
22282 \backslash
22283 Roaming
22284 \backslash
22285 Subversion
22286 \end_layout
22287
22288 \end_inset
22289
22290 .
22291 \end_layout
22292
22293 \end_inset
22294
22295 , section [tunnels], setup ssh command, e.g.
22296  
22297 \begin_inset Flex Code
22298 status collapsed
22299
22300 \begin_layout Plain Layout
22301 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22302 \end_layout
22303
22304 \end_inset
22305
22306 .
22307 \begin_inset Foot
22308 status collapsed
22309
22310 \begin_layout Plain Layout
22311 It will usually take a lot of time to get exact command right and it depends
22312  on many things.
22313  For example do not have some remote server saved as a default session in
22314  Putty etc.
22315  If things fail, try to connect via plink without SVN first.
22316 \end_layout
22317
22318 \end_inset
22319
22320
22321 \end_layout
22322
22323 \end_deeper
22324 \begin_layout Enumerate
22325 Checkout the SVN archive, e.
22326 \begin_inset space \thinspace{}
22327 \end_inset
22328
22329 g.
22330 \begin_inset Newline newline
22331 \end_inset
22332
22333
22334 \begin_inset Flex Code
22335 status collapsed
22336
22337 \begin_layout Plain Layout
22338 svn co svn+ssh://user@server/repository_path
22339 \end_layout
22340
22341 \end_inset
22342
22343 .
22344 \end_layout
22345
22346 \begin_layout Subsubsection
22347 End-of-Line Conversions
22348 \end_layout
22349
22350 \begin_layout Standard
22351 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22352  will
22353  use different line endings inside the .lyx files.
22354  This is not a problem as far as \SpecialChar LyX
22355  functionality is concerned, but the commit
22356  diffs will be huge and merge-conflicts prone.
22357  Fortunately SVN itself knows
22358 \begin_inset Foot
22359 status collapsed
22360
22361 \begin_layout Plain Layout
22362 \begin_inset Flex URL
22363 status collapsed
22364
22365 \begin_layout Plain Layout
22366
22367 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22368 \end_layout
22369
22370 \end_inset
22371
22372
22373 \end_layout
22374
22375 \end_inset
22376
22377  how to deal with CR/LF problems when switching .lyx files to the 
22378 \begin_inset Flex Code
22379 status collapsed
22380
22381 \begin_layout Plain Layout
22382 native
22383 \end_layout
22384
22385 \end_inset
22386
22387  mode.
22388 \begin_inset Foot
22389 status collapsed
22390
22391 \begin_layout Plain Layout
22392 For the lazy guys: 
22393 \begin_inset Flex Code
22394 status collapsed
22395
22396 \begin_layout Plain Layout
22397 svn propset svn:eol-style native FILE_NAME
22398 \end_layout
22399
22400 \end_inset
22401
22402
22403 \end_layout
22404
22405 \end_inset
22406
22407
22408 \end_layout
22409
22410 \begin_layout Subsection
22411 GIT commands in \SpecialChar LyX
22412
22413 \end_layout
22414
22415 \begin_layout Standard
22416 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22417 .
22418  You can find the commands in the 
22419 \family sans
22420 File\SpecialChar menuseparator
22421 Version
22422 \begin_inset space ~
22423 \end_inset
22424
22425 Control
22426 \family default
22427  submenu.
22428  Please note that if you use password protected access to repository via
22429  ssh, you will be asked in terminal window.
22430  \SpecialChar LyX
22431  was tested against GIT 1.7.
22432 \begin_inset Foot
22433 status open
22434
22435 \begin_layout Plain Layout
22436 Windows users please note that you need to ensure that git is on the path.
22437  This can be set from within \SpecialChar LyX
22438  at 
22439 \family sans
22440 Tools\SpecialChar menuseparator
22441 Preferences\SpecialChar menuseparator
22442 Paths\SpecialChar menuseparator
22443 PATH prefix
22444 \family default
22445 .
22446 \end_layout
22447
22448 \end_inset
22449
22450
22451 \end_layout
22452
22453 \begin_layout Standard
22454 One big difference of GIT and the other supported version control systems
22455  is the distributed nature of GIT: With traditional version control systems
22456  there is one central server which hosts the repository.
22457  Users commit their changes to the server, and get updates made by other
22458  users from it.
22459  With GIT, users commit to a local repository.
22460  The local repository can be synchronized with one or more remote repositories
22461  using the 
22462 \begin_inset Flex Code
22463 status collapsed
22464
22465 \begin_layout Plain Layout
22466 pull
22467 \end_layout
22468
22469 \end_inset
22470
22471  and 
22472 \begin_inset Flex Code
22473 status collapsed
22474
22475 \begin_layout Plain Layout
22476 push
22477 \end_layout
22478
22479 \end_inset
22480
22481  GIT commands.
22482  \SpecialChar LyX
22483  does not interact in any way with remote GIT repositories.
22484  It works exclusively with the local repository in a very similar way as
22485  with a central CVS or SVN repository.
22486  If you use remote GIT repositories you need to do the 
22487 \begin_inset Flex Code
22488 status collapsed
22489
22490 \begin_layout Plain Layout
22491 pull
22492 \end_layout
22493
22494 \end_inset
22495
22496  and 
22497 \begin_inset Flex Code
22498 status collapsed
22499
22500 \begin_layout Plain Layout
22501 push
22502 \end_layout
22503
22504 \end_inset
22505
22506  operations with your favourite GIT client.
22507 \end_layout
22508
22509 \begin_layout Subsubsection
22510
22511 \family sans
22512 Register
22513 \end_layout
22514
22515 \begin_layout Standard
22516 If your document is not under revision control, this is the only item shown
22517  in the menu.
22518  And if it is under revision control, the 
22519 \family sans
22520 \bar under
22521 R
22522 \bar default
22523 egister
22524 \family default
22525  item is not visible.
22526 \end_layout
22527
22528 \begin_layout Standard
22529 This command registers in GIT your document ONLY in case you have already
22530  the documents directory under GIT control (in particular 
22531 \family typewriter
22532 .git/index
22533 \family default
22534  file exists).
22535  This means you have to checkout the archive by yourself.
22536 \end_layout
22537
22538 \begin_layout Standard
22539 Then you are asked interactively to supply an initial description of the
22540  document.
22541  Don't forget that registered file is not yet commited.
22542 \end_layout
22543
22544 \begin_layout Standard
22545 GIT command that is run: 
22546 \family typewriter
22547 git add 
22548 \begin_inset Quotes eld
22549 \end_inset
22550
22551 <file-name>
22552 \begin_inset Quotes erd
22553 \end_inset
22554
22555
22556 \end_layout
22557
22558 \begin_layout Standard
22559 Read 
22560 \family typewriter
22561 man git
22562 \family default
22563  to understand the switches.
22564 \end_layout
22565
22566 \begin_layout Subsubsection
22567
22568 \family sans
22569 Check In Changes
22570 \end_layout
22571
22572 \begin_layout Standard
22573 When you are finished editing a file, you commit your changes.
22574  When you do this, you are asked for a description of the changes.
22575  After that changes are commited.
22576 \end_layout
22577
22578 \begin_layout Standard
22579 GIT command: 
22580 \family typewriter
22581 git commit -q -m"<description>" <file-name>
22582 \end_layout
22583
22584 \begin_layout Subsubsection
22585
22586 \family sans
22587 Revert To Repository Version
22588 \end_layout
22589
22590 \begin_layout Standard
22591 This will discard all changes made to the document since the last check
22592  in.
22593  You get a warning before changes are discarded.
22594 \end_layout
22595
22596 \begin_layout Standard
22597 GIT command: 
22598 \family typewriter
22599 git checkout -q 
22600 \begin_inset Quotes eld
22601 \end_inset
22602
22603 <file-name>
22604 \begin_inset Quotes erd
22605 \end_inset
22606
22607
22608 \end_layout
22609
22610 \begin_layout Subsubsection
22611
22612 \family sans
22613 Rename
22614 \end_layout
22615
22616 \begin_layout Standard
22617 This will rename the current document including the version history.
22618  It requires a clean document without any changes since the last checkin.
22619  You are asked for a file name and a description of the rename operation.
22620  After that the document is renamed, both locally and in the repository.
22621  If the parent directories of the new and old file names differ, all relative
22622  paths of included files are adjusted (like in 
22623 \family sans
22624 File\SpecialChar menuseparator
22625 Save As
22626 \family default
22627 \SpecialChar ldots
22628 ).
22629  Finally, the document is reloaded using the new name.
22630 \end_layout
22631
22632 \begin_layout Labeling
22633 \labelwidthstring 00.00.0000
22634 GIT
22635 \begin_inset space ~
22636 \end_inset
22637
22638 commands: 
22639 \begin_inset space ~
22640 \end_inset
22641
22642
22643 \begin_inset Newline newline
22644 \end_inset
22645
22646
22647 \begin_inset Flex Code
22648 status collapsed
22649
22650 \begin_layout Plain Layout
22651 git mv 
22652 \family typewriter
22653
22654 \begin_inset Quotes eld
22655 \end_inset
22656
22657 <file-name>
22658 \begin_inset Quotes erd
22659 \end_inset
22660
22661  
22662 \begin_inset Quotes eld
22663 \end_inset
22664
22665 <new-file-name>
22666 \begin_inset Quotes erd
22667 \end_inset
22668
22669
22670 \end_layout
22671
22672 \end_inset
22673
22674
22675 \begin_inset Newline newline
22676 \end_inset
22677
22678
22679 \begin_inset Flex Code
22680 status collapsed
22681
22682 \begin_layout Plain Layout
22683 git commit
22684 \end_layout
22685
22686 \end_inset
22687
22688
22689 \end_layout
22690
22691 \begin_layout Subsubsection
22692
22693 \family sans
22694 Show History
22695 \end_layout
22696
22697 \begin_layout Standard
22698 This shows the complete history of the GIT document.
22699  The output of 
22700 \family typewriter
22701 git log 
22702 \begin_inset Quotes eld
22703 \end_inset
22704
22705 <file-name>
22706 \begin_inset Quotes erd
22707 \end_inset
22708
22709
22710 \family default
22711  is shown in a browser.
22712 \end_layout
22713
22714 \begin_layout Subsubsection
22715 Version Info
22716 \end_layout
22717
22718 \begin_layout Standard
22719 \SpecialChar LyX
22720  supports GIT hash number of the last commit to the file, author name, date
22721  and time of last commit.
22722  All those are extracted from 
22723 \family typewriter
22724 git log -n 1 --pretty=format:%H%n%an%n%ai
22725 \family default
22726 .
22727  Tree version information is obtained via 
22728 \family typewriter
22729 git describe --abbrev --dirty --long
22730 \family default
22731 .
22732  See 
22733 \begin_inset CommandInset ref
22734 LatexCommand ref
22735 reference "subsec:VCS-Revision-Information"
22736
22737 \end_inset
22738
22739  for other details.
22740 \end_layout
22741
22742 \begin_layout Subsection
22743 Further tuning
22744 \end_layout
22745
22746 \begin_layout Standard
22747 With the recent addition of the vc-command function \SpecialChar LyX
22748  power users are allowed
22749  to create their own commands for revision control.
22750 \end_layout
22751
22752 \begin_layout Standard
22753 As an example you can see how two TortoiseSVN commands could be integrated
22754  directly:
22755 \end_layout
22756
22757 \begin_layout Description
22758 Commit: 
22759 \begin_inset Flex Code
22760 status collapsed
22761
22762 \begin_layout Plain Layout
22763 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22764 \end_layout
22765
22766 \end_inset
22767
22768
22769 \end_layout
22770
22771 \begin_layout Description
22772 Revert: 
22773 \begin_inset Flex Code
22774 status collapsed
22775
22776 \begin_layout Plain Layout
22777 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22778 \end_layout
22779
22780 \end_inset
22781
22782
22783 \end_layout
22784
22785 \begin_layout Subsection
22786 Version control and Document comparison
22787 \end_layout
22788
22789 \begin_layout Standard
22790 One of the typical uses of version control is to inspect the changes between
22791  revisions, usually by creating 
22792 \begin_inset Flex Code
22793 status collapsed
22794
22795 \begin_layout Plain Layout
22796 diff
22797 \end_layout
22798
22799 \end_inset
22800
22801  dumps.
22802  While this is useful for plain text files, it is much less useful in the
22803  case of \SpecialChar LyX
22804  files, which have more a complicated structure.
22805  Hence we provide binding to the Document comparison feature.
22806  There are two ways of calling this feature - either by direct call of 
22807 \begin_inset Flex Code
22808 status collapsed
22809
22810 \begin_layout Plain Layout
22811 VC_COMPARE
22812 \end_layout
22813
22814 \end_inset
22815
22816  \SpecialChar LyX
22817  function (for details see \SpecialChar LyX
22818  functions manual) or by icon/menu item 
22819 \begin_inset Flex Noun
22820 status collapsed
22821
22822 \begin_layout Plain Layout
22823 Compare with older revision...
22824 \end_layout
22825
22826 \end_inset
22827
22828 .
22829  One can either compare two chosen revisions of the document or he can simply
22830  compare the current version of edited text with older revisions (where
22831  '
22832 \begin_inset Flex Noun
22833 status collapsed
22834
22835 \begin_layout Plain Layout
22836 0
22837 \end_layout
22838
22839 \end_inset
22840
22841 ' revisions back means comparison of the edited file with last commited
22842  revision).
22843  
22844 \end_layout
22845
22846 \begin_layout Standard
22847 This feature is supported for SVN and RCS though due to the more complicated
22848  versioning scheme of RCS there is a constraint – when addressing the revisions
22849  in dialog, numbers always point to the last number in RCS revision number,
22850  i.e.
22851  '35' in '1.2.35'.
22852  We don't currently support GIT addressing of revisions, one can just compare
22853  edited document with its revision X steps backs, where X is addressed as
22854  HEAD~X.
22855 \end_layout
22856
22857 \begin_layout Section
22858 Literate Programming
22859 \end_layout
22860
22861 \begin_layout Standard
22862 Updated by 
22863 \noun on
22864 Kayvan Sylvan 
22865 \noun default
22866 (kayvan@sylvan.com)
22867 \noun on
22868
22869 \noun default
22870 original documentation written by 
22871 \noun on
22872 Edmar Wienskoski Jr.
22873
22874 \noun default
22875  (edmar-w-jr@technologist.com)
22876 \end_layout
22877
22878 \begin_layout Subsection
22879 Introduction
22880 \end_layout
22881
22882 \begin_layout Standard
22883 The main purpose of this documentation is to show you how to use \SpecialChar LyX
22884  for literate
22885  programming, where it is assumed that you are familiar with this programming
22886  technique, and know what 
22887 \begin_inset Quotes eld
22888 \end_inset
22889
22890 tangling
22891 \begin_inset Quotes erd
22892 \end_inset
22893
22894  and 
22895 \begin_inset Quotes eld
22896 \end_inset
22897
22898 weaving
22899 \begin_inset Quotes erd
22900 \end_inset
22901
22902  means.
22903  If that is not the case, please follow the web links provided in the following
22904  sections.
22905  There is a lot of good documentation out there covering old development
22906  history to the latest tools tips.
22907 \end_layout
22908
22909 \begin_layout Standard
22910 It is also assumed that you are familiar with \SpecialChar LyX
22911  itself to a point that you
22912  are comfortable changing your \SpecialChar LyX
22913  preferences, and X resources file.
22914  If that is not the case please refer to other \SpecialChar LyX
22915  documentation to cover your
22916  specific needs.
22917 \end_layout
22918
22919 \begin_layout Subsection
22920 Literate Programming
22921 \end_layout
22922
22923 \begin_layout Standard
22924 From the Literate Programming FAQ: 
22925 \end_layout
22926
22927 \begin_layout Quotation
22928 Literate programming is the combination of documentation and source together
22929  in a fashion suited for reading by human beings.
22930  In fact, literate programs should be enjoyable reading, even inviting!
22931  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
22932  and documentation in a single file.
22933  Literate programming tools then parse the file to produce either readable
22934  documentation or compilable source.
22935  The WEB style of literate programming was created by D.
22936 \begin_inset space \thinspace{}
22937 \end_inset
22938
22939 E.
22940  Knuth during the development of his \SpecialChar TeX
22941  typesetting software.
22942  
22943 \end_layout
22944
22945 \begin_layout Standard
22946 Another excerpt says:
22947 \end_layout
22948
22949 \begin_layout Quotation
22950
22951 \emph on
22952 How is literate programming different from verbose commenting?
22953 \end_layout
22954
22955 \begin_layout Quotation
22956 There are three distinguishing characteristics.
22957  In order of importance, they are: 
22958 \begin_inset Separator parbreak
22959 \end_inset
22960
22961
22962 \end_layout
22963
22964 \begin_deeper
22965 \begin_layout Itemize
22966 flexible order of elaboration 
22967 \end_layout
22968
22969 \begin_layout Itemize
22970 automatic support for browsing 
22971 \end_layout
22972
22973 \begin_layout Itemize
22974 typeset documentation, especially diagrams and mathematics 
22975 \end_layout
22976
22977 \end_deeper
22978 \begin_layout Standard
22979 Now that I sparked your curiosity, take a look in the references.
22980 \end_layout
22981
22982 \begin_layout Subsubsection
22983 References
22984 \end_layout
22985
22986 \begin_layout Standard
22987 The complete Literate Programming FAQ can be found at:
22988 \end_layout
22989
22990 \begin_layout Quote
22991 Literate Programming FAQ 
22992 \begin_inset Flex URL
22993 status collapsed
22994
22995 \begin_layout Plain Layout
22996
22997 http://www.literateprogramming.com/lpfaq.pdf
22998 \end_layout
22999
23000 \end_inset
23001
23002
23003 \end_layout
23004
23005 \begin_layout Standard
23006 The FAQ lists 23 (twenty three!) different literate programming tools.
23007  Where some are specialized or 
23008 \begin_inset Quotes eld
23009 \end_inset
23010
23011 tailored
23012 \begin_inset Quotes erd
23013 \end_inset
23014
23015  for particular programming languages, while other have general scope.
23016  I selected 
23017 \noun on
23018 Noweb
23019 \noun default
23020  for my own use for several reasons:
23021 \end_layout
23022
23023 \begin_layout Itemize
23024 It can generate the documentation either in \SpecialChar LaTeX
23025  or HTML.
23026 \end_layout
23027
23028 \begin_layout Itemize
23029 It has a open architecture, i.
23030 \begin_inset space \thinspace{}
23031 \end_inset
23032
23033 e.
23034 \begin_inset space \space{}
23035 \end_inset
23036
23037 it is easy to plug in new filters and to perform special processing that
23038  you may need.
23039  
23040 \end_layout
23041
23042 \begin_layout Itemize
23043 There is a good selection of filters available already (the HTML is one
23044  of them).
23045 \end_layout
23046
23047 \begin_layout Itemize
23048 It is free.
23049 \end_layout
23050
23051 \begin_layout Standard
23052 The Noweb web page can be found at: 
23053 \end_layout
23054
23055 \begin_layout Quote
23056 Noweb home page 
23057 \begin_inset Flex URL
23058 status collapsed
23059
23060 \begin_layout Plain Layout
23061
23062 http://www.cs.virginia.edu/~nr/noweb/
23063 \end_layout
23064
23065 \end_inset
23066
23067
23068 \end_layout
23069
23070 \begin_layout Standard
23071 Starting from there you can reach many other interesting links and even
23072  some literate program examples.
23073 \end_layout
23074
23075 \begin_layout Subsection
23076 \SpecialChar LyX
23077  and Literate Programming with Noweb
23078 \end_layout
23079
23080 \begin_layout Standard
23081 The \SpecialChar LyX
23082  support for Literate Programming is provided by using the generic \SpecialChar LyX
23083
23084  converters mechanism.
23085  This support is provided in a 
23086 \begin_inset Quotes eld
23087 \end_inset
23088
23089 Noweb independent
23090 \begin_inset Quotes erd
23091 \end_inset
23092
23093  way, i.
23094 \begin_inset space \thinspace{}
23095 \end_inset
23096
23097 e.
23098 \begin_inset space \space{}
23099 \end_inset
23100
23101 you will be able to use this new \SpecialChar LyX
23102  feature with some other literate programming
23103  tool of your choice by just changing your \SpecialChar LyX
23104  preferences.
23105 \end_layout
23106
23107 \begin_layout Subsubsection
23108 Generating documents and code (weaving and tangling)
23109 \end_layout
23110
23111 \begin_layout Paragraph
23112 Using the noweb module
23113 \end_layout
23114
23115 \begin_layout Standard
23116 If you have installed Noweb and \SpecialChar LyX
23117  successfully, whenever you open a new document,
23118  after you have chosen its document class, use the Document->Settings menu
23119  to add the 
23120 \begin_inset Quotes eld
23121 \end_inset
23122
23123 noweb
23124 \begin_inset Quotes erd
23125 \end_inset
23126
23127  module.
23128  If Noweb is correctly installed, when you click on the 
23129 \begin_inset Quotes eld
23130 \end_inset
23131
23132 Modules
23133 \begin_inset Quotes erd
23134 \end_inset
23135
23136  link, you will see the 
23137 \begin_inset Quotes eld
23138 \end_inset
23139
23140 noweb
23141 \begin_inset Quotes erd
23142 \end_inset
23143
23144  module in the available list and you can add it to your document.
23145 \end_layout
23146
23147 \begin_layout Paragraph
23148 Typing code in
23149 \end_layout
23150
23151 \begin_layout Standard
23152 \SpecialChar LyX
23153  enables you to write code with a layout named 
23154 \begin_inset Flex Noun
23155 status collapsed
23156
23157 \begin_layout Plain Layout
23158 Chunk
23159 \end_layout
23160
23161 \end_inset
23162
23163 .
23164  Noweb delimits chunks like this:
23165 \end_layout
23166
23167 \begin_layout LyX-Code
23168 <<My code>>=
23169 \end_layout
23170
23171 \begin_layout LyX-Code
23172   code
23173 \end_layout
23174
23175 \begin_layout LyX-Code
23176   more code
23177 \end_layout
23178
23179 \begin_layout LyX-Code
23180   even more code
23181 \end_layout
23182
23183 \begin_layout LyX-Code
23184   @
23185 \end_layout
23186
23187 \begin_layout Standard
23188 The problem is that whatever is written in between the << and the 
23189 \family typewriter
23190 @
23191 \family default
23192  must be taken literally, i.
23193 \begin_inset space \thinspace{}
23194 \end_inset
23195
23196 e.
23197 \begin_inset space \space{}
23198 \end_inset
23199
23200 \SpecialChar LyX
23201  should be prevented from making any special interpretation of what has
23202  been written.
23203  This is also handled by 
23204 \begin_inset Flex Noun
23205 status collapsed
23206
23207 \begin_layout Plain Layout
23208 Chunk
23209 \end_layout
23210
23211 \end_inset
23212
23213 , that works like a normal paragraph but has a free spacing capability.
23214 \end_layout
23215
23216 \begin_layout Standard
23217 As a special note, you can also use the 
23218 \begin_inset Quotes eld
23219 \end_inset
23220
23221 %def
23222 \begin_inset Quotes erd
23223 \end_inset
23224
23225  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23226 rence:
23227 \end_layout
23228
23229 \begin_layout LyX-Code
23230 <<My chunk>>=
23231 \end_layout
23232
23233 \begin_layout LyX-Code
23234 def some_function(args):
23235 \end_layout
23236
23237 \begin_layout LyX-Code
23238    "This is the doc string for this function."
23239 \end_layout
23240
23241 \begin_layout LyX-Code
23242    print "My args: ", args
23243 \end_layout
23244
23245 \begin_layout LyX-Code
23246 @ %def some_function
23247 \end_layout
23248
23249 \begin_layout Standard
23250 For an example of this usage and the resulting cross-reference output, look
23251  at the Literate python program in 
23252 \emph on
23253 LIBDIR/examples/listerrors.lyx
23254 \emph default
23255  which should make this all clear.
23256 \end_layout
23257
23258 \begin_layout Paragraph
23259 Generating the documentation
23260 \end_layout
23261
23262 \begin_layout Standard
23263 At this point you already have a new document file with a proper document
23264  class, and with some code and text on it.
23265  How do I print it? The answer is simple, you select 
23266 \family sans
23267 View\SpecialChar menuseparator
23268 DVI,
23269 \family default
23270  etc.
23271  Just like you would do for a plain document.
23272  No special procedure is required.
23273 \end_layout
23274
23275 \begin_layout Standard
23276 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23277 :
23278 \end_layout
23279
23280 \begin_layout Enumerate
23281 When the 
23282 \family sans
23283 Update\SpecialChar menuseparator
23284 DVI
23285 \family default
23286  menu option is chosen, a \SpecialChar LaTeX
23287  file is generated.
23288  
23289 \begin_inset Separator parbreak
23290 \end_inset
23291
23292
23293 \end_layout
23294
23295 \begin_deeper
23296 \begin_layout Standard
23297 If the document is of any literate class the generated file will be named
23298  with an extension name defined by the 
23299 \begin_inset Quotes eld
23300 \end_inset
23301
23302 literate
23303 \begin_inset Quotes erd
23304 \end_inset
23305
23306  format (defined in the Preferences panel), otherwise the file will have
23307  the usual 
23308 \family typewriter
23309 .tex
23310 \family default
23311  extension.
23312 \end_layout
23313
23314 \end_deeper
23315 \begin_layout Enumerate
23316 Note that the only difference so far is in the name of the file, no special
23317  processing is required by \SpecialChar LyX
23318 .
23319  Given that you formatted the code using the 
23320 \begin_inset Flex Noun
23321 status collapsed
23322
23323 \begin_layout Plain Layout
23324 Chunk
23325 \end_layout
23326
23327 \end_inset
23328
23329  layout that, by itself, takes care of the business.
23330 \end_layout
23331
23332 \begin_layout Enumerate
23333 If the document is of any literate class \SpecialChar LyX
23334  will then use the internal \SpecialChar LyX
23335  to
23336  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23337  converter
23338 \begin_inset Foot
23339 status collapsed
23340
23341 \begin_layout Plain Layout
23342 The converters are defined in the 
23343 \family sans
23344 Tools\SpecialChar menuseparator
23345 Preferences
23346 \family default
23347  panel, under the 
23348 \begin_inset Quotes eld
23349 \end_inset
23350
23351 Conversion
23352 \begin_inset Quotes erd
23353 \end_inset
23354
23355  tab.
23356  See section 
23357 \emph on
23358 Converters
23359 \emph default
23360  of the 
23361 \emph on
23362 Customization
23363 \emph default
23364  manual for general information about converters.
23365 \end_layout
23366
23367 \end_inset
23368
23369  to generate the \SpecialChar LaTeX
23370  file.
23371 \begin_inset Separator parbreak
23372 \end_inset
23373
23374
23375 \end_layout
23376
23377 \begin_deeper
23378 \begin_layout Standard
23379 Otherwise it will just skip this step.
23380 \end_layout
23381
23382 \end_deeper
23383 \begin_layout Enumerate
23384 Finally, \SpecialChar LaTeX
23385  is invoked and the regular post processing continues as in a plain
23386  document.
23387 \end_layout
23388
23389 \begin_layout Standard
23390 Independence from a particular 
23391 \begin_inset Quotes eld
23392 \end_inset
23393
23394 literate tool
23395 \begin_inset Quotes erd
23396 \end_inset
23397
23398  is easily achieved by changing the commands that are run by the various
23399  converters.
23400 \end_layout
23401
23402 \begin_layout Paragraph
23403 Generating the code
23404 \end_layout
23405
23406 \begin_layout Standard
23407 When the build menu option is chosen or the corresponding button in the
23408  toolbar is pressed, a \SpecialChar LaTeX
23409  file is generated just like step 1 above.
23410  Next, \SpecialChar LyX
23411  invokes the 
23412 \family typewriter
23413 Noweb->Program
23414 \family default
23415  converter.
23416  This converter needs to be defined by the user and is not installed by
23417  default, though the Program format is.
23418  This converter (like any other converter) will have two parts:
23419 \end_layout
23420
23421 \begin_layout Enumerate
23422 The converter program itself.
23423  This program performs the conversion from the one format to the other (in
23424  this case, from the Noweb format to the Program pseudo-format).
23425 \end_layout
23426
23427 \begin_layout Enumerate
23428 The error log parser.
23429  This is a program whose sole purpose is to rewrite error messages in a
23430  format that \SpecialChar LyX
23431  understands.
23432  This makes it possible for \SpecialChar LyX
23433  to place error boxes in the right places in
23434  the file buffer.
23435 \end_layout
23436
23437 \begin_layout Standard
23438 The first part, the 
23439 \begin_inset Quotes eld
23440 \end_inset
23441
23442 Converter
23443 \begin_inset Quotes erd
23444 \end_inset
23445
23446  setting, should be set to
23447 \begin_inset Newline newline
23448 \end_inset
23449
23450
23451 \begin_inset Quotes eld
23452 \end_inset
23453
23454
23455 \family typewriter
23456 build-script $$i
23457 \family default
23458  $$r
23459 \begin_inset Quotes erd
23460 \end_inset
23461
23462 .
23463 \begin_inset Newline newline
23464 \end_inset
23465
23466 This basically means that \SpecialChar LyX
23467  will call 
23468 \begin_inset Quotes eld
23469 \end_inset
23470
23471 build-script
23472 \begin_inset Quotes erd
23473 \end_inset
23474
23475  (a program or script) with the name of the Noweb file (normally a file
23476  in the \SpecialChar LyX
23477  temp directory) and the directory path of the original \SpecialChar LyX
23478  file.
23479  
23480 \end_layout
23481
23482 \begin_layout Standard
23483 This is an implementation of 
23484 \begin_inset Quotes eld
23485 \end_inset
23486
23487 build-script
23488 \begin_inset Quotes erd
23489 \end_inset
23490
23491  that you can place in a directory on your path:
23492 \end_layout
23493
23494 \begin_layout Standard
23495 \begin_inset VSpace defskip
23496 \end_inset
23497
23498
23499 \end_layout
23500
23501 \begin_layout Standard
23502 \begin_inset Newpage pagebreak
23503 \end_inset
23504
23505
23506 \end_layout
23507
23508 \begin_layout Standard
23509
23510 \family sans
23511 #!/bin/sh
23512 \end_layout
23513
23514 \begin_layout Standard
23515
23516 \family sans
23517 #
23518 \end_layout
23519
23520 \begin_layout Standard
23521
23522 \family sans
23523 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23524 \end_layout
23525
23526 \begin_layout Standard
23527 \begin_inset VSpace defskip
23528 \end_inset
23529
23530
23531 \end_layout
23532
23533 \begin_layout Standard
23534 The next part of the converter setting is the 
23535 \begin_inset Quotes eld
23536 \end_inset
23537
23538 Flags
23539 \begin_inset Quotes erd
23540 \end_inset
23541
23542  which is to be set to
23543 \begin_inset Newline newline
23544 \end_inset
23545
23546
23547 \begin_inset Quotes eld
23548 \end_inset
23549
23550
23551 \family typewriter
23552 parselog=$$s/scripts/listerrors
23553 \family default
23554
23555 \begin_inset Quotes erd
23556 \end_inset
23557
23558 .
23559 \begin_inset Newline newline
23560 \end_inset
23561
23562 This will run any errors that are generated by the 
23563 \begin_inset Quotes eld
23564 \end_inset
23565
23566 build-script
23567 \begin_inset Quotes erd
23568 \end_inset
23569
23570  process through the 
23571 \begin_inset Quotes eld
23572 \end_inset
23573
23574 listerrors
23575 \begin_inset Quotes erd
23576 \end_inset
23577
23578  program.
23579 \end_layout
23580
23581 \begin_layout Standard
23582 The build will normally take place in \SpecialChar LyX
23583 's temporary directory, so the files
23584  produced by the conversion will be in that directory.
23585  \SpecialChar LyX
23586  will copy out what it regards as the `main' file, but the 
23587 \family typewriter
23588 Noweb->Program
23589 \family default
23590  conversion may produce several files, and so most of these would then be
23591  deleted when \SpecialChar LyX
23592  was closed.
23593  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23594  the build-script chunk can place the generated files in that location.
23595 \end_layout
23596
23597 \begin_layout Paragraph
23598 Build instructions in the document
23599 \end_layout
23600
23601 \begin_layout Standard
23602 The last piece of the integration between \SpecialChar LyX
23603  and noweb is the 
23604 \begin_inset Quotes eld
23605 \end_inset
23606
23607 build-script
23608 \begin_inset Quotes erd
23609 \end_inset
23610
23611  chunk.
23612  Generally, the instructions for building your program should be embedded
23613  in a chunk of its own.
23614  The noweb-specific 
23615 \begin_inset Quotes eld
23616 \end_inset
23617
23618 build-script
23619 \begin_inset Quotes erd
23620 \end_inset
23621
23622  above uses the notangle command to look for this chunk (called 
23623 \begin_inset Quotes eld
23624 \end_inset
23625
23626 build-script
23627 \begin_inset Quotes erd
23628 \end_inset
23629
23630 ) and runs its contents through 
23631 \begin_inset Quotes eld
23632 \end_inset
23633
23634 sh
23635 \begin_inset Quotes erd
23636 \end_inset
23637
23638 .
23639 \end_layout
23640
23641 \begin_layout Standard
23642 Typically, such a chunk would look something like this:
23643 \end_layout
23644
23645 \begin_layout LyX-Code
23646 <<build-script>>=
23647 \end_layout
23648
23649 \begin_layout LyX-Code
23650 #!/bin/sh
23651 \begin_inset Newline newline
23652 \end_inset
23653
23654 if [ -z "${NOWEB_SOURCE}" ]
23655 \begin_inset Newline newline
23656 \end_inset
23657
23658 then
23659 \end_layout
23660
23661 \begin_layout LyX-Code
23662 NOWEB_SOURCE=myfile.nw
23663 \begin_inset Newline newline
23664 \end_inset
23665
23666 fi
23667 \begin_inset Newline newline
23668 \end_inset
23669
23670 [...
23671  code to extract files ...
23672  use NOWEB_OUTPUT_DIR here ...]
23673 \begin_inset Newline newline
23674 \end_inset
23675
23676 [...
23677  code to compile files ...]
23678 \begin_inset Newline newline
23679 \end_inset
23680
23681 @
23682 \end_layout
23683
23684 \begin_layout Standard
23685 Look in 
23686 \emph on
23687 LIBDIR/examples/listerrors.lyx
23688 \emph default
23689  or in 
23690 \emph on
23691 LIBDIR/examples/Literate.lyx
23692 \emph default
23693  which implement two versions of the 
23694 \begin_inset Quotes eld
23695 \end_inset
23696
23697 listerrors
23698 \begin_inset Quotes erd
23699 \end_inset
23700
23701  program for some illustrations of how all of these pieces go together or
23702  in 
23703 \emph on
23704 LIBDIR/examples/noweb2lyx.lyx.
23705
23706 \emph default
23707  Interestingly, these three files show off the language-indepence of the
23708  \SpecialChar LyX
23709  literate programming support since they are written in Python, C and Perl
23710  respectively.
23711 \end_layout
23712
23713 \begin_layout Subsubsection
23714 Configuring \SpecialChar LyX
23715
23716 \end_layout
23717
23718 \begin_layout Standard
23719 All the Literate Programming support is configured by the 
23720 \family sans
23721 Tools\SpecialChar menuseparator
23722 Preferences
23723 \family default
23724  panel in the 
23725 \begin_inset Quotes eld
23726 \end_inset
23727
23728 File Handling
23729 \begin_inset Quotes erd
23730 \end_inset
23731
23732  tab.
23733  The important parts are:
23734 \end_layout
23735
23736 \begin_layout Description
23737 the
23738 \begin_inset space ~
23739 \end_inset
23740
23741
23742 \begin_inset Quotes eld
23743 \end_inset
23744
23745 NoWeb
23746 \begin_inset Quotes erd
23747 \end_inset
23748
23749
23750 \begin_inset space ~
23751 \end_inset
23752
23753 format Set up via the File Formats tab, this is where the Noweb-specific
23754  pieces are set up.
23755  The 
23756 \family sans
23757 GUI Name
23758 \family default
23759  is set to 
23760 \family typewriter
23761 NoWeb
23762 \family default
23763 , the file extension is set to 
23764 \family typewriter
23765 .nw
23766 \family default
23767 .
23768  This tells \SpecialChar LyX
23769  to create a file with a 
23770 \family typewriter
23771 .nw
23772 \family default
23773  extension in the first step of the conversion process.
23774 \end_layout
23775
23776 \begin_layout Description
23777 the
23778 \begin_inset space ~
23779 \end_inset
23780
23781
23782 \family sans
23783 Program
23784 \family default
23785
23786 \begin_inset space ~
23787 \end_inset
23788
23789 format This is an empty format whose sole purpose is to be the endpoint
23790  of a conversion (which then allows us to set up a converter for it).
23791 \end_layout
23792
23793 \begin_layout Description
23794
23795 \family sans
23796 NoWeb
23797 \family default
23798 ->
23799 \family sans
23800 \SpecialChar LaTeX
23801
23802 \family default
23803  This converter performs the 
23804 \begin_inset Quotes eld
23805 \end_inset
23806
23807 weaving
23808 \begin_inset Quotes erd
23809 \end_inset
23810
23811  of the literate document.
23812  For Noweb, it is set to 
23813 \begin_inset Quotes eld
23814 \end_inset
23815
23816
23817 \family typewriter
23818 noweave -delay -index $$i > $$o
23819 \family default
23820
23821 \begin_inset Quotes erd
23822 \end_inset
23823
23824
23825 \end_layout
23826
23827 \begin_layout Description
23828
23829 \family sans
23830 NoWeb
23831 \family default
23832 ->
23833 \family sans
23834 Program
23835 \family default
23836  This performs the 
23837 \begin_inset Quotes eld
23838 \end_inset
23839
23840 tangling step
23841 \begin_inset Quotes erd
23842 \end_inset
23843
23844 .
23845  As stated above, the Converter is set to 
23846 \begin_inset Quotes eld
23847 \end_inset
23848
23849
23850 \family typewriter
23851 build-script $$i
23852 \family default
23853  $$r
23854 \begin_inset Quotes erd
23855 \end_inset
23856
23857 , with Flags set to
23858 \begin_inset Newline newline
23859 \end_inset
23860
23861
23862 \begin_inset Quotes eld
23863 \end_inset
23864
23865
23866 \family typewriter
23867 parselog=$$s/scripts/listerrors
23868 \family default
23869
23870 \begin_inset Quotes erd
23871 \end_inset
23872
23873 .
23874 \end_layout
23875
23876 \begin_layout Subsubsection
23877 Debug extensions
23878 \end_layout
23879
23880 \begin_layout Standard
23881 There is also a new function implemented in the \SpecialChar LyX
23882  server, the 
23883 \begin_inset Quotes eld
23884 \end_inset
23885
23886 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
23887  
23888 \end_layout
23889
23890 \begin_layout Standard
23891 When debugging code with ddd/gdb, it is possible to invoke a text editor
23892  at the current execution position with a single key stroke.
23893  The default ddd configuration for that is shift-ctrl-V.
23894  It happens that you can define the editor command line invocation in ddd
23895  by accessing the 
23896 \family sans
23897 Edit\SpecialChar menuseparator
23898 Preferences\SpecialChar menuseparator
23899 Helpers
23900 \family default
23901  dialog and changing the "Edit Sources" entry.
23902 \end_layout
23903
23904 \begin_layout Standard
23905 I take advantage of the newly created \SpecialChar LyX
23906  server function and this ddd feature,
23907  and set 
23908 \begin_inset Quotes eld
23909 \end_inset
23910
23911 Edit Sources
23912 \begin_inset Quotes erd
23913 \end_inset
23914
23915  to:
23916 \end_layout
23917
23918 \begin_layout Standard
23919 \begin_inset VSpace defskip
23920 \end_inset
23921
23922
23923 \end_layout
23924
23925 \begin_layout Standard
23926
23927 \family sans
23928 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
23929 \end_layout
23930
23931 \begin_layout Standard
23932 \begin_inset VSpace defskip
23933 \end_inset
23934
23935
23936 \end_layout
23937
23938 \begin_layout Standard
23939 With this, whenever you are using ddd and find a point in the program that
23940  you want to edit, you just press shift-ctrl-V (in the ddd window), and
23941  ddd will forward this information to \SpecialChar LyX
23942  through the \SpecialChar LyX
23943  server and then the
23944  \SpecialChar LyX
23945  window will show the same file with the cursor at the same position ddd
23946  was pointing to.
23947  No more guessing or long scrolling to locate a point in the program back
23948  from debugging !
23949 \end_layout
23950
23951 \begin_layout Standard
23952 Note however that you must enable the \SpecialChar LyX
23953  server to get this feature working
23954  (it is disabled by default).
23955  You can enable it in 
23956 \family sans
23957 Preferences
23958 \family default
23959  (tabs 
23960 \family sans
23961 Inputs
23962 \family default
23963
23964 \family sans
23965 Paths
23966 \family default
23967 ) by entering in the 
23968 \family sans
23969 \SpecialChar LyX
23970 server pipe
23971 \family default
23972  a path like 
23973 \begin_inset Quotes eld
23974 \end_inset
23975
23976
23977 \family typewriter
23978 /home/<your-home-directory>/.lyx/lyxpipe
23979 \family default
23980
23981 \begin_inset Quotes erd
23982 \end_inset
23983
23984
23985 \end_layout
23986
23987 \begin_layout Standard
23988 Read the \SpecialChar LyX
23989  server documentation in the 
23990 \emph on
23991 Customization Manual
23992 \emph default
23993  for further information.
23994 \end_layout
23995
23996 \begin_layout Subsubsection
23997 Toolbar extensions
23998 \end_layout
23999
24000 \begin_layout Standard
24001 There are six new buttons that can be added to your \SpecialChar LyX
24002  toolbar.
24003  Five of these buttons are short cuts to layout styles: 
24004 \family sans
24005 Standard
24006 \family default
24007
24008 \family sans
24009 Section
24010 \family default
24011
24012 \family sans
24013 \SpecialChar LaTeX
24014
24015 \family default
24016
24017 \family sans
24018 \SpecialChar LyX
24019 -Code
24020 \family default
24021 , and 
24022 \family sans
24023 Chunk
24024 \family default
24025 .
24026  The last one is a short cut to the 
24027 \begin_inset Quotes eld
24028 \end_inset
24029
24030 Build Program
24031 \begin_inset Quotes erd
24032 \end_inset
24033
24034  File menu entry.
24035  
24036 \end_layout
24037
24038 \begin_layout Standard
24039 \SpecialChar LyX
24040  has a range of buttons that are available for tool bar customization.
24041  In my toolbar I like to combine the six short cuts above with two more:
24042  One for 
24043 \family sans
24044 Document
24045 \family default
24046 \SpecialChar menuseparator
24047
24048 \family sans
24049 Update
24050 \family default
24051 \SpecialChar menuseparator
24052
24053 \family sans
24054 DVI
24055 \family default
24056  and the other for 
24057 \family sans
24058 Document\SpecialChar menuseparator
24059 View\SpecialChar menuseparator
24060 DVI
24061 \family default
24062  File menu entries.
24063  Here is how it looks like:
24064 \end_layout
24065
24066 \begin_layout LyX-Code
24067 Toolbar
24068 \end_layout
24069
24070 \begin_layout LyX-Code
24071   Layouts
24072 \end_layout
24073
24074 \begin_layout LyX-Code
24075   Icon "layout Standard"
24076 \end_layout
24077
24078 \begin_layout LyX-Code
24079   Icon "layout Section"
24080 \end_layout
24081
24082 \begin_layout LyX-Code
24083   Icon "layout \SpecialChar LaTeX
24084 "
24085 \end_layout
24086
24087 \begin_layout LyX-Code
24088   Icon "layout \SpecialChar LyX
24089 -Code"
24090 \end_layout
24091
24092 \begin_layout LyX-Code
24093   Icon "layout Chunk"
24094 \end_layout
24095
24096 \begin_layout LyX-Code
24097   Separator
24098 \end_layout
24099
24100 \begin_layout LyX-Code
24101   Icon "buffer-view"
24102 \end_layout
24103
24104 \begin_layout LyX-Code
24105   Icon "buffer-typeset"
24106 \end_layout
24107
24108 \begin_layout LyX-Code
24109   Icon "build-program"
24110 \end_layout
24111
24112 \begin_layout LyX-Code
24113   Separator
24114 \end_layout
24115
24116 \begin_layout LyX-Code
24117 .
24118 \end_layout
24119
24120 \begin_layout LyX-Code
24121 .
24122 \end_layout
24123
24124 \begin_layout LyX-Code
24125 .
24126 \end_layout
24127
24128 \begin_layout LyX-Code
24129 End
24130 \end_layout
24131
24132 \begin_layout Subsubsection
24133 Colors customization
24134 \end_layout
24135
24136 \begin_layout Standard
24137 There are a number of colors in \SpecialChar LyX
24138  that can be customized in 
24139 \family sans
24140 Preferences
24141 \family default
24142 .
24143  One of the things that bothers people is the \SpecialChar LaTeX
24144  font color.
24145  The default color is red, since the chunks uses \SpecialChar LaTeX
24146  font, and there is a lot
24147  of chunks in literate documents, you may get tired of seeing everything
24148  in red.
24149  You can change it by going to the tabs 
24150 \family sans
24151 Look&Feel
24152 \family default
24153
24154 \family sans
24155 Colors.
24156 \end_layout
24157
24158 \begin_layout Standard
24159 The next thing is the visible presence of the newline character in the screen.
24160  You can choose the color of this particular character and make it blend
24161  in the background.
24162  I recommend you choosing a color that is close to the background but not
24163  equal, that way you still can see it is there, but it is not bothering
24164  you anymore.
24165 \end_layout
24166
24167 \begin_layout Subsection
24168 \SpecialChar LyX
24169  and knitr/Sweave
24170 \end_layout
24171
24172 \begin_layout Standard
24173 Support for 
24174 \family sans
24175 knitr
24176 \family default
24177  and 
24178 \family sans
24179 Sweave
24180 \family default
24181  is documented in the 
24182 \emph on
24183 knitr.lyx
24184 \emph default
24185  example file and in the Sweave manual (menu 
24186 \family sans
24187 Help\SpecialChar menuseparator
24188 Specific Manuals
24189 \family default
24190 ).
24191 \end_layout
24192
24193 \begin_layout Chapter
24194 Special features
24195 \end_layout
24196
24197 \begin_layout Standard
24198 You can do everything with \SpecialChar LyX
24199  that you can do with \SpecialChar LaTeX
24200 .
24201  However, \SpecialChar LyX
24202  cannot support every \SpecialChar LaTeX
24203  feature directly.
24204  But you can always use \SpecialChar TeX
24205  Code.
24206  This chapter shows you some more special things you might want to use.
24207  For other special things you can do with figures, tables, floats, boxes
24208  and notes, have a look at the 
24209 \emph on
24210 Embedded
24211 \begin_inset space ~
24212 \end_inset
24213
24214 Objects
24215 \emph default
24216  manual.
24217 \end_layout
24218
24219 \begin_layout Section
24220 Multiple Text Columns
24221 \end_layout
24222
24223 \begin_layout Standard
24224 This feature is independent of the option 
24225 \family sans
24226 Two-column document
24227 \family default
24228  in the document settings under 
24229 \family sans
24230 Text Layout
24231 \family default
24232 .
24233  If you want to have 2
24234 \begin_inset space ~
24235 \end_inset
24236
24237 columns for the whole document, it is recommended to use the 
24238 \family sans
24239 Two-column document
24240 \family default
24241  option.
24242  For all other cases use this feature.
24243 \end_layout
24244
24245 \begin_layout Standard
24246 To use multiple text columns in your document, you have to load the module
24247  
24248 \family sans
24249 Multiple Columns
24250 \family default
24251  (menu 
24252 \family sans
24253 Document\SpecialChar menuseparator
24254 Settings\SpecialChar menuseparator
24255 Modules
24256 \family default
24257 ) and must have the \SpecialChar LaTeX
24258 -package 
24259 \series bold
24260 multicol
24261 \series default
24262  installed.
24263 \end_layout
24264
24265 \begin_layout Standard
24266 Footnotes within multiple columns will be placed at the bottom of the page
24267  and not under each column.
24268  Within the different columns you can use everything, with the limitation
24269  that for floats you need to use the float option 
24270 \family sans
24271 Span columns
24272 \family default
24273 .
24274 \end_layout
24275
24276 \begin_layout Subsection
24277 Basics
24278 \end_layout
24279
24280 \begin_layout Standard
24281 If you want to have 2
24282 \begin_inset space ~
24283 \end_inset
24284
24285 columns in your text, insert a multicolumn inset via the menu 
24286 \family sans
24287 Insert\SpecialChar menuseparator
24288 Custom
24289 \begin_inset space ~
24290 \end_inset
24291
24292 Insets\SpecialChar menuseparator
24293 Multiple
24294 \begin_inset space ~
24295 \end_inset
24296
24297 Columns
24298 \family default
24299  where the columns should start.
24300  Write all text that should be printed in 2
24301 \begin_inset space ~
24302 \end_inset
24303
24304 columns into this inset.
24305 \end_layout
24306
24307 \begin_layout Standard
24308 Here is an example:
24309 \end_layout
24310
24311 \begin_layout Standard
24312 \noindent
24313 \begin_inset Flex Multiple Columns
24314 status open
24315
24316 \begin_layout Plain Layout
24317 \noindent
24318
24319 \series bold
24320 \size small
24321 The Adventure of the Empty House
24322 \series default
24323
24324 \begin_inset Newline newline
24325 \end_inset
24326
24327 by Sir Arthur Conan Doyle
24328 \end_layout
24329
24330 \begin_layout Plain Layout
24331
24332 \size small
24333 It was in the spring of the year 1894 that all London was interested, and
24334  the fashionable world dismayed, by the murder of the Honourable Ronald
24335  Adair under most unusual and inexplicable circumstances.
24336  The public has already learned those particulars of the crime which came
24337  out in the police investigation, but a good deal was suppressed upon that
24338  occasion, since the case for the prosecution was so overwhelmingly strong
24339  that it was not necessary to bring forward all the facts.
24340  Only now, at the end of nearly ten years, am I allowed to supply those
24341  missing links which make up the whole of that remarkable chain.
24342  The crime was of interest in itself, but that interest was as nothing to
24343  me compared to the inconceivable sequel, which afforded me the greatest
24344  shock and surprise of any event in my adventurous life.
24345  Even now, after this long interval, I find myself thrilling as I think
24346  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24347 ty which utterly submerged my mind.
24348  Let me say to that public, which has shown some interest in those glimpses
24349  which I have occasionally given them of the thoughts and actions of a very
24350  remarkable man, that they are not to blame me if I have not shared my knowledge
24351  with them, for I should have considered it my first duty to do so, had
24352  I not been barred by a positive prohibition from his own lips, which was
24353  only withdrawn upon the third of last month.
24354 \end_layout
24355
24356 \end_inset
24357
24358
24359 \end_layout
24360
24361 \begin_layout Standard
24362 To get 3 or more columns, set the cursor into the multicolumn inset and
24363  use the menu 
24364 \family sans
24365 Insert\SpecialChar menuseparator
24366 Number
24367 \begin_inset space ~
24368 \end_inset
24369
24370 of
24371 \begin_inset space ~
24372 \end_inset
24373
24374 Columns
24375 \family default
24376 .
24377  The number of the desired columns is written into that inset (for 3
24378 \begin_inset space ~
24379 \end_inset
24380
24381 columns write 
24382 \begin_inset Quotes eld
24383 \end_inset
24384
24385 3
24386 \begin_inset Quotes erd
24387 \end_inset
24388
24389 ).
24390 \begin_inset Newline newline
24391 \end_inset
24392
24393 Here is an example with 3
24394 \begin_inset space ~
24395 \end_inset
24396
24397 columns:
24398 \end_layout
24399
24400 \begin_layout Standard
24401 \begin_inset Flex Multiple Columns
24402 status open
24403
24404 \begin_layout Plain Layout
24405
24406 \size footnotesize
24407 \begin_inset Argument 1
24408 status open
24409
24410 \begin_layout Plain Layout
24411 3
24412 \end_layout
24413
24414 \end_inset
24415
24416 It can be imagined that my close intimacy with Sherlock Holmes had interested
24417  me deeply in crime, and that after his disappearance I never failed to
24418  read with care the various problems which came before the public.
24419  And I even attempted, more than once, for my own private satisfaction,
24420  to employ his methods in their solution, though with indifferent success.
24421  There was none, however, which appealed to me like this tragedy of Ronald
24422  Adair.
24423  As I read the evidence at the inquest, which led up to a verdict of willful
24424  murder against some person or persons unknown, I realized more clearly
24425  than I had ever done the loss which the community had sustained by the
24426  death of Sherlock Holmes.
24427  There were points about this strange business which would, I was sure,
24428  have specially appealed to him, and the efforts of the police would have
24429  been supplemented, or more probably anticipated, by the trained observation
24430  and the alert mind of the first criminal agent in Europe.
24431  All day, as I drove upon my round, I turned over the case in my mind and
24432  found no explanation which appeared to me to be adequate.
24433  At the risk of telling a twice-told tale, I will recapitulate the facts
24434  as they were known to the public at the conclusion of the inquest.
24435 \end_layout
24436
24437 \end_inset
24438
24439
24440 \end_layout
24441
24442 \begin_layout Standard
24443 You can have up to 10
24444 \begin_inset space ~
24445 \end_inset
24446
24447 columns if you want to, but that might not be very pleasant for the readers
24448  of your document.
24449 \end_layout
24450
24451 \begin_layout Standard
24452 \begin_inset Newpage newpage
24453 \end_inset
24454
24455
24456 \end_layout
24457
24458 \begin_layout Subsection
24459 Columns inside Columns
24460 \end_layout
24461
24462 \begin_layout Standard
24463 You can also have columns inside columns:
24464 \end_layout
24465
24466 \begin_layout Standard
24467 \begin_inset Flex Multiple Columns
24468 status open
24469
24470 \begin_layout Plain Layout
24471
24472 \size footnotesize
24473 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24474  at that time governor of one of the Australian colonies.
24475  Adair's mother had returned from Australia to undergo the operation for
24476  cataract, and she, her son Ronald, and her daughter Hilda were living together
24477  at 427 Park Lane.
24478 \end_layout
24479
24480 \begin_layout Plain Layout
24481 \begin_inset Flex Multiple Columns
24482 status open
24483
24484 \begin_layout Plain Layout
24485
24486 \size footnotesize
24487 The youth moved in the best society–had, so far as was known, no enemies
24488  and no particular vices.
24489  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24490  had been broken off by mutual consent some months before, and there was
24491  no sign that it had left any very profound feeling behind it.
24492  For the rest {sic} the man's life moved in a narrow and conventional circle,
24493  for his habits were quiet and his nature unemotional.
24494  Yet it was upon this easy-going young aristocrat that death came, in most
24495  strange and unexpected form, between the hours of ten and eleven-twenty
24496  on the night of March 30, 1894.
24497 \end_layout
24498
24499 \end_inset
24500
24501
24502 \end_layout
24503
24504 \begin_layout Plain Layout
24505
24506 \size footnotesize
24507 Ronald Adair was fond of cards–playing continually, but never for such stakes
24508  as would hurt him.
24509  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24510  It was shown that, after dinner on the day of his death, he had played
24511  a rubber of whist at the latter club.
24512  He had also played there in the afternoon.
24513
24514 \size default
24515  
24516 \size footnotesize
24517 The evidence of those who had played with him– Mr.
24518  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24519  and that there was a fairly equal fall of the cards.
24520  Adair might have lost five pounds, but not more.
24521  His fortune was a considerable one, and such a loss could not in any way
24522  affect him.
24523  He had played nearly every day at one club or other, but he was a cautious
24524  player, and usually rose a winner.
24525  It came out in evidence that, in partnership with Colonel Moran, he had
24526  actually won as much as four hundred and twenty pounds in a sitting, some
24527  weeks before, from Godfrey Milner and Lord Balmoral.
24528  So much for his recent history as it came out at the inquest.
24529 \end_layout
24530
24531 \end_inset
24532
24533
24534 \end_layout
24535
24536 \begin_layout Subsection
24537 Advanced Examples
24538 \end_layout
24539
24540 \begin_layout Standard
24541 The examples in this section show some more special features of multiple
24542  columns.
24543 \end_layout
24544
24545 \begin_layout Standard
24546 For more features of multiple columns, have a look at the documentation
24547  of the \SpecialChar LaTeX
24548 -package 
24549 \series bold
24550 multicol
24551 \series default
24552
24553 \begin_inset CommandInset citation
24554 LatexCommand cite
24555 key "multicol"
24556
24557 \end_inset
24558
24559 .
24560 \end_layout
24561
24562 \begin_layout Subsubsection
24563 Preface
24564 \end_layout
24565
24566 \begin_layout Standard
24567 To add a preface text for multiple columns, set the cursor into the multicolumn
24568  inset and use the menu 
24569 \family sans
24570 Insert\SpecialChar menuseparator
24571 Preface
24572 \family default
24573 .
24574  Write your preface text into that inset.
24575 \begin_inset Newline newline
24576 \end_inset
24577
24578 This is an example with some preface text:
24579 \end_layout
24580
24581 \begin_layout Standard
24582 \begin_inset VSpace bigskip
24583 \end_inset
24584
24585
24586 \end_layout
24587
24588 \begin_layout Standard
24589 \begin_inset Flex Multiple Columns
24590 status open
24591
24592 \begin_layout Plain Layout
24593 \begin_inset Argument 2
24594 status open
24595
24596 \begin_layout Plain Layout
24597 And the story continues and continues and continues and continues\SpecialChar ldots
24598
24599 \end_layout
24600
24601 \end_inset
24602
24603
24604 \size small
24605 On the evening of the crime, he returned from the club exactly at ten.
24606  His mother and sister were out spending the evening with a relation.
24607  The servant deposed that she heard him enter the front room on the second
24608  floor, generally used as his sitting-room.
24609  She had lit a fire there, and as it smoked she had opened the window.
24610  No sound was heard from the room until eleven-twenty, the hour of the return
24611  of Lady Maynooth and her daughter.
24612  Desiring to say good-night, she attempted to enter her son's room.
24613  The door was locked on the inside, and no answer could be got to their
24614  cries and knocking.
24615  Help was obtained, and the door forced.
24616  The unfortunate young man was found lying near the table.
24617  His head had been horribly mutilated by an expanding revolver bullet, but
24618  no weapon of any sort was to be found in the room.
24619 \end_layout
24620
24621 \end_inset
24622
24623
24624 \end_layout
24625
24626 \begin_layout Standard
24627 You can also use a section heading as the preface if you use a section command
24628  as \SpecialChar TeX
24629  Code.
24630  For example the command
24631 \end_layout
24632
24633 \begin_layout Standard
24634
24635 \series bold
24636
24637 \backslash
24638 subsection{subsection title}
24639 \end_layout
24640
24641 \begin_layout Standard
24642 creates a subsection.
24643  In this example the preface is a subsubsection:
24644 \end_layout
24645
24646 \begin_layout Standard
24647 \begin_inset Flex Multiple Columns
24648 status open
24649
24650 \begin_layout Plain Layout
24651 \begin_inset Argument 2
24652 status open
24653
24654 \begin_layout Plain Layout
24655 \begin_inset ERT
24656 status collapsed
24657
24658 \begin_layout Plain Layout
24659
24660
24661 \backslash
24662 subsubsection{
24663 \end_layout
24664
24665 \end_inset
24666
24667 This is a subsubsection heading as a preface
24668 \begin_inset ERT
24669 status collapsed
24670
24671 \begin_layout Plain Layout
24672
24673 }
24674 \end_layout
24675
24676 \end_inset
24677
24678
24679 \end_layout
24680
24681 \end_inset
24682
24683
24684 \size small
24685 A minute examination of the circumstances served only to make the case more
24686  complex.
24687  In the first place, no reason could be given why the young man should have
24688  fastened the door upon the inside.
24689  There was the possibility that the murderer had done this, and had afterwards
24690  escaped by the window.
24691  The drop was at least twenty feet, however, and a bed of crocuses in full
24692  bloom lay beneath.
24693  Neither the flowers nor the earth showed any sign of having been disturbed,
24694  nor were there any marks upon the narrow strip of grass which separated
24695  the house from the road.
24696  Apparently, therefore, it was the young man himself who had fastened the
24697  door.
24698  But how did he come by his death? No one could have climbed up to the window
24699  without leaving traces.
24700  Suppose a man had fired through the window, he would indeed be a remarkable
24701  shot who could with a revolver inflict so deadly a wound.
24702  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24703  a hundred yards of the house.
24704  No one had heard a shot.
24705 \end_layout
24706
24707 \end_inset
24708
24709
24710 \end_layout
24711
24712 \begin_layout Standard
24713 If there is less vertical space than 6
24714 \begin_inset space ~
24715 \end_inset
24716
24717 text lines is left on the page at the beginning of the multiple columns,
24718  a page break will be inserted before the multiple columns.
24719  Depending on the number of lines of the preface text, you might want to
24720  change this space.
24721  This is done by setting the cursor into the mulitcolumn inset behind the
24722  preface (if there is any) and using the menu 
24723 \family sans
24724 Insert\SpecialChar menuseparator
24725 Space
24726 \begin_inset space ~
24727 \end_inset
24728
24729 Before
24730 \begin_inset space ~
24731 \end_inset
24732
24733 Page
24734 \begin_inset space ~
24735 \end_inset
24736
24737 Break
24738 \family default
24739 .
24740  Insert into that inset the amount of space like e.
24741 \begin_inset space \thinspace{}
24742 \end_inset
24743
24744 g.
24745 \begin_inset space \space{}
24746 \end_inset
24747
24748
24749 \begin_inset Quotes eld
24750 \end_inset
24751
24752 5cm
24753 \begin_inset Quotes erd
24754 \end_inset
24755
24756 .
24757 \begin_inset Newline newline
24758 \end_inset
24759
24760 In this example the space is set to 7
24761 \begin_inset space ~
24762 \end_inset
24763
24764 text lines by using 
24765 \begin_inset Quotes eld
24766 \end_inset
24767
24768 7
24769 \backslash
24770 baselineskip
24771 \begin_inset Quotes erd
24772 \end_inset
24773
24774  (where the command 
24775 \series bold
24776
24777 \backslash
24778 baselineskip
24779 \series default
24780  needs to be inserted as \SpecialChar TeX
24781  code):
24782 \end_layout
24783
24784 \begin_layout Standard
24785 \begin_inset Flex Multiple Columns
24786 status open
24787
24788 \begin_layout Plain Layout
24789 \begin_inset Argument 3
24790 status open
24791
24792 \begin_layout Plain Layout
24793 7
24794 \begin_inset ERT
24795 status collapsed
24796
24797 \begin_layout Plain Layout
24798
24799
24800 \backslash
24801 baselineskip
24802 \end_layout
24803
24804 \end_inset
24805
24806
24807 \end_layout
24808
24809 \end_inset
24810
24811
24812 \size small
24813 On the evening of the crime, he returned from the club exactly at ten.
24814  His mother and sister were out spending the evening with a relation.
24815  The servant deposed that she heard him enter the front room on the second
24816  floor, generally used as his sitting-room.
24817  She had lit a fire there, and as it smoked she had opened the window.
24818  No sound was heard from the room until eleven-twenty, the hour of the return
24819  of Lady Maynooth and her daughter.
24820  Desiring to say good-night, she attempted to enter her son's room.
24821  The door was locked on the inside, and no answer could be got to their
24822  cries and knocking.
24823  Help was obtained, and the door forced.
24824  The unfortunate young man was found lying near the table.
24825  His head had been horribly mutilated by an expanding revolver bullet, but
24826  no weapon of any sort was to be found in the room.
24827 \end_layout
24828
24829 \end_inset
24830
24831
24832 \end_layout
24833
24834 \begin_layout Subsubsection
24835 Surrounding Space
24836 \end_layout
24837
24838 \begin_layout Standard
24839 The amount of space before and after multiple columns can be changed by
24840  changing the length 
24841 \series bold
24842
24843 \backslash
24844 multicolsep
24845 \series default
24846 .
24847  For example the command
24848 \end_layout
24849
24850 \begin_layout Standard
24851
24852 \series bold
24853
24854 \backslash
24855 setlength{
24856 \backslash
24857 multicolsep}{3cm}
24858 \end_layout
24859
24860 \begin_layout Standard
24861 in \SpecialChar TeX
24862  Code changes its value to 3
24863 \begin_inset space \thinspace{}
24864 \end_inset
24865
24866 cm.
24867  The change must be made before the multiple columns' start.
24868  The predefined value is 13
24869 \begin_inset space \thinspace{}
24870 \end_inset
24871
24872 pt.
24873 \end_layout
24874
24875 \begin_layout Standard
24876 For this example 
24877 \series bold
24878
24879 \backslash
24880 multicolsep
24881 \series default
24882  was set to 2.5
24883 \begin_inset space \thinspace{}
24884 \end_inset
24885
24886 cm:
24887 \end_layout
24888
24889 \begin_layout Standard
24890 \begin_inset ERT
24891 status open
24892
24893 \begin_layout Plain Layout
24894
24895
24896 \backslash
24897 setlength{
24898 \backslash
24899 multicolsep}{2.5cm}
24900 \end_layout
24901
24902 \end_inset
24903
24904
24905 \end_layout
24906
24907 \begin_layout Standard
24908 \begin_inset Flex Multiple Columns
24909 status open
24910
24911 \begin_layout Plain Layout
24912
24913 \size small
24914 All day I turned these facts over in my mind, endeavouring to hit upon some
24915  theory which could reconcile them all, and to find that line of least resistanc
24916 e which my poor friend had declared to be the starting-point of every investigat
24917 ion.
24918  I confess that I made little progress.
24919  In the evening I strolled across the Park, and found myself about six o'clock
24920  at the Oxford Street end of Park Lane.
24921  A group of loafers upon the pavements, all staring up at a particular window,
24922  directed me to the house which I had come to see.
24923  A tall, thin man with coloured glasses, whom I strongly suspected of being
24924  a plain-clothes detective, was pointing out some theory of his own, while
24925  the others crowded round to listen to what he said.
24926  I got as near him as I could, but his observations seemed to me to be absurd,
24927  so I withdrew again in some disgust.
24928  As I did so I struck against an elderly, deformed man, who had been behind
24929  me, and I knocked down several books which he was carrying.
24930 \end_layout
24931
24932 \end_inset
24933
24934
24935 \end_layout
24936
24937 \begin_layout Standard
24938 \begin_inset Note Greyedout
24939 status open
24940
24941 \begin_layout Plain Layout
24942
24943 \series bold
24944 Note:
24945 \series default
24946  The values you set with 
24947 \series bold
24948
24949 \backslash
24950 setlength
24951 \series default
24952  will be used for all following multiple columns until you change them again.
24953 \end_layout
24954
24955 \end_inset
24956
24957
24958 \end_layout
24959
24960 \begin_layout Standard
24961 \begin_inset ERT
24962 status collapsed
24963
24964 \begin_layout Plain Layout
24965
24966
24967 \backslash
24968 setlength{
24969 \backslash
24970 multicolsep}{13pt}
24971 \end_layout
24972
24973 \end_inset
24974
24975
24976 \begin_inset Note Note
24977 status collapsed
24978
24979 \begin_layout Plain Layout
24980 go back to the default
24981 \end_layout
24982
24983 \end_inset
24984
24985
24986 \end_layout
24987
24988 \begin_layout Standard
24989 \begin_inset Newpage newpage
24990 \end_inset
24991
24992
24993 \end_layout
24994
24995 \begin_layout Subsubsection
24996 Column Breaks
24997 \end_layout
24998
24999 \begin_layout Standard
25000 A column break can be forced by inserting the command 
25001 \series bold
25002
25003 \backslash
25004 columnbreak{}
25005 \series default
25006  as \SpecialChar TeX
25007  Code to that position in the text where the column should be broken.
25008  Note that this leads in most cases to whitespace in the text.
25009 \begin_inset Newline newline
25010 \end_inset
25011
25012 Here is an example:
25013 \end_layout
25014
25015 \begin_layout Standard
25016 \begin_inset Flex Multiple Columns
25017 status open
25018
25019 \begin_layout Plain Layout
25020
25021 \size small
25022 \begin_inset Quotes eld
25023 \end_inset
25024
25025 You're surprised to see me, sir,
25026 \begin_inset Quotes erd
25027 \end_inset
25028
25029  said he, in a strange, croaking voice.
25030 \end_layout
25031
25032 \begin_layout Plain Layout
25033
25034 \size small
25035 I acknowledged that I was.
25036 \end_layout
25037
25038 \begin_layout Plain Layout
25039
25040 \size small
25041 \begin_inset Quotes eld
25042 \end_inset
25043
25044 Well, I've a conscience, sir, and when I chanced to see you go into this
25045  house, as I came hobbling after you, I thought to myself, I'll just step
25046  in and see that kind gentleman, and tell him that if I was a bit gruff
25047  in my manner there was not any harm meant, and that I am much obliged to
25048  him for picking up my books.
25049 \begin_inset Quotes erd
25050 \end_inset
25051
25052
25053 \end_layout
25054
25055 \begin_layout Plain Layout
25056
25057 \size small
25058 \begin_inset Quotes eld
25059 \end_inset
25060
25061 You make too much of a trifle,
25062 \begin_inset Quotes erd
25063 \end_inset
25064
25065  said I.
25066  
25067 \begin_inset Quotes eld
25068 \end_inset
25069
25070 May I ask how you knew who I was?
25071 \begin_inset Quotes erd
25072 \end_inset
25073
25074  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25075 \begin_inset ERT
25076 status collapsed
25077
25078 \begin_layout Plain Layout
25079
25080
25081 \backslash
25082 columnbreak{}
25083 \end_layout
25084
25085 \end_inset
25086
25087
25088 \end_layout
25089
25090 \begin_layout Plain Layout
25091
25092 \size small
25093 \begin_inset Quotes eld
25094 \end_inset
25095
25096 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25097  you'll find my little bookshop at the corner of Church Street, and very
25098  happy to see you, I am sure.
25099  Maybe you collect yourself, sir.
25100  Here's 
25101 \noun on
25102 British
25103 \begin_inset space ~
25104 \end_inset
25105
25106 Birds
25107 \noun default
25108 , and 
25109 \noun on
25110 Catullus
25111 \noun default
25112 , and 
25113 \noun on
25114 The Holy War
25115 \noun default
25116 –a bargain, every one of them.
25117  With five volumes you could just fill that gap on that second shelf.
25118  It looks untidy, does it not, sir?
25119 \begin_inset Quotes erd
25120 \end_inset
25121
25122
25123 \end_layout
25124
25125 \end_inset
25126
25127
25128 \end_layout
25129
25130 \begin_layout Subsubsection
25131 Column Separation
25132 \end_layout
25133
25134 \begin_layout Standard
25135 The width of the columns is automatically calculated, but you can modify
25136  the space between the columns.
25137  This is done by changing the length 
25138 \series bold
25139
25140 \backslash
25141 columnsep
25142 \series default
25143 .
25144  Its predefined value is 10
25145 \begin_inset space \thinspace{}
25146 \end_inset
25147
25148 pt.
25149  Here is an example where 
25150 \series bold
25151
25152 \backslash
25153 columnsep
25154 \series default
25155  is set to 3
25156 \begin_inset space \thinspace{}
25157 \end_inset
25158
25159 cm:
25160 \end_layout
25161
25162 \begin_layout Standard
25163 \begin_inset ERT
25164 status open
25165
25166 \begin_layout Plain Layout
25167
25168
25169 \backslash
25170 setlength{
25171 \backslash
25172 columnsep}{3cm}
25173 \end_layout
25174
25175 \end_inset
25176
25177
25178 \end_layout
25179
25180 \begin_layout Standard
25181 \begin_inset Flex Multiple Columns
25182 status open
25183
25184 \begin_layout Plain Layout
25185
25186 \size small
25187 My observations of No.
25188 \begin_inset space \space{}
25189 \end_inset
25190
25191 427 Park Lane did little to clear up the problem in which I was interested.
25192  The house was separated from the street by a low wall and railing, the
25193  whole not more than five feet high.
25194  It was perfectly easy, therefore, for anyone to get into the garden, but
25195  the window was entirely inaccessible, since there was no water pipe or
25196  anything which could help the most active man to climb it.
25197  More puzzled than ever, I retraced my steps to Kensington.
25198  I had not been in my study five minutes when the maid entered to say that
25199  a person desired to see me.
25200  To my astonishment it was none other than my strange old book collector,
25201  his sharp, wizened face peering out from a frame of white hair, and his
25202  precious volumes, a dozen of them at least, wedged under his right arm.
25203 \end_layout
25204
25205 \end_inset
25206
25207
25208 \end_layout
25209
25210 \begin_layout Standard
25211 \begin_inset ERT
25212 status collapsed
25213
25214 \begin_layout Plain Layout
25215
25216
25217 \backslash
25218 setlength{
25219 \backslash
25220 columnsep}{10pt}
25221 \end_layout
25222
25223 \end_inset
25224
25225
25226 \begin_inset Note Note
25227 status collapsed
25228
25229 \begin_layout Plain Layout
25230 go back to the default
25231 \end_layout
25232
25233 \end_inset
25234
25235
25236 \end_layout
25237
25238 \begin_layout Subsubsection
25239 Vertical Lines
25240 \end_layout
25241
25242 \begin_layout Standard
25243 Between the columns a rule with a width of the length 
25244 \series bold
25245
25246 \backslash
25247 columnseprule
25248 \series default
25249  is placed.
25250  If this rule width is set to 0
25251 \begin_inset space \thinspace{}
25252 \end_inset
25253
25254 pt (this is the default), the rule is suppressed.
25255  In the following example the rule is 2
25256 \begin_inset space \thinspace{}
25257 \end_inset
25258
25259 pt wide:
25260 \end_layout
25261
25262 \begin_layout Standard
25263 \begin_inset ERT
25264 status open
25265
25266 \begin_layout Plain Layout
25267
25268
25269 \backslash
25270 setlength{
25271 \backslash
25272 columnseprule}{2pt}
25273 \end_layout
25274
25275 \end_inset
25276
25277
25278 \end_layout
25279
25280 \begin_layout Standard
25281 \begin_inset Flex Multiple Columns
25282 status open
25283
25284 \begin_layout Plain Layout
25285
25286 \size small
25287 \begin_inset Quotes eld
25288 \end_inset
25289
25290 You're surprised to see me, sir,
25291 \begin_inset Quotes erd
25292 \end_inset
25293
25294  said he, in a strange, croaking voice.
25295 \end_layout
25296
25297 \begin_layout Plain Layout
25298
25299 \size small
25300 I acknowledged that I was.
25301 \end_layout
25302
25303 \begin_layout Plain Layout
25304
25305 \size small
25306 \begin_inset Quotes eld
25307 \end_inset
25308
25309 Well, I've a conscience, sir, and when I chanced to see you go into this
25310  house, as I came hobbling after you, I thought to myself, I'll just step
25311  in and see that kind gentleman, and tell him that if I was a bit gruff
25312  in my manner there was not any harm meant, and that I am much obliged to
25313  him for picking up my books.
25314 \begin_inset Quotes erd
25315 \end_inset
25316
25317
25318 \end_layout
25319
25320 \begin_layout Plain Layout
25321
25322 \size small
25323 \begin_inset Quotes eld
25324 \end_inset
25325
25326 You make too much of a trifle,
25327 \begin_inset Quotes erd
25328 \end_inset
25329
25330  said I.
25331  
25332 \begin_inset Quotes eld
25333 \end_inset
25334
25335 May I ask how you knew who I was?
25336 \begin_inset Quotes erd
25337 \end_inset
25338
25339
25340 \end_layout
25341
25342 \begin_layout Plain Layout
25343
25344 \size small
25345 \begin_inset Quotes eld
25346 \end_inset
25347
25348 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25349  you'll find my little bookshop at the corner of Church Street, and very
25350  happy to see you, I am sure.
25351  Maybe you collect yourself, sir.
25352  Here's 
25353 \noun on
25354 British
25355 \begin_inset space ~
25356 \end_inset
25357
25358 Birds
25359 \noun default
25360 , and 
25361 \noun on
25362 Catullus
25363 \noun default
25364 , and 
25365 \noun on
25366 The Holy War
25367 \noun default
25368 –a bargain, every one of them.
25369  With five volumes you could just fill that gap on that second shelf.
25370  It looks untidy, does it not, sir?
25371 \begin_inset Quotes erd
25372 \end_inset
25373
25374
25375 \end_layout
25376
25377 \end_inset
25378
25379
25380 \end_layout
25381
25382 \begin_layout Standard
25383 \begin_inset VSpace defskip
25384 \end_inset
25385
25386
25387 \end_layout
25388
25389 \begin_layout Standard
25390 The rule can be colored by redefining the command 
25391 \series bold
25392
25393 \backslash
25394 columnseprulecolor
25395 \series default
25396 .
25397  This is done by inserting the command
25398 \begin_inset Newline newline
25399 \end_inset
25400
25401
25402 \series bold
25403
25404 \backslash
25405 renewcommand{
25406 \backslash
25407 columnseprulecolor}{
25408 \backslash
25409 color{red}}
25410 \series default
25411
25412 \begin_inset Newline newline
25413 \end_inset
25414
25415 as \SpecialChar TeX
25416  Code before the multicolumn inset.
25417  Replace 
25418 \series bold
25419 red
25420 \series default
25421  in this command by a color of your choice.
25422  You can use all pre- and self-defined colors.
25423  See the 
25424 \emph on
25425 EmbeddedObjects
25426 \emph default
25427  manual, section 
25428 \emph on
25429 Colored
25430 \begin_inset space ~
25431 \end_inset
25432
25433 Tables
25434 \emph default
25435  for more information about pre- and self-defined colors.
25436  To go back to the default color insert the command
25437 \begin_inset Newline newline
25438 \end_inset
25439
25440
25441 \series bold
25442
25443 \backslash
25444 renewcommand{
25445 \backslash
25446 columnseprulecolor}{
25447 \backslash
25448 normalcolor}
25449 \series default
25450
25451 \begin_inset Newline newline
25452 \end_inset
25453
25454 Here is the example with a cyan rule and 1
25455 \begin_inset space \thinspace{}
25456 \end_inset
25457
25458 cm column separation:
25459 \end_layout
25460
25461 \begin_layout Standard
25462 \begin_inset ERT
25463 status open
25464
25465 \begin_layout Plain Layout
25466
25467
25468 \backslash
25469 setlength{
25470 \backslash
25471 columnsep}{1cm}
25472 \end_layout
25473
25474 \begin_layout Plain Layout
25475
25476
25477 \backslash
25478 renewcommand{
25479 \backslash
25480 columnseprulecolor}{
25481 \backslash
25482 color{cyan}}
25483 \end_layout
25484
25485 \end_inset
25486
25487
25488 \end_layout
25489
25490 \begin_layout Standard
25491 \begin_inset Flex Multiple Columns
25492 status open
25493
25494 \begin_layout Plain Layout
25495
25496 \size small
25497 \begin_inset Quotes eld
25498 \end_inset
25499
25500 You're surprised to see me, sir,
25501 \begin_inset Quotes erd
25502 \end_inset
25503
25504  said he, in a strange, croaking voice.
25505 \end_layout
25506
25507 \begin_layout Plain Layout
25508
25509 \size small
25510 I acknowledged that I was.
25511 \end_layout
25512
25513 \begin_layout Plain Layout
25514
25515 \size small
25516 \begin_inset Quotes eld
25517 \end_inset
25518
25519 Well, I've a conscience, sir, and when I chanced to see you go into this
25520  house, as I came hobbling after you, I thought to myself, I'll just step
25521  in and see that kind gentleman, and tell him that if I was a bit gruff
25522  in my manner there was not any harm meant, and that I am much obliged to
25523  him for picking up my books.
25524 \begin_inset Quotes erd
25525 \end_inset
25526
25527
25528 \end_layout
25529
25530 \begin_layout Plain Layout
25531
25532 \size small
25533 \begin_inset Quotes eld
25534 \end_inset
25535
25536 You make too much of a trifle,
25537 \begin_inset Quotes erd
25538 \end_inset
25539
25540  said I.
25541  
25542 \begin_inset Quotes eld
25543 \end_inset
25544
25545 May I ask how you knew who I was?
25546 \begin_inset Quotes erd
25547 \end_inset
25548
25549
25550 \end_layout
25551
25552 \begin_layout Plain Layout
25553
25554 \size small
25555 \begin_inset Quotes eld
25556 \end_inset
25557
25558 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25559  you'll find my little bookshop at the corner of Church Street, and very
25560  happy to see you, I am sure.
25561  Maybe you collect yourself, sir.
25562  Here's 
25563 \noun on
25564 British
25565 \begin_inset space ~
25566 \end_inset
25567
25568 Birds
25569 \noun default
25570 , and 
25571 \noun on
25572 Catullus
25573 \noun default
25574 , and 
25575 \noun on
25576 The Holy War
25577 \noun default
25578 –a bargain, every one of them.
25579  With five volumes you could just fill that gap on that second shelf.
25580  It looks untidy, does it not, sir?
25581 \begin_inset Quotes erd
25582 \end_inset
25583
25584
25585 \end_layout
25586
25587 \end_inset
25588
25589
25590 \end_layout
25591
25592 \begin_layout Standard
25593 \begin_inset ERT
25594 status collapsed
25595
25596 \begin_layout Plain Layout
25597
25598
25599 \backslash
25600 setlength{
25601 \backslash
25602 columnseprule}{0pt}
25603 \end_layout
25604
25605 \begin_layout Plain Layout
25606
25607
25608 \backslash
25609 renewcommand{
25610 \backslash
25611 columnseprulecolor}{
25612 \backslash
25613 normalcolor}
25614 \end_layout
25615
25616 \end_inset
25617
25618
25619 \begin_inset Note Note
25620 status collapsed
25621
25622 \begin_layout Plain Layout
25623 go back to the default
25624 \end_layout
25625
25626 \end_inset
25627
25628
25629 \end_layout
25630
25631 \begin_layout Section
25632 Non-standard Paragraph Shapes
25633 \end_layout
25634
25635 \begin_layout Standard
25636 \noindent
25637 \SpecialChar LaTeX
25638  as well as any other text processor uses by default rectangular paragraphs.
25639  For special cases like for example posters, invitation cards or poems you
25640  can modify the paragraph shape to one of your choice.
25641  This can be done by using the \SpecialChar LaTeX
25642 -package 
25643 \series bold
25644 shapepar
25645 \series default
25646  which is loaded by using in the document settings the module 
25647 \family sans
25648 Custom paragraph shapes
25649 \family default
25650 .
25651 \end_layout
25652
25653 \begin_layout Subsection
25654 Predefined shapes
25655 \end_layout
25656
25657 \begin_layout Standard
25658
25659 \series bold
25660 shapepar
25661 \series default
25662  provides the following shapes:
25663 \end_layout
25664
25665 \begin_layout Standard
25666 \begin_inset Tabular
25667 <lyxtabular version="3" rows="13" columns="3">
25668 <features booktabs="true" islongtable="true" longtabularalignment="center">
25669 <column alignment="center" valignment="middle" width="16col%">
25670 <column alignment="center" valignment="middle" width="40col%">
25671 <column alignment="center" valignment="middle" width="35col%">
25672 <row endhead="true">
25673 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25674 \begin_inset Text
25675
25676 \begin_layout Plain Layout
25677 Name
25678 \end_layout
25679
25680 \end_inset
25681 </cell>
25682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25683 \begin_inset Text
25684
25685 \begin_layout Plain Layout
25686 Description
25687 \end_layout
25688
25689 \end_inset
25690 </cell>
25691 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25692 \begin_inset Text
25693
25694 \begin_layout Plain Layout
25695 Annotation
25696 \end_layout
25697
25698 \end_inset
25699 </cell>
25700 </row>
25701 <row>
25702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25703 \begin_inset Text
25704
25705 \begin_layout Plain Layout
25706 CDlabel
25707 \end_layout
25708
25709 \end_inset
25710 </cell>
25711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25712 \begin_inset Text
25713
25714 \begin_layout Plain Layout
25715 Circle with circular hole (in the size of a CD/DVD)
25716 \end_layout
25717
25718 \end_inset
25719 </cell>
25720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25721 \begin_inset Text
25722
25723 \begin_layout Plain Layout
25724 Cannot be scaled, take care there is not too much text
25725 \end_layout
25726
25727 \end_inset
25728 </cell>
25729 </row>
25730 <row>
25731 <cell alignment="center" valignment="top" topline="true" usebox="none">
25732 \begin_inset Text
25733
25734 \begin_layout Plain Layout
25735 Circle
25736 \end_layout
25737
25738 \end_inset
25739 </cell>
25740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25741 \begin_inset Text
25742
25743 \begin_layout Plain Layout
25744 Circle
25745 \end_layout
25746
25747 \end_inset
25748 </cell>
25749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25750 \begin_inset Text
25751
25752 \begin_layout Plain Layout
25753 Fragile, calculation might fail
25754 \end_layout
25755
25756 \end_inset
25757 </cell>
25758 </row>
25759 <row>
25760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25761 \begin_inset Text
25762
25763 \begin_layout Plain Layout
25764 Diamond
25765 \end_layout
25766
25767 \end_inset
25768 </cell>
25769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25770 \begin_inset Text
25771
25772 \begin_layout Plain Layout
25773 Rhomboid (symbolizing a 
25774 \begin_inset Quotes eld
25775 \end_inset
25776
25777 diamond
25778 \begin_inset Quotes erd
25779 \end_inset
25780
25781 )
25782 \end_layout
25783
25784 \end_inset
25785 </cell>
25786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25787 \begin_inset Text
25788
25789 \begin_layout Plain Layout
25790 -
25791 \end_layout
25792
25793 \end_inset
25794 </cell>
25795 </row>
25796 <row>
25797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25798 \begin_inset Text
25799
25800 \begin_layout Plain Layout
25801 Heart
25802 \end_layout
25803
25804 \end_inset
25805 </cell>
25806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25807 \begin_inset Text
25808
25809 \begin_layout Plain Layout
25810 Heart-like shape
25811 \end_layout
25812
25813 \end_inset
25814 </cell>
25815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25816 \begin_inset Text
25817
25818 \begin_layout Plain Layout
25819 -
25820 \end_layout
25821
25822 \end_inset
25823 </cell>
25824 </row>
25825 <row>
25826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25827 \begin_inset Text
25828
25829 \begin_layout Plain Layout
25830 Hexagon
25831 \end_layout
25832
25833 \end_inset
25834 </cell>
25835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25836 \begin_inset Text
25837
25838 \begin_layout Plain Layout
25839 Hexagon
25840 \end_layout
25841
25842 \end_inset
25843 </cell>
25844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25845 \begin_inset Text
25846
25847 \begin_layout Plain Layout
25848 -
25849 \end_layout
25850
25851 \end_inset
25852 </cell>
25853 </row>
25854 <row>
25855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25856 \begin_inset Text
25857
25858 \begin_layout Plain Layout
25859 Nut
25860 \end_layout
25861
25862 \end_inset
25863 </cell>
25864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25865 \begin_inset Text
25866
25867 \begin_layout Plain Layout
25868 Nut for bolt (hexagon with circular hole)
25869 \end_layout
25870
25871 \end_inset
25872 </cell>
25873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25874 \begin_inset Text
25875
25876 \begin_layout Plain Layout
25877 -
25878 \end_layout
25879
25880 \end_inset
25881 </cell>
25882 </row>
25883 <row>
25884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25885 \begin_inset Text
25886
25887 \begin_layout Plain Layout
25888 Square
25889 \end_layout
25890
25891 \end_inset
25892 </cell>
25893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25894 \begin_inset Text
25895
25896 \begin_layout Plain Layout
25897 Square
25898 \end_layout
25899
25900 \end_inset
25901 </cell>
25902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25903 \begin_inset Text
25904
25905 \begin_layout Plain Layout
25906 -
25907 \end_layout
25908
25909 \end_inset
25910 </cell>
25911 </row>
25912 <row>
25913 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25914 \begin_inset Text
25915
25916 \begin_layout Plain Layout
25917 Star
25918 \end_layout
25919
25920 \end_inset
25921 </cell>
25922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25923 \begin_inset Text
25924
25925 \begin_layout Plain Layout
25926 Five-point star
25927 \end_layout
25928
25929 \end_inset
25930 </cell>
25931 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25932 \begin_inset Text
25933
25934 \begin_layout Plain Layout
25935 -
25936 \end_layout
25937
25938 \end_inset
25939 </cell>
25940 </row>
25941 <row>
25942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25943 \begin_inset Text
25944
25945 \begin_layout Plain Layout
25946 Candle
25947 \end_layout
25948
25949 \end_inset
25950 </cell>
25951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25952 \begin_inset Text
25953
25954 \begin_layout Plain Layout
25955 Burning candle
25956 \end_layout
25957
25958 \end_inset
25959 </cell>
25960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25961 \begin_inset Text
25962
25963 \begin_layout Plain Layout
25964 -
25965 \end_layout
25966
25967 \end_inset
25968 </cell>
25969 </row>
25970 <row>
25971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25972 \begin_inset Text
25973
25974 \begin_layout Plain Layout
25975 Drop down/up
25976 \end_layout
25977
25978 \end_inset
25979 </cell>
25980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25981 \begin_inset Text
25982
25983 \begin_layout Plain Layout
25984 Normal/reversed rain drop
25985 \end_layout
25986
25987 \end_inset
25988 </cell>
25989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25990 \begin_inset Text
25991
25992 \begin_layout Plain Layout
25993 Fragile, calculation might fail
25994 \end_layout
25995
25996 \end_inset
25997 </cell>
25998 </row>
25999 <row>
26000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26001 \begin_inset Text
26002
26003 \begin_layout Plain Layout
26004 \SpecialChar TeX
26005
26006 \end_layout
26007
26008 \end_inset
26009 </cell>
26010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26011 \begin_inset Text
26012
26013 \begin_layout Plain Layout
26014 The \SpecialChar TeX
26015  logo
26016 \end_layout
26017
26018 \end_inset
26019 </cell>
26020 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26021 \begin_inset Text
26022
26023 \begin_layout Plain Layout
26024 -
26025 \end_layout
26026
26027 \end_inset
26028 </cell>
26029 </row>
26030 <row>
26031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26032 \begin_inset Text
26033
26034 \begin_layout Plain Layout
26035 Triangle up/down/
26036 \begin_inset Newline newline
26037 \end_inset
26038
26039 left/right
26040 \end_layout
26041
26042 \end_inset
26043 </cell>
26044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26045 \begin_inset Text
26046
26047 \begin_layout Plain Layout
26048 Triangles in different orientations
26049 \end_layout
26050
26051 \end_inset
26052 </cell>
26053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26054 \begin_inset Text
26055
26056 \begin_layout Plain Layout
26057 -
26058 \end_layout
26059
26060 \end_inset
26061 </cell>
26062 </row>
26063 </lyxtabular>
26064
26065 \end_inset
26066
26067
26068 \end_layout
26069
26070 \begin_layout Standard
26071 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26072 's pull-down box
26073  for environments in the toolbar.
26074 \end_layout
26075
26076 \begin_layout Standard
26077 \begin_inset Newpage newpage
26078 \end_inset
26079
26080
26081 \end_layout
26082
26083 \begin_layout Standard
26084 Here is an example paragraph in the shape of a nut:
26085 \end_layout
26086
26087 \begin_layout Standard
26088 \begin_inset VSpace bigskip
26089 \end_inset
26090
26091
26092 \end_layout
26093
26094 \begin_layout Nut
26095
26096 \lang latin
26097 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26098  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26099  voluptua.
26100  At vero eos et accusam et justo duo dolores et ea rebum.
26101  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26102  sit amet.
26103  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26104  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26105  voluptua.
26106 \end_layout
26107
26108 \begin_layout Standard
26109 \begin_inset VSpace bigskip
26110 \end_inset
26111
26112
26113 \end_layout
26114
26115 \begin_layout Standard
26116 \begin_inset Note Greyedout
26117 status open
26118
26119 \begin_layout Plain Layout
26120
26121 \series bold
26122 Note
26123 \series default
26124 : shapepar paragraphs cannot run over a page break.
26125 \end_layout
26126
26127 \end_inset
26128
26129
26130 \end_layout
26131
26132 \begin_layout Standard
26133 \begin_inset VSpace bigskip
26134 \end_inset
26135
26136
26137 \end_layout
26138
26139 \begin_layout Standard
26140
26141 \series bold
26142 shapepar
26143 \series default
26144  takes care that the shape will always be preserved, no matter how much
26145  text is in the paragraph.
26146  Therefore the paragraph size changes with the amount of contained text.
26147  This can lead to paragraph sizes exceeding the page margins.
26148  To demonstrate the size scaling, here is the same example paragraph but
26149  with twice as much text:
26150 \end_layout
26151
26152 \begin_layout Standard
26153 \begin_inset Newpage newpage
26154 \end_inset
26155
26156
26157 \end_layout
26158
26159 \begin_layout Nut
26160
26161 \lang latin
26162 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26163  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26164  voluptua.
26165  At vero eos et accusam et justo duo dolores et ea rebum.
26166  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26167  sit amet.
26168  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26169  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26170  voluptua.
26171  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26172  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26173  voluptua.
26174  At vero eos et accusam et justo duo dolores et ea rebum.
26175  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26176  sit amet.
26177  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26178  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26179  voluptua.
26180 \end_layout
26181
26182 \begin_layout Standard
26183 \begin_inset VSpace bigskip
26184 \end_inset
26185
26186
26187 \end_layout
26188
26189 \begin_layout Standard
26190 An exception is the shape 
26191 \family sans
26192 CDlabel
26193 \family default
26194 .
26195  It cannot be scaled because it must fit the size of a CD/DVD.
26196  Therefore the amount of text that fits into the shape is limited.
26197 \begin_inset Newline newline
26198 \end_inset
26199
26200 The 
26201 \family sans
26202 drop
26203 \family default
26204  shapes and the 
26205 \family sans
26206 circle
26207 \family default
26208  shape are fragile, meaning that the calculation of their size can fail,
26209  depending on the amount of text.
26210  You will then get the \SpecialChar LaTeX
26211  error 
26212 \begin_inset Quotes eld
26213 \end_inset
26214
26215 Arithmetic overflow
26216 \begin_inset Quotes erd
26217 \end_inset
26218
26219 .
26220  In this case one can try to remove or add some text; if nothing works one
26221  has to use another shape.
26222 \end_layout
26223
26224 \begin_layout Standard
26225 \begin_inset VSpace bigskip
26226 \end_inset
26227
26228
26229 \end_layout
26230
26231 \begin_layout Standard
26232 For shapes with tips you will maybe see that \SpecialChar LaTeX
26233 's hyphenation routine fails
26234  for text in the tips.
26235  Therefore it is often necessary to add hyphenation points 
26236 \family sans
26237 (
26238 \begin_inset Info
26239 type  "shortcut"
26240 arg   "specialchar-insert hyphenation"
26241 \end_inset
26242
26243
26244 \family default
26245 ) to the corresponding text parts.
26246 \end_layout
26247
26248 \begin_layout Standard
26249 \begin_inset VSpace bigskip
26250 \end_inset
26251
26252
26253 \end_layout
26254
26255 \begin_layout Standard
26256 Shapepar paragraphs are either always centered or placed on the page so
26257  that their left border touches the left page margin.
26258  You can therefore not use the paragraph dialog to align such paragraphs.
26259  A solution is to put the paragraph into a minipage or parbox and align
26260  the box.
26261  The problem is hereby to find the right width for the box.
26262  Because if it is too wide and you center the box, the paragraph is not
26263  centered too because it sticks at the left side of the box.
26264  So you might have to play a bit with the width until it fits.
26265  Here are two heart-shaped paragraphs, the first one is not aligned, the
26266  second one is right-aligned:
26267 \end_layout
26268
26269 \begin_layout Standard
26270 \begin_inset Newpage newpage
26271 \end_inset
26272
26273
26274 \end_layout
26275
26276 \begin_layout Heart
26277 \noindent
26278
26279 \lang latin
26280 Lo\SpecialChar softhyphen
26281 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26282  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26283  voluptua.
26284  At vero eos et accusam et justo duo dolores et ea rebum.
26285  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26286  sit amet.
26287 \end_layout
26288
26289 \begin_layout Standard
26290 \begin_inset VSpace bigskip
26291 \end_inset
26292
26293
26294 \end_layout
26295
26296 \begin_layout Standard
26297 \noindent
26298 \align right
26299 \begin_inset Box Frameless
26300 position "t"
26301 hor_pos "c"
26302 has_inner_box 1
26303 inner_pos "t"
26304 use_parbox 1
26305 use_makebox 0
26306 width "42col%"
26307 special "none"
26308 height "1in"
26309 height_special "totalheight"
26310 thickness "0.4pt"
26311 separation "3pt"
26312 shadowsize "4pt"
26313 framecolor "black"
26314 backgroundcolor "none"
26315 status open
26316
26317 \begin_layout Heart
26318 \noindent
26319
26320 \lang latin
26321 Lo\SpecialChar softhyphen
26322 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26323  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26324  voluptua.
26325  At vero eos et accusam et justo duo dolores et ea rebum.
26326  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26327  sit amet.
26328 \end_layout
26329
26330 \end_inset
26331
26332
26333 \end_layout
26334
26335 \begin_layout Subsection
26336 Custom shapes
26337 \end_layout
26338
26339 \begin_layout Standard
26340 You can define any shape you want.
26341  Doing this manually is a lot of work because every coordinate must be specified.
26342  But there is a way to let the computer calculate the coordinates:
26343 \end_layout
26344
26345 \begin_layout Enumerate
26346 Install the program 
26347 \begin_inset CommandInset href
26348 LatexCommand href
26349 name "Jpgfdraw"
26350 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26351
26352 \end_inset
26353
26354 .
26355 \end_layout
26356
26357 \begin_layout Enumerate
26358 In 
26359 \family sans
26360 Jpgfdraw
26361 \family default
26362  go to the menu 
26363 \family sans
26364 TeX/LaTeX\SpecialChar menuseparator
26365 Settings\SpecialChar menuseparator
26366 Set Normal Size
26367 \family default
26368  and select the font size you are using in your document.
26369  For example this document uses the size 12
26370 \begin_inset space \thinspace{}
26371 \end_inset
26372
26373 pt.
26374 \end_layout
26375
26376 \begin_layout Enumerate
26377 Draw a shape.
26378 \end_layout
26379
26380 \begin_layout Enumerate
26381 Use the menu 
26382 \family sans
26383 TeX/LaTeX\SpecialChar menuseparator
26384 Shapepar
26385 \family default
26386  to export the shape to coordinates.
26387  In the appearing dialog use either the outline of your shape for the coordinate
26388 s or the path itself.
26389 \begin_inset Foot
26390 status collapsed
26391
26392 \begin_layout Plain Layout
26393 For more information see 
26394 \begin_inset CommandInset href
26395 LatexCommand href
26396 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26397
26398 \end_inset
26399
26400
26401 \end_layout
26402
26403 \end_inset
26404
26405
26406 \end_layout
26407
26408 \begin_layout Standard
26409 The coordinates are written into a \SpecialChar TeX
26410  file.
26411  To use it for your \SpecialChar LyX
26412  document
26413 \end_layout
26414
26415 \begin_layout Enumerate
26416 Place the cursor before the first character of your paragraph (or into a
26417  new empty one).
26418 \end_layout
26419
26420 \begin_layout Enumerate
26421 Open in \SpecialChar LyX
26422  the menu 
26423 \family sans
26424 Insert\SpecialChar menuseparator
26425 File\SpecialChar menuseparator
26426 Child
26427 \begin_inset space ~
26428 \end_inset
26429
26430 Document
26431 \family default
26432 , select the file and use 
26433 \family sans
26434 Input
26435 \family default
26436  as 
26437 \family sans
26438 Include Type.
26439 \end_layout
26440
26441 \begin_layout Standard
26442 \begin_inset VSpace defskip
26443 \end_inset
26444
26445
26446 \end_layout
26447
26448 \begin_layout Standard
26449 \begin_inset Note Greyedout
26450 status open
26451
26452 \begin_layout Plain Layout
26453
26454 \series bold
26455 Note
26456 \series default
26457 : The changed shape only applies to the current paragraph; everything is
26458  reset to normal for the next paragraph.
26459  Therefore the shape definition file must be input into every paragraph
26460  with the desired shape.
26461 \end_layout
26462
26463 \end_inset
26464
26465
26466 \end_layout
26467
26468 \begin_layout Standard
26469 \begin_inset VSpace bigskip
26470 \end_inset
26471
26472
26473 \end_layout
26474
26475 \begin_layout Standard
26476 Here is an example:
26477 \end_layout
26478
26479 \begin_layout Standard
26480 \begin_inset VSpace bigskip
26481 \end_inset
26482
26483
26484 \end_layout
26485
26486 \begin_layout Standard
26487 \begin_inset CommandInset include
26488 LatexCommand input
26489 filename "SpecialParagraphShape.tex"
26490
26491 \end_inset
26492
26493
26494 \lang latin
26495 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26496  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26497  voluptua.
26498  At vero eos et accusam et justo duo dolores et ea rebum.
26499  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26500  sit amet.
26501  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26502  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26503  voluptua.
26504 \end_layout
26505
26506 \begin_layout Standard
26507 \begin_inset VSpace bigskip
26508 \end_inset
26509
26510
26511 \end_layout
26512
26513 \begin_layout Standard
26514
26515 \series bold
26516 A tip:
26517 \series default
26518  to draw complexer shapes in 
26519 \family sans
26520 Jpgfdraw
26521 \family default
26522  you can draw the shape in a program of your choice and import the resulting
26523  image to 
26524 \family sans
26525 Jpgfdraw
26526 \family default
26527 .
26528  Then you only need to draw a line or spline along the outline of the image.
26529 \end_layout
26530
26531 \begin_layout Standard
26532 \begin_inset VSpace bigskip
26533 \end_inset
26534
26535
26536 \end_layout
26537
26538 \begin_layout Standard
26539 The module 
26540 \family sans
26541 Custom paragraph shapes
26542 \family default
26543  also provides the two commands 
26544 \family sans
26545 shapepar
26546 \family default
26547  and 
26548 \family sans
26549 Shapepar
26550 \family default
26551  which can be used to define custom shapes coordinate by coordinate.
26552 \begin_inset Foot
26553 status collapsed
26554
26555 \begin_layout Plain Layout
26556 These commands are internally used for all shapes described here.
26557 \end_layout
26558
26559 \end_inset
26560
26561  For information how these styles are used and about further customization
26562  possibilities, have a look at the documentation of the package 
26563 \series bold
26564 shapepar
26565 \series default
26566
26567 \begin_inset CommandInset citation
26568 LatexCommand cite
26569 key "shapepar"
26570
26571 \end_inset
26572
26573 .
26574 \end_layout
26575
26576 \begin_layout Bibliography
26577 \begin_inset CommandInset bibitem
26578 LatexCommand bibitem
26579 key "multicol"
26580
26581 \end_inset
26582
26583 Documentation of the \SpecialChar LaTeX
26584 -package 
26585 \begin_inset CommandInset href
26586 LatexCommand href
26587 name "multicol"
26588 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26589
26590 \end_inset
26591
26592
26593 \end_layout
26594
26595 \begin_layout Bibliography
26596 \begin_inset CommandInset bibitem
26597 LatexCommand bibitem
26598 key "shapepar"
26599
26600 \end_inset
26601
26602 Documentation of the \SpecialChar LaTeX
26603 -package 
26604 \begin_inset CommandInset href
26605 LatexCommand href
26606 name "shapepar"
26607 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
26608
26609 \end_inset
26610
26611
26612 \end_layout
26613
26614 \end_body
26615 \end_document