]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Fix typo.
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 508
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30 \end_preamble
31 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 theorems-ams
36 theorems-ams-extended
37 multicol
38 shapepar
39 \end_modules
40 \maintain_unincluded_children false
41 \language english
42 \language_package default
43 \inputencoding auto
44 \fontencoding global
45 \font_roman "lmodern" "default"
46 \font_sans "lmss" "default"
47 \font_typewriter "lmtt" "default"
48 \font_math "auto" "auto"
49 \font_default_family default
50 \use_non_tex_fonts false
51 \font_sc false
52 \font_osf false
53 \font_sf_scale 100 100
54 \font_tt_scale 100 100
55 \graphics default
56 \default_output_format pdf2
57 \output_sync 0
58 \bibtex_command default
59 \index_command default
60 \paperfontsize 12
61 \spacing single
62 \use_hyperref true
63 \pdf_title "LyX's Additional Features manual"
64 \pdf_author "LyX Team"
65 \pdf_subject "LyX's additional features documentation"
66 \pdf_keywords "LyX, Documentation, Additional"
67 \pdf_bookmarks true
68 \pdf_bookmarksnumbered true
69 \pdf_bookmarksopen false
70 \pdf_bookmarksopenlevel 1
71 \pdf_breaklinks false
72 \pdf_pdfborder false
73 \pdf_colorlinks true
74 \pdf_backref false
75 \pdf_pdfusetitle false
76 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
77 \papersize a4paper
78 \use_geometry false
79 \use_package amsmath 1
80 \use_package amssymb 1
81 \use_package cancel 0
82 \use_package esint 0
83 \use_package mathdots 1
84 \use_package mathtools 0
85 \use_package mhchem 1
86 \use_package stackrel 0
87 \use_package stmaryrd 0
88 \use_package undertilde 0
89 \cite_engine basic
90 \cite_engine_type default
91 \biblio_style plain
92 \use_bibtopic false
93 \use_indices false
94 \paperorientation portrait
95 \suppress_date false
96 \justification true
97 \use_refstyle 0
98 \notefontcolor #0000ff
99 \index Index
100 \shortcut idx
101 \color #008000
102 \end_index
103 \secnumdepth 3
104 \tocdepth 3
105 \paragraph_separation indent
106 \paragraph_indentation default
107 \quotes_language english
108 \papercolumns 1
109 \papersides 2
110 \paperpagestyle headings
111 \tracking_changes false
112 \output_changes false
113 \html_math_output 0
114 \html_css_as_file 0
115 \html_be_strict true
116 \end_header
117
118 \begin_body
119
120 \begin_layout Title
121 Additional \SpecialChar LyX
122  Features
123 \end_layout
124
125 \begin_layout Subtitle
126 Version 2.2.x
127 \end_layout
128
129 \begin_layout Author
130 by the \SpecialChar LyX
131  Team
132 \begin_inset Foot
133 status collapsed
134
135 \begin_layout Plain Layout
136 \noindent
137 Principal maintainer of this file is
138 \noun on
139  Richard Heck
140 \noun default
141 .
142  If you have comments or error corrections, please send them to the \SpecialChar LyX
143  Documentati
144 on mailing list, 
145 \begin_inset Flex Code
146 status collapsed
147
148 \begin_layout Plain Layout
149 \noindent
150 <lyx-docs@lists.lyx.org>
151 \end_layout
152
153 \end_inset
154
155 .
156 \end_layout
157
158 \end_inset
159
160
161 \end_layout
162
163 \begin_layout Standard
164 \begin_inset CommandInset toc
165 LatexCommand tableofcontents
166
167 \end_inset
168
169
170 \end_layout
171
172 \begin_layout Chapter
173 Introduction
174 \end_layout
175
176 \begin_layout Standard
177 This manual is essentially Part II of the 
178 \emph on
179 User's Guide\SpecialChar endofsentence
180
181 \emph default
182  The reason for separating the two documents is simple: the 
183 \emph on
184 User's Guide
185 \emph default
186  is already quite lengthy, and it contains information on all of the basic
187  features one needs to know in order to prepare most documents.
188  However, the \SpecialChar LyX
189  Team has worked to make \SpecialChar LyX
190  extensible through various configuration
191  files and external packages.
192  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
193  package, you can
194  create a layout file (or module) for it without having to alter \SpecialChar LyX
195  itself.
196  We've already had contributions of several new features this way, and some
197  of them are documented here.
198  There are also some more `advanced' features, such as how to control the
199  presentation of bibliographies and how to work with multi-part documents,
200  that are not covered in the 
201 \emph on
202 User's Guide
203 \emph default
204  and are discussed here.
205 \end_layout
206
207 \begin_layout Standard
208 This manual also documents some special features, like fax support, version
209  control, and SGML support, which require additional software to work properly.
210  There is also a chapter on \SpecialChar LyX
211 's support for HTML.
212  And lastly, there's a chapter of \SpecialChar LaTeX
213  tools and tips, things you can use to
214  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
215 .
216  After all, \SpecialChar LyX
217  
218 \emph on
219 is
220 \emph default
221  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
222  features.
223 \end_layout
224
225 \begin_layout Standard
226 If you haven't read the 
227 \emph on
228 Introduction
229 \emph default
230  yet, you are definitely in the wrong manual.
231  The 
232 \emph on
233 Introduction
234 \emph default
235  is the first place to go, since it describes the notation and format of
236  all of the manuals.
237  You should also be thoroughly familiar with the 
238 \emph on
239 User's Guide
240 \emph default
241  and all of the basic features of \SpecialChar LyX
242  before attempting to read this one.
243 \end_layout
244
245 \begin_layout Standard
246 Since many of the topics in this manual depend heavily on \SpecialChar LyX
247 's interaction
248  with \SpecialChar LaTeX
249 , this first chapter covers the inner workings of \SpecialChar LyX
250  and how to direct
251  \SpecialChar LyX
252  to generate exactly the \SpecialChar LaTeX
253  code you want.
254  It is obviously for more seasoned \SpecialChar LyX
255  users.
256 \end_layout
257
258 \begin_layout Chapter
259 \SpecialChar LyX
260  and \SpecialChar LaTeX
261
262 \end_layout
263
264 \begin_layout Section
265 How \SpecialChar LyX
266  Uses \SpecialChar LaTeX
267
268 \end_layout
269
270 \begin_layout Standard
271 This chapter is for both \SpecialChar TeX
272 -nicians and the \SpecialChar LaTeX
273 -curious.
274  In it, we'll explain how \SpecialChar LyX
275  and \SpecialChar LaTeX
276  work together to produce printable output.
277  This is the only place in any of the manuals where we assume you know something
278  about \SpecialChar LaTeX
279 .
280 \end_layout
281
282 \begin_layout Standard
283 At one time, \SpecialChar LyX
284  was called a 
285 \begin_inset Quotes eld
286 \end_inset
287
288 WYSIWYM frontend to \SpecialChar LaTeX
289 ,
290 \begin_inset Quotes erd
291 \end_inset
292
293  but that's no longer true.
294  There are frontends to \SpecialChar LaTeX
295  out there.
296 \begin_inset Foot
297 status collapsed
298
299 \begin_layout Plain Layout
300 Some familar ones are \SpecialChar TeX
301 maker and kile, on Linux, and \SpecialChar TeX
302 shop, OSX.
303  There are also the \SpecialChar LaTeX
304  modes for vi and emacs, of course.
305 \end_layout
306
307 \end_inset
308
309  These are basically text editors with the ability to run \SpecialChar LaTeX
310  and mark any
311  errors in the file you're editing.
312  Although \SpecialChar LyX
313  
314 \emph on
315 is
316 \emph default
317  an editor, and it 
318 \emph on
319 does
320 \emph default
321  run \SpecialChar LaTeX
322 , and it also indicates errors in the file, it also does much, much
323  more.
324  For one thing, you don't need to know \SpecialChar LaTeX
325  to use \SpecialChar LyX
326  effectively.
327  And \SpecialChar LyX
328  has added its own extensions to \SpecialChar LaTeX
329 .
330  Try the following sometime: select 
331 \begin_inset Flex Noun
332 status collapsed
333
334 \begin_layout Plain Layout
335 Export\SpecialChar menuseparator
336 LaTeX
337 \end_layout
338
339 \end_inset
340
341  from the 
342 \begin_inset Flex Noun
343 status collapsed
344
345 \begin_layout Plain Layout
346 File
347 \end_layout
348
349 \end_inset
350
351  menu (or 
352 \begin_inset Flex Noun
353 status collapsed
354
355 \begin_layout Plain Layout
356 View\SpecialChar menuseparator
357 Source
358 \begin_inset space ~
359 \end_inset
360
361 Pane
362 \end_layout
363
364 \end_inset
365
366 ), then look at the preamble of the resulting 
367 \begin_inset Flex Code
368 status collapsed
369
370 \begin_layout Plain Layout
371 .tex
372 \end_layout
373
374 \end_inset
375
376  file.
377  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
378 .
379  These macros are defined automatically, according to the features you use
380  in the document.
381 \end_layout
382
383 \begin_layout Standard
384 There are several commands that automatically invoke \SpecialChar LaTeX
385 .
386  They are:
387 \end_layout
388
389 \begin_layout Itemize
390 \begin_inset Flex Noun
391 status collapsed
392
393 \begin_layout Plain Layout
394 Document\SpecialChar menuseparator
395 View
396 \end_layout
397
398 \end_inset
399
400
401 \end_layout
402
403 \begin_layout Itemize
404 \begin_inset Flex Noun
405 status collapsed
406
407 \begin_layout Plain Layout
408 Document\SpecialChar menuseparator
409 Update
410 \end_layout
411
412 \end_inset
413
414
415 \end_layout
416
417 \begin_layout Standard
418 They will only invoke \SpecialChar LaTeX
419  if the file has changed since the last time \SpecialChar LaTeX
420  was
421  run.
422  
423 \end_layout
424
425 \begin_layout Standard
426 When \SpecialChar LyX
427  runs \SpecialChar LaTeX
428  on the file you're editing, it performs these steps:
429 \end_layout
430
431 \begin_layout Enumerate
432 Convert the document to \SpecialChar LaTeX
433  and save to a file with the extension 
434 \begin_inset Flex Code
435 status collapsed
436
437 \begin_layout Plain Layout
438 .tex
439 \end_layout
440
441 \end_inset
442
443  in place of 
444 \begin_inset Flex Code
445 status collapsed
446
447 \begin_layout Plain Layout
448 .lyx
449 \end_layout
450
451 \end_inset
452
453 .
454 \end_layout
455
456 \begin_layout Enumerate
457 Run \SpecialChar LaTeX
458  on the 
459 \begin_inset Flex Code
460 status collapsed
461
462 \begin_layout Plain Layout
463 .tex
464 \end_layout
465
466 \end_inset
467
468  file (maybe several times), and run any other commands (such as 
469 \begin_inset Flex Code
470 status collapsed
471
472 \begin_layout Plain Layout
473 bibtex
474 \end_layout
475
476 \end_inset
477
478  or 
479 \begin_inset Flex Code
480 status collapsed
481
482 \begin_layout Plain Layout
483 makeindex
484 \end_layout
485
486 \end_inset
487
488 ) needed to compile the \SpecialChar LaTeX
489  file.
490 \end_layout
491
492 \begin_layout Enumerate
493 If there are any errors, show the error log.
494 \end_layout
495
496 \begin_layout Standard
497 If you have run \SpecialChar LaTeX
498  using 
499 \begin_inset Flex Noun
500 status collapsed
501
502 \begin_layout Plain Layout
503 View\SpecialChar menuseparator
504 DVI
505 \end_layout
506
507 \end_inset
508
509 , \SpecialChar LyX
510  then runs a DVI viewer to display the DVI-file.
511  If you have used 
512 \begin_inset Flex Noun
513 status collapsed
514
515 \begin_layout Plain Layout
516 View\SpecialChar menuseparator
517 PostScript
518 \end_layout
519
520 \end_inset
521
522 , \SpecialChar LyX
523  performs further steps:
524 \end_layout
525
526 \begin_layout Itemize
527 Run 
528 \begin_inset Flex Code
529 status collapsed
530
531 \begin_layout Plain Layout
532 dvips
533 \end_layout
534
535 \end_inset
536
537  to convert the DVI file to PostScript.
538 \end_layout
539
540 \begin_layout Itemize
541 Run a PostScript viewer, such as 
542 \begin_inset Flex Code
543 status collapsed
544
545 \begin_layout Plain Layout
546 ghostview
547 \end_layout
548
549 \end_inset
550
551 , to display the PostScript file.
552 \end_layout
553
554 \begin_layout Standard
555 \SpecialChar LyX
556  does similar things when viewing, or exporting, other formats.
557 \end_layout
558
559 \begin_layout Section
560 Translating \SpecialChar LaTeX
561  files into \SpecialChar LyX
562
563 \end_layout
564
565 \begin_layout Standard
566 You can import a \SpecialChar LaTeX
567  file into \SpecialChar LyX
568  by using the 
569 \begin_inset Flex Noun
570 status collapsed
571
572 \begin_layout Plain Layout
573 File\SpecialChar menuseparator
574 Import\SpecialChar menuseparator
575 LaTeX
576 \end_layout
577
578 \end_inset
579
580  command in \SpecialChar LyX
581 .
582  This will call a program named 
583 \begin_inset Flex Code
584 status collapsed
585
586 \begin_layout Plain Layout
587 tex2lyx
588 \end_layout
589
590 \end_inset
591
592  which will create a file 
593 \begin_inset Flex Code
594 status collapsed
595
596 \begin_layout Plain Layout
597 foo.lyx
598 \end_layout
599
600 \end_inset
601
602  from the file 
603 \begin_inset Flex Code
604 status collapsed
605
606 \begin_layout Plain Layout
607 foo.tex
608 \end_layout
609
610 \end_inset
611
612 .
613  \SpecialChar LyX
614  will then open that file.
615 \begin_inset Foot
616 status collapsed
617
618 \begin_layout Plain Layout
619 \begin_inset Flex Code
620 status collapsed
621
622 \begin_layout Plain Layout
623 tex2lyx
624 \end_layout
625
626 \end_inset
627
628  can also be run from the command line, of course.
629 \end_layout
630
631 \end_inset
632
633
634 \end_layout
635
636 \begin_layout Standard
637 \begin_inset Flex Code
638 status collapsed
639
640 \begin_layout Plain Layout
641 tex2lyx
642 \end_layout
643
644 \end_inset
645
646  will translate most legal \SpecialChar LaTeX
647 , but not everything.
648  It will put things it doesn't understand into \SpecialChar TeX
649  code, so after translating
650  a file with 
651 \begin_inset Flex Code
652 status collapsed
653
654 \begin_layout Plain Layout
655 tex2lyx
656 \end_layout
657
658 \end_inset
659
660 , you can look for \SpecialChar TeX
661  code and hand-edit it until it looks right.
662 \end_layout
663
664 \begin_layout Standard
665 If you don't know what \SpecialChar TeX
666  code is, read the next section.
667 \end_layout
668
669 \begin_layout Section
670 \begin_inset CommandInset label
671 LatexCommand label
672 name "sec:Inserting-TeX-Code"
673
674 \end_inset
675
676 Inserting \SpecialChar TeX
677  Code into \SpecialChar LyX
678  Documents 
679 \end_layout
680
681 \begin_layout Standard
682 Anything you can do in \SpecialChar LaTeX
683  you can do in \SpecialChar LyX
684 , for a very simple reason: You can
685  always insert \SpecialChar TeX
686  code into any \SpecialChar LyX
687  document.
688  \SpecialChar LyX
689  cannot, and will never be able to, display every possible \SpecialChar LaTeX
690  construct.
691  If ever you need to insert \SpecialChar LaTeX
692  commands into your \SpecialChar LyX
693  document, you can use the
694  
695 \begin_inset Flex Code
696 status collapsed
697
698 \begin_layout Plain Layout
699 \SpecialChar TeX
700  Code
701 \end_layout
702
703 \end_inset
704
705  box, which you can insert into your document with 
706 \begin_inset Flex Noun
707 status collapsed
708
709 \begin_layout Plain Layout
710 Insert\SpecialChar menuseparator
711
712 \family sans
713 TeX
714 \family default
715  Code
716 \end_layout
717
718 \end_inset
719
720  or the keyboard shortcut 
721 \begin_inset Info
722 type  "shortcut"
723 arg   "ert-insert"
724 \end_inset
725
726 .
727 \end_layout
728
729 \begin_layout Standard
730 Here's an example of inserting \SpecialChar LaTeX
731  commands in a \SpecialChar LyX
732  document.
733  The code looks like this:
734 \end_layout
735
736 \begin_layout LyX-Code
737
738 \backslash
739 begin{tabular}{ll}
740 \begin_inset Newline newline
741 \end_inset
742
743
744 \backslash
745 begin{minipage}{5cm}
746 \begin_inset Newline newline
747 \end_inset
748
749 This is an example of a minipage environment.
750  You 
751 \begin_inset Newline newline
752 \end_inset
753
754 can put nearly everything in it, even (non-floating) 
755 \begin_inset Newline newline
756 \end_inset
757
758 figures and tables.
759  
760 \begin_inset Newline newline
761 \end_inset
762
763
764 \backslash
765 end{minipage}
766 \begin_inset Newline newline
767 \end_inset
768
769 &
770 \begin_inset Newline newline
771 \end_inset
772
773
774 \backslash
775 begin{minipage}{5cm}
776 \begin_inset Newline newline
777 \end_inset
778
779
780 \backslash
781 begin{verbatim}
782 \begin_inset Newline newline
783 \end_inset
784
785
786 \backslash
787 begin{minipage}{5cm}
788 \begin_inset Newline newline
789 \end_inset
790
791 This ...
792  
793 \begin_inset Newline newline
794 \end_inset
795
796
797 \backslash
798 end{minipage}
799 \begin_inset Newline newline
800 \end_inset
801
802
803 \backslash
804 end{verbatim}
805 \begin_inset Newline newline
806 \end_inset
807
808
809 \backslash
810 end{minipage}
811 \begin_inset Newline newline
812 \end_inset
813
814
815 \backslash
816 end{tabular}
817 \end_layout
818
819 \begin_layout LyX-Code
820
821 \end_layout
822
823 \begin_layout Standard
824 The 
825 \begin_inset Flex Code
826 status collapsed
827
828 \begin_layout Plain Layout
829 \SpecialChar TeX
830  Code
831 \end_layout
832
833 \end_inset
834
835  box containing this text is directly after this paragraph.
836  Those of you reading the manual in \SpecialChar LyX
837  will only see the \SpecialChar TeX
838  code inset.
839  Those reading a printed version of the manuals will see the actual results:
840 \begin_inset VSpace bigskip
841 \end_inset
842
843
844 \end_layout
845
846 \begin_layout Standard
847 \begin_inset ERT
848 status open
849
850 \begin_layout Plain Layout
851
852
853 \backslash
854 begin{tabular}{ll}
855 \end_layout
856
857 \begin_layout Plain Layout
858
859
860 \backslash
861 begin{minipage}{5cm}
862 \end_layout
863
864 \begin_layout Plain Layout
865
866 This is an example of a minipage environment.
867  You can put nearly everything in it, even (non-floating) figures and tables.
868  
869 \end_layout
870
871 \begin_layout Plain Layout
872
873
874 \backslash
875 end{minipage}
876 \end_layout
877
878 \begin_layout Plain Layout
879
880 &
881 \end_layout
882
883 \begin_layout Plain Layout
884
885
886 \backslash
887 begin{minipage}{5cm}
888 \end_layout
889
890 \begin_layout Plain Layout
891
892
893 \backslash
894 begin{verbatim}
895 \end_layout
896
897 \begin_layout Plain Layout
898
899
900 \backslash
901 begin{minipage}{5cm}
902 \end_layout
903
904 \begin_layout Plain Layout
905
906 This ...
907  
908 \end_layout
909
910 \begin_layout Plain Layout
911
912
913 \backslash
914 end{minipage}
915 \end_layout
916
917 \begin_layout Plain Layout
918
919
920 \backslash
921 end{verbatim}
922 \end_layout
923
924 \begin_layout Plain Layout
925
926
927 \backslash
928 end{minipage}
929 \end_layout
930
931 \begin_layout Plain Layout
932
933
934 \backslash
935 end{tabular}
936 \end_layout
937
938 \end_inset
939
940
941 \begin_inset VSpace bigskip
942 \end_inset
943
944
945 \end_layout
946
947 \begin_layout Standard
948 In addition to using \SpecialChar TeX
949  code, you can also create a separate file containing
950  some complex \SpecialChar LaTeX
951  structure and then use 
952 \begin_inset Flex Noun
953 status collapsed
954
955 \begin_layout Plain Layout
956 Insert\SpecialChar menuseparator
957 Child
958 \begin_inset space ~
959 \end_inset
960
961 Document
962 \end_layout
963
964 \end_inset
965
966  to include your file (you should select the type 
967 \begin_inset Flex Code
968 status collapsed
969
970 \begin_layout Plain Layout
971 Input
972 \end_layout
973
974 \end_inset
975
976 ).
977  We recommend that you only do this if you have a 
978 \begin_inset Flex Code
979 status collapsed
980
981 \begin_layout Plain Layout
982 .tex
983 \end_layout
984
985 \end_inset
986
987  file which you 
988 \emph on
989 know
990 \emph default
991  works already.
992  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
993  errors.
994 \end_layout
995
996 \begin_layout Standard
997 There are a few last points to emphasize:
998 \end_layout
999
1000 \begin_layout Itemize
1001 \SpecialChar LyX
1002  
1003 \emph on
1004 does not
1005 \emph default
1006  check if your \SpecialChar LaTeX
1007  code is correct.
1008 \end_layout
1009
1010 \begin_layout Itemize
1011 Beware of reinventing the wheel.
1012 \end_layout
1013
1014 \begin_layout Standard
1015 On that last point, \SpecialChar LyX
1016  does have quite a few features tucked into it, and
1017  more are coming.
1018  Be sure to check the manuals to make sure that \SpecialChar LyX
1019  doesn't have such-and-such
1020  feature before you decide you have to do it by hand.
1021  Moreover, there are numerous \SpecialChar LaTeX
1022  packages out there to do all sorts of things,
1023  from labels to envelopes to fancy multipage tables.
1024  Check out 
1025 \begin_inset CommandInset href
1026 LatexCommand href
1027 name "CTAN"
1028 target "http://www.ctan.org/"
1029
1030 \end_inset
1031
1032  for details.
1033 \end_layout
1034
1035 \begin_layout Standard
1036 If you do need to do some wild and fancy things within your document, be
1037  sure to check out a good \SpecialChar LaTeX
1038  book for assistance.
1039  There are a number of them listed in the bibliography of the 
1040 \emph on
1041 User's Guide
1042 \emph default
1043 .
1044 \end_layout
1045
1046 \begin_layout Section
1047 \SpecialChar LyX
1048  and the \SpecialChar LaTeX
1049  Preamble
1050 \end_layout
1051
1052 \begin_layout Subsection
1053 About the \SpecialChar LaTeX
1054  Preamble
1055 \end_layout
1056
1057 \begin_layout Standard
1058 If you already know \SpecialChar LaTeX
1059 , there is no need to explain here what the preamble
1060  is good for.
1061  If you don't, the following will give you some ideas—we recommend again
1062  that you consult a \SpecialChar LaTeX
1063  book for further information.
1064  In any case, you should read the points below, because they explain what
1065  you can do and what you don't need to do in the \SpecialChar LaTeX
1066  preamble of a \SpecialChar LyX
1067  document.
1068 \end_layout
1069
1070 \begin_layout Standard
1071 The \SpecialChar LaTeX
1072  preamble comes at the very beginning of a document, 
1073 \emph on
1074 before
1075 \emph default
1076  the text.
1077  It serves to:
1078 \end_layout
1079
1080 \begin_layout Itemize
1081 Declare the document class.
1082  
1083 \begin_inset Newline newline
1084 \end_inset
1085
1086 \SpecialChar LyX
1087  already does this for you.
1088  If you're a seasoned \SpecialChar LaTeX
1089 -nician, and you have a custom document class you
1090  want to use, check out the 
1091 \emph on
1092 Customization Manual
1093 \emph default
1094  for information on how to make \SpecialChar LyX
1095  interface to it.
1096 \end_layout
1097
1098 \begin_layout Itemize
1099 Declare the usage of packages.
1100  
1101 \begin_inset Newline newline
1102 \end_inset
1103
1104 \SpecialChar LaTeX
1105  packages provide special commands, which are only available within a document
1106  when the package has been declared in the preamble.
1107  In addition to providing special commands, the inclusion of a package can
1108  change the document.
1109  For example, the package 
1110 \begin_inset Flex Code
1111 status collapsed
1112
1113 \begin_layout Plain Layout
1114 indentfirst
1115 \end_layout
1116
1117 \end_inset
1118
1119  forces all paragraphs to be indented.
1120  There are other packages for labels, envelopes, margins, etc.
1121  
1122 \end_layout
1123
1124 \begin_layout Itemize
1125 Set counters, variables, lengths and widths.
1126  
1127 \begin_inset Newline newline
1128 \end_inset
1129
1130 There are several \SpecialChar LaTeX
1131  counters and variables that 
1132 \emph on
1133 must
1134 \emph default
1135  be set globally from within the preamble in order to have the desired effect.
1136  (There are variables that you can set and reset inside the document, too.)
1137  Margins are a good example of something that must be set in the preamble.
1138  Another example is the label format for lists.
1139  You can actually set these just about anywhere, but it's best to do it
1140  just once, inside the preamble.
1141 \end_layout
1142
1143 \begin_layout Itemize
1144 Declare user defined commands (with 
1145 \begin_inset Flex Code
1146 status collapsed
1147
1148 \begin_layout Plain Layout
1149
1150 \backslash
1151 newcommand
1152 \end_layout
1153
1154 \end_inset
1155
1156  or 
1157 \begin_inset Flex Code
1158 status collapsed
1159
1160 \begin_layout Plain Layout
1161
1162 \backslash
1163 renewcommand
1164 \end_layout
1165
1166 \end_inset
1167
1168 ).
1169 \begin_inset Newline newline
1170 \end_inset
1171
1172 These are abbreviations for \SpecialChar LaTeX
1173  commands which appear very often inside a document.
1174  Although the preamble is a good place to declare such commands, they 
1175 \emph on
1176 can
1177 \emph default
1178  be declared anywhere (before they are used for the first time, of course).
1179  This can be useful if there is a lot of raw \SpecialChar LaTeX
1180  code in your document, which
1181  normally should not be the case.
1182 \end_layout
1183
1184 \begin_layout Standard
1185 \SpecialChar LyX
1186  adds its own set of definitions to the preamble of the 
1187 \begin_inset Flex Code
1188 status collapsed
1189
1190 \begin_layout Plain Layout
1191 .tex
1192 \end_layout
1193
1194 \end_inset
1195
1196  file it produces.
1197  This makes \SpecialChar LaTeX
1198  files generated by \SpecialChar LyX
1199  portable.
1200 \end_layout
1201
1202 \begin_layout Subsection
1203 Changing the Preamble
1204 \end_layout
1205
1206 \begin_layout Standard
1207 The commands which \SpecialChar LyX
1208  adds to the preamble of a \SpecialChar LaTeX
1209  file are fixed; you can't
1210  change them without patching \SpecialChar LyX
1211  itself.
1212  You can, however, add your own stuff to the preamble by selecting 
1213 \begin_inset Flex Noun
1214 status collapsed
1215
1216 \begin_layout Plain Layout
1217 \SpecialChar LaTeX
1218
1219 \begin_inset space ~
1220 \end_inset
1221
1222 Preamble
1223 \end_layout
1224
1225 \end_inset
1226
1227  in the 
1228 \begin_inset Flex Noun
1229 status collapsed
1230
1231 \begin_layout Plain Layout
1232 Document\SpecialChar menuseparator
1233 Settings
1234 \end_layout
1235
1236 \end_inset
1237
1238  dialog.
1239  \SpecialChar LyX
1240  adds anything in the 
1241 \begin_inset Flex Noun
1242 status collapsed
1243
1244 \begin_layout Plain Layout
1245 Preamble
1246 \end_layout
1247
1248 \end_inset
1249
1250  dialog to its own built-in preamble.
1251  Before adding your own declarations in the preamble, you should make sure
1252  that \SpecialChar LyX
1253  doesn't already support what you want to do.
1254  (Remember what we said about reinventing the wheel?) Also, 
1255 \emph on
1256 make sure your preamble code is correct
1257 \emph default
1258 .
1259  \SpecialChar LyX
1260  doesn't check it for you.
1261  If there is an error, you're likely to get an error like 
1262 \begin_inset Quotes eld
1263 \end_inset
1264
1265
1266 \begin_inset Flex Code
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 Missing 
1271 \backslash
1272 begin{document}
1273 \end_layout
1274
1275 \end_inset
1276
1277
1278 \begin_inset Quotes erd
1279 \end_inset
1280
1281 .
1282  If you see this error, check your preamble.
1283 \end_layout
1284
1285 \begin_layout Subsection
1286 Examples
1287 \end_layout
1288
1289 \begin_layout Standard
1290 Here are some examples of what you can add to a preamble, and what they
1291  do.
1292 \end_layout
1293
1294 \begin_layout Subsubsection
1295 Example #1: Offsets
1296 \end_layout
1297
1298 \begin_layout Standard
1299 There are two variables under \SpecialChar LaTeX
1300  that control page position: 
1301 \begin_inset Flex Code
1302 status collapsed
1303
1304 \begin_layout Plain Layout
1305
1306 \backslash
1307 hoffset
1308 \end_layout
1309
1310 \end_inset
1311
1312  and 
1313 \begin_inset Flex Code
1314 status collapsed
1315
1316 \begin_layout Plain Layout
1317
1318 \backslash
1319 voffset
1320 \end_layout
1321
1322 \end_inset
1323
1324 .
1325  Their names should be self-explanatory.
1326  These variables are useful if you think for a moment about computer labels.
1327  Sometimes, the size of a print medium and the area of the medium that you
1328  can actually print on aren't the same.
1329  This is where 
1330 \begin_inset Flex Code
1331 status collapsed
1332
1333 \begin_layout Plain Layout
1334
1335 \backslash
1336 hoffset
1337 \end_layout
1338
1339 \end_inset
1340
1341  and 
1342 \begin_inset Flex Code
1343 status collapsed
1344
1345 \begin_layout Plain Layout
1346
1347 \backslash
1348 voffset
1349 \end_layout
1350
1351 \end_inset
1352
1353  come in.
1354 \end_layout
1355
1356 \begin_layout Standard
1357 The default values for 
1358 \begin_inset Flex Code
1359 status collapsed
1360
1361 \begin_layout Plain Layout
1362
1363 \backslash
1364 hoffset
1365 \end_layout
1366
1367 \end_inset
1368
1369  and 
1370 \begin_inset Flex Code
1371 status collapsed
1372
1373 \begin_layout Plain Layout
1374
1375 \backslash
1376 voffset
1377 \end_layout
1378
1379 \end_inset
1380
1381  are both 0
1382 \begin_inset space \thinspace{}
1383 \end_inset
1384
1385 points, i.
1386 \begin_inset space \thinspace{}
1387 \end_inset
1388
1389 e.
1390 \begin_inset space \space{}
1391 \end_inset
1392
1393 the page isn't shifted.
1394  Unfortunately, some DVI drivers always seem to shift the page.
1395  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1396  If you're using \SpecialChar LyX
1397  on a system that you don't personally maintain, and your
1398  sysadmin is a doofus, 
1399 \begin_inset Flex Code
1400 status collapsed
1401
1402 \begin_layout Plain Layout
1403
1404 \backslash
1405 hoffset
1406 \end_layout
1407
1408 \end_inset
1409
1410  and 
1411 \begin_inset Flex Code
1412 status collapsed
1413
1414 \begin_layout Plain Layout
1415
1416 \backslash
1417 voffset
1418 \end_layout
1419
1420 \end_inset
1421
1422  can save the day.
1423  Suppose your left and top margins are always 0.5
1424 \begin_inset space \thinspace{}
1425 \end_inset
1426
1427 inches too big.
1428  You can add this to the preamble:
1429 \end_layout
1430
1431 \begin_layout LyX-Code
1432
1433 \backslash
1434 setlength{
1435 \backslash
1436 hoffset}{-0.5 in}
1437 \end_layout
1438
1439 \begin_layout LyX-Code
1440
1441 \backslash
1442 setlength{
1443 \backslash
1444 voffset}{-0.5 in}
1445 \end_layout
1446
1447 \begin_layout Standard
1448 and your margins should now be correct.
1449 \end_layout
1450
1451 \begin_layout Subsubsection
1452 Example #2: Labels
1453 \end_layout
1454
1455 \begin_layout Standard
1456 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1457  There's a rather nice package, available at your nearest CTAN archive,
1458  for printing sheets of labels: 
1459 \begin_inset Flex Code
1460 status collapsed
1461
1462 \begin_layout Plain Layout
1463 labels.sty
1464 \end_layout
1465
1466 \end_inset
1467
1468 .
1469  Now, your system may not have this package installed by default.
1470  We leave that up to you to check.
1471  You'll also want to read the documentation for it; we're not going to do
1472  that for you.
1473  Since this is an example, however, we'll give you an example of how you
1474  use this package.
1475 \end_layout
1476
1477 \begin_layout Standard
1478 First, make sure you're using the 
1479 \begin_inset Flex Code
1480 status collapsed
1481
1482 \begin_layout Plain Layout
1483 article
1484 \end_layout
1485
1486 \end_inset
1487
1488  document class.
1489  Next, you need to put the following in your preamble:
1490 \end_layout
1491
1492 \begin_layout LyX-Code
1493
1494 \backslash
1495 usepackage{labels}
1496 \end_layout
1497
1498 \begin_layout LyX-Code
1499
1500 \backslash
1501 LabelCols=3
1502 \end_layout
1503
1504 \begin_layout LyX-Code
1505
1506 \backslash
1507 LabelRows=7
1508 \end_layout
1509
1510 \begin_layout LyX-Code
1511
1512 \backslash
1513 LeftBorder=8mm
1514 \end_layout
1515
1516 \begin_layout LyX-Code
1517
1518 \backslash
1519 RightBorder=8mm
1520 \end_layout
1521
1522 \begin_layout LyX-Code
1523
1524 \backslash
1525 TopBorder=9mm
1526 \end_layout
1527
1528 \begin_layout LyX-Code
1529
1530 \backslash
1531 BottomBorder=2mm
1532 \end_layout
1533
1534 \begin_layout Standard
1535 This sets things up for Avery label sheets, stock #5360.
1536  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1537  code, placing
1538  the commands 
1539 \begin_inset Flex Code
1540 status collapsed
1541
1542 \begin_layout Plain Layout
1543
1544 \backslash
1545 begin{labels}
1546 \end_layout
1547
1548 \end_inset
1549
1550  and 
1551 \begin_inset Flex Code
1552 status collapsed
1553
1554 \begin_layout Plain Layout
1555
1556 \backslash
1557 end{labels}
1558 \end_layout
1559
1560 \end_inset
1561
1562  around each label text.
1563  This and other special features of 
1564 \begin_inset Flex Code
1565 status collapsed
1566
1567 \begin_layout Plain Layout
1568 labels.sty
1569 \end_layout
1570
1571 \end_inset
1572
1573  are explained in its documentation.
1574 \end_layout
1575
1576 \begin_layout Standard
1577 Someday, someone may write a \SpecialChar LyX
1578  layout file to support this package directly.
1579  Maybe that someone is you.
1580 \end_layout
1581
1582 \begin_layout Subsubsection
1583 Example #3: Paragraph Indentation
1584 \end_layout
1585
1586 \begin_layout Standard
1587 Americans are trained to indent the first line of 
1588 \emph on
1589 every
1590 \emph default
1591  paragraph.
1592  As with all of their other weird quirks, most Americans will whine and
1593  moan until they can have their way and indent the first line of all paragraphs.
1594  (Yes, we're joking.
1595  (We are?) 
1596 \emph on
1597 Yeah
1598 \emph default
1599 , we are.)
1600 \end_layout
1601
1602 \begin_layout Standard
1603 Of course, this behavior isn't standard typography.
1604  In books, you typically only indent the first line of a paragraph 
1605 \emph on
1606 if
1607 \emph default
1608  it follows another one.
1609  The idea behind indenting the first line of a paragraph is to distinguish
1610  neighboring paragraphs from one another.
1611  If there is no previous paragraph—for example, if it follows a figure or
1612  is the first paragraph in a section—then there is no need for indentation.
1613  
1614 \end_layout
1615
1616 \begin_layout Standard
1617 If you're a typical American (we're still joking!), though, you don't care
1618  about such esoteric things; you want your indentation! Add this to the
1619  preamble:
1620 \end_layout
1621
1622 \begin_layout LyX-Code
1623
1624 \backslash
1625 usepackage{indentfirst}
1626 \end_layout
1627
1628 \begin_layout Standard
1629 If your \SpecialChar TeX
1630  distribution isn't braindead, you'll have this package, and all
1631  of your paragraphs will get the indentation the Founding Fathers intended
1632  they should have.
1633 \end_layout
1634
1635 \begin_layout Subsubsection
1636 Example #4: This Document
1637 \end_layout
1638
1639 \begin_layout Standard
1640 You can also check out the preamble of this document to get an idea of some
1641  of the advanced things you can do.
1642 \end_layout
1643
1644 \begin_layout Section
1645 \SpecialChar LyX
1646  and \SpecialChar LaTeX
1647  Errors
1648 \end_layout
1649
1650 \begin_layout Standard
1651 When \SpecialChar LyX
1652  calls \SpecialChar LaTeX
1653 , it tells \SpecialChar LaTeX
1654  to blithely ignore any errors and keep going.
1655  It then uses the logfile from the \SpecialChar LaTeX
1656  run to do a post-mortem.
1657  After analyzing the logfile, \SpecialChar LyX
1658  displays a dialog listing the errors.
1659  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1660  file
1661  where the error occurred.
1662 \begin_inset Foot
1663 status collapsed
1664
1665 \begin_layout Plain Layout
1666 Well, usually.
1667  Analyzing the logfile is a tough job, and \SpecialChar LyX
1668  doesn't always go to the right
1669  line.
1670  There are also cases where \SpecialChar LaTeX
1671  reports the error on one line, but the actual
1672  error is earlier.
1673  This is not unlike forgetting a closing brace in a program: You'll get
1674  an error, but only later.
1675 \end_layout
1676
1677 \end_inset
1678
1679
1680 \end_layout
1681
1682 \begin_layout Standard
1683 Some folks also like to look at the log file directly: It is available from
1684  
1685 \begin_inset Flex Noun
1686 status collapsed
1687
1688 \begin_layout Plain Layout
1689 Document\SpecialChar menuseparator
1690 LaTeX
1691 \begin_inset space ~
1692 \end_inset
1693
1694 Log
1695 \end_layout
1696
1697 \end_inset
1698
1699 .
1700  There are some fairly common error messages and warnings.
1701  We'll cover those here.
1702  You should look at a good \SpecialChar LaTeX
1703  book for a complete listing.
1704 \end_layout
1705
1706 \begin_layout Itemize
1707 \begin_inset Flex Code
1708 status collapsed
1709
1710 \begin_layout Plain Layout
1711 LaTeX Warning
1712 \end_layout
1713
1714 \end_inset
1715
1716
1717 \begin_inset Newline newline
1718 \end_inset
1719
1720 Anything beginning with these words is a warning message for the purpose
1721  of 
1722 \begin_inset Quotes eld
1723 \end_inset
1724
1725 debugging
1726 \begin_inset Quotes erd
1727 \end_inset
1728
1729  the \SpecialChar LaTeX
1730  code itself.
1731  You'll get messages like this if you added or changed cross-references
1732  or bibliography entries, in which case, \SpecialChar LaTeX
1733  is trying to tell you that you
1734  need to make another run.
1735  You can by-and-large ignore these.
1736 \end_layout
1737
1738 \begin_layout Itemize
1739 \begin_inset Flex Code
1740 status collapsed
1741
1742 \begin_layout Plain Layout
1743 LaTeX Font Warning
1744 \end_layout
1745
1746 \end_inset
1747
1748
1749 \begin_inset Newline newline
1750 \end_inset
1751
1752 Another warning message, this time about fonts which \SpecialChar LaTeX
1753  couldn't find.
1754  The rest of the message will often say something about a replacement font
1755  that \SpecialChar LaTeX
1756  used.
1757  You can safely ignore these, too.
1758 \end_layout
1759
1760 \begin_layout Itemize
1761 \begin_inset Flex Code
1762 status collapsed
1763
1764 \begin_layout Plain Layout
1765 Overfull 
1766 \backslash
1767 hbox
1768 \end_layout
1769
1770 \end_inset
1771
1772
1773 \begin_inset Newline newline
1774 \end_inset
1775
1776 \SpecialChar LaTeX
1777  absolutely 
1778 \emph on
1779 loves
1780 \emph default
1781  to spew these out.
1782  They are warnings about lines that were too long and run past the right
1783  margin.
1784  Almost always, this is unnoticeable in the final output.
1785  (It can be just a point or two.) Or, only one or two characters extend past
1786  the margin.
1787  \SpecialChar LaTeX
1788  seems to generate at least one of these messages for just about any document
1789  you write.
1790 \begin_inset Newline newline
1791 \end_inset
1792
1793 You can ignore these messages.
1794  Your eyes will tell you if there's a problem with something that's too
1795  wide; just look at the output.
1796 \begin_inset Foot
1797 status collapsed
1798
1799 \begin_layout Plain Layout
1800 You can also enable the `draft' option in 
1801 \begin_inset Flex Noun
1802 status collapsed
1803
1804 \begin_layout Plain Layout
1805 Document\SpecialChar menuseparator
1806 Settings
1807 \end_layout
1808
1809 \end_inset
1810
1811 , and then \SpecialChar LaTeX
1812  will draw a black box in the margin of lines that are overfull.
1813 \end_layout
1814
1815 \end_inset
1816
1817
1818 \end_layout
1819
1820 \begin_layout Itemize
1821 \begin_inset Flex Code
1822 status collapsed
1823
1824 \begin_layout Plain Layout
1825 Underfull 
1826 \backslash
1827 hbox
1828 \end_layout
1829
1830 \end_inset
1831
1832
1833 \begin_inset Newline newline
1834 \end_inset
1835
1836 Not quite as common as its cousin.
1837  \SpecialChar LaTeX
1838  seems to like to print lines that are a bit too wide as opposed to ones
1839  that are a bit too narrow.
1840  We have no idea why.
1841 \end_layout
1842
1843 \begin_layout Itemize
1844 \begin_inset Flex Code
1845 status collapsed
1846
1847 \begin_layout Plain Layout
1848 Overfull 
1849 \backslash
1850 vbox
1851 \end_layout
1852
1853 \end_inset
1854
1855  and 
1856 \begin_inset Flex Code
1857 status collapsed
1858
1859 \begin_layout Plain Layout
1860 Underfull 
1861 \backslash
1862 vbox
1863 \end_layout
1864
1865 \end_inset
1866
1867
1868 \begin_inset Newline newline
1869 \end_inset
1870
1871 Warnings about troubles breaking the page.
1872  Once again, just look at the output.
1873  Your eyes will tell you where something has gone wrong.
1874 \end_layout
1875
1876 \begin_layout Itemize
1877 \begin_inset Flex Code
1878 status collapsed
1879
1880 \begin_layout Plain Layout
1881 LaTeX Error: File 
1882 \begin_inset Quotes els
1883 \end_inset
1884
1885 Xxxx
1886 \begin_inset Quotes ers
1887 \end_inset
1888
1889  not found
1890 \end_layout
1891
1892 \end_inset
1893
1894
1895 \begin_inset Newline newline
1896 \end_inset
1897
1898 The file 
1899 \begin_inset Quotes eld
1900 \end_inset
1901
1902 Xxxx
1903 \begin_inset Quotes erd
1904 \end_inset
1905
1906  isn't installed on this system.
1907  This usually appears because some package your document needs isn't installed.
1908  If you didn't touch the preamble or didn't use the 
1909 \begin_inset Flex Code
1910 status collapsed
1911
1912 \begin_layout Plain Layout
1913
1914 \backslash
1915 usepackage{}
1916 \end_layout
1917
1918 \end_inset
1919
1920  command, then one of the packages \SpecialChar LyX
1921  tried to load is missing.
1922  Use 
1923 \begin_inset Flex Noun
1924 status collapsed
1925
1926 \begin_layout Plain Layout
1927 Help\SpecialChar menuseparator
1928 \SpecialChar LaTeX
1929  Configuration
1930 \end_layout
1931
1932 \end_inset
1933
1934  to get a list of packages that \SpecialChar LyX
1935  knows about.
1936  This file is updated whenever you reconfigure \SpecialChar LyX
1937  (using 
1938 \begin_inset Flex Noun
1939 status collapsed
1940
1941 \begin_layout Plain Layout
1942 Tools\SpecialChar menuseparator
1943 Reconfigure
1944 \end_layout
1945
1946 \end_inset
1947
1948 ) and tells you which packages have been detected and what they do.
1949 \begin_inset Newline newline
1950 \end_inset
1951
1952 If you did use the 
1953 \begin_inset Flex Code
1954 status collapsed
1955
1956 \begin_layout Plain Layout
1957
1958 \backslash
1959 usepackage{}
1960 \end_layout
1961
1962 \end_inset
1963
1964  command and the package in question isn't installed, then you'll need to
1965  install it yourself.
1966 \end_layout
1967
1968 \begin_layout Itemize
1969 \begin_inset Flex Code
1970 status collapsed
1971
1972 \begin_layout Plain Layout
1973 LaTeX Error: Unknown option
1974 \end_layout
1975
1976 \end_inset
1977
1978
1979 \begin_inset Newline newline
1980 \end_inset
1981
1982 Error messages beginning with this are trying to tell you that you specified
1983  a bad or undefined option to a package.
1984  Check the package's documentation.
1985 \end_layout
1986
1987 \begin_layout Itemize
1988 \begin_inset Flex Code
1989 status collapsed
1990
1991 \begin_layout Plain Layout
1992 Undefined control sequence
1993 \end_layout
1994
1995 \end_inset
1996
1997
1998 \begin_inset Newline newline
1999 \end_inset
2000
2001 If you've inserted \SpecialChar LaTeX
2002  code into your document, but made a typo, you'll get
2003  one of these.
2004  You may have forgotten to load a package.
2005  In any case, this error message usually means that you used an undefined
2006  command.
2007  
2008 \end_layout
2009
2010 \begin_layout Standard
2011 There are other error and warning messages.
2012  Some are self-explanatory.
2013  These are usually \SpecialChar LaTeX
2014  messages.
2015  Others are downright cryptic.
2016  These are usually \SpecialChar TeX
2017  error messages, and we really have 
2018 \emph on
2019 no clue
2020 \emph default
2021  what they mean or how to decipher them.
2022  No-one does.
2023 \end_layout
2024
2025 \begin_layout Standard
2026 There's a general sequence you should follow if you get error messages:
2027 \end_layout
2028
2029 \begin_layout Enumerate
2030 Look at the \SpecialChar LaTeX
2031  code you inserted for typos.
2032 \end_layout
2033
2034 \begin_layout Enumerate
2035 If there are no typos, check that you used the command(s) correctly.
2036 \end_layout
2037
2038 \begin_layout Enumerate
2039 If you get a bunch of error boxes piled up at the very top of the document—and
2040  especially if you see a 
2041 \begin_inset Quotes eld
2042 \end_inset
2043
2044
2045 \begin_inset Flex Code
2046 status collapsed
2047
2048 \begin_layout Plain Layout
2049 Missing 
2050 \backslash
2051 begin{document}
2052 \end_layout
2053
2054 \end_inset
2055
2056
2057 \begin_inset Quotes erd
2058 \end_inset
2059
2060  error—it means that there are errors in the preamble.
2061  Start debugging your preamble.
2062 \end_layout
2063
2064 \begin_layout Enumerate
2065 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2066  code to the
2067  document, the first suspect is your \SpecialChar LaTeX
2068  distribution itself.
2069  Check for missing packages and install them.
2070 \end_layout
2071
2072 \begin_layout Enumerate
2073 Okay, so there are no missing packages.
2074  Did you use any of the fine-tuning options in \SpecialChar LyX
2075 ? Specifically, did you 
2076 \emph on
2077 misuse
2078 \emph default
2079  any of them, like trying to manually insert lots of 
2080 \begin_inset Flex Code
2081 status collapsed
2082
2083 \begin_layout Plain Layout
2084 Protected
2085 \begin_inset space ~
2086 \end_inset
2087
2088 Blanks
2089 \end_layout
2090
2091 \end_inset
2092
2093
2094 \begin_inset Flex Code
2095 status collapsed
2096
2097 \begin_layout Plain Layout
2098 Linebreaks
2099 \end_layout
2100
2101 \end_inset
2102
2103 , or 
2104 \begin_inset Flex Code
2105 status collapsed
2106
2107 \begin_layout Plain Layout
2108 Pagebreaks
2109 \end_layout
2110
2111 \end_inset
2112
2113 ? Did you try to kludge something together with these instead of using the
2114  appropriate paragraph environment?
2115 \end_layout
2116
2117 \begin_layout Enumerate
2118 All right, you didn't use any of the fine-tuning options, you played by
2119  the rules.
2120  Did you try to pull a fancy maneuver? Did you do something funky inside
2121  a table or an equation, like inserting a graphic into a table cell?
2122 \end_layout
2123
2124 \begin_layout Enumerate
2125 Do you have long sections of text where \SpecialChar LaTeX
2126  cannot find a place to break a
2127  line? By default, \SpecialChar LaTeX
2128  is rather strict about how much extra inter-word spacing
2129  it will add in order to break a line.
2130  Preferably, you should rework the paragraph to avoid the problem.
2131 \end_layout
2132
2133 \begin_layout Enumerate
2134 Did you go overboard with the nesting? \SpecialChar LyX
2135  (currently) doesn't check to make
2136  sure you're in the limits for nesting environments.
2137  If you nested a bunch of environments to the 
2138 \begin_inset Formula $17^{\mathrm{th}}$
2139 \end_inset
2140
2141  level, that's the problem.
2142  (The limit in \SpecialChar LaTeX
2143  is five.)
2144 \end_layout
2145
2146 \begin_layout Enumerate
2147 Okay, you didn't get any error messages, but your output looks awful.
2148  If you have a table or figure that's too wide or long for the page, you
2149  need to:
2150 \end_layout
2151
2152 \begin_deeper
2153 \begin_layout Enumerate
2154 rescale the figure so it fits.
2155 \end_layout
2156
2157 \begin_layout Enumerate
2158 trim down the table so it fits.
2159 \end_layout
2160
2161 \end_deeper
2162 \begin_layout Enumerate
2163 If something else is wrong with the output, and you didn't try to pull anything
2164  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2165 \end_layout
2166
2167 \begin_layout Standard
2168 If all this doesn't help—well, then 
2169 \emph on
2170 perhaps
2171 \emph default
2172  you might have found a bug in \SpecialChar LyX
2173 \SpecialChar ldots
2174 .
2175 \end_layout
2176
2177 \begin_layout Chapter
2178 Supplemental Tools
2179 \end_layout
2180
2181 \begin_layout Section
2182 Customizing Bibliographies with Bib\SpecialChar TeX
2183
2184 \end_layout
2185
2186 \begin_layout Standard
2187 The most basic information about how to use Bib\SpecialChar TeX
2188  with \SpecialChar LyX
2189  is contained in the
2190  section 
2191 \emph on
2192 Bibliography databases (Bib\SpecialChar TeX
2193 )
2194 \emph default
2195  of the 
2196 \emph on
2197 User's Guide
2198 \emph default
2199 .
2200  The following subsections explain special bibliography features supported
2201  by \SpecialChar LyX
2202 .
2203 \end_layout
2204
2205 \begin_layout Subsection
2206 Alternative Citation Styles
2207 \end_layout
2208
2209 \begin_layout Standard
2210 Standard Bib\SpecialChar TeX
2211  uses numbers (e.
2212 \begin_inset space \thinspace{}
2213 \end_inset
2214
2215 g.
2216 \begin_inset space \space{}
2217 \end_inset
2218
2219
2220 \begin_inset Quotes eld
2221 \end_inset
2222
2223 [12]
2224 \begin_inset Quotes erd
2225 \end_inset
2226
2227 ) to refer to a cited work.
2228  However, in many scientific disciplines, other citation styles are in use.
2229  The most common one is the author-year style (e.
2230 \begin_inset space \thinspace{}
2231 \end_inset
2232
2233 g.
2234 \begin_inset space \space{}
2235 \end_inset
2236
2237
2238 \begin_inset Quotes eld
2239 \end_inset
2240
2241 Knuth 1984a
2242 \begin_inset Quotes erd
2243 \end_inset
2244
2245 ).
2246  \SpecialChar LyX
2247  supports two packages that provide this style, 
2248 \begin_inset Flex Code
2249 status collapsed
2250
2251 \begin_layout Plain Layout
2252 natbib
2253 \end_layout
2254
2255 \end_inset
2256
2257  and 
2258 \begin_inset Flex Code
2259 status collapsed
2260
2261 \begin_layout Plain Layout
2262 jurabib
2263 \end_layout
2264
2265 \end_inset
2266
2267 .
2268  Both packages have their pros and cons, which cannot be listed in detail.
2269  If you only want to have simple author-year (or author-numerical) style,
2270  or if you want to use one of the countless style files for 
2271 \begin_inset Flex Code
2272 status collapsed
2273
2274 \begin_layout Plain Layout
2275 natbib
2276 \end_layout
2277
2278 \end_inset
2279
2280 , then the established 
2281 \begin_inset Flex Code
2282 status collapsed
2283
2284 \begin_layout Plain Layout
2285 natbib
2286 \end_layout
2287
2288 \end_inset
2289
2290  package is probably your choice.
2291  If you need special features like short title references, ibidem etc., you
2292  might consider the 
2293 \begin_inset Flex Code
2294 status collapsed
2295
2296 \begin_layout Plain Layout
2297 jurabib
2298 \end_layout
2299
2300 \end_inset
2301
2302  package.
2303 \end_layout
2304
2305 \begin_layout Standard
2306 The handling of both packages in \SpecialChar LyX
2307  is basically the same.
2308  Go to 
2309 \begin_inset Flex Noun
2310 status collapsed
2311
2312 \begin_layout Plain Layout
2313 Document\SpecialChar menuseparator
2314 Settings
2315 \end_layout
2316
2317 \end_inset
2318
2319  and select under 
2320 \begin_inset Flex Noun
2321 status collapsed
2322
2323 \begin_layout Plain Layout
2324 Bibliography
2325 \end_layout
2326
2327 \end_inset
2328
2329  the option 
2330 \begin_inset Flex Noun
2331 status collapsed
2332
2333 \begin_layout Plain Layout
2334 Natbib
2335 \end_layout
2336
2337 \end_inset
2338
2339  or 
2340 \begin_inset Flex Noun
2341 status collapsed
2342
2343 \begin_layout Plain Layout
2344 Jurabib
2345 \end_layout
2346
2347 \end_inset
2348
2349 .
2350  With both packages, you will get some extra features in the citation dialog
2351  and you can select the style of the reference (
2352 \begin_inset Quotes eld
2353 \end_inset
2354
2355 Knuth 1984
2356 \begin_inset Quotes erd
2357 \end_inset
2358
2359
2360 \begin_inset Quotes eld
2361 \end_inset
2362
2363 Knuth (1984)
2364 \begin_inset Quotes erd
2365 \end_inset
2366
2367
2368 \begin_inset Quotes eld
2369 \end_inset
2370
2371 Knuth, 1984
2372 \begin_inset Quotes erd
2373 \end_inset
2374
2375
2376 \begin_inset Quotes eld
2377 \end_inset
2378
2379 1984
2380 \begin_inset Quotes erd
2381 \end_inset
2382
2383  etc.).
2384  Note that both packages need specifically designed style files.
2385  They both ship their own, but there are lots of additional style files,
2386  and there is even an interactive style file builder
2387 \begin_inset Foot
2388 status collapsed
2389
2390 \begin_layout Plain Layout
2391 See 
2392 \begin_inset Flex URL
2393 status open
2394
2395 \begin_layout Plain Layout
2396
2397 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2398 \end_layout
2399
2400 \end_inset
2401
2402
2403 \end_layout
2404
2405 \end_inset
2406
2407  for 
2408 \begin_inset Flex Code
2409 status collapsed
2410
2411 \begin_layout Plain Layout
2412 natbib
2413 \end_layout
2414
2415 \end_inset
2416
2417 .
2418 \end_layout
2419
2420 \begin_layout Subsection
2421 Sectioned Bibliographies
2422 \end_layout
2423
2424 \begin_layout Standard
2425 Sometimes you might need to divide your bibliography into several sections.
2426  If you are for instance a historian, the possibility to separate sources
2427  and scientific works is most likely a 
2428 \begin_inset Quotes eld
2429 \end_inset
2430
2431 must have
2432 \begin_inset Quotes erd
2433 \end_inset
2434
2435 .
2436  Unfortunately, Bib\SpecialChar TeX
2437  itself does not allow you to do this.
2438  But with the help of some \SpecialChar LaTeX
2439  packages, Bib\SpecialChar TeX
2440  can be extended to fit your needs.
2441 \end_layout
2442
2443 \begin_layout Standard
2444 \SpecialChar LyX
2445  provides native support for one of these packages, 
2446 \family typewriter
2447 bibtopic
2448 \family default
2449 .
2450 \begin_inset Foot
2451 status collapsed
2452
2453 \begin_layout Plain Layout
2454 Available from 
2455 \begin_inset Flex URL
2456 status open
2457
2458 \begin_layout Plain Layout
2459
2460 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2461 \end_layout
2462
2463 \end_inset
2464
2465
2466 \end_layout
2467
2468 \end_inset
2469
2470  The advantage of this package (compared to other packages like 
2471 \family typewriter
2472 multibib
2473 \family default
2474 ) is that you don't need to define new citation commands.
2475  Instead, you need to prepare different bibliographic databases which include
2476  the entries for the different sections of the bibliography.
2477  For example: If you want to divide your bibliography into the sections
2478  
2479 \begin_inset Quotes eld
2480 \end_inset
2481
2482 Sources
2483 \begin_inset Quotes erd
2484 \end_inset
2485
2486  and 
2487 \begin_inset Quotes eld
2488 \end_inset
2489
2490 Scientific works
2491 \begin_inset Quotes erd
2492 \end_inset
2493
2494 , you first need to create two bibliographic databases, e.
2495 \begin_inset space \thinspace{}
2496 \end_inset
2497
2498 g.
2499 \begin_inset space \space{}
2500 \end_inset
2501
2502
2503 \begin_inset Flex Code
2504 status collapsed
2505
2506 \begin_layout Plain Layout
2507 sources.bib
2508 \end_layout
2509
2510 \end_inset
2511
2512  and 
2513 \begin_inset Flex Code
2514 status collapsed
2515
2516 \begin_layout Plain Layout
2517 scientific.bib
2518 \end_layout
2519
2520 \end_inset
2521
2522 .
2523  
2524 \end_layout
2525
2526 \begin_layout Standard
2527 Go to 
2528 \begin_inset Flex Noun
2529 status collapsed
2530
2531 \begin_layout Plain Layout
2532 Document\SpecialChar menuseparator
2533 Settings
2534 \end_layout
2535
2536 \end_inset
2537
2538  and check under 
2539 \begin_inset Flex Noun
2540 status collapsed
2541
2542 \begin_layout Plain Layout
2543 Bibliography
2544 \end_layout
2545
2546 \end_inset
2547
2548  the option 
2549 \begin_inset Flex Noun
2550 status collapsed
2551
2552 \begin_layout Plain Layout
2553 Sectioned bibliography
2554 \end_layout
2555
2556 \end_inset
2557
2558 .
2559  Now you can insert multiple Bib\SpecialChar TeX
2560  bibliographies, one for each section of
2561  your bibliography.
2562  Returning to our example: Insert the Bib\SpecialChar TeX
2563  bibliography 
2564 \begin_inset Flex Code
2565 status collapsed
2566
2567 \begin_layout Plain Layout
2568 sources.bib
2569 \end_layout
2570
2571 \end_inset
2572
2573  and a second one for the database 
2574 \begin_inset Flex Code
2575 status collapsed
2576
2577 \begin_layout Plain Layout
2578 scientific.bib
2579 \end_layout
2580
2581 \end_inset
2582
2583 .
2584  You are free to use the same or different styles for each section.
2585  Additionally, you can choose if the bibliography section should contain
2586  
2587 \begin_inset Quotes eld
2588 \end_inset
2589
2590 all cited references
2591 \begin_inset Quotes erd
2592 \end_inset
2593
2594  of the specified database(s) (which is the default), 
2595 \begin_inset Quotes eld
2596 \end_inset
2597
2598 all uncited references
2599 \begin_inset Quotes erd
2600 \end_inset
2601
2602  or even 
2603 \begin_inset Quotes eld
2604 \end_inset
2605
2606 all references
2607 \begin_inset Quotes erd
2608 \end_inset
2609
2610 .
2611  This might be useful if you would like to separate your bibliography into
2612  three sections: 
2613 \begin_inset Quotes eld
2614 \end_inset
2615
2616 Cited sources
2617 \begin_inset Quotes erd
2618 \end_inset
2619
2620
2621 \begin_inset Quotes eld
2622 \end_inset
2623
2624 Uncited sources
2625 \begin_inset Quotes erd
2626 \end_inset
2627
2628 , and 
2629 \begin_inset Quotes eld
2630 \end_inset
2631
2632 Scientific works
2633 \begin_inset Quotes erd
2634 \end_inset
2635
2636 .
2637  The titles for the sections can be added as ordinary sections or subsections.
2638  Since 
2639 \begin_inset Flex Code
2640 status collapsed
2641
2642 \begin_layout Plain Layout
2643 bibtopic
2644 \end_layout
2645
2646 \end_inset
2647
2648  removes the bibliography title, you have to manually re-add that, too (as
2649  a chapter* or section*, for instance).
2650 \end_layout
2651
2652 \begin_layout Subsection
2653 Multiple Bibliographies
2654 \end_layout
2655
2656 \begin_layout Standard
2657 Multiple bibliographies, e.
2658 \begin_inset space \thinspace{}
2659 \end_inset
2660
2661 g.
2662 \begin_inset space \space{}
2663 \end_inset
2664
2665 a bibliography for each section or chapter of the document, are not supported
2666  by Bib\SpecialChar TeX
2667  itself.
2668  But the 
2669 \begin_inset Flex Code
2670 status collapsed
2671
2672 \begin_layout Plain Layout
2673 bibtopic
2674 \end_layout
2675
2676 \end_inset
2677
2678  package, which is used for the creation of sectioned bibliographies in
2679  \SpecialChar LyX
2680  (see the previous section), provides an easy way to solve this task, if
2681  you are willing to use some 
2682 \begin_inset Flex Noun
2683 status collapsed
2684
2685 \begin_layout Plain Layout
2686 \SpecialChar TeX
2687  Code
2688 \end_layout
2689
2690 \end_inset
2691
2692  (see section
2693 \begin_inset space ~
2694 \end_inset
2695
2696
2697 \begin_inset CommandInset ref
2698 LatexCommand ref
2699 reference "sec:Inserting-TeX-Code"
2700
2701 \end_inset
2702
2703 ).
2704 \begin_inset Foot
2705 status collapsed
2706
2707 \begin_layout Plain Layout
2708 An alternative approach is to use the 
2709 \begin_inset Flex Code
2710 status collapsed
2711
2712 \begin_layout Plain Layout
2713 chapterbib
2714 \end_layout
2715
2716 \end_inset
2717
2718  or 
2719 \begin_inset Flex Code
2720 status collapsed
2721
2722 \begin_layout Plain Layout
2723 bibunits
2724 \end_layout
2725
2726 \end_inset
2727
2728  package, respectively.
2729 \end_layout
2730
2731 \end_inset
2732
2733
2734 \end_layout
2735
2736 \begin_layout Standard
2737 First go to 
2738 \begin_inset Flex Noun
2739 status collapsed
2740
2741 \begin_layout Plain Layout
2742 Document\SpecialChar menuseparator
2743 Settings
2744 \end_layout
2745
2746 \end_inset
2747
2748  and under 
2749 \begin_inset Flex Noun
2750 status collapsed
2751
2752 \begin_layout Plain Layout
2753 Bibliography
2754 \end_layout
2755
2756 \end_inset
2757
2758  check 
2759 \begin_inset Flex Noun
2760 status collapsed
2761
2762 \begin_layout Plain Layout
2763 Sectioned bibliography
2764 \end_layout
2765
2766 \end_inset
2767
2768 .
2769  In the document, you have to enclose the sections, which shall contain
2770  their own bibliography (including the Bib\SpecialChar TeX
2771  bibliography itself), between
2772  
2773 \begin_inset Flex Code
2774 status collapsed
2775
2776 \begin_layout Plain Layout
2777
2778 \backslash
2779 begin{btUnit}
2780 \end_layout
2781
2782 \end_inset
2783
2784  and 
2785 \begin_inset Flex Code
2786 status collapsed
2787
2788 \begin_layout Plain Layout
2789
2790 \backslash
2791 end{btUnit}
2792 \end_layout
2793
2794 \end_inset
2795
2796  (those commands have to be inserted as \SpecialChar TeX
2797  code).
2798  The bibliography will contain all references that have been cited in the
2799  current 
2800 \begin_inset Flex Code
2801 status collapsed
2802
2803 \begin_layout Plain Layout
2804 btUnit
2805 \end_layout
2806
2807 \end_inset
2808
2809 .
2810  
2811 \series bold
2812 Note:
2813 \series default
2814  If you are using this approach, then every citation reference has to be
2815  inside some 
2816 \begin_inset Flex Code
2817 status collapsed
2818
2819 \begin_layout Plain Layout
2820 btUnit
2821 \end_layout
2822
2823 \end_inset
2824
2825 .
2826  Also, the 
2827 \begin_inset Flex Code
2828 status collapsed
2829
2830 \begin_layout Plain Layout
2831 btUnit
2832 \end_layout
2833
2834 \end_inset
2835
2836 s cannot be nested.
2837 \end_layout
2838
2839 \begin_layout Section
2840 Multipart Documents
2841 \end_layout
2842
2843 \begin_layout Subsection
2844 General Operation
2845 \end_layout
2846
2847 \begin_layout Standard
2848 When you are working on a large file with many sections, it is often convenient
2849  to break up the document into several files, or perhaps you have something
2850  where a table may change from time to time, but the preceding text does
2851  not.
2852  In these cases, you should seriously consider using multipart documents.
2853  For example, scientific papers often have five major sections: the introduction
2854 , observations, results, discussion, and conclusion.
2855  Each of these could be its own separate \SpecialChar LyX
2856  file, with one 
2857 \begin_inset Quotes eld
2858 \end_inset
2859
2860 master
2861 \begin_inset Quotes erd
2862 \end_inset
2863
2864  file which contains the title, authors, abstract, references, etc., plus
2865  the five included files.
2866  It is important to note that each of these files is a full \SpecialChar LyX
2867  file which
2868  can be formatted and printed on its own, as well as included in a master
2869  file.
2870  Each of these files must have the same document class, however—don't attempt
2871  to mix book classes with article classes.
2872  You may also include \SpecialChar LaTeX
2873  files; however, these files must not have their own
2874  preamble (i.
2875 \begin_inset space \thinspace{}
2876 \end_inset
2877
2878 e.
2879 \begin_inset space \space{}
2880 \end_inset
2881
2882 everything up to and including the 
2883 \begin_inset Flex Code
2884 status collapsed
2885
2886 \begin_layout Plain Layout
2887
2888 \backslash
2889 begin{document}
2890 \end_layout
2891
2892 \end_inset
2893
2894  line as well as the 
2895 \begin_inset Flex Code
2896 status collapsed
2897
2898 \begin_layout Plain Layout
2899
2900 \backslash
2901 end{document}
2902 \end_layout
2903
2904 \end_inset
2905
2906  line must be deleted) or else errors will be generated when you try to
2907  make a DVI file.
2908 \end_layout
2909
2910 \begin_layout Standard
2911 \SpecialChar LyX
2912  allows you to include files quite easily with 
2913 \begin_inset Flex Noun
2914 status collapsed
2915
2916 \begin_layout Plain Layout
2917 Insert\SpecialChar menuseparator
2918 ChiId
2919 \begin_inset space ~
2920 \end_inset
2921
2922 Document
2923 \end_layout
2924
2925 \end_inset
2926
2927 .
2928  When you click on this selection a small box is inserted into the file
2929  at the current cursor location.
2930  Clicking on the box raises a dialog which allows you to select the file
2931  to be included, and the method of its inclusion.
2932  
2933 \end_layout
2934
2935 \begin_layout Standard
2936 The file selection box should by now be obvious.
2937  The three inclusion methods are 
2938 \begin_inset Quotes eld
2939 \end_inset
2940
2941 include
2942 \begin_inset Quotes erd
2943 \end_inset
2944
2945
2946 \begin_inset Quotes eld
2947 \end_inset
2948
2949 input
2950 \begin_inset Quotes erd
2951 \end_inset
2952
2953 , and 
2954 \begin_inset Quotes eld
2955 \end_inset
2956
2957 verbatim
2958 \begin_inset Quotes erd
2959 \end_inset
2960
2961 .
2962  The difference between 
2963 \begin_inset Quotes eld
2964 \end_inset
2965
2966 include
2967 \begin_inset Quotes erd
2968 \end_inset
2969
2970  and 
2971 \begin_inset Quotes eld
2972 \end_inset
2973
2974 input
2975 \begin_inset Quotes erd
2976 \end_inset
2977
2978  is really only meaningful to \SpecialChar LaTeX
2979 perts, but the practical difference is that
2980  files that are 
2981 \begin_inset Quotes eld
2982 \end_inset
2983
2984 included
2985 \begin_inset Quotes erd
2986 \end_inset
2987
2988  are typeset beginning on a new page, while files that are 
2989 \begin_inset Quotes eld
2990 \end_inset
2991
2992 inputted
2993 \begin_inset Quotes erd
2994 \end_inset
2995
2996  are typeset starting on the current page.
2997 \end_layout
2998
2999 \begin_layout Standard
3000 Generally, the master file is converted into a full \SpecialChar LaTeX
3001  file before typesetting,
3002  while the included files are converted to \SpecialChar LaTeX
3003  files that do not have all the
3004  preamble information.
3005 \end_layout
3006
3007 \begin_layout Standard
3008
3009 \begin_inset Quotes eld
3010 \end_inset
3011
3012 verbatim
3013 \begin_inset Quotes erd
3014 \end_inset
3015
3016  included file allows you to include a file typeset exactly as it appears
3017  in the file, i.
3018 \begin_inset space \thinspace{}
3019 \end_inset
3020
3021 e.
3022 \begin_inset space \space{}
3023 \end_inset
3024
3025 in 
3026 \begin_inset Flex Code
3027 status collapsed
3028
3029 \begin_layout Plain Layout
3030 verbatim
3031 \end_layout
3032
3033 \end_inset
3034
3035  mode, with the characters set in a fixed-width typewriter font.
3036  Normally, spaces in this file are invisible, though two consecutive spaces
3037  are conserved, unlike \SpecialChar LyX
3038 's normal treatment of spaces.
3039  However, setting the 
3040 \begin_inset Flex Noun
3041 status collapsed
3042
3043 \begin_layout Plain Layout
3044 Mark
3045 \begin_inset space ~
3046 \end_inset
3047
3048 spaces
3049 \begin_inset space ~
3050 \end_inset
3051
3052 in
3053 \begin_inset space ~
3054 \end_inset
3055
3056 output
3057 \end_layout
3058
3059 \end_inset
3060
3061  checkbox typesets a mark to unambiguously define the presence of a space.
3062  
3063 \end_layout
3064
3065 \begin_layout Subsection
3066 Cross-References Between Files
3067 \end_layout
3068
3069 \begin_layout Standard
3070 \begin_inset Box Shadowbox
3071 position "t"
3072 hor_pos "c"
3073 has_inner_box 1
3074 inner_pos "t"
3075 use_parbox 0
3076 use_makebox 0
3077 width "100col%"
3078 special "none"
3079 height "1in"
3080 height_special "totalheight"
3081 thickness "0.4pt"
3082 separation "3pt"
3083 shadowsize "4pt"
3084 framecolor "black"
3085 backgroundcolor "none"
3086 status open
3087
3088 \begin_layout Plain Layout
3089 This section is somewhat out of date.
3090  Need to describe default master documents and how children are opened when
3091  the master is.
3092  [[FIXME]]
3093 \end_layout
3094
3095 \end_inset
3096
3097
3098 \end_layout
3099
3100 \begin_layout Standard
3101 It is possible to set up cross-references between the different files.
3102  First, open all the files in question: let's call them A and B in a two
3103  file example, where B is included in A.
3104  Let's say you insert a label in A, then want to reference it in B.
3105  Open the cross-reference dialog whilst in document B, and you can select
3106  the 
3107 \begin_inset Quotes eld
3108 \end_inset
3109
3110 buffer
3111 \begin_inset Quotes erd
3112 \end_inset
3113
3114  to use.
3115 \end_layout
3116
3117 \begin_layout Subsection
3118 Bibliography Lists in all Subdocuments
3119 \end_layout
3120
3121 \begin_layout Standard
3122 \begin_inset Box Frameless
3123 position "t"
3124 hor_pos "c"
3125 has_inner_box 1
3126 inner_pos "t"
3127 use_parbox 0
3128 use_makebox 0
3129 width "100col%"
3130 special "none"
3131 height "1in"
3132 height_special "totalheight"
3133 thickness "0.4pt"
3134 separation "3pt"
3135 shadowsize "4pt"
3136 framecolor "black"
3137 backgroundcolor "none"
3138 status open
3139
3140 \begin_layout Plain Layout
3141 This section also needs updating.
3142  There is now material about this on the wiki, and it could be copied here.
3143 \end_layout
3144
3145 \end_inset
3146
3147
3148 \end_layout
3149
3150 \begin_layout Standard
3151 Copy the bibliography list with all entries to all subdocuments and transform
3152  them to a comment.
3153  This way \SpecialChar LyX
3154  will find the 
3155 \begin_inset Flex Code
3156 status collapsed
3157
3158 \begin_layout Plain Layout
3159 .bib
3160 \end_layout
3161
3162 \end_inset
3163
3164 -files and you can easily insert references without making the bibliography
3165  list visible.
3166 \end_layout
3167
3168 \begin_layout Standard
3169 As the bibliography list is in a comment, \SpecialChar LaTeX
3170  won't use it and the references
3171  will look like this: [?], instead of like this: [1].
3172  One solution is to use the \SpecialChar LaTeX
3173 -package 
3174 \begin_inset Flex Code
3175 status collapsed
3176
3177 \begin_layout Plain Layout
3178 comment
3179 \end_layout
3180
3181 \end_inset
3182
3183  that will only include comments by processing the files separately.
3184  To do this, add in the \SpecialChar LaTeX
3185  preamble of every subdocument the following:
3186 \end_layout
3187
3188 \begin_layout LyX-Code
3189
3190 \backslash
3191 usepackage{comment}
3192 \end_layout
3193
3194 \begin_layout LyX-Code
3195
3196 \backslash
3197 includecomment{comment}
3198 \end_layout
3199
3200 \begin_layout Standard
3201 See also 
3202 \begin_inset Flex URL
3203 status collapsed
3204
3205 \begin_layout Plain Layout
3206
3207 http://wiki.lyx.org/FAQ/Unsorted#toc31
3208 \end_layout
3209
3210 \end_inset
3211
3212 .
3213 \end_layout
3214
3215 \begin_layout Section
3216 \SpecialChar LyX
3217  Archives
3218 \end_layout
3219
3220 \begin_layout Standard
3221 Users sometimes need to be able to 
3222 \begin_inset Quotes eld
3223 \end_inset
3224
3225 bundle
3226 \begin_inset Quotes erd
3227 \end_inset
3228
3229  a \SpecialChar LyX
3230  file together with all the images (and other files) on which it depends,
3231  either for sending to a publisher or for sharing with a co-author.
3232  \SpecialChar LyX
3233  2.0 includes a Python script (
3234 \begin_inset Flex Code
3235 status collapsed
3236
3237 \begin_layout Plain Layout
3238 lyxpak.py
3239 \end_layout
3240
3241 \end_inset
3242
3243 ) that automates this process.
3244  To use it, you must have either the 
3245 \begin_inset Flex Code
3246 status collapsed
3247
3248 \begin_layout Plain Layout
3249 zipfile
3250 \end_layout
3251
3252 \end_inset
3253
3254  or 
3255 \begin_inset Flex Code
3256 status collapsed
3257
3258 \begin_layout Plain Layout
3259 tarfile
3260 \end_layout
3261
3262 \end_inset
3263
3264  python modules installed on your system.
3265  By default, the script prefers the 
3266 \begin_inset Flex Code
3267 status collapsed
3268
3269 \begin_layout Plain Layout
3270 gzip
3271 \end_layout
3272
3273 \end_inset
3274
3275 -compressed 
3276 \begin_inset Flex Code
3277 status collapsed
3278
3279 \begin_layout Plain Layout
3280 tar
3281 \end_layout
3282
3283 \end_inset
3284
3285  format on Unix-like systems and the 
3286 \begin_inset Flex Code
3287 status collapsed
3288
3289 \begin_layout Plain Layout
3290 zip
3291 \end_layout
3292
3293 \end_inset
3294
3295  format on Windows.
3296 \end_layout
3297
3298 \begin_layout Standard
3299 \SpecialChar LyX
3300 's configuration process will set the script up to export a `\SpecialChar LyX
3301  Archive',
3302  and this format will then be available under 
3303 \begin_inset Flex Code
3304 status collapsed
3305
3306 \begin_layout Plain Layout
3307 File\SpecialChar menuseparator
3308 Export
3309 \end_layout
3310
3311 \end_inset
3312
3313 .
3314 \end_layout
3315
3316 \begin_layout Standard
3317 Independently of the platform, the generation of a particular archive format
3318  can be forced by adding either the 
3319 \begin_inset Flex Code
3320 status collapsed
3321
3322 \begin_layout Plain Layout
3323 -t
3324 \end_layout
3325
3326 \end_inset
3327
3328  (for the 
3329 \begin_inset Flex Code
3330 status collapsed
3331
3332 \begin_layout Plain Layout
3333 tar
3334 \end_layout
3335
3336 \end_inset
3337
3338  format) or 
3339 \begin_inset Flex Code
3340 status collapsed
3341
3342 \begin_layout Plain Layout
3343 -z
3344 \end_layout
3345
3346 \end_inset
3347
3348  (for the 
3349 \begin_inset Flex Code
3350 status collapsed
3351
3352 \begin_layout Plain Layout
3353 zip
3354 \end_layout
3355
3356 \end_inset
3357
3358  format) switch to the 
3359 \begin_inset Flex Code
3360 status collapsed
3361
3362 \begin_layout Plain Layout
3363 \SpecialChar LyX
3364 \SpecialChar menuseparator
3365 \SpecialChar LyX
3366  Archive
3367 \end_layout
3368
3369 \end_inset
3370
3371  converter in 
3372 \begin_inset Flex Code
3373 status collapsed
3374
3375 \begin_layout Plain Layout
3376 Tools\SpecialChar menuseparator
3377 Preferences\SpecialChar menuseparator
3378 File Handling\SpecialChar menuseparator
3379 Converters
3380 \end_layout
3381
3382 \end_inset
3383
3384 .
3385  (Make sure you add the switch after the script name, not before it.)
3386 \end_layout
3387
3388 \begin_layout Section
3389 Fancy Headers and Footers
3390 \end_layout
3391
3392 \begin_layout Standard
3393 The default page layout is rather plain; for an 
3394 \begin_inset Flex Code
3395 status collapsed
3396
3397 \begin_layout Plain Layout
3398 article
3399 \end_layout
3400
3401 \end_inset
3402
3403  document class, all you get is a centered page number at the bottom of
3404  the page.
3405  This document uses KOMA-script's book class, so it appears to be a bit
3406  fancier.
3407  But to really put on a show, you need to set the document page style to
3408  
3409 \begin_inset Quotes eld
3410 \end_inset
3411
3412 fancy
3413 \begin_inset Quotes erd
3414 \end_inset
3415
3416 , as mentioned in the 
3417 \emph on
3418 User Guide
3419 \emph default
3420 .
3421  This section describes the \SpecialChar LaTeX
3422  code you need to insert in your \SpecialChar LaTeX
3423  preamble in
3424  order to get the desired effects.
3425 \end_layout
3426
3427 \begin_layout Standard
3428 For more information on fancy headers, see the 
3429 \begin_inset Flex Code
3430 status collapsed
3431
3432 \begin_layout Plain Layout
3433 fancyhdr
3434 \end_layout
3435
3436 \end_inset
3437
3438  package documentation.
3439  (
3440 \begin_inset Flex URL
3441 status collapsed
3442
3443 \begin_layout Plain Layout
3444
3445 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3446 \end_layout
3447
3448 \end_inset
3449
3450 )
3451 \end_layout
3452
3453 \begin_layout Standard
3454 The page header is divided into three fields, not surprisingly labeled 
3455 \begin_inset Quotes eld
3456 \end_inset
3457
3458 left
3459 \begin_inset Quotes erd
3460 \end_inset
3461
3462
3463 \begin_inset Quotes eld
3464 \end_inset
3465
3466 center
3467 \begin_inset Quotes erd
3468 \end_inset
3469
3470 , and 
3471 \begin_inset Quotes eld
3472 \end_inset
3473
3474 right
3475 \begin_inset Quotes erd
3476 \end_inset
3477
3478 .
3479  The footer is also divided into these three fields.
3480  The \SpecialChar LaTeX
3481  commands to set these fields in the simplest manner are 
3482 \begin_inset Flex Code
3483 status collapsed
3484
3485 \begin_layout Plain Layout
3486
3487 \backslash
3488 lhead
3489 \end_layout
3490
3491 \end_inset
3492
3493
3494 \begin_inset Flex Code
3495 status collapsed
3496
3497 \begin_layout Plain Layout
3498
3499 \backslash
3500 chead
3501 \end_layout
3502
3503 \end_inset
3504
3505
3506 \begin_inset Flex Code
3507 status collapsed
3508
3509 \begin_layout Plain Layout
3510
3511 \backslash
3512 rhead
3513 \end_layout
3514
3515 \end_inset
3516
3517
3518 \begin_inset Flex Code
3519 status collapsed
3520
3521 \begin_layout Plain Layout
3522
3523 \backslash
3524 lfoot
3525 \end_layout
3526
3527 \end_inset
3528
3529 , etc.
3530  Suppose you wish to put your name in the upper left hand corner of each
3531  page.
3532  Simply insert the following command in the preamble: 
3533 \end_layout
3534
3535 \begin_layout Standard
3536
3537 \family typewriter
3538
3539 \backslash
3540 lhead{John Q.
3541  DocWriter}
3542 \end_layout
3543
3544 \begin_layout Standard
3545 You will now see your name in the upper left.
3546  If a field has a default entry that you would like to get rid of (often
3547  the page number appears in the central footer) simply include a command
3548  with a blank argument, e.
3549 \begin_inset space \thinspace{}
3550 \end_inset
3551
3552 g.:
3553 \end_layout
3554
3555 \begin_layout Standard
3556
3557 \family typewriter
3558
3559 \backslash
3560 cfoot{}
3561 \end_layout
3562
3563 \begin_layout Standard
3564 Let's get really fancy: lets put the section number with the word 
3565 \begin_inset Quotes eld
3566 \end_inset
3567
3568 Section
3569 \begin_inset Quotes erd
3570 \end_inset
3571
3572  (e.
3573 \begin_inset space \thinspace{}
3574 \end_inset
3575
3576 g.
3577 \begin_inset space \space{}
3578 \end_inset
3579
3580 Section 3) in the upper left, the page number (e.
3581 \begin_inset space \thinspace{}
3582 \end_inset
3583
3584 g.
3585 \begin_inset space \space{}
3586 \end_inset
3587
3588 Page 4) in the upper right, your name in the lower left, and the date in
3589  the lower right.
3590  The following commands should now appear in the preamble:
3591 \end_layout
3592
3593 \begin_layout Standard
3594
3595 \family typewriter
3596
3597 \backslash
3598 lhead{Section 
3599 \backslash
3600 thesection}
3601 \end_layout
3602
3603 \begin_layout Standard
3604
3605 \family typewriter
3606
3607 \backslash
3608 chead{}
3609 \end_layout
3610
3611 \begin_layout Standard
3612
3613 \family typewriter
3614
3615 \backslash
3616 rhead{Page 
3617 \backslash
3618 thepage}
3619 \end_layout
3620
3621 \begin_layout Standard
3622
3623 \family typewriter
3624
3625 \backslash
3626 lfoot{John Q.
3627  DocWriter}
3628 \end_layout
3629
3630 \begin_layout Standard
3631
3632 \family typewriter
3633
3634 \backslash
3635 cfoot{}
3636 \end_layout
3637
3638 \begin_layout Standard
3639
3640 \family typewriter
3641
3642 \backslash
3643 rfoot{
3644 \backslash
3645 today}
3646 \end_layout
3647
3648 \begin_layout Standard
3649 The commands 
3650 \begin_inset Flex Code
3651 status collapsed
3652
3653 \begin_layout Plain Layout
3654
3655 \backslash
3656 thesection
3657 \end_layout
3658
3659 \end_inset
3660
3661  and 
3662 \begin_inset Flex Code
3663 status collapsed
3664
3665 \begin_layout Plain Layout
3666
3667 \backslash
3668 thepage
3669 \end_layout
3670
3671 \end_inset
3672
3673  access \SpecialChar LaTeX
3674 's section and page counters, and so print out the current section
3675  and page numbers.
3676  
3677 \begin_inset Flex Code
3678 status collapsed
3679
3680 \begin_layout Plain Layout
3681
3682 \backslash
3683 today
3684 \end_layout
3685
3686 \end_inset
3687
3688  simply prints out today's date.
3689 \end_layout
3690
3691 \begin_layout Standard
3692 The thicknesses of the horizontal rules drawn beneath the header and above
3693  the footer can also be modified.
3694  If you don't want one of the rules, set its thickness to 0.
3695  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3696  Use commands
3697 \family typewriter
3698  
3699 \family default
3700 like 
3701 \begin_inset Flex Code
3702 status collapsed
3703
3704 \begin_layout Plain Layout
3705
3706 \backslash
3707 renewcommand{
3708 \backslash
3709 headrulewidth}{0.4pt}
3710 \end_layout
3711
3712 \end_inset
3713
3714  and 
3715 \begin_inset Flex Code
3716 status collapsed
3717
3718 \begin_layout Plain Layout
3719
3720 \backslash
3721 renewcommand{
3722 \backslash
3723 footrulewidth}{0.4pt}
3724 \end_layout
3725
3726 \end_inset
3727
3728  to set the thicknesses.
3729 \end_layout
3730
3731 \begin_layout Standard
3732 You can switch the header/footer settings on and off for individual pages
3733  using commands like 
3734 \begin_inset Flex Code
3735 status collapsed
3736
3737 \begin_layout Plain Layout
3738
3739 \backslash
3740 thispagestyle{empty}
3741 \end_layout
3742
3743 \end_inset
3744
3745
3746 \begin_inset Flex Code
3747 status collapsed
3748
3749 \begin_layout Plain Layout
3750
3751 \backslash
3752 thispagestyle{plain}
3753 \end_layout
3754
3755 \end_inset
3756
3757 , and 
3758 \begin_inset Flex Code
3759 status collapsed
3760
3761 \begin_layout Plain Layout
3762
3763 \backslash
3764 thispagestyle{fancy}
3765 \end_layout
3766
3767 \end_inset
3768
3769 .
3770  Simply insert them in the text on the page you want changed and mark them
3771  as \SpecialChar TeX
3772  code.
3773  In fact, title pages are marked as plain by default, while following pages
3774  are marked fancy when using the global fancy setting.
3775 \end_layout
3776
3777 \begin_layout Standard
3778 As a final example, it is possible to include an image in the header or
3779  footer.
3780  Suppose you want to put a company logo in the upper lefthand corner.
3781  You might try something like
3782 \end_layout
3783
3784 \begin_layout Standard
3785
3786 \family typewriter
3787
3788 \backslash
3789 lhead{
3790 \backslash
3791 resizebox{1in}{!}{
3792 \backslash
3793 includegraphics{logo.eps}}}
3794 \end_layout
3795
3796 \begin_layout Standard
3797 \noindent
3798 (you may need to preface this with 
3799 \begin_inset Flex Code
3800 status collapsed
3801
3802 \begin_layout Plain Layout
3803 \noindent
3804
3805 \backslash
3806 usepackage{graphics}
3807 \end_layout
3808
3809 \end_inset
3810
3811  if you don't include graphics elsewhere in your document).
3812 \end_layout
3813
3814 \begin_layout Section
3815 Itemize Bullet Selection
3816 \begin_inset CommandInset label
3817 LatexCommand label
3818 name "sec:bullet"
3819
3820 \end_inset
3821
3822
3823 \end_layout
3824
3825 \begin_layout Standard
3826 by
3827 \noun on
3828  Allan Rae
3829 \end_layout
3830
3831 \begin_layout Subsection
3832 Introduction
3833 \end_layout
3834
3835 \begin_layout Standard
3836 \SpecialChar LyX
3837  provides 216 bullet shapes that can be accessed from a simple dialog.
3838  Using this dialog you can easily specify what bullet shape to use at each
3839  level of an itemized list.
3840  These settings are document-wide so you won't be able to specify different
3841  sets of bullets for different paragraphs.
3842 \begin_inset Foot
3843 status collapsed
3844
3845 \begin_layout Plain Layout
3846 Well, actually you can but you'll have to do it by hand.
3847 \end_layout
3848
3849 \end_inset
3850
3851
3852 \end_layout
3853
3854 \begin_layout Subsection
3855 How it looks
3856 \end_layout
3857
3858 \begin_layout Standard
3859 Open the dialog by selecting the 
3860 \begin_inset Flex Noun
3861 status collapsed
3862
3863 \begin_layout Plain Layout
3864 Document\SpecialChar menuseparator
3865 Settings
3866 \end_layout
3867
3868 \end_inset
3869
3870  menu item and then select the 
3871 \begin_inset Flex Noun
3872 status collapsed
3873
3874 \begin_layout Plain Layout
3875 Bullets
3876 \end_layout
3877
3878 \end_inset
3879
3880  tab.
3881 \end_layout
3882
3883 \begin_layout Standard
3884 The dialog provides you with a table of bullet shapes.
3885  A column of buttons on the left of the table provides access to the six
3886  different panels of bullet shapes.
3887  The row of buttons across the top is used to select which bullet depth
3888  you are changing.
3889  A text entry under the table shows the currently selected bullet shape's
3890  \SpecialChar LaTeX
3891  equivalent and this can be edited if desired.
3892  If you do modify the text you will also need to specify any needed packages
3893  in the \SpecialChar LaTeX
3894  preamble.
3895 \end_layout
3896
3897 \begin_layout Standard
3898 The six panels are divided up by the packages they require.
3899  The following table shows the mappings from button name to \SpecialChar LaTeX
3900  package.
3901 \end_layout
3902
3903 \begin_layout Standard
3904 \align center
3905 \begin_inset Tabular
3906 <lyxtabular version="3" rows="7" columns="2">
3907 <features tabularvalignment="middle">
3908 <column alignment="center" valignment="top" width="0pt">
3909 <column alignment="center" valignment="top" width="0pt">
3910 <row>
3911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3912 \begin_inset Text
3913
3914 \begin_layout Plain Layout
3915
3916 \family roman
3917 \series medium
3918 \shape up
3919 \size normal
3920 \emph off
3921 \bar no
3922 \noun off
3923 \color none
3924 Button
3925 \end_layout
3926
3927 \end_inset
3928 </cell>
3929 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3930 \begin_inset Text
3931
3932 \begin_layout Plain Layout
3933
3934 \family roman
3935 \series medium
3936 \shape up
3937 \size normal
3938 \emph off
3939 \bar no
3940 \noun off
3941 \color none
3942 Packages Required
3943 \end_layout
3944
3945 \end_inset
3946 </cell>
3947 </row>
3948 <row>
3949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3950 \begin_inset Text
3951
3952 \begin_layout Plain Layout
3953
3954 \family sans
3955 \series medium
3956 \shape up
3957 \size normal
3958 \emph off
3959 \bar no
3960 \noun off
3961 \color none
3962 Standard
3963 \end_layout
3964
3965 \end_inset
3966 </cell>
3967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3968 \begin_inset Text
3969
3970 \begin_layout Plain Layout
3971
3972 \series medium
3973 \shape up
3974 \size normal
3975 \emph off
3976 \bar no
3977 \noun off
3978 \color none
3979 base \SpecialChar LaTeX
3980
3981 \end_layout
3982
3983 \end_inset
3984 </cell>
3985 </row>
3986 <row>
3987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3988 \begin_inset Text
3989
3990 \begin_layout Plain Layout
3991
3992 \family sans
3993 \series medium
3994 \shape up
3995 \size normal
3996 \emph off
3997 \bar no
3998 \noun off
3999 \color none
4000 Maths
4001 \end_layout
4002
4003 \end_inset
4004 </cell>
4005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4006 \begin_inset Text
4007
4008 \begin_layout Plain Layout
4009
4010 \family typewriter
4011 \series medium
4012 \shape up
4013 \size normal
4014 \emph off
4015 \bar no
4016 \noun off
4017 \color none
4018 amssymb.sty
4019 \end_layout
4020
4021 \end_inset
4022 </cell>
4023 </row>
4024 <row>
4025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4026 \begin_inset Text
4027
4028 \begin_layout Plain Layout
4029
4030 \family sans
4031 \series medium
4032 \shape up
4033 \size normal
4034 \emph off
4035 \bar no
4036 \noun off
4037 \color none
4038 Ding1
4039 \end_layout
4040
4041 \end_inset
4042 </cell>
4043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4044 \begin_inset Text
4045
4046 \begin_layout Plain Layout
4047
4048 \family typewriter
4049 \series medium
4050 \shape up
4051 \size normal
4052 \emph off
4053 \bar no
4054 \noun off
4055 \color none
4056 pifont.sty
4057 \end_layout
4058
4059 \end_inset
4060 </cell>
4061 </row>
4062 <row>
4063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4064 \begin_inset Text
4065
4066 \begin_layout Plain Layout
4067
4068 \family sans
4069 \series medium
4070 \shape up
4071 \size normal
4072 \emph off
4073 \bar no
4074 \noun off
4075 \color none
4076 Ding2
4077 \end_layout
4078
4079 \end_inset
4080 </cell>
4081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4082 \begin_inset Text
4083
4084 \begin_layout Plain Layout
4085
4086 \family typewriter
4087 \series medium
4088 \shape up
4089 \size normal
4090 \emph off
4091 \bar no
4092 \noun off
4093 \color none
4094 pifont.sty
4095 \end_layout
4096
4097 \end_inset
4098 </cell>
4099 </row>
4100 <row>
4101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4102 \begin_inset Text
4103
4104 \begin_layout Plain Layout
4105
4106 \family sans
4107 \series medium
4108 \shape up
4109 \size normal
4110 \emph off
4111 \bar no
4112 \noun off
4113 \color none
4114 Ding3
4115 \end_layout
4116
4117 \end_inset
4118 </cell>
4119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4120 \begin_inset Text
4121
4122 \begin_layout Plain Layout
4123
4124 \family typewriter
4125 \series medium
4126 \shape up
4127 \size normal
4128 \emph off
4129 \bar no
4130 \noun off
4131 \color none
4132 pifont.sty
4133 \end_layout
4134
4135 \end_inset
4136 </cell>
4137 </row>
4138 <row>
4139 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4140 \begin_inset Text
4141
4142 \begin_layout Plain Layout
4143
4144 \family sans
4145 \series medium
4146 \shape up
4147 \size normal
4148 \emph off
4149 \bar no
4150 \noun off
4151 \color none
4152 Ding4
4153 \end_layout
4154
4155 \end_inset
4156 </cell>
4157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4158 \begin_inset Text
4159
4160 \begin_layout Plain Layout
4161
4162 \family typewriter
4163 \series medium
4164 \shape up
4165 \size normal
4166 \emph off
4167 \bar no
4168 \noun off
4169 \color none
4170 pifont.sty
4171 \end_layout
4172
4173 \end_inset
4174 </cell>
4175 </row>
4176 </lyxtabular>
4177
4178 \end_inset
4179
4180
4181 \end_layout
4182
4183 \begin_layout Standard
4184 \SpecialChar LyX
4185  doesn't stop you using bullets from packages you don't have.
4186  If you get errors from \SpecialChar LaTeX
4187  when you try to view or print the file, then it
4188  is likely you are missing a package.
4189 \begin_inset Foot
4190 status collapsed
4191
4192 \begin_layout Plain Layout
4193 \SpecialChar LyX
4194  doesn't restrict your use since you may be editing locally and exporting
4195  elsewhere.
4196 \end_layout
4197
4198 \end_inset
4199
4200
4201 \end_layout
4202
4203 \begin_layout Subsection
4204 How to use it
4205 \end_layout
4206
4207 \begin_layout Standard
4208 Select which bullet depth you want to change then select the bullet shape
4209  and size.
4210  Any changes will not be visible in \SpecialChar LyX
4211 , but are visible when viewing the document.
4212 \end_layout
4213
4214 \begin_layout Standard
4215 You can reset a bullet shape to the default simply by clicking your right
4216  mouse button on the appropriate bullet depth button.
4217 \begin_inset Foot
4218 status collapsed
4219
4220 \begin_layout Plain Layout
4221 If you 
4222 \emph on
4223 really
4224 \emph default
4225  want to have multiple sets of paragraphs with different sets of bullets
4226  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4227  code.
4228  The bullet selection dialog can help though because it provides you with
4229  the \SpecialChar LaTeX
4230  code for a wide range of bullet shapes.
4231  To make your own custom paragraphs you have the following options:
4232 \end_layout
4233
4234 \begin_layout Plain Layout
4235 \begin_inset ERT
4236 status open
4237
4238 \begin_layout Plain Layout
4239
4240
4241 \backslash
4242 let
4243 \backslash
4244 savelabelitemi=
4245 \backslash
4246 labelitemi
4247 \end_layout
4248
4249 \end_inset
4250
4251
4252 \end_layout
4253
4254 \begin_layout Plain Layout
4255 \begin_inset ERT
4256 status open
4257
4258 \begin_layout Plain Layout
4259
4260
4261 \backslash
4262 renewcommand
4263 \backslash
4264 labelitemi[0]{
4265 \backslash
4266 small
4267 \backslash
4268 (
4269 \backslash
4270 sharp
4271 \backslash
4272 )}
4273 \end_layout
4274
4275 \end_inset
4276
4277
4278 \end_layout
4279
4280 \begin_layout Itemize
4281 Use the \SpecialChar LaTeX
4282  command 
4283 \begin_inset Flex Code
4284 status collapsed
4285
4286 \begin_layout Plain Layout
4287
4288 \backslash
4289 renewcommand{}{}
4290 \end_layout
4291
4292 \end_inset
4293
4294  to specify a new bullet shape for a given depth.
4295  You'll also need to save the current bullet shape so you can restore it
4296  again afterwards.
4297  In this itemized list the following \SpecialChar LaTeX
4298  code was used to change the bullet
4299  used for the first depth.
4300 \end_layout
4301
4302 \begin_deeper
4303 \begin_layout LyX-Code
4304
4305 \backslash
4306 let
4307 \backslash
4308 savelabelitemi=
4309 \backslash
4310 labelitemi 
4311 \end_layout
4312
4313 \begin_layout LyX-Code
4314
4315 \backslash
4316 renewcommand
4317 \backslash
4318 labelitemi[0]{
4319 \backslash
4320 small
4321 \backslash
4322 (
4323 \backslash
4324 sharp
4325 \backslash
4326 )}
4327 \end_layout
4328
4329 \end_deeper
4330 \begin_layout Itemize
4331 Note that the itemize depth is specified in Roman numerals as part of the
4332  
4333 \family typewriter
4334
4335 \backslash
4336 labelitem
4337 \family default
4338  command.
4339 \end_layout
4340
4341 \begin_layout Itemize
4342 \begin_inset ERT
4343 status open
4344
4345 \begin_layout Plain Layout
4346
4347 [
4348 \backslash
4349 (
4350 \backslash
4351 star
4352 \backslash
4353 )]
4354 \end_layout
4355
4356 \end_inset
4357
4358  Specify each individual entry by starting each item with the bullet shape
4359  enclosed in square brackets and set as 
4360 \begin_inset Flex Noun
4361 status collapsed
4362
4363 \begin_layout Plain Layout
4364 \SpecialChar TeX
4365  Code
4366 \end_layout
4367
4368 \end_inset
4369
4370 .
4371  For example, this item was started with 
4372 \begin_inset Flex Code
4373 status collapsed
4374
4375 \begin_layout Plain Layout
4376 [
4377 \backslash
4378 (
4379 \backslash
4380 star
4381 \backslash
4382 )]
4383 \end_layout
4384
4385 \end_inset
4386
4387 .
4388 \end_layout
4389
4390 \begin_layout Plain Layout
4391 \begin_inset ERT
4392 status open
4393
4394 \begin_layout Plain Layout
4395
4396
4397 \backslash
4398 renewcommand
4399 \backslash
4400 labelitemi[0]{
4401 \backslash
4402 savelabelitemi}
4403 \end_layout
4404
4405 \end_inset
4406
4407
4408 \end_layout
4409
4410 \begin_layout Plain Layout
4411 You'll also need to revert the labelitem back to its previous setting for
4412  the global bullet shape settings to remain in effect.
4413  The way used here was:
4414 \end_layout
4415
4416 \begin_layout LyX-Code
4417
4418 \backslash
4419 renewcommand
4420 \backslash
4421 labelitemi[0]{
4422 \backslash
4423 savelabelitemi}
4424 \end_layout
4425
4426 \end_inset
4427
4428
4429 \end_layout
4430
4431 \begin_layout Chapter
4432 \SpecialChar LyX
4433  and the World Wide Web
4434 \end_layout
4435
4436 \begin_layout Standard
4437 \SpecialChar LyX
4438  has long supported the export of documents to various web-friendly formats,
4439  such as HTML.
4440  Before verson 2.0, however, HTML export was always accomplished by the use
4441  of external converters.
4442 \begin_inset Foot
4443 status collapsed
4444
4445 \begin_layout Plain Layout
4446 For details on the use of external converters with \SpecialChar LyX
4447 , see the 
4448 \emph on
4449 Converters
4450 \emph default
4451  section of the Customization manual.
4452 \end_layout
4453
4454 \end_inset
4455
4456  These fall into two large groups: there are converters that use \SpecialChar LaTeX
4457  as an
4458  intermediate format, such as 
4459 \begin_inset Flex Code
4460 status collapsed
4461
4462 \begin_layout Plain Layout
4463 htlatex
4464 \end_layout
4465
4466 \end_inset
4467
4468
4469 \begin_inset Flex Code
4470 status collapsed
4471
4472 \begin_layout Plain Layout
4473 html2latex
4474 \end_layout
4475
4476 \end_inset
4477
4478 , and 
4479 \begin_inset Flex Code
4480 status collapsed
4481
4482 \begin_layout Plain Layout
4483 plastex
4484 \end_layout
4485
4486 \end_inset
4487
4488 , relying upon \SpecialChar LyX
4489  to produce the \SpecialChar LaTeX
4490 ; and there is a converter that works directly
4491  on \SpecialChar LyX
4492  files, 
4493 \begin_inset Flex Code
4494 status collapsed
4495
4496 \begin_layout Plain Layout
4497 e\SpecialChar LyX
4498 er
4499 \end_layout
4500
4501 \end_inset
4502
4503 .
4504  All of these have different advantages and disadvantages.
4505  
4506 \end_layout
4507
4508 \begin_layout Standard
4509 The \SpecialChar LaTeX
4510 -based converters have the advantage that, in principle, they know everythin
4511 g about the exported document that \SpecialChar LaTeX
4512  does.
4513  Such converters do not care, for example, if a certain block of code was
4514  produced by \SpecialChar LyX
4515  or was Evil Red Text.
4516  These converters know about 
4517 \begin_inset Flex Code
4518 status collapsed
4519
4520 \begin_layout Plain Layout
4521 aux
4522 \end_layout
4523
4524 \end_inset
4525
4526  files, counters, and references, and can often make use of the 
4527 \begin_inset Flex Code
4528 status collapsed
4529
4530 \begin_layout Plain Layout
4531 bbl
4532 \end_layout
4533
4534 \end_inset
4535
4536  files generated by Bib\SpecialChar TeX
4537 .
4538  On the other hand, \SpecialChar LaTeX
4539  is a very hard language to parse—it is sometimes said
4540  that only \SpecialChar TeX
4541  itself understands \SpecialChar TeX
4542 —and \SpecialChar LaTeX
4543 -based converters will often choke on
4544  what seem to be quite simple constructs; complex ones can throw them completely
4545 , and as of this writing, for example, the 
4546 \emph on
4547 Embedded Objects
4548 \emph default
4549  manual will not export with 
4550 \begin_inset Flex Code
4551 status collapsed
4552
4553 \begin_layout Plain Layout
4554 htlatex
4555 \end_layout
4556
4557 \end_inset
4558
4559 , though the others will.
4560  The other issue concerns how math is handled.
4561  These converters typically convert the formulae into little pictures that
4562  are then linked from the HTML document.
4563  Since these are actually generated by \SpecialChar LaTeX
4564 , they are accurate.
4565  But they do not scale well, and just getting them to look as if they are
4566  actually meant to be in your document—so that the font sizes seem to be
4567  roughly the same—can be a challenge.
4568 \end_layout
4569
4570 \begin_layout Standard
4571 Alex Fernandez's 
4572 \begin_inset Flex Code
4573 status collapsed
4574
4575 \begin_layout Plain Layout
4576 e\SpecialChar LyX
4577 er
4578 \end_layout
4579
4580 \end_inset
4581
4582  (
4583 \begin_inset CommandInset href
4584 LatexCommand href
4585 name "http://elyxer.nongnu.org/"
4586 target "http://elyxer.nongnu.org/"
4587
4588 \end_inset
4589
4590 ) solves some of these problems.
4591  In particular, the formulae it produces scale perfectly, since it renders
4592  math using a combination of HTML and CSS rather than converting the formulae
4593  to images.
4594  But even moderately complex formula are rendered less well than with 
4595 \begin_inset Flex Code
4596 status collapsed
4597
4598 \begin_layout Plain Layout
4599 htlatex
4600 \end_layout
4601
4602 \end_inset
4603
4604 ; this reflects the limitations of HTML.
4605 \begin_inset Foot
4606 status collapsed
4607
4608 \begin_layout Plain Layout
4609 That said, 
4610 \begin_inset Flex Code
4611 status collapsed
4612
4613 \begin_layout Plain Layout
4614 e\SpecialChar LyX
4615 er
4616 \end_layout
4617
4618 \end_inset
4619
4620  can also use jsMath and MathJax for equations, but this setting is only
4621  available globally and requires one to have access to a server that runs
4622  the backend.
4623 \end_layout
4624
4625 \end_inset
4626
4627  More importantly (as of version 1.1.1, at least), 
4628 \begin_inset Flex Code
4629 status collapsed
4630
4631 \begin_layout Plain Layout
4632 e\SpecialChar LyX
4633 er
4634 \end_layout
4635
4636 \end_inset
4637
4638  has limited support for math macros and no support for user-defined paragraph
4639  or character styles.
4640  These limitations make 
4641 \begin_inset Flex Code
4642 status collapsed
4643
4644 \begin_layout Plain Layout
4645 e\SpecialChar LyX
4646 er
4647 \end_layout
4648
4649 \end_inset
4650
4651  unsuitable for many of the documents \SpecialChar LyX
4652  users produce.
4653  In principle, of course, these problems could be solved, but the \SpecialChar LyX
4654  developers
4655  have decided to follow a different path and have made \SpecialChar LyX
4656  itself capable of
4657  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
4658 , DocBook, and plaintext.
4659 \end_layout
4660
4661 \begin_layout Standard
4662 As of this writing, XHTML output remains under development and should probably
4663  be regarded as 
4664 \begin_inset Quotes eld
4665 \end_inset
4666
4667 experimental
4668 \begin_inset Quotes erd
4669 \end_inset
4670
4671 .
4672 \begin_inset Foot
4673 status collapsed
4674
4675 \begin_layout Plain Layout
4676 The file 
4677 \begin_inset Flex Code
4678 status collapsed
4679
4680 \begin_layout Plain Layout
4681 development/HTML.notes
4682 \end_layout
4683
4684 \end_inset
4685
4686 , which can be found in the \SpecialChar LyX
4687  source tree or 
4688 \begin_inset CommandInset href
4689 LatexCommand href
4690 name "accessed online"
4691 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
4692
4693 \end_inset
4694
4695 , usually contains up-to-date information about the state of XHTML output.
4696  See also the list of XHTML bugs on 
4697 \begin_inset CommandInset href
4698 LatexCommand href
4699 name "the bug tracker"
4700 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"
4701
4702 \end_inset
4703
4704 .
4705 \end_layout
4706
4707 \end_inset
4708
4709  Still, the developers have chosen this approach because it has several
4710  potential advantages over the other two.
4711 \end_layout
4712
4713 \begin_layout Standard
4714 These advantages are primarily due to the fact that the XHTML output routines,
4715  since they are part of \SpecialChar LyX
4716 , know everything \SpecialChar LyX
4717  knows about the document being
4718  exported.
4719 \begin_inset Foot
4720 status collapsed
4721
4722 \begin_layout Plain Layout
4723 Another advantage is that, since these routines are internal to \SpecialChar LyX
4724 , they are
4725  immune to changes in \SpecialChar LyX
4726 's file format, or to changes in the semantics of
4727  existing insets.
4728 \end_layout
4729
4730 \end_inset
4731
4732  So they know about the table of contents (as displayed in the outline),
4733  about the counters associated with different paragraph styles, and about
4734  user-defined styles.
4735  The XHTML output routines know what \SpecialChar LyX
4736  knows about internationalization,
4737  too, so they will output 
4738 \begin_inset Quotes eld
4739 \end_inset
4740
4741 Chapter 1
4742 \begin_inset Quotes erd
4743 \end_inset
4744
4745  or 
4746 \begin_inset Quotes eld
4747 \end_inset
4748
4749
4750 \lang ngerman
4751 Kapitel
4752 \lang english
4753  1
4754 \begin_inset Quotes erd
4755 \end_inset
4756
4757 , depending upon the language in effect at the time.
4758  
4759 \end_layout
4760
4761 \begin_layout Standard
4762 Quite generally, the output routines know what \SpecialChar LyX
4763  knows about document layout,
4764  that is, about how the document is to be rendered on screen.
4765  We use this information when we output the document as XHTML.
4766  In particular, \SpecialChar LyX
4767  
4768 \emph on
4769 automatically
4770 \emph default
4771  generates CSS style information corresponding to the layout information
4772  it uses to render the document on screen: if section headings are supposed
4773  to be sans-serif and bold as seen in \SpecialChar LyX
4774 , then (by default) they will be sans-seri
4775 f and bold when viewed in a web browser, too.
4776  And this is true not just for pre-defined styles, like Section, but for
4777  any style, including user-defined styles.
4778  Indeed, the XHTML output routines make no distinction between user-defined
4779  paragraph and character styles and \SpecialChar LyX
4780 's own pre-defined styles: in each case,
4781  everything \SpecialChar LyX
4782  knows about the styles is contained in the layout files.
4783  And much the same is true as regards pre-defined textual insets, such as
4784  footnotes, and various custom insets.
4785  
4786 \end_layout
4787
4788 \begin_layout Standard
4789 The result is that XHTML output can be customized and extended in exactly
4790  the same way \SpecialChar LaTeX
4791  output can be customized and extended: through layout files
4792  and modules.
4793  See chapter five of the 
4794 \emph on
4795 Customization 
4796 \emph default
4797 manual for the details.
4798 \end_layout
4799
4800 \begin_layout Standard
4801 The remainder of this chapter contains more detailed information on XHTML
4802  output, its limitations, and ways to work around those limitations.
4803 \end_layout
4804
4805 \begin_layout Section
4806 Math Output in XHTML
4807 \end_layout
4808
4809 \begin_layout Standard
4810 \SpecialChar LyX
4811  offers four choices for how math is rendered.
4812  These have various advantages and disadvantages:
4813 \end_layout
4814
4815 \begin_layout Itemize
4816 MathML
4817 \begin_inset Newline newline
4818 \end_inset
4819
4820 MathML is a dialect of XML designed specifically for mathematics on the
4821  web, and it typically renders very well in browsers that support it.
4822  The disadvantage is that not all browsers support MathML, and support is
4823  not complete even in the Gecko-based browsers, such as Firefox.
4824 \begin_inset Newline newline
4825 \end_inset
4826
4827 If \SpecialChar LyX
4828  is unable to render a formula as MathML—for example, if the formula
4829  uses the 
4830 \begin_inset Flex Code
4831 status collapsed
4832
4833 \begin_layout Plain Layout
4834 xymatrix
4835 \end_layout
4836
4837 \end_inset
4838
4839  package or ERT—then it will instead output the formula as an image.
4840  
4841 \end_layout
4842
4843 \begin_layout Itemize
4844 HTML
4845 \begin_inset Newline newline
4846 \end_inset
4847
4848 As mentioned above, 
4849 \begin_inset Flex Code
4850 status collapsed
4851
4852 \begin_layout Plain Layout
4853 elyxer
4854 \end_layout
4855
4856 \end_inset
4857
4858  outputs math as HTML, styled by CSS.
4859 \begin_inset Foot
4860 status collapsed
4861
4862 \begin_layout Plain Layout
4863 \SpecialChar LyX
4864  has borrowed some of the CSS for its HTML output from 
4865 \begin_inset Flex Code
4866 status collapsed
4867
4868 \begin_layout Plain Layout
4869 elyxer
4870 \end_layout
4871
4872 \end_inset
4873
4874 .
4875 \end_layout
4876
4877 \end_inset
4878
4879  For simple formulae, this can work quite well, though with more complicated
4880  formulae it tends to break down.
4881  Still, this method has the advantage that it is very widely supported and
4882  so it may be appropriate for documents that contain only a little, fairly
4883  simple math.
4884 \begin_inset Newline newline
4885 \end_inset
4886
4887 If Lyx is unable to render a formula as HTML—for example, if the formula
4888  uses the 
4889 \begin_inset Flex Code
4890 status collapsed
4891
4892 \begin_layout Plain Layout
4893 xymatrix
4894 \end_layout
4895
4896 \end_inset
4897
4898  package or ERT—then it will instead output the formula as an image.
4899  
4900 \end_layout
4901
4902 \begin_layout Itemize
4903 Images
4904 \begin_inset Newline newline
4905 \end_inset
4906
4907 Like 
4908 \begin_inset Flex Code
4909 status collapsed
4910
4911 \begin_layout Plain Layout
4912 htlatex
4913 \end_layout
4914
4915 \end_inset
4916
4917 , \SpecialChar LyX
4918  will output formulae as images, the very same images, in fact, that are
4919  used for instant preview.
4920 \begin_inset Foot
4921 status collapsed
4922
4923 \begin_layout Plain Layout
4924 Instant preview does 
4925 \emph on
4926 not 
4927 \emph default
4928 have to be on for images to be output, however.
4929 \end_layout
4930
4931 \end_inset
4932
4933  The advantage to this method is that the images are simply generated by
4934  \SpecialChar LaTeX
4935 , so they are very accurate.
4936  The disadvantage, as mentioned earlier, is that these are bitmapped images,
4937  so they do not scale terribly well, and one cannot copy them, etc.
4938  (As of this writing, there are also problems about equation numbering.
4939  See 
4940 \begin_inset CommandInset href
4941 LatexCommand href
4942 name "bug 6894"
4943 target "http://www.lyx.org/trac/ticket/6894"
4944
4945 \end_inset
4946
4947 .)
4948 \begin_inset Newline newline
4949 \end_inset
4950
4951 The size of the images can be controlled by setting the 
4952 \begin_inset Quotes eld
4953 \end_inset
4954
4955 Math Images Scaling
4956 \begin_inset Quotes erd
4957 \end_inset
4958
4959  parameter under 
4960 \begin_inset Flex Noun
4961 status collapsed
4962
4963 \begin_layout Plain Layout
4964 Document\SpecialChar menuseparator
4965 Settings\SpecialChar menuseparator
4966 Output
4967 \end_layout
4968
4969 \end_inset
4970
4971 .
4972 \begin_inset Foot
4973 status collapsed
4974
4975 \begin_layout Plain Layout
4976 For those who want to know, this controls the resolution of the image in
4977  dots per inch and is based upon a default of 75 dpi.
4978 \end_layout
4979
4980 \end_inset
4981
4982
4983 \begin_inset Newline newline
4984 \end_inset
4985
4986 If \SpecialChar LyX
4987  for some reason fails to create an image for a formula (e.g., if a required
4988  \SpecialChar LaTeX
4989  package is not installed), then it will fall back to outputing the raw
4990  \SpecialChar LaTeX
4991 .
4992 \end_layout
4993
4994 \begin_layout Itemize
4995 \SpecialChar LaTeX
4996
4997 \begin_inset Newline newline
4998 \end_inset
4999
5000 Finally, \SpecialChar LyX
5001  will happily output math as \SpecialChar LaTeX
5002 .
5003  As well as being the output of last resort, this method can be used with
5004  such tools as 
5005 \begin_inset CommandInset href
5006 LatexCommand href
5007 name "jsMath"
5008 target "http://www.math.union.edu/~dpvc/jsMath/"
5009
5010 \end_inset
5011
5012 , which uses JavaScript to render \SpecialChar LaTeX
5013  embedded in HTML documents.
5014  \SpecialChar LyX
5015  wraps the \SpecialChar LaTeX
5016  in either a 
5017 \begin_inset Flex Code
5018 status collapsed
5019
5020 \begin_layout Plain Layout
5021 span
5022 \end_layout
5023
5024 \end_inset
5025
5026  (for inline formulas) or 
5027 \begin_inset Flex Code
5028 status collapsed
5029
5030 \begin_layout Plain Layout
5031 div
5032 \end_layout
5033
5034 \end_inset
5035
5036  (for displayed formulas) with 
5037 \begin_inset Flex Code
5038 status collapsed
5039
5040 \begin_layout Plain Layout
5041 class='math'
5042 \end_layout
5043
5044 \end_inset
5045
5046 , as is required for jsMath.
5047 \end_layout
5048
5049 \begin_layout Standard
5050 One of these output methods must be selected under 
5051 \begin_inset Flex Noun
5052 status collapsed
5053
5054 \begin_layout Plain Layout
5055 Document\SpecialChar menuseparator
5056 Settings\SpecialChar menuseparator
5057 Output
5058 \end_layout
5059
5060 \end_inset
5061
5062 .
5063  By default, \SpecialChar LyX
5064  outputs MathML.
5065  This is a document-wide setting, therefore.
5066 \end_layout
5067
5068 \begin_layout Standard
5069 Eventually, \SpecialChar LyX
5070  will offer the user the option to select an alternate output
5071  method for a particular inset, say, one that isn't being rendered very
5072  well by MathML.
5073 \begin_inset Foot
5074 status collapsed
5075
5076 \begin_layout Plain Layout
5077 That said, since \SpecialChar LyX
5078  falls back to images if the inset contains ERT, then one
5079  can force output as an image by putting some harmless ERT into the math,
5080  for example: 
5081 \begin_inset Formula $a=b\relax$
5082 \end_inset
5083
5084 .
5085 \end_layout
5086
5087 \end_inset
5088
5089
5090 \end_layout
5091
5092 \begin_layout Section
5093 Bibliography and Citations
5094 \end_layout
5095
5096 \begin_layout Standard
5097 XHTML output fully supports bibliographies and citations.
5098  
5099 \end_layout
5100
5101 \begin_layout Standard
5102 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5103 's on-screen
5104  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5105 , though
5106  better.
5107  If you are using numerical citations, then \SpecialChar LyX
5108  will output numerical labels,
5109  such as [1] or [17], rather than simply showing the citation key in square
5110  brackets, as it does on-screen.
5111  If you are using author-year citations, then \SpecialChar LyX
5112  will add lowercase letters
5113  to the years, just as Bib\SpecialChar TeX
5114  does, if it finds more than one citation for
5115  a given author-year combination.
5116  The labels will be printed with the bibliography entries.
5117  Note that there is, at present, no way to customize the appearance of the
5118  labels, for example, to choose between square brackets and parentheses.
5119 \end_layout
5120
5121 \begin_layout Standard
5122 Bibliography output is handled by the same machinery that handles the presentati
5123 on of reference information in the citation dialog, so you will see in the
5124  XHTML output pretty much what you would see if you were to look at a given
5125  entry in the citation dialog.
5126  The formatting can be customized in your layout file or, preferably, in
5127  a module.
5128  See the 
5129 \emph on
5130 Customization
5131 \emph default
5132  manual for the details.
5133 \end_layout
5134
5135 \begin_layout Standard
5136 The main defect at present is that cross-referenced information is printed
5137  with every entry with which it is associated.
5138  So you can see things like this:
5139 \end_layout
5140
5141 \begin_layout Quote
5142 Jason Stanley, 
5143 \begin_inset Quotes eld
5144 \end_inset
5145
5146 Context and Logical Form
5147 \begin_inset Quotes erd
5148 \end_inset
5149
5150 , in 
5151 \emph on
5152 Language in Context: Selected Essays
5153 \emph default
5154  (Oxford: Oxford University Press, 2007), pp.
5155  30–68.
5156 \end_layout
5157
5158 \begin_layout Quote
5159 Jason Stanley, 
5160 \begin_inset Quotes eld
5161 \end_inset
5162
5163 Semantics in Context
5164 \begin_inset Quotes erd
5165 \end_inset
5166
5167 , in 
5168 \emph on
5169 Language in Context: Selected Essays
5170 \emph default
5171  (Oxford: Oxford University Press, 2007), pp.
5172  201–30.
5173 \end_layout
5174
5175 \begin_layout Standard
5176 This should be fixed before long.
5177 \end_layout
5178
5179 \begin_layout Standard
5180 There is no support at present for sectioned bibliographies.
5181  If you have multiple bibliographies, then \SpecialChar LyX
5182  will print the same bibliography
5183  over and over.
5184 \end_layout
5185
5186 \begin_layout Section
5187 Indexes
5188 \end_layout
5189
5190 \begin_layout Standard
5191 \SpecialChar LyX
5192  will happily export indexes as XHTML, but with certain limitations at the
5193  moment.
5194 \end_layout
5195
5196 \begin_layout Standard
5197 Index export will be most reliable when you do not attempt to use the fancy
5198  constructs that are described in the section on indexes in the 
5199 \emph on
5200 User's Guide
5201 \emph default
5202 .
5203 \begin_inset Foot
5204 status collapsed
5205
5206 \begin_layout Plain Layout
5207 The main issue here is that \SpecialChar LyX
5208  itself does not really handle these.
5209  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5210 .
5211 \end_layout
5212
5213 \end_inset
5214
5215  We'll describe how they are handled using the subsection headings from
5216  that section.
5217 \end_layout
5218
5219 \begin_layout Itemize
5220 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5221  makes an effort to support these,
5222  but the entries must be separated by 
5223 \begin_inset Quotes eld
5224 \end_inset
5225
5226  ! 
5227 \begin_inset Quotes erd
5228 \end_inset
5229
5230 , that is, there must be spaces around the exclamation point.
5231  This is because it is otherwise too difficult to check for escaped exclamation
5232  points, ones in math, and so forth.
5233 \end_layout
5234
5235 \begin_layout Itemize
5236 Page Ranges: There is no support at all for page ranges, since these make
5237  no sense with XHMTL.
5238  Instead, you will just get two index entries, one at either end.
5239 \end_layout
5240
5241 \begin_layout Itemize
5242 Cross-referencing: There is no support for cross-referencing.
5243  If \SpecialChar LyX
5244  finds an entry containing the 
5245 \begin_inset Quotes eld
5246 \end_inset
5247
5248 |see\SpecialChar ldots
5249
5250 \begin_inset Quotes erd
5251 \end_inset
5252
5253  construct, it is just dropped, and the rest is treated as an ordinary index
5254  entry.
5255 \end_layout
5256
5257 \begin_layout Itemize
5258 Index Entry Order: \SpecialChar LyX
5259  does support attempts to fix the sorting order.
5260  It will take what is before the first `@' it finds and use that for sorting,
5261  taking what follows the first `@' to be the actual entry.
5262  At present, \SpecialChar LyX
5263  does not check for escaped `@', so do not try to index email
5264  addresses.
5265 \end_layout
5266
5267 \begin_layout Itemize
5268 Index Entry Layout: You can format entries by using the text style dialog,
5269  or by using any other method available within \SpecialChar LyX
5270  itself.
5271  There is no support for constructs like: 
5272 \begin_inset Quotes eld
5273 \end_inset
5274
5275 entry|textbf
5276 \begin_inset Quotes erd
5277 \end_inset
5278
5279 .
5280  Indeed, if \SpecialChar LyX
5281  finds a pipe symbol, `|', in an entry, it will delete it and
5282  everything that follows it.
5283 \end_layout
5284
5285 \begin_layout Itemize
5286 Multiple Indexes: There is no support for multiple indexes.
5287  Rather, all index entries will be printed as one large index.
5288  To avoid our printing several versions of the index, we print only the
5289  main index, so make sure you have one.
5290 \end_layout
5291
5292 \begin_layout Section
5293 Nomenclature and Glossary
5294 \end_layout
5295
5296 \begin_layout Standard
5297 There is at present no support for glossaries.
5298  Adding it would be fairly trivial, and welcome.
5299 \end_layout
5300
5301 \begin_layout Chapter
5302 The \SpecialChar LyX
5303  Server
5304 \end_layout
5305
5306 \begin_layout Section
5307 Introduction
5308 \end_layout
5309
5310 \begin_layout Standard
5311 The `\SpecialChar LyX
5312  server' allows other programs to talk to \SpecialChar LyX
5313 , invoke \SpecialChar LyX
5314  commands, and retrieve
5315  information about the \SpecialChar LyX
5316  internal state.
5317  This is only intended for advanced users, but they should find it useful.
5318  It is by writing to the \SpecialChar LyX
5319  server, for example, that bibliography managers,
5320  such as JabRef, are able to 
5321 \begin_inset Quotes eld
5322 \end_inset
5323
5324 push
5325 \begin_inset Quotes erd
5326 \end_inset
5327
5328  citations to \SpecialChar LyX
5329 .
5330 \end_layout
5331
5332 \begin_layout Section
5333 Starting the \SpecialChar LyX
5334  Server
5335 \end_layout
5336
5337 \begin_layout Standard
5338 The \SpecialChar LyX
5339  server works through the use of a pair of named pipes.
5340  These are usually located in 
5341 \begin_inset Flex Code
5342 status collapsed
5343
5344 \begin_layout Plain Layout
5345 UserDir
5346 \end_layout
5347
5348 \end_inset
5349
5350 , (except on Windows, where 
5351 \emph on
5352 local
5353 \emph default
5354  named pipes are special objects located in 
5355 \begin_inset Flex Code
5356 status collapsed
5357
5358 \begin_layout Plain Layout
5359
5360 \backslash
5361
5362 \backslash
5363 .
5364 \backslash
5365 pipe
5366 \end_layout
5367
5368 \end_inset
5369
5370 ) and have the names 
5371 \begin_inset Quotes eld
5372 \end_inset
5373
5374
5375 \begin_inset Flex Code
5376 status collapsed
5377
5378 \begin_layout Plain Layout
5379 lyxpipe.in
5380 \end_layout
5381
5382 \end_inset
5383
5384
5385 \begin_inset Quotes erd
5386 \end_inset
5387
5388  and 
5389 \begin_inset Quotes eld
5390 \end_inset
5391
5392
5393 \begin_inset Flex Code
5394 status collapsed
5395
5396 \begin_layout Plain Layout
5397 lyxpipe.out
5398 \end_layout
5399
5400 \end_inset
5401
5402
5403 \begin_inset Quotes erd
5404 \end_inset
5405
5406 .
5407  External programs write into 
5408 \begin_inset Flex Code
5409 status collapsed
5410
5411 \begin_layout Plain Layout
5412 lyxpipe.in
5413 \end_layout
5414
5415 \end_inset
5416
5417  and read back data from 
5418 \begin_inset Flex Code
5419 status collapsed
5420
5421 \begin_layout Plain Layout
5422 lyxpipe.out
5423 \end_layout
5424
5425 \end_inset
5426
5427 .
5428  The stem of the pipe names can be defined in the 
5429 \begin_inset Flex Noun
5430 status collapsed
5431
5432 \begin_layout Plain Layout
5433 Tools\SpecialChar menuseparator
5434 Preferences
5435 \end_layout
5436
5437 \end_inset
5438
5439  dialog, for example 
5440 \begin_inset Flex Code
5441 status collapsed
5442
5443 \begin_layout Plain Layout
5444 "/home/myhome/lyxpipe"
5445 \end_layout
5446
5447 \end_inset
5448
5449 , or 
5450 \begin_inset Flex Code
5451 status collapsed
5452
5453 \begin_layout Plain Layout
5454 "
5455 \backslash
5456
5457 \backslash
5458 .
5459 \backslash
5460 pipe
5461 \backslash
5462 lyxpipe"
5463 \end_layout
5464
5465 \end_inset
5466
5467  on Windows (where any working path instead of lyxpipe can be used, for
5468  example 
5469 \begin_inset Flex Code
5470 status collapsed
5471
5472 \begin_layout Plain Layout
5473 "
5474 \backslash
5475
5476 \backslash
5477 .
5478 \backslash
5479 pipe
5480 \backslash
5481 my
5482 \backslash
5483 lyx
5484 \backslash
5485 pipe"
5486 \end_layout
5487
5488 \end_inset
5489
5490  would also work).
5491  You 
5492 \emph on
5493 must
5494 \emph default
5495  configure this manually in order for the server to start.
5496 \end_layout
5497
5498 \begin_layout Standard
5499 \SpecialChar LyX
5500  will add the '
5501 \begin_inset Flex Code
5502 status collapsed
5503
5504 \begin_layout Plain Layout
5505 .in
5506 \end_layout
5507
5508 \end_inset
5509
5510 ' and '
5511 \begin_inset Flex Code
5512 status collapsed
5513
5514 \begin_layout Plain Layout
5515 .out
5516 \end_layout
5517
5518 \end_inset
5519
5520 ' to create the pipes.
5521  If one of the pipes already exists, \SpecialChar LyX
5522  will assume that another \SpecialChar LyX
5523  process
5524  is already running and will not start the server.
5525  On POSIX (Unix like) systems, if for some other reason, an unused 
5526 \begin_inset Quotes eld
5527 \end_inset
5528
5529 stale
5530 \begin_inset Quotes erd
5531 \end_inset
5532
5533  pipe is left in existence when \SpecialChar LyX
5534  closes, then \SpecialChar LyX
5535  will try to delete it.
5536  If this fails for some reason, you will need to delete the pipes manually
5537  and then restart \SpecialChar LyX
5538 .
5539  On Windows, pipes are deleted by the OS on program termination or crash,
5540  so 
5541 \begin_inset Quotes eld
5542 \end_inset
5543
5544 stale
5545 \begin_inset Quotes erd
5546 \end_inset
5547
5548  pipes should not be possible.
5549 \end_layout
5550
5551 \begin_layout Standard
5552 To have several \SpecialChar LyX
5553  processes with servers at the same time, you have to use
5554  different configurations, perhaps by using separate user directories, each
5555  with its own 
5556 \begin_inset Flex Code
5557 status collapsed
5558
5559 \begin_layout Plain Layout
5560 preferences
5561 \end_layout
5562
5563 \end_inset
5564
5565  file, for each process.
5566 \end_layout
5567
5568 \begin_layout Standard
5569 If you are developing a client program, you might find it useful to enable
5570  debugging information from the \SpecialChar LyX
5571  server.
5572  Do this by starting \SpecialChar LyX
5573  as 
5574 \begin_inset Flex Code
5575 status collapsed
5576
5577 \begin_layout Plain Layout
5578 lyx -dbg lyxserver
5579 \end_layout
5580
5581 \end_inset
5582
5583 .
5584 \end_layout
5585
5586 \begin_layout Standard
5587 You can find a complete example client written in C++ in the source distribution
5588  as 
5589 \begin_inset Flex Code
5590 status collapsed
5591
5592 \begin_layout Plain Layout
5593 development/lyxserver/server_monitor.cpp
5594 \end_layout
5595
5596 \end_inset
5597
5598 .
5599 \end_layout
5600
5601 \begin_layout Standard
5602 Another useful tool is the command-line based client found in 
5603 \begin_inset Flex Code
5604 status collapsed
5605
5606 \begin_layout Plain Layout
5607 src/client/lyxclient
5608 \end_layout
5609
5610 \end_inset
5611
5612 .
5613 \end_layout
5614
5615 \begin_layout Section
5616 Normal communication
5617 \end_layout
5618
5619 \begin_layout Standard
5620 To issue a \SpecialChar LyX
5621  call, the client writes a line of ASCII text into the input
5622  pipe.
5623  This line has the following format:
5624 \end_layout
5625
5626 \begin_layout Quote
5627 LYXCMD:
5628 \emph on
5629 clientname
5630 \emph default
5631 :
5632 \emph on
5633 function
5634 \emph default
5635 :
5636 \emph on
5637 argument
5638 \end_layout
5639
5640 \begin_layout Description
5641 clientname is a name that the client can choose arbitrarily.
5642  Its only use is that \SpecialChar LyX
5643  will echo it if it sends an answer—so a client can
5644  dispatch results from different requesters.
5645 \end_layout
5646
5647 \begin_layout Description
5648 function is the function you want \SpecialChar LyX
5649  to perform.
5650  It is the same as the commands you'd use in the minibuffer.
5651 \end_layout
5652
5653 \begin_layout Description
5654 argument is an optional argument which is meaningful only to some functions
5655  (for instance, the 
5656 \begin_inset Quotes eld
5657 \end_inset
5658
5659 self-insert
5660 \begin_inset Quotes erd
5661 \end_inset
5662
5663  LFUN will insert the argument as text at the cursor position).
5664 \end_layout
5665
5666 \begin_layout Standard
5667 The answer from \SpecialChar LyX
5668  will arrive in the output pipe and be of the form
5669 \end_layout
5670
5671 \begin_layout Quote
5672 INFO:
5673 \emph on
5674 clientname
5675 \emph default
5676 :
5677 \emph on
5678 function
5679 \emph default
5680 :
5681 \emph on
5682 data
5683 \end_layout
5684
5685 \begin_layout Standard
5686 where 
5687 \emph on
5688 clientname
5689 \emph default
5690  and 
5691 \emph on
5692 function
5693 \emph default
5694  are just echoed from the command request, while 
5695 \emph on
5696 data
5697 \emph default
5698  is more or less useful information filled according to how the command
5699  execution worked out.
5700  Some commands, such as 
5701 \begin_inset Quotes eld
5702 \end_inset
5703
5704 font-state
5705 \begin_inset Quotes erd
5706 \end_inset
5707
5708 , will return information about the internal state of \SpecialChar LyX
5709 , while other will
5710  return an empty data-response.
5711  This means that the command execution went fine.
5712 \end_layout
5713
5714 \begin_layout Standard
5715 In case of errors, the response from \SpecialChar LyX
5716  will have this form
5717 \end_layout
5718
5719 \begin_layout Quote
5720 ERROR:
5721 \emph on
5722 clientname
5723 \emph default
5724 :
5725 \emph on
5726 function
5727 \emph default
5728 :
5729 \emph on
5730 error message
5731 \end_layout
5732
5733 \begin_layout Standard
5734 where the 
5735 \emph on
5736 error message
5737 \emph default
5738  should contain an explanation of why the command failed.
5739 \end_layout
5740
5741 \begin_layout Standard
5742 Examples:
5743 \end_layout
5744
5745 \begin_layout LyX-Code
5746 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
5747 \begin_inset Newline newline
5748 \end_inset
5749
5750 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
5751 \begin_inset Newline newline
5752 \end_inset
5753
5754 read a <~/.lyxpipe.out
5755 \begin_inset Newline newline
5756 \end_inset
5757
5758 echo $a
5759 \end_layout
5760
5761 \begin_layout Subsection
5762 AppleScript (Mac OS X)
5763 \end_layout
5764
5765 \begin_layout Standard
5766 Since \SpecialChar LyX
5767  2.1, \SpecialChar LyX
5768  supports basic interactions with AppleScript for normal communicatio
5769 n through the command run.
5770  This command takes a direct argument (the 
5771 \series bold
5772 function
5773 \series default
5774  to perform) and an optional argument.
5775  It either returns the output of the function or triggers an error with
5776  the error message and code.
5777 \end_layout
5778
5779 \begin_layout Standard
5780 Example:
5781 \end_layout
5782
5783 \begin_layout LyX-Code
5784 tell application "\SpecialChar LyX
5785 "
5786 \end_layout
5787
5788 \begin_layout LyX-Code
5789   try
5790 \end_layout
5791
5792 \begin_layout LyX-Code
5793     -- Stores the current file name into f
5794 \end_layout
5795
5796 \begin_layout LyX-Code
5797     set f to (run "server-get-filename" with argument "")
5798 \end_layout
5799
5800 \begin_layout LyX-Code
5801     on error the error_message number the error_number
5802 \end_layout
5803
5804 \begin_layout LyX-Code
5805       display dialog "Error: " & the error_number & ".
5806  " ¬
5807 \end_layout
5808
5809 \begin_layout LyX-Code
5810               & the error_message buttons {"OK"} default button 1
5811 \end_layout
5812
5813 \begin_layout LyX-Code
5814   end try
5815 \end_layout
5816
5817 \begin_layout LyX-Code
5818 end tell
5819 \end_layout
5820
5821 \begin_layout Section
5822 Notification
5823 \end_layout
5824
5825 \begin_layout Standard
5826 \SpecialChar LyX
5827  can notify clients of events going on asynchronously.
5828  Currently it will only do this if the user binds a key sequence with the
5829  function 
5830 \begin_inset Quotes eld
5831 \end_inset
5832
5833 notify
5834 \begin_inset Quotes erd
5835 \end_inset
5836
5837 .
5838  The format of the string \SpecialChar LyX
5839  sends is as follows:
5840 \end_layout
5841
5842 \begin_layout Quote
5843 \begin_inset Flex Code
5844 status collapsed
5845
5846 \begin_layout Plain Layout
5847 NOTIFY:
5848 \end_layout
5849
5850 \end_inset
5851
5852
5853 \emph on
5854 key-sequence
5855 \end_layout
5856
5857 \begin_layout Standard
5858 where 
5859 \emph on
5860 key-sequence
5861 \emph default
5862  is the printed representation of the key sequence that was actually typed
5863  by the user.
5864 \end_layout
5865
5866 \begin_layout Standard
5867 This mechanism can be used to extend \SpecialChar LyX
5868 's command set and implement macros.
5869  Bind some key sequence to 
5870 \begin_inset Quotes eld
5871 \end_inset
5872
5873 notify
5874 \begin_inset Quotes erd
5875 \end_inset
5876
5877 .
5878  Then start a client that listens on the output pipe, dispatches the command
5879  according to the sequence, and starts a function that may use \SpecialChar LyX
5880  calls and
5881  \SpecialChar LyX
5882  requests to issue a command or a series of commands to \SpecialChar LyX
5883 .
5884 \end_layout
5885
5886 \begin_layout Section
5887 The simple \SpecialChar LyX
5888  Server Protocol
5889 \end_layout
5890
5891 \begin_layout Standard
5892 \SpecialChar LyX
5893  implements a simple protocol that can be used for session management.
5894  All messages are of the form
5895 \end_layout
5896
5897 \begin_layout Quote
5898 LYXSRV:
5899 \emph on
5900 clientname
5901 \emph default
5902 :
5903 \emph on
5904 protocol message
5905 \end_layout
5906
5907 \begin_layout Standard
5908 where 
5909 \emph on
5910 protocol message
5911 \emph default
5912  can be 
5913 \begin_inset Quotes eld
5914 \end_inset
5915
5916 hello
5917 \begin_inset Quotes erd
5918 \end_inset
5919
5920  or 
5921 \begin_inset Quotes eld
5922 \end_inset
5923
5924 bye
5925 \begin_inset Quotes erd
5926 \end_inset
5927
5928 .
5929  If 
5930 \begin_inset Quotes eld
5931 \end_inset
5932
5933 hello
5934 \begin_inset Quotes erd
5935 \end_inset
5936
5937  is received from a client, \SpecialChar LyX
5938  will report back to inform the client that
5939  it's listening to it's messages, while 
5940 \begin_inset Quotes eld
5941 \end_inset
5942
5943 bye
5944 \begin_inset Quotes erd
5945 \end_inset
5946
5947  sent from \SpecialChar LyX
5948  will inform clients that \SpecialChar LyX
5949  is closing.
5950 \end_layout
5951
5952 \begin_layout Section
5953 Reverse DVI/PDF search
5954 \end_layout
5955
5956 \begin_layout Standard
5957 Some DVI/PDF viewers
5958 \begin_inset Foot
5959 status collapsed
5960
5961 \begin_layout Plain Layout
5962 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
5963  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
5964 \end_layout
5965
5966 \end_inset
5967
5968  provide 
5969 \emph on
5970 reverse search
5971 \emph default
5972  facility (also called 
5973 \emph on
5974 inverse search
5975 \emph default
5976 ).
5977  This means that you can tell \SpecialChar LyX
5978  to put the cursor to a specific line in the
5979  document by clicking at the respective position in the DVI/PDF output.
5980  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
5981 .
5982  This is done via the \SpecialChar LyX
5983  server either by using the named pipe (
5984 \emph on
5985 lyxpipe
5986 \emph default
5987 ), or the UNIX domain socket (
5988 \emph on
5989 lyxsocket
5990 \emph default
5991 ) that \SpecialChar LyX
5992  creates in its temporary directory (this is the way the 
5993 \begin_inset Flex Code
5994 status collapsed
5995
5996 \begin_layout Plain Layout
5997 lyxclient
5998 \end_layout
5999
6000 \end_inset
6001
6002  program communicates with \SpecialChar LyX
6003 ).
6004  In some cases, you need a helper script that mediates between the viewer
6005  and \SpecialChar LyX
6006 , in others, the viewer can communicate with \SpecialChar LyX
6007  directly.
6008  This depends on the selected viewer and on your operating system.
6009  The same applies to the way viewers need to be configured and the way the
6010  reverse search is actually performed.
6011  In what follows, we will thus describe how to setup reverse search for
6012  specific viewers.
6013  Before we turn to this, though, we will explain what needs to be done generally
6014  to enable reverse search in the DVI/PDF output.
6015 \end_layout
6016
6017 \begin_layout Subsection
6018 Automatic setup
6019 \begin_inset CommandInset label
6020 LatexCommand label
6021 name "subsec:rev-search"
6022
6023 \end_inset
6024
6025
6026 \end_layout
6027
6028 \begin_layout Standard
6029 In most cases \SpecialChar LyX
6030  will do the work for you by enabling the option 
6031 \begin_inset Flex Noun
6032 status collapsed
6033
6034 \begin_layout Plain Layout
6035 Synchronize with Output
6036 \end_layout
6037
6038 \end_inset
6039
6040  in the menu 
6041 \begin_inset Flex Noun
6042 status collapsed
6043
6044 \begin_layout Plain Layout
6045 Document\SpecialChar menuseparator
6046 Settings\SpecialChar menuseparator
6047 Output
6048 \end_layout
6049
6050 \end_inset
6051
6052 .
6053  In such a case \SpecialChar LyX
6054  will automatically insert the necessary Sync\SpecialChar TeX
6055  macro (for
6056  PDF) or load the srcltx package (for DVI) respectively.
6057  This option can be easily reached also on 
6058 \begin_inset Flex Code
6059 status collapsed
6060
6061 \begin_layout Plain Layout
6062 View/Update
6063 \end_layout
6064
6065 \end_inset
6066
6067  Toolbar.
6068 \end_layout
6069
6070 \begin_layout Standard
6071 If you need a different setting, you can select or input a custom macro
6072  from the drop down box just below 
6073 \begin_inset Flex Noun
6074 status collapsed
6075
6076 \begin_layout Plain Layout
6077 Document\SpecialChar menuseparator
6078 Settings\SpecialChar menuseparator
6079 Output\SpecialChar menuseparator
6080 Synchronize with Output
6081 \end_layout
6082
6083 \end_inset
6084
6085 .
6086 \end_layout
6087
6088 \begin_layout Standard
6089 Note that the method 
6090 \begin_inset Flex Code
6091 status collapsed
6092
6093 \begin_layout Plain Layout
6094
6095 \backslash
6096 synctex=1
6097 \end_layout
6098
6099 \end_inset
6100
6101  enables gzip compression.
6102  If your viewer does not support it, you should instead use 
6103 \begin_inset Flex Code
6104 status collapsed
6105
6106 \begin_layout Plain Layout
6107
6108 \backslash
6109 synctex=-1
6110 \end_layout
6111
6112 \end_inset
6113
6114 .
6115 \end_layout
6116
6117 \begin_layout Standard
6118 Please also note that including the 
6119 \begin_inset Flex Code
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 srcltx
6124 \end_layout
6125
6126 \end_inset
6127
6128  package or 
6129 \begin_inset Flex Code
6130 status collapsed
6131
6132 \begin_layout Plain Layout
6133 src-specials
6134 \end_layout
6135
6136 \end_inset
6137
6138  sometimes has an undesired impact on the typesetting.
6139  Thus, you should switch output synchronization off for the final typesetting
6140  if you use the 
6141 \begin_inset Flex Code
6142 status collapsed
6143
6144 \begin_layout Plain Layout
6145 srcltx
6146 \end_layout
6147
6148 \end_inset
6149
6150  package or 
6151 \begin_inset Flex Code
6152 status collapsed
6153
6154 \begin_layout Plain Layout
6155 src-specials
6156 \end_layout
6157
6158 \end_inset
6159
6160 .
6161  
6162 \end_layout
6163
6164 \begin_layout Standard
6165 In case you need some more special settings that are not covered by the
6166  automatic settings, read the next section about how to set up output synchroniz
6167 ation manually.
6168  If the automatic setup suits your needs, you can readily jump to section
6169 \begin_inset space ~
6170 \end_inset
6171
6172
6173 \begin_inset CommandInset ref
6174 LatexCommand ref
6175 reference "subsec:configuring-viewers"
6176
6177 \end_inset
6178
6179 , where the necessary configuration steps in your viewer – needed both with
6180  the automatic and the manual setup – are described.
6181 \end_layout
6182
6183 \begin_layout Subsection
6184 Manual setup
6185 \end_layout
6186
6187 \begin_layout Standard
6188 \SpecialChar LaTeX
6189  provides several different methods for reverse search.
6190  Some are built-in in the 
6191 \begin_inset Flex Code
6192 status collapsed
6193
6194 \begin_layout Plain Layout
6195 latex/pdflatex
6196 \end_layout
6197
6198 \end_inset
6199
6200  program, some are provided by external packages.
6201  Your choice depends on whether your \SpecialChar LaTeX
6202  distribution already provides a given
6203  method (the built-in methods are rather new) and whether your viewer can
6204  cope with it.
6205  The available methods are described in the following.
6206 \end_layout
6207
6208 \begin_layout Subsubsection*
6209 Built-in DVI-search via src-specials (DVI only) 
6210 \end_layout
6211
6212 \begin_layout Standard
6213 This method provides the DVI file with the necessary information for reverse
6214  search.
6215  It is available in \SpecialChar LaTeX
6216  since quite some time (any somewhat recent \SpecialChar LaTeX
6217  distribution
6218  should include it), and it works reliably.
6219  To enable it, change the 
6220 \begin_inset Flex Noun
6221 status collapsed
6222
6223 \begin_layout Plain Layout
6224 La
6225 \family sans
6226 TeX
6227 \family default
6228  (plain)->DVI
6229 \end_layout
6230
6231 \end_inset
6232
6233  or 
6234 \begin_inset Flex Noun
6235 status collapsed
6236
6237 \begin_layout Plain Layout
6238 La
6239 \family sans
6240 TeX
6241 \family default
6242  (plain)->DraftDVI
6243 \end_layout
6244
6245 \end_inset
6246
6247  converter in 
6248 \begin_inset Flex Noun
6249 status collapsed
6250
6251 \begin_layout Plain Layout
6252 Preferences\SpecialChar menuseparator
6253 File Handling\SpecialChar menuseparator
6254 Converters
6255 \end_layout
6256
6257 \end_inset
6258
6259  to 
6260 \begin_inset Flex Code
6261 status collapsed
6262
6263 \begin_layout Plain Layout
6264 latex -src-specials $$i
6265 \end_layout
6266
6267 \end_inset
6268
6269 .
6270  If this doesn't work, check if your \SpecialChar TeX
6271  engine needs different options (the
6272  syntax might differ in some distributions).
6273 \end_layout
6274
6275 \begin_layout Subsubsection*
6276 External Packages (PDFSync and scrltx) 
6277 \end_layout
6278
6279 \begin_layout Standard
6280 The packages 
6281 \emph on
6282 pdfsync
6283 \emph default
6284  and 
6285 \emph on
6286 scrltx
6287 \emph default
6288  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6289  respectively.
6290  In order to enable it, load the packages in the \SpecialChar LyX
6291  preamble: 
6292 \end_layout
6293
6294 \begin_layout Itemize
6295 \begin_inset Flex Code
6296 status collapsed
6297
6298 \begin_layout Plain Layout
6299
6300 \backslash
6301 usepackage{pdfsync}
6302 \end_layout
6303
6304 \end_inset
6305
6306  for reverse PDF search,
6307 \end_layout
6308
6309 \begin_layout Itemize
6310 \begin_inset Flex Code
6311 status collapsed
6312
6313 \begin_layout Plain Layout
6314
6315 \backslash
6316 usepackage[active]{srcltx}
6317 \end_layout
6318
6319 \end_inset
6320
6321  for reverse DVI search.
6322 \end_layout
6323
6324 \begin_layout Standard
6325 If you want to be able to perform both DVI and PDF reverse searches, you
6326  can also insert in the preamble the following lines
6327 \end_layout
6328
6329 \begin_layout LyX-Code
6330
6331 \backslash
6332 usepackage{ifpdf}
6333 \begin_inset Newline newline
6334 \end_inset
6335
6336
6337 \backslash
6338 ifpdf
6339 \begin_inset Newline newline
6340 \end_inset
6341
6342   
6343 \backslash
6344 usepackage{pdfsync}
6345 \begin_inset Newline newline
6346 \end_inset
6347
6348
6349 \backslash
6350 else
6351 \begin_inset Newline newline
6352 \end_inset
6353
6354   
6355 \backslash
6356 usepackage[active]{srcltx}
6357 \begin_inset Newline newline
6358 \end_inset
6359
6360
6361 \backslash
6362 fi
6363 \end_layout
6364
6365 \begin_layout Standard
6366 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6367  right package will be used.
6368 \end_layout
6369
6370 \begin_layout Standard
6371 Note that PDFSync might affect the output layout of your document.
6372  It is therefore advised to disable PDFsync for final documents.
6373 \end_layout
6374
6375 \begin_layout Subsubsection*
6376 Built-in reverse search via Sync\SpecialChar TeX
6377  (DVI and PDF) 
6378 \end_layout
6379
6380 \begin_layout Standard
6381 Recent versions of 
6382 \begin_inset Flex Code
6383 status collapsed
6384
6385 \begin_layout Plain Layout
6386 (pdf)latex
6387 \end_layout
6388
6389 \end_inset
6390
6391  have built-in support for both PDF and DVI reverse search.
6392  This so-called 
6393 \emph on
6394 Sync\SpecialChar TeX
6395
6396 \emph default
6397  facility is basically the result of the integration of the PDFSync package
6398  to the pdftex program and its merge with the 
6399 \emph on
6400 scr-specials
6401 \emph default
6402  approach.
6403  You need at least \SpecialChar TeX
6404 Live 2008 or a recent Mik\SpecialChar TeX
6405  distribution in order to use
6406  it.
6407 \begin_inset Foot
6408 status collapsed
6409
6410 \begin_layout Plain Layout
6411 For some reason, Mik\SpecialChar TeX
6412  does not understand/obey the command \SpecialChar LyX
6413  inserts into
6414  the preamble when you check the "Enable Forward/Reverse Search" button
6415  in the toolbar and does not generate the necessary info.
6416 \end_layout
6417
6418 \begin_layout Plain Layout
6419 The generation of the required info can be forced by changing the converter
6420  "\SpecialChar LaTeX
6421  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
6422  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
6423  the -synctex=1 switch).
6424 \end_layout
6425
6426 \end_inset
6427
6428  Also note that only a few PDF viewers (Okular and Qpdfview on Unix, Skim
6429  on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
6430  support.
6431 \end_layout
6432
6433 \begin_layout Standard
6434 To enable Sync\SpecialChar TeX
6435  for DVI output, change the 
6436 \begin_inset Flex Noun
6437 status collapsed
6438
6439 \begin_layout Plain Layout
6440 La
6441 \family sans
6442 TeX
6443 \family default
6444  (plain) -> DVI
6445 \end_layout
6446
6447 \end_inset
6448
6449  or 
6450 \begin_inset Flex Noun
6451 status collapsed
6452
6453 \begin_layout Plain Layout
6454 La
6455 \family sans
6456 TeX
6457 \family default
6458  (plain) -> DraftDVI
6459 \end_layout
6460
6461 \end_inset
6462
6463  converter in 
6464 \begin_inset Flex Noun
6465 status collapsed
6466
6467 \begin_layout Plain Layout
6468 Preferences\SpecialChar menuseparator
6469 File Handling\SpecialChar menuseparator
6470 Converters
6471 \end_layout
6472
6473 \end_inset
6474
6475  to 
6476 \begin_inset Flex Code
6477 status collapsed
6478
6479 \begin_layout Plain Layout
6480 latex -synctex=1 $$i
6481 \end_layout
6482
6483 \end_inset
6484
6485 , and for PDF output, change the 
6486 \begin_inset Flex Noun
6487 status collapsed
6488
6489 \begin_layout Plain Layout
6490 La
6491 \family sans
6492 TeX
6493 \family default
6494  (pdflatex) -> PDF (pdflatex)
6495 \end_layout
6496
6497 \end_inset
6498
6499  or converter to 
6500 \begin_inset Flex Code
6501 status collapsed
6502
6503 \begin_layout Plain Layout
6504 pdflatex -synctex=1 $$i
6505 \end_layout
6506
6507 \end_inset
6508
6509 .
6510  Check the documentation of your viewer whether the viewer needs to be configure
6511 d for the use with Sync\SpecialChar TeX
6512 .
6513 \begin_inset Foot
6514 status collapsed
6515
6516 \begin_layout Plain Layout
6517 Note that the option 
6518 \begin_inset Flex Code
6519 status collapsed
6520
6521 \begin_layout Plain Layout
6522 -synctex=1
6523 \end_layout
6524
6525 \end_inset
6526
6527  option enables gzip compression.
6528  If your viewer does not support it, you should instead use 
6529 \begin_inset Flex Code
6530 status collapsed
6531
6532 \begin_layout Plain Layout
6533 -synctex=-1
6534 \end_layout
6535
6536 \end_inset
6537
6538 .
6539 \end_layout
6540
6541 \end_inset
6542
6543
6544 \end_layout
6545
6546 \begin_layout Subsection
6547 Configuring and using specific viewers
6548 \begin_inset CommandInset label
6549 LatexCommand label
6550 name "subsec:configuring-viewers"
6551
6552 \end_inset
6553
6554
6555 \end_layout
6556
6557 \begin_layout Subsubsection*
6558 Xdvi (all platforms)
6559 \end_layout
6560
6561 \begin_layout Standard
6562 If you use 
6563 \begin_inset Flex Code
6564 status collapsed
6565
6566 \begin_layout Plain Layout
6567 xdvi
6568 \end_layout
6569
6570 \end_inset
6571
6572 , you don't need to do anything else for performing a reverse DVI search,
6573  as \SpecialChar LyX
6574  already provides the necessary hooks for automatically using the 
6575 \begin_inset Flex Code
6576 status collapsed
6577
6578 \begin_layout Plain Layout
6579 lyxclient
6580 \end_layout
6581
6582 \end_inset
6583
6584  program.
6585  Just setup your document as described above (reverse search is triggered
6586  by Ctrl-click or Alt-click on Mac OSX, respectively).
6587 \end_layout
6588
6589 \begin_layout Standard
6590 However, if for whatever reason you want to use the named pipe instead of
6591  the socket for communicating with \SpecialChar LyX
6592 , simply change the DVI viewer in 
6593 \begin_inset Flex Noun
6594 status collapsed
6595
6596 \begin_layout Plain Layout
6597 Preferences\SpecialChar menuseparator
6598 File Handling\SpecialChar menuseparator
6599 File formats
6600 \end_layout
6601
6602 \end_inset
6603
6604  to
6605 \begin_inset Foot
6606 status collapsed
6607
6608 \begin_layout Plain Layout
6609 On Mac OSX you have to use 
6610 \begin_inset Flex Code
6611 status collapsed
6612
6613 \begin_layout Plain Layout
6614 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
6615 \end_layout
6616
6617 \end_inset
6618
6619
6620 \end_layout
6621
6622 \end_inset
6623
6624  
6625 \begin_inset Flex Code
6626 status collapsed
6627
6628 \begin_layout Plain Layout
6629 xdvi -editor "lyxeditor.sh %f %l"
6630 \end_layout
6631
6632 \end_inset
6633
6634 , where 
6635 \begin_inset Flex Code
6636 status collapsed
6637
6638 \begin_layout Plain Layout
6639 lyxeditor.sh
6640 \end_layout
6641
6642 \end_inset
6643
6644  is a suitable script.
6645  For example, a minimal shell script is the following one:
6646 \end_layout
6647
6648 \begin_layout LyX-Code
6649 #!/bin/sh
6650 \begin_inset Newline newline
6651 \end_inset
6652
6653 LYXPIPE="/path/to/lyxpipe"
6654 \begin_inset Newline newline
6655 \end_inset
6656
6657 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6658 \begin_inset Newline newline
6659 \end_inset
6660
6661 echo "$COMMAND" > "${LYXPIPE}".in || exit
6662 \begin_inset Newline newline
6663 \end_inset
6664
6665 read TMP < "${LYXPIPE}".out || exit
6666 \end_layout
6667
6668 \begin_layout Standard
6669 where 
6670 \begin_inset Flex Code
6671 status collapsed
6672
6673 \begin_layout Plain Layout
6674 /path/to/lyxpipe
6675 \end_layout
6676
6677 \end_inset
6678
6679  is the LyXServer pipe path specified in 
6680 \begin_inset Flex Noun
6681 status collapsed
6682
6683 \begin_layout Plain Layout
6684 Preferences\SpecialChar menuseparator
6685 Paths
6686 \end_layout
6687
6688 \end_inset
6689
6690 .
6691 \begin_inset Foot
6692 status collapsed
6693
6694 \begin_layout Plain Layout
6695 In the 
6696 \begin_inset Flex Code
6697 status collapsed
6698
6699 \begin_layout Plain Layout
6700 development/tools
6701 \end_layout
6702
6703 \end_inset
6704
6705  folder of a source distribution you can find a 
6706 \begin_inset Flex Code
6707 status collapsed
6708
6709 \begin_layout Plain Layout
6710 lyxeditor
6711 \end_layout
6712
6713 \end_inset
6714
6715  script which is able to locate the 
6716 \emph on
6717 lyxpipe
6718 \emph default
6719  based on your preferences.
6720 \end_layout
6721
6722 \end_inset
6723
6724
6725 \end_layout
6726
6727 \begin_layout Subsubsection*
6728 MacDviX (Mac OSX)
6729 \end_layout
6730
6731 \begin_layout Standard
6732 At the end of 
6733 \begin_inset Flex Code
6734 status collapsed
6735
6736 \begin_layout Plain Layout
6737 /Applications/MacDviX_Folder/calleditor.script
6738 \end_layout
6739
6740 \end_inset
6741
6742 , add the following lines:
6743 \end_layout
6744
6745 \begin_layout LyX-Code
6746 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
6747 \begin_inset Newline newline
6748 \end_inset
6749
6750 exit 1
6751 \end_layout
6752
6753 \begin_layout Standard
6754 Modify the lines accordingly if you install \SpecialChar LyX
6755  somewhere else than in the
6756  Applications folder.
6757 \end_layout
6758
6759 \begin_layout Standard
6760 Reverse search is triggered by Alt-click (OPTION-click).
6761 \end_layout
6762
6763 \begin_layout Subsubsection*
6764 Skim (Mac OSX)
6765 \end_layout
6766
6767 \begin_layout Standard
6768 Enter 
6769 \begin_inset Flex Code
6770 status collapsed
6771
6772 \begin_layout Plain Layout
6773 open -a Skim.app $$i
6774 \end_layout
6775
6776 \end_inset
6777
6778  to the viewer setting in 
6779 \begin_inset Flex Noun
6780 status collapsed
6781
6782 \begin_layout Plain Layout
6783 Preferences\SpecialChar menuseparator
6784 File Handling\SpecialChar menuseparator
6785 File formats\SpecialChar menuseparator
6786 PDF (pdflatex)
6787 \end_layout
6788
6789 \end_inset
6790
6791 , and then in 
6792 \begin_inset Flex Noun
6793 status collapsed
6794
6795 \begin_layout Plain Layout
6796 Skim\SpecialChar menuseparator
6797 Preferences\SpecialChar menuseparator
6798 Sync
6799 \end_layout
6800
6801 \end_inset
6802
6803  choose 
6804 \begin_inset Flex Noun
6805 status collapsed
6806
6807 \begin_layout Plain Layout
6808 custom
6809 \end_layout
6810
6811 \end_inset
6812
6813  preset and enter command 
6814 \begin_inset Flex Noun
6815 status collapsed
6816
6817 \begin_layout Plain Layout
6818 /Applications/\SpecialChar LyX
6819 .app/Contents/MacOS/lyxeditor
6820 \end_layout
6821
6822 \end_inset
6823
6824 .
6825 \end_layout
6826
6827 \begin_layout Standard
6828 Reverse search is triggered by COMMAND-SHIFT-click
6829 \end_layout
6830
6831 \begin_layout Subsubsection*
6832 Okular (KDE)
6833 \end_layout
6834
6835 \begin_layout Standard
6836 Go to 
6837 \begin_inset Flex Noun
6838 status collapsed
6839
6840 \begin_layout Plain Layout
6841 Settings\SpecialChar menuseparator
6842 Configure Okular\SpecialChar menuseparator
6843 Editor
6844 \end_layout
6845
6846 \end_inset
6847
6848 , select 
6849 \begin_inset Quotes eld
6850 \end_inset
6851
6852 Custom Text Editor
6853 \begin_inset Quotes erd
6854 \end_inset
6855
6856  and add the command 
6857 \begin_inset Flex Code
6858 status collapsed
6859
6860 \begin_layout Plain Layout
6861 lyxclient -g %f %l
6862 \end_layout
6863
6864 \end_inset
6865
6866 .
6867 \end_layout
6868
6869 \begin_layout Standard
6870 Reverse search is triggered by SHIFT-click.
6871 \end_layout
6872
6873 \begin_layout Subsubsection*
6874 Qpdfview (Unix)
6875 \end_layout
6876
6877 \begin_layout Standard
6878 Qpdfview supports Sync\SpecialChar TeX
6879  since version 0.3.5.
6880  Go to 
6881 \begin_inset Flex Noun
6882 status collapsed
6883
6884 \begin_layout Plain Layout
6885 Edit\SpecialChar menuseparator
6886 Settings\SpecialChar menuseparator
6887 Behavior
6888 \end_layout
6889
6890 \end_inset
6891
6892 , click on the input field of the 
6893 \begin_inset Quotes eld
6894 \end_inset
6895
6896 Source editor
6897 \begin_inset Quotes erd
6898 \end_inset
6899
6900  item and add the command 
6901 \begin_inset Flex Code
6902 status collapsed
6903
6904 \begin_layout Plain Layout
6905 lyxclient -g %1 %2
6906 \end_layout
6907
6908 \end_inset
6909
6910 .
6911 \end_layout
6912
6913 \begin_layout Standard
6914 Reverse search is triggered by double-click.
6915 \end_layout
6916
6917 \begin_layout Subsubsection*
6918 YAP (Windows)
6919 \end_layout
6920
6921 \begin_layout Standard
6922 Launch yap, choose its 
6923 \begin_inset Flex Noun
6924 status collapsed
6925
6926 \begin_layout Plain Layout
6927 View\SpecialChar menuseparator
6928 Options
6929 \end_layout
6930
6931 \end_inset
6932
6933  menu and select the 
6934 \begin_inset Quotes eld
6935 \end_inset
6936
6937 Inverse DVI Search
6938 \begin_inset Quotes erd
6939 \end_inset
6940
6941  tab.
6942  Click on the 
6943 \begin_inset Quotes eld
6944 \end_inset
6945
6946 New\SpecialChar ldots
6947
6948 \begin_inset Quotes erd
6949 \end_inset
6950
6951  button and, in the window that opens, enter 
6952 \begin_inset Quotes eld
6953 \end_inset
6954
6955 \SpecialChar LyX
6956  Editor
6957 \begin_inset Quotes erd
6958 \end_inset
6959
6960  (or any other name you like) in the 
6961 \begin_inset Quotes eld
6962 \end_inset
6963
6964 Name:
6965 \begin_inset Quotes erd
6966 \end_inset
6967
6968  field.
6969  Now click on the button labeled 
6970 \begin_inset Quotes eld
6971 \end_inset
6972
6973 \SpecialChar ldots
6974
6975 \begin_inset Quotes erd
6976 \end_inset
6977
6978  to open a file dialog and navigate to the directory containing the batch
6979  file 
6980 \begin_inset Flex Code
6981 status collapsed
6982
6983 \begin_layout Plain Layout
6984 lyxeditor.bat
6985 \end_layout
6986
6987 \end_inset
6988
6989  (see below).
6990  Select 
6991 \begin_inset Flex Code
6992 status collapsed
6993
6994 \begin_layout Plain Layout
6995 lyxeditor.bat
6996 \end_layout
6997
6998 \end_inset
6999
7000  and then specify the program arguments as 
7001 \begin_inset Flex Code
7002 status collapsed
7003
7004 \begin_layout Plain Layout
7005 %f %l
7006 \end_layout
7007
7008 \end_inset
7009
7010 .
7011  The 
7012 \begin_inset Flex Code
7013 status collapsed
7014
7015 \begin_layout Plain Layout
7016 lyxeditor.bat
7017 \end_layout
7018
7019 \end_inset
7020
7021  wrapper is used for communicating with \SpecialChar LyX
7022  through the 
7023 \emph on
7024 lyxpipe
7025 \emph default
7026  and is as follows:
7027 \end_layout
7028
7029 \begin_layout LyX-Code
7030 @echo off
7031 \begin_inset Newline newline
7032 \end_inset
7033
7034 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7035 \backslash
7036
7037 \backslash
7038 .
7039 \backslash
7040 pipe
7041 \backslash
7042 lyxpipe.in
7043 \begin_inset Newline newline
7044 \end_inset
7045
7046 type 
7047 \backslash
7048
7049 \backslash
7050 .
7051 \backslash
7052 pipe
7053 \backslash
7054 lyxpipe.out
7055 \end_layout
7056
7057 \begin_layout Standard
7058 Make sure that the \SpecialChar LyX
7059 Server pipe path you specified in \SpecialChar LyX
7060  is 
7061 \begin_inset Flex Code
7062 status collapsed
7063
7064 \begin_layout Plain Layout
7065
7066 \backslash
7067
7068 \backslash
7069 .
7070 \backslash
7071 pipe
7072 \backslash
7073 lyxpipe
7074 \end_layout
7075
7076 \end_inset
7077
7078 , otherwise change the 
7079 \begin_inset Flex Code
7080 status collapsed
7081
7082 \begin_layout Plain Layout
7083 lyxeditor.bat
7084 \end_layout
7085
7086 \end_inset
7087
7088  wrapper accordingly.
7089 \end_layout
7090
7091 \begin_layout Standard
7092 In yap, reverse search is triggered by double-click.
7093 \end_layout
7094
7095 \begin_layout Subsubsection*
7096 SumatraPDF (Windows)
7097 \end_layout
7098
7099 \begin_layout Standard
7100 In order to use SumatraPDF for inverse search, enter 
7101 \begin_inset Flex Code
7102 status collapsed
7103
7104 \begin_layout Plain Layout
7105 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
7106 \end_layout
7107
7108 \end_inset
7109
7110  in the viewer setting in 
7111 \begin_inset Flex Noun
7112 status collapsed
7113
7114 \begin_layout Plain Layout
7115 Preferences\SpecialChar menuseparator
7116 File Handling\SpecialChar menuseparator
7117 File formats\SpecialChar menuseparator
7118 PDF (pdflatex)
7119 \end_layout
7120
7121 \end_inset
7122
7123 , where 
7124 \begin_inset Flex Code
7125 status collapsed
7126
7127 \begin_layout Plain Layout
7128 lyxeditor.bat
7129 \end_layout
7130
7131 \end_inset
7132
7133  is the previous wrapper.
7134  If SumatraPDF.exe is not in your command PATH, use its full file name.
7135 \end_layout
7136
7137 \begin_layout Standard
7138 Reverse search is triggered by double-click.
7139 \end_layout
7140
7141 \begin_layout Subsubsection*
7142 YAP (Cygwin)
7143 \end_layout
7144
7145 \begin_layout Standard
7146 First of all, make sure that yap is your default DVI viewer in the Windows
7147  environment, then launch it, choose its 
7148 \begin_inset Flex Noun
7149 status collapsed
7150
7151 \begin_layout Plain Layout
7152 View\SpecialChar menuseparator
7153 Options
7154 \end_layout
7155
7156 \end_inset
7157
7158  menu and select the 
7159 \begin_inset Quotes eld
7160 \end_inset
7161
7162 Inverse DVI Search
7163 \begin_inset Quotes erd
7164 \end_inset
7165
7166  tab.
7167  Click on the 
7168 \begin_inset Quotes eld
7169 \end_inset
7170
7171 New\SpecialChar ldots
7172
7173 \begin_inset Quotes erd
7174 \end_inset
7175
7176  button and, in the window that opens, enter 
7177 \begin_inset Quotes eld
7178 \end_inset
7179
7180 \SpecialChar LyX
7181  Editor
7182 \begin_inset Quotes erd
7183 \end_inset
7184
7185  (or any other name you like) in the 
7186 \begin_inset Quotes eld
7187 \end_inset
7188
7189 Name:
7190 \begin_inset Quotes erd
7191 \end_inset
7192
7193  field.
7194  Now click on the button labeled 
7195 \begin_inset Quotes eld
7196 \end_inset
7197
7198 \SpecialChar ldots
7199
7200 \begin_inset Quotes erd
7201 \end_inset
7202
7203  to open a file dialog and navigate to the directory containing the 
7204 \begin_inset Flex Code
7205 status collapsed
7206
7207 \begin_layout Plain Layout
7208 lyxeditor.exe
7209 \end_layout
7210
7211 \end_inset
7212
7213  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7214  executable).
7215  Select 
7216 \begin_inset Flex Code
7217 status collapsed
7218
7219 \begin_layout Plain Layout
7220 lyxeditor.exe
7221 \end_layout
7222
7223 \end_inset
7224
7225  and then specify the program arguments as 
7226 \begin_inset Flex Code
7227 status collapsed
7228
7229 \begin_layout Plain Layout
7230 -g %f %l
7231 \end_layout
7232
7233 \end_inset
7234
7235 .
7236  In this way, you will be using the 
7237 \emph on
7238 lyxsocket
7239 \emph default
7240  for communicating with \SpecialChar LyX
7241 .
7242  If, for whatever reason, you want to use the 
7243 \emph on
7244 lyxpipe
7245 \emph default
7246 , omit the 
7247 \begin_inset Flex Code
7248 status collapsed
7249
7250 \begin_layout Plain Layout
7251 -g
7252 \end_layout
7253
7254 \end_inset
7255
7256  option and be sure to specify the \SpecialChar LyX
7257 Server pipe path in the \SpecialChar LyX
7258  preferences.
7259 \end_layout
7260
7261 \begin_layout Standard
7262 In yap, reverse search is triggered by double-click.
7263 \end_layout
7264
7265 \begin_layout Subsubsection*
7266 SumatraPDF (Cygwin)
7267 \end_layout
7268
7269 \begin_layout Standard
7270 In order to use SumatraPDF for inverse search, enter 
7271 \begin_inset Flex Code
7272 status collapsed
7273
7274 \begin_layout Plain Layout
7275 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7276 \end_layout
7277
7278 \end_inset
7279
7280  in the viewer setting in 
7281 \begin_inset Flex Noun
7282 status collapsed
7283
7284 \begin_layout Plain Layout
7285 Preferences\SpecialChar menuseparator
7286 File Handling\SpecialChar menuseparator
7287 File formats\SpecialChar menuseparator
7288 PDF (pdflatex)
7289 \end_layout
7290
7291 \end_inset
7292
7293 .
7294  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7295  The 
7296 \begin_inset Flex Code
7297 status collapsed
7298
7299 \begin_layout Plain Layout
7300 -g
7301 \end_layout
7302
7303 \end_inset
7304
7305  enables communication via the 
7306 \emph on
7307 lyxsocket
7308 \emph default
7309 .
7310  Again, omit the 
7311 \begin_inset Flex Code
7312 status collapsed
7313
7314 \begin_layout Plain Layout
7315 -g
7316 \end_layout
7317
7318 \end_inset
7319
7320  option if you want to use the 
7321 \emph on
7322 lyxpipe
7323 \emph default
7324 , and be sure to specify the \SpecialChar LyX
7325 Server pipe path in the \SpecialChar LyX
7326  preferences.
7327 \end_layout
7328
7329 \begin_layout Standard
7330 Reverse search is triggered by double-click.
7331 \end_layout
7332
7333 \begin_layout Section
7334 Forward search
7335 \end_layout
7336
7337 \begin_layout Standard
7338 Forward search is, as the name implies, in a sense the 
7339 \begin_inset Quotes eld
7340 \end_inset
7341
7342 opposite
7343 \begin_inset Quotes erd
7344 \end_inset
7345
7346  of reverse search.
7347  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7348 .
7349  If forward search is set up (as described in what follows), you can put
7350  the cursor anywhere in your \SpecialChar LyX
7351  document, and hit 
7352 \begin_inset Flex Noun
7353 status collapsed
7354
7355 \begin_layout Plain Layout
7356 Navigate\SpecialChar menuseparator
7357 Forward search
7358 \end_layout
7359
7360 \end_inset
7361
7362  (or select 
7363 \begin_inset Flex Noun
7364 status collapsed
7365
7366 \begin_layout Plain Layout
7367 Forward search
7368 \end_layout
7369
7370 \end_inset
7371
7372  in the context menu via right mouse click), and then the viewer will jump
7373  to that position as well.
7374  This implies, of course, that your viewer supports this function.
7375 \end_layout
7376
7377 \begin_layout Standard
7378 To make forward search possible, you first need to provide the generated
7379  output PDF/DVI file with additional information about the \SpecialChar TeX
7380  sources.
7381  This can be done via the methods described in the section 
7382 \begin_inset CommandInset ref
7383 LatexCommand ref
7384 reference "subsec:rev-search"
7385
7386 \end_inset
7387
7388 .
7389 \end_layout
7390
7391 \begin_layout Standard
7392 Additionally, you need to configure \SpecialChar LyX
7393  for using your viewers in 
7394 \begin_inset Flex Noun
7395 status collapsed
7396
7397 \begin_layout Plain Layout
7398 Tools\SpecialChar menuseparator
7399 Preferences\SpecialChar menuseparator
7400 Output\SpecialChar menuseparator
7401 General
7402 \end_layout
7403
7404 \end_inset
7405
7406 .
7407  We provide a range of tested configurations for some viewers, which you
7408  can select from the drop down list.
7409  If none of these configurations suits you, you have to find out and enter
7410  a suitable configuration yourself.
7411  The definition syntax uses the following placeholders:
7412 \end_layout
7413
7414 \begin_layout Itemize
7415 \noindent
7416 \begin_inset Flex Code
7417 status collapsed
7418
7419 \begin_layout Plain Layout
7420 $$n
7421 \end_layout
7422
7423 \end_inset
7424
7425 : row number
7426 \end_layout
7427
7428 \begin_layout Itemize
7429 \noindent
7430 \begin_inset Flex Code
7431 status collapsed
7432
7433 \begin_layout Plain Layout
7434 $$t
7435 \end_layout
7436
7437 \end_inset
7438
7439 : name of the (temporary) exported .tex file (without path)
7440 \end_layout
7441
7442 \begin_layout Itemize
7443 \noindent
7444 \begin_inset Flex Code
7445 status collapsed
7446
7447 \begin_layout Plain Layout
7448 $$f
7449 \end_layout
7450
7451 \end_inset
7452
7453 : name of the (temporary) exported .tex file (including path)
7454 \end_layout
7455
7456 \begin_layout Itemize
7457 \noindent
7458 \begin_inset Flex Code
7459 status collapsed
7460
7461 \begin_layout Plain Layout
7462 $$o
7463 \end_layout
7464
7465 \end_inset
7466
7467 : name of the exported output file (either dvi or pdf, depending on which
7468  one exists in the temporary directory)
7469 \end_layout
7470
7471 \begin_layout Standard
7472 Note that only some of the viewers provide full forward search functionality,
7473  among them yap, xdvi, okular
7474 \begin_inset Foot
7475 status collapsed
7476
7477 \begin_layout Plain Layout
7478 You might want to set 
7479 \begin_inset Flex Code
7480 status collapsed
7481
7482 \begin_layout Plain Layout
7483 okular –unique
7484 \end_layout
7485
7486 \end_inset
7487
7488  in 
7489 \begin_inset Flex Noun
7490 status collapsed
7491
7492 \begin_layout Plain Layout
7493 Tools\SpecialChar menuseparator
7494 Preferences\SpecialChar menuseparator
7495 File Handling\SpecialChar menuseparator
7496 File
7497 \begin_inset space ~
7498 \end_inset
7499
7500 Formats
7501 \end_layout
7502
7503 \end_inset
7504
7505
7506 \end_layout
7507
7508 \end_inset
7509
7510 , qpdfview and SumatraPDF
7511 \begin_inset Foot
7512 status collapsed
7513
7514 \begin_layout Plain Layout
7515 SumatraPDF can also use DDE commands through the external program CMCDDE
7516  — downloadable from 
7517 \begin_inset CommandInset href
7518 LatexCommand href
7519 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
7520
7521 \end_inset
7522
7523
7524 \end_layout
7525
7526 \end_inset
7527
7528 .
7529  While many of the widespread PDF viewers (most notably Adobe Reader) do
7530  not support forward search at all, some other viewers – e.
7531 \begin_inset space \thinspace{}
7532 \end_inset
7533
7534 g.
7535  evince and xpdf – allow at least to reload the document and jump to a specific
7536  page of the file, so you can at least navigate 
7537 \begin_inset Quotes eld
7538 \end_inset
7539
7540 near
7541 \begin_inset Quotes erd
7542 \end_inset
7543
7544 .
7545  This latter functionality is provided by an external call of synctex (see
7546  the predefined example configurations).
7547  
7548 \end_layout
7549
7550 \begin_layout Standard
7551 Forward search works both with DVI and PDF output.
7552  \SpecialChar LyX
7553  simply checks which preview format you have used before (i.
7554 \begin_inset space \thinspace{}
7555 \end_inset
7556
7557 e., which format is already there in the temporary directory) and chooses
7558  the appropriate configuration for the respective format.
7559 \end_layout
7560
7561 \begin_layout Chapter
7562 Special Document Classes
7563 \end_layout
7564
7565 \begin_layout Section
7566 A&A Paper
7567 \end_layout
7568
7569 \begin_layout Standard
7570 by 
7571 \noun on
7572 Peter Sütterlin
7573 \end_layout
7574
7575 \begin_layout Subsection
7576 Introduction
7577 \end_layout
7578
7579 \begin_layout Standard
7580 This section describes how \SpecialChar LyX
7581  can be used to write articles for submission
7582  to the scientific journal 
7583 \emph on
7584 Astronomy and Astrophysics
7585 \emph default
7586  (
7587 \begin_inset Flex URL
7588 status collapsed
7589
7590 \begin_layout Plain Layout
7591
7592 http://www.edpsciences.fr/aa/
7593 \end_layout
7594
7595 \end_inset
7596
7597 ) using Version 5.01 of the document class 
7598 \family typewriter
7599 aa.cls
7600 \family default
7601 .
7602  This package can be downloaded from the ftp site
7603 \end_layout
7604
7605 \begin_layout Standard
7606 \begin_inset VSpace medskip
7607 \end_inset
7608
7609
7610 \end_layout
7611
7612 \begin_layout Standard
7613 \align center
7614 \begin_inset Flex URL
7615 status collapsed
7616
7617 \begin_layout Plain Layout
7618
7619 ftp://ftp.edpsciences.org/pub/aa/readme.html
7620 \end_layout
7621
7622 \end_inset
7623
7624
7625 \end_layout
7626
7627 \begin_layout Standard
7628 \begin_inset VSpace medskip
7629 \end_inset
7630
7631
7632 \end_layout
7633
7634 \begin_layout Standard
7635 A manual comes together with that package, and this text is not meant to
7636  replace the original manual but is merely a short guide in how to realize
7637  the correct form of your paper.
7638  
7639 \end_layout
7640
7641 \begin_layout Standard
7642 Please note that the publisher of the journal was changed from Springer
7643  to EDP Sciences starting January 1, 2001.
7644  That change involved also some slight changes to the style files, namely
7645  the removal of the thesaurus command.
7646  The \SpecialChar LyX
7647  class aa supports the newest version of these style files, V 5.01.
7648  If you have an older version installed, please upgrade.
7649  For compatibility, the old (version 4) layout has been kept as 
7650 \family sans
7651 article (A&A V4)
7652 \family default
7653 .
7654  Please refer to the comments in 
7655 \family typewriter
7656 \SpecialChar LyX
7657 Dir/layouts/aapaper.layout
7658 \family default
7659 .
7660 \end_layout
7661
7662 \begin_layout Subsection
7663 Getting started
7664 \end_layout
7665
7666 \begin_layout Standard
7667 It is recommended you start from the example template distributed with \SpecialChar LyX
7668 .
7669  If you are not using a template, note the following settings:
7670 \end_layout
7671
7672 \begin_layout Itemize
7673 Select 
7674 \family sans
7675 article (A&A)
7676 \family default
7677  in the 
7678 \family sans
7679 Document\SpecialChar menuseparator
7680 Settings
7681 \family default
7682  dialog (OK, that one was obvious).
7683 \end_layout
7684
7685 \begin_layout Itemize
7686 Don't change the option 
7687 \family sans
7688 Page
7689 \begin_inset space ~
7690 \end_inset
7691
7692 style
7693 \family default
7694 : Leave it set to 
7695 \family sans
7696 default
7697 \family default
7698 .
7699  The whole layout is done by the macros, you shouldn't change anything.
7700 \end_layout
7701
7702 \begin_layout Subsection
7703 The header block
7704 \end_layout
7705
7706 \begin_layout Standard
7707 First thing to enter is the header information.
7708  It consists of seven entries, of which some are optional.
7709  They are
7710 \end_layout
7711
7712 \begin_layout Itemize
7713
7714 \family sans
7715 Title
7716 \family default
7717 : [required] 
7718 \end_layout
7719
7720 \begin_layout Itemize
7721
7722 \family sans
7723 Subtitle
7724 \family default
7725 : [optional] 
7726 \end_layout
7727
7728 \begin_layout Itemize
7729
7730 \family sans
7731 Author
7732 \family default
7733 : [required]
7734 \end_layout
7735
7736 \begin_layout Itemize
7737
7738 \family sans
7739 Address
7740 \family default
7741 : [required]
7742 \end_layout
7743
7744 \begin_layout Itemize
7745
7746 \family sans
7747 Offprints
7748 \family default
7749 : [optional] if more than one author: whom to contact for offprint requests.
7750 \end_layout
7751
7752 \begin_layout Itemize
7753
7754 \family sans
7755 Mail
7756 \family default
7757 : [optional] mail address for contacts.
7758 \end_layout
7759
7760 \begin_layout Itemize
7761
7762 \family sans
7763 Date
7764 \family default
7765 : [required].
7766  Suggested format is 
7767 \family typewriter
7768 Received: <date>; Accepted <date> 
7769 \end_layout
7770
7771 \begin_layout Standard
7772 There is no need to issue the 
7773 \family typewriter
7774
7775 \backslash
7776 maketitle
7777 \family default
7778  command, this is done automatically by \SpecialChar LyX
7779  when the header is finished.
7780  Although the order of the single header entries doesn't matter it is advised
7781  to keep the above sequence, just to get the best optics and meets the layout
7782  of the real document.
7783 \end_layout
7784
7785 \begin_layout Standard
7786 If you want to place footnotes in the header block, e.
7787 \begin_inset space \thinspace{}
7788 \end_inset
7789
7790 g.
7791 \begin_inset space \space{}
7792 \end_inset
7793
7794 to state your present address, just use the standard footnote via the menu
7795  
7796 \family sans
7797 Insert\SpecialChar menuseparator
7798 Footnote.
7799
7800 \family default
7801  \SpecialChar LyX
7802  will automagically use the term 
7803 \family typewriter
7804
7805 \backslash
7806 thanks{}
7807 \family default
7808  in that case.
7809 \end_layout
7810
7811 \begin_layout Standard
7812 In addition to these topics, the macros use three additional \SpecialChar LaTeX
7813  commands that
7814  have no counterpart in \SpecialChar LyX
7815 :
7816 \end_layout
7817
7818 \begin_layout Itemize
7819
7820 \family typewriter
7821
7822 \backslash
7823 and
7824 \family default
7825  to separate different names for more than one author and institute, respectivel
7826 y.
7827 \end_layout
7828
7829 \begin_layout Itemize
7830
7831 \family typewriter
7832
7833 \backslash
7834 inst{<nr>}
7835 \family default
7836 to mark corresponding author/institute pairs.
7837  The institutes are numbered sequentially as they appear in the 
7838 \family sans
7839 Address
7840 \family default
7841  field, so you have to put a marker to each author.
7842 \end_layout
7843
7844 \begin_layout Itemize
7845
7846 \family typewriter
7847
7848 \backslash
7849 email{address}
7850 \family default
7851  to supply an email address for fast contact.
7852 \end_layout
7853
7854 \begin_layout Standard
7855 In all cases, the appropriate command has to be entered in \SpecialChar LyX
7856  and marked as
7857  \SpecialChar LaTeX
7858  code.
7859  See the examples.
7860  
7861 \end_layout
7862
7863 \begin_layout Subsection
7864 The abstract
7865 \end_layout
7866
7867 \begin_layout Standard
7868 The abstract should immediately follow the header block.
7869  With version 5 the abstract environment was changed to a command, and there
7870  is now a resctriction to only one paragraph.
7871  In addition, it should contain an entry with the keywords.
7872  This is not yet implemented for \SpecialChar LyX
7873 , therefore you have to enter the \SpecialChar LaTeX
7874  command
7875  
7876 \family typewriter
7877
7878 \backslash
7879 keywords{}
7880 \family default
7881  by hand and mark it as \SpecialChar LaTeX
7882  code.
7883  Refer to the example paper.
7884 \end_layout
7885
7886 \begin_layout Subsection
7887 Supported environments
7888 \end_layout
7889
7890 \begin_layout Standard
7891 The A&A paper layout supports the following environments for structuring
7892  your text:
7893 \end_layout
7894
7895 \begin_layout Itemize
7896
7897 \family sans
7898 Standard
7899 \end_layout
7900
7901 \begin_layout Itemize
7902
7903 \family sans
7904 Section
7905 \end_layout
7906
7907 \begin_layout Itemize
7908
7909 \family sans
7910 Subsection
7911 \end_layout
7912
7913 \begin_layout Itemize
7914
7915 \family sans
7916 Subsubsection
7917 \end_layout
7918
7919 \begin_layout Itemize
7920
7921 \family sans
7922 Itemize
7923 \end_layout
7924
7925 \begin_layout Itemize
7926
7927 \family sans
7928 Enumerate
7929 \end_layout
7930
7931 \begin_layout Itemize
7932
7933 \family sans
7934 Description
7935 \end_layout
7936
7937 \begin_layout Itemize
7938
7939 \family sans
7940 Caption
7941 \end_layout
7942
7943 \begin_layout Itemize
7944
7945 \family sans
7946 Abstract
7947 \end_layout
7948
7949 \begin_layout Itemize
7950
7951 \family sans
7952 Acknowledgment
7953 \end_layout
7954
7955 \begin_layout Itemize
7956
7957 \family sans
7958 Bibliography
7959 \end_layout
7960
7961 \begin_layout Itemize
7962
7963 \family sans
7964 \SpecialChar LaTeX
7965
7966 \end_layout
7967
7968 \begin_layout Subsection
7969 Commands not supported by \SpecialChar LyX
7970
7971 \end_layout
7972
7973 \begin_layout Standard
7974 Some commands are not yet supported by the 
7975 \family sans
7976 paper (A&A)
7977 \family default
7978  layout for \SpecialChar LyX
7979 .
7980  Some have already been mentioned.
7981  For the sake of completeness, they are listed all together here:
7982 \end_layout
7983
7984 \begin_layout Itemize
7985
7986 \family typewriter
7987
7988 \backslash
7989 and
7990 \end_layout
7991
7992 \begin_layout Itemize
7993
7994 \family typewriter
7995
7996 \backslash
7997 email
7998 \end_layout
7999
8000 \begin_layout Itemize
8001
8002 \family typewriter
8003
8004 \backslash
8005 appendix
8006 \end_layout
8007
8008 \begin_layout Itemize
8009
8010 \family typewriter
8011
8012 \backslash
8013 authorrunning
8014 \end_layout
8015
8016 \begin_layout Itemize
8017
8018 \family typewriter
8019
8020 \backslash
8021 inst{}
8022 \end_layout
8023
8024 \begin_layout Itemize
8025
8026 \family typewriter
8027
8028 \backslash
8029 keywords{}
8030 \end_layout
8031
8032 \begin_layout Itemize
8033
8034 \family typewriter
8035
8036 \backslash
8037 object{}
8038 \end_layout
8039
8040 \begin_layout Itemize
8041
8042 \family typewriter
8043
8044 \backslash
8045 titlerunning{}
8046 \end_layout
8047
8048 \begin_layout Standard
8049 If you want to use any of these commands, you have to enter them yourself.
8050  
8051 \series bold
8052 Do not forget to mark them as \SpecialChar LaTeX
8053  code!
8054 \end_layout
8055
8056 \begin_layout Subsection
8057 Figure and Table Floats
8058 \end_layout
8059
8060 \begin_layout Standard
8061 \SpecialChar LyX
8062  provides support for the necessary float environments 
8063 \family sans
8064 figure, figure*, table
8065 \family default
8066  and 
8067 \family sans
8068 table*
8069 \family default
8070 , therefore we won't tell much about it here.
8071  Refer to the 
8072 \emph on
8073 User's
8074 \begin_inset space ~
8075 \end_inset
8076
8077 Guide
8078 \emph default
8079 .
8080  Just remember that tables should be left-aligned.
8081  For that, select the table and change the alignment in 
8082 \family sans
8083 Edit\SpecialChar menuseparator
8084 Paragraph
8085 \begin_inset space ~
8086 \end_inset
8087
8088 Settings.
8089 \end_layout
8090
8091 \begin_layout Standard
8092 There is only one special thing: the figures with caption besides the figure.
8093  To create such a figure, you have to do the following:
8094 \end_layout
8095
8096 \begin_layout Enumerate
8097 Create a wide figure float: 
8098 \family sans
8099 Insert\SpecialChar menuseparator
8100 Float\SpecialChar menuseparator
8101 Figure
8102 \family default
8103 , then right click in the figure and select 
8104 \family sans
8105 Span
8106 \begin_inset space ~
8107 \end_inset
8108
8109 columns
8110 \family default
8111 .
8112 \end_layout
8113
8114 \begin_layout Enumerate
8115 Enter your caption text.
8116 \end_layout
8117
8118 \begin_layout Enumerate
8119 Press 
8120 \family sans
8121 Return
8122 \family default
8123  to move the cursor above the caption.
8124 \end_layout
8125
8126 \begin_layout Enumerate
8127 Insert your figure
8128 \end_layout
8129
8130 \begin_layout Enumerate
8131 Position the cursor behind the figure and insert a horizontal fill: 
8132 \family sans
8133 Insert\SpecialChar menuseparator
8134 Special
8135 \begin_inset space ~
8136 \end_inset
8137
8138 Character\SpecialChar menuseparator
8139 Horizontal
8140 \begin_inset space ~
8141 \end_inset
8142
8143 Fill
8144 \family default
8145 .
8146 \end_layout
8147
8148 \begin_layout Enumerate
8149 Switch to \SpecialChar LaTeX
8150  mode: 
8151 \family sans
8152 M-c
8153 \begin_inset space ~
8154 \end_inset
8155
8156 t
8157 \family default
8158 .
8159 \end_layout
8160
8161 \begin_layout Enumerate
8162 Enter 
8163 \family typewriter
8164
8165 \backslash
8166 parbox[b]{55mm}{
8167 \family default
8168 .
8169  
8170 \series bold
8171 Do not close the brace!
8172 \end_layout
8173
8174 \begin_layout Enumerate
8175 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8176  mode and insert
8177  the closing brace: 
8178 \family sans
8179 M-c
8180 \begin_inset space ~
8181 \end_inset
8182
8183 t
8184 \family default
8185  
8186 \family typewriter
8187 }
8188 \family default
8189 .
8190 \end_layout
8191
8192 \begin_layout Standard
8193 Also, refer to the figures in the example paper.
8194 \end_layout
8195
8196 \begin_layout Subsection
8197 Referee layout
8198 \end_layout
8199
8200 \begin_layout Standard
8201 For submission, the paper has to be formated in a special double-spacing
8202  layout.
8203  For this purpose, you have to give the option 
8204 \family typewriter
8205 referee
8206 \family default
8207  to the documentclass.
8208  This must be done using the extra class options field in the 
8209 \family sans
8210 Document\SpecialChar menuseparator
8211 Settings
8212 \family default
8213  dialog.
8214  Just enter the string 
8215 \family typewriter
8216 referee
8217 \family default
8218  there.
8219 \end_layout
8220
8221 \begin_layout Subsection
8222 The example paper
8223 \end_layout
8224
8225 \begin_layout Standard
8226 The 
8227 \family sans
8228 Examples
8229 \family default
8230  directory contains an example paper written with \SpecialChar LyX
8231 .
8232  It is the example paper from the original macro package, translated to
8233  \SpecialChar LyX
8234 .
8235  Use it for inspiration, and compare the original \SpecialChar LaTeX
8236  code with \SpecialChar LyX
8237  way of writing.
8238 \end_layout
8239
8240 \begin_layout Section
8241 AAS\SpecialChar TeX
8242
8243 \end_layout
8244
8245 \begin_layout Standard
8246 by 
8247 \noun on
8248 Mike Ressler
8249 \end_layout
8250
8251 \begin_layout Subsection
8252 Introduction
8253 \end_layout
8254
8255 \begin_layout Standard
8256 AAS\SpecialChar TeX
8257  is a set of macros produced by the American Astronomical Society to
8258  facilitate electronic manuscript submission to the three journals they
8259  publish: the Astrophysical Journal (including the Letters and Supplement),
8260  the Astronomical Journal, and the Publications of the Astronomical Society
8261  of the Pacific.
8262  \SpecialChar LyX
8263  has proven to be an excellent tool for generating these documents, especially
8264  given its equation, citation, and figure handling capabilities.
8265  \SpecialChar LyX
8266  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8267  is the version described here, or higher.
8268  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8269 2.09 and are fundamentally
8270  incompatible with \SpecialChar LyX
8271 .
8272  The AAS\SpecialChar TeX
8273  package may be downloaded from the AAS\SpecialChar TeX
8274  Web site
8275 \end_layout
8276
8277 \begin_layout Standard
8278 \begin_inset VSpace medskip
8279 \end_inset
8280
8281
8282 \end_layout
8283
8284 \begin_layout Standard
8285 \align center
8286 \begin_inset Flex URL
8287 status collapsed
8288
8289 \begin_layout Plain Layout
8290
8291 https://aas.org/aastex/aastex-downloads
8292 \end_layout
8293
8294 \end_inset
8295
8296
8297 \end_layout
8298
8299 \begin_layout Standard
8300 \begin_inset VSpace medskip
8301 \end_inset
8302
8303
8304 \end_layout
8305
8306 \begin_layout Standard
8307 A complete user guide is contained in that package and you should familiarize
8308  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8309 .
8310  \SpecialChar LyX
8311  will not reduce the need to figure out all the AAS\SpecialChar TeX
8312  commands, it will only
8313  reduce the drudgery of typing everything in.
8314  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8315  document conforms
8316  completely to the requirements of the journal to which you are submitting
8317  your paper.
8318 \end_layout
8319
8320 \begin_layout Subsection
8321 Starting a New Paper
8322 \end_layout
8323
8324 \begin_layout Standard
8325 I strongly suggest that you start with the AAS\SpecialChar TeX
8326  template file.
8327  Click on 
8328 \family sans
8329 File\SpecialChar menuseparator
8330 New from
8331 \family default
8332  
8333 \family sans
8334 Template
8335 \family default
8336 , enter the new file name, then choose the 
8337 \family typewriter
8338 aastex.lyx
8339 \family default
8340  template.
8341  This will show the most common fields found in a manuscript.
8342  Simply overwrite the existing text (including the brackets, 
8343 \family typewriter
8344 <>
8345 \family default
8346 ) with the correct information.
8347  Many of the AAS\SpecialChar TeX
8348  commands and environments can be implemented directly in
8349  \SpecialChar LyX
8350 , but some cannot: most noticeably 
8351 \family typewriter
8352
8353 \backslash
8354 altaffilmark
8355 \family default
8356  and 
8357 \family typewriter
8358
8359 \backslash
8360 altaffiltext
8361 \family default
8362 , which should stick out like a sore thumb if you actually just opened the
8363  template file.
8364  For commands such as these, the \SpecialChar LaTeX
8365  code must be entered directly and marked
8366  as such.
8367  Such commands are referred to as \SpecialChar TeX
8368  code, or Evil Red Text.
8369  I tried to minimize the amount of \SpecialChar TeX
8370  code needed in an AAS\SpecialChar TeX
8371  document, but
8372  there is still a bit more required than any of us would like.
8373 \end_layout
8374
8375 \begin_layout Subsection
8376 Finishing Your Paper
8377 \end_layout
8378
8379 \begin_layout Standard
8380 When the paper is finished to your satisfaction and previews/prints correctly,
8381  there are a few 
8382 \begin_inset Quotes eld
8383 \end_inset
8384
8385 postprocessing
8386 \begin_inset Quotes erd
8387 \end_inset
8388
8389  actions which need to be done before you submit it to the journals.
8390  
8391 \end_layout
8392
8393 \begin_layout Enumerate
8394 Export your paper as a \SpecialChar LaTeX
8395  file (
8396 \family sans
8397 File\SpecialChar menuseparator
8398 Export\SpecialChar menuseparator
8399 \SpecialChar LaTeX
8400
8401 \family default
8402 ).
8403  
8404 \end_layout
8405
8406 \begin_layout Enumerate
8407 Edit the resulting 
8408 \family typewriter
8409 .tex
8410 \family default
8411  file with your favorite text editor
8412 \end_layout
8413
8414 \begin_deeper
8415 \begin_layout Enumerate
8416 remove the comment lines before the 
8417 \family typewriter
8418
8419 \backslash
8420 documentclass
8421 \family default
8422  command
8423 \end_layout
8424
8425 \begin_layout Enumerate
8426 remove the 
8427 \family typewriter
8428
8429 \backslash
8430 usepackage...{fontenc}
8431 \family default
8432  line if it appears (usually just after 
8433 \family typewriter
8434
8435 \backslash
8436 documentclass
8437 \family default
8438 }; also remove the 
8439 \family typewriter
8440
8441 \backslash
8442 secnumdepth
8443 \family default
8444  line if it appears.
8445 \end_layout
8446
8447 \begin_layout Enumerate
8448 remove everything between (and including) the 
8449 \family typewriter
8450
8451 \backslash
8452 makeatletter
8453 \family default
8454  and 
8455 \family typewriter
8456
8457 \backslash
8458 makeatother
8459 \family default
8460  commands, except for any commands you specifically put into the \SpecialChar LaTeX
8461  preamble
8462  (which should appear immediately after the 
8463 \begin_inset Quotes eld
8464 \end_inset
8465
8466 User specified \SpecialChar LaTeX
8467  commands
8468 \begin_inset Quotes erd
8469 \end_inset
8470
8471  comment in the 
8472 \family typewriter
8473 .tex
8474 \family default
8475  file).
8476 \end_layout
8477
8478 \end_deeper
8479 \begin_layout Enumerate
8480 Run the resulting file through \SpecialChar LaTeX
8481  to make sure it still processes correctly.
8482 \end_layout
8483
8484 \begin_layout Enumerate
8485 Reread the journal requirements to make sure your filenames and formats
8486  are correct.
8487 \end_layout
8488
8489 \begin_layout Enumerate
8490 Submit it.
8491 \end_layout
8492
8493 \begin_layout Subsection
8494 Comments On Specific Commands
8495 \end_layout
8496
8497 \begin_layout Standard
8498 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
8499  commands: the
8500  AAS\SpecialChar TeX
8501  User Guide (
8502 \family typewriter
8503 aasguide.tex
8504 \family default
8505 ) gives a good description of each.
8506  Thus it's probably easiest for me to go down the list as found in the guide
8507  and offer comments where necessary.
8508  So let's begin \SpecialChar ldots
8509
8510 \end_layout
8511
8512 \begin_layout Subsubsection
8513 Things that work as expected
8514 \end_layout
8515
8516 \begin_layout Standard
8517 Because they work as you might expect, I simply list them and the section
8518  they are found in: 
8519 \family typewriter
8520
8521 \backslash
8522 documentclass
8523 \family default
8524  (2.1.1), 
8525 \family typewriter
8526
8527 \backslash
8528 begin{document}
8529 \family default
8530  (2.2), 
8531 \family typewriter
8532
8533 \backslash
8534 title
8535 \family default
8536  (2.3), 
8537 \family typewriter
8538
8539 \backslash
8540 author
8541 \family default
8542  (2.3), 
8543 \family typewriter
8544
8545 \backslash
8546 affil
8547 \family default
8548  (2.3), 
8549 \family typewriter
8550
8551 \backslash
8552 abstract
8553 \family default
8554  (2.4), 
8555 \family typewriter
8556
8557 \backslash
8558 keywords
8559 \family default
8560  (2.5), 
8561 \family typewriter
8562
8563 \backslash
8564 section
8565 \family default
8566  (2.7), 
8567 \family typewriter
8568
8569 \backslash
8570 subsection
8571 \family default
8572  (2.7), 
8573 \family typewriter
8574
8575 \backslash
8576 subsubsection
8577 \family default
8578  (2.7), 
8579 \family typewriter
8580
8581 \backslash
8582 paragraph
8583 \family default
8584  (2.7), 
8585 \family typewriter
8586
8587 \backslash
8588 facility
8589 \family default
8590  (2.10), 
8591 \family typewriter
8592
8593 \backslash
8594 begin{displaymath}
8595 \family default
8596  (2.12), 
8597 \family typewriter
8598
8599 \backslash
8600 begin{equation}
8601 \family default
8602  (2.12), 
8603 \family typewriter
8604
8605 \backslash
8606 begin{eqnarray}
8607 \family default
8608  (2.12), 
8609 \family typewriter
8610
8611 \backslash
8612 begin{mathletters}
8613 \family default
8614  (2.12), 
8615 \family typewriter
8616
8617 \backslash
8618 begin{thebibliography}
8619 \family default
8620  (2.13.1), 
8621 \family typewriter
8622
8623 \backslash
8624 bibitem
8625 \family default
8626  (2.13.2), all the cite commands and their variations (2.13.2), the generic
8627  graphicx figure commands (2.14.1), 
8628 \family typewriter
8629
8630 \backslash
8631 begin{table}
8632 \family default
8633  (2.15.4), 
8634 \family typewriter
8635
8636 \backslash
8637 begin{tabular}
8638 \family default
8639  (2.15.4), 
8640 \family typewriter
8641
8642 \backslash
8643 caption
8644 \family default
8645  (2.15.4), 
8646 \family typewriter
8647
8648 \backslash
8649 label
8650 \family default
8651  (2.15.4, amongst other places), 
8652 \family typewriter
8653
8654 \backslash
8655 tablerefs
8656 \family default
8657  (2.15.5), 
8658 \family typewriter
8659
8660 \backslash
8661 tablecomments
8662 \family default
8663  (2.15.5), 
8664 \family typewriter
8665
8666 \backslash
8667 url
8668 \family default
8669  (2.17.4), 
8670 \family typewriter
8671
8672 \backslash
8673 end{document}
8674 \family default
8675  (2.18).
8676 \end_layout
8677
8678 \begin_layout Standard
8679 The following style options also work correctly: 
8680 \family typewriter
8681 longabstract
8682 \family default
8683  (2.4), 
8684 \family typewriter
8685 preprint
8686 \family default
8687  (3.2.1), 
8688 \family typewriter
8689 preprint2
8690 \family default
8691  (3.2.2), 
8692 \family typewriter
8693 eqsecnum
8694 \family default
8695  (3.3), 
8696 \family typewriter
8697 flushrt
8698 \family default
8699  (3.4).
8700  Simply put them in the 
8701 \family sans
8702 Options
8703 \family default
8704  box in 
8705 \family sans
8706 Layout\SpecialChar menuseparator
8707 Document
8708 \family default
8709 .
8710 \end_layout
8711
8712 \begin_layout Subsubsection
8713 Things that work, but require more comment
8714 \end_layout
8715
8716 \begin_layout Standard
8717 The following items work, but require a little more discussion:
8718 \end_layout
8719
8720 \begin_layout Itemize
8721 These items are reserved for use by the journal editors, but you can put
8722  them into the \SpecialChar LaTeX
8723  preamble if you feel compelled to do so: 
8724 \family typewriter
8725
8726 \backslash
8727 received
8728 \family default
8729
8730 \family typewriter
8731
8732 \backslash
8733 revised
8734 \family default
8735
8736 \family typewriter
8737
8738 \backslash
8739 accepted
8740 \family default
8741
8742 \family typewriter
8743
8744 \backslash
8745 ccc
8746 \family default
8747
8748 \family typewriter
8749
8750 \backslash
8751 cpright
8752 \family default
8753  (all from 2.1.3)
8754 \end_layout
8755
8756 \begin_layout Itemize
8757 These items may be placed in the \SpecialChar LaTeX
8758  preamble, and are included as blanks in
8759  the template file: 
8760 \family typewriter
8761
8762 \backslash
8763 slugcomment
8764 \family default
8765  (2.1.4), 
8766 \family typewriter
8767
8768 \backslash
8769 shorttitle
8770 \family default
8771  (2.1.5), 
8772 \family typewriter
8773
8774 \backslash
8775 shortauthors
8776 \family default
8777  (2.1.5)
8778 \end_layout
8779
8780 \begin_layout Itemize
8781
8782 \family typewriter
8783
8784 \backslash
8785 email
8786 \family default
8787  (2.3) – can only be used 
8788 \begin_inset Quotes eld
8789 \end_inset
8790
8791 standalone
8792 \begin_inset Quotes erd
8793 \end_inset
8794
8795 , not in the middle of a paragraph.
8796  Use \SpecialChar TeX
8797  code if you need to embed it.
8798 \end_layout
8799
8800 \begin_layout Itemize
8801
8802 \family typewriter
8803
8804 \backslash
8805 and
8806 \family default
8807  (2.3) – will have extra {} after it.
8808  This should not cause an error.
8809 \end_layout
8810
8811 \begin_layout Itemize
8812
8813 \family typewriter
8814
8815 \backslash
8816 notetoeditor
8817 \family default
8818  (2.6) – can only be used 
8819 \begin_inset Quotes eld
8820 \end_inset
8821
8822 standalone
8823 \begin_inset Quotes erd
8824 \end_inset
8825
8826 , not in the middle of a paragraph.
8827  Use \SpecialChar TeX
8828  code if you need to embed it.
8829 \end_layout
8830
8831 \begin_layout Itemize
8832
8833 \family typewriter
8834
8835 \backslash
8836 placetable
8837 \family default
8838  (2.8) – can't insert a cross-reference tag, you must type the tag name by
8839  hand
8840 \end_layout
8841
8842 \begin_layout Itemize
8843
8844 \family typewriter
8845
8846 \backslash
8847 placefigure
8848 \family default
8849  (2.8) – same as for 
8850 \family typewriter
8851
8852 \backslash
8853 placetable
8854 \end_layout
8855
8856 \begin_layout Itemize
8857
8858 \family typewriter
8859
8860 \backslash
8861 acknowledgements
8862 \family default
8863  (2.9) – will have extra {} after it.
8864  This should not cause an error.
8865 \end_layout
8866
8867 \begin_layout Itemize
8868
8869 \family typewriter
8870
8871 \backslash
8872 appendix
8873 \family default
8874  (2.11) – will have extra {} after it.
8875  This should not cause an error.
8876 \end_layout
8877
8878 \begin_layout Itemize
8879
8880 \family typewriter
8881
8882 \backslash
8883 figcaption
8884 \family default
8885  (2.14.2) – you can insert an optional filename argument by placing the cursor
8886  at the beginning of the text and selecting 
8887 \family sans
8888 Insert\SpecialChar menuseparator
8889 Short Title
8890 \family default
8891 .
8892  
8893 \begin_inset Quotes eld
8894 \end_inset
8895
8896 Short Title
8897 \begin_inset Quotes erd
8898 \end_inset
8899
8900  inserts an optional argument of the type needed by 
8901 \family typewriter
8902
8903 \backslash
8904 figcaption
8905 \family default
8906 .
8907  Hopefully it will be renamed someday.
8908 \end_layout
8909
8910 \begin_layout Itemize
8911
8912 \family typewriter
8913
8914 \backslash
8915 objectname
8916 \family default
8917  (2.17.1) – same as 
8918 \family typewriter
8919
8920 \backslash
8921 figcaption
8922 \family default
8923  for the catalog ID optional parameter
8924 \end_layout
8925
8926 \begin_layout Itemize
8927
8928 \family typewriter
8929
8930 \backslash
8931 dataset
8932 \family default
8933  (2.17.1) – same as 
8934 \family typewriter
8935
8936 \backslash
8937 figcaption
8938 \family default
8939  for the catalog ID optional parameter
8940 \end_layout
8941
8942 \begin_layout Subsubsection
8943 Things not implemented, use \SpecialChar TeX
8944  code
8945 \end_layout
8946
8947 \begin_layout Standard
8948
8949 \family typewriter
8950
8951 \backslash
8952 altaffilmark
8953 \family default
8954  (2.3), 
8955 \family typewriter
8956
8957 \backslash
8958 altaffiltext
8959 \family default
8960  (2.3), 
8961 \family typewriter
8962
8963 \backslash
8964 eqnum
8965 \family default
8966  (2.12), 
8967 \family typewriter
8968
8969 \backslash
8970 setcounter{equation}
8971 \family default
8972  (2.12), Journal name abbreviations (2.13.4), 
8973 \family typewriter
8974
8975 \backslash
8976 figurenum
8977 \family default
8978  (2.14.1), 
8979 \family typewriter
8980
8981 \backslash
8982 epsscale
8983 \family default
8984  (2.14.1), 
8985 \family typewriter
8986
8987 \backslash
8988 plotone
8989 \family default
8990  (2.14.1), 
8991 \family typewriter
8992
8993 \backslash
8994 plottwo
8995 \family default
8996  (2.14.1), 
8997 \family typewriter
8998
8999 \backslash
9000 tablenum
9001 \family default
9002  (2.15.4), 
9003 \family typewriter
9004
9005 \backslash
9006 tableline
9007 \family default
9008  (2.15.4, insert it as the first element in the lefthand cell after where
9009  you want it.
9010  Don't use any of \SpecialChar LyX
9011 's rules in the table), 
9012 \family typewriter
9013
9014 \backslash
9015 tablenotemark
9016 \family default
9017  (2.15.5), 
9018 \family typewriter
9019
9020 \backslash
9021 tablenotetext
9022 \family default
9023  (2.15.5), much of Misc (2.17, except 
9024 \family typewriter
9025
9026 \backslash
9027 objectname
9028 \family default
9029
9030 \family typewriter
9031
9032 \backslash
9033 dataset
9034 \family default
9035
9036 \family typewriter
9037
9038 \backslash
9039 url
9040 \family default
9041 , and 
9042 \family typewriter
9043
9044 \backslash
9045 email
9046 \family default
9047 ; see above), 
9048 \family typewriter
9049
9050 \backslash
9051 singlespace
9052 \family default
9053  (3.1), 
9054 \family typewriter
9055
9056 \backslash
9057 doublespace
9058 \family default
9059  (3.1), 
9060 \family typewriter
9061
9062 \backslash
9063 onecolumn
9064 \family default
9065  (3.2), 
9066 \family typewriter
9067
9068 \backslash
9069 twocolumn
9070 \family default
9071  (3.2)
9072 \end_layout
9073
9074 \begin_layout Subsubsection
9075 Things that cannot be implemented
9076 \end_layout
9077
9078 \begin_layout Standard
9079 \SpecialChar ldots
9080  at least in any meaningful sort of way, so I suggest ignoring them.
9081  They are the references environment (2.13.3), and the deluxetable environment
9082  (2.15).
9083  If you really, really need to use deluxetable, I suggest editing it in
9084  a separate file with a text editor, then using 
9085 \family sans
9086 Insert\SpecialChar menuseparator
9087 Child
9088 \begin_inset space ~
9089 \end_inset
9090
9091 Document
9092 \family default
9093  to include it in your \SpecialChar LyX
9094  document.
9095  See the 
9096 \family typewriter
9097 aas_sample.lyx
9098 \family default
9099  file to see an example of this.
9100 \end_layout
9101
9102 \begin_layout Subsection
9103 FAQs, Tips, Tricks, and Other Ruminations
9104 \end_layout
9105
9106 \begin_layout Subsubsection
9107 Getting \SpecialChar LyX
9108  and AAS\SpecialChar TeX
9109  to cooperate
9110 \end_layout
9111
9112 \begin_layout Standard
9113 It can be a bit tricky to get \SpecialChar LyX
9114  to recognize a new layout and document class.
9115  When all else fails, do this:
9116 \end_layout
9117
9118 \begin_layout Enumerate
9119 Make certain that \SpecialChar LaTeX
9120  can find AAS\SpecialChar TeX
9121 .
9122  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9123  distribution into a
9124  directory completely unrelated to \SpecialChar LaTeX
9125  or AAS\SpecialChar TeX
9126  and run \SpecialChar LaTeX
9127  on 
9128 \family typewriter
9129 sample.tex
9130 \family default
9131 .
9132 \end_layout
9133
9134 \begin_layout Enumerate
9135 Make certain that 
9136 \family typewriter
9137 aastex.layout
9138 \family default
9139  appears in \SpecialChar LyX
9140 's 
9141 \family typewriter
9142 layouts
9143 \family default
9144  folder
9145 \end_layout
9146
9147 \begin_layout Enumerate
9148 Rerun 
9149 \family sans
9150 Tools\SpecialChar menuseparator
9151 Reconfigure
9152 \family default
9153  in \SpecialChar LyX
9154 , then restart \SpecialChar LyX
9155 .
9156 \end_layout
9157
9158 \begin_layout Enumerate
9159 Open a regular new file, not from a template.
9160  Does AAS\SpecialChar TeX
9161  appear in the class list in 
9162 \family sans
9163 Document\SpecialChar menuseparator
9164 Settings
9165 \family default
9166 ?
9167 \end_layout
9168
9169 \begin_layout Standard
9170 If you get a warning from an existing AAS\SpecialChar TeX
9171  document about not being able
9172  to find the AAS\SpecialChar TeX
9173  layout or a message about 
9174 \begin_inset Quotes eld
9175 \end_inset
9176
9177 You should not mix title layouts with normal ones
9178 \begin_inset Quotes erd
9179 \end_inset
9180
9181 , things haven't been installed correctly.
9182 \end_layout
9183
9184 \begin_layout Subsubsection
9185 \SpecialChar LaTeX
9186  error processing a table 
9187 \end_layout
9188
9189 \begin_layout Standard
9190 \SpecialChar LyX
9191 , by default, attempts to center the table caption/title.
9192  This seems to produce a bad interaction in AAS\SpecialChar TeX
9193  so you should click somewhere
9194  in the caption/title, then select 
9195 \family sans
9196 Edit\SpecialChar menuseparator
9197 Paragraph
9198 \begin_inset space ~
9199 \end_inset
9200
9201 Settings
9202 \family default
9203 , then set the 
9204 \family sans
9205 Alignment
9206 \family default
9207  to 
9208 \family sans
9209 Block
9210 \family default
9211 .
9212  This took care of it for me.
9213 \end_layout
9214
9215 \begin_layout Subsubsection
9216 References
9217 \end_layout
9218
9219 \begin_layout Standard
9220 A couple of things: 1) I have noticed some funny spacing in the reference
9221  entries in the text.
9222  When you enter the bibliography item data, make sure their is 
9223 \emph on
9224 no
9225 \emph default
9226  space between the last author and the parenthesis setting off the year;
9227  
9228 \emph on
9229 e.
9230 \begin_inset space \thinspace{}
9231 \end_inset
9232
9233 g.
9234 \begin_inset space \space{}
9235 \end_inset
9236
9237
9238 \emph default
9239 type 
9240 \family typewriter
9241 Ressler(1992)
9242 \family default
9243 , not 
9244 \family typewriter
9245 Ressler (1992)
9246 \family default
9247 .
9248  2) Entering the references at all is not obvious.
9249  The easiest thing is to start typing your first reference at the end of
9250  the document, then mark it as type 
9251 \family sans
9252 References
9253 \family default
9254 .
9255  That will put a small gray box in front of what you just typed.
9256  Click on the box to fill in the rest of the information.
9257  For new references, go to the end of an existing reference and press return.
9258  That will create a new line with its own box, etc.
9259 \end_layout
9260
9261 \begin_layout Subsubsection
9262 Including EPS files
9263 \end_layout
9264
9265 \begin_layout Standard
9266 Even though AAS\SpecialChar TeX
9267  provides its own figure commands (
9268 \family typewriter
9269
9270 \backslash
9271 plotone
9272 \family default
9273 , for example), I much prefer \SpecialChar LaTeX
9274 's standard figure commands (with the default
9275  graphicx).
9276  You can insert the 
9277 \family typewriter
9278
9279 \backslash
9280 plotone
9281 \family default
9282 , etc.
9283 \begin_inset space ~
9284 \end_inset
9285
9286 commands as \SpecialChar TeX
9287  code into a Figure Float box if you desire, but I never have
9288  much luck getting the layout right.
9289  With the standard graphics, \SpecialChar LyX
9290  will insert a 
9291 \family typewriter
9292
9293 \backslash
9294 usepackage{graphicx}
9295 \family default
9296  command into the \SpecialChar LaTeX
9297  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9298  way,
9299  interspersing the figures in the text.
9300  I believe ApJ accepts figures exactly this way now; AJ might still use
9301  the 
9302 \begin_inset Quotes eld
9303 \end_inset
9304
9305 stack everything at the end
9306 \begin_inset Quotes erd
9307 \end_inset
9308
9309  technique.
9310 \end_layout
9311
9312 \begin_layout Subsubsection
9313 Things I could have done, but didn't
9314 \end_layout
9315
9316 \begin_layout Standard
9317 There are a few 
9318 \begin_inset Quotes eld
9319 \end_inset
9320
9321 pretty
9322 \begin_inset Quotes erd
9323 \end_inset
9324
9325  things I could have implemented, but chose not to.
9326  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9327  window,
9328  even though it is double-spaced in the paper manuscript.
9329  Also, I chose not to make separate layouts for the preprint and preprint2
9330  styles.
9331  Since I assume you will spend most of your time in the plain manuscript
9332  mode anyway, I decided not to chew up more disk space with this.
9333  
9334 \end_layout
9335
9336 \begin_layout Subsection
9337 Final Caveat
9338 \end_layout
9339
9340 \begin_layout Standard
9341 Your mileage may vary.
9342  I've now had papers published by both ApJ and AJ that have had 98% of the
9343  effort done in \SpecialChar LyX
9344 ; the last 2% was the \SpecialChar LaTeX
9345  post-processing and a few cleanups.
9346  I have had no trouble with the submission process, and I'm sure the journals
9347  were never aware that there might be a difference.
9348  So, go forth and publish!
9349 \end_layout
9350
9351 \begin_layout Section
9352 AMS \SpecialChar LaTeX
9353
9354 \end_layout
9355
9356 \begin_layout Standard
9357 by 
9358 \noun on
9359 David Johnson
9360 \noun default
9361 ; updated by 
9362 \noun on
9363 Richard Heck
9364 \end_layout
9365
9366 \begin_layout Standard
9367 \begin_inset VSpace bigskip
9368 \end_inset
9369
9370
9371 \end_layout
9372
9373 \begin_layout Standard
9374 \noindent
9375 The AMS \SpecialChar LaTeX
9376  layouts are set up to conform to suggested styles for mathematical
9377  papers to be submitted to American Mathematical Society publications.
9378  The layouts are not tailored to a specific journal, but easily can be.
9379  You should refer to the AMS documentation for specific instructions for
9380  each journal (usually it will entail only changing a single line in the
9381  \SpecialChar TeX
9382  output).
9383  That documentation is available on the Web at 
9384 \begin_inset Flex URL
9385 status open
9386
9387 \begin_layout Plain Layout
9388
9389 http://www.ams.org
9390 \end_layout
9391
9392 \end_inset
9393
9394  or by ftp at 
9395 \begin_inset Flex URL
9396 status open
9397
9398 \begin_layout Plain Layout
9399
9400 ftp://ftp.ams.org/pub/tex/amslatex/
9401 \end_layout
9402
9403 \end_inset
9404
9405 .
9406  These layouts are appropriate, and useful, for any mathematical writing.
9407  
9408 \end_layout
9409
9410 \begin_layout Standard
9411 There are two basic AMS \SpecialChar LaTeX
9412  layouts: 
9413 \end_layout
9414
9415 \begin_layout Itemize
9416 amsart: The standard AMS article format.
9417 \end_layout
9418
9419 \begin_layout Itemize
9420 amsbook: the standard AMS book (really, monograph) format.
9421  
9422 \end_layout
9423
9424 \begin_layout Standard
9425 The layouts themselves contain only the minimum necessary to use the AMS
9426  classes.
9427  They do not, in particular, contain any of the `theorem' environments used
9428  for setting theorems, lemmas, and the like.
9429  These are contained, instead, in the 
9430 \begin_inset Flex Code
9431 status collapsed
9432
9433 \begin_layout Plain Layout
9434 Theorems (AMS)
9435 \end_layout
9436
9437 \end_inset
9438
9439  module, which is loaded by default when you select one of the AMS classes.
9440  (It can also be used with other classes and can be removed, if you would
9441  rather use something else.) Less commonly used environments are in the 
9442 \begin_inset Flex Code
9443 status collapsed
9444
9445 \begin_layout Plain Layout
9446 Theorems (AMS-Extended)
9447 \end_layout
9448
9449 \end_inset
9450
9451  module, which must be loaded manually.
9452 \end_layout
9453
9454 \begin_layout Standard
9455 By default, theorems and the like are numbered consecutively throughout
9456  the document, but this may be modified by loading the module 
9457 \begin_inset Flex Code
9458 status collapsed
9459
9460 \begin_layout Plain Layout
9461 Theorems (Order by Section)
9462 \end_layout
9463
9464 \end_inset
9465
9466  or, if you are using 
9467 \begin_inset Flex Code
9468 status collapsed
9469
9470 \begin_layout Plain Layout
9471 book (AMS)
9472 \end_layout
9473
9474 \end_inset
9475
9476 , the module 
9477 \begin_inset Flex Code
9478 status collapsed
9479
9480 \begin_layout Plain Layout
9481 Theorems (Order by Chapter)
9482 \end_layout
9483
9484 \end_inset
9485
9486 .
9487  These will number the results as 
9488 \begin_inset Formula $n.m$
9489 \end_inset
9490
9491 , where the first number refers to the section (or chapter) and the second
9492  refers to the total number of results so far in that section (or chapter).
9493  Many environments are also available unnumbered.
9494  These are indicated by an asterisk at the end.
9495  If you happen to want 
9496 \emph on
9497 only
9498 \emph default
9499  unnumbered results, the module 
9500 \begin_inset Flex Code
9501 status collapsed
9502
9503 \begin_layout Plain Layout
9504 Theorems (Starred)
9505 \end_layout
9506
9507 \end_inset
9508
9509  provides that option.
9510 \end_layout
9511
9512 \begin_layout Standard
9513 Note that these modules do not 
9514 \emph on
9515 have
9516 \emph default
9517  to be used with the AMS classes.
9518  It is perfectly possible to use the 
9519 \begin_inset Flex Code
9520 status collapsed
9521
9522 \begin_layout Plain Layout
9523 Theorems (AMS)
9524 \end_layout
9525
9526 \end_inset
9527
9528  module, and the others mentioned, with other classes, such as 
9529 \begin_inset Flex Code
9530 status collapsed
9531
9532 \begin_layout Plain Layout
9533 article
9534 \end_layout
9535
9536 \end_inset
9537
9538
9539 \begin_inset Flex Code
9540 status collapsed
9541
9542 \begin_layout Plain Layout
9543 report
9544 \end_layout
9545
9546 \end_inset
9547
9548
9549 \begin_inset Flex Code
9550 status collapsed
9551
9552 \begin_layout Plain Layout
9553 book (KOMA-script)
9554 \end_layout
9555
9556 \end_inset
9557
9558 , and so forth.
9559 \end_layout
9560
9561 \begin_layout Subsection
9562 What these layouts provide
9563 \end_layout
9564
9565 \begin_layout Standard
9566 There is a long list of included environments provided by these layouts.
9567  In AMS-\SpecialChar LaTeX
9568 , there is, in fact, an opportunity to define an unlimited variety
9569  of `theorem' environments.
9570  However, the AMS recommends the environments that are available in \SpecialChar LyX
9571 .
9572  
9573 \end_layout
9574
9575 \begin_layout Standard
9576 The following environments—as well as the standard environments, such as
9577  
9578 \begin_inset Flex Noun
9579 status collapsed
9580
9581 \begin_layout Plain Layout
9582 section
9583 \end_layout
9584
9585 \end_inset
9586
9587
9588 \begin_inset Flex Noun
9589 status collapsed
9590
9591 \begin_layout Plain Layout
9592 bibliography
9593 \end_layout
9594
9595 \end_inset
9596
9597
9598 \begin_inset Flex Noun
9599 status collapsed
9600
9601 \begin_layout Plain Layout
9602 title
9603 \end_layout
9604
9605 \end_inset
9606
9607
9608 \begin_inset Flex Noun
9609 status collapsed
9610
9611 \begin_layout Plain Layout
9612 author
9613 \end_layout
9614
9615 \end_inset
9616
9617 , and 
9618 \begin_inset Flex Noun
9619 status collapsed
9620
9621 \begin_layout Plain Layout
9622 date
9623 \end_layout
9624
9625 \end_inset
9626
9627 —are provided by 
9628 \begin_inset Flex Code
9629 status collapsed
9630
9631 \begin_layout Plain Layout
9632 article (AMS)
9633 \end_layout
9634
9635 \end_inset
9636
9637  and 
9638 \begin_inset Flex Code
9639 status collapsed
9640
9641 \begin_layout Plain Layout
9642 book (AMS)
9643 \end_layout
9644
9645 \end_inset
9646
9647 :
9648 \end_layout
9649
9650 \begin_layout Description
9651 Address This should be the author's permanent address.
9652 \end_layout
9653
9654 \begin_layout Description
9655 Current
9656 \begin_inset space ~
9657 \end_inset
9658
9659 Address This should be the author's temporary address at the time of submission,
9660  if different from the Address.
9661 \end_layout
9662
9663 \begin_layout Description
9664 Email Author's e-mail address
9665 \end_layout
9666
9667 \begin_layout Description
9668 URL Author's Web address, if desired.
9669 \end_layout
9670
9671 \begin_layout Description
9672 Keywords Key words or phrases used to identify specific topics discussed
9673  in the paper.
9674 \end_layout
9675
9676 \begin_layout Description
9677 Subjectclass These refer to the AMS Subject Classifications, published and
9678  described in 
9679 \emph on
9680 Mathematical Reviews
9681 \emph default
9682 .
9683  These are also available online at the AMS cites listed above.
9684 \end_layout
9685
9686 \begin_layout Description
9687 Thanks
9688 \end_layout
9689
9690 \begin_layout Description
9691 Dedicatory
9692 \end_layout
9693
9694 \begin_layout Description
9695 Translator
9696 \end_layout
9697
9698 \begin_layout Standard
9699 The following environments are provided by both the 
9700 \begin_inset Flex Code
9701 status collapsed
9702
9703 \begin_layout Plain Layout
9704 Theorems
9705 \end_layout
9706
9707 \end_inset
9708
9709  and 
9710 \begin_inset Flex Code
9711 status collapsed
9712
9713 \begin_layout Plain Layout
9714 Theorems (AMS)
9715 \end_layout
9716
9717 \end_inset
9718
9719  modules, in the latter case in both starred (unnumbered) and unstarred
9720  (numbered) versions.
9721  These same environments are provided only in the starred versions by the
9722  
9723 \begin_inset Flex Code
9724 status collapsed
9725
9726 \begin_layout Plain Layout
9727 Theorems (Starred)
9728 \end_layout
9729
9730 \end_inset
9731
9732  module:
9733 \end_layout
9734
9735 \begin_layout Theorem
9736 This is typically used for the statements of major results.
9737  
9738 \end_layout
9739
9740 \begin_layout Corollary*
9741 This is used for statements which follow fairly directly from previous statement
9742 s.
9743  Again, these can be major results.
9744  
9745 \end_layout
9746
9747 \begin_layout Lemma
9748 These are smaller results needed to prove other statements.
9749 \end_layout
9750
9751 \begin_layout Proposition
9752 These are less major results which (hopefully) add to the general theory
9753  being discussed.
9754 \end_layout
9755
9756 \begin_layout Conjecture
9757 These are statements provided without justification, which the author does
9758  not know how to prove, but which seem to be true (to the author, at least).
9759 \end_layout
9760
9761 \begin_layout Definition*
9762 Guess what this is for.
9763  The font is different for this environment than for the previous ones.
9764  
9765 \end_layout
9766
9767 \begin_layout Example*
9768 Used for examples illustrating proven results.
9769 \end_layout
9770
9771 \begin_layout Problem
9772 It's not really known what this is for.
9773  You should figure it out.
9774 \end_layout
9775
9776 \begin_layout Exercise*
9777 Write a description for this one.
9778 \end_layout
9779
9780 \begin_layout Remark
9781 This environment is also a type of theorem, usually a lesser sort of observation.
9782 \end_layout
9783
9784 \begin_layout Claim*
9785 Often used in the course of giving a proof of a larger result.
9786 \end_layout
9787
9788 \begin_layout Case
9789 Generally, these are used to break up long arguments, using specific instances
9790  of some condition.
9791  
9792 \end_layout
9793
9794 \begin_layout Case
9795 The numbering scheme for cases is on its own, not together with other numbered
9796  statements.
9797  
9798 \end_layout
9799
9800 \begin_layout Proof
9801 At the end of this environment, a QED symbol (usually a square, but it can
9802  vary with different styles) is placed.
9803  If you want to have other environments within this one—for example, Case
9804  environments—and have the QED symbol appear only after them, then the other
9805  environments need to be nested within the proof environment.
9806  See the section 
9807 \emph on
9808 Nesting Environments
9809 \emph default
9810  of the 
9811 \emph on
9812 User's Guide
9813 \emph default
9814  for information on nesting.
9815 \end_layout
9816
9817 \begin_layout Standard
9818 And these environments are provided by 
9819 \begin_inset Flex Code
9820 status collapsed
9821
9822 \begin_layout Plain Layout
9823 Theorems (AMS-Extended)
9824 \end_layout
9825
9826 \end_inset
9827
9828 :
9829 \end_layout
9830
9831 \begin_layout Criterion*
9832 A required condition.
9833 \end_layout
9834
9835 \begin_layout Algorithm*
9836 A general procedure to be used.
9837 \end_layout
9838
9839 \begin_layout Axiom*
9840 This is a property or statement taken as true within the system being discussed.
9841 \end_layout
9842
9843 \begin_layout Condition*
9844 Sometimes used to state a condition assumed within the present context of
9845  discussion.
9846 \end_layout
9847
9848 \begin_layout Note*
9849 Similar to a Remark.
9850 \end_layout
9851
9852 \begin_layout Notation*
9853 Used for the explanation of, yes, notation.
9854 \end_layout
9855
9856 \begin_layout Summary
9857 Do we really need to tell you? 
9858 \end_layout
9859
9860 \begin_layout Acknowledgement*
9861 Acknowledgement.
9862 \end_layout
9863
9864 \begin_layout Conclusion*
9865 Sometimes used at the end of a long train of argument.
9866 \end_layout
9867
9868 \begin_layout Fact
9869 Used in a way similar to Proposition, though perhaps lower on the scale.
9870 \end_layout
9871
9872 \begin_layout Standard
9873 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
9874  and AMS fonts
9875  packages.
9876  They need to be available on your system in order to use these environments.
9877 \end_layout
9878
9879 \begin_layout Section
9880 AGU journals (
9881 \family sans
9882 aguplus
9883 \family default
9884 )
9885 \end_layout
9886
9887 \begin_layout Standard
9888 by 
9889 \shape smallcaps
9890 Martin Vermeer
9891 \end_layout
9892
9893 \begin_layout Subsection
9894 Description
9895 \end_layout
9896
9897 \begin_layout Standard
9898 These are the layout files for some of the journals of the American Geophysical
9899  Society.
9900  It is assumed that you have both the AGU's own class files and AGUplus
9901  installed (everything to be found at
9902 \begin_inset Flex URL
9903 status collapsed
9904
9905 \begin_layout Plain Layout
9906
9907 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
9908 \end_layout
9909
9910 \end_inset
9911
9912 ).
9913 \end_layout
9914
9915 \begin_layout Subsection
9916 New styles
9917 \end_layout
9918
9919 \begin_layout Standard
9920 Redefined are 
9921 \family sans
9922 Paragraph
9923 \family default
9924
9925 \family sans
9926 Paragraph*
9927 \family default
9928 .
9929  They are still called this in the \SpecialChar LyX
9930  GUI, though their \SpecialChar LaTeX
9931  equivalents in the
9932  AGU classes are 
9933 \family sans
9934 Subsubsubsection
9935 \family default
9936  and 
9937 \family sans
9938 Subsubsubsection*
9939 \family default
9940 .
9941 \end_layout
9942
9943 \begin_layout Standard
9944 Newly defined styles are 
9945 \family sans
9946 Left_Header
9947 \family default
9948
9949 \family sans
9950 Right_Header
9951 \family default
9952
9953 \family sans
9954 Received
9955 \family default
9956
9957 \family sans
9958 Revised
9959 \family default
9960
9961 \family sans
9962 Accepted
9963 \family default
9964
9965 \family sans
9966 CCC
9967 \family default
9968
9969 \family sans
9970 PaperId
9971 \family default
9972
9973 \family sans
9974 AuthorAddr
9975 \family default
9976
9977 \family sans
9978 SlugComment
9979 \family default
9980 .
9981  These are mostly manuscript attributes and defined in the AGU class documentati
9982 on.
9983 \end_layout
9984
9985 \begin_layout Standard
9986 I suspect this is still badly incomplete.
9987 \end_layout
9988
9989 \begin_layout Subsection
9990 New floats
9991 \end_layout
9992
9993 \begin_layout Standard
9994
9995 \family sans
9996 Planotable
9997 \family default
9998  and 
9999 \family sans
10000 Plate
10001 \family default
10002 .
10003  We also have a new 
10004 \family sans
10005 Table_Caption
10006 \family default
10007 .
10008 \end_layout
10009
10010 \begin_layout Subsection
10011 Supported journals
10012 \end_layout
10013
10014 \begin_layout Itemize
10015
10016 \emph on
10017 Journal of Geophysical Research
10018 \emph default
10019
10020 \family typewriter
10021 jgrga.layout
10022 \family default
10023  — Martin Vermeer
10024 \end_layout
10025
10026 \begin_layout Standard
10027 Add your own, it isn't so hard! Look at the 
10028 \family typewriter
10029 jgrga.layout
10030 \family default
10031  example and 
10032 \family typewriter
10033 aguplus.inc
10034 \family default
10035 .
10036 \end_layout
10037
10038 \begin_layout Subsection
10039 Bugs and things to remember
10040 \end_layout
10041
10042 \begin_layout Standard
10043 In order to use the new layouts, you must remember to do the following for
10044  a new document:
10045 \end_layout
10046
10047 \begin_layout Enumerate
10048
10049 \emph on
10050 Turn off babel
10051 \emph default
10052 .
10053  This can be done in the 
10054 \family sans
10055 Layout\SpecialChar menuseparator
10056 Document
10057 \family default
10058  or 
10059 \family sans
10060 Document\SpecialChar menuseparator
10061 Settings
10062 \family default
10063  menu item.
10064  (AGU articles are always in English, right? So 
10065 \emph on
10066 don't
10067 \emph default
10068  choose a language.)
10069 \end_layout
10070
10071 \begin_layout Enumerate
10072 Enter 
10073 \family typewriter
10074 jgrga
10075 \family default
10076  into the document's 
10077 \family sans
10078 Extra Options
10079 \family default
10080  field.
10081  (Yes, this is a bug.)
10082 \end_layout
10083
10084 \begin_layout Enumerate
10085 Make sure you use the 
10086 \family typewriter
10087 agu.bst
10088 \family default
10089  bibliography style, by entering 
10090 \family sans
10091 agu
10092 \family default
10093  into the second field of the Bib\SpecialChar TeX
10094  inset.
10095  None of the standard styles will do.
10096 \end_layout
10097
10098 \begin_layout Section
10099 Broadway
10100 \end_layout
10101
10102 \begin_layout Standard
10103 by 
10104 \shape smallcaps
10105 Garst Reese
10106 \end_layout
10107
10108 \begin_layout Subsection
10109 Introduction
10110 \end_layout
10111
10112 \begin_layout Standard
10113 Broadway is for writing plays.
10114  The format is more decorative than Hollywood, and much less standardized.
10115  This format should be suitable for workshops.
10116 \end_layout
10117
10118 \begin_layout Subsection
10119 Special problems
10120 \end_layout
10121
10122 \begin_layout Standard
10123 The same as in Hollywood.
10124 \end_layout
10125
10126 \begin_layout Subsection
10127 Special features
10128 \end_layout
10129
10130 \begin_layout Standard
10131 Insert the 
10132 \family sans
10133 Speaker
10134 \family default
10135  names as labels then cross-reference the label to insert the name.
10136  The cross-reference dialog will show the current cast of characters.
10137 \end_layout
10138
10139 \begin_layout Subsection
10140 Paper size and Margins
10141 \end_layout
10142
10143 \begin_layout Standard
10144 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10145 \end_layout
10146
10147 \begin_layout Subsection
10148 Environments
10149 \end_layout
10150
10151 \begin_layout Standard
10152 The following environments are available.
10153  You can use broadway.bind to get the bind keys shown at the right.
10154 \end_layout
10155
10156 \begin_layout Itemize
10157
10158 \family sans
10159 Standard
10160 \begin_inset Newline newline
10161 \end_inset
10162
10163
10164 \family default
10165 You should not have to use this, but it is here for anything that does not
10166  fit otherwise.
10167 \end_layout
10168
10169 \begin_layout Itemize
10170
10171 \family sans
10172 Narrative
10173 \begin_inset space \hfill{}
10174 \end_inset
10175
10176 M-z n
10177 \begin_inset Newline newline
10178 \end_inset
10179
10180
10181 \family default
10182 Used to describe stage setting and the action.
10183  First use of speaker names in all CAPs.
10184 \end_layout
10185
10186 \begin_layout Itemize
10187
10188 \family sans
10189 ACT
10190 \begin_inset space \hfill{}
10191 \end_inset
10192
10193 M-z a
10194 \begin_inset Newline newline
10195 \end_inset
10196
10197
10198 \family default
10199 Automatically numbered.
10200  On screen it will be arabic, but will print as Roman.
10201 \end_layout
10202
10203 \begin_layout Itemize
10204
10205 \family sans
10206 ACT*
10207 \begin_inset space \hfill{}
10208 \end_inset
10209
10210 M-z S at
10211 \begin_inset Newline newline
10212 \end_inset
10213
10214
10215 \family default
10216 Subtitle for 
10217 \family sans
10218 ACT.
10219
10220 \family default
10221  It is just centered text.
10222 \end_layout
10223
10224 \begin_layout Itemize
10225
10226 \family sans
10227 SCENE
10228 \begin_inset space \hfill{}
10229 \end_inset
10230
10231 M-z S-S
10232 \begin_inset Newline newline
10233 \end_inset
10234
10235
10236 \family default
10237 Not automatically numbered.
10238  You supply the number.
10239  This is because I couldn't figure out how.
10240 \end_layout
10241
10242 \begin_layout Itemize
10243
10244 \family sans
10245 AT_RISE:
10246 \begin_inset space \hfill{}
10247 \end_inset
10248
10249 M-z S-R
10250 \begin_inset Newline newline
10251 \end_inset
10252
10253
10254 \family default
10255 A special case of Narrative to describe the setting and action as the curtain
10256  rises.
10257 \end_layout
10258
10259 \begin_layout Itemize
10260
10261 \family sans
10262 Speaker
10263 \begin_inset space \hfill{}
10264 \end_inset
10265
10266 M-z s
10267 \begin_inset Newline newline
10268 \end_inset
10269
10270
10271 \family default
10272 The speaker's (actor's) title, centered in all CAPS.
10273 \end_layout
10274
10275 \begin_layout Itemize
10276
10277 \family sans
10278 Parenthetical
10279 \begin_inset space \hfill{}
10280 \end_inset
10281
10282 M-z p
10283 \begin_inset Newline newline
10284 \end_inset
10285
10286
10287 \family default
10288 Instructions to the speaker.
10289  The parentheses are automatically inserted.
10290  The ( will appear on screen, but both will be in the printed play.
10291  This environment is only used within 
10292 \family sans
10293 Dialogue
10294 \family default
10295 .
10296 \end_layout
10297
10298 \begin_layout Itemize
10299
10300 \family sans
10301 Dialogue
10302 \begin_inset space \hfill{}
10303 \end_inset
10304
10305 M-z d
10306 \begin_inset Newline newline
10307 \end_inset
10308
10309
10310 \family default
10311 What the Speaker says.
10312 \end_layout
10313
10314 \begin_layout Itemize
10315
10316 \family sans
10317 CURTAIN
10318 \begin_inset space \hfill{}
10319 \end_inset
10320
10321 M-z S-C
10322 \begin_inset Newline newline
10323 \end_inset
10324
10325
10326 \family default
10327 The curtain comes down.
10328 \end_layout
10329
10330 \begin_layout Itemize
10331
10332 \family sans
10333 Title
10334 \begin_inset space \hfill{}
10335 \end_inset
10336
10337 M-z S-T
10338 \end_layout
10339
10340 \begin_layout Itemize
10341
10342 \family sans
10343 Author
10344 \begin_inset space \hfill{}
10345 \end_inset
10346
10347 M-z S-A
10348 \end_layout
10349
10350 \begin_layout Itemize
10351
10352 \family sans
10353 Right_Address
10354 \begin_inset space \hfill{}
10355 \end_inset
10356
10357 M-z r
10358 \end_layout
10359
10360 \begin_layout Standard
10361 Hello there.
10362 \end_layout
10363
10364 \begin_layout Section
10365 Dinbrief
10366 \end_layout
10367
10368 \begin_layout Standard
10369 The document class 
10370 \family sans
10371 dinbrief
10372 \family default
10373  can be used to type letters according to German conventions.
10374  A template file is included in 
10375 \family typewriter
10376 .../lyx/share/templates
10377 \family default
10378  for you to use as a starting point.
10379 \end_layout
10380
10381 \begin_layout Section
10382 EGS journals (
10383 \family sans
10384 egs
10385 \family default
10386 )
10387 \end_layout
10388
10389 \begin_layout Standard
10390 by 
10391 \shape smallcaps
10392 Martin Vermeer
10393 \end_layout
10394
10395 \begin_layout Subsection
10396 Description
10397 \end_layout
10398
10399 \begin_layout Standard
10400 This is the layout file for the European Geophysical Society journals.
10401  The needed 
10402 \family typewriter
10403 egs.cls
10404 \family default
10405  can be downloaded from the web site of the EGS under 
10406 \begin_inset Flex URL
10407 status collapsed
10408
10409 \begin_layout Plain Layout
10410
10411 www.copernicus.org
10412 \end_layout
10413
10414 \end_inset
10415
10416 .
10417 \end_layout
10418
10419 \begin_layout Subsection
10420 New styles
10421 \end_layout
10422
10423 \begin_layout Standard
10424
10425 \family sans
10426 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10427  Accepted
10428 \family default
10429
10430 \family sans
10431 Offsets
10432 \family default
10433 .
10434  The current layout file is unfortunately very unmodular and would benefit
10435  from using the various 
10436 \family typewriter
10437 std*.inc
10438 \family default
10439  file inclusions.
10440 \end_layout
10441
10442 \begin_layout Section
10443 Elsevier Journals
10444 \end_layout
10445
10446 \begin_layout Standard
10447 See the \SpecialChar LyX
10448  template file 
10449 \family typewriter
10450 elsarticle.lyx
10451 \family default
10452 .
10453  It contains all infos you need.
10454 \end_layout
10455
10456 \begin_layout Section
10457 Foils [aka 
10458 \family sans
10459 Foil\SpecialChar TeX
10460
10461 \family default
10462 ]
10463 \begin_inset CommandInset label
10464 LatexCommand label
10465 name "sec:foiltex"
10466
10467 \end_inset
10468
10469
10470 \end_layout
10471
10472 \begin_layout Standard
10473 by 
10474 \noun on
10475 Allan Rae
10476 \end_layout
10477
10478 \begin_layout Subsection
10479 Introduction
10480 \end_layout
10481
10482 \begin_layout Standard
10483 This section describes how to use \SpecialChar LyX
10484  to make slides for overhead projectors.
10485  There are two document classes that can do this: the default slides class
10486  and the 
10487 \family sans
10488 Foil\SpecialChar TeX
10489
10490 \family default
10491  slides class.
10492  This section documents the latter.
10493 \end_layout
10494
10495 \begin_layout Standard
10496 I'm going to say this again, nice and clear, so that there's no misunderstanding
10497 :
10498 \end_layout
10499
10500 \begin_layout Standard
10501 \begin_inset VSpace bigskip
10502 \end_inset
10503
10504
10505 \end_layout
10506
10507 \begin_layout Standard
10508 \align center
10509
10510 \size large
10511 This section documents the class 
10512 \begin_inset Quotes eld
10513 \end_inset
10514
10515
10516 \family sans
10517 FoilTeX
10518 \family default
10519
10520 \begin_inset Quotes erd
10521 \end_inset
10522
10523  
10524 \emph on
10525 only.
10526 \end_layout
10527
10528 \begin_layout Standard
10529 \begin_inset VSpace bigskip
10530 \end_inset
10531
10532
10533 \end_layout
10534
10535 \begin_layout Standard
10536 If you're looking for the documentation for 
10537 \begin_inset Quotes eld
10538 \end_inset
10539
10540
10541 \family sans
10542 slides (default)
10543 \family default
10544
10545 \begin_inset Quotes erd
10546 \end_inset
10547
10548 , check out section
10549 \begin_inset space ~
10550 \end_inset
10551
10552
10553 \begin_inset CommandInset ref
10554 LatexCommand ref
10555 reference "sec:slitex"
10556
10557 \end_inset
10558
10559 .
10560  If your machine doesn't have the 
10561 \family sans
10562 foils
10563 \family default
10564  class 
10565 \family sans
10566 FoilTeX
10567 \family default
10568  installed, you'll probably have to use the default 
10569 \family sans
10570 slides
10571 \family default
10572  class, which isn't quite as good as 
10573 \family sans
10574 foils.
10575 \end_layout
10576
10577 \begin_layout Standard
10578 The 
10579 \family sans
10580 foils
10581 \family default
10582  class is designed for use with version
10583 \begin_inset space ~
10584 \end_inset
10585
10586 2.1 of the 
10587 \family sans
10588 foils.cls
10589 \family default
10590  \SpecialChar LaTeX
10591  class file which is now an integral part of \SpecialChar LaTeX2e
10592 .
10593 \end_layout
10594
10595 \begin_layout Subsection
10596 Getting Started
10597 \end_layout
10598
10599 \begin_layout Standard
10600 Obviously, to use this document class, you need to select 
10601 \family sans
10602 FoilTeX
10603 \family default
10604  from the 
10605 \family sans
10606 Class
10607 \family default
10608  entry in the 
10609 \family sans
10610 Document
10611 \begin_inset space ~
10612 \end_inset
10613
10614 Layout
10615 \family default
10616  dialog.
10617  There are some settings in the 
10618 \family sans
10619 Document
10620 \begin_inset space ~
10621 \end_inset
10622
10623 Layout
10624 \family default
10625  dialog that you should know about that are specific to this class:
10626 \end_layout
10627
10628 \begin_layout Itemize
10629 Don't change the options 
10630 \family sans
10631 Sides
10632 \family default
10633  and 
10634 \family sans
10635 Columns
10636 \family default
10637  on the 
10638 \family sans
10639 Document
10640 \begin_inset space ~
10641 \end_inset
10642
10643 Layout
10644 \family default
10645  dialog.
10646  They're ignored by the 
10647 \family sans
10648 foils
10649 \family default
10650  class.
10651 \end_layout
10652
10653 \begin_layout Itemize
10654 The default font size is 20
10655 \begin_inset space \thinspace{}
10656 \end_inset
10657
10658 pt with the other options being 17
10659 \begin_inset space \thinspace{}
10660 \end_inset
10661
10662 pt, 25
10663 \begin_inset space \thinspace{}
10664 \end_inset
10665
10666 pt and 30
10667 \begin_inset space \thinspace{}
10668 \end_inset
10669
10670 pt.
10671 \end_layout
10672
10673 \begin_layout Itemize
10674 The default font is 
10675 \family sans
10676 sans
10677 \family default
10678  
10679 \family sans
10680 serif
10681 \family default
10682  but all math equations are still typeset in the usual roman font.
10683 \end_layout
10684
10685 \begin_layout Itemize
10686
10687 \family sans
10688 Foil\SpecialChar TeX
10689
10690 \family default
10691  supports A4 and Letter paper sizes as well as a special size for working
10692  with 35
10693 \begin_inset space \thinspace{}
10694 \end_inset
10695
10696 mm slides.
10697  It doesn't support A5, B5, legal or executive paper sizes.
10698 \end_layout
10699
10700 \begin_layout Itemize
10701 Don't bother changing the 
10702 \family sans
10703 Float Placement
10704 \family default
10705  settings because they are ignored anyway.
10706  All floats appear where they are defined in the text.
10707 \end_layout
10708
10709 \begin_layout Itemize
10710 The 
10711 \family sans
10712 Pagestyle
10713 \family default
10714  setting behaves a bit differently for this class.
10715  
10716 \family sans
10717 Foil\SpecialChar TeX
10718
10719 \family default
10720  provides extensive footer and header capabilities including a user-defined
10721  logo.
10722  See section
10723 \begin_inset space ~
10724 \end_inset
10725
10726
10727 \begin_inset CommandInset ref
10728 LatexCommand ref
10729 reference "sec:foilfoot"
10730
10731 \end_inset
10732
10733  for more details.
10734  The title page is treated differently to all other pages in the document
10735  and is 
10736 \emph on
10737 always
10738 \emph default
10739  unnumbered and 
10740 \emph on
10741 always
10742 \emph default
10743  has the logo centered at the bottom of the page (if one is defined).
10744  The possible page style choices and what they do are as follows:
10745 \end_layout
10746
10747 \begin_deeper
10748 \begin_layout Labeling
10749 \labelwidthstring MMMMMMM
10750
10751 \family sans
10752 \series bold
10753 empty
10754 \family default
10755 \series default
10756  The final output contains no page numbers, or other headers or footers
10757  (except footnotes of course).
10758  
10759 \end_layout
10760
10761 \begin_layout Labeling
10762 \labelwidthstring MMMMMMM
10763
10764 \family sans
10765 \series bold
10766 plain
10767 \family default
10768 \series default
10769  The final output contains page numbers centered at the bottom of the page.
10770  No other headings or footers (other than footnotes).
10771 \end_layout
10772
10773 \begin_layout Labeling
10774 \labelwidthstring MMMMMMM
10775
10776 \series bold
10777 foilheadings
10778 \series default
10779  Page numbers in lower right corner.
10780  Additional headers and footers are also shown.
10781  This is also the default.
10782 \end_layout
10783
10784 \begin_layout Labeling
10785 \labelwidthstring MMMMMMM
10786
10787 \series bold
10788 fancy
10789 \series default
10790  Gives you access to the 
10791 \family sans
10792 fancyheadings
10793 \family default
10794  package although its use with 
10795 \family sans
10796 Foil\SpecialChar TeX
10797
10798 \family default
10799  is discouraged by the writer of the 
10800 \family sans
10801 Foil\SpecialChar TeX
10802
10803 \family default
10804  package because of some potential page layout clashes.
10805 \end_layout
10806
10807 \end_deeper
10808 \begin_layout Subsubsection
10809 Extra Options
10810 \end_layout
10811
10812 \begin_layout Standard
10813 The following options may be used in the extra class options in the 
10814 \family sans
10815 Document\SpecialChar menuseparator
10816 Settings
10817 \family default
10818  dialog.
10819 \end_layout
10820
10821 \begin_layout Labeling
10822 \labelwidthstring MMMMMMx
10823
10824 \series bold
10825 35mmSlide
10826 \series default
10827  This sets up the page layout for 7.33
10828 \begin_inset space \thinspace{}
10829 \end_inset
10830
10831 in by 11
10832 \begin_inset space \thinspace{}
10833 \end_inset
10834
10835 in paper, which is about the same aspect ratio as a 35
10836 \begin_inset space \thinspace{}
10837 \end_inset
10838
10839 mm slide, making it a bit easier to work with this medium.
10840 \end_layout
10841
10842 \begin_layout Labeling
10843 \labelwidthstring MMMMMMx
10844
10845 \series bold
10846 headrule
10847 \series default
10848  Places a rule across the page below the header on every page except the
10849  title page.
10850 \end_layout
10851
10852 \begin_layout Labeling
10853 \labelwidthstring MMMMMMx
10854
10855 \series bold
10856 footrule
10857 \series default
10858  Places a rule across the page above the footer on every page except the
10859  title page.
10860 \end_layout
10861
10862 \begin_layout Labeling
10863 \labelwidthstring MMMMMMx
10864
10865 \series bold
10866 dvips
10867 \series default
10868  This is automatically set each time you create a new 
10869 \family sans
10870 foils
10871 \family default
10872  document.
10873  This option tells 
10874 \family sans
10875 Foil\SpecialChar TeX
10876
10877 \family default
10878  to use the dvips driver to rotate those pages that are set as landscape
10879  foils.
10880 \end_layout
10881
10882 \begin_layout Labeling
10883 \labelwidthstring MMMMMMx
10884
10885 \series bold
10886 landscape
10887 \series default
10888  Simply changes the page dimensions to those of a landscape page but doesn't
10889  do any rotation.
10890  Thus if you use this option you need to use an external program to rotate
10891  each page or feed your paper through your printer as landscape.
10892  Note that this option effectively reverses the roles of the 
10893 \family sans
10894 Foilhead
10895 \family default
10896  and 
10897 \family sans
10898 Rotatefoilhead
10899 \family default
10900  environments (don't worry these are described in the next section).
10901 \end_layout
10902
10903 \begin_layout Labeling
10904 \labelwidthstring MMMMMMx
10905
10906 \series bold
10907 leqno
10908 \series default
10909  Equation numbers on the left.
10910 \end_layout
10911
10912 \begin_layout Labeling
10913 \labelwidthstring MMMMMMx
10914
10915 \series bold
10916 fleqn
10917 \series default
10918  Flush-left equations.
10919 \end_layout
10920
10921 \begin_layout Subsection
10922 Supported Environments
10923 \end_layout
10924
10925 \begin_layout Standard
10926 Most of the environments commonly supported in other classes are also supported
10927  by the 
10928 \family sans
10929 foils
10930 \family default
10931  class.
10932  There are several additional environments provided by 
10933 \family sans
10934 Foil\SpecialChar TeX
10935
10936 \family default
10937  as well as a couple added by \SpecialChar LyX
10938 .
10939  The following environments are shared with other classes:
10940 \end_layout
10941
10942 \begin_layout Standard
10943 \begin_inset Flex Multiple Columns
10944 status open
10945
10946 \begin_layout Itemize
10947
10948 \family sans
10949 Standard
10950 \end_layout
10951
10952 \begin_layout Itemize
10953
10954 \family sans
10955 Itemize
10956 \end_layout
10957
10958 \begin_layout Itemize
10959
10960 \family sans
10961 Enumerate
10962 \end_layout
10963
10964 \begin_layout Itemize
10965
10966 \family sans
10967 Description
10968 \end_layout
10969
10970 \begin_layout Itemize
10971
10972 \family sans
10973 List
10974 \end_layout
10975
10976 \begin_layout Itemize
10977
10978 \family sans
10979 \SpecialChar LyX
10980 -Code
10981 \end_layout
10982
10983 \begin_layout Itemize
10984
10985 \family sans
10986 Verse
10987 \end_layout
10988
10989 \begin_layout Itemize
10990
10991 \family sans
10992 Quote
10993 \end_layout
10994
10995 \begin_layout Itemize
10996
10997 \family sans
10998 Quotation
10999 \end_layout
11000
11001 \begin_layout Itemize
11002
11003 \family sans
11004 Title
11005 \end_layout
11006
11007 \begin_layout Itemize
11008
11009 \family sans
11010 Author
11011 \end_layout
11012
11013 \begin_layout Itemize
11014
11015 \family sans
11016 Date
11017 \end_layout
11018
11019 \begin_layout Itemize
11020
11021 \family sans
11022 Abstract
11023 \end_layout
11024
11025 \begin_layout Itemize
11026
11027 \family sans
11028 Bibliography
11029 \end_layout
11030
11031 \begin_layout Itemize
11032
11033 \family sans
11034 Address
11035 \end_layout
11036
11037 \begin_layout Itemize
11038
11039 \family sans
11040 RightAddress
11041 \end_layout
11042
11043 \begin_layout Itemize
11044
11045 \family sans
11046 Caption
11047 \end_layout
11048
11049 \begin_layout Itemize
11050
11051 \family sans
11052 Comment
11053 \end_layout
11054
11055 \end_inset
11056
11057
11058 \end_layout
11059
11060 \begin_layout Standard
11061 That is, all the major environments apart from the sectioning environments.
11062  Since foils are essentially self-contained sections, with a title and body,
11063  
11064 \family sans
11065 Foil\SpecialChar TeX
11066
11067 \family default
11068  provides specific commands for starting new foils and these are:
11069 \end_layout
11070
11071 \begin_layout Itemize
11072
11073 \family sans
11074 Foilhead
11075 \end_layout
11076
11077 \begin_layout Itemize
11078
11079 \family sans
11080 Rotatefoilhead
11081 \end_layout
11082
11083 \begin_layout Standard
11084 \SpecialChar LyX
11085  also provides slightly modified versions of these two environments called:
11086 \end_layout
11087
11088 \begin_layout Itemize
11089
11090 \family sans
11091 ShortFoilhead
11092 \end_layout
11093
11094 \begin_layout Itemize
11095
11096 \family sans
11097 ShortRotatefoilhead
11098 \end_layout
11099
11100 \begin_layout Standard
11101 and the differences will be explained in the next section.
11102 \end_layout
11103
11104 \begin_layout Standard
11105 Since foils are often used in presenting ideas or new theorems and such
11106  
11107 \family sans
11108 Foil\SpecialChar TeX
11109
11110 \family default
11111  also provides a comprehensive box of goodies for presenting them:
11112 \end_layout
11113
11114 \begin_layout Standard
11115 \begin_inset Flex Multiple Columns
11116 status open
11117
11118 \begin_layout Itemize
11119
11120 \family sans
11121 Theorem
11122 \end_layout
11123
11124 \begin_layout Itemize
11125
11126 \family sans
11127 Lemma
11128 \end_layout
11129
11130 \begin_layout Itemize
11131
11132 \family sans
11133 Corollary
11134 \end_layout
11135
11136 \begin_layout Itemize
11137
11138 \family sans
11139 Proposition
11140 \end_layout
11141
11142 \begin_layout Itemize
11143
11144 \family sans
11145 Definition
11146 \end_layout
11147
11148 \begin_layout Itemize
11149
11150 \family sans
11151 Proof
11152 \end_layout
11153
11154 \begin_layout Itemize
11155
11156 \family sans
11157 Theorem*
11158 \end_layout
11159
11160 \begin_layout Itemize
11161
11162 \family sans
11163 Lemma*
11164 \end_layout
11165
11166 \begin_layout Itemize
11167
11168 \family sans
11169 Corollary*
11170 \end_layout
11171
11172 \begin_layout Itemize
11173
11174 \family sans
11175 Proposition*
11176 \end_layout
11177
11178 \begin_layout Itemize
11179
11180 \family sans
11181 Definition*
11182 \end_layout
11183
11184 \end_inset
11185
11186
11187 \end_layout
11188
11189 \begin_layout Standard
11190 The starred versions are unnumbered while the unstarred versions are numbered.
11191  There are also two list environments added by \SpecialChar LyX
11192  and these are:
11193 \end_layout
11194
11195 \begin_layout Itemize
11196
11197 \family sans
11198 TickList
11199 \end_layout
11200
11201 \begin_layout Itemize
11202
11203 \family sans
11204 CrossList
11205 \end_layout
11206
11207 \begin_layout Standard
11208
11209 \family sans
11210 Foil\SpecialChar TeX
11211
11212 \family default
11213  provides some powerful header and footer capabilities that are best set
11214  in the preamble although they may be set at any point in a document.
11215  If you want to change these settings in your document the best place to
11216  do so is at the very top of a foil, i.
11217 \begin_inset space \thinspace{}
11218 \end_inset
11219
11220 e.
11221 \emph on
11222
11223 \begin_inset space \space{}
11224 \end_inset
11225
11226
11227 \emph default
11228 straight after the foilhead.
11229 \end_layout
11230
11231 \begin_layout Standard
11232 For this purpose, the following command styles are provided [
11233 \shape smallcaps
11234 Martin Vermeer
11235 \shape default
11236 ]:
11237 \end_layout
11238
11239 \begin_layout Standard
11240 \begin_inset Flex Multiple Columns
11241 status open
11242
11243 \begin_layout Itemize
11244
11245 \family sans
11246 My
11247 \begin_inset space ~
11248 \end_inset
11249
11250 Logo
11251 \end_layout
11252
11253 \begin_layout Itemize
11254
11255 \family sans
11256 Restriction
11257 \end_layout
11258
11259 \begin_layout Itemize
11260
11261 \family sans
11262 Right
11263 \begin_inset space ~
11264 \end_inset
11265
11266 Footer
11267 \end_layout
11268
11269 \begin_layout Itemize
11270
11271 \family sans
11272 Right
11273 \begin_inset space ~
11274 \end_inset
11275
11276 Header
11277 \end_layout
11278
11279 \begin_layout Itemize
11280
11281 \family sans
11282 Left
11283 \begin_inset space ~
11284 \end_inset
11285
11286 Header
11287 \end_layout
11288
11289 \begin_deeper
11290 \begin_layout Plain Layout
11291 \begin_inset space ~
11292 \end_inset
11293
11294
11295 \end_layout
11296
11297 \end_deeper
11298 \end_inset
11299
11300
11301 \end_layout
11302
11303 \begin_layout Standard
11304 There are also a few commands provided by 
11305 \family sans
11306 Foil\SpecialChar TeX
11307
11308 \family default
11309  that aren't directly supported by \SpecialChar LyX
11310  but I'll tell you what they do and how
11311  to use them in section
11312 \begin_inset space ~
11313 \end_inset
11314
11315
11316 \begin_inset CommandInset ref
11317 LatexCommand ref
11318 reference "sec:unsuppfoils"
11319
11320 \end_inset
11321
11322 .
11323 \end_layout
11324
11325 \begin_layout Subsection
11326 Building a Set of Foils
11327 \end_layout
11328
11329 \begin_layout Standard
11330 This section will give a simple introduction to using the different environments
11331  to build a set of foils.
11332  If you want to see an example set of foils, take a look at the 
11333 \family typewriter
11334 Foils.lyx
11335 \family default
11336  file you find in \SpecialChar LyX
11337 's 
11338 \family typewriter
11339 examples
11340 \family default
11341  folder.
11342 \end_layout
11343
11344 \begin_layout Subsubsection
11345 Give It a Title Page
11346 \end_layout
11347
11348 \begin_layout Standard
11349 Unlike other classes that provide 
11350 \family sans
11351 Title
11352 \family default
11353
11354 \family sans
11355 Author
11356 \family default
11357
11358 \family sans
11359 Date
11360 \family default
11361  and 
11362 \family sans
11363 Abstract
11364 \family default
11365  environments, 
11366 \family sans
11367 foils
11368 \family default
11369  creates the title on a page of its own.
11370  If you leave out the 
11371 \family sans
11372 Date
11373 \family default
11374  environment \SpecialChar LaTeX
11375  will substitute the current date (every time you regenerate
11376  the output).
11377 \end_layout
11378
11379 \begin_layout Subsubsection
11380 Start a New Foil
11381 \end_layout
11382
11383 \begin_layout Standard
11384 As I mentioned earlier, there are four ways of starting a new foil.
11385  For portrait foils you should use 
11386 \family sans
11387 Foilhead
11388 \family default
11389  or 
11390 \family sans
11391 ShortFoilhead.
11392
11393 \family default
11394  The difference between these two environments is the amount of space between
11395  the title of the foil (the foilhead) and the body of the foil.
11396 \end_layout
11397
11398 \begin_layout Standard
11399 Landscape foils are generated using the 
11400 \family sans
11401 Rotatefoilhead
11402 \family default
11403  and 
11404 \family sans
11405 ShortRotatefoilhead
11406 \family default
11407  environments.
11408  Again the only difference is the spacing between foilhead and body.
11409  Both of the short versions have 0.5
11410 \begin_inset space ~
11411 \end_inset
11412
11413 inches less separation between the foilhead and the body.
11414  
11415 \end_layout
11416
11417 \begin_layout Standard
11418 One problem with the support for landscape foils is the requirement that
11419  you have to use the 
11420 \family typewriter
11421 dvips
11422 \family default
11423  driver to generate the PostScript output otherwise the foils won't be rotated.
11424  It is possible to get landscape foils even if you haven't got the 
11425 \family typewriter
11426 dvips
11427 \family default
11428  driver provided you can feed your foils sideways through your printer ;-)
11429 \end_layout
11430
11431 \begin_layout Subsubsection
11432 Theorems, Lemmas, Proofs and more
11433 \end_layout
11434
11435 \begin_layout Standard
11436 Due to a small bug in \SpecialChar LyX
11437  you can't have two of the same type of these environments
11438  directly following each other.
11439  They must be separated by something.
11440  If you try, you will just be extending the previous environment as if you
11441  had merged the two environments together.
11442  So, how do you get around this problem? The simplest option is to insert
11443  some text between the two environments or add a 
11444 \family sans
11445 \SpecialChar LaTeX
11446
11447 \family default
11448  environment between the two with just a 
11449 \begin_inset Quotes eld
11450 \end_inset
11451
11452
11453 \family typewriter
11454 %
11455 \family default
11456
11457 \begin_inset Quotes erd
11458 \end_inset
11459
11460  in it.
11461  This will force \SpecialChar LyX
11462  to produce two separate environments and hence the correct
11463  \SpecialChar LaTeX
11464  output.
11465  An example is provided in the example file included with the \SpecialChar LyX
11466  distribution.
11467  Remember, this problem only occurs if you are trying to place two of the
11468  same type of theorem-like environments one directly after the other.
11469 \end_layout
11470
11471 \begin_layout Subsubsection
11472 Lists
11473 \end_layout
11474
11475 \begin_layout Standard
11476 You get all the commonly supported list styles found in other classes as
11477  well as two new ones.
11478  I'll only describe the new ones here.
11479  If you want to find out more about the other list environments check out
11480  the 
11481 \emph on
11482 User's Guide.
11483
11484 \emph default
11485  If you intend to use itemized lists you might also want to read about the
11486  
11487 \family sans
11488 Itemize
11489 \begin_inset space ~
11490 \end_inset
11491
11492 Bullet
11493 \begin_inset space ~
11494 \end_inset
11495
11496 Selection
11497 \family default
11498  dialog described above in section
11499 \begin_inset space ~
11500 \end_inset
11501
11502
11503 \begin_inset CommandInset ref
11504 LatexCommand ref
11505 reference "sec:bullet"
11506
11507 \end_inset
11508
11509 .
11510 \end_layout
11511
11512 \begin_layout Standard
11513 The two new list styles, 
11514 \family sans
11515 TickList
11516 \family default
11517  and 
11518 \family sans
11519 CrossList
11520 \family default
11521 , are designed to make it easier for you to create lists of do's and don'ts
11522  or right and wrong by providing dedicated environments that use a tick
11523  or a cross as the label of the list.
11524  These lists are in fact dedicated variants of the 
11525 \family sans
11526 Itemize
11527 \family default
11528  environment.
11529  They do however require that you have the 
11530 \family typewriter
11531 psnfss
11532 \family default
11533  packages installed.
11534 \end_layout
11535
11536 \begin_layout Subsubsection
11537 Figures and Tables
11538 \end_layout
11539
11540 \begin_layout Standard
11541
11542 \family sans
11543 Foil\SpecialChar TeX
11544
11545 \family default
11546  redefines the floating tables and figures so that they appear exactly where
11547  they are in the text rather than pushing them to the top of the page or
11548  to some user specified location.
11549  In fact if you change the float placement settings they are simply ignored.
11550 \end_layout
11551
11552 \begin_layout Subsubsection
11553 Page Headers and Footers
11554 \begin_inset CommandInset label
11555 LatexCommand label
11556 name "sec:foilfoot"
11557
11558 \end_inset
11559
11560
11561 \end_layout
11562
11563 \begin_layout Standard
11564
11565 \family sans
11566 My
11567 \begin_inset space ~
11568 \end_inset
11569
11570 Logo
11571 \family default
11572  and 
11573 \family sans
11574 Restriction
11575 \family default
11576  are two commands used to control the left-footer text string.
11577  The first is meant to allow you to include a graphic logo on your foils
11578  and defaults to 
11579 \begin_inset Quotes eld
11580 \end_inset
11581
11582 -Typeset by 
11583 \family sans
11584 Foil\SpecialChar TeX
11585
11586 \family default
11587 -
11588 \begin_inset Quotes erd
11589 \end_inset
11590
11591 .
11592  While the second is meant to provide a classification for the audience,
11593  
11594 \emph on
11595 e.
11596 \begin_inset space \thinspace{}
11597 \end_inset
11598
11599 g.
11600 \emph default
11601
11602 \begin_inset space \space{}
11603 \end_inset
11604
11605 Confidential.
11606  It is empty by default.
11607 \end_layout
11608
11609 \begin_layout Standard
11610 The remaining page corners can be filled by 
11611 \family sans
11612 Right
11613 \begin_inset space ~
11614 \end_inset
11615
11616 Footer
11617 \family default
11618  (which defaults to page numbers), 
11619 \family sans
11620 Right
11621 \begin_inset space ~
11622 \end_inset
11623
11624 Header
11625 \family default
11626  (top right) and 
11627 \family sans
11628 Left
11629 \begin_inset space ~
11630 \end_inset
11631
11632 Header
11633 \family default
11634  (top left).
11635 \end_layout
11636
11637 \begin_layout Subsection
11638 Unsupported 
11639 \family sans
11640 Foil\SpecialChar TeX
11641
11642 \family default
11643  Goodies
11644 \begin_inset CommandInset label
11645 LatexCommand label
11646 name "sec:unsuppfoils"
11647
11648 \end_inset
11649
11650
11651 \end_layout
11652
11653 \begin_layout Standard
11654 All the commands mentioned below need to be set in a 
11655 \family sans
11656 \SpecialChar LaTeX
11657
11658 \family default
11659  environment or as 
11660 \family sans
11661 \SpecialChar TeX
11662
11663 \family default
11664  within another environment.
11665 \end_layout
11666
11667 \begin_layout Subsubsection
11668 Lengths
11669 \end_layout
11670
11671 \begin_layout Standard
11672 All lengths are adjusted using the 
11673 \family typewriter
11674
11675 \backslash
11676 setlength{
11677 \family default
11678 \emph on
11679 lengthname
11680 \family typewriter
11681 \emph default
11682 }{
11683 \family default
11684 \emph on
11685 newlength
11686 \family typewriter
11687 \emph default
11688 }
11689 \family default
11690  command.
11691  Where 
11692 \emph on
11693 lengthname
11694 \emph default
11695  should be replaced by the name given to the length you want to change and
11696  
11697 \emph on
11698 newlength
11699 \emph default
11700  is the length value.
11701  All lengths should be specified in units of length such as inches (
11702 \family typewriter
11703 in
11704 \family default
11705 ), millimeters (
11706 \family typewriter
11707 mm
11708 \family default
11709 ) or points (
11710 \family typewriter
11711 pt
11712 \family default
11713 ) or relative to some document or font-based length such as 
11714 \family typewriter
11715
11716 \backslash
11717 textwidth
11718 \family default
11719 .
11720  
11721 \end_layout
11722
11723 \begin_layout Standard
11724 It's possible to change the spacing between a foilhead and the body of the
11725  foil by adjusting the length specified by 
11726 \family typewriter
11727
11728 \backslash
11729 foilheadskip
11730 \family default
11731 .
11732  For example, to make 
11733 \emph on
11734 all
11735 \emph default
11736  foilheads 0.5
11737 \begin_inset space \space{}
11738 \end_inset
11739
11740 in closer to their bodies put the following in the preamble: 
11741 \family typewriter
11742
11743 \backslash
11744 setlength{
11745 \backslash
11746 foilheadskip}{-0.5in}
11747 \end_layout
11748
11749 \begin_layout Standard
11750 The spacings around floats can be adjusted by setting these lengths:
11751 \end_layout
11752
11753 \begin_layout Labeling
11754 \labelwidthstring MMMMMMMMMMM
11755
11756 \family typewriter
11757
11758 \backslash
11759 abovefloatskip
11760 \family default
11761  Separation between the text and the top of the float
11762 \end_layout
11763
11764 \begin_layout Labeling
11765 \labelwidthstring MMMMMMMMMMM
11766
11767 \family typewriter
11768
11769 \backslash
11770 abovecaptionskip
11771 \family default
11772  Separation between the float and the caption
11773 \end_layout
11774
11775 \begin_layout Labeling
11776 \labelwidthstring MMMMMMMMMMM
11777
11778 \family typewriter
11779
11780 \backslash
11781 belowcaptionskip
11782 \family default
11783  Separation between the caption and the following text
11784 \end_layout
11785
11786 \begin_layout Labeling
11787 \labelwidthstring MMMMMMMMMMM
11788
11789 \family typewriter
11790
11791 \backslash
11792 captionwidth
11793 \family default
11794  You can make the captions narrower than the surrounding text by adjusting
11795  this length.
11796  Best done relative to 
11797 \family typewriter
11798
11799 \backslash
11800 textwidth
11801 \family default
11802 .
11803 \end_layout
11804
11805 \begin_layout Standard
11806 There are also several title page related lengths that you may find useful
11807  if you have a long title or several authors:
11808 \end_layout
11809
11810 \begin_layout Labeling
11811 \labelwidthstring MMMMMMMMMMM
11812
11813 \family typewriter
11814
11815 \backslash
11816 abovetitleskip
11817 \family default
11818  Separation from headers to 
11819 \family sans
11820 Title
11821 \end_layout
11822
11823 \begin_layout Labeling
11824 \labelwidthstring MMMMMMMMMMM
11825
11826 \family typewriter
11827
11828 \backslash
11829 titleauthorskip
11830 \family default
11831  between 
11832 \family sans
11833 Title
11834 \family default
11835  and 
11836 \family sans
11837 Author
11838 \family default
11839  environments
11840 \end_layout
11841
11842 \begin_layout Labeling
11843 \labelwidthstring MMMMMMMMMMM
11844
11845 \family typewriter
11846
11847 \backslash
11848 authorauthorskip
11849 \family default
11850  between multiple 
11851 \family sans
11852 Author
11853 \family default
11854  lines
11855 \end_layout
11856
11857 \begin_layout Labeling
11858 \labelwidthstring MMMMMMMMMMM
11859
11860 \family typewriter
11861
11862 \backslash
11863 authordateskip
11864 \family default
11865  between the 
11866 \family sans
11867 Author
11868 \family default
11869  and the 
11870 \family sans
11871 Date
11872 \end_layout
11873
11874 \begin_layout Labeling
11875 \labelwidthstring MMMMMMMMMMM
11876
11877 \family typewriter
11878
11879 \backslash
11880 dateabstractskip
11881 \family default
11882  between the 
11883 \family sans
11884 Date
11885 \family default
11886  and the 
11887 \family sans
11888 Abstract
11889 \end_layout
11890
11891 \begin_layout Standard
11892 The last length related command affects all the list environments.
11893  If you place 
11894 \family typewriter
11895
11896 \backslash
11897 zerolistvertdimens
11898 \family default
11899  
11900 \emph on
11901 inside
11902 \emph default
11903  a list environment then all the vertical spacing between the list items
11904  is removed.
11905  Note that this is a command not a length so it doesn't require 
11906 \family typewriter
11907
11908 \backslash
11909 setlength
11910 \family default
11911  like the stuff mentioned above.
11912 \end_layout
11913
11914 \begin_layout Subsubsection
11915 Headers and Footers
11916 \end_layout
11917
11918 \begin_layout Standard
11919 The 
11920 \family typewriter
11921
11922 \backslash
11923 LogoOn
11924 \family default
11925  and 
11926 \family typewriter
11927
11928 \backslash
11929 LogoOff
11930 \family default
11931  commands control whether the logo in the 
11932 \family sans
11933 MyLogo
11934 \family default
11935  definition appear on a given page.
11936  If you put 
11937 \family typewriter
11938
11939 \backslash
11940 LogoOff
11941 \family default
11942  in the preamble then none of the foils will have the logo on them.
11943  If you don't want the logo on a particular page place the 
11944 \family typewriter
11945
11946 \backslash
11947 LogoOff
11948 \family default
11949  directly after the foilhead of that page and the 
11950 \family typewriter
11951
11952 \backslash
11953 LogoOn
11954 \family default
11955  directly after the next foilhead.
11956 \end_layout
11957
11958 \begin_layout Standard
11959 If you decide to use the 
11960 \family sans
11961 fancy
11962 \family default
11963  page style setting in the 
11964 \family sans
11965 Document
11966 \begin_inset space ~
11967 \end_inset
11968
11969 Layout
11970 \family default
11971  dialog you should probably add 
11972 \family typewriter
11973
11974 \backslash
11975 let
11976 \backslash
11977 headwidth
11978 \backslash
11979 textwidth
11980 \family default
11981  to your preamble so headers and footers on landscape pages are correctly
11982  placed when rotated.
11983  This is due to some clashes between the page layouts provided by the 
11984 \family sans
11985 fancyheadings
11986 \family default
11987  package and the 
11988 \family sans
11989 foils
11990 \family default
11991  class.
11992 \end_layout
11993
11994 \begin_layout Section
11995 Hollywood (Hollywood spec scripts)
11996 \end_layout
11997
11998 \begin_layout Standard
11999 by 
12000 \shape smallcaps
12001 Garst Reese
12002 \end_layout
12003
12004 \begin_layout Subsection
12005 Introduction
12006 \end_layout
12007
12008 \begin_layout Standard
12009 Getting the format of a Hollywood script right is a 
12010 \begin_inset Quotes eld
12011 \end_inset
12012
12013 rite of passage.
12014 \begin_inset Quotes erd
12015 \end_inset
12016
12017  It is designed to make the readers focus on content and to be easy and
12018  familiar for the actors to read.
12019  Each page of a script should be one minute of film.
12020  Nothing goes in a script that you cannot see or hear on screen.
12021  The courier 12 pt font should be used throughout.
12022  No italics.
12023 \end_layout
12024
12025 \begin_layout Subsection
12026 Special problems
12027 \end_layout
12028
12029 \begin_layout Standard
12030 Speakers' lines should NEVER break in mid-sentence.
12031  If a speaker's lines continue over a page break, repeat the 
12032 \family sans
12033 Speaker
12034 \family default
12035  title followed by (Cont'd).
12036 \end_layout
12037
12038 \begin_layout Subsection
12039 Special features
12040 \end_layout
12041
12042 \begin_layout Standard
12043 Insert the 
12044 \family sans
12045 Speaker
12046 \family default
12047  names as labels then cross-reference the label to insert the name.
12048  The cross-reference dialog will show the current cast of characters.
12049  You can use this to insert the speaker name in narratives also.
12050 \end_layout
12051
12052 \begin_layout Subsection
12053 Paper size and Margins
12054 \end_layout
12055
12056 \begin_layout Standard
12057 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12058 \end_layout
12059
12060 \begin_layout Subsection
12061 Environments
12062 \end_layout
12063
12064 \begin_layout Standard
12065 The following environments are available.
12066  You can use hollywood.bind to get the bind keys shown at the right.
12067 \end_layout
12068
12069 \begin_layout Itemize
12070
12071 \family sans
12072 Standard
12073 \begin_inset Newline newline
12074 \end_inset
12075
12076
12077 \family default
12078 Used where nothing else works.
12079  Try to avoid it.
12080 \end_layout
12081
12082 \begin_layout Itemize
12083
12084 \family sans
12085 FADE_IN
12086 \family default
12087 :
12088 \begin_inset space \hfill{}
12089 \end_inset
12090
12091
12092 \family sans
12093 M-z S-I
12094 \family default
12095
12096 \begin_inset Newline newline
12097 \end_inset
12098
12099 Usually followed by something like 
12100 \begin_inset Quotes eld
12101 \end_inset
12102
12103 on Sally waking up.
12104 \begin_inset Quotes erd
12105 \end_inset
12106
12107
12108 \end_layout
12109
12110 \begin_layout Itemize
12111
12112 \family sans
12113 INT:
12114 \begin_inset space \hfill{}
12115 \end_inset
12116
12117 M-z i
12118 \begin_inset Newline newline
12119 \end_inset
12120
12121
12122 \family default
12123 Introduces a new INTERIOR camera set-up.
12124  Always followed by DAY or NIGHT, or something similar to define the lighting
12125  required.
12126  Everthing on this line in CAPS.
12127 \end_layout
12128
12129 \begin_layout Itemize
12130
12131 \family sans
12132 EXT:
12133 \begin_inset space \hfill{}
12134 \end_inset
12135
12136 M-z e
12137 \begin_inset Newline newline
12138 \end_inset
12139
12140
12141 \family default
12142 Introduces a new EXTERIOR camera set-up.
12143  Everthing on this line in CAPS.
12144 \end_layout
12145
12146 \begin_layout Itemize
12147
12148 \family sans
12149 Speaker
12150 \begin_inset space \hfill{}
12151 \end_inset
12152
12153 M-z s
12154 \begin_inset Newline newline
12155 \end_inset
12156
12157
12158 \family default
12159 The character speaking.
12160 \end_layout
12161
12162 \begin_layout Itemize
12163
12164 \family sans
12165 Parenthetical
12166 \begin_inset space \hfill{}
12167 \end_inset
12168
12169 M-z p
12170 \begin_inset Newline newline
12171 \end_inset
12172
12173
12174 \family default
12175 Instructions to the speaker.
12176  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12177 .
12178  Both will be printed.
12179 \end_layout
12180
12181 \begin_layout Itemize
12182
12183 \family sans
12184 Dialogue
12185 \begin_inset space \hfill{}
12186 \end_inset
12187
12188 M-z d
12189 \begin_inset Newline newline
12190 \end_inset
12191
12192
12193 \family default
12194 What the 
12195 \family sans
12196 Speaker
12197 \family default
12198  says.
12199 \end_layout
12200
12201 \begin_layout Itemize
12202
12203 \family sans
12204 Transition
12205 \begin_inset space \hfill{}
12206 \end_inset
12207
12208 M-z t
12209 \begin_inset Newline newline
12210 \end_inset
12211
12212
12213 \family default
12214 Camera movement instruction.
12215  e.
12216 \begin_inset space \thinspace{}
12217 \end_inset
12218
12219 g.
12220 \begin_inset space \space{}
12221 \end_inset
12222
12223 CUT TO:
12224 \end_layout
12225
12226 \begin_layout Itemize
12227
12228 \family sans
12229 FADE OUT:
12230 \begin_inset space \hfill{}
12231 \end_inset
12232
12233 M-z S-I
12234 \end_layout
12235
12236 \begin_layout Itemize
12237
12238 \family sans
12239 Author
12240 \begin_inset space \hfill{}
12241 \end_inset
12242
12243 M-z S-A
12244 \end_layout
12245
12246 \begin_layout Itemize
12247
12248 \family sans
12249 Title
12250 \begin_inset space \hfill{}
12251 \end_inset
12252
12253 M-z S-T
12254 \end_layout
12255
12256 \begin_layout Itemize
12257
12258 \family sans
12259 Right_Address
12260 \begin_inset space \hfill{}
12261 \end_inset
12262
12263 M-z r
12264 \end_layout
12265
12266 \begin_layout Subsection
12267 Script jargon
12268 \end_layout
12269
12270 \begin_layout Itemize
12271 (O.S) — off screen
12272 \end_layout
12273
12274 \begin_layout Itemize
12275 (V.0) — voice over
12276 \end_layout
12277
12278 \begin_layout Itemize
12279 b.
12280 \begin_inset space \thinspace{}
12281 \end_inset
12282
12283 g.
12284  — background
12285 \end_layout
12286
12287 \begin_layout Itemize
12288 C.U.
12289  — close-up
12290 \end_layout
12291
12292 \begin_layout Itemize
12293 PAN — camera movement
12294 \end_layout
12295
12296 \begin_layout Itemize
12297 INSERT — cut to close-up of
12298 \end_layout
12299
12300 \begin_layout Section
12301 ijmpc and ijmpd
12302 \end_layout
12303
12304 \begin_layout Standard
12305 by 
12306 \noun on
12307 Panayotis Papasotiriou
12308 \end_layout
12309
12310 \begin_layout Subsection
12311 Overview
12312 \end_layout
12313
12314 \begin_layout Standard
12315 The ijmpc package is a set of macros that facilitates electronic manuscript
12316  submission to the 
12317 \emph on
12318 International Journal of Modern Physics C
12319 \emph default
12320 .
12321  Similarly, the ijmpd package is for creating manuscripts to be submitted
12322  to the 
12323 \emph on
12324 International Journal of Modern Physics D
12325 \emph default
12326 .
12327  Both journals are published by World Scientific.
12328  The corresponding document classes are named 
12329 \family typewriter
12330 ws-ijmpc.cls
12331 \family default
12332  and 
12333 \family typewriter
12334 ws-ijmpd.cls
12335 \family default
12336 , respectively.
12337  These files, together with instructions for the authors, can be downloaded
12338  from the sites 
12339 \begin_inset Flex URL
12340 status collapsed
12341
12342 \begin_layout Plain Layout
12343
12344 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12345 \end_layout
12346
12347 \end_inset
12348
12349  and 
12350 \begin_inset Flex URL
12351 status collapsed
12352
12353 \begin_layout Plain Layout
12354
12355 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12356 \end_layout
12357
12358 \end_inset
12359
12360 .
12361  Both packages are modified versions of the standard 
12362 \begin_inset Quotes eld
12363 \end_inset
12364
12365 article
12366 \begin_inset Quotes erd
12367 \end_inset
12368
12369  package, and they are almost (but not exactly) identical.
12370  Most of their features are supported by \SpecialChar LyX
12371 .
12372  I have used \SpecialChar LyX
12373  successfully to write articles submitted to both journals
12374  without any problem.
12375 \end_layout
12376
12377 \begin_layout Subsection
12378 Writing a paper
12379 \end_layout
12380
12381 \begin_layout Standard
12382 As usual, the easiest way to write a paper is to start with a template.
12383  Click on 
12384 \family sans
12385 File\SpecialChar menuseparator
12386 New from
12387 \family default
12388  
12389 \family sans
12390 Template
12391 \family default
12392 , then choose the 
12393 \family typewriter
12394 ijmpc.lyx
12395 \family default
12396  or 
12397 \family typewriter
12398 ijmpd.lyx
12399 \family default
12400  template.
12401  This will give an (almost) empty document that includes the most common
12402  fields found in a manuscript.
12403  Simply overwrite the existing text (including the brackets, 
12404 \family typewriter
12405 <>
12406 \family default
12407 ) with your text.
12408  You should keep in mind the following remarks.
12409 \end_layout
12410
12411 \begin_layout Enumerate
12412 \SpecialChar LyX
12413  won't let you change the font size and the page style of the document,
12414  because such modifications are not allowed by both packages.
12415 \end_layout
12416
12417 \begin_layout Enumerate
12418 The language of the document should not be changed.
12419  Before previewing your paper, be sure that the babel package is not used.
12420  To do this, click on 
12421 \family sans
12422 Tools\SpecialChar menuseparator
12423 Preferences
12424 \family default
12425 , select the 
12426 \family sans
12427 Lang Opts
12428 \family default
12429  tab, deselect the 
12430 \family sans
12431 Use babel
12432 \family default
12433  checkbox in the language settings, and click on 
12434 \family sans
12435 Apply
12436 \family default
12437  (or 
12438 \family sans
12439 Save
12440 \family default
12441 , if you wish to make this change permanent).
12442 \end_layout
12443
12444 \begin_layout Enumerate
12445 The 
12446 \begin_inset Quotes eld
12447 \end_inset
12448
12449 Keywords
12450 \begin_inset Quotes erd
12451 \end_inset
12452
12453  style must be used to define keywords.
12454 \end_layout
12455
12456 \begin_layout Enumerate
12457 The ijmpc package provides a style named 
12458 \begin_inset Quotes eld
12459 \end_inset
12460
12461 Classification Codes
12462 \begin_inset Quotes erd
12463 \end_inset
12464
12465 , which can be used to define classification codes, such as PACS numbers.
12466  Note that this facility is not supported by the ijmpd package.
12467 \end_layout
12468
12469 \begin_layout Enumerate
12470 Several new environments are available: 
12471 \begin_inset Quotes eld
12472 \end_inset
12473
12474 Definition
12475 \begin_inset Quotes erd
12476 \end_inset
12477
12478
12479 \begin_inset Quotes eld
12480 \end_inset
12481
12482 Step
12483 \begin_inset Quotes erd
12484 \end_inset
12485
12486
12487 \begin_inset Quotes eld
12488 \end_inset
12489
12490 Example
12491 \begin_inset Quotes erd
12492 \end_inset
12493
12494
12495 \begin_inset Quotes eld
12496 \end_inset
12497
12498 Remark
12499 \begin_inset Quotes erd
12500 \end_inset
12501
12502
12503 \begin_inset Quotes eld
12504 \end_inset
12505
12506 Notation
12507 \begin_inset Quotes erd
12508 \end_inset
12509
12510
12511 \begin_inset Quotes eld
12512 \end_inset
12513
12514 Theorem
12515 \begin_inset Quotes erd
12516 \end_inset
12517
12518
12519 \begin_inset Quotes eld
12520 \end_inset
12521
12522 Proof
12523 \begin_inset Quotes erd
12524 \end_inset
12525
12526
12527 \begin_inset Quotes eld
12528 \end_inset
12529
12530 Corollary
12531 \begin_inset Quotes erd
12532 \end_inset
12533
12534
12535 \begin_inset Quotes eld
12536 \end_inset
12537
12538 Lemma
12539 \begin_inset Quotes erd
12540 \end_inset
12541
12542
12543 \begin_inset Quotes eld
12544 \end_inset
12545
12546 Proposition
12547 \begin_inset Quotes erd
12548 \end_inset
12549
12550
12551 \begin_inset Quotes eld
12552 \end_inset
12553
12554 Prop
12555 \begin_inset Quotes erd
12556 \end_inset
12557
12558
12559 \begin_inset Quotes eld
12560 \end_inset
12561
12562 Question
12563 \begin_inset Quotes erd
12564 \end_inset
12565
12566
12567 \begin_inset Quotes eld
12568 \end_inset
12569
12570 Claim
12571 \begin_inset Quotes erd
12572 \end_inset
12573
12574 , and 
12575 \begin_inset Quotes eld
12576 \end_inset
12577
12578 Conjecture
12579 \begin_inset Quotes erd
12580 \end_inset
12581
12582 .
12583  Their use is more or less obvious.
12584  \SpecialChar LyX
12585  supports all these environments; it will use the proper label, text style,
12586  and numbering scheme for each of them.
12587 \end_layout
12588
12589 \begin_layout Enumerate
12590 Both packages use basic citations; the natbib package should not be used.
12591  In \SpecialChar LyX
12592 , citation references are shown as usual; in the output, citations are
12593  shown as superscripts.
12594  If you want to use a citation as normal text, you should use the 
12595 \family typewriter
12596 refcite
12597 \family default
12598  command, e.
12599 \begin_inset space \thinspace{}
12600 \end_inset
12601
12602 g.
12603 \begin_inset space \space{}
12604 \end_inset
12605
12606
12607 \begin_inset Quotes eld
12608 \end_inset
12609
12610 See Ref.
12611 \begin_inset space \space{}
12612 \end_inset
12613
12614
12615 \family typewriter
12616
12617 \backslash
12618 refcite{key}
12619 \family default
12620
12621 \begin_inset Quotes erd
12622 \end_inset
12623
12624 .
12625 \end_layout
12626
12627 \begin_layout Enumerate
12628 There is no 
12629 \begin_inset Quotes eld
12630 \end_inset
12631
12632 Acknowledgments
12633 \begin_inset Quotes erd
12634 \end_inset
12635
12636  section in both packages.
12637  To put acknowledgments, just use the 
12638 \begin_inset Quotes eld
12639 \end_inset
12640
12641 Section*
12642 \begin_inset Quotes erd
12643 \end_inset
12644
12645  environment.
12646 \end_layout
12647
12648 \begin_layout Enumerate
12649 Appendices may be added to the paper, 
12650 \emph on
12651 after
12652 \emph default
12653  the Acknowledgments and 
12654 \shape italic
12655 before
12656 \shape default
12657  the References.
12658  \SpecialChar LyX
12659  provides a special environment, called 
12660 \begin_inset Quotes eld
12661 \end_inset
12662
12663 Appendices Section
12664 \begin_inset Quotes erd
12665 \end_inset
12666
12667  which marks the beginning of the appendices.
12668  This environment should be left blank; it just sends a \SpecialChar LaTeX
12669  command, but nothing
12670  is really printed.
12671  In \SpecialChar LyX
12672 , the word 
12673 \begin_inset Quotes eld
12674 \end_inset
12675
12676 Appendix
12677 \begin_inset Quotes erd
12678 \end_inset
12679
12680  is printed with blue letters, as a signal that all sections after that
12681  point are appendices.
12682  To write an appendix, use the 
12683 \begin_inset Quotes eld
12684 \end_inset
12685
12686 Appendix
12687 \begin_inset Quotes erd
12688 \end_inset
12689
12690  environment.
12691  \SpecialChar LyX
12692  will number each appendix with capital letters, as required by both journals.
12693  Note that 
12694 \begin_inset Quotes eld
12695 \end_inset
12696
12697 Appendices Section
12698 \begin_inset Quotes erd
12699 \end_inset
12700
12701  
12702 \emph on
12703 must
12704 \emph default
12705  be present before the first appendix; if not, all appendices will be numbered
12706  as normal sections in the output.
12707 \end_layout
12708
12709 \begin_layout Enumerate
12710 The ijmpc and the ijmpd packages use the 
12711 \family typewriter
12712 tbl
12713 \family default
12714  command to implement table captions.
12715  As a result, a table created by \SpecialChar LyX
12716  is printed correctly, but its caption
12717  is ignored.
12718  However, you can use some \SpecialChar TeX
12719  code to overcome this problem, so that captions
12720  are printed as expected.
12721  To do so, create a float table as usual, remove the caption, and replace
12722  it with the \SpecialChar TeX
12723  code 
12724 \family typewriter
12725
12726 \backslash
12727 tbl{
12728 \emph on
12729 your table caption
12730 \emph default
12731 }{
12732 \family default
12733  (sic); you must also the \SpecialChar TeX
12734  code 
12735 \family typewriter
12736 }
12737 \family default
12738  immediately after the tabular material.
12739  Study the example table included in the template files to see how this
12740  trick is implemented.
12741  Alternatively, If you need table captions, you should implement the whole
12742  table float in a 
12743 \family typewriter
12744 .tex
12745 \family default
12746  file, then include this file to the \SpecialChar LyX
12747  document (
12748 \family sans
12749 Insert\SpecialChar menuseparator
12750 File\SpecialChar menuseparator
12751 Child
12752 \begin_inset space ~
12753 \end_inset
12754
12755 Document
12756 \family default
12757 ).
12758  Details on how to create a table float can be found in the files 
12759 \family typewriter
12760 ws-ijmpc.tex
12761 \family default
12762  and 
12763 \family typewriter
12764 ws-ijmpd.tex
12765 \family default
12766 , included in the corresponding packages.
12767 \end_layout
12768
12769 \begin_layout Subsection
12770 Preparing a paper for submission
12771 \end_layout
12772
12773 \begin_layout Standard
12774 Before you submit your paper you must export the \SpecialChar LyX
12775  document as a \SpecialChar LaTeX
12776  file (
12777 \family sans
12778 File\SpecialChar menuseparator
12779 Export\SpecialChar menuseparator
12780 \SpecialChar LaTeX
12781
12782 \family default
12783 )
12784 \begin_inset Foot
12785 status open
12786
12787 \begin_layout Plain Layout
12788 Actually you have the choice between \SpecialChar LaTeX
12789  (plain) and pdflatex.
12790  If you intend to use pdflatex to prepare the paper, you should use the
12791  pdflatex option so that included graphics are converted to PDF format,
12792  ready for use by pdflatex.
12793 \end_layout
12794
12795 \end_inset
12796
12797 , then make the following changes to the resulting 
12798 \family typewriter
12799 .tex
12800 \family default
12801  file.
12802 \end_layout
12803
12804 \begin_layout Enumerate
12805 Remove the comment lines before the 
12806 \family typewriter
12807
12808 \backslash
12809 documentclass
12810 \family default
12811  command.
12812 \end_layout
12813
12814 \begin_layout Enumerate
12815 Remove everything between (and including) the 
12816 \family typewriter
12817
12818 \backslash
12819 makeatletter
12820 \family default
12821  and 
12822 \family typewriter
12823
12824 \backslash
12825 makeatother
12826 \family default
12827  commands, except for any commands you specifically put into the \SpecialChar LaTeX
12828  preamble.
12829 \end_layout
12830
12831 \begin_layout Standard
12832 The modified 
12833 \family typewriter
12834 .tex
12835 \family default
12836  file should be saved and processed through \SpecialChar LaTeX
12837  as many times as necessary.
12838  You may also want to check the resulting 
12839 \family typewriter
12840 .dvi
12841 \family default
12842  document.
12843 \end_layout
12844
12845 \begin_layout Subsection
12846 Use of \SpecialChar TeX
12847  code
12848 \end_layout
12849
12850 \begin_layout Standard
12851 The use of \SpecialChar TeX
12852  code is reduced to two commands, which must be placed at the
12853  top of the document.
12854  If you started writing your paper by using the 
12855 \family typewriter
12856 ijmpc.lyx
12857 \family default
12858  or the 
12859 \family typewriter
12860 ijmpd.lyx
12861 \family default
12862  template, the \SpecialChar TeX
12863  code needed is already in its place; you usually don't need
12864  to delete it.
12865  You may only modify the first \SpecialChar TeX
12866  code to specify the information printed
12867  to the top of odd and even pages (authors' names and short paper's title,
12868  respectively).
12869  This \SpecialChar TeX
12870  code must have the form 
12871 \family typewriter
12872
12873 \backslash
12874 markboth{Authors' Names}{Short Paper's Title}
12875 \family default
12876 .
12877 \end_layout
12878
12879 \begin_layout Section
12880 iopart
12881 \end_layout
12882
12883 \begin_layout Standard
12884 by 
12885 \noun on
12886 Uwe Stöhr
12887 \end_layout
12888
12889 \begin_layout Subsection
12890 Overview
12891 \end_layout
12892
12893 \begin_layout Standard
12894 The iopart package provides a document class to create electronic manuscript
12895  submission to the journals published by the Institute of Physics.
12896  Instructions for the authors how to create a paper using the iopart class
12897  can be downloaded together with the iopart package from the site 
12898 \begin_inset Flex URL
12899 status collapsed
12900
12901 \begin_layout Plain Layout
12902
12903 ftp://ftp.iop.org/pub/journals/latex2e
12904 \end_layout
12905
12906 \end_inset
12907
12908 .
12909 \end_layout
12910
12911 \begin_layout Subsection
12912 Writing a paper
12913 \end_layout
12914
12915 \begin_layout Standard
12916 The easiest way to write a paper is to start with the file 
12917 \emph on
12918 IOP-article.lyx
12919 \emph default
12920  that is available in \SpecialChar LyX
12921 's examples files folder.
12922  Open this file, save it under a new name, and start writing.
12923  The example file explains how to use the special text environments.
12924  Here are the most important advices:
12925 \end_layout
12926
12927 \begin_layout Itemize
12928 To be able to compile your document to a PDF, PS, or DVI, ensure that the
12929  two options 
12930 \family sans
12931 Use AMS math package
12932 \family default
12933  in the document settings under 
12934 \family sans
12935 Math Options
12936 \family default
12937  are not used!
12938 \end_layout
12939
12940 \begin_layout Itemize
12941
12942 \size normal
12943 The title environment defines the kind of your paper.
12944  So use one of the following environments for the title:
12945 \end_layout
12946
12947 \begin_deeper
12948 \begin_layout Itemize
12949
12950 \family sans
12951 \size normal
12952 Title
12953 \family default
12954  for a Paper
12955 \end_layout
12956
12957 \begin_layout Itemize
12958
12959 \family sans
12960 \size normal
12961 Review
12962 \family default
12963  for a Review
12964 \end_layout
12965
12966 \begin_layout Itemize
12967
12968 \family sans
12969 \size normal
12970 Topical
12971 \family default
12972  for a Topical review
12973 \end_layout
12974
12975 \begin_layout Itemize
12976
12977 \family sans
12978 \size normal
12979 Comment
12980 \family default
12981  for a Comment
12982 \end_layout
12983
12984 \begin_layout Itemize
12985
12986 \family sans
12987 \size normal
12988 Note
12989 \family default
12990  for a Note
12991 \end_layout
12992
12993 \begin_layout Itemize
12994
12995 \family sans
12996 \size normal
12997 Paper
12998 \family default
12999  for a Paper (same as Title)
13000 \end_layout
13001
13002 \begin_layout Itemize
13003
13004 \family sans
13005 \size normal
13006 Prelim
13007 \family default
13008  for a Preliminary communication
13009 \end_layout
13010
13011 \begin_layout Itemize
13012
13013 \family sans
13014 \size normal
13015 Rapid
13016 \family default
13017  for a Rapid communication
13018 \end_layout
13019
13020 \begin_layout Itemize
13021
13022 \family sans
13023 \size normal
13024 Letter
13025 \family default
13026  for a Letter to the editor
13027 \end_layout
13028
13029 \end_deeper
13030 \begin_layout Itemize
13031
13032 \size normal
13033 All title environments except of 
13034 \family sans
13035 Letter
13036 \family default
13037  can have an optional short title.
13038 \end_layout
13039
13040 \begin_layout Itemize
13041 There is a general title environment 
13042 \family sans
13043 Article
13044 \family default
13045  which is not directly supported by the \SpecialChar LyX
13046 .
13047  This can be used as \SpecialChar TeX
13048  code when your document doesn't fit into one of the
13049  other title types.
13050 \end_layout
13051
13052 \begin_layout Standard
13053 For more informations like hints for special table and formula formatting,
13054  look at the IOP author guidelines.
13055 \end_layout
13056
13057 \begin_layout Section
13058 Kluwer
13059 \end_layout
13060
13061 \begin_layout Standard
13062 by 
13063 \noun on
13064 Panayotis Papasotiriou
13065 \end_layout
13066
13067 \begin_layout Subsection
13068 Overview
13069 \end_layout
13070
13071 \begin_layout Standard
13072 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13073  that facilitates electronic manuscript submission to the journals they
13074  publish.
13075  Most known of them (at least in my domain of interest) are 
13076 \emph on
13077 Astrophysics and Space Science
13078 \emph default
13079  and 
13080 \emph on
13081 Solar Physics
13082 \emph default
13083 , but there are many others (see a complete list at 
13084 \begin_inset Flex URL
13085 status open
13086
13087 \begin_layout Plain Layout
13088
13089 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13090 \end_layout
13091
13092 \end_inset
13093
13094 ).
13095  The Kluwer package may be downloaded from the site 
13096 \begin_inset Flex URL
13097 status collapsed
13098
13099 \begin_layout Plain Layout
13100
13101 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13102 \end_layout
13103
13104 \end_inset
13105
13106 .
13107  A complete user guide is contained in that package (but it can also be
13108  downloaded separately).
13109 \end_layout
13110
13111 \begin_layout Standard
13112 \SpecialChar LyX
13113  supports many features of the package but not everything.
13114  However, the \SpecialChar TeX
13115  code needed is reduced to some 
13116 \begin_inset Quotes eld
13117 \end_inset
13118
13119 peculiar
13120 \begin_inset Quotes erd
13121 \end_inset
13122
13123  commands of the package (see
13124 \begin_inset space ~
13125 \end_inset
13126
13127
13128 \begin_inset CommandInset ref
13129 LatexCommand ref
13130 reference "subsec:kluwer_peculiarities"
13131
13132 \end_inset
13133
13134 ).
13135  I have recently used \SpecialChar LyX
13136  to write an article submitted to the 
13137 \emph on
13138 Astrophysics and Space Science
13139 \emph default
13140  without any problem.
13141 \end_layout
13142
13143 \begin_layout Subsection
13144 Writing a paper
13145 \end_layout
13146
13147 \begin_layout Standard
13148 The easiest way to write a paper is to start with the Kluwer template file.
13149  Click on 
13150 \family sans
13151 File\SpecialChar menuseparator
13152 New from
13153 \family default
13154  
13155 \family sans
13156 Template
13157 \family default
13158 , then choose the 
13159 \family typewriter
13160 kluwer.lyx
13161 \family default
13162  template.
13163  This will give an (almost) empty document that includes the most common
13164  fields found in a manuscript and a short description of their use.
13165  As in most templates, simply overwrite the existing text (including the
13166  brackets, 
13167 \family typewriter
13168 <>
13169 \family default
13170 ) with the correct information.
13171 \end_layout
13172
13173 \begin_layout Subsection
13174 Preparing a paper for submission
13175 \end_layout
13176
13177 \begin_layout Standard
13178 As in the AAS\SpecialChar TeX
13179  package, before you submit your paper to a journal you must
13180  
13181 \begin_inset Quotes eld
13182 \end_inset
13183
13184 postprocess
13185 \begin_inset Quotes erd
13186 \end_inset
13187
13188  it as follows.
13189 \end_layout
13190
13191 \begin_layout Enumerate
13192 Export your paper as a \SpecialChar LaTeX
13193  file.
13194  To do this, click on 
13195 \family sans
13196 File\SpecialChar menuseparator
13197 Export\SpecialChar menuseparator
13198 \SpecialChar LaTeX
13199
13200 \family default
13201 .
13202  
13203 \end_layout
13204
13205 \begin_layout Enumerate
13206 Edit the resulting 
13207 \family typewriter
13208 .tex
13209 \family default
13210  file with a text editor and make the following changes
13211 \end_layout
13212
13213 \begin_deeper
13214 \begin_layout Enumerate
13215 remove the comment lines before the 
13216 \family typewriter
13217
13218 \backslash
13219 documentclass
13220 \family default
13221  command,
13222 \end_layout
13223
13224 \begin_layout Enumerate
13225 remove everything between (and including) the 
13226 \family typewriter
13227
13228 \backslash
13229 makeatletter
13230 \family default
13231  and 
13232 \family typewriter
13233
13234 \backslash
13235 makeatother
13236 \family default
13237  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13238  preamble.
13239 \end_layout
13240
13241 \begin_layout Standard
13242 Save the resulting 
13243 \family typewriter
13244 .tex
13245 \family default
13246  file.
13247 \end_layout
13248
13249 \end_deeper
13250 \begin_layout Enumerate
13251 Run the 
13252 \family typewriter
13253 .tex
13254 \family default
13255  file through \SpecialChar LaTeX
13256  as many times as necessary (usually up to three).
13257 \end_layout
13258
13259 \begin_layout Enumerate
13260 View the resulting 
13261 \family typewriter
13262 .dvi
13263 \family default
13264  document using, e.
13265 \begin_inset space \thinspace{}
13266 \end_inset
13267
13268 g.
13269 \begin_inset space \space{}
13270 \end_inset
13271
13272
13273 \family sans
13274 xdvi
13275 \family default
13276 , and check if everything is OK (it should, if you didn't make any mistake).
13277 \end_layout
13278
13279 \begin_layout Subsection
13280 \begin_inset Quotes eld
13281 \end_inset
13282
13283 Peculiarities
13284 \begin_inset Quotes erd
13285 \end_inset
13286
13287  of the Kluwer package
13288 \begin_inset CommandInset label
13289 LatexCommand label
13290 name "subsec:kluwer_peculiarities"
13291
13292 \end_inset
13293
13294
13295 \end_layout
13296
13297 \begin_layout Standard
13298 The Kluwer package has the following 
13299 \begin_inset Quotes eld
13300 \end_inset
13301
13302 peculiarities
13303 \begin_inset Quotes erd
13304 \end_inset
13305
13306 .
13307 \end_layout
13308
13309 \begin_layout Enumerate
13310 It is possible to write multiple articles in the same \SpecialChar LaTeX
13311  file
13312 \begin_inset Foot
13313 status collapsed
13314
13315 \begin_layout Plain Layout
13316 I can't imagine any good reason to do this.
13317 \end_layout
13318
13319 \end_inset
13320
13321 .
13322  Each article must be included in the environment 
13323 \begin_inset Quotes eld
13324 \end_inset
13325
13326 article
13327 \begin_inset Quotes erd
13328 \end_inset
13329
13330 .
13331  Unfortunately, this environment cannot be omitted, even if you write just
13332  one article.
13333  Therefore, each article starts with the command 
13334 \family typewriter
13335
13336 \backslash
13337 begin{article}
13338 \family default
13339  and, obviously, ends with the command 
13340 \family typewriter
13341
13342 \backslash
13343 end{article}
13344 \family default
13345 .
13346  Although this can be implemented in \SpecialChar LyX
13347 , I didn't included it, since it looks
13348  ugly and can confuse the novice user.
13349  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13350  code (the
13351  well-known 
13352 \begin_inset Quotes eld
13353 \end_inset
13354
13355 \SpecialChar TeX
13356  code
13357 \begin_inset Quotes erd
13358 \end_inset
13359
13360 ).
13361 \end_layout
13362
13363 \begin_layout Enumerate
13364 Information given at the beginning of the article (i.
13365 \begin_inset space \thinspace{}
13366 \end_inset
13367
13368 e.
13369 \begin_inset space \space{}
13370 \end_inset
13371
13372 title, subtitle, author, institution, running title, running author, abstract
13373  and keywords) must be included in an environment called 
13374 \begin_inset Quotes eld
13375 \end_inset
13376
13377 opening
13378 \begin_inset Quotes erd
13379 \end_inset
13380
13381 .
13382  This is not implemented in \SpecialChar LyX
13383 , so you must enter title, subtitle etc.
13384 \begin_inset space ~
13385 \end_inset
13386
13387 between two \SpecialChar TeX
13388  code lines (
13389 \family typewriter
13390
13391 \backslash
13392 begin{opening}
13393 \family default
13394  and 
13395 \family typewriter
13396
13397 \backslash
13398 end{opening}
13399 \family default
13400 ).
13401 \end_layout
13402
13403 \begin_layout Enumerate
13404 According to the user manual, the label of each bibliography item must be
13405  written as 
13406 \family typewriter
13407
13408 \backslash
13409 protect
13410 \backslash
13411 citeauthoryear{
13412 \family default
13413 \emph on
13414 author(s)
13415 \family typewriter
13416 \emph default
13417 }{
13418 \family default
13419 \emph on
13420 year
13421 \family typewriter
13422 \emph default
13423 }
13424 \family default
13425 .
13426 \end_layout
13427
13428 \begin_layout Standard
13429 The 
13430 \family typewriter
13431 kluwer.lyx
13432 \family default
13433  template takes care of all these 
13434 \begin_inset Quotes eld
13435 \end_inset
13436
13437 peculiarities
13438 \begin_inset Quotes erd
13439 \end_inset
13440
13441 .
13442  If you start a new paper using this template you don't need to do anything
13443  special.
13444  Just 
13445 \end_layout
13446
13447 \begin_layout Enumerate
13448 don't delete the \SpecialChar TeX
13449  code included in the template, and
13450 \end_layout
13451
13452 \begin_layout Enumerate
13453 copy the example bibliography item included in the template and modify it
13454  as necessary to enter new bibliography items.
13455 \end_layout
13456
13457 \begin_layout Section
13458 Koma-Script
13459 \end_layout
13460
13461 \begin_layout Standard
13462 by 
13463 \noun on
13464 Bernd Rellermeyer
13465 \end_layout
13466
13467 \begin_layout Subsection
13468 Overview
13469 \end_layout
13470
13471 \begin_layout Standard
13472 The \SpecialChar LyX
13473  document classes 
13474 \emph on
13475 article (koma-script)
13476 \emph default
13477
13478 \emph on
13479 report (koma-script)
13480 \emph default
13481
13482 \emph on
13483 book
13484 \emph default
13485  
13486 \emph on
13487 (koma-script)
13488 \emph default
13489 , and 
13490 \emph on
13491 letter
13492 \emph default
13493  
13494 \emph on
13495 (koma-script)
13496 \emph default
13497  correspond to the \SpecialChar LaTeX
13498  document classes 
13499 \family typewriter
13500 scrartcl.cls
13501 \family default
13502
13503 \family typewriter
13504 scrreprt.cls
13505 \family default
13506
13507 \family typewriter
13508 scrbook.cls
13509 \family default
13510 , and 
13511 \family typewriter
13512 scrlettr.cls
13513 \family default
13514 , resp.
13515 \begin_inset space ~
13516 \end_inset
13517
13518 of the Koma-Script family.
13519  They are replacements for the standard document classes 
13520 \family typewriter
13521 article.cls
13522 \family default
13523
13524 \family typewriter
13525 report.cls
13526 \family default
13527
13528 \family typewriter
13529 book.cls
13530 \family default
13531  and 
13532 \family typewriter
13533 letter.cls
13534 \family default
13535 , resp., and fit better to European typography conventions in a number of
13536  points.
13537 \end_layout
13538
13539 \begin_layout Itemize
13540 Standard character size is 11pt in 
13541 \emph on
13542 article (koma-script)
13543 \emph default
13544
13545 \emph on
13546 report (koma-script)
13547 \emph default
13548 , and 
13549 \emph on
13550 book (koma-script)
13551 \emph default
13552 , and 12pt in 
13553 \emph on
13554 letter (koma-script)
13555 \emph default
13556 .
13557 \end_layout
13558
13559 \begin_layout Itemize
13560 Headings, labels of the description environment, and a number of elements
13561  of the 
13562 \emph on
13563 letter (koma-script)
13564 \emph default
13565  document class are set in a bold sans serif font.
13566 \begin_inset Foot
13567 status collapsed
13568
13569 \begin_layout Plain Layout
13570 There is a big difference between the bold sans serif old cm fonts and new
13571  ec fonts, especially in the appearance of headings.
13572  In comparison, the ec bold sans serif fonts look a bit thin.
13573  Here the \SpecialChar LaTeX
13574  package 
13575 \family typewriter
13576 cmsd.sty by
13577 \family default
13578  
13579 \shape smallcaps
13580 Walter Schmidt
13581 \shape default
13582  helps to produce the 
13583 \begin_inset Quotes eld
13584 \end_inset
13585
13586 usual
13587 \begin_inset Quotes erd
13588 \end_inset
13589
13590  appearance when using the ec fonts.
13591 \end_layout
13592
13593 \end_inset
13594
13595  The numbering of chapter headings is made in the same way as the numbering
13596  of section headings, that is without the extra line 
13597 \begin_inset Quotes eld
13598 \end_inset
13599
13600 Chapter\SpecialChar ldots
13601
13602 \begin_inset Quotes erd
13603 \end_inset
13604
13605 .
13606  In addition, the appearance of the headings can be modified by using a
13607  number of options (in \SpecialChar LyX
13608  to be entered in the field 
13609 \family sans
13610 Extra
13611 \begin_inset space ~
13612 \end_inset
13613
13614 Options
13615 \family default
13616  of the dialog 
13617 \family sans
13618 Layout\SpecialChar menuseparator
13619 Document
13620 \family default
13621 ).
13622  
13623 \end_layout
13624
13625 \begin_layout Itemize
13626 The main means in the Koma-Script document classes to design the type area
13627  are the options 
13628 \family sans
13629 BCOR
13630 \family default
13631  and 
13632 \family sans
13633 DIV
13634 \family default
13635  (in \SpecialChar LyX
13636  to be entered in the extra class options field in the dialog 
13637 \family sans
13638 Document\SpecialChar menuseparator
13639 Settings
13640 \family default
13641 ).
13642  They make a clearer modification of page margins possible as do the options
13643  of the dialog 
13644 \family sans
13645 Document\SpecialChar menuseparator
13646 Settings
13647 \family default
13648 .
13649  
13650 \end_layout
13651
13652 \begin_layout Itemize
13653 The \SpecialChar LaTeX
13654  document classes of the Koma-Script family define a number of additional
13655  commands.
13656  Those part of it which makes sense in \SpecialChar LyX
13657  is implemented in corresponding
13658  paragraph types.
13659 \end_layout
13660
13661 \begin_layout Standard
13662 Detailed descriptions of the \SpecialChar LaTeX
13663  document classes of the Koma-Script family
13664  can be found in the Koma-Script documentation 
13665 \emph on
13666 scrguide
13667 \emph default
13668  (German) and 
13669 \emph on
13670 scrguien
13671 \emph default
13672  (English).
13673 \end_layout
13674
13675 \begin_layout Subsection
13676 article (koma-script), report (koma-script), and book (koma-script)
13677 \end_layout
13678
13679 \begin_layout Standard
13680 The document classes 
13681 \emph on
13682 article (koma-script)
13683 \emph default
13684
13685 \emph on
13686 report (koma-script)
13687 \emph default
13688 , and 
13689 \emph on
13690 book
13691 \emph default
13692  
13693 \emph on
13694 (koma-script)
13695 \emph default
13696  are implemented in the layout files 
13697 \family typewriter
13698 scrartcl.layout
13699 \family default
13700
13701 \family typewriter
13702 scrreprt.layout
13703 \family default
13704 , and 
13705 \family typewriter
13706 scrbook.layout
13707 \family default
13708 , resp.
13709  They contain all the paragraph types of the corresponding standard document
13710  classes 
13711 \emph on
13712 article
13713 \emph default
13714
13715 \emph on
13716 report
13717 \emph default
13718 , and 
13719 \emph on
13720 book
13721 \emph default
13722 , resp., partly modified, with the exception of the \SpecialChar LyX
13723  specific 
13724 \family sans
13725 List
13726 \family default
13727 -type, which is replaced by the new 
13728 \family sans
13729 Labeling
13730 \family default
13731 -type having the same functionality.
13732  Beside the 
13733 \family sans
13734 Labeling
13735 \family default
13736 -Type there is a number of new paragraph types added.
13737  They are 
13738 \emph on
13739 not
13740 \emph default
13741  part of 
13742 \emph on
13743 letter (koma-script)
13744 \emph default
13745 .
13746 \end_layout
13747
13748 \begin_layout Itemize
13749
13750 \family sans
13751 Addpart, Addchap
13752 \family default
13753
13754 \family sans
13755 Addsec
13756 \family default
13757 : are equivalents to 
13758 \family sans
13759 Part*, Chapter*
13760 \family default
13761  and 
13762 \family sans
13763 Section*
13764 \family default
13765 , resp., additionally inserting an entry in the table of contents.
13766  
13767 \family sans
13768 Addpart
13769 \family default
13770  and 
13771 \family sans
13772 Addchap
13773 \family default
13774  are not contained in 
13775 \emph on
13776 article (koma-script)
13777 \emph default
13778 .
13779 \end_layout
13780
13781 \begin_layout Itemize
13782
13783 \family sans
13784 Addchap*
13785 \family default
13786
13787 \family sans
13788 Addsec*
13789 \family default
13790 : behave exactly as 
13791 \family sans
13792 Addchap
13793 \family default
13794  and 
13795 \family sans
13796 Addsec
13797 \family default
13798 , resp., additionally clearing running heads.
13799  
13800 \family sans
13801 Addchap*
13802 \family default
13803  is not contained in 
13804 \emph on
13805 article (koma-script)
13806 \emph default
13807 .
13808 \begin_inset Foot
13809 status collapsed
13810
13811 \begin_layout Plain Layout
13812 There is also an 
13813 \family typewriter
13814
13815 \backslash
13816 addpart*
13817 \family default
13818  command in 
13819 \emph on
13820 book (koma-script)
13821 \emph default
13822  and in 
13823 \emph on
13824 report (koma-script)
13825 \emph default
13826 , but since this is identical to 
13827 \family sans
13828 Part*
13829 \family default
13830 , is has not been implemented in \SpecialChar LyX
13831 .
13832 \end_layout
13833
13834 \end_inset
13835
13836
13837 \end_layout
13838
13839 \begin_layout Itemize
13840
13841 \family sans
13842 Minisec
13843 \family default
13844 : generates a heading directly above the following paragraph in the standard
13845  character size without affecting the structure of the document.
13846 \end_layout
13847
13848 \begin_layout Itemize
13849
13850 \family sans
13851 Captionabove
13852 \family default
13853  and 
13854 \family sans
13855 Captionbelow
13856 \family default
13857  are special captions which respect the different space settings needed
13858  for captions placed above or below an element (if you follow strict typographic
13859  rules, you might want to place table captions always above the table).
13860  You can also use the class option 
13861 \family typewriter
13862 tablecaptionsabove
13863 \family default
13864 , which will switch 
13865 \family sans
13866 caption
13867 \family default
13868  to 
13869 \family sans
13870 captionabove
13871 \family default
13872  for tables and 
13873 \family sans
13874 captionbelow
13875 \family default
13876  for figures.
13877  You need at least Koma-Script version 2.8q to use this.
13878 \end_layout
13879
13880 \begin_layout Itemize
13881
13882 \family sans
13883 Dictum
13884 \family default
13885 : can be used to set a bonmot, e.
13886 \begin_inset space \thinspace{}
13887 \end_inset
13888
13889 g.
13890 \begin_inset space \space{}
13891 \end_inset
13892
13893 at the beginning of a chapter.
13894  If you use the optional argument (
13895 \family sans
13896 Insert\SpecialChar menuseparator
13897 Short
13898 \begin_inset space ~
13899 \end_inset
13900
13901 Title
13902 \family default
13903 ), you can insert the dictum's author there.
13904  Dictum and author are separated by a line.
13905  You need at least Koma-Script version 2.8q to use this.
13906  
13907 \family sans
13908 Dictum
13909 \family default
13910  is not contained in 
13911 \emph on
13912 article (koma-script)
13913 \emph default
13914 .
13915 \end_layout
13916
13917 \begin_layout Standard
13918 The following types, together with the standard types 
13919 \family sans
13920 Title
13921 \family default
13922
13923 \family sans
13924 Author
13925 \family default
13926 , and 
13927 \family sans
13928 Date
13929 \family default
13930 , form the title area of the document.
13931  They must be entered ahead of the first 
13932 \begin_inset Quotes eld
13933 \end_inset
13934
13935 ordinary
13936 \begin_inset Quotes erd
13937 \end_inset
13938
13939  paragraph.
13940 \begin_inset Foot
13941 status collapsed
13942
13943 \begin_layout Plain Layout
13944 The corresponding \SpecialChar LaTeX
13945  commands must appear before the 
13946 \family typewriter
13947
13948 \backslash
13949 maketitle
13950 \family default
13951  command.
13952 \end_layout
13953
13954 \end_inset
13955
13956  When such a type is used more than once, the latter usage overwrites the
13957  former one, that means, for every type only the latest usage is valid.
13958  The order of the different types however has, like 
13959 \family sans
13960 Title
13961 \family default
13962
13963 \family sans
13964 Author
13965 \family default
13966 , and 
13967 \family sans
13968 Date
13969 \family default
13970 , no effect on the appearance of the produced document.
13971 \end_layout
13972
13973 \begin_layout Itemize
13974
13975 \family sans
13976 Subject
13977 \family default
13978 : produces a centered paragraph above the ordinary title (
13979 \family sans
13980 Title
13981 \family default
13982
13983 \family sans
13984 Author
13985 \family default
13986
13987 \family sans
13988 Date
13989 \family default
13990 ) for the subject of the document.
13991 \end_layout
13992
13993 \begin_layout Itemize
13994
13995 \family sans
13996 Publishers
13997 \family default
13998 : produces a centered paragraph below the ordinary title (
13999 \family sans
14000 Title
14001 \family default
14002
14003 \family sans
14004 Author
14005 \family default
14006
14007 \family sans
14008 Date
14009 \family default
14010 ) for the publishers' name.
14011 \end_layout
14012
14013 \begin_layout Itemize
14014
14015 \family sans
14016 Dedication
14017 \family default
14018 : in 
14019 \emph on
14020 report (koma-script)
14021 \emph default
14022  and 
14023 \emph on
14024 book (koma-script)
14025 \emph default
14026  produces a centered paragraph on its own page behind the title page, or
14027  in 
14028 \emph on
14029 article (koma-script)
14030 \emph default
14031  produces a centered paragraph below the ordinary title (
14032 \family sans
14033 Title
14034 \family default
14035
14036 \family sans
14037 Author
14038 \family default
14039
14040 \family sans
14041 Date
14042 \family default
14043
14044 \family sans
14045 Publishers
14046 \family default
14047 ) for a dedication.
14048 \end_layout
14049
14050 \begin_layout Itemize
14051
14052 \family sans
14053 Titlehead
14054 \family default
14055 : produces a left aligned paragraph above the ordinary title (
14056 \family sans
14057 Title
14058 \family default
14059
14060 \family sans
14061 Author
14062 \family default
14063
14064 \family sans
14065 Date
14066 \family default
14067
14068 \family sans
14069 Subject
14070 \family default
14071 ) for a document`s head.
14072 \end_layout
14073
14074 \begin_layout Itemize
14075
14076 \family sans
14077 Uppertitleback
14078 \family default
14079 : produces in a double-sided print in 
14080 \emph on
14081 report (koma-script)
14082 \emph default
14083  and 
14084 \emph on
14085 book (koma-script)
14086 \emph default
14087  a left-aligned paragraph at the top of the title page`s back or has no
14088  effect in a single-sided print or in 
14089 \emph on
14090 article (koma-script)
14091 \emph default
14092 .
14093 \end_layout
14094
14095 \begin_layout Itemize
14096
14097 \family sans
14098 Lowertitleback
14099 \family default
14100 : produces in a double-sided print in 
14101 \emph on
14102 report (koma-script)
14103 \emph default
14104  and 
14105 \emph on
14106 book (koma-script)
14107 \emph default
14108  a left-aligned paragraph at the bottom of the title page`s back or has
14109  no effect in a single-sided print or in 
14110 \emph on
14111 article (koma-script)
14112 \emph default
14113 .
14114 \end_layout
14115
14116 \begin_layout Itemize
14117
14118 \family sans
14119 Extratitle
14120 \family default
14121 : produces a special 
14122 \begin_inset Quotes eld
14123 \end_inset
14124
14125 dirty
14126 \begin_inset Quotes erd
14127 \end_inset
14128
14129  page ahead of the actual document containing a paragraph without special
14130  formatting.
14131 \end_layout
14132
14133 \begin_layout Standard
14134 The layout files for the document classes 
14135 \emph on
14136 article (koma-script)
14137 \emph default
14138
14139 \emph on
14140 report (koma-script)
14141 \emph default
14142 , and 
14143 \emph on
14144 book (koma-script)
14145 \emph default
14146  do include the file 
14147 \family typewriter
14148 scrmacros.inc
14149 \family default
14150 .
14151  This is thought of as a place to define your own types.
14152  Copy scrmacros
14153 \family typewriter
14154 .inc
14155 \family default
14156  in your personal layout directory and edit the file!
14157 \end_layout
14158
14159 \begin_layout Subsection
14160 letter (koma-script)
14161 \end_layout
14162
14163 \begin_layout Standard
14164 \noindent
14165 The document class 
14166 \emph on
14167 letter (koma-script)
14168 \emph default
14169  is implemented in the layout file 
14170 \family typewriter
14171 scrlettr.layout
14172 \family default
14173 .
14174  It contains all the paragraph types of the corresponding standard document
14175  class 
14176 \emph on
14177 letter
14178 \emph default
14179 , partly modified, with the exception of the \SpecialChar LyX
14180  specific types 
14181 \family sans
14182 \SpecialChar LyX
14183 -Code
14184 \family default
14185  and 
14186 \family sans
14187 Comment
14188 \family default
14189  and the 
14190 \family sans
14191 List
14192 \family default
14193  type, which is replaced by the new 
14194 \family sans
14195 Labeling
14196 \family default
14197  type.
14198  In addition, it contains, in contrast to the standard document class, the
14199  standard types 
14200 \family sans
14201 \SpecialChar LaTeX
14202
14203 \family default
14204
14205 \family sans
14206 Quotation
14207 \family default
14208
14209 \family sans
14210 Quote
14211 \family default
14212 , and 
14213 \family sans
14214 Verse
14215 \family default
14216 .
14217  Furthermore, there are a number of new letter specific types.
14218 \end_layout
14219
14220 \begin_layout Standard
14221 The appearance of the letter produced by this document class can be controlled
14222  by a number of \SpecialChar LaTeX
14223  commands, which you can put in the \SpecialChar LaTeX
14224  preamble.
14225 \begin_inset Foot
14226 status collapsed
14227
14228 \begin_layout Plain Layout
14229 For example, the standard appearance of the letter`s heading, consisting
14230  of name and address, is quite self-willed.
14231  An 
14232 \begin_inset Quotes eld
14233 \end_inset
14234
14235 ordinary
14236 \begin_inset Quotes erd
14237 \end_inset
14238
14239  heading is produced by the following \SpecialChar LaTeX
14240  commands in the preamble:
14241 \end_layout
14242
14243 \begin_layout LyX-Code
14244
14245 \backslash
14246 firsthead{
14247 \backslash
14248 parbox[b]{
14249 \backslash
14250 textwidth}
14251 \end_layout
14252
14253 \begin_layout LyX-Code
14254   {
14255 \backslash
14256 ignorespaces 
14257 \backslash
14258 fromname
14259 \backslash
14260
14261 \backslash
14262  
14263 \backslash
14264 ignorespaces 
14265 \backslash
14266 fromaddress}} 
14267 \end_layout
14268
14269 \begin_layout LyX-Code
14270
14271 \backslash
14272 nexthead{
14273 \backslash
14274 parbox[b]{
14275 \backslash
14276 textwidth}
14277 \end_layout
14278
14279 \begin_layout LyX-Code
14280   {
14281 \backslash
14282 ignorespaces 
14283 \backslash
14284 fromname 
14285 \backslash
14286 hfill 
14287 \backslash
14288 ignorespaces 
14289 \backslash
14290 pagename
14291 \backslash
14292  
14293 \backslash
14294 thepage}}
14295 \end_layout
14296
14297 \end_inset
14298
14299  A detailed German description of such \SpecialChar LaTeX
14300  commands can be found in the Koma-Script
14301  documentation 
14302 \emph on
14303 scrguide
14304 \emph default
14305 .
14306  With it, the letter's author can produce his personal letter layout.
14307 \end_layout
14308
14309 \begin_layout Standard
14310 The types 
14311 \family sans
14312 Letter
14313 \family default
14314  and 
14315 \family sans
14316 Opening
14317 \family default
14318  define the beginning of the letter and must be used in every letter.
14319  To emphasize them in the \SpecialChar LyX
14320  document class, they are marked with the letter
14321  
14322 \shape italic
14323 L
14324 \shape default
14325  or 
14326 \shape italic
14327 O
14328 \shape default
14329 , resp.
14330 \begin_inset space ~
14331 \end_inset
14332
14333 in the left margin.
14334  It is possible to write any number of letters in one file.
14335  An 
14336 \family sans
14337 Opening
14338 \family default
14339  type produces a new letter using the same addressee and a 
14340 \family sans
14341 Letter
14342 \family default
14343  type produces a new addressee.
14344  The types 
14345 \family sans
14346 Closing
14347 \family default
14348
14349 \family sans
14350 PS
14351 \family default
14352
14353 \family sans
14354 CC
14355 \family default
14356 , and 
14357 \family sans
14358 Encl
14359 \family default
14360  are ordinary paragraph types and can also be used several times in one
14361  and the same letter.
14362 \end_layout
14363
14364 \begin_layout Itemize
14365
14366 \family sans
14367 Letter
14368 \family default
14369 : produces a paragraph for the addressee and implicitly defines the beginning
14370  of the letter.
14371 \end_layout
14372
14373 \begin_layout Itemize
14374
14375 \family sans
14376 Opening
14377 \family default
14378 : produces a paragraph for the form of address and implicitly produces a
14379  new letter.
14380 \end_layout
14381
14382 \begin_layout Itemize
14383
14384 \family sans
14385 Closing
14386 \family default
14387 : produces a paragraph for a close.
14388 \end_layout
14389
14390 \begin_layout Itemize
14391
14392 \family sans
14393 PS
14394 \family default
14395 : produces a paragraph for a postscript.
14396 \end_layout
14397
14398 \begin_layout Itemize
14399
14400 \family sans
14401 CC
14402 \family default
14403 : produces a paragraph for a distribution list.
14404 \end_layout
14405
14406 \begin_layout Itemize
14407
14408 \family sans
14409 Encl
14410 \family default
14411 : produces a paragraph for enclosures.
14412 \end_layout
14413
14414 \begin_layout Standard
14415 The types 
14416 \family sans
14417 Name
14418 \family default
14419
14420 \family sans
14421 Signature
14422 \family default
14423
14424 \family sans
14425 Address
14426 \family default
14427
14428 \family sans
14429 Telephone
14430 \family default
14431
14432 \family sans
14433 Place
14434 \family default
14435
14436 \family sans
14437 Backaddress
14438 \family default
14439
14440 \family sans
14441 Specialmail
14442 \family default
14443
14444 \family sans
14445 Location
14446 \family default
14447
14448 \family sans
14449 Title
14450 \family default
14451 , and 
14452 \family sans
14453 Subject
14454 \family default
14455  are input types provided with a label to enter information, which will
14456  be processed by the document class.
14457 \begin_inset Foot
14458 status open
14459
14460 \begin_layout Plain Layout
14461 It could be seen as a matter of inconsequence, that the types 
14462 \family sans
14463 Letter
14464 \family default
14465  and 
14466 \family sans
14467 Opening
14468 \family default
14469  described above are not such input types as well.
14470  Because of the special meaning of those types, however, I have implemented
14471  them as ordinary paragraph types with a one letter mark in the left margin.
14472  Moreover, it would affect my feeling of symmetry, if the 
14473 \family sans
14474 Opening
14475 \family default
14476  type and the 
14477 \family sans
14478 Closing
14479 \family default
14480  type had such a serious different appearance.
14481 \end_layout
14482
14483 \end_inset
14484
14485  The types must be used ahead of the corresponding 
14486 \family sans
14487 Opening
14488 \family default
14489  type.
14490 \end_layout
14491
14492 \begin_layout Standard
14493 An implementation of these types in a WYSIWYG fashion does not seem to make
14494  sense, because the real appearance of the produced letter does not only
14495  depend on the usage of the particular type, but also on other factors.
14496  For example, a signature entered in the 
14497 \family sans
14498 Signature
14499 \family default
14500  type will in the standard behavior appear in the produced letter only,
14501  when in the same letter also a 
14502 \family sans
14503 Closing
14504 \family default
14505  type is used.
14506  The entered value of the 
14507 \family sans
14508 Telephone
14509 \family default
14510  type will in the standard behavior not appear in the produced letter at
14511  all.
14512  The possibility to design the letter`s heading freely is already indicated
14513  in a footnote above.
14514 \end_layout
14515
14516 \begin_layout Standard
14517 The input types can also be used as empty paragraphs.
14518  This makes sense e.
14519 \begin_inset space \thinspace{}
14520 \end_inset
14521
14522 g.
14523 \begin_inset space \space{}
14524 \end_inset
14525
14526 for the 
14527 \family sans
14528 Signature
14529 \family default
14530  type.
14531  If the 
14532 \family sans
14533 Signature
14534 \family default
14535  type is not used at all, in the standard behavior the value of the 
14536 \family sans
14537 Name
14538 \family default
14539  type is used as signature, whereas if an empty 
14540 \family sans
14541 Signature
14542 \family default
14543  type is used, no signature value is defined.
14544 \end_layout
14545
14546 \begin_layout Standard
14547 By using the input types it is possible to write a letter template, containing
14548  filled input types with your personal dates (name, address, etc.) and empty
14549  input types for other dates you want to enter.
14550 \end_layout
14551
14552 \begin_layout Itemize
14553
14554 \family sans
14555 Name
14556 \family default
14557 : sender's name, in the standard behavior appears as a centered paragraph
14558  in small caps in the letter`s heading.
14559 \end_layout
14560
14561 \begin_layout Itemize
14562
14563 \family sans
14564 Signature
14565 \family default
14566 : sender's signature, in the standard behavior appears below the 
14567 \family sans
14568 Closing
14569 \family default
14570  type.
14571  If no 
14572 \family sans
14573 Signature
14574 \family default
14575  type is used, the value of the 
14576 \family sans
14577 Name
14578 \family default
14579  type appears instead.
14580 \end_layout
14581
14582 \begin_layout Itemize
14583
14584 \family sans
14585 Address
14586 \family default
14587 : sender's address, in the standard behavior appears in a centered paragraph
14588  in the letter`s heading below the sender's name.
14589 \end_layout
14590
14591 \begin_layout Itemize
14592
14593 \family sans
14594 Telephone
14595 \family default
14596 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
14597  variable
14598  
14599 \family typewriter
14600
14601 \backslash
14602 telephonenum
14603 \family default
14604 .
14605 \end_layout
14606
14607 \begin_layout Itemize
14608
14609 \family sans
14610 Place
14611 \family default
14612 : place of the letter`s making.
14613 \end_layout
14614
14615 \begin_layout Itemize
14616
14617 \family sans
14618 Date
14619 \family default
14620 : date of the letter`s making.
14621  
14622 \family sans
14623 Place
14624 \family default
14625  and 
14626 \family sans
14627 Date
14628 \family default
14629 , in the standard behavior, produce the place and the date in a right-aligned
14630  line below the addressee's field.
14631  If an empty 
14632 \family sans
14633 Date
14634 \family default
14635  type is used, neither place nor date appear, independent of the value of
14636  the 
14637 \family sans
14638 Place
14639 \family default
14640  type.
14641  If no 
14642 \family sans
14643 Date
14644 \family default
14645  type is used, the date of the letter `s production is used.
14646 \end_layout
14647
14648 \begin_layout Itemize
14649
14650 \family sans
14651 Backaddress
14652 \family default
14653 : sender`s back address, in the standard behavior appears above the addressee's
14654  field in a small sans serif font.
14655 \end_layout
14656
14657 \begin_layout Itemize
14658
14659 \family sans
14660 Specialmail
14661 \family default
14662 : special mail information, in the standard behavior appears underlined
14663  above the addressee's field below the back address.
14664 \end_layout
14665
14666 \begin_layout Itemize
14667
14668 \family sans
14669 Location
14670 \family default
14671 : additional information, in the standard behavior appears on right side
14672  below the addressee`s field.
14673 \end_layout
14674
14675 \begin_layout Itemize
14676
14677 \family sans
14678 Title
14679 \family default
14680 : the letter's title, in the standard behavior appears in a big, bold, sans
14681  serif font above the subject.
14682 \end_layout
14683
14684 \begin_layout Itemize
14685
14686 \family sans
14687 Subject
14688 \family default
14689 : the letter's subject, in the standard behavior appears in a bold font
14690  above the 
14691 \family sans
14692 Opening
14693 \family default
14694  paragraph.
14695 \end_layout
14696
14697 \begin_layout Standard
14698 The types 
14699 \family sans
14700 Yourref
14701 \family default
14702
14703 \family sans
14704 Yourmail
14705 \family default
14706
14707 \family sans
14708 Myref
14709 \family default
14710
14711 \family sans
14712 Customer
14713 \family default
14714 , and 
14715 \family sans
14716 Invoice
14717 \family default
14718  produce a business letter like line above the 
14719 \family sans
14720 Title
14721 \family default
14722  line containing the fields 
14723 \begin_inset Quotes eld
14724 \end_inset
14725
14726 Your ref.
14727 \begin_inset Quotes erd
14728 \end_inset
14729
14730
14731 \begin_inset Quotes eld
14732 \end_inset
14733
14734 Your letter of
14735 \begin_inset Quotes erd
14736 \end_inset
14737
14738
14739 \begin_inset Quotes eld
14740 \end_inset
14741
14742 Our ref.
14743 \begin_inset Quotes erd
14744 \end_inset
14745
14746
14747 \begin_inset Quotes eld
14748 \end_inset
14749
14750 Customer no.
14751 \begin_inset Quotes erd
14752 \end_inset
14753
14754
14755 \begin_inset Quotes eld
14756 \end_inset
14757
14758 Invoice no.
14759 \begin_inset Quotes erd
14760 \end_inset
14761
14762 , and 
14763 \begin_inset Quotes eld
14764 \end_inset
14765
14766 Date
14767 \begin_inset Quotes erd
14768 \end_inset
14769
14770 .
14771  For the date field, the value of the 
14772 \family sans
14773 Date
14774 \family default
14775  type is used.
14776  If one of these 
14777 \begin_inset Quotes eld
14778 \end_inset
14779
14780 business letter types
14781 \begin_inset Quotes erd
14782 \end_inset
14783
14784  is used, the value of the 
14785 \family sans
14786 Place
14787 \family default
14788  type however does not appear, but only the \SpecialChar LaTeX
14789  variable 
14790 \family typewriter
14791
14792 \backslash
14793 fromplace
14794 \family default
14795  is set.
14796  The ordinary output of place and date in a right-aligned line below the
14797  addressee`s field is suppressed.
14798  The types are implemented as input types provided with a label and must
14799  be used ahead of the corresponding 
14800 \family sans
14801 Opening
14802 \family default
14803  type.
14804 \end_layout
14805
14806 \begin_layout Itemize
14807
14808 \family sans
14809 Yourref
14810 \family default
14811 : Your ref.
14812 \end_layout
14813
14814 \begin_layout Itemize
14815
14816 \family sans
14817 Yourmail
14818 \family default
14819 : Your letter of.
14820 \end_layout
14821
14822 \begin_layout Itemize
14823
14824 \family sans
14825 Myref
14826 \family default
14827 : Our ref.
14828 \end_layout
14829
14830 \begin_layout Itemize
14831
14832 \family sans
14833 Customer
14834 \family default
14835 : Customer no.
14836 \end_layout
14837
14838 \begin_layout Itemize
14839
14840 \family sans
14841 Invoice
14842 \family default
14843 : Invoice no.
14844 \end_layout
14845
14846 \begin_layout Subsection
14847 The new letter class: letter (koma-script v.2)
14848 \end_layout
14849
14850 \begin_layout Standard
14851 by 
14852 \noun on
14853 Jürgen Spitzmüller
14854 \end_layout
14855
14856 \begin_layout Standard
14857 \begin_inset VSpace medskip
14858 \end_inset
14859
14860
14861 \end_layout
14862
14863 \begin_layout Standard
14864 \noindent
14865 Koma-Script version 2.8 has introduced a new letter class 
14866 \family typewriter
14867 scrlttr2
14868 \family default
14869  which supersedes the now unsupported 
14870 \family typewriter
14871 scrlettr
14872 \family default
14873 .
14874  It has — on the \SpecialChar LaTeX
14875  side — a completely new interface and is not compatible
14876  with the old class.
14877  Therefore, \SpecialChar LyX
14878  supports both, though it is recommended you use the new class.
14879 \end_layout
14880
14881 \begin_layout Standard
14882 This class covers the same functionality as 
14883 \emph on
14884 letter (koma-script),
14885 \emph default
14886  and a few more.
14887  The basic items are 
14888 \family sans
14889 Address
14890 \family default
14891  (receiver's address, same as 
14892 \family sans
14893 Letter
14894 \family default
14895  in the old layout), 
14896 \family sans
14897 Opening
14898 \family default
14899 , and 
14900 \family sans
14901 Closing
14902 \family default
14903 .
14904  
14905 \family sans
14906 NextAddress
14907 \family default
14908  will start a new letter (i.
14909 \begin_inset space \thinspace{}
14910 \end_inset
14911
14912 e.
14913 \begin_inset space \space{}
14914 \end_inset
14915
14916 you can write several letters per document).
14917  New elements are sender's 
14918 \family sans
14919 E-Mail
14920 \family default
14921
14922 \family sans
14923 URL
14924 \family default
14925
14926 \family sans
14927 Fax
14928 \family default
14929
14930 \family sans
14931 Bank
14932 \family default
14933  and the possibility to use a 
14934 \family sans
14935 Logo
14936 \family default
14937  (via 
14938 \family sans
14939 Insert\SpecialChar menuseparator
14940 Graphics
14941 \family default
14942 ) in the header.
14943 \end_layout
14944
14945 \begin_layout Standard
14946 The biggest improvement is, though, that the letter's layout is configurable
14947  to meet almost any needs.
14948  This can be done via the preamble or with a special style file (Letter
14949  Class Option, extension 
14950 \family typewriter
14951 *.lco
14952 \family default
14953 ), that will be read in as a class option.
14954 \begin_inset Foot
14955 status collapsed
14956
14957 \begin_layout Plain Layout
14958 The KOMA package comes with some default 
14959 \family typewriter
14960 *.lco
14961 \family default
14962  files.
14963  There is, for instance, a 
14964 \family typewriter
14965 DIN.lco
14966 \family default
14967  file that follows german typesetting rules, or a 
14968 \family typewriter
14969 KOMAold.lco
14970 \family default
14971  that provides the default layout of the old 
14972 \family typewriter
14973 scrlettr
14974 \family default
14975  class.
14976  The latter can be loaded with the class option 
14977 \family typewriter
14978 KOMAold
14979 \family default
14980 , inserted via the 
14981 \family sans
14982 Layout\SpecialChar menuseparator
14983 Document\SpecialChar menuseparator
14984 Extra Options
14985 \family default
14986  field.
14987 \end_layout
14988
14989 \end_inset
14990
14991  Have a look at the 
14992 \emph on
14993 koma-letter2
14994 \emph default
14995  template that is included in \SpecialChar LyX
14996  for examples.
14997  A detailed description is to be found in the Koma-Script documentation
14998  (
14999 \emph on
15000 scrguide
15001 \emph default
15002 ).
15003 \end_layout
15004
15005 \begin_layout Subsection
15006 Problems
15007 \end_layout
15008
15009 \begin_layout Standard
15010 Visualizing the Koma-Script document classes in \SpecialChar LyX
15011 , the \SpecialChar LyX
15012  internals cause some
15013  problems.
15014 \end_layout
15015
15016 \begin_layout Itemize
15017 The chapter number of a 
15018 \family sans
15019 Chapter
15020 \family default
15021  type appears on a line of its own above the chapter heading instead of
15022  appearing in the same line ahead of it.
15023  The cause for that is the \SpecialChar LyX
15024  internal behavior for the labeltype 
15025 \family sans
15026 Counter_Chapter
15027 \family default
15028  in the layout file.
15029 \end_layout
15030
15031 \begin_layout Itemize
15032 The headings of the types 
15033 \family sans
15034 Addchap
15035 \family default
15036  and 
15037 \family sans
15038 Addsec
15039 \family default
15040  are only put in the 
15041 \begin_inset Quotes eld
15042 \end_inset
15043
15044 true
15045 \begin_inset Quotes erd
15046 \end_inset
15047
15048  \SpecialChar LaTeX
15049  table of contents, but not in the \SpecialChar LyX
15050  table of contents (
15051 \family sans
15052 Document\SpecialChar menuseparator
15053 Table
15054 \begin_inset space ~
15055 \end_inset
15056
15057 of
15058 \begin_inset space ~
15059 \end_inset
15060
15061 Contents
15062 \family default
15063 ).
15064 \end_layout
15065
15066 \begin_layout Itemize
15067 The paragraphs in a 
15068 \emph on
15069 letter
15070 \emph default
15071  document class appear in a skip separation mode, not indented.
15072  This is the standard behavior, no special \SpecialChar LaTeX
15073  commands are needed for that.
15074  But in the 
15075 \family sans
15076 Document\SpecialChar menuseparator
15077 Settings
15078 \family default
15079  dialog the corresponding radio button indicates 
15080 \family sans
15081 Indent
15082 \family default
15083 .
15084  A 
15085 \family sans
15086 Skip
15087 \family default
15088  value always has the effect that extra \SpecialChar LaTeX
15089  commands are inserted in the document
15090  to produce the gap, which is not what is wanted in this case.
15091 \end_layout
15092
15093 \begin_layout Section
15094 Memoir
15095 \end_layout
15096
15097 \begin_layout Standard
15098 By 
15099 \noun on
15100 Jürgen Spitzmüller
15101 \end_layout
15102
15103 \begin_layout Subsection
15104 Overview
15105 \end_layout
15106
15107 \begin_layout Standard
15108 Memoir is a very powerful and constantly evolving class.
15109  It has been designed with regard to fictional and non-fictional literature.
15110  Its aim is to let the user have maximum control over the typesetting of
15111  his document.
15112  Memoir is based on the standard book class, but it can also emulate the
15113  article class (see below).
15114 \end_layout
15115
15116 \begin_layout Standard
15117 Peter Wilson, the developer of Memoir, is known as the author of lots of
15118  useful packages in the \SpecialChar LaTeX
15119  world.
15120  Most of them have been merged with Memoir.
15121  Therefore, it is much easier to layout the table of contents, appendices,
15122  chapter designs and such.
15123  \SpecialChar LyX
15124 , though, does not support all of these goodies natively.
15125  Some of them might be added to forthcoming releases
15126 \begin_inset Foot
15127 status collapsed
15128
15129 \begin_layout Plain Layout
15130 You are invited to send suggestions to 
15131 \begin_inset Flex URL
15132 status collapsed
15133
15134 \begin_layout Plain Layout
15135
15136 lyx-devel@lists.lyx.org
15137 \end_layout
15138
15139 \end_inset
15140
15141 .
15142 \end_layout
15143
15144 \end_inset
15145
15146 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15147 's framework.
15148  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15149
15150  commands (\SpecialChar TeX
15151  code
15152 \begin_inset Foot
15153 status collapsed
15154
15155 \begin_layout Plain Layout
15156 Cf.
15157 \begin_inset ERT
15158 status collapsed
15159
15160 \begin_layout Plain Layout
15161
15162
15163 \backslash
15164  
15165 \end_layout
15166
15167 \end_inset
15168
15169 section
15170 \begin_inset space ~
15171 \end_inset
15172
15173
15174 \begin_inset CommandInset ref
15175 LatexCommand ref
15176 reference "sec:Inserting-TeX-Code"
15177
15178 \end_inset
15179
15180  for details.
15181 \end_layout
15182
15183 \end_inset
15184
15185 ).
15186  In this section, we can only list those features that are natively supported
15187  by \SpecialChar LyX
15188 .
15189  For detailed descriptions (and for the rest of features) we recommend you
15190  have a look at the detailed manual of the Memoir class
15191 \begin_inset Foot
15192 status collapsed
15193
15194 \begin_layout Plain Layout
15195 Cf.
15196 \begin_inset ERT
15197 status collapsed
15198
15199 \begin_layout Plain Layout
15200
15201
15202 \backslash
15203  
15204 \end_layout
15205
15206 \end_inset
15207
15208
15209 \begin_inset Flex URL
15210 status collapsed
15211
15212 \begin_layout Plain Layout
15213
15214 CTAN:/macros/latex/memoir/memman.pdf
15215 \end_layout
15216
15217 \end_inset
15218
15219 .
15220 \end_layout
15221
15222 \end_inset
15223
15224 , which is not only a user guide for the class, but also both a comprehensive
15225  description on good typesetting and a superb example for good typesetting
15226  itself.
15227 \end_layout
15228
15229 \begin_layout Subsection
15230 Basic features and restrictions
15231 \end_layout
15232
15233 \begin_layout Standard
15234 Memoir supports basically all features of the standard book classes.
15235  There are, however, some differences, as follows:
15236 \end_layout
15237
15238 \begin_layout Description
15239 Font
15240 \begin_inset space ~
15241 \end_inset
15242
15243 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15244 \end_layout
15245
15246 \begin_layout Description
15247 Page
15248 \begin_inset space ~
15249 \end_inset
15250
15251 style: The fancy page style is not supported, due to a command clash between
15252  Memoir and the fancyhdr package (they both define a command with the same
15253  name, which confuses \SpecialChar LaTeX
15254 ).
15255  Instead, Memoir comes with a number of its own page styles (see 
15256 \family sans
15257 Layout\SpecialChar menuseparator
15258 Document\SpecialChar menuseparator
15259 Page
15260 \begin_inset space ~
15261 \end_inset
15262
15263 Style
15264 \family default
15265 ).
15266  If you want to use these for the chapter pages, you have to use the command
15267  
15268 \family typewriter
15269
15270 \backslash
15271 chapterstyle
15272 \family default
15273  in the main text or in preamble (e.
15274 \begin_inset space \thinspace{}
15275 \end_inset
15276
15277 g.
15278 \begin_inset space \space{}
15279 \end_inset
15280
15281
15282 \family typewriter
15283
15284 \backslash
15285 chapterstyle{companion}
15286 \family default
15287 ).
15288 \end_layout
15289
15290 \begin_layout Description
15291 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15292  optional argument in the standard classes.
15293  With this, you can specify an alternative version of the title for the
15294  table of contents and the headers (for instance, if the title is too long).
15295  In \SpecialChar LyX
15296 , you can do this via 
15297 \family sans
15298 Insert\SpecialChar menuseparator
15299 Short
15300 \begin_inset space ~
15301 \end_inset
15302
15303 Title
15304 \family default
15305  at the beginning of a chapter/section.
15306  Memoir features a second optional argument and thus separates the table
15307  of contents from the header.
15308  You can define three variants of a title with this: one for the main text,
15309  one for the table of contents, and one for the headers.
15310  Simply insert two optional arguments if you need this feature, the first
15311  one containing the short title for the Table of Contents, the second one
15312  containing an alternative short title for the headers.
15313 \end_layout
15314
15315 \begin_layout Description
15316 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15317  of contents, the list of figures and the list of table start a new page
15318  automatically.
15319  Memoir does not follow this route.
15320  You have to insert a page break yourself, if you want to have one.
15321 \end_layout
15322
15323 \begin_layout Description
15324 Titlepage: For some unknown reason, Memoir uses pagination on the title
15325  page (in the standard classes, title pages are 
15326 \begin_inset Quotes eld
15327 \end_inset
15328
15329 empty
15330 \begin_inset Quotes erd
15331 \end_inset
15332
15333 ).
15334  If you want an empty title page, type 
15335 \family typewriter
15336
15337 \backslash
15338 aliaspagestyle{title}{empty}
15339 \family default
15340  in the preamble.
15341 \end_layout
15342
15343 \begin_layout Description
15344 Article: With the class option 
15345 \emph on
15346 article
15347 \emph default
15348  (to be inserted in 
15349 \family sans
15350 Layout\SpecialChar menuseparator
15351 Document\SpecialChar menuseparator
15352 Extra
15353 \begin_inset space ~
15354 \end_inset
15355
15356 Options
15357 \family default
15358 ), you can emulate article style.
15359  That is, counters (footnotes, figures, tables etc.) will not be reset on
15360  new chapters, chapters don't start a new page (but are—in contrary to 
15361 \begin_inset Quotes eld
15362 \end_inset
15363
15364 real
15365 \begin_inset Quotes erd
15366 \end_inset
15367
15368  article classes—still allowed), parts, though, use their own page, as in
15369  book.
15370 \end_layout
15371
15372 \begin_layout Description
15373 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15374  font commands, which have been used in the old \SpecialChar LaTeX
15375  version 2.09 (e.
15376 \begin_inset space \thinspace{}
15377 \end_inset
15378
15379 g.
15380 \begin_inset space \space{}
15381 \end_inset
15382
15383
15384 \family typewriter
15385
15386 \backslash
15387 rm
15388 \family default
15389
15390 \family typewriter
15391
15392 \backslash
15393 it
15394 \family default
15395 ).
15396  It produces an error and stops \SpecialChar LaTeX
15397  whenever such a command appears.
15398  The class option 
15399 \emph on
15400 oldfontcommands
15401 \emph default
15402  reallows the commands and spits out warnings instead (which does at least
15403  not stop \SpecialChar LaTeX
15404 ).
15405  Since a lot of packages and particularly Bib\SpecialChar TeX
15406  style files are still using
15407  those commands, we have decided to use this option by default.
15408 \end_layout
15409
15410 \begin_layout Subsection
15411 Extra features
15412 \end_layout
15413
15414 \begin_layout Standard
15415 We will only describe the features supported by \SpecialChar LyX
15416  (which is not much currently).
15417  Please consult the Memoir manual
15418 \begin_inset Foot
15419 status collapsed
15420
15421 \begin_layout Plain Layout
15422 Cf.
15423 \begin_inset ERT
15424 status collapsed
15425
15426 \begin_layout Plain Layout
15427
15428
15429 \backslash
15430  
15431 \end_layout
15432
15433 \end_inset
15434
15435
15436 \begin_inset Flex URL
15437 status collapsed
15438
15439 \begin_layout Plain Layout
15440
15441 CTAN:/macros/latex/memoir/memman.pdf
15442 \end_layout
15443
15444 \end_inset
15445
15446 .
15447 \end_layout
15448
15449 \end_inset
15450
15451  for details.
15452 \end_layout
15453
15454 \begin_layout Description
15455 Abstract: You may wonder why an abstract is an extra feature.
15456  Well, it is in book class.
15457  Usually books don't have abstracts.
15458  Memoir, however, has.
15459  You can use it wherever and how often you like.
15460 \end_layout
15461
15462 \begin_layout Description
15463 Chapterprecis: You may know this older typesetting style: The contents of
15464  a chapter are summarized below the title and also in the table of contents
15465  (e.
15466 \begin_inset space \thinspace{}
15467 \end_inset
15468
15469 g.
15470 \begin_inset space \space{}
15471 \end_inset
15472
15473
15474 \emph on
15475 Our hero arrives in Troia; he loses some friends; he finds others
15476 \emph default
15477 ).
15478  Chapterprecis does exactly this.
15479  It is therefore only sensible below a chapter.
15480 \end_layout
15481
15482 \begin_layout Description
15483 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15484  The epigraph environment provides an elegant way of typesetting such a
15485  motto.
15486  The motto itself (text) and its author (source) are divided by a short
15487  line.
15488  Unfortunately, we have to fool \SpecialChar LyX
15489  a bit here again, since the environment
15490  needs two arguments (text and source).
15491  In this case, we have to use curly brackets (in \SpecialChar TeX
15492  mode) between the two
15493  arguments: 
15494 \emph on
15495 <smart slogan>
15496 \emph default
15497  
15498 \family typewriter
15499 }{
15500 \family default
15501  
15502 \emph on
15503 <author of the slogan>.
15504 \end_layout
15505
15506 \begin_layout Description
15507 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15508  complex figurative poems).
15509  \SpecialChar LyX
15510  can only support a few of them.
15511  One is poemtitle, which is a centered title for poems, which will also
15512  be added to the table of contents (verse is the standard environment for
15513  poems.
15514  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15515  code,
15516  because they have to be nested inside regular verse environments, which
15517  is not possible with \SpecialChar LyX
15518 ).
15519 \end_layout
15520
15521 \begin_layout Description
15522 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15523 \end_layout
15524
15525 \begin_layout Section
15526 Article (mwart), book (mwbk) and report (mwrep)
15527 \begin_inset Argument status
15528 status collapsed
15529
15530 \begin_layout Plain Layout
15531 The 
15532 \family typewriter
15533 mw
15534 \family default
15535  Classes
15536 \end_layout
15537
15538 \end_inset
15539
15540
15541 \end_layout
15542
15543 \begin_layout Standard
15544 by 
15545 \noun on
15546 Tomasz Luczak
15547 \end_layout
15548
15549 \begin_layout Standard
15550 The \SpecialChar LyX
15551  document classes 
15552 \emph on
15553 article (mwart)
15554 \emph default
15555
15556 \emph on
15557 report (mwrep)
15558 \emph default
15559  and 
15560 \emph on
15561 book
15562 \emph default
15563  
15564 \emph on
15565 (mwbk)
15566 \emph default
15567  correspond to the \SpecialChar LaTeX
15568  document classes 
15569 \family typewriter
15570 mwart.cls
15571 \family default
15572
15573 \family typewriter
15574 mwrep.cls
15575 \family default
15576  and 
15577 \family typewriter
15578 mwbk.cls
15579 \family default
15580 , resp.
15581  They are replacements for the standard document classes 
15582 \family typewriter
15583 article.cls
15584 \family default
15585
15586 \family typewriter
15587 report.cls
15588 \family default
15589  and 
15590 \family typewriter
15591 book.cls
15592 \family default
15593 , resp., and fit better to Polish typography conventions in a number of points.
15594  
15595 \end_layout
15596
15597 \begin_layout Standard
15598 Basic differences:
15599 \end_layout
15600
15601 \begin_layout Itemize
15602 Unnumbered titles (with star, e.
15603 \begin_inset space \thinspace{}
15604 \end_inset
15605
15606 g.
15607 \begin_inset space \space{}
15608 \end_inset
15609
15610
15611 \family sans
15612 Section*
15613 \family default
15614 ) are added into table of contents,
15615 \end_layout
15616
15617 \begin_layout Itemize
15618 Additional page styles:
15619 \end_layout
15620
15621 \begin_deeper
15622 \begin_layout Description
15623 uheadings header with separated lines,
15624 \end_layout
15625
15626 \begin_layout Description
15627 myheadings custom header, contents headers via commands: 
15628 \family typewriter
15629
15630 \backslash
15631 markright
15632 \family default
15633  and 
15634 \family typewriter
15635
15636 \backslash
15637 markboth
15638 \family default
15639 ,
15640 \end_layout
15641
15642 \begin_layout Description
15643 myuheadings custom header with separated lines,
15644 \end_layout
15645
15646 \begin_layout Description
15647 outer page number is placed on outer side of page
15648 \end_layout
15649
15650 \end_deeper
15651 \begin_layout Itemize
15652 Options 
15653 \end_layout
15654
15655 \begin_deeper
15656 \begin_layout Description
15657 rmheadings serif titles — default,
15658 \end_layout
15659
15660 \begin_layout Description
15661 sfheadings sansserif titles,
15662 \end_layout
15663
15664 \begin_layout Description
15665 authortitle on title page first placed is author next title — default,
15666 \end_layout
15667
15668 \begin_layout Description
15669 titleauthor on title page first placed is title next author,
15670 \end_layout
15671
15672 \begin_layout Description
15673 withmarginpar reserve place on page for margins.
15674 \end_layout
15675
15676 \end_deeper
15677 \begin_layout Section
15678 Paper
15679 \end_layout
15680
15681 \begin_layout Standard
15682 The document class 
15683 \family sans
15684 paper
15685 \family default
15686  provides an alternative to the standard 
15687 \family sans
15688 article
15689 \family default
15690  class.
15691  It provides similar functionality, but you might prefer this layout with
15692  sans serif sections, headings, and more.
15693 \end_layout
15694
15695 \begin_layout Section
15696 Rev\SpecialChar TeX
15697 4
15698 \end_layout
15699
15700 \begin_layout Standard
15701 by 
15702 \noun on
15703 Amir Karger
15704 \end_layout
15705
15706 \begin_layout Standard
15707 \begin_inset VSpace bigskip
15708 \end_inset
15709
15710
15711 \end_layout
15712
15713 \begin_layout Standard
15714 \noindent
15715 The 
15716 \family sans
15717 Revtex
15718 \begin_inset space ~
15719 \end_inset
15720
15721 4
15722 \family default
15723  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
15724  4.0 (the 
15725 \begin_inset Formula $\beta$
15726 \end_inset
15727
15728  release of May, 1999) class.
15729 \end_layout
15730
15731 \begin_layout Standard
15732 \SpecialChar LyX
15733  has a 
15734 \family sans
15735 Revtex
15736 \family default
15737  textclass, which works with Rev\SpecialChar TeX
15738  3.1.
15739  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
15740  2.09.
15741  That means that it doesn't interact very well with \SpecialChar LyX
15742 , which requires \SpecialChar LaTeX2e
15743 , although
15744  it has been kludged to work.
15745  Since Rev\SpecialChar TeX
15746  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
15747 , \SpecialChar LyX
15748  with the
15749  
15750 \family sans
15751 Rev\SpecialChar TeX
15752
15753 \begin_inset space ~
15754 \end_inset
15755
15756 4
15757 \family default
15758  textclass should also be pretty easy to use.
15759 \end_layout
15760
15761 \begin_layout Standard
15762 These documents are supposed to be used in 
15763 \emph on
15764 addition
15765 \emph default
15766  to the Rev\SpecialChar TeX
15767  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
15768  macros,
15769  and assume you'll know what to put in the preamble if necessary.
15770 \end_layout
15771
15772 \begin_layout Subsection
15773 Installation
15774 \end_layout
15775
15776 \begin_layout Standard
15777 All you need to do is install Rev\SpecialChar TeX
15778  4, as described in the package's README
15779  file.
15780  The package can be found at The Rev\SpecialChar TeX
15781  4 Web Site 
15782 \begin_inset Flex URL
15783 status collapsed
15784
15785 \begin_layout Plain Layout
15786
15787 http://publish.aps.org/revtex4/
15788 \end_layout
15789
15790 \end_inset
15791
15792 .
15793  Install it somewhere that \SpecialChar LaTeX
15794  can see it.
15795  Test it by trying to \SpecialChar LaTeX
15796  a short Rev\SpecialChar TeX
15797  4 document in some random directory (i.
15798 \begin_inset space \thinspace{}
15799 \end_inset
15800
15801 e.
15802 \begin_inset space \space{}
15803 \end_inset
15804
15805 not the directory where you installed the class file.) Then, if you reconfigure
15806  \SpecialChar LyX
15807 , it will find the class file and let you use the Rev\SpecialChar TeX
15808 4 textclass.
15809 \end_layout
15810
15811 \begin_layout Standard
15812 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
15813  4 document
15814  using 
15815 \family typewriter
15816 tex2lyx
15817 \family default
15818 , or to use the 
15819 \family sans
15820 Revtex
15821 \begin_inset space ~
15822 \end_inset
15823
15824 4
15825 \family default
15826  template, found in the templates directory.
15827 \end_layout
15828
15829 \begin_layout Subsection
15830 Preamble Matter
15831 \end_layout
15832
15833 \begin_layout Standard
15834 Optional arguments to 
15835 \family typewriter
15836
15837 \backslash
15838 documentclass
15839 \family default
15840 , like 
15841 \begin_inset Quotes eld
15842 \end_inset
15843
15844 preprint
15845 \begin_inset Quotes erd
15846 \end_inset
15847
15848  and 
15849 \begin_inset Quotes eld
15850 \end_inset
15851
15852 aps
15853 \begin_inset Quotes erd
15854 \end_inset
15855
15856 , go in the 
15857 \family sans
15858 Extra
15859 \begin_inset space ~
15860 \end_inset
15861
15862 Options
15863 \family default
15864  field in the 
15865 \family sans
15866 Document
15867 \begin_inset space ~
15868 \end_inset
15869
15870 Layout
15871 \family default
15872  dialog, as usual.
15873  Remember that in Rev\SpecialChar TeX
15874 , at least one optional argument is required! 
15875 \end_layout
15876
15877 \begin_layout Standard
15878 Other preamble matter, like 
15879 \family typewriter
15880
15881 \backslash
15882 draft
15883 \family default
15884  etc.
15885 \begin_inset space ~
15886 \end_inset
15887
15888 goes in the 
15889 \family sans
15890 \SpecialChar LaTeX
15891
15892 \begin_inset space ~
15893 \end_inset
15894
15895 Preamble
15896 \family default
15897  dialog, also as usual.
15898 \end_layout
15899
15900 \begin_layout Subsection
15901 Layouts
15902 \end_layout
15903
15904 \begin_layout Standard
15905 The layouts basically correspond to the commands in Rev\SpecialChar TeX
15906 4.0.
15907  For example, the Email layout corresponds to 
15908 \family typewriter
15909
15910 \backslash
15911 email{}
15912 \family default
15913 .
15914  Note that (at least as of Rev\SpecialChar TeX
15915  4.0 Beta), the 
15916 \family sans
15917 Address
15918 \family default
15919  and 
15920 \family sans
15921 Affiliation
15922 \family default
15923  layouts are exactly equivalent, so you shouldn't need to use both.
15924 \begin_inset Foot
15925 status collapsed
15926
15927 \begin_layout Plain Layout
15928 In case you're curious, both were included so that 
15929 \family typewriter
15930 tex2lyx
15931 \family default
15932  would be able to translate both 
15933 \family typewriter
15934
15935 \backslash
15936 address
15937 \family default
15938  and 
15939 \family typewriter
15940
15941 \backslash
15942 affiliation
15943 \family default
15944 .
15945 \end_layout
15946
15947 \end_inset
15948
15949
15950 \end_layout
15951
15952 \begin_layout Subsection
15953 Important Notes
15954 \end_layout
15955
15956 \begin_layout Standard
15957 There are a couple of important unique aspects of Rev\SpecialChar TeX
15958  4 which might cause
15959  bugs that will be even more confusing in \SpecialChar LyX
15960 .
15961 \end_layout
15962
15963 \begin_layout Standard
15964 In Rev\SpecialChar TeX
15965 , the 
15966 \family typewriter
15967
15968 \backslash
15969 thanks
15970 \family default
15971  command goes 
15972 \emph on
15973 outside
15974 \emph default
15975  the 
15976 \family typewriter
15977
15978 \backslash
15979 author
15980 \family default
15981  command.
15982  The \SpecialChar LyX
15983  equivalent is that there is a separate Thanks layout.
15984  Do 
15985 \emph on
15986 not
15987 \emph default
15988  write footnotes in the 
15989 \family sans
15990 Author
15991 \family default
15992  layout, or weird things may happen.
15993  See the Rev\SpecialChar TeX
15994  4 documentation for more details.
15995 \end_layout
15996
15997 \begin_layout Standard
15998 Also, the 
15999 \family sans
16000 Author
16001 \begin_inset space ~
16002 \end_inset
16003
16004 Email
16005 \family default
16006
16007 \family sans
16008 Author
16009 \begin_inset space ~
16010 \end_inset
16011
16012 URL
16013 \family default
16014 , and 
16015 \family sans
16016 Thanks
16017 \family default
16018  layouts must be placed 
16019 \emph on
16020 in between
16021 \emph default
16022  the 
16023 \family sans
16024 Author
16025 \family default
16026  layout and the corresponding 
16027 \family sans
16028 Address
16029 \family default
16030  (or equivalent 
16031 \family sans
16032 Affiliation
16033 \family default
16034 ) layout.
16035  If you put the 
16036 \family sans
16037 Thanks
16038 \family default
16039  after the 
16040 \family sans
16041 Address
16042 \family default
16043 , the \SpecialChar LaTeX
16044  won't compile.
16045 \end_layout
16046
16047 \begin_layout Subsection
16048 Drawbacks
16049 \end_layout
16050
16051 \begin_layout Standard
16052 The main problem with this layout is that you can't use the optional arguments
16053  to layouts like Email and Title.
16054  (The problem is not unique to this layout; you can't use optional arguments
16055  to the Section layouts either.) This means that after you export that file
16056  to \SpecialChar LaTeX
16057  (which you'll need to do eventually to send it in to APS), you'll need
16058  to edit the \SpecialChar LaTeX
16059  file with a text editor to add the optional arguments to set,
16060  e.
16061 \begin_inset space \thinspace{}
16062 \end_inset
16063
16064 g.
16065 \begin_inset space \space{}
16066 \end_inset
16067
16068 the running title for the page headers.
16069  Lacking these layouts makes the 
16070 \family typewriter
16071
16072 \backslash
16073 altaffiliation
16074 \family default
16075  (and the equivalent 
16076 \family typewriter
16077
16078 \backslash
16079 altaddress
16080 \family default
16081 ) useless, so the corresponding layouts don't exist, and will have to be
16082  added by hand.
16083 \begin_inset Foot
16084 status collapsed
16085
16086 \begin_layout Plain Layout
16087
16088 \emph on
16089 Note from JMarc:
16090 \emph default
16091  actually, \SpecialChar LyX
16092  1.3.0 supports some forms of optional arguments, but this layout
16093  has not been updated yet to take advantage of it.
16094 \end_layout
16095
16096 \end_inset
16097
16098  
16099 \end_layout
16100
16101 \begin_layout Section
16102 Springer Journals (
16103 \family sans
16104 svjour
16105 \family default
16106 )
16107 \end_layout
16108
16109 \begin_layout Standard
16110 by 
16111 \noun on
16112 Martin Vermeer
16113 \end_layout
16114
16115 \begin_layout Subsection
16116 Description
16117 \end_layout
16118
16119 \begin_layout Standard
16120 These are the layout files for some of the journal formats used by Springer
16121  Verlag and listed on 
16122 \begin_inset Flex URL
16123 status collapsed
16124
16125 \begin_layout Plain Layout
16126
16127 http://www.springer.de/author/tex/help-journals.html
16128 \end_layout
16129
16130 \end_inset
16131
16132 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16133  now!).
16134  It is a modular system: the things common to all journals are implemented
16135  in 
16136 \family typewriter
16137 svjour.inc
16138 \family default
16139 , which journal-specific layout files (such as, e.
16140 \begin_inset space \thinspace{}
16141 \end_inset
16142
16143 g.
16144 \begin_inset space \space{}
16145 \end_inset
16146
16147
16148 \family typewriter
16149 svjog.layout
16150 \family default
16151  for Journal of Geodesy) can include.
16152 \end_layout
16153
16154 \begin_layout Standard
16155 This means that implementing support for any other Springer journal on this
16156  list is as simple as writing your own 
16157 \family typewriter
16158 sv
16159 \family default
16160 <myjournal>
16161 \family typewriter
16162 .layout
16163 \family default
16164  file following the outline given in 
16165 \family typewriter
16166 svjog.layout
16167 \family default
16168 .
16169  
16170 \end_layout
16171
16172 \begin_layout Standard
16173 It is reasonably well tested only for the Journal of Geodesy.
16174  
16175 \family typewriter
16176 svjour
16177 \family default
16178  and 
16179 \family typewriter
16180 svjog
16181 \family default
16182  come with the standard \SpecialChar LyX
16183  distribution.
16184  Install the relevant class file (downloaded from Springer) in a proper
16185  directory, reconfigure \SpecialChar LaTeX
16186  (in the te\SpecialChar TeX
16187  case by running 
16188 \family typewriter
16189 texhash
16190 \family default
16191 , as root if necessary — doesn't \SpecialChar LyX
16192  take care of this?), reconfigure \SpecialChar LyX
16193  and
16194  it should work.
16195 \end_layout
16196
16197 \begin_layout Subsection
16198 New styles
16199 \end_layout
16200
16201 \begin_layout Standard
16202 A large number of theorem-like styles — 
16203 \family sans
16204 Claim, Conjecture,
16205 \family default
16206  
16207 \family sans
16208 \SpecialChar ldots
16209 Theorem
16210 \family default
16211 .
16212 \end_layout
16213
16214 \begin_layout Standard
16215
16216 \family sans
16217 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16218 _Title, Author_Running, Institute,
16219  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16220 \family default
16221 .
16222  See the Springer class file documentation for details.
16223 \end_layout
16224
16225 \begin_layout Subsection
16226 Supported journals
16227 \end_layout
16228
16229 \begin_layout Itemize
16230
16231 \emph on
16232 Journal of Geodesy
16233 \emph default
16234
16235 \family typewriter
16236 svjog.layout
16237 \family default
16238  — Martin Vermeer
16239 \end_layout
16240
16241 \begin_layout Itemize
16242
16243 \emph on
16244 Probability Theory and Related Fields
16245 \emph default
16246
16247 \family typewriter
16248 svprobth.layout
16249 \family default
16250  — Jean-Marc Lasgouttes
16251 \end_layout
16252
16253 \begin_layout Standard
16254 Add your own, it isn't so hard!
16255 \end_layout
16256
16257 \begin_layout Subsection
16258 Credits
16259 \end_layout
16260
16261 \begin_layout Standard
16262 These files are partly based on the older 
16263 \family typewriter
16264 ejour2.layout
16265 \family default
16266 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16267  2.09 style
16268  file from Springer.
16269  All this, and the 
16270 \family typewriter
16271 ejour2
16272 \family default
16273  layout, are now defunct.
16274  Jean-Marc Lasgouttes helped out big in making me find my way around the
16275  \SpecialChar LyX
16276  layout file mechanism.
16277 \end_layout
16278
16279 \begin_layout Subsection
16280 Bugs
16281 \end_layout
16282
16283 \begin_layout Standard
16284 Probably.
16285  But probably less than in the old hacked-\SpecialChar LaTeX
16286  
16287 \family typewriter
16288 ejour2
16289 \family default
16290 .
16291 \end_layout
16292
16293 \begin_layout Standard
16294 Limitations e.
16295 \begin_inset space \thinspace{}
16296 \end_inset
16297
16298 g.: does not display the number for theorem-like layouts, just #.
16299 \end_layout
16300
16301 \begin_layout Section
16302 Slides [aka 
16303 \noun on
16304 Sli\SpecialChar TeX
16305
16306 \noun default
16307 ]
16308 \begin_inset CommandInset label
16309 LatexCommand label
16310 name "sec:slitex"
16311
16312 \end_inset
16313
16314
16315 \end_layout
16316
16317 \begin_layout Standard
16318 by 
16319 \noun on
16320 John Weiss
16321 \noun default
16322  
16323 \end_layout
16324
16325 \begin_layout Subsection
16326 Introduction
16327 \end_layout
16328
16329 \begin_layout Standard
16330 This section describes how to use \SpecialChar LyX
16331  to make slides for overhead projectors.
16332  There are two document classes that can do this: the default slides class
16333  and the 
16334 \family sans
16335 Foil\SpecialChar TeX
16336
16337 \family default
16338  slides class.
16339  This section documents the former.
16340 \end_layout
16341
16342 \begin_layout Standard
16343 I'm going to say this again, nice and clear, so that there's no misunderstanding
16344 :
16345 \end_layout
16346
16347 \begin_layout Standard
16348 \begin_inset VSpace bigskip
16349 \end_inset
16350
16351
16352 \end_layout
16353
16354 \begin_layout Standard
16355 \align center
16356
16357 \size large
16358 This section documents the class 
16359 \begin_inset Quotes eld
16360 \end_inset
16361
16362
16363 \family sans
16364 slides (default)
16365 \family default
16366
16367 \begin_inset Quotes erd
16368 \end_inset
16369
16370  
16371 \emph on
16372 only.
16373 \end_layout
16374
16375 \begin_layout Standard
16376 \begin_inset VSpace bigskip
16377 \end_inset
16378
16379
16380 \end_layout
16381
16382 \begin_layout Standard
16383 If you're looking for the documentation for 
16384 \begin_inset Quotes eld
16385 \end_inset
16386
16387
16388 \family sans
16389 slides (Foil\SpecialChar TeX
16390 )
16391 \family default
16392
16393 \begin_inset Quotes erd
16394 \end_inset
16395
16396 , check out section
16397 \begin_inset space ~
16398 \end_inset
16399
16400
16401 \begin_inset CommandInset ref
16402 LatexCommand ref
16403 reference "sec:foiltex"
16404
16405 \end_inset
16406
16407 .
16408  The 
16409 \family sans
16410 foils
16411 \family default
16412  class [
16413 \begin_inset Quotes eld
16414 \end_inset
16415
16416
16417 \family sans
16418 slides (Foil\SpecialChar TeX
16419 )
16420 \family default
16421
16422 \begin_inset Quotes erd
16423 \end_inset
16424
16425 ] is actually somewhat better than the default 
16426 \family sans
16427 slides
16428 \family default
16429  class,
16430 \begin_inset Foot
16431 status collapsed
16432
16433 \begin_layout Plain Layout
16434 \SpecialChar ldots
16435 or so I've been told repeatedly by its advocates.
16436  Having never used it, I have no idea if this claim is true or not.
16437 \end_layout
16438
16439 \end_inset
16440
16441  which this section documents.
16442 \end_layout
16443
16444 \begin_layout Standard
16445 This class is the \SpecialChar LaTeX2e
16446  improvement of the old 
16447 \noun on
16448 Sli\SpecialChar TeX
16449
16450 \noun default
16451  package.
16452  Every \SpecialChar LaTeX2e
16453  distribution includes this class [which I'll just refer to as 
16454 \begin_inset Quotes eld
16455 \end_inset
16456
16457
16458 \family sans
16459 slides
16460 \family default
16461
16462 \begin_inset Quotes erd
16463 \end_inset
16464
16465  from now on], so you're bound to have it.
16466  As I noted earlier, there are other classes, such as 
16467 \family sans
16468 foils
16469 \family default
16470 , which also produce slides for overhead projectors and do a better job
16471  at it.
16472  However, there are some things which 
16473 \family sans
16474 slides
16475 \family default
16476  can do which the others can't, such as generate overlays.
16477  Read on to learn more!
16478 \end_layout
16479
16480 \begin_layout Subsection
16481 Getting Started
16482 \begin_inset CommandInset label
16483 LatexCommand label
16484 name "sec:slidesetup"
16485
16486 \end_inset
16487
16488
16489 \end_layout
16490
16491 \begin_layout Standard
16492 Obviously, to use this document class, you need to select 
16493 \begin_inset Quotes eld
16494 \end_inset
16495
16496
16497 \family sans
16498 slides (default)
16499 \family default
16500
16501 \begin_inset Quotes erd
16502 \end_inset
16503
16504  from the class list in the 
16505 \family sans
16506 Document\SpecialChar menuseparator
16507 Settings
16508 \family default
16509  dialog.
16510  There are some other special things you should know about this class:
16511 \end_layout
16512
16513 \begin_layout Itemize
16514 Don't bother changing the options 
16515 \family sans
16516 Sides and Columns
16517 \family default
16518 .
16519  They're not supported by the 
16520 \family sans
16521 slides
16522 \family default
16523  class, anyways.
16524 \end_layout
16525
16526 \begin_layout Itemize
16527 The option 
16528 \family sans
16529 Page
16530 \begin_inset space ~
16531 \end_inset
16532
16533 style
16534 \family default
16535  behaves a bit differently for this class.
16536  The possible choices and what they do are as follows:
16537 \end_layout
16538
16539 \begin_deeper
16540 \begin_layout Description
16541
16542 \family sans
16543 plain
16544 \family default
16545  The final output contains page numbers in the lower right corner.
16546 \end_layout
16547
16548 \begin_layout Description
16549
16550 \family sans
16551 headings
16552 \family default
16553  Like 
16554 \family sans
16555 plain
16556 \family default
16557 , but also prints out any time markers you've put in.
16558  This is the default.
16559 \end_layout
16560
16561 \begin_layout Description
16562
16563 \family sans
16564 empty
16565 \family default
16566  The final output contains no page numbers, time markers, or alignment markers.
16567 \end_layout
16568
16569 \end_deeper
16570 \begin_layout Itemize
16571 The 
16572 \family sans
16573 slides
16574 \family default
16575  class has an extra option: 
16576 \family typewriter
16577 clock
16578 \family default
16579 .
16580  To use it, put 
16581 \begin_inset Quotes eld
16582 \end_inset
16583
16584
16585 \family typewriter
16586 clock
16587 \family default
16588
16589 \begin_inset Quotes erd
16590 \end_inset
16591
16592  in the extra class options.
16593 \end_layout
16594
16595 \begin_deeper
16596 \begin_layout Standard
16597 Using this options allows you to add time markers to 
16598 \family sans
16599 Note
16600 \family default
16601 s.
16602  See section
16603 \begin_inset space ~
16604 \end_inset
16605
16606
16607 \begin_inset CommandInset ref
16608 LatexCommand ref
16609 reference "sec:slideNote"
16610
16611 \end_inset
16612
16613  for more details.
16614 \end_layout
16615
16616 \end_deeper
16617 \begin_layout Standard
16618 You can also use the template file 
16619 \begin_inset Quotes eld
16620 \end_inset
16621
16622
16623 \family typewriter
16624 slides.lyx
16625 \family default
16626
16627 \begin_inset Quotes erd
16628 \end_inset
16629
16630  to automatically set up a document to use the 
16631 \family sans
16632 slides
16633 \family default
16634  class [using 
16635 \family sans
16636 File\SpecialChar menuseparator
16637 New
16638 \begin_inset space ~
16639 \end_inset
16640
16641 from
16642 \begin_inset space ~
16643 \end_inset
16644
16645 Template
16646 \family default
16647  to open your new document].
16648  The template file also contains some examples of the special paragraph
16649  environments used by this class.
16650  I'll describe those next.
16651 \end_layout
16652
16653 \begin_layout Subsection
16654 Paragraph Environments
16655 \end_layout
16656
16657 \begin_layout Subsubsection
16658 Supported Environments
16659 \end_layout
16660
16661 \begin_layout Standard
16662 The first thing you'll notice when you start up a new 
16663 \family sans
16664 slides
16665 \family default
16666  document is the font size and type: it's the equivalent of the size 
16667 \begin_inset Quotes eld
16668 \end_inset
16669
16670
16671 \family sans
16672 Largest
16673 \family default
16674
16675 \begin_inset Quotes erd
16676 \end_inset
16677
16678  in the 
16679 \family sans
16680 Sans
16681 \begin_inset space ~
16682 \end_inset
16683
16684 Serif
16685 \family default
16686  font.
16687  This is also what's used in the output.
16688  Think of this as a 
16689 \begin_inset Quotes eld
16690 \end_inset
16691
16692 visual cue
16693 \begin_inset Quotes erd
16694 \end_inset
16695
16696  to remind you that this is a slide.
16697  Your final slides will use a larger font; ergo, you'll have less space.
16698  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
16699 \end_layout
16700
16701 \begin_layout Standard
16702 The next thing that becomes obvious is the changes to the paragraph environment
16703  pull-down box [at the far-left end of the toolbar].
16704  Most of the paragraph environments you're used to seeing are missing.
16705  There are also five new ones.
16706  That's because the 
16707 \family sans
16708 slides
16709 \family default
16710  class itself only supports certain paragraph environments:
16711 \end_layout
16712
16713 \begin_layout Itemize
16714
16715 \family sans
16716 Standard
16717 \end_layout
16718
16719 \begin_layout Itemize
16720
16721 \family sans
16722 Itemize
16723 \end_layout
16724
16725 \begin_layout Itemize
16726
16727 \family sans
16728 Enumerate
16729 \end_layout
16730
16731 \begin_layout Itemize
16732
16733 \family sans
16734 Description
16735 \end_layout
16736
16737 \begin_layout Itemize
16738
16739 \family sans
16740 List
16741 \end_layout
16742
16743 \begin_layout Itemize
16744
16745 \family sans
16746 Quotation
16747 \end_layout
16748
16749 \begin_layout Itemize
16750
16751 \family sans
16752 Quote
16753 \end_layout
16754
16755 \begin_layout Itemize
16756
16757 \family sans
16758 Verse
16759 \end_layout
16760
16761 \begin_layout Itemize
16762
16763 \family sans
16764 Caption
16765 \end_layout
16766
16767 \begin_layout Itemize
16768
16769 \family sans
16770 \SpecialChar LyX
16771 -Code
16772 \end_layout
16773
16774 \begin_layout Itemize
16775
16776 \family sans
16777 Comment
16778 \end_layout
16779
16780 \begin_layout Standard
16781 All of the other standard environments, including the section-heading environmen
16782 ts, aren't used in the 
16783 \family sans
16784 slides
16785 \family default
16786  class.
16787 \end_layout
16788
16789 \begin_layout Standard
16790 On the other hand, you'll notice the following new environments:
16791 \end_layout
16792
16793 \begin_layout Itemize
16794
16795 \family sans
16796 Slide
16797 \end_layout
16798
16799 \begin_layout Itemize
16800
16801 \family sans
16802 Overlay
16803 \end_layout
16804
16805 \begin_layout Itemize
16806
16807 \family sans
16808 Note
16809 \end_layout
16810
16811 \begin_layout Itemize
16812
16813 \family sans
16814 InvisibleText
16815 \end_layout
16816
16817 \begin_layout Itemize
16818
16819 \family sans
16820 VisibleText
16821 \end_layout
16822
16823 \begin_layout Standard
16824 These five are kind of quirky, due to a 
16825 \begin_inset Quotes eld
16826 \end_inset
16827
16828 feature
16829 \begin_inset Quotes erd
16830 \end_inset
16831
16832  in \SpecialChar LyX
16833 .
16834  You see, \SpecialChar LyX
16835  doesn't permit you to nest any other paragraph environment into
16836  an empty environment.
16837  Now, that's fine and dandy, but it means that you wouldn't be able to start
16838  a slide with anything except plain text.
16839  To deal with this, I've performed a little 
16840 \begin_inset Quotes eld
16841 \end_inset
16842
16843 \SpecialChar LaTeX
16844  magic.
16845 \begin_inset Quotes erd
16846 \end_inset
16847
16848  
16849 \end_layout
16850
16851 \begin_layout Subsubsection
16852 Quirks of the New Environments
16853 \begin_inset CommandInset label
16854 LatexCommand label
16855 name "sec:slideQuirk"
16856
16857 \end_inset
16858
16859
16860 \end_layout
16861
16862 \begin_layout Standard
16863 All five of the new paragraph environments are somewhat quirky due to inherent
16864  limitiations in the current version of \SpecialChar LyX
16865 .
16866  As I just mentioned, \SpecialChar LyX
16867  forbids environments that begin with another environment.
16868  To get around this, the 
16869 \family sans
16870 Slide
16871 \family default
16872  environment isn't a paragraph environment as described in the 
16873 \emph on
16874 User's Guide
16875 \emph default
16876 .
16877  
16878 \end_layout
16879
16880 \begin_layout Standard
16881 You should consider 
16882 \family sans
16883 Slide
16884 \family default
16885
16886 \family sans
16887 Overlay
16888 \family default
16889 , and 
16890 \family sans
16891 Note
16892 \family default
16893  to be 
16894 \begin_inset Quotes eld
16895 \end_inset
16896
16897 pseudo-environments.
16898 \begin_inset Quotes erd
16899 \end_inset
16900
16901  They look like a section heading or a 
16902 \begin_inset Quotes eld
16903 \end_inset
16904
16905
16906 \family sans
16907 Caption
16908 \family default
16909 ,
16910 \begin_inset Quotes erd
16911 \end_inset
16912
16913  but really begin a [and, if necessary, end the previous] paragraph environment.
16914  Likewise, treat 
16915 \family sans
16916 InvisibleText
16917 \family default
16918  and 
16919 \family sans
16920 VisibleText
16921 \family default
16922  as 
16923 \begin_inset Quotes eld
16924 \end_inset
16925
16926 pseudo-commands.
16927 \begin_inset Quotes erd
16928 \end_inset
16929
16930  These two perform some action.
16931 \end_layout
16932
16933 \begin_layout Standard
16934 A common feature of all five environments, 
16935 \family sans
16936 Slide
16937 \family default
16938
16939 \family sans
16940 Overlay
16941 \family default
16942
16943 \family sans
16944 Note
16945 \family default
16946
16947 \family sans
16948 InvisibleText
16949 \family default
16950  and 
16951 \family sans
16952 VisibleText
16953 \family default
16954 , is a rather long-ish label.
16955  The text following this label — ordinarily the contents of the paragraph
16956  environment — is utterly irrelevant for 
16957 \family sans
16958 Slide
16959 \family default
16960
16961 \family sans
16962 Overlay
16963 \family default
16964
16965 \family sans
16966 Note
16967 \family default
16968
16969 \family sans
16970 InvisibleText
16971 \family default
16972  and 
16973 \family sans
16974 VisibleText
16975 \family default
16976 .
16977  \SpecialChar LyX
16978  completely ignores it.
16979  In fact, you can leave these five environments completely empty.
16980  
16981 \end_layout
16982
16983 \begin_layout Standard
16984 While you don't 
16985 \emph on
16986 have
16987 \emph default
16988  to put any text after the rather long-ish label, you might want to.
16989  This could be a short description of the contents of the 
16990 \family sans
16991 Slide
16992 \family default
16993 , for example.
16994  In that case, enter your descriptive comment and hit 
16995 \family sans
16996 Return
16997 \family default
16998  as you normally would.
16999 \end_layout
17000
17001 \begin_layout Standard
17002 If, on the other hand, you don't want to enter any descriptive text, you'll
17003  hit another \SpecialChar LyX
17004  quirk.
17005  \SpecialChar LyX
17006 , like nature, abhors a vacuum, and will not let you start a new paragraph
17007  environment until you put something in the old one.
17008  So, do this:
17009 \end_layout
17010
17011 \begin_layout Itemize
17012 Start entering the text that will 
17013 \emph on
17014 follow
17015 \emph default
17016  the new 
17017 \family sans
17018 Slide
17019 \family default
17020
17021 \family sans
17022 Overlay
17023 \family default
17024
17025 \family sans
17026 Note
17027 \family default
17028
17029 \family sans
17030 InvisibleText
17031 \family default
17032  or 
17033 \family sans
17034 VisibleText
17035 \family default
17036 .
17037  
17038 \end_layout
17039
17040 \begin_layout Itemize
17041 Now move to the beginning of that paragraph.
17042  
17043 \end_layout
17044
17045 \begin_layout Itemize
17046 Next, hit 
17047 \family sans
17048 Return
17049 \family default
17050 .
17051  
17052 \end_layout
17053
17054 \begin_layout Itemize
17055 Finally, change this new, empty paragraph to a 
17056 \family sans
17057 Slide
17058 \family default
17059
17060 \family sans
17061 Overlay
17062 \family default
17063
17064 \family sans
17065 Note
17066 \family default
17067
17068 \family sans
17069 InvisibleText
17070 \family default
17071  or 
17072 \family sans
17073 VisibleText
17074 \family default
17075 .
17076  
17077 \end_layout
17078
17079 \begin_layout Standard
17080 Some future version of \SpecialChar LyX
17081  will, hopefully, resolve this quirkiness\SpecialChar ldots
17082
17083 \end_layout
17084
17085 \begin_layout Subsection
17086 Making a Presentation with 
17087 \family sans
17088 Slide
17089 \family default
17090
17091 \family sans
17092 Overlay
17093 \family default
17094  and 
17095 \family sans
17096 Note
17097 \end_layout
17098
17099 \begin_layout Subsubsection
17100 Using the 
17101 \family sans
17102 Slide
17103 \family default
17104  Environment
17105 \end_layout
17106
17107 \begin_layout Standard
17108 If you're expecting this section to teach you how to actually make a presentatio
17109 n, you'll be sorely disappointed.
17110  Naturally, I'll describe all of the ways the 
17111 \family sans
17112 slides
17113 \family default
17114  class can assist you in preparing the materials for a presentation.
17115  Filling in the contents, however, is up to you.
17116  [Then again, that 
17117 \emph on
17118 is
17119 \emph default
17120  the \SpecialChar LyX
17121  philosophy.]
17122 \end_layout
17123
17124 \begin_layout Standard
17125 Choosing the 
17126 \family sans
17127 Slide
17128 \family default
17129  environment [in the manner described in section
17130 \begin_inset space ~
17131 \end_inset
17132
17133
17134 \begin_inset CommandInset ref
17135 LatexCommand ref
17136 reference "sec:slideQuirk"
17137
17138 \end_inset
17139
17140 ] tells \SpecialChar LyX
17141  to begin a new slide [duh].
17142  The label for this environment/
17143 \begin_inset Quotes erd
17144 \end_inset
17145
17146 pseudo-command
17147 \begin_inset Quotes erd
17148 \end_inset
17149
17150  is an 
17151 \begin_inset Quotes eld
17152 \end_inset
17153
17154 ASCII line,
17155 \begin_inset Quotes erd
17156 \end_inset
17157
17158  in cool blue, followed by the label, 
17159 \begin_inset Quotes eld
17160 \end_inset
17161
17162 NewSlide:
17163 \begin_inset Quotes erd
17164 \end_inset
17165
17166 .
17167  Any text or paragraph environments that follow this one go on the new slide.
17168  It's that simple.
17169 \end_layout
17170
17171 \begin_layout Standard
17172 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17173
17174  (this can be specified in the 
17175 \family sans
17176 Paragraph Layout
17177 \family default
17178  dialog).
17179  In fact, you'll want to, once you finish entering the contents of one slide.
17180  If you've entered more text than can physically fit on a slide, the extra
17181  overflows onto a new slide.
17182  I don't recommend doing this, however, since the overflow slide won't have
17183  any page number on it.
17184  Furthermore, it may interfere with any 
17185 \family sans
17186 Overlay
17187 \family default
17188  you've made to accompany the oversized 
17189 \family sans
17190 Slide
17191 \family default
17192 .
17193 \end_layout
17194
17195 \begin_layout Standard
17196 The 
17197 \family sans
17198 Overlay
17199 \family default
17200  and 
17201 \family sans
17202 Note
17203 \family default
17204  environments work the same way as the 
17205 \family sans
17206 Slide
17207 \family default
17208  environment.
17209  They both create an 
17210 \begin_inset Quotes eld
17211 \end_inset
17212
17213 ASCII line
17214 \begin_inset Quotes erd
17215 \end_inset
17216
17217  followed by a label [
17218 \begin_inset Quotes eld
17219 \end_inset
17220
17221 NewOverlay:
17222 \begin_inset Quotes erd
17223 \end_inset
17224
17225  and 
17226 \begin_inset Quotes eld
17227 \end_inset
17228
17229 NewNote:
17230 \begin_inset Quotes erd
17231 \end_inset
17232
17233 , respectively].
17234  The color is a stunning magenta instead of blue, and the 
17235 \begin_inset Quotes eld
17236 \end_inset
17237
17238 ASCII line
17239 \begin_inset Quotes erd
17240 \end_inset
17241
17242  will look different, in style and in length.
17243  The label fonts of all three also differ from one another.
17244 \end_layout
17245
17246 \begin_layout Standard
17247 As with a 
17248 \family sans
17249 Slide
17250 \family default
17251 , if the contents of a 
17252 \family sans
17253 Note
17254 \family default
17255  or 
17256 \family sans
17257 Overlay
17258 \family default
17259  exceed the physical size of a slide or sheet of paper, the extra will overflow
17260  onto a new sheet.
17261  Again, you should avoid this.
17262  It defeats the whole purpose of 
17263 \family sans
17264 Note
17265 \family default
17266 s and 
17267 \family sans
17268 Overlay
17269 \family default
17270 s.
17271 \end_layout
17272
17273 \begin_layout Subsubsection
17274 Using 
17275 \family sans
17276 Overlay
17277 \family default
17278  with 
17279 \family sans
17280 Slide
17281 \end_layout
17282
17283 \begin_layout Standard
17284 The idea behind an 
17285 \family sans
17286 Overlay
17287 \family default
17288  is a slide that sits atop another slide.
17289  Perhaps you wish to discuss a figure on the main 
17290 \family sans
17291 Slide
17292 \family default
17293  before displaying the text associated with it.
17294  One way to accomplish this is tape a flap of dark paper over the part of
17295  the 
17296 \family sans
17297 Slide
17298 \family default
17299  you want to display later.
17300  This method fails, however, if you wish to overlap one graph with another,
17301  for example.
17302  You would then have to fumble while speaking to align the two separate,
17303  overlapping 
17304 \family sans
17305 Slide
17306 \family default
17307 s to align the two graphs.
17308  The use of an 
17309 \family sans
17310 Overlay
17311 \family default
17312  environment in both cases makes life much easier.
17313 \end_layout
17314
17315 \begin_layout Standard
17316 Each 
17317 \family sans
17318 Overlay
17319 \family default
17320  receives the page number of its 
17321 \begin_inset Quotes eld
17322 \end_inset
17323
17324 parent
17325 \begin_inset Quotes erd
17326 \end_inset
17327
17328  
17329 \family sans
17330 Slide
17331 \family default
17332 , appended by 
17333 \begin_inset Quotes eld
17334 \end_inset
17335
17336
17337 \family typewriter
17338 -a
17339 \family default
17340
17341 \begin_inset Quotes erd
17342 \end_inset
17343
17344 .
17345 \begin_inset Foot
17346 status collapsed
17347
17348 \begin_layout Plain Layout
17349 Presumably, mutliple 
17350 \family sans
17351 Overlay
17352 \family default
17353 s would have 
17354 \begin_inset Quotes eld
17355 \end_inset
17356
17357
17358 \family typewriter
17359 -a
17360 \family default
17361
17362 \begin_inset Quotes erd
17363 \end_inset
17364
17365
17366 \begin_inset Quotes eld
17367 \end_inset
17368
17369
17370 \family typewriter
17371 -b
17372 \family default
17373
17374 \begin_inset Quotes erd
17375 \end_inset
17376
17377
17378 \begin_inset Quotes eld
17379 \end_inset
17380
17381
17382 \family typewriter
17383 -c
17384 \family default
17385
17386 \begin_inset Quotes erd
17387 \end_inset
17388
17389 , etc.
17390 \begin_inset space ~
17391 \end_inset
17392
17393 appended to the page number of the parent 
17394 \family sans
17395 Slide
17396 \family default
17397 .
17398  
17399 \end_layout
17400
17401 \end_inset
17402
17403  Clearly, you want the contents of both the 
17404 \family sans
17405 Slide
17406 \family default
17407  and the 
17408 \family sans
17409 Overlay
17410 \family default
17411  to each fit on a single physical slide! You should probably consider an
17412  
17413 \family sans
17414 Overlay
17415 \family default
17416  as 
17417 \begin_inset Quotes eld
17418 \end_inset
17419
17420 part of
17421 \begin_inset Quotes erd
17422 \end_inset
17423
17424  a 
17425 \family sans
17426 Slide
17427 \family default
17428 .
17429  Indeed, the \SpecialChar LyX
17430  
17431 \family sans
17432 slides
17433 \family default
17434  class provides a visual cue for this: the label at the start of an 
17435 \family sans
17436 Overlay
17437 \family default
17438  is shorter than that at the start of a 
17439 \family sans
17440 Slide
17441 \family default
17442 .
17443  Lastly, when you generate printable output, you'll find alignment markers
17444  in all four corners of both the 
17445 \family sans
17446 Overlay
17447 \family default
17448  page and its parent 
17449 \family sans
17450 Slide
17451 \family default
17452 .
17453  These will assist you in lining up the two physical slides.
17454 \end_layout
17455
17456 \begin_layout Standard
17457 The major problem in overlaying two slides is aligning the contents of the
17458  two transparencies.
17459  How much space should you leave for that graph on the second slide? Worse
17460  still, what if you want a graph and a sentence on second slide, but there
17461  is text on the main transparency that goes in between them? You could try
17462  and insert vertical space of the right size.
17463  The better way is to use 
17464 \family sans
17465 InvisibleText
17466 \family default
17467  and 
17468 \family sans
17469 VisibleText
17470 \family default
17471 .
17472 \end_layout
17473
17474 \begin_layout Standard
17475 As their names imply, 
17476 \family sans
17477 InvisibleText
17478 \family default
17479  and 
17480 \family sans
17481 VisibleText
17482 \family default
17483  are two command-like paragraph environments that make all subsequent text
17484  invisible and visible, respectively.
17485  Note from section
17486 \begin_inset space ~
17487 \end_inset
17488
17489
17490 \begin_inset CommandInset ref
17491 LatexCommand ref
17492 reference "sec:slideQuirk"
17493
17494 \end_inset
17495
17496  that you don't place anything 
17497 \emph on
17498 into
17499 \emph default
17500  these two environments, however.
17501  When you create an 
17502 \family sans
17503 InvisibleText
17504 \family default
17505 , it inserts a centered, sky-blue label into the page reading 
17506 \begin_inset Quotes eld
17507 \end_inset
17508
17509 <Invisible Text Follows>
17510 \begin_inset Quotes erd
17511 \end_inset
17512
17513 .
17514  For paragraphs following this label, the parts of the 
17515 \family sans
17516 Slide
17517 \family default
17518  [or 
17519 \family sans
17520 Overlay
17521 \family default
17522 ; it doesn't matter which] where they would be contain instead blank space.
17523  
17524 \end_layout
17525
17526 \begin_layout Standard
17527 For 
17528 \family sans
17529 VisibleText
17530 \family default
17531 , the corresponding centered label is 
17532 \begin_inset Quotes eld
17533 \end_inset
17534
17535 <Visible Text Follows>
17536 \begin_inset Quotes erd
17537 \end_inset
17538
17539  in blazing green.
17540  Paragraphs following this label behave normally.
17541  Note that the beginning of a new 
17542 \family sans
17543 Slide
17544 \family default
17545
17546 \family sans
17547 Overlay
17548 \family default
17549 , or 
17550 \family sans
17551 Note
17552 \family default
17553  automatically shuts off an 
17554 \family sans
17555 InvisibleText
17556 \family default
17557 .
17558  It's therefore not necessary to use 
17559 \family sans
17560 VisibleText
17561 \family default
17562  at the end of a 
17563 \family sans
17564 Slide
17565 \family default
17566 .
17567 \end_layout
17568
17569 \begin_layout Standard
17570 By now, it should be obvious how to create overlay transparencies using
17571  the proper combination of 
17572 \family sans
17573 InvisibleText
17574 \family default
17575  and 
17576 \family sans
17577 VisibleText
17578 \family default
17579  on a 
17580 \family sans
17581 Slide
17582 \family default
17583  and 
17584 \family sans
17585 Overlay
17586 \family default
17587 :
17588 \end_layout
17589
17590 \begin_layout Enumerate
17591 Create a 
17592 \family sans
17593 Slide
17594 \family default
17595 , including everything that will appear on it, whether on the main slide
17596  or on the 
17597 \family sans
17598 Overlay
17599 \family default
17600 .
17601 \end_layout
17602
17603 \begin_layout Enumerate
17604 Before each figure or paragraph that will appear only on the 
17605 \family sans
17606 Overlay
17607 \family default
17608 , insert an 
17609 \family sans
17610 InvisibleText
17611 \family default
17612  environment.
17613  If necessary, insert a 
17614 \family sans
17615 VisibleText
17616 \family default
17617  environment after the 
17618 \family sans
17619 Overlay
17620 \family default
17621 -only text.
17622 \end_layout
17623
17624 \begin_layout Enumerate
17625 Start an 
17626 \family sans
17627 Overlay
17628 \family default
17629  immediately following the 
17630 \family sans
17631 Slide
17632 \family default
17633 .
17634 \end_layout
17635
17636 \begin_layout Enumerate
17637 Copy the contents of this 
17638 \family sans
17639 Slide
17640 \family default
17641  into the 
17642 \family sans
17643 Overlay
17644 \family default
17645 .
17646 \end_layout
17647
17648 \begin_layout Enumerate
17649 Within the 
17650 \family sans
17651 Overlay
17652 \family default
17653 , change all of the 
17654 \family sans
17655 InvisibleText
17656 \family default
17657  lines to 
17658 \family sans
17659 VisibleText
17660 \family default
17661  and vice-versa.
17662 \end_layout
17663
17664 \begin_layout Standard
17665 That's it.
17666  You've just made an 
17667 \family sans
17668 Overlay
17669 \family default
17670 .
17671 \end_layout
17672
17673 \begin_layout Standard
17674 There's one problem with the way I've designed the \SpecialChar LyX
17675  
17676 \family sans
17677 slides
17678 \family default
17679  class: you can't make text in the middle of a paragraph invisible, nor
17680  make text in the middle of an invisible paragraph visible again.
17681  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
17682  codes.
17683 \begin_inset Foot
17684 status collapsed
17685
17686 \begin_layout Plain Layout
17687 The commands of interest are: 
17688 \end_layout
17689
17690 \begin_layout Itemize
17691
17692 \family typewriter
17693 {
17694 \backslash
17695 invisible \SpecialChar ldots
17696  }
17697 \end_layout
17698
17699 \begin_layout Itemize
17700
17701 \family typewriter
17702 {
17703 \backslash
17704 visible \SpecialChar ldots
17705  }
17706 \end_layout
17707
17708 \begin_layout Plain Layout
17709 \SpecialChar ldots
17710 and need to be marked as \SpecialChar TeX
17711 .
17712  The text whose 
17713 \begin_inset Quotes eld
17714 \end_inset
17715
17716 visibility
17717 \begin_inset Quotes erd
17718 \end_inset
17719
17720  you wish to change goes in between the brackets [and after the 
17721 \family typewriter
17722
17723 \backslash
17724 invisible
17725 \family default
17726  or 
17727 \family typewriter
17728
17729 \backslash
17730 visible
17731 \family default
17732  command].
17733  If you don't know how to mark text as \SpecialChar TeX
17734 , see the appropriate section of
17735  the 
17736 \emph on
17737 User's Guide
17738 \emph default
17739 .
17740 \end_layout
17741
17742 \end_inset
17743
17744
17745 \end_layout
17746
17747 \begin_layout Subsubsection
17748 Using 
17749 \family sans
17750 Note
17751 \family default
17752  with 
17753 \family sans
17754 Slide
17755 \family default
17756
17757 \begin_inset CommandInset label
17758 LatexCommand label
17759 name "sec:slideNote"
17760
17761 \end_inset
17762
17763
17764 \end_layout
17765
17766 \begin_layout Standard
17767 Like an 
17768 \family sans
17769 Overlay
17770 \family default
17771 , a 
17772 \family sans
17773 Note
17774 \family default
17775  is associated with a 
17776 \begin_inset Quotes eld
17777 \end_inset
17778
17779 parent
17780 \begin_inset Quotes erd
17781 \end_inset
17782
17783  
17784 \family sans
17785 Slide
17786 \family default
17787 .
17788  Here, too, the \SpecialChar LyX
17789  
17790 \family sans
17791 slides
17792 \family default
17793  class provides visual cues.
17794  The label for a 
17795 \family sans
17796 Note
17797 \family default
17798  is shorter than that of a 
17799 \family sans
17800 Slide
17801 \family default
17802  [yet longer than that of an 
17803 \family sans
17804 Overlay
17805 \family default
17806 ] and, like the label of an 
17807 \family sans
17808 Overlay
17809 \family default
17810  is shockingly magenta.
17811  Additionally, the printed 
17812 \family sans
17813 Note
17814 \family default
17815  has the page number of its 
17816 \begin_inset Quotes eld
17817 \end_inset
17818
17819 parent
17820 \begin_inset Quotes erd
17821 \end_inset
17822
17823  
17824 \family sans
17825 Slide
17826 \family default
17827 , appended by 
17828 \begin_inset Quotes eld
17829 \end_inset
17830
17831
17832 \family typewriter
17833 -
17834 \family default
17835 1
17836 \begin_inset Quotes erd
17837 \end_inset
17838
17839
17840 \begin_inset Quotes eld
17841 \end_inset
17842
17843
17844 \family typewriter
17845 -
17846 \family default
17847 2
17848 \begin_inset Quotes erd
17849 \end_inset
17850
17851
17852 \begin_inset Quotes eld
17853 \end_inset
17854
17855
17856 \family typewriter
17857 -
17858 \family default
17859 3
17860 \begin_inset Quotes erd
17861 \end_inset
17862
17863 , etc.
17864  You can have multiple 
17865 \family sans
17866 Note
17867 \family default
17868 s associated with a single 
17869 \family sans
17870 Slide
17871 \family default
17872 , and, as with 
17873 \family sans
17874 Slide
17875 \family default
17876  and 
17877 \family sans
17878 Overlay
17879 \family default
17880 , you'll probably want to break up long 
17881 \family sans
17882 Note
17883 \family default
17884 s so that they fit on a single sheet of paper.
17885 \end_layout
17886
17887 \begin_layout Standard
17888 The purpose of a 
17889 \family sans
17890 Note
17891 \family default
17892  is obvious: it contains anything additional you might want to say about
17893  a 
17894 \family sans
17895 Slide
17896 \family default
17897 .
17898  It could also be used as a sheet of reminders for a particular 
17899 \family sans
17900 Slide
17901 \family default
17902 .
17903  In the case of the latter, you might want to make use of time markers.
17904  Currently, the \SpecialChar LyX
17905  
17906 \family sans
17907 slides
17908 \family default
17909  class has no 
17910 \begin_inset Quotes eld
17911 \end_inset
17912
17913 native
17914 \begin_inset Quotes erd
17915 \end_inset
17916
17917  support for time markers, a 
17918 \noun on
17919 Sli\SpecialChar TeX
17920
17921 \noun default
17922  feature.
17923  So, you'll have to resort to using the \SpecialChar LaTeX
17924  codes.
17925 \end_layout
17926
17927 \begin_layout Standard
17928 To use time markers, you'll need to specify the extra class option 
17929 \begin_inset Quotes eld
17930 \end_inset
17931
17932
17933 \family typewriter
17934 clock
17935 \family default
17936
17937 \begin_inset Quotes erd
17938 \end_inset
17939
17940  [see section
17941 \begin_inset space ~
17942 \end_inset
17943
17944
17945 \begin_inset CommandInset ref
17946 LatexCommand ref
17947 reference "sec:slidesetup"
17948
17949 \end_inset
17950
17951 ].
17952  This option turns on timing marks, which will appear in the lower-left-hand
17953  corner of every 
17954 \family sans
17955 Note
17956 \family default
17957  you generate.
17958  To set what appears in the time marker, you use the \SpecialChar LaTeX
17959  commands 
17960 \begin_inset Quotes eld
17961 \end_inset
17962
17963
17964 \family typewriter
17965
17966 \backslash
17967 settime{}
17968 \family default
17969
17970 \begin_inset Quotes erd
17971 \end_inset
17972
17973  and 
17974 \begin_inset Quotes eld
17975 \end_inset
17976
17977
17978 \family typewriter
17979
17980 \backslash
17981 addtime{}
17982 \family default
17983
17984 \begin_inset Quotes erd
17985 \end_inset
17986
17987 .
17988  The arguments of both commands are time measured in seconds.
17989  
17990 \begin_inset Quotes eld
17991 \end_inset
17992
17993
17994 \family typewriter
17995
17996 \backslash
17997 settime{}
17998 \family default
17999
18000 \begin_inset Quotes erd
18001 \end_inset
18002
18003  sets the time marker to a given time.
18004  
18005 \begin_inset Quotes eld
18006 \end_inset
18007
18008
18009 \family typewriter
18010
18011 \backslash
18012 addtime{}
18013 \family default
18014
18015 \begin_inset Quotes erd
18016 \end_inset
18017
18018  increments the time marker by the specified amount.
18019  Using time markers and 
18020 \family sans
18021 Note
18022 \family default
18023 s in this fashion, you can remind yourself how much time to spend on a particula
18024
18025 \family sans
18026 Slide
18027 \family default
18028 .
18029 \end_layout
18030
18031 \begin_layout Standard
18032 There's one last feature to describe.
18033  Clearly, you'd like to print out all of your 
18034 \family sans
18035 Slide
18036 \family default
18037 s and 
18038 \family sans
18039 Overlay
18040 \family default
18041 s on transparencies while printing all of your 
18042 \family sans
18043 Note
18044 \family default
18045 s on plain paper.
18046  However, a 
18047 \family sans
18048 Note
18049 \family default
18050  
18051 \emph on
18052 must
18053 \emph default
18054  follow the 
18055 \family sans
18056 Slide
18057 \family default
18058  with which it is associated.
18059  What's a person to do?
18060 \end_layout
18061
18062 \begin_layout Standard
18063 Luckily, there are two \SpecialChar LaTeX
18064  commands that allow you to select what to print
18065  out.
18066  Both must be placed into the preamble of your document.
18067  The command 
18068 \begin_inset Quotes eld
18069 \end_inset
18070
18071
18072 \family typewriter
18073
18074 \backslash
18075 onlyslides{
18076 \backslash
18077 slides}
18078 \family default
18079
18080 \begin_inset Quotes erd
18081 \end_inset
18082
18083  will cause the output to contain only the 
18084 \family sans
18085 Slide
18086 \family default
18087 s and 
18088 \family sans
18089 Overlay
18090 \family default
18091 s.
18092  Correspondingly, the command 
18093 \begin_inset Quotes eld
18094 \end_inset
18095
18096
18097 \family typewriter
18098
18099 \backslash
18100 onlynotes{
18101 \backslash
18102 notes}
18103 \family default
18104
18105 \begin_inset Quotes erd
18106 \end_inset
18107
18108  prevents the output of anything but 
18109 \family sans
18110 Note
18111 \family default
18112 s.
18113  I'd advise placing both commands in the preamble and initially comment
18114  both out.
18115  You can then preview your entire presentation as you write.
18116  When you're done writing, you can then uncomment one of the two to select
18117  what you want to print.
18118  I like to uncomment 
18119 \begin_inset Quotes eld
18120 \end_inset
18121
18122
18123 \family typewriter
18124
18125 \backslash
18126 onlyslides{
18127 \backslash
18128 slides}
18129 \family default
18130
18131 \begin_inset Quotes erd
18132 \end_inset
18133
18134  , print to a file with 
18135 \begin_inset Quotes eld
18136 \end_inset
18137
18138
18139 \family typewriter
18140 -slides
18141 \family default
18142
18143 \begin_inset Quotes erd
18144 \end_inset
18145
18146  in its name, comment it back out, then uncomment 
18147 \begin_inset Quotes eld
18148 \end_inset
18149
18150
18151 \family typewriter
18152
18153 \backslash
18154 onlynotes{
18155 \backslash
18156 notes}
18157 \family default
18158
18159 \begin_inset Quotes erd
18160 \end_inset
18161
18162  and print to a 
18163 \begin_inset Quotes eld
18164 \end_inset
18165
18166
18167 \family typewriter
18168 *-notes.ps
18169 \family default
18170
18171 \begin_inset Quotes erd
18172 \end_inset
18173
18174  file.
18175  I can then send either file to a printer, loading transparencies or plain
18176  paper as appropriate.
18177 \end_layout
18178
18179 \begin_layout Standard
18180 You can also provide other arguments to the 
18181 \begin_inset Quotes eld
18182 \end_inset
18183
18184
18185 \family typewriter
18186
18187 \backslash
18188 onlyslides{}
18189 \family default
18190
18191 \begin_inset Quotes erd
18192 \end_inset
18193
18194  and 
18195 \begin_inset Quotes eld
18196 \end_inset
18197
18198
18199 \family typewriter
18200
18201 \backslash
18202 onlynotes{}
18203 \family default
18204
18205 \begin_inset Quotes erd
18206 \end_inset
18207
18208  commands.
18209  See a good \SpecialChar LaTeX
18210  book for details.
18211 \end_layout
18212
18213 \begin_layout Subsection
18214 The 
18215 \family sans
18216 slides
18217 \family default
18218  Class Template File
18219 \end_layout
18220
18221 \begin_layout Standard
18222 I have also provided a template file, 
18223 \begin_inset Quotes eld
18224 \end_inset
18225
18226
18227 \family typewriter
18228 slides.lyx
18229 \family default
18230
18231 \begin_inset Quotes erd
18232 \end_inset
18233
18234 , with the 
18235 \family sans
18236 slides
18237 \family default
18238  class.
18239  To use it, begin your new presentation with 
18240 \family sans
18241 File\SpecialChar menuseparator
18242 New
18243 \begin_inset space ~
18244 \end_inset
18245
18246 from
18247 \begin_inset space ~
18248 \end_inset
18249
18250 Template
18251 \family default
18252 .
18253  Your new \SpecialChar LyX
18254  presentation file will contain an example 
18255 \family sans
18256 Slide
18257 \family default
18258  – 
18259 \family sans
18260 Overlay
18261 \family default
18262  – 
18263 \family sans
18264 Note
18265 \family default
18266  triplet.
18267  The 
18268 \family sans
18269 Slide
18270 \family default
18271  and 
18272 \family sans
18273 Overlay
18274 \family default
18275  additionally contain an example of the use of 
18276 \family sans
18277 InvisibleText
18278 \family default
18279  and 
18280 \family sans
18281 VisibleText
18282 \family default
18283 .
18284  Lastly, the preamble will contain:
18285 \end_layout
18286
18287 \begin_layout LyX-Code
18288 % Uncomment to print out only slides and overlays
18289 \end_layout
18290
18291 \begin_layout LyX-Code
18292 %
18293 \end_layout
18294
18295 \begin_layout LyX-Code
18296 %
18297 \backslash
18298 onlyslides{
18299 \backslash
18300 slides}
18301 \begin_inset Newline newline
18302 \end_inset
18303
18304  
18305 \end_layout
18306
18307 \begin_layout LyX-Code
18308 % Uncomment to print out only notes
18309 \end_layout
18310
18311 \begin_layout LyX-Code
18312 %
18313 \end_layout
18314
18315 \begin_layout LyX-Code
18316 %
18317 \backslash
18318 onlynotes{
18319 \backslash
18320 notes}
18321 \end_layout
18322
18323 \begin_layout Standard
18324 One final thing: I created this class to support the \SpecialChar LaTeX2e
18325  
18326 \begin_inset Quotes eld
18327 \end_inset
18328
18329
18330 \noun on
18331 Sli\SpecialChar TeX
18332
18333 \noun default
18334  emulation
18335 \begin_inset Quotes erd
18336 \end_inset
18337
18338  class, one of the built-in \SpecialChar LaTeX2e
18339  classes.
18340  Neither I nor the rest of the \SpecialChar LyX
18341  Team endorse or oppose the use of this built-in
18342  slide class.
18343  It's here if you want it or need it.
18344  There exist other \SpecialChar LaTeX2e
18345  classes for creating presentations, such as the 
18346 \family sans
18347 Foils
18348 \family default
18349  class [see section
18350 \begin_inset space ~
18351 \end_inset
18352
18353
18354 \begin_inset CommandInset ref
18355 LatexCommand ref
18356 reference "sec:foiltex"
18357
18358 \end_inset
18359
18360 ] or the 
18361 \begin_inset Quotes eld
18362 \end_inset
18363
18364
18365 \family typewriter
18366 seminar
18367 \family default
18368
18369 \begin_inset Quotes erd
18370 \end_inset
18371
18372  package [present on some \SpecialChar TeX
18373  distributions].
18374  The latter is not yet supported under \SpecialChar LyX
18375 .
18376 \begin_inset Foot
18377 status collapsed
18378
18379 \begin_layout Plain Layout
18380 Perhaps you can take on the task\SpecialChar ldots
18381
18382 \end_layout
18383
18384 \end_inset
18385
18386  I know nothing about these other classes.
18387  Try them out to see what sort of alternative they provide.
18388 \end_layout
18389
18390 \begin_layout Chapter
18391 \SpecialChar LyX
18392  Features needing Extra Software
18393 \end_layout
18394
18395 \begin_layout Section
18396 Checking \SpecialChar TeX
18397
18398 \end_layout
18399
18400 \begin_layout Standard
18401 by 
18402 \noun on
18403 Asger Alstrup
18404 \end_layout
18405
18406 \begin_layout Subsection
18407 Introduction
18408 \end_layout
18409
18410 \begin_layout Standard
18411 If you have the 
18412 \family typewriter
18413 chktex
18414 \family default
18415  program installed
18416 \begin_inset Foot
18417 status collapsed
18418
18419 \begin_layout Plain Layout
18420
18421 \family typewriter
18422 chktex
18423 \family default
18424  is not yet available when you are using the \SpecialChar LaTeX
18425  distribution MiK\SpecialChar TeX
18426 .
18427 \end_layout
18428
18429 \end_inset
18430
18431 , you'll find in the 
18432 \family sans
18433 Tools
18434 \family default
18435  menu the entry: 
18436 \family sans
18437 Check
18438 \begin_inset space ~
18439 \end_inset
18440
18441 TeX
18442 \family default
18443 .
18444  You can get 
18445 \family typewriter
18446 chktex
18447 \family default
18448  from CTAN,
18449 \begin_inset Newline newline
18450 \end_inset
18451
18452
18453 \begin_inset CommandInset href
18454 LatexCommand href
18455 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18456
18457 \end_inset
18458
18459 .
18460 \end_layout
18461
18462 \begin_layout Standard
18463 The 
18464 \family sans
18465 Chk\SpecialChar TeX
18466
18467 \family default
18468  package is a program that was written by 
18469 \begin_inset Flex Noun
18470 status collapsed
18471
18472 \begin_layout Plain Layout
18473 Jens T.
18474 \begin_inset space ~
18475 \end_inset
18476
18477 Berger Thielemann
18478 \end_layout
18479
18480 \end_inset
18481
18482  in frustration because some constructs in \SpecialChar LaTeX
18483  are sometimes non-intuitive,
18484  and easy to forget.
18485  The program runs over your \SpecialChar LaTeX
18486  file, checks the integrity of the file, and
18487  flags some common errors.
18488  In other technical words, it is 
18489 \family typewriter
18490 lint
18491 \family default
18492  for \SpecialChar LaTeX
18493 .
18494 \end_layout
18495
18496 \begin_layout Standard
18497 Well, what is a syntax checker doing in \SpecialChar LyX
18498  which is supposed to produce correct
18499  \SpecialChar LaTeX
18500  anyways? The answer is simple: Just as 
18501 \family typewriter
18502 Lint
18503 \family default
18504  not only checks the 
18505 \emph on
18506 syntax
18507 \emph default
18508  of C programs, but also does 
18509 \emph on
18510 semantic
18511 \emph default
18512  checks for type-errors, 
18513 \family sans
18514 Chk\SpecialChar TeX
18515
18516 \family default
18517  catches some common 
18518 \emph on
18519 typographic
18520 \emph default
18521  errors, in addition to the syntactical ones.
18522  Specifically, 
18523 \family sans
18524 Chk\SpecialChar TeX
18525
18526 \family default
18527  is capable of detecting several common errors, such as
18528 \end_layout
18529
18530 \begin_layout Itemize
18531 Ellipsis detection:
18532 \begin_inset Newline newline
18533 \end_inset
18534
18535 Use \SpecialChar ldots
18536  instead of ...
18537 \end_layout
18538
18539 \begin_layout Itemize
18540 No space in front of/after parenthesis:
18541 \begin_inset Newline newline
18542 \end_inset
18543
18544 ( wrong spacing )
18545 \end_layout
18546
18547 \begin_layout Itemize
18548 Enforcement of normal space after common abbreviations:
18549 \begin_inset Newline newline
18550 \end_inset
18551
18552 e.
18553 \begin_inset space \thinspace{}
18554 \end_inset
18555
18556 g.
18557 \begin_inset space \space{}
18558 \end_inset
18559
18560 is too wide spacing.
18561 \end_layout
18562
18563 \begin_layout Itemize
18564 Enforcement of end-of-sentence space when the last sentence ends with a
18565  capital letter:
18566 \begin_inset Newline newline
18567 \end_inset
18568
18569 This is a TEST.
18570  And this is wrong spacing.
18571 \end_layout
18572
18573 \begin_layout Itemize
18574 Space in front of labels and similar commands:
18575 \begin_inset Newline newline
18576 \end_inset
18577
18578 The label should stick right up to the text to avoid falling to a wrong
18579  page.
18580  
18581 \begin_inset CommandInset label
18582 LatexCommand label
18583 name "sec:chktex"
18584
18585 \end_inset
18586
18587  
18588 \begin_inset Foot
18589 status collapsed
18590
18591 \begin_layout Plain Layout
18592 This footnote is in danger of falling off to a wrong page
18593 \end_layout
18594
18595 \end_inset
18596
18597  The label is separated too much.
18598 \end_layout
18599
18600 \begin_layout Itemize
18601 Space in front of references, instead of hard spaces:
18602 \begin_inset Newline newline
18603 \end_inset
18604
18605 If you have bad luck, the text will break right between the referenced text
18606  and reference number, and that's a pity.
18607  See section 
18608 \begin_inset CommandInset ref
18609 LatexCommand ref
18610 reference "sec:chktex"
18611
18612 \end_inset
18613
18614 .
18615 \end_layout
18616
18617 \begin_layout Itemize
18618 Use of 
18619 \begin_inset Quotes eld
18620 \end_inset
18621
18622 x
18623 \begin_inset Quotes erd
18624 \end_inset
18625
18626  instead of 
18627 \begin_inset Formula $\times$
18628 \end_inset
18629
18630  between numbers:
18631 \begin_inset Newline newline
18632 \end_inset
18633
18634 2x2 looks cheap compared to 
18635 \begin_inset Formula $2\times2$
18636 \end_inset
18637
18638 .
18639 \end_layout
18640
18641 \begin_layout Standard
18642 and more \SpecialChar ldots
18643  It is an invaluable tool when you are 
18644 \begin_inset Quotes eld
18645 \end_inset
18646
18647 finishing up
18648 \begin_inset Quotes erd
18649 \end_inset
18650
18651  your document before printing, and you should run it right after the obligatory
18652  spelling check, and before you go fine tuning the typesetting.
18653 \end_layout
18654
18655 \begin_layout Subsection
18656 How to use it
18657 \end_layout
18658
18659 \begin_layout Standard
18660 If you have the program installed, usage is as simple as choosing 
18661 \family sans
18662 Tools\SpecialChar menuseparator
18663 Check
18664 \begin_inset space ~
18665 \end_inset
18666
18667 TeX
18668 \family default
18669 .
18670  This will make \SpecialChar LyX
18671  generate a \SpecialChar LaTeX
18672  file of your document, start 
18673 \family sans
18674 Chk\SpecialChar TeX
18675
18676 \family default
18677  to check it, and then make \SpecialChar LyX
18678  insert 
18679 \begin_inset Quotes eld
18680 \end_inset
18681
18682 error boxes
18683 \begin_inset Quotes erd
18684 \end_inset
18685
18686  with the warnings from 
18687 \family sans
18688 Chk\SpecialChar TeX
18689
18690 \family default
18691 , if there were any.
18692  The warnings will be placed close to the point of the mistake, and you
18693  can quickly find them by using the 
18694 \family sans
18695 Navigate\SpecialChar menuseparator
18696 Error
18697 \family default
18698  menu item, or the shortcut key 
18699 \family sans
18700 C-g
18701 \family default
18702  from the default 
18703 \family typewriter
18704 cua
18705 \family default
18706  bind file.
18707  Open the error boxes by clicking on them with the mouse, or use the shortcut
18708  key 
18709 \family sans
18710 C-i
18711 \family default
18712  from 
18713 \family typewriter
18714 cua
18715 \family default
18716  bindings, or the corresponding 
18717 \family sans
18718 C-o
18719 \family default
18720  for the alternate 
18721 \family typewriter
18722 emacs
18723 \family default
18724  bind file.
18725  Read the warning and correct the mistake, if it is a mistake.
18726  If you have trouble understanding what the warning is about, you can safely
18727  ignore it.
18728  Remember that there is a hidden layer between the document on screen and
18729  the technical details in invoking 
18730 \family sans
18731 Chk\SpecialChar TeX
18732
18733 \family default
18734 , and this gap can make some warnings seem arcane or just plain silly.
18735 \end_layout
18736
18737 \begin_layout Standard
18738 This document is an excellent testing bed for the feature, and it should
18739  provide quite a few warnings for you to fiddle with.
18740  Since computers are only so smart, expect most of the warnings to be false
18741  alarms, though.
18742 \end_layout
18743
18744 \begin_layout Subsection
18745 How to fine tune it
18746 \end_layout
18747
18748 \begin_layout Standard
18749 Sometimes, you'll find that 
18750 \family sans
18751 Chk\SpecialChar TeX
18752
18753 \family default
18754  makes more noise than suits your mood.
18755  Then you can choose not to use it, wait until your mood changes, or try
18756  to customize 
18757 \family sans
18758 Chk\SpecialChar TeX
18759
18760 \family default
18761  to get better along with you.
18762 \end_layout
18763
18764 \begin_layout Standard
18765 Although 
18766 \family sans
18767 Chk\SpecialChar TeX
18768
18769 \family default
18770  
18771 \emph on
18772 is
18773 \emph default
18774  very configurable and extensible, you should not expect to solve all problems
18775  with 
18776 \family sans
18777 Chk\SpecialChar TeX
18778
18779 \family default
18780  in \SpecialChar LyX
18781  this way.
18782  Since \SpecialChar LyX
18783  has to generate a somewhat special \SpecialChar LaTeX
18784  file to be able to match the
18785  line numbers from the 
18786 \family sans
18787 Chk\SpecialChar TeX
18788
18789 \family default
18790  output
18791 \begin_inset Foot
18792 status collapsed
18793
18794 \begin_layout Plain Layout
18795 You can inspect the specific output from 
18796 \family sans
18797 chktex
18798 \family default
18799  by using 
18800 \family sans
18801 Document\SpecialChar menuseparator
18802 \SpecialChar LaTeX
18803
18804 \begin_inset space ~
18805 \end_inset
18806
18807 Log
18808 \family default
18809  right after a 
18810 \family sans
18811 chktex
18812 \family default
18813  run.
18814 \end_layout
18815
18816 \end_inset
18817
18818  to the internal document structure, some of the warnings will not appear
18819  correctly.
18820  There are two things you can do about this:
18821 \end_layout
18822
18823 \begin_layout Itemize
18824 Fine tune the 
18825 \family sans
18826 Chk\SpecialChar TeX
18827
18828 \family default
18829  invocation command line in 
18830 \begin_inset Flex Noun
18831 status collapsed
18832
18833 \begin_layout Plain Layout
18834 Tools\SpecialChar menuseparator
18835 Preferences\SpecialChar menuseparator
18836 Output\SpecialChar menuseparator
18837 LaTeX\SpecialChar menuseparator
18838 CheckTeX command
18839 \end_layout
18840
18841 \end_inset
18842
18843 , or the global 
18844 \family sans
18845 Chk\SpecialChar TeX
18846
18847 \family default
18848  installation configuration file (usually with the file 
18849 \family typewriter
18850 chktexrc
18851 \family default
18852 ).
18853  See below to learn what warnings can be enabled and disabled on the command
18854  line.
18855 \end_layout
18856
18857 \begin_layout Itemize
18858 Export your document as a raw \SpecialChar LaTeX
18859  file using 
18860 \family sans
18861 File\SpecialChar menuseparator
18862 Export\SpecialChar menuseparator
18863 \SpecialChar LaTeX
18864
18865 \family default
18866  and run 
18867 \family typewriter
18868 chktex
18869 \family default
18870  manually on that.
18871  Invoked in this way, it can be a hassle to find the corresponding place
18872  in the document inside \SpecialChar LyX
18873 , but with a little patience, you should be able
18874  to do it.
18875 \end_layout
18876
18877 \begin_layout Standard
18878 Here follows the warning messages that can be enabled and disabled in 
18879 \family sans
18880 Preferences
18881 \family default
18882 .
18883  Use 
18884 \family typewriter
18885 -n#
18886 \family default
18887  to disable a warning, and 
18888 \family typewriter
18889 -w#
18890 \family default
18891  to enable a warning.
18892  The emphasized entries are disabled by default, because the default is
18893  "
18894 \family typewriter
18895 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
18896 \family default
18897 ".
18898 \end_layout
18899
18900 \begin_layout Standard
18901 Notice that you should only use the options that enable and disable warnings,
18902  because \SpecialChar LyX
18903  relies on some of the other command line parameters to be set
18904  in a specific way to have a chance to communicate with 
18905 \family typewriter
18906 chktex
18907 \family default
18908 .
18909 \end_layout
18910
18911 \begin_layout Enumerate
18912
18913 \size small
18914 \emph on
18915 Command terminated with space.
18916 \end_layout
18917
18918 \begin_layout Enumerate
18919
18920 \size small
18921 Non-breaking space (
18922 \begin_inset Quotes eld
18923 \end_inset
18924
18925
18926 \family typewriter
18927 ~
18928 \family default
18929
18930 \begin_inset Quotes erd
18931 \end_inset
18932
18933 ) should have been used.
18934 \end_layout
18935
18936 \begin_layout Enumerate
18937
18938 \size small
18939 \emph on
18940 You should enclose the previous parenthesis with 
18941 \begin_inset Quotes eld
18942 \end_inset
18943
18944
18945 \family typewriter
18946 {}
18947 \family default
18948
18949 \begin_inset Quotes erd
18950 \end_inset
18951
18952 .
18953 \end_layout
18954
18955 \begin_layout Enumerate
18956
18957 \size small
18958 Italic correction (
18959 \begin_inset Quotes eld
18960 \end_inset
18961
18962
18963 \family typewriter
18964
18965 \backslash
18966 /
18967 \family default
18968
18969 \begin_inset Quotes erd
18970 \end_inset
18971
18972 ) found in non-italic buffer.
18973 \end_layout
18974
18975 \begin_layout Enumerate
18976
18977 \size small
18978 Italic correction (
18979 \begin_inset Quotes eld
18980 \end_inset
18981
18982
18983 \family typewriter
18984
18985 \backslash
18986 /
18987 \family default
18988
18989 \begin_inset Quotes erd
18990 \end_inset
18991
18992 ) found more than once.
18993 \end_layout
18994
18995 \begin_layout Enumerate
18996
18997 \size small
18998 \emph on
18999 No italic correction (
19000 \begin_inset Quotes eld
19001 \end_inset
19002
19003
19004 \family typewriter
19005
19006 \backslash
19007 /
19008 \family default
19009
19010 \begin_inset Quotes erd
19011 \end_inset
19012
19013 ) found.
19014 \end_layout
19015
19016 \begin_layout Enumerate
19017
19018 \size small
19019 Accent command 
19020 \begin_inset Quotes eld
19021 \end_inset
19022
19023
19024 \family typewriter
19025 cmd
19026 \family default
19027
19028 \begin_inset Quotes erd
19029 \end_inset
19030
19031  needs use of 
19032 \begin_inset Quotes eld
19033 \end_inset
19034
19035
19036 \family typewriter
19037 cmd
19038 \family default
19039
19040 \begin_inset Quotes erd
19041 \end_inset
19042
19043 .
19044 \end_layout
19045
19046 \begin_layout Enumerate
19047
19048 \size small
19049 Wrong length of dash may have been used.
19050 \end_layout
19051
19052 \begin_layout Enumerate
19053
19054 \size small
19055 \emph on
19056 \begin_inset Quotes eld
19057 \end_inset
19058
19059
19060 \family typewriter
19061 %s
19062 \family default
19063
19064 \begin_inset Quotes erd
19065 \end_inset
19066
19067  expected, found 
19068 \begin_inset Quotes eld
19069 \end_inset
19070
19071
19072 \family typewriter
19073 %s
19074 \family default
19075
19076 \begin_inset Quotes erd
19077 \end_inset
19078
19079 .
19080 \end_layout
19081
19082 \begin_layout Enumerate
19083
19084 \size small
19085 Solo 
19086 \begin_inset Quotes eld
19087 \end_inset
19088
19089
19090 \family typewriter
19091 %s
19092 \family default
19093
19094 \begin_inset Quotes erd
19095 \end_inset
19096
19097  found.
19098 \end_layout
19099
19100 \begin_layout Enumerate
19101
19102 \size small
19103 You should use 
19104 \begin_inset Quotes eld
19105 \end_inset
19106
19107
19108 \family typewriter
19109 %s
19110 \family default
19111
19112 \begin_inset Quotes erd
19113 \end_inset
19114
19115  to achieve an ellipsis.
19116 \end_layout
19117
19118 \begin_layout Enumerate
19119
19120 \size small
19121 Inter-word spacing (
19122 \begin_inset Quotes eld
19123 \end_inset
19124
19125
19126 \family typewriter
19127
19128 \backslash
19129
19130 \family default
19131  
19132 \begin_inset Quotes eld
19133 \end_inset
19134
19135 ) should perhaps be used.
19136 \end_layout
19137
19138 \begin_layout Enumerate
19139
19140 \size small
19141 Inter-sentence spacing (
19142 \begin_inset Quotes eld
19143 \end_inset
19144
19145
19146 \family typewriter
19147
19148 \backslash
19149 @
19150 \family default
19151
19152 \begin_inset Quotes erd
19153 \end_inset
19154
19155 ) should perhaps be used.
19156 \end_layout
19157
19158 \begin_layout Enumerate
19159
19160 \size small
19161 Could not find argument for command.
19162 \end_layout
19163
19164 \begin_layout Enumerate
19165
19166 \size small
19167 No match found for 
19168 \begin_inset Quotes eld
19169 \end_inset
19170
19171
19172 \family typewriter
19173 %s
19174 \family default
19175
19176 \begin_inset Quotes erd
19177 \end_inset
19178
19179 .
19180 \end_layout
19181
19182 \begin_layout Enumerate
19183
19184 \size small
19185 Math mode still on at end of \SpecialChar LaTeX
19186  file.
19187 \end_layout
19188
19189 \begin_layout Enumerate
19190
19191 \size small
19192 Number of 
19193 \begin_inset Quotes eld
19194 \end_inset
19195
19196
19197 \family typewriter
19198 char
19199 \family default
19200
19201 \begin_inset Quotes erd
19202 \end_inset
19203
19204  doesn't match the number of 
19205 \begin_inset Quotes eld
19206 \end_inset
19207
19208
19209 \family typewriter
19210 char
19211 \family default
19212
19213 \begin_inset Quotes erd
19214 \end_inset
19215
19216 .
19217 \end_layout
19218
19219 \begin_layout Enumerate
19220
19221 \size small
19222 You should use either 
19223 \family typewriter
19224
19225 \begin_inset Quotes eld
19226 \end_inset
19227
19228
19229 \family default
19230  or 
19231 \family typewriter
19232
19233 \begin_inset Quotes erd
19234 \end_inset
19235
19236
19237 \family default
19238  as an alternative to 
19239 \begin_inset Quotes eld
19240 \end_inset
19241
19242
19243 \family typewriter
19244 "
19245 \family default
19246
19247 \begin_inset Quotes erd
19248 \end_inset
19249
19250 .
19251 \end_layout
19252
19253 \begin_layout Enumerate
19254
19255 \size small
19256 You should use "
19257 \family typewriter
19258 '
19259 \family default
19260 " (ASCII 39) instead of "
19261 \family typewriter
19262 ´
19263 \family default
19264 " (ASCII 180).
19265 \end_layout
19266
19267 \begin_layout Enumerate
19268
19269 \size small
19270 User-specified pattern found.
19271 \end_layout
19272
19273 \begin_layout Enumerate
19274
19275 \size small
19276 This command might not be intended.
19277 \end_layout
19278
19279 \begin_layout Enumerate
19280
19281 \size small
19282 \emph on
19283 Comment displayed.
19284 \end_layout
19285
19286 \begin_layout Enumerate
19287
19288 \size small
19289 Either 
19290 \family typewriter
19291 ''
19292 \backslash
19293 ,'
19294 \family default
19295  or 
19296 \family typewriter
19297 '
19298 \backslash
19299 ,''
19300 \family default
19301  will look better.
19302 \end_layout
19303
19304 \begin_layout Enumerate
19305
19306 \size small
19307 Delete this space to maintain correct page references.
19308 \end_layout
19309
19310 \begin_layout Enumerate
19311
19312 \size small
19313 \emph on
19314 You might wish to put this between a pair of 
19315 \begin_inset Quotes eld
19316 \end_inset
19317
19318
19319 \family typewriter
19320 {}
19321 \family default
19322
19323 \begin_inset Quotes erd
19324 \end_inset
19325
19326 .
19327 \end_layout
19328
19329 \begin_layout Enumerate
19330
19331 \size small
19332 You ought to remove spaces in front of punctuation.
19333 \end_layout
19334
19335 \begin_layout Enumerate
19336
19337 \size small
19338 Could not execute \SpecialChar LaTeX
19339  command.
19340 \end_layout
19341
19342 \begin_layout Enumerate
19343
19344 \size small
19345 Don't use 
19346 \family typewriter
19347
19348 \backslash
19349 /
19350 \family default
19351  in front of small punctuation.
19352 \end_layout
19353
19354 \begin_layout Enumerate
19355
19356 \family typewriter
19357 \size small
19358 $
19359 \backslash
19360 times$
19361 \family default
19362  may look prettier here.
19363 \end_layout
19364
19365 \begin_layout Enumerate
19366
19367 \size small
19368 \emph on
19369 Multiple spaces detected in output.
19370 \end_layout
19371
19372 \begin_layout Enumerate
19373
19374 \size small
19375 This text may be ignored.
19376 \end_layout
19377
19378 \begin_layout Enumerate
19379
19380 \size small
19381 Use 
19382 \family typewriter
19383
19384 \begin_inset Quotes eld
19385 \end_inset
19386
19387
19388 \family default
19389  to begin quotation, not 
19390 \family typewriter
19391 '
19392 \family default
19393 .
19394 \end_layout
19395
19396 \begin_layout Enumerate
19397
19398 \size small
19399 Use 
19400 \family typewriter
19401 '
19402 \family default
19403  to end quotation, not 
19404 \family typewriter
19405
19406 \begin_inset Quotes eld
19407 \end_inset
19408
19409
19410 \family default
19411 .
19412 \end_layout
19413
19414 \begin_layout Enumerate
19415
19416 \size small
19417 Don't mix quotes.
19418 \end_layout
19419
19420 \begin_layout Enumerate
19421
19422 \size small
19423 You should perhaps use 
19424 \begin_inset Quotes eld
19425 \end_inset
19426
19427
19428 \family typewriter
19429 cmd
19430 \family default
19431
19432 \begin_inset Quotes erd
19433 \end_inset
19434
19435  instead.
19436 \end_layout
19437
19438 \begin_layout Enumerate
19439
19440 \size small
19441 You should put a space in front of/after parenthesis.
19442 \end_layout
19443
19444 \begin_layout Enumerate
19445
19446 \size small
19447 You should avoid spaces in front of/after parenthesis.
19448 \end_layout
19449
19450 \begin_layout Enumerate
19451
19452 \size small
19453 \emph on
19454 You should not use punctuation in front of/after quotes.
19455 \end_layout
19456
19457 \begin_layout Enumerate
19458
19459 \size small
19460 Double space found.
19461 \end_layout
19462
19463 \begin_layout Enumerate
19464
19465 \size small
19466 You should put punctuation outside inner/inside display math mode.
19467 \end_layout
19468
19469 \begin_layout Enumerate
19470
19471 \size small
19472 You ought to not use primitive \SpecialChar TeX
19473  in \SpecialChar LaTeX
19474  code.
19475 \end_layout
19476
19477 \begin_layout Enumerate
19478
19479 \size small
19480 You should remove spaces in front of 
19481 \begin_inset Quotes eld
19482 \end_inset
19483
19484
19485 \family typewriter
19486 %s
19487 \family default
19488
19489 \begin_inset Quotes erd
19490 \end_inset
19491
19492
19493 \end_layout
19494
19495 \begin_layout Enumerate
19496
19497 \size small
19498 \begin_inset Quotes eld
19499 \end_inset
19500
19501
19502 \family typewriter
19503 %s
19504 \family default
19505
19506 \begin_inset Quotes erd
19507 \end_inset
19508
19509  is normally not followed by 
19510 \begin_inset Quotes eld
19511 \end_inset
19512
19513
19514 \family typewriter
19515 %c
19516 \family default
19517
19518 \begin_inset Quotes erd
19519 \end_inset
19520
19521 .
19522 \end_layout
19523
19524 \begin_layout Standard
19525 In later versions of \SpecialChar LyX
19526 , we hope to provide a more complete interface to this
19527  tool (and it's smaller cousin 
19528 \family typewriter
19529 lacheck
19530 \family default
19531 ) to exploit the full power of it.
19532  But it's not exactly useless as it is now: go try it on one of your existing
19533  documents of a certain length and be surprised.
19534 \end_layout
19535
19536 \begin_layout Section
19537 Version Control in \SpecialChar LyX
19538
19539 \end_layout
19540
19541 \begin_layout Standard
19542 by
19543 \noun on
19544  Lars Gullik Bjønnes 
19545 \noun default
19546 and 
19547 \noun on
19548 Pavel Sanda
19549 \end_layout
19550
19551 \begin_layout Subsection
19552 Introduction
19553 \end_layout
19554
19555 \begin_layout Standard
19556 \SpecialChar LyX
19557  supports some of the most basic RCS/CVS/SVN/GIT commands.
19558  If you need something a bit more sophisticated you will have to do that
19559  manually in a terminal.
19560 \end_layout
19561
19562 \begin_layout Standard
19563 Also note that CVS support is not as good as subversion support so we advise
19564  using SVN instead.
19565  A good place to start learning Subversion is SVN Book
19566 \begin_inset Foot
19567 status collapsed
19568
19569 \begin_layout Plain Layout
19570 \begin_inset CommandInset href
19571 LatexCommand href
19572 target "http://svnbook.red-bean.com/"
19573
19574 \end_inset
19575
19576
19577 \end_layout
19578
19579 \end_inset
19580
19581 .
19582  In the case of RCS you should read 
19583 \begin_inset Quotes eld
19584 \end_inset
19585
19586 rcsintro
19587 \begin_inset Quotes erd
19588 \end_inset
19589
19590  (a man file, read it with 
19591 \family typewriter
19592 man rcsintro
19593 \family default
19594 ).
19595  This file describes all the basic features of RCS.
19596  You should especially notice the comment about a RCS directory, and the
19597  notion of a master RCS file (the file ending in 
19598 \family typewriter
19599 ,v
19600 \family default
19601 ).
19602 \end_layout
19603
19604 \begin_layout Standard
19605 Before you begin to use the version control features in \SpecialChar LyX
19606 , you should be
19607  familiar with RCS/CVS/SVN/GIT usage.
19608  The implementation in \SpecialChar LyX
19609  assumes a recent version of the GNU RCS or CVS/SVN
19610  package — no guarantees are made for older versions.
19611  Most of the log messages are not currently displayed after operations —
19612  you can check them in the Messages pane if unsure.
19613  Regular users of version control will appreciate VC toolbar, which can
19614  be enabled via 
19615 \family sans
19616 View\SpecialChar menuseparator
19617 Toolbars\SpecialChar menuseparator
19618 Version
19619 \begin_inset space ~
19620 \end_inset
19621
19622 Control
19623 \family default
19624 .
19625 \end_layout
19626
19627 \begin_layout Standard
19628 For introducing your own external commands consult vc-command in the manual
19629  of \SpecialChar LyX
19630  functions.
19631 \end_layout
19632
19633 \begin_layout Standard
19634 It is strongly recommended to store documents in uncompressed format if
19635  using version control (uncheck 
19636 \family sans
19637 Document\SpecialChar menuseparator
19638 Compressed
19639 \family default
19640  if it is checked): Uncompressed LyX documents are text files and therefore
19641  for merging two different versions by version control systems.
19642  Compressed LyX documents are binary files, which cannot be merged by version
19643  control systems.
19644 \end_layout
19645
19646 \begin_layout Subsection
19647 RCS commands in \SpecialChar LyX
19648
19649 \end_layout
19650
19651 \begin_layout Standard
19652 The following sections describe the RCS commands supported by \SpecialChar LyX
19653 .
19654  You can find them in the 
19655 \family sans
19656 File\SpecialChar menuseparator
19657 Version
19658 \begin_inset space ~
19659 \end_inset
19660
19661 Control
19662 \family default
19663  submenu.
19664  \SpecialChar LyX
19665  was tested against RCS 5.7/5.8.
19666 \end_layout
19667
19668 \begin_layout Subsubsection
19669
19670 \family sans
19671 Register
19672 \end_layout
19673
19674 \begin_layout Standard
19675 If your document is not under revision control, this is the only item shown
19676  in the menu.
19677  And if it is under revision control, the 
19678 \family sans
19679 Register
19680 \family default
19681  item is not visible.
19682  
19683 \end_layout
19684
19685 \begin_layout Standard
19686 This command registers your document with RCS (unless you are under the
19687  directory managed by CVS)\SpecialChar endofsentence
19688  You are asked interactively to supply an initial
19689  description of the document.
19690  The document is now set in Read-Only mode and you have to 
19691 \family sans
19692 Check
19693 \begin_inset space ~
19694 \end_inset
19695
19696 Out
19697 \begin_inset space ~
19698 \end_inset
19699
19700 For
19701 \begin_inset space ~
19702 \end_inset
19703
19704 Edit
19705 \family default
19706 , before making any changes to it.
19707  A document under revision control has a 
19708 \begin_inset Quotes eld
19709 \end_inset
19710
19711 [RCS:<version> <locker>]
19712 \begin_inset Quotes erd
19713 \end_inset
19714
19715  item tagged to the filename in the minibuffer.
19716 \end_layout
19717
19718 \begin_layout Standard
19719 RCS command that is run: 
19720 \family typewriter
19721 ci -q -u -i -t-"<initial description>" <file-name>
19722 \end_layout
19723
19724 \begin_layout Standard
19725 Read 
19726 \family typewriter
19727 man ci
19728 \family default
19729  to understand the switches.
19730  
19731 \end_layout
19732
19733 \begin_layout Subsubsection
19734
19735 \family sans
19736 Check In Changes
19737 \end_layout
19738
19739 \begin_layout Standard
19740 When you are finished editing a file, you check in your changes.
19741  When you do this, you are asked for a description of the changes.
19742  This is stored in the history log.
19743  The version number is bumped, your changes are applied to the master RCS
19744  file, the document is unlocked and set to Read-Only mode.
19745 \end_layout
19746
19747 \begin_layout Standard
19748 RCS command: 
19749 \family typewriter
19750 ci -q -u -m"<description>" <file-name>
19751 \end_layout
19752
19753 \begin_layout Subsubsection
19754
19755 \family sans
19756 Check Out For Edit
19757 \end_layout
19758
19759 \begin_layout Standard
19760 By doing this you lock the document so that only you can edit it.
19761  This will also make the document Read-Write only for you.
19762  You will usually continue editing for a while and when you are finished
19763  you check in your changes.
19764  The status line is changed to reflect that you have locked the file.
19765 \end_layout
19766
19767 \begin_layout Standard
19768 RCS command: 
19769 \family typewriter
19770 co -q -l <file-name>
19771 \end_layout
19772
19773 \begin_layout Subsubsection
19774
19775 \family sans
19776 Revert To Repository Version
19777 \end_layout
19778
19779 \begin_layout Standard
19780 This will discard all changes made to the document since the last check
19781  in.
19782  You get a warning before changes are discarded.
19783 \end_layout
19784
19785 \begin_layout Standard
19786 RCS command: 
19787 \family typewriter
19788 co -f -u<version> <file-name>
19789 \end_layout
19790
19791 \begin_layout Subsubsection
19792
19793 \family sans
19794 Copy
19795 \end_layout
19796
19797 \begin_layout Standard
19798 This will create a copy of the current document.
19799  Since RCS does not support copy operations natively, the version history
19800  is not preserved, and the copy is added as a new file.
19801  It requires a clean document without any changes since the last checkin.
19802  You are asked for a file name and a description of the copy operation.
19803  After that the copy is created, both locally and in the repository.
19804  If the parent directories of the copied and original document differ, all
19805  relative paths of included files of the copy are adjusted (like in 
19806 \family sans
19807 File\SpecialChar menuseparator
19808 Save As
19809 \family default
19810 \SpecialChar ldots
19811 ).
19812  Finally, the copy is loaded instead of the original document.
19813 \end_layout
19814
19815 \begin_layout Labeling
19816 \labelwidthstring 00.00.0000
19817 RCS
19818 \begin_inset space ~
19819 \end_inset
19820
19821 commands: 
19822 \begin_inset space ~
19823 \end_inset
19824
19825
19826 \begin_inset Newline newline
19827 \end_inset
19828
19829 Copy 
19830 \begin_inset Flex Code
19831 status collapsed
19832
19833 \begin_layout Plain Layout
19834
19835 \family typewriter
19836 \begin_inset Quotes eld
19837 \end_inset
19838
19839 <file-name>
19840 \begin_inset Quotes erd
19841 \end_inset
19842
19843
19844 \end_layout
19845
19846 \end_inset
19847
19848  to 
19849 \begin_inset Flex Code
19850 status collapsed
19851
19852 \begin_layout Plain Layout
19853
19854 \family typewriter
19855 \begin_inset Quotes eld
19856 \end_inset
19857
19858 <new-file-name>
19859 \begin_inset Quotes erd
19860 \end_inset
19861
19862
19863 \end_layout
19864
19865 \end_inset
19866
19867
19868 \begin_inset Newline newline
19869 \end_inset
19870
19871
19872 \begin_inset Flex Code
19873 status collapsed
19874
19875 \begin_layout Plain Layout
19876 ci -q -u 
19877 \family typewriter
19878 -i 
19879 \begin_inset Quotes eld
19880 \end_inset
19881
19882 <new-file-name>
19883 \begin_inset Quotes erd
19884 \end_inset
19885
19886
19887 \end_layout
19888
19889 \end_inset
19890
19891
19892 \end_layout
19893
19894 \begin_layout Subsubsection
19895
19896 \family sans
19897 Undo Last Checkin
19898 \end_layout
19899
19900 \begin_layout Standard
19901 This makes as if the last check in never happened.
19902  No changes are made to the document loaded into \SpecialChar LyX
19903 , but the last version
19904  is removed from the master RCS file.
19905 \end_layout
19906
19907 \begin_layout Standard
19908 RCS command: 
19909 \family typewriter
19910 rcs -o<version> <file-name>
19911 \end_layout
19912
19913 \begin_layout Subsubsection
19914
19915 \family sans
19916 Show History
19917 \end_layout
19918
19919 \begin_layout Standard
19920 This shows the complete history of the RCS document.
19921  The output of 
19922 \family typewriter
19923 rlog <file-name>
19924 \family default
19925  is shown in a browser.
19926  See 
19927 \family typewriter
19928 man rlog
19929 \family default
19930  for more info.
19931 \end_layout
19932
19933 \begin_layout Subsubsection
19934 Revision info
19935 \end_layout
19936
19937 \begin_layout Standard
19938 \SpecialChar LyX
19939  supports RCS version number, author name, date and time of last commit.
19940  All those are extracted from 
19941 \family typewriter
19942 rlog -r <file-name>
19943 \family default
19944 .
19945  See 
19946 \begin_inset CommandInset ref
19947 LatexCommand ref
19948 reference "subsec:VCS-Revision-Information"
19949
19950 \end_inset
19951
19952  for details.
19953 \end_layout
19954
19955 \begin_layout Subsection
19956 CVS commands in \SpecialChar LyX
19957
19958 \end_layout
19959
19960 \begin_layout Standard
19961 A subset of CVS operations is supported by \SpecialChar LyX
19962 .
19963  You can find the commands in the 
19964 \family sans
19965 File\SpecialChar menuseparator
19966 Version
19967 \begin_inset space ~
19968 \end_inset
19969
19970 Control
19971 \family default
19972  submenu.
19973  The version control system SVN is more powerful, so please use it instead
19974  of CVS if possible.
19975 \end_layout
19976
19977 \begin_layout Subsubsection
19978
19979 \family sans
19980 General CVS usage
19981 \end_layout
19982
19983 \begin_layout Standard
19984 If you start from scratch with CVS you have to create your repository and
19985  checkout the working copy with external tools.
19986  If you're using a client-server setup you may need to login before doing
19987  the first repository checkout.
19988 \end_layout
19989
19990 \begin_layout Standard
19991 If your documents are under revision control and others are using the same
19992  repository problems arise when different changes to the same document at
19993  the same location happen.
19994  Standard CVS repositories don't operate with a file locking mechanism.
19995  This may be surprising, but conflicts only occur if people disagree on
19996  the proper content of the same part of a document.
19997  So, if co-workers are used to communicate regularly, these conflicts occur
19998  rarely.
19999  If they don't communicate they have a fundamental problem anyway.
20000  Nevertheless some people like to work with so called 
20001 \begin_inset Quotes eld
20002 \end_inset
20003
20004 reserved checkouts
20005 \begin_inset Quotes erd
20006 \end_inset
20007
20008 .
20009  If they do so the working copy of all files is readonly when checked out
20010  first and the user starts editing after using a special command to make
20011  the working copy writable.
20012  When the changes are checked in the working copy returns to readonly state.
20013  With \SpecialChar LyX
20014  one has to edit the 
20015 \begin_inset Flex Code
20016 status collapsed
20017
20018 \begin_layout Plain Layout
20019 .cvsrc
20020 \end_layout
20021
20022 \end_inset
20023
20024  file and add the line 
20025 \begin_inset Flex Code
20026 status collapsed
20027
20028 \begin_layout Plain Layout
20029 cvs -r
20030 \end_layout
20031
20032 \end_inset
20033
20034  to work with reserved checkouts.
20035  The benefit is the possibility to see who is using a writable copy of some
20036  document.
20037  It's not guaranteed only one user makes a copy writable.
20038 \end_layout
20039
20040 \begin_layout Standard
20041 \SpecialChar LyX
20042  tries to guess if you're using reserved or non-reserved checkouts.
20043  If your working copy is readonly or it is writable and an additional copy
20044  of your document exists in the CVS/Base sub-directory a reserved otherwise
20045  a non-reserved checkout is assumed.
20046  When a reserved checkout is detected you have to use 
20047 \begin_inset Flex Noun
20048 status collapsed
20049
20050 \begin_layout Plain Layout
20051 Check Out
20052 \end_layout
20053
20054 \end_inset
20055
20056  to make your working copy writable if it's readonly.
20057  After doing so the 
20058 \begin_inset Flex Noun
20059 status collapsed
20060
20061 \begin_layout Plain Layout
20062 Check In
20063 \end_layout
20064
20065 \end_inset
20066
20067  operation is possible and that makes your working copy readonly again after
20068  transferring your changes to the repository.
20069 \end_layout
20070
20071 \begin_layout Standard
20072 More information about CVS can be found here 
20073 \begin_inset Flex URL
20074 status collapsed
20075
20076 \begin_layout Plain Layout
20077
20078 http://www.nongnu.org/cvs
20079 \end_layout
20080
20081 \end_inset
20082
20083  and here 
20084 \begin_inset Flex URL
20085 status collapsed
20086
20087 \begin_layout Plain Layout
20088
20089 http://ximbiot.com/cvs
20090 \end_layout
20091
20092 \end_inset
20093
20094 .
20095 \end_layout
20096
20097 \begin_layout Standard
20098 Read 
20099 \family typewriter
20100 man cvs
20101 \family default
20102  to understand the sub-commands and the switches mentioned below.
20103 \end_layout
20104
20105 \begin_layout Subsubsection
20106
20107 \family sans
20108 Register
20109 \end_layout
20110
20111 \begin_layout Standard
20112 If your document is not under revision control, this is the only item shown
20113  in the menu.
20114  And if it is under revision control, the 
20115 \family sans
20116 Register
20117 \family default
20118  item is not visible.
20119  
20120 \end_layout
20121
20122 \begin_layout Standard
20123 This command registers in CVS your document 
20124 \begin_inset Flex Strong
20125 status collapsed
20126
20127 \begin_layout Plain Layout
20128
20129 \emph on
20130 only
20131 \end_layout
20132
20133 \end_inset
20134
20135  in the case you have already the documents directory under CVS control
20136  (in particular 
20137 \family typewriter
20138 CVS/Entries
20139 \family default
20140  file exists).
20141  This means you have to create or checkout the archive by yourself using
20142  external tools.
20143  (In case you forget that step \SpecialChar LyX
20144  registers the document with RCS.)
20145 \end_layout
20146
20147 \begin_layout Standard
20148 Then you are asked interactively to supply an initial description of the
20149  document.
20150  Don't forget that registered file is not yet checked in.
20151 \end_layout
20152
20153 \begin_layout Standard
20154 CVS command that is run: 
20155 \family typewriter
20156 cvs -q add -m"<entered message>" "<file-name>"
20157 \end_layout
20158
20159 \begin_layout Standard
20160 The term 
20161 \family typewriter
20162 "<file-name>"
20163 \family default
20164  above and for all other CVS commands is an abbreviation for 
20165 \begin_inset Quotes eld
20166 \end_inset
20167
20168 change the current working directory to file location and use the file name
20169  without path component as argument
20170 \begin_inset Quotes erd
20171 \end_inset
20172
20173 .
20174 \end_layout
20175
20176 \begin_layout Subsubsection
20177
20178 \family sans
20179 Check In Changes
20180 \end_layout
20181
20182 \begin_layout Standard
20183 When you are finished editing a file, you commit your changes.
20184  When you do this and you had changed the document, you are asked for a
20185  description of the changes.
20186  After that changes are written to the repository.
20187  In case you didn't change the document and a reserved checkout is detected
20188  the reservation made on 
20189 \begin_inset Flex Noun
20190 status collapsed
20191
20192 \begin_layout Plain Layout
20193 Check Out
20194 \end_layout
20195
20196 \end_inset
20197
20198  is undone.
20199 \end_layout
20200
20201 \begin_layout Labeling
20202 \labelwidthstring 00.00.0000
20203 CVS
20204 \begin_inset space ~
20205 \end_inset
20206
20207 command: 
20208 \begin_inset space ~
20209 \end_inset
20210
20211
20212 \begin_inset Newline newline
20213 \end_inset
20214
20215
20216 \begin_inset Flex Code
20217 status collapsed
20218
20219 \begin_layout Plain Layout
20220 cvs 
20221 \family typewriter
20222 -q commit -m"<description>" "<file-name>"
20223 \end_layout
20224
20225 \end_inset
20226
20227  or
20228 \begin_inset Newline newline
20229 \end_inset
20230
20231
20232 \begin_inset Flex Code
20233 status collapsed
20234
20235 \begin_layout Plain Layout
20236 cvs -q unedit 
20237 \family typewriter
20238 "<file-name>"
20239 \end_layout
20240
20241 \end_inset
20242
20243
20244 \end_layout
20245
20246 \begin_layout Subsubsection
20247
20248 \family sans
20249 Check Out Changes
20250 \end_layout
20251
20252 \begin_layout Standard
20253 When you are sharing a repository with others, you may have to incorporate
20254  their changes into your working copy.
20255 \end_layout
20256
20257 \begin_layout Standard
20258 CVS command: 
20259 \family typewriter
20260 cvs -q update "<file-name>"
20261 \end_layout
20262
20263 \begin_layout Standard
20264 If a readonly checkout is detected the working copy is made writable and
20265  reserved.
20266 \end_layout
20267
20268 \begin_layout Standard
20269 CVS command: 
20270 \family typewriter
20271 cvs -q edit "<file-name>"
20272 \end_layout
20273
20274 \begin_layout Subsubsection
20275
20276 \family sans
20277 Revert To Repository Version
20278 \end_layout
20279
20280 \begin_layout Standard
20281 This will discard all changes made to the document since the last check
20282  in.
20283  You get a warning before changes are discarded.
20284  Firstly the file is deleted, secondly CVS update command is run.
20285 \end_layout
20286
20287 \begin_layout Standard
20288 CVS command: 
20289 \family typewriter
20290 cvs -q update "<file-name>"
20291 \end_layout
20292
20293 \begin_layout Standard
20294 If a reserved checkout is detected and the working copy has no changes only
20295  the reservation is undone.
20296 \end_layout
20297
20298 \begin_layout Standard
20299 CVS command: 
20300 \family typewriter
20301 cvs -q unedit "<file-name>"
20302 \end_layout
20303
20304 \begin_layout Subsubsection
20305
20306 \family sans
20307 Copy
20308 \end_layout
20309
20310 \begin_layout Standard
20311 This will create a copy of the current document.
20312  Since CVS does not support copy operations natively, the version history
20313  is not preserved, and the copy is added as a new file.
20314  It requires a clean document without any changes since the last checkin.
20315  You are asked for a file name and a description of the copy operation.
20316  After that the copy is created, both locally and in the repository.
20317  If the parent directories of the copied and original document differ, all
20318  relative paths of included files of the copy are adjusted (like in 
20319 \family sans
20320 File\SpecialChar menuseparator
20321 Save As
20322 \family default
20323 \SpecialChar ldots
20324 ).
20325  Finally, the copy is loaded instead of the original document.
20326 \end_layout
20327
20328 \begin_layout Labeling
20329 \labelwidthstring 00.00.0000
20330 CVS
20331 \begin_inset space ~
20332 \end_inset
20333
20334 commands: 
20335 \begin_inset space ~
20336 \end_inset
20337
20338
20339 \begin_inset Newline newline
20340 \end_inset
20341
20342 Copy 
20343 \begin_inset Flex Code
20344 status collapsed
20345
20346 \begin_layout Plain Layout
20347
20348 \family typewriter
20349 \begin_inset Quotes eld
20350 \end_inset
20351
20352 <file-name>
20353 \begin_inset Quotes erd
20354 \end_inset
20355
20356
20357 \end_layout
20358
20359 \end_inset
20360
20361  to 
20362 \begin_inset Flex Code
20363 status collapsed
20364
20365 \begin_layout Plain Layout
20366
20367 \family typewriter
20368 \begin_inset Quotes eld
20369 \end_inset
20370
20371 <new-file-name>
20372 \begin_inset Quotes erd
20373 \end_inset
20374
20375
20376 \end_layout
20377
20378 \end_inset
20379
20380
20381 \begin_inset Newline newline
20382 \end_inset
20383
20384
20385 \begin_inset Flex Code
20386 status collapsed
20387
20388 \begin_layout Plain Layout
20389 cvs -q add 
20390 \family typewriter
20391
20392 \begin_inset Quotes eld
20393 \end_inset
20394
20395 <new-file-name>
20396 \begin_inset Quotes erd
20397 \end_inset
20398
20399
20400 \end_layout
20401
20402 \end_inset
20403
20404
20405 \end_layout
20406
20407 \begin_layout Subsubsection
20408
20409 \family sans
20410 Rename
20411 \end_layout
20412
20413 \begin_layout Standard
20414 This will rename the current document.
20415  Since CVS does not support rename operations natively, the version history
20416  is not preserved, the renamed document is added as a new file, and the
20417  original document is deleted.
20418  It requires a clean document without any changes since the last checkin.
20419  You are asked for a file name and a description of the rename operation.
20420  After that the document is renamed, both locally and in the repository.
20421  If the parent directories of the new and old file names differ, all relative
20422  paths of included files are adjusted (like in 
20423 \family sans
20424 File\SpecialChar menuseparator
20425 Save As
20426 \family default
20427 \SpecialChar ldots
20428 ).
20429  Finally, the document is reloaded using the new name.
20430 \end_layout
20431
20432 \begin_layout Labeling
20433 \labelwidthstring 00.00.0000
20434 CVS
20435 \begin_inset space ~
20436 \end_inset
20437
20438 commands: 
20439 \begin_inset space ~
20440 \end_inset
20441
20442
20443 \begin_inset Newline newline
20444 \end_inset
20445
20446 Rename 
20447 \begin_inset Flex Code
20448 status collapsed
20449
20450 \begin_layout Plain Layout
20451
20452 \family typewriter
20453 \begin_inset Quotes eld
20454 \end_inset
20455
20456 <file-name>
20457 \begin_inset Quotes erd
20458 \end_inset
20459
20460
20461 \end_layout
20462
20463 \end_inset
20464
20465  to 
20466 \begin_inset Flex Code
20467 status collapsed
20468
20469 \begin_layout Plain Layout
20470
20471 \family typewriter
20472 \begin_inset Quotes eld
20473 \end_inset
20474
20475 <new-file-name>
20476 \begin_inset Quotes erd
20477 \end_inset
20478
20479
20480 \end_layout
20481
20482 \end_inset
20483
20484
20485 \begin_inset Newline newline
20486 \end_inset
20487
20488
20489 \begin_inset Flex Code
20490 status collapsed
20491
20492 \begin_layout Plain Layout
20493 cvs -q add 
20494 \family typewriter
20495
20496 \begin_inset Quotes eld
20497 \end_inset
20498
20499 <new-file-name>
20500 \begin_inset Quotes erd
20501 \end_inset
20502
20503
20504 \end_layout
20505
20506 \end_inset
20507
20508
20509 \begin_inset Newline newline
20510 \end_inset
20511
20512
20513 \begin_inset Flex Code
20514 status collapsed
20515
20516 \begin_layout Plain Layout
20517 cvs -q remove 
20518 \family typewriter
20519
20520 \begin_inset Quotes eld
20521 \end_inset
20522
20523 <file-name>
20524 \begin_inset Quotes erd
20525 \end_inset
20526
20527
20528 \end_layout
20529
20530 \end_inset
20531
20532
20533 \end_layout
20534
20535 \begin_layout Subsubsection
20536 Update of the local directory checkout from repository
20537 \end_layout
20538
20539 \begin_layout Standard
20540 Once your documents gets more complex, containing sub-documents and pictures,
20541  including external 
20542 \begin_inset Flex Code
20543 status collapsed
20544
20545 \begin_layout Plain Layout
20546 .tex
20547 \end_layout
20548
20549 \end_inset
20550
20551  files and so on using version control becomes more complicated.
20552  \SpecialChar LyX
20553  supports updating the whole tree in which resides the document.
20554  This become especially useful once you cooperate with people which neither
20555  have detailed knowledge about CVS usage nor they have ambition to commit
20556  additional material to the repository.
20557  You have to organize the files structure so that all external files are
20558  in the same directory or subdirectories of the document.
20559  It's good practice anyway to store multipart documents in an extra directory.
20560 \end_layout
20561
20562 \begin_layout Standard
20563 The 
20564 \begin_inset Flex Code
20565 status collapsed
20566
20567 \begin_layout Plain Layout
20568 Update local directory from repository
20569 \end_layout
20570
20571 \end_inset
20572
20573  command updates the whole directory.
20574  If local changes are detected user is warned before update starts.
20575  In case of merge conflicts both versions of the conflicting document parts
20576  are placed in the final document.
20577  You have to review and correct the result of the merge.
20578  You'll find the conflicts enclosed in pairs of 
20579 \begin_inset Flex Code
20580 status collapsed
20581
20582 \begin_layout Plain Layout
20583 <<<<<<<
20584 \end_layout
20585
20586 \end_inset
20587
20588  and 
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593 >>>>>>>
20594 \end_layout
20595
20596 \end_inset
20597
20598  separated by 
20599 \begin_inset Flex Code
20600 status collapsed
20601
20602 \begin_layout Plain Layout
20603 =======
20604 \end_layout
20605
20606 \end_inset
20607
20608 .
20609  The first part is your version as before the update operation with the
20610  document name prepended.
20611  The second one is the repository version with the version number after
20612  the sequence of 
20613 \begin_inset Flex Code
20614 status collapsed
20615
20616 \begin_layout Plain Layout
20617 >
20618 \end_layout
20619
20620 \end_inset
20621
20622  signs.
20623 \end_layout
20624
20625 \begin_layout Labeling
20626 \labelwidthstring 00.00.0000
20627 CVS
20628 \begin_inset space ~
20629 \end_inset
20630
20631 commands: 
20632 \begin_inset space ~
20633 \end_inset
20634
20635
20636 \begin_inset Newline newline
20637 \end_inset
20638
20639
20640 \begin_inset Flex Code
20641 status collapsed
20642
20643 \begin_layout Plain Layout
20644 cd $path; cvs diff 
20645 \family typewriter
20646 "."
20647 \end_layout
20648
20649 \end_inset
20650
20651  (Ask if changes are detected.)
20652 \begin_inset Newline newline
20653 \end_inset
20654
20655
20656 \begin_inset Flex Code
20657 status collapsed
20658
20659 \begin_layout Plain Layout
20660 cd $path; cvs -q update 
20661 \family typewriter
20662 "."
20663 \end_layout
20664
20665 \end_inset
20666
20667
20668 \end_layout
20669
20670 \begin_layout Standard
20671 where 
20672 \begin_inset Flex Code
20673 status collapsed
20674
20675 \begin_layout Plain Layout
20676 $path
20677 \end_layout
20678
20679 \end_inset
20680
20681  stands for the path to the document.
20682 \end_layout
20683
20684 \begin_layout Subsubsection
20685
20686 \family sans
20687 Show History
20688 \end_layout
20689
20690 \begin_layout Standard
20691 This shows the complete history of the CVS document.
20692  The output of 
20693 \family typewriter
20694 cvs log "<file-name>"
20695 \family default
20696  is shown in a browser.
20697 \end_layout
20698
20699 \begin_layout Subsubsection
20700 Revision info
20701 \end_layout
20702
20703 \begin_layout Standard
20704 \SpecialChar LyX
20705  supports CVS version number, author name, date and time of last commit.
20706  All those are extracted from 
20707 \family typewriter
20708 cvs log -r <file-name>
20709 \family default
20710 .
20711  See 
20712 \begin_inset CommandInset ref
20713 LatexCommand ref
20714 reference "subsec:VCS-Revision-Information"
20715
20716 \end_inset
20717
20718  for details.
20719 \end_layout
20720
20721 \begin_layout Subsection
20722 SVN commands in \SpecialChar LyX
20723
20724 \end_layout
20725
20726 \begin_layout Standard
20727 SVN is now partially supported by \SpecialChar LyX
20728 .
20729  You can find the commands in the 
20730 \family sans
20731 File\SpecialChar menuseparator
20732 Version
20733 \begin_inset space ~
20734 \end_inset
20735
20736 Control
20737 \family default
20738  submenu.
20739  Please note that if you use password protected access to repository via
20740  ssh, you will be asked in terminal window.
20741  \SpecialChar LyX
20742  was tested against SVN 1.5, 1.6, 1.7 and 1.8
20743 \begin_inset Foot
20744 status open
20745
20746 \begin_layout Plain Layout
20747 Most of the commands will work with 1.4 too, see 
20748 \begin_inset CommandInset ref
20749 LatexCommand ref
20750 reference "subsec:SVN-Repo-Update"
20751
20752 \end_inset
20753
20754 .
20755  There seems to be currently unresolved permissions problem under SVN 1.8
20756  with reverting changes when file is locked.
20757 \end_layout
20758
20759 \end_inset
20760
20761
20762 \end_layout
20763
20764 \begin_layout Subsubsection
20765
20766 \family sans
20767 Register
20768 \end_layout
20769
20770 \begin_layout Standard
20771 If your document is not under revision control, this is the only item shown
20772  in the menu.
20773  And if it is under revision control, the 
20774 \family sans
20775 Register
20776 \family default
20777  item is not visible.
20778 \end_layout
20779
20780 \begin_layout Standard
20781 This command registers in SVN your document ONLY in case you have already
20782  the documents directory under SVN control (in particular 
20783 \family typewriter
20784 .svn/entries
20785 \family default
20786  file exists).
20787  This means you have to checkout the archive by yourself.
20788 \end_layout
20789
20790 \begin_layout Standard
20791 Then you are asked interactively to supply an initial description of the
20792  document.
20793  Don't forget that registered file is not yet commited.
20794 \end_layout
20795
20796 \begin_layout Standard
20797 SVN command that is run: 
20798 \family typewriter
20799 svn add -q 
20800 \begin_inset Quotes eld
20801 \end_inset
20802
20803 <file-name>
20804 \begin_inset Quotes erd
20805 \end_inset
20806
20807
20808 \end_layout
20809
20810 \begin_layout Standard
20811 Read 
20812 \family typewriter
20813 man svn
20814 \family default
20815  to understand the switches.
20816 \end_layout
20817
20818 \begin_layout Subsubsection
20819
20820 \family sans
20821 Check In Changes
20822 \end_layout
20823
20824 \begin_layout Standard
20825 When you are finished editing a file, you commit your changes.
20826  When you do this, you are asked for a description of the changes.
20827  After that changes are commited.
20828 \end_layout
20829
20830 \begin_layout Standard
20831 SVN command:
20832 \begin_inset Foot
20833 status collapsed
20834
20835 \begin_layout Plain Layout
20836 In case locking is not enabled.
20837  See Section 
20838 \begin_inset CommandInset ref
20839 LatexCommand ref
20840 reference "subsec:SVN-File-Locking"
20841
20842 \end_inset
20843
20844 .
20845 \end_layout
20846
20847 \end_inset
20848
20849  
20850 \family typewriter
20851 svn commit -q -m"<description>" <file-name>
20852 \end_layout
20853
20854 \begin_layout Subsubsection
20855
20856 \family sans
20857 Check Out For Edit
20858 \end_layout
20859
20860 \begin_layout Standard
20861 Updates the changes of this file from the repository.
20862  Be sure you understand SVN merging and conflicts resolving before using
20863  this function, because all conflicts has to be resolved manually by you!
20864 \end_layout
20865
20866 \begin_layout Standard
20867 SVN command:
20868 \begin_inset Foot
20869 status collapsed
20870
20871 \begin_layout Plain Layout
20872 Ditto.
20873 \end_layout
20874
20875 \end_inset
20876
20877  
20878 \family typewriter
20879 svn update --non-interactive 
20880 \begin_inset Quotes eld
20881 \end_inset
20882
20883 <file-name>
20884 \begin_inset Quotes erd
20885 \end_inset
20886
20887
20888 \end_layout
20889
20890 \begin_layout Subsubsection
20891
20892 \family sans
20893 Revert To Repository Version
20894 \end_layout
20895
20896 \begin_layout Standard
20897 This will discard all changes made to the document since the last check
20898  in.
20899  You get a warning before changes are discarded.
20900 \end_layout
20901
20902 \begin_layout Standard
20903 SVN command: 
20904 \family typewriter
20905 svn revert -q 
20906 \begin_inset Quotes eld
20907 \end_inset
20908
20909 <file-name>
20910 \begin_inset Quotes erd
20911 \end_inset
20912
20913
20914 \end_layout
20915
20916 \begin_layout Subsubsection
20917
20918 \family sans
20919 Copy
20920 \end_layout
20921
20922 \begin_layout Standard
20923 This will create a copy of the current document including the version history.
20924  It requires a clean document without any changes since the last checkin.
20925  You are asked for a file name and a description of the copy operation.
20926  After that the copy is created, both locally and in the repository.
20927  If the parent directories of the copied and original document differ, all
20928  relative paths of included files of the copy are adjusted (like in 
20929 \family sans
20930 File\SpecialChar menuseparator
20931 Save As
20932 \family default
20933 \SpecialChar ldots
20934 ).
20935  Finally, the copy is loaded instead of the original document.
20936 \end_layout
20937
20938 \begin_layout Labeling
20939 \labelwidthstring 00.00.0000
20940 SVN
20941 \begin_inset space ~
20942 \end_inset
20943
20944 commands: 
20945 \begin_inset space ~
20946 \end_inset
20947
20948
20949 \begin_inset Newline newline
20950 \end_inset
20951
20952
20953 \begin_inset Flex Code
20954 status collapsed
20955
20956 \begin_layout Plain Layout
20957 svn copy -q 
20958 \family typewriter
20959
20960 \begin_inset Quotes eld
20961 \end_inset
20962
20963 <file-name>
20964 \begin_inset Quotes erd
20965 \end_inset
20966
20967  
20968 \begin_inset Quotes eld
20969 \end_inset
20970
20971 <new-file-name>
20972 \begin_inset Quotes erd
20973 \end_inset
20974
20975
20976 \end_layout
20977
20978 \end_inset
20979
20980
20981 \begin_inset Newline newline
20982 \end_inset
20983
20984
20985 \begin_inset Flex Code
20986 status collapsed
20987
20988 \begin_layout Plain Layout
20989 svn commit
20990 \end_layout
20991
20992 \end_inset
20993
20994
20995 \end_layout
20996
20997 \begin_layout Subsubsection
20998
20999 \family sans
21000 Rename
21001 \end_layout
21002
21003 \begin_layout Standard
21004 This will rename the current document including the version history.
21005  It requires a clean document without any changes since the last checkin.
21006  You are asked for a file name and a description of the rename operation.
21007  After that the document is renamed, both locally and in the repository.
21008  If the parent directories of the new and old file names differ, all relative
21009  paths of included files are adjusted (like in 
21010 \family sans
21011 File\SpecialChar menuseparator
21012 Save As
21013 \family default
21014 \SpecialChar ldots
21015 ).
21016  Finally, the document is reloaded using the new name.
21017 \end_layout
21018
21019 \begin_layout Labeling
21020 \labelwidthstring 00.00.0000
21021 SVN
21022 \begin_inset space ~
21023 \end_inset
21024
21025 commands: 
21026 \begin_inset space ~
21027 \end_inset
21028
21029
21030 \begin_inset Newline newline
21031 \end_inset
21032
21033
21034 \begin_inset Flex Code
21035 status collapsed
21036
21037 \begin_layout Plain Layout
21038 svn move -q 
21039 \family typewriter
21040
21041 \begin_inset Quotes eld
21042 \end_inset
21043
21044 <file-name>
21045 \begin_inset Quotes erd
21046 \end_inset
21047
21048  
21049 \begin_inset Quotes eld
21050 \end_inset
21051
21052 <new-file-name>
21053 \begin_inset Quotes erd
21054 \end_inset
21055
21056
21057 \end_layout
21058
21059 \end_inset
21060
21061
21062 \begin_inset Newline newline
21063 \end_inset
21064
21065
21066 \begin_inset Flex Code
21067 status collapsed
21068
21069 \begin_layout Plain Layout
21070 svn commit
21071 \end_layout
21072
21073 \end_inset
21074
21075
21076 \end_layout
21077
21078 \begin_layout Subsubsection
21079 \begin_inset CommandInset label
21080 LatexCommand label
21081 name "subsec:SVN-Repo-Update"
21082
21083 \end_inset
21084
21085 Update of the local directory checkout from repository
21086 \begin_inset Foot
21087 status collapsed
21088
21089 \begin_layout Plain Layout
21090 Note that this command will work only with subversion 
21091 \begin_inset Formula $\geqq1.5$
21092 \end_inset
21093
21094
21095 \end_layout
21096
21097 \end_inset
21098
21099
21100 \end_layout
21101
21102 \begin_layout Standard
21103 All the commands above have one shortcomming - they deal with the current
21104  document only.
21105  Once your document contains pictures, includes external 
21106 \begin_inset Flex Code
21107 status collapsed
21108
21109 \begin_layout Plain Layout
21110 .tex
21111 \end_layout
21112
21113 \end_inset
21114
21115  files and so on administration becomes more complicated.
21116  \SpecialChar LyX
21117  now supports updating the whole tree in which resides the document
21118 \begin_inset Foot
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122 One need to organize the files structure so that all external files are
21123  in the same directory or subdirectories of the document.
21124  
21125 \end_layout
21126
21127 \end_inset
21128
21129 .
21130  This become especially useful once you cooperate with people which neither
21131  know about subversion management nor they have ambition to commit additional
21132  material to the repository.
21133  
21134 \end_layout
21135
21136 \begin_layout Standard
21137 \begin_inset Flex Code
21138 status collapsed
21139
21140 \begin_layout Plain Layout
21141 Update local directory from repository
21142 \end_layout
21143
21144 \end_inset
21145
21146  command updates the whole directory and in case of merge conflicts local
21147  version of the files are left, so no unintended data loss occurs.
21148  If local changes are detected user is warned before update starts.
21149 \end_layout
21150
21151 \begin_layout Labeling
21152 \labelwidthstring 00.00.0000
21153 SVN
21154 \begin_inset space ~
21155 \end_inset
21156
21157 commands: 
21158 \begin_inset space ~
21159 \end_inset
21160
21161
21162 \begin_inset Newline newline
21163 \end_inset
21164
21165
21166 \begin_inset Flex Code
21167 status collapsed
21168
21169 \begin_layout Plain Layout
21170 svn diff $path
21171 \end_layout
21172
21173 \end_inset
21174
21175  (Ask if changes are detected.)
21176 \begin_inset Newline newline
21177 \end_inset
21178
21179
21180 \begin_inset Flex Code
21181 status collapsed
21182
21183 \begin_layout Plain Layout
21184 svn update –accept mine-full $path
21185 \end_layout
21186
21187 \end_inset
21188
21189
21190 \end_layout
21191
21192 \begin_layout Standard
21193 where 
21194 \begin_inset Flex Code
21195 status collapsed
21196
21197 \begin_layout Plain Layout
21198 $path
21199 \end_layout
21200
21201 \end_inset
21202
21203  stands for the path to the document.
21204 \end_layout
21205
21206 \begin_layout Subsubsection
21207
21208 \family sans
21209 Show History
21210 \end_layout
21211
21212 \begin_layout Standard
21213 This shows the complete history of the SVN document.
21214  The output of 
21215 \family typewriter
21216 svn log 
21217 \begin_inset Quotes eld
21218 \end_inset
21219
21220 <file-name>
21221 \begin_inset Quotes erd
21222 \end_inset
21223
21224
21225 \family default
21226  is shown in a browser.
21227 \end_layout
21228
21229 \begin_layout Subsubsection
21230 File Locking
21231 \begin_inset CommandInset label
21232 LatexCommand label
21233 name "subsec:SVN-File-Locking"
21234
21235 \end_inset
21236
21237
21238 \end_layout
21239
21240 \begin_layout Standard
21241 The file exchange through various revision control systems brings the problem
21242  of merge conflicts in case two different users try to edit the same (parts
21243  of) document.
21244  When such a conflict happens it needs manual resolving and one reasonable
21245  alternative is to provide some kind of locking mechanism, which guarantees
21246  that only one user is allowed to edit file at the given time.
21247 \end_layout
21248
21249 \begin_layout Standard
21250 SVN has two such mechanisms to provide mutual exclusivity for file access
21251  - locks and automatic setting of write permissions (see sec.
21252  
21253 \begin_inset CommandInset ref
21254 LatexCommand ref
21255 reference "subsec:Automatical-Locking-Property"
21256
21257 \end_inset
21258
21259 ) based on 
21260 \begin_inset Flex Code
21261 status collapsed
21262
21263 \begin_layout Plain Layout
21264 svn:needs-lock
21265 \end_layout
21266
21267 \end_inset
21268
21269  file svn property
21270 \begin_inset Foot
21271 status open
21272
21273 \begin_layout Plain Layout
21274 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21275 \end_layout
21276
21277 \end_inset
21278
21279 .
21280  If this property is detected for a given document \SpecialChar LyX
21281  starts to use SVN locks
21282  for document editing automatically and the whole check-in/out mechanism
21283  switches to the same regimen as for RCS.
21284  This in particular means there are two different modes of file use in \SpecialChar LyX
21285 :
21286 \end_layout
21287
21288 \begin_layout Itemize
21289 Unlocked state.
21290  The loaded file is in the read-only mode.
21291  For editing on needs to check-out.
21292  
21293 \emph on
21294 Check-out
21295 \emph default
21296  consists of updating from the repository and gaining write lock.
21297  If the lock is not possible to obtain, we remain in unlocked state.
21298 \end_layout
21299
21300 \begin_layout Itemize
21301 Locked state.
21302  The loaded file is in the 'normal' edit mode.
21303  No other user is allowed to edit the file.
21304  
21305 \emph on
21306 Check-in
21307 \emph default
21308  consists of commiting changes and releasing write-lock.
21309  If no changes have been made to the document, no commit will be produced
21310 \begin_inset Foot
21311 status collapsed
21312
21313 \begin_layout Plain Layout
21314 Don't be puzzled by the fact that you will be asked for commit message anyway.
21315 \end_layout
21316
21317 \end_inset
21318
21319  and only the write-lock will be released.
21320 \end_layout
21321
21322 \begin_layout Standard
21323 SVN commands:
21324 \end_layout
21325
21326 \begin_layout Labeling
21327 \labelwidthstring 00.00.0000
21328 Check-in:
21329 \family typewriter
21330  svn commit -q -m"<description>" "<file-name>"
21331 \begin_inset Newline newline
21332 \end_inset
21333
21334 svn unlock "<file-name>"
21335 \end_layout
21336
21337 \begin_layout Labeling
21338 \labelwidthstring 00.00.0000
21339 Check-out: 
21340 \family typewriter
21341 svn update "<file-name>"
21342 \begin_inset Newline newline
21343 \end_inset
21344
21345 svn lock "<file-name>"
21346 \end_layout
21347
21348 \begin_layout Subsubsection
21349
21350 \family typewriter
21351 \begin_inset CommandInset label
21352 LatexCommand label
21353 name "subsec:Automatical-Locking-Property"
21354
21355 \end_inset
21356
21357
21358 \family default
21359 Automatic Locking Property
21360 \end_layout
21361
21362 \begin_layout Standard
21363 The above mentioned automatic setting of write permissions of the .lyx file
21364  can be set through
21365 \family sans
21366  File\SpecialChar menuseparator
21367 Version
21368 \begin_inset space ~
21369 \end_inset
21370
21371 Control\SpecialChar menuseparator
21372 Toggle locking property
21373 \family default
21374 .
21375  This command is active only when the file is not locked on the svn server
21376  (i.e.
21377  you need to check-out before proceeding).
21378 \end_layout
21379
21380 \begin_layout Labeling
21381 \labelwidthstring 00.00.0000
21382 SVN
21383 \begin_inset space ~
21384 \end_inset
21385
21386 commands:
21387 \end_layout
21388
21389 \begin_layout Labeling
21390 \labelwidthstring 00.00.0000
21391 Set:
21392 \family typewriter
21393  svn propset svn:needs-lock ON "<file-name>"
21394 \end_layout
21395
21396 \begin_layout Labeling
21397 \labelwidthstring 00.00.0000
21398 Unset: 
21399 \family typewriter
21400 svn propdel svn:needs-lock "<file-name>"
21401 \end_layout
21402
21403 \begin_layout Subsubsection
21404 \begin_inset CommandInset label
21405 LatexCommand label
21406 name "subsec:VCS-Revision-Information"
21407
21408 \end_inset
21409
21410 Revision Information in Documents
21411 \end_layout
21412
21413 \begin_layout Standard
21414 There are more possibilities how to activate revision information in our
21415  document.
21416 \end_layout
21417
21418 \begin_layout Itemize
21419 \SpecialChar LyX
21420  supports directly:
21421 \end_layout
21422
21423 \begin_deeper
21424 \begin_layout Itemize
21425 tree revision information (
21426 \begin_inset Flex Code
21427 status collapsed
21428
21429 \begin_layout Plain Layout
21430 vcs-tree-revision
21431 \end_layout
21432
21433 \end_inset
21434
21435 ).
21436  The result is the output of the 
21437 \begin_inset Flex Code
21438 status collapsed
21439
21440 \begin_layout Plain Layout
21441 svnversion
21442 \end_layout
21443
21444 \end_inset
21445
21446  command, the following table gives you an idea, how to read the results.
21447 \end_layout
21448
21449 \begin_layout Standard
21450 \align center
21451 \begin_inset Tabular
21452 <lyxtabular version="3" rows="6" columns="2">
21453 <features tabularvalignment="middle">
21454 <column alignment="center" valignment="top">
21455 <column alignment="center" valignment="top">
21456 <row>
21457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21458 \begin_inset Text
21459
21460 \begin_layout Plain Layout
21461 Output
21462 \end_layout
21463
21464 \end_inset
21465 </cell>
21466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21467 \begin_inset Text
21468
21469 \begin_layout Plain Layout
21470 Meaning
21471 \end_layout
21472
21473 \end_inset
21474 </cell>
21475 </row>
21476 <row>
21477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21478 \begin_inset Text
21479
21480 \begin_layout Plain Layout
21481 4123:4168
21482 \end_layout
21483
21484 \end_inset
21485 </cell>
21486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21487 \begin_inset Text
21488
21489 \begin_layout Plain Layout
21490 mixed revision working copy
21491 \end_layout
21492
21493 \end_inset
21494 </cell>
21495 </row>
21496 <row>
21497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21498 \begin_inset Text
21499
21500 \begin_layout Plain Layout
21501 4168M
21502 \end_layout
21503
21504 \end_inset
21505 </cell>
21506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21507 \begin_inset Text
21508
21509 \begin_layout Plain Layout
21510 modified working copy
21511 \end_layout
21512
21513 \end_inset
21514 </cell>
21515 </row>
21516 <row>
21517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21518 \begin_inset Text
21519
21520 \begin_layout Plain Layout
21521 4123S
21522 \end_layout
21523
21524 \end_inset
21525 </cell>
21526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21527 \begin_inset Text
21528
21529 \begin_layout Plain Layout
21530 switched working copy
21531 \end_layout
21532
21533 \end_inset
21534 </cell>
21535 </row>
21536 <row>
21537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21538 \begin_inset Text
21539
21540 \begin_layout Plain Layout
21541 4123P
21542 \end_layout
21543
21544 \end_inset
21545 </cell>
21546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21547 \begin_inset Text
21548
21549 \begin_layout Plain Layout
21550 partial working copy, from a sparse checkout
21551 \end_layout
21552
21553 \end_inset
21554 </cell>
21555 </row>
21556 <row>
21557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21558 \begin_inset Text
21559
21560 \begin_layout Plain Layout
21561 4123:4168MS
21562 \end_layout
21563
21564 \end_inset
21565 </cell>
21566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21567 \begin_inset Text
21568
21569 \begin_layout Plain Layout
21570 mixed revision, modified, switched working copy
21571 \end_layout
21572
21573 \end_inset
21574 </cell>
21575 </row>
21576 </lyxtabular>
21577
21578 \end_inset
21579
21580
21581 \end_layout
21582
21583 \begin_layout Itemize
21584 file revision information.
21585  The result comes from parsing the output of 
21586 \begin_inset Flex Code
21587 status collapsed
21588
21589 \begin_layout Plain Layout
21590 svn
21591 \begin_inset space ~
21592 \end_inset
21593
21594 info
21595 \begin_inset space ~
21596 \end_inset
21597
21598 –xml
21599 \begin_inset space ~
21600 \end_inset
21601
21602 file.lyx
21603 \end_layout
21604
21605 \end_inset
21606
21607 .
21608  Supported flags are:
21609 \end_layout
21610
21611 \begin_deeper
21612 \begin_layout Itemize
21613 version number of the last commit (
21614 \begin_inset Flex Code
21615 status collapsed
21616
21617 \begin_layout Plain Layout
21618 vcs-revision
21619 \end_layout
21620
21621 \end_inset
21622
21623 )
21624 \end_layout
21625
21626 \begin_layout Itemize
21627 author of the last commit (
21628 \begin_inset Flex Code
21629 status collapsed
21630
21631 \begin_layout Plain Layout
21632 vcs-author
21633 \end_layout
21634
21635 \end_inset
21636
21637 )
21638 \end_layout
21639
21640 \begin_layout Itemize
21641 date of the last commit (
21642 \begin_inset Flex Code
21643 status collapsed
21644
21645 \begin_layout Plain Layout
21646 vcs-date
21647 \end_layout
21648
21649 \end_inset
21650
21651 )
21652 \end_layout
21653
21654 \begin_layout Itemize
21655 time of the last commit (
21656 \begin_inset Flex Code
21657 status collapsed
21658
21659 \begin_layout Plain Layout
21660 vcs-time
21661 \end_layout
21662
21663 \end_inset
21664
21665 )
21666 \end_layout
21667
21668 \end_deeper
21669 \begin_layout Standard
21670 You can obtain this info via InsetInfo (e.g.
21671  
21672 \begin_inset Flex Code
21673 status collapsed
21674
21675 \begin_layout Plain Layout
21676 info-insert buffer vcs-date
21677 \end_layout
21678
21679 \end_inset
21680
21681 ).
21682  The information will be available only when you have the file stored under
21683  svn managment (i.e.
21684  the 
21685 \begin_inset Flex Code
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689 .svn
21690 \end_layout
21691
21692 \end_inset
21693
21694  directory is available with your document).
21695 \end_layout
21696
21697 \end_deeper
21698 \begin_layout Itemize
21699 Another—a hacking one—possibility is to use svn keywords
21700 \begin_inset Foot
21701 status collapsed
21702
21703 \begin_layout Plain Layout
21704 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21705 \end_layout
21706
21707 \end_inset
21708
21709 .
21710  In short – you set file keywords property (e.g.
21711  
21712 \family sans
21713 svn propset svn:keywords 'Rev' file.lyx
21714 \family default
21715 ) and then paste keyword \SpecialChar TeX
21716  code
21717 \begin_inset Foot
21718 status collapsed
21719
21720 \begin_layout Plain Layout
21721 This is an easy way how to ensure that \SpecialChar LyX
21722  won't break the line in the middle
21723  of keyword tag.
21724 \end_layout
21725
21726 \end_inset
21727
21728  tag in your document (e.g.
21729  
21730 \begin_inset ERT
21731 status open
21732
21733 \begin_layout Plain Layout
21734
21735 $Rev$
21736 \end_layout
21737
21738 \end_inset
21739
21740 ).
21741  This way svn client will automatically substitute revision number (e.g.
21742  
21743 \begin_inset ERT
21744 status open
21745
21746 \begin_layout Plain Layout
21747
21748 $Rev: 59 $
21749 \end_layout
21750
21751 \end_inset
21752
21753 ) after each update and commit.
21754  There are more problems with this approach.
21755  Firstly, the '$' character is used in \SpecialChar TeX
21756  world for math equations, so any
21757  occurence of math formula 
21758 \begin_inset Formula $Rev$
21759 \end_inset
21760
21761  become 
21762 \begin_inset Formula $Rev:59$
21763 \end_inset
21764
21765  in your \SpecialChar LyX
21766  document.
21767  Similarly for other keywords like Id, Date, Author, etc.
21768  Secondly svn output is dependent on your locales, so its very easy that
21769  svn would produce some problematic strings once Date is used.
21770  Thirdly you get the whole 'Rev: 59' string in your document instead of
21771  the plain number.
21772  Until subversion implements user's custom keywords it will be hard to use
21773  this approach reliably or let \SpecialChar LyX
21774  to support it directly.
21775 \end_layout
21776
21777 \begin_layout Subsection
21778 SVN and Windows Environment
21779 \end_layout
21780
21781 \begin_layout Quote
21782 My inclination is to say that if the user cannot figure out the command
21783  line operations on their own fairly quickly, they would be well advised
21784  to use TortoiseSVN.
21785  —P.
21786  A.
21787  Rubin
21788 \end_layout
21789
21790 \begin_layout Subsubsection
21791 Preparation
21792 \end_layout
21793
21794 \begin_layout Standard
21795 In addition to installing \SpecialChar LyX
21796 , and having access to a Subversion repository,
21797  the user will need to install the Subversion client program.
21798  A Windows installer for the client program is available from 
21799 \begin_inset CommandInset href
21800 LatexCommand href
21801 name "CollabNet"
21802 target "http://www.collab.net/nonav/downloads/subversion/"
21803
21804 \end_inset
21805
21806 .
21807  The user may also want to install 
21808 \begin_inset CommandInset href
21809 LatexCommand href
21810 name "TortoiseSVN"
21811 target "http://tortoisesvn.tigris.org/"
21812
21813 \end_inset
21814
21815 , which integrates Subversion operations into the context (rightclick) menu
21816  of Windows Explorer.
21817  Operations done outside \SpecialChar LyX
21818  will typically be more convenient using the Explorer
21819  context menu.
21820  Note that TortoiseSVN is not a replacement for the client program, which
21821  is what \SpecialChar LyX
21822  itself will use.
21823 \end_layout
21824
21825 \begin_layout Subsubsection
21826 Bringing a document under Subversion control
21827 \end_layout
21828
21829 \begin_layout Standard
21830 Before a \SpecialChar LyX
21831  document can be brought under version control in Subversion, its
21832  parent directory needs to be under version control.
21833  If the document is being added to a project already in the repository,
21834  this is accomplished by checking the project out to the directory where
21835  the new document will be placed.
21836  If the project itself is not yet under version control (for instance, if
21837  this document starts a new project), the directory must be imported into
21838  the repository.
21839  This is done outside \SpecialChar LyX
21840 .
21841  Both import and checkout are easily accomplished from the Explorer context
21842  menu using TortoiseSVN, or alternatively can be done using the command
21843  line client at a DOS prompt.
21844  The procedure for importing the project using TortoiseSVN is described
21845  below, assuming an existing repository and a new project being started
21846  in 
21847 \family typewriter
21848 C:
21849 \backslash
21850 new project
21851 \family default
21852 .
21853  For information on using the Subversion client program, run 
21854 \family typewriter
21855 svn --help 
21856 \family default
21857 in a DOS shell.
21858 \end_layout
21859
21860 \begin_layout Enumerate
21861 Locate 
21862 \family typewriter
21863 C:
21864 \backslash
21865 new project 
21866 \family default
21867 in Windows Explorer, right click it, and select 
21868 \family sans
21869 TortoiseSVN\SpecialChar menuseparator
21870 Repo-browser
21871 \family default
21872 .
21873  If necessary, adjust the URL for the repository, then click OK.
21874 \end_layout
21875
21876 \begin_layout Enumerate
21877 Right click the level of the repository under which you want to place the
21878  new project folder (typically the top level) and click 
21879 \family sans
21880 Create folder
21881 \family default
21882  Supply a name for the project folder and click OK.
21883  Add a message for the log file if desired, then click OK again.
21884  The new project folder should appear in the repository.
21885  Finally, click OK again to exit the repository browser.
21886 \end_layout
21887
21888 \begin_layout Enumerate
21889 Once again right click 
21890 \family typewriter
21891 C:
21892 \backslash
21893 new project
21894 \family default
21895 , this time selecting SVN Checkout\SpecialChar ldots
21896  Select the URL of the project folder
21897  you just created in the repository, and set the checkout directory to 
21898 \family typewriter
21899 C:
21900 \backslash
21901 new project.
21902
21903 \family default
21904  Click OK.
21905  You will be warned about a non-empty folder; click OK to proceed.
21906  You should now have a 
21907 \family typewriter
21908 .svn
21909 \family default
21910  directory under 
21911 \family typewriter
21912 C:
21913 \backslash
21914 new project.
21915 \end_layout
21916
21917 \begin_layout Enumerate
21918 Create or open your document in \SpecialChar LyX
21919  and click 
21920 \family sans
21921 File\SpecialChar menuseparator
21922 Version
21923 \begin_inset space ~
21924 \end_inset
21925
21926 Control\SpecialChar menuseparator
21927 Register.
21928  
21929 \family default
21930 Add a log message and click OK to commit the document to version control.
21931 \end_layout
21932
21933 \begin_layout Standard
21934 From this point onward, you should have full functionality in the 
21935 \family sans
21936 File\SpecialChar menuseparator
21937 Version
21938 \begin_inset space ~
21939 \end_inset
21940
21941 Control
21942 \family default
21943  menu.
21944  You also have the option of checking the document in and out, viewing its
21945  history, etc.
21946  using the TortoiseSVN context menu in Windows Explorer or the Subversion
21947  client program from a command prompt.
21948 \end_layout
21949
21950 \begin_layout Subsubsection
21951 SSH tunnel used with SVN under Windows
21952 \end_layout
21953
21954 \begin_layout Standard
21955 Compared with Linux setting up an svn client to communicate over ssh under
21956  Windows is a rather troublesome task.
21957  We will at least offer some hints how to setup the client side but prior
21958  knowledge about ssh and the Windows command line is needed, also be prepared
21959  for a great deal of frustration\SpecialChar ldots
21960
21961 \end_layout
21962
21963 \begin_layout Enumerate
21964 Get an svn client for windows, as described in the previous sections.
21965  When it is a fresh install run some svn command (e.g.
21966  
21967 \begin_inset Flex Code
21968 status collapsed
21969
21970 \begin_layout Plain Layout
21971 svn –version
21972 \end_layout
21973
21974 \end_inset
21975
21976 ) to create config files, which you will need to change later on.
21977 \end_layout
21978
21979 \begin_layout Enumerate
21980 Choose an ssh client for Windows.
21981  There are several possibilities, we will use the one from Putty tools
21982 \begin_inset Foot
21983 status collapsed
21984
21985 \begin_layout Plain Layout
21986 \begin_inset Flex URL
21987 status collapsed
21988
21989 \begin_layout Plain Layout
21990
21991 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
21992 \end_layout
21993
21994 \end_inset
21995
21996
21997 \end_layout
21998
21999 \end_inset
22000
22001 .
22002  You will need to set the connection up so that the client doesn't ask for
22003  any password from you.
22004  To keep things easy we will use only keys without any additional password
22005  protection etc.
22006 \end_layout
22007
22008 \begin_deeper
22009 \begin_layout Enumerate
22010 Generate keys by 
22011 \begin_inset Flex Code
22012 status collapsed
22013
22014 \begin_layout Plain Layout
22015 puttygen
22016 \end_layout
22017
22018 \end_inset
22019
22020 .
22021  Save your private .ppk key file and put the public one on the server side.
22022  If the SVN server runs on Linux, note that the format of the public key
22023  is not compatible with Linux openssh and you will need to direcly copy-paste
22024  the key from the “
22025 \emph on
22026 Public key for pasting into OpenSSH authorized_keys file
22027 \emph default
22028 :” edit field into the server's 
22029 \begin_inset Flex Code
22030 status collapsed
22031
22032 \begin_layout Plain Layout
22033 ~/.ssh/authorized_keys
22034 \end_layout
22035
22036 \end_inset
22037
22038  / 
22039 \begin_inset Flex Code
22040 status collapsed
22041
22042 \begin_layout Plain Layout
22043 authorized_keys2
22044 \end_layout
22045
22046 \end_inset
22047
22048  file.
22049 \end_layout
22050
22051 \begin_layout Enumerate
22052 Get the Putty's 
22053 \begin_inset Flex Code
22054 status collapsed
22055
22056 \begin_layout Plain Layout
22057 plink
22058 \end_layout
22059
22060 \end_inset
22061
22062 .
22063  In the SVN config file
22064 \begin_inset Foot
22065 status collapsed
22066
22067 \begin_layout Plain Layout
22068 Exact path depends on Windows version, usually somewhere around 
22069 \begin_inset Flex Code
22070 status collapsed
22071
22072 \begin_layout Plain Layout
22073 c:
22074 \backslash
22075 Documents and Settings
22076 \backslash
22077 user
22078 \backslash
22079 Application Data
22080 \backslash
22081 Subversion
22082 \backslash
22083 config
22084 \end_layout
22085
22086 \end_inset
22087
22088  / 
22089 \begin_inset Flex Code
22090 status collapsed
22091
22092 \begin_layout Plain Layout
22093 AppData
22094 \backslash
22095 Roaming
22096 \backslash
22097 Subversion
22098 \end_layout
22099
22100 \end_inset
22101
22102 .
22103 \end_layout
22104
22105 \end_inset
22106
22107 , section [tunnels], setup ssh command, e.g.
22108  
22109 \begin_inset Flex Code
22110 status collapsed
22111
22112 \begin_layout Plain Layout
22113 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22114 \end_layout
22115
22116 \end_inset
22117
22118 .
22119 \begin_inset Foot
22120 status collapsed
22121
22122 \begin_layout Plain Layout
22123 It will usually take a lot of time to get exact command right and it depends
22124  on many things.
22125  For example do not have some remote server saved as a default session in
22126  Putty etc.
22127  If things fail, try to connect via plink without SVN first.
22128 \end_layout
22129
22130 \end_inset
22131
22132
22133 \end_layout
22134
22135 \end_deeper
22136 \begin_layout Enumerate
22137 Checkout the SVN archive, e.
22138 \begin_inset space \thinspace{}
22139 \end_inset
22140
22141 g.
22142 \begin_inset Newline newline
22143 \end_inset
22144
22145
22146 \begin_inset Flex Code
22147 status collapsed
22148
22149 \begin_layout Plain Layout
22150 svn co svn+ssh://user@server/repository_path
22151 \end_layout
22152
22153 \end_inset
22154
22155 .
22156 \end_layout
22157
22158 \begin_layout Subsubsection
22159 End-of-Line Conversions
22160 \end_layout
22161
22162 \begin_layout Standard
22163 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22164  will
22165  use different line endings inside the .lyx files.
22166  This is not a problem as far as \SpecialChar LyX
22167  functionality is concerned, but the commit
22168  diffs will be huge and merge-conflicts prone.
22169  Fortunately SVN itself knows
22170 \begin_inset Foot
22171 status collapsed
22172
22173 \begin_layout Plain Layout
22174 \begin_inset Flex URL
22175 status collapsed
22176
22177 \begin_layout Plain Layout
22178
22179 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22180 \end_layout
22181
22182 \end_inset
22183
22184
22185 \end_layout
22186
22187 \end_inset
22188
22189  how to deal with CR/LF problems when switching .lyx files to the 
22190 \begin_inset Flex Code
22191 status collapsed
22192
22193 \begin_layout Plain Layout
22194 native
22195 \end_layout
22196
22197 \end_inset
22198
22199  mode.
22200 \begin_inset Foot
22201 status collapsed
22202
22203 \begin_layout Plain Layout
22204 For the lazy guys: 
22205 \begin_inset Flex Code
22206 status collapsed
22207
22208 \begin_layout Plain Layout
22209 svn propset svn:eol-style native FILE_NAME
22210 \end_layout
22211
22212 \end_inset
22213
22214
22215 \end_layout
22216
22217 \end_inset
22218
22219
22220 \end_layout
22221
22222 \begin_layout Subsection
22223 GIT commands in \SpecialChar LyX
22224
22225 \end_layout
22226
22227 \begin_layout Standard
22228 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22229 .
22230  You can find the commands in the 
22231 \family sans
22232 File\SpecialChar menuseparator
22233 Version
22234 \begin_inset space ~
22235 \end_inset
22236
22237 Control
22238 \family default
22239  submenu.
22240  Please note that if you use password protected access to repository via
22241  ssh, you will be asked in terminal window.
22242  \SpecialChar LyX
22243  was tested against GIT 1.7.
22244 \begin_inset Foot
22245 status open
22246
22247 \begin_layout Plain Layout
22248 Windows users please note that you need to ensure that git is on the path.
22249  This can be set from within \SpecialChar LyX
22250  at 
22251 \family sans
22252 Tools\SpecialChar menuseparator
22253 Preferences\SpecialChar menuseparator
22254 Paths\SpecialChar menuseparator
22255 PATH prefix
22256 \family default
22257 .
22258 \end_layout
22259
22260 \end_inset
22261
22262
22263 \end_layout
22264
22265 \begin_layout Standard
22266 One big difference of GIT and the other supported version control systems
22267  is the distributed nature of GIT: With traditional version control systems
22268  there is one central server which hosts the repository.
22269  Users commit their changes to the server, and get updates made by other
22270  users from it.
22271  With GIT, users commit to a local repository.
22272  The local repository can be synchronized with one or more remote repositories
22273  using the 
22274 \begin_inset Flex Code
22275 status collapsed
22276
22277 \begin_layout Plain Layout
22278 pull
22279 \end_layout
22280
22281 \end_inset
22282
22283  and 
22284 \begin_inset Flex Code
22285 status collapsed
22286
22287 \begin_layout Plain Layout
22288 push
22289 \end_layout
22290
22291 \end_inset
22292
22293  GIT commands.
22294  \SpecialChar LyX
22295  does not interact in any way with remote GIT repositories.
22296  It works exclusively with the local repository in a very similar way as
22297  with a central CVS or SVN repository.
22298  If you use remote GIT repositories you need to do the 
22299 \begin_inset Flex Code
22300 status collapsed
22301
22302 \begin_layout Plain Layout
22303 pull
22304 \end_layout
22305
22306 \end_inset
22307
22308  and 
22309 \begin_inset Flex Code
22310 status collapsed
22311
22312 \begin_layout Plain Layout
22313 push
22314 \end_layout
22315
22316 \end_inset
22317
22318  operations with your favourite GIT client.
22319 \end_layout
22320
22321 \begin_layout Subsubsection
22322
22323 \family sans
22324 Register
22325 \end_layout
22326
22327 \begin_layout Standard
22328 If your document is not under revision control, this is the only item shown
22329  in the menu.
22330  And if it is under revision control, the 
22331 \family sans
22332 Register
22333 \family default
22334  item is not visible.
22335 \end_layout
22336
22337 \begin_layout Standard
22338 This command registers in GIT your document ONLY in case you have already
22339  the documents directory under GIT control (in particular 
22340 \family typewriter
22341 .git/index
22342 \family default
22343  file exists).
22344  This means you have to checkout the archive by yourself.
22345 \end_layout
22346
22347 \begin_layout Standard
22348 Then you are asked interactively to supply an initial description of the
22349  document.
22350  Don't forget that registered file is not yet commited.
22351 \end_layout
22352
22353 \begin_layout Standard
22354 GIT command that is run: 
22355 \family typewriter
22356 git add 
22357 \begin_inset Quotes eld
22358 \end_inset
22359
22360 <file-name>
22361 \begin_inset Quotes erd
22362 \end_inset
22363
22364
22365 \end_layout
22366
22367 \begin_layout Standard
22368 Read 
22369 \family typewriter
22370 man git
22371 \family default
22372  to understand the switches.
22373 \end_layout
22374
22375 \begin_layout Subsubsection
22376
22377 \family sans
22378 Check In Changes
22379 \end_layout
22380
22381 \begin_layout Standard
22382 When you are finished editing a file, you commit your changes.
22383  When you do this, you are asked for a description of the changes.
22384  After that changes are commited.
22385 \end_layout
22386
22387 \begin_layout Standard
22388 GIT command: 
22389 \family typewriter
22390 git commit -q -m"<description>" <file-name>
22391 \end_layout
22392
22393 \begin_layout Subsubsection
22394
22395 \family sans
22396 Revert To Repository Version
22397 \end_layout
22398
22399 \begin_layout Standard
22400 This will discard all changes made to the document since the last check
22401  in.
22402  You get a warning before changes are discarded.
22403 \end_layout
22404
22405 \begin_layout Standard
22406 GIT command: 
22407 \family typewriter
22408 git checkout -q 
22409 \begin_inset Quotes eld
22410 \end_inset
22411
22412 <file-name>
22413 \begin_inset Quotes erd
22414 \end_inset
22415
22416
22417 \end_layout
22418
22419 \begin_layout Subsubsection
22420
22421 \family sans
22422 Rename
22423 \end_layout
22424
22425 \begin_layout Standard
22426 This will rename the current document including the version history.
22427  It requires a clean document without any changes since the last checkin.
22428  You are asked for a file name and a description of the rename operation.
22429  After that the document is renamed, both locally and in the repository.
22430  If the parent directories of the new and old file names differ, all relative
22431  paths of included files are adjusted (like in 
22432 \family sans
22433 File\SpecialChar menuseparator
22434 Save As
22435 \family default
22436 \SpecialChar ldots
22437 ).
22438  Finally, the document is reloaded using the new name.
22439 \end_layout
22440
22441 \begin_layout Labeling
22442 \labelwidthstring 00.00.0000
22443 GIT
22444 \begin_inset space ~
22445 \end_inset
22446
22447 commands: 
22448 \begin_inset space ~
22449 \end_inset
22450
22451
22452 \begin_inset Newline newline
22453 \end_inset
22454
22455
22456 \begin_inset Flex Code
22457 status collapsed
22458
22459 \begin_layout Plain Layout
22460 git mv 
22461 \family typewriter
22462
22463 \begin_inset Quotes eld
22464 \end_inset
22465
22466 <file-name>
22467 \begin_inset Quotes erd
22468 \end_inset
22469
22470  
22471 \begin_inset Quotes eld
22472 \end_inset
22473
22474 <new-file-name>
22475 \begin_inset Quotes erd
22476 \end_inset
22477
22478
22479 \end_layout
22480
22481 \end_inset
22482
22483
22484 \begin_inset Newline newline
22485 \end_inset
22486
22487
22488 \begin_inset Flex Code
22489 status collapsed
22490
22491 \begin_layout Plain Layout
22492 git commit
22493 \end_layout
22494
22495 \end_inset
22496
22497
22498 \end_layout
22499
22500 \begin_layout Subsubsection
22501
22502 \family sans
22503 Show History
22504 \end_layout
22505
22506 \begin_layout Standard
22507 This shows the complete history of the GIT document.
22508  The output of 
22509 \family typewriter
22510 git log 
22511 \begin_inset Quotes eld
22512 \end_inset
22513
22514 <file-name>
22515 \begin_inset Quotes erd
22516 \end_inset
22517
22518
22519 \family default
22520  is shown in a browser.
22521 \end_layout
22522
22523 \begin_layout Subsubsection
22524 Version Info
22525 \end_layout
22526
22527 \begin_layout Standard
22528 \SpecialChar LyX
22529  supports GIT hash number of the last commit to the file, author name, date
22530  and time of last commit.
22531  All those are extracted from 
22532 \family typewriter
22533 git log -n 1 --pretty=format:%H%n%an%n%ai
22534 \family default
22535 .
22536  Tree version information is obtained via 
22537 \family typewriter
22538 git describe --abbrev --dirty --long
22539 \family default
22540 .
22541  See 
22542 \begin_inset CommandInset ref
22543 LatexCommand ref
22544 reference "subsec:VCS-Revision-Information"
22545
22546 \end_inset
22547
22548  for other details.
22549 \end_layout
22550
22551 \begin_layout Subsection
22552 Further tuning
22553 \end_layout
22554
22555 \begin_layout Standard
22556 With the recent addition of the vc-command function \SpecialChar LyX
22557  power users are allowed
22558  to create their own commands for revision control.
22559 \end_layout
22560
22561 \begin_layout Standard
22562 As an example you can see how two TortoiseSVN commands could be integrated
22563  directly:
22564 \end_layout
22565
22566 \begin_layout Description
22567 Commit: 
22568 \begin_inset Flex Code
22569 status collapsed
22570
22571 \begin_layout Plain Layout
22572 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22573 \end_layout
22574
22575 \end_inset
22576
22577
22578 \end_layout
22579
22580 \begin_layout Description
22581 Revert: 
22582 \begin_inset Flex Code
22583 status collapsed
22584
22585 \begin_layout Plain Layout
22586 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22587 \end_layout
22588
22589 \end_inset
22590
22591
22592 \end_layout
22593
22594 \begin_layout Subsection
22595 Version control and Document comparison
22596 \end_layout
22597
22598 \begin_layout Standard
22599 One of the typical uses of version control is to inspect the changes between
22600  revisions, usually by creating 
22601 \begin_inset Flex Code
22602 status collapsed
22603
22604 \begin_layout Plain Layout
22605 diff
22606 \end_layout
22607
22608 \end_inset
22609
22610  dumps.
22611  While this is useful for plain text files, it is much less useful in the
22612  case of \SpecialChar LyX
22613  files, which have more a complicated structure.
22614  Hence we provide binding to the Document comparison feature.
22615  There are two ways of calling this feature - either by direct call of 
22616 \begin_inset Flex Code
22617 status collapsed
22618
22619 \begin_layout Plain Layout
22620 VC_COMPARE
22621 \end_layout
22622
22623 \end_inset
22624
22625  \SpecialChar LyX
22626  function (for details see \SpecialChar LyX
22627  functions manual) or by icon/menu item 
22628 \begin_inset Flex Noun
22629 status collapsed
22630
22631 \begin_layout Plain Layout
22632 Compare with older revision...
22633 \end_layout
22634
22635 \end_inset
22636
22637 .
22638  One can either compare two chosen revisions of the document or he can simply
22639  compare the current version of edited text with older revisions (where
22640  '
22641 \begin_inset Flex Noun
22642 status collapsed
22643
22644 \begin_layout Plain Layout
22645 0
22646 \end_layout
22647
22648 \end_inset
22649
22650 ' revisions back means comparison of the edited file with last commited
22651  revision).
22652  
22653 \end_layout
22654
22655 \begin_layout Standard
22656 This feature is supported for SVN and RCS though due to the more complicated
22657  versioning scheme of RCS there is a constraint – when addressing the revisions
22658  in dialog, numbers always point to the last number in RCS revision number,
22659  i.e.
22660  '35' in '1.2.35'.
22661  We don't currently support GIT addressing of revisions, one can just compare
22662  edited document with its revision X steps backs, where X is addressed as
22663  HEAD~X.
22664 \end_layout
22665
22666 \begin_layout Section
22667 Literate Programming
22668 \end_layout
22669
22670 \begin_layout Standard
22671 Updated by 
22672 \noun on
22673 Kayvan Sylvan 
22674 \noun default
22675 (kayvan@sylvan.com)
22676 \noun on
22677
22678 \noun default
22679 original documentation written by 
22680 \noun on
22681 Edmar Wienskoski Jr.
22682
22683 \noun default
22684  (edmar-w-jr@technologist.com)
22685 \end_layout
22686
22687 \begin_layout Subsection
22688 Introduction
22689 \end_layout
22690
22691 \begin_layout Standard
22692 The main purpose of this documentation is to show you how to use \SpecialChar LyX
22693  for literate
22694  programming, where it is assumed that you are familiar with this programming
22695  technique, and know what 
22696 \begin_inset Quotes eld
22697 \end_inset
22698
22699 tangling
22700 \begin_inset Quotes erd
22701 \end_inset
22702
22703  and 
22704 \begin_inset Quotes eld
22705 \end_inset
22706
22707 weaving
22708 \begin_inset Quotes erd
22709 \end_inset
22710
22711  means.
22712  If that is not the case, please follow the web links provided in the following
22713  sections.
22714  There is a lot of good documentation out there covering old development
22715  history to the latest tools tips.
22716 \end_layout
22717
22718 \begin_layout Standard
22719 It is also assumed that you are familiar with \SpecialChar LyX
22720  itself to a point that you
22721  are comfortable changing your \SpecialChar LyX
22722  preferences, and X resources file.
22723  If that is not the case please refer to other \SpecialChar LyX
22724  documentation to cover your
22725  specific needs.
22726 \end_layout
22727
22728 \begin_layout Subsection
22729 Literate Programming
22730 \end_layout
22731
22732 \begin_layout Standard
22733 From the Literate Programming FAQ: 
22734 \end_layout
22735
22736 \begin_layout Quotation
22737 Literate programming is the combination of documentation and source together
22738  in a fashion suited for reading by human beings.
22739  In fact, literate programs should be enjoyable reading, even inviting!
22740  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
22741  and documentation in a single file.
22742  Literate programming tools then parse the file to produce either readable
22743  documentation or compilable source.
22744  The WEB style of literate programming was created by D.
22745 \begin_inset space \thinspace{}
22746 \end_inset
22747
22748 E.
22749  Knuth during the development of his \SpecialChar TeX
22750  typesetting software.
22751  
22752 \end_layout
22753
22754 \begin_layout Standard
22755 Another excerpt says:
22756 \end_layout
22757
22758 \begin_layout Quotation
22759
22760 \emph on
22761 How is literate programming different from verbose commenting?
22762 \end_layout
22763
22764 \begin_layout Quotation
22765 There are three distinguishing characteristics.
22766  In order of importance, they are: 
22767 \end_layout
22768
22769 \begin_deeper
22770 \begin_layout Itemize
22771 flexible order of elaboration 
22772 \end_layout
22773
22774 \begin_layout Itemize
22775 automatic support for browsing 
22776 \end_layout
22777
22778 \begin_layout Itemize
22779 typeset documentation, especially diagrams and mathematics 
22780 \end_layout
22781
22782 \end_deeper
22783 \begin_layout Standard
22784 Now that I sparked your curiosity, take a look in the references.
22785 \end_layout
22786
22787 \begin_layout Subsubsection
22788 References
22789 \end_layout
22790
22791 \begin_layout Standard
22792 The complete Literate Programming FAQ can be found at:
22793 \end_layout
22794
22795 \begin_layout Quote
22796 Literate Programming FAQ 
22797 \begin_inset Flex URL
22798 status collapsed
22799
22800 \begin_layout Plain Layout
22801
22802 http://www.literateprogramming.com/lpfaq.pdf
22803 \end_layout
22804
22805 \end_inset
22806
22807
22808 \end_layout
22809
22810 \begin_layout Standard
22811 The FAQ lists 23 (twenty three!) different literate programming tools.
22812  Where some are specialized or 
22813 \begin_inset Quotes eld
22814 \end_inset
22815
22816 tailored
22817 \begin_inset Quotes erd
22818 \end_inset
22819
22820  for particular programming languages, while other have general scope.
22821  I selected 
22822 \noun on
22823 Noweb
22824 \noun default
22825  for my own use for several reasons:
22826 \end_layout
22827
22828 \begin_layout Itemize
22829 It can generate the documentation either in \SpecialChar LaTeX
22830  or HTML.
22831 \end_layout
22832
22833 \begin_layout Itemize
22834 It has a open architecture, i.
22835 \begin_inset space \thinspace{}
22836 \end_inset
22837
22838 e.
22839 \begin_inset space \space{}
22840 \end_inset
22841
22842 it is easy to plug in new filters and to perform special processing that
22843  you may need.
22844  
22845 \end_layout
22846
22847 \begin_layout Itemize
22848 There is a good selection of filters available already (the HTML is one
22849  of them).
22850 \end_layout
22851
22852 \begin_layout Itemize
22853 It is free.
22854 \end_layout
22855
22856 \begin_layout Standard
22857 The Noweb web page can be found at: 
22858 \end_layout
22859
22860 \begin_layout Quote
22861 Noweb home page 
22862 \begin_inset Flex URL
22863 status collapsed
22864
22865 \begin_layout Plain Layout
22866
22867 http://www.cs.virginia.edu/~nr/noweb/
22868 \end_layout
22869
22870 \end_inset
22871
22872
22873 \end_layout
22874
22875 \begin_layout Standard
22876 Starting from there you can reach many other interesting links and even
22877  some literate program examples.
22878 \end_layout
22879
22880 \begin_layout Subsection
22881 \SpecialChar LyX
22882  and Literate Programming with Noweb
22883 \end_layout
22884
22885 \begin_layout Standard
22886 The \SpecialChar LyX
22887  support for Literate Programming is provided by using the generic \SpecialChar LyX
22888
22889  converters mechanism.
22890  This support is provided in a 
22891 \begin_inset Quotes eld
22892 \end_inset
22893
22894 Noweb independent
22895 \begin_inset Quotes erd
22896 \end_inset
22897
22898  way, i.
22899 \begin_inset space \thinspace{}
22900 \end_inset
22901
22902 e.
22903 \begin_inset space \space{}
22904 \end_inset
22905
22906 you will be able to use this new \SpecialChar LyX
22907  feature with some other literate programming
22908  tool of your choice by just changing your \SpecialChar LyX
22909  preferences.
22910 \end_layout
22911
22912 \begin_layout Subsubsection
22913 Generating documents and code (weaving and tangling)
22914 \end_layout
22915
22916 \begin_layout Paragraph
22917 Using the noweb module
22918 \end_layout
22919
22920 \begin_layout Standard
22921 If you have installed Noweb and \SpecialChar LyX
22922  successfully, whenever you open a new document,
22923  after you have chosen its document class, use the Document->Settings menu
22924  to add the 
22925 \begin_inset Quotes eld
22926 \end_inset
22927
22928 noweb
22929 \begin_inset Quotes erd
22930 \end_inset
22931
22932  module.
22933  If Noweb is correctly installed, when you click on the 
22934 \begin_inset Quotes eld
22935 \end_inset
22936
22937 Modules
22938 \begin_inset Quotes erd
22939 \end_inset
22940
22941  link, you will see the 
22942 \begin_inset Quotes eld
22943 \end_inset
22944
22945 noweb
22946 \begin_inset Quotes erd
22947 \end_inset
22948
22949  module in the available list and you can add it to your document.
22950 \end_layout
22951
22952 \begin_layout Paragraph
22953 Typing code in
22954 \end_layout
22955
22956 \begin_layout Standard
22957 \SpecialChar LyX
22958  enables you to write code with a layout named 
22959 \begin_inset Flex Noun
22960 status collapsed
22961
22962 \begin_layout Plain Layout
22963 Chunk
22964 \end_layout
22965
22966 \end_inset
22967
22968 .
22969  Noweb delimits chunks like this:
22970 \end_layout
22971
22972 \begin_layout LyX-Code
22973 <<My code>>=
22974 \end_layout
22975
22976 \begin_layout LyX-Code
22977   code
22978 \end_layout
22979
22980 \begin_layout LyX-Code
22981   more code
22982 \end_layout
22983
22984 \begin_layout LyX-Code
22985   even more code
22986 \end_layout
22987
22988 \begin_layout LyX-Code
22989   @
22990 \end_layout
22991
22992 \begin_layout Standard
22993 The problem is that whatever is written in between the << and the 
22994 \family typewriter
22995 @
22996 \family default
22997  must be taken literally, i.
22998 \begin_inset space \thinspace{}
22999 \end_inset
23000
23001 e.
23002 \begin_inset space \space{}
23003 \end_inset
23004
23005 \SpecialChar LyX
23006  should be prevented from making any special interpretation of what has
23007  been written.
23008  This is also handled by 
23009 \begin_inset Flex Noun
23010 status collapsed
23011
23012 \begin_layout Plain Layout
23013 Chunk
23014 \end_layout
23015
23016 \end_inset
23017
23018 , that works like a normal paragraph but has a free spacing capability.
23019 \end_layout
23020
23021 \begin_layout Standard
23022 As a special note, you can also use the 
23023 \begin_inset Quotes eld
23024 \end_inset
23025
23026 %def
23027 \begin_inset Quotes erd
23028 \end_inset
23029
23030  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23031 rence:
23032 \end_layout
23033
23034 \begin_layout LyX-Code
23035 <<My chunk>>=
23036 \end_layout
23037
23038 \begin_layout LyX-Code
23039 def some_function(args):
23040 \end_layout
23041
23042 \begin_layout LyX-Code
23043    "This is the doc string for this function."
23044 \end_layout
23045
23046 \begin_layout LyX-Code
23047    print "My args: ", args
23048 \end_layout
23049
23050 \begin_layout LyX-Code
23051 @ %def some_function
23052 \end_layout
23053
23054 \begin_layout Standard
23055 For an example of this usage and the resulting cross-reference output, look
23056  at the Literate python program in 
23057 \emph on
23058 LIBDIR/examples/listerrors.lyx
23059 \emph default
23060  which should make this all clear.
23061 \end_layout
23062
23063 \begin_layout Paragraph
23064 Generating the documentation
23065 \end_layout
23066
23067 \begin_layout Standard
23068 At this point you already have a new document file with a proper document
23069  class, and with some code and text on it.
23070  How do I print it? The answer is simple, you select 
23071 \family sans
23072 View\SpecialChar menuseparator
23073 DVI,
23074 \family default
23075  etc.
23076  Just like you would do for a plain document.
23077  No special procedure is required.
23078 \end_layout
23079
23080 \begin_layout Standard
23081 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23082 :
23083 \end_layout
23084
23085 \begin_layout Enumerate
23086 When the 
23087 \family sans
23088 Update\SpecialChar menuseparator
23089 DVI
23090 \family default
23091  menu option is chosen, a \SpecialChar LaTeX
23092  file is generated.
23093  
23094 \end_layout
23095
23096 \begin_deeper
23097 \begin_layout Standard
23098 If the document is of any literate class the generated file will be named
23099  with an extension name defined by the 
23100 \begin_inset Quotes eld
23101 \end_inset
23102
23103 literate
23104 \begin_inset Quotes erd
23105 \end_inset
23106
23107  format (defined in the Preferences panel), otherwise the file will have
23108  the usual 
23109 \family typewriter
23110 .tex
23111 \family default
23112  extension.
23113 \end_layout
23114
23115 \end_deeper
23116 \begin_layout Enumerate
23117 Note that the only difference so far is in the name of the file, no special
23118  processing is required by \SpecialChar LyX
23119 .
23120  Given that you formatted the code using the 
23121 \begin_inset Flex Noun
23122 status collapsed
23123
23124 \begin_layout Plain Layout
23125 Chunk
23126 \end_layout
23127
23128 \end_inset
23129
23130  layout that, by itself, takes care of the business.
23131 \end_layout
23132
23133 \begin_layout Enumerate
23134 If the document is of any literate class \SpecialChar LyX
23135  will then use the internal \SpecialChar LyX
23136  to
23137  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23138  converter
23139 \begin_inset Foot
23140 status collapsed
23141
23142 \begin_layout Plain Layout
23143 The converters are defined in the 
23144 \family sans
23145 Tools\SpecialChar menuseparator
23146 Preferences
23147 \family default
23148  panel, under the 
23149 \begin_inset Quotes eld
23150 \end_inset
23151
23152 Conversion
23153 \begin_inset Quotes erd
23154 \end_inset
23155
23156  tab.
23157  See section 
23158 \emph on
23159 Converters
23160 \emph default
23161  of the 
23162 \emph on
23163 Customization
23164 \emph default
23165  manual for general information about converters.
23166 \end_layout
23167
23168 \end_inset
23169
23170  to generate the \SpecialChar LaTeX
23171  file.
23172 \end_layout
23173
23174 \begin_deeper
23175 \begin_layout Standard
23176 Otherwise it will just skip this step.
23177 \end_layout
23178
23179 \end_deeper
23180 \begin_layout Enumerate
23181 Finally, \SpecialChar LaTeX
23182  is invoked and the regular post processing continues as in a plain
23183  document.
23184 \end_layout
23185
23186 \begin_layout Standard
23187 Independence from a particular 
23188 \begin_inset Quotes eld
23189 \end_inset
23190
23191 literate tool
23192 \begin_inset Quotes erd
23193 \end_inset
23194
23195  is easily achieved by changing the commands that are run by the various
23196  converters.
23197 \end_layout
23198
23199 \begin_layout Paragraph
23200 Generating the code
23201 \end_layout
23202
23203 \begin_layout Standard
23204 When the build menu option is chosen or the corresponding button in the
23205  toolbar is pressed, a \SpecialChar LaTeX
23206  file is generated just like step 1 above.
23207  Next, \SpecialChar LyX
23208  invokes the 
23209 \family typewriter
23210 Noweb->Program
23211 \family default
23212  converter.
23213  This converter needs to be defined by the user and is not installed by
23214  default, though the Program format is.
23215  This converter (like any other converter) will have two parts:
23216 \end_layout
23217
23218 \begin_layout Enumerate
23219 The converter program itself.
23220  This program performs the conversion from the one format to the other (in
23221  this case, from the Noweb format to the Program pseudo-format).
23222 \end_layout
23223
23224 \begin_layout Enumerate
23225 The error log parser.
23226  This is a program whose sole purpose is to rewrite error messages in a
23227  format that \SpecialChar LyX
23228  understands.
23229  This makes it possible for \SpecialChar LyX
23230  to place error boxes in the right places in
23231  the file buffer.
23232 \end_layout
23233
23234 \begin_layout Standard
23235 The first part, the 
23236 \begin_inset Quotes eld
23237 \end_inset
23238
23239 Converter
23240 \begin_inset Quotes erd
23241 \end_inset
23242
23243  setting, should be set to
23244 \begin_inset Newline newline
23245 \end_inset
23246
23247
23248 \begin_inset Quotes eld
23249 \end_inset
23250
23251
23252 \family typewriter
23253 build-script $$i
23254 \family default
23255  $$r
23256 \begin_inset Quotes erd
23257 \end_inset
23258
23259 .
23260 \begin_inset Newline newline
23261 \end_inset
23262
23263 This basically means that \SpecialChar LyX
23264  will call 
23265 \begin_inset Quotes eld
23266 \end_inset
23267
23268 build-script
23269 \begin_inset Quotes erd
23270 \end_inset
23271
23272  (a program or script) with the name of the Noweb file (normally a file
23273  in the \SpecialChar LyX
23274  temp directory) and the directory path of the original \SpecialChar LyX
23275  file.
23276  
23277 \end_layout
23278
23279 \begin_layout Standard
23280 This is an implementation of 
23281 \begin_inset Quotes eld
23282 \end_inset
23283
23284 build-script
23285 \begin_inset Quotes erd
23286 \end_inset
23287
23288  that you can place in a directory on your path:
23289 \end_layout
23290
23291 \begin_layout Standard
23292 \begin_inset VSpace defskip
23293 \end_inset
23294
23295
23296 \end_layout
23297
23298 \begin_layout Standard
23299 \begin_inset Newpage pagebreak
23300 \end_inset
23301
23302
23303 \end_layout
23304
23305 \begin_layout Standard
23306
23307 \family sans
23308 #!/bin/sh
23309 \end_layout
23310
23311 \begin_layout Standard
23312
23313 \family sans
23314 #
23315 \end_layout
23316
23317 \begin_layout Standard
23318
23319 \family sans
23320 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23321 \end_layout
23322
23323 \begin_layout Standard
23324 \begin_inset VSpace defskip
23325 \end_inset
23326
23327
23328 \end_layout
23329
23330 \begin_layout Standard
23331 The next part of the converter setting is the 
23332 \begin_inset Quotes eld
23333 \end_inset
23334
23335 Flags
23336 \begin_inset Quotes erd
23337 \end_inset
23338
23339  which is to be set to
23340 \begin_inset Newline newline
23341 \end_inset
23342
23343
23344 \begin_inset Quotes eld
23345 \end_inset
23346
23347
23348 \family typewriter
23349 parselog=$$s/scripts/listerrors
23350 \family default
23351
23352 \begin_inset Quotes erd
23353 \end_inset
23354
23355 .
23356 \begin_inset Newline newline
23357 \end_inset
23358
23359 This will run any errors that are generated by the 
23360 \begin_inset Quotes eld
23361 \end_inset
23362
23363 build-script
23364 \begin_inset Quotes erd
23365 \end_inset
23366
23367  process through the 
23368 \begin_inset Quotes eld
23369 \end_inset
23370
23371 listerrors
23372 \begin_inset Quotes erd
23373 \end_inset
23374
23375  program.
23376 \end_layout
23377
23378 \begin_layout Standard
23379 The build will normally take place in \SpecialChar LyX
23380 's temporary directory, so the files
23381  produced by the conversion will be in that directory.
23382  \SpecialChar LyX
23383  will copy out what it regards as the `main' file, but the 
23384 \family typewriter
23385 Noweb->Program
23386 \family default
23387  conversion may produce several files, and so most of these would then be
23388  deleted when \SpecialChar LyX
23389  was closed.
23390  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23391  the build-script chunk can place the generated files in that location.
23392 \end_layout
23393
23394 \begin_layout Paragraph
23395 Build instructions in the document
23396 \end_layout
23397
23398 \begin_layout Standard
23399 The last piece of the integration between \SpecialChar LyX
23400  and noweb is the 
23401 \begin_inset Quotes eld
23402 \end_inset
23403
23404 build-script
23405 \begin_inset Quotes erd
23406 \end_inset
23407
23408  chunk.
23409  Generally, the instructions for building your program should be embedded
23410  in a chunk of its own.
23411  The noweb-specific 
23412 \begin_inset Quotes eld
23413 \end_inset
23414
23415 build-script
23416 \begin_inset Quotes erd
23417 \end_inset
23418
23419  above uses the notangle command to look for this chunk (called 
23420 \begin_inset Quotes eld
23421 \end_inset
23422
23423 build-script
23424 \begin_inset Quotes erd
23425 \end_inset
23426
23427 ) and runs its contents through 
23428 \begin_inset Quotes eld
23429 \end_inset
23430
23431 sh
23432 \begin_inset Quotes erd
23433 \end_inset
23434
23435 .
23436 \end_layout
23437
23438 \begin_layout Standard
23439 Typically, such a chunk would look something like this:
23440 \end_layout
23441
23442 \begin_layout LyX-Code
23443 <<build-script>>=
23444 \end_layout
23445
23446 \begin_layout LyX-Code
23447 #!/bin/sh
23448 \begin_inset Newline newline
23449 \end_inset
23450
23451 if [ -z "${NOWEB_SOURCE}" ]
23452 \begin_inset Newline newline
23453 \end_inset
23454
23455 then
23456 \end_layout
23457
23458 \begin_layout LyX-Code
23459 NOWEB_SOURCE=myfile.nw
23460 \begin_inset Newline newline
23461 \end_inset
23462
23463 fi
23464 \begin_inset Newline newline
23465 \end_inset
23466
23467 [...
23468  code to extract files ...
23469  use NOWEB_OUTPUT_DIR here ...]
23470 \begin_inset Newline newline
23471 \end_inset
23472
23473 [...
23474  code to compile files ...]
23475 \begin_inset Newline newline
23476 \end_inset
23477
23478 @
23479 \end_layout
23480
23481 \begin_layout Standard
23482 Look in 
23483 \emph on
23484 LIBDIR/examples/listerrors.lyx
23485 \emph default
23486  or in 
23487 \emph on
23488 LIBDIR/examples/Literate.lyx
23489 \emph default
23490  which implement two versions of the 
23491 \begin_inset Quotes eld
23492 \end_inset
23493
23494 listerrors
23495 \begin_inset Quotes erd
23496 \end_inset
23497
23498  program for some illustrations of how all of these pieces go together or
23499  in 
23500 \emph on
23501 LIBDIR/examples/noweb2lyx.lyx.
23502
23503 \emph default
23504  Interestingly, these three files show off the language-indepence of the
23505  \SpecialChar LyX
23506  literate programming support since they are written in Python, C and Perl
23507  respectively.
23508 \end_layout
23509
23510 \begin_layout Subsubsection
23511 Configuring \SpecialChar LyX
23512
23513 \end_layout
23514
23515 \begin_layout Standard
23516 All the Literate Programming support is configured by the 
23517 \family sans
23518 Tools\SpecialChar menuseparator
23519 Preferences
23520 \family default
23521  panel in the 
23522 \begin_inset Quotes eld
23523 \end_inset
23524
23525 File Handling
23526 \begin_inset Quotes erd
23527 \end_inset
23528
23529  tab.
23530  The important parts are:
23531 \end_layout
23532
23533 \begin_layout Description
23534 the
23535 \begin_inset space ~
23536 \end_inset
23537
23538
23539 \begin_inset Quotes eld
23540 \end_inset
23541
23542 NoWeb
23543 \begin_inset Quotes erd
23544 \end_inset
23545
23546
23547 \begin_inset space ~
23548 \end_inset
23549
23550 format Set up via the File Formats tab, this is where the Noweb-specific
23551  pieces are set up.
23552  The 
23553 \family sans
23554 GUI Name
23555 \family default
23556  is set to 
23557 \family typewriter
23558 NoWeb
23559 \family default
23560 , the file extension is set to 
23561 \family typewriter
23562 .nw
23563 \family default
23564 .
23565  This tells \SpecialChar LyX
23566  to create a file with a 
23567 \family typewriter
23568 .nw
23569 \family default
23570  extension in the first step of the conversion process.
23571 \end_layout
23572
23573 \begin_layout Description
23574 the
23575 \begin_inset space ~
23576 \end_inset
23577
23578
23579 \family sans
23580 Program
23581 \family default
23582
23583 \begin_inset space ~
23584 \end_inset
23585
23586 format This is an empty format whose sole purpose is to be the endpoint
23587  of a conversion (which then allows us to set up a converter for it).
23588 \end_layout
23589
23590 \begin_layout Description
23591
23592 \family sans
23593 NoWeb
23594 \family default
23595 ->
23596 \family sans
23597 \SpecialChar LaTeX
23598
23599 \family default
23600  This converter performs the 
23601 \begin_inset Quotes eld
23602 \end_inset
23603
23604 weaving
23605 \begin_inset Quotes erd
23606 \end_inset
23607
23608  of the literate document.
23609  For Noweb, it is set to 
23610 \begin_inset Quotes eld
23611 \end_inset
23612
23613
23614 \family typewriter
23615 noweave -delay -index $$i > $$o
23616 \family default
23617
23618 \begin_inset Quotes erd
23619 \end_inset
23620
23621
23622 \end_layout
23623
23624 \begin_layout Description
23625
23626 \family sans
23627 NoWeb
23628 \family default
23629 ->
23630 \family sans
23631 Program
23632 \family default
23633  This performs the 
23634 \begin_inset Quotes eld
23635 \end_inset
23636
23637 tangling step
23638 \begin_inset Quotes erd
23639 \end_inset
23640
23641 .
23642  As stated above, the Converter is set to 
23643 \begin_inset Quotes eld
23644 \end_inset
23645
23646
23647 \family typewriter
23648 build-script $$i
23649 \family default
23650  $$r
23651 \begin_inset Quotes erd
23652 \end_inset
23653
23654 , with Flags set to
23655 \begin_inset Newline newline
23656 \end_inset
23657
23658
23659 \begin_inset Quotes eld
23660 \end_inset
23661
23662
23663 \family typewriter
23664 parselog=$$s/scripts/listerrors
23665 \family default
23666
23667 \begin_inset Quotes erd
23668 \end_inset
23669
23670 .
23671 \end_layout
23672
23673 \begin_layout Subsubsection
23674 Debug extensions
23675 \end_layout
23676
23677 \begin_layout Standard
23678 There is also a new function implemented in the \SpecialChar LyX
23679  server, the 
23680 \begin_inset Quotes eld
23681 \end_inset
23682
23683 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
23684  
23685 \end_layout
23686
23687 \begin_layout Standard
23688 When debugging code with ddd/gdb, it is possible to invoke a text editor
23689  at the current execution position with a single key stroke.
23690  The default ddd configuration for that is shift-ctrl-V.
23691  It happens that you can define the editor command line invocation in ddd
23692  by accessing the 
23693 \family sans
23694 Edit\SpecialChar menuseparator
23695 Preferences\SpecialChar menuseparator
23696 Helpers
23697 \family default
23698  dialog and changing the "Edit Sources" entry.
23699 \end_layout
23700
23701 \begin_layout Standard
23702 I take advantage of the newly created \SpecialChar LyX
23703  server function and this ddd feature,
23704  and set 
23705 \begin_inset Quotes eld
23706 \end_inset
23707
23708 Edit Sources
23709 \begin_inset Quotes erd
23710 \end_inset
23711
23712  to:
23713 \end_layout
23714
23715 \begin_layout Standard
23716 \begin_inset VSpace defskip
23717 \end_inset
23718
23719
23720 \end_layout
23721
23722 \begin_layout Standard
23723
23724 \family sans
23725 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
23726 \end_layout
23727
23728 \begin_layout Standard
23729 \begin_inset VSpace defskip
23730 \end_inset
23731
23732
23733 \end_layout
23734
23735 \begin_layout Standard
23736 With this, whenever you are using ddd and find a point in the program that
23737  you want to edit, you just press shift-ctrl-V (in the ddd window), and
23738  ddd will forward this information to \SpecialChar LyX
23739  through the \SpecialChar LyX
23740  server and then the
23741  \SpecialChar LyX
23742  window will show the same file with the cursor at the same position ddd
23743  was pointing to.
23744  No more guessing or long scrolling to locate a point in the program back
23745  from debugging !
23746 \end_layout
23747
23748 \begin_layout Standard
23749 Note however that you must enable the \SpecialChar LyX
23750  server to get this feature working
23751  (it is disabled by default).
23752  You can enable it in 
23753 \family sans
23754 Preferences
23755 \family default
23756  (tabs 
23757 \family sans
23758 Inputs
23759 \family default
23760
23761 \family sans
23762 Paths
23763 \family default
23764 ) by entering in the 
23765 \family sans
23766 \SpecialChar LyX
23767 server pipe
23768 \family default
23769  a path like 
23770 \begin_inset Quotes eld
23771 \end_inset
23772
23773
23774 \family typewriter
23775 /home/<your-home-directory>/.lyx/lyxpipe
23776 \family default
23777
23778 \begin_inset Quotes erd
23779 \end_inset
23780
23781
23782 \end_layout
23783
23784 \begin_layout Standard
23785 Read the \SpecialChar LyX
23786  server documentation in the 
23787 \emph on
23788 Customization Manual
23789 \emph default
23790  for further information.
23791 \end_layout
23792
23793 \begin_layout Subsubsection
23794 Toolbar extensions
23795 \end_layout
23796
23797 \begin_layout Standard
23798 There are six new buttons that can be added to your \SpecialChar LyX
23799  toolbar.
23800  Five of these buttons are short cuts to layout styles: 
23801 \family sans
23802 Standard
23803 \family default
23804
23805 \family sans
23806 Section
23807 \family default
23808
23809 \family sans
23810 \SpecialChar LaTeX
23811
23812 \family default
23813
23814 \family sans
23815 \SpecialChar LyX
23816 -Code
23817 \family default
23818 , and 
23819 \family sans
23820 Chunk
23821 \family default
23822 .
23823  The last one is a short cut to the 
23824 \begin_inset Quotes eld
23825 \end_inset
23826
23827 Build Program
23828 \begin_inset Quotes erd
23829 \end_inset
23830
23831  File menu entry.
23832  
23833 \end_layout
23834
23835 \begin_layout Standard
23836 \SpecialChar LyX
23837  has a range of buttons that are available for tool bar customization.
23838  In my toolbar I like to combine the six short cuts above with two more:
23839  One for 
23840 \family sans
23841 Document
23842 \family default
23843 \SpecialChar menuseparator
23844
23845 \family sans
23846 Update
23847 \family default
23848 \SpecialChar menuseparator
23849
23850 \family sans
23851 DVI
23852 \family default
23853  and the other for 
23854 \family sans
23855 Document\SpecialChar menuseparator
23856 View\SpecialChar menuseparator
23857 DVI
23858 \family default
23859  File menu entries.
23860  Here is how it looks like:
23861 \end_layout
23862
23863 \begin_layout LyX-Code
23864 Toolbar
23865 \end_layout
23866
23867 \begin_layout LyX-Code
23868   Layouts
23869 \end_layout
23870
23871 \begin_layout LyX-Code
23872   Icon "layout Standard"
23873 \end_layout
23874
23875 \begin_layout LyX-Code
23876   Icon "layout Section"
23877 \end_layout
23878
23879 \begin_layout LyX-Code
23880   Icon "layout \SpecialChar LaTeX
23881 "
23882 \end_layout
23883
23884 \begin_layout LyX-Code
23885   Icon "layout \SpecialChar LyX
23886 -Code"
23887 \end_layout
23888
23889 \begin_layout LyX-Code
23890   Icon "layout Chunk"
23891 \end_layout
23892
23893 \begin_layout LyX-Code
23894   Separator
23895 \end_layout
23896
23897 \begin_layout LyX-Code
23898   Icon "buffer-view"
23899 \end_layout
23900
23901 \begin_layout LyX-Code
23902   Icon "buffer-typeset"
23903 \end_layout
23904
23905 \begin_layout LyX-Code
23906   Icon "build-program"
23907 \end_layout
23908
23909 \begin_layout LyX-Code
23910   Separator
23911 \end_layout
23912
23913 \begin_layout LyX-Code
23914 .
23915 \end_layout
23916
23917 \begin_layout LyX-Code
23918 .
23919 \end_layout
23920
23921 \begin_layout LyX-Code
23922 .
23923 \end_layout
23924
23925 \begin_layout LyX-Code
23926 End
23927 \end_layout
23928
23929 \begin_layout Subsubsection
23930 Colors customization
23931 \end_layout
23932
23933 \begin_layout Standard
23934 There are a number of colors in \SpecialChar LyX
23935  that can be customized in 
23936 \family sans
23937 Preferences
23938 \family default
23939 .
23940  One of the things that bothers people is the \SpecialChar LaTeX
23941  font color.
23942  The default color is red, since the chunks uses \SpecialChar LaTeX
23943  font, and there is a lot
23944  of chunks in literate documents, you may get tired of seeing everything
23945  in red.
23946  You can change it by going to the tabs 
23947 \family sans
23948 Look&Feel
23949 \family default
23950
23951 \family sans
23952 Colors.
23953 \end_layout
23954
23955 \begin_layout Standard
23956 The next thing is the visible presence of the newline character in the screen.
23957  You can choose the color of this particular character and make it blend
23958  in the background.
23959  I recommend you choosing a color that is close to the background but not
23960  equal, that way you still can see it is there, but it is not bothering
23961  you anymore.
23962 \end_layout
23963
23964 \begin_layout Subsection
23965 \SpecialChar LyX
23966  and knitr/Sweave
23967 \end_layout
23968
23969 \begin_layout Standard
23970 Support for 
23971 \family sans
23972 knitr
23973 \family default
23974  and 
23975 \family sans
23976 Sweave
23977 \family default
23978  is documented in the 
23979 \emph on
23980 knitr.lyx
23981 \emph default
23982  example file and in the Sweave manual (menu 
23983 \family sans
23984 Help\SpecialChar menuseparator
23985 Specific Manuals
23986 \family default
23987 ).
23988 \end_layout
23989
23990 \begin_layout Chapter
23991 Special features
23992 \end_layout
23993
23994 \begin_layout Standard
23995 You can do everything with \SpecialChar LyX
23996  that you can do with \SpecialChar LaTeX
23997 .
23998  However, \SpecialChar LyX
23999  cannot support every \SpecialChar LaTeX
24000  feature directly.
24001  But you can always use \SpecialChar TeX
24002  Code.
24003  This chapter shows you some more special things you might want to use.
24004  For other special things you can do with figures, tables, floats, boxes
24005  and notes, have a look at the 
24006 \emph on
24007 Embedded
24008 \begin_inset space ~
24009 \end_inset
24010
24011 Objects
24012 \emph default
24013  manual.
24014 \end_layout
24015
24016 \begin_layout Section
24017 Multiple Text Columns
24018 \end_layout
24019
24020 \begin_layout Standard
24021 This feature is independent of the option 
24022 \family sans
24023 Two-column document
24024 \family default
24025  in the document settings under 
24026 \family sans
24027 Text Layout
24028 \family default
24029 .
24030  If you want to have 2
24031 \begin_inset space ~
24032 \end_inset
24033
24034 columns for the whole document, it is recommended to use the 
24035 \family sans
24036 Two-column document
24037 \family default
24038  option.
24039  For all other cases use this feature.
24040 \end_layout
24041
24042 \begin_layout Standard
24043 To use multiple text columns in your document, you have to load the module
24044  
24045 \family sans
24046 Multiple Columns
24047 \family default
24048  (menu 
24049 \family sans
24050 Document\SpecialChar menuseparator
24051 Settings\SpecialChar menuseparator
24052 Modules
24053 \family default
24054 ) and must have the \SpecialChar LaTeX
24055 -package 
24056 \series bold
24057 multicol
24058 \series default
24059  installed.
24060 \end_layout
24061
24062 \begin_layout Standard
24063 Footnotes within multiple columns will be placed at the bottom of the page
24064  and not under each column.
24065  Within the different columns you can use everything, with the limitation
24066  that for floats you need to use the float option 
24067 \family sans
24068 Span columns
24069 \family default
24070 .
24071 \end_layout
24072
24073 \begin_layout Subsection
24074 Basics
24075 \end_layout
24076
24077 \begin_layout Standard
24078 If you want to have 2
24079 \begin_inset space ~
24080 \end_inset
24081
24082 columns in your text, insert a multicolumn inset via the menu 
24083 \family sans
24084 Insert\SpecialChar menuseparator
24085 Custom
24086 \begin_inset space ~
24087 \end_inset
24088
24089 Insets\SpecialChar menuseparator
24090 Multiple
24091 \begin_inset space ~
24092 \end_inset
24093
24094 Columns
24095 \family default
24096  where the columns should start.
24097  Write all text that should be printed in 2
24098 \begin_inset space ~
24099 \end_inset
24100
24101 columns into this inset.
24102 \end_layout
24103
24104 \begin_layout Standard
24105 Here is an example:
24106 \end_layout
24107
24108 \begin_layout Standard
24109 \noindent
24110 \begin_inset Flex Multiple Columns
24111 status open
24112
24113 \begin_layout Plain Layout
24114 \noindent
24115
24116 \series bold
24117 \size small
24118 The Adventure of the Empty House
24119 \series default
24120
24121 \begin_inset Newline newline
24122 \end_inset
24123
24124 by Sir Arthur Conan Doyle
24125 \end_layout
24126
24127 \begin_layout Plain Layout
24128
24129 \size small
24130 It was in the spring of the year 1894 that all London was interested, and
24131  the fashionable world dismayed, by the murder of the Honourable Ronald
24132  Adair under most unusual and inexplicable circumstances.
24133  The public has already learned those particulars of the crime which came
24134  out in the police investigation, but a good deal was suppressed upon that
24135  occasion, since the case for the prosecution was so overwhelmingly strong
24136  that it was not necessary to bring forward all the facts.
24137  Only now, at the end of nearly ten years, am I allowed to supply those
24138  missing links which make up the whole of that remarkable chain.
24139  The crime was of interest in itself, but that interest was as nothing to
24140  me compared to the inconceivable sequel, which afforded me the greatest
24141  shock and surprise of any event in my adventurous life.
24142  Even now, after this long interval, I find myself thrilling as I think
24143  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24144 ty which utterly submerged my mind.
24145  Let me say to that public, which has shown some interest in those glimpses
24146  which I have occasionally given them of the thoughts and actions of a very
24147  remarkable man, that they are not to blame me if I have not shared my knowledge
24148  with them, for I should have considered it my first duty to do so, had
24149  I not been barred by a positive prohibition from his own lips, which was
24150  only withdrawn upon the third of last month.
24151 \end_layout
24152
24153 \end_inset
24154
24155
24156 \end_layout
24157
24158 \begin_layout Standard
24159 To get 3 or more columns, set the cursor into the multicolumn inset and
24160  use the menu 
24161 \family sans
24162 Insert\SpecialChar menuseparator
24163 Number
24164 \begin_inset space ~
24165 \end_inset
24166
24167 of
24168 \begin_inset space ~
24169 \end_inset
24170
24171 Columns
24172 \family default
24173 .
24174  The number of the desired columns is written into that inset (for 3
24175 \begin_inset space ~
24176 \end_inset
24177
24178 columns write 
24179 \begin_inset Quotes eld
24180 \end_inset
24181
24182 3
24183 \begin_inset Quotes erd
24184 \end_inset
24185
24186 ).
24187 \begin_inset Newline newline
24188 \end_inset
24189
24190 Here is an example with 3
24191 \begin_inset space ~
24192 \end_inset
24193
24194 columns:
24195 \end_layout
24196
24197 \begin_layout Standard
24198 \begin_inset Flex Multiple Columns
24199 status open
24200
24201 \begin_layout Plain Layout
24202
24203 \size footnotesize
24204 \begin_inset Argument 1
24205 status open
24206
24207 \begin_layout Plain Layout
24208 3
24209 \end_layout
24210
24211 \end_inset
24212
24213 It can be imagined that my close intimacy with Sherlock Holmes had interested
24214  me deeply in crime, and that after his disappearance I never failed to
24215  read with care the various problems which came before the public.
24216  And I even attempted, more than once, for my own private satisfaction,
24217  to employ his methods in their solution, though with indifferent success.
24218  There was none, however, which appealed to me like this tragedy of Ronald
24219  Adair.
24220  As I read the evidence at the inquest, which led up to a verdict of willful
24221  murder against some person or persons unknown, I realized more clearly
24222  than I had ever done the loss which the community had sustained by the
24223  death of Sherlock Holmes.
24224  There were points about this strange business which would, I was sure,
24225  have specially appealed to him, and the efforts of the police would have
24226  been supplemented, or more probably anticipated, by the trained observation
24227  and the alert mind of the first criminal agent in Europe.
24228  All day, as I drove upon my round, I turned over the case in my mind and
24229  found no explanation which appeared to me to be adequate.
24230  At the risk of telling a twice-told tale, I will recapitulate the facts
24231  as they were known to the public at the conclusion of the inquest.
24232 \end_layout
24233
24234 \end_inset
24235
24236
24237 \end_layout
24238
24239 \begin_layout Standard
24240 You can have up to 10
24241 \begin_inset space ~
24242 \end_inset
24243
24244 columns if you want to, but that might not be very pleasant for the readers
24245  of your document.
24246 \end_layout
24247
24248 \begin_layout Standard
24249 \begin_inset Newpage newpage
24250 \end_inset
24251
24252
24253 \end_layout
24254
24255 \begin_layout Subsection
24256 Columns inside Columns
24257 \end_layout
24258
24259 \begin_layout Standard
24260 You can also have columns inside columns:
24261 \end_layout
24262
24263 \begin_layout Standard
24264 \begin_inset Flex Multiple Columns
24265 status open
24266
24267 \begin_layout Plain Layout
24268
24269 \size footnotesize
24270 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24271  at that time governor of one of the Australian colonies.
24272  Adair's mother had returned from Australia to undergo the operation for
24273  cataract, and she, her son Ronald, and her daughter Hilda were living together
24274  at 427 Park Lane.
24275 \end_layout
24276
24277 \begin_layout Plain Layout
24278 \begin_inset Flex Multiple Columns
24279 status open
24280
24281 \begin_layout Plain Layout
24282
24283 \size footnotesize
24284 The youth moved in the best society–had, so far as was known, no enemies
24285  and no particular vices.
24286  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24287  had been broken off by mutual consent some months before, and there was
24288  no sign that it had left any very profound feeling behind it.
24289  For the rest {sic} the man's life moved in a narrow and conventional circle,
24290  for his habits were quiet and his nature unemotional.
24291  Yet it was upon this easy-going young aristocrat that death came, in most
24292  strange and unexpected form, between the hours of ten and eleven-twenty
24293  on the night of March 30, 1894.
24294 \end_layout
24295
24296 \end_inset
24297
24298
24299 \end_layout
24300
24301 \begin_layout Plain Layout
24302
24303 \size footnotesize
24304 Ronald Adair was fond of cards–playing continually, but never for such stakes
24305  as would hurt him.
24306  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24307  It was shown that, after dinner on the day of his death, he had played
24308  a rubber of whist at the latter club.
24309  He had also played there in the afternoon.
24310
24311 \size default
24312  
24313 \size footnotesize
24314 The evidence of those who had played with him– Mr.
24315  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24316  and that there was a fairly equal fall of the cards.
24317  Adair might have lost five pounds, but not more.
24318  His fortune was a considerable one, and such a loss could not in any way
24319  affect him.
24320  He had played nearly every day at one club or other, but he was a cautious
24321  player, and usually rose a winner.
24322  It came out in evidence that, in partnership with Colonel Moran, he had
24323  actually won as much as four hundred and twenty pounds in a sitting, some
24324  weeks before, from Godfrey Milner and Lord Balmoral.
24325  So much for his recent history as it came out at the inquest.
24326 \end_layout
24327
24328 \end_inset
24329
24330
24331 \end_layout
24332
24333 \begin_layout Subsection
24334 Advanced Examples
24335 \end_layout
24336
24337 \begin_layout Standard
24338 The examples in this section show some more special features of multiple
24339  columns.
24340 \end_layout
24341
24342 \begin_layout Standard
24343 For more features of multiple columns, have a look at the documentation
24344  of the \SpecialChar LaTeX
24345 -package 
24346 \series bold
24347 multicol
24348 \series default
24349
24350 \begin_inset CommandInset citation
24351 LatexCommand cite
24352 key "multicol"
24353
24354 \end_inset
24355
24356 .
24357 \end_layout
24358
24359 \begin_layout Subsubsection
24360 Preface
24361 \end_layout
24362
24363 \begin_layout Standard
24364 To add a preface text for multiple columns, set the cursor into the multicolumn
24365  inset and use the menu 
24366 \family sans
24367 Insert\SpecialChar menuseparator
24368 Preface
24369 \family default
24370 .
24371  Write your preface text into that inset.
24372 \begin_inset Newline newline
24373 \end_inset
24374
24375 This is an example with some preface text:
24376 \end_layout
24377
24378 \begin_layout Standard
24379 \begin_inset VSpace bigskip
24380 \end_inset
24381
24382
24383 \end_layout
24384
24385 \begin_layout Standard
24386 \begin_inset Flex Multiple Columns
24387 status open
24388
24389 \begin_layout Plain Layout
24390 \begin_inset Argument 2
24391 status open
24392
24393 \begin_layout Plain Layout
24394 And the story continues and continues and continues and continues\SpecialChar ldots
24395
24396 \end_layout
24397
24398 \end_inset
24399
24400
24401 \size small
24402 On the evening of the crime, he returned from the club exactly at ten.
24403  His mother and sister were out spending the evening with a relation.
24404  The servant deposed that she heard him enter the front room on the second
24405  floor, generally used as his sitting-room.
24406  She had lit a fire there, and as it smoked she had opened the window.
24407  No sound was heard from the room until eleven-twenty, the hour of the return
24408  of Lady Maynooth and her daughter.
24409  Desiring to say good-night, she attempted to enter her son's room.
24410  The door was locked on the inside, and no answer could be got to their
24411  cries and knocking.
24412  Help was obtained, and the door forced.
24413  The unfortunate young man was found lying near the table.
24414  His head had been horribly mutilated by an expanding revolver bullet, but
24415  no weapon of any sort was to be found in the room.
24416 \end_layout
24417
24418 \end_inset
24419
24420
24421 \end_layout
24422
24423 \begin_layout Standard
24424 You can also use a section heading as the preface if you use a section command
24425  as \SpecialChar TeX
24426  Code.
24427  For example the command
24428 \end_layout
24429
24430 \begin_layout Standard
24431
24432 \series bold
24433
24434 \backslash
24435 subsection{subsection title}
24436 \end_layout
24437
24438 \begin_layout Standard
24439 creates a subsection.
24440  In this example the preface is a subsubsection:
24441 \end_layout
24442
24443 \begin_layout Standard
24444 \begin_inset Flex Multiple Columns
24445 status open
24446
24447 \begin_layout Plain Layout
24448 \begin_inset Argument 2
24449 status open
24450
24451 \begin_layout Plain Layout
24452 \begin_inset ERT
24453 status collapsed
24454
24455 \begin_layout Plain Layout
24456
24457
24458 \backslash
24459 subsubsection{
24460 \end_layout
24461
24462 \end_inset
24463
24464 This is a subsubsection heading as a preface
24465 \begin_inset ERT
24466 status collapsed
24467
24468 \begin_layout Plain Layout
24469
24470 }
24471 \end_layout
24472
24473 \end_inset
24474
24475
24476 \end_layout
24477
24478 \end_inset
24479
24480
24481 \size small
24482 A minute examination of the circumstances served only to make the case more
24483  complex.
24484  In the first place, no reason could be given why the young man should have
24485  fastened the door upon the inside.
24486  There was the possibility that the murderer had done this, and had afterwards
24487  escaped by the window.
24488  The drop was at least twenty feet, however, and a bed of crocuses in full
24489  bloom lay beneath.
24490  Neither the flowers nor the earth showed any sign of having been disturbed,
24491  nor were there any marks upon the narrow strip of grass which separated
24492  the house from the road.
24493  Apparently, therefore, it was the young man himself who had fastened the
24494  door.
24495  But how did he come by his death? No one could have climbed up to the window
24496  without leaving traces.
24497  Suppose a man had fired through the window, he would indeed be a remarkable
24498  shot who could with a revolver inflict so deadly a wound.
24499  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24500  a hundred yards of the house.
24501  No one had heard a shot.
24502 \end_layout
24503
24504 \end_inset
24505
24506
24507 \end_layout
24508
24509 \begin_layout Standard
24510 If there is less vertical space than 6
24511 \begin_inset space ~
24512 \end_inset
24513
24514 text lines is left on the page at the beginning of the multiple columns,
24515  a page break will be inserted before the multiple columns.
24516  Depending on the number of lines of the preface text, you might want to
24517  change this space.
24518  This is done by setting the cursor into the mulitcolumn inset behind the
24519  preface (if there is any) and using the menu 
24520 \family sans
24521 Insert\SpecialChar menuseparator
24522 Space
24523 \begin_inset space ~
24524 \end_inset
24525
24526 Before
24527 \begin_inset space ~
24528 \end_inset
24529
24530 Page
24531 \begin_inset space ~
24532 \end_inset
24533
24534 Break
24535 \family default
24536 .
24537  Insert into that inset the amount of space like e.
24538 \begin_inset space \thinspace{}
24539 \end_inset
24540
24541 g.
24542 \begin_inset space \space{}
24543 \end_inset
24544
24545
24546 \begin_inset Quotes eld
24547 \end_inset
24548
24549 5cm
24550 \begin_inset Quotes erd
24551 \end_inset
24552
24553 .
24554 \begin_inset Newline newline
24555 \end_inset
24556
24557 In this example the space is set to 7
24558 \begin_inset space ~
24559 \end_inset
24560
24561 text lines by using 
24562 \begin_inset Quotes eld
24563 \end_inset
24564
24565 7
24566 \backslash
24567 baselineskip
24568 \begin_inset Quotes erd
24569 \end_inset
24570
24571  (where the command 
24572 \series bold
24573
24574 \backslash
24575 baselineskip
24576 \series default
24577  needs to be inserted as \SpecialChar TeX
24578  code):
24579 \end_layout
24580
24581 \begin_layout Standard
24582 \begin_inset Flex Multiple Columns
24583 status open
24584
24585 \begin_layout Plain Layout
24586 \begin_inset Argument 3
24587 status open
24588
24589 \begin_layout Plain Layout
24590 7
24591 \begin_inset ERT
24592 status collapsed
24593
24594 \begin_layout Plain Layout
24595
24596
24597 \backslash
24598 baselineskip
24599 \end_layout
24600
24601 \end_inset
24602
24603
24604 \end_layout
24605
24606 \end_inset
24607
24608
24609 \size small
24610 On the evening of the crime, he returned from the club exactly at ten.
24611  His mother and sister were out spending the evening with a relation.
24612  The servant deposed that she heard him enter the front room on the second
24613  floor, generally used as his sitting-room.
24614  She had lit a fire there, and as it smoked she had opened the window.
24615  No sound was heard from the room until eleven-twenty, the hour of the return
24616  of Lady Maynooth and her daughter.
24617  Desiring to say good-night, she attempted to enter her son's room.
24618  The door was locked on the inside, and no answer could be got to their
24619  cries and knocking.
24620  Help was obtained, and the door forced.
24621  The unfortunate young man was found lying near the table.
24622  His head had been horribly mutilated by an expanding revolver bullet, but
24623  no weapon of any sort was to be found in the room.
24624 \end_layout
24625
24626 \end_inset
24627
24628
24629 \end_layout
24630
24631 \begin_layout Subsubsection
24632 Surrounding Space
24633 \end_layout
24634
24635 \begin_layout Standard
24636 The amount of space before and after multiple columns can be changed by
24637  changing the length 
24638 \series bold
24639
24640 \backslash
24641 multicolsep
24642 \series default
24643 .
24644  For example the command
24645 \end_layout
24646
24647 \begin_layout Standard
24648
24649 \series bold
24650
24651 \backslash
24652 setlength{
24653 \backslash
24654 multicolsep}{3cm}
24655 \end_layout
24656
24657 \begin_layout Standard
24658 in \SpecialChar TeX
24659  Code changes its value to 3
24660 \begin_inset space \thinspace{}
24661 \end_inset
24662
24663 cm.
24664  The change must be made before the multiple columns' start.
24665  The predefined value is 13
24666 \begin_inset space \thinspace{}
24667 \end_inset
24668
24669 pt.
24670 \end_layout
24671
24672 \begin_layout Standard
24673 For this example 
24674 \series bold
24675
24676 \backslash
24677 multicolsep
24678 \series default
24679  was set to 2.5
24680 \begin_inset space \thinspace{}
24681 \end_inset
24682
24683 cm:
24684 \end_layout
24685
24686 \begin_layout Standard
24687 \begin_inset ERT
24688 status open
24689
24690 \begin_layout Plain Layout
24691
24692
24693 \backslash
24694 setlength{
24695 \backslash
24696 multicolsep}{2.5cm}
24697 \end_layout
24698
24699 \end_inset
24700
24701
24702 \end_layout
24703
24704 \begin_layout Standard
24705 \begin_inset Flex Multiple Columns
24706 status open
24707
24708 \begin_layout Plain Layout
24709
24710 \size small
24711 All day I turned these facts over in my mind, endeavouring to hit upon some
24712  theory which could reconcile them all, and to find that line of least resistanc
24713 e which my poor friend had declared to be the starting-point of every investigat
24714 ion.
24715  I confess that I made little progress.
24716  In the evening I strolled across the Park, and found myself about six o'clock
24717  at the Oxford Street end of Park Lane.
24718  A group of loafers upon the pavements, all staring up at a particular window,
24719  directed me to the house which I had come to see.
24720  A tall, thin man with coloured glasses, whom I strongly suspected of being
24721  a plain-clothes detective, was pointing out some theory of his own, while
24722  the others crowded round to listen to what he said.
24723  I got as near him as I could, but his observations seemed to me to be absurd,
24724  so I withdrew again in some disgust.
24725  As I did so I struck against an elderly, deformed man, who had been behind
24726  me, and I knocked down several books which he was carrying.
24727 \end_layout
24728
24729 \end_inset
24730
24731
24732 \end_layout
24733
24734 \begin_layout Standard
24735 \begin_inset Note Greyedout
24736 status open
24737
24738 \begin_layout Plain Layout
24739
24740 \series bold
24741 Note:
24742 \series default
24743  The values you set with 
24744 \series bold
24745
24746 \backslash
24747 setlength
24748 \series default
24749  will be used for all following multiple columns until you change them again.
24750 \end_layout
24751
24752 \end_inset
24753
24754
24755 \end_layout
24756
24757 \begin_layout Standard
24758 \begin_inset ERT
24759 status collapsed
24760
24761 \begin_layout Plain Layout
24762
24763
24764 \backslash
24765 setlength{
24766 \backslash
24767 multicolsep}{13pt}
24768 \end_layout
24769
24770 \end_inset
24771
24772
24773 \begin_inset Note Note
24774 status collapsed
24775
24776 \begin_layout Plain Layout
24777 go back to the default
24778 \end_layout
24779
24780 \end_inset
24781
24782
24783 \end_layout
24784
24785 \begin_layout Standard
24786 \begin_inset Newpage newpage
24787 \end_inset
24788
24789
24790 \end_layout
24791
24792 \begin_layout Subsubsection
24793 Column Breaks
24794 \end_layout
24795
24796 \begin_layout Standard
24797 A column break can be forced by inserting the command 
24798 \series bold
24799
24800 \backslash
24801 columnbreak{}
24802 \series default
24803  as \SpecialChar TeX
24804  Code to that position in the text where the column should be broken.
24805  Note that this leads in most cases to whitespace in the text.
24806 \begin_inset Newline newline
24807 \end_inset
24808
24809 Here is an example:
24810 \end_layout
24811
24812 \begin_layout Standard
24813 \begin_inset Flex Multiple Columns
24814 status open
24815
24816 \begin_layout Plain Layout
24817
24818 \size small
24819 \begin_inset Quotes eld
24820 \end_inset
24821
24822 You're surprised to see me, sir,
24823 \begin_inset Quotes erd
24824 \end_inset
24825
24826  said he, in a strange, croaking voice.
24827 \end_layout
24828
24829 \begin_layout Plain Layout
24830
24831 \size small
24832 I acknowledged that I was.
24833 \end_layout
24834
24835 \begin_layout Plain Layout
24836
24837 \size small
24838 \begin_inset Quotes eld
24839 \end_inset
24840
24841 Well, I've a conscience, sir, and when I chanced to see you go into this
24842  house, as I came hobbling after you, I thought to myself, I'll just step
24843  in and see that kind gentleman, and tell him that if I was a bit gruff
24844  in my manner there was not any harm meant, and that I am much obliged to
24845  him for picking up my books.
24846 \begin_inset Quotes erd
24847 \end_inset
24848
24849
24850 \end_layout
24851
24852 \begin_layout Plain Layout
24853
24854 \size small
24855 \begin_inset Quotes eld
24856 \end_inset
24857
24858 You make too much of a trifle,
24859 \begin_inset Quotes erd
24860 \end_inset
24861
24862  said I.
24863  
24864 \begin_inset Quotes eld
24865 \end_inset
24866
24867 May I ask how you knew who I was?
24868 \begin_inset Quotes erd
24869 \end_inset
24870
24871  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
24872 \begin_inset ERT
24873 status collapsed
24874
24875 \begin_layout Plain Layout
24876
24877
24878 \backslash
24879 columnbreak{}
24880 \end_layout
24881
24882 \end_inset
24883
24884
24885 \end_layout
24886
24887 \begin_layout Plain Layout
24888
24889 \size small
24890 \begin_inset Quotes eld
24891 \end_inset
24892
24893 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24894  you'll find my little bookshop at the corner of Church Street, and very
24895  happy to see you, I am sure.
24896  Maybe you collect yourself, sir.
24897  Here's 
24898 \noun on
24899 British
24900 \begin_inset space ~
24901 \end_inset
24902
24903 Birds
24904 \noun default
24905 , and 
24906 \noun on
24907 Catullus
24908 \noun default
24909 , and 
24910 \noun on
24911 The Holy War
24912 \noun default
24913 –a bargain, every one of them.
24914  With five volumes you could just fill that gap on that second shelf.
24915  It looks untidy, does it not, sir?
24916 \begin_inset Quotes erd
24917 \end_inset
24918
24919
24920 \end_layout
24921
24922 \end_inset
24923
24924
24925 \end_layout
24926
24927 \begin_layout Subsubsection
24928 Column Separation
24929 \end_layout
24930
24931 \begin_layout Standard
24932 The width of the columns is automatically calculated, but you can modify
24933  the space between the columns.
24934  This is done by changing the length 
24935 \series bold
24936
24937 \backslash
24938 columnsep
24939 \series default
24940 .
24941  Its predefined value is 10
24942 \begin_inset space \thinspace{}
24943 \end_inset
24944
24945 pt.
24946  Here is an example where 
24947 \series bold
24948
24949 \backslash
24950 columnsep
24951 \series default
24952  is set to 3
24953 \begin_inset space \thinspace{}
24954 \end_inset
24955
24956 cm:
24957 \end_layout
24958
24959 \begin_layout Standard
24960 \begin_inset ERT
24961 status open
24962
24963 \begin_layout Plain Layout
24964
24965
24966 \backslash
24967 setlength{
24968 \backslash
24969 columnsep}{3cm}
24970 \end_layout
24971
24972 \end_inset
24973
24974
24975 \end_layout
24976
24977 \begin_layout Standard
24978 \begin_inset Flex Multiple Columns
24979 status open
24980
24981 \begin_layout Plain Layout
24982
24983 \size small
24984 My observations of No.
24985 \begin_inset space \space{}
24986 \end_inset
24987
24988 427 Park Lane did little to clear up the problem in which I was interested.
24989  The house was separated from the street by a low wall and railing, the
24990  whole not more than five feet high.
24991  It was perfectly easy, therefore, for anyone to get into the garden, but
24992  the window was entirely inaccessible, since there was no water pipe or
24993  anything which could help the most active man to climb it.
24994  More puzzled than ever, I retraced my steps to Kensington.
24995  I had not been in my study five minutes when the maid entered to say that
24996  a person desired to see me.
24997  To my astonishment it was none other than my strange old book collector,
24998  his sharp, wizened face peering out from a frame of white hair, and his
24999  precious volumes, a dozen of them at least, wedged under his right arm.
25000 \end_layout
25001
25002 \end_inset
25003
25004
25005 \end_layout
25006
25007 \begin_layout Standard
25008 \begin_inset ERT
25009 status collapsed
25010
25011 \begin_layout Plain Layout
25012
25013
25014 \backslash
25015 setlength{
25016 \backslash
25017 columnsep}{10pt}
25018 \end_layout
25019
25020 \end_inset
25021
25022
25023 \begin_inset Note Note
25024 status collapsed
25025
25026 \begin_layout Plain Layout
25027 go back to the default
25028 \end_layout
25029
25030 \end_inset
25031
25032
25033 \end_layout
25034
25035 \begin_layout Subsubsection
25036 Vertical Lines
25037 \end_layout
25038
25039 \begin_layout Standard
25040 Between the columns a rule with a width of the length 
25041 \series bold
25042
25043 \backslash
25044 columnseprule
25045 \series default
25046  is placed.
25047  If this rule width is set to 0
25048 \begin_inset space \thinspace{}
25049 \end_inset
25050
25051 pt (this is the default), the rule is suppressed.
25052  In the following example the rule is 2
25053 \begin_inset space \thinspace{}
25054 \end_inset
25055
25056 pt wide:
25057 \end_layout
25058
25059 \begin_layout Standard
25060 \begin_inset ERT
25061 status open
25062
25063 \begin_layout Plain Layout
25064
25065
25066 \backslash
25067 setlength{
25068 \backslash
25069 columnseprule}{2pt}
25070 \end_layout
25071
25072 \end_inset
25073
25074
25075 \end_layout
25076
25077 \begin_layout Standard
25078 \begin_inset Flex Multiple Columns
25079 status open
25080
25081 \begin_layout Plain Layout
25082
25083 \size small
25084 \begin_inset Quotes eld
25085 \end_inset
25086
25087 You're surprised to see me, sir,
25088 \begin_inset Quotes erd
25089 \end_inset
25090
25091  said he, in a strange, croaking voice.
25092 \end_layout
25093
25094 \begin_layout Plain Layout
25095
25096 \size small
25097 I acknowledged that I was.
25098 \end_layout
25099
25100 \begin_layout Plain Layout
25101
25102 \size small
25103 \begin_inset Quotes eld
25104 \end_inset
25105
25106 Well, I've a conscience, sir, and when I chanced to see you go into this
25107  house, as I came hobbling after you, I thought to myself, I'll just step
25108  in and see that kind gentleman, and tell him that if I was a bit gruff
25109  in my manner there was not any harm meant, and that I am much obliged to
25110  him for picking up my books.
25111 \begin_inset Quotes erd
25112 \end_inset
25113
25114
25115 \end_layout
25116
25117 \begin_layout Plain Layout
25118
25119 \size small
25120 \begin_inset Quotes eld
25121 \end_inset
25122
25123 You make too much of a trifle,
25124 \begin_inset Quotes erd
25125 \end_inset
25126
25127  said I.
25128  
25129 \begin_inset Quotes eld
25130 \end_inset
25131
25132 May I ask how you knew who I was?
25133 \begin_inset Quotes erd
25134 \end_inset
25135
25136
25137 \end_layout
25138
25139 \begin_layout Plain Layout
25140
25141 \size small
25142 \begin_inset Quotes eld
25143 \end_inset
25144
25145 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25146  you'll find my little bookshop at the corner of Church Street, and very
25147  happy to see you, I am sure.
25148  Maybe you collect yourself, sir.
25149  Here's 
25150 \noun on
25151 British
25152 \begin_inset space ~
25153 \end_inset
25154
25155 Birds
25156 \noun default
25157 , and 
25158 \noun on
25159 Catullus
25160 \noun default
25161 , and 
25162 \noun on
25163 The Holy War
25164 \noun default
25165 –a bargain, every one of them.
25166  With five volumes you could just fill that gap on that second shelf.
25167  It looks untidy, does it not, sir?
25168 \begin_inset Quotes erd
25169 \end_inset
25170
25171
25172 \end_layout
25173
25174 \end_inset
25175
25176
25177 \end_layout
25178
25179 \begin_layout Standard
25180 \begin_inset VSpace defskip
25181 \end_inset
25182
25183
25184 \end_layout
25185
25186 \begin_layout Standard
25187 The rule can be colored by redefining the command 
25188 \series bold
25189
25190 \backslash
25191 columnseprulecolor
25192 \series default
25193 .
25194  This is done by inserting the command
25195 \begin_inset Newline newline
25196 \end_inset
25197
25198
25199 \series bold
25200
25201 \backslash
25202 renewcommand{
25203 \backslash
25204 columnseprulecolor}{
25205 \backslash
25206 color{red}}
25207 \series default
25208
25209 \begin_inset Newline newline
25210 \end_inset
25211
25212 as \SpecialChar TeX
25213  Code before the multicolumn inset.
25214  Replace 
25215 \series bold
25216 red
25217 \series default
25218  in this command by a color of your choice.
25219  You can use all pre- and self-defined colors.
25220  See the 
25221 \emph on
25222 EmbeddedObjects
25223 \emph default
25224  manual, section 
25225 \emph on
25226 Colored
25227 \begin_inset space ~
25228 \end_inset
25229
25230 Tables
25231 \emph default
25232  for more information about pre- and self-defined colors.
25233  To go back to the default color insert the command
25234 \begin_inset Newline newline
25235 \end_inset
25236
25237
25238 \series bold
25239
25240 \backslash
25241 renewcommand{
25242 \backslash
25243 columnseprulecolor}{
25244 \backslash
25245 normalcolor}
25246 \series default
25247
25248 \begin_inset Newline newline
25249 \end_inset
25250
25251 Here is the example with a cyan rule and 1
25252 \begin_inset space \thinspace{}
25253 \end_inset
25254
25255 cm column separation:
25256 \end_layout
25257
25258 \begin_layout Standard
25259 \begin_inset ERT
25260 status open
25261
25262 \begin_layout Plain Layout
25263
25264
25265 \backslash
25266 setlength{
25267 \backslash
25268 columnsep}{1cm}
25269 \end_layout
25270
25271 \begin_layout Plain Layout
25272
25273
25274 \backslash
25275 renewcommand{
25276 \backslash
25277 columnseprulecolor}{
25278 \backslash
25279 color{cyan}}
25280 \end_layout
25281
25282 \end_inset
25283
25284
25285 \end_layout
25286
25287 \begin_layout Standard
25288 \begin_inset Flex Multiple Columns
25289 status open
25290
25291 \begin_layout Plain Layout
25292
25293 \size small
25294 \begin_inset Quotes eld
25295 \end_inset
25296
25297 You're surprised to see me, sir,
25298 \begin_inset Quotes erd
25299 \end_inset
25300
25301  said he, in a strange, croaking voice.
25302 \end_layout
25303
25304 \begin_layout Plain Layout
25305
25306 \size small
25307 I acknowledged that I was.
25308 \end_layout
25309
25310 \begin_layout Plain Layout
25311
25312 \size small
25313 \begin_inset Quotes eld
25314 \end_inset
25315
25316 Well, I've a conscience, sir, and when I chanced to see you go into this
25317  house, as I came hobbling after you, I thought to myself, I'll just step
25318  in and see that kind gentleman, and tell him that if I was a bit gruff
25319  in my manner there was not any harm meant, and that I am much obliged to
25320  him for picking up my books.
25321 \begin_inset Quotes erd
25322 \end_inset
25323
25324
25325 \end_layout
25326
25327 \begin_layout Plain Layout
25328
25329 \size small
25330 \begin_inset Quotes eld
25331 \end_inset
25332
25333 You make too much of a trifle,
25334 \begin_inset Quotes erd
25335 \end_inset
25336
25337  said I.
25338  
25339 \begin_inset Quotes eld
25340 \end_inset
25341
25342 May I ask how you knew who I was?
25343 \begin_inset Quotes erd
25344 \end_inset
25345
25346
25347 \end_layout
25348
25349 \begin_layout Plain Layout
25350
25351 \size small
25352 \begin_inset Quotes eld
25353 \end_inset
25354
25355 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25356  you'll find my little bookshop at the corner of Church Street, and very
25357  happy to see you, I am sure.
25358  Maybe you collect yourself, sir.
25359  Here's 
25360 \noun on
25361 British
25362 \begin_inset space ~
25363 \end_inset
25364
25365 Birds
25366 \noun default
25367 , and 
25368 \noun on
25369 Catullus
25370 \noun default
25371 , and 
25372 \noun on
25373 The Holy War
25374 \noun default
25375 –a bargain, every one of them.
25376  With five volumes you could just fill that gap on that second shelf.
25377  It looks untidy, does it not, sir?
25378 \begin_inset Quotes erd
25379 \end_inset
25380
25381
25382 \end_layout
25383
25384 \end_inset
25385
25386
25387 \end_layout
25388
25389 \begin_layout Standard
25390 \begin_inset ERT
25391 status collapsed
25392
25393 \begin_layout Plain Layout
25394
25395
25396 \backslash
25397 setlength{
25398 \backslash
25399 columnseprule}{0pt}
25400 \end_layout
25401
25402 \begin_layout Plain Layout
25403
25404
25405 \backslash
25406 renewcommand{
25407 \backslash
25408 columnseprulecolor}{
25409 \backslash
25410 normalcolor}
25411 \end_layout
25412
25413 \end_inset
25414
25415
25416 \begin_inset Note Note
25417 status collapsed
25418
25419 \begin_layout Plain Layout
25420 go back to the default
25421 \end_layout
25422
25423 \end_inset
25424
25425
25426 \end_layout
25427
25428 \begin_layout Section
25429 Non-standard Paragraph Shapes
25430 \end_layout
25431
25432 \begin_layout Standard
25433 \noindent
25434 \SpecialChar LaTeX
25435  as well as any other text processor uses by default rectangular paragraphs.
25436  For special cases like for example posters, invitation cards or poems you
25437  can modify the paragraph shape to one of your choice.
25438  This can be done by using the \SpecialChar LaTeX
25439 -package 
25440 \series bold
25441 shapepar
25442 \series default
25443  which is loaded by using in the document settings the module 
25444 \family sans
25445 Custom paragraph shapes
25446 \family default
25447 .
25448 \end_layout
25449
25450 \begin_layout Subsection
25451 Predefined shapes
25452 \end_layout
25453
25454 \begin_layout Standard
25455
25456 \series bold
25457 shapepar
25458 \series default
25459  provides the following shapes:
25460 \end_layout
25461
25462 \begin_layout Standard
25463 \begin_inset Tabular
25464 <lyxtabular version="3" rows="13" columns="3">
25465 <features booktabs="true" islongtable="true" longtabularalignment="center">
25466 <column alignment="center" valignment="middle" width="16col%">
25467 <column alignment="center" valignment="middle" width="40col%">
25468 <column alignment="center" valignment="middle" width="35col%">
25469 <row endhead="true">
25470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25471 \begin_inset Text
25472
25473 \begin_layout Plain Layout
25474 Name
25475 \end_layout
25476
25477 \end_inset
25478 </cell>
25479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25480 \begin_inset Text
25481
25482 \begin_layout Plain Layout
25483 Description
25484 \end_layout
25485
25486 \end_inset
25487 </cell>
25488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25489 \begin_inset Text
25490
25491 \begin_layout Plain Layout
25492 Annotation
25493 \end_layout
25494
25495 \end_inset
25496 </cell>
25497 </row>
25498 <row>
25499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25500 \begin_inset Text
25501
25502 \begin_layout Plain Layout
25503 CDlabel
25504 \end_layout
25505
25506 \end_inset
25507 </cell>
25508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25509 \begin_inset Text
25510
25511 \begin_layout Plain Layout
25512 Circle with circular hole (in the size of a CD/DVD)
25513 \end_layout
25514
25515 \end_inset
25516 </cell>
25517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25518 \begin_inset Text
25519
25520 \begin_layout Plain Layout
25521 Cannot be scaled, take care there is not too much text
25522 \end_layout
25523
25524 \end_inset
25525 </cell>
25526 </row>
25527 <row>
25528 <cell alignment="center" valignment="top" topline="true" usebox="none">
25529 \begin_inset Text
25530
25531 \begin_layout Plain Layout
25532 Circle
25533 \end_layout
25534
25535 \end_inset
25536 </cell>
25537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25538 \begin_inset Text
25539
25540 \begin_layout Plain Layout
25541 Circle
25542 \end_layout
25543
25544 \end_inset
25545 </cell>
25546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25547 \begin_inset Text
25548
25549 \begin_layout Plain Layout
25550 Fragile, calculation might fail
25551 \end_layout
25552
25553 \end_inset
25554 </cell>
25555 </row>
25556 <row>
25557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25558 \begin_inset Text
25559
25560 \begin_layout Plain Layout
25561 Diamond
25562 \end_layout
25563
25564 \end_inset
25565 </cell>
25566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25567 \begin_inset Text
25568
25569 \begin_layout Plain Layout
25570 Rhomboid (symbolizing a 
25571 \begin_inset Quotes eld
25572 \end_inset
25573
25574 diamond
25575 \begin_inset Quotes erd
25576 \end_inset
25577
25578 )
25579 \end_layout
25580
25581 \end_inset
25582 </cell>
25583 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25584 \begin_inset Text
25585
25586 \begin_layout Plain Layout
25587 -
25588 \end_layout
25589
25590 \end_inset
25591 </cell>
25592 </row>
25593 <row>
25594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25595 \begin_inset Text
25596
25597 \begin_layout Plain Layout
25598 Heart
25599 \end_layout
25600
25601 \end_inset
25602 </cell>
25603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25604 \begin_inset Text
25605
25606 \begin_layout Plain Layout
25607 Heart-like shape
25608 \end_layout
25609
25610 \end_inset
25611 </cell>
25612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25613 \begin_inset Text
25614
25615 \begin_layout Plain Layout
25616 -
25617 \end_layout
25618
25619 \end_inset
25620 </cell>
25621 </row>
25622 <row>
25623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25624 \begin_inset Text
25625
25626 \begin_layout Plain Layout
25627 Hexagon
25628 \end_layout
25629
25630 \end_inset
25631 </cell>
25632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25633 \begin_inset Text
25634
25635 \begin_layout Plain Layout
25636 Hexagon
25637 \end_layout
25638
25639 \end_inset
25640 </cell>
25641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25642 \begin_inset Text
25643
25644 \begin_layout Plain Layout
25645 -
25646 \end_layout
25647
25648 \end_inset
25649 </cell>
25650 </row>
25651 <row>
25652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25653 \begin_inset Text
25654
25655 \begin_layout Plain Layout
25656 Nut
25657 \end_layout
25658
25659 \end_inset
25660 </cell>
25661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25662 \begin_inset Text
25663
25664 \begin_layout Plain Layout
25665 Nut for bolt (hexagon with circular hole)
25666 \end_layout
25667
25668 \end_inset
25669 </cell>
25670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25671 \begin_inset Text
25672
25673 \begin_layout Plain Layout
25674 -
25675 \end_layout
25676
25677 \end_inset
25678 </cell>
25679 </row>
25680 <row>
25681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25682 \begin_inset Text
25683
25684 \begin_layout Plain Layout
25685 Square
25686 \end_layout
25687
25688 \end_inset
25689 </cell>
25690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25691 \begin_inset Text
25692
25693 \begin_layout Plain Layout
25694 Square
25695 \end_layout
25696
25697 \end_inset
25698 </cell>
25699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25700 \begin_inset Text
25701
25702 \begin_layout Plain Layout
25703 -
25704 \end_layout
25705
25706 \end_inset
25707 </cell>
25708 </row>
25709 <row>
25710 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25711 \begin_inset Text
25712
25713 \begin_layout Plain Layout
25714 Star
25715 \end_layout
25716
25717 \end_inset
25718 </cell>
25719 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25720 \begin_inset Text
25721
25722 \begin_layout Plain Layout
25723 Five-point star
25724 \end_layout
25725
25726 \end_inset
25727 </cell>
25728 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25729 \begin_inset Text
25730
25731 \begin_layout Plain Layout
25732 -
25733 \end_layout
25734
25735 \end_inset
25736 </cell>
25737 </row>
25738 <row>
25739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25740 \begin_inset Text
25741
25742 \begin_layout Plain Layout
25743 Candle
25744 \end_layout
25745
25746 \end_inset
25747 </cell>
25748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25749 \begin_inset Text
25750
25751 \begin_layout Plain Layout
25752 Burning candle
25753 \end_layout
25754
25755 \end_inset
25756 </cell>
25757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25758 \begin_inset Text
25759
25760 \begin_layout Plain Layout
25761 -
25762 \end_layout
25763
25764 \end_inset
25765 </cell>
25766 </row>
25767 <row>
25768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25769 \begin_inset Text
25770
25771 \begin_layout Plain Layout
25772 Drop down/up
25773 \end_layout
25774
25775 \end_inset
25776 </cell>
25777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25778 \begin_inset Text
25779
25780 \begin_layout Plain Layout
25781 Normal/reversed rain drop
25782 \end_layout
25783
25784 \end_inset
25785 </cell>
25786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25787 \begin_inset Text
25788
25789 \begin_layout Plain Layout
25790 Fragile, calculation might fail
25791 \end_layout
25792
25793 \end_inset
25794 </cell>
25795 </row>
25796 <row>
25797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25798 \begin_inset Text
25799
25800 \begin_layout Plain Layout
25801 \SpecialChar TeX
25802
25803 \end_layout
25804
25805 \end_inset
25806 </cell>
25807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25808 \begin_inset Text
25809
25810 \begin_layout Plain Layout
25811 The \SpecialChar TeX
25812  logo
25813 \end_layout
25814
25815 \end_inset
25816 </cell>
25817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25818 \begin_inset Text
25819
25820 \begin_layout Plain Layout
25821 -
25822 \end_layout
25823
25824 \end_inset
25825 </cell>
25826 </row>
25827 <row>
25828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25829 \begin_inset Text
25830
25831 \begin_layout Plain Layout
25832 Triangle up/down/
25833 \begin_inset Newline newline
25834 \end_inset
25835
25836 left/right
25837 \end_layout
25838
25839 \end_inset
25840 </cell>
25841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25842 \begin_inset Text
25843
25844 \begin_layout Plain Layout
25845 Triangles in different orientations
25846 \end_layout
25847
25848 \end_inset
25849 </cell>
25850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25851 \begin_inset Text
25852
25853 \begin_layout Plain Layout
25854 -
25855 \end_layout
25856
25857 \end_inset
25858 </cell>
25859 </row>
25860 </lyxtabular>
25861
25862 \end_inset
25863
25864
25865 \end_layout
25866
25867 \begin_layout Standard
25868 To use a shape for your paragraph, simply select it in \SpecialChar LyX
25869 's pull-down box
25870  for environments in the toolbar.
25871 \end_layout
25872
25873 \begin_layout Standard
25874 \begin_inset Newpage newpage
25875 \end_inset
25876
25877
25878 \end_layout
25879
25880 \begin_layout Standard
25881 Here is an example paragraph in the shape of a nut:
25882 \end_layout
25883
25884 \begin_layout Standard
25885 \begin_inset VSpace bigskip
25886 \end_inset
25887
25888
25889 \end_layout
25890
25891 \begin_layout Nut
25892
25893 \lang latin
25894 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25895  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25896  voluptua.
25897  At vero eos et accusam et justo duo dolores et ea rebum.
25898  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25899  sit amet.
25900  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25901  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25902  voluptua.
25903 \end_layout
25904
25905 \begin_layout Standard
25906 \begin_inset VSpace bigskip
25907 \end_inset
25908
25909
25910 \end_layout
25911
25912 \begin_layout Standard
25913 \begin_inset Note Greyedout
25914 status open
25915
25916 \begin_layout Plain Layout
25917
25918 \series bold
25919 Note
25920 \series default
25921 : shapepar paragraphs cannot run over a page break.
25922 \end_layout
25923
25924 \end_inset
25925
25926
25927 \end_layout
25928
25929 \begin_layout Standard
25930 \begin_inset VSpace bigskip
25931 \end_inset
25932
25933
25934 \end_layout
25935
25936 \begin_layout Standard
25937
25938 \series bold
25939 shapepar
25940 \series default
25941  takes care that the shape will always be preserved, no matter how much
25942  text is in the paragraph.
25943  Therefore the paragraph size changes with the amount of contained text.
25944  This can lead to paragraph sizes exceeding the page margins.
25945  To demonstrate the size scaling, here is the same example paragraph but
25946  with twice as much text:
25947 \end_layout
25948
25949 \begin_layout Standard
25950 \begin_inset Newpage newpage
25951 \end_inset
25952
25953
25954 \end_layout
25955
25956 \begin_layout Nut
25957
25958 \lang latin
25959 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25960  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25961  voluptua.
25962  At vero eos et accusam et justo duo dolores et ea rebum.
25963  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25964  sit amet.
25965  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25966  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25967  voluptua.
25968  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25969  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25970  voluptua.
25971  At vero eos et accusam et justo duo dolores et ea rebum.
25972  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25973  sit amet.
25974  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25975  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25976  voluptua.
25977 \end_layout
25978
25979 \begin_layout Standard
25980 \begin_inset VSpace bigskip
25981 \end_inset
25982
25983
25984 \end_layout
25985
25986 \begin_layout Standard
25987 An exception is the shape 
25988 \family sans
25989 CDlabel
25990 \family default
25991 .
25992  It cannot be scaled because it must fit the size of a CD/DVD.
25993  Therefore the amount of text that fits into the shape is limited.
25994 \begin_inset Newline newline
25995 \end_inset
25996
25997 The 
25998 \family sans
25999 drop
26000 \family default
26001  shapes and the 
26002 \family sans
26003 circle
26004 \family default
26005  shape are fragile, meaning that the calculation of their size can fail,
26006  depending on the amount of text.
26007  You will then get the \SpecialChar LaTeX
26008  error 
26009 \begin_inset Quotes eld
26010 \end_inset
26011
26012 Arithmetic overflow
26013 \begin_inset Quotes erd
26014 \end_inset
26015
26016 .
26017  In this case one can try to remove or add some text; if nothing works one
26018  has to use another shape.
26019 \end_layout
26020
26021 \begin_layout Standard
26022 \begin_inset VSpace bigskip
26023 \end_inset
26024
26025
26026 \end_layout
26027
26028 \begin_layout Standard
26029 For shapes with tips you will maybe see that \SpecialChar LaTeX
26030 's hyphenation routine fails
26031  for text in the tips.
26032  Therefore it is often necessary to add hyphenation points 
26033 \family sans
26034 (
26035 \begin_inset Info
26036 type  "shortcut"
26037 arg   "specialchar-insert hyphenation"
26038 \end_inset
26039
26040
26041 \family default
26042 ) to the corresponding text parts.
26043 \end_layout
26044
26045 \begin_layout Standard
26046 \begin_inset VSpace bigskip
26047 \end_inset
26048
26049
26050 \end_layout
26051
26052 \begin_layout Standard
26053 Shapepar paragraphs are either always centered or placed on the page so
26054  that their left border touches the left page margin.
26055  You can therefore not use the paragraph dialog to align such paragraphs.
26056  A solution is to put the paragraph into a minipage or parbox and align
26057  the box.
26058  The problem is hereby to find the right width for the box.
26059  Because if it is too wide and you center the box, the paragraph is not
26060  centered too because it sticks at the left side of the box.
26061  So you might have to play a bit with the width until it fits.
26062  Here are two heart-shaped paragraphs, the first one is not aligned, the
26063  second one is right-aligned:
26064 \end_layout
26065
26066 \begin_layout Standard
26067 \begin_inset Newpage newpage
26068 \end_inset
26069
26070
26071 \end_layout
26072
26073 \begin_layout Heart
26074 \noindent
26075
26076 \lang latin
26077 Lo\SpecialChar softhyphen
26078 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26079  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26080  voluptua.
26081  At vero eos et accusam et justo duo dolores et ea rebum.
26082  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26083  sit amet.
26084 \end_layout
26085
26086 \begin_layout Standard
26087 \begin_inset VSpace bigskip
26088 \end_inset
26089
26090
26091 \end_layout
26092
26093 \begin_layout Standard
26094 \noindent
26095 \align right
26096 \begin_inset Box Frameless
26097 position "t"
26098 hor_pos "c"
26099 has_inner_box 1
26100 inner_pos "t"
26101 use_parbox 1
26102 use_makebox 0
26103 width "42col%"
26104 special "none"
26105 height "1in"
26106 height_special "totalheight"
26107 thickness "0.4pt"
26108 separation "3pt"
26109 shadowsize "4pt"
26110 framecolor "black"
26111 backgroundcolor "none"
26112 status open
26113
26114 \begin_layout Heart
26115 \noindent
26116
26117 \lang latin
26118 Lo\SpecialChar softhyphen
26119 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26120  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26121  voluptua.
26122  At vero eos et accusam et justo duo dolores et ea rebum.
26123  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26124  sit amet.
26125 \end_layout
26126
26127 \end_inset
26128
26129
26130 \end_layout
26131
26132 \begin_layout Subsection
26133 Custom shapes
26134 \end_layout
26135
26136 \begin_layout Standard
26137 You can define any shape you want.
26138  Doing this manually is a lot of work because every coordinate must be specified.
26139  But there is a way to let the computer calculate the coordinates:
26140 \end_layout
26141
26142 \begin_layout Enumerate
26143 Install the program 
26144 \begin_inset CommandInset href
26145 LatexCommand href
26146 name "Jpgfdraw"
26147 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26148
26149 \end_inset
26150
26151 .
26152 \end_layout
26153
26154 \begin_layout Enumerate
26155 In 
26156 \family sans
26157 Jpgfdraw
26158 \family default
26159  go to the menu 
26160 \family sans
26161 TeX/LaTeX\SpecialChar menuseparator
26162 Settings\SpecialChar menuseparator
26163 Set Normal Size
26164 \family default
26165  and select the font size you are using in your document.
26166  For example this document uses the size 12
26167 \begin_inset space \thinspace{}
26168 \end_inset
26169
26170 pt.
26171 \end_layout
26172
26173 \begin_layout Enumerate
26174 Draw a shape.
26175 \end_layout
26176
26177 \begin_layout Enumerate
26178 Use the menu 
26179 \family sans
26180 TeX/LaTeX\SpecialChar menuseparator
26181 Shapepar
26182 \family default
26183  to export the shape to coordinates.
26184  In the appearing dialog use either the outline of your shape for the coordinate
26185 s or the path itself.
26186 \begin_inset Foot
26187 status collapsed
26188
26189 \begin_layout Plain Layout
26190 For more information see 
26191 \begin_inset CommandInset href
26192 LatexCommand href
26193 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26194
26195 \end_inset
26196
26197
26198 \end_layout
26199
26200 \end_inset
26201
26202
26203 \end_layout
26204
26205 \begin_layout Standard
26206 The coordinates are written into a \SpecialChar TeX
26207  file.
26208  To use it for your \SpecialChar LyX
26209  document
26210 \end_layout
26211
26212 \begin_layout Enumerate
26213 Place the cursor before the first character of your paragraph (or into a
26214  new empty one).
26215 \end_layout
26216
26217 \begin_layout Enumerate
26218 Open in \SpecialChar LyX
26219  the menu 
26220 \family sans
26221 Insert\SpecialChar menuseparator
26222 File\SpecialChar menuseparator
26223 Child
26224 \begin_inset space ~
26225 \end_inset
26226
26227 Document
26228 \family default
26229 , select the file and use 
26230 \family sans
26231 Input
26232 \family default
26233  as 
26234 \family sans
26235 Include Type.
26236 \end_layout
26237
26238 \begin_layout Standard
26239 \begin_inset VSpace defskip
26240 \end_inset
26241
26242
26243 \end_layout
26244
26245 \begin_layout Standard
26246 \begin_inset Note Greyedout
26247 status open
26248
26249 \begin_layout Plain Layout
26250
26251 \series bold
26252 Note
26253 \series default
26254 : The changed shape only applies to the current paragraph; everything is
26255  reset to normal for the next paragraph.
26256  Therefore the shape definition file must be input into every paragraph
26257  with the desired shape.
26258 \end_layout
26259
26260 \end_inset
26261
26262
26263 \end_layout
26264
26265 \begin_layout Standard
26266 \begin_inset VSpace bigskip
26267 \end_inset
26268
26269
26270 \end_layout
26271
26272 \begin_layout Standard
26273 Here is an example:
26274 \end_layout
26275
26276 \begin_layout Standard
26277 \begin_inset VSpace bigskip
26278 \end_inset
26279
26280
26281 \end_layout
26282
26283 \begin_layout Standard
26284 \begin_inset CommandInset include
26285 LatexCommand input
26286 filename "SpecialParagraphShape.tex"
26287
26288 \end_inset
26289
26290
26291 \lang latin
26292 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26293  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26294  voluptua.
26295  At vero eos et accusam et justo duo dolores et ea rebum.
26296  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26297  sit amet.
26298  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26299  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26300  voluptua.
26301 \end_layout
26302
26303 \begin_layout Standard
26304 \begin_inset VSpace bigskip
26305 \end_inset
26306
26307
26308 \end_layout
26309
26310 \begin_layout Standard
26311
26312 \series bold
26313 A tip:
26314 \series default
26315  to draw complexer shapes in 
26316 \family sans
26317 Jpgfdraw
26318 \family default
26319  you can draw the shape in a program of your choice and import the resulting
26320  image to 
26321 \family sans
26322 Jpgfdraw
26323 \family default
26324 .
26325  Then you only need to draw a line or spline along the outline of the image.
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 The module 
26337 \family sans
26338 Custom paragraph shapes
26339 \family default
26340  also provides the two commands 
26341 \family sans
26342 shapepar
26343 \family default
26344  and 
26345 \family sans
26346 Shapepar
26347 \family default
26348  which can be used to define custom shapes coordinate by coordinate.
26349 \begin_inset Foot
26350 status collapsed
26351
26352 \begin_layout Plain Layout
26353 These commands are internally used for all shapes described here.
26354 \end_layout
26355
26356 \end_inset
26357
26358  For information how these styles are used and about further customization
26359  possibilities, have a look at the documentation of the package 
26360 \series bold
26361 shapepar
26362 \series default
26363
26364 \begin_inset CommandInset citation
26365 LatexCommand cite
26366 key "shapepar"
26367
26368 \end_inset
26369
26370 .
26371 \end_layout
26372
26373 \begin_layout Bibliography
26374 \begin_inset CommandInset bibitem
26375 LatexCommand bibitem
26376 key "multicol"
26377
26378 \end_inset
26379
26380 Documentation of the \SpecialChar LaTeX
26381 -package 
26382 \begin_inset CommandInset href
26383 LatexCommand href
26384 name "multicol"
26385 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26386
26387 \end_inset
26388
26389
26390 \end_layout
26391
26392 \begin_layout Bibliography
26393 \begin_inset CommandInset bibitem
26394 LatexCommand bibitem
26395 key "shapepar"
26396
26397 \end_inset
26398
26399 Documentation of the \SpecialChar LaTeX
26400 -package 
26401 \begin_inset CommandInset href
26402 LatexCommand href
26403 name "shapepar"
26404 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
26405
26406 \end_inset
26407
26408
26409 \end_layout
26410
26411 \end_body
26412 \end_document