]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Additional.lyx: remove unnecessary TeX code
[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 \begin_inset Separator latexpar
2151 \end_inset
2152
2153
2154 \end_layout
2155
2156 \begin_deeper
2157 \begin_layout Enumerate
2158 rescale the figure so it fits.
2159 \end_layout
2160
2161 \begin_layout Enumerate
2162 trim down the table so it fits.
2163 \end_layout
2164
2165 \end_deeper
2166 \begin_layout Enumerate
2167 If something else is wrong with the output, and you didn't try to pull anything
2168  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2169 \end_layout
2170
2171 \begin_layout Standard
2172 If all this doesn't help—well, then 
2173 \emph on
2174 perhaps
2175 \emph default
2176  you might have found a bug in \SpecialChar LyX
2177 \SpecialChar ldots
2178 .
2179 \end_layout
2180
2181 \begin_layout Chapter
2182 Supplemental Tools
2183 \end_layout
2184
2185 \begin_layout Section
2186 Customizing Bibliographies with Bib\SpecialChar TeX
2187
2188 \end_layout
2189
2190 \begin_layout Standard
2191 The most basic information about how to use Bib\SpecialChar TeX
2192  with \SpecialChar LyX
2193  is contained in the
2194  section 
2195 \emph on
2196 Bibliography databases (Bib\SpecialChar TeX
2197 )
2198 \emph default
2199  of the 
2200 \emph on
2201 User's Guide
2202 \emph default
2203 .
2204  The following subsections explain special bibliography features supported
2205  by \SpecialChar LyX
2206 .
2207 \end_layout
2208
2209 \begin_layout Subsection
2210 Alternative Citation Styles
2211 \end_layout
2212
2213 \begin_layout Standard
2214 Standard Bib\SpecialChar TeX
2215  uses numbers (e.
2216 \begin_inset space \thinspace{}
2217 \end_inset
2218
2219 g.
2220 \begin_inset space \space{}
2221 \end_inset
2222
2223
2224 \begin_inset Quotes eld
2225 \end_inset
2226
2227 [12]
2228 \begin_inset Quotes erd
2229 \end_inset
2230
2231 ) to refer to a cited work.
2232  However, in many scientific disciplines, other citation styles are in use.
2233  The most common one is the author-year style (e.
2234 \begin_inset space \thinspace{}
2235 \end_inset
2236
2237 g.
2238 \begin_inset space \space{}
2239 \end_inset
2240
2241
2242 \begin_inset Quotes eld
2243 \end_inset
2244
2245 Knuth 1984a
2246 \begin_inset Quotes erd
2247 \end_inset
2248
2249 ).
2250  \SpecialChar LyX
2251  supports two packages that provide this style, 
2252 \begin_inset Flex Code
2253 status collapsed
2254
2255 \begin_layout Plain Layout
2256 natbib
2257 \end_layout
2258
2259 \end_inset
2260
2261  and 
2262 \begin_inset Flex Code
2263 status collapsed
2264
2265 \begin_layout Plain Layout
2266 jurabib
2267 \end_layout
2268
2269 \end_inset
2270
2271 .
2272  Both packages have their pros and cons, which cannot be listed in detail.
2273  If you only want to have simple author-year (or author-numerical) style,
2274  or if you want to use one of the countless style files for 
2275 \begin_inset Flex Code
2276 status collapsed
2277
2278 \begin_layout Plain Layout
2279 natbib
2280 \end_layout
2281
2282 \end_inset
2283
2284 , then the established 
2285 \begin_inset Flex Code
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289 natbib
2290 \end_layout
2291
2292 \end_inset
2293
2294  package is probably your choice.
2295  If you need special features like short title references, ibidem etc., you
2296  might consider the 
2297 \begin_inset Flex Code
2298 status collapsed
2299
2300 \begin_layout Plain Layout
2301 jurabib
2302 \end_layout
2303
2304 \end_inset
2305
2306  package.
2307 \end_layout
2308
2309 \begin_layout Standard
2310 The handling of both packages in \SpecialChar LyX
2311  is basically the same.
2312  Go to 
2313 \begin_inset Flex Noun
2314 status collapsed
2315
2316 \begin_layout Plain Layout
2317 Document\SpecialChar menuseparator
2318 Settings
2319 \end_layout
2320
2321 \end_inset
2322
2323  and select under 
2324 \begin_inset Flex Noun
2325 status collapsed
2326
2327 \begin_layout Plain Layout
2328 Bibliography
2329 \end_layout
2330
2331 \end_inset
2332
2333  the option 
2334 \begin_inset Flex Noun
2335 status collapsed
2336
2337 \begin_layout Plain Layout
2338 Natbib
2339 \end_layout
2340
2341 \end_inset
2342
2343  or 
2344 \begin_inset Flex Noun
2345 status collapsed
2346
2347 \begin_layout Plain Layout
2348 Jurabib
2349 \end_layout
2350
2351 \end_inset
2352
2353 .
2354  With both packages, you will get some extra features in the citation dialog
2355  and you can select the style of the reference (
2356 \begin_inset Quotes eld
2357 \end_inset
2358
2359 Knuth 1984
2360 \begin_inset Quotes erd
2361 \end_inset
2362
2363
2364 \begin_inset Quotes eld
2365 \end_inset
2366
2367 Knuth (1984)
2368 \begin_inset Quotes erd
2369 \end_inset
2370
2371
2372 \begin_inset Quotes eld
2373 \end_inset
2374
2375 Knuth, 1984
2376 \begin_inset Quotes erd
2377 \end_inset
2378
2379
2380 \begin_inset Quotes eld
2381 \end_inset
2382
2383 1984
2384 \begin_inset Quotes erd
2385 \end_inset
2386
2387  etc.).
2388  Note that both packages need specifically designed style files.
2389  They both ship their own, but there are lots of additional style files,
2390  and there is even an interactive style file builder
2391 \begin_inset Foot
2392 status collapsed
2393
2394 \begin_layout Plain Layout
2395 See 
2396 \begin_inset Flex URL
2397 status open
2398
2399 \begin_layout Plain Layout
2400
2401 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2402 \end_layout
2403
2404 \end_inset
2405
2406
2407 \end_layout
2408
2409 \end_inset
2410
2411  for 
2412 \begin_inset Flex Code
2413 status collapsed
2414
2415 \begin_layout Plain Layout
2416 natbib
2417 \end_layout
2418
2419 \end_inset
2420
2421 .
2422 \end_layout
2423
2424 \begin_layout Subsection
2425 Sectioned Bibliographies
2426 \end_layout
2427
2428 \begin_layout Standard
2429 Sometimes you might need to divide your bibliography into several sections.
2430  If you are for instance a historian, the possibility to separate sources
2431  and scientific works is most likely a 
2432 \begin_inset Quotes eld
2433 \end_inset
2434
2435 must have
2436 \begin_inset Quotes erd
2437 \end_inset
2438
2439 .
2440  Unfortunately, Bib\SpecialChar TeX
2441  itself does not allow you to do this.
2442  But with the help of some \SpecialChar LaTeX
2443  packages, Bib\SpecialChar TeX
2444  can be extended to fit your needs.
2445 \end_layout
2446
2447 \begin_layout Standard
2448 \SpecialChar LyX
2449  provides native support for one of these packages, 
2450 \family typewriter
2451 bibtopic
2452 \family default
2453 .
2454 \begin_inset Foot
2455 status collapsed
2456
2457 \begin_layout Plain Layout
2458 Available from 
2459 \begin_inset Flex URL
2460 status open
2461
2462 \begin_layout Plain Layout
2463
2464 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2465 \end_layout
2466
2467 \end_inset
2468
2469
2470 \end_layout
2471
2472 \end_inset
2473
2474  The advantage of this package (compared to other packages like 
2475 \family typewriter
2476 multibib
2477 \family default
2478 ) is that you don't need to define new citation commands.
2479  Instead, you need to prepare different bibliographic databases which include
2480  the entries for the different sections of the bibliography.
2481  For example: If you want to divide your bibliography into the sections
2482  
2483 \begin_inset Quotes eld
2484 \end_inset
2485
2486 Sources
2487 \begin_inset Quotes erd
2488 \end_inset
2489
2490  and 
2491 \begin_inset Quotes eld
2492 \end_inset
2493
2494 Scientific works
2495 \begin_inset Quotes erd
2496 \end_inset
2497
2498 , you first need to create two bibliographic databases, e.
2499 \begin_inset space \thinspace{}
2500 \end_inset
2501
2502 g.
2503 \begin_inset space \space{}
2504 \end_inset
2505
2506
2507 \begin_inset Flex Code
2508 status collapsed
2509
2510 \begin_layout Plain Layout
2511 sources.bib
2512 \end_layout
2513
2514 \end_inset
2515
2516  and 
2517 \begin_inset Flex Code
2518 status collapsed
2519
2520 \begin_layout Plain Layout
2521 scientific.bib
2522 \end_layout
2523
2524 \end_inset
2525
2526 .
2527  
2528 \end_layout
2529
2530 \begin_layout Standard
2531 Go to 
2532 \begin_inset Flex Noun
2533 status collapsed
2534
2535 \begin_layout Plain Layout
2536 Document\SpecialChar menuseparator
2537 Settings
2538 \end_layout
2539
2540 \end_inset
2541
2542  and check under 
2543 \begin_inset Flex Noun
2544 status collapsed
2545
2546 \begin_layout Plain Layout
2547 Bibliography
2548 \end_layout
2549
2550 \end_inset
2551
2552  the option 
2553 \begin_inset Flex Noun
2554 status collapsed
2555
2556 \begin_layout Plain Layout
2557 Sectioned bibliography
2558 \end_layout
2559
2560 \end_inset
2561
2562 .
2563  Now you can insert multiple Bib\SpecialChar TeX
2564  bibliographies, one for each section of
2565  your bibliography.
2566  Returning to our example: Insert the Bib\SpecialChar TeX
2567  bibliography 
2568 \begin_inset Flex Code
2569 status collapsed
2570
2571 \begin_layout Plain Layout
2572 sources.bib
2573 \end_layout
2574
2575 \end_inset
2576
2577  and a second one for the database 
2578 \begin_inset Flex Code
2579 status collapsed
2580
2581 \begin_layout Plain Layout
2582 scientific.bib
2583 \end_layout
2584
2585 \end_inset
2586
2587 .
2588  You are free to use the same or different styles for each section.
2589  Additionally, you can choose if the bibliography section should contain
2590  
2591 \begin_inset Quotes eld
2592 \end_inset
2593
2594 all cited references
2595 \begin_inset Quotes erd
2596 \end_inset
2597
2598  of the specified database(s) (which is the default), 
2599 \begin_inset Quotes eld
2600 \end_inset
2601
2602 all uncited references
2603 \begin_inset Quotes erd
2604 \end_inset
2605
2606  or even 
2607 \begin_inset Quotes eld
2608 \end_inset
2609
2610 all references
2611 \begin_inset Quotes erd
2612 \end_inset
2613
2614 .
2615  This might be useful if you would like to separate your bibliography into
2616  three sections: 
2617 \begin_inset Quotes eld
2618 \end_inset
2619
2620 Cited sources
2621 \begin_inset Quotes erd
2622 \end_inset
2623
2624
2625 \begin_inset Quotes eld
2626 \end_inset
2627
2628 Uncited sources
2629 \begin_inset Quotes erd
2630 \end_inset
2631
2632 , and 
2633 \begin_inset Quotes eld
2634 \end_inset
2635
2636 Scientific works
2637 \begin_inset Quotes erd
2638 \end_inset
2639
2640 .
2641  The titles for the sections can be added as ordinary sections or subsections.
2642  Since 
2643 \begin_inset Flex Code
2644 status collapsed
2645
2646 \begin_layout Plain Layout
2647 bibtopic
2648 \end_layout
2649
2650 \end_inset
2651
2652  removes the bibliography title, you have to manually re-add that, too (as
2653  a chapter* or section*, for instance).
2654 \end_layout
2655
2656 \begin_layout Subsection
2657 Multiple Bibliographies
2658 \end_layout
2659
2660 \begin_layout Standard
2661 Multiple bibliographies, e.
2662 \begin_inset space \thinspace{}
2663 \end_inset
2664
2665 g.
2666 \begin_inset space \space{}
2667 \end_inset
2668
2669 a bibliography for each section or chapter of the document, are not supported
2670  by Bib\SpecialChar TeX
2671  itself.
2672  But the 
2673 \begin_inset Flex Code
2674 status collapsed
2675
2676 \begin_layout Plain Layout
2677 bibtopic
2678 \end_layout
2679
2680 \end_inset
2681
2682  package, which is used for the creation of sectioned bibliographies in
2683  \SpecialChar LyX
2684  (see the previous section), provides an easy way to solve this task, if
2685  you are willing to use some 
2686 \begin_inset Flex Noun
2687 status collapsed
2688
2689 \begin_layout Plain Layout
2690 \SpecialChar TeX
2691  Code
2692 \end_layout
2693
2694 \end_inset
2695
2696  (see section
2697 \begin_inset space ~
2698 \end_inset
2699
2700
2701 \begin_inset CommandInset ref
2702 LatexCommand ref
2703 reference "sec:Inserting-TeX-Code"
2704
2705 \end_inset
2706
2707 ).
2708 \begin_inset Foot
2709 status collapsed
2710
2711 \begin_layout Plain Layout
2712 An alternative approach is to use the 
2713 \begin_inset Flex Code
2714 status collapsed
2715
2716 \begin_layout Plain Layout
2717 chapterbib
2718 \end_layout
2719
2720 \end_inset
2721
2722  or 
2723 \begin_inset Flex Code
2724 status collapsed
2725
2726 \begin_layout Plain Layout
2727 bibunits
2728 \end_layout
2729
2730 \end_inset
2731
2732  package, respectively.
2733 \end_layout
2734
2735 \end_inset
2736
2737
2738 \end_layout
2739
2740 \begin_layout Standard
2741 First go to 
2742 \begin_inset Flex Noun
2743 status collapsed
2744
2745 \begin_layout Plain Layout
2746 Document\SpecialChar menuseparator
2747 Settings
2748 \end_layout
2749
2750 \end_inset
2751
2752  and under 
2753 \begin_inset Flex Noun
2754 status collapsed
2755
2756 \begin_layout Plain Layout
2757 Bibliography
2758 \end_layout
2759
2760 \end_inset
2761
2762  check 
2763 \begin_inset Flex Noun
2764 status collapsed
2765
2766 \begin_layout Plain Layout
2767 Sectioned bibliography
2768 \end_layout
2769
2770 \end_inset
2771
2772 .
2773  In the document, you have to enclose the sections, which shall contain
2774  their own bibliography (including the Bib\SpecialChar TeX
2775  bibliography itself), between
2776  
2777 \begin_inset Flex Code
2778 status collapsed
2779
2780 \begin_layout Plain Layout
2781
2782 \backslash
2783 begin{btUnit}
2784 \end_layout
2785
2786 \end_inset
2787
2788  and 
2789 \begin_inset Flex Code
2790 status collapsed
2791
2792 \begin_layout Plain Layout
2793
2794 \backslash
2795 end{btUnit}
2796 \end_layout
2797
2798 \end_inset
2799
2800  (those commands have to be inserted as \SpecialChar TeX
2801  code).
2802  The bibliography will contain all references that have been cited in the
2803  current 
2804 \begin_inset Flex Code
2805 status collapsed
2806
2807 \begin_layout Plain Layout
2808 btUnit
2809 \end_layout
2810
2811 \end_inset
2812
2813 .
2814  
2815 \series bold
2816 Note:
2817 \series default
2818  If you are using this approach, then every citation reference has to be
2819  inside some 
2820 \begin_inset Flex Code
2821 status collapsed
2822
2823 \begin_layout Plain Layout
2824 btUnit
2825 \end_layout
2826
2827 \end_inset
2828
2829 .
2830  Also, the 
2831 \begin_inset Flex Code
2832 status collapsed
2833
2834 \begin_layout Plain Layout
2835 btUnit
2836 \end_layout
2837
2838 \end_inset
2839
2840 s cannot be nested.
2841 \end_layout
2842
2843 \begin_layout Section
2844 Multipart Documents
2845 \end_layout
2846
2847 \begin_layout Subsection
2848 General Operation
2849 \end_layout
2850
2851 \begin_layout Standard
2852 When you are working on a large file with many sections, it is often convenient
2853  to break up the document into several files, or perhaps you have something
2854  where a table may change from time to time, but the preceding text does
2855  not.
2856  In these cases, you should seriously consider using multipart documents.
2857  For example, scientific papers often have five major sections: the introduction
2858 , observations, results, discussion, and conclusion.
2859  Each of these could be its own separate \SpecialChar LyX
2860  file, with one 
2861 \begin_inset Quotes eld
2862 \end_inset
2863
2864 master
2865 \begin_inset Quotes erd
2866 \end_inset
2867
2868  file which contains the title, authors, abstract, references, etc., plus
2869  the five included files.
2870  It is important to note that each of these files is a full \SpecialChar LyX
2871  file which
2872  can be formatted and printed on its own, as well as included in a master
2873  file.
2874  Each of these files must have the same document class, however—don't attempt
2875  to mix book classes with article classes.
2876  You may also include \SpecialChar LaTeX
2877  files; however, these files must not have their own
2878  preamble (i.
2879 \begin_inset space \thinspace{}
2880 \end_inset
2881
2882 e.
2883 \begin_inset space \space{}
2884 \end_inset
2885
2886 everything up to and including the 
2887 \begin_inset Flex Code
2888 status collapsed
2889
2890 \begin_layout Plain Layout
2891
2892 \backslash
2893 begin{document}
2894 \end_layout
2895
2896 \end_inset
2897
2898  line as well as the 
2899 \begin_inset Flex Code
2900 status collapsed
2901
2902 \begin_layout Plain Layout
2903
2904 \backslash
2905 end{document}
2906 \end_layout
2907
2908 \end_inset
2909
2910  line must be deleted) or else errors will be generated when you try to
2911  make a DVI file.
2912 \end_layout
2913
2914 \begin_layout Standard
2915 \SpecialChar LyX
2916  allows you to include files quite easily with 
2917 \begin_inset Flex Noun
2918 status collapsed
2919
2920 \begin_layout Plain Layout
2921 Insert\SpecialChar menuseparator
2922 ChiId
2923 \begin_inset space ~
2924 \end_inset
2925
2926 Document
2927 \end_layout
2928
2929 \end_inset
2930
2931 .
2932  When you click on this selection a small box is inserted into the file
2933  at the current cursor location.
2934  Clicking on the box raises a dialog which allows you to select the file
2935  to be included, and the method of its inclusion.
2936  
2937 \end_layout
2938
2939 \begin_layout Standard
2940 The file selection box should by now be obvious.
2941  The three inclusion methods are 
2942 \begin_inset Quotes eld
2943 \end_inset
2944
2945 include
2946 \begin_inset Quotes erd
2947 \end_inset
2948
2949
2950 \begin_inset Quotes eld
2951 \end_inset
2952
2953 input
2954 \begin_inset Quotes erd
2955 \end_inset
2956
2957 , and 
2958 \begin_inset Quotes eld
2959 \end_inset
2960
2961 verbatim
2962 \begin_inset Quotes erd
2963 \end_inset
2964
2965 .
2966  The difference between 
2967 \begin_inset Quotes eld
2968 \end_inset
2969
2970 include
2971 \begin_inset Quotes erd
2972 \end_inset
2973
2974  and 
2975 \begin_inset Quotes eld
2976 \end_inset
2977
2978 input
2979 \begin_inset Quotes erd
2980 \end_inset
2981
2982  is really only meaningful to \SpecialChar LaTeX
2983 perts, but the practical difference is that
2984  files that are 
2985 \begin_inset Quotes eld
2986 \end_inset
2987
2988 included
2989 \begin_inset Quotes erd
2990 \end_inset
2991
2992  are typeset beginning on a new page, while files that are 
2993 \begin_inset Quotes eld
2994 \end_inset
2995
2996 inputted
2997 \begin_inset Quotes erd
2998 \end_inset
2999
3000  are typeset starting on the current page.
3001 \end_layout
3002
3003 \begin_layout Standard
3004 Generally, the master file is converted into a full \SpecialChar LaTeX
3005  file before typesetting,
3006  while the included files are converted to \SpecialChar LaTeX
3007  files that do not have all the
3008  preamble information.
3009 \end_layout
3010
3011 \begin_layout Standard
3012
3013 \begin_inset Quotes eld
3014 \end_inset
3015
3016 verbatim
3017 \begin_inset Quotes erd
3018 \end_inset
3019
3020  included file allows you to include a file typeset exactly as it appears
3021  in the file, i.
3022 \begin_inset space \thinspace{}
3023 \end_inset
3024
3025 e.
3026 \begin_inset space \space{}
3027 \end_inset
3028
3029 in 
3030 \begin_inset Flex Code
3031 status collapsed
3032
3033 \begin_layout Plain Layout
3034 verbatim
3035 \end_layout
3036
3037 \end_inset
3038
3039  mode, with the characters set in a fixed-width typewriter font.
3040  Normally, spaces in this file are invisible, though two consecutive spaces
3041  are conserved, unlike \SpecialChar LyX
3042 's normal treatment of spaces.
3043  However, setting the 
3044 \begin_inset Flex Noun
3045 status collapsed
3046
3047 \begin_layout Plain Layout
3048 Mark
3049 \begin_inset space ~
3050 \end_inset
3051
3052 spaces
3053 \begin_inset space ~
3054 \end_inset
3055
3056 in
3057 \begin_inset space ~
3058 \end_inset
3059
3060 output
3061 \end_layout
3062
3063 \end_inset
3064
3065  checkbox typesets a mark to unambiguously define the presence of a space.
3066  
3067 \end_layout
3068
3069 \begin_layout Subsection
3070 Cross-References Between Files
3071 \end_layout
3072
3073 \begin_layout Standard
3074 \begin_inset Box Shadowbox
3075 position "t"
3076 hor_pos "c"
3077 has_inner_box 1
3078 inner_pos "t"
3079 use_parbox 0
3080 use_makebox 0
3081 width "100col%"
3082 special "none"
3083 height "1in"
3084 height_special "totalheight"
3085 thickness "0.4pt"
3086 separation "3pt"
3087 shadowsize "4pt"
3088 framecolor "black"
3089 backgroundcolor "none"
3090 status open
3091
3092 \begin_layout Plain Layout
3093 This section is somewhat out of date.
3094  Need to describe default master documents and how children are opened when
3095  the master is.
3096  [[FIXME]]
3097 \end_layout
3098
3099 \end_inset
3100
3101
3102 \end_layout
3103
3104 \begin_layout Standard
3105 It is possible to set up cross-references between the different files.
3106  First, open all the files in question: let's call them A and B in a two
3107  file example, where B is included in A.
3108  Let's say you insert a label in A, then want to reference it in B.
3109  Open the cross-reference dialog whilst in document B, and you can select
3110  the 
3111 \begin_inset Quotes eld
3112 \end_inset
3113
3114 buffer
3115 \begin_inset Quotes erd
3116 \end_inset
3117
3118  to use.
3119 \end_layout
3120
3121 \begin_layout Subsection
3122 Bibliography Lists in all Subdocuments
3123 \end_layout
3124
3125 \begin_layout Standard
3126 \begin_inset Box Frameless
3127 position "t"
3128 hor_pos "c"
3129 has_inner_box 1
3130 inner_pos "t"
3131 use_parbox 0
3132 use_makebox 0
3133 width "100col%"
3134 special "none"
3135 height "1in"
3136 height_special "totalheight"
3137 thickness "0.4pt"
3138 separation "3pt"
3139 shadowsize "4pt"
3140 framecolor "black"
3141 backgroundcolor "none"
3142 status open
3143
3144 \begin_layout Plain Layout
3145 This section also needs updating.
3146  There is now material about this on the wiki, and it could be copied here.
3147 \end_layout
3148
3149 \end_inset
3150
3151
3152 \end_layout
3153
3154 \begin_layout Standard
3155 Copy the bibliography list with all entries to all subdocuments and transform
3156  them to a comment.
3157  This way \SpecialChar LyX
3158  will find the 
3159 \begin_inset Flex Code
3160 status collapsed
3161
3162 \begin_layout Plain Layout
3163 .bib
3164 \end_layout
3165
3166 \end_inset
3167
3168 -files and you can easily insert references without making the bibliography
3169  list visible.
3170 \end_layout
3171
3172 \begin_layout Standard
3173 As the bibliography list is in a comment, \SpecialChar LaTeX
3174  won't use it and the references
3175  will look like this: [?], instead of like this: [1].
3176  One solution is to use the \SpecialChar LaTeX
3177 -package 
3178 \begin_inset Flex Code
3179 status collapsed
3180
3181 \begin_layout Plain Layout
3182 comment
3183 \end_layout
3184
3185 \end_inset
3186
3187  that will only include comments by processing the files separately.
3188  To do this, add in the \SpecialChar LaTeX
3189  preamble of every subdocument the following:
3190 \end_layout
3191
3192 \begin_layout LyX-Code
3193
3194 \backslash
3195 usepackage{comment}
3196 \end_layout
3197
3198 \begin_layout LyX-Code
3199
3200 \backslash
3201 includecomment{comment}
3202 \end_layout
3203
3204 \begin_layout Standard
3205 See also 
3206 \begin_inset Flex URL
3207 status collapsed
3208
3209 \begin_layout Plain Layout
3210
3211 http://wiki.lyx.org/FAQ/Unsorted#toc31
3212 \end_layout
3213
3214 \end_inset
3215
3216 .
3217 \end_layout
3218
3219 \begin_layout Section
3220 \SpecialChar LyX
3221  Archives
3222 \end_layout
3223
3224 \begin_layout Standard
3225 Users sometimes need to be able to 
3226 \begin_inset Quotes eld
3227 \end_inset
3228
3229 bundle
3230 \begin_inset Quotes erd
3231 \end_inset
3232
3233  a \SpecialChar LyX
3234  file together with all the images (and other files) on which it depends,
3235  either for sending to a publisher or for sharing with a co-author.
3236  \SpecialChar LyX
3237  2.0 includes a Python script (
3238 \begin_inset Flex Code
3239 status collapsed
3240
3241 \begin_layout Plain Layout
3242 lyxpak.py
3243 \end_layout
3244
3245 \end_inset
3246
3247 ) that automates this process.
3248  To use it, you must have either the 
3249 \begin_inset Flex Code
3250 status collapsed
3251
3252 \begin_layout Plain Layout
3253 zipfile
3254 \end_layout
3255
3256 \end_inset
3257
3258  or 
3259 \begin_inset Flex Code
3260 status collapsed
3261
3262 \begin_layout Plain Layout
3263 tarfile
3264 \end_layout
3265
3266 \end_inset
3267
3268  python modules installed on your system.
3269  By default, the script prefers the 
3270 \begin_inset Flex Code
3271 status collapsed
3272
3273 \begin_layout Plain Layout
3274 gzip
3275 \end_layout
3276
3277 \end_inset
3278
3279 -compressed 
3280 \begin_inset Flex Code
3281 status collapsed
3282
3283 \begin_layout Plain Layout
3284 tar
3285 \end_layout
3286
3287 \end_inset
3288
3289  format on Unix-like systems and the 
3290 \begin_inset Flex Code
3291 status collapsed
3292
3293 \begin_layout Plain Layout
3294 zip
3295 \end_layout
3296
3297 \end_inset
3298
3299  format on Windows.
3300 \end_layout
3301
3302 \begin_layout Standard
3303 \SpecialChar LyX
3304 's configuration process will set the script up to export a `\SpecialChar LyX
3305  Archive',
3306  and this format will then be available under 
3307 \begin_inset Flex Code
3308 status collapsed
3309
3310 \begin_layout Plain Layout
3311 File\SpecialChar menuseparator
3312 Export
3313 \end_layout
3314
3315 \end_inset
3316
3317 .
3318 \end_layout
3319
3320 \begin_layout Standard
3321 Independently of the platform, the generation of a particular archive format
3322  can be forced by adding either the 
3323 \begin_inset Flex Code
3324 status collapsed
3325
3326 \begin_layout Plain Layout
3327 -t
3328 \end_layout
3329
3330 \end_inset
3331
3332  (for the 
3333 \begin_inset Flex Code
3334 status collapsed
3335
3336 \begin_layout Plain Layout
3337 tar
3338 \end_layout
3339
3340 \end_inset
3341
3342  format) or 
3343 \begin_inset Flex Code
3344 status collapsed
3345
3346 \begin_layout Plain Layout
3347 -z
3348 \end_layout
3349
3350 \end_inset
3351
3352  (for the 
3353 \begin_inset Flex Code
3354 status collapsed
3355
3356 \begin_layout Plain Layout
3357 zip
3358 \end_layout
3359
3360 \end_inset
3361
3362  format) switch to the 
3363 \begin_inset Flex Code
3364 status collapsed
3365
3366 \begin_layout Plain Layout
3367 \SpecialChar LyX
3368 \SpecialChar menuseparator
3369 \SpecialChar LyX
3370  Archive
3371 \end_layout
3372
3373 \end_inset
3374
3375  converter in 
3376 \begin_inset Flex Code
3377 status collapsed
3378
3379 \begin_layout Plain Layout
3380 Tools\SpecialChar menuseparator
3381 Preferences\SpecialChar menuseparator
3382 File Handling\SpecialChar menuseparator
3383 Converters
3384 \end_layout
3385
3386 \end_inset
3387
3388 .
3389  (Make sure you add the switch after the script name, not before it.)
3390 \end_layout
3391
3392 \begin_layout Section
3393 Fancy Headers and Footers
3394 \end_layout
3395
3396 \begin_layout Standard
3397 The default page layout is rather plain; for an 
3398 \begin_inset Flex Code
3399 status collapsed
3400
3401 \begin_layout Plain Layout
3402 article
3403 \end_layout
3404
3405 \end_inset
3406
3407  document class, all you get is a centered page number at the bottom of
3408  the page.
3409  This document uses KOMA-script's book class, so it appears to be a bit
3410  fancier.
3411  But to really put on a show, you need to set the document page style to
3412  
3413 \begin_inset Quotes eld
3414 \end_inset
3415
3416 fancy
3417 \begin_inset Quotes erd
3418 \end_inset
3419
3420 , as mentioned in the 
3421 \emph on
3422 User Guide
3423 \emph default
3424 .
3425  This section describes the \SpecialChar LaTeX
3426  code you need to insert in your \SpecialChar LaTeX
3427  preamble in
3428  order to get the desired effects.
3429 \end_layout
3430
3431 \begin_layout Standard
3432 For more information on fancy headers, see the 
3433 \begin_inset Flex Code
3434 status collapsed
3435
3436 \begin_layout Plain Layout
3437 fancyhdr
3438 \end_layout
3439
3440 \end_inset
3441
3442  package documentation.
3443  (
3444 \begin_inset Flex URL
3445 status collapsed
3446
3447 \begin_layout Plain Layout
3448
3449 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3450 \end_layout
3451
3452 \end_inset
3453
3454 )
3455 \end_layout
3456
3457 \begin_layout Standard
3458 The page header is divided into three fields, not surprisingly labeled 
3459 \begin_inset Quotes eld
3460 \end_inset
3461
3462 left
3463 \begin_inset Quotes erd
3464 \end_inset
3465
3466
3467 \begin_inset Quotes eld
3468 \end_inset
3469
3470 center
3471 \begin_inset Quotes erd
3472 \end_inset
3473
3474 , and 
3475 \begin_inset Quotes eld
3476 \end_inset
3477
3478 right
3479 \begin_inset Quotes erd
3480 \end_inset
3481
3482 .
3483  The footer is also divided into these three fields.
3484  The \SpecialChar LaTeX
3485  commands to set these fields in the simplest manner are 
3486 \begin_inset Flex Code
3487 status collapsed
3488
3489 \begin_layout Plain Layout
3490
3491 \backslash
3492 lhead
3493 \end_layout
3494
3495 \end_inset
3496
3497
3498 \begin_inset Flex Code
3499 status collapsed
3500
3501 \begin_layout Plain Layout
3502
3503 \backslash
3504 chead
3505 \end_layout
3506
3507 \end_inset
3508
3509
3510 \begin_inset Flex Code
3511 status collapsed
3512
3513 \begin_layout Plain Layout
3514
3515 \backslash
3516 rhead
3517 \end_layout
3518
3519 \end_inset
3520
3521
3522 \begin_inset Flex Code
3523 status collapsed
3524
3525 \begin_layout Plain Layout
3526
3527 \backslash
3528 lfoot
3529 \end_layout
3530
3531 \end_inset
3532
3533 , etc.
3534  Suppose you wish to put your name in the upper left hand corner of each
3535  page.
3536  Simply insert the following command in the preamble: 
3537 \end_layout
3538
3539 \begin_layout Standard
3540
3541 \family typewriter
3542
3543 \backslash
3544 lhead{John Q.
3545  DocWriter}
3546 \end_layout
3547
3548 \begin_layout Standard
3549 You will now see your name in the upper left.
3550  If a field has a default entry that you would like to get rid of (often
3551  the page number appears in the central footer) simply include a command
3552  with a blank argument, e.
3553 \begin_inset space \thinspace{}
3554 \end_inset
3555
3556 g.:
3557 \end_layout
3558
3559 \begin_layout Standard
3560
3561 \family typewriter
3562
3563 \backslash
3564 cfoot{}
3565 \end_layout
3566
3567 \begin_layout Standard
3568 Let's get really fancy: lets put the section number with the word 
3569 \begin_inset Quotes eld
3570 \end_inset
3571
3572 Section
3573 \begin_inset Quotes erd
3574 \end_inset
3575
3576  (e.
3577 \begin_inset space \thinspace{}
3578 \end_inset
3579
3580 g.
3581 \begin_inset space \space{}
3582 \end_inset
3583
3584 Section 3) in the upper left, the page number (e.
3585 \begin_inset space \thinspace{}
3586 \end_inset
3587
3588 g.
3589 \begin_inset space \space{}
3590 \end_inset
3591
3592 Page 4) in the upper right, your name in the lower left, and the date in
3593  the lower right.
3594  The following commands should now appear in the preamble:
3595 \end_layout
3596
3597 \begin_layout Standard
3598
3599 \family typewriter
3600
3601 \backslash
3602 lhead{Section 
3603 \backslash
3604 thesection}
3605 \end_layout
3606
3607 \begin_layout Standard
3608
3609 \family typewriter
3610
3611 \backslash
3612 chead{}
3613 \end_layout
3614
3615 \begin_layout Standard
3616
3617 \family typewriter
3618
3619 \backslash
3620 rhead{Page 
3621 \backslash
3622 thepage}
3623 \end_layout
3624
3625 \begin_layout Standard
3626
3627 \family typewriter
3628
3629 \backslash
3630 lfoot{John Q.
3631  DocWriter}
3632 \end_layout
3633
3634 \begin_layout Standard
3635
3636 \family typewriter
3637
3638 \backslash
3639 cfoot{}
3640 \end_layout
3641
3642 \begin_layout Standard
3643
3644 \family typewriter
3645
3646 \backslash
3647 rfoot{
3648 \backslash
3649 today}
3650 \end_layout
3651
3652 \begin_layout Standard
3653 The commands 
3654 \begin_inset Flex Code
3655 status collapsed
3656
3657 \begin_layout Plain Layout
3658
3659 \backslash
3660 thesection
3661 \end_layout
3662
3663 \end_inset
3664
3665  and 
3666 \begin_inset Flex Code
3667 status collapsed
3668
3669 \begin_layout Plain Layout
3670
3671 \backslash
3672 thepage
3673 \end_layout
3674
3675 \end_inset
3676
3677  access \SpecialChar LaTeX
3678 's section and page counters, and so print out the current section
3679  and page numbers.
3680  
3681 \begin_inset Flex Code
3682 status collapsed
3683
3684 \begin_layout Plain Layout
3685
3686 \backslash
3687 today
3688 \end_layout
3689
3690 \end_inset
3691
3692  simply prints out today's date.
3693 \end_layout
3694
3695 \begin_layout Standard
3696 The thicknesses of the horizontal rules drawn beneath the header and above
3697  the footer can also be modified.
3698  If you don't want one of the rules, set its thickness to 0.
3699  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3700  Use commands
3701 \family typewriter
3702  
3703 \family default
3704 like 
3705 \begin_inset Flex Code
3706 status collapsed
3707
3708 \begin_layout Plain Layout
3709
3710 \backslash
3711 renewcommand{
3712 \backslash
3713 headrulewidth}{0.4pt}
3714 \end_layout
3715
3716 \end_inset
3717
3718  and 
3719 \begin_inset Flex Code
3720 status collapsed
3721
3722 \begin_layout Plain Layout
3723
3724 \backslash
3725 renewcommand{
3726 \backslash
3727 footrulewidth}{0.4pt}
3728 \end_layout
3729
3730 \end_inset
3731
3732  to set the thicknesses.
3733 \end_layout
3734
3735 \begin_layout Standard
3736 You can switch the header/footer settings on and off for individual pages
3737  using commands like 
3738 \begin_inset Flex Code
3739 status collapsed
3740
3741 \begin_layout Plain Layout
3742
3743 \backslash
3744 thispagestyle{empty}
3745 \end_layout
3746
3747 \end_inset
3748
3749
3750 \begin_inset Flex Code
3751 status collapsed
3752
3753 \begin_layout Plain Layout
3754
3755 \backslash
3756 thispagestyle{plain}
3757 \end_layout
3758
3759 \end_inset
3760
3761 , and 
3762 \begin_inset Flex Code
3763 status collapsed
3764
3765 \begin_layout Plain Layout
3766
3767 \backslash
3768 thispagestyle{fancy}
3769 \end_layout
3770
3771 \end_inset
3772
3773 .
3774  Simply insert them in the text on the page you want changed and mark them
3775  as \SpecialChar TeX
3776  code.
3777  In fact, title pages are marked as plain by default, while following pages
3778  are marked fancy when using the global fancy setting.
3779 \end_layout
3780
3781 \begin_layout Standard
3782 As a final example, it is possible to include an image in the header or
3783  footer.
3784  Suppose you want to put a company logo in the upper lefthand corner.
3785  You might try something like
3786 \end_layout
3787
3788 \begin_layout Standard
3789
3790 \family typewriter
3791
3792 \backslash
3793 lhead{
3794 \backslash
3795 resizebox{1in}{!}{
3796 \backslash
3797 includegraphics{logo.eps}}}
3798 \end_layout
3799
3800 \begin_layout Standard
3801 \noindent
3802 (you may need to preface this with 
3803 \begin_inset Flex Code
3804 status collapsed
3805
3806 \begin_layout Plain Layout
3807 \noindent
3808
3809 \backslash
3810 usepackage{graphics}
3811 \end_layout
3812
3813 \end_inset
3814
3815  if you don't include graphics elsewhere in your document).
3816 \end_layout
3817
3818 \begin_layout Section
3819 Itemize Bullet Selection
3820 \begin_inset CommandInset label
3821 LatexCommand label
3822 name "sec:bullet"
3823
3824 \end_inset
3825
3826
3827 \end_layout
3828
3829 \begin_layout Standard
3830 by
3831 \noun on
3832  Allan Rae
3833 \end_layout
3834
3835 \begin_layout Subsection
3836 Introduction
3837 \end_layout
3838
3839 \begin_layout Standard
3840 \SpecialChar LyX
3841  provides 216 bullet shapes that can be accessed from a simple dialog.
3842  Using this dialog you can easily specify what bullet shape to use at each
3843  level of an itemized list.
3844  These settings are document-wide so you won't be able to specify different
3845  sets of bullets for different paragraphs.
3846 \begin_inset Foot
3847 status collapsed
3848
3849 \begin_layout Plain Layout
3850 Well, actually you can but you'll have to do it by hand.
3851 \end_layout
3852
3853 \end_inset
3854
3855
3856 \end_layout
3857
3858 \begin_layout Subsection
3859 How it looks
3860 \end_layout
3861
3862 \begin_layout Standard
3863 Open the dialog by selecting the 
3864 \begin_inset Flex Noun
3865 status collapsed
3866
3867 \begin_layout Plain Layout
3868 Document\SpecialChar menuseparator
3869 Settings
3870 \end_layout
3871
3872 \end_inset
3873
3874  menu item and then select the 
3875 \begin_inset Flex Noun
3876 status collapsed
3877
3878 \begin_layout Plain Layout
3879 Bullets
3880 \end_layout
3881
3882 \end_inset
3883
3884  tab.
3885 \end_layout
3886
3887 \begin_layout Standard
3888 The dialog provides you with a table of bullet shapes.
3889  A column of buttons on the left of the table provides access to the six
3890  different panels of bullet shapes.
3891  The row of buttons across the top is used to select which bullet depth
3892  you are changing.
3893  A text entry under the table shows the currently selected bullet shape's
3894  \SpecialChar LaTeX
3895  equivalent and this can be edited if desired.
3896  If you do modify the text you will also need to specify any needed packages
3897  in the \SpecialChar LaTeX
3898  preamble.
3899 \end_layout
3900
3901 \begin_layout Standard
3902 The six panels are divided up by the packages they require.
3903  The following table shows the mappings from button name to \SpecialChar LaTeX
3904  package.
3905 \begin_inset Separator latexpar
3906 \end_inset
3907
3908
3909 \end_layout
3910
3911 \begin_layout Standard
3912 \align center
3913 \begin_inset Tabular
3914 <lyxtabular version="3" rows="7" columns="2">
3915 <features tabularvalignment="middle">
3916 <column alignment="center" valignment="top" width="0pt">
3917 <column alignment="center" valignment="top" width="0pt">
3918 <row>
3919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3920 \begin_inset Text
3921
3922 \begin_layout Plain Layout
3923
3924 \family roman
3925 \series medium
3926 \shape up
3927 \size normal
3928 \emph off
3929 \bar no
3930 \noun off
3931 \color none
3932 Button
3933 \end_layout
3934
3935 \end_inset
3936 </cell>
3937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3938 \begin_inset Text
3939
3940 \begin_layout Plain Layout
3941
3942 \family roman
3943 \series medium
3944 \shape up
3945 \size normal
3946 \emph off
3947 \bar no
3948 \noun off
3949 \color none
3950 Packages Required
3951 \end_layout
3952
3953 \end_inset
3954 </cell>
3955 </row>
3956 <row>
3957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3958 \begin_inset Text
3959
3960 \begin_layout Plain Layout
3961
3962 \family sans
3963 \series medium
3964 \shape up
3965 \size normal
3966 \emph off
3967 \bar no
3968 \noun off
3969 \color none
3970 Standard
3971 \end_layout
3972
3973 \end_inset
3974 </cell>
3975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3976 \begin_inset Text
3977
3978 \begin_layout Plain Layout
3979
3980 \series medium
3981 \shape up
3982 \size normal
3983 \emph off
3984 \bar no
3985 \noun off
3986 \color none
3987 base \SpecialChar LaTeX
3988
3989 \end_layout
3990
3991 \end_inset
3992 </cell>
3993 </row>
3994 <row>
3995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3996 \begin_inset Text
3997
3998 \begin_layout Plain Layout
3999
4000 \family sans
4001 \series medium
4002 \shape up
4003 \size normal
4004 \emph off
4005 \bar no
4006 \noun off
4007 \color none
4008 Maths
4009 \end_layout
4010
4011 \end_inset
4012 </cell>
4013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4014 \begin_inset Text
4015
4016 \begin_layout Plain Layout
4017
4018 \family typewriter
4019 \series medium
4020 \shape up
4021 \size normal
4022 \emph off
4023 \bar no
4024 \noun off
4025 \color none
4026 amssymb.sty
4027 \end_layout
4028
4029 \end_inset
4030 </cell>
4031 </row>
4032 <row>
4033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4034 \begin_inset Text
4035
4036 \begin_layout Plain Layout
4037
4038 \family sans
4039 \series medium
4040 \shape up
4041 \size normal
4042 \emph off
4043 \bar no
4044 \noun off
4045 \color none
4046 Ding1
4047 \end_layout
4048
4049 \end_inset
4050 </cell>
4051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4052 \begin_inset Text
4053
4054 \begin_layout Plain Layout
4055
4056 \family typewriter
4057 \series medium
4058 \shape up
4059 \size normal
4060 \emph off
4061 \bar no
4062 \noun off
4063 \color none
4064 pifont.sty
4065 \end_layout
4066
4067 \end_inset
4068 </cell>
4069 </row>
4070 <row>
4071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4072 \begin_inset Text
4073
4074 \begin_layout Plain Layout
4075
4076 \family sans
4077 \series medium
4078 \shape up
4079 \size normal
4080 \emph off
4081 \bar no
4082 \noun off
4083 \color none
4084 Ding2
4085 \end_layout
4086
4087 \end_inset
4088 </cell>
4089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4090 \begin_inset Text
4091
4092 \begin_layout Plain Layout
4093
4094 \family typewriter
4095 \series medium
4096 \shape up
4097 \size normal
4098 \emph off
4099 \bar no
4100 \noun off
4101 \color none
4102 pifont.sty
4103 \end_layout
4104
4105 \end_inset
4106 </cell>
4107 </row>
4108 <row>
4109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4110 \begin_inset Text
4111
4112 \begin_layout Plain Layout
4113
4114 \family sans
4115 \series medium
4116 \shape up
4117 \size normal
4118 \emph off
4119 \bar no
4120 \noun off
4121 \color none
4122 Ding3
4123 \end_layout
4124
4125 \end_inset
4126 </cell>
4127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4128 \begin_inset Text
4129
4130 \begin_layout Plain Layout
4131
4132 \family typewriter
4133 \series medium
4134 \shape up
4135 \size normal
4136 \emph off
4137 \bar no
4138 \noun off
4139 \color none
4140 pifont.sty
4141 \end_layout
4142
4143 \end_inset
4144 </cell>
4145 </row>
4146 <row>
4147 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4148 \begin_inset Text
4149
4150 \begin_layout Plain Layout
4151
4152 \family sans
4153 \series medium
4154 \shape up
4155 \size normal
4156 \emph off
4157 \bar no
4158 \noun off
4159 \color none
4160 Ding4
4161 \end_layout
4162
4163 \end_inset
4164 </cell>
4165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4166 \begin_inset Text
4167
4168 \begin_layout Plain Layout
4169
4170 \family typewriter
4171 \series medium
4172 \shape up
4173 \size normal
4174 \emph off
4175 \bar no
4176 \noun off
4177 \color none
4178 pifont.sty
4179 \end_layout
4180
4181 \end_inset
4182 </cell>
4183 </row>
4184 </lyxtabular>
4185
4186 \end_inset
4187
4188
4189 \end_layout
4190
4191 \begin_layout Standard
4192 \SpecialChar LyX
4193  doesn't stop you using bullets from packages you don't have.
4194  If you get errors from \SpecialChar LaTeX
4195  when you try to view or print the file, then it
4196  is likely you are missing a package.
4197 \begin_inset Foot
4198 status collapsed
4199
4200 \begin_layout Plain Layout
4201 \SpecialChar LyX
4202  doesn't restrict your use since you may be editing locally and exporting
4203  elsewhere.
4204 \end_layout
4205
4206 \end_inset
4207
4208
4209 \end_layout
4210
4211 \begin_layout Subsection
4212 How to use it
4213 \end_layout
4214
4215 \begin_layout Standard
4216 Select which bullet depth you want to change then select the bullet shape
4217  and size.
4218  Any changes will not be visible in \SpecialChar LyX
4219 , but are visible when viewing the document.
4220 \end_layout
4221
4222 \begin_layout Standard
4223 You can reset a bullet shape to the default simply by clicking your right
4224  mouse button on the appropriate bullet depth button.
4225 \begin_inset Foot
4226 status collapsed
4227
4228 \begin_layout Plain Layout
4229 If you 
4230 \emph on
4231 really
4232 \emph default
4233  want to have multiple sets of paragraphs with different sets of bullets
4234  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4235  code.
4236  The bullet selection dialog can help though because it provides you with
4237  the \SpecialChar LaTeX
4238  code for a wide range of bullet shapes.
4239  To make your own custom paragraphs you have the following options:
4240 \end_layout
4241
4242 \begin_layout Plain Layout
4243 \begin_inset ERT
4244 status open
4245
4246 \begin_layout Plain Layout
4247
4248
4249 \backslash
4250 let
4251 \backslash
4252 savelabelitemi=
4253 \backslash
4254 labelitemi
4255 \end_layout
4256
4257 \end_inset
4258
4259
4260 \end_layout
4261
4262 \begin_layout Plain Layout
4263 \begin_inset ERT
4264 status open
4265
4266 \begin_layout Plain Layout
4267
4268
4269 \backslash
4270 renewcommand
4271 \backslash
4272 labelitemi[0]{
4273 \backslash
4274 small
4275 \backslash
4276 (
4277 \backslash
4278 sharp
4279 \backslash
4280 )}
4281 \end_layout
4282
4283 \end_inset
4284
4285
4286 \end_layout
4287
4288 \begin_layout Itemize
4289 Use the \SpecialChar LaTeX
4290  command 
4291 \begin_inset Flex Code
4292 status collapsed
4293
4294 \begin_layout Plain Layout
4295
4296 \backslash
4297 renewcommand{}{}
4298 \end_layout
4299
4300 \end_inset
4301
4302  to specify a new bullet shape for a given depth.
4303  You'll also need to save the current bullet shape so you can restore it
4304  again afterwards.
4305  In this itemized list the following \SpecialChar LaTeX
4306  code was used to change the bullet
4307  used for the first depth.
4308 \begin_inset Separator latexpar
4309 \end_inset
4310
4311
4312 \end_layout
4313
4314 \begin_deeper
4315 \begin_layout LyX-Code
4316
4317 \backslash
4318 let
4319 \backslash
4320 savelabelitemi=
4321 \backslash
4322 labelitemi 
4323 \end_layout
4324
4325 \begin_layout LyX-Code
4326
4327 \backslash
4328 renewcommand
4329 \backslash
4330 labelitemi[0]{
4331 \backslash
4332 small
4333 \backslash
4334 (
4335 \backslash
4336 sharp
4337 \backslash
4338 )}
4339 \end_layout
4340
4341 \end_deeper
4342 \begin_layout Itemize
4343 Note that the itemize depth is specified in Roman numerals as part of the
4344  
4345 \family typewriter
4346
4347 \backslash
4348 labelitem
4349 \family default
4350  command.
4351 \end_layout
4352
4353 \begin_layout Itemize
4354 \begin_inset ERT
4355 status open
4356
4357 \begin_layout Plain Layout
4358
4359 [
4360 \backslash
4361 (
4362 \backslash
4363 star
4364 \backslash
4365 )]
4366 \end_layout
4367
4368 \end_inset
4369
4370  Specify each individual entry by starting each item with the bullet shape
4371  enclosed in square brackets and set as 
4372 \begin_inset Flex Noun
4373 status collapsed
4374
4375 \begin_layout Plain Layout
4376 \SpecialChar TeX
4377  Code
4378 \end_layout
4379
4380 \end_inset
4381
4382 .
4383  For example, this item was started with 
4384 \begin_inset Flex Code
4385 status collapsed
4386
4387 \begin_layout Plain Layout
4388 [
4389 \backslash
4390 (
4391 \backslash
4392 star
4393 \backslash
4394 )]
4395 \end_layout
4396
4397 \end_inset
4398
4399 .
4400 \end_layout
4401
4402 \begin_layout Plain Layout
4403 \begin_inset ERT
4404 status open
4405
4406 \begin_layout Plain Layout
4407
4408
4409 \backslash
4410 renewcommand
4411 \backslash
4412 labelitemi[0]{
4413 \backslash
4414 savelabelitemi}
4415 \end_layout
4416
4417 \end_inset
4418
4419
4420 \end_layout
4421
4422 \begin_layout Plain Layout
4423 You'll also need to revert the labelitem back to its previous setting for
4424  the global bullet shape settings to remain in effect.
4425  The way used here was:
4426 \end_layout
4427
4428 \begin_layout LyX-Code
4429
4430 \backslash
4431 renewcommand
4432 \backslash
4433 labelitemi[0]{
4434 \backslash
4435 savelabelitemi}
4436 \end_layout
4437
4438 \end_inset
4439
4440
4441 \end_layout
4442
4443 \begin_layout Chapter
4444 \SpecialChar LyX
4445  and the World Wide Web
4446 \end_layout
4447
4448 \begin_layout Standard
4449 \SpecialChar LyX
4450  has long supported the export of documents to various web-friendly formats,
4451  such as HTML.
4452  Before verson 2.0, however, HTML export was always accomplished by the use
4453  of external converters.
4454 \begin_inset Foot
4455 status collapsed
4456
4457 \begin_layout Plain Layout
4458 For details on the use of external converters with \SpecialChar LyX
4459 , see the 
4460 \emph on
4461 Converters
4462 \emph default
4463  section of the Customization manual.
4464 \end_layout
4465
4466 \end_inset
4467
4468  These fall into two large groups: there are converters that use \SpecialChar LaTeX
4469  as an
4470  intermediate format, such as 
4471 \begin_inset Flex Code
4472 status collapsed
4473
4474 \begin_layout Plain Layout
4475 htlatex
4476 \end_layout
4477
4478 \end_inset
4479
4480
4481 \begin_inset Flex Code
4482 status collapsed
4483
4484 \begin_layout Plain Layout
4485 html2latex
4486 \end_layout
4487
4488 \end_inset
4489
4490 , and 
4491 \begin_inset Flex Code
4492 status collapsed
4493
4494 \begin_layout Plain Layout
4495 plastex
4496 \end_layout
4497
4498 \end_inset
4499
4500 , relying upon \SpecialChar LyX
4501  to produce the \SpecialChar LaTeX
4502 ; and there is a converter that works directly
4503  on \SpecialChar LyX
4504  files, 
4505 \begin_inset Flex Code
4506 status collapsed
4507
4508 \begin_layout Plain Layout
4509 e\SpecialChar LyX
4510 er
4511 \end_layout
4512
4513 \end_inset
4514
4515 .
4516  All of these have different advantages and disadvantages.
4517  
4518 \end_layout
4519
4520 \begin_layout Standard
4521 The \SpecialChar LaTeX
4522 -based converters have the advantage that, in principle, they know everythin
4523 g about the exported document that \SpecialChar LaTeX
4524  does.
4525  Such converters do not care, for example, if a certain block of code was
4526  produced by \SpecialChar LyX
4527  or was Evil Red Text.
4528  These converters know about 
4529 \begin_inset Flex Code
4530 status collapsed
4531
4532 \begin_layout Plain Layout
4533 aux
4534 \end_layout
4535
4536 \end_inset
4537
4538  files, counters, and references, and can often make use of the 
4539 \begin_inset Flex Code
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543 bbl
4544 \end_layout
4545
4546 \end_inset
4547
4548  files generated by Bib\SpecialChar TeX
4549 .
4550  On the other hand, \SpecialChar LaTeX
4551  is a very hard language to parse—it is sometimes said
4552  that only \SpecialChar TeX
4553  itself understands \SpecialChar TeX
4554 —and \SpecialChar LaTeX
4555 -based converters will often choke on
4556  what seem to be quite simple constructs; complex ones can throw them completely
4557 , and as of this writing, for example, the 
4558 \emph on
4559 Embedded Objects
4560 \emph default
4561  manual will not export with 
4562 \begin_inset Flex Code
4563 status collapsed
4564
4565 \begin_layout Plain Layout
4566 htlatex
4567 \end_layout
4568
4569 \end_inset
4570
4571 , though the others will.
4572  The other issue concerns how math is handled.
4573  These converters typically convert the formulae into little pictures that
4574  are then linked from the HTML document.
4575  Since these are actually generated by \SpecialChar LaTeX
4576 , they are accurate.
4577  But they do not scale well, and just getting them to look as if they are
4578  actually meant to be in your document—so that the font sizes seem to be
4579  roughly the same—can be a challenge.
4580 \end_layout
4581
4582 \begin_layout Standard
4583 Alex Fernandez's 
4584 \begin_inset Flex Code
4585 status collapsed
4586
4587 \begin_layout Plain Layout
4588 e\SpecialChar LyX
4589 er
4590 \end_layout
4591
4592 \end_inset
4593
4594  (
4595 \begin_inset CommandInset href
4596 LatexCommand href
4597 name "http://elyxer.nongnu.org/"
4598 target "http://elyxer.nongnu.org/"
4599
4600 \end_inset
4601
4602 ) solves some of these problems.
4603  In particular, the formulae it produces scale perfectly, since it renders
4604  math using a combination of HTML and CSS rather than converting the formulae
4605  to images.
4606  But even moderately complex formula are rendered less well than with 
4607 \begin_inset Flex Code
4608 status collapsed
4609
4610 \begin_layout Plain Layout
4611 htlatex
4612 \end_layout
4613
4614 \end_inset
4615
4616 ; this reflects the limitations of HTML.
4617 \begin_inset Foot
4618 status collapsed
4619
4620 \begin_layout Plain Layout
4621 That said, 
4622 \begin_inset Flex Code
4623 status collapsed
4624
4625 \begin_layout Plain Layout
4626 e\SpecialChar LyX
4627 er
4628 \end_layout
4629
4630 \end_inset
4631
4632  can also use jsMath and MathJax for equations, but this setting is only
4633  available globally and requires one to have access to a server that runs
4634  the backend.
4635 \end_layout
4636
4637 \end_inset
4638
4639  More importantly (as of version 1.1.1, at least), 
4640 \begin_inset Flex Code
4641 status collapsed
4642
4643 \begin_layout Plain Layout
4644 e\SpecialChar LyX
4645 er
4646 \end_layout
4647
4648 \end_inset
4649
4650  has limited support for math macros and no support for user-defined paragraph
4651  or character styles.
4652  These limitations make 
4653 \begin_inset Flex Code
4654 status collapsed
4655
4656 \begin_layout Plain Layout
4657 e\SpecialChar LyX
4658 er
4659 \end_layout
4660
4661 \end_inset
4662
4663  unsuitable for many of the documents \SpecialChar LyX
4664  users produce.
4665  In principle, of course, these problems could be solved, but the \SpecialChar LyX
4666  developers
4667  have decided to follow a different path and have made \SpecialChar LyX
4668  itself capable of
4669  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
4670 , DocBook, and plaintext.
4671 \end_layout
4672
4673 \begin_layout Standard
4674 As of this writing, XHTML output remains under development and should probably
4675  be regarded as 
4676 \begin_inset Quotes eld
4677 \end_inset
4678
4679 experimental
4680 \begin_inset Quotes erd
4681 \end_inset
4682
4683 .
4684 \begin_inset Foot
4685 status collapsed
4686
4687 \begin_layout Plain Layout
4688 The file 
4689 \begin_inset Flex Code
4690 status collapsed
4691
4692 \begin_layout Plain Layout
4693 development/HTML.notes
4694 \end_layout
4695
4696 \end_inset
4697
4698 , which can be found in the \SpecialChar LyX
4699  source tree or 
4700 \begin_inset CommandInset href
4701 LatexCommand href
4702 name "accessed online"
4703 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
4704
4705 \end_inset
4706
4707 , usually contains up-to-date information about the state of XHTML output.
4708  See also the list of XHTML bugs on 
4709 \begin_inset CommandInset href
4710 LatexCommand href
4711 name "the bug tracker"
4712 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"
4713
4714 \end_inset
4715
4716 .
4717 \end_layout
4718
4719 \end_inset
4720
4721  Still, the developers have chosen this approach because it has several
4722  potential advantages over the other two.
4723 \end_layout
4724
4725 \begin_layout Standard
4726 These advantages are primarily due to the fact that the XHTML output routines,
4727  since they are part of \SpecialChar LyX
4728 , know everything \SpecialChar LyX
4729  knows about the document being
4730  exported.
4731 \begin_inset Foot
4732 status collapsed
4733
4734 \begin_layout Plain Layout
4735 Another advantage is that, since these routines are internal to \SpecialChar LyX
4736 , they are
4737  immune to changes in \SpecialChar LyX
4738 's file format, or to changes in the semantics of
4739  existing insets.
4740 \end_layout
4741
4742 \end_inset
4743
4744  So they know about the table of contents (as displayed in the outline),
4745  about the counters associated with different paragraph styles, and about
4746  user-defined styles.
4747  The XHTML output routines know what \SpecialChar LyX
4748  knows about internationalization,
4749  too, so they will output 
4750 \begin_inset Quotes eld
4751 \end_inset
4752
4753 Chapter 1
4754 \begin_inset Quotes erd
4755 \end_inset
4756
4757  or 
4758 \begin_inset Quotes eld
4759 \end_inset
4760
4761
4762 \lang ngerman
4763 Kapitel
4764 \lang english
4765  1
4766 \begin_inset Quotes erd
4767 \end_inset
4768
4769 , depending upon the language in effect at the time.
4770  
4771 \end_layout
4772
4773 \begin_layout Standard
4774 Quite generally, the output routines know what \SpecialChar LyX
4775  knows about document layout,
4776  that is, about how the document is to be rendered on screen.
4777  We use this information when we output the document as XHTML.
4778  In particular, \SpecialChar LyX
4779  
4780 \emph on
4781 automatically
4782 \emph default
4783  generates CSS style information corresponding to the layout information
4784  it uses to render the document on screen: if section headings are supposed
4785  to be sans-serif and bold as seen in \SpecialChar LyX
4786 , then (by default) they will be sans-seri
4787 f and bold when viewed in a web browser, too.
4788  And this is true not just for pre-defined styles, like Section, but for
4789  any style, including user-defined styles.
4790  Indeed, the XHTML output routines make no distinction between user-defined
4791  paragraph and character styles and \SpecialChar LyX
4792 's own pre-defined styles: in each case,
4793  everything \SpecialChar LyX
4794  knows about the styles is contained in the layout files.
4795  And much the same is true as regards pre-defined textual insets, such as
4796  footnotes, and various custom insets.
4797  
4798 \end_layout
4799
4800 \begin_layout Standard
4801 The result is that XHTML output can be customized and extended in exactly
4802  the same way \SpecialChar LaTeX
4803  output can be customized and extended: through layout files
4804  and modules.
4805  See chapter five of the 
4806 \emph on
4807 Customization 
4808 \emph default
4809 manual for the details.
4810 \end_layout
4811
4812 \begin_layout Standard
4813 The remainder of this chapter contains more detailed information on XHTML
4814  output, its limitations, and ways to work around those limitations.
4815 \end_layout
4816
4817 \begin_layout Section
4818 Math Output in XHTML
4819 \end_layout
4820
4821 \begin_layout Standard
4822 \SpecialChar LyX
4823  offers four choices for how math is rendered.
4824  These have various advantages and disadvantages:
4825 \end_layout
4826
4827 \begin_layout Itemize
4828 MathML
4829 \begin_inset Newline newline
4830 \end_inset
4831
4832 MathML is a dialect of XML designed specifically for mathematics on the
4833  web, and it typically renders very well in browsers that support it.
4834  The disadvantage is that not all browsers support MathML, and support is
4835  not complete even in the Gecko-based browsers, such as Firefox.
4836 \begin_inset Newline newline
4837 \end_inset
4838
4839 If \SpecialChar LyX
4840  is unable to render a formula as MathML—for example, if the formula
4841  uses the 
4842 \begin_inset Flex Code
4843 status collapsed
4844
4845 \begin_layout Plain Layout
4846 xymatrix
4847 \end_layout
4848
4849 \end_inset
4850
4851  package or ERT—then it will instead output the formula as an image.
4852  
4853 \end_layout
4854
4855 \begin_layout Itemize
4856 HTML
4857 \begin_inset Newline newline
4858 \end_inset
4859
4860 As mentioned above, 
4861 \begin_inset Flex Code
4862 status collapsed
4863
4864 \begin_layout Plain Layout
4865 elyxer
4866 \end_layout
4867
4868 \end_inset
4869
4870  outputs math as HTML, styled by CSS.
4871 \begin_inset Foot
4872 status collapsed
4873
4874 \begin_layout Plain Layout
4875 \SpecialChar LyX
4876  has borrowed some of the CSS for its HTML output from 
4877 \begin_inset Flex Code
4878 status collapsed
4879
4880 \begin_layout Plain Layout
4881 elyxer
4882 \end_layout
4883
4884 \end_inset
4885
4886 .
4887 \end_layout
4888
4889 \end_inset
4890
4891  For simple formulae, this can work quite well, though with more complicated
4892  formulae it tends to break down.
4893  Still, this method has the advantage that it is very widely supported and
4894  so it may be appropriate for documents that contain only a little, fairly
4895  simple math.
4896 \begin_inset Newline newline
4897 \end_inset
4898
4899 If Lyx is unable to render a formula as HTML—for example, if the formula
4900  uses the 
4901 \begin_inset Flex Code
4902 status collapsed
4903
4904 \begin_layout Plain Layout
4905 xymatrix
4906 \end_layout
4907
4908 \end_inset
4909
4910  package or ERT—then it will instead output the formula as an image.
4911  
4912 \end_layout
4913
4914 \begin_layout Itemize
4915 Images
4916 \begin_inset Newline newline
4917 \end_inset
4918
4919 Like 
4920 \begin_inset Flex Code
4921 status collapsed
4922
4923 \begin_layout Plain Layout
4924 htlatex
4925 \end_layout
4926
4927 \end_inset
4928
4929 , \SpecialChar LyX
4930  will output formulae as images, the very same images, in fact, that are
4931  used for instant preview.
4932 \begin_inset Foot
4933 status collapsed
4934
4935 \begin_layout Plain Layout
4936 Instant preview does 
4937 \emph on
4938 not 
4939 \emph default
4940 have to be on for images to be output, however.
4941 \end_layout
4942
4943 \end_inset
4944
4945  The advantage to this method is that the images are simply generated by
4946  \SpecialChar LaTeX
4947 , so they are very accurate.
4948  The disadvantage, as mentioned earlier, is that these are bitmapped images,
4949  so they do not scale terribly well, and one cannot copy them, etc.
4950  (As of this writing, there are also problems about equation numbering.
4951  See 
4952 \begin_inset CommandInset href
4953 LatexCommand href
4954 name "bug 6894"
4955 target "http://www.lyx.org/trac/ticket/6894"
4956
4957 \end_inset
4958
4959 .)
4960 \begin_inset Newline newline
4961 \end_inset
4962
4963 The size of the images can be controlled by setting the 
4964 \begin_inset Quotes eld
4965 \end_inset
4966
4967 Math Images Scaling
4968 \begin_inset Quotes erd
4969 \end_inset
4970
4971  parameter under 
4972 \begin_inset Flex Noun
4973 status collapsed
4974
4975 \begin_layout Plain Layout
4976 Document\SpecialChar menuseparator
4977 Settings\SpecialChar menuseparator
4978 Output
4979 \end_layout
4980
4981 \end_inset
4982
4983 .
4984 \begin_inset Foot
4985 status collapsed
4986
4987 \begin_layout Plain Layout
4988 For those who want to know, this controls the resolution of the image in
4989  dots per inch and is based upon a default of 75 dpi.
4990 \end_layout
4991
4992 \end_inset
4993
4994
4995 \begin_inset Newline newline
4996 \end_inset
4997
4998 If \SpecialChar LyX
4999  for some reason fails to create an image for a formula (e.g., if a required
5000  \SpecialChar LaTeX
5001  package is not installed), then it will fall back to outputing the raw
5002  \SpecialChar LaTeX
5003 .
5004 \end_layout
5005
5006 \begin_layout Itemize
5007 \SpecialChar LaTeX
5008
5009 \begin_inset Newline newline
5010 \end_inset
5011
5012 Finally, \SpecialChar LyX
5013  will happily output math as \SpecialChar LaTeX
5014 .
5015  As well as being the output of last resort, this method can be used with
5016  such tools as 
5017 \begin_inset CommandInset href
5018 LatexCommand href
5019 name "jsMath"
5020 target "http://www.math.union.edu/~dpvc/jsMath/"
5021
5022 \end_inset
5023
5024 , which uses JavaScript to render \SpecialChar LaTeX
5025  embedded in HTML documents.
5026  \SpecialChar LyX
5027  wraps the \SpecialChar LaTeX
5028  in either a 
5029 \begin_inset Flex Code
5030 status collapsed
5031
5032 \begin_layout Plain Layout
5033 span
5034 \end_layout
5035
5036 \end_inset
5037
5038  (for inline formulas) or 
5039 \begin_inset Flex Code
5040 status collapsed
5041
5042 \begin_layout Plain Layout
5043 div
5044 \end_layout
5045
5046 \end_inset
5047
5048  (for displayed formulas) with 
5049 \begin_inset Flex Code
5050 status collapsed
5051
5052 \begin_layout Plain Layout
5053 class='math'
5054 \end_layout
5055
5056 \end_inset
5057
5058 , as is required for jsMath.
5059 \end_layout
5060
5061 \begin_layout Standard
5062 One of these output methods must be selected under 
5063 \begin_inset Flex Noun
5064 status collapsed
5065
5066 \begin_layout Plain Layout
5067 Document\SpecialChar menuseparator
5068 Settings\SpecialChar menuseparator
5069 Output
5070 \end_layout
5071
5072 \end_inset
5073
5074 .
5075  By default, \SpecialChar LyX
5076  outputs MathML.
5077  This is a document-wide setting, therefore.
5078 \end_layout
5079
5080 \begin_layout Standard
5081 Eventually, \SpecialChar LyX
5082  will offer the user the option to select an alternate output
5083  method for a particular inset, say, one that isn't being rendered very
5084  well by MathML.
5085 \begin_inset Foot
5086 status collapsed
5087
5088 \begin_layout Plain Layout
5089 That said, since \SpecialChar LyX
5090  falls back to images if the inset contains ERT, then one
5091  can force output as an image by putting some harmless ERT into the math,
5092  for example: 
5093 \begin_inset Formula $a=b\relax$
5094 \end_inset
5095
5096 .
5097 \end_layout
5098
5099 \end_inset
5100
5101
5102 \end_layout
5103
5104 \begin_layout Section
5105 Bibliography and Citations
5106 \end_layout
5107
5108 \begin_layout Standard
5109 XHTML output fully supports bibliographies and citations.
5110  
5111 \end_layout
5112
5113 \begin_layout Standard
5114 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5115 's on-screen
5116  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5117 , though
5118  better.
5119  If you are using numerical citations, then \SpecialChar LyX
5120  will output numerical labels,
5121  such as [1] or [17], rather than simply showing the citation key in square
5122  brackets, as it does on-screen.
5123  If you are using author-year citations, then \SpecialChar LyX
5124  will add lowercase letters
5125  to the years, just as Bib\SpecialChar TeX
5126  does, if it finds more than one citation for
5127  a given author-year combination.
5128  The labels will be printed with the bibliography entries.
5129  Note that there is, at present, no way to customize the appearance of the
5130  labels, for example, to choose between square brackets and parentheses.
5131 \end_layout
5132
5133 \begin_layout Standard
5134 Bibliography output is handled by the same machinery that handles the presentati
5135 on of reference information in the citation dialog, so you will see in the
5136  XHTML output pretty much what you would see if you were to look at a given
5137  entry in the citation dialog.
5138  The formatting can be customized in your layout file or, preferably, in
5139  a module.
5140  See the 
5141 \emph on
5142 Customization
5143 \emph default
5144  manual for the details.
5145 \end_layout
5146
5147 \begin_layout Standard
5148 The main defect at present is that cross-referenced information is printed
5149  with every entry with which it is associated.
5150  So you can see things like this:
5151 \end_layout
5152
5153 \begin_layout Quote
5154 Jason Stanley, 
5155 \begin_inset Quotes eld
5156 \end_inset
5157
5158 Context and Logical Form
5159 \begin_inset Quotes erd
5160 \end_inset
5161
5162 , in 
5163 \emph on
5164 Language in Context: Selected Essays
5165 \emph default
5166  (Oxford: Oxford University Press, 2007), pp.
5167  30–68.
5168 \end_layout
5169
5170 \begin_layout Quote
5171 Jason Stanley, 
5172 \begin_inset Quotes eld
5173 \end_inset
5174
5175 Semantics in Context
5176 \begin_inset Quotes erd
5177 \end_inset
5178
5179 , in 
5180 \emph on
5181 Language in Context: Selected Essays
5182 \emph default
5183  (Oxford: Oxford University Press, 2007), pp.
5184  201–30.
5185 \end_layout
5186
5187 \begin_layout Standard
5188 This should be fixed before long.
5189 \end_layout
5190
5191 \begin_layout Standard
5192 There is no support at present for sectioned bibliographies.
5193  If you have multiple bibliographies, then \SpecialChar LyX
5194  will print the same bibliography
5195  over and over.
5196 \end_layout
5197
5198 \begin_layout Section
5199 Indexes
5200 \end_layout
5201
5202 \begin_layout Standard
5203 \SpecialChar LyX
5204  will happily export indexes as XHTML, but with certain limitations at the
5205  moment.
5206 \end_layout
5207
5208 \begin_layout Standard
5209 Index export will be most reliable when you do not attempt to use the fancy
5210  constructs that are described in the section on indexes in the 
5211 \emph on
5212 User's Guide
5213 \emph default
5214 .
5215 \begin_inset Foot
5216 status collapsed
5217
5218 \begin_layout Plain Layout
5219 The main issue here is that \SpecialChar LyX
5220  itself does not really handle these.
5221  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5222 .
5223 \end_layout
5224
5225 \end_inset
5226
5227  We'll describe how they are handled using the subsection headings from
5228  that section.
5229 \end_layout
5230
5231 \begin_layout Itemize
5232 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5233  makes an effort to support these,
5234  but the entries must be separated by 
5235 \begin_inset Quotes eld
5236 \end_inset
5237
5238  ! 
5239 \begin_inset Quotes erd
5240 \end_inset
5241
5242 , that is, there must be spaces around the exclamation point.
5243  This is because it is otherwise too difficult to check for escaped exclamation
5244  points, ones in math, and so forth.
5245 \end_layout
5246
5247 \begin_layout Itemize
5248 Page Ranges: There is no support at all for page ranges, since these make
5249  no sense with XHMTL.
5250  Instead, you will just get two index entries, one at either end.
5251 \end_layout
5252
5253 \begin_layout Itemize
5254 Cross-referencing: There is no support for cross-referencing.
5255  If \SpecialChar LyX
5256  finds an entry containing the 
5257 \begin_inset Quotes eld
5258 \end_inset
5259
5260 |see\SpecialChar ldots
5261
5262 \begin_inset Quotes erd
5263 \end_inset
5264
5265  construct, it is just dropped, and the rest is treated as an ordinary index
5266  entry.
5267 \end_layout
5268
5269 \begin_layout Itemize
5270 Index Entry Order: \SpecialChar LyX
5271  does support attempts to fix the sorting order.
5272  It will take what is before the first `@' it finds and use that for sorting,
5273  taking what follows the first `@' to be the actual entry.
5274  At present, \SpecialChar LyX
5275  does not check for escaped `@', so do not try to index email
5276  addresses.
5277 \end_layout
5278
5279 \begin_layout Itemize
5280 Index Entry Layout: You can format entries by using the text style dialog,
5281  or by using any other method available within \SpecialChar LyX
5282  itself.
5283  There is no support for constructs like: 
5284 \begin_inset Quotes eld
5285 \end_inset
5286
5287 entry|textbf
5288 \begin_inset Quotes erd
5289 \end_inset
5290
5291 .
5292  Indeed, if \SpecialChar LyX
5293  finds a pipe symbol, `|', in an entry, it will delete it and
5294  everything that follows it.
5295 \end_layout
5296
5297 \begin_layout Itemize
5298 Multiple Indexes: There is no support for multiple indexes.
5299  Rather, all index entries will be printed as one large index.
5300  To avoid our printing several versions of the index, we print only the
5301  main index, so make sure you have one.
5302 \end_layout
5303
5304 \begin_layout Section
5305 Nomenclature and Glossary
5306 \end_layout
5307
5308 \begin_layout Standard
5309 There is at present no support for glossaries.
5310  Adding it would be fairly trivial, and welcome.
5311 \end_layout
5312
5313 \begin_layout Chapter
5314 The \SpecialChar LyX
5315  Server
5316 \end_layout
5317
5318 \begin_layout Section
5319 Introduction
5320 \end_layout
5321
5322 \begin_layout Standard
5323 The `\SpecialChar LyX
5324  server' allows other programs to talk to \SpecialChar LyX
5325 , invoke \SpecialChar LyX
5326  commands, and retrieve
5327  information about the \SpecialChar LyX
5328  internal state.
5329  This is only intended for advanced users, but they should find it useful.
5330  It is by writing to the \SpecialChar LyX
5331  server, for example, that bibliography managers,
5332  such as JabRef, are able to 
5333 \begin_inset Quotes eld
5334 \end_inset
5335
5336 push
5337 \begin_inset Quotes erd
5338 \end_inset
5339
5340  citations to \SpecialChar LyX
5341 .
5342 \end_layout
5343
5344 \begin_layout Section
5345 Starting the \SpecialChar LyX
5346  Server
5347 \end_layout
5348
5349 \begin_layout Standard
5350 The \SpecialChar LyX
5351  server works through the use of a pair of named pipes.
5352  These are usually located in 
5353 \begin_inset Flex Code
5354 status collapsed
5355
5356 \begin_layout Plain Layout
5357 UserDir
5358 \end_layout
5359
5360 \end_inset
5361
5362 , (except on Windows, where 
5363 \emph on
5364 local
5365 \emph default
5366  named pipes are special objects located in 
5367 \begin_inset Flex Code
5368 status collapsed
5369
5370 \begin_layout Plain Layout
5371
5372 \backslash
5373
5374 \backslash
5375 .
5376 \backslash
5377 pipe
5378 \end_layout
5379
5380 \end_inset
5381
5382 ) and have the names 
5383 \begin_inset Quotes eld
5384 \end_inset
5385
5386
5387 \begin_inset Flex Code
5388 status collapsed
5389
5390 \begin_layout Plain Layout
5391 lyxpipe.in
5392 \end_layout
5393
5394 \end_inset
5395
5396
5397 \begin_inset Quotes erd
5398 \end_inset
5399
5400  and 
5401 \begin_inset Quotes eld
5402 \end_inset
5403
5404
5405 \begin_inset Flex Code
5406 status collapsed
5407
5408 \begin_layout Plain Layout
5409 lyxpipe.out
5410 \end_layout
5411
5412 \end_inset
5413
5414
5415 \begin_inset Quotes erd
5416 \end_inset
5417
5418 .
5419  External programs write into 
5420 \begin_inset Flex Code
5421 status collapsed
5422
5423 \begin_layout Plain Layout
5424 lyxpipe.in
5425 \end_layout
5426
5427 \end_inset
5428
5429  and read back data from 
5430 \begin_inset Flex Code
5431 status collapsed
5432
5433 \begin_layout Plain Layout
5434 lyxpipe.out
5435 \end_layout
5436
5437 \end_inset
5438
5439 .
5440  The stem of the pipe names can be defined in the 
5441 \begin_inset Flex Noun
5442 status collapsed
5443
5444 \begin_layout Plain Layout
5445 Tools\SpecialChar menuseparator
5446 Preferences
5447 \end_layout
5448
5449 \end_inset
5450
5451  dialog, for example 
5452 \begin_inset Flex Code
5453 status collapsed
5454
5455 \begin_layout Plain Layout
5456 "/home/myhome/lyxpipe"
5457 \end_layout
5458
5459 \end_inset
5460
5461 , or 
5462 \begin_inset Flex Code
5463 status collapsed
5464
5465 \begin_layout Plain Layout
5466 "
5467 \backslash
5468
5469 \backslash
5470 .
5471 \backslash
5472 pipe
5473 \backslash
5474 lyxpipe"
5475 \end_layout
5476
5477 \end_inset
5478
5479  on Windows (where any working path instead of lyxpipe can be used, for
5480  example 
5481 \begin_inset Flex Code
5482 status collapsed
5483
5484 \begin_layout Plain Layout
5485 "
5486 \backslash
5487
5488 \backslash
5489 .
5490 \backslash
5491 pipe
5492 \backslash
5493 my
5494 \backslash
5495 lyx
5496 \backslash
5497 pipe"
5498 \end_layout
5499
5500 \end_inset
5501
5502  would also work).
5503  You 
5504 \emph on
5505 must
5506 \emph default
5507  configure this manually in order for the server to start.
5508 \end_layout
5509
5510 \begin_layout Standard
5511 \SpecialChar LyX
5512  will add the '
5513 \begin_inset Flex Code
5514 status collapsed
5515
5516 \begin_layout Plain Layout
5517 .in
5518 \end_layout
5519
5520 \end_inset
5521
5522 ' and '
5523 \begin_inset Flex Code
5524 status collapsed
5525
5526 \begin_layout Plain Layout
5527 .out
5528 \end_layout
5529
5530 \end_inset
5531
5532 ' to create the pipes.
5533  If one of the pipes already exists, \SpecialChar LyX
5534  will assume that another \SpecialChar LyX
5535  process
5536  is already running and will not start the server.
5537  On POSIX (Unix like) systems, if for some other reason, an unused 
5538 \begin_inset Quotes eld
5539 \end_inset
5540
5541 stale
5542 \begin_inset Quotes erd
5543 \end_inset
5544
5545  pipe is left in existence when \SpecialChar LyX
5546  closes, then \SpecialChar LyX
5547  will try to delete it.
5548  If this fails for some reason, you will need to delete the pipes manually
5549  and then restart \SpecialChar LyX
5550 .
5551  On Windows, pipes are deleted by the OS on program termination or crash,
5552  so 
5553 \begin_inset Quotes eld
5554 \end_inset
5555
5556 stale
5557 \begin_inset Quotes erd
5558 \end_inset
5559
5560  pipes should not be possible.
5561 \end_layout
5562
5563 \begin_layout Standard
5564 To have several \SpecialChar LyX
5565  processes with servers at the same time, you have to use
5566  different configurations, perhaps by using separate user directories, each
5567  with its own 
5568 \begin_inset Flex Code
5569 status collapsed
5570
5571 \begin_layout Plain Layout
5572 preferences
5573 \end_layout
5574
5575 \end_inset
5576
5577  file, for each process.
5578 \end_layout
5579
5580 \begin_layout Standard
5581 If you are developing a client program, you might find it useful to enable
5582  debugging information from the \SpecialChar LyX
5583  server.
5584  Do this by starting \SpecialChar LyX
5585  as 
5586 \begin_inset Flex Code
5587 status collapsed
5588
5589 \begin_layout Plain Layout
5590 lyx -dbg lyxserver
5591 \end_layout
5592
5593 \end_inset
5594
5595 .
5596 \end_layout
5597
5598 \begin_layout Standard
5599 You can find a complete example client written in C++ in the source distribution
5600  as 
5601 \begin_inset Flex Code
5602 status collapsed
5603
5604 \begin_layout Plain Layout
5605 development/lyxserver/server_monitor.cpp
5606 \end_layout
5607
5608 \end_inset
5609
5610 .
5611 \end_layout
5612
5613 \begin_layout Standard
5614 Another useful tool is the command-line based client found in 
5615 \begin_inset Flex Code
5616 status collapsed
5617
5618 \begin_layout Plain Layout
5619 src/client/lyxclient
5620 \end_layout
5621
5622 \end_inset
5623
5624 .
5625 \end_layout
5626
5627 \begin_layout Section
5628 Normal communication
5629 \end_layout
5630
5631 \begin_layout Standard
5632 To issue a \SpecialChar LyX
5633  call, the client writes a line of ASCII text into the input
5634  pipe.
5635  This line has the following format:
5636 \end_layout
5637
5638 \begin_layout Quote
5639 LYXCMD:
5640 \emph on
5641 clientname
5642 \emph default
5643 :
5644 \emph on
5645 function
5646 \emph default
5647 :
5648 \emph on
5649 argument
5650 \end_layout
5651
5652 \begin_layout Description
5653 clientname is a name that the client can choose arbitrarily.
5654  Its only use is that \SpecialChar LyX
5655  will echo it if it sends an answer—so a client can
5656  dispatch results from different requesters.
5657 \end_layout
5658
5659 \begin_layout Description
5660 function is the function you want \SpecialChar LyX
5661  to perform.
5662  It is the same as the commands you'd use in the minibuffer.
5663 \end_layout
5664
5665 \begin_layout Description
5666 argument is an optional argument which is meaningful only to some functions
5667  (for instance, the 
5668 \begin_inset Quotes eld
5669 \end_inset
5670
5671 self-insert
5672 \begin_inset Quotes erd
5673 \end_inset
5674
5675  LFUN will insert the argument as text at the cursor position).
5676 \end_layout
5677
5678 \begin_layout Standard
5679 The answer from \SpecialChar LyX
5680  will arrive in the output pipe and be of the form
5681 \end_layout
5682
5683 \begin_layout Quote
5684 INFO:
5685 \emph on
5686 clientname
5687 \emph default
5688 :
5689 \emph on
5690 function
5691 \emph default
5692 :
5693 \emph on
5694 data
5695 \end_layout
5696
5697 \begin_layout Standard
5698 where 
5699 \emph on
5700 clientname
5701 \emph default
5702  and 
5703 \emph on
5704 function
5705 \emph default
5706  are just echoed from the command request, while 
5707 \emph on
5708 data
5709 \emph default
5710  is more or less useful information filled according to how the command
5711  execution worked out.
5712  Some commands, such as 
5713 \begin_inset Quotes eld
5714 \end_inset
5715
5716 font-state
5717 \begin_inset Quotes erd
5718 \end_inset
5719
5720 , will return information about the internal state of \SpecialChar LyX
5721 , while other will
5722  return an empty data-response.
5723  This means that the command execution went fine.
5724 \end_layout
5725
5726 \begin_layout Standard
5727 In case of errors, the response from \SpecialChar LyX
5728  will have this form
5729 \end_layout
5730
5731 \begin_layout Quote
5732 ERROR:
5733 \emph on
5734 clientname
5735 \emph default
5736 :
5737 \emph on
5738 function
5739 \emph default
5740 :
5741 \emph on
5742 error message
5743 \end_layout
5744
5745 \begin_layout Standard
5746 where the 
5747 \emph on
5748 error message
5749 \emph default
5750  should contain an explanation of why the command failed.
5751 \end_layout
5752
5753 \begin_layout Standard
5754 Examples:
5755 \end_layout
5756
5757 \begin_layout LyX-Code
5758 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
5759 \begin_inset Newline newline
5760 \end_inset
5761
5762 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
5763 \begin_inset Newline newline
5764 \end_inset
5765
5766 read a <~/.lyxpipe.out
5767 \begin_inset Newline newline
5768 \end_inset
5769
5770 echo $a
5771 \end_layout
5772
5773 \begin_layout Subsection
5774 AppleScript (Mac OS X)
5775 \end_layout
5776
5777 \begin_layout Standard
5778 Since \SpecialChar LyX
5779  2.1, \SpecialChar LyX
5780  supports basic interactions with AppleScript for normal communicatio
5781 n through the command run.
5782  This command takes a direct argument (the 
5783 \series bold
5784 function
5785 \series default
5786  to perform) and an optional argument.
5787  It either returns the output of the function or triggers an error with
5788  the error message and code.
5789 \end_layout
5790
5791 \begin_layout Standard
5792 Example:
5793 \end_layout
5794
5795 \begin_layout LyX-Code
5796 tell application "\SpecialChar LyX
5797 "
5798 \end_layout
5799
5800 \begin_layout LyX-Code
5801   try
5802 \end_layout
5803
5804 \begin_layout LyX-Code
5805     -- Stores the current file name into f
5806 \end_layout
5807
5808 \begin_layout LyX-Code
5809     set f to (run "server-get-filename" with argument "")
5810 \end_layout
5811
5812 \begin_layout LyX-Code
5813     on error the error_message number the error_number
5814 \end_layout
5815
5816 \begin_layout LyX-Code
5817       display dialog "Error: " & the error_number & ".
5818  " ¬
5819 \end_layout
5820
5821 \begin_layout LyX-Code
5822               & the error_message buttons {"OK"} default button 1
5823 \end_layout
5824
5825 \begin_layout LyX-Code
5826   end try
5827 \end_layout
5828
5829 \begin_layout LyX-Code
5830 end tell
5831 \end_layout
5832
5833 \begin_layout Section
5834 Notification
5835 \end_layout
5836
5837 \begin_layout Standard
5838 \SpecialChar LyX
5839  can notify clients of events going on asynchronously.
5840  Currently it will only do this if the user binds a key sequence with the
5841  function 
5842 \begin_inset Quotes eld
5843 \end_inset
5844
5845 notify
5846 \begin_inset Quotes erd
5847 \end_inset
5848
5849 .
5850  The format of the string \SpecialChar LyX
5851  sends is as follows:
5852 \end_layout
5853
5854 \begin_layout Quote
5855 \begin_inset Flex Code
5856 status collapsed
5857
5858 \begin_layout Plain Layout
5859 NOTIFY:
5860 \end_layout
5861
5862 \end_inset
5863
5864
5865 \emph on
5866 key-sequence
5867 \end_layout
5868
5869 \begin_layout Standard
5870 where 
5871 \emph on
5872 key-sequence
5873 \emph default
5874  is the printed representation of the key sequence that was actually typed
5875  by the user.
5876 \end_layout
5877
5878 \begin_layout Standard
5879 This mechanism can be used to extend \SpecialChar LyX
5880 's command set and implement macros.
5881  Bind some key sequence to 
5882 \begin_inset Quotes eld
5883 \end_inset
5884
5885 notify
5886 \begin_inset Quotes erd
5887 \end_inset
5888
5889 .
5890  Then start a client that listens on the output pipe, dispatches the command
5891  according to the sequence, and starts a function that may use \SpecialChar LyX
5892  calls and
5893  \SpecialChar LyX
5894  requests to issue a command or a series of commands to \SpecialChar LyX
5895 .
5896 \end_layout
5897
5898 \begin_layout Section
5899 The simple \SpecialChar LyX
5900  Server Protocol
5901 \end_layout
5902
5903 \begin_layout Standard
5904 \SpecialChar LyX
5905  implements a simple protocol that can be used for session management.
5906  All messages are of the form
5907 \end_layout
5908
5909 \begin_layout Quote
5910 LYXSRV:
5911 \emph on
5912 clientname
5913 \emph default
5914 :
5915 \emph on
5916 protocol message
5917 \end_layout
5918
5919 \begin_layout Standard
5920 where 
5921 \emph on
5922 protocol message
5923 \emph default
5924  can be 
5925 \begin_inset Quotes eld
5926 \end_inset
5927
5928 hello
5929 \begin_inset Quotes erd
5930 \end_inset
5931
5932  or 
5933 \begin_inset Quotes eld
5934 \end_inset
5935
5936 bye
5937 \begin_inset Quotes erd
5938 \end_inset
5939
5940 .
5941  If 
5942 \begin_inset Quotes eld
5943 \end_inset
5944
5945 hello
5946 \begin_inset Quotes erd
5947 \end_inset
5948
5949  is received from a client, \SpecialChar LyX
5950  will report back to inform the client that
5951  it's listening to it's messages, while 
5952 \begin_inset Quotes eld
5953 \end_inset
5954
5955 bye
5956 \begin_inset Quotes erd
5957 \end_inset
5958
5959  sent from \SpecialChar LyX
5960  will inform clients that \SpecialChar LyX
5961  is closing.
5962 \end_layout
5963
5964 \begin_layout Section
5965 Reverse DVI/PDF search
5966 \end_layout
5967
5968 \begin_layout Standard
5969 Some DVI/PDF viewers
5970 \begin_inset Foot
5971 status collapsed
5972
5973 \begin_layout Plain Layout
5974 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
5975  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
5976 \end_layout
5977
5978 \end_inset
5979
5980  provide 
5981 \emph on
5982 reverse search
5983 \emph default
5984  facility (also called 
5985 \emph on
5986 inverse search
5987 \emph default
5988 ).
5989  This means that you can tell \SpecialChar LyX
5990  to put the cursor to a specific line in the
5991  document by clicking at the respective position in the DVI/PDF output.
5992  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
5993 .
5994  This is done via the \SpecialChar LyX
5995  server either by using the named pipe (
5996 \emph on
5997 lyxpipe
5998 \emph default
5999 ), or the UNIX domain socket (
6000 \emph on
6001 lyxsocket
6002 \emph default
6003 ) that \SpecialChar LyX
6004  creates in its temporary directory (this is the way the 
6005 \begin_inset Flex Code
6006 status collapsed
6007
6008 \begin_layout Plain Layout
6009 lyxclient
6010 \end_layout
6011
6012 \end_inset
6013
6014  program communicates with \SpecialChar LyX
6015 ).
6016  In some cases, you need a helper script that mediates between the viewer
6017  and \SpecialChar LyX
6018 , in others, the viewer can communicate with \SpecialChar LyX
6019  directly.
6020  This depends on the selected viewer and on your operating system.
6021  The same applies to the way viewers need to be configured and the way the
6022  reverse search is actually performed.
6023  In what follows, we will thus describe how to setup reverse search for
6024  specific viewers.
6025  Before we turn to this, though, we will explain what needs to be done generally
6026  to enable reverse search in the DVI/PDF output.
6027 \end_layout
6028
6029 \begin_layout Subsection
6030 Automatic setup
6031 \begin_inset CommandInset label
6032 LatexCommand label
6033 name "subsec:rev-search"
6034
6035 \end_inset
6036
6037
6038 \end_layout
6039
6040 \begin_layout Standard
6041 In most cases \SpecialChar LyX
6042  will do the work for you by enabling the option 
6043 \begin_inset Flex Noun
6044 status collapsed
6045
6046 \begin_layout Plain Layout
6047 Synchronize with Output
6048 \end_layout
6049
6050 \end_inset
6051
6052  in the menu 
6053 \begin_inset Flex Noun
6054 status collapsed
6055
6056 \begin_layout Plain Layout
6057 Document\SpecialChar menuseparator
6058 Settings\SpecialChar menuseparator
6059 Output
6060 \end_layout
6061
6062 \end_inset
6063
6064 .
6065  In such a case \SpecialChar LyX
6066  will automatically insert the necessary Sync\SpecialChar TeX
6067  macro (for
6068  PDF) or load the srcltx package (for DVI) respectively.
6069  This option can be easily reached also on 
6070 \begin_inset Flex Code
6071 status collapsed
6072
6073 \begin_layout Plain Layout
6074 View/Update
6075 \end_layout
6076
6077 \end_inset
6078
6079  Toolbar.
6080 \end_layout
6081
6082 \begin_layout Standard
6083 If you need a different setting, you can select or input a custom macro
6084  from the drop down box just below 
6085 \begin_inset Flex Noun
6086 status collapsed
6087
6088 \begin_layout Plain Layout
6089 Document\SpecialChar menuseparator
6090 Settings\SpecialChar menuseparator
6091 Output\SpecialChar menuseparator
6092 Synchronize with Output
6093 \end_layout
6094
6095 \end_inset
6096
6097 .
6098 \end_layout
6099
6100 \begin_layout Standard
6101 Note that the method 
6102 \begin_inset Flex Code
6103 status collapsed
6104
6105 \begin_layout Plain Layout
6106
6107 \backslash
6108 synctex=1
6109 \end_layout
6110
6111 \end_inset
6112
6113  enables gzip compression.
6114  If your viewer does not support it, you should instead use 
6115 \begin_inset Flex Code
6116 status collapsed
6117
6118 \begin_layout Plain Layout
6119
6120 \backslash
6121 synctex=-1
6122 \end_layout
6123
6124 \end_inset
6125
6126 .
6127 \end_layout
6128
6129 \begin_layout Standard
6130 Please also note that including the 
6131 \begin_inset Flex Code
6132 status collapsed
6133
6134 \begin_layout Plain Layout
6135 srcltx
6136 \end_layout
6137
6138 \end_inset
6139
6140  package or 
6141 \begin_inset Flex Code
6142 status collapsed
6143
6144 \begin_layout Plain Layout
6145 src-specials
6146 \end_layout
6147
6148 \end_inset
6149
6150  sometimes has an undesired impact on the typesetting.
6151  Thus, you should switch output synchronization off for the final typesetting
6152  if you use the 
6153 \begin_inset Flex Code
6154 status collapsed
6155
6156 \begin_layout Plain Layout
6157 srcltx
6158 \end_layout
6159
6160 \end_inset
6161
6162  package or 
6163 \begin_inset Flex Code
6164 status collapsed
6165
6166 \begin_layout Plain Layout
6167 src-specials
6168 \end_layout
6169
6170 \end_inset
6171
6172 .
6173  
6174 \end_layout
6175
6176 \begin_layout Standard
6177 In case you need some more special settings that are not covered by the
6178  automatic settings, read the next section about how to set up output synchroniz
6179 ation manually.
6180  If the automatic setup suits your needs, you can readily jump to section
6181 \begin_inset space ~
6182 \end_inset
6183
6184
6185 \begin_inset CommandInset ref
6186 LatexCommand ref
6187 reference "subsec:configuring-viewers"
6188
6189 \end_inset
6190
6191 , where the necessary configuration steps in your viewer – needed both with
6192  the automatic and the manual setup – are described.
6193 \end_layout
6194
6195 \begin_layout Subsection
6196 Manual setup
6197 \end_layout
6198
6199 \begin_layout Standard
6200 \SpecialChar LaTeX
6201  provides several different methods for reverse search.
6202  Some are built-in in the 
6203 \begin_inset Flex Code
6204 status collapsed
6205
6206 \begin_layout Plain Layout
6207 latex/pdflatex
6208 \end_layout
6209
6210 \end_inset
6211
6212  program, some are provided by external packages.
6213  Your choice depends on whether your \SpecialChar LaTeX
6214  distribution already provides a given
6215  method (the built-in methods are rather new) and whether your viewer can
6216  cope with it.
6217  The available methods are described in the following.
6218 \end_layout
6219
6220 \begin_layout Subsubsection*
6221 Built-in DVI-search via src-specials (DVI only) 
6222 \end_layout
6223
6224 \begin_layout Standard
6225 This method provides the DVI file with the necessary information for reverse
6226  search.
6227  It is available in \SpecialChar LaTeX
6228  since quite some time (any somewhat recent \SpecialChar LaTeX
6229  distribution
6230  should include it), and it works reliably.
6231  To enable it, change the 
6232 \begin_inset Flex Noun
6233 status collapsed
6234
6235 \begin_layout Plain Layout
6236 La
6237 \family sans
6238 TeX
6239 \family default
6240  (plain)->DVI
6241 \end_layout
6242
6243 \end_inset
6244
6245  or 
6246 \begin_inset Flex Noun
6247 status collapsed
6248
6249 \begin_layout Plain Layout
6250 La
6251 \family sans
6252 TeX
6253 \family default
6254  (plain)->DraftDVI
6255 \end_layout
6256
6257 \end_inset
6258
6259  converter in 
6260 \begin_inset Flex Noun
6261 status collapsed
6262
6263 \begin_layout Plain Layout
6264 Preferences\SpecialChar menuseparator
6265 File Handling\SpecialChar menuseparator
6266 Converters
6267 \end_layout
6268
6269 \end_inset
6270
6271  to 
6272 \begin_inset Flex Code
6273 status collapsed
6274
6275 \begin_layout Plain Layout
6276 latex -src-specials $$i
6277 \end_layout
6278
6279 \end_inset
6280
6281 .
6282  If this doesn't work, check if your \SpecialChar TeX
6283  engine needs different options (the
6284  syntax might differ in some distributions).
6285 \end_layout
6286
6287 \begin_layout Subsubsection*
6288 External Packages (PDFSync and scrltx) 
6289 \end_layout
6290
6291 \begin_layout Standard
6292 The packages 
6293 \emph on
6294 pdfsync
6295 \emph default
6296  and 
6297 \emph on
6298 scrltx
6299 \emph default
6300  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6301  respectively.
6302  In order to enable it, load the packages in the \SpecialChar LyX
6303  preamble: 
6304 \end_layout
6305
6306 \begin_layout Itemize
6307 \begin_inset Flex Code
6308 status collapsed
6309
6310 \begin_layout Plain Layout
6311
6312 \backslash
6313 usepackage{pdfsync}
6314 \end_layout
6315
6316 \end_inset
6317
6318  for reverse PDF search,
6319 \end_layout
6320
6321 \begin_layout Itemize
6322 \begin_inset Flex Code
6323 status collapsed
6324
6325 \begin_layout Plain Layout
6326
6327 \backslash
6328 usepackage[active]{srcltx}
6329 \end_layout
6330
6331 \end_inset
6332
6333  for reverse DVI search.
6334 \end_layout
6335
6336 \begin_layout Standard
6337 If you want to be able to perform both DVI and PDF reverse searches, you
6338  can also insert in the preamble the following lines
6339 \end_layout
6340
6341 \begin_layout LyX-Code
6342
6343 \backslash
6344 usepackage{ifpdf}
6345 \begin_inset Newline newline
6346 \end_inset
6347
6348
6349 \backslash
6350 ifpdf
6351 \begin_inset Newline newline
6352 \end_inset
6353
6354   
6355 \backslash
6356 usepackage{pdfsync}
6357 \begin_inset Newline newline
6358 \end_inset
6359
6360
6361 \backslash
6362 else
6363 \begin_inset Newline newline
6364 \end_inset
6365
6366   
6367 \backslash
6368 usepackage[active]{srcltx}
6369 \begin_inset Newline newline
6370 \end_inset
6371
6372
6373 \backslash
6374 fi
6375 \end_layout
6376
6377 \begin_layout Standard
6378 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6379  right package will be used.
6380 \end_layout
6381
6382 \begin_layout Standard
6383 Note that PDFSync might affect the output layout of your document.
6384  It is therefore advised to disable PDFsync for final documents.
6385 \end_layout
6386
6387 \begin_layout Subsubsection*
6388 Built-in reverse search via Sync\SpecialChar TeX
6389  (DVI and PDF) 
6390 \end_layout
6391
6392 \begin_layout Standard
6393 Recent versions of 
6394 \begin_inset Flex Code
6395 status collapsed
6396
6397 \begin_layout Plain Layout
6398 (pdf)latex
6399 \end_layout
6400
6401 \end_inset
6402
6403  have built-in support for both PDF and DVI reverse search.
6404  This so-called 
6405 \emph on
6406 Sync\SpecialChar TeX
6407
6408 \emph default
6409  facility is basically the result of the integration of the PDFSync package
6410  to the pdftex program and its merge with the 
6411 \emph on
6412 scr-specials
6413 \emph default
6414  approach.
6415  You need at least \SpecialChar TeX
6416 Live 2008 or a recent Mik\SpecialChar TeX
6417  distribution in order to use
6418  it.
6419 \begin_inset Foot
6420 status collapsed
6421
6422 \begin_layout Plain Layout
6423 For some reason, Mik\SpecialChar TeX
6424  does not understand/obey the command \SpecialChar LyX
6425  inserts into
6426  the preamble when you check the "Enable Forward/Reverse Search" button
6427  in the toolbar and does not generate the necessary info.
6428 \end_layout
6429
6430 \begin_layout Plain Layout
6431 The generation of the required info can be forced by changing the converter
6432  "\SpecialChar LaTeX
6433  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
6434  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
6435  the -synctex=1 switch).
6436 \end_layout
6437
6438 \end_inset
6439
6440  Also note that only a few PDF viewers (Okular and Qpdfview on Unix, Skim
6441  on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
6442  support.
6443 \end_layout
6444
6445 \begin_layout Standard
6446 To enable Sync\SpecialChar TeX
6447  for DVI output, change the 
6448 \begin_inset Flex Noun
6449 status collapsed
6450
6451 \begin_layout Plain Layout
6452 La
6453 \family sans
6454 TeX
6455 \family default
6456  (plain) -> DVI
6457 \end_layout
6458
6459 \end_inset
6460
6461  or 
6462 \begin_inset Flex Noun
6463 status collapsed
6464
6465 \begin_layout Plain Layout
6466 La
6467 \family sans
6468 TeX
6469 \family default
6470  (plain) -> DraftDVI
6471 \end_layout
6472
6473 \end_inset
6474
6475  converter in 
6476 \begin_inset Flex Noun
6477 status collapsed
6478
6479 \begin_layout Plain Layout
6480 Preferences\SpecialChar menuseparator
6481 File Handling\SpecialChar menuseparator
6482 Converters
6483 \end_layout
6484
6485 \end_inset
6486
6487  to 
6488 \begin_inset Flex Code
6489 status collapsed
6490
6491 \begin_layout Plain Layout
6492 latex -synctex=1 $$i
6493 \end_layout
6494
6495 \end_inset
6496
6497 , and for PDF output, change the 
6498 \begin_inset Flex Noun
6499 status collapsed
6500
6501 \begin_layout Plain Layout
6502 La
6503 \family sans
6504 TeX
6505 \family default
6506  (pdflatex) -> PDF (pdflatex)
6507 \end_layout
6508
6509 \end_inset
6510
6511  or converter to 
6512 \begin_inset Flex Code
6513 status collapsed
6514
6515 \begin_layout Plain Layout
6516 pdflatex -synctex=1 $$i
6517 \end_layout
6518
6519 \end_inset
6520
6521 .
6522  Check the documentation of your viewer whether the viewer needs to be configure
6523 d for the use with Sync\SpecialChar TeX
6524 .
6525 \begin_inset Foot
6526 status collapsed
6527
6528 \begin_layout Plain Layout
6529 Note that the option 
6530 \begin_inset Flex Code
6531 status collapsed
6532
6533 \begin_layout Plain Layout
6534 -synctex=1
6535 \end_layout
6536
6537 \end_inset
6538
6539  option enables gzip compression.
6540  If your viewer does not support it, you should instead use 
6541 \begin_inset Flex Code
6542 status collapsed
6543
6544 \begin_layout Plain Layout
6545 -synctex=-1
6546 \end_layout
6547
6548 \end_inset
6549
6550 .
6551 \end_layout
6552
6553 \end_inset
6554
6555
6556 \end_layout
6557
6558 \begin_layout Subsection
6559 Configuring and using specific viewers
6560 \begin_inset CommandInset label
6561 LatexCommand label
6562 name "subsec:configuring-viewers"
6563
6564 \end_inset
6565
6566
6567 \end_layout
6568
6569 \begin_layout Subsubsection*
6570 Xdvi (all platforms)
6571 \end_layout
6572
6573 \begin_layout Standard
6574 If you use 
6575 \begin_inset Flex Code
6576 status collapsed
6577
6578 \begin_layout Plain Layout
6579 xdvi
6580 \end_layout
6581
6582 \end_inset
6583
6584 , you don't need to do anything else for performing a reverse DVI search,
6585  as \SpecialChar LyX
6586  already provides the necessary hooks for automatically using the 
6587 \begin_inset Flex Code
6588 status collapsed
6589
6590 \begin_layout Plain Layout
6591 lyxclient
6592 \end_layout
6593
6594 \end_inset
6595
6596  program.
6597  Just setup your document as described above (reverse search is triggered
6598  by Ctrl-click or Alt-click on Mac OSX, respectively).
6599 \end_layout
6600
6601 \begin_layout Standard
6602 However, if for whatever reason you want to use the named pipe instead of
6603  the socket for communicating with \SpecialChar LyX
6604 , simply change the DVI viewer in 
6605 \begin_inset Flex Noun
6606 status collapsed
6607
6608 \begin_layout Plain Layout
6609 Preferences\SpecialChar menuseparator
6610 File Handling\SpecialChar menuseparator
6611 File formats
6612 \end_layout
6613
6614 \end_inset
6615
6616  to
6617 \begin_inset Foot
6618 status collapsed
6619
6620 \begin_layout Plain Layout
6621 On Mac OSX you have to use 
6622 \begin_inset Flex Code
6623 status collapsed
6624
6625 \begin_layout Plain Layout
6626 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
6627 \end_layout
6628
6629 \end_inset
6630
6631
6632 \end_layout
6633
6634 \end_inset
6635
6636  
6637 \begin_inset Flex Code
6638 status collapsed
6639
6640 \begin_layout Plain Layout
6641 xdvi -editor "lyxeditor.sh %f %l"
6642 \end_layout
6643
6644 \end_inset
6645
6646 , where 
6647 \begin_inset Flex Code
6648 status collapsed
6649
6650 \begin_layout Plain Layout
6651 lyxeditor.sh
6652 \end_layout
6653
6654 \end_inset
6655
6656  is a suitable script.
6657  For example, a minimal shell script is the following one:
6658 \end_layout
6659
6660 \begin_layout LyX-Code
6661 #!/bin/sh
6662 \begin_inset Newline newline
6663 \end_inset
6664
6665 LYXPIPE="/path/to/lyxpipe"
6666 \begin_inset Newline newline
6667 \end_inset
6668
6669 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6670 \begin_inset Newline newline
6671 \end_inset
6672
6673 echo "$COMMAND" > "${LYXPIPE}".in || exit
6674 \begin_inset Newline newline
6675 \end_inset
6676
6677 read TMP < "${LYXPIPE}".out || exit
6678 \end_layout
6679
6680 \begin_layout Standard
6681 where 
6682 \begin_inset Flex Code
6683 status collapsed
6684
6685 \begin_layout Plain Layout
6686 /path/to/lyxpipe
6687 \end_layout
6688
6689 \end_inset
6690
6691  is the Ly
6692 \begin_inset ERT
6693 status collapsed
6694
6695 \begin_layout Plain Layout
6696
6697 {}
6698 \end_layout
6699
6700 \end_inset
6701
6702 XServer pipe path specified in 
6703 \begin_inset Flex Noun
6704 status collapsed
6705
6706 \begin_layout Plain Layout
6707 Preferences\SpecialChar menuseparator
6708 Paths
6709 \end_layout
6710
6711 \end_inset
6712
6713 .
6714 \begin_inset Foot
6715 status collapsed
6716
6717 \begin_layout Plain Layout
6718 In the 
6719 \begin_inset Flex Code
6720 status collapsed
6721
6722 \begin_layout Plain Layout
6723 development/tools
6724 \end_layout
6725
6726 \end_inset
6727
6728  folder of a source distribution you can find a 
6729 \begin_inset Flex Code
6730 status collapsed
6731
6732 \begin_layout Plain Layout
6733 lyxeditor
6734 \end_layout
6735
6736 \end_inset
6737
6738  script which is able to locate the 
6739 \emph on
6740 lyxpipe
6741 \emph default
6742  based on your preferences.
6743 \end_layout
6744
6745 \end_inset
6746
6747
6748 \end_layout
6749
6750 \begin_layout Subsubsection*
6751 MacDviX (Mac OSX)
6752 \end_layout
6753
6754 \begin_layout Standard
6755 At the end of 
6756 \begin_inset Flex Code
6757 status collapsed
6758
6759 \begin_layout Plain Layout
6760 /Applications/MacDviX_Folder/calleditor.script
6761 \end_layout
6762
6763 \end_inset
6764
6765 , add the following lines:
6766 \end_layout
6767
6768 \begin_layout LyX-Code
6769 /Applications/Ly
6770 \begin_inset ERT
6771 status collapsed
6772
6773 \begin_layout Plain Layout
6774
6775 {}
6776 \end_layout
6777
6778 \end_inset
6779
6780 X.app/Contents/MacOS/lyxeditor "$2" $1
6781 \begin_inset Newline newline
6782 \end_inset
6783
6784 exit 1
6785 \end_layout
6786
6787 \begin_layout Standard
6788 Modify the lines accordingly if you install \SpecialChar LyX
6789  somewhere else than in the
6790  Applications folder.
6791 \end_layout
6792
6793 \begin_layout Standard
6794 Reverse search is triggered by Alt-click (OPTION-click).
6795 \end_layout
6796
6797 \begin_layout Subsubsection*
6798 Skim (Mac OSX)
6799 \end_layout
6800
6801 \begin_layout Standard
6802 Enter 
6803 \begin_inset Flex Code
6804 status collapsed
6805
6806 \begin_layout Plain Layout
6807 open -a Skim.app $$i
6808 \end_layout
6809
6810 \end_inset
6811
6812  to the viewer setting in 
6813 \begin_inset Flex Noun
6814 status collapsed
6815
6816 \begin_layout Plain Layout
6817 Preferences\SpecialChar menuseparator
6818 File Handling\SpecialChar menuseparator
6819 File formats\SpecialChar menuseparator
6820 PDF (pdflatex)
6821 \end_layout
6822
6823 \end_inset
6824
6825 , and then in 
6826 \begin_inset Flex Noun
6827 status collapsed
6828
6829 \begin_layout Plain Layout
6830 Skim\SpecialChar menuseparator
6831 Preferences\SpecialChar menuseparator
6832 Sync
6833 \end_layout
6834
6835 \end_inset
6836
6837  choose 
6838 \begin_inset Flex Noun
6839 status collapsed
6840
6841 \begin_layout Plain Layout
6842 custom
6843 \end_layout
6844
6845 \end_inset
6846
6847  preset and enter command 
6848 \begin_inset Flex Noun
6849 status collapsed
6850
6851 \begin_layout Plain Layout
6852 /Applications/\SpecialChar LyX
6853 .app/Contents/MacOS/lyxeditor
6854 \end_layout
6855
6856 \end_inset
6857
6858 .
6859 \end_layout
6860
6861 \begin_layout Standard
6862 Reverse search is triggered by COMMAND-SHIFT-click
6863 \end_layout
6864
6865 \begin_layout Subsubsection*
6866 Okular (KDE)
6867 \end_layout
6868
6869 \begin_layout Standard
6870 Go to 
6871 \begin_inset Flex Noun
6872 status collapsed
6873
6874 \begin_layout Plain Layout
6875 Settings\SpecialChar menuseparator
6876 Configure Okular\SpecialChar menuseparator
6877 Editor
6878 \end_layout
6879
6880 \end_inset
6881
6882 , select 
6883 \begin_inset Quotes eld
6884 \end_inset
6885
6886 Custom Text Editor
6887 \begin_inset Quotes erd
6888 \end_inset
6889
6890  and add the command 
6891 \begin_inset Flex Code
6892 status collapsed
6893
6894 \begin_layout Plain Layout
6895 lyxclient -g %f %l
6896 \end_layout
6897
6898 \end_inset
6899
6900 .
6901 \end_layout
6902
6903 \begin_layout Standard
6904 Reverse search is triggered by SHIFT-click.
6905 \end_layout
6906
6907 \begin_layout Subsubsection*
6908 Qpdfview (Unix)
6909 \end_layout
6910
6911 \begin_layout Standard
6912 Qpdfview supports Sync\SpecialChar TeX
6913  since version 0.3.5.
6914  Go to 
6915 \begin_inset Flex Noun
6916 status collapsed
6917
6918 \begin_layout Plain Layout
6919 Edit\SpecialChar menuseparator
6920 Settings\SpecialChar menuseparator
6921 Behavior
6922 \end_layout
6923
6924 \end_inset
6925
6926 , click on the input field of the 
6927 \begin_inset Quotes eld
6928 \end_inset
6929
6930 Source editor
6931 \begin_inset Quotes erd
6932 \end_inset
6933
6934  item and add the command 
6935 \begin_inset Flex Code
6936 status collapsed
6937
6938 \begin_layout Plain Layout
6939 lyxclient -g %1 %2
6940 \end_layout
6941
6942 \end_inset
6943
6944 .
6945 \end_layout
6946
6947 \begin_layout Standard
6948 Reverse search is triggered by double-click.
6949 \end_layout
6950
6951 \begin_layout Subsubsection*
6952 YAP (Windows)
6953 \end_layout
6954
6955 \begin_layout Standard
6956 Launch yap, choose its 
6957 \begin_inset Flex Noun
6958 status collapsed
6959
6960 \begin_layout Plain Layout
6961 View\SpecialChar menuseparator
6962 Options
6963 \end_layout
6964
6965 \end_inset
6966
6967  menu and select the 
6968 \begin_inset Quotes eld
6969 \end_inset
6970
6971 Inverse DVI Search
6972 \begin_inset Quotes erd
6973 \end_inset
6974
6975  tab.
6976  Click on the 
6977 \begin_inset Quotes eld
6978 \end_inset
6979
6980 New\SpecialChar ldots
6981
6982 \begin_inset Quotes erd
6983 \end_inset
6984
6985  button and, in the window that opens, enter 
6986 \begin_inset Quotes eld
6987 \end_inset
6988
6989 \SpecialChar LyX
6990  Editor
6991 \begin_inset Quotes erd
6992 \end_inset
6993
6994  (or any other name you like) in the 
6995 \begin_inset Quotes eld
6996 \end_inset
6997
6998 Name:
6999 \begin_inset Quotes erd
7000 \end_inset
7001
7002  field.
7003  Now click on the button labeled 
7004 \begin_inset Quotes eld
7005 \end_inset
7006
7007 \SpecialChar ldots
7008
7009 \begin_inset Quotes erd
7010 \end_inset
7011
7012  to open a file dialog and navigate to the directory containing the batch
7013  file 
7014 \begin_inset Flex Code
7015 status collapsed
7016
7017 \begin_layout Plain Layout
7018 lyxeditor.bat
7019 \end_layout
7020
7021 \end_inset
7022
7023  (see below).
7024  Select 
7025 \begin_inset Flex Code
7026 status collapsed
7027
7028 \begin_layout Plain Layout
7029 lyxeditor.bat
7030 \end_layout
7031
7032 \end_inset
7033
7034  and then specify the program arguments as 
7035 \begin_inset Flex Code
7036 status collapsed
7037
7038 \begin_layout Plain Layout
7039 %f %l
7040 \end_layout
7041
7042 \end_inset
7043
7044 .
7045  The 
7046 \begin_inset Flex Code
7047 status collapsed
7048
7049 \begin_layout Plain Layout
7050 lyxeditor.bat
7051 \end_layout
7052
7053 \end_inset
7054
7055  wrapper is used for communicating with \SpecialChar LyX
7056  through the 
7057 \emph on
7058 lyxpipe
7059 \emph default
7060  and is as follows:
7061 \end_layout
7062
7063 \begin_layout LyX-Code
7064 @echo off
7065 \begin_inset Newline newline
7066 \end_inset
7067
7068 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7069 \backslash
7070
7071 \backslash
7072 .
7073 \backslash
7074 pipe
7075 \backslash
7076 lyxpipe.in
7077 \begin_inset Newline newline
7078 \end_inset
7079
7080 type 
7081 \backslash
7082
7083 \backslash
7084 .
7085 \backslash
7086 pipe
7087 \backslash
7088 lyxpipe.out
7089 \end_layout
7090
7091 \begin_layout Standard
7092 Make sure that the \SpecialChar LyX
7093 Server pipe path you specified in \SpecialChar LyX
7094  is 
7095 \begin_inset Flex Code
7096 status collapsed
7097
7098 \begin_layout Plain Layout
7099
7100 \backslash
7101
7102 \backslash
7103 .
7104 \backslash
7105 pipe
7106 \backslash
7107 lyxpipe
7108 \end_layout
7109
7110 \end_inset
7111
7112 , otherwise change the 
7113 \begin_inset Flex Code
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117 lyxeditor.bat
7118 \end_layout
7119
7120 \end_inset
7121
7122  wrapper accordingly.
7123 \end_layout
7124
7125 \begin_layout Standard
7126 In yap, reverse search is triggered by double-click.
7127 \end_layout
7128
7129 \begin_layout Subsubsection*
7130 SumatraPDF (Windows)
7131 \end_layout
7132
7133 \begin_layout Standard
7134 In order to use SumatraPDF for inverse search, enter 
7135 \begin_inset Flex Code
7136 status collapsed
7137
7138 \begin_layout Plain Layout
7139 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
7140 \end_layout
7141
7142 \end_inset
7143
7144  in the viewer setting in 
7145 \begin_inset Flex Noun
7146 status collapsed
7147
7148 \begin_layout Plain Layout
7149 Preferences\SpecialChar menuseparator
7150 File Handling\SpecialChar menuseparator
7151 File formats\SpecialChar menuseparator
7152 PDF (pdflatex)
7153 \end_layout
7154
7155 \end_inset
7156
7157 , where 
7158 \begin_inset Flex Code
7159 status collapsed
7160
7161 \begin_layout Plain Layout
7162 lyxeditor.bat
7163 \end_layout
7164
7165 \end_inset
7166
7167  is the previous wrapper.
7168  If SumatraPDF.exe is not in your command PATH, use its full file name.
7169 \end_layout
7170
7171 \begin_layout Standard
7172 Reverse search is triggered by double-click.
7173 \end_layout
7174
7175 \begin_layout Subsubsection*
7176 YAP (Cygwin)
7177 \end_layout
7178
7179 \begin_layout Standard
7180 First of all, make sure that yap is your default DVI viewer in the Windows
7181  environment, then launch it, choose its 
7182 \begin_inset Flex Noun
7183 status collapsed
7184
7185 \begin_layout Plain Layout
7186 View\SpecialChar menuseparator
7187 Options
7188 \end_layout
7189
7190 \end_inset
7191
7192  menu and select the 
7193 \begin_inset Quotes eld
7194 \end_inset
7195
7196 Inverse DVI Search
7197 \begin_inset Quotes erd
7198 \end_inset
7199
7200  tab.
7201  Click on the 
7202 \begin_inset Quotes eld
7203 \end_inset
7204
7205 New\SpecialChar ldots
7206
7207 \begin_inset Quotes erd
7208 \end_inset
7209
7210  button and, in the window that opens, enter 
7211 \begin_inset Quotes eld
7212 \end_inset
7213
7214 \SpecialChar LyX
7215  Editor
7216 \begin_inset Quotes erd
7217 \end_inset
7218
7219  (or any other name you like) in the 
7220 \begin_inset Quotes eld
7221 \end_inset
7222
7223 Name:
7224 \begin_inset Quotes erd
7225 \end_inset
7226
7227  field.
7228  Now click on the button labeled 
7229 \begin_inset Quotes eld
7230 \end_inset
7231
7232 \SpecialChar ldots
7233
7234 \begin_inset Quotes erd
7235 \end_inset
7236
7237  to open a file dialog and navigate to the directory containing the 
7238 \begin_inset Flex Code
7239 status collapsed
7240
7241 \begin_layout Plain Layout
7242 lyxeditor.exe
7243 \end_layout
7244
7245 \end_inset
7246
7247  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7248  executable).
7249  Select 
7250 \begin_inset Flex Code
7251 status collapsed
7252
7253 \begin_layout Plain Layout
7254 lyxeditor.exe
7255 \end_layout
7256
7257 \end_inset
7258
7259  and then specify the program arguments as 
7260 \begin_inset Flex Code
7261 status collapsed
7262
7263 \begin_layout Plain Layout
7264 -g %f %l
7265 \end_layout
7266
7267 \end_inset
7268
7269 .
7270  In this way, you will be using the 
7271 \emph on
7272 lyxsocket
7273 \emph default
7274  for communicating with \SpecialChar LyX
7275 .
7276  If, for whatever reason, you want to use the 
7277 \emph on
7278 lyxpipe
7279 \emph default
7280 , omit the 
7281 \begin_inset Flex Code
7282 status collapsed
7283
7284 \begin_layout Plain Layout
7285 -g
7286 \end_layout
7287
7288 \end_inset
7289
7290  option and be sure to specify the \SpecialChar LyX
7291 Server pipe path in the \SpecialChar LyX
7292  preferences.
7293 \end_layout
7294
7295 \begin_layout Standard
7296 In yap, reverse search is triggered by double-click.
7297 \end_layout
7298
7299 \begin_layout Subsubsection*
7300 SumatraPDF (Cygwin)
7301 \end_layout
7302
7303 \begin_layout Standard
7304 In order to use SumatraPDF for inverse search, enter 
7305 \begin_inset Flex Code
7306 status collapsed
7307
7308 \begin_layout Plain Layout
7309 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7310 \end_layout
7311
7312 \end_inset
7313
7314  in the viewer setting in 
7315 \begin_inset Flex Noun
7316 status collapsed
7317
7318 \begin_layout Plain Layout
7319 Preferences\SpecialChar menuseparator
7320 File Handling\SpecialChar menuseparator
7321 File formats\SpecialChar menuseparator
7322 PDF (pdflatex)
7323 \end_layout
7324
7325 \end_inset
7326
7327 .
7328  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7329  The 
7330 \begin_inset Flex Code
7331 status collapsed
7332
7333 \begin_layout Plain Layout
7334 -g
7335 \end_layout
7336
7337 \end_inset
7338
7339  enables communication via the 
7340 \emph on
7341 lyxsocket
7342 \emph default
7343 .
7344  Again, omit the 
7345 \begin_inset Flex Code
7346 status collapsed
7347
7348 \begin_layout Plain Layout
7349 -g
7350 \end_layout
7351
7352 \end_inset
7353
7354  option if you want to use the 
7355 \emph on
7356 lyxpipe
7357 \emph default
7358 , and be sure to specify the \SpecialChar LyX
7359 Server pipe path in the \SpecialChar LyX
7360  preferences.
7361 \end_layout
7362
7363 \begin_layout Standard
7364 Reverse search is triggered by double-click.
7365 \end_layout
7366
7367 \begin_layout Section
7368 Forward search
7369 \end_layout
7370
7371 \begin_layout Standard
7372 Forward search is, as the name implies, in a sense the 
7373 \begin_inset Quotes eld
7374 \end_inset
7375
7376 opposite
7377 \begin_inset Quotes erd
7378 \end_inset
7379
7380  of reverse search.
7381  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7382 .
7383  If forward search is set up (as described in what follows), you can put
7384  the cursor anywhere in your \SpecialChar LyX
7385  document, and hit 
7386 \begin_inset Flex Noun
7387 status collapsed
7388
7389 \begin_layout Plain Layout
7390 Navigate\SpecialChar menuseparator
7391 Forward search
7392 \end_layout
7393
7394 \end_inset
7395
7396  (or select 
7397 \begin_inset Flex Noun
7398 status collapsed
7399
7400 \begin_layout Plain Layout
7401 Forward search
7402 \end_layout
7403
7404 \end_inset
7405
7406  in the context menu via right mouse click), and then the viewer will jump
7407  to that position as well.
7408  This implies, of course, that your viewer supports this function.
7409 \end_layout
7410
7411 \begin_layout Standard
7412 To make forward search possible, you first need to provide the generated
7413  output PDF/DVI file with additional information about the \SpecialChar TeX
7414  sources.
7415  This can be done via the methods described in the section 
7416 \begin_inset CommandInset ref
7417 LatexCommand ref
7418 reference "subsec:rev-search"
7419
7420 \end_inset
7421
7422 .
7423 \end_layout
7424
7425 \begin_layout Standard
7426 Additionally, you need to configure \SpecialChar LyX
7427  for using your viewers in 
7428 \begin_inset Flex Noun
7429 status collapsed
7430
7431 \begin_layout Plain Layout
7432 Tools\SpecialChar menuseparator
7433 Preferences\SpecialChar menuseparator
7434 Output\SpecialChar menuseparator
7435 General
7436 \end_layout
7437
7438 \end_inset
7439
7440 .
7441  We provide a range of tested configurations for some viewers, which you
7442  can select from the drop down list.
7443  If none of these configurations suits you, you have to find out and enter
7444  a suitable configuration yourself.
7445  The definition syntax uses the following placeholders:
7446 \end_layout
7447
7448 \begin_layout Itemize
7449 \noindent
7450 \begin_inset Flex Code
7451 status collapsed
7452
7453 \begin_layout Plain Layout
7454 $$n
7455 \end_layout
7456
7457 \end_inset
7458
7459 : row number
7460 \end_layout
7461
7462 \begin_layout Itemize
7463 \noindent
7464 \begin_inset Flex Code
7465 status collapsed
7466
7467 \begin_layout Plain Layout
7468 $$t
7469 \end_layout
7470
7471 \end_inset
7472
7473 : name of the (temporary) exported .tex file (without path)
7474 \end_layout
7475
7476 \begin_layout Itemize
7477 \noindent
7478 \begin_inset Flex Code
7479 status collapsed
7480
7481 \begin_layout Plain Layout
7482 $$f
7483 \end_layout
7484
7485 \end_inset
7486
7487 : name of the (temporary) exported .tex file (including path)
7488 \end_layout
7489
7490 \begin_layout Itemize
7491 \noindent
7492 \begin_inset Flex Code
7493 status collapsed
7494
7495 \begin_layout Plain Layout
7496 $$o
7497 \end_layout
7498
7499 \end_inset
7500
7501 : name of the exported output file (either dvi or pdf, depending on which
7502  one exists in the temporary directory)
7503 \end_layout
7504
7505 \begin_layout Standard
7506 Note that only some of the viewers provide full forward search functionality,
7507  among them yap, xdvi, okular
7508 \begin_inset Foot
7509 status collapsed
7510
7511 \begin_layout Plain Layout
7512 You might want to set 
7513 \begin_inset Flex Code
7514 status collapsed
7515
7516 \begin_layout Plain Layout
7517 okular –unique
7518 \end_layout
7519
7520 \end_inset
7521
7522  in 
7523 \begin_inset Flex Noun
7524 status collapsed
7525
7526 \begin_layout Plain Layout
7527 Tools\SpecialChar menuseparator
7528 Preferences\SpecialChar menuseparator
7529 File Handling\SpecialChar menuseparator
7530 File
7531 \begin_inset space ~
7532 \end_inset
7533
7534 Formats
7535 \end_layout
7536
7537 \end_inset
7538
7539
7540 \end_layout
7541
7542 \end_inset
7543
7544 , qpdfview and SumatraPDF
7545 \begin_inset Foot
7546 status collapsed
7547
7548 \begin_layout Plain Layout
7549 SumatraPDF can also use DDE commands through the external program CMCDDE
7550  — downloadable from 
7551 \begin_inset CommandInset href
7552 LatexCommand href
7553 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
7554
7555 \end_inset
7556
7557
7558 \end_layout
7559
7560 \end_inset
7561
7562 .
7563  While many of the widespread PDF viewers (most notably Adobe Reader) do
7564  not support forward search at all, some other viewers – e.
7565 \begin_inset space \thinspace{}
7566 \end_inset
7567
7568 g.
7569  evince and xpdf – allow at least to reload the document and jump to a specific
7570  page of the file, so you can at least navigate 
7571 \begin_inset Quotes eld
7572 \end_inset
7573
7574 near
7575 \begin_inset Quotes erd
7576 \end_inset
7577
7578 .
7579  This latter functionality is provided by an external call of synctex (see
7580  the predefined example configurations).
7581  
7582 \end_layout
7583
7584 \begin_layout Standard
7585 Forward search works both with DVI and PDF output.
7586  \SpecialChar LyX
7587  simply checks which preview format you have used before (i.
7588 \begin_inset space \thinspace{}
7589 \end_inset
7590
7591 e., which format is already there in the temporary directory) and chooses
7592  the appropriate configuration for the respective format.
7593 \end_layout
7594
7595 \begin_layout Chapter
7596 Special Document Classes
7597 \end_layout
7598
7599 \begin_layout Section
7600 A&A Paper
7601 \end_layout
7602
7603 \begin_layout Standard
7604 by 
7605 \noun on
7606 Peter Sütterlin
7607 \end_layout
7608
7609 \begin_layout Subsection
7610 Introduction
7611 \end_layout
7612
7613 \begin_layout Standard
7614 This section describes how \SpecialChar LyX
7615  can be used to write articles for submission
7616  to the scientific journal 
7617 \emph on
7618 Astronomy and Astrophysics
7619 \emph default
7620  (
7621 \begin_inset Flex URL
7622 status collapsed
7623
7624 \begin_layout Plain Layout
7625
7626 http://www.edpsciences.fr/aa/
7627 \end_layout
7628
7629 \end_inset
7630
7631 ) using Version 5.01 of the document class 
7632 \family typewriter
7633 aa.cls
7634 \family default
7635 .
7636  This package can be downloaded from the ftp site
7637 \end_layout
7638
7639 \begin_layout Standard
7640 \begin_inset VSpace medskip
7641 \end_inset
7642
7643
7644 \end_layout
7645
7646 \begin_layout Standard
7647 \align center
7648 \begin_inset Flex URL
7649 status collapsed
7650
7651 \begin_layout Plain Layout
7652
7653 ftp://ftp.edpsciences.org/pub/aa/readme.html
7654 \end_layout
7655
7656 \end_inset
7657
7658
7659 \end_layout
7660
7661 \begin_layout Standard
7662 \begin_inset VSpace medskip
7663 \end_inset
7664
7665
7666 \end_layout
7667
7668 \begin_layout Standard
7669 A manual comes together with that package, and this text is not meant to
7670  replace the original manual but is merely a short guide in how to realize
7671  the correct form of your paper.
7672  
7673 \end_layout
7674
7675 \begin_layout Standard
7676 Please note that the publisher of the journal was changed from Springer
7677  to EDP Sciences starting January 1, 2001.
7678  That change involved also some slight changes to the style files, namely
7679  the removal of the thesaurus command.
7680  The \SpecialChar LyX
7681  class aa supports the newest version of these style files, V 5.01.
7682  If you have an older version installed, please upgrade.
7683  For compatibility, the old (version 4) layout has been kept as 
7684 \family sans
7685 article (A&A V4)
7686 \family default
7687 .
7688  Please refer to the comments in 
7689 \family typewriter
7690 \SpecialChar LyX
7691 Dir/layouts/aapaper.layout
7692 \family default
7693 .
7694 \end_layout
7695
7696 \begin_layout Subsection
7697 Getting started
7698 \end_layout
7699
7700 \begin_layout Standard
7701 It is recommended you start from the example template distributed with \SpecialChar LyX
7702 .
7703  If you are not using a template, note the following settings:
7704 \end_layout
7705
7706 \begin_layout Itemize
7707 Select 
7708 \family sans
7709 article (A&A)
7710 \family default
7711  in the 
7712 \family sans
7713 Document\SpecialChar menuseparator
7714 Settings
7715 \family default
7716  dialog (OK, that one was obvious).
7717 \end_layout
7718
7719 \begin_layout Itemize
7720 Don't change the option 
7721 \family sans
7722 Page
7723 \begin_inset space ~
7724 \end_inset
7725
7726 style
7727 \family default
7728 : Leave it set to 
7729 \family sans
7730 default
7731 \family default
7732 .
7733  The whole layout is done by the macros, you shouldn't change anything.
7734 \end_layout
7735
7736 \begin_layout Subsection
7737 The header block
7738 \end_layout
7739
7740 \begin_layout Standard
7741 First thing to enter is the header information.
7742  It consists of seven entries, of which some are optional.
7743  They are
7744 \end_layout
7745
7746 \begin_layout Itemize
7747
7748 \family sans
7749 Title
7750 \family default
7751 : [required] 
7752 \end_layout
7753
7754 \begin_layout Itemize
7755
7756 \family sans
7757 Subtitle
7758 \family default
7759 : [optional] 
7760 \end_layout
7761
7762 \begin_layout Itemize
7763
7764 \family sans
7765 Author
7766 \family default
7767 : [required]
7768 \end_layout
7769
7770 \begin_layout Itemize
7771
7772 \family sans
7773 Address
7774 \family default
7775 : [required]
7776 \end_layout
7777
7778 \begin_layout Itemize
7779
7780 \family sans
7781 Offprints
7782 \family default
7783 : [optional] if more than one author: whom to contact for offprint requests.
7784 \end_layout
7785
7786 \begin_layout Itemize
7787
7788 \family sans
7789 Mail
7790 \family default
7791 : [optional] mail address for contacts.
7792 \end_layout
7793
7794 \begin_layout Itemize
7795
7796 \family sans
7797 Date
7798 \family default
7799 : [required].
7800  Suggested format is 
7801 \family typewriter
7802 Received: <date>; Accepted <date> 
7803 \end_layout
7804
7805 \begin_layout Standard
7806 There is no need to issue the 
7807 \family typewriter
7808
7809 \backslash
7810 maketitle
7811 \family default
7812  command, this is done automatically by \SpecialChar LyX
7813  when the header is finished.
7814  Although the order of the single header entries doesn't matter it is advised
7815  to keep the above sequence, just to get the best optics and meets the layout
7816  of the real document.
7817 \end_layout
7818
7819 \begin_layout Standard
7820 If you want to place footnotes in the header block, e.
7821 \begin_inset space \thinspace{}
7822 \end_inset
7823
7824 g.
7825 \begin_inset space \space{}
7826 \end_inset
7827
7828 to state your present address, just use the standard footnote via the menu
7829  
7830 \family sans
7831 Insert\SpecialChar menuseparator
7832 Footnote.
7833
7834 \family default
7835  \SpecialChar LyX
7836  will automagically use the term 
7837 \family typewriter
7838
7839 \backslash
7840 thanks{}
7841 \family default
7842  in that case.
7843 \end_layout
7844
7845 \begin_layout Standard
7846 In addition to these topics, the macros use three additional \SpecialChar LaTeX
7847  commands that
7848  have no counterpart in \SpecialChar LyX
7849 :
7850 \end_layout
7851
7852 \begin_layout Itemize
7853
7854 \family typewriter
7855
7856 \backslash
7857 and
7858 \family default
7859  to separate different names for more than one author and institute, respectivel
7860 y.
7861 \end_layout
7862
7863 \begin_layout Itemize
7864
7865 \family typewriter
7866
7867 \backslash
7868 inst{<nr>}
7869 \family default
7870 to mark corresponding author/institute pairs.
7871  The institutes are numbered sequentially as they appear in the 
7872 \family sans
7873 Address
7874 \family default
7875  field, so you have to put a marker to each author.
7876 \end_layout
7877
7878 \begin_layout Itemize
7879
7880 \family typewriter
7881
7882 \backslash
7883 email{address}
7884 \family default
7885  to supply an email address for fast contact.
7886 \end_layout
7887
7888 \begin_layout Standard
7889 In all cases, the appropriate command has to be entered in \SpecialChar LyX
7890  and marked as
7891  \SpecialChar LaTeX
7892  code.
7893  See the examples.
7894  
7895 \end_layout
7896
7897 \begin_layout Subsection
7898 The abstract
7899 \end_layout
7900
7901 \begin_layout Standard
7902 The abstract should immediately follow the header block.
7903  With version 5 the abstract environment was changed to a command, and there
7904  is now a resctriction to only one paragraph.
7905  In addition, it should contain an entry with the keywords.
7906  This is not yet implemented for \SpecialChar LyX
7907 , therefore you have to enter the \SpecialChar LaTeX
7908  command
7909  
7910 \family typewriter
7911
7912 \backslash
7913 keywords{}
7914 \family default
7915  by hand and mark it as \SpecialChar LaTeX
7916  code.
7917  Refer to the example paper.
7918 \end_layout
7919
7920 \begin_layout Subsection
7921 Supported environments
7922 \end_layout
7923
7924 \begin_layout Standard
7925 The A&A paper layout supports the following environments for structuring
7926  your text:
7927 \end_layout
7928
7929 \begin_layout Itemize
7930
7931 \family sans
7932 Standard
7933 \end_layout
7934
7935 \begin_layout Itemize
7936
7937 \family sans
7938 Section
7939 \end_layout
7940
7941 \begin_layout Itemize
7942
7943 \family sans
7944 Subsection
7945 \end_layout
7946
7947 \begin_layout Itemize
7948
7949 \family sans
7950 Subsubsection
7951 \end_layout
7952
7953 \begin_layout Itemize
7954
7955 \family sans
7956 Itemize
7957 \end_layout
7958
7959 \begin_layout Itemize
7960
7961 \family sans
7962 Enumerate
7963 \end_layout
7964
7965 \begin_layout Itemize
7966
7967 \family sans
7968 Description
7969 \end_layout
7970
7971 \begin_layout Itemize
7972
7973 \family sans
7974 Caption
7975 \end_layout
7976
7977 \begin_layout Itemize
7978
7979 \family sans
7980 Abstract
7981 \end_layout
7982
7983 \begin_layout Itemize
7984
7985 \family sans
7986 Acknowledgment
7987 \end_layout
7988
7989 \begin_layout Itemize
7990
7991 \family sans
7992 Bibliography
7993 \end_layout
7994
7995 \begin_layout Itemize
7996
7997 \family sans
7998 \SpecialChar LaTeX
7999
8000 \end_layout
8001
8002 \begin_layout Subsection
8003 Commands not supported by \SpecialChar LyX
8004
8005 \end_layout
8006
8007 \begin_layout Standard
8008 Some commands are not yet supported by the 
8009 \family sans
8010 paper (A&A)
8011 \family default
8012  layout for \SpecialChar LyX
8013 .
8014  Some have already been mentioned.
8015  For the sake of completeness, they are listed all together here:
8016 \end_layout
8017
8018 \begin_layout Itemize
8019
8020 \family typewriter
8021
8022 \backslash
8023 and
8024 \end_layout
8025
8026 \begin_layout Itemize
8027
8028 \family typewriter
8029
8030 \backslash
8031 email
8032 \end_layout
8033
8034 \begin_layout Itemize
8035
8036 \family typewriter
8037
8038 \backslash
8039 appendix
8040 \end_layout
8041
8042 \begin_layout Itemize
8043
8044 \family typewriter
8045
8046 \backslash
8047 authorrunning
8048 \end_layout
8049
8050 \begin_layout Itemize
8051
8052 \family typewriter
8053
8054 \backslash
8055 inst{}
8056 \end_layout
8057
8058 \begin_layout Itemize
8059
8060 \family typewriter
8061
8062 \backslash
8063 keywords{}
8064 \end_layout
8065
8066 \begin_layout Itemize
8067
8068 \family typewriter
8069
8070 \backslash
8071 object{}
8072 \end_layout
8073
8074 \begin_layout Itemize
8075
8076 \family typewriter
8077
8078 \backslash
8079 titlerunning{}
8080 \end_layout
8081
8082 \begin_layout Standard
8083 If you want to use any of these commands, you have to enter them yourself.
8084  
8085 \series bold
8086 Do not forget to mark them as \SpecialChar LaTeX
8087  code!
8088 \end_layout
8089
8090 \begin_layout Subsection
8091 Figure and Table Floats
8092 \end_layout
8093
8094 \begin_layout Standard
8095 \SpecialChar LyX
8096  provides support for the necessary float environments 
8097 \family sans
8098 figure, figure*, table
8099 \family default
8100  and 
8101 \family sans
8102 table*
8103 \family default
8104 , therefore we won't tell much about it here.
8105  Refer to the 
8106 \emph on
8107 User's
8108 \begin_inset space ~
8109 \end_inset
8110
8111 Guide
8112 \emph default
8113 .
8114  Just remember that tables should be left-aligned.
8115  For that, select the table and change the alignment in 
8116 \family sans
8117 Edit\SpecialChar menuseparator
8118 Paragraph
8119 \begin_inset space ~
8120 \end_inset
8121
8122 Settings.
8123 \end_layout
8124
8125 \begin_layout Standard
8126 There is only one special thing: the figures with caption besides the figure.
8127  To create such a figure, you have to do the following:
8128 \end_layout
8129
8130 \begin_layout Enumerate
8131 Create a wide figure float: 
8132 \family sans
8133 Insert\SpecialChar menuseparator
8134 Float\SpecialChar menuseparator
8135 Figure
8136 \family default
8137 , then right click in the figure and select 
8138 \family sans
8139 Span
8140 \begin_inset space ~
8141 \end_inset
8142
8143 columns
8144 \family default
8145 .
8146 \end_layout
8147
8148 \begin_layout Enumerate
8149 Enter your caption text.
8150 \end_layout
8151
8152 \begin_layout Enumerate
8153 Press 
8154 \family sans
8155 Return
8156 \family default
8157  to move the cursor above the caption.
8158 \end_layout
8159
8160 \begin_layout Enumerate
8161 Insert your figure
8162 \end_layout
8163
8164 \begin_layout Enumerate
8165 Position the cursor behind the figure and insert a horizontal fill: 
8166 \family sans
8167 Insert\SpecialChar menuseparator
8168 Special
8169 \begin_inset space ~
8170 \end_inset
8171
8172 Character\SpecialChar menuseparator
8173 Horizontal
8174 \begin_inset space ~
8175 \end_inset
8176
8177 Fill
8178 \family default
8179 .
8180 \end_layout
8181
8182 \begin_layout Enumerate
8183 Switch to \SpecialChar LaTeX
8184  mode: 
8185 \family sans
8186 M-c
8187 \begin_inset space ~
8188 \end_inset
8189
8190 t
8191 \family default
8192 .
8193 \end_layout
8194
8195 \begin_layout Enumerate
8196 Enter 
8197 \family typewriter
8198
8199 \backslash
8200 parbox[b]{55mm}{
8201 \family default
8202 .
8203  
8204 \series bold
8205 Do not close the brace!
8206 \end_layout
8207
8208 \begin_layout Enumerate
8209 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8210  mode and insert
8211  the closing brace: 
8212 \family sans
8213 M-c
8214 \begin_inset space ~
8215 \end_inset
8216
8217 t
8218 \family default
8219  
8220 \family typewriter
8221 }
8222 \family default
8223 .
8224 \end_layout
8225
8226 \begin_layout Standard
8227 Also, refer to the figures in the example paper.
8228 \end_layout
8229
8230 \begin_layout Subsection
8231 Referee layout
8232 \end_layout
8233
8234 \begin_layout Standard
8235 For submission, the paper has to be formated in a special double-spacing
8236  layout.
8237  For this purpose, you have to give the option 
8238 \family typewriter
8239 referee
8240 \family default
8241  to the documentclass.
8242  This must be done using the extra class options field in the 
8243 \family sans
8244 Document\SpecialChar menuseparator
8245 Settings
8246 \family default
8247  dialog.
8248  Just enter the string 
8249 \family typewriter
8250 referee
8251 \family default
8252  there.
8253 \end_layout
8254
8255 \begin_layout Subsection
8256 The example paper
8257 \end_layout
8258
8259 \begin_layout Standard
8260 The 
8261 \family sans
8262 Examples
8263 \family default
8264  directory contains an example paper written with \SpecialChar LyX
8265 .
8266  It is the example paper from the original macro package, translated to
8267  \SpecialChar LyX
8268 .
8269  Use it for inspiration, and compare the original \SpecialChar LaTeX
8270  code with \SpecialChar LyX
8271  way of writing.
8272 \end_layout
8273
8274 \begin_layout Section
8275 AAS\SpecialChar TeX
8276
8277 \end_layout
8278
8279 \begin_layout Standard
8280 by 
8281 \noun on
8282 Mike Ressler
8283 \end_layout
8284
8285 \begin_layout Subsection
8286 Introduction
8287 \end_layout
8288
8289 \begin_layout Standard
8290 AAS\SpecialChar TeX
8291  is a set of macros produced by the American Astronomical Society to
8292  facilitate electronic manuscript submission to the three journals they
8293  publish: the Astrophysical Journal (including the Letters and Supplement),
8294  the Astronomical Journal, and the Publications of the Astronomical Society
8295  of the Pacific.
8296  \SpecialChar LyX
8297  has proven to be an excellent tool for generating these documents, especially
8298  given its equation, citation, and figure handling capabilities.
8299  \SpecialChar LyX
8300  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8301  is the version described here, or higher.
8302  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8303 2.09 and are fundamentally
8304  incompatible with \SpecialChar LyX
8305 .
8306  The AAS\SpecialChar TeX
8307  package may be downloaded from the AAS\SpecialChar TeX
8308  Web site
8309 \end_layout
8310
8311 \begin_layout Standard
8312 \begin_inset VSpace medskip
8313 \end_inset
8314
8315
8316 \end_layout
8317
8318 \begin_layout Standard
8319 \align center
8320 \begin_inset Flex URL
8321 status collapsed
8322
8323 \begin_layout Plain Layout
8324
8325 https://aas.org/aastex/aastex-downloads
8326 \end_layout
8327
8328 \end_inset
8329
8330
8331 \end_layout
8332
8333 \begin_layout Standard
8334 \begin_inset VSpace medskip
8335 \end_inset
8336
8337
8338 \end_layout
8339
8340 \begin_layout Standard
8341 A complete user guide is contained in that package and you should familiarize
8342  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8343 .
8344  \SpecialChar LyX
8345  will not reduce the need to figure out all the AAS\SpecialChar TeX
8346  commands, it will only
8347  reduce the drudgery of typing everything in.
8348  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8349  document conforms
8350  completely to the requirements of the journal to which you are submitting
8351  your paper.
8352 \end_layout
8353
8354 \begin_layout Subsection
8355 Starting a New Paper
8356 \end_layout
8357
8358 \begin_layout Standard
8359 I strongly suggest that you start with the AAS\SpecialChar TeX
8360  template file.
8361  Click on 
8362 \family sans
8363 File\SpecialChar menuseparator
8364 New from
8365 \family default
8366  
8367 \family sans
8368 Template
8369 \family default
8370 , enter the new file name, then choose the 
8371 \family typewriter
8372 aastex.lyx
8373 \family default
8374  template.
8375  This will show the most common fields found in a manuscript.
8376  Simply overwrite the existing text (including the brackets, 
8377 \family typewriter
8378 <>
8379 \family default
8380 ) with the correct information.
8381  Many of the AAS\SpecialChar TeX
8382  commands and environments can be implemented directly in
8383  \SpecialChar LyX
8384 , but some cannot: most noticeably 
8385 \family typewriter
8386
8387 \backslash
8388 altaffilmark
8389 \family default
8390  and 
8391 \family typewriter
8392
8393 \backslash
8394 altaffiltext
8395 \family default
8396 , which should stick out like a sore thumb if you actually just opened the
8397  template file.
8398  For commands such as these, the \SpecialChar LaTeX
8399  code must be entered directly and marked
8400  as such.
8401  Such commands are referred to as \SpecialChar TeX
8402  code, or Evil Red Text.
8403  I tried to minimize the amount of \SpecialChar TeX
8404  code needed in an AAS\SpecialChar TeX
8405  document, but
8406  there is still a bit more required than any of us would like.
8407 \end_layout
8408
8409 \begin_layout Subsection
8410 Finishing Your Paper
8411 \end_layout
8412
8413 \begin_layout Standard
8414 When the paper is finished to your satisfaction and previews/prints correctly,
8415  there are a few 
8416 \begin_inset Quotes eld
8417 \end_inset
8418
8419 postprocessing
8420 \begin_inset Quotes erd
8421 \end_inset
8422
8423  actions which need to be done before you submit it to the journals.
8424  
8425 \end_layout
8426
8427 \begin_layout Enumerate
8428 Export your paper as a \SpecialChar LaTeX
8429  file (
8430 \family sans
8431 File\SpecialChar menuseparator
8432 Export\SpecialChar menuseparator
8433 \SpecialChar LaTeX
8434
8435 \family default
8436 ).
8437  
8438 \end_layout
8439
8440 \begin_layout Enumerate
8441 Edit the resulting 
8442 \family typewriter
8443 .tex
8444 \family default
8445  file with your favorite text editor
8446 \begin_inset Separator latexpar
8447 \end_inset
8448
8449
8450 \end_layout
8451
8452 \begin_deeper
8453 \begin_layout Enumerate
8454 remove the comment lines before the 
8455 \family typewriter
8456
8457 \backslash
8458 documentclass
8459 \family default
8460  command
8461 \end_layout
8462
8463 \begin_layout Enumerate
8464 remove the 
8465 \family typewriter
8466
8467 \backslash
8468 usepackage...{fontenc}
8469 \family default
8470  line if it appears (usually just after 
8471 \family typewriter
8472
8473 \backslash
8474 documentclass
8475 \family default
8476 }; also remove the 
8477 \family typewriter
8478
8479 \backslash
8480 secnumdepth
8481 \family default
8482  line if it appears.
8483 \end_layout
8484
8485 \begin_layout Enumerate
8486 remove everything between (and including) the 
8487 \family typewriter
8488
8489 \backslash
8490 makeatletter
8491 \family default
8492  and 
8493 \family typewriter
8494
8495 \backslash
8496 makeatother
8497 \family default
8498  commands, except for any commands you specifically put into the \SpecialChar LaTeX
8499  preamble
8500  (which should appear immediately after the 
8501 \begin_inset Quotes eld
8502 \end_inset
8503
8504 User specified \SpecialChar LaTeX
8505  commands
8506 \begin_inset Quotes erd
8507 \end_inset
8508
8509  comment in the 
8510 \family typewriter
8511 .tex
8512 \family default
8513  file).
8514 \end_layout
8515
8516 \end_deeper
8517 \begin_layout Enumerate
8518 Run the resulting file through \SpecialChar LaTeX
8519  to make sure it still processes correctly.
8520 \end_layout
8521
8522 \begin_layout Enumerate
8523 Reread the journal requirements to make sure your filenames and formats
8524  are correct.
8525 \end_layout
8526
8527 \begin_layout Enumerate
8528 Submit it.
8529 \end_layout
8530
8531 \begin_layout Subsection
8532 Comments On Specific Commands
8533 \end_layout
8534
8535 \begin_layout Standard
8536 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
8537  commands: the
8538  AAS\SpecialChar TeX
8539  User Guide (
8540 \family typewriter
8541 aasguide.tex
8542 \family default
8543 ) gives a good description of each.
8544  Thus it's probably easiest for me to go down the list as found in the guide
8545  and offer comments where necessary.
8546  So let's begin \SpecialChar ldots
8547
8548 \end_layout
8549
8550 \begin_layout Subsubsection
8551 Things that work as expected
8552 \end_layout
8553
8554 \begin_layout Standard
8555 Because they work as you might expect, I simply list them and the section
8556  they are found in: 
8557 \family typewriter
8558
8559 \backslash
8560 documentclass
8561 \family default
8562  (2.1.1), 
8563 \family typewriter
8564
8565 \backslash
8566 begin{document}
8567 \family default
8568  (2.2), 
8569 \family typewriter
8570
8571 \backslash
8572 title
8573 \family default
8574  (2.3), 
8575 \family typewriter
8576
8577 \backslash
8578 author
8579 \family default
8580  (2.3), 
8581 \family typewriter
8582
8583 \backslash
8584 affil
8585 \family default
8586  (2.3), 
8587 \family typewriter
8588
8589 \backslash
8590 abstract
8591 \family default
8592  (2.4), 
8593 \family typewriter
8594
8595 \backslash
8596 keywords
8597 \family default
8598  (2.5), 
8599 \family typewriter
8600
8601 \backslash
8602 section
8603 \family default
8604  (2.7), 
8605 \family typewriter
8606
8607 \backslash
8608 subsection
8609 \family default
8610  (2.7), 
8611 \family typewriter
8612
8613 \backslash
8614 subsubsection
8615 \family default
8616  (2.7), 
8617 \family typewriter
8618
8619 \backslash
8620 paragraph
8621 \family default
8622  (2.7), 
8623 \family typewriter
8624
8625 \backslash
8626 facility
8627 \family default
8628  (2.10), 
8629 \family typewriter
8630
8631 \backslash
8632 begin{displaymath}
8633 \family default
8634  (2.12), 
8635 \family typewriter
8636
8637 \backslash
8638 begin{equation}
8639 \family default
8640  (2.12), 
8641 \family typewriter
8642
8643 \backslash
8644 begin{eqnarray}
8645 \family default
8646  (2.12), 
8647 \family typewriter
8648
8649 \backslash
8650 begin{mathletters}
8651 \family default
8652  (2.12), 
8653 \family typewriter
8654
8655 \backslash
8656 begin{thebibliography}
8657 \family default
8658  (2.13.1), 
8659 \family typewriter
8660
8661 \backslash
8662 bibitem
8663 \family default
8664  (2.13.2), all the cite commands and their variations (2.13.2), the generic
8665  graphicx figure commands (2.14.1), 
8666 \family typewriter
8667
8668 \backslash
8669 begin{table}
8670 \family default
8671  (2.15.4), 
8672 \family typewriter
8673
8674 \backslash
8675 begin{tabular}
8676 \family default
8677  (2.15.4), 
8678 \family typewriter
8679
8680 \backslash
8681 caption
8682 \family default
8683  (2.15.4), 
8684 \family typewriter
8685
8686 \backslash
8687 label
8688 \family default
8689  (2.15.4, amongst other places), 
8690 \family typewriter
8691
8692 \backslash
8693 tablerefs
8694 \family default
8695  (2.15.5), 
8696 \family typewriter
8697
8698 \backslash
8699 tablecomments
8700 \family default
8701  (2.15.5), 
8702 \family typewriter
8703
8704 \backslash
8705 url
8706 \family default
8707  (2.17.4), 
8708 \family typewriter
8709
8710 \backslash
8711 end{document}
8712 \family default
8713  (2.18).
8714 \end_layout
8715
8716 \begin_layout Standard
8717 The following style options also work correctly: 
8718 \family typewriter
8719 longabstract
8720 \family default
8721  (2.4), 
8722 \family typewriter
8723 preprint
8724 \family default
8725  (3.2.1), 
8726 \family typewriter
8727 preprint2
8728 \family default
8729  (3.2.2), 
8730 \family typewriter
8731 eqsecnum
8732 \family default
8733  (3.3), 
8734 \family typewriter
8735 flushrt
8736 \family default
8737  (3.4).
8738  Simply put them in the 
8739 \family sans
8740 Options
8741 \family default
8742  box in 
8743 \family sans
8744 Layout\SpecialChar menuseparator
8745 Document
8746 \family default
8747 .
8748 \end_layout
8749
8750 \begin_layout Subsubsection
8751 Things that work, but require more comment
8752 \end_layout
8753
8754 \begin_layout Standard
8755 The following items work, but require a little more discussion:
8756 \end_layout
8757
8758 \begin_layout Itemize
8759 These items are reserved for use by the journal editors, but you can put
8760  them into the \SpecialChar LaTeX
8761  preamble if you feel compelled to do so: 
8762 \family typewriter
8763
8764 \backslash
8765 received
8766 \family default
8767
8768 \family typewriter
8769
8770 \backslash
8771 revised
8772 \family default
8773
8774 \family typewriter
8775
8776 \backslash
8777 accepted
8778 \family default
8779
8780 \family typewriter
8781
8782 \backslash
8783 ccc
8784 \family default
8785
8786 \family typewriter
8787
8788 \backslash
8789 cpright
8790 \family default
8791  (all from 2.1.3)
8792 \end_layout
8793
8794 \begin_layout Itemize
8795 These items may be placed in the \SpecialChar LaTeX
8796  preamble, and are included as blanks in
8797  the template file: 
8798 \family typewriter
8799
8800 \backslash
8801 slugcomment
8802 \family default
8803  (2.1.4), 
8804 \family typewriter
8805
8806 \backslash
8807 shorttitle
8808 \family default
8809  (2.1.5), 
8810 \family typewriter
8811
8812 \backslash
8813 shortauthors
8814 \family default
8815  (2.1.5)
8816 \end_layout
8817
8818 \begin_layout Itemize
8819
8820 \family typewriter
8821
8822 \backslash
8823 email
8824 \family default
8825  (2.3) – can only be used 
8826 \begin_inset Quotes eld
8827 \end_inset
8828
8829 standalone
8830 \begin_inset Quotes erd
8831 \end_inset
8832
8833 , not in the middle of a paragraph.
8834  Use \SpecialChar TeX
8835  code if you need to embed it.
8836 \end_layout
8837
8838 \begin_layout Itemize
8839
8840 \family typewriter
8841
8842 \backslash
8843 and
8844 \family default
8845  (2.3) – will have extra {} after it.
8846  This should not cause an error.
8847 \end_layout
8848
8849 \begin_layout Itemize
8850
8851 \family typewriter
8852
8853 \backslash
8854 notetoeditor
8855 \family default
8856  (2.6) – can only be used 
8857 \begin_inset Quotes eld
8858 \end_inset
8859
8860 standalone
8861 \begin_inset Quotes erd
8862 \end_inset
8863
8864 , not in the middle of a paragraph.
8865  Use \SpecialChar TeX
8866  code if you need to embed it.
8867 \end_layout
8868
8869 \begin_layout Itemize
8870
8871 \family typewriter
8872
8873 \backslash
8874 placetable
8875 \family default
8876  (2.8) – can't insert a cross-reference tag, you must type the tag name by
8877  hand
8878 \end_layout
8879
8880 \begin_layout Itemize
8881
8882 \family typewriter
8883
8884 \backslash
8885 placefigure
8886 \family default
8887  (2.8) – same as for 
8888 \family typewriter
8889
8890 \backslash
8891 placetable
8892 \end_layout
8893
8894 \begin_layout Itemize
8895
8896 \family typewriter
8897
8898 \backslash
8899 acknowledgements
8900 \family default
8901  (2.9) – will have extra {} after it.
8902  This should not cause an error.
8903 \end_layout
8904
8905 \begin_layout Itemize
8906
8907 \family typewriter
8908
8909 \backslash
8910 appendix
8911 \family default
8912  (2.11) – will have extra {} after it.
8913  This should not cause an error.
8914 \end_layout
8915
8916 \begin_layout Itemize
8917
8918 \family typewriter
8919
8920 \backslash
8921 figcaption
8922 \family default
8923  (2.14.2) – you can insert an optional filename argument by placing the cursor
8924  at the beginning of the text and selecting 
8925 \family sans
8926 Insert\SpecialChar menuseparator
8927 Short Title
8928 \family default
8929 .
8930  
8931 \begin_inset Quotes eld
8932 \end_inset
8933
8934 Short Title
8935 \begin_inset Quotes erd
8936 \end_inset
8937
8938  inserts an optional argument of the type needed by 
8939 \family typewriter
8940
8941 \backslash
8942 figcaption
8943 \family default
8944 .
8945  Hopefully it will be renamed someday.
8946 \end_layout
8947
8948 \begin_layout Itemize
8949
8950 \family typewriter
8951
8952 \backslash
8953 objectname
8954 \family default
8955  (2.17.1) – same as 
8956 \family typewriter
8957
8958 \backslash
8959 figcaption
8960 \family default
8961  for the catalog ID optional parameter
8962 \end_layout
8963
8964 \begin_layout Itemize
8965
8966 \family typewriter
8967
8968 \backslash
8969 dataset
8970 \family default
8971  (2.17.1) – same as 
8972 \family typewriter
8973
8974 \backslash
8975 figcaption
8976 \family default
8977  for the catalog ID optional parameter
8978 \end_layout
8979
8980 \begin_layout Subsubsection
8981 Things not implemented, use \SpecialChar TeX
8982  code
8983 \end_layout
8984
8985 \begin_layout Standard
8986
8987 \family typewriter
8988
8989 \backslash
8990 altaffilmark
8991 \family default
8992  (2.3), 
8993 \family typewriter
8994
8995 \backslash
8996 altaffiltext
8997 \family default
8998  (2.3), 
8999 \family typewriter
9000
9001 \backslash
9002 eqnum
9003 \family default
9004  (2.12), 
9005 \family typewriter
9006
9007 \backslash
9008 setcounter{equation}
9009 \family default
9010  (2.12), Journal name abbreviations (2.13.4), 
9011 \family typewriter
9012
9013 \backslash
9014 figurenum
9015 \family default
9016  (2.14.1), 
9017 \family typewriter
9018
9019 \backslash
9020 epsscale
9021 \family default
9022  (2.14.1), 
9023 \family typewriter
9024
9025 \backslash
9026 plotone
9027 \family default
9028  (2.14.1), 
9029 \family typewriter
9030
9031 \backslash
9032 plottwo
9033 \family default
9034  (2.14.1), 
9035 \family typewriter
9036
9037 \backslash
9038 tablenum
9039 \family default
9040  (2.15.4), 
9041 \family typewriter
9042
9043 \backslash
9044 tableline
9045 \family default
9046  (2.15.4, insert it as the first element in the lefthand cell after where
9047  you want it.
9048  Don't use any of \SpecialChar LyX
9049 's rules in the table), 
9050 \family typewriter
9051
9052 \backslash
9053 tablenotemark
9054 \family default
9055  (2.15.5), 
9056 \family typewriter
9057
9058 \backslash
9059 tablenotetext
9060 \family default
9061  (2.15.5), much of Misc (2.17, except 
9062 \family typewriter
9063
9064 \backslash
9065 objectname
9066 \family default
9067
9068 \family typewriter
9069
9070 \backslash
9071 dataset
9072 \family default
9073
9074 \family typewriter
9075
9076 \backslash
9077 url
9078 \family default
9079 , and 
9080 \family typewriter
9081
9082 \backslash
9083 email
9084 \family default
9085 ; see above), 
9086 \family typewriter
9087
9088 \backslash
9089 singlespace
9090 \family default
9091  (3.1), 
9092 \family typewriter
9093
9094 \backslash
9095 doublespace
9096 \family default
9097  (3.1), 
9098 \family typewriter
9099
9100 \backslash
9101 onecolumn
9102 \family default
9103  (3.2), 
9104 \family typewriter
9105
9106 \backslash
9107 twocolumn
9108 \family default
9109  (3.2)
9110 \end_layout
9111
9112 \begin_layout Subsubsection
9113 Things that cannot be implemented
9114 \end_layout
9115
9116 \begin_layout Standard
9117 \SpecialChar ldots
9118  at least in any meaningful sort of way, so I suggest ignoring them.
9119  They are the references environment (2.13.3), and the deluxetable environment
9120  (2.15).
9121  If you really, really need to use deluxetable, I suggest editing it in
9122  a separate file with a text editor, then using 
9123 \family sans
9124 Insert\SpecialChar menuseparator
9125 Child
9126 \begin_inset space ~
9127 \end_inset
9128
9129 Document
9130 \family default
9131  to include it in your \SpecialChar LyX
9132  document.
9133  See the 
9134 \family typewriter
9135 aas_sample.lyx
9136 \family default
9137  file to see an example of this.
9138 \end_layout
9139
9140 \begin_layout Subsection
9141 FAQs, Tips, Tricks, and Other Ruminations
9142 \end_layout
9143
9144 \begin_layout Subsubsection
9145 Getting \SpecialChar LyX
9146  and AAS\SpecialChar TeX
9147  to cooperate
9148 \end_layout
9149
9150 \begin_layout Standard
9151 It can be a bit tricky to get \SpecialChar LyX
9152  to recognize a new layout and document class.
9153  When all else fails, do this:
9154 \end_layout
9155
9156 \begin_layout Enumerate
9157 Make certain that \SpecialChar LaTeX
9158  can find AAS\SpecialChar TeX
9159 .
9160  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9161  distribution into a
9162  directory completely unrelated to \SpecialChar LaTeX
9163  or AAS\SpecialChar TeX
9164  and run \SpecialChar LaTeX
9165  on 
9166 \family typewriter
9167 sample.tex
9168 \family default
9169 .
9170 \end_layout
9171
9172 \begin_layout Enumerate
9173 Make certain that 
9174 \family typewriter
9175 aastex.layout
9176 \family default
9177  appears in \SpecialChar LyX
9178 's 
9179 \family typewriter
9180 layouts
9181 \family default
9182  folder
9183 \end_layout
9184
9185 \begin_layout Enumerate
9186 Rerun 
9187 \family sans
9188 Tools\SpecialChar menuseparator
9189 Reconfigure
9190 \family default
9191  in \SpecialChar LyX
9192 , then restart \SpecialChar LyX
9193 .
9194 \end_layout
9195
9196 \begin_layout Enumerate
9197 Open a regular new file, not from a template.
9198  Does AAS\SpecialChar TeX
9199  appear in the class list in 
9200 \family sans
9201 Document\SpecialChar menuseparator
9202 Settings
9203 \family default
9204 ?
9205 \end_layout
9206
9207 \begin_layout Standard
9208 If you get a warning from an existing AAS\SpecialChar TeX
9209  document about not being able
9210  to find the AAS\SpecialChar TeX
9211  layout or a message about 
9212 \begin_inset Quotes eld
9213 \end_inset
9214
9215 You should not mix title layouts with normal ones
9216 \begin_inset Quotes erd
9217 \end_inset
9218
9219 , things haven't been installed correctly.
9220 \end_layout
9221
9222 \begin_layout Subsubsection
9223 \SpecialChar LaTeX
9224  error processing a table 
9225 \end_layout
9226
9227 \begin_layout Standard
9228 \SpecialChar LyX
9229 , by default, attempts to center the table caption/title.
9230  This seems to produce a bad interaction in AAS\SpecialChar TeX
9231  so you should click somewhere
9232  in the caption/title, then select 
9233 \family sans
9234 Edit\SpecialChar menuseparator
9235 Paragraph
9236 \begin_inset space ~
9237 \end_inset
9238
9239 Settings
9240 \family default
9241 , then set the 
9242 \family sans
9243 Alignment
9244 \family default
9245  to 
9246 \family sans
9247 Block
9248 \family default
9249 .
9250  This took care of it for me.
9251 \end_layout
9252
9253 \begin_layout Subsubsection
9254 References
9255 \end_layout
9256
9257 \begin_layout Standard
9258 A couple of things: 1) I have noticed some funny spacing in the reference
9259  entries in the text.
9260  When you enter the bibliography item data, make sure their is 
9261 \emph on
9262 no
9263 \emph default
9264  space between the last author and the parenthesis setting off the year;
9265  
9266 \emph on
9267 e.
9268 \begin_inset space \thinspace{}
9269 \end_inset
9270
9271 g.
9272 \begin_inset space \space{}
9273 \end_inset
9274
9275
9276 \emph default
9277 type 
9278 \family typewriter
9279 Ressler(1992)
9280 \family default
9281 , not 
9282 \family typewriter
9283 Ressler (1992)
9284 \family default
9285 .
9286  2) Entering the references at all is not obvious.
9287  The easiest thing is to start typing your first reference at the end of
9288  the document, then mark it as type 
9289 \family sans
9290 References
9291 \family default
9292 .
9293  That will put a small gray box in front of what you just typed.
9294  Click on the box to fill in the rest of the information.
9295  For new references, go to the end of an existing reference and press return.
9296  That will create a new line with its own box, etc.
9297 \end_layout
9298
9299 \begin_layout Subsubsection
9300 Including EPS files
9301 \end_layout
9302
9303 \begin_layout Standard
9304 Even though AAS\SpecialChar TeX
9305  provides its own figure commands (
9306 \family typewriter
9307
9308 \backslash
9309 plotone
9310 \family default
9311 , for example), I much prefer \SpecialChar LaTeX
9312 's standard figure commands (with the default
9313  graphicx).
9314  You can insert the 
9315 \family typewriter
9316
9317 \backslash
9318 plotone
9319 \family default
9320 , etc.
9321 \begin_inset space ~
9322 \end_inset
9323
9324 commands as \SpecialChar TeX
9325  code into a Figure Float box if you desire, but I never have
9326  much luck getting the layout right.
9327  With the standard graphics, \SpecialChar LyX
9328  will insert a 
9329 \family typewriter
9330
9331 \backslash
9332 usepackage{graphicx}
9333 \family default
9334  command into the \SpecialChar LaTeX
9335  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9336  way,
9337  interspersing the figures in the text.
9338  I believe ApJ accepts figures exactly this way now; AJ might still use
9339  the 
9340 \begin_inset Quotes eld
9341 \end_inset
9342
9343 stack everything at the end
9344 \begin_inset Quotes erd
9345 \end_inset
9346
9347  technique.
9348 \end_layout
9349
9350 \begin_layout Subsubsection
9351 Things I could have done, but didn't
9352 \end_layout
9353
9354 \begin_layout Standard
9355 There are a few 
9356 \begin_inset Quotes eld
9357 \end_inset
9358
9359 pretty
9360 \begin_inset Quotes erd
9361 \end_inset
9362
9363  things I could have implemented, but chose not to.
9364  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9365  window,
9366  even though it is double-spaced in the paper manuscript.
9367  Also, I chose not to make separate layouts for the preprint and preprint2
9368  styles.
9369  Since I assume you will spend most of your time in the plain manuscript
9370  mode anyway, I decided not to chew up more disk space with this.
9371  
9372 \end_layout
9373
9374 \begin_layout Subsection
9375 Final Caveat
9376 \end_layout
9377
9378 \begin_layout Standard
9379 Your mileage may vary.
9380  I've now had papers published by both ApJ and AJ that have had 98% of the
9381  effort done in \SpecialChar LyX
9382 ; the last 2% was the \SpecialChar LaTeX
9383  post-processing and a few cleanups.
9384  I have had no trouble with the submission process, and I'm sure the journals
9385  were never aware that there might be a difference.
9386  So, go forth and publish!
9387 \end_layout
9388
9389 \begin_layout Section
9390 AMS \SpecialChar LaTeX
9391
9392 \end_layout
9393
9394 \begin_layout Standard
9395 by 
9396 \noun on
9397 David Johnson
9398 \noun default
9399 ; updated by 
9400 \noun on
9401 Richard Heck
9402 \end_layout
9403
9404 \begin_layout Standard
9405 \begin_inset VSpace bigskip
9406 \end_inset
9407
9408
9409 \end_layout
9410
9411 \begin_layout Standard
9412 \noindent
9413 The AMS \SpecialChar LaTeX
9414  layouts are set up to conform to suggested styles for mathematical
9415  papers to be submitted to American Mathematical Society publications.
9416  The layouts are not tailored to a specific journal, but easily can be.
9417  You should refer to the AMS documentation for specific instructions for
9418  each journal (usually it will entail only changing a single line in the
9419  \SpecialChar TeX
9420  output).
9421  That documentation is available on the Web at 
9422 \begin_inset Flex URL
9423 status open
9424
9425 \begin_layout Plain Layout
9426
9427 http://www.ams.org
9428 \end_layout
9429
9430 \end_inset
9431
9432  or by ftp at 
9433 \begin_inset Flex URL
9434 status open
9435
9436 \begin_layout Plain Layout
9437
9438 ftp://ftp.ams.org/pub/tex/amslatex/
9439 \end_layout
9440
9441 \end_inset
9442
9443 .
9444  These layouts are appropriate, and useful, for any mathematical writing.
9445  
9446 \end_layout
9447
9448 \begin_layout Standard
9449 There are two basic AMS \SpecialChar LaTeX
9450  layouts: 
9451 \end_layout
9452
9453 \begin_layout Itemize
9454 amsart: The standard AMS article format.
9455 \end_layout
9456
9457 \begin_layout Itemize
9458 amsbook: the standard AMS book (really, monograph) format.
9459  
9460 \end_layout
9461
9462 \begin_layout Standard
9463 The layouts themselves contain only the minimum necessary to use the AMS
9464  classes.
9465  They do not, in particular, contain any of the `theorem' environments used
9466  for setting theorems, lemmas, and the like.
9467  These are contained, instead, in the 
9468 \begin_inset Flex Code
9469 status collapsed
9470
9471 \begin_layout Plain Layout
9472 Theorems (AMS)
9473 \end_layout
9474
9475 \end_inset
9476
9477  module, which is loaded by default when you select one of the AMS classes.
9478  (It can also be used with other classes and can be removed, if you would
9479  rather use something else.) Less commonly used environments are in the 
9480 \begin_inset Flex Code
9481 status collapsed
9482
9483 \begin_layout Plain Layout
9484 Theorems (AMS-Extended)
9485 \end_layout
9486
9487 \end_inset
9488
9489  module, which must be loaded manually.
9490 \end_layout
9491
9492 \begin_layout Standard
9493 By default, theorems and the like are numbered consecutively throughout
9494  the document, but this may be modified by loading the module 
9495 \begin_inset Flex Code
9496 status collapsed
9497
9498 \begin_layout Plain Layout
9499 Theorems (Order by Section)
9500 \end_layout
9501
9502 \end_inset
9503
9504  or, if you are using 
9505 \begin_inset Flex Code
9506 status collapsed
9507
9508 \begin_layout Plain Layout
9509 book (AMS)
9510 \end_layout
9511
9512 \end_inset
9513
9514 , the module 
9515 \begin_inset Flex Code
9516 status collapsed
9517
9518 \begin_layout Plain Layout
9519 Theorems (Order by Chapter)
9520 \end_layout
9521
9522 \end_inset
9523
9524 .
9525  These will number the results as 
9526 \begin_inset Formula $n.m$
9527 \end_inset
9528
9529 , where the first number refers to the section (or chapter) and the second
9530  refers to the total number of results so far in that section (or chapter).
9531  Many environments are also available unnumbered.
9532  These are indicated by an asterisk at the end.
9533  If you happen to want 
9534 \emph on
9535 only
9536 \emph default
9537  unnumbered results, the module 
9538 \begin_inset Flex Code
9539 status collapsed
9540
9541 \begin_layout Plain Layout
9542 Theorems (Starred)
9543 \end_layout
9544
9545 \end_inset
9546
9547  provides that option.
9548 \end_layout
9549
9550 \begin_layout Standard
9551 Note that these modules do not 
9552 \emph on
9553 have
9554 \emph default
9555  to be used with the AMS classes.
9556  It is perfectly possible to use the 
9557 \begin_inset Flex Code
9558 status collapsed
9559
9560 \begin_layout Plain Layout
9561 Theorems (AMS)
9562 \end_layout
9563
9564 \end_inset
9565
9566  module, and the others mentioned, with other classes, such as 
9567 \begin_inset Flex Code
9568 status collapsed
9569
9570 \begin_layout Plain Layout
9571 article
9572 \end_layout
9573
9574 \end_inset
9575
9576
9577 \begin_inset Flex Code
9578 status collapsed
9579
9580 \begin_layout Plain Layout
9581 report
9582 \end_layout
9583
9584 \end_inset
9585
9586
9587 \begin_inset Flex Code
9588 status collapsed
9589
9590 \begin_layout Plain Layout
9591 book (KOMA-script)
9592 \end_layout
9593
9594 \end_inset
9595
9596 , and so forth.
9597 \end_layout
9598
9599 \begin_layout Subsection
9600 What these layouts provide
9601 \end_layout
9602
9603 \begin_layout Standard
9604 There is a long list of included environments provided by these layouts.
9605  In AMS-\SpecialChar LaTeX
9606 , there is, in fact, an opportunity to define an unlimited variety
9607  of `theorem' environments.
9608  However, the AMS recommends the environments that are available in \SpecialChar LyX
9609 .
9610  
9611 \end_layout
9612
9613 \begin_layout Standard
9614 The following environments—as well as the standard environments, such as
9615  
9616 \begin_inset Flex Noun
9617 status collapsed
9618
9619 \begin_layout Plain Layout
9620 section
9621 \end_layout
9622
9623 \end_inset
9624
9625
9626 \begin_inset Flex Noun
9627 status collapsed
9628
9629 \begin_layout Plain Layout
9630 bibliography
9631 \end_layout
9632
9633 \end_inset
9634
9635
9636 \begin_inset Flex Noun
9637 status collapsed
9638
9639 \begin_layout Plain Layout
9640 title
9641 \end_layout
9642
9643 \end_inset
9644
9645
9646 \begin_inset Flex Noun
9647 status collapsed
9648
9649 \begin_layout Plain Layout
9650 author
9651 \end_layout
9652
9653 \end_inset
9654
9655 , and 
9656 \begin_inset Flex Noun
9657 status collapsed
9658
9659 \begin_layout Plain Layout
9660 date
9661 \end_layout
9662
9663 \end_inset
9664
9665 —are provided by 
9666 \begin_inset Flex Code
9667 status collapsed
9668
9669 \begin_layout Plain Layout
9670 article (AMS)
9671 \end_layout
9672
9673 \end_inset
9674
9675  and 
9676 \begin_inset Flex Code
9677 status collapsed
9678
9679 \begin_layout Plain Layout
9680 book (AMS)
9681 \end_layout
9682
9683 \end_inset
9684
9685 :
9686 \end_layout
9687
9688 \begin_layout Description
9689 Address This should be the author's permanent address.
9690 \end_layout
9691
9692 \begin_layout Description
9693 Current
9694 \begin_inset space ~
9695 \end_inset
9696
9697 Address This should be the author's temporary address at the time of submission,
9698  if different from the Address.
9699 \end_layout
9700
9701 \begin_layout Description
9702 Email Author's e-mail address
9703 \end_layout
9704
9705 \begin_layout Description
9706 URL Author's Web address, if desired.
9707 \end_layout
9708
9709 \begin_layout Description
9710 Keywords Key words or phrases used to identify specific topics discussed
9711  in the paper.
9712 \end_layout
9713
9714 \begin_layout Description
9715 Subjectclass These refer to the AMS Subject Classifications, published and
9716  described in 
9717 \emph on
9718 Mathematical Reviews
9719 \emph default
9720 .
9721  These are also available online at the AMS cites listed above.
9722 \end_layout
9723
9724 \begin_layout Description
9725 Thanks
9726 \end_layout
9727
9728 \begin_layout Description
9729 Dedicatory
9730 \end_layout
9731
9732 \begin_layout Description
9733 Translator
9734 \end_layout
9735
9736 \begin_layout Standard
9737 The following environments are provided by both the 
9738 \begin_inset Flex Code
9739 status collapsed
9740
9741 \begin_layout Plain Layout
9742 Theorems
9743 \end_layout
9744
9745 \end_inset
9746
9747  and 
9748 \begin_inset Flex Code
9749 status collapsed
9750
9751 \begin_layout Plain Layout
9752 Theorems (AMS)
9753 \end_layout
9754
9755 \end_inset
9756
9757  modules, in the latter case in both starred (unnumbered) and unstarred
9758  (numbered) versions.
9759  These same environments are provided only in the starred versions by the
9760  
9761 \begin_inset Flex Code
9762 status collapsed
9763
9764 \begin_layout Plain Layout
9765 Theorems (Starred)
9766 \end_layout
9767
9768 \end_inset
9769
9770  module:
9771 \end_layout
9772
9773 \begin_layout Theorem
9774 This is typically used for the statements of major results.
9775  
9776 \end_layout
9777
9778 \begin_layout Corollary*
9779 This is used for statements which follow fairly directly from previous statement
9780 s.
9781  Again, these can be major results.
9782  
9783 \end_layout
9784
9785 \begin_layout Lemma
9786 These are smaller results needed to prove other statements.
9787 \end_layout
9788
9789 \begin_layout Proposition
9790 These are less major results which (hopefully) add to the general theory
9791  being discussed.
9792 \end_layout
9793
9794 \begin_layout Conjecture
9795 These are statements provided without justification, which the author does
9796  not know how to prove, but which seem to be true (to the author, at least).
9797 \end_layout
9798
9799 \begin_layout Definition*
9800 Guess what this is for.
9801  The font is different for this environment than for the previous ones.
9802  
9803 \end_layout
9804
9805 \begin_layout Example*
9806 Used for examples illustrating proven results.
9807 \end_layout
9808
9809 \begin_layout Problem
9810 It's not really known what this is for.
9811  You should figure it out.
9812 \end_layout
9813
9814 \begin_layout Exercise*
9815 Write a description for this one.
9816 \end_layout
9817
9818 \begin_layout Remark
9819 This environment is also a type of theorem, usually a lesser sort of observation.
9820 \end_layout
9821
9822 \begin_layout Claim*
9823 Often used in the course of giving a proof of a larger result.
9824 \end_layout
9825
9826 \begin_layout Case
9827 Generally, these are used to break up long arguments, using specific instances
9828  of some condition.
9829  
9830 \end_layout
9831
9832 \begin_layout Case
9833 The numbering scheme for cases is on its own, not together with other numbered
9834  statements.
9835  
9836 \end_layout
9837
9838 \begin_layout Proof
9839 At the end of this environment, a QED symbol (usually a square, but it can
9840  vary with different styles) is placed.
9841  If you want to have other environments within this one—for example, Case
9842  environments—and have the QED symbol appear only after them, then the other
9843  environments need to be nested within the proof environment.
9844  See the section 
9845 \emph on
9846 Nesting Environments
9847 \emph default
9848  of the 
9849 \emph on
9850 User's Guide
9851 \emph default
9852  for information on nesting.
9853 \end_layout
9854
9855 \begin_layout Standard
9856 And these environments are provided by 
9857 \begin_inset Flex Code
9858 status collapsed
9859
9860 \begin_layout Plain Layout
9861 Theorems (AMS-Extended)
9862 \end_layout
9863
9864 \end_inset
9865
9866 :
9867 \end_layout
9868
9869 \begin_layout Criterion*
9870 A required condition.
9871 \end_layout
9872
9873 \begin_layout Algorithm*
9874 A general procedure to be used.
9875 \end_layout
9876
9877 \begin_layout Axiom*
9878 This is a property or statement taken as true within the system being discussed.
9879 \end_layout
9880
9881 \begin_layout Condition*
9882 Sometimes used to state a condition assumed within the present context of
9883  discussion.
9884 \end_layout
9885
9886 \begin_layout Note*
9887 Similar to a Remark.
9888 \end_layout
9889
9890 \begin_layout Notation*
9891 Used for the explanation of, yes, notation.
9892 \end_layout
9893
9894 \begin_layout Summary
9895 Do we really need to tell you? 
9896 \end_layout
9897
9898 \begin_layout Acknowledgement*
9899 Acknowledgement.
9900 \end_layout
9901
9902 \begin_layout Conclusion*
9903 Sometimes used at the end of a long train of argument.
9904 \end_layout
9905
9906 \begin_layout Fact
9907 Used in a way similar to Proposition, though perhaps lower on the scale.
9908 \end_layout
9909
9910 \begin_layout Standard
9911 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
9912  and AMS fonts
9913  packages.
9914  They need to be available on your system in order to use these environments.
9915 \end_layout
9916
9917 \begin_layout Section
9918 AGU journals (
9919 \family sans
9920 aguplus
9921 \family default
9922 )
9923 \end_layout
9924
9925 \begin_layout Standard
9926 by 
9927 \shape smallcaps
9928 Martin Vermeer
9929 \end_layout
9930
9931 \begin_layout Subsection
9932 Description
9933 \end_layout
9934
9935 \begin_layout Standard
9936 These are the layout files for some of the journals of the American Geophysical
9937  Society.
9938  It is assumed that you have both the AGU's own class files and AGUplus
9939  installed (everything to be found at
9940 \begin_inset Flex URL
9941 status collapsed
9942
9943 \begin_layout Plain Layout
9944
9945 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
9946 \end_layout
9947
9948 \end_inset
9949
9950 ).
9951 \end_layout
9952
9953 \begin_layout Subsection
9954 New styles
9955 \end_layout
9956
9957 \begin_layout Standard
9958 Redefined are 
9959 \family sans
9960 Paragraph
9961 \family default
9962
9963 \family sans
9964 Paragraph*
9965 \family default
9966 .
9967  They are still called this in the \SpecialChar LyX
9968  GUI, though their \SpecialChar LaTeX
9969  equivalents in the
9970  AGU classes are 
9971 \family sans
9972 Subsubsubsection
9973 \family default
9974  and 
9975 \family sans
9976 Subsubsubsection*
9977 \family default
9978 .
9979 \end_layout
9980
9981 \begin_layout Standard
9982 Newly defined styles are 
9983 \family sans
9984 Left_Header
9985 \family default
9986
9987 \family sans
9988 Right_Header
9989 \family default
9990
9991 \family sans
9992 Received
9993 \family default
9994
9995 \family sans
9996 Revised
9997 \family default
9998
9999 \family sans
10000 Accepted
10001 \family default
10002
10003 \family sans
10004 CCC
10005 \family default
10006
10007 \family sans
10008 PaperId
10009 \family default
10010
10011 \family sans
10012 AuthorAddr
10013 \family default
10014
10015 \family sans
10016 SlugComment
10017 \family default
10018 .
10019  These are mostly manuscript attributes and defined in the AGU class documentati
10020 on.
10021 \end_layout
10022
10023 \begin_layout Standard
10024 I suspect this is still badly incomplete.
10025 \end_layout
10026
10027 \begin_layout Subsection
10028 New floats
10029 \end_layout
10030
10031 \begin_layout Standard
10032
10033 \family sans
10034 Planotable
10035 \family default
10036  and 
10037 \family sans
10038 Plate
10039 \family default
10040 .
10041  We also have a new 
10042 \family sans
10043 Table_Caption
10044 \family default
10045 .
10046 \end_layout
10047
10048 \begin_layout Subsection
10049 Supported journals
10050 \end_layout
10051
10052 \begin_layout Itemize
10053
10054 \emph on
10055 Journal of Geophysical Research
10056 \emph default
10057
10058 \family typewriter
10059 jgrga.layout
10060 \family default
10061  — Martin Vermeer
10062 \end_layout
10063
10064 \begin_layout Standard
10065 Add your own, it isn't so hard! Look at the 
10066 \family typewriter
10067 jgrga.layout
10068 \family default
10069  example and 
10070 \family typewriter
10071 aguplus.inc
10072 \family default
10073 .
10074 \end_layout
10075
10076 \begin_layout Subsection
10077 Bugs and things to remember
10078 \end_layout
10079
10080 \begin_layout Standard
10081 In order to use the new layouts, you must remember to do the following for
10082  a new document:
10083 \end_layout
10084
10085 \begin_layout Enumerate
10086
10087 \emph on
10088 Turn off babel
10089 \emph default
10090 .
10091  This can be done in the 
10092 \family sans
10093 Layout\SpecialChar menuseparator
10094 Document
10095 \family default
10096  or 
10097 \family sans
10098 Document\SpecialChar menuseparator
10099 Settings
10100 \family default
10101  menu item.
10102  (AGU articles are always in English, right? So 
10103 \emph on
10104 don't
10105 \emph default
10106  choose a language.)
10107 \end_layout
10108
10109 \begin_layout Enumerate
10110 Enter 
10111 \family typewriter
10112 jgrga
10113 \family default
10114  into the document's 
10115 \family sans
10116 Extra Options
10117 \family default
10118  field.
10119  (Yes, this is a bug.)
10120 \end_layout
10121
10122 \begin_layout Enumerate
10123 Make sure you use the 
10124 \family typewriter
10125 agu.bst
10126 \family default
10127  bibliography style, by entering 
10128 \family sans
10129 agu
10130 \family default
10131  into the second field of the Bib\SpecialChar TeX
10132  inset.
10133  None of the standard styles will do.
10134 \end_layout
10135
10136 \begin_layout Section
10137 Broadway
10138 \end_layout
10139
10140 \begin_layout Standard
10141 by 
10142 \shape smallcaps
10143 Garst Reese
10144 \end_layout
10145
10146 \begin_layout Subsection
10147 Introduction
10148 \end_layout
10149
10150 \begin_layout Standard
10151 Broadway is for writing plays.
10152  The format is more decorative than Hollywood, and much less standardized.
10153  This format should be suitable for workshops.
10154 \end_layout
10155
10156 \begin_layout Subsection
10157 Special problems
10158 \end_layout
10159
10160 \begin_layout Standard
10161 The same as in Hollywood.
10162 \end_layout
10163
10164 \begin_layout Subsection
10165 Special features
10166 \end_layout
10167
10168 \begin_layout Standard
10169 Insert the 
10170 \family sans
10171 Speaker
10172 \family default
10173  names as labels then cross-reference the label to insert the name.
10174  The cross-reference dialog will show the current cast of characters.
10175 \end_layout
10176
10177 \begin_layout Subsection
10178 Paper size and Margins
10179 \end_layout
10180
10181 \begin_layout Standard
10182 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10183 \end_layout
10184
10185 \begin_layout Subsection
10186 Environments
10187 \end_layout
10188
10189 \begin_layout Standard
10190 The following environments are available.
10191  You can use broadway.bind to get the bind keys shown at the right.
10192 \end_layout
10193
10194 \begin_layout Itemize
10195
10196 \family sans
10197 Standard
10198 \begin_inset Newline newline
10199 \end_inset
10200
10201
10202 \family default
10203 You should not have to use this, but it is here for anything that does not
10204  fit otherwise.
10205 \end_layout
10206
10207 \begin_layout Itemize
10208
10209 \family sans
10210 Narrative
10211 \begin_inset space \hfill{}
10212 \end_inset
10213
10214 M-z n
10215 \begin_inset Newline newline
10216 \end_inset
10217
10218
10219 \family default
10220 Used to describe stage setting and the action.
10221  First use of speaker names in all CAPs.
10222 \end_layout
10223
10224 \begin_layout Itemize
10225
10226 \family sans
10227 ACT
10228 \begin_inset space \hfill{}
10229 \end_inset
10230
10231 M-z a
10232 \begin_inset Newline newline
10233 \end_inset
10234
10235
10236 \family default
10237 Automatically numbered.
10238  On screen it will be arabic, but will print as Roman.
10239 \end_layout
10240
10241 \begin_layout Itemize
10242
10243 \family sans
10244 ACT*
10245 \begin_inset space \hfill{}
10246 \end_inset
10247
10248 M-z S at
10249 \begin_inset Newline newline
10250 \end_inset
10251
10252
10253 \family default
10254 Subtitle for 
10255 \family sans
10256 ACT.
10257
10258 \family default
10259  It is just centered text.
10260 \end_layout
10261
10262 \begin_layout Itemize
10263
10264 \family sans
10265 SCENE
10266 \begin_inset space \hfill{}
10267 \end_inset
10268
10269 M-z S-S
10270 \begin_inset Newline newline
10271 \end_inset
10272
10273
10274 \family default
10275 Not automatically numbered.
10276  You supply the number.
10277  This is because I couldn't figure out how.
10278 \end_layout
10279
10280 \begin_layout Itemize
10281
10282 \family sans
10283 AT_RISE:
10284 \begin_inset space \hfill{}
10285 \end_inset
10286
10287 M-z S-R
10288 \begin_inset Newline newline
10289 \end_inset
10290
10291
10292 \family default
10293 A special case of Narrative to describe the setting and action as the curtain
10294  rises.
10295 \end_layout
10296
10297 \begin_layout Itemize
10298
10299 \family sans
10300 Speaker
10301 \begin_inset space \hfill{}
10302 \end_inset
10303
10304 M-z s
10305 \begin_inset Newline newline
10306 \end_inset
10307
10308
10309 \family default
10310 The speaker's (actor's) title, centered in all CAPS.
10311 \end_layout
10312
10313 \begin_layout Itemize
10314
10315 \family sans
10316 Parenthetical
10317 \begin_inset space \hfill{}
10318 \end_inset
10319
10320 M-z p
10321 \begin_inset Newline newline
10322 \end_inset
10323
10324
10325 \family default
10326 Instructions to the speaker.
10327  The parentheses are automatically inserted.
10328  The ( will appear on screen, but both will be in the printed play.
10329  This environment is only used within 
10330 \family sans
10331 Dialogue
10332 \family default
10333 .
10334 \end_layout
10335
10336 \begin_layout Itemize
10337
10338 \family sans
10339 Dialogue
10340 \begin_inset space \hfill{}
10341 \end_inset
10342
10343 M-z d
10344 \begin_inset Newline newline
10345 \end_inset
10346
10347
10348 \family default
10349 What the Speaker says.
10350 \end_layout
10351
10352 \begin_layout Itemize
10353
10354 \family sans
10355 CURTAIN
10356 \begin_inset space \hfill{}
10357 \end_inset
10358
10359 M-z S-C
10360 \begin_inset Newline newline
10361 \end_inset
10362
10363
10364 \family default
10365 The curtain comes down.
10366 \end_layout
10367
10368 \begin_layout Itemize
10369
10370 \family sans
10371 Title
10372 \begin_inset space \hfill{}
10373 \end_inset
10374
10375 M-z S-T
10376 \end_layout
10377
10378 \begin_layout Itemize
10379
10380 \family sans
10381 Author
10382 \begin_inset space \hfill{}
10383 \end_inset
10384
10385 M-z S-A
10386 \end_layout
10387
10388 \begin_layout Itemize
10389
10390 \family sans
10391 Right_Address
10392 \begin_inset space \hfill{}
10393 \end_inset
10394
10395 M-z r
10396 \end_layout
10397
10398 \begin_layout Standard
10399 Hello there.
10400 \end_layout
10401
10402 \begin_layout Section
10403 Dinbrief
10404 \end_layout
10405
10406 \begin_layout Standard
10407 The document class 
10408 \family sans
10409 dinbrief
10410 \family default
10411  can be used to type letters according to German conventions.
10412  A template file is included in 
10413 \family typewriter
10414 .../lyx/share/templates
10415 \family default
10416  for you to use as a starting point.
10417 \end_layout
10418
10419 \begin_layout Section
10420 EGS journals (
10421 \family sans
10422 egs
10423 \family default
10424 )
10425 \end_layout
10426
10427 \begin_layout Standard
10428 by 
10429 \shape smallcaps
10430 Martin Vermeer
10431 \end_layout
10432
10433 \begin_layout Subsection
10434 Description
10435 \end_layout
10436
10437 \begin_layout Standard
10438 This is the layout file for the European Geophysical Society journals.
10439  The needed 
10440 \family typewriter
10441 egs.cls
10442 \family default
10443  can be downloaded from the web site of the EGS under 
10444 \begin_inset Flex URL
10445 status collapsed
10446
10447 \begin_layout Plain Layout
10448
10449 www.copernicus.org
10450 \end_layout
10451
10452 \end_inset
10453
10454 .
10455 \end_layout
10456
10457 \begin_layout Subsection
10458 New styles
10459 \end_layout
10460
10461 \begin_layout Standard
10462
10463 \family sans
10464 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10465  Accepted
10466 \family default
10467
10468 \family sans
10469 Offsets
10470 \family default
10471 .
10472  The current layout file is unfortunately very unmodular and would benefit
10473  from using the various 
10474 \family typewriter
10475 std*.inc
10476 \family default
10477  file inclusions.
10478 \end_layout
10479
10480 \begin_layout Section
10481 Elsevier Journals
10482 \end_layout
10483
10484 \begin_layout Standard
10485 See the \SpecialChar LyX
10486  template file 
10487 \family typewriter
10488 elsarticle.lyx
10489 \family default
10490 .
10491  It contains all infos you need.
10492 \end_layout
10493
10494 \begin_layout Section
10495 Foils [aka 
10496 \family sans
10497 Foil\SpecialChar TeX
10498
10499 \family default
10500 ]
10501 \begin_inset CommandInset label
10502 LatexCommand label
10503 name "sec:foiltex"
10504
10505 \end_inset
10506
10507
10508 \end_layout
10509
10510 \begin_layout Standard
10511 by 
10512 \noun on
10513 Allan Rae
10514 \end_layout
10515
10516 \begin_layout Subsection
10517 Introduction
10518 \end_layout
10519
10520 \begin_layout Standard
10521 This section describes how to use \SpecialChar LyX
10522  to make slides for overhead projectors.
10523  There are two document classes that can do this: the default slides class
10524  and the 
10525 \family sans
10526 Foil\SpecialChar TeX
10527
10528 \family default
10529  slides class.
10530  This section documents the latter.
10531 \end_layout
10532
10533 \begin_layout Standard
10534 I'm going to say this again, nice and clear, so that there's no misunderstanding
10535 :
10536 \end_layout
10537
10538 \begin_layout Standard
10539 \begin_inset VSpace bigskip
10540 \end_inset
10541
10542
10543 \end_layout
10544
10545 \begin_layout Standard
10546 \align center
10547
10548 \size large
10549 This section documents the class 
10550 \begin_inset Quotes eld
10551 \end_inset
10552
10553
10554 \family sans
10555 FoilTeX
10556 \family default
10557
10558 \begin_inset Quotes erd
10559 \end_inset
10560
10561  
10562 \emph on
10563 only.
10564 \end_layout
10565
10566 \begin_layout Standard
10567 \begin_inset VSpace bigskip
10568 \end_inset
10569
10570
10571 \end_layout
10572
10573 \begin_layout Standard
10574 If you're looking for the documentation for 
10575 \begin_inset Quotes eld
10576 \end_inset
10577
10578
10579 \family sans
10580 slides (default)
10581 \family default
10582
10583 \begin_inset Quotes erd
10584 \end_inset
10585
10586 , check out section
10587 \begin_inset space ~
10588 \end_inset
10589
10590
10591 \begin_inset CommandInset ref
10592 LatexCommand ref
10593 reference "sec:slitex"
10594
10595 \end_inset
10596
10597 .
10598  If your machine doesn't have the 
10599 \family sans
10600 foils
10601 \family default
10602  class 
10603 \family sans
10604 FoilTeX
10605 \family default
10606  installed, you'll probably have to use the default 
10607 \family sans
10608 slides
10609 \family default
10610  class, which isn't quite as good as 
10611 \family sans
10612 foils.
10613 \end_layout
10614
10615 \begin_layout Standard
10616 The 
10617 \family sans
10618 foils
10619 \family default
10620  class is designed for use with version
10621 \begin_inset space ~
10622 \end_inset
10623
10624 2.1 of the 
10625 \family sans
10626 foils.cls
10627 \family default
10628  \SpecialChar LaTeX
10629  class file which is now an integral part of \SpecialChar LaTeX2e
10630 .
10631 \end_layout
10632
10633 \begin_layout Subsection
10634 Getting Started
10635 \end_layout
10636
10637 \begin_layout Standard
10638 Obviously, to use this document class, you need to select 
10639 \family sans
10640 FoilTeX
10641 \family default
10642  from the 
10643 \family sans
10644 Class
10645 \family default
10646  entry in the 
10647 \family sans
10648 Document
10649 \begin_inset space ~
10650 \end_inset
10651
10652 Layout
10653 \family default
10654  dialog.
10655  There are some settings in the 
10656 \family sans
10657 Document
10658 \begin_inset space ~
10659 \end_inset
10660
10661 Layout
10662 \family default
10663  dialog that you should know about that are specific to this class:
10664 \end_layout
10665
10666 \begin_layout Itemize
10667 Don't change the options 
10668 \family sans
10669 Sides
10670 \family default
10671  and 
10672 \family sans
10673 Columns
10674 \family default
10675  on the 
10676 \family sans
10677 Document
10678 \begin_inset space ~
10679 \end_inset
10680
10681 Layout
10682 \family default
10683  dialog.
10684  They're ignored by the 
10685 \family sans
10686 foils
10687 \family default
10688  class.
10689 \end_layout
10690
10691 \begin_layout Itemize
10692 The default font size is 20
10693 \begin_inset space \thinspace{}
10694 \end_inset
10695
10696 pt with the other options being 17
10697 \begin_inset space \thinspace{}
10698 \end_inset
10699
10700 pt, 25
10701 \begin_inset space \thinspace{}
10702 \end_inset
10703
10704 pt and 30
10705 \begin_inset space \thinspace{}
10706 \end_inset
10707
10708 pt.
10709 \end_layout
10710
10711 \begin_layout Itemize
10712 The default font is 
10713 \family sans
10714 sans
10715 \family default
10716  
10717 \family sans
10718 serif
10719 \family default
10720  but all math equations are still typeset in the usual roman font.
10721 \end_layout
10722
10723 \begin_layout Itemize
10724
10725 \family sans
10726 Foil\SpecialChar TeX
10727
10728 \family default
10729  supports A4 and Letter paper sizes as well as a special size for working
10730  with 35
10731 \begin_inset space \thinspace{}
10732 \end_inset
10733
10734 mm slides.
10735  It doesn't support A5, B5, legal or executive paper sizes.
10736 \end_layout
10737
10738 \begin_layout Itemize
10739 Don't bother changing the 
10740 \family sans
10741 Float Placement
10742 \family default
10743  settings because they are ignored anyway.
10744  All floats appear where they are defined in the text.
10745 \end_layout
10746
10747 \begin_layout Itemize
10748 The 
10749 \family sans
10750 Pagestyle
10751 \family default
10752  setting behaves a bit differently for this class.
10753  
10754 \family sans
10755 Foil\SpecialChar TeX
10756
10757 \family default
10758  provides extensive footer and header capabilities including a user-defined
10759  logo.
10760  See section
10761 \begin_inset space ~
10762 \end_inset
10763
10764
10765 \begin_inset CommandInset ref
10766 LatexCommand ref
10767 reference "sec:foilfoot"
10768
10769 \end_inset
10770
10771  for more details.
10772  The title page is treated differently to all other pages in the document
10773  and is 
10774 \emph on
10775 always
10776 \emph default
10777  unnumbered and 
10778 \emph on
10779 always
10780 \emph default
10781  has the logo centered at the bottom of the page (if one is defined).
10782  The possible page style choices and what they do are as follows:
10783 \begin_inset Separator latexpar
10784 \end_inset
10785
10786
10787 \end_layout
10788
10789 \begin_deeper
10790 \begin_layout Labeling
10791 \labelwidthstring MMMMMMM
10792
10793 \family sans
10794 \series bold
10795 empty
10796 \family default
10797 \series default
10798  The final output contains no page numbers, or other headers or footers
10799  (except footnotes of course).
10800  
10801 \end_layout
10802
10803 \begin_layout Labeling
10804 \labelwidthstring MMMMMMM
10805
10806 \family sans
10807 \series bold
10808 plain
10809 \family default
10810 \series default
10811  The final output contains page numbers centered at the bottom of the page.
10812  No other headings or footers (other than footnotes).
10813 \end_layout
10814
10815 \begin_layout Labeling
10816 \labelwidthstring MMMMMMM
10817
10818 \series bold
10819 foilheadings
10820 \series default
10821  Page numbers in lower right corner.
10822  Additional headers and footers are also shown.
10823  This is also the default.
10824 \end_layout
10825
10826 \begin_layout Labeling
10827 \labelwidthstring MMMMMMM
10828
10829 \series bold
10830 fancy
10831 \series default
10832  Gives you access to the 
10833 \family sans
10834 fancyheadings
10835 \family default
10836  package although its use with 
10837 \family sans
10838 Foil\SpecialChar TeX
10839
10840 \family default
10841  is discouraged by the writer of the 
10842 \family sans
10843 Foil\SpecialChar TeX
10844
10845 \family default
10846  package because of some potential page layout clashes.
10847 \end_layout
10848
10849 \end_deeper
10850 \begin_layout Subsubsection
10851 Extra Options
10852 \end_layout
10853
10854 \begin_layout Standard
10855 The following options may be used in the extra class options in the 
10856 \family sans
10857 Document\SpecialChar menuseparator
10858 Settings
10859 \family default
10860  dialog.
10861 \end_layout
10862
10863 \begin_layout Labeling
10864 \labelwidthstring MMMMMMx
10865
10866 \series bold
10867 35mmSlide
10868 \series default
10869  This sets up the page layout for 7.33
10870 \begin_inset space \thinspace{}
10871 \end_inset
10872
10873 in by 11
10874 \begin_inset space \thinspace{}
10875 \end_inset
10876
10877 in paper, which is about the same aspect ratio as a 35
10878 \begin_inset space \thinspace{}
10879 \end_inset
10880
10881 mm slide, making it a bit easier to work with this medium.
10882 \end_layout
10883
10884 \begin_layout Labeling
10885 \labelwidthstring MMMMMMx
10886
10887 \series bold
10888 headrule
10889 \series default
10890  Places a rule across the page below the header on every page except the
10891  title page.
10892 \end_layout
10893
10894 \begin_layout Labeling
10895 \labelwidthstring MMMMMMx
10896
10897 \series bold
10898 footrule
10899 \series default
10900  Places a rule across the page above the footer on every page except the
10901  title page.
10902 \end_layout
10903
10904 \begin_layout Labeling
10905 \labelwidthstring MMMMMMx
10906
10907 \series bold
10908 dvips
10909 \series default
10910  This is automatically set each time you create a new 
10911 \family sans
10912 foils
10913 \family default
10914  document.
10915  This option tells 
10916 \family sans
10917 Foil\SpecialChar TeX
10918
10919 \family default
10920  to use the dvips driver to rotate those pages that are set as landscape
10921  foils.
10922 \end_layout
10923
10924 \begin_layout Labeling
10925 \labelwidthstring MMMMMMx
10926
10927 \series bold
10928 landscape
10929 \series default
10930  Simply changes the page dimensions to those of a landscape page but doesn't
10931  do any rotation.
10932  Thus if you use this option you need to use an external program to rotate
10933  each page or feed your paper through your printer as landscape.
10934  Note that this option effectively reverses the roles of the 
10935 \family sans
10936 Foilhead
10937 \family default
10938  and 
10939 \family sans
10940 Rotatefoilhead
10941 \family default
10942  environments (don't worry these are described in the next section).
10943 \end_layout
10944
10945 \begin_layout Labeling
10946 \labelwidthstring MMMMMMx
10947
10948 \series bold
10949 leqno
10950 \series default
10951  Equation numbers on the left.
10952 \end_layout
10953
10954 \begin_layout Labeling
10955 \labelwidthstring MMMMMMx
10956
10957 \series bold
10958 fleqn
10959 \series default
10960  Flush-left equations.
10961 \end_layout
10962
10963 \begin_layout Subsection
10964 Supported Environments
10965 \end_layout
10966
10967 \begin_layout Standard
10968 Most of the environments commonly supported in other classes are also supported
10969  by the 
10970 \family sans
10971 foils
10972 \family default
10973  class.
10974  There are several additional environments provided by 
10975 \family sans
10976 Foil\SpecialChar TeX
10977
10978 \family default
10979  as well as a couple added by \SpecialChar LyX
10980 .
10981  The following environments are shared with other classes:
10982 \end_layout
10983
10984 \begin_layout Standard
10985 \begin_inset Flex Multiple Columns
10986 status open
10987
10988 \begin_layout Itemize
10989
10990 \family sans
10991 Standard
10992 \end_layout
10993
10994 \begin_layout Itemize
10995
10996 \family sans
10997 Itemize
10998 \end_layout
10999
11000 \begin_layout Itemize
11001
11002 \family sans
11003 Enumerate
11004 \end_layout
11005
11006 \begin_layout Itemize
11007
11008 \family sans
11009 Description
11010 \end_layout
11011
11012 \begin_layout Itemize
11013
11014 \family sans
11015 List
11016 \end_layout
11017
11018 \begin_layout Itemize
11019
11020 \family sans
11021 \SpecialChar LyX
11022 -Code
11023 \end_layout
11024
11025 \begin_layout Itemize
11026
11027 \family sans
11028 Verse
11029 \end_layout
11030
11031 \begin_layout Itemize
11032
11033 \family sans
11034 Quote
11035 \end_layout
11036
11037 \begin_layout Itemize
11038
11039 \family sans
11040 Quotation
11041 \end_layout
11042
11043 \begin_layout Itemize
11044
11045 \family sans
11046 Title
11047 \end_layout
11048
11049 \begin_layout Itemize
11050
11051 \family sans
11052 Author
11053 \end_layout
11054
11055 \begin_layout Itemize
11056
11057 \family sans
11058 Date
11059 \end_layout
11060
11061 \begin_layout Itemize
11062
11063 \family sans
11064 Abstract
11065 \end_layout
11066
11067 \begin_layout Itemize
11068
11069 \family sans
11070 Bibliography
11071 \end_layout
11072
11073 \begin_layout Itemize
11074
11075 \family sans
11076 Address
11077 \end_layout
11078
11079 \begin_layout Itemize
11080
11081 \family sans
11082 RightAddress
11083 \end_layout
11084
11085 \begin_layout Itemize
11086
11087 \family sans
11088 Caption
11089 \end_layout
11090
11091 \begin_layout Itemize
11092
11093 \family sans
11094 Comment
11095 \end_layout
11096
11097 \end_inset
11098
11099
11100 \end_layout
11101
11102 \begin_layout Standard
11103 That is, all the major environments apart from the sectioning environments.
11104  Since foils are essentially self-contained sections, with a title and body,
11105  
11106 \family sans
11107 Foil\SpecialChar TeX
11108
11109 \family default
11110  provides specific commands for starting new foils and these are:
11111 \end_layout
11112
11113 \begin_layout Itemize
11114
11115 \family sans
11116 Foilhead
11117 \end_layout
11118
11119 \begin_layout Itemize
11120
11121 \family sans
11122 Rotatefoilhead
11123 \end_layout
11124
11125 \begin_layout Standard
11126 \SpecialChar LyX
11127  also provides slightly modified versions of these two environments called:
11128 \end_layout
11129
11130 \begin_layout Itemize
11131
11132 \family sans
11133 ShortFoilhead
11134 \end_layout
11135
11136 \begin_layout Itemize
11137
11138 \family sans
11139 ShortRotatefoilhead
11140 \end_layout
11141
11142 \begin_layout Standard
11143 and the differences will be explained in the next section.
11144 \end_layout
11145
11146 \begin_layout Standard
11147 Since foils are often used in presenting ideas or new theorems and such
11148  
11149 \family sans
11150 Foil\SpecialChar TeX
11151
11152 \family default
11153  also provides a comprehensive box of goodies for presenting them:
11154 \end_layout
11155
11156 \begin_layout Standard
11157 \begin_inset Flex Multiple Columns
11158 status open
11159
11160 \begin_layout Itemize
11161
11162 \family sans
11163 Theorem
11164 \end_layout
11165
11166 \begin_layout Itemize
11167
11168 \family sans
11169 Lemma
11170 \end_layout
11171
11172 \begin_layout Itemize
11173
11174 \family sans
11175 Corollary
11176 \end_layout
11177
11178 \begin_layout Itemize
11179
11180 \family sans
11181 Proposition
11182 \end_layout
11183
11184 \begin_layout Itemize
11185
11186 \family sans
11187 Definition
11188 \end_layout
11189
11190 \begin_layout Itemize
11191
11192 \family sans
11193 Proof
11194 \end_layout
11195
11196 \begin_layout Itemize
11197
11198 \family sans
11199 Theorem*
11200 \end_layout
11201
11202 \begin_layout Itemize
11203
11204 \family sans
11205 Lemma*
11206 \end_layout
11207
11208 \begin_layout Itemize
11209
11210 \family sans
11211 Corollary*
11212 \end_layout
11213
11214 \begin_layout Itemize
11215
11216 \family sans
11217 Proposition*
11218 \end_layout
11219
11220 \begin_layout Itemize
11221
11222 \family sans
11223 Definition*
11224 \end_layout
11225
11226 \end_inset
11227
11228
11229 \end_layout
11230
11231 \begin_layout Standard
11232 The starred versions are unnumbered while the unstarred versions are numbered.
11233  There are also two list environments added by \SpecialChar LyX
11234  and these are:
11235 \end_layout
11236
11237 \begin_layout Itemize
11238
11239 \family sans
11240 TickList
11241 \end_layout
11242
11243 \begin_layout Itemize
11244
11245 \family sans
11246 CrossList
11247 \end_layout
11248
11249 \begin_layout Standard
11250
11251 \family sans
11252 Foil\SpecialChar TeX
11253
11254 \family default
11255  provides some powerful header and footer capabilities that are best set
11256  in the preamble although they may be set at any point in a document.
11257  If you want to change these settings in your document the best place to
11258  do so is at the very top of a foil, i.
11259 \begin_inset space \thinspace{}
11260 \end_inset
11261
11262 e.
11263 \emph on
11264
11265 \begin_inset space \space{}
11266 \end_inset
11267
11268
11269 \emph default
11270 straight after the foilhead.
11271 \end_layout
11272
11273 \begin_layout Standard
11274 For this purpose, the following command styles are provided [
11275 \shape smallcaps
11276 Martin Vermeer
11277 \shape default
11278 ]:
11279 \end_layout
11280
11281 \begin_layout Standard
11282 \begin_inset Flex Multiple Columns
11283 status open
11284
11285 \begin_layout Itemize
11286
11287 \family sans
11288 My
11289 \begin_inset space ~
11290 \end_inset
11291
11292 Logo
11293 \end_layout
11294
11295 \begin_layout Itemize
11296
11297 \family sans
11298 Restriction
11299 \end_layout
11300
11301 \begin_layout Itemize
11302
11303 \family sans
11304 Right
11305 \begin_inset space ~
11306 \end_inset
11307
11308 Footer
11309 \end_layout
11310
11311 \begin_layout Itemize
11312
11313 \family sans
11314 Right
11315 \begin_inset space ~
11316 \end_inset
11317
11318 Header
11319 \end_layout
11320
11321 \begin_layout Itemize
11322
11323 \family sans
11324 Left
11325 \begin_inset space ~
11326 \end_inset
11327
11328 Header
11329 \family default
11330
11331 \begin_inset Separator latexpar
11332 \end_inset
11333
11334
11335 \end_layout
11336
11337 \begin_deeper
11338 \begin_layout Plain Layout
11339 \begin_inset space ~
11340 \end_inset
11341
11342
11343 \end_layout
11344
11345 \end_deeper
11346 \end_inset
11347
11348
11349 \end_layout
11350
11351 \begin_layout Standard
11352 There are also a few commands provided by 
11353 \family sans
11354 Foil\SpecialChar TeX
11355
11356 \family default
11357  that aren't directly supported by \SpecialChar LyX
11358  but I'll tell you what they do and how
11359  to use them in section
11360 \begin_inset space ~
11361 \end_inset
11362
11363
11364 \begin_inset CommandInset ref
11365 LatexCommand ref
11366 reference "sec:unsuppfoils"
11367
11368 \end_inset
11369
11370 .
11371 \end_layout
11372
11373 \begin_layout Subsection
11374 Building a Set of Foils
11375 \end_layout
11376
11377 \begin_layout Standard
11378 This section will give a simple introduction to using the different environments
11379  to build a set of foils.
11380  If you want to see an example set of foils, take a look at the 
11381 \family typewriter
11382 Foils.lyx
11383 \family default
11384  file you find in \SpecialChar LyX
11385 's 
11386 \family typewriter
11387 examples
11388 \family default
11389  folder.
11390 \end_layout
11391
11392 \begin_layout Subsubsection
11393 Give It a Title Page
11394 \end_layout
11395
11396 \begin_layout Standard
11397 Unlike other classes that provide 
11398 \family sans
11399 Title
11400 \family default
11401
11402 \family sans
11403 Author
11404 \family default
11405
11406 \family sans
11407 Date
11408 \family default
11409  and 
11410 \family sans
11411 Abstract
11412 \family default
11413  environments, 
11414 \family sans
11415 foils
11416 \family default
11417  creates the title on a page of its own.
11418  If you leave out the 
11419 \family sans
11420 Date
11421 \family default
11422  environment \SpecialChar LaTeX
11423  will substitute the current date (every time you regenerate
11424  the output).
11425 \end_layout
11426
11427 \begin_layout Subsubsection
11428 Start a New Foil
11429 \end_layout
11430
11431 \begin_layout Standard
11432 As I mentioned earlier, there are four ways of starting a new foil.
11433  For portrait foils you should use 
11434 \family sans
11435 Foilhead
11436 \family default
11437  or 
11438 \family sans
11439 ShortFoilhead.
11440
11441 \family default
11442  The difference between these two environments is the amount of space between
11443  the title of the foil (the foilhead) and the body of the foil.
11444 \end_layout
11445
11446 \begin_layout Standard
11447 Landscape foils are generated using the 
11448 \family sans
11449 Rotatefoilhead
11450 \family default
11451  and 
11452 \family sans
11453 ShortRotatefoilhead
11454 \family default
11455  environments.
11456  Again the only difference is the spacing between foilhead and body.
11457  Both of the short versions have 0.5
11458 \begin_inset space ~
11459 \end_inset
11460
11461 inches less separation between the foilhead and the body.
11462  
11463 \end_layout
11464
11465 \begin_layout Standard
11466 One problem with the support for landscape foils is the requirement that
11467  you have to use the 
11468 \family typewriter
11469 dvips
11470 \family default
11471  driver to generate the PostScript output otherwise the foils won't be rotated.
11472  It is possible to get landscape foils even if you haven't got the 
11473 \family typewriter
11474 dvips
11475 \family default
11476  driver provided you can feed your foils sideways through your printer ;-)
11477 \end_layout
11478
11479 \begin_layout Subsubsection
11480 Theorems, Lemmas, Proofs and more
11481 \end_layout
11482
11483 \begin_layout Standard
11484 Due to a small bug in \SpecialChar LyX
11485  you can't have two of the same type of these environments
11486  directly following each other.
11487  They must be separated by something.
11488  If you try, you will just be extending the previous environment as if you
11489  had merged the two environments together.
11490  So, how do you get around this problem? The simplest option is to insert
11491  some text between the two environments or add a 
11492 \family sans
11493 \SpecialChar LaTeX
11494
11495 \family default
11496  environment between the two with just a 
11497 \begin_inset Quotes eld
11498 \end_inset
11499
11500
11501 \family typewriter
11502 %
11503 \family default
11504
11505 \begin_inset Quotes erd
11506 \end_inset
11507
11508  in it.
11509  This will force \SpecialChar LyX
11510  to produce two separate environments and hence the correct
11511  \SpecialChar LaTeX
11512  output.
11513  An example is provided in the example file included with the \SpecialChar LyX
11514  distribution.
11515  Remember, this problem only occurs if you are trying to place two of the
11516  same type of theorem-like environments one directly after the other.
11517 \end_layout
11518
11519 \begin_layout Subsubsection
11520 Lists
11521 \end_layout
11522
11523 \begin_layout Standard
11524 You get all the commonly supported list styles found in other classes as
11525  well as two new ones.
11526  I'll only describe the new ones here.
11527  If you want to find out more about the other list environments check out
11528  the 
11529 \emph on
11530 User's Guide.
11531
11532 \emph default
11533  If you intend to use itemized lists you might also want to read about the
11534  
11535 \family sans
11536 Itemize
11537 \begin_inset space ~
11538 \end_inset
11539
11540 Bullet
11541 \begin_inset space ~
11542 \end_inset
11543
11544 Selection
11545 \family default
11546  dialog described above in section
11547 \begin_inset space ~
11548 \end_inset
11549
11550
11551 \begin_inset CommandInset ref
11552 LatexCommand ref
11553 reference "sec:bullet"
11554
11555 \end_inset
11556
11557 .
11558 \end_layout
11559
11560 \begin_layout Standard
11561 The two new list styles, 
11562 \family sans
11563 TickList
11564 \family default
11565  and 
11566 \family sans
11567 CrossList
11568 \family default
11569 , are designed to make it easier for you to create lists of do's and don'ts
11570  or right and wrong by providing dedicated environments that use a tick
11571  or a cross as the label of the list.
11572  These lists are in fact dedicated variants of the 
11573 \family sans
11574 Itemize
11575 \family default
11576  environment.
11577  They do however require that you have the 
11578 \family typewriter
11579 psnfss
11580 \family default
11581  packages installed.
11582 \end_layout
11583
11584 \begin_layout Subsubsection
11585 Figures and Tables
11586 \end_layout
11587
11588 \begin_layout Standard
11589
11590 \family sans
11591 Foil\SpecialChar TeX
11592
11593 \family default
11594  redefines the floating tables and figures so that they appear exactly where
11595  they are in the text rather than pushing them to the top of the page or
11596  to some user specified location.
11597  In fact if you change the float placement settings they are simply ignored.
11598 \end_layout
11599
11600 \begin_layout Subsubsection
11601 Page Headers and Footers
11602 \begin_inset CommandInset label
11603 LatexCommand label
11604 name "sec:foilfoot"
11605
11606 \end_inset
11607
11608
11609 \end_layout
11610
11611 \begin_layout Standard
11612
11613 \family sans
11614 My
11615 \begin_inset space ~
11616 \end_inset
11617
11618 Logo
11619 \family default
11620  and 
11621 \family sans
11622 Restriction
11623 \family default
11624  are two commands used to control the left-footer text string.
11625  The first is meant to allow you to include a graphic logo on your foils
11626  and defaults to 
11627 \begin_inset Quotes eld
11628 \end_inset
11629
11630 -Typeset by 
11631 \family sans
11632 Foil\SpecialChar TeX
11633
11634 \family default
11635 -
11636 \begin_inset Quotes erd
11637 \end_inset
11638
11639 .
11640  While the second is meant to provide a classification for the audience,
11641  
11642 \emph on
11643 e.
11644 \begin_inset space \thinspace{}
11645 \end_inset
11646
11647 g.
11648 \emph default
11649
11650 \begin_inset space \space{}
11651 \end_inset
11652
11653 Confidential.
11654  It is empty by default.
11655 \end_layout
11656
11657 \begin_layout Standard
11658 The remaining page corners can be filled by 
11659 \family sans
11660 Right
11661 \begin_inset space ~
11662 \end_inset
11663
11664 Footer
11665 \family default
11666  (which defaults to page numbers), 
11667 \family sans
11668 Right
11669 \begin_inset space ~
11670 \end_inset
11671
11672 Header
11673 \family default
11674  (top right) and 
11675 \family sans
11676 Left
11677 \begin_inset space ~
11678 \end_inset
11679
11680 Header
11681 \family default
11682  (top left).
11683 \end_layout
11684
11685 \begin_layout Subsection
11686 Unsupported 
11687 \family sans
11688 Foil\SpecialChar TeX
11689
11690 \family default
11691  Goodies
11692 \begin_inset CommandInset label
11693 LatexCommand label
11694 name "sec:unsuppfoils"
11695
11696 \end_inset
11697
11698
11699 \end_layout
11700
11701 \begin_layout Standard
11702 All the commands mentioned below need to be set in a 
11703 \family sans
11704 \SpecialChar LaTeX
11705
11706 \family default
11707  environment or as 
11708 \family sans
11709 \SpecialChar TeX
11710
11711 \family default
11712  within another environment.
11713 \end_layout
11714
11715 \begin_layout Subsubsection
11716 Lengths
11717 \end_layout
11718
11719 \begin_layout Standard
11720 All lengths are adjusted using the 
11721 \family typewriter
11722
11723 \backslash
11724 setlength{
11725 \family default
11726 \emph on
11727 lengthname
11728 \family typewriter
11729 \emph default
11730 }{
11731 \family default
11732 \emph on
11733 newlength
11734 \family typewriter
11735 \emph default
11736 }
11737 \family default
11738  command.
11739  Where 
11740 \emph on
11741 lengthname
11742 \emph default
11743  should be replaced by the name given to the length you want to change and
11744  
11745 \emph on
11746 newlength
11747 \emph default
11748  is the length value.
11749  All lengths should be specified in units of length such as inches (
11750 \family typewriter
11751 in
11752 \family default
11753 ), millimeters (
11754 \family typewriter
11755 mm
11756 \family default
11757 ) or points (
11758 \family typewriter
11759 pt
11760 \family default
11761 ) or relative to some document or font-based length such as 
11762 \family typewriter
11763
11764 \backslash
11765 textwidth
11766 \family default
11767 .
11768  
11769 \end_layout
11770
11771 \begin_layout Standard
11772 It's possible to change the spacing between a foilhead and the body of the
11773  foil by adjusting the length specified by 
11774 \family typewriter
11775
11776 \backslash
11777 foilheadskip
11778 \family default
11779 .
11780  For example, to make 
11781 \emph on
11782 all
11783 \emph default
11784  foilheads 0.5
11785 \begin_inset space \space{}
11786 \end_inset
11787
11788 in closer to their bodies put the following in the preamble: 
11789 \family typewriter
11790
11791 \backslash
11792 setlength{
11793 \backslash
11794 foilheadskip}{-0.5in}
11795 \end_layout
11796
11797 \begin_layout Standard
11798 The spacings around floats can be adjusted by setting these lengths:
11799 \end_layout
11800
11801 \begin_layout Labeling
11802 \labelwidthstring MMMMMMMMMMM
11803
11804 \family typewriter
11805
11806 \backslash
11807 abovefloatskip
11808 \family default
11809  Separation between the text and the top of the float
11810 \end_layout
11811
11812 \begin_layout Labeling
11813 \labelwidthstring MMMMMMMMMMM
11814
11815 \family typewriter
11816
11817 \backslash
11818 abovecaptionskip
11819 \family default
11820  Separation between the float and the caption
11821 \end_layout
11822
11823 \begin_layout Labeling
11824 \labelwidthstring MMMMMMMMMMM
11825
11826 \family typewriter
11827
11828 \backslash
11829 belowcaptionskip
11830 \family default
11831  Separation between the caption and the following text
11832 \end_layout
11833
11834 \begin_layout Labeling
11835 \labelwidthstring MMMMMMMMMMM
11836
11837 \family typewriter
11838
11839 \backslash
11840 captionwidth
11841 \family default
11842  You can make the captions narrower than the surrounding text by adjusting
11843  this length.
11844  Best done relative to 
11845 \family typewriter
11846
11847 \backslash
11848 textwidth
11849 \family default
11850 .
11851 \end_layout
11852
11853 \begin_layout Standard
11854 There are also several title page related lengths that you may find useful
11855  if you have a long title or several authors:
11856 \end_layout
11857
11858 \begin_layout Labeling
11859 \labelwidthstring MMMMMMMMMMM
11860
11861 \family typewriter
11862
11863 \backslash
11864 abovetitleskip
11865 \family default
11866  Separation from headers to 
11867 \family sans
11868 Title
11869 \end_layout
11870
11871 \begin_layout Labeling
11872 \labelwidthstring MMMMMMMMMMM
11873
11874 \family typewriter
11875
11876 \backslash
11877 titleauthorskip
11878 \family default
11879  between 
11880 \family sans
11881 Title
11882 \family default
11883  and 
11884 \family sans
11885 Author
11886 \family default
11887  environments
11888 \end_layout
11889
11890 \begin_layout Labeling
11891 \labelwidthstring MMMMMMMMMMM
11892
11893 \family typewriter
11894
11895 \backslash
11896 authorauthorskip
11897 \family default
11898  between multiple 
11899 \family sans
11900 Author
11901 \family default
11902  lines
11903 \end_layout
11904
11905 \begin_layout Labeling
11906 \labelwidthstring MMMMMMMMMMM
11907
11908 \family typewriter
11909
11910 \backslash
11911 authordateskip
11912 \family default
11913  between the 
11914 \family sans
11915 Author
11916 \family default
11917  and the 
11918 \family sans
11919 Date
11920 \end_layout
11921
11922 \begin_layout Labeling
11923 \labelwidthstring MMMMMMMMMMM
11924
11925 \family typewriter
11926
11927 \backslash
11928 dateabstractskip
11929 \family default
11930  between the 
11931 \family sans
11932 Date
11933 \family default
11934  and the 
11935 \family sans
11936 Abstract
11937 \end_layout
11938
11939 \begin_layout Standard
11940 The last length related command affects all the list environments.
11941  If you place 
11942 \family typewriter
11943
11944 \backslash
11945 zerolistvertdimens
11946 \family default
11947  
11948 \emph on
11949 inside
11950 \emph default
11951  a list environment then all the vertical spacing between the list items
11952  is removed.
11953  Note that this is a command not a length so it doesn't require 
11954 \family typewriter
11955
11956 \backslash
11957 setlength
11958 \family default
11959  like the stuff mentioned above.
11960 \end_layout
11961
11962 \begin_layout Subsubsection
11963 Headers and Footers
11964 \end_layout
11965
11966 \begin_layout Standard
11967 The 
11968 \family typewriter
11969
11970 \backslash
11971 LogoOn
11972 \family default
11973  and 
11974 \family typewriter
11975
11976 \backslash
11977 LogoOff
11978 \family default
11979  commands control whether the logo in the 
11980 \family sans
11981 MyLogo
11982 \family default
11983  definition appear on a given page.
11984  If you put 
11985 \family typewriter
11986
11987 \backslash
11988 LogoOff
11989 \family default
11990  in the preamble then none of the foils will have the logo on them.
11991  If you don't want the logo on a particular page place the 
11992 \family typewriter
11993
11994 \backslash
11995 LogoOff
11996 \family default
11997  directly after the foilhead of that page and the 
11998 \family typewriter
11999
12000 \backslash
12001 LogoOn
12002 \family default
12003  directly after the next foilhead.
12004 \end_layout
12005
12006 \begin_layout Standard
12007 If you decide to use the 
12008 \family sans
12009 fancy
12010 \family default
12011  page style setting in the 
12012 \family sans
12013 Document
12014 \begin_inset space ~
12015 \end_inset
12016
12017 Layout
12018 \family default
12019  dialog you should probably add 
12020 \family typewriter
12021
12022 \backslash
12023 let
12024 \backslash
12025 headwidth
12026 \backslash
12027 textwidth
12028 \family default
12029  to your preamble so headers and footers on landscape pages are correctly
12030  placed when rotated.
12031  This is due to some clashes between the page layouts provided by the 
12032 \family sans
12033 fancyheadings
12034 \family default
12035  package and the 
12036 \family sans
12037 foils
12038 \family default
12039  class.
12040 \end_layout
12041
12042 \begin_layout Section
12043 Hollywood (Hollywood spec scripts)
12044 \end_layout
12045
12046 \begin_layout Standard
12047 by 
12048 \shape smallcaps
12049 Garst Reese
12050 \end_layout
12051
12052 \begin_layout Subsection
12053 Introduction
12054 \end_layout
12055
12056 \begin_layout Standard
12057 Getting the format of a Hollywood script right is a 
12058 \begin_inset Quotes eld
12059 \end_inset
12060
12061 rite of passage.
12062 \begin_inset Quotes erd
12063 \end_inset
12064
12065  It is designed to make the readers focus on content and to be easy and
12066  familiar for the actors to read.
12067  Each page of a script should be one minute of film.
12068  Nothing goes in a script that you cannot see or hear on screen.
12069  The courier 12 pt font should be used throughout.
12070  No italics.
12071 \end_layout
12072
12073 \begin_layout Subsection
12074 Special problems
12075 \end_layout
12076
12077 \begin_layout Standard
12078 Speakers' lines should NEVER break in mid-sentence.
12079  If a speaker's lines continue over a page break, repeat the 
12080 \family sans
12081 Speaker
12082 \family default
12083  title followed by (Cont'd).
12084 \end_layout
12085
12086 \begin_layout Subsection
12087 Special features
12088 \end_layout
12089
12090 \begin_layout Standard
12091 Insert the 
12092 \family sans
12093 Speaker
12094 \family default
12095  names as labels then cross-reference the label to insert the name.
12096  The cross-reference dialog will show the current cast of characters.
12097  You can use this to insert the speaker name in narratives also.
12098 \end_layout
12099
12100 \begin_layout Subsection
12101 Paper size and Margins
12102 \end_layout
12103
12104 \begin_layout Standard
12105 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12106 \end_layout
12107
12108 \begin_layout Subsection
12109 Environments
12110 \end_layout
12111
12112 \begin_layout Standard
12113 The following environments are available.
12114  You can use hollywood.bind to get the bind keys shown at the right.
12115 \end_layout
12116
12117 \begin_layout Itemize
12118
12119 \family sans
12120 Standard
12121 \begin_inset Newline newline
12122 \end_inset
12123
12124
12125 \family default
12126 Used where nothing else works.
12127  Try to avoid it.
12128 \end_layout
12129
12130 \begin_layout Itemize
12131
12132 \family sans
12133 FADE_IN
12134 \family default
12135 :
12136 \begin_inset space \hfill{}
12137 \end_inset
12138
12139
12140 \family sans
12141 M-z S-I
12142 \family default
12143
12144 \begin_inset Newline newline
12145 \end_inset
12146
12147 Usually followed by something like 
12148 \begin_inset Quotes eld
12149 \end_inset
12150
12151 on Sally waking up.
12152 \begin_inset Quotes erd
12153 \end_inset
12154
12155
12156 \end_layout
12157
12158 \begin_layout Itemize
12159
12160 \family sans
12161 INT:
12162 \begin_inset space \hfill{}
12163 \end_inset
12164
12165 M-z i
12166 \begin_inset Newline newline
12167 \end_inset
12168
12169
12170 \family default
12171 Introduces a new INTERIOR camera set-up.
12172  Always followed by DAY or NIGHT, or something similar to define the lighting
12173  required.
12174  Everthing on this line in CAPS.
12175 \end_layout
12176
12177 \begin_layout Itemize
12178
12179 \family sans
12180 EXT:
12181 \begin_inset space \hfill{}
12182 \end_inset
12183
12184 M-z e
12185 \begin_inset Newline newline
12186 \end_inset
12187
12188
12189 \family default
12190 Introduces a new EXTERIOR camera set-up.
12191  Everthing on this line in CAPS.
12192 \end_layout
12193
12194 \begin_layout Itemize
12195
12196 \family sans
12197 Speaker
12198 \begin_inset space \hfill{}
12199 \end_inset
12200
12201 M-z s
12202 \begin_inset Newline newline
12203 \end_inset
12204
12205
12206 \family default
12207 The character speaking.
12208 \end_layout
12209
12210 \begin_layout Itemize
12211
12212 \family sans
12213 Parenthetical
12214 \begin_inset space \hfill{}
12215 \end_inset
12216
12217 M-z p
12218 \begin_inset Newline newline
12219 \end_inset
12220
12221
12222 \family default
12223 Instructions to the speaker.
12224  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12225 .
12226  Both will be printed.
12227 \end_layout
12228
12229 \begin_layout Itemize
12230
12231 \family sans
12232 Dialogue
12233 \begin_inset space \hfill{}
12234 \end_inset
12235
12236 M-z d
12237 \begin_inset Newline newline
12238 \end_inset
12239
12240
12241 \family default
12242 What the 
12243 \family sans
12244 Speaker
12245 \family default
12246  says.
12247 \end_layout
12248
12249 \begin_layout Itemize
12250
12251 \family sans
12252 Transition
12253 \begin_inset space \hfill{}
12254 \end_inset
12255
12256 M-z t
12257 \begin_inset Newline newline
12258 \end_inset
12259
12260
12261 \family default
12262 Camera movement instruction.
12263  e.
12264 \begin_inset space \thinspace{}
12265 \end_inset
12266
12267 g.
12268 \begin_inset space \space{}
12269 \end_inset
12270
12271 CUT TO:
12272 \end_layout
12273
12274 \begin_layout Itemize
12275
12276 \family sans
12277 FADE OUT:
12278 \begin_inset space \hfill{}
12279 \end_inset
12280
12281 M-z S-I
12282 \end_layout
12283
12284 \begin_layout Itemize
12285
12286 \family sans
12287 Author
12288 \begin_inset space \hfill{}
12289 \end_inset
12290
12291 M-z S-A
12292 \end_layout
12293
12294 \begin_layout Itemize
12295
12296 \family sans
12297 Title
12298 \begin_inset space \hfill{}
12299 \end_inset
12300
12301 M-z S-T
12302 \end_layout
12303
12304 \begin_layout Itemize
12305
12306 \family sans
12307 Right_Address
12308 \begin_inset space \hfill{}
12309 \end_inset
12310
12311 M-z r
12312 \end_layout
12313
12314 \begin_layout Subsection
12315 Script jargon
12316 \end_layout
12317
12318 \begin_layout Itemize
12319 (O.S) — off screen
12320 \end_layout
12321
12322 \begin_layout Itemize
12323 (V.0) — voice over
12324 \end_layout
12325
12326 \begin_layout Itemize
12327 b.
12328 \begin_inset space \thinspace{}
12329 \end_inset
12330
12331 g.
12332  — background
12333 \end_layout
12334
12335 \begin_layout Itemize
12336 C.U.
12337  — close-up
12338 \end_layout
12339
12340 \begin_layout Itemize
12341 PAN — camera movement
12342 \end_layout
12343
12344 \begin_layout Itemize
12345 INSERT — cut to close-up of
12346 \end_layout
12347
12348 \begin_layout Section
12349 ijmpc and ijmpd
12350 \end_layout
12351
12352 \begin_layout Standard
12353 by 
12354 \noun on
12355 Panayotis Papasotiriou
12356 \end_layout
12357
12358 \begin_layout Subsection
12359 Overview
12360 \end_layout
12361
12362 \begin_layout Standard
12363 The ijmpc package is a set of macros that facilitates electronic manuscript
12364  submission to the 
12365 \emph on
12366 International Journal of Modern Physics C
12367 \emph default
12368 .
12369  Similarly, the ijmpd package is for creating manuscripts to be submitted
12370  to the 
12371 \emph on
12372 International Journal of Modern Physics D
12373 \emph default
12374 .
12375  Both journals are published by World Scientific.
12376  The corresponding document classes are named 
12377 \family typewriter
12378 ws-ijmpc.cls
12379 \family default
12380  and 
12381 \family typewriter
12382 ws-ijmpd.cls
12383 \family default
12384 , respectively.
12385  These files, together with instructions for the authors, can be downloaded
12386  from the sites 
12387 \begin_inset Flex URL
12388 status collapsed
12389
12390 \begin_layout Plain Layout
12391
12392 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12393 \end_layout
12394
12395 \end_inset
12396
12397  and 
12398 \begin_inset Flex URL
12399 status collapsed
12400
12401 \begin_layout Plain Layout
12402
12403 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12404 \end_layout
12405
12406 \end_inset
12407
12408 .
12409  Both packages are modified versions of the standard 
12410 \begin_inset Quotes eld
12411 \end_inset
12412
12413 article
12414 \begin_inset Quotes erd
12415 \end_inset
12416
12417  package, and they are almost (but not exactly) identical.
12418  Most of their features are supported by \SpecialChar LyX
12419 .
12420  I have used \SpecialChar LyX
12421  successfully to write articles submitted to both journals
12422  without any problem.
12423 \end_layout
12424
12425 \begin_layout Subsection
12426 Writing a paper
12427 \end_layout
12428
12429 \begin_layout Standard
12430 As usual, the easiest way to write a paper is to start with a template.
12431  Click on 
12432 \family sans
12433 File\SpecialChar menuseparator
12434 New from
12435 \family default
12436  
12437 \family sans
12438 Template
12439 \family default
12440 , then choose the 
12441 \family typewriter
12442 ijmpc.lyx
12443 \family default
12444  or 
12445 \family typewriter
12446 ijmpd.lyx
12447 \family default
12448  template.
12449  This will give an (almost) empty document that includes the most common
12450  fields found in a manuscript.
12451  Simply overwrite the existing text (including the brackets, 
12452 \family typewriter
12453 <>
12454 \family default
12455 ) with your text.
12456  You should keep in mind the following remarks.
12457 \end_layout
12458
12459 \begin_layout Enumerate
12460 \SpecialChar LyX
12461  won't let you change the font size and the page style of the document,
12462  because such modifications are not allowed by both packages.
12463 \end_layout
12464
12465 \begin_layout Enumerate
12466 The language of the document should not be changed.
12467  Before previewing your paper, be sure that the babel package is not used.
12468  To do this, click on 
12469 \family sans
12470 Tools\SpecialChar menuseparator
12471 Preferences
12472 \family default
12473 , select the 
12474 \family sans
12475 Lang Opts
12476 \family default
12477  tab, deselect the 
12478 \family sans
12479 Use babel
12480 \family default
12481  checkbox in the language settings, and click on 
12482 \family sans
12483 Apply
12484 \family default
12485  (or 
12486 \family sans
12487 Save
12488 \family default
12489 , if you wish to make this change permanent).
12490 \end_layout
12491
12492 \begin_layout Enumerate
12493 The 
12494 \begin_inset Quotes eld
12495 \end_inset
12496
12497 Keywords
12498 \begin_inset Quotes erd
12499 \end_inset
12500
12501  style must be used to define keywords.
12502 \end_layout
12503
12504 \begin_layout Enumerate
12505 The ijmpc package provides a style named 
12506 \begin_inset Quotes eld
12507 \end_inset
12508
12509 Classification Codes
12510 \begin_inset Quotes erd
12511 \end_inset
12512
12513 , which can be used to define classification codes, such as PACS numbers.
12514  Note that this facility is not supported by the ijmpd package.
12515 \end_layout
12516
12517 \begin_layout Enumerate
12518 Several new environments are available: 
12519 \begin_inset Quotes eld
12520 \end_inset
12521
12522 Definition
12523 \begin_inset Quotes erd
12524 \end_inset
12525
12526
12527 \begin_inset Quotes eld
12528 \end_inset
12529
12530 Step
12531 \begin_inset Quotes erd
12532 \end_inset
12533
12534
12535 \begin_inset Quotes eld
12536 \end_inset
12537
12538 Example
12539 \begin_inset Quotes erd
12540 \end_inset
12541
12542
12543 \begin_inset Quotes eld
12544 \end_inset
12545
12546 Remark
12547 \begin_inset Quotes erd
12548 \end_inset
12549
12550
12551 \begin_inset Quotes eld
12552 \end_inset
12553
12554 Notation
12555 \begin_inset Quotes erd
12556 \end_inset
12557
12558
12559 \begin_inset Quotes eld
12560 \end_inset
12561
12562 Theorem
12563 \begin_inset Quotes erd
12564 \end_inset
12565
12566
12567 \begin_inset Quotes eld
12568 \end_inset
12569
12570 Proof
12571 \begin_inset Quotes erd
12572 \end_inset
12573
12574
12575 \begin_inset Quotes eld
12576 \end_inset
12577
12578 Corollary
12579 \begin_inset Quotes erd
12580 \end_inset
12581
12582
12583 \begin_inset Quotes eld
12584 \end_inset
12585
12586 Lemma
12587 \begin_inset Quotes erd
12588 \end_inset
12589
12590
12591 \begin_inset Quotes eld
12592 \end_inset
12593
12594 Proposition
12595 \begin_inset Quotes erd
12596 \end_inset
12597
12598
12599 \begin_inset Quotes eld
12600 \end_inset
12601
12602 Prop
12603 \begin_inset Quotes erd
12604 \end_inset
12605
12606
12607 \begin_inset Quotes eld
12608 \end_inset
12609
12610 Question
12611 \begin_inset Quotes erd
12612 \end_inset
12613
12614
12615 \begin_inset Quotes eld
12616 \end_inset
12617
12618 Claim
12619 \begin_inset Quotes erd
12620 \end_inset
12621
12622 , and 
12623 \begin_inset Quotes eld
12624 \end_inset
12625
12626 Conjecture
12627 \begin_inset Quotes erd
12628 \end_inset
12629
12630 .
12631  Their use is more or less obvious.
12632  \SpecialChar LyX
12633  supports all these environments; it will use the proper label, text style,
12634  and numbering scheme for each of them.
12635 \end_layout
12636
12637 \begin_layout Enumerate
12638 Both packages use basic citations; the natbib package should not be used.
12639  In \SpecialChar LyX
12640 , citation references are shown as usual; in the output, citations are
12641  shown as superscripts.
12642  If you want to use a citation as normal text, you should use the 
12643 \family typewriter
12644 refcite
12645 \family default
12646  command, e.
12647 \begin_inset space \thinspace{}
12648 \end_inset
12649
12650 g.
12651 \begin_inset space \space{}
12652 \end_inset
12653
12654
12655 \begin_inset Quotes eld
12656 \end_inset
12657
12658 See Ref.
12659 \begin_inset space \space{}
12660 \end_inset
12661
12662
12663 \family typewriter
12664
12665 \backslash
12666 refcite{key}
12667 \family default
12668
12669 \begin_inset Quotes erd
12670 \end_inset
12671
12672 .
12673 \end_layout
12674
12675 \begin_layout Enumerate
12676 There is no 
12677 \begin_inset Quotes eld
12678 \end_inset
12679
12680 Acknowledgments
12681 \begin_inset Quotes erd
12682 \end_inset
12683
12684  section in both packages.
12685  To put acknowledgments, just use the 
12686 \begin_inset Quotes eld
12687 \end_inset
12688
12689 Section*
12690 \begin_inset Quotes erd
12691 \end_inset
12692
12693  environment.
12694 \end_layout
12695
12696 \begin_layout Enumerate
12697 Appendices may be added to the paper, 
12698 \emph on
12699 after
12700 \emph default
12701  the Acknowledgments and 
12702 \shape italic
12703 before
12704 \shape default
12705  the References.
12706  \SpecialChar LyX
12707  provides a special environment, called 
12708 \begin_inset Quotes eld
12709 \end_inset
12710
12711 Appendices Section
12712 \begin_inset Quotes erd
12713 \end_inset
12714
12715  which marks the beginning of the appendices.
12716  This environment should be left blank; it just sends a \SpecialChar LaTeX
12717  command, but nothing
12718  is really printed.
12719  In \SpecialChar LyX
12720 , the word 
12721 \begin_inset Quotes eld
12722 \end_inset
12723
12724 Appendix
12725 \begin_inset Quotes erd
12726 \end_inset
12727
12728  is printed with blue letters, as a signal that all sections after that
12729  point are appendices.
12730  To write an appendix, use the 
12731 \begin_inset Quotes eld
12732 \end_inset
12733
12734 Appendix
12735 \begin_inset Quotes erd
12736 \end_inset
12737
12738  environment.
12739  \SpecialChar LyX
12740  will number each appendix with capital letters, as required by both journals.
12741  Note that 
12742 \begin_inset Quotes eld
12743 \end_inset
12744
12745 Appendices Section
12746 \begin_inset Quotes erd
12747 \end_inset
12748
12749  
12750 \emph on
12751 must
12752 \emph default
12753  be present before the first appendix; if not, all appendices will be numbered
12754  as normal sections in the output.
12755 \end_layout
12756
12757 \begin_layout Enumerate
12758 The ijmpc and the ijmpd packages use the 
12759 \family typewriter
12760 tbl
12761 \family default
12762  command to implement table captions.
12763  As a result, a table created by \SpecialChar LyX
12764  is printed correctly, but its caption
12765  is ignored.
12766  However, you can use some \SpecialChar TeX
12767  code to overcome this problem, so that captions
12768  are printed as expected.
12769  To do so, create a float table as usual, remove the caption, and replace
12770  it with the \SpecialChar TeX
12771  code 
12772 \family typewriter
12773
12774 \backslash
12775 tbl{
12776 \emph on
12777 your table caption
12778 \emph default
12779 }{
12780 \family default
12781  (sic); you must also the \SpecialChar TeX
12782  code 
12783 \family typewriter
12784 }
12785 \family default
12786  immediately after the tabular material.
12787  Study the example table included in the template files to see how this
12788  trick is implemented.
12789  Alternatively, If you need table captions, you should implement the whole
12790  table float in a 
12791 \family typewriter
12792 .tex
12793 \family default
12794  file, then include this file to the \SpecialChar LyX
12795  document (
12796 \family sans
12797 Insert\SpecialChar menuseparator
12798 File\SpecialChar menuseparator
12799 Child
12800 \begin_inset space ~
12801 \end_inset
12802
12803 Document
12804 \family default
12805 ).
12806  Details on how to create a table float can be found in the files 
12807 \family typewriter
12808 ws-ijmpc.tex
12809 \family default
12810  and 
12811 \family typewriter
12812 ws-ijmpd.tex
12813 \family default
12814 , included in the corresponding packages.
12815 \end_layout
12816
12817 \begin_layout Subsection
12818 Preparing a paper for submission
12819 \end_layout
12820
12821 \begin_layout Standard
12822 Before you submit your paper you must export the \SpecialChar LyX
12823  document as a \SpecialChar LaTeX
12824  file (
12825 \family sans
12826 File\SpecialChar menuseparator
12827 Export\SpecialChar menuseparator
12828 \SpecialChar LaTeX
12829
12830 \family default
12831 )
12832 \begin_inset Foot
12833 status open
12834
12835 \begin_layout Plain Layout
12836 Actually you have the choice between \SpecialChar LaTeX
12837  (plain) and pdflatex.
12838  If you intend to use pdflatex to prepare the paper, you should use the
12839  pdflatex option so that included graphics are converted to PDF format,
12840  ready for use by pdflatex.
12841 \end_layout
12842
12843 \end_inset
12844
12845 , then make the following changes to the resulting 
12846 \family typewriter
12847 .tex
12848 \family default
12849  file.
12850 \end_layout
12851
12852 \begin_layout Enumerate
12853 Remove the comment lines before the 
12854 \family typewriter
12855
12856 \backslash
12857 documentclass
12858 \family default
12859  command.
12860 \end_layout
12861
12862 \begin_layout Enumerate
12863 Remove everything between (and including) the 
12864 \family typewriter
12865
12866 \backslash
12867 makeatletter
12868 \family default
12869  and 
12870 \family typewriter
12871
12872 \backslash
12873 makeatother
12874 \family default
12875  commands, except for any commands you specifically put into the \SpecialChar LaTeX
12876  preamble.
12877 \end_layout
12878
12879 \begin_layout Standard
12880 The modified 
12881 \family typewriter
12882 .tex
12883 \family default
12884  file should be saved and processed through \SpecialChar LaTeX
12885  as many times as necessary.
12886  You may also want to check the resulting 
12887 \family typewriter
12888 .dvi
12889 \family default
12890  document.
12891 \end_layout
12892
12893 \begin_layout Subsection
12894 Use of \SpecialChar TeX
12895  code
12896 \end_layout
12897
12898 \begin_layout Standard
12899 The use of \SpecialChar TeX
12900  code is reduced to two commands, which must be placed at the
12901  top of the document.
12902  If you started writing your paper by using the 
12903 \family typewriter
12904 ijmpc.lyx
12905 \family default
12906  or the 
12907 \family typewriter
12908 ijmpd.lyx
12909 \family default
12910  template, the \SpecialChar TeX
12911  code needed is already in its place; you usually don't need
12912  to delete it.
12913  You may only modify the first \SpecialChar TeX
12914  code to specify the information printed
12915  to the top of odd and even pages (authors' names and short paper's title,
12916  respectively).
12917  This \SpecialChar TeX
12918  code must have the form 
12919 \family typewriter
12920
12921 \backslash
12922 markboth{Authors' Names}{Short Paper's Title}
12923 \family default
12924 .
12925 \end_layout
12926
12927 \begin_layout Section
12928 iopart
12929 \end_layout
12930
12931 \begin_layout Standard
12932 by 
12933 \noun on
12934 Uwe Stöhr
12935 \end_layout
12936
12937 \begin_layout Subsection
12938 Overview
12939 \end_layout
12940
12941 \begin_layout Standard
12942 The iopart package provides a document class to create electronic manuscript
12943  submission to the journals published by the Institute of Physics.
12944  Instructions for the authors how to create a paper using the iopart class
12945  can be downloaded together with the iopart package from the site 
12946 \begin_inset Flex URL
12947 status collapsed
12948
12949 \begin_layout Plain Layout
12950
12951 ftp://ftp.iop.org/pub/journals/latex2e
12952 \end_layout
12953
12954 \end_inset
12955
12956 .
12957 \end_layout
12958
12959 \begin_layout Subsection
12960 Writing a paper
12961 \end_layout
12962
12963 \begin_layout Standard
12964 The easiest way to write a paper is to start with the file 
12965 \emph on
12966 IOP-article.lyx
12967 \emph default
12968  that is available in \SpecialChar LyX
12969 's examples files folder.
12970  Open this file, save it under a new name, and start writing.
12971  The example file explains how to use the special text environments.
12972  Here are the most important advices:
12973 \end_layout
12974
12975 \begin_layout Itemize
12976 To be able to compile your document to a PDF, PS, or DVI, ensure that the
12977  two options 
12978 \family sans
12979 Use AMS math package
12980 \family default
12981  in the document settings under 
12982 \family sans
12983 Math Options
12984 \family default
12985  are not used!
12986 \end_layout
12987
12988 \begin_layout Itemize
12989
12990 \size normal
12991 The title environment defines the kind of your paper.
12992  So use one of the following environments for the title:
12993 \size default
12994
12995 \begin_inset Separator latexpar
12996 \end_inset
12997
12998
12999 \end_layout
13000
13001 \begin_deeper
13002 \begin_layout Itemize
13003
13004 \family sans
13005 \size normal
13006 Title
13007 \family default
13008  for a Paper
13009 \end_layout
13010
13011 \begin_layout Itemize
13012
13013 \family sans
13014 \size normal
13015 Review
13016 \family default
13017  for a Review
13018 \end_layout
13019
13020 \begin_layout Itemize
13021
13022 \family sans
13023 \size normal
13024 Topical
13025 \family default
13026  for a Topical review
13027 \end_layout
13028
13029 \begin_layout Itemize
13030
13031 \family sans
13032 \size normal
13033 Comment
13034 \family default
13035  for a Comment
13036 \end_layout
13037
13038 \begin_layout Itemize
13039
13040 \family sans
13041 \size normal
13042 Note
13043 \family default
13044  for a Note
13045 \end_layout
13046
13047 \begin_layout Itemize
13048
13049 \family sans
13050 \size normal
13051 Paper
13052 \family default
13053  for a Paper (same as Title)
13054 \end_layout
13055
13056 \begin_layout Itemize
13057
13058 \family sans
13059 \size normal
13060 Prelim
13061 \family default
13062  for a Preliminary communication
13063 \end_layout
13064
13065 \begin_layout Itemize
13066
13067 \family sans
13068 \size normal
13069 Rapid
13070 \family default
13071  for a Rapid communication
13072 \end_layout
13073
13074 \begin_layout Itemize
13075
13076 \family sans
13077 \size normal
13078 Letter
13079 \family default
13080  for a Letter to the editor
13081 \end_layout
13082
13083 \end_deeper
13084 \begin_layout Itemize
13085
13086 \size normal
13087 All title environments except of 
13088 \family sans
13089 Letter
13090 \family default
13091  can have an optional short title.
13092 \end_layout
13093
13094 \begin_layout Itemize
13095 There is a general title environment 
13096 \family sans
13097 Article
13098 \family default
13099  which is not directly supported by the \SpecialChar LyX
13100 .
13101  This can be used as \SpecialChar TeX
13102  code when your document doesn't fit into one of the
13103  other title types.
13104 \end_layout
13105
13106 \begin_layout Standard
13107 For more informations like hints for special table and formula formatting,
13108  look at the IOP author guidelines.
13109 \end_layout
13110
13111 \begin_layout Section
13112 Kluwer
13113 \end_layout
13114
13115 \begin_layout Standard
13116 by 
13117 \noun on
13118 Panayotis Papasotiriou
13119 \end_layout
13120
13121 \begin_layout Subsection
13122 Overview
13123 \end_layout
13124
13125 \begin_layout Standard
13126 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13127  that facilitates electronic manuscript submission to the journals they
13128  publish.
13129  Most known of them (at least in my domain of interest) are 
13130 \emph on
13131 Astrophysics and Space Science
13132 \emph default
13133  and 
13134 \emph on
13135 Solar Physics
13136 \emph default
13137 , but there are many others (see a complete list at 
13138 \begin_inset Flex URL
13139 status open
13140
13141 \begin_layout Plain Layout
13142
13143 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13144 \end_layout
13145
13146 \end_inset
13147
13148 ).
13149  The Kluwer package may be downloaded from the site 
13150 \begin_inset Flex URL
13151 status collapsed
13152
13153 \begin_layout Plain Layout
13154
13155 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13156 \end_layout
13157
13158 \end_inset
13159
13160 .
13161  A complete user guide is contained in that package (but it can also be
13162  downloaded separately).
13163 \end_layout
13164
13165 \begin_layout Standard
13166 \SpecialChar LyX
13167  supports many features of the package but not everything.
13168  However, the \SpecialChar TeX
13169  code needed is reduced to some 
13170 \begin_inset Quotes eld
13171 \end_inset
13172
13173 peculiar
13174 \begin_inset Quotes erd
13175 \end_inset
13176
13177  commands of the package (see
13178 \begin_inset space ~
13179 \end_inset
13180
13181
13182 \begin_inset CommandInset ref
13183 LatexCommand ref
13184 reference "subsec:kluwer_peculiarities"
13185
13186 \end_inset
13187
13188 ).
13189  I have recently used \SpecialChar LyX
13190  to write an article submitted to the 
13191 \emph on
13192 Astrophysics and Space Science
13193 \emph default
13194  without any problem.
13195 \end_layout
13196
13197 \begin_layout Subsection
13198 Writing a paper
13199 \end_layout
13200
13201 \begin_layout Standard
13202 The easiest way to write a paper is to start with the Kluwer template file.
13203  Click on 
13204 \family sans
13205 File\SpecialChar menuseparator
13206 New from
13207 \family default
13208  
13209 \family sans
13210 Template
13211 \family default
13212 , then choose the 
13213 \family typewriter
13214 kluwer.lyx
13215 \family default
13216  template.
13217  This will give an (almost) empty document that includes the most common
13218  fields found in a manuscript and a short description of their use.
13219  As in most templates, simply overwrite the existing text (including the
13220  brackets, 
13221 \family typewriter
13222 <>
13223 \family default
13224 ) with the correct information.
13225 \end_layout
13226
13227 \begin_layout Subsection
13228 Preparing a paper for submission
13229 \end_layout
13230
13231 \begin_layout Standard
13232 As in the AAS\SpecialChar TeX
13233  package, before you submit your paper to a journal you must
13234  
13235 \begin_inset Quotes eld
13236 \end_inset
13237
13238 postprocess
13239 \begin_inset Quotes erd
13240 \end_inset
13241
13242  it as follows.
13243 \end_layout
13244
13245 \begin_layout Enumerate
13246 Export your paper as a \SpecialChar LaTeX
13247  file.
13248  To do this, click on 
13249 \family sans
13250 File\SpecialChar menuseparator
13251 Export\SpecialChar menuseparator
13252 \SpecialChar LaTeX
13253
13254 \family default
13255 .
13256  
13257 \end_layout
13258
13259 \begin_layout Enumerate
13260 Edit the resulting 
13261 \family typewriter
13262 .tex
13263 \family default
13264  file with a text editor and make the following changes
13265 \begin_inset Separator latexpar
13266 \end_inset
13267
13268
13269 \end_layout
13270
13271 \begin_deeper
13272 \begin_layout Enumerate
13273 remove the comment lines before the 
13274 \family typewriter
13275
13276 \backslash
13277 documentclass
13278 \family default
13279  command,
13280 \end_layout
13281
13282 \begin_layout Enumerate
13283 remove everything between (and including) the 
13284 \family typewriter
13285
13286 \backslash
13287 makeatletter
13288 \family default
13289  and 
13290 \family typewriter
13291
13292 \backslash
13293 makeatother
13294 \family default
13295  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13296  preamble.
13297 \end_layout
13298
13299 \begin_layout Standard
13300 Save the resulting 
13301 \family typewriter
13302 .tex
13303 \family default
13304  file.
13305 \end_layout
13306
13307 \end_deeper
13308 \begin_layout Enumerate
13309 Run the 
13310 \family typewriter
13311 .tex
13312 \family default
13313  file through \SpecialChar LaTeX
13314  as many times as necessary (usually up to three).
13315 \end_layout
13316
13317 \begin_layout Enumerate
13318 View the resulting 
13319 \family typewriter
13320 .dvi
13321 \family default
13322  document using, e.
13323 \begin_inset space \thinspace{}
13324 \end_inset
13325
13326 g.
13327 \begin_inset space \space{}
13328 \end_inset
13329
13330
13331 \family sans
13332 xdvi
13333 \family default
13334 , and check if everything is OK (it should, if you didn't make any mistake).
13335 \end_layout
13336
13337 \begin_layout Subsection
13338 \begin_inset Quotes eld
13339 \end_inset
13340
13341 Peculiarities
13342 \begin_inset Quotes erd
13343 \end_inset
13344
13345  of the Kluwer package
13346 \begin_inset CommandInset label
13347 LatexCommand label
13348 name "subsec:kluwer_peculiarities"
13349
13350 \end_inset
13351
13352
13353 \end_layout
13354
13355 \begin_layout Standard
13356 The Kluwer package has the following 
13357 \begin_inset Quotes eld
13358 \end_inset
13359
13360 peculiarities
13361 \begin_inset Quotes erd
13362 \end_inset
13363
13364 .
13365 \end_layout
13366
13367 \begin_layout Enumerate
13368 It is possible to write multiple articles in the same \SpecialChar LaTeX
13369  file
13370 \begin_inset Foot
13371 status collapsed
13372
13373 \begin_layout Plain Layout
13374 I can't imagine any good reason to do this.
13375 \end_layout
13376
13377 \end_inset
13378
13379 .
13380  Each article must be included in the environment 
13381 \begin_inset Quotes eld
13382 \end_inset
13383
13384 article
13385 \begin_inset Quotes erd
13386 \end_inset
13387
13388 .
13389  Unfortunately, this environment cannot be omitted, even if you write just
13390  one article.
13391  Therefore, each article starts with the command 
13392 \family typewriter
13393
13394 \backslash
13395 begin{article}
13396 \family default
13397  and, obviously, ends with the command 
13398 \family typewriter
13399
13400 \backslash
13401 end{article}
13402 \family default
13403 .
13404  Although this can be implemented in \SpecialChar LyX
13405 , I didn't included it, since it looks
13406  ugly and can confuse the novice user.
13407  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13408  code (the
13409  well-known 
13410 \begin_inset Quotes eld
13411 \end_inset
13412
13413 \SpecialChar TeX
13414  code
13415 \begin_inset Quotes erd
13416 \end_inset
13417
13418 ).
13419 \end_layout
13420
13421 \begin_layout Enumerate
13422 Information given at the beginning of the article (i.
13423 \begin_inset space \thinspace{}
13424 \end_inset
13425
13426 e.
13427 \begin_inset space \space{}
13428 \end_inset
13429
13430 title, subtitle, author, institution, running title, running author, abstract
13431  and keywords) must be included in an environment called 
13432 \begin_inset Quotes eld
13433 \end_inset
13434
13435 opening
13436 \begin_inset Quotes erd
13437 \end_inset
13438
13439 .
13440  This is not implemented in \SpecialChar LyX
13441 , so you must enter title, subtitle etc.
13442 \begin_inset space ~
13443 \end_inset
13444
13445 between two \SpecialChar TeX
13446  code lines (
13447 \family typewriter
13448
13449 \backslash
13450 begin{opening}
13451 \family default
13452  and 
13453 \family typewriter
13454
13455 \backslash
13456 end{opening}
13457 \family default
13458 ).
13459 \end_layout
13460
13461 \begin_layout Enumerate
13462 According to the user manual, the label of each bibliography item must be
13463  written as 
13464 \family typewriter
13465
13466 \backslash
13467 protect
13468 \backslash
13469 citeauthoryear{
13470 \family default
13471 \emph on
13472 author(s)
13473 \family typewriter
13474 \emph default
13475 }{
13476 \family default
13477 \emph on
13478 year
13479 \family typewriter
13480 \emph default
13481 }
13482 \family default
13483 .
13484 \end_layout
13485
13486 \begin_layout Standard
13487 The 
13488 \family typewriter
13489 kluwer.lyx
13490 \family default
13491  template takes care of all these 
13492 \begin_inset Quotes eld
13493 \end_inset
13494
13495 peculiarities
13496 \begin_inset Quotes erd
13497 \end_inset
13498
13499 .
13500  If you start a new paper using this template you don't need to do anything
13501  special.
13502  Just 
13503 \end_layout
13504
13505 \begin_layout Enumerate
13506 don't delete the \SpecialChar TeX
13507  code included in the template, and
13508 \end_layout
13509
13510 \begin_layout Enumerate
13511 copy the example bibliography item included in the template and modify it
13512  as necessary to enter new bibliography items.
13513 \end_layout
13514
13515 \begin_layout Section
13516 Koma-Script
13517 \end_layout
13518
13519 \begin_layout Standard
13520 by 
13521 \noun on
13522 Bernd Rellermeyer
13523 \end_layout
13524
13525 \begin_layout Subsection
13526 Overview
13527 \end_layout
13528
13529 \begin_layout Standard
13530 The \SpecialChar LyX
13531  document classes 
13532 \emph on
13533 article (koma-script)
13534 \emph default
13535
13536 \emph on
13537 report (koma-script)
13538 \emph default
13539
13540 \emph on
13541 book
13542 \emph default
13543  
13544 \emph on
13545 (koma-script)
13546 \emph default
13547 , and 
13548 \emph on
13549 letter
13550 \emph default
13551  
13552 \emph on
13553 (koma-script)
13554 \emph default
13555  correspond to the \SpecialChar LaTeX
13556  document classes 
13557 \family typewriter
13558 scrartcl.cls
13559 \family default
13560
13561 \family typewriter
13562 scrreprt.cls
13563 \family default
13564
13565 \family typewriter
13566 scrbook.cls
13567 \family default
13568 , and 
13569 \family typewriter
13570 scrlettr.cls
13571 \family default
13572 , resp.
13573 \begin_inset space ~
13574 \end_inset
13575
13576 of the Koma-Script family.
13577  They are replacements for the standard document classes 
13578 \family typewriter
13579 article.cls
13580 \family default
13581
13582 \family typewriter
13583 report.cls
13584 \family default
13585
13586 \family typewriter
13587 book.cls
13588 \family default
13589  and 
13590 \family typewriter
13591 letter.cls
13592 \family default
13593 , resp., and fit better to European typography conventions in a number of
13594  points.
13595 \end_layout
13596
13597 \begin_layout Itemize
13598 Standard character size is 11pt in 
13599 \emph on
13600 article (koma-script)
13601 \emph default
13602
13603 \emph on
13604 report (koma-script)
13605 \emph default
13606 , and 
13607 \emph on
13608 book (koma-script)
13609 \emph default
13610 , and 12pt in 
13611 \emph on
13612 letter (koma-script)
13613 \emph default
13614 .
13615 \end_layout
13616
13617 \begin_layout Itemize
13618 Headings, labels of the description environment, and a number of elements
13619  of the 
13620 \emph on
13621 letter (koma-script)
13622 \emph default
13623  document class are set in a bold sans serif font.
13624 \begin_inset Foot
13625 status collapsed
13626
13627 \begin_layout Plain Layout
13628 There is a big difference between the bold sans serif old cm fonts and new
13629  ec fonts, especially in the appearance of headings.
13630  In comparison, the ec bold sans serif fonts look a bit thin.
13631  Here the \SpecialChar LaTeX
13632  package 
13633 \family typewriter
13634 cmsd.sty by
13635 \family default
13636  
13637 \shape smallcaps
13638 Walter Schmidt
13639 \shape default
13640  helps to produce the 
13641 \begin_inset Quotes eld
13642 \end_inset
13643
13644 usual
13645 \begin_inset Quotes erd
13646 \end_inset
13647
13648  appearance when using the ec fonts.
13649 \end_layout
13650
13651 \end_inset
13652
13653  The numbering of chapter headings is made in the same way as the numbering
13654  of section headings, that is without the extra line 
13655 \begin_inset Quotes eld
13656 \end_inset
13657
13658 Chapter\SpecialChar ldots
13659
13660 \begin_inset Quotes erd
13661 \end_inset
13662
13663 .
13664  In addition, the appearance of the headings can be modified by using a
13665  number of options (in \SpecialChar LyX
13666  to be entered in the field 
13667 \family sans
13668 Extra
13669 \begin_inset space ~
13670 \end_inset
13671
13672 Options
13673 \family default
13674  of the dialog 
13675 \family sans
13676 Layout\SpecialChar menuseparator
13677 Document
13678 \family default
13679 ).
13680  
13681 \end_layout
13682
13683 \begin_layout Itemize
13684 The main means in the Koma-Script document classes to design the type area
13685  are the options 
13686 \family sans
13687 BCOR
13688 \family default
13689  and 
13690 \family sans
13691 DIV
13692 \family default
13693  (in \SpecialChar LyX
13694  to be entered in the extra class options field in the dialog 
13695 \family sans
13696 Document\SpecialChar menuseparator
13697 Settings
13698 \family default
13699 ).
13700  They make a clearer modification of page margins possible as do the options
13701  of the dialog 
13702 \family sans
13703 Document\SpecialChar menuseparator
13704 Settings
13705 \family default
13706 .
13707  
13708 \end_layout
13709
13710 \begin_layout Itemize
13711 The \SpecialChar LaTeX
13712  document classes of the Koma-Script family define a number of additional
13713  commands.
13714  Those part of it which makes sense in \SpecialChar LyX
13715  is implemented in corresponding
13716  paragraph types.
13717 \end_layout
13718
13719 \begin_layout Standard
13720 Detailed descriptions of the \SpecialChar LaTeX
13721  document classes of the Koma-Script family
13722  can be found in the Koma-Script documentation 
13723 \emph on
13724 scrguide
13725 \emph default
13726  (German) and 
13727 \emph on
13728 scrguien
13729 \emph default
13730  (English).
13731 \end_layout
13732
13733 \begin_layout Subsection
13734 article (koma-script), report (koma-script), and book (koma-script)
13735 \end_layout
13736
13737 \begin_layout Standard
13738 The document classes 
13739 \emph on
13740 article (koma-script)
13741 \emph default
13742
13743 \emph on
13744 report (koma-script)
13745 \emph default
13746 , and 
13747 \emph on
13748 book
13749 \emph default
13750  
13751 \emph on
13752 (koma-script)
13753 \emph default
13754  are implemented in the layout files 
13755 \family typewriter
13756 scrartcl.layout
13757 \family default
13758
13759 \family typewriter
13760 scrreprt.layout
13761 \family default
13762 , and 
13763 \family typewriter
13764 scrbook.layout
13765 \family default
13766 , resp.
13767  They contain all the paragraph types of the corresponding standard document
13768  classes 
13769 \emph on
13770 article
13771 \emph default
13772
13773 \emph on
13774 report
13775 \emph default
13776 , and 
13777 \emph on
13778 book
13779 \emph default
13780 , resp., partly modified, with the exception of the \SpecialChar LyX
13781  specific 
13782 \family sans
13783 List
13784 \family default
13785 -type, which is replaced by the new 
13786 \family sans
13787 Labeling
13788 \family default
13789 -type having the same functionality.
13790  Beside the 
13791 \family sans
13792 Labeling
13793 \family default
13794 -Type there is a number of new paragraph types added.
13795  They are 
13796 \emph on
13797 not
13798 \emph default
13799  part of 
13800 \emph on
13801 letter (koma-script)
13802 \emph default
13803 .
13804 \end_layout
13805
13806 \begin_layout Itemize
13807
13808 \family sans
13809 Addpart, Addchap
13810 \family default
13811
13812 \family sans
13813 Addsec
13814 \family default
13815 : are equivalents to 
13816 \family sans
13817 Part*, Chapter*
13818 \family default
13819  and 
13820 \family sans
13821 Section*
13822 \family default
13823 , resp., additionally inserting an entry in the table of contents.
13824  
13825 \family sans
13826 Addpart
13827 \family default
13828  and 
13829 \family sans
13830 Addchap
13831 \family default
13832  are not contained in 
13833 \emph on
13834 article (koma-script)
13835 \emph default
13836 .
13837 \end_layout
13838
13839 \begin_layout Itemize
13840
13841 \family sans
13842 Addchap*
13843 \family default
13844
13845 \family sans
13846 Addsec*
13847 \family default
13848 : behave exactly as 
13849 \family sans
13850 Addchap
13851 \family default
13852  and 
13853 \family sans
13854 Addsec
13855 \family default
13856 , resp., additionally clearing running heads.
13857  
13858 \family sans
13859 Addchap*
13860 \family default
13861  is not contained in 
13862 \emph on
13863 article (koma-script)
13864 \emph default
13865 .
13866 \begin_inset Foot
13867 status collapsed
13868
13869 \begin_layout Plain Layout
13870 There is also an 
13871 \family typewriter
13872
13873 \backslash
13874 addpart*
13875 \family default
13876  command in 
13877 \emph on
13878 book (koma-script)
13879 \emph default
13880  and in 
13881 \emph on
13882 report (koma-script)
13883 \emph default
13884 , but since this is identical to 
13885 \family sans
13886 Part*
13887 \family default
13888 , is has not been implemented in \SpecialChar LyX
13889 .
13890 \end_layout
13891
13892 \end_inset
13893
13894
13895 \end_layout
13896
13897 \begin_layout Itemize
13898
13899 \family sans
13900 Minisec
13901 \family default
13902 : generates a heading directly above the following paragraph in the standard
13903  character size without affecting the structure of the document.
13904 \end_layout
13905
13906 \begin_layout Itemize
13907
13908 \family sans
13909 Captionabove
13910 \family default
13911  and 
13912 \family sans
13913 Captionbelow
13914 \family default
13915  are special captions which respect the different space settings needed
13916  for captions placed above or below an element (if you follow strict typographic
13917  rules, you might want to place table captions always above the table).
13918  You can also use the class option 
13919 \family typewriter
13920 tablecaptionsabove
13921 \family default
13922 , which will switch 
13923 \family sans
13924 caption
13925 \family default
13926  to 
13927 \family sans
13928 captionabove
13929 \family default
13930  for tables and 
13931 \family sans
13932 captionbelow
13933 \family default
13934  for figures.
13935  You need at least Koma-Script version 2.8q to use this.
13936 \end_layout
13937
13938 \begin_layout Itemize
13939
13940 \family sans
13941 Dictum
13942 \family default
13943 : can be used to set a bonmot, e.
13944 \begin_inset space \thinspace{}
13945 \end_inset
13946
13947 g.
13948 \begin_inset space \space{}
13949 \end_inset
13950
13951 at the beginning of a chapter.
13952  If you use the optional argument (
13953 \family sans
13954 Insert\SpecialChar menuseparator
13955 Short
13956 \begin_inset space ~
13957 \end_inset
13958
13959 Title
13960 \family default
13961 ), you can insert the dictum's author there.
13962  Dictum and author are separated by a line.
13963  You need at least Koma-Script version 2.8q to use this.
13964  
13965 \family sans
13966 Dictum
13967 \family default
13968  is not contained in 
13969 \emph on
13970 article (koma-script)
13971 \emph default
13972 .
13973 \end_layout
13974
13975 \begin_layout Standard
13976 The following types, together with the standard types 
13977 \family sans
13978 Title
13979 \family default
13980
13981 \family sans
13982 Author
13983 \family default
13984 , and 
13985 \family sans
13986 Date
13987 \family default
13988 , form the title area of the document.
13989  They must be entered ahead of the first 
13990 \begin_inset Quotes eld
13991 \end_inset
13992
13993 ordinary
13994 \begin_inset Quotes erd
13995 \end_inset
13996
13997  paragraph.
13998 \begin_inset Foot
13999 status collapsed
14000
14001 \begin_layout Plain Layout
14002 The corresponding \SpecialChar LaTeX
14003  commands must appear before the 
14004 \family typewriter
14005
14006 \backslash
14007 maketitle
14008 \family default
14009  command.
14010 \end_layout
14011
14012 \end_inset
14013
14014  When such a type is used more than once, the latter usage overwrites the
14015  former one, that means, for every type only the latest usage is valid.
14016  The order of the different types however has, like 
14017 \family sans
14018 Title
14019 \family default
14020
14021 \family sans
14022 Author
14023 \family default
14024 , and 
14025 \family sans
14026 Date
14027 \family default
14028 , no effect on the appearance of the produced document.
14029 \end_layout
14030
14031 \begin_layout Itemize
14032
14033 \family sans
14034 Subject
14035 \family default
14036 : produces a centered paragraph above the ordinary title (
14037 \family sans
14038 Title
14039 \family default
14040
14041 \family sans
14042 Author
14043 \family default
14044
14045 \family sans
14046 Date
14047 \family default
14048 ) for the subject of the document.
14049 \end_layout
14050
14051 \begin_layout Itemize
14052
14053 \family sans
14054 Publishers
14055 \family default
14056 : produces a centered paragraph below the ordinary title (
14057 \family sans
14058 Title
14059 \family default
14060
14061 \family sans
14062 Author
14063 \family default
14064
14065 \family sans
14066 Date
14067 \family default
14068 ) for the publishers' name.
14069 \end_layout
14070
14071 \begin_layout Itemize
14072
14073 \family sans
14074 Dedication
14075 \family default
14076 : in 
14077 \emph on
14078 report (koma-script)
14079 \emph default
14080  and 
14081 \emph on
14082 book (koma-script)
14083 \emph default
14084  produces a centered paragraph on its own page behind the title page, or
14085  in 
14086 \emph on
14087 article (koma-script)
14088 \emph default
14089  produces a centered paragraph below the ordinary title (
14090 \family sans
14091 Title
14092 \family default
14093
14094 \family sans
14095 Author
14096 \family default
14097
14098 \family sans
14099 Date
14100 \family default
14101
14102 \family sans
14103 Publishers
14104 \family default
14105 ) for a dedication.
14106 \end_layout
14107
14108 \begin_layout Itemize
14109
14110 \family sans
14111 Titlehead
14112 \family default
14113 : produces a left aligned paragraph above the ordinary title (
14114 \family sans
14115 Title
14116 \family default
14117
14118 \family sans
14119 Author
14120 \family default
14121
14122 \family sans
14123 Date
14124 \family default
14125
14126 \family sans
14127 Subject
14128 \family default
14129 ) for a document`s head.
14130 \end_layout
14131
14132 \begin_layout Itemize
14133
14134 \family sans
14135 Uppertitleback
14136 \family default
14137 : produces in a double-sided print in 
14138 \emph on
14139 report (koma-script)
14140 \emph default
14141  and 
14142 \emph on
14143 book (koma-script)
14144 \emph default
14145  a left-aligned paragraph at the top of the title page`s back or has no
14146  effect in a single-sided print or in 
14147 \emph on
14148 article (koma-script)
14149 \emph default
14150 .
14151 \end_layout
14152
14153 \begin_layout Itemize
14154
14155 \family sans
14156 Lowertitleback
14157 \family default
14158 : produces in a double-sided print in 
14159 \emph on
14160 report (koma-script)
14161 \emph default
14162  and 
14163 \emph on
14164 book (koma-script)
14165 \emph default
14166  a left-aligned paragraph at the bottom of the title page`s back or has
14167  no effect in a single-sided print or in 
14168 \emph on
14169 article (koma-script)
14170 \emph default
14171 .
14172 \end_layout
14173
14174 \begin_layout Itemize
14175
14176 \family sans
14177 Extratitle
14178 \family default
14179 : produces a special 
14180 \begin_inset Quotes eld
14181 \end_inset
14182
14183 dirty
14184 \begin_inset Quotes erd
14185 \end_inset
14186
14187  page ahead of the actual document containing a paragraph without special
14188  formatting.
14189 \end_layout
14190
14191 \begin_layout Standard
14192 The layout files for the document classes 
14193 \emph on
14194 article (koma-script)
14195 \emph default
14196
14197 \emph on
14198 report (koma-script)
14199 \emph default
14200 , and 
14201 \emph on
14202 book (koma-script)
14203 \emph default
14204  do include the file 
14205 \family typewriter
14206 scrmacros.inc
14207 \family default
14208 .
14209  This is thought of as a place to define your own types.
14210  Copy scrmacros
14211 \family typewriter
14212 .inc
14213 \family default
14214  in your personal layout directory and edit the file!
14215 \end_layout
14216
14217 \begin_layout Subsection
14218 letter (koma-script)
14219 \end_layout
14220
14221 \begin_layout Standard
14222 \noindent
14223 The document class 
14224 \emph on
14225 letter (koma-script)
14226 \emph default
14227  is implemented in the layout file 
14228 \family typewriter
14229 scrlettr.layout
14230 \family default
14231 .
14232  It contains all the paragraph types of the corresponding standard document
14233  class 
14234 \emph on
14235 letter
14236 \emph default
14237 , partly modified, with the exception of the \SpecialChar LyX
14238  specific types 
14239 \family sans
14240 \SpecialChar LyX
14241 -Code
14242 \family default
14243  and 
14244 \family sans
14245 Comment
14246 \family default
14247  and the 
14248 \family sans
14249 List
14250 \family default
14251  type, which is replaced by the new 
14252 \family sans
14253 Labeling
14254 \family default
14255  type.
14256  In addition, it contains, in contrast to the standard document class, the
14257  standard types 
14258 \family sans
14259 \SpecialChar LaTeX
14260
14261 \family default
14262
14263 \family sans
14264 Quotation
14265 \family default
14266
14267 \family sans
14268 Quote
14269 \family default
14270 , and 
14271 \family sans
14272 Verse
14273 \family default
14274 .
14275  Furthermore, there are a number of new letter specific types.
14276 \end_layout
14277
14278 \begin_layout Standard
14279 The appearance of the letter produced by this document class can be controlled
14280  by a number of \SpecialChar LaTeX
14281  commands, which you can put in the \SpecialChar LaTeX
14282  preamble.
14283 \begin_inset Foot
14284 status collapsed
14285
14286 \begin_layout Plain Layout
14287 For example, the standard appearance of the letter`s heading, consisting
14288  of name and address, is quite self-willed.
14289  An 
14290 \begin_inset Quotes eld
14291 \end_inset
14292
14293 ordinary
14294 \begin_inset Quotes erd
14295 \end_inset
14296
14297  heading is produced by the following \SpecialChar LaTeX
14298  commands in the preamble:
14299 \end_layout
14300
14301 \begin_layout LyX-Code
14302
14303 \backslash
14304 firsthead{
14305 \backslash
14306 parbox[b]{
14307 \backslash
14308 textwidth}
14309 \end_layout
14310
14311 \begin_layout LyX-Code
14312   {
14313 \backslash
14314 ignorespaces 
14315 \backslash
14316 fromname
14317 \backslash
14318
14319 \backslash
14320  
14321 \backslash
14322 ignorespaces 
14323 \backslash
14324 fromaddress}} 
14325 \end_layout
14326
14327 \begin_layout LyX-Code
14328
14329 \backslash
14330 nexthead{
14331 \backslash
14332 parbox[b]{
14333 \backslash
14334 textwidth}
14335 \end_layout
14336
14337 \begin_layout LyX-Code
14338   {
14339 \backslash
14340 ignorespaces 
14341 \backslash
14342 fromname 
14343 \backslash
14344 hfill 
14345 \backslash
14346 ignorespaces 
14347 \backslash
14348 pagename
14349 \backslash
14350  
14351 \backslash
14352 thepage}}
14353 \end_layout
14354
14355 \end_inset
14356
14357  A detailed German description of such \SpecialChar LaTeX
14358  commands can be found in the Koma-Script
14359  documentation 
14360 \emph on
14361 scrguide
14362 \emph default
14363 .
14364  With it, the letter's author can produce his personal letter layout.
14365 \end_layout
14366
14367 \begin_layout Standard
14368 The types 
14369 \family sans
14370 Letter
14371 \family default
14372  and 
14373 \family sans
14374 Opening
14375 \family default
14376  define the beginning of the letter and must be used in every letter.
14377  To emphasize them in the \SpecialChar LyX
14378  document class, they are marked with the letter
14379  
14380 \shape italic
14381 L
14382 \shape default
14383  or 
14384 \shape italic
14385 O
14386 \shape default
14387 , resp.
14388 \begin_inset space ~
14389 \end_inset
14390
14391 in the left margin.
14392  It is possible to write any number of letters in one file.
14393  An 
14394 \family sans
14395 Opening
14396 \family default
14397  type produces a new letter using the same addressee and a 
14398 \family sans
14399 Letter
14400 \family default
14401  type produces a new addressee.
14402  The types 
14403 \family sans
14404 Closing
14405 \family default
14406
14407 \family sans
14408 PS
14409 \family default
14410
14411 \family sans
14412 CC
14413 \family default
14414 , and 
14415 \family sans
14416 Encl
14417 \family default
14418  are ordinary paragraph types and can also be used several times in one
14419  and the same letter.
14420 \end_layout
14421
14422 \begin_layout Itemize
14423
14424 \family sans
14425 Letter
14426 \family default
14427 : produces a paragraph for the addressee and implicitly defines the beginning
14428  of the letter.
14429 \end_layout
14430
14431 \begin_layout Itemize
14432
14433 \family sans
14434 Opening
14435 \family default
14436 : produces a paragraph for the form of address and implicitly produces a
14437  new letter.
14438 \end_layout
14439
14440 \begin_layout Itemize
14441
14442 \family sans
14443 Closing
14444 \family default
14445 : produces a paragraph for a close.
14446 \end_layout
14447
14448 \begin_layout Itemize
14449
14450 \family sans
14451 PS
14452 \family default
14453 : produces a paragraph for a postscript.
14454 \end_layout
14455
14456 \begin_layout Itemize
14457
14458 \family sans
14459 CC
14460 \family default
14461 : produces a paragraph for a distribution list.
14462 \end_layout
14463
14464 \begin_layout Itemize
14465
14466 \family sans
14467 Encl
14468 \family default
14469 : produces a paragraph for enclosures.
14470 \end_layout
14471
14472 \begin_layout Standard
14473 The types 
14474 \family sans
14475 Name
14476 \family default
14477
14478 \family sans
14479 Signature
14480 \family default
14481
14482 \family sans
14483 Address
14484 \family default
14485
14486 \family sans
14487 Telephone
14488 \family default
14489
14490 \family sans
14491 Place
14492 \family default
14493
14494 \family sans
14495 Backaddress
14496 \family default
14497
14498 \family sans
14499 Specialmail
14500 \family default
14501
14502 \family sans
14503 Location
14504 \family default
14505
14506 \family sans
14507 Title
14508 \family default
14509 , and 
14510 \family sans
14511 Subject
14512 \family default
14513  are input types provided with a label to enter information, which will
14514  be processed by the document class.
14515 \begin_inset Foot
14516 status open
14517
14518 \begin_layout Plain Layout
14519 It could be seen as a matter of inconsequence, that the types 
14520 \family sans
14521 Letter
14522 \family default
14523  and 
14524 \family sans
14525 Opening
14526 \family default
14527  described above are not such input types as well.
14528  Because of the special meaning of those types, however, I have implemented
14529  them as ordinary paragraph types with a one letter mark in the left margin.
14530  Moreover, it would affect my feeling of symmetry, if the 
14531 \family sans
14532 Opening
14533 \family default
14534  type and the 
14535 \family sans
14536 Closing
14537 \family default
14538  type had such a serious different appearance.
14539 \end_layout
14540
14541 \end_inset
14542
14543  The types must be used ahead of the corresponding 
14544 \family sans
14545 Opening
14546 \family default
14547  type.
14548 \end_layout
14549
14550 \begin_layout Standard
14551 An implementation of these types in a WYSIWYG fashion does not seem to make
14552  sense, because the real appearance of the produced letter does not only
14553  depend on the usage of the particular type, but also on other factors.
14554  For example, a signature entered in the 
14555 \family sans
14556 Signature
14557 \family default
14558  type will in the standard behavior appear in the produced letter only,
14559  when in the same letter also a 
14560 \family sans
14561 Closing
14562 \family default
14563  type is used.
14564  The entered value of the 
14565 \family sans
14566 Telephone
14567 \family default
14568  type will in the standard behavior not appear in the produced letter at
14569  all.
14570  The possibility to design the letter`s heading freely is already indicated
14571  in a footnote above.
14572 \end_layout
14573
14574 \begin_layout Standard
14575 The input types can also be used as empty paragraphs.
14576  This makes sense e.
14577 \begin_inset space \thinspace{}
14578 \end_inset
14579
14580 g.
14581 \begin_inset space \space{}
14582 \end_inset
14583
14584 for the 
14585 \family sans
14586 Signature
14587 \family default
14588  type.
14589  If the 
14590 \family sans
14591 Signature
14592 \family default
14593  type is not used at all, in the standard behavior the value of the 
14594 \family sans
14595 Name
14596 \family default
14597  type is used as signature, whereas if an empty 
14598 \family sans
14599 Signature
14600 \family default
14601  type is used, no signature value is defined.
14602 \end_layout
14603
14604 \begin_layout Standard
14605 By using the input types it is possible to write a letter template, containing
14606  filled input types with your personal dates (name, address, etc.) and empty
14607  input types for other dates you want to enter.
14608 \end_layout
14609
14610 \begin_layout Itemize
14611
14612 \family sans
14613 Name
14614 \family default
14615 : sender's name, in the standard behavior appears as a centered paragraph
14616  in small caps in the letter`s heading.
14617 \end_layout
14618
14619 \begin_layout Itemize
14620
14621 \family sans
14622 Signature
14623 \family default
14624 : sender's signature, in the standard behavior appears below the 
14625 \family sans
14626 Closing
14627 \family default
14628  type.
14629  If no 
14630 \family sans
14631 Signature
14632 \family default
14633  type is used, the value of the 
14634 \family sans
14635 Name
14636 \family default
14637  type appears instead.
14638 \end_layout
14639
14640 \begin_layout Itemize
14641
14642 \family sans
14643 Address
14644 \family default
14645 : sender's address, in the standard behavior appears in a centered paragraph
14646  in the letter`s heading below the sender's name.
14647 \end_layout
14648
14649 \begin_layout Itemize
14650
14651 \family sans
14652 Telephone
14653 \family default
14654 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
14655  variable
14656  
14657 \family typewriter
14658
14659 \backslash
14660 telephonenum
14661 \family default
14662 .
14663 \end_layout
14664
14665 \begin_layout Itemize
14666
14667 \family sans
14668 Place
14669 \family default
14670 : place of the letter`s making.
14671 \end_layout
14672
14673 \begin_layout Itemize
14674
14675 \family sans
14676 Date
14677 \family default
14678 : date of the letter`s making.
14679  
14680 \family sans
14681 Place
14682 \family default
14683  and 
14684 \family sans
14685 Date
14686 \family default
14687 , in the standard behavior, produce the place and the date in a right-aligned
14688  line below the addressee's field.
14689  If an empty 
14690 \family sans
14691 Date
14692 \family default
14693  type is used, neither place nor date appear, independent of the value of
14694  the 
14695 \family sans
14696 Place
14697 \family default
14698  type.
14699  If no 
14700 \family sans
14701 Date
14702 \family default
14703  type is used, the date of the letter `s production is used.
14704 \end_layout
14705
14706 \begin_layout Itemize
14707
14708 \family sans
14709 Backaddress
14710 \family default
14711 : sender`s back address, in the standard behavior appears above the addressee's
14712  field in a small sans serif font.
14713 \end_layout
14714
14715 \begin_layout Itemize
14716
14717 \family sans
14718 Specialmail
14719 \family default
14720 : special mail information, in the standard behavior appears underlined
14721  above the addressee's field below the back address.
14722 \end_layout
14723
14724 \begin_layout Itemize
14725
14726 \family sans
14727 Location
14728 \family default
14729 : additional information, in the standard behavior appears on right side
14730  below the addressee`s field.
14731 \end_layout
14732
14733 \begin_layout Itemize
14734
14735 \family sans
14736 Title
14737 \family default
14738 : the letter's title, in the standard behavior appears in a big, bold, sans
14739  serif font above the subject.
14740 \end_layout
14741
14742 \begin_layout Itemize
14743
14744 \family sans
14745 Subject
14746 \family default
14747 : the letter's subject, in the standard behavior appears in a bold font
14748  above the 
14749 \family sans
14750 Opening
14751 \family default
14752  paragraph.
14753 \end_layout
14754
14755 \begin_layout Standard
14756 The types 
14757 \family sans
14758 Yourref
14759 \family default
14760
14761 \family sans
14762 Yourmail
14763 \family default
14764
14765 \family sans
14766 Myref
14767 \family default
14768
14769 \family sans
14770 Customer
14771 \family default
14772 , and 
14773 \family sans
14774 Invoice
14775 \family default
14776  produce a business letter like line above the 
14777 \family sans
14778 Title
14779 \family default
14780  line containing the fields 
14781 \begin_inset Quotes eld
14782 \end_inset
14783
14784 Your ref.
14785 \begin_inset Quotes erd
14786 \end_inset
14787
14788
14789 \begin_inset Quotes eld
14790 \end_inset
14791
14792 Your letter of
14793 \begin_inset Quotes erd
14794 \end_inset
14795
14796
14797 \begin_inset Quotes eld
14798 \end_inset
14799
14800 Our ref.
14801 \begin_inset Quotes erd
14802 \end_inset
14803
14804
14805 \begin_inset Quotes eld
14806 \end_inset
14807
14808 Customer no.
14809 \begin_inset Quotes erd
14810 \end_inset
14811
14812
14813 \begin_inset Quotes eld
14814 \end_inset
14815
14816 Invoice no.
14817 \begin_inset Quotes erd
14818 \end_inset
14819
14820 , and 
14821 \begin_inset Quotes eld
14822 \end_inset
14823
14824 Date
14825 \begin_inset Quotes erd
14826 \end_inset
14827
14828 .
14829  For the date field, the value of the 
14830 \family sans
14831 Date
14832 \family default
14833  type is used.
14834  If one of these 
14835 \begin_inset Quotes eld
14836 \end_inset
14837
14838 business letter types
14839 \begin_inset Quotes erd
14840 \end_inset
14841
14842  is used, the value of the 
14843 \family sans
14844 Place
14845 \family default
14846  type however does not appear, but only the \SpecialChar LaTeX
14847  variable 
14848 \family typewriter
14849
14850 \backslash
14851 fromplace
14852 \family default
14853  is set.
14854  The ordinary output of place and date in a right-aligned line below the
14855  addressee`s field is suppressed.
14856  The types are implemented as input types provided with a label and must
14857  be used ahead of the corresponding 
14858 \family sans
14859 Opening
14860 \family default
14861  type.
14862 \end_layout
14863
14864 \begin_layout Itemize
14865
14866 \family sans
14867 Yourref
14868 \family default
14869 : Your ref.
14870 \end_layout
14871
14872 \begin_layout Itemize
14873
14874 \family sans
14875 Yourmail
14876 \family default
14877 : Your letter of.
14878 \end_layout
14879
14880 \begin_layout Itemize
14881
14882 \family sans
14883 Myref
14884 \family default
14885 : Our ref.
14886 \end_layout
14887
14888 \begin_layout Itemize
14889
14890 \family sans
14891 Customer
14892 \family default
14893 : Customer no.
14894 \end_layout
14895
14896 \begin_layout Itemize
14897
14898 \family sans
14899 Invoice
14900 \family default
14901 : Invoice no.
14902 \end_layout
14903
14904 \begin_layout Subsection
14905 The new letter class: letter (koma-script v.2)
14906 \end_layout
14907
14908 \begin_layout Standard
14909 by 
14910 \noun on
14911 Jürgen Spitzmüller
14912 \end_layout
14913
14914 \begin_layout Standard
14915 \begin_inset VSpace medskip
14916 \end_inset
14917
14918
14919 \end_layout
14920
14921 \begin_layout Standard
14922 \noindent
14923 Koma-Script version 2.8 has introduced a new letter class 
14924 \family typewriter
14925 scrlttr2
14926 \family default
14927  which supersedes the now unsupported 
14928 \family typewriter
14929 scrlettr
14930 \family default
14931 .
14932  It has — on the \SpecialChar LaTeX
14933  side — a completely new interface and is not compatible
14934  with the old class.
14935  Therefore, \SpecialChar LyX
14936  supports both, though it is recommended you use the new class.
14937 \end_layout
14938
14939 \begin_layout Standard
14940 This class covers the same functionality as 
14941 \emph on
14942 letter (koma-script),
14943 \emph default
14944  and a few more.
14945  The basic items are 
14946 \family sans
14947 Address
14948 \family default
14949  (receiver's address, same as 
14950 \family sans
14951 Letter
14952 \family default
14953  in the old layout), 
14954 \family sans
14955 Opening
14956 \family default
14957 , and 
14958 \family sans
14959 Closing
14960 \family default
14961 .
14962  
14963 \family sans
14964 NextAddress
14965 \family default
14966  will start a new letter (i.
14967 \begin_inset space \thinspace{}
14968 \end_inset
14969
14970 e.
14971 \begin_inset space \space{}
14972 \end_inset
14973
14974 you can write several letters per document).
14975  New elements are sender's 
14976 \family sans
14977 E-Mail
14978 \family default
14979
14980 \family sans
14981 URL
14982 \family default
14983
14984 \family sans
14985 Fax
14986 \family default
14987
14988 \family sans
14989 Bank
14990 \family default
14991  and the possibility to use a 
14992 \family sans
14993 Logo
14994 \family default
14995  (via 
14996 \family sans
14997 Insert\SpecialChar menuseparator
14998 Graphics
14999 \family default
15000 ) in the header.
15001 \end_layout
15002
15003 \begin_layout Standard
15004 The biggest improvement is, though, that the letter's layout is configurable
15005  to meet almost any needs.
15006  This can be done via the preamble or with a special style file (Letter
15007  Class Option, extension 
15008 \family typewriter
15009 *.lco
15010 \family default
15011 ), that will be read in as a class option.
15012 \begin_inset Foot
15013 status collapsed
15014
15015 \begin_layout Plain Layout
15016 The KOMA package comes with some default 
15017 \family typewriter
15018 *.lco
15019 \family default
15020  files.
15021  There is, for instance, a 
15022 \family typewriter
15023 DIN.lco
15024 \family default
15025  file that follows german typesetting rules, or a 
15026 \family typewriter
15027 KOMAold.lco
15028 \family default
15029  that provides the default layout of the old 
15030 \family typewriter
15031 scrlettr
15032 \family default
15033  class.
15034  The latter can be loaded with the class option 
15035 \family typewriter
15036 KOMAold
15037 \family default
15038 , inserted via the 
15039 \family sans
15040 Layout\SpecialChar menuseparator
15041 Document\SpecialChar menuseparator
15042 Extra Options
15043 \family default
15044  field.
15045 \end_layout
15046
15047 \end_inset
15048
15049  Have a look at the 
15050 \emph on
15051 koma-letter2
15052 \emph default
15053  template that is included in \SpecialChar LyX
15054  for examples.
15055  A detailed description is to be found in the Koma-Script documentation
15056  (
15057 \emph on
15058 scrguide
15059 \emph default
15060 ).
15061 \end_layout
15062
15063 \begin_layout Subsection
15064 Problems
15065 \end_layout
15066
15067 \begin_layout Standard
15068 Visualizing the Koma-Script document classes in \SpecialChar LyX
15069 , the \SpecialChar LyX
15070  internals cause some
15071  problems.
15072 \end_layout
15073
15074 \begin_layout Itemize
15075 The chapter number of a 
15076 \family sans
15077 Chapter
15078 \family default
15079  type appears on a line of its own above the chapter heading instead of
15080  appearing in the same line ahead of it.
15081  The cause for that is the \SpecialChar LyX
15082  internal behavior for the labeltype 
15083 \family sans
15084 Counter_Chapter
15085 \family default
15086  in the layout file.
15087 \end_layout
15088
15089 \begin_layout Itemize
15090 The headings of the types 
15091 \family sans
15092 Addchap
15093 \family default
15094  and 
15095 \family sans
15096 Addsec
15097 \family default
15098  are only put in the 
15099 \begin_inset Quotes eld
15100 \end_inset
15101
15102 true
15103 \begin_inset Quotes erd
15104 \end_inset
15105
15106  \SpecialChar LaTeX
15107  table of contents, but not in the \SpecialChar LyX
15108  table of contents (
15109 \family sans
15110 Document\SpecialChar menuseparator
15111 Table
15112 \begin_inset space ~
15113 \end_inset
15114
15115 of
15116 \begin_inset space ~
15117 \end_inset
15118
15119 Contents
15120 \family default
15121 ).
15122 \end_layout
15123
15124 \begin_layout Itemize
15125 The paragraphs in a 
15126 \emph on
15127 letter
15128 \emph default
15129  document class appear in a skip separation mode, not indented.
15130  This is the standard behavior, no special \SpecialChar LaTeX
15131  commands are needed for that.
15132  But in the 
15133 \family sans
15134 Document\SpecialChar menuseparator
15135 Settings
15136 \family default
15137  dialog the corresponding radio button indicates 
15138 \family sans
15139 Indent
15140 \family default
15141 .
15142  A 
15143 \family sans
15144 Skip
15145 \family default
15146  value always has the effect that extra \SpecialChar LaTeX
15147  commands are inserted in the document
15148  to produce the gap, which is not what is wanted in this case.
15149 \end_layout
15150
15151 \begin_layout Section
15152 Memoir
15153 \end_layout
15154
15155 \begin_layout Standard
15156 By 
15157 \noun on
15158 Jürgen Spitzmüller
15159 \end_layout
15160
15161 \begin_layout Subsection
15162 Overview
15163 \end_layout
15164
15165 \begin_layout Standard
15166 Memoir is a very powerful and constantly evolving class.
15167  It has been designed with regard to fictional and non-fictional literature.
15168  Its aim is to let the user have maximum control over the typesetting of
15169  his document.
15170  Memoir is based on the standard book class, but it can also emulate the
15171  article class (see below).
15172 \end_layout
15173
15174 \begin_layout Standard
15175 Peter Wilson, the developer of Memoir, is known as the author of lots of
15176  useful packages in the \SpecialChar LaTeX
15177  world.
15178  Most of them have been merged with Memoir.
15179  Therefore, it is much easier to layout the table of contents, appendices,
15180  chapter designs and such.
15181  \SpecialChar LyX
15182 , though, does not support all of these goodies natively.
15183  Some of them might be added to forthcoming releases
15184 \begin_inset Foot
15185 status collapsed
15186
15187 \begin_layout Plain Layout
15188 You are invited to send suggestions to 
15189 \begin_inset Flex URL
15190 status collapsed
15191
15192 \begin_layout Plain Layout
15193
15194 lyx-devel@lists.lyx.org
15195 \end_layout
15196
15197 \end_inset
15198
15199 .
15200 \end_layout
15201
15202 \end_inset
15203
15204 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15205 's framework.
15206  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15207
15208  commands (\SpecialChar TeX
15209  code
15210 \begin_inset Foot
15211 status collapsed
15212
15213 \begin_layout Plain Layout
15214 Cf.
15215 \begin_inset ERT
15216 status collapsed
15217
15218 \begin_layout Plain Layout
15219
15220
15221 \backslash
15222  
15223 \end_layout
15224
15225 \end_inset
15226
15227 section
15228 \begin_inset space ~
15229 \end_inset
15230
15231
15232 \begin_inset CommandInset ref
15233 LatexCommand ref
15234 reference "sec:Inserting-TeX-Code"
15235
15236 \end_inset
15237
15238  for details.
15239 \end_layout
15240
15241 \end_inset
15242
15243 ).
15244  In this section, we can only list those features that are natively supported
15245  by \SpecialChar LyX
15246 .
15247  For detailed descriptions (and for the rest of features) we recommend you
15248  have a look at the detailed manual of the Memoir class
15249 \begin_inset Foot
15250 status collapsed
15251
15252 \begin_layout Plain Layout
15253 Cf.
15254 \begin_inset ERT
15255 status collapsed
15256
15257 \begin_layout Plain Layout
15258
15259
15260 \backslash
15261  
15262 \end_layout
15263
15264 \end_inset
15265
15266
15267 \begin_inset Flex URL
15268 status collapsed
15269
15270 \begin_layout Plain Layout
15271
15272 CTAN:/macros/latex/memoir/memman.pdf
15273 \end_layout
15274
15275 \end_inset
15276
15277 .
15278 \end_layout
15279
15280 \end_inset
15281
15282 , which is not only a user guide for the class, but also both a comprehensive
15283  description on good typesetting and a superb example for good typesetting
15284  itself.
15285 \end_layout
15286
15287 \begin_layout Subsection
15288 Basic features and restrictions
15289 \end_layout
15290
15291 \begin_layout Standard
15292 Memoir supports basically all features of the standard book classes.
15293  There are, however, some differences, as follows:
15294 \end_layout
15295
15296 \begin_layout Description
15297 Font
15298 \begin_inset space ~
15299 \end_inset
15300
15301 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15302 \end_layout
15303
15304 \begin_layout Description
15305 Page
15306 \begin_inset space ~
15307 \end_inset
15308
15309 style: The fancy page style is not supported, due to a command clash between
15310  Memoir and the fancyhdr package (they both define a command with the same
15311  name, which confuses \SpecialChar LaTeX
15312 ).
15313  Instead, Memoir comes with a number of its own page styles (see 
15314 \family sans
15315 Layout\SpecialChar menuseparator
15316 Document\SpecialChar menuseparator
15317 Page
15318 \begin_inset space ~
15319 \end_inset
15320
15321 Style
15322 \family default
15323 ).
15324  If you want to use these for the chapter pages, you have to use the command
15325  
15326 \family typewriter
15327
15328 \backslash
15329 chapterstyle
15330 \family default
15331  in the main text or in preamble (e.
15332 \begin_inset space \thinspace{}
15333 \end_inset
15334
15335 g.
15336 \begin_inset space \space{}
15337 \end_inset
15338
15339
15340 \family typewriter
15341
15342 \backslash
15343 chapterstyle{companion}
15344 \family default
15345 ).
15346 \end_layout
15347
15348 \begin_layout Description
15349 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15350  optional argument in the standard classes.
15351  With this, you can specify an alternative version of the title for the
15352  table of contents and the headers (for instance, if the title is too long).
15353  In \SpecialChar LyX
15354 , you can do this via 
15355 \family sans
15356 Insert\SpecialChar menuseparator
15357 Short
15358 \begin_inset space ~
15359 \end_inset
15360
15361 Title
15362 \family default
15363  at the beginning of a chapter/section.
15364  Memoir features a second optional argument and thus separates the table
15365  of contents from the header.
15366  You can define three variants of a title with this: one for the main text,
15367  one for the table of contents, and one for the headers.
15368  Simply insert two optional arguments if you need this feature, the first
15369  one containing the short title for the Table of Contents, the second one
15370  containing an alternative short title for the headers.
15371 \end_layout
15372
15373 \begin_layout Description
15374 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15375  of contents, the list of figures and the list of table start a new page
15376  automatically.
15377  Memoir does not follow this route.
15378  You have to insert a page break yourself, if you want to have one.
15379 \end_layout
15380
15381 \begin_layout Description
15382 Titlepage: For some unknown reason, Memoir uses pagination on the title
15383  page (in the standard classes, title pages are 
15384 \begin_inset Quotes eld
15385 \end_inset
15386
15387 empty
15388 \begin_inset Quotes erd
15389 \end_inset
15390
15391 ).
15392  If you want an empty title page, type 
15393 \family typewriter
15394
15395 \backslash
15396 aliaspagestyle{title}{empty}
15397 \family default
15398  in the preamble.
15399 \end_layout
15400
15401 \begin_layout Description
15402 Article: With the class option 
15403 \emph on
15404 article
15405 \emph default
15406  (to be inserted in 
15407 \family sans
15408 Layout\SpecialChar menuseparator
15409 Document\SpecialChar menuseparator
15410 Extra
15411 \begin_inset space ~
15412 \end_inset
15413
15414 Options
15415 \family default
15416 ), you can emulate article style.
15417  That is, counters (footnotes, figures, tables etc.) will not be reset on
15418  new chapters, chapters don't start a new page (but are—in contrary to 
15419 \begin_inset Quotes eld
15420 \end_inset
15421
15422 real
15423 \begin_inset Quotes erd
15424 \end_inset
15425
15426  article classes—still allowed), parts, though, use their own page, as in
15427  book.
15428 \end_layout
15429
15430 \begin_layout Description
15431 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15432  font commands, which have been used in the old \SpecialChar LaTeX
15433  version 2.09 (e.
15434 \begin_inset space \thinspace{}
15435 \end_inset
15436
15437 g.
15438 \begin_inset space \space{}
15439 \end_inset
15440
15441
15442 \family typewriter
15443
15444 \backslash
15445 rm
15446 \family default
15447
15448 \family typewriter
15449
15450 \backslash
15451 it
15452 \family default
15453 ).
15454  It produces an error and stops \SpecialChar LaTeX
15455  whenever such a command appears.
15456  The class option 
15457 \emph on
15458 oldfontcommands
15459 \emph default
15460  reallows the commands and spits out warnings instead (which does at least
15461  not stop \SpecialChar LaTeX
15462 ).
15463  Since a lot of packages and particularly Bib\SpecialChar TeX
15464  style files are still using
15465  those commands, we have decided to use this option by default.
15466 \end_layout
15467
15468 \begin_layout Subsection
15469 Extra features
15470 \end_layout
15471
15472 \begin_layout Standard
15473 We will only describe the features supported by \SpecialChar LyX
15474  (which is not much currently).
15475  Please consult the Memoir manual
15476 \begin_inset Foot
15477 status collapsed
15478
15479 \begin_layout Plain Layout
15480 Cf.
15481 \begin_inset ERT
15482 status collapsed
15483
15484 \begin_layout Plain Layout
15485
15486
15487 \backslash
15488  
15489 \end_layout
15490
15491 \end_inset
15492
15493
15494 \begin_inset Flex URL
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498
15499 CTAN:/macros/latex/memoir/memman.pdf
15500 \end_layout
15501
15502 \end_inset
15503
15504 .
15505 \end_layout
15506
15507 \end_inset
15508
15509  for details.
15510 \end_layout
15511
15512 \begin_layout Description
15513 Abstract: You may wonder why an abstract is an extra feature.
15514  Well, it is in book class.
15515  Usually books don't have abstracts.
15516  Memoir, however, has.
15517  You can use it wherever and how often you like.
15518 \end_layout
15519
15520 \begin_layout Description
15521 Chapterprecis: You may know this older typesetting style: The contents of
15522  a chapter are summarized below the title and also in the table of contents
15523  (e.
15524 \begin_inset space \thinspace{}
15525 \end_inset
15526
15527 g.
15528 \begin_inset space \space{}
15529 \end_inset
15530
15531
15532 \emph on
15533 Our hero arrives in Troia; he loses some friends; he finds others
15534 \emph default
15535 ).
15536  Chapterprecis does exactly this.
15537  It is therefore only sensible below a chapter.
15538 \end_layout
15539
15540 \begin_layout Description
15541 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15542  The epigraph environment provides an elegant way of typesetting such a
15543  motto.
15544  The motto itself (text) and its author (source) are divided by a short
15545  line.
15546  Unfortunately, we have to fool \SpecialChar LyX
15547  a bit here again, since the environment
15548  needs two arguments (text and source).
15549  In this case, we have to use curly brackets (in \SpecialChar TeX
15550  mode) between the two
15551  arguments: 
15552 \emph on
15553 <smart slogan>
15554 \emph default
15555  
15556 \family typewriter
15557 }{
15558 \family default
15559  
15560 \emph on
15561 <author of the slogan>.
15562 \end_layout
15563
15564 \begin_layout Description
15565 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15566  complex figurative poems).
15567  \SpecialChar LyX
15568  can only support a few of them.
15569  One is poemtitle, which is a centered title for poems, which will also
15570  be added to the table of contents (verse is the standard environment for
15571  poems.
15572  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15573  code,
15574  because they have to be nested inside regular verse environments, which
15575  is not possible with \SpecialChar LyX
15576 ).
15577 \end_layout
15578
15579 \begin_layout Description
15580 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15581 \end_layout
15582
15583 \begin_layout Section
15584 Article (mwart), book (mwbk) and report (mwrep)
15585 \begin_inset Argument status
15586 status collapsed
15587
15588 \begin_layout Plain Layout
15589 The 
15590 \family typewriter
15591 mw
15592 \family default
15593  Classes
15594 \end_layout
15595
15596 \end_inset
15597
15598
15599 \end_layout
15600
15601 \begin_layout Standard
15602 by 
15603 \noun on
15604 Tomasz Luczak
15605 \end_layout
15606
15607 \begin_layout Standard
15608 The \SpecialChar LyX
15609  document classes 
15610 \emph on
15611 article (mwart)
15612 \emph default
15613
15614 \emph on
15615 report (mwrep)
15616 \emph default
15617  and 
15618 \emph on
15619 book
15620 \emph default
15621  
15622 \emph on
15623 (mwbk)
15624 \emph default
15625  correspond to the \SpecialChar LaTeX
15626  document classes 
15627 \family typewriter
15628 mwart.cls
15629 \family default
15630
15631 \family typewriter
15632 mwrep.cls
15633 \family default
15634  and 
15635 \family typewriter
15636 mwbk.cls
15637 \family default
15638 , resp.
15639  They are replacements for the standard document classes 
15640 \family typewriter
15641 article.cls
15642 \family default
15643
15644 \family typewriter
15645 report.cls
15646 \family default
15647  and 
15648 \family typewriter
15649 book.cls
15650 \family default
15651 , resp., and fit better to Polish typography conventions in a number of points.
15652  
15653 \end_layout
15654
15655 \begin_layout Standard
15656 Basic differences:
15657 \end_layout
15658
15659 \begin_layout Itemize
15660 Unnumbered titles (with star, e.
15661 \begin_inset space \thinspace{}
15662 \end_inset
15663
15664 g.
15665 \begin_inset space \space{}
15666 \end_inset
15667
15668
15669 \family sans
15670 Section*
15671 \family default
15672 ) are added into table of contents,
15673 \end_layout
15674
15675 \begin_layout Itemize
15676 Additional page styles:
15677 \begin_inset Separator latexpar
15678 \end_inset
15679
15680
15681 \end_layout
15682
15683 \begin_deeper
15684 \begin_layout Description
15685 uheadings header with separated lines,
15686 \end_layout
15687
15688 \begin_layout Description
15689 myheadings custom header, contents headers via commands: 
15690 \family typewriter
15691
15692 \backslash
15693 markright
15694 \family default
15695  and 
15696 \family typewriter
15697
15698 \backslash
15699 markboth
15700 \family default
15701 ,
15702 \end_layout
15703
15704 \begin_layout Description
15705 myuheadings custom header with separated lines,
15706 \end_layout
15707
15708 \begin_layout Description
15709 outer page number is placed on outer side of page
15710 \end_layout
15711
15712 \end_deeper
15713 \begin_layout Itemize
15714 Options 
15715 \begin_inset Separator latexpar
15716 \end_inset
15717
15718
15719 \end_layout
15720
15721 \begin_deeper
15722 \begin_layout Description
15723 rmheadings serif titles — default,
15724 \end_layout
15725
15726 \begin_layout Description
15727 sfheadings sansserif titles,
15728 \end_layout
15729
15730 \begin_layout Description
15731 authortitle on title page first placed is author next title — default,
15732 \end_layout
15733
15734 \begin_layout Description
15735 titleauthor on title page first placed is title next author,
15736 \end_layout
15737
15738 \begin_layout Description
15739 withmarginpar reserve place on page for margins.
15740 \end_layout
15741
15742 \end_deeper
15743 \begin_layout Section
15744 Paper
15745 \end_layout
15746
15747 \begin_layout Standard
15748 The document class 
15749 \family sans
15750 paper
15751 \family default
15752  provides an alternative to the standard 
15753 \family sans
15754 article
15755 \family default
15756  class.
15757  It provides similar functionality, but you might prefer this layout with
15758  sans serif sections, headings, and more.
15759 \end_layout
15760
15761 \begin_layout Section
15762 Rev\SpecialChar TeX
15763 4
15764 \end_layout
15765
15766 \begin_layout Standard
15767 by 
15768 \noun on
15769 Amir Karger
15770 \end_layout
15771
15772 \begin_layout Standard
15773 \begin_inset VSpace bigskip
15774 \end_inset
15775
15776
15777 \end_layout
15778
15779 \begin_layout Standard
15780 \noindent
15781 The 
15782 \family sans
15783 Revtex
15784 \begin_inset space ~
15785 \end_inset
15786
15787 4
15788 \family default
15789  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
15790  4.0 (the 
15791 \begin_inset Formula $\beta$
15792 \end_inset
15793
15794  release of May, 1999) class.
15795 \end_layout
15796
15797 \begin_layout Standard
15798 \SpecialChar LyX
15799  has a 
15800 \family sans
15801 Revtex
15802 \family default
15803  textclass, which works with Rev\SpecialChar TeX
15804  3.1.
15805  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
15806  2.09.
15807  That means that it doesn't interact very well with \SpecialChar LyX
15808 , which requires \SpecialChar LaTeX2e
15809 , although
15810  it has been kludged to work.
15811  Since Rev\SpecialChar TeX
15812  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
15813 , \SpecialChar LyX
15814  with the
15815  
15816 \family sans
15817 Rev\SpecialChar TeX
15818
15819 \begin_inset space ~
15820 \end_inset
15821
15822 4
15823 \family default
15824  textclass should also be pretty easy to use.
15825 \end_layout
15826
15827 \begin_layout Standard
15828 These documents are supposed to be used in 
15829 \emph on
15830 addition
15831 \emph default
15832  to the Rev\SpecialChar TeX
15833  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
15834  macros,
15835  and assume you'll know what to put in the preamble if necessary.
15836 \end_layout
15837
15838 \begin_layout Subsection
15839 Installation
15840 \end_layout
15841
15842 \begin_layout Standard
15843 All you need to do is install Rev\SpecialChar TeX
15844  4, as described in the package's README
15845  file.
15846  The package can be found at The Rev\SpecialChar TeX
15847  4 Web Site 
15848 \begin_inset Flex URL
15849 status collapsed
15850
15851 \begin_layout Plain Layout
15852
15853 http://publish.aps.org/revtex4/
15854 \end_layout
15855
15856 \end_inset
15857
15858 .
15859  Install it somewhere that \SpecialChar LaTeX
15860  can see it.
15861  Test it by trying to \SpecialChar LaTeX
15862  a short Rev\SpecialChar TeX
15863  4 document in some random directory (i.
15864 \begin_inset space \thinspace{}
15865 \end_inset
15866
15867 e.
15868 \begin_inset space \space{}
15869 \end_inset
15870
15871 not the directory where you installed the class file.) Then, if you reconfigure
15872  \SpecialChar LyX
15873 , it will find the class file and let you use the Rev\SpecialChar TeX
15874 4 textclass.
15875 \end_layout
15876
15877 \begin_layout Standard
15878 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
15879  4 document
15880  using 
15881 \family typewriter
15882 tex2lyx
15883 \family default
15884 , or to use the 
15885 \family sans
15886 Revtex
15887 \begin_inset space ~
15888 \end_inset
15889
15890 4
15891 \family default
15892  template, found in the templates directory.
15893 \end_layout
15894
15895 \begin_layout Subsection
15896 Preamble Matter
15897 \end_layout
15898
15899 \begin_layout Standard
15900 Optional arguments to 
15901 \family typewriter
15902
15903 \backslash
15904 documentclass
15905 \family default
15906 , like 
15907 \begin_inset Quotes eld
15908 \end_inset
15909
15910 preprint
15911 \begin_inset Quotes erd
15912 \end_inset
15913
15914  and 
15915 \begin_inset Quotes eld
15916 \end_inset
15917
15918 aps
15919 \begin_inset Quotes erd
15920 \end_inset
15921
15922 , go in the 
15923 \family sans
15924 Extra
15925 \begin_inset space ~
15926 \end_inset
15927
15928 Options
15929 \family default
15930  field in the 
15931 \family sans
15932 Document
15933 \begin_inset space ~
15934 \end_inset
15935
15936 Layout
15937 \family default
15938  dialog, as usual.
15939  Remember that in Rev\SpecialChar TeX
15940 , at least one optional argument is required! 
15941 \end_layout
15942
15943 \begin_layout Standard
15944 Other preamble matter, like 
15945 \family typewriter
15946
15947 \backslash
15948 draft
15949 \family default
15950  etc.
15951 \begin_inset space ~
15952 \end_inset
15953
15954 goes in the 
15955 \family sans
15956 \SpecialChar LaTeX
15957
15958 \begin_inset space ~
15959 \end_inset
15960
15961 Preamble
15962 \family default
15963  dialog, also as usual.
15964 \end_layout
15965
15966 \begin_layout Subsection
15967 Layouts
15968 \end_layout
15969
15970 \begin_layout Standard
15971 The layouts basically correspond to the commands in Rev\SpecialChar TeX
15972 4.0.
15973  For example, the Email layout corresponds to 
15974 \family typewriter
15975
15976 \backslash
15977 email{}
15978 \family default
15979 .
15980  Note that (at least as of Rev\SpecialChar TeX
15981  4.0 Beta), the 
15982 \family sans
15983 Address
15984 \family default
15985  and 
15986 \family sans
15987 Affiliation
15988 \family default
15989  layouts are exactly equivalent, so you shouldn't need to use both.
15990 \begin_inset Foot
15991 status collapsed
15992
15993 \begin_layout Plain Layout
15994 In case you're curious, both were included so that 
15995 \family typewriter
15996 tex2lyx
15997 \family default
15998  would be able to translate both 
15999 \family typewriter
16000
16001 \backslash
16002 address
16003 \family default
16004  and 
16005 \family typewriter
16006
16007 \backslash
16008 affiliation
16009 \family default
16010 .
16011 \end_layout
16012
16013 \end_inset
16014
16015
16016 \end_layout
16017
16018 \begin_layout Subsection
16019 Important Notes
16020 \end_layout
16021
16022 \begin_layout Standard
16023 There are a couple of important unique aspects of Rev\SpecialChar TeX
16024  4 which might cause
16025  bugs that will be even more confusing in \SpecialChar LyX
16026 .
16027 \end_layout
16028
16029 \begin_layout Standard
16030 In Rev\SpecialChar TeX
16031 , the 
16032 \family typewriter
16033
16034 \backslash
16035 thanks
16036 \family default
16037  command goes 
16038 \emph on
16039 outside
16040 \emph default
16041  the 
16042 \family typewriter
16043
16044 \backslash
16045 author
16046 \family default
16047  command.
16048  The \SpecialChar LyX
16049  equivalent is that there is a separate Thanks layout.
16050  Do 
16051 \emph on
16052 not
16053 \emph default
16054  write footnotes in the 
16055 \family sans
16056 Author
16057 \family default
16058  layout, or weird things may happen.
16059  See the Rev\SpecialChar TeX
16060  4 documentation for more details.
16061 \end_layout
16062
16063 \begin_layout Standard
16064 Also, the 
16065 \family sans
16066 Author
16067 \begin_inset space ~
16068 \end_inset
16069
16070 Email
16071 \family default
16072
16073 \family sans
16074 Author
16075 \begin_inset space ~
16076 \end_inset
16077
16078 URL
16079 \family default
16080 , and 
16081 \family sans
16082 Thanks
16083 \family default
16084  layouts must be placed 
16085 \emph on
16086 in between
16087 \emph default
16088  the 
16089 \family sans
16090 Author
16091 \family default
16092  layout and the corresponding 
16093 \family sans
16094 Address
16095 \family default
16096  (or equivalent 
16097 \family sans
16098 Affiliation
16099 \family default
16100 ) layout.
16101  If you put the 
16102 \family sans
16103 Thanks
16104 \family default
16105  after the 
16106 \family sans
16107 Address
16108 \family default
16109 , the \SpecialChar LaTeX
16110  won't compile.
16111 \end_layout
16112
16113 \begin_layout Subsection
16114 Drawbacks
16115 \end_layout
16116
16117 \begin_layout Standard
16118 The main problem with this layout is that you can't use the optional arguments
16119  to layouts like Email and Title.
16120  (The problem is not unique to this layout; you can't use optional arguments
16121  to the Section layouts either.) This means that after you export that file
16122  to \SpecialChar LaTeX
16123  (which you'll need to do eventually to send it in to APS), you'll need
16124  to edit the \SpecialChar LaTeX
16125  file with a text editor to add the optional arguments to set,
16126  e.
16127 \begin_inset space \thinspace{}
16128 \end_inset
16129
16130 g.
16131 \begin_inset space \space{}
16132 \end_inset
16133
16134 the running title for the page headers.
16135  Lacking these layouts makes the 
16136 \family typewriter
16137
16138 \backslash
16139 altaffiliation
16140 \family default
16141  (and the equivalent 
16142 \family typewriter
16143
16144 \backslash
16145 altaddress
16146 \family default
16147 ) useless, so the corresponding layouts don't exist, and will have to be
16148  added by hand.
16149 \begin_inset Foot
16150 status collapsed
16151
16152 \begin_layout Plain Layout
16153
16154 \emph on
16155 Note from JMarc:
16156 \emph default
16157  actually, \SpecialChar LyX
16158  1.3.0 supports some forms of optional arguments, but this layout
16159  has not been updated yet to take advantage of it.
16160 \end_layout
16161
16162 \end_inset
16163
16164  
16165 \end_layout
16166
16167 \begin_layout Section
16168 Springer Journals (
16169 \family sans
16170 svjour
16171 \family default
16172 )
16173 \end_layout
16174
16175 \begin_layout Standard
16176 by 
16177 \noun on
16178 Martin Vermeer
16179 \end_layout
16180
16181 \begin_layout Subsection
16182 Description
16183 \end_layout
16184
16185 \begin_layout Standard
16186 These are the layout files for some of the journal formats used by Springer
16187  Verlag and listed on 
16188 \begin_inset Flex URL
16189 status collapsed
16190
16191 \begin_layout Plain Layout
16192
16193 http://www.springer.de/author/tex/help-journals.html
16194 \end_layout
16195
16196 \end_inset
16197
16198 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16199  now!).
16200  It is a modular system: the things common to all journals are implemented
16201  in 
16202 \family typewriter
16203 svjour.inc
16204 \family default
16205 , which journal-specific layout files (such as, e.
16206 \begin_inset space \thinspace{}
16207 \end_inset
16208
16209 g.
16210 \begin_inset space \space{}
16211 \end_inset
16212
16213
16214 \family typewriter
16215 svjog.layout
16216 \family default
16217  for Journal of Geodesy) can include.
16218 \end_layout
16219
16220 \begin_layout Standard
16221 This means that implementing support for any other Springer journal on this
16222  list is as simple as writing your own 
16223 \family typewriter
16224 sv
16225 \family default
16226 <myjournal>
16227 \family typewriter
16228 .layout
16229 \family default
16230  file following the outline given in 
16231 \family typewriter
16232 svjog.layout
16233 \family default
16234 .
16235  
16236 \end_layout
16237
16238 \begin_layout Standard
16239 It is reasonably well tested only for the Journal of Geodesy.
16240  
16241 \family typewriter
16242 svjour
16243 \family default
16244  and 
16245 \family typewriter
16246 svjog
16247 \family default
16248  come with the standard \SpecialChar LyX
16249  distribution.
16250  Install the relevant class file (downloaded from Springer) in a proper
16251  directory, reconfigure \SpecialChar LaTeX
16252  (in the te\SpecialChar TeX
16253  case by running 
16254 \family typewriter
16255 texhash
16256 \family default
16257 , as root if necessary — doesn't \SpecialChar LyX
16258  take care of this?), reconfigure \SpecialChar LyX
16259  and
16260  it should work.
16261 \end_layout
16262
16263 \begin_layout Subsection
16264 New styles
16265 \end_layout
16266
16267 \begin_layout Standard
16268 A large number of theorem-like styles — 
16269 \family sans
16270 Claim, Conjecture,
16271 \family default
16272  
16273 \family sans
16274 \SpecialChar ldots
16275 Theorem
16276 \family default
16277 .
16278 \end_layout
16279
16280 \begin_layout Standard
16281
16282 \family sans
16283 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16284 _Title, Author_Running, Institute,
16285  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16286 \family default
16287 .
16288  See the Springer class file documentation for details.
16289 \end_layout
16290
16291 \begin_layout Subsection
16292 Supported journals
16293 \end_layout
16294
16295 \begin_layout Itemize
16296
16297 \emph on
16298 Journal of Geodesy
16299 \emph default
16300
16301 \family typewriter
16302 svjog.layout
16303 \family default
16304  — Martin Vermeer
16305 \end_layout
16306
16307 \begin_layout Itemize
16308
16309 \emph on
16310 Probability Theory and Related Fields
16311 \emph default
16312
16313 \family typewriter
16314 svprobth.layout
16315 \family default
16316  — Jean-Marc Lasgouttes
16317 \end_layout
16318
16319 \begin_layout Standard
16320 Add your own, it isn't so hard!
16321 \end_layout
16322
16323 \begin_layout Subsection
16324 Credits
16325 \end_layout
16326
16327 \begin_layout Standard
16328 These files are partly based on the older 
16329 \family typewriter
16330 ejour2.layout
16331 \family default
16332 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16333  2.09 style
16334  file from Springer.
16335  All this, and the 
16336 \family typewriter
16337 ejour2
16338 \family default
16339  layout, are now defunct.
16340  Jean-Marc Lasgouttes helped out big in making me find my way around the
16341  \SpecialChar LyX
16342  layout file mechanism.
16343 \end_layout
16344
16345 \begin_layout Subsection
16346 Bugs
16347 \end_layout
16348
16349 \begin_layout Standard
16350 Probably.
16351  But probably less than in the old hacked-\SpecialChar LaTeX
16352  
16353 \family typewriter
16354 ejour2
16355 \family default
16356 .
16357 \end_layout
16358
16359 \begin_layout Standard
16360 Limitations e.
16361 \begin_inset space \thinspace{}
16362 \end_inset
16363
16364 g.: does not display the number for theorem-like layouts, just #.
16365 \end_layout
16366
16367 \begin_layout Section
16368 Slides [aka 
16369 \noun on
16370 Sli\SpecialChar TeX
16371
16372 \noun default
16373 ]
16374 \begin_inset CommandInset label
16375 LatexCommand label
16376 name "sec:slitex"
16377
16378 \end_inset
16379
16380
16381 \end_layout
16382
16383 \begin_layout Standard
16384 by 
16385 \noun on
16386 John Weiss
16387 \noun default
16388  
16389 \end_layout
16390
16391 \begin_layout Subsection
16392 Introduction
16393 \end_layout
16394
16395 \begin_layout Standard
16396 This section describes how to use \SpecialChar LyX
16397  to make slides for overhead projectors.
16398  There are two document classes that can do this: the default slides class
16399  and the 
16400 \family sans
16401 Foil\SpecialChar TeX
16402
16403 \family default
16404  slides class.
16405  This section documents the former.
16406 \end_layout
16407
16408 \begin_layout Standard
16409 I'm going to say this again, nice and clear, so that there's no misunderstanding
16410 :
16411 \end_layout
16412
16413 \begin_layout Standard
16414 \begin_inset VSpace bigskip
16415 \end_inset
16416
16417
16418 \end_layout
16419
16420 \begin_layout Standard
16421 \align center
16422
16423 \size large
16424 This section documents the class 
16425 \begin_inset Quotes eld
16426 \end_inset
16427
16428
16429 \family sans
16430 slides (default)
16431 \family default
16432
16433 \begin_inset Quotes erd
16434 \end_inset
16435
16436  
16437 \emph on
16438 only.
16439 \end_layout
16440
16441 \begin_layout Standard
16442 \begin_inset VSpace bigskip
16443 \end_inset
16444
16445
16446 \end_layout
16447
16448 \begin_layout Standard
16449 If you're looking for the documentation for 
16450 \begin_inset Quotes eld
16451 \end_inset
16452
16453
16454 \family sans
16455 slides (Foil\SpecialChar TeX
16456 )
16457 \family default
16458
16459 \begin_inset Quotes erd
16460 \end_inset
16461
16462 , check out section
16463 \begin_inset space ~
16464 \end_inset
16465
16466
16467 \begin_inset CommandInset ref
16468 LatexCommand ref
16469 reference "sec:foiltex"
16470
16471 \end_inset
16472
16473 .
16474  The 
16475 \family sans
16476 foils
16477 \family default
16478  class [
16479 \begin_inset Quotes eld
16480 \end_inset
16481
16482
16483 \family sans
16484 slides (Foil\SpecialChar TeX
16485 )
16486 \family default
16487
16488 \begin_inset Quotes erd
16489 \end_inset
16490
16491 ] is actually somewhat better than the default 
16492 \family sans
16493 slides
16494 \family default
16495  class,
16496 \begin_inset Foot
16497 status collapsed
16498
16499 \begin_layout Plain Layout
16500 \SpecialChar ldots
16501 or so I've been told repeatedly by its advocates.
16502  Having never used it, I have no idea if this claim is true or not.
16503 \end_layout
16504
16505 \end_inset
16506
16507  which this section documents.
16508 \end_layout
16509
16510 \begin_layout Standard
16511 This class is the \SpecialChar LaTeX2e
16512  improvement of the old 
16513 \noun on
16514 Sli\SpecialChar TeX
16515
16516 \noun default
16517  package.
16518  Every \SpecialChar LaTeX2e
16519  distribution includes this class [which I'll just refer to as 
16520 \begin_inset Quotes eld
16521 \end_inset
16522
16523
16524 \family sans
16525 slides
16526 \family default
16527
16528 \begin_inset Quotes erd
16529 \end_inset
16530
16531  from now on], so you're bound to have it.
16532  As I noted earlier, there are other classes, such as 
16533 \family sans
16534 foils
16535 \family default
16536 , which also produce slides for overhead projectors and do a better job
16537  at it.
16538  However, there are some things which 
16539 \family sans
16540 slides
16541 \family default
16542  can do which the others can't, such as generate overlays.
16543  Read on to learn more!
16544 \end_layout
16545
16546 \begin_layout Subsection
16547 Getting Started
16548 \begin_inset CommandInset label
16549 LatexCommand label
16550 name "sec:slidesetup"
16551
16552 \end_inset
16553
16554
16555 \end_layout
16556
16557 \begin_layout Standard
16558 Obviously, to use this document class, you need to select 
16559 \begin_inset Quotes eld
16560 \end_inset
16561
16562
16563 \family sans
16564 slides (default)
16565 \family default
16566
16567 \begin_inset Quotes erd
16568 \end_inset
16569
16570  from the class list in the 
16571 \family sans
16572 Document\SpecialChar menuseparator
16573 Settings
16574 \family default
16575  dialog.
16576  There are some other special things you should know about this class:
16577 \end_layout
16578
16579 \begin_layout Itemize
16580 Don't bother changing the options 
16581 \family sans
16582 Sides and Columns
16583 \family default
16584 .
16585  They're not supported by the 
16586 \family sans
16587 slides
16588 \family default
16589  class, anyways.
16590 \end_layout
16591
16592 \begin_layout Itemize
16593 The option 
16594 \family sans
16595 Page
16596 \begin_inset space ~
16597 \end_inset
16598
16599 style
16600 \family default
16601  behaves a bit differently for this class.
16602  The possible choices and what they do are as follows:
16603 \begin_inset Separator latexpar
16604 \end_inset
16605
16606
16607 \end_layout
16608
16609 \begin_deeper
16610 \begin_layout Description
16611
16612 \family sans
16613 plain
16614 \family default
16615  The final output contains page numbers in the lower right corner.
16616 \end_layout
16617
16618 \begin_layout Description
16619
16620 \family sans
16621 headings
16622 \family default
16623  Like 
16624 \family sans
16625 plain
16626 \family default
16627 , but also prints out any time markers you've put in.
16628  This is the default.
16629 \end_layout
16630
16631 \begin_layout Description
16632
16633 \family sans
16634 empty
16635 \family default
16636  The final output contains no page numbers, time markers, or alignment markers.
16637 \end_layout
16638
16639 \end_deeper
16640 \begin_layout Itemize
16641 The 
16642 \family sans
16643 slides
16644 \family default
16645  class has an extra option: 
16646 \family typewriter
16647 clock
16648 \family default
16649 .
16650  To use it, put 
16651 \begin_inset Quotes eld
16652 \end_inset
16653
16654
16655 \family typewriter
16656 clock
16657 \family default
16658
16659 \begin_inset Quotes erd
16660 \end_inset
16661
16662  in the extra class options.
16663 \begin_inset Separator latexpar
16664 \end_inset
16665
16666
16667 \end_layout
16668
16669 \begin_deeper
16670 \begin_layout Standard
16671 Using this options allows you to add time markers to 
16672 \family sans
16673 Note
16674 \family default
16675 s.
16676  See section
16677 \begin_inset space ~
16678 \end_inset
16679
16680
16681 \begin_inset CommandInset ref
16682 LatexCommand ref
16683 reference "sec:slideNote"
16684
16685 \end_inset
16686
16687  for more details.
16688 \end_layout
16689
16690 \end_deeper
16691 \begin_layout Standard
16692 You can also use the template file 
16693 \begin_inset Quotes eld
16694 \end_inset
16695
16696
16697 \family typewriter
16698 slides.lyx
16699 \family default
16700
16701 \begin_inset Quotes erd
16702 \end_inset
16703
16704  to automatically set up a document to use the 
16705 \family sans
16706 slides
16707 \family default
16708  class [using 
16709 \family sans
16710 File\SpecialChar menuseparator
16711 New
16712 \begin_inset space ~
16713 \end_inset
16714
16715 from
16716 \begin_inset space ~
16717 \end_inset
16718
16719 Template
16720 \family default
16721  to open your new document].
16722  The template file also contains some examples of the special paragraph
16723  environments used by this class.
16724  I'll describe those next.
16725 \end_layout
16726
16727 \begin_layout Subsection
16728 Paragraph Environments
16729 \end_layout
16730
16731 \begin_layout Subsubsection
16732 Supported Environments
16733 \end_layout
16734
16735 \begin_layout Standard
16736 The first thing you'll notice when you start up a new 
16737 \family sans
16738 slides
16739 \family default
16740  document is the font size and type: it's the equivalent of the size 
16741 \begin_inset Quotes eld
16742 \end_inset
16743
16744
16745 \family sans
16746 Largest
16747 \family default
16748
16749 \begin_inset Quotes erd
16750 \end_inset
16751
16752  in the 
16753 \family sans
16754 Sans
16755 \begin_inset space ~
16756 \end_inset
16757
16758 Serif
16759 \family default
16760  font.
16761  This is also what's used in the output.
16762  Think of this as a 
16763 \begin_inset Quotes eld
16764 \end_inset
16765
16766 visual cue
16767 \begin_inset Quotes erd
16768 \end_inset
16769
16770  to remind you that this is a slide.
16771  Your final slides will use a larger font; ergo, you'll have less space.
16772  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
16773 \end_layout
16774
16775 \begin_layout Standard
16776 The next thing that becomes obvious is the changes to the paragraph environment
16777  pull-down box [at the far-left end of the toolbar].
16778  Most of the paragraph environments you're used to seeing are missing.
16779  There are also five new ones.
16780  That's because the 
16781 \family sans
16782 slides
16783 \family default
16784  class itself only supports certain paragraph environments:
16785 \end_layout
16786
16787 \begin_layout Itemize
16788
16789 \family sans
16790 Standard
16791 \end_layout
16792
16793 \begin_layout Itemize
16794
16795 \family sans
16796 Itemize
16797 \end_layout
16798
16799 \begin_layout Itemize
16800
16801 \family sans
16802 Enumerate
16803 \end_layout
16804
16805 \begin_layout Itemize
16806
16807 \family sans
16808 Description
16809 \end_layout
16810
16811 \begin_layout Itemize
16812
16813 \family sans
16814 List
16815 \end_layout
16816
16817 \begin_layout Itemize
16818
16819 \family sans
16820 Quotation
16821 \end_layout
16822
16823 \begin_layout Itemize
16824
16825 \family sans
16826 Quote
16827 \end_layout
16828
16829 \begin_layout Itemize
16830
16831 \family sans
16832 Verse
16833 \end_layout
16834
16835 \begin_layout Itemize
16836
16837 \family sans
16838 Caption
16839 \end_layout
16840
16841 \begin_layout Itemize
16842
16843 \family sans
16844 \SpecialChar LyX
16845 -Code
16846 \end_layout
16847
16848 \begin_layout Itemize
16849
16850 \family sans
16851 Comment
16852 \end_layout
16853
16854 \begin_layout Standard
16855 All of the other standard environments, including the section-heading environmen
16856 ts, aren't used in the 
16857 \family sans
16858 slides
16859 \family default
16860  class.
16861 \end_layout
16862
16863 \begin_layout Standard
16864 On the other hand, you'll notice the following new environments:
16865 \end_layout
16866
16867 \begin_layout Itemize
16868
16869 \family sans
16870 Slide
16871 \end_layout
16872
16873 \begin_layout Itemize
16874
16875 \family sans
16876 Overlay
16877 \end_layout
16878
16879 \begin_layout Itemize
16880
16881 \family sans
16882 Note
16883 \end_layout
16884
16885 \begin_layout Itemize
16886
16887 \family sans
16888 InvisibleText
16889 \end_layout
16890
16891 \begin_layout Itemize
16892
16893 \family sans
16894 VisibleText
16895 \end_layout
16896
16897 \begin_layout Standard
16898 These five are kind of quirky, due to a 
16899 \begin_inset Quotes eld
16900 \end_inset
16901
16902 feature
16903 \begin_inset Quotes erd
16904 \end_inset
16905
16906  in \SpecialChar LyX
16907 .
16908  You see, \SpecialChar LyX
16909  doesn't permit you to nest any other paragraph environment into
16910  an empty environment.
16911  Now, that's fine and dandy, but it means that you wouldn't be able to start
16912  a slide with anything except plain text.
16913  To deal with this, I've performed a little 
16914 \begin_inset Quotes eld
16915 \end_inset
16916
16917 \SpecialChar LaTeX
16918  magic.
16919 \begin_inset Quotes erd
16920 \end_inset
16921
16922  
16923 \end_layout
16924
16925 \begin_layout Subsubsection
16926 Quirks of the New Environments
16927 \begin_inset CommandInset label
16928 LatexCommand label
16929 name "sec:slideQuirk"
16930
16931 \end_inset
16932
16933
16934 \end_layout
16935
16936 \begin_layout Standard
16937 All five of the new paragraph environments are somewhat quirky due to inherent
16938  limitiations in the current version of \SpecialChar LyX
16939 .
16940  As I just mentioned, \SpecialChar LyX
16941  forbids environments that begin with another environment.
16942  To get around this, the 
16943 \family sans
16944 Slide
16945 \family default
16946  environment isn't a paragraph environment as described in the 
16947 \emph on
16948 User's Guide
16949 \emph default
16950 .
16951  
16952 \end_layout
16953
16954 \begin_layout Standard
16955 You should consider 
16956 \family sans
16957 Slide
16958 \family default
16959
16960 \family sans
16961 Overlay
16962 \family default
16963 , and 
16964 \family sans
16965 Note
16966 \family default
16967  to be 
16968 \begin_inset Quotes eld
16969 \end_inset
16970
16971 pseudo-environments.
16972 \begin_inset Quotes erd
16973 \end_inset
16974
16975  They look like a section heading or a 
16976 \begin_inset Quotes eld
16977 \end_inset
16978
16979
16980 \family sans
16981 Caption
16982 \family default
16983 ,
16984 \begin_inset Quotes erd
16985 \end_inset
16986
16987  but really begin a [and, if necessary, end the previous] paragraph environment.
16988  Likewise, treat 
16989 \family sans
16990 InvisibleText
16991 \family default
16992  and 
16993 \family sans
16994 VisibleText
16995 \family default
16996  as 
16997 \begin_inset Quotes eld
16998 \end_inset
16999
17000 pseudo-commands.
17001 \begin_inset Quotes erd
17002 \end_inset
17003
17004  These two perform some action.
17005 \end_layout
17006
17007 \begin_layout Standard
17008 A common feature of all five environments, 
17009 \family sans
17010 Slide
17011 \family default
17012
17013 \family sans
17014 Overlay
17015 \family default
17016
17017 \family sans
17018 Note
17019 \family default
17020
17021 \family sans
17022 InvisibleText
17023 \family default
17024  and 
17025 \family sans
17026 VisibleText
17027 \family default
17028 , is a rather long-ish label.
17029  The text following this label — ordinarily the contents of the paragraph
17030  environment — is utterly irrelevant for 
17031 \family sans
17032 Slide
17033 \family default
17034
17035 \family sans
17036 Overlay
17037 \family default
17038
17039 \family sans
17040 Note
17041 \family default
17042
17043 \family sans
17044 InvisibleText
17045 \family default
17046  and 
17047 \family sans
17048 VisibleText
17049 \family default
17050 .
17051  \SpecialChar LyX
17052  completely ignores it.
17053  In fact, you can leave these five environments completely empty.
17054  
17055 \end_layout
17056
17057 \begin_layout Standard
17058 While you don't 
17059 \emph on
17060 have
17061 \emph default
17062  to put any text after the rather long-ish label, you might want to.
17063  This could be a short description of the contents of the 
17064 \family sans
17065 Slide
17066 \family default
17067 , for example.
17068  In that case, enter your descriptive comment and hit 
17069 \family sans
17070 Return
17071 \family default
17072  as you normally would.
17073 \end_layout
17074
17075 \begin_layout Standard
17076 If, on the other hand, you don't want to enter any descriptive text, you'll
17077  hit another \SpecialChar LyX
17078  quirk.
17079  \SpecialChar LyX
17080 , like nature, abhors a vacuum, and will not let you start a new paragraph
17081  environment until you put something in the old one.
17082  So, do this:
17083 \end_layout
17084
17085 \begin_layout Itemize
17086 Start entering the text that will 
17087 \emph on
17088 follow
17089 \emph default
17090  the new 
17091 \family sans
17092 Slide
17093 \family default
17094
17095 \family sans
17096 Overlay
17097 \family default
17098
17099 \family sans
17100 Note
17101 \family default
17102
17103 \family sans
17104 InvisibleText
17105 \family default
17106  or 
17107 \family sans
17108 VisibleText
17109 \family default
17110 .
17111  
17112 \end_layout
17113
17114 \begin_layout Itemize
17115 Now move to the beginning of that paragraph.
17116  
17117 \end_layout
17118
17119 \begin_layout Itemize
17120 Next, hit 
17121 \family sans
17122 Return
17123 \family default
17124 .
17125  
17126 \end_layout
17127
17128 \begin_layout Itemize
17129 Finally, change this new, empty paragraph to a 
17130 \family sans
17131 Slide
17132 \family default
17133
17134 \family sans
17135 Overlay
17136 \family default
17137
17138 \family sans
17139 Note
17140 \family default
17141
17142 \family sans
17143 InvisibleText
17144 \family default
17145  or 
17146 \family sans
17147 VisibleText
17148 \family default
17149 .
17150  
17151 \end_layout
17152
17153 \begin_layout Standard
17154 Some future version of \SpecialChar LyX
17155  will, hopefully, resolve this quirkiness\SpecialChar ldots
17156
17157 \end_layout
17158
17159 \begin_layout Subsection
17160 Making a Presentation with 
17161 \family sans
17162 Slide
17163 \family default
17164
17165 \family sans
17166 Overlay
17167 \family default
17168  and 
17169 \family sans
17170 Note
17171 \end_layout
17172
17173 \begin_layout Subsubsection
17174 Using the 
17175 \family sans
17176 Slide
17177 \family default
17178  Environment
17179 \end_layout
17180
17181 \begin_layout Standard
17182 If you're expecting this section to teach you how to actually make a presentatio
17183 n, you'll be sorely disappointed.
17184  Naturally, I'll describe all of the ways the 
17185 \family sans
17186 slides
17187 \family default
17188  class can assist you in preparing the materials for a presentation.
17189  Filling in the contents, however, is up to you.
17190  [Then again, that 
17191 \emph on
17192 is
17193 \emph default
17194  the \SpecialChar LyX
17195  philosophy.]
17196 \end_layout
17197
17198 \begin_layout Standard
17199 Choosing the 
17200 \family sans
17201 Slide
17202 \family default
17203  environment [in the manner described in section
17204 \begin_inset space ~
17205 \end_inset
17206
17207
17208 \begin_inset CommandInset ref
17209 LatexCommand ref
17210 reference "sec:slideQuirk"
17211
17212 \end_inset
17213
17214 ] tells \SpecialChar LyX
17215  to begin a new slide [duh].
17216  The label for this environment/
17217 \begin_inset Quotes erd
17218 \end_inset
17219
17220 pseudo-command
17221 \begin_inset Quotes erd
17222 \end_inset
17223
17224  is an 
17225 \begin_inset Quotes eld
17226 \end_inset
17227
17228 ASCII line,
17229 \begin_inset Quotes erd
17230 \end_inset
17231
17232  in cool blue, followed by the label, 
17233 \begin_inset Quotes eld
17234 \end_inset
17235
17236 NewSlide:
17237 \begin_inset Quotes erd
17238 \end_inset
17239
17240 .
17241  Any text or paragraph environments that follow this one go on the new slide.
17242  It's that simple.
17243 \end_layout
17244
17245 \begin_layout Standard
17246 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17247
17248  (this can be specified in the 
17249 \family sans
17250 Paragraph Layout
17251 \family default
17252  dialog).
17253  In fact, you'll want to, once you finish entering the contents of one slide.
17254  If you've entered more text than can physically fit on a slide, the extra
17255  overflows onto a new slide.
17256  I don't recommend doing this, however, since the overflow slide won't have
17257  any page number on it.
17258  Furthermore, it may interfere with any 
17259 \family sans
17260 Overlay
17261 \family default
17262  you've made to accompany the oversized 
17263 \family sans
17264 Slide
17265 \family default
17266 .
17267 \end_layout
17268
17269 \begin_layout Standard
17270 The 
17271 \family sans
17272 Overlay
17273 \family default
17274  and 
17275 \family sans
17276 Note
17277 \family default
17278  environments work the same way as the 
17279 \family sans
17280 Slide
17281 \family default
17282  environment.
17283  They both create an 
17284 \begin_inset Quotes eld
17285 \end_inset
17286
17287 ASCII line
17288 \begin_inset Quotes erd
17289 \end_inset
17290
17291  followed by a label [
17292 \begin_inset Quotes eld
17293 \end_inset
17294
17295 NewOverlay:
17296 \begin_inset Quotes erd
17297 \end_inset
17298
17299  and 
17300 \begin_inset Quotes eld
17301 \end_inset
17302
17303 NewNote:
17304 \begin_inset Quotes erd
17305 \end_inset
17306
17307 , respectively].
17308  The color is a stunning magenta instead of blue, and the 
17309 \begin_inset Quotes eld
17310 \end_inset
17311
17312 ASCII line
17313 \begin_inset Quotes erd
17314 \end_inset
17315
17316  will look different, in style and in length.
17317  The label fonts of all three also differ from one another.
17318 \end_layout
17319
17320 \begin_layout Standard
17321 As with a 
17322 \family sans
17323 Slide
17324 \family default
17325 , if the contents of a 
17326 \family sans
17327 Note
17328 \family default
17329  or 
17330 \family sans
17331 Overlay
17332 \family default
17333  exceed the physical size of a slide or sheet of paper, the extra will overflow
17334  onto a new sheet.
17335  Again, you should avoid this.
17336  It defeats the whole purpose of 
17337 \family sans
17338 Note
17339 \family default
17340 s and 
17341 \family sans
17342 Overlay
17343 \family default
17344 s.
17345 \end_layout
17346
17347 \begin_layout Subsubsection
17348 Using 
17349 \family sans
17350 Overlay
17351 \family default
17352  with 
17353 \family sans
17354 Slide
17355 \end_layout
17356
17357 \begin_layout Standard
17358 The idea behind an 
17359 \family sans
17360 Overlay
17361 \family default
17362  is a slide that sits atop another slide.
17363  Perhaps you wish to discuss a figure on the main 
17364 \family sans
17365 Slide
17366 \family default
17367  before displaying the text associated with it.
17368  One way to accomplish this is tape a flap of dark paper over the part of
17369  the 
17370 \family sans
17371 Slide
17372 \family default
17373  you want to display later.
17374  This method fails, however, if you wish to overlap one graph with another,
17375  for example.
17376  You would then have to fumble while speaking to align the two separate,
17377  overlapping 
17378 \family sans
17379 Slide
17380 \family default
17381 s to align the two graphs.
17382  The use of an 
17383 \family sans
17384 Overlay
17385 \family default
17386  environment in both cases makes life much easier.
17387 \end_layout
17388
17389 \begin_layout Standard
17390 Each 
17391 \family sans
17392 Overlay
17393 \family default
17394  receives the page number of its 
17395 \begin_inset Quotes eld
17396 \end_inset
17397
17398 parent
17399 \begin_inset Quotes erd
17400 \end_inset
17401
17402  
17403 \family sans
17404 Slide
17405 \family default
17406 , appended by 
17407 \begin_inset Quotes eld
17408 \end_inset
17409
17410
17411 \family typewriter
17412 -a
17413 \family default
17414
17415 \begin_inset Quotes erd
17416 \end_inset
17417
17418 .
17419 \begin_inset Foot
17420 status collapsed
17421
17422 \begin_layout Plain Layout
17423 Presumably, mutliple 
17424 \family sans
17425 Overlay
17426 \family default
17427 s would have 
17428 \begin_inset Quotes eld
17429 \end_inset
17430
17431
17432 \family typewriter
17433 -a
17434 \family default
17435
17436 \begin_inset Quotes erd
17437 \end_inset
17438
17439
17440 \begin_inset Quotes eld
17441 \end_inset
17442
17443
17444 \family typewriter
17445 -b
17446 \family default
17447
17448 \begin_inset Quotes erd
17449 \end_inset
17450
17451
17452 \begin_inset Quotes eld
17453 \end_inset
17454
17455
17456 \family typewriter
17457 -c
17458 \family default
17459
17460 \begin_inset Quotes erd
17461 \end_inset
17462
17463 , etc.
17464 \begin_inset space ~
17465 \end_inset
17466
17467 appended to the page number of the parent 
17468 \family sans
17469 Slide
17470 \family default
17471 .
17472  
17473 \end_layout
17474
17475 \end_inset
17476
17477  Clearly, you want the contents of both the 
17478 \family sans
17479 Slide
17480 \family default
17481  and the 
17482 \family sans
17483 Overlay
17484 \family default
17485  to each fit on a single physical slide! You should probably consider an
17486  
17487 \family sans
17488 Overlay
17489 \family default
17490  as 
17491 \begin_inset Quotes eld
17492 \end_inset
17493
17494 part of
17495 \begin_inset Quotes erd
17496 \end_inset
17497
17498  a 
17499 \family sans
17500 Slide
17501 \family default
17502 .
17503  Indeed, the \SpecialChar LyX
17504  
17505 \family sans
17506 slides
17507 \family default
17508  class provides a visual cue for this: the label at the start of an 
17509 \family sans
17510 Overlay
17511 \family default
17512  is shorter than that at the start of a 
17513 \family sans
17514 Slide
17515 \family default
17516 .
17517  Lastly, when you generate printable output, you'll find alignment markers
17518  in all four corners of both the 
17519 \family sans
17520 Overlay
17521 \family default
17522  page and its parent 
17523 \family sans
17524 Slide
17525 \family default
17526 .
17527  These will assist you in lining up the two physical slides.
17528 \end_layout
17529
17530 \begin_layout Standard
17531 The major problem in overlaying two slides is aligning the contents of the
17532  two transparencies.
17533  How much space should you leave for that graph on the second slide? Worse
17534  still, what if you want a graph and a sentence on second slide, but there
17535  is text on the main transparency that goes in between them? You could try
17536  and insert vertical space of the right size.
17537  The better way is to use 
17538 \family sans
17539 InvisibleText
17540 \family default
17541  and 
17542 \family sans
17543 VisibleText
17544 \family default
17545 .
17546 \end_layout
17547
17548 \begin_layout Standard
17549 As their names imply, 
17550 \family sans
17551 InvisibleText
17552 \family default
17553  and 
17554 \family sans
17555 VisibleText
17556 \family default
17557  are two command-like paragraph environments that make all subsequent text
17558  invisible and visible, respectively.
17559  Note from section
17560 \begin_inset space ~
17561 \end_inset
17562
17563
17564 \begin_inset CommandInset ref
17565 LatexCommand ref
17566 reference "sec:slideQuirk"
17567
17568 \end_inset
17569
17570  that you don't place anything 
17571 \emph on
17572 into
17573 \emph default
17574  these two environments, however.
17575  When you create an 
17576 \family sans
17577 InvisibleText
17578 \family default
17579 , it inserts a centered, sky-blue label into the page reading 
17580 \begin_inset Quotes eld
17581 \end_inset
17582
17583 <Invisible Text Follows>
17584 \begin_inset Quotes erd
17585 \end_inset
17586
17587 .
17588  For paragraphs following this label, the parts of the 
17589 \family sans
17590 Slide
17591 \family default
17592  [or 
17593 \family sans
17594 Overlay
17595 \family default
17596 ; it doesn't matter which] where they would be contain instead blank space.
17597  
17598 \end_layout
17599
17600 \begin_layout Standard
17601 For 
17602 \family sans
17603 VisibleText
17604 \family default
17605 , the corresponding centered label is 
17606 \begin_inset Quotes eld
17607 \end_inset
17608
17609 <Visible Text Follows>
17610 \begin_inset Quotes erd
17611 \end_inset
17612
17613  in blazing green.
17614  Paragraphs following this label behave normally.
17615  Note that the beginning of a new 
17616 \family sans
17617 Slide
17618 \family default
17619
17620 \family sans
17621 Overlay
17622 \family default
17623 , or 
17624 \family sans
17625 Note
17626 \family default
17627  automatically shuts off an 
17628 \family sans
17629 InvisibleText
17630 \family default
17631 .
17632  It's therefore not necessary to use 
17633 \family sans
17634 VisibleText
17635 \family default
17636  at the end of a 
17637 \family sans
17638 Slide
17639 \family default
17640 .
17641 \end_layout
17642
17643 \begin_layout Standard
17644 By now, it should be obvious how to create overlay transparencies using
17645  the proper combination of 
17646 \family sans
17647 InvisibleText
17648 \family default
17649  and 
17650 \family sans
17651 VisibleText
17652 \family default
17653  on a 
17654 \family sans
17655 Slide
17656 \family default
17657  and 
17658 \family sans
17659 Overlay
17660 \family default
17661 :
17662 \end_layout
17663
17664 \begin_layout Enumerate
17665 Create a 
17666 \family sans
17667 Slide
17668 \family default
17669 , including everything that will appear on it, whether on the main slide
17670  or on the 
17671 \family sans
17672 Overlay
17673 \family default
17674 .
17675 \end_layout
17676
17677 \begin_layout Enumerate
17678 Before each figure or paragraph that will appear only on the 
17679 \family sans
17680 Overlay
17681 \family default
17682 , insert an 
17683 \family sans
17684 InvisibleText
17685 \family default
17686  environment.
17687  If necessary, insert a 
17688 \family sans
17689 VisibleText
17690 \family default
17691  environment after the 
17692 \family sans
17693 Overlay
17694 \family default
17695 -only text.
17696 \end_layout
17697
17698 \begin_layout Enumerate
17699 Start an 
17700 \family sans
17701 Overlay
17702 \family default
17703  immediately following the 
17704 \family sans
17705 Slide
17706 \family default
17707 .
17708 \end_layout
17709
17710 \begin_layout Enumerate
17711 Copy the contents of this 
17712 \family sans
17713 Slide
17714 \family default
17715  into the 
17716 \family sans
17717 Overlay
17718 \family default
17719 .
17720 \end_layout
17721
17722 \begin_layout Enumerate
17723 Within the 
17724 \family sans
17725 Overlay
17726 \family default
17727 , change all of the 
17728 \family sans
17729 InvisibleText
17730 \family default
17731  lines to 
17732 \family sans
17733 VisibleText
17734 \family default
17735  and vice-versa.
17736 \end_layout
17737
17738 \begin_layout Standard
17739 That's it.
17740  You've just made an 
17741 \family sans
17742 Overlay
17743 \family default
17744 .
17745 \end_layout
17746
17747 \begin_layout Standard
17748 There's one problem with the way I've designed the \SpecialChar LyX
17749  
17750 \family sans
17751 slides
17752 \family default
17753  class: you can't make text in the middle of a paragraph invisible, nor
17754  make text in the middle of an invisible paragraph visible again.
17755  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
17756  codes.
17757 \begin_inset Foot
17758 status collapsed
17759
17760 \begin_layout Plain Layout
17761 The commands of interest are: 
17762 \end_layout
17763
17764 \begin_layout Itemize
17765
17766 \family typewriter
17767 {
17768 \backslash
17769 invisible \SpecialChar ldots
17770  }
17771 \end_layout
17772
17773 \begin_layout Itemize
17774
17775 \family typewriter
17776 {
17777 \backslash
17778 visible \SpecialChar ldots
17779  }
17780 \end_layout
17781
17782 \begin_layout Plain Layout
17783 \SpecialChar ldots
17784 and need to be marked as \SpecialChar TeX
17785 .
17786  The text whose 
17787 \begin_inset Quotes eld
17788 \end_inset
17789
17790 visibility
17791 \begin_inset Quotes erd
17792 \end_inset
17793
17794  you wish to change goes in between the brackets [and after the 
17795 \family typewriter
17796
17797 \backslash
17798 invisible
17799 \family default
17800  or 
17801 \family typewriter
17802
17803 \backslash
17804 visible
17805 \family default
17806  command].
17807  If you don't know how to mark text as \SpecialChar TeX
17808 , see the appropriate section of
17809  the 
17810 \emph on
17811 User's Guide
17812 \emph default
17813 .
17814 \end_layout
17815
17816 \end_inset
17817
17818
17819 \end_layout
17820
17821 \begin_layout Subsubsection
17822 Using 
17823 \family sans
17824 Note
17825 \family default
17826  with 
17827 \family sans
17828 Slide
17829 \family default
17830
17831 \begin_inset CommandInset label
17832 LatexCommand label
17833 name "sec:slideNote"
17834
17835 \end_inset
17836
17837
17838 \end_layout
17839
17840 \begin_layout Standard
17841 Like an 
17842 \family sans
17843 Overlay
17844 \family default
17845 , a 
17846 \family sans
17847 Note
17848 \family default
17849  is associated with a 
17850 \begin_inset Quotes eld
17851 \end_inset
17852
17853 parent
17854 \begin_inset Quotes erd
17855 \end_inset
17856
17857  
17858 \family sans
17859 Slide
17860 \family default
17861 .
17862  Here, too, the \SpecialChar LyX
17863  
17864 \family sans
17865 slides
17866 \family default
17867  class provides visual cues.
17868  The label for a 
17869 \family sans
17870 Note
17871 \family default
17872  is shorter than that of a 
17873 \family sans
17874 Slide
17875 \family default
17876  [yet longer than that of an 
17877 \family sans
17878 Overlay
17879 \family default
17880 ] and, like the label of an 
17881 \family sans
17882 Overlay
17883 \family default
17884  is shockingly magenta.
17885  Additionally, the printed 
17886 \family sans
17887 Note
17888 \family default
17889  has the page number of its 
17890 \begin_inset Quotes eld
17891 \end_inset
17892
17893 parent
17894 \begin_inset Quotes erd
17895 \end_inset
17896
17897  
17898 \family sans
17899 Slide
17900 \family default
17901 , appended by 
17902 \begin_inset Quotes eld
17903 \end_inset
17904
17905
17906 \family typewriter
17907 -
17908 \family default
17909 1
17910 \begin_inset Quotes erd
17911 \end_inset
17912
17913
17914 \begin_inset Quotes eld
17915 \end_inset
17916
17917
17918 \family typewriter
17919 -
17920 \family default
17921 2
17922 \begin_inset Quotes erd
17923 \end_inset
17924
17925
17926 \begin_inset Quotes eld
17927 \end_inset
17928
17929
17930 \family typewriter
17931 -
17932 \family default
17933 3
17934 \begin_inset Quotes erd
17935 \end_inset
17936
17937 , etc.
17938  You can have multiple 
17939 \family sans
17940 Note
17941 \family default
17942 s associated with a single 
17943 \family sans
17944 Slide
17945 \family default
17946 , and, as with 
17947 \family sans
17948 Slide
17949 \family default
17950  and 
17951 \family sans
17952 Overlay
17953 \family default
17954 , you'll probably want to break up long 
17955 \family sans
17956 Note
17957 \family default
17958 s so that they fit on a single sheet of paper.
17959 \end_layout
17960
17961 \begin_layout Standard
17962 The purpose of a 
17963 \family sans
17964 Note
17965 \family default
17966  is obvious: it contains anything additional you might want to say about
17967  a 
17968 \family sans
17969 Slide
17970 \family default
17971 .
17972  It could also be used as a sheet of reminders for a particular 
17973 \family sans
17974 Slide
17975 \family default
17976 .
17977  In the case of the latter, you might want to make use of time markers.
17978  Currently, the \SpecialChar LyX
17979  
17980 \family sans
17981 slides
17982 \family default
17983  class has no 
17984 \begin_inset Quotes eld
17985 \end_inset
17986
17987 native
17988 \begin_inset Quotes erd
17989 \end_inset
17990
17991  support for time markers, a 
17992 \noun on
17993 Sli\SpecialChar TeX
17994
17995 \noun default
17996  feature.
17997  So, you'll have to resort to using the \SpecialChar LaTeX
17998  codes.
17999 \end_layout
18000
18001 \begin_layout Standard
18002 To use time markers, you'll need to specify the extra class option 
18003 \begin_inset Quotes eld
18004 \end_inset
18005
18006
18007 \family typewriter
18008 clock
18009 \family default
18010
18011 \begin_inset Quotes erd
18012 \end_inset
18013
18014  [see section
18015 \begin_inset space ~
18016 \end_inset
18017
18018
18019 \begin_inset CommandInset ref
18020 LatexCommand ref
18021 reference "sec:slidesetup"
18022
18023 \end_inset
18024
18025 ].
18026  This option turns on timing marks, which will appear in the lower-left-hand
18027  corner of every 
18028 \family sans
18029 Note
18030 \family default
18031  you generate.
18032  To set what appears in the time marker, you use the \SpecialChar LaTeX
18033  commands 
18034 \begin_inset Quotes eld
18035 \end_inset
18036
18037
18038 \family typewriter
18039
18040 \backslash
18041 settime{}
18042 \family default
18043
18044 \begin_inset Quotes erd
18045 \end_inset
18046
18047  and 
18048 \begin_inset Quotes eld
18049 \end_inset
18050
18051
18052 \family typewriter
18053
18054 \backslash
18055 addtime{}
18056 \family default
18057
18058 \begin_inset Quotes erd
18059 \end_inset
18060
18061 .
18062  The arguments of both commands are time measured in seconds.
18063  
18064 \begin_inset Quotes eld
18065 \end_inset
18066
18067
18068 \family typewriter
18069
18070 \backslash
18071 settime{}
18072 \family default
18073
18074 \begin_inset Quotes erd
18075 \end_inset
18076
18077  sets the time marker to a given time.
18078  
18079 \begin_inset Quotes eld
18080 \end_inset
18081
18082
18083 \family typewriter
18084
18085 \backslash
18086 addtime{}
18087 \family default
18088
18089 \begin_inset Quotes erd
18090 \end_inset
18091
18092  increments the time marker by the specified amount.
18093  Using time markers and 
18094 \family sans
18095 Note
18096 \family default
18097 s in this fashion, you can remind yourself how much time to spend on a particula
18098
18099 \family sans
18100 Slide
18101 \family default
18102 .
18103 \end_layout
18104
18105 \begin_layout Standard
18106 There's one last feature to describe.
18107  Clearly, you'd like to print out all of your 
18108 \family sans
18109 Slide
18110 \family default
18111 s and 
18112 \family sans
18113 Overlay
18114 \family default
18115 s on transparencies while printing all of your 
18116 \family sans
18117 Note
18118 \family default
18119 s on plain paper.
18120  However, a 
18121 \family sans
18122 Note
18123 \family default
18124  
18125 \emph on
18126 must
18127 \emph default
18128  follow the 
18129 \family sans
18130 Slide
18131 \family default
18132  with which it is associated.
18133  What's a person to do?
18134 \end_layout
18135
18136 \begin_layout Standard
18137 Luckily, there are two \SpecialChar LaTeX
18138  commands that allow you to select what to print
18139  out.
18140  Both must be placed into the preamble of your document.
18141  The command 
18142 \begin_inset Quotes eld
18143 \end_inset
18144
18145
18146 \family typewriter
18147
18148 \backslash
18149 onlyslides{
18150 \backslash
18151 slides}
18152 \family default
18153
18154 \begin_inset Quotes erd
18155 \end_inset
18156
18157  will cause the output to contain only the 
18158 \family sans
18159 Slide
18160 \family default
18161 s and 
18162 \family sans
18163 Overlay
18164 \family default
18165 s.
18166  Correspondingly, the command 
18167 \begin_inset Quotes eld
18168 \end_inset
18169
18170
18171 \family typewriter
18172
18173 \backslash
18174 onlynotes{
18175 \backslash
18176 notes}
18177 \family default
18178
18179 \begin_inset Quotes erd
18180 \end_inset
18181
18182  prevents the output of anything but 
18183 \family sans
18184 Note
18185 \family default
18186 s.
18187  I'd advise placing both commands in the preamble and initially comment
18188  both out.
18189  You can then preview your entire presentation as you write.
18190  When you're done writing, you can then uncomment one of the two to select
18191  what you want to print.
18192  I like to uncomment 
18193 \begin_inset Quotes eld
18194 \end_inset
18195
18196
18197 \family typewriter
18198
18199 \backslash
18200 onlyslides{
18201 \backslash
18202 slides}
18203 \family default
18204
18205 \begin_inset Quotes erd
18206 \end_inset
18207
18208  , print to a file with 
18209 \begin_inset Quotes eld
18210 \end_inset
18211
18212
18213 \family typewriter
18214 -slides
18215 \family default
18216
18217 \begin_inset Quotes erd
18218 \end_inset
18219
18220  in its name, comment it back out, then uncomment 
18221 \begin_inset Quotes eld
18222 \end_inset
18223
18224
18225 \family typewriter
18226
18227 \backslash
18228 onlynotes{
18229 \backslash
18230 notes}
18231 \family default
18232
18233 \begin_inset Quotes erd
18234 \end_inset
18235
18236  and print to a 
18237 \begin_inset Quotes eld
18238 \end_inset
18239
18240
18241 \family typewriter
18242 *-notes.ps
18243 \family default
18244
18245 \begin_inset Quotes erd
18246 \end_inset
18247
18248  file.
18249  I can then send either file to a printer, loading transparencies or plain
18250  paper as appropriate.
18251 \end_layout
18252
18253 \begin_layout Standard
18254 You can also provide other arguments to the 
18255 \begin_inset Quotes eld
18256 \end_inset
18257
18258
18259 \family typewriter
18260
18261 \backslash
18262 onlyslides{}
18263 \family default
18264
18265 \begin_inset Quotes erd
18266 \end_inset
18267
18268  and 
18269 \begin_inset Quotes eld
18270 \end_inset
18271
18272
18273 \family typewriter
18274
18275 \backslash
18276 onlynotes{}
18277 \family default
18278
18279 \begin_inset Quotes erd
18280 \end_inset
18281
18282  commands.
18283  See a good \SpecialChar LaTeX
18284  book for details.
18285 \end_layout
18286
18287 \begin_layout Subsection
18288 The 
18289 \family sans
18290 slides
18291 \family default
18292  Class Template File
18293 \end_layout
18294
18295 \begin_layout Standard
18296 I have also provided a template file, 
18297 \begin_inset Quotes eld
18298 \end_inset
18299
18300
18301 \family typewriter
18302 slides.lyx
18303 \family default
18304
18305 \begin_inset Quotes erd
18306 \end_inset
18307
18308 , with the 
18309 \family sans
18310 slides
18311 \family default
18312  class.
18313  To use it, begin your new presentation with 
18314 \family sans
18315 File\SpecialChar menuseparator
18316 New
18317 \begin_inset space ~
18318 \end_inset
18319
18320 from
18321 \begin_inset space ~
18322 \end_inset
18323
18324 Template
18325 \family default
18326 .
18327  Your new \SpecialChar LyX
18328  presentation file will contain an example 
18329 \family sans
18330 Slide
18331 \family default
18332  – 
18333 \family sans
18334 Overlay
18335 \family default
18336  – 
18337 \family sans
18338 Note
18339 \family default
18340  triplet.
18341  The 
18342 \family sans
18343 Slide
18344 \family default
18345  and 
18346 \family sans
18347 Overlay
18348 \family default
18349  additionally contain an example of the use of 
18350 \family sans
18351 InvisibleText
18352 \family default
18353  and 
18354 \family sans
18355 VisibleText
18356 \family default
18357 .
18358  Lastly, the preamble will contain:
18359 \end_layout
18360
18361 \begin_layout LyX-Code
18362 % Uncomment to print out only slides and overlays
18363 \end_layout
18364
18365 \begin_layout LyX-Code
18366 %
18367 \end_layout
18368
18369 \begin_layout LyX-Code
18370 %
18371 \backslash
18372 onlyslides{
18373 \backslash
18374 slides}
18375 \begin_inset Newline newline
18376 \end_inset
18377
18378  
18379 \end_layout
18380
18381 \begin_layout LyX-Code
18382 % Uncomment to print out only notes
18383 \end_layout
18384
18385 \begin_layout LyX-Code
18386 %
18387 \end_layout
18388
18389 \begin_layout LyX-Code
18390 %
18391 \backslash
18392 onlynotes{
18393 \backslash
18394 notes}
18395 \end_layout
18396
18397 \begin_layout Standard
18398 One final thing: I created this class to support the \SpecialChar LaTeX2e
18399  
18400 \begin_inset Quotes eld
18401 \end_inset
18402
18403
18404 \noun on
18405 Sli\SpecialChar TeX
18406
18407 \noun default
18408  emulation
18409 \begin_inset Quotes erd
18410 \end_inset
18411
18412  class, one of the built-in \SpecialChar LaTeX2e
18413  classes.
18414  Neither I nor the rest of the \SpecialChar LyX
18415  Team endorse or oppose the use of this built-in
18416  slide class.
18417  It's here if you want it or need it.
18418  There exist other \SpecialChar LaTeX2e
18419  classes for creating presentations, such as the 
18420 \family sans
18421 Foils
18422 \family default
18423  class [see section
18424 \begin_inset space ~
18425 \end_inset
18426
18427
18428 \begin_inset CommandInset ref
18429 LatexCommand ref
18430 reference "sec:foiltex"
18431
18432 \end_inset
18433
18434 ] or the 
18435 \begin_inset Quotes eld
18436 \end_inset
18437
18438
18439 \family typewriter
18440 seminar
18441 \family default
18442
18443 \begin_inset Quotes erd
18444 \end_inset
18445
18446  package [present on some \SpecialChar TeX
18447  distributions].
18448  The latter is not yet supported under \SpecialChar LyX
18449 .
18450 \begin_inset Foot
18451 status collapsed
18452
18453 \begin_layout Plain Layout
18454 Perhaps you can take on the task\SpecialChar ldots
18455
18456 \end_layout
18457
18458 \end_inset
18459
18460  I know nothing about these other classes.
18461  Try them out to see what sort of alternative they provide.
18462 \end_layout
18463
18464 \begin_layout Chapter
18465 \SpecialChar LyX
18466  Features needing Extra Software
18467 \end_layout
18468
18469 \begin_layout Section
18470 Checking \SpecialChar TeX
18471
18472 \end_layout
18473
18474 \begin_layout Standard
18475 by 
18476 \noun on
18477 Asger Alstrup
18478 \end_layout
18479
18480 \begin_layout Subsection
18481 Introduction
18482 \end_layout
18483
18484 \begin_layout Standard
18485 If you have the 
18486 \family typewriter
18487 chktex
18488 \family default
18489  program installed
18490 \begin_inset Foot
18491 status collapsed
18492
18493 \begin_layout Plain Layout
18494
18495 \family typewriter
18496 chktex
18497 \family default
18498  is not yet available when you are using the \SpecialChar LaTeX
18499  distribution MiK\SpecialChar TeX
18500 .
18501 \end_layout
18502
18503 \end_inset
18504
18505 , you'll find in the 
18506 \family sans
18507 Tools
18508 \family default
18509  menu the entry: 
18510 \family sans
18511 Check
18512 \begin_inset space ~
18513 \end_inset
18514
18515 TeX
18516 \family default
18517 .
18518  You can get 
18519 \family typewriter
18520 chktex
18521 \family default
18522  from CTAN,
18523 \begin_inset Newline newline
18524 \end_inset
18525
18526
18527 \begin_inset CommandInset href
18528 LatexCommand href
18529 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18530
18531 \end_inset
18532
18533 .
18534 \end_layout
18535
18536 \begin_layout Standard
18537 The 
18538 \family sans
18539 Chk\SpecialChar TeX
18540
18541 \family default
18542  package is a program that was written by 
18543 \begin_inset Flex Noun
18544 status collapsed
18545
18546 \begin_layout Plain Layout
18547 Jens T.
18548 \begin_inset space ~
18549 \end_inset
18550
18551 Berger Thielemann
18552 \end_layout
18553
18554 \end_inset
18555
18556  in frustration because some constructs in \SpecialChar LaTeX
18557  are sometimes non-intuitive,
18558  and easy to forget.
18559  The program runs over your \SpecialChar LaTeX
18560  file, checks the integrity of the file, and
18561  flags some common errors.
18562  In other technical words, it is 
18563 \family typewriter
18564 lint
18565 \family default
18566  for \SpecialChar LaTeX
18567 .
18568 \end_layout
18569
18570 \begin_layout Standard
18571 Well, what is a syntax checker doing in \SpecialChar LyX
18572  which is supposed to produce correct
18573  \SpecialChar LaTeX
18574  anyways? The answer is simple: Just as 
18575 \family typewriter
18576 Lint
18577 \family default
18578  not only checks the 
18579 \emph on
18580 syntax
18581 \emph default
18582  of C programs, but also does 
18583 \emph on
18584 semantic
18585 \emph default
18586  checks for type-errors, 
18587 \family sans
18588 Chk\SpecialChar TeX
18589
18590 \family default
18591  catches some common 
18592 \emph on
18593 typographic
18594 \emph default
18595  errors, in addition to the syntactical ones.
18596  Specifically, 
18597 \family sans
18598 Chk\SpecialChar TeX
18599
18600 \family default
18601  is capable of detecting several common errors, such as
18602 \end_layout
18603
18604 \begin_layout Itemize
18605 Ellipsis detection:
18606 \begin_inset Newline newline
18607 \end_inset
18608
18609 Use \SpecialChar ldots
18610  instead of ...
18611 \end_layout
18612
18613 \begin_layout Itemize
18614 No space in front of/after parenthesis:
18615 \begin_inset Newline newline
18616 \end_inset
18617
18618 ( wrong spacing )
18619 \end_layout
18620
18621 \begin_layout Itemize
18622 Enforcement of normal space after common abbreviations:
18623 \begin_inset Newline newline
18624 \end_inset
18625
18626 e.
18627 \begin_inset space \thinspace{}
18628 \end_inset
18629
18630 g.
18631 \begin_inset space \space{}
18632 \end_inset
18633
18634 is too wide spacing.
18635 \end_layout
18636
18637 \begin_layout Itemize
18638 Enforcement of end-of-sentence space when the last sentence ends with a
18639  capital letter:
18640 \begin_inset Newline newline
18641 \end_inset
18642
18643 This is a TEST.
18644  And this is wrong spacing.
18645 \end_layout
18646
18647 \begin_layout Itemize
18648 Space in front of labels and similar commands:
18649 \begin_inset Newline newline
18650 \end_inset
18651
18652 The label should stick right up to the text to avoid falling to a wrong
18653  page.
18654  
18655 \begin_inset CommandInset label
18656 LatexCommand label
18657 name "sec:chktex"
18658
18659 \end_inset
18660
18661  
18662 \begin_inset Foot
18663 status collapsed
18664
18665 \begin_layout Plain Layout
18666 This footnote is in danger of falling off to a wrong page
18667 \end_layout
18668
18669 \end_inset
18670
18671  The label is separated too much.
18672 \end_layout
18673
18674 \begin_layout Itemize
18675 Space in front of references, instead of hard spaces:
18676 \begin_inset Newline newline
18677 \end_inset
18678
18679 If you have bad luck, the text will break right between the referenced text
18680  and reference number, and that's a pity.
18681  See section 
18682 \begin_inset CommandInset ref
18683 LatexCommand ref
18684 reference "sec:chktex"
18685
18686 \end_inset
18687
18688 .
18689 \end_layout
18690
18691 \begin_layout Itemize
18692 Use of 
18693 \begin_inset Quotes eld
18694 \end_inset
18695
18696 x
18697 \begin_inset Quotes erd
18698 \end_inset
18699
18700  instead of 
18701 \begin_inset Formula $\times$
18702 \end_inset
18703
18704  between numbers:
18705 \begin_inset Newline newline
18706 \end_inset
18707
18708 2x2 looks cheap compared to 
18709 \begin_inset Formula $2\times2$
18710 \end_inset
18711
18712 .
18713 \end_layout
18714
18715 \begin_layout Standard
18716 and more \SpecialChar ldots
18717  It is an invaluable tool when you are 
18718 \begin_inset Quotes eld
18719 \end_inset
18720
18721 finishing up
18722 \begin_inset Quotes erd
18723 \end_inset
18724
18725  your document before printing, and you should run it right after the obligatory
18726  spelling check, and before you go fine tuning the typesetting.
18727 \end_layout
18728
18729 \begin_layout Subsection
18730 How to use it
18731 \end_layout
18732
18733 \begin_layout Standard
18734 If you have the program installed, usage is as simple as choosing 
18735 \family sans
18736 Tools\SpecialChar menuseparator
18737 Check
18738 \begin_inset space ~
18739 \end_inset
18740
18741 TeX
18742 \family default
18743 .
18744  This will make \SpecialChar LyX
18745  generate a \SpecialChar LaTeX
18746  file of your document, start 
18747 \family sans
18748 Chk\SpecialChar TeX
18749
18750 \family default
18751  to check it, and then make \SpecialChar LyX
18752  insert 
18753 \begin_inset Quotes eld
18754 \end_inset
18755
18756 error boxes
18757 \begin_inset Quotes erd
18758 \end_inset
18759
18760  with the warnings from 
18761 \family sans
18762 Chk\SpecialChar TeX
18763
18764 \family default
18765 , if there were any.
18766  The warnings will be placed close to the point of the mistake, and you
18767  can quickly find them by using the 
18768 \family sans
18769 Navigate\SpecialChar menuseparator
18770 Error
18771 \family default
18772  menu item, or the shortcut key 
18773 \family sans
18774 C-g
18775 \family default
18776  from the default 
18777 \family typewriter
18778 cua
18779 \family default
18780  bind file.
18781  Open the error boxes by clicking on them with the mouse, or use the shortcut
18782  key 
18783 \family sans
18784 C-i
18785 \family default
18786  from 
18787 \family typewriter
18788 cua
18789 \family default
18790  bindings, or the corresponding 
18791 \family sans
18792 C-o
18793 \family default
18794  for the alternate 
18795 \family typewriter
18796 emacs
18797 \family default
18798  bind file.
18799  Read the warning and correct the mistake, if it is a mistake.
18800  If you have trouble understanding what the warning is about, you can safely
18801  ignore it.
18802  Remember that there is a hidden layer between the document on screen and
18803  the technical details in invoking 
18804 \family sans
18805 Chk\SpecialChar TeX
18806
18807 \family default
18808 , and this gap can make some warnings seem arcane or just plain silly.
18809 \end_layout
18810
18811 \begin_layout Standard
18812 This document is an excellent testing bed for the feature, and it should
18813  provide quite a few warnings for you to fiddle with.
18814  Since computers are only so smart, expect most of the warnings to be false
18815  alarms, though.
18816 \end_layout
18817
18818 \begin_layout Subsection
18819 How to fine tune it
18820 \end_layout
18821
18822 \begin_layout Standard
18823 Sometimes, you'll find that 
18824 \family sans
18825 Chk\SpecialChar TeX
18826
18827 \family default
18828  makes more noise than suits your mood.
18829  Then you can choose not to use it, wait until your mood changes, or try
18830  to customize 
18831 \family sans
18832 Chk\SpecialChar TeX
18833
18834 \family default
18835  to get better along with you.
18836 \end_layout
18837
18838 \begin_layout Standard
18839 Although 
18840 \family sans
18841 Chk\SpecialChar TeX
18842
18843 \family default
18844  
18845 \emph on
18846 is
18847 \emph default
18848  very configurable and extensible, you should not expect to solve all problems
18849  with 
18850 \family sans
18851 Chk\SpecialChar TeX
18852
18853 \family default
18854  in \SpecialChar LyX
18855  this way.
18856  Since \SpecialChar LyX
18857  has to generate a somewhat special \SpecialChar LaTeX
18858  file to be able to match the
18859  line numbers from the 
18860 \family sans
18861 Chk\SpecialChar TeX
18862
18863 \family default
18864  output
18865 \begin_inset Foot
18866 status collapsed
18867
18868 \begin_layout Plain Layout
18869 You can inspect the specific output from 
18870 \family sans
18871 chktex
18872 \family default
18873  by using 
18874 \family sans
18875 Document\SpecialChar menuseparator
18876 \SpecialChar LaTeX
18877
18878 \begin_inset space ~
18879 \end_inset
18880
18881 Log
18882 \family default
18883  right after a 
18884 \family sans
18885 chktex
18886 \family default
18887  run.
18888 \end_layout
18889
18890 \end_inset
18891
18892  to the internal document structure, some of the warnings will not appear
18893  correctly.
18894  There are two things you can do about this:
18895 \end_layout
18896
18897 \begin_layout Itemize
18898 Fine tune the 
18899 \family sans
18900 Chk\SpecialChar TeX
18901
18902 \family default
18903  invocation command line in 
18904 \begin_inset Flex Noun
18905 status collapsed
18906
18907 \begin_layout Plain Layout
18908 Tools\SpecialChar menuseparator
18909 Preferences\SpecialChar menuseparator
18910 Output\SpecialChar menuseparator
18911 LaTeX\SpecialChar menuseparator
18912 CheckTeX command
18913 \end_layout
18914
18915 \end_inset
18916
18917 , or the global 
18918 \family sans
18919 Chk\SpecialChar TeX
18920
18921 \family default
18922  installation configuration file (usually with the file 
18923 \family typewriter
18924 chktexrc
18925 \family default
18926 ).
18927  See below to learn what warnings can be enabled and disabled on the command
18928  line.
18929 \end_layout
18930
18931 \begin_layout Itemize
18932 Export your document as a raw \SpecialChar LaTeX
18933  file using 
18934 \family sans
18935 File\SpecialChar menuseparator
18936 Export\SpecialChar menuseparator
18937 \SpecialChar LaTeX
18938
18939 \family default
18940  and run 
18941 \family typewriter
18942 chktex
18943 \family default
18944  manually on that.
18945  Invoked in this way, it can be a hassle to find the corresponding place
18946  in the document inside \SpecialChar LyX
18947 , but with a little patience, you should be able
18948  to do it.
18949 \end_layout
18950
18951 \begin_layout Standard
18952 Here follows the warning messages that can be enabled and disabled in 
18953 \family sans
18954 Preferences
18955 \family default
18956 .
18957  Use 
18958 \family typewriter
18959 -n#
18960 \family default
18961  to disable a warning, and 
18962 \family typewriter
18963 -w#
18964 \family default
18965  to enable a warning.
18966  The emphasized entries are disabled by default, because the default is
18967  "
18968 \family typewriter
18969 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
18970 \family default
18971 ".
18972 \end_layout
18973
18974 \begin_layout Standard
18975 Notice that you should only use the options that enable and disable warnings,
18976  because \SpecialChar LyX
18977  relies on some of the other command line parameters to be set
18978  in a specific way to have a chance to communicate with 
18979 \family typewriter
18980 chktex
18981 \family default
18982 .
18983 \end_layout
18984
18985 \begin_layout Enumerate
18986
18987 \size small
18988 \emph on
18989 Command terminated with space.
18990 \end_layout
18991
18992 \begin_layout Enumerate
18993
18994 \size small
18995 Non-breaking space (
18996 \begin_inset Quotes eld
18997 \end_inset
18998
18999
19000 \family typewriter
19001 ~
19002 \family default
19003
19004 \begin_inset Quotes erd
19005 \end_inset
19006
19007 ) should have been used.
19008 \end_layout
19009
19010 \begin_layout Enumerate
19011
19012 \size small
19013 \emph on
19014 You should enclose the previous parenthesis with 
19015 \begin_inset Quotes eld
19016 \end_inset
19017
19018
19019 \family typewriter
19020 {}
19021 \family default
19022
19023 \begin_inset Quotes erd
19024 \end_inset
19025
19026 .
19027 \end_layout
19028
19029 \begin_layout Enumerate
19030
19031 \size small
19032 Italic correction (
19033 \begin_inset Quotes eld
19034 \end_inset
19035
19036
19037 \family typewriter
19038
19039 \backslash
19040 /
19041 \family default
19042
19043 \begin_inset Quotes erd
19044 \end_inset
19045
19046 ) found in non-italic buffer.
19047 \end_layout
19048
19049 \begin_layout Enumerate
19050
19051 \size small
19052 Italic correction (
19053 \begin_inset Quotes eld
19054 \end_inset
19055
19056
19057 \family typewriter
19058
19059 \backslash
19060 /
19061 \family default
19062
19063 \begin_inset Quotes erd
19064 \end_inset
19065
19066 ) found more than once.
19067 \end_layout
19068
19069 \begin_layout Enumerate
19070
19071 \size small
19072 \emph on
19073 No italic correction (
19074 \begin_inset Quotes eld
19075 \end_inset
19076
19077
19078 \family typewriter
19079
19080 \backslash
19081 /
19082 \family default
19083
19084 \begin_inset Quotes erd
19085 \end_inset
19086
19087 ) found.
19088 \end_layout
19089
19090 \begin_layout Enumerate
19091
19092 \size small
19093 Accent command 
19094 \begin_inset Quotes eld
19095 \end_inset
19096
19097
19098 \family typewriter
19099 cmd
19100 \family default
19101
19102 \begin_inset Quotes erd
19103 \end_inset
19104
19105  needs use of 
19106 \begin_inset Quotes eld
19107 \end_inset
19108
19109
19110 \family typewriter
19111 cmd
19112 \family default
19113
19114 \begin_inset Quotes erd
19115 \end_inset
19116
19117 .
19118 \end_layout
19119
19120 \begin_layout Enumerate
19121
19122 \size small
19123 Wrong length of dash may have been used.
19124 \end_layout
19125
19126 \begin_layout Enumerate
19127
19128 \size small
19129 \emph on
19130 \begin_inset Quotes eld
19131 \end_inset
19132
19133
19134 \family typewriter
19135 %s
19136 \family default
19137
19138 \begin_inset Quotes erd
19139 \end_inset
19140
19141  expected, found 
19142 \begin_inset Quotes eld
19143 \end_inset
19144
19145
19146 \family typewriter
19147 %s
19148 \family default
19149
19150 \begin_inset Quotes erd
19151 \end_inset
19152
19153 .
19154 \end_layout
19155
19156 \begin_layout Enumerate
19157
19158 \size small
19159 Solo 
19160 \begin_inset Quotes eld
19161 \end_inset
19162
19163
19164 \family typewriter
19165 %s
19166 \family default
19167
19168 \begin_inset Quotes erd
19169 \end_inset
19170
19171  found.
19172 \end_layout
19173
19174 \begin_layout Enumerate
19175
19176 \size small
19177 You should use 
19178 \begin_inset Quotes eld
19179 \end_inset
19180
19181
19182 \family typewriter
19183 %s
19184 \family default
19185
19186 \begin_inset Quotes erd
19187 \end_inset
19188
19189  to achieve an ellipsis.
19190 \end_layout
19191
19192 \begin_layout Enumerate
19193
19194 \size small
19195 Inter-word spacing (
19196 \begin_inset Quotes eld
19197 \end_inset
19198
19199
19200 \family typewriter
19201
19202 \backslash
19203
19204 \family default
19205  
19206 \begin_inset Quotes eld
19207 \end_inset
19208
19209 ) should perhaps be used.
19210 \end_layout
19211
19212 \begin_layout Enumerate
19213
19214 \size small
19215 Inter-sentence spacing (
19216 \begin_inset Quotes eld
19217 \end_inset
19218
19219
19220 \family typewriter
19221
19222 \backslash
19223 @
19224 \family default
19225
19226 \begin_inset Quotes erd
19227 \end_inset
19228
19229 ) should perhaps be used.
19230 \end_layout
19231
19232 \begin_layout Enumerate
19233
19234 \size small
19235 Could not find argument for command.
19236 \end_layout
19237
19238 \begin_layout Enumerate
19239
19240 \size small
19241 No match found for 
19242 \begin_inset Quotes eld
19243 \end_inset
19244
19245
19246 \family typewriter
19247 %s
19248 \family default
19249
19250 \begin_inset Quotes erd
19251 \end_inset
19252
19253 .
19254 \end_layout
19255
19256 \begin_layout Enumerate
19257
19258 \size small
19259 Math mode still on at end of \SpecialChar LaTeX
19260  file.
19261 \end_layout
19262
19263 \begin_layout Enumerate
19264
19265 \size small
19266 Number of 
19267 \begin_inset Quotes eld
19268 \end_inset
19269
19270
19271 \family typewriter
19272 char
19273 \family default
19274
19275 \begin_inset Quotes erd
19276 \end_inset
19277
19278  doesn't match the number of 
19279 \begin_inset Quotes eld
19280 \end_inset
19281
19282
19283 \family typewriter
19284 char
19285 \family default
19286
19287 \begin_inset Quotes erd
19288 \end_inset
19289
19290 .
19291 \end_layout
19292
19293 \begin_layout Enumerate
19294
19295 \size small
19296 You should use either 
19297 \family typewriter
19298
19299 \begin_inset Quotes eld
19300 \end_inset
19301
19302
19303 \family default
19304  or 
19305 \family typewriter
19306
19307 \begin_inset Quotes erd
19308 \end_inset
19309
19310
19311 \family default
19312  as an alternative to 
19313 \begin_inset Quotes eld
19314 \end_inset
19315
19316
19317 \family typewriter
19318 "
19319 \family default
19320
19321 \begin_inset Quotes erd
19322 \end_inset
19323
19324 .
19325 \end_layout
19326
19327 \begin_layout Enumerate
19328
19329 \size small
19330 You should use "
19331 \family typewriter
19332 '
19333 \family default
19334 " (ASCII 39) instead of "
19335 \family typewriter
19336 ´
19337 \family default
19338 " (ASCII 180).
19339 \end_layout
19340
19341 \begin_layout Enumerate
19342
19343 \size small
19344 User-specified pattern found.
19345 \end_layout
19346
19347 \begin_layout Enumerate
19348
19349 \size small
19350 This command might not be intended.
19351 \end_layout
19352
19353 \begin_layout Enumerate
19354
19355 \size small
19356 \emph on
19357 Comment displayed.
19358 \end_layout
19359
19360 \begin_layout Enumerate
19361
19362 \size small
19363 Either 
19364 \family typewriter
19365 ''
19366 \backslash
19367 ,'
19368 \family default
19369  or 
19370 \family typewriter
19371 '
19372 \backslash
19373 ,''
19374 \family default
19375  will look better.
19376 \end_layout
19377
19378 \begin_layout Enumerate
19379
19380 \size small
19381 Delete this space to maintain correct page references.
19382 \end_layout
19383
19384 \begin_layout Enumerate
19385
19386 \size small
19387 \emph on
19388 You might wish to put this between a pair of 
19389 \begin_inset Quotes eld
19390 \end_inset
19391
19392
19393 \family typewriter
19394 {}
19395 \family default
19396
19397 \begin_inset Quotes erd
19398 \end_inset
19399
19400 .
19401 \end_layout
19402
19403 \begin_layout Enumerate
19404
19405 \size small
19406 You ought to remove spaces in front of punctuation.
19407 \end_layout
19408
19409 \begin_layout Enumerate
19410
19411 \size small
19412 Could not execute \SpecialChar LaTeX
19413  command.
19414 \end_layout
19415
19416 \begin_layout Enumerate
19417
19418 \size small
19419 Don't use 
19420 \family typewriter
19421
19422 \backslash
19423 /
19424 \family default
19425  in front of small punctuation.
19426 \end_layout
19427
19428 \begin_layout Enumerate
19429
19430 \family typewriter
19431 \size small
19432 $
19433 \backslash
19434 times$
19435 \family default
19436  may look prettier here.
19437 \end_layout
19438
19439 \begin_layout Enumerate
19440
19441 \size small
19442 \emph on
19443 Multiple spaces detected in output.
19444 \end_layout
19445
19446 \begin_layout Enumerate
19447
19448 \size small
19449 This text may be ignored.
19450 \end_layout
19451
19452 \begin_layout Enumerate
19453
19454 \size small
19455 Use 
19456 \family typewriter
19457
19458 \begin_inset Quotes eld
19459 \end_inset
19460
19461
19462 \family default
19463  to begin quotation, not 
19464 \family typewriter
19465 '
19466 \family default
19467 .
19468 \end_layout
19469
19470 \begin_layout Enumerate
19471
19472 \size small
19473 Use 
19474 \family typewriter
19475 '
19476 \family default
19477  to end quotation, not 
19478 \family typewriter
19479
19480 \begin_inset Quotes eld
19481 \end_inset
19482
19483
19484 \family default
19485 .
19486 \end_layout
19487
19488 \begin_layout Enumerate
19489
19490 \size small
19491 Don't mix quotes.
19492 \end_layout
19493
19494 \begin_layout Enumerate
19495
19496 \size small
19497 You should perhaps use 
19498 \begin_inset Quotes eld
19499 \end_inset
19500
19501
19502 \family typewriter
19503 cmd
19504 \family default
19505
19506 \begin_inset Quotes erd
19507 \end_inset
19508
19509  instead.
19510 \end_layout
19511
19512 \begin_layout Enumerate
19513
19514 \size small
19515 You should put a space in front of/after parenthesis.
19516 \end_layout
19517
19518 \begin_layout Enumerate
19519
19520 \size small
19521 You should avoid spaces in front of/after parenthesis.
19522 \end_layout
19523
19524 \begin_layout Enumerate
19525
19526 \size small
19527 \emph on
19528 You should not use punctuation in front of/after quotes.
19529 \end_layout
19530
19531 \begin_layout Enumerate
19532
19533 \size small
19534 Double space found.
19535 \end_layout
19536
19537 \begin_layout Enumerate
19538
19539 \size small
19540 You should put punctuation outside inner/inside display math mode.
19541 \end_layout
19542
19543 \begin_layout Enumerate
19544
19545 \size small
19546 You ought to not use primitive \SpecialChar TeX
19547  in \SpecialChar LaTeX
19548  code.
19549 \end_layout
19550
19551 \begin_layout Enumerate
19552
19553 \size small
19554 You should remove spaces in front of 
19555 \begin_inset Quotes eld
19556 \end_inset
19557
19558
19559 \family typewriter
19560 %s
19561 \family default
19562
19563 \begin_inset Quotes erd
19564 \end_inset
19565
19566
19567 \end_layout
19568
19569 \begin_layout Enumerate
19570
19571 \size small
19572 \begin_inset Quotes eld
19573 \end_inset
19574
19575
19576 \family typewriter
19577 %s
19578 \family default
19579
19580 \begin_inset Quotes erd
19581 \end_inset
19582
19583  is normally not followed by 
19584 \begin_inset Quotes eld
19585 \end_inset
19586
19587
19588 \family typewriter
19589 %c
19590 \family default
19591
19592 \begin_inset Quotes erd
19593 \end_inset
19594
19595 .
19596 \end_layout
19597
19598 \begin_layout Standard
19599 In later versions of \SpecialChar LyX
19600 , we hope to provide a more complete interface to this
19601  tool (and it's smaller cousin 
19602 \family typewriter
19603 lacheck
19604 \family default
19605 ) to exploit the full power of it.
19606  But it's not exactly useless as it is now: go try it on one of your existing
19607  documents of a certain length and be surprised.
19608 \end_layout
19609
19610 \begin_layout Section
19611 Version Control in \SpecialChar LyX
19612
19613 \end_layout
19614
19615 \begin_layout Standard
19616 by
19617 \noun on
19618  Lars Gullik Bjønnes 
19619 \noun default
19620 and 
19621 \noun on
19622 Pavel Sanda
19623 \end_layout
19624
19625 \begin_layout Subsection
19626 Introduction
19627 \end_layout
19628
19629 \begin_layout Standard
19630 \SpecialChar LyX
19631  supports some of the most basic RCS/CVS/SVN/GIT commands.
19632  If you need something a bit more sophisticated you will have to do that
19633  manually in a terminal.
19634 \end_layout
19635
19636 \begin_layout Standard
19637 Also note that CVS support is not as good as subversion support so we advise
19638  using SVN instead.
19639  A good place to start learning Subversion is SVN Book
19640 \begin_inset Foot
19641 status collapsed
19642
19643 \begin_layout Plain Layout
19644 \begin_inset CommandInset href
19645 LatexCommand href
19646 target "http://svnbook.red-bean.com/"
19647
19648 \end_inset
19649
19650
19651 \end_layout
19652
19653 \end_inset
19654
19655 .
19656  In the case of RCS you should read 
19657 \begin_inset Quotes eld
19658 \end_inset
19659
19660 rcsintro
19661 \begin_inset Quotes erd
19662 \end_inset
19663
19664  (a man file, read it with 
19665 \family typewriter
19666 man rcsintro
19667 \family default
19668 ).
19669  This file describes all the basic features of RCS.
19670  You should especially notice the comment about a RCS directory, and the
19671  notion of a master RCS file (the file ending in 
19672 \family typewriter
19673 ,v
19674 \family default
19675 ).
19676 \end_layout
19677
19678 \begin_layout Standard
19679 Before you begin to use the version control features in \SpecialChar LyX
19680 , you should be
19681  familiar with RCS/CVS/SVN/GIT usage.
19682  The implementation in \SpecialChar LyX
19683  assumes a recent version of the GNU RCS or CVS/SVN
19684  package — no guarantees are made for older versions.
19685  Most of the log messages are not currently displayed after operations —
19686  you can check them in the Messages pane if unsure.
19687  Regular users of version control will appreciate VC toolbar, which can
19688  be enabled via 
19689 \family sans
19690 View\SpecialChar menuseparator
19691 Toolbars\SpecialChar menuseparator
19692 Version
19693 \begin_inset space ~
19694 \end_inset
19695
19696 Control
19697 \family default
19698 .
19699 \end_layout
19700
19701 \begin_layout Standard
19702 For introducing your own external commands consult vc-command in the manual
19703  of \SpecialChar LyX
19704  functions.
19705 \end_layout
19706
19707 \begin_layout Standard
19708 It is strongly recommended to store documents in uncompressed format if
19709  using version control (uncheck 
19710 \family sans
19711 Document\SpecialChar menuseparator
19712 Compressed
19713 \family default
19714  if it is checked): Uncompressed LyX documents are text files and therefore
19715  for merging two different versions by version control systems.
19716  Compressed LyX documents are binary files, which cannot be merged by version
19717  control systems.
19718 \end_layout
19719
19720 \begin_layout Subsection
19721 RCS commands in \SpecialChar LyX
19722
19723 \end_layout
19724
19725 \begin_layout Standard
19726 The following sections describe the RCS commands supported by \SpecialChar LyX
19727 .
19728  You can find them in the 
19729 \family sans
19730 File\SpecialChar menuseparator
19731 Version
19732 \begin_inset space ~
19733 \end_inset
19734
19735 Control
19736 \family default
19737  submenu.
19738  \SpecialChar LyX
19739  was tested against RCS 5.7/5.8.
19740 \end_layout
19741
19742 \begin_layout Subsubsection
19743
19744 \family sans
19745 Register
19746 \end_layout
19747
19748 \begin_layout Standard
19749 If your document is not under revision control, this is the only item shown
19750  in the menu.
19751  And if it is under revision control, the 
19752 \family sans
19753 Register
19754 \family default
19755  item is not visible.
19756  
19757 \end_layout
19758
19759 \begin_layout Standard
19760 This command registers your document with RCS (unless you are under the
19761  directory managed by CVS)\SpecialChar endofsentence
19762  You are asked interactively to supply an initial
19763  description of the document.
19764  The document is now set in Read-Only mode and you have to 
19765 \family sans
19766 Check
19767 \begin_inset space ~
19768 \end_inset
19769
19770 Out
19771 \begin_inset space ~
19772 \end_inset
19773
19774 For
19775 \begin_inset space ~
19776 \end_inset
19777
19778 Edit
19779 \family default
19780 , before making any changes to it.
19781  A document under revision control has a 
19782 \begin_inset Quotes eld
19783 \end_inset
19784
19785 [RCS:<version> <locker>]
19786 \begin_inset Quotes erd
19787 \end_inset
19788
19789  item tagged to the filename in the minibuffer.
19790 \end_layout
19791
19792 \begin_layout Standard
19793 RCS command that is run: 
19794 \family typewriter
19795 ci -q -u -i -t-"<initial description>" <file-name>
19796 \end_layout
19797
19798 \begin_layout Standard
19799 Read 
19800 \family typewriter
19801 man ci
19802 \family default
19803  to understand the switches.
19804  
19805 \end_layout
19806
19807 \begin_layout Subsubsection
19808
19809 \family sans
19810 Check In Changes
19811 \end_layout
19812
19813 \begin_layout Standard
19814 When you are finished editing a file, you check in your changes.
19815  When you do this, you are asked for a description of the changes.
19816  This is stored in the history log.
19817  The version number is bumped, your changes are applied to the master RCS
19818  file, the document is unlocked and set to Read-Only mode.
19819 \end_layout
19820
19821 \begin_layout Standard
19822 RCS command: 
19823 \family typewriter
19824 ci -q -u -m"<description>" <file-name>
19825 \end_layout
19826
19827 \begin_layout Subsubsection
19828
19829 \family sans
19830 Check Out For Edit
19831 \end_layout
19832
19833 \begin_layout Standard
19834 By doing this you lock the document so that only you can edit it.
19835  This will also make the document Read-Write only for you.
19836  You will usually continue editing for a while and when you are finished
19837  you check in your changes.
19838  The status line is changed to reflect that you have locked the file.
19839 \end_layout
19840
19841 \begin_layout Standard
19842 RCS command: 
19843 \family typewriter
19844 co -q -l <file-name>
19845 \end_layout
19846
19847 \begin_layout Subsubsection
19848
19849 \family sans
19850 Revert To Repository Version
19851 \end_layout
19852
19853 \begin_layout Standard
19854 This will discard all changes made to the document since the last check
19855  in.
19856  You get a warning before changes are discarded.
19857 \end_layout
19858
19859 \begin_layout Standard
19860 RCS command: 
19861 \family typewriter
19862 co -f -u<version> <file-name>
19863 \end_layout
19864
19865 \begin_layout Subsubsection
19866
19867 \family sans
19868 Copy
19869 \end_layout
19870
19871 \begin_layout Standard
19872 This will create a copy of the current document.
19873  Since RCS does not support copy operations natively, the version history
19874  is not preserved, and the copy is added as a new file.
19875  It requires a clean document without any changes since the last checkin.
19876  You are asked for a file name and a description of the copy operation.
19877  After that the copy is created, both locally and in the repository.
19878  If the parent directories of the copied and original document differ, all
19879  relative paths of included files of the copy are adjusted (like in 
19880 \family sans
19881 File\SpecialChar menuseparator
19882 Save As
19883 \family default
19884 \SpecialChar ldots
19885 ).
19886  Finally, the copy is loaded instead of the original document.
19887 \end_layout
19888
19889 \begin_layout Labeling
19890 \labelwidthstring 00.00.0000
19891 RCS
19892 \begin_inset space ~
19893 \end_inset
19894
19895 commands: 
19896 \begin_inset space ~
19897 \end_inset
19898
19899
19900 \begin_inset Newline newline
19901 \end_inset
19902
19903 Copy 
19904 \begin_inset Flex Code
19905 status collapsed
19906
19907 \begin_layout Plain Layout
19908
19909 \family typewriter
19910 \begin_inset Quotes eld
19911 \end_inset
19912
19913 <file-name>
19914 \begin_inset Quotes erd
19915 \end_inset
19916
19917
19918 \end_layout
19919
19920 \end_inset
19921
19922  to 
19923 \begin_inset Flex Code
19924 status collapsed
19925
19926 \begin_layout Plain Layout
19927
19928 \family typewriter
19929 \begin_inset Quotes eld
19930 \end_inset
19931
19932 <new-file-name>
19933 \begin_inset Quotes erd
19934 \end_inset
19935
19936
19937 \end_layout
19938
19939 \end_inset
19940
19941
19942 \begin_inset Newline newline
19943 \end_inset
19944
19945
19946 \begin_inset Flex Code
19947 status collapsed
19948
19949 \begin_layout Plain Layout
19950 ci -q -u 
19951 \family typewriter
19952 -i 
19953 \begin_inset Quotes eld
19954 \end_inset
19955
19956 <new-file-name>
19957 \begin_inset Quotes erd
19958 \end_inset
19959
19960
19961 \end_layout
19962
19963 \end_inset
19964
19965
19966 \end_layout
19967
19968 \begin_layout Subsubsection
19969
19970 \family sans
19971 Undo Last Checkin
19972 \end_layout
19973
19974 \begin_layout Standard
19975 This makes as if the last check in never happened.
19976  No changes are made to the document loaded into \SpecialChar LyX
19977 , but the last version
19978  is removed from the master RCS file.
19979 \end_layout
19980
19981 \begin_layout Standard
19982 RCS command: 
19983 \family typewriter
19984 rcs -o<version> <file-name>
19985 \end_layout
19986
19987 \begin_layout Subsubsection
19988
19989 \family sans
19990 Show History
19991 \end_layout
19992
19993 \begin_layout Standard
19994 This shows the complete history of the RCS document.
19995  The output of 
19996 \family typewriter
19997 rlog <file-name>
19998 \family default
19999  is shown in a browser.
20000  See 
20001 \family typewriter
20002 man rlog
20003 \family default
20004  for more info.
20005 \end_layout
20006
20007 \begin_layout Subsubsection
20008 Revision info
20009 \end_layout
20010
20011 \begin_layout Standard
20012 \SpecialChar LyX
20013  supports RCS version number, author name, date and time of last commit.
20014  All those are extracted from 
20015 \family typewriter
20016 rlog -r <file-name>
20017 \family default
20018 .
20019  See 
20020 \begin_inset CommandInset ref
20021 LatexCommand ref
20022 reference "subsec:VCS-Revision-Information"
20023
20024 \end_inset
20025
20026  for details.
20027 \end_layout
20028
20029 \begin_layout Subsection
20030 CVS commands in \SpecialChar LyX
20031
20032 \end_layout
20033
20034 \begin_layout Standard
20035 A subset of CVS operations is supported by \SpecialChar LyX
20036 .
20037  You can find the commands in the 
20038 \family sans
20039 File\SpecialChar menuseparator
20040 Version
20041 \begin_inset space ~
20042 \end_inset
20043
20044 Control
20045 \family default
20046  submenu.
20047  The version control system SVN is more powerful, so please use it instead
20048  of CVS if possible.
20049 \end_layout
20050
20051 \begin_layout Subsubsection
20052
20053 \family sans
20054 General CVS usage
20055 \end_layout
20056
20057 \begin_layout Standard
20058 If you start from scratch with CVS you have to create your repository and
20059  checkout the working copy with external tools.
20060  If you're using a client-server setup you may need to login before doing
20061  the first repository checkout.
20062 \end_layout
20063
20064 \begin_layout Standard
20065 If your documents are under revision control and others are using the same
20066  repository problems arise when different changes to the same document at
20067  the same location happen.
20068  Standard CVS repositories don't operate with a file locking mechanism.
20069  This may be surprising, but conflicts only occur if people disagree on
20070  the proper content of the same part of a document.
20071  So, if co-workers are used to communicate regularly, these conflicts occur
20072  rarely.
20073  If they don't communicate they have a fundamental problem anyway.
20074  Nevertheless some people like to work with so called 
20075 \begin_inset Quotes eld
20076 \end_inset
20077
20078 reserved checkouts
20079 \begin_inset Quotes erd
20080 \end_inset
20081
20082 .
20083  If they do so the working copy of all files is readonly when checked out
20084  first and the user starts editing after using a special command to make
20085  the working copy writable.
20086  When the changes are checked in the working copy returns to readonly state.
20087  With \SpecialChar LyX
20088  one has to edit the 
20089 \begin_inset Flex Code
20090 status collapsed
20091
20092 \begin_layout Plain Layout
20093 .cvsrc
20094 \end_layout
20095
20096 \end_inset
20097
20098  file and add the line 
20099 \begin_inset Flex Code
20100 status collapsed
20101
20102 \begin_layout Plain Layout
20103 cvs -r
20104 \end_layout
20105
20106 \end_inset
20107
20108  to work with reserved checkouts.
20109  The benefit is the possibility to see who is using a writable copy of some
20110  document.
20111  It's not guaranteed only one user makes a copy writable.
20112 \end_layout
20113
20114 \begin_layout Standard
20115 \SpecialChar LyX
20116  tries to guess if you're using reserved or non-reserved checkouts.
20117  If your working copy is readonly or it is writable and an additional copy
20118  of your document exists in the CVS/Base sub-directory a reserved otherwise
20119  a non-reserved checkout is assumed.
20120  When a reserved checkout is detected you have to use 
20121 \begin_inset Flex Noun
20122 status collapsed
20123
20124 \begin_layout Plain Layout
20125 Check Out
20126 \end_layout
20127
20128 \end_inset
20129
20130  to make your working copy writable if it's readonly.
20131  After doing so the 
20132 \begin_inset Flex Noun
20133 status collapsed
20134
20135 \begin_layout Plain Layout
20136 Check In
20137 \end_layout
20138
20139 \end_inset
20140
20141  operation is possible and that makes your working copy readonly again after
20142  transferring your changes to the repository.
20143 \end_layout
20144
20145 \begin_layout Standard
20146 More information about CVS can be found here 
20147 \begin_inset Flex URL
20148 status collapsed
20149
20150 \begin_layout Plain Layout
20151
20152 http://www.nongnu.org/cvs
20153 \end_layout
20154
20155 \end_inset
20156
20157  and here 
20158 \begin_inset Flex URL
20159 status collapsed
20160
20161 \begin_layout Plain Layout
20162
20163 http://ximbiot.com/cvs
20164 \end_layout
20165
20166 \end_inset
20167
20168 .
20169 \end_layout
20170
20171 \begin_layout Standard
20172 Read 
20173 \family typewriter
20174 man cvs
20175 \family default
20176  to understand the sub-commands and the switches mentioned below.
20177 \end_layout
20178
20179 \begin_layout Subsubsection
20180
20181 \family sans
20182 Register
20183 \end_layout
20184
20185 \begin_layout Standard
20186 If your document is not under revision control, this is the only item shown
20187  in the menu.
20188  And if it is under revision control, the 
20189 \family sans
20190 Register
20191 \family default
20192  item is not visible.
20193  
20194 \end_layout
20195
20196 \begin_layout Standard
20197 This command registers in CVS your document 
20198 \begin_inset Flex Strong
20199 status collapsed
20200
20201 \begin_layout Plain Layout
20202
20203 \emph on
20204 only
20205 \end_layout
20206
20207 \end_inset
20208
20209  in the case you have already the documents directory under CVS control
20210  (in particular 
20211 \family typewriter
20212 CVS/Entries
20213 \family default
20214  file exists).
20215  This means you have to create or checkout the archive by yourself using
20216  external tools.
20217  (In case you forget that step \SpecialChar LyX
20218  registers the document with RCS.)
20219 \end_layout
20220
20221 \begin_layout Standard
20222 Then you are asked interactively to supply an initial description of the
20223  document.
20224  Don't forget that registered file is not yet checked in.
20225 \end_layout
20226
20227 \begin_layout Standard
20228 CVS command that is run: 
20229 \family typewriter
20230 cvs -q add -m"<entered message>" "<file-name>"
20231 \end_layout
20232
20233 \begin_layout Standard
20234 The term 
20235 \family typewriter
20236 "<file-name>"
20237 \family default
20238  above and for all other CVS commands is an abbreviation for 
20239 \begin_inset Quotes eld
20240 \end_inset
20241
20242 change the current working directory to file location and use the file name
20243  without path component as argument
20244 \begin_inset Quotes erd
20245 \end_inset
20246
20247 .
20248 \end_layout
20249
20250 \begin_layout Subsubsection
20251
20252 \family sans
20253 Check In Changes
20254 \end_layout
20255
20256 \begin_layout Standard
20257 When you are finished editing a file, you commit your changes.
20258  When you do this and you had changed the document, you are asked for a
20259  description of the changes.
20260  After that changes are written to the repository.
20261  In case you didn't change the document and a reserved checkout is detected
20262  the reservation made on 
20263 \begin_inset Flex Noun
20264 status collapsed
20265
20266 \begin_layout Plain Layout
20267 Check Out
20268 \end_layout
20269
20270 \end_inset
20271
20272  is undone.
20273 \end_layout
20274
20275 \begin_layout Labeling
20276 \labelwidthstring 00.00.0000
20277 CVS
20278 \begin_inset space ~
20279 \end_inset
20280
20281 command: 
20282 \begin_inset space ~
20283 \end_inset
20284
20285
20286 \begin_inset Newline newline
20287 \end_inset
20288
20289
20290 \begin_inset Flex Code
20291 status collapsed
20292
20293 \begin_layout Plain Layout
20294 cvs 
20295 \family typewriter
20296 -q commit -m"<description>" "<file-name>"
20297 \end_layout
20298
20299 \end_inset
20300
20301  or
20302 \begin_inset Newline newline
20303 \end_inset
20304
20305
20306 \begin_inset Flex Code
20307 status collapsed
20308
20309 \begin_layout Plain Layout
20310 cvs -q unedit 
20311 \family typewriter
20312 "<file-name>"
20313 \end_layout
20314
20315 \end_inset
20316
20317
20318 \end_layout
20319
20320 \begin_layout Subsubsection
20321
20322 \family sans
20323 Check Out Changes
20324 \end_layout
20325
20326 \begin_layout Standard
20327 When you are sharing a repository with others, you may have to incorporate
20328  their changes into your working copy.
20329 \end_layout
20330
20331 \begin_layout Standard
20332 CVS command: 
20333 \family typewriter
20334 cvs -q update "<file-name>"
20335 \end_layout
20336
20337 \begin_layout Standard
20338 If a readonly checkout is detected the working copy is made writable and
20339  reserved.
20340 \end_layout
20341
20342 \begin_layout Standard
20343 CVS command: 
20344 \family typewriter
20345 cvs -q edit "<file-name>"
20346 \end_layout
20347
20348 \begin_layout Subsubsection
20349
20350 \family sans
20351 Revert To Repository Version
20352 \end_layout
20353
20354 \begin_layout Standard
20355 This will discard all changes made to the document since the last check
20356  in.
20357  You get a warning before changes are discarded.
20358  Firstly the file is deleted, secondly CVS update command is run.
20359 \end_layout
20360
20361 \begin_layout Standard
20362 CVS command: 
20363 \family typewriter
20364 cvs -q update "<file-name>"
20365 \end_layout
20366
20367 \begin_layout Standard
20368 If a reserved checkout is detected and the working copy has no changes only
20369  the reservation is undone.
20370 \end_layout
20371
20372 \begin_layout Standard
20373 CVS command: 
20374 \family typewriter
20375 cvs -q unedit "<file-name>"
20376 \end_layout
20377
20378 \begin_layout Subsubsection
20379
20380 \family sans
20381 Copy
20382 \end_layout
20383
20384 \begin_layout Standard
20385 This will create a copy of the current document.
20386  Since CVS does not support copy operations natively, the version history
20387  is not preserved, and the copy is added as a new file.
20388  It requires a clean document without any changes since the last checkin.
20389  You are asked for a file name and a description of the copy operation.
20390  After that the copy is created, both locally and in the repository.
20391  If the parent directories of the copied and original document differ, all
20392  relative paths of included files of the copy are adjusted (like in 
20393 \family sans
20394 File\SpecialChar menuseparator
20395 Save As
20396 \family default
20397 \SpecialChar ldots
20398 ).
20399  Finally, the copy is loaded instead of the original document.
20400 \end_layout
20401
20402 \begin_layout Labeling
20403 \labelwidthstring 00.00.0000
20404 CVS
20405 \begin_inset space ~
20406 \end_inset
20407
20408 commands: 
20409 \begin_inset space ~
20410 \end_inset
20411
20412
20413 \begin_inset Newline newline
20414 \end_inset
20415
20416 Copy 
20417 \begin_inset Flex Code
20418 status collapsed
20419
20420 \begin_layout Plain Layout
20421
20422 \family typewriter
20423 \begin_inset Quotes eld
20424 \end_inset
20425
20426 <file-name>
20427 \begin_inset Quotes erd
20428 \end_inset
20429
20430
20431 \end_layout
20432
20433 \end_inset
20434
20435  to 
20436 \begin_inset Flex Code
20437 status collapsed
20438
20439 \begin_layout Plain Layout
20440
20441 \family typewriter
20442 \begin_inset Quotes eld
20443 \end_inset
20444
20445 <new-file-name>
20446 \begin_inset Quotes erd
20447 \end_inset
20448
20449
20450 \end_layout
20451
20452 \end_inset
20453
20454
20455 \begin_inset Newline newline
20456 \end_inset
20457
20458
20459 \begin_inset Flex Code
20460 status collapsed
20461
20462 \begin_layout Plain Layout
20463 cvs -q add 
20464 \family typewriter
20465
20466 \begin_inset Quotes eld
20467 \end_inset
20468
20469 <new-file-name>
20470 \begin_inset Quotes erd
20471 \end_inset
20472
20473
20474 \end_layout
20475
20476 \end_inset
20477
20478
20479 \end_layout
20480
20481 \begin_layout Subsubsection
20482
20483 \family sans
20484 Rename
20485 \end_layout
20486
20487 \begin_layout Standard
20488 This will rename the current document.
20489  Since CVS does not support rename operations natively, the version history
20490  is not preserved, the renamed document is added as a new file, and the
20491  original document is deleted.
20492  It requires a clean document without any changes since the last checkin.
20493  You are asked for a file name and a description of the rename operation.
20494  After that the document is renamed, both locally and in the repository.
20495  If the parent directories of the new and old file names differ, all relative
20496  paths of included files are adjusted (like in 
20497 \family sans
20498 File\SpecialChar menuseparator
20499 Save As
20500 \family default
20501 \SpecialChar ldots
20502 ).
20503  Finally, the document is reloaded using the new name.
20504 \end_layout
20505
20506 \begin_layout Labeling
20507 \labelwidthstring 00.00.0000
20508 CVS
20509 \begin_inset space ~
20510 \end_inset
20511
20512 commands: 
20513 \begin_inset space ~
20514 \end_inset
20515
20516
20517 \begin_inset Newline newline
20518 \end_inset
20519
20520 Rename 
20521 \begin_inset Flex Code
20522 status collapsed
20523
20524 \begin_layout Plain Layout
20525
20526 \family typewriter
20527 \begin_inset Quotes eld
20528 \end_inset
20529
20530 <file-name>
20531 \begin_inset Quotes erd
20532 \end_inset
20533
20534
20535 \end_layout
20536
20537 \end_inset
20538
20539  to 
20540 \begin_inset Flex Code
20541 status collapsed
20542
20543 \begin_layout Plain Layout
20544
20545 \family typewriter
20546 \begin_inset Quotes eld
20547 \end_inset
20548
20549 <new-file-name>
20550 \begin_inset Quotes erd
20551 \end_inset
20552
20553
20554 \end_layout
20555
20556 \end_inset
20557
20558
20559 \begin_inset Newline newline
20560 \end_inset
20561
20562
20563 \begin_inset Flex Code
20564 status collapsed
20565
20566 \begin_layout Plain Layout
20567 cvs -q add 
20568 \family typewriter
20569
20570 \begin_inset Quotes eld
20571 \end_inset
20572
20573 <new-file-name>
20574 \begin_inset Quotes erd
20575 \end_inset
20576
20577
20578 \end_layout
20579
20580 \end_inset
20581
20582
20583 \begin_inset Newline newline
20584 \end_inset
20585
20586
20587 \begin_inset Flex Code
20588 status collapsed
20589
20590 \begin_layout Plain Layout
20591 cvs -q remove 
20592 \family typewriter
20593
20594 \begin_inset Quotes eld
20595 \end_inset
20596
20597 <file-name>
20598 \begin_inset Quotes erd
20599 \end_inset
20600
20601
20602 \end_layout
20603
20604 \end_inset
20605
20606
20607 \end_layout
20608
20609 \begin_layout Subsubsection
20610 Update of the local directory checkout from repository
20611 \end_layout
20612
20613 \begin_layout Standard
20614 Once your documents gets more complex, containing sub-documents and pictures,
20615  including external 
20616 \begin_inset Flex Code
20617 status collapsed
20618
20619 \begin_layout Plain Layout
20620 .tex
20621 \end_layout
20622
20623 \end_inset
20624
20625  files and so on using version control becomes more complicated.
20626  \SpecialChar LyX
20627  supports updating the whole tree in which resides the document.
20628  This become especially useful once you cooperate with people which neither
20629  have detailed knowledge about CVS usage nor they have ambition to commit
20630  additional material to the repository.
20631  You have to organize the files structure so that all external files are
20632  in the same directory or subdirectories of the document.
20633  It's good practice anyway to store multipart documents in an extra directory.
20634 \end_layout
20635
20636 \begin_layout Standard
20637 The 
20638 \begin_inset Flex Code
20639 status collapsed
20640
20641 \begin_layout Plain Layout
20642 Update local directory from repository
20643 \end_layout
20644
20645 \end_inset
20646
20647  command updates the whole directory.
20648  If local changes are detected user is warned before update starts.
20649  In case of merge conflicts both versions of the conflicting document parts
20650  are placed in the final document.
20651  You have to review and correct the result of the merge.
20652  You'll find the conflicts enclosed in pairs of 
20653 \begin_inset Flex Code
20654 status collapsed
20655
20656 \begin_layout Plain Layout
20657 <<<<<<<
20658 \end_layout
20659
20660 \end_inset
20661
20662  and 
20663 \begin_inset Flex Code
20664 status collapsed
20665
20666 \begin_layout Plain Layout
20667 >>>>>>>
20668 \end_layout
20669
20670 \end_inset
20671
20672  separated by 
20673 \begin_inset Flex Code
20674 status collapsed
20675
20676 \begin_layout Plain Layout
20677 =======
20678 \end_layout
20679
20680 \end_inset
20681
20682 .
20683  The first part is your version as before the update operation with the
20684  document name prepended.
20685  The second one is the repository version with the version number after
20686  the sequence of 
20687 \begin_inset Flex Code
20688 status collapsed
20689
20690 \begin_layout Plain Layout
20691 >
20692 \end_layout
20693
20694 \end_inset
20695
20696  signs.
20697 \end_layout
20698
20699 \begin_layout Labeling
20700 \labelwidthstring 00.00.0000
20701 CVS
20702 \begin_inset space ~
20703 \end_inset
20704
20705 commands: 
20706 \begin_inset space ~
20707 \end_inset
20708
20709
20710 \begin_inset Newline newline
20711 \end_inset
20712
20713
20714 \begin_inset Flex Code
20715 status collapsed
20716
20717 \begin_layout Plain Layout
20718 cd $path; cvs diff 
20719 \family typewriter
20720 "."
20721 \end_layout
20722
20723 \end_inset
20724
20725  (Ask if changes are detected.)
20726 \begin_inset Newline newline
20727 \end_inset
20728
20729
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 cd $path; cvs -q update 
20735 \family typewriter
20736 "."
20737 \end_layout
20738
20739 \end_inset
20740
20741
20742 \end_layout
20743
20744 \begin_layout Standard
20745 where 
20746 \begin_inset Flex Code
20747 status collapsed
20748
20749 \begin_layout Plain Layout
20750 $path
20751 \end_layout
20752
20753 \end_inset
20754
20755  stands for the path to the document.
20756 \end_layout
20757
20758 \begin_layout Subsubsection
20759
20760 \family sans
20761 Show History
20762 \end_layout
20763
20764 \begin_layout Standard
20765 This shows the complete history of the CVS document.
20766  The output of 
20767 \family typewriter
20768 cvs log "<file-name>"
20769 \family default
20770  is shown in a browser.
20771 \end_layout
20772
20773 \begin_layout Subsubsection
20774 Revision info
20775 \end_layout
20776
20777 \begin_layout Standard
20778 \SpecialChar LyX
20779  supports CVS version number, author name, date and time of last commit.
20780  All those are extracted from 
20781 \family typewriter
20782 cvs log -r <file-name>
20783 \family default
20784 .
20785  See 
20786 \begin_inset CommandInset ref
20787 LatexCommand ref
20788 reference "subsec:VCS-Revision-Information"
20789
20790 \end_inset
20791
20792  for details.
20793 \end_layout
20794
20795 \begin_layout Subsection
20796 SVN commands in \SpecialChar LyX
20797
20798 \end_layout
20799
20800 \begin_layout Standard
20801 SVN is now partially supported by \SpecialChar LyX
20802 .
20803  You can find the commands in the 
20804 \family sans
20805 File\SpecialChar menuseparator
20806 Version
20807 \begin_inset space ~
20808 \end_inset
20809
20810 Control
20811 \family default
20812  submenu.
20813  Please note that if you use password protected access to repository via
20814  ssh, you will be asked in terminal window.
20815  \SpecialChar LyX
20816  was tested against SVN 1.5, 1.6, 1.7 and 1.8
20817 \begin_inset Foot
20818 status open
20819
20820 \begin_layout Plain Layout
20821 Most of the commands will work with 1.4 too, see 
20822 \begin_inset CommandInset ref
20823 LatexCommand ref
20824 reference "subsec:SVN-Repo-Update"
20825
20826 \end_inset
20827
20828 .
20829  There seems to be currently unresolved permissions problem under SVN 1.8
20830  with reverting changes when file is locked.
20831 \end_layout
20832
20833 \end_inset
20834
20835
20836 \end_layout
20837
20838 \begin_layout Subsubsection
20839
20840 \family sans
20841 Register
20842 \end_layout
20843
20844 \begin_layout Standard
20845 If your document is not under revision control, this is the only item shown
20846  in the menu.
20847  And if it is under revision control, the 
20848 \family sans
20849 Register
20850 \family default
20851  item is not visible.
20852 \end_layout
20853
20854 \begin_layout Standard
20855 This command registers in SVN your document ONLY in case you have already
20856  the documents directory under SVN control (in particular 
20857 \family typewriter
20858 .svn/entries
20859 \family default
20860  file exists).
20861  This means you have to checkout the archive by yourself.
20862 \end_layout
20863
20864 \begin_layout Standard
20865 Then you are asked interactively to supply an initial description of the
20866  document.
20867  Don't forget that registered file is not yet commited.
20868 \end_layout
20869
20870 \begin_layout Standard
20871 SVN command that is run: 
20872 \family typewriter
20873 svn add -q 
20874 \begin_inset Quotes eld
20875 \end_inset
20876
20877 <file-name>
20878 \begin_inset Quotes erd
20879 \end_inset
20880
20881
20882 \end_layout
20883
20884 \begin_layout Standard
20885 Read 
20886 \family typewriter
20887 man svn
20888 \family default
20889  to understand the switches.
20890 \end_layout
20891
20892 \begin_layout Subsubsection
20893
20894 \family sans
20895 Check In Changes
20896 \end_layout
20897
20898 \begin_layout Standard
20899 When you are finished editing a file, you commit your changes.
20900  When you do this, you are asked for a description of the changes.
20901  After that changes are commited.
20902 \end_layout
20903
20904 \begin_layout Standard
20905 SVN command:
20906 \begin_inset Foot
20907 status collapsed
20908
20909 \begin_layout Plain Layout
20910 In case locking is not enabled.
20911  See Section 
20912 \begin_inset CommandInset ref
20913 LatexCommand ref
20914 reference "subsec:SVN-File-Locking"
20915
20916 \end_inset
20917
20918 .
20919 \end_layout
20920
20921 \end_inset
20922
20923  
20924 \family typewriter
20925 svn commit -q -m"<description>" <file-name>
20926 \end_layout
20927
20928 \begin_layout Subsubsection
20929
20930 \family sans
20931 Check Out For Edit
20932 \end_layout
20933
20934 \begin_layout Standard
20935 Updates the changes of this file from the repository.
20936  Be sure you understand SVN merging and conflicts resolving before using
20937  this function, because all conflicts has to be resolved manually by you!
20938 \end_layout
20939
20940 \begin_layout Standard
20941 SVN command:
20942 \begin_inset Foot
20943 status collapsed
20944
20945 \begin_layout Plain Layout
20946 Ditto.
20947 \end_layout
20948
20949 \end_inset
20950
20951  
20952 \family typewriter
20953 svn update --non-interactive 
20954 \begin_inset Quotes eld
20955 \end_inset
20956
20957 <file-name>
20958 \begin_inset Quotes erd
20959 \end_inset
20960
20961
20962 \end_layout
20963
20964 \begin_layout Subsubsection
20965
20966 \family sans
20967 Revert To Repository Version
20968 \end_layout
20969
20970 \begin_layout Standard
20971 This will discard all changes made to the document since the last check
20972  in.
20973  You get a warning before changes are discarded.
20974 \end_layout
20975
20976 \begin_layout Standard
20977 SVN command: 
20978 \family typewriter
20979 svn revert -q 
20980 \begin_inset Quotes eld
20981 \end_inset
20982
20983 <file-name>
20984 \begin_inset Quotes erd
20985 \end_inset
20986
20987
20988 \end_layout
20989
20990 \begin_layout Subsubsection
20991
20992 \family sans
20993 Copy
20994 \end_layout
20995
20996 \begin_layout Standard
20997 This will create a copy of the current document including the version history.
20998  It requires a clean document without any changes since the last checkin.
20999  You are asked for a file name and a description of the copy operation.
21000  After that the copy is created, both locally and in the repository.
21001  If the parent directories of the copied and original document differ, all
21002  relative paths of included files of the copy are adjusted (like in 
21003 \family sans
21004 File\SpecialChar menuseparator
21005 Save As
21006 \family default
21007 \SpecialChar ldots
21008 ).
21009  Finally, the copy is loaded instead of the original document.
21010 \end_layout
21011
21012 \begin_layout Labeling
21013 \labelwidthstring 00.00.0000
21014 SVN
21015 \begin_inset space ~
21016 \end_inset
21017
21018 commands: 
21019 \begin_inset space ~
21020 \end_inset
21021
21022
21023 \begin_inset Newline newline
21024 \end_inset
21025
21026
21027 \begin_inset Flex Code
21028 status collapsed
21029
21030 \begin_layout Plain Layout
21031 svn copy -q 
21032 \family typewriter
21033
21034 \begin_inset Quotes eld
21035 \end_inset
21036
21037 <file-name>
21038 \begin_inset Quotes erd
21039 \end_inset
21040
21041  
21042 \begin_inset Quotes eld
21043 \end_inset
21044
21045 <new-file-name>
21046 \begin_inset Quotes erd
21047 \end_inset
21048
21049
21050 \end_layout
21051
21052 \end_inset
21053
21054
21055 \begin_inset Newline newline
21056 \end_inset
21057
21058
21059 \begin_inset Flex Code
21060 status collapsed
21061
21062 \begin_layout Plain Layout
21063 svn commit
21064 \end_layout
21065
21066 \end_inset
21067
21068
21069 \end_layout
21070
21071 \begin_layout Subsubsection
21072
21073 \family sans
21074 Rename
21075 \end_layout
21076
21077 \begin_layout Standard
21078 This will rename the current document including the version history.
21079  It requires a clean document without any changes since the last checkin.
21080  You are asked for a file name and a description of the rename operation.
21081  After that the document is renamed, both locally and in the repository.
21082  If the parent directories of the new and old file names differ, all relative
21083  paths of included files are adjusted (like in 
21084 \family sans
21085 File\SpecialChar menuseparator
21086 Save As
21087 \family default
21088 \SpecialChar ldots
21089 ).
21090  Finally, the document is reloaded using the new name.
21091 \end_layout
21092
21093 \begin_layout Labeling
21094 \labelwidthstring 00.00.0000
21095 SVN
21096 \begin_inset space ~
21097 \end_inset
21098
21099 commands: 
21100 \begin_inset space ~
21101 \end_inset
21102
21103
21104 \begin_inset Newline newline
21105 \end_inset
21106
21107
21108 \begin_inset Flex Code
21109 status collapsed
21110
21111 \begin_layout Plain Layout
21112 svn move -q 
21113 \family typewriter
21114
21115 \begin_inset Quotes eld
21116 \end_inset
21117
21118 <file-name>
21119 \begin_inset Quotes erd
21120 \end_inset
21121
21122  
21123 \begin_inset Quotes eld
21124 \end_inset
21125
21126 <new-file-name>
21127 \begin_inset Quotes erd
21128 \end_inset
21129
21130
21131 \end_layout
21132
21133 \end_inset
21134
21135
21136 \begin_inset Newline newline
21137 \end_inset
21138
21139
21140 \begin_inset Flex Code
21141 status collapsed
21142
21143 \begin_layout Plain Layout
21144 svn commit
21145 \end_layout
21146
21147 \end_inset
21148
21149
21150 \end_layout
21151
21152 \begin_layout Subsubsection
21153 \begin_inset CommandInset label
21154 LatexCommand label
21155 name "subsec:SVN-Repo-Update"
21156
21157 \end_inset
21158
21159 Update of the local directory checkout from repository
21160 \begin_inset Foot
21161 status collapsed
21162
21163 \begin_layout Plain Layout
21164 Note that this command will work only with subversion 
21165 \begin_inset Formula $\geqq1.5$
21166 \end_inset
21167
21168
21169 \end_layout
21170
21171 \end_inset
21172
21173
21174 \end_layout
21175
21176 \begin_layout Standard
21177 All the commands above have one shortcomming - they deal with the current
21178  document only.
21179  Once your document contains pictures, includes external 
21180 \begin_inset Flex Code
21181 status collapsed
21182
21183 \begin_layout Plain Layout
21184 .tex
21185 \end_layout
21186
21187 \end_inset
21188
21189  files and so on administration becomes more complicated.
21190  \SpecialChar LyX
21191  now supports updating the whole tree in which resides the document
21192 \begin_inset Foot
21193 status collapsed
21194
21195 \begin_layout Plain Layout
21196 One need to organize the files structure so that all external files are
21197  in the same directory or subdirectories of the document.
21198  
21199 \end_layout
21200
21201 \end_inset
21202
21203 .
21204  This become especially useful once you cooperate with people which neither
21205  know about subversion management nor they have ambition to commit additional
21206  material to the repository.
21207  
21208 \end_layout
21209
21210 \begin_layout Standard
21211 \begin_inset Flex Code
21212 status collapsed
21213
21214 \begin_layout Plain Layout
21215 Update local directory from repository
21216 \end_layout
21217
21218 \end_inset
21219
21220  command updates the whole directory and in case of merge conflicts local
21221  version of the files are left, so no unintended data loss occurs.
21222  If local changes are detected user is warned before update starts.
21223 \end_layout
21224
21225 \begin_layout Labeling
21226 \labelwidthstring 00.00.0000
21227 SVN
21228 \begin_inset space ~
21229 \end_inset
21230
21231 commands: 
21232 \begin_inset space ~
21233 \end_inset
21234
21235
21236 \begin_inset Newline newline
21237 \end_inset
21238
21239
21240 \begin_inset Flex Code
21241 status collapsed
21242
21243 \begin_layout Plain Layout
21244 svn diff $path
21245 \end_layout
21246
21247 \end_inset
21248
21249  (Ask if changes are detected.)
21250 \begin_inset Newline newline
21251 \end_inset
21252
21253
21254 \begin_inset Flex Code
21255 status collapsed
21256
21257 \begin_layout Plain Layout
21258 svn update –accept mine-full $path
21259 \end_layout
21260
21261 \end_inset
21262
21263
21264 \end_layout
21265
21266 \begin_layout Standard
21267 where 
21268 \begin_inset Flex Code
21269 status collapsed
21270
21271 \begin_layout Plain Layout
21272 $path
21273 \end_layout
21274
21275 \end_inset
21276
21277  stands for the path to the document.
21278 \end_layout
21279
21280 \begin_layout Subsubsection
21281
21282 \family sans
21283 Show History
21284 \end_layout
21285
21286 \begin_layout Standard
21287 This shows the complete history of the SVN document.
21288  The output of 
21289 \family typewriter
21290 svn log 
21291 \begin_inset Quotes eld
21292 \end_inset
21293
21294 <file-name>
21295 \begin_inset Quotes erd
21296 \end_inset
21297
21298
21299 \family default
21300  is shown in a browser.
21301 \end_layout
21302
21303 \begin_layout Subsubsection
21304 File Locking
21305 \begin_inset CommandInset label
21306 LatexCommand label
21307 name "subsec:SVN-File-Locking"
21308
21309 \end_inset
21310
21311
21312 \end_layout
21313
21314 \begin_layout Standard
21315 The file exchange through various revision control systems brings the problem
21316  of merge conflicts in case two different users try to edit the same (parts
21317  of) document.
21318  When such a conflict happens it needs manual resolving and one reasonable
21319  alternative is to provide some kind of locking mechanism, which guarantees
21320  that only one user is allowed to edit file at the given time.
21321 \end_layout
21322
21323 \begin_layout Standard
21324 SVN has two such mechanisms to provide mutual exclusivity for file access
21325  - locks and automatic setting of write permissions (see sec.
21326  
21327 \begin_inset CommandInset ref
21328 LatexCommand ref
21329 reference "subsec:Automatical-Locking-Property"
21330
21331 \end_inset
21332
21333 ) based on 
21334 \begin_inset Flex Code
21335 status collapsed
21336
21337 \begin_layout Plain Layout
21338 svn:needs-lock
21339 \end_layout
21340
21341 \end_inset
21342
21343  file svn property
21344 \begin_inset Foot
21345 status open
21346
21347 \begin_layout Plain Layout
21348 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21349 \end_layout
21350
21351 \end_inset
21352
21353 .
21354  If this property is detected for a given document \SpecialChar LyX
21355  starts to use SVN locks
21356  for document editing automatically and the whole check-in/out mechanism
21357  switches to the same regimen as for RCS.
21358  This in particular means there are two different modes of file use in \SpecialChar LyX
21359 :
21360 \end_layout
21361
21362 \begin_layout Itemize
21363 Unlocked state.
21364  The loaded file is in the read-only mode.
21365  For editing on needs to check-out.
21366  
21367 \emph on
21368 Check-out
21369 \emph default
21370  consists of updating from the repository and gaining write lock.
21371  If the lock is not possible to obtain, we remain in unlocked state.
21372 \end_layout
21373
21374 \begin_layout Itemize
21375 Locked state.
21376  The loaded file is in the 'normal' edit mode.
21377  No other user is allowed to edit the file.
21378  
21379 \emph on
21380 Check-in
21381 \emph default
21382  consists of commiting changes and releasing write-lock.
21383  If no changes have been made to the document, no commit will be produced
21384 \begin_inset Foot
21385 status collapsed
21386
21387 \begin_layout Plain Layout
21388 Don't be puzzled by the fact that you will be asked for commit message anyway.
21389 \end_layout
21390
21391 \end_inset
21392
21393  and only the write-lock will be released.
21394 \end_layout
21395
21396 \begin_layout Standard
21397 SVN commands:
21398 \end_layout
21399
21400 \begin_layout Labeling
21401 \labelwidthstring 00.00.0000
21402 Check-in:
21403 \family typewriter
21404  svn commit -q -m"<description>" "<file-name>"
21405 \begin_inset Newline newline
21406 \end_inset
21407
21408 svn unlock "<file-name>"
21409 \end_layout
21410
21411 \begin_layout Labeling
21412 \labelwidthstring 00.00.0000
21413 Check-out: 
21414 \family typewriter
21415 svn update "<file-name>"
21416 \begin_inset Newline newline
21417 \end_inset
21418
21419 svn lock "<file-name>"
21420 \end_layout
21421
21422 \begin_layout Subsubsection
21423
21424 \family typewriter
21425 \begin_inset CommandInset label
21426 LatexCommand label
21427 name "subsec:Automatical-Locking-Property"
21428
21429 \end_inset
21430
21431
21432 \family default
21433 Automatic Locking Property
21434 \end_layout
21435
21436 \begin_layout Standard
21437 The above mentioned automatic setting of write permissions of the .lyx file
21438  can be set through
21439 \family sans
21440  File\SpecialChar menuseparator
21441 Version
21442 \begin_inset space ~
21443 \end_inset
21444
21445 Control\SpecialChar menuseparator
21446 Toggle locking property
21447 \family default
21448 .
21449  This command is active only when the file is not locked on the svn server
21450  (i.e.
21451  you need to check-out before proceeding).
21452 \end_layout
21453
21454 \begin_layout Labeling
21455 \labelwidthstring 00.00.0000
21456 SVN
21457 \begin_inset space ~
21458 \end_inset
21459
21460 commands:
21461 \end_layout
21462
21463 \begin_layout Labeling
21464 \labelwidthstring 00.00.0000
21465 Set:
21466 \family typewriter
21467  svn propset svn:needs-lock ON "<file-name>"
21468 \end_layout
21469
21470 \begin_layout Labeling
21471 \labelwidthstring 00.00.0000
21472 Unset: 
21473 \family typewriter
21474 svn propdel svn:needs-lock "<file-name>"
21475 \end_layout
21476
21477 \begin_layout Subsubsection
21478 \begin_inset CommandInset label
21479 LatexCommand label
21480 name "subsec:VCS-Revision-Information"
21481
21482 \end_inset
21483
21484 Revision Information in Documents
21485 \end_layout
21486
21487 \begin_layout Standard
21488 There are more possibilities how to activate revision information in our
21489  document.
21490 \end_layout
21491
21492 \begin_layout Itemize
21493 \SpecialChar LyX
21494  supports directly:
21495 \begin_inset Separator latexpar
21496 \end_inset
21497
21498
21499 \end_layout
21500
21501 \begin_deeper
21502 \begin_layout Itemize
21503 tree revision information (
21504 \begin_inset Flex Code
21505 status collapsed
21506
21507 \begin_layout Plain Layout
21508 vcs-tree-revision
21509 \end_layout
21510
21511 \end_inset
21512
21513 ).
21514  The result is the output of the 
21515 \begin_inset Flex Code
21516 status collapsed
21517
21518 \begin_layout Plain Layout
21519 svnversion
21520 \end_layout
21521
21522 \end_inset
21523
21524  command, the following table gives you an idea, how to read the results.
21525 \end_layout
21526
21527 \begin_layout Standard
21528 \align center
21529 \begin_inset Tabular
21530 <lyxtabular version="3" rows="6" columns="2">
21531 <features tabularvalignment="middle">
21532 <column alignment="center" valignment="top">
21533 <column alignment="center" valignment="top">
21534 <row>
21535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21536 \begin_inset Text
21537
21538 \begin_layout Plain Layout
21539 Output
21540 \end_layout
21541
21542 \end_inset
21543 </cell>
21544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21545 \begin_inset Text
21546
21547 \begin_layout Plain Layout
21548 Meaning
21549 \end_layout
21550
21551 \end_inset
21552 </cell>
21553 </row>
21554 <row>
21555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21556 \begin_inset Text
21557
21558 \begin_layout Plain Layout
21559 4123:4168
21560 \end_layout
21561
21562 \end_inset
21563 </cell>
21564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21565 \begin_inset Text
21566
21567 \begin_layout Plain Layout
21568 mixed revision working copy
21569 \end_layout
21570
21571 \end_inset
21572 </cell>
21573 </row>
21574 <row>
21575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21576 \begin_inset Text
21577
21578 \begin_layout Plain Layout
21579 4168M
21580 \end_layout
21581
21582 \end_inset
21583 </cell>
21584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21585 \begin_inset Text
21586
21587 \begin_layout Plain Layout
21588 modified working copy
21589 \end_layout
21590
21591 \end_inset
21592 </cell>
21593 </row>
21594 <row>
21595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21596 \begin_inset Text
21597
21598 \begin_layout Plain Layout
21599 4123S
21600 \end_layout
21601
21602 \end_inset
21603 </cell>
21604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21605 \begin_inset Text
21606
21607 \begin_layout Plain Layout
21608 switched working copy
21609 \end_layout
21610
21611 \end_inset
21612 </cell>
21613 </row>
21614 <row>
21615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21616 \begin_inset Text
21617
21618 \begin_layout Plain Layout
21619 4123P
21620 \end_layout
21621
21622 \end_inset
21623 </cell>
21624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21625 \begin_inset Text
21626
21627 \begin_layout Plain Layout
21628 partial working copy, from a sparse checkout
21629 \end_layout
21630
21631 \end_inset
21632 </cell>
21633 </row>
21634 <row>
21635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21636 \begin_inset Text
21637
21638 \begin_layout Plain Layout
21639 4123:4168MS
21640 \end_layout
21641
21642 \end_inset
21643 </cell>
21644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21645 \begin_inset Text
21646
21647 \begin_layout Plain Layout
21648 mixed revision, modified, switched working copy
21649 \end_layout
21650
21651 \end_inset
21652 </cell>
21653 </row>
21654 </lyxtabular>
21655
21656 \end_inset
21657
21658
21659 \end_layout
21660
21661 \begin_layout Itemize
21662 file revision information.
21663  The result comes from parsing the output of 
21664 \begin_inset Flex Code
21665 status collapsed
21666
21667 \begin_layout Plain Layout
21668 svn
21669 \begin_inset space ~
21670 \end_inset
21671
21672 info
21673 \begin_inset space ~
21674 \end_inset
21675
21676 –xml
21677 \begin_inset space ~
21678 \end_inset
21679
21680 file.lyx
21681 \end_layout
21682
21683 \end_inset
21684
21685 .
21686  Supported flags are:
21687 \begin_inset Separator latexpar
21688 \end_inset
21689
21690
21691 \end_layout
21692
21693 \begin_deeper
21694 \begin_layout Itemize
21695 version number of the last commit (
21696 \begin_inset Flex Code
21697 status collapsed
21698
21699 \begin_layout Plain Layout
21700 vcs-revision
21701 \end_layout
21702
21703 \end_inset
21704
21705 )
21706 \end_layout
21707
21708 \begin_layout Itemize
21709 author of the last commit (
21710 \begin_inset Flex Code
21711 status collapsed
21712
21713 \begin_layout Plain Layout
21714 vcs-author
21715 \end_layout
21716
21717 \end_inset
21718
21719 )
21720 \end_layout
21721
21722 \begin_layout Itemize
21723 date of the last commit (
21724 \begin_inset Flex Code
21725 status collapsed
21726
21727 \begin_layout Plain Layout
21728 vcs-date
21729 \end_layout
21730
21731 \end_inset
21732
21733 )
21734 \end_layout
21735
21736 \begin_layout Itemize
21737 time of the last commit (
21738 \begin_inset Flex Code
21739 status collapsed
21740
21741 \begin_layout Plain Layout
21742 vcs-time
21743 \end_layout
21744
21745 \end_inset
21746
21747 )
21748 \end_layout
21749
21750 \end_deeper
21751 \begin_layout Standard
21752 You can obtain this info via InsetInfo (e.g.
21753  
21754 \begin_inset Flex Code
21755 status collapsed
21756
21757 \begin_layout Plain Layout
21758 info-insert buffer vcs-date
21759 \end_layout
21760
21761 \end_inset
21762
21763 ).
21764  The information will be available only when you have the file stored under
21765  svn managment (i.e.
21766  the 
21767 \begin_inset Flex Code
21768 status collapsed
21769
21770 \begin_layout Plain Layout
21771 .svn
21772 \end_layout
21773
21774 \end_inset
21775
21776  directory is available with your document).
21777 \end_layout
21778
21779 \end_deeper
21780 \begin_layout Itemize
21781 Another—a hacking one—possibility is to use svn keywords
21782 \begin_inset Foot
21783 status collapsed
21784
21785 \begin_layout Plain Layout
21786 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21787 \end_layout
21788
21789 \end_inset
21790
21791 .
21792  In short – you set file keywords property (e.g.
21793  
21794 \family sans
21795 svn propset svn:keywords 'Rev' file.lyx
21796 \family default
21797 ) and then paste keyword \SpecialChar TeX
21798  code
21799 \begin_inset Foot
21800 status collapsed
21801
21802 \begin_layout Plain Layout
21803 This is an easy way how to ensure that \SpecialChar LyX
21804  won't break the line in the middle
21805  of keyword tag.
21806 \end_layout
21807
21808 \end_inset
21809
21810  tag in your document (e.g.
21811  
21812 \begin_inset ERT
21813 status open
21814
21815 \begin_layout Plain Layout
21816
21817 $Rev$
21818 \end_layout
21819
21820 \end_inset
21821
21822 ).
21823  This way svn client will automatically substitute revision number (e.g.
21824  
21825 \begin_inset ERT
21826 status open
21827
21828 \begin_layout Plain Layout
21829
21830 $Rev: 59 $
21831 \end_layout
21832
21833 \end_inset
21834
21835 ) after each update and commit.
21836  There are more problems with this approach.
21837  Firstly, the '$' character is used in \SpecialChar TeX
21838  world for math equations, so any
21839  occurence of math formula 
21840 \begin_inset Formula $Rev$
21841 \end_inset
21842
21843  become 
21844 \begin_inset Formula $Rev:59$
21845 \end_inset
21846
21847  in your \SpecialChar LyX
21848  document.
21849  Similarly for other keywords like Id, Date, Author, etc.
21850  Secondly svn output is dependent on your locales, so its very easy that
21851  svn would produce some problematic strings once Date is used.
21852  Thirdly you get the whole 'Rev: 59' string in your document instead of
21853  the plain number.
21854  Until subversion implements user's custom keywords it will be hard to use
21855  this approach reliably or let \SpecialChar LyX
21856  to support it directly.
21857 \end_layout
21858
21859 \begin_layout Subsection
21860 SVN and Windows Environment
21861 \end_layout
21862
21863 \begin_layout Quote
21864 My inclination is to say that if the user cannot figure out the command
21865  line operations on their own fairly quickly, they would be well advised
21866  to use TortoiseSVN.
21867  —P.
21868  A.
21869  Rubin
21870 \end_layout
21871
21872 \begin_layout Subsubsection
21873 Preparation
21874 \end_layout
21875
21876 \begin_layout Standard
21877 In addition to installing \SpecialChar LyX
21878 , and having access to a Subversion repository,
21879  the user will need to install the Subversion client program.
21880  A Windows installer for the client program is available from 
21881 \begin_inset CommandInset href
21882 LatexCommand href
21883 name "CollabNet"
21884 target "http://www.collab.net/nonav/downloads/subversion/"
21885
21886 \end_inset
21887
21888 .
21889  The user may also want to install 
21890 \begin_inset CommandInset href
21891 LatexCommand href
21892 name "TortoiseSVN"
21893 target "http://tortoisesvn.tigris.org/"
21894
21895 \end_inset
21896
21897 , which integrates Subversion operations into the context (rightclick) menu
21898  of Windows Explorer.
21899  Operations done outside \SpecialChar LyX
21900  will typically be more convenient using the Explorer
21901  context menu.
21902  Note that TortoiseSVN is not a replacement for the client program, which
21903  is what \SpecialChar LyX
21904  itself will use.
21905 \end_layout
21906
21907 \begin_layout Subsubsection
21908 Bringing a document under Subversion control
21909 \end_layout
21910
21911 \begin_layout Standard
21912 Before a \SpecialChar LyX
21913  document can be brought under version control in Subversion, its
21914  parent directory needs to be under version control.
21915  If the document is being added to a project already in the repository,
21916  this is accomplished by checking the project out to the directory where
21917  the new document will be placed.
21918  If the project itself is not yet under version control (for instance, if
21919  this document starts a new project), the directory must be imported into
21920  the repository.
21921  This is done outside \SpecialChar LyX
21922 .
21923  Both import and checkout are easily accomplished from the Explorer context
21924  menu using TortoiseSVN, or alternatively can be done using the command
21925  line client at a DOS prompt.
21926  The procedure for importing the project using TortoiseSVN is described
21927  below, assuming an existing repository and a new project being started
21928  in 
21929 \family typewriter
21930 C:
21931 \backslash
21932 new project
21933 \family default
21934 .
21935  For information on using the Subversion client program, run 
21936 \family typewriter
21937 svn --help 
21938 \family default
21939 in a DOS shell.
21940 \end_layout
21941
21942 \begin_layout Enumerate
21943 Locate 
21944 \family typewriter
21945 C:
21946 \backslash
21947 new project 
21948 \family default
21949 in Windows Explorer, right click it, and select 
21950 \family sans
21951 TortoiseSVN\SpecialChar menuseparator
21952 Repo-browser
21953 \family default
21954 .
21955  If necessary, adjust the URL for the repository, then click OK.
21956 \end_layout
21957
21958 \begin_layout Enumerate
21959 Right click the level of the repository under which you want to place the
21960  new project folder (typically the top level) and click 
21961 \family sans
21962 Create folder
21963 \family default
21964  Supply a name for the project folder and click OK.
21965  Add a message for the log file if desired, then click OK again.
21966  The new project folder should appear in the repository.
21967  Finally, click OK again to exit the repository browser.
21968 \end_layout
21969
21970 \begin_layout Enumerate
21971 Once again right click 
21972 \family typewriter
21973 C:
21974 \backslash
21975 new project
21976 \family default
21977 , this time selecting SVN Checkout\SpecialChar ldots
21978  Select the URL of the project folder
21979  you just created in the repository, and set the checkout directory to 
21980 \family typewriter
21981 C:
21982 \backslash
21983 new project.
21984
21985 \family default
21986  Click OK.
21987  You will be warned about a non-empty folder; click OK to proceed.
21988  You should now have a 
21989 \family typewriter
21990 .svn
21991 \family default
21992  directory under 
21993 \family typewriter
21994 C:
21995 \backslash
21996 new project.
21997 \end_layout
21998
21999 \begin_layout Enumerate
22000 Create or open your document in \SpecialChar LyX
22001  and click 
22002 \family sans
22003 File\SpecialChar menuseparator
22004 Version
22005 \begin_inset space ~
22006 \end_inset
22007
22008 Control\SpecialChar menuseparator
22009 Register.
22010  
22011 \family default
22012 Add a log message and click OK to commit the document to version control.
22013 \end_layout
22014
22015 \begin_layout Standard
22016 From this point onward, you should have full functionality in the 
22017 \family sans
22018 File\SpecialChar menuseparator
22019 Version
22020 \begin_inset space ~
22021 \end_inset
22022
22023 Control
22024 \family default
22025  menu.
22026  You also have the option of checking the document in and out, viewing its
22027  history, etc.
22028  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22029  client program from a command prompt.
22030 \end_layout
22031
22032 \begin_layout Subsubsection
22033 SSH tunnel used with SVN under Windows
22034 \end_layout
22035
22036 \begin_layout Standard
22037 Compared with Linux setting up an svn client to communicate over ssh under
22038  Windows is a rather troublesome task.
22039  We will at least offer some hints how to setup the client side but prior
22040  knowledge about ssh and the Windows command line is needed, also be prepared
22041  for a great deal of frustration\SpecialChar ldots
22042
22043 \end_layout
22044
22045 \begin_layout Enumerate
22046 Get an svn client for windows, as described in the previous sections.
22047  When it is a fresh install run some svn command (e.g.
22048  
22049 \begin_inset Flex Code
22050 status collapsed
22051
22052 \begin_layout Plain Layout
22053 svn –version
22054 \end_layout
22055
22056 \end_inset
22057
22058 ) to create config files, which you will need to change later on.
22059 \end_layout
22060
22061 \begin_layout Enumerate
22062 Choose an ssh client for Windows.
22063  There are several possibilities, we will use the one from Putty tools
22064 \begin_inset Foot
22065 status collapsed
22066
22067 \begin_layout Plain Layout
22068 \begin_inset Flex URL
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072
22073 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22074 \end_layout
22075
22076 \end_inset
22077
22078
22079 \end_layout
22080
22081 \end_inset
22082
22083 .
22084  You will need to set the connection up so that the client doesn't ask for
22085  any password from you.
22086  To keep things easy we will use only keys without any additional password
22087  protection etc.
22088 \begin_inset Separator latexpar
22089 \end_inset
22090
22091
22092 \end_layout
22093
22094 \begin_deeper
22095 \begin_layout Enumerate
22096 Generate keys by 
22097 \begin_inset Flex Code
22098 status collapsed
22099
22100 \begin_layout Plain Layout
22101 puttygen
22102 \end_layout
22103
22104 \end_inset
22105
22106 .
22107  Save your private .ppk key file and put the public one on the server side.
22108  If the SVN server runs on Linux, note that the format of the public key
22109  is not compatible with Linux openssh and you will need to direcly copy-paste
22110  the key from the “
22111 \emph on
22112 Public key for pasting into OpenSSH authorized_keys file
22113 \emph default
22114 :” edit field into the server's 
22115 \begin_inset Flex Code
22116 status collapsed
22117
22118 \begin_layout Plain Layout
22119 ~/.ssh/authorized_keys
22120 \end_layout
22121
22122 \end_inset
22123
22124  / 
22125 \begin_inset Flex Code
22126 status collapsed
22127
22128 \begin_layout Plain Layout
22129 authorized_keys2
22130 \end_layout
22131
22132 \end_inset
22133
22134  file.
22135 \end_layout
22136
22137 \begin_layout Enumerate
22138 Get the Putty's 
22139 \begin_inset Flex Code
22140 status collapsed
22141
22142 \begin_layout Plain Layout
22143 plink
22144 \end_layout
22145
22146 \end_inset
22147
22148 .
22149  In the SVN config file
22150 \begin_inset Foot
22151 status collapsed
22152
22153 \begin_layout Plain Layout
22154 Exact path depends on Windows version, usually somewhere around 
22155 \begin_inset Flex Code
22156 status collapsed
22157
22158 \begin_layout Plain Layout
22159 c:
22160 \backslash
22161 Documents and Settings
22162 \backslash
22163 user
22164 \backslash
22165 Application Data
22166 \backslash
22167 Subversion
22168 \backslash
22169 config
22170 \end_layout
22171
22172 \end_inset
22173
22174  / 
22175 \begin_inset Flex Code
22176 status collapsed
22177
22178 \begin_layout Plain Layout
22179 AppData
22180 \backslash
22181 Roaming
22182 \backslash
22183 Subversion
22184 \end_layout
22185
22186 \end_inset
22187
22188 .
22189 \end_layout
22190
22191 \end_inset
22192
22193 , section [tunnels], setup ssh command, e.g.
22194  
22195 \begin_inset Flex Code
22196 status collapsed
22197
22198 \begin_layout Plain Layout
22199 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22200 \end_layout
22201
22202 \end_inset
22203
22204 .
22205 \begin_inset Foot
22206 status collapsed
22207
22208 \begin_layout Plain Layout
22209 It will usually take a lot of time to get exact command right and it depends
22210  on many things.
22211  For example do not have some remote server saved as a default session in
22212  Putty etc.
22213  If things fail, try to connect via plink without SVN first.
22214 \end_layout
22215
22216 \end_inset
22217
22218
22219 \end_layout
22220
22221 \end_deeper
22222 \begin_layout Enumerate
22223 Checkout the SVN archive, e.
22224 \begin_inset space \thinspace{}
22225 \end_inset
22226
22227 g.
22228 \begin_inset Newline newline
22229 \end_inset
22230
22231
22232 \begin_inset Flex Code
22233 status collapsed
22234
22235 \begin_layout Plain Layout
22236 svn co svn+ssh://user@server/repository_path
22237 \end_layout
22238
22239 \end_inset
22240
22241 .
22242 \end_layout
22243
22244 \begin_layout Subsubsection
22245 End-of-Line Conversions
22246 \end_layout
22247
22248 \begin_layout Standard
22249 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22250  will
22251  use different line endings inside the .lyx files.
22252  This is not a problem as far as \SpecialChar LyX
22253  functionality is concerned, but the commit
22254  diffs will be huge and merge-conflicts prone.
22255  Fortunately SVN itself knows
22256 \begin_inset Foot
22257 status collapsed
22258
22259 \begin_layout Plain Layout
22260 \begin_inset Flex URL
22261 status collapsed
22262
22263 \begin_layout Plain Layout
22264
22265 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22266 \end_layout
22267
22268 \end_inset
22269
22270
22271 \end_layout
22272
22273 \end_inset
22274
22275  how to deal with CR/LF problems when switching .lyx files to the 
22276 \begin_inset Flex Code
22277 status collapsed
22278
22279 \begin_layout Plain Layout
22280 native
22281 \end_layout
22282
22283 \end_inset
22284
22285  mode.
22286 \begin_inset Foot
22287 status collapsed
22288
22289 \begin_layout Plain Layout
22290 For the lazy guys: 
22291 \begin_inset Flex Code
22292 status collapsed
22293
22294 \begin_layout Plain Layout
22295 svn propset svn:eol-style native FILE_NAME
22296 \end_layout
22297
22298 \end_inset
22299
22300
22301 \end_layout
22302
22303 \end_inset
22304
22305
22306 \end_layout
22307
22308 \begin_layout Subsection
22309 GIT commands in \SpecialChar LyX
22310
22311 \end_layout
22312
22313 \begin_layout Standard
22314 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22315 .
22316  You can find the commands in the 
22317 \family sans
22318 File\SpecialChar menuseparator
22319 Version
22320 \begin_inset space ~
22321 \end_inset
22322
22323 Control
22324 \family default
22325  submenu.
22326  Please note that if you use password protected access to repository via
22327  ssh, you will be asked in terminal window.
22328  \SpecialChar LyX
22329  was tested against GIT 1.7.
22330 \begin_inset Foot
22331 status open
22332
22333 \begin_layout Plain Layout
22334 Windows users please note that you need to ensure that git is on the path.
22335  This can be set from within \SpecialChar LyX
22336  at 
22337 \family sans
22338 Tools\SpecialChar menuseparator
22339 Preferences\SpecialChar menuseparator
22340 Paths\SpecialChar menuseparator
22341 PATH prefix
22342 \family default
22343 .
22344 \end_layout
22345
22346 \end_inset
22347
22348
22349 \end_layout
22350
22351 \begin_layout Standard
22352 One big difference of GIT and the other supported version control systems
22353  is the distributed nature of GIT: With traditional version control systems
22354  there is one central server which hosts the repository.
22355  Users commit their changes to the server, and get updates made by other
22356  users from it.
22357  With GIT, users commit to a local repository.
22358  The local repository can be synchronized with one or more remote repositories
22359  using the 
22360 \begin_inset Flex Code
22361 status collapsed
22362
22363 \begin_layout Plain Layout
22364 pull
22365 \end_layout
22366
22367 \end_inset
22368
22369  and 
22370 \begin_inset Flex Code
22371 status collapsed
22372
22373 \begin_layout Plain Layout
22374 push
22375 \end_layout
22376
22377 \end_inset
22378
22379  GIT commands.
22380  \SpecialChar LyX
22381  does not interact in any way with remote GIT repositories.
22382  It works exclusively with the local repository in a very similar way as
22383  with a central CVS or SVN repository.
22384  If you use remote GIT repositories you need to do the 
22385 \begin_inset Flex Code
22386 status collapsed
22387
22388 \begin_layout Plain Layout
22389 pull
22390 \end_layout
22391
22392 \end_inset
22393
22394  and 
22395 \begin_inset Flex Code
22396 status collapsed
22397
22398 \begin_layout Plain Layout
22399 push
22400 \end_layout
22401
22402 \end_inset
22403
22404  operations with your favourite GIT client.
22405 \end_layout
22406
22407 \begin_layout Subsubsection
22408
22409 \family sans
22410 Register
22411 \end_layout
22412
22413 \begin_layout Standard
22414 If your document is not under revision control, this is the only item shown
22415  in the menu.
22416  And if it is under revision control, the 
22417 \family sans
22418 Register
22419 \family default
22420  item is not visible.
22421 \end_layout
22422
22423 \begin_layout Standard
22424 This command registers in GIT your document ONLY in case you have already
22425  the documents directory under GIT control (in particular 
22426 \family typewriter
22427 .git/index
22428 \family default
22429  file exists).
22430  This means you have to checkout the archive by yourself.
22431 \end_layout
22432
22433 \begin_layout Standard
22434 Then you are asked interactively to supply an initial description of the
22435  document.
22436  Don't forget that registered file is not yet commited.
22437 \end_layout
22438
22439 \begin_layout Standard
22440 GIT command that is run: 
22441 \family typewriter
22442 git add 
22443 \begin_inset Quotes eld
22444 \end_inset
22445
22446 <file-name>
22447 \begin_inset Quotes erd
22448 \end_inset
22449
22450
22451 \end_layout
22452
22453 \begin_layout Standard
22454 Read 
22455 \family typewriter
22456 man git
22457 \family default
22458  to understand the switches.
22459 \end_layout
22460
22461 \begin_layout Subsubsection
22462
22463 \family sans
22464 Check In Changes
22465 \end_layout
22466
22467 \begin_layout Standard
22468 When you are finished editing a file, you commit your changes.
22469  When you do this, you are asked for a description of the changes.
22470  After that changes are commited.
22471 \end_layout
22472
22473 \begin_layout Standard
22474 GIT command: 
22475 \family typewriter
22476 git commit -q -m"<description>" <file-name>
22477 \end_layout
22478
22479 \begin_layout Subsubsection
22480
22481 \family sans
22482 Revert To Repository Version
22483 \end_layout
22484
22485 \begin_layout Standard
22486 This will discard all changes made to the document since the last check
22487  in.
22488  You get a warning before changes are discarded.
22489 \end_layout
22490
22491 \begin_layout Standard
22492 GIT command: 
22493 \family typewriter
22494 git checkout -q 
22495 \begin_inset Quotes eld
22496 \end_inset
22497
22498 <file-name>
22499 \begin_inset Quotes erd
22500 \end_inset
22501
22502
22503 \end_layout
22504
22505 \begin_layout Subsubsection
22506
22507 \family sans
22508 Rename
22509 \end_layout
22510
22511 \begin_layout Standard
22512 This will rename the current document including the version history.
22513  It requires a clean document without any changes since the last checkin.
22514  You are asked for a file name and a description of the rename operation.
22515  After that the document is renamed, both locally and in the repository.
22516  If the parent directories of the new and old file names differ, all relative
22517  paths of included files are adjusted (like in 
22518 \family sans
22519 File\SpecialChar menuseparator
22520 Save As
22521 \family default
22522 \SpecialChar ldots
22523 ).
22524  Finally, the document is reloaded using the new name.
22525 \end_layout
22526
22527 \begin_layout Labeling
22528 \labelwidthstring 00.00.0000
22529 GIT
22530 \begin_inset space ~
22531 \end_inset
22532
22533 commands: 
22534 \begin_inset space ~
22535 \end_inset
22536
22537
22538 \begin_inset Newline newline
22539 \end_inset
22540
22541
22542 \begin_inset Flex Code
22543 status collapsed
22544
22545 \begin_layout Plain Layout
22546 git mv 
22547 \family typewriter
22548
22549 \begin_inset Quotes eld
22550 \end_inset
22551
22552 <file-name>
22553 \begin_inset Quotes erd
22554 \end_inset
22555
22556  
22557 \begin_inset Quotes eld
22558 \end_inset
22559
22560 <new-file-name>
22561 \begin_inset Quotes erd
22562 \end_inset
22563
22564
22565 \end_layout
22566
22567 \end_inset
22568
22569
22570 \begin_inset Newline newline
22571 \end_inset
22572
22573
22574 \begin_inset Flex Code
22575 status collapsed
22576
22577 \begin_layout Plain Layout
22578 git commit
22579 \end_layout
22580
22581 \end_inset
22582
22583
22584 \end_layout
22585
22586 \begin_layout Subsubsection
22587
22588 \family sans
22589 Show History
22590 \end_layout
22591
22592 \begin_layout Standard
22593 This shows the complete history of the GIT document.
22594  The output of 
22595 \family typewriter
22596 git log 
22597 \begin_inset Quotes eld
22598 \end_inset
22599
22600 <file-name>
22601 \begin_inset Quotes erd
22602 \end_inset
22603
22604
22605 \family default
22606  is shown in a browser.
22607 \end_layout
22608
22609 \begin_layout Subsubsection
22610 Version Info
22611 \end_layout
22612
22613 \begin_layout Standard
22614 \SpecialChar LyX
22615  supports GIT hash number of the last commit to the file, author name, date
22616  and time of last commit.
22617  All those are extracted from 
22618 \family typewriter
22619 git log -n 1 --pretty=format:%H%n%an%n%ai
22620 \family default
22621 .
22622  Tree version information is obtained via 
22623 \family typewriter
22624 git describe --abbrev --dirty --long
22625 \family default
22626 .
22627  See 
22628 \begin_inset CommandInset ref
22629 LatexCommand ref
22630 reference "subsec:VCS-Revision-Information"
22631
22632 \end_inset
22633
22634  for other details.
22635 \end_layout
22636
22637 \begin_layout Subsection
22638 Further tuning
22639 \end_layout
22640
22641 \begin_layout Standard
22642 With the recent addition of the vc-command function \SpecialChar LyX
22643  power users are allowed
22644  to create their own commands for revision control.
22645 \end_layout
22646
22647 \begin_layout Standard
22648 As an example you can see how two TortoiseSVN commands could be integrated
22649  directly:
22650 \end_layout
22651
22652 \begin_layout Description
22653 Commit: 
22654 \begin_inset Flex Code
22655 status collapsed
22656
22657 \begin_layout Plain Layout
22658 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22659 \end_layout
22660
22661 \end_inset
22662
22663
22664 \end_layout
22665
22666 \begin_layout Description
22667 Revert: 
22668 \begin_inset Flex Code
22669 status collapsed
22670
22671 \begin_layout Plain Layout
22672 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22673 \end_layout
22674
22675 \end_inset
22676
22677
22678 \end_layout
22679
22680 \begin_layout Subsection
22681 Version control and Document comparison
22682 \end_layout
22683
22684 \begin_layout Standard
22685 One of the typical uses of version control is to inspect the changes between
22686  revisions, usually by creating 
22687 \begin_inset Flex Code
22688 status collapsed
22689
22690 \begin_layout Plain Layout
22691 diff
22692 \end_layout
22693
22694 \end_inset
22695
22696  dumps.
22697  While this is useful for plain text files, it is much less useful in the
22698  case of \SpecialChar LyX
22699  files, which have more a complicated structure.
22700  Hence we provide binding to the Document comparison feature.
22701  There are two ways of calling this feature - either by direct call of 
22702 \begin_inset Flex Code
22703 status collapsed
22704
22705 \begin_layout Plain Layout
22706 VC_COMPARE
22707 \end_layout
22708
22709 \end_inset
22710
22711  \SpecialChar LyX
22712  function (for details see \SpecialChar LyX
22713  functions manual) or by icon/menu item 
22714 \begin_inset Flex Noun
22715 status collapsed
22716
22717 \begin_layout Plain Layout
22718 Compare with older revision...
22719 \end_layout
22720
22721 \end_inset
22722
22723 .
22724  One can either compare two chosen revisions of the document or he can simply
22725  compare the current version of edited text with older revisions (where
22726  '
22727 \begin_inset Flex Noun
22728 status collapsed
22729
22730 \begin_layout Plain Layout
22731 0
22732 \end_layout
22733
22734 \end_inset
22735
22736 ' revisions back means comparison of the edited file with last commited
22737  revision).
22738  
22739 \end_layout
22740
22741 \begin_layout Standard
22742 This feature is supported for SVN and RCS though due to the more complicated
22743  versioning scheme of RCS there is a constraint – when addressing the revisions
22744  in dialog, numbers always point to the last number in RCS revision number,
22745  i.e.
22746  '35' in '1.2.35'.
22747  We don't currently support GIT addressing of revisions, one can just compare
22748  edited document with its revision X steps backs, where X is addressed as
22749  HEAD~X.
22750 \end_layout
22751
22752 \begin_layout Section
22753 Literate Programming
22754 \end_layout
22755
22756 \begin_layout Standard
22757 Updated by 
22758 \noun on
22759 Kayvan Sylvan 
22760 \noun default
22761 (kayvan@sylvan.com)
22762 \noun on
22763
22764 \noun default
22765 original documentation written by 
22766 \noun on
22767 Edmar Wienskoski Jr.
22768
22769 \noun default
22770  (edmar-w-jr@technologist.com)
22771 \end_layout
22772
22773 \begin_layout Subsection
22774 Introduction
22775 \end_layout
22776
22777 \begin_layout Standard
22778 The main purpose of this documentation is to show you how to use \SpecialChar LyX
22779  for literate
22780  programming, where it is assumed that you are familiar with this programming
22781  technique, and know what 
22782 \begin_inset Quotes eld
22783 \end_inset
22784
22785 tangling
22786 \begin_inset Quotes erd
22787 \end_inset
22788
22789  and 
22790 \begin_inset Quotes eld
22791 \end_inset
22792
22793 weaving
22794 \begin_inset Quotes erd
22795 \end_inset
22796
22797  means.
22798  If that is not the case, please follow the web links provided in the following
22799  sections.
22800  There is a lot of good documentation out there covering old development
22801  history to the latest tools tips.
22802 \end_layout
22803
22804 \begin_layout Standard
22805 It is also assumed that you are familiar with \SpecialChar LyX
22806  itself to a point that you
22807  are comfortable changing your \SpecialChar LyX
22808  preferences, and X resources file.
22809  If that is not the case please refer to other \SpecialChar LyX
22810  documentation to cover your
22811  specific needs.
22812 \end_layout
22813
22814 \begin_layout Subsection
22815 Literate Programming
22816 \end_layout
22817
22818 \begin_layout Standard
22819 From the Literate Programming FAQ: 
22820 \end_layout
22821
22822 \begin_layout Quotation
22823 Literate programming is the combination of documentation and source together
22824  in a fashion suited for reading by human beings.
22825  In fact, literate programs should be enjoyable reading, even inviting!
22826  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
22827  and documentation in a single file.
22828  Literate programming tools then parse the file to produce either readable
22829  documentation or compilable source.
22830  The WEB style of literate programming was created by D.
22831 \begin_inset space \thinspace{}
22832 \end_inset
22833
22834 E.
22835  Knuth during the development of his \SpecialChar TeX
22836  typesetting software.
22837  
22838 \end_layout
22839
22840 \begin_layout Standard
22841 Another excerpt says:
22842 \end_layout
22843
22844 \begin_layout Quotation
22845
22846 \emph on
22847 How is literate programming different from verbose commenting?
22848 \end_layout
22849
22850 \begin_layout Quotation
22851 There are three distinguishing characteristics.
22852  In order of importance, they are: 
22853 \begin_inset Separator latexpar
22854 \end_inset
22855
22856
22857 \end_layout
22858
22859 \begin_deeper
22860 \begin_layout Itemize
22861 flexible order of elaboration 
22862 \end_layout
22863
22864 \begin_layout Itemize
22865 automatic support for browsing 
22866 \end_layout
22867
22868 \begin_layout Itemize
22869 typeset documentation, especially diagrams and mathematics 
22870 \end_layout
22871
22872 \end_deeper
22873 \begin_layout Standard
22874 Now that I sparked your curiosity, take a look in the references.
22875 \end_layout
22876
22877 \begin_layout Subsubsection
22878 References
22879 \end_layout
22880
22881 \begin_layout Standard
22882 The complete Literate Programming FAQ can be found at:
22883 \end_layout
22884
22885 \begin_layout Quote
22886 Literate Programming FAQ 
22887 \begin_inset Flex URL
22888 status collapsed
22889
22890 \begin_layout Plain Layout
22891
22892 http://www.literateprogramming.com/lpfaq.pdf
22893 \end_layout
22894
22895 \end_inset
22896
22897
22898 \end_layout
22899
22900 \begin_layout Standard
22901 The FAQ lists 23 (twenty three!) different literate programming tools.
22902  Where some are specialized or 
22903 \begin_inset Quotes eld
22904 \end_inset
22905
22906 tailored
22907 \begin_inset Quotes erd
22908 \end_inset
22909
22910  for particular programming languages, while other have general scope.
22911  I selected 
22912 \noun on
22913 Noweb
22914 \noun default
22915  for my own use for several reasons:
22916 \end_layout
22917
22918 \begin_layout Itemize
22919 It can generate the documentation either in \SpecialChar LaTeX
22920  or HTML.
22921 \end_layout
22922
22923 \begin_layout Itemize
22924 It has a open architecture, i.
22925 \begin_inset space \thinspace{}
22926 \end_inset
22927
22928 e.
22929 \begin_inset space \space{}
22930 \end_inset
22931
22932 it is easy to plug in new filters and to perform special processing that
22933  you may need.
22934  
22935 \end_layout
22936
22937 \begin_layout Itemize
22938 There is a good selection of filters available already (the HTML is one
22939  of them).
22940 \end_layout
22941
22942 \begin_layout Itemize
22943 It is free.
22944 \end_layout
22945
22946 \begin_layout Standard
22947 The Noweb web page can be found at: 
22948 \end_layout
22949
22950 \begin_layout Quote
22951 Noweb home page 
22952 \begin_inset Flex URL
22953 status collapsed
22954
22955 \begin_layout Plain Layout
22956
22957 http://www.cs.virginia.edu/~nr/noweb/
22958 \end_layout
22959
22960 \end_inset
22961
22962
22963 \end_layout
22964
22965 \begin_layout Standard
22966 Starting from there you can reach many other interesting links and even
22967  some literate program examples.
22968 \end_layout
22969
22970 \begin_layout Subsection
22971 \SpecialChar LyX
22972  and Literate Programming with Noweb
22973 \end_layout
22974
22975 \begin_layout Standard
22976 The \SpecialChar LyX
22977  support for Literate Programming is provided by using the generic \SpecialChar LyX
22978
22979  converters mechanism.
22980  This support is provided in a 
22981 \begin_inset Quotes eld
22982 \end_inset
22983
22984 Noweb independent
22985 \begin_inset Quotes erd
22986 \end_inset
22987
22988  way, i.
22989 \begin_inset space \thinspace{}
22990 \end_inset
22991
22992 e.
22993 \begin_inset space \space{}
22994 \end_inset
22995
22996 you will be able to use this new \SpecialChar LyX
22997  feature with some other literate programming
22998  tool of your choice by just changing your \SpecialChar LyX
22999  preferences.
23000 \end_layout
23001
23002 \begin_layout Subsubsection
23003 Generating documents and code (weaving and tangling)
23004 \end_layout
23005
23006 \begin_layout Paragraph
23007 Using the noweb module
23008 \end_layout
23009
23010 \begin_layout Standard
23011 If you have installed Noweb and \SpecialChar LyX
23012  successfully, whenever you open a new document,
23013  after you have chosen its document class, use the Document->Settings menu
23014  to add the 
23015 \begin_inset Quotes eld
23016 \end_inset
23017
23018 noweb
23019 \begin_inset Quotes erd
23020 \end_inset
23021
23022  module.
23023  If Noweb is correctly installed, when you click on the 
23024 \begin_inset Quotes eld
23025 \end_inset
23026
23027 Modules
23028 \begin_inset Quotes erd
23029 \end_inset
23030
23031  link, you will see the 
23032 \begin_inset Quotes eld
23033 \end_inset
23034
23035 noweb
23036 \begin_inset Quotes erd
23037 \end_inset
23038
23039  module in the available list and you can add it to your document.
23040 \end_layout
23041
23042 \begin_layout Paragraph
23043 Typing code in
23044 \end_layout
23045
23046 \begin_layout Standard
23047 \SpecialChar LyX
23048  enables you to write code with a layout named 
23049 \begin_inset Flex Noun
23050 status collapsed
23051
23052 \begin_layout Plain Layout
23053 Chunk
23054 \end_layout
23055
23056 \end_inset
23057
23058 .
23059  Noweb delimits chunks like this:
23060 \end_layout
23061
23062 \begin_layout LyX-Code
23063 <<My code>>=
23064 \end_layout
23065
23066 \begin_layout LyX-Code
23067   code
23068 \end_layout
23069
23070 \begin_layout LyX-Code
23071   more code
23072 \end_layout
23073
23074 \begin_layout LyX-Code
23075   even more code
23076 \end_layout
23077
23078 \begin_layout LyX-Code
23079   @
23080 \end_layout
23081
23082 \begin_layout Standard
23083 The problem is that whatever is written in between the << and the 
23084 \family typewriter
23085 @
23086 \family default
23087  must be taken literally, i.
23088 \begin_inset space \thinspace{}
23089 \end_inset
23090
23091 e.
23092 \begin_inset space \space{}
23093 \end_inset
23094
23095 \SpecialChar LyX
23096  should be prevented from making any special interpretation of what has
23097  been written.
23098  This is also handled by 
23099 \begin_inset Flex Noun
23100 status collapsed
23101
23102 \begin_layout Plain Layout
23103 Chunk
23104 \end_layout
23105
23106 \end_inset
23107
23108 , that works like a normal paragraph but has a free spacing capability.
23109 \end_layout
23110
23111 \begin_layout Standard
23112 As a special note, you can also use the 
23113 \begin_inset Quotes eld
23114 \end_inset
23115
23116 %def
23117 \begin_inset Quotes erd
23118 \end_inset
23119
23120  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23121 rence:
23122 \end_layout
23123
23124 \begin_layout LyX-Code
23125 <<My chunk>>=
23126 \end_layout
23127
23128 \begin_layout LyX-Code
23129 def some_function(args):
23130 \end_layout
23131
23132 \begin_layout LyX-Code
23133    "This is the doc string for this function."
23134 \end_layout
23135
23136 \begin_layout LyX-Code
23137    print "My args: ", args
23138 \end_layout
23139
23140 \begin_layout LyX-Code
23141 @ %def some_function
23142 \end_layout
23143
23144 \begin_layout Standard
23145 For an example of this usage and the resulting cross-reference output, look
23146  at the Literate python program in 
23147 \emph on
23148 LIBDIR/examples/listerrors.lyx
23149 \emph default
23150  which should make this all clear.
23151 \end_layout
23152
23153 \begin_layout Paragraph
23154 Generating the documentation
23155 \end_layout
23156
23157 \begin_layout Standard
23158 At this point you already have a new document file with a proper document
23159  class, and with some code and text on it.
23160  How do I print it? The answer is simple, you select 
23161 \family sans
23162 View\SpecialChar menuseparator
23163 DVI,
23164 \family default
23165  etc.
23166  Just like you would do for a plain document.
23167  No special procedure is required.
23168 \end_layout
23169
23170 \begin_layout Standard
23171 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23172 :
23173 \end_layout
23174
23175 \begin_layout Enumerate
23176 When the 
23177 \family sans
23178 Update\SpecialChar menuseparator
23179 DVI
23180 \family default
23181  menu option is chosen, a \SpecialChar LaTeX
23182  file is generated.
23183  
23184 \begin_inset Separator latexpar
23185 \end_inset
23186
23187
23188 \end_layout
23189
23190 \begin_deeper
23191 \begin_layout Standard
23192 If the document is of any literate class the generated file will be named
23193  with an extension name defined by the 
23194 \begin_inset Quotes eld
23195 \end_inset
23196
23197 literate
23198 \begin_inset Quotes erd
23199 \end_inset
23200
23201  format (defined in the Preferences panel), otherwise the file will have
23202  the usual 
23203 \family typewriter
23204 .tex
23205 \family default
23206  extension.
23207 \end_layout
23208
23209 \end_deeper
23210 \begin_layout Enumerate
23211 Note that the only difference so far is in the name of the file, no special
23212  processing is required by \SpecialChar LyX
23213 .
23214  Given that you formatted the code using the 
23215 \begin_inset Flex Noun
23216 status collapsed
23217
23218 \begin_layout Plain Layout
23219 Chunk
23220 \end_layout
23221
23222 \end_inset
23223
23224  layout that, by itself, takes care of the business.
23225 \end_layout
23226
23227 \begin_layout Enumerate
23228 If the document is of any literate class \SpecialChar LyX
23229  will then use the internal \SpecialChar LyX
23230  to
23231  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23232  converter
23233 \begin_inset Foot
23234 status collapsed
23235
23236 \begin_layout Plain Layout
23237 The converters are defined in the 
23238 \family sans
23239 Tools\SpecialChar menuseparator
23240 Preferences
23241 \family default
23242  panel, under the 
23243 \begin_inset Quotes eld
23244 \end_inset
23245
23246 Conversion
23247 \begin_inset Quotes erd
23248 \end_inset
23249
23250  tab.
23251  See section 
23252 \emph on
23253 Converters
23254 \emph default
23255  of the 
23256 \emph on
23257 Customization
23258 \emph default
23259  manual for general information about converters.
23260 \end_layout
23261
23262 \end_inset
23263
23264  to generate the \SpecialChar LaTeX
23265  file.
23266 \begin_inset Separator latexpar
23267 \end_inset
23268
23269
23270 \end_layout
23271
23272 \begin_deeper
23273 \begin_layout Standard
23274 Otherwise it will just skip this step.
23275 \end_layout
23276
23277 \end_deeper
23278 \begin_layout Enumerate
23279 Finally, \SpecialChar LaTeX
23280  is invoked and the regular post processing continues as in a plain
23281  document.
23282 \end_layout
23283
23284 \begin_layout Standard
23285 Independence from a particular 
23286 \begin_inset Quotes eld
23287 \end_inset
23288
23289 literate tool
23290 \begin_inset Quotes erd
23291 \end_inset
23292
23293  is easily achieved by changing the commands that are run by the various
23294  converters.
23295 \end_layout
23296
23297 \begin_layout Paragraph
23298 Generating the code
23299 \end_layout
23300
23301 \begin_layout Standard
23302 When the build menu option is chosen or the corresponding button in the
23303  toolbar is pressed, a \SpecialChar LaTeX
23304  file is generated just like step 1 above.
23305  Next, \SpecialChar LyX
23306  invokes the 
23307 \family typewriter
23308 Noweb->Program
23309 \family default
23310  converter.
23311  This converter needs to be defined by the user and is not installed by
23312  default, though the Program format is.
23313  This converter (like any other converter) will have two parts:
23314 \end_layout
23315
23316 \begin_layout Enumerate
23317 The converter program itself.
23318  This program performs the conversion from the one format to the other (in
23319  this case, from the Noweb format to the Program pseudo-format).
23320 \end_layout
23321
23322 \begin_layout Enumerate
23323 The error log parser.
23324  This is a program whose sole purpose is to rewrite error messages in a
23325  format that \SpecialChar LyX
23326  understands.
23327  This makes it possible for \SpecialChar LyX
23328  to place error boxes in the right places in
23329  the file buffer.
23330 \end_layout
23331
23332 \begin_layout Standard
23333 The first part, the 
23334 \begin_inset Quotes eld
23335 \end_inset
23336
23337 Converter
23338 \begin_inset Quotes erd
23339 \end_inset
23340
23341  setting, should be set to
23342 \begin_inset Newline newline
23343 \end_inset
23344
23345
23346 \begin_inset Quotes eld
23347 \end_inset
23348
23349
23350 \family typewriter
23351 build-script $$i
23352 \family default
23353  $$r
23354 \begin_inset Quotes erd
23355 \end_inset
23356
23357 .
23358 \begin_inset Newline newline
23359 \end_inset
23360
23361 This basically means that \SpecialChar LyX
23362  will call 
23363 \begin_inset Quotes eld
23364 \end_inset
23365
23366 build-script
23367 \begin_inset Quotes erd
23368 \end_inset
23369
23370  (a program or script) with the name of the Noweb file (normally a file
23371  in the \SpecialChar LyX
23372  temp directory) and the directory path of the original \SpecialChar LyX
23373  file.
23374  
23375 \end_layout
23376
23377 \begin_layout Standard
23378 This is an implementation of 
23379 \begin_inset Quotes eld
23380 \end_inset
23381
23382 build-script
23383 \begin_inset Quotes erd
23384 \end_inset
23385
23386  that you can place in a directory on your path:
23387 \end_layout
23388
23389 \begin_layout Standard
23390 \begin_inset VSpace defskip
23391 \end_inset
23392
23393
23394 \end_layout
23395
23396 \begin_layout Standard
23397 \begin_inset Newpage pagebreak
23398 \end_inset
23399
23400
23401 \end_layout
23402
23403 \begin_layout Standard
23404
23405 \family sans
23406 #!/bin/sh
23407 \end_layout
23408
23409 \begin_layout Standard
23410
23411 \family sans
23412 #
23413 \end_layout
23414
23415 \begin_layout Standard
23416
23417 \family sans
23418 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23419 \end_layout
23420
23421 \begin_layout Standard
23422 \begin_inset VSpace defskip
23423 \end_inset
23424
23425
23426 \end_layout
23427
23428 \begin_layout Standard
23429 The next part of the converter setting is the 
23430 \begin_inset Quotes eld
23431 \end_inset
23432
23433 Flags
23434 \begin_inset Quotes erd
23435 \end_inset
23436
23437  which is to be set to
23438 \begin_inset Newline newline
23439 \end_inset
23440
23441
23442 \begin_inset Quotes eld
23443 \end_inset
23444
23445
23446 \family typewriter
23447 parselog=$$s/scripts/listerrors
23448 \family default
23449
23450 \begin_inset Quotes erd
23451 \end_inset
23452
23453 .
23454 \begin_inset Newline newline
23455 \end_inset
23456
23457 This will run any errors that are generated by the 
23458 \begin_inset Quotes eld
23459 \end_inset
23460
23461 build-script
23462 \begin_inset Quotes erd
23463 \end_inset
23464
23465  process through the 
23466 \begin_inset Quotes eld
23467 \end_inset
23468
23469 listerrors
23470 \begin_inset Quotes erd
23471 \end_inset
23472
23473  program.
23474 \end_layout
23475
23476 \begin_layout Standard
23477 The build will normally take place in \SpecialChar LyX
23478 's temporary directory, so the files
23479  produced by the conversion will be in that directory.
23480  \SpecialChar LyX
23481  will copy out what it regards as the `main' file, but the 
23482 \family typewriter
23483 Noweb->Program
23484 \family default
23485  conversion may produce several files, and so most of these would then be
23486  deleted when \SpecialChar LyX
23487  was closed.
23488  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23489  the build-script chunk can place the generated files in that location.
23490 \end_layout
23491
23492 \begin_layout Paragraph
23493 Build instructions in the document
23494 \end_layout
23495
23496 \begin_layout Standard
23497 The last piece of the integration between \SpecialChar LyX
23498  and noweb is the 
23499 \begin_inset Quotes eld
23500 \end_inset
23501
23502 build-script
23503 \begin_inset Quotes erd
23504 \end_inset
23505
23506  chunk.
23507  Generally, the instructions for building your program should be embedded
23508  in a chunk of its own.
23509  The noweb-specific 
23510 \begin_inset Quotes eld
23511 \end_inset
23512
23513 build-script
23514 \begin_inset Quotes erd
23515 \end_inset
23516
23517  above uses the notangle command to look for this chunk (called 
23518 \begin_inset Quotes eld
23519 \end_inset
23520
23521 build-script
23522 \begin_inset Quotes erd
23523 \end_inset
23524
23525 ) and runs its contents through 
23526 \begin_inset Quotes eld
23527 \end_inset
23528
23529 sh
23530 \begin_inset Quotes erd
23531 \end_inset
23532
23533 .
23534 \end_layout
23535
23536 \begin_layout Standard
23537 Typically, such a chunk would look something like this:
23538 \end_layout
23539
23540 \begin_layout LyX-Code
23541 <<build-script>>=
23542 \end_layout
23543
23544 \begin_layout LyX-Code
23545 #!/bin/sh
23546 \begin_inset Newline newline
23547 \end_inset
23548
23549 if [ -z "${NOWEB_SOURCE}" ]
23550 \begin_inset Newline newline
23551 \end_inset
23552
23553 then
23554 \end_layout
23555
23556 \begin_layout LyX-Code
23557 NOWEB_SOURCE=myfile.nw
23558 \begin_inset Newline newline
23559 \end_inset
23560
23561 fi
23562 \begin_inset Newline newline
23563 \end_inset
23564
23565 [...
23566  code to extract files ...
23567  use NOWEB_OUTPUT_DIR here ...]
23568 \begin_inset Newline newline
23569 \end_inset
23570
23571 [...
23572  code to compile files ...]
23573 \begin_inset Newline newline
23574 \end_inset
23575
23576 @
23577 \end_layout
23578
23579 \begin_layout Standard
23580 Look in 
23581 \emph on
23582 LIBDIR/examples/listerrors.lyx
23583 \emph default
23584  or in 
23585 \emph on
23586 LIBDIR/examples/Literate.lyx
23587 \emph default
23588  which implement two versions of the 
23589 \begin_inset Quotes eld
23590 \end_inset
23591
23592 listerrors
23593 \begin_inset Quotes erd
23594 \end_inset
23595
23596  program for some illustrations of how all of these pieces go together or
23597  in 
23598 \emph on
23599 LIBDIR/examples/noweb2lyx.lyx.
23600
23601 \emph default
23602  Interestingly, these three files show off the language-indepence of the
23603  \SpecialChar LyX
23604  literate programming support since they are written in Python, C and Perl
23605  respectively.
23606 \end_layout
23607
23608 \begin_layout Subsubsection
23609 Configuring \SpecialChar LyX
23610
23611 \end_layout
23612
23613 \begin_layout Standard
23614 All the Literate Programming support is configured by the 
23615 \family sans
23616 Tools\SpecialChar menuseparator
23617 Preferences
23618 \family default
23619  panel in the 
23620 \begin_inset Quotes eld
23621 \end_inset
23622
23623 File Handling
23624 \begin_inset Quotes erd
23625 \end_inset
23626
23627  tab.
23628  The important parts are:
23629 \end_layout
23630
23631 \begin_layout Description
23632 the
23633 \begin_inset space ~
23634 \end_inset
23635
23636
23637 \begin_inset Quotes eld
23638 \end_inset
23639
23640 NoWeb
23641 \begin_inset Quotes erd
23642 \end_inset
23643
23644
23645 \begin_inset space ~
23646 \end_inset
23647
23648 format Set up via the File Formats tab, this is where the Noweb-specific
23649  pieces are set up.
23650  The 
23651 \family sans
23652 GUI Name
23653 \family default
23654  is set to 
23655 \family typewriter
23656 NoWeb
23657 \family default
23658 , the file extension is set to 
23659 \family typewriter
23660 .nw
23661 \family default
23662 .
23663  This tells \SpecialChar LyX
23664  to create a file with a 
23665 \family typewriter
23666 .nw
23667 \family default
23668  extension in the first step of the conversion process.
23669 \end_layout
23670
23671 \begin_layout Description
23672 the
23673 \begin_inset space ~
23674 \end_inset
23675
23676
23677 \family sans
23678 Program
23679 \family default
23680
23681 \begin_inset space ~
23682 \end_inset
23683
23684 format This is an empty format whose sole purpose is to be the endpoint
23685  of a conversion (which then allows us to set up a converter for it).
23686 \end_layout
23687
23688 \begin_layout Description
23689
23690 \family sans
23691 NoWeb
23692 \family default
23693 ->
23694 \family sans
23695 \SpecialChar LaTeX
23696
23697 \family default
23698  This converter performs the 
23699 \begin_inset Quotes eld
23700 \end_inset
23701
23702 weaving
23703 \begin_inset Quotes erd
23704 \end_inset
23705
23706  of the literate document.
23707  For Noweb, it is set to 
23708 \begin_inset Quotes eld
23709 \end_inset
23710
23711
23712 \family typewriter
23713 noweave -delay -index $$i > $$o
23714 \family default
23715
23716 \begin_inset Quotes erd
23717 \end_inset
23718
23719
23720 \end_layout
23721
23722 \begin_layout Description
23723
23724 \family sans
23725 NoWeb
23726 \family default
23727 ->
23728 \family sans
23729 Program
23730 \family default
23731  This performs the 
23732 \begin_inset Quotes eld
23733 \end_inset
23734
23735 tangling step
23736 \begin_inset Quotes erd
23737 \end_inset
23738
23739 .
23740  As stated above, the Converter is set to 
23741 \begin_inset Quotes eld
23742 \end_inset
23743
23744
23745 \family typewriter
23746 build-script $$i
23747 \family default
23748  $$r
23749 \begin_inset Quotes erd
23750 \end_inset
23751
23752 , with Flags set to
23753 \begin_inset Newline newline
23754 \end_inset
23755
23756
23757 \begin_inset Quotes eld
23758 \end_inset
23759
23760
23761 \family typewriter
23762 parselog=$$s/scripts/listerrors
23763 \family default
23764
23765 \begin_inset Quotes erd
23766 \end_inset
23767
23768 .
23769 \end_layout
23770
23771 \begin_layout Subsubsection
23772 Debug extensions
23773 \end_layout
23774
23775 \begin_layout Standard
23776 There is also a new function implemented in the \SpecialChar LyX
23777  server, the 
23778 \begin_inset Quotes eld
23779 \end_inset
23780
23781 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
23782  
23783 \end_layout
23784
23785 \begin_layout Standard
23786 When debugging code with ddd/gdb, it is possible to invoke a text editor
23787  at the current execution position with a single key stroke.
23788  The default ddd configuration for that is shift-ctrl-V.
23789  It happens that you can define the editor command line invocation in ddd
23790  by accessing the 
23791 \family sans
23792 Edit\SpecialChar menuseparator
23793 Preferences\SpecialChar menuseparator
23794 Helpers
23795 \family default
23796  dialog and changing the "Edit Sources" entry.
23797 \end_layout
23798
23799 \begin_layout Standard
23800 I take advantage of the newly created \SpecialChar LyX
23801  server function and this ddd feature,
23802  and set 
23803 \begin_inset Quotes eld
23804 \end_inset
23805
23806 Edit Sources
23807 \begin_inset Quotes erd
23808 \end_inset
23809
23810  to:
23811 \end_layout
23812
23813 \begin_layout Standard
23814 \begin_inset VSpace defskip
23815 \end_inset
23816
23817
23818 \end_layout
23819
23820 \begin_layout Standard
23821
23822 \family sans
23823 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
23824 \end_layout
23825
23826 \begin_layout Standard
23827 \begin_inset VSpace defskip
23828 \end_inset
23829
23830
23831 \end_layout
23832
23833 \begin_layout Standard
23834 With this, whenever you are using ddd and find a point in the program that
23835  you want to edit, you just press shift-ctrl-V (in the ddd window), and
23836  ddd will forward this information to \SpecialChar LyX
23837  through the \SpecialChar LyX
23838  server and then the
23839  \SpecialChar LyX
23840  window will show the same file with the cursor at the same position ddd
23841  was pointing to.
23842  No more guessing or long scrolling to locate a point in the program back
23843  from debugging !
23844 \end_layout
23845
23846 \begin_layout Standard
23847 Note however that you must enable the \SpecialChar LyX
23848  server to get this feature working
23849  (it is disabled by default).
23850  You can enable it in 
23851 \family sans
23852 Preferences
23853 \family default
23854  (tabs 
23855 \family sans
23856 Inputs
23857 \family default
23858
23859 \family sans
23860 Paths
23861 \family default
23862 ) by entering in the 
23863 \family sans
23864 \SpecialChar LyX
23865 server pipe
23866 \family default
23867  a path like 
23868 \begin_inset Quotes eld
23869 \end_inset
23870
23871
23872 \family typewriter
23873 /home/<your-home-directory>/.lyx/lyxpipe
23874 \family default
23875
23876 \begin_inset Quotes erd
23877 \end_inset
23878
23879
23880 \end_layout
23881
23882 \begin_layout Standard
23883 Read the \SpecialChar LyX
23884  server documentation in the 
23885 \emph on
23886 Customization Manual
23887 \emph default
23888  for further information.
23889 \end_layout
23890
23891 \begin_layout Subsubsection
23892 Toolbar extensions
23893 \end_layout
23894
23895 \begin_layout Standard
23896 There are six new buttons that can be added to your \SpecialChar LyX
23897  toolbar.
23898  Five of these buttons are short cuts to layout styles: 
23899 \family sans
23900 Standard
23901 \family default
23902
23903 \family sans
23904 Section
23905 \family default
23906
23907 \family sans
23908 \SpecialChar LaTeX
23909
23910 \family default
23911
23912 \family sans
23913 \SpecialChar LyX
23914 -Code
23915 \family default
23916 , and 
23917 \family sans
23918 Chunk
23919 \family default
23920 .
23921  The last one is a short cut to the 
23922 \begin_inset Quotes eld
23923 \end_inset
23924
23925 Build Program
23926 \begin_inset Quotes erd
23927 \end_inset
23928
23929  File menu entry.
23930  
23931 \end_layout
23932
23933 \begin_layout Standard
23934 \SpecialChar LyX
23935  has a range of buttons that are available for tool bar customization.
23936  In my toolbar I like to combine the six short cuts above with two more:
23937  One for 
23938 \family sans
23939 Document
23940 \family default
23941 \SpecialChar menuseparator
23942
23943 \family sans
23944 Update
23945 \family default
23946 \SpecialChar menuseparator
23947
23948 \family sans
23949 DVI
23950 \family default
23951  and the other for 
23952 \family sans
23953 Document\SpecialChar menuseparator
23954 View\SpecialChar menuseparator
23955 DVI
23956 \family default
23957  File menu entries.
23958  Here is how it looks like:
23959 \end_layout
23960
23961 \begin_layout LyX-Code
23962 Toolbar
23963 \end_layout
23964
23965 \begin_layout LyX-Code
23966   Layouts
23967 \end_layout
23968
23969 \begin_layout LyX-Code
23970   Icon "layout Standard"
23971 \end_layout
23972
23973 \begin_layout LyX-Code
23974   Icon "layout Section"
23975 \end_layout
23976
23977 \begin_layout LyX-Code
23978   Icon "layout \SpecialChar LaTeX
23979 "
23980 \end_layout
23981
23982 \begin_layout LyX-Code
23983   Icon "layout \SpecialChar LyX
23984 -Code"
23985 \end_layout
23986
23987 \begin_layout LyX-Code
23988   Icon "layout Chunk"
23989 \end_layout
23990
23991 \begin_layout LyX-Code
23992   Separator
23993 \end_layout
23994
23995 \begin_layout LyX-Code
23996   Icon "buffer-view"
23997 \end_layout
23998
23999 \begin_layout LyX-Code
24000   Icon "buffer-typeset"
24001 \end_layout
24002
24003 \begin_layout LyX-Code
24004   Icon "build-program"
24005 \end_layout
24006
24007 \begin_layout LyX-Code
24008   Separator
24009 \end_layout
24010
24011 \begin_layout LyX-Code
24012 .
24013 \end_layout
24014
24015 \begin_layout LyX-Code
24016 .
24017 \end_layout
24018
24019 \begin_layout LyX-Code
24020 .
24021 \end_layout
24022
24023 \begin_layout LyX-Code
24024 End
24025 \end_layout
24026
24027 \begin_layout Subsubsection
24028 Colors customization
24029 \end_layout
24030
24031 \begin_layout Standard
24032 There are a number of colors in \SpecialChar LyX
24033  that can be customized in 
24034 \family sans
24035 Preferences
24036 \family default
24037 .
24038  One of the things that bothers people is the \SpecialChar LaTeX
24039  font color.
24040  The default color is red, since the chunks uses \SpecialChar LaTeX
24041  font, and there is a lot
24042  of chunks in literate documents, you may get tired of seeing everything
24043  in red.
24044  You can change it by going to the tabs 
24045 \family sans
24046 Look&Feel
24047 \family default
24048
24049 \family sans
24050 Colors.
24051 \end_layout
24052
24053 \begin_layout Standard
24054 The next thing is the visible presence of the newline character in the screen.
24055  You can choose the color of this particular character and make it blend
24056  in the background.
24057  I recommend you choosing a color that is close to the background but not
24058  equal, that way you still can see it is there, but it is not bothering
24059  you anymore.
24060 \end_layout
24061
24062 \begin_layout Subsection
24063 \SpecialChar LyX
24064  and knitr/Sweave
24065 \end_layout
24066
24067 \begin_layout Standard
24068 Support for 
24069 \family sans
24070 knitr
24071 \family default
24072  and 
24073 \family sans
24074 Sweave
24075 \family default
24076  is documented in the 
24077 \emph on
24078 knitr.lyx
24079 \emph default
24080  example file and in the Sweave manual (menu 
24081 \family sans
24082 Help\SpecialChar menuseparator
24083 Specific Manuals
24084 \family default
24085 ).
24086 \end_layout
24087
24088 \begin_layout Chapter
24089 Special features
24090 \end_layout
24091
24092 \begin_layout Standard
24093 You can do everything with \SpecialChar LyX
24094  that you can do with \SpecialChar LaTeX
24095 .
24096  However, \SpecialChar LyX
24097  cannot support every \SpecialChar LaTeX
24098  feature directly.
24099  But you can always use \SpecialChar TeX
24100  Code.
24101  This chapter shows you some more special things you might want to use.
24102  For other special things you can do with figures, tables, floats, boxes
24103  and notes, have a look at the 
24104 \emph on
24105 Embedded
24106 \begin_inset space ~
24107 \end_inset
24108
24109 Objects
24110 \emph default
24111  manual.
24112 \end_layout
24113
24114 \begin_layout Section
24115 Multiple Text Columns
24116 \end_layout
24117
24118 \begin_layout Standard
24119 This feature is independent of the option 
24120 \family sans
24121 Two-column document
24122 \family default
24123  in the document settings under 
24124 \family sans
24125 Text Layout
24126 \family default
24127 .
24128  If you want to have 2
24129 \begin_inset space ~
24130 \end_inset
24131
24132 columns for the whole document, it is recommended to use the 
24133 \family sans
24134 Two-column document
24135 \family default
24136  option.
24137  For all other cases use this feature.
24138 \end_layout
24139
24140 \begin_layout Standard
24141 To use multiple text columns in your document, you have to load the module
24142  
24143 \family sans
24144 Multiple Columns
24145 \family default
24146  (menu 
24147 \family sans
24148 Document\SpecialChar menuseparator
24149 Settings\SpecialChar menuseparator
24150 Modules
24151 \family default
24152 ) and must have the \SpecialChar LaTeX
24153 -package 
24154 \series bold
24155 multicol
24156 \series default
24157  installed.
24158 \end_layout
24159
24160 \begin_layout Standard
24161 Footnotes within multiple columns will be placed at the bottom of the page
24162  and not under each column.
24163  Within the different columns you can use everything, with the limitation
24164  that for floats you need to use the float option 
24165 \family sans
24166 Span columns
24167 \family default
24168 .
24169 \end_layout
24170
24171 \begin_layout Subsection
24172 Basics
24173 \end_layout
24174
24175 \begin_layout Standard
24176 If you want to have 2
24177 \begin_inset space ~
24178 \end_inset
24179
24180 columns in your text, insert a multicolumn inset via the menu 
24181 \family sans
24182 Insert\SpecialChar menuseparator
24183 Custom
24184 \begin_inset space ~
24185 \end_inset
24186
24187 Insets\SpecialChar menuseparator
24188 Multiple
24189 \begin_inset space ~
24190 \end_inset
24191
24192 Columns
24193 \family default
24194  where the columns should start.
24195  Write all text that should be printed in 2
24196 \begin_inset space ~
24197 \end_inset
24198
24199 columns into this inset.
24200 \end_layout
24201
24202 \begin_layout Standard
24203 Here is an example:
24204 \end_layout
24205
24206 \begin_layout Standard
24207 \noindent
24208 \begin_inset Flex Multiple Columns
24209 status open
24210
24211 \begin_layout Plain Layout
24212 \noindent
24213
24214 \series bold
24215 \size small
24216 The Adventure of the Empty House
24217 \series default
24218
24219 \begin_inset Newline newline
24220 \end_inset
24221
24222 by Sir Arthur Conan Doyle
24223 \end_layout
24224
24225 \begin_layout Plain Layout
24226
24227 \size small
24228 It was in the spring of the year 1894 that all London was interested, and
24229  the fashionable world dismayed, by the murder of the Honourable Ronald
24230  Adair under most unusual and inexplicable circumstances.
24231  The public has already learned those particulars of the crime which came
24232  out in the police investigation, but a good deal was suppressed upon that
24233  occasion, since the case for the prosecution was so overwhelmingly strong
24234  that it was not necessary to bring forward all the facts.
24235  Only now, at the end of nearly ten years, am I allowed to supply those
24236  missing links which make up the whole of that remarkable chain.
24237  The crime was of interest in itself, but that interest was as nothing to
24238  me compared to the inconceivable sequel, which afforded me the greatest
24239  shock and surprise of any event in my adventurous life.
24240  Even now, after this long interval, I find myself thrilling as I think
24241  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24242 ty which utterly submerged my mind.
24243  Let me say to that public, which has shown some interest in those glimpses
24244  which I have occasionally given them of the thoughts and actions of a very
24245  remarkable man, that they are not to blame me if I have not shared my knowledge
24246  with them, for I should have considered it my first duty to do so, had
24247  I not been barred by a positive prohibition from his own lips, which was
24248  only withdrawn upon the third of last month.
24249 \end_layout
24250
24251 \end_inset
24252
24253
24254 \end_layout
24255
24256 \begin_layout Standard
24257 To get 3 or more columns, set the cursor into the multicolumn inset and
24258  use the menu 
24259 \family sans
24260 Insert\SpecialChar menuseparator
24261 Number
24262 \begin_inset space ~
24263 \end_inset
24264
24265 of
24266 \begin_inset space ~
24267 \end_inset
24268
24269 Columns
24270 \family default
24271 .
24272  The number of the desired columns is written into that inset (for 3
24273 \begin_inset space ~
24274 \end_inset
24275
24276 columns write 
24277 \begin_inset Quotes eld
24278 \end_inset
24279
24280 3
24281 \begin_inset Quotes erd
24282 \end_inset
24283
24284 ).
24285 \begin_inset Newline newline
24286 \end_inset
24287
24288 Here is an example with 3
24289 \begin_inset space ~
24290 \end_inset
24291
24292 columns:
24293 \end_layout
24294
24295 \begin_layout Standard
24296 \begin_inset Flex Multiple Columns
24297 status open
24298
24299 \begin_layout Plain Layout
24300
24301 \size footnotesize
24302 \begin_inset Argument 1
24303 status open
24304
24305 \begin_layout Plain Layout
24306 3
24307 \end_layout
24308
24309 \end_inset
24310
24311 It can be imagined that my close intimacy with Sherlock Holmes had interested
24312  me deeply in crime, and that after his disappearance I never failed to
24313  read with care the various problems which came before the public.
24314  And I even attempted, more than once, for my own private satisfaction,
24315  to employ his methods in their solution, though with indifferent success.
24316  There was none, however, which appealed to me like this tragedy of Ronald
24317  Adair.
24318  As I read the evidence at the inquest, which led up to a verdict of willful
24319  murder against some person or persons unknown, I realized more clearly
24320  than I had ever done the loss which the community had sustained by the
24321  death of Sherlock Holmes.
24322  There were points about this strange business which would, I was sure,
24323  have specially appealed to him, and the efforts of the police would have
24324  been supplemented, or more probably anticipated, by the trained observation
24325  and the alert mind of the first criminal agent in Europe.
24326  All day, as I drove upon my round, I turned over the case in my mind and
24327  found no explanation which appeared to me to be adequate.
24328  At the risk of telling a twice-told tale, I will recapitulate the facts
24329  as they were known to the public at the conclusion of the inquest.
24330 \end_layout
24331
24332 \end_inset
24333
24334
24335 \end_layout
24336
24337 \begin_layout Standard
24338 You can have up to 10
24339 \begin_inset space ~
24340 \end_inset
24341
24342 columns if you want to, but that might not be very pleasant for the readers
24343  of your document.
24344 \end_layout
24345
24346 \begin_layout Standard
24347 \begin_inset Newpage newpage
24348 \end_inset
24349
24350
24351 \end_layout
24352
24353 \begin_layout Subsection
24354 Columns inside Columns
24355 \end_layout
24356
24357 \begin_layout Standard
24358 You can also have columns inside columns:
24359 \end_layout
24360
24361 \begin_layout Standard
24362 \begin_inset Flex Multiple Columns
24363 status open
24364
24365 \begin_layout Plain Layout
24366
24367 \size footnotesize
24368 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24369  at that time governor of one of the Australian colonies.
24370  Adair's mother had returned from Australia to undergo the operation for
24371  cataract, and she, her son Ronald, and her daughter Hilda were living together
24372  at 427 Park Lane.
24373 \end_layout
24374
24375 \begin_layout Plain Layout
24376 \begin_inset Flex Multiple Columns
24377 status open
24378
24379 \begin_layout Plain Layout
24380
24381 \size footnotesize
24382 The youth moved in the best society–had, so far as was known, no enemies
24383  and no particular vices.
24384  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24385  had been broken off by mutual consent some months before, and there was
24386  no sign that it had left any very profound feeling behind it.
24387  For the rest {sic} the man's life moved in a narrow and conventional circle,
24388  for his habits were quiet and his nature unemotional.
24389  Yet it was upon this easy-going young aristocrat that death came, in most
24390  strange and unexpected form, between the hours of ten and eleven-twenty
24391  on the night of March 30, 1894.
24392 \end_layout
24393
24394 \end_inset
24395
24396
24397 \end_layout
24398
24399 \begin_layout Plain Layout
24400
24401 \size footnotesize
24402 Ronald Adair was fond of cards–playing continually, but never for such stakes
24403  as would hurt him.
24404  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24405  It was shown that, after dinner on the day of his death, he had played
24406  a rubber of whist at the latter club.
24407  He had also played there in the afternoon.
24408
24409 \size default
24410  
24411 \size footnotesize
24412 The evidence of those who had played with him– Mr.
24413  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24414  and that there was a fairly equal fall of the cards.
24415  Adair might have lost five pounds, but not more.
24416  His fortune was a considerable one, and such a loss could not in any way
24417  affect him.
24418  He had played nearly every day at one club or other, but he was a cautious
24419  player, and usually rose a winner.
24420  It came out in evidence that, in partnership with Colonel Moran, he had
24421  actually won as much as four hundred and twenty pounds in a sitting, some
24422  weeks before, from Godfrey Milner and Lord Balmoral.
24423  So much for his recent history as it came out at the inquest.
24424 \end_layout
24425
24426 \end_inset
24427
24428
24429 \end_layout
24430
24431 \begin_layout Subsection
24432 Advanced Examples
24433 \end_layout
24434
24435 \begin_layout Standard
24436 The examples in this section show some more special features of multiple
24437  columns.
24438 \end_layout
24439
24440 \begin_layout Standard
24441 For more features of multiple columns, have a look at the documentation
24442  of the \SpecialChar LaTeX
24443 -package 
24444 \series bold
24445 multicol
24446 \series default
24447
24448 \begin_inset CommandInset citation
24449 LatexCommand cite
24450 key "multicol"
24451
24452 \end_inset
24453
24454 .
24455 \end_layout
24456
24457 \begin_layout Subsubsection
24458 Preface
24459 \end_layout
24460
24461 \begin_layout Standard
24462 To add a preface text for multiple columns, set the cursor into the multicolumn
24463  inset and use the menu 
24464 \family sans
24465 Insert\SpecialChar menuseparator
24466 Preface
24467 \family default
24468 .
24469  Write your preface text into that inset.
24470 \begin_inset Newline newline
24471 \end_inset
24472
24473 This is an example with some preface text:
24474 \end_layout
24475
24476 \begin_layout Standard
24477 \begin_inset VSpace bigskip
24478 \end_inset
24479
24480
24481 \end_layout
24482
24483 \begin_layout Standard
24484 \begin_inset Flex Multiple Columns
24485 status open
24486
24487 \begin_layout Plain Layout
24488 \begin_inset Argument 2
24489 status open
24490
24491 \begin_layout Plain Layout
24492 And the story continues and continues and continues and continues\SpecialChar ldots
24493
24494 \end_layout
24495
24496 \end_inset
24497
24498
24499 \size small
24500 On the evening of the crime, he returned from the club exactly at ten.
24501  His mother and sister were out spending the evening with a relation.
24502  The servant deposed that she heard him enter the front room on the second
24503  floor, generally used as his sitting-room.
24504  She had lit a fire there, and as it smoked she had opened the window.
24505  No sound was heard from the room until eleven-twenty, the hour of the return
24506  of Lady Maynooth and her daughter.
24507  Desiring to say good-night, she attempted to enter her son's room.
24508  The door was locked on the inside, and no answer could be got to their
24509  cries and knocking.
24510  Help was obtained, and the door forced.
24511  The unfortunate young man was found lying near the table.
24512  His head had been horribly mutilated by an expanding revolver bullet, but
24513  no weapon of any sort was to be found in the room.
24514 \end_layout
24515
24516 \end_inset
24517
24518
24519 \end_layout
24520
24521 \begin_layout Standard
24522 You can also use a section heading as the preface if you use a section command
24523  as \SpecialChar TeX
24524  Code.
24525  For example the command
24526 \end_layout
24527
24528 \begin_layout Standard
24529
24530 \series bold
24531
24532 \backslash
24533 subsection{subsection title}
24534 \end_layout
24535
24536 \begin_layout Standard
24537 creates a subsection.
24538  In this example the preface is a subsubsection:
24539 \end_layout
24540
24541 \begin_layout Standard
24542 \begin_inset Flex Multiple Columns
24543 status open
24544
24545 \begin_layout Plain Layout
24546 \begin_inset Argument 2
24547 status open
24548
24549 \begin_layout Plain Layout
24550 \begin_inset ERT
24551 status collapsed
24552
24553 \begin_layout Plain Layout
24554
24555
24556 \backslash
24557 subsubsection{
24558 \end_layout
24559
24560 \end_inset
24561
24562 This is a subsubsection heading as a preface
24563 \begin_inset ERT
24564 status collapsed
24565
24566 \begin_layout Plain Layout
24567
24568 }
24569 \end_layout
24570
24571 \end_inset
24572
24573
24574 \end_layout
24575
24576 \end_inset
24577
24578
24579 \size small
24580 A minute examination of the circumstances served only to make the case more
24581  complex.
24582  In the first place, no reason could be given why the young man should have
24583  fastened the door upon the inside.
24584  There was the possibility that the murderer had done this, and had afterwards
24585  escaped by the window.
24586  The drop was at least twenty feet, however, and a bed of crocuses in full
24587  bloom lay beneath.
24588  Neither the flowers nor the earth showed any sign of having been disturbed,
24589  nor were there any marks upon the narrow strip of grass which separated
24590  the house from the road.
24591  Apparently, therefore, it was the young man himself who had fastened the
24592  door.
24593  But how did he come by his death? No one could have climbed up to the window
24594  without leaving traces.
24595  Suppose a man had fired through the window, he would indeed be a remarkable
24596  shot who could with a revolver inflict so deadly a wound.
24597  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24598  a hundred yards of the house.
24599  No one had heard a shot.
24600 \end_layout
24601
24602 \end_inset
24603
24604
24605 \end_layout
24606
24607 \begin_layout Standard
24608 If there is less vertical space than 6
24609 \begin_inset space ~
24610 \end_inset
24611
24612 text lines is left on the page at the beginning of the multiple columns,
24613  a page break will be inserted before the multiple columns.
24614  Depending on the number of lines of the preface text, you might want to
24615  change this space.
24616  This is done by setting the cursor into the mulitcolumn inset behind the
24617  preface (if there is any) and using the menu 
24618 \family sans
24619 Insert\SpecialChar menuseparator
24620 Space
24621 \begin_inset space ~
24622 \end_inset
24623
24624 Before
24625 \begin_inset space ~
24626 \end_inset
24627
24628 Page
24629 \begin_inset space ~
24630 \end_inset
24631
24632 Break
24633 \family default
24634 .
24635  Insert into that inset the amount of space like e.
24636 \begin_inset space \thinspace{}
24637 \end_inset
24638
24639 g.
24640 \begin_inset space \space{}
24641 \end_inset
24642
24643
24644 \begin_inset Quotes eld
24645 \end_inset
24646
24647 5cm
24648 \begin_inset Quotes erd
24649 \end_inset
24650
24651 .
24652 \begin_inset Newline newline
24653 \end_inset
24654
24655 In this example the space is set to 7
24656 \begin_inset space ~
24657 \end_inset
24658
24659 text lines by using 
24660 \begin_inset Quotes eld
24661 \end_inset
24662
24663 7
24664 \backslash
24665 baselineskip
24666 \begin_inset Quotes erd
24667 \end_inset
24668
24669  (where the command 
24670 \series bold
24671
24672 \backslash
24673 baselineskip
24674 \series default
24675  needs to be inserted as \SpecialChar TeX
24676  code):
24677 \end_layout
24678
24679 \begin_layout Standard
24680 \begin_inset Flex Multiple Columns
24681 status open
24682
24683 \begin_layout Plain Layout
24684 \begin_inset Argument 3
24685 status open
24686
24687 \begin_layout Plain Layout
24688 7
24689 \begin_inset ERT
24690 status collapsed
24691
24692 \begin_layout Plain Layout
24693
24694
24695 \backslash
24696 baselineskip
24697 \end_layout
24698
24699 \end_inset
24700
24701
24702 \end_layout
24703
24704 \end_inset
24705
24706
24707 \size small
24708 On the evening of the crime, he returned from the club exactly at ten.
24709  His mother and sister were out spending the evening with a relation.
24710  The servant deposed that she heard him enter the front room on the second
24711  floor, generally used as his sitting-room.
24712  She had lit a fire there, and as it smoked she had opened the window.
24713  No sound was heard from the room until eleven-twenty, the hour of the return
24714  of Lady Maynooth and her daughter.
24715  Desiring to say good-night, she attempted to enter her son's room.
24716  The door was locked on the inside, and no answer could be got to their
24717  cries and knocking.
24718  Help was obtained, and the door forced.
24719  The unfortunate young man was found lying near the table.
24720  His head had been horribly mutilated by an expanding revolver bullet, but
24721  no weapon of any sort was to be found in the room.
24722 \end_layout
24723
24724 \end_inset
24725
24726
24727 \end_layout
24728
24729 \begin_layout Subsubsection
24730 Surrounding Space
24731 \end_layout
24732
24733 \begin_layout Standard
24734 The amount of space before and after multiple columns can be changed by
24735  changing the length 
24736 \series bold
24737
24738 \backslash
24739 multicolsep
24740 \series default
24741 .
24742  For example the command
24743 \end_layout
24744
24745 \begin_layout Standard
24746
24747 \series bold
24748
24749 \backslash
24750 setlength{
24751 \backslash
24752 multicolsep}{3cm}
24753 \end_layout
24754
24755 \begin_layout Standard
24756 in \SpecialChar TeX
24757  Code changes its value to 3
24758 \begin_inset space \thinspace{}
24759 \end_inset
24760
24761 cm.
24762  The change must be made before the multiple columns' start.
24763  The predefined value is 13
24764 \begin_inset space \thinspace{}
24765 \end_inset
24766
24767 pt.
24768 \end_layout
24769
24770 \begin_layout Standard
24771 For this example 
24772 \series bold
24773
24774 \backslash
24775 multicolsep
24776 \series default
24777  was set to 2.5
24778 \begin_inset space \thinspace{}
24779 \end_inset
24780
24781 cm:
24782 \end_layout
24783
24784 \begin_layout Standard
24785 \begin_inset ERT
24786 status open
24787
24788 \begin_layout Plain Layout
24789
24790
24791 \backslash
24792 setlength{
24793 \backslash
24794 multicolsep}{2.5cm}
24795 \end_layout
24796
24797 \end_inset
24798
24799
24800 \end_layout
24801
24802 \begin_layout Standard
24803 \begin_inset Flex Multiple Columns
24804 status open
24805
24806 \begin_layout Plain Layout
24807
24808 \size small
24809 All day I turned these facts over in my mind, endeavouring to hit upon some
24810  theory which could reconcile them all, and to find that line of least resistanc
24811 e which my poor friend had declared to be the starting-point of every investigat
24812 ion.
24813  I confess that I made little progress.
24814  In the evening I strolled across the Park, and found myself about six o'clock
24815  at the Oxford Street end of Park Lane.
24816  A group of loafers upon the pavements, all staring up at a particular window,
24817  directed me to the house which I had come to see.
24818  A tall, thin man with coloured glasses, whom I strongly suspected of being
24819  a plain-clothes detective, was pointing out some theory of his own, while
24820  the others crowded round to listen to what he said.
24821  I got as near him as I could, but his observations seemed to me to be absurd,
24822  so I withdrew again in some disgust.
24823  As I did so I struck against an elderly, deformed man, who had been behind
24824  me, and I knocked down several books which he was carrying.
24825 \end_layout
24826
24827 \end_inset
24828
24829
24830 \end_layout
24831
24832 \begin_layout Standard
24833 \begin_inset Note Greyedout
24834 status open
24835
24836 \begin_layout Plain Layout
24837
24838 \series bold
24839 Note:
24840 \series default
24841  The values you set with 
24842 \series bold
24843
24844 \backslash
24845 setlength
24846 \series default
24847  will be used for all following multiple columns until you change them again.
24848 \end_layout
24849
24850 \end_inset
24851
24852
24853 \end_layout
24854
24855 \begin_layout Standard
24856 \begin_inset ERT
24857 status collapsed
24858
24859 \begin_layout Plain Layout
24860
24861
24862 \backslash
24863 setlength{
24864 \backslash
24865 multicolsep}{13pt}
24866 \end_layout
24867
24868 \end_inset
24869
24870
24871 \begin_inset Note Note
24872 status collapsed
24873
24874 \begin_layout Plain Layout
24875 go back to the default
24876 \end_layout
24877
24878 \end_inset
24879
24880
24881 \end_layout
24882
24883 \begin_layout Standard
24884 \begin_inset Newpage newpage
24885 \end_inset
24886
24887
24888 \end_layout
24889
24890 \begin_layout Subsubsection
24891 Column Breaks
24892 \end_layout
24893
24894 \begin_layout Standard
24895 A column break can be forced by inserting the command 
24896 \series bold
24897
24898 \backslash
24899 columnbreak{}
24900 \series default
24901  as \SpecialChar TeX
24902  Code to that position in the text where the column should be broken.
24903  Note that this leads in most cases to whitespace in the text.
24904 \begin_inset Newline newline
24905 \end_inset
24906
24907 Here is an example:
24908 \end_layout
24909
24910 \begin_layout Standard
24911 \begin_inset Flex Multiple Columns
24912 status open
24913
24914 \begin_layout Plain Layout
24915
24916 \size small
24917 \begin_inset Quotes eld
24918 \end_inset
24919
24920 You're surprised to see me, sir,
24921 \begin_inset Quotes erd
24922 \end_inset
24923
24924  said he, in a strange, croaking voice.
24925 \end_layout
24926
24927 \begin_layout Plain Layout
24928
24929 \size small
24930 I acknowledged that I was.
24931 \end_layout
24932
24933 \begin_layout Plain Layout
24934
24935 \size small
24936 \begin_inset Quotes eld
24937 \end_inset
24938
24939 Well, I've a conscience, sir, and when I chanced to see you go into this
24940  house, as I came hobbling after you, I thought to myself, I'll just step
24941  in and see that kind gentleman, and tell him that if I was a bit gruff
24942  in my manner there was not any harm meant, and that I am much obliged to
24943  him for picking up my books.
24944 \begin_inset Quotes erd
24945 \end_inset
24946
24947
24948 \end_layout
24949
24950 \begin_layout Plain Layout
24951
24952 \size small
24953 \begin_inset Quotes eld
24954 \end_inset
24955
24956 You make too much of a trifle,
24957 \begin_inset Quotes erd
24958 \end_inset
24959
24960  said I.
24961  
24962 \begin_inset Quotes eld
24963 \end_inset
24964
24965 May I ask how you knew who I was?
24966 \begin_inset Quotes erd
24967 \end_inset
24968
24969  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
24970 \begin_inset ERT
24971 status collapsed
24972
24973 \begin_layout Plain Layout
24974
24975
24976 \backslash
24977 columnbreak{}
24978 \end_layout
24979
24980 \end_inset
24981
24982
24983 \end_layout
24984
24985 \begin_layout Plain Layout
24986
24987 \size small
24988 \begin_inset Quotes eld
24989 \end_inset
24990
24991 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24992  you'll find my little bookshop at the corner of Church Street, and very
24993  happy to see you, I am sure.
24994  Maybe you collect yourself, sir.
24995  Here's 
24996 \noun on
24997 British
24998 \begin_inset space ~
24999 \end_inset
25000
25001 Birds
25002 \noun default
25003 , and 
25004 \noun on
25005 Catullus
25006 \noun default
25007 , and 
25008 \noun on
25009 The Holy War
25010 \noun default
25011 –a bargain, every one of them.
25012  With five volumes you could just fill that gap on that second shelf.
25013  It looks untidy, does it not, sir?
25014 \begin_inset Quotes erd
25015 \end_inset
25016
25017
25018 \end_layout
25019
25020 \end_inset
25021
25022
25023 \end_layout
25024
25025 \begin_layout Subsubsection
25026 Column Separation
25027 \end_layout
25028
25029 \begin_layout Standard
25030 The width of the columns is automatically calculated, but you can modify
25031  the space between the columns.
25032  This is done by changing the length 
25033 \series bold
25034
25035 \backslash
25036 columnsep
25037 \series default
25038 .
25039  Its predefined value is 10
25040 \begin_inset space \thinspace{}
25041 \end_inset
25042
25043 pt.
25044  Here is an example where 
25045 \series bold
25046
25047 \backslash
25048 columnsep
25049 \series default
25050  is set to 3
25051 \begin_inset space \thinspace{}
25052 \end_inset
25053
25054 cm:
25055 \end_layout
25056
25057 \begin_layout Standard
25058 \begin_inset ERT
25059 status open
25060
25061 \begin_layout Plain Layout
25062
25063
25064 \backslash
25065 setlength{
25066 \backslash
25067 columnsep}{3cm}
25068 \end_layout
25069
25070 \end_inset
25071
25072
25073 \end_layout
25074
25075 \begin_layout Standard
25076 \begin_inset Flex Multiple Columns
25077 status open
25078
25079 \begin_layout Plain Layout
25080
25081 \size small
25082 My observations of No.
25083 \begin_inset space \space{}
25084 \end_inset
25085
25086 427 Park Lane did little to clear up the problem in which I was interested.
25087  The house was separated from the street by a low wall and railing, the
25088  whole not more than five feet high.
25089  It was perfectly easy, therefore, for anyone to get into the garden, but
25090  the window was entirely inaccessible, since there was no water pipe or
25091  anything which could help the most active man to climb it.
25092  More puzzled than ever, I retraced my steps to Kensington.
25093  I had not been in my study five minutes when the maid entered to say that
25094  a person desired to see me.
25095  To my astonishment it was none other than my strange old book collector,
25096  his sharp, wizened face peering out from a frame of white hair, and his
25097  precious volumes, a dozen of them at least, wedged under his right arm.
25098 \end_layout
25099
25100 \end_inset
25101
25102
25103 \end_layout
25104
25105 \begin_layout Standard
25106 \begin_inset ERT
25107 status collapsed
25108
25109 \begin_layout Plain Layout
25110
25111
25112 \backslash
25113 setlength{
25114 \backslash
25115 columnsep}{10pt}
25116 \end_layout
25117
25118 \end_inset
25119
25120
25121 \begin_inset Note Note
25122 status collapsed
25123
25124 \begin_layout Plain Layout
25125 go back to the default
25126 \end_layout
25127
25128 \end_inset
25129
25130
25131 \end_layout
25132
25133 \begin_layout Subsubsection
25134 Vertical Lines
25135 \end_layout
25136
25137 \begin_layout Standard
25138 Between the columns a rule with a width of the length 
25139 \series bold
25140
25141 \backslash
25142 columnseprule
25143 \series default
25144  is placed.
25145  If this rule width is set to 0
25146 \begin_inset space \thinspace{}
25147 \end_inset
25148
25149 pt (this is the default), the rule is suppressed.
25150  In the following example the rule is 2
25151 \begin_inset space \thinspace{}
25152 \end_inset
25153
25154 pt wide:
25155 \end_layout
25156
25157 \begin_layout Standard
25158 \begin_inset ERT
25159 status open
25160
25161 \begin_layout Plain Layout
25162
25163
25164 \backslash
25165 setlength{
25166 \backslash
25167 columnseprule}{2pt}
25168 \end_layout
25169
25170 \end_inset
25171
25172
25173 \end_layout
25174
25175 \begin_layout Standard
25176 \begin_inset Flex Multiple Columns
25177 status open
25178
25179 \begin_layout Plain Layout
25180
25181 \size small
25182 \begin_inset Quotes eld
25183 \end_inset
25184
25185 You're surprised to see me, sir,
25186 \begin_inset Quotes erd
25187 \end_inset
25188
25189  said he, in a strange, croaking voice.
25190 \end_layout
25191
25192 \begin_layout Plain Layout
25193
25194 \size small
25195 I acknowledged that I was.
25196 \end_layout
25197
25198 \begin_layout Plain Layout
25199
25200 \size small
25201 \begin_inset Quotes eld
25202 \end_inset
25203
25204 Well, I've a conscience, sir, and when I chanced to see you go into this
25205  house, as I came hobbling after you, I thought to myself, I'll just step
25206  in and see that kind gentleman, and tell him that if I was a bit gruff
25207  in my manner there was not any harm meant, and that I am much obliged to
25208  him for picking up my books.
25209 \begin_inset Quotes erd
25210 \end_inset
25211
25212
25213 \end_layout
25214
25215 \begin_layout Plain Layout
25216
25217 \size small
25218 \begin_inset Quotes eld
25219 \end_inset
25220
25221 You make too much of a trifle,
25222 \begin_inset Quotes erd
25223 \end_inset
25224
25225  said I.
25226  
25227 \begin_inset Quotes eld
25228 \end_inset
25229
25230 May I ask how you knew who I was?
25231 \begin_inset Quotes erd
25232 \end_inset
25233
25234
25235 \end_layout
25236
25237 \begin_layout Plain Layout
25238
25239 \size small
25240 \begin_inset Quotes eld
25241 \end_inset
25242
25243 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25244  you'll find my little bookshop at the corner of Church Street, and very
25245  happy to see you, I am sure.
25246  Maybe you collect yourself, sir.
25247  Here's 
25248 \noun on
25249 British
25250 \begin_inset space ~
25251 \end_inset
25252
25253 Birds
25254 \noun default
25255 , and 
25256 \noun on
25257 Catullus
25258 \noun default
25259 , and 
25260 \noun on
25261 The Holy War
25262 \noun default
25263 –a bargain, every one of them.
25264  With five volumes you could just fill that gap on that second shelf.
25265  It looks untidy, does it not, sir?
25266 \begin_inset Quotes erd
25267 \end_inset
25268
25269
25270 \end_layout
25271
25272 \end_inset
25273
25274
25275 \end_layout
25276
25277 \begin_layout Standard
25278 \begin_inset VSpace defskip
25279 \end_inset
25280
25281
25282 \end_layout
25283
25284 \begin_layout Standard
25285 The rule can be colored by redefining the command 
25286 \series bold
25287
25288 \backslash
25289 columnseprulecolor
25290 \series default
25291 .
25292  This is done by inserting the command
25293 \begin_inset Newline newline
25294 \end_inset
25295
25296
25297 \series bold
25298
25299 \backslash
25300 renewcommand{
25301 \backslash
25302 columnseprulecolor}{
25303 \backslash
25304 color{red}}
25305 \series default
25306
25307 \begin_inset Newline newline
25308 \end_inset
25309
25310 as \SpecialChar TeX
25311  Code before the multicolumn inset.
25312  Replace 
25313 \series bold
25314 red
25315 \series default
25316  in this command by a color of your choice.
25317  You can use all pre- and self-defined colors.
25318  See the 
25319 \emph on
25320 EmbeddedObjects
25321 \emph default
25322  manual, section 
25323 \emph on
25324 Colored
25325 \begin_inset space ~
25326 \end_inset
25327
25328 Tables
25329 \emph default
25330  for more information about pre- and self-defined colors.
25331  To go back to the default color insert the command
25332 \begin_inset Newline newline
25333 \end_inset
25334
25335
25336 \series bold
25337
25338 \backslash
25339 renewcommand{
25340 \backslash
25341 columnseprulecolor}{
25342 \backslash
25343 normalcolor}
25344 \series default
25345
25346 \begin_inset Newline newline
25347 \end_inset
25348
25349 Here is the example with a cyan rule and 1
25350 \begin_inset space \thinspace{}
25351 \end_inset
25352
25353 cm column separation:
25354 \end_layout
25355
25356 \begin_layout Standard
25357 \begin_inset ERT
25358 status open
25359
25360 \begin_layout Plain Layout
25361
25362
25363 \backslash
25364 setlength{
25365 \backslash
25366 columnsep}{1cm}
25367 \end_layout
25368
25369 \begin_layout Plain Layout
25370
25371
25372 \backslash
25373 renewcommand{
25374 \backslash
25375 columnseprulecolor}{
25376 \backslash
25377 color{cyan}}
25378 \end_layout
25379
25380 \end_inset
25381
25382
25383 \end_layout
25384
25385 \begin_layout Standard
25386 \begin_inset Flex Multiple Columns
25387 status open
25388
25389 \begin_layout Plain Layout
25390
25391 \size small
25392 \begin_inset Quotes eld
25393 \end_inset
25394
25395 You're surprised to see me, sir,
25396 \begin_inset Quotes erd
25397 \end_inset
25398
25399  said he, in a strange, croaking voice.
25400 \end_layout
25401
25402 \begin_layout Plain Layout
25403
25404 \size small
25405 I acknowledged that I was.
25406 \end_layout
25407
25408 \begin_layout Plain Layout
25409
25410 \size small
25411 \begin_inset Quotes eld
25412 \end_inset
25413
25414 Well, I've a conscience, sir, and when I chanced to see you go into this
25415  house, as I came hobbling after you, I thought to myself, I'll just step
25416  in and see that kind gentleman, and tell him that if I was a bit gruff
25417  in my manner there was not any harm meant, and that I am much obliged to
25418  him for picking up my books.
25419 \begin_inset Quotes erd
25420 \end_inset
25421
25422
25423 \end_layout
25424
25425 \begin_layout Plain Layout
25426
25427 \size small
25428 \begin_inset Quotes eld
25429 \end_inset
25430
25431 You make too much of a trifle,
25432 \begin_inset Quotes erd
25433 \end_inset
25434
25435  said I.
25436  
25437 \begin_inset Quotes eld
25438 \end_inset
25439
25440 May I ask how you knew who I was?
25441 \begin_inset Quotes erd
25442 \end_inset
25443
25444
25445 \end_layout
25446
25447 \begin_layout Plain Layout
25448
25449 \size small
25450 \begin_inset Quotes eld
25451 \end_inset
25452
25453 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25454  you'll find my little bookshop at the corner of Church Street, and very
25455  happy to see you, I am sure.
25456  Maybe you collect yourself, sir.
25457  Here's 
25458 \noun on
25459 British
25460 \begin_inset space ~
25461 \end_inset
25462
25463 Birds
25464 \noun default
25465 , and 
25466 \noun on
25467 Catullus
25468 \noun default
25469 , and 
25470 \noun on
25471 The Holy War
25472 \noun default
25473 –a bargain, every one of them.
25474  With five volumes you could just fill that gap on that second shelf.
25475  It looks untidy, does it not, sir?
25476 \begin_inset Quotes erd
25477 \end_inset
25478
25479
25480 \end_layout
25481
25482 \end_inset
25483
25484
25485 \end_layout
25486
25487 \begin_layout Standard
25488 \begin_inset ERT
25489 status collapsed
25490
25491 \begin_layout Plain Layout
25492
25493
25494 \backslash
25495 setlength{
25496 \backslash
25497 columnseprule}{0pt}
25498 \end_layout
25499
25500 \begin_layout Plain Layout
25501
25502
25503 \backslash
25504 renewcommand{
25505 \backslash
25506 columnseprulecolor}{
25507 \backslash
25508 normalcolor}
25509 \end_layout
25510
25511 \end_inset
25512
25513
25514 \begin_inset Note Note
25515 status collapsed
25516
25517 \begin_layout Plain Layout
25518 go back to the default
25519 \end_layout
25520
25521 \end_inset
25522
25523
25524 \end_layout
25525
25526 \begin_layout Section
25527 Non-standard Paragraph Shapes
25528 \end_layout
25529
25530 \begin_layout Standard
25531 \noindent
25532 \SpecialChar LaTeX
25533  as well as any other text processor uses by default rectangular paragraphs.
25534  For special cases like for example posters, invitation cards or poems you
25535  can modify the paragraph shape to one of your choice.
25536  This can be done by using the \SpecialChar LaTeX
25537 -package 
25538 \series bold
25539 shapepar
25540 \series default
25541  which is loaded by using in the document settings the module 
25542 \family sans
25543 Custom paragraph shapes
25544 \family default
25545 .
25546 \end_layout
25547
25548 \begin_layout Subsection
25549 Predefined shapes
25550 \end_layout
25551
25552 \begin_layout Standard
25553
25554 \series bold
25555 shapepar
25556 \series default
25557  provides the following shapes:
25558 \end_layout
25559
25560 \begin_layout Standard
25561 \begin_inset Tabular
25562 <lyxtabular version="3" rows="13" columns="3">
25563 <features booktabs="true" islongtable="true" longtabularalignment="center">
25564 <column alignment="center" valignment="middle" width="16col%">
25565 <column alignment="center" valignment="middle" width="40col%">
25566 <column alignment="center" valignment="middle" width="35col%">
25567 <row endhead="true">
25568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25569 \begin_inset Text
25570
25571 \begin_layout Plain Layout
25572 Name
25573 \end_layout
25574
25575 \end_inset
25576 </cell>
25577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25578 \begin_inset Text
25579
25580 \begin_layout Plain Layout
25581 Description
25582 \end_layout
25583
25584 \end_inset
25585 </cell>
25586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25587 \begin_inset Text
25588
25589 \begin_layout Plain Layout
25590 Annotation
25591 \end_layout
25592
25593 \end_inset
25594 </cell>
25595 </row>
25596 <row>
25597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25598 \begin_inset Text
25599
25600 \begin_layout Plain Layout
25601 CDlabel
25602 \end_layout
25603
25604 \end_inset
25605 </cell>
25606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25607 \begin_inset Text
25608
25609 \begin_layout Plain Layout
25610 Circle with circular hole (in the size of a CD/DVD)
25611 \end_layout
25612
25613 \end_inset
25614 </cell>
25615 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25616 \begin_inset Text
25617
25618 \begin_layout Plain Layout
25619 Cannot be scaled, take care there is not too much text
25620 \end_layout
25621
25622 \end_inset
25623 </cell>
25624 </row>
25625 <row>
25626 <cell alignment="center" valignment="top" topline="true" usebox="none">
25627 \begin_inset Text
25628
25629 \begin_layout Plain Layout
25630 Circle
25631 \end_layout
25632
25633 \end_inset
25634 </cell>
25635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25636 \begin_inset Text
25637
25638 \begin_layout Plain Layout
25639 Circle
25640 \end_layout
25641
25642 \end_inset
25643 </cell>
25644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25645 \begin_inset Text
25646
25647 \begin_layout Plain Layout
25648 Fragile, calculation might fail
25649 \end_layout
25650
25651 \end_inset
25652 </cell>
25653 </row>
25654 <row>
25655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25656 \begin_inset Text
25657
25658 \begin_layout Plain Layout
25659 Diamond
25660 \end_layout
25661
25662 \end_inset
25663 </cell>
25664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25665 \begin_inset Text
25666
25667 \begin_layout Plain Layout
25668 Rhomboid (symbolizing a 
25669 \begin_inset Quotes eld
25670 \end_inset
25671
25672 diamond
25673 \begin_inset Quotes erd
25674 \end_inset
25675
25676 )
25677 \end_layout
25678
25679 \end_inset
25680 </cell>
25681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25682 \begin_inset Text
25683
25684 \begin_layout Plain Layout
25685 -
25686 \end_layout
25687
25688 \end_inset
25689 </cell>
25690 </row>
25691 <row>
25692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25693 \begin_inset Text
25694
25695 \begin_layout Plain Layout
25696 Heart
25697 \end_layout
25698
25699 \end_inset
25700 </cell>
25701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25702 \begin_inset Text
25703
25704 \begin_layout Plain Layout
25705 Heart-like shape
25706 \end_layout
25707
25708 \end_inset
25709 </cell>
25710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25711 \begin_inset Text
25712
25713 \begin_layout Plain Layout
25714 -
25715 \end_layout
25716
25717 \end_inset
25718 </cell>
25719 </row>
25720 <row>
25721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25722 \begin_inset Text
25723
25724 \begin_layout Plain Layout
25725 Hexagon
25726 \end_layout
25727
25728 \end_inset
25729 </cell>
25730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25731 \begin_inset Text
25732
25733 \begin_layout Plain Layout
25734 Hexagon
25735 \end_layout
25736
25737 \end_inset
25738 </cell>
25739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25740 \begin_inset Text
25741
25742 \begin_layout Plain Layout
25743 -
25744 \end_layout
25745
25746 \end_inset
25747 </cell>
25748 </row>
25749 <row>
25750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25751 \begin_inset Text
25752
25753 \begin_layout Plain Layout
25754 Nut
25755 \end_layout
25756
25757 \end_inset
25758 </cell>
25759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25760 \begin_inset Text
25761
25762 \begin_layout Plain Layout
25763 Nut for bolt (hexagon with circular hole)
25764 \end_layout
25765
25766 \end_inset
25767 </cell>
25768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25769 \begin_inset Text
25770
25771 \begin_layout Plain Layout
25772 -
25773 \end_layout
25774
25775 \end_inset
25776 </cell>
25777 </row>
25778 <row>
25779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25780 \begin_inset Text
25781
25782 \begin_layout Plain Layout
25783 Square
25784 \end_layout
25785
25786 \end_inset
25787 </cell>
25788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25789 \begin_inset Text
25790
25791 \begin_layout Plain Layout
25792 Square
25793 \end_layout
25794
25795 \end_inset
25796 </cell>
25797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25798 \begin_inset Text
25799
25800 \begin_layout Plain Layout
25801 -
25802 \end_layout
25803
25804 \end_inset
25805 </cell>
25806 </row>
25807 <row>
25808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25809 \begin_inset Text
25810
25811 \begin_layout Plain Layout
25812 Star
25813 \end_layout
25814
25815 \end_inset
25816 </cell>
25817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25818 \begin_inset Text
25819
25820 \begin_layout Plain Layout
25821 Five-point star
25822 \end_layout
25823
25824 \end_inset
25825 </cell>
25826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25827 \begin_inset Text
25828
25829 \begin_layout Plain Layout
25830 -
25831 \end_layout
25832
25833 \end_inset
25834 </cell>
25835 </row>
25836 <row>
25837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25838 \begin_inset Text
25839
25840 \begin_layout Plain Layout
25841 Candle
25842 \end_layout
25843
25844 \end_inset
25845 </cell>
25846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25847 \begin_inset Text
25848
25849 \begin_layout Plain Layout
25850 Burning candle
25851 \end_layout
25852
25853 \end_inset
25854 </cell>
25855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25856 \begin_inset Text
25857
25858 \begin_layout Plain Layout
25859 -
25860 \end_layout
25861
25862 \end_inset
25863 </cell>
25864 </row>
25865 <row>
25866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25867 \begin_inset Text
25868
25869 \begin_layout Plain Layout
25870 Drop down/up
25871 \end_layout
25872
25873 \end_inset
25874 </cell>
25875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25876 \begin_inset Text
25877
25878 \begin_layout Plain Layout
25879 Normal/reversed rain drop
25880 \end_layout
25881
25882 \end_inset
25883 </cell>
25884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25885 \begin_inset Text
25886
25887 \begin_layout Plain Layout
25888 Fragile, calculation might fail
25889 \end_layout
25890
25891 \end_inset
25892 </cell>
25893 </row>
25894 <row>
25895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25896 \begin_inset Text
25897
25898 \begin_layout Plain Layout
25899 \SpecialChar TeX
25900
25901 \end_layout
25902
25903 \end_inset
25904 </cell>
25905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25906 \begin_inset Text
25907
25908 \begin_layout Plain Layout
25909 The \SpecialChar TeX
25910  logo
25911 \end_layout
25912
25913 \end_inset
25914 </cell>
25915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25916 \begin_inset Text
25917
25918 \begin_layout Plain Layout
25919 -
25920 \end_layout
25921
25922 \end_inset
25923 </cell>
25924 </row>
25925 <row>
25926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25927 \begin_inset Text
25928
25929 \begin_layout Plain Layout
25930 Triangle up/down/
25931 \begin_inset Newline newline
25932 \end_inset
25933
25934 left/right
25935 \end_layout
25936
25937 \end_inset
25938 </cell>
25939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25940 \begin_inset Text
25941
25942 \begin_layout Plain Layout
25943 Triangles in different orientations
25944 \end_layout
25945
25946 \end_inset
25947 </cell>
25948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25949 \begin_inset Text
25950
25951 \begin_layout Plain Layout
25952 -
25953 \end_layout
25954
25955 \end_inset
25956 </cell>
25957 </row>
25958 </lyxtabular>
25959
25960 \end_inset
25961
25962
25963 \end_layout
25964
25965 \begin_layout Standard
25966 To use a shape for your paragraph, simply select it in \SpecialChar LyX
25967 's pull-down box
25968  for environments in the toolbar.
25969 \end_layout
25970
25971 \begin_layout Standard
25972 \begin_inset Newpage newpage
25973 \end_inset
25974
25975
25976 \end_layout
25977
25978 \begin_layout Standard
25979 Here is an example paragraph in the shape of a nut:
25980 \end_layout
25981
25982 \begin_layout Standard
25983 \begin_inset VSpace bigskip
25984 \end_inset
25985
25986
25987 \end_layout
25988
25989 \begin_layout Nut
25990
25991 \lang latin
25992 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25993  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25994  voluptua.
25995  At vero eos et accusam et justo duo dolores et ea rebum.
25996  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25997  sit amet.
25998  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25999  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26000  voluptua.
26001 \end_layout
26002
26003 \begin_layout Standard
26004 \begin_inset VSpace bigskip
26005 \end_inset
26006
26007
26008 \end_layout
26009
26010 \begin_layout Standard
26011 \begin_inset Note Greyedout
26012 status open
26013
26014 \begin_layout Plain Layout
26015
26016 \series bold
26017 Note
26018 \series default
26019 : shapepar paragraphs cannot run over a page break.
26020 \end_layout
26021
26022 \end_inset
26023
26024
26025 \end_layout
26026
26027 \begin_layout Standard
26028 \begin_inset VSpace bigskip
26029 \end_inset
26030
26031
26032 \end_layout
26033
26034 \begin_layout Standard
26035
26036 \series bold
26037 shapepar
26038 \series default
26039  takes care that the shape will always be preserved, no matter how much
26040  text is in the paragraph.
26041  Therefore the paragraph size changes with the amount of contained text.
26042  This can lead to paragraph sizes exceeding the page margins.
26043  To demonstrate the size scaling, here is the same example paragraph but
26044  with twice as much text:
26045 \end_layout
26046
26047 \begin_layout Standard
26048 \begin_inset Newpage newpage
26049 \end_inset
26050
26051
26052 \end_layout
26053
26054 \begin_layout Nut
26055
26056 \lang latin
26057 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26058  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26059  voluptua.
26060  At vero eos et accusam et justo duo dolores et ea rebum.
26061  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26062  sit amet.
26063  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26064  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26065  voluptua.
26066  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26067  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26068  voluptua.
26069  At vero eos et accusam et justo duo dolores et ea rebum.
26070  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26071  sit amet.
26072  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26073  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26074  voluptua.
26075 \end_layout
26076
26077 \begin_layout Standard
26078 \begin_inset VSpace bigskip
26079 \end_inset
26080
26081
26082 \end_layout
26083
26084 \begin_layout Standard
26085 An exception is the shape 
26086 \family sans
26087 CDlabel
26088 \family default
26089 .
26090  It cannot be scaled because it must fit the size of a CD/DVD.
26091  Therefore the amount of text that fits into the shape is limited.
26092 \begin_inset Newline newline
26093 \end_inset
26094
26095 The 
26096 \family sans
26097 drop
26098 \family default
26099  shapes and the 
26100 \family sans
26101 circle
26102 \family default
26103  shape are fragile, meaning that the calculation of their size can fail,
26104  depending on the amount of text.
26105  You will then get the \SpecialChar LaTeX
26106  error 
26107 \begin_inset Quotes eld
26108 \end_inset
26109
26110 Arithmetic overflow
26111 \begin_inset Quotes erd
26112 \end_inset
26113
26114 .
26115  In this case one can try to remove or add some text; if nothing works one
26116  has to use another shape.
26117 \end_layout
26118
26119 \begin_layout Standard
26120 \begin_inset VSpace bigskip
26121 \end_inset
26122
26123
26124 \end_layout
26125
26126 \begin_layout Standard
26127 For shapes with tips you will maybe see that \SpecialChar LaTeX
26128 's hyphenation routine fails
26129  for text in the tips.
26130  Therefore it is often necessary to add hyphenation points 
26131 \family sans
26132 (
26133 \begin_inset Info
26134 type  "shortcut"
26135 arg   "specialchar-insert hyphenation"
26136 \end_inset
26137
26138
26139 \family default
26140 ) to the corresponding text parts.
26141 \end_layout
26142
26143 \begin_layout Standard
26144 \begin_inset VSpace bigskip
26145 \end_inset
26146
26147
26148 \end_layout
26149
26150 \begin_layout Standard
26151 Shapepar paragraphs are either always centered or placed on the page so
26152  that their left border touches the left page margin.
26153  You can therefore not use the paragraph dialog to align such paragraphs.
26154  A solution is to put the paragraph into a minipage or parbox and align
26155  the box.
26156  The problem is hereby to find the right width for the box.
26157  Because if it is too wide and you center the box, the paragraph is not
26158  centered too because it sticks at the left side of the box.
26159  So you might have to play a bit with the width until it fits.
26160  Here are two heart-shaped paragraphs, the first one is not aligned, the
26161  second one is right-aligned:
26162 \end_layout
26163
26164 \begin_layout Standard
26165 \begin_inset Newpage newpage
26166 \end_inset
26167
26168
26169 \end_layout
26170
26171 \begin_layout Heart
26172 \noindent
26173
26174 \lang latin
26175 Lo\SpecialChar softhyphen
26176 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26177  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26178  voluptua.
26179  At vero eos et accusam et justo duo dolores et ea rebum.
26180  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26181  sit amet.
26182 \end_layout
26183
26184 \begin_layout Standard
26185 \begin_inset VSpace bigskip
26186 \end_inset
26187
26188
26189 \end_layout
26190
26191 \begin_layout Standard
26192 \noindent
26193 \align right
26194 \begin_inset Box Frameless
26195 position "t"
26196 hor_pos "c"
26197 has_inner_box 1
26198 inner_pos "t"
26199 use_parbox 1
26200 use_makebox 0
26201 width "42col%"
26202 special "none"
26203 height "1in"
26204 height_special "totalheight"
26205 thickness "0.4pt"
26206 separation "3pt"
26207 shadowsize "4pt"
26208 framecolor "black"
26209 backgroundcolor "none"
26210 status open
26211
26212 \begin_layout Heart
26213 \noindent
26214
26215 \lang latin
26216 Lo\SpecialChar softhyphen
26217 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26218  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26219  voluptua.
26220  At vero eos et accusam et justo duo dolores et ea rebum.
26221  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26222  sit amet.
26223 \end_layout
26224
26225 \end_inset
26226
26227
26228 \end_layout
26229
26230 \begin_layout Subsection
26231 Custom shapes
26232 \end_layout
26233
26234 \begin_layout Standard
26235 You can define any shape you want.
26236  Doing this manually is a lot of work because every coordinate must be specified.
26237  But there is a way to let the computer calculate the coordinates:
26238 \end_layout
26239
26240 \begin_layout Enumerate
26241 Install the program 
26242 \begin_inset CommandInset href
26243 LatexCommand href
26244 name "Jpgfdraw"
26245 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26246
26247 \end_inset
26248
26249 .
26250 \end_layout
26251
26252 \begin_layout Enumerate
26253 In 
26254 \family sans
26255 Jpgfdraw
26256 \family default
26257  go to the menu 
26258 \family sans
26259 TeX/LaTeX\SpecialChar menuseparator
26260 Settings\SpecialChar menuseparator
26261 Set Normal Size
26262 \family default
26263  and select the font size you are using in your document.
26264  For example this document uses the size 12
26265 \begin_inset space \thinspace{}
26266 \end_inset
26267
26268 pt.
26269 \end_layout
26270
26271 \begin_layout Enumerate
26272 Draw a shape.
26273 \end_layout
26274
26275 \begin_layout Enumerate
26276 Use the menu 
26277 \family sans
26278 TeX/LaTeX\SpecialChar menuseparator
26279 Shapepar
26280 \family default
26281  to export the shape to coordinates.
26282  In the appearing dialog use either the outline of your shape for the coordinate
26283 s or the path itself.
26284 \begin_inset Foot
26285 status collapsed
26286
26287 \begin_layout Plain Layout
26288 For more information see 
26289 \begin_inset CommandInset href
26290 LatexCommand href
26291 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26292
26293 \end_inset
26294
26295
26296 \end_layout
26297
26298 \end_inset
26299
26300
26301 \end_layout
26302
26303 \begin_layout Standard
26304 The coordinates are written into a \SpecialChar TeX
26305  file.
26306  To use it for your \SpecialChar LyX
26307  document
26308 \end_layout
26309
26310 \begin_layout Enumerate
26311 Place the cursor before the first character of your paragraph (or into a
26312  new empty one).
26313 \end_layout
26314
26315 \begin_layout Enumerate
26316 Open in \SpecialChar LyX
26317  the menu 
26318 \family sans
26319 Insert\SpecialChar menuseparator
26320 File\SpecialChar menuseparator
26321 Child
26322 \begin_inset space ~
26323 \end_inset
26324
26325 Document
26326 \family default
26327 , select the file and use 
26328 \family sans
26329 Input
26330 \family default
26331  as 
26332 \family sans
26333 Include Type.
26334 \end_layout
26335
26336 \begin_layout Standard
26337 \begin_inset VSpace defskip
26338 \end_inset
26339
26340
26341 \end_layout
26342
26343 \begin_layout Standard
26344 \begin_inset Note Greyedout
26345 status open
26346
26347 \begin_layout Plain Layout
26348
26349 \series bold
26350 Note
26351 \series default
26352 : The changed shape only applies to the current paragraph; everything is
26353  reset to normal for the next paragraph.
26354  Therefore the shape definition file must be input into every paragraph
26355  with the desired shape.
26356 \end_layout
26357
26358 \end_inset
26359
26360
26361 \end_layout
26362
26363 \begin_layout Standard
26364 \begin_inset VSpace bigskip
26365 \end_inset
26366
26367
26368 \end_layout
26369
26370 \begin_layout Standard
26371 Here is an example:
26372 \end_layout
26373
26374 \begin_layout Standard
26375 \begin_inset VSpace bigskip
26376 \end_inset
26377
26378
26379 \end_layout
26380
26381 \begin_layout Standard
26382 \begin_inset CommandInset include
26383 LatexCommand input
26384 filename "SpecialParagraphShape.tex"
26385
26386 \end_inset
26387
26388
26389 \lang latin
26390 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26391  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26392  voluptua.
26393  At vero eos et accusam et justo duo dolores et ea rebum.
26394  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26395  sit amet.
26396  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26397  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26398  voluptua.
26399 \end_layout
26400
26401 \begin_layout Standard
26402 \begin_inset VSpace bigskip
26403 \end_inset
26404
26405
26406 \end_layout
26407
26408 \begin_layout Standard
26409
26410 \series bold
26411 A tip:
26412 \series default
26413  to draw complexer shapes in 
26414 \family sans
26415 Jpgfdraw
26416 \family default
26417  you can draw the shape in a program of your choice and import the resulting
26418  image to 
26419 \family sans
26420 Jpgfdraw
26421 \family default
26422 .
26423  Then you only need to draw a line or spline along the outline of the image.
26424 \end_layout
26425
26426 \begin_layout Standard
26427 \begin_inset VSpace bigskip
26428 \end_inset
26429
26430
26431 \end_layout
26432
26433 \begin_layout Standard
26434 The module 
26435 \family sans
26436 Custom paragraph shapes
26437 \family default
26438  also provides the two commands 
26439 \family sans
26440 shapepar
26441 \family default
26442  and 
26443 \family sans
26444 Shapepar
26445 \family default
26446  which can be used to define custom shapes coordinate by coordinate.
26447 \begin_inset Foot
26448 status collapsed
26449
26450 \begin_layout Plain Layout
26451 These commands are internally used for all shapes described here.
26452 \end_layout
26453
26454 \end_inset
26455
26456  For information how these styles are used and about further customization
26457  possibilities, have a look at the documentation of the package 
26458 \series bold
26459 shapepar
26460 \series default
26461
26462 \begin_inset CommandInset citation
26463 LatexCommand cite
26464 key "shapepar"
26465
26466 \end_inset
26467
26468 .
26469 \end_layout
26470
26471 \begin_layout Bibliography
26472 \begin_inset CommandInset bibitem
26473 LatexCommand bibitem
26474 key "multicol"
26475
26476 \end_inset
26477
26478 Documentation of the \SpecialChar LaTeX
26479 -package 
26480 \begin_inset CommandInset href
26481 LatexCommand href
26482 name "multicol"
26483 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26484
26485 \end_inset
26486
26487
26488 \end_layout
26489
26490 \begin_layout Bibliography
26491 \begin_inset CommandInset bibitem
26492 LatexCommand bibitem
26493 key "shapepar"
26494
26495 \end_inset
26496
26497 Documentation of the \SpecialChar LaTeX
26498 -package 
26499 \begin_inset CommandInset href
26500 LatexCommand href
26501 name "shapepar"
26502 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
26503
26504 \end_inset
26505
26506
26507 \end_layout
26508
26509 \end_body
26510 \end_document