]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
f4611e86891351253f2a3e982e13f4076c125840
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 503
3 \begin_document
4 \begin_header
5 \origin unavailable
6 \textclass scrbook
7 \begin_preamble
8 % DO NOT ALTER THIS PREAMBLE!!!
9 %
10 % This preamble is designed to ensure that the manual prints
11 % out as advertised. If you mess with this preamble,
12 % parts of the manual may not print out as expected.  If you
13 % have problems LaTeXing this file, please contact 
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
16
17 % if pdflatex is used
18 \usepackage{ifpdf}
19 \ifpdf
20
21  % set fonts for nicer pdf view
22  \IfFileExists{lmodern.sty}
23   {\usepackage{lmodern}}{}
24
25 \fi % end if pdflatex is used
26
27 % the pages of the TOC are numbered roman
28 % and a PDF-bookmark for the TOC is added
29 \pagenumbering{roman}
30 \let\myTOC\tableofcontents
31 \renewcommand{\tableofcontents}{%
32  \pdfbookmark[1]{\contentsname}{}
33  \myTOC
34  \cleardoublepage
35  \pagenumbering{arabic}}
36
37 % extra space for tables
38 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
39 \end_preamble
40 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
41 \use_default_options false
42 \begin_modules
43 logicalmkup
44 theorems-ams
45 theorems-ams-extended
46 multicol
47 shapepar
48 \end_modules
49 \maintain_unincluded_children false
50 \begin_local_layout
51 Format 7
52 InsetLayout CharStyle:MenuItem
53 LyxType               charstyle
54 LabelString           menu
55 LatexType             command
56 LatexName             menuitem
57 Font
58 Family              Sans
59 EndFont
60 Preamble
61 \newcommand*{\menuitem}[1]{{\sffamily #1}}
62 EndPreamble
63 End
64 \end_local_layout
65 \language english
66 \language_package default
67 \inputencoding auto
68 \fontencoding global
69 \font_roman "default" "default"
70 \font_sans "default" "default"
71 \font_typewriter "default" "default"
72 \font_math "auto" "auto"
73 \font_default_family default
74 \use_non_tex_fonts false
75 \font_sc false
76 \font_osf false
77 \font_sf_scale 100 100
78 \font_tt_scale 100 100
79 \graphics default
80 \default_output_format default
81 \output_sync 0
82 \bibtex_command default
83 \index_command default
84 \paperfontsize 12
85 \spacing single
86 \use_hyperref true
87 \pdf_title "LyX's Additional Features manual"
88 \pdf_author "LyX Team"
89 \pdf_subject "LyX's additional features documentation"
90 \pdf_keywords "LyX, Documentation, Additional"
91 \pdf_bookmarks true
92 \pdf_bookmarksnumbered true
93 \pdf_bookmarksopen false
94 \pdf_bookmarksopenlevel 1
95 \pdf_breaklinks false
96 \pdf_pdfborder false
97 \pdf_colorlinks true
98 \pdf_backref false
99 \pdf_pdfusetitle false
100 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
101 \papersize a4paper
102 \use_geometry false
103 \use_package amsmath 1
104 \use_package amssymb 1
105 \use_package cancel 0
106 \use_package esint 0
107 \use_package mathdots 1
108 \use_package mathtools 0
109 \use_package mhchem 1
110 \use_package stackrel 0
111 \use_package stmaryrd 0
112 \use_package undertilde 0
113 \cite_engine basic
114 \cite_engine_type default
115 \biblio_style plain
116 \use_bibtopic false
117 \use_indices false
118 \paperorientation portrait
119 \suppress_date false
120 \justification true
121 \use_refstyle 0
122 \notefontcolor #0000ff
123 \index Index
124 \shortcut idx
125 \color #008000
126 \end_index
127 \secnumdepth 3
128 \tocdepth 3
129 \paragraph_separation indent
130 \paragraph_indentation default
131 \quotes_language english
132 \papercolumns 1
133 \papersides 2
134 \paperpagestyle headings
135 \tracking_changes false
136 \output_changes false
137 \html_math_output 0
138 \html_css_as_file 0
139 \html_be_strict true
140 \end_header
141
142 \begin_body
143
144 \begin_layout Title
145 Additional \SpecialChar LyX
146  Features
147 \end_layout
148
149 \begin_layout Subtitle
150 Version 2.2.x
151 \end_layout
152
153 \begin_layout Author
154 by the \SpecialChar LyX
155  Team
156 \begin_inset Foot
157 status collapsed
158
159 \begin_layout Plain Layout
160 \noindent
161 Principal maintainer of this file is
162 \noun on
163  Richard Heck
164 \noun default
165 .
166  If you have comments or error corrections, please send them to the \SpecialChar LyX
167  Documentati
168 on mailing list, 
169 \begin_inset Flex Code
170 status collapsed
171
172 \begin_layout Plain Layout
173 \noindent
174 <lyx-docs@lists.lyx.org>
175 \end_layout
176
177 \end_inset
178
179 .
180 \end_layout
181
182 \end_inset
183
184
185 \end_layout
186
187 \begin_layout Standard
188 \begin_inset CommandInset toc
189 LatexCommand tableofcontents
190
191 \end_inset
192
193
194 \end_layout
195
196 \begin_layout Chapter
197 Introduction
198 \end_layout
199
200 \begin_layout Standard
201 This manual is essentially Part II of the 
202 \emph on
203 User's Guide\SpecialChar endofsentence
204
205 \emph default
206  The reason for separating the two documents is simple: the 
207 \emph on
208 User's Guide
209 \emph default
210  is already quite lengthy, and it contains information on all of the basic
211  features one needs to know in order to prepare most documents.
212  However, the \SpecialChar LyX
213  Team has worked to make \SpecialChar LyX
214  extensible through various configuration
215  files and external packages.
216  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
217  package, you can
218  create a layout file (or module) for it without having to alter \SpecialChar LyX
219  itself.
220  We've already had contributions of several new features this way, and some
221  of them are documented here.
222  There are also some more `advanced' features, such as how to control the
223  presentation of bibliographies and how to work with multi-part documents,
224  that are not covered in the 
225 \emph on
226 User's Guide
227 \emph default
228  and are discussed here.
229 \end_layout
230
231 \begin_layout Standard
232 This manual also documents some special features, like fax support, version
233  control, and SGML support, which require additional software to work properly.
234  There is also a chapter on \SpecialChar LyX
235 's support for HTML.
236  And lastly, there's a chapter of \SpecialChar LaTeX
237  tools and tips, things you can use to
238  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
239 .
240  After all, \SpecialChar LyX
241  
242 \emph on
243 is
244 \emph default
245  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
246  features.
247 \end_layout
248
249 \begin_layout Standard
250 If you haven't read the 
251 \emph on
252 Introduction
253 \emph default
254  yet, you are definitely in the wrong manual.
255  The 
256 \emph on
257 Introduction
258 \emph default
259  is the first place to go, since it describes the notation and format of
260  all of the manuals.
261  You should also be thoroughly familiar with the 
262 \emph on
263 User's Guide
264 \emph default
265  and all of the basic features of \SpecialChar LyX
266  before attempting to read this one.
267 \end_layout
268
269 \begin_layout Standard
270 Since many of the topics in this manual depend heavily on \SpecialChar LyX
271 's interaction
272  with \SpecialChar LaTeX
273 , this first chapter covers the inner workings of \SpecialChar LyX
274  and how to direct
275  \SpecialChar LyX
276  to generate exactly the \SpecialChar LaTeX
277  code you want.
278  It is obviously for more seasoned \SpecialChar LyX
279  users.
280 \end_layout
281
282 \begin_layout Chapter
283 \SpecialChar LyX
284  and \SpecialChar LaTeX
285
286 \end_layout
287
288 \begin_layout Section
289 How \SpecialChar LyX
290  Uses \SpecialChar LaTeX
291
292 \end_layout
293
294 \begin_layout Standard
295 This chapter is for both \SpecialChar TeX
296 -nicians and the \SpecialChar LaTeX
297 -curious.
298  In it, we'll explain how \SpecialChar LyX
299  and \SpecialChar LaTeX
300  work together to produce printable output.
301  This is the only place in any of the manuals where we assume you know something
302  about \SpecialChar LaTeX
303 .
304 \end_layout
305
306 \begin_layout Standard
307 At one time, \SpecialChar LyX
308  was called a 
309 \begin_inset Quotes eld
310 \end_inset
311
312 WYSIWYM frontend to \SpecialChar LaTeX
313 ,
314 \begin_inset Quotes erd
315 \end_inset
316
317  but that's no longer true.
318  There are frontends to \SpecialChar LaTeX
319  out there.
320 \begin_inset Foot
321 status collapsed
322
323 \begin_layout Plain Layout
324 Some familar ones are \SpecialChar TeX
325 maker and kile, on Linux, and \SpecialChar TeX
326 shop, OSX.
327  There are also the \SpecialChar LaTeX
328  modes for vi and emacs, of course.
329 \end_layout
330
331 \end_inset
332
333  These are basically text editors with the ability to run \SpecialChar LaTeX
334  and mark any
335  errors in the file you're editing.
336  Although \SpecialChar LyX
337  
338 \emph on
339 is
340 \emph default
341  an editor, and it 
342 \emph on
343 does
344 \emph default
345  run \SpecialChar LaTeX
346 , and it also indicates errors in the file, it also does much, much
347  more.
348  For one thing, you don't need to know \SpecialChar LaTeX
349  to use \SpecialChar LyX
350  effectively.
351  And \SpecialChar LyX
352  has added its own extensions to \SpecialChar LaTeX
353 .
354  Try the following sometime: select 
355 \begin_inset Flex MenuItem
356 status collapsed
357
358 \begin_layout Plain Layout
359 Export\SpecialChar menuseparator
360 \SpecialChar LaTeX
361
362 \end_layout
363
364 \end_inset
365
366  from the 
367 \begin_inset Flex MenuItem
368 status collapsed
369
370 \begin_layout Plain Layout
371 File
372 \end_layout
373
374 \end_inset
375
376  menu (or 
377 \begin_inset Flex MenuItem
378 status collapsed
379
380 \begin_layout Plain Layout
381 View\SpecialChar menuseparator
382 Source
383 \begin_inset space ~
384 \end_inset
385
386 Pane
387 \end_layout
388
389 \end_inset
390
391 ), then look at the preamble of the resulting 
392 \begin_inset Flex Code
393 status collapsed
394
395 \begin_layout Plain Layout
396 .tex
397 \end_layout
398
399 \end_inset
400
401  file.
402  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
403 .
404  These macros are defined automatically, according to the features you use
405  in the document.
406 \end_layout
407
408 \begin_layout Standard
409 There are several commands that automatically invoke \SpecialChar LaTeX
410 .
411  They are:
412 \end_layout
413
414 \begin_layout Itemize
415 \begin_inset Flex MenuItem
416 status collapsed
417
418 \begin_layout Plain Layout
419 Document\SpecialChar menuseparator
420 View
421 \end_layout
422
423 \end_inset
424
425
426 \end_layout
427
428 \begin_layout Itemize
429 \begin_inset Flex MenuItem
430 status collapsed
431
432 \begin_layout Plain Layout
433 Document\SpecialChar menuseparator
434 Update
435 \end_layout
436
437 \end_inset
438
439
440 \end_layout
441
442 \begin_layout Itemize
443 \begin_inset Flex MenuItem
444 status collapsed
445
446 \begin_layout Plain Layout
447 File\SpecialChar menuseparator
448 Print
449 \end_layout
450
451 \end_inset
452
453
454 \end_layout
455
456 \begin_layout Itemize
457 \begin_inset Flex MenuItem
458 status collapsed
459
460 \begin_layout Plain Layout
461 File\SpecialChar menuseparator
462 Fax
463 \end_layout
464
465 \end_inset
466
467
468 \end_layout
469
470 \begin_layout Standard
471 They will only invoke \SpecialChar LaTeX
472  if the file has changed since the last time \SpecialChar LaTeX
473  was
474  run.
475  
476 \end_layout
477
478 \begin_layout Standard
479 When \SpecialChar LyX
480  runs \SpecialChar LaTeX
481  on the file you're editing, it performs these steps:
482 \end_layout
483
484 \begin_layout Enumerate
485 Convert the document to \SpecialChar LaTeX
486  and save to a file with the extension 
487 \begin_inset Flex Code
488 status collapsed
489
490 \begin_layout Plain Layout
491 .tex
492 \end_layout
493
494 \end_inset
495
496  in place of 
497 \begin_inset Flex Code
498 status collapsed
499
500 \begin_layout Plain Layout
501 .lyx
502 \end_layout
503
504 \end_inset
505
506 .
507 \end_layout
508
509 \begin_layout Enumerate
510 Run \SpecialChar LaTeX
511  on the 
512 \begin_inset Flex Code
513 status collapsed
514
515 \begin_layout Plain Layout
516 .tex
517 \end_layout
518
519 \end_inset
520
521  file (maybe several times), and run any other commands (such as 
522 \begin_inset Flex Code
523 status collapsed
524
525 \begin_layout Plain Layout
526 bibtex
527 \end_layout
528
529 \end_inset
530
531  or 
532 \begin_inset Flex Code
533 status collapsed
534
535 \begin_layout Plain Layout
536 makeindex
537 \end_layout
538
539 \end_inset
540
541 ) needed to compile the \SpecialChar LaTeX
542  file.
543 \end_layout
544
545 \begin_layout Enumerate
546 If there are any errors, show the error log.
547 \end_layout
548
549 \begin_layout Standard
550 If you have run \SpecialChar LaTeX
551  using 
552 \begin_inset Flex MenuItem
553 status collapsed
554
555 \begin_layout Plain Layout
556 View
557 \bar under
558 \SpecialChar menuseparator
559
560 \bar default
561 DVI
562 \end_layout
563
564 \end_inset
565
566 , \SpecialChar LyX
567  then runs a DVI viewer to display the DVI-file.
568  If you have used 
569 \begin_inset Flex MenuItem
570 status collapsed
571
572 \begin_layout Plain Layout
573 View
574 \bar under
575 \SpecialChar menuseparator
576
577 \bar default
578 PostScript
579 \end_layout
580
581 \end_inset
582
583 , \SpecialChar LyX
584  performs further steps:
585 \end_layout
586
587 \begin_layout Itemize
588 Run 
589 \begin_inset Flex Code
590 status collapsed
591
592 \begin_layout Plain Layout
593 dvips
594 \end_layout
595
596 \end_inset
597
598  to convert the DVI file to PostScript.
599 \end_layout
600
601 \begin_layout Itemize
602 Run a PostScript viewer, such as 
603 \begin_inset Flex Code
604 status collapsed
605
606 \begin_layout Plain Layout
607 ghostview
608 \end_layout
609
610 \end_inset
611
612 , to display the PostScript file.
613 \end_layout
614
615 \begin_layout Standard
616 \SpecialChar LyX
617  does similar things when viewing, or exporting, other formats.
618 \end_layout
619
620 \begin_layout Section
621 Translating \SpecialChar LaTeX
622  files into \SpecialChar LyX
623
624 \end_layout
625
626 \begin_layout Standard
627 You can import a \SpecialChar LaTeX
628  file into \SpecialChar LyX
629  by using the 
630 \begin_inset Flex MenuItem
631 status collapsed
632
633 \begin_layout Plain Layout
634 File\SpecialChar menuseparator
635 Import\SpecialChar menuseparator
636 \SpecialChar LaTeX
637
638 \end_layout
639
640 \end_inset
641
642  command in \SpecialChar LyX
643 .
644  This will call a program named 
645 \begin_inset Flex Code
646 status collapsed
647
648 \begin_layout Plain Layout
649 tex2lyx
650 \end_layout
651
652 \end_inset
653
654  which will create a file 
655 \begin_inset Flex Code
656 status collapsed
657
658 \begin_layout Plain Layout
659 foo.lyx
660 \end_layout
661
662 \end_inset
663
664  from the file 
665 \begin_inset Flex Code
666 status collapsed
667
668 \begin_layout Plain Layout
669 foo.tex
670 \end_layout
671
672 \end_inset
673
674 .
675  \SpecialChar LyX
676  will then open that file.
677 \begin_inset Foot
678 status collapsed
679
680 \begin_layout Plain Layout
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  can also be run from the command line, of course.
691 \end_layout
692
693 \end_inset
694
695
696 \end_layout
697
698 \begin_layout Standard
699 \begin_inset Flex Code
700 status collapsed
701
702 \begin_layout Plain Layout
703 tex2lyx
704 \end_layout
705
706 \end_inset
707
708  will translate most legal \SpecialChar LaTeX
709 , but not everything.
710  It will put things it doesn't understand into \SpecialChar TeX
711  code, so after translating
712  a file with 
713 \begin_inset Flex Code
714 status collapsed
715
716 \begin_layout Plain Layout
717 tex2lyx
718 \end_layout
719
720 \end_inset
721
722 , you can look for \SpecialChar TeX
723  code and hand-edit it until it looks right.
724 \end_layout
725
726 \begin_layout Standard
727 If you don't know what \SpecialChar TeX
728  code is, read the next section.
729 \end_layout
730
731 \begin_layout Section
732 \begin_inset CommandInset label
733 LatexCommand label
734 name "sec:Inserting-TeX-Code"
735
736 \end_inset
737
738 Inserting \SpecialChar TeX
739  Code into \SpecialChar LyX
740  Documents 
741 \end_layout
742
743 \begin_layout Standard
744 Anything you can do in \SpecialChar LaTeX
745  you can do in \SpecialChar LyX
746 , for a very simple reason: You can
747  always insert \SpecialChar TeX
748  code into any \SpecialChar LyX
749  document.
750  \SpecialChar LyX
751  cannot, and will never be able to, display every possible \SpecialChar LaTeX
752  construct.
753  If ever you need to insert \SpecialChar LaTeX
754  commands into your \SpecialChar LyX
755  document, you can use the
756  
757 \begin_inset Flex Code
758 status collapsed
759
760 \begin_layout Plain Layout
761 \SpecialChar TeX
762  Code
763 \end_layout
764
765 \end_inset
766
767  box, which you can insert into your document with 
768 \begin_inset Flex MenuItem
769 status collapsed
770
771 \begin_layout Plain Layout
772 Insert\SpecialChar menuseparator
773
774 \family sans
775 TeX
776 \family default
777  Code
778 \end_layout
779
780 \end_inset
781
782  or the keyboard shortcut 
783 \begin_inset Info
784 type  "shortcut"
785 arg   "ert-insert"
786 \end_inset
787
788 .
789 \end_layout
790
791 \begin_layout Standard
792 Here's an example of inserting \SpecialChar LaTeX
793  commands in a \SpecialChar LyX
794  document.
795  The code looks like this:
796 \end_layout
797
798 \begin_layout LyX-Code
799
800 \backslash
801 begin{tabular}{ll}
802 \begin_inset Newline newline
803 \end_inset
804
805
806 \backslash
807 begin{minipage}{5cm}
808 \begin_inset Newline newline
809 \end_inset
810
811 This is an example of a minipage environment.
812  You 
813 \begin_inset Newline newline
814 \end_inset
815
816 can put nearly everything in it, even (non-floating) 
817 \begin_inset Newline newline
818 \end_inset
819
820 figures and tables.
821  
822 \begin_inset Newline newline
823 \end_inset
824
825
826 \backslash
827 end{minipage}
828 \begin_inset Newline newline
829 \end_inset
830
831 &
832 \begin_inset Newline newline
833 \end_inset
834
835
836 \backslash
837 begin{minipage}{5cm}
838 \begin_inset Newline newline
839 \end_inset
840
841
842 \backslash
843 begin{verbatim}
844 \begin_inset Newline newline
845 \end_inset
846
847
848 \backslash
849 begin{minipage}{5cm}
850 \begin_inset Newline newline
851 \end_inset
852
853 This ...
854  
855 \begin_inset Newline newline
856 \end_inset
857
858
859 \backslash
860 end{minipage}
861 \begin_inset Newline newline
862 \end_inset
863
864
865 \backslash
866 end{verbatim}
867 \begin_inset Newline newline
868 \end_inset
869
870
871 \backslash
872 end{minipage}
873 \begin_inset Newline newline
874 \end_inset
875
876
877 \backslash
878 end{tabular}
879 \end_layout
880
881 \begin_layout LyX-Code
882
883 \end_layout
884
885 \begin_layout Standard
886 The 
887 \begin_inset Flex Code
888 status collapsed
889
890 \begin_layout Plain Layout
891 \SpecialChar TeX
892  Code
893 \end_layout
894
895 \end_inset
896
897  box containing this text is directly after this paragraph.
898  Those of you reading the manual in \SpecialChar LyX
899  will only see the \SpecialChar TeX
900  code inset.
901  Those reading a printed version of the manuals will see the actual results:
902 \begin_inset VSpace bigskip
903 \end_inset
904
905
906 \end_layout
907
908 \begin_layout Standard
909 \begin_inset ERT
910 status open
911
912 \begin_layout Plain Layout
913
914
915 \backslash
916 begin{tabular}{ll}
917 \end_layout
918
919 \begin_layout Plain Layout
920
921
922 \backslash
923 begin{minipage}{5cm}
924 \end_layout
925
926 \begin_layout Plain Layout
927
928 This is an example of a minipage environment.
929  You can put nearly everything in it, even (non-floating) figures and tables.
930  
931 \end_layout
932
933 \begin_layout Plain Layout
934
935
936 \backslash
937 end{minipage}
938 \end_layout
939
940 \begin_layout Plain Layout
941
942 &
943 \end_layout
944
945 \begin_layout Plain Layout
946
947
948 \backslash
949 begin{minipage}{5cm}
950 \end_layout
951
952 \begin_layout Plain Layout
953
954
955 \backslash
956 begin{verbatim}
957 \end_layout
958
959 \begin_layout Plain Layout
960
961
962 \backslash
963 begin{minipage}{5cm}
964 \end_layout
965
966 \begin_layout Plain Layout
967
968 This ...
969  
970 \end_layout
971
972 \begin_layout Plain Layout
973
974
975 \backslash
976 end{minipage}
977 \end_layout
978
979 \begin_layout Plain Layout
980
981
982 \backslash
983 end{verbatim}
984 \end_layout
985
986 \begin_layout Plain Layout
987
988
989 \backslash
990 end{minipage}
991 \end_layout
992
993 \begin_layout Plain Layout
994
995
996 \backslash
997 end{tabular}
998 \end_layout
999
1000 \end_inset
1001
1002
1003 \begin_inset VSpace bigskip
1004 \end_inset
1005
1006
1007 \end_layout
1008
1009 \begin_layout Standard
1010 In addition to using \SpecialChar TeX
1011  code, you can also create a separate file containing
1012  some complex \SpecialChar LaTeX
1013  structure and then use 
1014 \begin_inset Flex MenuItem
1015 status collapsed
1016
1017 \begin_layout Plain Layout
1018 Insert\SpecialChar menuseparator
1019 Child
1020 \begin_inset space ~
1021 \end_inset
1022
1023 Document
1024 \end_layout
1025
1026 \end_inset
1027
1028  to include your file (you should select the type 
1029 \begin_inset Flex Code
1030 status collapsed
1031
1032 \begin_layout Plain Layout
1033 Input
1034 \end_layout
1035
1036 \end_inset
1037
1038 ).
1039  We recommend that you only do this if you have a 
1040 \begin_inset Flex Code
1041 status collapsed
1042
1043 \begin_layout Plain Layout
1044 .tex
1045 \end_layout
1046
1047 \end_inset
1048
1049  file which you 
1050 \emph on
1051 know
1052 \emph default
1053  works already.
1054  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1055  errors.
1056 \end_layout
1057
1058 \begin_layout Standard
1059 There are a few last points to emphasize:
1060 \end_layout
1061
1062 \begin_layout Itemize
1063 \SpecialChar LyX
1064  
1065 \emph on
1066 does not
1067 \emph default
1068  check if your \SpecialChar LaTeX
1069  code is correct.
1070 \end_layout
1071
1072 \begin_layout Itemize
1073 Beware of reinventing the wheel.
1074 \end_layout
1075
1076 \begin_layout Standard
1077 On that last point, \SpecialChar LyX
1078  does have quite a few features tucked into it, and
1079  more are coming.
1080  Be sure to check the manuals to make sure that \SpecialChar LyX
1081  doesn't have such-and-such
1082  feature before you decide you have to do it by hand.
1083  Moreover, there are numerous \SpecialChar LaTeX
1084  packages out there to do all sorts of things,
1085  from labels to envelopes to fancy multipage tables.
1086  Check out 
1087 \begin_inset CommandInset href
1088 LatexCommand href
1089 name "CTAN"
1090 target "http://www.ctan.org/"
1091
1092 \end_inset
1093
1094  for details.
1095 \end_layout
1096
1097 \begin_layout Standard
1098 If you do need to do some wild and fancy things within your document, be
1099  sure to check out a good \SpecialChar LaTeX
1100  book for assistance.
1101  There are a number of them listed in the bibliography of the 
1102 \emph on
1103 User's Guide
1104 \emph default
1105 .
1106 \end_layout
1107
1108 \begin_layout Section
1109 \SpecialChar LyX
1110  and the \SpecialChar LaTeX
1111  Preamble
1112 \end_layout
1113
1114 \begin_layout Subsection
1115 About the \SpecialChar LaTeX
1116  Preamble
1117 \end_layout
1118
1119 \begin_layout Standard
1120 If you already know \SpecialChar LaTeX
1121 , there is no need to explain here what the preamble
1122  is good for.
1123  If you don't, the following will give you some ideas—we recommend again
1124  that you consult a \SpecialChar LaTeX
1125  book for further information.
1126  In any case, you should read the points below, because they explain what
1127  you can do and what you don't need to do in the \SpecialChar LaTeX
1128  preamble of a \SpecialChar LyX
1129  document.
1130 \end_layout
1131
1132 \begin_layout Standard
1133 The \SpecialChar LaTeX
1134  preamble comes at the very beginning of a document, 
1135 \emph on
1136 before
1137 \emph default
1138  the text.
1139  It serves to:
1140 \end_layout
1141
1142 \begin_layout Itemize
1143 Declare the document class.
1144  
1145 \begin_inset Newline newline
1146 \end_inset
1147
1148 \SpecialChar LyX
1149  already does this for you.
1150  If you're a seasoned \SpecialChar LaTeX
1151 -nician, and you have a custom document class you
1152  want to use, check out the 
1153 \emph on
1154 Customization Manual
1155 \emph default
1156  for information on how to make \SpecialChar LyX
1157  interface to it.
1158 \end_layout
1159
1160 \begin_layout Itemize
1161 Declare the usage of packages.
1162  
1163 \begin_inset Newline newline
1164 \end_inset
1165
1166 \SpecialChar LaTeX
1167  packages provide special commands, which are only available within a document
1168  when the package has been declared in the preamble.
1169  In addition to providing special commands, the inclusion of a package can
1170  change the document.
1171  For example, the package 
1172 \begin_inset Flex Code
1173 status collapsed
1174
1175 \begin_layout Plain Layout
1176 indentfirst
1177 \end_layout
1178
1179 \end_inset
1180
1181  forces all paragraphs to be indented.
1182  There are other packages for labels, envelopes, margins, etc.
1183  
1184 \end_layout
1185
1186 \begin_layout Itemize
1187 Set counters, variables, lengths and widths.
1188  
1189 \begin_inset Newline newline
1190 \end_inset
1191
1192 There are several \SpecialChar LaTeX
1193  counters and variables that 
1194 \emph on
1195 must
1196 \emph default
1197  be set globally from within the preamble in order to have the desired effect.
1198  (There are variables that you can set and reset inside the document, too.)
1199  Margins are a good example of something that must be set in the preamble.
1200  Another example is the label format for lists.
1201  You can actually set these just about anywhere, but it's best to do it
1202  just once, inside the preamble.
1203 \end_layout
1204
1205 \begin_layout Itemize
1206 Declare user defined commands (with 
1207 \begin_inset Flex Code
1208 status collapsed
1209
1210 \begin_layout Plain Layout
1211
1212 \backslash
1213 newcommand
1214 \end_layout
1215
1216 \end_inset
1217
1218  or 
1219 \begin_inset Flex Code
1220 status collapsed
1221
1222 \begin_layout Plain Layout
1223
1224 \backslash
1225 renewcommand
1226 \end_layout
1227
1228 \end_inset
1229
1230 ).
1231 \begin_inset Newline newline
1232 \end_inset
1233
1234 These are abbreviations for \SpecialChar LaTeX
1235  commands which appear very often inside a document.
1236  Although the preamble is a good place to declare such commands, they 
1237 \emph on
1238 can
1239 \emph default
1240  be declared anywhere (before they are used for the first time, of course).
1241  This can be useful if there is a lot of raw \SpecialChar LaTeX
1242  code in your document, which
1243  normally should not be the case.
1244 \end_layout
1245
1246 \begin_layout Standard
1247 \SpecialChar LyX
1248  adds its own set of definitions to the preamble of the 
1249 \begin_inset Flex Code
1250 status collapsed
1251
1252 \begin_layout Plain Layout
1253 .tex
1254 \end_layout
1255
1256 \end_inset
1257
1258  file it produces.
1259  This makes \SpecialChar LaTeX
1260  files generated by \SpecialChar LyX
1261  portable.
1262 \end_layout
1263
1264 \begin_layout Subsection
1265 Changing the Preamble
1266 \end_layout
1267
1268 \begin_layout Standard
1269 The commands which \SpecialChar LyX
1270  adds to the preamble of a \SpecialChar LaTeX
1271  file are fixed; you can't
1272  change them without patching \SpecialChar LyX
1273  itself.
1274  You can, however, add your own stuff to the preamble by selecting 
1275 \begin_inset Flex MenuItem
1276 status collapsed
1277
1278 \begin_layout Plain Layout
1279 \SpecialChar LaTeX
1280
1281 \begin_inset space ~
1282 \end_inset
1283
1284 Preamble
1285 \end_layout
1286
1287 \end_inset
1288
1289  in the 
1290 \begin_inset Flex MenuItem
1291 status collapsed
1292
1293 \begin_layout Plain Layout
1294 Document\SpecialChar menuseparator
1295 Settings
1296 \end_layout
1297
1298 \end_inset
1299
1300  dialog.
1301  \SpecialChar LyX
1302  adds anything in the 
1303 \begin_inset Flex MenuItem
1304 status collapsed
1305
1306 \begin_layout Plain Layout
1307 Preamble
1308 \end_layout
1309
1310 \end_inset
1311
1312  dialog to its own built-in preamble.
1313  Before adding your own declarations in the preamble, you should make sure
1314  that \SpecialChar LyX
1315  doesn't already support what you want to do.
1316  (Remember what we said about reinventing the wheel?) Also, 
1317 \emph on
1318 make sure your preamble code is correct
1319 \emph default
1320 .
1321  \SpecialChar LyX
1322  doesn't check it for you.
1323  If there is an error, you're likely to get an error like 
1324 \begin_inset Quotes eld
1325 \end_inset
1326
1327
1328 \begin_inset Flex Code
1329 status collapsed
1330
1331 \begin_layout Plain Layout
1332 Missing 
1333 \backslash
1334 begin{document}
1335 \end_layout
1336
1337 \end_inset
1338
1339
1340 \begin_inset Quotes erd
1341 \end_inset
1342
1343 .
1344  If you see this error, check your preamble.
1345 \end_layout
1346
1347 \begin_layout Subsection
1348 Examples
1349 \end_layout
1350
1351 \begin_layout Standard
1352 Here are some examples of what you can add to a preamble, and what they
1353  do.
1354 \end_layout
1355
1356 \begin_layout Subsubsection
1357 Example #1: Offsets
1358 \end_layout
1359
1360 \begin_layout Standard
1361 There are two variables under \SpecialChar LaTeX
1362  that control page position: 
1363 \begin_inset Flex Code
1364 status collapsed
1365
1366 \begin_layout Plain Layout
1367
1368 \backslash
1369 hoffset
1370 \end_layout
1371
1372 \end_inset
1373
1374  and 
1375 \begin_inset Flex Code
1376 status collapsed
1377
1378 \begin_layout Plain Layout
1379
1380 \backslash
1381 voffset
1382 \end_layout
1383
1384 \end_inset
1385
1386 .
1387  Their names should be self-explanatory.
1388  These variables are useful if you think for a moment about computer labels.
1389  Sometimes, the size of a print medium and the area of the medium that you
1390  can actually print on aren't the same.
1391  This is where 
1392 \begin_inset Flex Code
1393 status collapsed
1394
1395 \begin_layout Plain Layout
1396
1397 \backslash
1398 hoffset
1399 \end_layout
1400
1401 \end_inset
1402
1403  and 
1404 \begin_inset Flex Code
1405 status collapsed
1406
1407 \begin_layout Plain Layout
1408
1409 \backslash
1410 voffset
1411 \end_layout
1412
1413 \end_inset
1414
1415  come in.
1416 \end_layout
1417
1418 \begin_layout Standard
1419 The default values for 
1420 \begin_inset Flex Code
1421 status collapsed
1422
1423 \begin_layout Plain Layout
1424
1425 \backslash
1426 hoffset
1427 \end_layout
1428
1429 \end_inset
1430
1431  and 
1432 \begin_inset Flex Code
1433 status collapsed
1434
1435 \begin_layout Plain Layout
1436
1437 \backslash
1438 voffset
1439 \end_layout
1440
1441 \end_inset
1442
1443  are both 0
1444 \begin_inset space \thinspace{}
1445 \end_inset
1446
1447 points, i.
1448 \begin_inset space \thinspace{}
1449 \end_inset
1450
1451 e.
1452 \begin_inset space \space{}
1453 \end_inset
1454
1455 the page isn't shifted.
1456  Unfortunately, some DVI drivers always seem to shift the page.
1457  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1458  If you're using \SpecialChar LyX
1459  on a system that you don't personally maintain, and your
1460  sysadmin is a doofus, 
1461 \begin_inset Flex Code
1462 status collapsed
1463
1464 \begin_layout Plain Layout
1465
1466 \backslash
1467 hoffset
1468 \end_layout
1469
1470 \end_inset
1471
1472  and 
1473 \begin_inset Flex Code
1474 status collapsed
1475
1476 \begin_layout Plain Layout
1477
1478 \backslash
1479 voffset
1480 \end_layout
1481
1482 \end_inset
1483
1484  can save the day.
1485  Suppose your left and top margins are always 0.5
1486 \begin_inset space \thinspace{}
1487 \end_inset
1488
1489 inches too big.
1490  You can add this to the preamble:
1491 \end_layout
1492
1493 \begin_layout LyX-Code
1494
1495 \backslash
1496 setlength{
1497 \backslash
1498 hoffset}{-0.5 in}
1499 \end_layout
1500
1501 \begin_layout LyX-Code
1502
1503 \backslash
1504 setlength{
1505 \backslash
1506 voffset}{-0.5 in}
1507 \end_layout
1508
1509 \begin_layout Standard
1510 and your margins should now be correct.
1511 \end_layout
1512
1513 \begin_layout Subsubsection
1514 Example #2: Labels
1515 \end_layout
1516
1517 \begin_layout Standard
1518 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1519  There's a rather nice package, available at your nearest CTAN archive,
1520  for printing sheets of labels: 
1521 \begin_inset Flex Code
1522 status collapsed
1523
1524 \begin_layout Plain Layout
1525 labels.sty
1526 \end_layout
1527
1528 \end_inset
1529
1530 .
1531  Now, your system may not have this package installed by default.
1532  We leave that up to you to check.
1533  You'll also want to read the documentation for it; we're not going to do
1534  that for you.
1535  Since this is an example, however, we'll give you an example of how you
1536  use this package.
1537 \end_layout
1538
1539 \begin_layout Standard
1540 First, make sure you're using the 
1541 \begin_inset Flex Code
1542 status collapsed
1543
1544 \begin_layout Plain Layout
1545 article
1546 \end_layout
1547
1548 \end_inset
1549
1550  document class.
1551  Next, you need to put the following in your preamble:
1552 \end_layout
1553
1554 \begin_layout LyX-Code
1555
1556 \backslash
1557 usepackage{labels}
1558 \end_layout
1559
1560 \begin_layout LyX-Code
1561
1562 \backslash
1563 LabelCols=3
1564 \end_layout
1565
1566 \begin_layout LyX-Code
1567
1568 \backslash
1569 LabelRows=7
1570 \end_layout
1571
1572 \begin_layout LyX-Code
1573
1574 \backslash
1575 LeftBorder=8mm
1576 \end_layout
1577
1578 \begin_layout LyX-Code
1579
1580 \backslash
1581 RightBorder=8mm
1582 \end_layout
1583
1584 \begin_layout LyX-Code
1585
1586 \backslash
1587 TopBorder=9mm
1588 \end_layout
1589
1590 \begin_layout LyX-Code
1591
1592 \backslash
1593 BottomBorder=2mm
1594 \end_layout
1595
1596 \begin_layout Standard
1597 This sets things up for Avery label sheets, stock #5360.
1598  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1599  code, placing
1600  the commands 
1601 \begin_inset Flex Code
1602 status collapsed
1603
1604 \begin_layout Plain Layout
1605
1606 \backslash
1607 begin{labels}
1608 \end_layout
1609
1610 \end_inset
1611
1612  and 
1613 \begin_inset Flex Code
1614 status collapsed
1615
1616 \begin_layout Plain Layout
1617
1618 \backslash
1619 end{labels}
1620 \end_layout
1621
1622 \end_inset
1623
1624  around each label text.
1625  This and other special features of 
1626 \begin_inset Flex Code
1627 status collapsed
1628
1629 \begin_layout Plain Layout
1630 labels.sty
1631 \end_layout
1632
1633 \end_inset
1634
1635  are explained in its documentation.
1636 \end_layout
1637
1638 \begin_layout Standard
1639 Someday, someone may write a \SpecialChar LyX
1640  layout file to support this package directly.
1641  Maybe that someone is you.
1642 \end_layout
1643
1644 \begin_layout Subsubsection
1645 Example #3: Paragraph Indentation
1646 \end_layout
1647
1648 \begin_layout Standard
1649 Americans are trained to indent the first line of 
1650 \emph on
1651 every
1652 \emph default
1653  paragraph.
1654  As with all of their other weird quirks, most Americans will whine and
1655  moan until they can have their way and indent the first line of all paragraphs.
1656  (Yes, we're joking.
1657  (We are?) 
1658 \emph on
1659 Yeah
1660 \emph default
1661 , we are.)
1662 \end_layout
1663
1664 \begin_layout Standard
1665 Of course, this behavior isn't standard typography.
1666  In books, you typically only indent the first line of a paragraph 
1667 \emph on
1668 if
1669 \emph default
1670  it follows another one.
1671  The idea behind indenting the first line of a paragraph is to distinguish
1672  neighboring paragraphs from one another.
1673  If there is no previous paragraph—for example, if it follows a figure or
1674  is the first paragraph in a section—then there is no need for indentation.
1675  
1676 \end_layout
1677
1678 \begin_layout Standard
1679 If you're a typical American (we're still joking!), though, you don't care
1680  about such esoteric things; you want your indentation! Add this to the
1681  preamble:
1682 \end_layout
1683
1684 \begin_layout LyX-Code
1685
1686 \backslash
1687 usepackage{indentfirst}
1688 \end_layout
1689
1690 \begin_layout Standard
1691 If your \SpecialChar TeX
1692  distribution isn't braindead, you'll have this package, and all
1693  of your paragraphs will get the indentation the Founding Fathers intended
1694  they should have.
1695 \end_layout
1696
1697 \begin_layout Subsubsection
1698 Example #4: This Document
1699 \end_layout
1700
1701 \begin_layout Standard
1702 You can also check out the preamble of this document to get an idea of some
1703  of the advanced things you can do.
1704 \end_layout
1705
1706 \begin_layout Section
1707 \SpecialChar LyX
1708  and \SpecialChar LaTeX
1709  Errors
1710 \end_layout
1711
1712 \begin_layout Standard
1713 When \SpecialChar LyX
1714  calls \SpecialChar LaTeX
1715 , it tells \SpecialChar LaTeX
1716  to blithely ignore any errors and keep going.
1717  It then uses the logfile from the \SpecialChar LaTeX
1718  run to do a post-mortem.
1719  After analyzing the logfile, \SpecialChar LyX
1720  displays a dialog listing the errors.
1721  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1722  file
1723  where the error occurred.
1724 \begin_inset Foot
1725 status collapsed
1726
1727 \begin_layout Plain Layout
1728 Well, usually.
1729  Analyzing the logfile is a tough job, and \SpecialChar LyX
1730  doesn't always go to the right
1731  line.
1732  There are also cases where \SpecialChar LaTeX
1733  reports the error on one line, but the actual
1734  error is earlier.
1735  This is not unlike forgetting a closing brace in a program: You'll get
1736  an error, but only later.
1737 \end_layout
1738
1739 \end_inset
1740
1741
1742 \end_layout
1743
1744 \begin_layout Standard
1745 Some folks also like to look at the log file directly: It is available from
1746  
1747 \begin_inset Flex MenuItem
1748 status collapsed
1749
1750 \begin_layout Plain Layout
1751 Document
1752 \bar under
1753 \SpecialChar menuseparator
1754
1755 \bar default
1756 Latex
1757 \begin_inset space ~
1758 \end_inset
1759
1760 Log
1761 \end_layout
1762
1763 \end_inset
1764
1765 .
1766  There are some fairly common error messages and warnings.
1767  We'll cover those here.
1768  You should look at a good \SpecialChar LaTeX
1769  book for a complete listing.
1770 \end_layout
1771
1772 \begin_layout Itemize
1773 \begin_inset Flex Code
1774 status collapsed
1775
1776 \begin_layout Plain Layout
1777 \SpecialChar LaTeX
1778  Warning
1779 \end_layout
1780
1781 \end_inset
1782
1783
1784 \begin_inset Newline newline
1785 \end_inset
1786
1787 Anything beginning with these words is a warning message for the purpose
1788  of 
1789 \begin_inset Quotes eld
1790 \end_inset
1791
1792 debugging
1793 \begin_inset Quotes erd
1794 \end_inset
1795
1796  the \SpecialChar LaTeX
1797  code itself.
1798  You'll get messages like this if you added or changed cross-references
1799  or bibliography entries, in which case, \SpecialChar LaTeX
1800  is trying to tell you that you
1801  need to make another run.
1802  You can by-and-large ignore these.
1803 \end_layout
1804
1805 \begin_layout Itemize
1806 \begin_inset Flex Code
1807 status collapsed
1808
1809 \begin_layout Plain Layout
1810 \SpecialChar LaTeX
1811  Font Warning
1812 \end_layout
1813
1814 \end_inset
1815
1816
1817 \begin_inset Newline newline
1818 \end_inset
1819
1820 Another warning message, this time about fonts which \SpecialChar LaTeX
1821  couldn't find.
1822  The rest of the message will often say something about a replacement font
1823  that \SpecialChar LaTeX
1824  used.
1825  You can safely ignore these, too.
1826 \end_layout
1827
1828 \begin_layout Itemize
1829 \begin_inset Flex Code
1830 status collapsed
1831
1832 \begin_layout Plain Layout
1833 Overfull 
1834 \backslash
1835 hbox
1836 \end_layout
1837
1838 \end_inset
1839
1840
1841 \begin_inset Newline newline
1842 \end_inset
1843
1844 \SpecialChar LaTeX
1845  absolutely 
1846 \emph on
1847 loves
1848 \emph default
1849  to spew these out.
1850  They are warnings about lines that were too long and run past the right
1851  margin.
1852  Almost always, this is unnoticeable in the final output.
1853  (It can be just a point or two.) Or, only one or two characters extend past
1854  the margin.
1855  \SpecialChar LaTeX
1856  seems to generate at least one of these messages for just about any document
1857  you write.
1858 \begin_inset Newline newline
1859 \end_inset
1860
1861 You can ignore these messages.
1862  Your eyes will tell you if there's a problem with something that's too
1863  wide; just look at the output.
1864 \begin_inset Foot
1865 status collapsed
1866
1867 \begin_layout Plain Layout
1868 You can also enable the `draft' option in 
1869 \begin_inset Flex MenuItem
1870 status collapsed
1871
1872 \begin_layout Plain Layout
1873 Document
1874 \bar under
1875 \SpecialChar menuseparator
1876
1877 \bar default
1878 Settings
1879 \end_layout
1880
1881 \end_inset
1882
1883 , and then \SpecialChar LaTeX
1884  will draw a black box in the margin of lines that are overfull.
1885 \end_layout
1886
1887 \end_inset
1888
1889
1890 \end_layout
1891
1892 \begin_layout Itemize
1893 \begin_inset Flex Code
1894 status collapsed
1895
1896 \begin_layout Plain Layout
1897 Underfull 
1898 \backslash
1899 hbox
1900 \end_layout
1901
1902 \end_inset
1903
1904
1905 \begin_inset Newline newline
1906 \end_inset
1907
1908 Not quite as common as its cousin.
1909  \SpecialChar LaTeX
1910  seems to like to print lines that are a bit too wide as opposed to ones
1911  that are a bit too narrow.
1912  We have no idea why.
1913 \end_layout
1914
1915 \begin_layout Itemize
1916 \begin_inset Flex Code
1917 status collapsed
1918
1919 \begin_layout Plain Layout
1920 Overfull 
1921 \backslash
1922 vbox
1923 \end_layout
1924
1925 \end_inset
1926
1927  and 
1928 \begin_inset Flex Code
1929 status collapsed
1930
1931 \begin_layout Plain Layout
1932 Underfull 
1933 \backslash
1934 vbox
1935 \end_layout
1936
1937 \end_inset
1938
1939
1940 \begin_inset Newline newline
1941 \end_inset
1942
1943 Warnings about troubles breaking the page.
1944  Once again, just look at the output.
1945  Your eyes will tell you where something has gone wrong.
1946 \end_layout
1947
1948 \begin_layout Itemize
1949 \begin_inset Flex Code
1950 status collapsed
1951
1952 \begin_layout Plain Layout
1953 \SpecialChar LaTeX
1954  Error: File 
1955 \begin_inset Quotes els
1956 \end_inset
1957
1958 Xxxx
1959 \begin_inset Quotes ers
1960 \end_inset
1961
1962  not found
1963 \end_layout
1964
1965 \end_inset
1966
1967
1968 \begin_inset Newline newline
1969 \end_inset
1970
1971 The file 
1972 \begin_inset Quotes eld
1973 \end_inset
1974
1975 Xxxx
1976 \begin_inset Quotes erd
1977 \end_inset
1978
1979  isn't installed on this system.
1980  This usually appears because some package your document needs isn't installed.
1981  If you didn't touch the preamble or didn't use the 
1982 \begin_inset Flex Code
1983 status collapsed
1984
1985 \begin_layout Plain Layout
1986
1987 \backslash
1988 usepackage{}
1989 \end_layout
1990
1991 \end_inset
1992
1993  command, then one of the packages \SpecialChar LyX
1994  tried to load is missing.
1995  Use 
1996 \begin_inset Flex MenuItem
1997 status collapsed
1998
1999 \begin_layout Plain Layout
2000 Help\SpecialChar menuseparator
2001 \SpecialChar LaTeX
2002  Configuration
2003 \end_layout
2004
2005 \end_inset
2006
2007  to get a list of packages that \SpecialChar LyX
2008  knows about.
2009  This file is updated whenever you reconfigure \SpecialChar LyX
2010  (using 
2011 \begin_inset Flex MenuItem
2012 status collapsed
2013
2014 \begin_layout Plain Layout
2015 Tools\SpecialChar menuseparator
2016 Reconfigure
2017 \end_layout
2018
2019 \end_inset
2020
2021 ) and tells you which packages have been detected and what they do.
2022 \begin_inset Newline newline
2023 \end_inset
2024
2025 If you did use the 
2026 \begin_inset Flex Code
2027 status collapsed
2028
2029 \begin_layout Plain Layout
2030
2031 \backslash
2032 usepackage{}
2033 \end_layout
2034
2035 \end_inset
2036
2037  command and the package in question isn't installed, then you'll need to
2038  install it yourself.
2039 \end_layout
2040
2041 \begin_layout Itemize
2042 \begin_inset Flex Code
2043 status collapsed
2044
2045 \begin_layout Plain Layout
2046 \SpecialChar LaTeX
2047  Error: Unknown option
2048 \end_layout
2049
2050 \end_inset
2051
2052
2053 \begin_inset Newline newline
2054 \end_inset
2055
2056 Error messages beginning with this are trying to tell you that you specified
2057  a bad or undefined option to a package.
2058  Check the package's documentation.
2059 \end_layout
2060
2061 \begin_layout Itemize
2062 \begin_inset Flex Code
2063 status collapsed
2064
2065 \begin_layout Plain Layout
2066 Undefined control sequence
2067 \end_layout
2068
2069 \end_inset
2070
2071
2072 \begin_inset Newline newline
2073 \end_inset
2074
2075 If you've inserted \SpecialChar LaTeX
2076  code into your document, but made a typo, you'll get
2077  one of these.
2078  You may have forgotten to load a package.
2079  In any case, this error message usually means that you used an undefined
2080  command.
2081  
2082 \end_layout
2083
2084 \begin_layout Standard
2085 There are other error and warning messages.
2086  Some are self-explanatory.
2087  These are usually \SpecialChar LaTeX
2088  messages.
2089  Others are downright cryptic.
2090  These are usually \SpecialChar TeX
2091  error messages, and we really have 
2092 \emph on
2093 no clue
2094 \emph default
2095  what they mean or how to decipher them.
2096  No-one does.
2097 \end_layout
2098
2099 \begin_layout Standard
2100 There's a general sequence you should follow if you get error messages:
2101 \end_layout
2102
2103 \begin_layout Enumerate
2104 Look at the \SpecialChar LaTeX
2105  code you inserted for typos.
2106 \end_layout
2107
2108 \begin_layout Enumerate
2109 If there are no typos, check that you used the command(s) correctly.
2110 \end_layout
2111
2112 \begin_layout Enumerate
2113 If you get a bunch of error boxes piled up at the very top of the document—and
2114  especially if you see a 
2115 \begin_inset Quotes eld
2116 \end_inset
2117
2118
2119 \begin_inset Flex Code
2120 status collapsed
2121
2122 \begin_layout Plain Layout
2123 Missing 
2124 \backslash
2125 begin{document}
2126 \end_layout
2127
2128 \end_inset
2129
2130
2131 \begin_inset Quotes erd
2132 \end_inset
2133
2134  error—it means that there are errors in the preamble.
2135  Start debugging your preamble.
2136 \end_layout
2137
2138 \begin_layout Enumerate
2139 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2140  code to the
2141  document, the first suspect is your \SpecialChar LaTeX
2142  distribution itself.
2143  Check for missing packages and install them.
2144 \end_layout
2145
2146 \begin_layout Enumerate
2147 Okay, so there are no missing packages.
2148  Did you use any of the fine-tuning options in \SpecialChar LyX
2149 ? Specifically, did you 
2150 \emph on
2151 misuse
2152 \emph default
2153  any of them, like trying to manually insert lots of 
2154 \begin_inset Flex Code
2155 status collapsed
2156
2157 \begin_layout Plain Layout
2158 Protected
2159 \begin_inset space ~
2160 \end_inset
2161
2162 Blanks
2163 \end_layout
2164
2165 \end_inset
2166
2167
2168 \begin_inset Flex Code
2169 status collapsed
2170
2171 \begin_layout Plain Layout
2172 Linebreaks
2173 \end_layout
2174
2175 \end_inset
2176
2177 , or 
2178 \begin_inset Flex Code
2179 status collapsed
2180
2181 \begin_layout Plain Layout
2182 Pagebreaks
2183 \end_layout
2184
2185 \end_inset
2186
2187 ? Did you try to kludge something together with these instead of using the
2188  appropriate paragraph environment?
2189 \end_layout
2190
2191 \begin_layout Enumerate
2192 All right, you didn't use any of the fine-tuning options, you played by
2193  the rules.
2194  Did you try to pull a fancy maneuver? Did you do something funky inside
2195  a table or an equation, like inserting a graphic into a table cell?
2196 \end_layout
2197
2198 \begin_layout Enumerate
2199 Do you have long sections of text where \SpecialChar LaTeX
2200  cannot find a place to break a
2201  line? By default, \SpecialChar LaTeX
2202  is rather strict about how much extra inter-word spacing
2203  it will add in order to break a line.
2204  Preferably, you should rework the paragraph to avoid the problem.
2205  If this isn't an option, you can wrap your text in 
2206 \begin_inset Flex Code
2207 status collapsed
2208
2209 \begin_layout Plain Layout
2210
2211 \backslash
2212 sloppypar
2213 \end_layout
2214
2215 \end_inset
2216
2217  to make \SpecialChar LaTeX
2218 's line breaking more, well, sloppy.
2219 \end_layout
2220
2221 \begin_layout Enumerate
2222 Did you go overboard with the nesting? \SpecialChar LyX
2223  (currently) doesn't check to make
2224  sure you're in the limits for nesting environments.
2225  If you nested a bunch of environments to the 
2226 \begin_inset Formula $17^{\mathrm{th}}$
2227 \end_inset
2228
2229  level, that's the problem.
2230  (The limit in \SpecialChar LaTeX
2231  is five.)
2232 \end_layout
2233
2234 \begin_layout Enumerate
2235 Okay, you didn't get any error messages, but your output looks awful.
2236  If you have a table or figure that's too wide or long for the page, you
2237  need to:
2238 \begin_inset Separator parbreak
2239 \end_inset
2240
2241
2242 \end_layout
2243
2244 \begin_deeper
2245 \begin_layout Enumerate
2246 rescale the figure so it fits.
2247 \end_layout
2248
2249 \begin_layout Enumerate
2250 trim down the table so it fits.
2251 \end_layout
2252
2253 \end_deeper
2254 \begin_layout Enumerate
2255 If something else is wrong with the output, and you didn't try to pull anything
2256  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2257 \end_layout
2258
2259 \begin_layout Standard
2260 If all this doesn't help—well, then 
2261 \emph on
2262 perhaps
2263 \emph default
2264  you might have found a bug in \SpecialChar LyX
2265 \SpecialChar ldots
2266 .
2267 \end_layout
2268
2269 \begin_layout Chapter
2270 Supplemental Tools
2271 \end_layout
2272
2273 \begin_layout Section
2274 Customizing Bibliographies with Bib\SpecialChar TeX
2275
2276 \end_layout
2277
2278 \begin_layout Standard
2279 The most basic information about how to use Bib\SpecialChar TeX
2280  with \SpecialChar LyX
2281  is contained in the
2282  section 
2283 \emph on
2284 Bibliography databases (Bib\SpecialChar TeX
2285 )
2286 \emph default
2287  of the 
2288 \emph on
2289 User's Guide
2290 \emph default
2291 .
2292  The following subsections explain special bibliography features supported
2293  by \SpecialChar LyX
2294 .
2295 \end_layout
2296
2297 \begin_layout Subsection
2298 Alternative Citation Styles
2299 \end_layout
2300
2301 \begin_layout Standard
2302 Standard Bib\SpecialChar TeX
2303  uses numbers (e.
2304 \begin_inset space \thinspace{}
2305 \end_inset
2306
2307 g.
2308 \begin_inset space \space{}
2309 \end_inset
2310
2311
2312 \begin_inset Quotes eld
2313 \end_inset
2314
2315 [12]
2316 \begin_inset Quotes erd
2317 \end_inset
2318
2319 ) to refer to a cited work.
2320  However, in many scientific disciplines, other citation styles are in use.
2321  The most common one is the author-year style (e.
2322 \begin_inset space \thinspace{}
2323 \end_inset
2324
2325 g.
2326 \begin_inset space \space{}
2327 \end_inset
2328
2329
2330 \begin_inset Quotes eld
2331 \end_inset
2332
2333 Knuth 1984a
2334 \begin_inset Quotes erd
2335 \end_inset
2336
2337 ).
2338  \SpecialChar LyX
2339  supports two packages that provide this style, 
2340 \begin_inset Flex Code
2341 status collapsed
2342
2343 \begin_layout Plain Layout
2344 natbib
2345 \end_layout
2346
2347 \end_inset
2348
2349  and 
2350 \begin_inset Flex Code
2351 status collapsed
2352
2353 \begin_layout Plain Layout
2354 jurabib
2355 \end_layout
2356
2357 \end_inset
2358
2359 .
2360  Both packages have their pros and cons, which cannot be listed in detail.
2361  If you only want to have simple author-year (or author-numerical) style,
2362  or if you want to use one of the countless style files for 
2363 \begin_inset Flex Code
2364 status collapsed
2365
2366 \begin_layout Plain Layout
2367 natbib
2368 \end_layout
2369
2370 \end_inset
2371
2372 , then the established 
2373 \begin_inset Flex Code
2374 status collapsed
2375
2376 \begin_layout Plain Layout
2377 natbib
2378 \end_layout
2379
2380 \end_inset
2381
2382  package is probably your choice.
2383  If you need special features like short title references, ibidem etc., you
2384  might consider the 
2385 \begin_inset Flex Code
2386 status collapsed
2387
2388 \begin_layout Plain Layout
2389 jurabib
2390 \end_layout
2391
2392 \end_inset
2393
2394  package.
2395 \end_layout
2396
2397 \begin_layout Standard
2398 The handling of both packages in \SpecialChar LyX
2399  is basically the same.
2400  Go to 
2401 \begin_inset Flex MenuItem
2402 status collapsed
2403
2404 \begin_layout Plain Layout
2405 Document\SpecialChar menuseparator
2406 Settings
2407 \end_layout
2408
2409 \end_inset
2410
2411  and select under 
2412 \begin_inset Flex MenuItem
2413 status collapsed
2414
2415 \begin_layout Plain Layout
2416 Bibliography
2417 \end_layout
2418
2419 \end_inset
2420
2421  the option 
2422 \begin_inset Flex MenuItem
2423 status collapsed
2424
2425 \begin_layout Plain Layout
2426 Natbib
2427 \end_layout
2428
2429 \end_inset
2430
2431  or 
2432 \begin_inset Flex MenuItem
2433 status collapsed
2434
2435 \begin_layout Plain Layout
2436 Jurabib
2437 \end_layout
2438
2439 \end_inset
2440
2441 .
2442  With both packages, you will get some extra features in the citation dialog
2443  and you can select the style of the reference (
2444 \begin_inset Quotes eld
2445 \end_inset
2446
2447 Knuth 1984
2448 \begin_inset Quotes erd
2449 \end_inset
2450
2451
2452 \begin_inset Quotes eld
2453 \end_inset
2454
2455 Knuth (1984)
2456 \begin_inset Quotes erd
2457 \end_inset
2458
2459
2460 \begin_inset Quotes eld
2461 \end_inset
2462
2463 Knuth, 1984
2464 \begin_inset Quotes erd
2465 \end_inset
2466
2467
2468 \begin_inset Quotes eld
2469 \end_inset
2470
2471 1984
2472 \begin_inset Quotes erd
2473 \end_inset
2474
2475  etc.).
2476  Note that both packages need specifically designed style files.
2477  They both ship their own, but there are lots of additional style files,
2478  and there is even an interactive style file builder
2479 \begin_inset Foot
2480 status collapsed
2481
2482 \begin_layout Plain Layout
2483 See 
2484 \begin_inset Flex URL
2485 status open
2486
2487 \begin_layout Plain Layout
2488
2489 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2490 \end_layout
2491
2492 \end_inset
2493
2494
2495 \end_layout
2496
2497 \end_inset
2498
2499  for 
2500 \begin_inset Flex Code
2501 status collapsed
2502
2503 \begin_layout Plain Layout
2504 natbib
2505 \end_layout
2506
2507 \end_inset
2508
2509 .
2510 \end_layout
2511
2512 \begin_layout Subsection
2513 Sectioned Bibliographies
2514 \end_layout
2515
2516 \begin_layout Standard
2517 Sometimes you might need to divide your bibliography into several sections.
2518  If you are for instance a historian, the possibility to separate sources
2519  and scientific works is most likely a 
2520 \begin_inset Quotes eld
2521 \end_inset
2522
2523 must have
2524 \begin_inset Quotes erd
2525 \end_inset
2526
2527 .
2528  Unfortunately, Bib\SpecialChar TeX
2529  itself does not allow you to do this.
2530  But with the help of some \SpecialChar LaTeX
2531  packages, Bib\SpecialChar TeX
2532  can be extended to fit your needs.
2533 \end_layout
2534
2535 \begin_layout Standard
2536 \SpecialChar LyX
2537  provides native support for one of these packages, 
2538 \family typewriter
2539 bibtopic
2540 \family default
2541 .
2542 \begin_inset Foot
2543 status collapsed
2544
2545 \begin_layout Plain Layout
2546 Available from 
2547 \begin_inset Flex URL
2548 status open
2549
2550 \begin_layout Plain Layout
2551
2552 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2553 \end_layout
2554
2555 \end_inset
2556
2557
2558 \end_layout
2559
2560 \end_inset
2561
2562  The advantage of this package (compared to other packages like 
2563 \family typewriter
2564 multibib
2565 \family default
2566 ) is that you don't need to define new citation commands.
2567  Instead, you need to prepare different bibliographic databases which include
2568  the entries for the different sections of the bibliography.
2569  For example: If you want to divide your bibliography into the sections
2570  
2571 \begin_inset Quotes eld
2572 \end_inset
2573
2574 Sources
2575 \begin_inset Quotes erd
2576 \end_inset
2577
2578  and 
2579 \begin_inset Quotes eld
2580 \end_inset
2581
2582 Scientific works
2583 \begin_inset Quotes erd
2584 \end_inset
2585
2586 , you first need to create two bibliographic databases, e.
2587 \begin_inset space \thinspace{}
2588 \end_inset
2589
2590 g.
2591 \begin_inset space \space{}
2592 \end_inset
2593
2594
2595 \begin_inset Flex Code
2596 status collapsed
2597
2598 \begin_layout Plain Layout
2599 sources.bib
2600 \end_layout
2601
2602 \end_inset
2603
2604  and 
2605 \begin_inset Flex Code
2606 status collapsed
2607
2608 \begin_layout Plain Layout
2609 scientific.bib
2610 \end_layout
2611
2612 \end_inset
2613
2614 .
2615  
2616 \end_layout
2617
2618 \begin_layout Standard
2619 Go to 
2620 \begin_inset Flex MenuItem
2621 status collapsed
2622
2623 \begin_layout Plain Layout
2624 Document\SpecialChar menuseparator
2625 Settings
2626 \end_layout
2627
2628 \end_inset
2629
2630  and check under 
2631 \begin_inset Flex MenuItem
2632 status collapsed
2633
2634 \begin_layout Plain Layout
2635 Bibliography
2636 \end_layout
2637
2638 \end_inset
2639
2640  the option 
2641 \begin_inset Flex MenuItem
2642 status collapsed
2643
2644 \begin_layout Plain Layout
2645 Sectioned bibliography
2646 \end_layout
2647
2648 \end_inset
2649
2650 .
2651  Now you can insert multiple Bib\SpecialChar TeX
2652  bibliographies, one for each section of
2653  your bibliography.
2654  Returning to our example: Insert the Bib\SpecialChar TeX
2655  bibliography 
2656 \begin_inset Flex Code
2657 status collapsed
2658
2659 \begin_layout Plain Layout
2660 sources.bib
2661 \end_layout
2662
2663 \end_inset
2664
2665  and a second one for the database 
2666 \begin_inset Flex Code
2667 status collapsed
2668
2669 \begin_layout Plain Layout
2670 scientific.bib
2671 \end_layout
2672
2673 \end_inset
2674
2675 .
2676  You are free to use the same or different styles for each section.
2677  Additionally, you can choose if the bibliography section should contain
2678  
2679 \begin_inset Quotes eld
2680 \end_inset
2681
2682 all cited references
2683 \begin_inset Quotes erd
2684 \end_inset
2685
2686  of the specified database(s) (which is the default), 
2687 \begin_inset Quotes eld
2688 \end_inset
2689
2690 all uncited references
2691 \begin_inset Quotes erd
2692 \end_inset
2693
2694  or even 
2695 \begin_inset Quotes eld
2696 \end_inset
2697
2698 all references
2699 \begin_inset Quotes erd
2700 \end_inset
2701
2702 .
2703  This might be useful if you would like to separate your bibliography into
2704  three sections: 
2705 \begin_inset Quotes eld
2706 \end_inset
2707
2708 Cited sources
2709 \begin_inset Quotes erd
2710 \end_inset
2711
2712
2713 \begin_inset Quotes eld
2714 \end_inset
2715
2716 Uncited sources
2717 \begin_inset Quotes erd
2718 \end_inset
2719
2720 , and 
2721 \begin_inset Quotes eld
2722 \end_inset
2723
2724 Scientific works
2725 \begin_inset Quotes erd
2726 \end_inset
2727
2728 .
2729  The titles for the sections can be added as ordinary sections or subsections.
2730  Since 
2731 \begin_inset Flex Code
2732 status collapsed
2733
2734 \begin_layout Plain Layout
2735 bibtopic
2736 \end_layout
2737
2738 \end_inset
2739
2740  removes the bibliography title, you have to manually re-add that, too (as
2741  a chapter* or section*, for instance).
2742 \end_layout
2743
2744 \begin_layout Subsection
2745 Multiple Bibliographies
2746 \end_layout
2747
2748 \begin_layout Standard
2749 Multiple bibliographies, e.
2750 \begin_inset space \thinspace{}
2751 \end_inset
2752
2753 g.
2754 \begin_inset space \space{}
2755 \end_inset
2756
2757 a bibliography for each section or chapter of the document, are not supported
2758  by Bib\SpecialChar TeX
2759  itself.
2760  But the 
2761 \begin_inset Flex Code
2762 status collapsed
2763
2764 \begin_layout Plain Layout
2765 bibtopic
2766 \end_layout
2767
2768 \end_inset
2769
2770  package, which is used for the creation of sectioned bibliographies in
2771  \SpecialChar LyX
2772  (see the previous section), provides an easy way to solve this task, if
2773  you are willing to use some 
2774 \begin_inset Flex MenuItem
2775 status collapsed
2776
2777 \begin_layout Plain Layout
2778 \SpecialChar TeX
2779  Code
2780 \end_layout
2781
2782 \end_inset
2783
2784  (see section
2785 \begin_inset space ~
2786 \end_inset
2787
2788
2789 \begin_inset CommandInset ref
2790 LatexCommand ref
2791 reference "sec:Inserting-TeX-Code"
2792
2793 \end_inset
2794
2795 ).
2796 \begin_inset Foot
2797 status collapsed
2798
2799 \begin_layout Plain Layout
2800 An alternative approach is to use the 
2801 \begin_inset Flex Code
2802 status collapsed
2803
2804 \begin_layout Plain Layout
2805 chapterbib
2806 \end_layout
2807
2808 \end_inset
2809
2810  or 
2811 \begin_inset Flex Code
2812 status collapsed
2813
2814 \begin_layout Plain Layout
2815 bibunits
2816 \end_layout
2817
2818 \end_inset
2819
2820  package, respectively.
2821 \end_layout
2822
2823 \end_inset
2824
2825
2826 \end_layout
2827
2828 \begin_layout Standard
2829 First go to 
2830 \begin_inset Flex MenuItem
2831 status collapsed
2832
2833 \begin_layout Plain Layout
2834 Document\SpecialChar menuseparator
2835 Settings
2836 \end_layout
2837
2838 \end_inset
2839
2840  and under 
2841 \begin_inset Flex MenuItem
2842 status collapsed
2843
2844 \begin_layout Plain Layout
2845 Bibliography
2846 \end_layout
2847
2848 \end_inset
2849
2850  check 
2851 \begin_inset Flex MenuItem
2852 status collapsed
2853
2854 \begin_layout Plain Layout
2855 Sectioned bibliography
2856 \end_layout
2857
2858 \end_inset
2859
2860 .
2861  In the document, you have to enclose the sections, which shall contain
2862  their own bibliography (including the Bib\SpecialChar TeX
2863  bibliography itself), between
2864  
2865 \begin_inset Flex Code
2866 status collapsed
2867
2868 \begin_layout Plain Layout
2869
2870 \backslash
2871 begin{btUnit}
2872 \end_layout
2873
2874 \end_inset
2875
2876  and 
2877 \begin_inset Flex Code
2878 status collapsed
2879
2880 \begin_layout Plain Layout
2881
2882 \backslash
2883 end{btUnit}
2884 \end_layout
2885
2886 \end_inset
2887
2888  (those commands have to be inserted as \SpecialChar TeX
2889  code).
2890  The bibliography will contain all references that have been cited in the
2891  current 
2892 \begin_inset Flex Code
2893 status collapsed
2894
2895 \begin_layout Plain Layout
2896 btUnit
2897 \end_layout
2898
2899 \end_inset
2900
2901 .
2902  
2903 \series bold
2904 Note:
2905 \series default
2906  If you are using this approach, then every citation reference has to be
2907  inside some 
2908 \begin_inset Flex Code
2909 status collapsed
2910
2911 \begin_layout Plain Layout
2912 btUnit
2913 \end_layout
2914
2915 \end_inset
2916
2917 .
2918  Also, the 
2919 \begin_inset Flex Code
2920 status collapsed
2921
2922 \begin_layout Plain Layout
2923 btUnit
2924 \end_layout
2925
2926 \end_inset
2927
2928 s cannot be nested.
2929 \end_layout
2930
2931 \begin_layout Section
2932 Multipart Documents
2933 \end_layout
2934
2935 \begin_layout Subsection
2936 General Operation
2937 \end_layout
2938
2939 \begin_layout Standard
2940 When you are working on a large file with many sections, it is often convenient
2941  to break up the document into several files, or perhaps you have something
2942  where a table may change from time to time, but the preceding text does
2943  not.
2944  In these cases, you should seriously consider using multipart documents.
2945  For example, scientific papers often have five major sections: the introduction
2946 , observations, results, discussion, and conclusion.
2947  Each of these could be its own separate \SpecialChar LyX
2948  file, with one 
2949 \begin_inset Quotes eld
2950 \end_inset
2951
2952 master
2953 \begin_inset Quotes erd
2954 \end_inset
2955
2956  file which contains the title, authors, abstract, references, etc., plus
2957  the five included files.
2958  It is important to note that each of these files is a full \SpecialChar LyX
2959  file which
2960  can be formatted and printed on its own, as well as included in a master
2961  file.
2962  Each of these files must have the same document class, however—don't attempt
2963  to mix book classes with article classes.
2964  You may also include \SpecialChar LaTeX
2965  files; however, these files must not have their own
2966  preamble (i.
2967 \begin_inset space \thinspace{}
2968 \end_inset
2969
2970 e.
2971 \begin_inset space \space{}
2972 \end_inset
2973
2974 everything up to and including the 
2975 \begin_inset Flex Code
2976 status collapsed
2977
2978 \begin_layout Plain Layout
2979
2980 \backslash
2981 begin{document}
2982 \end_layout
2983
2984 \end_inset
2985
2986  line as well as the 
2987 \begin_inset Flex Code
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991
2992 \backslash
2993 end{document}
2994 \end_layout
2995
2996 \end_inset
2997
2998  line must be deleted) or else errors will be generated when you try to
2999  make a DVI file.
3000 \end_layout
3001
3002 \begin_layout Standard
3003 \SpecialChar LyX
3004  allows you to include files quite easily with 
3005 \begin_inset Flex MenuItem
3006 status collapsed
3007
3008 \begin_layout Plain Layout
3009 Insert\SpecialChar menuseparator
3010 ChiId
3011 \begin_inset space ~
3012 \end_inset
3013
3014 Document
3015 \end_layout
3016
3017 \end_inset
3018
3019 .
3020  When you click on this selection a small box is inserted into the file
3021  at the current cursor location.
3022  Clicking on the box raises a dialog which allows you to select the file
3023  to be included, and the method of its inclusion.
3024  
3025 \end_layout
3026
3027 \begin_layout Standard
3028 The file selection box should by now be obvious.
3029  The three inclusion methods are 
3030 \begin_inset Quotes eld
3031 \end_inset
3032
3033 include
3034 \begin_inset Quotes erd
3035 \end_inset
3036
3037
3038 \begin_inset Quotes eld
3039 \end_inset
3040
3041 input
3042 \begin_inset Quotes erd
3043 \end_inset
3044
3045 , and 
3046 \begin_inset Quotes eld
3047 \end_inset
3048
3049 verbatim
3050 \begin_inset Quotes erd
3051 \end_inset
3052
3053 .
3054  The difference between 
3055 \begin_inset Quotes eld
3056 \end_inset
3057
3058 include
3059 \begin_inset Quotes erd
3060 \end_inset
3061
3062  and 
3063 \begin_inset Quotes eld
3064 \end_inset
3065
3066 input
3067 \begin_inset Quotes erd
3068 \end_inset
3069
3070  is really only meaningful to \SpecialChar LaTeX
3071 perts, but the practical difference is that
3072  files that are 
3073 \begin_inset Quotes eld
3074 \end_inset
3075
3076 included
3077 \begin_inset Quotes erd
3078 \end_inset
3079
3080  are typeset beginning on a new page, while files that are 
3081 \begin_inset Quotes eld
3082 \end_inset
3083
3084 inputted
3085 \begin_inset Quotes erd
3086 \end_inset
3087
3088  are typeset starting on the current page.
3089 \end_layout
3090
3091 \begin_layout Standard
3092 Generally, the master file is converted into a full \SpecialChar LaTeX
3093  file before typesetting,
3094  while the included files are converted to \SpecialChar LaTeX
3095  files that do not have all the
3096  preamble information.
3097 \end_layout
3098
3099 \begin_layout Standard
3100
3101 \begin_inset Quotes eld
3102 \end_inset
3103
3104 verbatim
3105 \begin_inset Quotes erd
3106 \end_inset
3107
3108  included file allows you to include a file typeset exactly as it appears
3109  in the file, i.
3110 \begin_inset space \thinspace{}
3111 \end_inset
3112
3113 e.
3114 \begin_inset space \space{}
3115 \end_inset
3116
3117 in 
3118 \begin_inset Flex Code
3119 status collapsed
3120
3121 \begin_layout Plain Layout
3122 verbatim
3123 \end_layout
3124
3125 \end_inset
3126
3127  mode, with the characters set in a fixed-width typewriter font.
3128  Normally, spaces in this file are invisible, though two consecutive spaces
3129  are conserved, unlike \SpecialChar LyX
3130 's normal treatment of spaces.
3131  However, setting the 
3132 \begin_inset Flex MenuItem
3133 status collapsed
3134
3135 \begin_layout Plain Layout
3136 Mark
3137 \begin_inset space ~
3138 \end_inset
3139
3140 spaces
3141 \begin_inset space ~
3142 \end_inset
3143
3144 in
3145 \begin_inset space ~
3146 \end_inset
3147
3148 output
3149 \end_layout
3150
3151 \end_inset
3152
3153  checkbox typesets a mark to unambiguously define the presence of a space.
3154  
3155 \end_layout
3156
3157 \begin_layout Subsection
3158 Cross-References Between Files
3159 \end_layout
3160
3161 \begin_layout Standard
3162 \begin_inset Box Shadowbox
3163 position "t"
3164 hor_pos "c"
3165 has_inner_box 1
3166 inner_pos "t"
3167 use_parbox 0
3168 use_makebox 0
3169 width "100col%"
3170 special "none"
3171 height "1in"
3172 height_special "totalheight"
3173 thickness "0.4pt"
3174 separation "3pt"
3175 shadowsize "4pt"
3176 framecolor "black"
3177 backgroundcolor "none"
3178 status open
3179
3180 \begin_layout Plain Layout
3181 This section is somewhat out of date.
3182  Need to describe default master documents and how children are opened when
3183  the master is.
3184  [[FIXME]]
3185 \end_layout
3186
3187 \end_inset
3188
3189
3190 \end_layout
3191
3192 \begin_layout Standard
3193 It is possible to set up cross-references between the different files.
3194  First, open all the files in question: let's call them A and B in a two
3195  file example, where B is included in A.
3196  Let's say you insert a label in A, then want to reference it in B.
3197  Open the cross-reference dialog whilst in document B, and you can select
3198  the 
3199 \begin_inset Quotes eld
3200 \end_inset
3201
3202 buffer
3203 \begin_inset Quotes erd
3204 \end_inset
3205
3206  to use.
3207 \end_layout
3208
3209 \begin_layout Subsection
3210 Bibliography Lists in all Subdocuments
3211 \end_layout
3212
3213 \begin_layout Standard
3214 \begin_inset Box Frameless
3215 position "t"
3216 hor_pos "c"
3217 has_inner_box 1
3218 inner_pos "t"
3219 use_parbox 0
3220 use_makebox 0
3221 width "100col%"
3222 special "none"
3223 height "1in"
3224 height_special "totalheight"
3225 thickness "0.4pt"
3226 separation "3pt"
3227 shadowsize "4pt"
3228 framecolor "black"
3229 backgroundcolor "none"
3230 status open
3231
3232 \begin_layout Plain Layout
3233 This section also needs updating.
3234  There is now material about this on the wiki, and it could be copied here.
3235 \end_layout
3236
3237 \end_inset
3238
3239
3240 \end_layout
3241
3242 \begin_layout Standard
3243 Copy the bibliography list with all entries to all subdocuments and transform
3244  them to a comment.
3245  This way \SpecialChar LyX
3246  will find the 
3247 \begin_inset Flex Code
3248 status collapsed
3249
3250 \begin_layout Plain Layout
3251 .bib
3252 \end_layout
3253
3254 \end_inset
3255
3256 -files and you can easily insert references without making the bibliography
3257  list visible.
3258 \end_layout
3259
3260 \begin_layout Standard
3261 As the bibliography list is in a comment, \SpecialChar LaTeX
3262  won't use it and the references
3263  will look like this: [?], instead of like this: [1].
3264  One solution is to use the \SpecialChar LaTeX
3265 -package 
3266 \begin_inset Flex Code
3267 status collapsed
3268
3269 \begin_layout Plain Layout
3270 comment
3271 \end_layout
3272
3273 \end_inset
3274
3275  that will only include comments by processing the files separately.
3276  To do this, add in the \SpecialChar LaTeX
3277  preamble of every subdocument the following:
3278 \end_layout
3279
3280 \begin_layout LyX-Code
3281
3282 \backslash
3283 usepackage{comment}
3284 \end_layout
3285
3286 \begin_layout LyX-Code
3287
3288 \backslash
3289 includecomment{comment}
3290 \end_layout
3291
3292 \begin_layout Standard
3293 See also 
3294 \begin_inset Flex URL
3295 status collapsed
3296
3297 \begin_layout Plain Layout
3298
3299 http://wiki.lyx.org/FAQ/Unsorted#toc31
3300 \end_layout
3301
3302 \end_inset
3303
3304 .
3305 \end_layout
3306
3307 \begin_layout Section
3308 \SpecialChar LyX
3309  Archives
3310 \end_layout
3311
3312 \begin_layout Standard
3313 Users sometimes need to be able to 
3314 \begin_inset Quotes eld
3315 \end_inset
3316
3317 bundle
3318 \begin_inset Quotes erd
3319 \end_inset
3320
3321  a \SpecialChar LyX
3322  file together with all the images (and other files) on which it depends,
3323  either for sending to a publisher or for sharing with a co-author.
3324  \SpecialChar LyX
3325  2.0 includes a Python script (
3326 \begin_inset Flex Code
3327 status collapsed
3328
3329 \begin_layout Plain Layout
3330 lyxpak.py
3331 \end_layout
3332
3333 \end_inset
3334
3335 ) that automates this process.
3336  To use it, you must have either the 
3337 \begin_inset Flex Code
3338 status collapsed
3339
3340 \begin_layout Plain Layout
3341 zipfile
3342 \end_layout
3343
3344 \end_inset
3345
3346  or 
3347 \begin_inset Flex Code
3348 status collapsed
3349
3350 \begin_layout Plain Layout
3351 tarfile
3352 \end_layout
3353
3354 \end_inset
3355
3356  python modules installed on your system.
3357  By default, the script prefers the 
3358 \begin_inset Flex Code
3359 status collapsed
3360
3361 \begin_layout Plain Layout
3362 gzip
3363 \end_layout
3364
3365 \end_inset
3366
3367 -compressed 
3368 \begin_inset Flex Code
3369 status collapsed
3370
3371 \begin_layout Plain Layout
3372 tar
3373 \end_layout
3374
3375 \end_inset
3376
3377  format on Unix-like systems and the 
3378 \begin_inset Flex Code
3379 status collapsed
3380
3381 \begin_layout Plain Layout
3382 zip
3383 \end_layout
3384
3385 \end_inset
3386
3387  format on Windows.
3388 \end_layout
3389
3390 \begin_layout Standard
3391 \SpecialChar LyX
3392 's configuration process will set the script up to export a `\SpecialChar LyX
3393  Archive',
3394  and this format will then be available under 
3395 \begin_inset Flex Code
3396 status collapsed
3397
3398 \begin_layout Plain Layout
3399 File\SpecialChar menuseparator
3400 Export
3401 \end_layout
3402
3403 \end_inset
3404
3405 .
3406 \end_layout
3407
3408 \begin_layout Standard
3409 Independently of the platform, the generation of a particular archive format
3410  can be forced by adding either the 
3411 \begin_inset Flex Code
3412 status collapsed
3413
3414 \begin_layout Plain Layout
3415 -t
3416 \end_layout
3417
3418 \end_inset
3419
3420  (for the 
3421 \begin_inset Flex Code
3422 status collapsed
3423
3424 \begin_layout Plain Layout
3425 tar
3426 \end_layout
3427
3428 \end_inset
3429
3430  format) or 
3431 \begin_inset Flex Code
3432 status collapsed
3433
3434 \begin_layout Plain Layout
3435 -z
3436 \end_layout
3437
3438 \end_inset
3439
3440  (for the 
3441 \begin_inset Flex Code
3442 status collapsed
3443
3444 \begin_layout Plain Layout
3445 zip
3446 \end_layout
3447
3448 \end_inset
3449
3450  format) switch to the 
3451 \begin_inset Flex Code
3452 status collapsed
3453
3454 \begin_layout Plain Layout
3455 \SpecialChar LyX
3456 \SpecialChar menuseparator
3457 \SpecialChar LyX
3458  Archive
3459 \end_layout
3460
3461 \end_inset
3462
3463  converter in 
3464 \begin_inset Flex Code
3465 status collapsed
3466
3467 \begin_layout Plain Layout
3468 Tools\SpecialChar menuseparator
3469 Preferences\SpecialChar menuseparator
3470 File Handling\SpecialChar menuseparator
3471 Converters
3472 \end_layout
3473
3474 \end_inset
3475
3476 .
3477  (Make sure you add the switch after the script name, not before it.)
3478 \end_layout
3479
3480 \begin_layout Section
3481 Fancy Headers and Footers
3482 \end_layout
3483
3484 \begin_layout Standard
3485 The default page layout is rather plain; for an 
3486 \begin_inset Flex Code
3487 status collapsed
3488
3489 \begin_layout Plain Layout
3490 article
3491 \end_layout
3492
3493 \end_inset
3494
3495  document class, all you get is a centered page number at the bottom of
3496  the page.
3497  This document uses KOMA-script's book class, so it appears to be a bit
3498  fancier.
3499  But to really put on a show, you need to set the document page style to
3500  
3501 \begin_inset Quotes eld
3502 \end_inset
3503
3504 fancy
3505 \begin_inset Quotes erd
3506 \end_inset
3507
3508 , as mentioned in the 
3509 \emph on
3510 User Guide
3511 \emph default
3512 .
3513  This section describes the \SpecialChar LaTeX
3514  code you need to insert in your \SpecialChar LaTeX
3515  preamble in
3516  order to get the desired effects.
3517 \end_layout
3518
3519 \begin_layout Standard
3520 For more information on fancy headers, see the 
3521 \begin_inset Flex Code
3522 status collapsed
3523
3524 \begin_layout Plain Layout
3525 fancyhdr
3526 \end_layout
3527
3528 \end_inset
3529
3530  package documentation.
3531  (
3532 \begin_inset Flex URL
3533 status collapsed
3534
3535 \begin_layout Plain Layout
3536
3537 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3538 \end_layout
3539
3540 \end_inset
3541
3542 )
3543 \end_layout
3544
3545 \begin_layout Standard
3546 The page header is divided into three fields, not surprisingly labeled 
3547 \begin_inset Quotes eld
3548 \end_inset
3549
3550 left
3551 \begin_inset Quotes erd
3552 \end_inset
3553
3554
3555 \begin_inset Quotes eld
3556 \end_inset
3557
3558 center
3559 \begin_inset Quotes erd
3560 \end_inset
3561
3562 , and 
3563 \begin_inset Quotes eld
3564 \end_inset
3565
3566 right
3567 \begin_inset Quotes erd
3568 \end_inset
3569
3570 .
3571  The footer is also divided into these three fields.
3572  The \SpecialChar LaTeX
3573  commands to set these fields in the simplest manner are 
3574 \begin_inset Flex Code
3575 status collapsed
3576
3577 \begin_layout Plain Layout
3578
3579 \backslash
3580 lhead
3581 \end_layout
3582
3583 \end_inset
3584
3585
3586 \begin_inset Flex Code
3587 status collapsed
3588
3589 \begin_layout Plain Layout
3590
3591 \backslash
3592 chead
3593 \end_layout
3594
3595 \end_inset
3596
3597
3598 \begin_inset Flex Code
3599 status collapsed
3600
3601 \begin_layout Plain Layout
3602
3603 \backslash
3604 rhead
3605 \end_layout
3606
3607 \end_inset
3608
3609
3610 \begin_inset Flex Code
3611 status collapsed
3612
3613 \begin_layout Plain Layout
3614
3615 \backslash
3616 lfoot
3617 \end_layout
3618
3619 \end_inset
3620
3621 , etc.
3622  Suppose you wish to put your name in the upper left hand corner of each
3623  page.
3624  Simply insert the following command in the preamble: 
3625 \end_layout
3626
3627 \begin_layout Standard
3628
3629 \family typewriter
3630
3631 \backslash
3632 lhead{John Q.
3633  DocWriter}
3634 \end_layout
3635
3636 \begin_layout Standard
3637 You will now see your name in the upper left.
3638  If a field has a default entry that you would like to get rid of (often
3639  the page number appears in the central footer) simply include a command
3640  with a blank argument, e.
3641 \begin_inset space \thinspace{}
3642 \end_inset
3643
3644 g.:
3645 \end_layout
3646
3647 \begin_layout Standard
3648
3649 \family typewriter
3650
3651 \backslash
3652 cfoot{}
3653 \end_layout
3654
3655 \begin_layout Standard
3656 Let's get really fancy: lets put the section number with the word 
3657 \begin_inset Quotes eld
3658 \end_inset
3659
3660 Section
3661 \begin_inset Quotes erd
3662 \end_inset
3663
3664  (e.
3665 \begin_inset space \thinspace{}
3666 \end_inset
3667
3668 g.
3669 \begin_inset space \space{}
3670 \end_inset
3671
3672 Section 3) in the upper left, the page number (e.
3673 \begin_inset space \thinspace{}
3674 \end_inset
3675
3676 g.
3677 \begin_inset space \space{}
3678 \end_inset
3679
3680 Page 4) in the upper right, your name in the lower left, and the date in
3681  the lower right.
3682  The following commands should now appear in the preamble:
3683 \end_layout
3684
3685 \begin_layout Standard
3686
3687 \family typewriter
3688
3689 \backslash
3690 lhead{Section 
3691 \backslash
3692 thesection}
3693 \end_layout
3694
3695 \begin_layout Standard
3696
3697 \family typewriter
3698
3699 \backslash
3700 chead{}
3701 \end_layout
3702
3703 \begin_layout Standard
3704
3705 \family typewriter
3706
3707 \backslash
3708 rhead{Page 
3709 \backslash
3710 thepage}
3711 \end_layout
3712
3713 \begin_layout Standard
3714
3715 \family typewriter
3716
3717 \backslash
3718 lfoot{John Q.
3719  DocWriter}
3720 \end_layout
3721
3722 \begin_layout Standard
3723
3724 \family typewriter
3725
3726 \backslash
3727 cfoot{}
3728 \end_layout
3729
3730 \begin_layout Standard
3731
3732 \family typewriter
3733
3734 \backslash
3735 rfoot{
3736 \backslash
3737 today}
3738 \end_layout
3739
3740 \begin_layout Standard
3741 The commands 
3742 \begin_inset Flex Code
3743 status collapsed
3744
3745 \begin_layout Plain Layout
3746
3747 \backslash
3748 thesection
3749 \end_layout
3750
3751 \end_inset
3752
3753  and 
3754 \begin_inset Flex Code
3755 status collapsed
3756
3757 \begin_layout Plain Layout
3758
3759 \backslash
3760 thepage
3761 \end_layout
3762
3763 \end_inset
3764
3765  access \SpecialChar LaTeX
3766 's section and page counters, and so print out the current section
3767  and page numbers.
3768  
3769 \begin_inset Flex Code
3770 status collapsed
3771
3772 \begin_layout Plain Layout
3773
3774 \backslash
3775 today
3776 \end_layout
3777
3778 \end_inset
3779
3780  simply prints out today's date.
3781 \end_layout
3782
3783 \begin_layout Standard
3784 The thicknesses of the horizontal rules drawn beneath the header and above
3785  the footer can also be modified.
3786  If you don't want one of the rules, set its thickness to 0.
3787  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3788  Use commands
3789 \family typewriter
3790  
3791 \family default
3792 like 
3793 \begin_inset Flex Code
3794 status collapsed
3795
3796 \begin_layout Plain Layout
3797
3798 \backslash
3799 renewcommand{
3800 \backslash
3801 headrulewidth}{0.4pt}
3802 \end_layout
3803
3804 \end_inset
3805
3806  and 
3807 \begin_inset Flex Code
3808 status collapsed
3809
3810 \begin_layout Plain Layout
3811
3812 \backslash
3813 renewcommand{
3814 \backslash
3815 footrulewidth}{0.4pt}
3816 \end_layout
3817
3818 \end_inset
3819
3820  to set the thicknesses.
3821 \end_layout
3822
3823 \begin_layout Standard
3824 You can switch the header/footer settings on and off for individual pages
3825  using commands like 
3826 \begin_inset Flex Code
3827 status collapsed
3828
3829 \begin_layout Plain Layout
3830
3831 \backslash
3832 thispagestyle{empty}
3833 \end_layout
3834
3835 \end_inset
3836
3837
3838 \begin_inset Flex Code
3839 status collapsed
3840
3841 \begin_layout Plain Layout
3842
3843 \backslash
3844 thispagestyle{plain}
3845 \end_layout
3846
3847 \end_inset
3848
3849 , and 
3850 \begin_inset Flex Code
3851 status collapsed
3852
3853 \begin_layout Plain Layout
3854
3855 \backslash
3856 thispagestyle{fancy}
3857 \end_layout
3858
3859 \end_inset
3860
3861 .
3862  Simply insert them in the text on the page you want changed and mark them
3863  as \SpecialChar TeX
3864  code.
3865  In fact, title pages are marked as plain by default, while following pages
3866  are marked fancy when using the global fancy setting.
3867 \end_layout
3868
3869 \begin_layout Standard
3870 As a final example, it is possible to include an image in the header or
3871  footer.
3872  Suppose you want to put a company logo in the upper lefthand corner.
3873  You might try something like
3874 \end_layout
3875
3876 \begin_layout Standard
3877
3878 \family typewriter
3879
3880 \backslash
3881 lhead{
3882 \backslash
3883 resizebox{1in}{!}{
3884 \backslash
3885 includegraphics{logo.eps}}}
3886 \end_layout
3887
3888 \begin_layout Standard
3889 \noindent
3890 (you may need to preface this with 
3891 \begin_inset Flex Code
3892 status collapsed
3893
3894 \begin_layout Plain Layout
3895 \noindent
3896
3897 \backslash
3898 usepackage{graphics}
3899 \end_layout
3900
3901 \end_inset
3902
3903  if you don't include graphics elsewhere in your document).
3904 \end_layout
3905
3906 \begin_layout Section
3907 Itemize Bullet Selection
3908 \begin_inset CommandInset label
3909 LatexCommand label
3910 name "sec:bullet"
3911
3912 \end_inset
3913
3914
3915 \end_layout
3916
3917 \begin_layout Standard
3918 by
3919 \noun on
3920  Allan Rae
3921 \end_layout
3922
3923 \begin_layout Subsection
3924 Introduction
3925 \end_layout
3926
3927 \begin_layout Standard
3928 \SpecialChar LyX
3929  provides 216 bullet shapes that can be accessed from a simple dialog.
3930  Using this dialog you can easily specify what bullet shape to use at each
3931  level of an itemized list.
3932  These settings are document-wide so you won't be able to specify different
3933  sets of bullets for different paragraphs.
3934 \begin_inset Foot
3935 status collapsed
3936
3937 \begin_layout Plain Layout
3938 Well, actually you can but you'll have to do it by hand.
3939 \end_layout
3940
3941 \end_inset
3942
3943
3944 \end_layout
3945
3946 \begin_layout Subsection
3947 How it looks
3948 \end_layout
3949
3950 \begin_layout Standard
3951 Open the dialog by selecting the 
3952 \begin_inset Flex MenuItem
3953 status collapsed
3954
3955 \begin_layout Plain Layout
3956 Document\SpecialChar menuseparator
3957 Settings
3958 \end_layout
3959
3960 \end_inset
3961
3962  menu item and then select the 
3963 \begin_inset Flex MenuItem
3964 status collapsed
3965
3966 \begin_layout Plain Layout
3967 Bullets
3968 \end_layout
3969
3970 \end_inset
3971
3972  tab.
3973 \end_layout
3974
3975 \begin_layout Standard
3976 The dialog provides you with a table of bullet shapes.
3977  A column of buttons on the left of the table provides access to the six
3978  different panels of bullet shapes.
3979  The row of buttons across the top is used to select which bullet depth
3980  you are changing.
3981  A text entry under the table shows the currently selected bullet shape's
3982  \SpecialChar LaTeX
3983  equivalent and this can be edited if desired.
3984  If you do modify the text you will also need to specify any needed packages
3985  in the \SpecialChar LaTeX
3986  preamble.
3987 \end_layout
3988
3989 \begin_layout Standard
3990 The six panels are divided up by the packages they require.
3991  The following table shows the mappings from button name to \SpecialChar LaTeX
3992  package.
3993 \begin_inset Separator parbreak
3994 \end_inset
3995
3996
3997 \end_layout
3998
3999 \begin_layout Standard
4000 \align center
4001 \begin_inset Tabular
4002 <lyxtabular version="3" rows="7" columns="2">
4003 <features tabularvalignment="middle">
4004 <column alignment="center" valignment="top" width="0pt">
4005 <column alignment="center" valignment="top" width="0pt">
4006 <row>
4007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4008 \begin_inset Text
4009
4010 \begin_layout Plain Layout
4011
4012 \family roman
4013 \series medium
4014 \shape up
4015 \size normal
4016 \emph off
4017 \bar no
4018 \noun off
4019 \color none
4020 Button
4021 \end_layout
4022
4023 \end_inset
4024 </cell>
4025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4026 \begin_inset Text
4027
4028 \begin_layout Plain Layout
4029
4030 \family roman
4031 \series medium
4032 \shape up
4033 \size normal
4034 \emph off
4035 \bar no
4036 \noun off
4037 \color none
4038 Packages Required
4039 \end_layout
4040
4041 \end_inset
4042 </cell>
4043 </row>
4044 <row>
4045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4046 \begin_inset Text
4047
4048 \begin_layout Plain Layout
4049
4050 \family sans
4051 \series medium
4052 \shape up
4053 \size normal
4054 \emph off
4055 \bar no
4056 \noun off
4057 \color none
4058 Standard
4059 \end_layout
4060
4061 \end_inset
4062 </cell>
4063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4064 \begin_inset Text
4065
4066 \begin_layout Plain Layout
4067
4068 \series medium
4069 \shape up
4070 \size normal
4071 \emph off
4072 \bar no
4073 \noun off
4074 \color none
4075 base \SpecialChar LaTeX
4076
4077 \end_layout
4078
4079 \end_inset
4080 </cell>
4081 </row>
4082 <row>
4083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4084 \begin_inset Text
4085
4086 \begin_layout Plain Layout
4087
4088 \family sans
4089 \series medium
4090 \shape up
4091 \size normal
4092 \emph off
4093 \bar no
4094 \noun off
4095 \color none
4096 Maths
4097 \end_layout
4098
4099 \end_inset
4100 </cell>
4101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4102 \begin_inset Text
4103
4104 \begin_layout Plain Layout
4105
4106 \family typewriter
4107 \series medium
4108 \shape up
4109 \size normal
4110 \emph off
4111 \bar no
4112 \noun off
4113 \color none
4114 amssymb.sty
4115 \end_layout
4116
4117 \end_inset
4118 </cell>
4119 </row>
4120 <row>
4121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4122 \begin_inset Text
4123
4124 \begin_layout Plain Layout
4125
4126 \family sans
4127 \series medium
4128 \shape up
4129 \size normal
4130 \emph off
4131 \bar no
4132 \noun off
4133 \color none
4134 Ding1
4135 \end_layout
4136
4137 \end_inset
4138 </cell>
4139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4140 \begin_inset Text
4141
4142 \begin_layout Plain Layout
4143
4144 \family typewriter
4145 \series medium
4146 \shape up
4147 \size normal
4148 \emph off
4149 \bar no
4150 \noun off
4151 \color none
4152 pifont.sty
4153 \end_layout
4154
4155 \end_inset
4156 </cell>
4157 </row>
4158 <row>
4159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4160 \begin_inset Text
4161
4162 \begin_layout Plain Layout
4163
4164 \family sans
4165 \series medium
4166 \shape up
4167 \size normal
4168 \emph off
4169 \bar no
4170 \noun off
4171 \color none
4172 Ding2
4173 \end_layout
4174
4175 \end_inset
4176 </cell>
4177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4178 \begin_inset Text
4179
4180 \begin_layout Plain Layout
4181
4182 \family typewriter
4183 \series medium
4184 \shape up
4185 \size normal
4186 \emph off
4187 \bar no
4188 \noun off
4189 \color none
4190 pifont.sty
4191 \end_layout
4192
4193 \end_inset
4194 </cell>
4195 </row>
4196 <row>
4197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4198 \begin_inset Text
4199
4200 \begin_layout Plain Layout
4201
4202 \family sans
4203 \series medium
4204 \shape up
4205 \size normal
4206 \emph off
4207 \bar no
4208 \noun off
4209 \color none
4210 Ding3
4211 \end_layout
4212
4213 \end_inset
4214 </cell>
4215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4216 \begin_inset Text
4217
4218 \begin_layout Plain Layout
4219
4220 \family typewriter
4221 \series medium
4222 \shape up
4223 \size normal
4224 \emph off
4225 \bar no
4226 \noun off
4227 \color none
4228 pifont.sty
4229 \end_layout
4230
4231 \end_inset
4232 </cell>
4233 </row>
4234 <row>
4235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4236 \begin_inset Text
4237
4238 \begin_layout Plain Layout
4239
4240 \family sans
4241 \series medium
4242 \shape up
4243 \size normal
4244 \emph off
4245 \bar no
4246 \noun off
4247 \color none
4248 Ding4
4249 \end_layout
4250
4251 \end_inset
4252 </cell>
4253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4254 \begin_inset Text
4255
4256 \begin_layout Plain Layout
4257
4258 \family typewriter
4259 \series medium
4260 \shape up
4261 \size normal
4262 \emph off
4263 \bar no
4264 \noun off
4265 \color none
4266 pifont.sty
4267 \end_layout
4268
4269 \end_inset
4270 </cell>
4271 </row>
4272 </lyxtabular>
4273
4274 \end_inset
4275
4276
4277 \end_layout
4278
4279 \begin_layout Standard
4280 \SpecialChar LyX
4281  doesn't stop you using bullets from packages you don't have.
4282  If you get errors from \SpecialChar LaTeX
4283  when you try to view or print the file, then it
4284  is likely you are missing a package.
4285 \begin_inset Foot
4286 status collapsed
4287
4288 \begin_layout Plain Layout
4289 \SpecialChar LyX
4290  doesn't restrict your use since you may be editing locally and exporting
4291  elsewhere.
4292 \end_layout
4293
4294 \end_inset
4295
4296
4297 \end_layout
4298
4299 \begin_layout Subsection
4300 How to use it
4301 \end_layout
4302
4303 \begin_layout Standard
4304 Select which bullet depth you want to change then select the bullet shape
4305  and size.
4306  Any changes will not be visible in \SpecialChar LyX
4307 , but are visible when viewing the document.
4308 \end_layout
4309
4310 \begin_layout Standard
4311 You can reset a bullet shape to the default simply by clicking your right
4312  mouse button on the appropriate bullet depth button.
4313 \begin_inset Foot
4314 status collapsed
4315
4316 \begin_layout Plain Layout
4317 If you 
4318 \emph on
4319 really
4320 \emph default
4321  want to have multiple sets of paragraphs with different sets of bullets
4322  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4323  code.
4324  The bullet selection dialog can help though because it provides you with
4325  the \SpecialChar LaTeX
4326  code for a wide range of bullet shapes.
4327  To make your own custom paragraphs you have the following options:
4328 \end_layout
4329
4330 \begin_layout Plain Layout
4331 \begin_inset ERT
4332 status open
4333
4334 \begin_layout Plain Layout
4335
4336
4337 \backslash
4338 let
4339 \backslash
4340 savelabelitemi=
4341 \backslash
4342 labelitemi
4343 \end_layout
4344
4345 \end_inset
4346
4347
4348 \end_layout
4349
4350 \begin_layout Plain Layout
4351 \begin_inset ERT
4352 status open
4353
4354 \begin_layout Plain Layout
4355
4356
4357 \backslash
4358 renewcommand
4359 \backslash
4360 labelitemi[0]{
4361 \backslash
4362 small
4363 \backslash
4364 (
4365 \backslash
4366 sharp
4367 \backslash
4368 )}
4369 \end_layout
4370
4371 \end_inset
4372
4373
4374 \end_layout
4375
4376 \begin_layout Itemize
4377 Use the \SpecialChar LaTeX
4378  command 
4379 \begin_inset Flex Code
4380 status collapsed
4381
4382 \begin_layout Plain Layout
4383
4384 \backslash
4385 renewcommand{}{}
4386 \end_layout
4387
4388 \end_inset
4389
4390  to specify a new bullet shape for a given depth.
4391  You'll also need to save the current bullet shape so you can restore it
4392  again afterwards.
4393  In this itemized list the following \SpecialChar LaTeX
4394  code was used to change the bullet
4395  used for the first depth.
4396 \begin_inset Separator parbreak
4397 \end_inset
4398
4399
4400 \end_layout
4401
4402 \begin_deeper
4403 \begin_layout LyX-Code
4404
4405 \backslash
4406 let
4407 \backslash
4408 savelabelitemi=
4409 \backslash
4410 labelitemi 
4411 \end_layout
4412
4413 \begin_layout LyX-Code
4414
4415 \backslash
4416 renewcommand
4417 \backslash
4418 labelitemi[0]{
4419 \backslash
4420 small
4421 \backslash
4422 (
4423 \backslash
4424 sharp
4425 \backslash
4426 )}
4427 \end_layout
4428
4429 \end_deeper
4430 \begin_layout Itemize
4431 Note that the itemize depth is specified in Roman numerals as part of the
4432  
4433 \family typewriter
4434
4435 \backslash
4436 labelitem
4437 \family default
4438  command.
4439 \end_layout
4440
4441 \begin_layout Itemize
4442 \begin_inset ERT
4443 status open
4444
4445 \begin_layout Plain Layout
4446
4447 [
4448 \backslash
4449 (
4450 \backslash
4451 star
4452 \backslash
4453 )]
4454 \end_layout
4455
4456 \end_inset
4457
4458  Specify each individual entry by starting each item with the bullet shape
4459  enclosed in square brackets and set as 
4460 \begin_inset Flex MenuItem
4461 status collapsed
4462
4463 \begin_layout Plain Layout
4464 \SpecialChar TeX
4465  Code
4466 \end_layout
4467
4468 \end_inset
4469
4470 .
4471  For example, this item was started with 
4472 \begin_inset Flex Code
4473 status collapsed
4474
4475 \begin_layout Plain Layout
4476 [
4477 \backslash
4478 (
4479 \backslash
4480 star
4481 \backslash
4482 )]
4483 \end_layout
4484
4485 \end_inset
4486
4487 .
4488 \end_layout
4489
4490 \begin_layout Plain Layout
4491 \begin_inset ERT
4492 status open
4493
4494 \begin_layout Plain Layout
4495
4496
4497 \backslash
4498 renewcommand
4499 \backslash
4500 labelitemi[0]{
4501 \backslash
4502 savelabelitemi}
4503 \end_layout
4504
4505 \end_inset
4506
4507
4508 \end_layout
4509
4510 \begin_layout Plain Layout
4511 You'll also need to revert the labelitem back to its previous setting for
4512  the global bullet shape settings to remain in effect.
4513  The way used here was:
4514 \end_layout
4515
4516 \begin_layout LyX-Code
4517
4518 \backslash
4519 renewcommand
4520 \backslash
4521 labelitemi[0]{
4522 \backslash
4523 savelabelitemi}
4524 \end_layout
4525
4526 \end_inset
4527
4528
4529 \end_layout
4530
4531 \begin_layout Chapter
4532 \SpecialChar LyX
4533  and the World Wide Web
4534 \end_layout
4535
4536 \begin_layout Standard
4537 \SpecialChar LyX
4538  has long supported the export of documents to various web-friendly formats,
4539  such as HTML.
4540  Before verson 2.0, however, HTML export was always accomplished by the use
4541  of external converters.
4542 \begin_inset Foot
4543 status collapsed
4544
4545 \begin_layout Plain Layout
4546 For details on the use of external converters with \SpecialChar LyX
4547 , see the 
4548 \emph on
4549 Converters
4550 \emph default
4551  section of the Customization manual.
4552 \end_layout
4553
4554 \end_inset
4555
4556  These fall into two large groups: there are converters that use \SpecialChar LaTeX
4557  as an
4558  intermediate format, such as 
4559 \begin_inset Flex Code
4560 status collapsed
4561
4562 \begin_layout Plain Layout
4563 htlatex
4564 \end_layout
4565
4566 \end_inset
4567
4568
4569 \begin_inset Flex Code
4570 status collapsed
4571
4572 \begin_layout Plain Layout
4573 html2latex
4574 \end_layout
4575
4576 \end_inset
4577
4578 , and 
4579 \begin_inset Flex Code
4580 status collapsed
4581
4582 \begin_layout Plain Layout
4583 plastex
4584 \end_layout
4585
4586 \end_inset
4587
4588 , relying upon \SpecialChar LyX
4589  to produce the \SpecialChar LaTeX
4590 ; and there is a converter that works directly
4591  on \SpecialChar LyX
4592  files, 
4593 \begin_inset Flex Code
4594 status collapsed
4595
4596 \begin_layout Plain Layout
4597 e\SpecialChar LyX
4598 er
4599 \end_layout
4600
4601 \end_inset
4602
4603 .
4604  All of these have different advantages and disadvantages.
4605  
4606 \end_layout
4607
4608 \begin_layout Standard
4609 The \SpecialChar LaTeX
4610 -based converters have the advantage that, in principle, they know everythin
4611 g about the exported document that \SpecialChar LaTeX
4612  does.
4613  Such converters do not care, for example, if a certain block of code was
4614  produced by \SpecialChar LyX
4615  or was Evil Red Text.
4616  These converters know about 
4617 \begin_inset Flex Code
4618 status collapsed
4619
4620 \begin_layout Plain Layout
4621 aux
4622 \end_layout
4623
4624 \end_inset
4625
4626  files, counters, and references, and can often make use of the 
4627 \begin_inset Flex Code
4628 status collapsed
4629
4630 \begin_layout Plain Layout
4631 bbl
4632 \end_layout
4633
4634 \end_inset
4635
4636  files generated by Bib\SpecialChar TeX
4637 .
4638  On the other hand, \SpecialChar LaTeX
4639  is a very hard language to parse—it is sometimes said
4640  that only \SpecialChar TeX
4641  itself understands \SpecialChar TeX
4642 —and \SpecialChar LaTeX
4643 -based converters will often choke on
4644  what seem to be quite simple constructs; complex ones can throw them completely
4645 , and as of this writing, for example, the 
4646 \emph on
4647 Embedded Objects
4648 \emph default
4649  manual will not export with 
4650 \begin_inset Flex Code
4651 status collapsed
4652
4653 \begin_layout Plain Layout
4654 htlatex
4655 \end_layout
4656
4657 \end_inset
4658
4659 , though the others will.
4660  The other issue concerns how math is handled.
4661  These converters typically convert the formulae into little pictures that
4662  are then linked from the HTML document.
4663  Since these are actually generated by \SpecialChar LaTeX
4664 , they are accurate.
4665  But they do not scale well, and just getting them to look as if they are
4666  actually meant to be in your document—so that the font sizes seem to be
4667  roughly the same—can be a challenge.
4668 \end_layout
4669
4670 \begin_layout Standard
4671 Alex Fernandez's 
4672 \begin_inset Flex Code
4673 status collapsed
4674
4675 \begin_layout Plain Layout
4676 e\SpecialChar LyX
4677 er
4678 \end_layout
4679
4680 \end_inset
4681
4682  (
4683 \begin_inset CommandInset href
4684 LatexCommand href
4685 name "http://elyxer.nongnu.org/"
4686 target "http://elyxer.nongnu.org/"
4687
4688 \end_inset
4689
4690 ) solves some of these problems.
4691  In particular, the formulae it produces scale perfectly, since it renders
4692  math using a combination of HTML and CSS rather than converting the formulae
4693  to images.
4694  But even moderately complex formula are rendered less well than with 
4695 \begin_inset Flex Code
4696 status collapsed
4697
4698 \begin_layout Plain Layout
4699 htlatex
4700 \end_layout
4701
4702 \end_inset
4703
4704 ; this reflects the limitations of HTML.
4705 \begin_inset Foot
4706 status collapsed
4707
4708 \begin_layout Plain Layout
4709 That said, 
4710 \begin_inset Flex Code
4711 status collapsed
4712
4713 \begin_layout Plain Layout
4714 e\SpecialChar LyX
4715 er
4716 \end_layout
4717
4718 \end_inset
4719
4720  can also use jsMath and MathJax for equations, but this setting is only
4721  available globally and requires one to have access to a server that runs
4722  the backend.
4723 \end_layout
4724
4725 \end_inset
4726
4727  More importantly (as of version 1.1.1, at least), 
4728 \begin_inset Flex Code
4729 status collapsed
4730
4731 \begin_layout Plain Layout
4732 e\SpecialChar LyX
4733 er
4734 \end_layout
4735
4736 \end_inset
4737
4738  has limited support for math macros and no support for user-defined paragraph
4739  or character styles.
4740  These limitations make 
4741 \begin_inset Flex Code
4742 status collapsed
4743
4744 \begin_layout Plain Layout
4745 e\SpecialChar LyX
4746 er
4747 \end_layout
4748
4749 \end_inset
4750
4751  unsuitable for many of the documents \SpecialChar LyX
4752  users produce.
4753  In principle, of course, these problems could be solved, but the \SpecialChar LyX
4754  developers
4755  have decided to follow a different path and have made \SpecialChar LyX
4756  itself capable of
4757  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
4758 , DocBook, and plaintext.
4759 \end_layout
4760
4761 \begin_layout Standard
4762 As of this writing, XHTML output remains under development and should probably
4763  be regarded as 
4764 \begin_inset Quotes eld
4765 \end_inset
4766
4767 experimental
4768 \begin_inset Quotes erd
4769 \end_inset
4770
4771 .
4772 \begin_inset Foot
4773 status collapsed
4774
4775 \begin_layout Plain Layout
4776 The file 
4777 \begin_inset Flex Code
4778 status collapsed
4779
4780 \begin_layout Plain Layout
4781 development/HTML.notes
4782 \end_layout
4783
4784 \end_inset
4785
4786 , which can be found in the \SpecialChar LyX
4787  source tree or 
4788 \begin_inset CommandInset href
4789 LatexCommand href
4790 name "accessed online"
4791 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
4792
4793 \end_inset
4794
4795 , usually contains up-to-date information about the state of XHTML output.
4796  See also the list of XHTML bugs on 
4797 \begin_inset CommandInset href
4798 LatexCommand href
4799 name "the bug tracker"
4800 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"
4801
4802 \end_inset
4803
4804 .
4805 \end_layout
4806
4807 \end_inset
4808
4809  Still, the developers have chosen this approach because it has several
4810  potential advantages over the other two.
4811 \end_layout
4812
4813 \begin_layout Standard
4814 These advantages are primarily due to the fact that the XHTML output routines,
4815  since they are part of \SpecialChar LyX
4816 , know everything \SpecialChar LyX
4817  knows about the document being
4818  exported.
4819 \begin_inset Foot
4820 status collapsed
4821
4822 \begin_layout Plain Layout
4823 Another advantage is that, since these routines are internal to \SpecialChar LyX
4824 , they are
4825  immune to changes in \SpecialChar LyX
4826 's file format, or to changes in the semantics of
4827  existing insets.
4828 \end_layout
4829
4830 \end_inset
4831
4832  So they know about the table of contents (as displayed in the outline),
4833  about the counters associated with different paragraph styles, and about
4834  user-defined styles.
4835  The XHTML output routines know what \SpecialChar LyX
4836  knows about internationalization,
4837  too, so they will output 
4838 \begin_inset Quotes eld
4839 \end_inset
4840
4841 Chapter 1
4842 \begin_inset Quotes erd
4843 \end_inset
4844
4845  or 
4846 \begin_inset Quotes eld
4847 \end_inset
4848
4849
4850 \lang ngerman
4851 Kapitel
4852 \lang english
4853  1
4854 \begin_inset Quotes erd
4855 \end_inset
4856
4857 , depending upon the language in effect at the time.
4858  
4859 \end_layout
4860
4861 \begin_layout Standard
4862 Quite generally, the output routines know what \SpecialChar LyX
4863  knows about document layout,
4864  that is, about how the document is to be rendered on screen.
4865  We use this information when we output the document as XHTML.
4866  In particular, \SpecialChar LyX
4867  
4868 \emph on
4869 automatically
4870 \emph default
4871  generates CSS style information corresponding to the layout information
4872  it uses to render the document on screen: if section headings are supposed
4873  to be sans-serif and bold as seen in \SpecialChar LyX
4874 , then (by default) they will be sans-seri
4875 f and bold when viewed in a web browser, too.
4876  And this is true not just for pre-defined styles, like Section, but for
4877  any style, including user-defined styles.
4878  Indeed, the XHTML output routines make no distinction between user-defined
4879  paragraph and character styles and \SpecialChar LyX
4880 's own pre-defined styles: in each case,
4881  everything \SpecialChar LyX
4882  knows about the styles is contained in the layout files.
4883  And much the same is true as regards pre-defined textual insets, such as
4884  footnotes, and various custom insets.
4885  
4886 \end_layout
4887
4888 \begin_layout Standard
4889 The result is that XHTML output can be customized and extended in exactly
4890  the same way \SpecialChar LaTeX
4891  output can be customized and extended: through layout files
4892  and modules.
4893  See chapter five of the 
4894 \emph on
4895 Customization 
4896 \emph default
4897 manual for the details.
4898 \end_layout
4899
4900 \begin_layout Standard
4901 The remainder of this chapter contains more detailed information on XHTML
4902  output, its limitations, and ways to work around those limitations.
4903 \end_layout
4904
4905 \begin_layout Section
4906 Math Output in XHTML
4907 \end_layout
4908
4909 \begin_layout Standard
4910 \SpecialChar LyX
4911  offers four choices for how math is rendered.
4912  These have various advantages and disadvantages:
4913 \end_layout
4914
4915 \begin_layout Itemize
4916 MathML
4917 \begin_inset Newline newline
4918 \end_inset
4919
4920 MathML is a dialect of XML designed specifically for mathematics on the
4921  web, and it typically renders very well in browsers that support it.
4922  The disadvantage is that not all browsers support MathML, and support is
4923  not complete even in the Gecko-based browsers, such as Firefox.
4924 \begin_inset Newline newline
4925 \end_inset
4926
4927 If \SpecialChar LyX
4928  is unable to render a formula as MathML—for example, if the formula
4929  uses the 
4930 \begin_inset Flex Code
4931 status collapsed
4932
4933 \begin_layout Plain Layout
4934 xymatrix
4935 \end_layout
4936
4937 \end_inset
4938
4939  package or ERT—then it will instead output the formula as an image.
4940  
4941 \end_layout
4942
4943 \begin_layout Itemize
4944 HTML
4945 \begin_inset Newline newline
4946 \end_inset
4947
4948 As mentioned above, 
4949 \begin_inset Flex Code
4950 status collapsed
4951
4952 \begin_layout Plain Layout
4953 elyxer
4954 \end_layout
4955
4956 \end_inset
4957
4958  outputs math as HTML, styled by CSS.
4959 \begin_inset Foot
4960 status collapsed
4961
4962 \begin_layout Plain Layout
4963 \SpecialChar LyX
4964  has borrowed some of the CSS for its HTML output from 
4965 \begin_inset Flex Code
4966 status collapsed
4967
4968 \begin_layout Plain Layout
4969 elyxer
4970 \end_layout
4971
4972 \end_inset
4973
4974 .
4975 \end_layout
4976
4977 \end_inset
4978
4979  For simple formulae, this can work quite well, though with more complicated
4980  formulae it tends to break down.
4981  Still, this method has the advantage that it is very widely supported and
4982  so it may be appropriate for documents that contain only a little, fairly
4983  simple math.
4984 \begin_inset Newline newline
4985 \end_inset
4986
4987 If Lyx is unable to render a formula as HTML—for example, if the formula
4988  uses the 
4989 \begin_inset Flex Code
4990 status collapsed
4991
4992 \begin_layout Plain Layout
4993 xymatrix
4994 \end_layout
4995
4996 \end_inset
4997
4998  package or ERT—then it will instead output the formula as an image.
4999  
5000 \end_layout
5001
5002 \begin_layout Itemize
5003 Images
5004 \begin_inset Newline newline
5005 \end_inset
5006
5007 Like 
5008 \begin_inset Flex Code
5009 status collapsed
5010
5011 \begin_layout Plain Layout
5012 htlatex
5013 \end_layout
5014
5015 \end_inset
5016
5017 , \SpecialChar LyX
5018  will output formulae as images, the very same images, in fact, that are
5019  used for instant preview.
5020 \begin_inset Foot
5021 status collapsed
5022
5023 \begin_layout Plain Layout
5024 Instant preview does 
5025 \emph on
5026 not 
5027 \emph default
5028 have to be on for images to be output, however.
5029 \end_layout
5030
5031 \end_inset
5032
5033  The advantage to this method is that the images are simply generated by
5034  \SpecialChar LaTeX
5035 , so they are very accurate.
5036  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5037  so they do not scale terribly well, and one cannot copy them, etc.
5038  (As of this writing, there are also problems about equation numbering.
5039  See 
5040 \begin_inset CommandInset href
5041 LatexCommand href
5042 name "bug 6894"
5043 target "http://www.lyx.org/trac/ticket/6894"
5044
5045 \end_inset
5046
5047 .)
5048 \begin_inset Newline newline
5049 \end_inset
5050
5051 The size of the images can be controlled by setting the 
5052 \begin_inset Quotes eld
5053 \end_inset
5054
5055 Math Images Scaling
5056 \begin_inset Quotes erd
5057 \end_inset
5058
5059  parameter under 
5060 \begin_inset Flex MenuItem
5061 status collapsed
5062
5063 \begin_layout Plain Layout
5064 Document\SpecialChar menuseparator
5065 Settings\SpecialChar menuseparator
5066 Output
5067 \end_layout
5068
5069 \end_inset
5070
5071 .
5072 \begin_inset Foot
5073 status collapsed
5074
5075 \begin_layout Plain Layout
5076 For those who want to know, this controls the resolution of the image in
5077  dots per inch and is based upon a default of 75 dpi.
5078 \end_layout
5079
5080 \end_inset
5081
5082
5083 \begin_inset Newline newline
5084 \end_inset
5085
5086 If \SpecialChar LyX
5087  for some reason fails to create an image for a formula (e.g., if a required
5088  \SpecialChar LaTeX
5089  package is not installed), then it will fall back to outputing the raw
5090  \SpecialChar LaTeX
5091 .
5092 \end_layout
5093
5094 \begin_layout Itemize
5095 \SpecialChar LaTeX
5096
5097 \begin_inset Newline newline
5098 \end_inset
5099
5100 Finally, \SpecialChar LyX
5101  will happily output math as \SpecialChar LaTeX
5102 .
5103  As well as being the output of last resort, this method can be used with
5104  such tools as 
5105 \begin_inset CommandInset href
5106 LatexCommand href
5107 name "jsMath"
5108 target "http://www.math.union.edu/~dpvc/jsMath/"
5109
5110 \end_inset
5111
5112 , which uses JavaScript to render \SpecialChar LaTeX
5113  embedded in HTML documents.
5114  \SpecialChar LyX
5115  wraps the \SpecialChar LaTeX
5116  in either a 
5117 \begin_inset Flex Code
5118 status collapsed
5119
5120 \begin_layout Plain Layout
5121 span
5122 \end_layout
5123
5124 \end_inset
5125
5126  (for inline formulas) or 
5127 \begin_inset Flex Code
5128 status collapsed
5129
5130 \begin_layout Plain Layout
5131 div
5132 \end_layout
5133
5134 \end_inset
5135
5136  (for displayed formulas) with 
5137 \begin_inset Flex Code
5138 status collapsed
5139
5140 \begin_layout Plain Layout
5141 class='math'
5142 \end_layout
5143
5144 \end_inset
5145
5146 , as is required for jsMath.
5147 \end_layout
5148
5149 \begin_layout Standard
5150 One of these output methods must be selected under 
5151 \begin_inset Flex MenuItem
5152 status collapsed
5153
5154 \begin_layout Plain Layout
5155 Document\SpecialChar menuseparator
5156 Settings\SpecialChar menuseparator
5157 Output
5158 \end_layout
5159
5160 \end_inset
5161
5162 .
5163  By default, \SpecialChar LyX
5164  outputs MathML.
5165  This is a document-wide setting, therefore.
5166 \end_layout
5167
5168 \begin_layout Standard
5169 Eventually, \SpecialChar LyX
5170  will offer the user the option to select an alternate output
5171  method for a particular inset, say, one that isn't being rendered very
5172  well by MathML.
5173 \begin_inset Foot
5174 status collapsed
5175
5176 \begin_layout Plain Layout
5177 That said, since \SpecialChar LyX
5178  falls back to images if the inset contains ERT, then one
5179  can force output as an image by putting some harmless ERT into the math,
5180  for example: 
5181 \begin_inset Formula $a=b\relax$
5182 \end_inset
5183
5184 .
5185 \end_layout
5186
5187 \end_inset
5188
5189
5190 \end_layout
5191
5192 \begin_layout Section
5193 Bibliography and Citations
5194 \end_layout
5195
5196 \begin_layout Standard
5197 XHTML output fully supports bibliographies and citations.
5198  
5199 \end_layout
5200
5201 \begin_layout Standard
5202 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5203 's on-screen
5204  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5205 , though
5206  better.
5207  If you are using numerical citations, then \SpecialChar LyX
5208  will output numerical labels,
5209  such as [1] or [17], rather than simply showing the citation key in square
5210  brackets, as it does on-screen.
5211  If you are using author-year citations, then \SpecialChar LyX
5212  will add lowercase letters
5213  to the years, just as Bib\SpecialChar TeX
5214  does, if it finds more than one citation for
5215  a given author-year combination.
5216  The labels will be printed with the bibliography entries.
5217  Note that there is, at present, no way to customize the appearance of the
5218  labels, for example, to choose between square brackets and parentheses.
5219 \end_layout
5220
5221 \begin_layout Standard
5222 Bibliography output is handled by the same machinery that handles the presentati
5223 on of reference information in the citation dialog, so you will see in the
5224  XHTML output pretty much what you would see if you were to look at a given
5225  entry in the citation dialog.
5226  The formatting can be customized in your layout file or, preferably, in
5227  a module.
5228  See the 
5229 \emph on
5230 Customization
5231 \emph default
5232  manual for the details.
5233 \end_layout
5234
5235 \begin_layout Standard
5236 The main defect at present is that cross-referenced information is printed
5237  with every entry with which it is associated.
5238  So you can see things like this:
5239 \end_layout
5240
5241 \begin_layout Quote
5242 Jason Stanley, 
5243 \begin_inset Quotes eld
5244 \end_inset
5245
5246 Context and Logical Form
5247 \begin_inset Quotes erd
5248 \end_inset
5249
5250 , in 
5251 \emph on
5252 Language in Context: Selected Essays
5253 \emph default
5254  (Oxford: Oxford University Press, 2007), pp.
5255  30–68.
5256 \end_layout
5257
5258 \begin_layout Quote
5259 Jason Stanley, 
5260 \begin_inset Quotes eld
5261 \end_inset
5262
5263 Semantics in Context
5264 \begin_inset Quotes erd
5265 \end_inset
5266
5267 , in 
5268 \emph on
5269 Language in Context: Selected Essays
5270 \emph default
5271  (Oxford: Oxford University Press, 2007), pp.
5272  201–30.
5273 \end_layout
5274
5275 \begin_layout Standard
5276 This should be fixed before long.
5277 \end_layout
5278
5279 \begin_layout Standard
5280 There is no support at present for sectioned bibliographies.
5281  If you have multiple bibliographies, then \SpecialChar LyX
5282  will print the same bibliography
5283  over and over.
5284 \end_layout
5285
5286 \begin_layout Section
5287 Indexes
5288 \end_layout
5289
5290 \begin_layout Standard
5291 \SpecialChar LyX
5292  will happily export indexes as XHTML, but with certain limitations at the
5293  moment.
5294 \end_layout
5295
5296 \begin_layout Standard
5297 Index export will be most reliable when you do not attempt to use the fancy
5298  constructs that are described in the section on indexes in the 
5299 \emph on
5300 User's Guide
5301 \emph default
5302 .
5303 \begin_inset Foot
5304 status collapsed
5305
5306 \begin_layout Plain Layout
5307 The main issue here is that \SpecialChar LyX
5308  itself does not really handle these.
5309  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5310 .
5311 \end_layout
5312
5313 \end_inset
5314
5315  We'll describe how they are handled using the subsection headings from
5316  that section.
5317 \end_layout
5318
5319 \begin_layout Itemize
5320 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5321  makes an effort to support these,
5322  but the entries must be separated by 
5323 \begin_inset Quotes eld
5324 \end_inset
5325
5326  ! 
5327 \begin_inset Quotes erd
5328 \end_inset
5329
5330 , that is, there must be spaces around the exclamation point.
5331  This is because it is otherwise too difficult to check for escaped exclamation
5332  points, ones in math, and so forth.
5333 \end_layout
5334
5335 \begin_layout Itemize
5336 Page Ranges: There is no support at all for page ranges, since these make
5337  no sense with XHMTL.
5338  Instead, you will just get two index entries, one at either end.
5339 \end_layout
5340
5341 \begin_layout Itemize
5342 Cross-referencing: There is no support for cross-referencing.
5343  If \SpecialChar LyX
5344  finds an entry containing the 
5345 \begin_inset Quotes eld
5346 \end_inset
5347
5348 |see\SpecialChar ldots
5349
5350 \begin_inset Quotes erd
5351 \end_inset
5352
5353  construct, it is just dropped, and the rest is treated as an ordinary index
5354  entry.
5355 \end_layout
5356
5357 \begin_layout Itemize
5358 Index Entry Order: \SpecialChar LyX
5359  does support attempts to fix the sorting order.
5360  It will take what is before the first `@' it finds and use that for sorting,
5361  taking what follows the first `@' to be the actual entry.
5362  At present, \SpecialChar LyX
5363  does not check for escaped `@', so do not try to index email
5364  addresses.
5365 \end_layout
5366
5367 \begin_layout Itemize
5368 Index Entry Layout: You can format entries by using the text style dialog,
5369  or by using any other method available within \SpecialChar LyX
5370  itself.
5371  There is no support for constructs like: 
5372 \begin_inset Quotes eld
5373 \end_inset
5374
5375 entry|textbf
5376 \begin_inset Quotes erd
5377 \end_inset
5378
5379 .
5380  Indeed, if \SpecialChar LyX
5381  finds a pipe symbol, `|', in an entry, it will delete it and
5382  everything that follows it.
5383 \end_layout
5384
5385 \begin_layout Itemize
5386 Multiple Indexes: There is no support for multiple indexes.
5387  Rather, all index entries will be printed as one large index.
5388  To avoid our printing several versions of the index, we print only the
5389  main index, so make sure you have one.
5390 \end_layout
5391
5392 \begin_layout Section
5393 Nomenclature and Glossary
5394 \end_layout
5395
5396 \begin_layout Standard
5397 There is at present no support for glossaries.
5398  Adding it would be fairly trivial, and welcome.
5399 \end_layout
5400
5401 \begin_layout Chapter
5402 The \SpecialChar LyX
5403  Server
5404 \end_layout
5405
5406 \begin_layout Section
5407 Introduction
5408 \end_layout
5409
5410 \begin_layout Standard
5411 The `\SpecialChar LyX
5412  server' allows other programs to talk to \SpecialChar LyX
5413 , invoke \SpecialChar LyX
5414  commands, and retrieve
5415  information about the \SpecialChar LyX
5416  internal state.
5417  This is only intended for advanced users, but they should find it useful.
5418  It is by writing to the \SpecialChar LyX
5419  server, for example, that bibliography managers,
5420  such as JabRef, are able to 
5421 \begin_inset Quotes eld
5422 \end_inset
5423
5424 push
5425 \begin_inset Quotes erd
5426 \end_inset
5427
5428  citations to \SpecialChar LyX
5429 .
5430 \end_layout
5431
5432 \begin_layout Section
5433 Starting the \SpecialChar LyX
5434  Server
5435 \end_layout
5436
5437 \begin_layout Standard
5438 The \SpecialChar LyX
5439  server works through the use of a pair of named pipes.
5440  These are usually located in 
5441 \begin_inset Flex Code
5442 status collapsed
5443
5444 \begin_layout Plain Layout
5445 UserDir
5446 \end_layout
5447
5448 \end_inset
5449
5450 , (except on Windows, where 
5451 \emph on
5452 local
5453 \emph default
5454  named pipes are special objects located in 
5455 \begin_inset Flex Code
5456 status collapsed
5457
5458 \begin_layout Plain Layout
5459
5460 \backslash
5461
5462 \backslash
5463 .
5464 \backslash
5465 pipe
5466 \end_layout
5467
5468 \end_inset
5469
5470 ) and have the names 
5471 \begin_inset Quotes eld
5472 \end_inset
5473
5474
5475 \begin_inset Flex Code
5476 status collapsed
5477
5478 \begin_layout Plain Layout
5479 lyxpipe.in
5480 \end_layout
5481
5482 \end_inset
5483
5484
5485 \begin_inset Quotes erd
5486 \end_inset
5487
5488  and 
5489 \begin_inset Quotes eld
5490 \end_inset
5491
5492
5493 \begin_inset Flex Code
5494 status collapsed
5495
5496 \begin_layout Plain Layout
5497 lyxpipe.out
5498 \end_layout
5499
5500 \end_inset
5501
5502
5503 \begin_inset Quotes erd
5504 \end_inset
5505
5506 .
5507  External programs write into 
5508 \begin_inset Flex Code
5509 status collapsed
5510
5511 \begin_layout Plain Layout
5512 lyxpipe.in
5513 \end_layout
5514
5515 \end_inset
5516
5517  and read back data from 
5518 \begin_inset Flex Code
5519 status collapsed
5520
5521 \begin_layout Plain Layout
5522 lyxpipe.out
5523 \end_layout
5524
5525 \end_inset
5526
5527 .
5528  The stem of the pipe names can be defined in the 
5529 \begin_inset Flex MenuItem
5530 status collapsed
5531
5532 \begin_layout Plain Layout
5533 Tools\SpecialChar menuseparator
5534 Preferences
5535 \end_layout
5536
5537 \end_inset
5538
5539  dialog, for example 
5540 \begin_inset Flex Code
5541 status collapsed
5542
5543 \begin_layout Plain Layout
5544 "/home/myhome/lyxpipe"
5545 \end_layout
5546
5547 \end_inset
5548
5549 , or 
5550 \begin_inset Flex Code
5551 status collapsed
5552
5553 \begin_layout Plain Layout
5554 "
5555 \backslash
5556
5557 \backslash
5558 .
5559 \backslash
5560 pipe
5561 \backslash
5562 lyxpipe"
5563 \end_layout
5564
5565 \end_inset
5566
5567  on Windows (where any working path instead of lyxpipe can be used, for
5568  example 
5569 \begin_inset Flex Code
5570 status collapsed
5571
5572 \begin_layout Plain Layout
5573 "
5574 \backslash
5575
5576 \backslash
5577 .
5578 \backslash
5579 pipe
5580 \backslash
5581 my
5582 \backslash
5583 lyx
5584 \backslash
5585 pipe"
5586 \end_layout
5587
5588 \end_inset
5589
5590  would also work).
5591  You 
5592 \emph on
5593 must
5594 \emph default
5595  configure this manually in order for the server to start.
5596 \end_layout
5597
5598 \begin_layout Standard
5599 \SpecialChar LyX
5600  will add the '
5601 \begin_inset Flex Code
5602 status collapsed
5603
5604 \begin_layout Plain Layout
5605 .in
5606 \end_layout
5607
5608 \end_inset
5609
5610 ' and '
5611 \begin_inset Flex Code
5612 status collapsed
5613
5614 \begin_layout Plain Layout
5615 .out
5616 \end_layout
5617
5618 \end_inset
5619
5620 ' to create the pipes.
5621  If one of the pipes already exists, \SpecialChar LyX
5622  will assume that another \SpecialChar LyX
5623  process
5624  is already running and will not start the server.
5625  On POSIX (Unix like) systems, if for some other reason, an unused 
5626 \begin_inset Quotes eld
5627 \end_inset
5628
5629 stale
5630 \begin_inset Quotes erd
5631 \end_inset
5632
5633  pipe is left in existence when \SpecialChar LyX
5634  closes, then \SpecialChar LyX
5635  will try to delete it.
5636  If this fails for some reason, you will need to delete the pipes manually
5637  and then restart \SpecialChar LyX
5638 .
5639  On Windows, pipes are deleted by the OS on program termination or crash,
5640  so 
5641 \begin_inset Quotes eld
5642 \end_inset
5643
5644 stale
5645 \begin_inset Quotes erd
5646 \end_inset
5647
5648  pipes should not be possible.
5649 \end_layout
5650
5651 \begin_layout Standard
5652 To have several \SpecialChar LyX
5653  processes with servers at the same time, you have to use
5654  different configurations, perhaps by using separate user directories, each
5655  with its own 
5656 \begin_inset Flex Code
5657 status collapsed
5658
5659 \begin_layout Plain Layout
5660 preferences
5661 \end_layout
5662
5663 \end_inset
5664
5665  file, for each process.
5666 \end_layout
5667
5668 \begin_layout Standard
5669 If you are developing a client program, you might find it useful to enable
5670  debugging information from the \SpecialChar LyX
5671  server.
5672  Do this by starting \SpecialChar LyX
5673  as 
5674 \begin_inset Flex Code
5675 status collapsed
5676
5677 \begin_layout Plain Layout
5678 lyx -dbg lyxserver
5679 \end_layout
5680
5681 \end_inset
5682
5683 .
5684 \end_layout
5685
5686 \begin_layout Standard
5687 You can find a complete example client written in C++ in the source distribution
5688  as 
5689 \begin_inset Flex Code
5690 status collapsed
5691
5692 \begin_layout Plain Layout
5693 development/lyxserver/server_monitor.cpp
5694 \end_layout
5695
5696 \end_inset
5697
5698 .
5699 \end_layout
5700
5701 \begin_layout Standard
5702 Another useful tool is the command-line based client found in 
5703 \begin_inset Flex Code
5704 status collapsed
5705
5706 \begin_layout Plain Layout
5707 src/client/lyxclient
5708 \end_layout
5709
5710 \end_inset
5711
5712 .
5713 \end_layout
5714
5715 \begin_layout Section
5716 Normal communication
5717 \end_layout
5718
5719 \begin_layout Standard
5720 To issue a \SpecialChar LyX
5721  call, the client writes a line of ASCII text into the input
5722  pipe.
5723  This line has the following format:
5724 \end_layout
5725
5726 \begin_layout Quote
5727 LYXCMD:
5728 \emph on
5729 clientname
5730 \emph default
5731 :
5732 \emph on
5733 function
5734 \emph default
5735 :
5736 \emph on
5737 argument
5738 \end_layout
5739
5740 \begin_layout Description
5741 clientname is a name that the client can choose arbitrarily.
5742  Its only use is that \SpecialChar LyX
5743  will echo it if it sends an answer—so a client can
5744  dispatch results from different requesters.
5745 \end_layout
5746
5747 \begin_layout Description
5748 function is the function you want \SpecialChar LyX
5749  to perform.
5750  It is the same as the commands you'd use in the minibuffer.
5751 \end_layout
5752
5753 \begin_layout Description
5754 argument is an optional argument which is meaningful only to some functions
5755  (for instance, the 
5756 \begin_inset Quotes eld
5757 \end_inset
5758
5759 self-insert
5760 \begin_inset Quotes erd
5761 \end_inset
5762
5763  LFUN will insert the argument as text at the cursor position).
5764 \end_layout
5765
5766 \begin_layout Standard
5767 The answer from \SpecialChar LyX
5768  will arrive in the output pipe and be of the form
5769 \end_layout
5770
5771 \begin_layout Quote
5772 INFO:
5773 \emph on
5774 clientname
5775 \emph default
5776 :
5777 \emph on
5778 function
5779 \emph default
5780 :
5781 \emph on
5782 data
5783 \end_layout
5784
5785 \begin_layout Standard
5786 where 
5787 \emph on
5788 clientname
5789 \emph default
5790  and 
5791 \emph on
5792 function
5793 \emph default
5794  are just echoed from the command request, while 
5795 \emph on
5796 data
5797 \emph default
5798  is more or less useful information filled according to how the command
5799  execution worked out.
5800  Some commands, such as 
5801 \begin_inset Quotes eld
5802 \end_inset
5803
5804 font-state
5805 \begin_inset Quotes erd
5806 \end_inset
5807
5808 , will return information about the internal state of \SpecialChar LyX
5809 , while other will
5810  return an empty data-response.
5811  This means that the command execution went fine.
5812 \end_layout
5813
5814 \begin_layout Standard
5815 In case of errors, the response from \SpecialChar LyX
5816  will have this form
5817 \end_layout
5818
5819 \begin_layout Quote
5820 ERROR:
5821 \emph on
5822 clientname
5823 \emph default
5824 :
5825 \emph on
5826 function
5827 \emph default
5828 :
5829 \emph on
5830 error message
5831 \end_layout
5832
5833 \begin_layout Standard
5834 where the 
5835 \emph on
5836 error message
5837 \emph default
5838  should contain an explanation of why the command failed.
5839 \end_layout
5840
5841 \begin_layout Standard
5842 Examples:
5843 \end_layout
5844
5845 \begin_layout LyX-Code
5846 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
5847 \begin_inset Newline newline
5848 \end_inset
5849
5850 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
5851 \begin_inset Newline newline
5852 \end_inset
5853
5854 read a <~/.lyxpipe.out
5855 \begin_inset Newline newline
5856 \end_inset
5857
5858 echo $a
5859 \end_layout
5860
5861 \begin_layout Subsection
5862 AppleScript (Mac OS X)
5863 \end_layout
5864
5865 \begin_layout Standard
5866 Since \SpecialChar LyX
5867  2.1, \SpecialChar LyX
5868  supports basic interactions with AppleScript for normal communicatio
5869 n through the command run.
5870  This command takes a direct argument (the 
5871 \series bold
5872 function
5873 \series default
5874  to perform) and an optional argument.
5875  It either returns the output of the function or triggers an error with
5876  the error message and code.
5877 \end_layout
5878
5879 \begin_layout Standard
5880 Example:
5881 \end_layout
5882
5883 \begin_layout LyX-Code
5884 tell application "\SpecialChar LyX
5885 "
5886 \end_layout
5887
5888 \begin_layout LyX-Code
5889   try
5890 \end_layout
5891
5892 \begin_layout LyX-Code
5893     -- Stores the current file name into f
5894 \end_layout
5895
5896 \begin_layout LyX-Code
5897     set f to (run "server-get-filename" with argument "")
5898 \end_layout
5899
5900 \begin_layout LyX-Code
5901     on error the error_message number the error_number
5902 \end_layout
5903
5904 \begin_layout LyX-Code
5905       display dialog "Error: " & the error_number & ".
5906  " ¬
5907 \end_layout
5908
5909 \begin_layout LyX-Code
5910               & the error_message buttons {"OK"} default button 1
5911 \end_layout
5912
5913 \begin_layout LyX-Code
5914   end try
5915 \end_layout
5916
5917 \begin_layout LyX-Code
5918 end tell
5919 \end_layout
5920
5921 \begin_layout Section
5922 Notification
5923 \end_layout
5924
5925 \begin_layout Standard
5926 \SpecialChar LyX
5927  can notify clients of events going on asynchronously.
5928  Currently it will only do this if the user binds a key sequence with the
5929  function 
5930 \begin_inset Quotes eld
5931 \end_inset
5932
5933 notify
5934 \begin_inset Quotes erd
5935 \end_inset
5936
5937 .
5938  The format of the string \SpecialChar LyX
5939  sends is as follows:
5940 \end_layout
5941
5942 \begin_layout Quote
5943 \begin_inset Flex Code
5944 status collapsed
5945
5946 \begin_layout Plain Layout
5947 NOTIFY:
5948 \end_layout
5949
5950 \end_inset
5951
5952
5953 \emph on
5954 key-sequence
5955 \end_layout
5956
5957 \begin_layout Standard
5958 where 
5959 \emph on
5960 key-sequence
5961 \emph default
5962  is the printed representation of the key sequence that was actually typed
5963  by the user.
5964 \end_layout
5965
5966 \begin_layout Standard
5967 This mechanism can be used to extend \SpecialChar LyX
5968 's command set and implement macros.
5969  Bind some key sequence to 
5970 \begin_inset Quotes eld
5971 \end_inset
5972
5973 notify
5974 \begin_inset Quotes erd
5975 \end_inset
5976
5977 .
5978  Then start a client that listens on the output pipe, dispatches the command
5979  according to the sequence, and starts a function that may use \SpecialChar LyX
5980  calls and
5981  \SpecialChar LyX
5982  requests to issue a command or a series of commands to \SpecialChar LyX
5983 .
5984 \end_layout
5985
5986 \begin_layout Section
5987 The simple \SpecialChar LyX
5988  Server Protocol
5989 \end_layout
5990
5991 \begin_layout Standard
5992 \SpecialChar LyX
5993  implements a simple protocol that can be used for session management.
5994  All messages are of the form
5995 \end_layout
5996
5997 \begin_layout Quote
5998 LYXSRV:
5999 \emph on
6000 clientname
6001 \emph default
6002 :
6003 \emph on
6004 protocol message
6005 \end_layout
6006
6007 \begin_layout Standard
6008 where 
6009 \emph on
6010 protocol message
6011 \emph default
6012  can be 
6013 \begin_inset Quotes eld
6014 \end_inset
6015
6016 hello
6017 \begin_inset Quotes erd
6018 \end_inset
6019
6020  or 
6021 \begin_inset Quotes eld
6022 \end_inset
6023
6024 bye
6025 \begin_inset Quotes erd
6026 \end_inset
6027
6028 .
6029  If 
6030 \begin_inset Quotes eld
6031 \end_inset
6032
6033 hello
6034 \begin_inset Quotes erd
6035 \end_inset
6036
6037  is received from a client, \SpecialChar LyX
6038  will report back to inform the client that
6039  it's listening to it's messages, while 
6040 \begin_inset Quotes eld
6041 \end_inset
6042
6043 bye
6044 \begin_inset Quotes erd
6045 \end_inset
6046
6047  sent from \SpecialChar LyX
6048  will inform clients that \SpecialChar LyX
6049  is closing.
6050 \end_layout
6051
6052 \begin_layout Section
6053 Reverse DVI/PDF search
6054 \end_layout
6055
6056 \begin_layout Standard
6057 Some DVI/PDF viewers
6058 \begin_inset Foot
6059 status collapsed
6060
6061 \begin_layout Plain Layout
6062 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6063  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6064 \end_layout
6065
6066 \end_inset
6067
6068  provide 
6069 \emph on
6070 reverse search
6071 \emph default
6072  facility (also called 
6073 \emph on
6074 inverse search
6075 \emph default
6076 ).
6077  This means that you can tell \SpecialChar LyX
6078  to put the cursor to a specific line in the
6079  document by clicking at the respective position in the DVI/PDF output.
6080  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6081 .
6082  This is done via the \SpecialChar LyX
6083  server either by using the named pipe (
6084 \emph on
6085 lyxpipe
6086 \emph default
6087 ), or the UNIX domain socket (
6088 \emph on
6089 lyxsocket
6090 \emph default
6091 ) that \SpecialChar LyX
6092  creates in its temporary directory (this is the way the 
6093 \begin_inset Flex Code
6094 status collapsed
6095
6096 \begin_layout Plain Layout
6097 lyxclient
6098 \end_layout
6099
6100 \end_inset
6101
6102  program communicates with \SpecialChar LyX
6103 ).
6104  In some cases, you need a helper script that mediates between the viewer
6105  and \SpecialChar LyX
6106 , in others, the viewer can communicate with \SpecialChar LyX
6107  directly.
6108  This depends on the selected viewer and on your operating system.
6109  The same applies to the way viewers need to be configured and the way the
6110  reverse search is actually performed.
6111  In what follows, we will thus describe how to setup reverse search for
6112  specific viewers.
6113  Before we turn to this, though, we will explain what needs to be done generally
6114  to enable reverse search in the DVI/PDF output.
6115 \end_layout
6116
6117 \begin_layout Subsection
6118 Automatic setup
6119 \begin_inset CommandInset label
6120 LatexCommand label
6121 name "subsec:rev-search"
6122
6123 \end_inset
6124
6125
6126 \end_layout
6127
6128 \begin_layout Standard
6129 In most cases \SpecialChar LyX
6130  will do the work for you by enabling the option 
6131 \begin_inset Flex MenuItem
6132 status collapsed
6133
6134 \begin_layout Plain Layout
6135 Synchronize with Output
6136 \end_layout
6137
6138 \end_inset
6139
6140  in the menu 
6141 \begin_inset Flex MenuItem
6142 status collapsed
6143
6144 \begin_layout Plain Layout
6145 Document\SpecialChar menuseparator
6146 Settings\SpecialChar menuseparator
6147 Output
6148 \end_layout
6149
6150 \end_inset
6151
6152 .
6153  In such a case \SpecialChar LyX
6154  will automatically insert the necessary Sync\SpecialChar TeX
6155  macro (for
6156  PDF) or load the srcltx package (for DVI) respectively.
6157  This option can be easily reached also on 
6158 \begin_inset Flex Code
6159 status collapsed
6160
6161 \begin_layout Plain Layout
6162 View/Update
6163 \end_layout
6164
6165 \end_inset
6166
6167  Toolbar.
6168 \end_layout
6169
6170 \begin_layout Standard
6171 If you need a different setting, you can select or input a custom macro
6172  from the drop down box just below 
6173 \begin_inset Flex MenuItem
6174 status collapsed
6175
6176 \begin_layout Plain Layout
6177 Document\SpecialChar menuseparator
6178 Settings\SpecialChar menuseparator
6179 Output\SpecialChar menuseparator
6180 Synchronize with Output
6181 \end_layout
6182
6183 \end_inset
6184
6185 .
6186 \end_layout
6187
6188 \begin_layout Standard
6189 Note that the method 
6190 \begin_inset Flex Code
6191 status collapsed
6192
6193 \begin_layout Plain Layout
6194
6195 \backslash
6196 synctex=1
6197 \end_layout
6198
6199 \end_inset
6200
6201  enables gzip compression.
6202  If your viewer does not support it, you should instead use 
6203 \begin_inset Flex Code
6204 status collapsed
6205
6206 \begin_layout Plain Layout
6207
6208 \backslash
6209 synctex=-1
6210 \end_layout
6211
6212 \end_inset
6213
6214 .
6215 \end_layout
6216
6217 \begin_layout Standard
6218 Please also note that including the 
6219 \begin_inset Flex Code
6220 status collapsed
6221
6222 \begin_layout Plain Layout
6223 srcltx
6224 \end_layout
6225
6226 \end_inset
6227
6228  package or 
6229 \begin_inset Flex Code
6230 status collapsed
6231
6232 \begin_layout Plain Layout
6233 src-specials
6234 \end_layout
6235
6236 \end_inset
6237
6238  sometimes has an undesired impact on the typesetting.
6239  Thus, you should switch output synchronization off for the final typesetting
6240  if you use the 
6241 \begin_inset Flex Code
6242 status collapsed
6243
6244 \begin_layout Plain Layout
6245 srcltx
6246 \end_layout
6247
6248 \end_inset
6249
6250  package or 
6251 \begin_inset Flex Code
6252 status collapsed
6253
6254 \begin_layout Plain Layout
6255 src-specials
6256 \end_layout
6257
6258 \end_inset
6259
6260 .
6261  
6262 \end_layout
6263
6264 \begin_layout Standard
6265 In case you need some more special settings that are not covered by the
6266  automatic settings, read the next section about how to set up output synchroniz
6267 ation manually.
6268  If the automatic setup suits your needs, you can readily jump to section
6269 \begin_inset space ~
6270 \end_inset
6271
6272
6273 \begin_inset CommandInset ref
6274 LatexCommand ref
6275 reference "subsec:configuring-viewers"
6276
6277 \end_inset
6278
6279 , where the necessary configuration steps in your viewer – needed both with
6280  the automatic and the manual setup – are described.
6281 \end_layout
6282
6283 \begin_layout Subsection
6284 Manual setup
6285 \end_layout
6286
6287 \begin_layout Standard
6288 \SpecialChar LaTeX
6289  provides several different methods for reverse search.
6290  Some are built-in in the 
6291 \begin_inset Flex Code
6292 status collapsed
6293
6294 \begin_layout Plain Layout
6295 latex/pdflatex
6296 \end_layout
6297
6298 \end_inset
6299
6300  program, some are provided by external packages.
6301  Your choice depends on whether your \SpecialChar LaTeX
6302  distribution already provides a given
6303  method (the built-in methods are rather new) and whether your viewer can
6304  cope with it.
6305  The available methods are described in the following.
6306 \end_layout
6307
6308 \begin_layout Subsubsection*
6309 Built-in DVI-search via src-specials (DVI only) 
6310 \end_layout
6311
6312 \begin_layout Standard
6313 This method provides the DVI file with the necessary information for reverse
6314  search.
6315  It is available in \SpecialChar LaTeX
6316  since quite some time (any somewhat recent \SpecialChar LaTeX
6317  distribution
6318  should include it), and it works reliably.
6319  To enable it, change the 
6320 \begin_inset Flex MenuItem
6321 status collapsed
6322
6323 \begin_layout Plain Layout
6324 La
6325 \family sans
6326 TeX
6327 \family default
6328  (plain)->DVI
6329 \end_layout
6330
6331 \end_inset
6332
6333  or 
6334 \begin_inset Flex MenuItem
6335 status collapsed
6336
6337 \begin_layout Plain Layout
6338 La
6339 \family sans
6340 TeX
6341 \family default
6342  (plain)->DraftDVI
6343 \end_layout
6344
6345 \end_inset
6346
6347  converter in 
6348 \begin_inset Flex MenuItem
6349 status collapsed
6350
6351 \begin_layout Plain Layout
6352 Preferences\SpecialChar menuseparator
6353 File Handling\SpecialChar menuseparator
6354 Converters
6355 \end_layout
6356
6357 \end_inset
6358
6359  to 
6360 \begin_inset Flex Code
6361 status collapsed
6362
6363 \begin_layout Plain Layout
6364 latex -src-specials $$i
6365 \end_layout
6366
6367 \end_inset
6368
6369 .
6370  If this doesn't work, check if your \SpecialChar TeX
6371  engine needs different options (the
6372  syntax might differ in some distributions).
6373 \end_layout
6374
6375 \begin_layout Subsubsection*
6376 External Packages (PDFSync and scrltx) 
6377 \end_layout
6378
6379 \begin_layout Standard
6380 The packages 
6381 \emph on
6382 pdfsync
6383 \emph default
6384  and 
6385 \emph on
6386 scrltx
6387 \emph default
6388  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6389  respectively.
6390  In order to enable it, load the packages in the \SpecialChar LyX
6391  preamble: 
6392 \end_layout
6393
6394 \begin_layout Itemize
6395 \begin_inset Flex Code
6396 status collapsed
6397
6398 \begin_layout Plain Layout
6399
6400 \backslash
6401 usepackage{pdfsync}
6402 \end_layout
6403
6404 \end_inset
6405
6406  for reverse PDF search,
6407 \end_layout
6408
6409 \begin_layout Itemize
6410 \begin_inset Flex Code
6411 status collapsed
6412
6413 \begin_layout Plain Layout
6414
6415 \backslash
6416 usepackage[active]{srcltx}
6417 \end_layout
6418
6419 \end_inset
6420
6421  for reverse DVI search.
6422 \end_layout
6423
6424 \begin_layout Standard
6425 If you want to be able to perform both DVI and PDF reverse searches, you
6426  can also insert in the preamble the following lines
6427 \end_layout
6428
6429 \begin_layout LyX-Code
6430
6431 \backslash
6432 usepackage{ifpdf}
6433 \begin_inset Newline newline
6434 \end_inset
6435
6436
6437 \backslash
6438 ifpdf
6439 \begin_inset Newline newline
6440 \end_inset
6441
6442   
6443 \backslash
6444 usepackage{pdfsync}
6445 \begin_inset Newline newline
6446 \end_inset
6447
6448
6449 \backslash
6450 else
6451 \begin_inset Newline newline
6452 \end_inset
6453
6454   
6455 \backslash
6456 usepackage[active]{srcltx}
6457 \begin_inset Newline newline
6458 \end_inset
6459
6460
6461 \backslash
6462 fi
6463 \end_layout
6464
6465 \begin_layout Standard
6466 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6467  right package will be used.
6468 \end_layout
6469
6470 \begin_layout Standard
6471 Note that PDFSync might affect the output layout of your document.
6472  It is therefore advised to disable PDFsync for final documents.
6473 \end_layout
6474
6475 \begin_layout Subsubsection*
6476 Built-in reverse search via Sync\SpecialChar TeX
6477  (DVI and PDF) 
6478 \end_layout
6479
6480 \begin_layout Standard
6481 Recent versions of 
6482 \begin_inset Flex Code
6483 status collapsed
6484
6485 \begin_layout Plain Layout
6486 (pdf)latex
6487 \end_layout
6488
6489 \end_inset
6490
6491  have built-in support for both PDF and DVI reverse search.
6492  This so-called 
6493 \emph on
6494 Sync\SpecialChar TeX
6495
6496 \emph default
6497  facility is basically the result of the integration of the PDFSync package
6498  to the pdftex program and its merge with the 
6499 \emph on
6500 scr-specials
6501 \emph default
6502  approach.
6503  You need at least \SpecialChar TeX
6504 Live 2008 or a recent Mik\SpecialChar TeX
6505  distribution in order to use
6506  it.
6507 \begin_inset Foot
6508 status collapsed
6509
6510 \begin_layout Plain Layout
6511 For some reason, Mik\SpecialChar TeX
6512  does not understand/obey the command \SpecialChar LyX
6513  inserts into
6514  the preamble when you check the "Enable Forward/Reverse Search" button
6515  in the toolbar and does not generate the necessary info.
6516 \end_layout
6517
6518 \begin_layout Plain Layout
6519 The generation of the required info can be forced by changing the converter
6520  "\SpecialChar LaTeX
6521  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
6522  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
6523  the -synctex=1 switch).
6524 \end_layout
6525
6526 \end_inset
6527
6528  Also note that only a few PDF viewers (Okular and Qpdfview on Unix, Skim
6529  on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
6530  support.
6531 \end_layout
6532
6533 \begin_layout Standard
6534 To enable Sync\SpecialChar TeX
6535  for DVI output, change the 
6536 \begin_inset Flex MenuItem
6537 status collapsed
6538
6539 \begin_layout Plain Layout
6540 La
6541 \family sans
6542 TeX
6543 \family default
6544  (plain) -> DVI
6545 \end_layout
6546
6547 \end_inset
6548
6549  or 
6550 \begin_inset Flex MenuItem
6551 status collapsed
6552
6553 \begin_layout Plain Layout
6554 La
6555 \family sans
6556 TeX
6557 \family default
6558  (plain) -> DraftDVI
6559 \end_layout
6560
6561 \end_inset
6562
6563  converter in 
6564 \begin_inset Flex MenuItem
6565 status collapsed
6566
6567 \begin_layout Plain Layout
6568 Preferences\SpecialChar menuseparator
6569 File Handling\SpecialChar menuseparator
6570 Converters
6571 \end_layout
6572
6573 \end_inset
6574
6575  to 
6576 \begin_inset Flex Code
6577 status collapsed
6578
6579 \begin_layout Plain Layout
6580 latex -synctex=1 $$i
6581 \end_layout
6582
6583 \end_inset
6584
6585 , and for PDF output, change the 
6586 \begin_inset Flex MenuItem
6587 status collapsed
6588
6589 \begin_layout Plain Layout
6590 La
6591 \family sans
6592 TeX
6593 \family default
6594  (pdflatex) -> PDF (pdflatex)
6595 \end_layout
6596
6597 \end_inset
6598
6599  or converter to 
6600 \begin_inset Flex Code
6601 status collapsed
6602
6603 \begin_layout Plain Layout
6604 pdflatex -synctex=1 $$i
6605 \end_layout
6606
6607 \end_inset
6608
6609 .
6610  Check the documentation of your viewer whether the viewer needs to be configure
6611 d for the use with Sync\SpecialChar TeX
6612 .
6613 \begin_inset Foot
6614 status collapsed
6615
6616 \begin_layout Plain Layout
6617 Note that the option 
6618 \begin_inset Flex Code
6619 status collapsed
6620
6621 \begin_layout Plain Layout
6622 -synctex=1
6623 \end_layout
6624
6625 \end_inset
6626
6627  option enables gzip compression.
6628  If your viewer does not support it, you should instead use 
6629 \begin_inset Flex Code
6630 status collapsed
6631
6632 \begin_layout Plain Layout
6633 -synctex=-1
6634 \end_layout
6635
6636 \end_inset
6637
6638 .
6639 \end_layout
6640
6641 \end_inset
6642
6643
6644 \end_layout
6645
6646 \begin_layout Subsection
6647 Configuring and using specific viewers
6648 \begin_inset CommandInset label
6649 LatexCommand label
6650 name "subsec:configuring-viewers"
6651
6652 \end_inset
6653
6654
6655 \end_layout
6656
6657 \begin_layout Subsubsection*
6658 Xdvi (all platforms)
6659 \end_layout
6660
6661 \begin_layout Standard
6662 If you use 
6663 \begin_inset Flex Code
6664 status collapsed
6665
6666 \begin_layout Plain Layout
6667 xdvi
6668 \end_layout
6669
6670 \end_inset
6671
6672 , you don't need to do anything else for performing a reverse DVI search,
6673  as \SpecialChar LyX
6674  already provides the necessary hooks for automatically using the 
6675 \begin_inset Flex Code
6676 status collapsed
6677
6678 \begin_layout Plain Layout
6679 lyxclient
6680 \end_layout
6681
6682 \end_inset
6683
6684  program.
6685  Just setup your document as described above (reverse search is triggered
6686  by Ctrl-click or Alt-click on Mac OSX, respectively).
6687 \end_layout
6688
6689 \begin_layout Standard
6690 However, if for whatever reason you want to use the named pipe instead of
6691  the socket for communicating with \SpecialChar LyX
6692 , simply change the DVI viewer in 
6693 \begin_inset Flex MenuItem
6694 status collapsed
6695
6696 \begin_layout Plain Layout
6697 Preferences\SpecialChar menuseparator
6698 File Handling\SpecialChar menuseparator
6699 File formats
6700 \end_layout
6701
6702 \end_inset
6703
6704  to
6705 \begin_inset Foot
6706 status collapsed
6707
6708 \begin_layout Plain Layout
6709 On Mac OSX you have to use 
6710 \begin_inset Flex Code
6711 status collapsed
6712
6713 \begin_layout Plain Layout
6714 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
6715 \end_layout
6716
6717 \end_inset
6718
6719
6720 \end_layout
6721
6722 \end_inset
6723
6724  
6725 \begin_inset Flex Code
6726 status collapsed
6727
6728 \begin_layout Plain Layout
6729 xdvi -editor "lyxeditor.sh %f %l"
6730 \end_layout
6731
6732 \end_inset
6733
6734 , where 
6735 \begin_inset Flex Code
6736 status collapsed
6737
6738 \begin_layout Plain Layout
6739 lyxeditor.sh
6740 \end_layout
6741
6742 \end_inset
6743
6744  is a suitable script.
6745  For example, a minimal shell script is the following one:
6746 \end_layout
6747
6748 \begin_layout LyX-Code
6749 #!/bin/sh
6750 \begin_inset Newline newline
6751 \end_inset
6752
6753 LYXPIPE="/path/to/lyxpipe"
6754 \begin_inset Newline newline
6755 \end_inset
6756
6757 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6758 \begin_inset Newline newline
6759 \end_inset
6760
6761 echo "$COMMAND" > "${LYXPIPE}".in || exit
6762 \begin_inset Newline newline
6763 \end_inset
6764
6765 read TMP < "${LYXPIPE}".out || exit
6766 \end_layout
6767
6768 \begin_layout Standard
6769 where 
6770 \begin_inset Flex Code
6771 status collapsed
6772
6773 \begin_layout Plain Layout
6774 /path/to/lyxpipe
6775 \end_layout
6776
6777 \end_inset
6778
6779  is the Ly
6780 \begin_inset ERT
6781 status collapsed
6782
6783 \begin_layout Plain Layout
6784
6785 {}
6786 \end_layout
6787
6788 \end_inset
6789
6790 XServer pipe path specified in 
6791 \begin_inset Flex MenuItem
6792 status collapsed
6793
6794 \begin_layout Plain Layout
6795 Preferences\SpecialChar menuseparator
6796 Paths
6797 \end_layout
6798
6799 \end_inset
6800
6801 .
6802 \begin_inset Foot
6803 status collapsed
6804
6805 \begin_layout Plain Layout
6806 In the 
6807 \begin_inset Flex Code
6808 status collapsed
6809
6810 \begin_layout Plain Layout
6811 development/tools
6812 \end_layout
6813
6814 \end_inset
6815
6816  folder of a source distribution you can find a 
6817 \begin_inset Flex Code
6818 status collapsed
6819
6820 \begin_layout Plain Layout
6821 lyxeditor
6822 \end_layout
6823
6824 \end_inset
6825
6826  script which is able to locate the 
6827 \emph on
6828 lyxpipe
6829 \emph default
6830  based on your preferences.
6831 \end_layout
6832
6833 \end_inset
6834
6835
6836 \end_layout
6837
6838 \begin_layout Subsubsection*
6839 MacDviX (Mac OSX)
6840 \end_layout
6841
6842 \begin_layout Standard
6843 At the end of 
6844 \begin_inset Flex Code
6845 status collapsed
6846
6847 \begin_layout Plain Layout
6848 /Applications/MacDviX_Folder/calleditor.script
6849 \end_layout
6850
6851 \end_inset
6852
6853 , add the following lines:
6854 \end_layout
6855
6856 \begin_layout LyX-Code
6857 /Applications/Ly
6858 \begin_inset ERT
6859 status collapsed
6860
6861 \begin_layout Plain Layout
6862
6863 {}
6864 \end_layout
6865
6866 \end_inset
6867
6868 X.app/Contents/MacOS/lyxeditor "$2" $1
6869 \begin_inset Newline newline
6870 \end_inset
6871
6872 exit 1
6873 \end_layout
6874
6875 \begin_layout Standard
6876 Modify the lines accordingly if you install \SpecialChar LyX
6877  somewhere else than in the
6878  Applications folder.
6879 \end_layout
6880
6881 \begin_layout Standard
6882 Reverse search is triggered by Alt-click (OPTION-click).
6883 \end_layout
6884
6885 \begin_layout Subsubsection*
6886 Skim (Mac OSX)
6887 \end_layout
6888
6889 \begin_layout Standard
6890 Enter 
6891 \begin_inset Flex Code
6892 status collapsed
6893
6894 \begin_layout Plain Layout
6895 open -a Skim.app $$i
6896 \end_layout
6897
6898 \end_inset
6899
6900  to the viewer setting in 
6901 \begin_inset Flex MenuItem
6902 status collapsed
6903
6904 \begin_layout Plain Layout
6905 Preferences\SpecialChar menuseparator
6906 File Handling\SpecialChar menuseparator
6907 File formats\SpecialChar menuseparator
6908 PDF (pdflatex)
6909 \end_layout
6910
6911 \end_inset
6912
6913 , and then in 
6914 \begin_inset Flex MenuItem
6915 status collapsed
6916
6917 \begin_layout Plain Layout
6918 Skim\SpecialChar menuseparator
6919 Preferences\SpecialChar menuseparator
6920 Sync
6921 \end_layout
6922
6923 \end_inset
6924
6925  choose 
6926 \begin_inset Flex MenuItem
6927 status collapsed
6928
6929 \begin_layout Plain Layout
6930 custom
6931 \end_layout
6932
6933 \end_inset
6934
6935  preset and enter command 
6936 \begin_inset Flex MenuItem
6937 status collapsed
6938
6939 \begin_layout Plain Layout
6940 /Applications/\SpecialChar LyX
6941 .app/Contents/MacOS/lyxeditor
6942 \end_layout
6943
6944 \end_inset
6945
6946 .
6947 \end_layout
6948
6949 \begin_layout Standard
6950 Reverse search is triggered by COMMAND-SHIFT-click
6951 \end_layout
6952
6953 \begin_layout Subsubsection*
6954 Okular (KDE)
6955 \end_layout
6956
6957 \begin_layout Standard
6958 Go to 
6959 \begin_inset Flex MenuItem
6960 status collapsed
6961
6962 \begin_layout Plain Layout
6963 Settings\SpecialChar menuseparator
6964 Configure Okular\SpecialChar menuseparator
6965 Editor
6966 \end_layout
6967
6968 \end_inset
6969
6970 , select 
6971 \begin_inset Quotes eld
6972 \end_inset
6973
6974 Custom Text Editor
6975 \begin_inset Quotes erd
6976 \end_inset
6977
6978  and add the command 
6979 \begin_inset Flex Code
6980 status collapsed
6981
6982 \begin_layout Plain Layout
6983 lyxclient -g %f %l
6984 \end_layout
6985
6986 \end_inset
6987
6988 .
6989 \end_layout
6990
6991 \begin_layout Standard
6992 Reverse search is triggered by SHIFT-click.
6993 \end_layout
6994
6995 \begin_layout Subsubsection*
6996 Qpdfview (Unix)
6997 \end_layout
6998
6999 \begin_layout Standard
7000 Qpdfview supports Sync\SpecialChar TeX
7001  since version 0.3.5.
7002  Go to 
7003 \begin_inset Flex MenuItem
7004 status collapsed
7005
7006 \begin_layout Plain Layout
7007 Edit\SpecialChar menuseparator
7008 Settings\SpecialChar menuseparator
7009 Behavior
7010 \end_layout
7011
7012 \end_inset
7013
7014 , click on the input field of the 
7015 \begin_inset Quotes eld
7016 \end_inset
7017
7018 Source editor
7019 \begin_inset Quotes erd
7020 \end_inset
7021
7022  item and add the command 
7023 \begin_inset Flex Code
7024 status collapsed
7025
7026 \begin_layout Plain Layout
7027 lyxclient -g %1 %2
7028 \end_layout
7029
7030 \end_inset
7031
7032 .
7033 \end_layout
7034
7035 \begin_layout Standard
7036 Reverse search is triggered by double-click.
7037 \end_layout
7038
7039 \begin_layout Subsubsection*
7040 YAP (Windows)
7041 \end_layout
7042
7043 \begin_layout Standard
7044 Launch yap, choose its 
7045 \begin_inset Flex MenuItem
7046 status collapsed
7047
7048 \begin_layout Plain Layout
7049 View\SpecialChar menuseparator
7050 Options
7051 \end_layout
7052
7053 \end_inset
7054
7055  menu and select the 
7056 \begin_inset Quotes eld
7057 \end_inset
7058
7059 Inverse DVI Search
7060 \begin_inset Quotes erd
7061 \end_inset
7062
7063  tab.
7064  Click on the 
7065 \begin_inset Quotes eld
7066 \end_inset
7067
7068 New\SpecialChar ldots
7069
7070 \begin_inset Quotes erd
7071 \end_inset
7072
7073  button and, in the window that opens, enter 
7074 \begin_inset Quotes eld
7075 \end_inset
7076
7077 \SpecialChar LyX
7078  Editor
7079 \begin_inset Quotes erd
7080 \end_inset
7081
7082  (or any other name you like) in the 
7083 \begin_inset Quotes eld
7084 \end_inset
7085
7086 Name:
7087 \begin_inset Quotes erd
7088 \end_inset
7089
7090  field.
7091  Now click on the button labeled 
7092 \begin_inset Quotes eld
7093 \end_inset
7094
7095 \SpecialChar ldots
7096
7097 \begin_inset Quotes erd
7098 \end_inset
7099
7100  to open a file dialog and navigate to the directory containing the batch
7101  file 
7102 \begin_inset Flex Code
7103 status collapsed
7104
7105 \begin_layout Plain Layout
7106 lyxeditor.bat
7107 \end_layout
7108
7109 \end_inset
7110
7111  (see below).
7112  Select 
7113 \begin_inset Flex Code
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117 lyxeditor.bat
7118 \end_layout
7119
7120 \end_inset
7121
7122  and then specify the program arguments as 
7123 \begin_inset Flex Code
7124 status collapsed
7125
7126 \begin_layout Plain Layout
7127 %f %l
7128 \end_layout
7129
7130 \end_inset
7131
7132 .
7133  The 
7134 \begin_inset Flex Code
7135 status collapsed
7136
7137 \begin_layout Plain Layout
7138 lyxeditor.bat
7139 \end_layout
7140
7141 \end_inset
7142
7143  wrapper is used for communicating with \SpecialChar LyX
7144  through the 
7145 \emph on
7146 lyxpipe
7147 \emph default
7148  and is as follows:
7149 \end_layout
7150
7151 \begin_layout LyX-Code
7152 @echo off
7153 \begin_inset Newline newline
7154 \end_inset
7155
7156 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7157 \backslash
7158
7159 \backslash
7160 .
7161 \backslash
7162 pipe
7163 \backslash
7164 lyxpipe.in
7165 \begin_inset Newline newline
7166 \end_inset
7167
7168 type 
7169 \backslash
7170
7171 \backslash
7172 .
7173 \backslash
7174 pipe
7175 \backslash
7176 lyxpipe.out
7177 \end_layout
7178
7179 \begin_layout Standard
7180 Make sure that the \SpecialChar LyX
7181 Server pipe path you specified in \SpecialChar LyX
7182  is 
7183 \begin_inset Flex Code
7184 status collapsed
7185
7186 \begin_layout Plain Layout
7187
7188 \backslash
7189
7190 \backslash
7191 .
7192 \backslash
7193 pipe
7194 \backslash
7195 lyxpipe
7196 \end_layout
7197
7198 \end_inset
7199
7200 , otherwise change the 
7201 \begin_inset Flex Code
7202 status collapsed
7203
7204 \begin_layout Plain Layout
7205 lyxeditor.bat
7206 \end_layout
7207
7208 \end_inset
7209
7210  wrapper accordingly.
7211 \end_layout
7212
7213 \begin_layout Standard
7214 In yap, reverse search is triggered by double-click.
7215 \end_layout
7216
7217 \begin_layout Subsubsection*
7218 SumatraPDF (Windows)
7219 \end_layout
7220
7221 \begin_layout Standard
7222 In order to use SumatraPDF for inverse search, enter 
7223 \begin_inset Flex Code
7224 status collapsed
7225
7226 \begin_layout Plain Layout
7227 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
7228 \end_layout
7229
7230 \end_inset
7231
7232  in the viewer setting in 
7233 \begin_inset Flex MenuItem
7234 status collapsed
7235
7236 \begin_layout Plain Layout
7237 Preferences\SpecialChar menuseparator
7238 File Handling\SpecialChar menuseparator
7239 File formats\SpecialChar menuseparator
7240 PDF (pdflatex)
7241 \end_layout
7242
7243 \end_inset
7244
7245 , where 
7246 \begin_inset Flex Code
7247 status collapsed
7248
7249 \begin_layout Plain Layout
7250 lyxeditor.bat
7251 \end_layout
7252
7253 \end_inset
7254
7255  is the previous wrapper.
7256  If SumatraPDF.exe is not in your command PATH, use its full file name.
7257 \end_layout
7258
7259 \begin_layout Standard
7260 Reverse search is triggered by double-click.
7261 \end_layout
7262
7263 \begin_layout Subsubsection*
7264 YAP (Cygwin)
7265 \end_layout
7266
7267 \begin_layout Standard
7268 First of all, make sure that yap is your default DVI viewer in the Windows
7269  environment, then launch it, choose its 
7270 \begin_inset Flex MenuItem
7271 status collapsed
7272
7273 \begin_layout Plain Layout
7274 View\SpecialChar menuseparator
7275 Options
7276 \end_layout
7277
7278 \end_inset
7279
7280  menu and select the 
7281 \begin_inset Quotes eld
7282 \end_inset
7283
7284 Inverse DVI Search
7285 \begin_inset Quotes erd
7286 \end_inset
7287
7288  tab.
7289  Click on the 
7290 \begin_inset Quotes eld
7291 \end_inset
7292
7293 New\SpecialChar ldots
7294
7295 \begin_inset Quotes erd
7296 \end_inset
7297
7298  button and, in the window that opens, enter 
7299 \begin_inset Quotes eld
7300 \end_inset
7301
7302 \SpecialChar LyX
7303  Editor
7304 \begin_inset Quotes erd
7305 \end_inset
7306
7307  (or any other name you like) in the 
7308 \begin_inset Quotes eld
7309 \end_inset
7310
7311 Name:
7312 \begin_inset Quotes erd
7313 \end_inset
7314
7315  field.
7316  Now click on the button labeled 
7317 \begin_inset Quotes eld
7318 \end_inset
7319
7320 \SpecialChar ldots
7321
7322 \begin_inset Quotes erd
7323 \end_inset
7324
7325  to open a file dialog and navigate to the directory containing the 
7326 \begin_inset Flex Code
7327 status collapsed
7328
7329 \begin_layout Plain Layout
7330 lyxeditor.exe
7331 \end_layout
7332
7333 \end_inset
7334
7335  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7336  executable).
7337  Select 
7338 \begin_inset Flex Code
7339 status collapsed
7340
7341 \begin_layout Plain Layout
7342 lyxeditor.exe
7343 \end_layout
7344
7345 \end_inset
7346
7347  and then specify the program arguments as 
7348 \begin_inset Flex Code
7349 status collapsed
7350
7351 \begin_layout Plain Layout
7352 -g %f %l
7353 \end_layout
7354
7355 \end_inset
7356
7357 .
7358  In this way, you will be using the 
7359 \emph on
7360 lyxsocket
7361 \emph default
7362  for communicating with \SpecialChar LyX
7363 .
7364  If, for whatever reason, you want to use the 
7365 \emph on
7366 lyxpipe
7367 \emph default
7368 , omit the 
7369 \begin_inset Flex Code
7370 status collapsed
7371
7372 \begin_layout Plain Layout
7373 -g
7374 \end_layout
7375
7376 \end_inset
7377
7378  option and be sure to specify the \SpecialChar LyX
7379 Server pipe path in the \SpecialChar LyX
7380  preferences.
7381 \end_layout
7382
7383 \begin_layout Standard
7384 In yap, reverse search is triggered by double-click.
7385 \end_layout
7386
7387 \begin_layout Subsubsection*
7388 SumatraPDF (Cygwin)
7389 \end_layout
7390
7391 \begin_layout Standard
7392 In order to use SumatraPDF for inverse search, enter 
7393 \begin_inset Flex Code
7394 status collapsed
7395
7396 \begin_layout Plain Layout
7397 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7398 \end_layout
7399
7400 \end_inset
7401
7402  in the viewer setting in 
7403 \begin_inset Flex MenuItem
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407 Preferences\SpecialChar menuseparator
7408 File Handling\SpecialChar menuseparator
7409 File formats\SpecialChar menuseparator
7410 PDF (pdflatex)
7411 \end_layout
7412
7413 \end_inset
7414
7415 .
7416  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7417  The 
7418 \begin_inset Flex Code
7419 status collapsed
7420
7421 \begin_layout Plain Layout
7422 -g
7423 \end_layout
7424
7425 \end_inset
7426
7427  enables communication via the 
7428 \emph on
7429 lyxsocket
7430 \emph default
7431 .
7432  Again, omit the 
7433 \begin_inset Flex Code
7434 status collapsed
7435
7436 \begin_layout Plain Layout
7437 -g
7438 \end_layout
7439
7440 \end_inset
7441
7442  option if you want to use the 
7443 \emph on
7444 lyxpipe
7445 \emph default
7446 , and be sure to specify the \SpecialChar LyX
7447 Server pipe path in the \SpecialChar LyX
7448  preferences.
7449 \end_layout
7450
7451 \begin_layout Standard
7452 Reverse search is triggered by double-click.
7453 \end_layout
7454
7455 \begin_layout Section
7456 Forward search
7457 \end_layout
7458
7459 \begin_layout Standard
7460 Forward search is, as the name implies, in a sense the 
7461 \begin_inset Quotes eld
7462 \end_inset
7463
7464 opposite
7465 \begin_inset Quotes erd
7466 \end_inset
7467
7468  of reverse search.
7469  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7470 .
7471  If forward search is set up (as described in what follows), you can put
7472  the cursor anywhere in your \SpecialChar LyX
7473  document, and hit 
7474 \begin_inset Flex MenuItem
7475 status collapsed
7476
7477 \begin_layout Plain Layout
7478 Navigate\SpecialChar menuseparator
7479 Forward search
7480 \end_layout
7481
7482 \end_inset
7483
7484  (or select 
7485 \begin_inset Flex MenuItem
7486 status collapsed
7487
7488 \begin_layout Plain Layout
7489 Forward search
7490 \end_layout
7491
7492 \end_inset
7493
7494  in the context menu via right mouse click), and then the viewer will jump
7495  to that position as well.
7496  This implies, of course, that your viewer supports this function.
7497 \end_layout
7498
7499 \begin_layout Standard
7500 To make forward search possible, you first need to provide the generated
7501  output PDF/DVI file with additional information about the \SpecialChar TeX
7502  sources.
7503  This can be done via the methods described in the section 
7504 \begin_inset CommandInset ref
7505 LatexCommand ref
7506 reference "subsec:rev-search"
7507
7508 \end_inset
7509
7510 .
7511 \end_layout
7512
7513 \begin_layout Standard
7514 Additionally, you need to configure \SpecialChar LyX
7515  for using your viewers in 
7516 \begin_inset Flex MenuItem
7517 status collapsed
7518
7519 \begin_layout Plain Layout
7520 Tools\SpecialChar menuseparator
7521 Preferences\SpecialChar menuseparator
7522 Output\SpecialChar menuseparator
7523 General
7524 \end_layout
7525
7526 \end_inset
7527
7528 .
7529  We provide a range of tested configurations for some viewers, which you
7530  can select from the drop down list.
7531  If none of these configurations suits you, you have to find out and enter
7532  a suitable configuration yourself.
7533  The definition syntax uses the following placeholders:
7534 \end_layout
7535
7536 \begin_layout Itemize
7537 \noindent
7538 \begin_inset Flex Code
7539 status collapsed
7540
7541 \begin_layout Plain Layout
7542 $$n
7543 \end_layout
7544
7545 \end_inset
7546
7547 : row number
7548 \end_layout
7549
7550 \begin_layout Itemize
7551 \noindent
7552 \begin_inset Flex Code
7553 status collapsed
7554
7555 \begin_layout Plain Layout
7556 $$t
7557 \end_layout
7558
7559 \end_inset
7560
7561 : name of the (temporary) exported .tex file (without path)
7562 \end_layout
7563
7564 \begin_layout Itemize
7565 \noindent
7566 \begin_inset Flex Code
7567 status collapsed
7568
7569 \begin_layout Plain Layout
7570 $$f
7571 \end_layout
7572
7573 \end_inset
7574
7575 : name of the (temporary) exported .tex file (including path)
7576 \end_layout
7577
7578 \begin_layout Itemize
7579 \noindent
7580 \begin_inset Flex Code
7581 status collapsed
7582
7583 \begin_layout Plain Layout
7584 $$o
7585 \end_layout
7586
7587 \end_inset
7588
7589 : name of the exported output file (either dvi or pdf, depending on which
7590  one exists in the temporary directory)
7591 \end_layout
7592
7593 \begin_layout Standard
7594 Note that only some of the viewers provide full forward search functionality,
7595  among them yap, xdvi, okular
7596 \begin_inset Foot
7597 status collapsed
7598
7599 \begin_layout Plain Layout
7600 You might want to set 
7601 \begin_inset Flex Code
7602 status collapsed
7603
7604 \begin_layout Plain Layout
7605 okular –unique
7606 \end_layout
7607
7608 \end_inset
7609
7610  in 
7611 \begin_inset Flex MenuItem
7612 status collapsed
7613
7614 \begin_layout Plain Layout
7615 Tools\SpecialChar menuseparator
7616 Preferences\SpecialChar menuseparator
7617 File Handling\SpecialChar menuseparator
7618 File
7619 \begin_inset space ~
7620 \end_inset
7621
7622 Formats
7623 \end_layout
7624
7625 \end_inset
7626
7627
7628 \end_layout
7629
7630 \end_inset
7631
7632 , qpdfview and SumatraPDF
7633 \begin_inset Foot
7634 status collapsed
7635
7636 \begin_layout Plain Layout
7637 SumatraPDF can also use DDE commands through the external program CMCDDE
7638  — downloadable from 
7639 \begin_inset CommandInset href
7640 LatexCommand href
7641 target "ftp://ftp2.commence.com/pub/freebies/"
7642
7643 \end_inset
7644
7645
7646 \end_layout
7647
7648 \end_inset
7649
7650 .
7651  While many of the widespread PDF viewers (most notably Adobe Reader) do
7652  not support forward search at all, some other viewers – e.
7653 \begin_inset space \thinspace{}
7654 \end_inset
7655
7656 g.
7657  evince and xpdf – allow at least to reload the document and jump to a specific
7658  page of the file, so you can at least navigate 
7659 \begin_inset Quotes eld
7660 \end_inset
7661
7662 near
7663 \begin_inset Quotes erd
7664 \end_inset
7665
7666 .
7667  This latter functionality is provided by an external call of synctex (see
7668  the predefined example configurations).
7669  
7670 \end_layout
7671
7672 \begin_layout Standard
7673 Forward search works both with DVI and PDF output.
7674  \SpecialChar LyX
7675  simply checks which preview format you have used before (i.
7676 \begin_inset space \thinspace{}
7677 \end_inset
7678
7679 e., which format is already there in the temporary directory) and chooses
7680  the appropriate configuration for the respective format.
7681 \end_layout
7682
7683 \begin_layout Chapter
7684 Special Document Classes
7685 \end_layout
7686
7687 \begin_layout Section
7688 A&A Paper
7689 \end_layout
7690
7691 \begin_layout Standard
7692 by 
7693 \noun on
7694 Peter Sütterlin
7695 \end_layout
7696
7697 \begin_layout Subsection
7698 Introduction
7699 \end_layout
7700
7701 \begin_layout Standard
7702 This section describes how \SpecialChar LyX
7703  can be used to write articles for submission
7704  to the scientific journal 
7705 \emph on
7706 Astronomy and Astrophysics
7707 \emph default
7708  (
7709 \begin_inset Flex URL
7710 status collapsed
7711
7712 \begin_layout Plain Layout
7713
7714 http://www.edpsciences.fr/aa/
7715 \end_layout
7716
7717 \end_inset
7718
7719 ) using Version 5.01 of the document class 
7720 \family typewriter
7721 aa.cls
7722 \family default
7723 .
7724  This package can be downloaded from the ftp site
7725 \end_layout
7726
7727 \begin_layout Standard
7728 \begin_inset VSpace medskip
7729 \end_inset
7730
7731
7732 \end_layout
7733
7734 \begin_layout Standard
7735 \align center
7736 \begin_inset Flex URL
7737 status collapsed
7738
7739 \begin_layout Plain Layout
7740
7741 ftp://ftp.edpsciences.org/pub/aa/readme.html
7742 \end_layout
7743
7744 \end_inset
7745
7746
7747 \end_layout
7748
7749 \begin_layout Standard
7750 \begin_inset VSpace medskip
7751 \end_inset
7752
7753
7754 \end_layout
7755
7756 \begin_layout Standard
7757 A manual comes together with that package, and this text is not meant to
7758  replace the original manual but is merely a short guide in how to realize
7759  the correct form of your paper.
7760  
7761 \end_layout
7762
7763 \begin_layout Standard
7764 Please note that the publisher of the journal was changed from Springer
7765  to EDP Sciences starting January 1, 2001.
7766  That change involved also some slight changes to the style files, namely
7767  the removal of the thesaurus command.
7768  The \SpecialChar LyX
7769  class aa supports the newest version of these style files, V 5.01.
7770  If you have an older version installed, please upgrade.
7771  For compatibility, the old (version 4) layout has been kept as 
7772 \family sans
7773 article (A&A V4)
7774 \family default
7775 .
7776  Please refer to the comments in 
7777 \family typewriter
7778 \SpecialChar LyX
7779 Dir/layouts/aapaper.layout
7780 \family default
7781 .
7782 \end_layout
7783
7784 \begin_layout Subsection
7785 Getting started
7786 \end_layout
7787
7788 \begin_layout Standard
7789 It is recommended you start from the example template distributed with \SpecialChar LyX
7790 .
7791  If you are not using a template, note the following settings:
7792 \end_layout
7793
7794 \begin_layout Itemize
7795 Select 
7796 \family sans
7797 article (A&A)
7798 \family default
7799  in the 
7800 \family sans
7801 Document\SpecialChar menuseparator
7802 Settings
7803 \family default
7804  dialog (OK, that one was obvious).
7805 \end_layout
7806
7807 \begin_layout Itemize
7808 Don't change the option 
7809 \family sans
7810 Page
7811 \begin_inset space ~
7812 \end_inset
7813
7814 style
7815 \family default
7816 : Leave it set to 
7817 \family sans
7818 default
7819 \family default
7820 .
7821  The whole layout is done by the macros, you shouldn't change anything.
7822 \end_layout
7823
7824 \begin_layout Subsection
7825 The header block
7826 \end_layout
7827
7828 \begin_layout Standard
7829 First thing to enter is the header information.
7830  It consists of seven entries, of which some are optional.
7831  They are
7832 \end_layout
7833
7834 \begin_layout Itemize
7835
7836 \family sans
7837 Title
7838 \family default
7839 : [required] 
7840 \end_layout
7841
7842 \begin_layout Itemize
7843
7844 \family sans
7845 Subtitle
7846 \family default
7847 : [optional] 
7848 \end_layout
7849
7850 \begin_layout Itemize
7851
7852 \family sans
7853 Author
7854 \family default
7855 : [required]
7856 \end_layout
7857
7858 \begin_layout Itemize
7859
7860 \family sans
7861 Address
7862 \family default
7863 : [required]
7864 \end_layout
7865
7866 \begin_layout Itemize
7867
7868 \family sans
7869 Offprints
7870 \family default
7871 : [optional] if more than one author: whom to contact for offprint requests.
7872 \end_layout
7873
7874 \begin_layout Itemize
7875
7876 \family sans
7877 Mail
7878 \family default
7879 : [optional] mail address for contacts.
7880 \end_layout
7881
7882 \begin_layout Itemize
7883
7884 \family sans
7885 Date
7886 \family default
7887 : [required].
7888  Suggested format is 
7889 \family typewriter
7890 Received: <date>; Accepted <date> 
7891 \end_layout
7892
7893 \begin_layout Standard
7894 There is no need to issue the 
7895 \family typewriter
7896
7897 \backslash
7898 maketitle
7899 \family default
7900  command, this is done automatically by \SpecialChar LyX
7901  when the header is finished.
7902  Although the order of the single header entries doesn't matter it is advised
7903  to keep the above sequence, just to get the best optics and meets the layout
7904  of the real document.
7905 \end_layout
7906
7907 \begin_layout Standard
7908 If you want to place footnotes in the header block, e.
7909 \begin_inset space \thinspace{}
7910 \end_inset
7911
7912 g.
7913 \begin_inset space \space{}
7914 \end_inset
7915
7916 to state your present address, just use the standard footnote via the menu
7917  
7918 \family sans
7919 Insert\SpecialChar menuseparator
7920 Footnote.
7921
7922 \family default
7923  \SpecialChar LyX
7924  will automagically use the term 
7925 \family typewriter
7926
7927 \backslash
7928 thanks{}
7929 \family default
7930  in that case.
7931 \end_layout
7932
7933 \begin_layout Standard
7934 In addition to these topics, the macros use three additional \SpecialChar LaTeX
7935  commands that
7936  have no counterpart in \SpecialChar LyX
7937 :
7938 \end_layout
7939
7940 \begin_layout Itemize
7941
7942 \family typewriter
7943
7944 \backslash
7945 and
7946 \family default
7947  to separate different names for more than one author and institute, respectivel
7948 y.
7949 \end_layout
7950
7951 \begin_layout Itemize
7952
7953 \family typewriter
7954
7955 \backslash
7956 inst{<nr>}
7957 \family default
7958 to mark corresponding author/institute pairs.
7959  The institutes are numbered sequentially as they appear in the 
7960 \family sans
7961 Address
7962 \family default
7963  field, so you have to put a marker to each author.
7964 \end_layout
7965
7966 \begin_layout Itemize
7967
7968 \family typewriter
7969
7970 \backslash
7971 email{address}
7972 \family default
7973  to supply an email address for fast contact.
7974 \end_layout
7975
7976 \begin_layout Standard
7977 In all cases, the appropriate command has to be entered in \SpecialChar LyX
7978  and marked as
7979  \SpecialChar LaTeX
7980  code.
7981  See the examples.
7982  
7983 \end_layout
7984
7985 \begin_layout Subsection
7986 The abstract
7987 \end_layout
7988
7989 \begin_layout Standard
7990 The abstract should immediately follow the header block.
7991  With version 5 the abstract environment was changed to a command, and there
7992  is now a resctriction to only one paragraph.
7993  In addition, it should contain an entry with the keywords.
7994  This is not yet implemented for \SpecialChar LyX
7995 , therefore you have to enter the \SpecialChar LaTeX
7996  command
7997  
7998 \family typewriter
7999
8000 \backslash
8001 keywords{}
8002 \family default
8003  by hand and mark it as \SpecialChar LaTeX
8004  code.
8005  Refer to the example paper.
8006 \end_layout
8007
8008 \begin_layout Subsection
8009 Supported environments
8010 \end_layout
8011
8012 \begin_layout Standard
8013 The A&A paper layout supports the following environments for structuring
8014  your text:
8015 \end_layout
8016
8017 \begin_layout Itemize
8018
8019 \family sans
8020 Standard
8021 \end_layout
8022
8023 \begin_layout Itemize
8024
8025 \family sans
8026 Section
8027 \end_layout
8028
8029 \begin_layout Itemize
8030
8031 \family sans
8032 Subsection
8033 \end_layout
8034
8035 \begin_layout Itemize
8036
8037 \family sans
8038 Subsubsection
8039 \end_layout
8040
8041 \begin_layout Itemize
8042
8043 \family sans
8044 Itemize
8045 \end_layout
8046
8047 \begin_layout Itemize
8048
8049 \family sans
8050 Enumerate
8051 \end_layout
8052
8053 \begin_layout Itemize
8054
8055 \family sans
8056 Description
8057 \end_layout
8058
8059 \begin_layout Itemize
8060
8061 \family sans
8062 Caption
8063 \end_layout
8064
8065 \begin_layout Itemize
8066
8067 \family sans
8068 Abstract
8069 \end_layout
8070
8071 \begin_layout Itemize
8072
8073 \family sans
8074 Acknowledgment
8075 \end_layout
8076
8077 \begin_layout Itemize
8078
8079 \family sans
8080 Bibliography
8081 \end_layout
8082
8083 \begin_layout Itemize
8084
8085 \family sans
8086 \SpecialChar LaTeX
8087
8088 \end_layout
8089
8090 \begin_layout Subsection
8091 Commands not supported by \SpecialChar LyX
8092
8093 \end_layout
8094
8095 \begin_layout Standard
8096 Some commands are not yet supported by the 
8097 \family sans
8098 paper (A&A)
8099 \family default
8100  layout for \SpecialChar LyX
8101 .
8102  Some have already been mentioned.
8103  For the sake of completeness, they are listed all together here:
8104 \end_layout
8105
8106 \begin_layout Itemize
8107
8108 \family typewriter
8109
8110 \backslash
8111 and
8112 \end_layout
8113
8114 \begin_layout Itemize
8115
8116 \family typewriter
8117
8118 \backslash
8119 email
8120 \end_layout
8121
8122 \begin_layout Itemize
8123
8124 \family typewriter
8125
8126 \backslash
8127 appendix
8128 \end_layout
8129
8130 \begin_layout Itemize
8131
8132 \family typewriter
8133
8134 \backslash
8135 authorrunning
8136 \end_layout
8137
8138 \begin_layout Itemize
8139
8140 \family typewriter
8141
8142 \backslash
8143 inst{}
8144 \end_layout
8145
8146 \begin_layout Itemize
8147
8148 \family typewriter
8149
8150 \backslash
8151 keywords{}
8152 \end_layout
8153
8154 \begin_layout Itemize
8155
8156 \family typewriter
8157
8158 \backslash
8159 object{}
8160 \end_layout
8161
8162 \begin_layout Itemize
8163
8164 \family typewriter
8165
8166 \backslash
8167 titlerunning{}
8168 \end_layout
8169
8170 \begin_layout Standard
8171 If you want to use any of these commands, you have to enter them yourself.
8172  
8173 \series bold
8174 Do not forget to mark them as \SpecialChar LaTeX
8175  code!
8176 \end_layout
8177
8178 \begin_layout Subsection
8179 Figure and Table Floats
8180 \end_layout
8181
8182 \begin_layout Standard
8183 \SpecialChar LyX
8184  provides support for the necessary float environments 
8185 \family sans
8186 figure, figure*, table
8187 \family default
8188  and 
8189 \family sans
8190 table*
8191 \family default
8192 , therefore we won't tell much about it here.
8193  Refer to the 
8194 \emph on
8195 User's
8196 \begin_inset space ~
8197 \end_inset
8198
8199 Guide
8200 \emph default
8201 .
8202  Just remember that tables should be left-aligned.
8203  For that, select the table and change the alignment in 
8204 \family sans
8205 Edit\SpecialChar menuseparator
8206 Paragraph
8207 \begin_inset space ~
8208 \end_inset
8209
8210 Settings.
8211 \end_layout
8212
8213 \begin_layout Standard
8214 There is only one special thing: the figures with caption besides the figure.
8215  To create such a figure, you have to do the following:
8216 \end_layout
8217
8218 \begin_layout Enumerate
8219 Create a wide figure float: 
8220 \family sans
8221 Insert\SpecialChar menuseparator
8222 Float\SpecialChar menuseparator
8223 Figure
8224 \family default
8225 , then right click in the figure and select 
8226 \family sans
8227 \bar under
8228 S
8229 \bar default
8230 pan
8231 \begin_inset space ~
8232 \end_inset
8233
8234 columns
8235 \family default
8236 .
8237 \end_layout
8238
8239 \begin_layout Enumerate
8240 Enter your caption text.
8241 \end_layout
8242
8243 \begin_layout Enumerate
8244 Press 
8245 \family sans
8246 Return
8247 \family default
8248  to move the cursor above the caption.
8249 \end_layout
8250
8251 \begin_layout Enumerate
8252 Insert your figure
8253 \end_layout
8254
8255 \begin_layout Enumerate
8256 Position the cursor behind the figure and insert a horizontal fill: 
8257 \family sans
8258 Insert\SpecialChar menuseparator
8259 Special
8260 \begin_inset space ~
8261 \end_inset
8262
8263 Character\SpecialChar menuseparator
8264 Horizontal
8265 \begin_inset space ~
8266 \end_inset
8267
8268 Fill
8269 \family default
8270 .
8271 \end_layout
8272
8273 \begin_layout Enumerate
8274 Switch to \SpecialChar LaTeX
8275  mode: 
8276 \family sans
8277 M-c
8278 \begin_inset space ~
8279 \end_inset
8280
8281 t
8282 \family default
8283 .
8284 \end_layout
8285
8286 \begin_layout Enumerate
8287 Enter 
8288 \family typewriter
8289
8290 \backslash
8291 parbox[b]{55mm}{
8292 \family default
8293 .
8294  
8295 \series bold
8296 Do not close the brace!
8297 \end_layout
8298
8299 \begin_layout Enumerate
8300 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8301  mode and insert
8302  the closing brace: 
8303 \family sans
8304 M-c
8305 \begin_inset space ~
8306 \end_inset
8307
8308 t
8309 \family default
8310  
8311 \family typewriter
8312 }
8313 \family default
8314 .
8315 \end_layout
8316
8317 \begin_layout Standard
8318 Also, refer to the figures in the example paper.
8319 \end_layout
8320
8321 \begin_layout Subsection
8322 Referee layout
8323 \end_layout
8324
8325 \begin_layout Standard
8326 For submission, the paper has to be formated in a special double-spacing
8327  layout.
8328  For this purpose, you have to give the option 
8329 \family typewriter
8330 referee
8331 \family default
8332  to the documentclass.
8333  This must be done using the extra class options field in the 
8334 \family sans
8335 Document\SpecialChar menuseparator
8336 Settings
8337 \family default
8338  dialog.
8339  Just enter the string 
8340 \family typewriter
8341 referee
8342 \family default
8343  there.
8344 \end_layout
8345
8346 \begin_layout Subsection
8347 The example paper
8348 \end_layout
8349
8350 \begin_layout Standard
8351 The 
8352 \family sans
8353 Examples
8354 \family default
8355  directory contains an example paper written with \SpecialChar LyX
8356 .
8357  It is the example paper from the original macro package, translated to
8358  \SpecialChar LyX
8359 .
8360  Use it for inspiration, and compare the original \SpecialChar LaTeX
8361  code with \SpecialChar LyX
8362  way of writing.
8363 \end_layout
8364
8365 \begin_layout Section
8366 AAS\SpecialChar TeX
8367
8368 \end_layout
8369
8370 \begin_layout Standard
8371 by 
8372 \noun on
8373 Mike Ressler
8374 \end_layout
8375
8376 \begin_layout Subsection
8377 Introduction
8378 \end_layout
8379
8380 \begin_layout Standard
8381 AAS\SpecialChar TeX
8382  is a set of macros produced by the American Astronomical Society to
8383  facilitate electronic manuscript submission to the three journals they
8384  publish: the Astrophysical Journal (including the Letters and Supplement),
8385  the Astronomical Journal, and the Publications of the Astronomical Society
8386  of the Pacific.
8387  \SpecialChar LyX
8388  has proven to be an excellent tool for generating these documents, especially
8389  given its equation, citation, and figure handling capabilities.
8390  \SpecialChar LyX
8391  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8392  is the version described here, or higher.
8393  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8394 2.09 and are fundamentally
8395  incompatible with \SpecialChar LyX
8396 .
8397  The AAS\SpecialChar TeX
8398  package may be downloaded from the AAS\SpecialChar TeX
8399  Web site
8400 \end_layout
8401
8402 \begin_layout Standard
8403 \begin_inset VSpace medskip
8404 \end_inset
8405
8406
8407 \end_layout
8408
8409 \begin_layout Standard
8410 \align center
8411 \begin_inset Flex URL
8412 status collapsed
8413
8414 \begin_layout Plain Layout
8415
8416 http://www.journals.uchicago.edu/AAS/AASTeX
8417 \end_layout
8418
8419 \end_inset
8420
8421
8422 \end_layout
8423
8424 \begin_layout Standard
8425 \begin_inset VSpace medskip
8426 \end_inset
8427
8428
8429 \end_layout
8430
8431 \begin_layout Standard
8432 A complete user guide is contained in that package and you should familiarize
8433  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8434 .
8435  \SpecialChar LyX
8436  will not reduce the need to figure out all the AAS\SpecialChar TeX
8437  commands, it will only
8438  reduce the drudgery of typing everything in.
8439  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8440  document conforms
8441  completely to the requirements of the journal to which you are submitting
8442  your paper.
8443 \end_layout
8444
8445 \begin_layout Subsection
8446 Starting a New Paper
8447 \end_layout
8448
8449 \begin_layout Standard
8450 I strongly suggest that you start with the AAS\SpecialChar TeX
8451  template file.
8452  Click on 
8453 \family sans
8454 File\SpecialChar menuseparator
8455 New from
8456 \family default
8457  
8458 \family sans
8459 Template
8460 \family default
8461 , enter the new file name, then choose the 
8462 \family typewriter
8463 aastex.lyx
8464 \family default
8465  template.
8466  This will show the most common fields found in a manuscript.
8467  Simply overwrite the existing text (including the brackets, 
8468 \family typewriter
8469 <>
8470 \family default
8471 ) with the correct information.
8472  Many of the AAS\SpecialChar TeX
8473  commands and environments can be implemented directly in
8474  \SpecialChar LyX
8475 , but some cannot: most noticeably 
8476 \family typewriter
8477
8478 \backslash
8479 altaffilmark
8480 \family default
8481  and 
8482 \family typewriter
8483
8484 \backslash
8485 altaffiltext
8486 \family default
8487 , which should stick out like a sore thumb if you actually just opened the
8488  template file.
8489  For commands such as these, the \SpecialChar LaTeX
8490  code must be entered directly and marked
8491  as such.
8492  Such commands are referred to as \SpecialChar TeX
8493  code, or Evil Red Text.
8494  I tried to minimize the amount of \SpecialChar TeX
8495  code needed in an AAS\SpecialChar TeX
8496  document, but
8497  there is still a bit more required than any of us would like.
8498 \end_layout
8499
8500 \begin_layout Subsection
8501 Finishing Your Paper
8502 \end_layout
8503
8504 \begin_layout Standard
8505 When the paper is finished to your satisfaction and previews/prints correctly,
8506  there are a few 
8507 \begin_inset Quotes eld
8508 \end_inset
8509
8510 postprocessing
8511 \begin_inset Quotes erd
8512 \end_inset
8513
8514  actions which need to be done before you submit it to the journals.
8515  
8516 \end_layout
8517
8518 \begin_layout Enumerate
8519 Export your paper as a \SpecialChar LaTeX
8520  file (
8521 \family sans
8522 File\SpecialChar menuseparator
8523 Export\SpecialChar menuseparator
8524 \SpecialChar LaTeX
8525
8526 \family default
8527 ).
8528  
8529 \end_layout
8530
8531 \begin_layout Enumerate
8532 Edit the resulting 
8533 \family typewriter
8534 .tex
8535 \family default
8536  file with your favorite text editor
8537 \begin_inset Separator parbreak
8538 \end_inset
8539
8540
8541 \end_layout
8542
8543 \begin_deeper
8544 \begin_layout Enumerate
8545 remove the comment lines before the 
8546 \family typewriter
8547
8548 \backslash
8549 documentclass
8550 \family default
8551  command
8552 \end_layout
8553
8554 \begin_layout Enumerate
8555 remove the 
8556 \family typewriter
8557
8558 \backslash
8559 usepackage...{fontenc}
8560 \family default
8561  line if it appears (usually just after 
8562 \family typewriter
8563
8564 \backslash
8565 documentclass
8566 \family default
8567 }; also remove the 
8568 \family typewriter
8569
8570 \backslash
8571 secnumdepth
8572 \family default
8573  line if it appears.
8574 \end_layout
8575
8576 \begin_layout Enumerate
8577 remove everything between (and including) the 
8578 \family typewriter
8579
8580 \backslash
8581 makeatletter
8582 \family default
8583  and 
8584 \family typewriter
8585
8586 \backslash
8587 makeatother
8588 \family default
8589  commands, except for any commands you specifically put into the \SpecialChar LaTeX
8590  preamble
8591  (which should appear immediately after the 
8592 \begin_inset Quotes eld
8593 \end_inset
8594
8595 User specified \SpecialChar LaTeX
8596  commands
8597 \begin_inset Quotes erd
8598 \end_inset
8599
8600  comment in the 
8601 \family typewriter
8602 .tex
8603 \family default
8604  file).
8605 \end_layout
8606
8607 \end_deeper
8608 \begin_layout Enumerate
8609 Run the resulting file through \SpecialChar LaTeX
8610  to make sure it still processes correctly.
8611 \end_layout
8612
8613 \begin_layout Enumerate
8614 Reread the journal requirements to make sure your filenames and formats
8615  are correct.
8616 \end_layout
8617
8618 \begin_layout Enumerate
8619 Submit it.
8620 \end_layout
8621
8622 \begin_layout Subsection
8623 Comments On Specific Commands
8624 \end_layout
8625
8626 \begin_layout Standard
8627 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
8628  commands: the
8629  AAS\SpecialChar TeX
8630  User Guide (
8631 \family typewriter
8632 aasguide.tex
8633 \family default
8634 ) gives a good description of each.
8635  Thus it's probably easiest for me to go down the list as found in the guide
8636  and offer comments where necessary.
8637  So let's begin \SpecialChar ldots
8638
8639 \end_layout
8640
8641 \begin_layout Subsubsection
8642 Things that work as expected
8643 \end_layout
8644
8645 \begin_layout Standard
8646 Because they work as you might expect, I simply list them and the section
8647  they are found in: 
8648 \family typewriter
8649
8650 \backslash
8651 documentclass
8652 \family default
8653  (2.1.1), 
8654 \family typewriter
8655
8656 \backslash
8657 begin{document}
8658 \family default
8659  (2.2), 
8660 \family typewriter
8661
8662 \backslash
8663 title
8664 \family default
8665  (2.3), 
8666 \family typewriter
8667
8668 \backslash
8669 author
8670 \family default
8671  (2.3), 
8672 \family typewriter
8673
8674 \backslash
8675 affil
8676 \family default
8677  (2.3), 
8678 \family typewriter
8679
8680 \backslash
8681 abstract
8682 \family default
8683  (2.4), 
8684 \family typewriter
8685
8686 \backslash
8687 keywords
8688 \family default
8689  (2.5), 
8690 \family typewriter
8691
8692 \backslash
8693 section
8694 \family default
8695  (2.7), 
8696 \family typewriter
8697
8698 \backslash
8699 subsection
8700 \family default
8701  (2.7), 
8702 \family typewriter
8703
8704 \backslash
8705 subsubsection
8706 \family default
8707  (2.7), 
8708 \family typewriter
8709
8710 \backslash
8711 paragraph
8712 \family default
8713  (2.7), 
8714 \family typewriter
8715
8716 \backslash
8717 facility
8718 \family default
8719  (2.10), 
8720 \family typewriter
8721
8722 \backslash
8723 begin{displaymath}
8724 \family default
8725  (2.12), 
8726 \family typewriter
8727
8728 \backslash
8729 begin{equation}
8730 \family default
8731  (2.12), 
8732 \family typewriter
8733
8734 \backslash
8735 begin{eqnarray}
8736 \family default
8737  (2.12), 
8738 \family typewriter
8739
8740 \backslash
8741 begin{mathletters}
8742 \family default
8743  (2.12), 
8744 \family typewriter
8745
8746 \backslash
8747 begin{thebibliography}
8748 \family default
8749  (2.13.1), 
8750 \family typewriter
8751
8752 \backslash
8753 bibitem
8754 \family default
8755  (2.13.2), all the cite commands and their variations (2.13.2), the generic
8756  graphicx figure commands (2.14.1), 
8757 \family typewriter
8758
8759 \backslash
8760 begin{table}
8761 \family default
8762  (2.15.4), 
8763 \family typewriter
8764
8765 \backslash
8766 begin{tabular}
8767 \family default
8768  (2.15.4), 
8769 \family typewriter
8770
8771 \backslash
8772 caption
8773 \family default
8774  (2.15.4), 
8775 \family typewriter
8776
8777 \backslash
8778 label
8779 \family default
8780  (2.15.4, amongst other places), 
8781 \family typewriter
8782
8783 \backslash
8784 tablerefs
8785 \family default
8786  (2.15.5), 
8787 \family typewriter
8788
8789 \backslash
8790 tablecomments
8791 \family default
8792  (2.15.5), 
8793 \family typewriter
8794
8795 \backslash
8796 url
8797 \family default
8798  (2.17.4), 
8799 \family typewriter
8800
8801 \backslash
8802 end{document}
8803 \family default
8804  (2.18).
8805 \end_layout
8806
8807 \begin_layout Standard
8808 The following style options also work correctly: 
8809 \family typewriter
8810 longabstract
8811 \family default
8812  (2.4), 
8813 \family typewriter
8814 preprint
8815 \family default
8816  (3.2.1), 
8817 \family typewriter
8818 preprint2
8819 \family default
8820  (3.2.2), 
8821 \family typewriter
8822 eqsecnum
8823 \family default
8824  (3.3), 
8825 \family typewriter
8826 flushrt
8827 \family default
8828  (3.4).
8829  Simply put them in the 
8830 \family sans
8831 Options
8832 \family default
8833  box in 
8834 \family sans
8835 Layout\SpecialChar menuseparator
8836 Document
8837 \family default
8838 .
8839 \end_layout
8840
8841 \begin_layout Subsubsection
8842 Things that work, but require more comment
8843 \end_layout
8844
8845 \begin_layout Standard
8846 The following items work, but require a little more discussion:
8847 \end_layout
8848
8849 \begin_layout Itemize
8850 These items are reserved for use by the journal editors, but you can put
8851  them into the \SpecialChar LaTeX
8852  preamble if you feel compelled to do so: 
8853 \family typewriter
8854
8855 \backslash
8856 received
8857 \family default
8858
8859 \family typewriter
8860
8861 \backslash
8862 revised
8863 \family default
8864
8865 \family typewriter
8866
8867 \backslash
8868 accepted
8869 \family default
8870
8871 \family typewriter
8872
8873 \backslash
8874 ccc
8875 \family default
8876
8877 \family typewriter
8878
8879 \backslash
8880 cpright
8881 \family default
8882  (all from 2.1.3)
8883 \end_layout
8884
8885 \begin_layout Itemize
8886 These items may be placed in the \SpecialChar LaTeX
8887  preamble, and are included as blanks in
8888  the template file: 
8889 \family typewriter
8890
8891 \backslash
8892 slugcomment
8893 \family default
8894  (2.1.4), 
8895 \family typewriter
8896
8897 \backslash
8898 shorttitle
8899 \family default
8900  (2.1.5), 
8901 \family typewriter
8902
8903 \backslash
8904 shortauthors
8905 \family default
8906  (2.1.5)
8907 \end_layout
8908
8909 \begin_layout Itemize
8910
8911 \family typewriter
8912
8913 \backslash
8914 email
8915 \family default
8916  (2.3) – can only be used 
8917 \begin_inset Quotes eld
8918 \end_inset
8919
8920 standalone
8921 \begin_inset Quotes erd
8922 \end_inset
8923
8924 , not in the middle of a paragraph.
8925  Use \SpecialChar TeX
8926  code if you need to embed it.
8927 \end_layout
8928
8929 \begin_layout Itemize
8930
8931 \family typewriter
8932
8933 \backslash
8934 and
8935 \family default
8936  (2.3) – will have extra {} after it.
8937  This should not cause an error.
8938 \end_layout
8939
8940 \begin_layout Itemize
8941
8942 \family typewriter
8943
8944 \backslash
8945 notetoeditor
8946 \family default
8947  (2.6) – can only be used 
8948 \begin_inset Quotes eld
8949 \end_inset
8950
8951 standalone
8952 \begin_inset Quotes erd
8953 \end_inset
8954
8955 , not in the middle of a paragraph.
8956  Use \SpecialChar TeX
8957  code if you need to embed it.
8958 \end_layout
8959
8960 \begin_layout Itemize
8961
8962 \family typewriter
8963
8964 \backslash
8965 placetable
8966 \family default
8967  (2.8) – can't insert a cross-reference tag, you must type the tag name by
8968  hand
8969 \end_layout
8970
8971 \begin_layout Itemize
8972
8973 \family typewriter
8974
8975 \backslash
8976 placefigure
8977 \family default
8978  (2.8) – same as for 
8979 \family typewriter
8980
8981 \backslash
8982 placetable
8983 \end_layout
8984
8985 \begin_layout Itemize
8986
8987 \family typewriter
8988
8989 \backslash
8990 acknowledgements
8991 \family default
8992  (2.9) – will have extra {} after it.
8993  This should not cause an error.
8994 \end_layout
8995
8996 \begin_layout Itemize
8997
8998 \family typewriter
8999
9000 \backslash
9001 appendix
9002 \family default
9003  (2.11) – will have extra {} after it.
9004  This should not cause an error.
9005 \end_layout
9006
9007 \begin_layout Itemize
9008
9009 \family typewriter
9010
9011 \backslash
9012 figcaption
9013 \family default
9014  (2.14.2) – you can insert an optional filename argument by placing the cursor
9015  at the beginning of the text and selecting 
9016 \family sans
9017 Insert\SpecialChar menuseparator
9018 Short Title
9019 \family default
9020 .
9021  
9022 \begin_inset Quotes eld
9023 \end_inset
9024
9025 Short Title
9026 \begin_inset Quotes erd
9027 \end_inset
9028
9029  inserts an optional argument of the type needed by 
9030 \family typewriter
9031
9032 \backslash
9033 figcaption
9034 \family default
9035 .
9036  Hopefully it will be renamed someday.
9037 \end_layout
9038
9039 \begin_layout Itemize
9040
9041 \family typewriter
9042
9043 \backslash
9044 objectname
9045 \family default
9046  (2.17.1) – same as 
9047 \family typewriter
9048
9049 \backslash
9050 figcaption
9051 \family default
9052  for the catalog ID optional parameter
9053 \end_layout
9054
9055 \begin_layout Itemize
9056
9057 \family typewriter
9058
9059 \backslash
9060 dataset
9061 \family default
9062  (2.17.1) – same as 
9063 \family typewriter
9064
9065 \backslash
9066 figcaption
9067 \family default
9068  for the catalog ID optional parameter
9069 \end_layout
9070
9071 \begin_layout Subsubsection
9072 Things not implemented, use \SpecialChar TeX
9073  code
9074 \end_layout
9075
9076 \begin_layout Standard
9077
9078 \family typewriter
9079
9080 \backslash
9081 altaffilmark
9082 \family default
9083  (2.3), 
9084 \family typewriter
9085
9086 \backslash
9087 altaffiltext
9088 \family default
9089  (2.3), 
9090 \family typewriter
9091
9092 \backslash
9093 eqnum
9094 \family default
9095  (2.12), 
9096 \family typewriter
9097
9098 \backslash
9099 setcounter{equation}
9100 \family default
9101  (2.12), Journal name abbreviations (2.13.4), 
9102 \family typewriter
9103
9104 \backslash
9105 figurenum
9106 \family default
9107  (2.14.1), 
9108 \family typewriter
9109
9110 \backslash
9111 epsscale
9112 \family default
9113  (2.14.1), 
9114 \family typewriter
9115
9116 \backslash
9117 plotone
9118 \family default
9119  (2.14.1), 
9120 \family typewriter
9121
9122 \backslash
9123 plottwo
9124 \family default
9125  (2.14.1), 
9126 \family typewriter
9127
9128 \backslash
9129 tablenum
9130 \family default
9131  (2.15.4), 
9132 \family typewriter
9133
9134 \backslash
9135 tableline
9136 \family default
9137  (2.15.4, insert it as the first element in the lefthand cell after where
9138  you want it.
9139  Don't use any of \SpecialChar LyX
9140 's rules in the table), 
9141 \family typewriter
9142
9143 \backslash
9144 tablenotemark
9145 \family default
9146  (2.15.5), 
9147 \family typewriter
9148
9149 \backslash
9150 tablenotetext
9151 \family default
9152  (2.15.5), much of Misc (2.17, except 
9153 \family typewriter
9154
9155 \backslash
9156 objectname
9157 \family default
9158
9159 \family typewriter
9160
9161 \backslash
9162 dataset
9163 \family default
9164
9165 \family typewriter
9166
9167 \backslash
9168 url
9169 \family default
9170 , and 
9171 \family typewriter
9172
9173 \backslash
9174 email
9175 \family default
9176 ; see above), 
9177 \family typewriter
9178
9179 \backslash
9180 singlespace
9181 \family default
9182  (3.1), 
9183 \family typewriter
9184
9185 \backslash
9186 doublespace
9187 \family default
9188  (3.1), 
9189 \family typewriter
9190
9191 \backslash
9192 onecolumn
9193 \family default
9194  (3.2), 
9195 \family typewriter
9196
9197 \backslash
9198 twocolumn
9199 \family default
9200  (3.2)
9201 \end_layout
9202
9203 \begin_layout Subsubsection
9204 Things that cannot be implemented
9205 \end_layout
9206
9207 \begin_layout Standard
9208 \SpecialChar ldots
9209  at least in any meaningful sort of way, so I suggest ignoring them.
9210  They are the references environment (2.13.3), and the deluxetable environment
9211  (2.15).
9212  If you really, really need to use deluxetable, I suggest editing it in
9213  a separate file with a text editor, then using 
9214 \family sans
9215 Insert\SpecialChar menuseparator
9216 Child
9217 \begin_inset space ~
9218 \end_inset
9219
9220 Document
9221 \family default
9222  to include it in your \SpecialChar LyX
9223  document.
9224  See the 
9225 \family typewriter
9226 aas_sample.lyx
9227 \family default
9228  file to see an example of this.
9229 \end_layout
9230
9231 \begin_layout Subsection
9232 FAQs, Tips, Tricks, and Other Ruminations
9233 \end_layout
9234
9235 \begin_layout Subsubsection
9236 Getting \SpecialChar LyX
9237  and AAS\SpecialChar TeX
9238  to cooperate
9239 \end_layout
9240
9241 \begin_layout Standard
9242 It can be a bit tricky to get \SpecialChar LyX
9243  to recognize a new layout and document class.
9244  When all else fails, do this:
9245 \end_layout
9246
9247 \begin_layout Enumerate
9248 Make certain that \SpecialChar LaTeX
9249  can find AAS\SpecialChar TeX
9250 .
9251  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9252  distribution into a
9253  directory completely unrelated to \SpecialChar LaTeX
9254  or AAS\SpecialChar TeX
9255  and run \SpecialChar LaTeX
9256  on 
9257 \family typewriter
9258 sample.tex
9259 \family default
9260 .
9261 \end_layout
9262
9263 \begin_layout Enumerate
9264 Make certain that 
9265 \family typewriter
9266 aastex.layout
9267 \family default
9268  appears in \SpecialChar LyX
9269 's 
9270 \family typewriter
9271 layouts
9272 \family default
9273  folder
9274 \end_layout
9275
9276 \begin_layout Enumerate
9277 Rerun 
9278 \family sans
9279 Tools\SpecialChar menuseparator
9280 Reconfigure
9281 \family default
9282  in \SpecialChar LyX
9283 , then restart \SpecialChar LyX
9284 .
9285 \end_layout
9286
9287 \begin_layout Enumerate
9288 Open a regular new file, not from a template.
9289  Does AAS\SpecialChar TeX
9290  appear in the class list in 
9291 \family sans
9292 Document\SpecialChar menuseparator
9293 Settings
9294 \family default
9295 ?
9296 \end_layout
9297
9298 \begin_layout Standard
9299 If you get a warning from an existing AAS\SpecialChar TeX
9300  document about not being able
9301  to find the AAS\SpecialChar TeX
9302  layout or a message about 
9303 \begin_inset Quotes eld
9304 \end_inset
9305
9306 You should not mix title layouts with normal ones
9307 \begin_inset Quotes erd
9308 \end_inset
9309
9310 , things haven't been installed correctly.
9311 \end_layout
9312
9313 \begin_layout Subsubsection
9314 \SpecialChar LaTeX
9315  error processing a table 
9316 \end_layout
9317
9318 \begin_layout Standard
9319 \SpecialChar LyX
9320 , by default, attempts to center the table caption/title.
9321  This seems to produce a bad interaction in AAS\SpecialChar TeX
9322  so you should click somewhere
9323  in the caption/title, then select 
9324 \family sans
9325 Edit\SpecialChar menuseparator
9326 Paragraph
9327 \begin_inset space ~
9328 \end_inset
9329
9330 Settings
9331 \family default
9332 , then set the 
9333 \family sans
9334 Alignment
9335 \family default
9336  to 
9337 \family sans
9338 Block
9339 \family default
9340 .
9341  This took care of it for me.
9342 \end_layout
9343
9344 \begin_layout Subsubsection
9345 References
9346 \end_layout
9347
9348 \begin_layout Standard
9349 A couple of things: 1) I have noticed some funny spacing in the reference
9350  entries in the text.
9351  When you enter the bibliography item data, make sure their is 
9352 \emph on
9353 no
9354 \emph default
9355  space between the last author and the parenthesis setting off the year;
9356  
9357 \emph on
9358 e.
9359 \begin_inset space \thinspace{}
9360 \end_inset
9361
9362 g.
9363 \begin_inset space \space{}
9364 \end_inset
9365
9366
9367 \emph default
9368 type 
9369 \family typewriter
9370 Ressler(1992)
9371 \family default
9372 , not 
9373 \family typewriter
9374 Ressler (1992)
9375 \family default
9376 .
9377  2) Entering the references at all is not obvious.
9378  The easiest thing is to start typing your first reference at the end of
9379  the document, then mark it as type 
9380 \family sans
9381 References
9382 \family default
9383 .
9384  That will put a small gray box in front of what you just typed.
9385  Click on the box to fill in the rest of the information.
9386  For new references, go to the end of an existing reference and press return.
9387  That will create a new line with its own box, etc.
9388 \end_layout
9389
9390 \begin_layout Subsubsection
9391 Including EPS files
9392 \end_layout
9393
9394 \begin_layout Standard
9395 Even though AAS\SpecialChar TeX
9396  provides its own figure commands (
9397 \family typewriter
9398
9399 \backslash
9400 plotone
9401 \family default
9402 , for example), I much prefer \SpecialChar LaTeX
9403 's standard figure commands (with the default
9404  graphicx).
9405  You can insert the 
9406 \family typewriter
9407
9408 \backslash
9409 plotone
9410 \family default
9411 , etc.
9412 \begin_inset space ~
9413 \end_inset
9414
9415 commands as \SpecialChar TeX
9416  code into a Figure Float box if you desire, but I never have
9417  much luck getting the layout right.
9418  With the standard graphics, \SpecialChar LyX
9419  will insert a 
9420 \family typewriter
9421
9422 \backslash
9423 usepackage{graphicx}
9424 \family default
9425  command into the \SpecialChar LaTeX
9426  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9427  way,
9428  interspersing the figures in the text.
9429  I believe ApJ accepts figures exactly this way now; AJ might still use
9430  the 
9431 \begin_inset Quotes eld
9432 \end_inset
9433
9434 stack everything at the end
9435 \begin_inset Quotes erd
9436 \end_inset
9437
9438  technique.
9439 \end_layout
9440
9441 \begin_layout Subsubsection
9442 Things I could have done, but didn't
9443 \end_layout
9444
9445 \begin_layout Standard
9446 There are a few 
9447 \begin_inset Quotes eld
9448 \end_inset
9449
9450 pretty
9451 \begin_inset Quotes erd
9452 \end_inset
9453
9454  things I could have implemented, but chose not to.
9455  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9456  window,
9457  even though it is double-spaced in the paper manuscript.
9458  Also, I chose not to make separate layouts for the preprint and preprint2
9459  styles.
9460  Since I assume you will spend most of your time in the plain manuscript
9461  mode anyway, I decided not to chew up more disk space with this.
9462  
9463 \end_layout
9464
9465 \begin_layout Subsection
9466 Final Caveat
9467 \end_layout
9468
9469 \begin_layout Standard
9470 Your mileage may vary.
9471  I've now had papers published by both ApJ and AJ that have had 98% of the
9472  effort done in \SpecialChar LyX
9473 ; the last 2% was the \SpecialChar LaTeX
9474  post-processing and a few cleanups.
9475  I have had no trouble with the submission process, and I'm sure the journals
9476  were never aware that there might be a difference.
9477  So, go forth and publish!
9478 \end_layout
9479
9480 \begin_layout Section
9481 AMS \SpecialChar LaTeX
9482
9483 \end_layout
9484
9485 \begin_layout Standard
9486 by 
9487 \noun on
9488 David Johnson
9489 \noun default
9490 ; updated by 
9491 \noun on
9492 Richard Heck
9493 \end_layout
9494
9495 \begin_layout Standard
9496 \begin_inset VSpace bigskip
9497 \end_inset
9498
9499
9500 \end_layout
9501
9502 \begin_layout Standard
9503 \noindent
9504 The AMS \SpecialChar LaTeX
9505  layouts are set up to conform to suggested styles for mathematical
9506  papers to be submitted to American Mathematical Society publications.
9507  The layouts are not tailored to a specific journal, but easily can be.
9508  You should refer to the AMS documentation for specific instructions for
9509  each journal (usually it will entail only changing a single line in the
9510  \SpecialChar TeX
9511  output).
9512  That documentation is available on the Web at 
9513 \begin_inset Flex URL
9514 status open
9515
9516 \begin_layout Plain Layout
9517
9518 http://www.ams.org
9519 \end_layout
9520
9521 \end_inset
9522
9523  or by ftp at 
9524 \begin_inset Flex URL
9525 status open
9526
9527 \begin_layout Plain Layout
9528
9529 ftp://ftp.ams.org/pub/tex/amslatex/
9530 \end_layout
9531
9532 \end_inset
9533
9534 .
9535  These layouts are appropriate, and useful, for any mathematical writing.
9536  
9537 \end_layout
9538
9539 \begin_layout Standard
9540 There are two basic AMS \SpecialChar LaTeX
9541  layouts: 
9542 \end_layout
9543
9544 \begin_layout Itemize
9545 amsart: The standard AMS article format.
9546 \end_layout
9547
9548 \begin_layout Itemize
9549 amsbook: the standard AMS book (really, monograph) format.
9550  
9551 \end_layout
9552
9553 \begin_layout Standard
9554 The layouts themselves contain only the minimum necessary to use the AMS
9555  classes.
9556  They do not, in particular, contain any of the `theorem' environments used
9557  for setting theorems, lemmas, and the like.
9558  These are contained, instead, in the 
9559 \begin_inset Flex Code
9560 status collapsed
9561
9562 \begin_layout Plain Layout
9563 Theorems (AMS)
9564 \end_layout
9565
9566 \end_inset
9567
9568  module, which is loaded by default when you select one of the AMS classes.
9569  (It can also be used with other classes and can be removed, if you would
9570  rather use something else.) Less commonly used environments are in the 
9571 \begin_inset Flex Code
9572 status collapsed
9573
9574 \begin_layout Plain Layout
9575 Theorems (AMS-Extended)
9576 \end_layout
9577
9578 \end_inset
9579
9580  module, which must be loaded manually.
9581 \end_layout
9582
9583 \begin_layout Standard
9584 By default, theorems and the like are numbered consecutively throughout
9585  the document, but this may be modified by loading the module 
9586 \begin_inset Flex Code
9587 status collapsed
9588
9589 \begin_layout Plain Layout
9590 Theorems (Order by Section)
9591 \end_layout
9592
9593 \end_inset
9594
9595  or, if you are using 
9596 \begin_inset Flex Code
9597 status collapsed
9598
9599 \begin_layout Plain Layout
9600 book (AMS)
9601 \end_layout
9602
9603 \end_inset
9604
9605 , the module 
9606 \begin_inset Flex Code
9607 status collapsed
9608
9609 \begin_layout Plain Layout
9610 Theorems (Order by Chapter)
9611 \end_layout
9612
9613 \end_inset
9614
9615 .
9616  These will number the results as 
9617 \begin_inset Formula $n.m$
9618 \end_inset
9619
9620 , where the first number refers to the section (or chapter) and the second
9621  refers to the total number of results so far in that section (or chapter).
9622  Many environments are also available unnumbered.
9623  These are indicated by an asterisk at the end.
9624  If you happen to want 
9625 \emph on
9626 only
9627 \emph default
9628  unnumbered results, the module 
9629 \begin_inset Flex Code
9630 status collapsed
9631
9632 \begin_layout Plain Layout
9633 Theorems (Starred)
9634 \end_layout
9635
9636 \end_inset
9637
9638  provides that option.
9639 \end_layout
9640
9641 \begin_layout Standard
9642 Note that these modules do not 
9643 \emph on
9644 have
9645 \emph default
9646  to be used with the AMS classes.
9647  It is perfectly possible to use the 
9648 \begin_inset Flex Code
9649 status collapsed
9650
9651 \begin_layout Plain Layout
9652 Theorems (AMS)
9653 \end_layout
9654
9655 \end_inset
9656
9657  module, and the others mentioned, with other classes, such as 
9658 \begin_inset Flex Code
9659 status collapsed
9660
9661 \begin_layout Plain Layout
9662 article
9663 \end_layout
9664
9665 \end_inset
9666
9667
9668 \begin_inset Flex Code
9669 status collapsed
9670
9671 \begin_layout Plain Layout
9672 report
9673 \end_layout
9674
9675 \end_inset
9676
9677
9678 \begin_inset Flex Code
9679 status collapsed
9680
9681 \begin_layout Plain Layout
9682 book (KOMA-script)
9683 \end_layout
9684
9685 \end_inset
9686
9687 , and so forth.
9688 \end_layout
9689
9690 \begin_layout Subsection
9691 What these layouts provide
9692 \end_layout
9693
9694 \begin_layout Standard
9695 There is a long list of included environments provided by these layouts.
9696  In AMS-\SpecialChar LaTeX
9697 , there is, in fact, an opportunity to define an unlimited variety
9698  of `theorem' environments.
9699  However, the AMS recommends the environments that are available in \SpecialChar LyX
9700 .
9701  
9702 \end_layout
9703
9704 \begin_layout Standard
9705 The following environments—as well as the standard environments, such as
9706  
9707 \begin_inset Flex Noun
9708 status collapsed
9709
9710 \begin_layout Plain Layout
9711 section
9712 \end_layout
9713
9714 \end_inset
9715
9716
9717 \begin_inset Flex Noun
9718 status collapsed
9719
9720 \begin_layout Plain Layout
9721 bibliography
9722 \end_layout
9723
9724 \end_inset
9725
9726
9727 \begin_inset Flex Noun
9728 status collapsed
9729
9730 \begin_layout Plain Layout
9731 title
9732 \end_layout
9733
9734 \end_inset
9735
9736
9737 \begin_inset Flex Noun
9738 status collapsed
9739
9740 \begin_layout Plain Layout
9741 author
9742 \end_layout
9743
9744 \end_inset
9745
9746 , and 
9747 \begin_inset Flex Noun
9748 status collapsed
9749
9750 \begin_layout Plain Layout
9751 date
9752 \end_layout
9753
9754 \end_inset
9755
9756 —are provided by 
9757 \begin_inset Flex Code
9758 status collapsed
9759
9760 \begin_layout Plain Layout
9761 article (AMS)
9762 \end_layout
9763
9764 \end_inset
9765
9766  and 
9767 \begin_inset Flex Code
9768 status collapsed
9769
9770 \begin_layout Plain Layout
9771 book (AMS)
9772 \end_layout
9773
9774 \end_inset
9775
9776 :
9777 \end_layout
9778
9779 \begin_layout Description
9780 Address This should be the author's permanent address.
9781 \end_layout
9782
9783 \begin_layout Description
9784 Current
9785 \begin_inset space ~
9786 \end_inset
9787
9788 Address This should be the author's temporary address at the time of submission,
9789  if different from the Address.
9790 \end_layout
9791
9792 \begin_layout Description
9793 Email Author's e-mail address
9794 \end_layout
9795
9796 \begin_layout Description
9797 URL Author's Web address, if desired.
9798 \end_layout
9799
9800 \begin_layout Description
9801 Keywords Key words or phrases used to identify specific topics discussed
9802  in the paper.
9803 \end_layout
9804
9805 \begin_layout Description
9806 Subjectclass These refer to the AMS Subject Classifications, published and
9807  described in 
9808 \emph on
9809 Mathematical Reviews
9810 \emph default
9811 .
9812  These are also available online at the AMS cites listed above.
9813 \end_layout
9814
9815 \begin_layout Description
9816 Thanks
9817 \end_layout
9818
9819 \begin_layout Description
9820 Dedicatory
9821 \end_layout
9822
9823 \begin_layout Description
9824 Translator
9825 \end_layout
9826
9827 \begin_layout Standard
9828 The following environments are provided by both the 
9829 \begin_inset Flex Code
9830 status collapsed
9831
9832 \begin_layout Plain Layout
9833 Theorems
9834 \end_layout
9835
9836 \end_inset
9837
9838  and 
9839 \begin_inset Flex Code
9840 status collapsed
9841
9842 \begin_layout Plain Layout
9843 Theorems (AMS)
9844 \end_layout
9845
9846 \end_inset
9847
9848  modules, in the latter case in both starred (unnumbered) and unstarred
9849  (numbered) versions.
9850  These same environments are provided only in the starred versions by the
9851  
9852 \begin_inset Flex Code
9853 status collapsed
9854
9855 \begin_layout Plain Layout
9856 Theorems (Starred)
9857 \end_layout
9858
9859 \end_inset
9860
9861  module:
9862 \end_layout
9863
9864 \begin_layout Theorem
9865 This is typically used for the statements of major results.
9866  
9867 \end_layout
9868
9869 \begin_layout Corollary*
9870 This is used for statements which follow fairly directly from previous statement
9871 s.
9872  Again, these can be major results.
9873  
9874 \end_layout
9875
9876 \begin_layout Lemma
9877 These are smaller results needed to prove other statements.
9878 \end_layout
9879
9880 \begin_layout Proposition
9881 These are less major results which (hopefully) add to the general theory
9882  being discussed.
9883 \end_layout
9884
9885 \begin_layout Conjecture
9886 These are statements provided without justification, which the author does
9887  not know how to prove, but which seem to be true (to the author, at least).
9888 \end_layout
9889
9890 \begin_layout Definition*
9891 Guess what this is for.
9892  The font is different for this environment than for the previous ones.
9893  
9894 \end_layout
9895
9896 \begin_layout Example*
9897 Used for examples illustrating proven results.
9898 \end_layout
9899
9900 \begin_layout Problem
9901 It's not really known what this is for.
9902  You should figure it out.
9903 \end_layout
9904
9905 \begin_layout Exercise*
9906 Write a description for this one.
9907 \end_layout
9908
9909 \begin_layout Remark
9910 This environment is also a type of theorem, usually a lesser sort of observation.
9911 \end_layout
9912
9913 \begin_layout Claim*
9914 Often used in the course of giving a proof of a larger result.
9915 \end_layout
9916
9917 \begin_layout Case
9918 Generally, these are used to break up long arguments, using specific instances
9919  of some condition.
9920  
9921 \end_layout
9922
9923 \begin_layout Case
9924 The numbering scheme for cases is on its own, not together with other numbered
9925  statements.
9926  
9927 \end_layout
9928
9929 \begin_layout Proof
9930 At the end of this environment, a QED symbol (usually a square, but it can
9931  vary with different styles) is placed.
9932  If you want to have other environments within this one—for example, Case
9933  environments—and have the QED symbol appear only after them, then the other
9934  environments need to be nested within the proof environment.
9935  See the section 
9936 \emph on
9937 Nesting Environments
9938 \emph default
9939  of the 
9940 \emph on
9941 User's Guide
9942 \emph default
9943  for information on nesting.
9944 \end_layout
9945
9946 \begin_layout Standard
9947 And these environments are provided by 
9948 \begin_inset Flex Code
9949 status collapsed
9950
9951 \begin_layout Plain Layout
9952 Theorems (AMS-Extended)
9953 \end_layout
9954
9955 \end_inset
9956
9957 :
9958 \end_layout
9959
9960 \begin_layout Criterion*
9961 A required condition.
9962 \end_layout
9963
9964 \begin_layout Algorithm*
9965 A general procedure to be used.
9966 \end_layout
9967
9968 \begin_layout Axiom*
9969 This is a property or statement taken as true within the system being discussed.
9970 \end_layout
9971
9972 \begin_layout Condition*
9973 Sometimes used to state a condition assumed within the present context of
9974  discussion.
9975 \end_layout
9976
9977 \begin_layout Note*
9978 Similar to a Remark.
9979 \end_layout
9980
9981 \begin_layout Notation*
9982 Used for the explanation of, yes, notation.
9983 \end_layout
9984
9985 \begin_layout Summary
9986 Do we really need to tell you? 
9987 \end_layout
9988
9989 \begin_layout Acknowledgement*
9990 Acknowledgement.
9991 \end_layout
9992
9993 \begin_layout Conclusion*
9994 Sometimes used at the end of a long train of argument.
9995 \end_layout
9996
9997 \begin_layout Fact
9998 Used in a way similar to Proposition, though perhaps lower on the scale.
9999 \end_layout
10000
10001 \begin_layout Standard
10002 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10003  and AMS fonts
10004  packages.
10005  They need to be available on your system in order to use these environments.
10006 \end_layout
10007
10008 \begin_layout Section
10009 AGU journals (
10010 \family sans
10011 aguplus
10012 \family default
10013 )
10014 \end_layout
10015
10016 \begin_layout Standard
10017 by 
10018 \shape smallcaps
10019 Martin Vermeer
10020 \end_layout
10021
10022 \begin_layout Subsection
10023 Description
10024 \end_layout
10025
10026 \begin_layout Standard
10027 These are the layout files for some of the journals of the American Geophysical
10028  Society.
10029  It is assumed that you have both the AGU's own class files and AGUplus
10030  installed (everything to be found at
10031 \begin_inset Flex URL
10032 status collapsed
10033
10034 \begin_layout Plain Layout
10035
10036 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10037 \end_layout
10038
10039 \end_inset
10040
10041 ).
10042 \end_layout
10043
10044 \begin_layout Subsection
10045 New styles
10046 \end_layout
10047
10048 \begin_layout Standard
10049 Redefined are 
10050 \family sans
10051 Paragraph
10052 \family default
10053
10054 \family sans
10055 Paragraph*
10056 \family default
10057 .
10058  They are still called this in the \SpecialChar LyX
10059  GUI, though their \SpecialChar LaTeX
10060  equivalents in the
10061  AGU classes are 
10062 \family sans
10063 Subsubsubsection
10064 \family default
10065  and 
10066 \family sans
10067 Subsubsubsection*
10068 \family default
10069 .
10070 \end_layout
10071
10072 \begin_layout Standard
10073 Newly defined styles are 
10074 \family sans
10075 Left_Header
10076 \family default
10077
10078 \family sans
10079 Right_Header
10080 \family default
10081
10082 \family sans
10083 Received
10084 \family default
10085
10086 \family sans
10087 Revised
10088 \family default
10089
10090 \family sans
10091 Accepted
10092 \family default
10093
10094 \family sans
10095 CCC
10096 \family default
10097
10098 \family sans
10099 PaperId
10100 \family default
10101
10102 \family sans
10103 AuthorAddr
10104 \family default
10105
10106 \family sans
10107 SlugComment
10108 \family default
10109 .
10110  These are mostly manuscript attributes and defined in the AGU class documentati
10111 on.
10112 \end_layout
10113
10114 \begin_layout Standard
10115 I suspect this is still badly incomplete.
10116 \end_layout
10117
10118 \begin_layout Subsection
10119 New floats
10120 \end_layout
10121
10122 \begin_layout Standard
10123
10124 \family sans
10125 Planotable
10126 \family default
10127  and 
10128 \family sans
10129 Plate
10130 \family default
10131 .
10132  We also have a new 
10133 \family sans
10134 Table_Caption
10135 \family default
10136 .
10137 \end_layout
10138
10139 \begin_layout Subsection
10140 Supported journals
10141 \end_layout
10142
10143 \begin_layout Itemize
10144
10145 \emph on
10146 Journal of Geophysical Research
10147 \emph default
10148
10149 \family typewriter
10150 jgrga.layout
10151 \family default
10152  — Martin Vermeer
10153 \end_layout
10154
10155 \begin_layout Standard
10156 Add your own, it isn't so hard! Look at the 
10157 \family typewriter
10158 jgrga.layout
10159 \family default
10160  example and 
10161 \family typewriter
10162 aguplus.inc
10163 \family default
10164 .
10165 \end_layout
10166
10167 \begin_layout Subsection
10168 Bugs and things to remember
10169 \end_layout
10170
10171 \begin_layout Standard
10172 In order to use the new layouts, you must remember to do the following for
10173  a new document:
10174 \end_layout
10175
10176 \begin_layout Enumerate
10177
10178 \emph on
10179 Turn off babel
10180 \emph default
10181 .
10182  This can be done in the 
10183 \family sans
10184 Layout\SpecialChar menuseparator
10185 Document
10186 \family default
10187  or 
10188 \family sans
10189 Document\SpecialChar menuseparator
10190 Settings
10191 \family default
10192  menu item.
10193  (AGU articles are always in English, right? So 
10194 \emph on
10195 don't
10196 \emph default
10197  choose a language.)
10198 \end_layout
10199
10200 \begin_layout Enumerate
10201 Enter 
10202 \family typewriter
10203 jgrga
10204 \family default
10205  into the document's 
10206 \family sans
10207 Extra Options
10208 \family default
10209  field.
10210  (Yes, this is a bug.)
10211 \end_layout
10212
10213 \begin_layout Enumerate
10214 Make sure you use the 
10215 \family typewriter
10216 agu.bst
10217 \family default
10218  bibliography style, by entering 
10219 \family sans
10220 agu
10221 \family default
10222  into the second field of the Bib\SpecialChar TeX
10223  inset.
10224  None of the standard styles will do.
10225 \end_layout
10226
10227 \begin_layout Section
10228 Broadway
10229 \end_layout
10230
10231 \begin_layout Standard
10232 by 
10233 \shape smallcaps
10234 Garst Reese
10235 \end_layout
10236
10237 \begin_layout Subsection
10238 Introduction
10239 \end_layout
10240
10241 \begin_layout Standard
10242 Broadway is for writing plays.
10243  The format is more decorative than Hollywood, and much less standardized.
10244  This format should be suitable for workshops.
10245 \end_layout
10246
10247 \begin_layout Subsection
10248 Special problems
10249 \end_layout
10250
10251 \begin_layout Standard
10252 The same as in Hollywood.
10253 \end_layout
10254
10255 \begin_layout Subsection
10256 Special features
10257 \end_layout
10258
10259 \begin_layout Standard
10260 Insert the 
10261 \family sans
10262 Speaker
10263 \family default
10264  names as labels then cross-reference the label to insert the name.
10265  The cross-reference dialog will show the current cast of characters.
10266 \end_layout
10267
10268 \begin_layout Subsection
10269 Paper size and Margins
10270 \end_layout
10271
10272 \begin_layout Standard
10273 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10274 \end_layout
10275
10276 \begin_layout Subsection
10277 Environments
10278 \end_layout
10279
10280 \begin_layout Standard
10281 The following environments are available.
10282  You can use broadway.bind to get the bind keys shown at the right.
10283 \end_layout
10284
10285 \begin_layout Itemize
10286
10287 \family sans
10288 Standard
10289 \begin_inset Newline newline
10290 \end_inset
10291
10292
10293 \family default
10294 You should not have to use this, but it is here for anything that does not
10295  fit otherwise.
10296 \end_layout
10297
10298 \begin_layout Itemize
10299
10300 \family sans
10301 Narrative
10302 \begin_inset space \hfill{}
10303 \end_inset
10304
10305 M-z n
10306 \begin_inset Newline newline
10307 \end_inset
10308
10309
10310 \family default
10311 Used to describe stage setting and the action.
10312  First use of speaker names in all CAPs.
10313 \end_layout
10314
10315 \begin_layout Itemize
10316
10317 \family sans
10318 ACT
10319 \begin_inset space \hfill{}
10320 \end_inset
10321
10322 M-z a
10323 \begin_inset Newline newline
10324 \end_inset
10325
10326
10327 \family default
10328 Automatically numbered.
10329  On screen it will be arabic, but will print as Roman.
10330 \end_layout
10331
10332 \begin_layout Itemize
10333
10334 \family sans
10335 ACT*
10336 \begin_inset space \hfill{}
10337 \end_inset
10338
10339 M-z S at
10340 \begin_inset Newline newline
10341 \end_inset
10342
10343
10344 \family default
10345 Subtitle for 
10346 \family sans
10347 ACT.
10348
10349 \family default
10350  It is just centered text.
10351 \end_layout
10352
10353 \begin_layout Itemize
10354
10355 \family sans
10356 SCENE
10357 \begin_inset space \hfill{}
10358 \end_inset
10359
10360 M-z S-S
10361 \begin_inset Newline newline
10362 \end_inset
10363
10364
10365 \family default
10366 Not automatically numbered.
10367  You supply the number.
10368  This is because I couldn't figure out how.
10369 \end_layout
10370
10371 \begin_layout Itemize
10372
10373 \family sans
10374 AT_RISE:
10375 \begin_inset space \hfill{}
10376 \end_inset
10377
10378 M-z S-R
10379 \begin_inset Newline newline
10380 \end_inset
10381
10382
10383 \family default
10384 A special case of Narrative to describe the setting and action as the curtain
10385  rises.
10386 \end_layout
10387
10388 \begin_layout Itemize
10389
10390 \family sans
10391 Speaker
10392 \begin_inset space \hfill{}
10393 \end_inset
10394
10395 M-z s
10396 \begin_inset Newline newline
10397 \end_inset
10398
10399
10400 \family default
10401 The speaker's (actor's) title, centered in all CAPS.
10402 \end_layout
10403
10404 \begin_layout Itemize
10405
10406 \family sans
10407 Parenthetical
10408 \begin_inset space \hfill{}
10409 \end_inset
10410
10411 M-z p
10412 \begin_inset Newline newline
10413 \end_inset
10414
10415
10416 \family default
10417 Instructions to the speaker.
10418  The parentheses are automatically inserted.
10419  The ( will appear on screen, but both will be in the printed play.
10420  This environment is only used within 
10421 \family sans
10422 Dialogue
10423 \family default
10424 .
10425 \end_layout
10426
10427 \begin_layout Itemize
10428
10429 \family sans
10430 Dialogue
10431 \begin_inset space \hfill{}
10432 \end_inset
10433
10434 M-z d
10435 \begin_inset Newline newline
10436 \end_inset
10437
10438
10439 \family default
10440 What the Speaker says.
10441 \end_layout
10442
10443 \begin_layout Itemize
10444
10445 \family sans
10446 CURTAIN
10447 \begin_inset space \hfill{}
10448 \end_inset
10449
10450 M-z S-C
10451 \begin_inset Newline newline
10452 \end_inset
10453
10454
10455 \family default
10456 The curtain comes down.
10457 \end_layout
10458
10459 \begin_layout Itemize
10460
10461 \family sans
10462 Title
10463 \begin_inset space \hfill{}
10464 \end_inset
10465
10466 M-z S-T
10467 \end_layout
10468
10469 \begin_layout Itemize
10470
10471 \family sans
10472 Author
10473 \begin_inset space \hfill{}
10474 \end_inset
10475
10476 M-z S-A
10477 \end_layout
10478
10479 \begin_layout Itemize
10480
10481 \family sans
10482 Right_Address
10483 \begin_inset space \hfill{}
10484 \end_inset
10485
10486 M-z r
10487 \end_layout
10488
10489 \begin_layout Standard
10490 Hello there.
10491 \end_layout
10492
10493 \begin_layout Section
10494 Dinbrief
10495 \end_layout
10496
10497 \begin_layout Standard
10498 The document class 
10499 \family sans
10500 dinbrief
10501 \family default
10502  can be used to type letters according to German conventions.
10503  A template file is included in 
10504 \family typewriter
10505 .../lyx/share/templates
10506 \family default
10507  for you to use as a starting point.
10508 \end_layout
10509
10510 \begin_layout Section
10511 EGS journals (
10512 \family sans
10513 egs
10514 \family default
10515 )
10516 \end_layout
10517
10518 \begin_layout Standard
10519 by 
10520 \shape smallcaps
10521 Martin Vermeer
10522 \end_layout
10523
10524 \begin_layout Subsection
10525 Description
10526 \end_layout
10527
10528 \begin_layout Standard
10529 This is the layout file for the European Geophysical Society journals.
10530  The needed 
10531 \family typewriter
10532 egs.cls
10533 \family default
10534  can be downloaded from the web site of the EGS under 
10535 \begin_inset Flex URL
10536 status collapsed
10537
10538 \begin_layout Plain Layout
10539
10540 www.copernicus.org
10541 \end_layout
10542
10543 \end_inset
10544
10545 .
10546 \end_layout
10547
10548 \begin_layout Subsection
10549 New styles
10550 \end_layout
10551
10552 \begin_layout Standard
10553
10554 \family sans
10555 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10556  Accepted
10557 \family default
10558
10559 \family sans
10560 Offsets
10561 \family default
10562 .
10563  The current layout file is unfortunately very unmodular and would benefit
10564  from using the various 
10565 \family typewriter
10566 std*.inc
10567 \family default
10568  file inclusions.
10569 \end_layout
10570
10571 \begin_layout Section
10572 Elsevier Journals
10573 \end_layout
10574
10575 \begin_layout Standard
10576 See the \SpecialChar LyX
10577  template file 
10578 \family typewriter
10579 elsarticle.lyx
10580 \family default
10581 .
10582  It contains all infos you need.
10583 \end_layout
10584
10585 \begin_layout Section
10586 Foils [aka 
10587 \family sans
10588 Foil\SpecialChar TeX
10589
10590 \family default
10591 ]
10592 \begin_inset CommandInset label
10593 LatexCommand label
10594 name "sec:foiltex"
10595
10596 \end_inset
10597
10598
10599 \end_layout
10600
10601 \begin_layout Standard
10602 by 
10603 \noun on
10604 Allan Rae
10605 \end_layout
10606
10607 \begin_layout Subsection
10608 Introduction
10609 \end_layout
10610
10611 \begin_layout Standard
10612 This section describes how to use \SpecialChar LyX
10613  to make slides for overhead projectors.
10614  There are two document classes that can do this: the default slides class
10615  and the 
10616 \family sans
10617 Foil\SpecialChar TeX
10618
10619 \family default
10620  slides class.
10621  This section documents the latter.
10622 \end_layout
10623
10624 \begin_layout Standard
10625 I'm going to say this again, nice and clear, so that there's no misunderstanding
10626 :
10627 \end_layout
10628
10629 \begin_layout Standard
10630 \begin_inset VSpace bigskip
10631 \end_inset
10632
10633
10634 \end_layout
10635
10636 \begin_layout Standard
10637 \align center
10638
10639 \size large
10640 This section documents the class 
10641 \begin_inset Quotes eld
10642 \end_inset
10643
10644
10645 \family sans
10646 slides (FoilTeX)
10647 \family default
10648
10649 \begin_inset Quotes erd
10650 \end_inset
10651
10652  
10653 \emph on
10654 only.
10655 \end_layout
10656
10657 \begin_layout Standard
10658 \begin_inset VSpace bigskip
10659 \end_inset
10660
10661
10662 \end_layout
10663
10664 \begin_layout Standard
10665 If you're looking for the documentation for 
10666 \begin_inset Quotes eld
10667 \end_inset
10668
10669
10670 \family sans
10671 slides (default)
10672 \family default
10673
10674 \begin_inset Quotes erd
10675 \end_inset
10676
10677 , check out section
10678 \begin_inset space ~
10679 \end_inset
10680
10681
10682 \begin_inset CommandInset ref
10683 LatexCommand ref
10684 reference "sec:slitex"
10685
10686 \end_inset
10687
10688 .
10689  If your machine doesn't have the 
10690 \family sans
10691 foils
10692 \family default
10693  class [
10694 \begin_inset Quotes eld
10695 \end_inset
10696
10697
10698 \family sans
10699 slides (FoilTeX)
10700 \family default
10701
10702 \begin_inset Quotes erd
10703 \end_inset
10704
10705 ] installed, you'll probably have to use the default 
10706 \family sans
10707 slides
10708 \family default
10709  class, which isn't quite as good as 
10710 \family sans
10711 foils.
10712 \end_layout
10713
10714 \begin_layout Standard
10715 The 
10716 \family sans
10717 foils
10718 \family default
10719  class is designed for use with version 2.1 of the 
10720 \family sans
10721 foils.cls
10722 \family default
10723  \SpecialChar LaTeX
10724  class file which is now an integral part of \SpecialChar LaTeX2e
10725 .
10726 \end_layout
10727
10728 \begin_layout Subsection
10729 Getting Started
10730 \end_layout
10731
10732 \begin_layout Standard
10733 Obviously, to use this document class, you need to select 
10734 \begin_inset Quotes eld
10735 \end_inset
10736
10737
10738 \family sans
10739 slides (FoilTeX)
10740 \family default
10741
10742 \begin_inset Quotes erd
10743 \end_inset
10744
10745  from the 
10746 \family sans
10747 Class
10748 \family default
10749  entry in the 
10750 \family sans
10751 Document
10752 \begin_inset space ~
10753 \end_inset
10754
10755 Layout
10756 \family default
10757  dialog.
10758  There are some settings in the 
10759 \family sans
10760 Document
10761 \begin_inset space ~
10762 \end_inset
10763
10764 Layout
10765 \family default
10766  dialog that you should know about that are specific to this class:
10767 \end_layout
10768
10769 \begin_layout Itemize
10770 Don't change the options 
10771 \family sans
10772 Sides
10773 \family default
10774  and 
10775 \family sans
10776 Columns
10777 \family default
10778  on the 
10779 \family sans
10780 Document
10781 \begin_inset space ~
10782 \end_inset
10783
10784 Layout
10785 \family default
10786  dialog.
10787  They're ignored by the 
10788 \family sans
10789 foils
10790 \family default
10791  class.
10792 \end_layout
10793
10794 \begin_layout Itemize
10795 The default font size is 20
10796 \begin_inset space \thinspace{}
10797 \end_inset
10798
10799 pt with the other options being 17
10800 \begin_inset space \thinspace{}
10801 \end_inset
10802
10803 pt, 25
10804 \begin_inset space \thinspace{}
10805 \end_inset
10806
10807 pt and 30
10808 \begin_inset space \thinspace{}
10809 \end_inset
10810
10811 pt.
10812 \end_layout
10813
10814 \begin_layout Itemize
10815 The default font is 
10816 \family sans
10817 sans
10818 \family default
10819  
10820 \family sans
10821 serif
10822 \family default
10823  but all math equations are still typeset in the usual roman font.
10824 \end_layout
10825
10826 \begin_layout Itemize
10827
10828 \family sans
10829 Foil\SpecialChar TeX
10830
10831 \family default
10832  supports A4 and Letter paper sizes as well as a special size for working
10833  with 35
10834 \begin_inset space \thinspace{}
10835 \end_inset
10836
10837 mm slides.
10838  It doesn't support A5, B5, legal or executive paper sizes.
10839 \end_layout
10840
10841 \begin_layout Itemize
10842 Don't bother changing the 
10843 \family sans
10844 Float Placement
10845 \family default
10846  settings because they are ignored anyway.
10847  All floats appear where they are defined in the text.
10848 \end_layout
10849
10850 \begin_layout Itemize
10851 The 
10852 \family sans
10853 Pagestyle
10854 \family default
10855  setting behaves a bit differently for this class.
10856  
10857 \family sans
10858 Foil\SpecialChar TeX
10859
10860 \family default
10861  provides extensive footer and header capabilities including a user-defined
10862  logo.
10863  See section
10864 \begin_inset space ~
10865 \end_inset
10866
10867
10868 \begin_inset CommandInset ref
10869 LatexCommand ref
10870 reference "sec:foilfoot"
10871
10872 \end_inset
10873
10874  for more details.
10875  The title page is treated differently to all other pages in the document
10876  and is 
10877 \emph on
10878 always
10879 \emph default
10880  unnumbered and 
10881 \emph on
10882 always
10883 \emph default
10884  has the logo centered at the bottom of the page (if one is defined).
10885  The possible page style choices and what they do are as follows:
10886 \begin_inset Separator parbreak
10887 \end_inset
10888
10889
10890 \end_layout
10891
10892 \begin_deeper
10893 \begin_layout Labeling
10894 \labelwidthstring MMMMMMM
10895
10896 \family sans
10897 \series bold
10898 empty
10899 \family default
10900 \series default
10901  The final output contains no page numbers, or other headers or footers
10902  (except footnotes of course).
10903  
10904 \end_layout
10905
10906 \begin_layout Labeling
10907 \labelwidthstring MMMMMMM
10908
10909 \family sans
10910 \series bold
10911 plain
10912 \family default
10913 \series default
10914  The final output contains page numbers centered at the bottom of the page.
10915  No other headings or footers (other than footnotes).
10916 \end_layout
10917
10918 \begin_layout Labeling
10919 \labelwidthstring MMMMMMM
10920
10921 \series bold
10922 foilheadings
10923 \series default
10924  Page numbers in lower right corner.
10925  Additional headers and footers are also shown.
10926  This is also the default.
10927 \end_layout
10928
10929 \begin_layout Labeling
10930 \labelwidthstring MMMMMMM
10931
10932 \series bold
10933 fancy
10934 \series default
10935  Gives you access to the 
10936 \family sans
10937 fancyheadings
10938 \family default
10939  package although its use with 
10940 \family sans
10941 Foil\SpecialChar TeX
10942
10943 \family default
10944  is discouraged by the writer of the 
10945 \family sans
10946 Foil\SpecialChar TeX
10947
10948 \family default
10949  package because of some potential page layout clashes.
10950 \end_layout
10951
10952 \end_deeper
10953 \begin_layout Subsubsection
10954 Extra Options
10955 \end_layout
10956
10957 \begin_layout Standard
10958 The following options may be used in the extra class options in the 
10959 \family sans
10960 Document\SpecialChar menuseparator
10961 Settings
10962 \family default
10963  dialog.
10964 \end_layout
10965
10966 \begin_layout Labeling
10967 \labelwidthstring MMMMMMx
10968
10969 \series bold
10970 35mmSlide
10971 \series default
10972  This sets up the page layout for 7.33
10973 \begin_inset space \thinspace{}
10974 \end_inset
10975
10976 in by 11
10977 \begin_inset space \thinspace{}
10978 \end_inset
10979
10980 in paper, which is about the same aspect ratio as a 35
10981 \begin_inset space \thinspace{}
10982 \end_inset
10983
10984 mm slide, making it a bit easier to work with this medium.
10985 \end_layout
10986
10987 \begin_layout Labeling
10988 \labelwidthstring MMMMMMx
10989
10990 \series bold
10991 headrule
10992 \series default
10993  Places a rule across the page below the header on every page except the
10994  title page.
10995 \end_layout
10996
10997 \begin_layout Labeling
10998 \labelwidthstring MMMMMMx
10999
11000 \series bold
11001 footrule
11002 \series default
11003  Places a rule across the page above the footer on every page except the
11004  title page.
11005 \end_layout
11006
11007 \begin_layout Labeling
11008 \labelwidthstring MMMMMMx
11009
11010 \series bold
11011 dvips
11012 \series default
11013  This is automatically set each time you create a new 
11014 \family sans
11015 foils
11016 \family default
11017  document.
11018  This option tells 
11019 \family sans
11020 Foil\SpecialChar TeX
11021
11022 \family default
11023  to use the dvips driver to rotate those pages that are set as landscape
11024  foils.
11025 \end_layout
11026
11027 \begin_layout Labeling
11028 \labelwidthstring MMMMMMx
11029
11030 \series bold
11031 landscape
11032 \series default
11033  Simply changes the page dimensions to those of a landscape page but doesn't
11034  do any rotation.
11035  Thus if you use this option you need to use an external program to rotate
11036  each page or feed your paper through your printer as landscape.
11037  Note that this option effectively reverses the roles of the 
11038 \family sans
11039 Foilhead
11040 \family default
11041  and 
11042 \family sans
11043 Rotatefoilhead
11044 \family default
11045  environments (don't worry these are described in the next section).
11046 \end_layout
11047
11048 \begin_layout Labeling
11049 \labelwidthstring MMMMMMx
11050
11051 \series bold
11052 leqno
11053 \series default
11054  Equation numbers on the left.
11055 \end_layout
11056
11057 \begin_layout Labeling
11058 \labelwidthstring MMMMMMx
11059
11060 \series bold
11061 fleqn
11062 \series default
11063  Flush-left equations.
11064 \end_layout
11065
11066 \begin_layout Subsection
11067 Supported Environments
11068 \end_layout
11069
11070 \begin_layout Standard
11071 Most of the environments commonly supported in other classes are also supported
11072  by the 
11073 \family sans
11074 foils
11075 \family default
11076  class.
11077  There are several additional environments provided by 
11078 \family sans
11079 Foil\SpecialChar TeX
11080
11081 \family default
11082  as well as a couple added by \SpecialChar LyX
11083 .
11084  The following environments are shared with other classes:
11085 \end_layout
11086
11087 \begin_layout Standard
11088 \begin_inset Flex Multiple Columns
11089 status open
11090
11091 \begin_layout Itemize
11092
11093 \family sans
11094 Standard
11095 \end_layout
11096
11097 \begin_layout Itemize
11098
11099 \family sans
11100 Itemize
11101 \end_layout
11102
11103 \begin_layout Itemize
11104
11105 \family sans
11106 Enumerate
11107 \end_layout
11108
11109 \begin_layout Itemize
11110
11111 \family sans
11112 Description
11113 \end_layout
11114
11115 \begin_layout Itemize
11116
11117 \family sans
11118 List
11119 \end_layout
11120
11121 \begin_layout Itemize
11122
11123 \family sans
11124 \SpecialChar LyX
11125 -Code
11126 \end_layout
11127
11128 \begin_layout Itemize
11129
11130 \family sans
11131 Verse
11132 \end_layout
11133
11134 \begin_layout Itemize
11135
11136 \family sans
11137 Quote
11138 \end_layout
11139
11140 \begin_layout Itemize
11141
11142 \family sans
11143 Quotation
11144 \end_layout
11145
11146 \begin_layout Itemize
11147
11148 \family sans
11149 Title
11150 \end_layout
11151
11152 \begin_layout Itemize
11153
11154 \family sans
11155 Author
11156 \end_layout
11157
11158 \begin_layout Itemize
11159
11160 \family sans
11161 Date
11162 \end_layout
11163
11164 \begin_layout Itemize
11165
11166 \family sans
11167 Abstract
11168 \end_layout
11169
11170 \begin_layout Itemize
11171
11172 \family sans
11173 Bibliography
11174 \end_layout
11175
11176 \begin_layout Itemize
11177
11178 \family sans
11179 Address
11180 \end_layout
11181
11182 \begin_layout Itemize
11183
11184 \family sans
11185 RightAddress
11186 \end_layout
11187
11188 \begin_layout Itemize
11189
11190 \family sans
11191 Caption
11192 \end_layout
11193
11194 \begin_layout Itemize
11195
11196 \family sans
11197 Comment
11198 \end_layout
11199
11200 \end_inset
11201
11202
11203 \end_layout
11204
11205 \begin_layout Standard
11206 That is, all the major environments apart from the sectioning environments.
11207  Since foils are essentially self-contained sections, with a title and body,
11208  
11209 \family sans
11210 Foil\SpecialChar TeX
11211
11212 \family default
11213  provides specific commands for starting new foils and these are:
11214 \end_layout
11215
11216 \begin_layout Itemize
11217
11218 \family sans
11219 Foilhead
11220 \end_layout
11221
11222 \begin_layout Itemize
11223
11224 \family sans
11225 Rotatefoilhead
11226 \end_layout
11227
11228 \begin_layout Standard
11229 \SpecialChar LyX
11230  also provides slightly modified versions of these two environments called:
11231 \end_layout
11232
11233 \begin_layout Itemize
11234
11235 \family sans
11236 ShortFoilhead
11237 \end_layout
11238
11239 \begin_layout Itemize
11240
11241 \family sans
11242 ShortRotatefoilhead
11243 \end_layout
11244
11245 \begin_layout Standard
11246 and the differences will be explained in the next section.
11247 \end_layout
11248
11249 \begin_layout Standard
11250 Since foils are often used in presenting ideas or new theorems and such
11251  
11252 \family sans
11253 Foil\SpecialChar TeX
11254
11255 \family default
11256  also provides a comprehensive box of goodies for presenting them:
11257 \end_layout
11258
11259 \begin_layout Standard
11260 \begin_inset Flex Multiple Columns
11261 status open
11262
11263 \begin_layout Itemize
11264
11265 \family sans
11266 Theorem
11267 \end_layout
11268
11269 \begin_layout Itemize
11270
11271 \family sans
11272 Lemma
11273 \end_layout
11274
11275 \begin_layout Itemize
11276
11277 \family sans
11278 Corollary
11279 \end_layout
11280
11281 \begin_layout Itemize
11282
11283 \family sans
11284 Proposition
11285 \end_layout
11286
11287 \begin_layout Itemize
11288
11289 \family sans
11290 Definition
11291 \end_layout
11292
11293 \begin_layout Itemize
11294
11295 \family sans
11296 Proof
11297 \end_layout
11298
11299 \begin_layout Itemize
11300
11301 \family sans
11302 Theorem*
11303 \end_layout
11304
11305 \begin_layout Itemize
11306
11307 \family sans
11308 Lemma*
11309 \end_layout
11310
11311 \begin_layout Itemize
11312
11313 \family sans
11314 Corollary*
11315 \end_layout
11316
11317 \begin_layout Itemize
11318
11319 \family sans
11320 Proposition*
11321 \end_layout
11322
11323 \begin_layout Itemize
11324
11325 \family sans
11326 Definition*
11327 \end_layout
11328
11329 \end_inset
11330
11331
11332 \end_layout
11333
11334 \begin_layout Standard
11335 The starred versions are unnumbered while the unstarred versions are numbered.
11336  There are also two list environments added by \SpecialChar LyX
11337  and these are:
11338 \end_layout
11339
11340 \begin_layout Itemize
11341
11342 \family sans
11343 TickList
11344 \end_layout
11345
11346 \begin_layout Itemize
11347
11348 \family sans
11349 CrossList
11350 \end_layout
11351
11352 \begin_layout Standard
11353
11354 \family sans
11355 Foil\SpecialChar TeX
11356
11357 \family default
11358  provides some powerful header and footer capabilities that are best set
11359  in the preamble although they may be set at any point in a document.
11360  If you want to change these settings in your document the best place to
11361  do so is at the very top of a foil, i.
11362 \begin_inset space \thinspace{}
11363 \end_inset
11364
11365 e.
11366 \emph on
11367
11368 \begin_inset space \space{}
11369 \end_inset
11370
11371
11372 \emph default
11373 straight after the foilhead.
11374 \end_layout
11375
11376 \begin_layout Standard
11377 For this purpose, the following command styles are provided [
11378 \shape smallcaps
11379 Martin Vermeer
11380 \shape default
11381 ]:
11382 \end_layout
11383
11384 \begin_layout Standard
11385 \begin_inset Flex Multiple Columns
11386 status open
11387
11388 \begin_layout Itemize
11389
11390 \family sans
11391 My
11392 \begin_inset space ~
11393 \end_inset
11394
11395 Logo
11396 \end_layout
11397
11398 \begin_layout Itemize
11399
11400 \family sans
11401 Restriction
11402 \end_layout
11403
11404 \begin_layout Itemize
11405
11406 \family sans
11407 Right
11408 \begin_inset space ~
11409 \end_inset
11410
11411 Footer
11412 \end_layout
11413
11414 \begin_layout Itemize
11415
11416 \family sans
11417 Right
11418 \begin_inset space ~
11419 \end_inset
11420
11421 Header
11422 \end_layout
11423
11424 \begin_layout Itemize
11425
11426 \family sans
11427 Left
11428 \begin_inset space ~
11429 \end_inset
11430
11431 Header
11432 \family default
11433
11434 \begin_inset Separator parbreak
11435 \end_inset
11436
11437
11438 \end_layout
11439
11440 \begin_deeper
11441 \begin_layout Plain Layout
11442 \begin_inset space ~
11443 \end_inset
11444
11445
11446 \end_layout
11447
11448 \end_deeper
11449 \end_inset
11450
11451
11452 \end_layout
11453
11454 \begin_layout Standard
11455 There are also a few commands provided by 
11456 \family sans
11457 Foil\SpecialChar TeX
11458
11459 \family default
11460  that aren't directly supported by \SpecialChar LyX
11461  but I'll tell you what they do and how
11462  to use them in section
11463 \begin_inset space ~
11464 \end_inset
11465
11466
11467 \begin_inset CommandInset ref
11468 LatexCommand ref
11469 reference "sec:unsuppfoils"
11470
11471 \end_inset
11472
11473 .
11474 \end_layout
11475
11476 \begin_layout Subsection
11477 Building a Set of Foils
11478 \end_layout
11479
11480 \begin_layout Standard
11481 This section will give a simple introduction to using the different environments
11482  to build a set of foils.
11483  If you want to see an example set of foils, take a look at the 
11484 \family typewriter
11485 Foils.lyx
11486 \family default
11487  file you find in \SpecialChar LyX
11488 's 
11489 \family typewriter
11490 examples
11491 \family default
11492  folder.
11493 \end_layout
11494
11495 \begin_layout Subsubsection
11496 Give It a Title Page
11497 \end_layout
11498
11499 \begin_layout Standard
11500 Unlike other classes that provide 
11501 \family sans
11502 Title
11503 \family default
11504
11505 \family sans
11506 Author
11507 \family default
11508
11509 \family sans
11510 Date
11511 \family default
11512  and 
11513 \family sans
11514 Abstract
11515 \family default
11516  environments, 
11517 \family sans
11518 foils
11519 \family default
11520  creates the title on a page of its own.
11521  If you leave out the 
11522 \family sans
11523 Date
11524 \family default
11525  environment \SpecialChar LaTeX
11526  will substitute the current date (every time you regenerate
11527  the output).
11528 \end_layout
11529
11530 \begin_layout Subsubsection
11531 Start a New Foil
11532 \end_layout
11533
11534 \begin_layout Standard
11535 As I mentioned earlier, there are four ways of starting a new foil.
11536  For portrait foils you should use 
11537 \family sans
11538 Foilhead
11539 \family default
11540  or 
11541 \family sans
11542 ShortFoilhead.
11543
11544 \family default
11545  The difference between these two environments is the amount of space between
11546  the title of the foil (the foilhead) and the body of the foil.
11547 \end_layout
11548
11549 \begin_layout Standard
11550 Landscape foils are generated using the 
11551 \family sans
11552 Rotatefoilhead
11553 \family default
11554  and 
11555 \family sans
11556 ShortRotatefoilhead
11557 \family default
11558  environments.
11559  Again the only difference is the spacing between foilhead and body.
11560  Both of the short versions have 0.5
11561 \begin_inset space ~
11562 \end_inset
11563
11564 inches less separation between the foilhead and the body.
11565  
11566 \end_layout
11567
11568 \begin_layout Standard
11569 One problem with the support for landscape foils is the requirement that
11570  you have to use the 
11571 \family typewriter
11572 dvips
11573 \family default
11574  driver to generate the PostScript output otherwise the foils won't be rotated.
11575  It is possible to get landscape foils even if you haven't got the 
11576 \family typewriter
11577 dvips
11578 \family default
11579  driver provided you can feed your foils sideways through your printer ;-)
11580 \end_layout
11581
11582 \begin_layout Subsubsection
11583 Theorems, Lemmas, Proofs and more
11584 \end_layout
11585
11586 \begin_layout Standard
11587 Due to a small bug in \SpecialChar LyX
11588  you can't have two of the same type of these environments
11589  directly following each other.
11590  They must be separated by something.
11591  If you try, you will just be extending the previous environment as if you
11592  had merged the two environments together.
11593  So, how do you get around this problem? The simplest option is to insert
11594  some text between the two environments or add a 
11595 \family sans
11596 \SpecialChar LaTeX
11597
11598 \family default
11599  environment between the two with just a 
11600 \begin_inset Quotes eld
11601 \end_inset
11602
11603
11604 \family typewriter
11605 %
11606 \family default
11607
11608 \begin_inset Quotes erd
11609 \end_inset
11610
11611  in it.
11612  This will force \SpecialChar LyX
11613  to produce two separate environments and hence the correct
11614  \SpecialChar LaTeX
11615  output.
11616  An example is provided in the example file included with the \SpecialChar LyX
11617  distribution.
11618  Remember, this problem only occurs if you are trying to place two of the
11619  same type of theorem-like environments one directly after the other.
11620 \end_layout
11621
11622 \begin_layout Subsubsection
11623 Lists
11624 \end_layout
11625
11626 \begin_layout Standard
11627 You get all the commonly supported list styles found in other classes as
11628  well as two new ones.
11629  I'll only describe the new ones here.
11630  If you want to find out more about the other list environments check out
11631  the 
11632 \emph on
11633 User's Guide.
11634
11635 \emph default
11636  If you intend to use itemized lists you might also want to read about the
11637  
11638 \family sans
11639 Itemize
11640 \begin_inset space ~
11641 \end_inset
11642
11643 Bullet
11644 \begin_inset space ~
11645 \end_inset
11646
11647 Selection
11648 \family default
11649  dialog described above in section
11650 \begin_inset space ~
11651 \end_inset
11652
11653
11654 \begin_inset CommandInset ref
11655 LatexCommand ref
11656 reference "sec:bullet"
11657
11658 \end_inset
11659
11660 .
11661 \end_layout
11662
11663 \begin_layout Standard
11664 The two new list styles, 
11665 \family sans
11666 TickList
11667 \family default
11668  and 
11669 \family sans
11670 CrossList
11671 \family default
11672 , are designed to make it easier for you to create lists of do's and don'ts
11673  or right and wrong by providing dedicated environments that use a tick
11674  or a cross as the label of the list.
11675  These lists are in fact dedicated variants of the 
11676 \family sans
11677 Itemize
11678 \family default
11679  environment.
11680  They do however require that you have the 
11681 \family typewriter
11682 psnfss
11683 \family default
11684  packages installed.
11685 \end_layout
11686
11687 \begin_layout Subsubsection
11688 Figures and Tables
11689 \end_layout
11690
11691 \begin_layout Standard
11692
11693 \family sans
11694 Foil\SpecialChar TeX
11695
11696 \family default
11697  redefines the floating tables and figures so that they appear exactly where
11698  they are in the text rather than pushing them to the top of the page or
11699  to some user specified location.
11700  In fact if you change the float placement settings they are simply ignored.
11701 \end_layout
11702
11703 \begin_layout Subsubsection
11704 Page Headers and Footers
11705 \begin_inset CommandInset label
11706 LatexCommand label
11707 name "sec:foilfoot"
11708
11709 \end_inset
11710
11711
11712 \end_layout
11713
11714 \begin_layout Standard
11715
11716 \family sans
11717 My
11718 \begin_inset space ~
11719 \end_inset
11720
11721 Logo
11722 \family default
11723  and 
11724 \family sans
11725 Restriction
11726 \family default
11727  are two commands used to control the left-footer text string.
11728  The first is meant to allow you to include a graphic logo on your foils
11729  and defaults to 
11730 \begin_inset Quotes eld
11731 \end_inset
11732
11733 -Typeset by 
11734 \family sans
11735 Foil\SpecialChar TeX
11736
11737 \family default
11738 -
11739 \begin_inset Quotes erd
11740 \end_inset
11741
11742 .
11743  While the second is meant to provide a classification for the audience,
11744  
11745 \emph on
11746 e.
11747 \begin_inset space \thinspace{}
11748 \end_inset
11749
11750 g.
11751 \emph default
11752
11753 \begin_inset space \space{}
11754 \end_inset
11755
11756 Confidential.
11757  It is empty by default.
11758 \end_layout
11759
11760 \begin_layout Standard
11761 The remaining page corners can be filled by 
11762 \family sans
11763 Right
11764 \begin_inset space ~
11765 \end_inset
11766
11767 Footer
11768 \family default
11769  (which defaults to page numbers), 
11770 \family sans
11771 Right
11772 \begin_inset space ~
11773 \end_inset
11774
11775 Header
11776 \family default
11777  (top right) and 
11778 \family sans
11779 Left
11780 \begin_inset space ~
11781 \end_inset
11782
11783 Header
11784 \family default
11785  (top left).
11786 \end_layout
11787
11788 \begin_layout Subsection
11789 Unsupported 
11790 \family sans
11791 Foil\SpecialChar TeX
11792
11793 \family default
11794  Goodies
11795 \begin_inset CommandInset label
11796 LatexCommand label
11797 name "sec:unsuppfoils"
11798
11799 \end_inset
11800
11801
11802 \end_layout
11803
11804 \begin_layout Standard
11805 All the commands mentioned below need to be set in a 
11806 \family sans
11807 \SpecialChar LaTeX
11808
11809 \family default
11810  environment or as 
11811 \family sans
11812 \SpecialChar TeX
11813
11814 \family default
11815  within another environment.
11816 \end_layout
11817
11818 \begin_layout Subsubsection
11819 Lengths
11820 \end_layout
11821
11822 \begin_layout Standard
11823 All lengths are adjusted using the 
11824 \family typewriter
11825
11826 \backslash
11827 setlength{
11828 \family default
11829 \emph on
11830 lengthname
11831 \family typewriter
11832 \emph default
11833 }{
11834 \family default
11835 \emph on
11836 newlength
11837 \family typewriter
11838 \emph default
11839 }
11840 \family default
11841  command.
11842  Where 
11843 \emph on
11844 lengthname
11845 \emph default
11846  should be replaced by the name given to the length you want to change and
11847  
11848 \emph on
11849 newlength
11850 \emph default
11851  is the length value.
11852  All lengths should be specified in units of length such as inches (
11853 \family typewriter
11854 in
11855 \family default
11856 ), millimeters (
11857 \family typewriter
11858 mm
11859 \family default
11860 ) or points (
11861 \family typewriter
11862 pt
11863 \family default
11864 ) or relative to some document or font-based length such as 
11865 \family typewriter
11866
11867 \backslash
11868 textwidth
11869 \family default
11870 .
11871  
11872 \end_layout
11873
11874 \begin_layout Standard
11875 It's possible to change the spacing between a foilhead and the body of the
11876  foil by adjusting the length specified by 
11877 \family typewriter
11878
11879 \backslash
11880 foilheadskip
11881 \family default
11882 .
11883  For example, to make 
11884 \emph on
11885 all
11886 \emph default
11887  foilheads 0.5
11888 \begin_inset space \space{}
11889 \end_inset
11890
11891 in closer to their bodies put the following in the preamble: 
11892 \family typewriter
11893
11894 \backslash
11895 setlength{
11896 \backslash
11897 foilheadskip}{-0.5in}
11898 \end_layout
11899
11900 \begin_layout Standard
11901 The spacings around floats can be adjusted by setting these lengths:
11902 \end_layout
11903
11904 \begin_layout Labeling
11905 \labelwidthstring MMMMMMMMMMM
11906
11907 \family typewriter
11908
11909 \backslash
11910 abovefloatskip
11911 \family default
11912  Separation between the text and the top of the float
11913 \end_layout
11914
11915 \begin_layout Labeling
11916 \labelwidthstring MMMMMMMMMMM
11917
11918 \family typewriter
11919
11920 \backslash
11921 abovecaptionskip
11922 \family default
11923  Separation between the float and the caption
11924 \end_layout
11925
11926 \begin_layout Labeling
11927 \labelwidthstring MMMMMMMMMMM
11928
11929 \family typewriter
11930
11931 \backslash
11932 belowcaptionskip
11933 \family default
11934  Separation between the caption and the following text
11935 \end_layout
11936
11937 \begin_layout Labeling
11938 \labelwidthstring MMMMMMMMMMM
11939
11940 \family typewriter
11941
11942 \backslash
11943 captionwidth
11944 \family default
11945  You can make the captions narrower than the surrounding text by adjusting
11946  this length.
11947  Best done relative to 
11948 \family typewriter
11949
11950 \backslash
11951 textwidth
11952 \family default
11953 .
11954 \end_layout
11955
11956 \begin_layout Standard
11957 There are also several title page related lengths that you may find useful
11958  if you have a long title or several authors:
11959 \end_layout
11960
11961 \begin_layout Labeling
11962 \labelwidthstring MMMMMMMMMMM
11963
11964 \family typewriter
11965
11966 \backslash
11967 abovetitleskip
11968 \family default
11969  Separation from headers to 
11970 \family sans
11971 Title
11972 \end_layout
11973
11974 \begin_layout Labeling
11975 \labelwidthstring MMMMMMMMMMM
11976
11977 \family typewriter
11978
11979 \backslash
11980 titleauthorskip
11981 \family default
11982  between 
11983 \family sans
11984 Title
11985 \family default
11986  and 
11987 \family sans
11988 Author
11989 \family default
11990  environments
11991 \end_layout
11992
11993 \begin_layout Labeling
11994 \labelwidthstring MMMMMMMMMMM
11995
11996 \family typewriter
11997
11998 \backslash
11999 authorauthorskip
12000 \family default
12001  between multiple 
12002 \family sans
12003 Author
12004 \family default
12005  lines
12006 \end_layout
12007
12008 \begin_layout Labeling
12009 \labelwidthstring MMMMMMMMMMM
12010
12011 \family typewriter
12012
12013 \backslash
12014 authordateskip
12015 \family default
12016  between the 
12017 \family sans
12018 Author
12019 \family default
12020  and the 
12021 \family sans
12022 Date
12023 \end_layout
12024
12025 \begin_layout Labeling
12026 \labelwidthstring MMMMMMMMMMM
12027
12028 \family typewriter
12029
12030 \backslash
12031 dateabstractskip
12032 \family default
12033  between the 
12034 \family sans
12035 Date
12036 \family default
12037  and the 
12038 \family sans
12039 Abstract
12040 \end_layout
12041
12042 \begin_layout Standard
12043 The last length related command affects all the list environments.
12044  If you place 
12045 \family typewriter
12046
12047 \backslash
12048 zerolistvertdimens
12049 \family default
12050  
12051 \emph on
12052 inside
12053 \emph default
12054  a list environment then all the vertical spacing between the list items
12055  is removed.
12056  Note that this is a command not a length so it doesn't require 
12057 \family typewriter
12058
12059 \backslash
12060 setlength
12061 \family default
12062  like the stuff mentioned above.
12063 \end_layout
12064
12065 \begin_layout Subsubsection
12066 Headers and Footers
12067 \end_layout
12068
12069 \begin_layout Standard
12070 The 
12071 \family typewriter
12072
12073 \backslash
12074 LogoOn
12075 \family default
12076  and 
12077 \family typewriter
12078
12079 \backslash
12080 LogoOff
12081 \family default
12082  commands control whether the logo in the 
12083 \family sans
12084 MyLogo
12085 \family default
12086  definition appear on a given page.
12087  If you put 
12088 \family typewriter
12089
12090 \backslash
12091 LogoOff
12092 \family default
12093  in the preamble then none of the foils will have the logo on them.
12094  If you don't want the logo on a particular page place the 
12095 \family typewriter
12096
12097 \backslash
12098 LogoOff
12099 \family default
12100  directly after the foilhead of that page and the 
12101 \family typewriter
12102
12103 \backslash
12104 LogoOn
12105 \family default
12106  directly after the next foilhead.
12107 \end_layout
12108
12109 \begin_layout Standard
12110 If you decide to use the 
12111 \family sans
12112 fancy
12113 \family default
12114  page style setting in the 
12115 \family sans
12116 Document
12117 \begin_inset space ~
12118 \end_inset
12119
12120 Layout
12121 \family default
12122  dialog you should probably add 
12123 \family typewriter
12124
12125 \backslash
12126 let
12127 \backslash
12128 headwidth
12129 \backslash
12130 textwidth
12131 \family default
12132  to your preamble so headers and footers on landscape pages are correctly
12133  placed when rotated.
12134  This is due to some clashes between the page layouts provided by the 
12135 \family sans
12136 fancyheadings
12137 \family default
12138  package and the 
12139 \family sans
12140 foils
12141 \family default
12142  class.
12143 \end_layout
12144
12145 \begin_layout Section
12146 Hollywood (Hollywood spec scripts)
12147 \end_layout
12148
12149 \begin_layout Standard
12150 by 
12151 \shape smallcaps
12152 Garst Reese
12153 \end_layout
12154
12155 \begin_layout Subsection
12156 Introduction
12157 \end_layout
12158
12159 \begin_layout Standard
12160 Getting the format of a Hollywood script right is a 
12161 \begin_inset Quotes eld
12162 \end_inset
12163
12164 rite of passage.
12165 \begin_inset Quotes erd
12166 \end_inset
12167
12168  It is designed to make the readers focus on content and to be easy and
12169  familiar for the actors to read.
12170  Each page of a script should be one minute of film.
12171  Nothing goes in a script that you cannot see or hear on screen.
12172  The courier 12 pt font should be used throughout.
12173  No italics.
12174 \end_layout
12175
12176 \begin_layout Subsection
12177 Special problems
12178 \end_layout
12179
12180 \begin_layout Standard
12181 Speakers' lines should NEVER break in mid-sentence.
12182  If a speaker's lines continue over a page break, repeat the 
12183 \family sans
12184 Speaker
12185 \family default
12186  title followed by (Cont'd).
12187 \end_layout
12188
12189 \begin_layout Subsection
12190 Special features
12191 \end_layout
12192
12193 \begin_layout Standard
12194 Insert the 
12195 \family sans
12196 Speaker
12197 \family default
12198  names as labels then cross-reference the label to insert the name.
12199  The cross-reference dialog will show the current cast of characters.
12200  You can use this to insert the speaker name in narratives also.
12201 \end_layout
12202
12203 \begin_layout Subsection
12204 Paper size and Margins
12205 \end_layout
12206
12207 \begin_layout Standard
12208 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12209 \end_layout
12210
12211 \begin_layout Subsection
12212 Environments
12213 \end_layout
12214
12215 \begin_layout Standard
12216 The following environments are available.
12217  You can use hollywood.bind to get the bind keys shown at the right.
12218 \end_layout
12219
12220 \begin_layout Itemize
12221
12222 \family sans
12223 Standard
12224 \begin_inset Newline newline
12225 \end_inset
12226
12227
12228 \family default
12229 Used where nothing else works.
12230  Try to avoid it.
12231 \end_layout
12232
12233 \begin_layout Itemize
12234
12235 \family sans
12236 FADE_IN
12237 \family default
12238 :
12239 \begin_inset space \hfill{}
12240 \end_inset
12241
12242
12243 \family sans
12244 M-z S-I
12245 \family default
12246
12247 \begin_inset Newline newline
12248 \end_inset
12249
12250 Usually followed by something like 
12251 \begin_inset Quotes eld
12252 \end_inset
12253
12254 on Sally waking up.
12255 \begin_inset Quotes erd
12256 \end_inset
12257
12258
12259 \end_layout
12260
12261 \begin_layout Itemize
12262
12263 \family sans
12264 INT:
12265 \begin_inset space \hfill{}
12266 \end_inset
12267
12268 M-z i
12269 \begin_inset Newline newline
12270 \end_inset
12271
12272
12273 \family default
12274 Introduces a new INTERIOR camera set-up.
12275  Always followed by DAY or NIGHT, or something similar to define the lighting
12276  required.
12277  Everthing on this line in CAPS.
12278 \end_layout
12279
12280 \begin_layout Itemize
12281
12282 \family sans
12283 EXT:
12284 \begin_inset space \hfill{}
12285 \end_inset
12286
12287 M-z e
12288 \begin_inset Newline newline
12289 \end_inset
12290
12291
12292 \family default
12293 Introduces a new EXTERIOR camera set-up.
12294  Everthing on this line in CAPS.
12295 \end_layout
12296
12297 \begin_layout Itemize
12298
12299 \family sans
12300 Speaker
12301 \begin_inset space \hfill{}
12302 \end_inset
12303
12304 M-z s
12305 \begin_inset Newline newline
12306 \end_inset
12307
12308
12309 \family default
12310 The character speaking.
12311 \end_layout
12312
12313 \begin_layout Itemize
12314
12315 \family sans
12316 Parenthetical
12317 \begin_inset space \hfill{}
12318 \end_inset
12319
12320 M-z p
12321 \begin_inset Newline newline
12322 \end_inset
12323
12324
12325 \family default
12326 Instructions to the speaker.
12327  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12328 .
12329  Both will be printed.
12330 \end_layout
12331
12332 \begin_layout Itemize
12333
12334 \family sans
12335 Dialogue
12336 \begin_inset space \hfill{}
12337 \end_inset
12338
12339 M-z d
12340 \begin_inset Newline newline
12341 \end_inset
12342
12343
12344 \family default
12345 What the 
12346 \family sans
12347 Speaker
12348 \family default
12349  says.
12350 \end_layout
12351
12352 \begin_layout Itemize
12353
12354 \family sans
12355 Transition
12356 \begin_inset space \hfill{}
12357 \end_inset
12358
12359 M-z t
12360 \begin_inset Newline newline
12361 \end_inset
12362
12363
12364 \family default
12365 Camera movement instruction.
12366  e.
12367 \begin_inset space \thinspace{}
12368 \end_inset
12369
12370 g.
12371 \begin_inset space \space{}
12372 \end_inset
12373
12374 CUT TO:
12375 \end_layout
12376
12377 \begin_layout Itemize
12378
12379 \family sans
12380 FADE OUT:
12381 \begin_inset space \hfill{}
12382 \end_inset
12383
12384 M-z S-I
12385 \end_layout
12386
12387 \begin_layout Itemize
12388
12389 \family sans
12390 Author
12391 \begin_inset space \hfill{}
12392 \end_inset
12393
12394 M-z S-A
12395 \end_layout
12396
12397 \begin_layout Itemize
12398
12399 \family sans
12400 Title
12401 \begin_inset space \hfill{}
12402 \end_inset
12403
12404 M-z S-T
12405 \end_layout
12406
12407 \begin_layout Itemize
12408
12409 \family sans
12410 Right_Address
12411 \begin_inset space \hfill{}
12412 \end_inset
12413
12414 M-z r
12415 \end_layout
12416
12417 \begin_layout Subsection
12418 Script jargon
12419 \end_layout
12420
12421 \begin_layout Itemize
12422 (O.S) — off screen
12423 \end_layout
12424
12425 \begin_layout Itemize
12426 (V.0) — voice over
12427 \end_layout
12428
12429 \begin_layout Itemize
12430 b.
12431 \begin_inset space \thinspace{}
12432 \end_inset
12433
12434 g.
12435  — background
12436 \end_layout
12437
12438 \begin_layout Itemize
12439 C.U.
12440  — close-up
12441 \end_layout
12442
12443 \begin_layout Itemize
12444 PAN — camera movement
12445 \end_layout
12446
12447 \begin_layout Itemize
12448 INSERT — cut to close-up of
12449 \end_layout
12450
12451 \begin_layout Section
12452 ijmpc and ijmpd
12453 \end_layout
12454
12455 \begin_layout Standard
12456 by 
12457 \noun on
12458 Panayotis Papasotiriou
12459 \end_layout
12460
12461 \begin_layout Subsection
12462 Overview
12463 \end_layout
12464
12465 \begin_layout Standard
12466 The ijmpc package is a set of macros that facilitates electronic manuscript
12467  submission to the 
12468 \emph on
12469 International Journal of Modern Physics C
12470 \emph default
12471 .
12472  Similarly, the ijmpd package is for creating manuscripts to be submitted
12473  to the 
12474 \emph on
12475 International Journal of Modern Physics D
12476 \emph default
12477 .
12478  Both journals are published by World Scientific.
12479  The corresponding document classes are named 
12480 \family typewriter
12481 ws-ijmpc.cls
12482 \family default
12483  and 
12484 \family typewriter
12485 ws-ijmpd.cls
12486 \family default
12487 , respectively.
12488  These files, together with instructions for the authors, can be downloaded
12489  from the sites 
12490 \begin_inset Flex URL
12491 status collapsed
12492
12493 \begin_layout Plain Layout
12494
12495 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12496 \end_layout
12497
12498 \end_inset
12499
12500  and 
12501 \begin_inset Flex URL
12502 status collapsed
12503
12504 \begin_layout Plain Layout
12505
12506 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12507 \end_layout
12508
12509 \end_inset
12510
12511 .
12512  Both packages are modified versions of the standard 
12513 \begin_inset Quotes eld
12514 \end_inset
12515
12516 article
12517 \begin_inset Quotes erd
12518 \end_inset
12519
12520  package, and they are almost (but not exactly) identical.
12521  Most of their features are supported by \SpecialChar LyX
12522 .
12523  I have used \SpecialChar LyX
12524  successfully to write articles submitted to both journals
12525  without any problem.
12526 \end_layout
12527
12528 \begin_layout Subsection
12529 Writing a paper
12530 \end_layout
12531
12532 \begin_layout Standard
12533 As usual, the easiest way to write a paper is to start with a template.
12534  Click on 
12535 \family sans
12536 File\SpecialChar menuseparator
12537 New from
12538 \family default
12539  
12540 \family sans
12541 \bar under
12542 T
12543 \bar default
12544 emplate
12545 \family default
12546 , then choose the 
12547 \family typewriter
12548 ijmpc.lyx
12549 \family default
12550  or 
12551 \family typewriter
12552 ijmpd.lyx
12553 \family default
12554  template.
12555  This will give an (almost) empty document that includes the most common
12556  fields found in a manuscript.
12557  Simply overwrite the existing text (including the brackets, 
12558 \family typewriter
12559 <>
12560 \family default
12561 ) with your text.
12562  You should keep in mind the following remarks.
12563 \end_layout
12564
12565 \begin_layout Enumerate
12566 \SpecialChar LyX
12567  won't let you change the font size and the page style of the document,
12568  because such modifications are not allowed by both packages.
12569 \end_layout
12570
12571 \begin_layout Enumerate
12572 The language of the document should not be changed.
12573  Before previewing your paper, be sure that the babel package is not used.
12574  To do this, click on 
12575 \family sans
12576 Tools\SpecialChar menuseparator
12577 Preferences
12578 \family default
12579 , select the 
12580 \family sans
12581 Lang Opts
12582 \family default
12583  tab, deselect the 
12584 \family sans
12585 Use babel
12586 \family default
12587  checkbox in the language settings, and click on 
12588 \family sans
12589 Apply
12590 \family default
12591  (or 
12592 \family sans
12593 Save
12594 \family default
12595 , if you wish to make this change permanent).
12596 \end_layout
12597
12598 \begin_layout Enumerate
12599 The 
12600 \begin_inset Quotes eld
12601 \end_inset
12602
12603 Keywords
12604 \begin_inset Quotes erd
12605 \end_inset
12606
12607  style must be used to define keywords.
12608 \end_layout
12609
12610 \begin_layout Enumerate
12611 The ijmpc package provides a style named 
12612 \begin_inset Quotes eld
12613 \end_inset
12614
12615 Classification Codes
12616 \begin_inset Quotes erd
12617 \end_inset
12618
12619 , which can be used to define classification codes, such as PACS numbers.
12620  Note that this facility is not supported by the ijmpd package.
12621 \end_layout
12622
12623 \begin_layout Enumerate
12624 Several new environments are available: 
12625 \begin_inset Quotes eld
12626 \end_inset
12627
12628 Definition
12629 \begin_inset Quotes erd
12630 \end_inset
12631
12632
12633 \begin_inset Quotes eld
12634 \end_inset
12635
12636 Step
12637 \begin_inset Quotes erd
12638 \end_inset
12639
12640
12641 \begin_inset Quotes eld
12642 \end_inset
12643
12644 Example
12645 \begin_inset Quotes erd
12646 \end_inset
12647
12648
12649 \begin_inset Quotes eld
12650 \end_inset
12651
12652 Remark
12653 \begin_inset Quotes erd
12654 \end_inset
12655
12656
12657 \begin_inset Quotes eld
12658 \end_inset
12659
12660 Notation
12661 \begin_inset Quotes erd
12662 \end_inset
12663
12664
12665 \begin_inset Quotes eld
12666 \end_inset
12667
12668 Theorem
12669 \begin_inset Quotes erd
12670 \end_inset
12671
12672
12673 \begin_inset Quotes eld
12674 \end_inset
12675
12676 Proof
12677 \begin_inset Quotes erd
12678 \end_inset
12679
12680
12681 \begin_inset Quotes eld
12682 \end_inset
12683
12684 Corollary
12685 \begin_inset Quotes erd
12686 \end_inset
12687
12688
12689 \begin_inset Quotes eld
12690 \end_inset
12691
12692 Lemma
12693 \begin_inset Quotes erd
12694 \end_inset
12695
12696
12697 \begin_inset Quotes eld
12698 \end_inset
12699
12700 Proposition
12701 \begin_inset Quotes erd
12702 \end_inset
12703
12704
12705 \begin_inset Quotes eld
12706 \end_inset
12707
12708 Prop
12709 \begin_inset Quotes erd
12710 \end_inset
12711
12712
12713 \begin_inset Quotes eld
12714 \end_inset
12715
12716 Question
12717 \begin_inset Quotes erd
12718 \end_inset
12719
12720
12721 \begin_inset Quotes eld
12722 \end_inset
12723
12724 Claim
12725 \begin_inset Quotes erd
12726 \end_inset
12727
12728 , and 
12729 \begin_inset Quotes eld
12730 \end_inset
12731
12732 Conjecture
12733 \begin_inset Quotes erd
12734 \end_inset
12735
12736 .
12737  Their use is more or less obvious.
12738  \SpecialChar LyX
12739  supports all these environments; it will use the proper label, text style,
12740  and numbering scheme for each of them.
12741 \end_layout
12742
12743 \begin_layout Enumerate
12744 Both packages use basic citations; the natbib package should not be used.
12745  In \SpecialChar LyX
12746 , citation references are shown as usual; in the output, citations are
12747  shown as superscripts.
12748  If you want to use a citation as normal text, you should use the 
12749 \family typewriter
12750 refcite
12751 \family default
12752  command, e.
12753 \begin_inset space \thinspace{}
12754 \end_inset
12755
12756 g.
12757 \begin_inset space \space{}
12758 \end_inset
12759
12760
12761 \begin_inset Quotes eld
12762 \end_inset
12763
12764 See Ref.
12765 \begin_inset space \space{}
12766 \end_inset
12767
12768
12769 \family typewriter
12770
12771 \backslash
12772 refcite{key}
12773 \family default
12774
12775 \begin_inset Quotes erd
12776 \end_inset
12777
12778 .
12779 \end_layout
12780
12781 \begin_layout Enumerate
12782 There is no 
12783 \begin_inset Quotes eld
12784 \end_inset
12785
12786 Acknowledgments
12787 \begin_inset Quotes erd
12788 \end_inset
12789
12790  section in both packages.
12791  To put acknowledgments, just use the 
12792 \begin_inset Quotes eld
12793 \end_inset
12794
12795 Section*
12796 \begin_inset Quotes erd
12797 \end_inset
12798
12799  environment.
12800 \end_layout
12801
12802 \begin_layout Enumerate
12803 Appendices may be added to the paper, 
12804 \emph on
12805 after
12806 \emph default
12807  the Acknowledgments and 
12808 \shape italic
12809 before
12810 \shape default
12811  the References.
12812  \SpecialChar LyX
12813  provides a special environment, called 
12814 \begin_inset Quotes eld
12815 \end_inset
12816
12817 Appendices Section
12818 \begin_inset Quotes erd
12819 \end_inset
12820
12821  which marks the beginning of the appendices.
12822  This environment should be left blank; it just sends a \SpecialChar LaTeX
12823  command, but nothing
12824  is really printed.
12825  In \SpecialChar LyX
12826 , the word 
12827 \begin_inset Quotes eld
12828 \end_inset
12829
12830 Appendix
12831 \begin_inset Quotes erd
12832 \end_inset
12833
12834  is printed with blue letters, as a signal that all sections after that
12835  point are appendices.
12836  To write an appendix, use the 
12837 \begin_inset Quotes eld
12838 \end_inset
12839
12840 Appendix
12841 \begin_inset Quotes erd
12842 \end_inset
12843
12844  environment.
12845  \SpecialChar LyX
12846  will number each appendix with capital letters, as required by both journals.
12847  Note that 
12848 \begin_inset Quotes eld
12849 \end_inset
12850
12851 Appendices Section
12852 \begin_inset Quotes erd
12853 \end_inset
12854
12855  
12856 \emph on
12857 must
12858 \emph default
12859  be present before the first appendix; if not, all appendices will be numbered
12860  as normal sections in the output.
12861 \end_layout
12862
12863 \begin_layout Enumerate
12864 The ijmpc and the ijmpd packages use the 
12865 \family typewriter
12866 tbl
12867 \family default
12868  command to implement table captions.
12869  As a result, a table created by \SpecialChar LyX
12870  is printed correctly, but its caption
12871  is ignored.
12872  However, you can use some \SpecialChar TeX
12873  code to overcome this problem, so that captions
12874  are printed as expected.
12875  To do so, create a float table as usual, remove the caption, and replace
12876  it with the \SpecialChar TeX
12877  code 
12878 \family typewriter
12879
12880 \backslash
12881 tbl{
12882 \emph on
12883 your table caption
12884 \emph default
12885 }{
12886 \family default
12887  (sic); you must also the \SpecialChar TeX
12888  code 
12889 \family typewriter
12890 }
12891 \family default
12892  immediately after the tabular material.
12893  Study the example table included in the template files to see how this
12894  trick is implemented.
12895  Alternatively, If you need table captions, you should implement the whole
12896  table float in a 
12897 \family typewriter
12898 .tex
12899 \family default
12900  file, then include this file to the \SpecialChar LyX
12901  document (
12902 \family sans
12903 Insert\SpecialChar menuseparator
12904 File\SpecialChar menuseparator
12905 Child
12906 \begin_inset space ~
12907 \end_inset
12908
12909 Document
12910 \family default
12911 ).
12912  Details on how to create a table float can be found in the files 
12913 \family typewriter
12914 ws-ijmpc.tex
12915 \family default
12916  and 
12917 \family typewriter
12918 ws-ijmpd.tex
12919 \family default
12920 , included in the corresponding packages.
12921 \end_layout
12922
12923 \begin_layout Subsection
12924 Preparing a paper for submission
12925 \end_layout
12926
12927 \begin_layout Standard
12928 Before you submit your paper you must export the \SpecialChar LyX
12929  document as a \SpecialChar LaTeX
12930  file (
12931 \family sans
12932 File\SpecialChar menuseparator
12933 Export\SpecialChar menuseparator
12934 \SpecialChar LaTeX
12935
12936 \family default
12937 )
12938 \begin_inset Foot
12939 status open
12940
12941 \begin_layout Plain Layout
12942 Actually you have the choice between \SpecialChar LaTeX
12943  (plain) and pdflatex.
12944  If you intend to use pdflatex to prepare the paper, you should use the
12945  pdflatex option so that included graphics are converted to PDF format,
12946  ready for use by pdflatex.
12947 \end_layout
12948
12949 \end_inset
12950
12951 , then make the following changes to the resulting 
12952 \family typewriter
12953 .tex
12954 \family default
12955  file.
12956 \end_layout
12957
12958 \begin_layout Enumerate
12959 Remove the comment lines before the 
12960 \family typewriter
12961
12962 \backslash
12963 documentclass
12964 \family default
12965  command.
12966 \end_layout
12967
12968 \begin_layout Enumerate
12969 Remove everything between (and including) the 
12970 \family typewriter
12971
12972 \backslash
12973 makeatletter
12974 \family default
12975  and 
12976 \family typewriter
12977
12978 \backslash
12979 makeatother
12980 \family default
12981  commands, except for any commands you specifically put into the \SpecialChar LaTeX
12982  preamble.
12983 \end_layout
12984
12985 \begin_layout Standard
12986 The modified 
12987 \family typewriter
12988 .tex
12989 \family default
12990  file should be saved and processed through \SpecialChar LaTeX
12991  as many times as necessary.
12992  You may also want to check the resulting 
12993 \family typewriter
12994 .dvi
12995 \family default
12996  document.
12997 \end_layout
12998
12999 \begin_layout Subsection
13000 Use of \SpecialChar TeX
13001  code
13002 \end_layout
13003
13004 \begin_layout Standard
13005 The use of \SpecialChar TeX
13006  code is reduced to two commands, which must be placed at the
13007  top of the document.
13008  If you started writing your paper by using the 
13009 \family typewriter
13010 ijmpc.lyx
13011 \family default
13012  or the 
13013 \family typewriter
13014 ijmpd.lyx
13015 \family default
13016  template, the \SpecialChar TeX
13017  code needed is already in its place; you usually don't need
13018  to delete it.
13019  You may only modify the first \SpecialChar TeX
13020  code to specify the information printed
13021  to the top of odd and even pages (authors' names and short paper's title,
13022  respectively).
13023  This \SpecialChar TeX
13024  code must have the form 
13025 \family typewriter
13026
13027 \backslash
13028 markboth{Authors' Names}{Short Paper's Title}
13029 \family default
13030 .
13031 \end_layout
13032
13033 \begin_layout Section
13034 iopart
13035 \end_layout
13036
13037 \begin_layout Standard
13038 by 
13039 \noun on
13040 Uwe Stöhr
13041 \end_layout
13042
13043 \begin_layout Subsection
13044 Overview
13045 \end_layout
13046
13047 \begin_layout Standard
13048 The iopart package provides a document class to create electronic manuscript
13049  submission to the journals published by the Institute of Physics.
13050  Instructions for the authors how to create a paper using the iopart class
13051  can be downloaded together with the iopart package from the site 
13052 \begin_inset Flex URL
13053 status collapsed
13054
13055 \begin_layout Plain Layout
13056
13057 ftp://ftp.iop.org/pub/journals/latex2e
13058 \end_layout
13059
13060 \end_inset
13061
13062 .
13063 \end_layout
13064
13065 \begin_layout Subsection
13066 Writing a paper
13067 \end_layout
13068
13069 \begin_layout Standard
13070 The easiest way to write a paper is to start with the file 
13071 \emph on
13072 IOP-article.lyx
13073 \emph default
13074  that is available in \SpecialChar LyX
13075 's examples files folder.
13076  Open this file, save it under a new name, and start writing.
13077  The example file explains how to use the special text environments.
13078  Here are the most important advices:
13079 \end_layout
13080
13081 \begin_layout Itemize
13082 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13083  two options 
13084 \family sans
13085 Use AMS math package
13086 \family default
13087  in the document settings under 
13088 \family sans
13089 Math Options
13090 \family default
13091  are not used!
13092 \end_layout
13093
13094 \begin_layout Itemize
13095
13096 \size normal
13097 The title environment defines the kind of your paper.
13098  So use one of the following environments for the title:
13099 \size default
13100
13101 \begin_inset Separator parbreak
13102 \end_inset
13103
13104
13105 \end_layout
13106
13107 \begin_deeper
13108 \begin_layout Itemize
13109
13110 \family sans
13111 \size normal
13112 Title
13113 \family default
13114  for a Paper
13115 \end_layout
13116
13117 \begin_layout Itemize
13118
13119 \family sans
13120 \size normal
13121 Review
13122 \family default
13123  for a Review
13124 \end_layout
13125
13126 \begin_layout Itemize
13127
13128 \family sans
13129 \size normal
13130 Topical
13131 \family default
13132  for a Topical review
13133 \end_layout
13134
13135 \begin_layout Itemize
13136
13137 \family sans
13138 \size normal
13139 Comment
13140 \family default
13141  for a Comment
13142 \end_layout
13143
13144 \begin_layout Itemize
13145
13146 \family sans
13147 \size normal
13148 Note
13149 \family default
13150  for a Note
13151 \end_layout
13152
13153 \begin_layout Itemize
13154
13155 \family sans
13156 \size normal
13157 Paper
13158 \family default
13159  for a Paper (same as Title)
13160 \end_layout
13161
13162 \begin_layout Itemize
13163
13164 \family sans
13165 \size normal
13166 Prelim
13167 \family default
13168  for a Preliminary communication
13169 \end_layout
13170
13171 \begin_layout Itemize
13172
13173 \family sans
13174 \size normal
13175 Rapid
13176 \family default
13177  for a Rapid communication
13178 \end_layout
13179
13180 \begin_layout Itemize
13181
13182 \family sans
13183 \size normal
13184 Letter
13185 \family default
13186  for a Letter to the editor
13187 \end_layout
13188
13189 \end_deeper
13190 \begin_layout Itemize
13191
13192 \size normal
13193 All title environments except of 
13194 \family sans
13195 Letter
13196 \family default
13197  can have an optional short title.
13198 \end_layout
13199
13200 \begin_layout Itemize
13201 There is a general title environment 
13202 \family sans
13203 Article
13204 \family default
13205  which is not directly supported by the \SpecialChar LyX
13206 .
13207  This can be used as \SpecialChar TeX
13208  code when your document doesn't fit into one of the
13209  other title types.
13210 \end_layout
13211
13212 \begin_layout Standard
13213 For more informations like hints for special table and formula formatting,
13214  look at the IOP author guidelines.
13215 \end_layout
13216
13217 \begin_layout Section
13218 Kluwer
13219 \end_layout
13220
13221 \begin_layout Standard
13222 by 
13223 \noun on
13224 Panayotis Papasotiriou
13225 \end_layout
13226
13227 \begin_layout Subsection
13228 Overview
13229 \end_layout
13230
13231 \begin_layout Standard
13232 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13233  that facilitates electronic manuscript submission to the journals they
13234  publish.
13235  Most known of them (at least in my domain of interest) are 
13236 \emph on
13237 Astrophysics and Space Science
13238 \emph default
13239  and 
13240 \emph on
13241 Solar Physics
13242 \emph default
13243 , but there are many others (see a complete list at 
13244 \begin_inset Flex URL
13245 status open
13246
13247 \begin_layout Plain Layout
13248
13249 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13250 \end_layout
13251
13252 \end_inset
13253
13254 ).
13255  The Kluwer package may be downloaded from the site 
13256 \begin_inset Flex URL
13257 status collapsed
13258
13259 \begin_layout Plain Layout
13260
13261 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13262 \end_layout
13263
13264 \end_inset
13265
13266 .
13267  A complete user guide is contained in that package (but it can also be
13268  downloaded separately).
13269 \end_layout
13270
13271 \begin_layout Standard
13272 \SpecialChar LyX
13273  supports many features of the package but not everything.
13274  However, the \SpecialChar TeX
13275  code needed is reduced to some 
13276 \begin_inset Quotes eld
13277 \end_inset
13278
13279 peculiar
13280 \begin_inset Quotes erd
13281 \end_inset
13282
13283  commands of the package (see
13284 \begin_inset space ~
13285 \end_inset
13286
13287
13288 \begin_inset CommandInset ref
13289 LatexCommand ref
13290 reference "subsec:kluwer_peculiarities"
13291
13292 \end_inset
13293
13294 ).
13295  I have recently used \SpecialChar LyX
13296  to write an article submitted to the 
13297 \emph on
13298 Astrophysics and Space Science
13299 \emph default
13300  without any problem.
13301 \end_layout
13302
13303 \begin_layout Subsection
13304 Writing a paper
13305 \end_layout
13306
13307 \begin_layout Standard
13308 The easiest way to write a paper is to start with the Kluwer template file.
13309  Click on 
13310 \family sans
13311 File\SpecialChar menuseparator
13312 New from
13313 \family default
13314  
13315 \family sans
13316 Template
13317 \family default
13318 , then choose the 
13319 \family typewriter
13320 kluwer.lyx
13321 \family default
13322  template.
13323  This will give an (almost) empty document that includes the most common
13324  fields found in a manuscript and a short description of their use.
13325  As in most templates, simply overwrite the existing text (including the
13326  brackets, 
13327 \family typewriter
13328 <>
13329 \family default
13330 ) with the correct information.
13331 \end_layout
13332
13333 \begin_layout Subsection
13334 Preparing a paper for submission
13335 \end_layout
13336
13337 \begin_layout Standard
13338 As in the AAS\SpecialChar TeX
13339  package, before you submit your paper to a journal you must
13340  
13341 \begin_inset Quotes eld
13342 \end_inset
13343
13344 postprocess
13345 \begin_inset Quotes erd
13346 \end_inset
13347
13348  it as follows.
13349 \end_layout
13350
13351 \begin_layout Enumerate
13352 Export your paper as a \SpecialChar LaTeX
13353  file.
13354  To do this, click on 
13355 \family sans
13356 File\SpecialChar menuseparator
13357 Export\SpecialChar menuseparator
13358 \SpecialChar LaTeX
13359
13360 \family default
13361 .
13362  
13363 \end_layout
13364
13365 \begin_layout Enumerate
13366 Edit the resulting 
13367 \family typewriter
13368 .tex
13369 \family default
13370  file with a text editor and make the following changes
13371 \begin_inset Separator parbreak
13372 \end_inset
13373
13374
13375 \end_layout
13376
13377 \begin_deeper
13378 \begin_layout Enumerate
13379 remove the comment lines before the 
13380 \family typewriter
13381
13382 \backslash
13383 documentclass
13384 \family default
13385  command,
13386 \end_layout
13387
13388 \begin_layout Enumerate
13389 remove everything between (and including) the 
13390 \family typewriter
13391
13392 \backslash
13393 makeatletter
13394 \family default
13395  and 
13396 \family typewriter
13397
13398 \backslash
13399 makeatother
13400 \family default
13401  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13402  preamble.
13403 \end_layout
13404
13405 \begin_layout Standard
13406 Save the resulting 
13407 \family typewriter
13408 .tex
13409 \family default
13410  file.
13411 \end_layout
13412
13413 \end_deeper
13414 \begin_layout Enumerate
13415 Run the 
13416 \family typewriter
13417 .tex
13418 \family default
13419  file through \SpecialChar LaTeX
13420  as many times as necessary (usually up to three).
13421 \end_layout
13422
13423 \begin_layout Enumerate
13424 View the resulting 
13425 \family typewriter
13426 .dvi
13427 \family default
13428  document using, e.
13429 \begin_inset space \thinspace{}
13430 \end_inset
13431
13432 g.
13433 \begin_inset space \space{}
13434 \end_inset
13435
13436
13437 \family sans
13438 xdvi
13439 \family default
13440 , and check if everything is OK (it should, if you didn't make any mistake).
13441 \end_layout
13442
13443 \begin_layout Subsection
13444 \begin_inset Quotes eld
13445 \end_inset
13446
13447 Peculiarities
13448 \begin_inset Quotes erd
13449 \end_inset
13450
13451  of the Kluwer package
13452 \begin_inset CommandInset label
13453 LatexCommand label
13454 name "subsec:kluwer_peculiarities"
13455
13456 \end_inset
13457
13458
13459 \end_layout
13460
13461 \begin_layout Standard
13462 The Kluwer package has the following 
13463 \begin_inset Quotes eld
13464 \end_inset
13465
13466 peculiarities
13467 \begin_inset Quotes erd
13468 \end_inset
13469
13470 .
13471 \end_layout
13472
13473 \begin_layout Enumerate
13474 It is possible to write multiple articles in the same \SpecialChar LaTeX
13475  file
13476 \begin_inset Foot
13477 status collapsed
13478
13479 \begin_layout Plain Layout
13480 I can't imagine any good reason to do this.
13481 \end_layout
13482
13483 \end_inset
13484
13485 .
13486  Each article must be included in the environment 
13487 \begin_inset Quotes eld
13488 \end_inset
13489
13490 article
13491 \begin_inset Quotes erd
13492 \end_inset
13493
13494 .
13495  Unfortunately, this environment cannot be omitted, even if you write just
13496  one article.
13497  Therefore, each article starts with the command 
13498 \family typewriter
13499
13500 \backslash
13501 begin{article}
13502 \family default
13503  and, obviously, ends with the command 
13504 \family typewriter
13505
13506 \backslash
13507 end{article}
13508 \family default
13509 .
13510  Although this can be implemented in \SpecialChar LyX
13511 , I didn't included it, since it looks
13512  ugly and can confuse the novice user.
13513  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13514  code (the
13515  well-known 
13516 \begin_inset Quotes eld
13517 \end_inset
13518
13519 \SpecialChar TeX
13520  code
13521 \begin_inset Quotes erd
13522 \end_inset
13523
13524 ).
13525 \end_layout
13526
13527 \begin_layout Enumerate
13528 Information given at the beginning of the article (i.
13529 \begin_inset space \thinspace{}
13530 \end_inset
13531
13532 e.
13533 \begin_inset space \space{}
13534 \end_inset
13535
13536 title, subtitle, author, institution, running title, running author, abstract
13537  and keywords) must be included in an environment called 
13538 \begin_inset Quotes eld
13539 \end_inset
13540
13541 opening
13542 \begin_inset Quotes erd
13543 \end_inset
13544
13545 .
13546  This is not implemented in \SpecialChar LyX
13547 , so you must enter title, subtitle etc.
13548 \begin_inset space ~
13549 \end_inset
13550
13551 between two \SpecialChar TeX
13552  code lines (
13553 \family typewriter
13554
13555 \backslash
13556 begin{opening}
13557 \family default
13558  and 
13559 \family typewriter
13560
13561 \backslash
13562 end{opening}
13563 \family default
13564 ).
13565 \end_layout
13566
13567 \begin_layout Enumerate
13568 According to the user manual, the label of each bibliography item must be
13569  written as 
13570 \family typewriter
13571
13572 \backslash
13573 protect
13574 \backslash
13575 citeauthoryear{
13576 \family default
13577 \emph on
13578 author(s)
13579 \family typewriter
13580 \emph default
13581 }{
13582 \family default
13583 \emph on
13584 year
13585 \family typewriter
13586 \emph default
13587 }
13588 \family default
13589 .
13590 \end_layout
13591
13592 \begin_layout Standard
13593 The 
13594 \family typewriter
13595 kluwer.lyx
13596 \family default
13597  template takes care of all these 
13598 \begin_inset Quotes eld
13599 \end_inset
13600
13601 peculiarities
13602 \begin_inset Quotes erd
13603 \end_inset
13604
13605 .
13606  If you start a new paper using this template you don't need to do anything
13607  special.
13608  Just 
13609 \end_layout
13610
13611 \begin_layout Enumerate
13612 don't delete the \SpecialChar TeX
13613  code included in the template, and
13614 \end_layout
13615
13616 \begin_layout Enumerate
13617 copy the example bibliography item included in the template and modify it
13618  as necessary to enter new bibliography items.
13619 \end_layout
13620
13621 \begin_layout Section
13622 Koma-Script
13623 \end_layout
13624
13625 \begin_layout Standard
13626 by 
13627 \noun on
13628 Bernd Rellermeyer
13629 \end_layout
13630
13631 \begin_layout Subsection
13632 Overview
13633 \end_layout
13634
13635 \begin_layout Standard
13636 The \SpecialChar LyX
13637  document classes 
13638 \emph on
13639 article (koma-script)
13640 \emph default
13641
13642 \emph on
13643 report (koma-script)
13644 \emph default
13645
13646 \emph on
13647 book
13648 \emph default
13649  
13650 \emph on
13651 (koma-script)
13652 \emph default
13653 , and 
13654 \emph on
13655 letter
13656 \emph default
13657  
13658 \emph on
13659 (koma-script)
13660 \emph default
13661  correspond to the \SpecialChar LaTeX
13662  document classes 
13663 \family typewriter
13664 scrartcl.cls
13665 \family default
13666
13667 \family typewriter
13668 scrreprt.cls
13669 \family default
13670
13671 \family typewriter
13672 scrbook.cls
13673 \family default
13674 , and 
13675 \family typewriter
13676 scrlettr.cls
13677 \family default
13678 , resp.
13679 \begin_inset space ~
13680 \end_inset
13681
13682 of the Koma-Script family.
13683  They are replacements for the standard document classes 
13684 \family typewriter
13685 article.cls
13686 \family default
13687
13688 \family typewriter
13689 report.cls
13690 \family default
13691
13692 \family typewriter
13693 book.cls
13694 \family default
13695  and 
13696 \family typewriter
13697 letter.cls
13698 \family default
13699 , resp., and fit better to European typography conventions in a number of
13700  points.
13701 \end_layout
13702
13703 \begin_layout Itemize
13704 Standard character size is 11pt in 
13705 \emph on
13706 article (koma-script)
13707 \emph default
13708
13709 \emph on
13710 report (koma-script)
13711 \emph default
13712 , and 
13713 \emph on
13714 book (koma-script)
13715 \emph default
13716 , and 12pt in 
13717 \emph on
13718 letter (koma-script)
13719 \emph default
13720 .
13721 \end_layout
13722
13723 \begin_layout Itemize
13724 Headings, labels of the description environment, and a number of elements
13725  of the 
13726 \emph on
13727 letter (koma-script)
13728 \emph default
13729  document class are set in a bold sans serif font.
13730 \begin_inset Foot
13731 status collapsed
13732
13733 \begin_layout Plain Layout
13734 There is a big difference between the bold sans serif old cm fonts and new
13735  ec fonts, especially in the appearance of headings.
13736  In comparison, the ec bold sans serif fonts look a bit thin.
13737  Here the \SpecialChar LaTeX
13738  package 
13739 \family typewriter
13740 cmsd.sty by
13741 \family default
13742  
13743 \shape smallcaps
13744 Walter Schmidt
13745 \shape default
13746  helps to produce the 
13747 \begin_inset Quotes eld
13748 \end_inset
13749
13750 usual
13751 \begin_inset Quotes erd
13752 \end_inset
13753
13754  appearance when using the ec fonts.
13755 \end_layout
13756
13757 \end_inset
13758
13759  The numbering of chapter headings is made in the same way as the numbering
13760  of section headings, that is without the extra line 
13761 \begin_inset Quotes eld
13762 \end_inset
13763
13764 Chapter\SpecialChar ldots
13765
13766 \begin_inset Quotes erd
13767 \end_inset
13768
13769 .
13770  In addition, the appearance of the headings can be modified by using a
13771  number of options (in \SpecialChar LyX
13772  to be entered in the field 
13773 \family sans
13774 Extra
13775 \begin_inset space ~
13776 \end_inset
13777
13778 Options
13779 \family default
13780  of the dialog 
13781 \family sans
13782 Layout\SpecialChar menuseparator
13783 Document
13784 \family default
13785 ).
13786  
13787 \end_layout
13788
13789 \begin_layout Itemize
13790 The main means in the Koma-Script document classes to design the type area
13791  are the options 
13792 \family sans
13793 BCOR
13794 \family default
13795  and 
13796 \family sans
13797 DIV
13798 \family default
13799  (in \SpecialChar LyX
13800  to be entered in the extra class options field in the dialog 
13801 \family sans
13802 Document\SpecialChar menuseparator
13803 Settings
13804 \family default
13805 ).
13806  They make a clearer modification of page margins possible as do the options
13807  of the dialog 
13808 \family sans
13809 Document\SpecialChar menuseparator
13810 Settings
13811 \family default
13812 .
13813  
13814 \end_layout
13815
13816 \begin_layout Itemize
13817 The \SpecialChar LaTeX
13818  document classes of the Koma-Script family define a number of additional
13819  commands.
13820  Those part of it which makes sense in \SpecialChar LyX
13821  is implemented in corresponding
13822  paragraph types.
13823 \end_layout
13824
13825 \begin_layout Standard
13826 Detailed descriptions of the \SpecialChar LaTeX
13827  document classes of the Koma-Script family
13828  can be found in the Koma-Script documentation 
13829 \emph on
13830 scrguide
13831 \emph default
13832  (German) and 
13833 \emph on
13834 scrguien
13835 \emph default
13836  (English).
13837 \end_layout
13838
13839 \begin_layout Subsection
13840 article (koma-script), report (koma-script), and book (koma-script)
13841 \end_layout
13842
13843 \begin_layout Standard
13844 The document classes 
13845 \emph on
13846 article (koma-script)
13847 \emph default
13848
13849 \emph on
13850 report (koma-script)
13851 \emph default
13852 , and 
13853 \emph on
13854 book
13855 \emph default
13856  
13857 \emph on
13858 (koma-script)
13859 \emph default
13860  are implemented in the layout files 
13861 \family typewriter
13862 scrartcl.layout
13863 \family default
13864
13865 \family typewriter
13866 scrreprt.layout
13867 \family default
13868 , and 
13869 \family typewriter
13870 scrbook.layout
13871 \family default
13872 , resp.
13873  They contain all the paragraph types of the corresponding standard document
13874  classes 
13875 \emph on
13876 article
13877 \emph default
13878
13879 \emph on
13880 report
13881 \emph default
13882 , and 
13883 \emph on
13884 book
13885 \emph default
13886 , resp., partly modified, with the exception of the \SpecialChar LyX
13887  specific 
13888 \family sans
13889 List
13890 \family default
13891 -type, which is replaced by the new 
13892 \family sans
13893 Labeling
13894 \family default
13895 -type having the same functionality.
13896  Beside the 
13897 \family sans
13898 Labeling
13899 \family default
13900 -Type there is a number of new paragraph types added.
13901  They are 
13902 \emph on
13903 not
13904 \emph default
13905  part of 
13906 \emph on
13907 letter (koma-script)
13908 \emph default
13909 .
13910 \end_layout
13911
13912 \begin_layout Itemize
13913
13914 \family sans
13915 Addpart, Addchap
13916 \family default
13917
13918 \family sans
13919 Addsec
13920 \family default
13921 : are equivalents to 
13922 \family sans
13923 Part*, Chapter*
13924 \family default
13925  and 
13926 \family sans
13927 Section*
13928 \family default
13929 , resp., additionally inserting an entry in the table of contents.
13930  
13931 \family sans
13932 Addpart
13933 \family default
13934  and 
13935 \family sans
13936 Addchap
13937 \family default
13938  are not contained in 
13939 \emph on
13940 article (koma-script)
13941 \emph default
13942 .
13943 \end_layout
13944
13945 \begin_layout Itemize
13946
13947 \family sans
13948 Addchap*
13949 \family default
13950
13951 \family sans
13952 Addsec*
13953 \family default
13954 : behave exactly as 
13955 \family sans
13956 Addchap
13957 \family default
13958  and 
13959 \family sans
13960 Addsec
13961 \family default
13962 , resp., additionally clearing running heads.
13963  
13964 \family sans
13965 Addchap*
13966 \family default
13967  is not contained in 
13968 \emph on
13969 article (koma-script)
13970 \emph default
13971 .
13972 \begin_inset Foot
13973 status collapsed
13974
13975 \begin_layout Plain Layout
13976 There is also an 
13977 \family typewriter
13978
13979 \backslash
13980 addpart*
13981 \family default
13982  command in 
13983 \emph on
13984 book (koma-script)
13985 \emph default
13986  and in 
13987 \emph on
13988 report (koma-script)
13989 \emph default
13990 , but since this is identical to 
13991 \family sans
13992 Part*
13993 \family default
13994 , is has not been implemented in \SpecialChar LyX
13995 .
13996 \end_layout
13997
13998 \end_inset
13999
14000
14001 \end_layout
14002
14003 \begin_layout Itemize
14004
14005 \family sans
14006 Minisec
14007 \family default
14008 : generates a heading directly above the following paragraph in the standard
14009  character size without affecting the structure of the document.
14010 \end_layout
14011
14012 \begin_layout Itemize
14013
14014 \family sans
14015 Captionabove
14016 \family default
14017  and 
14018 \family sans
14019 Captionbelow
14020 \family default
14021  are special captions which respect the different space settings needed
14022  for captions placed above or below an element (if you follow strict typographic
14023  rules, you might want to place table captions always above the table).
14024  You can also use the class option 
14025 \family typewriter
14026 tablecaptionsabove
14027 \family default
14028 , which will switch 
14029 \family sans
14030 caption
14031 \family default
14032  to 
14033 \family sans
14034 captionabove
14035 \family default
14036  for tables and 
14037 \family sans
14038 captionbelow
14039 \family default
14040  for figures.
14041  You need at least Koma-Script version 2.8q to use this.
14042 \end_layout
14043
14044 \begin_layout Itemize
14045
14046 \family sans
14047 Dictum
14048 \family default
14049 : can be used to set a bonmot, e.
14050 \begin_inset space \thinspace{}
14051 \end_inset
14052
14053 g.
14054 \begin_inset space \space{}
14055 \end_inset
14056
14057 at the beginning of a chapter.
14058  If you use the optional argument (
14059 \family sans
14060 Insert\SpecialChar menuseparator
14061 Short
14062 \begin_inset space ~
14063 \end_inset
14064
14065 Title
14066 \family default
14067 ), you can insert the dictum's author there.
14068  Dictum and author are separated by a line.
14069  You need at least Koma-Script version 2.8q to use this.
14070  
14071 \family sans
14072 Dictum
14073 \family default
14074  is not contained in 
14075 \emph on
14076 article (koma-script)
14077 \emph default
14078 .
14079 \end_layout
14080
14081 \begin_layout Standard
14082 The following types, together with the standard types 
14083 \family sans
14084 Title
14085 \family default
14086
14087 \family sans
14088 Author
14089 \family default
14090 , and 
14091 \family sans
14092 Date
14093 \family default
14094 , form the title area of the document.
14095  They must be entered ahead of the first 
14096 \begin_inset Quotes eld
14097 \end_inset
14098
14099 ordinary
14100 \begin_inset Quotes erd
14101 \end_inset
14102
14103  paragraph.
14104 \begin_inset Foot
14105 status collapsed
14106
14107 \begin_layout Plain Layout
14108 The corresponding \SpecialChar LaTeX
14109  commands must appear before the 
14110 \family typewriter
14111
14112 \backslash
14113 maketitle
14114 \family default
14115  command.
14116 \end_layout
14117
14118 \end_inset
14119
14120  When such a type is used more than once, the latter usage overwrites the
14121  former one, that means, for every type only the latest usage is valid.
14122  The order of the different types however has, like 
14123 \family sans
14124 Title
14125 \family default
14126
14127 \family sans
14128 Author
14129 \family default
14130 , and 
14131 \family sans
14132 Date
14133 \family default
14134 , no effect on the appearance of the produced document.
14135 \end_layout
14136
14137 \begin_layout Itemize
14138
14139 \family sans
14140 Subject
14141 \family default
14142 : produces a centered paragraph above the ordinary title (
14143 \family sans
14144 Title
14145 \family default
14146
14147 \family sans
14148 Author
14149 \family default
14150
14151 \family sans
14152 Date
14153 \family default
14154 ) for the subject of the document.
14155 \end_layout
14156
14157 \begin_layout Itemize
14158
14159 \family sans
14160 Publishers
14161 \family default
14162 : produces a centered paragraph below the ordinary title (
14163 \family sans
14164 Title
14165 \family default
14166
14167 \family sans
14168 Author
14169 \family default
14170
14171 \family sans
14172 Date
14173 \family default
14174 ) for the publishers' name.
14175 \end_layout
14176
14177 \begin_layout Itemize
14178
14179 \family sans
14180 Dedication
14181 \family default
14182 : in 
14183 \emph on
14184 report (koma-script)
14185 \emph default
14186  and 
14187 \emph on
14188 book (koma-script)
14189 \emph default
14190  produces a centered paragraph on its own page behind the title page, or
14191  in 
14192 \emph on
14193 article (koma-script)
14194 \emph default
14195  produces a centered paragraph below the ordinary title (
14196 \family sans
14197 Title
14198 \family default
14199
14200 \family sans
14201 Author
14202 \family default
14203
14204 \family sans
14205 Date
14206 \family default
14207
14208 \family sans
14209 Publishers
14210 \family default
14211 ) for a dedication.
14212 \end_layout
14213
14214 \begin_layout Itemize
14215
14216 \family sans
14217 Titlehead
14218 \family default
14219 : produces a left aligned paragraph above the ordinary title (
14220 \family sans
14221 Title
14222 \family default
14223
14224 \family sans
14225 Author
14226 \family default
14227
14228 \family sans
14229 Date
14230 \family default
14231
14232 \family sans
14233 Subject
14234 \family default
14235 ) for a document`s head.
14236 \end_layout
14237
14238 \begin_layout Itemize
14239
14240 \family sans
14241 Uppertitleback
14242 \family default
14243 : produces in a double-sided print in 
14244 \emph on
14245 report (koma-script)
14246 \emph default
14247  and 
14248 \emph on
14249 book (koma-script)
14250 \emph default
14251  a left-aligned paragraph at the top of the title page`s back or has no
14252  effect in a single-sided print or in 
14253 \emph on
14254 article (koma-script)
14255 \emph default
14256 .
14257 \end_layout
14258
14259 \begin_layout Itemize
14260
14261 \family sans
14262 Lowertitleback
14263 \family default
14264 : produces in a double-sided print in 
14265 \emph on
14266 report (koma-script)
14267 \emph default
14268  and 
14269 \emph on
14270 book (koma-script)
14271 \emph default
14272  a left-aligned paragraph at the bottom of the title page`s back or has
14273  no effect in a single-sided print or in 
14274 \emph on
14275 article (koma-script)
14276 \emph default
14277 .
14278 \end_layout
14279
14280 \begin_layout Itemize
14281
14282 \family sans
14283 Extratitle
14284 \family default
14285 : produces a special 
14286 \begin_inset Quotes eld
14287 \end_inset
14288
14289 dirty
14290 \begin_inset Quotes erd
14291 \end_inset
14292
14293  page ahead of the actual document containing a paragraph without special
14294  formatting.
14295 \end_layout
14296
14297 \begin_layout Standard
14298 The layout files for the document classes 
14299 \emph on
14300 article (koma-script)
14301 \emph default
14302
14303 \emph on
14304 report (koma-script)
14305 \emph default
14306 , and 
14307 \emph on
14308 book (koma-script)
14309 \emph default
14310  do include the file 
14311 \family typewriter
14312 scrmacros.inc
14313 \family default
14314 .
14315  This is thought of as a place to define your own types.
14316  Copy scrmacros
14317 \family typewriter
14318 .inc
14319 \family default
14320  in your personal layout directory and edit the file!
14321 \end_layout
14322
14323 \begin_layout Subsection
14324 letter (koma-script)
14325 \end_layout
14326
14327 \begin_layout Standard
14328 \noindent
14329 The document class 
14330 \emph on
14331 letter (koma-script)
14332 \emph default
14333  is implemented in the layout file 
14334 \family typewriter
14335 scrlettr.layout
14336 \family default
14337 .
14338  It contains all the paragraph types of the corresponding standard document
14339  class 
14340 \emph on
14341 letter
14342 \emph default
14343 , partly modified, with the exception of the \SpecialChar LyX
14344  specific types 
14345 \family sans
14346 \SpecialChar LyX
14347 -Code
14348 \family default
14349  and 
14350 \family sans
14351 Comment
14352 \family default
14353  and the 
14354 \family sans
14355 List
14356 \family default
14357  type, which is replaced by the new 
14358 \family sans
14359 Labeling
14360 \family default
14361  type.
14362  In addition, it contains, in contrast to the standard document class, the
14363  standard types 
14364 \family sans
14365 \SpecialChar LaTeX
14366
14367 \family default
14368
14369 \family sans
14370 Quotation
14371 \family default
14372
14373 \family sans
14374 Quote
14375 \family default
14376 , and 
14377 \family sans
14378 Verse
14379 \family default
14380 .
14381  Furthermore, there are a number of new letter specific types.
14382 \end_layout
14383
14384 \begin_layout Standard
14385 The appearance of the letter produced by this document class can be controlled
14386  by a number of \SpecialChar LaTeX
14387  commands, which you can put in the \SpecialChar LaTeX
14388  preamble.
14389 \begin_inset Foot
14390 status collapsed
14391
14392 \begin_layout Plain Layout
14393 For example, the standard appearance of the letter`s heading, consisting
14394  of name and address, is quite self-willed.
14395  An 
14396 \begin_inset Quotes eld
14397 \end_inset
14398
14399 ordinary
14400 \begin_inset Quotes erd
14401 \end_inset
14402
14403  heading is produced by the following \SpecialChar LaTeX
14404  commands in the preamble:
14405 \end_layout
14406
14407 \begin_layout LyX-Code
14408
14409 \backslash
14410 firsthead{
14411 \backslash
14412 parbox[b]{
14413 \backslash
14414 textwidth}
14415 \end_layout
14416
14417 \begin_layout LyX-Code
14418   {
14419 \backslash
14420 ignorespaces 
14421 \backslash
14422 fromname
14423 \backslash
14424
14425 \backslash
14426  
14427 \backslash
14428 ignorespaces 
14429 \backslash
14430 fromaddress}} 
14431 \end_layout
14432
14433 \begin_layout LyX-Code
14434
14435 \backslash
14436 nexthead{
14437 \backslash
14438 parbox[b]{
14439 \backslash
14440 textwidth}
14441 \end_layout
14442
14443 \begin_layout LyX-Code
14444   {
14445 \backslash
14446 ignorespaces 
14447 \backslash
14448 fromname 
14449 \backslash
14450 hfill 
14451 \backslash
14452 ignorespaces 
14453 \backslash
14454 pagename
14455 \backslash
14456  
14457 \backslash
14458 thepage}}
14459 \end_layout
14460
14461 \end_inset
14462
14463  A detailed German description of such \SpecialChar LaTeX
14464  commands can be found in the Koma-Script
14465  documentation 
14466 \emph on
14467 scrguide
14468 \emph default
14469 .
14470  With it, the letter's author can produce his personal letter layout.
14471 \end_layout
14472
14473 \begin_layout Standard
14474 The types 
14475 \family sans
14476 Letter
14477 \family default
14478  and 
14479 \family sans
14480 Opening
14481 \family default
14482  define the beginning of the letter and must be used in every letter.
14483  To emphasize them in the \SpecialChar LyX
14484  document class, they are marked with the letter
14485  
14486 \shape italic
14487 L
14488 \shape default
14489  or 
14490 \shape italic
14491 O
14492 \shape default
14493 , resp.
14494 \begin_inset space ~
14495 \end_inset
14496
14497 in the left margin.
14498  It is possible to write any number of letters in one file.
14499  An 
14500 \family sans
14501 Opening
14502 \family default
14503  type produces a new letter using the same addressee and a 
14504 \family sans
14505 Letter
14506 \family default
14507  type produces a new addressee.
14508  The types 
14509 \family sans
14510 Closing
14511 \family default
14512
14513 \family sans
14514 PS
14515 \family default
14516
14517 \family sans
14518 CC
14519 \family default
14520 , and 
14521 \family sans
14522 Encl
14523 \family default
14524  are ordinary paragraph types and can also be used several times in one
14525  and the same letter.
14526 \end_layout
14527
14528 \begin_layout Itemize
14529
14530 \family sans
14531 Letter
14532 \family default
14533 : produces a paragraph for the addressee and implicitly defines the beginning
14534  of the letter.
14535 \end_layout
14536
14537 \begin_layout Itemize
14538
14539 \family sans
14540 Opening
14541 \family default
14542 : produces a paragraph for the form of address and implicitly produces a
14543  new letter.
14544 \end_layout
14545
14546 \begin_layout Itemize
14547
14548 \family sans
14549 Closing
14550 \family default
14551 : produces a paragraph for a close.
14552 \end_layout
14553
14554 \begin_layout Itemize
14555
14556 \family sans
14557 PS
14558 \family default
14559 : produces a paragraph for a postscript.
14560 \end_layout
14561
14562 \begin_layout Itemize
14563
14564 \family sans
14565 CC
14566 \family default
14567 : produces a paragraph for a distribution list.
14568 \end_layout
14569
14570 \begin_layout Itemize
14571
14572 \family sans
14573 Encl
14574 \family default
14575 : produces a paragraph for enclosures.
14576 \end_layout
14577
14578 \begin_layout Standard
14579 The types 
14580 \family sans
14581 Name
14582 \family default
14583
14584 \family sans
14585 Signature
14586 \family default
14587
14588 \family sans
14589 Address
14590 \family default
14591
14592 \family sans
14593 Telephone
14594 \family default
14595
14596 \family sans
14597 Place
14598 \family default
14599
14600 \family sans
14601 Backaddress
14602 \family default
14603
14604 \family sans
14605 Specialmail
14606 \family default
14607
14608 \family sans
14609 Location
14610 \family default
14611
14612 \family sans
14613 Title
14614 \family default
14615 , and 
14616 \family sans
14617 Subject
14618 \family default
14619  are input types provided with a label to enter information, which will
14620  be processed by the document class.
14621 \begin_inset Foot
14622 status open
14623
14624 \begin_layout Plain Layout
14625 It could be seen as a matter of inconsequence, that the types 
14626 \family sans
14627 Letter
14628 \family default
14629  and 
14630 \family sans
14631 Opening
14632 \family default
14633  described above are not such input types as well.
14634  Because of the special meaning of those types, however, I have implemented
14635  them as ordinary paragraph types with a one letter mark in the left margin.
14636  Moreover, it would affect my feeling of symmetry, if the 
14637 \family sans
14638 Opening
14639 \family default
14640  type and the 
14641 \family sans
14642 Closing
14643 \family default
14644  type had such a serious different appearance.
14645 \end_layout
14646
14647 \end_inset
14648
14649  The types must be used ahead of the corresponding 
14650 \family sans
14651 Opening
14652 \family default
14653  type.
14654 \end_layout
14655
14656 \begin_layout Standard
14657 An implementation of these types in a WYSIWYG fashion does not seem to make
14658  sense, because the real appearance of the produced letter does not only
14659  depend on the usage of the particular type, but also on other factors.
14660  For example, a signature entered in the 
14661 \family sans
14662 Signature
14663 \family default
14664  type will in the standard behavior appear in the produced letter only,
14665  when in the same letter also a 
14666 \family sans
14667 Closing
14668 \family default
14669  type is used.
14670  The entered value of the 
14671 \family sans
14672 Telephone
14673 \family default
14674  type will in the standard behavior not appear in the produced letter at
14675  all.
14676  The possibility to design the letter`s heading freely is already indicated
14677  in a footnote above.
14678 \end_layout
14679
14680 \begin_layout Standard
14681 The input types can also be used as empty paragraphs.
14682  This makes sense e.
14683 \begin_inset space \thinspace{}
14684 \end_inset
14685
14686 g.
14687 \begin_inset space \space{}
14688 \end_inset
14689
14690 for the 
14691 \family sans
14692 Signature
14693 \family default
14694  type.
14695  If the 
14696 \family sans
14697 Signature
14698 \family default
14699  type is not used at all, in the standard behavior the value of the 
14700 \family sans
14701 Name
14702 \family default
14703  type is used as signature, whereas if an empty 
14704 \family sans
14705 Signature
14706 \family default
14707  type is used, no signature value is defined.
14708 \end_layout
14709
14710 \begin_layout Standard
14711 By using the input types it is possible to write a letter template, containing
14712  filled input types with your personal dates (name, address, etc.) and empty
14713  input types for other dates you want to enter.
14714 \end_layout
14715
14716 \begin_layout Itemize
14717
14718 \family sans
14719 Name
14720 \family default
14721 : sender's name, in the standard behavior appears as a centered paragraph
14722  in small caps in the letter`s heading.
14723 \end_layout
14724
14725 \begin_layout Itemize
14726
14727 \family sans
14728 Signature
14729 \family default
14730 : sender's signature, in the standard behavior appears below the 
14731 \family sans
14732 Closing
14733 \family default
14734  type.
14735  If no 
14736 \family sans
14737 Signature
14738 \family default
14739  type is used, the value of the 
14740 \family sans
14741 Name
14742 \family default
14743  type appears instead.
14744 \end_layout
14745
14746 \begin_layout Itemize
14747
14748 \family sans
14749 Address
14750 \family default
14751 : sender's address, in the standard behavior appears in a centered paragraph
14752  in the letter`s heading below the sender's name.
14753 \end_layout
14754
14755 \begin_layout Itemize
14756
14757 \family sans
14758 Telephone
14759 \family default
14760 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
14761  variable
14762  
14763 \family typewriter
14764
14765 \backslash
14766 telephonenum
14767 \family default
14768 .
14769 \end_layout
14770
14771 \begin_layout Itemize
14772
14773 \family sans
14774 Place
14775 \family default
14776 : place of the letter`s making.
14777 \end_layout
14778
14779 \begin_layout Itemize
14780
14781 \family sans
14782 Date
14783 \family default
14784 : date of the letter`s making.
14785  
14786 \family sans
14787 Place
14788 \family default
14789  and 
14790 \family sans
14791 Date
14792 \family default
14793 , in the standard behavior, produce the place and the date in a right-aligned
14794  line below the addressee's field.
14795  If an empty 
14796 \family sans
14797 Date
14798 \family default
14799  type is used, neither place nor date appear, independent of the value of
14800  the 
14801 \family sans
14802 Place
14803 \family default
14804  type.
14805  If no 
14806 \family sans
14807 Date
14808 \family default
14809  type is used, the date of the letter `s production is used.
14810 \end_layout
14811
14812 \begin_layout Itemize
14813
14814 \family sans
14815 Backaddress
14816 \family default
14817 : sender`s back address, in the standard behavior appears above the addressee's
14818  field in a small sans serif font.
14819 \end_layout
14820
14821 \begin_layout Itemize
14822
14823 \family sans
14824 Specialmail
14825 \family default
14826 : special mail information, in the standard behavior appears underlined
14827  above the addressee's field below the back address.
14828 \end_layout
14829
14830 \begin_layout Itemize
14831
14832 \family sans
14833 Location
14834 \family default
14835 : additional information, in the standard behavior appears on right side
14836  below the addressee`s field.
14837 \end_layout
14838
14839 \begin_layout Itemize
14840
14841 \family sans
14842 Title
14843 \family default
14844 : the letter's title, in the standard behavior appears in a big, bold, sans
14845  serif font above the subject.
14846 \end_layout
14847
14848 \begin_layout Itemize
14849
14850 \family sans
14851 Subject
14852 \family default
14853 : the letter's subject, in the standard behavior appears in a bold font
14854  above the 
14855 \family sans
14856 Opening
14857 \family default
14858  paragraph.
14859 \end_layout
14860
14861 \begin_layout Standard
14862 The types 
14863 \family sans
14864 Yourref
14865 \family default
14866
14867 \family sans
14868 Yourmail
14869 \family default
14870
14871 \family sans
14872 Myref
14873 \family default
14874
14875 \family sans
14876 Customer
14877 \family default
14878 , and 
14879 \family sans
14880 Invoice
14881 \family default
14882  produce a business letter like line above the 
14883 \family sans
14884 Title
14885 \family default
14886  line containing the fields 
14887 \begin_inset Quotes eld
14888 \end_inset
14889
14890 Your ref.
14891 \begin_inset Quotes erd
14892 \end_inset
14893
14894
14895 \begin_inset Quotes eld
14896 \end_inset
14897
14898 Your letter of
14899 \begin_inset Quotes erd
14900 \end_inset
14901
14902
14903 \begin_inset Quotes eld
14904 \end_inset
14905
14906 Our ref.
14907 \begin_inset Quotes erd
14908 \end_inset
14909
14910
14911 \begin_inset Quotes eld
14912 \end_inset
14913
14914 Customer no.
14915 \begin_inset Quotes erd
14916 \end_inset
14917
14918
14919 \begin_inset Quotes eld
14920 \end_inset
14921
14922 Invoice no.
14923 \begin_inset Quotes erd
14924 \end_inset
14925
14926 , and 
14927 \begin_inset Quotes eld
14928 \end_inset
14929
14930 Date
14931 \begin_inset Quotes erd
14932 \end_inset
14933
14934 .
14935  For the date field, the value of the 
14936 \family sans
14937 Date
14938 \family default
14939  type is used.
14940  If one of these 
14941 \begin_inset Quotes eld
14942 \end_inset
14943
14944 business letter types
14945 \begin_inset Quotes erd
14946 \end_inset
14947
14948  is used, the value of the 
14949 \family sans
14950 Place
14951 \family default
14952  type however does not appear, but only the \SpecialChar LaTeX
14953  variable 
14954 \family typewriter
14955
14956 \backslash
14957 fromplace
14958 \family default
14959  is set.
14960  The ordinary output of place and date in a right-aligned line below the
14961  addressee`s field is suppressed.
14962  The types are implemented as input types provided with a label and must
14963  be used ahead of the corresponding 
14964 \family sans
14965 Opening
14966 \family default
14967  type.
14968 \end_layout
14969
14970 \begin_layout Itemize
14971
14972 \family sans
14973 Yourref
14974 \family default
14975 : Your ref.
14976 \end_layout
14977
14978 \begin_layout Itemize
14979
14980 \family sans
14981 Yourmail
14982 \family default
14983 : Your letter of.
14984 \end_layout
14985
14986 \begin_layout Itemize
14987
14988 \family sans
14989 Myref
14990 \family default
14991 : Our ref.
14992 \end_layout
14993
14994 \begin_layout Itemize
14995
14996 \family sans
14997 Customer
14998 \family default
14999 : Customer no.
15000 \end_layout
15001
15002 \begin_layout Itemize
15003
15004 \family sans
15005 Invoice
15006 \family default
15007 : Invoice no.
15008 \end_layout
15009
15010 \begin_layout Subsection
15011 The new letter class: letter (koma-script v.2)
15012 \end_layout
15013
15014 \begin_layout Standard
15015 by 
15016 \noun on
15017 Jürgen Spitzmüller
15018 \end_layout
15019
15020 \begin_layout Standard
15021 \begin_inset VSpace medskip
15022 \end_inset
15023
15024
15025 \end_layout
15026
15027 \begin_layout Standard
15028 \noindent
15029 Koma-Script version 2.8 has introduced a new letter class 
15030 \family typewriter
15031 scrlttr2
15032 \family default
15033  which supersedes the now unsupported 
15034 \family typewriter
15035 scrlettr
15036 \family default
15037 .
15038  It has — on the \SpecialChar LaTeX
15039  side — a completely new interface and is not compatible
15040  with the old class.
15041  Therefore, \SpecialChar LyX
15042  supports both, though it is recommended you use the new class.
15043 \end_layout
15044
15045 \begin_layout Standard
15046 This class covers the same functionality as 
15047 \emph on
15048 letter (koma-script),
15049 \emph default
15050  and a few more.
15051  The basic items are 
15052 \family sans
15053 Address
15054 \family default
15055  (receiver's address, same as 
15056 \family sans
15057 Letter
15058 \family default
15059  in the old layout), 
15060 \family sans
15061 Opening
15062 \family default
15063 , and 
15064 \family sans
15065 Closing
15066 \family default
15067 .
15068  
15069 \family sans
15070 NextAddress
15071 \family default
15072  will start a new letter (i.
15073 \begin_inset space \thinspace{}
15074 \end_inset
15075
15076 e.
15077 \begin_inset space \space{}
15078 \end_inset
15079
15080 you can write several letters per document).
15081  New elements are sender's 
15082 \family sans
15083 E-Mail
15084 \family default
15085
15086 \family sans
15087 URL
15088 \family default
15089
15090 \family sans
15091 Fax
15092 \family default
15093
15094 \family sans
15095 Bank
15096 \family default
15097  and the possibility to use a 
15098 \family sans
15099 Logo
15100 \family default
15101  (via 
15102 \family sans
15103 Insert\SpecialChar menuseparator
15104 Graphics
15105 \family default
15106 ) in the header.
15107 \end_layout
15108
15109 \begin_layout Standard
15110 The biggest improvement is, though, that the letter's layout is configurable
15111  to meet almost any needs.
15112  This can be done via the preamble or with a special style file (Letter
15113  Class Option, extension 
15114 \family typewriter
15115 *.lco
15116 \family default
15117 ), that will be read in as a class option.
15118 \begin_inset Foot
15119 status collapsed
15120
15121 \begin_layout Plain Layout
15122 The KOMA package comes with some default 
15123 \family typewriter
15124 *.lco
15125 \family default
15126  files.
15127  There is, for instance, a 
15128 \family typewriter
15129 DIN.lco
15130 \family default
15131  file that follows german typesetting rules, or a 
15132 \family typewriter
15133 KOMAold.lco
15134 \family default
15135  that provides the default layout of the old 
15136 \family typewriter
15137 scrlettr
15138 \family default
15139  class.
15140  The latter can be loaded with the class option 
15141 \family typewriter
15142 KOMAold
15143 \family default
15144 , inserted via the 
15145 \family sans
15146 \bar under
15147 L
15148 \bar default
15149 ayout\SpecialChar menuseparator
15150
15151 \bar under
15152 D
15153 \bar default
15154 ocument\SpecialChar menuseparator
15155 Extra Options
15156 \family default
15157  field.
15158 \end_layout
15159
15160 \end_inset
15161
15162  Have a look at the 
15163 \emph on
15164 koma-letter2
15165 \emph default
15166  template that is included in \SpecialChar LyX
15167  for examples.
15168  A detailed description is to be found in the Koma-Script documentation
15169  (
15170 \emph on
15171 scrguide
15172 \emph default
15173 ).
15174 \end_layout
15175
15176 \begin_layout Subsection
15177 Problems
15178 \end_layout
15179
15180 \begin_layout Standard
15181 Visualizing the Koma-Script document classes in \SpecialChar LyX
15182 , the \SpecialChar LyX
15183  internals cause some
15184  problems.
15185 \end_layout
15186
15187 \begin_layout Itemize
15188 The chapter number of a 
15189 \family sans
15190 Chapter
15191 \family default
15192  type appears on a line of its own above the chapter heading instead of
15193  appearing in the same line ahead of it.
15194  The cause for that is the \SpecialChar LyX
15195  internal behavior for the labeltype 
15196 \family sans
15197 Counter_Chapter
15198 \family default
15199  in the layout file.
15200 \end_layout
15201
15202 \begin_layout Itemize
15203 The headings of the types 
15204 \family sans
15205 Addchap
15206 \family default
15207  and 
15208 \family sans
15209 Addsec
15210 \family default
15211  are only put in the 
15212 \begin_inset Quotes eld
15213 \end_inset
15214
15215 true
15216 \begin_inset Quotes erd
15217 \end_inset
15218
15219  \SpecialChar LaTeX
15220  table of contents, but not in the \SpecialChar LyX
15221  table of contents (
15222 \family sans
15223 Document\SpecialChar menuseparator
15224 Table
15225 \begin_inset space ~
15226 \end_inset
15227
15228 of
15229 \begin_inset space ~
15230 \end_inset
15231
15232 Contents
15233 \family default
15234 ).
15235 \end_layout
15236
15237 \begin_layout Itemize
15238 The paragraphs in a 
15239 \emph on
15240 letter
15241 \emph default
15242  document class appear in a skip separation mode, not indented.
15243  This is the standard behavior, no special \SpecialChar LaTeX
15244  commands are needed for that.
15245  But in the 
15246 \family sans
15247 Document\SpecialChar menuseparator
15248 Settings
15249 \family default
15250  dialog the corresponding radio button indicates 
15251 \family sans
15252 Indent
15253 \family default
15254 .
15255  A 
15256 \family sans
15257 Skip
15258 \family default
15259  value always has the effect that extra \SpecialChar LaTeX
15260  commands are inserted in the document
15261  to produce the gap, which is not what is wanted in this case.
15262 \end_layout
15263
15264 \begin_layout Section
15265 Memoir
15266 \end_layout
15267
15268 \begin_layout Standard
15269 By 
15270 \noun on
15271 Jürgen Spitzmüller
15272 \end_layout
15273
15274 \begin_layout Subsection
15275 Overview
15276 \end_layout
15277
15278 \begin_layout Standard
15279 Memoir is a very powerful and constantly evolving class.
15280  It has been designed with regard to fictional and non-fictional literature.
15281  Its aim is to let the user have maximum control over the typesetting of
15282  his document.
15283  Memoir is based on the standard book class, but it can also emulate the
15284  article class (see below).
15285 \end_layout
15286
15287 \begin_layout Standard
15288 Peter Wilson, the developer of Memoir, is known as the author of lots of
15289  useful packages in the \SpecialChar LaTeX
15290  world.
15291  Most of them have been merged with Memoir.
15292  Therefore, it is much easier to layout the table of contents, appendices,
15293  chapter designs and such.
15294  \SpecialChar LyX
15295 , though, does not support all of these goodies natively.
15296  Some of them might be added to forthcoming releases
15297 \begin_inset Foot
15298 status collapsed
15299
15300 \begin_layout Plain Layout
15301 You are invited to send suggestions to 
15302 \begin_inset Flex URL
15303 status collapsed
15304
15305 \begin_layout Plain Layout
15306
15307 lyx-devel@lists.lyx.org
15308 \end_layout
15309
15310 \end_inset
15311
15312 .
15313 \end_layout
15314
15315 \end_inset
15316
15317 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15318 's framework.
15319  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15320
15321  commands (\SpecialChar TeX
15322  code
15323 \begin_inset Foot
15324 status collapsed
15325
15326 \begin_layout Plain Layout
15327 Cf.
15328 \begin_inset ERT
15329 status collapsed
15330
15331 \begin_layout Plain Layout
15332
15333
15334 \backslash
15335  
15336 \end_layout
15337
15338 \end_inset
15339
15340 section
15341 \begin_inset space ~
15342 \end_inset
15343
15344
15345 \begin_inset CommandInset ref
15346 LatexCommand ref
15347 reference "sec:Inserting-TeX-Code"
15348
15349 \end_inset
15350
15351  for details.
15352 \end_layout
15353
15354 \end_inset
15355
15356 ).
15357  In this section, we can only list those features that are natively supported
15358  by \SpecialChar LyX
15359 .
15360  For detailed descriptions (and for the rest of features) we recommend you
15361  have a look at the detailed manual of the Memoir class
15362 \begin_inset Foot
15363 status collapsed
15364
15365 \begin_layout Plain Layout
15366 Cf.
15367 \begin_inset ERT
15368 status collapsed
15369
15370 \begin_layout Plain Layout
15371
15372
15373 \backslash
15374  
15375 \end_layout
15376
15377 \end_inset
15378
15379
15380 \begin_inset Flex URL
15381 status collapsed
15382
15383 \begin_layout Plain Layout
15384
15385 CTAN:/macros/latex/memoir/memman.pdf
15386 \end_layout
15387
15388 \end_inset
15389
15390 .
15391 \end_layout
15392
15393 \end_inset
15394
15395 , which is not only a user guide for the class, but also both a comprehensive
15396  description on good typesetting and a superb example for good typesetting
15397  itself.
15398 \end_layout
15399
15400 \begin_layout Subsection
15401 Basic features and restrictions
15402 \end_layout
15403
15404 \begin_layout Standard
15405 Memoir supports basically all features of the standard book classes.
15406  There are, however, some differences, as follows:
15407 \end_layout
15408
15409 \begin_layout Description
15410 Font
15411 \begin_inset space ~
15412 \end_inset
15413
15414 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15415 \end_layout
15416
15417 \begin_layout Description
15418 Page
15419 \begin_inset space ~
15420 \end_inset
15421
15422 style: The fancy page style is not supported, due to a command clash between
15423  Memoir and the fancyhdr package (they both define a command with the same
15424  name, which confuses \SpecialChar LaTeX
15425 ).
15426  Instead, Memoir comes with a number of its own page styles (see 
15427 \family sans
15428 Layout\SpecialChar menuseparator
15429 Document\SpecialChar menuseparator
15430 Page
15431 \begin_inset space ~
15432 \end_inset
15433
15434 Style
15435 \family default
15436 ).
15437  If you want to use these for the chapter pages, you have to use the command
15438  
15439 \family typewriter
15440
15441 \backslash
15442 chapterstyle
15443 \family default
15444  in the main text or in preamble (e.
15445 \begin_inset space \thinspace{}
15446 \end_inset
15447
15448 g.
15449 \begin_inset space \space{}
15450 \end_inset
15451
15452
15453 \family typewriter
15454
15455 \backslash
15456 chapterstyle{companion}
15457 \family default
15458 ).
15459 \end_layout
15460
15461 \begin_layout Description
15462 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15463  optional argument in the standard classes.
15464  With this, you can specify an alternative version of the title for the
15465  table of contents and the headers (for instance, if the title is too long).
15466  In \SpecialChar LyX
15467 , you can do this via 
15468 \family sans
15469 Insert\SpecialChar menuseparator
15470 Short
15471 \begin_inset space ~
15472 \end_inset
15473
15474 Title
15475 \family default
15476  at the beginning of a chapter/section.
15477  Memoir features a second optional argument and thus separates the table
15478  of contents from the header.
15479  You can define three variants of a title with this: one for the main text,
15480  one for the table of contents, and one for the headers.
15481  Simply insert two optional arguments if you need this feature, the first
15482  one containing the short title for the Table of Contents, the second one
15483  containing an alternative short title for the headers.
15484 \end_layout
15485
15486 \begin_layout Description
15487 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15488  of contents, the list of figures and the list of table start a new page
15489  automatically.
15490  Memoir does not follow this route.
15491  You have to insert a page break yourself, if you want to have one.
15492 \end_layout
15493
15494 \begin_layout Description
15495 Titlepage: For some unknown reason, Memoir uses pagination on the title
15496  page (in the standard classes, title pages are 
15497 \begin_inset Quotes eld
15498 \end_inset
15499
15500 empty
15501 \begin_inset Quotes erd
15502 \end_inset
15503
15504 ).
15505  If you want an empty title page, type 
15506 \family typewriter
15507
15508 \backslash
15509 aliaspagestyle{title}{empty}
15510 \family default
15511  in the preamble.
15512 \end_layout
15513
15514 \begin_layout Description
15515 Article: With the class option 
15516 \emph on
15517 article
15518 \emph default
15519  (to be inserted in 
15520 \family sans
15521 Layout\SpecialChar menuseparator
15522 Document\SpecialChar menuseparator
15523 Extra
15524 \begin_inset space ~
15525 \end_inset
15526
15527 Options
15528 \family default
15529 ), you can emulate article style.
15530  That is, counters (footnotes, figures, tables etc.) will not be reset on
15531  new chapters, chapters don't start a new page (but are—in contrary to 
15532 \begin_inset Quotes eld
15533 \end_inset
15534
15535 real
15536 \begin_inset Quotes erd
15537 \end_inset
15538
15539  article classes—still allowed), parts, though, use their own page, as in
15540  book.
15541 \end_layout
15542
15543 \begin_layout Description
15544 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15545  font commands, which have been used in the old \SpecialChar LaTeX
15546  version 2.09 (e.
15547 \begin_inset space \thinspace{}
15548 \end_inset
15549
15550 g.
15551 \begin_inset space \space{}
15552 \end_inset
15553
15554
15555 \family typewriter
15556
15557 \backslash
15558 rm
15559 \family default
15560
15561 \family typewriter
15562
15563 \backslash
15564 it
15565 \family default
15566 ).
15567  It produces an error and stops \SpecialChar LaTeX
15568  whenever such a command appears.
15569  The class option 
15570 \emph on
15571 oldfontcommands
15572 \emph default
15573  reallows the commands and spits out warnings instead (which does at least
15574  not stop \SpecialChar LaTeX
15575 ).
15576  Since a lot of packages and particularly Bib\SpecialChar TeX
15577  style files are still using
15578  those commands, we have decided to use this option by default.
15579 \end_layout
15580
15581 \begin_layout Subsection
15582 Extra features
15583 \end_layout
15584
15585 \begin_layout Standard
15586 We will only describe the features supported by \SpecialChar LyX
15587  (which is not much currently).
15588  Please consult the Memoir manual
15589 \begin_inset Foot
15590 status collapsed
15591
15592 \begin_layout Plain Layout
15593 Cf.
15594 \begin_inset ERT
15595 status collapsed
15596
15597 \begin_layout Plain Layout
15598
15599
15600 \backslash
15601  
15602 \end_layout
15603
15604 \end_inset
15605
15606
15607 \begin_inset Flex URL
15608 status collapsed
15609
15610 \begin_layout Plain Layout
15611
15612 CTAN:/macros/latex/memoir/memman.pdf
15613 \end_layout
15614
15615 \end_inset
15616
15617 .
15618 \end_layout
15619
15620 \end_inset
15621
15622  for details.
15623 \end_layout
15624
15625 \begin_layout Description
15626 Abstract: You may wonder why an abstract is an extra feature.
15627  Well, it is in book class.
15628  Usually books don't have abstracts.
15629  Memoir, however, has.
15630  You can use it wherever and how often you like.
15631 \end_layout
15632
15633 \begin_layout Description
15634 Chapterprecis: You may know this older typesetting style: The contents of
15635  a chapter are summarized below the title and also in the table of contents
15636  (e.
15637 \begin_inset space \thinspace{}
15638 \end_inset
15639
15640 g.
15641 \begin_inset space \space{}
15642 \end_inset
15643
15644
15645 \emph on
15646 Our hero arrives in Troia; he loses some friends; he finds others
15647 \emph default
15648 ).
15649  Chapterprecis does exactly this.
15650  It is therefore only sensible below a chapter.
15651 \end_layout
15652
15653 \begin_layout Description
15654 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15655  The epigraph environment provides an elegant way of typesetting such a
15656  motto.
15657  The motto itself (text) and its author (source) are divided by a short
15658  line.
15659  Unfortunately, we have to fool \SpecialChar LyX
15660  a bit here again, since the environment
15661  needs two arguments (text and source).
15662  In this case, we have to use curly brackets (in \SpecialChar TeX
15663  mode) between the two
15664  arguments: 
15665 \emph on
15666 <smart slogan>
15667 \emph default
15668  
15669 \family typewriter
15670 }{
15671 \family default
15672  
15673 \emph on
15674 <author of the slogan>.
15675 \end_layout
15676
15677 \begin_layout Description
15678 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15679  complex figurative poems).
15680  \SpecialChar LyX
15681  can only support a few of them.
15682  One is poemtitle, which is a centered title for poems, which will also
15683  be added to the table of contents (verse is the standard environment for
15684  poems.
15685  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15686  code,
15687  because they have to be nested inside regular verse environments, which
15688  is not possible with \SpecialChar LyX
15689 ).
15690 \end_layout
15691
15692 \begin_layout Description
15693 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15694 \end_layout
15695
15696 \begin_layout Section
15697 Article (mwart), book (mwbk) and report (mwrep)
15698 \begin_inset Argument status
15699 status collapsed
15700
15701 \begin_layout Plain Layout
15702 The 
15703 \family typewriter
15704 mw
15705 \family default
15706  Classes
15707 \end_layout
15708
15709 \end_inset
15710
15711
15712 \end_layout
15713
15714 \begin_layout Standard
15715 by 
15716 \noun on
15717 Tomasz Luczak
15718 \end_layout
15719
15720 \begin_layout Standard
15721 The \SpecialChar LyX
15722  document classes 
15723 \emph on
15724 article (mwart)
15725 \emph default
15726
15727 \emph on
15728 report (mwrep)
15729 \emph default
15730  and 
15731 \emph on
15732 book
15733 \emph default
15734  
15735 \emph on
15736 (mwbk)
15737 \emph default
15738  correspond to the \SpecialChar LaTeX
15739  document classes 
15740 \family typewriter
15741 mwart.cls
15742 \family default
15743
15744 \family typewriter
15745 mwrep.cls
15746 \family default
15747  and 
15748 \family typewriter
15749 mwbk.cls
15750 \family default
15751 , resp.
15752  They are replacements for the standard document classes 
15753 \family typewriter
15754 article.cls
15755 \family default
15756
15757 \family typewriter
15758 report.cls
15759 \family default
15760  and 
15761 \family typewriter
15762 book.cls
15763 \family default
15764 , resp., and fit better to Polish typography conventions in a number of points.
15765  
15766 \end_layout
15767
15768 \begin_layout Standard
15769 Basic differences:
15770 \end_layout
15771
15772 \begin_layout Itemize
15773 Unnumbered titles (with star, e.
15774 \begin_inset space \thinspace{}
15775 \end_inset
15776
15777 g.
15778 \begin_inset space \space{}
15779 \end_inset
15780
15781
15782 \family sans
15783 Section*
15784 \family default
15785 ) are added into table of contents,
15786 \end_layout
15787
15788 \begin_layout Itemize
15789 Additional page styles:
15790 \begin_inset Separator parbreak
15791 \end_inset
15792
15793
15794 \end_layout
15795
15796 \begin_deeper
15797 \begin_layout Description
15798 uheadings header with separated lines,
15799 \end_layout
15800
15801 \begin_layout Description
15802 myheadings custom header, contents headers via commands: 
15803 \family typewriter
15804
15805 \backslash
15806 markright
15807 \family default
15808  and 
15809 \family typewriter
15810
15811 \backslash
15812 markboth
15813 \family default
15814 ,
15815 \end_layout
15816
15817 \begin_layout Description
15818 myuheadings custom header with separated lines,
15819 \end_layout
15820
15821 \begin_layout Description
15822 outer page number is placed on outer side of page
15823 \end_layout
15824
15825 \end_deeper
15826 \begin_layout Itemize
15827 Options 
15828 \begin_inset Separator parbreak
15829 \end_inset
15830
15831
15832 \end_layout
15833
15834 \begin_deeper
15835 \begin_layout Description
15836 rmheadings serif titles — default,
15837 \end_layout
15838
15839 \begin_layout Description
15840 sfheadings sansserif titles,
15841 \end_layout
15842
15843 \begin_layout Description
15844 authortitle on title page first placed is author next title — default,
15845 \end_layout
15846
15847 \begin_layout Description
15848 titleauthor on title page first placed is title next author,
15849 \end_layout
15850
15851 \begin_layout Description
15852 withmarginpar reserve place on page for margins.
15853 \end_layout
15854
15855 \end_deeper
15856 \begin_layout Section
15857 Paper
15858 \end_layout
15859
15860 \begin_layout Standard
15861 The document class 
15862 \family sans
15863 paper
15864 \family default
15865  provides an alternative to the standard 
15866 \family sans
15867 article
15868 \family default
15869  class.
15870  It provides similar functionality, but you might prefer this layout with
15871  sans serif sections, headings, and more.
15872 \end_layout
15873
15874 \begin_layout Section
15875 Rev\SpecialChar TeX
15876 4
15877 \end_layout
15878
15879 \begin_layout Standard
15880 by 
15881 \noun on
15882 Amir Karger
15883 \end_layout
15884
15885 \begin_layout Standard
15886 \begin_inset VSpace bigskip
15887 \end_inset
15888
15889
15890 \end_layout
15891
15892 \begin_layout Standard
15893 \noindent
15894 The 
15895 \family sans
15896 Revtex
15897 \begin_inset space ~
15898 \end_inset
15899
15900 4
15901 \family default
15902  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
15903  4.0 (the 
15904 \begin_inset Formula $\beta$
15905 \end_inset
15906
15907  release of May, 1999) class.
15908 \end_layout
15909
15910 \begin_layout Standard
15911 \SpecialChar LyX
15912  has a 
15913 \family sans
15914 Revtex
15915 \family default
15916  textclass, which works with Rev\SpecialChar TeX
15917  3.1.
15918  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
15919  2.09.
15920  That means that it doesn't interact very well with \SpecialChar LyX
15921 , which requires \SpecialChar LaTeX2e
15922 , although
15923  it has been kludged to work.
15924  Since Rev\SpecialChar TeX
15925  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
15926 , \SpecialChar LyX
15927  with the
15928  
15929 \family sans
15930 Rev\SpecialChar TeX
15931
15932 \begin_inset space ~
15933 \end_inset
15934
15935 4
15936 \family default
15937  textclass should also be pretty easy to use.
15938 \end_layout
15939
15940 \begin_layout Standard
15941 These documents are supposed to be used in 
15942 \emph on
15943 addition
15944 \emph default
15945  to the Rev\SpecialChar TeX
15946  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
15947  macros,
15948  and assume you'll know what to put in the preamble if necessary.
15949 \end_layout
15950
15951 \begin_layout Subsection
15952 Installation
15953 \end_layout
15954
15955 \begin_layout Standard
15956 All you need to do is install Rev\SpecialChar TeX
15957  4, as described in the package's README
15958  file.
15959  The package can be found at The Rev\SpecialChar TeX
15960  4 Web Site 
15961 \begin_inset Flex URL
15962 status collapsed
15963
15964 \begin_layout Plain Layout
15965
15966 http://publish.aps.org/revtex4/
15967 \end_layout
15968
15969 \end_inset
15970
15971 .
15972  Install it somewhere that \SpecialChar LaTeX
15973  can see it.
15974  Test it by trying to \SpecialChar LaTeX
15975  a short Rev\SpecialChar TeX
15976  4 document in some random directory (i.
15977 \begin_inset space \thinspace{}
15978 \end_inset
15979
15980 e.
15981 \begin_inset space \space{}
15982 \end_inset
15983
15984 not the directory where you installed the class file.) Then, if you reconfigure
15985  \SpecialChar LyX
15986 , it will find the class file and let you use the Rev\SpecialChar TeX
15987 4 textclass.
15988 \end_layout
15989
15990 \begin_layout Standard
15991 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
15992  4 document
15993  using 
15994 \family typewriter
15995 tex2lyx
15996 \family default
15997 , or to use the 
15998 \family sans
15999 Revtex
16000 \begin_inset space ~
16001 \end_inset
16002
16003 4
16004 \family default
16005  template, found in the templates directory.
16006 \end_layout
16007
16008 \begin_layout Subsection
16009 Preamble Matter
16010 \end_layout
16011
16012 \begin_layout Standard
16013 Optional arguments to 
16014 \family typewriter
16015
16016 \backslash
16017 documentclass
16018 \family default
16019 , like 
16020 \begin_inset Quotes eld
16021 \end_inset
16022
16023 preprint
16024 \begin_inset Quotes erd
16025 \end_inset
16026
16027  and 
16028 \begin_inset Quotes eld
16029 \end_inset
16030
16031 aps
16032 \begin_inset Quotes erd
16033 \end_inset
16034
16035 , go in the 
16036 \family sans
16037 E
16038 \bar under
16039 x
16040 \bar default
16041 tra
16042 \begin_inset space ~
16043 \end_inset
16044
16045 Options
16046 \family default
16047  field in the 
16048 \family sans
16049 Document
16050 \begin_inset space ~
16051 \end_inset
16052
16053 Layout
16054 \family default
16055  dialog, as usual.
16056  Remember that in Rev\SpecialChar TeX
16057 , at least one optional argument is required! 
16058 \end_layout
16059
16060 \begin_layout Standard
16061 Other preamble matter, like 
16062 \family typewriter
16063
16064 \backslash
16065 draft
16066 \family default
16067  etc.
16068 \begin_inset space ~
16069 \end_inset
16070
16071 goes in the 
16072 \family sans
16073 \SpecialChar LaTeX
16074
16075 \begin_inset space ~
16076 \end_inset
16077
16078 Preamble
16079 \family default
16080  dialog, also as usual.
16081 \end_layout
16082
16083 \begin_layout Subsection
16084 Layouts
16085 \end_layout
16086
16087 \begin_layout Standard
16088 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16089 4.0.
16090  For example, the Email layout corresponds to 
16091 \family typewriter
16092
16093 \backslash
16094 email{}
16095 \family default
16096 .
16097  Note that (at least as of Rev\SpecialChar TeX
16098  4.0 Beta), the 
16099 \family sans
16100 Address
16101 \family default
16102  and 
16103 \family sans
16104 Affiliation
16105 \family default
16106  layouts are exactly equivalent, so you shouldn't need to use both.
16107 \begin_inset Foot
16108 status collapsed
16109
16110 \begin_layout Plain Layout
16111 In case you're curious, both were included so that 
16112 \family typewriter
16113 tex2lyx
16114 \family default
16115  would be able to translate both 
16116 \family typewriter
16117
16118 \backslash
16119 address
16120 \family default
16121  and 
16122 \family typewriter
16123
16124 \backslash
16125 affiliation
16126 \family default
16127 .
16128 \end_layout
16129
16130 \end_inset
16131
16132
16133 \end_layout
16134
16135 \begin_layout Subsection
16136 Important Notes
16137 \end_layout
16138
16139 \begin_layout Standard
16140 There are a couple of important unique aspects of Rev\SpecialChar TeX
16141  4 which might cause
16142  bugs that will be even more confusing in \SpecialChar LyX
16143 .
16144 \end_layout
16145
16146 \begin_layout Standard
16147 In Rev\SpecialChar TeX
16148 , the 
16149 \family typewriter
16150
16151 \backslash
16152 thanks
16153 \family default
16154  command goes 
16155 \emph on
16156 outside
16157 \emph default
16158  the 
16159 \family typewriter
16160
16161 \backslash
16162 author
16163 \family default
16164  command.
16165  The \SpecialChar LyX
16166  equivalent is that there is a separate Thanks layout.
16167  Do 
16168 \emph on
16169 not
16170 \emph default
16171  write footnotes in the 
16172 \family sans
16173 Author
16174 \family default
16175  layout, or weird things may happen.
16176  See the Rev\SpecialChar TeX
16177  4 documentation for more details.
16178 \end_layout
16179
16180 \begin_layout Standard
16181 Also, the 
16182 \family sans
16183 Author
16184 \begin_inset space ~
16185 \end_inset
16186
16187 Email
16188 \family default
16189
16190 \family sans
16191 Author
16192 \begin_inset space ~
16193 \end_inset
16194
16195 URL
16196 \family default
16197 , and 
16198 \family sans
16199 Thanks
16200 \family default
16201  layouts must be placed 
16202 \emph on
16203 in between
16204 \emph default
16205  the 
16206 \family sans
16207 Author
16208 \family default
16209  layout and the corresponding 
16210 \family sans
16211 Address
16212 \family default
16213  (or equivalent 
16214 \family sans
16215 Affiliation
16216 \family default
16217 ) layout.
16218  If you put the 
16219 \family sans
16220 Thanks
16221 \family default
16222  after the 
16223 \family sans
16224 Address
16225 \family default
16226 , the \SpecialChar LaTeX
16227  won't compile.
16228 \end_layout
16229
16230 \begin_layout Subsection
16231 Drawbacks
16232 \end_layout
16233
16234 \begin_layout Standard
16235 The main problem with this layout is that you can't use the optional arguments
16236  to layouts like Email and Title.
16237  (The problem is not unique to this layout; you can't use optional arguments
16238  to the Section layouts either.) This means that after you export that file
16239  to \SpecialChar LaTeX
16240  (which you'll need to do eventually to send it in to APS), you'll need
16241  to edit the \SpecialChar LaTeX
16242  file with a text editor to add the optional arguments to set,
16243  e.
16244 \begin_inset space \thinspace{}
16245 \end_inset
16246
16247 g.
16248 \begin_inset space \space{}
16249 \end_inset
16250
16251 the running title for the page headers.
16252  Lacking these layouts makes the 
16253 \family typewriter
16254
16255 \backslash
16256 altaffiliation
16257 \family default
16258  (and the equivalent 
16259 \family typewriter
16260
16261 \backslash
16262 altaddress
16263 \family default
16264 ) useless, so the corresponding layouts don't exist, and will have to be
16265  added by hand.
16266 \begin_inset Foot
16267 status collapsed
16268
16269 \begin_layout Plain Layout
16270
16271 \emph on
16272 Note from JMarc:
16273 \emph default
16274  actually, \SpecialChar LyX
16275  1.3.0 supports some forms of optional arguments, but this layout
16276  has not been updated yet to take advantage of it.
16277 \end_layout
16278
16279 \end_inset
16280
16281  
16282 \end_layout
16283
16284 \begin_layout Section
16285 Springer Journals (
16286 \family sans
16287 svjour
16288 \family default
16289 )
16290 \end_layout
16291
16292 \begin_layout Standard
16293 by 
16294 \noun on
16295 Martin Vermeer
16296 \end_layout
16297
16298 \begin_layout Subsection
16299 Description
16300 \end_layout
16301
16302 \begin_layout Standard
16303 These are the layout files for some of the journal formats used by Springer
16304  Verlag and listed on 
16305 \begin_inset Flex URL
16306 status collapsed
16307
16308 \begin_layout Plain Layout
16309
16310 http://www.springer.de/author/tex/help-journals.html
16311 \end_layout
16312
16313 \end_inset
16314
16315 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16316  now!).
16317  It is a modular system: the things common to all journals are implemented
16318  in 
16319 \family typewriter
16320 svjour.inc
16321 \family default
16322 , which journal-specific layout files (such as, e.
16323 \begin_inset space \thinspace{}
16324 \end_inset
16325
16326 g.
16327 \begin_inset space \space{}
16328 \end_inset
16329
16330
16331 \family typewriter
16332 svjog.layout
16333 \family default
16334  for Journal of Geodesy) can include.
16335 \end_layout
16336
16337 \begin_layout Standard
16338 This means that implementing support for any other Springer journal on this
16339  list is as simple as writing your own 
16340 \family typewriter
16341 sv
16342 \family default
16343 <myjournal>
16344 \family typewriter
16345 .layout
16346 \family default
16347  file following the outline given in 
16348 \family typewriter
16349 svjog.layout
16350 \family default
16351 .
16352  
16353 \end_layout
16354
16355 \begin_layout Standard
16356 It is reasonably well tested only for the Journal of Geodesy.
16357  
16358 \family typewriter
16359 svjour
16360 \family default
16361  and 
16362 \family typewriter
16363 svjog
16364 \family default
16365  come with the standard \SpecialChar LyX
16366  distribution.
16367  Install the relevant class file (downloaded from Springer) in a proper
16368  directory, reconfigure \SpecialChar LaTeX
16369  (in the te\SpecialChar TeX
16370  case by running 
16371 \family typewriter
16372 texhash
16373 \family default
16374 , as root if necessary — doesn't \SpecialChar LyX
16375  take care of this?), reconfigure \SpecialChar LyX
16376  and
16377  it should work.
16378 \end_layout
16379
16380 \begin_layout Subsection
16381 New styles
16382 \end_layout
16383
16384 \begin_layout Standard
16385 A large number of theorem-like styles — 
16386 \family sans
16387 Claim, Conjecture,
16388 \family default
16389  
16390 \family sans
16391 \SpecialChar ldots
16392 Theorem
16393 \family default
16394 .
16395 \end_layout
16396
16397 \begin_layout Standard
16398
16399 \family sans
16400 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16401 _Title, Author_Running, Institute,
16402  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16403 \family default
16404 .
16405  See the Springer class file documentation for details.
16406 \end_layout
16407
16408 \begin_layout Subsection
16409 Supported journals
16410 \end_layout
16411
16412 \begin_layout Itemize
16413
16414 \emph on
16415 Journal of Geodesy
16416 \emph default
16417
16418 \family typewriter
16419 svjog.layout
16420 \family default
16421  — Martin Vermeer
16422 \end_layout
16423
16424 \begin_layout Itemize
16425
16426 \emph on
16427 Probability Theory and Related Fields
16428 \emph default
16429
16430 \family typewriter
16431 svprobth.layout
16432 \family default
16433  — Jean-Marc Lasgouttes
16434 \end_layout
16435
16436 \begin_layout Standard
16437 Add your own, it isn't so hard!
16438 \end_layout
16439
16440 \begin_layout Subsection
16441 Credits
16442 \end_layout
16443
16444 \begin_layout Standard
16445 These files are partly based on the older 
16446 \family typewriter
16447 ejour2.layout
16448 \family default
16449 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16450  2.09 style
16451  file from Springer.
16452  All this, and the 
16453 \family typewriter
16454 ejour2
16455 \family default
16456  layout, are now defunct.
16457  Jean-Marc Lasgouttes helped out big in making me find my way around the
16458  \SpecialChar LyX
16459  layout file mechanism.
16460 \end_layout
16461
16462 \begin_layout Subsection
16463 Bugs
16464 \end_layout
16465
16466 \begin_layout Standard
16467 Probably.
16468  But probably less than in the old hacked-\SpecialChar LaTeX
16469  
16470 \family typewriter
16471 ejour2
16472 \family default
16473 .
16474 \end_layout
16475
16476 \begin_layout Standard
16477 Limitations e.
16478 \begin_inset space \thinspace{}
16479 \end_inset
16480
16481 g.: does not display the number for theorem-like layouts, just #.
16482 \end_layout
16483
16484 \begin_layout Section
16485 Slides [aka 
16486 \noun on
16487 Sli\SpecialChar TeX
16488
16489 \noun default
16490 ]
16491 \begin_inset CommandInset label
16492 LatexCommand label
16493 name "sec:slitex"
16494
16495 \end_inset
16496
16497
16498 \end_layout
16499
16500 \begin_layout Standard
16501 by 
16502 \noun on
16503 John Weiss
16504 \noun default
16505  
16506 \end_layout
16507
16508 \begin_layout Subsection
16509 Introduction
16510 \end_layout
16511
16512 \begin_layout Standard
16513 This section describes how to use \SpecialChar LyX
16514  to make slides for overhead projectors.
16515  There are two document classes that can do this: the default slides class
16516  and the 
16517 \family sans
16518 Foil\SpecialChar TeX
16519
16520 \family default
16521  slides class.
16522  This section documents the former.
16523 \end_layout
16524
16525 \begin_layout Standard
16526 I'm going to say this again, nice and clear, so that there's no misunderstanding
16527 :
16528 \end_layout
16529
16530 \begin_layout Standard
16531 \begin_inset VSpace bigskip
16532 \end_inset
16533
16534
16535 \end_layout
16536
16537 \begin_layout Standard
16538 \align center
16539
16540 \size large
16541 This section documents the class 
16542 \begin_inset Quotes eld
16543 \end_inset
16544
16545
16546 \family sans
16547 slides (default)
16548 \family default
16549
16550 \begin_inset Quotes erd
16551 \end_inset
16552
16553  
16554 \emph on
16555 only.
16556 \end_layout
16557
16558 \begin_layout Standard
16559 \begin_inset VSpace bigskip
16560 \end_inset
16561
16562
16563 \end_layout
16564
16565 \begin_layout Standard
16566 If you're looking for the documentation for 
16567 \begin_inset Quotes eld
16568 \end_inset
16569
16570
16571 \family sans
16572 slides (Foil\SpecialChar TeX
16573 )
16574 \family default
16575
16576 \begin_inset Quotes erd
16577 \end_inset
16578
16579 , check out section
16580 \begin_inset space ~
16581 \end_inset
16582
16583
16584 \begin_inset CommandInset ref
16585 LatexCommand ref
16586 reference "sec:foiltex"
16587
16588 \end_inset
16589
16590 .
16591  The 
16592 \family sans
16593 foils
16594 \family default
16595  class [
16596 \begin_inset Quotes eld
16597 \end_inset
16598
16599
16600 \family sans
16601 slides (Foil\SpecialChar TeX
16602 )
16603 \family default
16604
16605 \begin_inset Quotes erd
16606 \end_inset
16607
16608 ] is actually somewhat better than the default 
16609 \family sans
16610 slides
16611 \family default
16612  class,
16613 \begin_inset Foot
16614 status collapsed
16615
16616 \begin_layout Plain Layout
16617 \SpecialChar ldots
16618 or so I've been told repeatedly by its advocates.
16619  Having never used it, I have no idea if this claim is true or not.
16620 \end_layout
16621
16622 \end_inset
16623
16624  which this section documents.
16625 \end_layout
16626
16627 \begin_layout Standard
16628 This class is the \SpecialChar LaTeX2e
16629  improvement of the old 
16630 \noun on
16631 Sli\SpecialChar TeX
16632
16633 \noun default
16634  package.
16635  Every \SpecialChar LaTeX2e
16636  distribution includes this class [which I'll just refer to as 
16637 \begin_inset Quotes eld
16638 \end_inset
16639
16640
16641 \family sans
16642 slides
16643 \family default
16644
16645 \begin_inset Quotes erd
16646 \end_inset
16647
16648  from now on], so you're bound to have it.
16649  As I noted earlier, there are other classes, such as 
16650 \family sans
16651 foils
16652 \family default
16653 , which also produce slides for overhead projectors and do a better job
16654  at it.
16655  However, there are some things which 
16656 \family sans
16657 slides
16658 \family default
16659  can do which the others can't, such as generate overlays.
16660  Read on to learn more!
16661 \end_layout
16662
16663 \begin_layout Subsection
16664 Getting Started
16665 \begin_inset CommandInset label
16666 LatexCommand label
16667 name "sec:slidesetup"
16668
16669 \end_inset
16670
16671
16672 \end_layout
16673
16674 \begin_layout Standard
16675 Obviously, to use this document class, you need to select 
16676 \begin_inset Quotes eld
16677 \end_inset
16678
16679
16680 \family sans
16681 slides (default)
16682 \family default
16683
16684 \begin_inset Quotes erd
16685 \end_inset
16686
16687  from the class list in the 
16688 \family sans
16689 Document\SpecialChar menuseparator
16690 Settings
16691 \family default
16692  dialog.
16693  There are some other special things you should know about this class:
16694 \end_layout
16695
16696 \begin_layout Itemize
16697 Don't bother changing the options 
16698 \family sans
16699 Sides and Columns
16700 \family default
16701 .
16702  They're not supported by the 
16703 \family sans
16704 slides
16705 \family default
16706  class, anyways.
16707 \end_layout
16708
16709 \begin_layout Itemize
16710 The option 
16711 \family sans
16712 Page
16713 \begin_inset space ~
16714 \end_inset
16715
16716 style
16717 \family default
16718  behaves a bit differently for this class.
16719  The possible choices and what they do are as follows:
16720 \begin_inset Separator parbreak
16721 \end_inset
16722
16723
16724 \end_layout
16725
16726 \begin_deeper
16727 \begin_layout Description
16728
16729 \family sans
16730 plain
16731 \family default
16732  The final output contains page numbers in the lower right corner.
16733 \end_layout
16734
16735 \begin_layout Description
16736
16737 \family sans
16738 headings
16739 \family default
16740  Like 
16741 \family sans
16742 plain
16743 \family default
16744 , but also prints out any time markers you've put in.
16745  This is the default.
16746 \end_layout
16747
16748 \begin_layout Description
16749
16750 \family sans
16751 empty
16752 \family default
16753  The final output contains no page numbers, time markers, or alignment markers.
16754 \end_layout
16755
16756 \end_deeper
16757 \begin_layout Itemize
16758 The 
16759 \family sans
16760 slides
16761 \family default
16762  class has an extra option: 
16763 \family typewriter
16764 clock
16765 \family default
16766 .
16767  To use it, put 
16768 \begin_inset Quotes eld
16769 \end_inset
16770
16771
16772 \family typewriter
16773 clock
16774 \family default
16775
16776 \begin_inset Quotes erd
16777 \end_inset
16778
16779  in the extra class options.
16780 \begin_inset Separator parbreak
16781 \end_inset
16782
16783
16784 \end_layout
16785
16786 \begin_deeper
16787 \begin_layout Standard
16788 Using this options allows you to add time markers to 
16789 \family sans
16790 Note
16791 \family default
16792 s.
16793  See section
16794 \begin_inset space ~
16795 \end_inset
16796
16797
16798 \begin_inset CommandInset ref
16799 LatexCommand ref
16800 reference "sec:slideNote"
16801
16802 \end_inset
16803
16804  for more details.
16805 \end_layout
16806
16807 \end_deeper
16808 \begin_layout Standard
16809 You can also use the template file 
16810 \begin_inset Quotes eld
16811 \end_inset
16812
16813
16814 \family typewriter
16815 slides.lyx
16816 \family default
16817
16818 \begin_inset Quotes erd
16819 \end_inset
16820
16821  to automatically set up a document to use the 
16822 \family sans
16823 slides
16824 \family default
16825  class [using 
16826 \family sans
16827 File\SpecialChar menuseparator
16828 New
16829 \begin_inset space ~
16830 \end_inset
16831
16832 from
16833 \begin_inset space ~
16834 \end_inset
16835
16836 Template
16837 \family default
16838  to open your new document].
16839  The template file also contains some examples of the special paragraph
16840  environments used by this class.
16841  I'll describe those next.
16842 \end_layout
16843
16844 \begin_layout Subsection
16845 Paragraph Environments
16846 \end_layout
16847
16848 \begin_layout Subsubsection
16849 Supported Environments
16850 \end_layout
16851
16852 \begin_layout Standard
16853 The first thing you'll notice when you start up a new 
16854 \family sans
16855 slides
16856 \family default
16857  document is the font size and type: it's the equivalent of the size 
16858 \begin_inset Quotes eld
16859 \end_inset
16860
16861
16862 \family sans
16863 Largest
16864 \family default
16865
16866 \begin_inset Quotes erd
16867 \end_inset
16868
16869  in the 
16870 \family sans
16871 Sans
16872 \begin_inset space ~
16873 \end_inset
16874
16875 Serif
16876 \family default
16877  font.
16878  This is also what's used in the output.
16879  Think of this as a 
16880 \begin_inset Quotes eld
16881 \end_inset
16882
16883 visual cue
16884 \begin_inset Quotes erd
16885 \end_inset
16886
16887  to remind you that this is a slide.
16888  Your final slides will use a larger font; ergo, you'll have less space.
16889  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
16890 \end_layout
16891
16892 \begin_layout Standard
16893 The next thing that becomes obvious is the changes to the paragraph environment
16894  pull-down box [at the far-left end of the toolbar].
16895  Most of the paragraph environments you're used to seeing are missing.
16896  There are also five new ones.
16897  That's because the 
16898 \family sans
16899 slides
16900 \family default
16901  class itself only supports certain paragraph environments:
16902 \end_layout
16903
16904 \begin_layout Itemize
16905
16906 \family sans
16907 Standard
16908 \end_layout
16909
16910 \begin_layout Itemize
16911
16912 \family sans
16913 Itemize
16914 \end_layout
16915
16916 \begin_layout Itemize
16917
16918 \family sans
16919 Enumerate
16920 \end_layout
16921
16922 \begin_layout Itemize
16923
16924 \family sans
16925 Description
16926 \end_layout
16927
16928 \begin_layout Itemize
16929
16930 \family sans
16931 List
16932 \end_layout
16933
16934 \begin_layout Itemize
16935
16936 \family sans
16937 Quotation
16938 \end_layout
16939
16940 \begin_layout Itemize
16941
16942 \family sans
16943 Quote
16944 \end_layout
16945
16946 \begin_layout Itemize
16947
16948 \family sans
16949 Verse
16950 \end_layout
16951
16952 \begin_layout Itemize
16953
16954 \family sans
16955 Caption
16956 \end_layout
16957
16958 \begin_layout Itemize
16959
16960 \family sans
16961 \SpecialChar LyX
16962 -Code
16963 \end_layout
16964
16965 \begin_layout Itemize
16966
16967 \family sans
16968 Comment
16969 \end_layout
16970
16971 \begin_layout Standard
16972 All of the other standard environments, including the section-heading environmen
16973 ts, aren't used in the 
16974 \family sans
16975 slides
16976 \family default
16977  class.
16978 \end_layout
16979
16980 \begin_layout Standard
16981 On the other hand, you'll notice the following new environments:
16982 \end_layout
16983
16984 \begin_layout Itemize
16985
16986 \family sans
16987 Slide
16988 \end_layout
16989
16990 \begin_layout Itemize
16991
16992 \family sans
16993 Overlay
16994 \end_layout
16995
16996 \begin_layout Itemize
16997
16998 \family sans
16999 Note
17000 \end_layout
17001
17002 \begin_layout Itemize
17003
17004 \family sans
17005 InvisibleText
17006 \end_layout
17007
17008 \begin_layout Itemize
17009
17010 \family sans
17011 VisibleText
17012 \end_layout
17013
17014 \begin_layout Standard
17015 These five are kind of quirky, due to a 
17016 \begin_inset Quotes eld
17017 \end_inset
17018
17019 feature
17020 \begin_inset Quotes erd
17021 \end_inset
17022
17023  in \SpecialChar LyX
17024 .
17025  You see, \SpecialChar LyX
17026  doesn't permit you to nest any other paragraph environment into
17027  an empty environment.
17028  Now, that's fine and dandy, but it means that you wouldn't be able to start
17029  a slide with anything except plain text.
17030  To deal with this, I've performed a little 
17031 \begin_inset Quotes eld
17032 \end_inset
17033
17034 \SpecialChar LaTeX
17035  magic.
17036 \begin_inset Quotes erd
17037 \end_inset
17038
17039  
17040 \end_layout
17041
17042 \begin_layout Subsubsection
17043 Quirks of the New Environments
17044 \begin_inset CommandInset label
17045 LatexCommand label
17046 name "sec:slideQuirk"
17047
17048 \end_inset
17049
17050
17051 \end_layout
17052
17053 \begin_layout Standard
17054 All five of the new paragraph environments are somewhat quirky due to inherent
17055  limitiations in the current version of \SpecialChar LyX
17056 .
17057  As I just mentioned, \SpecialChar LyX
17058  forbids environments that begin with another environment.
17059  To get around this, the 
17060 \family sans
17061 Slide
17062 \family default
17063  environment isn't a paragraph environment as described in the 
17064 \emph on
17065 User's Guide
17066 \emph default
17067 .
17068  
17069 \end_layout
17070
17071 \begin_layout Standard
17072 You should consider 
17073 \family sans
17074 Slide
17075 \family default
17076
17077 \family sans
17078 Overlay
17079 \family default
17080 , and 
17081 \family sans
17082 Note
17083 \family default
17084  to be 
17085 \begin_inset Quotes eld
17086 \end_inset
17087
17088 pseudo-environments.
17089 \begin_inset Quotes erd
17090 \end_inset
17091
17092  They look like a section heading or a 
17093 \begin_inset Quotes eld
17094 \end_inset
17095
17096
17097 \family sans
17098 Caption
17099 \family default
17100 ,
17101 \begin_inset Quotes erd
17102 \end_inset
17103
17104  but really begin a [and, if necessary, end the previous] paragraph environment.
17105  Likewise, treat 
17106 \family sans
17107 InvisibleText
17108 \family default
17109  and 
17110 \family sans
17111 VisibleText
17112 \family default
17113  as 
17114 \begin_inset Quotes eld
17115 \end_inset
17116
17117 pseudo-commands.
17118 \begin_inset Quotes erd
17119 \end_inset
17120
17121  These two perform some action.
17122 \end_layout
17123
17124 \begin_layout Standard
17125 A common feature of all five environments, 
17126 \family sans
17127 Slide
17128 \family default
17129
17130 \family sans
17131 Overlay
17132 \family default
17133
17134 \family sans
17135 Note
17136 \family default
17137
17138 \family sans
17139 InvisibleText
17140 \family default
17141  and 
17142 \family sans
17143 VisibleText
17144 \family default
17145 , is a rather long-ish label.
17146  The text following this label — ordinarily the contents of the paragraph
17147  environment — is utterly irrelevant for 
17148 \family sans
17149 Slide
17150 \family default
17151
17152 \family sans
17153 Overlay
17154 \family default
17155
17156 \family sans
17157 Note
17158 \family default
17159
17160 \family sans
17161 InvisibleText
17162 \family default
17163  and 
17164 \family sans
17165 VisibleText
17166 \family default
17167 .
17168  \SpecialChar LyX
17169  completely ignores it.
17170  In fact, you can leave these five environments completely empty.
17171  
17172 \end_layout
17173
17174 \begin_layout Standard
17175 While you don't 
17176 \emph on
17177 have
17178 \emph default
17179  to put any text after the rather long-ish label, you might want to.
17180  This could be a short description of the contents of the 
17181 \family sans
17182 Slide
17183 \family default
17184 , for example.
17185  In that case, enter your descriptive comment and hit 
17186 \family sans
17187 Return
17188 \family default
17189  as you normally would.
17190 \end_layout
17191
17192 \begin_layout Standard
17193 If, on the other hand, you don't want to enter any descriptive text, you'll
17194  hit another \SpecialChar LyX
17195  quirk.
17196  \SpecialChar LyX
17197 , like nature, abhors a vacuum, and will not let you start a new paragraph
17198  environment until you put something in the old one.
17199  So, do this:
17200 \end_layout
17201
17202 \begin_layout Itemize
17203 Start entering the text that will 
17204 \emph on
17205 follow
17206 \emph default
17207  the new 
17208 \family sans
17209 Slide
17210 \family default
17211
17212 \family sans
17213 Overlay
17214 \family default
17215
17216 \family sans
17217 Note
17218 \family default
17219
17220 \family sans
17221 InvisibleText
17222 \family default
17223  or 
17224 \family sans
17225 VisibleText
17226 \family default
17227 .
17228  
17229 \end_layout
17230
17231 \begin_layout Itemize
17232 Now move to the beginning of that paragraph.
17233  
17234 \end_layout
17235
17236 \begin_layout Itemize
17237 Next, hit 
17238 \family sans
17239 Return
17240 \family default
17241 .
17242  
17243 \end_layout
17244
17245 \begin_layout Itemize
17246 Finally, change this new, empty paragraph to a 
17247 \family sans
17248 Slide
17249 \family default
17250
17251 \family sans
17252 Overlay
17253 \family default
17254
17255 \family sans
17256 Note
17257 \family default
17258
17259 \family sans
17260 InvisibleText
17261 \family default
17262  or 
17263 \family sans
17264 VisibleText
17265 \family default
17266 .
17267  
17268 \end_layout
17269
17270 \begin_layout Standard
17271 Some future version of \SpecialChar LyX
17272  will, hopefully, resolve this quirkiness\SpecialChar ldots
17273
17274 \end_layout
17275
17276 \begin_layout Subsection
17277 Making a Presentation with 
17278 \family sans
17279 Slide
17280 \family default
17281
17282 \family sans
17283 Overlay
17284 \family default
17285  and 
17286 \family sans
17287 Note
17288 \end_layout
17289
17290 \begin_layout Subsubsection
17291 Using the 
17292 \family sans
17293 Slide
17294 \family default
17295  Environment
17296 \end_layout
17297
17298 \begin_layout Standard
17299 If you're expecting this section to teach you how to actually make a presentatio
17300 n, you'll be sorely disappointed.
17301  Naturally, I'll describe all of the ways the 
17302 \family sans
17303 slides
17304 \family default
17305  class can assist you in preparing the materials for a presentation.
17306  Filling in the contents, however, is up to you.
17307  [Then again, that 
17308 \emph on
17309 is
17310 \emph default
17311  the \SpecialChar LyX
17312  philosophy.]
17313 \end_layout
17314
17315 \begin_layout Standard
17316 Choosing the 
17317 \family sans
17318 Slide
17319 \family default
17320  environment [in the manner described in section
17321 \begin_inset space ~
17322 \end_inset
17323
17324
17325 \begin_inset CommandInset ref
17326 LatexCommand ref
17327 reference "sec:slideQuirk"
17328
17329 \end_inset
17330
17331 ] tells \SpecialChar LyX
17332  to begin a new slide [duh].
17333  The label for this environment/
17334 \begin_inset Quotes erd
17335 \end_inset
17336
17337 pseudo-command
17338 \begin_inset Quotes erd
17339 \end_inset
17340
17341  is an 
17342 \begin_inset Quotes eld
17343 \end_inset
17344
17345 ASCII line,
17346 \begin_inset Quotes erd
17347 \end_inset
17348
17349  in cool blue, followed by the label, 
17350 \begin_inset Quotes eld
17351 \end_inset
17352
17353 NewSlide:
17354 \begin_inset Quotes erd
17355 \end_inset
17356
17357 .
17358  Any text or paragraph environments that follow this one go on the new slide.
17359  It's that simple.
17360 \end_layout
17361
17362 \begin_layout Standard
17363 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17364
17365  (this can be specified in the 
17366 \family sans
17367 Paragraph Layout
17368 \family default
17369  dialog).
17370  In fact, you'll want to, once you finish entering the contents of one slide.
17371  If you've entered more text than can physically fit on a slide, the extra
17372  overflows onto a new slide.
17373  I don't recommend doing this, however, since the overflow slide won't have
17374  any page number on it.
17375  Furthermore, it may interfere with any 
17376 \family sans
17377 Overlay
17378 \family default
17379  you've made to accompany the oversized 
17380 \family sans
17381 Slide
17382 \family default
17383 .
17384 \end_layout
17385
17386 \begin_layout Standard
17387 The 
17388 \family sans
17389 Overlay
17390 \family default
17391  and 
17392 \family sans
17393 Note
17394 \family default
17395  environments work the same way as the 
17396 \family sans
17397 Slide
17398 \family default
17399  environment.
17400  They both create an 
17401 \begin_inset Quotes eld
17402 \end_inset
17403
17404 ASCII line
17405 \begin_inset Quotes erd
17406 \end_inset
17407
17408  followed by a label [
17409 \begin_inset Quotes eld
17410 \end_inset
17411
17412 NewOverlay:
17413 \begin_inset Quotes erd
17414 \end_inset
17415
17416  and 
17417 \begin_inset Quotes eld
17418 \end_inset
17419
17420 NewNote:
17421 \begin_inset Quotes erd
17422 \end_inset
17423
17424 , respectively].
17425  The color is a stunning magenta instead of blue, and the 
17426 \begin_inset Quotes eld
17427 \end_inset
17428
17429 ASCII line
17430 \begin_inset Quotes erd
17431 \end_inset
17432
17433  will look different, in style and in length.
17434  The label fonts of all three also differ from one another.
17435 \end_layout
17436
17437 \begin_layout Standard
17438 As with a 
17439 \family sans
17440 Slide
17441 \family default
17442 , if the contents of a 
17443 \family sans
17444 Note
17445 \family default
17446  or 
17447 \family sans
17448 Overlay
17449 \family default
17450  exceed the physical size of a slide or sheet of paper, the extra will overflow
17451  onto a new sheet.
17452  Again, you should avoid this.
17453  It defeats the whole purpose of 
17454 \family sans
17455 Note
17456 \family default
17457 s and 
17458 \family sans
17459 Overlay
17460 \family default
17461 s.
17462 \end_layout
17463
17464 \begin_layout Subsubsection
17465 Using 
17466 \family sans
17467 Overlay
17468 \family default
17469  with 
17470 \family sans
17471 Slide
17472 \end_layout
17473
17474 \begin_layout Standard
17475 The idea behind an 
17476 \family sans
17477 Overlay
17478 \family default
17479  is a slide that sits atop another slide.
17480  Perhaps you wish to discuss a figure on the main 
17481 \family sans
17482 Slide
17483 \family default
17484  before displaying the text associated with it.
17485  One way to accomplish this is tape a flap of dark paper over the part of
17486  the 
17487 \family sans
17488 Slide
17489 \family default
17490  you want to display later.
17491  This method fails, however, if you wish to overlap one graph with another,
17492  for example.
17493  You would then have to fumble while speaking to align the two separate,
17494  overlapping 
17495 \family sans
17496 Slide
17497 \family default
17498 s to align the two graphs.
17499  The use of an 
17500 \family sans
17501 Overlay
17502 \family default
17503  environment in both cases makes life much easier.
17504 \end_layout
17505
17506 \begin_layout Standard
17507 Each 
17508 \family sans
17509 Overlay
17510 \family default
17511  receives the page number of its 
17512 \begin_inset Quotes eld
17513 \end_inset
17514
17515 parent
17516 \begin_inset Quotes erd
17517 \end_inset
17518
17519  
17520 \family sans
17521 Slide
17522 \family default
17523 , appended by 
17524 \begin_inset Quotes eld
17525 \end_inset
17526
17527
17528 \family typewriter
17529 -a
17530 \family default
17531
17532 \begin_inset Quotes erd
17533 \end_inset
17534
17535 .
17536 \begin_inset Foot
17537 status collapsed
17538
17539 \begin_layout Plain Layout
17540 Presumably, mutliple 
17541 \family sans
17542 Overlay
17543 \family default
17544 s would have 
17545 \begin_inset Quotes eld
17546 \end_inset
17547
17548
17549 \family typewriter
17550 -a
17551 \family default
17552
17553 \begin_inset Quotes erd
17554 \end_inset
17555
17556
17557 \begin_inset Quotes eld
17558 \end_inset
17559
17560
17561 \family typewriter
17562 -b
17563 \family default
17564
17565 \begin_inset Quotes erd
17566 \end_inset
17567
17568
17569 \begin_inset Quotes eld
17570 \end_inset
17571
17572
17573 \family typewriter
17574 -c
17575 \family default
17576
17577 \begin_inset Quotes erd
17578 \end_inset
17579
17580 , etc.
17581 \begin_inset space ~
17582 \end_inset
17583
17584 appended to the page number of the parent 
17585 \family sans
17586 Slide
17587 \family default
17588 .
17589  
17590 \end_layout
17591
17592 \end_inset
17593
17594  Clearly, you want the contents of both the 
17595 \family sans
17596 Slide
17597 \family default
17598  and the 
17599 \family sans
17600 Overlay
17601 \family default
17602  to each fit on a single physical slide! You should probably consider an
17603  
17604 \family sans
17605 Overlay
17606 \family default
17607  as 
17608 \begin_inset Quotes eld
17609 \end_inset
17610
17611 part of
17612 \begin_inset Quotes erd
17613 \end_inset
17614
17615  a 
17616 \family sans
17617 Slide
17618 \family default
17619 .
17620  Indeed, the \SpecialChar LyX
17621  
17622 \family sans
17623 slides
17624 \family default
17625  class provides a visual cue for this: the label at the start of an 
17626 \family sans
17627 Overlay
17628 \family default
17629  is shorter than that at the start of a 
17630 \family sans
17631 Slide
17632 \family default
17633 .
17634  Lastly, when you generate printable output, you'll find alignment markers
17635  in all four corners of both the 
17636 \family sans
17637 Overlay
17638 \family default
17639  page and its parent 
17640 \family sans
17641 Slide
17642 \family default
17643 .
17644  These will assist you in lining up the two physical slides.
17645 \end_layout
17646
17647 \begin_layout Standard
17648 The major problem in overlaying two slides is aligning the contents of the
17649  two transparencies.
17650  How much space should you leave for that graph on the second slide? Worse
17651  still, what if you want a graph and a sentence on second slide, but there
17652  is text on the main transparency that goes in between them? You could try
17653  and insert vertical space of the right size.
17654  The better way is to use 
17655 \family sans
17656 InvisibleText
17657 \family default
17658  and 
17659 \family sans
17660 VisibleText
17661 \family default
17662 .
17663 \end_layout
17664
17665 \begin_layout Standard
17666 As their names imply, 
17667 \family sans
17668 InvisibleText
17669 \family default
17670  and 
17671 \family sans
17672 VisibleText
17673 \family default
17674  are two command-like paragraph environments that make all subsequent text
17675  invisible and visible, respectively.
17676  Note from section
17677 \begin_inset space ~
17678 \end_inset
17679
17680
17681 \begin_inset CommandInset ref
17682 LatexCommand ref
17683 reference "sec:slideQuirk"
17684
17685 \end_inset
17686
17687  that you don't place anything 
17688 \emph on
17689 into
17690 \emph default
17691  these two environments, however.
17692  When you create an 
17693 \family sans
17694 InvisibleText
17695 \family default
17696 , it inserts a centered, sky-blue label into the page reading 
17697 \begin_inset Quotes eld
17698 \end_inset
17699
17700 <Invisible Text Follows>
17701 \begin_inset Quotes erd
17702 \end_inset
17703
17704 .
17705  For paragraphs following this label, the parts of the 
17706 \family sans
17707 Slide
17708 \family default
17709  [or 
17710 \family sans
17711 Overlay
17712 \family default
17713 ; it doesn't matter which] where they would be contain instead blank space.
17714  
17715 \end_layout
17716
17717 \begin_layout Standard
17718 For 
17719 \family sans
17720 VisibleText
17721 \family default
17722 , the corresponding centered label is 
17723 \begin_inset Quotes eld
17724 \end_inset
17725
17726 <Visible Text Follows>
17727 \begin_inset Quotes erd
17728 \end_inset
17729
17730  in blazing green.
17731  Paragraphs following this label behave normally.
17732  Note that the beginning of a new 
17733 \family sans
17734 Slide
17735 \family default
17736
17737 \family sans
17738 Overlay
17739 \family default
17740 , or 
17741 \family sans
17742 Note
17743 \family default
17744  automatically shuts off an 
17745 \family sans
17746 InvisibleText
17747 \family default
17748 .
17749  It's therefore not necessary to use 
17750 \family sans
17751 VisibleText
17752 \family default
17753  at the end of a 
17754 \family sans
17755 Slide
17756 \family default
17757 .
17758 \end_layout
17759
17760 \begin_layout Standard
17761 By now, it should be obvious how to create overlay transparencies using
17762  the proper combination of 
17763 \family sans
17764 InvisibleText
17765 \family default
17766  and 
17767 \family sans
17768 VisibleText
17769 \family default
17770  on a 
17771 \family sans
17772 Slide
17773 \family default
17774  and 
17775 \family sans
17776 Overlay
17777 \family default
17778 :
17779 \end_layout
17780
17781 \begin_layout Enumerate
17782 Create a 
17783 \family sans
17784 Slide
17785 \family default
17786 , including everything that will appear on it, whether on the main slide
17787  or on the 
17788 \family sans
17789 Overlay
17790 \family default
17791 .
17792 \end_layout
17793
17794 \begin_layout Enumerate
17795 Before each figure or paragraph that will appear only on the 
17796 \family sans
17797 Overlay
17798 \family default
17799 , insert an 
17800 \family sans
17801 InvisibleText
17802 \family default
17803  environment.
17804  If necessary, insert a 
17805 \family sans
17806 VisibleText
17807 \family default
17808  environment after the 
17809 \family sans
17810 Overlay
17811 \family default
17812 -only text.
17813 \end_layout
17814
17815 \begin_layout Enumerate
17816 Start an 
17817 \family sans
17818 Overlay
17819 \family default
17820  immediately following the 
17821 \family sans
17822 Slide
17823 \family default
17824 .
17825 \end_layout
17826
17827 \begin_layout Enumerate
17828 Copy the contents of this 
17829 \family sans
17830 Slide
17831 \family default
17832  into the 
17833 \family sans
17834 Overlay
17835 \family default
17836 .
17837 \end_layout
17838
17839 \begin_layout Enumerate
17840 Within the 
17841 \family sans
17842 Overlay
17843 \family default
17844 , change all of the 
17845 \family sans
17846 InvisibleText
17847 \family default
17848  lines to 
17849 \family sans
17850 VisibleText
17851 \family default
17852  and vice-versa.
17853 \end_layout
17854
17855 \begin_layout Standard
17856 That's it.
17857  You've just made an 
17858 \family sans
17859 Overlay
17860 \family default
17861 .
17862 \end_layout
17863
17864 \begin_layout Standard
17865 There's one problem with the way I've designed the \SpecialChar LyX
17866  
17867 \family sans
17868 slides
17869 \family default
17870  class: you can't make text in the middle of a paragraph invisible, nor
17871  make text in the middle of an invisible paragraph visible again.
17872  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
17873  codes.
17874 \begin_inset Foot
17875 status collapsed
17876
17877 \begin_layout Plain Layout
17878 The commands of interest are: 
17879 \end_layout
17880
17881 \begin_layout Itemize
17882
17883 \family typewriter
17884 {
17885 \backslash
17886 invisible \SpecialChar ldots
17887  }
17888 \end_layout
17889
17890 \begin_layout Itemize
17891
17892 \family typewriter
17893 {
17894 \backslash
17895 visible \SpecialChar ldots
17896  }
17897 \end_layout
17898
17899 \begin_layout Plain Layout
17900 \SpecialChar ldots
17901 and need to be marked as \SpecialChar TeX
17902 .
17903  The text whose 
17904 \begin_inset Quotes eld
17905 \end_inset
17906
17907 visibility
17908 \begin_inset Quotes erd
17909 \end_inset
17910
17911  you wish to change goes in between the brackets [and after the 
17912 \family typewriter
17913
17914 \backslash
17915 invisible
17916 \family default
17917  or 
17918 \family typewriter
17919
17920 \backslash
17921 visible
17922 \family default
17923  command].
17924  If you don't know how to mark text as \SpecialChar TeX
17925 , see the appropriate section of
17926  the 
17927 \emph on
17928 User's Guide
17929 \emph default
17930 .
17931 \end_layout
17932
17933 \end_inset
17934
17935
17936 \end_layout
17937
17938 \begin_layout Subsubsection
17939 Using 
17940 \family sans
17941 Note
17942 \family default
17943  with 
17944 \family sans
17945 Slide
17946 \family default
17947
17948 \begin_inset CommandInset label
17949 LatexCommand label
17950 name "sec:slideNote"
17951
17952 \end_inset
17953
17954
17955 \end_layout
17956
17957 \begin_layout Standard
17958 Like an 
17959 \family sans
17960 Overlay
17961 \family default
17962 , a 
17963 \family sans
17964 Note
17965 \family default
17966  is associated with a 
17967 \begin_inset Quotes eld
17968 \end_inset
17969
17970 parent
17971 \begin_inset Quotes erd
17972 \end_inset
17973
17974  
17975 \family sans
17976 Slide
17977 \family default
17978 .
17979  Here, too, the \SpecialChar LyX
17980  
17981 \family sans
17982 slides
17983 \family default
17984  class provides visual cues.
17985  The label for a 
17986 \family sans
17987 Note
17988 \family default
17989  is shorter than that of a 
17990 \family sans
17991 Slide
17992 \family default
17993  [yet longer than that of an 
17994 \family sans
17995 Overlay
17996 \family default
17997 ] and, like the label of an 
17998 \family sans
17999 Overlay
18000 \family default
18001  is shockingly magenta.
18002  Additionally, the printed 
18003 \family sans
18004 Note
18005 \family default
18006  has the page number of its 
18007 \begin_inset Quotes eld
18008 \end_inset
18009
18010 parent
18011 \begin_inset Quotes erd
18012 \end_inset
18013
18014  
18015 \family sans
18016 Slide
18017 \family default
18018 , appended by 
18019 \begin_inset Quotes eld
18020 \end_inset
18021
18022
18023 \family typewriter
18024 -
18025 \family default
18026 1
18027 \begin_inset Quotes erd
18028 \end_inset
18029
18030
18031 \begin_inset Quotes eld
18032 \end_inset
18033
18034
18035 \family typewriter
18036 -
18037 \family default
18038 2
18039 \begin_inset Quotes erd
18040 \end_inset
18041
18042
18043 \begin_inset Quotes eld
18044 \end_inset
18045
18046
18047 \family typewriter
18048 -
18049 \family default
18050 3
18051 \begin_inset Quotes erd
18052 \end_inset
18053
18054 , etc.
18055  You can have multiple 
18056 \family sans
18057 Note
18058 \family default
18059 s associated with a single 
18060 \family sans
18061 Slide
18062 \family default
18063 , and, as with 
18064 \family sans
18065 Slide
18066 \family default
18067  and 
18068 \family sans
18069 Overlay
18070 \family default
18071 , you'll probably want to break up long 
18072 \family sans
18073 Note
18074 \family default
18075 s so that they fit on a single sheet of paper.
18076 \end_layout
18077
18078 \begin_layout Standard
18079 The purpose of a 
18080 \family sans
18081 Note
18082 \family default
18083  is obvious: it contains anything additional you might want to say about
18084  a 
18085 \family sans
18086 Slide
18087 \family default
18088 .
18089  It could also be used as a sheet of reminders for a particular 
18090 \family sans
18091 Slide
18092 \family default
18093 .
18094  In the case of the latter, you might want to make use of time markers.
18095  Currently, the \SpecialChar LyX
18096  
18097 \family sans
18098 slides
18099 \family default
18100  class has no 
18101 \begin_inset Quotes eld
18102 \end_inset
18103
18104 native
18105 \begin_inset Quotes erd
18106 \end_inset
18107
18108  support for time markers, a 
18109 \noun on
18110 Sli\SpecialChar TeX
18111
18112 \noun default
18113  feature.
18114  So, you'll have to resort to using the \SpecialChar LaTeX
18115  codes.
18116 \end_layout
18117
18118 \begin_layout Standard
18119 To use time markers, you'll need to specify the extra class option 
18120 \begin_inset Quotes eld
18121 \end_inset
18122
18123
18124 \family typewriter
18125 clock
18126 \family default
18127
18128 \begin_inset Quotes erd
18129 \end_inset
18130
18131  [see section
18132 \begin_inset space ~
18133 \end_inset
18134
18135
18136 \begin_inset CommandInset ref
18137 LatexCommand ref
18138 reference "sec:slidesetup"
18139
18140 \end_inset
18141
18142 ].
18143  This option turns on timing marks, which will appear in the lower-left-hand
18144  corner of every 
18145 \family sans
18146 Note
18147 \family default
18148  you generate.
18149  To set what appears in the time marker, you use the \SpecialChar LaTeX
18150  commands 
18151 \begin_inset Quotes eld
18152 \end_inset
18153
18154
18155 \family typewriter
18156
18157 \backslash
18158 settime{}
18159 \family default
18160
18161 \begin_inset Quotes erd
18162 \end_inset
18163
18164  and 
18165 \begin_inset Quotes eld
18166 \end_inset
18167
18168
18169 \family typewriter
18170
18171 \backslash
18172 addtime{}
18173 \family default
18174
18175 \begin_inset Quotes erd
18176 \end_inset
18177
18178 .
18179  The arguments of both commands are time measured in seconds.
18180  
18181 \begin_inset Quotes eld
18182 \end_inset
18183
18184
18185 \family typewriter
18186
18187 \backslash
18188 settime{}
18189 \family default
18190
18191 \begin_inset Quotes erd
18192 \end_inset
18193
18194  sets the time marker to a given time.
18195  
18196 \begin_inset Quotes eld
18197 \end_inset
18198
18199
18200 \family typewriter
18201
18202 \backslash
18203 addtime{}
18204 \family default
18205
18206 \begin_inset Quotes erd
18207 \end_inset
18208
18209  increments the time marker by the specified amount.
18210  Using time markers and 
18211 \family sans
18212 Note
18213 \family default
18214 s in this fashion, you can remind yourself how much time to spend on a particula
18215
18216 \family sans
18217 Slide
18218 \family default
18219 .
18220 \end_layout
18221
18222 \begin_layout Standard
18223 There's one last feature to describe.
18224  Clearly, you'd like to print out all of your 
18225 \family sans
18226 Slide
18227 \family default
18228 s and 
18229 \family sans
18230 Overlay
18231 \family default
18232 s on transparencies while printing all of your 
18233 \family sans
18234 Note
18235 \family default
18236 s on plain paper.
18237  However, a 
18238 \family sans
18239 Note
18240 \family default
18241  
18242 \emph on
18243 must
18244 \emph default
18245  follow the 
18246 \family sans
18247 Slide
18248 \family default
18249  with which it is associated.
18250  What's a person to do?
18251 \end_layout
18252
18253 \begin_layout Standard
18254 Luckily, there are two \SpecialChar LaTeX
18255  commands that allow you to select what to print
18256  out.
18257  Both must be placed into the preamble of your document.
18258  The command 
18259 \begin_inset Quotes eld
18260 \end_inset
18261
18262
18263 \family typewriter
18264
18265 \backslash
18266 onlyslides{
18267 \backslash
18268 slides}
18269 \family default
18270
18271 \begin_inset Quotes erd
18272 \end_inset
18273
18274  will cause the output to contain only the 
18275 \family sans
18276 Slide
18277 \family default
18278 s and 
18279 \family sans
18280 Overlay
18281 \family default
18282 s.
18283  Correspondingly, the command 
18284 \begin_inset Quotes eld
18285 \end_inset
18286
18287
18288 \family typewriter
18289
18290 \backslash
18291 onlynotes{
18292 \backslash
18293 notes}
18294 \family default
18295
18296 \begin_inset Quotes erd
18297 \end_inset
18298
18299  prevents the output of anything but 
18300 \family sans
18301 Note
18302 \family default
18303 s.
18304  I'd advise placing both commands in the preamble and initially comment
18305  both out.
18306  You can then preview your entire presentation as you write.
18307  When you're done writing, you can then uncomment one of the two to select
18308  what you want to print.
18309  I like to uncomment 
18310 \begin_inset Quotes eld
18311 \end_inset
18312
18313
18314 \family typewriter
18315
18316 \backslash
18317 onlyslides{
18318 \backslash
18319 slides}
18320 \family default
18321
18322 \begin_inset Quotes erd
18323 \end_inset
18324
18325  , print to a file with 
18326 \begin_inset Quotes eld
18327 \end_inset
18328
18329
18330 \family typewriter
18331 -slides
18332 \family default
18333
18334 \begin_inset Quotes erd
18335 \end_inset
18336
18337  in its name, comment it back out, then uncomment 
18338 \begin_inset Quotes eld
18339 \end_inset
18340
18341
18342 \family typewriter
18343
18344 \backslash
18345 onlynotes{
18346 \backslash
18347 notes}
18348 \family default
18349
18350 \begin_inset Quotes erd
18351 \end_inset
18352
18353  and print to a 
18354 \begin_inset Quotes eld
18355 \end_inset
18356
18357
18358 \family typewriter
18359 *-notes.ps
18360 \family default
18361
18362 \begin_inset Quotes erd
18363 \end_inset
18364
18365  file.
18366  I can then send either file to a printer, loading transparencies or plain
18367  paper as appropriate.
18368 \end_layout
18369
18370 \begin_layout Standard
18371 You can also provide other arguments to the 
18372 \begin_inset Quotes eld
18373 \end_inset
18374
18375
18376 \family typewriter
18377
18378 \backslash
18379 onlyslides{}
18380 \family default
18381
18382 \begin_inset Quotes erd
18383 \end_inset
18384
18385  and 
18386 \begin_inset Quotes eld
18387 \end_inset
18388
18389
18390 \family typewriter
18391
18392 \backslash
18393 onlynotes{}
18394 \family default
18395
18396 \begin_inset Quotes erd
18397 \end_inset
18398
18399  commands.
18400  See a good \SpecialChar LaTeX
18401  book for details.
18402 \end_layout
18403
18404 \begin_layout Subsection
18405 The 
18406 \family sans
18407 slides
18408 \family default
18409  Class Template File
18410 \end_layout
18411
18412 \begin_layout Standard
18413 I have also provided a template file, 
18414 \begin_inset Quotes eld
18415 \end_inset
18416
18417
18418 \family typewriter
18419 slides.lyx
18420 \family default
18421
18422 \begin_inset Quotes erd
18423 \end_inset
18424
18425 , with the 
18426 \family sans
18427 slides
18428 \family default
18429  class.
18430  To use it, begin your new presentation with 
18431 \family sans
18432 \bar under
18433 F
18434 \bar default
18435 ile\SpecialChar menuseparator
18436 New
18437 \begin_inset space ~
18438 \end_inset
18439
18440 from
18441 \begin_inset space ~
18442 \end_inset
18443
18444
18445 \bar under
18446 T
18447 \bar default
18448 emplate
18449 \family default
18450 .
18451  Your new \SpecialChar LyX
18452  presentation file will contain an example 
18453 \family sans
18454 Slide
18455 \family default
18456  – 
18457 \family sans
18458 Overlay
18459 \family default
18460  – 
18461 \family sans
18462 Note
18463 \family default
18464  triplet.
18465  The 
18466 \family sans
18467 Slide
18468 \family default
18469  and 
18470 \family sans
18471 Overlay
18472 \family default
18473  additionally contain an example of the use of 
18474 \family sans
18475 InvisibleText
18476 \family default
18477  and 
18478 \family sans
18479 VisibleText
18480 \family default
18481 .
18482  Lastly, the preamble will contain:
18483 \end_layout
18484
18485 \begin_layout LyX-Code
18486 % Uncomment to print out only slides and overlays
18487 \end_layout
18488
18489 \begin_layout LyX-Code
18490 %
18491 \end_layout
18492
18493 \begin_layout LyX-Code
18494 %
18495 \backslash
18496 onlyslides{
18497 \backslash
18498 slides}
18499 \begin_inset Newline newline
18500 \end_inset
18501
18502  
18503 \end_layout
18504
18505 \begin_layout LyX-Code
18506 % Uncomment to print out only notes
18507 \end_layout
18508
18509 \begin_layout LyX-Code
18510 %
18511 \end_layout
18512
18513 \begin_layout LyX-Code
18514 %
18515 \backslash
18516 onlynotes{
18517 \backslash
18518 notes}
18519 \end_layout
18520
18521 \begin_layout Standard
18522 One final thing: I created this class to support the \SpecialChar LaTeX2e
18523  
18524 \begin_inset Quotes eld
18525 \end_inset
18526
18527
18528 \noun on
18529 Sli\SpecialChar TeX
18530
18531 \noun default
18532  emulation
18533 \begin_inset Quotes erd
18534 \end_inset
18535
18536  class, one of the built-in \SpecialChar LaTeX2e
18537  classes.
18538  Neither I nor the rest of the \SpecialChar LyX
18539  Team endorse or oppose the use of this built-in
18540  slide class.
18541  It's here if you want it or need it.
18542  There exist other \SpecialChar LaTeX2e
18543  classes for creating presentations, such as the 
18544 \family sans
18545 Foils
18546 \family default
18547  class [see section
18548 \begin_inset space ~
18549 \end_inset
18550
18551
18552 \begin_inset CommandInset ref
18553 LatexCommand ref
18554 reference "sec:foiltex"
18555
18556 \end_inset
18557
18558 ] or the 
18559 \begin_inset Quotes eld
18560 \end_inset
18561
18562
18563 \family typewriter
18564 seminar
18565 \family default
18566
18567 \begin_inset Quotes erd
18568 \end_inset
18569
18570  package [present on some \SpecialChar TeX
18571  distributions].
18572  The latter is not yet supported under \SpecialChar LyX
18573 .
18574 \begin_inset Foot
18575 status collapsed
18576
18577 \begin_layout Plain Layout
18578 Perhaps you can take on the task\SpecialChar ldots
18579
18580 \end_layout
18581
18582 \end_inset
18583
18584  I know nothing about these other classes.
18585  Try them out to see what sort of alternative they provide.
18586 \end_layout
18587
18588 \begin_layout Chapter
18589 \SpecialChar LyX
18590  Features needing Extra Software
18591 \end_layout
18592
18593 \begin_layout Section
18594 Checking \SpecialChar TeX
18595
18596 \end_layout
18597
18598 \begin_layout Standard
18599 by 
18600 \noun on
18601 Asger Alstrup
18602 \end_layout
18603
18604 \begin_layout Subsection
18605 Introduction
18606 \end_layout
18607
18608 \begin_layout Standard
18609 If you have the 
18610 \family typewriter
18611 chktex
18612 \family default
18613  program installed
18614 \begin_inset Foot
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618
18619 \family typewriter
18620 chktex
18621 \family default
18622  is not yet available when you are using the \SpecialChar LaTeX
18623  distribution MiK\SpecialChar TeX
18624 .
18625 \end_layout
18626
18627 \end_inset
18628
18629 , you'll find in the 
18630 \family sans
18631 Tools
18632 \family default
18633  menu the entry: 
18634 \family sans
18635 Check
18636 \begin_inset space ~
18637 \end_inset
18638
18639 TeX
18640 \family default
18641 .
18642  You can get 
18643 \family typewriter
18644 chktex
18645 \family default
18646  from CTAN,
18647 \begin_inset Newline newline
18648 \end_inset
18649
18650
18651 \begin_inset CommandInset href
18652 LatexCommand href
18653 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18654
18655 \end_inset
18656
18657 .
18658 \end_layout
18659
18660 \begin_layout Standard
18661 The 
18662 \family sans
18663 Chk\SpecialChar TeX
18664
18665 \family default
18666  package is a program that was written by 
18667 \begin_inset Flex Noun
18668 status collapsed
18669
18670 \begin_layout Plain Layout
18671 Jens T.
18672 \begin_inset space ~
18673 \end_inset
18674
18675 Berger Thielemann
18676 \end_layout
18677
18678 \end_inset
18679
18680  in frustration because some constructs in \SpecialChar LaTeX
18681  are sometimes non-intuitive,
18682  and easy to forget.
18683  The program runs over your \SpecialChar LaTeX
18684  file, checks the integrity of the file, and
18685  flags some common errors.
18686  In other technical words, it is 
18687 \family typewriter
18688 lint
18689 \family default
18690  for \SpecialChar LaTeX
18691 .
18692 \end_layout
18693
18694 \begin_layout Standard
18695 Well, what is a syntax checker doing in \SpecialChar LyX
18696  which is supposed to produce correct
18697  \SpecialChar LaTeX
18698  anyways? The answer is simple: Just as 
18699 \family typewriter
18700 Lint
18701 \family default
18702  not only checks the 
18703 \emph on
18704 syntax
18705 \emph default
18706  of C programs, but also does 
18707 \emph on
18708 semantic
18709 \emph default
18710  checks for type-errors, 
18711 \family sans
18712 Chk\SpecialChar TeX
18713
18714 \family default
18715  catches some common 
18716 \emph on
18717 typographic
18718 \emph default
18719  errors, in addition to the syntactical ones.
18720  Specifically, 
18721 \family sans
18722 Chk\SpecialChar TeX
18723
18724 \family default
18725  is capable of detecting several common errors, such as
18726 \end_layout
18727
18728 \begin_layout Itemize
18729 Ellipsis detection:
18730 \begin_inset Newline newline
18731 \end_inset
18732
18733 Use \SpecialChar ldots
18734  instead of ...
18735 \end_layout
18736
18737 \begin_layout Itemize
18738 No space in front of/after parenthesis:
18739 \begin_inset Newline newline
18740 \end_inset
18741
18742 ( wrong spacing )
18743 \end_layout
18744
18745 \begin_layout Itemize
18746 Enforcement of normal space after common abbreviations:
18747 \begin_inset Newline newline
18748 \end_inset
18749
18750 e.
18751 \begin_inset space \thinspace{}
18752 \end_inset
18753
18754 g.
18755 \begin_inset space \space{}
18756 \end_inset
18757
18758 is too wide spacing.
18759 \end_layout
18760
18761 \begin_layout Itemize
18762 Enforcement of end-of-sentence space when the last sentence ends with a
18763  capital letter:
18764 \begin_inset Newline newline
18765 \end_inset
18766
18767 This is a TEST.
18768  And this is wrong spacing.
18769 \end_layout
18770
18771 \begin_layout Itemize
18772 Space in front of labels and similar commands:
18773 \begin_inset Newline newline
18774 \end_inset
18775
18776 The label should stick right up to the text to avoid falling to a wrong
18777  page.
18778  
18779 \begin_inset CommandInset label
18780 LatexCommand label
18781 name "sec:chktex"
18782
18783 \end_inset
18784
18785  
18786 \begin_inset Foot
18787 status collapsed
18788
18789 \begin_layout Plain Layout
18790 This footnote is in danger of falling off to a wrong page
18791 \end_layout
18792
18793 \end_inset
18794
18795  The label is separated too much.
18796 \end_layout
18797
18798 \begin_layout Itemize
18799 Space in front of references, instead of hard spaces:
18800 \begin_inset Newline newline
18801 \end_inset
18802
18803 If you have bad luck, the text will break right between the referenced text
18804  and reference number, and that's a pity.
18805  See section 
18806 \begin_inset CommandInset ref
18807 LatexCommand ref
18808 reference "sec:chktex"
18809
18810 \end_inset
18811
18812 .
18813 \end_layout
18814
18815 \begin_layout Itemize
18816 Use of 
18817 \begin_inset Quotes eld
18818 \end_inset
18819
18820 x
18821 \begin_inset Quotes erd
18822 \end_inset
18823
18824  instead of 
18825 \begin_inset Formula $\times$
18826 \end_inset
18827
18828  between numbers:
18829 \begin_inset Newline newline
18830 \end_inset
18831
18832 2x2 looks cheap compared to 
18833 \begin_inset Formula $2\times2$
18834 \end_inset
18835
18836 .
18837 \end_layout
18838
18839 \begin_layout Standard
18840 and more \SpecialChar ldots
18841  It is an invaluable tool when you are 
18842 \begin_inset Quotes eld
18843 \end_inset
18844
18845 finishing up
18846 \begin_inset Quotes erd
18847 \end_inset
18848
18849  your document before printing, and you should run it right after the obligatory
18850  spelling check, and before you go fine tuning the typesetting.
18851 \end_layout
18852
18853 \begin_layout Subsection
18854 How to use it
18855 \end_layout
18856
18857 \begin_layout Standard
18858 If you have the program installed, usage is as simple as choosing 
18859 \family sans
18860 Tools\SpecialChar menuseparator
18861 Check
18862 \begin_inset space ~
18863 \end_inset
18864
18865 TeX
18866 \family default
18867 .
18868  This will make \SpecialChar LyX
18869  generate a \SpecialChar LaTeX
18870  file of your document, start 
18871 \family sans
18872 Chk\SpecialChar TeX
18873
18874 \family default
18875  to check it, and then make \SpecialChar LyX
18876  insert 
18877 \begin_inset Quotes eld
18878 \end_inset
18879
18880 error boxes
18881 \begin_inset Quotes erd
18882 \end_inset
18883
18884  with the warnings from 
18885 \family sans
18886 Chk\SpecialChar TeX
18887
18888 \family default
18889 , if there were any.
18890  The warnings will be placed close to the point of the mistake, and you
18891  can quickly find them by using the 
18892 \family sans
18893 Navigate\SpecialChar menuseparator
18894 Error
18895 \family default
18896  menu item, or the shortcut key 
18897 \family sans
18898 C-g
18899 \family default
18900  from the default 
18901 \family typewriter
18902 cua
18903 \family default
18904  bind file.
18905  Open the error boxes by clicking on them with the mouse, or use the shortcut
18906  key 
18907 \family sans
18908 C-i
18909 \family default
18910  from 
18911 \family typewriter
18912 cua
18913 \family default
18914  bindings, or the corresponding 
18915 \family sans
18916 C-o
18917 \family default
18918  for the alternate 
18919 \family typewriter
18920 emacs
18921 \family default
18922  bind file.
18923  Read the warning and correct the mistake, if it is a mistake.
18924  If you have trouble understanding what the warning is about, you can safely
18925  ignore it.
18926  Remember that there is a hidden layer between the document on screen and
18927  the technical details in invoking 
18928 \family sans
18929 Chk\SpecialChar TeX
18930
18931 \family default
18932 , and this gap can make some warnings seem arcane or just plain silly.
18933 \end_layout
18934
18935 \begin_layout Standard
18936 This document is an excellent testing bed for the feature, and it should
18937  provide quite a few warnings for you to fiddle with.
18938  Since computers are only so smart, expect most of the warnings to be false
18939  alarms, though.
18940 \end_layout
18941
18942 \begin_layout Subsection
18943 How to fine tune it
18944 \end_layout
18945
18946 \begin_layout Standard
18947 Sometimes, you'll find that 
18948 \family sans
18949 Chk\SpecialChar TeX
18950
18951 \family default
18952  makes more noise than suits your mood.
18953  Then you can choose not to use it, wait until your mood changes, or try
18954  to customize 
18955 \family sans
18956 Chk\SpecialChar TeX
18957
18958 \family default
18959  to get better along with you.
18960 \end_layout
18961
18962 \begin_layout Standard
18963 Although 
18964 \family sans
18965 Chk\SpecialChar TeX
18966
18967 \family default
18968  
18969 \emph on
18970 is
18971 \emph default
18972  very configurable and extensible, you should not expect to solve all problems
18973  with 
18974 \family sans
18975 Chk\SpecialChar TeX
18976
18977 \family default
18978  in \SpecialChar LyX
18979  this way.
18980  Since \SpecialChar LyX
18981  has to generate a somewhat special \SpecialChar LaTeX
18982  file to be able to match the
18983  line numbers from the 
18984 \family sans
18985 Chk\SpecialChar TeX
18986
18987 \family default
18988  output
18989 \begin_inset Foot
18990 status collapsed
18991
18992 \begin_layout Plain Layout
18993 You can inspect the specific output from 
18994 \family sans
18995 chktex
18996 \family default
18997  by using 
18998 \family sans
18999 Document\SpecialChar menuseparator
19000 \SpecialChar LaTeX
19001
19002 \begin_inset space ~
19003 \end_inset
19004
19005 Log
19006 \family default
19007  right after a 
19008 \family sans
19009 chktex
19010 \family default
19011  run.
19012 \end_layout
19013
19014 \end_inset
19015
19016  to the internal document structure, some of the warnings will not appear
19017  correctly.
19018  There are two things you can do about this:
19019 \end_layout
19020
19021 \begin_layout Itemize
19022 Fine tune the 
19023 \family sans
19024 Chk\SpecialChar TeX
19025
19026 \family default
19027  invocation command line in 
19028 \begin_inset Flex MenuItem
19029 status collapsed
19030
19031 \begin_layout Plain Layout
19032 Tools\SpecialChar menuseparator
19033 Preferences\SpecialChar menuseparator
19034 Output\SpecialChar menuseparator
19035 LaTeX\SpecialChar menuseparator
19036 CheckTeX command
19037 \end_layout
19038
19039 \end_inset
19040
19041 , or the global 
19042 \family sans
19043 Chk\SpecialChar TeX
19044
19045 \family default
19046  installation configuration file (usually with the file 
19047 \family typewriter
19048 chktexrc
19049 \family default
19050 ).
19051  See below to learn what warnings can be enabled and disabled on the command
19052  line.
19053 \end_layout
19054
19055 \begin_layout Itemize
19056 Export your document as a raw \SpecialChar LaTeX
19057  file using 
19058 \family sans
19059 File\SpecialChar menuseparator
19060 Export\SpecialChar menuseparator
19061 \SpecialChar LaTeX
19062
19063 \family default
19064  and run 
19065 \family typewriter
19066 chktex
19067 \family default
19068  manually on that.
19069  Invoked in this way, it can be a hassle to find the corresponding place
19070  in the document inside \SpecialChar LyX
19071 , but with a little patience, you should be able
19072  to do it.
19073 \end_layout
19074
19075 \begin_layout Standard
19076 Here follows the warning messages that can be enabled and disabled in 
19077 \family sans
19078 Preferences
19079 \family default
19080 .
19081  Use 
19082 \family typewriter
19083 -n#
19084 \family default
19085  to disable a warning, and 
19086 \family typewriter
19087 -w#
19088 \family default
19089  to enable a warning.
19090  The emphasized entries are disabled by default, because the default is
19091  "
19092 \family typewriter
19093 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19094 \family default
19095 ".
19096 \end_layout
19097
19098 \begin_layout Standard
19099 Notice that you should only use the options that enable and disable warnings,
19100  because \SpecialChar LyX
19101  relies on some of the other command line parameters to be set
19102  in a specific way to have a chance to communicate with 
19103 \family typewriter
19104 chktex
19105 \family default
19106 .
19107 \end_layout
19108
19109 \begin_layout Enumerate
19110
19111 \size small
19112 \emph on
19113 Command terminated with space.
19114 \end_layout
19115
19116 \begin_layout Enumerate
19117
19118 \size small
19119 Non-breaking space (
19120 \begin_inset Quotes eld
19121 \end_inset
19122
19123
19124 \family typewriter
19125 ~
19126 \family default
19127
19128 \begin_inset Quotes erd
19129 \end_inset
19130
19131 ) should have been used.
19132 \end_layout
19133
19134 \begin_layout Enumerate
19135
19136 \size small
19137 \emph on
19138 You should enclose the previous parenthesis with 
19139 \begin_inset Quotes eld
19140 \end_inset
19141
19142
19143 \family typewriter
19144 {}
19145 \family default
19146
19147 \begin_inset Quotes erd
19148 \end_inset
19149
19150 .
19151 \end_layout
19152
19153 \begin_layout Enumerate
19154
19155 \size small
19156 Italic correction (
19157 \begin_inset Quotes eld
19158 \end_inset
19159
19160
19161 \family typewriter
19162
19163 \backslash
19164 /
19165 \family default
19166
19167 \begin_inset Quotes erd
19168 \end_inset
19169
19170 ) found in non-italic buffer.
19171 \end_layout
19172
19173 \begin_layout Enumerate
19174
19175 \size small
19176 Italic correction (
19177 \begin_inset Quotes eld
19178 \end_inset
19179
19180
19181 \family typewriter
19182
19183 \backslash
19184 /
19185 \family default
19186
19187 \begin_inset Quotes erd
19188 \end_inset
19189
19190 ) found more than once.
19191 \end_layout
19192
19193 \begin_layout Enumerate
19194
19195 \size small
19196 \emph on
19197 No italic correction (
19198 \begin_inset Quotes eld
19199 \end_inset
19200
19201
19202 \family typewriter
19203
19204 \backslash
19205 /
19206 \family default
19207
19208 \begin_inset Quotes erd
19209 \end_inset
19210
19211 ) found.
19212 \end_layout
19213
19214 \begin_layout Enumerate
19215
19216 \size small
19217 Accent command 
19218 \begin_inset Quotes eld
19219 \end_inset
19220
19221
19222 \family typewriter
19223 cmd
19224 \family default
19225
19226 \begin_inset Quotes erd
19227 \end_inset
19228
19229  needs use of 
19230 \begin_inset Quotes eld
19231 \end_inset
19232
19233
19234 \family typewriter
19235 cmd
19236 \family default
19237
19238 \begin_inset Quotes erd
19239 \end_inset
19240
19241 .
19242 \end_layout
19243
19244 \begin_layout Enumerate
19245
19246 \size small
19247 Wrong length of dash may have been used.
19248 \end_layout
19249
19250 \begin_layout Enumerate
19251
19252 \size small
19253 \emph on
19254 \begin_inset Quotes eld
19255 \end_inset
19256
19257
19258 \family typewriter
19259 %s
19260 \family default
19261
19262 \begin_inset Quotes erd
19263 \end_inset
19264
19265  expected, found 
19266 \begin_inset Quotes eld
19267 \end_inset
19268
19269
19270 \family typewriter
19271 %s
19272 \family default
19273
19274 \begin_inset Quotes erd
19275 \end_inset
19276
19277 .
19278 \end_layout
19279
19280 \begin_layout Enumerate
19281
19282 \size small
19283 Solo 
19284 \begin_inset Quotes eld
19285 \end_inset
19286
19287
19288 \family typewriter
19289 %s
19290 \family default
19291
19292 \begin_inset Quotes erd
19293 \end_inset
19294
19295  found.
19296 \end_layout
19297
19298 \begin_layout Enumerate
19299
19300 \size small
19301 You should use 
19302 \begin_inset Quotes eld
19303 \end_inset
19304
19305
19306 \family typewriter
19307 %s
19308 \family default
19309
19310 \begin_inset Quotes erd
19311 \end_inset
19312
19313  to achieve an ellipsis.
19314 \end_layout
19315
19316 \begin_layout Enumerate
19317
19318 \size small
19319 Inter-word spacing (
19320 \begin_inset Quotes eld
19321 \end_inset
19322
19323
19324 \family typewriter
19325
19326 \backslash
19327
19328 \family default
19329  
19330 \begin_inset Quotes eld
19331 \end_inset
19332
19333 ) should perhaps be used.
19334 \end_layout
19335
19336 \begin_layout Enumerate
19337
19338 \size small
19339 Inter-sentence spacing (
19340 \begin_inset Quotes eld
19341 \end_inset
19342
19343
19344 \family typewriter
19345
19346 \backslash
19347 @
19348 \family default
19349
19350 \begin_inset Quotes erd
19351 \end_inset
19352
19353 ) should perhaps be used.
19354 \end_layout
19355
19356 \begin_layout Enumerate
19357
19358 \size small
19359 Could not find argument for command.
19360 \end_layout
19361
19362 \begin_layout Enumerate
19363
19364 \size small
19365 No match found for 
19366 \begin_inset Quotes eld
19367 \end_inset
19368
19369
19370 \family typewriter
19371 %s
19372 \family default
19373
19374 \begin_inset Quotes erd
19375 \end_inset
19376
19377 .
19378 \end_layout
19379
19380 \begin_layout Enumerate
19381
19382 \size small
19383 Math mode still on at end of \SpecialChar LaTeX
19384  file.
19385 \end_layout
19386
19387 \begin_layout Enumerate
19388
19389 \size small
19390 Number of 
19391 \begin_inset Quotes eld
19392 \end_inset
19393
19394
19395 \family typewriter
19396 char
19397 \family default
19398
19399 \begin_inset Quotes erd
19400 \end_inset
19401
19402  doesn't match the number of 
19403 \begin_inset Quotes eld
19404 \end_inset
19405
19406
19407 \family typewriter
19408 char
19409 \family default
19410
19411 \begin_inset Quotes erd
19412 \end_inset
19413
19414 .
19415 \end_layout
19416
19417 \begin_layout Enumerate
19418
19419 \size small
19420 You should use either 
19421 \family typewriter
19422
19423 \begin_inset Quotes eld
19424 \end_inset
19425
19426
19427 \family default
19428  or 
19429 \family typewriter
19430
19431 \begin_inset Quotes erd
19432 \end_inset
19433
19434
19435 \family default
19436  as an alternative to 
19437 \begin_inset Quotes eld
19438 \end_inset
19439
19440
19441 \family typewriter
19442 "
19443 \family default
19444
19445 \begin_inset Quotes erd
19446 \end_inset
19447
19448 .
19449 \end_layout
19450
19451 \begin_layout Enumerate
19452
19453 \size small
19454 You should use "
19455 \family typewriter
19456 '
19457 \family default
19458 " (ASCII 39) instead of "
19459 \family typewriter
19460 ´
19461 \family default
19462 " (ASCII 180).
19463 \end_layout
19464
19465 \begin_layout Enumerate
19466
19467 \size small
19468 User-specified pattern found.
19469 \end_layout
19470
19471 \begin_layout Enumerate
19472
19473 \size small
19474 This command might not be intended.
19475 \end_layout
19476
19477 \begin_layout Enumerate
19478
19479 \size small
19480 \emph on
19481 Comment displayed.
19482 \end_layout
19483
19484 \begin_layout Enumerate
19485
19486 \size small
19487 Either 
19488 \family typewriter
19489 ''
19490 \backslash
19491 ,'
19492 \family default
19493  or 
19494 \family typewriter
19495 '
19496 \backslash
19497 ,''
19498 \family default
19499  will look better.
19500 \end_layout
19501
19502 \begin_layout Enumerate
19503
19504 \size small
19505 Delete this space to maintain correct page references.
19506 \end_layout
19507
19508 \begin_layout Enumerate
19509
19510 \size small
19511 \emph on
19512 You might wish to put this between a pair of 
19513 \begin_inset Quotes eld
19514 \end_inset
19515
19516
19517 \family typewriter
19518 {}
19519 \family default
19520
19521 \begin_inset Quotes erd
19522 \end_inset
19523
19524 .
19525 \end_layout
19526
19527 \begin_layout Enumerate
19528
19529 \size small
19530 You ought to remove spaces in front of punctuation.
19531 \end_layout
19532
19533 \begin_layout Enumerate
19534
19535 \size small
19536 Could not execute \SpecialChar LaTeX
19537  command.
19538 \end_layout
19539
19540 \begin_layout Enumerate
19541
19542 \size small
19543 Don't use 
19544 \family typewriter
19545
19546 \backslash
19547 /
19548 \family default
19549  in front of small punctuation.
19550 \end_layout
19551
19552 \begin_layout Enumerate
19553
19554 \family typewriter
19555 \size small
19556 $
19557 \backslash
19558 times$
19559 \family default
19560  may look prettier here.
19561 \end_layout
19562
19563 \begin_layout Enumerate
19564
19565 \size small
19566 \emph on
19567 Multiple spaces detected in output.
19568 \end_layout
19569
19570 \begin_layout Enumerate
19571
19572 \size small
19573 This text may be ignored.
19574 \end_layout
19575
19576 \begin_layout Enumerate
19577
19578 \size small
19579 Use 
19580 \family typewriter
19581
19582 \begin_inset Quotes eld
19583 \end_inset
19584
19585
19586 \family default
19587  to begin quotation, not 
19588 \family typewriter
19589 '
19590 \family default
19591 .
19592 \end_layout
19593
19594 \begin_layout Enumerate
19595
19596 \size small
19597 Use 
19598 \family typewriter
19599 '
19600 \family default
19601  to end quotation, not 
19602 \family typewriter
19603
19604 \begin_inset Quotes eld
19605 \end_inset
19606
19607
19608 \family default
19609 .
19610 \end_layout
19611
19612 \begin_layout Enumerate
19613
19614 \size small
19615 Don't mix quotes.
19616 \end_layout
19617
19618 \begin_layout Enumerate
19619
19620 \size small
19621 You should perhaps use 
19622 \begin_inset Quotes eld
19623 \end_inset
19624
19625
19626 \family typewriter
19627 cmd
19628 \family default
19629
19630 \begin_inset Quotes erd
19631 \end_inset
19632
19633  instead.
19634 \end_layout
19635
19636 \begin_layout Enumerate
19637
19638 \size small
19639 You should put a space in front of/after parenthesis.
19640 \end_layout
19641
19642 \begin_layout Enumerate
19643
19644 \size small
19645 You should avoid spaces in front of/after parenthesis.
19646 \end_layout
19647
19648 \begin_layout Enumerate
19649
19650 \size small
19651 \emph on
19652 You should not use punctuation in front of/after quotes.
19653 \end_layout
19654
19655 \begin_layout Enumerate
19656
19657 \size small
19658 Double space found.
19659 \end_layout
19660
19661 \begin_layout Enumerate
19662
19663 \size small
19664 You should put punctuation outside inner/inside display math mode.
19665 \end_layout
19666
19667 \begin_layout Enumerate
19668
19669 \size small
19670 You ought to not use primitive \SpecialChar TeX
19671  in \SpecialChar LaTeX
19672  code.
19673 \end_layout
19674
19675 \begin_layout Enumerate
19676
19677 \size small
19678 You should remove spaces in front of 
19679 \begin_inset Quotes eld
19680 \end_inset
19681
19682
19683 \family typewriter
19684 %s
19685 \family default
19686
19687 \begin_inset Quotes erd
19688 \end_inset
19689
19690
19691 \end_layout
19692
19693 \begin_layout Enumerate
19694
19695 \size small
19696 \begin_inset Quotes eld
19697 \end_inset
19698
19699
19700 \family typewriter
19701 %s
19702 \family default
19703
19704 \begin_inset Quotes erd
19705 \end_inset
19706
19707  is normally not followed by 
19708 \begin_inset Quotes eld
19709 \end_inset
19710
19711
19712 \family typewriter
19713 %c
19714 \family default
19715
19716 \begin_inset Quotes erd
19717 \end_inset
19718
19719 .
19720 \end_layout
19721
19722 \begin_layout Standard
19723 In later versions of \SpecialChar LyX
19724 , we hope to provide a more complete interface to this
19725  tool (and it's smaller cousin 
19726 \family typewriter
19727 lacheck
19728 \family default
19729 ) to exploit the full power of it.
19730  But it's not exactly useless as it is now: go try it on one of your existing
19731  documents of a certain length and be surprised.
19732 \end_layout
19733
19734 \begin_layout Section
19735 Version Control in \SpecialChar LyX
19736
19737 \end_layout
19738
19739 \begin_layout Standard
19740 by
19741 \noun on
19742  Lars Gullik Bjønnes 
19743 \noun default
19744 and 
19745 \noun on
19746 Pavel Sanda
19747 \end_layout
19748
19749 \begin_layout Subsection
19750 Introduction
19751 \end_layout
19752
19753 \begin_layout Standard
19754 \SpecialChar LyX
19755  supports some of the most basic RCS/CVS/SVN/GIT commands.
19756  If you need something a bit more sophisticated you will have to do that
19757  manually in a terminal.
19758 \end_layout
19759
19760 \begin_layout Standard
19761 Also note that CVS support is not as good as subversion support so we advise
19762  using SVN instead.
19763  A good place to start learning Subversion is SVN Book
19764 \begin_inset Foot
19765 status collapsed
19766
19767 \begin_layout Plain Layout
19768 \begin_inset CommandInset href
19769 LatexCommand href
19770 target "http://svnbook.red-bean.com/"
19771
19772 \end_inset
19773
19774
19775 \end_layout
19776
19777 \end_inset
19778
19779 .
19780  In the case of RCS you should read 
19781 \begin_inset Quotes eld
19782 \end_inset
19783
19784 rcsintro
19785 \begin_inset Quotes erd
19786 \end_inset
19787
19788  (a man file, read it with 
19789 \family typewriter
19790 man rcsintro
19791 \family default
19792 ).
19793  This file describes all the basic features of RCS.
19794  You should especially notice the comment about a RCS directory, and the
19795  notion of a master RCS file (the file ending in 
19796 \family typewriter
19797 ,v
19798 \family default
19799 ).
19800 \end_layout
19801
19802 \begin_layout Standard
19803 Before you begin to use the version control features in \SpecialChar LyX
19804 , you should be
19805  familiar with RCS/CVS/SVN/GIT usage.
19806  The implementation in \SpecialChar LyX
19807  assumes a recent version of the GNU RCS or CVS/SVN
19808  package — no guarantees are made for older versions.
19809  Most of the log messages are not currently displayed after operations —
19810  you can check them in the Messages pane if unsure.
19811  Regular users of version control will appreciate VC toolbar, which can
19812  be enabled via 
19813 \family sans
19814 View\SpecialChar menuseparator
19815 Toolbars\SpecialChar menuseparator
19816 Version
19817 \begin_inset space ~
19818 \end_inset
19819
19820 Control
19821 \family default
19822 .
19823 \end_layout
19824
19825 \begin_layout Standard
19826 For introducing your own external commands consult vc-command in the manual
19827  of \SpecialChar LyX
19828  functions.
19829 \end_layout
19830
19831 \begin_layout Standard
19832 It is strongly recommended to store documents in uncompressed format if
19833  using version control (uncheck 
19834 \family sans
19835 Document\SpecialChar menuseparator
19836 Compressed
19837 \family default
19838  if it is checked): Uncompressed LyX documents are text files and therefore
19839  for merging two different versions by version control systems.
19840  Compressed LyX documents are binary files, which cannot be merged by version
19841  control systems.
19842 \end_layout
19843
19844 \begin_layout Subsection
19845 RCS commands in \SpecialChar LyX
19846
19847 \end_layout
19848
19849 \begin_layout Standard
19850 The following sections describe the RCS commands supported by \SpecialChar LyX
19851 .
19852  You can find them in the 
19853 \family sans
19854 File\SpecialChar menuseparator
19855 Version
19856 \begin_inset space ~
19857 \end_inset
19858
19859 Control
19860 \family default
19861  submenu.
19862  \SpecialChar LyX
19863  was tested against RCS 5.7/5.8.
19864 \end_layout
19865
19866 \begin_layout Subsubsection
19867
19868 \family sans
19869 Register
19870 \end_layout
19871
19872 \begin_layout Standard
19873 If your document is not under revision control, this is the only item shown
19874  in the menu.
19875  And if it is under revision control, the 
19876 \family sans
19877 Register
19878 \family default
19879  item is not visible.
19880  
19881 \end_layout
19882
19883 \begin_layout Standard
19884 This command registers your document with RCS (unless you are under the
19885  directory managed by CVS)\SpecialChar endofsentence
19886  You are asked interactively to supply an initial
19887  description of the document.
19888  The document is now set in Read-Only mode and you have to 
19889 \family sans
19890 Check
19891 \begin_inset space ~
19892 \end_inset
19893
19894 Out
19895 \begin_inset space ~
19896 \end_inset
19897
19898 For
19899 \begin_inset space ~
19900 \end_inset
19901
19902 Edit
19903 \family default
19904 , before making any changes to it.
19905  A document under revision control has a 
19906 \begin_inset Quotes eld
19907 \end_inset
19908
19909 [RCS:<version> <locker>]
19910 \begin_inset Quotes erd
19911 \end_inset
19912
19913  item tagged to the filename in the minibuffer.
19914 \end_layout
19915
19916 \begin_layout Standard
19917 RCS command that is run: 
19918 \family typewriter
19919 ci -q -u -i -t-"<initial description>" <file-name>
19920 \end_layout
19921
19922 \begin_layout Standard
19923 Read 
19924 \family typewriter
19925 man ci
19926 \family default
19927  to understand the switches.
19928  
19929 \end_layout
19930
19931 \begin_layout Subsubsection
19932
19933 \family sans
19934 Check In Changes
19935 \end_layout
19936
19937 \begin_layout Standard
19938 When you are finished editing a file, you check in your changes.
19939  When you do this, you are asked for a description of the changes.
19940  This is stored in the history log.
19941  The version number is bumped, your changes are applied to the master RCS
19942  file, the document is unlocked and set to Read-Only mode.
19943 \end_layout
19944
19945 \begin_layout Standard
19946 RCS command: 
19947 \family typewriter
19948 ci -q -u -m"<description>" <file-name>
19949 \end_layout
19950
19951 \begin_layout Subsubsection
19952
19953 \family sans
19954 Check Out For Edit
19955 \end_layout
19956
19957 \begin_layout Standard
19958 By doing this you lock the document so that only you can edit it.
19959  This will also make the document Read-Write only for you.
19960  You will usually continue editing for a while and when you are finished
19961  you check in your changes.
19962  The status line is changed to reflect that you have locked the file.
19963 \end_layout
19964
19965 \begin_layout Standard
19966 RCS command: 
19967 \family typewriter
19968 co -q -l <file-name>
19969 \end_layout
19970
19971 \begin_layout Subsubsection
19972
19973 \family sans
19974 Revert To Repository Version
19975 \end_layout
19976
19977 \begin_layout Standard
19978 This will discard all changes made to the document since the last check
19979  in.
19980  You get a warning before changes are discarded.
19981 \end_layout
19982
19983 \begin_layout Standard
19984 RCS command: 
19985 \family typewriter
19986 co -f -u<version> <file-name>
19987 \end_layout
19988
19989 \begin_layout Subsubsection
19990
19991 \family sans
19992 Copy
19993 \end_layout
19994
19995 \begin_layout Standard
19996 This will create a copy of the current document.
19997  Since RCS does not support copy operations natively, the version history
19998  is not preserved, and the copy is added as a new file.
19999  It requires a clean document without any changes since the last checkin.
20000  You are asked for a file name and a description of the copy operation.
20001  After that the copy is created, both locally and in the repository.
20002  If the parent directories of the copied and original document differ, all
20003  relative paths of included files of the copy are adjusted (like in 
20004 \family sans
20005 File\SpecialChar menuseparator
20006 Save As
20007 \family default
20008 \SpecialChar ldots
20009 ).
20010  Finally, the copy is loaded instead of the original document.
20011 \end_layout
20012
20013 \begin_layout Labeling
20014 \labelwidthstring 00.00.0000
20015 RCS
20016 \begin_inset space ~
20017 \end_inset
20018
20019 commands: 
20020 \begin_inset space ~
20021 \end_inset
20022
20023
20024 \begin_inset Newline newline
20025 \end_inset
20026
20027 Copy 
20028 \begin_inset Flex Code
20029 status collapsed
20030
20031 \begin_layout Plain Layout
20032
20033 \family typewriter
20034 \begin_inset Quotes eld
20035 \end_inset
20036
20037 <file-name>
20038 \begin_inset Quotes erd
20039 \end_inset
20040
20041
20042 \end_layout
20043
20044 \end_inset
20045
20046  to 
20047 \begin_inset Flex Code
20048 status collapsed
20049
20050 \begin_layout Plain Layout
20051
20052 \family typewriter
20053 \begin_inset Quotes eld
20054 \end_inset
20055
20056 <new-file-name>
20057 \begin_inset Quotes erd
20058 \end_inset
20059
20060
20061 \end_layout
20062
20063 \end_inset
20064
20065
20066 \begin_inset Newline newline
20067 \end_inset
20068
20069
20070 \begin_inset Flex Code
20071 status collapsed
20072
20073 \begin_layout Plain Layout
20074 ci -q -u 
20075 \family typewriter
20076 -i 
20077 \begin_inset Quotes eld
20078 \end_inset
20079
20080 <new-file-name>
20081 \begin_inset Quotes erd
20082 \end_inset
20083
20084
20085 \end_layout
20086
20087 \end_inset
20088
20089
20090 \end_layout
20091
20092 \begin_layout Subsubsection
20093
20094 \family sans
20095 Undo Last Checkin
20096 \end_layout
20097
20098 \begin_layout Standard
20099 This makes as if the last check in never happened.
20100  No changes are made to the document loaded into \SpecialChar LyX
20101 , but the last version
20102  is removed from the master RCS file.
20103 \end_layout
20104
20105 \begin_layout Standard
20106 RCS command: 
20107 \family typewriter
20108 rcs -o<version> <file-name>
20109 \end_layout
20110
20111 \begin_layout Subsubsection
20112
20113 \family sans
20114 Show History
20115 \end_layout
20116
20117 \begin_layout Standard
20118 This shows the complete history of the RCS document.
20119  The output of 
20120 \family typewriter
20121 rlog <file-name>
20122 \family default
20123  is shown in a browser.
20124  See 
20125 \family typewriter
20126 man rlog
20127 \family default
20128  for more info.
20129 \end_layout
20130
20131 \begin_layout Subsubsection
20132 Revision info
20133 \end_layout
20134
20135 \begin_layout Standard
20136 \SpecialChar LyX
20137  supports RCS version number, author name, date and time of last commit.
20138  All those are extracted from 
20139 \family typewriter
20140 rlog -r <file-name>
20141 \family default
20142 .
20143  See 
20144 \begin_inset CommandInset ref
20145 LatexCommand ref
20146 reference "subsec:VCS-Revision-Information"
20147
20148 \end_inset
20149
20150  for details.
20151 \end_layout
20152
20153 \begin_layout Subsection
20154 CVS commands in \SpecialChar LyX
20155
20156 \end_layout
20157
20158 \begin_layout Standard
20159 A subset of CVS operations is supported by \SpecialChar LyX
20160 .
20161  You can find the commands in the 
20162 \family sans
20163 File\SpecialChar menuseparator
20164 Version
20165 \begin_inset space ~
20166 \end_inset
20167
20168 Control
20169 \family default
20170  submenu.
20171  The version control system SVN is more powerful, so please use it instead
20172  of CVS if possible.
20173 \end_layout
20174
20175 \begin_layout Subsubsection
20176
20177 \family sans
20178 General CVS usage
20179 \end_layout
20180
20181 \begin_layout Standard
20182 If you start from scratch with CVS you have to create your repository and
20183  checkout the working copy with external tools.
20184  If you're using a client-server setup you may need to login before doing
20185  the first repository checkout.
20186 \end_layout
20187
20188 \begin_layout Standard
20189 If your documents are under revision control and others are using the same
20190  repository problems arise when different changes to the same document at
20191  the same location happen.
20192  Standard CVS repositories don't operate with a file locking mechanism.
20193  This may be surprising, but conflicts only occur if people disagree on
20194  the proper content of the same part of a document.
20195  So, if co-workers are used to communicate regularly, these conflicts occur
20196  rarely.
20197  If they don't communicate they have a fundamental problem anyway.
20198  Nevertheless some people like to work with so called 
20199 \begin_inset Quotes eld
20200 \end_inset
20201
20202 reserved checkouts
20203 \begin_inset Quotes erd
20204 \end_inset
20205
20206 .
20207  If they do so the working copy of all files is readonly when checked out
20208  first and the user starts editing after using a special command to make
20209  the working copy writable.
20210  When the changes are checked in the working copy returns to readonly state.
20211  With \SpecialChar LyX
20212  one has to edit the 
20213 \begin_inset Flex Code
20214 status collapsed
20215
20216 \begin_layout Plain Layout
20217 .cvsrc
20218 \end_layout
20219
20220 \end_inset
20221
20222  file and add the line 
20223 \begin_inset Flex Code
20224 status collapsed
20225
20226 \begin_layout Plain Layout
20227 cvs -r
20228 \end_layout
20229
20230 \end_inset
20231
20232  to work with reserved checkouts.
20233  The benefit is the possibility to see who is using a writable copy of some
20234  document.
20235  It's not guaranteed only one user makes a copy writable.
20236 \end_layout
20237
20238 \begin_layout Standard
20239 \SpecialChar LyX
20240  tries to guess if you're using reserved or non-reserved checkouts.
20241  If your working copy is readonly or it is writable and an additional copy
20242  of your document exists in the CVS/Base sub-directory a reserved otherwise
20243  a non-reserved checkout is assumed.
20244  When a reserved checkout is detected you have to use 
20245 \begin_inset Flex MenuItem
20246 status collapsed
20247
20248 \begin_layout Plain Layout
20249 Check Out
20250 \end_layout
20251
20252 \end_inset
20253
20254  to make your working copy writable if it's readonly.
20255  After doing so the 
20256 \begin_inset Flex MenuItem
20257 status collapsed
20258
20259 \begin_layout Plain Layout
20260 Check In
20261 \end_layout
20262
20263 \end_inset
20264
20265  operation is possible and that makes your working copy readonly again after
20266  transferring your changes to the repository.
20267 \end_layout
20268
20269 \begin_layout Standard
20270 More information about CVS can be found here 
20271 \begin_inset Flex URL
20272 status collapsed
20273
20274 \begin_layout Plain Layout
20275
20276 http://www.nongnu.org/cvs
20277 \end_layout
20278
20279 \end_inset
20280
20281  and here 
20282 \begin_inset Flex URL
20283 status collapsed
20284
20285 \begin_layout Plain Layout
20286
20287 http://ximbiot.com/cvs
20288 \end_layout
20289
20290 \end_inset
20291
20292 .
20293 \end_layout
20294
20295 \begin_layout Standard
20296 Read 
20297 \family typewriter
20298 man cvs
20299 \family default
20300  to understand the sub-commands and the switches mentioned below.
20301 \end_layout
20302
20303 \begin_layout Subsubsection
20304
20305 \family sans
20306 Register
20307 \end_layout
20308
20309 \begin_layout Standard
20310 If your document is not under revision control, this is the only item shown
20311  in the menu.
20312  And if it is under revision control, the 
20313 \family sans
20314 \bar under
20315 R
20316 \bar default
20317 egister
20318 \family default
20319  item is not visible.
20320  
20321 \end_layout
20322
20323 \begin_layout Standard
20324 This command registers in CVS your document 
20325 \begin_inset Flex Strong
20326 status collapsed
20327
20328 \begin_layout Plain Layout
20329
20330 \emph on
20331 only
20332 \end_layout
20333
20334 \end_inset
20335
20336  in the case you have already the documents directory under CVS control
20337  (in particular 
20338 \family typewriter
20339 CVS/Entries
20340 \family default
20341  file exists).
20342  This means you have to create or checkout the archive by yourself using
20343  external tools.
20344  (In case you forget that step \SpecialChar LyX
20345  registers the document with RCS.)
20346 \end_layout
20347
20348 \begin_layout Standard
20349 Then you are asked interactively to supply an initial description of the
20350  document.
20351  Don't forget that registered file is not yet checked in.
20352 \end_layout
20353
20354 \begin_layout Standard
20355 CVS command that is run: 
20356 \family typewriter
20357 cvs -q add -m"<entered message>" "<file-name>"
20358 \end_layout
20359
20360 \begin_layout Standard
20361 The term 
20362 \family typewriter
20363 "<file-name>"
20364 \family default
20365  above and for all other CVS commands is an abbreviation for 
20366 \begin_inset Quotes eld
20367 \end_inset
20368
20369 change the current working directory to file location and use the file name
20370  without path component as argument
20371 \begin_inset Quotes erd
20372 \end_inset
20373
20374 .
20375 \end_layout
20376
20377 \begin_layout Subsubsection
20378
20379 \family sans
20380 Check In Changes
20381 \end_layout
20382
20383 \begin_layout Standard
20384 When you are finished editing a file, you commit your changes.
20385  When you do this and you had changed the document, you are asked for a
20386  description of the changes.
20387  After that changes are written to the repository.
20388  In case you didn't change the document and a reserved checkout is detected
20389  the reservation made on 
20390 \begin_inset Flex MenuItem
20391 status collapsed
20392
20393 \begin_layout Plain Layout
20394 Check Out
20395 \end_layout
20396
20397 \end_inset
20398
20399  is undone.
20400 \end_layout
20401
20402 \begin_layout Labeling
20403 \labelwidthstring 00.00.0000
20404 CVS
20405 \begin_inset space ~
20406 \end_inset
20407
20408 command: 
20409 \begin_inset space ~
20410 \end_inset
20411
20412
20413 \begin_inset Newline newline
20414 \end_inset
20415
20416
20417 \begin_inset Flex Code
20418 status collapsed
20419
20420 \begin_layout Plain Layout
20421 cvs 
20422 \family typewriter
20423 -q commit -m"<description>" "<file-name>"
20424 \end_layout
20425
20426 \end_inset
20427
20428  or
20429 \begin_inset Newline newline
20430 \end_inset
20431
20432
20433 \begin_inset Flex Code
20434 status collapsed
20435
20436 \begin_layout Plain Layout
20437 cvs -q unedit 
20438 \family typewriter
20439 "<file-name>"
20440 \end_layout
20441
20442 \end_inset
20443
20444
20445 \end_layout
20446
20447 \begin_layout Subsubsection
20448
20449 \family sans
20450 Check Out Changes
20451 \end_layout
20452
20453 \begin_layout Standard
20454 When you are sharing a repository with others, you may have to incorporate
20455  their changes into your working copy.
20456 \end_layout
20457
20458 \begin_layout Standard
20459 CVS command: 
20460 \family typewriter
20461 cvs -q update "<file-name>"
20462 \end_layout
20463
20464 \begin_layout Standard
20465 If a readonly checkout is detected the working copy is made writable and
20466  reserved.
20467 \end_layout
20468
20469 \begin_layout Standard
20470 CVS command: 
20471 \family typewriter
20472 cvs -q edit "<file-name>"
20473 \end_layout
20474
20475 \begin_layout Subsubsection
20476
20477 \family sans
20478 Revert To Repository Version
20479 \end_layout
20480
20481 \begin_layout Standard
20482 This will discard all changes made to the document since the last check
20483  in.
20484  You get a warning before changes are discarded.
20485  Firstly the file is deleted, secondly CVS update command is run.
20486 \end_layout
20487
20488 \begin_layout Standard
20489 CVS command: 
20490 \family typewriter
20491 cvs -q update "<file-name>"
20492 \end_layout
20493
20494 \begin_layout Standard
20495 If a reserved checkout is detected and the working copy has no changes only
20496  the reservation is undone.
20497 \end_layout
20498
20499 \begin_layout Standard
20500 CVS command: 
20501 \family typewriter
20502 cvs -q unedit "<file-name>"
20503 \end_layout
20504
20505 \begin_layout Subsubsection
20506
20507 \family sans
20508 Copy
20509 \end_layout
20510
20511 \begin_layout Standard
20512 This will create a copy of the current document.
20513  Since CVS does not support copy operations natively, the version history
20514  is not preserved, and the copy is added as a new file.
20515  It requires a clean document without any changes since the last checkin.
20516  You are asked for a file name and a description of the copy operation.
20517  After that the copy is created, both locally and in the repository.
20518  If the parent directories of the copied and original document differ, all
20519  relative paths of included files of the copy are adjusted (like in 
20520 \family sans
20521 File\SpecialChar menuseparator
20522 Save As
20523 \family default
20524 \SpecialChar ldots
20525 ).
20526  Finally, the copy is loaded instead of the original document.
20527 \end_layout
20528
20529 \begin_layout Labeling
20530 \labelwidthstring 00.00.0000
20531 CVS
20532 \begin_inset space ~
20533 \end_inset
20534
20535 commands: 
20536 \begin_inset space ~
20537 \end_inset
20538
20539
20540 \begin_inset Newline newline
20541 \end_inset
20542
20543 Copy 
20544 \begin_inset Flex Code
20545 status collapsed
20546
20547 \begin_layout Plain Layout
20548
20549 \family typewriter
20550 \begin_inset Quotes eld
20551 \end_inset
20552
20553 <file-name>
20554 \begin_inset Quotes erd
20555 \end_inset
20556
20557
20558 \end_layout
20559
20560 \end_inset
20561
20562  to 
20563 \begin_inset Flex Code
20564 status collapsed
20565
20566 \begin_layout Plain Layout
20567
20568 \family typewriter
20569 \begin_inset Quotes eld
20570 \end_inset
20571
20572 <new-file-name>
20573 \begin_inset Quotes erd
20574 \end_inset
20575
20576
20577 \end_layout
20578
20579 \end_inset
20580
20581
20582 \begin_inset Newline newline
20583 \end_inset
20584
20585
20586 \begin_inset Flex Code
20587 status collapsed
20588
20589 \begin_layout Plain Layout
20590 cvs -q add 
20591 \family typewriter
20592
20593 \begin_inset Quotes eld
20594 \end_inset
20595
20596 <new-file-name>
20597 \begin_inset Quotes erd
20598 \end_inset
20599
20600
20601 \end_layout
20602
20603 \end_inset
20604
20605
20606 \end_layout
20607
20608 \begin_layout Subsubsection
20609
20610 \family sans
20611 Rename
20612 \end_layout
20613
20614 \begin_layout Standard
20615 This will rename the current document.
20616  Since CVS does not support rename operations natively, the version history
20617  is not preserved, the renamed document is added as a new file, and the
20618  original document is deleted.
20619  It requires a clean document without any changes since the last checkin.
20620  You are asked for a file name and a description of the rename operation.
20621  After that the document is renamed, both locally and in the repository.
20622  If the parent directories of the new and old file names differ, all relative
20623  paths of included files are adjusted (like in 
20624 \family sans
20625 File\SpecialChar menuseparator
20626 Save As
20627 \family default
20628 \SpecialChar ldots
20629 ).
20630  Finally, the document is reloaded using the new name.
20631 \end_layout
20632
20633 \begin_layout Labeling
20634 \labelwidthstring 00.00.0000
20635 CVS
20636 \begin_inset space ~
20637 \end_inset
20638
20639 commands: 
20640 \begin_inset space ~
20641 \end_inset
20642
20643
20644 \begin_inset Newline newline
20645 \end_inset
20646
20647 Rename 
20648 \begin_inset Flex Code
20649 status collapsed
20650
20651 \begin_layout Plain Layout
20652
20653 \family typewriter
20654 \begin_inset Quotes eld
20655 \end_inset
20656
20657 <file-name>
20658 \begin_inset Quotes erd
20659 \end_inset
20660
20661
20662 \end_layout
20663
20664 \end_inset
20665
20666  to 
20667 \begin_inset Flex Code
20668 status collapsed
20669
20670 \begin_layout Plain Layout
20671
20672 \family typewriter
20673 \begin_inset Quotes eld
20674 \end_inset
20675
20676 <new-file-name>
20677 \begin_inset Quotes erd
20678 \end_inset
20679
20680
20681 \end_layout
20682
20683 \end_inset
20684
20685
20686 \begin_inset Newline newline
20687 \end_inset
20688
20689
20690 \begin_inset Flex Code
20691 status collapsed
20692
20693 \begin_layout Plain Layout
20694 cvs -q add 
20695 \family typewriter
20696
20697 \begin_inset Quotes eld
20698 \end_inset
20699
20700 <new-file-name>
20701 \begin_inset Quotes erd
20702 \end_inset
20703
20704
20705 \end_layout
20706
20707 \end_inset
20708
20709
20710 \begin_inset Newline newline
20711 \end_inset
20712
20713
20714 \begin_inset Flex Code
20715 status collapsed
20716
20717 \begin_layout Plain Layout
20718 cvs -q remove 
20719 \family typewriter
20720
20721 \begin_inset Quotes eld
20722 \end_inset
20723
20724 <file-name>
20725 \begin_inset Quotes erd
20726 \end_inset
20727
20728
20729 \end_layout
20730
20731 \end_inset
20732
20733
20734 \end_layout
20735
20736 \begin_layout Subsubsection
20737 Update of the local directory checkout from repository
20738 \end_layout
20739
20740 \begin_layout Standard
20741 Once your documents gets more complex, containing sub-documents and pictures,
20742  including external 
20743 \begin_inset Flex Code
20744 status collapsed
20745
20746 \begin_layout Plain Layout
20747 .tex
20748 \end_layout
20749
20750 \end_inset
20751
20752  files and so on using version control becomes more complicated.
20753  \SpecialChar LyX
20754  supports updating the whole tree in which resides the document.
20755  This become especially useful once you cooperate with people which neither
20756  have detailed knowledge about CVS usage nor they have ambition to commit
20757  additional material to the repository.
20758  You have to organize the files structure so that all external files are
20759  in the same directory or subdirectories of the document.
20760  It's good practice anyway to store multipart documents in an extra directory.
20761 \end_layout
20762
20763 \begin_layout Standard
20764 The 
20765 \begin_inset Flex Code
20766 status collapsed
20767
20768 \begin_layout Plain Layout
20769 Update local directory from repository
20770 \end_layout
20771
20772 \end_inset
20773
20774  command updates the whole directory.
20775  If local changes are detected user is warned before update starts.
20776  In case of merge conflicts both versions of the conflicting document parts
20777  are placed in the final document.
20778  You have to review and correct the result of the merge.
20779  You'll find the conflicts enclosed in pairs of 
20780 \begin_inset Flex Code
20781 status collapsed
20782
20783 \begin_layout Plain Layout
20784 <<<<<<<
20785 \end_layout
20786
20787 \end_inset
20788
20789  and 
20790 \begin_inset Flex Code
20791 status collapsed
20792
20793 \begin_layout Plain Layout
20794 >>>>>>>
20795 \end_layout
20796
20797 \end_inset
20798
20799  separated by 
20800 \begin_inset Flex Code
20801 status collapsed
20802
20803 \begin_layout Plain Layout
20804 =======
20805 \end_layout
20806
20807 \end_inset
20808
20809 .
20810  The first part is your version as before the update operation with the
20811  document name prepended.
20812  The second one is the repository version with the version number after
20813  the sequence of 
20814 \begin_inset Flex Code
20815 status collapsed
20816
20817 \begin_layout Plain Layout
20818 >
20819 \end_layout
20820
20821 \end_inset
20822
20823  signs.
20824 \end_layout
20825
20826 \begin_layout Labeling
20827 \labelwidthstring 00.00.0000
20828 CVS
20829 \begin_inset space ~
20830 \end_inset
20831
20832 commands: 
20833 \begin_inset space ~
20834 \end_inset
20835
20836
20837 \begin_inset Newline newline
20838 \end_inset
20839
20840
20841 \begin_inset Flex Code
20842 status collapsed
20843
20844 \begin_layout Plain Layout
20845 cd $path; cvs diff 
20846 \family typewriter
20847 "."
20848 \end_layout
20849
20850 \end_inset
20851
20852  (Ask if changes are detected.)
20853 \begin_inset Newline newline
20854 \end_inset
20855
20856
20857 \begin_inset Flex Code
20858 status collapsed
20859
20860 \begin_layout Plain Layout
20861 cd $path; cvs -q update 
20862 \family typewriter
20863 "."
20864 \end_layout
20865
20866 \end_inset
20867
20868
20869 \end_layout
20870
20871 \begin_layout Standard
20872 where 
20873 \begin_inset Flex Code
20874 status collapsed
20875
20876 \begin_layout Plain Layout
20877 $path
20878 \end_layout
20879
20880 \end_inset
20881
20882  stands for the path to the document.
20883 \end_layout
20884
20885 \begin_layout Subsubsection
20886
20887 \family sans
20888 Show History
20889 \end_layout
20890
20891 \begin_layout Standard
20892 This shows the complete history of the CVS document.
20893  The output of 
20894 \family typewriter
20895 cvs log "<file-name>"
20896 \family default
20897  is shown in a browser.
20898 \end_layout
20899
20900 \begin_layout Subsubsection
20901 Revision info
20902 \end_layout
20903
20904 \begin_layout Standard
20905 \SpecialChar LyX
20906  supports CVS version number, author name, date and time of last commit.
20907  All those are extracted from 
20908 \family typewriter
20909 cvs log -r <file-name>
20910 \family default
20911 .
20912  See 
20913 \begin_inset CommandInset ref
20914 LatexCommand ref
20915 reference "subsec:VCS-Revision-Information"
20916
20917 \end_inset
20918
20919  for details.
20920 \end_layout
20921
20922 \begin_layout Subsection
20923 SVN commands in \SpecialChar LyX
20924
20925 \end_layout
20926
20927 \begin_layout Standard
20928 SVN is now partially supported by \SpecialChar LyX
20929 .
20930  You can find the commands in the 
20931 \family sans
20932 File\SpecialChar menuseparator
20933 Version
20934 \begin_inset space ~
20935 \end_inset
20936
20937 Control
20938 \family default
20939  submenu.
20940  Please note that if you use password protected access to repository via
20941  ssh, you will be asked in terminal window.
20942  \SpecialChar LyX
20943  was tested against SVN 1.5, 1.6, 1.7 and 1.8
20944 \begin_inset Foot
20945 status open
20946
20947 \begin_layout Plain Layout
20948 Most of the commands will work with 1.4 too, see 
20949 \begin_inset CommandInset ref
20950 LatexCommand ref
20951 reference "subsec:SVN-Repo-Update"
20952
20953 \end_inset
20954
20955 .
20956  There seems to be currently unresolved permissions problem under SVN 1.8
20957  with reverting changes when file is locked.
20958 \end_layout
20959
20960 \end_inset
20961
20962
20963 \end_layout
20964
20965 \begin_layout Subsubsection
20966
20967 \family sans
20968 Register
20969 \end_layout
20970
20971 \begin_layout Standard
20972 If your document is not under revision control, this is the only item shown
20973  in the menu.
20974  And if it is under revision control, the 
20975 \family sans
20976 \bar under
20977 R
20978 \bar default
20979 egister
20980 \family default
20981  item is not visible.
20982 \end_layout
20983
20984 \begin_layout Standard
20985 This command registers in SVN your document ONLY in case you have already
20986  the documents directory under SVN control (in particular 
20987 \family typewriter
20988 .svn/entries
20989 \family default
20990  file exists).
20991  This means you have to checkout the archive by yourself.
20992 \end_layout
20993
20994 \begin_layout Standard
20995 Then you are asked interactively to supply an initial description of the
20996  document.
20997  Don't forget that registered file is not yet commited.
20998 \end_layout
20999
21000 \begin_layout Standard
21001 SVN command that is run: 
21002 \family typewriter
21003 svn add -q 
21004 \begin_inset Quotes eld
21005 \end_inset
21006
21007 <file-name>
21008 \begin_inset Quotes erd
21009 \end_inset
21010
21011
21012 \end_layout
21013
21014 \begin_layout Standard
21015 Read 
21016 \family typewriter
21017 man svn
21018 \family default
21019  to understand the switches.
21020 \end_layout
21021
21022 \begin_layout Subsubsection
21023
21024 \family sans
21025 Check In Changes
21026 \end_layout
21027
21028 \begin_layout Standard
21029 When you are finished editing a file, you commit your changes.
21030  When you do this, you are asked for a description of the changes.
21031  After that changes are commited.
21032 \end_layout
21033
21034 \begin_layout Standard
21035 SVN command:
21036 \begin_inset Foot
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040 In case locking is not enabled.
21041  See Section 
21042 \begin_inset CommandInset ref
21043 LatexCommand ref
21044 reference "subsec:SVN-File-Locking"
21045
21046 \end_inset
21047
21048 .
21049 \end_layout
21050
21051 \end_inset
21052
21053  
21054 \family typewriter
21055 svn commit -q -m"<description>" <file-name>
21056 \end_layout
21057
21058 \begin_layout Subsubsection
21059
21060 \family sans
21061 Check Out For Edit
21062 \end_layout
21063
21064 \begin_layout Standard
21065 Updates the changes of this file from the repository.
21066  Be sure you understand SVN merging and conflicts resolving before using
21067  this function, because all conflicts has to be resolved manually by you!
21068 \end_layout
21069
21070 \begin_layout Standard
21071 SVN command:
21072 \begin_inset Foot
21073 status collapsed
21074
21075 \begin_layout Plain Layout
21076 Ditto.
21077 \end_layout
21078
21079 \end_inset
21080
21081  
21082 \family typewriter
21083 svn update --non-interactive 
21084 \begin_inset Quotes eld
21085 \end_inset
21086
21087 <file-name>
21088 \begin_inset Quotes erd
21089 \end_inset
21090
21091
21092 \end_layout
21093
21094 \begin_layout Subsubsection
21095
21096 \family sans
21097 Revert To Repository Version
21098 \end_layout
21099
21100 \begin_layout Standard
21101 This will discard all changes made to the document since the last check
21102  in.
21103  You get a warning before changes are discarded.
21104 \end_layout
21105
21106 \begin_layout Standard
21107 SVN command: 
21108 \family typewriter
21109 svn revert -q 
21110 \begin_inset Quotes eld
21111 \end_inset
21112
21113 <file-name>
21114 \begin_inset Quotes erd
21115 \end_inset
21116
21117
21118 \end_layout
21119
21120 \begin_layout Subsubsection
21121
21122 \family sans
21123 Copy
21124 \end_layout
21125
21126 \begin_layout Standard
21127 This will create a copy of the current document including the version history.
21128  It requires a clean document without any changes since the last checkin.
21129  You are asked for a file name and a description of the copy operation.
21130  After that the copy is created, both locally and in the repository.
21131  If the parent directories of the copied and original document differ, all
21132  relative paths of included files of the copy are adjusted (like in 
21133 \family sans
21134 File\SpecialChar menuseparator
21135 Save As
21136 \family default
21137 \SpecialChar ldots
21138 ).
21139  Finally, the copy is loaded instead of the original document.
21140 \end_layout
21141
21142 \begin_layout Labeling
21143 \labelwidthstring 00.00.0000
21144 SVN
21145 \begin_inset space ~
21146 \end_inset
21147
21148 commands: 
21149 \begin_inset space ~
21150 \end_inset
21151
21152
21153 \begin_inset Newline newline
21154 \end_inset
21155
21156
21157 \begin_inset Flex Code
21158 status collapsed
21159
21160 \begin_layout Plain Layout
21161 svn copy -q 
21162 \family typewriter
21163
21164 \begin_inset Quotes eld
21165 \end_inset
21166
21167 <file-name>
21168 \begin_inset Quotes erd
21169 \end_inset
21170
21171  
21172 \begin_inset Quotes eld
21173 \end_inset
21174
21175 <new-file-name>
21176 \begin_inset Quotes erd
21177 \end_inset
21178
21179
21180 \end_layout
21181
21182 \end_inset
21183
21184
21185 \begin_inset Newline newline
21186 \end_inset
21187
21188
21189 \begin_inset Flex Code
21190 status collapsed
21191
21192 \begin_layout Plain Layout
21193 svn commit
21194 \end_layout
21195
21196 \end_inset
21197
21198
21199 \end_layout
21200
21201 \begin_layout Subsubsection
21202
21203 \family sans
21204 Rename
21205 \end_layout
21206
21207 \begin_layout Standard
21208 This will rename the current document including the version history.
21209  It requires a clean document without any changes since the last checkin.
21210  You are asked for a file name and a description of the rename operation.
21211  After that the document is renamed, both locally and in the repository.
21212  If the parent directories of the new and old file names differ, all relative
21213  paths of included files are adjusted (like in 
21214 \family sans
21215 File\SpecialChar menuseparator
21216 Save As
21217 \family default
21218 \SpecialChar ldots
21219 ).
21220  Finally, the document is reloaded using the new name.
21221 \end_layout
21222
21223 \begin_layout Labeling
21224 \labelwidthstring 00.00.0000
21225 SVN
21226 \begin_inset space ~
21227 \end_inset
21228
21229 commands: 
21230 \begin_inset space ~
21231 \end_inset
21232
21233
21234 \begin_inset Newline newline
21235 \end_inset
21236
21237
21238 \begin_inset Flex Code
21239 status collapsed
21240
21241 \begin_layout Plain Layout
21242 svn move -q 
21243 \family typewriter
21244
21245 \begin_inset Quotes eld
21246 \end_inset
21247
21248 <file-name>
21249 \begin_inset Quotes erd
21250 \end_inset
21251
21252  
21253 \begin_inset Quotes eld
21254 \end_inset
21255
21256 <new-file-name>
21257 \begin_inset Quotes erd
21258 \end_inset
21259
21260
21261 \end_layout
21262
21263 \end_inset
21264
21265
21266 \begin_inset Newline newline
21267 \end_inset
21268
21269
21270 \begin_inset Flex Code
21271 status collapsed
21272
21273 \begin_layout Plain Layout
21274 svn commit
21275 \end_layout
21276
21277 \end_inset
21278
21279
21280 \end_layout
21281
21282 \begin_layout Subsubsection
21283 \begin_inset CommandInset label
21284 LatexCommand label
21285 name "subsec:SVN-Repo-Update"
21286
21287 \end_inset
21288
21289 Update of the local directory checkout from repository
21290 \begin_inset Foot
21291 status collapsed
21292
21293 \begin_layout Plain Layout
21294 Note that this command will work only with subversion 
21295 \begin_inset Formula $\geqq1.5$
21296 \end_inset
21297
21298
21299 \end_layout
21300
21301 \end_inset
21302
21303
21304 \end_layout
21305
21306 \begin_layout Standard
21307 All the commands above have one shortcomming - they deal with the current
21308  document only.
21309  Once your document contains pictures, includes external 
21310 \begin_inset Flex Code
21311 status collapsed
21312
21313 \begin_layout Plain Layout
21314 .tex
21315 \end_layout
21316
21317 \end_inset
21318
21319  files and so on administration becomes more complicated.
21320  \SpecialChar LyX
21321  now supports updating the whole tree in which resides the document
21322 \begin_inset Foot
21323 status collapsed
21324
21325 \begin_layout Plain Layout
21326 One need to organize the files structure so that all external files are
21327  in the same directory or subdirectories of the document.
21328  
21329 \end_layout
21330
21331 \end_inset
21332
21333 .
21334  This become especially useful once you cooperate with people which neither
21335  know about subversion management nor they have ambition to commit additional
21336  material to the repository.
21337  
21338 \end_layout
21339
21340 \begin_layout Standard
21341 \begin_inset Flex Code
21342 status collapsed
21343
21344 \begin_layout Plain Layout
21345 Update local directory from repository
21346 \end_layout
21347
21348 \end_inset
21349
21350  command updates the whole directory and in case of merge conflicts local
21351  version of the files are left, so no unintended data loss occurs.
21352  If local changes are detected user is warned before update starts.
21353 \end_layout
21354
21355 \begin_layout Labeling
21356 \labelwidthstring 00.00.0000
21357 SVN
21358 \begin_inset space ~
21359 \end_inset
21360
21361 commands: 
21362 \begin_inset space ~
21363 \end_inset
21364
21365
21366 \begin_inset Newline newline
21367 \end_inset
21368
21369
21370 \begin_inset Flex Code
21371 status collapsed
21372
21373 \begin_layout Plain Layout
21374 svn diff $path
21375 \end_layout
21376
21377 \end_inset
21378
21379  (Ask if changes are detected.)
21380 \begin_inset Newline newline
21381 \end_inset
21382
21383
21384 \begin_inset Flex Code
21385 status collapsed
21386
21387 \begin_layout Plain Layout
21388 svn update –accept mine-full $path
21389 \end_layout
21390
21391 \end_inset
21392
21393
21394 \end_layout
21395
21396 \begin_layout Standard
21397 where 
21398 \begin_inset Flex Code
21399 status collapsed
21400
21401 \begin_layout Plain Layout
21402 $path
21403 \end_layout
21404
21405 \end_inset
21406
21407  stands for the path to the document.
21408 \end_layout
21409
21410 \begin_layout Subsubsection
21411
21412 \family sans
21413 Show History
21414 \end_layout
21415
21416 \begin_layout Standard
21417 This shows the complete history of the SVN document.
21418  The output of 
21419 \family typewriter
21420 svn log 
21421 \begin_inset Quotes eld
21422 \end_inset
21423
21424 <file-name>
21425 \begin_inset Quotes erd
21426 \end_inset
21427
21428
21429 \family default
21430  is shown in a browser.
21431 \end_layout
21432
21433 \begin_layout Subsubsection
21434 File Locking
21435 \begin_inset CommandInset label
21436 LatexCommand label
21437 name "subsec:SVN-File-Locking"
21438
21439 \end_inset
21440
21441
21442 \end_layout
21443
21444 \begin_layout Standard
21445 The file exchange through various revision control systems brings the problem
21446  of merge conflicts in case two different users try to edit the same (parts
21447  of) document.
21448  When such a conflict happens it needs manual resolving and one reasonable
21449  alternative is to provide some kind of locking mechanism, which guarantees
21450  that only one user is allowed to edit file at the given time.
21451 \end_layout
21452
21453 \begin_layout Standard
21454 SVN has two such mechanisms to provide mutual exclusivity for file access
21455  - locks and automatic setting of write permissions (see sec.
21456  
21457 \begin_inset CommandInset ref
21458 LatexCommand ref
21459 reference "subsec:Automatical-Locking-Property"
21460
21461 \end_inset
21462
21463 ) based on 
21464 \begin_inset Flex Code
21465 status collapsed
21466
21467 \begin_layout Plain Layout
21468 svn:needs-lock
21469 \end_layout
21470
21471 \end_inset
21472
21473  file svn property
21474 \begin_inset Foot
21475 status open
21476
21477 \begin_layout Plain Layout
21478 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21479 \end_layout
21480
21481 \end_inset
21482
21483 .
21484  If this property is detected for a given document \SpecialChar LyX
21485  starts to use SVN locks
21486  for document editing automatically and the whole check-in/out mechanism
21487  switches to the same regimen as for RCS.
21488  This in particular means there are two different modes of file use in \SpecialChar LyX
21489 :
21490 \end_layout
21491
21492 \begin_layout Itemize
21493 Unlocked state.
21494  The loaded file is in the read-only mode.
21495  For editing on needs to check-out.
21496  
21497 \emph on
21498 Check-out
21499 \emph default
21500  consists of updating from the repository and gaining write lock.
21501  If the lock is not possible to obtain, we remain in unlocked state.
21502 \end_layout
21503
21504 \begin_layout Itemize
21505 Locked state.
21506  The loaded file is in the 'normal' edit mode.
21507  No other user is allowed to edit the file.
21508  
21509 \emph on
21510 Check-in
21511 \emph default
21512  consists of commiting changes and releasing write-lock.
21513  If no changes have been made to the document, no commit will be produced
21514 \begin_inset Foot
21515 status collapsed
21516
21517 \begin_layout Plain Layout
21518 Don't be puzzled by the fact that you will be asked for commit message anyway.
21519 \end_layout
21520
21521 \end_inset
21522
21523  and only the write-lock will be released.
21524 \end_layout
21525
21526 \begin_layout Standard
21527 SVN commands:
21528 \end_layout
21529
21530 \begin_layout Labeling
21531 \labelwidthstring 00.00.0000
21532 Check-in:
21533 \family typewriter
21534  svn commit -q -m"<description>" "<file-name>"
21535 \begin_inset Newline newline
21536 \end_inset
21537
21538 svn unlock "<file-name>"
21539 \end_layout
21540
21541 \begin_layout Labeling
21542 \labelwidthstring 00.00.0000
21543 Check-out: 
21544 \family typewriter
21545 svn update "<file-name>"
21546 \begin_inset Newline newline
21547 \end_inset
21548
21549 svn lock "<file-name>"
21550 \end_layout
21551
21552 \begin_layout Subsubsection
21553
21554 \family typewriter
21555 \begin_inset CommandInset label
21556 LatexCommand label
21557 name "subsec:Automatical-Locking-Property"
21558
21559 \end_inset
21560
21561
21562 \family default
21563 Automatic Locking Property
21564 \end_layout
21565
21566 \begin_layout Standard
21567 The above mentioned automatic setting of write permissions of the .lyx file
21568  can be set through
21569 \family sans
21570 \bar under
21571  F
21572 \bar default
21573 ile\SpecialChar menuseparator
21574
21575 \bar under
21576 V
21577 \bar default
21578 ersion
21579 \begin_inset space ~
21580 \end_inset
21581
21582 Control\SpecialChar menuseparator
21583
21584 \bar under
21585 T
21586 \bar default
21587 oggle locking property
21588 \family default
21589 .
21590  This command is active only when the file is not locked on the svn server
21591  (i.e.
21592  you need to check-out before proceeding).
21593 \end_layout
21594
21595 \begin_layout Labeling
21596 \labelwidthstring 00.00.0000
21597 SVN
21598 \begin_inset space ~
21599 \end_inset
21600
21601 commands:
21602 \end_layout
21603
21604 \begin_layout Labeling
21605 \labelwidthstring 00.00.0000
21606 Set:
21607 \family typewriter
21608  svn propset svn:needs-lock ON "<file-name>"
21609 \end_layout
21610
21611 \begin_layout Labeling
21612 \labelwidthstring 00.00.0000
21613 Unset: 
21614 \family typewriter
21615 svn propdel svn:needs-lock "<file-name>"
21616 \end_layout
21617
21618 \begin_layout Subsubsection
21619 \begin_inset CommandInset label
21620 LatexCommand label
21621 name "subsec:VCS-Revision-Information"
21622
21623 \end_inset
21624
21625 Revision Information in Documents
21626 \end_layout
21627
21628 \begin_layout Standard
21629 There are more possibilities how to activate revision information in our
21630  document.
21631 \end_layout
21632
21633 \begin_layout Itemize
21634 \SpecialChar LyX
21635  supports directly:
21636 \begin_inset Separator parbreak
21637 \end_inset
21638
21639
21640 \end_layout
21641
21642 \begin_deeper
21643 \begin_layout Itemize
21644 tree revision information (
21645 \begin_inset Flex Code
21646 status collapsed
21647
21648 \begin_layout Plain Layout
21649 vcs-tree-revision
21650 \end_layout
21651
21652 \end_inset
21653
21654 ).
21655  The result is the output of the 
21656 \begin_inset Flex Code
21657 status collapsed
21658
21659 \begin_layout Plain Layout
21660 svnversion
21661 \end_layout
21662
21663 \end_inset
21664
21665  command, the following table gives you an idea, how to read the results.
21666 \end_layout
21667
21668 \begin_layout Standard
21669 \align center
21670 \begin_inset Tabular
21671 <lyxtabular version="3" rows="6" columns="2">
21672 <features tabularvalignment="middle">
21673 <column alignment="center" valignment="top">
21674 <column alignment="center" valignment="top">
21675 <row>
21676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21677 \begin_inset Text
21678
21679 \begin_layout Plain Layout
21680 Output
21681 \end_layout
21682
21683 \end_inset
21684 </cell>
21685 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21686 \begin_inset Text
21687
21688 \begin_layout Plain Layout
21689 Meaning
21690 \end_layout
21691
21692 \end_inset
21693 </cell>
21694 </row>
21695 <row>
21696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21697 \begin_inset Text
21698
21699 \begin_layout Plain Layout
21700 4123:4168
21701 \end_layout
21702
21703 \end_inset
21704 </cell>
21705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21706 \begin_inset Text
21707
21708 \begin_layout Plain Layout
21709 mixed revision working copy
21710 \end_layout
21711
21712 \end_inset
21713 </cell>
21714 </row>
21715 <row>
21716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21717 \begin_inset Text
21718
21719 \begin_layout Plain Layout
21720 4168M
21721 \end_layout
21722
21723 \end_inset
21724 </cell>
21725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21726 \begin_inset Text
21727
21728 \begin_layout Plain Layout
21729 modified working copy
21730 \end_layout
21731
21732 \end_inset
21733 </cell>
21734 </row>
21735 <row>
21736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21737 \begin_inset Text
21738
21739 \begin_layout Plain Layout
21740 4123S
21741 \end_layout
21742
21743 \end_inset
21744 </cell>
21745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21746 \begin_inset Text
21747
21748 \begin_layout Plain Layout
21749 switched working copy
21750 \end_layout
21751
21752 \end_inset
21753 </cell>
21754 </row>
21755 <row>
21756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21757 \begin_inset Text
21758
21759 \begin_layout Plain Layout
21760 4123P
21761 \end_layout
21762
21763 \end_inset
21764 </cell>
21765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21766 \begin_inset Text
21767
21768 \begin_layout Plain Layout
21769 partial working copy, from a sparse checkout
21770 \end_layout
21771
21772 \end_inset
21773 </cell>
21774 </row>
21775 <row>
21776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21777 \begin_inset Text
21778
21779 \begin_layout Plain Layout
21780 4123:4168MS
21781 \end_layout
21782
21783 \end_inset
21784 </cell>
21785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21786 \begin_inset Text
21787
21788 \begin_layout Plain Layout
21789 mixed revision, modified, switched working copy
21790 \end_layout
21791
21792 \end_inset
21793 </cell>
21794 </row>
21795 </lyxtabular>
21796
21797 \end_inset
21798
21799
21800 \end_layout
21801
21802 \begin_layout Itemize
21803 file revision information.
21804  The result comes from parsing the output of 
21805 \begin_inset Flex Code
21806 status collapsed
21807
21808 \begin_layout Plain Layout
21809 svn
21810 \begin_inset space ~
21811 \end_inset
21812
21813 info
21814 \begin_inset space ~
21815 \end_inset
21816
21817 –xml
21818 \begin_inset space ~
21819 \end_inset
21820
21821 file.lyx
21822 \end_layout
21823
21824 \end_inset
21825
21826 .
21827  Supported flags are:
21828 \begin_inset Separator parbreak
21829 \end_inset
21830
21831
21832 \end_layout
21833
21834 \begin_deeper
21835 \begin_layout Itemize
21836 version number of the last commit (
21837 \begin_inset Flex Code
21838 status collapsed
21839
21840 \begin_layout Plain Layout
21841 vcs-revision
21842 \end_layout
21843
21844 \end_inset
21845
21846 )
21847 \end_layout
21848
21849 \begin_layout Itemize
21850 author of the last commit (
21851 \begin_inset Flex Code
21852 status collapsed
21853
21854 \begin_layout Plain Layout
21855 vcs-author
21856 \end_layout
21857
21858 \end_inset
21859
21860 )
21861 \end_layout
21862
21863 \begin_layout Itemize
21864 date of the last commit (
21865 \begin_inset Flex Code
21866 status collapsed
21867
21868 \begin_layout Plain Layout
21869 vcs-date
21870 \end_layout
21871
21872 \end_inset
21873
21874 )
21875 \end_layout
21876
21877 \begin_layout Itemize
21878 time of the last commit (
21879 \begin_inset Flex Code
21880 status collapsed
21881
21882 \begin_layout Plain Layout
21883 vcs-time
21884 \end_layout
21885
21886 \end_inset
21887
21888 )
21889 \end_layout
21890
21891 \end_deeper
21892 \begin_layout Standard
21893 You can obtain this info via InsetInfo (e.g.
21894  
21895 \begin_inset Flex Code
21896 status collapsed
21897
21898 \begin_layout Plain Layout
21899 info-insert buffer vcs-date
21900 \end_layout
21901
21902 \end_inset
21903
21904 ).
21905  The information will be available only when you have the file stored under
21906  svn managment (i.e.
21907  the 
21908 \begin_inset Flex Code
21909 status collapsed
21910
21911 \begin_layout Plain Layout
21912 .svn
21913 \end_layout
21914
21915 \end_inset
21916
21917  directory is available with your document).
21918 \end_layout
21919
21920 \end_deeper
21921 \begin_layout Itemize
21922 Another—a hacking one—possibility is to use svn keywords
21923 \begin_inset Foot
21924 status collapsed
21925
21926 \begin_layout Plain Layout
21927 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21928 \end_layout
21929
21930 \end_inset
21931
21932 .
21933  In short – you set file keywords property (e.g.
21934  
21935 \family sans
21936 svn propset svn:keywords 'Rev' file.lyx
21937 \family default
21938 ) and then paste keyword \SpecialChar TeX
21939  code
21940 \begin_inset Foot
21941 status collapsed
21942
21943 \begin_layout Plain Layout
21944 This is an easy way how to ensure that \SpecialChar LyX
21945  won't break the line in the middle
21946  of keyword tag.
21947 \end_layout
21948
21949 \end_inset
21950
21951  tag in your document (e.g.
21952  
21953 \begin_inset ERT
21954 status open
21955
21956 \begin_layout Plain Layout
21957
21958 $Rev$
21959 \end_layout
21960
21961 \end_inset
21962
21963 ).
21964  This way svn client will automatically substitute revision number (e.g.
21965  
21966 \begin_inset ERT
21967 status open
21968
21969 \begin_layout Plain Layout
21970
21971 $Rev: 59 $
21972 \end_layout
21973
21974 \end_inset
21975
21976 ) after each update and commit.
21977  There are more problems with this approach.
21978  Firstly, the '$' character is used in \SpecialChar TeX
21979  world for math equations, so any
21980  occurence of math formula 
21981 \begin_inset Formula $Rev$
21982 \end_inset
21983
21984  become 
21985 \begin_inset Formula $Rev:59$
21986 \end_inset
21987
21988  in your \SpecialChar LyX
21989  document.
21990  Similarly for other keywords like Id, Date, Author, etc.
21991  Secondly svn output is dependent on your locales, so its very easy that
21992  svn would produce some problematic strings once Date is used.
21993  Thirdly you get the whole 'Rev: 59' string in your document instead of
21994  the plain number.
21995  Until subversion implements user's custom keywords it will be hard to use
21996  this approach reliably or let \SpecialChar LyX
21997  to support it directly.
21998 \end_layout
21999
22000 \begin_layout Subsection
22001 SVN and Windows Environment
22002 \end_layout
22003
22004 \begin_layout Quote
22005 My inclination is to say that if the user cannot figure out the command
22006  line operations on their own fairly quickly, they would be well advised
22007  to use TortoiseSVN.
22008  —P.
22009  A.
22010  Rubin
22011 \end_layout
22012
22013 \begin_layout Subsubsection
22014 Preparation
22015 \end_layout
22016
22017 \begin_layout Standard
22018 In addition to installing \SpecialChar LyX
22019 , and having access to a Subversion repository,
22020  the user will need to install the Subversion client program.
22021  A Windows installer for the client program is available from 
22022 \begin_inset CommandInset href
22023 LatexCommand href
22024 name "CollabNet"
22025 target "http://www.collab.net/nonav/downloads/subversion/"
22026
22027 \end_inset
22028
22029 .
22030  The user may also want to install 
22031 \begin_inset CommandInset href
22032 LatexCommand href
22033 name "TortoiseSVN"
22034 target "http://tortoisesvn.tigris.org/"
22035
22036 \end_inset
22037
22038 , which integrates Subversion operations into the context (rightclick) menu
22039  of Windows Explorer.
22040  Operations done outside \SpecialChar LyX
22041  will typically be more convenient using the Explorer
22042  context menu.
22043  Note that TortoiseSVN is not a replacement for the client program, which
22044  is what \SpecialChar LyX
22045  itself will use.
22046 \end_layout
22047
22048 \begin_layout Subsubsection
22049 Bringing a document under Subversion control
22050 \end_layout
22051
22052 \begin_layout Standard
22053 Before a \SpecialChar LyX
22054  document can be brought under version control in Subversion, its
22055  parent directory needs to be under version control.
22056  If the document is being added to a project already in the repository,
22057  this is accomplished by checking the project out to the directory where
22058  the new document will be placed.
22059  If the project itself is not yet under version control (for instance, if
22060  this document starts a new project), the directory must be imported into
22061  the repository.
22062  This is done outside \SpecialChar LyX
22063 .
22064  Both import and checkout are easily accomplished from the Explorer context
22065  menu using TortoiseSVN, or alternatively can be done using the command
22066  line client at a DOS prompt.
22067  The procedure for importing the project using TortoiseSVN is described
22068  below, assuming an existing repository and a new project being started
22069  in 
22070 \family typewriter
22071 C:
22072 \backslash
22073 new project
22074 \family default
22075 .
22076  For information on using the Subversion client program, run 
22077 \family typewriter
22078 svn --help 
22079 \family default
22080 in a DOS shell.
22081 \end_layout
22082
22083 \begin_layout Enumerate
22084 Locate 
22085 \family typewriter
22086 C:
22087 \backslash
22088 new project 
22089 \family default
22090 in Windows Explorer, right click it, and select 
22091 \family sans
22092 TortoiseSVN\SpecialChar menuseparator
22093 Repo-browser
22094 \family default
22095 .
22096  If necessary, adjust the URL for the repository, then click OK.
22097 \end_layout
22098
22099 \begin_layout Enumerate
22100 Right click the level of the repository under which you want to place the
22101  new project folder (typically the top level) and click 
22102 \family sans
22103 Create folder
22104 \family default
22105  Supply a name for the project folder and click OK.
22106  Add a message for the log file if desired, then click OK again.
22107  The new project folder should appear in the repository.
22108  Finally, click OK again to exit the repository browser.
22109 \end_layout
22110
22111 \begin_layout Enumerate
22112 Once again right click 
22113 \family typewriter
22114 C:
22115 \backslash
22116 new project
22117 \family default
22118 , this time selecting SVN Checkout\SpecialChar ldots
22119  Select the URL of the project folder
22120  you just created in the repository, and set the checkout directory to 
22121 \family typewriter
22122 C:
22123 \backslash
22124 new project.
22125
22126 \family default
22127  Click OK.
22128  You will be warned about a non-empty folder; click OK to proceed.
22129  You should now have a 
22130 \family typewriter
22131 .svn
22132 \family default
22133  directory under 
22134 \family typewriter
22135 C:
22136 \backslash
22137 new project.
22138 \end_layout
22139
22140 \begin_layout Enumerate
22141 Create or open your document in \SpecialChar LyX
22142  and click 
22143 \family sans
22144 File\SpecialChar menuseparator
22145 Version
22146 \begin_inset space ~
22147 \end_inset
22148
22149 Control\SpecialChar menuseparator
22150 Register.
22151  
22152 \family default
22153 Add a log message and click OK to commit the document to version control.
22154 \end_layout
22155
22156 \begin_layout Standard
22157 From this point onward, you should have full functionality in the 
22158 \family sans
22159 File\SpecialChar menuseparator
22160 Version
22161 \begin_inset space ~
22162 \end_inset
22163
22164 Control
22165 \family default
22166  menu.
22167  You also have the option of checking the document in and out, viewing its
22168  history, etc.
22169  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22170  client program from a command prompt.
22171 \end_layout
22172
22173 \begin_layout Subsubsection
22174 SSH tunnel used with SVN under Windows
22175 \end_layout
22176
22177 \begin_layout Standard
22178 Compared with Linux setting up an svn client to communicate over ssh under
22179  Windows is a rather troublesome task.
22180  We will at least offer some hints how to setup the client side but prior
22181  knowledge about ssh and the Windows command line is needed, also be prepared
22182  for a great deal of frustration\SpecialChar ldots
22183
22184 \end_layout
22185
22186 \begin_layout Enumerate
22187 Get an svn client for windows, as described in the previous sections.
22188  When it is a fresh install run some svn command (e.g.
22189  
22190 \begin_inset Flex Code
22191 status collapsed
22192
22193 \begin_layout Plain Layout
22194 svn –version
22195 \end_layout
22196
22197 \end_inset
22198
22199 ) to create config files, which you will need to change later on.
22200 \end_layout
22201
22202 \begin_layout Enumerate
22203 Choose an ssh client for Windows.
22204  There are several possibilities, we will use the one from Putty tools
22205 \begin_inset Foot
22206 status collapsed
22207
22208 \begin_layout Plain Layout
22209 \begin_inset Flex URL
22210 status collapsed
22211
22212 \begin_layout Plain Layout
22213
22214 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22215 \end_layout
22216
22217 \end_inset
22218
22219
22220 \end_layout
22221
22222 \end_inset
22223
22224 .
22225  You will need to set the connection up so that the client doesn't ask for
22226  any password from you.
22227  To keep things easy we will use only keys without any additional password
22228  protection etc.
22229 \begin_inset Separator parbreak
22230 \end_inset
22231
22232
22233 \end_layout
22234
22235 \begin_deeper
22236 \begin_layout Enumerate
22237 Generate keys by 
22238 \begin_inset Flex Code
22239 status collapsed
22240
22241 \begin_layout Plain Layout
22242 puttygen
22243 \end_layout
22244
22245 \end_inset
22246
22247 .
22248  Save your private .ppk key file and put the public one on the server side.
22249  If the SVN server runs on Linux, note that the format of the public key
22250  is not compatible with Linux openssh and you will need to direcly copy-paste
22251  the key from the “
22252 \emph on
22253 Public key for pasting into OpenSSH authorized_keys file
22254 \emph default
22255 :” edit field into the server's 
22256 \begin_inset Flex Code
22257 status collapsed
22258
22259 \begin_layout Plain Layout
22260 ~/.ssh/authorized_keys
22261 \end_layout
22262
22263 \end_inset
22264
22265  / 
22266 \begin_inset Flex Code
22267 status collapsed
22268
22269 \begin_layout Plain Layout
22270 authorized_keys2
22271 \end_layout
22272
22273 \end_inset
22274
22275  file.
22276 \end_layout
22277
22278 \begin_layout Enumerate
22279 Get the Putty's 
22280 \begin_inset Flex Code
22281 status collapsed
22282
22283 \begin_layout Plain Layout
22284 plink
22285 \end_layout
22286
22287 \end_inset
22288
22289 .
22290  In the SVN config file
22291 \begin_inset Foot
22292 status collapsed
22293
22294 \begin_layout Plain Layout
22295 Exact path depends on Windows version, usually somewhere around 
22296 \begin_inset Flex Code
22297 status collapsed
22298
22299 \begin_layout Plain Layout
22300 c:
22301 \backslash
22302 Documents and Settings
22303 \backslash
22304 user
22305 \backslash
22306 Application Data
22307 \backslash
22308 Subversion
22309 \backslash
22310 config
22311 \end_layout
22312
22313 \end_inset
22314
22315  / 
22316 \begin_inset Flex Code
22317 status collapsed
22318
22319 \begin_layout Plain Layout
22320 AppData
22321 \backslash
22322 Roaming
22323 \backslash
22324 Subversion
22325 \end_layout
22326
22327 \end_inset
22328
22329 .
22330 \end_layout
22331
22332 \end_inset
22333
22334 , section [tunnels], setup ssh command, e.g.
22335  
22336 \begin_inset Flex Code
22337 status collapsed
22338
22339 \begin_layout Plain Layout
22340 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22341 \end_layout
22342
22343 \end_inset
22344
22345 .
22346 \begin_inset Foot
22347 status collapsed
22348
22349 \begin_layout Plain Layout
22350 It will usually take a lot of time to get exact command right and it depends
22351  on many things.
22352  For example do not have some remote server saved as a default session in
22353  Putty etc.
22354  If things fail, try to connect via plink without SVN first.
22355 \end_layout
22356
22357 \end_inset
22358
22359
22360 \end_layout
22361
22362 \end_deeper
22363 \begin_layout Enumerate
22364 Checkout the SVN archive, e.
22365 \begin_inset space \thinspace{}
22366 \end_inset
22367
22368 g.
22369 \begin_inset Newline newline
22370 \end_inset
22371
22372
22373 \begin_inset Flex Code
22374 status collapsed
22375
22376 \begin_layout Plain Layout
22377 svn co svn+ssh://user@server/repository_path
22378 \end_layout
22379
22380 \end_inset
22381
22382 .
22383 \end_layout
22384
22385 \begin_layout Subsubsection
22386 End-of-Line Conversions
22387 \end_layout
22388
22389 \begin_layout Standard
22390 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22391  will
22392  use different line endings inside the .lyx files.
22393  This is not a problem as far as \SpecialChar LyX
22394  functionality is concerned, but the commit
22395  diffs will be huge and merge-conflicts prone.
22396  Fortunately SVN itself knows
22397 \begin_inset Foot
22398 status collapsed
22399
22400 \begin_layout Plain Layout
22401 \begin_inset Flex URL
22402 status collapsed
22403
22404 \begin_layout Plain Layout
22405
22406 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22407 \end_layout
22408
22409 \end_inset
22410
22411
22412 \end_layout
22413
22414 \end_inset
22415
22416  how to deal with CR/LF problems when switching .lyx files to the 
22417 \begin_inset Flex Code
22418 status collapsed
22419
22420 \begin_layout Plain Layout
22421 native
22422 \end_layout
22423
22424 \end_inset
22425
22426  mode.
22427 \begin_inset Foot
22428 status collapsed
22429
22430 \begin_layout Plain Layout
22431 For the lazy guys: 
22432 \begin_inset Flex Code
22433 status collapsed
22434
22435 \begin_layout Plain Layout
22436 svn propset svn:eol-style native FILE_NAME
22437 \end_layout
22438
22439 \end_inset
22440
22441
22442 \end_layout
22443
22444 \end_inset
22445
22446
22447 \end_layout
22448
22449 \begin_layout Subsection
22450 GIT commands in \SpecialChar LyX
22451
22452 \end_layout
22453
22454 \begin_layout Standard
22455 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22456 .
22457  You can find the commands in the 
22458 \family sans
22459 File\SpecialChar menuseparator
22460 Version
22461 \begin_inset space ~
22462 \end_inset
22463
22464 Control
22465 \family default
22466  submenu.
22467  Please note that if you use password protected access to repository via
22468  ssh, you will be asked in terminal window.
22469  \SpecialChar LyX
22470  was tested against GIT 1.7.
22471 \begin_inset Foot
22472 status open
22473
22474 \begin_layout Plain Layout
22475 Windows users please note that you need to ensure that git is on the path.
22476  This can be set from within \SpecialChar LyX
22477  at 
22478 \family sans
22479 Tools\SpecialChar menuseparator
22480 Preferences\SpecialChar menuseparator
22481 Paths\SpecialChar menuseparator
22482 PATH prefix
22483 \family default
22484 .
22485 \end_layout
22486
22487 \end_inset
22488
22489
22490 \end_layout
22491
22492 \begin_layout Standard
22493 One big difference of GIT and the other supported version control systems
22494  is the distributed nature of GIT: With traditional version control systems
22495  there is one central server which hosts the repository.
22496  Users commit their changes to the server, and get updates made by other
22497  users from it.
22498  With GIT, users commit to a local repository.
22499  The local repository can be synchronized with one or more remote repositories
22500  using the 
22501 \begin_inset Flex Code
22502 status collapsed
22503
22504 \begin_layout Plain Layout
22505 pull
22506 \end_layout
22507
22508 \end_inset
22509
22510  and 
22511 \begin_inset Flex Code
22512 status collapsed
22513
22514 \begin_layout Plain Layout
22515 push
22516 \end_layout
22517
22518 \end_inset
22519
22520  GIT commands.
22521  \SpecialChar LyX
22522  does not interact in any way with remote GIT repositories.
22523  It works exclusively with the local repository in a very similar way as
22524  with a central CVS or SVN repository.
22525  If you use remote GIT repositories you need to do the 
22526 \begin_inset Flex Code
22527 status collapsed
22528
22529 \begin_layout Plain Layout
22530 pull
22531 \end_layout
22532
22533 \end_inset
22534
22535  and 
22536 \begin_inset Flex Code
22537 status collapsed
22538
22539 \begin_layout Plain Layout
22540 push
22541 \end_layout
22542
22543 \end_inset
22544
22545  operations with your favourite GIT client.
22546 \end_layout
22547
22548 \begin_layout Subsubsection
22549
22550 \family sans
22551 Register
22552 \end_layout
22553
22554 \begin_layout Standard
22555 If your document is not under revision control, this is the only item shown
22556  in the menu.
22557  And if it is under revision control, the 
22558 \family sans
22559 \bar under
22560 R
22561 \bar default
22562 egister
22563 \family default
22564  item is not visible.
22565 \end_layout
22566
22567 \begin_layout Standard
22568 This command registers in GIT your document ONLY in case you have already
22569  the documents directory under GIT control (in particular 
22570 \family typewriter
22571 .git/index
22572 \family default
22573  file exists).
22574  This means you have to checkout the archive by yourself.
22575 \end_layout
22576
22577 \begin_layout Standard
22578 Then you are asked interactively to supply an initial description of the
22579  document.
22580  Don't forget that registered file is not yet commited.
22581 \end_layout
22582
22583 \begin_layout Standard
22584 GIT command that is run: 
22585 \family typewriter
22586 git add 
22587 \begin_inset Quotes eld
22588 \end_inset
22589
22590 <file-name>
22591 \begin_inset Quotes erd
22592 \end_inset
22593
22594
22595 \end_layout
22596
22597 \begin_layout Standard
22598 Read 
22599 \family typewriter
22600 man git
22601 \family default
22602  to understand the switches.
22603 \end_layout
22604
22605 \begin_layout Subsubsection
22606
22607 \family sans
22608 Check In Changes
22609 \end_layout
22610
22611 \begin_layout Standard
22612 When you are finished editing a file, you commit your changes.
22613  When you do this, you are asked for a description of the changes.
22614  After that changes are commited.
22615 \end_layout
22616
22617 \begin_layout Standard
22618 GIT command: 
22619 \family typewriter
22620 git commit -q -m"<description>" <file-name>
22621 \end_layout
22622
22623 \begin_layout Subsubsection
22624
22625 \family sans
22626 Revert To Repository Version
22627 \end_layout
22628
22629 \begin_layout Standard
22630 This will discard all changes made to the document since the last check
22631  in.
22632  You get a warning before changes are discarded.
22633 \end_layout
22634
22635 \begin_layout Standard
22636 GIT command: 
22637 \family typewriter
22638 git checkout -q 
22639 \begin_inset Quotes eld
22640 \end_inset
22641
22642 <file-name>
22643 \begin_inset Quotes erd
22644 \end_inset
22645
22646
22647 \end_layout
22648
22649 \begin_layout Subsubsection
22650
22651 \family sans
22652 Rename
22653 \end_layout
22654
22655 \begin_layout Standard
22656 This will rename the current document including the version history.
22657  It requires a clean document without any changes since the last checkin.
22658  You are asked for a file name and a description of the rename operation.
22659  After that the document is renamed, both locally and in the repository.
22660  If the parent directories of the new and old file names differ, all relative
22661  paths of included files are adjusted (like in 
22662 \family sans
22663 File\SpecialChar menuseparator
22664 Save As
22665 \family default
22666 \SpecialChar ldots
22667 ).
22668  Finally, the document is reloaded using the new name.
22669 \end_layout
22670
22671 \begin_layout Labeling
22672 \labelwidthstring 00.00.0000
22673 GIT
22674 \begin_inset space ~
22675 \end_inset
22676
22677 commands: 
22678 \begin_inset space ~
22679 \end_inset
22680
22681
22682 \begin_inset Newline newline
22683 \end_inset
22684
22685
22686 \begin_inset Flex Code
22687 status collapsed
22688
22689 \begin_layout Plain Layout
22690 git mv 
22691 \family typewriter
22692
22693 \begin_inset Quotes eld
22694 \end_inset
22695
22696 <file-name>
22697 \begin_inset Quotes erd
22698 \end_inset
22699
22700  
22701 \begin_inset Quotes eld
22702 \end_inset
22703
22704 <new-file-name>
22705 \begin_inset Quotes erd
22706 \end_inset
22707
22708
22709 \end_layout
22710
22711 \end_inset
22712
22713
22714 \begin_inset Newline newline
22715 \end_inset
22716
22717
22718 \begin_inset Flex Code
22719 status collapsed
22720
22721 \begin_layout Plain Layout
22722 git commit
22723 \end_layout
22724
22725 \end_inset
22726
22727
22728 \end_layout
22729
22730 \begin_layout Subsubsection
22731
22732 \family sans
22733 Show History
22734 \end_layout
22735
22736 \begin_layout Standard
22737 This shows the complete history of the GIT document.
22738  The output of 
22739 \family typewriter
22740 git log 
22741 \begin_inset Quotes eld
22742 \end_inset
22743
22744 <file-name>
22745 \begin_inset Quotes erd
22746 \end_inset
22747
22748
22749 \family default
22750  is shown in a browser.
22751 \end_layout
22752
22753 \begin_layout Subsubsection
22754 Version Info
22755 \end_layout
22756
22757 \begin_layout Standard
22758 \SpecialChar LyX
22759  supports GIT hash number of the last commit to the file, author name, date
22760  and time of last commit.
22761  All those are extracted from 
22762 \family typewriter
22763 git log -n 1 --pretty=format:%H%n%an%n%ai
22764 \family default
22765 .
22766  Tree version information is obtained via 
22767 \family typewriter
22768 git describe --abbrev --dirty --long
22769 \family default
22770 .
22771  See 
22772 \begin_inset CommandInset ref
22773 LatexCommand ref
22774 reference "subsec:VCS-Revision-Information"
22775
22776 \end_inset
22777
22778  for other details.
22779 \end_layout
22780
22781 \begin_layout Subsection
22782 Further tuning
22783 \end_layout
22784
22785 \begin_layout Standard
22786 With the recent addition of the vc-command function \SpecialChar LyX
22787  power users are allowed
22788  to create their own commands for revision control.
22789 \end_layout
22790
22791 \begin_layout Standard
22792 As an example you can see how two TortoiseSVN commands could be integrated
22793  directly:
22794 \end_layout
22795
22796 \begin_layout Description
22797 Commit: 
22798 \begin_inset Flex Code
22799 status collapsed
22800
22801 \begin_layout Plain Layout
22802 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22803 \end_layout
22804
22805 \end_inset
22806
22807
22808 \end_layout
22809
22810 \begin_layout Description
22811 Revert: 
22812 \begin_inset Flex Code
22813 status collapsed
22814
22815 \begin_layout Plain Layout
22816 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22817 \end_layout
22818
22819 \end_inset
22820
22821
22822 \end_layout
22823
22824 \begin_layout Subsection
22825 Version control and Document comparison
22826 \end_layout
22827
22828 \begin_layout Standard
22829 One of the typical uses of version control is to inspect the changes between
22830  revisions, usually by creating 
22831 \begin_inset Flex Code
22832 status collapsed
22833
22834 \begin_layout Plain Layout
22835 diff
22836 \end_layout
22837
22838 \end_inset
22839
22840  dumps.
22841  While this is useful for plain text files, it is much less useful in the
22842  case of \SpecialChar LyX
22843  files, which have more a complicated structure.
22844  Hence we provide binding to the Document comparison feature.
22845  There are two ways of calling this feature - either by direct call of 
22846 \begin_inset Flex Code
22847 status collapsed
22848
22849 \begin_layout Plain Layout
22850 VC_COMPARE
22851 \end_layout
22852
22853 \end_inset
22854
22855  \SpecialChar LyX
22856  function (for details see \SpecialChar LyX
22857  functions manual) or by icon/menu item 
22858 \begin_inset Flex MenuItem
22859 status collapsed
22860
22861 \begin_layout Plain Layout
22862 Compare with older revision...
22863 \end_layout
22864
22865 \end_inset
22866
22867 .
22868  One can either compare two chosen revisions of the document or he can simply
22869  compare the current version of edited text with older revisions (where
22870  '
22871 \begin_inset Flex MenuItem
22872 status collapsed
22873
22874 \begin_layout Plain Layout
22875 0
22876 \end_layout
22877
22878 \end_inset
22879
22880 ' revisions back means comparison of the edited file with last commited
22881  revision).
22882  
22883 \end_layout
22884
22885 \begin_layout Standard
22886 This feature is supported for SVN and RCS though due to the more complicated
22887  versioning scheme of RCS there is a constraint – when addressing the revisions
22888  in dialog, numbers always point to the last number in RCS revision number,
22889  i.e.
22890  '35' in '1.2.35'.
22891  We don't currently support GIT addressing of revisions, one can just compare
22892  edited document with its revision X steps backs, where X is addressed as
22893  HEAD~X.
22894 \end_layout
22895
22896 \begin_layout Section
22897 Literate Programming
22898 \end_layout
22899
22900 \begin_layout Standard
22901 Updated by 
22902 \noun on
22903 Kayvan Sylvan 
22904 \noun default
22905 (kayvan@sylvan.com)
22906 \noun on
22907
22908 \noun default
22909 original documentation written by 
22910 \noun on
22911 Edmar Wienskoski Jr.
22912
22913 \noun default
22914  (edmar-w-jr@technologist.com)
22915 \end_layout
22916
22917 \begin_layout Subsection
22918 Introduction
22919 \end_layout
22920
22921 \begin_layout Standard
22922 The main purpose of this documentation is to show you how to use \SpecialChar LyX
22923  for literate
22924  programming, where it is assumed that you are familiar with this programming
22925  technique, and know what 
22926 \begin_inset Quotes eld
22927 \end_inset
22928
22929 tangling
22930 \begin_inset Quotes erd
22931 \end_inset
22932
22933  and 
22934 \begin_inset Quotes eld
22935 \end_inset
22936
22937 weaving
22938 \begin_inset Quotes erd
22939 \end_inset
22940
22941  means.
22942  If that is not the case, please follow the web links provided in the following
22943  sections.
22944  There is a lot of good documentation out there covering old development
22945  history to the latest tools tips.
22946 \end_layout
22947
22948 \begin_layout Standard
22949 It is also assumed that you are familiar with \SpecialChar LyX
22950  itself to a point that you
22951  are comfortable changing your \SpecialChar LyX
22952  preferences, and X resources file.
22953  If that is not the case please refer to other \SpecialChar LyX
22954  documentation to cover your
22955  specific needs.
22956 \end_layout
22957
22958 \begin_layout Subsection
22959 Literate Programming
22960 \end_layout
22961
22962 \begin_layout Standard
22963 From the Literate Programming FAQ: 
22964 \end_layout
22965
22966 \begin_layout Quotation
22967 Literate programming is the combination of documentation and source together
22968  in a fashion suited for reading by human beings.
22969  In fact, literate programs should be enjoyable reading, even inviting!
22970  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
22971  and documentation in a single file.
22972  Literate programming tools then parse the file to produce either readable
22973  documentation or compilable source.
22974  The WEB style of literate programming was created by D.
22975 \begin_inset space \thinspace{}
22976 \end_inset
22977
22978 E.
22979  Knuth during the development of his \SpecialChar TeX
22980  typesetting software.
22981  
22982 \end_layout
22983
22984 \begin_layout Standard
22985 Another excerpt says:
22986 \end_layout
22987
22988 \begin_layout Quotation
22989
22990 \emph on
22991 How is literate programming different from verbose commenting?
22992 \end_layout
22993
22994 \begin_layout Quotation
22995 There are three distinguishing characteristics.
22996  In order of importance, they are: 
22997 \begin_inset Separator parbreak
22998 \end_inset
22999
23000
23001 \end_layout
23002
23003 \begin_deeper
23004 \begin_layout Itemize
23005 flexible order of elaboration 
23006 \end_layout
23007
23008 \begin_layout Itemize
23009 automatic support for browsing 
23010 \end_layout
23011
23012 \begin_layout Itemize
23013 typeset documentation, especially diagrams and mathematics 
23014 \end_layout
23015
23016 \end_deeper
23017 \begin_layout Standard
23018 Now that I sparked your curiosity, take a look in the references.
23019 \end_layout
23020
23021 \begin_layout Subsubsection
23022 References
23023 \end_layout
23024
23025 \begin_layout Standard
23026 The complete Literate Programming FAQ can be found at:
23027 \end_layout
23028
23029 \begin_layout Quote
23030 Literate Programming FAQ 
23031 \begin_inset Flex URL
23032 status collapsed
23033
23034 \begin_layout Plain Layout
23035
23036 http://www.literateprogramming.com/lpfaq.pdf
23037 \end_layout
23038
23039 \end_inset
23040
23041
23042 \end_layout
23043
23044 \begin_layout Standard
23045 The FAQ lists 23 (twenty three!) different literate programming tools.
23046  Where some are specialized or 
23047 \begin_inset Quotes eld
23048 \end_inset
23049
23050 tailored
23051 \begin_inset Quotes erd
23052 \end_inset
23053
23054  for particular programming languages, while other have general scope.
23055  I selected 
23056 \noun on
23057 Noweb
23058 \noun default
23059  for my own use for several reasons:
23060 \end_layout
23061
23062 \begin_layout Itemize
23063 It can generate the documentation either in \SpecialChar LaTeX
23064  or HTML.
23065 \end_layout
23066
23067 \begin_layout Itemize
23068 It has a open architecture, i.
23069 \begin_inset space \thinspace{}
23070 \end_inset
23071
23072 e.
23073 \begin_inset space \space{}
23074 \end_inset
23075
23076 it is easy to plug in new filters and to perform special processing that
23077  you may need.
23078  
23079 \end_layout
23080
23081 \begin_layout Itemize
23082 There is a good selection of filters available already (the HTML is one
23083  of them).
23084 \end_layout
23085
23086 \begin_layout Itemize
23087 It is free.
23088 \end_layout
23089
23090 \begin_layout Standard
23091 The Noweb web page can be found at: 
23092 \end_layout
23093
23094 \begin_layout Quote
23095 Noweb home page 
23096 \begin_inset Flex URL
23097 status collapsed
23098
23099 \begin_layout Plain Layout
23100
23101 http://www.cs.virginia.edu/~nr/noweb/
23102 \end_layout
23103
23104 \end_inset
23105
23106
23107 \end_layout
23108
23109 \begin_layout Standard
23110 Starting from there you can reach many other interesting links and even
23111  some literate program examples.
23112 \end_layout
23113
23114 \begin_layout Subsection
23115 \SpecialChar LyX
23116  and Literate Programming with Noweb
23117 \end_layout
23118
23119 \begin_layout Standard
23120 The \SpecialChar LyX
23121  support for Literate Programming is provided by using the generic \SpecialChar LyX
23122
23123  converters mechanism.
23124  This support is provided in a 
23125 \begin_inset Quotes eld
23126 \end_inset
23127
23128 Noweb independent
23129 \begin_inset Quotes erd
23130 \end_inset
23131
23132  way, i.
23133 \begin_inset space \thinspace{}
23134 \end_inset
23135
23136 e.
23137 \begin_inset space \space{}
23138 \end_inset
23139
23140 you will be able to use this new \SpecialChar LyX
23141  feature with some other literate programming
23142  tool of your choice by just changing your \SpecialChar LyX
23143  preferences.
23144 \end_layout
23145
23146 \begin_layout Subsubsection
23147 Generating documents and code (weaving and tangling)
23148 \end_layout
23149
23150 \begin_layout Paragraph
23151 Using the noweb module
23152 \end_layout
23153
23154 \begin_layout Standard
23155 If you have installed Noweb and \SpecialChar LyX
23156  successfully, whenever you open a new document,
23157  after you have chosen its document class, use the Document->Settings menu
23158  to add the 
23159 \begin_inset Quotes eld
23160 \end_inset
23161
23162 noweb
23163 \begin_inset Quotes erd
23164 \end_inset
23165
23166  module.
23167  If Noweb is correctly installed, when you click on the 
23168 \begin_inset Quotes eld
23169 \end_inset
23170
23171 Modules
23172 \begin_inset Quotes erd
23173 \end_inset
23174
23175  link, you will see the 
23176 \begin_inset Quotes eld
23177 \end_inset
23178
23179 noweb
23180 \begin_inset Quotes erd
23181 \end_inset
23182
23183  module in the available list and you can add it to your document.
23184 \end_layout
23185
23186 \begin_layout Paragraph
23187 Typing code in
23188 \end_layout
23189
23190 \begin_layout Standard
23191 \SpecialChar LyX
23192  enables you to write code with a layout named 
23193 \begin_inset Flex Noun
23194 status collapsed
23195
23196 \begin_layout Plain Layout
23197 Chunk
23198 \end_layout
23199
23200 \end_inset
23201
23202 .
23203  Noweb delimits chunks like this:
23204 \end_layout
23205
23206 \begin_layout LyX-Code
23207 <<My code>>=
23208 \end_layout
23209
23210 \begin_layout LyX-Code
23211   code
23212 \end_layout
23213
23214 \begin_layout LyX-Code
23215   more code
23216 \end_layout
23217
23218 \begin_layout LyX-Code
23219   even more code
23220 \end_layout
23221
23222 \begin_layout LyX-Code
23223   @
23224 \end_layout
23225
23226 \begin_layout Standard
23227 The problem is that whatever is written in between the << and the 
23228 \family typewriter
23229 @
23230 \family default
23231  must be taken literally, i.
23232 \begin_inset space \thinspace{}
23233 \end_inset
23234
23235 e.
23236 \begin_inset space \space{}
23237 \end_inset
23238
23239 \SpecialChar LyX
23240  should be prevented from making any special interpretation of what has
23241  been written.
23242  This is also handled by 
23243 \begin_inset Flex Noun
23244 status collapsed
23245
23246 \begin_layout Plain Layout
23247 Chunk
23248 \end_layout
23249
23250 \end_inset
23251
23252 , that works like a normal paragraph but has a free spacing capability.
23253 \end_layout
23254
23255 \begin_layout Standard
23256 As a special note, you can also use the 
23257 \begin_inset Quotes eld
23258 \end_inset
23259
23260 %def
23261 \begin_inset Quotes erd
23262 \end_inset
23263
23264  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23265 rence:
23266 \end_layout
23267
23268 \begin_layout LyX-Code
23269 <<My chunk>>=
23270 \end_layout
23271
23272 \begin_layout LyX-Code
23273 def some_function(args):
23274 \end_layout
23275
23276 \begin_layout LyX-Code
23277    "This is the doc string for this function."
23278 \end_layout
23279
23280 \begin_layout LyX-Code
23281    print "My args: ", args
23282 \end_layout
23283
23284 \begin_layout LyX-Code
23285 @ %def some_function
23286 \end_layout
23287
23288 \begin_layout Standard
23289 For an example of this usage and the resulting cross-reference output, look
23290  at the Literate python program in 
23291 \emph on
23292 LIBDIR/examples/listerrors.lyx
23293 \emph default
23294  which should make this all clear.
23295 \end_layout
23296
23297 \begin_layout Paragraph
23298 Generating the documentation
23299 \end_layout
23300
23301 \begin_layout Standard
23302 At this point you already have a new document file with a proper document
23303  class, and with some code and text on it.
23304  How do I print it? The answer is simple, you select 
23305 \family sans
23306 View\SpecialChar menuseparator
23307 DVI,
23308 \family default
23309  etc.
23310  Just like you would do for a plain document.
23311  No special procedure is required.
23312 \end_layout
23313
23314 \begin_layout Standard
23315 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23316 :
23317 \end_layout
23318
23319 \begin_layout Enumerate
23320 When the 
23321 \family sans
23322 Update\SpecialChar menuseparator
23323 DVI
23324 \family default
23325  menu option is chosen, a \SpecialChar LaTeX
23326  file is generated.
23327  
23328 \begin_inset Separator parbreak
23329 \end_inset
23330
23331
23332 \end_layout
23333
23334 \begin_deeper
23335 \begin_layout Standard
23336 If the document is of any literate class the generated file will be named
23337  with an extension name defined by the 
23338 \begin_inset Quotes eld
23339 \end_inset
23340
23341 literate
23342 \begin_inset Quotes erd
23343 \end_inset
23344
23345  format (defined in the Preferences panel), otherwise the file will have
23346  the usual 
23347 \family typewriter
23348 .tex
23349 \family default
23350  extension.
23351 \end_layout
23352
23353 \end_deeper
23354 \begin_layout Enumerate
23355 Note that the only difference so far is in the name of the file, no special
23356  processing is required by \SpecialChar LyX
23357 .
23358  Given that you formatted the code using the 
23359 \begin_inset Flex Noun
23360 status collapsed
23361
23362 \begin_layout Plain Layout
23363 Chunk
23364 \end_layout
23365
23366 \end_inset
23367
23368  layout that, by itself, takes care of the business.
23369 \end_layout
23370
23371 \begin_layout Enumerate
23372 If the document is of any literate class \SpecialChar LyX
23373  will then use the internal \SpecialChar LyX
23374  to
23375  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23376  converter
23377 \begin_inset Foot
23378 status collapsed
23379
23380 \begin_layout Plain Layout
23381 The converters are defined in the 
23382 \family sans
23383 Tools\SpecialChar menuseparator
23384 Preferences
23385 \family default
23386  panel, under the 
23387 \begin_inset Quotes eld
23388 \end_inset
23389
23390 Conversion
23391 \begin_inset Quotes erd
23392 \end_inset
23393
23394  tab.
23395  See section 
23396 \emph on
23397 Converters
23398 \emph default
23399  of the 
23400 \emph on
23401 Customization
23402 \emph default
23403  manual for general information about converters.
23404 \end_layout
23405
23406 \end_inset
23407
23408  to generate the \SpecialChar LaTeX
23409  file.
23410 \begin_inset Separator parbreak
23411 \end_inset
23412
23413
23414 \end_layout
23415
23416 \begin_deeper
23417 \begin_layout Standard
23418 Otherwise it will just skip this step.
23419 \end_layout
23420
23421 \end_deeper
23422 \begin_layout Enumerate
23423 Finally, \SpecialChar LaTeX
23424  is invoked and the regular post processing continues as in a plain
23425  document.
23426 \end_layout
23427
23428 \begin_layout Standard
23429 Independence from a particular 
23430 \begin_inset Quotes eld
23431 \end_inset
23432
23433 literate tool
23434 \begin_inset Quotes erd
23435 \end_inset
23436
23437  is easily achieved by changing the commands that are run by the various
23438  converters.
23439 \end_layout
23440
23441 \begin_layout Paragraph
23442 Generating the code
23443 \end_layout
23444
23445 \begin_layout Standard
23446 When the build menu option is chosen or the corresponding button in the
23447  toolbar is pressed, a \SpecialChar LaTeX
23448  file is generated just like step 1 above.
23449  Next, \SpecialChar LyX
23450  invokes the 
23451 \family typewriter
23452 Noweb->Program
23453 \family default
23454  converter.
23455  This converter needs to be defined by the user and is not installed by
23456  default, though the Program format is.
23457  This converter (like any other converter) will have two parts:
23458 \end_layout
23459
23460 \begin_layout Enumerate
23461 The converter program itself.
23462  This program performs the conversion from the one format to the other (in
23463  this case, from the Noweb format to the Program pseudo-format).
23464 \end_layout
23465
23466 \begin_layout Enumerate
23467 The error log parser.
23468  This is a program whose sole purpose is to rewrite error messages in a
23469  format that \SpecialChar LyX
23470  understands.
23471  This makes it possible for \SpecialChar LyX
23472  to place error boxes in the right places in
23473  the file buffer.
23474 \end_layout
23475
23476 \begin_layout Standard
23477 The first part, the 
23478 \begin_inset Quotes eld
23479 \end_inset
23480
23481 Converter
23482 \begin_inset Quotes erd
23483 \end_inset
23484
23485  setting, should be set to
23486 \begin_inset Newline newline
23487 \end_inset
23488
23489
23490 \begin_inset Quotes eld
23491 \end_inset
23492
23493
23494 \family typewriter
23495 build-script $$i
23496 \family default
23497  $$r
23498 \begin_inset Quotes erd
23499 \end_inset
23500
23501 .
23502 \begin_inset Newline newline
23503 \end_inset
23504
23505 This basically means that \SpecialChar LyX
23506  will call 
23507 \begin_inset Quotes eld
23508 \end_inset
23509
23510 build-script
23511 \begin_inset Quotes erd
23512 \end_inset
23513
23514  (a program or script) with the name of the Noweb file (normally a file
23515  in the \SpecialChar LyX
23516  temp directory) and the directory path of the original \SpecialChar LyX
23517  file.
23518  
23519 \end_layout
23520
23521 \begin_layout Standard
23522 This is an implementation of 
23523 \begin_inset Quotes eld
23524 \end_inset
23525
23526 build-script
23527 \begin_inset Quotes erd
23528 \end_inset
23529
23530  that you can place in a directory on your path:
23531 \end_layout
23532
23533 \begin_layout Standard
23534 \begin_inset VSpace defskip
23535 \end_inset
23536
23537
23538 \end_layout
23539
23540 \begin_layout Standard
23541 \begin_inset Newpage pagebreak
23542 \end_inset
23543
23544
23545 \end_layout
23546
23547 \begin_layout Standard
23548
23549 \family sans
23550 #!/bin/sh
23551 \end_layout
23552
23553 \begin_layout Standard
23554
23555 \family sans
23556 #
23557 \end_layout
23558
23559 \begin_layout Standard
23560
23561 \family sans
23562 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23563 \end_layout
23564
23565 \begin_layout Standard
23566 \begin_inset VSpace defskip
23567 \end_inset
23568
23569
23570 \end_layout
23571
23572 \begin_layout Standard
23573 The next part of the converter setting is the 
23574 \begin_inset Quotes eld
23575 \end_inset
23576
23577 Flags
23578 \begin_inset Quotes erd
23579 \end_inset
23580
23581  which is to be set to
23582 \begin_inset Newline newline
23583 \end_inset
23584
23585
23586 \begin_inset Quotes eld
23587 \end_inset
23588
23589
23590 \family typewriter
23591 parselog=$$s/scripts/listerrors
23592 \family default
23593
23594 \begin_inset Quotes erd
23595 \end_inset
23596
23597 .
23598 \begin_inset Newline newline
23599 \end_inset
23600
23601 This will run any errors that are generated by the 
23602 \begin_inset Quotes eld
23603 \end_inset
23604
23605 build-script
23606 \begin_inset Quotes erd
23607 \end_inset
23608
23609  process through the 
23610 \begin_inset Quotes eld
23611 \end_inset
23612
23613 listerrors
23614 \begin_inset Quotes erd
23615 \end_inset
23616
23617  program.
23618 \end_layout
23619
23620 \begin_layout Standard
23621 The build will normally take place in \SpecialChar LyX
23622 's temporary directory, so the files
23623  produced by the conversion will be in that directory.
23624  \SpecialChar LyX
23625  will copy out what it regards as the `main' file, but the 
23626 \family typewriter
23627 Noweb->Program
23628 \family default
23629  conversion may produce several files, and so most of these would then be
23630  deleted when \SpecialChar LyX
23631  was closed.
23632  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23633  the build-script chunk can place the generated files in that location.
23634 \end_layout
23635
23636 \begin_layout Paragraph
23637 Build instructions in the document
23638 \end_layout
23639
23640 \begin_layout Standard
23641 The last piece of the integration between \SpecialChar LyX
23642  and noweb is the 
23643 \begin_inset Quotes eld
23644 \end_inset
23645
23646 build-script
23647 \begin_inset Quotes erd
23648 \end_inset
23649
23650  chunk.
23651  Generally, the instructions for building your program should be embedded
23652  in a chunk of its own.
23653  The noweb-specific 
23654 \begin_inset Quotes eld
23655 \end_inset
23656
23657 build-script
23658 \begin_inset Quotes erd
23659 \end_inset
23660
23661  above uses the notangle command to look for this chunk (called 
23662 \begin_inset Quotes eld
23663 \end_inset
23664
23665 build-script
23666 \begin_inset Quotes erd
23667 \end_inset
23668
23669 ) and runs its contents through 
23670 \begin_inset Quotes eld
23671 \end_inset
23672
23673 sh
23674 \begin_inset Quotes erd
23675 \end_inset
23676
23677 .
23678 \end_layout
23679
23680 \begin_layout Standard
23681 Typically, such a chunk would look something like this:
23682 \end_layout
23683
23684 \begin_layout LyX-Code
23685 <<build-script>>=
23686 \end_layout
23687
23688 \begin_layout LyX-Code
23689 #!/bin/sh
23690 \begin_inset Newline newline
23691 \end_inset
23692
23693 if [ -z "${NOWEB_SOURCE}" ]
23694 \begin_inset Newline newline
23695 \end_inset
23696
23697 then
23698 \end_layout
23699
23700 \begin_layout LyX-Code
23701 NOWEB_SOURCE=myfile.nw
23702 \begin_inset Newline newline
23703 \end_inset
23704
23705 fi
23706 \begin_inset Newline newline
23707 \end_inset
23708
23709 [...
23710  code to extract files ...
23711  use NOWEB_OUTPUT_DIR here ...]
23712 \begin_inset Newline newline
23713 \end_inset
23714
23715 [...
23716  code to compile files ...]
23717 \begin_inset Newline newline
23718 \end_inset
23719
23720 @
23721 \end_layout
23722
23723 \begin_layout Standard
23724 Look in 
23725 \emph on
23726 LIBDIR/examples/listerrors.lyx
23727 \emph default
23728  or in 
23729 \emph on
23730 LIBDIR/examples/Literate.lyx
23731 \emph default
23732  which implement two versions of the 
23733 \begin_inset Quotes eld
23734 \end_inset
23735
23736 listerrors
23737 \begin_inset Quotes erd
23738 \end_inset
23739
23740  program for some illustrations of how all of these pieces go together or
23741  in 
23742 \emph on
23743 LIBDIR/examples/noweb2lyx.lyx.
23744
23745 \emph default
23746  Interestingly, these three files show off the language-indepence of the
23747  \SpecialChar LyX
23748  literate programming support since they are written in Python, C and Perl
23749  respectively.
23750 \end_layout
23751
23752 \begin_layout Subsubsection
23753 Configuring \SpecialChar LyX
23754
23755 \end_layout
23756
23757 \begin_layout Standard
23758 All the Literate Programming support is configured by the 
23759 \family sans
23760 Tools\SpecialChar menuseparator
23761 Preferences
23762 \family default
23763  panel in the 
23764 \begin_inset Quotes eld
23765 \end_inset
23766
23767 File Handling
23768 \begin_inset Quotes erd
23769 \end_inset
23770
23771  tab.
23772  The important parts are:
23773 \end_layout
23774
23775 \begin_layout Description
23776 the
23777 \begin_inset space ~
23778 \end_inset
23779
23780
23781 \begin_inset Quotes eld
23782 \end_inset
23783
23784 NoWeb
23785 \begin_inset Quotes erd
23786 \end_inset
23787
23788
23789 \begin_inset space ~
23790 \end_inset
23791
23792 format Set up via the File Formats tab, this is where the Noweb-specific
23793  pieces are set up.
23794  The 
23795 \family sans
23796 GUI Name
23797 \family default
23798  is set to 
23799 \family typewriter
23800 NoWeb
23801 \family default
23802 , the file extension is set to 
23803 \family typewriter
23804 .nw
23805 \family default
23806 .
23807  This tells \SpecialChar LyX
23808  to create a file with a 
23809 \family typewriter
23810 .nw
23811 \family default
23812  extension in the first step of the conversion process.
23813 \end_layout
23814
23815 \begin_layout Description
23816 the
23817 \begin_inset space ~
23818 \end_inset
23819
23820
23821 \family sans
23822 Program
23823 \family default
23824
23825 \begin_inset space ~
23826 \end_inset
23827
23828 format This is an empty format whose sole purpose is to be the endpoint
23829  of a conversion (which then allows us to set up a converter for it).
23830 \end_layout
23831
23832 \begin_layout Description
23833
23834 \family sans
23835 NoWeb
23836 \family default
23837 ->
23838 \family sans
23839 \SpecialChar LaTeX
23840
23841 \family default
23842  This converter performs the 
23843 \begin_inset Quotes eld
23844 \end_inset
23845
23846 weaving
23847 \begin_inset Quotes erd
23848 \end_inset
23849
23850  of the literate document.
23851  For Noweb, it is set to 
23852 \begin_inset Quotes eld
23853 \end_inset
23854
23855
23856 \family typewriter
23857 noweave -delay -index $$i > $$o
23858 \family default
23859
23860 \begin_inset Quotes erd
23861 \end_inset
23862
23863
23864 \end_layout
23865
23866 \begin_layout Description
23867
23868 \family sans
23869 NoWeb
23870 \family default
23871 ->
23872 \family sans
23873 Program
23874 \family default
23875  This performs the 
23876 \begin_inset Quotes eld
23877 \end_inset
23878
23879 tangling step
23880 \begin_inset Quotes erd
23881 \end_inset
23882
23883 .
23884  As stated above, the Converter is set to 
23885 \begin_inset Quotes eld
23886 \end_inset
23887
23888
23889 \family typewriter
23890 build-script $$i
23891 \family default
23892  $$r
23893 \begin_inset Quotes erd
23894 \end_inset
23895
23896 , with Flags set to
23897 \begin_inset Newline newline
23898 \end_inset
23899
23900
23901 \begin_inset Quotes eld
23902 \end_inset
23903
23904
23905 \family typewriter
23906 parselog=$$s/scripts/listerrors
23907 \family default
23908
23909 \begin_inset Quotes erd
23910 \end_inset
23911
23912 .
23913 \end_layout
23914
23915 \begin_layout Subsubsection
23916 Debug extensions
23917 \end_layout
23918
23919 \begin_layout Standard
23920 There is also a new function implemented in the \SpecialChar LyX
23921  server, the 
23922 \begin_inset Quotes eld
23923 \end_inset
23924
23925 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
23926  
23927 \end_layout
23928
23929 \begin_layout Standard
23930 When debugging code with ddd/gdb, it is possible to invoke a text editor
23931  at the current execution position with a single key stroke.
23932  The default ddd configuration for that is shift-ctrl-V.
23933  It happens that you can define the editor command line invocation in ddd
23934  by accessing the 
23935 \family sans
23936 Edit\SpecialChar menuseparator
23937 Preferences\SpecialChar menuseparator
23938 Helpers
23939 \family default
23940  dialog and changing the "Edit Sources" entry.
23941 \end_layout
23942
23943 \begin_layout Standard
23944 I take advantage of the newly created \SpecialChar LyX
23945  server function and this ddd feature,
23946  and set 
23947 \begin_inset Quotes eld
23948 \end_inset
23949
23950 Edit Sources
23951 \begin_inset Quotes erd
23952 \end_inset
23953
23954  to:
23955 \end_layout
23956
23957 \begin_layout Standard
23958 \begin_inset VSpace defskip
23959 \end_inset
23960
23961
23962 \end_layout
23963
23964 \begin_layout Standard
23965
23966 \family sans
23967 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
23968 \end_layout
23969
23970 \begin_layout Standard
23971 \begin_inset VSpace defskip
23972 \end_inset
23973
23974
23975 \end_layout
23976
23977 \begin_layout Standard
23978 With this, whenever you are using ddd and find a point in the program that
23979  you want to edit, you just press shift-ctrl-V (in the ddd window), and
23980  ddd will forward this information to \SpecialChar LyX
23981  through the \SpecialChar LyX
23982  server and then the
23983  \SpecialChar LyX
23984  window will show the same file with the cursor at the same position ddd
23985  was pointing to.
23986  No more guessing or long scrolling to locate a point in the program back
23987  from debugging !
23988 \end_layout
23989
23990 \begin_layout Standard
23991 Note however that you must enable the \SpecialChar LyX
23992  server to get this feature working
23993  (it is disabled by default).
23994  You can enable it in 
23995 \family sans
23996 Preferences
23997 \family default
23998  (tabs 
23999 \family sans
24000 Inputs
24001 \family default
24002
24003 \family sans
24004 Paths
24005 \family default
24006 ) by entering in the 
24007 \family sans
24008 \SpecialChar LyX
24009 server pipe
24010 \family default
24011  a path like 
24012 \begin_inset Quotes eld
24013 \end_inset
24014
24015
24016 \family typewriter
24017 /home/<your-home-directory>/.lyx/lyxpipe
24018 \family default
24019
24020 \begin_inset Quotes erd
24021 \end_inset
24022
24023
24024 \end_layout
24025
24026 \begin_layout Standard
24027 Read the \SpecialChar LyX
24028  server documentation in the 
24029 \emph on
24030 Customization Manual
24031 \emph default
24032  for further information.
24033 \end_layout
24034
24035 \begin_layout Subsubsection
24036 Toolbar extensions
24037 \end_layout
24038
24039 \begin_layout Standard
24040 There are six new buttons that can be added to your \SpecialChar LyX
24041  toolbar.
24042  Five of these buttons are short cuts to layout styles: 
24043 \family sans
24044 Standard
24045 \family default
24046
24047 \family sans
24048 Section
24049 \family default
24050
24051 \family sans
24052 \SpecialChar LaTeX
24053
24054 \family default
24055
24056 \family sans
24057 \SpecialChar LyX
24058 -Code
24059 \family default
24060 , and 
24061 \family sans
24062 Chunk
24063 \family default
24064 .
24065  The last one is a short cut to the 
24066 \begin_inset Quotes eld
24067 \end_inset
24068
24069 Build Program
24070 \begin_inset Quotes erd
24071 \end_inset
24072
24073  File menu entry.
24074  
24075 \end_layout
24076
24077 \begin_layout Standard
24078 \SpecialChar LyX
24079  has a range of buttons that are available for tool bar customization.
24080  In my toolbar I like to combine the six short cuts above with two more:
24081  One for 
24082 \family sans
24083 Document
24084 \family default
24085 \SpecialChar menuseparator
24086
24087 \family sans
24088 Update
24089 \family default
24090 \SpecialChar menuseparator
24091
24092 \family sans
24093 DVI
24094 \family default
24095  and the other for 
24096 \family sans
24097 Document\SpecialChar menuseparator
24098 View\SpecialChar menuseparator
24099 DVI
24100 \family default
24101  File menu entries.
24102  Here is how it looks like:
24103 \end_layout
24104
24105 \begin_layout LyX-Code
24106 Toolbar
24107 \end_layout
24108
24109 \begin_layout LyX-Code
24110   Layouts
24111 \end_layout
24112
24113 \begin_layout LyX-Code
24114   Icon "layout Standard"
24115 \end_layout
24116
24117 \begin_layout LyX-Code
24118   Icon "layout Section"
24119 \end_layout
24120
24121 \begin_layout LyX-Code
24122   Icon "layout \SpecialChar LaTeX
24123 "
24124 \end_layout
24125
24126 \begin_layout LyX-Code
24127   Icon "layout \SpecialChar LyX
24128 -Code"
24129 \end_layout
24130
24131 \begin_layout LyX-Code
24132   Icon "layout Chunk"
24133 \end_layout
24134
24135 \begin_layout LyX-Code
24136   Separator
24137 \end_layout
24138
24139 \begin_layout LyX-Code
24140   Icon "buffer-view"
24141 \end_layout
24142
24143 \begin_layout LyX-Code
24144   Icon "buffer-typeset"
24145 \end_layout
24146
24147 \begin_layout LyX-Code
24148   Icon "build-program"
24149 \end_layout
24150
24151 \begin_layout LyX-Code
24152   Separator
24153 \end_layout
24154
24155 \begin_layout LyX-Code
24156 .
24157 \end_layout
24158
24159 \begin_layout LyX-Code
24160 .
24161 \end_layout
24162
24163 \begin_layout LyX-Code
24164 .
24165 \end_layout
24166
24167 \begin_layout LyX-Code
24168 End
24169 \end_layout
24170
24171 \begin_layout Subsubsection
24172 Colors customization
24173 \end_layout
24174
24175 \begin_layout Standard
24176 There are a number of colors in \SpecialChar LyX
24177  that can be customized in 
24178 \family sans
24179 Preferences
24180 \family default
24181 .
24182  One of the things that bothers people is the \SpecialChar LaTeX
24183  font color.
24184  The default color is red, since the chunks uses \SpecialChar LaTeX
24185  font, and there is a lot
24186  of chunks in literate documents, you may get tired of seeing everything
24187  in red.
24188  You can change it by going to the tabs 
24189 \family sans
24190 Look&Feel
24191 \family default
24192
24193 \family sans
24194 Colors.
24195 \end_layout
24196
24197 \begin_layout Standard
24198 The next thing is the visible presence of the newline character in the screen.
24199  You can choose the color of this particular character and make it blend
24200  in the background.
24201  I recommend you choosing a color that is close to the background but not
24202  equal, that way you still can see it is there, but it is not bothering
24203  you anymore.
24204 \end_layout
24205
24206 \begin_layout Subsection
24207 \SpecialChar LyX
24208  and knitr/Sweave
24209 \end_layout
24210
24211 \begin_layout Standard
24212 Support for 
24213 \family sans
24214 knitr
24215 \family default
24216  and 
24217 \family sans
24218 Sweave
24219 \family default
24220  is documented in the 
24221 \emph on
24222 knitr.lyx
24223 \emph default
24224  example file and in the Sweave manual (menu 
24225 \family sans
24226 Help\SpecialChar menuseparator
24227 Specific Manuals
24228 \family default
24229 ).
24230 \end_layout
24231
24232 \begin_layout Chapter
24233 Special features
24234 \end_layout
24235
24236 \begin_layout Standard
24237 You can do everything with \SpecialChar LyX
24238  that you can do with \SpecialChar LaTeX
24239 .
24240  However, \SpecialChar LyX
24241  cannot support every \SpecialChar LaTeX
24242  feature directly.
24243  But you can always use \SpecialChar TeX
24244  Code.
24245  This chapter shows you some more special things you might want to use.
24246  For other special things you can do with figures, tables, floats, boxes
24247  and notes, have a look at the 
24248 \emph on
24249 Embedded
24250 \begin_inset space ~
24251 \end_inset
24252
24253 Objects
24254 \emph default
24255  manual.
24256 \end_layout
24257
24258 \begin_layout Section
24259 Multiple Text Columns
24260 \end_layout
24261
24262 \begin_layout Standard
24263 This feature is independent of the option 
24264 \family sans
24265 Two-column document
24266 \family default
24267  in the document settings under 
24268 \family sans
24269 Text Layout
24270 \family default
24271 .
24272  If you want to have 2
24273 \begin_inset space ~
24274 \end_inset
24275
24276 columns for the whole document, it is recommended to use the 
24277 \family sans
24278 Two-column document
24279 \family default
24280  option.
24281  For all other cases use this feature.
24282 \end_layout
24283
24284 \begin_layout Standard
24285 To use multiple text columns in your document, you have to load the module
24286  
24287 \family sans
24288 Multiple Columns
24289 \family default
24290  (menu 
24291 \family sans
24292 Document\SpecialChar menuseparator
24293 Settings\SpecialChar menuseparator
24294 Modules
24295 \family default
24296 ) and must have the \SpecialChar LaTeX
24297 -package 
24298 \series bold
24299 multicol
24300 \series default
24301  installed.
24302 \end_layout
24303
24304 \begin_layout Standard
24305 Footnotes within multiple columns will be placed at the bottom of the page
24306  and not under each column.
24307  Within the different columns you can use everything, with the limitation
24308  that for floats you need to use the float option 
24309 \family sans
24310 Span columns
24311 \family default
24312 .
24313 \end_layout
24314
24315 \begin_layout Subsection
24316 Basics
24317 \end_layout
24318
24319 \begin_layout Standard
24320 If you want to have 2
24321 \begin_inset space ~
24322 \end_inset
24323
24324 columns in your text, insert a multicolumn inset via the menu 
24325 \family sans
24326 Insert\SpecialChar menuseparator
24327 Custom
24328 \begin_inset space ~
24329 \end_inset
24330
24331 Insets\SpecialChar menuseparator
24332 Multiple
24333 \begin_inset space ~
24334 \end_inset
24335
24336 Columns
24337 \family default
24338  where the columns should start.
24339  Write all text that should be printed in 2
24340 \begin_inset space ~
24341 \end_inset
24342
24343 columns into this inset.
24344 \end_layout
24345
24346 \begin_layout Standard
24347 Here is an example:
24348 \end_layout
24349
24350 \begin_layout Standard
24351 \noindent
24352 \begin_inset Flex Multiple Columns
24353 status open
24354
24355 \begin_layout Plain Layout
24356 \noindent
24357
24358 \series bold
24359 \size small
24360 The Adventure of the Empty House
24361 \series default
24362
24363 \begin_inset Newline newline
24364 \end_inset
24365
24366 by Sir Arthur Conan Doyle
24367 \end_layout
24368
24369 \begin_layout Plain Layout
24370
24371 \size small
24372 It was in the spring of the year 1894 that all London was interested, and
24373  the fashionable world dismayed, by the murder of the Honourable Ronald
24374  Adair under most unusual and inexplicable circumstances.
24375  The public has already learned those particulars of the crime which came
24376  out in the police investigation, but a good deal was suppressed upon that
24377  occasion, since the case for the prosecution was so overwhelmingly strong
24378  that it was not necessary to bring forward all the facts.
24379  Only now, at the end of nearly ten years, am I allowed to supply those
24380  missing links which make up the whole of that remarkable chain.
24381  The crime was of interest in itself, but that interest was as nothing to
24382  me compared to the inconceivable sequel, which afforded me the greatest
24383  shock and surprise of any event in my adventurous life.
24384  Even now, after this long interval, I find myself thrilling as I think
24385  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24386 ty which utterly submerged my mind.
24387  Let me say to that public, which has shown some interest in those glimpses
24388  which I have occasionally given them of the thoughts and actions of a very
24389  remarkable man, that they are not to blame me if I have not shared my knowledge
24390  with them, for I should have considered it my first duty to do so, had
24391  I not been barred by a positive prohibition from his own lips, which was
24392  only withdrawn upon the third of last month.
24393 \end_layout
24394
24395 \end_inset
24396
24397
24398 \end_layout
24399
24400 \begin_layout Standard
24401 To get 3 or more columns, set the cursor into the multicolumn inset and
24402  use the menu 
24403 \family sans
24404 Insert\SpecialChar menuseparator
24405 Number
24406 \begin_inset space ~
24407 \end_inset
24408
24409 of
24410 \begin_inset space ~
24411 \end_inset
24412
24413 Columns
24414 \family default
24415 .
24416  The number of the desired columns is written into that inset (for 3
24417 \begin_inset space ~
24418 \end_inset
24419
24420 columns write 
24421 \begin_inset Quotes eld
24422 \end_inset
24423
24424 3
24425 \begin_inset Quotes erd
24426 \end_inset
24427
24428 ).
24429 \begin_inset Newline newline
24430 \end_inset
24431
24432 Here is an example with 3
24433 \begin_inset space ~
24434 \end_inset
24435
24436 columns:
24437 \end_layout
24438
24439 \begin_layout Standard
24440 \begin_inset Flex Multiple Columns
24441 status open
24442
24443 \begin_layout Plain Layout
24444
24445 \size footnotesize
24446 \begin_inset Argument 1
24447 status open
24448
24449 \begin_layout Plain Layout
24450 3
24451 \end_layout
24452
24453 \end_inset
24454
24455 It can be imagined that my close intimacy with Sherlock Holmes had interested
24456  me deeply in crime, and that after his disappearance I never failed to
24457  read with care the various problems which came before the public.
24458  And I even attempted, more than once, for my own private satisfaction,
24459  to employ his methods in their solution, though with indifferent success.
24460  There was none, however, which appealed to me like this tragedy of Ronald
24461  Adair.
24462  As I read the evidence at the inquest, which led up to a verdict of willful
24463  murder against some person or persons unknown, I realized more clearly
24464  than I had ever done the loss which the community had sustained by the
24465  death of Sherlock Holmes.
24466  There were points about this strange business which would, I was sure,
24467  have specially appealed to him, and the efforts of the police would have
24468  been supplemented, or more probably anticipated, by the trained observation
24469  and the alert mind of the first criminal agent in Europe.
24470  All day, as I drove upon my round, I turned over the case in my mind and
24471  found no explanation which appeared to me to be adequate.
24472  At the risk of telling a twice-told tale, I will recapitulate the facts
24473  as they were known to the public at the conclusion of the inquest.
24474 \end_layout
24475
24476 \end_inset
24477
24478
24479 \end_layout
24480
24481 \begin_layout Standard
24482 You can have up to 10
24483 \begin_inset space ~
24484 \end_inset
24485
24486 columns if you want to, but that might not be very pleasant for the readers
24487  of your document.
24488 \end_layout
24489
24490 \begin_layout Standard
24491 \begin_inset Newpage newpage
24492 \end_inset
24493
24494
24495 \end_layout
24496
24497 \begin_layout Subsection
24498 Columns inside Columns
24499 \end_layout
24500
24501 \begin_layout Standard
24502 You can also have columns inside columns:
24503 \end_layout
24504
24505 \begin_layout Standard
24506 \begin_inset Flex Multiple Columns
24507 status open
24508
24509 \begin_layout Plain Layout
24510
24511 \size footnotesize
24512 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24513  at that time governor of one of the Australian colonies.
24514  Adair's mother had returned from Australia to undergo the operation for
24515  cataract, and she, her son Ronald, and her daughter Hilda were living together
24516  at 427 Park Lane.
24517 \end_layout
24518
24519 \begin_layout Plain Layout
24520 \begin_inset Flex Multiple Columns
24521 status open
24522
24523 \begin_layout Plain Layout
24524
24525 \size footnotesize
24526 The youth moved in the best society–had, so far as was known, no enemies
24527  and no particular vices.
24528  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24529  had been broken off by mutual consent some months before, and there was
24530  no sign that it had left any very profound feeling behind it.
24531  For the rest {sic} the man's life moved in a narrow and conventional circle,
24532  for his habits were quiet and his nature unemotional.
24533  Yet it was upon this easy-going young aristocrat that death came, in most
24534  strange and unexpected form, between the hours of ten and eleven-twenty
24535  on the night of March 30, 1894.
24536 \end_layout
24537
24538 \end_inset
24539
24540
24541 \end_layout
24542
24543 \begin_layout Plain Layout
24544
24545 \size footnotesize
24546 Ronald Adair was fond of cards–playing continually, but never for such stakes
24547  as would hurt him.
24548  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24549  It was shown that, after dinner on the day of his death, he had played
24550  a rubber of whist at the latter club.
24551  He had also played there in the afternoon.
24552
24553 \size default
24554  
24555 \size footnotesize
24556 The evidence of those who had played with him– Mr.
24557  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24558  and that there was a fairly equal fall of the cards.
24559  Adair might have lost five pounds, but not more.
24560  His fortune was a considerable one, and such a loss could not in any way
24561  affect him.
24562  He had played nearly every day at one club or other, but he was a cautious
24563  player, and usually rose a winner.
24564  It came out in evidence that, in partnership with Colonel Moran, he had
24565  actually won as much as four hundred and twenty pounds in a sitting, some
24566  weeks before, from Godfrey Milner and Lord Balmoral.
24567  So much for his recent history as it came out at the inquest.
24568 \end_layout
24569
24570 \end_inset
24571
24572
24573 \end_layout
24574
24575 \begin_layout Subsection
24576 Advanced Examples
24577 \end_layout
24578
24579 \begin_layout Standard
24580 The examples in this section show some more special features of multiple
24581  columns.
24582 \end_layout
24583
24584 \begin_layout Standard
24585 For more features of multiple columns, have a look at the documentation
24586  of the \SpecialChar LaTeX
24587 -package 
24588 \series bold
24589 multicol
24590 \series default
24591
24592 \begin_inset CommandInset citation
24593 LatexCommand cite
24594 key "multicol"
24595
24596 \end_inset
24597
24598 .
24599 \end_layout
24600
24601 \begin_layout Subsubsection
24602 Preface
24603 \end_layout
24604
24605 \begin_layout Standard
24606 To add a preface text for multiple columns, set the cursor into the multicolumn
24607  inset and use the menu 
24608 \family sans
24609 Insert\SpecialChar menuseparator
24610 Preface
24611 \family default
24612 .
24613  Write your preface text into that inset.
24614 \begin_inset Newline newline
24615 \end_inset
24616
24617 This is an example with some preface text:
24618 \end_layout
24619
24620 \begin_layout Standard
24621 \begin_inset VSpace bigskip
24622 \end_inset
24623
24624
24625 \end_layout
24626
24627 \begin_layout Standard
24628 \begin_inset Flex Multiple Columns
24629 status open
24630
24631 \begin_layout Plain Layout
24632 \begin_inset Argument 2
24633 status open
24634
24635 \begin_layout Plain Layout
24636 And the story continues and continues and continues and continues\SpecialChar ldots
24637
24638 \end_layout
24639
24640 \end_inset
24641
24642
24643 \size small
24644 On the evening of the crime, he returned from the club exactly at ten.
24645  His mother and sister were out spending the evening with a relation.
24646  The servant deposed that she heard him enter the front room on the second
24647  floor, generally used as his sitting-room.
24648  She had lit a fire there, and as it smoked she had opened the window.
24649  No sound was heard from the room until eleven-twenty, the hour of the return
24650  of Lady Maynooth and her daughter.
24651  Desiring to say good-night, she attempted to enter her son's room.
24652  The door was locked on the inside, and no answer could be got to their
24653  cries and knocking.
24654  Help was obtained, and the door forced.
24655  The unfortunate young man was found lying near the table.
24656  His head had been horribly mutilated by an expanding revolver bullet, but
24657  no weapon of any sort was to be found in the room.
24658 \end_layout
24659
24660 \end_inset
24661
24662
24663 \end_layout
24664
24665 \begin_layout Standard
24666 You can also use a section heading as the preface if you use a section command
24667  as \SpecialChar TeX
24668  Code.
24669  For example the command
24670 \end_layout
24671
24672 \begin_layout Standard
24673
24674 \series bold
24675
24676 \backslash
24677 subsection{subsection title}
24678 \end_layout
24679
24680 \begin_layout Standard
24681 creates a subsection.
24682  In this example the preface is a subsubsection:
24683 \end_layout
24684
24685 \begin_layout Standard
24686 \begin_inset Flex Multiple Columns
24687 status open
24688
24689 \begin_layout Plain Layout
24690 \begin_inset Argument 2
24691 status open
24692
24693 \begin_layout Plain Layout
24694 \begin_inset ERT
24695 status collapsed
24696
24697 \begin_layout Plain Layout
24698
24699
24700 \backslash
24701 subsubsection{
24702 \end_layout
24703
24704 \end_inset
24705
24706 This is a subsubsection heading as a preface
24707 \begin_inset ERT
24708 status collapsed
24709
24710 \begin_layout Plain Layout
24711
24712 }
24713 \end_layout
24714
24715 \end_inset
24716
24717
24718 \end_layout
24719
24720 \end_inset
24721
24722
24723 \size small
24724 A minute examination of the circumstances served only to make the case more
24725  complex.
24726  In the first place, no reason could be given why the young man should have
24727  fastened the door upon the inside.
24728  There was the possibility that the murderer had done this, and had afterwards
24729  escaped by the window.
24730  The drop was at least twenty feet, however, and a bed of crocuses in full
24731  bloom lay beneath.
24732  Neither the flowers nor the earth showed any sign of having been disturbed,
24733  nor were there any marks upon the narrow strip of grass which separated
24734  the house from the road.
24735  Apparently, therefore, it was the young man himself who had fastened the
24736  door.
24737  But how did he come by his death? No one could have climbed up to the window
24738  without leaving traces.
24739  Suppose a man had fired through the window, he would indeed be a remarkable
24740  shot who could with a revolver inflict so deadly a wound.
24741  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24742  a hundred yards of the house.
24743  No one had heard a shot.
24744 \end_layout
24745
24746 \end_inset
24747
24748
24749 \end_layout
24750
24751 \begin_layout Standard
24752 If there is less vertical space than 6
24753 \begin_inset space ~
24754 \end_inset
24755
24756 text lines is left on the page at the beginning of the multiple columns,
24757  a page break will be inserted before the multiple columns.
24758  Depending on the number of lines of the preface text, you might want to
24759  change this space.
24760  This is done by setting the cursor into the mulitcolumn inset behind the
24761  preface (if there is any) and using the menu 
24762 \family sans
24763 Insert\SpecialChar menuseparator
24764 Space
24765 \begin_inset space ~
24766 \end_inset
24767
24768 Before
24769 \begin_inset space ~
24770 \end_inset
24771
24772 Page
24773 \begin_inset space ~
24774 \end_inset
24775
24776 Break
24777 \family default
24778 .
24779  Insert into that inset the amount of space like e.
24780 \begin_inset space \thinspace{}
24781 \end_inset
24782
24783 g.
24784 \begin_inset space \space{}
24785 \end_inset
24786
24787
24788 \begin_inset Quotes eld
24789 \end_inset
24790
24791 5cm
24792 \begin_inset Quotes erd
24793 \end_inset
24794
24795 .
24796 \begin_inset Newline newline
24797 \end_inset
24798
24799 In this example the space is set to 7
24800 \begin_inset space ~
24801 \end_inset
24802
24803 text lines by using 
24804 \begin_inset Quotes eld
24805 \end_inset
24806
24807 7
24808 \backslash
24809 baselineskip
24810 \begin_inset Quotes erd
24811 \end_inset
24812
24813  (where the command 
24814 \series bold
24815
24816 \backslash
24817 baselineskip
24818 \series default
24819  needs to be inserted as \SpecialChar TeX
24820  code):
24821 \end_layout
24822
24823 \begin_layout Standard
24824 \begin_inset Flex Multiple Columns
24825 status open
24826
24827 \begin_layout Plain Layout
24828 \begin_inset Argument 3
24829 status open
24830
24831 \begin_layout Plain Layout
24832 7
24833 \begin_inset ERT
24834 status collapsed
24835
24836 \begin_layout Plain Layout
24837
24838
24839 \backslash
24840 baselineskip
24841 \end_layout
24842
24843 \end_inset
24844
24845
24846 \end_layout
24847
24848 \end_inset
24849
24850
24851 \size small
24852 On the evening of the crime, he returned from the club exactly at ten.
24853  His mother and sister were out spending the evening with a relation.
24854  The servant deposed that she heard him enter the front room on the second
24855  floor, generally used as his sitting-room.
24856  She had lit a fire there, and as it smoked she had opened the window.
24857  No sound was heard from the room until eleven-twenty, the hour of the return
24858  of Lady Maynooth and her daughter.
24859  Desiring to say good-night, she attempted to enter her son's room.
24860  The door was locked on the inside, and no answer could be got to their
24861  cries and knocking.
24862  Help was obtained, and the door forced.
24863  The unfortunate young man was found lying near the table.
24864  His head had been horribly mutilated by an expanding revolver bullet, but
24865  no weapon of any sort was to be found in the room.
24866 \end_layout
24867
24868 \end_inset
24869
24870
24871 \end_layout
24872
24873 \begin_layout Subsubsection
24874 Surrounding Space
24875 \end_layout
24876
24877 \begin_layout Standard
24878 The amount of space before and after multiple columns can be changed by
24879  changing the length 
24880 \series bold
24881
24882 \backslash
24883 multicolsep
24884 \series default
24885 .
24886  For example the command
24887 \end_layout
24888
24889 \begin_layout Standard
24890
24891 \series bold
24892
24893 \backslash
24894 setlength{
24895 \backslash
24896 multicolsep}{3cm}
24897 \end_layout
24898
24899 \begin_layout Standard
24900 in \SpecialChar TeX
24901  Code changes its value to 3
24902 \begin_inset space \thinspace{}
24903 \end_inset
24904
24905 cm.
24906  The change must be made before the multiple columns' start.
24907  The predefined value is 13
24908 \begin_inset space \thinspace{}
24909 \end_inset
24910
24911 pt.
24912 \end_layout
24913
24914 \begin_layout Standard
24915 For this example 
24916 \series bold
24917
24918 \backslash
24919 multicolsep
24920 \series default
24921  was set to 2.5
24922 \begin_inset space \thinspace{}
24923 \end_inset
24924
24925 cm:
24926 \end_layout
24927
24928 \begin_layout Standard
24929 \begin_inset ERT
24930 status open
24931
24932 \begin_layout Plain Layout
24933
24934
24935 \backslash
24936 setlength{
24937 \backslash
24938 multicolsep}{2.5cm}
24939 \end_layout
24940
24941 \end_inset
24942
24943
24944 \end_layout
24945
24946 \begin_layout Standard
24947 \begin_inset Flex Multiple Columns
24948 status open
24949
24950 \begin_layout Plain Layout
24951
24952 \size small
24953 All day I turned these facts over in my mind, endeavouring to hit upon some
24954  theory which could reconcile them all, and to find that line of least resistanc
24955 e which my poor friend had declared to be the starting-point of every investigat
24956 ion.
24957  I confess that I made little progress.
24958  In the evening I strolled across the Park, and found myself about six o'clock
24959  at the Oxford Street end of Park Lane.
24960  A group of loafers upon the pavements, all staring up at a particular window,
24961  directed me to the house which I had come to see.
24962  A tall, thin man with coloured glasses, whom I strongly suspected of being
24963  a plain-clothes detective, was pointing out some theory of his own, while
24964  the others crowded round to listen to what he said.
24965  I got as near him as I could, but his observations seemed to me to be absurd,
24966  so I withdrew again in some disgust.
24967  As I did so I struck against an elderly, deformed man, who had been behind
24968  me, and I knocked down several books which he was carrying.
24969 \end_layout
24970
24971 \end_inset
24972
24973
24974 \end_layout
24975
24976 \begin_layout Standard
24977 \begin_inset Note Greyedout
24978 status open
24979
24980 \begin_layout Plain Layout
24981
24982 \series bold
24983 Note:
24984 \series default
24985  The values you set with 
24986 \series bold
24987
24988 \backslash
24989 setlength
24990 \series default
24991  will be used for all following multiple columns until you change them again.
24992 \end_layout
24993
24994 \end_inset
24995
24996
24997 \end_layout
24998
24999 \begin_layout Standard
25000 \begin_inset ERT
25001 status collapsed
25002
25003 \begin_layout Plain Layout
25004
25005
25006 \backslash
25007 setlength{
25008 \backslash
25009 multicolsep}{13pt}
25010 \end_layout
25011
25012 \end_inset
25013
25014
25015 \begin_inset Note Note
25016 status collapsed
25017
25018 \begin_layout Plain Layout
25019 go back to the default
25020 \end_layout
25021
25022 \end_inset
25023
25024
25025 \end_layout
25026
25027 \begin_layout Standard
25028 \begin_inset Newpage newpage
25029 \end_inset
25030
25031
25032 \end_layout
25033
25034 \begin_layout Subsubsection
25035 Column Breaks
25036 \end_layout
25037
25038 \begin_layout Standard
25039 A column break can be forced by inserting the command 
25040 \series bold
25041
25042 \backslash
25043 columnbreak{}
25044 \series default
25045  as \SpecialChar TeX
25046  Code to that position in the text where the column should be broken.
25047  Note that this leads in most cases to whitespace in the text.
25048 \begin_inset Newline newline
25049 \end_inset
25050
25051 Here is an example:
25052 \end_layout
25053
25054 \begin_layout Standard
25055 \begin_inset Flex Multiple Columns
25056 status open
25057
25058 \begin_layout Plain Layout
25059
25060 \size small
25061 \begin_inset Quotes eld
25062 \end_inset
25063
25064 You're surprised to see me, sir,
25065 \begin_inset Quotes erd
25066 \end_inset
25067
25068  said he, in a strange, croaking voice.
25069 \end_layout
25070
25071 \begin_layout Plain Layout
25072
25073 \size small
25074 I acknowledged that I was.
25075 \end_layout
25076
25077 \begin_layout Plain Layout
25078
25079 \size small
25080 \begin_inset Quotes eld
25081 \end_inset
25082
25083 Well, I've a conscience, sir, and when I chanced to see you go into this
25084  house, as I came hobbling after you, I thought to myself, I'll just step
25085  in and see that kind gentleman, and tell him that if I was a bit gruff
25086  in my manner there was not any harm meant, and that I am much obliged to
25087  him for picking up my books.
25088 \begin_inset Quotes erd
25089 \end_inset
25090
25091
25092 \end_layout
25093
25094 \begin_layout Plain Layout
25095
25096 \size small
25097 \begin_inset Quotes eld
25098 \end_inset
25099
25100 You make too much of a trifle,
25101 \begin_inset Quotes erd
25102 \end_inset
25103
25104  said I.
25105  
25106 \begin_inset Quotes eld
25107 \end_inset
25108
25109 May I ask how you knew who I was?
25110 \begin_inset Quotes erd
25111 \end_inset
25112
25113  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25114 \begin_inset ERT
25115 status collapsed
25116
25117 \begin_layout Plain Layout
25118
25119
25120 \backslash
25121 columnbreak{}
25122 \end_layout
25123
25124 \end_inset
25125
25126
25127 \end_layout
25128
25129 \begin_layout Plain Layout
25130
25131 \size small
25132 \begin_inset Quotes eld
25133 \end_inset
25134
25135 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25136  you'll find my little bookshop at the corner of Church Street, and very
25137  happy to see you, I am sure.
25138  Maybe you collect yourself, sir.
25139  Here's 
25140 \noun on
25141 British
25142 \begin_inset space ~
25143 \end_inset
25144
25145 Birds
25146 \noun default
25147 , and 
25148 \noun on
25149 Catullus
25150 \noun default
25151 , and 
25152 \noun on
25153 The Holy War
25154 \noun default
25155 –a bargain, every one of them.
25156  With five volumes you could just fill that gap on that second shelf.
25157  It looks untidy, does it not, sir?
25158 \begin_inset Quotes erd
25159 \end_inset
25160
25161
25162 \end_layout
25163
25164 \end_inset
25165
25166
25167 \end_layout
25168
25169 \begin_layout Subsubsection
25170 Column Separation
25171 \end_layout
25172
25173 \begin_layout Standard
25174 The width of the columns is automatically calculated, but you can modify
25175  the space between the columns.
25176  This is done by changing the length 
25177 \series bold
25178
25179 \backslash
25180 columnsep
25181 \series default
25182 .
25183  Its predefined value is 10
25184 \begin_inset space \thinspace{}
25185 \end_inset
25186
25187 pt.
25188  Here is an example where 
25189 \series bold
25190
25191 \backslash
25192 columnsep
25193 \series default
25194  is set to 3
25195 \begin_inset space \thinspace{}
25196 \end_inset
25197
25198 cm:
25199 \end_layout
25200
25201 \begin_layout Standard
25202 \begin_inset ERT
25203 status open
25204
25205 \begin_layout Plain Layout
25206
25207
25208 \backslash
25209 setlength{
25210 \backslash
25211 columnsep}{3cm}
25212 \end_layout
25213
25214 \end_inset
25215
25216
25217 \end_layout
25218
25219 \begin_layout Standard
25220 \begin_inset Flex Multiple Columns
25221 status open
25222
25223 \begin_layout Plain Layout
25224
25225 \size small
25226 My observations of No.
25227 \begin_inset space \space{}
25228 \end_inset
25229
25230 427 Park Lane did little to clear up the problem in which I was interested.
25231  The house was separated from the street by a low wall and railing, the
25232  whole not more than five feet high.
25233  It was perfectly easy, therefore, for anyone to get into the garden, but
25234  the window was entirely inaccessible, since there was no water pipe or
25235  anything which could help the most active man to climb it.
25236  More puzzled than ever, I retraced my steps to Kensington.
25237  I had not been in my study five minutes when the maid entered to say that
25238  a person desired to see me.
25239  To my astonishment it was none other than my strange old book collector,
25240  his sharp, wizened face peering out from a frame of white hair, and his
25241  precious volumes, a dozen of them at least, wedged under his right arm.
25242 \end_layout
25243
25244 \end_inset
25245
25246
25247 \end_layout
25248
25249 \begin_layout Standard
25250 \begin_inset ERT
25251 status collapsed
25252
25253 \begin_layout Plain Layout
25254
25255
25256 \backslash
25257 setlength{
25258 \backslash
25259 columnsep}{10pt}
25260 \end_layout
25261
25262 \end_inset
25263
25264
25265 \begin_inset Note Note
25266 status collapsed
25267
25268 \begin_layout Plain Layout
25269 go back to the default
25270 \end_layout
25271
25272 \end_inset
25273
25274
25275 \end_layout
25276
25277 \begin_layout Subsubsection
25278 Vertical Lines
25279 \end_layout
25280
25281 \begin_layout Standard
25282 Between the columns a rule with a width of the length 
25283 \series bold
25284
25285 \backslash
25286 columnseprule
25287 \series default
25288  is placed.
25289  If this rule width is set to 0
25290 \begin_inset space \thinspace{}
25291 \end_inset
25292
25293 pt (this is the default), the rule is suppressed.
25294  In the following example the rule is 2
25295 \begin_inset space \thinspace{}
25296 \end_inset
25297
25298 pt wide:
25299 \end_layout
25300
25301 \begin_layout Standard
25302 \begin_inset ERT
25303 status open
25304
25305 \begin_layout Plain Layout
25306
25307
25308 \backslash
25309 setlength{
25310 \backslash
25311 columnseprule}{2pt}
25312 \end_layout
25313
25314 \end_inset
25315
25316
25317 \end_layout
25318
25319 \begin_layout Standard
25320 \begin_inset Flex Multiple Columns
25321 status open
25322
25323 \begin_layout Plain Layout
25324
25325 \size small
25326 \begin_inset Quotes eld
25327 \end_inset
25328
25329 You're surprised to see me, sir,
25330 \begin_inset Quotes erd
25331 \end_inset
25332
25333  said he, in a strange, croaking voice.
25334 \end_layout
25335
25336 \begin_layout Plain Layout
25337
25338 \size small
25339 I acknowledged that I was.
25340 \end_layout
25341
25342 \begin_layout Plain Layout
25343
25344 \size small
25345 \begin_inset Quotes eld
25346 \end_inset
25347
25348 Well, I've a conscience, sir, and when I chanced to see you go into this
25349  house, as I came hobbling after you, I thought to myself, I'll just step
25350  in and see that kind gentleman, and tell him that if I was a bit gruff
25351  in my manner there was not any harm meant, and that I am much obliged to
25352  him for picking up my books.
25353 \begin_inset Quotes erd
25354 \end_inset
25355
25356
25357 \end_layout
25358
25359 \begin_layout Plain Layout
25360
25361 \size small
25362 \begin_inset Quotes eld
25363 \end_inset
25364
25365 You make too much of a trifle,
25366 \begin_inset Quotes erd
25367 \end_inset
25368
25369  said I.
25370  
25371 \begin_inset Quotes eld
25372 \end_inset
25373
25374 May I ask how you knew who I was?
25375 \begin_inset Quotes erd
25376 \end_inset
25377
25378
25379 \end_layout
25380
25381 \begin_layout Plain Layout
25382
25383 \size small
25384 \begin_inset Quotes eld
25385 \end_inset
25386
25387 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25388  you'll find my little bookshop at the corner of Church Street, and very
25389  happy to see you, I am sure.
25390  Maybe you collect yourself, sir.
25391  Here's 
25392 \noun on
25393 British
25394 \begin_inset space ~
25395 \end_inset
25396
25397 Birds
25398 \noun default
25399 , and 
25400 \noun on
25401 Catullus
25402 \noun default
25403 , and 
25404 \noun on
25405 The Holy War
25406 \noun default
25407 –a bargain, every one of them.
25408  With five volumes you could just fill that gap on that second shelf.
25409  It looks untidy, does it not, sir?
25410 \begin_inset Quotes erd
25411 \end_inset
25412
25413
25414 \end_layout
25415
25416 \end_inset
25417
25418
25419 \end_layout
25420
25421 \begin_layout Standard
25422 \begin_inset VSpace defskip
25423 \end_inset
25424
25425
25426 \end_layout
25427
25428 \begin_layout Standard
25429 The rule can be colored by redefining the command 
25430 \series bold
25431
25432 \backslash
25433 columnseprulecolor
25434 \series default
25435 .
25436  This is done by inserting the command
25437 \begin_inset Newline newline
25438 \end_inset
25439
25440
25441 \series bold
25442
25443 \backslash
25444 renewcommand{
25445 \backslash
25446 columnseprulecolor}{
25447 \backslash
25448 color{red}}
25449 \series default
25450
25451 \begin_inset Newline newline
25452 \end_inset
25453
25454 as \SpecialChar TeX
25455  Code before the multicolumn inset.
25456  Replace 
25457 \series bold
25458 red
25459 \series default
25460  in this command by a color of your choice.
25461  You can use all pre- and self-defined colors.
25462  See the 
25463 \emph on
25464 EmbeddedObjects
25465 \emph default
25466  manual, section 
25467 \emph on
25468 Colored
25469 \begin_inset space ~
25470 \end_inset
25471
25472 Tables
25473 \emph default
25474  for more information about pre- and self-defined colors.
25475  To go back to the default color insert the command
25476 \begin_inset Newline newline
25477 \end_inset
25478
25479
25480 \series bold
25481
25482 \backslash
25483 renewcommand{
25484 \backslash
25485 columnseprulecolor}{
25486 \backslash
25487 normalcolor}
25488 \series default
25489
25490 \begin_inset Newline newline
25491 \end_inset
25492
25493 Here is the example with a cyan rule and 1
25494 \begin_inset space \thinspace{}
25495 \end_inset
25496
25497 cm column separation:
25498 \end_layout
25499
25500 \begin_layout Standard
25501 \begin_inset ERT
25502 status open
25503
25504 \begin_layout Plain Layout
25505
25506
25507 \backslash
25508 setlength{
25509 \backslash
25510 columnsep}{1cm}
25511 \end_layout
25512
25513 \begin_layout Plain Layout
25514
25515
25516 \backslash
25517 renewcommand{
25518 \backslash
25519 columnseprulecolor}{
25520 \backslash
25521 color{cyan}}
25522 \end_layout
25523
25524 \end_inset
25525
25526
25527 \end_layout
25528
25529 \begin_layout Standard
25530 \begin_inset Flex Multiple Columns
25531 status open
25532
25533 \begin_layout Plain Layout
25534
25535 \size small
25536 \begin_inset Quotes eld
25537 \end_inset
25538
25539 You're surprised to see me, sir,
25540 \begin_inset Quotes erd
25541 \end_inset
25542
25543  said he, in a strange, croaking voice.
25544 \end_layout
25545
25546 \begin_layout Plain Layout
25547
25548 \size small
25549 I acknowledged that I was.
25550 \end_layout
25551
25552 \begin_layout Plain Layout
25553
25554 \size small
25555 \begin_inset Quotes eld
25556 \end_inset
25557
25558 Well, I've a conscience, sir, and when I chanced to see you go into this
25559  house, as I came hobbling after you, I thought to myself, I'll just step
25560  in and see that kind gentleman, and tell him that if I was a bit gruff
25561  in my manner there was not any harm meant, and that I am much obliged to
25562  him for picking up my books.
25563 \begin_inset Quotes erd
25564 \end_inset
25565
25566
25567 \end_layout
25568
25569 \begin_layout Plain Layout
25570
25571 \size small
25572 \begin_inset Quotes eld
25573 \end_inset
25574
25575 You make too much of a trifle,
25576 \begin_inset Quotes erd
25577 \end_inset
25578
25579  said I.
25580  
25581 \begin_inset Quotes eld
25582 \end_inset
25583
25584 May I ask how you knew who I was?
25585 \begin_inset Quotes erd
25586 \end_inset
25587
25588
25589 \end_layout
25590
25591 \begin_layout Plain Layout
25592
25593 \size small
25594 \begin_inset Quotes eld
25595 \end_inset
25596
25597 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25598  you'll find my little bookshop at the corner of Church Street, and very
25599  happy to see you, I am sure.
25600  Maybe you collect yourself, sir.
25601  Here's 
25602 \noun on
25603 British
25604 \begin_inset space ~
25605 \end_inset
25606
25607 Birds
25608 \noun default
25609 , and 
25610 \noun on
25611 Catullus
25612 \noun default
25613 , and 
25614 \noun on
25615 The Holy War
25616 \noun default
25617 –a bargain, every one of them.
25618  With five volumes you could just fill that gap on that second shelf.
25619  It looks untidy, does it not, sir?
25620 \begin_inset Quotes erd
25621 \end_inset
25622
25623
25624 \end_layout
25625
25626 \end_inset
25627
25628
25629 \end_layout
25630
25631 \begin_layout Standard
25632 \begin_inset ERT
25633 status collapsed
25634
25635 \begin_layout Plain Layout
25636
25637
25638 \backslash
25639 setlength{
25640 \backslash
25641 columnseprule}{0pt}
25642 \end_layout
25643
25644 \begin_layout Plain Layout
25645
25646
25647 \backslash
25648 renewcommand{
25649 \backslash
25650 columnseprulecolor}{
25651 \backslash
25652 normalcolor}
25653 \end_layout
25654
25655 \end_inset
25656
25657
25658 \begin_inset Note Note
25659 status collapsed
25660
25661 \begin_layout Plain Layout
25662 go back to the default
25663 \end_layout
25664
25665 \end_inset
25666
25667
25668 \end_layout
25669
25670 \begin_layout Section
25671 Non-standard Paragraph Shapes
25672 \end_layout
25673
25674 \begin_layout Standard
25675 \noindent
25676 \SpecialChar LaTeX
25677  as well as any other text processor uses by default rectangular paragraphs.
25678  For special cases like for example posters, invitation cards or poems you
25679  can modify the paragraph shape to one of your choice.
25680  This can be done by using the \SpecialChar LaTeX
25681 -package 
25682 \series bold
25683 shapepar
25684 \series default
25685  which is loaded by using in the document settings the module 
25686 \family sans
25687 Custom paragraph shapes
25688 \family default
25689 .
25690 \end_layout
25691
25692 \begin_layout Subsection
25693 Predefined shapes
25694 \end_layout
25695
25696 \begin_layout Standard
25697
25698 \series bold
25699 shapepar
25700 \series default
25701  provides the following shapes:
25702 \end_layout
25703
25704 \begin_layout Standard
25705 \begin_inset Tabular
25706 <lyxtabular version="3" rows="13" columns="3">
25707 <features booktabs="true" islongtable="true" longtabularalignment="center">
25708 <column alignment="center" valignment="middle" width="16col%">
25709 <column alignment="center" valignment="middle" width="40col%">
25710 <column alignment="center" valignment="middle" width="35col%">
25711 <row endhead="true">
25712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25713 \begin_inset Text
25714
25715 \begin_layout Plain Layout
25716 Name
25717 \end_layout
25718
25719 \end_inset
25720 </cell>
25721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25722 \begin_inset Text
25723
25724 \begin_layout Plain Layout
25725 Description
25726 \end_layout
25727
25728 \end_inset
25729 </cell>
25730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25731 \begin_inset Text
25732
25733 \begin_layout Plain Layout
25734 Annotation
25735 \end_layout
25736
25737 \end_inset
25738 </cell>
25739 </row>
25740 <row>
25741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25742 \begin_inset Text
25743
25744 \begin_layout Plain Layout
25745 CDlabel
25746 \end_layout
25747
25748 \end_inset
25749 </cell>
25750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25751 \begin_inset Text
25752
25753 \begin_layout Plain Layout
25754 Circle with circular hole (in the size of a CD/DVD)
25755 \end_layout
25756
25757 \end_inset
25758 </cell>
25759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25760 \begin_inset Text
25761
25762 \begin_layout Plain Layout
25763 Cannot be scaled, take care there is not too much text
25764 \end_layout
25765
25766 \end_inset
25767 </cell>
25768 </row>
25769 <row>
25770 <cell alignment="center" valignment="top" topline="true" usebox="none">
25771 \begin_inset Text
25772
25773 \begin_layout Plain Layout
25774 Circle
25775 \end_layout
25776
25777 \end_inset
25778 </cell>
25779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25780 \begin_inset Text
25781
25782 \begin_layout Plain Layout
25783 Circle
25784 \end_layout
25785
25786 \end_inset
25787 </cell>
25788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25789 \begin_inset Text
25790
25791 \begin_layout Plain Layout
25792 Fragile, calculation might fail
25793 \end_layout
25794
25795 \end_inset
25796 </cell>
25797 </row>
25798 <row>
25799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25800 \begin_inset Text
25801
25802 \begin_layout Plain Layout
25803 Diamond
25804 \end_layout
25805
25806 \end_inset
25807 </cell>
25808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25809 \begin_inset Text
25810
25811 \begin_layout Plain Layout
25812 Rhomboid (symbolizing a 
25813 \begin_inset Quotes eld
25814 \end_inset
25815
25816 diamond
25817 \begin_inset Quotes erd
25818 \end_inset
25819
25820 )
25821 \end_layout
25822
25823 \end_inset
25824 </cell>
25825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25826 \begin_inset Text
25827
25828 \begin_layout Plain Layout
25829 -
25830 \end_layout
25831
25832 \end_inset
25833 </cell>
25834 </row>
25835 <row>
25836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25837 \begin_inset Text
25838
25839 \begin_layout Plain Layout
25840 Heart
25841 \end_layout
25842
25843 \end_inset
25844 </cell>
25845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25846 \begin_inset Text
25847
25848 \begin_layout Plain Layout
25849 Heart-like shape
25850 \end_layout
25851
25852 \end_inset
25853 </cell>
25854 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25855 \begin_inset Text
25856
25857 \begin_layout Plain Layout
25858 -
25859 \end_layout
25860
25861 \end_inset
25862 </cell>
25863 </row>
25864 <row>
25865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25866 \begin_inset Text
25867
25868 \begin_layout Plain Layout
25869 Hexagon
25870 \end_layout
25871
25872 \end_inset
25873 </cell>
25874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25875 \begin_inset Text
25876
25877 \begin_layout Plain Layout
25878 Hexagon
25879 \end_layout
25880
25881 \end_inset
25882 </cell>
25883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25884 \begin_inset Text
25885
25886 \begin_layout Plain Layout
25887 -
25888 \end_layout
25889
25890 \end_inset
25891 </cell>
25892 </row>
25893 <row>
25894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25895 \begin_inset Text
25896
25897 \begin_layout Plain Layout
25898 Nut
25899 \end_layout
25900
25901 \end_inset
25902 </cell>
25903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25904 \begin_inset Text
25905
25906 \begin_layout Plain Layout
25907 Nut for bolt (hexagon with circular hole)
25908 \end_layout
25909
25910 \end_inset
25911 </cell>
25912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25913 \begin_inset Text
25914
25915 \begin_layout Plain Layout
25916 -
25917 \end_layout
25918
25919 \end_inset
25920 </cell>
25921 </row>
25922 <row>
25923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25924 \begin_inset Text
25925
25926 \begin_layout Plain Layout
25927 Square
25928 \end_layout
25929
25930 \end_inset
25931 </cell>
25932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25933 \begin_inset Text
25934
25935 \begin_layout Plain Layout
25936 Square
25937 \end_layout
25938
25939 \end_inset
25940 </cell>
25941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25942 \begin_inset Text
25943
25944 \begin_layout Plain Layout
25945 -
25946 \end_layout
25947
25948 \end_inset
25949 </cell>
25950 </row>
25951 <row>
25952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25953 \begin_inset Text
25954
25955 \begin_layout Plain Layout
25956 Star
25957 \end_layout
25958
25959 \end_inset
25960 </cell>
25961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25962 \begin_inset Text
25963
25964 \begin_layout Plain Layout
25965 Five-point star
25966 \end_layout
25967
25968 \end_inset
25969 </cell>
25970 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25971 \begin_inset Text
25972
25973 \begin_layout Plain Layout
25974 -
25975 \end_layout
25976
25977 \end_inset
25978 </cell>
25979 </row>
25980 <row>
25981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25982 \begin_inset Text
25983
25984 \begin_layout Plain Layout
25985 Candle
25986 \end_layout
25987
25988 \end_inset
25989 </cell>
25990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25991 \begin_inset Text
25992
25993 \begin_layout Plain Layout
25994 Burning candle
25995 \end_layout
25996
25997 \end_inset
25998 </cell>
25999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26000 \begin_inset Text
26001
26002 \begin_layout Plain Layout
26003 -
26004 \end_layout
26005
26006 \end_inset
26007 </cell>
26008 </row>
26009 <row>
26010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26011 \begin_inset Text
26012
26013 \begin_layout Plain Layout
26014 Drop down/up
26015 \end_layout
26016
26017 \end_inset
26018 </cell>
26019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26020 \begin_inset Text
26021
26022 \begin_layout Plain Layout
26023 Normal/reversed rain drop
26024 \end_layout
26025
26026 \end_inset
26027 </cell>
26028 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26029 \begin_inset Text
26030
26031 \begin_layout Plain Layout
26032 Fragile, calculation might fail
26033 \end_layout
26034
26035 \end_inset
26036 </cell>
26037 </row>
26038 <row>
26039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26040 \begin_inset Text
26041
26042 \begin_layout Plain Layout
26043 \SpecialChar TeX
26044
26045 \end_layout
26046
26047 \end_inset
26048 </cell>
26049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26050 \begin_inset Text
26051
26052 \begin_layout Plain Layout
26053 The \SpecialChar TeX
26054  logo
26055 \end_layout
26056
26057 \end_inset
26058 </cell>
26059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26060 \begin_inset Text
26061
26062 \begin_layout Plain Layout
26063 -
26064 \end_layout
26065
26066 \end_inset
26067 </cell>
26068 </row>
26069 <row>
26070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26071 \begin_inset Text
26072
26073 \begin_layout Plain Layout
26074 Triangle up/down/
26075 \begin_inset Newline newline
26076 \end_inset
26077
26078 left/right
26079 \end_layout
26080
26081 \end_inset
26082 </cell>
26083 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26084 \begin_inset Text
26085
26086 \begin_layout Plain Layout
26087 Triangles in different orientations
26088 \end_layout
26089
26090 \end_inset
26091 </cell>
26092 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26093 \begin_inset Text
26094
26095 \begin_layout Plain Layout
26096 -
26097 \end_layout
26098
26099 \end_inset
26100 </cell>
26101 </row>
26102 </lyxtabular>
26103
26104 \end_inset
26105
26106
26107 \end_layout
26108
26109 \begin_layout Standard
26110 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26111 's pull-down box
26112  for environments in the toolbar.
26113 \end_layout
26114
26115 \begin_layout Standard
26116 \begin_inset Newpage newpage
26117 \end_inset
26118
26119
26120 \end_layout
26121
26122 \begin_layout Standard
26123 Here is an example paragraph in the shape of a nut:
26124 \end_layout
26125
26126 \begin_layout Standard
26127 \begin_inset VSpace bigskip
26128 \end_inset
26129
26130
26131 \end_layout
26132
26133 \begin_layout Nut
26134
26135 \lang latin
26136 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26137  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26138  voluptua.
26139  At vero eos et accusam et justo duo dolores et ea rebum.
26140  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26141  sit amet.
26142  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26143  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26144  voluptua.
26145 \end_layout
26146
26147 \begin_layout Standard
26148 \begin_inset VSpace bigskip
26149 \end_inset
26150
26151
26152 \end_layout
26153
26154 \begin_layout Standard
26155 \begin_inset Note Greyedout
26156 status open
26157
26158 \begin_layout Plain Layout
26159
26160 \series bold
26161 Note
26162 \series default
26163 : shapepar paragraphs cannot run over a page break.
26164 \end_layout
26165
26166 \end_inset
26167
26168
26169 \end_layout
26170
26171 \begin_layout Standard
26172 \begin_inset VSpace bigskip
26173 \end_inset
26174
26175
26176 \end_layout
26177
26178 \begin_layout Standard
26179
26180 \series bold
26181 shapepar
26182 \series default
26183  takes care that the shape will always be preserved, no matter how much
26184  text is in the paragraph.
26185  Therefore the paragraph size changes with the amount of contained text.
26186  This can lead to paragraph sizes exceeding the page margins.
26187  To demonstrate the size scaling, here is the same example paragraph but
26188  with twice as much text:
26189 \end_layout
26190
26191 \begin_layout Standard
26192 \begin_inset Newpage newpage
26193 \end_inset
26194
26195
26196 \end_layout
26197
26198 \begin_layout Nut
26199
26200 \lang latin
26201 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26202  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26203  voluptua.
26204  At vero eos et accusam et justo duo dolores et ea rebum.
26205  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26206  sit amet.
26207  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26208  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26209  voluptua.
26210  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26211  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26212  voluptua.
26213  At vero eos et accusam et justo duo dolores et ea rebum.
26214  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26215  sit amet.
26216  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26217  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26218  voluptua.
26219 \end_layout
26220
26221 \begin_layout Standard
26222 \begin_inset VSpace bigskip
26223 \end_inset
26224
26225
26226 \end_layout
26227
26228 \begin_layout Standard
26229 An exception is the shape 
26230 \family sans
26231 CDlabel
26232 \family default
26233 .
26234  It cannot be scaled because it must fit the size of a CD/DVD.
26235  Therefore the amount of text that fits into the shape is limited.
26236 \begin_inset Newline newline
26237 \end_inset
26238
26239 The 
26240 \family sans
26241 drop
26242 \family default
26243  shapes and the 
26244 \family sans
26245 circle
26246 \family default
26247  shape are fragile, meaning that the calculation of their size can fail,
26248  depending on the amount of text.
26249  You will then get the \SpecialChar LaTeX
26250  error 
26251 \begin_inset Quotes eld
26252 \end_inset
26253
26254 Arithmetic overflow
26255 \begin_inset Quotes erd
26256 \end_inset
26257
26258 .
26259  In this case one can try to remove or add some text; if nothing works one
26260  has to use another shape.
26261 \end_layout
26262
26263 \begin_layout Standard
26264 \begin_inset VSpace bigskip
26265 \end_inset
26266
26267
26268 \end_layout
26269
26270 \begin_layout Standard
26271 For shapes with tips you will maybe see that \SpecialChar LaTeX
26272 's hyphenation routine fails
26273  for text in the tips.
26274  Therefore it is often necessary to add hyphenation points 
26275 \family sans
26276 (
26277 \begin_inset Info
26278 type  "shortcut"
26279 arg   "specialchar-insert hyphenation"
26280 \end_inset
26281
26282
26283 \family default
26284 ) to the corresponding text parts.
26285 \end_layout
26286
26287 \begin_layout Standard
26288 \begin_inset VSpace bigskip
26289 \end_inset
26290
26291
26292 \end_layout
26293
26294 \begin_layout Standard
26295 Shapepar paragraphs are either always centered or placed on the page so
26296  that their left border touches the left page margin.
26297  You can therefore not use the paragraph dialog to align such paragraphs.
26298  A solution is to put the paragraph into a minipage or parbox and align
26299  the box.
26300  The problem is hereby to find the right width for the box.
26301  Because if it is too wide and you center the box, the paragraph is not
26302  centered too because it sticks at the left side of the box.
26303  So you might have to play a bit with the width until it fits.
26304  Here are two heart-shaped paragraphs, the first one is not aligned, the
26305  second one is right-aligned:
26306 \end_layout
26307
26308 \begin_layout Standard
26309 \begin_inset Newpage newpage
26310 \end_inset
26311
26312
26313 \end_layout
26314
26315 \begin_layout Heart
26316 \noindent
26317
26318 \lang latin
26319 Lo\SpecialChar softhyphen
26320 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26321  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26322  voluptua.
26323  At vero eos et accusam et justo duo dolores et ea rebum.
26324  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26325  sit amet.
26326 \end_layout
26327
26328 \begin_layout Standard
26329 \begin_inset VSpace bigskip
26330 \end_inset
26331
26332
26333 \end_layout
26334
26335 \begin_layout Standard
26336 \noindent
26337 \align right
26338 \begin_inset Box Frameless
26339 position "t"
26340 hor_pos "c"
26341 has_inner_box 1
26342 inner_pos "t"
26343 use_parbox 1
26344 use_makebox 0
26345 width "42col%"
26346 special "none"
26347 height "1in"
26348 height_special "totalheight"
26349 thickness "0.4pt"
26350 separation "3pt"
26351 shadowsize "4pt"
26352 framecolor "black"
26353 backgroundcolor "none"
26354 status open
26355
26356 \begin_layout Heart
26357 \noindent
26358
26359 \lang latin
26360 Lo\SpecialChar softhyphen
26361 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26362  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26363  voluptua.
26364  At vero eos et accusam et justo duo dolores et ea rebum.
26365  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26366  sit amet.
26367 \end_layout
26368
26369 \end_inset
26370
26371
26372 \end_layout
26373
26374 \begin_layout Subsection
26375 Custom shapes
26376 \end_layout
26377
26378 \begin_layout Standard
26379 You can define any shape you want.
26380  Doing this manually is a lot of work because every coordinate must be specified.
26381  But there is a way to let the computer calculate the coordinates:
26382 \end_layout
26383
26384 \begin_layout Enumerate
26385 Install the program 
26386 \begin_inset CommandInset href
26387 LatexCommand href
26388 name "Jpgfdraw"
26389 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26390
26391 \end_inset
26392
26393 .
26394 \end_layout
26395
26396 \begin_layout Enumerate
26397 In 
26398 \family sans
26399 Jpgfdraw
26400 \family default
26401  go to the menu 
26402 \family sans
26403 TeX/LaTeX\SpecialChar menuseparator
26404 Settings\SpecialChar menuseparator
26405 Set Normal Size
26406 \family default
26407  and select the font size you are using in your document.
26408  For example this document uses the size 12
26409 \begin_inset space \thinspace{}
26410 \end_inset
26411
26412 pt.
26413 \end_layout
26414
26415 \begin_layout Enumerate
26416 Draw a shape.
26417 \end_layout
26418
26419 \begin_layout Enumerate
26420 Use the menu 
26421 \family sans
26422 TeX/LaTeX\SpecialChar menuseparator
26423 Shapepar
26424 \family default
26425  to export the shape to coordinates.
26426  In the appearing dialog use either the outline of your shape for the coordinate
26427 s or the path itself.
26428 \begin_inset Foot
26429 status collapsed
26430
26431 \begin_layout Plain Layout
26432 For more information see 
26433 \begin_inset CommandInset href
26434 LatexCommand href
26435 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26436
26437 \end_inset
26438
26439
26440 \end_layout
26441
26442 \end_inset
26443
26444
26445 \end_layout
26446
26447 \begin_layout Standard
26448 The coordinates are written into a \SpecialChar TeX
26449  file.
26450  To use it for your \SpecialChar LyX
26451  document
26452 \end_layout
26453
26454 \begin_layout Enumerate
26455 Place the cursor before the first character of your paragraph (or into a
26456  new empty one).
26457 \end_layout
26458
26459 \begin_layout Enumerate
26460 Open in \SpecialChar LyX
26461  the menu 
26462 \family sans
26463 Insert\SpecialChar menuseparator
26464 File\SpecialChar menuseparator
26465 Child
26466 \begin_inset space ~
26467 \end_inset
26468
26469 Document
26470 \family default
26471 , select the file and use 
26472 \family sans
26473 Input
26474 \family default
26475  as 
26476 \family sans
26477 Include Type.
26478 \end_layout
26479
26480 \begin_layout Standard
26481 \begin_inset VSpace defskip
26482 \end_inset
26483
26484
26485 \end_layout
26486
26487 \begin_layout Standard
26488 \begin_inset Note Greyedout
26489 status open
26490
26491 \begin_layout Plain Layout
26492
26493 \series bold
26494 Note
26495 \series default
26496 : The changed shape only applies to the current paragraph; everything is
26497  reset to normal for the next paragraph.
26498  Therefore the shape definition file must be input into every paragraph
26499  with the desired shape.
26500 \end_layout
26501
26502 \end_inset
26503
26504
26505 \end_layout
26506
26507 \begin_layout Standard
26508 \begin_inset VSpace bigskip
26509 \end_inset
26510
26511
26512 \end_layout
26513
26514 \begin_layout Standard
26515 Here is an example:
26516 \end_layout
26517
26518 \begin_layout Standard
26519 \begin_inset VSpace bigskip
26520 \end_inset
26521
26522
26523 \end_layout
26524
26525 \begin_layout Standard
26526 \begin_inset CommandInset include
26527 LatexCommand input
26528 filename "SpecialParagraphShape.tex"
26529
26530 \end_inset
26531
26532
26533 \lang latin
26534 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26535  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26536  voluptua.
26537  At vero eos et accusam et justo duo dolores et ea rebum.
26538  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26539  sit amet.
26540  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26541  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26542  voluptua.
26543 \end_layout
26544
26545 \begin_layout Standard
26546 \begin_inset VSpace bigskip
26547 \end_inset
26548
26549
26550 \end_layout
26551
26552 \begin_layout Standard
26553
26554 \series bold
26555 A tip:
26556 \series default
26557  to draw complexer shapes in 
26558 \family sans
26559 Jpgfdraw
26560 \family default
26561  you can draw the shape in a program of your choice and import the resulting
26562  image to 
26563 \family sans
26564 Jpgfdraw
26565 \family default
26566 .
26567  Then you only need to draw a line or spline along the outline of the image.
26568 \end_layout
26569
26570 \begin_layout Standard
26571 \begin_inset VSpace bigskip
26572 \end_inset
26573
26574
26575 \end_layout
26576
26577 \begin_layout Standard
26578 The module 
26579 \family sans
26580 Custom paragraph shapes
26581 \family default
26582  also provides the two commands 
26583 \family sans
26584 shapepar
26585 \family default
26586  and 
26587 \family sans
26588 Shapepar
26589 \family default
26590  which can be used to define custom shapes coordinate by coordinate.
26591 \begin_inset Foot
26592 status collapsed
26593
26594 \begin_layout Plain Layout
26595 These commands are internally used for all shapes described here.
26596 \end_layout
26597
26598 \end_inset
26599
26600  For information how these styles are used and about further customization
26601  possibilities, have a look at the documentation of the package 
26602 \series bold
26603 shapepar
26604 \series default
26605
26606 \begin_inset CommandInset citation
26607 LatexCommand cite
26608 key "shapepar"
26609
26610 \end_inset
26611
26612 .
26613 \end_layout
26614
26615 \begin_layout Bibliography
26616 \begin_inset CommandInset bibitem
26617 LatexCommand bibitem
26618 key "multicol"
26619
26620 \end_inset
26621
26622 Documentation of the \SpecialChar LaTeX
26623 -package 
26624 \begin_inset CommandInset href
26625 LatexCommand href
26626 name "multicol"
26627 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26628
26629 \end_inset
26630
26631
26632 \end_layout
26633
26634 \begin_layout Bibliography
26635 \begin_inset CommandInset bibitem
26636 LatexCommand bibitem
26637 key "shapepar"
26638
26639 \end_inset
26640
26641 Documentation of the \SpecialChar LaTeX
26642 -package 
26643 \begin_inset CommandInset href
26644 LatexCommand href
26645 name "shapepar"
26646 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
26647
26648 \end_inset
26649
26650
26651 \end_layout
26652
26653 \end_body
26654 \end_document