]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
f7476b5190427ffeb598759c98a90516e15c47d1
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 506
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30 \end_preamble
31 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 theorems-ams
36 theorems-ams-extended
37 multicol
38 shapepar
39 \end_modules
40 \maintain_unincluded_children false
41 \language english
42 \language_package default
43 \inputencoding auto
44 \fontencoding global
45 \font_roman "lmodern" "default"
46 \font_sans "lmss" "default"
47 \font_typewriter "lmtt" "default"
48 \font_math "auto" "auto"
49 \font_default_family default
50 \use_non_tex_fonts false
51 \font_sc false
52 \font_osf false
53 \font_sf_scale 100 100
54 \font_tt_scale 100 100
55 \graphics default
56 \default_output_format pdf2
57 \output_sync 0
58 \bibtex_command default
59 \index_command default
60 \paperfontsize 12
61 \spacing single
62 \use_hyperref true
63 \pdf_title "LyX's Additional Features manual"
64 \pdf_author "LyX Team"
65 \pdf_subject "LyX's additional features documentation"
66 \pdf_keywords "LyX, Documentation, Additional"
67 \pdf_bookmarks true
68 \pdf_bookmarksnumbered true
69 \pdf_bookmarksopen false
70 \pdf_bookmarksopenlevel 1
71 \pdf_breaklinks false
72 \pdf_pdfborder false
73 \pdf_colorlinks true
74 \pdf_backref false
75 \pdf_pdfusetitle false
76 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
77 \papersize a4paper
78 \use_geometry false
79 \use_package amsmath 1
80 \use_package amssymb 1
81 \use_package cancel 0
82 \use_package esint 0
83 \use_package mathdots 1
84 \use_package mathtools 0
85 \use_package mhchem 1
86 \use_package stackrel 0
87 \use_package stmaryrd 0
88 \use_package undertilde 0
89 \cite_engine basic
90 \cite_engine_type default
91 \biblio_style plain
92 \use_bibtopic false
93 \use_indices false
94 \paperorientation portrait
95 \suppress_date false
96 \justification true
97 \use_refstyle 0
98 \notefontcolor #0000ff
99 \index Index
100 \shortcut idx
101 \color #008000
102 \end_index
103 \secnumdepth 3
104 \tocdepth 3
105 \paragraph_separation indent
106 \paragraph_indentation default
107 \quotes_language english
108 \papercolumns 1
109 \papersides 2
110 \paperpagestyle headings
111 \tracking_changes false
112 \output_changes false
113 \html_math_output 0
114 \html_css_as_file 0
115 \html_be_strict true
116 \end_header
117
118 \begin_body
119
120 \begin_layout Title
121 Additional \SpecialChar LyX
122  Features
123 \end_layout
124
125 \begin_layout Subtitle
126 Version 2.2.x
127 \end_layout
128
129 \begin_layout Author
130 by the \SpecialChar LyX
131  Team
132 \begin_inset Foot
133 status collapsed
134
135 \begin_layout Plain Layout
136 \noindent
137 Principal maintainer of this file is
138 \noun on
139  Richard Heck
140 \noun default
141 .
142  If you have comments or error corrections, please send them to the \SpecialChar LyX
143  Documentati
144 on mailing list, 
145 \begin_inset Flex Code
146 status collapsed
147
148 \begin_layout Plain Layout
149 \noindent
150 <lyx-docs@lists.lyx.org>
151 \end_layout
152
153 \end_inset
154
155 .
156 \end_layout
157
158 \end_inset
159
160
161 \end_layout
162
163 \begin_layout Standard
164 \begin_inset CommandInset toc
165 LatexCommand tableofcontents
166
167 \end_inset
168
169
170 \end_layout
171
172 \begin_layout Chapter
173 Introduction
174 \end_layout
175
176 \begin_layout Standard
177 This manual is essentially Part II of the 
178 \emph on
179 User's Guide\SpecialChar endofsentence
180
181 \emph default
182  The reason for separating the two documents is simple: the 
183 \emph on
184 User's Guide
185 \emph default
186  is already quite lengthy, and it contains information on all of the basic
187  features one needs to know in order to prepare most documents.
188  However, the \SpecialChar LyX
189  Team has worked to make \SpecialChar LyX
190  extensible through various configuration
191  files and external packages.
192  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
193  package, you can
194  create a layout file (or module) for it without having to alter \SpecialChar LyX
195  itself.
196  We've already had contributions of several new features this way, and some
197  of them are documented here.
198  There are also some more `advanced' features, such as how to control the
199  presentation of bibliographies and how to work with multi-part documents,
200  that are not covered in the 
201 \emph on
202 User's Guide
203 \emph default
204  and are discussed here.
205 \end_layout
206
207 \begin_layout Standard
208 This manual also documents some special features, like fax support, version
209  control, and SGML support, which require additional software to work properly.
210  There is also a chapter on \SpecialChar LyX
211 's support for HTML.
212  And lastly, there's a chapter of \SpecialChar LaTeX
213  tools and tips, things you can use to
214  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
215 .
216  After all, \SpecialChar LyX
217  
218 \emph on
219 is
220 \emph default
221  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
222  features.
223 \end_layout
224
225 \begin_layout Standard
226 If you haven't read the 
227 \emph on
228 Introduction
229 \emph default
230  yet, you are definitely in the wrong manual.
231  The 
232 \emph on
233 Introduction
234 \emph default
235  is the first place to go, since it describes the notation and format of
236  all of the manuals.
237  You should also be thoroughly familiar with the 
238 \emph on
239 User's Guide
240 \emph default
241  and all of the basic features of \SpecialChar LyX
242  before attempting to read this one.
243 \end_layout
244
245 \begin_layout Standard
246 Since many of the topics in this manual depend heavily on \SpecialChar LyX
247 's interaction
248  with \SpecialChar LaTeX
249 , this first chapter covers the inner workings of \SpecialChar LyX
250  and how to direct
251  \SpecialChar LyX
252  to generate exactly the \SpecialChar LaTeX
253  code you want.
254  It is obviously for more seasoned \SpecialChar LyX
255  users.
256 \end_layout
257
258 \begin_layout Chapter
259 \SpecialChar LyX
260  and \SpecialChar LaTeX
261
262 \end_layout
263
264 \begin_layout Section
265 How \SpecialChar LyX
266  Uses \SpecialChar LaTeX
267
268 \end_layout
269
270 \begin_layout Standard
271 This chapter is for both \SpecialChar TeX
272 -nicians and the \SpecialChar LaTeX
273 -curious.
274  In it, we'll explain how \SpecialChar LyX
275  and \SpecialChar LaTeX
276  work together to produce printable output.
277  This is the only place in any of the manuals where we assume you know something
278  about \SpecialChar LaTeX
279 .
280 \end_layout
281
282 \begin_layout Standard
283 At one time, \SpecialChar LyX
284  was called a 
285 \begin_inset Quotes eld
286 \end_inset
287
288 WYSIWYM frontend to \SpecialChar LaTeX
289 ,
290 \begin_inset Quotes erd
291 \end_inset
292
293  but that's no longer true.
294  There are frontends to \SpecialChar LaTeX
295  out there.
296 \begin_inset Foot
297 status collapsed
298
299 \begin_layout Plain Layout
300 Some familar ones are \SpecialChar TeX
301 maker and kile, on Linux, and \SpecialChar TeX
302 shop, OSX.
303  There are also the \SpecialChar LaTeX
304  modes for vi and emacs, of course.
305 \end_layout
306
307 \end_inset
308
309  These are basically text editors with the ability to run \SpecialChar LaTeX
310  and mark any
311  errors in the file you're editing.
312  Although \SpecialChar LyX
313  
314 \emph on
315 is
316 \emph default
317  an editor, and it 
318 \emph on
319 does
320 \emph default
321  run \SpecialChar LaTeX
322 , and it also indicates errors in the file, it also does much, much
323  more.
324  For one thing, you don't need to know \SpecialChar LaTeX
325  to use \SpecialChar LyX
326  effectively.
327  And \SpecialChar LyX
328  has added its own extensions to \SpecialChar LaTeX
329 .
330  Try the following sometime: select 
331 \begin_inset Flex Noun
332 status collapsed
333
334 \begin_layout Plain Layout
335 Export\SpecialChar menuseparator
336 \SpecialChar LaTeX
337
338 \end_layout
339
340 \end_inset
341
342  from the 
343 \begin_inset Flex Noun
344 status collapsed
345
346 \begin_layout Plain Layout
347 File
348 \end_layout
349
350 \end_inset
351
352  menu (or 
353 \begin_inset Flex Noun
354 status collapsed
355
356 \begin_layout Plain Layout
357 View\SpecialChar menuseparator
358 Source
359 \begin_inset space ~
360 \end_inset
361
362 Pane
363 \end_layout
364
365 \end_inset
366
367 ), then look at the preamble of the resulting 
368 \begin_inset Flex Code
369 status collapsed
370
371 \begin_layout Plain Layout
372 .tex
373 \end_layout
374
375 \end_inset
376
377  file.
378  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
379 .
380  These macros are defined automatically, according to the features you use
381  in the document.
382 \end_layout
383
384 \begin_layout Standard
385 There are several commands that automatically invoke \SpecialChar LaTeX
386 .
387  They are:
388 \end_layout
389
390 \begin_layout Itemize
391 \begin_inset Flex Noun
392 status collapsed
393
394 \begin_layout Plain Layout
395 Document\SpecialChar menuseparator
396 View
397 \end_layout
398
399 \end_inset
400
401
402 \end_layout
403
404 \begin_layout Itemize
405 \begin_inset Flex Noun
406 status collapsed
407
408 \begin_layout Plain Layout
409 Document\SpecialChar menuseparator
410 Update
411 \end_layout
412
413 \end_inset
414
415
416 \end_layout
417
418 \begin_layout Itemize
419 \begin_inset Flex Noun
420 status collapsed
421
422 \begin_layout Plain Layout
423 File\SpecialChar menuseparator
424 Print
425 \end_layout
426
427 \end_inset
428
429
430 \end_layout
431
432 \begin_layout Itemize
433 \begin_inset Flex Noun
434 status collapsed
435
436 \begin_layout Plain Layout
437 File\SpecialChar menuseparator
438 Fax
439 \end_layout
440
441 \end_inset
442
443
444 \end_layout
445
446 \begin_layout Standard
447 They will only invoke \SpecialChar LaTeX
448  if the file has changed since the last time \SpecialChar LaTeX
449  was
450  run.
451  
452 \end_layout
453
454 \begin_layout Standard
455 When \SpecialChar LyX
456  runs \SpecialChar LaTeX
457  on the file you're editing, it performs these steps:
458 \end_layout
459
460 \begin_layout Enumerate
461 Convert the document to \SpecialChar LaTeX
462  and save to a file with the extension 
463 \begin_inset Flex Code
464 status collapsed
465
466 \begin_layout Plain Layout
467 .tex
468 \end_layout
469
470 \end_inset
471
472  in place of 
473 \begin_inset Flex Code
474 status collapsed
475
476 \begin_layout Plain Layout
477 .lyx
478 \end_layout
479
480 \end_inset
481
482 .
483 \end_layout
484
485 \begin_layout Enumerate
486 Run \SpecialChar LaTeX
487  on the 
488 \begin_inset Flex Code
489 status collapsed
490
491 \begin_layout Plain Layout
492 .tex
493 \end_layout
494
495 \end_inset
496
497  file (maybe several times), and run any other commands (such as 
498 \begin_inset Flex Code
499 status collapsed
500
501 \begin_layout Plain Layout
502 bibtex
503 \end_layout
504
505 \end_inset
506
507  or 
508 \begin_inset Flex Code
509 status collapsed
510
511 \begin_layout Plain Layout
512 makeindex
513 \end_layout
514
515 \end_inset
516
517 ) needed to compile the \SpecialChar LaTeX
518  file.
519 \end_layout
520
521 \begin_layout Enumerate
522 If there are any errors, show the error log.
523 \end_layout
524
525 \begin_layout Standard
526 If you have run \SpecialChar LaTeX
527  using 
528 \begin_inset Flex Noun
529 status collapsed
530
531 \begin_layout Plain Layout
532 View\SpecialChar menuseparator
533 DVI
534 \end_layout
535
536 \end_inset
537
538 , \SpecialChar LyX
539  then runs a DVI viewer to display the DVI-file.
540  If you have used 
541 \begin_inset Flex Noun
542 status collapsed
543
544 \begin_layout Plain Layout
545 View\SpecialChar menuseparator
546 PostScript
547 \end_layout
548
549 \end_inset
550
551 , \SpecialChar LyX
552  performs further steps:
553 \end_layout
554
555 \begin_layout Itemize
556 Run 
557 \begin_inset Flex Code
558 status collapsed
559
560 \begin_layout Plain Layout
561 dvips
562 \end_layout
563
564 \end_inset
565
566  to convert the DVI file to PostScript.
567 \end_layout
568
569 \begin_layout Itemize
570 Run a PostScript viewer, such as 
571 \begin_inset Flex Code
572 status collapsed
573
574 \begin_layout Plain Layout
575 ghostview
576 \end_layout
577
578 \end_inset
579
580 , to display the PostScript file.
581 \end_layout
582
583 \begin_layout Standard
584 \SpecialChar LyX
585  does similar things when viewing, or exporting, other formats.
586 \end_layout
587
588 \begin_layout Section
589 Translating \SpecialChar LaTeX
590  files into \SpecialChar LyX
591
592 \end_layout
593
594 \begin_layout Standard
595 You can import a \SpecialChar LaTeX
596  file into \SpecialChar LyX
597  by using the 
598 \begin_inset Flex Noun
599 status collapsed
600
601 \begin_layout Plain Layout
602 File\SpecialChar menuseparator
603 Import\SpecialChar menuseparator
604 \SpecialChar LaTeX
605
606 \end_layout
607
608 \end_inset
609
610  command in \SpecialChar LyX
611 .
612  This will call a program named 
613 \begin_inset Flex Code
614 status collapsed
615
616 \begin_layout Plain Layout
617 tex2lyx
618 \end_layout
619
620 \end_inset
621
622  which will create a file 
623 \begin_inset Flex Code
624 status collapsed
625
626 \begin_layout Plain Layout
627 foo.lyx
628 \end_layout
629
630 \end_inset
631
632  from the file 
633 \begin_inset Flex Code
634 status collapsed
635
636 \begin_layout Plain Layout
637 foo.tex
638 \end_layout
639
640 \end_inset
641
642 .
643  \SpecialChar LyX
644  will then open that file.
645 \begin_inset Foot
646 status collapsed
647
648 \begin_layout Plain Layout
649 \begin_inset Flex Code
650 status collapsed
651
652 \begin_layout Plain Layout
653 tex2lyx
654 \end_layout
655
656 \end_inset
657
658  can also be run from the command line, of course.
659 \end_layout
660
661 \end_inset
662
663
664 \end_layout
665
666 \begin_layout Standard
667 \begin_inset Flex Code
668 status collapsed
669
670 \begin_layout Plain Layout
671 tex2lyx
672 \end_layout
673
674 \end_inset
675
676  will translate most legal \SpecialChar LaTeX
677 , but not everything.
678  It will put things it doesn't understand into \SpecialChar TeX
679  code, so after translating
680  a file with 
681 \begin_inset Flex Code
682 status collapsed
683
684 \begin_layout Plain Layout
685 tex2lyx
686 \end_layout
687
688 \end_inset
689
690 , you can look for \SpecialChar TeX
691  code and hand-edit it until it looks right.
692 \end_layout
693
694 \begin_layout Standard
695 If you don't know what \SpecialChar TeX
696  code is, read the next section.
697 \end_layout
698
699 \begin_layout Section
700 \begin_inset CommandInset label
701 LatexCommand label
702 name "sec:Inserting-TeX-Code"
703
704 \end_inset
705
706 Inserting \SpecialChar TeX
707  Code into \SpecialChar LyX
708  Documents 
709 \end_layout
710
711 \begin_layout Standard
712 Anything you can do in \SpecialChar LaTeX
713  you can do in \SpecialChar LyX
714 , for a very simple reason: You can
715  always insert \SpecialChar TeX
716  code into any \SpecialChar LyX
717  document.
718  \SpecialChar LyX
719  cannot, and will never be able to, display every possible \SpecialChar LaTeX
720  construct.
721  If ever you need to insert \SpecialChar LaTeX
722  commands into your \SpecialChar LyX
723  document, you can use the
724  
725 \begin_inset Flex Code
726 status collapsed
727
728 \begin_layout Plain Layout
729 \SpecialChar TeX
730  Code
731 \end_layout
732
733 \end_inset
734
735  box, which you can insert into your document with 
736 \begin_inset Flex Noun
737 status collapsed
738
739 \begin_layout Plain Layout
740 Insert\SpecialChar menuseparator
741
742 \family sans
743 TeX
744 \family default
745  Code
746 \end_layout
747
748 \end_inset
749
750  or the keyboard shortcut 
751 \begin_inset Info
752 type  "shortcut"
753 arg   "ert-insert"
754 \end_inset
755
756 .
757 \end_layout
758
759 \begin_layout Standard
760 Here's an example of inserting \SpecialChar LaTeX
761  commands in a \SpecialChar LyX
762  document.
763  The code looks like this:
764 \end_layout
765
766 \begin_layout LyX-Code
767
768 \backslash
769 begin{tabular}{ll}
770 \begin_inset Newline newline
771 \end_inset
772
773
774 \backslash
775 begin{minipage}{5cm}
776 \begin_inset Newline newline
777 \end_inset
778
779 This is an example of a minipage environment.
780  You 
781 \begin_inset Newline newline
782 \end_inset
783
784 can put nearly everything in it, even (non-floating) 
785 \begin_inset Newline newline
786 \end_inset
787
788 figures and tables.
789  
790 \begin_inset Newline newline
791 \end_inset
792
793
794 \backslash
795 end{minipage}
796 \begin_inset Newline newline
797 \end_inset
798
799 &
800 \begin_inset Newline newline
801 \end_inset
802
803
804 \backslash
805 begin{minipage}{5cm}
806 \begin_inset Newline newline
807 \end_inset
808
809
810 \backslash
811 begin{verbatim}
812 \begin_inset Newline newline
813 \end_inset
814
815
816 \backslash
817 begin{minipage}{5cm}
818 \begin_inset Newline newline
819 \end_inset
820
821 This ...
822  
823 \begin_inset Newline newline
824 \end_inset
825
826
827 \backslash
828 end{minipage}
829 \begin_inset Newline newline
830 \end_inset
831
832
833 \backslash
834 end{verbatim}
835 \begin_inset Newline newline
836 \end_inset
837
838
839 \backslash
840 end{minipage}
841 \begin_inset Newline newline
842 \end_inset
843
844
845 \backslash
846 end{tabular}
847 \end_layout
848
849 \begin_layout LyX-Code
850
851 \end_layout
852
853 \begin_layout Standard
854 The 
855 \begin_inset Flex Code
856 status collapsed
857
858 \begin_layout Plain Layout
859 \SpecialChar TeX
860  Code
861 \end_layout
862
863 \end_inset
864
865  box containing this text is directly after this paragraph.
866  Those of you reading the manual in \SpecialChar LyX
867  will only see the \SpecialChar TeX
868  code inset.
869  Those reading a printed version of the manuals will see the actual results:
870 \begin_inset VSpace bigskip
871 \end_inset
872
873
874 \end_layout
875
876 \begin_layout Standard
877 \begin_inset ERT
878 status open
879
880 \begin_layout Plain Layout
881
882
883 \backslash
884 begin{tabular}{ll}
885 \end_layout
886
887 \begin_layout Plain Layout
888
889
890 \backslash
891 begin{minipage}{5cm}
892 \end_layout
893
894 \begin_layout Plain Layout
895
896 This is an example of a minipage environment.
897  You can put nearly everything in it, even (non-floating) figures and tables.
898  
899 \end_layout
900
901 \begin_layout Plain Layout
902
903
904 \backslash
905 end{minipage}
906 \end_layout
907
908 \begin_layout Plain Layout
909
910 &
911 \end_layout
912
913 \begin_layout Plain Layout
914
915
916 \backslash
917 begin{minipage}{5cm}
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 begin{verbatim}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929
930 \backslash
931 begin{minipage}{5cm}
932 \end_layout
933
934 \begin_layout Plain Layout
935
936 This ...
937  
938 \end_layout
939
940 \begin_layout Plain Layout
941
942
943 \backslash
944 end{minipage}
945 \end_layout
946
947 \begin_layout Plain Layout
948
949
950 \backslash
951 end{verbatim}
952 \end_layout
953
954 \begin_layout Plain Layout
955
956
957 \backslash
958 end{minipage}
959 \end_layout
960
961 \begin_layout Plain Layout
962
963
964 \backslash
965 end{tabular}
966 \end_layout
967
968 \end_inset
969
970
971 \begin_inset VSpace bigskip
972 \end_inset
973
974
975 \end_layout
976
977 \begin_layout Standard
978 In addition to using \SpecialChar TeX
979  code, you can also create a separate file containing
980  some complex \SpecialChar LaTeX
981  structure and then use 
982 \begin_inset Flex Noun
983 status collapsed
984
985 \begin_layout Plain Layout
986 Insert\SpecialChar menuseparator
987 Child
988 \begin_inset space ~
989 \end_inset
990
991 Document
992 \end_layout
993
994 \end_inset
995
996  to include your file (you should select the type 
997 \begin_inset Flex Code
998 status collapsed
999
1000 \begin_layout Plain Layout
1001 Input
1002 \end_layout
1003
1004 \end_inset
1005
1006 ).
1007  We recommend that you only do this if you have a 
1008 \begin_inset Flex Code
1009 status collapsed
1010
1011 \begin_layout Plain Layout
1012 .tex
1013 \end_layout
1014
1015 \end_inset
1016
1017  file which you 
1018 \emph on
1019 know
1020 \emph default
1021  works already.
1022  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1023  errors.
1024 \end_layout
1025
1026 \begin_layout Standard
1027 There are a few last points to emphasize:
1028 \end_layout
1029
1030 \begin_layout Itemize
1031 \SpecialChar LyX
1032  
1033 \emph on
1034 does not
1035 \emph default
1036  check if your \SpecialChar LaTeX
1037  code is correct.
1038 \end_layout
1039
1040 \begin_layout Itemize
1041 Beware of reinventing the wheel.
1042 \end_layout
1043
1044 \begin_layout Standard
1045 On that last point, \SpecialChar LyX
1046  does have quite a few features tucked into it, and
1047  more are coming.
1048  Be sure to check the manuals to make sure that \SpecialChar LyX
1049  doesn't have such-and-such
1050  feature before you decide you have to do it by hand.
1051  Moreover, there are numerous \SpecialChar LaTeX
1052  packages out there to do all sorts of things,
1053  from labels to envelopes to fancy multipage tables.
1054  Check out 
1055 \begin_inset CommandInset href
1056 LatexCommand href
1057 name "CTAN"
1058 target "http://www.ctan.org/"
1059
1060 \end_inset
1061
1062  for details.
1063 \end_layout
1064
1065 \begin_layout Standard
1066 If you do need to do some wild and fancy things within your document, be
1067  sure to check out a good \SpecialChar LaTeX
1068  book for assistance.
1069  There are a number of them listed in the bibliography of the 
1070 \emph on
1071 User's Guide
1072 \emph default
1073 .
1074 \end_layout
1075
1076 \begin_layout Section
1077 \SpecialChar LyX
1078  and the \SpecialChar LaTeX
1079  Preamble
1080 \end_layout
1081
1082 \begin_layout Subsection
1083 About the \SpecialChar LaTeX
1084  Preamble
1085 \end_layout
1086
1087 \begin_layout Standard
1088 If you already know \SpecialChar LaTeX
1089 , there is no need to explain here what the preamble
1090  is good for.
1091  If you don't, the following will give you some ideas—we recommend again
1092  that you consult a \SpecialChar LaTeX
1093  book for further information.
1094  In any case, you should read the points below, because they explain what
1095  you can do and what you don't need to do in the \SpecialChar LaTeX
1096  preamble of a \SpecialChar LyX
1097  document.
1098 \end_layout
1099
1100 \begin_layout Standard
1101 The \SpecialChar LaTeX
1102  preamble comes at the very beginning of a document, 
1103 \emph on
1104 before
1105 \emph default
1106  the text.
1107  It serves to:
1108 \end_layout
1109
1110 \begin_layout Itemize
1111 Declare the document class.
1112  
1113 \begin_inset Newline newline
1114 \end_inset
1115
1116 \SpecialChar LyX
1117  already does this for you.
1118  If you're a seasoned \SpecialChar LaTeX
1119 -nician, and you have a custom document class you
1120  want to use, check out the 
1121 \emph on
1122 Customization Manual
1123 \emph default
1124  for information on how to make \SpecialChar LyX
1125  interface to it.
1126 \end_layout
1127
1128 \begin_layout Itemize
1129 Declare the usage of packages.
1130  
1131 \begin_inset Newline newline
1132 \end_inset
1133
1134 \SpecialChar LaTeX
1135  packages provide special commands, which are only available within a document
1136  when the package has been declared in the preamble.
1137  In addition to providing special commands, the inclusion of a package can
1138  change the document.
1139  For example, the package 
1140 \begin_inset Flex Code
1141 status collapsed
1142
1143 \begin_layout Plain Layout
1144 indentfirst
1145 \end_layout
1146
1147 \end_inset
1148
1149  forces all paragraphs to be indented.
1150  There are other packages for labels, envelopes, margins, etc.
1151  
1152 \end_layout
1153
1154 \begin_layout Itemize
1155 Set counters, variables, lengths and widths.
1156  
1157 \begin_inset Newline newline
1158 \end_inset
1159
1160 There are several \SpecialChar LaTeX
1161  counters and variables that 
1162 \emph on
1163 must
1164 \emph default
1165  be set globally from within the preamble in order to have the desired effect.
1166  (There are variables that you can set and reset inside the document, too.)
1167  Margins are a good example of something that must be set in the preamble.
1168  Another example is the label format for lists.
1169  You can actually set these just about anywhere, but it's best to do it
1170  just once, inside the preamble.
1171 \end_layout
1172
1173 \begin_layout Itemize
1174 Declare user defined commands (with 
1175 \begin_inset Flex Code
1176 status collapsed
1177
1178 \begin_layout Plain Layout
1179
1180 \backslash
1181 newcommand
1182 \end_layout
1183
1184 \end_inset
1185
1186  or 
1187 \begin_inset Flex Code
1188 status collapsed
1189
1190 \begin_layout Plain Layout
1191
1192 \backslash
1193 renewcommand
1194 \end_layout
1195
1196 \end_inset
1197
1198 ).
1199 \begin_inset Newline newline
1200 \end_inset
1201
1202 These are abbreviations for \SpecialChar LaTeX
1203  commands which appear very often inside a document.
1204  Although the preamble is a good place to declare such commands, they 
1205 \emph on
1206 can
1207 \emph default
1208  be declared anywhere (before they are used for the first time, of course).
1209  This can be useful if there is a lot of raw \SpecialChar LaTeX
1210  code in your document, which
1211  normally should not be the case.
1212 \end_layout
1213
1214 \begin_layout Standard
1215 \SpecialChar LyX
1216  adds its own set of definitions to the preamble of the 
1217 \begin_inset Flex Code
1218 status collapsed
1219
1220 \begin_layout Plain Layout
1221 .tex
1222 \end_layout
1223
1224 \end_inset
1225
1226  file it produces.
1227  This makes \SpecialChar LaTeX
1228  files generated by \SpecialChar LyX
1229  portable.
1230 \end_layout
1231
1232 \begin_layout Subsection
1233 Changing the Preamble
1234 \end_layout
1235
1236 \begin_layout Standard
1237 The commands which \SpecialChar LyX
1238  adds to the preamble of a \SpecialChar LaTeX
1239  file are fixed; you can't
1240  change them without patching \SpecialChar LyX
1241  itself.
1242  You can, however, add your own stuff to the preamble by selecting 
1243 \begin_inset Flex Noun
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 \SpecialChar LaTeX
1248
1249 \begin_inset space ~
1250 \end_inset
1251
1252 Preamble
1253 \end_layout
1254
1255 \end_inset
1256
1257  in the 
1258 \begin_inset Flex Noun
1259 status collapsed
1260
1261 \begin_layout Plain Layout
1262 Document\SpecialChar menuseparator
1263 Settings
1264 \end_layout
1265
1266 \end_inset
1267
1268  dialog.
1269  \SpecialChar LyX
1270  adds anything in the 
1271 \begin_inset Flex Noun
1272 status collapsed
1273
1274 \begin_layout Plain Layout
1275 Preamble
1276 \end_layout
1277
1278 \end_inset
1279
1280  dialog to its own built-in preamble.
1281  Before adding your own declarations in the preamble, you should make sure
1282  that \SpecialChar LyX
1283  doesn't already support what you want to do.
1284  (Remember what we said about reinventing the wheel?) Also, 
1285 \emph on
1286 make sure your preamble code is correct
1287 \emph default
1288 .
1289  \SpecialChar LyX
1290  doesn't check it for you.
1291  If there is an error, you're likely to get an error like 
1292 \begin_inset Quotes eld
1293 \end_inset
1294
1295
1296 \begin_inset Flex Code
1297 status collapsed
1298
1299 \begin_layout Plain Layout
1300 Missing 
1301 \backslash
1302 begin{document}
1303 \end_layout
1304
1305 \end_inset
1306
1307
1308 \begin_inset Quotes erd
1309 \end_inset
1310
1311 .
1312  If you see this error, check your preamble.
1313 \end_layout
1314
1315 \begin_layout Subsection
1316 Examples
1317 \end_layout
1318
1319 \begin_layout Standard
1320 Here are some examples of what you can add to a preamble, and what they
1321  do.
1322 \end_layout
1323
1324 \begin_layout Subsubsection
1325 Example #1: Offsets
1326 \end_layout
1327
1328 \begin_layout Standard
1329 There are two variables under \SpecialChar LaTeX
1330  that control page position: 
1331 \begin_inset Flex Code
1332 status collapsed
1333
1334 \begin_layout Plain Layout
1335
1336 \backslash
1337 hoffset
1338 \end_layout
1339
1340 \end_inset
1341
1342  and 
1343 \begin_inset Flex Code
1344 status collapsed
1345
1346 \begin_layout Plain Layout
1347
1348 \backslash
1349 voffset
1350 \end_layout
1351
1352 \end_inset
1353
1354 .
1355  Their names should be self-explanatory.
1356  These variables are useful if you think for a moment about computer labels.
1357  Sometimes, the size of a print medium and the area of the medium that you
1358  can actually print on aren't the same.
1359  This is where 
1360 \begin_inset Flex Code
1361 status collapsed
1362
1363 \begin_layout Plain Layout
1364
1365 \backslash
1366 hoffset
1367 \end_layout
1368
1369 \end_inset
1370
1371  and 
1372 \begin_inset Flex Code
1373 status collapsed
1374
1375 \begin_layout Plain Layout
1376
1377 \backslash
1378 voffset
1379 \end_layout
1380
1381 \end_inset
1382
1383  come in.
1384 \end_layout
1385
1386 \begin_layout Standard
1387 The default values for 
1388 \begin_inset Flex Code
1389 status collapsed
1390
1391 \begin_layout Plain Layout
1392
1393 \backslash
1394 hoffset
1395 \end_layout
1396
1397 \end_inset
1398
1399  and 
1400 \begin_inset Flex Code
1401 status collapsed
1402
1403 \begin_layout Plain Layout
1404
1405 \backslash
1406 voffset
1407 \end_layout
1408
1409 \end_inset
1410
1411  are both 0
1412 \begin_inset space \thinspace{}
1413 \end_inset
1414
1415 points, i.
1416 \begin_inset space \thinspace{}
1417 \end_inset
1418
1419 e.
1420 \begin_inset space \space{}
1421 \end_inset
1422
1423 the page isn't shifted.
1424  Unfortunately, some DVI drivers always seem to shift the page.
1425  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1426  If you're using \SpecialChar LyX
1427  on a system that you don't personally maintain, and your
1428  sysadmin is a doofus, 
1429 \begin_inset Flex Code
1430 status collapsed
1431
1432 \begin_layout Plain Layout
1433
1434 \backslash
1435 hoffset
1436 \end_layout
1437
1438 \end_inset
1439
1440  and 
1441 \begin_inset Flex Code
1442 status collapsed
1443
1444 \begin_layout Plain Layout
1445
1446 \backslash
1447 voffset
1448 \end_layout
1449
1450 \end_inset
1451
1452  can save the day.
1453  Suppose your left and top margins are always 0.5
1454 \begin_inset space \thinspace{}
1455 \end_inset
1456
1457 inches too big.
1458  You can add this to the preamble:
1459 \end_layout
1460
1461 \begin_layout LyX-Code
1462
1463 \backslash
1464 setlength{
1465 \backslash
1466 hoffset}{-0.5 in}
1467 \end_layout
1468
1469 \begin_layout LyX-Code
1470
1471 \backslash
1472 setlength{
1473 \backslash
1474 voffset}{-0.5 in}
1475 \end_layout
1476
1477 \begin_layout Standard
1478 and your margins should now be correct.
1479 \end_layout
1480
1481 \begin_layout Subsubsection
1482 Example #2: Labels
1483 \end_layout
1484
1485 \begin_layout Standard
1486 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1487  There's a rather nice package, available at your nearest CTAN archive,
1488  for printing sheets of labels: 
1489 \begin_inset Flex Code
1490 status collapsed
1491
1492 \begin_layout Plain Layout
1493 labels.sty
1494 \end_layout
1495
1496 \end_inset
1497
1498 .
1499  Now, your system may not have this package installed by default.
1500  We leave that up to you to check.
1501  You'll also want to read the documentation for it; we're not going to do
1502  that for you.
1503  Since this is an example, however, we'll give you an example of how you
1504  use this package.
1505 \end_layout
1506
1507 \begin_layout Standard
1508 First, make sure you're using the 
1509 \begin_inset Flex Code
1510 status collapsed
1511
1512 \begin_layout Plain Layout
1513 article
1514 \end_layout
1515
1516 \end_inset
1517
1518  document class.
1519  Next, you need to put the following in your preamble:
1520 \end_layout
1521
1522 \begin_layout LyX-Code
1523
1524 \backslash
1525 usepackage{labels}
1526 \end_layout
1527
1528 \begin_layout LyX-Code
1529
1530 \backslash
1531 LabelCols=3
1532 \end_layout
1533
1534 \begin_layout LyX-Code
1535
1536 \backslash
1537 LabelRows=7
1538 \end_layout
1539
1540 \begin_layout LyX-Code
1541
1542 \backslash
1543 LeftBorder=8mm
1544 \end_layout
1545
1546 \begin_layout LyX-Code
1547
1548 \backslash
1549 RightBorder=8mm
1550 \end_layout
1551
1552 \begin_layout LyX-Code
1553
1554 \backslash
1555 TopBorder=9mm
1556 \end_layout
1557
1558 \begin_layout LyX-Code
1559
1560 \backslash
1561 BottomBorder=2mm
1562 \end_layout
1563
1564 \begin_layout Standard
1565 This sets things up for Avery label sheets, stock #5360.
1566  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1567  code, placing
1568  the commands 
1569 \begin_inset Flex Code
1570 status collapsed
1571
1572 \begin_layout Plain Layout
1573
1574 \backslash
1575 begin{labels}
1576 \end_layout
1577
1578 \end_inset
1579
1580  and 
1581 \begin_inset Flex Code
1582 status collapsed
1583
1584 \begin_layout Plain Layout
1585
1586 \backslash
1587 end{labels}
1588 \end_layout
1589
1590 \end_inset
1591
1592  around each label text.
1593  This and other special features of 
1594 \begin_inset Flex Code
1595 status collapsed
1596
1597 \begin_layout Plain Layout
1598 labels.sty
1599 \end_layout
1600
1601 \end_inset
1602
1603  are explained in its documentation.
1604 \end_layout
1605
1606 \begin_layout Standard
1607 Someday, someone may write a \SpecialChar LyX
1608  layout file to support this package directly.
1609  Maybe that someone is you.
1610 \end_layout
1611
1612 \begin_layout Subsubsection
1613 Example #3: Paragraph Indentation
1614 \end_layout
1615
1616 \begin_layout Standard
1617 Americans are trained to indent the first line of 
1618 \emph on
1619 every
1620 \emph default
1621  paragraph.
1622  As with all of their other weird quirks, most Americans will whine and
1623  moan until they can have their way and indent the first line of all paragraphs.
1624  (Yes, we're joking.
1625  (We are?) 
1626 \emph on
1627 Yeah
1628 \emph default
1629 , we are.)
1630 \end_layout
1631
1632 \begin_layout Standard
1633 Of course, this behavior isn't standard typography.
1634  In books, you typically only indent the first line of a paragraph 
1635 \emph on
1636 if
1637 \emph default
1638  it follows another one.
1639  The idea behind indenting the first line of a paragraph is to distinguish
1640  neighboring paragraphs from one another.
1641  If there is no previous paragraph—for example, if it follows a figure or
1642  is the first paragraph in a section—then there is no need for indentation.
1643  
1644 \end_layout
1645
1646 \begin_layout Standard
1647 If you're a typical American (we're still joking!), though, you don't care
1648  about such esoteric things; you want your indentation! Add this to the
1649  preamble:
1650 \end_layout
1651
1652 \begin_layout LyX-Code
1653
1654 \backslash
1655 usepackage{indentfirst}
1656 \end_layout
1657
1658 \begin_layout Standard
1659 If your \SpecialChar TeX
1660  distribution isn't braindead, you'll have this package, and all
1661  of your paragraphs will get the indentation the Founding Fathers intended
1662  they should have.
1663 \end_layout
1664
1665 \begin_layout Subsubsection
1666 Example #4: This Document
1667 \end_layout
1668
1669 \begin_layout Standard
1670 You can also check out the preamble of this document to get an idea of some
1671  of the advanced things you can do.
1672 \end_layout
1673
1674 \begin_layout Section
1675 \SpecialChar LyX
1676  and \SpecialChar LaTeX
1677  Errors
1678 \end_layout
1679
1680 \begin_layout Standard
1681 When \SpecialChar LyX
1682  calls \SpecialChar LaTeX
1683 , it tells \SpecialChar LaTeX
1684  to blithely ignore any errors and keep going.
1685  It then uses the logfile from the \SpecialChar LaTeX
1686  run to do a post-mortem.
1687  After analyzing the logfile, \SpecialChar LyX
1688  displays a dialog listing the errors.
1689  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1690  file
1691  where the error occurred.
1692 \begin_inset Foot
1693 status collapsed
1694
1695 \begin_layout Plain Layout
1696 Well, usually.
1697  Analyzing the logfile is a tough job, and \SpecialChar LyX
1698  doesn't always go to the right
1699  line.
1700  There are also cases where \SpecialChar LaTeX
1701  reports the error on one line, but the actual
1702  error is earlier.
1703  This is not unlike forgetting a closing brace in a program: You'll get
1704  an error, but only later.
1705 \end_layout
1706
1707 \end_inset
1708
1709
1710 \end_layout
1711
1712 \begin_layout Standard
1713 Some folks also like to look at the log file directly: It is available from
1714  
1715 \begin_inset Flex Noun
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 Document\SpecialChar menuseparator
1720 Latex
1721 \begin_inset space ~
1722 \end_inset
1723
1724 Log
1725 \end_layout
1726
1727 \end_inset
1728
1729 .
1730  There are some fairly common error messages and warnings.
1731  We'll cover those here.
1732  You should look at a good \SpecialChar LaTeX
1733  book for a complete listing.
1734 \end_layout
1735
1736 \begin_layout Itemize
1737 \begin_inset Flex Code
1738 status collapsed
1739
1740 \begin_layout Plain Layout
1741 \SpecialChar LaTeX
1742  Warning
1743 \end_layout
1744
1745 \end_inset
1746
1747
1748 \begin_inset Newline newline
1749 \end_inset
1750
1751 Anything beginning with these words is a warning message for the purpose
1752  of 
1753 \begin_inset Quotes eld
1754 \end_inset
1755
1756 debugging
1757 \begin_inset Quotes erd
1758 \end_inset
1759
1760  the \SpecialChar LaTeX
1761  code itself.
1762  You'll get messages like this if you added or changed cross-references
1763  or bibliography entries, in which case, \SpecialChar LaTeX
1764  is trying to tell you that you
1765  need to make another run.
1766  You can by-and-large ignore these.
1767 \end_layout
1768
1769 \begin_layout Itemize
1770 \begin_inset Flex Code
1771 status collapsed
1772
1773 \begin_layout Plain Layout
1774 \SpecialChar LaTeX
1775  Font Warning
1776 \end_layout
1777
1778 \end_inset
1779
1780
1781 \begin_inset Newline newline
1782 \end_inset
1783
1784 Another warning message, this time about fonts which \SpecialChar LaTeX
1785  couldn't find.
1786  The rest of the message will often say something about a replacement font
1787  that \SpecialChar LaTeX
1788  used.
1789  You can safely ignore these, too.
1790 \end_layout
1791
1792 \begin_layout Itemize
1793 \begin_inset Flex Code
1794 status collapsed
1795
1796 \begin_layout Plain Layout
1797 Overfull 
1798 \backslash
1799 hbox
1800 \end_layout
1801
1802 \end_inset
1803
1804
1805 \begin_inset Newline newline
1806 \end_inset
1807
1808 \SpecialChar LaTeX
1809  absolutely 
1810 \emph on
1811 loves
1812 \emph default
1813  to spew these out.
1814  They are warnings about lines that were too long and run past the right
1815  margin.
1816  Almost always, this is unnoticeable in the final output.
1817  (It can be just a point or two.) Or, only one or two characters extend past
1818  the margin.
1819  \SpecialChar LaTeX
1820  seems to generate at least one of these messages for just about any document
1821  you write.
1822 \begin_inset Newline newline
1823 \end_inset
1824
1825 You can ignore these messages.
1826  Your eyes will tell you if there's a problem with something that's too
1827  wide; just look at the output.
1828 \begin_inset Foot
1829 status collapsed
1830
1831 \begin_layout Plain Layout
1832 You can also enable the `draft' option in 
1833 \begin_inset Flex Noun
1834 status collapsed
1835
1836 \begin_layout Plain Layout
1837 Document\SpecialChar menuseparator
1838 Settings
1839 \end_layout
1840
1841 \end_inset
1842
1843 , and then \SpecialChar LaTeX
1844  will draw a black box in the margin of lines that are overfull.
1845 \end_layout
1846
1847 \end_inset
1848
1849
1850 \end_layout
1851
1852 \begin_layout Itemize
1853 \begin_inset Flex Code
1854 status collapsed
1855
1856 \begin_layout Plain Layout
1857 Underfull 
1858 \backslash
1859 hbox
1860 \end_layout
1861
1862 \end_inset
1863
1864
1865 \begin_inset Newline newline
1866 \end_inset
1867
1868 Not quite as common as its cousin.
1869  \SpecialChar LaTeX
1870  seems to like to print lines that are a bit too wide as opposed to ones
1871  that are a bit too narrow.
1872  We have no idea why.
1873 \end_layout
1874
1875 \begin_layout Itemize
1876 \begin_inset Flex Code
1877 status collapsed
1878
1879 \begin_layout Plain Layout
1880 Overfull 
1881 \backslash
1882 vbox
1883 \end_layout
1884
1885 \end_inset
1886
1887  and 
1888 \begin_inset Flex Code
1889 status collapsed
1890
1891 \begin_layout Plain Layout
1892 Underfull 
1893 \backslash
1894 vbox
1895 \end_layout
1896
1897 \end_inset
1898
1899
1900 \begin_inset Newline newline
1901 \end_inset
1902
1903 Warnings about troubles breaking the page.
1904  Once again, just look at the output.
1905  Your eyes will tell you where something has gone wrong.
1906 \end_layout
1907
1908 \begin_layout Itemize
1909 \begin_inset Flex Code
1910 status collapsed
1911
1912 \begin_layout Plain Layout
1913 \SpecialChar LaTeX
1914  Error: File 
1915 \begin_inset Quotes els
1916 \end_inset
1917
1918 Xxxx
1919 \begin_inset Quotes ers
1920 \end_inset
1921
1922  not found
1923 \end_layout
1924
1925 \end_inset
1926
1927
1928 \begin_inset Newline newline
1929 \end_inset
1930
1931 The file 
1932 \begin_inset Quotes eld
1933 \end_inset
1934
1935 Xxxx
1936 \begin_inset Quotes erd
1937 \end_inset
1938
1939  isn't installed on this system.
1940  This usually appears because some package your document needs isn't installed.
1941  If you didn't touch the preamble or didn't use the 
1942 \begin_inset Flex Code
1943 status collapsed
1944
1945 \begin_layout Plain Layout
1946
1947 \backslash
1948 usepackage{}
1949 \end_layout
1950
1951 \end_inset
1952
1953  command, then one of the packages \SpecialChar LyX
1954  tried to load is missing.
1955  Use 
1956 \begin_inset Flex Noun
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960 Help\SpecialChar menuseparator
1961 \SpecialChar LaTeX
1962  Configuration
1963 \end_layout
1964
1965 \end_inset
1966
1967  to get a list of packages that \SpecialChar LyX
1968  knows about.
1969  This file is updated whenever you reconfigure \SpecialChar LyX
1970  (using 
1971 \begin_inset Flex Noun
1972 status collapsed
1973
1974 \begin_layout Plain Layout
1975 Tools\SpecialChar menuseparator
1976 Reconfigure
1977 \end_layout
1978
1979 \end_inset
1980
1981 ) and tells you which packages have been detected and what they do.
1982 \begin_inset Newline newline
1983 \end_inset
1984
1985 If you did use the 
1986 \begin_inset Flex Code
1987 status collapsed
1988
1989 \begin_layout Plain Layout
1990
1991 \backslash
1992 usepackage{}
1993 \end_layout
1994
1995 \end_inset
1996
1997  command and the package in question isn't installed, then you'll need to
1998  install it yourself.
1999 \end_layout
2000
2001 \begin_layout Itemize
2002 \begin_inset Flex Code
2003 status collapsed
2004
2005 \begin_layout Plain Layout
2006 \SpecialChar LaTeX
2007  Error: Unknown option
2008 \end_layout
2009
2010 \end_inset
2011
2012
2013 \begin_inset Newline newline
2014 \end_inset
2015
2016 Error messages beginning with this are trying to tell you that you specified
2017  a bad or undefined option to a package.
2018  Check the package's documentation.
2019 \end_layout
2020
2021 \begin_layout Itemize
2022 \begin_inset Flex Code
2023 status collapsed
2024
2025 \begin_layout Plain Layout
2026 Undefined control sequence
2027 \end_layout
2028
2029 \end_inset
2030
2031
2032 \begin_inset Newline newline
2033 \end_inset
2034
2035 If you've inserted \SpecialChar LaTeX
2036  code into your document, but made a typo, you'll get
2037  one of these.
2038  You may have forgotten to load a package.
2039  In any case, this error message usually means that you used an undefined
2040  command.
2041  
2042 \end_layout
2043
2044 \begin_layout Standard
2045 There are other error and warning messages.
2046  Some are self-explanatory.
2047  These are usually \SpecialChar LaTeX
2048  messages.
2049  Others are downright cryptic.
2050  These are usually \SpecialChar TeX
2051  error messages, and we really have 
2052 \emph on
2053 no clue
2054 \emph default
2055  what they mean or how to decipher them.
2056  No-one does.
2057 \end_layout
2058
2059 \begin_layout Standard
2060 There's a general sequence you should follow if you get error messages:
2061 \end_layout
2062
2063 \begin_layout Enumerate
2064 Look at the \SpecialChar LaTeX
2065  code you inserted for typos.
2066 \end_layout
2067
2068 \begin_layout Enumerate
2069 If there are no typos, check that you used the command(s) correctly.
2070 \end_layout
2071
2072 \begin_layout Enumerate
2073 If you get a bunch of error boxes piled up at the very top of the document—and
2074  especially if you see a 
2075 \begin_inset Quotes eld
2076 \end_inset
2077
2078
2079 \begin_inset Flex Code
2080 status collapsed
2081
2082 \begin_layout Plain Layout
2083 Missing 
2084 \backslash
2085 begin{document}
2086 \end_layout
2087
2088 \end_inset
2089
2090
2091 \begin_inset Quotes erd
2092 \end_inset
2093
2094  error—it means that there are errors in the preamble.
2095  Start debugging your preamble.
2096 \end_layout
2097
2098 \begin_layout Enumerate
2099 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2100  code to the
2101  document, the first suspect is your \SpecialChar LaTeX
2102  distribution itself.
2103  Check for missing packages and install them.
2104 \end_layout
2105
2106 \begin_layout Enumerate
2107 Okay, so there are no missing packages.
2108  Did you use any of the fine-tuning options in \SpecialChar LyX
2109 ? Specifically, did you 
2110 \emph on
2111 misuse
2112 \emph default
2113  any of them, like trying to manually insert lots of 
2114 \begin_inset Flex Code
2115 status collapsed
2116
2117 \begin_layout Plain Layout
2118 Protected
2119 \begin_inset space ~
2120 \end_inset
2121
2122 Blanks
2123 \end_layout
2124
2125 \end_inset
2126
2127
2128 \begin_inset Flex Code
2129 status collapsed
2130
2131 \begin_layout Plain Layout
2132 Linebreaks
2133 \end_layout
2134
2135 \end_inset
2136
2137 , or 
2138 \begin_inset Flex Code
2139 status collapsed
2140
2141 \begin_layout Plain Layout
2142 Pagebreaks
2143 \end_layout
2144
2145 \end_inset
2146
2147 ? Did you try to kludge something together with these instead of using the
2148  appropriate paragraph environment?
2149 \end_layout
2150
2151 \begin_layout Enumerate
2152 All right, you didn't use any of the fine-tuning options, you played by
2153  the rules.
2154  Did you try to pull a fancy maneuver? Did you do something funky inside
2155  a table or an equation, like inserting a graphic into a table cell?
2156 \end_layout
2157
2158 \begin_layout Enumerate
2159 Do you have long sections of text where \SpecialChar LaTeX
2160  cannot find a place to break a
2161  line? By default, \SpecialChar LaTeX
2162  is rather strict about how much extra inter-word spacing
2163  it will add in order to break a line.
2164  Preferably, you should rework the paragraph to avoid the problem.
2165 \end_layout
2166
2167 \begin_layout Enumerate
2168 Did you go overboard with the nesting? \SpecialChar LyX
2169  (currently) doesn't check to make
2170  sure you're in the limits for nesting environments.
2171  If you nested a bunch of environments to the 
2172 \begin_inset Formula $17^{\mathrm{th}}$
2173 \end_inset
2174
2175  level, that's the problem.
2176  (The limit in \SpecialChar LaTeX
2177  is five.)
2178 \end_layout
2179
2180 \begin_layout Enumerate
2181 Okay, you didn't get any error messages, but your output looks awful.
2182  If you have a table or figure that's too wide or long for the page, you
2183  need to:
2184 \begin_inset Separator parbreak
2185 \end_inset
2186
2187
2188 \end_layout
2189
2190 \begin_deeper
2191 \begin_layout Enumerate
2192 rescale the figure so it fits.
2193 \end_layout
2194
2195 \begin_layout Enumerate
2196 trim down the table so it fits.
2197 \end_layout
2198
2199 \end_deeper
2200 \begin_layout Enumerate
2201 If something else is wrong with the output, and you didn't try to pull anything
2202  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2203 \end_layout
2204
2205 \begin_layout Standard
2206 If all this doesn't help—well, then 
2207 \emph on
2208 perhaps
2209 \emph default
2210  you might have found a bug in \SpecialChar LyX
2211 \SpecialChar ldots
2212 .
2213 \end_layout
2214
2215 \begin_layout Chapter
2216 Supplemental Tools
2217 \end_layout
2218
2219 \begin_layout Section
2220 Customizing Bibliographies with Bib\SpecialChar TeX
2221
2222 \end_layout
2223
2224 \begin_layout Standard
2225 The most basic information about how to use Bib\SpecialChar TeX
2226  with \SpecialChar LyX
2227  is contained in the
2228  section 
2229 \emph on
2230 Bibliography databases (Bib\SpecialChar TeX
2231 )
2232 \emph default
2233  of the 
2234 \emph on
2235 User's Guide
2236 \emph default
2237 .
2238  The following subsections explain special bibliography features supported
2239  by \SpecialChar LyX
2240 .
2241 \end_layout
2242
2243 \begin_layout Subsection
2244 Alternative Citation Styles
2245 \end_layout
2246
2247 \begin_layout Standard
2248 Standard Bib\SpecialChar TeX
2249  uses numbers (e.
2250 \begin_inset space \thinspace{}
2251 \end_inset
2252
2253 g.
2254 \begin_inset space \space{}
2255 \end_inset
2256
2257
2258 \begin_inset Quotes eld
2259 \end_inset
2260
2261 [12]
2262 \begin_inset Quotes erd
2263 \end_inset
2264
2265 ) to refer to a cited work.
2266  However, in many scientific disciplines, other citation styles are in use.
2267  The most common one is the author-year style (e.
2268 \begin_inset space \thinspace{}
2269 \end_inset
2270
2271 g.
2272 \begin_inset space \space{}
2273 \end_inset
2274
2275
2276 \begin_inset Quotes eld
2277 \end_inset
2278
2279 Knuth 1984a
2280 \begin_inset Quotes erd
2281 \end_inset
2282
2283 ).
2284  \SpecialChar LyX
2285  supports two packages that provide this style, 
2286 \begin_inset Flex Code
2287 status collapsed
2288
2289 \begin_layout Plain Layout
2290 natbib
2291 \end_layout
2292
2293 \end_inset
2294
2295  and 
2296 \begin_inset Flex Code
2297 status collapsed
2298
2299 \begin_layout Plain Layout
2300 jurabib
2301 \end_layout
2302
2303 \end_inset
2304
2305 .
2306  Both packages have their pros and cons, which cannot be listed in detail.
2307  If you only want to have simple author-year (or author-numerical) style,
2308  or if you want to use one of the countless style files for 
2309 \begin_inset Flex Code
2310 status collapsed
2311
2312 \begin_layout Plain Layout
2313 natbib
2314 \end_layout
2315
2316 \end_inset
2317
2318 , then the established 
2319 \begin_inset Flex Code
2320 status collapsed
2321
2322 \begin_layout Plain Layout
2323 natbib
2324 \end_layout
2325
2326 \end_inset
2327
2328  package is probably your choice.
2329  If you need special features like short title references, ibidem etc., you
2330  might consider the 
2331 \begin_inset Flex Code
2332 status collapsed
2333
2334 \begin_layout Plain Layout
2335 jurabib
2336 \end_layout
2337
2338 \end_inset
2339
2340  package.
2341 \end_layout
2342
2343 \begin_layout Standard
2344 The handling of both packages in \SpecialChar LyX
2345  is basically the same.
2346  Go to 
2347 \begin_inset Flex Noun
2348 status collapsed
2349
2350 \begin_layout Plain Layout
2351 Document\SpecialChar menuseparator
2352 Settings
2353 \end_layout
2354
2355 \end_inset
2356
2357  and select under 
2358 \begin_inset Flex Noun
2359 status collapsed
2360
2361 \begin_layout Plain Layout
2362 Bibliography
2363 \end_layout
2364
2365 \end_inset
2366
2367  the option 
2368 \begin_inset Flex Noun
2369 status collapsed
2370
2371 \begin_layout Plain Layout
2372 Natbib
2373 \end_layout
2374
2375 \end_inset
2376
2377  or 
2378 \begin_inset Flex Noun
2379 status collapsed
2380
2381 \begin_layout Plain Layout
2382 Jurabib
2383 \end_layout
2384
2385 \end_inset
2386
2387 .
2388  With both packages, you will get some extra features in the citation dialog
2389  and you can select the style of the reference (
2390 \begin_inset Quotes eld
2391 \end_inset
2392
2393 Knuth 1984
2394 \begin_inset Quotes erd
2395 \end_inset
2396
2397
2398 \begin_inset Quotes eld
2399 \end_inset
2400
2401 Knuth (1984)
2402 \begin_inset Quotes erd
2403 \end_inset
2404
2405
2406 \begin_inset Quotes eld
2407 \end_inset
2408
2409 Knuth, 1984
2410 \begin_inset Quotes erd
2411 \end_inset
2412
2413
2414 \begin_inset Quotes eld
2415 \end_inset
2416
2417 1984
2418 \begin_inset Quotes erd
2419 \end_inset
2420
2421  etc.).
2422  Note that both packages need specifically designed style files.
2423  They both ship their own, but there are lots of additional style files,
2424  and there is even an interactive style file builder
2425 \begin_inset Foot
2426 status collapsed
2427
2428 \begin_layout Plain Layout
2429 See 
2430 \begin_inset Flex URL
2431 status open
2432
2433 \begin_layout Plain Layout
2434
2435 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2436 \end_layout
2437
2438 \end_inset
2439
2440
2441 \end_layout
2442
2443 \end_inset
2444
2445  for 
2446 \begin_inset Flex Code
2447 status collapsed
2448
2449 \begin_layout Plain Layout
2450 natbib
2451 \end_layout
2452
2453 \end_inset
2454
2455 .
2456 \end_layout
2457
2458 \begin_layout Subsection
2459 Sectioned Bibliographies
2460 \end_layout
2461
2462 \begin_layout Standard
2463 Sometimes you might need to divide your bibliography into several sections.
2464  If you are for instance a historian, the possibility to separate sources
2465  and scientific works is most likely a 
2466 \begin_inset Quotes eld
2467 \end_inset
2468
2469 must have
2470 \begin_inset Quotes erd
2471 \end_inset
2472
2473 .
2474  Unfortunately, Bib\SpecialChar TeX
2475  itself does not allow you to do this.
2476  But with the help of some \SpecialChar LaTeX
2477  packages, Bib\SpecialChar TeX
2478  can be extended to fit your needs.
2479 \end_layout
2480
2481 \begin_layout Standard
2482 \SpecialChar LyX
2483  provides native support for one of these packages, 
2484 \family typewriter
2485 bibtopic
2486 \family default
2487 .
2488 \begin_inset Foot
2489 status collapsed
2490
2491 \begin_layout Plain Layout
2492 Available from 
2493 \begin_inset Flex URL
2494 status open
2495
2496 \begin_layout Plain Layout
2497
2498 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2499 \end_layout
2500
2501 \end_inset
2502
2503
2504 \end_layout
2505
2506 \end_inset
2507
2508  The advantage of this package (compared to other packages like 
2509 \family typewriter
2510 multibib
2511 \family default
2512 ) is that you don't need to define new citation commands.
2513  Instead, you need to prepare different bibliographic databases which include
2514  the entries for the different sections of the bibliography.
2515  For example: If you want to divide your bibliography into the sections
2516  
2517 \begin_inset Quotes eld
2518 \end_inset
2519
2520 Sources
2521 \begin_inset Quotes erd
2522 \end_inset
2523
2524  and 
2525 \begin_inset Quotes eld
2526 \end_inset
2527
2528 Scientific works
2529 \begin_inset Quotes erd
2530 \end_inset
2531
2532 , you first need to create two bibliographic databases, e.
2533 \begin_inset space \thinspace{}
2534 \end_inset
2535
2536 g.
2537 \begin_inset space \space{}
2538 \end_inset
2539
2540
2541 \begin_inset Flex Code
2542 status collapsed
2543
2544 \begin_layout Plain Layout
2545 sources.bib
2546 \end_layout
2547
2548 \end_inset
2549
2550  and 
2551 \begin_inset Flex Code
2552 status collapsed
2553
2554 \begin_layout Plain Layout
2555 scientific.bib
2556 \end_layout
2557
2558 \end_inset
2559
2560 .
2561  
2562 \end_layout
2563
2564 \begin_layout Standard
2565 Go to 
2566 \begin_inset Flex Noun
2567 status collapsed
2568
2569 \begin_layout Plain Layout
2570 Document\SpecialChar menuseparator
2571 Settings
2572 \end_layout
2573
2574 \end_inset
2575
2576  and check under 
2577 \begin_inset Flex Noun
2578 status collapsed
2579
2580 \begin_layout Plain Layout
2581 Bibliography
2582 \end_layout
2583
2584 \end_inset
2585
2586  the option 
2587 \begin_inset Flex Noun
2588 status collapsed
2589
2590 \begin_layout Plain Layout
2591 Sectioned bibliography
2592 \end_layout
2593
2594 \end_inset
2595
2596 .
2597  Now you can insert multiple Bib\SpecialChar TeX
2598  bibliographies, one for each section of
2599  your bibliography.
2600  Returning to our example: Insert the Bib\SpecialChar TeX
2601  bibliography 
2602 \begin_inset Flex Code
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 sources.bib
2607 \end_layout
2608
2609 \end_inset
2610
2611  and a second one for the database 
2612 \begin_inset Flex Code
2613 status collapsed
2614
2615 \begin_layout Plain Layout
2616 scientific.bib
2617 \end_layout
2618
2619 \end_inset
2620
2621 .
2622  You are free to use the same or different styles for each section.
2623  Additionally, you can choose if the bibliography section should contain
2624  
2625 \begin_inset Quotes eld
2626 \end_inset
2627
2628 all cited references
2629 \begin_inset Quotes erd
2630 \end_inset
2631
2632  of the specified database(s) (which is the default), 
2633 \begin_inset Quotes eld
2634 \end_inset
2635
2636 all uncited references
2637 \begin_inset Quotes erd
2638 \end_inset
2639
2640  or even 
2641 \begin_inset Quotes eld
2642 \end_inset
2643
2644 all references
2645 \begin_inset Quotes erd
2646 \end_inset
2647
2648 .
2649  This might be useful if you would like to separate your bibliography into
2650  three sections: 
2651 \begin_inset Quotes eld
2652 \end_inset
2653
2654 Cited sources
2655 \begin_inset Quotes erd
2656 \end_inset
2657
2658
2659 \begin_inset Quotes eld
2660 \end_inset
2661
2662 Uncited sources
2663 \begin_inset Quotes erd
2664 \end_inset
2665
2666 , and 
2667 \begin_inset Quotes eld
2668 \end_inset
2669
2670 Scientific works
2671 \begin_inset Quotes erd
2672 \end_inset
2673
2674 .
2675  The titles for the sections can be added as ordinary sections or subsections.
2676  Since 
2677 \begin_inset Flex Code
2678 status collapsed
2679
2680 \begin_layout Plain Layout
2681 bibtopic
2682 \end_layout
2683
2684 \end_inset
2685
2686  removes the bibliography title, you have to manually re-add that, too (as
2687  a chapter* or section*, for instance).
2688 \end_layout
2689
2690 \begin_layout Subsection
2691 Multiple Bibliographies
2692 \end_layout
2693
2694 \begin_layout Standard
2695 Multiple bibliographies, e.
2696 \begin_inset space \thinspace{}
2697 \end_inset
2698
2699 g.
2700 \begin_inset space \space{}
2701 \end_inset
2702
2703 a bibliography for each section or chapter of the document, are not supported
2704  by Bib\SpecialChar TeX
2705  itself.
2706  But the 
2707 \begin_inset Flex Code
2708 status collapsed
2709
2710 \begin_layout Plain Layout
2711 bibtopic
2712 \end_layout
2713
2714 \end_inset
2715
2716  package, which is used for the creation of sectioned bibliographies in
2717  \SpecialChar LyX
2718  (see the previous section), provides an easy way to solve this task, if
2719  you are willing to use some 
2720 \begin_inset Flex Noun
2721 status collapsed
2722
2723 \begin_layout Plain Layout
2724 \SpecialChar TeX
2725  Code
2726 \end_layout
2727
2728 \end_inset
2729
2730  (see section
2731 \begin_inset space ~
2732 \end_inset
2733
2734
2735 \begin_inset CommandInset ref
2736 LatexCommand ref
2737 reference "sec:Inserting-TeX-Code"
2738
2739 \end_inset
2740
2741 ).
2742 \begin_inset Foot
2743 status collapsed
2744
2745 \begin_layout Plain Layout
2746 An alternative approach is to use the 
2747 \begin_inset Flex Code
2748 status collapsed
2749
2750 \begin_layout Plain Layout
2751 chapterbib
2752 \end_layout
2753
2754 \end_inset
2755
2756  or 
2757 \begin_inset Flex Code
2758 status collapsed
2759
2760 \begin_layout Plain Layout
2761 bibunits
2762 \end_layout
2763
2764 \end_inset
2765
2766  package, respectively.
2767 \end_layout
2768
2769 \end_inset
2770
2771
2772 \end_layout
2773
2774 \begin_layout Standard
2775 First go to 
2776 \begin_inset Flex Noun
2777 status collapsed
2778
2779 \begin_layout Plain Layout
2780 Document\SpecialChar menuseparator
2781 Settings
2782 \end_layout
2783
2784 \end_inset
2785
2786  and under 
2787 \begin_inset Flex Noun
2788 status collapsed
2789
2790 \begin_layout Plain Layout
2791 Bibliography
2792 \end_layout
2793
2794 \end_inset
2795
2796  check 
2797 \begin_inset Flex Noun
2798 status collapsed
2799
2800 \begin_layout Plain Layout
2801 Sectioned bibliography
2802 \end_layout
2803
2804 \end_inset
2805
2806 .
2807  In the document, you have to enclose the sections, which shall contain
2808  their own bibliography (including the Bib\SpecialChar TeX
2809  bibliography itself), between
2810  
2811 \begin_inset Flex Code
2812 status collapsed
2813
2814 \begin_layout Plain Layout
2815
2816 \backslash
2817 begin{btUnit}
2818 \end_layout
2819
2820 \end_inset
2821
2822  and 
2823 \begin_inset Flex Code
2824 status collapsed
2825
2826 \begin_layout Plain Layout
2827
2828 \backslash
2829 end{btUnit}
2830 \end_layout
2831
2832 \end_inset
2833
2834  (those commands have to be inserted as \SpecialChar TeX
2835  code).
2836  The bibliography will contain all references that have been cited in the
2837  current 
2838 \begin_inset Flex Code
2839 status collapsed
2840
2841 \begin_layout Plain Layout
2842 btUnit
2843 \end_layout
2844
2845 \end_inset
2846
2847 .
2848  
2849 \series bold
2850 Note:
2851 \series default
2852  If you are using this approach, then every citation reference has to be
2853  inside some 
2854 \begin_inset Flex Code
2855 status collapsed
2856
2857 \begin_layout Plain Layout
2858 btUnit
2859 \end_layout
2860
2861 \end_inset
2862
2863 .
2864  Also, the 
2865 \begin_inset Flex Code
2866 status collapsed
2867
2868 \begin_layout Plain Layout
2869 btUnit
2870 \end_layout
2871
2872 \end_inset
2873
2874 s cannot be nested.
2875 \end_layout
2876
2877 \begin_layout Section
2878 Multipart Documents
2879 \end_layout
2880
2881 \begin_layout Subsection
2882 General Operation
2883 \end_layout
2884
2885 \begin_layout Standard
2886 When you are working on a large file with many sections, it is often convenient
2887  to break up the document into several files, or perhaps you have something
2888  where a table may change from time to time, but the preceding text does
2889  not.
2890  In these cases, you should seriously consider using multipart documents.
2891  For example, scientific papers often have five major sections: the introduction
2892 , observations, results, discussion, and conclusion.
2893  Each of these could be its own separate \SpecialChar LyX
2894  file, with one 
2895 \begin_inset Quotes eld
2896 \end_inset
2897
2898 master
2899 \begin_inset Quotes erd
2900 \end_inset
2901
2902  file which contains the title, authors, abstract, references, etc., plus
2903  the five included files.
2904  It is important to note that each of these files is a full \SpecialChar LyX
2905  file which
2906  can be formatted and printed on its own, as well as included in a master
2907  file.
2908  Each of these files must have the same document class, however—don't attempt
2909  to mix book classes with article classes.
2910  You may also include \SpecialChar LaTeX
2911  files; however, these files must not have their own
2912  preamble (i.
2913 \begin_inset space \thinspace{}
2914 \end_inset
2915
2916 e.
2917 \begin_inset space \space{}
2918 \end_inset
2919
2920 everything up to and including the 
2921 \begin_inset Flex Code
2922 status collapsed
2923
2924 \begin_layout Plain Layout
2925
2926 \backslash
2927 begin{document}
2928 \end_layout
2929
2930 \end_inset
2931
2932  line as well as the 
2933 \begin_inset Flex Code
2934 status collapsed
2935
2936 \begin_layout Plain Layout
2937
2938 \backslash
2939 end{document}
2940 \end_layout
2941
2942 \end_inset
2943
2944  line must be deleted) or else errors will be generated when you try to
2945  make a DVI file.
2946 \end_layout
2947
2948 \begin_layout Standard
2949 \SpecialChar LyX
2950  allows you to include files quite easily with 
2951 \begin_inset Flex Noun
2952 status collapsed
2953
2954 \begin_layout Plain Layout
2955 Insert\SpecialChar menuseparator
2956 ChiId
2957 \begin_inset space ~
2958 \end_inset
2959
2960 Document
2961 \end_layout
2962
2963 \end_inset
2964
2965 .
2966  When you click on this selection a small box is inserted into the file
2967  at the current cursor location.
2968  Clicking on the box raises a dialog which allows you to select the file
2969  to be included, and the method of its inclusion.
2970  
2971 \end_layout
2972
2973 \begin_layout Standard
2974 The file selection box should by now be obvious.
2975  The three inclusion methods are 
2976 \begin_inset Quotes eld
2977 \end_inset
2978
2979 include
2980 \begin_inset Quotes erd
2981 \end_inset
2982
2983
2984 \begin_inset Quotes eld
2985 \end_inset
2986
2987 input
2988 \begin_inset Quotes erd
2989 \end_inset
2990
2991 , and 
2992 \begin_inset Quotes eld
2993 \end_inset
2994
2995 verbatim
2996 \begin_inset Quotes erd
2997 \end_inset
2998
2999 .
3000  The difference between 
3001 \begin_inset Quotes eld
3002 \end_inset
3003
3004 include
3005 \begin_inset Quotes erd
3006 \end_inset
3007
3008  and 
3009 \begin_inset Quotes eld
3010 \end_inset
3011
3012 input
3013 \begin_inset Quotes erd
3014 \end_inset
3015
3016  is really only meaningful to \SpecialChar LaTeX
3017 perts, but the practical difference is that
3018  files that are 
3019 \begin_inset Quotes eld
3020 \end_inset
3021
3022 included
3023 \begin_inset Quotes erd
3024 \end_inset
3025
3026  are typeset beginning on a new page, while files that are 
3027 \begin_inset Quotes eld
3028 \end_inset
3029
3030 inputted
3031 \begin_inset Quotes erd
3032 \end_inset
3033
3034  are typeset starting on the current page.
3035 \end_layout
3036
3037 \begin_layout Standard
3038 Generally, the master file is converted into a full \SpecialChar LaTeX
3039  file before typesetting,
3040  while the included files are converted to \SpecialChar LaTeX
3041  files that do not have all the
3042  preamble information.
3043 \end_layout
3044
3045 \begin_layout Standard
3046
3047 \begin_inset Quotes eld
3048 \end_inset
3049
3050 verbatim
3051 \begin_inset Quotes erd
3052 \end_inset
3053
3054  included file allows you to include a file typeset exactly as it appears
3055  in the file, i.
3056 \begin_inset space \thinspace{}
3057 \end_inset
3058
3059 e.
3060 \begin_inset space \space{}
3061 \end_inset
3062
3063 in 
3064 \begin_inset Flex Code
3065 status collapsed
3066
3067 \begin_layout Plain Layout
3068 verbatim
3069 \end_layout
3070
3071 \end_inset
3072
3073  mode, with the characters set in a fixed-width typewriter font.
3074  Normally, spaces in this file are invisible, though two consecutive spaces
3075  are conserved, unlike \SpecialChar LyX
3076 's normal treatment of spaces.
3077  However, setting the 
3078 \begin_inset Flex Noun
3079 status collapsed
3080
3081 \begin_layout Plain Layout
3082 Mark
3083 \begin_inset space ~
3084 \end_inset
3085
3086 spaces
3087 \begin_inset space ~
3088 \end_inset
3089
3090 in
3091 \begin_inset space ~
3092 \end_inset
3093
3094 output
3095 \end_layout
3096
3097 \end_inset
3098
3099  checkbox typesets a mark to unambiguously define the presence of a space.
3100  
3101 \end_layout
3102
3103 \begin_layout Subsection
3104 Cross-References Between Files
3105 \end_layout
3106
3107 \begin_layout Standard
3108 \begin_inset Box Shadowbox
3109 position "t"
3110 hor_pos "c"
3111 has_inner_box 1
3112 inner_pos "t"
3113 use_parbox 0
3114 use_makebox 0
3115 width "100col%"
3116 special "none"
3117 height "1in"
3118 height_special "totalheight"
3119 thickness "0.4pt"
3120 separation "3pt"
3121 shadowsize "4pt"
3122 framecolor "black"
3123 backgroundcolor "none"
3124 status open
3125
3126 \begin_layout Plain Layout
3127 This section is somewhat out of date.
3128  Need to describe default master documents and how children are opened when
3129  the master is.
3130  [[FIXME]]
3131 \end_layout
3132
3133 \end_inset
3134
3135
3136 \end_layout
3137
3138 \begin_layout Standard
3139 It is possible to set up cross-references between the different files.
3140  First, open all the files in question: let's call them A and B in a two
3141  file example, where B is included in A.
3142  Let's say you insert a label in A, then want to reference it in B.
3143  Open the cross-reference dialog whilst in document B, and you can select
3144  the 
3145 \begin_inset Quotes eld
3146 \end_inset
3147
3148 buffer
3149 \begin_inset Quotes erd
3150 \end_inset
3151
3152  to use.
3153 \end_layout
3154
3155 \begin_layout Subsection
3156 Bibliography Lists in all Subdocuments
3157 \end_layout
3158
3159 \begin_layout Standard
3160 \begin_inset Box Frameless
3161 position "t"
3162 hor_pos "c"
3163 has_inner_box 1
3164 inner_pos "t"
3165 use_parbox 0
3166 use_makebox 0
3167 width "100col%"
3168 special "none"
3169 height "1in"
3170 height_special "totalheight"
3171 thickness "0.4pt"
3172 separation "3pt"
3173 shadowsize "4pt"
3174 framecolor "black"
3175 backgroundcolor "none"
3176 status open
3177
3178 \begin_layout Plain Layout
3179 This section also needs updating.
3180  There is now material about this on the wiki, and it could be copied here.
3181 \end_layout
3182
3183 \end_inset
3184
3185
3186 \end_layout
3187
3188 \begin_layout Standard
3189 Copy the bibliography list with all entries to all subdocuments and transform
3190  them to a comment.
3191  This way \SpecialChar LyX
3192  will find the 
3193 \begin_inset Flex Code
3194 status collapsed
3195
3196 \begin_layout Plain Layout
3197 .bib
3198 \end_layout
3199
3200 \end_inset
3201
3202 -files and you can easily insert references without making the bibliography
3203  list visible.
3204 \end_layout
3205
3206 \begin_layout Standard
3207 As the bibliography list is in a comment, \SpecialChar LaTeX
3208  won't use it and the references
3209  will look like this: [?], instead of like this: [1].
3210  One solution is to use the \SpecialChar LaTeX
3211 -package 
3212 \begin_inset Flex Code
3213 status collapsed
3214
3215 \begin_layout Plain Layout
3216 comment
3217 \end_layout
3218
3219 \end_inset
3220
3221  that will only include comments by processing the files separately.
3222  To do this, add in the \SpecialChar LaTeX
3223  preamble of every subdocument the following:
3224 \end_layout
3225
3226 \begin_layout LyX-Code
3227
3228 \backslash
3229 usepackage{comment}
3230 \end_layout
3231
3232 \begin_layout LyX-Code
3233
3234 \backslash
3235 includecomment{comment}
3236 \end_layout
3237
3238 \begin_layout Standard
3239 See also 
3240 \begin_inset Flex URL
3241 status collapsed
3242
3243 \begin_layout Plain Layout
3244
3245 http://wiki.lyx.org/FAQ/Unsorted#toc31
3246 \end_layout
3247
3248 \end_inset
3249
3250 .
3251 \end_layout
3252
3253 \begin_layout Section
3254 \SpecialChar LyX
3255  Archives
3256 \end_layout
3257
3258 \begin_layout Standard
3259 Users sometimes need to be able to 
3260 \begin_inset Quotes eld
3261 \end_inset
3262
3263 bundle
3264 \begin_inset Quotes erd
3265 \end_inset
3266
3267  a \SpecialChar LyX
3268  file together with all the images (and other files) on which it depends,
3269  either for sending to a publisher or for sharing with a co-author.
3270  \SpecialChar LyX
3271  2.0 includes a Python script (
3272 \begin_inset Flex Code
3273 status collapsed
3274
3275 \begin_layout Plain Layout
3276 lyxpak.py
3277 \end_layout
3278
3279 \end_inset
3280
3281 ) that automates this process.
3282  To use it, you must have either the 
3283 \begin_inset Flex Code
3284 status collapsed
3285
3286 \begin_layout Plain Layout
3287 zipfile
3288 \end_layout
3289
3290 \end_inset
3291
3292  or 
3293 \begin_inset Flex Code
3294 status collapsed
3295
3296 \begin_layout Plain Layout
3297 tarfile
3298 \end_layout
3299
3300 \end_inset
3301
3302  python modules installed on your system.
3303  By default, the script prefers the 
3304 \begin_inset Flex Code
3305 status collapsed
3306
3307 \begin_layout Plain Layout
3308 gzip
3309 \end_layout
3310
3311 \end_inset
3312
3313 -compressed 
3314 \begin_inset Flex Code
3315 status collapsed
3316
3317 \begin_layout Plain Layout
3318 tar
3319 \end_layout
3320
3321 \end_inset
3322
3323  format on Unix-like systems and the 
3324 \begin_inset Flex Code
3325 status collapsed
3326
3327 \begin_layout Plain Layout
3328 zip
3329 \end_layout
3330
3331 \end_inset
3332
3333  format on Windows.
3334 \end_layout
3335
3336 \begin_layout Standard
3337 \SpecialChar LyX
3338 's configuration process will set the script up to export a `\SpecialChar LyX
3339  Archive',
3340  and this format will then be available under 
3341 \begin_inset Flex Code
3342 status collapsed
3343
3344 \begin_layout Plain Layout
3345 File\SpecialChar menuseparator
3346 Export
3347 \end_layout
3348
3349 \end_inset
3350
3351 .
3352 \end_layout
3353
3354 \begin_layout Standard
3355 Independently of the platform, the generation of a particular archive format
3356  can be forced by adding either the 
3357 \begin_inset Flex Code
3358 status collapsed
3359
3360 \begin_layout Plain Layout
3361 -t
3362 \end_layout
3363
3364 \end_inset
3365
3366  (for the 
3367 \begin_inset Flex Code
3368 status collapsed
3369
3370 \begin_layout Plain Layout
3371 tar
3372 \end_layout
3373
3374 \end_inset
3375
3376  format) or 
3377 \begin_inset Flex Code
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 -z
3382 \end_layout
3383
3384 \end_inset
3385
3386  (for the 
3387 \begin_inset Flex Code
3388 status collapsed
3389
3390 \begin_layout Plain Layout
3391 zip
3392 \end_layout
3393
3394 \end_inset
3395
3396  format) switch to the 
3397 \begin_inset Flex Code
3398 status collapsed
3399
3400 \begin_layout Plain Layout
3401 \SpecialChar LyX
3402 \SpecialChar menuseparator
3403 \SpecialChar LyX
3404  Archive
3405 \end_layout
3406
3407 \end_inset
3408
3409  converter in 
3410 \begin_inset Flex Code
3411 status collapsed
3412
3413 \begin_layout Plain Layout
3414 Tools\SpecialChar menuseparator
3415 Preferences\SpecialChar menuseparator
3416 File Handling\SpecialChar menuseparator
3417 Converters
3418 \end_layout
3419
3420 \end_inset
3421
3422 .
3423  (Make sure you add the switch after the script name, not before it.)
3424 \end_layout
3425
3426 \begin_layout Section
3427 Fancy Headers and Footers
3428 \end_layout
3429
3430 \begin_layout Standard
3431 The default page layout is rather plain; for an 
3432 \begin_inset Flex Code
3433 status collapsed
3434
3435 \begin_layout Plain Layout
3436 article
3437 \end_layout
3438
3439 \end_inset
3440
3441  document class, all you get is a centered page number at the bottom of
3442  the page.
3443  This document uses KOMA-script's book class, so it appears to be a bit
3444  fancier.
3445  But to really put on a show, you need to set the document page style to
3446  
3447 \begin_inset Quotes eld
3448 \end_inset
3449
3450 fancy
3451 \begin_inset Quotes erd
3452 \end_inset
3453
3454 , as mentioned in the 
3455 \emph on
3456 User Guide
3457 \emph default
3458 .
3459  This section describes the \SpecialChar LaTeX
3460  code you need to insert in your \SpecialChar LaTeX
3461  preamble in
3462  order to get the desired effects.
3463 \end_layout
3464
3465 \begin_layout Standard
3466 For more information on fancy headers, see the 
3467 \begin_inset Flex Code
3468 status collapsed
3469
3470 \begin_layout Plain Layout
3471 fancyhdr
3472 \end_layout
3473
3474 \end_inset
3475
3476  package documentation.
3477  (
3478 \begin_inset Flex URL
3479 status collapsed
3480
3481 \begin_layout Plain Layout
3482
3483 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3484 \end_layout
3485
3486 \end_inset
3487
3488 )
3489 \end_layout
3490
3491 \begin_layout Standard
3492 The page header is divided into three fields, not surprisingly labeled 
3493 \begin_inset Quotes eld
3494 \end_inset
3495
3496 left
3497 \begin_inset Quotes erd
3498 \end_inset
3499
3500
3501 \begin_inset Quotes eld
3502 \end_inset
3503
3504 center
3505 \begin_inset Quotes erd
3506 \end_inset
3507
3508 , and 
3509 \begin_inset Quotes eld
3510 \end_inset
3511
3512 right
3513 \begin_inset Quotes erd
3514 \end_inset
3515
3516 .
3517  The footer is also divided into these three fields.
3518  The \SpecialChar LaTeX
3519  commands to set these fields in the simplest manner are 
3520 \begin_inset Flex Code
3521 status collapsed
3522
3523 \begin_layout Plain Layout
3524
3525 \backslash
3526 lhead
3527 \end_layout
3528
3529 \end_inset
3530
3531
3532 \begin_inset Flex Code
3533 status collapsed
3534
3535 \begin_layout Plain Layout
3536
3537 \backslash
3538 chead
3539 \end_layout
3540
3541 \end_inset
3542
3543
3544 \begin_inset Flex Code
3545 status collapsed
3546
3547 \begin_layout Plain Layout
3548
3549 \backslash
3550 rhead
3551 \end_layout
3552
3553 \end_inset
3554
3555
3556 \begin_inset Flex Code
3557 status collapsed
3558
3559 \begin_layout Plain Layout
3560
3561 \backslash
3562 lfoot
3563 \end_layout
3564
3565 \end_inset
3566
3567 , etc.
3568  Suppose you wish to put your name in the upper left hand corner of each
3569  page.
3570  Simply insert the following command in the preamble: 
3571 \end_layout
3572
3573 \begin_layout Standard
3574
3575 \family typewriter
3576
3577 \backslash
3578 lhead{John Q.
3579  DocWriter}
3580 \end_layout
3581
3582 \begin_layout Standard
3583 You will now see your name in the upper left.
3584  If a field has a default entry that you would like to get rid of (often
3585  the page number appears in the central footer) simply include a command
3586  with a blank argument, e.
3587 \begin_inset space \thinspace{}
3588 \end_inset
3589
3590 g.:
3591 \end_layout
3592
3593 \begin_layout Standard
3594
3595 \family typewriter
3596
3597 \backslash
3598 cfoot{}
3599 \end_layout
3600
3601 \begin_layout Standard
3602 Let's get really fancy: lets put the section number with the word 
3603 \begin_inset Quotes eld
3604 \end_inset
3605
3606 Section
3607 \begin_inset Quotes erd
3608 \end_inset
3609
3610  (e.
3611 \begin_inset space \thinspace{}
3612 \end_inset
3613
3614 g.
3615 \begin_inset space \space{}
3616 \end_inset
3617
3618 Section 3) in the upper left, the page number (e.
3619 \begin_inset space \thinspace{}
3620 \end_inset
3621
3622 g.
3623 \begin_inset space \space{}
3624 \end_inset
3625
3626 Page 4) in the upper right, your name in the lower left, and the date in
3627  the lower right.
3628  The following commands should now appear in the preamble:
3629 \end_layout
3630
3631 \begin_layout Standard
3632
3633 \family typewriter
3634
3635 \backslash
3636 lhead{Section 
3637 \backslash
3638 thesection}
3639 \end_layout
3640
3641 \begin_layout Standard
3642
3643 \family typewriter
3644
3645 \backslash
3646 chead{}
3647 \end_layout
3648
3649 \begin_layout Standard
3650
3651 \family typewriter
3652
3653 \backslash
3654 rhead{Page 
3655 \backslash
3656 thepage}
3657 \end_layout
3658
3659 \begin_layout Standard
3660
3661 \family typewriter
3662
3663 \backslash
3664 lfoot{John Q.
3665  DocWriter}
3666 \end_layout
3667
3668 \begin_layout Standard
3669
3670 \family typewriter
3671
3672 \backslash
3673 cfoot{}
3674 \end_layout
3675
3676 \begin_layout Standard
3677
3678 \family typewriter
3679
3680 \backslash
3681 rfoot{
3682 \backslash
3683 today}
3684 \end_layout
3685
3686 \begin_layout Standard
3687 The commands 
3688 \begin_inset Flex Code
3689 status collapsed
3690
3691 \begin_layout Plain Layout
3692
3693 \backslash
3694 thesection
3695 \end_layout
3696
3697 \end_inset
3698
3699  and 
3700 \begin_inset Flex Code
3701 status collapsed
3702
3703 \begin_layout Plain Layout
3704
3705 \backslash
3706 thepage
3707 \end_layout
3708
3709 \end_inset
3710
3711  access \SpecialChar LaTeX
3712 's section and page counters, and so print out the current section
3713  and page numbers.
3714  
3715 \begin_inset Flex Code
3716 status collapsed
3717
3718 \begin_layout Plain Layout
3719
3720 \backslash
3721 today
3722 \end_layout
3723
3724 \end_inset
3725
3726  simply prints out today's date.
3727 \end_layout
3728
3729 \begin_layout Standard
3730 The thicknesses of the horizontal rules drawn beneath the header and above
3731  the footer can also be modified.
3732  If you don't want one of the rules, set its thickness to 0.
3733  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3734  Use commands
3735 \family typewriter
3736  
3737 \family default
3738 like 
3739 \begin_inset Flex Code
3740 status collapsed
3741
3742 \begin_layout Plain Layout
3743
3744 \backslash
3745 renewcommand{
3746 \backslash
3747 headrulewidth}{0.4pt}
3748 \end_layout
3749
3750 \end_inset
3751
3752  and 
3753 \begin_inset Flex Code
3754 status collapsed
3755
3756 \begin_layout Plain Layout
3757
3758 \backslash
3759 renewcommand{
3760 \backslash
3761 footrulewidth}{0.4pt}
3762 \end_layout
3763
3764 \end_inset
3765
3766  to set the thicknesses.
3767 \end_layout
3768
3769 \begin_layout Standard
3770 You can switch the header/footer settings on and off for individual pages
3771  using commands like 
3772 \begin_inset Flex Code
3773 status collapsed
3774
3775 \begin_layout Plain Layout
3776
3777 \backslash
3778 thispagestyle{empty}
3779 \end_layout
3780
3781 \end_inset
3782
3783
3784 \begin_inset Flex Code
3785 status collapsed
3786
3787 \begin_layout Plain Layout
3788
3789 \backslash
3790 thispagestyle{plain}
3791 \end_layout
3792
3793 \end_inset
3794
3795 , and 
3796 \begin_inset Flex Code
3797 status collapsed
3798
3799 \begin_layout Plain Layout
3800
3801 \backslash
3802 thispagestyle{fancy}
3803 \end_layout
3804
3805 \end_inset
3806
3807 .
3808  Simply insert them in the text on the page you want changed and mark them
3809  as \SpecialChar TeX
3810  code.
3811  In fact, title pages are marked as plain by default, while following pages
3812  are marked fancy when using the global fancy setting.
3813 \end_layout
3814
3815 \begin_layout Standard
3816 As a final example, it is possible to include an image in the header or
3817  footer.
3818  Suppose you want to put a company logo in the upper lefthand corner.
3819  You might try something like
3820 \end_layout
3821
3822 \begin_layout Standard
3823
3824 \family typewriter
3825
3826 \backslash
3827 lhead{
3828 \backslash
3829 resizebox{1in}{!}{
3830 \backslash
3831 includegraphics{logo.eps}}}
3832 \end_layout
3833
3834 \begin_layout Standard
3835 \noindent
3836 (you may need to preface this with 
3837 \begin_inset Flex Code
3838 status collapsed
3839
3840 \begin_layout Plain Layout
3841 \noindent
3842
3843 \backslash
3844 usepackage{graphics}
3845 \end_layout
3846
3847 \end_inset
3848
3849  if you don't include graphics elsewhere in your document).
3850 \end_layout
3851
3852 \begin_layout Section
3853 Itemize Bullet Selection
3854 \begin_inset CommandInset label
3855 LatexCommand label
3856 name "sec:bullet"
3857
3858 \end_inset
3859
3860
3861 \end_layout
3862
3863 \begin_layout Standard
3864 by
3865 \noun on
3866  Allan Rae
3867 \end_layout
3868
3869 \begin_layout Subsection
3870 Introduction
3871 \end_layout
3872
3873 \begin_layout Standard
3874 \SpecialChar LyX
3875  provides 216 bullet shapes that can be accessed from a simple dialog.
3876  Using this dialog you can easily specify what bullet shape to use at each
3877  level of an itemized list.
3878  These settings are document-wide so you won't be able to specify different
3879  sets of bullets for different paragraphs.
3880 \begin_inset Foot
3881 status collapsed
3882
3883 \begin_layout Plain Layout
3884 Well, actually you can but you'll have to do it by hand.
3885 \end_layout
3886
3887 \end_inset
3888
3889
3890 \end_layout
3891
3892 \begin_layout Subsection
3893 How it looks
3894 \end_layout
3895
3896 \begin_layout Standard
3897 Open the dialog by selecting the 
3898 \begin_inset Flex Noun
3899 status collapsed
3900
3901 \begin_layout Plain Layout
3902 Document\SpecialChar menuseparator
3903 Settings
3904 \end_layout
3905
3906 \end_inset
3907
3908  menu item and then select the 
3909 \begin_inset Flex Noun
3910 status collapsed
3911
3912 \begin_layout Plain Layout
3913 Bullets
3914 \end_layout
3915
3916 \end_inset
3917
3918  tab.
3919 \end_layout
3920
3921 \begin_layout Standard
3922 The dialog provides you with a table of bullet shapes.
3923  A column of buttons on the left of the table provides access to the six
3924  different panels of bullet shapes.
3925  The row of buttons across the top is used to select which bullet depth
3926  you are changing.
3927  A text entry under the table shows the currently selected bullet shape's
3928  \SpecialChar LaTeX
3929  equivalent and this can be edited if desired.
3930  If you do modify the text you will also need to specify any needed packages
3931  in the \SpecialChar LaTeX
3932  preamble.
3933 \end_layout
3934
3935 \begin_layout Standard
3936 The six panels are divided up by the packages they require.
3937  The following table shows the mappings from button name to \SpecialChar LaTeX
3938  package.
3939 \begin_inset Separator parbreak
3940 \end_inset
3941
3942
3943 \end_layout
3944
3945 \begin_layout Standard
3946 \align center
3947 \begin_inset Tabular
3948 <lyxtabular version="3" rows="7" columns="2">
3949 <features tabularvalignment="middle">
3950 <column alignment="center" valignment="top" width="0pt">
3951 <column alignment="center" valignment="top" width="0pt">
3952 <row>
3953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3954 \begin_inset Text
3955
3956 \begin_layout Plain Layout
3957
3958 \family roman
3959 \series medium
3960 \shape up
3961 \size normal
3962 \emph off
3963 \bar no
3964 \noun off
3965 \color none
3966 Button
3967 \end_layout
3968
3969 \end_inset
3970 </cell>
3971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3972 \begin_inset Text
3973
3974 \begin_layout Plain Layout
3975
3976 \family roman
3977 \series medium
3978 \shape up
3979 \size normal
3980 \emph off
3981 \bar no
3982 \noun off
3983 \color none
3984 Packages Required
3985 \end_layout
3986
3987 \end_inset
3988 </cell>
3989 </row>
3990 <row>
3991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3992 \begin_inset Text
3993
3994 \begin_layout Plain Layout
3995
3996 \family sans
3997 \series medium
3998 \shape up
3999 \size normal
4000 \emph off
4001 \bar no
4002 \noun off
4003 \color none
4004 Standard
4005 \end_layout
4006
4007 \end_inset
4008 </cell>
4009 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4010 \begin_inset Text
4011
4012 \begin_layout Plain Layout
4013
4014 \series medium
4015 \shape up
4016 \size normal
4017 \emph off
4018 \bar no
4019 \noun off
4020 \color none
4021 base \SpecialChar LaTeX
4022
4023 \end_layout
4024
4025 \end_inset
4026 </cell>
4027 </row>
4028 <row>
4029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4030 \begin_inset Text
4031
4032 \begin_layout Plain Layout
4033
4034 \family sans
4035 \series medium
4036 \shape up
4037 \size normal
4038 \emph off
4039 \bar no
4040 \noun off
4041 \color none
4042 Maths
4043 \end_layout
4044
4045 \end_inset
4046 </cell>
4047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4048 \begin_inset Text
4049
4050 \begin_layout Plain Layout
4051
4052 \family typewriter
4053 \series medium
4054 \shape up
4055 \size normal
4056 \emph off
4057 \bar no
4058 \noun off
4059 \color none
4060 amssymb.sty
4061 \end_layout
4062
4063 \end_inset
4064 </cell>
4065 </row>
4066 <row>
4067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4068 \begin_inset Text
4069
4070 \begin_layout Plain Layout
4071
4072 \family sans
4073 \series medium
4074 \shape up
4075 \size normal
4076 \emph off
4077 \bar no
4078 \noun off
4079 \color none
4080 Ding1
4081 \end_layout
4082
4083 \end_inset
4084 </cell>
4085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4086 \begin_inset Text
4087
4088 \begin_layout Plain Layout
4089
4090 \family typewriter
4091 \series medium
4092 \shape up
4093 \size normal
4094 \emph off
4095 \bar no
4096 \noun off
4097 \color none
4098 pifont.sty
4099 \end_layout
4100
4101 \end_inset
4102 </cell>
4103 </row>
4104 <row>
4105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4106 \begin_inset Text
4107
4108 \begin_layout Plain Layout
4109
4110 \family sans
4111 \series medium
4112 \shape up
4113 \size normal
4114 \emph off
4115 \bar no
4116 \noun off
4117 \color none
4118 Ding2
4119 \end_layout
4120
4121 \end_inset
4122 </cell>
4123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4124 \begin_inset Text
4125
4126 \begin_layout Plain Layout
4127
4128 \family typewriter
4129 \series medium
4130 \shape up
4131 \size normal
4132 \emph off
4133 \bar no
4134 \noun off
4135 \color none
4136 pifont.sty
4137 \end_layout
4138
4139 \end_inset
4140 </cell>
4141 </row>
4142 <row>
4143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4144 \begin_inset Text
4145
4146 \begin_layout Plain Layout
4147
4148 \family sans
4149 \series medium
4150 \shape up
4151 \size normal
4152 \emph off
4153 \bar no
4154 \noun off
4155 \color none
4156 Ding3
4157 \end_layout
4158
4159 \end_inset
4160 </cell>
4161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4162 \begin_inset Text
4163
4164 \begin_layout Plain Layout
4165
4166 \family typewriter
4167 \series medium
4168 \shape up
4169 \size normal
4170 \emph off
4171 \bar no
4172 \noun off
4173 \color none
4174 pifont.sty
4175 \end_layout
4176
4177 \end_inset
4178 </cell>
4179 </row>
4180 <row>
4181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4182 \begin_inset Text
4183
4184 \begin_layout Plain Layout
4185
4186 \family sans
4187 \series medium
4188 \shape up
4189 \size normal
4190 \emph off
4191 \bar no
4192 \noun off
4193 \color none
4194 Ding4
4195 \end_layout
4196
4197 \end_inset
4198 </cell>
4199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4200 \begin_inset Text
4201
4202 \begin_layout Plain Layout
4203
4204 \family typewriter
4205 \series medium
4206 \shape up
4207 \size normal
4208 \emph off
4209 \bar no
4210 \noun off
4211 \color none
4212 pifont.sty
4213 \end_layout
4214
4215 \end_inset
4216 </cell>
4217 </row>
4218 </lyxtabular>
4219
4220 \end_inset
4221
4222
4223 \end_layout
4224
4225 \begin_layout Standard
4226 \SpecialChar LyX
4227  doesn't stop you using bullets from packages you don't have.
4228  If you get errors from \SpecialChar LaTeX
4229  when you try to view or print the file, then it
4230  is likely you are missing a package.
4231 \begin_inset Foot
4232 status collapsed
4233
4234 \begin_layout Plain Layout
4235 \SpecialChar LyX
4236  doesn't restrict your use since you may be editing locally and exporting
4237  elsewhere.
4238 \end_layout
4239
4240 \end_inset
4241
4242
4243 \end_layout
4244
4245 \begin_layout Subsection
4246 How to use it
4247 \end_layout
4248
4249 \begin_layout Standard
4250 Select which bullet depth you want to change then select the bullet shape
4251  and size.
4252  Any changes will not be visible in \SpecialChar LyX
4253 , but are visible when viewing the document.
4254 \end_layout
4255
4256 \begin_layout Standard
4257 You can reset a bullet shape to the default simply by clicking your right
4258  mouse button on the appropriate bullet depth button.
4259 \begin_inset Foot
4260 status collapsed
4261
4262 \begin_layout Plain Layout
4263 If you 
4264 \emph on
4265 really
4266 \emph default
4267  want to have multiple sets of paragraphs with different sets of bullets
4268  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4269  code.
4270  The bullet selection dialog can help though because it provides you with
4271  the \SpecialChar LaTeX
4272  code for a wide range of bullet shapes.
4273  To make your own custom paragraphs you have the following options:
4274 \end_layout
4275
4276 \begin_layout Plain Layout
4277 \begin_inset ERT
4278 status open
4279
4280 \begin_layout Plain Layout
4281
4282
4283 \backslash
4284 let
4285 \backslash
4286 savelabelitemi=
4287 \backslash
4288 labelitemi
4289 \end_layout
4290
4291 \end_inset
4292
4293
4294 \end_layout
4295
4296 \begin_layout Plain Layout
4297 \begin_inset ERT
4298 status open
4299
4300 \begin_layout Plain Layout
4301
4302
4303 \backslash
4304 renewcommand
4305 \backslash
4306 labelitemi[0]{
4307 \backslash
4308 small
4309 \backslash
4310 (
4311 \backslash
4312 sharp
4313 \backslash
4314 )}
4315 \end_layout
4316
4317 \end_inset
4318
4319
4320 \end_layout
4321
4322 \begin_layout Itemize
4323 Use the \SpecialChar LaTeX
4324  command 
4325 \begin_inset Flex Code
4326 status collapsed
4327
4328 \begin_layout Plain Layout
4329
4330 \backslash
4331 renewcommand{}{}
4332 \end_layout
4333
4334 \end_inset
4335
4336  to specify a new bullet shape for a given depth.
4337  You'll also need to save the current bullet shape so you can restore it
4338  again afterwards.
4339  In this itemized list the following \SpecialChar LaTeX
4340  code was used to change the bullet
4341  used for the first depth.
4342 \begin_inset Separator parbreak
4343 \end_inset
4344
4345
4346 \end_layout
4347
4348 \begin_deeper
4349 \begin_layout LyX-Code
4350
4351 \backslash
4352 let
4353 \backslash
4354 savelabelitemi=
4355 \backslash
4356 labelitemi 
4357 \end_layout
4358
4359 \begin_layout LyX-Code
4360
4361 \backslash
4362 renewcommand
4363 \backslash
4364 labelitemi[0]{
4365 \backslash
4366 small
4367 \backslash
4368 (
4369 \backslash
4370 sharp
4371 \backslash
4372 )}
4373 \end_layout
4374
4375 \end_deeper
4376 \begin_layout Itemize
4377 Note that the itemize depth is specified in Roman numerals as part of the
4378  
4379 \family typewriter
4380
4381 \backslash
4382 labelitem
4383 \family default
4384  command.
4385 \end_layout
4386
4387 \begin_layout Itemize
4388 \begin_inset ERT
4389 status open
4390
4391 \begin_layout Plain Layout
4392
4393 [
4394 \backslash
4395 (
4396 \backslash
4397 star
4398 \backslash
4399 )]
4400 \end_layout
4401
4402 \end_inset
4403
4404  Specify each individual entry by starting each item with the bullet shape
4405  enclosed in square brackets and set as 
4406 \begin_inset Flex Noun
4407 status collapsed
4408
4409 \begin_layout Plain Layout
4410 \SpecialChar TeX
4411  Code
4412 \end_layout
4413
4414 \end_inset
4415
4416 .
4417  For example, this item was started with 
4418 \begin_inset Flex Code
4419 status collapsed
4420
4421 \begin_layout Plain Layout
4422 [
4423 \backslash
4424 (
4425 \backslash
4426 star
4427 \backslash
4428 )]
4429 \end_layout
4430
4431 \end_inset
4432
4433 .
4434 \end_layout
4435
4436 \begin_layout Plain Layout
4437 \begin_inset ERT
4438 status open
4439
4440 \begin_layout Plain Layout
4441
4442
4443 \backslash
4444 renewcommand
4445 \backslash
4446 labelitemi[0]{
4447 \backslash
4448 savelabelitemi}
4449 \end_layout
4450
4451 \end_inset
4452
4453
4454 \end_layout
4455
4456 \begin_layout Plain Layout
4457 You'll also need to revert the labelitem back to its previous setting for
4458  the global bullet shape settings to remain in effect.
4459  The way used here was:
4460 \end_layout
4461
4462 \begin_layout LyX-Code
4463
4464 \backslash
4465 renewcommand
4466 \backslash
4467 labelitemi[0]{
4468 \backslash
4469 savelabelitemi}
4470 \end_layout
4471
4472 \end_inset
4473
4474
4475 \end_layout
4476
4477 \begin_layout Chapter
4478 \SpecialChar LyX
4479  and the World Wide Web
4480 \end_layout
4481
4482 \begin_layout Standard
4483 \SpecialChar LyX
4484  has long supported the export of documents to various web-friendly formats,
4485  such as HTML.
4486  Before verson 2.0, however, HTML export was always accomplished by the use
4487  of external converters.
4488 \begin_inset Foot
4489 status collapsed
4490
4491 \begin_layout Plain Layout
4492 For details on the use of external converters with \SpecialChar LyX
4493 , see the 
4494 \emph on
4495 Converters
4496 \emph default
4497  section of the Customization manual.
4498 \end_layout
4499
4500 \end_inset
4501
4502  These fall into two large groups: there are converters that use \SpecialChar LaTeX
4503  as an
4504  intermediate format, such as 
4505 \begin_inset Flex Code
4506 status collapsed
4507
4508 \begin_layout Plain Layout
4509 htlatex
4510 \end_layout
4511
4512 \end_inset
4513
4514
4515 \begin_inset Flex Code
4516 status collapsed
4517
4518 \begin_layout Plain Layout
4519 html2latex
4520 \end_layout
4521
4522 \end_inset
4523
4524 , and 
4525 \begin_inset Flex Code
4526 status collapsed
4527
4528 \begin_layout Plain Layout
4529 plastex
4530 \end_layout
4531
4532 \end_inset
4533
4534 , relying upon \SpecialChar LyX
4535  to produce the \SpecialChar LaTeX
4536 ; and there is a converter that works directly
4537  on \SpecialChar LyX
4538  files, 
4539 \begin_inset Flex Code
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543 e\SpecialChar LyX
4544 er
4545 \end_layout
4546
4547 \end_inset
4548
4549 .
4550  All of these have different advantages and disadvantages.
4551  
4552 \end_layout
4553
4554 \begin_layout Standard
4555 The \SpecialChar LaTeX
4556 -based converters have the advantage that, in principle, they know everythin
4557 g about the exported document that \SpecialChar LaTeX
4558  does.
4559  Such converters do not care, for example, if a certain block of code was
4560  produced by \SpecialChar LyX
4561  or was Evil Red Text.
4562  These converters know about 
4563 \begin_inset Flex Code
4564 status collapsed
4565
4566 \begin_layout Plain Layout
4567 aux
4568 \end_layout
4569
4570 \end_inset
4571
4572  files, counters, and references, and can often make use of the 
4573 \begin_inset Flex Code
4574 status collapsed
4575
4576 \begin_layout Plain Layout
4577 bbl
4578 \end_layout
4579
4580 \end_inset
4581
4582  files generated by Bib\SpecialChar TeX
4583 .
4584  On the other hand, \SpecialChar LaTeX
4585  is a very hard language to parse—it is sometimes said
4586  that only \SpecialChar TeX
4587  itself understands \SpecialChar TeX
4588 —and \SpecialChar LaTeX
4589 -based converters will often choke on
4590  what seem to be quite simple constructs; complex ones can throw them completely
4591 , and as of this writing, for example, the 
4592 \emph on
4593 Embedded Objects
4594 \emph default
4595  manual will not export with 
4596 \begin_inset Flex Code
4597 status collapsed
4598
4599 \begin_layout Plain Layout
4600 htlatex
4601 \end_layout
4602
4603 \end_inset
4604
4605 , though the others will.
4606  The other issue concerns how math is handled.
4607  These converters typically convert the formulae into little pictures that
4608  are then linked from the HTML document.
4609  Since these are actually generated by \SpecialChar LaTeX
4610 , they are accurate.
4611  But they do not scale well, and just getting them to look as if they are
4612  actually meant to be in your document—so that the font sizes seem to be
4613  roughly the same—can be a challenge.
4614 \end_layout
4615
4616 \begin_layout Standard
4617 Alex Fernandez's 
4618 \begin_inset Flex Code
4619 status collapsed
4620
4621 \begin_layout Plain Layout
4622 e\SpecialChar LyX
4623 er
4624 \end_layout
4625
4626 \end_inset
4627
4628  (
4629 \begin_inset CommandInset href
4630 LatexCommand href
4631 name "http://elyxer.nongnu.org/"
4632 target "http://elyxer.nongnu.org/"
4633
4634 \end_inset
4635
4636 ) solves some of these problems.
4637  In particular, the formulae it produces scale perfectly, since it renders
4638  math using a combination of HTML and CSS rather than converting the formulae
4639  to images.
4640  But even moderately complex formula are rendered less well than with 
4641 \begin_inset Flex Code
4642 status collapsed
4643
4644 \begin_layout Plain Layout
4645 htlatex
4646 \end_layout
4647
4648 \end_inset
4649
4650 ; this reflects the limitations of HTML.
4651 \begin_inset Foot
4652 status collapsed
4653
4654 \begin_layout Plain Layout
4655 That said, 
4656 \begin_inset Flex Code
4657 status collapsed
4658
4659 \begin_layout Plain Layout
4660 e\SpecialChar LyX
4661 er
4662 \end_layout
4663
4664 \end_inset
4665
4666  can also use jsMath and MathJax for equations, but this setting is only
4667  available globally and requires one to have access to a server that runs
4668  the backend.
4669 \end_layout
4670
4671 \end_inset
4672
4673  More importantly (as of version 1.1.1, at least), 
4674 \begin_inset Flex Code
4675 status collapsed
4676
4677 \begin_layout Plain Layout
4678 e\SpecialChar LyX
4679 er
4680 \end_layout
4681
4682 \end_inset
4683
4684  has limited support for math macros and no support for user-defined paragraph
4685  or character styles.
4686  These limitations make 
4687 \begin_inset Flex Code
4688 status collapsed
4689
4690 \begin_layout Plain Layout
4691 e\SpecialChar LyX
4692 er
4693 \end_layout
4694
4695 \end_inset
4696
4697  unsuitable for many of the documents \SpecialChar LyX
4698  users produce.
4699  In principle, of course, these problems could be solved, but the \SpecialChar LyX
4700  developers
4701  have decided to follow a different path and have made \SpecialChar LyX
4702  itself capable of
4703  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
4704 , DocBook, and plaintext.
4705 \end_layout
4706
4707 \begin_layout Standard
4708 As of this writing, XHTML output remains under development and should probably
4709  be regarded as 
4710 \begin_inset Quotes eld
4711 \end_inset
4712
4713 experimental
4714 \begin_inset Quotes erd
4715 \end_inset
4716
4717 .
4718 \begin_inset Foot
4719 status collapsed
4720
4721 \begin_layout Plain Layout
4722 The file 
4723 \begin_inset Flex Code
4724 status collapsed
4725
4726 \begin_layout Plain Layout
4727 development/HTML.notes
4728 \end_layout
4729
4730 \end_inset
4731
4732 , which can be found in the \SpecialChar LyX
4733  source tree or 
4734 \begin_inset CommandInset href
4735 LatexCommand href
4736 name "accessed online"
4737 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
4738
4739 \end_inset
4740
4741 , usually contains up-to-date information about the state of XHTML output.
4742  See also the list of XHTML bugs on 
4743 \begin_inset CommandInset href
4744 LatexCommand href
4745 name "the bug tracker"
4746 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"
4747
4748 \end_inset
4749
4750 .
4751 \end_layout
4752
4753 \end_inset
4754
4755  Still, the developers have chosen this approach because it has several
4756  potential advantages over the other two.
4757 \end_layout
4758
4759 \begin_layout Standard
4760 These advantages are primarily due to the fact that the XHTML output routines,
4761  since they are part of \SpecialChar LyX
4762 , know everything \SpecialChar LyX
4763  knows about the document being
4764  exported.
4765 \begin_inset Foot
4766 status collapsed
4767
4768 \begin_layout Plain Layout
4769 Another advantage is that, since these routines are internal to \SpecialChar LyX
4770 , they are
4771  immune to changes in \SpecialChar LyX
4772 's file format, or to changes in the semantics of
4773  existing insets.
4774 \end_layout
4775
4776 \end_inset
4777
4778  So they know about the table of contents (as displayed in the outline),
4779  about the counters associated with different paragraph styles, and about
4780  user-defined styles.
4781  The XHTML output routines know what \SpecialChar LyX
4782  knows about internationalization,
4783  too, so they will output 
4784 \begin_inset Quotes eld
4785 \end_inset
4786
4787 Chapter 1
4788 \begin_inset Quotes erd
4789 \end_inset
4790
4791  or 
4792 \begin_inset Quotes eld
4793 \end_inset
4794
4795
4796 \lang ngerman
4797 Kapitel
4798 \lang english
4799  1
4800 \begin_inset Quotes erd
4801 \end_inset
4802
4803 , depending upon the language in effect at the time.
4804  
4805 \end_layout
4806
4807 \begin_layout Standard
4808 Quite generally, the output routines know what \SpecialChar LyX
4809  knows about document layout,
4810  that is, about how the document is to be rendered on screen.
4811  We use this information when we output the document as XHTML.
4812  In particular, \SpecialChar LyX
4813  
4814 \emph on
4815 automatically
4816 \emph default
4817  generates CSS style information corresponding to the layout information
4818  it uses to render the document on screen: if section headings are supposed
4819  to be sans-serif and bold as seen in \SpecialChar LyX
4820 , then (by default) they will be sans-seri
4821 f and bold when viewed in a web browser, too.
4822  And this is true not just for pre-defined styles, like Section, but for
4823  any style, including user-defined styles.
4824  Indeed, the XHTML output routines make no distinction between user-defined
4825  paragraph and character styles and \SpecialChar LyX
4826 's own pre-defined styles: in each case,
4827  everything \SpecialChar LyX
4828  knows about the styles is contained in the layout files.
4829  And much the same is true as regards pre-defined textual insets, such as
4830  footnotes, and various custom insets.
4831  
4832 \end_layout
4833
4834 \begin_layout Standard
4835 The result is that XHTML output can be customized and extended in exactly
4836  the same way \SpecialChar LaTeX
4837  output can be customized and extended: through layout files
4838  and modules.
4839  See chapter five of the 
4840 \emph on
4841 Customization 
4842 \emph default
4843 manual for the details.
4844 \end_layout
4845
4846 \begin_layout Standard
4847 The remainder of this chapter contains more detailed information on XHTML
4848  output, its limitations, and ways to work around those limitations.
4849 \end_layout
4850
4851 \begin_layout Section
4852 Math Output in XHTML
4853 \end_layout
4854
4855 \begin_layout Standard
4856 \SpecialChar LyX
4857  offers four choices for how math is rendered.
4858  These have various advantages and disadvantages:
4859 \end_layout
4860
4861 \begin_layout Itemize
4862 MathML
4863 \begin_inset Newline newline
4864 \end_inset
4865
4866 MathML is a dialect of XML designed specifically for mathematics on the
4867  web, and it typically renders very well in browsers that support it.
4868  The disadvantage is that not all browsers support MathML, and support is
4869  not complete even in the Gecko-based browsers, such as Firefox.
4870 \begin_inset Newline newline
4871 \end_inset
4872
4873 If \SpecialChar LyX
4874  is unable to render a formula as MathML—for example, if the formula
4875  uses the 
4876 \begin_inset Flex Code
4877 status collapsed
4878
4879 \begin_layout Plain Layout
4880 xymatrix
4881 \end_layout
4882
4883 \end_inset
4884
4885  package or ERT—then it will instead output the formula as an image.
4886  
4887 \end_layout
4888
4889 \begin_layout Itemize
4890 HTML
4891 \begin_inset Newline newline
4892 \end_inset
4893
4894 As mentioned above, 
4895 \begin_inset Flex Code
4896 status collapsed
4897
4898 \begin_layout Plain Layout
4899 elyxer
4900 \end_layout
4901
4902 \end_inset
4903
4904  outputs math as HTML, styled by CSS.
4905 \begin_inset Foot
4906 status collapsed
4907
4908 \begin_layout Plain Layout
4909 \SpecialChar LyX
4910  has borrowed some of the CSS for its HTML output from 
4911 \begin_inset Flex Code
4912 status collapsed
4913
4914 \begin_layout Plain Layout
4915 elyxer
4916 \end_layout
4917
4918 \end_inset
4919
4920 .
4921 \end_layout
4922
4923 \end_inset
4924
4925  For simple formulae, this can work quite well, though with more complicated
4926  formulae it tends to break down.
4927  Still, this method has the advantage that it is very widely supported and
4928  so it may be appropriate for documents that contain only a little, fairly
4929  simple math.
4930 \begin_inset Newline newline
4931 \end_inset
4932
4933 If Lyx is unable to render a formula as HTML—for example, if the formula
4934  uses the 
4935 \begin_inset Flex Code
4936 status collapsed
4937
4938 \begin_layout Plain Layout
4939 xymatrix
4940 \end_layout
4941
4942 \end_inset
4943
4944  package or ERT—then it will instead output the formula as an image.
4945  
4946 \end_layout
4947
4948 \begin_layout Itemize
4949 Images
4950 \begin_inset Newline newline
4951 \end_inset
4952
4953 Like 
4954 \begin_inset Flex Code
4955 status collapsed
4956
4957 \begin_layout Plain Layout
4958 htlatex
4959 \end_layout
4960
4961 \end_inset
4962
4963 , \SpecialChar LyX
4964  will output formulae as images, the very same images, in fact, that are
4965  used for instant preview.
4966 \begin_inset Foot
4967 status collapsed
4968
4969 \begin_layout Plain Layout
4970 Instant preview does 
4971 \emph on
4972 not 
4973 \emph default
4974 have to be on for images to be output, however.
4975 \end_layout
4976
4977 \end_inset
4978
4979  The advantage to this method is that the images are simply generated by
4980  \SpecialChar LaTeX
4981 , so they are very accurate.
4982  The disadvantage, as mentioned earlier, is that these are bitmapped images,
4983  so they do not scale terribly well, and one cannot copy them, etc.
4984  (As of this writing, there are also problems about equation numbering.
4985  See 
4986 \begin_inset CommandInset href
4987 LatexCommand href
4988 name "bug 6894"
4989 target "http://www.lyx.org/trac/ticket/6894"
4990
4991 \end_inset
4992
4993 .)
4994 \begin_inset Newline newline
4995 \end_inset
4996
4997 The size of the images can be controlled by setting the 
4998 \begin_inset Quotes eld
4999 \end_inset
5000
5001 Math Images Scaling
5002 \begin_inset Quotes erd
5003 \end_inset
5004
5005  parameter under 
5006 \begin_inset Flex Noun
5007 status collapsed
5008
5009 \begin_layout Plain Layout
5010 Document\SpecialChar menuseparator
5011 Settings\SpecialChar menuseparator
5012 Output
5013 \end_layout
5014
5015 \end_inset
5016
5017 .
5018 \begin_inset Foot
5019 status collapsed
5020
5021 \begin_layout Plain Layout
5022 For those who want to know, this controls the resolution of the image in
5023  dots per inch and is based upon a default of 75 dpi.
5024 \end_layout
5025
5026 \end_inset
5027
5028
5029 \begin_inset Newline newline
5030 \end_inset
5031
5032 If \SpecialChar LyX
5033  for some reason fails to create an image for a formula (e.g., if a required
5034  \SpecialChar LaTeX
5035  package is not installed), then it will fall back to outputing the raw
5036  \SpecialChar LaTeX
5037 .
5038 \end_layout
5039
5040 \begin_layout Itemize
5041 \SpecialChar LaTeX
5042
5043 \begin_inset Newline newline
5044 \end_inset
5045
5046 Finally, \SpecialChar LyX
5047  will happily output math as \SpecialChar LaTeX
5048 .
5049  As well as being the output of last resort, this method can be used with
5050  such tools as 
5051 \begin_inset CommandInset href
5052 LatexCommand href
5053 name "jsMath"
5054 target "http://www.math.union.edu/~dpvc/jsMath/"
5055
5056 \end_inset
5057
5058 , which uses JavaScript to render \SpecialChar LaTeX
5059  embedded in HTML documents.
5060  \SpecialChar LyX
5061  wraps the \SpecialChar LaTeX
5062  in either a 
5063 \begin_inset Flex Code
5064 status collapsed
5065
5066 \begin_layout Plain Layout
5067 span
5068 \end_layout
5069
5070 \end_inset
5071
5072  (for inline formulas) or 
5073 \begin_inset Flex Code
5074 status collapsed
5075
5076 \begin_layout Plain Layout
5077 div
5078 \end_layout
5079
5080 \end_inset
5081
5082  (for displayed formulas) with 
5083 \begin_inset Flex Code
5084 status collapsed
5085
5086 \begin_layout Plain Layout
5087 class='math'
5088 \end_layout
5089
5090 \end_inset
5091
5092 , as is required for jsMath.
5093 \end_layout
5094
5095 \begin_layout Standard
5096 One of these output methods must be selected under 
5097 \begin_inset Flex Noun
5098 status collapsed
5099
5100 \begin_layout Plain Layout
5101 Document\SpecialChar menuseparator
5102 Settings\SpecialChar menuseparator
5103 Output
5104 \end_layout
5105
5106 \end_inset
5107
5108 .
5109  By default, \SpecialChar LyX
5110  outputs MathML.
5111  This is a document-wide setting, therefore.
5112 \end_layout
5113
5114 \begin_layout Standard
5115 Eventually, \SpecialChar LyX
5116  will offer the user the option to select an alternate output
5117  method for a particular inset, say, one that isn't being rendered very
5118  well by MathML.
5119 \begin_inset Foot
5120 status collapsed
5121
5122 \begin_layout Plain Layout
5123 That said, since \SpecialChar LyX
5124  falls back to images if the inset contains ERT, then one
5125  can force output as an image by putting some harmless ERT into the math,
5126  for example: 
5127 \begin_inset Formula $a=b\relax$
5128 \end_inset
5129
5130 .
5131 \end_layout
5132
5133 \end_inset
5134
5135
5136 \end_layout
5137
5138 \begin_layout Section
5139 Bibliography and Citations
5140 \end_layout
5141
5142 \begin_layout Standard
5143 XHTML output fully supports bibliographies and citations.
5144  
5145 \end_layout
5146
5147 \begin_layout Standard
5148 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5149 's on-screen
5150  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5151 , though
5152  better.
5153  If you are using numerical citations, then \SpecialChar LyX
5154  will output numerical labels,
5155  such as [1] or [17], rather than simply showing the citation key in square
5156  brackets, as it does on-screen.
5157  If you are using author-year citations, then \SpecialChar LyX
5158  will add lowercase letters
5159  to the years, just as Bib\SpecialChar TeX
5160  does, if it finds more than one citation for
5161  a given author-year combination.
5162  The labels will be printed with the bibliography entries.
5163  Note that there is, at present, no way to customize the appearance of the
5164  labels, for example, to choose between square brackets and parentheses.
5165 \end_layout
5166
5167 \begin_layout Standard
5168 Bibliography output is handled by the same machinery that handles the presentati
5169 on of reference information in the citation dialog, so you will see in the
5170  XHTML output pretty much what you would see if you were to look at a given
5171  entry in the citation dialog.
5172  The formatting can be customized in your layout file or, preferably, in
5173  a module.
5174  See the 
5175 \emph on
5176 Customization
5177 \emph default
5178  manual for the details.
5179 \end_layout
5180
5181 \begin_layout Standard
5182 The main defect at present is that cross-referenced information is printed
5183  with every entry with which it is associated.
5184  So you can see things like this:
5185 \end_layout
5186
5187 \begin_layout Quote
5188 Jason Stanley, 
5189 \begin_inset Quotes eld
5190 \end_inset
5191
5192 Context and Logical Form
5193 \begin_inset Quotes erd
5194 \end_inset
5195
5196 , in 
5197 \emph on
5198 Language in Context: Selected Essays
5199 \emph default
5200  (Oxford: Oxford University Press, 2007), pp.
5201  30–68.
5202 \end_layout
5203
5204 \begin_layout Quote
5205 Jason Stanley, 
5206 \begin_inset Quotes eld
5207 \end_inset
5208
5209 Semantics in Context
5210 \begin_inset Quotes erd
5211 \end_inset
5212
5213 , in 
5214 \emph on
5215 Language in Context: Selected Essays
5216 \emph default
5217  (Oxford: Oxford University Press, 2007), pp.
5218  201–30.
5219 \end_layout
5220
5221 \begin_layout Standard
5222 This should be fixed before long.
5223 \end_layout
5224
5225 \begin_layout Standard
5226 There is no support at present for sectioned bibliographies.
5227  If you have multiple bibliographies, then \SpecialChar LyX
5228  will print the same bibliography
5229  over and over.
5230 \end_layout
5231
5232 \begin_layout Section
5233 Indexes
5234 \end_layout
5235
5236 \begin_layout Standard
5237 \SpecialChar LyX
5238  will happily export indexes as XHTML, but with certain limitations at the
5239  moment.
5240 \end_layout
5241
5242 \begin_layout Standard
5243 Index export will be most reliable when you do not attempt to use the fancy
5244  constructs that are described in the section on indexes in the 
5245 \emph on
5246 User's Guide
5247 \emph default
5248 .
5249 \begin_inset Foot
5250 status collapsed
5251
5252 \begin_layout Plain Layout
5253 The main issue here is that \SpecialChar LyX
5254  itself does not really handle these.
5255  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5256 .
5257 \end_layout
5258
5259 \end_inset
5260
5261  We'll describe how they are handled using the subsection headings from
5262  that section.
5263 \end_layout
5264
5265 \begin_layout Itemize
5266 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5267  makes an effort to support these,
5268  but the entries must be separated by 
5269 \begin_inset Quotes eld
5270 \end_inset
5271
5272  ! 
5273 \begin_inset Quotes erd
5274 \end_inset
5275
5276 , that is, there must be spaces around the exclamation point.
5277  This is because it is otherwise too difficult to check for escaped exclamation
5278  points, ones in math, and so forth.
5279 \end_layout
5280
5281 \begin_layout Itemize
5282 Page Ranges: There is no support at all for page ranges, since these make
5283  no sense with XHMTL.
5284  Instead, you will just get two index entries, one at either end.
5285 \end_layout
5286
5287 \begin_layout Itemize
5288 Cross-referencing: There is no support for cross-referencing.
5289  If \SpecialChar LyX
5290  finds an entry containing the 
5291 \begin_inset Quotes eld
5292 \end_inset
5293
5294 |see\SpecialChar ldots
5295
5296 \begin_inset Quotes erd
5297 \end_inset
5298
5299  construct, it is just dropped, and the rest is treated as an ordinary index
5300  entry.
5301 \end_layout
5302
5303 \begin_layout Itemize
5304 Index Entry Order: \SpecialChar LyX
5305  does support attempts to fix the sorting order.
5306  It will take what is before the first `@' it finds and use that for sorting,
5307  taking what follows the first `@' to be the actual entry.
5308  At present, \SpecialChar LyX
5309  does not check for escaped `@', so do not try to index email
5310  addresses.
5311 \end_layout
5312
5313 \begin_layout Itemize
5314 Index Entry Layout: You can format entries by using the text style dialog,
5315  or by using any other method available within \SpecialChar LyX
5316  itself.
5317  There is no support for constructs like: 
5318 \begin_inset Quotes eld
5319 \end_inset
5320
5321 entry|textbf
5322 \begin_inset Quotes erd
5323 \end_inset
5324
5325 .
5326  Indeed, if \SpecialChar LyX
5327  finds a pipe symbol, `|', in an entry, it will delete it and
5328  everything that follows it.
5329 \end_layout
5330
5331 \begin_layout Itemize
5332 Multiple Indexes: There is no support for multiple indexes.
5333  Rather, all index entries will be printed as one large index.
5334  To avoid our printing several versions of the index, we print only the
5335  main index, so make sure you have one.
5336 \end_layout
5337
5338 \begin_layout Section
5339 Nomenclature and Glossary
5340 \end_layout
5341
5342 \begin_layout Standard
5343 There is at present no support for glossaries.
5344  Adding it would be fairly trivial, and welcome.
5345 \end_layout
5346
5347 \begin_layout Chapter
5348 The \SpecialChar LyX
5349  Server
5350 \end_layout
5351
5352 \begin_layout Section
5353 Introduction
5354 \end_layout
5355
5356 \begin_layout Standard
5357 The `\SpecialChar LyX
5358  server' allows other programs to talk to \SpecialChar LyX
5359 , invoke \SpecialChar LyX
5360  commands, and retrieve
5361  information about the \SpecialChar LyX
5362  internal state.
5363  This is only intended for advanced users, but they should find it useful.
5364  It is by writing to the \SpecialChar LyX
5365  server, for example, that bibliography managers,
5366  such as JabRef, are able to 
5367 \begin_inset Quotes eld
5368 \end_inset
5369
5370 push
5371 \begin_inset Quotes erd
5372 \end_inset
5373
5374  citations to \SpecialChar LyX
5375 .
5376 \end_layout
5377
5378 \begin_layout Section
5379 Starting the \SpecialChar LyX
5380  Server
5381 \end_layout
5382
5383 \begin_layout Standard
5384 The \SpecialChar LyX
5385  server works through the use of a pair of named pipes.
5386  These are usually located in 
5387 \begin_inset Flex Code
5388 status collapsed
5389
5390 \begin_layout Plain Layout
5391 UserDir
5392 \end_layout
5393
5394 \end_inset
5395
5396 , (except on Windows, where 
5397 \emph on
5398 local
5399 \emph default
5400  named pipes are special objects located in 
5401 \begin_inset Flex Code
5402 status collapsed
5403
5404 \begin_layout Plain Layout
5405
5406 \backslash
5407
5408 \backslash
5409 .
5410 \backslash
5411 pipe
5412 \end_layout
5413
5414 \end_inset
5415
5416 ) and have the names 
5417 \begin_inset Quotes eld
5418 \end_inset
5419
5420
5421 \begin_inset Flex Code
5422 status collapsed
5423
5424 \begin_layout Plain Layout
5425 lyxpipe.in
5426 \end_layout
5427
5428 \end_inset
5429
5430
5431 \begin_inset Quotes erd
5432 \end_inset
5433
5434  and 
5435 \begin_inset Quotes eld
5436 \end_inset
5437
5438
5439 \begin_inset Flex Code
5440 status collapsed
5441
5442 \begin_layout Plain Layout
5443 lyxpipe.out
5444 \end_layout
5445
5446 \end_inset
5447
5448
5449 \begin_inset Quotes erd
5450 \end_inset
5451
5452 .
5453  External programs write into 
5454 \begin_inset Flex Code
5455 status collapsed
5456
5457 \begin_layout Plain Layout
5458 lyxpipe.in
5459 \end_layout
5460
5461 \end_inset
5462
5463  and read back data from 
5464 \begin_inset Flex Code
5465 status collapsed
5466
5467 \begin_layout Plain Layout
5468 lyxpipe.out
5469 \end_layout
5470
5471 \end_inset
5472
5473 .
5474  The stem of the pipe names can be defined in the 
5475 \begin_inset Flex Noun
5476 status collapsed
5477
5478 \begin_layout Plain Layout
5479 Tools\SpecialChar menuseparator
5480 Preferences
5481 \end_layout
5482
5483 \end_inset
5484
5485  dialog, for example 
5486 \begin_inset Flex Code
5487 status collapsed
5488
5489 \begin_layout Plain Layout
5490 "/home/myhome/lyxpipe"
5491 \end_layout
5492
5493 \end_inset
5494
5495 , or 
5496 \begin_inset Flex Code
5497 status collapsed
5498
5499 \begin_layout Plain Layout
5500 "
5501 \backslash
5502
5503 \backslash
5504 .
5505 \backslash
5506 pipe
5507 \backslash
5508 lyxpipe"
5509 \end_layout
5510
5511 \end_inset
5512
5513  on Windows (where any working path instead of lyxpipe can be used, for
5514  example 
5515 \begin_inset Flex Code
5516 status collapsed
5517
5518 \begin_layout Plain Layout
5519 "
5520 \backslash
5521
5522 \backslash
5523 .
5524 \backslash
5525 pipe
5526 \backslash
5527 my
5528 \backslash
5529 lyx
5530 \backslash
5531 pipe"
5532 \end_layout
5533
5534 \end_inset
5535
5536  would also work).
5537  You 
5538 \emph on
5539 must
5540 \emph default
5541  configure this manually in order for the server to start.
5542 \end_layout
5543
5544 \begin_layout Standard
5545 \SpecialChar LyX
5546  will add the '
5547 \begin_inset Flex Code
5548 status collapsed
5549
5550 \begin_layout Plain Layout
5551 .in
5552 \end_layout
5553
5554 \end_inset
5555
5556 ' and '
5557 \begin_inset Flex Code
5558 status collapsed
5559
5560 \begin_layout Plain Layout
5561 .out
5562 \end_layout
5563
5564 \end_inset
5565
5566 ' to create the pipes.
5567  If one of the pipes already exists, \SpecialChar LyX
5568  will assume that another \SpecialChar LyX
5569  process
5570  is already running and will not start the server.
5571  On POSIX (Unix like) systems, if for some other reason, an unused 
5572 \begin_inset Quotes eld
5573 \end_inset
5574
5575 stale
5576 \begin_inset Quotes erd
5577 \end_inset
5578
5579  pipe is left in existence when \SpecialChar LyX
5580  closes, then \SpecialChar LyX
5581  will try to delete it.
5582  If this fails for some reason, you will need to delete the pipes manually
5583  and then restart \SpecialChar LyX
5584 .
5585  On Windows, pipes are deleted by the OS on program termination or crash,
5586  so 
5587 \begin_inset Quotes eld
5588 \end_inset
5589
5590 stale
5591 \begin_inset Quotes erd
5592 \end_inset
5593
5594  pipes should not be possible.
5595 \end_layout
5596
5597 \begin_layout Standard
5598 To have several \SpecialChar LyX
5599  processes with servers at the same time, you have to use
5600  different configurations, perhaps by using separate user directories, each
5601  with its own 
5602 \begin_inset Flex Code
5603 status collapsed
5604
5605 \begin_layout Plain Layout
5606 preferences
5607 \end_layout
5608
5609 \end_inset
5610
5611  file, for each process.
5612 \end_layout
5613
5614 \begin_layout Standard
5615 If you are developing a client program, you might find it useful to enable
5616  debugging information from the \SpecialChar LyX
5617  server.
5618  Do this by starting \SpecialChar LyX
5619  as 
5620 \begin_inset Flex Code
5621 status collapsed
5622
5623 \begin_layout Plain Layout
5624 lyx -dbg lyxserver
5625 \end_layout
5626
5627 \end_inset
5628
5629 .
5630 \end_layout
5631
5632 \begin_layout Standard
5633 You can find a complete example client written in C++ in the source distribution
5634  as 
5635 \begin_inset Flex Code
5636 status collapsed
5637
5638 \begin_layout Plain Layout
5639 development/lyxserver/server_monitor.cpp
5640 \end_layout
5641
5642 \end_inset
5643
5644 .
5645 \end_layout
5646
5647 \begin_layout Standard
5648 Another useful tool is the command-line based client found in 
5649 \begin_inset Flex Code
5650 status collapsed
5651
5652 \begin_layout Plain Layout
5653 src/client/lyxclient
5654 \end_layout
5655
5656 \end_inset
5657
5658 .
5659 \end_layout
5660
5661 \begin_layout Section
5662 Normal communication
5663 \end_layout
5664
5665 \begin_layout Standard
5666 To issue a \SpecialChar LyX
5667  call, the client writes a line of ASCII text into the input
5668  pipe.
5669  This line has the following format:
5670 \end_layout
5671
5672 \begin_layout Quote
5673 LYXCMD:
5674 \emph on
5675 clientname
5676 \emph default
5677 :
5678 \emph on
5679 function
5680 \emph default
5681 :
5682 \emph on
5683 argument
5684 \end_layout
5685
5686 \begin_layout Description
5687 clientname is a name that the client can choose arbitrarily.
5688  Its only use is that \SpecialChar LyX
5689  will echo it if it sends an answer—so a client can
5690  dispatch results from different requesters.
5691 \end_layout
5692
5693 \begin_layout Description
5694 function is the function you want \SpecialChar LyX
5695  to perform.
5696  It is the same as the commands you'd use in the minibuffer.
5697 \end_layout
5698
5699 \begin_layout Description
5700 argument is an optional argument which is meaningful only to some functions
5701  (for instance, the 
5702 \begin_inset Quotes eld
5703 \end_inset
5704
5705 self-insert
5706 \begin_inset Quotes erd
5707 \end_inset
5708
5709  LFUN will insert the argument as text at the cursor position).
5710 \end_layout
5711
5712 \begin_layout Standard
5713 The answer from \SpecialChar LyX
5714  will arrive in the output pipe and be of the form
5715 \end_layout
5716
5717 \begin_layout Quote
5718 INFO:
5719 \emph on
5720 clientname
5721 \emph default
5722 :
5723 \emph on
5724 function
5725 \emph default
5726 :
5727 \emph on
5728 data
5729 \end_layout
5730
5731 \begin_layout Standard
5732 where 
5733 \emph on
5734 clientname
5735 \emph default
5736  and 
5737 \emph on
5738 function
5739 \emph default
5740  are just echoed from the command request, while 
5741 \emph on
5742 data
5743 \emph default
5744  is more or less useful information filled according to how the command
5745  execution worked out.
5746  Some commands, such as 
5747 \begin_inset Quotes eld
5748 \end_inset
5749
5750 font-state
5751 \begin_inset Quotes erd
5752 \end_inset
5753
5754 , will return information about the internal state of \SpecialChar LyX
5755 , while other will
5756  return an empty data-response.
5757  This means that the command execution went fine.
5758 \end_layout
5759
5760 \begin_layout Standard
5761 In case of errors, the response from \SpecialChar LyX
5762  will have this form
5763 \end_layout
5764
5765 \begin_layout Quote
5766 ERROR:
5767 \emph on
5768 clientname
5769 \emph default
5770 :
5771 \emph on
5772 function
5773 \emph default
5774 :
5775 \emph on
5776 error message
5777 \end_layout
5778
5779 \begin_layout Standard
5780 where the 
5781 \emph on
5782 error message
5783 \emph default
5784  should contain an explanation of why the command failed.
5785 \end_layout
5786
5787 \begin_layout Standard
5788 Examples:
5789 \end_layout
5790
5791 \begin_layout LyX-Code
5792 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
5793 \begin_inset Newline newline
5794 \end_inset
5795
5796 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
5797 \begin_inset Newline newline
5798 \end_inset
5799
5800 read a <~/.lyxpipe.out
5801 \begin_inset Newline newline
5802 \end_inset
5803
5804 echo $a
5805 \end_layout
5806
5807 \begin_layout Subsection
5808 AppleScript (Mac OS X)
5809 \end_layout
5810
5811 \begin_layout Standard
5812 Since \SpecialChar LyX
5813  2.1, \SpecialChar LyX
5814  supports basic interactions with AppleScript for normal communicatio
5815 n through the command run.
5816  This command takes a direct argument (the 
5817 \series bold
5818 function
5819 \series default
5820  to perform) and an optional argument.
5821  It either returns the output of the function or triggers an error with
5822  the error message and code.
5823 \end_layout
5824
5825 \begin_layout Standard
5826 Example:
5827 \end_layout
5828
5829 \begin_layout LyX-Code
5830 tell application "\SpecialChar LyX
5831 "
5832 \end_layout
5833
5834 \begin_layout LyX-Code
5835   try
5836 \end_layout
5837
5838 \begin_layout LyX-Code
5839     -- Stores the current file name into f
5840 \end_layout
5841
5842 \begin_layout LyX-Code
5843     set f to (run "server-get-filename" with argument "")
5844 \end_layout
5845
5846 \begin_layout LyX-Code
5847     on error the error_message number the error_number
5848 \end_layout
5849
5850 \begin_layout LyX-Code
5851       display dialog "Error: " & the error_number & ".
5852  " ¬
5853 \end_layout
5854
5855 \begin_layout LyX-Code
5856               & the error_message buttons {"OK"} default button 1
5857 \end_layout
5858
5859 \begin_layout LyX-Code
5860   end try
5861 \end_layout
5862
5863 \begin_layout LyX-Code
5864 end tell
5865 \end_layout
5866
5867 \begin_layout Section
5868 Notification
5869 \end_layout
5870
5871 \begin_layout Standard
5872 \SpecialChar LyX
5873  can notify clients of events going on asynchronously.
5874  Currently it will only do this if the user binds a key sequence with the
5875  function 
5876 \begin_inset Quotes eld
5877 \end_inset
5878
5879 notify
5880 \begin_inset Quotes erd
5881 \end_inset
5882
5883 .
5884  The format of the string \SpecialChar LyX
5885  sends is as follows:
5886 \end_layout
5887
5888 \begin_layout Quote
5889 \begin_inset Flex Code
5890 status collapsed
5891
5892 \begin_layout Plain Layout
5893 NOTIFY:
5894 \end_layout
5895
5896 \end_inset
5897
5898
5899 \emph on
5900 key-sequence
5901 \end_layout
5902
5903 \begin_layout Standard
5904 where 
5905 \emph on
5906 key-sequence
5907 \emph default
5908  is the printed representation of the key sequence that was actually typed
5909  by the user.
5910 \end_layout
5911
5912 \begin_layout Standard
5913 This mechanism can be used to extend \SpecialChar LyX
5914 's command set and implement macros.
5915  Bind some key sequence to 
5916 \begin_inset Quotes eld
5917 \end_inset
5918
5919 notify
5920 \begin_inset Quotes erd
5921 \end_inset
5922
5923 .
5924  Then start a client that listens on the output pipe, dispatches the command
5925  according to the sequence, and starts a function that may use \SpecialChar LyX
5926  calls and
5927  \SpecialChar LyX
5928  requests to issue a command or a series of commands to \SpecialChar LyX
5929 .
5930 \end_layout
5931
5932 \begin_layout Section
5933 The simple \SpecialChar LyX
5934  Server Protocol
5935 \end_layout
5936
5937 \begin_layout Standard
5938 \SpecialChar LyX
5939  implements a simple protocol that can be used for session management.
5940  All messages are of the form
5941 \end_layout
5942
5943 \begin_layout Quote
5944 LYXSRV:
5945 \emph on
5946 clientname
5947 \emph default
5948 :
5949 \emph on
5950 protocol message
5951 \end_layout
5952
5953 \begin_layout Standard
5954 where 
5955 \emph on
5956 protocol message
5957 \emph default
5958  can be 
5959 \begin_inset Quotes eld
5960 \end_inset
5961
5962 hello
5963 \begin_inset Quotes erd
5964 \end_inset
5965
5966  or 
5967 \begin_inset Quotes eld
5968 \end_inset
5969
5970 bye
5971 \begin_inset Quotes erd
5972 \end_inset
5973
5974 .
5975  If 
5976 \begin_inset Quotes eld
5977 \end_inset
5978
5979 hello
5980 \begin_inset Quotes erd
5981 \end_inset
5982
5983  is received from a client, \SpecialChar LyX
5984  will report back to inform the client that
5985  it's listening to it's messages, while 
5986 \begin_inset Quotes eld
5987 \end_inset
5988
5989 bye
5990 \begin_inset Quotes erd
5991 \end_inset
5992
5993  sent from \SpecialChar LyX
5994  will inform clients that \SpecialChar LyX
5995  is closing.
5996 \end_layout
5997
5998 \begin_layout Section
5999 Reverse DVI/PDF search
6000 \end_layout
6001
6002 \begin_layout Standard
6003 Some DVI/PDF viewers
6004 \begin_inset Foot
6005 status collapsed
6006
6007 \begin_layout Plain Layout
6008 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6009  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6010 \end_layout
6011
6012 \end_inset
6013
6014  provide 
6015 \emph on
6016 reverse search
6017 \emph default
6018  facility (also called 
6019 \emph on
6020 inverse search
6021 \emph default
6022 ).
6023  This means that you can tell \SpecialChar LyX
6024  to put the cursor to a specific line in the
6025  document by clicking at the respective position in the DVI/PDF output.
6026  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6027 .
6028  This is done via the \SpecialChar LyX
6029  server either by using the named pipe (
6030 \emph on
6031 lyxpipe
6032 \emph default
6033 ), or the UNIX domain socket (
6034 \emph on
6035 lyxsocket
6036 \emph default
6037 ) that \SpecialChar LyX
6038  creates in its temporary directory (this is the way the 
6039 \begin_inset Flex Code
6040 status collapsed
6041
6042 \begin_layout Plain Layout
6043 lyxclient
6044 \end_layout
6045
6046 \end_inset
6047
6048  program communicates with \SpecialChar LyX
6049 ).
6050  In some cases, you need a helper script that mediates between the viewer
6051  and \SpecialChar LyX
6052 , in others, the viewer can communicate with \SpecialChar LyX
6053  directly.
6054  This depends on the selected viewer and on your operating system.
6055  The same applies to the way viewers need to be configured and the way the
6056  reverse search is actually performed.
6057  In what follows, we will thus describe how to setup reverse search for
6058  specific viewers.
6059  Before we turn to this, though, we will explain what needs to be done generally
6060  to enable reverse search in the DVI/PDF output.
6061 \end_layout
6062
6063 \begin_layout Subsection
6064 Automatic setup
6065 \begin_inset CommandInset label
6066 LatexCommand label
6067 name "subsec:rev-search"
6068
6069 \end_inset
6070
6071
6072 \end_layout
6073
6074 \begin_layout Standard
6075 In most cases \SpecialChar LyX
6076  will do the work for you by enabling the option 
6077 \begin_inset Flex Noun
6078 status collapsed
6079
6080 \begin_layout Plain Layout
6081 Synchronize with Output
6082 \end_layout
6083
6084 \end_inset
6085
6086  in the menu 
6087 \begin_inset Flex Noun
6088 status collapsed
6089
6090 \begin_layout Plain Layout
6091 Document\SpecialChar menuseparator
6092 Settings\SpecialChar menuseparator
6093 Output
6094 \end_layout
6095
6096 \end_inset
6097
6098 .
6099  In such a case \SpecialChar LyX
6100  will automatically insert the necessary Sync\SpecialChar TeX
6101  macro (for
6102  PDF) or load the srcltx package (for DVI) respectively.
6103  This option can be easily reached also on 
6104 \begin_inset Flex Code
6105 status collapsed
6106
6107 \begin_layout Plain Layout
6108 View/Update
6109 \end_layout
6110
6111 \end_inset
6112
6113  Toolbar.
6114 \end_layout
6115
6116 \begin_layout Standard
6117 If you need a different setting, you can select or input a custom macro
6118  from the drop down box just below 
6119 \begin_inset Flex Noun
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 Document\SpecialChar menuseparator
6124 Settings\SpecialChar menuseparator
6125 Output\SpecialChar menuseparator
6126 Synchronize with Output
6127 \end_layout
6128
6129 \end_inset
6130
6131 .
6132 \end_layout
6133
6134 \begin_layout Standard
6135 Note that the method 
6136 \begin_inset Flex Code
6137 status collapsed
6138
6139 \begin_layout Plain Layout
6140
6141 \backslash
6142 synctex=1
6143 \end_layout
6144
6145 \end_inset
6146
6147  enables gzip compression.
6148  If your viewer does not support it, you should instead use 
6149 \begin_inset Flex Code
6150 status collapsed
6151
6152 \begin_layout Plain Layout
6153
6154 \backslash
6155 synctex=-1
6156 \end_layout
6157
6158 \end_inset
6159
6160 .
6161 \end_layout
6162
6163 \begin_layout Standard
6164 Please also note that including the 
6165 \begin_inset Flex Code
6166 status collapsed
6167
6168 \begin_layout Plain Layout
6169 srcltx
6170 \end_layout
6171
6172 \end_inset
6173
6174  package or 
6175 \begin_inset Flex Code
6176 status collapsed
6177
6178 \begin_layout Plain Layout
6179 src-specials
6180 \end_layout
6181
6182 \end_inset
6183
6184  sometimes has an undesired impact on the typesetting.
6185  Thus, you should switch output synchronization off for the final typesetting
6186  if you use the 
6187 \begin_inset Flex Code
6188 status collapsed
6189
6190 \begin_layout Plain Layout
6191 srcltx
6192 \end_layout
6193
6194 \end_inset
6195
6196  package or 
6197 \begin_inset Flex Code
6198 status collapsed
6199
6200 \begin_layout Plain Layout
6201 src-specials
6202 \end_layout
6203
6204 \end_inset
6205
6206 .
6207  
6208 \end_layout
6209
6210 \begin_layout Standard
6211 In case you need some more special settings that are not covered by the
6212  automatic settings, read the next section about how to set up output synchroniz
6213 ation manually.
6214  If the automatic setup suits your needs, you can readily jump to section
6215 \begin_inset space ~
6216 \end_inset
6217
6218
6219 \begin_inset CommandInset ref
6220 LatexCommand ref
6221 reference "subsec:configuring-viewers"
6222
6223 \end_inset
6224
6225 , where the necessary configuration steps in your viewer – needed both with
6226  the automatic and the manual setup – are described.
6227 \end_layout
6228
6229 \begin_layout Subsection
6230 Manual setup
6231 \end_layout
6232
6233 \begin_layout Standard
6234 \SpecialChar LaTeX
6235  provides several different methods for reverse search.
6236  Some are built-in in the 
6237 \begin_inset Flex Code
6238 status collapsed
6239
6240 \begin_layout Plain Layout
6241 latex/pdflatex
6242 \end_layout
6243
6244 \end_inset
6245
6246  program, some are provided by external packages.
6247  Your choice depends on whether your \SpecialChar LaTeX
6248  distribution already provides a given
6249  method (the built-in methods are rather new) and whether your viewer can
6250  cope with it.
6251  The available methods are described in the following.
6252 \end_layout
6253
6254 \begin_layout Subsubsection*
6255 Built-in DVI-search via src-specials (DVI only) 
6256 \end_layout
6257
6258 \begin_layout Standard
6259 This method provides the DVI file with the necessary information for reverse
6260  search.
6261  It is available in \SpecialChar LaTeX
6262  since quite some time (any somewhat recent \SpecialChar LaTeX
6263  distribution
6264  should include it), and it works reliably.
6265  To enable it, change the 
6266 \begin_inset Flex Noun
6267 status collapsed
6268
6269 \begin_layout Plain Layout
6270 La
6271 \family sans
6272 TeX
6273 \family default
6274  (plain)->DVI
6275 \end_layout
6276
6277 \end_inset
6278
6279  or 
6280 \begin_inset Flex Noun
6281 status collapsed
6282
6283 \begin_layout Plain Layout
6284 La
6285 \family sans
6286 TeX
6287 \family default
6288  (plain)->DraftDVI
6289 \end_layout
6290
6291 \end_inset
6292
6293  converter in 
6294 \begin_inset Flex Noun
6295 status collapsed
6296
6297 \begin_layout Plain Layout
6298 Preferences\SpecialChar menuseparator
6299 File Handling\SpecialChar menuseparator
6300 Converters
6301 \end_layout
6302
6303 \end_inset
6304
6305  to 
6306 \begin_inset Flex Code
6307 status collapsed
6308
6309 \begin_layout Plain Layout
6310 latex -src-specials $$i
6311 \end_layout
6312
6313 \end_inset
6314
6315 .
6316  If this doesn't work, check if your \SpecialChar TeX
6317  engine needs different options (the
6318  syntax might differ in some distributions).
6319 \end_layout
6320
6321 \begin_layout Subsubsection*
6322 External Packages (PDFSync and scrltx) 
6323 \end_layout
6324
6325 \begin_layout Standard
6326 The packages 
6327 \emph on
6328 pdfsync
6329 \emph default
6330  and 
6331 \emph on
6332 scrltx
6333 \emph default
6334  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6335  respectively.
6336  In order to enable it, load the packages in the \SpecialChar LyX
6337  preamble: 
6338 \end_layout
6339
6340 \begin_layout Itemize
6341 \begin_inset Flex Code
6342 status collapsed
6343
6344 \begin_layout Plain Layout
6345
6346 \backslash
6347 usepackage{pdfsync}
6348 \end_layout
6349
6350 \end_inset
6351
6352  for reverse PDF search,
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[active]{srcltx}
6363 \end_layout
6364
6365 \end_inset
6366
6367  for reverse DVI search.
6368 \end_layout
6369
6370 \begin_layout Standard
6371 If you want to be able to perform both DVI and PDF reverse searches, you
6372  can also insert in the preamble the following lines
6373 \end_layout
6374
6375 \begin_layout LyX-Code
6376
6377 \backslash
6378 usepackage{ifpdf}
6379 \begin_inset Newline newline
6380 \end_inset
6381
6382
6383 \backslash
6384 ifpdf
6385 \begin_inset Newline newline
6386 \end_inset
6387
6388   
6389 \backslash
6390 usepackage{pdfsync}
6391 \begin_inset Newline newline
6392 \end_inset
6393
6394
6395 \backslash
6396 else
6397 \begin_inset Newline newline
6398 \end_inset
6399
6400   
6401 \backslash
6402 usepackage[active]{srcltx}
6403 \begin_inset Newline newline
6404 \end_inset
6405
6406
6407 \backslash
6408 fi
6409 \end_layout
6410
6411 \begin_layout Standard
6412 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6413  right package will be used.
6414 \end_layout
6415
6416 \begin_layout Standard
6417 Note that PDFSync might affect the output layout of your document.
6418  It is therefore advised to disable PDFsync for final documents.
6419 \end_layout
6420
6421 \begin_layout Subsubsection*
6422 Built-in reverse search via Sync\SpecialChar TeX
6423  (DVI and PDF) 
6424 \end_layout
6425
6426 \begin_layout Standard
6427 Recent versions of 
6428 \begin_inset Flex Code
6429 status collapsed
6430
6431 \begin_layout Plain Layout
6432 (pdf)latex
6433 \end_layout
6434
6435 \end_inset
6436
6437  have built-in support for both PDF and DVI reverse search.
6438  This so-called 
6439 \emph on
6440 Sync\SpecialChar TeX
6441
6442 \emph default
6443  facility is basically the result of the integration of the PDFSync package
6444  to the pdftex program and its merge with the 
6445 \emph on
6446 scr-specials
6447 \emph default
6448  approach.
6449  You need at least \SpecialChar TeX
6450 Live 2008 or a recent Mik\SpecialChar TeX
6451  distribution in order to use
6452  it.
6453 \begin_inset Foot
6454 status collapsed
6455
6456 \begin_layout Plain Layout
6457 For some reason, Mik\SpecialChar TeX
6458  does not understand/obey the command \SpecialChar LyX
6459  inserts into
6460  the preamble when you check the "Enable Forward/Reverse Search" button
6461  in the toolbar and does not generate the necessary info.
6462 \end_layout
6463
6464 \begin_layout Plain Layout
6465 The generation of the required info can be forced by changing the converter
6466  "\SpecialChar LaTeX
6467  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
6468  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
6469  the -synctex=1 switch).
6470 \end_layout
6471
6472 \end_inset
6473
6474  Also note that only a few PDF viewers (Okular and Qpdfview on Unix, Skim
6475  on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
6476  support.
6477 \end_layout
6478
6479 \begin_layout Standard
6480 To enable Sync\SpecialChar TeX
6481  for DVI output, change the 
6482 \begin_inset Flex Noun
6483 status collapsed
6484
6485 \begin_layout Plain Layout
6486 La
6487 \family sans
6488 TeX
6489 \family default
6490  (plain) -> DVI
6491 \end_layout
6492
6493 \end_inset
6494
6495  or 
6496 \begin_inset Flex Noun
6497 status collapsed
6498
6499 \begin_layout Plain Layout
6500 La
6501 \family sans
6502 TeX
6503 \family default
6504  (plain) -> DraftDVI
6505 \end_layout
6506
6507 \end_inset
6508
6509  converter in 
6510 \begin_inset Flex Noun
6511 status collapsed
6512
6513 \begin_layout Plain Layout
6514 Preferences\SpecialChar menuseparator
6515 File Handling\SpecialChar menuseparator
6516 Converters
6517 \end_layout
6518
6519 \end_inset
6520
6521  to 
6522 \begin_inset Flex Code
6523 status collapsed
6524
6525 \begin_layout Plain Layout
6526 latex -synctex=1 $$i
6527 \end_layout
6528
6529 \end_inset
6530
6531 , and for PDF output, change the 
6532 \begin_inset Flex Noun
6533 status collapsed
6534
6535 \begin_layout Plain Layout
6536 La
6537 \family sans
6538 TeX
6539 \family default
6540  (pdflatex) -> PDF (pdflatex)
6541 \end_layout
6542
6543 \end_inset
6544
6545  or converter to 
6546 \begin_inset Flex Code
6547 status collapsed
6548
6549 \begin_layout Plain Layout
6550 pdflatex -synctex=1 $$i
6551 \end_layout
6552
6553 \end_inset
6554
6555 .
6556  Check the documentation of your viewer whether the viewer needs to be configure
6557 d for the use with Sync\SpecialChar TeX
6558 .
6559 \begin_inset Foot
6560 status collapsed
6561
6562 \begin_layout Plain Layout
6563 Note that the option 
6564 \begin_inset Flex Code
6565 status collapsed
6566
6567 \begin_layout Plain Layout
6568 -synctex=1
6569 \end_layout
6570
6571 \end_inset
6572
6573  option enables gzip compression.
6574  If your viewer does not support it, you should instead use 
6575 \begin_inset Flex Code
6576 status collapsed
6577
6578 \begin_layout Plain Layout
6579 -synctex=-1
6580 \end_layout
6581
6582 \end_inset
6583
6584 .
6585 \end_layout
6586
6587 \end_inset
6588
6589
6590 \end_layout
6591
6592 \begin_layout Subsection
6593 Configuring and using specific viewers
6594 \begin_inset CommandInset label
6595 LatexCommand label
6596 name "subsec:configuring-viewers"
6597
6598 \end_inset
6599
6600
6601 \end_layout
6602
6603 \begin_layout Subsubsection*
6604 Xdvi (all platforms)
6605 \end_layout
6606
6607 \begin_layout Standard
6608 If you use 
6609 \begin_inset Flex Code
6610 status collapsed
6611
6612 \begin_layout Plain Layout
6613 xdvi
6614 \end_layout
6615
6616 \end_inset
6617
6618 , you don't need to do anything else for performing a reverse DVI search,
6619  as \SpecialChar LyX
6620  already provides the necessary hooks for automatically using the 
6621 \begin_inset Flex Code
6622 status collapsed
6623
6624 \begin_layout Plain Layout
6625 lyxclient
6626 \end_layout
6627
6628 \end_inset
6629
6630  program.
6631  Just setup your document as described above (reverse search is triggered
6632  by Ctrl-click or Alt-click on Mac OSX, respectively).
6633 \end_layout
6634
6635 \begin_layout Standard
6636 However, if for whatever reason you want to use the named pipe instead of
6637  the socket for communicating with \SpecialChar LyX
6638 , simply change the DVI viewer in 
6639 \begin_inset Flex Noun
6640 status collapsed
6641
6642 \begin_layout Plain Layout
6643 Preferences\SpecialChar menuseparator
6644 File Handling\SpecialChar menuseparator
6645 File formats
6646 \end_layout
6647
6648 \end_inset
6649
6650  to
6651 \begin_inset Foot
6652 status collapsed
6653
6654 \begin_layout Plain Layout
6655 On Mac OSX you have to use 
6656 \begin_inset Flex Code
6657 status collapsed
6658
6659 \begin_layout Plain Layout
6660 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
6661 \end_layout
6662
6663 \end_inset
6664
6665
6666 \end_layout
6667
6668 \end_inset
6669
6670  
6671 \begin_inset Flex Code
6672 status collapsed
6673
6674 \begin_layout Plain Layout
6675 xdvi -editor "lyxeditor.sh %f %l"
6676 \end_layout
6677
6678 \end_inset
6679
6680 , where 
6681 \begin_inset Flex Code
6682 status collapsed
6683
6684 \begin_layout Plain Layout
6685 lyxeditor.sh
6686 \end_layout
6687
6688 \end_inset
6689
6690  is a suitable script.
6691  For example, a minimal shell script is the following one:
6692 \end_layout
6693
6694 \begin_layout LyX-Code
6695 #!/bin/sh
6696 \begin_inset Newline newline
6697 \end_inset
6698
6699 LYXPIPE="/path/to/lyxpipe"
6700 \begin_inset Newline newline
6701 \end_inset
6702
6703 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6704 \begin_inset Newline newline
6705 \end_inset
6706
6707 echo "$COMMAND" > "${LYXPIPE}".in || exit
6708 \begin_inset Newline newline
6709 \end_inset
6710
6711 read TMP < "${LYXPIPE}".out || exit
6712 \end_layout
6713
6714 \begin_layout Standard
6715 where 
6716 \begin_inset Flex Code
6717 status collapsed
6718
6719 \begin_layout Plain Layout
6720 /path/to/lyxpipe
6721 \end_layout
6722
6723 \end_inset
6724
6725  is the Ly
6726 \begin_inset ERT
6727 status collapsed
6728
6729 \begin_layout Plain Layout
6730
6731 {}
6732 \end_layout
6733
6734 \end_inset
6735
6736 XServer pipe path specified in 
6737 \begin_inset Flex Noun
6738 status collapsed
6739
6740 \begin_layout Plain Layout
6741 Preferences\SpecialChar menuseparator
6742 Paths
6743 \end_layout
6744
6745 \end_inset
6746
6747 .
6748 \begin_inset Foot
6749 status collapsed
6750
6751 \begin_layout Plain Layout
6752 In the 
6753 \begin_inset Flex Code
6754 status collapsed
6755
6756 \begin_layout Plain Layout
6757 development/tools
6758 \end_layout
6759
6760 \end_inset
6761
6762  folder of a source distribution you can find a 
6763 \begin_inset Flex Code
6764 status collapsed
6765
6766 \begin_layout Plain Layout
6767 lyxeditor
6768 \end_layout
6769
6770 \end_inset
6771
6772  script which is able to locate the 
6773 \emph on
6774 lyxpipe
6775 \emph default
6776  based on your preferences.
6777 \end_layout
6778
6779 \end_inset
6780
6781
6782 \end_layout
6783
6784 \begin_layout Subsubsection*
6785 MacDviX (Mac OSX)
6786 \end_layout
6787
6788 \begin_layout Standard
6789 At the end of 
6790 \begin_inset Flex Code
6791 status collapsed
6792
6793 \begin_layout Plain Layout
6794 /Applications/MacDviX_Folder/calleditor.script
6795 \end_layout
6796
6797 \end_inset
6798
6799 , add the following lines:
6800 \end_layout
6801
6802 \begin_layout LyX-Code
6803 /Applications/Ly
6804 \begin_inset ERT
6805 status collapsed
6806
6807 \begin_layout Plain Layout
6808
6809 {}
6810 \end_layout
6811
6812 \end_inset
6813
6814 X.app/Contents/MacOS/lyxeditor "$2" $1
6815 \begin_inset Newline newline
6816 \end_inset
6817
6818 exit 1
6819 \end_layout
6820
6821 \begin_layout Standard
6822 Modify the lines accordingly if you install \SpecialChar LyX
6823  somewhere else than in the
6824  Applications folder.
6825 \end_layout
6826
6827 \begin_layout Standard
6828 Reverse search is triggered by Alt-click (OPTION-click).
6829 \end_layout
6830
6831 \begin_layout Subsubsection*
6832 Skim (Mac OSX)
6833 \end_layout
6834
6835 \begin_layout Standard
6836 Enter 
6837 \begin_inset Flex Code
6838 status collapsed
6839
6840 \begin_layout Plain Layout
6841 open -a Skim.app $$i
6842 \end_layout
6843
6844 \end_inset
6845
6846  to the viewer setting in 
6847 \begin_inset Flex Noun
6848 status collapsed
6849
6850 \begin_layout Plain Layout
6851 Preferences\SpecialChar menuseparator
6852 File Handling\SpecialChar menuseparator
6853 File formats\SpecialChar menuseparator
6854 PDF (pdflatex)
6855 \end_layout
6856
6857 \end_inset
6858
6859 , and then in 
6860 \begin_inset Flex Noun
6861 status collapsed
6862
6863 \begin_layout Plain Layout
6864 Skim\SpecialChar menuseparator
6865 Preferences\SpecialChar menuseparator
6866 Sync
6867 \end_layout
6868
6869 \end_inset
6870
6871  choose 
6872 \begin_inset Flex Noun
6873 status collapsed
6874
6875 \begin_layout Plain Layout
6876 custom
6877 \end_layout
6878
6879 \end_inset
6880
6881  preset and enter command 
6882 \begin_inset Flex Noun
6883 status collapsed
6884
6885 \begin_layout Plain Layout
6886 /Applications/\SpecialChar LyX
6887 .app/Contents/MacOS/lyxeditor
6888 \end_layout
6889
6890 \end_inset
6891
6892 .
6893 \end_layout
6894
6895 \begin_layout Standard
6896 Reverse search is triggered by COMMAND-SHIFT-click
6897 \end_layout
6898
6899 \begin_layout Subsubsection*
6900 Okular (KDE)
6901 \end_layout
6902
6903 \begin_layout Standard
6904 Go to 
6905 \begin_inset Flex Noun
6906 status collapsed
6907
6908 \begin_layout Plain Layout
6909 Settings\SpecialChar menuseparator
6910 Configure Okular\SpecialChar menuseparator
6911 Editor
6912 \end_layout
6913
6914 \end_inset
6915
6916 , select 
6917 \begin_inset Quotes eld
6918 \end_inset
6919
6920 Custom Text Editor
6921 \begin_inset Quotes erd
6922 \end_inset
6923
6924  and add the command 
6925 \begin_inset Flex Code
6926 status collapsed
6927
6928 \begin_layout Plain Layout
6929 lyxclient -g %f %l
6930 \end_layout
6931
6932 \end_inset
6933
6934 .
6935 \end_layout
6936
6937 \begin_layout Standard
6938 Reverse search is triggered by SHIFT-click.
6939 \end_layout
6940
6941 \begin_layout Subsubsection*
6942 Qpdfview (Unix)
6943 \end_layout
6944
6945 \begin_layout Standard
6946 Qpdfview supports Sync\SpecialChar TeX
6947  since version 0.3.5.
6948  Go to 
6949 \begin_inset Flex Noun
6950 status collapsed
6951
6952 \begin_layout Plain Layout
6953 Edit\SpecialChar menuseparator
6954 Settings\SpecialChar menuseparator
6955 Behavior
6956 \end_layout
6957
6958 \end_inset
6959
6960 , click on the input field of the 
6961 \begin_inset Quotes eld
6962 \end_inset
6963
6964 Source editor
6965 \begin_inset Quotes erd
6966 \end_inset
6967
6968  item and add the command 
6969 \begin_inset Flex Code
6970 status collapsed
6971
6972 \begin_layout Plain Layout
6973 lyxclient -g %1 %2
6974 \end_layout
6975
6976 \end_inset
6977
6978 .
6979 \end_layout
6980
6981 \begin_layout Standard
6982 Reverse search is triggered by double-click.
6983 \end_layout
6984
6985 \begin_layout Subsubsection*
6986 YAP (Windows)
6987 \end_layout
6988
6989 \begin_layout Standard
6990 Launch yap, choose its 
6991 \begin_inset Flex Noun
6992 status collapsed
6993
6994 \begin_layout Plain Layout
6995 View\SpecialChar menuseparator
6996 Options
6997 \end_layout
6998
6999 \end_inset
7000
7001  menu and select the 
7002 \begin_inset Quotes eld
7003 \end_inset
7004
7005 Inverse DVI Search
7006 \begin_inset Quotes erd
7007 \end_inset
7008
7009  tab.
7010  Click on the 
7011 \begin_inset Quotes eld
7012 \end_inset
7013
7014 New\SpecialChar ldots
7015
7016 \begin_inset Quotes erd
7017 \end_inset
7018
7019  button and, in the window that opens, enter 
7020 \begin_inset Quotes eld
7021 \end_inset
7022
7023 \SpecialChar LyX
7024  Editor
7025 \begin_inset Quotes erd
7026 \end_inset
7027
7028  (or any other name you like) in the 
7029 \begin_inset Quotes eld
7030 \end_inset
7031
7032 Name:
7033 \begin_inset Quotes erd
7034 \end_inset
7035
7036  field.
7037  Now click on the button labeled 
7038 \begin_inset Quotes eld
7039 \end_inset
7040
7041 \SpecialChar ldots
7042
7043 \begin_inset Quotes erd
7044 \end_inset
7045
7046  to open a file dialog and navigate to the directory containing the batch
7047  file 
7048 \begin_inset Flex Code
7049 status collapsed
7050
7051 \begin_layout Plain Layout
7052 lyxeditor.bat
7053 \end_layout
7054
7055 \end_inset
7056
7057  (see below).
7058  Select 
7059 \begin_inset Flex Code
7060 status collapsed
7061
7062 \begin_layout Plain Layout
7063 lyxeditor.bat
7064 \end_layout
7065
7066 \end_inset
7067
7068  and then specify the program arguments as 
7069 \begin_inset Flex Code
7070 status collapsed
7071
7072 \begin_layout Plain Layout
7073 %f %l
7074 \end_layout
7075
7076 \end_inset
7077
7078 .
7079  The 
7080 \begin_inset Flex Code
7081 status collapsed
7082
7083 \begin_layout Plain Layout
7084 lyxeditor.bat
7085 \end_layout
7086
7087 \end_inset
7088
7089  wrapper is used for communicating with \SpecialChar LyX
7090  through the 
7091 \emph on
7092 lyxpipe
7093 \emph default
7094  and is as follows:
7095 \end_layout
7096
7097 \begin_layout LyX-Code
7098 @echo off
7099 \begin_inset Newline newline
7100 \end_inset
7101
7102 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7103 \backslash
7104
7105 \backslash
7106 .
7107 \backslash
7108 pipe
7109 \backslash
7110 lyxpipe.in
7111 \begin_inset Newline newline
7112 \end_inset
7113
7114 type 
7115 \backslash
7116
7117 \backslash
7118 .
7119 \backslash
7120 pipe
7121 \backslash
7122 lyxpipe.out
7123 \end_layout
7124
7125 \begin_layout Standard
7126 Make sure that the \SpecialChar LyX
7127 Server pipe path you specified in \SpecialChar LyX
7128  is 
7129 \begin_inset Flex Code
7130 status collapsed
7131
7132 \begin_layout Plain Layout
7133
7134 \backslash
7135
7136 \backslash
7137 .
7138 \backslash
7139 pipe
7140 \backslash
7141 lyxpipe
7142 \end_layout
7143
7144 \end_inset
7145
7146 , otherwise change the 
7147 \begin_inset Flex Code
7148 status collapsed
7149
7150 \begin_layout Plain Layout
7151 lyxeditor.bat
7152 \end_layout
7153
7154 \end_inset
7155
7156  wrapper accordingly.
7157 \end_layout
7158
7159 \begin_layout Standard
7160 In yap, reverse search is triggered by double-click.
7161 \end_layout
7162
7163 \begin_layout Subsubsection*
7164 SumatraPDF (Windows)
7165 \end_layout
7166
7167 \begin_layout Standard
7168 In order to use SumatraPDF for inverse search, enter 
7169 \begin_inset Flex Code
7170 status collapsed
7171
7172 \begin_layout Plain Layout
7173 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
7174 \end_layout
7175
7176 \end_inset
7177
7178  in the viewer setting in 
7179 \begin_inset Flex Noun
7180 status collapsed
7181
7182 \begin_layout Plain Layout
7183 Preferences\SpecialChar menuseparator
7184 File Handling\SpecialChar menuseparator
7185 File formats\SpecialChar menuseparator
7186 PDF (pdflatex)
7187 \end_layout
7188
7189 \end_inset
7190
7191 , where 
7192 \begin_inset Flex Code
7193 status collapsed
7194
7195 \begin_layout Plain Layout
7196 lyxeditor.bat
7197 \end_layout
7198
7199 \end_inset
7200
7201  is the previous wrapper.
7202  If SumatraPDF.exe is not in your command PATH, use its full file name.
7203 \end_layout
7204
7205 \begin_layout Standard
7206 Reverse search is triggered by double-click.
7207 \end_layout
7208
7209 \begin_layout Subsubsection*
7210 YAP (Cygwin)
7211 \end_layout
7212
7213 \begin_layout Standard
7214 First of all, make sure that yap is your default DVI viewer in the Windows
7215  environment, then launch it, choose its 
7216 \begin_inset Flex Noun
7217 status collapsed
7218
7219 \begin_layout Plain Layout
7220 View\SpecialChar menuseparator
7221 Options
7222 \end_layout
7223
7224 \end_inset
7225
7226  menu and select the 
7227 \begin_inset Quotes eld
7228 \end_inset
7229
7230 Inverse DVI Search
7231 \begin_inset Quotes erd
7232 \end_inset
7233
7234  tab.
7235  Click on the 
7236 \begin_inset Quotes eld
7237 \end_inset
7238
7239 New\SpecialChar ldots
7240
7241 \begin_inset Quotes erd
7242 \end_inset
7243
7244  button and, in the window that opens, enter 
7245 \begin_inset Quotes eld
7246 \end_inset
7247
7248 \SpecialChar LyX
7249  Editor
7250 \begin_inset Quotes erd
7251 \end_inset
7252
7253  (or any other name you like) in the 
7254 \begin_inset Quotes eld
7255 \end_inset
7256
7257 Name:
7258 \begin_inset Quotes erd
7259 \end_inset
7260
7261  field.
7262  Now click on the button labeled 
7263 \begin_inset Quotes eld
7264 \end_inset
7265
7266 \SpecialChar ldots
7267
7268 \begin_inset Quotes erd
7269 \end_inset
7270
7271  to open a file dialog and navigate to the directory containing the 
7272 \begin_inset Flex Code
7273 status collapsed
7274
7275 \begin_layout Plain Layout
7276 lyxeditor.exe
7277 \end_layout
7278
7279 \end_inset
7280
7281  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7282  executable).
7283  Select 
7284 \begin_inset Flex Code
7285 status collapsed
7286
7287 \begin_layout Plain Layout
7288 lyxeditor.exe
7289 \end_layout
7290
7291 \end_inset
7292
7293  and then specify the program arguments as 
7294 \begin_inset Flex Code
7295 status collapsed
7296
7297 \begin_layout Plain Layout
7298 -g %f %l
7299 \end_layout
7300
7301 \end_inset
7302
7303 .
7304  In this way, you will be using the 
7305 \emph on
7306 lyxsocket
7307 \emph default
7308  for communicating with \SpecialChar LyX
7309 .
7310  If, for whatever reason, you want to use the 
7311 \emph on
7312 lyxpipe
7313 \emph default
7314 , omit the 
7315 \begin_inset Flex Code
7316 status collapsed
7317
7318 \begin_layout Plain Layout
7319 -g
7320 \end_layout
7321
7322 \end_inset
7323
7324  option and be sure to specify the \SpecialChar LyX
7325 Server pipe path in the \SpecialChar LyX
7326  preferences.
7327 \end_layout
7328
7329 \begin_layout Standard
7330 In yap, reverse search is triggered by double-click.
7331 \end_layout
7332
7333 \begin_layout Subsubsection*
7334 SumatraPDF (Cygwin)
7335 \end_layout
7336
7337 \begin_layout Standard
7338 In order to use SumatraPDF for inverse search, enter 
7339 \begin_inset Flex Code
7340 status collapsed
7341
7342 \begin_layout Plain Layout
7343 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7344 \end_layout
7345
7346 \end_inset
7347
7348  in the viewer setting in 
7349 \begin_inset Flex Noun
7350 status collapsed
7351
7352 \begin_layout Plain Layout
7353 Preferences\SpecialChar menuseparator
7354 File Handling\SpecialChar menuseparator
7355 File formats\SpecialChar menuseparator
7356 PDF (pdflatex)
7357 \end_layout
7358
7359 \end_inset
7360
7361 .
7362  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7363  The 
7364 \begin_inset Flex Code
7365 status collapsed
7366
7367 \begin_layout Plain Layout
7368 -g
7369 \end_layout
7370
7371 \end_inset
7372
7373  enables communication via the 
7374 \emph on
7375 lyxsocket
7376 \emph default
7377 .
7378  Again, omit 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  option if you want to use the 
7389 \emph on
7390 lyxpipe
7391 \emph default
7392 , and be sure to specify the \SpecialChar LyX
7393 Server pipe path in the \SpecialChar LyX
7394  preferences.
7395 \end_layout
7396
7397 \begin_layout Standard
7398 Reverse search is triggered by double-click.
7399 \end_layout
7400
7401 \begin_layout Section
7402 Forward search
7403 \end_layout
7404
7405 \begin_layout Standard
7406 Forward search is, as the name implies, in a sense the 
7407 \begin_inset Quotes eld
7408 \end_inset
7409
7410 opposite
7411 \begin_inset Quotes erd
7412 \end_inset
7413
7414  of reverse search.
7415  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7416 .
7417  If forward search is set up (as described in what follows), you can put
7418  the cursor anywhere in your \SpecialChar LyX
7419  document, and hit 
7420 \begin_inset Flex Noun
7421 status collapsed
7422
7423 \begin_layout Plain Layout
7424 Navigate\SpecialChar menuseparator
7425 Forward search
7426 \end_layout
7427
7428 \end_inset
7429
7430  (or select 
7431 \begin_inset Flex Noun
7432 status collapsed
7433
7434 \begin_layout Plain Layout
7435 Forward search
7436 \end_layout
7437
7438 \end_inset
7439
7440  in the context menu via right mouse click), and then the viewer will jump
7441  to that position as well.
7442  This implies, of course, that your viewer supports this function.
7443 \end_layout
7444
7445 \begin_layout Standard
7446 To make forward search possible, you first need to provide the generated
7447  output PDF/DVI file with additional information about the \SpecialChar TeX
7448  sources.
7449  This can be done via the methods described in the section 
7450 \begin_inset CommandInset ref
7451 LatexCommand ref
7452 reference "subsec:rev-search"
7453
7454 \end_inset
7455
7456 .
7457 \end_layout
7458
7459 \begin_layout Standard
7460 Additionally, you need to configure \SpecialChar LyX
7461  for using your viewers in 
7462 \begin_inset Flex Noun
7463 status collapsed
7464
7465 \begin_layout Plain Layout
7466 Tools\SpecialChar menuseparator
7467 Preferences\SpecialChar menuseparator
7468 Output\SpecialChar menuseparator
7469 General
7470 \end_layout
7471
7472 \end_inset
7473
7474 .
7475  We provide a range of tested configurations for some viewers, which you
7476  can select from the drop down list.
7477  If none of these configurations suits you, you have to find out and enter
7478  a suitable configuration yourself.
7479  The definition syntax uses the following placeholders:
7480 \end_layout
7481
7482 \begin_layout Itemize
7483 \noindent
7484 \begin_inset Flex Code
7485 status collapsed
7486
7487 \begin_layout Plain Layout
7488 $$n
7489 \end_layout
7490
7491 \end_inset
7492
7493 : row number
7494 \end_layout
7495
7496 \begin_layout Itemize
7497 \noindent
7498 \begin_inset Flex Code
7499 status collapsed
7500
7501 \begin_layout Plain Layout
7502 $$t
7503 \end_layout
7504
7505 \end_inset
7506
7507 : name of the (temporary) exported .tex file (without path)
7508 \end_layout
7509
7510 \begin_layout Itemize
7511 \noindent
7512 \begin_inset Flex Code
7513 status collapsed
7514
7515 \begin_layout Plain Layout
7516 $$f
7517 \end_layout
7518
7519 \end_inset
7520
7521 : name of the (temporary) exported .tex file (including path)
7522 \end_layout
7523
7524 \begin_layout Itemize
7525 \noindent
7526 \begin_inset Flex Code
7527 status collapsed
7528
7529 \begin_layout Plain Layout
7530 $$o
7531 \end_layout
7532
7533 \end_inset
7534
7535 : name of the exported output file (either dvi or pdf, depending on which
7536  one exists in the temporary directory)
7537 \end_layout
7538
7539 \begin_layout Standard
7540 Note that only some of the viewers provide full forward search functionality,
7541  among them yap, xdvi, okular
7542 \begin_inset Foot
7543 status collapsed
7544
7545 \begin_layout Plain Layout
7546 You might want to set 
7547 \begin_inset Flex Code
7548 status collapsed
7549
7550 \begin_layout Plain Layout
7551 okular –unique
7552 \end_layout
7553
7554 \end_inset
7555
7556  in 
7557 \begin_inset Flex Noun
7558 status collapsed
7559
7560 \begin_layout Plain Layout
7561 Tools\SpecialChar menuseparator
7562 Preferences\SpecialChar menuseparator
7563 File Handling\SpecialChar menuseparator
7564 File
7565 \begin_inset space ~
7566 \end_inset
7567
7568 Formats
7569 \end_layout
7570
7571 \end_inset
7572
7573
7574 \end_layout
7575
7576 \end_inset
7577
7578 , qpdfview and SumatraPDF
7579 \begin_inset Foot
7580 status collapsed
7581
7582 \begin_layout Plain Layout
7583 SumatraPDF can also use DDE commands through the external program CMCDDE
7584  — downloadable from 
7585 \begin_inset CommandInset href
7586 LatexCommand href
7587 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
7588
7589 \end_inset
7590
7591
7592 \end_layout
7593
7594 \end_inset
7595
7596 .
7597  While many of the widespread PDF viewers (most notably Adobe Reader) do
7598  not support forward search at all, some other viewers – e.
7599 \begin_inset space \thinspace{}
7600 \end_inset
7601
7602 g.
7603  evince and xpdf – allow at least to reload the document and jump to a specific
7604  page of the file, so you can at least navigate 
7605 \begin_inset Quotes eld
7606 \end_inset
7607
7608 near
7609 \begin_inset Quotes erd
7610 \end_inset
7611
7612 .
7613  This latter functionality is provided by an external call of synctex (see
7614  the predefined example configurations).
7615  
7616 \end_layout
7617
7618 \begin_layout Standard
7619 Forward search works both with DVI and PDF output.
7620  \SpecialChar LyX
7621  simply checks which preview format you have used before (i.
7622 \begin_inset space \thinspace{}
7623 \end_inset
7624
7625 e., which format is already there in the temporary directory) and chooses
7626  the appropriate configuration for the respective format.
7627 \end_layout
7628
7629 \begin_layout Chapter
7630 Special Document Classes
7631 \end_layout
7632
7633 \begin_layout Section
7634 A&A Paper
7635 \end_layout
7636
7637 \begin_layout Standard
7638 by 
7639 \noun on
7640 Peter Sütterlin
7641 \end_layout
7642
7643 \begin_layout Subsection
7644 Introduction
7645 \end_layout
7646
7647 \begin_layout Standard
7648 This section describes how \SpecialChar LyX
7649  can be used to write articles for submission
7650  to the scientific journal 
7651 \emph on
7652 Astronomy and Astrophysics
7653 \emph default
7654  (
7655 \begin_inset Flex URL
7656 status collapsed
7657
7658 \begin_layout Plain Layout
7659
7660 http://www.edpsciences.fr/aa/
7661 \end_layout
7662
7663 \end_inset
7664
7665 ) using Version 5.01 of the document class 
7666 \family typewriter
7667 aa.cls
7668 \family default
7669 .
7670  This package can be downloaded from the ftp site
7671 \end_layout
7672
7673 \begin_layout Standard
7674 \begin_inset VSpace medskip
7675 \end_inset
7676
7677
7678 \end_layout
7679
7680 \begin_layout Standard
7681 \align center
7682 \begin_inset Flex URL
7683 status collapsed
7684
7685 \begin_layout Plain Layout
7686
7687 ftp://ftp.edpsciences.org/pub/aa/readme.html
7688 \end_layout
7689
7690 \end_inset
7691
7692
7693 \end_layout
7694
7695 \begin_layout Standard
7696 \begin_inset VSpace medskip
7697 \end_inset
7698
7699
7700 \end_layout
7701
7702 \begin_layout Standard
7703 A manual comes together with that package, and this text is not meant to
7704  replace the original manual but is merely a short guide in how to realize
7705  the correct form of your paper.
7706  
7707 \end_layout
7708
7709 \begin_layout Standard
7710 Please note that the publisher of the journal was changed from Springer
7711  to EDP Sciences starting January 1, 2001.
7712  That change involved also some slight changes to the style files, namely
7713  the removal of the thesaurus command.
7714  The \SpecialChar LyX
7715  class aa supports the newest version of these style files, V 5.01.
7716  If you have an older version installed, please upgrade.
7717  For compatibility, the old (version 4) layout has been kept as 
7718 \family sans
7719 article (A&A V4)
7720 \family default
7721 .
7722  Please refer to the comments in 
7723 \family typewriter
7724 \SpecialChar LyX
7725 Dir/layouts/aapaper.layout
7726 \family default
7727 .
7728 \end_layout
7729
7730 \begin_layout Subsection
7731 Getting started
7732 \end_layout
7733
7734 \begin_layout Standard
7735 It is recommended you start from the example template distributed with \SpecialChar LyX
7736 .
7737  If you are not using a template, note the following settings:
7738 \end_layout
7739
7740 \begin_layout Itemize
7741 Select 
7742 \family sans
7743 article (A&A)
7744 \family default
7745  in the 
7746 \family sans
7747 Document\SpecialChar menuseparator
7748 Settings
7749 \family default
7750  dialog (OK, that one was obvious).
7751 \end_layout
7752
7753 \begin_layout Itemize
7754 Don't change the option 
7755 \family sans
7756 Page
7757 \begin_inset space ~
7758 \end_inset
7759
7760 style
7761 \family default
7762 : Leave it set to 
7763 \family sans
7764 default
7765 \family default
7766 .
7767  The whole layout is done by the macros, you shouldn't change anything.
7768 \end_layout
7769
7770 \begin_layout Subsection
7771 The header block
7772 \end_layout
7773
7774 \begin_layout Standard
7775 First thing to enter is the header information.
7776  It consists of seven entries, of which some are optional.
7777  They are
7778 \end_layout
7779
7780 \begin_layout Itemize
7781
7782 \family sans
7783 Title
7784 \family default
7785 : [required] 
7786 \end_layout
7787
7788 \begin_layout Itemize
7789
7790 \family sans
7791 Subtitle
7792 \family default
7793 : [optional] 
7794 \end_layout
7795
7796 \begin_layout Itemize
7797
7798 \family sans
7799 Author
7800 \family default
7801 : [required]
7802 \end_layout
7803
7804 \begin_layout Itemize
7805
7806 \family sans
7807 Address
7808 \family default
7809 : [required]
7810 \end_layout
7811
7812 \begin_layout Itemize
7813
7814 \family sans
7815 Offprints
7816 \family default
7817 : [optional] if more than one author: whom to contact for offprint requests.
7818 \end_layout
7819
7820 \begin_layout Itemize
7821
7822 \family sans
7823 Mail
7824 \family default
7825 : [optional] mail address for contacts.
7826 \end_layout
7827
7828 \begin_layout Itemize
7829
7830 \family sans
7831 Date
7832 \family default
7833 : [required].
7834  Suggested format is 
7835 \family typewriter
7836 Received: <date>; Accepted <date> 
7837 \end_layout
7838
7839 \begin_layout Standard
7840 There is no need to issue the 
7841 \family typewriter
7842
7843 \backslash
7844 maketitle
7845 \family default
7846  command, this is done automatically by \SpecialChar LyX
7847  when the header is finished.
7848  Although the order of the single header entries doesn't matter it is advised
7849  to keep the above sequence, just to get the best optics and meets the layout
7850  of the real document.
7851 \end_layout
7852
7853 \begin_layout Standard
7854 If you want to place footnotes in the header block, e.
7855 \begin_inset space \thinspace{}
7856 \end_inset
7857
7858 g.
7859 \begin_inset space \space{}
7860 \end_inset
7861
7862 to state your present address, just use the standard footnote via the menu
7863  
7864 \family sans
7865 Insert\SpecialChar menuseparator
7866 Footnote.
7867
7868 \family default
7869  \SpecialChar LyX
7870  will automagically use the term 
7871 \family typewriter
7872
7873 \backslash
7874 thanks{}
7875 \family default
7876  in that case.
7877 \end_layout
7878
7879 \begin_layout Standard
7880 In addition to these topics, the macros use three additional \SpecialChar LaTeX
7881  commands that
7882  have no counterpart in \SpecialChar LyX
7883 :
7884 \end_layout
7885
7886 \begin_layout Itemize
7887
7888 \family typewriter
7889
7890 \backslash
7891 and
7892 \family default
7893  to separate different names for more than one author and institute, respectivel
7894 y.
7895 \end_layout
7896
7897 \begin_layout Itemize
7898
7899 \family typewriter
7900
7901 \backslash
7902 inst{<nr>}
7903 \family default
7904 to mark corresponding author/institute pairs.
7905  The institutes are numbered sequentially as they appear in the 
7906 \family sans
7907 Address
7908 \family default
7909  field, so you have to put a marker to each author.
7910 \end_layout
7911
7912 \begin_layout Itemize
7913
7914 \family typewriter
7915
7916 \backslash
7917 email{address}
7918 \family default
7919  to supply an email address for fast contact.
7920 \end_layout
7921
7922 \begin_layout Standard
7923 In all cases, the appropriate command has to be entered in \SpecialChar LyX
7924  and marked as
7925  \SpecialChar LaTeX
7926  code.
7927  See the examples.
7928  
7929 \end_layout
7930
7931 \begin_layout Subsection
7932 The abstract
7933 \end_layout
7934
7935 \begin_layout Standard
7936 The abstract should immediately follow the header block.
7937  With version 5 the abstract environment was changed to a command, and there
7938  is now a resctriction to only one paragraph.
7939  In addition, it should contain an entry with the keywords.
7940  This is not yet implemented for \SpecialChar LyX
7941 , therefore you have to enter the \SpecialChar LaTeX
7942  command
7943  
7944 \family typewriter
7945
7946 \backslash
7947 keywords{}
7948 \family default
7949  by hand and mark it as \SpecialChar LaTeX
7950  code.
7951  Refer to the example paper.
7952 \end_layout
7953
7954 \begin_layout Subsection
7955 Supported environments
7956 \end_layout
7957
7958 \begin_layout Standard
7959 The A&A paper layout supports the following environments for structuring
7960  your text:
7961 \end_layout
7962
7963 \begin_layout Itemize
7964
7965 \family sans
7966 Standard
7967 \end_layout
7968
7969 \begin_layout Itemize
7970
7971 \family sans
7972 Section
7973 \end_layout
7974
7975 \begin_layout Itemize
7976
7977 \family sans
7978 Subsection
7979 \end_layout
7980
7981 \begin_layout Itemize
7982
7983 \family sans
7984 Subsubsection
7985 \end_layout
7986
7987 \begin_layout Itemize
7988
7989 \family sans
7990 Itemize
7991 \end_layout
7992
7993 \begin_layout Itemize
7994
7995 \family sans
7996 Enumerate
7997 \end_layout
7998
7999 \begin_layout Itemize
8000
8001 \family sans
8002 Description
8003 \end_layout
8004
8005 \begin_layout Itemize
8006
8007 \family sans
8008 Caption
8009 \end_layout
8010
8011 \begin_layout Itemize
8012
8013 \family sans
8014 Abstract
8015 \end_layout
8016
8017 \begin_layout Itemize
8018
8019 \family sans
8020 Acknowledgment
8021 \end_layout
8022
8023 \begin_layout Itemize
8024
8025 \family sans
8026 Bibliography
8027 \end_layout
8028
8029 \begin_layout Itemize
8030
8031 \family sans
8032 \SpecialChar LaTeX
8033
8034 \end_layout
8035
8036 \begin_layout Subsection
8037 Commands not supported by \SpecialChar LyX
8038
8039 \end_layout
8040
8041 \begin_layout Standard
8042 Some commands are not yet supported by the 
8043 \family sans
8044 paper (A&A)
8045 \family default
8046  layout for \SpecialChar LyX
8047 .
8048  Some have already been mentioned.
8049  For the sake of completeness, they are listed all together here:
8050 \end_layout
8051
8052 \begin_layout Itemize
8053
8054 \family typewriter
8055
8056 \backslash
8057 and
8058 \end_layout
8059
8060 \begin_layout Itemize
8061
8062 \family typewriter
8063
8064 \backslash
8065 email
8066 \end_layout
8067
8068 \begin_layout Itemize
8069
8070 \family typewriter
8071
8072 \backslash
8073 appendix
8074 \end_layout
8075
8076 \begin_layout Itemize
8077
8078 \family typewriter
8079
8080 \backslash
8081 authorrunning
8082 \end_layout
8083
8084 \begin_layout Itemize
8085
8086 \family typewriter
8087
8088 \backslash
8089 inst{}
8090 \end_layout
8091
8092 \begin_layout Itemize
8093
8094 \family typewriter
8095
8096 \backslash
8097 keywords{}
8098 \end_layout
8099
8100 \begin_layout Itemize
8101
8102 \family typewriter
8103
8104 \backslash
8105 object{}
8106 \end_layout
8107
8108 \begin_layout Itemize
8109
8110 \family typewriter
8111
8112 \backslash
8113 titlerunning{}
8114 \end_layout
8115
8116 \begin_layout Standard
8117 If you want to use any of these commands, you have to enter them yourself.
8118  
8119 \series bold
8120 Do not forget to mark them as \SpecialChar LaTeX
8121  code!
8122 \end_layout
8123
8124 \begin_layout Subsection
8125 Figure and Table Floats
8126 \end_layout
8127
8128 \begin_layout Standard
8129 \SpecialChar LyX
8130  provides support for the necessary float environments 
8131 \family sans
8132 figure, figure*, table
8133 \family default
8134  and 
8135 \family sans
8136 table*
8137 \family default
8138 , therefore we won't tell much about it here.
8139  Refer to the 
8140 \emph on
8141 User's
8142 \begin_inset space ~
8143 \end_inset
8144
8145 Guide
8146 \emph default
8147 .
8148  Just remember that tables should be left-aligned.
8149  For that, select the table and change the alignment in 
8150 \family sans
8151 Edit\SpecialChar menuseparator
8152 Paragraph
8153 \begin_inset space ~
8154 \end_inset
8155
8156 Settings.
8157 \end_layout
8158
8159 \begin_layout Standard
8160 There is only one special thing: the figures with caption besides the figure.
8161  To create such a figure, you have to do the following:
8162 \end_layout
8163
8164 \begin_layout Enumerate
8165 Create a wide figure float: 
8166 \family sans
8167 Insert\SpecialChar menuseparator
8168 Float\SpecialChar menuseparator
8169 Figure
8170 \family default
8171 , then right click in the figure and select 
8172 \family sans
8173 Span
8174 \begin_inset space ~
8175 \end_inset
8176
8177 columns
8178 \family default
8179 .
8180 \end_layout
8181
8182 \begin_layout Enumerate
8183 Enter your caption text.
8184 \end_layout
8185
8186 \begin_layout Enumerate
8187 Press 
8188 \family sans
8189 Return
8190 \family default
8191  to move the cursor above the caption.
8192 \end_layout
8193
8194 \begin_layout Enumerate
8195 Insert your figure
8196 \end_layout
8197
8198 \begin_layout Enumerate
8199 Position the cursor behind the figure and insert a horizontal fill: 
8200 \family sans
8201 Insert\SpecialChar menuseparator
8202 Special
8203 \begin_inset space ~
8204 \end_inset
8205
8206 Character\SpecialChar menuseparator
8207 Horizontal
8208 \begin_inset space ~
8209 \end_inset
8210
8211 Fill
8212 \family default
8213 .
8214 \end_layout
8215
8216 \begin_layout Enumerate
8217 Switch to \SpecialChar LaTeX
8218  mode: 
8219 \family sans
8220 M-c
8221 \begin_inset space ~
8222 \end_inset
8223
8224 t
8225 \family default
8226 .
8227 \end_layout
8228
8229 \begin_layout Enumerate
8230 Enter 
8231 \family typewriter
8232
8233 \backslash
8234 parbox[b]{55mm}{
8235 \family default
8236 .
8237  
8238 \series bold
8239 Do not close the brace!
8240 \end_layout
8241
8242 \begin_layout Enumerate
8243 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8244  mode and insert
8245  the closing brace: 
8246 \family sans
8247 M-c
8248 \begin_inset space ~
8249 \end_inset
8250
8251 t
8252 \family default
8253  
8254 \family typewriter
8255 }
8256 \family default
8257 .
8258 \end_layout
8259
8260 \begin_layout Standard
8261 Also, refer to the figures in the example paper.
8262 \end_layout
8263
8264 \begin_layout Subsection
8265 Referee layout
8266 \end_layout
8267
8268 \begin_layout Standard
8269 For submission, the paper has to be formated in a special double-spacing
8270  layout.
8271  For this purpose, you have to give the option 
8272 \family typewriter
8273 referee
8274 \family default
8275  to the documentclass.
8276  This must be done using the extra class options field in the 
8277 \family sans
8278 Document\SpecialChar menuseparator
8279 Settings
8280 \family default
8281  dialog.
8282  Just enter the string 
8283 \family typewriter
8284 referee
8285 \family default
8286  there.
8287 \end_layout
8288
8289 \begin_layout Subsection
8290 The example paper
8291 \end_layout
8292
8293 \begin_layout Standard
8294 The 
8295 \family sans
8296 Examples
8297 \family default
8298  directory contains an example paper written with \SpecialChar LyX
8299 .
8300  It is the example paper from the original macro package, translated to
8301  \SpecialChar LyX
8302 .
8303  Use it for inspiration, and compare the original \SpecialChar LaTeX
8304  code with \SpecialChar LyX
8305  way of writing.
8306 \end_layout
8307
8308 \begin_layout Section
8309 AAS\SpecialChar TeX
8310
8311 \end_layout
8312
8313 \begin_layout Standard
8314 by 
8315 \noun on
8316 Mike Ressler
8317 \end_layout
8318
8319 \begin_layout Subsection
8320 Introduction
8321 \end_layout
8322
8323 \begin_layout Standard
8324 AAS\SpecialChar TeX
8325  is a set of macros produced by the American Astronomical Society to
8326  facilitate electronic manuscript submission to the three journals they
8327  publish: the Astrophysical Journal (including the Letters and Supplement),
8328  the Astronomical Journal, and the Publications of the Astronomical Society
8329  of the Pacific.
8330  \SpecialChar LyX
8331  has proven to be an excellent tool for generating these documents, especially
8332  given its equation, citation, and figure handling capabilities.
8333  \SpecialChar LyX
8334  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8335  is the version described here, or higher.
8336  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8337 2.09 and are fundamentally
8338  incompatible with \SpecialChar LyX
8339 .
8340  The AAS\SpecialChar TeX
8341  package may be downloaded from the AAS\SpecialChar TeX
8342  Web site
8343 \end_layout
8344
8345 \begin_layout Standard
8346 \begin_inset VSpace medskip
8347 \end_inset
8348
8349
8350 \end_layout
8351
8352 \begin_layout Standard
8353 \align center
8354 \begin_inset Flex URL
8355 status collapsed
8356
8357 \begin_layout Plain Layout
8358
8359 https://aas.org/aastex/aastex-downloads
8360 \end_layout
8361
8362 \end_inset
8363
8364
8365 \end_layout
8366
8367 \begin_layout Standard
8368 \begin_inset VSpace medskip
8369 \end_inset
8370
8371
8372 \end_layout
8373
8374 \begin_layout Standard
8375 A complete user guide is contained in that package and you should familiarize
8376  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8377 .
8378  \SpecialChar LyX
8379  will not reduce the need to figure out all the AAS\SpecialChar TeX
8380  commands, it will only
8381  reduce the drudgery of typing everything in.
8382  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8383  document conforms
8384  completely to the requirements of the journal to which you are submitting
8385  your paper.
8386 \end_layout
8387
8388 \begin_layout Subsection
8389 Starting a New Paper
8390 \end_layout
8391
8392 \begin_layout Standard
8393 I strongly suggest that you start with the AAS\SpecialChar TeX
8394  template file.
8395  Click on 
8396 \family sans
8397 File\SpecialChar menuseparator
8398 New from
8399 \family default
8400  
8401 \family sans
8402 Template
8403 \family default
8404 , enter the new file name, then choose the 
8405 \family typewriter
8406 aastex.lyx
8407 \family default
8408  template.
8409  This will show the most common fields found in a manuscript.
8410  Simply overwrite the existing text (including the brackets, 
8411 \family typewriter
8412 <>
8413 \family default
8414 ) with the correct information.
8415  Many of the AAS\SpecialChar TeX
8416  commands and environments can be implemented directly in
8417  \SpecialChar LyX
8418 , but some cannot: most noticeably 
8419 \family typewriter
8420
8421 \backslash
8422 altaffilmark
8423 \family default
8424  and 
8425 \family typewriter
8426
8427 \backslash
8428 altaffiltext
8429 \family default
8430 , which should stick out like a sore thumb if you actually just opened the
8431  template file.
8432  For commands such as these, the \SpecialChar LaTeX
8433  code must be entered directly and marked
8434  as such.
8435  Such commands are referred to as \SpecialChar TeX
8436  code, or Evil Red Text.
8437  I tried to minimize the amount of \SpecialChar TeX
8438  code needed in an AAS\SpecialChar TeX
8439  document, but
8440  there is still a bit more required than any of us would like.
8441 \end_layout
8442
8443 \begin_layout Subsection
8444 Finishing Your Paper
8445 \end_layout
8446
8447 \begin_layout Standard
8448 When the paper is finished to your satisfaction and previews/prints correctly,
8449  there are a few 
8450 \begin_inset Quotes eld
8451 \end_inset
8452
8453 postprocessing
8454 \begin_inset Quotes erd
8455 \end_inset
8456
8457  actions which need to be done before you submit it to the journals.
8458  
8459 \end_layout
8460
8461 \begin_layout Enumerate
8462 Export your paper as a \SpecialChar LaTeX
8463  file (
8464 \family sans
8465 File\SpecialChar menuseparator
8466 Export\SpecialChar menuseparator
8467 \SpecialChar LaTeX
8468
8469 \family default
8470 ).
8471  
8472 \end_layout
8473
8474 \begin_layout Enumerate
8475 Edit the resulting 
8476 \family typewriter
8477 .tex
8478 \family default
8479  file with your favorite text editor
8480 \begin_inset Separator parbreak
8481 \end_inset
8482
8483
8484 \end_layout
8485
8486 \begin_deeper
8487 \begin_layout Enumerate
8488 remove the comment lines before the 
8489 \family typewriter
8490
8491 \backslash
8492 documentclass
8493 \family default
8494  command
8495 \end_layout
8496
8497 \begin_layout Enumerate
8498 remove the 
8499 \family typewriter
8500
8501 \backslash
8502 usepackage...{fontenc}
8503 \family default
8504  line if it appears (usually just after 
8505 \family typewriter
8506
8507 \backslash
8508 documentclass
8509 \family default
8510 }; also remove the 
8511 \family typewriter
8512
8513 \backslash
8514 secnumdepth
8515 \family default
8516  line if it appears.
8517 \end_layout
8518
8519 \begin_layout Enumerate
8520 remove everything between (and including) the 
8521 \family typewriter
8522
8523 \backslash
8524 makeatletter
8525 \family default
8526  and 
8527 \family typewriter
8528
8529 \backslash
8530 makeatother
8531 \family default
8532  commands, except for any commands you specifically put into the \SpecialChar LaTeX
8533  preamble
8534  (which should appear immediately after the 
8535 \begin_inset Quotes eld
8536 \end_inset
8537
8538 User specified \SpecialChar LaTeX
8539  commands
8540 \begin_inset Quotes erd
8541 \end_inset
8542
8543  comment in the 
8544 \family typewriter
8545 .tex
8546 \family default
8547  file).
8548 \end_layout
8549
8550 \end_deeper
8551 \begin_layout Enumerate
8552 Run the resulting file through \SpecialChar LaTeX
8553  to make sure it still processes correctly.
8554 \end_layout
8555
8556 \begin_layout Enumerate
8557 Reread the journal requirements to make sure your filenames and formats
8558  are correct.
8559 \end_layout
8560
8561 \begin_layout Enumerate
8562 Submit it.
8563 \end_layout
8564
8565 \begin_layout Subsection
8566 Comments On Specific Commands
8567 \end_layout
8568
8569 \begin_layout Standard
8570 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
8571  commands: the
8572  AAS\SpecialChar TeX
8573  User Guide (
8574 \family typewriter
8575 aasguide.tex
8576 \family default
8577 ) gives a good description of each.
8578  Thus it's probably easiest for me to go down the list as found in the guide
8579  and offer comments where necessary.
8580  So let's begin \SpecialChar ldots
8581
8582 \end_layout
8583
8584 \begin_layout Subsubsection
8585 Things that work as expected
8586 \end_layout
8587
8588 \begin_layout Standard
8589 Because they work as you might expect, I simply list them and the section
8590  they are found in: 
8591 \family typewriter
8592
8593 \backslash
8594 documentclass
8595 \family default
8596  (2.1.1), 
8597 \family typewriter
8598
8599 \backslash
8600 begin{document}
8601 \family default
8602  (2.2), 
8603 \family typewriter
8604
8605 \backslash
8606 title
8607 \family default
8608  (2.3), 
8609 \family typewriter
8610
8611 \backslash
8612 author
8613 \family default
8614  (2.3), 
8615 \family typewriter
8616
8617 \backslash
8618 affil
8619 \family default
8620  (2.3), 
8621 \family typewriter
8622
8623 \backslash
8624 abstract
8625 \family default
8626  (2.4), 
8627 \family typewriter
8628
8629 \backslash
8630 keywords
8631 \family default
8632  (2.5), 
8633 \family typewriter
8634
8635 \backslash
8636 section
8637 \family default
8638  (2.7), 
8639 \family typewriter
8640
8641 \backslash
8642 subsection
8643 \family default
8644  (2.7), 
8645 \family typewriter
8646
8647 \backslash
8648 subsubsection
8649 \family default
8650  (2.7), 
8651 \family typewriter
8652
8653 \backslash
8654 paragraph
8655 \family default
8656  (2.7), 
8657 \family typewriter
8658
8659 \backslash
8660 facility
8661 \family default
8662  (2.10), 
8663 \family typewriter
8664
8665 \backslash
8666 begin{displaymath}
8667 \family default
8668  (2.12), 
8669 \family typewriter
8670
8671 \backslash
8672 begin{equation}
8673 \family default
8674  (2.12), 
8675 \family typewriter
8676
8677 \backslash
8678 begin{eqnarray}
8679 \family default
8680  (2.12), 
8681 \family typewriter
8682
8683 \backslash
8684 begin{mathletters}
8685 \family default
8686  (2.12), 
8687 \family typewriter
8688
8689 \backslash
8690 begin{thebibliography}
8691 \family default
8692  (2.13.1), 
8693 \family typewriter
8694
8695 \backslash
8696 bibitem
8697 \family default
8698  (2.13.2), all the cite commands and their variations (2.13.2), the generic
8699  graphicx figure commands (2.14.1), 
8700 \family typewriter
8701
8702 \backslash
8703 begin{table}
8704 \family default
8705  (2.15.4), 
8706 \family typewriter
8707
8708 \backslash
8709 begin{tabular}
8710 \family default
8711  (2.15.4), 
8712 \family typewriter
8713
8714 \backslash
8715 caption
8716 \family default
8717  (2.15.4), 
8718 \family typewriter
8719
8720 \backslash
8721 label
8722 \family default
8723  (2.15.4, amongst other places), 
8724 \family typewriter
8725
8726 \backslash
8727 tablerefs
8728 \family default
8729  (2.15.5), 
8730 \family typewriter
8731
8732 \backslash
8733 tablecomments
8734 \family default
8735  (2.15.5), 
8736 \family typewriter
8737
8738 \backslash
8739 url
8740 \family default
8741  (2.17.4), 
8742 \family typewriter
8743
8744 \backslash
8745 end{document}
8746 \family default
8747  (2.18).
8748 \end_layout
8749
8750 \begin_layout Standard
8751 The following style options also work correctly: 
8752 \family typewriter
8753 longabstract
8754 \family default
8755  (2.4), 
8756 \family typewriter
8757 preprint
8758 \family default
8759  (3.2.1), 
8760 \family typewriter
8761 preprint2
8762 \family default
8763  (3.2.2), 
8764 \family typewriter
8765 eqsecnum
8766 \family default
8767  (3.3), 
8768 \family typewriter
8769 flushrt
8770 \family default
8771  (3.4).
8772  Simply put them in the 
8773 \family sans
8774 Options
8775 \family default
8776  box in 
8777 \family sans
8778 Layout\SpecialChar menuseparator
8779 Document
8780 \family default
8781 .
8782 \end_layout
8783
8784 \begin_layout Subsubsection
8785 Things that work, but require more comment
8786 \end_layout
8787
8788 \begin_layout Standard
8789 The following items work, but require a little more discussion:
8790 \end_layout
8791
8792 \begin_layout Itemize
8793 These items are reserved for use by the journal editors, but you can put
8794  them into the \SpecialChar LaTeX
8795  preamble if you feel compelled to do so: 
8796 \family typewriter
8797
8798 \backslash
8799 received
8800 \family default
8801
8802 \family typewriter
8803
8804 \backslash
8805 revised
8806 \family default
8807
8808 \family typewriter
8809
8810 \backslash
8811 accepted
8812 \family default
8813
8814 \family typewriter
8815
8816 \backslash
8817 ccc
8818 \family default
8819
8820 \family typewriter
8821
8822 \backslash
8823 cpright
8824 \family default
8825  (all from 2.1.3)
8826 \end_layout
8827
8828 \begin_layout Itemize
8829 These items may be placed in the \SpecialChar LaTeX
8830  preamble, and are included as blanks in
8831  the template file: 
8832 \family typewriter
8833
8834 \backslash
8835 slugcomment
8836 \family default
8837  (2.1.4), 
8838 \family typewriter
8839
8840 \backslash
8841 shorttitle
8842 \family default
8843  (2.1.5), 
8844 \family typewriter
8845
8846 \backslash
8847 shortauthors
8848 \family default
8849  (2.1.5)
8850 \end_layout
8851
8852 \begin_layout Itemize
8853
8854 \family typewriter
8855
8856 \backslash
8857 email
8858 \family default
8859  (2.3) – can only be used 
8860 \begin_inset Quotes eld
8861 \end_inset
8862
8863 standalone
8864 \begin_inset Quotes erd
8865 \end_inset
8866
8867 , not in the middle of a paragraph.
8868  Use \SpecialChar TeX
8869  code if you need to embed it.
8870 \end_layout
8871
8872 \begin_layout Itemize
8873
8874 \family typewriter
8875
8876 \backslash
8877 and
8878 \family default
8879  (2.3) – will have extra {} after it.
8880  This should not cause an error.
8881 \end_layout
8882
8883 \begin_layout Itemize
8884
8885 \family typewriter
8886
8887 \backslash
8888 notetoeditor
8889 \family default
8890  (2.6) – can only be used 
8891 \begin_inset Quotes eld
8892 \end_inset
8893
8894 standalone
8895 \begin_inset Quotes erd
8896 \end_inset
8897
8898 , not in the middle of a paragraph.
8899  Use \SpecialChar TeX
8900  code if you need to embed it.
8901 \end_layout
8902
8903 \begin_layout Itemize
8904
8905 \family typewriter
8906
8907 \backslash
8908 placetable
8909 \family default
8910  (2.8) – can't insert a cross-reference tag, you must type the tag name by
8911  hand
8912 \end_layout
8913
8914 \begin_layout Itemize
8915
8916 \family typewriter
8917
8918 \backslash
8919 placefigure
8920 \family default
8921  (2.8) – same as for 
8922 \family typewriter
8923
8924 \backslash
8925 placetable
8926 \end_layout
8927
8928 \begin_layout Itemize
8929
8930 \family typewriter
8931
8932 \backslash
8933 acknowledgements
8934 \family default
8935  (2.9) – will have extra {} after it.
8936  This should not cause an error.
8937 \end_layout
8938
8939 \begin_layout Itemize
8940
8941 \family typewriter
8942
8943 \backslash
8944 appendix
8945 \family default
8946  (2.11) – will have extra {} after it.
8947  This should not cause an error.
8948 \end_layout
8949
8950 \begin_layout Itemize
8951
8952 \family typewriter
8953
8954 \backslash
8955 figcaption
8956 \family default
8957  (2.14.2) – you can insert an optional filename argument by placing the cursor
8958  at the beginning of the text and selecting 
8959 \family sans
8960 Insert\SpecialChar menuseparator
8961 Short Title
8962 \family default
8963 .
8964  
8965 \begin_inset Quotes eld
8966 \end_inset
8967
8968 Short Title
8969 \begin_inset Quotes erd
8970 \end_inset
8971
8972  inserts an optional argument of the type needed by 
8973 \family typewriter
8974
8975 \backslash
8976 figcaption
8977 \family default
8978 .
8979  Hopefully it will be renamed someday.
8980 \end_layout
8981
8982 \begin_layout Itemize
8983
8984 \family typewriter
8985
8986 \backslash
8987 objectname
8988 \family default
8989  (2.17.1) – same as 
8990 \family typewriter
8991
8992 \backslash
8993 figcaption
8994 \family default
8995  for the catalog ID optional parameter
8996 \end_layout
8997
8998 \begin_layout Itemize
8999
9000 \family typewriter
9001
9002 \backslash
9003 dataset
9004 \family default
9005  (2.17.1) – same as 
9006 \family typewriter
9007
9008 \backslash
9009 figcaption
9010 \family default
9011  for the catalog ID optional parameter
9012 \end_layout
9013
9014 \begin_layout Subsubsection
9015 Things not implemented, use \SpecialChar TeX
9016  code
9017 \end_layout
9018
9019 \begin_layout Standard
9020
9021 \family typewriter
9022
9023 \backslash
9024 altaffilmark
9025 \family default
9026  (2.3), 
9027 \family typewriter
9028
9029 \backslash
9030 altaffiltext
9031 \family default
9032  (2.3), 
9033 \family typewriter
9034
9035 \backslash
9036 eqnum
9037 \family default
9038  (2.12), 
9039 \family typewriter
9040
9041 \backslash
9042 setcounter{equation}
9043 \family default
9044  (2.12), Journal name abbreviations (2.13.4), 
9045 \family typewriter
9046
9047 \backslash
9048 figurenum
9049 \family default
9050  (2.14.1), 
9051 \family typewriter
9052
9053 \backslash
9054 epsscale
9055 \family default
9056  (2.14.1), 
9057 \family typewriter
9058
9059 \backslash
9060 plotone
9061 \family default
9062  (2.14.1), 
9063 \family typewriter
9064
9065 \backslash
9066 plottwo
9067 \family default
9068  (2.14.1), 
9069 \family typewriter
9070
9071 \backslash
9072 tablenum
9073 \family default
9074  (2.15.4), 
9075 \family typewriter
9076
9077 \backslash
9078 tableline
9079 \family default
9080  (2.15.4, insert it as the first element in the lefthand cell after where
9081  you want it.
9082  Don't use any of \SpecialChar LyX
9083 's rules in the table), 
9084 \family typewriter
9085
9086 \backslash
9087 tablenotemark
9088 \family default
9089  (2.15.5), 
9090 \family typewriter
9091
9092 \backslash
9093 tablenotetext
9094 \family default
9095  (2.15.5), much of Misc (2.17, except 
9096 \family typewriter
9097
9098 \backslash
9099 objectname
9100 \family default
9101
9102 \family typewriter
9103
9104 \backslash
9105 dataset
9106 \family default
9107
9108 \family typewriter
9109
9110 \backslash
9111 url
9112 \family default
9113 , and 
9114 \family typewriter
9115
9116 \backslash
9117 email
9118 \family default
9119 ; see above), 
9120 \family typewriter
9121
9122 \backslash
9123 singlespace
9124 \family default
9125  (3.1), 
9126 \family typewriter
9127
9128 \backslash
9129 doublespace
9130 \family default
9131  (3.1), 
9132 \family typewriter
9133
9134 \backslash
9135 onecolumn
9136 \family default
9137  (3.2), 
9138 \family typewriter
9139
9140 \backslash
9141 twocolumn
9142 \family default
9143  (3.2)
9144 \end_layout
9145
9146 \begin_layout Subsubsection
9147 Things that cannot be implemented
9148 \end_layout
9149
9150 \begin_layout Standard
9151 \SpecialChar ldots
9152  at least in any meaningful sort of way, so I suggest ignoring them.
9153  They are the references environment (2.13.3), and the deluxetable environment
9154  (2.15).
9155  If you really, really need to use deluxetable, I suggest editing it in
9156  a separate file with a text editor, then using 
9157 \family sans
9158 Insert\SpecialChar menuseparator
9159 Child
9160 \begin_inset space ~
9161 \end_inset
9162
9163 Document
9164 \family default
9165  to include it in your \SpecialChar LyX
9166  document.
9167  See the 
9168 \family typewriter
9169 aas_sample.lyx
9170 \family default
9171  file to see an example of this.
9172 \end_layout
9173
9174 \begin_layout Subsection
9175 FAQs, Tips, Tricks, and Other Ruminations
9176 \end_layout
9177
9178 \begin_layout Subsubsection
9179 Getting \SpecialChar LyX
9180  and AAS\SpecialChar TeX
9181  to cooperate
9182 \end_layout
9183
9184 \begin_layout Standard
9185 It can be a bit tricky to get \SpecialChar LyX
9186  to recognize a new layout and document class.
9187  When all else fails, do this:
9188 \end_layout
9189
9190 \begin_layout Enumerate
9191 Make certain that \SpecialChar LaTeX
9192  can find AAS\SpecialChar TeX
9193 .
9194  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9195  distribution into a
9196  directory completely unrelated to \SpecialChar LaTeX
9197  or AAS\SpecialChar TeX
9198  and run \SpecialChar LaTeX
9199  on 
9200 \family typewriter
9201 sample.tex
9202 \family default
9203 .
9204 \end_layout
9205
9206 \begin_layout Enumerate
9207 Make certain that 
9208 \family typewriter
9209 aastex.layout
9210 \family default
9211  appears in \SpecialChar LyX
9212 's 
9213 \family typewriter
9214 layouts
9215 \family default
9216  folder
9217 \end_layout
9218
9219 \begin_layout Enumerate
9220 Rerun 
9221 \family sans
9222 Tools\SpecialChar menuseparator
9223 Reconfigure
9224 \family default
9225  in \SpecialChar LyX
9226 , then restart \SpecialChar LyX
9227 .
9228 \end_layout
9229
9230 \begin_layout Enumerate
9231 Open a regular new file, not from a template.
9232  Does AAS\SpecialChar TeX
9233  appear in the class list in 
9234 \family sans
9235 Document\SpecialChar menuseparator
9236 Settings
9237 \family default
9238 ?
9239 \end_layout
9240
9241 \begin_layout Standard
9242 If you get a warning from an existing AAS\SpecialChar TeX
9243  document about not being able
9244  to find the AAS\SpecialChar TeX
9245  layout or a message about 
9246 \begin_inset Quotes eld
9247 \end_inset
9248
9249 You should not mix title layouts with normal ones
9250 \begin_inset Quotes erd
9251 \end_inset
9252
9253 , things haven't been installed correctly.
9254 \end_layout
9255
9256 \begin_layout Subsubsection
9257 \SpecialChar LaTeX
9258  error processing a table 
9259 \end_layout
9260
9261 \begin_layout Standard
9262 \SpecialChar LyX
9263 , by default, attempts to center the table caption/title.
9264  This seems to produce a bad interaction in AAS\SpecialChar TeX
9265  so you should click somewhere
9266  in the caption/title, then select 
9267 \family sans
9268 Edit\SpecialChar menuseparator
9269 Paragraph
9270 \begin_inset space ~
9271 \end_inset
9272
9273 Settings
9274 \family default
9275 , then set the 
9276 \family sans
9277 Alignment
9278 \family default
9279  to 
9280 \family sans
9281 Block
9282 \family default
9283 .
9284  This took care of it for me.
9285 \end_layout
9286
9287 \begin_layout Subsubsection
9288 References
9289 \end_layout
9290
9291 \begin_layout Standard
9292 A couple of things: 1) I have noticed some funny spacing in the reference
9293  entries in the text.
9294  When you enter the bibliography item data, make sure their is 
9295 \emph on
9296 no
9297 \emph default
9298  space between the last author and the parenthesis setting off the year;
9299  
9300 \emph on
9301 e.
9302 \begin_inset space \thinspace{}
9303 \end_inset
9304
9305 g.
9306 \begin_inset space \space{}
9307 \end_inset
9308
9309
9310 \emph default
9311 type 
9312 \family typewriter
9313 Ressler(1992)
9314 \family default
9315 , not 
9316 \family typewriter
9317 Ressler (1992)
9318 \family default
9319 .
9320  2) Entering the references at all is not obvious.
9321  The easiest thing is to start typing your first reference at the end of
9322  the document, then mark it as type 
9323 \family sans
9324 References
9325 \family default
9326 .
9327  That will put a small gray box in front of what you just typed.
9328  Click on the box to fill in the rest of the information.
9329  For new references, go to the end of an existing reference and press return.
9330  That will create a new line with its own box, etc.
9331 \end_layout
9332
9333 \begin_layout Subsubsection
9334 Including EPS files
9335 \end_layout
9336
9337 \begin_layout Standard
9338 Even though AAS\SpecialChar TeX
9339  provides its own figure commands (
9340 \family typewriter
9341
9342 \backslash
9343 plotone
9344 \family default
9345 , for example), I much prefer \SpecialChar LaTeX
9346 's standard figure commands (with the default
9347  graphicx).
9348  You can insert the 
9349 \family typewriter
9350
9351 \backslash
9352 plotone
9353 \family default
9354 , etc.
9355 \begin_inset space ~
9356 \end_inset
9357
9358 commands as \SpecialChar TeX
9359  code into a Figure Float box if you desire, but I never have
9360  much luck getting the layout right.
9361  With the standard graphics, \SpecialChar LyX
9362  will insert a 
9363 \family typewriter
9364
9365 \backslash
9366 usepackage{graphicx}
9367 \family default
9368  command into the \SpecialChar LaTeX
9369  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9370  way,
9371  interspersing the figures in the text.
9372  I believe ApJ accepts figures exactly this way now; AJ might still use
9373  the 
9374 \begin_inset Quotes eld
9375 \end_inset
9376
9377 stack everything at the end
9378 \begin_inset Quotes erd
9379 \end_inset
9380
9381  technique.
9382 \end_layout
9383
9384 \begin_layout Subsubsection
9385 Things I could have done, but didn't
9386 \end_layout
9387
9388 \begin_layout Standard
9389 There are a few 
9390 \begin_inset Quotes eld
9391 \end_inset
9392
9393 pretty
9394 \begin_inset Quotes erd
9395 \end_inset
9396
9397  things I could have implemented, but chose not to.
9398  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9399  window,
9400  even though it is double-spaced in the paper manuscript.
9401  Also, I chose not to make separate layouts for the preprint and preprint2
9402  styles.
9403  Since I assume you will spend most of your time in the plain manuscript
9404  mode anyway, I decided not to chew up more disk space with this.
9405  
9406 \end_layout
9407
9408 \begin_layout Subsection
9409 Final Caveat
9410 \end_layout
9411
9412 \begin_layout Standard
9413 Your mileage may vary.
9414  I've now had papers published by both ApJ and AJ that have had 98% of the
9415  effort done in \SpecialChar LyX
9416 ; the last 2% was the \SpecialChar LaTeX
9417  post-processing and a few cleanups.
9418  I have had no trouble with the submission process, and I'm sure the journals
9419  were never aware that there might be a difference.
9420  So, go forth and publish!
9421 \end_layout
9422
9423 \begin_layout Section
9424 AMS \SpecialChar LaTeX
9425
9426 \end_layout
9427
9428 \begin_layout Standard
9429 by 
9430 \noun on
9431 David Johnson
9432 \noun default
9433 ; updated by 
9434 \noun on
9435 Richard Heck
9436 \end_layout
9437
9438 \begin_layout Standard
9439 \begin_inset VSpace bigskip
9440 \end_inset
9441
9442
9443 \end_layout
9444
9445 \begin_layout Standard
9446 \noindent
9447 The AMS \SpecialChar LaTeX
9448  layouts are set up to conform to suggested styles for mathematical
9449  papers to be submitted to American Mathematical Society publications.
9450  The layouts are not tailored to a specific journal, but easily can be.
9451  You should refer to the AMS documentation for specific instructions for
9452  each journal (usually it will entail only changing a single line in the
9453  \SpecialChar TeX
9454  output).
9455  That documentation is available on the Web at 
9456 \begin_inset Flex URL
9457 status open
9458
9459 \begin_layout Plain Layout
9460
9461 http://www.ams.org
9462 \end_layout
9463
9464 \end_inset
9465
9466  or by ftp at 
9467 \begin_inset Flex URL
9468 status open
9469
9470 \begin_layout Plain Layout
9471
9472 ftp://ftp.ams.org/pub/tex/amslatex/
9473 \end_layout
9474
9475 \end_inset
9476
9477 .
9478  These layouts are appropriate, and useful, for any mathematical writing.
9479  
9480 \end_layout
9481
9482 \begin_layout Standard
9483 There are two basic AMS \SpecialChar LaTeX
9484  layouts: 
9485 \end_layout
9486
9487 \begin_layout Itemize
9488 amsart: The standard AMS article format.
9489 \end_layout
9490
9491 \begin_layout Itemize
9492 amsbook: the standard AMS book (really, monograph) format.
9493  
9494 \end_layout
9495
9496 \begin_layout Standard
9497 The layouts themselves contain only the minimum necessary to use the AMS
9498  classes.
9499  They do not, in particular, contain any of the `theorem' environments used
9500  for setting theorems, lemmas, and the like.
9501  These are contained, instead, in the 
9502 \begin_inset Flex Code
9503 status collapsed
9504
9505 \begin_layout Plain Layout
9506 Theorems (AMS)
9507 \end_layout
9508
9509 \end_inset
9510
9511  module, which is loaded by default when you select one of the AMS classes.
9512  (It can also be used with other classes and can be removed, if you would
9513  rather use something else.) Less commonly used environments are in the 
9514 \begin_inset Flex Code
9515 status collapsed
9516
9517 \begin_layout Plain Layout
9518 Theorems (AMS-Extended)
9519 \end_layout
9520
9521 \end_inset
9522
9523  module, which must be loaded manually.
9524 \end_layout
9525
9526 \begin_layout Standard
9527 By default, theorems and the like are numbered consecutively throughout
9528  the document, but this may be modified by loading the module 
9529 \begin_inset Flex Code
9530 status collapsed
9531
9532 \begin_layout Plain Layout
9533 Theorems (Order by Section)
9534 \end_layout
9535
9536 \end_inset
9537
9538  or, if you are using 
9539 \begin_inset Flex Code
9540 status collapsed
9541
9542 \begin_layout Plain Layout
9543 book (AMS)
9544 \end_layout
9545
9546 \end_inset
9547
9548 , the module 
9549 \begin_inset Flex Code
9550 status collapsed
9551
9552 \begin_layout Plain Layout
9553 Theorems (Order by Chapter)
9554 \end_layout
9555
9556 \end_inset
9557
9558 .
9559  These will number the results as 
9560 \begin_inset Formula $n.m$
9561 \end_inset
9562
9563 , where the first number refers to the section (or chapter) and the second
9564  refers to the total number of results so far in that section (or chapter).
9565  Many environments are also available unnumbered.
9566  These are indicated by an asterisk at the end.
9567  If you happen to want 
9568 \emph on
9569 only
9570 \emph default
9571  unnumbered results, the module 
9572 \begin_inset Flex Code
9573 status collapsed
9574
9575 \begin_layout Plain Layout
9576 Theorems (Starred)
9577 \end_layout
9578
9579 \end_inset
9580
9581  provides that option.
9582 \end_layout
9583
9584 \begin_layout Standard
9585 Note that these modules do not 
9586 \emph on
9587 have
9588 \emph default
9589  to be used with the AMS classes.
9590  It is perfectly possible to use the 
9591 \begin_inset Flex Code
9592 status collapsed
9593
9594 \begin_layout Plain Layout
9595 Theorems (AMS)
9596 \end_layout
9597
9598 \end_inset
9599
9600  module, and the others mentioned, with other classes, such as 
9601 \begin_inset Flex Code
9602 status collapsed
9603
9604 \begin_layout Plain Layout
9605 article
9606 \end_layout
9607
9608 \end_inset
9609
9610
9611 \begin_inset Flex Code
9612 status collapsed
9613
9614 \begin_layout Plain Layout
9615 report
9616 \end_layout
9617
9618 \end_inset
9619
9620
9621 \begin_inset Flex Code
9622 status collapsed
9623
9624 \begin_layout Plain Layout
9625 book (KOMA-script)
9626 \end_layout
9627
9628 \end_inset
9629
9630 , and so forth.
9631 \end_layout
9632
9633 \begin_layout Subsection
9634 What these layouts provide
9635 \end_layout
9636
9637 \begin_layout Standard
9638 There is a long list of included environments provided by these layouts.
9639  In AMS-\SpecialChar LaTeX
9640 , there is, in fact, an opportunity to define an unlimited variety
9641  of `theorem' environments.
9642  However, the AMS recommends the environments that are available in \SpecialChar LyX
9643 .
9644  
9645 \end_layout
9646
9647 \begin_layout Standard
9648 The following environments—as well as the standard environments, such as
9649  
9650 \begin_inset Flex Noun
9651 status collapsed
9652
9653 \begin_layout Plain Layout
9654 section
9655 \end_layout
9656
9657 \end_inset
9658
9659
9660 \begin_inset Flex Noun
9661 status collapsed
9662
9663 \begin_layout Plain Layout
9664 bibliography
9665 \end_layout
9666
9667 \end_inset
9668
9669
9670 \begin_inset Flex Noun
9671 status collapsed
9672
9673 \begin_layout Plain Layout
9674 title
9675 \end_layout
9676
9677 \end_inset
9678
9679
9680 \begin_inset Flex Noun
9681 status collapsed
9682
9683 \begin_layout Plain Layout
9684 author
9685 \end_layout
9686
9687 \end_inset
9688
9689 , and 
9690 \begin_inset Flex Noun
9691 status collapsed
9692
9693 \begin_layout Plain Layout
9694 date
9695 \end_layout
9696
9697 \end_inset
9698
9699 —are provided by 
9700 \begin_inset Flex Code
9701 status collapsed
9702
9703 \begin_layout Plain Layout
9704 article (AMS)
9705 \end_layout
9706
9707 \end_inset
9708
9709  and 
9710 \begin_inset Flex Code
9711 status collapsed
9712
9713 \begin_layout Plain Layout
9714 book (AMS)
9715 \end_layout
9716
9717 \end_inset
9718
9719 :
9720 \end_layout
9721
9722 \begin_layout Description
9723 Address This should be the author's permanent address.
9724 \end_layout
9725
9726 \begin_layout Description
9727 Current
9728 \begin_inset space ~
9729 \end_inset
9730
9731 Address This should be the author's temporary address at the time of submission,
9732  if different from the Address.
9733 \end_layout
9734
9735 \begin_layout Description
9736 Email Author's e-mail address
9737 \end_layout
9738
9739 \begin_layout Description
9740 URL Author's Web address, if desired.
9741 \end_layout
9742
9743 \begin_layout Description
9744 Keywords Key words or phrases used to identify specific topics discussed
9745  in the paper.
9746 \end_layout
9747
9748 \begin_layout Description
9749 Subjectclass These refer to the AMS Subject Classifications, published and
9750  described in 
9751 \emph on
9752 Mathematical Reviews
9753 \emph default
9754 .
9755  These are also available online at the AMS cites listed above.
9756 \end_layout
9757
9758 \begin_layout Description
9759 Thanks
9760 \end_layout
9761
9762 \begin_layout Description
9763 Dedicatory
9764 \end_layout
9765
9766 \begin_layout Description
9767 Translator
9768 \end_layout
9769
9770 \begin_layout Standard
9771 The following environments are provided by both the 
9772 \begin_inset Flex Code
9773 status collapsed
9774
9775 \begin_layout Plain Layout
9776 Theorems
9777 \end_layout
9778
9779 \end_inset
9780
9781  and 
9782 \begin_inset Flex Code
9783 status collapsed
9784
9785 \begin_layout Plain Layout
9786 Theorems (AMS)
9787 \end_layout
9788
9789 \end_inset
9790
9791  modules, in the latter case in both starred (unnumbered) and unstarred
9792  (numbered) versions.
9793  These same environments are provided only in the starred versions by the
9794  
9795 \begin_inset Flex Code
9796 status collapsed
9797
9798 \begin_layout Plain Layout
9799 Theorems (Starred)
9800 \end_layout
9801
9802 \end_inset
9803
9804  module:
9805 \end_layout
9806
9807 \begin_layout Theorem
9808 This is typically used for the statements of major results.
9809  
9810 \end_layout
9811
9812 \begin_layout Corollary*
9813 This is used for statements which follow fairly directly from previous statement
9814 s.
9815  Again, these can be major results.
9816  
9817 \end_layout
9818
9819 \begin_layout Lemma
9820 These are smaller results needed to prove other statements.
9821 \end_layout
9822
9823 \begin_layout Proposition
9824 These are less major results which (hopefully) add to the general theory
9825  being discussed.
9826 \end_layout
9827
9828 \begin_layout Conjecture
9829 These are statements provided without justification, which the author does
9830  not know how to prove, but which seem to be true (to the author, at least).
9831 \end_layout
9832
9833 \begin_layout Definition*
9834 Guess what this is for.
9835  The font is different for this environment than for the previous ones.
9836  
9837 \end_layout
9838
9839 \begin_layout Example*
9840 Used for examples illustrating proven results.
9841 \end_layout
9842
9843 \begin_layout Problem
9844 It's not really known what this is for.
9845  You should figure it out.
9846 \end_layout
9847
9848 \begin_layout Exercise*
9849 Write a description for this one.
9850 \end_layout
9851
9852 \begin_layout Remark
9853 This environment is also a type of theorem, usually a lesser sort of observation.
9854 \end_layout
9855
9856 \begin_layout Claim*
9857 Often used in the course of giving a proof of a larger result.
9858 \end_layout
9859
9860 \begin_layout Case
9861 Generally, these are used to break up long arguments, using specific instances
9862  of some condition.
9863  
9864 \end_layout
9865
9866 \begin_layout Case
9867 The numbering scheme for cases is on its own, not together with other numbered
9868  statements.
9869  
9870 \end_layout
9871
9872 \begin_layout Proof
9873 At the end of this environment, a QED symbol (usually a square, but it can
9874  vary with different styles) is placed.
9875  If you want to have other environments within this one—for example, Case
9876  environments—and have the QED symbol appear only after them, then the other
9877  environments need to be nested within the proof environment.
9878  See the section 
9879 \emph on
9880 Nesting Environments
9881 \emph default
9882  of the 
9883 \emph on
9884 User's Guide
9885 \emph default
9886  for information on nesting.
9887 \end_layout
9888
9889 \begin_layout Standard
9890 And these environments are provided by 
9891 \begin_inset Flex Code
9892 status collapsed
9893
9894 \begin_layout Plain Layout
9895 Theorems (AMS-Extended)
9896 \end_layout
9897
9898 \end_inset
9899
9900 :
9901 \end_layout
9902
9903 \begin_layout Criterion*
9904 A required condition.
9905 \end_layout
9906
9907 \begin_layout Algorithm*
9908 A general procedure to be used.
9909 \end_layout
9910
9911 \begin_layout Axiom*
9912 This is a property or statement taken as true within the system being discussed.
9913 \end_layout
9914
9915 \begin_layout Condition*
9916 Sometimes used to state a condition assumed within the present context of
9917  discussion.
9918 \end_layout
9919
9920 \begin_layout Note*
9921 Similar to a Remark.
9922 \end_layout
9923
9924 \begin_layout Notation*
9925 Used for the explanation of, yes, notation.
9926 \end_layout
9927
9928 \begin_layout Summary
9929 Do we really need to tell you? 
9930 \end_layout
9931
9932 \begin_layout Acknowledgement*
9933 Acknowledgement.
9934 \end_layout
9935
9936 \begin_layout Conclusion*
9937 Sometimes used at the end of a long train of argument.
9938 \end_layout
9939
9940 \begin_layout Fact
9941 Used in a way similar to Proposition, though perhaps lower on the scale.
9942 \end_layout
9943
9944 \begin_layout Standard
9945 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
9946  and AMS fonts
9947  packages.
9948  They need to be available on your system in order to use these environments.
9949 \end_layout
9950
9951 \begin_layout Section
9952 AGU journals (
9953 \family sans
9954 aguplus
9955 \family default
9956 )
9957 \end_layout
9958
9959 \begin_layout Standard
9960 by 
9961 \shape smallcaps
9962 Martin Vermeer
9963 \end_layout
9964
9965 \begin_layout Subsection
9966 Description
9967 \end_layout
9968
9969 \begin_layout Standard
9970 These are the layout files for some of the journals of the American Geophysical
9971  Society.
9972  It is assumed that you have both the AGU's own class files and AGUplus
9973  installed (everything to be found at
9974 \begin_inset Flex URL
9975 status collapsed
9976
9977 \begin_layout Plain Layout
9978
9979 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
9980 \end_layout
9981
9982 \end_inset
9983
9984 ).
9985 \end_layout
9986
9987 \begin_layout Subsection
9988 New styles
9989 \end_layout
9990
9991 \begin_layout Standard
9992 Redefined are 
9993 \family sans
9994 Paragraph
9995 \family default
9996
9997 \family sans
9998 Paragraph*
9999 \family default
10000 .
10001  They are still called this in the \SpecialChar LyX
10002  GUI, though their \SpecialChar LaTeX
10003  equivalents in the
10004  AGU classes are 
10005 \family sans
10006 Subsubsubsection
10007 \family default
10008  and 
10009 \family sans
10010 Subsubsubsection*
10011 \family default
10012 .
10013 \end_layout
10014
10015 \begin_layout Standard
10016 Newly defined styles are 
10017 \family sans
10018 Left_Header
10019 \family default
10020
10021 \family sans
10022 Right_Header
10023 \family default
10024
10025 \family sans
10026 Received
10027 \family default
10028
10029 \family sans
10030 Revised
10031 \family default
10032
10033 \family sans
10034 Accepted
10035 \family default
10036
10037 \family sans
10038 CCC
10039 \family default
10040
10041 \family sans
10042 PaperId
10043 \family default
10044
10045 \family sans
10046 AuthorAddr
10047 \family default
10048
10049 \family sans
10050 SlugComment
10051 \family default
10052 .
10053  These are mostly manuscript attributes and defined in the AGU class documentati
10054 on.
10055 \end_layout
10056
10057 \begin_layout Standard
10058 I suspect this is still badly incomplete.
10059 \end_layout
10060
10061 \begin_layout Subsection
10062 New floats
10063 \end_layout
10064
10065 \begin_layout Standard
10066
10067 \family sans
10068 Planotable
10069 \family default
10070  and 
10071 \family sans
10072 Plate
10073 \family default
10074 .
10075  We also have a new 
10076 \family sans
10077 Table_Caption
10078 \family default
10079 .
10080 \end_layout
10081
10082 \begin_layout Subsection
10083 Supported journals
10084 \end_layout
10085
10086 \begin_layout Itemize
10087
10088 \emph on
10089 Journal of Geophysical Research
10090 \emph default
10091
10092 \family typewriter
10093 jgrga.layout
10094 \family default
10095  — Martin Vermeer
10096 \end_layout
10097
10098 \begin_layout Standard
10099 Add your own, it isn't so hard! Look at the 
10100 \family typewriter
10101 jgrga.layout
10102 \family default
10103  example and 
10104 \family typewriter
10105 aguplus.inc
10106 \family default
10107 .
10108 \end_layout
10109
10110 \begin_layout Subsection
10111 Bugs and things to remember
10112 \end_layout
10113
10114 \begin_layout Standard
10115 In order to use the new layouts, you must remember to do the following for
10116  a new document:
10117 \end_layout
10118
10119 \begin_layout Enumerate
10120
10121 \emph on
10122 Turn off babel
10123 \emph default
10124 .
10125  This can be done in the 
10126 \family sans
10127 Layout\SpecialChar menuseparator
10128 Document
10129 \family default
10130  or 
10131 \family sans
10132 Document\SpecialChar menuseparator
10133 Settings
10134 \family default
10135  menu item.
10136  (AGU articles are always in English, right? So 
10137 \emph on
10138 don't
10139 \emph default
10140  choose a language.)
10141 \end_layout
10142
10143 \begin_layout Enumerate
10144 Enter 
10145 \family typewriter
10146 jgrga
10147 \family default
10148  into the document's 
10149 \family sans
10150 Extra Options
10151 \family default
10152  field.
10153  (Yes, this is a bug.)
10154 \end_layout
10155
10156 \begin_layout Enumerate
10157 Make sure you use the 
10158 \family typewriter
10159 agu.bst
10160 \family default
10161  bibliography style, by entering 
10162 \family sans
10163 agu
10164 \family default
10165  into the second field of the Bib\SpecialChar TeX
10166  inset.
10167  None of the standard styles will do.
10168 \end_layout
10169
10170 \begin_layout Section
10171 Broadway
10172 \end_layout
10173
10174 \begin_layout Standard
10175 by 
10176 \shape smallcaps
10177 Garst Reese
10178 \end_layout
10179
10180 \begin_layout Subsection
10181 Introduction
10182 \end_layout
10183
10184 \begin_layout Standard
10185 Broadway is for writing plays.
10186  The format is more decorative than Hollywood, and much less standardized.
10187  This format should be suitable for workshops.
10188 \end_layout
10189
10190 \begin_layout Subsection
10191 Special problems
10192 \end_layout
10193
10194 \begin_layout Standard
10195 The same as in Hollywood.
10196 \end_layout
10197
10198 \begin_layout Subsection
10199 Special features
10200 \end_layout
10201
10202 \begin_layout Standard
10203 Insert the 
10204 \family sans
10205 Speaker
10206 \family default
10207  names as labels then cross-reference the label to insert the name.
10208  The cross-reference dialog will show the current cast of characters.
10209 \end_layout
10210
10211 \begin_layout Subsection
10212 Paper size and Margins
10213 \end_layout
10214
10215 \begin_layout Standard
10216 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10217 \end_layout
10218
10219 \begin_layout Subsection
10220 Environments
10221 \end_layout
10222
10223 \begin_layout Standard
10224 The following environments are available.
10225  You can use broadway.bind to get the bind keys shown at the right.
10226 \end_layout
10227
10228 \begin_layout Itemize
10229
10230 \family sans
10231 Standard
10232 \begin_inset Newline newline
10233 \end_inset
10234
10235
10236 \family default
10237 You should not have to use this, but it is here for anything that does not
10238  fit otherwise.
10239 \end_layout
10240
10241 \begin_layout Itemize
10242
10243 \family sans
10244 Narrative
10245 \begin_inset space \hfill{}
10246 \end_inset
10247
10248 M-z n
10249 \begin_inset Newline newline
10250 \end_inset
10251
10252
10253 \family default
10254 Used to describe stage setting and the action.
10255  First use of speaker names in all CAPs.
10256 \end_layout
10257
10258 \begin_layout Itemize
10259
10260 \family sans
10261 ACT
10262 \begin_inset space \hfill{}
10263 \end_inset
10264
10265 M-z a
10266 \begin_inset Newline newline
10267 \end_inset
10268
10269
10270 \family default
10271 Automatically numbered.
10272  On screen it will be arabic, but will print as Roman.
10273 \end_layout
10274
10275 \begin_layout Itemize
10276
10277 \family sans
10278 ACT*
10279 \begin_inset space \hfill{}
10280 \end_inset
10281
10282 M-z S at
10283 \begin_inset Newline newline
10284 \end_inset
10285
10286
10287 \family default
10288 Subtitle for 
10289 \family sans
10290 ACT.
10291
10292 \family default
10293  It is just centered text.
10294 \end_layout
10295
10296 \begin_layout Itemize
10297
10298 \family sans
10299 SCENE
10300 \begin_inset space \hfill{}
10301 \end_inset
10302
10303 M-z S-S
10304 \begin_inset Newline newline
10305 \end_inset
10306
10307
10308 \family default
10309 Not automatically numbered.
10310  You supply the number.
10311  This is because I couldn't figure out how.
10312 \end_layout
10313
10314 \begin_layout Itemize
10315
10316 \family sans
10317 AT_RISE:
10318 \begin_inset space \hfill{}
10319 \end_inset
10320
10321 M-z S-R
10322 \begin_inset Newline newline
10323 \end_inset
10324
10325
10326 \family default
10327 A special case of Narrative to describe the setting and action as the curtain
10328  rises.
10329 \end_layout
10330
10331 \begin_layout Itemize
10332
10333 \family sans
10334 Speaker
10335 \begin_inset space \hfill{}
10336 \end_inset
10337
10338 M-z s
10339 \begin_inset Newline newline
10340 \end_inset
10341
10342
10343 \family default
10344 The speaker's (actor's) title, centered in all CAPS.
10345 \end_layout
10346
10347 \begin_layout Itemize
10348
10349 \family sans
10350 Parenthetical
10351 \begin_inset space \hfill{}
10352 \end_inset
10353
10354 M-z p
10355 \begin_inset Newline newline
10356 \end_inset
10357
10358
10359 \family default
10360 Instructions to the speaker.
10361  The parentheses are automatically inserted.
10362  The ( will appear on screen, but both will be in the printed play.
10363  This environment is only used within 
10364 \family sans
10365 Dialogue
10366 \family default
10367 .
10368 \end_layout
10369
10370 \begin_layout Itemize
10371
10372 \family sans
10373 Dialogue
10374 \begin_inset space \hfill{}
10375 \end_inset
10376
10377 M-z d
10378 \begin_inset Newline newline
10379 \end_inset
10380
10381
10382 \family default
10383 What the Speaker says.
10384 \end_layout
10385
10386 \begin_layout Itemize
10387
10388 \family sans
10389 CURTAIN
10390 \begin_inset space \hfill{}
10391 \end_inset
10392
10393 M-z S-C
10394 \begin_inset Newline newline
10395 \end_inset
10396
10397
10398 \family default
10399 The curtain comes down.
10400 \end_layout
10401
10402 \begin_layout Itemize
10403
10404 \family sans
10405 Title
10406 \begin_inset space \hfill{}
10407 \end_inset
10408
10409 M-z S-T
10410 \end_layout
10411
10412 \begin_layout Itemize
10413
10414 \family sans
10415 Author
10416 \begin_inset space \hfill{}
10417 \end_inset
10418
10419 M-z S-A
10420 \end_layout
10421
10422 \begin_layout Itemize
10423
10424 \family sans
10425 Right_Address
10426 \begin_inset space \hfill{}
10427 \end_inset
10428
10429 M-z r
10430 \end_layout
10431
10432 \begin_layout Standard
10433 Hello there.
10434 \end_layout
10435
10436 \begin_layout Section
10437 Dinbrief
10438 \end_layout
10439
10440 \begin_layout Standard
10441 The document class 
10442 \family sans
10443 dinbrief
10444 \family default
10445  can be used to type letters according to German conventions.
10446  A template file is included in 
10447 \family typewriter
10448 .../lyx/share/templates
10449 \family default
10450  for you to use as a starting point.
10451 \end_layout
10452
10453 \begin_layout Section
10454 EGS journals (
10455 \family sans
10456 egs
10457 \family default
10458 )
10459 \end_layout
10460
10461 \begin_layout Standard
10462 by 
10463 \shape smallcaps
10464 Martin Vermeer
10465 \end_layout
10466
10467 \begin_layout Subsection
10468 Description
10469 \end_layout
10470
10471 \begin_layout Standard
10472 This is the layout file for the European Geophysical Society journals.
10473  The needed 
10474 \family typewriter
10475 egs.cls
10476 \family default
10477  can be downloaded from the web site of the EGS under 
10478 \begin_inset Flex URL
10479 status collapsed
10480
10481 \begin_layout Plain Layout
10482
10483 www.copernicus.org
10484 \end_layout
10485
10486 \end_inset
10487
10488 .
10489 \end_layout
10490
10491 \begin_layout Subsection
10492 New styles
10493 \end_layout
10494
10495 \begin_layout Standard
10496
10497 \family sans
10498 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10499  Accepted
10500 \family default
10501
10502 \family sans
10503 Offsets
10504 \family default
10505 .
10506  The current layout file is unfortunately very unmodular and would benefit
10507  from using the various 
10508 \family typewriter
10509 std*.inc
10510 \family default
10511  file inclusions.
10512 \end_layout
10513
10514 \begin_layout Section
10515 Elsevier Journals
10516 \end_layout
10517
10518 \begin_layout Standard
10519 See the \SpecialChar LyX
10520  template file 
10521 \family typewriter
10522 elsarticle.lyx
10523 \family default
10524 .
10525  It contains all infos you need.
10526 \end_layout
10527
10528 \begin_layout Section
10529 Foils [aka 
10530 \family sans
10531 Foil\SpecialChar TeX
10532
10533 \family default
10534 ]
10535 \begin_inset CommandInset label
10536 LatexCommand label
10537 name "sec:foiltex"
10538
10539 \end_inset
10540
10541
10542 \end_layout
10543
10544 \begin_layout Standard
10545 by 
10546 \noun on
10547 Allan Rae
10548 \end_layout
10549
10550 \begin_layout Subsection
10551 Introduction
10552 \end_layout
10553
10554 \begin_layout Standard
10555 This section describes how to use \SpecialChar LyX
10556  to make slides for overhead projectors.
10557  There are two document classes that can do this: the default slides class
10558  and the 
10559 \family sans
10560 Foil\SpecialChar TeX
10561
10562 \family default
10563  slides class.
10564  This section documents the latter.
10565 \end_layout
10566
10567 \begin_layout Standard
10568 I'm going to say this again, nice and clear, so that there's no misunderstanding
10569 :
10570 \end_layout
10571
10572 \begin_layout Standard
10573 \begin_inset VSpace bigskip
10574 \end_inset
10575
10576
10577 \end_layout
10578
10579 \begin_layout Standard
10580 \align center
10581
10582 \size large
10583 This section documents the class 
10584 \begin_inset Quotes eld
10585 \end_inset
10586
10587
10588 \family sans
10589 slides (FoilTeX)
10590 \family default
10591
10592 \begin_inset Quotes erd
10593 \end_inset
10594
10595  
10596 \emph on
10597 only.
10598 \end_layout
10599
10600 \begin_layout Standard
10601 \begin_inset VSpace bigskip
10602 \end_inset
10603
10604
10605 \end_layout
10606
10607 \begin_layout Standard
10608 If you're looking for the documentation for 
10609 \begin_inset Quotes eld
10610 \end_inset
10611
10612
10613 \family sans
10614 slides (default)
10615 \family default
10616
10617 \begin_inset Quotes erd
10618 \end_inset
10619
10620 , check out section
10621 \begin_inset space ~
10622 \end_inset
10623
10624
10625 \begin_inset CommandInset ref
10626 LatexCommand ref
10627 reference "sec:slitex"
10628
10629 \end_inset
10630
10631 .
10632  If your machine doesn't have the 
10633 \family sans
10634 foils
10635 \family default
10636  class [
10637 \begin_inset Quotes eld
10638 \end_inset
10639
10640
10641 \family sans
10642 slides (FoilTeX)
10643 \family default
10644
10645 \begin_inset Quotes erd
10646 \end_inset
10647
10648 ] installed, you'll probably have to use the default 
10649 \family sans
10650 slides
10651 \family default
10652  class, which isn't quite as good as 
10653 \family sans
10654 foils.
10655 \end_layout
10656
10657 \begin_layout Standard
10658 The 
10659 \family sans
10660 foils
10661 \family default
10662  class is designed for use with version 2.1 of the 
10663 \family sans
10664 foils.cls
10665 \family default
10666  \SpecialChar LaTeX
10667  class file which is now an integral part of \SpecialChar LaTeX2e
10668 .
10669 \end_layout
10670
10671 \begin_layout Subsection
10672 Getting Started
10673 \end_layout
10674
10675 \begin_layout Standard
10676 Obviously, to use this document class, you need to select 
10677 \begin_inset Quotes eld
10678 \end_inset
10679
10680
10681 \family sans
10682 slides (FoilTeX)
10683 \family default
10684
10685 \begin_inset Quotes erd
10686 \end_inset
10687
10688  from the 
10689 \family sans
10690 Class
10691 \family default
10692  entry in the 
10693 \family sans
10694 Document
10695 \begin_inset space ~
10696 \end_inset
10697
10698 Layout
10699 \family default
10700  dialog.
10701  There are some settings in the 
10702 \family sans
10703 Document
10704 \begin_inset space ~
10705 \end_inset
10706
10707 Layout
10708 \family default
10709  dialog that you should know about that are specific to this class:
10710 \end_layout
10711
10712 \begin_layout Itemize
10713 Don't change the options 
10714 \family sans
10715 Sides
10716 \family default
10717  and 
10718 \family sans
10719 Columns
10720 \family default
10721  on the 
10722 \family sans
10723 Document
10724 \begin_inset space ~
10725 \end_inset
10726
10727 Layout
10728 \family default
10729  dialog.
10730  They're ignored by the 
10731 \family sans
10732 foils
10733 \family default
10734  class.
10735 \end_layout
10736
10737 \begin_layout Itemize
10738 The default font size is 20
10739 \begin_inset space \thinspace{}
10740 \end_inset
10741
10742 pt with the other options being 17
10743 \begin_inset space \thinspace{}
10744 \end_inset
10745
10746 pt, 25
10747 \begin_inset space \thinspace{}
10748 \end_inset
10749
10750 pt and 30
10751 \begin_inset space \thinspace{}
10752 \end_inset
10753
10754 pt.
10755 \end_layout
10756
10757 \begin_layout Itemize
10758 The default font is 
10759 \family sans
10760 sans
10761 \family default
10762  
10763 \family sans
10764 serif
10765 \family default
10766  but all math equations are still typeset in the usual roman font.
10767 \end_layout
10768
10769 \begin_layout Itemize
10770
10771 \family sans
10772 Foil\SpecialChar TeX
10773
10774 \family default
10775  supports A4 and Letter paper sizes as well as a special size for working
10776  with 35
10777 \begin_inset space \thinspace{}
10778 \end_inset
10779
10780 mm slides.
10781  It doesn't support A5, B5, legal or executive paper sizes.
10782 \end_layout
10783
10784 \begin_layout Itemize
10785 Don't bother changing the 
10786 \family sans
10787 Float Placement
10788 \family default
10789  settings because they are ignored anyway.
10790  All floats appear where they are defined in the text.
10791 \end_layout
10792
10793 \begin_layout Itemize
10794 The 
10795 \family sans
10796 Pagestyle
10797 \family default
10798  setting behaves a bit differently for this class.
10799  
10800 \family sans
10801 Foil\SpecialChar TeX
10802
10803 \family default
10804  provides extensive footer and header capabilities including a user-defined
10805  logo.
10806  See section
10807 \begin_inset space ~
10808 \end_inset
10809
10810
10811 \begin_inset CommandInset ref
10812 LatexCommand ref
10813 reference "sec:foilfoot"
10814
10815 \end_inset
10816
10817  for more details.
10818  The title page is treated differently to all other pages in the document
10819  and is 
10820 \emph on
10821 always
10822 \emph default
10823  unnumbered and 
10824 \emph on
10825 always
10826 \emph default
10827  has the logo centered at the bottom of the page (if one is defined).
10828  The possible page style choices and what they do are as follows:
10829 \begin_inset Separator parbreak
10830 \end_inset
10831
10832
10833 \end_layout
10834
10835 \begin_deeper
10836 \begin_layout Labeling
10837 \labelwidthstring MMMMMMM
10838
10839 \family sans
10840 \series bold
10841 empty
10842 \family default
10843 \series default
10844  The final output contains no page numbers, or other headers or footers
10845  (except footnotes of course).
10846  
10847 \end_layout
10848
10849 \begin_layout Labeling
10850 \labelwidthstring MMMMMMM
10851
10852 \family sans
10853 \series bold
10854 plain
10855 \family default
10856 \series default
10857  The final output contains page numbers centered at the bottom of the page.
10858  No other headings or footers (other than footnotes).
10859 \end_layout
10860
10861 \begin_layout Labeling
10862 \labelwidthstring MMMMMMM
10863
10864 \series bold
10865 foilheadings
10866 \series default
10867  Page numbers in lower right corner.
10868  Additional headers and footers are also shown.
10869  This is also the default.
10870 \end_layout
10871
10872 \begin_layout Labeling
10873 \labelwidthstring MMMMMMM
10874
10875 \series bold
10876 fancy
10877 \series default
10878  Gives you access to the 
10879 \family sans
10880 fancyheadings
10881 \family default
10882  package although its use with 
10883 \family sans
10884 Foil\SpecialChar TeX
10885
10886 \family default
10887  is discouraged by the writer of the 
10888 \family sans
10889 Foil\SpecialChar TeX
10890
10891 \family default
10892  package because of some potential page layout clashes.
10893 \end_layout
10894
10895 \end_deeper
10896 \begin_layout Subsubsection
10897 Extra Options
10898 \end_layout
10899
10900 \begin_layout Standard
10901 The following options may be used in the extra class options in the 
10902 \family sans
10903 Document\SpecialChar menuseparator
10904 Settings
10905 \family default
10906  dialog.
10907 \end_layout
10908
10909 \begin_layout Labeling
10910 \labelwidthstring MMMMMMx
10911
10912 \series bold
10913 35mmSlide
10914 \series default
10915  This sets up the page layout for 7.33
10916 \begin_inset space \thinspace{}
10917 \end_inset
10918
10919 in by 11
10920 \begin_inset space \thinspace{}
10921 \end_inset
10922
10923 in paper, which is about the same aspect ratio as a 35
10924 \begin_inset space \thinspace{}
10925 \end_inset
10926
10927 mm slide, making it a bit easier to work with this medium.
10928 \end_layout
10929
10930 \begin_layout Labeling
10931 \labelwidthstring MMMMMMx
10932
10933 \series bold
10934 headrule
10935 \series default
10936  Places a rule across the page below the header on every page except the
10937  title page.
10938 \end_layout
10939
10940 \begin_layout Labeling
10941 \labelwidthstring MMMMMMx
10942
10943 \series bold
10944 footrule
10945 \series default
10946  Places a rule across the page above the footer on every page except the
10947  title page.
10948 \end_layout
10949
10950 \begin_layout Labeling
10951 \labelwidthstring MMMMMMx
10952
10953 \series bold
10954 dvips
10955 \series default
10956  This is automatically set each time you create a new 
10957 \family sans
10958 foils
10959 \family default
10960  document.
10961  This option tells 
10962 \family sans
10963 Foil\SpecialChar TeX
10964
10965 \family default
10966  to use the dvips driver to rotate those pages that are set as landscape
10967  foils.
10968 \end_layout
10969
10970 \begin_layout Labeling
10971 \labelwidthstring MMMMMMx
10972
10973 \series bold
10974 landscape
10975 \series default
10976  Simply changes the page dimensions to those of a landscape page but doesn't
10977  do any rotation.
10978  Thus if you use this option you need to use an external program to rotate
10979  each page or feed your paper through your printer as landscape.
10980  Note that this option effectively reverses the roles of the 
10981 \family sans
10982 Foilhead
10983 \family default
10984  and 
10985 \family sans
10986 Rotatefoilhead
10987 \family default
10988  environments (don't worry these are described in the next section).
10989 \end_layout
10990
10991 \begin_layout Labeling
10992 \labelwidthstring MMMMMMx
10993
10994 \series bold
10995 leqno
10996 \series default
10997  Equation numbers on the left.
10998 \end_layout
10999
11000 \begin_layout Labeling
11001 \labelwidthstring MMMMMMx
11002
11003 \series bold
11004 fleqn
11005 \series default
11006  Flush-left equations.
11007 \end_layout
11008
11009 \begin_layout Subsection
11010 Supported Environments
11011 \end_layout
11012
11013 \begin_layout Standard
11014 Most of the environments commonly supported in other classes are also supported
11015  by the 
11016 \family sans
11017 foils
11018 \family default
11019  class.
11020  There are several additional environments provided by 
11021 \family sans
11022 Foil\SpecialChar TeX
11023
11024 \family default
11025  as well as a couple added by \SpecialChar LyX
11026 .
11027  The following environments are shared with other classes:
11028 \end_layout
11029
11030 \begin_layout Standard
11031 \begin_inset Flex Multiple Columns
11032 status open
11033
11034 \begin_layout Itemize
11035
11036 \family sans
11037 Standard
11038 \end_layout
11039
11040 \begin_layout Itemize
11041
11042 \family sans
11043 Itemize
11044 \end_layout
11045
11046 \begin_layout Itemize
11047
11048 \family sans
11049 Enumerate
11050 \end_layout
11051
11052 \begin_layout Itemize
11053
11054 \family sans
11055 Description
11056 \end_layout
11057
11058 \begin_layout Itemize
11059
11060 \family sans
11061 List
11062 \end_layout
11063
11064 \begin_layout Itemize
11065
11066 \family sans
11067 \SpecialChar LyX
11068 -Code
11069 \end_layout
11070
11071 \begin_layout Itemize
11072
11073 \family sans
11074 Verse
11075 \end_layout
11076
11077 \begin_layout Itemize
11078
11079 \family sans
11080 Quote
11081 \end_layout
11082
11083 \begin_layout Itemize
11084
11085 \family sans
11086 Quotation
11087 \end_layout
11088
11089 \begin_layout Itemize
11090
11091 \family sans
11092 Title
11093 \end_layout
11094
11095 \begin_layout Itemize
11096
11097 \family sans
11098 Author
11099 \end_layout
11100
11101 \begin_layout Itemize
11102
11103 \family sans
11104 Date
11105 \end_layout
11106
11107 \begin_layout Itemize
11108
11109 \family sans
11110 Abstract
11111 \end_layout
11112
11113 \begin_layout Itemize
11114
11115 \family sans
11116 Bibliography
11117 \end_layout
11118
11119 \begin_layout Itemize
11120
11121 \family sans
11122 Address
11123 \end_layout
11124
11125 \begin_layout Itemize
11126
11127 \family sans
11128 RightAddress
11129 \end_layout
11130
11131 \begin_layout Itemize
11132
11133 \family sans
11134 Caption
11135 \end_layout
11136
11137 \begin_layout Itemize
11138
11139 \family sans
11140 Comment
11141 \end_layout
11142
11143 \end_inset
11144
11145
11146 \end_layout
11147
11148 \begin_layout Standard
11149 That is, all the major environments apart from the sectioning environments.
11150  Since foils are essentially self-contained sections, with a title and body,
11151  
11152 \family sans
11153 Foil\SpecialChar TeX
11154
11155 \family default
11156  provides specific commands for starting new foils and these are:
11157 \end_layout
11158
11159 \begin_layout Itemize
11160
11161 \family sans
11162 Foilhead
11163 \end_layout
11164
11165 \begin_layout Itemize
11166
11167 \family sans
11168 Rotatefoilhead
11169 \end_layout
11170
11171 \begin_layout Standard
11172 \SpecialChar LyX
11173  also provides slightly modified versions of these two environments called:
11174 \end_layout
11175
11176 \begin_layout Itemize
11177
11178 \family sans
11179 ShortFoilhead
11180 \end_layout
11181
11182 \begin_layout Itemize
11183
11184 \family sans
11185 ShortRotatefoilhead
11186 \end_layout
11187
11188 \begin_layout Standard
11189 and the differences will be explained in the next section.
11190 \end_layout
11191
11192 \begin_layout Standard
11193 Since foils are often used in presenting ideas or new theorems and such
11194  
11195 \family sans
11196 Foil\SpecialChar TeX
11197
11198 \family default
11199  also provides a comprehensive box of goodies for presenting them:
11200 \end_layout
11201
11202 \begin_layout Standard
11203 \begin_inset Flex Multiple Columns
11204 status open
11205
11206 \begin_layout Itemize
11207
11208 \family sans
11209 Theorem
11210 \end_layout
11211
11212 \begin_layout Itemize
11213
11214 \family sans
11215 Lemma
11216 \end_layout
11217
11218 \begin_layout Itemize
11219
11220 \family sans
11221 Corollary
11222 \end_layout
11223
11224 \begin_layout Itemize
11225
11226 \family sans
11227 Proposition
11228 \end_layout
11229
11230 \begin_layout Itemize
11231
11232 \family sans
11233 Definition
11234 \end_layout
11235
11236 \begin_layout Itemize
11237
11238 \family sans
11239 Proof
11240 \end_layout
11241
11242 \begin_layout Itemize
11243
11244 \family sans
11245 Theorem*
11246 \end_layout
11247
11248 \begin_layout Itemize
11249
11250 \family sans
11251 Lemma*
11252 \end_layout
11253
11254 \begin_layout Itemize
11255
11256 \family sans
11257 Corollary*
11258 \end_layout
11259
11260 \begin_layout Itemize
11261
11262 \family sans
11263 Proposition*
11264 \end_layout
11265
11266 \begin_layout Itemize
11267
11268 \family sans
11269 Definition*
11270 \end_layout
11271
11272 \end_inset
11273
11274
11275 \end_layout
11276
11277 \begin_layout Standard
11278 The starred versions are unnumbered while the unstarred versions are numbered.
11279  There are also two list environments added by \SpecialChar LyX
11280  and these are:
11281 \end_layout
11282
11283 \begin_layout Itemize
11284
11285 \family sans
11286 TickList
11287 \end_layout
11288
11289 \begin_layout Itemize
11290
11291 \family sans
11292 CrossList
11293 \end_layout
11294
11295 \begin_layout Standard
11296
11297 \family sans
11298 Foil\SpecialChar TeX
11299
11300 \family default
11301  provides some powerful header and footer capabilities that are best set
11302  in the preamble although they may be set at any point in a document.
11303  If you want to change these settings in your document the best place to
11304  do so is at the very top of a foil, i.
11305 \begin_inset space \thinspace{}
11306 \end_inset
11307
11308 e.
11309 \emph on
11310
11311 \begin_inset space \space{}
11312 \end_inset
11313
11314
11315 \emph default
11316 straight after the foilhead.
11317 \end_layout
11318
11319 \begin_layout Standard
11320 For this purpose, the following command styles are provided [
11321 \shape smallcaps
11322 Martin Vermeer
11323 \shape default
11324 ]:
11325 \end_layout
11326
11327 \begin_layout Standard
11328 \begin_inset Flex Multiple Columns
11329 status open
11330
11331 \begin_layout Itemize
11332
11333 \family sans
11334 My
11335 \begin_inset space ~
11336 \end_inset
11337
11338 Logo
11339 \end_layout
11340
11341 \begin_layout Itemize
11342
11343 \family sans
11344 Restriction
11345 \end_layout
11346
11347 \begin_layout Itemize
11348
11349 \family sans
11350 Right
11351 \begin_inset space ~
11352 \end_inset
11353
11354 Footer
11355 \end_layout
11356
11357 \begin_layout Itemize
11358
11359 \family sans
11360 Right
11361 \begin_inset space ~
11362 \end_inset
11363
11364 Header
11365 \end_layout
11366
11367 \begin_layout Itemize
11368
11369 \family sans
11370 Left
11371 \begin_inset space ~
11372 \end_inset
11373
11374 Header
11375 \family default
11376
11377 \begin_inset Separator parbreak
11378 \end_inset
11379
11380
11381 \end_layout
11382
11383 \begin_deeper
11384 \begin_layout Plain Layout
11385 \begin_inset space ~
11386 \end_inset
11387
11388
11389 \end_layout
11390
11391 \end_deeper
11392 \end_inset
11393
11394
11395 \end_layout
11396
11397 \begin_layout Standard
11398 There are also a few commands provided by 
11399 \family sans
11400 Foil\SpecialChar TeX
11401
11402 \family default
11403  that aren't directly supported by \SpecialChar LyX
11404  but I'll tell you what they do and how
11405  to use them in section
11406 \begin_inset space ~
11407 \end_inset
11408
11409
11410 \begin_inset CommandInset ref
11411 LatexCommand ref
11412 reference "sec:unsuppfoils"
11413
11414 \end_inset
11415
11416 .
11417 \end_layout
11418
11419 \begin_layout Subsection
11420 Building a Set of Foils
11421 \end_layout
11422
11423 \begin_layout Standard
11424 This section will give a simple introduction to using the different environments
11425  to build a set of foils.
11426  If you want to see an example set of foils, take a look at the 
11427 \family typewriter
11428 Foils.lyx
11429 \family default
11430  file you find in \SpecialChar LyX
11431 's 
11432 \family typewriter
11433 examples
11434 \family default
11435  folder.
11436 \end_layout
11437
11438 \begin_layout Subsubsection
11439 Give It a Title Page
11440 \end_layout
11441
11442 \begin_layout Standard
11443 Unlike other classes that provide 
11444 \family sans
11445 Title
11446 \family default
11447
11448 \family sans
11449 Author
11450 \family default
11451
11452 \family sans
11453 Date
11454 \family default
11455  and 
11456 \family sans
11457 Abstract
11458 \family default
11459  environments, 
11460 \family sans
11461 foils
11462 \family default
11463  creates the title on a page of its own.
11464  If you leave out the 
11465 \family sans
11466 Date
11467 \family default
11468  environment \SpecialChar LaTeX
11469  will substitute the current date (every time you regenerate
11470  the output).
11471 \end_layout
11472
11473 \begin_layout Subsubsection
11474 Start a New Foil
11475 \end_layout
11476
11477 \begin_layout Standard
11478 As I mentioned earlier, there are four ways of starting a new foil.
11479  For portrait foils you should use 
11480 \family sans
11481 Foilhead
11482 \family default
11483  or 
11484 \family sans
11485 ShortFoilhead.
11486
11487 \family default
11488  The difference between these two environments is the amount of space between
11489  the title of the foil (the foilhead) and the body of the foil.
11490 \end_layout
11491
11492 \begin_layout Standard
11493 Landscape foils are generated using the 
11494 \family sans
11495 Rotatefoilhead
11496 \family default
11497  and 
11498 \family sans
11499 ShortRotatefoilhead
11500 \family default
11501  environments.
11502  Again the only difference is the spacing between foilhead and body.
11503  Both of the short versions have 0.5
11504 \begin_inset space ~
11505 \end_inset
11506
11507 inches less separation between the foilhead and the body.
11508  
11509 \end_layout
11510
11511 \begin_layout Standard
11512 One problem with the support for landscape foils is the requirement that
11513  you have to use the 
11514 \family typewriter
11515 dvips
11516 \family default
11517  driver to generate the PostScript output otherwise the foils won't be rotated.
11518  It is possible to get landscape foils even if you haven't got the 
11519 \family typewriter
11520 dvips
11521 \family default
11522  driver provided you can feed your foils sideways through your printer ;-)
11523 \end_layout
11524
11525 \begin_layout Subsubsection
11526 Theorems, Lemmas, Proofs and more
11527 \end_layout
11528
11529 \begin_layout Standard
11530 Due to a small bug in \SpecialChar LyX
11531  you can't have two of the same type of these environments
11532  directly following each other.
11533  They must be separated by something.
11534  If you try, you will just be extending the previous environment as if you
11535  had merged the two environments together.
11536  So, how do you get around this problem? The simplest option is to insert
11537  some text between the two environments or add a 
11538 \family sans
11539 \SpecialChar LaTeX
11540
11541 \family default
11542  environment between the two with just a 
11543 \begin_inset Quotes eld
11544 \end_inset
11545
11546
11547 \family typewriter
11548 %
11549 \family default
11550
11551 \begin_inset Quotes erd
11552 \end_inset
11553
11554  in it.
11555  This will force \SpecialChar LyX
11556  to produce two separate environments and hence the correct
11557  \SpecialChar LaTeX
11558  output.
11559  An example is provided in the example file included with the \SpecialChar LyX
11560  distribution.
11561  Remember, this problem only occurs if you are trying to place two of the
11562  same type of theorem-like environments one directly after the other.
11563 \end_layout
11564
11565 \begin_layout Subsubsection
11566 Lists
11567 \end_layout
11568
11569 \begin_layout Standard
11570 You get all the commonly supported list styles found in other classes as
11571  well as two new ones.
11572  I'll only describe the new ones here.
11573  If you want to find out more about the other list environments check out
11574  the 
11575 \emph on
11576 User's Guide.
11577
11578 \emph default
11579  If you intend to use itemized lists you might also want to read about the
11580  
11581 \family sans
11582 Itemize
11583 \begin_inset space ~
11584 \end_inset
11585
11586 Bullet
11587 \begin_inset space ~
11588 \end_inset
11589
11590 Selection
11591 \family default
11592  dialog described above in section
11593 \begin_inset space ~
11594 \end_inset
11595
11596
11597 \begin_inset CommandInset ref
11598 LatexCommand ref
11599 reference "sec:bullet"
11600
11601 \end_inset
11602
11603 .
11604 \end_layout
11605
11606 \begin_layout Standard
11607 The two new list styles, 
11608 \family sans
11609 TickList
11610 \family default
11611  and 
11612 \family sans
11613 CrossList
11614 \family default
11615 , are designed to make it easier for you to create lists of do's and don'ts
11616  or right and wrong by providing dedicated environments that use a tick
11617  or a cross as the label of the list.
11618  These lists are in fact dedicated variants of the 
11619 \family sans
11620 Itemize
11621 \family default
11622  environment.
11623  They do however require that you have the 
11624 \family typewriter
11625 psnfss
11626 \family default
11627  packages installed.
11628 \end_layout
11629
11630 \begin_layout Subsubsection
11631 Figures and Tables
11632 \end_layout
11633
11634 \begin_layout Standard
11635
11636 \family sans
11637 Foil\SpecialChar TeX
11638
11639 \family default
11640  redefines the floating tables and figures so that they appear exactly where
11641  they are in the text rather than pushing them to the top of the page or
11642  to some user specified location.
11643  In fact if you change the float placement settings they are simply ignored.
11644 \end_layout
11645
11646 \begin_layout Subsubsection
11647 Page Headers and Footers
11648 \begin_inset CommandInset label
11649 LatexCommand label
11650 name "sec:foilfoot"
11651
11652 \end_inset
11653
11654
11655 \end_layout
11656
11657 \begin_layout Standard
11658
11659 \family sans
11660 My
11661 \begin_inset space ~
11662 \end_inset
11663
11664 Logo
11665 \family default
11666  and 
11667 \family sans
11668 Restriction
11669 \family default
11670  are two commands used to control the left-footer text string.
11671  The first is meant to allow you to include a graphic logo on your foils
11672  and defaults to 
11673 \begin_inset Quotes eld
11674 \end_inset
11675
11676 -Typeset by 
11677 \family sans
11678 Foil\SpecialChar TeX
11679
11680 \family default
11681 -
11682 \begin_inset Quotes erd
11683 \end_inset
11684
11685 .
11686  While the second is meant to provide a classification for the audience,
11687  
11688 \emph on
11689 e.
11690 \begin_inset space \thinspace{}
11691 \end_inset
11692
11693 g.
11694 \emph default
11695
11696 \begin_inset space \space{}
11697 \end_inset
11698
11699 Confidential.
11700  It is empty by default.
11701 \end_layout
11702
11703 \begin_layout Standard
11704 The remaining page corners can be filled by 
11705 \family sans
11706 Right
11707 \begin_inset space ~
11708 \end_inset
11709
11710 Footer
11711 \family default
11712  (which defaults to page numbers), 
11713 \family sans
11714 Right
11715 \begin_inset space ~
11716 \end_inset
11717
11718 Header
11719 \family default
11720  (top right) and 
11721 \family sans
11722 Left
11723 \begin_inset space ~
11724 \end_inset
11725
11726 Header
11727 \family default
11728  (top left).
11729 \end_layout
11730
11731 \begin_layout Subsection
11732 Unsupported 
11733 \family sans
11734 Foil\SpecialChar TeX
11735
11736 \family default
11737  Goodies
11738 \begin_inset CommandInset label
11739 LatexCommand label
11740 name "sec:unsuppfoils"
11741
11742 \end_inset
11743
11744
11745 \end_layout
11746
11747 \begin_layout Standard
11748 All the commands mentioned below need to be set in a 
11749 \family sans
11750 \SpecialChar LaTeX
11751
11752 \family default
11753  environment or as 
11754 \family sans
11755 \SpecialChar TeX
11756
11757 \family default
11758  within another environment.
11759 \end_layout
11760
11761 \begin_layout Subsubsection
11762 Lengths
11763 \end_layout
11764
11765 \begin_layout Standard
11766 All lengths are adjusted using the 
11767 \family typewriter
11768
11769 \backslash
11770 setlength{
11771 \family default
11772 \emph on
11773 lengthname
11774 \family typewriter
11775 \emph default
11776 }{
11777 \family default
11778 \emph on
11779 newlength
11780 \family typewriter
11781 \emph default
11782 }
11783 \family default
11784  command.
11785  Where 
11786 \emph on
11787 lengthname
11788 \emph default
11789  should be replaced by the name given to the length you want to change and
11790  
11791 \emph on
11792 newlength
11793 \emph default
11794  is the length value.
11795  All lengths should be specified in units of length such as inches (
11796 \family typewriter
11797 in
11798 \family default
11799 ), millimeters (
11800 \family typewriter
11801 mm
11802 \family default
11803 ) or points (
11804 \family typewriter
11805 pt
11806 \family default
11807 ) or relative to some document or font-based length such as 
11808 \family typewriter
11809
11810 \backslash
11811 textwidth
11812 \family default
11813 .
11814  
11815 \end_layout
11816
11817 \begin_layout Standard
11818 It's possible to change the spacing between a foilhead and the body of the
11819  foil by adjusting the length specified by 
11820 \family typewriter
11821
11822 \backslash
11823 foilheadskip
11824 \family default
11825 .
11826  For example, to make 
11827 \emph on
11828 all
11829 \emph default
11830  foilheads 0.5
11831 \begin_inset space \space{}
11832 \end_inset
11833
11834 in closer to their bodies put the following in the preamble: 
11835 \family typewriter
11836
11837 \backslash
11838 setlength{
11839 \backslash
11840 foilheadskip}{-0.5in}
11841 \end_layout
11842
11843 \begin_layout Standard
11844 The spacings around floats can be adjusted by setting these lengths:
11845 \end_layout
11846
11847 \begin_layout Labeling
11848 \labelwidthstring MMMMMMMMMMM
11849
11850 \family typewriter
11851
11852 \backslash
11853 abovefloatskip
11854 \family default
11855  Separation between the text and the top of the float
11856 \end_layout
11857
11858 \begin_layout Labeling
11859 \labelwidthstring MMMMMMMMMMM
11860
11861 \family typewriter
11862
11863 \backslash
11864 abovecaptionskip
11865 \family default
11866  Separation between the float and the caption
11867 \end_layout
11868
11869 \begin_layout Labeling
11870 \labelwidthstring MMMMMMMMMMM
11871
11872 \family typewriter
11873
11874 \backslash
11875 belowcaptionskip
11876 \family default
11877  Separation between the caption and the following text
11878 \end_layout
11879
11880 \begin_layout Labeling
11881 \labelwidthstring MMMMMMMMMMM
11882
11883 \family typewriter
11884
11885 \backslash
11886 captionwidth
11887 \family default
11888  You can make the captions narrower than the surrounding text by adjusting
11889  this length.
11890  Best done relative to 
11891 \family typewriter
11892
11893 \backslash
11894 textwidth
11895 \family default
11896 .
11897 \end_layout
11898
11899 \begin_layout Standard
11900 There are also several title page related lengths that you may find useful
11901  if you have a long title or several authors:
11902 \end_layout
11903
11904 \begin_layout Labeling
11905 \labelwidthstring MMMMMMMMMMM
11906
11907 \family typewriter
11908
11909 \backslash
11910 abovetitleskip
11911 \family default
11912  Separation from headers to 
11913 \family sans
11914 Title
11915 \end_layout
11916
11917 \begin_layout Labeling
11918 \labelwidthstring MMMMMMMMMMM
11919
11920 \family typewriter
11921
11922 \backslash
11923 titleauthorskip
11924 \family default
11925  between 
11926 \family sans
11927 Title
11928 \family default
11929  and 
11930 \family sans
11931 Author
11932 \family default
11933  environments
11934 \end_layout
11935
11936 \begin_layout Labeling
11937 \labelwidthstring MMMMMMMMMMM
11938
11939 \family typewriter
11940
11941 \backslash
11942 authorauthorskip
11943 \family default
11944  between multiple 
11945 \family sans
11946 Author
11947 \family default
11948  lines
11949 \end_layout
11950
11951 \begin_layout Labeling
11952 \labelwidthstring MMMMMMMMMMM
11953
11954 \family typewriter
11955
11956 \backslash
11957 authordateskip
11958 \family default
11959  between the 
11960 \family sans
11961 Author
11962 \family default
11963  and the 
11964 \family sans
11965 Date
11966 \end_layout
11967
11968 \begin_layout Labeling
11969 \labelwidthstring MMMMMMMMMMM
11970
11971 \family typewriter
11972
11973 \backslash
11974 dateabstractskip
11975 \family default
11976  between the 
11977 \family sans
11978 Date
11979 \family default
11980  and the 
11981 \family sans
11982 Abstract
11983 \end_layout
11984
11985 \begin_layout Standard
11986 The last length related command affects all the list environments.
11987  If you place 
11988 \family typewriter
11989
11990 \backslash
11991 zerolistvertdimens
11992 \family default
11993  
11994 \emph on
11995 inside
11996 \emph default
11997  a list environment then all the vertical spacing between the list items
11998  is removed.
11999  Note that this is a command not a length so it doesn't require 
12000 \family typewriter
12001
12002 \backslash
12003 setlength
12004 \family default
12005  like the stuff mentioned above.
12006 \end_layout
12007
12008 \begin_layout Subsubsection
12009 Headers and Footers
12010 \end_layout
12011
12012 \begin_layout Standard
12013 The 
12014 \family typewriter
12015
12016 \backslash
12017 LogoOn
12018 \family default
12019  and 
12020 \family typewriter
12021
12022 \backslash
12023 LogoOff
12024 \family default
12025  commands control whether the logo in the 
12026 \family sans
12027 MyLogo
12028 \family default
12029  definition appear on a given page.
12030  If you put 
12031 \family typewriter
12032
12033 \backslash
12034 LogoOff
12035 \family default
12036  in the preamble then none of the foils will have the logo on them.
12037  If you don't want the logo on a particular page place the 
12038 \family typewriter
12039
12040 \backslash
12041 LogoOff
12042 \family default
12043  directly after the foilhead of that page and the 
12044 \family typewriter
12045
12046 \backslash
12047 LogoOn
12048 \family default
12049  directly after the next foilhead.
12050 \end_layout
12051
12052 \begin_layout Standard
12053 If you decide to use the 
12054 \family sans
12055 fancy
12056 \family default
12057  page style setting in the 
12058 \family sans
12059 Document
12060 \begin_inset space ~
12061 \end_inset
12062
12063 Layout
12064 \family default
12065  dialog you should probably add 
12066 \family typewriter
12067
12068 \backslash
12069 let
12070 \backslash
12071 headwidth
12072 \backslash
12073 textwidth
12074 \family default
12075  to your preamble so headers and footers on landscape pages are correctly
12076  placed when rotated.
12077  This is due to some clashes between the page layouts provided by the 
12078 \family sans
12079 fancyheadings
12080 \family default
12081  package and the 
12082 \family sans
12083 foils
12084 \family default
12085  class.
12086 \end_layout
12087
12088 \begin_layout Section
12089 Hollywood (Hollywood spec scripts)
12090 \end_layout
12091
12092 \begin_layout Standard
12093 by 
12094 \shape smallcaps
12095 Garst Reese
12096 \end_layout
12097
12098 \begin_layout Subsection
12099 Introduction
12100 \end_layout
12101
12102 \begin_layout Standard
12103 Getting the format of a Hollywood script right is a 
12104 \begin_inset Quotes eld
12105 \end_inset
12106
12107 rite of passage.
12108 \begin_inset Quotes erd
12109 \end_inset
12110
12111  It is designed to make the readers focus on content and to be easy and
12112  familiar for the actors to read.
12113  Each page of a script should be one minute of film.
12114  Nothing goes in a script that you cannot see or hear on screen.
12115  The courier 12 pt font should be used throughout.
12116  No italics.
12117 \end_layout
12118
12119 \begin_layout Subsection
12120 Special problems
12121 \end_layout
12122
12123 \begin_layout Standard
12124 Speakers' lines should NEVER break in mid-sentence.
12125  If a speaker's lines continue over a page break, repeat the 
12126 \family sans
12127 Speaker
12128 \family default
12129  title followed by (Cont'd).
12130 \end_layout
12131
12132 \begin_layout Subsection
12133 Special features
12134 \end_layout
12135
12136 \begin_layout Standard
12137 Insert the 
12138 \family sans
12139 Speaker
12140 \family default
12141  names as labels then cross-reference the label to insert the name.
12142  The cross-reference dialog will show the current cast of characters.
12143  You can use this to insert the speaker name in narratives also.
12144 \end_layout
12145
12146 \begin_layout Subsection
12147 Paper size and Margins
12148 \end_layout
12149
12150 \begin_layout Standard
12151 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12152 \end_layout
12153
12154 \begin_layout Subsection
12155 Environments
12156 \end_layout
12157
12158 \begin_layout Standard
12159 The following environments are available.
12160  You can use hollywood.bind to get the bind keys shown at the right.
12161 \end_layout
12162
12163 \begin_layout Itemize
12164
12165 \family sans
12166 Standard
12167 \begin_inset Newline newline
12168 \end_inset
12169
12170
12171 \family default
12172 Used where nothing else works.
12173  Try to avoid it.
12174 \end_layout
12175
12176 \begin_layout Itemize
12177
12178 \family sans
12179 FADE_IN
12180 \family default
12181 :
12182 \begin_inset space \hfill{}
12183 \end_inset
12184
12185
12186 \family sans
12187 M-z S-I
12188 \family default
12189
12190 \begin_inset Newline newline
12191 \end_inset
12192
12193 Usually followed by something like 
12194 \begin_inset Quotes eld
12195 \end_inset
12196
12197 on Sally waking up.
12198 \begin_inset Quotes erd
12199 \end_inset
12200
12201
12202 \end_layout
12203
12204 \begin_layout Itemize
12205
12206 \family sans
12207 INT:
12208 \begin_inset space \hfill{}
12209 \end_inset
12210
12211 M-z i
12212 \begin_inset Newline newline
12213 \end_inset
12214
12215
12216 \family default
12217 Introduces a new INTERIOR camera set-up.
12218  Always followed by DAY or NIGHT, or something similar to define the lighting
12219  required.
12220  Everthing on this line in CAPS.
12221 \end_layout
12222
12223 \begin_layout Itemize
12224
12225 \family sans
12226 EXT:
12227 \begin_inset space \hfill{}
12228 \end_inset
12229
12230 M-z e
12231 \begin_inset Newline newline
12232 \end_inset
12233
12234
12235 \family default
12236 Introduces a new EXTERIOR camera set-up.
12237  Everthing on this line in CAPS.
12238 \end_layout
12239
12240 \begin_layout Itemize
12241
12242 \family sans
12243 Speaker
12244 \begin_inset space \hfill{}
12245 \end_inset
12246
12247 M-z s
12248 \begin_inset Newline newline
12249 \end_inset
12250
12251
12252 \family default
12253 The character speaking.
12254 \end_layout
12255
12256 \begin_layout Itemize
12257
12258 \family sans
12259 Parenthetical
12260 \begin_inset space \hfill{}
12261 \end_inset
12262
12263 M-z p
12264 \begin_inset Newline newline
12265 \end_inset
12266
12267
12268 \family default
12269 Instructions to the speaker.
12270  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12271 .
12272  Both will be printed.
12273 \end_layout
12274
12275 \begin_layout Itemize
12276
12277 \family sans
12278 Dialogue
12279 \begin_inset space \hfill{}
12280 \end_inset
12281
12282 M-z d
12283 \begin_inset Newline newline
12284 \end_inset
12285
12286
12287 \family default
12288 What the 
12289 \family sans
12290 Speaker
12291 \family default
12292  says.
12293 \end_layout
12294
12295 \begin_layout Itemize
12296
12297 \family sans
12298 Transition
12299 \begin_inset space \hfill{}
12300 \end_inset
12301
12302 M-z t
12303 \begin_inset Newline newline
12304 \end_inset
12305
12306
12307 \family default
12308 Camera movement instruction.
12309  e.
12310 \begin_inset space \thinspace{}
12311 \end_inset
12312
12313 g.
12314 \begin_inset space \space{}
12315 \end_inset
12316
12317 CUT TO:
12318 \end_layout
12319
12320 \begin_layout Itemize
12321
12322 \family sans
12323 FADE OUT:
12324 \begin_inset space \hfill{}
12325 \end_inset
12326
12327 M-z S-I
12328 \end_layout
12329
12330 \begin_layout Itemize
12331
12332 \family sans
12333 Author
12334 \begin_inset space \hfill{}
12335 \end_inset
12336
12337 M-z S-A
12338 \end_layout
12339
12340 \begin_layout Itemize
12341
12342 \family sans
12343 Title
12344 \begin_inset space \hfill{}
12345 \end_inset
12346
12347 M-z S-T
12348 \end_layout
12349
12350 \begin_layout Itemize
12351
12352 \family sans
12353 Right_Address
12354 \begin_inset space \hfill{}
12355 \end_inset
12356
12357 M-z r
12358 \end_layout
12359
12360 \begin_layout Subsection
12361 Script jargon
12362 \end_layout
12363
12364 \begin_layout Itemize
12365 (O.S) — off screen
12366 \end_layout
12367
12368 \begin_layout Itemize
12369 (V.0) — voice over
12370 \end_layout
12371
12372 \begin_layout Itemize
12373 b.
12374 \begin_inset space \thinspace{}
12375 \end_inset
12376
12377 g.
12378  — background
12379 \end_layout
12380
12381 \begin_layout Itemize
12382 C.U.
12383  — close-up
12384 \end_layout
12385
12386 \begin_layout Itemize
12387 PAN — camera movement
12388 \end_layout
12389
12390 \begin_layout Itemize
12391 INSERT — cut to close-up of
12392 \end_layout
12393
12394 \begin_layout Section
12395 ijmpc and ijmpd
12396 \end_layout
12397
12398 \begin_layout Standard
12399 by 
12400 \noun on
12401 Panayotis Papasotiriou
12402 \end_layout
12403
12404 \begin_layout Subsection
12405 Overview
12406 \end_layout
12407
12408 \begin_layout Standard
12409 The ijmpc package is a set of macros that facilitates electronic manuscript
12410  submission to the 
12411 \emph on
12412 International Journal of Modern Physics C
12413 \emph default
12414 .
12415  Similarly, the ijmpd package is for creating manuscripts to be submitted
12416  to the 
12417 \emph on
12418 International Journal of Modern Physics D
12419 \emph default
12420 .
12421  Both journals are published by World Scientific.
12422  The corresponding document classes are named 
12423 \family typewriter
12424 ws-ijmpc.cls
12425 \family default
12426  and 
12427 \family typewriter
12428 ws-ijmpd.cls
12429 \family default
12430 , respectively.
12431  These files, together with instructions for the authors, can be downloaded
12432  from the sites 
12433 \begin_inset Flex URL
12434 status collapsed
12435
12436 \begin_layout Plain Layout
12437
12438 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12439 \end_layout
12440
12441 \end_inset
12442
12443  and 
12444 \begin_inset Flex URL
12445 status collapsed
12446
12447 \begin_layout Plain Layout
12448
12449 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12450 \end_layout
12451
12452 \end_inset
12453
12454 .
12455  Both packages are modified versions of the standard 
12456 \begin_inset Quotes eld
12457 \end_inset
12458
12459 article
12460 \begin_inset Quotes erd
12461 \end_inset
12462
12463  package, and they are almost (but not exactly) identical.
12464  Most of their features are supported by \SpecialChar LyX
12465 .
12466  I have used \SpecialChar LyX
12467  successfully to write articles submitted to both journals
12468  without any problem.
12469 \end_layout
12470
12471 \begin_layout Subsection
12472 Writing a paper
12473 \end_layout
12474
12475 \begin_layout Standard
12476 As usual, the easiest way to write a paper is to start with a template.
12477  Click on 
12478 \family sans
12479 File\SpecialChar menuseparator
12480 New from
12481 \family default
12482  
12483 \family sans
12484 Template
12485 \family default
12486 , then choose the 
12487 \family typewriter
12488 ijmpc.lyx
12489 \family default
12490  or 
12491 \family typewriter
12492 ijmpd.lyx
12493 \family default
12494  template.
12495  This will give an (almost) empty document that includes the most common
12496  fields found in a manuscript.
12497  Simply overwrite the existing text (including the brackets, 
12498 \family typewriter
12499 <>
12500 \family default
12501 ) with your text.
12502  You should keep in mind the following remarks.
12503 \end_layout
12504
12505 \begin_layout Enumerate
12506 \SpecialChar LyX
12507  won't let you change the font size and the page style of the document,
12508  because such modifications are not allowed by both packages.
12509 \end_layout
12510
12511 \begin_layout Enumerate
12512 The language of the document should not be changed.
12513  Before previewing your paper, be sure that the babel package is not used.
12514  To do this, click on 
12515 \family sans
12516 Tools\SpecialChar menuseparator
12517 Preferences
12518 \family default
12519 , select the 
12520 \family sans
12521 Lang Opts
12522 \family default
12523  tab, deselect the 
12524 \family sans
12525 Use babel
12526 \family default
12527  checkbox in the language settings, and click on 
12528 \family sans
12529 Apply
12530 \family default
12531  (or 
12532 \family sans
12533 Save
12534 \family default
12535 , if you wish to make this change permanent).
12536 \end_layout
12537
12538 \begin_layout Enumerate
12539 The 
12540 \begin_inset Quotes eld
12541 \end_inset
12542
12543 Keywords
12544 \begin_inset Quotes erd
12545 \end_inset
12546
12547  style must be used to define keywords.
12548 \end_layout
12549
12550 \begin_layout Enumerate
12551 The ijmpc package provides a style named 
12552 \begin_inset Quotes eld
12553 \end_inset
12554
12555 Classification Codes
12556 \begin_inset Quotes erd
12557 \end_inset
12558
12559 , which can be used to define classification codes, such as PACS numbers.
12560  Note that this facility is not supported by the ijmpd package.
12561 \end_layout
12562
12563 \begin_layout Enumerate
12564 Several new environments are available: 
12565 \begin_inset Quotes eld
12566 \end_inset
12567
12568 Definition
12569 \begin_inset Quotes erd
12570 \end_inset
12571
12572
12573 \begin_inset Quotes eld
12574 \end_inset
12575
12576 Step
12577 \begin_inset Quotes erd
12578 \end_inset
12579
12580
12581 \begin_inset Quotes eld
12582 \end_inset
12583
12584 Example
12585 \begin_inset Quotes erd
12586 \end_inset
12587
12588
12589 \begin_inset Quotes eld
12590 \end_inset
12591
12592 Remark
12593 \begin_inset Quotes erd
12594 \end_inset
12595
12596
12597 \begin_inset Quotes eld
12598 \end_inset
12599
12600 Notation
12601 \begin_inset Quotes erd
12602 \end_inset
12603
12604
12605 \begin_inset Quotes eld
12606 \end_inset
12607
12608 Theorem
12609 \begin_inset Quotes erd
12610 \end_inset
12611
12612
12613 \begin_inset Quotes eld
12614 \end_inset
12615
12616 Proof
12617 \begin_inset Quotes erd
12618 \end_inset
12619
12620
12621 \begin_inset Quotes eld
12622 \end_inset
12623
12624 Corollary
12625 \begin_inset Quotes erd
12626 \end_inset
12627
12628
12629 \begin_inset Quotes eld
12630 \end_inset
12631
12632 Lemma
12633 \begin_inset Quotes erd
12634 \end_inset
12635
12636
12637 \begin_inset Quotes eld
12638 \end_inset
12639
12640 Proposition
12641 \begin_inset Quotes erd
12642 \end_inset
12643
12644
12645 \begin_inset Quotes eld
12646 \end_inset
12647
12648 Prop
12649 \begin_inset Quotes erd
12650 \end_inset
12651
12652
12653 \begin_inset Quotes eld
12654 \end_inset
12655
12656 Question
12657 \begin_inset Quotes erd
12658 \end_inset
12659
12660
12661 \begin_inset Quotes eld
12662 \end_inset
12663
12664 Claim
12665 \begin_inset Quotes erd
12666 \end_inset
12667
12668 , and 
12669 \begin_inset Quotes eld
12670 \end_inset
12671
12672 Conjecture
12673 \begin_inset Quotes erd
12674 \end_inset
12675
12676 .
12677  Their use is more or less obvious.
12678  \SpecialChar LyX
12679  supports all these environments; it will use the proper label, text style,
12680  and numbering scheme for each of them.
12681 \end_layout
12682
12683 \begin_layout Enumerate
12684 Both packages use basic citations; the natbib package should not be used.
12685  In \SpecialChar LyX
12686 , citation references are shown as usual; in the output, citations are
12687  shown as superscripts.
12688  If you want to use a citation as normal text, you should use the 
12689 \family typewriter
12690 refcite
12691 \family default
12692  command, e.
12693 \begin_inset space \thinspace{}
12694 \end_inset
12695
12696 g.
12697 \begin_inset space \space{}
12698 \end_inset
12699
12700
12701 \begin_inset Quotes eld
12702 \end_inset
12703
12704 See Ref.
12705 \begin_inset space \space{}
12706 \end_inset
12707
12708
12709 \family typewriter
12710
12711 \backslash
12712 refcite{key}
12713 \family default
12714
12715 \begin_inset Quotes erd
12716 \end_inset
12717
12718 .
12719 \end_layout
12720
12721 \begin_layout Enumerate
12722 There is no 
12723 \begin_inset Quotes eld
12724 \end_inset
12725
12726 Acknowledgments
12727 \begin_inset Quotes erd
12728 \end_inset
12729
12730  section in both packages.
12731  To put acknowledgments, just use the 
12732 \begin_inset Quotes eld
12733 \end_inset
12734
12735 Section*
12736 \begin_inset Quotes erd
12737 \end_inset
12738
12739  environment.
12740 \end_layout
12741
12742 \begin_layout Enumerate
12743 Appendices may be added to the paper, 
12744 \emph on
12745 after
12746 \emph default
12747  the Acknowledgments and 
12748 \shape italic
12749 before
12750 \shape default
12751  the References.
12752  \SpecialChar LyX
12753  provides a special environment, called 
12754 \begin_inset Quotes eld
12755 \end_inset
12756
12757 Appendices Section
12758 \begin_inset Quotes erd
12759 \end_inset
12760
12761  which marks the beginning of the appendices.
12762  This environment should be left blank; it just sends a \SpecialChar LaTeX
12763  command, but nothing
12764  is really printed.
12765  In \SpecialChar LyX
12766 , the word 
12767 \begin_inset Quotes eld
12768 \end_inset
12769
12770 Appendix
12771 \begin_inset Quotes erd
12772 \end_inset
12773
12774  is printed with blue letters, as a signal that all sections after that
12775  point are appendices.
12776  To write an appendix, use the 
12777 \begin_inset Quotes eld
12778 \end_inset
12779
12780 Appendix
12781 \begin_inset Quotes erd
12782 \end_inset
12783
12784  environment.
12785  \SpecialChar LyX
12786  will number each appendix with capital letters, as required by both journals.
12787  Note that 
12788 \begin_inset Quotes eld
12789 \end_inset
12790
12791 Appendices Section
12792 \begin_inset Quotes erd
12793 \end_inset
12794
12795  
12796 \emph on
12797 must
12798 \emph default
12799  be present before the first appendix; if not, all appendices will be numbered
12800  as normal sections in the output.
12801 \end_layout
12802
12803 \begin_layout Enumerate
12804 The ijmpc and the ijmpd packages use the 
12805 \family typewriter
12806 tbl
12807 \family default
12808  command to implement table captions.
12809  As a result, a table created by \SpecialChar LyX
12810  is printed correctly, but its caption
12811  is ignored.
12812  However, you can use some \SpecialChar TeX
12813  code to overcome this problem, so that captions
12814  are printed as expected.
12815  To do so, create a float table as usual, remove the caption, and replace
12816  it with the \SpecialChar TeX
12817  code 
12818 \family typewriter
12819
12820 \backslash
12821 tbl{
12822 \emph on
12823 your table caption
12824 \emph default
12825 }{
12826 \family default
12827  (sic); you must also the \SpecialChar TeX
12828  code 
12829 \family typewriter
12830 }
12831 \family default
12832  immediately after the tabular material.
12833  Study the example table included in the template files to see how this
12834  trick is implemented.
12835  Alternatively, If you need table captions, you should implement the whole
12836  table float in a 
12837 \family typewriter
12838 .tex
12839 \family default
12840  file, then include this file to the \SpecialChar LyX
12841  document (
12842 \family sans
12843 Insert\SpecialChar menuseparator
12844 File\SpecialChar menuseparator
12845 Child
12846 \begin_inset space ~
12847 \end_inset
12848
12849 Document
12850 \family default
12851 ).
12852  Details on how to create a table float can be found in the files 
12853 \family typewriter
12854 ws-ijmpc.tex
12855 \family default
12856  and 
12857 \family typewriter
12858 ws-ijmpd.tex
12859 \family default
12860 , included in the corresponding packages.
12861 \end_layout
12862
12863 \begin_layout Subsection
12864 Preparing a paper for submission
12865 \end_layout
12866
12867 \begin_layout Standard
12868 Before you submit your paper you must export the \SpecialChar LyX
12869  document as a \SpecialChar LaTeX
12870  file (
12871 \family sans
12872 File\SpecialChar menuseparator
12873 Export\SpecialChar menuseparator
12874 \SpecialChar LaTeX
12875
12876 \family default
12877 )
12878 \begin_inset Foot
12879 status open
12880
12881 \begin_layout Plain Layout
12882 Actually you have the choice between \SpecialChar LaTeX
12883  (plain) and pdflatex.
12884  If you intend to use pdflatex to prepare the paper, you should use the
12885  pdflatex option so that included graphics are converted to PDF format,
12886  ready for use by pdflatex.
12887 \end_layout
12888
12889 \end_inset
12890
12891 , then make the following changes to the resulting 
12892 \family typewriter
12893 .tex
12894 \family default
12895  file.
12896 \end_layout
12897
12898 \begin_layout Enumerate
12899 Remove the comment lines before the 
12900 \family typewriter
12901
12902 \backslash
12903 documentclass
12904 \family default
12905  command.
12906 \end_layout
12907
12908 \begin_layout Enumerate
12909 Remove everything between (and including) the 
12910 \family typewriter
12911
12912 \backslash
12913 makeatletter
12914 \family default
12915  and 
12916 \family typewriter
12917
12918 \backslash
12919 makeatother
12920 \family default
12921  commands, except for any commands you specifically put into the \SpecialChar LaTeX
12922  preamble.
12923 \end_layout
12924
12925 \begin_layout Standard
12926 The modified 
12927 \family typewriter
12928 .tex
12929 \family default
12930  file should be saved and processed through \SpecialChar LaTeX
12931  as many times as necessary.
12932  You may also want to check the resulting 
12933 \family typewriter
12934 .dvi
12935 \family default
12936  document.
12937 \end_layout
12938
12939 \begin_layout Subsection
12940 Use of \SpecialChar TeX
12941  code
12942 \end_layout
12943
12944 \begin_layout Standard
12945 The use of \SpecialChar TeX
12946  code is reduced to two commands, which must be placed at the
12947  top of the document.
12948  If you started writing your paper by using the 
12949 \family typewriter
12950 ijmpc.lyx
12951 \family default
12952  or the 
12953 \family typewriter
12954 ijmpd.lyx
12955 \family default
12956  template, the \SpecialChar TeX
12957  code needed is already in its place; you usually don't need
12958  to delete it.
12959  You may only modify the first \SpecialChar TeX
12960  code to specify the information printed
12961  to the top of odd and even pages (authors' names and short paper's title,
12962  respectively).
12963  This \SpecialChar TeX
12964  code must have the form 
12965 \family typewriter
12966
12967 \backslash
12968 markboth{Authors' Names}{Short Paper's Title}
12969 \family default
12970 .
12971 \end_layout
12972
12973 \begin_layout Section
12974 iopart
12975 \end_layout
12976
12977 \begin_layout Standard
12978 by 
12979 \noun on
12980 Uwe Stöhr
12981 \end_layout
12982
12983 \begin_layout Subsection
12984 Overview
12985 \end_layout
12986
12987 \begin_layout Standard
12988 The iopart package provides a document class to create electronic manuscript
12989  submission to the journals published by the Institute of Physics.
12990  Instructions for the authors how to create a paper using the iopart class
12991  can be downloaded together with the iopart package from the site 
12992 \begin_inset Flex URL
12993 status collapsed
12994
12995 \begin_layout Plain Layout
12996
12997 ftp://ftp.iop.org/pub/journals/latex2e
12998 \end_layout
12999
13000 \end_inset
13001
13002 .
13003 \end_layout
13004
13005 \begin_layout Subsection
13006 Writing a paper
13007 \end_layout
13008
13009 \begin_layout Standard
13010 The easiest way to write a paper is to start with the file 
13011 \emph on
13012 IOP-article.lyx
13013 \emph default
13014  that is available in \SpecialChar LyX
13015 's examples files folder.
13016  Open this file, save it under a new name, and start writing.
13017  The example file explains how to use the special text environments.
13018  Here are the most important advices:
13019 \end_layout
13020
13021 \begin_layout Itemize
13022 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13023  two options 
13024 \family sans
13025 Use AMS math package
13026 \family default
13027  in the document settings under 
13028 \family sans
13029 Math Options
13030 \family default
13031  are not used!
13032 \end_layout
13033
13034 \begin_layout Itemize
13035
13036 \size normal
13037 The title environment defines the kind of your paper.
13038  So use one of the following environments for the title:
13039 \size default
13040
13041 \begin_inset Separator parbreak
13042 \end_inset
13043
13044
13045 \end_layout
13046
13047 \begin_deeper
13048 \begin_layout Itemize
13049
13050 \family sans
13051 \size normal
13052 Title
13053 \family default
13054  for a Paper
13055 \end_layout
13056
13057 \begin_layout Itemize
13058
13059 \family sans
13060 \size normal
13061 Review
13062 \family default
13063  for a Review
13064 \end_layout
13065
13066 \begin_layout Itemize
13067
13068 \family sans
13069 \size normal
13070 Topical
13071 \family default
13072  for a Topical review
13073 \end_layout
13074
13075 \begin_layout Itemize
13076
13077 \family sans
13078 \size normal
13079 Comment
13080 \family default
13081  for a Comment
13082 \end_layout
13083
13084 \begin_layout Itemize
13085
13086 \family sans
13087 \size normal
13088 Note
13089 \family default
13090  for a Note
13091 \end_layout
13092
13093 \begin_layout Itemize
13094
13095 \family sans
13096 \size normal
13097 Paper
13098 \family default
13099  for a Paper (same as Title)
13100 \end_layout
13101
13102 \begin_layout Itemize
13103
13104 \family sans
13105 \size normal
13106 Prelim
13107 \family default
13108  for a Preliminary communication
13109 \end_layout
13110
13111 \begin_layout Itemize
13112
13113 \family sans
13114 \size normal
13115 Rapid
13116 \family default
13117  for a Rapid communication
13118 \end_layout
13119
13120 \begin_layout Itemize
13121
13122 \family sans
13123 \size normal
13124 Letter
13125 \family default
13126  for a Letter to the editor
13127 \end_layout
13128
13129 \end_deeper
13130 \begin_layout Itemize
13131
13132 \size normal
13133 All title environments except of 
13134 \family sans
13135 Letter
13136 \family default
13137  can have an optional short title.
13138 \end_layout
13139
13140 \begin_layout Itemize
13141 There is a general title environment 
13142 \family sans
13143 Article
13144 \family default
13145  which is not directly supported by the \SpecialChar LyX
13146 .
13147  This can be used as \SpecialChar TeX
13148  code when your document doesn't fit into one of the
13149  other title types.
13150 \end_layout
13151
13152 \begin_layout Standard
13153 For more informations like hints for special table and formula formatting,
13154  look at the IOP author guidelines.
13155 \end_layout
13156
13157 \begin_layout Section
13158 Kluwer
13159 \end_layout
13160
13161 \begin_layout Standard
13162 by 
13163 \noun on
13164 Panayotis Papasotiriou
13165 \end_layout
13166
13167 \begin_layout Subsection
13168 Overview
13169 \end_layout
13170
13171 \begin_layout Standard
13172 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13173  that facilitates electronic manuscript submission to the journals they
13174  publish.
13175  Most known of them (at least in my domain of interest) are 
13176 \emph on
13177 Astrophysics and Space Science
13178 \emph default
13179  and 
13180 \emph on
13181 Solar Physics
13182 \emph default
13183 , but there are many others (see a complete list at 
13184 \begin_inset Flex URL
13185 status open
13186
13187 \begin_layout Plain Layout
13188
13189 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13190 \end_layout
13191
13192 \end_inset
13193
13194 ).
13195  The Kluwer package may be downloaded from the site 
13196 \begin_inset Flex URL
13197 status collapsed
13198
13199 \begin_layout Plain Layout
13200
13201 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13202 \end_layout
13203
13204 \end_inset
13205
13206 .
13207  A complete user guide is contained in that package (but it can also be
13208  downloaded separately).
13209 \end_layout
13210
13211 \begin_layout Standard
13212 \SpecialChar LyX
13213  supports many features of the package but not everything.
13214  However, the \SpecialChar TeX
13215  code needed is reduced to some 
13216 \begin_inset Quotes eld
13217 \end_inset
13218
13219 peculiar
13220 \begin_inset Quotes erd
13221 \end_inset
13222
13223  commands of the package (see
13224 \begin_inset space ~
13225 \end_inset
13226
13227
13228 \begin_inset CommandInset ref
13229 LatexCommand ref
13230 reference "subsec:kluwer_peculiarities"
13231
13232 \end_inset
13233
13234 ).
13235  I have recently used \SpecialChar LyX
13236  to write an article submitted to the 
13237 \emph on
13238 Astrophysics and Space Science
13239 \emph default
13240  without any problem.
13241 \end_layout
13242
13243 \begin_layout Subsection
13244 Writing a paper
13245 \end_layout
13246
13247 \begin_layout Standard
13248 The easiest way to write a paper is to start with the Kluwer template file.
13249  Click on 
13250 \family sans
13251 File\SpecialChar menuseparator
13252 New from
13253 \family default
13254  
13255 \family sans
13256 Template
13257 \family default
13258 , then choose the 
13259 \family typewriter
13260 kluwer.lyx
13261 \family default
13262  template.
13263  This will give an (almost) empty document that includes the most common
13264  fields found in a manuscript and a short description of their use.
13265  As in most templates, simply overwrite the existing text (including the
13266  brackets, 
13267 \family typewriter
13268 <>
13269 \family default
13270 ) with the correct information.
13271 \end_layout
13272
13273 \begin_layout Subsection
13274 Preparing a paper for submission
13275 \end_layout
13276
13277 \begin_layout Standard
13278 As in the AAS\SpecialChar TeX
13279  package, before you submit your paper to a journal you must
13280  
13281 \begin_inset Quotes eld
13282 \end_inset
13283
13284 postprocess
13285 \begin_inset Quotes erd
13286 \end_inset
13287
13288  it as follows.
13289 \end_layout
13290
13291 \begin_layout Enumerate
13292 Export your paper as a \SpecialChar LaTeX
13293  file.
13294  To do this, click on 
13295 \family sans
13296 File\SpecialChar menuseparator
13297 Export\SpecialChar menuseparator
13298 \SpecialChar LaTeX
13299
13300 \family default
13301 .
13302  
13303 \end_layout
13304
13305 \begin_layout Enumerate
13306 Edit the resulting 
13307 \family typewriter
13308 .tex
13309 \family default
13310  file with a text editor and make the following changes
13311 \begin_inset Separator parbreak
13312 \end_inset
13313
13314
13315 \end_layout
13316
13317 \begin_deeper
13318 \begin_layout Enumerate
13319 remove the comment lines before the 
13320 \family typewriter
13321
13322 \backslash
13323 documentclass
13324 \family default
13325  command,
13326 \end_layout
13327
13328 \begin_layout Enumerate
13329 remove everything between (and including) the 
13330 \family typewriter
13331
13332 \backslash
13333 makeatletter
13334 \family default
13335  and 
13336 \family typewriter
13337
13338 \backslash
13339 makeatother
13340 \family default
13341  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13342  preamble.
13343 \end_layout
13344
13345 \begin_layout Standard
13346 Save the resulting 
13347 \family typewriter
13348 .tex
13349 \family default
13350  file.
13351 \end_layout
13352
13353 \end_deeper
13354 \begin_layout Enumerate
13355 Run the 
13356 \family typewriter
13357 .tex
13358 \family default
13359  file through \SpecialChar LaTeX
13360  as many times as necessary (usually up to three).
13361 \end_layout
13362
13363 \begin_layout Enumerate
13364 View the resulting 
13365 \family typewriter
13366 .dvi
13367 \family default
13368  document using, e.
13369 \begin_inset space \thinspace{}
13370 \end_inset
13371
13372 g.
13373 \begin_inset space \space{}
13374 \end_inset
13375
13376
13377 \family sans
13378 xdvi
13379 \family default
13380 , and check if everything is OK (it should, if you didn't make any mistake).
13381 \end_layout
13382
13383 \begin_layout Subsection
13384 \begin_inset Quotes eld
13385 \end_inset
13386
13387 Peculiarities
13388 \begin_inset Quotes erd
13389 \end_inset
13390
13391  of the Kluwer package
13392 \begin_inset CommandInset label
13393 LatexCommand label
13394 name "subsec:kluwer_peculiarities"
13395
13396 \end_inset
13397
13398
13399 \end_layout
13400
13401 \begin_layout Standard
13402 The Kluwer package has the following 
13403 \begin_inset Quotes eld
13404 \end_inset
13405
13406 peculiarities
13407 \begin_inset Quotes erd
13408 \end_inset
13409
13410 .
13411 \end_layout
13412
13413 \begin_layout Enumerate
13414 It is possible to write multiple articles in the same \SpecialChar LaTeX
13415  file
13416 \begin_inset Foot
13417 status collapsed
13418
13419 \begin_layout Plain Layout
13420 I can't imagine any good reason to do this.
13421 \end_layout
13422
13423 \end_inset
13424
13425 .
13426  Each article must be included in the environment 
13427 \begin_inset Quotes eld
13428 \end_inset
13429
13430 article
13431 \begin_inset Quotes erd
13432 \end_inset
13433
13434 .
13435  Unfortunately, this environment cannot be omitted, even if you write just
13436  one article.
13437  Therefore, each article starts with the command 
13438 \family typewriter
13439
13440 \backslash
13441 begin{article}
13442 \family default
13443  and, obviously, ends with the command 
13444 \family typewriter
13445
13446 \backslash
13447 end{article}
13448 \family default
13449 .
13450  Although this can be implemented in \SpecialChar LyX
13451 , I didn't included it, since it looks
13452  ugly and can confuse the novice user.
13453  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13454  code (the
13455  well-known 
13456 \begin_inset Quotes eld
13457 \end_inset
13458
13459 \SpecialChar TeX
13460  code
13461 \begin_inset Quotes erd
13462 \end_inset
13463
13464 ).
13465 \end_layout
13466
13467 \begin_layout Enumerate
13468 Information given at the beginning of the article (i.
13469 \begin_inset space \thinspace{}
13470 \end_inset
13471
13472 e.
13473 \begin_inset space \space{}
13474 \end_inset
13475
13476 title, subtitle, author, institution, running title, running author, abstract
13477  and keywords) must be included in an environment called 
13478 \begin_inset Quotes eld
13479 \end_inset
13480
13481 opening
13482 \begin_inset Quotes erd
13483 \end_inset
13484
13485 .
13486  This is not implemented in \SpecialChar LyX
13487 , so you must enter title, subtitle etc.
13488 \begin_inset space ~
13489 \end_inset
13490
13491 between two \SpecialChar TeX
13492  code lines (
13493 \family typewriter
13494
13495 \backslash
13496 begin{opening}
13497 \family default
13498  and 
13499 \family typewriter
13500
13501 \backslash
13502 end{opening}
13503 \family default
13504 ).
13505 \end_layout
13506
13507 \begin_layout Enumerate
13508 According to the user manual, the label of each bibliography item must be
13509  written as 
13510 \family typewriter
13511
13512 \backslash
13513 protect
13514 \backslash
13515 citeauthoryear{
13516 \family default
13517 \emph on
13518 author(s)
13519 \family typewriter
13520 \emph default
13521 }{
13522 \family default
13523 \emph on
13524 year
13525 \family typewriter
13526 \emph default
13527 }
13528 \family default
13529 .
13530 \end_layout
13531
13532 \begin_layout Standard
13533 The 
13534 \family typewriter
13535 kluwer.lyx
13536 \family default
13537  template takes care of all these 
13538 \begin_inset Quotes eld
13539 \end_inset
13540
13541 peculiarities
13542 \begin_inset Quotes erd
13543 \end_inset
13544
13545 .
13546  If you start a new paper using this template you don't need to do anything
13547  special.
13548  Just 
13549 \end_layout
13550
13551 \begin_layout Enumerate
13552 don't delete the \SpecialChar TeX
13553  code included in the template, and
13554 \end_layout
13555
13556 \begin_layout Enumerate
13557 copy the example bibliography item included in the template and modify it
13558  as necessary to enter new bibliography items.
13559 \end_layout
13560
13561 \begin_layout Section
13562 Koma-Script
13563 \end_layout
13564
13565 \begin_layout Standard
13566 by 
13567 \noun on
13568 Bernd Rellermeyer
13569 \end_layout
13570
13571 \begin_layout Subsection
13572 Overview
13573 \end_layout
13574
13575 \begin_layout Standard
13576 The \SpecialChar LyX
13577  document classes 
13578 \emph on
13579 article (koma-script)
13580 \emph default
13581
13582 \emph on
13583 report (koma-script)
13584 \emph default
13585
13586 \emph on
13587 book
13588 \emph default
13589  
13590 \emph on
13591 (koma-script)
13592 \emph default
13593 , and 
13594 \emph on
13595 letter
13596 \emph default
13597  
13598 \emph on
13599 (koma-script)
13600 \emph default
13601  correspond to the \SpecialChar LaTeX
13602  document classes 
13603 \family typewriter
13604 scrartcl.cls
13605 \family default
13606
13607 \family typewriter
13608 scrreprt.cls
13609 \family default
13610
13611 \family typewriter
13612 scrbook.cls
13613 \family default
13614 , and 
13615 \family typewriter
13616 scrlettr.cls
13617 \family default
13618 , resp.
13619 \begin_inset space ~
13620 \end_inset
13621
13622 of the Koma-Script family.
13623  They are replacements for the standard document classes 
13624 \family typewriter
13625 article.cls
13626 \family default
13627
13628 \family typewriter
13629 report.cls
13630 \family default
13631
13632 \family typewriter
13633 book.cls
13634 \family default
13635  and 
13636 \family typewriter
13637 letter.cls
13638 \family default
13639 , resp., and fit better to European typography conventions in a number of
13640  points.
13641 \end_layout
13642
13643 \begin_layout Itemize
13644 Standard character size is 11pt in 
13645 \emph on
13646 article (koma-script)
13647 \emph default
13648
13649 \emph on
13650 report (koma-script)
13651 \emph default
13652 , and 
13653 \emph on
13654 book (koma-script)
13655 \emph default
13656 , and 12pt in 
13657 \emph on
13658 letter (koma-script)
13659 \emph default
13660 .
13661 \end_layout
13662
13663 \begin_layout Itemize
13664 Headings, labels of the description environment, and a number of elements
13665  of the 
13666 \emph on
13667 letter (koma-script)
13668 \emph default
13669  document class are set in a bold sans serif font.
13670 \begin_inset Foot
13671 status collapsed
13672
13673 \begin_layout Plain Layout
13674 There is a big difference between the bold sans serif old cm fonts and new
13675  ec fonts, especially in the appearance of headings.
13676  In comparison, the ec bold sans serif fonts look a bit thin.
13677  Here the \SpecialChar LaTeX
13678  package 
13679 \family typewriter
13680 cmsd.sty by
13681 \family default
13682  
13683 \shape smallcaps
13684 Walter Schmidt
13685 \shape default
13686  helps to produce the 
13687 \begin_inset Quotes eld
13688 \end_inset
13689
13690 usual
13691 \begin_inset Quotes erd
13692 \end_inset
13693
13694  appearance when using the ec fonts.
13695 \end_layout
13696
13697 \end_inset
13698
13699  The numbering of chapter headings is made in the same way as the numbering
13700  of section headings, that is without the extra line 
13701 \begin_inset Quotes eld
13702 \end_inset
13703
13704 Chapter\SpecialChar ldots
13705
13706 \begin_inset Quotes erd
13707 \end_inset
13708
13709 .
13710  In addition, the appearance of the headings can be modified by using a
13711  number of options (in \SpecialChar LyX
13712  to be entered in the field 
13713 \family sans
13714 Extra
13715 \begin_inset space ~
13716 \end_inset
13717
13718 Options
13719 \family default
13720  of the dialog 
13721 \family sans
13722 Layout\SpecialChar menuseparator
13723 Document
13724 \family default
13725 ).
13726  
13727 \end_layout
13728
13729 \begin_layout Itemize
13730 The main means in the Koma-Script document classes to design the type area
13731  are the options 
13732 \family sans
13733 BCOR
13734 \family default
13735  and 
13736 \family sans
13737 DIV
13738 \family default
13739  (in \SpecialChar LyX
13740  to be entered in the extra class options field in the dialog 
13741 \family sans
13742 Document\SpecialChar menuseparator
13743 Settings
13744 \family default
13745 ).
13746  They make a clearer modification of page margins possible as do the options
13747  of the dialog 
13748 \family sans
13749 Document\SpecialChar menuseparator
13750 Settings
13751 \family default
13752 .
13753  
13754 \end_layout
13755
13756 \begin_layout Itemize
13757 The \SpecialChar LaTeX
13758  document classes of the Koma-Script family define a number of additional
13759  commands.
13760  Those part of it which makes sense in \SpecialChar LyX
13761  is implemented in corresponding
13762  paragraph types.
13763 \end_layout
13764
13765 \begin_layout Standard
13766 Detailed descriptions of the \SpecialChar LaTeX
13767  document classes of the Koma-Script family
13768  can be found in the Koma-Script documentation 
13769 \emph on
13770 scrguide
13771 \emph default
13772  (German) and 
13773 \emph on
13774 scrguien
13775 \emph default
13776  (English).
13777 \end_layout
13778
13779 \begin_layout Subsection
13780 article (koma-script), report (koma-script), and book (koma-script)
13781 \end_layout
13782
13783 \begin_layout Standard
13784 The document classes 
13785 \emph on
13786 article (koma-script)
13787 \emph default
13788
13789 \emph on
13790 report (koma-script)
13791 \emph default
13792 , and 
13793 \emph on
13794 book
13795 \emph default
13796  
13797 \emph on
13798 (koma-script)
13799 \emph default
13800  are implemented in the layout files 
13801 \family typewriter
13802 scrartcl.layout
13803 \family default
13804
13805 \family typewriter
13806 scrreprt.layout
13807 \family default
13808 , and 
13809 \family typewriter
13810 scrbook.layout
13811 \family default
13812 , resp.
13813  They contain all the paragraph types of the corresponding standard document
13814  classes 
13815 \emph on
13816 article
13817 \emph default
13818
13819 \emph on
13820 report
13821 \emph default
13822 , and 
13823 \emph on
13824 book
13825 \emph default
13826 , resp., partly modified, with the exception of the \SpecialChar LyX
13827  specific 
13828 \family sans
13829 List
13830 \family default
13831 -type, which is replaced by the new 
13832 \family sans
13833 Labeling
13834 \family default
13835 -type having the same functionality.
13836  Beside the 
13837 \family sans
13838 Labeling
13839 \family default
13840 -Type there is a number of new paragraph types added.
13841  They are 
13842 \emph on
13843 not
13844 \emph default
13845  part of 
13846 \emph on
13847 letter (koma-script)
13848 \emph default
13849 .
13850 \end_layout
13851
13852 \begin_layout Itemize
13853
13854 \family sans
13855 Addpart, Addchap
13856 \family default
13857
13858 \family sans
13859 Addsec
13860 \family default
13861 : are equivalents to 
13862 \family sans
13863 Part*, Chapter*
13864 \family default
13865  and 
13866 \family sans
13867 Section*
13868 \family default
13869 , resp., additionally inserting an entry in the table of contents.
13870  
13871 \family sans
13872 Addpart
13873 \family default
13874  and 
13875 \family sans
13876 Addchap
13877 \family default
13878  are not contained in 
13879 \emph on
13880 article (koma-script)
13881 \emph default
13882 .
13883 \end_layout
13884
13885 \begin_layout Itemize
13886
13887 \family sans
13888 Addchap*
13889 \family default
13890
13891 \family sans
13892 Addsec*
13893 \family default
13894 : behave exactly as 
13895 \family sans
13896 Addchap
13897 \family default
13898  and 
13899 \family sans
13900 Addsec
13901 \family default
13902 , resp., additionally clearing running heads.
13903  
13904 \family sans
13905 Addchap*
13906 \family default
13907  is not contained in 
13908 \emph on
13909 article (koma-script)
13910 \emph default
13911 .
13912 \begin_inset Foot
13913 status collapsed
13914
13915 \begin_layout Plain Layout
13916 There is also an 
13917 \family typewriter
13918
13919 \backslash
13920 addpart*
13921 \family default
13922  command in 
13923 \emph on
13924 book (koma-script)
13925 \emph default
13926  and in 
13927 \emph on
13928 report (koma-script)
13929 \emph default
13930 , but since this is identical to 
13931 \family sans
13932 Part*
13933 \family default
13934 , is has not been implemented in \SpecialChar LyX
13935 .
13936 \end_layout
13937
13938 \end_inset
13939
13940
13941 \end_layout
13942
13943 \begin_layout Itemize
13944
13945 \family sans
13946 Minisec
13947 \family default
13948 : generates a heading directly above the following paragraph in the standard
13949  character size without affecting the structure of the document.
13950 \end_layout
13951
13952 \begin_layout Itemize
13953
13954 \family sans
13955 Captionabove
13956 \family default
13957  and 
13958 \family sans
13959 Captionbelow
13960 \family default
13961  are special captions which respect the different space settings needed
13962  for captions placed above or below an element (if you follow strict typographic
13963  rules, you might want to place table captions always above the table).
13964  You can also use the class option 
13965 \family typewriter
13966 tablecaptionsabove
13967 \family default
13968 , which will switch 
13969 \family sans
13970 caption
13971 \family default
13972  to 
13973 \family sans
13974 captionabove
13975 \family default
13976  for tables and 
13977 \family sans
13978 captionbelow
13979 \family default
13980  for figures.
13981  You need at least Koma-Script version 2.8q to use this.
13982 \end_layout
13983
13984 \begin_layout Itemize
13985
13986 \family sans
13987 Dictum
13988 \family default
13989 : can be used to set a bonmot, e.
13990 \begin_inset space \thinspace{}
13991 \end_inset
13992
13993 g.
13994 \begin_inset space \space{}
13995 \end_inset
13996
13997 at the beginning of a chapter.
13998  If you use the optional argument (
13999 \family sans
14000 Insert\SpecialChar menuseparator
14001 Short
14002 \begin_inset space ~
14003 \end_inset
14004
14005 Title
14006 \family default
14007 ), you can insert the dictum's author there.
14008  Dictum and author are separated by a line.
14009  You need at least Koma-Script version 2.8q to use this.
14010  
14011 \family sans
14012 Dictum
14013 \family default
14014  is not contained in 
14015 \emph on
14016 article (koma-script)
14017 \emph default
14018 .
14019 \end_layout
14020
14021 \begin_layout Standard
14022 The following types, together with the standard types 
14023 \family sans
14024 Title
14025 \family default
14026
14027 \family sans
14028 Author
14029 \family default
14030 , and 
14031 \family sans
14032 Date
14033 \family default
14034 , form the title area of the document.
14035  They must be entered ahead of the first 
14036 \begin_inset Quotes eld
14037 \end_inset
14038
14039 ordinary
14040 \begin_inset Quotes erd
14041 \end_inset
14042
14043  paragraph.
14044 \begin_inset Foot
14045 status collapsed
14046
14047 \begin_layout Plain Layout
14048 The corresponding \SpecialChar LaTeX
14049  commands must appear before the 
14050 \family typewriter
14051
14052 \backslash
14053 maketitle
14054 \family default
14055  command.
14056 \end_layout
14057
14058 \end_inset
14059
14060  When such a type is used more than once, the latter usage overwrites the
14061  former one, that means, for every type only the latest usage is valid.
14062  The order of the different types however has, like 
14063 \family sans
14064 Title
14065 \family default
14066
14067 \family sans
14068 Author
14069 \family default
14070 , and 
14071 \family sans
14072 Date
14073 \family default
14074 , no effect on the appearance of the produced document.
14075 \end_layout
14076
14077 \begin_layout Itemize
14078
14079 \family sans
14080 Subject
14081 \family default
14082 : produces a centered paragraph above the ordinary title (
14083 \family sans
14084 Title
14085 \family default
14086
14087 \family sans
14088 Author
14089 \family default
14090
14091 \family sans
14092 Date
14093 \family default
14094 ) for the subject of the document.
14095 \end_layout
14096
14097 \begin_layout Itemize
14098
14099 \family sans
14100 Publishers
14101 \family default
14102 : produces a centered paragraph below the ordinary title (
14103 \family sans
14104 Title
14105 \family default
14106
14107 \family sans
14108 Author
14109 \family default
14110
14111 \family sans
14112 Date
14113 \family default
14114 ) for the publishers' name.
14115 \end_layout
14116
14117 \begin_layout Itemize
14118
14119 \family sans
14120 Dedication
14121 \family default
14122 : in 
14123 \emph on
14124 report (koma-script)
14125 \emph default
14126  and 
14127 \emph on
14128 book (koma-script)
14129 \emph default
14130  produces a centered paragraph on its own page behind the title page, or
14131  in 
14132 \emph on
14133 article (koma-script)
14134 \emph default
14135  produces a centered paragraph below the ordinary title (
14136 \family sans
14137 Title
14138 \family default
14139
14140 \family sans
14141 Author
14142 \family default
14143
14144 \family sans
14145 Date
14146 \family default
14147
14148 \family sans
14149 Publishers
14150 \family default
14151 ) for a dedication.
14152 \end_layout
14153
14154 \begin_layout Itemize
14155
14156 \family sans
14157 Titlehead
14158 \family default
14159 : produces a left aligned paragraph above the ordinary title (
14160 \family sans
14161 Title
14162 \family default
14163
14164 \family sans
14165 Author
14166 \family default
14167
14168 \family sans
14169 Date
14170 \family default
14171
14172 \family sans
14173 Subject
14174 \family default
14175 ) for a document`s head.
14176 \end_layout
14177
14178 \begin_layout Itemize
14179
14180 \family sans
14181 Uppertitleback
14182 \family default
14183 : produces in a double-sided print in 
14184 \emph on
14185 report (koma-script)
14186 \emph default
14187  and 
14188 \emph on
14189 book (koma-script)
14190 \emph default
14191  a left-aligned paragraph at the top of the title page`s back or has no
14192  effect in a single-sided print or in 
14193 \emph on
14194 article (koma-script)
14195 \emph default
14196 .
14197 \end_layout
14198
14199 \begin_layout Itemize
14200
14201 \family sans
14202 Lowertitleback
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 bottom of the title page`s back or has
14213  no 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 Extratitle
14224 \family default
14225 : produces a special 
14226 \begin_inset Quotes eld
14227 \end_inset
14228
14229 dirty
14230 \begin_inset Quotes erd
14231 \end_inset
14232
14233  page ahead of the actual document containing a paragraph without special
14234  formatting.
14235 \end_layout
14236
14237 \begin_layout Standard
14238 The layout files for the document classes 
14239 \emph on
14240 article (koma-script)
14241 \emph default
14242
14243 \emph on
14244 report (koma-script)
14245 \emph default
14246 , and 
14247 \emph on
14248 book (koma-script)
14249 \emph default
14250  do include the file 
14251 \family typewriter
14252 scrmacros.inc
14253 \family default
14254 .
14255  This is thought of as a place to define your own types.
14256  Copy scrmacros
14257 \family typewriter
14258 .inc
14259 \family default
14260  in your personal layout directory and edit the file!
14261 \end_layout
14262
14263 \begin_layout Subsection
14264 letter (koma-script)
14265 \end_layout
14266
14267 \begin_layout Standard
14268 \noindent
14269 The document class 
14270 \emph on
14271 letter (koma-script)
14272 \emph default
14273  is implemented in the layout file 
14274 \family typewriter
14275 scrlettr.layout
14276 \family default
14277 .
14278  It contains all the paragraph types of the corresponding standard document
14279  class 
14280 \emph on
14281 letter
14282 \emph default
14283 , partly modified, with the exception of the \SpecialChar LyX
14284  specific types 
14285 \family sans
14286 \SpecialChar LyX
14287 -Code
14288 \family default
14289  and 
14290 \family sans
14291 Comment
14292 \family default
14293  and the 
14294 \family sans
14295 List
14296 \family default
14297  type, which is replaced by the new 
14298 \family sans
14299 Labeling
14300 \family default
14301  type.
14302  In addition, it contains, in contrast to the standard document class, the
14303  standard types 
14304 \family sans
14305 \SpecialChar LaTeX
14306
14307 \family default
14308
14309 \family sans
14310 Quotation
14311 \family default
14312
14313 \family sans
14314 Quote
14315 \family default
14316 , and 
14317 \family sans
14318 Verse
14319 \family default
14320 .
14321  Furthermore, there are a number of new letter specific types.
14322 \end_layout
14323
14324 \begin_layout Standard
14325 The appearance of the letter produced by this document class can be controlled
14326  by a number of \SpecialChar LaTeX
14327  commands, which you can put in the \SpecialChar LaTeX
14328  preamble.
14329 \begin_inset Foot
14330 status collapsed
14331
14332 \begin_layout Plain Layout
14333 For example, the standard appearance of the letter`s heading, consisting
14334  of name and address, is quite self-willed.
14335  An 
14336 \begin_inset Quotes eld
14337 \end_inset
14338
14339 ordinary
14340 \begin_inset Quotes erd
14341 \end_inset
14342
14343  heading is produced by the following \SpecialChar LaTeX
14344  commands in the preamble:
14345 \end_layout
14346
14347 \begin_layout LyX-Code
14348
14349 \backslash
14350 firsthead{
14351 \backslash
14352 parbox[b]{
14353 \backslash
14354 textwidth}
14355 \end_layout
14356
14357 \begin_layout LyX-Code
14358   {
14359 \backslash
14360 ignorespaces 
14361 \backslash
14362 fromname
14363 \backslash
14364
14365 \backslash
14366  
14367 \backslash
14368 ignorespaces 
14369 \backslash
14370 fromaddress}} 
14371 \end_layout
14372
14373 \begin_layout LyX-Code
14374
14375 \backslash
14376 nexthead{
14377 \backslash
14378 parbox[b]{
14379 \backslash
14380 textwidth}
14381 \end_layout
14382
14383 \begin_layout LyX-Code
14384   {
14385 \backslash
14386 ignorespaces 
14387 \backslash
14388 fromname 
14389 \backslash
14390 hfill 
14391 \backslash
14392 ignorespaces 
14393 \backslash
14394 pagename
14395 \backslash
14396  
14397 \backslash
14398 thepage}}
14399 \end_layout
14400
14401 \end_inset
14402
14403  A detailed German description of such \SpecialChar LaTeX
14404  commands can be found in the Koma-Script
14405  documentation 
14406 \emph on
14407 scrguide
14408 \emph default
14409 .
14410  With it, the letter's author can produce his personal letter layout.
14411 \end_layout
14412
14413 \begin_layout Standard
14414 The types 
14415 \family sans
14416 Letter
14417 \family default
14418  and 
14419 \family sans
14420 Opening
14421 \family default
14422  define the beginning of the letter and must be used in every letter.
14423  To emphasize them in the \SpecialChar LyX
14424  document class, they are marked with the letter
14425  
14426 \shape italic
14427 L
14428 \shape default
14429  or 
14430 \shape italic
14431 O
14432 \shape default
14433 , resp.
14434 \begin_inset space ~
14435 \end_inset
14436
14437 in the left margin.
14438  It is possible to write any number of letters in one file.
14439  An 
14440 \family sans
14441 Opening
14442 \family default
14443  type produces a new letter using the same addressee and a 
14444 \family sans
14445 Letter
14446 \family default
14447  type produces a new addressee.
14448  The types 
14449 \family sans
14450 Closing
14451 \family default
14452
14453 \family sans
14454 PS
14455 \family default
14456
14457 \family sans
14458 CC
14459 \family default
14460 , and 
14461 \family sans
14462 Encl
14463 \family default
14464  are ordinary paragraph types and can also be used several times in one
14465  and the same letter.
14466 \end_layout
14467
14468 \begin_layout Itemize
14469
14470 \family sans
14471 Letter
14472 \family default
14473 : produces a paragraph for the addressee and implicitly defines the beginning
14474  of the letter.
14475 \end_layout
14476
14477 \begin_layout Itemize
14478
14479 \family sans
14480 Opening
14481 \family default
14482 : produces a paragraph for the form of address and implicitly produces a
14483  new letter.
14484 \end_layout
14485
14486 \begin_layout Itemize
14487
14488 \family sans
14489 Closing
14490 \family default
14491 : produces a paragraph for a close.
14492 \end_layout
14493
14494 \begin_layout Itemize
14495
14496 \family sans
14497 PS
14498 \family default
14499 : produces a paragraph for a postscript.
14500 \end_layout
14501
14502 \begin_layout Itemize
14503
14504 \family sans
14505 CC
14506 \family default
14507 : produces a paragraph for a distribution list.
14508 \end_layout
14509
14510 \begin_layout Itemize
14511
14512 \family sans
14513 Encl
14514 \family default
14515 : produces a paragraph for enclosures.
14516 \end_layout
14517
14518 \begin_layout Standard
14519 The types 
14520 \family sans
14521 Name
14522 \family default
14523
14524 \family sans
14525 Signature
14526 \family default
14527
14528 \family sans
14529 Address
14530 \family default
14531
14532 \family sans
14533 Telephone
14534 \family default
14535
14536 \family sans
14537 Place
14538 \family default
14539
14540 \family sans
14541 Backaddress
14542 \family default
14543
14544 \family sans
14545 Specialmail
14546 \family default
14547
14548 \family sans
14549 Location
14550 \family default
14551
14552 \family sans
14553 Title
14554 \family default
14555 , and 
14556 \family sans
14557 Subject
14558 \family default
14559  are input types provided with a label to enter information, which will
14560  be processed by the document class.
14561 \begin_inset Foot
14562 status open
14563
14564 \begin_layout Plain Layout
14565 It could be seen as a matter of inconsequence, that the types 
14566 \family sans
14567 Letter
14568 \family default
14569  and 
14570 \family sans
14571 Opening
14572 \family default
14573  described above are not such input types as well.
14574  Because of the special meaning of those types, however, I have implemented
14575  them as ordinary paragraph types with a one letter mark in the left margin.
14576  Moreover, it would affect my feeling of symmetry, if the 
14577 \family sans
14578 Opening
14579 \family default
14580  type and the 
14581 \family sans
14582 Closing
14583 \family default
14584  type had such a serious different appearance.
14585 \end_layout
14586
14587 \end_inset
14588
14589  The types must be used ahead of the corresponding 
14590 \family sans
14591 Opening
14592 \family default
14593  type.
14594 \end_layout
14595
14596 \begin_layout Standard
14597 An implementation of these types in a WYSIWYG fashion does not seem to make
14598  sense, because the real appearance of the produced letter does not only
14599  depend on the usage of the particular type, but also on other factors.
14600  For example, a signature entered in the 
14601 \family sans
14602 Signature
14603 \family default
14604  type will in the standard behavior appear in the produced letter only,
14605  when in the same letter also a 
14606 \family sans
14607 Closing
14608 \family default
14609  type is used.
14610  The entered value of the 
14611 \family sans
14612 Telephone
14613 \family default
14614  type will in the standard behavior not appear in the produced letter at
14615  all.
14616  The possibility to design the letter`s heading freely is already indicated
14617  in a footnote above.
14618 \end_layout
14619
14620 \begin_layout Standard
14621 The input types can also be used as empty paragraphs.
14622  This makes sense e.
14623 \begin_inset space \thinspace{}
14624 \end_inset
14625
14626 g.
14627 \begin_inset space \space{}
14628 \end_inset
14629
14630 for the 
14631 \family sans
14632 Signature
14633 \family default
14634  type.
14635  If the 
14636 \family sans
14637 Signature
14638 \family default
14639  type is not used at all, in the standard behavior the value of the 
14640 \family sans
14641 Name
14642 \family default
14643  type is used as signature, whereas if an empty 
14644 \family sans
14645 Signature
14646 \family default
14647  type is used, no signature value is defined.
14648 \end_layout
14649
14650 \begin_layout Standard
14651 By using the input types it is possible to write a letter template, containing
14652  filled input types with your personal dates (name, address, etc.) and empty
14653  input types for other dates you want to enter.
14654 \end_layout
14655
14656 \begin_layout Itemize
14657
14658 \family sans
14659 Name
14660 \family default
14661 : sender's name, in the standard behavior appears as a centered paragraph
14662  in small caps in the letter`s heading.
14663 \end_layout
14664
14665 \begin_layout Itemize
14666
14667 \family sans
14668 Signature
14669 \family default
14670 : sender's signature, in the standard behavior appears below the 
14671 \family sans
14672 Closing
14673 \family default
14674  type.
14675  If no 
14676 \family sans
14677 Signature
14678 \family default
14679  type is used, the value of the 
14680 \family sans
14681 Name
14682 \family default
14683  type appears instead.
14684 \end_layout
14685
14686 \begin_layout Itemize
14687
14688 \family sans
14689 Address
14690 \family default
14691 : sender's address, in the standard behavior appears in a centered paragraph
14692  in the letter`s heading below the sender's name.
14693 \end_layout
14694
14695 \begin_layout Itemize
14696
14697 \family sans
14698 Telephone
14699 \family default
14700 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
14701  variable
14702  
14703 \family typewriter
14704
14705 \backslash
14706 telephonenum
14707 \family default
14708 .
14709 \end_layout
14710
14711 \begin_layout Itemize
14712
14713 \family sans
14714 Place
14715 \family default
14716 : place of the letter`s making.
14717 \end_layout
14718
14719 \begin_layout Itemize
14720
14721 \family sans
14722 Date
14723 \family default
14724 : date of the letter`s making.
14725  
14726 \family sans
14727 Place
14728 \family default
14729  and 
14730 \family sans
14731 Date
14732 \family default
14733 , in the standard behavior, produce the place and the date in a right-aligned
14734  line below the addressee's field.
14735  If an empty 
14736 \family sans
14737 Date
14738 \family default
14739  type is used, neither place nor date appear, independent of the value of
14740  the 
14741 \family sans
14742 Place
14743 \family default
14744  type.
14745  If no 
14746 \family sans
14747 Date
14748 \family default
14749  type is used, the date of the letter `s production is used.
14750 \end_layout
14751
14752 \begin_layout Itemize
14753
14754 \family sans
14755 Backaddress
14756 \family default
14757 : sender`s back address, in the standard behavior appears above the addressee's
14758  field in a small sans serif font.
14759 \end_layout
14760
14761 \begin_layout Itemize
14762
14763 \family sans
14764 Specialmail
14765 \family default
14766 : special mail information, in the standard behavior appears underlined
14767  above the addressee's field below the back address.
14768 \end_layout
14769
14770 \begin_layout Itemize
14771
14772 \family sans
14773 Location
14774 \family default
14775 : additional information, in the standard behavior appears on right side
14776  below the addressee`s field.
14777 \end_layout
14778
14779 \begin_layout Itemize
14780
14781 \family sans
14782 Title
14783 \family default
14784 : the letter's title, in the standard behavior appears in a big, bold, sans
14785  serif font above the subject.
14786 \end_layout
14787
14788 \begin_layout Itemize
14789
14790 \family sans
14791 Subject
14792 \family default
14793 : the letter's subject, in the standard behavior appears in a bold font
14794  above the 
14795 \family sans
14796 Opening
14797 \family default
14798  paragraph.
14799 \end_layout
14800
14801 \begin_layout Standard
14802 The types 
14803 \family sans
14804 Yourref
14805 \family default
14806
14807 \family sans
14808 Yourmail
14809 \family default
14810
14811 \family sans
14812 Myref
14813 \family default
14814
14815 \family sans
14816 Customer
14817 \family default
14818 , and 
14819 \family sans
14820 Invoice
14821 \family default
14822  produce a business letter like line above the 
14823 \family sans
14824 Title
14825 \family default
14826  line containing the fields 
14827 \begin_inset Quotes eld
14828 \end_inset
14829
14830 Your ref.
14831 \begin_inset Quotes erd
14832 \end_inset
14833
14834
14835 \begin_inset Quotes eld
14836 \end_inset
14837
14838 Your letter of
14839 \begin_inset Quotes erd
14840 \end_inset
14841
14842
14843 \begin_inset Quotes eld
14844 \end_inset
14845
14846 Our ref.
14847 \begin_inset Quotes erd
14848 \end_inset
14849
14850
14851 \begin_inset Quotes eld
14852 \end_inset
14853
14854 Customer no.
14855 \begin_inset Quotes erd
14856 \end_inset
14857
14858
14859 \begin_inset Quotes eld
14860 \end_inset
14861
14862 Invoice no.
14863 \begin_inset Quotes erd
14864 \end_inset
14865
14866 , and 
14867 \begin_inset Quotes eld
14868 \end_inset
14869
14870 Date
14871 \begin_inset Quotes erd
14872 \end_inset
14873
14874 .
14875  For the date field, the value of the 
14876 \family sans
14877 Date
14878 \family default
14879  type is used.
14880  If one of these 
14881 \begin_inset Quotes eld
14882 \end_inset
14883
14884 business letter types
14885 \begin_inset Quotes erd
14886 \end_inset
14887
14888  is used, the value of the 
14889 \family sans
14890 Place
14891 \family default
14892  type however does not appear, but only the \SpecialChar LaTeX
14893  variable 
14894 \family typewriter
14895
14896 \backslash
14897 fromplace
14898 \family default
14899  is set.
14900  The ordinary output of place and date in a right-aligned line below the
14901  addressee`s field is suppressed.
14902  The types are implemented as input types provided with a label and must
14903  be used ahead of the corresponding 
14904 \family sans
14905 Opening
14906 \family default
14907  type.
14908 \end_layout
14909
14910 \begin_layout Itemize
14911
14912 \family sans
14913 Yourref
14914 \family default
14915 : Your ref.
14916 \end_layout
14917
14918 \begin_layout Itemize
14919
14920 \family sans
14921 Yourmail
14922 \family default
14923 : Your letter of.
14924 \end_layout
14925
14926 \begin_layout Itemize
14927
14928 \family sans
14929 Myref
14930 \family default
14931 : Our ref.
14932 \end_layout
14933
14934 \begin_layout Itemize
14935
14936 \family sans
14937 Customer
14938 \family default
14939 : Customer no.
14940 \end_layout
14941
14942 \begin_layout Itemize
14943
14944 \family sans
14945 Invoice
14946 \family default
14947 : Invoice no.
14948 \end_layout
14949
14950 \begin_layout Subsection
14951 The new letter class: letter (koma-script v.2)
14952 \end_layout
14953
14954 \begin_layout Standard
14955 by 
14956 \noun on
14957 Jürgen Spitzmüller
14958 \end_layout
14959
14960 \begin_layout Standard
14961 \begin_inset VSpace medskip
14962 \end_inset
14963
14964
14965 \end_layout
14966
14967 \begin_layout Standard
14968 \noindent
14969 Koma-Script version 2.8 has introduced a new letter class 
14970 \family typewriter
14971 scrlttr2
14972 \family default
14973  which supersedes the now unsupported 
14974 \family typewriter
14975 scrlettr
14976 \family default
14977 .
14978  It has — on the \SpecialChar LaTeX
14979  side — a completely new interface and is not compatible
14980  with the old class.
14981  Therefore, \SpecialChar LyX
14982  supports both, though it is recommended you use the new class.
14983 \end_layout
14984
14985 \begin_layout Standard
14986 This class covers the same functionality as 
14987 \emph on
14988 letter (koma-script),
14989 \emph default
14990  and a few more.
14991  The basic items are 
14992 \family sans
14993 Address
14994 \family default
14995  (receiver's address, same as 
14996 \family sans
14997 Letter
14998 \family default
14999  in the old layout), 
15000 \family sans
15001 Opening
15002 \family default
15003 , and 
15004 \family sans
15005 Closing
15006 \family default
15007 .
15008  
15009 \family sans
15010 NextAddress
15011 \family default
15012  will start a new letter (i.
15013 \begin_inset space \thinspace{}
15014 \end_inset
15015
15016 e.
15017 \begin_inset space \space{}
15018 \end_inset
15019
15020 you can write several letters per document).
15021  New elements are sender's 
15022 \family sans
15023 E-Mail
15024 \family default
15025
15026 \family sans
15027 URL
15028 \family default
15029
15030 \family sans
15031 Fax
15032 \family default
15033
15034 \family sans
15035 Bank
15036 \family default
15037  and the possibility to use a 
15038 \family sans
15039 Logo
15040 \family default
15041  (via 
15042 \family sans
15043 Insert\SpecialChar menuseparator
15044 Graphics
15045 \family default
15046 ) in the header.
15047 \end_layout
15048
15049 \begin_layout Standard
15050 The biggest improvement is, though, that the letter's layout is configurable
15051  to meet almost any needs.
15052  This can be done via the preamble or with a special style file (Letter
15053  Class Option, extension 
15054 \family typewriter
15055 *.lco
15056 \family default
15057 ), that will be read in as a class option.
15058 \begin_inset Foot
15059 status collapsed
15060
15061 \begin_layout Plain Layout
15062 The KOMA package comes with some default 
15063 \family typewriter
15064 *.lco
15065 \family default
15066  files.
15067  There is, for instance, a 
15068 \family typewriter
15069 DIN.lco
15070 \family default
15071  file that follows german typesetting rules, or a 
15072 \family typewriter
15073 KOMAold.lco
15074 \family default
15075  that provides the default layout of the old 
15076 \family typewriter
15077 scrlettr
15078 \family default
15079  class.
15080  The latter can be loaded with the class option 
15081 \family typewriter
15082 KOMAold
15083 \family default
15084 , inserted via the 
15085 \family sans
15086 Layout\SpecialChar menuseparator
15087 Document\SpecialChar menuseparator
15088 Extra Options
15089 \family default
15090  field.
15091 \end_layout
15092
15093 \end_inset
15094
15095  Have a look at the 
15096 \emph on
15097 koma-letter2
15098 \emph default
15099  template that is included in \SpecialChar LyX
15100  for examples.
15101  A detailed description is to be found in the Koma-Script documentation
15102  (
15103 \emph on
15104 scrguide
15105 \emph default
15106 ).
15107 \end_layout
15108
15109 \begin_layout Subsection
15110 Problems
15111 \end_layout
15112
15113 \begin_layout Standard
15114 Visualizing the Koma-Script document classes in \SpecialChar LyX
15115 , the \SpecialChar LyX
15116  internals cause some
15117  problems.
15118 \end_layout
15119
15120 \begin_layout Itemize
15121 The chapter number of a 
15122 \family sans
15123 Chapter
15124 \family default
15125  type appears on a line of its own above the chapter heading instead of
15126  appearing in the same line ahead of it.
15127  The cause for that is the \SpecialChar LyX
15128  internal behavior for the labeltype 
15129 \family sans
15130 Counter_Chapter
15131 \family default
15132  in the layout file.
15133 \end_layout
15134
15135 \begin_layout Itemize
15136 The headings of the types 
15137 \family sans
15138 Addchap
15139 \family default
15140  and 
15141 \family sans
15142 Addsec
15143 \family default
15144  are only put in the 
15145 \begin_inset Quotes eld
15146 \end_inset
15147
15148 true
15149 \begin_inset Quotes erd
15150 \end_inset
15151
15152  \SpecialChar LaTeX
15153  table of contents, but not in the \SpecialChar LyX
15154  table of contents (
15155 \family sans
15156 Document\SpecialChar menuseparator
15157 Table
15158 \begin_inset space ~
15159 \end_inset
15160
15161 of
15162 \begin_inset space ~
15163 \end_inset
15164
15165 Contents
15166 \family default
15167 ).
15168 \end_layout
15169
15170 \begin_layout Itemize
15171 The paragraphs in a 
15172 \emph on
15173 letter
15174 \emph default
15175  document class appear in a skip separation mode, not indented.
15176  This is the standard behavior, no special \SpecialChar LaTeX
15177  commands are needed for that.
15178  But in the 
15179 \family sans
15180 Document\SpecialChar menuseparator
15181 Settings
15182 \family default
15183  dialog the corresponding radio button indicates 
15184 \family sans
15185 Indent
15186 \family default
15187 .
15188  A 
15189 \family sans
15190 Skip
15191 \family default
15192  value always has the effect that extra \SpecialChar LaTeX
15193  commands are inserted in the document
15194  to produce the gap, which is not what is wanted in this case.
15195 \end_layout
15196
15197 \begin_layout Section
15198 Memoir
15199 \end_layout
15200
15201 \begin_layout Standard
15202 By 
15203 \noun on
15204 Jürgen Spitzmüller
15205 \end_layout
15206
15207 \begin_layout Subsection
15208 Overview
15209 \end_layout
15210
15211 \begin_layout Standard
15212 Memoir is a very powerful and constantly evolving class.
15213  It has been designed with regard to fictional and non-fictional literature.
15214  Its aim is to let the user have maximum control over the typesetting of
15215  his document.
15216  Memoir is based on the standard book class, but it can also emulate the
15217  article class (see below).
15218 \end_layout
15219
15220 \begin_layout Standard
15221 Peter Wilson, the developer of Memoir, is known as the author of lots of
15222  useful packages in the \SpecialChar LaTeX
15223  world.
15224  Most of them have been merged with Memoir.
15225  Therefore, it is much easier to layout the table of contents, appendices,
15226  chapter designs and such.
15227  \SpecialChar LyX
15228 , though, does not support all of these goodies natively.
15229  Some of them might be added to forthcoming releases
15230 \begin_inset Foot
15231 status collapsed
15232
15233 \begin_layout Plain Layout
15234 You are invited to send suggestions to 
15235 \begin_inset Flex URL
15236 status collapsed
15237
15238 \begin_layout Plain Layout
15239
15240 lyx-devel@lists.lyx.org
15241 \end_layout
15242
15243 \end_inset
15244
15245 .
15246 \end_layout
15247
15248 \end_inset
15249
15250 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15251 's framework.
15252  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15253
15254  commands (\SpecialChar TeX
15255  code
15256 \begin_inset Foot
15257 status collapsed
15258
15259 \begin_layout Plain Layout
15260 Cf.
15261 \begin_inset ERT
15262 status collapsed
15263
15264 \begin_layout Plain Layout
15265
15266
15267 \backslash
15268  
15269 \end_layout
15270
15271 \end_inset
15272
15273 section
15274 \begin_inset space ~
15275 \end_inset
15276
15277
15278 \begin_inset CommandInset ref
15279 LatexCommand ref
15280 reference "sec:Inserting-TeX-Code"
15281
15282 \end_inset
15283
15284  for details.
15285 \end_layout
15286
15287 \end_inset
15288
15289 ).
15290  In this section, we can only list those features that are natively supported
15291  by \SpecialChar LyX
15292 .
15293  For detailed descriptions (and for the rest of features) we recommend you
15294  have a look at the detailed manual of the Memoir class
15295 \begin_inset Foot
15296 status collapsed
15297
15298 \begin_layout Plain Layout
15299 Cf.
15300 \begin_inset ERT
15301 status collapsed
15302
15303 \begin_layout Plain Layout
15304
15305
15306 \backslash
15307  
15308 \end_layout
15309
15310 \end_inset
15311
15312
15313 \begin_inset Flex URL
15314 status collapsed
15315
15316 \begin_layout Plain Layout
15317
15318 CTAN:/macros/latex/memoir/memman.pdf
15319 \end_layout
15320
15321 \end_inset
15322
15323 .
15324 \end_layout
15325
15326 \end_inset
15327
15328 , which is not only a user guide for the class, but also both a comprehensive
15329  description on good typesetting and a superb example for good typesetting
15330  itself.
15331 \end_layout
15332
15333 \begin_layout Subsection
15334 Basic features and restrictions
15335 \end_layout
15336
15337 \begin_layout Standard
15338 Memoir supports basically all features of the standard book classes.
15339  There are, however, some differences, as follows:
15340 \end_layout
15341
15342 \begin_layout Description
15343 Font
15344 \begin_inset space ~
15345 \end_inset
15346
15347 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15348 \end_layout
15349
15350 \begin_layout Description
15351 Page
15352 \begin_inset space ~
15353 \end_inset
15354
15355 style: The fancy page style is not supported, due to a command clash between
15356  Memoir and the fancyhdr package (they both define a command with the same
15357  name, which confuses \SpecialChar LaTeX
15358 ).
15359  Instead, Memoir comes with a number of its own page styles (see 
15360 \family sans
15361 Layout\SpecialChar menuseparator
15362 Document\SpecialChar menuseparator
15363 Page
15364 \begin_inset space ~
15365 \end_inset
15366
15367 Style
15368 \family default
15369 ).
15370  If you want to use these for the chapter pages, you have to use the command
15371  
15372 \family typewriter
15373
15374 \backslash
15375 chapterstyle
15376 \family default
15377  in the main text or in preamble (e.
15378 \begin_inset space \thinspace{}
15379 \end_inset
15380
15381 g.
15382 \begin_inset space \space{}
15383 \end_inset
15384
15385
15386 \family typewriter
15387
15388 \backslash
15389 chapterstyle{companion}
15390 \family default
15391 ).
15392 \end_layout
15393
15394 \begin_layout Description
15395 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15396  optional argument in the standard classes.
15397  With this, you can specify an alternative version of the title for the
15398  table of contents and the headers (for instance, if the title is too long).
15399  In \SpecialChar LyX
15400 , you can do this via 
15401 \family sans
15402 Insert\SpecialChar menuseparator
15403 Short
15404 \begin_inset space ~
15405 \end_inset
15406
15407 Title
15408 \family default
15409  at the beginning of a chapter/section.
15410  Memoir features a second optional argument and thus separates the table
15411  of contents from the header.
15412  You can define three variants of a title with this: one for the main text,
15413  one for the table of contents, and one for the headers.
15414  Simply insert two optional arguments if you need this feature, the first
15415  one containing the short title for the Table of Contents, the second one
15416  containing an alternative short title for the headers.
15417 \end_layout
15418
15419 \begin_layout Description
15420 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15421  of contents, the list of figures and the list of table start a new page
15422  automatically.
15423  Memoir does not follow this route.
15424  You have to insert a page break yourself, if you want to have one.
15425 \end_layout
15426
15427 \begin_layout Description
15428 Titlepage: For some unknown reason, Memoir uses pagination on the title
15429  page (in the standard classes, title pages are 
15430 \begin_inset Quotes eld
15431 \end_inset
15432
15433 empty
15434 \begin_inset Quotes erd
15435 \end_inset
15436
15437 ).
15438  If you want an empty title page, type 
15439 \family typewriter
15440
15441 \backslash
15442 aliaspagestyle{title}{empty}
15443 \family default
15444  in the preamble.
15445 \end_layout
15446
15447 \begin_layout Description
15448 Article: With the class option 
15449 \emph on
15450 article
15451 \emph default
15452  (to be inserted in 
15453 \family sans
15454 Layout\SpecialChar menuseparator
15455 Document\SpecialChar menuseparator
15456 Extra
15457 \begin_inset space ~
15458 \end_inset
15459
15460 Options
15461 \family default
15462 ), you can emulate article style.
15463  That is, counters (footnotes, figures, tables etc.) will not be reset on
15464  new chapters, chapters don't start a new page (but are—in contrary to 
15465 \begin_inset Quotes eld
15466 \end_inset
15467
15468 real
15469 \begin_inset Quotes erd
15470 \end_inset
15471
15472  article classes—still allowed), parts, though, use their own page, as in
15473  book.
15474 \end_layout
15475
15476 \begin_layout Description
15477 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15478  font commands, which have been used in the old \SpecialChar LaTeX
15479  version 2.09 (e.
15480 \begin_inset space \thinspace{}
15481 \end_inset
15482
15483 g.
15484 \begin_inset space \space{}
15485 \end_inset
15486
15487
15488 \family typewriter
15489
15490 \backslash
15491 rm
15492 \family default
15493
15494 \family typewriter
15495
15496 \backslash
15497 it
15498 \family default
15499 ).
15500  It produces an error and stops \SpecialChar LaTeX
15501  whenever such a command appears.
15502  The class option 
15503 \emph on
15504 oldfontcommands
15505 \emph default
15506  reallows the commands and spits out warnings instead (which does at least
15507  not stop \SpecialChar LaTeX
15508 ).
15509  Since a lot of packages and particularly Bib\SpecialChar TeX
15510  style files are still using
15511  those commands, we have decided to use this option by default.
15512 \end_layout
15513
15514 \begin_layout Subsection
15515 Extra features
15516 \end_layout
15517
15518 \begin_layout Standard
15519 We will only describe the features supported by \SpecialChar LyX
15520  (which is not much currently).
15521  Please consult the Memoir manual
15522 \begin_inset Foot
15523 status collapsed
15524
15525 \begin_layout Plain Layout
15526 Cf.
15527 \begin_inset ERT
15528 status collapsed
15529
15530 \begin_layout Plain Layout
15531
15532
15533 \backslash
15534  
15535 \end_layout
15536
15537 \end_inset
15538
15539
15540 \begin_inset Flex URL
15541 status collapsed
15542
15543 \begin_layout Plain Layout
15544
15545 CTAN:/macros/latex/memoir/memman.pdf
15546 \end_layout
15547
15548 \end_inset
15549
15550 .
15551 \end_layout
15552
15553 \end_inset
15554
15555  for details.
15556 \end_layout
15557
15558 \begin_layout Description
15559 Abstract: You may wonder why an abstract is an extra feature.
15560  Well, it is in book class.
15561  Usually books don't have abstracts.
15562  Memoir, however, has.
15563  You can use it wherever and how often you like.
15564 \end_layout
15565
15566 \begin_layout Description
15567 Chapterprecis: You may know this older typesetting style: The contents of
15568  a chapter are summarized below the title and also in the table of contents
15569  (e.
15570 \begin_inset space \thinspace{}
15571 \end_inset
15572
15573 g.
15574 \begin_inset space \space{}
15575 \end_inset
15576
15577
15578 \emph on
15579 Our hero arrives in Troia; he loses some friends; he finds others
15580 \emph default
15581 ).
15582  Chapterprecis does exactly this.
15583  It is therefore only sensible below a chapter.
15584 \end_layout
15585
15586 \begin_layout Description
15587 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15588  The epigraph environment provides an elegant way of typesetting such a
15589  motto.
15590  The motto itself (text) and its author (source) are divided by a short
15591  line.
15592  Unfortunately, we have to fool \SpecialChar LyX
15593  a bit here again, since the environment
15594  needs two arguments (text and source).
15595  In this case, we have to use curly brackets (in \SpecialChar TeX
15596  mode) between the two
15597  arguments: 
15598 \emph on
15599 <smart slogan>
15600 \emph default
15601  
15602 \family typewriter
15603 }{
15604 \family default
15605  
15606 \emph on
15607 <author of the slogan>.
15608 \end_layout
15609
15610 \begin_layout Description
15611 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15612  complex figurative poems).
15613  \SpecialChar LyX
15614  can only support a few of them.
15615  One is poemtitle, which is a centered title for poems, which will also
15616  be added to the table of contents (verse is the standard environment for
15617  poems.
15618  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15619  code,
15620  because they have to be nested inside regular verse environments, which
15621  is not possible with \SpecialChar LyX
15622 ).
15623 \end_layout
15624
15625 \begin_layout Description
15626 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15627 \end_layout
15628
15629 \begin_layout Section
15630 Article (mwart), book (mwbk) and report (mwrep)
15631 \begin_inset Argument status
15632 status collapsed
15633
15634 \begin_layout Plain Layout
15635 The 
15636 \family typewriter
15637 mw
15638 \family default
15639  Classes
15640 \end_layout
15641
15642 \end_inset
15643
15644
15645 \end_layout
15646
15647 \begin_layout Standard
15648 by 
15649 \noun on
15650 Tomasz Luczak
15651 \end_layout
15652
15653 \begin_layout Standard
15654 The \SpecialChar LyX
15655  document classes 
15656 \emph on
15657 article (mwart)
15658 \emph default
15659
15660 \emph on
15661 report (mwrep)
15662 \emph default
15663  and 
15664 \emph on
15665 book
15666 \emph default
15667  
15668 \emph on
15669 (mwbk)
15670 \emph default
15671  correspond to the \SpecialChar LaTeX
15672  document classes 
15673 \family typewriter
15674 mwart.cls
15675 \family default
15676
15677 \family typewriter
15678 mwrep.cls
15679 \family default
15680  and 
15681 \family typewriter
15682 mwbk.cls
15683 \family default
15684 , resp.
15685  They are replacements for the standard document classes 
15686 \family typewriter
15687 article.cls
15688 \family default
15689
15690 \family typewriter
15691 report.cls
15692 \family default
15693  and 
15694 \family typewriter
15695 book.cls
15696 \family default
15697 , resp., and fit better to Polish typography conventions in a number of points.
15698  
15699 \end_layout
15700
15701 \begin_layout Standard
15702 Basic differences:
15703 \end_layout
15704
15705 \begin_layout Itemize
15706 Unnumbered titles (with star, e.
15707 \begin_inset space \thinspace{}
15708 \end_inset
15709
15710 g.
15711 \begin_inset space \space{}
15712 \end_inset
15713
15714
15715 \family sans
15716 Section*
15717 \family default
15718 ) are added into table of contents,
15719 \end_layout
15720
15721 \begin_layout Itemize
15722 Additional page styles:
15723 \begin_inset Separator parbreak
15724 \end_inset
15725
15726
15727 \end_layout
15728
15729 \begin_deeper
15730 \begin_layout Description
15731 uheadings header with separated lines,
15732 \end_layout
15733
15734 \begin_layout Description
15735 myheadings custom header, contents headers via commands: 
15736 \family typewriter
15737
15738 \backslash
15739 markright
15740 \family default
15741  and 
15742 \family typewriter
15743
15744 \backslash
15745 markboth
15746 \family default
15747 ,
15748 \end_layout
15749
15750 \begin_layout Description
15751 myuheadings custom header with separated lines,
15752 \end_layout
15753
15754 \begin_layout Description
15755 outer page number is placed on outer side of page
15756 \end_layout
15757
15758 \end_deeper
15759 \begin_layout Itemize
15760 Options 
15761 \begin_inset Separator parbreak
15762 \end_inset
15763
15764
15765 \end_layout
15766
15767 \begin_deeper
15768 \begin_layout Description
15769 rmheadings serif titles — default,
15770 \end_layout
15771
15772 \begin_layout Description
15773 sfheadings sansserif titles,
15774 \end_layout
15775
15776 \begin_layout Description
15777 authortitle on title page first placed is author next title — default,
15778 \end_layout
15779
15780 \begin_layout Description
15781 titleauthor on title page first placed is title next author,
15782 \end_layout
15783
15784 \begin_layout Description
15785 withmarginpar reserve place on page for margins.
15786 \end_layout
15787
15788 \end_deeper
15789 \begin_layout Section
15790 Paper
15791 \end_layout
15792
15793 \begin_layout Standard
15794 The document class 
15795 \family sans
15796 paper
15797 \family default
15798  provides an alternative to the standard 
15799 \family sans
15800 article
15801 \family default
15802  class.
15803  It provides similar functionality, but you might prefer this layout with
15804  sans serif sections, headings, and more.
15805 \end_layout
15806
15807 \begin_layout Section
15808 Rev\SpecialChar TeX
15809 4
15810 \end_layout
15811
15812 \begin_layout Standard
15813 by 
15814 \noun on
15815 Amir Karger
15816 \end_layout
15817
15818 \begin_layout Standard
15819 \begin_inset VSpace bigskip
15820 \end_inset
15821
15822
15823 \end_layout
15824
15825 \begin_layout Standard
15826 \noindent
15827 The 
15828 \family sans
15829 Revtex
15830 \begin_inset space ~
15831 \end_inset
15832
15833 4
15834 \family default
15835  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
15836  4.0 (the 
15837 \begin_inset Formula $\beta$
15838 \end_inset
15839
15840  release of May, 1999) class.
15841 \end_layout
15842
15843 \begin_layout Standard
15844 \SpecialChar LyX
15845  has a 
15846 \family sans
15847 Revtex
15848 \family default
15849  textclass, which works with Rev\SpecialChar TeX
15850  3.1.
15851  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
15852  2.09.
15853  That means that it doesn't interact very well with \SpecialChar LyX
15854 , which requires \SpecialChar LaTeX2e
15855 , although
15856  it has been kludged to work.
15857  Since Rev\SpecialChar TeX
15858  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
15859 , \SpecialChar LyX
15860  with the
15861  
15862 \family sans
15863 Rev\SpecialChar TeX
15864
15865 \begin_inset space ~
15866 \end_inset
15867
15868 4
15869 \family default
15870  textclass should also be pretty easy to use.
15871 \end_layout
15872
15873 \begin_layout Standard
15874 These documents are supposed to be used in 
15875 \emph on
15876 addition
15877 \emph default
15878  to the Rev\SpecialChar TeX
15879  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
15880  macros,
15881  and assume you'll know what to put in the preamble if necessary.
15882 \end_layout
15883
15884 \begin_layout Subsection
15885 Installation
15886 \end_layout
15887
15888 \begin_layout Standard
15889 All you need to do is install Rev\SpecialChar TeX
15890  4, as described in the package's README
15891  file.
15892  The package can be found at The Rev\SpecialChar TeX
15893  4 Web Site 
15894 \begin_inset Flex URL
15895 status collapsed
15896
15897 \begin_layout Plain Layout
15898
15899 http://publish.aps.org/revtex4/
15900 \end_layout
15901
15902 \end_inset
15903
15904 .
15905  Install it somewhere that \SpecialChar LaTeX
15906  can see it.
15907  Test it by trying to \SpecialChar LaTeX
15908  a short Rev\SpecialChar TeX
15909  4 document in some random directory (i.
15910 \begin_inset space \thinspace{}
15911 \end_inset
15912
15913 e.
15914 \begin_inset space \space{}
15915 \end_inset
15916
15917 not the directory where you installed the class file.) Then, if you reconfigure
15918  \SpecialChar LyX
15919 , it will find the class file and let you use the Rev\SpecialChar TeX
15920 4 textclass.
15921 \end_layout
15922
15923 \begin_layout Standard
15924 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
15925  4 document
15926  using 
15927 \family typewriter
15928 tex2lyx
15929 \family default
15930 , or to use the 
15931 \family sans
15932 Revtex
15933 \begin_inset space ~
15934 \end_inset
15935
15936 4
15937 \family default
15938  template, found in the templates directory.
15939 \end_layout
15940
15941 \begin_layout Subsection
15942 Preamble Matter
15943 \end_layout
15944
15945 \begin_layout Standard
15946 Optional arguments to 
15947 \family typewriter
15948
15949 \backslash
15950 documentclass
15951 \family default
15952 , like 
15953 \begin_inset Quotes eld
15954 \end_inset
15955
15956 preprint
15957 \begin_inset Quotes erd
15958 \end_inset
15959
15960  and 
15961 \begin_inset Quotes eld
15962 \end_inset
15963
15964 aps
15965 \begin_inset Quotes erd
15966 \end_inset
15967
15968 , go in the 
15969 \family sans
15970 Extra
15971 \begin_inset space ~
15972 \end_inset
15973
15974 Options
15975 \family default
15976  field in the 
15977 \family sans
15978 Document
15979 \begin_inset space ~
15980 \end_inset
15981
15982 Layout
15983 \family default
15984  dialog, as usual.
15985  Remember that in Rev\SpecialChar TeX
15986 , at least one optional argument is required! 
15987 \end_layout
15988
15989 \begin_layout Standard
15990 Other preamble matter, like 
15991 \family typewriter
15992
15993 \backslash
15994 draft
15995 \family default
15996  etc.
15997 \begin_inset space ~
15998 \end_inset
15999
16000 goes in the 
16001 \family sans
16002 \SpecialChar LaTeX
16003
16004 \begin_inset space ~
16005 \end_inset
16006
16007 Preamble
16008 \family default
16009  dialog, also as usual.
16010 \end_layout
16011
16012 \begin_layout Subsection
16013 Layouts
16014 \end_layout
16015
16016 \begin_layout Standard
16017 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16018 4.0.
16019  For example, the Email layout corresponds to 
16020 \family typewriter
16021
16022 \backslash
16023 email{}
16024 \family default
16025 .
16026  Note that (at least as of Rev\SpecialChar TeX
16027  4.0 Beta), the 
16028 \family sans
16029 Address
16030 \family default
16031  and 
16032 \family sans
16033 Affiliation
16034 \family default
16035  layouts are exactly equivalent, so you shouldn't need to use both.
16036 \begin_inset Foot
16037 status collapsed
16038
16039 \begin_layout Plain Layout
16040 In case you're curious, both were included so that 
16041 \family typewriter
16042 tex2lyx
16043 \family default
16044  would be able to translate both 
16045 \family typewriter
16046
16047 \backslash
16048 address
16049 \family default
16050  and 
16051 \family typewriter
16052
16053 \backslash
16054 affiliation
16055 \family default
16056 .
16057 \end_layout
16058
16059 \end_inset
16060
16061
16062 \end_layout
16063
16064 \begin_layout Subsection
16065 Important Notes
16066 \end_layout
16067
16068 \begin_layout Standard
16069 There are a couple of important unique aspects of Rev\SpecialChar TeX
16070  4 which might cause
16071  bugs that will be even more confusing in \SpecialChar LyX
16072 .
16073 \end_layout
16074
16075 \begin_layout Standard
16076 In Rev\SpecialChar TeX
16077 , the 
16078 \family typewriter
16079
16080 \backslash
16081 thanks
16082 \family default
16083  command goes 
16084 \emph on
16085 outside
16086 \emph default
16087  the 
16088 \family typewriter
16089
16090 \backslash
16091 author
16092 \family default
16093  command.
16094  The \SpecialChar LyX
16095  equivalent is that there is a separate Thanks layout.
16096  Do 
16097 \emph on
16098 not
16099 \emph default
16100  write footnotes in the 
16101 \family sans
16102 Author
16103 \family default
16104  layout, or weird things may happen.
16105  See the Rev\SpecialChar TeX
16106  4 documentation for more details.
16107 \end_layout
16108
16109 \begin_layout Standard
16110 Also, the 
16111 \family sans
16112 Author
16113 \begin_inset space ~
16114 \end_inset
16115
16116 Email
16117 \family default
16118
16119 \family sans
16120 Author
16121 \begin_inset space ~
16122 \end_inset
16123
16124 URL
16125 \family default
16126 , and 
16127 \family sans
16128 Thanks
16129 \family default
16130  layouts must be placed 
16131 \emph on
16132 in between
16133 \emph default
16134  the 
16135 \family sans
16136 Author
16137 \family default
16138  layout and the corresponding 
16139 \family sans
16140 Address
16141 \family default
16142  (or equivalent 
16143 \family sans
16144 Affiliation
16145 \family default
16146 ) layout.
16147  If you put the 
16148 \family sans
16149 Thanks
16150 \family default
16151  after the 
16152 \family sans
16153 Address
16154 \family default
16155 , the \SpecialChar LaTeX
16156  won't compile.
16157 \end_layout
16158
16159 \begin_layout Subsection
16160 Drawbacks
16161 \end_layout
16162
16163 \begin_layout Standard
16164 The main problem with this layout is that you can't use the optional arguments
16165  to layouts like Email and Title.
16166  (The problem is not unique to this layout; you can't use optional arguments
16167  to the Section layouts either.) This means that after you export that file
16168  to \SpecialChar LaTeX
16169  (which you'll need to do eventually to send it in to APS), you'll need
16170  to edit the \SpecialChar LaTeX
16171  file with a text editor to add the optional arguments to set,
16172  e.
16173 \begin_inset space \thinspace{}
16174 \end_inset
16175
16176 g.
16177 \begin_inset space \space{}
16178 \end_inset
16179
16180 the running title for the page headers.
16181  Lacking these layouts makes the 
16182 \family typewriter
16183
16184 \backslash
16185 altaffiliation
16186 \family default
16187  (and the equivalent 
16188 \family typewriter
16189
16190 \backslash
16191 altaddress
16192 \family default
16193 ) useless, so the corresponding layouts don't exist, and will have to be
16194  added by hand.
16195 \begin_inset Foot
16196 status collapsed
16197
16198 \begin_layout Plain Layout
16199
16200 \emph on
16201 Note from JMarc:
16202 \emph default
16203  actually, \SpecialChar LyX
16204  1.3.0 supports some forms of optional arguments, but this layout
16205  has not been updated yet to take advantage of it.
16206 \end_layout
16207
16208 \end_inset
16209
16210  
16211 \end_layout
16212
16213 \begin_layout Section
16214 Springer Journals (
16215 \family sans
16216 svjour
16217 \family default
16218 )
16219 \end_layout
16220
16221 \begin_layout Standard
16222 by 
16223 \noun on
16224 Martin Vermeer
16225 \end_layout
16226
16227 \begin_layout Subsection
16228 Description
16229 \end_layout
16230
16231 \begin_layout Standard
16232 These are the layout files for some of the journal formats used by Springer
16233  Verlag and listed on 
16234 \begin_inset Flex URL
16235 status collapsed
16236
16237 \begin_layout Plain Layout
16238
16239 http://www.springer.de/author/tex/help-journals.html
16240 \end_layout
16241
16242 \end_inset
16243
16244 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16245  now!).
16246  It is a modular system: the things common to all journals are implemented
16247  in 
16248 \family typewriter
16249 svjour.inc
16250 \family default
16251 , which journal-specific layout files (such as, e.
16252 \begin_inset space \thinspace{}
16253 \end_inset
16254
16255 g.
16256 \begin_inset space \space{}
16257 \end_inset
16258
16259
16260 \family typewriter
16261 svjog.layout
16262 \family default
16263  for Journal of Geodesy) can include.
16264 \end_layout
16265
16266 \begin_layout Standard
16267 This means that implementing support for any other Springer journal on this
16268  list is as simple as writing your own 
16269 \family typewriter
16270 sv
16271 \family default
16272 <myjournal>
16273 \family typewriter
16274 .layout
16275 \family default
16276  file following the outline given in 
16277 \family typewriter
16278 svjog.layout
16279 \family default
16280 .
16281  
16282 \end_layout
16283
16284 \begin_layout Standard
16285 It is reasonably well tested only for the Journal of Geodesy.
16286  
16287 \family typewriter
16288 svjour
16289 \family default
16290  and 
16291 \family typewriter
16292 svjog
16293 \family default
16294  come with the standard \SpecialChar LyX
16295  distribution.
16296  Install the relevant class file (downloaded from Springer) in a proper
16297  directory, reconfigure \SpecialChar LaTeX
16298  (in the te\SpecialChar TeX
16299  case by running 
16300 \family typewriter
16301 texhash
16302 \family default
16303 , as root if necessary — doesn't \SpecialChar LyX
16304  take care of this?), reconfigure \SpecialChar LyX
16305  and
16306  it should work.
16307 \end_layout
16308
16309 \begin_layout Subsection
16310 New styles
16311 \end_layout
16312
16313 \begin_layout Standard
16314 A large number of theorem-like styles — 
16315 \family sans
16316 Claim, Conjecture,
16317 \family default
16318  
16319 \family sans
16320 \SpecialChar ldots
16321 Theorem
16322 \family default
16323 .
16324 \end_layout
16325
16326 \begin_layout Standard
16327
16328 \family sans
16329 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16330 _Title, Author_Running, Institute,
16331  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16332 \family default
16333 .
16334  See the Springer class file documentation for details.
16335 \end_layout
16336
16337 \begin_layout Subsection
16338 Supported journals
16339 \end_layout
16340
16341 \begin_layout Itemize
16342
16343 \emph on
16344 Journal of Geodesy
16345 \emph default
16346
16347 \family typewriter
16348 svjog.layout
16349 \family default
16350  — Martin Vermeer
16351 \end_layout
16352
16353 \begin_layout Itemize
16354
16355 \emph on
16356 Probability Theory and Related Fields
16357 \emph default
16358
16359 \family typewriter
16360 svprobth.layout
16361 \family default
16362  — Jean-Marc Lasgouttes
16363 \end_layout
16364
16365 \begin_layout Standard
16366 Add your own, it isn't so hard!
16367 \end_layout
16368
16369 \begin_layout Subsection
16370 Credits
16371 \end_layout
16372
16373 \begin_layout Standard
16374 These files are partly based on the older 
16375 \family typewriter
16376 ejour2.layout
16377 \family default
16378 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16379  2.09 style
16380  file from Springer.
16381  All this, and the 
16382 \family typewriter
16383 ejour2
16384 \family default
16385  layout, are now defunct.
16386  Jean-Marc Lasgouttes helped out big in making me find my way around the
16387  \SpecialChar LyX
16388  layout file mechanism.
16389 \end_layout
16390
16391 \begin_layout Subsection
16392 Bugs
16393 \end_layout
16394
16395 \begin_layout Standard
16396 Probably.
16397  But probably less than in the old hacked-\SpecialChar LaTeX
16398  
16399 \family typewriter
16400 ejour2
16401 \family default
16402 .
16403 \end_layout
16404
16405 \begin_layout Standard
16406 Limitations e.
16407 \begin_inset space \thinspace{}
16408 \end_inset
16409
16410 g.: does not display the number for theorem-like layouts, just #.
16411 \end_layout
16412
16413 \begin_layout Section
16414 Slides [aka 
16415 \noun on
16416 Sli\SpecialChar TeX
16417
16418 \noun default
16419 ]
16420 \begin_inset CommandInset label
16421 LatexCommand label
16422 name "sec:slitex"
16423
16424 \end_inset
16425
16426
16427 \end_layout
16428
16429 \begin_layout Standard
16430 by 
16431 \noun on
16432 John Weiss
16433 \noun default
16434  
16435 \end_layout
16436
16437 \begin_layout Subsection
16438 Introduction
16439 \end_layout
16440
16441 \begin_layout Standard
16442 This section describes how to use \SpecialChar LyX
16443  to make slides for overhead projectors.
16444  There are two document classes that can do this: the default slides class
16445  and the 
16446 \family sans
16447 Foil\SpecialChar TeX
16448
16449 \family default
16450  slides class.
16451  This section documents the former.
16452 \end_layout
16453
16454 \begin_layout Standard
16455 I'm going to say this again, nice and clear, so that there's no misunderstanding
16456 :
16457 \end_layout
16458
16459 \begin_layout Standard
16460 \begin_inset VSpace bigskip
16461 \end_inset
16462
16463
16464 \end_layout
16465
16466 \begin_layout Standard
16467 \align center
16468
16469 \size large
16470 This section documents the class 
16471 \begin_inset Quotes eld
16472 \end_inset
16473
16474
16475 \family sans
16476 slides (default)
16477 \family default
16478
16479 \begin_inset Quotes erd
16480 \end_inset
16481
16482  
16483 \emph on
16484 only.
16485 \end_layout
16486
16487 \begin_layout Standard
16488 \begin_inset VSpace bigskip
16489 \end_inset
16490
16491
16492 \end_layout
16493
16494 \begin_layout Standard
16495 If you're looking for the documentation for 
16496 \begin_inset Quotes eld
16497 \end_inset
16498
16499
16500 \family sans
16501 slides (Foil\SpecialChar TeX
16502 )
16503 \family default
16504
16505 \begin_inset Quotes erd
16506 \end_inset
16507
16508 , check out section
16509 \begin_inset space ~
16510 \end_inset
16511
16512
16513 \begin_inset CommandInset ref
16514 LatexCommand ref
16515 reference "sec:foiltex"
16516
16517 \end_inset
16518
16519 .
16520  The 
16521 \family sans
16522 foils
16523 \family default
16524  class [
16525 \begin_inset Quotes eld
16526 \end_inset
16527
16528
16529 \family sans
16530 slides (Foil\SpecialChar TeX
16531 )
16532 \family default
16533
16534 \begin_inset Quotes erd
16535 \end_inset
16536
16537 ] is actually somewhat better than the default 
16538 \family sans
16539 slides
16540 \family default
16541  class,
16542 \begin_inset Foot
16543 status collapsed
16544
16545 \begin_layout Plain Layout
16546 \SpecialChar ldots
16547 or so I've been told repeatedly by its advocates.
16548  Having never used it, I have no idea if this claim is true or not.
16549 \end_layout
16550
16551 \end_inset
16552
16553  which this section documents.
16554 \end_layout
16555
16556 \begin_layout Standard
16557 This class is the \SpecialChar LaTeX2e
16558  improvement of the old 
16559 \noun on
16560 Sli\SpecialChar TeX
16561
16562 \noun default
16563  package.
16564  Every \SpecialChar LaTeX2e
16565  distribution includes this class [which I'll just refer to as 
16566 \begin_inset Quotes eld
16567 \end_inset
16568
16569
16570 \family sans
16571 slides
16572 \family default
16573
16574 \begin_inset Quotes erd
16575 \end_inset
16576
16577  from now on], so you're bound to have it.
16578  As I noted earlier, there are other classes, such as 
16579 \family sans
16580 foils
16581 \family default
16582 , which also produce slides for overhead projectors and do a better job
16583  at it.
16584  However, there are some things which 
16585 \family sans
16586 slides
16587 \family default
16588  can do which the others can't, such as generate overlays.
16589  Read on to learn more!
16590 \end_layout
16591
16592 \begin_layout Subsection
16593 Getting Started
16594 \begin_inset CommandInset label
16595 LatexCommand label
16596 name "sec:slidesetup"
16597
16598 \end_inset
16599
16600
16601 \end_layout
16602
16603 \begin_layout Standard
16604 Obviously, to use this document class, you need to select 
16605 \begin_inset Quotes eld
16606 \end_inset
16607
16608
16609 \family sans
16610 slides (default)
16611 \family default
16612
16613 \begin_inset Quotes erd
16614 \end_inset
16615
16616  from the class list in the 
16617 \family sans
16618 Document\SpecialChar menuseparator
16619 Settings
16620 \family default
16621  dialog.
16622  There are some other special things you should know about this class:
16623 \end_layout
16624
16625 \begin_layout Itemize
16626 Don't bother changing the options 
16627 \family sans
16628 Sides and Columns
16629 \family default
16630 .
16631  They're not supported by the 
16632 \family sans
16633 slides
16634 \family default
16635  class, anyways.
16636 \end_layout
16637
16638 \begin_layout Itemize
16639 The option 
16640 \family sans
16641 Page
16642 \begin_inset space ~
16643 \end_inset
16644
16645 style
16646 \family default
16647  behaves a bit differently for this class.
16648  The possible choices and what they do are as follows:
16649 \begin_inset Separator parbreak
16650 \end_inset
16651
16652
16653 \end_layout
16654
16655 \begin_deeper
16656 \begin_layout Description
16657
16658 \family sans
16659 plain
16660 \family default
16661  The final output contains page numbers in the lower right corner.
16662 \end_layout
16663
16664 \begin_layout Description
16665
16666 \family sans
16667 headings
16668 \family default
16669  Like 
16670 \family sans
16671 plain
16672 \family default
16673 , but also prints out any time markers you've put in.
16674  This is the default.
16675 \end_layout
16676
16677 \begin_layout Description
16678
16679 \family sans
16680 empty
16681 \family default
16682  The final output contains no page numbers, time markers, or alignment markers.
16683 \end_layout
16684
16685 \end_deeper
16686 \begin_layout Itemize
16687 The 
16688 \family sans
16689 slides
16690 \family default
16691  class has an extra option: 
16692 \family typewriter
16693 clock
16694 \family default
16695 .
16696  To use it, put 
16697 \begin_inset Quotes eld
16698 \end_inset
16699
16700
16701 \family typewriter
16702 clock
16703 \family default
16704
16705 \begin_inset Quotes erd
16706 \end_inset
16707
16708  in the extra class options.
16709 \begin_inset Separator parbreak
16710 \end_inset
16711
16712
16713 \end_layout
16714
16715 \begin_deeper
16716 \begin_layout Standard
16717 Using this options allows you to add time markers to 
16718 \family sans
16719 Note
16720 \family default
16721 s.
16722  See section
16723 \begin_inset space ~
16724 \end_inset
16725
16726
16727 \begin_inset CommandInset ref
16728 LatexCommand ref
16729 reference "sec:slideNote"
16730
16731 \end_inset
16732
16733  for more details.
16734 \end_layout
16735
16736 \end_deeper
16737 \begin_layout Standard
16738 You can also use the template file 
16739 \begin_inset Quotes eld
16740 \end_inset
16741
16742
16743 \family typewriter
16744 slides.lyx
16745 \family default
16746
16747 \begin_inset Quotes erd
16748 \end_inset
16749
16750  to automatically set up a document to use the 
16751 \family sans
16752 slides
16753 \family default
16754  class [using 
16755 \family sans
16756 File\SpecialChar menuseparator
16757 New
16758 \begin_inset space ~
16759 \end_inset
16760
16761 from
16762 \begin_inset space ~
16763 \end_inset
16764
16765 Template
16766 \family default
16767  to open your new document].
16768  The template file also contains some examples of the special paragraph
16769  environments used by this class.
16770  I'll describe those next.
16771 \end_layout
16772
16773 \begin_layout Subsection
16774 Paragraph Environments
16775 \end_layout
16776
16777 \begin_layout Subsubsection
16778 Supported Environments
16779 \end_layout
16780
16781 \begin_layout Standard
16782 The first thing you'll notice when you start up a new 
16783 \family sans
16784 slides
16785 \family default
16786  document is the font size and type: it's the equivalent of the size 
16787 \begin_inset Quotes eld
16788 \end_inset
16789
16790
16791 \family sans
16792 Largest
16793 \family default
16794
16795 \begin_inset Quotes erd
16796 \end_inset
16797
16798  in the 
16799 \family sans
16800 Sans
16801 \begin_inset space ~
16802 \end_inset
16803
16804 Serif
16805 \family default
16806  font.
16807  This is also what's used in the output.
16808  Think of this as a 
16809 \begin_inset Quotes eld
16810 \end_inset
16811
16812 visual cue
16813 \begin_inset Quotes erd
16814 \end_inset
16815
16816  to remind you that this is a slide.
16817  Your final slides will use a larger font; ergo, you'll have less space.
16818  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
16819 \end_layout
16820
16821 \begin_layout Standard
16822 The next thing that becomes obvious is the changes to the paragraph environment
16823  pull-down box [at the far-left end of the toolbar].
16824  Most of the paragraph environments you're used to seeing are missing.
16825  There are also five new ones.
16826  That's because the 
16827 \family sans
16828 slides
16829 \family default
16830  class itself only supports certain paragraph environments:
16831 \end_layout
16832
16833 \begin_layout Itemize
16834
16835 \family sans
16836 Standard
16837 \end_layout
16838
16839 \begin_layout Itemize
16840
16841 \family sans
16842 Itemize
16843 \end_layout
16844
16845 \begin_layout Itemize
16846
16847 \family sans
16848 Enumerate
16849 \end_layout
16850
16851 \begin_layout Itemize
16852
16853 \family sans
16854 Description
16855 \end_layout
16856
16857 \begin_layout Itemize
16858
16859 \family sans
16860 List
16861 \end_layout
16862
16863 \begin_layout Itemize
16864
16865 \family sans
16866 Quotation
16867 \end_layout
16868
16869 \begin_layout Itemize
16870
16871 \family sans
16872 Quote
16873 \end_layout
16874
16875 \begin_layout Itemize
16876
16877 \family sans
16878 Verse
16879 \end_layout
16880
16881 \begin_layout Itemize
16882
16883 \family sans
16884 Caption
16885 \end_layout
16886
16887 \begin_layout Itemize
16888
16889 \family sans
16890 \SpecialChar LyX
16891 -Code
16892 \end_layout
16893
16894 \begin_layout Itemize
16895
16896 \family sans
16897 Comment
16898 \end_layout
16899
16900 \begin_layout Standard
16901 All of the other standard environments, including the section-heading environmen
16902 ts, aren't used in the 
16903 \family sans
16904 slides
16905 \family default
16906  class.
16907 \end_layout
16908
16909 \begin_layout Standard
16910 On the other hand, you'll notice the following new environments:
16911 \end_layout
16912
16913 \begin_layout Itemize
16914
16915 \family sans
16916 Slide
16917 \end_layout
16918
16919 \begin_layout Itemize
16920
16921 \family sans
16922 Overlay
16923 \end_layout
16924
16925 \begin_layout Itemize
16926
16927 \family sans
16928 Note
16929 \end_layout
16930
16931 \begin_layout Itemize
16932
16933 \family sans
16934 InvisibleText
16935 \end_layout
16936
16937 \begin_layout Itemize
16938
16939 \family sans
16940 VisibleText
16941 \end_layout
16942
16943 \begin_layout Standard
16944 These five are kind of quirky, due to a 
16945 \begin_inset Quotes eld
16946 \end_inset
16947
16948 feature
16949 \begin_inset Quotes erd
16950 \end_inset
16951
16952  in \SpecialChar LyX
16953 .
16954  You see, \SpecialChar LyX
16955  doesn't permit you to nest any other paragraph environment into
16956  an empty environment.
16957  Now, that's fine and dandy, but it means that you wouldn't be able to start
16958  a slide with anything except plain text.
16959  To deal with this, I've performed a little 
16960 \begin_inset Quotes eld
16961 \end_inset
16962
16963 \SpecialChar LaTeX
16964  magic.
16965 \begin_inset Quotes erd
16966 \end_inset
16967
16968  
16969 \end_layout
16970
16971 \begin_layout Subsubsection
16972 Quirks of the New Environments
16973 \begin_inset CommandInset label
16974 LatexCommand label
16975 name "sec:slideQuirk"
16976
16977 \end_inset
16978
16979
16980 \end_layout
16981
16982 \begin_layout Standard
16983 All five of the new paragraph environments are somewhat quirky due to inherent
16984  limitiations in the current version of \SpecialChar LyX
16985 .
16986  As I just mentioned, \SpecialChar LyX
16987  forbids environments that begin with another environment.
16988  To get around this, the 
16989 \family sans
16990 Slide
16991 \family default
16992  environment isn't a paragraph environment as described in the 
16993 \emph on
16994 User's Guide
16995 \emph default
16996 .
16997  
16998 \end_layout
16999
17000 \begin_layout Standard
17001 You should consider 
17002 \family sans
17003 Slide
17004 \family default
17005
17006 \family sans
17007 Overlay
17008 \family default
17009 , and 
17010 \family sans
17011 Note
17012 \family default
17013  to be 
17014 \begin_inset Quotes eld
17015 \end_inset
17016
17017 pseudo-environments.
17018 \begin_inset Quotes erd
17019 \end_inset
17020
17021  They look like a section heading or a 
17022 \begin_inset Quotes eld
17023 \end_inset
17024
17025
17026 \family sans
17027 Caption
17028 \family default
17029 ,
17030 \begin_inset Quotes erd
17031 \end_inset
17032
17033  but really begin a [and, if necessary, end the previous] paragraph environment.
17034  Likewise, treat 
17035 \family sans
17036 InvisibleText
17037 \family default
17038  and 
17039 \family sans
17040 VisibleText
17041 \family default
17042  as 
17043 \begin_inset Quotes eld
17044 \end_inset
17045
17046 pseudo-commands.
17047 \begin_inset Quotes erd
17048 \end_inset
17049
17050  These two perform some action.
17051 \end_layout
17052
17053 \begin_layout Standard
17054 A common feature of all five environments, 
17055 \family sans
17056 Slide
17057 \family default
17058
17059 \family sans
17060 Overlay
17061 \family default
17062
17063 \family sans
17064 Note
17065 \family default
17066
17067 \family sans
17068 InvisibleText
17069 \family default
17070  and 
17071 \family sans
17072 VisibleText
17073 \family default
17074 , is a rather long-ish label.
17075  The text following this label — ordinarily the contents of the paragraph
17076  environment — is utterly irrelevant for 
17077 \family sans
17078 Slide
17079 \family default
17080
17081 \family sans
17082 Overlay
17083 \family default
17084
17085 \family sans
17086 Note
17087 \family default
17088
17089 \family sans
17090 InvisibleText
17091 \family default
17092  and 
17093 \family sans
17094 VisibleText
17095 \family default
17096 .
17097  \SpecialChar LyX
17098  completely ignores it.
17099  In fact, you can leave these five environments completely empty.
17100  
17101 \end_layout
17102
17103 \begin_layout Standard
17104 While you don't 
17105 \emph on
17106 have
17107 \emph default
17108  to put any text after the rather long-ish label, you might want to.
17109  This could be a short description of the contents of the 
17110 \family sans
17111 Slide
17112 \family default
17113 , for example.
17114  In that case, enter your descriptive comment and hit 
17115 \family sans
17116 Return
17117 \family default
17118  as you normally would.
17119 \end_layout
17120
17121 \begin_layout Standard
17122 If, on the other hand, you don't want to enter any descriptive text, you'll
17123  hit another \SpecialChar LyX
17124  quirk.
17125  \SpecialChar LyX
17126 , like nature, abhors a vacuum, and will not let you start a new paragraph
17127  environment until you put something in the old one.
17128  So, do this:
17129 \end_layout
17130
17131 \begin_layout Itemize
17132 Start entering the text that will 
17133 \emph on
17134 follow
17135 \emph default
17136  the new 
17137 \family sans
17138 Slide
17139 \family default
17140
17141 \family sans
17142 Overlay
17143 \family default
17144
17145 \family sans
17146 Note
17147 \family default
17148
17149 \family sans
17150 InvisibleText
17151 \family default
17152  or 
17153 \family sans
17154 VisibleText
17155 \family default
17156 .
17157  
17158 \end_layout
17159
17160 \begin_layout Itemize
17161 Now move to the beginning of that paragraph.
17162  
17163 \end_layout
17164
17165 \begin_layout Itemize
17166 Next, hit 
17167 \family sans
17168 Return
17169 \family default
17170 .
17171  
17172 \end_layout
17173
17174 \begin_layout Itemize
17175 Finally, change this new, empty paragraph to a 
17176 \family sans
17177 Slide
17178 \family default
17179
17180 \family sans
17181 Overlay
17182 \family default
17183
17184 \family sans
17185 Note
17186 \family default
17187
17188 \family sans
17189 InvisibleText
17190 \family default
17191  or 
17192 \family sans
17193 VisibleText
17194 \family default
17195 .
17196  
17197 \end_layout
17198
17199 \begin_layout Standard
17200 Some future version of \SpecialChar LyX
17201  will, hopefully, resolve this quirkiness\SpecialChar ldots
17202
17203 \end_layout
17204
17205 \begin_layout Subsection
17206 Making a Presentation with 
17207 \family sans
17208 Slide
17209 \family default
17210
17211 \family sans
17212 Overlay
17213 \family default
17214  and 
17215 \family sans
17216 Note
17217 \end_layout
17218
17219 \begin_layout Subsubsection
17220 Using the 
17221 \family sans
17222 Slide
17223 \family default
17224  Environment
17225 \end_layout
17226
17227 \begin_layout Standard
17228 If you're expecting this section to teach you how to actually make a presentatio
17229 n, you'll be sorely disappointed.
17230  Naturally, I'll describe all of the ways the 
17231 \family sans
17232 slides
17233 \family default
17234  class can assist you in preparing the materials for a presentation.
17235  Filling in the contents, however, is up to you.
17236  [Then again, that 
17237 \emph on
17238 is
17239 \emph default
17240  the \SpecialChar LyX
17241  philosophy.]
17242 \end_layout
17243
17244 \begin_layout Standard
17245 Choosing the 
17246 \family sans
17247 Slide
17248 \family default
17249  environment [in the manner described in section
17250 \begin_inset space ~
17251 \end_inset
17252
17253
17254 \begin_inset CommandInset ref
17255 LatexCommand ref
17256 reference "sec:slideQuirk"
17257
17258 \end_inset
17259
17260 ] tells \SpecialChar LyX
17261  to begin a new slide [duh].
17262  The label for this environment/
17263 \begin_inset Quotes erd
17264 \end_inset
17265
17266 pseudo-command
17267 \begin_inset Quotes erd
17268 \end_inset
17269
17270  is an 
17271 \begin_inset Quotes eld
17272 \end_inset
17273
17274 ASCII line,
17275 \begin_inset Quotes erd
17276 \end_inset
17277
17278  in cool blue, followed by the label, 
17279 \begin_inset Quotes eld
17280 \end_inset
17281
17282 NewSlide:
17283 \begin_inset Quotes erd
17284 \end_inset
17285
17286 .
17287  Any text or paragraph environments that follow this one go on the new slide.
17288  It's that simple.
17289 \end_layout
17290
17291 \begin_layout Standard
17292 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17293
17294  (this can be specified in the 
17295 \family sans
17296 Paragraph Layout
17297 \family default
17298  dialog).
17299  In fact, you'll want to, once you finish entering the contents of one slide.
17300  If you've entered more text than can physically fit on a slide, the extra
17301  overflows onto a new slide.
17302  I don't recommend doing this, however, since the overflow slide won't have
17303  any page number on it.
17304  Furthermore, it may interfere with any 
17305 \family sans
17306 Overlay
17307 \family default
17308  you've made to accompany the oversized 
17309 \family sans
17310 Slide
17311 \family default
17312 .
17313 \end_layout
17314
17315 \begin_layout Standard
17316 The 
17317 \family sans
17318 Overlay
17319 \family default
17320  and 
17321 \family sans
17322 Note
17323 \family default
17324  environments work the same way as the 
17325 \family sans
17326 Slide
17327 \family default
17328  environment.
17329  They both create an 
17330 \begin_inset Quotes eld
17331 \end_inset
17332
17333 ASCII line
17334 \begin_inset Quotes erd
17335 \end_inset
17336
17337  followed by a label [
17338 \begin_inset Quotes eld
17339 \end_inset
17340
17341 NewOverlay:
17342 \begin_inset Quotes erd
17343 \end_inset
17344
17345  and 
17346 \begin_inset Quotes eld
17347 \end_inset
17348
17349 NewNote:
17350 \begin_inset Quotes erd
17351 \end_inset
17352
17353 , respectively].
17354  The color is a stunning magenta instead of blue, and the 
17355 \begin_inset Quotes eld
17356 \end_inset
17357
17358 ASCII line
17359 \begin_inset Quotes erd
17360 \end_inset
17361
17362  will look different, in style and in length.
17363  The label fonts of all three also differ from one another.
17364 \end_layout
17365
17366 \begin_layout Standard
17367 As with a 
17368 \family sans
17369 Slide
17370 \family default
17371 , if the contents of a 
17372 \family sans
17373 Note
17374 \family default
17375  or 
17376 \family sans
17377 Overlay
17378 \family default
17379  exceed the physical size of a slide or sheet of paper, the extra will overflow
17380  onto a new sheet.
17381  Again, you should avoid this.
17382  It defeats the whole purpose of 
17383 \family sans
17384 Note
17385 \family default
17386 s and 
17387 \family sans
17388 Overlay
17389 \family default
17390 s.
17391 \end_layout
17392
17393 \begin_layout Subsubsection
17394 Using 
17395 \family sans
17396 Overlay
17397 \family default
17398  with 
17399 \family sans
17400 Slide
17401 \end_layout
17402
17403 \begin_layout Standard
17404 The idea behind an 
17405 \family sans
17406 Overlay
17407 \family default
17408  is a slide that sits atop another slide.
17409  Perhaps you wish to discuss a figure on the main 
17410 \family sans
17411 Slide
17412 \family default
17413  before displaying the text associated with it.
17414  One way to accomplish this is tape a flap of dark paper over the part of
17415  the 
17416 \family sans
17417 Slide
17418 \family default
17419  you want to display later.
17420  This method fails, however, if you wish to overlap one graph with another,
17421  for example.
17422  You would then have to fumble while speaking to align the two separate,
17423  overlapping 
17424 \family sans
17425 Slide
17426 \family default
17427 s to align the two graphs.
17428  The use of an 
17429 \family sans
17430 Overlay
17431 \family default
17432  environment in both cases makes life much easier.
17433 \end_layout
17434
17435 \begin_layout Standard
17436 Each 
17437 \family sans
17438 Overlay
17439 \family default
17440  receives the page number of its 
17441 \begin_inset Quotes eld
17442 \end_inset
17443
17444 parent
17445 \begin_inset Quotes erd
17446 \end_inset
17447
17448  
17449 \family sans
17450 Slide
17451 \family default
17452 , appended by 
17453 \begin_inset Quotes eld
17454 \end_inset
17455
17456
17457 \family typewriter
17458 -a
17459 \family default
17460
17461 \begin_inset Quotes erd
17462 \end_inset
17463
17464 .
17465 \begin_inset Foot
17466 status collapsed
17467
17468 \begin_layout Plain Layout
17469 Presumably, mutliple 
17470 \family sans
17471 Overlay
17472 \family default
17473 s would have 
17474 \begin_inset Quotes eld
17475 \end_inset
17476
17477
17478 \family typewriter
17479 -a
17480 \family default
17481
17482 \begin_inset Quotes erd
17483 \end_inset
17484
17485
17486 \begin_inset Quotes eld
17487 \end_inset
17488
17489
17490 \family typewriter
17491 -b
17492 \family default
17493
17494 \begin_inset Quotes erd
17495 \end_inset
17496
17497
17498 \begin_inset Quotes eld
17499 \end_inset
17500
17501
17502 \family typewriter
17503 -c
17504 \family default
17505
17506 \begin_inset Quotes erd
17507 \end_inset
17508
17509 , etc.
17510 \begin_inset space ~
17511 \end_inset
17512
17513 appended to the page number of the parent 
17514 \family sans
17515 Slide
17516 \family default
17517 .
17518  
17519 \end_layout
17520
17521 \end_inset
17522
17523  Clearly, you want the contents of both the 
17524 \family sans
17525 Slide
17526 \family default
17527  and the 
17528 \family sans
17529 Overlay
17530 \family default
17531  to each fit on a single physical slide! You should probably consider an
17532  
17533 \family sans
17534 Overlay
17535 \family default
17536  as 
17537 \begin_inset Quotes eld
17538 \end_inset
17539
17540 part of
17541 \begin_inset Quotes erd
17542 \end_inset
17543
17544  a 
17545 \family sans
17546 Slide
17547 \family default
17548 .
17549  Indeed, the \SpecialChar LyX
17550  
17551 \family sans
17552 slides
17553 \family default
17554  class provides a visual cue for this: the label at the start of an 
17555 \family sans
17556 Overlay
17557 \family default
17558  is shorter than that at the start of a 
17559 \family sans
17560 Slide
17561 \family default
17562 .
17563  Lastly, when you generate printable output, you'll find alignment markers
17564  in all four corners of both the 
17565 \family sans
17566 Overlay
17567 \family default
17568  page and its parent 
17569 \family sans
17570 Slide
17571 \family default
17572 .
17573  These will assist you in lining up the two physical slides.
17574 \end_layout
17575
17576 \begin_layout Standard
17577 The major problem in overlaying two slides is aligning the contents of the
17578  two transparencies.
17579  How much space should you leave for that graph on the second slide? Worse
17580  still, what if you want a graph and a sentence on second slide, but there
17581  is text on the main transparency that goes in between them? You could try
17582  and insert vertical space of the right size.
17583  The better way is to use 
17584 \family sans
17585 InvisibleText
17586 \family default
17587  and 
17588 \family sans
17589 VisibleText
17590 \family default
17591 .
17592 \end_layout
17593
17594 \begin_layout Standard
17595 As their names imply, 
17596 \family sans
17597 InvisibleText
17598 \family default
17599  and 
17600 \family sans
17601 VisibleText
17602 \family default
17603  are two command-like paragraph environments that make all subsequent text
17604  invisible and visible, respectively.
17605  Note from section
17606 \begin_inset space ~
17607 \end_inset
17608
17609
17610 \begin_inset CommandInset ref
17611 LatexCommand ref
17612 reference "sec:slideQuirk"
17613
17614 \end_inset
17615
17616  that you don't place anything 
17617 \emph on
17618 into
17619 \emph default
17620  these two environments, however.
17621  When you create an 
17622 \family sans
17623 InvisibleText
17624 \family default
17625 , it inserts a centered, sky-blue label into the page reading 
17626 \begin_inset Quotes eld
17627 \end_inset
17628
17629 <Invisible Text Follows>
17630 \begin_inset Quotes erd
17631 \end_inset
17632
17633 .
17634  For paragraphs following this label, the parts of the 
17635 \family sans
17636 Slide
17637 \family default
17638  [or 
17639 \family sans
17640 Overlay
17641 \family default
17642 ; it doesn't matter which] where they would be contain instead blank space.
17643  
17644 \end_layout
17645
17646 \begin_layout Standard
17647 For 
17648 \family sans
17649 VisibleText
17650 \family default
17651 , the corresponding centered label is 
17652 \begin_inset Quotes eld
17653 \end_inset
17654
17655 <Visible Text Follows>
17656 \begin_inset Quotes erd
17657 \end_inset
17658
17659  in blazing green.
17660  Paragraphs following this label behave normally.
17661  Note that the beginning of a new 
17662 \family sans
17663 Slide
17664 \family default
17665
17666 \family sans
17667 Overlay
17668 \family default
17669 , or 
17670 \family sans
17671 Note
17672 \family default
17673  automatically shuts off an 
17674 \family sans
17675 InvisibleText
17676 \family default
17677 .
17678  It's therefore not necessary to use 
17679 \family sans
17680 VisibleText
17681 \family default
17682  at the end of a 
17683 \family sans
17684 Slide
17685 \family default
17686 .
17687 \end_layout
17688
17689 \begin_layout Standard
17690 By now, it should be obvious how to create overlay transparencies using
17691  the proper combination of 
17692 \family sans
17693 InvisibleText
17694 \family default
17695  and 
17696 \family sans
17697 VisibleText
17698 \family default
17699  on a 
17700 \family sans
17701 Slide
17702 \family default
17703  and 
17704 \family sans
17705 Overlay
17706 \family default
17707 :
17708 \end_layout
17709
17710 \begin_layout Enumerate
17711 Create a 
17712 \family sans
17713 Slide
17714 \family default
17715 , including everything that will appear on it, whether on the main slide
17716  or on the 
17717 \family sans
17718 Overlay
17719 \family default
17720 .
17721 \end_layout
17722
17723 \begin_layout Enumerate
17724 Before each figure or paragraph that will appear only on the 
17725 \family sans
17726 Overlay
17727 \family default
17728 , insert an 
17729 \family sans
17730 InvisibleText
17731 \family default
17732  environment.
17733  If necessary, insert a 
17734 \family sans
17735 VisibleText
17736 \family default
17737  environment after the 
17738 \family sans
17739 Overlay
17740 \family default
17741 -only text.
17742 \end_layout
17743
17744 \begin_layout Enumerate
17745 Start an 
17746 \family sans
17747 Overlay
17748 \family default
17749  immediately following the 
17750 \family sans
17751 Slide
17752 \family default
17753 .
17754 \end_layout
17755
17756 \begin_layout Enumerate
17757 Copy the contents of this 
17758 \family sans
17759 Slide
17760 \family default
17761  into the 
17762 \family sans
17763 Overlay
17764 \family default
17765 .
17766 \end_layout
17767
17768 \begin_layout Enumerate
17769 Within the 
17770 \family sans
17771 Overlay
17772 \family default
17773 , change all of the 
17774 \family sans
17775 InvisibleText
17776 \family default
17777  lines to 
17778 \family sans
17779 VisibleText
17780 \family default
17781  and vice-versa.
17782 \end_layout
17783
17784 \begin_layout Standard
17785 That's it.
17786  You've just made an 
17787 \family sans
17788 Overlay
17789 \family default
17790 .
17791 \end_layout
17792
17793 \begin_layout Standard
17794 There's one problem with the way I've designed the \SpecialChar LyX
17795  
17796 \family sans
17797 slides
17798 \family default
17799  class: you can't make text in the middle of a paragraph invisible, nor
17800  make text in the middle of an invisible paragraph visible again.
17801  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
17802  codes.
17803 \begin_inset Foot
17804 status collapsed
17805
17806 \begin_layout Plain Layout
17807 The commands of interest are: 
17808 \end_layout
17809
17810 \begin_layout Itemize
17811
17812 \family typewriter
17813 {
17814 \backslash
17815 invisible \SpecialChar ldots
17816  }
17817 \end_layout
17818
17819 \begin_layout Itemize
17820
17821 \family typewriter
17822 {
17823 \backslash
17824 visible \SpecialChar ldots
17825  }
17826 \end_layout
17827
17828 \begin_layout Plain Layout
17829 \SpecialChar ldots
17830 and need to be marked as \SpecialChar TeX
17831 .
17832  The text whose 
17833 \begin_inset Quotes eld
17834 \end_inset
17835
17836 visibility
17837 \begin_inset Quotes erd
17838 \end_inset
17839
17840  you wish to change goes in between the brackets [and after the 
17841 \family typewriter
17842
17843 \backslash
17844 invisible
17845 \family default
17846  or 
17847 \family typewriter
17848
17849 \backslash
17850 visible
17851 \family default
17852  command].
17853  If you don't know how to mark text as \SpecialChar TeX
17854 , see the appropriate section of
17855  the 
17856 \emph on
17857 User's Guide
17858 \emph default
17859 .
17860 \end_layout
17861
17862 \end_inset
17863
17864
17865 \end_layout
17866
17867 \begin_layout Subsubsection
17868 Using 
17869 \family sans
17870 Note
17871 \family default
17872  with 
17873 \family sans
17874 Slide
17875 \family default
17876
17877 \begin_inset CommandInset label
17878 LatexCommand label
17879 name "sec:slideNote"
17880
17881 \end_inset
17882
17883
17884 \end_layout
17885
17886 \begin_layout Standard
17887 Like an 
17888 \family sans
17889 Overlay
17890 \family default
17891 , a 
17892 \family sans
17893 Note
17894 \family default
17895  is associated with a 
17896 \begin_inset Quotes eld
17897 \end_inset
17898
17899 parent
17900 \begin_inset Quotes erd
17901 \end_inset
17902
17903  
17904 \family sans
17905 Slide
17906 \family default
17907 .
17908  Here, too, the \SpecialChar LyX
17909  
17910 \family sans
17911 slides
17912 \family default
17913  class provides visual cues.
17914  The label for a 
17915 \family sans
17916 Note
17917 \family default
17918  is shorter than that of a 
17919 \family sans
17920 Slide
17921 \family default
17922  [yet longer than that of an 
17923 \family sans
17924 Overlay
17925 \family default
17926 ] and, like the label of an 
17927 \family sans
17928 Overlay
17929 \family default
17930  is shockingly magenta.
17931  Additionally, the printed 
17932 \family sans
17933 Note
17934 \family default
17935  has the page number of its 
17936 \begin_inset Quotes eld
17937 \end_inset
17938
17939 parent
17940 \begin_inset Quotes erd
17941 \end_inset
17942
17943  
17944 \family sans
17945 Slide
17946 \family default
17947 , appended by 
17948 \begin_inset Quotes eld
17949 \end_inset
17950
17951
17952 \family typewriter
17953 -
17954 \family default
17955 1
17956 \begin_inset Quotes erd
17957 \end_inset
17958
17959
17960 \begin_inset Quotes eld
17961 \end_inset
17962
17963
17964 \family typewriter
17965 -
17966 \family default
17967 2
17968 \begin_inset Quotes erd
17969 \end_inset
17970
17971
17972 \begin_inset Quotes eld
17973 \end_inset
17974
17975
17976 \family typewriter
17977 -
17978 \family default
17979 3
17980 \begin_inset Quotes erd
17981 \end_inset
17982
17983 , etc.
17984  You can have multiple 
17985 \family sans
17986 Note
17987 \family default
17988 s associated with a single 
17989 \family sans
17990 Slide
17991 \family default
17992 , and, as with 
17993 \family sans
17994 Slide
17995 \family default
17996  and 
17997 \family sans
17998 Overlay
17999 \family default
18000 , you'll probably want to break up long 
18001 \family sans
18002 Note
18003 \family default
18004 s so that they fit on a single sheet of paper.
18005 \end_layout
18006
18007 \begin_layout Standard
18008 The purpose of a 
18009 \family sans
18010 Note
18011 \family default
18012  is obvious: it contains anything additional you might want to say about
18013  a 
18014 \family sans
18015 Slide
18016 \family default
18017 .
18018  It could also be used as a sheet of reminders for a particular 
18019 \family sans
18020 Slide
18021 \family default
18022 .
18023  In the case of the latter, you might want to make use of time markers.
18024  Currently, the \SpecialChar LyX
18025  
18026 \family sans
18027 slides
18028 \family default
18029  class has no 
18030 \begin_inset Quotes eld
18031 \end_inset
18032
18033 native
18034 \begin_inset Quotes erd
18035 \end_inset
18036
18037  support for time markers, a 
18038 \noun on
18039 Sli\SpecialChar TeX
18040
18041 \noun default
18042  feature.
18043  So, you'll have to resort to using the \SpecialChar LaTeX
18044  codes.
18045 \end_layout
18046
18047 \begin_layout Standard
18048 To use time markers, you'll need to specify the extra class option 
18049 \begin_inset Quotes eld
18050 \end_inset
18051
18052
18053 \family typewriter
18054 clock
18055 \family default
18056
18057 \begin_inset Quotes erd
18058 \end_inset
18059
18060  [see section
18061 \begin_inset space ~
18062 \end_inset
18063
18064
18065 \begin_inset CommandInset ref
18066 LatexCommand ref
18067 reference "sec:slidesetup"
18068
18069 \end_inset
18070
18071 ].
18072  This option turns on timing marks, which will appear in the lower-left-hand
18073  corner of every 
18074 \family sans
18075 Note
18076 \family default
18077  you generate.
18078  To set what appears in the time marker, you use the \SpecialChar LaTeX
18079  commands 
18080 \begin_inset Quotes eld
18081 \end_inset
18082
18083
18084 \family typewriter
18085
18086 \backslash
18087 settime{}
18088 \family default
18089
18090 \begin_inset Quotes erd
18091 \end_inset
18092
18093  and 
18094 \begin_inset Quotes eld
18095 \end_inset
18096
18097
18098 \family typewriter
18099
18100 \backslash
18101 addtime{}
18102 \family default
18103
18104 \begin_inset Quotes erd
18105 \end_inset
18106
18107 .
18108  The arguments of both commands are time measured in seconds.
18109  
18110 \begin_inset Quotes eld
18111 \end_inset
18112
18113
18114 \family typewriter
18115
18116 \backslash
18117 settime{}
18118 \family default
18119
18120 \begin_inset Quotes erd
18121 \end_inset
18122
18123  sets the time marker to a given time.
18124  
18125 \begin_inset Quotes eld
18126 \end_inset
18127
18128
18129 \family typewriter
18130
18131 \backslash
18132 addtime{}
18133 \family default
18134
18135 \begin_inset Quotes erd
18136 \end_inset
18137
18138  increments the time marker by the specified amount.
18139  Using time markers and 
18140 \family sans
18141 Note
18142 \family default
18143 s in this fashion, you can remind yourself how much time to spend on a particula
18144
18145 \family sans
18146 Slide
18147 \family default
18148 .
18149 \end_layout
18150
18151 \begin_layout Standard
18152 There's one last feature to describe.
18153  Clearly, you'd like to print out all of your 
18154 \family sans
18155 Slide
18156 \family default
18157 s and 
18158 \family sans
18159 Overlay
18160 \family default
18161 s on transparencies while printing all of your 
18162 \family sans
18163 Note
18164 \family default
18165 s on plain paper.
18166  However, a 
18167 \family sans
18168 Note
18169 \family default
18170  
18171 \emph on
18172 must
18173 \emph default
18174  follow the 
18175 \family sans
18176 Slide
18177 \family default
18178  with which it is associated.
18179  What's a person to do?
18180 \end_layout
18181
18182 \begin_layout Standard
18183 Luckily, there are two \SpecialChar LaTeX
18184  commands that allow you to select what to print
18185  out.
18186  Both must be placed into the preamble of your document.
18187  The command 
18188 \begin_inset Quotes eld
18189 \end_inset
18190
18191
18192 \family typewriter
18193
18194 \backslash
18195 onlyslides{
18196 \backslash
18197 slides}
18198 \family default
18199
18200 \begin_inset Quotes erd
18201 \end_inset
18202
18203  will cause the output to contain only the 
18204 \family sans
18205 Slide
18206 \family default
18207 s and 
18208 \family sans
18209 Overlay
18210 \family default
18211 s.
18212  Correspondingly, the command 
18213 \begin_inset Quotes eld
18214 \end_inset
18215
18216
18217 \family typewriter
18218
18219 \backslash
18220 onlynotes{
18221 \backslash
18222 notes}
18223 \family default
18224
18225 \begin_inset Quotes erd
18226 \end_inset
18227
18228  prevents the output of anything but 
18229 \family sans
18230 Note
18231 \family default
18232 s.
18233  I'd advise placing both commands in the preamble and initially comment
18234  both out.
18235  You can then preview your entire presentation as you write.
18236  When you're done writing, you can then uncomment one of the two to select
18237  what you want to print.
18238  I like to uncomment 
18239 \begin_inset Quotes eld
18240 \end_inset
18241
18242
18243 \family typewriter
18244
18245 \backslash
18246 onlyslides{
18247 \backslash
18248 slides}
18249 \family default
18250
18251 \begin_inset Quotes erd
18252 \end_inset
18253
18254  , print to a file with 
18255 \begin_inset Quotes eld
18256 \end_inset
18257
18258
18259 \family typewriter
18260 -slides
18261 \family default
18262
18263 \begin_inset Quotes erd
18264 \end_inset
18265
18266  in its name, comment it back out, then uncomment 
18267 \begin_inset Quotes eld
18268 \end_inset
18269
18270
18271 \family typewriter
18272
18273 \backslash
18274 onlynotes{
18275 \backslash
18276 notes}
18277 \family default
18278
18279 \begin_inset Quotes erd
18280 \end_inset
18281
18282  and print to a 
18283 \begin_inset Quotes eld
18284 \end_inset
18285
18286
18287 \family typewriter
18288 *-notes.ps
18289 \family default
18290
18291 \begin_inset Quotes erd
18292 \end_inset
18293
18294  file.
18295  I can then send either file to a printer, loading transparencies or plain
18296  paper as appropriate.
18297 \end_layout
18298
18299 \begin_layout Standard
18300 You can also provide other arguments to the 
18301 \begin_inset Quotes eld
18302 \end_inset
18303
18304
18305 \family typewriter
18306
18307 \backslash
18308 onlyslides{}
18309 \family default
18310
18311 \begin_inset Quotes erd
18312 \end_inset
18313
18314  and 
18315 \begin_inset Quotes eld
18316 \end_inset
18317
18318
18319 \family typewriter
18320
18321 \backslash
18322 onlynotes{}
18323 \family default
18324
18325 \begin_inset Quotes erd
18326 \end_inset
18327
18328  commands.
18329  See a good \SpecialChar LaTeX
18330  book for details.
18331 \end_layout
18332
18333 \begin_layout Subsection
18334 The 
18335 \family sans
18336 slides
18337 \family default
18338  Class Template File
18339 \end_layout
18340
18341 \begin_layout Standard
18342 I have also provided a template file, 
18343 \begin_inset Quotes eld
18344 \end_inset
18345
18346
18347 \family typewriter
18348 slides.lyx
18349 \family default
18350
18351 \begin_inset Quotes erd
18352 \end_inset
18353
18354 , with the 
18355 \family sans
18356 slides
18357 \family default
18358  class.
18359  To use it, begin your new presentation with 
18360 \family sans
18361 File\SpecialChar menuseparator
18362 New
18363 \begin_inset space ~
18364 \end_inset
18365
18366 from
18367 \begin_inset space ~
18368 \end_inset
18369
18370 Template
18371 \family default
18372 .
18373  Your new \SpecialChar LyX
18374  presentation file will contain an example 
18375 \family sans
18376 Slide
18377 \family default
18378  – 
18379 \family sans
18380 Overlay
18381 \family default
18382  – 
18383 \family sans
18384 Note
18385 \family default
18386  triplet.
18387  The 
18388 \family sans
18389 Slide
18390 \family default
18391  and 
18392 \family sans
18393 Overlay
18394 \family default
18395  additionally contain an example of the use of 
18396 \family sans
18397 InvisibleText
18398 \family default
18399  and 
18400 \family sans
18401 VisibleText
18402 \family default
18403 .
18404  Lastly, the preamble will contain:
18405 \end_layout
18406
18407 \begin_layout LyX-Code
18408 % Uncomment to print out only slides and overlays
18409 \end_layout
18410
18411 \begin_layout LyX-Code
18412 %
18413 \end_layout
18414
18415 \begin_layout LyX-Code
18416 %
18417 \backslash
18418 onlyslides{
18419 \backslash
18420 slides}
18421 \begin_inset Newline newline
18422 \end_inset
18423
18424  
18425 \end_layout
18426
18427 \begin_layout LyX-Code
18428 % Uncomment to print out only notes
18429 \end_layout
18430
18431 \begin_layout LyX-Code
18432 %
18433 \end_layout
18434
18435 \begin_layout LyX-Code
18436 %
18437 \backslash
18438 onlynotes{
18439 \backslash
18440 notes}
18441 \end_layout
18442
18443 \begin_layout Standard
18444 One final thing: I created this class to support the \SpecialChar LaTeX2e
18445  
18446 \begin_inset Quotes eld
18447 \end_inset
18448
18449
18450 \noun on
18451 Sli\SpecialChar TeX
18452
18453 \noun default
18454  emulation
18455 \begin_inset Quotes erd
18456 \end_inset
18457
18458  class, one of the built-in \SpecialChar LaTeX2e
18459  classes.
18460  Neither I nor the rest of the \SpecialChar LyX
18461  Team endorse or oppose the use of this built-in
18462  slide class.
18463  It's here if you want it or need it.
18464  There exist other \SpecialChar LaTeX2e
18465  classes for creating presentations, such as the 
18466 \family sans
18467 Foils
18468 \family default
18469  class [see section
18470 \begin_inset space ~
18471 \end_inset
18472
18473
18474 \begin_inset CommandInset ref
18475 LatexCommand ref
18476 reference "sec:foiltex"
18477
18478 \end_inset
18479
18480 ] or the 
18481 \begin_inset Quotes eld
18482 \end_inset
18483
18484
18485 \family typewriter
18486 seminar
18487 \family default
18488
18489 \begin_inset Quotes erd
18490 \end_inset
18491
18492  package [present on some \SpecialChar TeX
18493  distributions].
18494  The latter is not yet supported under \SpecialChar LyX
18495 .
18496 \begin_inset Foot
18497 status collapsed
18498
18499 \begin_layout Plain Layout
18500 Perhaps you can take on the task\SpecialChar ldots
18501
18502 \end_layout
18503
18504 \end_inset
18505
18506  I know nothing about these other classes.
18507  Try them out to see what sort of alternative they provide.
18508 \end_layout
18509
18510 \begin_layout Chapter
18511 \SpecialChar LyX
18512  Features needing Extra Software
18513 \end_layout
18514
18515 \begin_layout Section
18516 Checking \SpecialChar TeX
18517
18518 \end_layout
18519
18520 \begin_layout Standard
18521 by 
18522 \noun on
18523 Asger Alstrup
18524 \end_layout
18525
18526 \begin_layout Subsection
18527 Introduction
18528 \end_layout
18529
18530 \begin_layout Standard
18531 If you have the 
18532 \family typewriter
18533 chktex
18534 \family default
18535  program installed
18536 \begin_inset Foot
18537 status collapsed
18538
18539 \begin_layout Plain Layout
18540
18541 \family typewriter
18542 chktex
18543 \family default
18544  is not yet available when you are using the \SpecialChar LaTeX
18545  distribution MiK\SpecialChar TeX
18546 .
18547 \end_layout
18548
18549 \end_inset
18550
18551 , you'll find in the 
18552 \family sans
18553 Tools
18554 \family default
18555  menu the entry: 
18556 \family sans
18557 Check
18558 \begin_inset space ~
18559 \end_inset
18560
18561 TeX
18562 \family default
18563 .
18564  You can get 
18565 \family typewriter
18566 chktex
18567 \family default
18568  from CTAN,
18569 \begin_inset Newline newline
18570 \end_inset
18571
18572
18573 \begin_inset CommandInset href
18574 LatexCommand href
18575 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18576
18577 \end_inset
18578
18579 .
18580 \end_layout
18581
18582 \begin_layout Standard
18583 The 
18584 \family sans
18585 Chk\SpecialChar TeX
18586
18587 \family default
18588  package is a program that was written by 
18589 \begin_inset Flex Noun
18590 status collapsed
18591
18592 \begin_layout Plain Layout
18593 Jens T.
18594 \begin_inset space ~
18595 \end_inset
18596
18597 Berger Thielemann
18598 \end_layout
18599
18600 \end_inset
18601
18602  in frustration because some constructs in \SpecialChar LaTeX
18603  are sometimes non-intuitive,
18604  and easy to forget.
18605  The program runs over your \SpecialChar LaTeX
18606  file, checks the integrity of the file, and
18607  flags some common errors.
18608  In other technical words, it is 
18609 \family typewriter
18610 lint
18611 \family default
18612  for \SpecialChar LaTeX
18613 .
18614 \end_layout
18615
18616 \begin_layout Standard
18617 Well, what is a syntax checker doing in \SpecialChar LyX
18618  which is supposed to produce correct
18619  \SpecialChar LaTeX
18620  anyways? The answer is simple: Just as 
18621 \family typewriter
18622 Lint
18623 \family default
18624  not only checks the 
18625 \emph on
18626 syntax
18627 \emph default
18628  of C programs, but also does 
18629 \emph on
18630 semantic
18631 \emph default
18632  checks for type-errors, 
18633 \family sans
18634 Chk\SpecialChar TeX
18635
18636 \family default
18637  catches some common 
18638 \emph on
18639 typographic
18640 \emph default
18641  errors, in addition to the syntactical ones.
18642  Specifically, 
18643 \family sans
18644 Chk\SpecialChar TeX
18645
18646 \family default
18647  is capable of detecting several common errors, such as
18648 \end_layout
18649
18650 \begin_layout Itemize
18651 Ellipsis detection:
18652 \begin_inset Newline newline
18653 \end_inset
18654
18655 Use \SpecialChar ldots
18656  instead of ...
18657 \end_layout
18658
18659 \begin_layout Itemize
18660 No space in front of/after parenthesis:
18661 \begin_inset Newline newline
18662 \end_inset
18663
18664 ( wrong spacing )
18665 \end_layout
18666
18667 \begin_layout Itemize
18668 Enforcement of normal space after common abbreviations:
18669 \begin_inset Newline newline
18670 \end_inset
18671
18672 e.
18673 \begin_inset space \thinspace{}
18674 \end_inset
18675
18676 g.
18677 \begin_inset space \space{}
18678 \end_inset
18679
18680 is too wide spacing.
18681 \end_layout
18682
18683 \begin_layout Itemize
18684 Enforcement of end-of-sentence space when the last sentence ends with a
18685  capital letter:
18686 \begin_inset Newline newline
18687 \end_inset
18688
18689 This is a TEST.
18690  And this is wrong spacing.
18691 \end_layout
18692
18693 \begin_layout Itemize
18694 Space in front of labels and similar commands:
18695 \begin_inset Newline newline
18696 \end_inset
18697
18698 The label should stick right up to the text to avoid falling to a wrong
18699  page.
18700  
18701 \begin_inset CommandInset label
18702 LatexCommand label
18703 name "sec:chktex"
18704
18705 \end_inset
18706
18707  
18708 \begin_inset Foot
18709 status collapsed
18710
18711 \begin_layout Plain Layout
18712 This footnote is in danger of falling off to a wrong page
18713 \end_layout
18714
18715 \end_inset
18716
18717  The label is separated too much.
18718 \end_layout
18719
18720 \begin_layout Itemize
18721 Space in front of references, instead of hard spaces:
18722 \begin_inset Newline newline
18723 \end_inset
18724
18725 If you have bad luck, the text will break right between the referenced text
18726  and reference number, and that's a pity.
18727  See section 
18728 \begin_inset CommandInset ref
18729 LatexCommand ref
18730 reference "sec:chktex"
18731
18732 \end_inset
18733
18734 .
18735 \end_layout
18736
18737 \begin_layout Itemize
18738 Use of 
18739 \begin_inset Quotes eld
18740 \end_inset
18741
18742 x
18743 \begin_inset Quotes erd
18744 \end_inset
18745
18746  instead of 
18747 \begin_inset Formula $\times$
18748 \end_inset
18749
18750  between numbers:
18751 \begin_inset Newline newline
18752 \end_inset
18753
18754 2x2 looks cheap compared to 
18755 \begin_inset Formula $2\times2$
18756 \end_inset
18757
18758 .
18759 \end_layout
18760
18761 \begin_layout Standard
18762 and more \SpecialChar ldots
18763  It is an invaluable tool when you are 
18764 \begin_inset Quotes eld
18765 \end_inset
18766
18767 finishing up
18768 \begin_inset Quotes erd
18769 \end_inset
18770
18771  your document before printing, and you should run it right after the obligatory
18772  spelling check, and before you go fine tuning the typesetting.
18773 \end_layout
18774
18775 \begin_layout Subsection
18776 How to use it
18777 \end_layout
18778
18779 \begin_layout Standard
18780 If you have the program installed, usage is as simple as choosing 
18781 \family sans
18782 Tools\SpecialChar menuseparator
18783 Check
18784 \begin_inset space ~
18785 \end_inset
18786
18787 TeX
18788 \family default
18789 .
18790  This will make \SpecialChar LyX
18791  generate a \SpecialChar LaTeX
18792  file of your document, start 
18793 \family sans
18794 Chk\SpecialChar TeX
18795
18796 \family default
18797  to check it, and then make \SpecialChar LyX
18798  insert 
18799 \begin_inset Quotes eld
18800 \end_inset
18801
18802 error boxes
18803 \begin_inset Quotes erd
18804 \end_inset
18805
18806  with the warnings from 
18807 \family sans
18808 Chk\SpecialChar TeX
18809
18810 \family default
18811 , if there were any.
18812  The warnings will be placed close to the point of the mistake, and you
18813  can quickly find them by using the 
18814 \family sans
18815 Navigate\SpecialChar menuseparator
18816 Error
18817 \family default
18818  menu item, or the shortcut key 
18819 \family sans
18820 C-g
18821 \family default
18822  from the default 
18823 \family typewriter
18824 cua
18825 \family default
18826  bind file.
18827  Open the error boxes by clicking on them with the mouse, or use the shortcut
18828  key 
18829 \family sans
18830 C-i
18831 \family default
18832  from 
18833 \family typewriter
18834 cua
18835 \family default
18836  bindings, or the corresponding 
18837 \family sans
18838 C-o
18839 \family default
18840  for the alternate 
18841 \family typewriter
18842 emacs
18843 \family default
18844  bind file.
18845  Read the warning and correct the mistake, if it is a mistake.
18846  If you have trouble understanding what the warning is about, you can safely
18847  ignore it.
18848  Remember that there is a hidden layer between the document on screen and
18849  the technical details in invoking 
18850 \family sans
18851 Chk\SpecialChar TeX
18852
18853 \family default
18854 , and this gap can make some warnings seem arcane or just plain silly.
18855 \end_layout
18856
18857 \begin_layout Standard
18858 This document is an excellent testing bed for the feature, and it should
18859  provide quite a few warnings for you to fiddle with.
18860  Since computers are only so smart, expect most of the warnings to be false
18861  alarms, though.
18862 \end_layout
18863
18864 \begin_layout Subsection
18865 How to fine tune it
18866 \end_layout
18867
18868 \begin_layout Standard
18869 Sometimes, you'll find that 
18870 \family sans
18871 Chk\SpecialChar TeX
18872
18873 \family default
18874  makes more noise than suits your mood.
18875  Then you can choose not to use it, wait until your mood changes, or try
18876  to customize 
18877 \family sans
18878 Chk\SpecialChar TeX
18879
18880 \family default
18881  to get better along with you.
18882 \end_layout
18883
18884 \begin_layout Standard
18885 Although 
18886 \family sans
18887 Chk\SpecialChar TeX
18888
18889 \family default
18890  
18891 \emph on
18892 is
18893 \emph default
18894  very configurable and extensible, you should not expect to solve all problems
18895  with 
18896 \family sans
18897 Chk\SpecialChar TeX
18898
18899 \family default
18900  in \SpecialChar LyX
18901  this way.
18902  Since \SpecialChar LyX
18903  has to generate a somewhat special \SpecialChar LaTeX
18904  file to be able to match the
18905  line numbers from the 
18906 \family sans
18907 Chk\SpecialChar TeX
18908
18909 \family default
18910  output
18911 \begin_inset Foot
18912 status collapsed
18913
18914 \begin_layout Plain Layout
18915 You can inspect the specific output from 
18916 \family sans
18917 chktex
18918 \family default
18919  by using 
18920 \family sans
18921 Document\SpecialChar menuseparator
18922 \SpecialChar LaTeX
18923
18924 \begin_inset space ~
18925 \end_inset
18926
18927 Log
18928 \family default
18929  right after a 
18930 \family sans
18931 chktex
18932 \family default
18933  run.
18934 \end_layout
18935
18936 \end_inset
18937
18938  to the internal document structure, some of the warnings will not appear
18939  correctly.
18940  There are two things you can do about this:
18941 \end_layout
18942
18943 \begin_layout Itemize
18944 Fine tune the 
18945 \family sans
18946 Chk\SpecialChar TeX
18947
18948 \family default
18949  invocation command line in 
18950 \begin_inset Flex Noun
18951 status collapsed
18952
18953 \begin_layout Plain Layout
18954 Tools\SpecialChar menuseparator
18955 Preferences\SpecialChar menuseparator
18956 Output\SpecialChar menuseparator
18957 LaTeX\SpecialChar menuseparator
18958 CheckTeX command
18959 \end_layout
18960
18961 \end_inset
18962
18963 , or the global 
18964 \family sans
18965 Chk\SpecialChar TeX
18966
18967 \family default
18968  installation configuration file (usually with the file 
18969 \family typewriter
18970 chktexrc
18971 \family default
18972 ).
18973  See below to learn what warnings can be enabled and disabled on the command
18974  line.
18975 \end_layout
18976
18977 \begin_layout Itemize
18978 Export your document as a raw \SpecialChar LaTeX
18979  file using 
18980 \family sans
18981 File\SpecialChar menuseparator
18982 Export\SpecialChar menuseparator
18983 \SpecialChar LaTeX
18984
18985 \family default
18986  and run 
18987 \family typewriter
18988 chktex
18989 \family default
18990  manually on that.
18991  Invoked in this way, it can be a hassle to find the corresponding place
18992  in the document inside \SpecialChar LyX
18993 , but with a little patience, you should be able
18994  to do it.
18995 \end_layout
18996
18997 \begin_layout Standard
18998 Here follows the warning messages that can be enabled and disabled in 
18999 \family sans
19000 Preferences
19001 \family default
19002 .
19003  Use 
19004 \family typewriter
19005 -n#
19006 \family default
19007  to disable a warning, and 
19008 \family typewriter
19009 -w#
19010 \family default
19011  to enable a warning.
19012  The emphasized entries are disabled by default, because the default is
19013  "
19014 \family typewriter
19015 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19016 \family default
19017 ".
19018 \end_layout
19019
19020 \begin_layout Standard
19021 Notice that you should only use the options that enable and disable warnings,
19022  because \SpecialChar LyX
19023  relies on some of the other command line parameters to be set
19024  in a specific way to have a chance to communicate with 
19025 \family typewriter
19026 chktex
19027 \family default
19028 .
19029 \end_layout
19030
19031 \begin_layout Enumerate
19032
19033 \size small
19034 \emph on
19035 Command terminated with space.
19036 \end_layout
19037
19038 \begin_layout Enumerate
19039
19040 \size small
19041 Non-breaking space (
19042 \begin_inset Quotes eld
19043 \end_inset
19044
19045
19046 \family typewriter
19047 ~
19048 \family default
19049
19050 \begin_inset Quotes erd
19051 \end_inset
19052
19053 ) should have been used.
19054 \end_layout
19055
19056 \begin_layout Enumerate
19057
19058 \size small
19059 \emph on
19060 You should enclose the previous parenthesis with 
19061 \begin_inset Quotes eld
19062 \end_inset
19063
19064
19065 \family typewriter
19066 {}
19067 \family default
19068
19069 \begin_inset Quotes erd
19070 \end_inset
19071
19072 .
19073 \end_layout
19074
19075 \begin_layout Enumerate
19076
19077 \size small
19078 Italic correction (
19079 \begin_inset Quotes eld
19080 \end_inset
19081
19082
19083 \family typewriter
19084
19085 \backslash
19086 /
19087 \family default
19088
19089 \begin_inset Quotes erd
19090 \end_inset
19091
19092 ) found in non-italic buffer.
19093 \end_layout
19094
19095 \begin_layout Enumerate
19096
19097 \size small
19098 Italic correction (
19099 \begin_inset Quotes eld
19100 \end_inset
19101
19102
19103 \family typewriter
19104
19105 \backslash
19106 /
19107 \family default
19108
19109 \begin_inset Quotes erd
19110 \end_inset
19111
19112 ) found more than once.
19113 \end_layout
19114
19115 \begin_layout Enumerate
19116
19117 \size small
19118 \emph on
19119 No italic correction (
19120 \begin_inset Quotes eld
19121 \end_inset
19122
19123
19124 \family typewriter
19125
19126 \backslash
19127 /
19128 \family default
19129
19130 \begin_inset Quotes erd
19131 \end_inset
19132
19133 ) found.
19134 \end_layout
19135
19136 \begin_layout Enumerate
19137
19138 \size small
19139 Accent command 
19140 \begin_inset Quotes eld
19141 \end_inset
19142
19143
19144 \family typewriter
19145 cmd
19146 \family default
19147
19148 \begin_inset Quotes erd
19149 \end_inset
19150
19151  needs use of 
19152 \begin_inset Quotes eld
19153 \end_inset
19154
19155
19156 \family typewriter
19157 cmd
19158 \family default
19159
19160 \begin_inset Quotes erd
19161 \end_inset
19162
19163 .
19164 \end_layout
19165
19166 \begin_layout Enumerate
19167
19168 \size small
19169 Wrong length of dash may have been used.
19170 \end_layout
19171
19172 \begin_layout Enumerate
19173
19174 \size small
19175 \emph on
19176 \begin_inset Quotes eld
19177 \end_inset
19178
19179
19180 \family typewriter
19181 %s
19182 \family default
19183
19184 \begin_inset Quotes erd
19185 \end_inset
19186
19187  expected, found 
19188 \begin_inset Quotes eld
19189 \end_inset
19190
19191
19192 \family typewriter
19193 %s
19194 \family default
19195
19196 \begin_inset Quotes erd
19197 \end_inset
19198
19199 .
19200 \end_layout
19201
19202 \begin_layout Enumerate
19203
19204 \size small
19205 Solo 
19206 \begin_inset Quotes eld
19207 \end_inset
19208
19209
19210 \family typewriter
19211 %s
19212 \family default
19213
19214 \begin_inset Quotes erd
19215 \end_inset
19216
19217  found.
19218 \end_layout
19219
19220 \begin_layout Enumerate
19221
19222 \size small
19223 You should use 
19224 \begin_inset Quotes eld
19225 \end_inset
19226
19227
19228 \family typewriter
19229 %s
19230 \family default
19231
19232 \begin_inset Quotes erd
19233 \end_inset
19234
19235  to achieve an ellipsis.
19236 \end_layout
19237
19238 \begin_layout Enumerate
19239
19240 \size small
19241 Inter-word spacing (
19242 \begin_inset Quotes eld
19243 \end_inset
19244
19245
19246 \family typewriter
19247
19248 \backslash
19249
19250 \family default
19251  
19252 \begin_inset Quotes eld
19253 \end_inset
19254
19255 ) should perhaps be used.
19256 \end_layout
19257
19258 \begin_layout Enumerate
19259
19260 \size small
19261 Inter-sentence spacing (
19262 \begin_inset Quotes eld
19263 \end_inset
19264
19265
19266 \family typewriter
19267
19268 \backslash
19269 @
19270 \family default
19271
19272 \begin_inset Quotes erd
19273 \end_inset
19274
19275 ) should perhaps be used.
19276 \end_layout
19277
19278 \begin_layout Enumerate
19279
19280 \size small
19281 Could not find argument for command.
19282 \end_layout
19283
19284 \begin_layout Enumerate
19285
19286 \size small
19287 No match found for 
19288 \begin_inset Quotes eld
19289 \end_inset
19290
19291
19292 \family typewriter
19293 %s
19294 \family default
19295
19296 \begin_inset Quotes erd
19297 \end_inset
19298
19299 .
19300 \end_layout
19301
19302 \begin_layout Enumerate
19303
19304 \size small
19305 Math mode still on at end of \SpecialChar LaTeX
19306  file.
19307 \end_layout
19308
19309 \begin_layout Enumerate
19310
19311 \size small
19312 Number of 
19313 \begin_inset Quotes eld
19314 \end_inset
19315
19316
19317 \family typewriter
19318 char
19319 \family default
19320
19321 \begin_inset Quotes erd
19322 \end_inset
19323
19324  doesn't match the number of 
19325 \begin_inset Quotes eld
19326 \end_inset
19327
19328
19329 \family typewriter
19330 char
19331 \family default
19332
19333 \begin_inset Quotes erd
19334 \end_inset
19335
19336 .
19337 \end_layout
19338
19339 \begin_layout Enumerate
19340
19341 \size small
19342 You should use either 
19343 \family typewriter
19344
19345 \begin_inset Quotes eld
19346 \end_inset
19347
19348
19349 \family default
19350  or 
19351 \family typewriter
19352
19353 \begin_inset Quotes erd
19354 \end_inset
19355
19356
19357 \family default
19358  as an alternative to 
19359 \begin_inset Quotes eld
19360 \end_inset
19361
19362
19363 \family typewriter
19364 "
19365 \family default
19366
19367 \begin_inset Quotes erd
19368 \end_inset
19369
19370 .
19371 \end_layout
19372
19373 \begin_layout Enumerate
19374
19375 \size small
19376 You should use "
19377 \family typewriter
19378 '
19379 \family default
19380 " (ASCII 39) instead of "
19381 \family typewriter
19382 ´
19383 \family default
19384 " (ASCII 180).
19385 \end_layout
19386
19387 \begin_layout Enumerate
19388
19389 \size small
19390 User-specified pattern found.
19391 \end_layout
19392
19393 \begin_layout Enumerate
19394
19395 \size small
19396 This command might not be intended.
19397 \end_layout
19398
19399 \begin_layout Enumerate
19400
19401 \size small
19402 \emph on
19403 Comment displayed.
19404 \end_layout
19405
19406 \begin_layout Enumerate
19407
19408 \size small
19409 Either 
19410 \family typewriter
19411 ''
19412 \backslash
19413 ,'
19414 \family default
19415  or 
19416 \family typewriter
19417 '
19418 \backslash
19419 ,''
19420 \family default
19421  will look better.
19422 \end_layout
19423
19424 \begin_layout Enumerate
19425
19426 \size small
19427 Delete this space to maintain correct page references.
19428 \end_layout
19429
19430 \begin_layout Enumerate
19431
19432 \size small
19433 \emph on
19434 You might wish to put this between a pair of 
19435 \begin_inset Quotes eld
19436 \end_inset
19437
19438
19439 \family typewriter
19440 {}
19441 \family default
19442
19443 \begin_inset Quotes erd
19444 \end_inset
19445
19446 .
19447 \end_layout
19448
19449 \begin_layout Enumerate
19450
19451 \size small
19452 You ought to remove spaces in front of punctuation.
19453 \end_layout
19454
19455 \begin_layout Enumerate
19456
19457 \size small
19458 Could not execute \SpecialChar LaTeX
19459  command.
19460 \end_layout
19461
19462 \begin_layout Enumerate
19463
19464 \size small
19465 Don't use 
19466 \family typewriter
19467
19468 \backslash
19469 /
19470 \family default
19471  in front of small punctuation.
19472 \end_layout
19473
19474 \begin_layout Enumerate
19475
19476 \family typewriter
19477 \size small
19478 $
19479 \backslash
19480 times$
19481 \family default
19482  may look prettier here.
19483 \end_layout
19484
19485 \begin_layout Enumerate
19486
19487 \size small
19488 \emph on
19489 Multiple spaces detected in output.
19490 \end_layout
19491
19492 \begin_layout Enumerate
19493
19494 \size small
19495 This text may be ignored.
19496 \end_layout
19497
19498 \begin_layout Enumerate
19499
19500 \size small
19501 Use 
19502 \family typewriter
19503
19504 \begin_inset Quotes eld
19505 \end_inset
19506
19507
19508 \family default
19509  to begin quotation, not 
19510 \family typewriter
19511 '
19512 \family default
19513 .
19514 \end_layout
19515
19516 \begin_layout Enumerate
19517
19518 \size small
19519 Use 
19520 \family typewriter
19521 '
19522 \family default
19523  to end quotation, not 
19524 \family typewriter
19525
19526 \begin_inset Quotes eld
19527 \end_inset
19528
19529
19530 \family default
19531 .
19532 \end_layout
19533
19534 \begin_layout Enumerate
19535
19536 \size small
19537 Don't mix quotes.
19538 \end_layout
19539
19540 \begin_layout Enumerate
19541
19542 \size small
19543 You should perhaps use 
19544 \begin_inset Quotes eld
19545 \end_inset
19546
19547
19548 \family typewriter
19549 cmd
19550 \family default
19551
19552 \begin_inset Quotes erd
19553 \end_inset
19554
19555  instead.
19556 \end_layout
19557
19558 \begin_layout Enumerate
19559
19560 \size small
19561 You should put a space in front of/after parenthesis.
19562 \end_layout
19563
19564 \begin_layout Enumerate
19565
19566 \size small
19567 You should avoid spaces in front of/after parenthesis.
19568 \end_layout
19569
19570 \begin_layout Enumerate
19571
19572 \size small
19573 \emph on
19574 You should not use punctuation in front of/after quotes.
19575 \end_layout
19576
19577 \begin_layout Enumerate
19578
19579 \size small
19580 Double space found.
19581 \end_layout
19582
19583 \begin_layout Enumerate
19584
19585 \size small
19586 You should put punctuation outside inner/inside display math mode.
19587 \end_layout
19588
19589 \begin_layout Enumerate
19590
19591 \size small
19592 You ought to not use primitive \SpecialChar TeX
19593  in \SpecialChar LaTeX
19594  code.
19595 \end_layout
19596
19597 \begin_layout Enumerate
19598
19599 \size small
19600 You should remove spaces in front of 
19601 \begin_inset Quotes eld
19602 \end_inset
19603
19604
19605 \family typewriter
19606 %s
19607 \family default
19608
19609 \begin_inset Quotes erd
19610 \end_inset
19611
19612
19613 \end_layout
19614
19615 \begin_layout Enumerate
19616
19617 \size small
19618 \begin_inset Quotes eld
19619 \end_inset
19620
19621
19622 \family typewriter
19623 %s
19624 \family default
19625
19626 \begin_inset Quotes erd
19627 \end_inset
19628
19629  is normally not followed by 
19630 \begin_inset Quotes eld
19631 \end_inset
19632
19633
19634 \family typewriter
19635 %c
19636 \family default
19637
19638 \begin_inset Quotes erd
19639 \end_inset
19640
19641 .
19642 \end_layout
19643
19644 \begin_layout Standard
19645 In later versions of \SpecialChar LyX
19646 , we hope to provide a more complete interface to this
19647  tool (and it's smaller cousin 
19648 \family typewriter
19649 lacheck
19650 \family default
19651 ) to exploit the full power of it.
19652  But it's not exactly useless as it is now: go try it on one of your existing
19653  documents of a certain length and be surprised.
19654 \end_layout
19655
19656 \begin_layout Section
19657 Version Control in \SpecialChar LyX
19658
19659 \end_layout
19660
19661 \begin_layout Standard
19662 by
19663 \noun on
19664  Lars Gullik Bjønnes 
19665 \noun default
19666 and 
19667 \noun on
19668 Pavel Sanda
19669 \end_layout
19670
19671 \begin_layout Subsection
19672 Introduction
19673 \end_layout
19674
19675 \begin_layout Standard
19676 \SpecialChar LyX
19677  supports some of the most basic RCS/CVS/SVN/GIT commands.
19678  If you need something a bit more sophisticated you will have to do that
19679  manually in a terminal.
19680 \end_layout
19681
19682 \begin_layout Standard
19683 Also note that CVS support is not as good as subversion support so we advise
19684  using SVN instead.
19685  A good place to start learning Subversion is SVN Book
19686 \begin_inset Foot
19687 status collapsed
19688
19689 \begin_layout Plain Layout
19690 \begin_inset CommandInset href
19691 LatexCommand href
19692 target "http://svnbook.red-bean.com/"
19693
19694 \end_inset
19695
19696
19697 \end_layout
19698
19699 \end_inset
19700
19701 .
19702  In the case of RCS you should read 
19703 \begin_inset Quotes eld
19704 \end_inset
19705
19706 rcsintro
19707 \begin_inset Quotes erd
19708 \end_inset
19709
19710  (a man file, read it with 
19711 \family typewriter
19712 man rcsintro
19713 \family default
19714 ).
19715  This file describes all the basic features of RCS.
19716  You should especially notice the comment about a RCS directory, and the
19717  notion of a master RCS file (the file ending in 
19718 \family typewriter
19719 ,v
19720 \family default
19721 ).
19722 \end_layout
19723
19724 \begin_layout Standard
19725 Before you begin to use the version control features in \SpecialChar LyX
19726 , you should be
19727  familiar with RCS/CVS/SVN/GIT usage.
19728  The implementation in \SpecialChar LyX
19729  assumes a recent version of the GNU RCS or CVS/SVN
19730  package — no guarantees are made for older versions.
19731  Most of the log messages are not currently displayed after operations —
19732  you can check them in the Messages pane if unsure.
19733  Regular users of version control will appreciate VC toolbar, which can
19734  be enabled via 
19735 \family sans
19736 View\SpecialChar menuseparator
19737 Toolbars\SpecialChar menuseparator
19738 Version
19739 \begin_inset space ~
19740 \end_inset
19741
19742 Control
19743 \family default
19744 .
19745 \end_layout
19746
19747 \begin_layout Standard
19748 For introducing your own external commands consult vc-command in the manual
19749  of \SpecialChar LyX
19750  functions.
19751 \end_layout
19752
19753 \begin_layout Standard
19754 It is strongly recommended to store documents in uncompressed format if
19755  using version control (uncheck 
19756 \family sans
19757 Document\SpecialChar menuseparator
19758 Compressed
19759 \family default
19760  if it is checked): Uncompressed LyX documents are text files and therefore
19761  for merging two different versions by version control systems.
19762  Compressed LyX documents are binary files, which cannot be merged by version
19763  control systems.
19764 \end_layout
19765
19766 \begin_layout Subsection
19767 RCS commands in \SpecialChar LyX
19768
19769 \end_layout
19770
19771 \begin_layout Standard
19772 The following sections describe the RCS commands supported by \SpecialChar LyX
19773 .
19774  You can find them in the 
19775 \family sans
19776 File\SpecialChar menuseparator
19777 Version
19778 \begin_inset space ~
19779 \end_inset
19780
19781 Control
19782 \family default
19783  submenu.
19784  \SpecialChar LyX
19785  was tested against RCS 5.7/5.8.
19786 \end_layout
19787
19788 \begin_layout Subsubsection
19789
19790 \family sans
19791 Register
19792 \end_layout
19793
19794 \begin_layout Standard
19795 If your document is not under revision control, this is the only item shown
19796  in the menu.
19797  And if it is under revision control, the 
19798 \family sans
19799 Register
19800 \family default
19801  item is not visible.
19802  
19803 \end_layout
19804
19805 \begin_layout Standard
19806 This command registers your document with RCS (unless you are under the
19807  directory managed by CVS)\SpecialChar endofsentence
19808  You are asked interactively to supply an initial
19809  description of the document.
19810  The document is now set in Read-Only mode and you have to 
19811 \family sans
19812 Check
19813 \begin_inset space ~
19814 \end_inset
19815
19816 Out
19817 \begin_inset space ~
19818 \end_inset
19819
19820 For
19821 \begin_inset space ~
19822 \end_inset
19823
19824 Edit
19825 \family default
19826 , before making any changes to it.
19827  A document under revision control has a 
19828 \begin_inset Quotes eld
19829 \end_inset
19830
19831 [RCS:<version> <locker>]
19832 \begin_inset Quotes erd
19833 \end_inset
19834
19835  item tagged to the filename in the minibuffer.
19836 \end_layout
19837
19838 \begin_layout Standard
19839 RCS command that is run: 
19840 \family typewriter
19841 ci -q -u -i -t-"<initial description>" <file-name>
19842 \end_layout
19843
19844 \begin_layout Standard
19845 Read 
19846 \family typewriter
19847 man ci
19848 \family default
19849  to understand the switches.
19850  
19851 \end_layout
19852
19853 \begin_layout Subsubsection
19854
19855 \family sans
19856 Check In Changes
19857 \end_layout
19858
19859 \begin_layout Standard
19860 When you are finished editing a file, you check in your changes.
19861  When you do this, you are asked for a description of the changes.
19862  This is stored in the history log.
19863  The version number is bumped, your changes are applied to the master RCS
19864  file, the document is unlocked and set to Read-Only mode.
19865 \end_layout
19866
19867 \begin_layout Standard
19868 RCS command: 
19869 \family typewriter
19870 ci -q -u -m"<description>" <file-name>
19871 \end_layout
19872
19873 \begin_layout Subsubsection
19874
19875 \family sans
19876 Check Out For Edit
19877 \end_layout
19878
19879 \begin_layout Standard
19880 By doing this you lock the document so that only you can edit it.
19881  This will also make the document Read-Write only for you.
19882  You will usually continue editing for a while and when you are finished
19883  you check in your changes.
19884  The status line is changed to reflect that you have locked the file.
19885 \end_layout
19886
19887 \begin_layout Standard
19888 RCS command: 
19889 \family typewriter
19890 co -q -l <file-name>
19891 \end_layout
19892
19893 \begin_layout Subsubsection
19894
19895 \family sans
19896 Revert To Repository Version
19897 \end_layout
19898
19899 \begin_layout Standard
19900 This will discard all changes made to the document since the last check
19901  in.
19902  You get a warning before changes are discarded.
19903 \end_layout
19904
19905 \begin_layout Standard
19906 RCS command: 
19907 \family typewriter
19908 co -f -u<version> <file-name>
19909 \end_layout
19910
19911 \begin_layout Subsubsection
19912
19913 \family sans
19914 Copy
19915 \end_layout
19916
19917 \begin_layout Standard
19918 This will create a copy of the current document.
19919  Since RCS does not support copy operations natively, the version history
19920  is not preserved, and the copy is added as a new file.
19921  It requires a clean document without any changes since the last checkin.
19922  You are asked for a file name and a description of the copy operation.
19923  After that the copy is created, both locally and in the repository.
19924  If the parent directories of the copied and original document differ, all
19925  relative paths of included files of the copy are adjusted (like in 
19926 \family sans
19927 File\SpecialChar menuseparator
19928 Save As
19929 \family default
19930 \SpecialChar ldots
19931 ).
19932  Finally, the copy is loaded instead of the original document.
19933 \end_layout
19934
19935 \begin_layout Labeling
19936 \labelwidthstring 00.00.0000
19937 RCS
19938 \begin_inset space ~
19939 \end_inset
19940
19941 commands: 
19942 \begin_inset space ~
19943 \end_inset
19944
19945
19946 \begin_inset Newline newline
19947 \end_inset
19948
19949 Copy 
19950 \begin_inset Flex Code
19951 status collapsed
19952
19953 \begin_layout Plain Layout
19954
19955 \family typewriter
19956 \begin_inset Quotes eld
19957 \end_inset
19958
19959 <file-name>
19960 \begin_inset Quotes erd
19961 \end_inset
19962
19963
19964 \end_layout
19965
19966 \end_inset
19967
19968  to 
19969 \begin_inset Flex Code
19970 status collapsed
19971
19972 \begin_layout Plain Layout
19973
19974 \family typewriter
19975 \begin_inset Quotes eld
19976 \end_inset
19977
19978 <new-file-name>
19979 \begin_inset Quotes erd
19980 \end_inset
19981
19982
19983 \end_layout
19984
19985 \end_inset
19986
19987
19988 \begin_inset Newline newline
19989 \end_inset
19990
19991
19992 \begin_inset Flex Code
19993 status collapsed
19994
19995 \begin_layout Plain Layout
19996 ci -q -u 
19997 \family typewriter
19998 -i 
19999 \begin_inset Quotes eld
20000 \end_inset
20001
20002 <new-file-name>
20003 \begin_inset Quotes erd
20004 \end_inset
20005
20006
20007 \end_layout
20008
20009 \end_inset
20010
20011
20012 \end_layout
20013
20014 \begin_layout Subsubsection
20015
20016 \family sans
20017 Undo Last Checkin
20018 \end_layout
20019
20020 \begin_layout Standard
20021 This makes as if the last check in never happened.
20022  No changes are made to the document loaded into \SpecialChar LyX
20023 , but the last version
20024  is removed from the master RCS file.
20025 \end_layout
20026
20027 \begin_layout Standard
20028 RCS command: 
20029 \family typewriter
20030 rcs -o<version> <file-name>
20031 \end_layout
20032
20033 \begin_layout Subsubsection
20034
20035 \family sans
20036 Show History
20037 \end_layout
20038
20039 \begin_layout Standard
20040 This shows the complete history of the RCS document.
20041  The output of 
20042 \family typewriter
20043 rlog <file-name>
20044 \family default
20045  is shown in a browser.
20046  See 
20047 \family typewriter
20048 man rlog
20049 \family default
20050  for more info.
20051 \end_layout
20052
20053 \begin_layout Subsubsection
20054 Revision info
20055 \end_layout
20056
20057 \begin_layout Standard
20058 \SpecialChar LyX
20059  supports RCS version number, author name, date and time of last commit.
20060  All those are extracted from 
20061 \family typewriter
20062 rlog -r <file-name>
20063 \family default
20064 .
20065  See 
20066 \begin_inset CommandInset ref
20067 LatexCommand ref
20068 reference "subsec:VCS-Revision-Information"
20069
20070 \end_inset
20071
20072  for details.
20073 \end_layout
20074
20075 \begin_layout Subsection
20076 CVS commands in \SpecialChar LyX
20077
20078 \end_layout
20079
20080 \begin_layout Standard
20081 A subset of CVS operations is supported by \SpecialChar LyX
20082 .
20083  You can find the commands in the 
20084 \family sans
20085 File\SpecialChar menuseparator
20086 Version
20087 \begin_inset space ~
20088 \end_inset
20089
20090 Control
20091 \family default
20092  submenu.
20093  The version control system SVN is more powerful, so please use it instead
20094  of CVS if possible.
20095 \end_layout
20096
20097 \begin_layout Subsubsection
20098
20099 \family sans
20100 General CVS usage
20101 \end_layout
20102
20103 \begin_layout Standard
20104 If you start from scratch with CVS you have to create your repository and
20105  checkout the working copy with external tools.
20106  If you're using a client-server setup you may need to login before doing
20107  the first repository checkout.
20108 \end_layout
20109
20110 \begin_layout Standard
20111 If your documents are under revision control and others are using the same
20112  repository problems arise when different changes to the same document at
20113  the same location happen.
20114  Standard CVS repositories don't operate with a file locking mechanism.
20115  This may be surprising, but conflicts only occur if people disagree on
20116  the proper content of the same part of a document.
20117  So, if co-workers are used to communicate regularly, these conflicts occur
20118  rarely.
20119  If they don't communicate they have a fundamental problem anyway.
20120  Nevertheless some people like to work with so called 
20121 \begin_inset Quotes eld
20122 \end_inset
20123
20124 reserved checkouts
20125 \begin_inset Quotes erd
20126 \end_inset
20127
20128 .
20129  If they do so the working copy of all files is readonly when checked out
20130  first and the user starts editing after using a special command to make
20131  the working copy writable.
20132  When the changes are checked in the working copy returns to readonly state.
20133  With \SpecialChar LyX
20134  one has to edit the 
20135 \begin_inset Flex Code
20136 status collapsed
20137
20138 \begin_layout Plain Layout
20139 .cvsrc
20140 \end_layout
20141
20142 \end_inset
20143
20144  file and add the line 
20145 \begin_inset Flex Code
20146 status collapsed
20147
20148 \begin_layout Plain Layout
20149 cvs -r
20150 \end_layout
20151
20152 \end_inset
20153
20154  to work with reserved checkouts.
20155  The benefit is the possibility to see who is using a writable copy of some
20156  document.
20157  It's not guaranteed only one user makes a copy writable.
20158 \end_layout
20159
20160 \begin_layout Standard
20161 \SpecialChar LyX
20162  tries to guess if you're using reserved or non-reserved checkouts.
20163  If your working copy is readonly or it is writable and an additional copy
20164  of your document exists in the CVS/Base sub-directory a reserved otherwise
20165  a non-reserved checkout is assumed.
20166  When a reserved checkout is detected you have to use 
20167 \begin_inset Flex Noun
20168 status collapsed
20169
20170 \begin_layout Plain Layout
20171 Check Out
20172 \end_layout
20173
20174 \end_inset
20175
20176  to make your working copy writable if it's readonly.
20177  After doing so the 
20178 \begin_inset Flex Noun
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 Check In
20183 \end_layout
20184
20185 \end_inset
20186
20187  operation is possible and that makes your working copy readonly again after
20188  transferring your changes to the repository.
20189 \end_layout
20190
20191 \begin_layout Standard
20192 More information about CVS can be found here 
20193 \begin_inset Flex URL
20194 status collapsed
20195
20196 \begin_layout Plain Layout
20197
20198 http://www.nongnu.org/cvs
20199 \end_layout
20200
20201 \end_inset
20202
20203  and here 
20204 \begin_inset Flex URL
20205 status collapsed
20206
20207 \begin_layout Plain Layout
20208
20209 http://ximbiot.com/cvs
20210 \end_layout
20211
20212 \end_inset
20213
20214 .
20215 \end_layout
20216
20217 \begin_layout Standard
20218 Read 
20219 \family typewriter
20220 man cvs
20221 \family default
20222  to understand the sub-commands and the switches mentioned below.
20223 \end_layout
20224
20225 \begin_layout Subsubsection
20226
20227 \family sans
20228 Register
20229 \end_layout
20230
20231 \begin_layout Standard
20232 If your document is not under revision control, this is the only item shown
20233  in the menu.
20234  And if it is under revision control, the 
20235 \family sans
20236 Register
20237 \family default
20238  item is not visible.
20239  
20240 \end_layout
20241
20242 \begin_layout Standard
20243 This command registers in CVS your document 
20244 \begin_inset Flex Strong
20245 status collapsed
20246
20247 \begin_layout Plain Layout
20248
20249 \emph on
20250 only
20251 \end_layout
20252
20253 \end_inset
20254
20255  in the case you have already the documents directory under CVS control
20256  (in particular 
20257 \family typewriter
20258 CVS/Entries
20259 \family default
20260  file exists).
20261  This means you have to create or checkout the archive by yourself using
20262  external tools.
20263  (In case you forget that step \SpecialChar LyX
20264  registers the document with RCS.)
20265 \end_layout
20266
20267 \begin_layout Standard
20268 Then you are asked interactively to supply an initial description of the
20269  document.
20270  Don't forget that registered file is not yet checked in.
20271 \end_layout
20272
20273 \begin_layout Standard
20274 CVS command that is run: 
20275 \family typewriter
20276 cvs -q add -m"<entered message>" "<file-name>"
20277 \end_layout
20278
20279 \begin_layout Standard
20280 The term 
20281 \family typewriter
20282 "<file-name>"
20283 \family default
20284  above and for all other CVS commands is an abbreviation for 
20285 \begin_inset Quotes eld
20286 \end_inset
20287
20288 change the current working directory to file location and use the file name
20289  without path component as argument
20290 \begin_inset Quotes erd
20291 \end_inset
20292
20293 .
20294 \end_layout
20295
20296 \begin_layout Subsubsection
20297
20298 \family sans
20299 Check In Changes
20300 \end_layout
20301
20302 \begin_layout Standard
20303 When you are finished editing a file, you commit your changes.
20304  When you do this and you had changed the document, you are asked for a
20305  description of the changes.
20306  After that changes are written to the repository.
20307  In case you didn't change the document and a reserved checkout is detected
20308  the reservation made on 
20309 \begin_inset Flex Noun
20310 status collapsed
20311
20312 \begin_layout Plain Layout
20313 Check Out
20314 \end_layout
20315
20316 \end_inset
20317
20318  is undone.
20319 \end_layout
20320
20321 \begin_layout Labeling
20322 \labelwidthstring 00.00.0000
20323 CVS
20324 \begin_inset space ~
20325 \end_inset
20326
20327 command: 
20328 \begin_inset space ~
20329 \end_inset
20330
20331
20332 \begin_inset Newline newline
20333 \end_inset
20334
20335
20336 \begin_inset Flex Code
20337 status collapsed
20338
20339 \begin_layout Plain Layout
20340 cvs 
20341 \family typewriter
20342 -q commit -m"<description>" "<file-name>"
20343 \end_layout
20344
20345 \end_inset
20346
20347  or
20348 \begin_inset Newline newline
20349 \end_inset
20350
20351
20352 \begin_inset Flex Code
20353 status collapsed
20354
20355 \begin_layout Plain Layout
20356 cvs -q unedit 
20357 \family typewriter
20358 "<file-name>"
20359 \end_layout
20360
20361 \end_inset
20362
20363
20364 \end_layout
20365
20366 \begin_layout Subsubsection
20367
20368 \family sans
20369 Check Out Changes
20370 \end_layout
20371
20372 \begin_layout Standard
20373 When you are sharing a repository with others, you may have to incorporate
20374  their changes into your working copy.
20375 \end_layout
20376
20377 \begin_layout Standard
20378 CVS command: 
20379 \family typewriter
20380 cvs -q update "<file-name>"
20381 \end_layout
20382
20383 \begin_layout Standard
20384 If a readonly checkout is detected the working copy is made writable and
20385  reserved.
20386 \end_layout
20387
20388 \begin_layout Standard
20389 CVS command: 
20390 \family typewriter
20391 cvs -q edit "<file-name>"
20392 \end_layout
20393
20394 \begin_layout Subsubsection
20395
20396 \family sans
20397 Revert To Repository Version
20398 \end_layout
20399
20400 \begin_layout Standard
20401 This will discard all changes made to the document since the last check
20402  in.
20403  You get a warning before changes are discarded.
20404  Firstly the file is deleted, secondly CVS update command is run.
20405 \end_layout
20406
20407 \begin_layout Standard
20408 CVS command: 
20409 \family typewriter
20410 cvs -q update "<file-name>"
20411 \end_layout
20412
20413 \begin_layout Standard
20414 If a reserved checkout is detected and the working copy has no changes only
20415  the reservation is undone.
20416 \end_layout
20417
20418 \begin_layout Standard
20419 CVS command: 
20420 \family typewriter
20421 cvs -q unedit "<file-name>"
20422 \end_layout
20423
20424 \begin_layout Subsubsection
20425
20426 \family sans
20427 Copy
20428 \end_layout
20429
20430 \begin_layout Standard
20431 This will create a copy of the current document.
20432  Since CVS does not support copy operations natively, the version history
20433  is not preserved, and the copy is added as a new file.
20434  It requires a clean document without any changes since the last checkin.
20435  You are asked for a file name and a description of the copy operation.
20436  After that the copy is created, both locally and in the repository.
20437  If the parent directories of the copied and original document differ, all
20438  relative paths of included files of the copy are adjusted (like in 
20439 \family sans
20440 File\SpecialChar menuseparator
20441 Save As
20442 \family default
20443 \SpecialChar ldots
20444 ).
20445  Finally, the copy is loaded instead of the original document.
20446 \end_layout
20447
20448 \begin_layout Labeling
20449 \labelwidthstring 00.00.0000
20450 CVS
20451 \begin_inset space ~
20452 \end_inset
20453
20454 commands: 
20455 \begin_inset space ~
20456 \end_inset
20457
20458
20459 \begin_inset Newline newline
20460 \end_inset
20461
20462 Copy 
20463 \begin_inset Flex Code
20464 status collapsed
20465
20466 \begin_layout Plain Layout
20467
20468 \family typewriter
20469 \begin_inset Quotes eld
20470 \end_inset
20471
20472 <file-name>
20473 \begin_inset Quotes erd
20474 \end_inset
20475
20476
20477 \end_layout
20478
20479 \end_inset
20480
20481  to 
20482 \begin_inset Flex Code
20483 status collapsed
20484
20485 \begin_layout Plain Layout
20486
20487 \family typewriter
20488 \begin_inset Quotes eld
20489 \end_inset
20490
20491 <new-file-name>
20492 \begin_inset Quotes erd
20493 \end_inset
20494
20495
20496 \end_layout
20497
20498 \end_inset
20499
20500
20501 \begin_inset Newline newline
20502 \end_inset
20503
20504
20505 \begin_inset Flex Code
20506 status collapsed
20507
20508 \begin_layout Plain Layout
20509 cvs -q add 
20510 \family typewriter
20511
20512 \begin_inset Quotes eld
20513 \end_inset
20514
20515 <new-file-name>
20516 \begin_inset Quotes erd
20517 \end_inset
20518
20519
20520 \end_layout
20521
20522 \end_inset
20523
20524
20525 \end_layout
20526
20527 \begin_layout Subsubsection
20528
20529 \family sans
20530 Rename
20531 \end_layout
20532
20533 \begin_layout Standard
20534 This will rename the current document.
20535  Since CVS does not support rename operations natively, the version history
20536  is not preserved, the renamed document is added as a new file, and the
20537  original document is deleted.
20538  It requires a clean document without any changes since the last checkin.
20539  You are asked for a file name and a description of the rename operation.
20540  After that the document is renamed, both locally and in the repository.
20541  If the parent directories of the new and old file names differ, all relative
20542  paths of included files are adjusted (like in 
20543 \family sans
20544 File\SpecialChar menuseparator
20545 Save As
20546 \family default
20547 \SpecialChar ldots
20548 ).
20549  Finally, the document is reloaded using the new name.
20550 \end_layout
20551
20552 \begin_layout Labeling
20553 \labelwidthstring 00.00.0000
20554 CVS
20555 \begin_inset space ~
20556 \end_inset
20557
20558 commands: 
20559 \begin_inset space ~
20560 \end_inset
20561
20562
20563 \begin_inset Newline newline
20564 \end_inset
20565
20566 Rename 
20567 \begin_inset Flex Code
20568 status collapsed
20569
20570 \begin_layout Plain Layout
20571
20572 \family typewriter
20573 \begin_inset Quotes eld
20574 \end_inset
20575
20576 <file-name>
20577 \begin_inset Quotes erd
20578 \end_inset
20579
20580
20581 \end_layout
20582
20583 \end_inset
20584
20585  to 
20586 \begin_inset Flex Code
20587 status collapsed
20588
20589 \begin_layout Plain Layout
20590
20591 \family typewriter
20592 \begin_inset Quotes eld
20593 \end_inset
20594
20595 <new-file-name>
20596 \begin_inset Quotes erd
20597 \end_inset
20598
20599
20600 \end_layout
20601
20602 \end_inset
20603
20604
20605 \begin_inset Newline newline
20606 \end_inset
20607
20608
20609 \begin_inset Flex Code
20610 status collapsed
20611
20612 \begin_layout Plain Layout
20613 cvs -q add 
20614 \family typewriter
20615
20616 \begin_inset Quotes eld
20617 \end_inset
20618
20619 <new-file-name>
20620 \begin_inset Quotes erd
20621 \end_inset
20622
20623
20624 \end_layout
20625
20626 \end_inset
20627
20628
20629 \begin_inset Newline newline
20630 \end_inset
20631
20632
20633 \begin_inset Flex Code
20634 status collapsed
20635
20636 \begin_layout Plain Layout
20637 cvs -q remove 
20638 \family typewriter
20639
20640 \begin_inset Quotes eld
20641 \end_inset
20642
20643 <file-name>
20644 \begin_inset Quotes erd
20645 \end_inset
20646
20647
20648 \end_layout
20649
20650 \end_inset
20651
20652
20653 \end_layout
20654
20655 \begin_layout Subsubsection
20656 Update of the local directory checkout from repository
20657 \end_layout
20658
20659 \begin_layout Standard
20660 Once your documents gets more complex, containing sub-documents and pictures,
20661  including external 
20662 \begin_inset Flex Code
20663 status collapsed
20664
20665 \begin_layout Plain Layout
20666 .tex
20667 \end_layout
20668
20669 \end_inset
20670
20671  files and so on using version control becomes more complicated.
20672  \SpecialChar LyX
20673  supports updating the whole tree in which resides the document.
20674  This become especially useful once you cooperate with people which neither
20675  have detailed knowledge about CVS usage nor they have ambition to commit
20676  additional material to the repository.
20677  You have to organize the files structure so that all external files are
20678  in the same directory or subdirectories of the document.
20679  It's good practice anyway to store multipart documents in an extra directory.
20680 \end_layout
20681
20682 \begin_layout Standard
20683 The 
20684 \begin_inset Flex Code
20685 status collapsed
20686
20687 \begin_layout Plain Layout
20688 Update local directory from repository
20689 \end_layout
20690
20691 \end_inset
20692
20693  command updates the whole directory.
20694  If local changes are detected user is warned before update starts.
20695  In case of merge conflicts both versions of the conflicting document parts
20696  are placed in the final document.
20697  You have to review and correct the result of the merge.
20698  You'll find the conflicts enclosed in pairs of 
20699 \begin_inset Flex Code
20700 status collapsed
20701
20702 \begin_layout Plain Layout
20703 <<<<<<<
20704 \end_layout
20705
20706 \end_inset
20707
20708  and 
20709 \begin_inset Flex Code
20710 status collapsed
20711
20712 \begin_layout Plain Layout
20713 >>>>>>>
20714 \end_layout
20715
20716 \end_inset
20717
20718  separated by 
20719 \begin_inset Flex Code
20720 status collapsed
20721
20722 \begin_layout Plain Layout
20723 =======
20724 \end_layout
20725
20726 \end_inset
20727
20728 .
20729  The first part is your version as before the update operation with the
20730  document name prepended.
20731  The second one is the repository version with the version number after
20732  the sequence of 
20733 \begin_inset Flex Code
20734 status collapsed
20735
20736 \begin_layout Plain Layout
20737 >
20738 \end_layout
20739
20740 \end_inset
20741
20742  signs.
20743 \end_layout
20744
20745 \begin_layout Labeling
20746 \labelwidthstring 00.00.0000
20747 CVS
20748 \begin_inset space ~
20749 \end_inset
20750
20751 commands: 
20752 \begin_inset space ~
20753 \end_inset
20754
20755
20756 \begin_inset Newline newline
20757 \end_inset
20758
20759
20760 \begin_inset Flex Code
20761 status collapsed
20762
20763 \begin_layout Plain Layout
20764 cd $path; cvs diff 
20765 \family typewriter
20766 "."
20767 \end_layout
20768
20769 \end_inset
20770
20771  (Ask if changes are detected.)
20772 \begin_inset Newline newline
20773 \end_inset
20774
20775
20776 \begin_inset Flex Code
20777 status collapsed
20778
20779 \begin_layout Plain Layout
20780 cd $path; cvs -q update 
20781 \family typewriter
20782 "."
20783 \end_layout
20784
20785 \end_inset
20786
20787
20788 \end_layout
20789
20790 \begin_layout Standard
20791 where 
20792 \begin_inset Flex Code
20793 status collapsed
20794
20795 \begin_layout Plain Layout
20796 $path
20797 \end_layout
20798
20799 \end_inset
20800
20801  stands for the path to the document.
20802 \end_layout
20803
20804 \begin_layout Subsubsection
20805
20806 \family sans
20807 Show History
20808 \end_layout
20809
20810 \begin_layout Standard
20811 This shows the complete history of the CVS document.
20812  The output of 
20813 \family typewriter
20814 cvs log "<file-name>"
20815 \family default
20816  is shown in a browser.
20817 \end_layout
20818
20819 \begin_layout Subsubsection
20820 Revision info
20821 \end_layout
20822
20823 \begin_layout Standard
20824 \SpecialChar LyX
20825  supports CVS version number, author name, date and time of last commit.
20826  All those are extracted from 
20827 \family typewriter
20828 cvs log -r <file-name>
20829 \family default
20830 .
20831  See 
20832 \begin_inset CommandInset ref
20833 LatexCommand ref
20834 reference "subsec:VCS-Revision-Information"
20835
20836 \end_inset
20837
20838  for details.
20839 \end_layout
20840
20841 \begin_layout Subsection
20842 SVN commands in \SpecialChar LyX
20843
20844 \end_layout
20845
20846 \begin_layout Standard
20847 SVN is now partially supported by \SpecialChar LyX
20848 .
20849  You can find the commands in the 
20850 \family sans
20851 File\SpecialChar menuseparator
20852 Version
20853 \begin_inset space ~
20854 \end_inset
20855
20856 Control
20857 \family default
20858  submenu.
20859  Please note that if you use password protected access to repository via
20860  ssh, you will be asked in terminal window.
20861  \SpecialChar LyX
20862  was tested against SVN 1.5, 1.6, 1.7 and 1.8
20863 \begin_inset Foot
20864 status open
20865
20866 \begin_layout Plain Layout
20867 Most of the commands will work with 1.4 too, see 
20868 \begin_inset CommandInset ref
20869 LatexCommand ref
20870 reference "subsec:SVN-Repo-Update"
20871
20872 \end_inset
20873
20874 .
20875  There seems to be currently unresolved permissions problem under SVN 1.8
20876  with reverting changes when file is locked.
20877 \end_layout
20878
20879 \end_inset
20880
20881
20882 \end_layout
20883
20884 \begin_layout Subsubsection
20885
20886 \family sans
20887 Register
20888 \end_layout
20889
20890 \begin_layout Standard
20891 If your document is not under revision control, this is the only item shown
20892  in the menu.
20893  And if it is under revision control, the 
20894 \family sans
20895 Register
20896 \family default
20897  item is not visible.
20898 \end_layout
20899
20900 \begin_layout Standard
20901 This command registers in SVN your document ONLY in case you have already
20902  the documents directory under SVN control (in particular 
20903 \family typewriter
20904 .svn/entries
20905 \family default
20906  file exists).
20907  This means you have to checkout the archive by yourself.
20908 \end_layout
20909
20910 \begin_layout Standard
20911 Then you are asked interactively to supply an initial description of the
20912  document.
20913  Don't forget that registered file is not yet commited.
20914 \end_layout
20915
20916 \begin_layout Standard
20917 SVN command that is run: 
20918 \family typewriter
20919 svn add -q 
20920 \begin_inset Quotes eld
20921 \end_inset
20922
20923 <file-name>
20924 \begin_inset Quotes erd
20925 \end_inset
20926
20927
20928 \end_layout
20929
20930 \begin_layout Standard
20931 Read 
20932 \family typewriter
20933 man svn
20934 \family default
20935  to understand the switches.
20936 \end_layout
20937
20938 \begin_layout Subsubsection
20939
20940 \family sans
20941 Check In Changes
20942 \end_layout
20943
20944 \begin_layout Standard
20945 When you are finished editing a file, you commit your changes.
20946  When you do this, you are asked for a description of the changes.
20947  After that changes are commited.
20948 \end_layout
20949
20950 \begin_layout Standard
20951 SVN command:
20952 \begin_inset Foot
20953 status collapsed
20954
20955 \begin_layout Plain Layout
20956 In case locking is not enabled.
20957  See Section 
20958 \begin_inset CommandInset ref
20959 LatexCommand ref
20960 reference "subsec:SVN-File-Locking"
20961
20962 \end_inset
20963
20964 .
20965 \end_layout
20966
20967 \end_inset
20968
20969  
20970 \family typewriter
20971 svn commit -q -m"<description>" <file-name>
20972 \end_layout
20973
20974 \begin_layout Subsubsection
20975
20976 \family sans
20977 Check Out For Edit
20978 \end_layout
20979
20980 \begin_layout Standard
20981 Updates the changes of this file from the repository.
20982  Be sure you understand SVN merging and conflicts resolving before using
20983  this function, because all conflicts has to be resolved manually by you!
20984 \end_layout
20985
20986 \begin_layout Standard
20987 SVN command:
20988 \begin_inset Foot
20989 status collapsed
20990
20991 \begin_layout Plain Layout
20992 Ditto.
20993 \end_layout
20994
20995 \end_inset
20996
20997  
20998 \family typewriter
20999 svn update --non-interactive 
21000 \begin_inset Quotes eld
21001 \end_inset
21002
21003 <file-name>
21004 \begin_inset Quotes erd
21005 \end_inset
21006
21007
21008 \end_layout
21009
21010 \begin_layout Subsubsection
21011
21012 \family sans
21013 Revert To Repository Version
21014 \end_layout
21015
21016 \begin_layout Standard
21017 This will discard all changes made to the document since the last check
21018  in.
21019  You get a warning before changes are discarded.
21020 \end_layout
21021
21022 \begin_layout Standard
21023 SVN command: 
21024 \family typewriter
21025 svn revert -q 
21026 \begin_inset Quotes eld
21027 \end_inset
21028
21029 <file-name>
21030 \begin_inset Quotes erd
21031 \end_inset
21032
21033
21034 \end_layout
21035
21036 \begin_layout Subsubsection
21037
21038 \family sans
21039 Copy
21040 \end_layout
21041
21042 \begin_layout Standard
21043 This will create a copy of the current document including the version history.
21044  It requires a clean document without any changes since the last checkin.
21045  You are asked for a file name and a description of the copy operation.
21046  After that the copy is created, both locally and in the repository.
21047  If the parent directories of the copied and original document differ, all
21048  relative paths of included files of the copy are adjusted (like in 
21049 \family sans
21050 File\SpecialChar menuseparator
21051 Save As
21052 \family default
21053 \SpecialChar ldots
21054 ).
21055  Finally, the copy is loaded instead of the original document.
21056 \end_layout
21057
21058 \begin_layout Labeling
21059 \labelwidthstring 00.00.0000
21060 SVN
21061 \begin_inset space ~
21062 \end_inset
21063
21064 commands: 
21065 \begin_inset space ~
21066 \end_inset
21067
21068
21069 \begin_inset Newline newline
21070 \end_inset
21071
21072
21073 \begin_inset Flex Code
21074 status collapsed
21075
21076 \begin_layout Plain Layout
21077 svn copy -q 
21078 \family typewriter
21079
21080 \begin_inset Quotes eld
21081 \end_inset
21082
21083 <file-name>
21084 \begin_inset Quotes erd
21085 \end_inset
21086
21087  
21088 \begin_inset Quotes eld
21089 \end_inset
21090
21091 <new-file-name>
21092 \begin_inset Quotes erd
21093 \end_inset
21094
21095
21096 \end_layout
21097
21098 \end_inset
21099
21100
21101 \begin_inset Newline newline
21102 \end_inset
21103
21104
21105 \begin_inset Flex Code
21106 status collapsed
21107
21108 \begin_layout Plain Layout
21109 svn commit
21110 \end_layout
21111
21112 \end_inset
21113
21114
21115 \end_layout
21116
21117 \begin_layout Subsubsection
21118
21119 \family sans
21120 Rename
21121 \end_layout
21122
21123 \begin_layout Standard
21124 This will rename the current document including the version history.
21125  It requires a clean document without any changes since the last checkin.
21126  You are asked for a file name and a description of the rename operation.
21127  After that the document is renamed, both locally and in the repository.
21128  If the parent directories of the new and old file names differ, all relative
21129  paths of included files are adjusted (like in 
21130 \family sans
21131 File\SpecialChar menuseparator
21132 Save As
21133 \family default
21134 \SpecialChar ldots
21135 ).
21136  Finally, the document is reloaded using the new name.
21137 \end_layout
21138
21139 \begin_layout Labeling
21140 \labelwidthstring 00.00.0000
21141 SVN
21142 \begin_inset space ~
21143 \end_inset
21144
21145 commands: 
21146 \begin_inset space ~
21147 \end_inset
21148
21149
21150 \begin_inset Newline newline
21151 \end_inset
21152
21153
21154 \begin_inset Flex Code
21155 status collapsed
21156
21157 \begin_layout Plain Layout
21158 svn move -q 
21159 \family typewriter
21160
21161 \begin_inset Quotes eld
21162 \end_inset
21163
21164 <file-name>
21165 \begin_inset Quotes erd
21166 \end_inset
21167
21168  
21169 \begin_inset Quotes eld
21170 \end_inset
21171
21172 <new-file-name>
21173 \begin_inset Quotes erd
21174 \end_inset
21175
21176
21177 \end_layout
21178
21179 \end_inset
21180
21181
21182 \begin_inset Newline newline
21183 \end_inset
21184
21185
21186 \begin_inset Flex Code
21187 status collapsed
21188
21189 \begin_layout Plain Layout
21190 svn commit
21191 \end_layout
21192
21193 \end_inset
21194
21195
21196 \end_layout
21197
21198 \begin_layout Subsubsection
21199 \begin_inset CommandInset label
21200 LatexCommand label
21201 name "subsec:SVN-Repo-Update"
21202
21203 \end_inset
21204
21205 Update of the local directory checkout from repository
21206 \begin_inset Foot
21207 status collapsed
21208
21209 \begin_layout Plain Layout
21210 Note that this command will work only with subversion 
21211 \begin_inset Formula $\geqq1.5$
21212 \end_inset
21213
21214
21215 \end_layout
21216
21217 \end_inset
21218
21219
21220 \end_layout
21221
21222 \begin_layout Standard
21223 All the commands above have one shortcomming - they deal with the current
21224  document only.
21225  Once your document contains pictures, includes external 
21226 \begin_inset Flex Code
21227 status collapsed
21228
21229 \begin_layout Plain Layout
21230 .tex
21231 \end_layout
21232
21233 \end_inset
21234
21235  files and so on administration becomes more complicated.
21236  \SpecialChar LyX
21237  now supports updating the whole tree in which resides the document
21238 \begin_inset Foot
21239 status collapsed
21240
21241 \begin_layout Plain Layout
21242 One need to organize the files structure so that all external files are
21243  in the same directory or subdirectories of the document.
21244  
21245 \end_layout
21246
21247 \end_inset
21248
21249 .
21250  This become especially useful once you cooperate with people which neither
21251  know about subversion management nor they have ambition to commit additional
21252  material to the repository.
21253  
21254 \end_layout
21255
21256 \begin_layout Standard
21257 \begin_inset Flex Code
21258 status collapsed
21259
21260 \begin_layout Plain Layout
21261 Update local directory from repository
21262 \end_layout
21263
21264 \end_inset
21265
21266  command updates the whole directory and in case of merge conflicts local
21267  version of the files are left, so no unintended data loss occurs.
21268  If local changes are detected user is warned before update starts.
21269 \end_layout
21270
21271 \begin_layout Labeling
21272 \labelwidthstring 00.00.0000
21273 SVN
21274 \begin_inset space ~
21275 \end_inset
21276
21277 commands: 
21278 \begin_inset space ~
21279 \end_inset
21280
21281
21282 \begin_inset Newline newline
21283 \end_inset
21284
21285
21286 \begin_inset Flex Code
21287 status collapsed
21288
21289 \begin_layout Plain Layout
21290 svn diff $path
21291 \end_layout
21292
21293 \end_inset
21294
21295  (Ask if changes are detected.)
21296 \begin_inset Newline newline
21297 \end_inset
21298
21299
21300 \begin_inset Flex Code
21301 status collapsed
21302
21303 \begin_layout Plain Layout
21304 svn update –accept mine-full $path
21305 \end_layout
21306
21307 \end_inset
21308
21309
21310 \end_layout
21311
21312 \begin_layout Standard
21313 where 
21314 \begin_inset Flex Code
21315 status collapsed
21316
21317 \begin_layout Plain Layout
21318 $path
21319 \end_layout
21320
21321 \end_inset
21322
21323  stands for the path to the document.
21324 \end_layout
21325
21326 \begin_layout Subsubsection
21327
21328 \family sans
21329 Show History
21330 \end_layout
21331
21332 \begin_layout Standard
21333 This shows the complete history of the SVN document.
21334  The output of 
21335 \family typewriter
21336 svn log 
21337 \begin_inset Quotes eld
21338 \end_inset
21339
21340 <file-name>
21341 \begin_inset Quotes erd
21342 \end_inset
21343
21344
21345 \family default
21346  is shown in a browser.
21347 \end_layout
21348
21349 \begin_layout Subsubsection
21350 File Locking
21351 \begin_inset CommandInset label
21352 LatexCommand label
21353 name "subsec:SVN-File-Locking"
21354
21355 \end_inset
21356
21357
21358 \end_layout
21359
21360 \begin_layout Standard
21361 The file exchange through various revision control systems brings the problem
21362  of merge conflicts in case two different users try to edit the same (parts
21363  of) document.
21364  When such a conflict happens it needs manual resolving and one reasonable
21365  alternative is to provide some kind of locking mechanism, which guarantees
21366  that only one user is allowed to edit file at the given time.
21367 \end_layout
21368
21369 \begin_layout Standard
21370 SVN has two such mechanisms to provide mutual exclusivity for file access
21371  - locks and automatic setting of write permissions (see sec.
21372  
21373 \begin_inset CommandInset ref
21374 LatexCommand ref
21375 reference "subsec:Automatical-Locking-Property"
21376
21377 \end_inset
21378
21379 ) based on 
21380 \begin_inset Flex Code
21381 status collapsed
21382
21383 \begin_layout Plain Layout
21384 svn:needs-lock
21385 \end_layout
21386
21387 \end_inset
21388
21389  file svn property
21390 \begin_inset Foot
21391 status open
21392
21393 \begin_layout Plain Layout
21394 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21395 \end_layout
21396
21397 \end_inset
21398
21399 .
21400  If this property is detected for a given document \SpecialChar LyX
21401  starts to use SVN locks
21402  for document editing automatically and the whole check-in/out mechanism
21403  switches to the same regimen as for RCS.
21404  This in particular means there are two different modes of file use in \SpecialChar LyX
21405 :
21406 \end_layout
21407
21408 \begin_layout Itemize
21409 Unlocked state.
21410  The loaded file is in the read-only mode.
21411  For editing on needs to check-out.
21412  
21413 \emph on
21414 Check-out
21415 \emph default
21416  consists of updating from the repository and gaining write lock.
21417  If the lock is not possible to obtain, we remain in unlocked state.
21418 \end_layout
21419
21420 \begin_layout Itemize
21421 Locked state.
21422  The loaded file is in the 'normal' edit mode.
21423  No other user is allowed to edit the file.
21424  
21425 \emph on
21426 Check-in
21427 \emph default
21428  consists of commiting changes and releasing write-lock.
21429  If no changes have been made to the document, no commit will be produced
21430 \begin_inset Foot
21431 status collapsed
21432
21433 \begin_layout Plain Layout
21434 Don't be puzzled by the fact that you will be asked for commit message anyway.
21435 \end_layout
21436
21437 \end_inset
21438
21439  and only the write-lock will be released.
21440 \end_layout
21441
21442 \begin_layout Standard
21443 SVN commands:
21444 \end_layout
21445
21446 \begin_layout Labeling
21447 \labelwidthstring 00.00.0000
21448 Check-in:
21449 \family typewriter
21450  svn commit -q -m"<description>" "<file-name>"
21451 \begin_inset Newline newline
21452 \end_inset
21453
21454 svn unlock "<file-name>"
21455 \end_layout
21456
21457 \begin_layout Labeling
21458 \labelwidthstring 00.00.0000
21459 Check-out: 
21460 \family typewriter
21461 svn update "<file-name>"
21462 \begin_inset Newline newline
21463 \end_inset
21464
21465 svn lock "<file-name>"
21466 \end_layout
21467
21468 \begin_layout Subsubsection
21469
21470 \family typewriter
21471 \begin_inset CommandInset label
21472 LatexCommand label
21473 name "subsec:Automatical-Locking-Property"
21474
21475 \end_inset
21476
21477
21478 \family default
21479 Automatic Locking Property
21480 \end_layout
21481
21482 \begin_layout Standard
21483 The above mentioned automatic setting of write permissions of the .lyx file
21484  can be set through
21485 \family sans
21486  File\SpecialChar menuseparator
21487 Version
21488 \begin_inset space ~
21489 \end_inset
21490
21491 Control\SpecialChar menuseparator
21492 Toggle locking property
21493 \family default
21494 .
21495  This command is active only when the file is not locked on the svn server
21496  (i.e.
21497  you need to check-out before proceeding).
21498 \end_layout
21499
21500 \begin_layout Labeling
21501 \labelwidthstring 00.00.0000
21502 SVN
21503 \begin_inset space ~
21504 \end_inset
21505
21506 commands:
21507 \end_layout
21508
21509 \begin_layout Labeling
21510 \labelwidthstring 00.00.0000
21511 Set:
21512 \family typewriter
21513  svn propset svn:needs-lock ON "<file-name>"
21514 \end_layout
21515
21516 \begin_layout Labeling
21517 \labelwidthstring 00.00.0000
21518 Unset: 
21519 \family typewriter
21520 svn propdel svn:needs-lock "<file-name>"
21521 \end_layout
21522
21523 \begin_layout Subsubsection
21524 \begin_inset CommandInset label
21525 LatexCommand label
21526 name "subsec:VCS-Revision-Information"
21527
21528 \end_inset
21529
21530 Revision Information in Documents
21531 \end_layout
21532
21533 \begin_layout Standard
21534 There are more possibilities how to activate revision information in our
21535  document.
21536 \end_layout
21537
21538 \begin_layout Itemize
21539 \SpecialChar LyX
21540  supports directly:
21541 \begin_inset Separator parbreak
21542 \end_inset
21543
21544
21545 \end_layout
21546
21547 \begin_deeper
21548 \begin_layout Itemize
21549 tree revision information (
21550 \begin_inset Flex Code
21551 status collapsed
21552
21553 \begin_layout Plain Layout
21554 vcs-tree-revision
21555 \end_layout
21556
21557 \end_inset
21558
21559 ).
21560  The result is the output of the 
21561 \begin_inset Flex Code
21562 status collapsed
21563
21564 \begin_layout Plain Layout
21565 svnversion
21566 \end_layout
21567
21568 \end_inset
21569
21570  command, the following table gives you an idea, how to read the results.
21571 \end_layout
21572
21573 \begin_layout Standard
21574 \align center
21575 \begin_inset Tabular
21576 <lyxtabular version="3" rows="6" columns="2">
21577 <features tabularvalignment="middle">
21578 <column alignment="center" valignment="top">
21579 <column alignment="center" valignment="top">
21580 <row>
21581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21582 \begin_inset Text
21583
21584 \begin_layout Plain Layout
21585 Output
21586 \end_layout
21587
21588 \end_inset
21589 </cell>
21590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21591 \begin_inset Text
21592
21593 \begin_layout Plain Layout
21594 Meaning
21595 \end_layout
21596
21597 \end_inset
21598 </cell>
21599 </row>
21600 <row>
21601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21602 \begin_inset Text
21603
21604 \begin_layout Plain Layout
21605 4123:4168
21606 \end_layout
21607
21608 \end_inset
21609 </cell>
21610 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21611 \begin_inset Text
21612
21613 \begin_layout Plain Layout
21614 mixed revision working copy
21615 \end_layout
21616
21617 \end_inset
21618 </cell>
21619 </row>
21620 <row>
21621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21622 \begin_inset Text
21623
21624 \begin_layout Plain Layout
21625 4168M
21626 \end_layout
21627
21628 \end_inset
21629 </cell>
21630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21631 \begin_inset Text
21632
21633 \begin_layout Plain Layout
21634 modified working copy
21635 \end_layout
21636
21637 \end_inset
21638 </cell>
21639 </row>
21640 <row>
21641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21642 \begin_inset Text
21643
21644 \begin_layout Plain Layout
21645 4123S
21646 \end_layout
21647
21648 \end_inset
21649 </cell>
21650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21651 \begin_inset Text
21652
21653 \begin_layout Plain Layout
21654 switched working copy
21655 \end_layout
21656
21657 \end_inset
21658 </cell>
21659 </row>
21660 <row>
21661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21662 \begin_inset Text
21663
21664 \begin_layout Plain Layout
21665 4123P
21666 \end_layout
21667
21668 \end_inset
21669 </cell>
21670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21671 \begin_inset Text
21672
21673 \begin_layout Plain Layout
21674 partial working copy, from a sparse checkout
21675 \end_layout
21676
21677 \end_inset
21678 </cell>
21679 </row>
21680 <row>
21681 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21682 \begin_inset Text
21683
21684 \begin_layout Plain Layout
21685 4123:4168MS
21686 \end_layout
21687
21688 \end_inset
21689 </cell>
21690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21691 \begin_inset Text
21692
21693 \begin_layout Plain Layout
21694 mixed revision, modified, switched working copy
21695 \end_layout
21696
21697 \end_inset
21698 </cell>
21699 </row>
21700 </lyxtabular>
21701
21702 \end_inset
21703
21704
21705 \end_layout
21706
21707 \begin_layout Itemize
21708 file revision information.
21709  The result comes from parsing the output of 
21710 \begin_inset Flex Code
21711 status collapsed
21712
21713 \begin_layout Plain Layout
21714 svn
21715 \begin_inset space ~
21716 \end_inset
21717
21718 info
21719 \begin_inset space ~
21720 \end_inset
21721
21722 –xml
21723 \begin_inset space ~
21724 \end_inset
21725
21726 file.lyx
21727 \end_layout
21728
21729 \end_inset
21730
21731 .
21732  Supported flags are:
21733 \begin_inset Separator parbreak
21734 \end_inset
21735
21736
21737 \end_layout
21738
21739 \begin_deeper
21740 \begin_layout Itemize
21741 version number of the last commit (
21742 \begin_inset Flex Code
21743 status collapsed
21744
21745 \begin_layout Plain Layout
21746 vcs-revision
21747 \end_layout
21748
21749 \end_inset
21750
21751 )
21752 \end_layout
21753
21754 \begin_layout Itemize
21755 author of the last commit (
21756 \begin_inset Flex Code
21757 status collapsed
21758
21759 \begin_layout Plain Layout
21760 vcs-author
21761 \end_layout
21762
21763 \end_inset
21764
21765 )
21766 \end_layout
21767
21768 \begin_layout Itemize
21769 date of the last commit (
21770 \begin_inset Flex Code
21771 status collapsed
21772
21773 \begin_layout Plain Layout
21774 vcs-date
21775 \end_layout
21776
21777 \end_inset
21778
21779 )
21780 \end_layout
21781
21782 \begin_layout Itemize
21783 time of the last commit (
21784 \begin_inset Flex Code
21785 status collapsed
21786
21787 \begin_layout Plain Layout
21788 vcs-time
21789 \end_layout
21790
21791 \end_inset
21792
21793 )
21794 \end_layout
21795
21796 \end_deeper
21797 \begin_layout Standard
21798 You can obtain this info via InsetInfo (e.g.
21799  
21800 \begin_inset Flex Code
21801 status collapsed
21802
21803 \begin_layout Plain Layout
21804 info-insert buffer vcs-date
21805 \end_layout
21806
21807 \end_inset
21808
21809 ).
21810  The information will be available only when you have the file stored under
21811  svn managment (i.e.
21812  the 
21813 \begin_inset Flex Code
21814 status collapsed
21815
21816 \begin_layout Plain Layout
21817 .svn
21818 \end_layout
21819
21820 \end_inset
21821
21822  directory is available with your document).
21823 \end_layout
21824
21825 \end_deeper
21826 \begin_layout Itemize
21827 Another—a hacking one—possibility is to use svn keywords
21828 \begin_inset Foot
21829 status collapsed
21830
21831 \begin_layout Plain Layout
21832 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21833 \end_layout
21834
21835 \end_inset
21836
21837 .
21838  In short – you set file keywords property (e.g.
21839  
21840 \family sans
21841 svn propset svn:keywords 'Rev' file.lyx
21842 \family default
21843 ) and then paste keyword \SpecialChar TeX
21844  code
21845 \begin_inset Foot
21846 status collapsed
21847
21848 \begin_layout Plain Layout
21849 This is an easy way how to ensure that \SpecialChar LyX
21850  won't break the line in the middle
21851  of keyword tag.
21852 \end_layout
21853
21854 \end_inset
21855
21856  tag in your document (e.g.
21857  
21858 \begin_inset ERT
21859 status open
21860
21861 \begin_layout Plain Layout
21862
21863 $Rev$
21864 \end_layout
21865
21866 \end_inset
21867
21868 ).
21869  This way svn client will automatically substitute revision number (e.g.
21870  
21871 \begin_inset ERT
21872 status open
21873
21874 \begin_layout Plain Layout
21875
21876 $Rev: 59 $
21877 \end_layout
21878
21879 \end_inset
21880
21881 ) after each update and commit.
21882  There are more problems with this approach.
21883  Firstly, the '$' character is used in \SpecialChar TeX
21884  world for math equations, so any
21885  occurence of math formula 
21886 \begin_inset Formula $Rev$
21887 \end_inset
21888
21889  become 
21890 \begin_inset Formula $Rev:59$
21891 \end_inset
21892
21893  in your \SpecialChar LyX
21894  document.
21895  Similarly for other keywords like Id, Date, Author, etc.
21896  Secondly svn output is dependent on your locales, so its very easy that
21897  svn would produce some problematic strings once Date is used.
21898  Thirdly you get the whole 'Rev: 59' string in your document instead of
21899  the plain number.
21900  Until subversion implements user's custom keywords it will be hard to use
21901  this approach reliably or let \SpecialChar LyX
21902  to support it directly.
21903 \end_layout
21904
21905 \begin_layout Subsection
21906 SVN and Windows Environment
21907 \end_layout
21908
21909 \begin_layout Quote
21910 My inclination is to say that if the user cannot figure out the command
21911  line operations on their own fairly quickly, they would be well advised
21912  to use TortoiseSVN.
21913  —P.
21914  A.
21915  Rubin
21916 \end_layout
21917
21918 \begin_layout Subsubsection
21919 Preparation
21920 \end_layout
21921
21922 \begin_layout Standard
21923 In addition to installing \SpecialChar LyX
21924 , and having access to a Subversion repository,
21925  the user will need to install the Subversion client program.
21926  A Windows installer for the client program is available from 
21927 \begin_inset CommandInset href
21928 LatexCommand href
21929 name "CollabNet"
21930 target "http://www.collab.net/nonav/downloads/subversion/"
21931
21932 \end_inset
21933
21934 .
21935  The user may also want to install 
21936 \begin_inset CommandInset href
21937 LatexCommand href
21938 name "TortoiseSVN"
21939 target "http://tortoisesvn.tigris.org/"
21940
21941 \end_inset
21942
21943 , which integrates Subversion operations into the context (rightclick) menu
21944  of Windows Explorer.
21945  Operations done outside \SpecialChar LyX
21946  will typically be more convenient using the Explorer
21947  context menu.
21948  Note that TortoiseSVN is not a replacement for the client program, which
21949  is what \SpecialChar LyX
21950  itself will use.
21951 \end_layout
21952
21953 \begin_layout Subsubsection
21954 Bringing a document under Subversion control
21955 \end_layout
21956
21957 \begin_layout Standard
21958 Before a \SpecialChar LyX
21959  document can be brought under version control in Subversion, its
21960  parent directory needs to be under version control.
21961  If the document is being added to a project already in the repository,
21962  this is accomplished by checking the project out to the directory where
21963  the new document will be placed.
21964  If the project itself is not yet under version control (for instance, if
21965  this document starts a new project), the directory must be imported into
21966  the repository.
21967  This is done outside \SpecialChar LyX
21968 .
21969  Both import and checkout are easily accomplished from the Explorer context
21970  menu using TortoiseSVN, or alternatively can be done using the command
21971  line client at a DOS prompt.
21972  The procedure for importing the project using TortoiseSVN is described
21973  below, assuming an existing repository and a new project being started
21974  in 
21975 \family typewriter
21976 C:
21977 \backslash
21978 new project
21979 \family default
21980 .
21981  For information on using the Subversion client program, run 
21982 \family typewriter
21983 svn --help 
21984 \family default
21985 in a DOS shell.
21986 \end_layout
21987
21988 \begin_layout Enumerate
21989 Locate 
21990 \family typewriter
21991 C:
21992 \backslash
21993 new project 
21994 \family default
21995 in Windows Explorer, right click it, and select 
21996 \family sans
21997 TortoiseSVN\SpecialChar menuseparator
21998 Repo-browser
21999 \family default
22000 .
22001  If necessary, adjust the URL for the repository, then click OK.
22002 \end_layout
22003
22004 \begin_layout Enumerate
22005 Right click the level of the repository under which you want to place the
22006  new project folder (typically the top level) and click 
22007 \family sans
22008 Create folder
22009 \family default
22010  Supply a name for the project folder and click OK.
22011  Add a message for the log file if desired, then click OK again.
22012  The new project folder should appear in the repository.
22013  Finally, click OK again to exit the repository browser.
22014 \end_layout
22015
22016 \begin_layout Enumerate
22017 Once again right click 
22018 \family typewriter
22019 C:
22020 \backslash
22021 new project
22022 \family default
22023 , this time selecting SVN Checkout\SpecialChar ldots
22024  Select the URL of the project folder
22025  you just created in the repository, and set the checkout directory to 
22026 \family typewriter
22027 C:
22028 \backslash
22029 new project.
22030
22031 \family default
22032  Click OK.
22033  You will be warned about a non-empty folder; click OK to proceed.
22034  You should now have a 
22035 \family typewriter
22036 .svn
22037 \family default
22038  directory under 
22039 \family typewriter
22040 C:
22041 \backslash
22042 new project.
22043 \end_layout
22044
22045 \begin_layout Enumerate
22046 Create or open your document in \SpecialChar LyX
22047  and click 
22048 \family sans
22049 File\SpecialChar menuseparator
22050 Version
22051 \begin_inset space ~
22052 \end_inset
22053
22054 Control\SpecialChar menuseparator
22055 Register.
22056  
22057 \family default
22058 Add a log message and click OK to commit the document to version control.
22059 \end_layout
22060
22061 \begin_layout Standard
22062 From this point onward, you should have full functionality in the 
22063 \family sans
22064 File\SpecialChar menuseparator
22065 Version
22066 \begin_inset space ~
22067 \end_inset
22068
22069 Control
22070 \family default
22071  menu.
22072  You also have the option of checking the document in and out, viewing its
22073  history, etc.
22074  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22075  client program from a command prompt.
22076 \end_layout
22077
22078 \begin_layout Subsubsection
22079 SSH tunnel used with SVN under Windows
22080 \end_layout
22081
22082 \begin_layout Standard
22083 Compared with Linux setting up an svn client to communicate over ssh under
22084  Windows is a rather troublesome task.
22085  We will at least offer some hints how to setup the client side but prior
22086  knowledge about ssh and the Windows command line is needed, also be prepared
22087  for a great deal of frustration\SpecialChar ldots
22088
22089 \end_layout
22090
22091 \begin_layout Enumerate
22092 Get an svn client for windows, as described in the previous sections.
22093  When it is a fresh install run some svn command (e.g.
22094  
22095 \begin_inset Flex Code
22096 status collapsed
22097
22098 \begin_layout Plain Layout
22099 svn –version
22100 \end_layout
22101
22102 \end_inset
22103
22104 ) to create config files, which you will need to change later on.
22105 \end_layout
22106
22107 \begin_layout Enumerate
22108 Choose an ssh client for Windows.
22109  There are several possibilities, we will use the one from Putty tools
22110 \begin_inset Foot
22111 status collapsed
22112
22113 \begin_layout Plain Layout
22114 \begin_inset Flex URL
22115 status collapsed
22116
22117 \begin_layout Plain Layout
22118
22119 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22120 \end_layout
22121
22122 \end_inset
22123
22124
22125 \end_layout
22126
22127 \end_inset
22128
22129 .
22130  You will need to set the connection up so that the client doesn't ask for
22131  any password from you.
22132  To keep things easy we will use only keys without any additional password
22133  protection etc.
22134 \begin_inset Separator parbreak
22135 \end_inset
22136
22137
22138 \end_layout
22139
22140 \begin_deeper
22141 \begin_layout Enumerate
22142 Generate keys by 
22143 \begin_inset Flex Code
22144 status collapsed
22145
22146 \begin_layout Plain Layout
22147 puttygen
22148 \end_layout
22149
22150 \end_inset
22151
22152 .
22153  Save your private .ppk key file and put the public one on the server side.
22154  If the SVN server runs on Linux, note that the format of the public key
22155  is not compatible with Linux openssh and you will need to direcly copy-paste
22156  the key from the “
22157 \emph on
22158 Public key for pasting into OpenSSH authorized_keys file
22159 \emph default
22160 :” edit field into the server's 
22161 \begin_inset Flex Code
22162 status collapsed
22163
22164 \begin_layout Plain Layout
22165 ~/.ssh/authorized_keys
22166 \end_layout
22167
22168 \end_inset
22169
22170  / 
22171 \begin_inset Flex Code
22172 status collapsed
22173
22174 \begin_layout Plain Layout
22175 authorized_keys2
22176 \end_layout
22177
22178 \end_inset
22179
22180  file.
22181 \end_layout
22182
22183 \begin_layout Enumerate
22184 Get the Putty's 
22185 \begin_inset Flex Code
22186 status collapsed
22187
22188 \begin_layout Plain Layout
22189 plink
22190 \end_layout
22191
22192 \end_inset
22193
22194 .
22195  In the SVN config file
22196 \begin_inset Foot
22197 status collapsed
22198
22199 \begin_layout Plain Layout
22200 Exact path depends on Windows version, usually somewhere around 
22201 \begin_inset Flex Code
22202 status collapsed
22203
22204 \begin_layout Plain Layout
22205 c:
22206 \backslash
22207 Documents and Settings
22208 \backslash
22209 user
22210 \backslash
22211 Application Data
22212 \backslash
22213 Subversion
22214 \backslash
22215 config
22216 \end_layout
22217
22218 \end_inset
22219
22220  / 
22221 \begin_inset Flex Code
22222 status collapsed
22223
22224 \begin_layout Plain Layout
22225 AppData
22226 \backslash
22227 Roaming
22228 \backslash
22229 Subversion
22230 \end_layout
22231
22232 \end_inset
22233
22234 .
22235 \end_layout
22236
22237 \end_inset
22238
22239 , section [tunnels], setup ssh command, e.g.
22240  
22241 \begin_inset Flex Code
22242 status collapsed
22243
22244 \begin_layout Plain Layout
22245 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22246 \end_layout
22247
22248 \end_inset
22249
22250 .
22251 \begin_inset Foot
22252 status collapsed
22253
22254 \begin_layout Plain Layout
22255 It will usually take a lot of time to get exact command right and it depends
22256  on many things.
22257  For example do not have some remote server saved as a default session in
22258  Putty etc.
22259  If things fail, try to connect via plink without SVN first.
22260 \end_layout
22261
22262 \end_inset
22263
22264
22265 \end_layout
22266
22267 \end_deeper
22268 \begin_layout Enumerate
22269 Checkout the SVN archive, e.
22270 \begin_inset space \thinspace{}
22271 \end_inset
22272
22273 g.
22274 \begin_inset Newline newline
22275 \end_inset
22276
22277
22278 \begin_inset Flex Code
22279 status collapsed
22280
22281 \begin_layout Plain Layout
22282 svn co svn+ssh://user@server/repository_path
22283 \end_layout
22284
22285 \end_inset
22286
22287 .
22288 \end_layout
22289
22290 \begin_layout Subsubsection
22291 End-of-Line Conversions
22292 \end_layout
22293
22294 \begin_layout Standard
22295 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22296  will
22297  use different line endings inside the .lyx files.
22298  This is not a problem as far as \SpecialChar LyX
22299  functionality is concerned, but the commit
22300  diffs will be huge and merge-conflicts prone.
22301  Fortunately SVN itself knows
22302 \begin_inset Foot
22303 status collapsed
22304
22305 \begin_layout Plain Layout
22306 \begin_inset Flex URL
22307 status collapsed
22308
22309 \begin_layout Plain Layout
22310
22311 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22312 \end_layout
22313
22314 \end_inset
22315
22316
22317 \end_layout
22318
22319 \end_inset
22320
22321  how to deal with CR/LF problems when switching .lyx files to the 
22322 \begin_inset Flex Code
22323 status collapsed
22324
22325 \begin_layout Plain Layout
22326 native
22327 \end_layout
22328
22329 \end_inset
22330
22331  mode.
22332 \begin_inset Foot
22333 status collapsed
22334
22335 \begin_layout Plain Layout
22336 For the lazy guys: 
22337 \begin_inset Flex Code
22338 status collapsed
22339
22340 \begin_layout Plain Layout
22341 svn propset svn:eol-style native FILE_NAME
22342 \end_layout
22343
22344 \end_inset
22345
22346
22347 \end_layout
22348
22349 \end_inset
22350
22351
22352 \end_layout
22353
22354 \begin_layout Subsection
22355 GIT commands in \SpecialChar LyX
22356
22357 \end_layout
22358
22359 \begin_layout Standard
22360 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22361 .
22362  You can find the commands in the 
22363 \family sans
22364 File\SpecialChar menuseparator
22365 Version
22366 \begin_inset space ~
22367 \end_inset
22368
22369 Control
22370 \family default
22371  submenu.
22372  Please note that if you use password protected access to repository via
22373  ssh, you will be asked in terminal window.
22374  \SpecialChar LyX
22375  was tested against GIT 1.7.
22376 \begin_inset Foot
22377 status open
22378
22379 \begin_layout Plain Layout
22380 Windows users please note that you need to ensure that git is on the path.
22381  This can be set from within \SpecialChar LyX
22382  at 
22383 \family sans
22384 Tools\SpecialChar menuseparator
22385 Preferences\SpecialChar menuseparator
22386 Paths\SpecialChar menuseparator
22387 PATH prefix
22388 \family default
22389 .
22390 \end_layout
22391
22392 \end_inset
22393
22394
22395 \end_layout
22396
22397 \begin_layout Standard
22398 One big difference of GIT and the other supported version control systems
22399  is the distributed nature of GIT: With traditional version control systems
22400  there is one central server which hosts the repository.
22401  Users commit their changes to the server, and get updates made by other
22402  users from it.
22403  With GIT, users commit to a local repository.
22404  The local repository can be synchronized with one or more remote repositories
22405  using the 
22406 \begin_inset Flex Code
22407 status collapsed
22408
22409 \begin_layout Plain Layout
22410 pull
22411 \end_layout
22412
22413 \end_inset
22414
22415  and 
22416 \begin_inset Flex Code
22417 status collapsed
22418
22419 \begin_layout Plain Layout
22420 push
22421 \end_layout
22422
22423 \end_inset
22424
22425  GIT commands.
22426  \SpecialChar LyX
22427  does not interact in any way with remote GIT repositories.
22428  It works exclusively with the local repository in a very similar way as
22429  with a central CVS or SVN repository.
22430  If you use remote GIT repositories you need to do the 
22431 \begin_inset Flex Code
22432 status collapsed
22433
22434 \begin_layout Plain Layout
22435 pull
22436 \end_layout
22437
22438 \end_inset
22439
22440  and 
22441 \begin_inset Flex Code
22442 status collapsed
22443
22444 \begin_layout Plain Layout
22445 push
22446 \end_layout
22447
22448 \end_inset
22449
22450  operations with your favourite GIT client.
22451 \end_layout
22452
22453 \begin_layout Subsubsection
22454
22455 \family sans
22456 Register
22457 \end_layout
22458
22459 \begin_layout Standard
22460 If your document is not under revision control, this is the only item shown
22461  in the menu.
22462  And if it is under revision control, the 
22463 \family sans
22464 Register
22465 \family default
22466  item is not visible.
22467 \end_layout
22468
22469 \begin_layout Standard
22470 This command registers in GIT your document ONLY in case you have already
22471  the documents directory under GIT control (in particular 
22472 \family typewriter
22473 .git/index
22474 \family default
22475  file exists).
22476  This means you have to checkout the archive by yourself.
22477 \end_layout
22478
22479 \begin_layout Standard
22480 Then you are asked interactively to supply an initial description of the
22481  document.
22482  Don't forget that registered file is not yet commited.
22483 \end_layout
22484
22485 \begin_layout Standard
22486 GIT command that is run: 
22487 \family typewriter
22488 git add 
22489 \begin_inset Quotes eld
22490 \end_inset
22491
22492 <file-name>
22493 \begin_inset Quotes erd
22494 \end_inset
22495
22496
22497 \end_layout
22498
22499 \begin_layout Standard
22500 Read 
22501 \family typewriter
22502 man git
22503 \family default
22504  to understand the switches.
22505 \end_layout
22506
22507 \begin_layout Subsubsection
22508
22509 \family sans
22510 Check In Changes
22511 \end_layout
22512
22513 \begin_layout Standard
22514 When you are finished editing a file, you commit your changes.
22515  When you do this, you are asked for a description of the changes.
22516  After that changes are commited.
22517 \end_layout
22518
22519 \begin_layout Standard
22520 GIT command: 
22521 \family typewriter
22522 git commit -q -m"<description>" <file-name>
22523 \end_layout
22524
22525 \begin_layout Subsubsection
22526
22527 \family sans
22528 Revert To Repository Version
22529 \end_layout
22530
22531 \begin_layout Standard
22532 This will discard all changes made to the document since the last check
22533  in.
22534  You get a warning before changes are discarded.
22535 \end_layout
22536
22537 \begin_layout Standard
22538 GIT command: 
22539 \family typewriter
22540 git checkout -q 
22541 \begin_inset Quotes eld
22542 \end_inset
22543
22544 <file-name>
22545 \begin_inset Quotes erd
22546 \end_inset
22547
22548
22549 \end_layout
22550
22551 \begin_layout Subsubsection
22552
22553 \family sans
22554 Rename
22555 \end_layout
22556
22557 \begin_layout Standard
22558 This will rename the current document including the version history.
22559  It requires a clean document without any changes since the last checkin.
22560  You are asked for a file name and a description of the rename operation.
22561  After that the document is renamed, both locally and in the repository.
22562  If the parent directories of the new and old file names differ, all relative
22563  paths of included files are adjusted (like in 
22564 \family sans
22565 File\SpecialChar menuseparator
22566 Save As
22567 \family default
22568 \SpecialChar ldots
22569 ).
22570  Finally, the document is reloaded using the new name.
22571 \end_layout
22572
22573 \begin_layout Labeling
22574 \labelwidthstring 00.00.0000
22575 GIT
22576 \begin_inset space ~
22577 \end_inset
22578
22579 commands: 
22580 \begin_inset space ~
22581 \end_inset
22582
22583
22584 \begin_inset Newline newline
22585 \end_inset
22586
22587
22588 \begin_inset Flex Code
22589 status collapsed
22590
22591 \begin_layout Plain Layout
22592 git mv 
22593 \family typewriter
22594
22595 \begin_inset Quotes eld
22596 \end_inset
22597
22598 <file-name>
22599 \begin_inset Quotes erd
22600 \end_inset
22601
22602  
22603 \begin_inset Quotes eld
22604 \end_inset
22605
22606 <new-file-name>
22607 \begin_inset Quotes erd
22608 \end_inset
22609
22610
22611 \end_layout
22612
22613 \end_inset
22614
22615
22616 \begin_inset Newline newline
22617 \end_inset
22618
22619
22620 \begin_inset Flex Code
22621 status collapsed
22622
22623 \begin_layout Plain Layout
22624 git commit
22625 \end_layout
22626
22627 \end_inset
22628
22629
22630 \end_layout
22631
22632 \begin_layout Subsubsection
22633
22634 \family sans
22635 Show History
22636 \end_layout
22637
22638 \begin_layout Standard
22639 This shows the complete history of the GIT document.
22640  The output of 
22641 \family typewriter
22642 git log 
22643 \begin_inset Quotes eld
22644 \end_inset
22645
22646 <file-name>
22647 \begin_inset Quotes erd
22648 \end_inset
22649
22650
22651 \family default
22652  is shown in a browser.
22653 \end_layout
22654
22655 \begin_layout Subsubsection
22656 Version Info
22657 \end_layout
22658
22659 \begin_layout Standard
22660 \SpecialChar LyX
22661  supports GIT hash number of the last commit to the file, author name, date
22662  and time of last commit.
22663  All those are extracted from 
22664 \family typewriter
22665 git log -n 1 --pretty=format:%H%n%an%n%ai
22666 \family default
22667 .
22668  Tree version information is obtained via 
22669 \family typewriter
22670 git describe --abbrev --dirty --long
22671 \family default
22672 .
22673  See 
22674 \begin_inset CommandInset ref
22675 LatexCommand ref
22676 reference "subsec:VCS-Revision-Information"
22677
22678 \end_inset
22679
22680  for other details.
22681 \end_layout
22682
22683 \begin_layout Subsection
22684 Further tuning
22685 \end_layout
22686
22687 \begin_layout Standard
22688 With the recent addition of the vc-command function \SpecialChar LyX
22689  power users are allowed
22690  to create their own commands for revision control.
22691 \end_layout
22692
22693 \begin_layout Standard
22694 As an example you can see how two TortoiseSVN commands could be integrated
22695  directly:
22696 \end_layout
22697
22698 \begin_layout Description
22699 Commit: 
22700 \begin_inset Flex Code
22701 status collapsed
22702
22703 \begin_layout Plain Layout
22704 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22705 \end_layout
22706
22707 \end_inset
22708
22709
22710 \end_layout
22711
22712 \begin_layout Description
22713 Revert: 
22714 \begin_inset Flex Code
22715 status collapsed
22716
22717 \begin_layout Plain Layout
22718 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22719 \end_layout
22720
22721 \end_inset
22722
22723
22724 \end_layout
22725
22726 \begin_layout Subsection
22727 Version control and Document comparison
22728 \end_layout
22729
22730 \begin_layout Standard
22731 One of the typical uses of version control is to inspect the changes between
22732  revisions, usually by creating 
22733 \begin_inset Flex Code
22734 status collapsed
22735
22736 \begin_layout Plain Layout
22737 diff
22738 \end_layout
22739
22740 \end_inset
22741
22742  dumps.
22743  While this is useful for plain text files, it is much less useful in the
22744  case of \SpecialChar LyX
22745  files, which have more a complicated structure.
22746  Hence we provide binding to the Document comparison feature.
22747  There are two ways of calling this feature - either by direct call of 
22748 \begin_inset Flex Code
22749 status collapsed
22750
22751 \begin_layout Plain Layout
22752 VC_COMPARE
22753 \end_layout
22754
22755 \end_inset
22756
22757  \SpecialChar LyX
22758  function (for details see \SpecialChar LyX
22759  functions manual) or by icon/menu item 
22760 \begin_inset Flex Noun
22761 status collapsed
22762
22763 \begin_layout Plain Layout
22764 Compare with older revision...
22765 \end_layout
22766
22767 \end_inset
22768
22769 .
22770  One can either compare two chosen revisions of the document or he can simply
22771  compare the current version of edited text with older revisions (where
22772  '
22773 \begin_inset Flex Noun
22774 status collapsed
22775
22776 \begin_layout Plain Layout
22777 0
22778 \end_layout
22779
22780 \end_inset
22781
22782 ' revisions back means comparison of the edited file with last commited
22783  revision).
22784  
22785 \end_layout
22786
22787 \begin_layout Standard
22788 This feature is supported for SVN and RCS though due to the more complicated
22789  versioning scheme of RCS there is a constraint – when addressing the revisions
22790  in dialog, numbers always point to the last number in RCS revision number,
22791  i.e.
22792  '35' in '1.2.35'.
22793  We don't currently support GIT addressing of revisions, one can just compare
22794  edited document with its revision X steps backs, where X is addressed as
22795  HEAD~X.
22796 \end_layout
22797
22798 \begin_layout Section
22799 Literate Programming
22800 \end_layout
22801
22802 \begin_layout Standard
22803 Updated by 
22804 \noun on
22805 Kayvan Sylvan 
22806 \noun default
22807 (kayvan@sylvan.com)
22808 \noun on
22809
22810 \noun default
22811 original documentation written by 
22812 \noun on
22813 Edmar Wienskoski Jr.
22814
22815 \noun default
22816  (edmar-w-jr@technologist.com)
22817 \end_layout
22818
22819 \begin_layout Subsection
22820 Introduction
22821 \end_layout
22822
22823 \begin_layout Standard
22824 The main purpose of this documentation is to show you how to use \SpecialChar LyX
22825  for literate
22826  programming, where it is assumed that you are familiar with this programming
22827  technique, and know what 
22828 \begin_inset Quotes eld
22829 \end_inset
22830
22831 tangling
22832 \begin_inset Quotes erd
22833 \end_inset
22834
22835  and 
22836 \begin_inset Quotes eld
22837 \end_inset
22838
22839 weaving
22840 \begin_inset Quotes erd
22841 \end_inset
22842
22843  means.
22844  If that is not the case, please follow the web links provided in the following
22845  sections.
22846  There is a lot of good documentation out there covering old development
22847  history to the latest tools tips.
22848 \end_layout
22849
22850 \begin_layout Standard
22851 It is also assumed that you are familiar with \SpecialChar LyX
22852  itself to a point that you
22853  are comfortable changing your \SpecialChar LyX
22854  preferences, and X resources file.
22855  If that is not the case please refer to other \SpecialChar LyX
22856  documentation to cover your
22857  specific needs.
22858 \end_layout
22859
22860 \begin_layout Subsection
22861 Literate Programming
22862 \end_layout
22863
22864 \begin_layout Standard
22865 From the Literate Programming FAQ: 
22866 \end_layout
22867
22868 \begin_layout Quotation
22869 Literate programming is the combination of documentation and source together
22870  in a fashion suited for reading by human beings.
22871  In fact, literate programs should be enjoyable reading, even inviting!
22872  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
22873  and documentation in a single file.
22874  Literate programming tools then parse the file to produce either readable
22875  documentation or compilable source.
22876  The WEB style of literate programming was created by D.
22877 \begin_inset space \thinspace{}
22878 \end_inset
22879
22880 E.
22881  Knuth during the development of his \SpecialChar TeX
22882  typesetting software.
22883  
22884 \end_layout
22885
22886 \begin_layout Standard
22887 Another excerpt says:
22888 \end_layout
22889
22890 \begin_layout Quotation
22891
22892 \emph on
22893 How is literate programming different from verbose commenting?
22894 \end_layout
22895
22896 \begin_layout Quotation
22897 There are three distinguishing characteristics.
22898  In order of importance, they are: 
22899 \begin_inset Separator parbreak
22900 \end_inset
22901
22902
22903 \end_layout
22904
22905 \begin_deeper
22906 \begin_layout Itemize
22907 flexible order of elaboration 
22908 \end_layout
22909
22910 \begin_layout Itemize
22911 automatic support for browsing 
22912 \end_layout
22913
22914 \begin_layout Itemize
22915 typeset documentation, especially diagrams and mathematics 
22916 \end_layout
22917
22918 \end_deeper
22919 \begin_layout Standard
22920 Now that I sparked your curiosity, take a look in the references.
22921 \end_layout
22922
22923 \begin_layout Subsubsection
22924 References
22925 \end_layout
22926
22927 \begin_layout Standard
22928 The complete Literate Programming FAQ can be found at:
22929 \end_layout
22930
22931 \begin_layout Quote
22932 Literate Programming FAQ 
22933 \begin_inset Flex URL
22934 status collapsed
22935
22936 \begin_layout Plain Layout
22937
22938 http://www.literateprogramming.com/lpfaq.pdf
22939 \end_layout
22940
22941 \end_inset
22942
22943
22944 \end_layout
22945
22946 \begin_layout Standard
22947 The FAQ lists 23 (twenty three!) different literate programming tools.
22948  Where some are specialized or 
22949 \begin_inset Quotes eld
22950 \end_inset
22951
22952 tailored
22953 \begin_inset Quotes erd
22954 \end_inset
22955
22956  for particular programming languages, while other have general scope.
22957  I selected 
22958 \noun on
22959 Noweb
22960 \noun default
22961  for my own use for several reasons:
22962 \end_layout
22963
22964 \begin_layout Itemize
22965 It can generate the documentation either in \SpecialChar LaTeX
22966  or HTML.
22967 \end_layout
22968
22969 \begin_layout Itemize
22970 It has a open architecture, i.
22971 \begin_inset space \thinspace{}
22972 \end_inset
22973
22974 e.
22975 \begin_inset space \space{}
22976 \end_inset
22977
22978 it is easy to plug in new filters and to perform special processing that
22979  you may need.
22980  
22981 \end_layout
22982
22983 \begin_layout Itemize
22984 There is a good selection of filters available already (the HTML is one
22985  of them).
22986 \end_layout
22987
22988 \begin_layout Itemize
22989 It is free.
22990 \end_layout
22991
22992 \begin_layout Standard
22993 The Noweb web page can be found at: 
22994 \end_layout
22995
22996 \begin_layout Quote
22997 Noweb home page 
22998 \begin_inset Flex URL
22999 status collapsed
23000
23001 \begin_layout Plain Layout
23002
23003 http://www.cs.virginia.edu/~nr/noweb/
23004 \end_layout
23005
23006 \end_inset
23007
23008
23009 \end_layout
23010
23011 \begin_layout Standard
23012 Starting from there you can reach many other interesting links and even
23013  some literate program examples.
23014 \end_layout
23015
23016 \begin_layout Subsection
23017 \SpecialChar LyX
23018  and Literate Programming with Noweb
23019 \end_layout
23020
23021 \begin_layout Standard
23022 The \SpecialChar LyX
23023  support for Literate Programming is provided by using the generic \SpecialChar LyX
23024
23025  converters mechanism.
23026  This support is provided in a 
23027 \begin_inset Quotes eld
23028 \end_inset
23029
23030 Noweb independent
23031 \begin_inset Quotes erd
23032 \end_inset
23033
23034  way, i.
23035 \begin_inset space \thinspace{}
23036 \end_inset
23037
23038 e.
23039 \begin_inset space \space{}
23040 \end_inset
23041
23042 you will be able to use this new \SpecialChar LyX
23043  feature with some other literate programming
23044  tool of your choice by just changing your \SpecialChar LyX
23045  preferences.
23046 \end_layout
23047
23048 \begin_layout Subsubsection
23049 Generating documents and code (weaving and tangling)
23050 \end_layout
23051
23052 \begin_layout Paragraph
23053 Using the noweb module
23054 \end_layout
23055
23056 \begin_layout Standard
23057 If you have installed Noweb and \SpecialChar LyX
23058  successfully, whenever you open a new document,
23059  after you have chosen its document class, use the Document->Settings menu
23060  to add the 
23061 \begin_inset Quotes eld
23062 \end_inset
23063
23064 noweb
23065 \begin_inset Quotes erd
23066 \end_inset
23067
23068  module.
23069  If Noweb is correctly installed, when you click on the 
23070 \begin_inset Quotes eld
23071 \end_inset
23072
23073 Modules
23074 \begin_inset Quotes erd
23075 \end_inset
23076
23077  link, you will see the 
23078 \begin_inset Quotes eld
23079 \end_inset
23080
23081 noweb
23082 \begin_inset Quotes erd
23083 \end_inset
23084
23085  module in the available list and you can add it to your document.
23086 \end_layout
23087
23088 \begin_layout Paragraph
23089 Typing code in
23090 \end_layout
23091
23092 \begin_layout Standard
23093 \SpecialChar LyX
23094  enables you to write code with a layout named 
23095 \begin_inset Flex Noun
23096 status collapsed
23097
23098 \begin_layout Plain Layout
23099 Chunk
23100 \end_layout
23101
23102 \end_inset
23103
23104 .
23105  Noweb delimits chunks like this:
23106 \end_layout
23107
23108 \begin_layout LyX-Code
23109 <<My code>>=
23110 \end_layout
23111
23112 \begin_layout LyX-Code
23113   code
23114 \end_layout
23115
23116 \begin_layout LyX-Code
23117   more code
23118 \end_layout
23119
23120 \begin_layout LyX-Code
23121   even more code
23122 \end_layout
23123
23124 \begin_layout LyX-Code
23125   @
23126 \end_layout
23127
23128 \begin_layout Standard
23129 The problem is that whatever is written in between the << and the 
23130 \family typewriter
23131 @
23132 \family default
23133  must be taken literally, i.
23134 \begin_inset space \thinspace{}
23135 \end_inset
23136
23137 e.
23138 \begin_inset space \space{}
23139 \end_inset
23140
23141 \SpecialChar LyX
23142  should be prevented from making any special interpretation of what has
23143  been written.
23144  This is also handled by 
23145 \begin_inset Flex Noun
23146 status collapsed
23147
23148 \begin_layout Plain Layout
23149 Chunk
23150 \end_layout
23151
23152 \end_inset
23153
23154 , that works like a normal paragraph but has a free spacing capability.
23155 \end_layout
23156
23157 \begin_layout Standard
23158 As a special note, you can also use the 
23159 \begin_inset Quotes eld
23160 \end_inset
23161
23162 %def
23163 \begin_inset Quotes erd
23164 \end_inset
23165
23166  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23167 rence:
23168 \end_layout
23169
23170 \begin_layout LyX-Code
23171 <<My chunk>>=
23172 \end_layout
23173
23174 \begin_layout LyX-Code
23175 def some_function(args):
23176 \end_layout
23177
23178 \begin_layout LyX-Code
23179    "This is the doc string for this function."
23180 \end_layout
23181
23182 \begin_layout LyX-Code
23183    print "My args: ", args
23184 \end_layout
23185
23186 \begin_layout LyX-Code
23187 @ %def some_function
23188 \end_layout
23189
23190 \begin_layout Standard
23191 For an example of this usage and the resulting cross-reference output, look
23192  at the Literate python program in 
23193 \emph on
23194 LIBDIR/examples/listerrors.lyx
23195 \emph default
23196  which should make this all clear.
23197 \end_layout
23198
23199 \begin_layout Paragraph
23200 Generating the documentation
23201 \end_layout
23202
23203 \begin_layout Standard
23204 At this point you already have a new document file with a proper document
23205  class, and with some code and text on it.
23206  How do I print it? The answer is simple, you select 
23207 \family sans
23208 View\SpecialChar menuseparator
23209 DVI,
23210 \family default
23211  etc.
23212  Just like you would do for a plain document.
23213  No special procedure is required.
23214 \end_layout
23215
23216 \begin_layout Standard
23217 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23218 :
23219 \end_layout
23220
23221 \begin_layout Enumerate
23222 When the 
23223 \family sans
23224 Update\SpecialChar menuseparator
23225 DVI
23226 \family default
23227  menu option is chosen, a \SpecialChar LaTeX
23228  file is generated.
23229  
23230 \begin_inset Separator parbreak
23231 \end_inset
23232
23233
23234 \end_layout
23235
23236 \begin_deeper
23237 \begin_layout Standard
23238 If the document is of any literate class the generated file will be named
23239  with an extension name defined by the 
23240 \begin_inset Quotes eld
23241 \end_inset
23242
23243 literate
23244 \begin_inset Quotes erd
23245 \end_inset
23246
23247  format (defined in the Preferences panel), otherwise the file will have
23248  the usual 
23249 \family typewriter
23250 .tex
23251 \family default
23252  extension.
23253 \end_layout
23254
23255 \end_deeper
23256 \begin_layout Enumerate
23257 Note that the only difference so far is in the name of the file, no special
23258  processing is required by \SpecialChar LyX
23259 .
23260  Given that you formatted the code using the 
23261 \begin_inset Flex Noun
23262 status collapsed
23263
23264 \begin_layout Plain Layout
23265 Chunk
23266 \end_layout
23267
23268 \end_inset
23269
23270  layout that, by itself, takes care of the business.
23271 \end_layout
23272
23273 \begin_layout Enumerate
23274 If the document is of any literate class \SpecialChar LyX
23275  will then use the internal \SpecialChar LyX
23276  to
23277  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23278  converter
23279 \begin_inset Foot
23280 status collapsed
23281
23282 \begin_layout Plain Layout
23283 The converters are defined in the 
23284 \family sans
23285 Tools\SpecialChar menuseparator
23286 Preferences
23287 \family default
23288  panel, under the 
23289 \begin_inset Quotes eld
23290 \end_inset
23291
23292 Conversion
23293 \begin_inset Quotes erd
23294 \end_inset
23295
23296  tab.
23297  See section 
23298 \emph on
23299 Converters
23300 \emph default
23301  of the 
23302 \emph on
23303 Customization
23304 \emph default
23305  manual for general information about converters.
23306 \end_layout
23307
23308 \end_inset
23309
23310  to generate the \SpecialChar LaTeX
23311  file.
23312 \begin_inset Separator parbreak
23313 \end_inset
23314
23315
23316 \end_layout
23317
23318 \begin_deeper
23319 \begin_layout Standard
23320 Otherwise it will just skip this step.
23321 \end_layout
23322
23323 \end_deeper
23324 \begin_layout Enumerate
23325 Finally, \SpecialChar LaTeX
23326  is invoked and the regular post processing continues as in a plain
23327  document.
23328 \end_layout
23329
23330 \begin_layout Standard
23331 Independence from a particular 
23332 \begin_inset Quotes eld
23333 \end_inset
23334
23335 literate tool
23336 \begin_inset Quotes erd
23337 \end_inset
23338
23339  is easily achieved by changing the commands that are run by the various
23340  converters.
23341 \end_layout
23342
23343 \begin_layout Paragraph
23344 Generating the code
23345 \end_layout
23346
23347 \begin_layout Standard
23348 When the build menu option is chosen or the corresponding button in the
23349  toolbar is pressed, a \SpecialChar LaTeX
23350  file is generated just like step 1 above.
23351  Next, \SpecialChar LyX
23352  invokes the 
23353 \family typewriter
23354 Noweb->Program
23355 \family default
23356  converter.
23357  This converter needs to be defined by the user and is not installed by
23358  default, though the Program format is.
23359  This converter (like any other converter) will have two parts:
23360 \end_layout
23361
23362 \begin_layout Enumerate
23363 The converter program itself.
23364  This program performs the conversion from the one format to the other (in
23365  this case, from the Noweb format to the Program pseudo-format).
23366 \end_layout
23367
23368 \begin_layout Enumerate
23369 The error log parser.
23370  This is a program whose sole purpose is to rewrite error messages in a
23371  format that \SpecialChar LyX
23372  understands.
23373  This makes it possible for \SpecialChar LyX
23374  to place error boxes in the right places in
23375  the file buffer.
23376 \end_layout
23377
23378 \begin_layout Standard
23379 The first part, the 
23380 \begin_inset Quotes eld
23381 \end_inset
23382
23383 Converter
23384 \begin_inset Quotes erd
23385 \end_inset
23386
23387  setting, should be set to
23388 \begin_inset Newline newline
23389 \end_inset
23390
23391
23392 \begin_inset Quotes eld
23393 \end_inset
23394
23395
23396 \family typewriter
23397 build-script $$i
23398 \family default
23399  $$r
23400 \begin_inset Quotes erd
23401 \end_inset
23402
23403 .
23404 \begin_inset Newline newline
23405 \end_inset
23406
23407 This basically means that \SpecialChar LyX
23408  will call 
23409 \begin_inset Quotes eld
23410 \end_inset
23411
23412 build-script
23413 \begin_inset Quotes erd
23414 \end_inset
23415
23416  (a program or script) with the name of the Noweb file (normally a file
23417  in the \SpecialChar LyX
23418  temp directory) and the directory path of the original \SpecialChar LyX
23419  file.
23420  
23421 \end_layout
23422
23423 \begin_layout Standard
23424 This is an implementation of 
23425 \begin_inset Quotes eld
23426 \end_inset
23427
23428 build-script
23429 \begin_inset Quotes erd
23430 \end_inset
23431
23432  that you can place in a directory on your path:
23433 \end_layout
23434
23435 \begin_layout Standard
23436 \begin_inset VSpace defskip
23437 \end_inset
23438
23439
23440 \end_layout
23441
23442 \begin_layout Standard
23443 \begin_inset Newpage pagebreak
23444 \end_inset
23445
23446
23447 \end_layout
23448
23449 \begin_layout Standard
23450
23451 \family sans
23452 #!/bin/sh
23453 \end_layout
23454
23455 \begin_layout Standard
23456
23457 \family sans
23458 #
23459 \end_layout
23460
23461 \begin_layout Standard
23462
23463 \family sans
23464 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23465 \end_layout
23466
23467 \begin_layout Standard
23468 \begin_inset VSpace defskip
23469 \end_inset
23470
23471
23472 \end_layout
23473
23474 \begin_layout Standard
23475 The next part of the converter setting is the 
23476 \begin_inset Quotes eld
23477 \end_inset
23478
23479 Flags
23480 \begin_inset Quotes erd
23481 \end_inset
23482
23483  which is to be set to
23484 \begin_inset Newline newline
23485 \end_inset
23486
23487
23488 \begin_inset Quotes eld
23489 \end_inset
23490
23491
23492 \family typewriter
23493 parselog=$$s/scripts/listerrors
23494 \family default
23495
23496 \begin_inset Quotes erd
23497 \end_inset
23498
23499 .
23500 \begin_inset Newline newline
23501 \end_inset
23502
23503 This will run any errors that are generated by the 
23504 \begin_inset Quotes eld
23505 \end_inset
23506
23507 build-script
23508 \begin_inset Quotes erd
23509 \end_inset
23510
23511  process through the 
23512 \begin_inset Quotes eld
23513 \end_inset
23514
23515 listerrors
23516 \begin_inset Quotes erd
23517 \end_inset
23518
23519  program.
23520 \end_layout
23521
23522 \begin_layout Standard
23523 The build will normally take place in \SpecialChar LyX
23524 's temporary directory, so the files
23525  produced by the conversion will be in that directory.
23526  \SpecialChar LyX
23527  will copy out what it regards as the `main' file, but the 
23528 \family typewriter
23529 Noweb->Program
23530 \family default
23531  conversion may produce several files, and so most of these would then be
23532  deleted when \SpecialChar LyX
23533  was closed.
23534  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23535  the build-script chunk can place the generated files in that location.
23536 \end_layout
23537
23538 \begin_layout Paragraph
23539 Build instructions in the document
23540 \end_layout
23541
23542 \begin_layout Standard
23543 The last piece of the integration between \SpecialChar LyX
23544  and noweb is the 
23545 \begin_inset Quotes eld
23546 \end_inset
23547
23548 build-script
23549 \begin_inset Quotes erd
23550 \end_inset
23551
23552  chunk.
23553  Generally, the instructions for building your program should be embedded
23554  in a chunk of its own.
23555  The noweb-specific 
23556 \begin_inset Quotes eld
23557 \end_inset
23558
23559 build-script
23560 \begin_inset Quotes erd
23561 \end_inset
23562
23563  above uses the notangle command to look for this chunk (called 
23564 \begin_inset Quotes eld
23565 \end_inset
23566
23567 build-script
23568 \begin_inset Quotes erd
23569 \end_inset
23570
23571 ) and runs its contents through 
23572 \begin_inset Quotes eld
23573 \end_inset
23574
23575 sh
23576 \begin_inset Quotes erd
23577 \end_inset
23578
23579 .
23580 \end_layout
23581
23582 \begin_layout Standard
23583 Typically, such a chunk would look something like this:
23584 \end_layout
23585
23586 \begin_layout LyX-Code
23587 <<build-script>>=
23588 \end_layout
23589
23590 \begin_layout LyX-Code
23591 #!/bin/sh
23592 \begin_inset Newline newline
23593 \end_inset
23594
23595 if [ -z "${NOWEB_SOURCE}" ]
23596 \begin_inset Newline newline
23597 \end_inset
23598
23599 then
23600 \end_layout
23601
23602 \begin_layout LyX-Code
23603 NOWEB_SOURCE=myfile.nw
23604 \begin_inset Newline newline
23605 \end_inset
23606
23607 fi
23608 \begin_inset Newline newline
23609 \end_inset
23610
23611 [...
23612  code to extract files ...
23613  use NOWEB_OUTPUT_DIR here ...]
23614 \begin_inset Newline newline
23615 \end_inset
23616
23617 [...
23618  code to compile files ...]
23619 \begin_inset Newline newline
23620 \end_inset
23621
23622 @
23623 \end_layout
23624
23625 \begin_layout Standard
23626 Look in 
23627 \emph on
23628 LIBDIR/examples/listerrors.lyx
23629 \emph default
23630  or in 
23631 \emph on
23632 LIBDIR/examples/Literate.lyx
23633 \emph default
23634  which implement two versions of the 
23635 \begin_inset Quotes eld
23636 \end_inset
23637
23638 listerrors
23639 \begin_inset Quotes erd
23640 \end_inset
23641
23642  program for some illustrations of how all of these pieces go together or
23643  in 
23644 \emph on
23645 LIBDIR/examples/noweb2lyx.lyx.
23646
23647 \emph default
23648  Interestingly, these three files show off the language-indepence of the
23649  \SpecialChar LyX
23650  literate programming support since they are written in Python, C and Perl
23651  respectively.
23652 \end_layout
23653
23654 \begin_layout Subsubsection
23655 Configuring \SpecialChar LyX
23656
23657 \end_layout
23658
23659 \begin_layout Standard
23660 All the Literate Programming support is configured by the 
23661 \family sans
23662 Tools\SpecialChar menuseparator
23663 Preferences
23664 \family default
23665  panel in the 
23666 \begin_inset Quotes eld
23667 \end_inset
23668
23669 File Handling
23670 \begin_inset Quotes erd
23671 \end_inset
23672
23673  tab.
23674  The important parts are:
23675 \end_layout
23676
23677 \begin_layout Description
23678 the
23679 \begin_inset space ~
23680 \end_inset
23681
23682
23683 \begin_inset Quotes eld
23684 \end_inset
23685
23686 NoWeb
23687 \begin_inset Quotes erd
23688 \end_inset
23689
23690
23691 \begin_inset space ~
23692 \end_inset
23693
23694 format Set up via the File Formats tab, this is where the Noweb-specific
23695  pieces are set up.
23696  The 
23697 \family sans
23698 GUI Name
23699 \family default
23700  is set to 
23701 \family typewriter
23702 NoWeb
23703 \family default
23704 , the file extension is set to 
23705 \family typewriter
23706 .nw
23707 \family default
23708 .
23709  This tells \SpecialChar LyX
23710  to create a file with a 
23711 \family typewriter
23712 .nw
23713 \family default
23714  extension in the first step of the conversion process.
23715 \end_layout
23716
23717 \begin_layout Description
23718 the
23719 \begin_inset space ~
23720 \end_inset
23721
23722
23723 \family sans
23724 Program
23725 \family default
23726
23727 \begin_inset space ~
23728 \end_inset
23729
23730 format This is an empty format whose sole purpose is to be the endpoint
23731  of a conversion (which then allows us to set up a converter for it).
23732 \end_layout
23733
23734 \begin_layout Description
23735
23736 \family sans
23737 NoWeb
23738 \family default
23739 ->
23740 \family sans
23741 \SpecialChar LaTeX
23742
23743 \family default
23744  This converter performs the 
23745 \begin_inset Quotes eld
23746 \end_inset
23747
23748 weaving
23749 \begin_inset Quotes erd
23750 \end_inset
23751
23752  of the literate document.
23753  For Noweb, it is set to 
23754 \begin_inset Quotes eld
23755 \end_inset
23756
23757
23758 \family typewriter
23759 noweave -delay -index $$i > $$o
23760 \family default
23761
23762 \begin_inset Quotes erd
23763 \end_inset
23764
23765
23766 \end_layout
23767
23768 \begin_layout Description
23769
23770 \family sans
23771 NoWeb
23772 \family default
23773 ->
23774 \family sans
23775 Program
23776 \family default
23777  This performs the 
23778 \begin_inset Quotes eld
23779 \end_inset
23780
23781 tangling step
23782 \begin_inset Quotes erd
23783 \end_inset
23784
23785 .
23786  As stated above, the Converter is set to 
23787 \begin_inset Quotes eld
23788 \end_inset
23789
23790
23791 \family typewriter
23792 build-script $$i
23793 \family default
23794  $$r
23795 \begin_inset Quotes erd
23796 \end_inset
23797
23798 , with Flags set to
23799 \begin_inset Newline newline
23800 \end_inset
23801
23802
23803 \begin_inset Quotes eld
23804 \end_inset
23805
23806
23807 \family typewriter
23808 parselog=$$s/scripts/listerrors
23809 \family default
23810
23811 \begin_inset Quotes erd
23812 \end_inset
23813
23814 .
23815 \end_layout
23816
23817 \begin_layout Subsubsection
23818 Debug extensions
23819 \end_layout
23820
23821 \begin_layout Standard
23822 There is also a new function implemented in the \SpecialChar LyX
23823  server, the 
23824 \begin_inset Quotes eld
23825 \end_inset
23826
23827 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
23828  
23829 \end_layout
23830
23831 \begin_layout Standard
23832 When debugging code with ddd/gdb, it is possible to invoke a text editor
23833  at the current execution position with a single key stroke.
23834  The default ddd configuration for that is shift-ctrl-V.
23835  It happens that you can define the editor command line invocation in ddd
23836  by accessing the 
23837 \family sans
23838 Edit\SpecialChar menuseparator
23839 Preferences\SpecialChar menuseparator
23840 Helpers
23841 \family default
23842  dialog and changing the "Edit Sources" entry.
23843 \end_layout
23844
23845 \begin_layout Standard
23846 I take advantage of the newly created \SpecialChar LyX
23847  server function and this ddd feature,
23848  and set 
23849 \begin_inset Quotes eld
23850 \end_inset
23851
23852 Edit Sources
23853 \begin_inset Quotes erd
23854 \end_inset
23855
23856  to:
23857 \end_layout
23858
23859 \begin_layout Standard
23860 \begin_inset VSpace defskip
23861 \end_inset
23862
23863
23864 \end_layout
23865
23866 \begin_layout Standard
23867
23868 \family sans
23869 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
23870 \end_layout
23871
23872 \begin_layout Standard
23873 \begin_inset VSpace defskip
23874 \end_inset
23875
23876
23877 \end_layout
23878
23879 \begin_layout Standard
23880 With this, whenever you are using ddd and find a point in the program that
23881  you want to edit, you just press shift-ctrl-V (in the ddd window), and
23882  ddd will forward this information to \SpecialChar LyX
23883  through the \SpecialChar LyX
23884  server and then the
23885  \SpecialChar LyX
23886  window will show the same file with the cursor at the same position ddd
23887  was pointing to.
23888  No more guessing or long scrolling to locate a point in the program back
23889  from debugging !
23890 \end_layout
23891
23892 \begin_layout Standard
23893 Note however that you must enable the \SpecialChar LyX
23894  server to get this feature working
23895  (it is disabled by default).
23896  You can enable it in 
23897 \family sans
23898 Preferences
23899 \family default
23900  (tabs 
23901 \family sans
23902 Inputs
23903 \family default
23904
23905 \family sans
23906 Paths
23907 \family default
23908 ) by entering in the 
23909 \family sans
23910 \SpecialChar LyX
23911 server pipe
23912 \family default
23913  a path like 
23914 \begin_inset Quotes eld
23915 \end_inset
23916
23917
23918 \family typewriter
23919 /home/<your-home-directory>/.lyx/lyxpipe
23920 \family default
23921
23922 \begin_inset Quotes erd
23923 \end_inset
23924
23925
23926 \end_layout
23927
23928 \begin_layout Standard
23929 Read the \SpecialChar LyX
23930  server documentation in the 
23931 \emph on
23932 Customization Manual
23933 \emph default
23934  for further information.
23935 \end_layout
23936
23937 \begin_layout Subsubsection
23938 Toolbar extensions
23939 \end_layout
23940
23941 \begin_layout Standard
23942 There are six new buttons that can be added to your \SpecialChar LyX
23943  toolbar.
23944  Five of these buttons are short cuts to layout styles: 
23945 \family sans
23946 Standard
23947 \family default
23948
23949 \family sans
23950 Section
23951 \family default
23952
23953 \family sans
23954 \SpecialChar LaTeX
23955
23956 \family default
23957
23958 \family sans
23959 \SpecialChar LyX
23960 -Code
23961 \family default
23962 , and 
23963 \family sans
23964 Chunk
23965 \family default
23966 .
23967  The last one is a short cut to the 
23968 \begin_inset Quotes eld
23969 \end_inset
23970
23971 Build Program
23972 \begin_inset Quotes erd
23973 \end_inset
23974
23975  File menu entry.
23976  
23977 \end_layout
23978
23979 \begin_layout Standard
23980 \SpecialChar LyX
23981  has a range of buttons that are available for tool bar customization.
23982  In my toolbar I like to combine the six short cuts above with two more:
23983  One for 
23984 \family sans
23985 Document
23986 \family default
23987 \SpecialChar menuseparator
23988
23989 \family sans
23990 Update
23991 \family default
23992 \SpecialChar menuseparator
23993
23994 \family sans
23995 DVI
23996 \family default
23997  and the other for 
23998 \family sans
23999 Document\SpecialChar menuseparator
24000 View\SpecialChar menuseparator
24001 DVI
24002 \family default
24003  File menu entries.
24004  Here is how it looks like:
24005 \end_layout
24006
24007 \begin_layout LyX-Code
24008 Toolbar
24009 \end_layout
24010
24011 \begin_layout LyX-Code
24012   Layouts
24013 \end_layout
24014
24015 \begin_layout LyX-Code
24016   Icon "layout Standard"
24017 \end_layout
24018
24019 \begin_layout LyX-Code
24020   Icon "layout Section"
24021 \end_layout
24022
24023 \begin_layout LyX-Code
24024   Icon "layout \SpecialChar LaTeX
24025 "
24026 \end_layout
24027
24028 \begin_layout LyX-Code
24029   Icon "layout \SpecialChar LyX
24030 -Code"
24031 \end_layout
24032
24033 \begin_layout LyX-Code
24034   Icon "layout Chunk"
24035 \end_layout
24036
24037 \begin_layout LyX-Code
24038   Separator
24039 \end_layout
24040
24041 \begin_layout LyX-Code
24042   Icon "buffer-view"
24043 \end_layout
24044
24045 \begin_layout LyX-Code
24046   Icon "buffer-typeset"
24047 \end_layout
24048
24049 \begin_layout LyX-Code
24050   Icon "build-program"
24051 \end_layout
24052
24053 \begin_layout LyX-Code
24054   Separator
24055 \end_layout
24056
24057 \begin_layout LyX-Code
24058 .
24059 \end_layout
24060
24061 \begin_layout LyX-Code
24062 .
24063 \end_layout
24064
24065 \begin_layout LyX-Code
24066 .
24067 \end_layout
24068
24069 \begin_layout LyX-Code
24070 End
24071 \end_layout
24072
24073 \begin_layout Subsubsection
24074 Colors customization
24075 \end_layout
24076
24077 \begin_layout Standard
24078 There are a number of colors in \SpecialChar LyX
24079  that can be customized in 
24080 \family sans
24081 Preferences
24082 \family default
24083 .
24084  One of the things that bothers people is the \SpecialChar LaTeX
24085  font color.
24086  The default color is red, since the chunks uses \SpecialChar LaTeX
24087  font, and there is a lot
24088  of chunks in literate documents, you may get tired of seeing everything
24089  in red.
24090  You can change it by going to the tabs 
24091 \family sans
24092 Look&Feel
24093 \family default
24094
24095 \family sans
24096 Colors.
24097 \end_layout
24098
24099 \begin_layout Standard
24100 The next thing is the visible presence of the newline character in the screen.
24101  You can choose the color of this particular character and make it blend
24102  in the background.
24103  I recommend you choosing a color that is close to the background but not
24104  equal, that way you still can see it is there, but it is not bothering
24105  you anymore.
24106 \end_layout
24107
24108 \begin_layout Subsection
24109 \SpecialChar LyX
24110  and knitr/Sweave
24111 \end_layout
24112
24113 \begin_layout Standard
24114 Support for 
24115 \family sans
24116 knitr
24117 \family default
24118  and 
24119 \family sans
24120 Sweave
24121 \family default
24122  is documented in the 
24123 \emph on
24124 knitr.lyx
24125 \emph default
24126  example file and in the Sweave manual (menu 
24127 \family sans
24128 Help\SpecialChar menuseparator
24129 Specific Manuals
24130 \family default
24131 ).
24132 \end_layout
24133
24134 \begin_layout Chapter
24135 Special features
24136 \end_layout
24137
24138 \begin_layout Standard
24139 You can do everything with \SpecialChar LyX
24140  that you can do with \SpecialChar LaTeX
24141 .
24142  However, \SpecialChar LyX
24143  cannot support every \SpecialChar LaTeX
24144  feature directly.
24145  But you can always use \SpecialChar TeX
24146  Code.
24147  This chapter shows you some more special things you might want to use.
24148  For other special things you can do with figures, tables, floats, boxes
24149  and notes, have a look at the 
24150 \emph on
24151 Embedded
24152 \begin_inset space ~
24153 \end_inset
24154
24155 Objects
24156 \emph default
24157  manual.
24158 \end_layout
24159
24160 \begin_layout Section
24161 Multiple Text Columns
24162 \end_layout
24163
24164 \begin_layout Standard
24165 This feature is independent of the option 
24166 \family sans
24167 Two-column document
24168 \family default
24169  in the document settings under 
24170 \family sans
24171 Text Layout
24172 \family default
24173 .
24174  If you want to have 2
24175 \begin_inset space ~
24176 \end_inset
24177
24178 columns for the whole document, it is recommended to use the 
24179 \family sans
24180 Two-column document
24181 \family default
24182  option.
24183  For all other cases use this feature.
24184 \end_layout
24185
24186 \begin_layout Standard
24187 To use multiple text columns in your document, you have to load the module
24188  
24189 \family sans
24190 Multiple Columns
24191 \family default
24192  (menu 
24193 \family sans
24194 Document\SpecialChar menuseparator
24195 Settings\SpecialChar menuseparator
24196 Modules
24197 \family default
24198 ) and must have the \SpecialChar LaTeX
24199 -package 
24200 \series bold
24201 multicol
24202 \series default
24203  installed.
24204 \end_layout
24205
24206 \begin_layout Standard
24207 Footnotes within multiple columns will be placed at the bottom of the page
24208  and not under each column.
24209  Within the different columns you can use everything, with the limitation
24210  that for floats you need to use the float option 
24211 \family sans
24212 Span columns
24213 \family default
24214 .
24215 \end_layout
24216
24217 \begin_layout Subsection
24218 Basics
24219 \end_layout
24220
24221 \begin_layout Standard
24222 If you want to have 2
24223 \begin_inset space ~
24224 \end_inset
24225
24226 columns in your text, insert a multicolumn inset via the menu 
24227 \family sans
24228 Insert\SpecialChar menuseparator
24229 Custom
24230 \begin_inset space ~
24231 \end_inset
24232
24233 Insets\SpecialChar menuseparator
24234 Multiple
24235 \begin_inset space ~
24236 \end_inset
24237
24238 Columns
24239 \family default
24240  where the columns should start.
24241  Write all text that should be printed in 2
24242 \begin_inset space ~
24243 \end_inset
24244
24245 columns into this inset.
24246 \end_layout
24247
24248 \begin_layout Standard
24249 Here is an example:
24250 \end_layout
24251
24252 \begin_layout Standard
24253 \noindent
24254 \begin_inset Flex Multiple Columns
24255 status open
24256
24257 \begin_layout Plain Layout
24258 \noindent
24259
24260 \series bold
24261 \size small
24262 The Adventure of the Empty House
24263 \series default
24264
24265 \begin_inset Newline newline
24266 \end_inset
24267
24268 by Sir Arthur Conan Doyle
24269 \end_layout
24270
24271 \begin_layout Plain Layout
24272
24273 \size small
24274 It was in the spring of the year 1894 that all London was interested, and
24275  the fashionable world dismayed, by the murder of the Honourable Ronald
24276  Adair under most unusual and inexplicable circumstances.
24277  The public has already learned those particulars of the crime which came
24278  out in the police investigation, but a good deal was suppressed upon that
24279  occasion, since the case for the prosecution was so overwhelmingly strong
24280  that it was not necessary to bring forward all the facts.
24281  Only now, at the end of nearly ten years, am I allowed to supply those
24282  missing links which make up the whole of that remarkable chain.
24283  The crime was of interest in itself, but that interest was as nothing to
24284  me compared to the inconceivable sequel, which afforded me the greatest
24285  shock and surprise of any event in my adventurous life.
24286  Even now, after this long interval, I find myself thrilling as I think
24287  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24288 ty which utterly submerged my mind.
24289  Let me say to that public, which has shown some interest in those glimpses
24290  which I have occasionally given them of the thoughts and actions of a very
24291  remarkable man, that they are not to blame me if I have not shared my knowledge
24292  with them, for I should have considered it my first duty to do so, had
24293  I not been barred by a positive prohibition from his own lips, which was
24294  only withdrawn upon the third of last month.
24295 \end_layout
24296
24297 \end_inset
24298
24299
24300 \end_layout
24301
24302 \begin_layout Standard
24303 To get 3 or more columns, set the cursor into the multicolumn inset and
24304  use the menu 
24305 \family sans
24306 Insert\SpecialChar menuseparator
24307 Number
24308 \begin_inset space ~
24309 \end_inset
24310
24311 of
24312 \begin_inset space ~
24313 \end_inset
24314
24315 Columns
24316 \family default
24317 .
24318  The number of the desired columns is written into that inset (for 3
24319 \begin_inset space ~
24320 \end_inset
24321
24322 columns write 
24323 \begin_inset Quotes eld
24324 \end_inset
24325
24326 3
24327 \begin_inset Quotes erd
24328 \end_inset
24329
24330 ).
24331 \begin_inset Newline newline
24332 \end_inset
24333
24334 Here is an example with 3
24335 \begin_inset space ~
24336 \end_inset
24337
24338 columns:
24339 \end_layout
24340
24341 \begin_layout Standard
24342 \begin_inset Flex Multiple Columns
24343 status open
24344
24345 \begin_layout Plain Layout
24346
24347 \size footnotesize
24348 \begin_inset Argument 1
24349 status open
24350
24351 \begin_layout Plain Layout
24352 3
24353 \end_layout
24354
24355 \end_inset
24356
24357 It can be imagined that my close intimacy with Sherlock Holmes had interested
24358  me deeply in crime, and that after his disappearance I never failed to
24359  read with care the various problems which came before the public.
24360  And I even attempted, more than once, for my own private satisfaction,
24361  to employ his methods in their solution, though with indifferent success.
24362  There was none, however, which appealed to me like this tragedy of Ronald
24363  Adair.
24364  As I read the evidence at the inquest, which led up to a verdict of willful
24365  murder against some person or persons unknown, I realized more clearly
24366  than I had ever done the loss which the community had sustained by the
24367  death of Sherlock Holmes.
24368  There were points about this strange business which would, I was sure,
24369  have specially appealed to him, and the efforts of the police would have
24370  been supplemented, or more probably anticipated, by the trained observation
24371  and the alert mind of the first criminal agent in Europe.
24372  All day, as I drove upon my round, I turned over the case in my mind and
24373  found no explanation which appeared to me to be adequate.
24374  At the risk of telling a twice-told tale, I will recapitulate the facts
24375  as they were known to the public at the conclusion of the inquest.
24376 \end_layout
24377
24378 \end_inset
24379
24380
24381 \end_layout
24382
24383 \begin_layout Standard
24384 You can have up to 10
24385 \begin_inset space ~
24386 \end_inset
24387
24388 columns if you want to, but that might not be very pleasant for the readers
24389  of your document.
24390 \end_layout
24391
24392 \begin_layout Standard
24393 \begin_inset Newpage newpage
24394 \end_inset
24395
24396
24397 \end_layout
24398
24399 \begin_layout Subsection
24400 Columns inside Columns
24401 \end_layout
24402
24403 \begin_layout Standard
24404 You can also have columns inside columns:
24405 \end_layout
24406
24407 \begin_layout Standard
24408 \begin_inset Flex Multiple Columns
24409 status open
24410
24411 \begin_layout Plain Layout
24412
24413 \size footnotesize
24414 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24415  at that time governor of one of the Australian colonies.
24416  Adair's mother had returned from Australia to undergo the operation for
24417  cataract, and she, her son Ronald, and her daughter Hilda were living together
24418  at 427 Park Lane.
24419 \end_layout
24420
24421 \begin_layout Plain Layout
24422 \begin_inset Flex Multiple Columns
24423 status open
24424
24425 \begin_layout Plain Layout
24426
24427 \size footnotesize
24428 The youth moved in the best society–had, so far as was known, no enemies
24429  and no particular vices.
24430  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24431  had been broken off by mutual consent some months before, and there was
24432  no sign that it had left any very profound feeling behind it.
24433  For the rest {sic} the man's life moved in a narrow and conventional circle,
24434  for his habits were quiet and his nature unemotional.
24435  Yet it was upon this easy-going young aristocrat that death came, in most
24436  strange and unexpected form, between the hours of ten and eleven-twenty
24437  on the night of March 30, 1894.
24438 \end_layout
24439
24440 \end_inset
24441
24442
24443 \end_layout
24444
24445 \begin_layout Plain Layout
24446
24447 \size footnotesize
24448 Ronald Adair was fond of cards–playing continually, but never for such stakes
24449  as would hurt him.
24450  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24451  It was shown that, after dinner on the day of his death, he had played
24452  a rubber of whist at the latter club.
24453  He had also played there in the afternoon.
24454
24455 \size default
24456  
24457 \size footnotesize
24458 The evidence of those who had played with him– Mr.
24459  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24460  and that there was a fairly equal fall of the cards.
24461  Adair might have lost five pounds, but not more.
24462  His fortune was a considerable one, and such a loss could not in any way
24463  affect him.
24464  He had played nearly every day at one club or other, but he was a cautious
24465  player, and usually rose a winner.
24466  It came out in evidence that, in partnership with Colonel Moran, he had
24467  actually won as much as four hundred and twenty pounds in a sitting, some
24468  weeks before, from Godfrey Milner and Lord Balmoral.
24469  So much for his recent history as it came out at the inquest.
24470 \end_layout
24471
24472 \end_inset
24473
24474
24475 \end_layout
24476
24477 \begin_layout Subsection
24478 Advanced Examples
24479 \end_layout
24480
24481 \begin_layout Standard
24482 The examples in this section show some more special features of multiple
24483  columns.
24484 \end_layout
24485
24486 \begin_layout Standard
24487 For more features of multiple columns, have a look at the documentation
24488  of the \SpecialChar LaTeX
24489 -package 
24490 \series bold
24491 multicol
24492 \series default
24493
24494 \begin_inset CommandInset citation
24495 LatexCommand cite
24496 key "multicol"
24497
24498 \end_inset
24499
24500 .
24501 \end_layout
24502
24503 \begin_layout Subsubsection
24504 Preface
24505 \end_layout
24506
24507 \begin_layout Standard
24508 To add a preface text for multiple columns, set the cursor into the multicolumn
24509  inset and use the menu 
24510 \family sans
24511 Insert\SpecialChar menuseparator
24512 Preface
24513 \family default
24514 .
24515  Write your preface text into that inset.
24516 \begin_inset Newline newline
24517 \end_inset
24518
24519 This is an example with some preface text:
24520 \end_layout
24521
24522 \begin_layout Standard
24523 \begin_inset VSpace bigskip
24524 \end_inset
24525
24526
24527 \end_layout
24528
24529 \begin_layout Standard
24530 \begin_inset Flex Multiple Columns
24531 status open
24532
24533 \begin_layout Plain Layout
24534 \begin_inset Argument 2
24535 status open
24536
24537 \begin_layout Plain Layout
24538 And the story continues and continues and continues and continues\SpecialChar ldots
24539
24540 \end_layout
24541
24542 \end_inset
24543
24544
24545 \size small
24546 On the evening of the crime, he returned from the club exactly at ten.
24547  His mother and sister were out spending the evening with a relation.
24548  The servant deposed that she heard him enter the front room on the second
24549  floor, generally used as his sitting-room.
24550  She had lit a fire there, and as it smoked she had opened the window.
24551  No sound was heard from the room until eleven-twenty, the hour of the return
24552  of Lady Maynooth and her daughter.
24553  Desiring to say good-night, she attempted to enter her son's room.
24554  The door was locked on the inside, and no answer could be got to their
24555  cries and knocking.
24556  Help was obtained, and the door forced.
24557  The unfortunate young man was found lying near the table.
24558  His head had been horribly mutilated by an expanding revolver bullet, but
24559  no weapon of any sort was to be found in the room.
24560 \end_layout
24561
24562 \end_inset
24563
24564
24565 \end_layout
24566
24567 \begin_layout Standard
24568 You can also use a section heading as the preface if you use a section command
24569  as \SpecialChar TeX
24570  Code.
24571  For example the command
24572 \end_layout
24573
24574 \begin_layout Standard
24575
24576 \series bold
24577
24578 \backslash
24579 subsection{subsection title}
24580 \end_layout
24581
24582 \begin_layout Standard
24583 creates a subsection.
24584  In this example the preface is a subsubsection:
24585 \end_layout
24586
24587 \begin_layout Standard
24588 \begin_inset Flex Multiple Columns
24589 status open
24590
24591 \begin_layout Plain Layout
24592 \begin_inset Argument 2
24593 status open
24594
24595 \begin_layout Plain Layout
24596 \begin_inset ERT
24597 status collapsed
24598
24599 \begin_layout Plain Layout
24600
24601
24602 \backslash
24603 subsubsection{
24604 \end_layout
24605
24606 \end_inset
24607
24608 This is a subsubsection heading as a preface
24609 \begin_inset ERT
24610 status collapsed
24611
24612 \begin_layout Plain Layout
24613
24614 }
24615 \end_layout
24616
24617 \end_inset
24618
24619
24620 \end_layout
24621
24622 \end_inset
24623
24624
24625 \size small
24626 A minute examination of the circumstances served only to make the case more
24627  complex.
24628  In the first place, no reason could be given why the young man should have
24629  fastened the door upon the inside.
24630  There was the possibility that the murderer had done this, and had afterwards
24631  escaped by the window.
24632  The drop was at least twenty feet, however, and a bed of crocuses in full
24633  bloom lay beneath.
24634  Neither the flowers nor the earth showed any sign of having been disturbed,
24635  nor were there any marks upon the narrow strip of grass which separated
24636  the house from the road.
24637  Apparently, therefore, it was the young man himself who had fastened the
24638  door.
24639  But how did he come by his death? No one could have climbed up to the window
24640  without leaving traces.
24641  Suppose a man had fired through the window, he would indeed be a remarkable
24642  shot who could with a revolver inflict so deadly a wound.
24643  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24644  a hundred yards of the house.
24645  No one had heard a shot.
24646 \end_layout
24647
24648 \end_inset
24649
24650
24651 \end_layout
24652
24653 \begin_layout Standard
24654 If there is less vertical space than 6
24655 \begin_inset space ~
24656 \end_inset
24657
24658 text lines is left on the page at the beginning of the multiple columns,
24659  a page break will be inserted before the multiple columns.
24660  Depending on the number of lines of the preface text, you might want to
24661  change this space.
24662  This is done by setting the cursor into the mulitcolumn inset behind the
24663  preface (if there is any) and using the menu 
24664 \family sans
24665 Insert\SpecialChar menuseparator
24666 Space
24667 \begin_inset space ~
24668 \end_inset
24669
24670 Before
24671 \begin_inset space ~
24672 \end_inset
24673
24674 Page
24675 \begin_inset space ~
24676 \end_inset
24677
24678 Break
24679 \family default
24680 .
24681  Insert into that inset the amount of space like e.
24682 \begin_inset space \thinspace{}
24683 \end_inset
24684
24685 g.
24686 \begin_inset space \space{}
24687 \end_inset
24688
24689
24690 \begin_inset Quotes eld
24691 \end_inset
24692
24693 5cm
24694 \begin_inset Quotes erd
24695 \end_inset
24696
24697 .
24698 \begin_inset Newline newline
24699 \end_inset
24700
24701 In this example the space is set to 7
24702 \begin_inset space ~
24703 \end_inset
24704
24705 text lines by using 
24706 \begin_inset Quotes eld
24707 \end_inset
24708
24709 7
24710 \backslash
24711 baselineskip
24712 \begin_inset Quotes erd
24713 \end_inset
24714
24715  (where the command 
24716 \series bold
24717
24718 \backslash
24719 baselineskip
24720 \series default
24721  needs to be inserted as \SpecialChar TeX
24722  code):
24723 \end_layout
24724
24725 \begin_layout Standard
24726 \begin_inset Flex Multiple Columns
24727 status open
24728
24729 \begin_layout Plain Layout
24730 \begin_inset Argument 3
24731 status open
24732
24733 \begin_layout Plain Layout
24734 7
24735 \begin_inset ERT
24736 status collapsed
24737
24738 \begin_layout Plain Layout
24739
24740
24741 \backslash
24742 baselineskip
24743 \end_layout
24744
24745 \end_inset
24746
24747
24748 \end_layout
24749
24750 \end_inset
24751
24752
24753 \size small
24754 On the evening of the crime, he returned from the club exactly at ten.
24755  His mother and sister were out spending the evening with a relation.
24756  The servant deposed that she heard him enter the front room on the second
24757  floor, generally used as his sitting-room.
24758  She had lit a fire there, and as it smoked she had opened the window.
24759  No sound was heard from the room until eleven-twenty, the hour of the return
24760  of Lady Maynooth and her daughter.
24761  Desiring to say good-night, she attempted to enter her son's room.
24762  The door was locked on the inside, and no answer could be got to their
24763  cries and knocking.
24764  Help was obtained, and the door forced.
24765  The unfortunate young man was found lying near the table.
24766  His head had been horribly mutilated by an expanding revolver bullet, but
24767  no weapon of any sort was to be found in the room.
24768 \end_layout
24769
24770 \end_inset
24771
24772
24773 \end_layout
24774
24775 \begin_layout Subsubsection
24776 Surrounding Space
24777 \end_layout
24778
24779 \begin_layout Standard
24780 The amount of space before and after multiple columns can be changed by
24781  changing the length 
24782 \series bold
24783
24784 \backslash
24785 multicolsep
24786 \series default
24787 .
24788  For example the command
24789 \end_layout
24790
24791 \begin_layout Standard
24792
24793 \series bold
24794
24795 \backslash
24796 setlength{
24797 \backslash
24798 multicolsep}{3cm}
24799 \end_layout
24800
24801 \begin_layout Standard
24802 in \SpecialChar TeX
24803  Code changes its value to 3
24804 \begin_inset space \thinspace{}
24805 \end_inset
24806
24807 cm.
24808  The change must be made before the multiple columns' start.
24809  The predefined value is 13
24810 \begin_inset space \thinspace{}
24811 \end_inset
24812
24813 pt.
24814 \end_layout
24815
24816 \begin_layout Standard
24817 For this example 
24818 \series bold
24819
24820 \backslash
24821 multicolsep
24822 \series default
24823  was set to 2.5
24824 \begin_inset space \thinspace{}
24825 \end_inset
24826
24827 cm:
24828 \end_layout
24829
24830 \begin_layout Standard
24831 \begin_inset ERT
24832 status open
24833
24834 \begin_layout Plain Layout
24835
24836
24837 \backslash
24838 setlength{
24839 \backslash
24840 multicolsep}{2.5cm}
24841 \end_layout
24842
24843 \end_inset
24844
24845
24846 \end_layout
24847
24848 \begin_layout Standard
24849 \begin_inset Flex Multiple Columns
24850 status open
24851
24852 \begin_layout Plain Layout
24853
24854 \size small
24855 All day I turned these facts over in my mind, endeavouring to hit upon some
24856  theory which could reconcile them all, and to find that line of least resistanc
24857 e which my poor friend had declared to be the starting-point of every investigat
24858 ion.
24859  I confess that I made little progress.
24860  In the evening I strolled across the Park, and found myself about six o'clock
24861  at the Oxford Street end of Park Lane.
24862  A group of loafers upon the pavements, all staring up at a particular window,
24863  directed me to the house which I had come to see.
24864  A tall, thin man with coloured glasses, whom I strongly suspected of being
24865  a plain-clothes detective, was pointing out some theory of his own, while
24866  the others crowded round to listen to what he said.
24867  I got as near him as I could, but his observations seemed to me to be absurd,
24868  so I withdrew again in some disgust.
24869  As I did so I struck against an elderly, deformed man, who had been behind
24870  me, and I knocked down several books which he was carrying.
24871 \end_layout
24872
24873 \end_inset
24874
24875
24876 \end_layout
24877
24878 \begin_layout Standard
24879 \begin_inset Note Greyedout
24880 status open
24881
24882 \begin_layout Plain Layout
24883
24884 \series bold
24885 Note:
24886 \series default
24887  The values you set with 
24888 \series bold
24889
24890 \backslash
24891 setlength
24892 \series default
24893  will be used for all following multiple columns until you change them again.
24894 \end_layout
24895
24896 \end_inset
24897
24898
24899 \end_layout
24900
24901 \begin_layout Standard
24902 \begin_inset ERT
24903 status collapsed
24904
24905 \begin_layout Plain Layout
24906
24907
24908 \backslash
24909 setlength{
24910 \backslash
24911 multicolsep}{13pt}
24912 \end_layout
24913
24914 \end_inset
24915
24916
24917 \begin_inset Note Note
24918 status collapsed
24919
24920 \begin_layout Plain Layout
24921 go back to the default
24922 \end_layout
24923
24924 \end_inset
24925
24926
24927 \end_layout
24928
24929 \begin_layout Standard
24930 \begin_inset Newpage newpage
24931 \end_inset
24932
24933
24934 \end_layout
24935
24936 \begin_layout Subsubsection
24937 Column Breaks
24938 \end_layout
24939
24940 \begin_layout Standard
24941 A column break can be forced by inserting the command 
24942 \series bold
24943
24944 \backslash
24945 columnbreak{}
24946 \series default
24947  as \SpecialChar TeX
24948  Code to that position in the text where the column should be broken.
24949  Note that this leads in most cases to whitespace in the text.
24950 \begin_inset Newline newline
24951 \end_inset
24952
24953 Here is an example:
24954 \end_layout
24955
24956 \begin_layout Standard
24957 \begin_inset Flex Multiple Columns
24958 status open
24959
24960 \begin_layout Plain Layout
24961
24962 \size small
24963 \begin_inset Quotes eld
24964 \end_inset
24965
24966 You're surprised to see me, sir,
24967 \begin_inset Quotes erd
24968 \end_inset
24969
24970  said he, in a strange, croaking voice.
24971 \end_layout
24972
24973 \begin_layout Plain Layout
24974
24975 \size small
24976 I acknowledged that I was.
24977 \end_layout
24978
24979 \begin_layout Plain Layout
24980
24981 \size small
24982 \begin_inset Quotes eld
24983 \end_inset
24984
24985 Well, I've a conscience, sir, and when I chanced to see you go into this
24986  house, as I came hobbling after you, I thought to myself, I'll just step
24987  in and see that kind gentleman, and tell him that if I was a bit gruff
24988  in my manner there was not any harm meant, and that I am much obliged to
24989  him for picking up my books.
24990 \begin_inset Quotes erd
24991 \end_inset
24992
24993
24994 \end_layout
24995
24996 \begin_layout Plain Layout
24997
24998 \size small
24999 \begin_inset Quotes eld
25000 \end_inset
25001
25002 You make too much of a trifle,
25003 \begin_inset Quotes erd
25004 \end_inset
25005
25006  said I.
25007  
25008 \begin_inset Quotes eld
25009 \end_inset
25010
25011 May I ask how you knew who I was?
25012 \begin_inset Quotes erd
25013 \end_inset
25014
25015  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25016 \begin_inset ERT
25017 status collapsed
25018
25019 \begin_layout Plain Layout
25020
25021
25022 \backslash
25023 columnbreak{}
25024 \end_layout
25025
25026 \end_inset
25027
25028
25029 \end_layout
25030
25031 \begin_layout Plain Layout
25032
25033 \size small
25034 \begin_inset Quotes eld
25035 \end_inset
25036
25037 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25038  you'll find my little bookshop at the corner of Church Street, and very
25039  happy to see you, I am sure.
25040  Maybe you collect yourself, sir.
25041  Here's 
25042 \noun on
25043 British
25044 \begin_inset space ~
25045 \end_inset
25046
25047 Birds
25048 \noun default
25049 , and 
25050 \noun on
25051 Catullus
25052 \noun default
25053 , and 
25054 \noun on
25055 The Holy War
25056 \noun default
25057 –a bargain, every one of them.
25058  With five volumes you could just fill that gap on that second shelf.
25059  It looks untidy, does it not, sir?
25060 \begin_inset Quotes erd
25061 \end_inset
25062
25063
25064 \end_layout
25065
25066 \end_inset
25067
25068
25069 \end_layout
25070
25071 \begin_layout Subsubsection
25072 Column Separation
25073 \end_layout
25074
25075 \begin_layout Standard
25076 The width of the columns is automatically calculated, but you can modify
25077  the space between the columns.
25078  This is done by changing the length 
25079 \series bold
25080
25081 \backslash
25082 columnsep
25083 \series default
25084 .
25085  Its predefined value is 10
25086 \begin_inset space \thinspace{}
25087 \end_inset
25088
25089 pt.
25090  Here is an example where 
25091 \series bold
25092
25093 \backslash
25094 columnsep
25095 \series default
25096  is set to 3
25097 \begin_inset space \thinspace{}
25098 \end_inset
25099
25100 cm:
25101 \end_layout
25102
25103 \begin_layout Standard
25104 \begin_inset ERT
25105 status open
25106
25107 \begin_layout Plain Layout
25108
25109
25110 \backslash
25111 setlength{
25112 \backslash
25113 columnsep}{3cm}
25114 \end_layout
25115
25116 \end_inset
25117
25118
25119 \end_layout
25120
25121 \begin_layout Standard
25122 \begin_inset Flex Multiple Columns
25123 status open
25124
25125 \begin_layout Plain Layout
25126
25127 \size small
25128 My observations of No.
25129 \begin_inset space \space{}
25130 \end_inset
25131
25132 427 Park Lane did little to clear up the problem in which I was interested.
25133  The house was separated from the street by a low wall and railing, the
25134  whole not more than five feet high.
25135  It was perfectly easy, therefore, for anyone to get into the garden, but
25136  the window was entirely inaccessible, since there was no water pipe or
25137  anything which could help the most active man to climb it.
25138  More puzzled than ever, I retraced my steps to Kensington.
25139  I had not been in my study five minutes when the maid entered to say that
25140  a person desired to see me.
25141  To my astonishment it was none other than my strange old book collector,
25142  his sharp, wizened face peering out from a frame of white hair, and his
25143  precious volumes, a dozen of them at least, wedged under his right arm.
25144 \end_layout
25145
25146 \end_inset
25147
25148
25149 \end_layout
25150
25151 \begin_layout Standard
25152 \begin_inset ERT
25153 status collapsed
25154
25155 \begin_layout Plain Layout
25156
25157
25158 \backslash
25159 setlength{
25160 \backslash
25161 columnsep}{10pt}
25162 \end_layout
25163
25164 \end_inset
25165
25166
25167 \begin_inset Note Note
25168 status collapsed
25169
25170 \begin_layout Plain Layout
25171 go back to the default
25172 \end_layout
25173
25174 \end_inset
25175
25176
25177 \end_layout
25178
25179 \begin_layout Subsubsection
25180 Vertical Lines
25181 \end_layout
25182
25183 \begin_layout Standard
25184 Between the columns a rule with a width of the length 
25185 \series bold
25186
25187 \backslash
25188 columnseprule
25189 \series default
25190  is placed.
25191  If this rule width is set to 0
25192 \begin_inset space \thinspace{}
25193 \end_inset
25194
25195 pt (this is the default), the rule is suppressed.
25196  In the following example the rule is 2
25197 \begin_inset space \thinspace{}
25198 \end_inset
25199
25200 pt wide:
25201 \end_layout
25202
25203 \begin_layout Standard
25204 \begin_inset ERT
25205 status open
25206
25207 \begin_layout Plain Layout
25208
25209
25210 \backslash
25211 setlength{
25212 \backslash
25213 columnseprule}{2pt}
25214 \end_layout
25215
25216 \end_inset
25217
25218
25219 \end_layout
25220
25221 \begin_layout Standard
25222 \begin_inset Flex Multiple Columns
25223 status open
25224
25225 \begin_layout Plain Layout
25226
25227 \size small
25228 \begin_inset Quotes eld
25229 \end_inset
25230
25231 You're surprised to see me, sir,
25232 \begin_inset Quotes erd
25233 \end_inset
25234
25235  said he, in a strange, croaking voice.
25236 \end_layout
25237
25238 \begin_layout Plain Layout
25239
25240 \size small
25241 I acknowledged that I was.
25242 \end_layout
25243
25244 \begin_layout Plain Layout
25245
25246 \size small
25247 \begin_inset Quotes eld
25248 \end_inset
25249
25250 Well, I've a conscience, sir, and when I chanced to see you go into this
25251  house, as I came hobbling after you, I thought to myself, I'll just step
25252  in and see that kind gentleman, and tell him that if I was a bit gruff
25253  in my manner there was not any harm meant, and that I am much obliged to
25254  him for picking up my books.
25255 \begin_inset Quotes erd
25256 \end_inset
25257
25258
25259 \end_layout
25260
25261 \begin_layout Plain Layout
25262
25263 \size small
25264 \begin_inset Quotes eld
25265 \end_inset
25266
25267 You make too much of a trifle,
25268 \begin_inset Quotes erd
25269 \end_inset
25270
25271  said I.
25272  
25273 \begin_inset Quotes eld
25274 \end_inset
25275
25276 May I ask how you knew who I was?
25277 \begin_inset Quotes erd
25278 \end_inset
25279
25280
25281 \end_layout
25282
25283 \begin_layout Plain Layout
25284
25285 \size small
25286 \begin_inset Quotes eld
25287 \end_inset
25288
25289 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25290  you'll find my little bookshop at the corner of Church Street, and very
25291  happy to see you, I am sure.
25292  Maybe you collect yourself, sir.
25293  Here's 
25294 \noun on
25295 British
25296 \begin_inset space ~
25297 \end_inset
25298
25299 Birds
25300 \noun default
25301 , and 
25302 \noun on
25303 Catullus
25304 \noun default
25305 , and 
25306 \noun on
25307 The Holy War
25308 \noun default
25309 –a bargain, every one of them.
25310  With five volumes you could just fill that gap on that second shelf.
25311  It looks untidy, does it not, sir?
25312 \begin_inset Quotes erd
25313 \end_inset
25314
25315
25316 \end_layout
25317
25318 \end_inset
25319
25320
25321 \end_layout
25322
25323 \begin_layout Standard
25324 \begin_inset VSpace defskip
25325 \end_inset
25326
25327
25328 \end_layout
25329
25330 \begin_layout Standard
25331 The rule can be colored by redefining the command 
25332 \series bold
25333
25334 \backslash
25335 columnseprulecolor
25336 \series default
25337 .
25338  This is done by inserting the command
25339 \begin_inset Newline newline
25340 \end_inset
25341
25342
25343 \series bold
25344
25345 \backslash
25346 renewcommand{
25347 \backslash
25348 columnseprulecolor}{
25349 \backslash
25350 color{red}}
25351 \series default
25352
25353 \begin_inset Newline newline
25354 \end_inset
25355
25356 as \SpecialChar TeX
25357  Code before the multicolumn inset.
25358  Replace 
25359 \series bold
25360 red
25361 \series default
25362  in this command by a color of your choice.
25363  You can use all pre- and self-defined colors.
25364  See the 
25365 \emph on
25366 EmbeddedObjects
25367 \emph default
25368  manual, section 
25369 \emph on
25370 Colored
25371 \begin_inset space ~
25372 \end_inset
25373
25374 Tables
25375 \emph default
25376  for more information about pre- and self-defined colors.
25377  To go back to the default color insert the command
25378 \begin_inset Newline newline
25379 \end_inset
25380
25381
25382 \series bold
25383
25384 \backslash
25385 renewcommand{
25386 \backslash
25387 columnseprulecolor}{
25388 \backslash
25389 normalcolor}
25390 \series default
25391
25392 \begin_inset Newline newline
25393 \end_inset
25394
25395 Here is the example with a cyan rule and 1
25396 \begin_inset space \thinspace{}
25397 \end_inset
25398
25399 cm column separation:
25400 \end_layout
25401
25402 \begin_layout Standard
25403 \begin_inset ERT
25404 status open
25405
25406 \begin_layout Plain Layout
25407
25408
25409 \backslash
25410 setlength{
25411 \backslash
25412 columnsep}{1cm}
25413 \end_layout
25414
25415 \begin_layout Plain Layout
25416
25417
25418 \backslash
25419 renewcommand{
25420 \backslash
25421 columnseprulecolor}{
25422 \backslash
25423 color{cyan}}
25424 \end_layout
25425
25426 \end_inset
25427
25428
25429 \end_layout
25430
25431 \begin_layout Standard
25432 \begin_inset Flex Multiple Columns
25433 status open
25434
25435 \begin_layout Plain Layout
25436
25437 \size small
25438 \begin_inset Quotes eld
25439 \end_inset
25440
25441 You're surprised to see me, sir,
25442 \begin_inset Quotes erd
25443 \end_inset
25444
25445  said he, in a strange, croaking voice.
25446 \end_layout
25447
25448 \begin_layout Plain Layout
25449
25450 \size small
25451 I acknowledged that I was.
25452 \end_layout
25453
25454 \begin_layout Plain Layout
25455
25456 \size small
25457 \begin_inset Quotes eld
25458 \end_inset
25459
25460 Well, I've a conscience, sir, and when I chanced to see you go into this
25461  house, as I came hobbling after you, I thought to myself, I'll just step
25462  in and see that kind gentleman, and tell him that if I was a bit gruff
25463  in my manner there was not any harm meant, and that I am much obliged to
25464  him for picking up my books.
25465 \begin_inset Quotes erd
25466 \end_inset
25467
25468
25469 \end_layout
25470
25471 \begin_layout Plain Layout
25472
25473 \size small
25474 \begin_inset Quotes eld
25475 \end_inset
25476
25477 You make too much of a trifle,
25478 \begin_inset Quotes erd
25479 \end_inset
25480
25481  said I.
25482  
25483 \begin_inset Quotes eld
25484 \end_inset
25485
25486 May I ask how you knew who I was?
25487 \begin_inset Quotes erd
25488 \end_inset
25489
25490
25491 \end_layout
25492
25493 \begin_layout Plain Layout
25494
25495 \size small
25496 \begin_inset Quotes eld
25497 \end_inset
25498
25499 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25500  you'll find my little bookshop at the corner of Church Street, and very
25501  happy to see you, I am sure.
25502  Maybe you collect yourself, sir.
25503  Here's 
25504 \noun on
25505 British
25506 \begin_inset space ~
25507 \end_inset
25508
25509 Birds
25510 \noun default
25511 , and 
25512 \noun on
25513 Catullus
25514 \noun default
25515 , and 
25516 \noun on
25517 The Holy War
25518 \noun default
25519 –a bargain, every one of them.
25520  With five volumes you could just fill that gap on that second shelf.
25521  It looks untidy, does it not, sir?
25522 \begin_inset Quotes erd
25523 \end_inset
25524
25525
25526 \end_layout
25527
25528 \end_inset
25529
25530
25531 \end_layout
25532
25533 \begin_layout Standard
25534 \begin_inset ERT
25535 status collapsed
25536
25537 \begin_layout Plain Layout
25538
25539
25540 \backslash
25541 setlength{
25542 \backslash
25543 columnseprule}{0pt}
25544 \end_layout
25545
25546 \begin_layout Plain Layout
25547
25548
25549 \backslash
25550 renewcommand{
25551 \backslash
25552 columnseprulecolor}{
25553 \backslash
25554 normalcolor}
25555 \end_layout
25556
25557 \end_inset
25558
25559
25560 \begin_inset Note Note
25561 status collapsed
25562
25563 \begin_layout Plain Layout
25564 go back to the default
25565 \end_layout
25566
25567 \end_inset
25568
25569
25570 \end_layout
25571
25572 \begin_layout Section
25573 Non-standard Paragraph Shapes
25574 \end_layout
25575
25576 \begin_layout Standard
25577 \noindent
25578 \SpecialChar LaTeX
25579  as well as any other text processor uses by default rectangular paragraphs.
25580  For special cases like for example posters, invitation cards or poems you
25581  can modify the paragraph shape to one of your choice.
25582  This can be done by using the \SpecialChar LaTeX
25583 -package 
25584 \series bold
25585 shapepar
25586 \series default
25587  which is loaded by using in the document settings the module 
25588 \family sans
25589 Custom paragraph shapes
25590 \family default
25591 .
25592 \end_layout
25593
25594 \begin_layout Subsection
25595 Predefined shapes
25596 \end_layout
25597
25598 \begin_layout Standard
25599
25600 \series bold
25601 shapepar
25602 \series default
25603  provides the following shapes:
25604 \end_layout
25605
25606 \begin_layout Standard
25607 \begin_inset Tabular
25608 <lyxtabular version="3" rows="13" columns="3">
25609 <features booktabs="true" islongtable="true" longtabularalignment="center">
25610 <column alignment="center" valignment="middle" width="16col%">
25611 <column alignment="center" valignment="middle" width="40col%">
25612 <column alignment="center" valignment="middle" width="35col%">
25613 <row endhead="true">
25614 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25615 \begin_inset Text
25616
25617 \begin_layout Plain Layout
25618 Name
25619 \end_layout
25620
25621 \end_inset
25622 </cell>
25623 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25624 \begin_inset Text
25625
25626 \begin_layout Plain Layout
25627 Description
25628 \end_layout
25629
25630 \end_inset
25631 </cell>
25632 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25633 \begin_inset Text
25634
25635 \begin_layout Plain Layout
25636 Annotation
25637 \end_layout
25638
25639 \end_inset
25640 </cell>
25641 </row>
25642 <row>
25643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25644 \begin_inset Text
25645
25646 \begin_layout Plain Layout
25647 CDlabel
25648 \end_layout
25649
25650 \end_inset
25651 </cell>
25652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25653 \begin_inset Text
25654
25655 \begin_layout Plain Layout
25656 Circle with circular hole (in the size of a CD/DVD)
25657 \end_layout
25658
25659 \end_inset
25660 </cell>
25661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25662 \begin_inset Text
25663
25664 \begin_layout Plain Layout
25665 Cannot be scaled, take care there is not too much text
25666 \end_layout
25667
25668 \end_inset
25669 </cell>
25670 </row>
25671 <row>
25672 <cell alignment="center" valignment="top" topline="true" usebox="none">
25673 \begin_inset Text
25674
25675 \begin_layout Plain Layout
25676 Circle
25677 \end_layout
25678
25679 \end_inset
25680 </cell>
25681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25682 \begin_inset Text
25683
25684 \begin_layout Plain Layout
25685 Circle
25686 \end_layout
25687
25688 \end_inset
25689 </cell>
25690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25691 \begin_inset Text
25692
25693 \begin_layout Plain Layout
25694 Fragile, calculation might fail
25695 \end_layout
25696
25697 \end_inset
25698 </cell>
25699 </row>
25700 <row>
25701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25702 \begin_inset Text
25703
25704 \begin_layout Plain Layout
25705 Diamond
25706 \end_layout
25707
25708 \end_inset
25709 </cell>
25710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25711 \begin_inset Text
25712
25713 \begin_layout Plain Layout
25714 Rhomboid (symbolizing a 
25715 \begin_inset Quotes eld
25716 \end_inset
25717
25718 diamond
25719 \begin_inset Quotes erd
25720 \end_inset
25721
25722 )
25723 \end_layout
25724
25725 \end_inset
25726 </cell>
25727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25728 \begin_inset Text
25729
25730 \begin_layout Plain Layout
25731 -
25732 \end_layout
25733
25734 \end_inset
25735 </cell>
25736 </row>
25737 <row>
25738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25739 \begin_inset Text
25740
25741 \begin_layout Plain Layout
25742 Heart
25743 \end_layout
25744
25745 \end_inset
25746 </cell>
25747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25748 \begin_inset Text
25749
25750 \begin_layout Plain Layout
25751 Heart-like shape
25752 \end_layout
25753
25754 \end_inset
25755 </cell>
25756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25757 \begin_inset Text
25758
25759 \begin_layout Plain Layout
25760 -
25761 \end_layout
25762
25763 \end_inset
25764 </cell>
25765 </row>
25766 <row>
25767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25768 \begin_inset Text
25769
25770 \begin_layout Plain Layout
25771 Hexagon
25772 \end_layout
25773
25774 \end_inset
25775 </cell>
25776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25777 \begin_inset Text
25778
25779 \begin_layout Plain Layout
25780 Hexagon
25781 \end_layout
25782
25783 \end_inset
25784 </cell>
25785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25786 \begin_inset Text
25787
25788 \begin_layout Plain Layout
25789 -
25790 \end_layout
25791
25792 \end_inset
25793 </cell>
25794 </row>
25795 <row>
25796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25797 \begin_inset Text
25798
25799 \begin_layout Plain Layout
25800 Nut
25801 \end_layout
25802
25803 \end_inset
25804 </cell>
25805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25806 \begin_inset Text
25807
25808 \begin_layout Plain Layout
25809 Nut for bolt (hexagon with circular hole)
25810 \end_layout
25811
25812 \end_inset
25813 </cell>
25814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25815 \begin_inset Text
25816
25817 \begin_layout Plain Layout
25818 -
25819 \end_layout
25820
25821 \end_inset
25822 </cell>
25823 </row>
25824 <row>
25825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25826 \begin_inset Text
25827
25828 \begin_layout Plain Layout
25829 Square
25830 \end_layout
25831
25832 \end_inset
25833 </cell>
25834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25835 \begin_inset Text
25836
25837 \begin_layout Plain Layout
25838 Square
25839 \end_layout
25840
25841 \end_inset
25842 </cell>
25843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25844 \begin_inset Text
25845
25846 \begin_layout Plain Layout
25847 -
25848 \end_layout
25849
25850 \end_inset
25851 </cell>
25852 </row>
25853 <row>
25854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25855 \begin_inset Text
25856
25857 \begin_layout Plain Layout
25858 Star
25859 \end_layout
25860
25861 \end_inset
25862 </cell>
25863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25864 \begin_inset Text
25865
25866 \begin_layout Plain Layout
25867 Five-point star
25868 \end_layout
25869
25870 \end_inset
25871 </cell>
25872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25873 \begin_inset Text
25874
25875 \begin_layout Plain Layout
25876 -
25877 \end_layout
25878
25879 \end_inset
25880 </cell>
25881 </row>
25882 <row>
25883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25884 \begin_inset Text
25885
25886 \begin_layout Plain Layout
25887 Candle
25888 \end_layout
25889
25890 \end_inset
25891 </cell>
25892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25893 \begin_inset Text
25894
25895 \begin_layout Plain Layout
25896 Burning candle
25897 \end_layout
25898
25899 \end_inset
25900 </cell>
25901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25902 \begin_inset Text
25903
25904 \begin_layout Plain Layout
25905 -
25906 \end_layout
25907
25908 \end_inset
25909 </cell>
25910 </row>
25911 <row>
25912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25913 \begin_inset Text
25914
25915 \begin_layout Plain Layout
25916 Drop down/up
25917 \end_layout
25918
25919 \end_inset
25920 </cell>
25921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25922 \begin_inset Text
25923
25924 \begin_layout Plain Layout
25925 Normal/reversed rain drop
25926 \end_layout
25927
25928 \end_inset
25929 </cell>
25930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25931 \begin_inset Text
25932
25933 \begin_layout Plain Layout
25934 Fragile, calculation might fail
25935 \end_layout
25936
25937 \end_inset
25938 </cell>
25939 </row>
25940 <row>
25941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25942 \begin_inset Text
25943
25944 \begin_layout Plain Layout
25945 \SpecialChar TeX
25946
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 The \SpecialChar TeX
25956  logo
25957 \end_layout
25958
25959 \end_inset
25960 </cell>
25961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25962 \begin_inset Text
25963
25964 \begin_layout Plain Layout
25965 -
25966 \end_layout
25967
25968 \end_inset
25969 </cell>
25970 </row>
25971 <row>
25972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25973 \begin_inset Text
25974
25975 \begin_layout Plain Layout
25976 Triangle up/down/
25977 \begin_inset Newline newline
25978 \end_inset
25979
25980 left/right
25981 \end_layout
25982
25983 \end_inset
25984 </cell>
25985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25986 \begin_inset Text
25987
25988 \begin_layout Plain Layout
25989 Triangles in different orientations
25990 \end_layout
25991
25992 \end_inset
25993 </cell>
25994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25995 \begin_inset Text
25996
25997 \begin_layout Plain Layout
25998 -
25999 \end_layout
26000
26001 \end_inset
26002 </cell>
26003 </row>
26004 </lyxtabular>
26005
26006 \end_inset
26007
26008
26009 \end_layout
26010
26011 \begin_layout Standard
26012 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26013 's pull-down box
26014  for environments in the toolbar.
26015 \end_layout
26016
26017 \begin_layout Standard
26018 \begin_inset Newpage newpage
26019 \end_inset
26020
26021
26022 \end_layout
26023
26024 \begin_layout Standard
26025 Here is an example paragraph in the shape of a nut:
26026 \end_layout
26027
26028 \begin_layout Standard
26029 \begin_inset VSpace bigskip
26030 \end_inset
26031
26032
26033 \end_layout
26034
26035 \begin_layout Nut
26036
26037 \lang latin
26038 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26039  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26040  voluptua.
26041  At vero eos et accusam et justo duo dolores et ea rebum.
26042  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26043  sit amet.
26044  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26045  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26046  voluptua.
26047 \end_layout
26048
26049 \begin_layout Standard
26050 \begin_inset VSpace bigskip
26051 \end_inset
26052
26053
26054 \end_layout
26055
26056 \begin_layout Standard
26057 \begin_inset Note Greyedout
26058 status open
26059
26060 \begin_layout Plain Layout
26061
26062 \series bold
26063 Note
26064 \series default
26065 : shapepar paragraphs cannot run over a page break.
26066 \end_layout
26067
26068 \end_inset
26069
26070
26071 \end_layout
26072
26073 \begin_layout Standard
26074 \begin_inset VSpace bigskip
26075 \end_inset
26076
26077
26078 \end_layout
26079
26080 \begin_layout Standard
26081
26082 \series bold
26083 shapepar
26084 \series default
26085  takes care that the shape will always be preserved, no matter how much
26086  text is in the paragraph.
26087  Therefore the paragraph size changes with the amount of contained text.
26088  This can lead to paragraph sizes exceeding the page margins.
26089  To demonstrate the size scaling, here is the same example paragraph but
26090  with twice as much text:
26091 \end_layout
26092
26093 \begin_layout Standard
26094 \begin_inset Newpage newpage
26095 \end_inset
26096
26097
26098 \end_layout
26099
26100 \begin_layout Nut
26101
26102 \lang latin
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  At vero eos et accusam et justo duo dolores et ea rebum.
26107  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26108  sit amet.
26109  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26110  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26111  voluptua.
26112  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26113  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26114  voluptua.
26115  At vero eos et accusam et justo duo dolores et ea rebum.
26116  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26117  sit amet.
26118  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26119  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26120  voluptua.
26121 \end_layout
26122
26123 \begin_layout Standard
26124 \begin_inset VSpace bigskip
26125 \end_inset
26126
26127
26128 \end_layout
26129
26130 \begin_layout Standard
26131 An exception is the shape 
26132 \family sans
26133 CDlabel
26134 \family default
26135 .
26136  It cannot be scaled because it must fit the size of a CD/DVD.
26137  Therefore the amount of text that fits into the shape is limited.
26138 \begin_inset Newline newline
26139 \end_inset
26140
26141 The 
26142 \family sans
26143 drop
26144 \family default
26145  shapes and the 
26146 \family sans
26147 circle
26148 \family default
26149  shape are fragile, meaning that the calculation of their size can fail,
26150  depending on the amount of text.
26151  You will then get the \SpecialChar LaTeX
26152  error 
26153 \begin_inset Quotes eld
26154 \end_inset
26155
26156 Arithmetic overflow
26157 \begin_inset Quotes erd
26158 \end_inset
26159
26160 .
26161  In this case one can try to remove or add some text; if nothing works one
26162  has to use another shape.
26163 \end_layout
26164
26165 \begin_layout Standard
26166 \begin_inset VSpace bigskip
26167 \end_inset
26168
26169
26170 \end_layout
26171
26172 \begin_layout Standard
26173 For shapes with tips you will maybe see that \SpecialChar LaTeX
26174 's hyphenation routine fails
26175  for text in the tips.
26176  Therefore it is often necessary to add hyphenation points 
26177 \family sans
26178 (
26179 \begin_inset Info
26180 type  "shortcut"
26181 arg   "specialchar-insert hyphenation"
26182 \end_inset
26183
26184
26185 \family default
26186 ) to the corresponding text parts.
26187 \end_layout
26188
26189 \begin_layout Standard
26190 \begin_inset VSpace bigskip
26191 \end_inset
26192
26193
26194 \end_layout
26195
26196 \begin_layout Standard
26197 Shapepar paragraphs are either always centered or placed on the page so
26198  that their left border touches the left page margin.
26199  You can therefore not use the paragraph dialog to align such paragraphs.
26200  A solution is to put the paragraph into a minipage or parbox and align
26201  the box.
26202  The problem is hereby to find the right width for the box.
26203  Because if it is too wide and you center the box, the paragraph is not
26204  centered too because it sticks at the left side of the box.
26205  So you might have to play a bit with the width until it fits.
26206  Here are two heart-shaped paragraphs, the first one is not aligned, the
26207  second one is right-aligned:
26208 \end_layout
26209
26210 \begin_layout Standard
26211 \begin_inset Newpage newpage
26212 \end_inset
26213
26214
26215 \end_layout
26216
26217 \begin_layout Heart
26218 \noindent
26219
26220 \lang latin
26221 Lo\SpecialChar softhyphen
26222 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26223  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26224  voluptua.
26225  At vero eos et accusam et justo duo dolores et ea rebum.
26226  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26227  sit amet.
26228 \end_layout
26229
26230 \begin_layout Standard
26231 \begin_inset VSpace bigskip
26232 \end_inset
26233
26234
26235 \end_layout
26236
26237 \begin_layout Standard
26238 \noindent
26239 \align right
26240 \begin_inset Box Frameless
26241 position "t"
26242 hor_pos "c"
26243 has_inner_box 1
26244 inner_pos "t"
26245 use_parbox 1
26246 use_makebox 0
26247 width "42col%"
26248 special "none"
26249 height "1in"
26250 height_special "totalheight"
26251 thickness "0.4pt"
26252 separation "3pt"
26253 shadowsize "4pt"
26254 framecolor "black"
26255 backgroundcolor "none"
26256 status open
26257
26258 \begin_layout Heart
26259 \noindent
26260
26261 \lang latin
26262 Lo\SpecialChar softhyphen
26263 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26264  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26265  voluptua.
26266  At vero eos et accusam et justo duo dolores et ea rebum.
26267  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26268  sit amet.
26269 \end_layout
26270
26271 \end_inset
26272
26273
26274 \end_layout
26275
26276 \begin_layout Subsection
26277 Custom shapes
26278 \end_layout
26279
26280 \begin_layout Standard
26281 You can define any shape you want.
26282  Doing this manually is a lot of work because every coordinate must be specified.
26283  But there is a way to let the computer calculate the coordinates:
26284 \end_layout
26285
26286 \begin_layout Enumerate
26287 Install the program 
26288 \begin_inset CommandInset href
26289 LatexCommand href
26290 name "Jpgfdraw"
26291 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26292
26293 \end_inset
26294
26295 .
26296 \end_layout
26297
26298 \begin_layout Enumerate
26299 In 
26300 \family sans
26301 Jpgfdraw
26302 \family default
26303  go to the menu 
26304 \family sans
26305 TeX/LaTeX\SpecialChar menuseparator
26306 Settings\SpecialChar menuseparator
26307 Set Normal Size
26308 \family default
26309  and select the font size you are using in your document.
26310  For example this document uses the size 12
26311 \begin_inset space \thinspace{}
26312 \end_inset
26313
26314 pt.
26315 \end_layout
26316
26317 \begin_layout Enumerate
26318 Draw a shape.
26319 \end_layout
26320
26321 \begin_layout Enumerate
26322 Use the menu 
26323 \family sans
26324 TeX/LaTeX\SpecialChar menuseparator
26325 Shapepar
26326 \family default
26327  to export the shape to coordinates.
26328  In the appearing dialog use either the outline of your shape for the coordinate
26329 s or the path itself.
26330 \begin_inset Foot
26331 status collapsed
26332
26333 \begin_layout Plain Layout
26334 For more information see 
26335 \begin_inset CommandInset href
26336 LatexCommand href
26337 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26338
26339 \end_inset
26340
26341
26342 \end_layout
26343
26344 \end_inset
26345
26346
26347 \end_layout
26348
26349 \begin_layout Standard
26350 The coordinates are written into a \SpecialChar TeX
26351  file.
26352  To use it for your \SpecialChar LyX
26353  document
26354 \end_layout
26355
26356 \begin_layout Enumerate
26357 Place the cursor before the first character of your paragraph (or into a
26358  new empty one).
26359 \end_layout
26360
26361 \begin_layout Enumerate
26362 Open in \SpecialChar LyX
26363  the menu 
26364 \family sans
26365 Insert\SpecialChar menuseparator
26366 File\SpecialChar menuseparator
26367 Child
26368 \begin_inset space ~
26369 \end_inset
26370
26371 Document
26372 \family default
26373 , select the file and use 
26374 \family sans
26375 Input
26376 \family default
26377  as 
26378 \family sans
26379 Include Type.
26380 \end_layout
26381
26382 \begin_layout Standard
26383 \begin_inset VSpace defskip
26384 \end_inset
26385
26386
26387 \end_layout
26388
26389 \begin_layout Standard
26390 \begin_inset Note Greyedout
26391 status open
26392
26393 \begin_layout Plain Layout
26394
26395 \series bold
26396 Note
26397 \series default
26398 : The changed shape only applies to the current paragraph; everything is
26399  reset to normal for the next paragraph.
26400  Therefore the shape definition file must be input into every paragraph
26401  with the desired shape.
26402 \end_layout
26403
26404 \end_inset
26405
26406
26407 \end_layout
26408
26409 \begin_layout Standard
26410 \begin_inset VSpace bigskip
26411 \end_inset
26412
26413
26414 \end_layout
26415
26416 \begin_layout Standard
26417 Here is an example:
26418 \end_layout
26419
26420 \begin_layout Standard
26421 \begin_inset VSpace bigskip
26422 \end_inset
26423
26424
26425 \end_layout
26426
26427 \begin_layout Standard
26428 \begin_inset CommandInset include
26429 LatexCommand input
26430 filename "SpecialParagraphShape.tex"
26431
26432 \end_inset
26433
26434
26435 \lang latin
26436 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26437  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26438  voluptua.
26439  At vero eos et accusam et justo duo dolores et ea rebum.
26440  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26441  sit amet.
26442  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26443  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26444  voluptua.
26445 \end_layout
26446
26447 \begin_layout Standard
26448 \begin_inset VSpace bigskip
26449 \end_inset
26450
26451
26452 \end_layout
26453
26454 \begin_layout Standard
26455
26456 \series bold
26457 A tip:
26458 \series default
26459  to draw complexer shapes in 
26460 \family sans
26461 Jpgfdraw
26462 \family default
26463  you can draw the shape in a program of your choice and import the resulting
26464  image to 
26465 \family sans
26466 Jpgfdraw
26467 \family default
26468 .
26469  Then you only need to draw a line or spline along the outline of the image.
26470 \end_layout
26471
26472 \begin_layout Standard
26473 \begin_inset VSpace bigskip
26474 \end_inset
26475
26476
26477 \end_layout
26478
26479 \begin_layout Standard
26480 The module 
26481 \family sans
26482 Custom paragraph shapes
26483 \family default
26484  also provides the two commands 
26485 \family sans
26486 shapepar
26487 \family default
26488  and 
26489 \family sans
26490 Shapepar
26491 \family default
26492  which can be used to define custom shapes coordinate by coordinate.
26493 \begin_inset Foot
26494 status collapsed
26495
26496 \begin_layout Plain Layout
26497 These commands are internally used for all shapes described here.
26498 \end_layout
26499
26500 \end_inset
26501
26502  For information how these styles are used and about further customization
26503  possibilities, have a look at the documentation of the package 
26504 \series bold
26505 shapepar
26506 \series default
26507
26508 \begin_inset CommandInset citation
26509 LatexCommand cite
26510 key "shapepar"
26511
26512 \end_inset
26513
26514 .
26515 \end_layout
26516
26517 \begin_layout Bibliography
26518 \begin_inset CommandInset bibitem
26519 LatexCommand bibitem
26520 key "multicol"
26521
26522 \end_inset
26523
26524 Documentation of the \SpecialChar LaTeX
26525 -package 
26526 \begin_inset CommandInset href
26527 LatexCommand href
26528 name "multicol"
26529 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26530
26531 \end_inset
26532
26533
26534 \end_layout
26535
26536 \begin_layout Bibliography
26537 \begin_inset CommandInset bibitem
26538 LatexCommand bibitem
26539 key "shapepar"
26540
26541 \end_inset
26542
26543 Documentation of the \SpecialChar LaTeX
26544 -package 
26545 \begin_inset CommandInset href
26546 LatexCommand href
26547 name "shapepar"
26548 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
26549
26550 \end_inset
26551
26552
26553 \end_layout
26554
26555 \end_body
26556 \end_document