]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
3c5ff7026f4bdc45733023e88e336d8e7a534982
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 511
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 \use_microtype false
56 \graphics default
57 \default_output_format pdf2
58 \output_sync 0
59 \bibtex_command default
60 \index_command default
61 \paperfontsize 12
62 \spacing single
63 \use_hyperref true
64 \pdf_title "LyX's Additional Features manual"
65 \pdf_author "LyX Team"
66 \pdf_subject "LyX's additional features documentation"
67 \pdf_keywords "LyX, Documentation, Additional"
68 \pdf_bookmarks true
69 \pdf_bookmarksnumbered true
70 \pdf_bookmarksopen false
71 \pdf_bookmarksopenlevel 1
72 \pdf_breaklinks false
73 \pdf_pdfborder false
74 \pdf_colorlinks true
75 \pdf_backref false
76 \pdf_pdfusetitle false
77 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
78 \papersize a4paper
79 \use_geometry false
80 \use_package amsmath 1
81 \use_package amssymb 1
82 \use_package cancel 0
83 \use_package esint 0
84 \use_package mathdots 1
85 \use_package mathtools 0
86 \use_package mhchem 1
87 \use_package stackrel 0
88 \use_package stmaryrd 0
89 \use_package undertilde 0
90 \cite_engine basic
91 \cite_engine_type default
92 \biblio_style plain
93 \use_bibtopic false
94 \use_indices false
95 \paperorientation portrait
96 \suppress_date false
97 \justification true
98 \use_refstyle 0
99 \notefontcolor #0000ff
100 \index Index
101 \shortcut idx
102 \color #008000
103 \end_index
104 \secnumdepth 3
105 \tocdepth 3
106 \paragraph_separation indent
107 \paragraph_indentation default
108 \quotes_language english
109 \papercolumns 1
110 \papersides 2
111 \paperpagestyle headings
112 \tracking_changes true
113 \output_changes false
114 \html_math_output 0
115 \html_css_as_file 0
116 \html_be_strict true
117 \author -851615295 "ef"
118 \author 893223064 "John Robert Hudson" j.r.hudson@virginmedia.com
119 \end_header
120
121 \begin_body
122
123 \begin_layout Title
124 Additional \SpecialChar LyX
125  Features
126 \end_layout
127
128 \begin_layout Subtitle
129 Version 2.3.x
130 \end_layout
131
132 \begin_layout Author
133 by the \SpecialChar LyX
134  Team
135 \begin_inset Foot
136 status collapsed
137
138 \begin_layout Plain Layout
139 \noindent
140 Principal maintainer of this file is
141 \noun on
142  Richard Heck
143 \noun default
144 .
145  If you have comments or error corrections, please send them to the \SpecialChar LyX
146  Documentati
147 on mailing list, 
148 \begin_inset Flex Code
149 status collapsed
150
151 \begin_layout Plain Layout
152 \noindent
153 <lyx-docs@lists.lyx.org>
154 \end_layout
155
156 \end_inset
157
158 .
159 \end_layout
160
161 \end_inset
162
163
164 \end_layout
165
166 \begin_layout Standard
167 \begin_inset CommandInset toc
168 LatexCommand tableofcontents
169
170 \end_inset
171
172
173 \end_layout
174
175 \begin_layout Chapter
176 Introduction
177 \end_layout
178
179 \begin_layout Standard
180 This manual is essentially Part II of the 
181 \emph on
182 User's Guide\SpecialChar endofsentence
183
184 \emph default
185  The reason for separating the two documents is simple: the 
186 \emph on
187 User's Guide
188 \emph default
189  is already quite lengthy, and it contains information on all of the basic
190  features one needs to know in order to prepare most documents.
191  However, the \SpecialChar LyX
192  Team has worked to make \SpecialChar LyX
193  extensible through various configuration
194  files and external packages.
195  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
196  package, you can
197  create a layout file (or module) for it without having to alter \SpecialChar LyX
198  itself.
199  We've already had contributions of several new features this way, and some
200  of them are documented here.
201  There are also some more `advanced' features, such as how to control the
202  presentation of bibliographies and how to work with multi-part documents,
203  that are not covered in the 
204 \emph on
205 User's Guide
206 \emph default
207  and are discussed here.
208 \end_layout
209
210 \begin_layout Standard
211 This manual also documents some special features, like fax support, version
212  control, and SGML support, which require additional software to work properly.
213  There is also a chapter on \SpecialChar LyX
214 's support for HTML.
215  And lastly, there's a chapter of \SpecialChar LaTeX
216  tools and tips, things you can use to
217  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
218 .
219  After all, \SpecialChar LyX
220  
221 \emph on
222 is
223 \emph default
224  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
225  features.
226 \end_layout
227
228 \begin_layout Standard
229 If you haven't read the 
230 \emph on
231 Introduction
232 \emph default
233  yet, you are definitely in the wrong manual.
234  The 
235 \emph on
236 Introduction
237 \emph default
238  is the first place to go, since it describes the notation and format of
239  all of the manuals.
240  You should also be thoroughly familiar with the 
241 \emph on
242 User's Guide
243 \emph default
244  and all of the basic features of \SpecialChar LyX
245  before attempting to read this one.
246 \end_layout
247
248 \begin_layout Standard
249 Since many of the topics in this manual depend heavily on \SpecialChar LyX
250 's interaction
251  with \SpecialChar LaTeX
252 , this first chapter covers the inner workings of \SpecialChar LyX
253  and how to direct
254  \SpecialChar LyX
255  to generate exactly the \SpecialChar LaTeX
256  code you want.
257  It is obviously for more seasoned \SpecialChar LyX
258  users.
259 \end_layout
260
261 \begin_layout Chapter
262 \SpecialChar LyX
263  and \SpecialChar LaTeX
264
265 \end_layout
266
267 \begin_layout Section
268 How \SpecialChar LyX
269  Uses \SpecialChar LaTeX
270
271 \end_layout
272
273 \begin_layout Standard
274 This chapter is for both \SpecialChar TeX
275 -nicians and the \SpecialChar LaTeX
276 -curious.
277  In it, we'll explain how \SpecialChar LyX
278  and \SpecialChar LaTeX
279  work together to produce printable output.
280  This is the only place in any of the manuals where we assume you know something
281  about \SpecialChar LaTeX
282 .
283 \end_layout
284
285 \begin_layout Standard
286 At one time, \SpecialChar LyX
287  was called a 
288 \begin_inset Quotes eld
289 \end_inset
290
291 WYSIWYM frontend to \SpecialChar LaTeX
292 ,
293 \begin_inset Quotes erd
294 \end_inset
295
296  but that's no longer true.
297  There are frontends to \SpecialChar LaTeX
298  out there.
299 \begin_inset Foot
300 status collapsed
301
302 \begin_layout Plain Layout
303 Some familar ones are \SpecialChar TeX
304 maker and kile, on Linux, and \SpecialChar TeX
305 shop, OSX.
306  There are also the \SpecialChar LaTeX
307  modes for vi and emacs, of course.
308 \end_layout
309
310 \end_inset
311
312  These are basically text editors with the ability to run \SpecialChar LaTeX
313  and mark any
314  errors in the file you're editing.
315  Although \SpecialChar LyX
316  
317 \emph on
318 is
319 \emph default
320  an editor, and it 
321 \emph on
322 does
323 \emph default
324  run \SpecialChar LaTeX
325 , and it also indicates errors in the file, it also does much, much
326  more.
327  For one thing, you don't need to know \SpecialChar LaTeX
328  to use \SpecialChar LyX
329  effectively.
330  And \SpecialChar LyX
331  has added its own extensions to \SpecialChar LaTeX
332 .
333  Try the following sometime: select 
334 \begin_inset Flex Noun
335 status collapsed
336
337 \begin_layout Plain Layout
338 Export\SpecialChar menuseparator
339 LaTeX
340 \end_layout
341
342 \end_inset
343
344  from the 
345 \begin_inset Flex Noun
346 status collapsed
347
348 \begin_layout Plain Layout
349 File
350 \end_layout
351
352 \end_inset
353
354  menu (or 
355 \begin_inset Flex Noun
356 status collapsed
357
358 \begin_layout Plain Layout
359 View\SpecialChar menuseparator
360 Source
361 \begin_inset space ~
362 \end_inset
363
364 Pane
365 \end_layout
366
367 \end_inset
368
369 ), then look at the preamble of the resulting 
370 \begin_inset Flex Code
371 status collapsed
372
373 \begin_layout Plain Layout
374 .tex
375 \end_layout
376
377 \end_inset
378
379  file.
380  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
381 .
382  These macros are defined automatically, according to the features you use
383  in the document.
384 \end_layout
385
386 \begin_layout Standard
387 There are several commands that automatically invoke \SpecialChar LaTeX
388 .
389  They are:
390 \end_layout
391
392 \begin_layout Itemize
393 \begin_inset Flex Noun
394 status collapsed
395
396 \begin_layout Plain Layout
397 Document\SpecialChar menuseparator
398 View
399 \end_layout
400
401 \end_inset
402
403
404 \end_layout
405
406 \begin_layout Itemize
407 \begin_inset Flex Noun
408 status collapsed
409
410 \begin_layout Plain Layout
411 Document\SpecialChar menuseparator
412 Update
413 \end_layout
414
415 \end_inset
416
417
418 \end_layout
419
420 \begin_layout Standard
421 They will only invoke \SpecialChar LaTeX
422  if the file has changed since the last time \SpecialChar LaTeX
423  was
424  run.
425  
426 \end_layout
427
428 \begin_layout Standard
429 When \SpecialChar LyX
430  runs \SpecialChar LaTeX
431  on the file you're editing, it performs these steps:
432 \end_layout
433
434 \begin_layout Enumerate
435 Convert the document to \SpecialChar LaTeX
436  and save to a file with the extension 
437 \begin_inset Flex Code
438 status collapsed
439
440 \begin_layout Plain Layout
441 .tex
442 \end_layout
443
444 \end_inset
445
446  in place of 
447 \begin_inset Flex Code
448 status collapsed
449
450 \begin_layout Plain Layout
451 .lyx
452 \end_layout
453
454 \end_inset
455
456 .
457 \end_layout
458
459 \begin_layout Enumerate
460 Run \SpecialChar LaTeX
461  on the 
462 \begin_inset Flex Code
463 status collapsed
464
465 \begin_layout Plain Layout
466 .tex
467 \end_layout
468
469 \end_inset
470
471  file (maybe several times), and run any other commands (such as 
472 \begin_inset Flex Code
473 status collapsed
474
475 \begin_layout Plain Layout
476 bibtex
477 \end_layout
478
479 \end_inset
480
481  or 
482 \begin_inset Flex Code
483 status collapsed
484
485 \begin_layout Plain Layout
486 makeindex
487 \end_layout
488
489 \end_inset
490
491 ) needed to compile the \SpecialChar LaTeX
492  file.
493 \end_layout
494
495 \begin_layout Enumerate
496 If there are any errors, show the error log.
497 \end_layout
498
499 \begin_layout Standard
500 If you have run \SpecialChar LaTeX
501  using 
502 \begin_inset Flex Noun
503 status collapsed
504
505 \begin_layout Plain Layout
506 View\SpecialChar menuseparator
507 DVI
508 \end_layout
509
510 \end_inset
511
512 , \SpecialChar LyX
513  then runs a DVI viewer to display the DVI-file.
514  If you have used 
515 \begin_inset Flex Noun
516 status collapsed
517
518 \begin_layout Plain Layout
519 View\SpecialChar menuseparator
520 PostScript
521 \end_layout
522
523 \end_inset
524
525 , \SpecialChar LyX
526  performs further steps:
527 \end_layout
528
529 \begin_layout Itemize
530 Run 
531 \begin_inset Flex Code
532 status collapsed
533
534 \begin_layout Plain Layout
535 dvips
536 \end_layout
537
538 \end_inset
539
540  to convert the DVI file to PostScript.
541 \end_layout
542
543 \begin_layout Itemize
544 Run a PostScript viewer, such as 
545 \begin_inset Flex Code
546 status collapsed
547
548 \begin_layout Plain Layout
549 ghostview
550 \end_layout
551
552 \end_inset
553
554 , to display the PostScript file.
555 \end_layout
556
557 \begin_layout Standard
558 \SpecialChar LyX
559  does similar things when viewing, or exporting, other formats.
560 \end_layout
561
562 \begin_layout Section
563 Translating \SpecialChar LaTeX
564  files into \SpecialChar LyX
565
566 \end_layout
567
568 \begin_layout Standard
569 You can import a \SpecialChar LaTeX
570  file into \SpecialChar LyX
571  by using the 
572 \begin_inset Flex Noun
573 status collapsed
574
575 \begin_layout Plain Layout
576 File\SpecialChar menuseparator
577 Import\SpecialChar menuseparator
578 LaTeX
579 \end_layout
580
581 \end_inset
582
583  command in \SpecialChar LyX
584 .
585  This will call a program named 
586 \begin_inset Flex Code
587 status collapsed
588
589 \begin_layout Plain Layout
590 tex2lyx
591 \end_layout
592
593 \end_inset
594
595  which will create a file 
596 \begin_inset Flex Code
597 status collapsed
598
599 \begin_layout Plain Layout
600 foo.lyx
601 \end_layout
602
603 \end_inset
604
605  from the file 
606 \begin_inset Flex Code
607 status collapsed
608
609 \begin_layout Plain Layout
610 foo.tex
611 \end_layout
612
613 \end_inset
614
615 .
616  \SpecialChar LyX
617  will then open that file.
618 \begin_inset Foot
619 status collapsed
620
621 \begin_layout Plain Layout
622 \begin_inset Flex Code
623 status collapsed
624
625 \begin_layout Plain Layout
626 tex2lyx
627 \end_layout
628
629 \end_inset
630
631  can also be run from the command line, of course.
632 \end_layout
633
634 \end_inset
635
636
637 \end_layout
638
639 \begin_layout Standard
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 tex2lyx
645 \end_layout
646
647 \end_inset
648
649  will translate most legal \SpecialChar LaTeX
650 , but not everything.
651  It will put things it doesn't understand into \SpecialChar TeX
652  code, so after translating
653  a file with 
654 \begin_inset Flex Code
655 status collapsed
656
657 \begin_layout Plain Layout
658 tex2lyx
659 \end_layout
660
661 \end_inset
662
663 , you can look for \SpecialChar TeX
664  code and hand-edit it until it looks right.
665 \end_layout
666
667 \begin_layout Standard
668 If you don't know what \SpecialChar TeX
669  code is, read the next section.
670 \end_layout
671
672 \begin_layout Section
673 \begin_inset CommandInset label
674 LatexCommand label
675 name "sec:Inserting-TeX-Code"
676
677 \end_inset
678
679 Inserting \SpecialChar TeX
680  Code into \SpecialChar LyX
681  Documents 
682 \end_layout
683
684 \begin_layout Standard
685 Anything you can do in \SpecialChar LaTeX
686  you can do in \SpecialChar LyX
687 , for a very simple reason: You can
688  always insert \SpecialChar TeX
689  code into any \SpecialChar LyX
690  document.
691  \SpecialChar LyX
692  cannot, and will never be able to, display every possible \SpecialChar LaTeX
693  construct.
694  If ever you need to insert \SpecialChar LaTeX
695  commands into your \SpecialChar LyX
696  document, you can use the
697  
698 \begin_inset Flex Code
699 status collapsed
700
701 \begin_layout Plain Layout
702 \SpecialChar TeX
703  Code
704 \end_layout
705
706 \end_inset
707
708  box, which you can insert into your document with 
709 \begin_inset Flex Noun
710 status collapsed
711
712 \begin_layout Plain Layout
713 Insert\SpecialChar menuseparator
714
715 \family sans
716 TeX
717 \family default
718  Code
719 \end_layout
720
721 \end_inset
722
723  or the keyboard shortcut 
724 \begin_inset Info
725 type  "shortcut"
726 arg   "ert-insert"
727 \end_inset
728
729 .
730 \end_layout
731
732 \begin_layout Standard
733 Here's an example of inserting \SpecialChar LaTeX
734  commands in a \SpecialChar LyX
735  document.
736  The code looks like this:
737 \end_layout
738
739 \begin_layout LyX-Code
740
741 \backslash
742 begin{tabular}{ll}
743 \begin_inset Newline newline
744 \end_inset
745
746
747 \backslash
748 begin{minipage}{5cm}
749 \begin_inset Newline newline
750 \end_inset
751
752 This is an example of a minipage environment.
753  You 
754 \begin_inset Newline newline
755 \end_inset
756
757 can put nearly everything in it, even (non-floating) 
758 \begin_inset Newline newline
759 \end_inset
760
761 figures and tables.
762  
763 \begin_inset Newline newline
764 \end_inset
765
766
767 \backslash
768 end{minipage}
769 \begin_inset Newline newline
770 \end_inset
771
772 &
773 \begin_inset Newline newline
774 \end_inset
775
776
777 \backslash
778 begin{minipage}{5cm}
779 \begin_inset Newline newline
780 \end_inset
781
782
783 \backslash
784 begin{verbatim}
785 \begin_inset Newline newline
786 \end_inset
787
788
789 \backslash
790 begin{minipage}{5cm}
791 \begin_inset Newline newline
792 \end_inset
793
794 This ...
795  
796 \begin_inset Newline newline
797 \end_inset
798
799
800 \backslash
801 end{minipage}
802 \begin_inset Newline newline
803 \end_inset
804
805
806 \backslash
807 end{verbatim}
808 \begin_inset Newline newline
809 \end_inset
810
811
812 \backslash
813 end{minipage}
814 \begin_inset Newline newline
815 \end_inset
816
817
818 \backslash
819 end{tabular}
820 \end_layout
821
822 \begin_layout LyX-Code
823
824 \end_layout
825
826 \begin_layout Standard
827 The 
828 \begin_inset Flex Code
829 status collapsed
830
831 \begin_layout Plain Layout
832 \SpecialChar TeX
833  Code
834 \end_layout
835
836 \end_inset
837
838  box containing this text is directly after this paragraph.
839  Those of you reading the manual in \SpecialChar LyX
840  will only see the \SpecialChar TeX
841  code inset.
842  Those reading a printed version of the manuals will see the actual results:
843 \begin_inset VSpace bigskip
844 \end_inset
845
846
847 \end_layout
848
849 \begin_layout Standard
850 \begin_inset ERT
851 status open
852
853 \begin_layout Plain Layout
854
855
856 \backslash
857 begin{tabular}{ll}
858 \end_layout
859
860 \begin_layout Plain Layout
861
862
863 \backslash
864 begin{minipage}{5cm}
865 \end_layout
866
867 \begin_layout Plain Layout
868
869 This is an example of a minipage environment.
870  You can put nearly everything in it, even (non-floating) figures and tables.
871  
872 \end_layout
873
874 \begin_layout Plain Layout
875
876
877 \backslash
878 end{minipage}
879 \end_layout
880
881 \begin_layout Plain Layout
882
883 &
884 \end_layout
885
886 \begin_layout Plain Layout
887
888
889 \backslash
890 begin{minipage}{5cm}
891 \end_layout
892
893 \begin_layout Plain Layout
894
895
896 \backslash
897 begin{verbatim}
898 \end_layout
899
900 \begin_layout Plain Layout
901
902
903 \backslash
904 begin{minipage}{5cm}
905 \end_layout
906
907 \begin_layout Plain Layout
908
909 This ...
910  
911 \end_layout
912
913 \begin_layout Plain Layout
914
915
916 \backslash
917 end{minipage}
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 end{verbatim}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929
930 \backslash
931 end{minipage}
932 \end_layout
933
934 \begin_layout Plain Layout
935
936
937 \backslash
938 end{tabular}
939 \end_layout
940
941 \end_inset
942
943
944 \begin_inset VSpace bigskip
945 \end_inset
946
947
948 \end_layout
949
950 \begin_layout Standard
951 In addition to using \SpecialChar TeX
952  code, you can also create a separate file containing
953  some complex \SpecialChar LaTeX
954  structure and then use 
955 \begin_inset Flex Noun
956 status collapsed
957
958 \begin_layout Plain Layout
959 Insert\SpecialChar menuseparator
960 Child
961 \begin_inset space ~
962 \end_inset
963
964 Document
965 \end_layout
966
967 \end_inset
968
969  to include your file (you should select the type 
970 \begin_inset Flex Code
971 status collapsed
972
973 \begin_layout Plain Layout
974 Input
975 \end_layout
976
977 \end_inset
978
979 ).
980  We recommend that you only do this if you have a 
981 \begin_inset Flex Code
982 status collapsed
983
984 \begin_layout Plain Layout
985 .tex
986 \end_layout
987
988 \end_inset
989
990  file which you 
991 \emph on
992 know
993 \emph default
994  works already.
995  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
996  errors.
997 \end_layout
998
999 \begin_layout Standard
1000 There are a few last points to emphasize:
1001 \end_layout
1002
1003 \begin_layout Itemize
1004 \SpecialChar LyX
1005  
1006 \emph on
1007 does not
1008 \emph default
1009  check if your \SpecialChar LaTeX
1010  code is correct.
1011 \end_layout
1012
1013 \begin_layout Itemize
1014 Beware of reinventing the wheel.
1015 \end_layout
1016
1017 \begin_layout Standard
1018 On that last point, \SpecialChar LyX
1019  does have quite a few features tucked into it, and
1020  more are coming.
1021  Be sure to check the manuals to make sure that \SpecialChar LyX
1022  doesn't have such-and-such
1023  feature before you decide you have to do it by hand.
1024  Moreover, there are numerous \SpecialChar LaTeX
1025  packages out there to do all sorts of things,
1026  from labels to envelopes to fancy multipage tables.
1027  Check out 
1028 \begin_inset CommandInset href
1029 LatexCommand href
1030 name "CTAN"
1031 target "http://www.ctan.org/"
1032
1033 \end_inset
1034
1035  for details.
1036 \end_layout
1037
1038 \begin_layout Standard
1039 If you do need to do some wild and fancy things within your document, be
1040  sure to check out a good \SpecialChar LaTeX
1041  book for assistance.
1042  There are a number of them listed in the bibliography of the 
1043 \emph on
1044 User's Guide
1045 \emph default
1046 .
1047 \end_layout
1048
1049 \begin_layout Section
1050 \SpecialChar LyX
1051  and the \SpecialChar LaTeX
1052  Preamble
1053 \end_layout
1054
1055 \begin_layout Subsection
1056 About the \SpecialChar LaTeX
1057  Preamble
1058 \end_layout
1059
1060 \begin_layout Standard
1061 If you already know \SpecialChar LaTeX
1062 , there is no need to explain here what the preamble
1063  is good for.
1064  If you don't, the following will give you some ideas—we recommend again
1065  that you consult a \SpecialChar LaTeX
1066  book for further information.
1067  In any case, you should read the points below, because they explain what
1068  you can do and what you don't need to do in the \SpecialChar LaTeX
1069  preamble of a \SpecialChar LyX
1070  document.
1071 \end_layout
1072
1073 \begin_layout Standard
1074 The \SpecialChar LaTeX
1075  preamble comes at the very beginning of a document, 
1076 \emph on
1077 before
1078 \emph default
1079  the text.
1080  It serves to:
1081 \end_layout
1082
1083 \begin_layout Itemize
1084 Declare the document class.
1085  
1086 \begin_inset Newline newline
1087 \end_inset
1088
1089 \SpecialChar LyX
1090  already does this for you.
1091  If you're a seasoned \SpecialChar LaTeX
1092 -nician, and you have a custom document class you
1093  want to use, check out the 
1094 \emph on
1095 Customization Manual
1096 \emph default
1097  for information on how to make \SpecialChar LyX
1098  interface to it.
1099 \end_layout
1100
1101 \begin_layout Itemize
1102 Declare the usage of packages.
1103  
1104 \begin_inset Newline newline
1105 \end_inset
1106
1107 \SpecialChar LaTeX
1108  packages provide special commands, which are only available within a document
1109  when the package has been declared in the preamble.
1110  In addition to providing special commands, the inclusion of a package can
1111  change the document.
1112  For example, the package 
1113 \begin_inset Flex Code
1114 status collapsed
1115
1116 \begin_layout Plain Layout
1117 indentfirst
1118 \end_layout
1119
1120 \end_inset
1121
1122  forces all paragraphs to be indented.
1123  There are other packages for labels, envelopes, margins, etc.
1124  
1125 \end_layout
1126
1127 \begin_layout Itemize
1128 Set counters, variables, lengths and widths.
1129  
1130 \begin_inset Newline newline
1131 \end_inset
1132
1133 There are several \SpecialChar LaTeX
1134  counters and variables that 
1135 \emph on
1136 must
1137 \emph default
1138  be set globally from within the preamble in order to have the desired effect.
1139  (There are variables that you can set and reset inside the document, too.)
1140  Margins are a good example of something that must be set in the preamble.
1141  Another example is the label format for lists.
1142  You can actually set these just about anywhere, but it's best to do it
1143  just once, inside the preamble.
1144 \end_layout
1145
1146 \begin_layout Itemize
1147 Declare user defined commands (with 
1148 \begin_inset Flex Code
1149 status collapsed
1150
1151 \begin_layout Plain Layout
1152
1153 \backslash
1154 newcommand
1155 \end_layout
1156
1157 \end_inset
1158
1159  or 
1160 \begin_inset Flex Code
1161 status collapsed
1162
1163 \begin_layout Plain Layout
1164
1165 \backslash
1166 renewcommand
1167 \end_layout
1168
1169 \end_inset
1170
1171 ).
1172 \begin_inset Newline newline
1173 \end_inset
1174
1175 These are abbreviations for \SpecialChar LaTeX
1176  commands which appear very often inside a document.
1177  Although the preamble is a good place to declare such commands, they 
1178 \emph on
1179 can
1180 \emph default
1181  be declared anywhere (before they are used for the first time, of course).
1182  This can be useful if there is a lot of raw \SpecialChar LaTeX
1183  code in your document, which
1184  normally should not be the case.
1185 \end_layout
1186
1187 \begin_layout Standard
1188 \SpecialChar LyX
1189  adds its own set of definitions to the preamble of the 
1190 \begin_inset Flex Code
1191 status collapsed
1192
1193 \begin_layout Plain Layout
1194 .tex
1195 \end_layout
1196
1197 \end_inset
1198
1199  file it produces.
1200  This makes \SpecialChar LaTeX
1201  files generated by \SpecialChar LyX
1202  portable.
1203 \end_layout
1204
1205 \begin_layout Subsection
1206 Changing the Preamble
1207 \end_layout
1208
1209 \begin_layout Standard
1210 The commands which \SpecialChar LyX
1211  adds to the preamble of a \SpecialChar LaTeX
1212  file are fixed; you can't
1213  change them without patching \SpecialChar LyX
1214  itself.
1215  You can, however, add your own stuff to the preamble by selecting 
1216 \begin_inset Flex Noun
1217 status collapsed
1218
1219 \begin_layout Plain Layout
1220 \SpecialChar LaTeX
1221
1222 \begin_inset space ~
1223 \end_inset
1224
1225 Preamble
1226 \end_layout
1227
1228 \end_inset
1229
1230  in the 
1231 \begin_inset Flex Noun
1232 status collapsed
1233
1234 \begin_layout Plain Layout
1235 Document\SpecialChar menuseparator
1236 Settings
1237 \end_layout
1238
1239 \end_inset
1240
1241  dialog.
1242  \SpecialChar LyX
1243  adds anything in the 
1244 \begin_inset Flex Noun
1245 status collapsed
1246
1247 \begin_layout Plain Layout
1248 Preamble
1249 \end_layout
1250
1251 \end_inset
1252
1253  dialog to its own built-in preamble.
1254  Before adding your own declarations in the preamble, you should make sure
1255  that \SpecialChar LyX
1256  doesn't already support what you want to do.
1257  (Remember what we said about reinventing the wheel?) Also, 
1258 \emph on
1259 make sure your preamble code is correct
1260 \emph default
1261 .
1262  \SpecialChar LyX
1263  doesn't check it for you.
1264  If there is an error, you're likely to get an error like 
1265 \begin_inset Quotes eld
1266 \end_inset
1267
1268
1269 \begin_inset Flex Code
1270 status collapsed
1271
1272 \begin_layout Plain Layout
1273 Missing 
1274 \backslash
1275 begin{document}
1276 \end_layout
1277
1278 \end_inset
1279
1280
1281 \begin_inset Quotes erd
1282 \end_inset
1283
1284 .
1285  If you see this error, check your preamble.
1286 \end_layout
1287
1288 \begin_layout Subsection
1289 Examples
1290 \end_layout
1291
1292 \begin_layout Standard
1293 Here are some examples of what you can add to a preamble, and what they
1294  do.
1295 \end_layout
1296
1297 \begin_layout Subsubsection
1298 Example #1: Offsets
1299 \end_layout
1300
1301 \begin_layout Standard
1302 There are two variables under \SpecialChar LaTeX
1303  that control page position: 
1304 \begin_inset Flex Code
1305 status collapsed
1306
1307 \begin_layout Plain Layout
1308
1309 \backslash
1310 hoffset
1311 \end_layout
1312
1313 \end_inset
1314
1315  and 
1316 \begin_inset Flex Code
1317 status collapsed
1318
1319 \begin_layout Plain Layout
1320
1321 \backslash
1322 voffset
1323 \end_layout
1324
1325 \end_inset
1326
1327 .
1328  Their names should be self-explanatory.
1329  These variables are useful if you think for a moment about computer labels.
1330  Sometimes, the size of a print medium and the area of the medium that you
1331  can actually print on aren't the same.
1332  This is where 
1333 \begin_inset Flex Code
1334 status collapsed
1335
1336 \begin_layout Plain Layout
1337
1338 \backslash
1339 hoffset
1340 \end_layout
1341
1342 \end_inset
1343
1344  and 
1345 \begin_inset Flex Code
1346 status collapsed
1347
1348 \begin_layout Plain Layout
1349
1350 \backslash
1351 voffset
1352 \end_layout
1353
1354 \end_inset
1355
1356  come in.
1357 \end_layout
1358
1359 \begin_layout Standard
1360 The default values for 
1361 \begin_inset Flex Code
1362 status collapsed
1363
1364 \begin_layout Plain Layout
1365
1366 \backslash
1367 hoffset
1368 \end_layout
1369
1370 \end_inset
1371
1372  and 
1373 \begin_inset Flex Code
1374 status collapsed
1375
1376 \begin_layout Plain Layout
1377
1378 \backslash
1379 voffset
1380 \end_layout
1381
1382 \end_inset
1383
1384  are both 0
1385 \begin_inset space \thinspace{}
1386 \end_inset
1387
1388 points, i.
1389 \begin_inset space \thinspace{}
1390 \end_inset
1391
1392 e.
1393 \begin_inset space \space{}
1394 \end_inset
1395
1396 the page isn't shifted.
1397  Unfortunately, some DVI drivers always seem to shift the page.
1398  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1399  If you're using \SpecialChar LyX
1400  on a system that you don't personally maintain, and your
1401  sysadmin is a doofus, 
1402 \begin_inset Flex Code
1403 status collapsed
1404
1405 \begin_layout Plain Layout
1406
1407 \backslash
1408 hoffset
1409 \end_layout
1410
1411 \end_inset
1412
1413  and 
1414 \begin_inset Flex Code
1415 status collapsed
1416
1417 \begin_layout Plain Layout
1418
1419 \backslash
1420 voffset
1421 \end_layout
1422
1423 \end_inset
1424
1425  can save the day.
1426  Suppose your left and top margins are always 0.5
1427 \begin_inset space \thinspace{}
1428 \end_inset
1429
1430 inches too big.
1431  You can add this to the preamble:
1432 \end_layout
1433
1434 \begin_layout LyX-Code
1435
1436 \backslash
1437 setlength{
1438 \backslash
1439 hoffset}{-0.5 in}
1440 \end_layout
1441
1442 \begin_layout LyX-Code
1443
1444 \backslash
1445 setlength{
1446 \backslash
1447 voffset}{-0.5 in}
1448 \end_layout
1449
1450 \begin_layout Standard
1451 and your margins should now be correct.
1452 \end_layout
1453
1454 \begin_layout Subsubsection
1455 Example #2: Labels
1456 \end_layout
1457
1458 \begin_layout Standard
1459 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1460  There's a rather nice package, available at your nearest CTAN archive,
1461  for printing sheets of labels: 
1462 \begin_inset Flex Code
1463 status collapsed
1464
1465 \begin_layout Plain Layout
1466 labels.sty
1467 \end_layout
1468
1469 \end_inset
1470
1471 .
1472  Now, your system may not have this package installed by default.
1473  We leave that up to you to check.
1474  You'll also want to read the documentation for it; we're not going to do
1475  that for you.
1476  Since this is an example, however, we'll give you an example of how you
1477  use this package.
1478 \end_layout
1479
1480 \begin_layout Standard
1481 First, make sure you're using the 
1482 \begin_inset Flex Code
1483 status collapsed
1484
1485 \begin_layout Plain Layout
1486 article
1487 \end_layout
1488
1489 \end_inset
1490
1491  document class.
1492  Next, you need to put the following in your preamble:
1493 \end_layout
1494
1495 \begin_layout LyX-Code
1496
1497 \backslash
1498 usepackage{labels}
1499 \end_layout
1500
1501 \begin_layout LyX-Code
1502
1503 \backslash
1504 LabelCols=3
1505 \end_layout
1506
1507 \begin_layout LyX-Code
1508
1509 \backslash
1510 LabelRows=7
1511 \end_layout
1512
1513 \begin_layout LyX-Code
1514
1515 \backslash
1516 LeftBorder=8mm
1517 \end_layout
1518
1519 \begin_layout LyX-Code
1520
1521 \backslash
1522 RightBorder=8mm
1523 \end_layout
1524
1525 \begin_layout LyX-Code
1526
1527 \backslash
1528 TopBorder=9mm
1529 \end_layout
1530
1531 \begin_layout LyX-Code
1532
1533 \backslash
1534 BottomBorder=2mm
1535 \end_layout
1536
1537 \begin_layout Standard
1538 This sets things up for Avery label sheets, stock #5360.
1539  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1540  code, placing
1541  the commands 
1542 \begin_inset Flex Code
1543 status collapsed
1544
1545 \begin_layout Plain Layout
1546
1547 \backslash
1548 begin{labels}
1549 \end_layout
1550
1551 \end_inset
1552
1553  and 
1554 \begin_inset Flex Code
1555 status collapsed
1556
1557 \begin_layout Plain Layout
1558
1559 \backslash
1560 end{labels}
1561 \end_layout
1562
1563 \end_inset
1564
1565  around each label text.
1566  This and other special features of 
1567 \begin_inset Flex Code
1568 status collapsed
1569
1570 \begin_layout Plain Layout
1571 labels.sty
1572 \end_layout
1573
1574 \end_inset
1575
1576  are explained in its documentation.
1577 \end_layout
1578
1579 \begin_layout Standard
1580 Someday, someone may write a \SpecialChar LyX
1581  layout file to support this package directly.
1582  Maybe that someone is you.
1583 \end_layout
1584
1585 \begin_layout Subsubsection
1586 Example #3: Paragraph Indentation
1587 \end_layout
1588
1589 \begin_layout Standard
1590 Americans are trained to indent the first line of 
1591 \emph on
1592 every
1593 \emph default
1594  paragraph.
1595  As with all of their other weird quirks, most Americans will whine and
1596  moan until they can have their way and indent the first line of all paragraphs.
1597  (Yes, we're joking.
1598  (We are?) 
1599 \emph on
1600 Yeah
1601 \emph default
1602 , we are.)
1603 \end_layout
1604
1605 \begin_layout Standard
1606 Of course, this behavior isn't standard typography.
1607  In books, you typically only indent the first line of a paragraph 
1608 \emph on
1609 if
1610 \emph default
1611  it follows another one.
1612  The idea behind indenting the first line of a paragraph is to distinguish
1613  neighboring paragraphs from one another.
1614  If there is no previous paragraph—for example, if it follows a figure or
1615  is the first paragraph in a section—then there is no need for indentation.
1616  
1617 \end_layout
1618
1619 \begin_layout Standard
1620 If you're a typical American (we're still joking!), though, you don't care
1621  about such esoteric things; you want your indentation! Add this to the
1622  preamble:
1623 \end_layout
1624
1625 \begin_layout LyX-Code
1626
1627 \backslash
1628 usepackage{indentfirst}
1629 \end_layout
1630
1631 \begin_layout Standard
1632 If your \SpecialChar TeX
1633  distribution isn't braindead, you'll have this package, and all
1634  of your paragraphs will get the indentation the Founding Fathers intended
1635  they should have.
1636 \end_layout
1637
1638 \begin_layout Subsubsection
1639 Example #4: This Document
1640 \end_layout
1641
1642 \begin_layout Standard
1643 You can also check out the preamble of this document to get an idea of some
1644  of the advanced things you can do.
1645 \end_layout
1646
1647 \begin_layout Section
1648 \SpecialChar LyX
1649  and \SpecialChar LaTeX
1650  Errors
1651 \end_layout
1652
1653 \begin_layout Standard
1654 When \SpecialChar LyX
1655  calls \SpecialChar LaTeX
1656 , it tells \SpecialChar LaTeX
1657  to blithely ignore any errors and keep going.
1658  It then uses the logfile from the \SpecialChar LaTeX
1659  run to do a post-mortem.
1660  After analyzing the logfile, \SpecialChar LyX
1661  displays a dialog listing the errors.
1662  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1663  file
1664  where the error occurred.
1665 \begin_inset Foot
1666 status collapsed
1667
1668 \begin_layout Plain Layout
1669 Well, usually.
1670  Analyzing the logfile is a tough job, and \SpecialChar LyX
1671  doesn't always go to the right
1672  line.
1673  There are also cases where \SpecialChar LaTeX
1674  reports the error on one line, but the actual
1675  error is earlier.
1676  This is not unlike forgetting a closing brace in a program: You'll get
1677  an error, but only later.
1678 \end_layout
1679
1680 \end_inset
1681
1682
1683 \end_layout
1684
1685 \begin_layout Standard
1686 Some folks also like to look at the log file directly: It is available from
1687  
1688 \begin_inset Flex Noun
1689 status collapsed
1690
1691 \begin_layout Plain Layout
1692 Document\SpecialChar menuseparator
1693 LaTeX
1694 \begin_inset space ~
1695 \end_inset
1696
1697 Log
1698 \end_layout
1699
1700 \end_inset
1701
1702 .
1703  There are some fairly common error messages and warnings.
1704  We'll cover those here.
1705  You should look at a good \SpecialChar LaTeX
1706  book for a complete listing.
1707 \end_layout
1708
1709 \begin_layout Itemize
1710 \begin_inset Flex Code
1711 status collapsed
1712
1713 \begin_layout Plain Layout
1714 LaTeX Warning
1715 \end_layout
1716
1717 \end_inset
1718
1719
1720 \begin_inset Newline newline
1721 \end_inset
1722
1723 Anything beginning with these words is a warning message for the purpose
1724  of 
1725 \begin_inset Quotes eld
1726 \end_inset
1727
1728 debugging
1729 \begin_inset Quotes erd
1730 \end_inset
1731
1732  the \SpecialChar LaTeX
1733  code itself.
1734  You'll get messages like this if you added or changed cross-references
1735  or bibliography entries, in which case, \SpecialChar LaTeX
1736  is trying to tell you that you
1737  need to make another run.
1738  You can by-and-large ignore these.
1739 \end_layout
1740
1741 \begin_layout Itemize
1742 \begin_inset Flex Code
1743 status collapsed
1744
1745 \begin_layout Plain Layout
1746 LaTeX Font Warning
1747 \end_layout
1748
1749 \end_inset
1750
1751
1752 \begin_inset Newline newline
1753 \end_inset
1754
1755 Another warning message, this time about fonts which \SpecialChar LaTeX
1756  couldn't find.
1757  The rest of the message will often say something about a replacement font
1758  that \SpecialChar LaTeX
1759  used.
1760  You can safely ignore these, too.
1761 \end_layout
1762
1763 \begin_layout Itemize
1764 \begin_inset Flex Code
1765 status collapsed
1766
1767 \begin_layout Plain Layout
1768 Overfull 
1769 \backslash
1770 hbox
1771 \end_layout
1772
1773 \end_inset
1774
1775
1776 \begin_inset Newline newline
1777 \end_inset
1778
1779 \SpecialChar LaTeX
1780  absolutely 
1781 \emph on
1782 loves
1783 \emph default
1784  to spew these out.
1785  They are warnings about lines that were too long and run past the right
1786  margin.
1787  Almost always, this is unnoticeable in the final output.
1788  (It can be just a point or two.) Or, only one or two characters extend past
1789  the margin.
1790  \SpecialChar LaTeX
1791  seems to generate at least one of these messages for just about any document
1792  you write.
1793 \begin_inset Newline newline
1794 \end_inset
1795
1796 You can ignore these messages.
1797  Your eyes will tell you if there's a problem with something that's too
1798  wide; just look at the output.
1799 \begin_inset Foot
1800 status collapsed
1801
1802 \begin_layout Plain Layout
1803 You can also enable the `draft' option in 
1804 \begin_inset Flex Noun
1805 status collapsed
1806
1807 \begin_layout Plain Layout
1808 Document\SpecialChar menuseparator
1809 Settings
1810 \end_layout
1811
1812 \end_inset
1813
1814 , and then \SpecialChar LaTeX
1815  will draw a black box in the margin of lines that are overfull.
1816 \end_layout
1817
1818 \end_inset
1819
1820
1821 \end_layout
1822
1823 \begin_layout Itemize
1824 \begin_inset Flex Code
1825 status collapsed
1826
1827 \begin_layout Plain Layout
1828 Underfull 
1829 \backslash
1830 hbox
1831 \end_layout
1832
1833 \end_inset
1834
1835
1836 \begin_inset Newline newline
1837 \end_inset
1838
1839 Not quite as common as its cousin.
1840  \SpecialChar LaTeX
1841  seems to like to print lines that are a bit too wide as opposed to ones
1842  that are a bit too narrow.
1843  We have no idea why.
1844 \end_layout
1845
1846 \begin_layout Itemize
1847 \begin_inset Flex Code
1848 status collapsed
1849
1850 \begin_layout Plain Layout
1851 Overfull 
1852 \backslash
1853 vbox
1854 \end_layout
1855
1856 \end_inset
1857
1858  and 
1859 \begin_inset Flex Code
1860 status collapsed
1861
1862 \begin_layout Plain Layout
1863 Underfull 
1864 \backslash
1865 vbox
1866 \end_layout
1867
1868 \end_inset
1869
1870
1871 \begin_inset Newline newline
1872 \end_inset
1873
1874 Warnings about troubles breaking the page.
1875  Once again, just look at the output.
1876  Your eyes will tell you where something has gone wrong.
1877 \end_layout
1878
1879 \begin_layout Itemize
1880 \begin_inset Flex Code
1881 status collapsed
1882
1883 \begin_layout Plain Layout
1884 LaTeX Error: File 
1885 \begin_inset Quotes els
1886 \end_inset
1887
1888 Xxxx
1889 \begin_inset Quotes ers
1890 \end_inset
1891
1892  not found
1893 \end_layout
1894
1895 \end_inset
1896
1897
1898 \begin_inset Newline newline
1899 \end_inset
1900
1901 The file 
1902 \begin_inset Quotes eld
1903 \end_inset
1904
1905 Xxxx
1906 \begin_inset Quotes erd
1907 \end_inset
1908
1909  isn't installed on this system.
1910  This usually appears because some package your document needs isn't installed.
1911  If you didn't touch the preamble or didn't use the 
1912 \begin_inset Flex Code
1913 status collapsed
1914
1915 \begin_layout Plain Layout
1916
1917 \backslash
1918 usepackage{}
1919 \end_layout
1920
1921 \end_inset
1922
1923  command, then one of the packages \SpecialChar LyX
1924  tried to load is missing.
1925  Use 
1926 \begin_inset Flex Noun
1927 status collapsed
1928
1929 \begin_layout Plain Layout
1930 Help\SpecialChar menuseparator
1931 \SpecialChar LaTeX
1932  Configuration
1933 \end_layout
1934
1935 \end_inset
1936
1937  to get a list of packages that \SpecialChar LyX
1938  knows about.
1939  This file is updated whenever you reconfigure \SpecialChar LyX
1940  (using 
1941 \begin_inset Flex Noun
1942 status collapsed
1943
1944 \begin_layout Plain Layout
1945 Tools\SpecialChar menuseparator
1946 Reconfigure
1947 \end_layout
1948
1949 \end_inset
1950
1951 ) and tells you which packages have been detected and what they do.
1952 \begin_inset Newline newline
1953 \end_inset
1954
1955 If you did use the 
1956 \begin_inset Flex Code
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960
1961 \backslash
1962 usepackage{}
1963 \end_layout
1964
1965 \end_inset
1966
1967  command and the package in question isn't installed, then you'll need to
1968  install it yourself.
1969 \end_layout
1970
1971 \begin_layout Itemize
1972 \begin_inset Flex Code
1973 status collapsed
1974
1975 \begin_layout Plain Layout
1976 LaTeX Error: Unknown option
1977 \end_layout
1978
1979 \end_inset
1980
1981
1982 \begin_inset Newline newline
1983 \end_inset
1984
1985 Error messages beginning with this are trying to tell you that you specified
1986  a bad or undefined option to a package.
1987  Check the package's documentation.
1988 \end_layout
1989
1990 \begin_layout Itemize
1991 \begin_inset Flex Code
1992 status collapsed
1993
1994 \begin_layout Plain Layout
1995 Undefined control sequence
1996 \end_layout
1997
1998 \end_inset
1999
2000
2001 \begin_inset Newline newline
2002 \end_inset
2003
2004 If you've inserted \SpecialChar LaTeX
2005  code into your document, but made a typo, you'll get
2006  one of these.
2007  You may have forgotten to load a package.
2008  In any case, this error message usually means that you used an undefined
2009  command.
2010  
2011 \end_layout
2012
2013 \begin_layout Standard
2014 There are other error and warning messages.
2015  Some are self-explanatory.
2016  These are usually \SpecialChar LaTeX
2017  messages.
2018  Others are downright cryptic.
2019  These are usually \SpecialChar TeX
2020  error messages, and we really have 
2021 \emph on
2022 no clue
2023 \emph default
2024  what they mean or how to decipher them.
2025  No-one does.
2026 \end_layout
2027
2028 \begin_layout Standard
2029 There's a general sequence you should follow if you get error messages:
2030 \end_layout
2031
2032 \begin_layout Enumerate
2033 Look at the \SpecialChar LaTeX
2034  code you inserted for typos.
2035 \end_layout
2036
2037 \begin_layout Enumerate
2038 If there are no typos, check that you used the command(s) correctly.
2039 \end_layout
2040
2041 \begin_layout Enumerate
2042 If you get a bunch of error boxes piled up at the very top of the document—and
2043  especially if you see a 
2044 \begin_inset Quotes eld
2045 \end_inset
2046
2047
2048 \begin_inset Flex Code
2049 status collapsed
2050
2051 \begin_layout Plain Layout
2052 Missing 
2053 \backslash
2054 begin{document}
2055 \end_layout
2056
2057 \end_inset
2058
2059
2060 \begin_inset Quotes erd
2061 \end_inset
2062
2063  error—it means that there are errors in the preamble.
2064  Start debugging your preamble.
2065 \end_layout
2066
2067 \begin_layout Enumerate
2068 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2069  code to the
2070  document, the first suspect is your \SpecialChar LaTeX
2071  distribution itself.
2072  Check for missing packages and install them.
2073 \end_layout
2074
2075 \begin_layout Enumerate
2076 Okay, so there are no missing packages.
2077  Did you use any of the fine-tuning options in \SpecialChar LyX
2078 ? Specifically, did you 
2079 \emph on
2080 misuse
2081 \emph default
2082  any of them, like trying to manually insert lots of 
2083 \begin_inset Flex Code
2084 status collapsed
2085
2086 \begin_layout Plain Layout
2087 Protected
2088 \begin_inset space ~
2089 \end_inset
2090
2091 Blanks
2092 \end_layout
2093
2094 \end_inset
2095
2096
2097 \begin_inset Flex Code
2098 status collapsed
2099
2100 \begin_layout Plain Layout
2101 Linebreaks
2102 \end_layout
2103
2104 \end_inset
2105
2106 , or 
2107 \begin_inset Flex Code
2108 status collapsed
2109
2110 \begin_layout Plain Layout
2111 Pagebreaks
2112 \end_layout
2113
2114 \end_inset
2115
2116 ? Did you try to kludge something together with these instead of using the
2117  appropriate paragraph environment?
2118 \end_layout
2119
2120 \begin_layout Enumerate
2121 All right, you didn't use any of the fine-tuning options, you played by
2122  the rules.
2123  Did you try to pull a fancy maneuver? Did you do something funky inside
2124  a table or an equation, like inserting a graphic into a table cell?
2125 \end_layout
2126
2127 \begin_layout Enumerate
2128 Do you have long sections of text where \SpecialChar LaTeX
2129  cannot find a place to break a
2130  line? By default, \SpecialChar LaTeX
2131  is rather strict about how much extra inter-word spacing
2132  it will add in order to break a line.
2133  Preferably, you should rework the paragraph to avoid the problem.
2134 \end_layout
2135
2136 \begin_layout Enumerate
2137 Did you go overboard with the nesting? \SpecialChar LyX
2138  (currently) doesn't check to make
2139  sure you're in the limits for nesting environments.
2140  If you nested a bunch of environments to the 
2141 \begin_inset Formula $17^{\mathrm{th}}$
2142 \end_inset
2143
2144  level, that's the problem.
2145  (The limit in \SpecialChar LaTeX
2146  is five.)
2147 \end_layout
2148
2149 \begin_layout Enumerate
2150 Okay, you didn't get any error messages, but your output looks awful.
2151  If you have a table or figure that's too wide or long for the page, you
2152  need to:
2153 \end_layout
2154
2155 \begin_deeper
2156 \begin_layout Enumerate
2157 rescale the figure so it fits.
2158 \end_layout
2159
2160 \begin_layout Enumerate
2161 trim down the table so it fits.
2162 \end_layout
2163
2164 \end_deeper
2165 \begin_layout Enumerate
2166 If something else is wrong with the output, and you didn't try to pull anything
2167  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2168 \end_layout
2169
2170 \begin_layout Standard
2171 If all this doesn't help—well, then 
2172 \emph on
2173 perhaps
2174 \emph default
2175  you might have found a bug in \SpecialChar LyX
2176 \SpecialChar ldots
2177 .
2178 \end_layout
2179
2180 \begin_layout Chapter
2181
2182 \change_inserted 893223064 1464851738
2183 Document classes
2184 \end_layout
2185
2186 \begin_layout Standard
2187
2188 \change_inserted 893223064 1464852146
2189 This section will be updated in due course.
2190 \end_layout
2191
2192 \begin_layout Standard
2193 Special Document Classes
2194 \end_layout
2195
2196 \begin_layout Section
2197 A&A Paper
2198 \end_layout
2199
2200 \begin_layout Standard
2201 by 
2202 \noun on
2203 Peter Sütterlin
2204 \end_layout
2205
2206 \begin_layout Subsection
2207 Introduction
2208 \end_layout
2209
2210 \begin_layout Standard
2211 This section describes how \SpecialChar LyX
2212  can be used to write articles for submission
2213  to the scientific journal 
2214 \emph on
2215 Astronomy and Astrophysics
2216 \emph default
2217  (
2218 \begin_inset Flex URL
2219 status collapsed
2220
2221 \begin_layout Plain Layout
2222
2223 http://www.edpsciences.fr/aa/
2224 \end_layout
2225
2226 \end_inset
2227
2228 ) using Version 5.01 of the document class 
2229 \family typewriter
2230 aa.cls
2231 \family default
2232 .
2233  This package can be downloaded from the ftp site
2234 \end_layout
2235
2236 \begin_layout Standard
2237 \begin_inset VSpace medskip
2238 \end_inset
2239
2240
2241 \end_layout
2242
2243 \begin_layout Standard
2244 \align center
2245 \begin_inset Flex URL
2246 status collapsed
2247
2248 \begin_layout Plain Layout
2249
2250 ftp://ftp.edpsciences.org/pub/aa/readme.html
2251 \end_layout
2252
2253 \end_inset
2254
2255
2256 \end_layout
2257
2258 \begin_layout Standard
2259 \begin_inset VSpace medskip
2260 \end_inset
2261
2262
2263 \end_layout
2264
2265 \begin_layout Standard
2266 A manual comes together with that package, and this text is not meant to
2267  replace the original manual but is merely a short guide in how to realize
2268  the correct form of your paper.
2269  
2270 \end_layout
2271
2272 \begin_layout Standard
2273 Please note that the publisher of the journal was changed from Springer
2274  to EDP Sciences starting January 1, 2001.
2275  That change involved also some slight changes to the style files, namely
2276  the removal of the thesaurus command.
2277  The \SpecialChar LyX
2278  class aa supports the newest version of these style files, V 5.01.
2279  If you have an older version installed, please upgrade.
2280  For compatibility, the old (version 4) layout has been kept as 
2281 \family sans
2282 article (A&A V4)
2283 \family default
2284 .
2285  Please refer to the comments in 
2286 \family typewriter
2287 \SpecialChar LyX
2288 Dir/layouts/aapaper.layout
2289 \family default
2290 .
2291 \end_layout
2292
2293 \begin_layout Subsection
2294 Getting started
2295 \end_layout
2296
2297 \begin_layout Standard
2298 It is recommended you start from the example template distributed with \SpecialChar LyX
2299 .
2300  If you are not using a template, note the following settings:
2301 \end_layout
2302
2303 \begin_layout Itemize
2304 Select 
2305 \family sans
2306 article (A&A)
2307 \family default
2308  in the 
2309 \family sans
2310 Document\SpecialChar menuseparator
2311 Settings
2312 \family default
2313  dialog (OK, that one was obvious).
2314 \end_layout
2315
2316 \begin_layout Itemize
2317 Don't change the option 
2318 \family sans
2319 Page
2320 \begin_inset space ~
2321 \end_inset
2322
2323 style
2324 \family default
2325 : Leave it set to 
2326 \family sans
2327 default
2328 \family default
2329 .
2330  The whole layout is done by the macros, you shouldn't change anything.
2331 \end_layout
2332
2333 \begin_layout Subsection
2334 The header block
2335 \end_layout
2336
2337 \begin_layout Standard
2338 First thing to enter is the header information.
2339  It consists of seven entries, of which some are optional.
2340  They are
2341 \end_layout
2342
2343 \begin_layout Itemize
2344
2345 \family sans
2346 Title
2347 \family default
2348 : [required] 
2349 \end_layout
2350
2351 \begin_layout Itemize
2352
2353 \family sans
2354 Subtitle
2355 \family default
2356 : [optional] 
2357 \end_layout
2358
2359 \begin_layout Itemize
2360
2361 \family sans
2362 Author
2363 \family default
2364 : [required]
2365 \end_layout
2366
2367 \begin_layout Itemize
2368
2369 \family sans
2370 Address
2371 \family default
2372 : [required]
2373 \end_layout
2374
2375 \begin_layout Itemize
2376
2377 \family sans
2378 Offprints
2379 \family default
2380 : [optional] if more than one author: whom to contact for offprint requests.
2381 \end_layout
2382
2383 \begin_layout Itemize
2384
2385 \family sans
2386 Mail
2387 \family default
2388 : [optional] mail address for contacts.
2389 \end_layout
2390
2391 \begin_layout Itemize
2392
2393 \family sans
2394 Date
2395 \family default
2396 : [required].
2397  Suggested format is 
2398 \family typewriter
2399 Received: <date>; Accepted <date> 
2400 \end_layout
2401
2402 \begin_layout Standard
2403 There is no need to issue the 
2404 \family typewriter
2405
2406 \backslash
2407 maketitle
2408 \family default
2409  command, this is done automatically by \SpecialChar LyX
2410  when the header is finished.
2411  Although the order of the single header entries doesn't matter it is advised
2412  to keep the above sequence, just to get the best optics and meets the layout
2413  of the real document.
2414 \end_layout
2415
2416 \begin_layout Standard
2417 If you want to place footnotes in the header block, e.
2418 \begin_inset space \thinspace{}
2419 \end_inset
2420
2421 g.
2422 \begin_inset space \space{}
2423 \end_inset
2424
2425 to state your present address, just use the standard footnote via the menu
2426  
2427 \family sans
2428 Insert\SpecialChar menuseparator
2429 Footnote.
2430
2431 \family default
2432  \SpecialChar LyX
2433  will automagically use the term 
2434 \family typewriter
2435
2436 \backslash
2437 thanks{}
2438 \family default
2439  in that case.
2440 \end_layout
2441
2442 \begin_layout Standard
2443 In addition to these topics, the macros use three additional \SpecialChar LaTeX
2444  commands that
2445  have no counterpart in \SpecialChar LyX
2446 :
2447 \end_layout
2448
2449 \begin_layout Itemize
2450
2451 \family typewriter
2452
2453 \backslash
2454 and
2455 \family default
2456  to separate different names for more than one author and institute, respectivel
2457 y.
2458 \end_layout
2459
2460 \begin_layout Itemize
2461
2462 \family typewriter
2463
2464 \backslash
2465 inst{<nr>}
2466 \family default
2467 to mark corresponding author/institute pairs.
2468  The institutes are numbered sequentially as they appear in the 
2469 \family sans
2470 Address
2471 \family default
2472  field, so you have to put a marker to each author.
2473 \end_layout
2474
2475 \begin_layout Itemize
2476
2477 \family typewriter
2478
2479 \backslash
2480 email{address}
2481 \family default
2482  to supply an email address for fast contact.
2483 \end_layout
2484
2485 \begin_layout Standard
2486 In all cases, the appropriate command has to be entered in \SpecialChar LyX
2487  and marked as
2488  \SpecialChar LaTeX
2489  code.
2490  See the examples.
2491  
2492 \end_layout
2493
2494 \begin_layout Subsection
2495 The abstract
2496 \end_layout
2497
2498 \begin_layout Standard
2499 The abstract should immediately follow the header block.
2500  With version 5 the abstract environment was changed to a command, and there
2501  is now a resctriction to only one paragraph.
2502  In addition, it should contain an entry with the keywords.
2503  This is not yet implemented for \SpecialChar LyX
2504 , therefore you have to enter the \SpecialChar LaTeX
2505  command
2506  
2507 \family typewriter
2508
2509 \backslash
2510 keywords{}
2511 \family default
2512  by hand and mark it as \SpecialChar LaTeX
2513  code.
2514  Refer to the example paper.
2515 \end_layout
2516
2517 \begin_layout Subsection
2518 Supported environments
2519 \end_layout
2520
2521 \begin_layout Standard
2522 The A&A paper layout supports the following environments for structuring
2523  your text:
2524 \end_layout
2525
2526 \begin_layout Itemize
2527
2528 \family sans
2529 Standard
2530 \end_layout
2531
2532 \begin_layout Itemize
2533
2534 \family sans
2535 Section
2536 \end_layout
2537
2538 \begin_layout Itemize
2539
2540 \family sans
2541 Subsection
2542 \end_layout
2543
2544 \begin_layout Itemize
2545
2546 \family sans
2547 Subsubsection
2548 \end_layout
2549
2550 \begin_layout Itemize
2551
2552 \family sans
2553 Itemize
2554 \end_layout
2555
2556 \begin_layout Itemize
2557
2558 \family sans
2559 Enumerate
2560 \end_layout
2561
2562 \begin_layout Itemize
2563
2564 \family sans
2565 Description
2566 \end_layout
2567
2568 \begin_layout Itemize
2569
2570 \family sans
2571 Caption
2572 \end_layout
2573
2574 \begin_layout Itemize
2575
2576 \family sans
2577 Abstract
2578 \end_layout
2579
2580 \begin_layout Itemize
2581
2582 \family sans
2583 Acknowledgment
2584 \end_layout
2585
2586 \begin_layout Itemize
2587
2588 \family sans
2589 Bibliography
2590 \end_layout
2591
2592 \begin_layout Itemize
2593
2594 \family sans
2595 \SpecialChar LaTeX
2596
2597 \end_layout
2598
2599 \begin_layout Subsection
2600 Commands not supported by \SpecialChar LyX
2601
2602 \end_layout
2603
2604 \begin_layout Standard
2605 Some commands are not yet supported by the 
2606 \family sans
2607 paper (A&A)
2608 \family default
2609  layout for \SpecialChar LyX
2610 .
2611  Some have already been mentioned.
2612  For the sake of completeness, they are listed all together here:
2613 \end_layout
2614
2615 \begin_layout Itemize
2616
2617 \family typewriter
2618
2619 \backslash
2620 and
2621 \end_layout
2622
2623 \begin_layout Itemize
2624
2625 \family typewriter
2626
2627 \backslash
2628 email
2629 \end_layout
2630
2631 \begin_layout Itemize
2632
2633 \family typewriter
2634
2635 \backslash
2636 appendix
2637 \end_layout
2638
2639 \begin_layout Itemize
2640
2641 \family typewriter
2642
2643 \backslash
2644 authorrunning
2645 \end_layout
2646
2647 \begin_layout Itemize
2648
2649 \family typewriter
2650
2651 \backslash
2652 inst{}
2653 \end_layout
2654
2655 \begin_layout Itemize
2656
2657 \family typewriter
2658
2659 \backslash
2660 keywords{}
2661 \end_layout
2662
2663 \begin_layout Itemize
2664
2665 \family typewriter
2666
2667 \backslash
2668 object{}
2669 \end_layout
2670
2671 \begin_layout Itemize
2672
2673 \family typewriter
2674
2675 \backslash
2676 titlerunning{}
2677 \end_layout
2678
2679 \begin_layout Standard
2680 If you want to use any of these commands, you have to enter them yourself.
2681  
2682 \series bold
2683 Do not forget to mark them as \SpecialChar LaTeX
2684  code!
2685 \end_layout
2686
2687 \begin_layout Subsection
2688 Figure and Table Floats
2689 \end_layout
2690
2691 \begin_layout Standard
2692 \SpecialChar LyX
2693  provides support for the necessary float environments 
2694 \family sans
2695 figure, figure*, table
2696 \family default
2697  and 
2698 \family sans
2699 table*
2700 \family default
2701 , therefore we won't tell much about it here.
2702  Refer to the 
2703 \emph on
2704 User's
2705 \begin_inset space ~
2706 \end_inset
2707
2708 Guide
2709 \emph default
2710 .
2711  Just remember that tables should be left-aligned.
2712  For that, select the table and change the alignment in 
2713 \family sans
2714 Edit\SpecialChar menuseparator
2715 Paragraph
2716 \begin_inset space ~
2717 \end_inset
2718
2719 Settings.
2720 \end_layout
2721
2722 \begin_layout Standard
2723 There is only one special thing: the figures with caption besides the figure.
2724  To create such a figure, you have to do the following:
2725 \end_layout
2726
2727 \begin_layout Enumerate
2728 Create a wide figure float: 
2729 \family sans
2730 Insert\SpecialChar menuseparator
2731 Float\SpecialChar menuseparator
2732 Figure
2733 \family default
2734 , then right click in the figure and select 
2735 \family sans
2736 Span
2737 \begin_inset space ~
2738 \end_inset
2739
2740 columns
2741 \family default
2742 .
2743 \end_layout
2744
2745 \begin_layout Enumerate
2746 Enter your caption text.
2747 \end_layout
2748
2749 \begin_layout Enumerate
2750 Press 
2751 \family sans
2752 Return
2753 \family default
2754  to move the cursor above the caption.
2755 \end_layout
2756
2757 \begin_layout Enumerate
2758 Insert your figure
2759 \end_layout
2760
2761 \begin_layout Enumerate
2762 Position the cursor behind the figure and insert a horizontal fill: 
2763 \family sans
2764 Insert\SpecialChar menuseparator
2765 Special
2766 \begin_inset space ~
2767 \end_inset
2768
2769 Character\SpecialChar menuseparator
2770 Horizontal
2771 \begin_inset space ~
2772 \end_inset
2773
2774 Fill
2775 \family default
2776 .
2777 \end_layout
2778
2779 \begin_layout Enumerate
2780 Switch to \SpecialChar LaTeX
2781  mode: 
2782 \family sans
2783 M-c
2784 \begin_inset space ~
2785 \end_inset
2786
2787 t
2788 \family default
2789 .
2790 \end_layout
2791
2792 \begin_layout Enumerate
2793 Enter 
2794 \family typewriter
2795
2796 \backslash
2797 parbox[b]{55mm}{
2798 \family default
2799 .
2800  
2801 \series bold
2802 Do not close the brace!
2803 \end_layout
2804
2805 \begin_layout Enumerate
2806 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
2807  mode and insert
2808  the closing brace: 
2809 \family sans
2810 M-c
2811 \begin_inset space ~
2812 \end_inset
2813
2814 t
2815 \family default
2816  
2817 \family typewriter
2818 }
2819 \family default
2820 .
2821 \end_layout
2822
2823 \begin_layout Standard
2824 Also, refer to the figures in the example paper.
2825 \end_layout
2826
2827 \begin_layout Subsection
2828 Referee layout
2829 \end_layout
2830
2831 \begin_layout Standard
2832 For submission, the paper has to be formated in a special double-spacing
2833  layout.
2834  For this purpose, you have to give the option 
2835 \family typewriter
2836 referee
2837 \family default
2838  to the documentclass.
2839  This must be done using the extra class options field in the 
2840 \family sans
2841 Document\SpecialChar menuseparator
2842 Settings
2843 \family default
2844  dialog.
2845  Just enter the string 
2846 \family typewriter
2847 referee
2848 \family default
2849  there.
2850 \end_layout
2851
2852 \begin_layout Subsection
2853 The example paper
2854 \end_layout
2855
2856 \begin_layout Standard
2857 The 
2858 \family sans
2859 Examples
2860 \family default
2861  directory contains an example paper written with \SpecialChar LyX
2862 .
2863  It is the example paper from the original macro package, translated to
2864  \SpecialChar LyX
2865 .
2866  Use it for inspiration, and compare the original \SpecialChar LaTeX
2867  code with \SpecialChar LyX
2868  way of writing.
2869 \end_layout
2870
2871 \begin_layout Section
2872 AAS\SpecialChar TeX
2873
2874 \end_layout
2875
2876 \begin_layout Standard
2877 by 
2878 \noun on
2879 Mike Ressler
2880 \end_layout
2881
2882 \begin_layout Subsection
2883 Introduction
2884 \end_layout
2885
2886 \begin_layout Standard
2887 AAS\SpecialChar TeX
2888  is a set of macros produced by the American Astronomical Society to
2889  facilitate electronic manuscript submission to the three journals they
2890  publish: the Astrophysical Journal (including the Letters and Supplement),
2891  the Astronomical Journal, and the Publications of the Astronomical Society
2892  of the Pacific.
2893  \SpecialChar LyX
2894  has proven to be an excellent tool for generating these documents, especially
2895  given its equation, citation, and figure handling capabilities.
2896  \SpecialChar LyX
2897  requires version 5.0 (or higher) of these macros; preferably 5.2, which
2898  is the version described here, or higher.
2899  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
2900 2.09 and are fundamentally
2901  incompatible with \SpecialChar LyX
2902 .
2903  The AAS\SpecialChar TeX
2904  package may be downloaded from the AAS\SpecialChar TeX
2905  Web site
2906 \end_layout
2907
2908 \begin_layout Standard
2909 \begin_inset VSpace medskip
2910 \end_inset
2911
2912
2913 \end_layout
2914
2915 \begin_layout Standard
2916 \align center
2917 \begin_inset Flex URL
2918 status collapsed
2919
2920 \begin_layout Plain Layout
2921
2922 https://aas.org/aastex/aastex-downloads
2923 \end_layout
2924
2925 \end_inset
2926
2927
2928 \end_layout
2929
2930 \begin_layout Standard
2931 \begin_inset VSpace medskip
2932 \end_inset
2933
2934
2935 \end_layout
2936
2937 \begin_layout Standard
2938 A complete user guide is contained in that package and you should familiarize
2939  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
2940 .
2941  \SpecialChar LyX
2942  will not reduce the need to figure out all the AAS\SpecialChar TeX
2943  commands, it will only
2944  reduce the drudgery of typing everything in.
2945  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
2946  document conforms
2947  completely to the requirements of the journal to which you are submitting
2948  your paper.
2949 \end_layout
2950
2951 \begin_layout Subsection
2952 Starting a New Paper
2953 \end_layout
2954
2955 \begin_layout Standard
2956 I strongly suggest that you start with the AAS\SpecialChar TeX
2957  template file.
2958  Click on 
2959 \family sans
2960 File\SpecialChar menuseparator
2961 New from
2962 \family default
2963  
2964 \family sans
2965 Template
2966 \family default
2967 , enter the new file name, then choose the 
2968 \family typewriter
2969 aastex.lyx
2970 \family default
2971  template.
2972  This will show the most common fields found in a manuscript.
2973  Simply overwrite the existing text (including the brackets, 
2974 \family typewriter
2975 <>
2976 \family default
2977 ) with the correct information.
2978  Many of the AAS\SpecialChar TeX
2979  commands and environments can be implemented directly in
2980  \SpecialChar LyX
2981 , but some cannot: most noticeably 
2982 \family typewriter
2983
2984 \backslash
2985 altaffilmark
2986 \family default
2987  and 
2988 \family typewriter
2989
2990 \backslash
2991 altaffiltext
2992 \family default
2993 , which should stick out like a sore thumb if you actually just opened the
2994  template file.
2995  For commands such as these, the \SpecialChar LaTeX
2996  code must be entered directly and marked
2997  as such.
2998  Such commands are referred to as \SpecialChar TeX
2999  code, or Evil Red Text.
3000  I tried to minimize the amount of \SpecialChar TeX
3001  code needed in an AAS\SpecialChar TeX
3002  document, but
3003  there is still a bit more required than any of us would like.
3004 \end_layout
3005
3006 \begin_layout Subsection
3007 Finishing Your Paper
3008 \end_layout
3009
3010 \begin_layout Standard
3011 When the paper is finished to your satisfaction and previews/prints correctly,
3012  there are a few 
3013 \begin_inset Quotes eld
3014 \end_inset
3015
3016 postprocessing
3017 \begin_inset Quotes erd
3018 \end_inset
3019
3020  actions which need to be done before you submit it to the journals.
3021  
3022 \end_layout
3023
3024 \begin_layout Enumerate
3025 Export your paper as a \SpecialChar LaTeX
3026  file (
3027 \family sans
3028 File\SpecialChar menuseparator
3029 Export\SpecialChar menuseparator
3030 \SpecialChar LaTeX
3031
3032 \family default
3033 ).
3034  
3035 \end_layout
3036
3037 \begin_layout Enumerate
3038 Edit the resulting 
3039 \family typewriter
3040 .tex
3041 \family default
3042  file with your favorite text editor
3043 \end_layout
3044
3045 \begin_deeper
3046 \begin_layout Enumerate
3047 remove the comment lines before the 
3048 \family typewriter
3049
3050 \backslash
3051 documentclass
3052 \family default
3053  command
3054 \end_layout
3055
3056 \begin_layout Enumerate
3057 remove the 
3058 \family typewriter
3059
3060 \backslash
3061 usepackage...{fontenc}
3062 \family default
3063  line if it appears (usually just after 
3064 \family typewriter
3065
3066 \backslash
3067 documentclass
3068 \family default
3069 }; also remove the 
3070 \family typewriter
3071
3072 \backslash
3073 secnumdepth
3074 \family default
3075  line if it appears.
3076 \end_layout
3077
3078 \begin_layout Enumerate
3079 remove everything between (and including) the 
3080 \family typewriter
3081
3082 \backslash
3083 makeatletter
3084 \family default
3085  and 
3086 \family typewriter
3087
3088 \backslash
3089 makeatother
3090 \family default
3091  commands, except for any commands you specifically put into the \SpecialChar LaTeX
3092  preamble
3093  (which should appear immediately after the 
3094 \begin_inset Quotes eld
3095 \end_inset
3096
3097 User specified \SpecialChar LaTeX
3098  commands
3099 \begin_inset Quotes erd
3100 \end_inset
3101
3102  comment in the 
3103 \family typewriter
3104 .tex
3105 \family default
3106  file).
3107 \end_layout
3108
3109 \end_deeper
3110 \begin_layout Enumerate
3111 Run the resulting file through \SpecialChar LaTeX
3112  to make sure it still processes correctly.
3113 \end_layout
3114
3115 \begin_layout Enumerate
3116 Reread the journal requirements to make sure your filenames and formats
3117  are correct.
3118 \end_layout
3119
3120 \begin_layout Enumerate
3121 Submit it.
3122 \end_layout
3123
3124 \begin_layout Subsection
3125 Comments On Specific Commands
3126 \end_layout
3127
3128 \begin_layout Standard
3129 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
3130  commands: the
3131  AAS\SpecialChar TeX
3132  User Guide (
3133 \family typewriter
3134 aasguide.tex
3135 \family default
3136 ) gives a good description of each.
3137  Thus it's probably easiest for me to go down the list as found in the guide
3138  and offer comments where necessary.
3139  So let's begin \SpecialChar ldots
3140
3141 \end_layout
3142
3143 \begin_layout Subsubsection
3144 Things that work as expected
3145 \end_layout
3146
3147 \begin_layout Standard
3148 Because they work as you might expect, I simply list them and the section
3149  they are found in: 
3150 \family typewriter
3151
3152 \backslash
3153 documentclass
3154 \family default
3155  (2.1.1), 
3156 \family typewriter
3157
3158 \backslash
3159 begin{document}
3160 \family default
3161  (2.2), 
3162 \family typewriter
3163
3164 \backslash
3165 title
3166 \family default
3167  (2.3), 
3168 \family typewriter
3169
3170 \backslash
3171 author
3172 \family default
3173  (2.3), 
3174 \family typewriter
3175
3176 \backslash
3177 affil
3178 \family default
3179  (2.3), 
3180 \family typewriter
3181
3182 \backslash
3183 abstract
3184 \family default
3185  (2.4), 
3186 \family typewriter
3187
3188 \backslash
3189 keywords
3190 \family default
3191  (2.5), 
3192 \family typewriter
3193
3194 \backslash
3195 section
3196 \family default
3197  (2.7), 
3198 \family typewriter
3199
3200 \backslash
3201 subsection
3202 \family default
3203  (2.7), 
3204 \family typewriter
3205
3206 \backslash
3207 subsubsection
3208 \family default
3209  (2.7), 
3210 \family typewriter
3211
3212 \backslash
3213 paragraph
3214 \family default
3215  (2.7), 
3216 \family typewriter
3217
3218 \backslash
3219 facility
3220 \family default
3221  (2.10), 
3222 \family typewriter
3223
3224 \backslash
3225 begin{displaymath}
3226 \family default
3227  (2.12), 
3228 \family typewriter
3229
3230 \backslash
3231 begin{equation}
3232 \family default
3233  (2.12), 
3234 \family typewriter
3235
3236 \backslash
3237 begin{eqnarray}
3238 \family default
3239  (2.12), 
3240 \family typewriter
3241
3242 \backslash
3243 begin{mathletters}
3244 \family default
3245  (2.12), 
3246 \family typewriter
3247
3248 \backslash
3249 begin{thebibliography}
3250 \family default
3251  (2.13.1), 
3252 \family typewriter
3253
3254 \backslash
3255 bibitem
3256 \family default
3257  (2.13.2), all the cite commands and their variations (2.13.2), the generic
3258  graphicx figure commands (2.14.1), 
3259 \family typewriter
3260
3261 \backslash
3262 begin{table}
3263 \family default
3264  (2.15.4), 
3265 \family typewriter
3266
3267 \backslash
3268 begin{tabular}
3269 \family default
3270  (2.15.4), 
3271 \family typewriter
3272
3273 \backslash
3274 caption
3275 \family default
3276  (2.15.4), 
3277 \family typewriter
3278
3279 \backslash
3280 label
3281 \family default
3282  (2.15.4, amongst other places), 
3283 \family typewriter
3284
3285 \backslash
3286 tablerefs
3287 \family default
3288  (2.15.5), 
3289 \family typewriter
3290
3291 \backslash
3292 tablecomments
3293 \family default
3294  (2.15.5), 
3295 \family typewriter
3296
3297 \backslash
3298 url
3299 \family default
3300  (2.17.4), 
3301 \family typewriter
3302
3303 \backslash
3304 end{document}
3305 \family default
3306  (2.18).
3307 \end_layout
3308
3309 \begin_layout Standard
3310 The following style options also work correctly: 
3311 \family typewriter
3312 longabstract
3313 \family default
3314  (2.4), 
3315 \family typewriter
3316 preprint
3317 \family default
3318  (3.2.1), 
3319 \family typewriter
3320 preprint2
3321 \family default
3322  (3.2.2), 
3323 \family typewriter
3324 eqsecnum
3325 \family default
3326  (3.3), 
3327 \family typewriter
3328 flushrt
3329 \family default
3330  (3.4).
3331  Simply put them in the 
3332 \family sans
3333 Options
3334 \family default
3335  box in 
3336 \family sans
3337 Layout\SpecialChar menuseparator
3338 Document
3339 \family default
3340 .
3341 \end_layout
3342
3343 \begin_layout Subsubsection
3344 Things that work, but require more comment
3345 \end_layout
3346
3347 \begin_layout Standard
3348 The following items work, but require a little more discussion:
3349 \end_layout
3350
3351 \begin_layout Itemize
3352 These items are reserved for use by the journal editors, but you can put
3353  them into the \SpecialChar LaTeX
3354  preamble if you feel compelled to do so: 
3355 \family typewriter
3356
3357 \backslash
3358 received
3359 \family default
3360
3361 \family typewriter
3362
3363 \backslash
3364 revised
3365 \family default
3366
3367 \family typewriter
3368
3369 \backslash
3370 accepted
3371 \family default
3372
3373 \family typewriter
3374
3375 \backslash
3376 ccc
3377 \family default
3378
3379 \family typewriter
3380
3381 \backslash
3382 cpright
3383 \family default
3384  (all from 2.1.3)
3385 \end_layout
3386
3387 \begin_layout Itemize
3388 These items may be placed in the \SpecialChar LaTeX
3389  preamble, and are included as blanks in
3390  the template file: 
3391 \family typewriter
3392
3393 \backslash
3394 slugcomment
3395 \family default
3396  (2.1.4), 
3397 \family typewriter
3398
3399 \backslash
3400 shorttitle
3401 \family default
3402  (2.1.5), 
3403 \family typewriter
3404
3405 \backslash
3406 shortauthors
3407 \family default
3408  (2.1.5)
3409 \end_layout
3410
3411 \begin_layout Itemize
3412
3413 \family typewriter
3414
3415 \backslash
3416 email
3417 \family default
3418  (2.3) – can only be used 
3419 \begin_inset Quotes eld
3420 \end_inset
3421
3422 standalone
3423 \begin_inset Quotes erd
3424 \end_inset
3425
3426 , not in the middle of a paragraph.
3427  Use \SpecialChar TeX
3428  code if you need to embed it.
3429 \end_layout
3430
3431 \begin_layout Itemize
3432
3433 \family typewriter
3434
3435 \backslash
3436 and
3437 \family default
3438  (2.3) – will have extra {} after it.
3439  This should not cause an error.
3440 \end_layout
3441
3442 \begin_layout Itemize
3443
3444 \family typewriter
3445
3446 \backslash
3447 notetoeditor
3448 \family default
3449  (2.6) – can only be used 
3450 \begin_inset Quotes eld
3451 \end_inset
3452
3453 standalone
3454 \begin_inset Quotes erd
3455 \end_inset
3456
3457 , not in the middle of a paragraph.
3458  Use \SpecialChar TeX
3459  code if you need to embed it.
3460 \end_layout
3461
3462 \begin_layout Itemize
3463
3464 \family typewriter
3465
3466 \backslash
3467 placetable
3468 \family default
3469  (2.8) – can't insert a cross-reference tag, you must type the tag name by
3470  hand
3471 \end_layout
3472
3473 \begin_layout Itemize
3474
3475 \family typewriter
3476
3477 \backslash
3478 placefigure
3479 \family default
3480  (2.8) – same as for 
3481 \family typewriter
3482
3483 \backslash
3484 placetable
3485 \end_layout
3486
3487 \begin_layout Itemize
3488
3489 \family typewriter
3490
3491 \backslash
3492 acknowledgements
3493 \family default
3494  (2.9) – will have extra {} after it.
3495  This should not cause an error.
3496 \end_layout
3497
3498 \begin_layout Itemize
3499
3500 \family typewriter
3501
3502 \backslash
3503 appendix
3504 \family default
3505  (2.11) – will have extra {} after it.
3506  This should not cause an error.
3507 \end_layout
3508
3509 \begin_layout Itemize
3510
3511 \family typewriter
3512
3513 \backslash
3514 figcaption
3515 \family default
3516  (2.14.2) – you can insert an optional filename argument by placing the cursor
3517  at the beginning of the text and selecting 
3518 \family sans
3519 Insert\SpecialChar menuseparator
3520 Short Title
3521 \family default
3522 .
3523  
3524 \begin_inset Quotes eld
3525 \end_inset
3526
3527 Short Title
3528 \begin_inset Quotes erd
3529 \end_inset
3530
3531  inserts an optional argument of the type needed by 
3532 \family typewriter
3533
3534 \backslash
3535 figcaption
3536 \family default
3537 .
3538  Hopefully it will be renamed someday.
3539 \end_layout
3540
3541 \begin_layout Itemize
3542
3543 \family typewriter
3544
3545 \backslash
3546 objectname
3547 \family default
3548  (2.17.1) – same as 
3549 \family typewriter
3550
3551 \backslash
3552 figcaption
3553 \family default
3554  for the catalog ID optional parameter
3555 \end_layout
3556
3557 \begin_layout Itemize
3558
3559 \family typewriter
3560
3561 \backslash
3562 dataset
3563 \family default
3564  (2.17.1) – same as 
3565 \family typewriter
3566
3567 \backslash
3568 figcaption
3569 \family default
3570  for the catalog ID optional parameter
3571 \end_layout
3572
3573 \begin_layout Subsubsection
3574 Things not implemented, use \SpecialChar TeX
3575  code
3576 \end_layout
3577
3578 \begin_layout Standard
3579
3580 \family typewriter
3581
3582 \backslash
3583 altaffilmark
3584 \family default
3585  (2.3), 
3586 \family typewriter
3587
3588 \backslash
3589 altaffiltext
3590 \family default
3591  (2.3), 
3592 \family typewriter
3593
3594 \backslash
3595 eqnum
3596 \family default
3597  (2.12), 
3598 \family typewriter
3599
3600 \backslash
3601 setcounter{equation}
3602 \family default
3603  (2.12), Journal name abbreviations (2.13.4), 
3604 \family typewriter
3605
3606 \backslash
3607 figurenum
3608 \family default
3609  (2.14.1), 
3610 \family typewriter
3611
3612 \backslash
3613 epsscale
3614 \family default
3615  (2.14.1), 
3616 \family typewriter
3617
3618 \backslash
3619 plotone
3620 \family default
3621  (2.14.1), 
3622 \family typewriter
3623
3624 \backslash
3625 plottwo
3626 \family default
3627  (2.14.1), 
3628 \family typewriter
3629
3630 \backslash
3631 tablenum
3632 \family default
3633  (2.15.4), 
3634 \family typewriter
3635
3636 \backslash
3637 tableline
3638 \family default
3639  (2.15.4, insert it as the first element in the lefthand cell after where
3640  you want it.
3641  Don't use any of \SpecialChar LyX
3642 's rules in the table), 
3643 \family typewriter
3644
3645 \backslash
3646 tablenotemark
3647 \family default
3648  (2.15.5), 
3649 \family typewriter
3650
3651 \backslash
3652 tablenotetext
3653 \family default
3654  (2.15.5), much of Misc (2.17, except 
3655 \family typewriter
3656
3657 \backslash
3658 objectname
3659 \family default
3660
3661 \family typewriter
3662
3663 \backslash
3664 dataset
3665 \family default
3666
3667 \family typewriter
3668
3669 \backslash
3670 url
3671 \family default
3672 , and 
3673 \family typewriter
3674
3675 \backslash
3676 email
3677 \family default
3678 ; see above), 
3679 \family typewriter
3680
3681 \backslash
3682 singlespace
3683 \family default
3684  (3.1), 
3685 \family typewriter
3686
3687 \backslash
3688 doublespace
3689 \family default
3690  (3.1), 
3691 \family typewriter
3692
3693 \backslash
3694 onecolumn
3695 \family default
3696  (3.2), 
3697 \family typewriter
3698
3699 \backslash
3700 twocolumn
3701 \family default
3702  (3.2)
3703 \end_layout
3704
3705 \begin_layout Subsubsection
3706 Things that cannot be implemented
3707 \end_layout
3708
3709 \begin_layout Standard
3710 \SpecialChar ldots
3711  at least in any meaningful sort of way, so I suggest ignoring them.
3712  They are the references environment (2.13.3), and the deluxetable environment
3713  (2.15).
3714  If you really, really need to use deluxetable, I suggest editing it in
3715  a separate file with a text editor, then using 
3716 \family sans
3717 Insert\SpecialChar menuseparator
3718 Child
3719 \begin_inset space ~
3720 \end_inset
3721
3722 Document
3723 \family default
3724  to include it in your \SpecialChar LyX
3725  document.
3726  See the 
3727 \family typewriter
3728 aas_sample.lyx
3729 \family default
3730  file to see an example of this.
3731 \end_layout
3732
3733 \begin_layout Subsection
3734 FAQs, Tips, Tricks, and Other Ruminations
3735 \end_layout
3736
3737 \begin_layout Subsubsection
3738 Getting \SpecialChar LyX
3739  and AAS\SpecialChar TeX
3740  to cooperate
3741 \end_layout
3742
3743 \begin_layout Standard
3744 It can be a bit tricky to get \SpecialChar LyX
3745  to recognize a new layout and document class.
3746  When all else fails, do this:
3747 \end_layout
3748
3749 \begin_layout Enumerate
3750 Make certain that \SpecialChar LaTeX
3751  can find AAS\SpecialChar TeX
3752 .
3753  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
3754  distribution into a
3755  directory completely unrelated to \SpecialChar LaTeX
3756  or AAS\SpecialChar TeX
3757  and run \SpecialChar LaTeX
3758  on 
3759 \family typewriter
3760 sample.tex
3761 \family default
3762 .
3763 \end_layout
3764
3765 \begin_layout Enumerate
3766 Make certain that 
3767 \family typewriter
3768 aastex.layout
3769 \family default
3770  appears in \SpecialChar LyX
3771 's 
3772 \family typewriter
3773 layouts
3774 \family default
3775  folder
3776 \end_layout
3777
3778 \begin_layout Enumerate
3779 Rerun 
3780 \family sans
3781 Tools\SpecialChar menuseparator
3782 Reconfigure
3783 \family default
3784  in \SpecialChar LyX
3785 , then restart \SpecialChar LyX
3786 .
3787 \end_layout
3788
3789 \begin_layout Enumerate
3790 Open a regular new file, not from a template.
3791  Does AAS\SpecialChar TeX
3792  appear in the class list in 
3793 \family sans
3794 Document\SpecialChar menuseparator
3795 Settings
3796 \family default
3797 ?
3798 \end_layout
3799
3800 \begin_layout Standard
3801 If you get a warning from an existing AAS\SpecialChar TeX
3802  document about not being able
3803  to find the AAS\SpecialChar TeX
3804  layout or a message about 
3805 \begin_inset Quotes eld
3806 \end_inset
3807
3808 You should not mix title layouts with normal ones
3809 \begin_inset Quotes erd
3810 \end_inset
3811
3812 , things haven't been installed correctly.
3813 \end_layout
3814
3815 \begin_layout Subsubsection
3816 \SpecialChar LaTeX
3817  error processing a table 
3818 \end_layout
3819
3820 \begin_layout Standard
3821 \SpecialChar LyX
3822 , by default, attempts to center the table caption/title.
3823  This seems to produce a bad interaction in AAS\SpecialChar TeX
3824  so you should click somewhere
3825  in the caption/title, then select 
3826 \family sans
3827 Edit\SpecialChar menuseparator
3828 Paragraph
3829 \begin_inset space ~
3830 \end_inset
3831
3832 Settings
3833 \family default
3834 , then set the 
3835 \family sans
3836 Alignment
3837 \family default
3838  to 
3839 \family sans
3840 Block
3841 \family default
3842 .
3843  This took care of it for me.
3844 \end_layout
3845
3846 \begin_layout Subsubsection
3847 References
3848 \end_layout
3849
3850 \begin_layout Standard
3851 A couple of things: 1) I have noticed some funny spacing in the reference
3852  entries in the text.
3853  When you enter the bibliography item data, make sure their is 
3854 \emph on
3855 no
3856 \emph default
3857  space between the last author and the parenthesis setting off the year;
3858  
3859 \emph on
3860 e.
3861 \begin_inset space \thinspace{}
3862 \end_inset
3863
3864 g.
3865 \begin_inset space \space{}
3866 \end_inset
3867
3868
3869 \emph default
3870 type 
3871 \family typewriter
3872 Ressler(1992)
3873 \family default
3874 , not 
3875 \family typewriter
3876 Ressler (1992)
3877 \family default
3878 .
3879  2) Entering the references at all is not obvious.
3880  The easiest thing is to start typing your first reference at the end of
3881  the document, then mark it as type 
3882 \family sans
3883 References
3884 \family default
3885 .
3886  That will put a small gray box in front of what you just typed.
3887  Click on the box to fill in the rest of the information.
3888  For new references, go to the end of an existing reference and press return.
3889  That will create a new line with its own box, etc.
3890 \end_layout
3891
3892 \begin_layout Subsubsection
3893 Including EPS files
3894 \end_layout
3895
3896 \begin_layout Standard
3897 Even though AAS\SpecialChar TeX
3898  provides its own figure commands (
3899 \family typewriter
3900
3901 \backslash
3902 plotone
3903 \family default
3904 , for example), I much prefer \SpecialChar LaTeX
3905 's standard figure commands (with the default
3906  graphicx).
3907  You can insert the 
3908 \family typewriter
3909
3910 \backslash
3911 plotone
3912 \family default
3913 , etc.
3914 \begin_inset space ~
3915 \end_inset
3916
3917 commands as \SpecialChar TeX
3918  code into a Figure Float box if you desire, but I never have
3919  much luck getting the layout right.
3920  With the standard graphics, \SpecialChar LyX
3921  will insert a 
3922 \family typewriter
3923
3924 \backslash
3925 usepackage{graphicx}
3926 \family default
3927  command into the \SpecialChar LaTeX
3928  preamble and handle the figures in the standard \SpecialChar LaTeX2e
3929  way,
3930  interspersing the figures in the text.
3931  I believe ApJ accepts figures exactly this way now; AJ might still use
3932  the 
3933 \begin_inset Quotes eld
3934 \end_inset
3935
3936 stack everything at the end
3937 \begin_inset Quotes erd
3938 \end_inset
3939
3940  technique.
3941 \end_layout
3942
3943 \begin_layout Subsubsection
3944 Things I could have done, but didn't
3945 \end_layout
3946
3947 \begin_layout Standard
3948 There are a few 
3949 \begin_inset Quotes eld
3950 \end_inset
3951
3952 pretty
3953 \begin_inset Quotes erd
3954 \end_inset
3955
3956  things I could have implemented, but chose not to.
3957  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
3958  window,
3959  even though it is double-spaced in the paper manuscript.
3960  Also, I chose not to make separate layouts for the preprint and preprint2
3961  styles.
3962  Since I assume you will spend most of your time in the plain manuscript
3963  mode anyway, I decided not to chew up more disk space with this.
3964  
3965 \end_layout
3966
3967 \begin_layout Subsection
3968 Final Caveat
3969 \end_layout
3970
3971 \begin_layout Standard
3972 Your mileage may vary.
3973  I've now had papers published by both ApJ and AJ that have had 98% of the
3974  effort done in \SpecialChar LyX
3975 ; the last 2% was the \SpecialChar LaTeX
3976  post-processing and a few cleanups.
3977  I have had no trouble with the submission process, and I'm sure the journals
3978  were never aware that there might be a difference.
3979  So, go forth and publish!
3980 \end_layout
3981
3982 \begin_layout Section
3983 AMS \SpecialChar LaTeX
3984
3985 \end_layout
3986
3987 \begin_layout Standard
3988 by 
3989 \noun on
3990 David Johnson
3991 \noun default
3992 ; updated by 
3993 \noun on
3994 Richard Heck
3995 \end_layout
3996
3997 \begin_layout Standard
3998 \begin_inset VSpace bigskip
3999 \end_inset
4000
4001
4002 \end_layout
4003
4004 \begin_layout Standard
4005 \noindent
4006 The AMS \SpecialChar LaTeX
4007  layouts are set up to conform to suggested styles for mathematical
4008  papers to be submitted to American Mathematical Society publications.
4009  The layouts are not tailored to a specific journal, but easily can be.
4010  You should refer to the AMS documentation for specific instructions for
4011  each journal (usually it will entail only changing a single line in the
4012  \SpecialChar TeX
4013  output).
4014  That documentation is available on the Web at 
4015 \begin_inset Flex URL
4016 status open
4017
4018 \begin_layout Plain Layout
4019
4020 http://www.ams.org
4021 \end_layout
4022
4023 \end_inset
4024
4025  or by ftp at 
4026 \begin_inset Flex URL
4027 status open
4028
4029 \begin_layout Plain Layout
4030
4031 ftp://ftp.ams.org/pub/tex/amslatex/
4032 \end_layout
4033
4034 \end_inset
4035
4036 .
4037  These layouts are appropriate, and useful, for any mathematical writing.
4038  
4039 \end_layout
4040
4041 \begin_layout Standard
4042 There are two basic AMS \SpecialChar LaTeX
4043  layouts: 
4044 \end_layout
4045
4046 \begin_layout Itemize
4047 amsart: The standard AMS article format.
4048 \end_layout
4049
4050 \begin_layout Itemize
4051 amsbook: the standard AMS book (really, monograph) format.
4052  
4053 \end_layout
4054
4055 \begin_layout Standard
4056 The layouts themselves contain only the minimum necessary to use the AMS
4057  classes.
4058  They do not, in particular, contain any of the `theorem' environments used
4059  for setting theorems, lemmas, and the like.
4060  These are contained, instead, in the 
4061 \begin_inset Flex Code
4062 status collapsed
4063
4064 \begin_layout Plain Layout
4065 Theorems (AMS)
4066 \end_layout
4067
4068 \end_inset
4069
4070  module, which is loaded by default when you select one of the AMS classes.
4071  (It can also be used with other classes and can be removed, if you would
4072  rather use something else.) Less commonly used environments are in the 
4073 \begin_inset Flex Code
4074 status collapsed
4075
4076 \begin_layout Plain Layout
4077 Theorems (AMS-Extended)
4078 \end_layout
4079
4080 \end_inset
4081
4082  module, which must be loaded manually.
4083 \end_layout
4084
4085 \begin_layout Standard
4086 By default, theorems and the like are numbered consecutively throughout
4087  the document, but this may be modified by loading the module 
4088 \begin_inset Flex Code
4089 status collapsed
4090
4091 \begin_layout Plain Layout
4092 Theorems (Order by Section)
4093 \end_layout
4094
4095 \end_inset
4096
4097  or, if you are using 
4098 \begin_inset Flex Code
4099 status collapsed
4100
4101 \begin_layout Plain Layout
4102 book (AMS)
4103 \end_layout
4104
4105 \end_inset
4106
4107 , the module 
4108 \begin_inset Flex Code
4109 status collapsed
4110
4111 \begin_layout Plain Layout
4112 Theorems (Order by Chapter)
4113 \end_layout
4114
4115 \end_inset
4116
4117 .
4118  These will number the results as 
4119 \begin_inset Formula $n.m$
4120 \end_inset
4121
4122 , where the first number refers to the section (or chapter) and the second
4123  refers to the total number of results so far in that section (or chapter).
4124  Many environments are also available unnumbered.
4125  These are indicated by an asterisk at the end.
4126  If you happen to want 
4127 \emph on
4128 only
4129 \emph default
4130  unnumbered results, the module 
4131 \begin_inset Flex Code
4132 status collapsed
4133
4134 \begin_layout Plain Layout
4135 Theorems (Starred)
4136 \end_layout
4137
4138 \end_inset
4139
4140  provides that option.
4141 \end_layout
4142
4143 \begin_layout Standard
4144 Note that these modules do not 
4145 \emph on
4146 have
4147 \emph default
4148  to be used with the AMS classes.
4149  It is perfectly possible to use the 
4150 \begin_inset Flex Code
4151 status collapsed
4152
4153 \begin_layout Plain Layout
4154 Theorems (AMS)
4155 \end_layout
4156
4157 \end_inset
4158
4159  module, and the others mentioned, with other classes, such as 
4160 \begin_inset Flex Code
4161 status collapsed
4162
4163 \begin_layout Plain Layout
4164 article
4165 \end_layout
4166
4167 \end_inset
4168
4169
4170 \begin_inset Flex Code
4171 status collapsed
4172
4173 \begin_layout Plain Layout
4174 report
4175 \end_layout
4176
4177 \end_inset
4178
4179
4180 \begin_inset Flex Code
4181 status collapsed
4182
4183 \begin_layout Plain Layout
4184 book (KOMA-script)
4185 \end_layout
4186
4187 \end_inset
4188
4189 , and so forth.
4190 \end_layout
4191
4192 \begin_layout Subsection
4193 What these layouts provide
4194 \end_layout
4195
4196 \begin_layout Standard
4197 There is a long list of included environments provided by these layouts.
4198  In AMS-\SpecialChar LaTeX
4199 , there is, in fact, an opportunity to define an unlimited variety
4200  of `theorem' environments.
4201  However, the AMS recommends the environments that are available in \SpecialChar LyX
4202 .
4203  
4204 \end_layout
4205
4206 \begin_layout Standard
4207 The following environments—as well as the standard environments, such as
4208  
4209 \begin_inset Flex Noun
4210 status collapsed
4211
4212 \begin_layout Plain Layout
4213 section
4214 \end_layout
4215
4216 \end_inset
4217
4218
4219 \begin_inset Flex Noun
4220 status collapsed
4221
4222 \begin_layout Plain Layout
4223 bibliography
4224 \end_layout
4225
4226 \end_inset
4227
4228
4229 \begin_inset Flex Noun
4230 status collapsed
4231
4232 \begin_layout Plain Layout
4233 title
4234 \end_layout
4235
4236 \end_inset
4237
4238
4239 \begin_inset Flex Noun
4240 status collapsed
4241
4242 \begin_layout Plain Layout
4243 author
4244 \end_layout
4245
4246 \end_inset
4247
4248 , and 
4249 \begin_inset Flex Noun
4250 status collapsed
4251
4252 \begin_layout Plain Layout
4253 date
4254 \end_layout
4255
4256 \end_inset
4257
4258 —are provided by 
4259 \begin_inset Flex Code
4260 status collapsed
4261
4262 \begin_layout Plain Layout
4263 article (AMS)
4264 \end_layout
4265
4266 \end_inset
4267
4268  and 
4269 \begin_inset Flex Code
4270 status collapsed
4271
4272 \begin_layout Plain Layout
4273 book (AMS)
4274 \end_layout
4275
4276 \end_inset
4277
4278 :
4279 \end_layout
4280
4281 \begin_layout Description
4282 Address This should be the author's permanent address.
4283 \end_layout
4284
4285 \begin_layout Description
4286 Current
4287 \begin_inset space ~
4288 \end_inset
4289
4290 Address This should be the author's temporary address at the time of submission,
4291  if different from the Address.
4292 \end_layout
4293
4294 \begin_layout Description
4295 Email Author's e-mail address
4296 \end_layout
4297
4298 \begin_layout Description
4299 URL Author's Web address, if desired.
4300 \end_layout
4301
4302 \begin_layout Description
4303 Keywords Key words or phrases used to identify specific topics discussed
4304  in the paper.
4305 \end_layout
4306
4307 \begin_layout Description
4308 Subjectclass These refer to the AMS Subject Classifications, published and
4309  described in 
4310 \emph on
4311 Mathematical Reviews
4312 \emph default
4313 .
4314  These are also available online at the AMS cites listed above.
4315 \end_layout
4316
4317 \begin_layout Description
4318 Thanks
4319 \end_layout
4320
4321 \begin_layout Description
4322 Dedicatory
4323 \end_layout
4324
4325 \begin_layout Description
4326 Translator
4327 \end_layout
4328
4329 \begin_layout Standard
4330 The following environments are provided by both the 
4331 \begin_inset Flex Code
4332 status collapsed
4333
4334 \begin_layout Plain Layout
4335 Theorems
4336 \end_layout
4337
4338 \end_inset
4339
4340  and 
4341 \begin_inset Flex Code
4342 status collapsed
4343
4344 \begin_layout Plain Layout
4345 Theorems (AMS)
4346 \end_layout
4347
4348 \end_inset
4349
4350  modules, in the latter case in both starred (unnumbered) and unstarred
4351  (numbered) versions.
4352  These same environments are provided only in the starred versions by the
4353  
4354 \begin_inset Flex Code
4355 status collapsed
4356
4357 \begin_layout Plain Layout
4358 Theorems (Starred)
4359 \end_layout
4360
4361 \end_inset
4362
4363  module:
4364 \end_layout
4365
4366 \begin_layout Theorem
4367 This is typically used for the statements of major results.
4368  
4369 \end_layout
4370
4371 \begin_layout Corollary*
4372 This is used for statements which follow fairly directly from previous statement
4373 s.
4374  Again, these can be major results.
4375  
4376 \end_layout
4377
4378 \begin_layout Lemma
4379 These are smaller results needed to prove other statements.
4380 \end_layout
4381
4382 \begin_layout Proposition
4383 These are less major results which (hopefully) add to the general theory
4384  being discussed.
4385 \end_layout
4386
4387 \begin_layout Conjecture
4388 These are statements provided without justification, which the author does
4389  not know how to prove, but which seem to be true (to the author, at least).
4390 \end_layout
4391
4392 \begin_layout Definition*
4393 Guess what this is for.
4394  The font is different for this environment than for the previous ones.
4395  
4396 \end_layout
4397
4398 \begin_layout Example*
4399 Used for examples illustrating proven results.
4400 \end_layout
4401
4402 \begin_layout Problem
4403 It's not really known what this is for.
4404  You should figure it out.
4405 \end_layout
4406
4407 \begin_layout Exercise*
4408 Write a description for this one.
4409 \end_layout
4410
4411 \begin_layout Remark
4412 This environment is also a type of theorem, usually a lesser sort of observation.
4413 \end_layout
4414
4415 \begin_layout Claim*
4416 Often used in the course of giving a proof of a larger result.
4417 \end_layout
4418
4419 \begin_layout Case
4420 Generally, these are used to break up long arguments, using specific instances
4421  of some condition.
4422  
4423 \end_layout
4424
4425 \begin_layout Case
4426 The numbering scheme for cases is on its own, not together with other numbered
4427  statements.
4428  
4429 \end_layout
4430
4431 \begin_layout Proof
4432 At the end of this environment, a QED symbol (usually a square, but it can
4433  vary with different styles) is placed.
4434  If you want to have other environments within this one—for example, Case
4435  environments—and have the QED symbol appear only after them, then the other
4436  environments need to be nested within the proof environment.
4437  See the section 
4438 \emph on
4439 Nesting Environments
4440 \emph default
4441  of the 
4442 \emph on
4443 User's Guide
4444 \emph default
4445  for information on nesting.
4446 \end_layout
4447
4448 \begin_layout Standard
4449 And these environments are provided by 
4450 \begin_inset Flex Code
4451 status collapsed
4452
4453 \begin_layout Plain Layout
4454 Theorems (AMS-Extended)
4455 \end_layout
4456
4457 \end_inset
4458
4459 :
4460 \end_layout
4461
4462 \begin_layout Criterion*
4463 A required condition.
4464 \end_layout
4465
4466 \begin_layout Algorithm*
4467 A general procedure to be used.
4468 \end_layout
4469
4470 \begin_layout Axiom*
4471 This is a property or statement taken as true within the system being discussed.
4472 \end_layout
4473
4474 \begin_layout Condition*
4475 Sometimes used to state a condition assumed within the present context of
4476  discussion.
4477 \end_layout
4478
4479 \begin_layout Note*
4480 Similar to a Remark.
4481 \end_layout
4482
4483 \begin_layout Notation*
4484 Used for the explanation of, yes, notation.
4485 \end_layout
4486
4487 \begin_layout Summary
4488 Do we really need to tell you? 
4489 \end_layout
4490
4491 \begin_layout Acknowledgement*
4492 Acknowledgement.
4493 \end_layout
4494
4495 \begin_layout Conclusion*
4496 Sometimes used at the end of a long train of argument.
4497 \end_layout
4498
4499 \begin_layout Fact
4500 Used in a way similar to Proposition, though perhaps lower on the scale.
4501 \end_layout
4502
4503 \begin_layout Standard
4504 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
4505  and AMS fonts
4506  packages.
4507  They need to be available on your system in order to use these environments.
4508 \end_layout
4509
4510 \begin_layout Section
4511 AGU journals (
4512 \family sans
4513 aguplus
4514 \family default
4515 )
4516 \end_layout
4517
4518 \begin_layout Standard
4519 by 
4520 \shape smallcaps
4521 Martin Vermeer
4522 \end_layout
4523
4524 \begin_layout Subsection
4525 Description
4526 \end_layout
4527
4528 \begin_layout Standard
4529 These are the layout files for some of the journals of the American Geophysical
4530  Society.
4531  It is assumed that you have both the AGU's own class files and AGUplus
4532  installed (everything to be found at
4533 \begin_inset Flex URL
4534 status collapsed
4535
4536 \begin_layout Plain Layout
4537
4538 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
4539 \end_layout
4540
4541 \end_inset
4542
4543 ).
4544 \end_layout
4545
4546 \begin_layout Subsection
4547 New styles
4548 \end_layout
4549
4550 \begin_layout Standard
4551 Redefined are 
4552 \family sans
4553 Paragraph
4554 \family default
4555
4556 \family sans
4557 Paragraph*
4558 \family default
4559 .
4560  They are still called this in the \SpecialChar LyX
4561  GUI, though their \SpecialChar LaTeX
4562  equivalents in the
4563  AGU classes are 
4564 \family sans
4565 Subsubsubsection
4566 \family default
4567  and 
4568 \family sans
4569 Subsubsubsection*
4570 \family default
4571 .
4572 \end_layout
4573
4574 \begin_layout Standard
4575 Newly defined styles are 
4576 \family sans
4577 Left_Header
4578 \family default
4579
4580 \family sans
4581 Right_Header
4582 \family default
4583
4584 \family sans
4585 Received
4586 \family default
4587
4588 \family sans
4589 Revised
4590 \family default
4591
4592 \family sans
4593 Accepted
4594 \family default
4595
4596 \family sans
4597 CCC
4598 \family default
4599
4600 \family sans
4601 PaperId
4602 \family default
4603
4604 \family sans
4605 AuthorAddr
4606 \family default
4607
4608 \family sans
4609 SlugComment
4610 \family default
4611 .
4612  These are mostly manuscript attributes and defined in the AGU class documentati
4613 on.
4614 \end_layout
4615
4616 \begin_layout Standard
4617 I suspect this is still badly incomplete.
4618 \end_layout
4619
4620 \begin_layout Subsection
4621 New floats
4622 \end_layout
4623
4624 \begin_layout Standard
4625
4626 \family sans
4627 Planotable
4628 \family default
4629  and 
4630 \family sans
4631 Plate
4632 \family default
4633 .
4634  We also have a new 
4635 \family sans
4636 Table_Caption
4637 \family default
4638 .
4639 \end_layout
4640
4641 \begin_layout Subsection
4642 Supported journals
4643 \end_layout
4644
4645 \begin_layout Itemize
4646
4647 \emph on
4648 Journal of Geophysical Research
4649 \emph default
4650
4651 \family typewriter
4652 jgrga.layout
4653 \family default
4654  — Martin Vermeer
4655 \end_layout
4656
4657 \begin_layout Standard
4658 Add your own, it isn't so hard! Look at the 
4659 \family typewriter
4660 jgrga.layout
4661 \family default
4662  example and 
4663 \family typewriter
4664 aguplus.inc
4665 \family default
4666 .
4667 \end_layout
4668
4669 \begin_layout Subsection
4670 Bugs and things to remember
4671 \end_layout
4672
4673 \begin_layout Standard
4674 In order to use the new layouts, you must remember to do the following for
4675  a new document:
4676 \end_layout
4677
4678 \begin_layout Enumerate
4679
4680 \emph on
4681 Turn off babel
4682 \emph default
4683 .
4684  This can be done in the 
4685 \family sans
4686 Layout\SpecialChar menuseparator
4687 Document
4688 \family default
4689  or 
4690 \family sans
4691 Document\SpecialChar menuseparator
4692 Settings
4693 \family default
4694  menu item.
4695  (AGU articles are always in English, right? So 
4696 \emph on
4697 don't
4698 \emph default
4699  choose a language.)
4700 \end_layout
4701
4702 \begin_layout Enumerate
4703 Enter 
4704 \family typewriter
4705 jgrga
4706 \family default
4707  into the document's 
4708 \family sans
4709 Extra Options
4710 \family default
4711  field.
4712  (Yes, this is a bug.)
4713 \end_layout
4714
4715 \begin_layout Enumerate
4716 Make sure you use the 
4717 \family typewriter
4718 agu.bst
4719 \family default
4720  bibliography style, by entering 
4721 \family sans
4722 agu
4723 \family default
4724  into the second field of the Bib\SpecialChar TeX
4725  inset.
4726  None of the standard styles will do.
4727 \end_layout
4728
4729 \begin_layout Section
4730 Broadway
4731 \end_layout
4732
4733 \begin_layout Standard
4734 by 
4735 \shape smallcaps
4736 Garst Reese
4737 \end_layout
4738
4739 \begin_layout Subsection
4740 Introduction
4741 \end_layout
4742
4743 \begin_layout Standard
4744 Broadway is for writing plays.
4745  The format is more decorative than Hollywood, and much less standardized.
4746  This format should be suitable for workshops.
4747 \end_layout
4748
4749 \begin_layout Subsection
4750 Special problems
4751 \end_layout
4752
4753 \begin_layout Standard
4754 The same as in Hollywood.
4755 \end_layout
4756
4757 \begin_layout Subsection
4758 Special features
4759 \end_layout
4760
4761 \begin_layout Standard
4762 Insert the 
4763 \family sans
4764 Speaker
4765 \family default
4766  names as labels then cross-reference the label to insert the name.
4767  The cross-reference dialog will show the current cast of characters.
4768 \end_layout
4769
4770 \begin_layout Subsection
4771 Paper size and Margins
4772 \end_layout
4773
4774 \begin_layout Standard
4775 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
4776 \end_layout
4777
4778 \begin_layout Subsection
4779 Environments
4780 \end_layout
4781
4782 \begin_layout Standard
4783 The following environments are available.
4784  You can use broadway.bind to get the bind keys shown at the right.
4785 \end_layout
4786
4787 \begin_layout Itemize
4788
4789 \family sans
4790 Standard
4791 \begin_inset Newline newline
4792 \end_inset
4793
4794
4795 \family default
4796 You should not have to use this, but it is here for anything that does not
4797  fit otherwise.
4798 \end_layout
4799
4800 \begin_layout Itemize
4801
4802 \family sans
4803 Narrative
4804 \begin_inset space \hfill{}
4805 \end_inset
4806
4807 M-z n
4808 \begin_inset Newline newline
4809 \end_inset
4810
4811
4812 \family default
4813 Used to describe stage setting and the action.
4814  First use of speaker names in all CAPs.
4815 \end_layout
4816
4817 \begin_layout Itemize
4818
4819 \family sans
4820 ACT
4821 \begin_inset space \hfill{}
4822 \end_inset
4823
4824 M-z a
4825 \begin_inset Newline newline
4826 \end_inset
4827
4828
4829 \family default
4830 Automatically numbered.
4831  On screen it will be arabic, but will print as Roman.
4832 \end_layout
4833
4834 \begin_layout Itemize
4835
4836 \family sans
4837 ACT*
4838 \begin_inset space \hfill{}
4839 \end_inset
4840
4841 M-z S at
4842 \begin_inset Newline newline
4843 \end_inset
4844
4845
4846 \family default
4847 Subtitle for 
4848 \family sans
4849 ACT.
4850
4851 \family default
4852  It is just centered text.
4853 \end_layout
4854
4855 \begin_layout Itemize
4856
4857 \family sans
4858 SCENE
4859 \begin_inset space \hfill{}
4860 \end_inset
4861
4862 M-z S-S
4863 \begin_inset Newline newline
4864 \end_inset
4865
4866
4867 \family default
4868 Not automatically numbered.
4869  You supply the number.
4870  This is because I couldn't figure out how.
4871 \end_layout
4872
4873 \begin_layout Itemize
4874
4875 \family sans
4876 AT_RISE:
4877 \begin_inset space \hfill{}
4878 \end_inset
4879
4880 M-z S-R
4881 \begin_inset Newline newline
4882 \end_inset
4883
4884
4885 \family default
4886 A special case of Narrative to describe the setting and action as the curtain
4887  rises.
4888 \end_layout
4889
4890 \begin_layout Itemize
4891
4892 \family sans
4893 Speaker
4894 \begin_inset space \hfill{}
4895 \end_inset
4896
4897 M-z s
4898 \begin_inset Newline newline
4899 \end_inset
4900
4901
4902 \family default
4903 The speaker's (actor's) title, centered in all CAPS.
4904 \end_layout
4905
4906 \begin_layout Itemize
4907
4908 \family sans
4909 Parenthetical
4910 \begin_inset space \hfill{}
4911 \end_inset
4912
4913 M-z p
4914 \begin_inset Newline newline
4915 \end_inset
4916
4917
4918 \family default
4919 Instructions to the speaker.
4920  The parentheses are automatically inserted.
4921  The ( will appear on screen, but both will be in the printed play.
4922  This environment is only used within 
4923 \family sans
4924 Dialogue
4925 \family default
4926 .
4927 \end_layout
4928
4929 \begin_layout Itemize
4930
4931 \family sans
4932 Dialogue
4933 \begin_inset space \hfill{}
4934 \end_inset
4935
4936 M-z d
4937 \begin_inset Newline newline
4938 \end_inset
4939
4940
4941 \family default
4942 What the Speaker says.
4943 \end_layout
4944
4945 \begin_layout Itemize
4946
4947 \family sans
4948 CURTAIN
4949 \begin_inset space \hfill{}
4950 \end_inset
4951
4952 M-z S-C
4953 \begin_inset Newline newline
4954 \end_inset
4955
4956
4957 \family default
4958 The curtain comes down.
4959 \end_layout
4960
4961 \begin_layout Itemize
4962
4963 \family sans
4964 Title
4965 \begin_inset space \hfill{}
4966 \end_inset
4967
4968 M-z S-T
4969 \end_layout
4970
4971 \begin_layout Itemize
4972
4973 \family sans
4974 Author
4975 \begin_inset space \hfill{}
4976 \end_inset
4977
4978 M-z S-A
4979 \end_layout
4980
4981 \begin_layout Itemize
4982
4983 \family sans
4984 Right_Address
4985 \begin_inset space \hfill{}
4986 \end_inset
4987
4988 M-z r
4989 \end_layout
4990
4991 \begin_layout Standard
4992 Hello there.
4993 \end_layout
4994
4995 \begin_layout Section
4996 Dinbrief
4997 \end_layout
4998
4999 \begin_layout Standard
5000 The document class 
5001 \family sans
5002 dinbrief
5003 \family default
5004  can be used to type letters according to German conventions.
5005  A template file is included in 
5006 \family typewriter
5007 .../lyx/share/templates
5008 \family default
5009  for you to use as a starting point.
5010 \end_layout
5011
5012 \begin_layout Section
5013 EGS journals (
5014 \family sans
5015 egs
5016 \family default
5017 )
5018 \end_layout
5019
5020 \begin_layout Standard
5021 by 
5022 \shape smallcaps
5023 Martin Vermeer
5024 \end_layout
5025
5026 \begin_layout Subsection
5027 Description
5028 \end_layout
5029
5030 \begin_layout Standard
5031 This is the layout file for the European Geophysical Society journals.
5032  The needed 
5033 \family typewriter
5034 egs.cls
5035 \family default
5036  can be downloaded from the web site of the EGS under 
5037 \begin_inset Flex URL
5038 status collapsed
5039
5040 \begin_layout Plain Layout
5041
5042 www.copernicus.org
5043 \end_layout
5044
5045 \end_inset
5046
5047 .
5048 \end_layout
5049
5050 \begin_layout Subsection
5051 New styles
5052 \end_layout
5053
5054 \begin_layout Standard
5055
5056 \family sans
5057 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
5058  Accepted
5059 \family default
5060
5061 \family sans
5062 Offsets
5063 \family default
5064 .
5065  The current layout file is unfortunately very unmodular and would benefit
5066  from using the various 
5067 \family typewriter
5068 std*.inc
5069 \family default
5070  file inclusions.
5071 \end_layout
5072
5073 \begin_layout Section
5074 Elsevier Journals
5075 \end_layout
5076
5077 \begin_layout Standard
5078 See the \SpecialChar LyX
5079  template file 
5080 \family typewriter
5081 elsarticle.lyx
5082 \family default
5083 .
5084  It contains all infos you need.
5085 \end_layout
5086
5087 \begin_layout Section
5088 Foils [aka 
5089 \family sans
5090 Foil\SpecialChar TeX
5091
5092 \family default
5093 ]
5094 \begin_inset CommandInset label
5095 LatexCommand label
5096 name "sec:foiltex"
5097
5098 \end_inset
5099
5100
5101 \end_layout
5102
5103 \begin_layout Standard
5104 by 
5105 \noun on
5106 Allan Rae
5107 \end_layout
5108
5109 \begin_layout Subsection
5110 Introduction
5111 \end_layout
5112
5113 \begin_layout Standard
5114 This section describes how to use \SpecialChar LyX
5115  to make slides for overhead projectors.
5116  There are two document classes that can do this: the default slides class
5117  and the 
5118 \family sans
5119 Foil\SpecialChar TeX
5120
5121 \family default
5122  slides class.
5123  This section documents the latter.
5124 \end_layout
5125
5126 \begin_layout Standard
5127 I'm going to say this again, nice and clear, so that there's no misunderstanding
5128 :
5129 \end_layout
5130
5131 \begin_layout Standard
5132 \begin_inset VSpace bigskip
5133 \end_inset
5134
5135
5136 \end_layout
5137
5138 \begin_layout Standard
5139 \align center
5140
5141 \size large
5142 This section documents the class 
5143 \begin_inset Quotes eld
5144 \end_inset
5145
5146
5147 \family sans
5148 FoilTeX
5149 \family default
5150
5151 \begin_inset Quotes erd
5152 \end_inset
5153
5154  
5155 \emph on
5156 only.
5157 \end_layout
5158
5159 \begin_layout Standard
5160 \begin_inset VSpace bigskip
5161 \end_inset
5162
5163
5164 \end_layout
5165
5166 \begin_layout Standard
5167 If you're looking for the documentation for 
5168 \begin_inset Quotes eld
5169 \end_inset
5170
5171
5172 \family sans
5173 slides (default)
5174 \family default
5175
5176 \begin_inset Quotes erd
5177 \end_inset
5178
5179 , check out section
5180 \begin_inset space ~
5181 \end_inset
5182
5183
5184 \begin_inset CommandInset ref
5185 LatexCommand ref
5186 reference "sec:slitex"
5187
5188 \end_inset
5189
5190 .
5191  If your machine doesn't have the 
5192 \family sans
5193 foils
5194 \family default
5195  class 
5196 \family sans
5197 FoilTeX
5198 \family default
5199  installed, you'll probably have to use the default 
5200 \family sans
5201 slides
5202 \family default
5203  class, which isn't quite as good as 
5204 \family sans
5205 foils.
5206 \end_layout
5207
5208 \begin_layout Standard
5209 The 
5210 \family sans
5211 foils
5212 \family default
5213  class is designed for use with version
5214 \begin_inset space ~
5215 \end_inset
5216
5217 2.1 of the 
5218 \family sans
5219 foils.cls
5220 \family default
5221  \SpecialChar LaTeX
5222  class file which is now an integral part of \SpecialChar LaTeX2e
5223 .
5224 \end_layout
5225
5226 \begin_layout Subsection
5227 Getting Started
5228 \end_layout
5229
5230 \begin_layout Standard
5231 Obviously, to use this document class, you need to select 
5232 \family sans
5233 FoilTeX
5234 \family default
5235  from the 
5236 \family sans
5237 Class
5238 \family default
5239  entry in the 
5240 \family sans
5241 Document
5242 \begin_inset space ~
5243 \end_inset
5244
5245 Layout
5246 \family default
5247  dialog.
5248  There are some settings in the 
5249 \family sans
5250 Document
5251 \begin_inset space ~
5252 \end_inset
5253
5254 Layout
5255 \family default
5256  dialog that you should know about that are specific to this class:
5257 \end_layout
5258
5259 \begin_layout Itemize
5260 Don't change the options 
5261 \family sans
5262 Sides
5263 \family default
5264  and 
5265 \family sans
5266 Columns
5267 \family default
5268  on the 
5269 \family sans
5270 Document
5271 \begin_inset space ~
5272 \end_inset
5273
5274 Layout
5275 \family default
5276  dialog.
5277  They're ignored by the 
5278 \family sans
5279 foils
5280 \family default
5281  class.
5282 \end_layout
5283
5284 \begin_layout Itemize
5285 The default font size is 20
5286 \begin_inset space \thinspace{}
5287 \end_inset
5288
5289 pt with the other options being 17
5290 \begin_inset space \thinspace{}
5291 \end_inset
5292
5293 pt, 25
5294 \begin_inset space \thinspace{}
5295 \end_inset
5296
5297 pt and 30
5298 \begin_inset space \thinspace{}
5299 \end_inset
5300
5301 pt.
5302 \end_layout
5303
5304 \begin_layout Itemize
5305 The default font is 
5306 \family sans
5307 sans
5308 \family default
5309  
5310 \family sans
5311 serif
5312 \family default
5313  but all math equations are still typeset in the usual roman font.
5314 \end_layout
5315
5316 \begin_layout Itemize
5317
5318 \family sans
5319 Foil\SpecialChar TeX
5320
5321 \family default
5322  supports A4 and Letter paper sizes as well as a special size for working
5323  with 35
5324 \begin_inset space \thinspace{}
5325 \end_inset
5326
5327 mm slides.
5328  It doesn't support A5, B5, legal or executive paper sizes.
5329 \end_layout
5330
5331 \begin_layout Itemize
5332 Don't bother changing the 
5333 \family sans
5334 Float Placement
5335 \family default
5336  settings because they are ignored anyway.
5337  All floats appear where they are defined in the text.
5338 \end_layout
5339
5340 \begin_layout Itemize
5341 The 
5342 \family sans
5343 Pagestyle
5344 \family default
5345  setting behaves a bit differently for this class.
5346  
5347 \family sans
5348 Foil\SpecialChar TeX
5349
5350 \family default
5351  provides extensive footer and header capabilities including a user-defined
5352  logo.
5353  See section
5354 \begin_inset space ~
5355 \end_inset
5356
5357
5358 \begin_inset CommandInset ref
5359 LatexCommand ref
5360 reference "sec:foilfoot"
5361
5362 \end_inset
5363
5364  for more details.
5365  The title page is treated differently to all other pages in the document
5366  and is 
5367 \emph on
5368 always
5369 \emph default
5370  unnumbered and 
5371 \emph on
5372 always
5373 \emph default
5374  has the logo centered at the bottom of the page (if one is defined).
5375  The possible page style choices and what they do are as follows:
5376 \end_layout
5377
5378 \begin_deeper
5379 \begin_layout Labeling
5380 \labelwidthstring MMMMMMM
5381
5382 \family sans
5383 \series bold
5384 empty
5385 \family default
5386 \series default
5387  The final output contains no page numbers, or other headers or footers
5388  (except footnotes of course).
5389  
5390 \end_layout
5391
5392 \begin_layout Labeling
5393 \labelwidthstring MMMMMMM
5394
5395 \family sans
5396 \series bold
5397 plain
5398 \family default
5399 \series default
5400  The final output contains page numbers centered at the bottom of the page.
5401  No other headings or footers (other than footnotes).
5402 \end_layout
5403
5404 \begin_layout Labeling
5405 \labelwidthstring MMMMMMM
5406
5407 \series bold
5408 foilheadings
5409 \series default
5410  Page numbers in lower right corner.
5411  Additional headers and footers are also shown.
5412  This is also the default.
5413 \end_layout
5414
5415 \begin_layout Labeling
5416 \labelwidthstring MMMMMMM
5417
5418 \series bold
5419 fancy
5420 \series default
5421  Gives you access to the 
5422 \family sans
5423 fancyheadings
5424 \family default
5425  package although its use with 
5426 \family sans
5427 Foil\SpecialChar TeX
5428
5429 \family default
5430  is discouraged by the writer of the 
5431 \family sans
5432 Foil\SpecialChar TeX
5433
5434 \family default
5435  package because of some potential page layout clashes.
5436 \end_layout
5437
5438 \end_deeper
5439 \begin_layout Subsubsection
5440 Extra Options
5441 \end_layout
5442
5443 \begin_layout Standard
5444 The following options may be used in the extra class options in the 
5445 \family sans
5446 Document\SpecialChar menuseparator
5447 Settings
5448 \family default
5449  dialog.
5450 \end_layout
5451
5452 \begin_layout Labeling
5453 \labelwidthstring MMMMMMx
5454
5455 \series bold
5456 35mmSlide
5457 \series default
5458  This sets up the page layout for 7.33
5459 \begin_inset space \thinspace{}
5460 \end_inset
5461
5462 in by 11
5463 \begin_inset space \thinspace{}
5464 \end_inset
5465
5466 in paper, which is about the same aspect ratio as a 35
5467 \begin_inset space \thinspace{}
5468 \end_inset
5469
5470 mm slide, making it a bit easier to work with this medium.
5471 \end_layout
5472
5473 \begin_layout Labeling
5474 \labelwidthstring MMMMMMx
5475
5476 \series bold
5477 headrule
5478 \series default
5479  Places a rule across the page below the header on every page except the
5480  title page.
5481 \end_layout
5482
5483 \begin_layout Labeling
5484 \labelwidthstring MMMMMMx
5485
5486 \series bold
5487 footrule
5488 \series default
5489  Places a rule across the page above the footer on every page except the
5490  title page.
5491 \end_layout
5492
5493 \begin_layout Labeling
5494 \labelwidthstring MMMMMMx
5495
5496 \series bold
5497 dvips
5498 \series default
5499  This is automatically set each time you create a new 
5500 \family sans
5501 foils
5502 \family default
5503  document.
5504  This option tells 
5505 \family sans
5506 Foil\SpecialChar TeX
5507
5508 \family default
5509  to use the dvips driver to rotate those pages that are set as landscape
5510  foils.
5511 \end_layout
5512
5513 \begin_layout Labeling
5514 \labelwidthstring MMMMMMx
5515
5516 \series bold
5517 landscape
5518 \series default
5519  Simply changes the page dimensions to those of a landscape page but doesn't
5520  do any rotation.
5521  Thus if you use this option you need to use an external program to rotate
5522  each page or feed your paper through your printer as landscape.
5523  Note that this option effectively reverses the roles of the 
5524 \family sans
5525 Foilhead
5526 \family default
5527  and 
5528 \family sans
5529 Rotatefoilhead
5530 \family default
5531  environments (don't worry these are described in the next section).
5532 \end_layout
5533
5534 \begin_layout Labeling
5535 \labelwidthstring MMMMMMx
5536
5537 \series bold
5538 leqno
5539 \series default
5540  Equation numbers on the left.
5541 \end_layout
5542
5543 \begin_layout Labeling
5544 \labelwidthstring MMMMMMx
5545
5546 \series bold
5547 fleqn
5548 \series default
5549  Flush-left equations.
5550 \end_layout
5551
5552 \begin_layout Subsection
5553 Supported Environments
5554 \end_layout
5555
5556 \begin_layout Standard
5557 Most of the environments commonly supported in other classes are also supported
5558  by the 
5559 \family sans
5560 foils
5561 \family default
5562  class.
5563  There are several additional environments provided by 
5564 \family sans
5565 Foil\SpecialChar TeX
5566
5567 \family default
5568  as well as a couple added by \SpecialChar LyX
5569 .
5570  The following environments are shared with other classes:
5571 \end_layout
5572
5573 \begin_layout Standard
5574 \begin_inset Flex Multiple Columns
5575 status open
5576
5577 \begin_layout Itemize
5578
5579 \family sans
5580 Standard
5581 \end_layout
5582
5583 \begin_layout Itemize
5584
5585 \family sans
5586 Itemize
5587 \end_layout
5588
5589 \begin_layout Itemize
5590
5591 \family sans
5592 Enumerate
5593 \end_layout
5594
5595 \begin_layout Itemize
5596
5597 \family sans
5598 Description
5599 \end_layout
5600
5601 \begin_layout Itemize
5602
5603 \family sans
5604 List
5605 \end_layout
5606
5607 \begin_layout Itemize
5608
5609 \family sans
5610 \SpecialChar LyX
5611 -Code
5612 \end_layout
5613
5614 \begin_layout Itemize
5615
5616 \family sans
5617 Verse
5618 \end_layout
5619
5620 \begin_layout Itemize
5621
5622 \family sans
5623 Quote
5624 \end_layout
5625
5626 \begin_layout Itemize
5627
5628 \family sans
5629 Quotation
5630 \end_layout
5631
5632 \begin_layout Itemize
5633
5634 \family sans
5635 Title
5636 \end_layout
5637
5638 \begin_layout Itemize
5639
5640 \family sans
5641 Author
5642 \end_layout
5643
5644 \begin_layout Itemize
5645
5646 \family sans
5647 Date
5648 \end_layout
5649
5650 \begin_layout Itemize
5651
5652 \family sans
5653 Abstract
5654 \end_layout
5655
5656 \begin_layout Itemize
5657
5658 \family sans
5659 Bibliography
5660 \end_layout
5661
5662 \begin_layout Itemize
5663
5664 \family sans
5665 Address
5666 \end_layout
5667
5668 \begin_layout Itemize
5669
5670 \family sans
5671 RightAddress
5672 \end_layout
5673
5674 \begin_layout Itemize
5675
5676 \family sans
5677 Caption
5678 \end_layout
5679
5680 \begin_layout Itemize
5681
5682 \family sans
5683 Comment
5684 \end_layout
5685
5686 \end_inset
5687
5688
5689 \end_layout
5690
5691 \begin_layout Standard
5692 That is, all the major environments apart from the sectioning environments.
5693  Since foils are essentially self-contained sections, with a title and body,
5694  
5695 \family sans
5696 Foil\SpecialChar TeX
5697
5698 \family default
5699  provides specific commands for starting new foils and these are:
5700 \end_layout
5701
5702 \begin_layout Itemize
5703
5704 \family sans
5705 Foilhead
5706 \end_layout
5707
5708 \begin_layout Itemize
5709
5710 \family sans
5711 Rotatefoilhead
5712 \end_layout
5713
5714 \begin_layout Standard
5715 \SpecialChar LyX
5716  also provides slightly modified versions of these two environments called:
5717 \end_layout
5718
5719 \begin_layout Itemize
5720
5721 \family sans
5722 ShortFoilhead
5723 \end_layout
5724
5725 \begin_layout Itemize
5726
5727 \family sans
5728 ShortRotatefoilhead
5729 \end_layout
5730
5731 \begin_layout Standard
5732 and the differences will be explained in the next section.
5733 \end_layout
5734
5735 \begin_layout Standard
5736 Since foils are often used in presenting ideas or new theorems and such
5737  
5738 \family sans
5739 Foil\SpecialChar TeX
5740
5741 \family default
5742  also provides a comprehensive box of goodies for presenting them:
5743 \end_layout
5744
5745 \begin_layout Standard
5746 \begin_inset Flex Multiple Columns
5747 status open
5748
5749 \begin_layout Itemize
5750
5751 \family sans
5752 Theorem
5753 \end_layout
5754
5755 \begin_layout Itemize
5756
5757 \family sans
5758 Lemma
5759 \end_layout
5760
5761 \begin_layout Itemize
5762
5763 \family sans
5764 Corollary
5765 \end_layout
5766
5767 \begin_layout Itemize
5768
5769 \family sans
5770 Proposition
5771 \end_layout
5772
5773 \begin_layout Itemize
5774
5775 \family sans
5776 Definition
5777 \end_layout
5778
5779 \begin_layout Itemize
5780
5781 \family sans
5782 Proof
5783 \end_layout
5784
5785 \begin_layout Itemize
5786
5787 \family sans
5788 Theorem*
5789 \end_layout
5790
5791 \begin_layout Itemize
5792
5793 \family sans
5794 Lemma*
5795 \end_layout
5796
5797 \begin_layout Itemize
5798
5799 \family sans
5800 Corollary*
5801 \end_layout
5802
5803 \begin_layout Itemize
5804
5805 \family sans
5806 Proposition*
5807 \end_layout
5808
5809 \begin_layout Itemize
5810
5811 \family sans
5812 Definition*
5813 \end_layout
5814
5815 \end_inset
5816
5817
5818 \end_layout
5819
5820 \begin_layout Standard
5821 The starred versions are unnumbered while the unstarred versions are numbered.
5822  There are also two list environments added by \SpecialChar LyX
5823  and these are:
5824 \end_layout
5825
5826 \begin_layout Itemize
5827
5828 \family sans
5829 TickList
5830 \end_layout
5831
5832 \begin_layout Itemize
5833
5834 \family sans
5835 CrossList
5836 \end_layout
5837
5838 \begin_layout Standard
5839
5840 \family sans
5841 Foil\SpecialChar TeX
5842
5843 \family default
5844  provides some powerful header and footer capabilities that are best set
5845  in the preamble although they may be set at any point in a document.
5846  If you want to change these settings in your document the best place to
5847  do so is at the very top of a foil, i.
5848 \begin_inset space \thinspace{}
5849 \end_inset
5850
5851 e.
5852 \emph on
5853
5854 \begin_inset space \space{}
5855 \end_inset
5856
5857
5858 \emph default
5859 straight after the foilhead.
5860 \end_layout
5861
5862 \begin_layout Standard
5863 For this purpose, the following command styles are provided [
5864 \shape smallcaps
5865 Martin Vermeer
5866 \shape default
5867 ]:
5868 \end_layout
5869
5870 \begin_layout Standard
5871 \begin_inset Flex Multiple Columns
5872 status open
5873
5874 \begin_layout Itemize
5875
5876 \family sans
5877 My
5878 \begin_inset space ~
5879 \end_inset
5880
5881 Logo
5882 \end_layout
5883
5884 \begin_layout Itemize
5885
5886 \family sans
5887 Restriction
5888 \end_layout
5889
5890 \begin_layout Itemize
5891
5892 \family sans
5893 Right
5894 \begin_inset space ~
5895 \end_inset
5896
5897 Footer
5898 \end_layout
5899
5900 \begin_layout Itemize
5901
5902 \family sans
5903 Right
5904 \begin_inset space ~
5905 \end_inset
5906
5907 Header
5908 \end_layout
5909
5910 \begin_layout Itemize
5911
5912 \family sans
5913 Left
5914 \begin_inset space ~
5915 \end_inset
5916
5917 Header
5918 \end_layout
5919
5920 \begin_deeper
5921 \begin_layout Plain Layout
5922 \begin_inset space ~
5923 \end_inset
5924
5925
5926 \end_layout
5927
5928 \end_deeper
5929 \end_inset
5930
5931
5932 \end_layout
5933
5934 \begin_layout Standard
5935 There are also a few commands provided by 
5936 \family sans
5937 Foil\SpecialChar TeX
5938
5939 \family default
5940  that aren't directly supported by \SpecialChar LyX
5941  but I'll tell you what they do and how
5942  to use them in section
5943 \begin_inset space ~
5944 \end_inset
5945
5946
5947 \begin_inset CommandInset ref
5948 LatexCommand ref
5949 reference "sec:unsuppfoils"
5950
5951 \end_inset
5952
5953 .
5954 \end_layout
5955
5956 \begin_layout Subsection
5957 Building a Set of Foils
5958 \end_layout
5959
5960 \begin_layout Standard
5961 This section will give a simple introduction to using the different environments
5962  to build a set of foils.
5963  If you want to see an example set of foils, take a look at the 
5964 \family typewriter
5965 Foils.lyx
5966 \family default
5967  file you find in \SpecialChar LyX
5968 's 
5969 \family typewriter
5970 examples
5971 \family default
5972  folder.
5973 \end_layout
5974
5975 \begin_layout Subsubsection
5976 Give It a Title Page
5977 \end_layout
5978
5979 \begin_layout Standard
5980 Unlike other classes that provide 
5981 \family sans
5982 Title
5983 \family default
5984
5985 \family sans
5986 Author
5987 \family default
5988
5989 \family sans
5990 Date
5991 \family default
5992  and 
5993 \family sans
5994 Abstract
5995 \family default
5996  environments, 
5997 \family sans
5998 foils
5999 \family default
6000  creates the title on a page of its own.
6001  If you leave out the 
6002 \family sans
6003 Date
6004 \family default
6005  environment \SpecialChar LaTeX
6006  will substitute the current date (every time you regenerate
6007  the output).
6008 \end_layout
6009
6010 \begin_layout Subsubsection
6011 Start a New Foil
6012 \end_layout
6013
6014 \begin_layout Standard
6015 As I mentioned earlier, there are four ways of starting a new foil.
6016  For portrait foils you should use 
6017 \family sans
6018 Foilhead
6019 \family default
6020  or 
6021 \family sans
6022 ShortFoilhead.
6023
6024 \family default
6025  The difference between these two environments is the amount of space between
6026  the title of the foil (the foilhead) and the body of the foil.
6027 \end_layout
6028
6029 \begin_layout Standard
6030 Landscape foils are generated using the 
6031 \family sans
6032 Rotatefoilhead
6033 \family default
6034  and 
6035 \family sans
6036 ShortRotatefoilhead
6037 \family default
6038  environments.
6039  Again the only difference is the spacing between foilhead and body.
6040  Both of the short versions have 0.5
6041 \begin_inset space ~
6042 \end_inset
6043
6044 inches less separation between the foilhead and the body.
6045  
6046 \end_layout
6047
6048 \begin_layout Standard
6049 One problem with the support for landscape foils is the requirement that
6050  you have to use the 
6051 \family typewriter
6052 dvips
6053 \family default
6054  driver to generate the PostScript output otherwise the foils won't be rotated.
6055  It is possible to get landscape foils even if you haven't got the 
6056 \family typewriter
6057 dvips
6058 \family default
6059  driver provided you can feed your foils sideways through your printer ;-)
6060 \end_layout
6061
6062 \begin_layout Subsubsection
6063 Theorems, Lemmas, Proofs and more
6064 \end_layout
6065
6066 \begin_layout Standard
6067 Due to a small bug in \SpecialChar LyX
6068  you can't have two of the same type of these environments
6069  directly following each other.
6070  They must be separated by something.
6071  If you try, you will just be extending the previous environment as if you
6072  had merged the two environments together.
6073  So, how do you get around this problem? The simplest option is to insert
6074  some text between the two environments or add a 
6075 \family sans
6076 \SpecialChar LaTeX
6077
6078 \family default
6079  environment between the two with just a 
6080 \begin_inset Quotes eld
6081 \end_inset
6082
6083
6084 \family typewriter
6085 %
6086 \family default
6087
6088 \begin_inset Quotes erd
6089 \end_inset
6090
6091  in it.
6092  This will force \SpecialChar LyX
6093  to produce two separate environments and hence the correct
6094  \SpecialChar LaTeX
6095  output.
6096  An example is provided in the example file included with the \SpecialChar LyX
6097  distribution.
6098  Remember, this problem only occurs if you are trying to place two of the
6099  same type of theorem-like environments one directly after the other.
6100 \end_layout
6101
6102 \begin_layout Subsubsection
6103 Lists
6104 \end_layout
6105
6106 \begin_layout Standard
6107 You get all the commonly supported list styles found in other classes as
6108  well as two new ones.
6109  I'll only describe the new ones here.
6110  If you want to find out more about the other list environments check out
6111  the 
6112 \emph on
6113 User's Guide.
6114
6115 \emph default
6116  If you intend to use itemized lists you might also want to read about the
6117  
6118 \family sans
6119 Itemize
6120 \begin_inset space ~
6121 \end_inset
6122
6123 Bullet
6124 \begin_inset space ~
6125 \end_inset
6126
6127 Selection
6128 \family default
6129  dialog described above in section
6130 \begin_inset space ~
6131 \end_inset
6132
6133
6134 \begin_inset CommandInset ref
6135 LatexCommand ref
6136 reference "sec:bullet"
6137
6138 \end_inset
6139
6140 .
6141 \end_layout
6142
6143 \begin_layout Standard
6144 The two new list styles, 
6145 \family sans
6146 TickList
6147 \family default
6148  and 
6149 \family sans
6150 CrossList
6151 \family default
6152 , are designed to make it easier for you to create lists of do's and don'ts
6153  or right and wrong by providing dedicated environments that use a tick
6154  or a cross as the label of the list.
6155  These lists are in fact dedicated variants of the 
6156 \family sans
6157 Itemize
6158 \family default
6159  environment.
6160  They do however require that you have the 
6161 \family typewriter
6162 psnfss
6163 \family default
6164  packages installed.
6165 \end_layout
6166
6167 \begin_layout Subsubsection
6168 Figures and Tables
6169 \end_layout
6170
6171 \begin_layout Standard
6172
6173 \family sans
6174 Foil\SpecialChar TeX
6175
6176 \family default
6177  redefines the floating tables and figures so that they appear exactly where
6178  they are in the text rather than pushing them to the top of the page or
6179  to some user specified location.
6180  In fact if you change the float placement settings they are simply ignored.
6181 \end_layout
6182
6183 \begin_layout Subsubsection
6184 Page Headers and Footers
6185 \begin_inset CommandInset label
6186 LatexCommand label
6187 name "sec:foilfoot"
6188
6189 \end_inset
6190
6191
6192 \end_layout
6193
6194 \begin_layout Standard
6195
6196 \family sans
6197 My
6198 \begin_inset space ~
6199 \end_inset
6200
6201 Logo
6202 \family default
6203  and 
6204 \family sans
6205 Restriction
6206 \family default
6207  are two commands used to control the left-footer text string.
6208  The first is meant to allow you to include a graphic logo on your foils
6209  and defaults to 
6210 \begin_inset Quotes eld
6211 \end_inset
6212
6213 -Typeset by 
6214 \family sans
6215 Foil\SpecialChar TeX
6216
6217 \family default
6218 -
6219 \begin_inset Quotes erd
6220 \end_inset
6221
6222 .
6223  While the second is meant to provide a classification for the audience,
6224  
6225 \emph on
6226 e.
6227 \begin_inset space \thinspace{}
6228 \end_inset
6229
6230 g.
6231 \emph default
6232
6233 \begin_inset space \space{}
6234 \end_inset
6235
6236 Confidential.
6237  It is empty by default.
6238 \end_layout
6239
6240 \begin_layout Standard
6241 The remaining page corners can be filled by 
6242 \family sans
6243 Right
6244 \begin_inset space ~
6245 \end_inset
6246
6247 Footer
6248 \family default
6249  (which defaults to page numbers), 
6250 \family sans
6251 Right
6252 \begin_inset space ~
6253 \end_inset
6254
6255 Header
6256 \family default
6257  (top right) and 
6258 \family sans
6259 Left
6260 \begin_inset space ~
6261 \end_inset
6262
6263 Header
6264 \family default
6265  (top left).
6266 \end_layout
6267
6268 \begin_layout Subsection
6269 Unsupported 
6270 \family sans
6271 Foil\SpecialChar TeX
6272
6273 \family default
6274  Goodies
6275 \begin_inset CommandInset label
6276 LatexCommand label
6277 name "sec:unsuppfoils"
6278
6279 \end_inset
6280
6281
6282 \end_layout
6283
6284 \begin_layout Standard
6285 All the commands mentioned below need to be set in a 
6286 \family sans
6287 \SpecialChar LaTeX
6288
6289 \family default
6290  environment or as 
6291 \family sans
6292 \SpecialChar TeX
6293
6294 \family default
6295  within another environment.
6296 \end_layout
6297
6298 \begin_layout Subsubsection
6299 Lengths
6300 \end_layout
6301
6302 \begin_layout Standard
6303 All lengths are adjusted using the 
6304 \family typewriter
6305
6306 \backslash
6307 setlength{
6308 \family default
6309 \emph on
6310 lengthname
6311 \family typewriter
6312 \emph default
6313 }{
6314 \family default
6315 \emph on
6316 newlength
6317 \family typewriter
6318 \emph default
6319 }
6320 \family default
6321  command.
6322  Where 
6323 \emph on
6324 lengthname
6325 \emph default
6326  should be replaced by the name given to the length you want to change and
6327  
6328 \emph on
6329 newlength
6330 \emph default
6331  is the length value.
6332  All lengths should be specified in units of length such as inches (
6333 \family typewriter
6334 in
6335 \family default
6336 ), millimeters (
6337 \family typewriter
6338 mm
6339 \family default
6340 ) or points (
6341 \family typewriter
6342 pt
6343 \family default
6344 ) or relative to some document or font-based length such as 
6345 \family typewriter
6346
6347 \backslash
6348 textwidth
6349 \family default
6350 .
6351  
6352 \end_layout
6353
6354 \begin_layout Standard
6355 It's possible to change the spacing between a foilhead and the body of the
6356  foil by adjusting the length specified by 
6357 \family typewriter
6358
6359 \backslash
6360 foilheadskip
6361 \family default
6362 .
6363  For example, to make 
6364 \emph on
6365 all
6366 \emph default
6367  foilheads 0.5
6368 \begin_inset space \space{}
6369 \end_inset
6370
6371 in closer to their bodies put the following in the preamble: 
6372 \family typewriter
6373
6374 \backslash
6375 setlength{
6376 \backslash
6377 foilheadskip}{-0.5in}
6378 \end_layout
6379
6380 \begin_layout Standard
6381 The spacings around floats can be adjusted by setting these lengths:
6382 \end_layout
6383
6384 \begin_layout Labeling
6385 \labelwidthstring MMMMMMMMMMM
6386
6387 \family typewriter
6388
6389 \backslash
6390 abovefloatskip
6391 \family default
6392  Separation between the text and the top of the float
6393 \end_layout
6394
6395 \begin_layout Labeling
6396 \labelwidthstring MMMMMMMMMMM
6397
6398 \family typewriter
6399
6400 \backslash
6401 abovecaptionskip
6402 \family default
6403  Separation between the float and the caption
6404 \end_layout
6405
6406 \begin_layout Labeling
6407 \labelwidthstring MMMMMMMMMMM
6408
6409 \family typewriter
6410
6411 \backslash
6412 belowcaptionskip
6413 \family default
6414  Separation between the caption and the following text
6415 \end_layout
6416
6417 \begin_layout Labeling
6418 \labelwidthstring MMMMMMMMMMM
6419
6420 \family typewriter
6421
6422 \backslash
6423 captionwidth
6424 \family default
6425  You can make the captions narrower than the surrounding text by adjusting
6426  this length.
6427  Best done relative to 
6428 \family typewriter
6429
6430 \backslash
6431 textwidth
6432 \family default
6433 .
6434 \end_layout
6435
6436 \begin_layout Standard
6437 There are also several title page related lengths that you may find useful
6438  if you have a long title or several authors:
6439 \end_layout
6440
6441 \begin_layout Labeling
6442 \labelwidthstring MMMMMMMMMMM
6443
6444 \family typewriter
6445
6446 \backslash
6447 abovetitleskip
6448 \family default
6449  Separation from headers to 
6450 \family sans
6451 Title
6452 \end_layout
6453
6454 \begin_layout Labeling
6455 \labelwidthstring MMMMMMMMMMM
6456
6457 \family typewriter
6458
6459 \backslash
6460 titleauthorskip
6461 \family default
6462  between 
6463 \family sans
6464 Title
6465 \family default
6466  and 
6467 \family sans
6468 Author
6469 \family default
6470  environments
6471 \end_layout
6472
6473 \begin_layout Labeling
6474 \labelwidthstring MMMMMMMMMMM
6475
6476 \family typewriter
6477
6478 \backslash
6479 authorauthorskip
6480 \family default
6481  between multiple 
6482 \family sans
6483 Author
6484 \family default
6485  lines
6486 \end_layout
6487
6488 \begin_layout Labeling
6489 \labelwidthstring MMMMMMMMMMM
6490
6491 \family typewriter
6492
6493 \backslash
6494 authordateskip
6495 \family default
6496  between the 
6497 \family sans
6498 Author
6499 \family default
6500  and the 
6501 \family sans
6502 Date
6503 \end_layout
6504
6505 \begin_layout Labeling
6506 \labelwidthstring MMMMMMMMMMM
6507
6508 \family typewriter
6509
6510 \backslash
6511 dateabstractskip
6512 \family default
6513  between the 
6514 \family sans
6515 Date
6516 \family default
6517  and the 
6518 \family sans
6519 Abstract
6520 \end_layout
6521
6522 \begin_layout Standard
6523 The last length related command affects all the list environments.
6524  If you place 
6525 \family typewriter
6526
6527 \backslash
6528 zerolistvertdimens
6529 \family default
6530  
6531 \emph on
6532 inside
6533 \emph default
6534  a list environment then all the vertical spacing between the list items
6535  is removed.
6536  Note that this is a command not a length so it doesn't require 
6537 \family typewriter
6538
6539 \backslash
6540 setlength
6541 \family default
6542  like the stuff mentioned above.
6543 \end_layout
6544
6545 \begin_layout Subsubsection
6546 Headers and Footers
6547 \end_layout
6548
6549 \begin_layout Standard
6550 The 
6551 \family typewriter
6552
6553 \backslash
6554 LogoOn
6555 \family default
6556  and 
6557 \family typewriter
6558
6559 \backslash
6560 LogoOff
6561 \family default
6562  commands control whether the logo in the 
6563 \family sans
6564 MyLogo
6565 \family default
6566  definition appear on a given page.
6567  If you put 
6568 \family typewriter
6569
6570 \backslash
6571 LogoOff
6572 \family default
6573  in the preamble then none of the foils will have the logo on them.
6574  If you don't want the logo on a particular page place the 
6575 \family typewriter
6576
6577 \backslash
6578 LogoOff
6579 \family default
6580  directly after the foilhead of that page and the 
6581 \family typewriter
6582
6583 \backslash
6584 LogoOn
6585 \family default
6586  directly after the next foilhead.
6587 \end_layout
6588
6589 \begin_layout Standard
6590 If you decide to use the 
6591 \family sans
6592 fancy
6593 \family default
6594  page style setting in the 
6595 \family sans
6596 Document
6597 \begin_inset space ~
6598 \end_inset
6599
6600 Layout
6601 \family default
6602  dialog you should probably add 
6603 \family typewriter
6604
6605 \backslash
6606 let
6607 \backslash
6608 headwidth
6609 \backslash
6610 textwidth
6611 \family default
6612  to your preamble so headers and footers on landscape pages are correctly
6613  placed when rotated.
6614  This is due to some clashes between the page layouts provided by the 
6615 \family sans
6616 fancyheadings
6617 \family default
6618  package and the 
6619 \family sans
6620 foils
6621 \family default
6622  class.
6623 \end_layout
6624
6625 \begin_layout Section
6626 Hollywood (Hollywood spec scripts)
6627 \end_layout
6628
6629 \begin_layout Standard
6630 by 
6631 \shape smallcaps
6632 Garst Reese
6633 \end_layout
6634
6635 \begin_layout Subsection
6636 Introduction
6637 \end_layout
6638
6639 \begin_layout Standard
6640 Getting the format of a Hollywood script right is a 
6641 \begin_inset Quotes eld
6642 \end_inset
6643
6644 rite of passage.
6645 \begin_inset Quotes erd
6646 \end_inset
6647
6648  It is designed to make the readers focus on content and to be easy and
6649  familiar for the actors to read.
6650  Each page of a script should be one minute of film.
6651  Nothing goes in a script that you cannot see or hear on screen.
6652  The courier 12 pt font should be used throughout.
6653  No italics.
6654 \end_layout
6655
6656 \begin_layout Subsection
6657 Special problems
6658 \end_layout
6659
6660 \begin_layout Standard
6661 Speakers' lines should NEVER break in mid-sentence.
6662  If a speaker's lines continue over a page break, repeat the 
6663 \family sans
6664 Speaker
6665 \family default
6666  title followed by (Cont'd).
6667 \end_layout
6668
6669 \begin_layout Subsection
6670 Special features
6671 \end_layout
6672
6673 \begin_layout Standard
6674 Insert the 
6675 \family sans
6676 Speaker
6677 \family default
6678  names as labels then cross-reference the label to insert the name.
6679  The cross-reference dialog will show the current cast of characters.
6680  You can use this to insert the speaker name in narratives also.
6681 \end_layout
6682
6683 \begin_layout Subsection
6684 Paper size and Margins
6685 \end_layout
6686
6687 \begin_layout Standard
6688 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
6689 \end_layout
6690
6691 \begin_layout Subsection
6692 Environments
6693 \end_layout
6694
6695 \begin_layout Standard
6696 The following environments are available.
6697  You can use hollywood.bind to get the bind keys shown at the right.
6698 \end_layout
6699
6700 \begin_layout Itemize
6701
6702 \family sans
6703 Standard
6704 \begin_inset Newline newline
6705 \end_inset
6706
6707
6708 \family default
6709 Used where nothing else works.
6710  Try to avoid it.
6711 \end_layout
6712
6713 \begin_layout Itemize
6714
6715 \family sans
6716 FADE_IN
6717 \family default
6718 :
6719 \begin_inset space \hfill{}
6720 \end_inset
6721
6722
6723 \family sans
6724 M-z S-I
6725 \family default
6726
6727 \begin_inset Newline newline
6728 \end_inset
6729
6730 Usually followed by something like 
6731 \begin_inset Quotes eld
6732 \end_inset
6733
6734 on Sally waking up.
6735 \begin_inset Quotes erd
6736 \end_inset
6737
6738
6739 \end_layout
6740
6741 \begin_layout Itemize
6742
6743 \family sans
6744 INT:
6745 \begin_inset space \hfill{}
6746 \end_inset
6747
6748 M-z i
6749 \begin_inset Newline newline
6750 \end_inset
6751
6752
6753 \family default
6754 Introduces a new INTERIOR camera set-up.
6755  Always followed by DAY or NIGHT, or something similar to define the lighting
6756  required.
6757  Everthing on this line in CAPS.
6758 \end_layout
6759
6760 \begin_layout Itemize
6761
6762 \family sans
6763 EXT:
6764 \begin_inset space \hfill{}
6765 \end_inset
6766
6767 M-z e
6768 \begin_inset Newline newline
6769 \end_inset
6770
6771
6772 \family default
6773 Introduces a new EXTERIOR camera set-up.
6774  Everthing on this line in CAPS.
6775 \end_layout
6776
6777 \begin_layout Itemize
6778
6779 \family sans
6780 Speaker
6781 \begin_inset space \hfill{}
6782 \end_inset
6783
6784 M-z s
6785 \begin_inset Newline newline
6786 \end_inset
6787
6788
6789 \family default
6790 The character speaking.
6791 \end_layout
6792
6793 \begin_layout Itemize
6794
6795 \family sans
6796 Parenthetical
6797 \begin_inset space \hfill{}
6798 \end_inset
6799
6800 M-z p
6801 \begin_inset Newline newline
6802 \end_inset
6803
6804
6805 \family default
6806 Instructions to the speaker.
6807  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
6808 .
6809  Both will be printed.
6810 \end_layout
6811
6812 \begin_layout Itemize
6813
6814 \family sans
6815 Dialogue
6816 \begin_inset space \hfill{}
6817 \end_inset
6818
6819 M-z d
6820 \begin_inset Newline newline
6821 \end_inset
6822
6823
6824 \family default
6825 What the 
6826 \family sans
6827 Speaker
6828 \family default
6829  says.
6830 \end_layout
6831
6832 \begin_layout Itemize
6833
6834 \family sans
6835 Transition
6836 \begin_inset space \hfill{}
6837 \end_inset
6838
6839 M-z t
6840 \begin_inset Newline newline
6841 \end_inset
6842
6843
6844 \family default
6845 Camera movement instruction.
6846  e.
6847 \begin_inset space \thinspace{}
6848 \end_inset
6849
6850 g.
6851 \begin_inset space \space{}
6852 \end_inset
6853
6854 CUT TO:
6855 \end_layout
6856
6857 \begin_layout Itemize
6858
6859 \family sans
6860 FADE OUT:
6861 \begin_inset space \hfill{}
6862 \end_inset
6863
6864 M-z S-I
6865 \end_layout
6866
6867 \begin_layout Itemize
6868
6869 \family sans
6870 Author
6871 \begin_inset space \hfill{}
6872 \end_inset
6873
6874 M-z S-A
6875 \end_layout
6876
6877 \begin_layout Itemize
6878
6879 \family sans
6880 Title
6881 \begin_inset space \hfill{}
6882 \end_inset
6883
6884 M-z S-T
6885 \end_layout
6886
6887 \begin_layout Itemize
6888
6889 \family sans
6890 Right_Address
6891 \begin_inset space \hfill{}
6892 \end_inset
6893
6894 M-z r
6895 \end_layout
6896
6897 \begin_layout Subsection
6898 Script jargon
6899 \end_layout
6900
6901 \begin_layout Itemize
6902 (O.S) — off screen
6903 \end_layout
6904
6905 \begin_layout Itemize
6906 (V.0) — voice over
6907 \end_layout
6908
6909 \begin_layout Itemize
6910 b.
6911 \begin_inset space \thinspace{}
6912 \end_inset
6913
6914 g.
6915  — background
6916 \end_layout
6917
6918 \begin_layout Itemize
6919 C.U.
6920  — close-up
6921 \end_layout
6922
6923 \begin_layout Itemize
6924 PAN — camera movement
6925 \end_layout
6926
6927 \begin_layout Itemize
6928 INSERT — cut to close-up of
6929 \end_layout
6930
6931 \begin_layout Section
6932 ijmpc and ijmpd
6933 \end_layout
6934
6935 \begin_layout Standard
6936 by 
6937 \noun on
6938 Panayotis Papasotiriou
6939 \end_layout
6940
6941 \begin_layout Subsection
6942 Overview
6943 \end_layout
6944
6945 \begin_layout Standard
6946 The ijmpc package is a set of macros that facilitates electronic manuscript
6947  submission to the 
6948 \emph on
6949 International Journal of Modern Physics C
6950 \emph default
6951 .
6952  Similarly, the ijmpd package is for creating manuscripts to be submitted
6953  to the 
6954 \emph on
6955 International Journal of Modern Physics D
6956 \emph default
6957 .
6958  Both journals are published by World Scientific.
6959  The corresponding document classes are named 
6960 \family typewriter
6961 ws-ijmpc.cls
6962 \family default
6963  and 
6964 \family typewriter
6965 ws-ijmpd.cls
6966 \family default
6967 , respectively.
6968  These files, together with instructions for the authors, can be downloaded
6969  from the sites 
6970 \begin_inset Flex URL
6971 status collapsed
6972
6973 \begin_layout Plain Layout
6974
6975 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
6976 \end_layout
6977
6978 \end_inset
6979
6980  and 
6981 \begin_inset Flex URL
6982 status collapsed
6983
6984 \begin_layout Plain Layout
6985
6986 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
6987 \end_layout
6988
6989 \end_inset
6990
6991 .
6992  Both packages are modified versions of the standard 
6993 \begin_inset Quotes eld
6994 \end_inset
6995
6996 article
6997 \begin_inset Quotes erd
6998 \end_inset
6999
7000  package, and they are almost (but not exactly) identical.
7001  Most of their features are supported by \SpecialChar LyX
7002 .
7003  I have used \SpecialChar LyX
7004  successfully to write articles submitted to both journals
7005  without any problem.
7006 \end_layout
7007
7008 \begin_layout Subsection
7009 Writing a paper
7010 \end_layout
7011
7012 \begin_layout Standard
7013 As usual, the easiest way to write a paper is to start with a template.
7014  Click on 
7015 \family sans
7016 File\SpecialChar menuseparator
7017 New from
7018 \family default
7019  
7020 \family sans
7021 Template
7022 \family default
7023 , then choose the 
7024 \family typewriter
7025 ijmpc.lyx
7026 \family default
7027  or 
7028 \family typewriter
7029 ijmpd.lyx
7030 \family default
7031  template.
7032  This will give an (almost) empty document that includes the most common
7033  fields found in a manuscript.
7034  Simply overwrite the existing text (including the brackets, 
7035 \family typewriter
7036 <>
7037 \family default
7038 ) with your text.
7039  You should keep in mind the following remarks.
7040 \end_layout
7041
7042 \begin_layout Enumerate
7043 \SpecialChar LyX
7044  won't let you change the font size and the page style of the document,
7045  because such modifications are not allowed by both packages.
7046 \end_layout
7047
7048 \begin_layout Enumerate
7049 The language of the document should not be changed.
7050  Before previewing your paper, be sure that the babel package is not used.
7051  To do this, click on 
7052 \family sans
7053 Tools\SpecialChar menuseparator
7054 Preferences
7055 \family default
7056 , select the 
7057 \family sans
7058 Lang Opts
7059 \family default
7060  tab, deselect the 
7061 \family sans
7062 Use babel
7063 \family default
7064  checkbox in the language settings, and click on 
7065 \family sans
7066 Apply
7067 \family default
7068  (or 
7069 \family sans
7070 Save
7071 \family default
7072 , if you wish to make this change permanent).
7073 \end_layout
7074
7075 \begin_layout Enumerate
7076 The 
7077 \begin_inset Quotes eld
7078 \end_inset
7079
7080 Keywords
7081 \begin_inset Quotes erd
7082 \end_inset
7083
7084  style must be used to define keywords.
7085 \end_layout
7086
7087 \begin_layout Enumerate
7088 The ijmpc package provides a style named 
7089 \begin_inset Quotes eld
7090 \end_inset
7091
7092 Classification Codes
7093 \begin_inset Quotes erd
7094 \end_inset
7095
7096 , which can be used to define classification codes, such as PACS numbers.
7097  Note that this facility is not supported by the ijmpd package.
7098 \end_layout
7099
7100 \begin_layout Enumerate
7101 Several new environments are available: 
7102 \begin_inset Quotes eld
7103 \end_inset
7104
7105 Definition
7106 \begin_inset Quotes erd
7107 \end_inset
7108
7109
7110 \begin_inset Quotes eld
7111 \end_inset
7112
7113 Step
7114 \begin_inset Quotes erd
7115 \end_inset
7116
7117
7118 \begin_inset Quotes eld
7119 \end_inset
7120
7121 Example
7122 \begin_inset Quotes erd
7123 \end_inset
7124
7125
7126 \begin_inset Quotes eld
7127 \end_inset
7128
7129 Remark
7130 \begin_inset Quotes erd
7131 \end_inset
7132
7133
7134 \begin_inset Quotes eld
7135 \end_inset
7136
7137 Notation
7138 \begin_inset Quotes erd
7139 \end_inset
7140
7141
7142 \begin_inset Quotes eld
7143 \end_inset
7144
7145 Theorem
7146 \begin_inset Quotes erd
7147 \end_inset
7148
7149
7150 \begin_inset Quotes eld
7151 \end_inset
7152
7153 Proof
7154 \begin_inset Quotes erd
7155 \end_inset
7156
7157
7158 \begin_inset Quotes eld
7159 \end_inset
7160
7161 Corollary
7162 \begin_inset Quotes erd
7163 \end_inset
7164
7165
7166 \begin_inset Quotes eld
7167 \end_inset
7168
7169 Lemma
7170 \begin_inset Quotes erd
7171 \end_inset
7172
7173
7174 \begin_inset Quotes eld
7175 \end_inset
7176
7177 Proposition
7178 \begin_inset Quotes erd
7179 \end_inset
7180
7181
7182 \begin_inset Quotes eld
7183 \end_inset
7184
7185 Prop
7186 \begin_inset Quotes erd
7187 \end_inset
7188
7189
7190 \begin_inset Quotes eld
7191 \end_inset
7192
7193 Question
7194 \begin_inset Quotes erd
7195 \end_inset
7196
7197
7198 \begin_inset Quotes eld
7199 \end_inset
7200
7201 Claim
7202 \begin_inset Quotes erd
7203 \end_inset
7204
7205 , and 
7206 \begin_inset Quotes eld
7207 \end_inset
7208
7209 Conjecture
7210 \begin_inset Quotes erd
7211 \end_inset
7212
7213 .
7214  Their use is more or less obvious.
7215  \SpecialChar LyX
7216  supports all these environments; it will use the proper label, text style,
7217  and numbering scheme for each of them.
7218 \end_layout
7219
7220 \begin_layout Enumerate
7221 Both packages use basic citations; the natbib package should not be used.
7222  In \SpecialChar LyX
7223 , citation references are shown as usual; in the output, citations are
7224  shown as superscripts.
7225  If you want to use a citation as normal text, you should use the 
7226 \family typewriter
7227 refcite
7228 \family default
7229  command, e.
7230 \begin_inset space \thinspace{}
7231 \end_inset
7232
7233 g.
7234 \begin_inset space \space{}
7235 \end_inset
7236
7237
7238 \begin_inset Quotes eld
7239 \end_inset
7240
7241 See Ref.
7242 \begin_inset space \space{}
7243 \end_inset
7244
7245
7246 \family typewriter
7247
7248 \backslash
7249 refcite{key}
7250 \family default
7251
7252 \begin_inset Quotes erd
7253 \end_inset
7254
7255 .
7256 \end_layout
7257
7258 \begin_layout Enumerate
7259 There is no 
7260 \begin_inset Quotes eld
7261 \end_inset
7262
7263 Acknowledgments
7264 \begin_inset Quotes erd
7265 \end_inset
7266
7267  section in both packages.
7268  To put acknowledgments, just use the 
7269 \begin_inset Quotes eld
7270 \end_inset
7271
7272 Section*
7273 \begin_inset Quotes erd
7274 \end_inset
7275
7276  environment.
7277 \end_layout
7278
7279 \begin_layout Enumerate
7280 Appendices may be added to the paper, 
7281 \emph on
7282 after
7283 \emph default
7284  the Acknowledgments and 
7285 \shape italic
7286 before
7287 \shape default
7288  the References.
7289  \SpecialChar LyX
7290  provides a special environment, called 
7291 \begin_inset Quotes eld
7292 \end_inset
7293
7294 Appendices Section
7295 \begin_inset Quotes erd
7296 \end_inset
7297
7298  which marks the beginning of the appendices.
7299  This environment should be left blank; it just sends a \SpecialChar LaTeX
7300  command, but nothing
7301  is really printed.
7302  In \SpecialChar LyX
7303 , the word 
7304 \begin_inset Quotes eld
7305 \end_inset
7306
7307 Appendix
7308 \begin_inset Quotes erd
7309 \end_inset
7310
7311  is printed with blue letters, as a signal that all sections after that
7312  point are appendices.
7313  To write an appendix, use the 
7314 \begin_inset Quotes eld
7315 \end_inset
7316
7317 Appendix
7318 \begin_inset Quotes erd
7319 \end_inset
7320
7321  environment.
7322  \SpecialChar LyX
7323  will number each appendix with capital letters, as required by both journals.
7324  Note that 
7325 \begin_inset Quotes eld
7326 \end_inset
7327
7328 Appendices Section
7329 \begin_inset Quotes erd
7330 \end_inset
7331
7332  
7333 \emph on
7334 must
7335 \emph default
7336  be present before the first appendix; if not, all appendices will be numbered
7337  as normal sections in the output.
7338 \end_layout
7339
7340 \begin_layout Enumerate
7341 The ijmpc and the ijmpd packages use the 
7342 \family typewriter
7343 tbl
7344 \family default
7345  command to implement table captions.
7346  As a result, a table created by \SpecialChar LyX
7347  is printed correctly, but its caption
7348  is ignored.
7349  However, you can use some \SpecialChar TeX
7350  code to overcome this problem, so that captions
7351  are printed as expected.
7352  To do so, create a float table as usual, remove the caption, and replace
7353  it with the \SpecialChar TeX
7354  code 
7355 \family typewriter
7356
7357 \backslash
7358 tbl{
7359 \emph on
7360 your table caption
7361 \emph default
7362 }{
7363 \family default
7364  (sic); you must also the \SpecialChar TeX
7365  code 
7366 \family typewriter
7367 }
7368 \family default
7369  immediately after the tabular material.
7370  Study the example table included in the template files to see how this
7371  trick is implemented.
7372  Alternatively, If you need table captions, you should implement the whole
7373  table float in a 
7374 \family typewriter
7375 .tex
7376 \family default
7377  file, then include this file to the \SpecialChar LyX
7378  document (
7379 \family sans
7380 Insert\SpecialChar menuseparator
7381 File\SpecialChar menuseparator
7382 Child
7383 \begin_inset space ~
7384 \end_inset
7385
7386 Document
7387 \family default
7388 ).
7389  Details on how to create a table float can be found in the files 
7390 \family typewriter
7391 ws-ijmpc.tex
7392 \family default
7393  and 
7394 \family typewriter
7395 ws-ijmpd.tex
7396 \family default
7397 , included in the corresponding packages.
7398 \end_layout
7399
7400 \begin_layout Subsection
7401 Preparing a paper for submission
7402 \end_layout
7403
7404 \begin_layout Standard
7405 Before you submit your paper you must export the \SpecialChar LyX
7406  document as a \SpecialChar LaTeX
7407  file (
7408 \family sans
7409 File\SpecialChar menuseparator
7410 Export\SpecialChar menuseparator
7411 \SpecialChar LaTeX
7412
7413 \family default
7414 )
7415 \begin_inset Foot
7416 status open
7417
7418 \begin_layout Plain Layout
7419 Actually you have the choice between \SpecialChar LaTeX
7420  (plain) and pdflatex.
7421  If you intend to use pdflatex to prepare the paper, you should use the
7422  pdflatex option so that included graphics are converted to PDF format,
7423  ready for use by pdflatex.
7424 \end_layout
7425
7426 \end_inset
7427
7428 , then make the following changes to the resulting 
7429 \family typewriter
7430 .tex
7431 \family default
7432  file.
7433 \end_layout
7434
7435 \begin_layout Enumerate
7436 Remove the comment lines before the 
7437 \family typewriter
7438
7439 \backslash
7440 documentclass
7441 \family default
7442  command.
7443 \end_layout
7444
7445 \begin_layout Enumerate
7446 Remove everything between (and including) the 
7447 \family typewriter
7448
7449 \backslash
7450 makeatletter
7451 \family default
7452  and 
7453 \family typewriter
7454
7455 \backslash
7456 makeatother
7457 \family default
7458  commands, except for any commands you specifically put into the \SpecialChar LaTeX
7459  preamble.
7460 \end_layout
7461
7462 \begin_layout Standard
7463 The modified 
7464 \family typewriter
7465 .tex
7466 \family default
7467  file should be saved and processed through \SpecialChar LaTeX
7468  as many times as necessary.
7469  You may also want to check the resulting 
7470 \family typewriter
7471 .dvi
7472 \family default
7473  document.
7474 \end_layout
7475
7476 \begin_layout Subsection
7477 Use of \SpecialChar TeX
7478  code
7479 \end_layout
7480
7481 \begin_layout Standard
7482 The use of \SpecialChar TeX
7483  code is reduced to two commands, which must be placed at the
7484  top of the document.
7485  If you started writing your paper by using the 
7486 \family typewriter
7487 ijmpc.lyx
7488 \family default
7489  or the 
7490 \family typewriter
7491 ijmpd.lyx
7492 \family default
7493  template, the \SpecialChar TeX
7494  code needed is already in its place; you usually don't need
7495  to delete it.
7496  You may only modify the first \SpecialChar TeX
7497  code to specify the information printed
7498  to the top of odd and even pages (authors' names and short paper's title,
7499  respectively).
7500  This \SpecialChar TeX
7501  code must have the form 
7502 \family typewriter
7503
7504 \backslash
7505 markboth{Authors' Names}{Short Paper's Title}
7506 \family default
7507 .
7508 \end_layout
7509
7510 \begin_layout Section
7511 iopart
7512 \end_layout
7513
7514 \begin_layout Standard
7515 by 
7516 \noun on
7517 Uwe Stöhr
7518 \end_layout
7519
7520 \begin_layout Subsection
7521 Overview
7522 \end_layout
7523
7524 \begin_layout Standard
7525 The iopart package provides a document class to create electronic manuscript
7526  submission to the journals published by the Institute of Physics.
7527  Instructions for the authors how to create a paper using the iopart class
7528  can be downloaded together with the iopart package from the site 
7529 \begin_inset Flex URL
7530 status collapsed
7531
7532 \begin_layout Plain Layout
7533
7534 ftp://ftp.iop.org/pub/journals/latex2e
7535 \end_layout
7536
7537 \end_inset
7538
7539 .
7540 \end_layout
7541
7542 \begin_layout Subsection
7543 Writing a paper
7544 \end_layout
7545
7546 \begin_layout Standard
7547 The easiest way to write a paper is to start with the file 
7548 \emph on
7549 IOP-article.lyx
7550 \emph default
7551  that is available in \SpecialChar LyX
7552 's examples files folder.
7553  Open this file, save it under a new name, and start writing.
7554  The example file explains how to use the special text environments.
7555  Here are the most important advices:
7556 \end_layout
7557
7558 \begin_layout Itemize
7559 To be able to compile your document to a PDF, PS, or DVI, ensure that the
7560  two options 
7561 \family sans
7562 Use AMS math package
7563 \family default
7564  in the document settings under 
7565 \family sans
7566 Math Options
7567 \family default
7568  are not used!
7569 \end_layout
7570
7571 \begin_layout Itemize
7572
7573 \size normal
7574 The title environment defines the kind of your paper.
7575  So use one of the following environments for the title:
7576 \end_layout
7577
7578 \begin_deeper
7579 \begin_layout Itemize
7580
7581 \family sans
7582 \size normal
7583 Title
7584 \family default
7585  for a Paper
7586 \end_layout
7587
7588 \begin_layout Itemize
7589
7590 \family sans
7591 \size normal
7592 Review
7593 \family default
7594  for a Review
7595 \end_layout
7596
7597 \begin_layout Itemize
7598
7599 \family sans
7600 \size normal
7601 Topical
7602 \family default
7603  for a Topical review
7604 \end_layout
7605
7606 \begin_layout Itemize
7607
7608 \family sans
7609 \size normal
7610 Comment
7611 \family default
7612  for a Comment
7613 \end_layout
7614
7615 \begin_layout Itemize
7616
7617 \family sans
7618 \size normal
7619 Note
7620 \family default
7621  for a Note
7622 \end_layout
7623
7624 \begin_layout Itemize
7625
7626 \family sans
7627 \size normal
7628 Paper
7629 \family default
7630  for a Paper (same as Title)
7631 \end_layout
7632
7633 \begin_layout Itemize
7634
7635 \family sans
7636 \size normal
7637 Prelim
7638 \family default
7639  for a Preliminary communication
7640 \end_layout
7641
7642 \begin_layout Itemize
7643
7644 \family sans
7645 \size normal
7646 Rapid
7647 \family default
7648  for a Rapid communication
7649 \end_layout
7650
7651 \begin_layout Itemize
7652
7653 \family sans
7654 \size normal
7655 Letter
7656 \family default
7657  for a Letter to the editor
7658 \end_layout
7659
7660 \end_deeper
7661 \begin_layout Itemize
7662
7663 \size normal
7664 All title environments except of 
7665 \family sans
7666 Letter
7667 \family default
7668  can have an optional short title.
7669 \end_layout
7670
7671 \begin_layout Itemize
7672 There is a general title environment 
7673 \family sans
7674 Article
7675 \family default
7676  which is not directly supported by the \SpecialChar LyX
7677 .
7678  This can be used as \SpecialChar TeX
7679  code when your document doesn't fit into one of the
7680  other title types.
7681 \end_layout
7682
7683 \begin_layout Standard
7684 For more informations like hints for special table and formula formatting,
7685  look at the IOP author guidelines.
7686 \end_layout
7687
7688 \begin_layout Section
7689 Kluwer
7690 \end_layout
7691
7692 \begin_layout Standard
7693 by 
7694 \noun on
7695 Panayotis Papasotiriou
7696 \end_layout
7697
7698 \begin_layout Subsection
7699 Overview
7700 \end_layout
7701
7702 \begin_layout Standard
7703 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
7704  that facilitates electronic manuscript submission to the journals they
7705  publish.
7706  Most known of them (at least in my domain of interest) are 
7707 \emph on
7708 Astrophysics and Space Science
7709 \emph default
7710  and 
7711 \emph on
7712 Solar Physics
7713 \emph default
7714 , but there are many others (see a complete list at 
7715 \begin_inset Flex URL
7716 status open
7717
7718 \begin_layout Plain Layout
7719
7720 http://www.wkap.nl/jrnllist.htm/JRNLHOME
7721 \end_layout
7722
7723 \end_inset
7724
7725 ).
7726  The Kluwer package may be downloaded from the site 
7727 \begin_inset Flex URL
7728 status collapsed
7729
7730 \begin_layout Plain Layout
7731
7732 http://www.wkap.nl/kaphtml.htm/STYLEFILES
7733 \end_layout
7734
7735 \end_inset
7736
7737 .
7738  A complete user guide is contained in that package (but it can also be
7739  downloaded separately).
7740 \end_layout
7741
7742 \begin_layout Standard
7743 \SpecialChar LyX
7744  supports many features of the package but not everything.
7745  However, the \SpecialChar TeX
7746  code needed is reduced to some 
7747 \begin_inset Quotes eld
7748 \end_inset
7749
7750 peculiar
7751 \begin_inset Quotes erd
7752 \end_inset
7753
7754  commands of the package (see
7755 \begin_inset space ~
7756 \end_inset
7757
7758
7759 \begin_inset CommandInset ref
7760 LatexCommand ref
7761 reference "subsec:kluwer_peculiarities"
7762
7763 \end_inset
7764
7765 ).
7766  I have recently used \SpecialChar LyX
7767  to write an article submitted to the 
7768 \emph on
7769 Astrophysics and Space Science
7770 \emph default
7771  without any problem.
7772 \end_layout
7773
7774 \begin_layout Subsection
7775 Writing a paper
7776 \end_layout
7777
7778 \begin_layout Standard
7779 The easiest way to write a paper is to start with the Kluwer template file.
7780  Click on 
7781 \family sans
7782 File\SpecialChar menuseparator
7783 New from
7784 \family default
7785  
7786 \family sans
7787 Template
7788 \family default
7789 , then choose the 
7790 \family typewriter
7791 kluwer.lyx
7792 \family default
7793  template.
7794  This will give an (almost) empty document that includes the most common
7795  fields found in a manuscript and a short description of their use.
7796  As in most templates, simply overwrite the existing text (including the
7797  brackets, 
7798 \family typewriter
7799 <>
7800 \family default
7801 ) with the correct information.
7802 \end_layout
7803
7804 \begin_layout Subsection
7805 Preparing a paper for submission
7806 \end_layout
7807
7808 \begin_layout Standard
7809 As in the AAS\SpecialChar TeX
7810  package, before you submit your paper to a journal you must
7811  
7812 \begin_inset Quotes eld
7813 \end_inset
7814
7815 postprocess
7816 \begin_inset Quotes erd
7817 \end_inset
7818
7819  it as follows.
7820 \end_layout
7821
7822 \begin_layout Enumerate
7823 Export your paper as a \SpecialChar LaTeX
7824  file.
7825  To do this, click on 
7826 \family sans
7827 File\SpecialChar menuseparator
7828 Export\SpecialChar menuseparator
7829 \SpecialChar LaTeX
7830
7831 \family default
7832 .
7833  
7834 \end_layout
7835
7836 \begin_layout Enumerate
7837 Edit the resulting 
7838 \family typewriter
7839 .tex
7840 \family default
7841  file with a text editor and make the following changes
7842 \end_layout
7843
7844 \begin_deeper
7845 \begin_layout Enumerate
7846 remove the comment lines before the 
7847 \family typewriter
7848
7849 \backslash
7850 documentclass
7851 \family default
7852  command,
7853 \end_layout
7854
7855 \begin_layout Enumerate
7856 remove everything between (and including) the 
7857 \family typewriter
7858
7859 \backslash
7860 makeatletter
7861 \family default
7862  and 
7863 \family typewriter
7864
7865 \backslash
7866 makeatother
7867 \family default
7868  commands, except for any commands you specifically put into the \SpecialChar LaTeX
7869  preamble.
7870 \end_layout
7871
7872 \begin_layout Standard
7873 Save the resulting 
7874 \family typewriter
7875 .tex
7876 \family default
7877  file.
7878 \end_layout
7879
7880 \end_deeper
7881 \begin_layout Enumerate
7882 Run the 
7883 \family typewriter
7884 .tex
7885 \family default
7886  file through \SpecialChar LaTeX
7887  as many times as necessary (usually up to three).
7888 \end_layout
7889
7890 \begin_layout Enumerate
7891 View the resulting 
7892 \family typewriter
7893 .dvi
7894 \family default
7895  document using, e.
7896 \begin_inset space \thinspace{}
7897 \end_inset
7898
7899 g.
7900 \begin_inset space \space{}
7901 \end_inset
7902
7903
7904 \family sans
7905 xdvi
7906 \family default
7907 , and check if everything is OK (it should, if you didn't make any mistake).
7908 \end_layout
7909
7910 \begin_layout Subsection
7911 \begin_inset Quotes eld
7912 \end_inset
7913
7914 Peculiarities
7915 \begin_inset Quotes erd
7916 \end_inset
7917
7918  of the Kluwer package
7919 \begin_inset CommandInset label
7920 LatexCommand label
7921 name "subsec:kluwer_peculiarities"
7922
7923 \end_inset
7924
7925
7926 \end_layout
7927
7928 \begin_layout Standard
7929 The Kluwer package has the following 
7930 \begin_inset Quotes eld
7931 \end_inset
7932
7933 peculiarities
7934 \begin_inset Quotes erd
7935 \end_inset
7936
7937 .
7938 \end_layout
7939
7940 \begin_layout Enumerate
7941 It is possible to write multiple articles in the same \SpecialChar LaTeX
7942  file
7943 \begin_inset Foot
7944 status collapsed
7945
7946 \begin_layout Plain Layout
7947 I can't imagine any good reason to do this.
7948 \end_layout
7949
7950 \end_inset
7951
7952 .
7953  Each article must be included in the environment 
7954 \begin_inset Quotes eld
7955 \end_inset
7956
7957 article
7958 \begin_inset Quotes erd
7959 \end_inset
7960
7961 .
7962  Unfortunately, this environment cannot be omitted, even if you write just
7963  one article.
7964  Therefore, each article starts with the command 
7965 \family typewriter
7966
7967 \backslash
7968 begin{article}
7969 \family default
7970  and, obviously, ends with the command 
7971 \family typewriter
7972
7973 \backslash
7974 end{article}
7975 \family default
7976 .
7977  Although this can be implemented in \SpecialChar LyX
7978 , I didn't included it, since it looks
7979  ugly and can confuse the novice user.
7980  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
7981  code (the
7982  well-known 
7983 \begin_inset Quotes eld
7984 \end_inset
7985
7986 \SpecialChar TeX
7987  code
7988 \begin_inset Quotes erd
7989 \end_inset
7990
7991 ).
7992 \end_layout
7993
7994 \begin_layout Enumerate
7995 Information given at the beginning of the article (i.
7996 \begin_inset space \thinspace{}
7997 \end_inset
7998
7999 e.
8000 \begin_inset space \space{}
8001 \end_inset
8002
8003 title, subtitle, author, institution, running title, running author, abstract
8004  and keywords) must be included in an environment called 
8005 \begin_inset Quotes eld
8006 \end_inset
8007
8008 opening
8009 \begin_inset Quotes erd
8010 \end_inset
8011
8012 .
8013  This is not implemented in \SpecialChar LyX
8014 , so you must enter title, subtitle etc.
8015 \begin_inset space ~
8016 \end_inset
8017
8018 between two \SpecialChar TeX
8019  code lines (
8020 \family typewriter
8021
8022 \backslash
8023 begin{opening}
8024 \family default
8025  and 
8026 \family typewriter
8027
8028 \backslash
8029 end{opening}
8030 \family default
8031 ).
8032 \end_layout
8033
8034 \begin_layout Enumerate
8035 According to the user manual, the label of each bibliography item must be
8036  written as 
8037 \family typewriter
8038
8039 \backslash
8040 protect
8041 \backslash
8042 citeauthoryear{
8043 \family default
8044 \emph on
8045 author(s)
8046 \family typewriter
8047 \emph default
8048 }{
8049 \family default
8050 \emph on
8051 year
8052 \family typewriter
8053 \emph default
8054 }
8055 \family default
8056 .
8057 \end_layout
8058
8059 \begin_layout Standard
8060 The 
8061 \family typewriter
8062 kluwer.lyx
8063 \family default
8064  template takes care of all these 
8065 \begin_inset Quotes eld
8066 \end_inset
8067
8068 peculiarities
8069 \begin_inset Quotes erd
8070 \end_inset
8071
8072 .
8073  If you start a new paper using this template you don't need to do anything
8074  special.
8075  Just 
8076 \end_layout
8077
8078 \begin_layout Enumerate
8079 don't delete the \SpecialChar TeX
8080  code included in the template, and
8081 \end_layout
8082
8083 \begin_layout Enumerate
8084 copy the example bibliography item included in the template and modify it
8085  as necessary to enter new bibliography items.
8086 \end_layout
8087
8088 \begin_layout Section
8089 Koma-Script
8090 \end_layout
8091
8092 \begin_layout Standard
8093 by 
8094 \noun on
8095 Bernd Rellermeyer
8096 \end_layout
8097
8098 \begin_layout Subsection
8099 Overview
8100 \end_layout
8101
8102 \begin_layout Standard
8103 The \SpecialChar LyX
8104  document classes 
8105 \emph on
8106 article (koma-script)
8107 \emph default
8108
8109 \emph on
8110 report (koma-script)
8111 \emph default
8112
8113 \emph on
8114 book
8115 \emph default
8116  
8117 \emph on
8118 (koma-script)
8119 \emph default
8120 , and 
8121 \emph on
8122 letter
8123 \emph default
8124  
8125 \emph on
8126 (koma-script)
8127 \emph default
8128  correspond to the \SpecialChar LaTeX
8129  document classes 
8130 \family typewriter
8131 scrartcl.cls
8132 \family default
8133
8134 \family typewriter
8135 scrreprt.cls
8136 \family default
8137
8138 \family typewriter
8139 scrbook.cls
8140 \family default
8141 , and 
8142 \family typewriter
8143 scrlettr.cls
8144 \family default
8145 , resp.
8146 \begin_inset space ~
8147 \end_inset
8148
8149 of the Koma-Script family.
8150  They are replacements for the standard document classes 
8151 \family typewriter
8152 article.cls
8153 \family default
8154
8155 \family typewriter
8156 report.cls
8157 \family default
8158
8159 \family typewriter
8160 book.cls
8161 \family default
8162  and 
8163 \family typewriter
8164 letter.cls
8165 \family default
8166 , resp., and fit better to European typography conventions in a number of
8167  points.
8168 \end_layout
8169
8170 \begin_layout Itemize
8171 Standard character size is 11pt in 
8172 \emph on
8173 article (koma-script)
8174 \emph default
8175
8176 \emph on
8177 report (koma-script)
8178 \emph default
8179 , and 
8180 \emph on
8181 book (koma-script)
8182 \emph default
8183 , and 12pt in 
8184 \emph on
8185 letter (koma-script)
8186 \emph default
8187 .
8188 \end_layout
8189
8190 \begin_layout Itemize
8191 Headings, labels of the description environment, and a number of elements
8192  of the 
8193 \emph on
8194 letter (koma-script)
8195 \emph default
8196  document class are set in a bold sans serif font.
8197 \begin_inset Foot
8198 status collapsed
8199
8200 \begin_layout Plain Layout
8201 There is a big difference between the bold sans serif old cm fonts and new
8202  ec fonts, especially in the appearance of headings.
8203  In comparison, the ec bold sans serif fonts look a bit thin.
8204  Here the \SpecialChar LaTeX
8205  package 
8206 \family typewriter
8207 cmsd.sty by
8208 \family default
8209  
8210 \shape smallcaps
8211 Walter Schmidt
8212 \shape default
8213  helps to produce the 
8214 \begin_inset Quotes eld
8215 \end_inset
8216
8217 usual
8218 \begin_inset Quotes erd
8219 \end_inset
8220
8221  appearance when using the ec fonts.
8222 \end_layout
8223
8224 \end_inset
8225
8226  The numbering of chapter headings is made in the same way as the numbering
8227  of section headings, that is without the extra line 
8228 \begin_inset Quotes eld
8229 \end_inset
8230
8231 Chapter\SpecialChar ldots
8232
8233 \begin_inset Quotes erd
8234 \end_inset
8235
8236 .
8237  In addition, the appearance of the headings can be modified by using a
8238  number of options (in \SpecialChar LyX
8239  to be entered in the field 
8240 \family sans
8241 Extra
8242 \begin_inset space ~
8243 \end_inset
8244
8245 Options
8246 \family default
8247  of the dialog 
8248 \family sans
8249 Layout\SpecialChar menuseparator
8250 Document
8251 \family default
8252 ).
8253  
8254 \end_layout
8255
8256 \begin_layout Itemize
8257 The main means in the Koma-Script document classes to design the type area
8258  are the options 
8259 \family sans
8260 BCOR
8261 \family default
8262  and 
8263 \family sans
8264 DIV
8265 \family default
8266  (in \SpecialChar LyX
8267  to be entered in the extra class options field in the dialog 
8268 \family sans
8269 Document\SpecialChar menuseparator
8270 Settings
8271 \family default
8272 ).
8273  They make a clearer modification of page margins possible as do the options
8274  of the dialog 
8275 \family sans
8276 Document\SpecialChar menuseparator
8277 Settings
8278 \family default
8279 .
8280  
8281 \end_layout
8282
8283 \begin_layout Itemize
8284 The \SpecialChar LaTeX
8285  document classes of the Koma-Script family define a number of additional
8286  commands.
8287  Those part of it which makes sense in \SpecialChar LyX
8288  is implemented in corresponding
8289  paragraph types.
8290 \end_layout
8291
8292 \begin_layout Standard
8293 Detailed descriptions of the \SpecialChar LaTeX
8294  document classes of the Koma-Script family
8295  can be found in the Koma-Script documentation 
8296 \emph on
8297 scrguide
8298 \emph default
8299  (German) and 
8300 \emph on
8301 scrguien
8302 \emph default
8303  (English).
8304 \end_layout
8305
8306 \begin_layout Subsection
8307 article (koma-script), report (koma-script), and book (koma-script)
8308 \end_layout
8309
8310 \begin_layout Standard
8311 The document classes 
8312 \emph on
8313 article (koma-script)
8314 \emph default
8315
8316 \emph on
8317 report (koma-script)
8318 \emph default
8319 , and 
8320 \emph on
8321 book
8322 \emph default
8323  
8324 \emph on
8325 (koma-script)
8326 \emph default
8327  are implemented in the layout files 
8328 \family typewriter
8329 scrartcl.layout
8330 \family default
8331
8332 \family typewriter
8333 scrreprt.layout
8334 \family default
8335 , and 
8336 \family typewriter
8337 scrbook.layout
8338 \family default
8339 , resp.
8340  They contain all the paragraph types of the corresponding standard document
8341  classes 
8342 \emph on
8343 article
8344 \emph default
8345
8346 \emph on
8347 report
8348 \emph default
8349 , and 
8350 \emph on
8351 book
8352 \emph default
8353 , resp., partly modified, with the exception of the \SpecialChar LyX
8354  specific 
8355 \family sans
8356 List
8357 \family default
8358 -type, which is replaced by the new 
8359 \family sans
8360 Labeling
8361 \family default
8362 -type having the same functionality.
8363  Beside the 
8364 \family sans
8365 Labeling
8366 \family default
8367 -Type there is a number of new paragraph types added.
8368  They are 
8369 \emph on
8370 not
8371 \emph default
8372  part of 
8373 \emph on
8374 letter (koma-script)
8375 \emph default
8376 .
8377 \end_layout
8378
8379 \begin_layout Itemize
8380
8381 \family sans
8382 Addpart, Addchap
8383 \family default
8384
8385 \family sans
8386 Addsec
8387 \family default
8388 : are equivalents to 
8389 \family sans
8390 Part*, Chapter*
8391 \family default
8392  and 
8393 \family sans
8394 Section*
8395 \family default
8396 , resp., additionally inserting an entry in the table of contents.
8397  
8398 \family sans
8399 Addpart
8400 \family default
8401  and 
8402 \family sans
8403 Addchap
8404 \family default
8405  are not contained in 
8406 \emph on
8407 article (koma-script)
8408 \emph default
8409 .
8410 \end_layout
8411
8412 \begin_layout Itemize
8413
8414 \family sans
8415 Addchap*
8416 \family default
8417
8418 \family sans
8419 Addsec*
8420 \family default
8421 : behave exactly as 
8422 \family sans
8423 Addchap
8424 \family default
8425  and 
8426 \family sans
8427 Addsec
8428 \family default
8429 , resp., additionally clearing running heads.
8430  
8431 \family sans
8432 Addchap*
8433 \family default
8434  is not contained in 
8435 \emph on
8436 article (koma-script)
8437 \emph default
8438 .
8439 \begin_inset Foot
8440 status collapsed
8441
8442 \begin_layout Plain Layout
8443 There is also an 
8444 \family typewriter
8445
8446 \backslash
8447 addpart*
8448 \family default
8449  command in 
8450 \emph on
8451 book (koma-script)
8452 \emph default
8453  and in 
8454 \emph on
8455 report (koma-script)
8456 \emph default
8457 , but since this is identical to 
8458 \family sans
8459 Part*
8460 \family default
8461 , is has not been implemented in \SpecialChar LyX
8462 .
8463 \end_layout
8464
8465 \end_inset
8466
8467
8468 \end_layout
8469
8470 \begin_layout Itemize
8471
8472 \family sans
8473 Minisec
8474 \family default
8475 : generates a heading directly above the following paragraph in the standard
8476  character size without affecting the structure of the document.
8477 \end_layout
8478
8479 \begin_layout Itemize
8480
8481 \family sans
8482 Captionabove
8483 \family default
8484  and 
8485 \family sans
8486 Captionbelow
8487 \family default
8488  are special captions which respect the different space settings needed
8489  for captions placed above or below an element (if you follow strict typographic
8490  rules, you might want to place table captions always above the table).
8491  You can also use the class option 
8492 \family typewriter
8493 tablecaptionsabove
8494 \family default
8495 , which will switch 
8496 \family sans
8497 caption
8498 \family default
8499  to 
8500 \family sans
8501 captionabove
8502 \family default
8503  for tables and 
8504 \family sans
8505 captionbelow
8506 \family default
8507  for figures.
8508  You need at least Koma-Script version 2.8q to use this.
8509 \end_layout
8510
8511 \begin_layout Itemize
8512
8513 \family sans
8514 Dictum
8515 \family default
8516 : can be used to set a bonmot, e.
8517 \begin_inset space \thinspace{}
8518 \end_inset
8519
8520 g.
8521 \begin_inset space \space{}
8522 \end_inset
8523
8524 at the beginning of a chapter.
8525  If you use the optional argument (
8526 \family sans
8527 Insert\SpecialChar menuseparator
8528 Short
8529 \begin_inset space ~
8530 \end_inset
8531
8532 Title
8533 \family default
8534 ), you can insert the dictum's author there.
8535  Dictum and author are separated by a line.
8536  You need at least Koma-Script version 2.8q to use this.
8537  
8538 \family sans
8539 Dictum
8540 \family default
8541  is not contained in 
8542 \emph on
8543 article (koma-script)
8544 \emph default
8545 .
8546 \end_layout
8547
8548 \begin_layout Standard
8549 The following types, together with the standard types 
8550 \family sans
8551 Title
8552 \family default
8553
8554 \family sans
8555 Author
8556 \family default
8557 , and 
8558 \family sans
8559 Date
8560 \family default
8561 , form the title area of the document.
8562  They must be entered ahead of the first 
8563 \begin_inset Quotes eld
8564 \end_inset
8565
8566 ordinary
8567 \begin_inset Quotes erd
8568 \end_inset
8569
8570  paragraph.
8571 \begin_inset Foot
8572 status collapsed
8573
8574 \begin_layout Plain Layout
8575 The corresponding \SpecialChar LaTeX
8576  commands must appear before the 
8577 \family typewriter
8578
8579 \backslash
8580 maketitle
8581 \family default
8582  command.
8583 \end_layout
8584
8585 \end_inset
8586
8587  When such a type is used more than once, the latter usage overwrites the
8588  former one, that means, for every type only the latest usage is valid.
8589  The order of the different types however has, like 
8590 \family sans
8591 Title
8592 \family default
8593
8594 \family sans
8595 Author
8596 \family default
8597 , and 
8598 \family sans
8599 Date
8600 \family default
8601 , no effect on the appearance of the produced document.
8602 \end_layout
8603
8604 \begin_layout Itemize
8605
8606 \family sans
8607 Subject
8608 \family default
8609 : produces a centered paragraph above the ordinary title (
8610 \family sans
8611 Title
8612 \family default
8613
8614 \family sans
8615 Author
8616 \family default
8617
8618 \family sans
8619 Date
8620 \family default
8621 ) for the subject of the document.
8622 \end_layout
8623
8624 \begin_layout Itemize
8625
8626 \family sans
8627 Publishers
8628 \family default
8629 : produces a centered paragraph below the ordinary title (
8630 \family sans
8631 Title
8632 \family default
8633
8634 \family sans
8635 Author
8636 \family default
8637
8638 \family sans
8639 Date
8640 \family default
8641 ) for the publishers' name.
8642 \end_layout
8643
8644 \begin_layout Itemize
8645
8646 \family sans
8647 Dedication
8648 \family default
8649 : in 
8650 \emph on
8651 report (koma-script)
8652 \emph default
8653  and 
8654 \emph on
8655 book (koma-script)
8656 \emph default
8657  produces a centered paragraph on its own page behind the title page, or
8658  in 
8659 \emph on
8660 article (koma-script)
8661 \emph default
8662  produces a centered paragraph below the ordinary title (
8663 \family sans
8664 Title
8665 \family default
8666
8667 \family sans
8668 Author
8669 \family default
8670
8671 \family sans
8672 Date
8673 \family default
8674
8675 \family sans
8676 Publishers
8677 \family default
8678 ) for a dedication.
8679 \end_layout
8680
8681 \begin_layout Itemize
8682
8683 \family sans
8684 Titlehead
8685 \family default
8686 : produces a left aligned paragraph above the ordinary title (
8687 \family sans
8688 Title
8689 \family default
8690
8691 \family sans
8692 Author
8693 \family default
8694
8695 \family sans
8696 Date
8697 \family default
8698
8699 \family sans
8700 Subject
8701 \family default
8702 ) for a document`s head.
8703 \end_layout
8704
8705 \begin_layout Itemize
8706
8707 \family sans
8708 Uppertitleback
8709 \family default
8710 : produces in a double-sided print in 
8711 \emph on
8712 report (koma-script)
8713 \emph default
8714  and 
8715 \emph on
8716 book (koma-script)
8717 \emph default
8718  a left-aligned paragraph at the top of the title page`s back or has no
8719  effect in a single-sided print or in 
8720 \emph on
8721 article (koma-script)
8722 \emph default
8723 .
8724 \end_layout
8725
8726 \begin_layout Itemize
8727
8728 \family sans
8729 Lowertitleback
8730 \family default
8731 : produces in a double-sided print in 
8732 \emph on
8733 report (koma-script)
8734 \emph default
8735  and 
8736 \emph on
8737 book (koma-script)
8738 \emph default
8739  a left-aligned paragraph at the bottom of the title page`s back or has
8740  no effect in a single-sided print or in 
8741 \emph on
8742 article (koma-script)
8743 \emph default
8744 .
8745 \end_layout
8746
8747 \begin_layout Itemize
8748
8749 \family sans
8750 Extratitle
8751 \family default
8752 : produces a special 
8753 \begin_inset Quotes eld
8754 \end_inset
8755
8756 dirty
8757 \begin_inset Quotes erd
8758 \end_inset
8759
8760  page ahead of the actual document containing a paragraph without special
8761  formatting.
8762 \end_layout
8763
8764 \begin_layout Standard
8765 The layout files for the document classes 
8766 \emph on
8767 article (koma-script)
8768 \emph default
8769
8770 \emph on
8771 report (koma-script)
8772 \emph default
8773 , and 
8774 \emph on
8775 book (koma-script)
8776 \emph default
8777  do include the file 
8778 \family typewriter
8779 scrmacros.inc
8780 \family default
8781 .
8782  This is thought of as a place to define your own types.
8783  Copy scrmacros
8784 \family typewriter
8785 .inc
8786 \family default
8787  in your personal layout directory and edit the file!
8788 \end_layout
8789
8790 \begin_layout Subsection
8791 letter (koma-script)
8792 \end_layout
8793
8794 \begin_layout Standard
8795 \noindent
8796 The document class 
8797 \emph on
8798 letter (koma-script)
8799 \emph default
8800  is implemented in the layout file 
8801 \family typewriter
8802 scrlettr.layout
8803 \family default
8804 .
8805  It contains all the paragraph types of the corresponding standard document
8806  class 
8807 \emph on
8808 letter
8809 \emph default
8810 , partly modified, with the exception of the \SpecialChar LyX
8811  specific types 
8812 \family sans
8813 \SpecialChar LyX
8814 -Code
8815 \family default
8816  and 
8817 \family sans
8818 Comment
8819 \family default
8820  and the 
8821 \family sans
8822 List
8823 \family default
8824  type, which is replaced by the new 
8825 \family sans
8826 Labeling
8827 \family default
8828  type.
8829  In addition, it contains, in contrast to the standard document class, the
8830  standard types 
8831 \family sans
8832 \SpecialChar LaTeX
8833
8834 \family default
8835
8836 \family sans
8837 Quotation
8838 \family default
8839
8840 \family sans
8841 Quote
8842 \family default
8843 , and 
8844 \family sans
8845 Verse
8846 \family default
8847 .
8848  Furthermore, there are a number of new letter specific types.
8849 \end_layout
8850
8851 \begin_layout Standard
8852 The appearance of the letter produced by this document class can be controlled
8853  by a number of \SpecialChar LaTeX
8854  commands, which you can put in the \SpecialChar LaTeX
8855  preamble.
8856 \begin_inset Foot
8857 status collapsed
8858
8859 \begin_layout Plain Layout
8860 For example, the standard appearance of the letter`s heading, consisting
8861  of name and address, is quite self-willed.
8862  An 
8863 \begin_inset Quotes eld
8864 \end_inset
8865
8866 ordinary
8867 \begin_inset Quotes erd
8868 \end_inset
8869
8870  heading is produced by the following \SpecialChar LaTeX
8871  commands in the preamble:
8872 \end_layout
8873
8874 \begin_layout LyX-Code
8875
8876 \backslash
8877 firsthead{
8878 \backslash
8879 parbox[b]{
8880 \backslash
8881 textwidth}
8882 \end_layout
8883
8884 \begin_layout LyX-Code
8885   {
8886 \backslash
8887 ignorespaces 
8888 \backslash
8889 fromname
8890 \backslash
8891
8892 \backslash
8893  
8894 \backslash
8895 ignorespaces 
8896 \backslash
8897 fromaddress}} 
8898 \end_layout
8899
8900 \begin_layout LyX-Code
8901
8902 \backslash
8903 nexthead{
8904 \backslash
8905 parbox[b]{
8906 \backslash
8907 textwidth}
8908 \end_layout
8909
8910 \begin_layout LyX-Code
8911   {
8912 \backslash
8913 ignorespaces 
8914 \backslash
8915 fromname 
8916 \backslash
8917 hfill 
8918 \backslash
8919 ignorespaces 
8920 \backslash
8921 pagename
8922 \backslash
8923  
8924 \backslash
8925 thepage}}
8926 \end_layout
8927
8928 \end_inset
8929
8930  A detailed German description of such \SpecialChar LaTeX
8931  commands can be found in the Koma-Script
8932  documentation 
8933 \emph on
8934 scrguide
8935 \emph default
8936 .
8937  With it, the letter's author can produce his personal letter layout.
8938 \end_layout
8939
8940 \begin_layout Standard
8941 The types 
8942 \family sans
8943 Letter
8944 \family default
8945  and 
8946 \family sans
8947 Opening
8948 \family default
8949  define the beginning of the letter and must be used in every letter.
8950  To emphasize them in the \SpecialChar LyX
8951  document class, they are marked with the letter
8952  
8953 \shape italic
8954 L
8955 \shape default
8956  or 
8957 \shape italic
8958 O
8959 \shape default
8960 , resp.
8961 \begin_inset space ~
8962 \end_inset
8963
8964 in the left margin.
8965  It is possible to write any number of letters in one file.
8966  An 
8967 \family sans
8968 Opening
8969 \family default
8970  type produces a new letter using the same addressee and a 
8971 \family sans
8972 Letter
8973 \family default
8974  type produces a new addressee.
8975  The types 
8976 \family sans
8977 Closing
8978 \family default
8979
8980 \family sans
8981 PS
8982 \family default
8983
8984 \family sans
8985 CC
8986 \family default
8987 , and 
8988 \family sans
8989 Encl
8990 \family default
8991  are ordinary paragraph types and can also be used several times in one
8992  and the same letter.
8993 \end_layout
8994
8995 \begin_layout Itemize
8996
8997 \family sans
8998 Letter
8999 \family default
9000 : produces a paragraph for the addressee and implicitly defines the beginning
9001  of the letter.
9002 \end_layout
9003
9004 \begin_layout Itemize
9005
9006 \family sans
9007 Opening
9008 \family default
9009 : produces a paragraph for the form of address and implicitly produces a
9010  new letter.
9011 \end_layout
9012
9013 \begin_layout Itemize
9014
9015 \family sans
9016 Closing
9017 \family default
9018 : produces a paragraph for a close.
9019 \end_layout
9020
9021 \begin_layout Itemize
9022
9023 \family sans
9024 PS
9025 \family default
9026 : produces a paragraph for a postscript.
9027 \end_layout
9028
9029 \begin_layout Itemize
9030
9031 \family sans
9032 CC
9033 \family default
9034 : produces a paragraph for a distribution list.
9035 \end_layout
9036
9037 \begin_layout Itemize
9038
9039 \family sans
9040 Encl
9041 \family default
9042 : produces a paragraph for enclosures.
9043 \end_layout
9044
9045 \begin_layout Standard
9046 The types 
9047 \family sans
9048 Name
9049 \family default
9050
9051 \family sans
9052 Signature
9053 \family default
9054
9055 \family sans
9056 Address
9057 \family default
9058
9059 \family sans
9060 Telephone
9061 \family default
9062
9063 \family sans
9064 Place
9065 \family default
9066
9067 \family sans
9068 Backaddress
9069 \family default
9070
9071 \family sans
9072 Specialmail
9073 \family default
9074
9075 \family sans
9076 Location
9077 \family default
9078
9079 \family sans
9080 Title
9081 \family default
9082 , and 
9083 \family sans
9084 Subject
9085 \family default
9086  are input types provided with a label to enter information, which will
9087  be processed by the document class.
9088 \begin_inset Foot
9089 status open
9090
9091 \begin_layout Plain Layout
9092 It could be seen as a matter of inconsequence, that the types 
9093 \family sans
9094 Letter
9095 \family default
9096  and 
9097 \family sans
9098 Opening
9099 \family default
9100  described above are not such input types as well.
9101  Because of the special meaning of those types, however, I have implemented
9102  them as ordinary paragraph types with a one letter mark in the left margin.
9103  Moreover, it would affect my feeling of symmetry, if the 
9104 \family sans
9105 Opening
9106 \family default
9107  type and the 
9108 \family sans
9109 Closing
9110 \family default
9111  type had such a serious different appearance.
9112 \end_layout
9113
9114 \end_inset
9115
9116  The types must be used ahead of the corresponding 
9117 \family sans
9118 Opening
9119 \family default
9120  type.
9121 \end_layout
9122
9123 \begin_layout Standard
9124 An implementation of these types in a WYSIWYG fashion does not seem to make
9125  sense, because the real appearance of the produced letter does not only
9126  depend on the usage of the particular type, but also on other factors.
9127  For example, a signature entered in the 
9128 \family sans
9129 Signature
9130 \family default
9131  type will in the standard behavior appear in the produced letter only,
9132  when in the same letter also a 
9133 \family sans
9134 Closing
9135 \family default
9136  type is used.
9137  The entered value of the 
9138 \family sans
9139 Telephone
9140 \family default
9141  type will in the standard behavior not appear in the produced letter at
9142  all.
9143  The possibility to design the letter`s heading freely is already indicated
9144  in a footnote above.
9145 \end_layout
9146
9147 \begin_layout Standard
9148 The input types can also be used as empty paragraphs.
9149  This makes sense e.
9150 \begin_inset space \thinspace{}
9151 \end_inset
9152
9153 g.
9154 \begin_inset space \space{}
9155 \end_inset
9156
9157 for the 
9158 \family sans
9159 Signature
9160 \family default
9161  type.
9162  If the 
9163 \family sans
9164 Signature
9165 \family default
9166  type is not used at all, in the standard behavior the value of the 
9167 \family sans
9168 Name
9169 \family default
9170  type is used as signature, whereas if an empty 
9171 \family sans
9172 Signature
9173 \family default
9174  type is used, no signature value is defined.
9175 \end_layout
9176
9177 \begin_layout Standard
9178 By using the input types it is possible to write a letter template, containing
9179  filled input types with your personal dates (name, address, etc.) and empty
9180  input types for other dates you want to enter.
9181 \end_layout
9182
9183 \begin_layout Itemize
9184
9185 \family sans
9186 Name
9187 \family default
9188 : sender's name, in the standard behavior appears as a centered paragraph
9189  in small caps in the letter`s heading.
9190 \end_layout
9191
9192 \begin_layout Itemize
9193
9194 \family sans
9195 Signature
9196 \family default
9197 : sender's signature, in the standard behavior appears below the 
9198 \family sans
9199 Closing
9200 \family default
9201  type.
9202  If no 
9203 \family sans
9204 Signature
9205 \family default
9206  type is used, the value of the 
9207 \family sans
9208 Name
9209 \family default
9210  type appears instead.
9211 \end_layout
9212
9213 \begin_layout Itemize
9214
9215 \family sans
9216 Address
9217 \family default
9218 : sender's address, in the standard behavior appears in a centered paragraph
9219  in the letter`s heading below the sender's name.
9220 \end_layout
9221
9222 \begin_layout Itemize
9223
9224 \family sans
9225 Telephone
9226 \family default
9227 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
9228  variable
9229  
9230 \family typewriter
9231
9232 \backslash
9233 telephonenum
9234 \family default
9235 .
9236 \end_layout
9237
9238 \begin_layout Itemize
9239
9240 \family sans
9241 Place
9242 \family default
9243 : place of the letter`s making.
9244 \end_layout
9245
9246 \begin_layout Itemize
9247
9248 \family sans
9249 Date
9250 \family default
9251 : date of the letter`s making.
9252  
9253 \family sans
9254 Place
9255 \family default
9256  and 
9257 \family sans
9258 Date
9259 \family default
9260 , in the standard behavior, produce the place and the date in a right-aligned
9261  line below the addressee's field.
9262  If an empty 
9263 \family sans
9264 Date
9265 \family default
9266  type is used, neither place nor date appear, independent of the value of
9267  the 
9268 \family sans
9269 Place
9270 \family default
9271  type.
9272  If no 
9273 \family sans
9274 Date
9275 \family default
9276  type is used, the date of the letter `s production is used.
9277 \end_layout
9278
9279 \begin_layout Itemize
9280
9281 \family sans
9282 Backaddress
9283 \family default
9284 : sender`s back address, in the standard behavior appears above the addressee's
9285  field in a small sans serif font.
9286 \end_layout
9287
9288 \begin_layout Itemize
9289
9290 \family sans
9291 Specialmail
9292 \family default
9293 : special mail information, in the standard behavior appears underlined
9294  above the addressee's field below the back address.
9295 \end_layout
9296
9297 \begin_layout Itemize
9298
9299 \family sans
9300 Location
9301 \family default
9302 : additional information, in the standard behavior appears on right side
9303  below the addressee`s field.
9304 \end_layout
9305
9306 \begin_layout Itemize
9307
9308 \family sans
9309 Title
9310 \family default
9311 : the letter's title, in the standard behavior appears in a big, bold, sans
9312  serif font above the subject.
9313 \end_layout
9314
9315 \begin_layout Itemize
9316
9317 \family sans
9318 Subject
9319 \family default
9320 : the letter's subject, in the standard behavior appears in a bold font
9321  above the 
9322 \family sans
9323 Opening
9324 \family default
9325  paragraph.
9326 \end_layout
9327
9328 \begin_layout Standard
9329 The types 
9330 \family sans
9331 Yourref
9332 \family default
9333
9334 \family sans
9335 Yourmail
9336 \family default
9337
9338 \family sans
9339 Myref
9340 \family default
9341
9342 \family sans
9343 Customer
9344 \family default
9345 , and 
9346 \family sans
9347 Invoice
9348 \family default
9349  produce a business letter like line above the 
9350 \family sans
9351 Title
9352 \family default
9353  line containing the fields 
9354 \begin_inset Quotes eld
9355 \end_inset
9356
9357 Your ref.
9358 \begin_inset Quotes erd
9359 \end_inset
9360
9361
9362 \begin_inset Quotes eld
9363 \end_inset
9364
9365 Your letter of
9366 \begin_inset Quotes erd
9367 \end_inset
9368
9369
9370 \begin_inset Quotes eld
9371 \end_inset
9372
9373 Our ref.
9374 \begin_inset Quotes erd
9375 \end_inset
9376
9377
9378 \begin_inset Quotes eld
9379 \end_inset
9380
9381 Customer no.
9382 \begin_inset Quotes erd
9383 \end_inset
9384
9385
9386 \begin_inset Quotes eld
9387 \end_inset
9388
9389 Invoice no.
9390 \begin_inset Quotes erd
9391 \end_inset
9392
9393 , and 
9394 \begin_inset Quotes eld
9395 \end_inset
9396
9397 Date
9398 \begin_inset Quotes erd
9399 \end_inset
9400
9401 .
9402  For the date field, the value of the 
9403 \family sans
9404 Date
9405 \family default
9406  type is used.
9407  If one of these 
9408 \begin_inset Quotes eld
9409 \end_inset
9410
9411 business letter types
9412 \begin_inset Quotes erd
9413 \end_inset
9414
9415  is used, the value of the 
9416 \family sans
9417 Place
9418 \family default
9419  type however does not appear, but only the \SpecialChar LaTeX
9420  variable 
9421 \family typewriter
9422
9423 \backslash
9424 fromplace
9425 \family default
9426  is set.
9427  The ordinary output of place and date in a right-aligned line below the
9428  addressee`s field is suppressed.
9429  The types are implemented as input types provided with a label and must
9430  be used ahead of the corresponding 
9431 \family sans
9432 Opening
9433 \family default
9434  type.
9435 \end_layout
9436
9437 \begin_layout Itemize
9438
9439 \family sans
9440 Yourref
9441 \family default
9442 : Your ref.
9443 \end_layout
9444
9445 \begin_layout Itemize
9446
9447 \family sans
9448 Yourmail
9449 \family default
9450 : Your letter of.
9451 \end_layout
9452
9453 \begin_layout Itemize
9454
9455 \family sans
9456 Myref
9457 \family default
9458 : Our ref.
9459 \end_layout
9460
9461 \begin_layout Itemize
9462
9463 \family sans
9464 Customer
9465 \family default
9466 : Customer no.
9467 \end_layout
9468
9469 \begin_layout Itemize
9470
9471 \family sans
9472 Invoice
9473 \family default
9474 : Invoice no.
9475 \end_layout
9476
9477 \begin_layout Subsection
9478 The new letter class: letter (koma-script v.2)
9479 \end_layout
9480
9481 \begin_layout Standard
9482 by 
9483 \noun on
9484 Jürgen Spitzmüller
9485 \end_layout
9486
9487 \begin_layout Standard
9488 \begin_inset VSpace medskip
9489 \end_inset
9490
9491
9492 \end_layout
9493
9494 \begin_layout Standard
9495 \noindent
9496 Koma-Script version 2.8 has introduced a new letter class 
9497 \family typewriter
9498 scrlttr2
9499 \family default
9500  which supersedes the now unsupported 
9501 \family typewriter
9502 scrlettr
9503 \family default
9504 .
9505  It has — on the \SpecialChar LaTeX
9506  side — a completely new interface and is not compatible
9507  with the old class.
9508  Therefore, \SpecialChar LyX
9509  supports both, though it is recommended you use the new class.
9510 \end_layout
9511
9512 \begin_layout Standard
9513 This class covers the same functionality as 
9514 \emph on
9515 letter (koma-script),
9516 \emph default
9517  and a few more.
9518  The basic items are 
9519 \family sans
9520 Address
9521 \family default
9522  (receiver's address, same as 
9523 \family sans
9524 Letter
9525 \family default
9526  in the old layout), 
9527 \family sans
9528 Opening
9529 \family default
9530 , and 
9531 \family sans
9532 Closing
9533 \family default
9534 .
9535  
9536 \family sans
9537 NextAddress
9538 \family default
9539  will start a new letter (i.
9540 \begin_inset space \thinspace{}
9541 \end_inset
9542
9543 e.
9544 \begin_inset space \space{}
9545 \end_inset
9546
9547 you can write several letters per document).
9548  New elements are sender's 
9549 \family sans
9550 E-Mail
9551 \family default
9552
9553 \family sans
9554 URL
9555 \family default
9556
9557 \family sans
9558 Fax
9559 \family default
9560
9561 \family sans
9562 Bank
9563 \family default
9564  and the possibility to use a 
9565 \family sans
9566 Logo
9567 \family default
9568  (via 
9569 \family sans
9570 Insert\SpecialChar menuseparator
9571 Graphics
9572 \family default
9573 ) in the header.
9574 \end_layout
9575
9576 \begin_layout Standard
9577 The biggest improvement is, though, that the letter's layout is configurable
9578  to meet almost any needs.
9579  This can be done via the preamble or with a special style file (Letter
9580  Class Option, extension 
9581 \family typewriter
9582 *.lco
9583 \family default
9584 ), that will be read in as a class option.
9585 \begin_inset Foot
9586 status collapsed
9587
9588 \begin_layout Plain Layout
9589 The KOMA package comes with some default 
9590 \family typewriter
9591 *.lco
9592 \family default
9593  files.
9594  There is, for instance, a 
9595 \family typewriter
9596 DIN.lco
9597 \family default
9598  file that follows german typesetting rules, or a 
9599 \family typewriter
9600 KOMAold.lco
9601 \family default
9602  that provides the default layout of the old 
9603 \family typewriter
9604 scrlettr
9605 \family default
9606  class.
9607  The latter can be loaded with the class option 
9608 \family typewriter
9609 KOMAold
9610 \family default
9611 , inserted via the 
9612 \family sans
9613 Layout\SpecialChar menuseparator
9614 Document\SpecialChar menuseparator
9615 Extra Options
9616 \family default
9617  field.
9618 \end_layout
9619
9620 \end_inset
9621
9622  Have a look at the 
9623 \emph on
9624 koma-letter2
9625 \emph default
9626  template that is included in \SpecialChar LyX
9627  for examples.
9628  A detailed description is to be found in the Koma-Script documentation
9629  (
9630 \emph on
9631 scrguide
9632 \emph default
9633 ).
9634 \end_layout
9635
9636 \begin_layout Subsection
9637 Problems
9638 \end_layout
9639
9640 \begin_layout Standard
9641 Visualizing the Koma-Script document classes in \SpecialChar LyX
9642 , the \SpecialChar LyX
9643  internals cause some
9644  problems.
9645 \end_layout
9646
9647 \begin_layout Itemize
9648 The chapter number of a 
9649 \family sans
9650 Chapter
9651 \family default
9652  type appears on a line of its own above the chapter heading instead of
9653  appearing in the same line ahead of it.
9654  The cause for that is the \SpecialChar LyX
9655  internal behavior for the labeltype 
9656 \family sans
9657 Counter_Chapter
9658 \family default
9659  in the layout file.
9660 \end_layout
9661
9662 \begin_layout Itemize
9663 The headings of the types 
9664 \family sans
9665 Addchap
9666 \family default
9667  and 
9668 \family sans
9669 Addsec
9670 \family default
9671  are only put in the 
9672 \begin_inset Quotes eld
9673 \end_inset
9674
9675 true
9676 \begin_inset Quotes erd
9677 \end_inset
9678
9679  \SpecialChar LaTeX
9680  table of contents, but not in the \SpecialChar LyX
9681  table of contents (
9682 \family sans
9683 Document\SpecialChar menuseparator
9684 Table
9685 \begin_inset space ~
9686 \end_inset
9687
9688 of
9689 \begin_inset space ~
9690 \end_inset
9691
9692 Contents
9693 \family default
9694 ).
9695 \end_layout
9696
9697 \begin_layout Itemize
9698 The paragraphs in a 
9699 \emph on
9700 letter
9701 \emph default
9702  document class appear in a skip separation mode, not indented.
9703  This is the standard behavior, no special \SpecialChar LaTeX
9704  commands are needed for that.
9705  But in the 
9706 \family sans
9707 Document\SpecialChar menuseparator
9708 Settings
9709 \family default
9710  dialog the corresponding radio button indicates 
9711 \family sans
9712 Indent
9713 \family default
9714 .
9715  A 
9716 \family sans
9717 Skip
9718 \family default
9719  value always has the effect that extra \SpecialChar LaTeX
9720  commands are inserted in the document
9721  to produce the gap, which is not what is wanted in this case.
9722 \end_layout
9723
9724 \begin_layout Section
9725 Memoir
9726 \end_layout
9727
9728 \begin_layout Standard
9729 By 
9730 \noun on
9731 Jürgen Spitzmüller
9732 \end_layout
9733
9734 \begin_layout Subsection
9735 Overview
9736 \end_layout
9737
9738 \begin_layout Standard
9739 Memoir is a very powerful and constantly evolving class.
9740  It has been designed with regard to fictional and non-fictional literature.
9741  Its aim is to let the user have maximum control over the typesetting of
9742  his document.
9743  Memoir is based on the standard book class, but it can also emulate the
9744  article class (see below).
9745 \end_layout
9746
9747 \begin_layout Standard
9748 Peter Wilson, the developer of Memoir, is known as the author of lots of
9749  useful packages in the \SpecialChar LaTeX
9750  world.
9751  Most of them have been merged with Memoir.
9752  Therefore, it is much easier to layout the table of contents, appendices,
9753  chapter designs and such.
9754  \SpecialChar LyX
9755 , though, does not support all of these goodies natively.
9756  Some of them might be added to forthcoming releases
9757 \begin_inset Foot
9758 status collapsed
9759
9760 \begin_layout Plain Layout
9761 You are invited to send suggestions to 
9762 \begin_inset Flex URL
9763 status collapsed
9764
9765 \begin_layout Plain Layout
9766
9767 lyx-devel@lists.lyx.org
9768 \end_layout
9769
9770 \end_inset
9771
9772 .
9773 \end_layout
9774
9775 \end_inset
9776
9777 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
9778 's framework.
9779  Of course you can still use all features with the help of some native \SpecialChar LaTeX
9780
9781  commands (\SpecialChar TeX
9782  code
9783 \begin_inset Foot
9784 status collapsed
9785
9786 \begin_layout Plain Layout
9787 Cf.
9788 \begin_inset ERT
9789 status collapsed
9790
9791 \begin_layout Plain Layout
9792
9793
9794 \backslash
9795  
9796 \end_layout
9797
9798 \end_inset
9799
9800 section
9801 \begin_inset space ~
9802 \end_inset
9803
9804
9805 \begin_inset CommandInset ref
9806 LatexCommand ref
9807 reference "sec:Inserting-TeX-Code"
9808
9809 \end_inset
9810
9811  for details.
9812 \end_layout
9813
9814 \end_inset
9815
9816 ).
9817  In this section, we can only list those features that are natively supported
9818  by \SpecialChar LyX
9819 .
9820  For detailed descriptions (and for the rest of features) we recommend you
9821  have a look at the detailed manual of the Memoir class
9822 \begin_inset Foot
9823 status collapsed
9824
9825 \begin_layout Plain Layout
9826 Cf.
9827 \begin_inset ERT
9828 status collapsed
9829
9830 \begin_layout Plain Layout
9831
9832
9833 \backslash
9834  
9835 \end_layout
9836
9837 \end_inset
9838
9839
9840 \begin_inset Flex URL
9841 status collapsed
9842
9843 \begin_layout Plain Layout
9844
9845 CTAN:/macros/latex/memoir/memman.pdf
9846 \end_layout
9847
9848 \end_inset
9849
9850 .
9851 \end_layout
9852
9853 \end_inset
9854
9855 , which is not only a user guide for the class, but also both a comprehensive
9856  description on good typesetting and a superb example for good typesetting
9857  itself.
9858 \end_layout
9859
9860 \begin_layout Subsection
9861 Basic features and restrictions
9862 \end_layout
9863
9864 \begin_layout Standard
9865 Memoir supports basically all features of the standard book classes.
9866  There are, however, some differences, as follows:
9867 \end_layout
9868
9869 \begin_layout Description
9870 Font
9871 \begin_inset space ~
9872 \end_inset
9873
9874 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
9875 \end_layout
9876
9877 \begin_layout Description
9878 Page
9879 \begin_inset space ~
9880 \end_inset
9881
9882 style: The fancy page style is not supported, due to a command clash between
9883  Memoir and the fancyhdr package (they both define a command with the same
9884  name, which confuses \SpecialChar LaTeX
9885 ).
9886  Instead, Memoir comes with a number of its own page styles (see 
9887 \family sans
9888 Layout\SpecialChar menuseparator
9889 Document\SpecialChar menuseparator
9890 Page
9891 \begin_inset space ~
9892 \end_inset
9893
9894 Style
9895 \family default
9896 ).
9897  If you want to use these for the chapter pages, you have to use the command
9898  
9899 \family typewriter
9900
9901 \backslash
9902 chapterstyle
9903 \family default
9904  in the main text or in preamble (e.
9905 \begin_inset space \thinspace{}
9906 \end_inset
9907
9908 g.
9909 \begin_inset space \space{}
9910 \end_inset
9911
9912
9913 \family typewriter
9914
9915 \backslash
9916 chapterstyle{companion}
9917 \family default
9918 ).
9919 \end_layout
9920
9921 \begin_layout Description
9922 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
9923  optional argument in the standard classes.
9924  With this, you can specify an alternative version of the title for the
9925  table of contents and the headers (for instance, if the title is too long).
9926  In \SpecialChar LyX
9927 , you can do this via 
9928 \family sans
9929 Insert\SpecialChar menuseparator
9930 Short
9931 \begin_inset space ~
9932 \end_inset
9933
9934 Title
9935 \family default
9936  at the beginning of a chapter/section.
9937  Memoir features a second optional argument and thus separates the table
9938  of contents from the header.
9939  You can define three variants of a title with this: one for the main text,
9940  one for the table of contents, and one for the headers.
9941  Simply insert two optional arguments if you need this feature, the first
9942  one containing the short title for the Table of Contents, the second one
9943  containing an alternative short title for the headers.
9944 \end_layout
9945
9946 \begin_layout Description
9947 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
9948  of contents, the list of figures and the list of table start a new page
9949  automatically.
9950  Memoir does not follow this route.
9951  You have to insert a page break yourself, if you want to have one.
9952 \end_layout
9953
9954 \begin_layout Description
9955 Titlepage: For some unknown reason, Memoir uses pagination on the title
9956  page (in the standard classes, title pages are 
9957 \begin_inset Quotes eld
9958 \end_inset
9959
9960 empty
9961 \begin_inset Quotes erd
9962 \end_inset
9963
9964 ).
9965  If you want an empty title page, type 
9966 \family typewriter
9967
9968 \backslash
9969 aliaspagestyle{title}{empty}
9970 \family default
9971  in the preamble.
9972 \end_layout
9973
9974 \begin_layout Description
9975 Article: With the class option 
9976 \emph on
9977 article
9978 \emph default
9979  (to be inserted in 
9980 \family sans
9981 Layout\SpecialChar menuseparator
9982 Document\SpecialChar menuseparator
9983 Extra
9984 \begin_inset space ~
9985 \end_inset
9986
9987 Options
9988 \family default
9989 ), you can emulate article style.
9990  That is, counters (footnotes, figures, tables etc.) will not be reset on
9991  new chapters, chapters don't start a new page (but are—in contrary to 
9992 \begin_inset Quotes eld
9993 \end_inset
9994
9995 real
9996 \begin_inset Quotes erd
9997 \end_inset
9998
9999  article classes—still allowed), parts, though, use their own page, as in
10000  book.
10001 \end_layout
10002
10003 \begin_layout Description
10004 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
10005  font commands, which have been used in the old \SpecialChar LaTeX
10006  version 2.09 (e.
10007 \begin_inset space \thinspace{}
10008 \end_inset
10009
10010 g.
10011 \begin_inset space \space{}
10012 \end_inset
10013
10014
10015 \family typewriter
10016
10017 \backslash
10018 rm
10019 \family default
10020
10021 \family typewriter
10022
10023 \backslash
10024 it
10025 \family default
10026 ).
10027  It produces an error and stops \SpecialChar LaTeX
10028  whenever such a command appears.
10029  The class option 
10030 \emph on
10031 oldfontcommands
10032 \emph default
10033  reallows the commands and spits out warnings instead (which does at least
10034  not stop \SpecialChar LaTeX
10035 ).
10036  Since a lot of packages and particularly Bib\SpecialChar TeX
10037  style files are still using
10038  those commands, we have decided to use this option by default.
10039 \end_layout
10040
10041 \begin_layout Subsection
10042 Extra features
10043 \end_layout
10044
10045 \begin_layout Standard
10046 We will only describe the features supported by \SpecialChar LyX
10047  (which is not much currently).
10048  Please consult the Memoir manual
10049 \begin_inset Foot
10050 status collapsed
10051
10052 \begin_layout Plain Layout
10053 Cf.
10054 \begin_inset ERT
10055 status collapsed
10056
10057 \begin_layout Plain Layout
10058
10059
10060 \backslash
10061  
10062 \end_layout
10063
10064 \end_inset
10065
10066
10067 \begin_inset Flex URL
10068 status collapsed
10069
10070 \begin_layout Plain Layout
10071
10072 CTAN:/macros/latex/memoir/memman.pdf
10073 \end_layout
10074
10075 \end_inset
10076
10077 .
10078 \end_layout
10079
10080 \end_inset
10081
10082  for details.
10083 \end_layout
10084
10085 \begin_layout Description
10086 Abstract: You may wonder why an abstract is an extra feature.
10087  Well, it is in book class.
10088  Usually books don't have abstracts.
10089  Memoir, however, has.
10090  You can use it wherever and how often you like.
10091 \end_layout
10092
10093 \begin_layout Description
10094 Chapterprecis: You may know this older typesetting style: The contents of
10095  a chapter are summarized below the title and also in the table of contents
10096  (e.
10097 \begin_inset space \thinspace{}
10098 \end_inset
10099
10100 g.
10101 \begin_inset space \space{}
10102 \end_inset
10103
10104
10105 \emph on
10106 Our hero arrives in Troia; he loses some friends; he finds others
10107 \emph default
10108 ).
10109  Chapterprecis does exactly this.
10110  It is therefore only sensible below a chapter.
10111 \end_layout
10112
10113 \begin_layout Description
10114 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
10115  The epigraph environment provides an elegant way of typesetting such a
10116  motto.
10117  The motto itself (text) and its author (source) are divided by a short
10118  line.
10119  Unfortunately, we have to fool \SpecialChar LyX
10120  a bit here again, since the environment
10121  needs two arguments (text and source).
10122  In this case, we have to use curly brackets (in \SpecialChar TeX
10123  mode) between the two
10124  arguments: 
10125 \emph on
10126 <smart slogan>
10127 \emph default
10128  
10129 \family typewriter
10130 }{
10131 \family default
10132  
10133 \emph on
10134 <author of the slogan>.
10135 \end_layout
10136
10137 \begin_layout Description
10138 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
10139  complex figurative poems).
10140  \SpecialChar LyX
10141  can only support a few of them.
10142  One is poemtitle, which is a centered title for poems, which will also
10143  be added to the table of contents (verse is the standard environment for
10144  poems.
10145  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
10146  code,
10147  because they have to be nested inside regular verse environments, which
10148  is not possible with \SpecialChar LyX
10149 ).
10150 \end_layout
10151
10152 \begin_layout Description
10153 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
10154 \end_layout
10155
10156 \begin_layout Section
10157 Article (mwart), book (mwbk) and report (mwrep)
10158 \begin_inset Argument status
10159 status collapsed
10160
10161 \begin_layout Plain Layout
10162 The 
10163 \family typewriter
10164 mw
10165 \family default
10166  Classes
10167 \end_layout
10168
10169 \end_inset
10170
10171
10172 \end_layout
10173
10174 \begin_layout Standard
10175 by 
10176 \noun on
10177 Tomasz Luczak
10178 \end_layout
10179
10180 \begin_layout Standard
10181 The \SpecialChar LyX
10182  document classes 
10183 \emph on
10184 article (mwart)
10185 \emph default
10186
10187 \emph on
10188 report (mwrep)
10189 \emph default
10190  and 
10191 \emph on
10192 book
10193 \emph default
10194  
10195 \emph on
10196 (mwbk)
10197 \emph default
10198  correspond to the \SpecialChar LaTeX
10199  document classes 
10200 \family typewriter
10201 mwart.cls
10202 \family default
10203
10204 \family typewriter
10205 mwrep.cls
10206 \family default
10207  and 
10208 \family typewriter
10209 mwbk.cls
10210 \family default
10211 , resp.
10212  They are replacements for the standard document classes 
10213 \family typewriter
10214 article.cls
10215 \family default
10216
10217 \family typewriter
10218 report.cls
10219 \family default
10220  and 
10221 \family typewriter
10222 book.cls
10223 \family default
10224 , resp., and fit better to Polish typography conventions in a number of points.
10225  
10226 \end_layout
10227
10228 \begin_layout Standard
10229 Basic differences:
10230 \end_layout
10231
10232 \begin_layout Itemize
10233 Unnumbered titles (with star, e.
10234 \begin_inset space \thinspace{}
10235 \end_inset
10236
10237 g.
10238 \begin_inset space \space{}
10239 \end_inset
10240
10241
10242 \family sans
10243 Section*
10244 \family default
10245 ) are added into table of contents,
10246 \end_layout
10247
10248 \begin_layout Itemize
10249 Additional page styles:
10250 \end_layout
10251
10252 \begin_deeper
10253 \begin_layout Description
10254 uheadings header with separated lines,
10255 \end_layout
10256
10257 \begin_layout Description
10258 myheadings custom header, contents headers via commands: 
10259 \family typewriter
10260
10261 \backslash
10262 markright
10263 \family default
10264  and 
10265 \family typewriter
10266
10267 \backslash
10268 markboth
10269 \family default
10270 ,
10271 \end_layout
10272
10273 \begin_layout Description
10274 myuheadings custom header with separated lines,
10275 \end_layout
10276
10277 \begin_layout Description
10278 outer page number is placed on outer side of page
10279 \end_layout
10280
10281 \end_deeper
10282 \begin_layout Itemize
10283 Options 
10284 \end_layout
10285
10286 \begin_deeper
10287 \begin_layout Description
10288 rmheadings serif titles — default,
10289 \end_layout
10290
10291 \begin_layout Description
10292 sfheadings sansserif titles,
10293 \end_layout
10294
10295 \begin_layout Description
10296 authortitle on title page first placed is author next title — default,
10297 \end_layout
10298
10299 \begin_layout Description
10300 titleauthor on title page first placed is title next author,
10301 \end_layout
10302
10303 \begin_layout Description
10304 withmarginpar reserve place on page for margins.
10305 \end_layout
10306
10307 \end_deeper
10308 \begin_layout Section
10309 Paper
10310 \end_layout
10311
10312 \begin_layout Standard
10313 The document class 
10314 \family sans
10315 paper
10316 \family default
10317  provides an alternative to the standard 
10318 \family sans
10319 article
10320 \family default
10321  class.
10322  It provides similar functionality, but you might prefer this layout with
10323  sans serif sections, headings, and more.
10324 \end_layout
10325
10326 \begin_layout Section
10327 Rev\SpecialChar TeX
10328 4
10329 \end_layout
10330
10331 \begin_layout Standard
10332 by 
10333 \noun on
10334 Amir Karger
10335 \end_layout
10336
10337 \begin_layout Standard
10338 \begin_inset VSpace bigskip
10339 \end_inset
10340
10341
10342 \end_layout
10343
10344 \begin_layout Standard
10345 \noindent
10346 The 
10347 \family sans
10348 Revtex
10349 \begin_inset space ~
10350 \end_inset
10351
10352 4
10353 \family default
10354  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
10355  4.0 (the 
10356 \begin_inset Formula $\beta$
10357 \end_inset
10358
10359  release of May, 1999) class.
10360 \end_layout
10361
10362 \begin_layout Standard
10363 \SpecialChar LyX
10364  has a 
10365 \family sans
10366 Revtex
10367 \family default
10368  textclass, which works with Rev\SpecialChar TeX
10369  3.1.
10370  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
10371  2.09.
10372  That means that it doesn't interact very well with \SpecialChar LyX
10373 , which requires \SpecialChar LaTeX2e
10374 , although
10375  it has been kludged to work.
10376  Since Rev\SpecialChar TeX
10377  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
10378 , \SpecialChar LyX
10379  with the
10380  
10381 \family sans
10382 Rev\SpecialChar TeX
10383
10384 \begin_inset space ~
10385 \end_inset
10386
10387 4
10388 \family default
10389  textclass should also be pretty easy to use.
10390 \end_layout
10391
10392 \begin_layout Standard
10393 These documents are supposed to be used in 
10394 \emph on
10395 addition
10396 \emph default
10397  to the Rev\SpecialChar TeX
10398  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
10399  macros,
10400  and assume you'll know what to put in the preamble if necessary.
10401 \end_layout
10402
10403 \begin_layout Subsection
10404 Installation
10405 \end_layout
10406
10407 \begin_layout Standard
10408 All you need to do is install Rev\SpecialChar TeX
10409  4, as described in the package's README
10410  file.
10411  The package can be found at The Rev\SpecialChar TeX
10412  4 Web Site 
10413 \begin_inset Flex URL
10414 status collapsed
10415
10416 \begin_layout Plain Layout
10417
10418 http://publish.aps.org/revtex4/
10419 \end_layout
10420
10421 \end_inset
10422
10423 .
10424  Install it somewhere that \SpecialChar LaTeX
10425  can see it.
10426  Test it by trying to \SpecialChar LaTeX
10427  a short Rev\SpecialChar TeX
10428  4 document in some random directory (i.
10429 \begin_inset space \thinspace{}
10430 \end_inset
10431
10432 e.
10433 \begin_inset space \space{}
10434 \end_inset
10435
10436 not the directory where you installed the class file.) Then, if you reconfigure
10437  \SpecialChar LyX
10438 , it will find the class file and let you use the Rev\SpecialChar TeX
10439 4 textclass.
10440 \end_layout
10441
10442 \begin_layout Standard
10443 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
10444  4 document
10445  using 
10446 \family typewriter
10447 tex2lyx
10448 \family default
10449 , or to use the 
10450 \family sans
10451 Revtex
10452 \begin_inset space ~
10453 \end_inset
10454
10455 4
10456 \family default
10457  template, found in the templates directory.
10458 \end_layout
10459
10460 \begin_layout Subsection
10461 Preamble Matter
10462 \end_layout
10463
10464 \begin_layout Standard
10465 Optional arguments to 
10466 \family typewriter
10467
10468 \backslash
10469 documentclass
10470 \family default
10471 , like 
10472 \begin_inset Quotes eld
10473 \end_inset
10474
10475 preprint
10476 \begin_inset Quotes erd
10477 \end_inset
10478
10479  and 
10480 \begin_inset Quotes eld
10481 \end_inset
10482
10483 aps
10484 \begin_inset Quotes erd
10485 \end_inset
10486
10487 , go in the 
10488 \family sans
10489 Extra
10490 \begin_inset space ~
10491 \end_inset
10492
10493 Options
10494 \family default
10495  field in the 
10496 \family sans
10497 Document
10498 \begin_inset space ~
10499 \end_inset
10500
10501 Layout
10502 \family default
10503  dialog, as usual.
10504  Remember that in Rev\SpecialChar TeX
10505 , at least one optional argument is required! 
10506 \end_layout
10507
10508 \begin_layout Standard
10509 Other preamble matter, like 
10510 \family typewriter
10511
10512 \backslash
10513 draft
10514 \family default
10515  etc.
10516 \begin_inset space ~
10517 \end_inset
10518
10519 goes in the 
10520 \family sans
10521 \SpecialChar LaTeX
10522
10523 \begin_inset space ~
10524 \end_inset
10525
10526 Preamble
10527 \family default
10528  dialog, also as usual.
10529 \end_layout
10530
10531 \begin_layout Subsection
10532 Layouts
10533 \end_layout
10534
10535 \begin_layout Standard
10536 The layouts basically correspond to the commands in Rev\SpecialChar TeX
10537 4.0.
10538  For example, the Email layout corresponds to 
10539 \family typewriter
10540
10541 \backslash
10542 email{}
10543 \family default
10544 .
10545  Note that (at least as of Rev\SpecialChar TeX
10546  4.0 Beta), the 
10547 \family sans
10548 Address
10549 \family default
10550  and 
10551 \family sans
10552 Affiliation
10553 \family default
10554  layouts are exactly equivalent, so you shouldn't need to use both.
10555 \begin_inset Foot
10556 status collapsed
10557
10558 \begin_layout Plain Layout
10559 In case you're curious, both were included so that 
10560 \family typewriter
10561 tex2lyx
10562 \family default
10563  would be able to translate both 
10564 \family typewriter
10565
10566 \backslash
10567 address
10568 \family default
10569  and 
10570 \family typewriter
10571
10572 \backslash
10573 affiliation
10574 \family default
10575 .
10576 \end_layout
10577
10578 \end_inset
10579
10580
10581 \end_layout
10582
10583 \begin_layout Subsection
10584 Important Notes
10585 \end_layout
10586
10587 \begin_layout Standard
10588 There are a couple of important unique aspects of Rev\SpecialChar TeX
10589  4 which might cause
10590  bugs that will be even more confusing in \SpecialChar LyX
10591 .
10592 \end_layout
10593
10594 \begin_layout Standard
10595 In Rev\SpecialChar TeX
10596 , the 
10597 \family typewriter
10598
10599 \backslash
10600 thanks
10601 \family default
10602  command goes 
10603 \emph on
10604 outside
10605 \emph default
10606  the 
10607 \family typewriter
10608
10609 \backslash
10610 author
10611 \family default
10612  command.
10613  The \SpecialChar LyX
10614  equivalent is that there is a separate Thanks layout.
10615  Do 
10616 \emph on
10617 not
10618 \emph default
10619  write footnotes in the 
10620 \family sans
10621 Author
10622 \family default
10623  layout, or weird things may happen.
10624  See the Rev\SpecialChar TeX
10625  4 documentation for more details.
10626 \end_layout
10627
10628 \begin_layout Standard
10629 Also, the 
10630 \family sans
10631 Author
10632 \begin_inset space ~
10633 \end_inset
10634
10635 Email
10636 \family default
10637
10638 \family sans
10639 Author
10640 \begin_inset space ~
10641 \end_inset
10642
10643 URL
10644 \family default
10645 , and 
10646 \family sans
10647 Thanks
10648 \family default
10649  layouts must be placed 
10650 \emph on
10651 in between
10652 \emph default
10653  the 
10654 \family sans
10655 Author
10656 \family default
10657  layout and the corresponding 
10658 \family sans
10659 Address
10660 \family default
10661  (or equivalent 
10662 \family sans
10663 Affiliation
10664 \family default
10665 ) layout.
10666  If you put the 
10667 \family sans
10668 Thanks
10669 \family default
10670  after the 
10671 \family sans
10672 Address
10673 \family default
10674 , the \SpecialChar LaTeX
10675  won't compile.
10676 \end_layout
10677
10678 \begin_layout Subsection
10679 Drawbacks
10680 \end_layout
10681
10682 \begin_layout Standard
10683 The main problem with this layout is that you can't use the optional arguments
10684  to layouts like Email and Title.
10685  (The problem is not unique to this layout; you can't use optional arguments
10686  to the Section layouts either.) This means that after you export that file
10687  to \SpecialChar LaTeX
10688  (which you'll need to do eventually to send it in to APS), you'll need
10689  to edit the \SpecialChar LaTeX
10690  file with a text editor to add the optional arguments to set,
10691  e.
10692 \begin_inset space \thinspace{}
10693 \end_inset
10694
10695 g.
10696 \begin_inset space \space{}
10697 \end_inset
10698
10699 the running title for the page headers.
10700  Lacking these layouts makes the 
10701 \family typewriter
10702
10703 \backslash
10704 altaffiliation
10705 \family default
10706  (and the equivalent 
10707 \family typewriter
10708
10709 \backslash
10710 altaddress
10711 \family default
10712 ) useless, so the corresponding layouts don't exist, and will have to be
10713  added by hand.
10714 \begin_inset Foot
10715 status collapsed
10716
10717 \begin_layout Plain Layout
10718
10719 \emph on
10720 Note from JMarc:
10721 \emph default
10722  actually, \SpecialChar LyX
10723  1.3.0 supports some forms of optional arguments, but this layout
10724  has not been updated yet to take advantage of it.
10725 \end_layout
10726
10727 \end_inset
10728
10729  
10730 \end_layout
10731
10732 \begin_layout Section
10733 Springer Journals (
10734 \family sans
10735 svjour
10736 \family default
10737 )
10738 \end_layout
10739
10740 \begin_layout Standard
10741 by 
10742 \noun on
10743 Martin Vermeer
10744 \end_layout
10745
10746 \begin_layout Subsection
10747 Description
10748 \end_layout
10749
10750 \begin_layout Standard
10751 These are the layout files for some of the journal formats used by Springer
10752  Verlag and listed on 
10753 \begin_inset Flex URL
10754 status collapsed
10755
10756 \begin_layout Plain Layout
10757
10758 http://www.springer.de/author/tex/help-journals.html
10759 \end_layout
10760
10761 \end_inset
10762
10763 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
10764  now!).
10765  It is a modular system: the things common to all journals are implemented
10766  in 
10767 \family typewriter
10768 svjour.inc
10769 \family default
10770 , which journal-specific layout files (such as, e.
10771 \begin_inset space \thinspace{}
10772 \end_inset
10773
10774 g.
10775 \begin_inset space \space{}
10776 \end_inset
10777
10778
10779 \family typewriter
10780 svjog.layout
10781 \family default
10782  for Journal of Geodesy) can include.
10783 \end_layout
10784
10785 \begin_layout Standard
10786 This means that implementing support for any other Springer journal on this
10787  list is as simple as writing your own 
10788 \family typewriter
10789 sv
10790 \family default
10791 <myjournal>
10792 \family typewriter
10793 .layout
10794 \family default
10795  file following the outline given in 
10796 \family typewriter
10797 svjog.layout
10798 \family default
10799 .
10800  
10801 \end_layout
10802
10803 \begin_layout Standard
10804 It is reasonably well tested only for the Journal of Geodesy.
10805  
10806 \family typewriter
10807 svjour
10808 \family default
10809  and 
10810 \family typewriter
10811 svjog
10812 \family default
10813  come with the standard \SpecialChar LyX
10814  distribution.
10815  Install the relevant class file (downloaded from Springer) in a proper
10816  directory, reconfigure \SpecialChar LaTeX
10817  (in the te\SpecialChar TeX
10818  case by running 
10819 \family typewriter
10820 texhash
10821 \family default
10822 , as root if necessary — doesn't \SpecialChar LyX
10823  take care of this?), reconfigure \SpecialChar LyX
10824  and
10825  it should work.
10826 \end_layout
10827
10828 \begin_layout Subsection
10829 New styles
10830 \end_layout
10831
10832 \begin_layout Standard
10833 A large number of theorem-like styles — 
10834 \family sans
10835 Claim, Conjecture,
10836 \family default
10837  
10838 \family sans
10839 \SpecialChar ldots
10840 Theorem
10841 \family default
10842 .
10843 \end_layout
10844
10845 \begin_layout Standard
10846
10847 \family sans
10848 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
10849 _Title, Author_Running, Institute,
10850  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
10851 \family default
10852 .
10853  See the Springer class file documentation for details.
10854 \end_layout
10855
10856 \begin_layout Subsection
10857 Supported journals
10858 \end_layout
10859
10860 \begin_layout Itemize
10861
10862 \emph on
10863 Journal of Geodesy
10864 \emph default
10865
10866 \family typewriter
10867 svjog.layout
10868 \family default
10869  — Martin Vermeer
10870 \end_layout
10871
10872 \begin_layout Itemize
10873
10874 \emph on
10875 Probability Theory and Related Fields
10876 \emph default
10877
10878 \family typewriter
10879 svprobth.layout
10880 \family default
10881  — Jean-Marc Lasgouttes
10882 \end_layout
10883
10884 \begin_layout Standard
10885 Add your own, it isn't so hard!
10886 \end_layout
10887
10888 \begin_layout Subsection
10889 Credits
10890 \end_layout
10891
10892 \begin_layout Standard
10893 These files are partly based on the older 
10894 \family typewriter
10895 ejour2.layout
10896 \family default
10897 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
10898  2.09 style
10899  file from Springer.
10900  All this, and the 
10901 \family typewriter
10902 ejour2
10903 \family default
10904  layout, are now defunct.
10905  Jean-Marc Lasgouttes helped out big in making me find my way around the
10906  \SpecialChar LyX
10907  layout file mechanism.
10908 \end_layout
10909
10910 \begin_layout Subsection
10911 Bugs
10912 \end_layout
10913
10914 \begin_layout Standard
10915 Probably.
10916  But probably less than in the old hacked-\SpecialChar LaTeX
10917  
10918 \family typewriter
10919 ejour2
10920 \family default
10921 .
10922 \end_layout
10923
10924 \begin_layout Standard
10925 Limitations e.
10926 \begin_inset space \thinspace{}
10927 \end_inset
10928
10929 g.: does not display the number for theorem-like layouts, just #.
10930 \end_layout
10931
10932 \begin_layout Section
10933 Slides [aka 
10934 \noun on
10935 Sli\SpecialChar TeX
10936
10937 \noun default
10938 ]
10939 \begin_inset CommandInset label
10940 LatexCommand label
10941 name "sec:slitex"
10942
10943 \end_inset
10944
10945
10946 \end_layout
10947
10948 \begin_layout Standard
10949 by 
10950 \noun on
10951 John Weiss
10952 \noun default
10953  
10954 \end_layout
10955
10956 \begin_layout Subsection
10957 Introduction
10958 \end_layout
10959
10960 \begin_layout Standard
10961 This section describes how to use \SpecialChar LyX
10962  to make slides for overhead projectors.
10963  There are two document classes that can do this: the default slides class
10964  and the 
10965 \family sans
10966 Foil\SpecialChar TeX
10967
10968 \family default
10969  slides class.
10970  This section documents the former.
10971 \end_layout
10972
10973 \begin_layout Standard
10974 I'm going to say this again, nice and clear, so that there's no misunderstanding
10975 :
10976 \end_layout
10977
10978 \begin_layout Standard
10979 \begin_inset VSpace bigskip
10980 \end_inset
10981
10982
10983 \end_layout
10984
10985 \begin_layout Standard
10986 \align center
10987
10988 \size large
10989 This section documents the class 
10990 \begin_inset Quotes eld
10991 \end_inset
10992
10993
10994 \family sans
10995 slides (default)
10996 \family default
10997
10998 \begin_inset Quotes erd
10999 \end_inset
11000
11001  
11002 \emph on
11003 only.
11004 \end_layout
11005
11006 \begin_layout Standard
11007 \begin_inset VSpace bigskip
11008 \end_inset
11009
11010
11011 \end_layout
11012
11013 \begin_layout Standard
11014 If you're looking for the documentation for 
11015 \begin_inset Quotes eld
11016 \end_inset
11017
11018
11019 \family sans
11020 slides (Foil\SpecialChar TeX
11021 )
11022 \family default
11023
11024 \begin_inset Quotes erd
11025 \end_inset
11026
11027 , check out section
11028 \begin_inset space ~
11029 \end_inset
11030
11031
11032 \begin_inset CommandInset ref
11033 LatexCommand ref
11034 reference "sec:foiltex"
11035
11036 \end_inset
11037
11038 .
11039  The 
11040 \family sans
11041 foils
11042 \family default
11043  class [
11044 \begin_inset Quotes eld
11045 \end_inset
11046
11047
11048 \family sans
11049 slides (Foil\SpecialChar TeX
11050 )
11051 \family default
11052
11053 \begin_inset Quotes erd
11054 \end_inset
11055
11056 ] is actually somewhat better than the default 
11057 \family sans
11058 slides
11059 \family default
11060  class,
11061 \begin_inset Foot
11062 status collapsed
11063
11064 \begin_layout Plain Layout
11065 \SpecialChar ldots
11066 or so I've been told repeatedly by its advocates.
11067  Having never used it, I have no idea if this claim is true or not.
11068 \end_layout
11069
11070 \end_inset
11071
11072  which this section documents.
11073 \end_layout
11074
11075 \begin_layout Standard
11076 This class is the \SpecialChar LaTeX2e
11077  improvement of the old 
11078 \noun on
11079 Sli\SpecialChar TeX
11080
11081 \noun default
11082  package.
11083  Every \SpecialChar LaTeX2e
11084  distribution includes this class [which I'll just refer to as 
11085 \begin_inset Quotes eld
11086 \end_inset
11087
11088
11089 \family sans
11090 slides
11091 \family default
11092
11093 \begin_inset Quotes erd
11094 \end_inset
11095
11096  from now on], so you're bound to have it.
11097  As I noted earlier, there are other classes, such as 
11098 \family sans
11099 foils
11100 \family default
11101 , which also produce slides for overhead projectors and do a better job
11102  at it.
11103  However, there are some things which 
11104 \family sans
11105 slides
11106 \family default
11107  can do which the others can't, such as generate overlays.
11108  Read on to learn more!
11109 \end_layout
11110
11111 \begin_layout Subsection
11112 Getting Started
11113 \begin_inset CommandInset label
11114 LatexCommand label
11115 name "sec:slidesetup"
11116
11117 \end_inset
11118
11119
11120 \end_layout
11121
11122 \begin_layout Standard
11123 Obviously, to use this document class, you need to select 
11124 \begin_inset Quotes eld
11125 \end_inset
11126
11127
11128 \family sans
11129 slides (default)
11130 \family default
11131
11132 \begin_inset Quotes erd
11133 \end_inset
11134
11135  from the class list in the 
11136 \family sans
11137 Document\SpecialChar menuseparator
11138 Settings
11139 \family default
11140  dialog.
11141  There are some other special things you should know about this class:
11142 \end_layout
11143
11144 \begin_layout Itemize
11145 Don't bother changing the options 
11146 \family sans
11147 Sides and Columns
11148 \family default
11149 .
11150  They're not supported by the 
11151 \family sans
11152 slides
11153 \family default
11154  class, anyways.
11155 \end_layout
11156
11157 \begin_layout Itemize
11158 The option 
11159 \family sans
11160 Page
11161 \begin_inset space ~
11162 \end_inset
11163
11164 style
11165 \family default
11166  behaves a bit differently for this class.
11167  The possible choices and what they do are as follows:
11168 \end_layout
11169
11170 \begin_deeper
11171 \begin_layout Description
11172
11173 \family sans
11174 plain
11175 \family default
11176  The final output contains page numbers in the lower right corner.
11177 \end_layout
11178
11179 \begin_layout Description
11180
11181 \family sans
11182 headings
11183 \family default
11184  Like 
11185 \family sans
11186 plain
11187 \family default
11188 , but also prints out any time markers you've put in.
11189  This is the default.
11190 \end_layout
11191
11192 \begin_layout Description
11193
11194 \family sans
11195 empty
11196 \family default
11197  The final output contains no page numbers, time markers, or alignment markers.
11198 \end_layout
11199
11200 \end_deeper
11201 \begin_layout Itemize
11202 The 
11203 \family sans
11204 slides
11205 \family default
11206  class has an extra option: 
11207 \family typewriter
11208 clock
11209 \family default
11210 .
11211  To use it, put 
11212 \begin_inset Quotes eld
11213 \end_inset
11214
11215
11216 \family typewriter
11217 clock
11218 \family default
11219
11220 \begin_inset Quotes erd
11221 \end_inset
11222
11223  in the extra class options.
11224 \end_layout
11225
11226 \begin_deeper
11227 \begin_layout Standard
11228 Using this options allows you to add time markers to 
11229 \family sans
11230 Note
11231 \family default
11232 s.
11233  See section
11234 \begin_inset space ~
11235 \end_inset
11236
11237
11238 \begin_inset CommandInset ref
11239 LatexCommand ref
11240 reference "sec:slideNote"
11241
11242 \end_inset
11243
11244  for more details.
11245 \end_layout
11246
11247 \end_deeper
11248 \begin_layout Standard
11249 You can also use the template file 
11250 \begin_inset Quotes eld
11251 \end_inset
11252
11253
11254 \family typewriter
11255 slides.lyx
11256 \family default
11257
11258 \begin_inset Quotes erd
11259 \end_inset
11260
11261  to automatically set up a document to use the 
11262 \family sans
11263 slides
11264 \family default
11265  class [using 
11266 \family sans
11267 File\SpecialChar menuseparator
11268 New
11269 \begin_inset space ~
11270 \end_inset
11271
11272 from
11273 \begin_inset space ~
11274 \end_inset
11275
11276 Template
11277 \family default
11278  to open your new document].
11279  The template file also contains some examples of the special paragraph
11280  environments used by this class.
11281  I'll describe those next.
11282 \end_layout
11283
11284 \begin_layout Subsection
11285 Paragraph Environments
11286 \end_layout
11287
11288 \begin_layout Subsubsection
11289 Supported Environments
11290 \end_layout
11291
11292 \begin_layout Standard
11293 The first thing you'll notice when you start up a new 
11294 \family sans
11295 slides
11296 \family default
11297  document is the font size and type: it's the equivalent of the size 
11298 \begin_inset Quotes eld
11299 \end_inset
11300
11301
11302 \family sans
11303 Largest
11304 \family default
11305
11306 \begin_inset Quotes erd
11307 \end_inset
11308
11309  in the 
11310 \family sans
11311 Sans
11312 \begin_inset space ~
11313 \end_inset
11314
11315 Serif
11316 \family default
11317  font.
11318  This is also what's used in the output.
11319  Think of this as a 
11320 \begin_inset Quotes eld
11321 \end_inset
11322
11323 visual cue
11324 \begin_inset Quotes erd
11325 \end_inset
11326
11327  to remind you that this is a slide.
11328  Your final slides will use a larger font; ergo, you'll have less space.
11329  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
11330 \end_layout
11331
11332 \begin_layout Standard
11333 The next thing that becomes obvious is the changes to the paragraph environment
11334  pull-down box [at the far-left end of the toolbar].
11335  Most of the paragraph environments you're used to seeing are missing.
11336  There are also five new ones.
11337  That's because the 
11338 \family sans
11339 slides
11340 \family default
11341  class itself only supports certain paragraph environments:
11342 \end_layout
11343
11344 \begin_layout Itemize
11345
11346 \family sans
11347 Standard
11348 \end_layout
11349
11350 \begin_layout Itemize
11351
11352 \family sans
11353 Itemize
11354 \end_layout
11355
11356 \begin_layout Itemize
11357
11358 \family sans
11359 Enumerate
11360 \end_layout
11361
11362 \begin_layout Itemize
11363
11364 \family sans
11365 Description
11366 \end_layout
11367
11368 \begin_layout Itemize
11369
11370 \family sans
11371 List
11372 \end_layout
11373
11374 \begin_layout Itemize
11375
11376 \family sans
11377 Quotation
11378 \end_layout
11379
11380 \begin_layout Itemize
11381
11382 \family sans
11383 Quote
11384 \end_layout
11385
11386 \begin_layout Itemize
11387
11388 \family sans
11389 Verse
11390 \end_layout
11391
11392 \begin_layout Itemize
11393
11394 \family sans
11395 Caption
11396 \end_layout
11397
11398 \begin_layout Itemize
11399
11400 \family sans
11401 \SpecialChar LyX
11402 -Code
11403 \end_layout
11404
11405 \begin_layout Itemize
11406
11407 \family sans
11408 Comment
11409 \end_layout
11410
11411 \begin_layout Standard
11412 All of the other standard environments, including the section-heading environmen
11413 ts, aren't used in the 
11414 \family sans
11415 slides
11416 \family default
11417  class.
11418 \end_layout
11419
11420 \begin_layout Standard
11421 On the other hand, you'll notice the following new environments:
11422 \end_layout
11423
11424 \begin_layout Itemize
11425
11426 \family sans
11427 Slide
11428 \end_layout
11429
11430 \begin_layout Itemize
11431
11432 \family sans
11433 Overlay
11434 \end_layout
11435
11436 \begin_layout Itemize
11437
11438 \family sans
11439 Note
11440 \end_layout
11441
11442 \begin_layout Itemize
11443
11444 \family sans
11445 InvisibleText
11446 \end_layout
11447
11448 \begin_layout Itemize
11449
11450 \family sans
11451 VisibleText
11452 \end_layout
11453
11454 \begin_layout Standard
11455 These five are kind of quirky, due to a 
11456 \begin_inset Quotes eld
11457 \end_inset
11458
11459 feature
11460 \begin_inset Quotes erd
11461 \end_inset
11462
11463  in \SpecialChar LyX
11464 .
11465  You see, \SpecialChar LyX
11466  doesn't permit you to nest any other paragraph environment into
11467  an empty environment.
11468  Now, that's fine and dandy, but it means that you wouldn't be able to start
11469  a slide with anything except plain text.
11470  To deal with this, I've performed a little 
11471 \begin_inset Quotes eld
11472 \end_inset
11473
11474 \SpecialChar LaTeX
11475  magic.
11476 \begin_inset Quotes erd
11477 \end_inset
11478
11479  
11480 \end_layout
11481
11482 \begin_layout Subsubsection
11483 Quirks of the New Environments
11484 \begin_inset CommandInset label
11485 LatexCommand label
11486 name "sec:slideQuirk"
11487
11488 \end_inset
11489
11490
11491 \end_layout
11492
11493 \begin_layout Standard
11494 All five of the new paragraph environments are somewhat quirky due to inherent
11495  limitiations in the current version of \SpecialChar LyX
11496 .
11497  As I just mentioned, \SpecialChar LyX
11498  forbids environments that begin with another environment.
11499  To get around this, the 
11500 \family sans
11501 Slide
11502 \family default
11503  environment isn't a paragraph environment as described in the 
11504 \emph on
11505 User's Guide
11506 \emph default
11507 .
11508  
11509 \end_layout
11510
11511 \begin_layout Standard
11512 You should consider 
11513 \family sans
11514 Slide
11515 \family default
11516
11517 \family sans
11518 Overlay
11519 \family default
11520 , and 
11521 \family sans
11522 Note
11523 \family default
11524  to be 
11525 \begin_inset Quotes eld
11526 \end_inset
11527
11528 pseudo-environments.
11529 \begin_inset Quotes erd
11530 \end_inset
11531
11532  They look like a section heading or a 
11533 \begin_inset Quotes eld
11534 \end_inset
11535
11536
11537 \family sans
11538 Caption
11539 \family default
11540 ,
11541 \begin_inset Quotes erd
11542 \end_inset
11543
11544  but really begin a [and, if necessary, end the previous] paragraph environment.
11545  Likewise, treat 
11546 \family sans
11547 InvisibleText
11548 \family default
11549  and 
11550 \family sans
11551 VisibleText
11552 \family default
11553  as 
11554 \begin_inset Quotes eld
11555 \end_inset
11556
11557 pseudo-commands.
11558 \begin_inset Quotes erd
11559 \end_inset
11560
11561  These two perform some action.
11562 \end_layout
11563
11564 \begin_layout Standard
11565 A common feature of all five environments, 
11566 \family sans
11567 Slide
11568 \family default
11569
11570 \family sans
11571 Overlay
11572 \family default
11573
11574 \family sans
11575 Note
11576 \family default
11577
11578 \family sans
11579 InvisibleText
11580 \family default
11581  and 
11582 \family sans
11583 VisibleText
11584 \family default
11585 , is a rather long-ish label.
11586  The text following this label — ordinarily the contents of the paragraph
11587  environment — is utterly irrelevant for 
11588 \family sans
11589 Slide
11590 \family default
11591
11592 \family sans
11593 Overlay
11594 \family default
11595
11596 \family sans
11597 Note
11598 \family default
11599
11600 \family sans
11601 InvisibleText
11602 \family default
11603  and 
11604 \family sans
11605 VisibleText
11606 \family default
11607 .
11608  \SpecialChar LyX
11609  completely ignores it.
11610  In fact, you can leave these five environments completely empty.
11611  
11612 \end_layout
11613
11614 \begin_layout Standard
11615 While you don't 
11616 \emph on
11617 have
11618 \emph default
11619  to put any text after the rather long-ish label, you might want to.
11620  This could be a short description of the contents of the 
11621 \family sans
11622 Slide
11623 \family default
11624 , for example.
11625  In that case, enter your descriptive comment and hit 
11626 \family sans
11627 Return
11628 \family default
11629  as you normally would.
11630 \end_layout
11631
11632 \begin_layout Standard
11633 If, on the other hand, you don't want to enter any descriptive text, you'll
11634  hit another \SpecialChar LyX
11635  quirk.
11636  \SpecialChar LyX
11637 , like nature, abhors a vacuum, and will not let you start a new paragraph
11638  environment until you put something in the old one.
11639  So, do this:
11640 \end_layout
11641
11642 \begin_layout Itemize
11643 Start entering the text that will 
11644 \emph on
11645 follow
11646 \emph default
11647  the new 
11648 \family sans
11649 Slide
11650 \family default
11651
11652 \family sans
11653 Overlay
11654 \family default
11655
11656 \family sans
11657 Note
11658 \family default
11659
11660 \family sans
11661 InvisibleText
11662 \family default
11663  or 
11664 \family sans
11665 VisibleText
11666 \family default
11667 .
11668  
11669 \end_layout
11670
11671 \begin_layout Itemize
11672 Now move to the beginning of that paragraph.
11673  
11674 \end_layout
11675
11676 \begin_layout Itemize
11677 Next, hit 
11678 \family sans
11679 Return
11680 \family default
11681 .
11682  
11683 \end_layout
11684
11685 \begin_layout Itemize
11686 Finally, change this new, empty paragraph to a 
11687 \family sans
11688 Slide
11689 \family default
11690
11691 \family sans
11692 Overlay
11693 \family default
11694
11695 \family sans
11696 Note
11697 \family default
11698
11699 \family sans
11700 InvisibleText
11701 \family default
11702  or 
11703 \family sans
11704 VisibleText
11705 \family default
11706 .
11707  
11708 \end_layout
11709
11710 \begin_layout Standard
11711 Some future version of \SpecialChar LyX
11712  will, hopefully, resolve this quirkiness\SpecialChar ldots
11713
11714 \end_layout
11715
11716 \begin_layout Subsection
11717 Making a Presentation with 
11718 \family sans
11719 Slide
11720 \family default
11721
11722 \family sans
11723 Overlay
11724 \family default
11725  and 
11726 \family sans
11727 Note
11728 \end_layout
11729
11730 \begin_layout Subsubsection
11731 Using the 
11732 \family sans
11733 Slide
11734 \family default
11735  Environment
11736 \end_layout
11737
11738 \begin_layout Standard
11739 If you're expecting this section to teach you how to actually make a presentatio
11740 n, you'll be sorely disappointed.
11741  Naturally, I'll describe all of the ways the 
11742 \family sans
11743 slides
11744 \family default
11745  class can assist you in preparing the materials for a presentation.
11746  Filling in the contents, however, is up to you.
11747  [Then again, that 
11748 \emph on
11749 is
11750 \emph default
11751  the \SpecialChar LyX
11752  philosophy.]
11753 \end_layout
11754
11755 \begin_layout Standard
11756 Choosing the 
11757 \family sans
11758 Slide
11759 \family default
11760  environment [in the manner described in section
11761 \begin_inset space ~
11762 \end_inset
11763
11764
11765 \begin_inset CommandInset ref
11766 LatexCommand ref
11767 reference "sec:slideQuirk"
11768
11769 \end_inset
11770
11771 ] tells \SpecialChar LyX
11772  to begin a new slide [duh].
11773  The label for this environment/
11774 \begin_inset Quotes erd
11775 \end_inset
11776
11777 pseudo-command
11778 \begin_inset Quotes erd
11779 \end_inset
11780
11781  is an 
11782 \begin_inset Quotes eld
11783 \end_inset
11784
11785 ASCII line,
11786 \begin_inset Quotes erd
11787 \end_inset
11788
11789  in cool blue, followed by the label, 
11790 \begin_inset Quotes eld
11791 \end_inset
11792
11793 NewSlide:
11794 \begin_inset Quotes erd
11795 \end_inset
11796
11797 .
11798  Any text or paragraph environments that follow this one go on the new slide.
11799  It's that simple.
11800 \end_layout
11801
11802 \begin_layout Standard
11803 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
11804
11805  (this can be specified in the 
11806 \family sans
11807 Paragraph Layout
11808 \family default
11809  dialog).
11810  In fact, you'll want to, once you finish entering the contents of one slide.
11811  If you've entered more text than can physically fit on a slide, the extra
11812  overflows onto a new slide.
11813  I don't recommend doing this, however, since the overflow slide won't have
11814  any page number on it.
11815  Furthermore, it may interfere with any 
11816 \family sans
11817 Overlay
11818 \family default
11819  you've made to accompany the oversized 
11820 \family sans
11821 Slide
11822 \family default
11823 .
11824 \end_layout
11825
11826 \begin_layout Standard
11827 The 
11828 \family sans
11829 Overlay
11830 \family default
11831  and 
11832 \family sans
11833 Note
11834 \family default
11835  environments work the same way as the 
11836 \family sans
11837 Slide
11838 \family default
11839  environment.
11840  They both create an 
11841 \begin_inset Quotes eld
11842 \end_inset
11843
11844 ASCII line
11845 \begin_inset Quotes erd
11846 \end_inset
11847
11848  followed by a label [
11849 \begin_inset Quotes eld
11850 \end_inset
11851
11852 NewOverlay:
11853 \begin_inset Quotes erd
11854 \end_inset
11855
11856  and 
11857 \begin_inset Quotes eld
11858 \end_inset
11859
11860 NewNote:
11861 \begin_inset Quotes erd
11862 \end_inset
11863
11864 , respectively].
11865  The color is a stunning magenta instead of blue, and the 
11866 \begin_inset Quotes eld
11867 \end_inset
11868
11869 ASCII line
11870 \begin_inset Quotes erd
11871 \end_inset
11872
11873  will look different, in style and in length.
11874  The label fonts of all three also differ from one another.
11875 \end_layout
11876
11877 \begin_layout Standard
11878 As with a 
11879 \family sans
11880 Slide
11881 \family default
11882 , if the contents of a 
11883 \family sans
11884 Note
11885 \family default
11886  or 
11887 \family sans
11888 Overlay
11889 \family default
11890  exceed the physical size of a slide or sheet of paper, the extra will overflow
11891  onto a new sheet.
11892  Again, you should avoid this.
11893  It defeats the whole purpose of 
11894 \family sans
11895 Note
11896 \family default
11897 s and 
11898 \family sans
11899 Overlay
11900 \family default
11901 s.
11902 \end_layout
11903
11904 \begin_layout Subsubsection
11905 Using 
11906 \family sans
11907 Overlay
11908 \family default
11909  with 
11910 \family sans
11911 Slide
11912 \end_layout
11913
11914 \begin_layout Standard
11915 The idea behind an 
11916 \family sans
11917 Overlay
11918 \family default
11919  is a slide that sits atop another slide.
11920  Perhaps you wish to discuss a figure on the main 
11921 \family sans
11922 Slide
11923 \family default
11924  before displaying the text associated with it.
11925  One way to accomplish this is tape a flap of dark paper over the part of
11926  the 
11927 \family sans
11928 Slide
11929 \family default
11930  you want to display later.
11931  This method fails, however, if you wish to overlap one graph with another,
11932  for example.
11933  You would then have to fumble while speaking to align the two separate,
11934  overlapping 
11935 \family sans
11936 Slide
11937 \family default
11938 s to align the two graphs.
11939  The use of an 
11940 \family sans
11941 Overlay
11942 \family default
11943  environment in both cases makes life much easier.
11944 \end_layout
11945
11946 \begin_layout Standard
11947 Each 
11948 \family sans
11949 Overlay
11950 \family default
11951  receives the page number of its 
11952 \begin_inset Quotes eld
11953 \end_inset
11954
11955 parent
11956 \begin_inset Quotes erd
11957 \end_inset
11958
11959  
11960 \family sans
11961 Slide
11962 \family default
11963 , appended by 
11964 \begin_inset Quotes eld
11965 \end_inset
11966
11967
11968 \family typewriter
11969 -a
11970 \family default
11971
11972 \begin_inset Quotes erd
11973 \end_inset
11974
11975 .
11976 \begin_inset Foot
11977 status collapsed
11978
11979 \begin_layout Plain Layout
11980 Presumably, mutliple 
11981 \family sans
11982 Overlay
11983 \family default
11984 s would have 
11985 \begin_inset Quotes eld
11986 \end_inset
11987
11988
11989 \family typewriter
11990 -a
11991 \family default
11992
11993 \begin_inset Quotes erd
11994 \end_inset
11995
11996
11997 \begin_inset Quotes eld
11998 \end_inset
11999
12000
12001 \family typewriter
12002 -b
12003 \family default
12004
12005 \begin_inset Quotes erd
12006 \end_inset
12007
12008
12009 \begin_inset Quotes eld
12010 \end_inset
12011
12012
12013 \family typewriter
12014 -c
12015 \family default
12016
12017 \begin_inset Quotes erd
12018 \end_inset
12019
12020 , etc.
12021 \begin_inset space ~
12022 \end_inset
12023
12024 appended to the page number of the parent 
12025 \family sans
12026 Slide
12027 \family default
12028 .
12029  
12030 \end_layout
12031
12032 \end_inset
12033
12034  Clearly, you want the contents of both the 
12035 \family sans
12036 Slide
12037 \family default
12038  and the 
12039 \family sans
12040 Overlay
12041 \family default
12042  to each fit on a single physical slide! You should probably consider an
12043  
12044 \family sans
12045 Overlay
12046 \family default
12047  as 
12048 \begin_inset Quotes eld
12049 \end_inset
12050
12051 part of
12052 \begin_inset Quotes erd
12053 \end_inset
12054
12055  a 
12056 \family sans
12057 Slide
12058 \family default
12059 .
12060  Indeed, the \SpecialChar LyX
12061  
12062 \family sans
12063 slides
12064 \family default
12065  class provides a visual cue for this: the label at the start of an 
12066 \family sans
12067 Overlay
12068 \family default
12069  is shorter than that at the start of a 
12070 \family sans
12071 Slide
12072 \family default
12073 .
12074  Lastly, when you generate printable output, you'll find alignment markers
12075  in all four corners of both the 
12076 \family sans
12077 Overlay
12078 \family default
12079  page and its parent 
12080 \family sans
12081 Slide
12082 \family default
12083 .
12084  These will assist you in lining up the two physical slides.
12085 \end_layout
12086
12087 \begin_layout Standard
12088 The major problem in overlaying two slides is aligning the contents of the
12089  two transparencies.
12090  How much space should you leave for that graph on the second slide? Worse
12091  still, what if you want a graph and a sentence on second slide, but there
12092  is text on the main transparency that goes in between them? You could try
12093  and insert vertical space of the right size.
12094  The better way is to use 
12095 \family sans
12096 InvisibleText
12097 \family default
12098  and 
12099 \family sans
12100 VisibleText
12101 \family default
12102 .
12103 \end_layout
12104
12105 \begin_layout Standard
12106 As their names imply, 
12107 \family sans
12108 InvisibleText
12109 \family default
12110  and 
12111 \family sans
12112 VisibleText
12113 \family default
12114  are two command-like paragraph environments that make all subsequent text
12115  invisible and visible, respectively.
12116  Note from section
12117 \begin_inset space ~
12118 \end_inset
12119
12120
12121 \begin_inset CommandInset ref
12122 LatexCommand ref
12123 reference "sec:slideQuirk"
12124
12125 \end_inset
12126
12127  that you don't place anything 
12128 \emph on
12129 into
12130 \emph default
12131  these two environments, however.
12132  When you create an 
12133 \family sans
12134 InvisibleText
12135 \family default
12136 , it inserts a centered, sky-blue label into the page reading 
12137 \begin_inset Quotes eld
12138 \end_inset
12139
12140 <Invisible Text Follows>
12141 \begin_inset Quotes erd
12142 \end_inset
12143
12144 .
12145  For paragraphs following this label, the parts of the 
12146 \family sans
12147 Slide
12148 \family default
12149  [or 
12150 \family sans
12151 Overlay
12152 \family default
12153 ; it doesn't matter which] where they would be contain instead blank space.
12154  
12155 \end_layout
12156
12157 \begin_layout Standard
12158 For 
12159 \family sans
12160 VisibleText
12161 \family default
12162 , the corresponding centered label is 
12163 \begin_inset Quotes eld
12164 \end_inset
12165
12166 <Visible Text Follows>
12167 \begin_inset Quotes erd
12168 \end_inset
12169
12170  in blazing green.
12171  Paragraphs following this label behave normally.
12172  Note that the beginning of a new 
12173 \family sans
12174 Slide
12175 \family default
12176
12177 \family sans
12178 Overlay
12179 \family default
12180 , or 
12181 \family sans
12182 Note
12183 \family default
12184  automatically shuts off an 
12185 \family sans
12186 InvisibleText
12187 \family default
12188 .
12189  It's therefore not necessary to use 
12190 \family sans
12191 VisibleText
12192 \family default
12193  at the end of a 
12194 \family sans
12195 Slide
12196 \family default
12197 .
12198 \end_layout
12199
12200 \begin_layout Standard
12201 By now, it should be obvious how to create overlay transparencies using
12202  the proper combination of 
12203 \family sans
12204 InvisibleText
12205 \family default
12206  and 
12207 \family sans
12208 VisibleText
12209 \family default
12210  on a 
12211 \family sans
12212 Slide
12213 \family default
12214  and 
12215 \family sans
12216 Overlay
12217 \family default
12218 :
12219 \end_layout
12220
12221 \begin_layout Enumerate
12222 Create a 
12223 \family sans
12224 Slide
12225 \family default
12226 , including everything that will appear on it, whether on the main slide
12227  or on the 
12228 \family sans
12229 Overlay
12230 \family default
12231 .
12232 \end_layout
12233
12234 \begin_layout Enumerate
12235 Before each figure or paragraph that will appear only on the 
12236 \family sans
12237 Overlay
12238 \family default
12239 , insert an 
12240 \family sans
12241 InvisibleText
12242 \family default
12243  environment.
12244  If necessary, insert a 
12245 \family sans
12246 VisibleText
12247 \family default
12248  environment after the 
12249 \family sans
12250 Overlay
12251 \family default
12252 -only text.
12253 \end_layout
12254
12255 \begin_layout Enumerate
12256 Start an 
12257 \family sans
12258 Overlay
12259 \family default
12260  immediately following the 
12261 \family sans
12262 Slide
12263 \family default
12264 .
12265 \end_layout
12266
12267 \begin_layout Enumerate
12268 Copy the contents of this 
12269 \family sans
12270 Slide
12271 \family default
12272  into the 
12273 \family sans
12274 Overlay
12275 \family default
12276 .
12277 \end_layout
12278
12279 \begin_layout Enumerate
12280 Within the 
12281 \family sans
12282 Overlay
12283 \family default
12284 , change all of the 
12285 \family sans
12286 InvisibleText
12287 \family default
12288  lines to 
12289 \family sans
12290 VisibleText
12291 \family default
12292  and vice-versa.
12293 \end_layout
12294
12295 \begin_layout Standard
12296 That's it.
12297  You've just made an 
12298 \family sans
12299 Overlay
12300 \family default
12301 .
12302 \end_layout
12303
12304 \begin_layout Standard
12305 There's one problem with the way I've designed the \SpecialChar LyX
12306  
12307 \family sans
12308 slides
12309 \family default
12310  class: you can't make text in the middle of a paragraph invisible, nor
12311  make text in the middle of an invisible paragraph visible again.
12312  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
12313  codes.
12314 \begin_inset Foot
12315 status collapsed
12316
12317 \begin_layout Plain Layout
12318 The commands of interest are: 
12319 \end_layout
12320
12321 \begin_layout Itemize
12322
12323 \family typewriter
12324 {
12325 \backslash
12326 invisible \SpecialChar ldots
12327  }
12328 \end_layout
12329
12330 \begin_layout Itemize
12331
12332 \family typewriter
12333 {
12334 \backslash
12335 visible \SpecialChar ldots
12336  }
12337 \end_layout
12338
12339 \begin_layout Plain Layout
12340 \SpecialChar ldots
12341 and need to be marked as \SpecialChar TeX
12342 .
12343  The text whose 
12344 \begin_inset Quotes eld
12345 \end_inset
12346
12347 visibility
12348 \begin_inset Quotes erd
12349 \end_inset
12350
12351  you wish to change goes in between the brackets [and after the 
12352 \family typewriter
12353
12354 \backslash
12355 invisible
12356 \family default
12357  or 
12358 \family typewriter
12359
12360 \backslash
12361 visible
12362 \family default
12363  command].
12364  If you don't know how to mark text as \SpecialChar TeX
12365 , see the appropriate section of
12366  the 
12367 \emph on
12368 User's Guide
12369 \emph default
12370 .
12371 \end_layout
12372
12373 \end_inset
12374
12375
12376 \end_layout
12377
12378 \begin_layout Subsubsection
12379 Using 
12380 \family sans
12381 Note
12382 \family default
12383  with 
12384 \family sans
12385 Slide
12386 \family default
12387
12388 \begin_inset CommandInset label
12389 LatexCommand label
12390 name "sec:slideNote"
12391
12392 \end_inset
12393
12394
12395 \end_layout
12396
12397 \begin_layout Standard
12398 Like an 
12399 \family sans
12400 Overlay
12401 \family default
12402 , a 
12403 \family sans
12404 Note
12405 \family default
12406  is associated with a 
12407 \begin_inset Quotes eld
12408 \end_inset
12409
12410 parent
12411 \begin_inset Quotes erd
12412 \end_inset
12413
12414  
12415 \family sans
12416 Slide
12417 \family default
12418 .
12419  Here, too, the \SpecialChar LyX
12420  
12421 \family sans
12422 slides
12423 \family default
12424  class provides visual cues.
12425  The label for a 
12426 \family sans
12427 Note
12428 \family default
12429  is shorter than that of a 
12430 \family sans
12431 Slide
12432 \family default
12433  [yet longer than that of an 
12434 \family sans
12435 Overlay
12436 \family default
12437 ] and, like the label of an 
12438 \family sans
12439 Overlay
12440 \family default
12441  is shockingly magenta.
12442  Additionally, the printed 
12443 \family sans
12444 Note
12445 \family default
12446  has the page number of its 
12447 \begin_inset Quotes eld
12448 \end_inset
12449
12450 parent
12451 \begin_inset Quotes erd
12452 \end_inset
12453
12454  
12455 \family sans
12456 Slide
12457 \family default
12458 , appended by 
12459 \begin_inset Quotes eld
12460 \end_inset
12461
12462
12463 \family typewriter
12464 -
12465 \family default
12466 1
12467 \begin_inset Quotes erd
12468 \end_inset
12469
12470
12471 \begin_inset Quotes eld
12472 \end_inset
12473
12474
12475 \family typewriter
12476 -
12477 \family default
12478 2
12479 \begin_inset Quotes erd
12480 \end_inset
12481
12482
12483 \begin_inset Quotes eld
12484 \end_inset
12485
12486
12487 \family typewriter
12488 -
12489 \family default
12490 3
12491 \begin_inset Quotes erd
12492 \end_inset
12493
12494 , etc.
12495  You can have multiple 
12496 \family sans
12497 Note
12498 \family default
12499 s associated with a single 
12500 \family sans
12501 Slide
12502 \family default
12503 , and, as with 
12504 \family sans
12505 Slide
12506 \family default
12507  and 
12508 \family sans
12509 Overlay
12510 \family default
12511 , you'll probably want to break up long 
12512 \family sans
12513 Note
12514 \family default
12515 s so that they fit on a single sheet of paper.
12516 \end_layout
12517
12518 \begin_layout Standard
12519 The purpose of a 
12520 \family sans
12521 Note
12522 \family default
12523  is obvious: it contains anything additional you might want to say about
12524  a 
12525 \family sans
12526 Slide
12527 \family default
12528 .
12529  It could also be used as a sheet of reminders for a particular 
12530 \family sans
12531 Slide
12532 \family default
12533 .
12534  In the case of the latter, you might want to make use of time markers.
12535  Currently, the \SpecialChar LyX
12536  
12537 \family sans
12538 slides
12539 \family default
12540  class has no 
12541 \begin_inset Quotes eld
12542 \end_inset
12543
12544 native
12545 \begin_inset Quotes erd
12546 \end_inset
12547
12548  support for time markers, a 
12549 \noun on
12550 Sli\SpecialChar TeX
12551
12552 \noun default
12553  feature.
12554  So, you'll have to resort to using the \SpecialChar LaTeX
12555  codes.
12556 \end_layout
12557
12558 \begin_layout Standard
12559 To use time markers, you'll need to specify the extra class option 
12560 \begin_inset Quotes eld
12561 \end_inset
12562
12563
12564 \family typewriter
12565 clock
12566 \family default
12567
12568 \begin_inset Quotes erd
12569 \end_inset
12570
12571  [see section
12572 \begin_inset space ~
12573 \end_inset
12574
12575
12576 \begin_inset CommandInset ref
12577 LatexCommand ref
12578 reference "sec:slidesetup"
12579
12580 \end_inset
12581
12582 ].
12583  This option turns on timing marks, which will appear in the lower-left-hand
12584  corner of every 
12585 \family sans
12586 Note
12587 \family default
12588  you generate.
12589  To set what appears in the time marker, you use the \SpecialChar LaTeX
12590  commands 
12591 \begin_inset Quotes eld
12592 \end_inset
12593
12594
12595 \family typewriter
12596
12597 \backslash
12598 settime{}
12599 \family default
12600
12601 \begin_inset Quotes erd
12602 \end_inset
12603
12604  and 
12605 \begin_inset Quotes eld
12606 \end_inset
12607
12608
12609 \family typewriter
12610
12611 \backslash
12612 addtime{}
12613 \family default
12614
12615 \begin_inset Quotes erd
12616 \end_inset
12617
12618 .
12619  The arguments of both commands are time measured in seconds.
12620  
12621 \begin_inset Quotes eld
12622 \end_inset
12623
12624
12625 \family typewriter
12626
12627 \backslash
12628 settime{}
12629 \family default
12630
12631 \begin_inset Quotes erd
12632 \end_inset
12633
12634  sets the time marker to a given time.
12635  
12636 \begin_inset Quotes eld
12637 \end_inset
12638
12639
12640 \family typewriter
12641
12642 \backslash
12643 addtime{}
12644 \family default
12645
12646 \begin_inset Quotes erd
12647 \end_inset
12648
12649  increments the time marker by the specified amount.
12650  Using time markers and 
12651 \family sans
12652 Note
12653 \family default
12654 s in this fashion, you can remind yourself how much time to spend on a particula
12655
12656 \family sans
12657 Slide
12658 \family default
12659 .
12660 \end_layout
12661
12662 \begin_layout Standard
12663 There's one last feature to describe.
12664  Clearly, you'd like to print out all of your 
12665 \family sans
12666 Slide
12667 \family default
12668 s and 
12669 \family sans
12670 Overlay
12671 \family default
12672 s on transparencies while printing all of your 
12673 \family sans
12674 Note
12675 \family default
12676 s on plain paper.
12677  However, a 
12678 \family sans
12679 Note
12680 \family default
12681  
12682 \emph on
12683 must
12684 \emph default
12685  follow the 
12686 \family sans
12687 Slide
12688 \family default
12689  with which it is associated.
12690  What's a person to do?
12691 \end_layout
12692
12693 \begin_layout Standard
12694 Luckily, there are two \SpecialChar LaTeX
12695  commands that allow you to select what to print
12696  out.
12697  Both must be placed into the preamble of your document.
12698  The command 
12699 \begin_inset Quotes eld
12700 \end_inset
12701
12702
12703 \family typewriter
12704
12705 \backslash
12706 onlyslides{
12707 \backslash
12708 slides}
12709 \family default
12710
12711 \begin_inset Quotes erd
12712 \end_inset
12713
12714  will cause the output to contain only the 
12715 \family sans
12716 Slide
12717 \family default
12718 s and 
12719 \family sans
12720 Overlay
12721 \family default
12722 s.
12723  Correspondingly, the command 
12724 \begin_inset Quotes eld
12725 \end_inset
12726
12727
12728 \family typewriter
12729
12730 \backslash
12731 onlynotes{
12732 \backslash
12733 notes}
12734 \family default
12735
12736 \begin_inset Quotes erd
12737 \end_inset
12738
12739  prevents the output of anything but 
12740 \family sans
12741 Note
12742 \family default
12743 s.
12744  I'd advise placing both commands in the preamble and initially comment
12745  both out.
12746  You can then preview your entire presentation as you write.
12747  When you're done writing, you can then uncomment one of the two to select
12748  what you want to print.
12749  I like to uncomment 
12750 \begin_inset Quotes eld
12751 \end_inset
12752
12753
12754 \family typewriter
12755
12756 \backslash
12757 onlyslides{
12758 \backslash
12759 slides}
12760 \family default
12761
12762 \begin_inset Quotes erd
12763 \end_inset
12764
12765  , print to a file with 
12766 \begin_inset Quotes eld
12767 \end_inset
12768
12769
12770 \family typewriter
12771 -slides
12772 \family default
12773
12774 \begin_inset Quotes erd
12775 \end_inset
12776
12777  in its name, comment it back out, then uncomment 
12778 \begin_inset Quotes eld
12779 \end_inset
12780
12781
12782 \family typewriter
12783
12784 \backslash
12785 onlynotes{
12786 \backslash
12787 notes}
12788 \family default
12789
12790 \begin_inset Quotes erd
12791 \end_inset
12792
12793  and print to a 
12794 \begin_inset Quotes eld
12795 \end_inset
12796
12797
12798 \family typewriter
12799 *-notes.ps
12800 \family default
12801
12802 \begin_inset Quotes erd
12803 \end_inset
12804
12805  file.
12806  I can then send either file to a printer, loading transparencies or plain
12807  paper as appropriate.
12808 \end_layout
12809
12810 \begin_layout Standard
12811 You can also provide other arguments to the 
12812 \begin_inset Quotes eld
12813 \end_inset
12814
12815
12816 \family typewriter
12817
12818 \backslash
12819 onlyslides{}
12820 \family default
12821
12822 \begin_inset Quotes erd
12823 \end_inset
12824
12825  and 
12826 \begin_inset Quotes eld
12827 \end_inset
12828
12829
12830 \family typewriter
12831
12832 \backslash
12833 onlynotes{}
12834 \family default
12835
12836 \begin_inset Quotes erd
12837 \end_inset
12838
12839  commands.
12840  See a good \SpecialChar LaTeX
12841  book for details.
12842 \end_layout
12843
12844 \begin_layout Subsection
12845 The 
12846 \family sans
12847 slides
12848 \family default
12849  Class Template File
12850 \end_layout
12851
12852 \begin_layout Standard
12853 I have also provided a template file, 
12854 \begin_inset Quotes eld
12855 \end_inset
12856
12857
12858 \family typewriter
12859 slides.lyx
12860 \family default
12861
12862 \begin_inset Quotes erd
12863 \end_inset
12864
12865 , with the 
12866 \family sans
12867 slides
12868 \family default
12869  class.
12870  To use it, begin your new presentation with 
12871 \family sans
12872 File\SpecialChar menuseparator
12873 New
12874 \begin_inset space ~
12875 \end_inset
12876
12877 from
12878 \begin_inset space ~
12879 \end_inset
12880
12881 Template
12882 \family default
12883 .
12884  Your new \SpecialChar LyX
12885  presentation file will contain an example 
12886 \family sans
12887 Slide
12888 \family default
12889  – 
12890 \family sans
12891 Overlay
12892 \family default
12893  – 
12894 \family sans
12895 Note
12896 \family default
12897  triplet.
12898  The 
12899 \family sans
12900 Slide
12901 \family default
12902  and 
12903 \family sans
12904 Overlay
12905 \family default
12906  additionally contain an example of the use of 
12907 \family sans
12908 InvisibleText
12909 \family default
12910  and 
12911 \family sans
12912 VisibleText
12913 \family default
12914 .
12915  Lastly, the preamble will contain:
12916 \end_layout
12917
12918 \begin_layout LyX-Code
12919 % Uncomment to print out only slides and overlays
12920 \end_layout
12921
12922 \begin_layout LyX-Code
12923 %
12924 \end_layout
12925
12926 \begin_layout LyX-Code
12927 %
12928 \backslash
12929 onlyslides{
12930 \backslash
12931 slides}
12932 \begin_inset Newline newline
12933 \end_inset
12934
12935  
12936 \end_layout
12937
12938 \begin_layout LyX-Code
12939 % Uncomment to print out only notes
12940 \end_layout
12941
12942 \begin_layout LyX-Code
12943 %
12944 \end_layout
12945
12946 \begin_layout LyX-Code
12947 %
12948 \backslash
12949 onlynotes{
12950 \backslash
12951 notes}
12952 \end_layout
12953
12954 \begin_layout Standard
12955 One final thing: I created this class to support the \SpecialChar LaTeX2e
12956  
12957 \begin_inset Quotes eld
12958 \end_inset
12959
12960
12961 \noun on
12962 Sli\SpecialChar TeX
12963
12964 \noun default
12965  emulation
12966 \begin_inset Quotes erd
12967 \end_inset
12968
12969  class, one of the built-in \SpecialChar LaTeX2e
12970  classes.
12971  Neither I nor the rest of the \SpecialChar LyX
12972  Team endorse or oppose the use of this built-in
12973  slide class.
12974  It's here if you want it or need it.
12975  There exist other \SpecialChar LaTeX2e
12976  classes for creating presentations, such as the 
12977 \family sans
12978 Foils
12979 \family default
12980  class [see section
12981 \begin_inset space ~
12982 \end_inset
12983
12984
12985 \begin_inset CommandInset ref
12986 LatexCommand ref
12987 reference "sec:foiltex"
12988
12989 \end_inset
12990
12991 ] or the 
12992 \begin_inset Quotes eld
12993 \end_inset
12994
12995
12996 \family typewriter
12997 seminar
12998 \family default
12999
13000 \begin_inset Quotes erd
13001 \end_inset
13002
13003  package [present on some \SpecialChar TeX
13004  distributions].
13005  The latter is not yet supported under \SpecialChar LyX
13006 .
13007 \begin_inset Foot
13008 status collapsed
13009
13010 \begin_layout Plain Layout
13011 Perhaps you can take on the task\SpecialChar ldots
13012
13013 \end_layout
13014
13015 \end_inset
13016
13017  I know nothing about these other classes.
13018  Try them out to see what sort of alternative they provide.
13019 \end_layout
13020
13021 \begin_layout Chapter
13022
13023 \change_inserted 893223064 1464851900
13024 Modules
13025 \end_layout
13026
13027 \begin_layout Standard
13028
13029 \change_inserted 893223064 1464851910
13030 This is a holder for prepared text.
13031 \end_layout
13032
13033 \begin_layout Chapter
13034
13035 \change_inserted 893223064 1464851939
13036 Page layout
13037 \end_layout
13038
13039 \begin_layout Standard
13040
13041 \change_inserted 893223064 1464851945
13042 This is a holder for prepared text.
13043 \end_layout
13044
13045 \begin_layout Section
13046 Special features
13047 \end_layout
13048
13049 \begin_layout Standard
13050 You can do everything with \SpecialChar LyX
13051  that you can do with \SpecialChar LaTeX
13052 .
13053  However, \SpecialChar LyX
13054  cannot support every \SpecialChar LaTeX
13055  feature directly.
13056  But you can always use \SpecialChar TeX
13057  Code.
13058  This chapter shows you some more special things you might want to use.
13059  For other special things you can do with figures, tables, floats, boxes
13060  and notes, have a look at the 
13061 \emph on
13062 Embedded
13063 \begin_inset space ~
13064 \end_inset
13065
13066 Objects
13067 \emph default
13068  manual.
13069 \end_layout
13070
13071 \begin_layout Section
13072 Fancy Headers and Footers
13073 \end_layout
13074
13075 \begin_layout Standard
13076 The default page layout is rather plain; for an 
13077 \begin_inset Flex Code
13078 status collapsed
13079
13080 \begin_layout Plain Layout
13081 article
13082 \end_layout
13083
13084 \end_inset
13085
13086  document class, all you get is a centered page number at the bottom of
13087  the page.
13088  This document uses KOMA-script's book class, so it appears to be a bit
13089  fancier.
13090  But to really put on a show, you need to set the document page style to
13091  
13092 \begin_inset Quotes eld
13093 \end_inset
13094
13095 fancy
13096 \begin_inset Quotes erd
13097 \end_inset
13098
13099 , as mentioned in the 
13100 \emph on
13101 User Guide
13102 \emph default
13103 .
13104  This section describes the \SpecialChar LaTeX
13105  code you need to insert in your \SpecialChar LaTeX
13106  preamble in
13107  order to get the desired effects.
13108 \end_layout
13109
13110 \begin_layout Standard
13111 For more information on fancy headers, see the 
13112 \begin_inset Flex Code
13113 status collapsed
13114
13115 \begin_layout Plain Layout
13116 fancyhdr
13117 \end_layout
13118
13119 \end_inset
13120
13121  package documentation.
13122  (
13123 \begin_inset Flex URL
13124 status collapsed
13125
13126 \begin_layout Plain Layout
13127
13128 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
13129 \end_layout
13130
13131 \end_inset
13132
13133 )
13134 \end_layout
13135
13136 \begin_layout Standard
13137 The page header is divided into three fields, not surprisingly labeled 
13138 \begin_inset Quotes eld
13139 \end_inset
13140
13141 left
13142 \begin_inset Quotes erd
13143 \end_inset
13144
13145
13146 \begin_inset Quotes eld
13147 \end_inset
13148
13149 center
13150 \begin_inset Quotes erd
13151 \end_inset
13152
13153 , and 
13154 \begin_inset Quotes eld
13155 \end_inset
13156
13157 right
13158 \begin_inset Quotes erd
13159 \end_inset
13160
13161 .
13162  The footer is also divided into these three fields.
13163  The \SpecialChar LaTeX
13164  commands to set these fields in the simplest manner are 
13165 \begin_inset Flex Code
13166 status collapsed
13167
13168 \begin_layout Plain Layout
13169
13170 \backslash
13171 lhead
13172 \end_layout
13173
13174 \end_inset
13175
13176
13177 \begin_inset Flex Code
13178 status collapsed
13179
13180 \begin_layout Plain Layout
13181
13182 \backslash
13183 chead
13184 \end_layout
13185
13186 \end_inset
13187
13188
13189 \begin_inset Flex Code
13190 status collapsed
13191
13192 \begin_layout Plain Layout
13193
13194 \backslash
13195 rhead
13196 \end_layout
13197
13198 \end_inset
13199
13200
13201 \begin_inset Flex Code
13202 status collapsed
13203
13204 \begin_layout Plain Layout
13205
13206 \backslash
13207 lfoot
13208 \end_layout
13209
13210 \end_inset
13211
13212 , etc.
13213  Suppose you wish to put your name in the upper left hand corner of each
13214  page.
13215  Simply insert the following command in the preamble: 
13216 \end_layout
13217
13218 \begin_layout Standard
13219
13220 \family typewriter
13221
13222 \backslash
13223 lhead{John Q.
13224  DocWriter}
13225 \end_layout
13226
13227 \begin_layout Standard
13228 You will now see your name in the upper left.
13229  If a field has a default entry that you would like to get rid of (often
13230  the page number appears in the central footer) simply include a command
13231  with a blank argument, e.
13232 \begin_inset space \thinspace{}
13233 \end_inset
13234
13235 g.:
13236 \end_layout
13237
13238 \begin_layout Standard
13239
13240 \family typewriter
13241
13242 \backslash
13243 cfoot{}
13244 \end_layout
13245
13246 \begin_layout Standard
13247 Let's get really fancy: lets put the section number with the word 
13248 \begin_inset Quotes eld
13249 \end_inset
13250
13251 Section
13252 \begin_inset Quotes erd
13253 \end_inset
13254
13255  (e.
13256 \begin_inset space \thinspace{}
13257 \end_inset
13258
13259 g.
13260 \begin_inset space \space{}
13261 \end_inset
13262
13263 Section 3) in the upper left, the page number (e.
13264 \begin_inset space \thinspace{}
13265 \end_inset
13266
13267 g.
13268 \begin_inset space \space{}
13269 \end_inset
13270
13271 Page 4) in the upper right, your name in the lower left, and the date in
13272  the lower right.
13273  The following commands should now appear in the preamble:
13274 \end_layout
13275
13276 \begin_layout Standard
13277
13278 \family typewriter
13279
13280 \backslash
13281 lhead{Section 
13282 \backslash
13283 thesection}
13284 \end_layout
13285
13286 \begin_layout Standard
13287
13288 \family typewriter
13289
13290 \backslash
13291 chead{}
13292 \end_layout
13293
13294 \begin_layout Standard
13295
13296 \family typewriter
13297
13298 \backslash
13299 rhead{Page 
13300 \backslash
13301 thepage}
13302 \end_layout
13303
13304 \begin_layout Standard
13305
13306 \family typewriter
13307
13308 \backslash
13309 lfoot{John Q.
13310  DocWriter}
13311 \end_layout
13312
13313 \begin_layout Standard
13314
13315 \family typewriter
13316
13317 \backslash
13318 cfoot{}
13319 \end_layout
13320
13321 \begin_layout Standard
13322
13323 \family typewriter
13324
13325 \backslash
13326 rfoot{
13327 \backslash
13328 today}
13329 \end_layout
13330
13331 \begin_layout Standard
13332 The commands 
13333 \begin_inset Flex Code
13334 status collapsed
13335
13336 \begin_layout Plain Layout
13337
13338 \backslash
13339 thesection
13340 \end_layout
13341
13342 \end_inset
13343
13344  and 
13345 \begin_inset Flex Code
13346 status collapsed
13347
13348 \begin_layout Plain Layout
13349
13350 \backslash
13351 thepage
13352 \end_layout
13353
13354 \end_inset
13355
13356  access \SpecialChar LaTeX
13357 's section and page counters, and so print out the current section
13358  and page numbers.
13359  
13360 \begin_inset Flex Code
13361 status collapsed
13362
13363 \begin_layout Plain Layout
13364
13365 \backslash
13366 today
13367 \end_layout
13368
13369 \end_inset
13370
13371  simply prints out today's date.
13372 \end_layout
13373
13374 \begin_layout Standard
13375 The thicknesses of the horizontal rules drawn beneath the header and above
13376  the footer can also be modified.
13377  If you don't want one of the rules, set its thickness to 0.
13378  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
13379  Use commands
13380 \family typewriter
13381  
13382 \family default
13383 like 
13384 \begin_inset Flex Code
13385 status collapsed
13386
13387 \begin_layout Plain Layout
13388
13389 \backslash
13390 renewcommand{
13391 \backslash
13392 headrulewidth}{0.4pt}
13393 \end_layout
13394
13395 \end_inset
13396
13397  and 
13398 \begin_inset Flex Code
13399 status collapsed
13400
13401 \begin_layout Plain Layout
13402
13403 \backslash
13404 renewcommand{
13405 \backslash
13406 footrulewidth}{0.4pt}
13407 \end_layout
13408
13409 \end_inset
13410
13411  to set the thicknesses.
13412 \end_layout
13413
13414 \begin_layout Standard
13415 You can switch the header/footer settings on and off for individual pages
13416  using commands like 
13417 \begin_inset Flex Code
13418 status collapsed
13419
13420 \begin_layout Plain Layout
13421
13422 \backslash
13423 thispagestyle{empty}
13424 \end_layout
13425
13426 \end_inset
13427
13428
13429 \begin_inset Flex Code
13430 status collapsed
13431
13432 \begin_layout Plain Layout
13433
13434 \backslash
13435 thispagestyle{plain}
13436 \end_layout
13437
13438 \end_inset
13439
13440 , and 
13441 \begin_inset Flex Code
13442 status collapsed
13443
13444 \begin_layout Plain Layout
13445
13446 \backslash
13447 thispagestyle{fancy}
13448 \end_layout
13449
13450 \end_inset
13451
13452 .
13453  Simply insert them in the text on the page you want changed and mark them
13454  as \SpecialChar TeX
13455  code.
13456  In fact, title pages are marked as plain by default, while following pages
13457  are marked fancy when using the global fancy setting.
13458 \end_layout
13459
13460 \begin_layout Standard
13461 As a final example, it is possible to include an image in the header or
13462  footer.
13463  Suppose you want to put a company logo in the upper lefthand corner.
13464  You might try something like
13465 \end_layout
13466
13467 \begin_layout Standard
13468
13469 \family typewriter
13470
13471 \backslash
13472 lhead{
13473 \backslash
13474 resizebox{1in}{!}{
13475 \backslash
13476 includegraphics{logo.eps}}}
13477 \end_layout
13478
13479 \begin_layout Standard
13480 \noindent
13481 (you may need to preface this with 
13482 \begin_inset Flex Code
13483 status collapsed
13484
13485 \begin_layout Plain Layout
13486 \noindent
13487
13488 \backslash
13489 usepackage{graphics}
13490 \end_layout
13491
13492 \end_inset
13493
13494  if you don't include graphics elsewhere in your document).
13495 \end_layout
13496
13497 \begin_layout Section
13498 Multiple Text Columns
13499 \end_layout
13500
13501 \begin_layout Standard
13502 This feature is independent of the option 
13503 \family sans
13504 Two-column document
13505 \family default
13506  in the document settings under 
13507 \family sans
13508 Text Layout
13509 \family default
13510 .
13511  If you want to have 2
13512 \begin_inset space ~
13513 \end_inset
13514
13515 columns for the whole document, it is recommended to use the 
13516 \family sans
13517 Two-column document
13518 \family default
13519  option.
13520  For all other cases use this feature.
13521 \end_layout
13522
13523 \begin_layout Standard
13524 To use multiple text columns in your document, you have to load the module
13525  
13526 \family sans
13527 Multiple Columns
13528 \family default
13529  (menu 
13530 \family sans
13531 Document\SpecialChar menuseparator
13532 Settings\SpecialChar menuseparator
13533 Modules
13534 \family default
13535 ) and must have the \SpecialChar LaTeX
13536 -package 
13537 \series bold
13538 multicol
13539 \series default
13540  installed.
13541 \end_layout
13542
13543 \begin_layout Standard
13544 Footnotes within multiple columns will be placed at the bottom of the page
13545  and not under each column.
13546  Within the different columns you can use everything, with the limitation
13547  that for floats you need to use the float option 
13548 \family sans
13549 Span columns
13550 \family default
13551 .
13552 \end_layout
13553
13554 \begin_layout Subsection
13555 Basics
13556 \end_layout
13557
13558 \begin_layout Standard
13559 If you want to have 2
13560 \begin_inset space ~
13561 \end_inset
13562
13563 columns in your text, insert a multicolumn inset via the menu 
13564 \family sans
13565 Insert\SpecialChar menuseparator
13566 Custom
13567 \begin_inset space ~
13568 \end_inset
13569
13570 Insets\SpecialChar menuseparator
13571 Multiple
13572 \begin_inset space ~
13573 \end_inset
13574
13575 Columns
13576 \family default
13577  where the columns should start.
13578  Write all text that should be printed in 2
13579 \begin_inset space ~
13580 \end_inset
13581
13582 columns into this inset.
13583 \end_layout
13584
13585 \begin_layout Standard
13586 Here is an example:
13587 \end_layout
13588
13589 \begin_layout Standard
13590 \noindent
13591 \begin_inset Flex Multiple Columns
13592 status open
13593
13594 \begin_layout Plain Layout
13595 \noindent
13596
13597 \series bold
13598 \size small
13599 The Adventure of the Empty House
13600 \series default
13601
13602 \begin_inset Newline newline
13603 \end_inset
13604
13605 by Sir Arthur Conan Doyle
13606 \end_layout
13607
13608 \begin_layout Plain Layout
13609
13610 \size small
13611 It was in the spring of the year 1894 that all London was interested, and
13612  the fashionable world dismayed, by the murder of the Honourable Ronald
13613  Adair under most unusual and inexplicable circumstances.
13614  The public has already learned those particulars of the crime which came
13615  out in the police investigation, but a good deal was suppressed upon that
13616  occasion, since the case for the prosecution was so overwhelmingly strong
13617  that it was not necessary to bring forward all the facts.
13618  Only now, at the end of nearly ten years, am I allowed to supply those
13619  missing links which make up the whole of that remarkable chain.
13620  The crime was of interest in itself, but that interest was as nothing to
13621  me compared to the inconceivable sequel, which afforded me the greatest
13622  shock and surprise of any event in my adventurous life.
13623  Even now, after this long interval, I find myself thrilling as I think
13624  of it, and feeling once more that sudden flood of joy, amazement, and increduli
13625 ty which utterly submerged my mind.
13626  Let me say to that public, which has shown some interest in those glimpses
13627  which I have occasionally given them of the thoughts and actions of a very
13628  remarkable man, that they are not to blame me if I have not shared my knowledge
13629  with them, for I should have considered it my first duty to do so, had
13630  I not been barred by a positive prohibition from his own lips, which was
13631  only withdrawn upon the third of last month.
13632 \end_layout
13633
13634 \end_inset
13635
13636
13637 \end_layout
13638
13639 \begin_layout Standard
13640 To get 3 or more columns, set the cursor into the multicolumn inset and
13641  use the menu 
13642 \family sans
13643 Insert\SpecialChar menuseparator
13644 Number
13645 \begin_inset space ~
13646 \end_inset
13647
13648 of
13649 \begin_inset space ~
13650 \end_inset
13651
13652 Columns
13653 \family default
13654 .
13655  The number of the desired columns is written into that inset (for 3
13656 \begin_inset space ~
13657 \end_inset
13658
13659 columns write 
13660 \begin_inset Quotes eld
13661 \end_inset
13662
13663 3
13664 \begin_inset Quotes erd
13665 \end_inset
13666
13667 ).
13668 \begin_inset Newline newline
13669 \end_inset
13670
13671 Here is an example with 3
13672 \begin_inset space ~
13673 \end_inset
13674
13675 columns:
13676 \end_layout
13677
13678 \begin_layout Standard
13679 \begin_inset Flex Multiple Columns
13680 status open
13681
13682 \begin_layout Plain Layout
13683
13684 \size footnotesize
13685 \begin_inset Argument 1
13686 status open
13687
13688 \begin_layout Plain Layout
13689 3
13690 \end_layout
13691
13692 \end_inset
13693
13694 It can be imagined that my close intimacy with Sherlock Holmes had interested
13695  me deeply in crime, and that after his disappearance I never failed to
13696  read with care the various problems which came before the public.
13697  And I even attempted, more than once, for my own private satisfaction,
13698  to employ his methods in their solution, though with indifferent success.
13699  There was none, however, which appealed to me like this tragedy of Ronald
13700  Adair.
13701  As I read the evidence at the inquest, which led up to a verdict of willful
13702  murder against some person or persons unknown, I realized more clearly
13703  than I had ever done the loss which the community had sustained by the
13704  death of Sherlock Holmes.
13705  There were points about this strange business which would, I was sure,
13706  have specially appealed to him, and the efforts of the police would have
13707  been supplemented, or more probably anticipated, by the trained observation
13708  and the alert mind of the first criminal agent in Europe.
13709  All day, as I drove upon my round, I turned over the case in my mind and
13710  found no explanation which appeared to me to be adequate.
13711  At the risk of telling a twice-told tale, I will recapitulate the facts
13712  as they were known to the public at the conclusion of the inquest.
13713 \end_layout
13714
13715 \end_inset
13716
13717
13718 \end_layout
13719
13720 \begin_layout Standard
13721 You can have up to 10
13722 \begin_inset space ~
13723 \end_inset
13724
13725 columns if you want to, but that might not be very pleasant for the readers
13726  of your document.
13727 \end_layout
13728
13729 \begin_layout Standard
13730 \begin_inset Newpage newpage
13731 \end_inset
13732
13733
13734 \end_layout
13735
13736 \begin_layout Subsection
13737 Columns inside Columns
13738 \end_layout
13739
13740 \begin_layout Standard
13741 You can also have columns inside columns:
13742 \end_layout
13743
13744 \begin_layout Standard
13745 \begin_inset Flex Multiple Columns
13746 status open
13747
13748 \begin_layout Plain Layout
13749
13750 \size footnotesize
13751 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
13752  at that time governor of one of the Australian colonies.
13753  Adair's mother had returned from Australia to undergo the operation for
13754  cataract, and she, her son Ronald, and her daughter Hilda were living together
13755  at 427 Park Lane.
13756 \end_layout
13757
13758 \begin_layout Plain Layout
13759 \begin_inset Flex Multiple Columns
13760 status open
13761
13762 \begin_layout Plain Layout
13763
13764 \size footnotesize
13765 The youth moved in the best society–had, so far as was known, no enemies
13766  and no particular vices.
13767  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
13768  had been broken off by mutual consent some months before, and there was
13769  no sign that it had left any very profound feeling behind it.
13770  For the rest {sic} the man's life moved in a narrow and conventional circle,
13771  for his habits were quiet and his nature unemotional.
13772  Yet it was upon this easy-going young aristocrat that death came, in most
13773  strange and unexpected form, between the hours of ten and eleven-twenty
13774  on the night of March 30, 1894.
13775 \end_layout
13776
13777 \end_inset
13778
13779
13780 \end_layout
13781
13782 \begin_layout Plain Layout
13783
13784 \size footnotesize
13785 Ronald Adair was fond of cards–playing continually, but never for such stakes
13786  as would hurt him.
13787  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
13788  It was shown that, after dinner on the day of his death, he had played
13789  a rubber of whist at the latter club.
13790  He had also played there in the afternoon.
13791
13792 \size default
13793  
13794 \size footnotesize
13795 The evidence of those who had played with him– Mr.
13796  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
13797  and that there was a fairly equal fall of the cards.
13798  Adair might have lost five pounds, but not more.
13799  His fortune was a considerable one, and such a loss could not in any way
13800  affect him.
13801  He had played nearly every day at one club or other, but he was a cautious
13802  player, and usually rose a winner.
13803  It came out in evidence that, in partnership with Colonel Moran, he had
13804  actually won as much as four hundred and twenty pounds in a sitting, some
13805  weeks before, from Godfrey Milner and Lord Balmoral.
13806  So much for his recent history as it came out at the inquest.
13807 \end_layout
13808
13809 \end_inset
13810
13811
13812 \end_layout
13813
13814 \begin_layout Subsection
13815 Advanced Examples
13816 \end_layout
13817
13818 \begin_layout Standard
13819 The examples in this section show some more special features of multiple
13820  columns.
13821 \end_layout
13822
13823 \begin_layout Standard
13824 For more features of multiple columns, have a look at the documentation
13825  of the \SpecialChar LaTeX
13826 -package 
13827 \series bold
13828 multicol
13829 \series default
13830
13831 \begin_inset CommandInset citation
13832 LatexCommand cite
13833 key "multicol"
13834
13835 \end_inset
13836
13837 .
13838 \end_layout
13839
13840 \begin_layout Subsubsection
13841 Preface
13842 \end_layout
13843
13844 \begin_layout Standard
13845 To add a preface text for multiple columns, set the cursor into the multicolumn
13846  inset and use the menu 
13847 \family sans
13848 Insert\SpecialChar menuseparator
13849 Preface
13850 \family default
13851 .
13852  Write your preface text into that inset.
13853 \begin_inset Newline newline
13854 \end_inset
13855
13856 This is an example with some preface text:
13857 \end_layout
13858
13859 \begin_layout Standard
13860 \begin_inset VSpace bigskip
13861 \end_inset
13862
13863
13864 \end_layout
13865
13866 \begin_layout Standard
13867 \begin_inset Flex Multiple Columns
13868 status open
13869
13870 \begin_layout Plain Layout
13871 \begin_inset Argument 2
13872 status open
13873
13874 \begin_layout Plain Layout
13875 And the story continues and continues and continues and continues\SpecialChar ldots
13876
13877 \end_layout
13878
13879 \end_inset
13880
13881
13882 \size small
13883 On the evening of the crime, he returned from the club exactly at ten.
13884  His mother and sister were out spending the evening with a relation.
13885  The servant deposed that she heard him enter the front room on the second
13886  floor, generally used as his sitting-room.
13887  She had lit a fire there, and as it smoked she had opened the window.
13888  No sound was heard from the room until eleven-twenty, the hour of the return
13889  of Lady Maynooth and her daughter.
13890  Desiring to say good-night, she attempted to enter her son's room.
13891  The door was locked on the inside, and no answer could be got to their
13892  cries and knocking.
13893  Help was obtained, and the door forced.
13894  The unfortunate young man was found lying near the table.
13895  His head had been horribly mutilated by an expanding revolver bullet, but
13896  no weapon of any sort was to be found in the room.
13897 \end_layout
13898
13899 \end_inset
13900
13901
13902 \end_layout
13903
13904 \begin_layout Standard
13905 You can also use a section heading as the preface if you use a section command
13906  as \SpecialChar TeX
13907  Code.
13908  For example the command
13909 \end_layout
13910
13911 \begin_layout Standard
13912
13913 \series bold
13914
13915 \backslash
13916 subsection{subsection title}
13917 \end_layout
13918
13919 \begin_layout Standard
13920 creates a subsection.
13921  In this example the preface is a subsubsection:
13922 \end_layout
13923
13924 \begin_layout Standard
13925 \begin_inset Flex Multiple Columns
13926 status open
13927
13928 \begin_layout Plain Layout
13929 \begin_inset Argument 2
13930 status open
13931
13932 \begin_layout Plain Layout
13933 \begin_inset ERT
13934 status collapsed
13935
13936 \begin_layout Plain Layout
13937
13938
13939 \backslash
13940 subsubsection{
13941 \end_layout
13942
13943 \end_inset
13944
13945 This is a subsubsection heading as a preface
13946 \begin_inset ERT
13947 status collapsed
13948
13949 \begin_layout Plain Layout
13950
13951 }
13952 \end_layout
13953
13954 \end_inset
13955
13956
13957 \end_layout
13958
13959 \end_inset
13960
13961
13962 \size small
13963 A minute examination of the circumstances served only to make the case more
13964  complex.
13965  In the first place, no reason could be given why the young man should have
13966  fastened the door upon the inside.
13967  There was the possibility that the murderer had done this, and had afterwards
13968  escaped by the window.
13969  The drop was at least twenty feet, however, and a bed of crocuses in full
13970  bloom lay beneath.
13971  Neither the flowers nor the earth showed any sign of having been disturbed,
13972  nor were there any marks upon the narrow strip of grass which separated
13973  the house from the road.
13974  Apparently, therefore, it was the young man himself who had fastened the
13975  door.
13976  But how did he come by his death? No one could have climbed up to the window
13977  without leaving traces.
13978  Suppose a man had fired through the window, he would indeed be a remarkable
13979  shot who could with a revolver inflict so deadly a wound.
13980  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
13981  a hundred yards of the house.
13982  No one had heard a shot.
13983 \end_layout
13984
13985 \end_inset
13986
13987
13988 \end_layout
13989
13990 \begin_layout Standard
13991 If there is less vertical space than 6
13992 \begin_inset space ~
13993 \end_inset
13994
13995 text lines is left on the page at the beginning of the multiple columns,
13996  a page break will be inserted before the multiple columns.
13997  Depending on the number of lines of the preface text, you might want to
13998  change this space.
13999  This is done by setting the cursor into the mulitcolumn inset behind the
14000  preface (if there is any) and using the menu 
14001 \family sans
14002 Insert\SpecialChar menuseparator
14003 Space
14004 \begin_inset space ~
14005 \end_inset
14006
14007 Before
14008 \begin_inset space ~
14009 \end_inset
14010
14011 Page
14012 \begin_inset space ~
14013 \end_inset
14014
14015 Break
14016 \family default
14017 .
14018  Insert into that inset the amount of space like e.
14019 \begin_inset space \thinspace{}
14020 \end_inset
14021
14022 g.
14023 \begin_inset space \space{}
14024 \end_inset
14025
14026
14027 \begin_inset Quotes eld
14028 \end_inset
14029
14030 5cm
14031 \begin_inset Quotes erd
14032 \end_inset
14033
14034 .
14035 \begin_inset Newline newline
14036 \end_inset
14037
14038 In this example the space is set to 7
14039 \begin_inset space ~
14040 \end_inset
14041
14042 text lines by using 
14043 \begin_inset Quotes eld
14044 \end_inset
14045
14046 7
14047 \backslash
14048 baselineskip
14049 \begin_inset Quotes erd
14050 \end_inset
14051
14052  (where the command 
14053 \series bold
14054
14055 \backslash
14056 baselineskip
14057 \series default
14058  needs to be inserted as \SpecialChar TeX
14059  code):
14060 \end_layout
14061
14062 \begin_layout Standard
14063 \begin_inset Flex Multiple Columns
14064 status open
14065
14066 \begin_layout Plain Layout
14067 \begin_inset Argument 3
14068 status open
14069
14070 \begin_layout Plain Layout
14071 7
14072 \begin_inset ERT
14073 status collapsed
14074
14075 \begin_layout Plain Layout
14076
14077
14078 \backslash
14079 baselineskip
14080 \end_layout
14081
14082 \end_inset
14083
14084
14085 \end_layout
14086
14087 \end_inset
14088
14089
14090 \size small
14091 On the evening of the crime, he returned from the club exactly at ten.
14092  His mother and sister were out spending the evening with a relation.
14093  The servant deposed that she heard him enter the front room on the second
14094  floor, generally used as his sitting-room.
14095  She had lit a fire there, and as it smoked she had opened the window.
14096  No sound was heard from the room until eleven-twenty, the hour of the return
14097  of Lady Maynooth and her daughter.
14098  Desiring to say good-night, she attempted to enter her son's room.
14099  The door was locked on the inside, and no answer could be got to their
14100  cries and knocking.
14101  Help was obtained, and the door forced.
14102  The unfortunate young man was found lying near the table.
14103  His head had been horribly mutilated by an expanding revolver bullet, but
14104  no weapon of any sort was to be found in the room.
14105 \end_layout
14106
14107 \end_inset
14108
14109
14110 \end_layout
14111
14112 \begin_layout Subsubsection
14113 Surrounding Space
14114 \end_layout
14115
14116 \begin_layout Standard
14117 The amount of space before and after multiple columns can be changed by
14118  changing the length 
14119 \series bold
14120
14121 \backslash
14122 multicolsep
14123 \series default
14124 .
14125  For example the command
14126 \end_layout
14127
14128 \begin_layout Standard
14129
14130 \series bold
14131
14132 \backslash
14133 setlength{
14134 \backslash
14135 multicolsep}{3cm}
14136 \end_layout
14137
14138 \begin_layout Standard
14139 in \SpecialChar TeX
14140  Code changes its value to 3
14141 \begin_inset space \thinspace{}
14142 \end_inset
14143
14144 cm.
14145  The change must be made before the multiple columns' start.
14146  The predefined value is 13
14147 \begin_inset space \thinspace{}
14148 \end_inset
14149
14150 pt.
14151 \end_layout
14152
14153 \begin_layout Standard
14154 For this example 
14155 \series bold
14156
14157 \backslash
14158 multicolsep
14159 \series default
14160  was set to 2.5
14161 \begin_inset space \thinspace{}
14162 \end_inset
14163
14164 cm:
14165 \end_layout
14166
14167 \begin_layout Standard
14168 \begin_inset ERT
14169 status open
14170
14171 \begin_layout Plain Layout
14172
14173
14174 \backslash
14175 setlength{
14176 \backslash
14177 multicolsep}{2.5cm}
14178 \end_layout
14179
14180 \end_inset
14181
14182
14183 \end_layout
14184
14185 \begin_layout Standard
14186 \begin_inset Flex Multiple Columns
14187 status open
14188
14189 \begin_layout Plain Layout
14190
14191 \size small
14192 All day I turned these facts over in my mind, endeavouring to hit upon some
14193  theory which could reconcile them all, and to find that line of least resistanc
14194 e which my poor friend had declared to be the starting-point of every investigat
14195 ion.
14196  I confess that I made little progress.
14197  In the evening I strolled across the Park, and found myself about six o'clock
14198  at the Oxford Street end of Park Lane.
14199  A group of loafers upon the pavements, all staring up at a particular window,
14200  directed me to the house which I had come to see.
14201  A tall, thin man with coloured glasses, whom I strongly suspected of being
14202  a plain-clothes detective, was pointing out some theory of his own, while
14203  the others crowded round to listen to what he said.
14204  I got as near him as I could, but his observations seemed to me to be absurd,
14205  so I withdrew again in some disgust.
14206  As I did so I struck against an elderly, deformed man, who had been behind
14207  me, and I knocked down several books which he was carrying.
14208 \end_layout
14209
14210 \end_inset
14211
14212
14213 \end_layout
14214
14215 \begin_layout Standard
14216 \begin_inset Note Greyedout
14217 status open
14218
14219 \begin_layout Plain Layout
14220
14221 \series bold
14222 Note:
14223 \series default
14224  The values you set with 
14225 \series bold
14226
14227 \backslash
14228 setlength
14229 \series default
14230  will be used for all following multiple columns until you change them again.
14231 \end_layout
14232
14233 \end_inset
14234
14235
14236 \end_layout
14237
14238 \begin_layout Standard
14239 \begin_inset ERT
14240 status collapsed
14241
14242 \begin_layout Plain Layout
14243
14244
14245 \backslash
14246 setlength{
14247 \backslash
14248 multicolsep}{13pt}
14249 \end_layout
14250
14251 \end_inset
14252
14253
14254 \begin_inset Note Note
14255 status collapsed
14256
14257 \begin_layout Plain Layout
14258 go back to the default
14259 \end_layout
14260
14261 \end_inset
14262
14263
14264 \end_layout
14265
14266 \begin_layout Standard
14267 \begin_inset Newpage newpage
14268 \end_inset
14269
14270
14271 \end_layout
14272
14273 \begin_layout Subsubsection
14274 Column Breaks
14275 \end_layout
14276
14277 \begin_layout Standard
14278 A column break can be forced by inserting the command 
14279 \series bold
14280
14281 \backslash
14282 columnbreak{}
14283 \series default
14284  as \SpecialChar TeX
14285  Code to that position in the text where the column should be broken.
14286  Note that this leads in most cases to whitespace in the text.
14287 \begin_inset Newline newline
14288 \end_inset
14289
14290 Here is an example:
14291 \end_layout
14292
14293 \begin_layout Standard
14294 \begin_inset Flex Multiple Columns
14295 status open
14296
14297 \begin_layout Plain Layout
14298
14299 \size small
14300 \begin_inset Quotes eld
14301 \end_inset
14302
14303 You're surprised to see me, sir,
14304 \begin_inset Quotes erd
14305 \end_inset
14306
14307  said he, in a strange, croaking voice.
14308 \end_layout
14309
14310 \begin_layout Plain Layout
14311
14312 \size small
14313 I acknowledged that I was.
14314 \end_layout
14315
14316 \begin_layout Plain Layout
14317
14318 \size small
14319 \begin_inset Quotes eld
14320 \end_inset
14321
14322 Well, I've a conscience, sir, and when I chanced to see you go into this
14323  house, as I came hobbling after you, I thought to myself, I'll just step
14324  in and see that kind gentleman, and tell him that if I was a bit gruff
14325  in my manner there was not any harm meant, and that I am much obliged to
14326  him for picking up my books.
14327 \begin_inset Quotes erd
14328 \end_inset
14329
14330
14331 \end_layout
14332
14333 \begin_layout Plain Layout
14334
14335 \size small
14336 \begin_inset Quotes eld
14337 \end_inset
14338
14339 You make too much of a trifle,
14340 \begin_inset Quotes erd
14341 \end_inset
14342
14343  said I.
14344  
14345 \begin_inset Quotes eld
14346 \end_inset
14347
14348 May I ask how you knew who I was?
14349 \begin_inset Quotes erd
14350 \end_inset
14351
14352  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
14353 \begin_inset ERT
14354 status collapsed
14355
14356 \begin_layout Plain Layout
14357
14358
14359 \backslash
14360 columnbreak{}
14361 \end_layout
14362
14363 \end_inset
14364
14365
14366 \end_layout
14367
14368 \begin_layout Plain Layout
14369
14370 \size small
14371 \begin_inset Quotes eld
14372 \end_inset
14373
14374 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14375  you'll find my little bookshop at the corner of Church Street, and very
14376  happy to see you, I am sure.
14377  Maybe you collect yourself, sir.
14378  Here's 
14379 \noun on
14380 British
14381 \begin_inset space ~
14382 \end_inset
14383
14384 Birds
14385 \noun default
14386 , and 
14387 \noun on
14388 Catullus
14389 \noun default
14390 , and 
14391 \noun on
14392 The Holy War
14393 \noun default
14394 –a bargain, every one of them.
14395  With five volumes you could just fill that gap on that second shelf.
14396  It looks untidy, does it not, sir?
14397 \begin_inset Quotes erd
14398 \end_inset
14399
14400
14401 \end_layout
14402
14403 \end_inset
14404
14405
14406 \end_layout
14407
14408 \begin_layout Subsubsection
14409 Column Separation
14410 \end_layout
14411
14412 \begin_layout Standard
14413 The width of the columns is automatically calculated, but you can modify
14414  the space between the columns.
14415  This is done by changing the length 
14416 \series bold
14417
14418 \backslash
14419 columnsep
14420 \series default
14421 .
14422  Its predefined value is 10
14423 \begin_inset space \thinspace{}
14424 \end_inset
14425
14426 pt.
14427  Here is an example where 
14428 \series bold
14429
14430 \backslash
14431 columnsep
14432 \series default
14433  is set to 3
14434 \begin_inset space \thinspace{}
14435 \end_inset
14436
14437 cm:
14438 \end_layout
14439
14440 \begin_layout Standard
14441 \begin_inset ERT
14442 status open
14443
14444 \begin_layout Plain Layout
14445
14446
14447 \backslash
14448 setlength{
14449 \backslash
14450 columnsep}{3cm}
14451 \end_layout
14452
14453 \end_inset
14454
14455
14456 \end_layout
14457
14458 \begin_layout Standard
14459 \begin_inset Flex Multiple Columns
14460 status open
14461
14462 \begin_layout Plain Layout
14463
14464 \size small
14465 My observations of No.
14466 \begin_inset space \space{}
14467 \end_inset
14468
14469 427 Park Lane did little to clear up the problem in which I was interested.
14470  The house was separated from the street by a low wall and railing, the
14471  whole not more than five feet high.
14472  It was perfectly easy, therefore, for anyone to get into the garden, but
14473  the window was entirely inaccessible, since there was no water pipe or
14474  anything which could help the most active man to climb it.
14475  More puzzled than ever, I retraced my steps to Kensington.
14476  I had not been in my study five minutes when the maid entered to say that
14477  a person desired to see me.
14478  To my astonishment it was none other than my strange old book collector,
14479  his sharp, wizened face peering out from a frame of white hair, and his
14480  precious volumes, a dozen of them at least, wedged under his right arm.
14481 \end_layout
14482
14483 \end_inset
14484
14485
14486 \end_layout
14487
14488 \begin_layout Standard
14489 \begin_inset ERT
14490 status collapsed
14491
14492 \begin_layout Plain Layout
14493
14494
14495 \backslash
14496 setlength{
14497 \backslash
14498 columnsep}{10pt}
14499 \end_layout
14500
14501 \end_inset
14502
14503
14504 \begin_inset Note Note
14505 status collapsed
14506
14507 \begin_layout Plain Layout
14508 go back to the default
14509 \end_layout
14510
14511 \end_inset
14512
14513
14514 \end_layout
14515
14516 \begin_layout Subsubsection
14517 Vertical Lines
14518 \end_layout
14519
14520 \begin_layout Standard
14521 Between the columns a rule with a width of the length 
14522 \series bold
14523
14524 \backslash
14525 columnseprule
14526 \series default
14527  is placed.
14528  If this rule width is set to 0
14529 \begin_inset space \thinspace{}
14530 \end_inset
14531
14532 pt (this is the default), the rule is suppressed.
14533  In the following example the rule is 2
14534 \begin_inset space \thinspace{}
14535 \end_inset
14536
14537 pt wide:
14538 \end_layout
14539
14540 \begin_layout Standard
14541 \begin_inset ERT
14542 status open
14543
14544 \begin_layout Plain Layout
14545
14546
14547 \backslash
14548 setlength{
14549 \backslash
14550 columnseprule}{2pt}
14551 \end_layout
14552
14553 \end_inset
14554
14555
14556 \end_layout
14557
14558 \begin_layout Standard
14559 \begin_inset Flex Multiple Columns
14560 status open
14561
14562 \begin_layout Plain Layout
14563
14564 \size small
14565 \begin_inset Quotes eld
14566 \end_inset
14567
14568 You're surprised to see me, sir,
14569 \begin_inset Quotes erd
14570 \end_inset
14571
14572  said he, in a strange, croaking voice.
14573 \end_layout
14574
14575 \begin_layout Plain Layout
14576
14577 \size small
14578 I acknowledged that I was.
14579 \end_layout
14580
14581 \begin_layout Plain Layout
14582
14583 \size small
14584 \begin_inset Quotes eld
14585 \end_inset
14586
14587 Well, I've a conscience, sir, and when I chanced to see you go into this
14588  house, as I came hobbling after you, I thought to myself, I'll just step
14589  in and see that kind gentleman, and tell him that if I was a bit gruff
14590  in my manner there was not any harm meant, and that I am much obliged to
14591  him for picking up my books.
14592 \begin_inset Quotes erd
14593 \end_inset
14594
14595
14596 \end_layout
14597
14598 \begin_layout Plain Layout
14599
14600 \size small
14601 \begin_inset Quotes eld
14602 \end_inset
14603
14604 You make too much of a trifle,
14605 \begin_inset Quotes erd
14606 \end_inset
14607
14608  said I.
14609  
14610 \begin_inset Quotes eld
14611 \end_inset
14612
14613 May I ask how you knew who I was?
14614 \begin_inset Quotes erd
14615 \end_inset
14616
14617
14618 \end_layout
14619
14620 \begin_layout Plain Layout
14621
14622 \size small
14623 \begin_inset Quotes eld
14624 \end_inset
14625
14626 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14627  you'll find my little bookshop at the corner of Church Street, and very
14628  happy to see you, I am sure.
14629  Maybe you collect yourself, sir.
14630  Here's 
14631 \noun on
14632 British
14633 \begin_inset space ~
14634 \end_inset
14635
14636 Birds
14637 \noun default
14638 , and 
14639 \noun on
14640 Catullus
14641 \noun default
14642 , and 
14643 \noun on
14644 The Holy War
14645 \noun default
14646 –a bargain, every one of them.
14647  With five volumes you could just fill that gap on that second shelf.
14648  It looks untidy, does it not, sir?
14649 \begin_inset Quotes erd
14650 \end_inset
14651
14652
14653 \end_layout
14654
14655 \end_inset
14656
14657
14658 \end_layout
14659
14660 \begin_layout Standard
14661 \begin_inset VSpace defskip
14662 \end_inset
14663
14664
14665 \end_layout
14666
14667 \begin_layout Standard
14668 The rule can be colored by redefining the command 
14669 \series bold
14670
14671 \backslash
14672 columnseprulecolor
14673 \series default
14674 .
14675  This is done by inserting the command
14676 \begin_inset Newline newline
14677 \end_inset
14678
14679
14680 \series bold
14681
14682 \backslash
14683 renewcommand{
14684 \backslash
14685 columnseprulecolor}{
14686 \backslash
14687 color{red}}
14688 \series default
14689
14690 \begin_inset Newline newline
14691 \end_inset
14692
14693 as \SpecialChar TeX
14694  Code before the multicolumn inset.
14695  Replace 
14696 \series bold
14697 red
14698 \series default
14699  in this command by a color of your choice.
14700  You can use all pre- and self-defined colors.
14701  See the 
14702 \emph on
14703 EmbeddedObjects
14704 \emph default
14705  manual, section 
14706 \emph on
14707 Colored
14708 \begin_inset space ~
14709 \end_inset
14710
14711 Tables
14712 \emph default
14713  for more information about pre- and self-defined colors.
14714  To go back to the default color insert the command
14715 \begin_inset Newline newline
14716 \end_inset
14717
14718
14719 \series bold
14720
14721 \backslash
14722 renewcommand{
14723 \backslash
14724 columnseprulecolor}{
14725 \backslash
14726 normalcolor}
14727 \series default
14728
14729 \begin_inset Newline newline
14730 \end_inset
14731
14732 Here is the example with a cyan rule and 1
14733 \begin_inset space \thinspace{}
14734 \end_inset
14735
14736 cm column separation:
14737 \end_layout
14738
14739 \begin_layout Standard
14740 \begin_inset ERT
14741 status open
14742
14743 \begin_layout Plain Layout
14744
14745
14746 \backslash
14747 setlength{
14748 \backslash
14749 columnsep}{1cm}
14750 \end_layout
14751
14752 \begin_layout Plain Layout
14753
14754
14755 \backslash
14756 renewcommand{
14757 \backslash
14758 columnseprulecolor}{
14759 \backslash
14760 color{cyan}}
14761 \end_layout
14762
14763 \end_inset
14764
14765
14766 \end_layout
14767
14768 \begin_layout Standard
14769 \begin_inset Flex Multiple Columns
14770 status open
14771
14772 \begin_layout Plain Layout
14773
14774 \size small
14775 \begin_inset Quotes eld
14776 \end_inset
14777
14778 You're surprised to see me, sir,
14779 \begin_inset Quotes erd
14780 \end_inset
14781
14782  said he, in a strange, croaking voice.
14783 \end_layout
14784
14785 \begin_layout Plain Layout
14786
14787 \size small
14788 I acknowledged that I was.
14789 \end_layout
14790
14791 \begin_layout Plain Layout
14792
14793 \size small
14794 \begin_inset Quotes eld
14795 \end_inset
14796
14797 Well, I've a conscience, sir, and when I chanced to see you go into this
14798  house, as I came hobbling after you, I thought to myself, I'll just step
14799  in and see that kind gentleman, and tell him that if I was a bit gruff
14800  in my manner there was not any harm meant, and that I am much obliged to
14801  him for picking up my books.
14802 \begin_inset Quotes erd
14803 \end_inset
14804
14805
14806 \end_layout
14807
14808 \begin_layout Plain Layout
14809
14810 \size small
14811 \begin_inset Quotes eld
14812 \end_inset
14813
14814 You make too much of a trifle,
14815 \begin_inset Quotes erd
14816 \end_inset
14817
14818  said I.
14819  
14820 \begin_inset Quotes eld
14821 \end_inset
14822
14823 May I ask how you knew who I was?
14824 \begin_inset Quotes erd
14825 \end_inset
14826
14827
14828 \end_layout
14829
14830 \begin_layout Plain Layout
14831
14832 \size small
14833 \begin_inset Quotes eld
14834 \end_inset
14835
14836 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14837  you'll find my little bookshop at the corner of Church Street, and very
14838  happy to see you, I am sure.
14839  Maybe you collect yourself, sir.
14840  Here's 
14841 \noun on
14842 British
14843 \begin_inset space ~
14844 \end_inset
14845
14846 Birds
14847 \noun default
14848 , and 
14849 \noun on
14850 Catullus
14851 \noun default
14852 , and 
14853 \noun on
14854 The Holy War
14855 \noun default
14856 –a bargain, every one of them.
14857  With five volumes you could just fill that gap on that second shelf.
14858  It looks untidy, does it not, sir?
14859 \begin_inset Quotes erd
14860 \end_inset
14861
14862
14863 \end_layout
14864
14865 \end_inset
14866
14867
14868 \end_layout
14869
14870 \begin_layout Standard
14871 \begin_inset ERT
14872 status collapsed
14873
14874 \begin_layout Plain Layout
14875
14876
14877 \backslash
14878 setlength{
14879 \backslash
14880 columnseprule}{0pt}
14881 \end_layout
14882
14883 \begin_layout Plain Layout
14884
14885
14886 \backslash
14887 renewcommand{
14888 \backslash
14889 columnseprulecolor}{
14890 \backslash
14891 normalcolor}
14892 \end_layout
14893
14894 \end_inset
14895
14896
14897 \begin_inset Note Note
14898 status collapsed
14899
14900 \begin_layout Plain Layout
14901 go back to the default
14902 \end_layout
14903
14904 \end_inset
14905
14906
14907 \end_layout
14908
14909 \begin_layout Chapter
14910
14911 \change_inserted 893223064 1464852301
14912 Text formatting
14913 \end_layout
14914
14915 \begin_layout Section
14916 Non-standard Paragraph Shapes
14917 \end_layout
14918
14919 \begin_layout Standard
14920 \noindent
14921 \SpecialChar LaTeX
14922  as well as any other text processor uses by default rectangular paragraphs.
14923  For special cases like for example posters, invitation cards or poems you
14924  can modify the paragraph shape to one of your choice.
14925  This can be done by using the \SpecialChar LaTeX
14926 -package 
14927 \series bold
14928 shapepar
14929 \series default
14930  which is loaded by using in the document settings the module 
14931 \family sans
14932 Custom paragraph shapes
14933 \family default
14934 .
14935 \end_layout
14936
14937 \begin_layout Subsection
14938 Predefined shapes
14939 \end_layout
14940
14941 \begin_layout Standard
14942
14943 \series bold
14944 shapepar
14945 \series default
14946  provides the following shapes:
14947 \end_layout
14948
14949 \begin_layout Standard
14950 \begin_inset Tabular
14951 <lyxtabular version="3" rows="13" columns="3">
14952 <features booktabs="true" islongtable="true" longtabularalignment="center">
14953 <column alignment="center" valignment="middle" width="16col%">
14954 <column alignment="center" valignment="middle" width="40col%">
14955 <column alignment="center" valignment="middle" width="35col%">
14956 <row endhead="true">
14957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14958 \begin_inset Text
14959
14960 \begin_layout Plain Layout
14961 Name
14962 \end_layout
14963
14964 \end_inset
14965 </cell>
14966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14967 \begin_inset Text
14968
14969 \begin_layout Plain Layout
14970 Description
14971 \end_layout
14972
14973 \end_inset
14974 </cell>
14975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14976 \begin_inset Text
14977
14978 \begin_layout Plain Layout
14979 Annotation
14980 \end_layout
14981
14982 \end_inset
14983 </cell>
14984 </row>
14985 <row>
14986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14987 \begin_inset Text
14988
14989 \begin_layout Plain Layout
14990 CDlabel
14991 \end_layout
14992
14993 \end_inset
14994 </cell>
14995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14996 \begin_inset Text
14997
14998 \begin_layout Plain Layout
14999 Circle with circular hole (in the size of a CD/DVD)
15000 \end_layout
15001
15002 \end_inset
15003 </cell>
15004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15005 \begin_inset Text
15006
15007 \begin_layout Plain Layout
15008 Cannot be scaled, take care there is not too much text
15009 \end_layout
15010
15011 \end_inset
15012 </cell>
15013 </row>
15014 <row>
15015 <cell alignment="center" valignment="top" topline="true" usebox="none">
15016 \begin_inset Text
15017
15018 \begin_layout Plain Layout
15019 Circle
15020 \end_layout
15021
15022 \end_inset
15023 </cell>
15024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15025 \begin_inset Text
15026
15027 \begin_layout Plain Layout
15028 Circle
15029 \end_layout
15030
15031 \end_inset
15032 </cell>
15033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15034 \begin_inset Text
15035
15036 \begin_layout Plain Layout
15037 Fragile, calculation might fail
15038 \end_layout
15039
15040 \end_inset
15041 </cell>
15042 </row>
15043 <row>
15044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15045 \begin_inset Text
15046
15047 \begin_layout Plain Layout
15048 Diamond
15049 \end_layout
15050
15051 \end_inset
15052 </cell>
15053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15054 \begin_inset Text
15055
15056 \begin_layout Plain Layout
15057 Rhomboid (symbolizing a 
15058 \begin_inset Quotes eld
15059 \end_inset
15060
15061 diamond
15062 \begin_inset Quotes erd
15063 \end_inset
15064
15065 )
15066 \end_layout
15067
15068 \end_inset
15069 </cell>
15070 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15071 \begin_inset Text
15072
15073 \begin_layout Plain Layout
15074 -
15075 \end_layout
15076
15077 \end_inset
15078 </cell>
15079 </row>
15080 <row>
15081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15082 \begin_inset Text
15083
15084 \begin_layout Plain Layout
15085 Heart
15086 \end_layout
15087
15088 \end_inset
15089 </cell>
15090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15091 \begin_inset Text
15092
15093 \begin_layout Plain Layout
15094 Heart-like shape
15095 \end_layout
15096
15097 \end_inset
15098 </cell>
15099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15100 \begin_inset Text
15101
15102 \begin_layout Plain Layout
15103 -
15104 \end_layout
15105
15106 \end_inset
15107 </cell>
15108 </row>
15109 <row>
15110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15111 \begin_inset Text
15112
15113 \begin_layout Plain Layout
15114 Hexagon
15115 \end_layout
15116
15117 \end_inset
15118 </cell>
15119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15120 \begin_inset Text
15121
15122 \begin_layout Plain Layout
15123 Hexagon
15124 \end_layout
15125
15126 \end_inset
15127 </cell>
15128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15129 \begin_inset Text
15130
15131 \begin_layout Plain Layout
15132 -
15133 \end_layout
15134
15135 \end_inset
15136 </cell>
15137 </row>
15138 <row>
15139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15140 \begin_inset Text
15141
15142 \begin_layout Plain Layout
15143 Nut
15144 \end_layout
15145
15146 \end_inset
15147 </cell>
15148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15149 \begin_inset Text
15150
15151 \begin_layout Plain Layout
15152 Nut for bolt (hexagon with circular hole)
15153 \end_layout
15154
15155 \end_inset
15156 </cell>
15157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15158 \begin_inset Text
15159
15160 \begin_layout Plain Layout
15161 -
15162 \end_layout
15163
15164 \end_inset
15165 </cell>
15166 </row>
15167 <row>
15168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15169 \begin_inset Text
15170
15171 \begin_layout Plain Layout
15172 Square
15173 \end_layout
15174
15175 \end_inset
15176 </cell>
15177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15178 \begin_inset Text
15179
15180 \begin_layout Plain Layout
15181 Square
15182 \end_layout
15183
15184 \end_inset
15185 </cell>
15186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15187 \begin_inset Text
15188
15189 \begin_layout Plain Layout
15190 -
15191 \end_layout
15192
15193 \end_inset
15194 </cell>
15195 </row>
15196 <row>
15197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15198 \begin_inset Text
15199
15200 \begin_layout Plain Layout
15201 Star
15202 \end_layout
15203
15204 \end_inset
15205 </cell>
15206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15207 \begin_inset Text
15208
15209 \begin_layout Plain Layout
15210 Five-point star
15211 \end_layout
15212
15213 \end_inset
15214 </cell>
15215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15216 \begin_inset Text
15217
15218 \begin_layout Plain Layout
15219 -
15220 \end_layout
15221
15222 \end_inset
15223 </cell>
15224 </row>
15225 <row>
15226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15227 \begin_inset Text
15228
15229 \begin_layout Plain Layout
15230 Candle
15231 \end_layout
15232
15233 \end_inset
15234 </cell>
15235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15236 \begin_inset Text
15237
15238 \begin_layout Plain Layout
15239 Burning candle
15240 \end_layout
15241
15242 \end_inset
15243 </cell>
15244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15245 \begin_inset Text
15246
15247 \begin_layout Plain Layout
15248 -
15249 \end_layout
15250
15251 \end_inset
15252 </cell>
15253 </row>
15254 <row>
15255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15256 \begin_inset Text
15257
15258 \begin_layout Plain Layout
15259 Drop down/up
15260 \end_layout
15261
15262 \end_inset
15263 </cell>
15264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15265 \begin_inset Text
15266
15267 \begin_layout Plain Layout
15268 Normal/reversed rain drop
15269 \end_layout
15270
15271 \end_inset
15272 </cell>
15273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15274 \begin_inset Text
15275
15276 \begin_layout Plain Layout
15277 Fragile, calculation might fail
15278 \end_layout
15279
15280 \end_inset
15281 </cell>
15282 </row>
15283 <row>
15284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15285 \begin_inset Text
15286
15287 \begin_layout Plain Layout
15288 \SpecialChar TeX
15289
15290 \end_layout
15291
15292 \end_inset
15293 </cell>
15294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15295 \begin_inset Text
15296
15297 \begin_layout Plain Layout
15298 The \SpecialChar TeX
15299  logo
15300 \end_layout
15301
15302 \end_inset
15303 </cell>
15304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15305 \begin_inset Text
15306
15307 \begin_layout Plain Layout
15308 -
15309 \end_layout
15310
15311 \end_inset
15312 </cell>
15313 </row>
15314 <row>
15315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15316 \begin_inset Text
15317
15318 \begin_layout Plain Layout
15319 Triangle up/down/
15320 \begin_inset Newline newline
15321 \end_inset
15322
15323 left/right
15324 \end_layout
15325
15326 \end_inset
15327 </cell>
15328 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15329 \begin_inset Text
15330
15331 \begin_layout Plain Layout
15332 Triangles in different orientations
15333 \end_layout
15334
15335 \end_inset
15336 </cell>
15337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15338 \begin_inset Text
15339
15340 \begin_layout Plain Layout
15341 -
15342 \end_layout
15343
15344 \end_inset
15345 </cell>
15346 </row>
15347 </lyxtabular>
15348
15349 \end_inset
15350
15351
15352 \end_layout
15353
15354 \begin_layout Standard
15355 To use a shape for your paragraph, simply select it in \SpecialChar LyX
15356 's pull-down box
15357  for environments in the toolbar.
15358 \end_layout
15359
15360 \begin_layout Standard
15361 \begin_inset Newpage newpage
15362 \end_inset
15363
15364
15365 \end_layout
15366
15367 \begin_layout Standard
15368 Here is an example paragraph in the shape of a nut:
15369 \end_layout
15370
15371 \begin_layout Standard
15372 \begin_inset VSpace bigskip
15373 \end_inset
15374
15375
15376 \end_layout
15377
15378 \begin_layout Nut
15379
15380 \lang latin
15381 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15382  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15383  voluptua.
15384  At vero eos et accusam et justo duo dolores et ea rebum.
15385  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15386  sit amet.
15387  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15388  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15389  voluptua.
15390 \end_layout
15391
15392 \begin_layout Standard
15393 \begin_inset VSpace bigskip
15394 \end_inset
15395
15396
15397 \end_layout
15398
15399 \begin_layout Standard
15400 \begin_inset Note Greyedout
15401 status open
15402
15403 \begin_layout Plain Layout
15404
15405 \series bold
15406 Note
15407 \series default
15408 : shapepar paragraphs cannot run over a page break.
15409 \end_layout
15410
15411 \end_inset
15412
15413
15414 \end_layout
15415
15416 \begin_layout Standard
15417 \begin_inset VSpace bigskip
15418 \end_inset
15419
15420
15421 \end_layout
15422
15423 \begin_layout Standard
15424
15425 \series bold
15426 shapepar
15427 \series default
15428  takes care that the shape will always be preserved, no matter how much
15429  text is in the paragraph.
15430  Therefore the paragraph size changes with the amount of contained text.
15431  This can lead to paragraph sizes exceeding the page margins.
15432  To demonstrate the size scaling, here is the same example paragraph but
15433  with twice as much text:
15434 \end_layout
15435
15436 \begin_layout Standard
15437 \begin_inset Newpage newpage
15438 \end_inset
15439
15440
15441 \end_layout
15442
15443 \begin_layout Nut
15444
15445 \lang latin
15446 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15447  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15448  voluptua.
15449  At vero eos et accusam et justo duo dolores et ea rebum.
15450  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15451  sit amet.
15452  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15453  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15454  voluptua.
15455  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15456  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15457  voluptua.
15458  At vero eos et accusam et justo duo dolores et ea rebum.
15459  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15460  sit amet.
15461  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15462  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15463  voluptua.
15464 \end_layout
15465
15466 \begin_layout Standard
15467 \begin_inset VSpace bigskip
15468 \end_inset
15469
15470
15471 \end_layout
15472
15473 \begin_layout Standard
15474 An exception is the shape 
15475 \family sans
15476 CDlabel
15477 \family default
15478 .
15479  It cannot be scaled because it must fit the size of a CD/DVD.
15480  Therefore the amount of text that fits into the shape is limited.
15481 \begin_inset Newline newline
15482 \end_inset
15483
15484 The 
15485 \family sans
15486 drop
15487 \family default
15488  shapes and the 
15489 \family sans
15490 circle
15491 \family default
15492  shape are fragile, meaning that the calculation of their size can fail,
15493  depending on the amount of text.
15494  You will then get the \SpecialChar LaTeX
15495  error 
15496 \begin_inset Quotes eld
15497 \end_inset
15498
15499 Arithmetic overflow
15500 \begin_inset Quotes erd
15501 \end_inset
15502
15503 .
15504  In this case one can try to remove or add some text; if nothing works one
15505  has to use another shape.
15506 \end_layout
15507
15508 \begin_layout Standard
15509 \begin_inset VSpace bigskip
15510 \end_inset
15511
15512
15513 \end_layout
15514
15515 \begin_layout Standard
15516 For shapes with tips you will maybe see that \SpecialChar LaTeX
15517 's hyphenation routine fails
15518  for text in the tips.
15519  Therefore it is often necessary to add hyphenation points 
15520 \family sans
15521 (
15522 \begin_inset Info
15523 type  "shortcut"
15524 arg   "specialchar-insert hyphenation"
15525 \end_inset
15526
15527
15528 \family default
15529 ) to the corresponding text parts.
15530 \end_layout
15531
15532 \begin_layout Standard
15533 \begin_inset VSpace bigskip
15534 \end_inset
15535
15536
15537 \end_layout
15538
15539 \begin_layout Standard
15540 Shapepar paragraphs are either always centered or placed on the page so
15541  that their left border touches the left page margin.
15542  You can therefore not use the paragraph dialog to align such paragraphs.
15543  A solution is to put the paragraph into a minipage or parbox and align
15544  the box.
15545  The problem is hereby to find the right width for the box.
15546  Because if it is too wide and you center the box, the paragraph is not
15547  centered too because it sticks at the left side of the box.
15548  So you might have to play a bit with the width until it fits.
15549  Here are two heart-shaped paragraphs, the first one is not aligned, the
15550  second one is right-aligned:
15551 \end_layout
15552
15553 \begin_layout Standard
15554 \begin_inset Newpage newpage
15555 \end_inset
15556
15557
15558 \end_layout
15559
15560 \begin_layout Heart
15561 \noindent
15562
15563 \lang latin
15564 Lo\SpecialChar softhyphen
15565 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15566  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15567  voluptua.
15568  At vero eos et accusam et justo duo dolores et ea rebum.
15569  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15570  sit amet.
15571 \end_layout
15572
15573 \begin_layout Standard
15574 \begin_inset VSpace bigskip
15575 \end_inset
15576
15577
15578 \end_layout
15579
15580 \begin_layout Standard
15581 \noindent
15582 \align right
15583 \begin_inset Box Frameless
15584 position "t"
15585 hor_pos "c"
15586 has_inner_box 1
15587 inner_pos "t"
15588 use_parbox 1
15589 use_makebox 0
15590 width "42col%"
15591 special "none"
15592 height "1in"
15593 height_special "totalheight"
15594 thickness "0.4pt"
15595 separation "3pt"
15596 shadowsize "4pt"
15597 framecolor "black"
15598 backgroundcolor "none"
15599 status open
15600
15601 \begin_layout Heart
15602 \noindent
15603
15604 \lang latin
15605 Lo\SpecialChar softhyphen
15606 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15607  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15608  voluptua.
15609  At vero eos et accusam et justo duo dolores et ea rebum.
15610  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15611  sit amet.
15612 \end_layout
15613
15614 \end_inset
15615
15616
15617 \end_layout
15618
15619 \begin_layout Subsection
15620 Custom shapes
15621 \end_layout
15622
15623 \begin_layout Standard
15624 You can define any shape you want.
15625  Doing this manually is a lot of work because every coordinate must be specified.
15626  But there is a way to let the computer calculate the coordinates:
15627 \end_layout
15628
15629 \begin_layout Enumerate
15630 Install the program 
15631 \begin_inset CommandInset href
15632 LatexCommand href
15633 name "Jpgfdraw"
15634 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
15635
15636 \end_inset
15637
15638 .
15639 \end_layout
15640
15641 \begin_layout Enumerate
15642 In 
15643 \family sans
15644 Jpgfdraw
15645 \family default
15646  go to the menu 
15647 \family sans
15648 TeX/LaTeX\SpecialChar menuseparator
15649 Settings\SpecialChar menuseparator
15650 Set Normal Size
15651 \family default
15652  and select the font size you are using in your document.
15653  For example this document uses the size 12
15654 \begin_inset space \thinspace{}
15655 \end_inset
15656
15657 pt.
15658 \end_layout
15659
15660 \begin_layout Enumerate
15661 Draw a shape.
15662 \end_layout
15663
15664 \begin_layout Enumerate
15665 Use the menu 
15666 \family sans
15667 TeX/LaTeX\SpecialChar menuseparator
15668 Shapepar
15669 \family default
15670  to export the shape to coordinates.
15671  In the appearing dialog use either the outline of your shape for the coordinate
15672 s or the path itself.
15673 \begin_inset Foot
15674 status collapsed
15675
15676 \begin_layout Plain Layout
15677 For more information see 
15678 \begin_inset CommandInset href
15679 LatexCommand href
15680 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
15681
15682 \end_inset
15683
15684
15685 \end_layout
15686
15687 \end_inset
15688
15689
15690 \end_layout
15691
15692 \begin_layout Standard
15693 The coordinates are written into a \SpecialChar TeX
15694  file.
15695  To use it for your \SpecialChar LyX
15696  document
15697 \end_layout
15698
15699 \begin_layout Enumerate
15700 Place the cursor before the first character of your paragraph (or into a
15701  new empty one).
15702 \end_layout
15703
15704 \begin_layout Enumerate
15705 Open in \SpecialChar LyX
15706  the menu 
15707 \family sans
15708 Insert\SpecialChar menuseparator
15709 File\SpecialChar menuseparator
15710 Child
15711 \begin_inset space ~
15712 \end_inset
15713
15714 Document
15715 \family default
15716 , select the file and use 
15717 \family sans
15718 Input
15719 \family default
15720  as 
15721 \family sans
15722 Include Type.
15723 \end_layout
15724
15725 \begin_layout Standard
15726 \begin_inset VSpace defskip
15727 \end_inset
15728
15729
15730 \end_layout
15731
15732 \begin_layout Standard
15733 \begin_inset Note Greyedout
15734 status open
15735
15736 \begin_layout Plain Layout
15737
15738 \series bold
15739 Note
15740 \series default
15741 : The changed shape only applies to the current paragraph; everything is
15742  reset to normal for the next paragraph.
15743  Therefore the shape definition file must be input into every paragraph
15744  with the desired shape.
15745 \end_layout
15746
15747 \end_inset
15748
15749
15750 \end_layout
15751
15752 \begin_layout Standard
15753 \begin_inset VSpace bigskip
15754 \end_inset
15755
15756
15757 \end_layout
15758
15759 \begin_layout Standard
15760 Here is an example:
15761 \end_layout
15762
15763 \begin_layout Standard
15764 \begin_inset VSpace bigskip
15765 \end_inset
15766
15767
15768 \end_layout
15769
15770 \begin_layout Standard
15771 \begin_inset CommandInset include
15772 LatexCommand input
15773 filename "SpecialParagraphShape.tex"
15774
15775 \end_inset
15776
15777
15778 \lang latin
15779 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15780  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15781  voluptua.
15782  At vero eos et accusam et justo duo dolores et ea rebum.
15783  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15784  sit amet.
15785  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15786  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15787  voluptua.
15788 \end_layout
15789
15790 \begin_layout Standard
15791 \begin_inset VSpace bigskip
15792 \end_inset
15793
15794
15795 \end_layout
15796
15797 \begin_layout Standard
15798
15799 \series bold
15800 A tip:
15801 \series default
15802  to draw complexer shapes in 
15803 \family sans
15804 Jpgfdraw
15805 \family default
15806  you can draw the shape in a program of your choice and import the resulting
15807  image to 
15808 \family sans
15809 Jpgfdraw
15810 \family default
15811 .
15812  Then you only need to draw a line or spline along the outline of the image.
15813 \end_layout
15814
15815 \begin_layout Standard
15816 \begin_inset VSpace bigskip
15817 \end_inset
15818
15819
15820 \end_layout
15821
15822 \begin_layout Standard
15823 The module 
15824 \family sans
15825 Custom paragraph shapes
15826 \family default
15827  also provides the two commands 
15828 \family sans
15829 shapepar
15830 \family default
15831  and 
15832 \family sans
15833 Shapepar
15834 \family default
15835  which can be used to define custom shapes coordinate by coordinate.
15836 \begin_inset Foot
15837 status collapsed
15838
15839 \begin_layout Plain Layout
15840 These commands are internally used for all shapes described here.
15841 \end_layout
15842
15843 \end_inset
15844
15845  For information how these styles are used and about further customization
15846  possibilities, have a look at the documentation of the package 
15847 \series bold
15848 shapepar
15849 \series default
15850
15851 \begin_inset CommandInset citation
15852 LatexCommand cite
15853 key "shapepar"
15854
15855 \end_inset
15856
15857 .
15858 \end_layout
15859
15860 \begin_layout Bibliography
15861 \begin_inset CommandInset bibitem
15862 LatexCommand bibitem
15863 key "multicol"
15864
15865 \end_inset
15866
15867 Documentation of the \SpecialChar LaTeX
15868 -package 
15869 \begin_inset CommandInset href
15870 LatexCommand href
15871 name "multicol"
15872 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
15873
15874 \end_inset
15875
15876
15877 \end_layout
15878
15879 \begin_layout Bibliography
15880 \begin_inset CommandInset bibitem
15881 LatexCommand bibitem
15882 key "shapepar"
15883
15884 \end_inset
15885
15886 Documentation of the \SpecialChar LaTeX
15887 -package 
15888 \begin_inset CommandInset href
15889 LatexCommand href
15890 name "shapepar"
15891 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
15892
15893 \end_inset
15894
15895
15896 \end_layout
15897
15898 \begin_layout Chapter
15899
15900 \change_inserted 893223064 1464852414
15901 Bibliographic databases
15902 \change_deleted 893223064 1464852406
15903 Supplemental Tools
15904 \change_unchanged
15905
15906 \end_layout
15907
15908 \begin_layout Section
15909 Customizing Bibliographies with Bib\SpecialChar TeX
15910
15911 \end_layout
15912
15913 \begin_layout Standard
15914 The most basic information about how to use Bib\SpecialChar TeX
15915  with \SpecialChar LyX
15916  is contained in the
15917  section 
15918 \emph on
15919 Bibliography databases (Bib\SpecialChar TeX
15920 )
15921 \emph default
15922  of the 
15923 \emph on
15924 User's Guide
15925 \emph default
15926 .
15927  The following subsections explain special bibliography features supported
15928  by \SpecialChar LyX
15929 .
15930 \end_layout
15931
15932 \begin_layout Subsection
15933 Alternative Citation Styles
15934 \end_layout
15935
15936 \begin_layout Standard
15937 Standard Bib\SpecialChar TeX
15938  uses numbers (e.
15939 \begin_inset space \thinspace{}
15940 \end_inset
15941
15942 g.
15943 \begin_inset space \space{}
15944 \end_inset
15945
15946
15947 \begin_inset Quotes eld
15948 \end_inset
15949
15950 [12]
15951 \begin_inset Quotes erd
15952 \end_inset
15953
15954 ) to refer to a cited work.
15955  However, in many scientific disciplines, other citation styles are in use.
15956  The most common one is the author-year style (e.
15957 \begin_inset space \thinspace{}
15958 \end_inset
15959
15960 g.
15961 \begin_inset space \space{}
15962 \end_inset
15963
15964
15965 \begin_inset Quotes eld
15966 \end_inset
15967
15968 Knuth 1984a
15969 \begin_inset Quotes erd
15970 \end_inset
15971
15972 ).
15973  \SpecialChar LyX
15974  supports two packages that provide this style, 
15975 \begin_inset Flex Code
15976 status collapsed
15977
15978 \begin_layout Plain Layout
15979 natbib
15980 \end_layout
15981
15982 \end_inset
15983
15984  and 
15985 \begin_inset Flex Code
15986 status collapsed
15987
15988 \begin_layout Plain Layout
15989 jurabib
15990 \end_layout
15991
15992 \end_inset
15993
15994 .
15995  Both packages have their pros and cons, which cannot be listed in detail.
15996  If you only want to have simple author-year (or author-numerical) style,
15997  or if you want to use one of the countless style files for 
15998 \begin_inset Flex Code
15999 status collapsed
16000
16001 \begin_layout Plain Layout
16002 natbib
16003 \end_layout
16004
16005 \end_inset
16006
16007 , then the established 
16008 \begin_inset Flex Code
16009 status collapsed
16010
16011 \begin_layout Plain Layout
16012 natbib
16013 \end_layout
16014
16015 \end_inset
16016
16017  package is probably your choice.
16018  If you need special features like short title references, ibidem etc., you
16019  might consider the 
16020 \begin_inset Flex Code
16021 status collapsed
16022
16023 \begin_layout Plain Layout
16024 jurabib
16025 \end_layout
16026
16027 \end_inset
16028
16029  package.
16030 \end_layout
16031
16032 \begin_layout Standard
16033 The handling of both packages in \SpecialChar LyX
16034  is basically the same.
16035  Go to 
16036 \begin_inset Flex Noun
16037 status collapsed
16038
16039 \begin_layout Plain Layout
16040 Document\SpecialChar menuseparator
16041 Settings
16042 \end_layout
16043
16044 \end_inset
16045
16046  and select under 
16047 \begin_inset Flex Noun
16048 status collapsed
16049
16050 \begin_layout Plain Layout
16051 Bibliography
16052 \end_layout
16053
16054 \end_inset
16055
16056  the option 
16057 \begin_inset Flex Noun
16058 status collapsed
16059
16060 \begin_layout Plain Layout
16061 Natbib
16062 \end_layout
16063
16064 \end_inset
16065
16066  or 
16067 \begin_inset Flex Noun
16068 status collapsed
16069
16070 \begin_layout Plain Layout
16071 Jurabib
16072 \end_layout
16073
16074 \end_inset
16075
16076 .
16077  With both packages, you will get some extra features in the citation dialog
16078  and you can select the style of the reference (
16079 \begin_inset Quotes eld
16080 \end_inset
16081
16082 Knuth 1984
16083 \begin_inset Quotes erd
16084 \end_inset
16085
16086
16087 \begin_inset Quotes eld
16088 \end_inset
16089
16090 Knuth (1984)
16091 \begin_inset Quotes erd
16092 \end_inset
16093
16094
16095 \begin_inset Quotes eld
16096 \end_inset
16097
16098 Knuth, 1984
16099 \begin_inset Quotes erd
16100 \end_inset
16101
16102
16103 \begin_inset Quotes eld
16104 \end_inset
16105
16106 1984
16107 \begin_inset Quotes erd
16108 \end_inset
16109
16110  etc.).
16111  Note that both packages need specifically designed style files.
16112  They both ship their own, but there are lots of additional style files,
16113  and there is even an interactive style file builder
16114 \begin_inset Foot
16115 status collapsed
16116
16117 \begin_layout Plain Layout
16118 See 
16119 \begin_inset Flex URL
16120 status open
16121
16122 \begin_layout Plain Layout
16123
16124 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
16125 \end_layout
16126
16127 \end_inset
16128
16129
16130 \end_layout
16131
16132 \end_inset
16133
16134  for 
16135 \begin_inset Flex Code
16136 status collapsed
16137
16138 \begin_layout Plain Layout
16139 natbib
16140 \end_layout
16141
16142 \end_inset
16143
16144 .
16145 \end_layout
16146
16147 \begin_layout Subsection
16148 Sectioned Bibliographies
16149 \end_layout
16150
16151 \begin_layout Standard
16152 Sometimes you might need to divide your bibliography into several sections.
16153  If you are for instance a historian, the possibility to separate sources
16154  and scientific works is most likely a 
16155 \begin_inset Quotes eld
16156 \end_inset
16157
16158 must have
16159 \begin_inset Quotes erd
16160 \end_inset
16161
16162 .
16163  Unfortunately, Bib\SpecialChar TeX
16164  itself does not allow you to do this.
16165  But with the help of some \SpecialChar LaTeX
16166  packages, Bib\SpecialChar TeX
16167  can be extended to fit your needs.
16168 \end_layout
16169
16170 \begin_layout Standard
16171 \SpecialChar LyX
16172  provides native support for one of these packages, 
16173 \family typewriter
16174 bibtopic
16175 \family default
16176 .
16177 \begin_inset Foot
16178 status collapsed
16179
16180 \begin_layout Plain Layout
16181 Available from 
16182 \begin_inset Flex URL
16183 status open
16184
16185 \begin_layout Plain Layout
16186
16187 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
16188 \end_layout
16189
16190 \end_inset
16191
16192
16193 \end_layout
16194
16195 \end_inset
16196
16197  The advantage of this package (compared to other packages like 
16198 \family typewriter
16199 multibib
16200 \family default
16201 ) is that you don't need to define new citation commands.
16202  Instead, you need to prepare different bibliographic databases which include
16203  the entries for the different sections of the bibliography.
16204  For example: If you want to divide your bibliography into the sections
16205  
16206 \begin_inset Quotes eld
16207 \end_inset
16208
16209 Sources
16210 \begin_inset Quotes erd
16211 \end_inset
16212
16213  and 
16214 \begin_inset Quotes eld
16215 \end_inset
16216
16217 Scientific works
16218 \begin_inset Quotes erd
16219 \end_inset
16220
16221 , you first need to create two bibliographic databases, e.
16222 \begin_inset space \thinspace{}
16223 \end_inset
16224
16225 g.
16226 \begin_inset space \space{}
16227 \end_inset
16228
16229
16230 \begin_inset Flex Code
16231 status collapsed
16232
16233 \begin_layout Plain Layout
16234 sources.bib
16235 \end_layout
16236
16237 \end_inset
16238
16239  and 
16240 \begin_inset Flex Code
16241 status collapsed
16242
16243 \begin_layout Plain Layout
16244 scientific.bib
16245 \end_layout
16246
16247 \end_inset
16248
16249 .
16250  
16251 \end_layout
16252
16253 \begin_layout Standard
16254 Go to 
16255 \begin_inset Flex Noun
16256 status collapsed
16257
16258 \begin_layout Plain Layout
16259 Document\SpecialChar menuseparator
16260 Settings
16261 \end_layout
16262
16263 \end_inset
16264
16265  and check under 
16266 \begin_inset Flex Noun
16267 status collapsed
16268
16269 \begin_layout Plain Layout
16270 Bibliography
16271 \end_layout
16272
16273 \end_inset
16274
16275  the option 
16276 \begin_inset Flex Noun
16277 status collapsed
16278
16279 \begin_layout Plain Layout
16280 Sectioned bibliography
16281 \end_layout
16282
16283 \end_inset
16284
16285 .
16286  Now you can insert multiple Bib\SpecialChar TeX
16287  bibliographies, one for each section of
16288  your bibliography.
16289  Returning to our example: Insert the Bib\SpecialChar TeX
16290  bibliography 
16291 \begin_inset Flex Code
16292 status collapsed
16293
16294 \begin_layout Plain Layout
16295 sources.bib
16296 \end_layout
16297
16298 \end_inset
16299
16300  and a second one for the database 
16301 \begin_inset Flex Code
16302 status collapsed
16303
16304 \begin_layout Plain Layout
16305 scientific.bib
16306 \end_layout
16307
16308 \end_inset
16309
16310 .
16311  You are free to use the same or different styles for each section.
16312  Additionally, you can choose if the bibliography section should contain
16313  
16314 \begin_inset Quotes eld
16315 \end_inset
16316
16317 all cited references
16318 \begin_inset Quotes erd
16319 \end_inset
16320
16321  of the specified database(s) (which is the default), 
16322 \begin_inset Quotes eld
16323 \end_inset
16324
16325 all uncited references
16326 \begin_inset Quotes erd
16327 \end_inset
16328
16329  or even 
16330 \begin_inset Quotes eld
16331 \end_inset
16332
16333 all references
16334 \begin_inset Quotes erd
16335 \end_inset
16336
16337 .
16338  This might be useful if you would like to separate your bibliography into
16339  three sections: 
16340 \begin_inset Quotes eld
16341 \end_inset
16342
16343 Cited sources
16344 \begin_inset Quotes erd
16345 \end_inset
16346
16347
16348 \begin_inset Quotes eld
16349 \end_inset
16350
16351 Uncited sources
16352 \begin_inset Quotes erd
16353 \end_inset
16354
16355 , and 
16356 \begin_inset Quotes eld
16357 \end_inset
16358
16359 Scientific works
16360 \begin_inset Quotes erd
16361 \end_inset
16362
16363 .
16364  The titles for the sections can be added as ordinary sections or subsections.
16365  Since 
16366 \begin_inset Flex Code
16367 status collapsed
16368
16369 \begin_layout Plain Layout
16370 bibtopic
16371 \end_layout
16372
16373 \end_inset
16374
16375  removes the bibliography title, you have to manually re-add that, too (as
16376  a chapter* or section*, for instance).
16377 \end_layout
16378
16379 \begin_layout Subsection
16380 Multiple Bibliographies
16381 \end_layout
16382
16383 \begin_layout Standard
16384 Multiple bibliographies, e.
16385 \begin_inset space \thinspace{}
16386 \end_inset
16387
16388 g.
16389 \begin_inset space \space{}
16390 \end_inset
16391
16392 a bibliography for each section or chapter of the document, are not supported
16393  by Bib\SpecialChar TeX
16394  itself.
16395  But the 
16396 \begin_inset Flex Code
16397 status collapsed
16398
16399 \begin_layout Plain Layout
16400 bibtopic
16401 \end_layout
16402
16403 \end_inset
16404
16405  package, which is used for the creation of sectioned bibliographies in
16406  \SpecialChar LyX
16407  (see the previous section), provides an easy way to solve this task, if
16408  you are willing to use some 
16409 \begin_inset Flex Noun
16410 status collapsed
16411
16412 \begin_layout Plain Layout
16413 \SpecialChar TeX
16414  Code
16415 \end_layout
16416
16417 \end_inset
16418
16419  (see section
16420 \begin_inset space ~
16421 \end_inset
16422
16423
16424 \begin_inset CommandInset ref
16425 LatexCommand ref
16426 reference "sec:Inserting-TeX-Code"
16427
16428 \end_inset
16429
16430 ).
16431 \begin_inset Foot
16432 status collapsed
16433
16434 \begin_layout Plain Layout
16435 An alternative approach is to use the 
16436 \begin_inset Flex Code
16437 status collapsed
16438
16439 \begin_layout Plain Layout
16440 chapterbib
16441 \end_layout
16442
16443 \end_inset
16444
16445  or 
16446 \begin_inset Flex Code
16447 status collapsed
16448
16449 \begin_layout Plain Layout
16450 bibunits
16451 \end_layout
16452
16453 \end_inset
16454
16455  package, respectively.
16456 \end_layout
16457
16458 \end_inset
16459
16460
16461 \end_layout
16462
16463 \begin_layout Standard
16464 First go to 
16465 \begin_inset Flex Noun
16466 status collapsed
16467
16468 \begin_layout Plain Layout
16469 Document\SpecialChar menuseparator
16470 Settings
16471 \end_layout
16472
16473 \end_inset
16474
16475  and under 
16476 \begin_inset Flex Noun
16477 status collapsed
16478
16479 \begin_layout Plain Layout
16480 Bibliography
16481 \end_layout
16482
16483 \end_inset
16484
16485  check 
16486 \begin_inset Flex Noun
16487 status collapsed
16488
16489 \begin_layout Plain Layout
16490 Sectioned bibliography
16491 \end_layout
16492
16493 \end_inset
16494
16495 .
16496  In the document, you have to enclose the sections, which shall contain
16497  their own bibliography (including the Bib\SpecialChar TeX
16498  bibliography itself), between
16499  
16500 \begin_inset Flex Code
16501 status collapsed
16502
16503 \begin_layout Plain Layout
16504
16505 \backslash
16506 begin{btUnit}
16507 \end_layout
16508
16509 \end_inset
16510
16511  and 
16512 \begin_inset Flex Code
16513 status collapsed
16514
16515 \begin_layout Plain Layout
16516
16517 \backslash
16518 end{btUnit}
16519 \end_layout
16520
16521 \end_inset
16522
16523  (those commands have to be inserted as \SpecialChar TeX
16524  code).
16525  The bibliography will contain all references that have been cited in the
16526  current 
16527 \begin_inset Flex Code
16528 status collapsed
16529
16530 \begin_layout Plain Layout
16531 btUnit
16532 \end_layout
16533
16534 \end_inset
16535
16536 .
16537  
16538 \series bold
16539 Note:
16540 \series default
16541  If you are using this approach, then every citation reference has to be
16542  inside some 
16543 \begin_inset Flex Code
16544 status collapsed
16545
16546 \begin_layout Plain Layout
16547 btUnit
16548 \end_layout
16549
16550 \end_inset
16551
16552 .
16553  Also, the 
16554 \begin_inset Flex Code
16555 status collapsed
16556
16557 \begin_layout Plain Layout
16558 btUnit
16559 \end_layout
16560
16561 \end_inset
16562
16563 s cannot be nested.
16564 \end_layout
16565
16566 \begin_layout Chapter
16567 Multipart Documents
16568 \end_layout
16569
16570 \begin_layout Section
16571 General Operation
16572 \end_layout
16573
16574 \begin_layout Standard
16575 When you are working on a large file with many sections, it is often convenient
16576  to break up the document into several files, or perhaps you have something
16577  where a table may change from time to time, but the preceding text does
16578  not.
16579  In these cases, you should seriously consider using multipart documents.
16580  For example, scientific papers often have five major sections: the introduction
16581 , observations, results, discussion, and conclusion.
16582  Each of these could be its own separate \SpecialChar LyX
16583  file, with one 
16584 \begin_inset Quotes eld
16585 \end_inset
16586
16587 master
16588 \begin_inset Quotes erd
16589 \end_inset
16590
16591  file which contains the title, authors, abstract, references, etc., plus
16592  the five included files.
16593  It is important to note that each of these files is a full \SpecialChar LyX
16594  file which
16595  can be formatted and printed on its own, as well as included in a master
16596  file.
16597  Each of these files must have the same document class, however—don't attempt
16598  to mix book classes with article classes.
16599  You may also include \SpecialChar LaTeX
16600  files; however, these files must not have their own
16601  preamble (i.
16602 \begin_inset space \thinspace{}
16603 \end_inset
16604
16605 e.
16606 \begin_inset space \space{}
16607 \end_inset
16608
16609 everything up to and including the 
16610 \begin_inset Flex Code
16611 status collapsed
16612
16613 \begin_layout Plain Layout
16614
16615 \backslash
16616 begin{document}
16617 \end_layout
16618
16619 \end_inset
16620
16621  line as well as the 
16622 \begin_inset Flex Code
16623 status collapsed
16624
16625 \begin_layout Plain Layout
16626
16627 \backslash
16628 end{document}
16629 \end_layout
16630
16631 \end_inset
16632
16633  line must be deleted) or else errors will be generated when you try to
16634  make a DVI file.
16635 \end_layout
16636
16637 \begin_layout Standard
16638 \SpecialChar LyX
16639  allows you to include files quite easily with 
16640 \begin_inset Flex Noun
16641 status collapsed
16642
16643 \begin_layout Plain Layout
16644 Insert\SpecialChar menuseparator
16645 ChiId
16646 \begin_inset space ~
16647 \end_inset
16648
16649 Document
16650 \end_layout
16651
16652 \end_inset
16653
16654 .
16655  When you click on this selection a small box is inserted into the file
16656  at the current cursor location.
16657  Clicking on the box raises a dialog which allows you to select the file
16658  to be included, and the method of its inclusion.
16659  
16660 \end_layout
16661
16662 \begin_layout Standard
16663 The file selection box should by now be obvious.
16664  The three inclusion methods are 
16665 \begin_inset Quotes eld
16666 \end_inset
16667
16668 include
16669 \begin_inset Quotes erd
16670 \end_inset
16671
16672
16673 \begin_inset Quotes eld
16674 \end_inset
16675
16676 input
16677 \begin_inset Quotes erd
16678 \end_inset
16679
16680 , and 
16681 \begin_inset Quotes eld
16682 \end_inset
16683
16684 verbatim
16685 \begin_inset Quotes erd
16686 \end_inset
16687
16688 .
16689  The difference between 
16690 \begin_inset Quotes eld
16691 \end_inset
16692
16693 include
16694 \begin_inset Quotes erd
16695 \end_inset
16696
16697  and 
16698 \begin_inset Quotes eld
16699 \end_inset
16700
16701 input
16702 \begin_inset Quotes erd
16703 \end_inset
16704
16705  is really only meaningful to \SpecialChar LaTeX
16706 perts, but the practical difference is that
16707  files that are 
16708 \begin_inset Quotes eld
16709 \end_inset
16710
16711 included
16712 \begin_inset Quotes erd
16713 \end_inset
16714
16715  are typeset beginning on a new page, while files that are 
16716 \begin_inset Quotes eld
16717 \end_inset
16718
16719 inputted
16720 \begin_inset Quotes erd
16721 \end_inset
16722
16723  are typeset starting on the current page.
16724 \end_layout
16725
16726 \begin_layout Standard
16727 Generally, the master file is converted into a full \SpecialChar LaTeX
16728  file before typesetting,
16729  while the included files are converted to \SpecialChar LaTeX
16730  files that do not have all the
16731  preamble information.
16732 \end_layout
16733
16734 \begin_layout Standard
16735
16736 \begin_inset Quotes eld
16737 \end_inset
16738
16739 verbatim
16740 \begin_inset Quotes erd
16741 \end_inset
16742
16743  included file allows you to include a file typeset exactly as it appears
16744  in the file, i.
16745 \begin_inset space \thinspace{}
16746 \end_inset
16747
16748 e.
16749 \begin_inset space \space{}
16750 \end_inset
16751
16752 in 
16753 \begin_inset Flex Code
16754 status collapsed
16755
16756 \begin_layout Plain Layout
16757 verbatim
16758 \end_layout
16759
16760 \end_inset
16761
16762  mode, with the characters set in a fixed-width typewriter font.
16763  Normally, spaces in this file are invisible, though two consecutive spaces
16764  are conserved, unlike \SpecialChar LyX
16765 's normal treatment of spaces.
16766  However, setting the 
16767 \begin_inset Flex Noun
16768 status collapsed
16769
16770 \begin_layout Plain Layout
16771 Mark
16772 \begin_inset space ~
16773 \end_inset
16774
16775 spaces
16776 \begin_inset space ~
16777 \end_inset
16778
16779 in
16780 \begin_inset space ~
16781 \end_inset
16782
16783 output
16784 \end_layout
16785
16786 \end_inset
16787
16788  checkbox typesets a mark to unambiguously define the presence of a space.
16789  
16790 \end_layout
16791
16792 \begin_layout Section
16793 Cross-References Between Files
16794 \end_layout
16795
16796 \begin_layout Standard
16797 \begin_inset Box Shadowbox
16798 position "t"
16799 hor_pos "c"
16800 has_inner_box 1
16801 inner_pos "t"
16802 use_parbox 0
16803 use_makebox 0
16804 width "100col%"
16805 special "none"
16806 height "1in"
16807 height_special "totalheight"
16808 thickness "0.4pt"
16809 separation "3pt"
16810 shadowsize "4pt"
16811 framecolor "black"
16812 backgroundcolor "none"
16813 status open
16814
16815 \begin_layout Plain Layout
16816 This section is somewhat out of date.
16817  Need to describe default master documents and how children are opened when
16818  the master is.
16819  [[FIXME]]
16820 \end_layout
16821
16822 \end_inset
16823
16824
16825 \end_layout
16826
16827 \begin_layout Standard
16828 It is possible to set up cross-references between the different files.
16829  First, open all the files in question: let's call them A and B in a two
16830  file example, where B is included in A.
16831  Let's say you insert a label in A, then want to reference it in B.
16832  Open the cross-reference dialog whilst in document B, and you can select
16833  the 
16834 \begin_inset Quotes eld
16835 \end_inset
16836
16837 buffer
16838 \begin_inset Quotes erd
16839 \end_inset
16840
16841  to use.
16842 \end_layout
16843
16844 \begin_layout Section
16845 Bibliography Lists in all Subdocuments
16846 \end_layout
16847
16848 \begin_layout Standard
16849 \begin_inset Box Frameless
16850 position "t"
16851 hor_pos "c"
16852 has_inner_box 1
16853 inner_pos "t"
16854 use_parbox 0
16855 use_makebox 0
16856 width "100col%"
16857 special "none"
16858 height "1in"
16859 height_special "totalheight"
16860 thickness "0.4pt"
16861 separation "3pt"
16862 shadowsize "4pt"
16863 framecolor "black"
16864 backgroundcolor "none"
16865 status open
16866
16867 \begin_layout Plain Layout
16868 This section also needs updating.
16869  There is now material about this on the wiki, and it could be copied here.
16870 \end_layout
16871
16872 \end_inset
16873
16874
16875 \end_layout
16876
16877 \begin_layout Standard
16878 Copy the bibliography list with all entries to all subdocuments and transform
16879  them to a comment.
16880  This way \SpecialChar LyX
16881  will find the 
16882 \begin_inset Flex Code
16883 status collapsed
16884
16885 \begin_layout Plain Layout
16886 .bib
16887 \end_layout
16888
16889 \end_inset
16890
16891 -files and you can easily insert references without making the bibliography
16892  list visible.
16893 \end_layout
16894
16895 \begin_layout Standard
16896 As the bibliography list is in a comment, \SpecialChar LaTeX
16897  won't use it and the references
16898  will look like this: [?], instead of like this: [1].
16899  One solution is to use the \SpecialChar LaTeX
16900 -package 
16901 \begin_inset Flex Code
16902 status collapsed
16903
16904 \begin_layout Plain Layout
16905 comment
16906 \end_layout
16907
16908 \end_inset
16909
16910  that will only include comments by processing the files separately.
16911  To do this, add in the \SpecialChar LaTeX
16912  preamble of every subdocument the following:
16913 \end_layout
16914
16915 \begin_layout LyX-Code
16916
16917 \backslash
16918 usepackage{comment}
16919 \end_layout
16920
16921 \begin_layout LyX-Code
16922
16923 \backslash
16924 includecomment{comment}
16925 \end_layout
16926
16927 \begin_layout Standard
16928 See also 
16929 \begin_inset Flex URL
16930 status collapsed
16931
16932 \begin_layout Plain Layout
16933
16934 http://wiki.lyx.org/FAQ/Unsorted#toc31
16935 \end_layout
16936
16937 \end_inset
16938
16939 .
16940 \end_layout
16941
16942 \begin_layout Section
16943 Itemize Bullet Selection
16944 \begin_inset CommandInset label
16945 LatexCommand label
16946 name "sec:bullet"
16947
16948 \end_inset
16949
16950
16951 \end_layout
16952
16953 \begin_layout Standard
16954 by
16955 \noun on
16956  Allan Rae
16957 \end_layout
16958
16959 \begin_layout Subsection
16960 Introduction
16961 \end_layout
16962
16963 \begin_layout Standard
16964 \SpecialChar LyX
16965  provides 216 bullet shapes that can be accessed from a simple dialog.
16966  Using this dialog you can easily specify what bullet shape to use at each
16967  level of an itemized list.
16968  These settings are document-wide so you won't be able to specify different
16969  sets of bullets for different paragraphs.
16970 \begin_inset Foot
16971 status collapsed
16972
16973 \begin_layout Plain Layout
16974 Well, actually you can but you'll have to do it by hand.
16975 \end_layout
16976
16977 \end_inset
16978
16979
16980 \end_layout
16981
16982 \begin_layout Subsection
16983 How it looks
16984 \end_layout
16985
16986 \begin_layout Standard
16987 Open the dialog by selecting the 
16988 \begin_inset Flex Noun
16989 status collapsed
16990
16991 \begin_layout Plain Layout
16992 Document\SpecialChar menuseparator
16993 Settings
16994 \end_layout
16995
16996 \end_inset
16997
16998  menu item and then select the 
16999 \begin_inset Flex Noun
17000 status collapsed
17001
17002 \begin_layout Plain Layout
17003 Bullets
17004 \end_layout
17005
17006 \end_inset
17007
17008  tab.
17009 \end_layout
17010
17011 \begin_layout Standard
17012 The dialog provides you with a table of bullet shapes.
17013  A column of buttons on the left of the table provides access to the six
17014  different panels of bullet shapes.
17015  The row of buttons across the top is used to select which bullet depth
17016  you are changing.
17017  A text entry under the table shows the currently selected bullet shape's
17018  \SpecialChar LaTeX
17019  equivalent and this can be edited if desired.
17020  If you do modify the text you will also need to specify any needed packages
17021  in the \SpecialChar LaTeX
17022  preamble.
17023 \end_layout
17024
17025 \begin_layout Standard
17026 The six panels are divided up by the packages they require.
17027  The following table shows the mappings from button name to \SpecialChar LaTeX
17028  package.
17029 \begin_inset Separator latexpar
17030 \end_inset
17031
17032
17033 \end_layout
17034
17035 \begin_layout Standard
17036 \align center
17037 \begin_inset Tabular
17038 <lyxtabular version="3" rows="7" columns="2">
17039 <features tabularvalignment="middle">
17040 <column alignment="center" valignment="top" width="0pt">
17041 <column alignment="center" valignment="top" width="0pt">
17042 <row>
17043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17044 \begin_inset Text
17045
17046 \begin_layout Plain Layout
17047
17048 \family roman
17049 \series medium
17050 \shape up
17051 \size normal
17052 \emph off
17053 \bar no
17054 \noun off
17055 \color none
17056 Button
17057 \end_layout
17058
17059 \end_inset
17060 </cell>
17061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17062 \begin_inset Text
17063
17064 \begin_layout Plain Layout
17065
17066 \family roman
17067 \series medium
17068 \shape up
17069 \size normal
17070 \emph off
17071 \bar no
17072 \noun off
17073 \color none
17074 Packages Required
17075 \end_layout
17076
17077 \end_inset
17078 </cell>
17079 </row>
17080 <row>
17081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17082 \begin_inset Text
17083
17084 \begin_layout Plain Layout
17085
17086 \family sans
17087 \series medium
17088 \shape up
17089 \size normal
17090 \emph off
17091 \bar no
17092 \noun off
17093 \color none
17094 Standard
17095 \end_layout
17096
17097 \end_inset
17098 </cell>
17099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17100 \begin_inset Text
17101
17102 \begin_layout Plain Layout
17103
17104 \series medium
17105 \shape up
17106 \size normal
17107 \emph off
17108 \bar no
17109 \noun off
17110 \color none
17111 base \SpecialChar LaTeX
17112
17113 \end_layout
17114
17115 \end_inset
17116 </cell>
17117 </row>
17118 <row>
17119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17120 \begin_inset Text
17121
17122 \begin_layout Plain Layout
17123
17124 \family sans
17125 \series medium
17126 \shape up
17127 \size normal
17128 \emph off
17129 \bar no
17130 \noun off
17131 \color none
17132 Maths
17133 \end_layout
17134
17135 \end_inset
17136 </cell>
17137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17138 \begin_inset Text
17139
17140 \begin_layout Plain Layout
17141
17142 \family typewriter
17143 \series medium
17144 \shape up
17145 \size normal
17146 \emph off
17147 \bar no
17148 \noun off
17149 \color none
17150 amssymb.sty
17151 \end_layout
17152
17153 \end_inset
17154 </cell>
17155 </row>
17156 <row>
17157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17158 \begin_inset Text
17159
17160 \begin_layout Plain Layout
17161
17162 \family sans
17163 \series medium
17164 \shape up
17165 \size normal
17166 \emph off
17167 \bar no
17168 \noun off
17169 \color none
17170 Ding1
17171 \end_layout
17172
17173 \end_inset
17174 </cell>
17175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17176 \begin_inset Text
17177
17178 \begin_layout Plain Layout
17179
17180 \family typewriter
17181 \series medium
17182 \shape up
17183 \size normal
17184 \emph off
17185 \bar no
17186 \noun off
17187 \color none
17188 pifont.sty
17189 \end_layout
17190
17191 \end_inset
17192 </cell>
17193 </row>
17194 <row>
17195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17196 \begin_inset Text
17197
17198 \begin_layout Plain Layout
17199
17200 \family sans
17201 \series medium
17202 \shape up
17203 \size normal
17204 \emph off
17205 \bar no
17206 \noun off
17207 \color none
17208 Ding2
17209 \end_layout
17210
17211 \end_inset
17212 </cell>
17213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17214 \begin_inset Text
17215
17216 \begin_layout Plain Layout
17217
17218 \family typewriter
17219 \series medium
17220 \shape up
17221 \size normal
17222 \emph off
17223 \bar no
17224 \noun off
17225 \color none
17226 pifont.sty
17227 \end_layout
17228
17229 \end_inset
17230 </cell>
17231 </row>
17232 <row>
17233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17234 \begin_inset Text
17235
17236 \begin_layout Plain Layout
17237
17238 \family sans
17239 \series medium
17240 \shape up
17241 \size normal
17242 \emph off
17243 \bar no
17244 \noun off
17245 \color none
17246 Ding3
17247 \end_layout
17248
17249 \end_inset
17250 </cell>
17251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17252 \begin_inset Text
17253
17254 \begin_layout Plain Layout
17255
17256 \family typewriter
17257 \series medium
17258 \shape up
17259 \size normal
17260 \emph off
17261 \bar no
17262 \noun off
17263 \color none
17264 pifont.sty
17265 \end_layout
17266
17267 \end_inset
17268 </cell>
17269 </row>
17270 <row>
17271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17272 \begin_inset Text
17273
17274 \begin_layout Plain Layout
17275
17276 \family sans
17277 \series medium
17278 \shape up
17279 \size normal
17280 \emph off
17281 \bar no
17282 \noun off
17283 \color none
17284 Ding4
17285 \end_layout
17286
17287 \end_inset
17288 </cell>
17289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17290 \begin_inset Text
17291
17292 \begin_layout Plain Layout
17293
17294 \family typewriter
17295 \series medium
17296 \shape up
17297 \size normal
17298 \emph off
17299 \bar no
17300 \noun off
17301 \color none
17302 pifont.sty
17303 \end_layout
17304
17305 \end_inset
17306 </cell>
17307 </row>
17308 </lyxtabular>
17309
17310 \end_inset
17311
17312
17313 \end_layout
17314
17315 \begin_layout Standard
17316 \SpecialChar LyX
17317  doesn't stop you using bullets from packages you don't have.
17318  If you get errors from \SpecialChar LaTeX
17319  when you try to view or print the file, then it
17320  is likely you are missing a package.
17321 \begin_inset Foot
17322 status collapsed
17323
17324 \begin_layout Plain Layout
17325 \SpecialChar LyX
17326  doesn't restrict your use since you may be editing locally and exporting
17327  elsewhere.
17328 \end_layout
17329
17330 \end_inset
17331
17332
17333 \end_layout
17334
17335 \begin_layout Subsection
17336 How to use it
17337 \end_layout
17338
17339 \begin_layout Standard
17340 Select which bullet depth you want to change then select the bullet shape
17341  and size.
17342  Any changes will not be visible in \SpecialChar LyX
17343 , but are visible when viewing the document.
17344 \end_layout
17345
17346 \begin_layout Standard
17347 You can reset a bullet shape to the default simply by clicking your right
17348  mouse button on the appropriate bullet depth button.
17349 \begin_inset Foot
17350 status collapsed
17351
17352 \begin_layout Plain Layout
17353 If you 
17354 \emph on
17355 really
17356 \emph default
17357  want to have multiple sets of paragraphs with different sets of bullets
17358  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
17359  code.
17360  The bullet selection dialog can help though because it provides you with
17361  the \SpecialChar LaTeX
17362  code for a wide range of bullet shapes.
17363  To make your own custom paragraphs you have the following options:
17364 \end_layout
17365
17366 \begin_layout Plain Layout
17367 \begin_inset ERT
17368 status open
17369
17370 \begin_layout Plain Layout
17371
17372
17373 \backslash
17374 let
17375 \backslash
17376 savelabelitemi=
17377 \backslash
17378 labelitemi
17379 \end_layout
17380
17381 \end_inset
17382
17383
17384 \end_layout
17385
17386 \begin_layout Plain Layout
17387 \begin_inset ERT
17388 status open
17389
17390 \begin_layout Plain Layout
17391
17392
17393 \backslash
17394 renewcommand
17395 \backslash
17396 labelitemi[0]{
17397 \backslash
17398 small
17399 \backslash
17400 (
17401 \backslash
17402 sharp
17403 \backslash
17404 )}
17405 \end_layout
17406
17407 \end_inset
17408
17409
17410 \end_layout
17411
17412 \begin_layout Itemize
17413 Use the \SpecialChar LaTeX
17414  command 
17415 \begin_inset Flex Code
17416 status collapsed
17417
17418 \begin_layout Plain Layout
17419
17420 \backslash
17421 renewcommand{}{}
17422 \end_layout
17423
17424 \end_inset
17425
17426  to specify a new bullet shape for a given depth.
17427  You'll also need to save the current bullet shape so you can restore it
17428  again afterwards.
17429  In this itemized list the following \SpecialChar LaTeX
17430  code was used to change the bullet
17431  used for the first depth.
17432 \begin_inset Separator latexpar
17433 \end_inset
17434
17435
17436 \end_layout
17437
17438 \begin_deeper
17439 \begin_layout LyX-Code
17440
17441 \backslash
17442 let
17443 \backslash
17444 savelabelitemi=
17445 \backslash
17446 labelitemi 
17447 \end_layout
17448
17449 \begin_layout LyX-Code
17450
17451 \backslash
17452 renewcommand
17453 \backslash
17454 labelitemi[0]{
17455 \backslash
17456 small
17457 \backslash
17458 (
17459 \backslash
17460 sharp
17461 \backslash
17462 )}
17463 \end_layout
17464
17465 \end_deeper
17466 \begin_layout Itemize
17467 Note that the itemize depth is specified in Roman numerals as part of the
17468  
17469 \family typewriter
17470
17471 \backslash
17472 labelitem
17473 \family default
17474  command.
17475 \end_layout
17476
17477 \begin_layout Itemize
17478 \begin_inset ERT
17479 status open
17480
17481 \begin_layout Plain Layout
17482
17483 [
17484 \backslash
17485 (
17486 \backslash
17487 star
17488 \backslash
17489 )]
17490 \end_layout
17491
17492 \end_inset
17493
17494  Specify each individual entry by starting each item with the bullet shape
17495  enclosed in square brackets and set as 
17496 \begin_inset Flex Noun
17497 status collapsed
17498
17499 \begin_layout Plain Layout
17500 \SpecialChar TeX
17501  Code
17502 \end_layout
17503
17504 \end_inset
17505
17506 .
17507  For example, this item was started with 
17508 \begin_inset Flex Code
17509 status collapsed
17510
17511 \begin_layout Plain Layout
17512 [
17513 \backslash
17514 (
17515 \backslash
17516 star
17517 \backslash
17518 )]
17519 \end_layout
17520
17521 \end_inset
17522
17523 .
17524 \end_layout
17525
17526 \begin_layout Plain Layout
17527 \begin_inset ERT
17528 status open
17529
17530 \begin_layout Plain Layout
17531
17532
17533 \backslash
17534 renewcommand
17535 \backslash
17536 labelitemi[0]{
17537 \backslash
17538 savelabelitemi}
17539 \end_layout
17540
17541 \end_inset
17542
17543
17544 \end_layout
17545
17546 \begin_layout Plain Layout
17547 You'll also need to revert the labelitem back to its previous setting for
17548  the global bullet shape settings to remain in effect.
17549  The way used here was:
17550 \end_layout
17551
17552 \begin_layout LyX-Code
17553
17554 \backslash
17555 renewcommand
17556 \backslash
17557 labelitemi[0]{
17558 \backslash
17559 savelabelitemi}
17560 \end_layout
17561
17562 \end_inset
17563
17564
17565 \end_layout
17566
17567 \begin_layout Chapter
17568 \SpecialChar LyX
17569  Features needing Extra Software
17570 \end_layout
17571
17572 \begin_layout Section
17573 Checking \SpecialChar TeX
17574
17575 \end_layout
17576
17577 \begin_layout Standard
17578 by 
17579 \noun on
17580 Asger Alstrup
17581 \end_layout
17582
17583 \begin_layout Subsection
17584 Introduction
17585 \end_layout
17586
17587 \begin_layout Standard
17588 If you have the 
17589 \family typewriter
17590 chktex
17591 \family default
17592  program installed
17593 \begin_inset Foot
17594 status collapsed
17595
17596 \begin_layout Plain Layout
17597
17598 \family typewriter
17599 chktex
17600 \family default
17601  is not yet available when you are using the \SpecialChar LaTeX
17602  distribution MiK\SpecialChar TeX
17603 .
17604 \end_layout
17605
17606 \end_inset
17607
17608 , you'll find in the 
17609 \family sans
17610 Tools
17611 \family default
17612  menu the entry: 
17613 \family sans
17614 Check
17615 \begin_inset space ~
17616 \end_inset
17617
17618 TeX
17619 \family default
17620 .
17621  You can get 
17622 \family typewriter
17623 chktex
17624 \family default
17625  from CTAN,
17626 \begin_inset Newline newline
17627 \end_inset
17628
17629
17630 \begin_inset CommandInset href
17631 LatexCommand href
17632 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17633
17634 \end_inset
17635
17636 .
17637 \end_layout
17638
17639 \begin_layout Standard
17640 The 
17641 \family sans
17642 Chk\SpecialChar TeX
17643
17644 \family default
17645  package is a program that was written by 
17646 \begin_inset Flex Noun
17647 status collapsed
17648
17649 \begin_layout Plain Layout
17650 Jens T.
17651 \begin_inset space ~
17652 \end_inset
17653
17654 Berger Thielemann
17655 \end_layout
17656
17657 \end_inset
17658
17659  in frustration because some constructs in \SpecialChar LaTeX
17660  are sometimes non-intuitive,
17661  and easy to forget.
17662  The program runs over your \SpecialChar LaTeX
17663  file, checks the integrity of the file, and
17664  flags some common errors.
17665  In other technical words, it is 
17666 \family typewriter
17667 lint
17668 \family default
17669  for \SpecialChar LaTeX
17670 .
17671 \end_layout
17672
17673 \begin_layout Standard
17674 Well, what is a syntax checker doing in \SpecialChar LyX
17675  which is supposed to produce correct
17676  \SpecialChar LaTeX
17677  anyways? The answer is simple: Just as 
17678 \family typewriter
17679 Lint
17680 \family default
17681  not only checks the 
17682 \emph on
17683 syntax
17684 \emph default
17685  of C programs, but also does 
17686 \emph on
17687 semantic
17688 \emph default
17689  checks for type-errors, 
17690 \family sans
17691 Chk\SpecialChar TeX
17692
17693 \family default
17694  catches some common 
17695 \emph on
17696 typographic
17697 \emph default
17698  errors, in addition to the syntactical ones.
17699  Specifically, 
17700 \family sans
17701 Chk\SpecialChar TeX
17702
17703 \family default
17704  is capable of detecting several common errors, such as
17705 \end_layout
17706
17707 \begin_layout Itemize
17708 Ellipsis detection:
17709 \begin_inset Newline newline
17710 \end_inset
17711
17712 Use \SpecialChar ldots
17713  instead of ...
17714 \end_layout
17715
17716 \begin_layout Itemize
17717 No space in front of/after parenthesis:
17718 \begin_inset Newline newline
17719 \end_inset
17720
17721 ( wrong spacing )
17722 \end_layout
17723
17724 \begin_layout Itemize
17725 Enforcement of normal space after common abbreviations:
17726 \begin_inset Newline newline
17727 \end_inset
17728
17729 e.
17730 \begin_inset space \thinspace{}
17731 \end_inset
17732
17733 g.
17734 \begin_inset space \space{}
17735 \end_inset
17736
17737 is too wide spacing.
17738 \end_layout
17739
17740 \begin_layout Itemize
17741 Enforcement of end-of-sentence space when the last sentence ends with a
17742  capital letter:
17743 \begin_inset Newline newline
17744 \end_inset
17745
17746 This is a TEST.
17747  And this is wrong spacing.
17748 \end_layout
17749
17750 \begin_layout Itemize
17751 Space in front of labels and similar commands:
17752 \begin_inset Newline newline
17753 \end_inset
17754
17755 The label should stick right up to the text to avoid falling to a wrong
17756  page.
17757  
17758 \begin_inset CommandInset label
17759 LatexCommand label
17760 name "sec:chktex"
17761
17762 \end_inset
17763
17764  
17765 \begin_inset Foot
17766 status collapsed
17767
17768 \begin_layout Plain Layout
17769 This footnote is in danger of falling off to a wrong page
17770 \end_layout
17771
17772 \end_inset
17773
17774  The label is separated too much.
17775 \end_layout
17776
17777 \begin_layout Itemize
17778 Space in front of references, instead of hard spaces:
17779 \begin_inset Newline newline
17780 \end_inset
17781
17782 If you have bad luck, the text will break right between the referenced text
17783  and reference number, and that's a pity.
17784  See section 
17785 \begin_inset CommandInset ref
17786 LatexCommand ref
17787 reference "sec:chktex"
17788
17789 \end_inset
17790
17791 .
17792 \end_layout
17793
17794 \begin_layout Itemize
17795 Use of 
17796 \begin_inset Quotes eld
17797 \end_inset
17798
17799 x
17800 \begin_inset Quotes erd
17801 \end_inset
17802
17803  instead of 
17804 \begin_inset Formula $\times$
17805 \end_inset
17806
17807  between numbers:
17808 \begin_inset Newline newline
17809 \end_inset
17810
17811 2x2 looks cheap compared to 
17812 \begin_inset Formula $2\times2$
17813 \end_inset
17814
17815 .
17816 \end_layout
17817
17818 \begin_layout Standard
17819 and more \SpecialChar ldots
17820  It is an invaluable tool when you are 
17821 \begin_inset Quotes eld
17822 \end_inset
17823
17824 finishing up
17825 \begin_inset Quotes erd
17826 \end_inset
17827
17828  your document before printing, and you should run it right after the obligatory
17829  spelling check, and before you go fine tuning the typesetting.
17830 \end_layout
17831
17832 \begin_layout Subsection
17833 How to use it
17834 \end_layout
17835
17836 \begin_layout Standard
17837 If you have the program installed, usage is as simple as choosing 
17838 \family sans
17839 Tools\SpecialChar menuseparator
17840 Check
17841 \begin_inset space ~
17842 \end_inset
17843
17844 TeX
17845 \family default
17846 .
17847  This will make \SpecialChar LyX
17848  generate a \SpecialChar LaTeX
17849  file of your document, start 
17850 \family sans
17851 Chk\SpecialChar TeX
17852
17853 \family default
17854  to check it, and then make \SpecialChar LyX
17855  insert 
17856 \begin_inset Quotes eld
17857 \end_inset
17858
17859 error boxes
17860 \begin_inset Quotes erd
17861 \end_inset
17862
17863  with the warnings from 
17864 \family sans
17865 Chk\SpecialChar TeX
17866
17867 \family default
17868 , if there were any.
17869  The warnings will be placed close to the point of the mistake, and you
17870  can quickly find them by using the 
17871 \family sans
17872 Navigate\SpecialChar menuseparator
17873 Error
17874 \family default
17875  menu item, or the shortcut key 
17876 \family sans
17877 C-g
17878 \family default
17879  from the default 
17880 \family typewriter
17881 cua
17882 \family default
17883  bind file.
17884  Open the error boxes by clicking on them with the mouse, or use the shortcut
17885  key 
17886 \family sans
17887 C-i
17888 \family default
17889  from 
17890 \family typewriter
17891 cua
17892 \family default
17893  bindings, or the corresponding 
17894 \family sans
17895 C-o
17896 \family default
17897  for the alternate 
17898 \family typewriter
17899 emacs
17900 \family default
17901  bind file.
17902  Read the warning and correct the mistake, if it is a mistake.
17903  If you have trouble understanding what the warning is about, you can safely
17904  ignore it.
17905  Remember that there is a hidden layer between the document on screen and
17906  the technical details in invoking 
17907 \family sans
17908 Chk\SpecialChar TeX
17909
17910 \family default
17911 , and this gap can make some warnings seem arcane or just plain silly.
17912 \end_layout
17913
17914 \begin_layout Standard
17915 This document is an excellent testing bed for the feature, and it should
17916  provide quite a few warnings for you to fiddle with.
17917  Since computers are only so smart, expect most of the warnings to be false
17918  alarms, though.
17919 \end_layout
17920
17921 \begin_layout Subsection
17922 How to fine tune it
17923 \end_layout
17924
17925 \begin_layout Standard
17926 Sometimes, you'll find that 
17927 \family sans
17928 Chk\SpecialChar TeX
17929
17930 \family default
17931  makes more noise than suits your mood.
17932  Then you can choose not to use it, wait until your mood changes, or try
17933  to customize 
17934 \family sans
17935 Chk\SpecialChar TeX
17936
17937 \family default
17938  to get better along with you.
17939 \end_layout
17940
17941 \begin_layout Standard
17942 Although 
17943 \family sans
17944 Chk\SpecialChar TeX
17945
17946 \family default
17947  
17948 \emph on
17949 is
17950 \emph default
17951  very configurable and extensible, you should not expect to solve all problems
17952  with 
17953 \family sans
17954 Chk\SpecialChar TeX
17955
17956 \family default
17957  in \SpecialChar LyX
17958  this way.
17959  Since \SpecialChar LyX
17960  has to generate a somewhat special \SpecialChar LaTeX
17961  file to be able to match the
17962  line numbers from the 
17963 \family sans
17964 Chk\SpecialChar TeX
17965
17966 \family default
17967  output
17968 \begin_inset Foot
17969 status collapsed
17970
17971 \begin_layout Plain Layout
17972 You can inspect the specific output from 
17973 \family sans
17974 chktex
17975 \family default
17976  by using 
17977 \family sans
17978 Document\SpecialChar menuseparator
17979 \SpecialChar LaTeX
17980
17981 \begin_inset space ~
17982 \end_inset
17983
17984 Log
17985 \family default
17986  right after a 
17987 \family sans
17988 chktex
17989 \family default
17990  run.
17991 \end_layout
17992
17993 \end_inset
17994
17995  to the internal document structure, some of the warnings will not appear
17996  correctly.
17997  There are two things you can do about this:
17998 \end_layout
17999
18000 \begin_layout Itemize
18001 Fine tune the 
18002 \family sans
18003 Chk\SpecialChar TeX
18004
18005 \family default
18006  invocation command line in 
18007 \begin_inset Flex Noun
18008 status collapsed
18009
18010 \begin_layout Plain Layout
18011 Tools\SpecialChar menuseparator
18012 Preferences\SpecialChar menuseparator
18013 Output\SpecialChar menuseparator
18014 LaTeX\SpecialChar menuseparator
18015 CheckTeX command
18016 \end_layout
18017
18018 \end_inset
18019
18020 , or the global 
18021 \family sans
18022 Chk\SpecialChar TeX
18023
18024 \family default
18025  installation configuration file (usually with the file 
18026 \family typewriter
18027 chktexrc
18028 \family default
18029 ).
18030  See below to learn what warnings can be enabled and disabled on the command
18031  line.
18032 \end_layout
18033
18034 \begin_layout Itemize
18035 Export your document as a raw \SpecialChar LaTeX
18036  file using 
18037 \family sans
18038 File\SpecialChar menuseparator
18039 Export\SpecialChar menuseparator
18040 \SpecialChar LaTeX
18041
18042 \family default
18043  and run 
18044 \family typewriter
18045 chktex
18046 \family default
18047  manually on that.
18048  Invoked in this way, it can be a hassle to find the corresponding place
18049  in the document inside \SpecialChar LyX
18050 , but with a little patience, you should be able
18051  to do it.
18052 \end_layout
18053
18054 \begin_layout Standard
18055 Here follows the warning messages that can be enabled and disabled in 
18056 \family sans
18057 Preferences
18058 \family default
18059 .
18060  Use 
18061 \family typewriter
18062 -n#
18063 \family default
18064  to disable a warning, and 
18065 \family typewriter
18066 -w#
18067 \family default
18068  to enable a warning.
18069  The emphasized entries are disabled by default, because the default is
18070  "
18071 \family typewriter
18072 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
18073 \family default
18074 ".
18075 \end_layout
18076
18077 \begin_layout Standard
18078 Notice that you should only use the options that enable and disable warnings,
18079  because \SpecialChar LyX
18080  relies on some of the other command line parameters to be set
18081  in a specific way to have a chance to communicate with 
18082 \family typewriter
18083 chktex
18084 \family default
18085 .
18086 \end_layout
18087
18088 \begin_layout Enumerate
18089
18090 \size small
18091 \emph on
18092 Command terminated with space.
18093 \end_layout
18094
18095 \begin_layout Enumerate
18096
18097 \size small
18098 Non-breaking space (
18099 \begin_inset Quotes eld
18100 \end_inset
18101
18102
18103 \family typewriter
18104 ~
18105 \family default
18106
18107 \begin_inset Quotes erd
18108 \end_inset
18109
18110 ) should have been used.
18111 \end_layout
18112
18113 \begin_layout Enumerate
18114
18115 \size small
18116 \emph on
18117 You should enclose the previous parenthesis with 
18118 \begin_inset Quotes eld
18119 \end_inset
18120
18121
18122 \family typewriter
18123 {}
18124 \family default
18125
18126 \begin_inset Quotes erd
18127 \end_inset
18128
18129 .
18130 \end_layout
18131
18132 \begin_layout Enumerate
18133
18134 \size small
18135 Italic correction (
18136 \begin_inset Quotes eld
18137 \end_inset
18138
18139
18140 \family typewriter
18141
18142 \backslash
18143 /
18144 \family default
18145
18146 \begin_inset Quotes erd
18147 \end_inset
18148
18149 ) found in non-italic buffer.
18150 \end_layout
18151
18152 \begin_layout Enumerate
18153
18154 \size small
18155 Italic correction (
18156 \begin_inset Quotes eld
18157 \end_inset
18158
18159
18160 \family typewriter
18161
18162 \backslash
18163 /
18164 \family default
18165
18166 \begin_inset Quotes erd
18167 \end_inset
18168
18169 ) found more than once.
18170 \end_layout
18171
18172 \begin_layout Enumerate
18173
18174 \size small
18175 \emph on
18176 No italic correction (
18177 \begin_inset Quotes eld
18178 \end_inset
18179
18180
18181 \family typewriter
18182
18183 \backslash
18184 /
18185 \family default
18186
18187 \begin_inset Quotes erd
18188 \end_inset
18189
18190 ) found.
18191 \end_layout
18192
18193 \begin_layout Enumerate
18194
18195 \size small
18196 Accent command 
18197 \begin_inset Quotes eld
18198 \end_inset
18199
18200
18201 \family typewriter
18202 cmd
18203 \family default
18204
18205 \begin_inset Quotes erd
18206 \end_inset
18207
18208  needs use of 
18209 \begin_inset Quotes eld
18210 \end_inset
18211
18212
18213 \family typewriter
18214 cmd
18215 \family default
18216
18217 \begin_inset Quotes erd
18218 \end_inset
18219
18220 .
18221 \end_layout
18222
18223 \begin_layout Enumerate
18224
18225 \size small
18226 Wrong length of dash may have been used.
18227 \end_layout
18228
18229 \begin_layout Enumerate
18230
18231 \size small
18232 \emph on
18233 \begin_inset Quotes eld
18234 \end_inset
18235
18236
18237 \family typewriter
18238 %s
18239 \family default
18240
18241 \begin_inset Quotes erd
18242 \end_inset
18243
18244  expected, found 
18245 \begin_inset Quotes eld
18246 \end_inset
18247
18248
18249 \family typewriter
18250 %s
18251 \family default
18252
18253 \begin_inset Quotes erd
18254 \end_inset
18255
18256 .
18257 \end_layout
18258
18259 \begin_layout Enumerate
18260
18261 \size small
18262 Solo 
18263 \begin_inset Quotes eld
18264 \end_inset
18265
18266
18267 \family typewriter
18268 %s
18269 \family default
18270
18271 \begin_inset Quotes erd
18272 \end_inset
18273
18274  found.
18275 \end_layout
18276
18277 \begin_layout Enumerate
18278
18279 \size small
18280 You should use 
18281 \begin_inset Quotes eld
18282 \end_inset
18283
18284
18285 \family typewriter
18286 %s
18287 \family default
18288
18289 \begin_inset Quotes erd
18290 \end_inset
18291
18292  to achieve an ellipsis.
18293 \end_layout
18294
18295 \begin_layout Enumerate
18296
18297 \size small
18298 Inter-word spacing (
18299 \begin_inset Quotes eld
18300 \end_inset
18301
18302
18303 \family typewriter
18304
18305 \backslash
18306
18307 \family default
18308  
18309 \begin_inset Quotes eld
18310 \end_inset
18311
18312 ) should perhaps be used.
18313 \end_layout
18314
18315 \begin_layout Enumerate
18316
18317 \size small
18318 Inter-sentence spacing (
18319 \begin_inset Quotes eld
18320 \end_inset
18321
18322
18323 \family typewriter
18324
18325 \backslash
18326 @
18327 \family default
18328
18329 \begin_inset Quotes erd
18330 \end_inset
18331
18332 ) should perhaps be used.
18333 \end_layout
18334
18335 \begin_layout Enumerate
18336
18337 \size small
18338 Could not find argument for command.
18339 \end_layout
18340
18341 \begin_layout Enumerate
18342
18343 \size small
18344 No match found for 
18345 \begin_inset Quotes eld
18346 \end_inset
18347
18348
18349 \family typewriter
18350 %s
18351 \family default
18352
18353 \begin_inset Quotes erd
18354 \end_inset
18355
18356 .
18357 \end_layout
18358
18359 \begin_layout Enumerate
18360
18361 \size small
18362 Math mode still on at end of \SpecialChar LaTeX
18363  file.
18364 \end_layout
18365
18366 \begin_layout Enumerate
18367
18368 \size small
18369 Number of 
18370 \begin_inset Quotes eld
18371 \end_inset
18372
18373
18374 \family typewriter
18375 char
18376 \family default
18377
18378 \begin_inset Quotes erd
18379 \end_inset
18380
18381  doesn't match the number of 
18382 \begin_inset Quotes eld
18383 \end_inset
18384
18385
18386 \family typewriter
18387 char
18388 \family default
18389
18390 \begin_inset Quotes erd
18391 \end_inset
18392
18393 .
18394 \end_layout
18395
18396 \begin_layout Enumerate
18397
18398 \size small
18399 You should use either 
18400 \family typewriter
18401
18402 \begin_inset Quotes eld
18403 \end_inset
18404
18405
18406 \family default
18407  or 
18408 \family typewriter
18409
18410 \begin_inset Quotes erd
18411 \end_inset
18412
18413
18414 \family default
18415  as an alternative to 
18416 \begin_inset Quotes eld
18417 \end_inset
18418
18419
18420 \family typewriter
18421 "
18422 \family default
18423
18424 \begin_inset Quotes erd
18425 \end_inset
18426
18427 .
18428 \end_layout
18429
18430 \begin_layout Enumerate
18431
18432 \size small
18433 You should use "
18434 \family typewriter
18435 '
18436 \family default
18437 " (ASCII 39) instead of "
18438 \family typewriter
18439 ´
18440 \family default
18441 " (ASCII 180).
18442 \end_layout
18443
18444 \begin_layout Enumerate
18445
18446 \size small
18447 User-specified pattern found.
18448 \end_layout
18449
18450 \begin_layout Enumerate
18451
18452 \size small
18453 This command might not be intended.
18454 \end_layout
18455
18456 \begin_layout Enumerate
18457
18458 \size small
18459 \emph on
18460 Comment displayed.
18461 \end_layout
18462
18463 \begin_layout Enumerate
18464
18465 \size small
18466 Either 
18467 \family typewriter
18468 ''
18469 \backslash
18470 ,'
18471 \family default
18472  or 
18473 \family typewriter
18474 '
18475 \backslash
18476 ,''
18477 \family default
18478  will look better.
18479 \end_layout
18480
18481 \begin_layout Enumerate
18482
18483 \size small
18484 Delete this space to maintain correct page references.
18485 \end_layout
18486
18487 \begin_layout Enumerate
18488
18489 \size small
18490 \emph on
18491 You might wish to put this between a pair of 
18492 \begin_inset Quotes eld
18493 \end_inset
18494
18495
18496 \family typewriter
18497 {}
18498 \family default
18499
18500 \begin_inset Quotes erd
18501 \end_inset
18502
18503 .
18504 \end_layout
18505
18506 \begin_layout Enumerate
18507
18508 \size small
18509 You ought to remove spaces in front of punctuation.
18510 \end_layout
18511
18512 \begin_layout Enumerate
18513
18514 \size small
18515 Could not execute \SpecialChar LaTeX
18516  command.
18517 \end_layout
18518
18519 \begin_layout Enumerate
18520
18521 \size small
18522 Don't use 
18523 \family typewriter
18524
18525 \backslash
18526 /
18527 \family default
18528  in front of small punctuation.
18529 \end_layout
18530
18531 \begin_layout Enumerate
18532
18533 \family typewriter
18534 \size small
18535 $
18536 \backslash
18537 times$
18538 \family default
18539  may look prettier here.
18540 \end_layout
18541
18542 \begin_layout Enumerate
18543
18544 \size small
18545 \emph on
18546 Multiple spaces detected in output.
18547 \end_layout
18548
18549 \begin_layout Enumerate
18550
18551 \size small
18552 This text may be ignored.
18553 \end_layout
18554
18555 \begin_layout Enumerate
18556
18557 \size small
18558 Use 
18559 \family typewriter
18560
18561 \begin_inset Quotes eld
18562 \end_inset
18563
18564
18565 \family default
18566  to begin quotation, not 
18567 \family typewriter
18568 '
18569 \family default
18570 .
18571 \end_layout
18572
18573 \begin_layout Enumerate
18574
18575 \size small
18576 Use 
18577 \family typewriter
18578 '
18579 \family default
18580  to end quotation, not 
18581 \family typewriter
18582
18583 \begin_inset Quotes eld
18584 \end_inset
18585
18586
18587 \family default
18588 .
18589 \end_layout
18590
18591 \begin_layout Enumerate
18592
18593 \size small
18594 Don't mix quotes.
18595 \end_layout
18596
18597 \begin_layout Enumerate
18598
18599 \size small
18600 You should perhaps use 
18601 \begin_inset Quotes eld
18602 \end_inset
18603
18604
18605 \family typewriter
18606 cmd
18607 \family default
18608
18609 \begin_inset Quotes erd
18610 \end_inset
18611
18612  instead.
18613 \end_layout
18614
18615 \begin_layout Enumerate
18616
18617 \size small
18618 You should put a space in front of/after parenthesis.
18619 \end_layout
18620
18621 \begin_layout Enumerate
18622
18623 \size small
18624 You should avoid spaces in front of/after parenthesis.
18625 \end_layout
18626
18627 \begin_layout Enumerate
18628
18629 \size small
18630 \emph on
18631 You should not use punctuation in front of/after quotes.
18632 \end_layout
18633
18634 \begin_layout Enumerate
18635
18636 \size small
18637 Double space found.
18638 \end_layout
18639
18640 \begin_layout Enumerate
18641
18642 \size small
18643 You should put punctuation outside inner/inside display math mode.
18644 \end_layout
18645
18646 \begin_layout Enumerate
18647
18648 \size small
18649 You ought to not use primitive \SpecialChar TeX
18650  in \SpecialChar LaTeX
18651  code.
18652 \end_layout
18653
18654 \begin_layout Enumerate
18655
18656 \size small
18657 You should remove spaces in front of 
18658 \begin_inset Quotes eld
18659 \end_inset
18660
18661
18662 \family typewriter
18663 %s
18664 \family default
18665
18666 \begin_inset Quotes erd
18667 \end_inset
18668
18669
18670 \end_layout
18671
18672 \begin_layout Enumerate
18673
18674 \size small
18675 \begin_inset Quotes eld
18676 \end_inset
18677
18678
18679 \family typewriter
18680 %s
18681 \family default
18682
18683 \begin_inset Quotes erd
18684 \end_inset
18685
18686  is normally not followed by 
18687 \begin_inset Quotes eld
18688 \end_inset
18689
18690
18691 \family typewriter
18692 %c
18693 \family default
18694
18695 \begin_inset Quotes erd
18696 \end_inset
18697
18698 .
18699 \end_layout
18700
18701 \begin_layout Standard
18702 In later versions of \SpecialChar LyX
18703 , we hope to provide a more complete interface to this
18704  tool (and it's smaller cousin 
18705 \family typewriter
18706 lacheck
18707 \family default
18708 ) to exploit the full power of it.
18709  But it's not exactly useless as it is now: go try it on one of your existing
18710  documents of a certain length and be surprised.
18711 \end_layout
18712
18713 \begin_layout Section
18714 Version Control in \SpecialChar LyX
18715
18716 \end_layout
18717
18718 \begin_layout Standard
18719 by
18720 \noun on
18721  Lars Gullik Bjønnes 
18722 \noun default
18723 and 
18724 \noun on
18725 Pavel Sanda
18726 \end_layout
18727
18728 \begin_layout Subsection
18729 Introduction
18730 \end_layout
18731
18732 \begin_layout Standard
18733 \SpecialChar LyX
18734  supports some of the most basic RCS/CVS/SVN/GIT commands.
18735  If you need something a bit more sophisticated you will have to do that
18736  manually in a terminal.
18737 \end_layout
18738
18739 \begin_layout Standard
18740 Also note that CVS support is not as good as subversion support so we advise
18741  using SVN instead.
18742  A good place to start learning Subversion is SVN Book
18743 \begin_inset Foot
18744 status collapsed
18745
18746 \begin_layout Plain Layout
18747 \begin_inset CommandInset href
18748 LatexCommand href
18749 target "http://svnbook.red-bean.com/"
18750
18751 \end_inset
18752
18753
18754 \end_layout
18755
18756 \end_inset
18757
18758 .
18759  In the case of RCS you should read 
18760 \begin_inset Quotes eld
18761 \end_inset
18762
18763 rcsintro
18764 \begin_inset Quotes erd
18765 \end_inset
18766
18767  (a man file, read it with 
18768 \family typewriter
18769 man rcsintro
18770 \family default
18771 ).
18772  This file describes all the basic features of RCS.
18773  You should especially notice the comment about a RCS directory, and the
18774  notion of a master RCS file (the file ending in 
18775 \family typewriter
18776 ,v
18777 \family default
18778 ).
18779 \end_layout
18780
18781 \begin_layout Standard
18782 Before you begin to use the version control features in \SpecialChar LyX
18783 , you should be
18784  familiar with RCS/CVS/SVN/GIT usage.
18785  The implementation in \SpecialChar LyX
18786  assumes a recent version of the GNU RCS or CVS/SVN
18787  package — no guarantees are made for older versions.
18788  Most of the log messages are not currently displayed after operations —
18789  you can check them in the Messages pane if unsure.
18790  Regular users of version control will appreciate VC toolbar, which can
18791  be enabled via 
18792 \family sans
18793 View\SpecialChar menuseparator
18794 Toolbars\SpecialChar menuseparator
18795 Version
18796 \begin_inset space ~
18797 \end_inset
18798
18799 Control
18800 \family default
18801 .
18802 \end_layout
18803
18804 \begin_layout Standard
18805 For introducing your own external commands consult vc-command in the manual
18806  of \SpecialChar LyX
18807  functions.
18808 \end_layout
18809
18810 \begin_layout Standard
18811 It is strongly recommended to store documents in uncompressed format if
18812  using version control (uncheck 
18813 \family sans
18814 Document\SpecialChar menuseparator
18815 Compressed
18816 \family default
18817  if it is checked): Uncompressed LyX documents are text files and therefore
18818  for merging two different versions by version control systems.
18819  Compressed LyX documents are binary files, which cannot be merged by version
18820  control systems.
18821 \end_layout
18822
18823 \begin_layout Subsection
18824 RCS commands in \SpecialChar LyX
18825
18826 \end_layout
18827
18828 \begin_layout Standard
18829 The following sections describe the RCS commands supported by \SpecialChar LyX
18830 .
18831  You can find them in the 
18832 \family sans
18833 File\SpecialChar menuseparator
18834 Version
18835 \begin_inset space ~
18836 \end_inset
18837
18838 Control
18839 \family default
18840  submenu.
18841  \SpecialChar LyX
18842  was tested against RCS 5.7/5.8.
18843 \end_layout
18844
18845 \begin_layout Subsubsection
18846
18847 \family sans
18848 Register
18849 \end_layout
18850
18851 \begin_layout Standard
18852 If your document is not under revision control, this is the only item shown
18853  in the menu.
18854  And if it is under revision control, the 
18855 \family sans
18856 Register
18857 \family default
18858  item is not visible.
18859  
18860 \end_layout
18861
18862 \begin_layout Standard
18863 This command registers your document with RCS (unless you are under the
18864  directory managed by CVS)\SpecialChar endofsentence
18865  You are asked interactively to supply an initial
18866  description of the document.
18867  The document is now set in Read-Only mode and you have to 
18868 \family sans
18869 Check
18870 \begin_inset space ~
18871 \end_inset
18872
18873 Out
18874 \begin_inset space ~
18875 \end_inset
18876
18877 For
18878 \begin_inset space ~
18879 \end_inset
18880
18881 Edit
18882 \family default
18883 , before making any changes to it.
18884  A document under revision control has a 
18885 \begin_inset Quotes eld
18886 \end_inset
18887
18888 [RCS:<version> <locker>]
18889 \begin_inset Quotes erd
18890 \end_inset
18891
18892  item tagged to the filename in the minibuffer.
18893 \end_layout
18894
18895 \begin_layout Standard
18896 RCS command that is run: 
18897 \family typewriter
18898 ci -q -u -i -t-"<initial description>" <file-name>
18899 \end_layout
18900
18901 \begin_layout Standard
18902 Read 
18903 \family typewriter
18904 man ci
18905 \family default
18906  to understand the switches.
18907  
18908 \end_layout
18909
18910 \begin_layout Subsubsection
18911
18912 \family sans
18913 Check In Changes
18914 \end_layout
18915
18916 \begin_layout Standard
18917 When you are finished editing a file, you check in your changes.
18918  When you do this, you are asked for a description of the changes.
18919  This is stored in the history log.
18920  The version number is bumped, your changes are applied to the master RCS
18921  file, the document is unlocked and set to Read-Only mode.
18922 \end_layout
18923
18924 \begin_layout Standard
18925 RCS command: 
18926 \family typewriter
18927 ci -q -u -m"<description>" <file-name>
18928 \end_layout
18929
18930 \begin_layout Subsubsection
18931
18932 \family sans
18933 Check Out For Edit
18934 \end_layout
18935
18936 \begin_layout Standard
18937 By doing this you lock the document so that only you can edit it.
18938  This will also make the document Read-Write only for you.
18939  You will usually continue editing for a while and when you are finished
18940  you check in your changes.
18941  The status line is changed to reflect that you have locked the file.
18942 \end_layout
18943
18944 \begin_layout Standard
18945 RCS command: 
18946 \family typewriter
18947 co -q -l <file-name>
18948 \end_layout
18949
18950 \begin_layout Subsubsection
18951
18952 \family sans
18953 Revert To Repository Version
18954 \end_layout
18955
18956 \begin_layout Standard
18957 This will discard all changes made to the document since the last check
18958  in.
18959  You get a warning before changes are discarded.
18960 \end_layout
18961
18962 \begin_layout Standard
18963 RCS command: 
18964 \family typewriter
18965 co -f -u<version> <file-name>
18966 \end_layout
18967
18968 \begin_layout Subsubsection
18969
18970 \family sans
18971 Copy
18972 \end_layout
18973
18974 \begin_layout Standard
18975 This will create a copy of the current document.
18976  Since RCS does not support copy operations natively, the version history
18977  is not preserved, and the copy is added as a new file.
18978  It requires a clean document without any changes since the last checkin.
18979  You are asked for a file name and a description of the copy operation.
18980  After that the copy is created, both locally and in the repository.
18981  If the parent directories of the copied and original document differ, all
18982  relative paths of included files of the copy are adjusted (like in 
18983 \family sans
18984 File\SpecialChar menuseparator
18985 Save As
18986 \family default
18987 \SpecialChar ldots
18988 ).
18989  Finally, the copy is loaded instead of the original document.
18990 \end_layout
18991
18992 \begin_layout Labeling
18993 \labelwidthstring 00.00.0000
18994 RCS
18995 \begin_inset space ~
18996 \end_inset
18997
18998 commands: 
18999 \begin_inset space ~
19000 \end_inset
19001
19002
19003 \begin_inset Newline newline
19004 \end_inset
19005
19006 Copy 
19007 \begin_inset Flex Code
19008 status collapsed
19009
19010 \begin_layout Plain Layout
19011
19012 \family typewriter
19013 \begin_inset Quotes eld
19014 \end_inset
19015
19016 <file-name>
19017 \begin_inset Quotes erd
19018 \end_inset
19019
19020
19021 \end_layout
19022
19023 \end_inset
19024
19025  to 
19026 \begin_inset Flex Code
19027 status collapsed
19028
19029 \begin_layout Plain Layout
19030
19031 \family typewriter
19032 \begin_inset Quotes eld
19033 \end_inset
19034
19035 <new-file-name>
19036 \begin_inset Quotes erd
19037 \end_inset
19038
19039
19040 \end_layout
19041
19042 \end_inset
19043
19044
19045 \begin_inset Newline newline
19046 \end_inset
19047
19048
19049 \begin_inset Flex Code
19050 status collapsed
19051
19052 \begin_layout Plain Layout
19053 ci -q -u 
19054 \family typewriter
19055 -i 
19056 \begin_inset Quotes eld
19057 \end_inset
19058
19059 <new-file-name>
19060 \begin_inset Quotes erd
19061 \end_inset
19062
19063
19064 \end_layout
19065
19066 \end_inset
19067
19068
19069 \end_layout
19070
19071 \begin_layout Subsubsection
19072
19073 \family sans
19074 Undo Last Checkin
19075 \end_layout
19076
19077 \begin_layout Standard
19078 This makes as if the last check in never happened.
19079  No changes are made to the document loaded into \SpecialChar LyX
19080 , but the last version
19081  is removed from the master RCS file.
19082 \end_layout
19083
19084 \begin_layout Standard
19085 RCS command: 
19086 \family typewriter
19087 rcs -o<version> <file-name>
19088 \end_layout
19089
19090 \begin_layout Subsubsection
19091
19092 \family sans
19093 Show History
19094 \end_layout
19095
19096 \begin_layout Standard
19097 This shows the complete history of the RCS document.
19098  The output of 
19099 \family typewriter
19100 rlog <file-name>
19101 \family default
19102  is shown in a browser.
19103  See 
19104 \family typewriter
19105 man rlog
19106 \family default
19107  for more info.
19108 \end_layout
19109
19110 \begin_layout Subsubsection
19111 Revision info
19112 \end_layout
19113
19114 \begin_layout Standard
19115 \SpecialChar LyX
19116  supports RCS version number, author name, date and time of last commit.
19117  All those are extracted from 
19118 \family typewriter
19119 rlog -r <file-name>
19120 \family default
19121 .
19122  See 
19123 \begin_inset CommandInset ref
19124 LatexCommand ref
19125 reference "subsec:VCS-Revision-Information"
19126
19127 \end_inset
19128
19129  for details.
19130 \end_layout
19131
19132 \begin_layout Subsection
19133 CVS commands in \SpecialChar LyX
19134
19135 \end_layout
19136
19137 \begin_layout Standard
19138 A subset of CVS operations is supported by \SpecialChar LyX
19139 .
19140  You can find the commands in the 
19141 \family sans
19142 File\SpecialChar menuseparator
19143 Version
19144 \begin_inset space ~
19145 \end_inset
19146
19147 Control
19148 \family default
19149  submenu.
19150  The version control system SVN is more powerful, so please use it instead
19151  of CVS if possible.
19152 \end_layout
19153
19154 \begin_layout Subsubsection
19155
19156 \family sans
19157 General CVS usage
19158 \end_layout
19159
19160 \begin_layout Standard
19161 If you start from scratch with CVS you have to create your repository and
19162  checkout the working copy with external tools.
19163  If you're using a client-server setup you may need to login before doing
19164  the first repository checkout.
19165 \end_layout
19166
19167 \begin_layout Standard
19168 If your documents are under revision control and others are using the same
19169  repository problems arise when different changes to the same document at
19170  the same location happen.
19171  Standard CVS repositories don't operate with a file locking mechanism.
19172  This may be surprising, but conflicts only occur if people disagree on
19173  the proper content of the same part of a document.
19174  So, if co-workers are used to communicate regularly, these conflicts occur
19175  rarely.
19176  If they don't communicate they have a fundamental problem anyway.
19177  Nevertheless some people like to work with so called 
19178 \begin_inset Quotes eld
19179 \end_inset
19180
19181 reserved checkouts
19182 \begin_inset Quotes erd
19183 \end_inset
19184
19185 .
19186  If they do so the working copy of all files is readonly when checked out
19187  first and the user starts editing after using a special command to make
19188  the working copy writable.
19189  When the changes are checked in the working copy returns to readonly state.
19190  With \SpecialChar LyX
19191  one has to edit the 
19192 \begin_inset Flex Code
19193 status collapsed
19194
19195 \begin_layout Plain Layout
19196 .cvsrc
19197 \end_layout
19198
19199 \end_inset
19200
19201  file and add the line 
19202 \begin_inset Flex Code
19203 status collapsed
19204
19205 \begin_layout Plain Layout
19206 cvs -r
19207 \end_layout
19208
19209 \end_inset
19210
19211  to work with reserved checkouts.
19212  The benefit is the possibility to see who is using a writable copy of some
19213  document.
19214  It's not guaranteed only one user makes a copy writable.
19215 \end_layout
19216
19217 \begin_layout Standard
19218 \SpecialChar LyX
19219  tries to guess if you're using reserved or non-reserved checkouts.
19220  If your working copy is readonly or it is writable and an additional copy
19221  of your document exists in the CVS/Base sub-directory a reserved otherwise
19222  a non-reserved checkout is assumed.
19223  When a reserved checkout is detected you have to use 
19224 \begin_inset Flex Noun
19225 status collapsed
19226
19227 \begin_layout Plain Layout
19228 Check Out
19229 \end_layout
19230
19231 \end_inset
19232
19233  to make your working copy writable if it's readonly.
19234  After doing so the 
19235 \begin_inset Flex Noun
19236 status collapsed
19237
19238 \begin_layout Plain Layout
19239 Check In
19240 \end_layout
19241
19242 \end_inset
19243
19244  operation is possible and that makes your working copy readonly again after
19245  transferring your changes to the repository.
19246 \end_layout
19247
19248 \begin_layout Standard
19249 More information about CVS can be found here 
19250 \begin_inset Flex URL
19251 status collapsed
19252
19253 \begin_layout Plain Layout
19254
19255 http://www.nongnu.org/cvs
19256 \end_layout
19257
19258 \end_inset
19259
19260  and here 
19261 \begin_inset Flex URL
19262 status collapsed
19263
19264 \begin_layout Plain Layout
19265
19266 http://ximbiot.com/cvs
19267 \end_layout
19268
19269 \end_inset
19270
19271 .
19272 \end_layout
19273
19274 \begin_layout Standard
19275 Read 
19276 \family typewriter
19277 man cvs
19278 \family default
19279  to understand the sub-commands and the switches mentioned below.
19280 \end_layout
19281
19282 \begin_layout Subsubsection
19283
19284 \family sans
19285 Register
19286 \end_layout
19287
19288 \begin_layout Standard
19289 If your document is not under revision control, this is the only item shown
19290  in the menu.
19291  And if it is under revision control, the 
19292 \family sans
19293 Register
19294 \family default
19295  item is not visible.
19296  
19297 \end_layout
19298
19299 \begin_layout Standard
19300 This command registers in CVS your document 
19301 \begin_inset Flex Strong
19302 status collapsed
19303
19304 \begin_layout Plain Layout
19305
19306 \emph on
19307 only
19308 \end_layout
19309
19310 \end_inset
19311
19312  in the case you have already the documents directory under CVS control
19313  (in particular 
19314 \family typewriter
19315 CVS/Entries
19316 \family default
19317  file exists).
19318  This means you have to create or checkout the archive by yourself using
19319  external tools.
19320  (In case you forget that step \SpecialChar LyX
19321  registers the document with RCS.)
19322 \end_layout
19323
19324 \begin_layout Standard
19325 Then you are asked interactively to supply an initial description of the
19326  document.
19327  Don't forget that registered file is not yet checked in.
19328 \end_layout
19329
19330 \begin_layout Standard
19331 CVS command that is run: 
19332 \family typewriter
19333 cvs -q add -m"<entered message>" "<file-name>"
19334 \end_layout
19335
19336 \begin_layout Standard
19337 The term 
19338 \family typewriter
19339 "<file-name>"
19340 \family default
19341  above and for all other CVS commands is an abbreviation for 
19342 \begin_inset Quotes eld
19343 \end_inset
19344
19345 change the current working directory to file location and use the file name
19346  without path component as argument
19347 \begin_inset Quotes erd
19348 \end_inset
19349
19350 .
19351 \end_layout
19352
19353 \begin_layout Subsubsection
19354
19355 \family sans
19356 Check In Changes
19357 \end_layout
19358
19359 \begin_layout Standard
19360 When you are finished editing a file, you commit your changes.
19361  When you do this and you had changed the document, you are asked for a
19362  description of the changes.
19363  After that changes are written to the repository.
19364  In case you didn't change the document and a reserved checkout is detected
19365  the reservation made on 
19366 \begin_inset Flex Noun
19367 status collapsed
19368
19369 \begin_layout Plain Layout
19370 Check Out
19371 \end_layout
19372
19373 \end_inset
19374
19375  is undone.
19376 \end_layout
19377
19378 \begin_layout Labeling
19379 \labelwidthstring 00.00.0000
19380 CVS
19381 \begin_inset space ~
19382 \end_inset
19383
19384 command: 
19385 \begin_inset space ~
19386 \end_inset
19387
19388
19389 \begin_inset Newline newline
19390 \end_inset
19391
19392
19393 \begin_inset Flex Code
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 cvs 
19398 \family typewriter
19399 -q commit -m"<description>" "<file-name>"
19400 \end_layout
19401
19402 \end_inset
19403
19404  or
19405 \begin_inset Newline newline
19406 \end_inset
19407
19408
19409 \begin_inset Flex Code
19410 status collapsed
19411
19412 \begin_layout Plain Layout
19413 cvs -q unedit 
19414 \family typewriter
19415 "<file-name>"
19416 \end_layout
19417
19418 \end_inset
19419
19420
19421 \end_layout
19422
19423 \begin_layout Subsubsection
19424
19425 \family sans
19426 Check Out Changes
19427 \end_layout
19428
19429 \begin_layout Standard
19430 When you are sharing a repository with others, you may have to incorporate
19431  their changes into your working copy.
19432 \end_layout
19433
19434 \begin_layout Standard
19435 CVS command: 
19436 \family typewriter
19437 cvs -q update "<file-name>"
19438 \end_layout
19439
19440 \begin_layout Standard
19441 If a readonly checkout is detected the working copy is made writable and
19442  reserved.
19443 \end_layout
19444
19445 \begin_layout Standard
19446 CVS command: 
19447 \family typewriter
19448 cvs -q edit "<file-name>"
19449 \end_layout
19450
19451 \begin_layout Subsubsection
19452
19453 \family sans
19454 Revert To Repository Version
19455 \end_layout
19456
19457 \begin_layout Standard
19458 This will discard all changes made to the document since the last check
19459  in.
19460  You get a warning before changes are discarded.
19461  Firstly the file is deleted, secondly CVS update command is run.
19462 \end_layout
19463
19464 \begin_layout Standard
19465 CVS command: 
19466 \family typewriter
19467 cvs -q update "<file-name>"
19468 \end_layout
19469
19470 \begin_layout Standard
19471 If a reserved checkout is detected and the working copy has no changes only
19472  the reservation is undone.
19473 \end_layout
19474
19475 \begin_layout Standard
19476 CVS command: 
19477 \family typewriter
19478 cvs -q unedit "<file-name>"
19479 \end_layout
19480
19481 \begin_layout Subsubsection
19482
19483 \family sans
19484 Copy
19485 \end_layout
19486
19487 \begin_layout Standard
19488 This will create a copy of the current document.
19489  Since CVS does not support copy operations natively, the version history
19490  is not preserved, and the copy is added as a new file.
19491  It requires a clean document without any changes since the last checkin.
19492  You are asked for a file name and a description of the copy operation.
19493  After that the copy is created, both locally and in the repository.
19494  If the parent directories of the copied and original document differ, all
19495  relative paths of included files of the copy are adjusted (like in 
19496 \family sans
19497 File\SpecialChar menuseparator
19498 Save As
19499 \family default
19500 \SpecialChar ldots
19501 ).
19502  Finally, the copy is loaded instead of the original document.
19503 \end_layout
19504
19505 \begin_layout Labeling
19506 \labelwidthstring 00.00.0000
19507 CVS
19508 \begin_inset space ~
19509 \end_inset
19510
19511 commands: 
19512 \begin_inset space ~
19513 \end_inset
19514
19515
19516 \begin_inset Newline newline
19517 \end_inset
19518
19519 Copy 
19520 \begin_inset Flex Code
19521 status collapsed
19522
19523 \begin_layout Plain Layout
19524
19525 \family typewriter
19526 \begin_inset Quotes eld
19527 \end_inset
19528
19529 <file-name>
19530 \begin_inset Quotes erd
19531 \end_inset
19532
19533
19534 \end_layout
19535
19536 \end_inset
19537
19538  to 
19539 \begin_inset Flex Code
19540 status collapsed
19541
19542 \begin_layout Plain Layout
19543
19544 \family typewriter
19545 \begin_inset Quotes eld
19546 \end_inset
19547
19548 <new-file-name>
19549 \begin_inset Quotes erd
19550 \end_inset
19551
19552
19553 \end_layout
19554
19555 \end_inset
19556
19557
19558 \begin_inset Newline newline
19559 \end_inset
19560
19561
19562 \begin_inset Flex Code
19563 status collapsed
19564
19565 \begin_layout Plain Layout
19566 cvs -q add 
19567 \family typewriter
19568
19569 \begin_inset Quotes eld
19570 \end_inset
19571
19572 <new-file-name>
19573 \begin_inset Quotes erd
19574 \end_inset
19575
19576
19577 \end_layout
19578
19579 \end_inset
19580
19581
19582 \end_layout
19583
19584 \begin_layout Subsubsection
19585
19586 \family sans
19587 Rename
19588 \end_layout
19589
19590 \begin_layout Standard
19591 This will rename the current document.
19592  Since CVS does not support rename operations natively, the version history
19593  is not preserved, the renamed document is added as a new file, and the
19594  original document is deleted.
19595  It requires a clean document without any changes since the last checkin.
19596  You are asked for a file name and a description of the rename operation.
19597  After that the document is renamed, both locally and in the repository.
19598  If the parent directories of the new and old file names differ, all relative
19599  paths of included files are adjusted (like in 
19600 \family sans
19601 File\SpecialChar menuseparator
19602 Save As
19603 \family default
19604 \SpecialChar ldots
19605 ).
19606  Finally, the document is reloaded using the new name.
19607 \end_layout
19608
19609 \begin_layout Labeling
19610 \labelwidthstring 00.00.0000
19611 CVS
19612 \begin_inset space ~
19613 \end_inset
19614
19615 commands: 
19616 \begin_inset space ~
19617 \end_inset
19618
19619
19620 \begin_inset Newline newline
19621 \end_inset
19622
19623 Rename 
19624 \begin_inset Flex Code
19625 status collapsed
19626
19627 \begin_layout Plain Layout
19628
19629 \family typewriter
19630 \begin_inset Quotes eld
19631 \end_inset
19632
19633 <file-name>
19634 \begin_inset Quotes erd
19635 \end_inset
19636
19637
19638 \end_layout
19639
19640 \end_inset
19641
19642  to 
19643 \begin_inset Flex Code
19644 status collapsed
19645
19646 \begin_layout Plain Layout
19647
19648 \family typewriter
19649 \begin_inset Quotes eld
19650 \end_inset
19651
19652 <new-file-name>
19653 \begin_inset Quotes erd
19654 \end_inset
19655
19656
19657 \end_layout
19658
19659 \end_inset
19660
19661
19662 \begin_inset Newline newline
19663 \end_inset
19664
19665
19666 \begin_inset Flex Code
19667 status collapsed
19668
19669 \begin_layout Plain Layout
19670 cvs -q add 
19671 \family typewriter
19672
19673 \begin_inset Quotes eld
19674 \end_inset
19675
19676 <new-file-name>
19677 \begin_inset Quotes erd
19678 \end_inset
19679
19680
19681 \end_layout
19682
19683 \end_inset
19684
19685
19686 \begin_inset Newline newline
19687 \end_inset
19688
19689
19690 \begin_inset Flex Code
19691 status collapsed
19692
19693 \begin_layout Plain Layout
19694 cvs -q remove 
19695 \family typewriter
19696
19697 \begin_inset Quotes eld
19698 \end_inset
19699
19700 <file-name>
19701 \begin_inset Quotes erd
19702 \end_inset
19703
19704
19705 \end_layout
19706
19707 \end_inset
19708
19709
19710 \end_layout
19711
19712 \begin_layout Subsubsection
19713 Update of the local directory checkout from repository
19714 \end_layout
19715
19716 \begin_layout Standard
19717 Once your documents gets more complex, containing sub-documents and pictures,
19718  including external 
19719 \begin_inset Flex Code
19720 status collapsed
19721
19722 \begin_layout Plain Layout
19723 .tex
19724 \end_layout
19725
19726 \end_inset
19727
19728  files and so on using version control becomes more complicated.
19729  \SpecialChar LyX
19730  supports updating the whole tree in which resides the document.
19731  This become especially useful once you cooperate with people which neither
19732  have detailed knowledge about CVS usage nor they have ambition to commit
19733  additional material to the repository.
19734  You have to organize the files structure so that all external files are
19735  in the same directory or subdirectories of the document.
19736  It's good practice anyway to store multipart documents in an extra directory.
19737 \end_layout
19738
19739 \begin_layout Standard
19740 The 
19741 \begin_inset Flex Code
19742 status collapsed
19743
19744 \begin_layout Plain Layout
19745 Update local directory from repository
19746 \end_layout
19747
19748 \end_inset
19749
19750  command updates the whole directory.
19751  If local changes are detected user is warned before update starts.
19752  In case of merge conflicts both versions of the conflicting document parts
19753  are placed in the final document.
19754  You have to review and correct the result of the merge.
19755  You'll find the conflicts enclosed in pairs of 
19756 \begin_inset Flex Code
19757 status collapsed
19758
19759 \begin_layout Plain Layout
19760 <<<<<<<
19761 \end_layout
19762
19763 \end_inset
19764
19765  and 
19766 \begin_inset Flex Code
19767 status collapsed
19768
19769 \begin_layout Plain Layout
19770 >>>>>>>
19771 \end_layout
19772
19773 \end_inset
19774
19775  separated by 
19776 \begin_inset Flex Code
19777 status collapsed
19778
19779 \begin_layout Plain Layout
19780 =======
19781 \end_layout
19782
19783 \end_inset
19784
19785 .
19786  The first part is your version as before the update operation with the
19787  document name prepended.
19788  The second one is the repository version with the version number after
19789  the sequence of 
19790 \begin_inset Flex Code
19791 status collapsed
19792
19793 \begin_layout Plain Layout
19794 >
19795 \end_layout
19796
19797 \end_inset
19798
19799  signs.
19800 \end_layout
19801
19802 \begin_layout Labeling
19803 \labelwidthstring 00.00.0000
19804 CVS
19805 \begin_inset space ~
19806 \end_inset
19807
19808 commands: 
19809 \begin_inset space ~
19810 \end_inset
19811
19812
19813 \begin_inset Newline newline
19814 \end_inset
19815
19816
19817 \begin_inset Flex Code
19818 status collapsed
19819
19820 \begin_layout Plain Layout
19821 cd $path; cvs diff 
19822 \family typewriter
19823 "."
19824 \end_layout
19825
19826 \end_inset
19827
19828  (Ask if changes are detected.)
19829 \begin_inset Newline newline
19830 \end_inset
19831
19832
19833 \begin_inset Flex Code
19834 status collapsed
19835
19836 \begin_layout Plain Layout
19837 cd $path; cvs -q update 
19838 \family typewriter
19839 "."
19840 \end_layout
19841
19842 \end_inset
19843
19844
19845 \end_layout
19846
19847 \begin_layout Standard
19848 where 
19849 \begin_inset Flex Code
19850 status collapsed
19851
19852 \begin_layout Plain Layout
19853 $path
19854 \end_layout
19855
19856 \end_inset
19857
19858  stands for the path to the document.
19859 \end_layout
19860
19861 \begin_layout Subsubsection
19862
19863 \family sans
19864 Show History
19865 \end_layout
19866
19867 \begin_layout Standard
19868 This shows the complete history of the CVS document.
19869  The output of 
19870 \family typewriter
19871 cvs log "<file-name>"
19872 \family default
19873  is shown in a browser.
19874 \end_layout
19875
19876 \begin_layout Subsubsection
19877 Revision info
19878 \end_layout
19879
19880 \begin_layout Standard
19881 \SpecialChar LyX
19882  supports CVS version number, author name, date and time of last commit.
19883  All those are extracted from 
19884 \family typewriter
19885 cvs log -r <file-name>
19886 \family default
19887 .
19888  See 
19889 \begin_inset CommandInset ref
19890 LatexCommand ref
19891 reference "subsec:VCS-Revision-Information"
19892
19893 \end_inset
19894
19895  for details.
19896 \end_layout
19897
19898 \begin_layout Subsection
19899 SVN commands in \SpecialChar LyX
19900
19901 \end_layout
19902
19903 \begin_layout Standard
19904 SVN is now partially supported by \SpecialChar LyX
19905 .
19906  You can find the commands in the 
19907 \family sans
19908 File\SpecialChar menuseparator
19909 Version
19910 \begin_inset space ~
19911 \end_inset
19912
19913 Control
19914 \family default
19915  submenu.
19916  Please note that if you use password protected access to repository via
19917  ssh, you will be asked in terminal window.
19918  \SpecialChar LyX
19919  was tested against SVN 1.5, 1.6, 1.7 and 1.8
19920 \begin_inset Foot
19921 status open
19922
19923 \begin_layout Plain Layout
19924 Most of the commands will work with 1.4 too, see 
19925 \begin_inset CommandInset ref
19926 LatexCommand ref
19927 reference "subsec:SVN-Repo-Update"
19928
19929 \end_inset
19930
19931 .
19932  There seems to be currently unresolved permissions problem under SVN 1.8
19933  with reverting changes when file is locked.
19934 \end_layout
19935
19936 \end_inset
19937
19938
19939 \end_layout
19940
19941 \begin_layout Subsubsection
19942
19943 \family sans
19944 Register
19945 \end_layout
19946
19947 \begin_layout Standard
19948 If your document is not under revision control, this is the only item shown
19949  in the menu.
19950  And if it is under revision control, the 
19951 \family sans
19952 Register
19953 \family default
19954  item is not visible.
19955 \end_layout
19956
19957 \begin_layout Standard
19958 This command registers in SVN your document ONLY in case you have already
19959  the documents directory under SVN control (in particular 
19960 \family typewriter
19961 .svn/entries
19962 \family default
19963  file exists).
19964  This means you have to checkout the archive by yourself.
19965 \end_layout
19966
19967 \begin_layout Standard
19968 Then you are asked interactively to supply an initial description of the
19969  document.
19970  Don't forget that registered file is not yet commited.
19971 \end_layout
19972
19973 \begin_layout Standard
19974 SVN command that is run: 
19975 \family typewriter
19976 svn add -q 
19977 \begin_inset Quotes eld
19978 \end_inset
19979
19980 <file-name>
19981 \begin_inset Quotes erd
19982 \end_inset
19983
19984
19985 \end_layout
19986
19987 \begin_layout Standard
19988 Read 
19989 \family typewriter
19990 man svn
19991 \family default
19992  to understand the switches.
19993 \end_layout
19994
19995 \begin_layout Subsubsection
19996
19997 \family sans
19998 Check In Changes
19999 \end_layout
20000
20001 \begin_layout Standard
20002 When you are finished editing a file, you commit your changes.
20003  When you do this, you are asked for a description of the changes.
20004  After that changes are commited.
20005 \end_layout
20006
20007 \begin_layout Standard
20008 SVN command:
20009 \begin_inset Foot
20010 status collapsed
20011
20012 \begin_layout Plain Layout
20013 In case locking is not enabled.
20014  See Section 
20015 \begin_inset CommandInset ref
20016 LatexCommand ref
20017 reference "subsec:SVN-File-Locking"
20018
20019 \end_inset
20020
20021 .
20022 \end_layout
20023
20024 \end_inset
20025
20026  
20027 \family typewriter
20028 svn commit -q -m"<description>" <file-name>
20029 \end_layout
20030
20031 \begin_layout Subsubsection
20032
20033 \family sans
20034 Check Out For Edit
20035 \end_layout
20036
20037 \begin_layout Standard
20038 Updates the changes of this file from the repository.
20039  Be sure you understand SVN merging and conflicts resolving before using
20040  this function, because all conflicts has to be resolved manually by you!
20041 \end_layout
20042
20043 \begin_layout Standard
20044 SVN command:
20045 \begin_inset Foot
20046 status collapsed
20047
20048 \begin_layout Plain Layout
20049 Ditto.
20050 \end_layout
20051
20052 \end_inset
20053
20054  
20055 \family typewriter
20056 svn update --non-interactive 
20057 \begin_inset Quotes eld
20058 \end_inset
20059
20060 <file-name>
20061 \begin_inset Quotes erd
20062 \end_inset
20063
20064
20065 \end_layout
20066
20067 \begin_layout Subsubsection
20068
20069 \family sans
20070 Revert To Repository Version
20071 \end_layout
20072
20073 \begin_layout Standard
20074 This will discard all changes made to the document since the last check
20075  in.
20076  You get a warning before changes are discarded.
20077 \end_layout
20078
20079 \begin_layout Standard
20080 SVN command: 
20081 \family typewriter
20082 svn revert -q 
20083 \begin_inset Quotes eld
20084 \end_inset
20085
20086 <file-name>
20087 \begin_inset Quotes erd
20088 \end_inset
20089
20090
20091 \end_layout
20092
20093 \begin_layout Subsubsection
20094
20095 \family sans
20096 Copy
20097 \end_layout
20098
20099 \begin_layout Standard
20100 This will create a copy of the current document including the version history.
20101  It requires a clean document without any changes since the last checkin.
20102  You are asked for a file name and a description of the copy operation.
20103  After that the copy is created, both locally and in the repository.
20104  If the parent directories of the copied and original document differ, all
20105  relative paths of included files of the copy are adjusted (like in 
20106 \family sans
20107 File\SpecialChar menuseparator
20108 Save As
20109 \family default
20110 \SpecialChar ldots
20111 ).
20112  Finally, the copy is loaded instead of the original document.
20113 \end_layout
20114
20115 \begin_layout Labeling
20116 \labelwidthstring 00.00.0000
20117 SVN
20118 \begin_inset space ~
20119 \end_inset
20120
20121 commands: 
20122 \begin_inset space ~
20123 \end_inset
20124
20125
20126 \begin_inset Newline newline
20127 \end_inset
20128
20129
20130 \begin_inset Flex Code
20131 status collapsed
20132
20133 \begin_layout Plain Layout
20134 svn copy -q 
20135 \family typewriter
20136
20137 \begin_inset Quotes eld
20138 \end_inset
20139
20140 <file-name>
20141 \begin_inset Quotes erd
20142 \end_inset
20143
20144  
20145 \begin_inset Quotes eld
20146 \end_inset
20147
20148 <new-file-name>
20149 \begin_inset Quotes erd
20150 \end_inset
20151
20152
20153 \end_layout
20154
20155 \end_inset
20156
20157
20158 \begin_inset Newline newline
20159 \end_inset
20160
20161
20162 \begin_inset Flex Code
20163 status collapsed
20164
20165 \begin_layout Plain Layout
20166 svn commit
20167 \end_layout
20168
20169 \end_inset
20170
20171
20172 \end_layout
20173
20174 \begin_layout Subsubsection
20175
20176 \family sans
20177 Rename
20178 \end_layout
20179
20180 \begin_layout Standard
20181 This will rename the current document including the version history.
20182  It requires a clean document without any changes since the last checkin.
20183  You are asked for a file name and a description of the rename operation.
20184  After that the document is renamed, both locally and in the repository.
20185  If the parent directories of the new and old file names differ, all relative
20186  paths of included files are adjusted (like in 
20187 \family sans
20188 File\SpecialChar menuseparator
20189 Save As
20190 \family default
20191 \SpecialChar ldots
20192 ).
20193  Finally, the document is reloaded using the new name.
20194 \end_layout
20195
20196 \begin_layout Labeling
20197 \labelwidthstring 00.00.0000
20198 SVN
20199 \begin_inset space ~
20200 \end_inset
20201
20202 commands: 
20203 \begin_inset space ~
20204 \end_inset
20205
20206
20207 \begin_inset Newline newline
20208 \end_inset
20209
20210
20211 \begin_inset Flex Code
20212 status collapsed
20213
20214 \begin_layout Plain Layout
20215 svn move -q 
20216 \family typewriter
20217
20218 \begin_inset Quotes eld
20219 \end_inset
20220
20221 <file-name>
20222 \begin_inset Quotes erd
20223 \end_inset
20224
20225  
20226 \begin_inset Quotes eld
20227 \end_inset
20228
20229 <new-file-name>
20230 \begin_inset Quotes erd
20231 \end_inset
20232
20233
20234 \end_layout
20235
20236 \end_inset
20237
20238
20239 \begin_inset Newline newline
20240 \end_inset
20241
20242
20243 \begin_inset Flex Code
20244 status collapsed
20245
20246 \begin_layout Plain Layout
20247 svn commit
20248 \end_layout
20249
20250 \end_inset
20251
20252
20253 \end_layout
20254
20255 \begin_layout Subsubsection
20256 \begin_inset CommandInset label
20257 LatexCommand label
20258 name "subsec:SVN-Repo-Update"
20259
20260 \end_inset
20261
20262 Update of the local directory checkout from repository
20263 \begin_inset Foot
20264 status collapsed
20265
20266 \begin_layout Plain Layout
20267 Note that this command will work only with subversion 
20268 \begin_inset Formula $\geqq1.5$
20269 \end_inset
20270
20271
20272 \end_layout
20273
20274 \end_inset
20275
20276
20277 \end_layout
20278
20279 \begin_layout Standard
20280 All the commands above have one shortcomming - they deal with the current
20281  document only.
20282  Once your document contains pictures, includes external 
20283 \begin_inset Flex Code
20284 status collapsed
20285
20286 \begin_layout Plain Layout
20287 .tex
20288 \end_layout
20289
20290 \end_inset
20291
20292  files and so on administration becomes more complicated.
20293  \SpecialChar LyX
20294  now supports updating the whole tree in which resides the document
20295 \begin_inset Foot
20296 status collapsed
20297
20298 \begin_layout Plain Layout
20299 One need to organize the files structure so that all external files are
20300  in the same directory or subdirectories of the document.
20301  
20302 \end_layout
20303
20304 \end_inset
20305
20306 .
20307  This become especially useful once you cooperate with people which neither
20308  know about subversion management nor they have ambition to commit additional
20309  material to the repository.
20310  
20311 \end_layout
20312
20313 \begin_layout Standard
20314 \begin_inset Flex Code
20315 status collapsed
20316
20317 \begin_layout Plain Layout
20318 Update local directory from repository
20319 \end_layout
20320
20321 \end_inset
20322
20323  command updates the whole directory and in case of merge conflicts local
20324  version of the files are left, so no unintended data loss occurs.
20325  If local changes are detected user is warned before update starts.
20326 \end_layout
20327
20328 \begin_layout Labeling
20329 \labelwidthstring 00.00.0000
20330 SVN
20331 \begin_inset space ~
20332 \end_inset
20333
20334 commands: 
20335 \begin_inset space ~
20336 \end_inset
20337
20338
20339 \begin_inset Newline newline
20340 \end_inset
20341
20342
20343 \begin_inset Flex Code
20344 status collapsed
20345
20346 \begin_layout Plain Layout
20347 svn diff $path
20348 \end_layout
20349
20350 \end_inset
20351
20352  (Ask if changes are detected.)
20353 \begin_inset Newline newline
20354 \end_inset
20355
20356
20357 \begin_inset Flex Code
20358 status collapsed
20359
20360 \begin_layout Plain Layout
20361 svn update –accept mine-full $path
20362 \end_layout
20363
20364 \end_inset
20365
20366
20367 \end_layout
20368
20369 \begin_layout Standard
20370 where 
20371 \begin_inset Flex Code
20372 status collapsed
20373
20374 \begin_layout Plain Layout
20375 $path
20376 \end_layout
20377
20378 \end_inset
20379
20380  stands for the path to the document.
20381 \end_layout
20382
20383 \begin_layout Subsubsection
20384
20385 \family sans
20386 Show History
20387 \end_layout
20388
20389 \begin_layout Standard
20390 This shows the complete history of the SVN document.
20391  The output of 
20392 \family typewriter
20393 svn log 
20394 \begin_inset Quotes eld
20395 \end_inset
20396
20397 <file-name>
20398 \begin_inset Quotes erd
20399 \end_inset
20400
20401
20402 \family default
20403  is shown in a browser.
20404 \end_layout
20405
20406 \begin_layout Subsubsection
20407 File Locking
20408 \begin_inset CommandInset label
20409 LatexCommand label
20410 name "subsec:SVN-File-Locking"
20411
20412 \end_inset
20413
20414
20415 \end_layout
20416
20417 \begin_layout Standard
20418 The file exchange through various revision control systems brings the problem
20419  of merge conflicts in case two different users try to edit the same (parts
20420  of) document.
20421  When such a conflict happens it needs manual resolving and one reasonable
20422  alternative is to provide some kind of locking mechanism, which guarantees
20423  that only one user is allowed to edit file at the given time.
20424 \end_layout
20425
20426 \begin_layout Standard
20427 SVN has two such mechanisms to provide mutual exclusivity for file access
20428  - locks and automatic setting of write permissions (see sec.
20429  
20430 \begin_inset CommandInset ref
20431 LatexCommand ref
20432 reference "subsec:Automatical-Locking-Property"
20433
20434 \end_inset
20435
20436 ) based on 
20437 \begin_inset Flex Code
20438 status collapsed
20439
20440 \begin_layout Plain Layout
20441 svn:needs-lock
20442 \end_layout
20443
20444 \end_inset
20445
20446  file svn property
20447 \begin_inset Foot
20448 status open
20449
20450 \begin_layout Plain Layout
20451 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
20452 \end_layout
20453
20454 \end_inset
20455
20456 .
20457  If this property is detected for a given document \SpecialChar LyX
20458  starts to use SVN locks
20459  for document editing automatically and the whole check-in/out mechanism
20460  switches to the same regimen as for RCS.
20461  This in particular means there are two different modes of file use in \SpecialChar LyX
20462 :
20463 \end_layout
20464
20465 \begin_layout Itemize
20466 Unlocked state.
20467  The loaded file is in the read-only mode.
20468  For editing on needs to check-out.
20469  
20470 \emph on
20471 Check-out
20472 \emph default
20473  consists of updating from the repository and gaining write lock.
20474  If the lock is not possible to obtain, we remain in unlocked state.
20475 \end_layout
20476
20477 \begin_layout Itemize
20478 Locked state.
20479  The loaded file is in the 'normal' edit mode.
20480  No other user is allowed to edit the file.
20481  
20482 \emph on
20483 Check-in
20484 \emph default
20485  consists of commiting changes and releasing write-lock.
20486  If no changes have been made to the document, no commit will be produced
20487 \begin_inset Foot
20488 status collapsed
20489
20490 \begin_layout Plain Layout
20491 Don't be puzzled by the fact that you will be asked for commit message anyway.
20492 \end_layout
20493
20494 \end_inset
20495
20496  and only the write-lock will be released.
20497 \end_layout
20498
20499 \begin_layout Standard
20500 SVN commands:
20501 \end_layout
20502
20503 \begin_layout Labeling
20504 \labelwidthstring 00.00.0000
20505 Check-in:
20506 \family typewriter
20507  svn commit -q -m"<description>" "<file-name>"
20508 \begin_inset Newline newline
20509 \end_inset
20510
20511 svn unlock "<file-name>"
20512 \end_layout
20513
20514 \begin_layout Labeling
20515 \labelwidthstring 00.00.0000
20516 Check-out: 
20517 \family typewriter
20518 svn update "<file-name>"
20519 \begin_inset Newline newline
20520 \end_inset
20521
20522 svn lock "<file-name>"
20523 \end_layout
20524
20525 \begin_layout Subsubsection
20526
20527 \family typewriter
20528 \begin_inset CommandInset label
20529 LatexCommand label
20530 name "subsec:Automatical-Locking-Property"
20531
20532 \end_inset
20533
20534
20535 \family default
20536 Automatic Locking Property
20537 \end_layout
20538
20539 \begin_layout Standard
20540 The above mentioned automatic setting of write permissions of the .lyx file
20541  can be set through
20542 \family sans
20543  File\SpecialChar menuseparator
20544 Version
20545 \begin_inset space ~
20546 \end_inset
20547
20548 Control\SpecialChar menuseparator
20549 Toggle locking property
20550 \family default
20551 .
20552  This command is active only when the file is not locked on the svn server
20553  (i.e.
20554  you need to check-out before proceeding).
20555 \end_layout
20556
20557 \begin_layout Labeling
20558 \labelwidthstring 00.00.0000
20559 SVN
20560 \begin_inset space ~
20561 \end_inset
20562
20563 commands:
20564 \end_layout
20565
20566 \begin_layout Labeling
20567 \labelwidthstring 00.00.0000
20568 Set:
20569 \family typewriter
20570  svn propset svn:needs-lock ON "<file-name>"
20571 \end_layout
20572
20573 \begin_layout Labeling
20574 \labelwidthstring 00.00.0000
20575 Unset: 
20576 \family typewriter
20577 svn propdel svn:needs-lock "<file-name>"
20578 \end_layout
20579
20580 \begin_layout Subsubsection
20581 \begin_inset CommandInset label
20582 LatexCommand label
20583 name "subsec:VCS-Revision-Information"
20584
20585 \end_inset
20586
20587 Revision Information in Documents
20588 \end_layout
20589
20590 \begin_layout Standard
20591 There are more possibilities how to activate revision information in our
20592  document.
20593 \end_layout
20594
20595 \begin_layout Itemize
20596 \SpecialChar LyX
20597  supports directly:
20598 \end_layout
20599
20600 \begin_deeper
20601 \begin_layout Itemize
20602 tree revision information (
20603 \begin_inset Flex Code
20604 status collapsed
20605
20606 \begin_layout Plain Layout
20607 vcs-tree-revision
20608 \end_layout
20609
20610 \end_inset
20611
20612 ).
20613  The result is the output of the 
20614 \begin_inset Flex Code
20615 status collapsed
20616
20617 \begin_layout Plain Layout
20618 svnversion
20619 \end_layout
20620
20621 \end_inset
20622
20623  command, the following table gives you an idea, how to read the results.
20624 \end_layout
20625
20626 \begin_layout Standard
20627 \align center
20628 \begin_inset Tabular
20629 <lyxtabular version="3" rows="6" columns="2">
20630 <features tabularvalignment="middle">
20631 <column alignment="center" valignment="top">
20632 <column alignment="center" valignment="top">
20633 <row>
20634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20635 \begin_inset Text
20636
20637 \begin_layout Plain Layout
20638 Output
20639 \end_layout
20640
20641 \end_inset
20642 </cell>
20643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20644 \begin_inset Text
20645
20646 \begin_layout Plain Layout
20647 Meaning
20648 \end_layout
20649
20650 \end_inset
20651 </cell>
20652 </row>
20653 <row>
20654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20655 \begin_inset Text
20656
20657 \begin_layout Plain Layout
20658 4123:4168
20659 \end_layout
20660
20661 \end_inset
20662 </cell>
20663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20664 \begin_inset Text
20665
20666 \begin_layout Plain Layout
20667 mixed revision working copy
20668 \end_layout
20669
20670 \end_inset
20671 </cell>
20672 </row>
20673 <row>
20674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20675 \begin_inset Text
20676
20677 \begin_layout Plain Layout
20678 4168M
20679 \end_layout
20680
20681 \end_inset
20682 </cell>
20683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20684 \begin_inset Text
20685
20686 \begin_layout Plain Layout
20687 modified working copy
20688 \end_layout
20689
20690 \end_inset
20691 </cell>
20692 </row>
20693 <row>
20694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20695 \begin_inset Text
20696
20697 \begin_layout Plain Layout
20698 4123S
20699 \end_layout
20700
20701 \end_inset
20702 </cell>
20703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20704 \begin_inset Text
20705
20706 \begin_layout Plain Layout
20707 switched working copy
20708 \end_layout
20709
20710 \end_inset
20711 </cell>
20712 </row>
20713 <row>
20714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20715 \begin_inset Text
20716
20717 \begin_layout Plain Layout
20718 4123P
20719 \end_layout
20720
20721 \end_inset
20722 </cell>
20723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20724 \begin_inset Text
20725
20726 \begin_layout Plain Layout
20727 partial working copy, from a sparse checkout
20728 \end_layout
20729
20730 \end_inset
20731 </cell>
20732 </row>
20733 <row>
20734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20735 \begin_inset Text
20736
20737 \begin_layout Plain Layout
20738 4123:4168MS
20739 \end_layout
20740
20741 \end_inset
20742 </cell>
20743 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20744 \begin_inset Text
20745
20746 \begin_layout Plain Layout
20747 mixed revision, modified, switched working copy
20748 \end_layout
20749
20750 \end_inset
20751 </cell>
20752 </row>
20753 </lyxtabular>
20754
20755 \end_inset
20756
20757
20758 \end_layout
20759
20760 \begin_layout Itemize
20761 file revision information.
20762  The result comes from parsing the output of 
20763 \begin_inset Flex Code
20764 status collapsed
20765
20766 \begin_layout Plain Layout
20767 svn
20768 \begin_inset space ~
20769 \end_inset
20770
20771 info
20772 \begin_inset space ~
20773 \end_inset
20774
20775 –xml
20776 \begin_inset space ~
20777 \end_inset
20778
20779 file.lyx
20780 \end_layout
20781
20782 \end_inset
20783
20784 .
20785  Supported flags are:
20786 \end_layout
20787
20788 \begin_deeper
20789 \begin_layout Itemize
20790 version number of the last commit (
20791 \begin_inset Flex Code
20792 status collapsed
20793
20794 \begin_layout Plain Layout
20795 vcs-revision
20796 \end_layout
20797
20798 \end_inset
20799
20800 )
20801 \end_layout
20802
20803 \begin_layout Itemize
20804 author of the last commit (
20805 \begin_inset Flex Code
20806 status collapsed
20807
20808 \begin_layout Plain Layout
20809 vcs-author
20810 \end_layout
20811
20812 \end_inset
20813
20814 )
20815 \end_layout
20816
20817 \begin_layout Itemize
20818 date of the last commit (
20819 \begin_inset Flex Code
20820 status collapsed
20821
20822 \begin_layout Plain Layout
20823 vcs-date
20824 \end_layout
20825
20826 \end_inset
20827
20828 )
20829 \end_layout
20830
20831 \begin_layout Itemize
20832 time of the last commit (
20833 \begin_inset Flex Code
20834 status collapsed
20835
20836 \begin_layout Plain Layout
20837 vcs-time
20838 \end_layout
20839
20840 \end_inset
20841
20842 )
20843 \end_layout
20844
20845 \end_deeper
20846 \begin_layout Standard
20847 You can obtain this info via InsetInfo (e.g.
20848  
20849 \begin_inset Flex Code
20850 status collapsed
20851
20852 \begin_layout Plain Layout
20853 info-insert buffer vcs-date
20854 \end_layout
20855
20856 \end_inset
20857
20858 ).
20859  The information will be available only when you have the file stored under
20860  svn managment (i.e.
20861  the 
20862 \begin_inset Flex Code
20863 status collapsed
20864
20865 \begin_layout Plain Layout
20866 .svn
20867 \end_layout
20868
20869 \end_inset
20870
20871  directory is available with your document).
20872 \end_layout
20873
20874 \end_deeper
20875 \begin_layout Itemize
20876 Another—a hacking one—possibility is to use svn keywords
20877 \begin_inset Foot
20878 status collapsed
20879
20880 \begin_layout Plain Layout
20881 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20882 \end_layout
20883
20884 \end_inset
20885
20886 .
20887  In short – you set file keywords property (e.g.
20888  
20889 \family sans
20890 svn propset svn:keywords 'Rev' file.lyx
20891 \family default
20892 ) and then paste keyword \SpecialChar TeX
20893  code
20894 \begin_inset Foot
20895 status collapsed
20896
20897 \begin_layout Plain Layout
20898 This is an easy way how to ensure that \SpecialChar LyX
20899  won't break the line in the middle
20900  of keyword tag.
20901 \end_layout
20902
20903 \end_inset
20904
20905  tag in your document (e.g.
20906  
20907 \begin_inset ERT
20908 status open
20909
20910 \begin_layout Plain Layout
20911
20912 $Rev$
20913 \end_layout
20914
20915 \end_inset
20916
20917 ).
20918  This way svn client will automatically substitute revision number (e.g.
20919  
20920 \begin_inset ERT
20921 status open
20922
20923 \begin_layout Plain Layout
20924
20925 $Rev: 59 $
20926 \end_layout
20927
20928 \end_inset
20929
20930 ) after each update and commit.
20931  There are more problems with this approach.
20932  Firstly, the '$' character is used in \SpecialChar TeX
20933  world for math equations, so any
20934  occurence of math formula 
20935 \begin_inset Formula $Rev$
20936 \end_inset
20937
20938  become 
20939 \begin_inset Formula $Rev:59$
20940 \end_inset
20941
20942  in your \SpecialChar LyX
20943  document.
20944  Similarly for other keywords like Id, Date, Author, etc.
20945  Secondly svn output is dependent on your locales, so its very easy that
20946  svn would produce some problematic strings once Date is used.
20947  Thirdly you get the whole 'Rev: 59' string in your document instead of
20948  the plain number.
20949  Until subversion implements user's custom keywords it will be hard to use
20950  this approach reliably or let \SpecialChar LyX
20951  to support it directly.
20952 \end_layout
20953
20954 \begin_layout Subsection
20955 SVN and Windows Environment
20956 \end_layout
20957
20958 \begin_layout Quote
20959 My inclination is to say that if the user cannot figure out the command
20960  line operations on their own fairly quickly, they would be well advised
20961  to use TortoiseSVN.
20962  —P.
20963  A.
20964  Rubin
20965 \end_layout
20966
20967 \begin_layout Subsubsection
20968 Preparation
20969 \end_layout
20970
20971 \begin_layout Standard
20972 In addition to installing \SpecialChar LyX
20973 , and having access to a Subversion repository,
20974  the user will need to install the Subversion client program.
20975  A Windows installer for the client program is available from 
20976 \begin_inset CommandInset href
20977 LatexCommand href
20978 name "CollabNet"
20979 target "http://www.collab.net/nonav/downloads/subversion/"
20980
20981 \end_inset
20982
20983 .
20984  The user may also want to install 
20985 \begin_inset CommandInset href
20986 LatexCommand href
20987 name "TortoiseSVN"
20988 target "http://tortoisesvn.tigris.org/"
20989
20990 \end_inset
20991
20992 , which integrates Subversion operations into the context (rightclick) menu
20993  of Windows Explorer.
20994  Operations done outside \SpecialChar LyX
20995  will typically be more convenient using the Explorer
20996  context menu.
20997  Note that TortoiseSVN is not a replacement for the client program, which
20998  is what \SpecialChar LyX
20999  itself will use.
21000 \end_layout
21001
21002 \begin_layout Subsubsection
21003 Bringing a document under Subversion control
21004 \end_layout
21005
21006 \begin_layout Standard
21007 Before a \SpecialChar LyX
21008  document can be brought under version control in Subversion, its
21009  parent directory needs to be under version control.
21010  If the document is being added to a project already in the repository,
21011  this is accomplished by checking the project out to the directory where
21012  the new document will be placed.
21013  If the project itself is not yet under version control (for instance, if
21014  this document starts a new project), the directory must be imported into
21015  the repository.
21016  This is done outside \SpecialChar LyX
21017 .
21018  Both import and checkout are easily accomplished from the Explorer context
21019  menu using TortoiseSVN, or alternatively can be done using the command
21020  line client at a DOS prompt.
21021  The procedure for importing the project using TortoiseSVN is described
21022  below, assuming an existing repository and a new project being started
21023  in 
21024 \family typewriter
21025 C:
21026 \backslash
21027 new project
21028 \family default
21029 .
21030  For information on using the Subversion client program, run 
21031 \family typewriter
21032 svn --help 
21033 \family default
21034 in a DOS shell.
21035 \end_layout
21036
21037 \begin_layout Enumerate
21038 Locate 
21039 \family typewriter
21040 C:
21041 \backslash
21042 new project 
21043 \family default
21044 in Windows Explorer, right click it, and select 
21045 \family sans
21046 TortoiseSVN\SpecialChar menuseparator
21047 Repo-browser
21048 \family default
21049 .
21050  If necessary, adjust the URL for the repository, then click OK.
21051 \end_layout
21052
21053 \begin_layout Enumerate
21054 Right click the level of the repository under which you want to place the
21055  new project folder (typically the top level) and click 
21056 \family sans
21057 Create folder
21058 \family default
21059  Supply a name for the project folder and click OK.
21060  Add a message for the log file if desired, then click OK again.
21061  The new project folder should appear in the repository.
21062  Finally, click OK again to exit the repository browser.
21063 \end_layout
21064
21065 \begin_layout Enumerate
21066 Once again right click 
21067 \family typewriter
21068 C:
21069 \backslash
21070 new project
21071 \family default
21072 , this time selecting SVN Checkout\SpecialChar ldots
21073  Select the URL of the project folder
21074  you just created in the repository, and set the checkout directory to 
21075 \family typewriter
21076 C:
21077 \backslash
21078 new project.
21079
21080 \family default
21081  Click OK.
21082  You will be warned about a non-empty folder; click OK to proceed.
21083  You should now have a 
21084 \family typewriter
21085 .svn
21086 \family default
21087  directory under 
21088 \family typewriter
21089 C:
21090 \backslash
21091 new project.
21092 \end_layout
21093
21094 \begin_layout Enumerate
21095 Create or open your document in \SpecialChar LyX
21096  and click 
21097 \family sans
21098 File\SpecialChar menuseparator
21099 Version
21100 \begin_inset space ~
21101 \end_inset
21102
21103 Control\SpecialChar menuseparator
21104 Register.
21105  
21106 \family default
21107 Add a log message and click OK to commit the document to version control.
21108 \end_layout
21109
21110 \begin_layout Standard
21111 From this point onward, you should have full functionality in the 
21112 \family sans
21113 File\SpecialChar menuseparator
21114 Version
21115 \begin_inset space ~
21116 \end_inset
21117
21118 Control
21119 \family default
21120  menu.
21121  You also have the option of checking the document in and out, viewing its
21122  history, etc.
21123  using the TortoiseSVN context menu in Windows Explorer or the Subversion
21124  client program from a command prompt.
21125 \end_layout
21126
21127 \begin_layout Subsubsection
21128 SSH tunnel used with SVN under Windows
21129 \end_layout
21130
21131 \begin_layout Standard
21132 Compared with Linux setting up an svn client to communicate over ssh under
21133  Windows is a rather troublesome task.
21134  We will at least offer some hints how to setup the client side but prior
21135  knowledge about ssh and the Windows command line is needed, also be prepared
21136  for a great deal of frustration\SpecialChar ldots
21137
21138 \end_layout
21139
21140 \begin_layout Enumerate
21141 Get an svn client for windows, as described in the previous sections.
21142  When it is a fresh install run some svn command (e.g.
21143  
21144 \begin_inset Flex Code
21145 status collapsed
21146
21147 \begin_layout Plain Layout
21148 svn –version
21149 \end_layout
21150
21151 \end_inset
21152
21153 ) to create config files, which you will need to change later on.
21154 \end_layout
21155
21156 \begin_layout Enumerate
21157 Choose an ssh client for Windows.
21158  There are several possibilities, we will use the one from Putty tools
21159 \begin_inset Foot
21160 status collapsed
21161
21162 \begin_layout Plain Layout
21163 \begin_inset Flex URL
21164 status collapsed
21165
21166 \begin_layout Plain Layout
21167
21168 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
21169 \end_layout
21170
21171 \end_inset
21172
21173
21174 \end_layout
21175
21176 \end_inset
21177
21178 .
21179  You will need to set the connection up so that the client doesn't ask for
21180  any password from you.
21181  To keep things easy we will use only keys without any additional password
21182  protection etc.
21183 \end_layout
21184
21185 \begin_deeper
21186 \begin_layout Enumerate
21187 Generate keys by 
21188 \begin_inset Flex Code
21189 status collapsed
21190
21191 \begin_layout Plain Layout
21192 puttygen
21193 \end_layout
21194
21195 \end_inset
21196
21197 .
21198  Save your private .ppk key file and put the public one on the server side.
21199  If the SVN server runs on Linux, note that the format of the public key
21200  is not compatible with Linux openssh and you will need to direcly copy-paste
21201  the key from the “
21202 \emph on
21203 Public key for pasting into OpenSSH authorized_keys file
21204 \emph default
21205 :” edit field into the server's 
21206 \begin_inset Flex Code
21207 status collapsed
21208
21209 \begin_layout Plain Layout
21210 ~/.ssh/authorized_keys
21211 \end_layout
21212
21213 \end_inset
21214
21215  / 
21216 \begin_inset Flex Code
21217 status collapsed
21218
21219 \begin_layout Plain Layout
21220 authorized_keys2
21221 \end_layout
21222
21223 \end_inset
21224
21225  file.
21226 \end_layout
21227
21228 \begin_layout Enumerate
21229 Get the Putty's 
21230 \begin_inset Flex Code
21231 status collapsed
21232
21233 \begin_layout Plain Layout
21234 plink
21235 \end_layout
21236
21237 \end_inset
21238
21239 .
21240  In the SVN config file
21241 \begin_inset Foot
21242 status collapsed
21243
21244 \begin_layout Plain Layout
21245 Exact path depends on Windows version, usually somewhere around 
21246 \begin_inset Flex Code
21247 status collapsed
21248
21249 \begin_layout Plain Layout
21250 c:
21251 \backslash
21252 Documents and Settings
21253 \backslash
21254 user
21255 \backslash
21256 Application Data
21257 \backslash
21258 Subversion
21259 \backslash
21260 config
21261 \end_layout
21262
21263 \end_inset
21264
21265  / 
21266 \begin_inset Flex Code
21267 status collapsed
21268
21269 \begin_layout Plain Layout
21270 AppData
21271 \backslash
21272 Roaming
21273 \backslash
21274 Subversion
21275 \end_layout
21276
21277 \end_inset
21278
21279 .
21280 \end_layout
21281
21282 \end_inset
21283
21284 , section [tunnels], setup ssh command, e.g.
21285  
21286 \begin_inset Flex Code
21287 status collapsed
21288
21289 \begin_layout Plain Layout
21290 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
21291 \end_layout
21292
21293 \end_inset
21294
21295 .
21296 \begin_inset Foot
21297 status collapsed
21298
21299 \begin_layout Plain Layout
21300 It will usually take a lot of time to get exact command right and it depends
21301  on many things.
21302  For example do not have some remote server saved as a default session in
21303  Putty etc.
21304  If things fail, try to connect via plink without SVN first.
21305 \end_layout
21306
21307 \end_inset
21308
21309
21310 \end_layout
21311
21312 \end_deeper
21313 \begin_layout Enumerate
21314 Checkout the SVN archive, e.
21315 \begin_inset space \thinspace{}
21316 \end_inset
21317
21318 g.
21319 \begin_inset Newline newline
21320 \end_inset
21321
21322
21323 \begin_inset Flex Code
21324 status collapsed
21325
21326 \begin_layout Plain Layout
21327 svn co svn+ssh://user@server/repository_path
21328 \end_layout
21329
21330 \end_inset
21331
21332 .
21333 \end_layout
21334
21335 \begin_layout Subsubsection
21336 End-of-Line Conversions
21337 \end_layout
21338
21339 \begin_layout Standard
21340 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
21341  will
21342  use different line endings inside the .lyx files.
21343  This is not a problem as far as \SpecialChar LyX
21344  functionality is concerned, but the commit
21345  diffs will be huge and merge-conflicts prone.
21346  Fortunately SVN itself knows
21347 \begin_inset Foot
21348 status collapsed
21349
21350 \begin_layout Plain Layout
21351 \begin_inset Flex URL
21352 status collapsed
21353
21354 \begin_layout Plain Layout
21355
21356 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21357 \end_layout
21358
21359 \end_inset
21360
21361
21362 \end_layout
21363
21364 \end_inset
21365
21366  how to deal with CR/LF problems when switching .lyx files to the 
21367 \begin_inset Flex Code
21368 status collapsed
21369
21370 \begin_layout Plain Layout
21371 native
21372 \end_layout
21373
21374 \end_inset
21375
21376  mode.
21377 \begin_inset Foot
21378 status collapsed
21379
21380 \begin_layout Plain Layout
21381 For the lazy guys: 
21382 \begin_inset Flex Code
21383 status collapsed
21384
21385 \begin_layout Plain Layout
21386 svn propset svn:eol-style native FILE_NAME
21387 \end_layout
21388
21389 \end_inset
21390
21391
21392 \end_layout
21393
21394 \end_inset
21395
21396
21397 \end_layout
21398
21399 \begin_layout Subsection
21400 GIT commands in \SpecialChar LyX
21401
21402 \end_layout
21403
21404 \begin_layout Standard
21405 A minimal subset of GIT commands is now supported by \SpecialChar LyX
21406 .
21407  You can find the commands in the 
21408 \family sans
21409 File\SpecialChar menuseparator
21410 Version
21411 \begin_inset space ~
21412 \end_inset
21413
21414 Control
21415 \family default
21416  submenu.
21417  Please note that if you use password protected access to repository via
21418  ssh, you will be asked in terminal window.
21419  \SpecialChar LyX
21420  was tested against GIT 1.7.
21421 \begin_inset Foot
21422 status open
21423
21424 \begin_layout Plain Layout
21425 Windows users please note that you need to ensure that git is on the path.
21426  This can be set from within \SpecialChar LyX
21427  at 
21428 \family sans
21429 Tools\SpecialChar menuseparator
21430 Preferences\SpecialChar menuseparator
21431 Paths\SpecialChar menuseparator
21432 PATH prefix
21433 \family default
21434 .
21435 \end_layout
21436
21437 \end_inset
21438
21439
21440 \end_layout
21441
21442 \begin_layout Standard
21443 One big difference of GIT and the other supported version control systems
21444  is the distributed nature of GIT: With traditional version control systems
21445  there is one central server which hosts the repository.
21446  Users commit their changes to the server, and get updates made by other
21447  users from it.
21448  With GIT, users commit to a local repository.
21449  The local repository can be synchronized with one or more remote repositories
21450  using the 
21451 \begin_inset Flex Code
21452 status collapsed
21453
21454 \begin_layout Plain Layout
21455 pull
21456 \end_layout
21457
21458 \end_inset
21459
21460  and 
21461 \begin_inset Flex Code
21462 status collapsed
21463
21464 \begin_layout Plain Layout
21465 push
21466 \end_layout
21467
21468 \end_inset
21469
21470  GIT commands.
21471  \SpecialChar LyX
21472  does not interact in any way with remote GIT repositories.
21473  It works exclusively with the local repository in a very similar way as
21474  with a central CVS or SVN repository.
21475  If you use remote GIT repositories you need to do the 
21476 \begin_inset Flex Code
21477 status collapsed
21478
21479 \begin_layout Plain Layout
21480 pull
21481 \end_layout
21482
21483 \end_inset
21484
21485  and 
21486 \begin_inset Flex Code
21487 status collapsed
21488
21489 \begin_layout Plain Layout
21490 push
21491 \end_layout
21492
21493 \end_inset
21494
21495  operations with your favourite GIT client.
21496 \end_layout
21497
21498 \begin_layout Subsubsection
21499
21500 \family sans
21501 Register
21502 \end_layout
21503
21504 \begin_layout Standard
21505 If your document is not under revision control, this is the only item shown
21506  in the menu.
21507  And if it is under revision control, the 
21508 \family sans
21509 Register
21510 \family default
21511  item is not visible.
21512 \end_layout
21513
21514 \begin_layout Standard
21515 This command registers in GIT your document ONLY in case you have already
21516  the documents directory under GIT control (in particular 
21517 \family typewriter
21518 .git/index
21519 \family default
21520  file exists).
21521  This means you have to checkout the archive by yourself.
21522 \end_layout
21523
21524 \begin_layout Standard
21525 Then you are asked interactively to supply an initial description of the
21526  document.
21527  Don't forget that registered file is not yet commited.
21528 \end_layout
21529
21530 \begin_layout Standard
21531 GIT command that is run: 
21532 \family typewriter
21533 git add 
21534 \begin_inset Quotes eld
21535 \end_inset
21536
21537 <file-name>
21538 \begin_inset Quotes erd
21539 \end_inset
21540
21541
21542 \end_layout
21543
21544 \begin_layout Standard
21545 Read 
21546 \family typewriter
21547 man git
21548 \family default
21549  to understand the switches.
21550 \end_layout
21551
21552 \begin_layout Subsubsection
21553
21554 \family sans
21555 Check In Changes
21556 \end_layout
21557
21558 \begin_layout Standard
21559 When you are finished editing a file, you commit your changes.
21560  When you do this, you are asked for a description of the changes.
21561  After that changes are commited.
21562 \end_layout
21563
21564 \begin_layout Standard
21565 GIT command: 
21566 \family typewriter
21567 git commit -q -m"<description>" <file-name>
21568 \end_layout
21569
21570 \begin_layout Subsubsection
21571
21572 \family sans
21573 Revert To Repository Version
21574 \end_layout
21575
21576 \begin_layout Standard
21577 This will discard all changes made to the document since the last check
21578  in.
21579  You get a warning before changes are discarded.
21580 \end_layout
21581
21582 \begin_layout Standard
21583 GIT command: 
21584 \family typewriter
21585 git checkout -q 
21586 \begin_inset Quotes eld
21587 \end_inset
21588
21589 <file-name>
21590 \begin_inset Quotes erd
21591 \end_inset
21592
21593
21594 \end_layout
21595
21596 \begin_layout Subsubsection
21597
21598 \family sans
21599 Rename
21600 \end_layout
21601
21602 \begin_layout Standard
21603 This will rename the current document including the version history.
21604  It requires a clean document without any changes since the last checkin.
21605  You are asked for a file name and a description of the rename operation.
21606  After that the document is renamed, both locally and in the repository.
21607  If the parent directories of the new and old file names differ, all relative
21608  paths of included files are adjusted (like in 
21609 \family sans
21610 File\SpecialChar menuseparator
21611 Save As
21612 \family default
21613 \SpecialChar ldots
21614 ).
21615  Finally, the document is reloaded using the new name.
21616 \end_layout
21617
21618 \begin_layout Labeling
21619 \labelwidthstring 00.00.0000
21620 GIT
21621 \begin_inset space ~
21622 \end_inset
21623
21624 commands: 
21625 \begin_inset space ~
21626 \end_inset
21627
21628
21629 \begin_inset Newline newline
21630 \end_inset
21631
21632
21633 \begin_inset Flex Code
21634 status collapsed
21635
21636 \begin_layout Plain Layout
21637 git mv 
21638 \family typewriter
21639
21640 \begin_inset Quotes eld
21641 \end_inset
21642
21643 <file-name>
21644 \begin_inset Quotes erd
21645 \end_inset
21646
21647  
21648 \begin_inset Quotes eld
21649 \end_inset
21650
21651 <new-file-name>
21652 \begin_inset Quotes erd
21653 \end_inset
21654
21655
21656 \end_layout
21657
21658 \end_inset
21659
21660
21661 \begin_inset Newline newline
21662 \end_inset
21663
21664
21665 \begin_inset Flex Code
21666 status collapsed
21667
21668 \begin_layout Plain Layout
21669 git commit
21670 \end_layout
21671
21672 \end_inset
21673
21674
21675 \end_layout
21676
21677 \begin_layout Subsubsection
21678
21679 \family sans
21680 Show History
21681 \end_layout
21682
21683 \begin_layout Standard
21684 This shows the complete history of the GIT document.
21685  The output of 
21686 \family typewriter
21687 git log 
21688 \begin_inset Quotes eld
21689 \end_inset
21690
21691 <file-name>
21692 \begin_inset Quotes erd
21693 \end_inset
21694
21695
21696 \family default
21697  is shown in a browser.
21698 \end_layout
21699
21700 \begin_layout Subsubsection
21701 Version Info
21702 \end_layout
21703
21704 \begin_layout Standard
21705 \SpecialChar LyX
21706  supports GIT hash number of the last commit to the file, author name, date
21707  and time of last commit.
21708  All those are extracted from 
21709 \family typewriter
21710 git log -n 1 --pretty=format:%H%n%an%n%ai
21711 \family default
21712 .
21713  Tree version information is obtained via 
21714 \family typewriter
21715 git describe --abbrev --dirty --long
21716 \family default
21717 .
21718  See 
21719 \begin_inset CommandInset ref
21720 LatexCommand ref
21721 reference "subsec:VCS-Revision-Information"
21722
21723 \end_inset
21724
21725  for other details.
21726 \end_layout
21727
21728 \begin_layout Subsection
21729 Further tuning
21730 \end_layout
21731
21732 \begin_layout Standard
21733 With the recent addition of the vc-command function \SpecialChar LyX
21734  power users are allowed
21735  to create their own commands for revision control.
21736 \end_layout
21737
21738 \begin_layout Standard
21739 As an example you can see how two TortoiseSVN commands could be integrated
21740  directly:
21741 \end_layout
21742
21743 \begin_layout Description
21744 Commit: 
21745 \begin_inset Flex Code
21746 status collapsed
21747
21748 \begin_layout Plain Layout
21749 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21750 \end_layout
21751
21752 \end_inset
21753
21754
21755 \end_layout
21756
21757 \begin_layout Description
21758 Revert: 
21759 \begin_inset Flex Code
21760 status collapsed
21761
21762 \begin_layout Plain Layout
21763 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21764 \end_layout
21765
21766 \end_inset
21767
21768
21769 \end_layout
21770
21771 \begin_layout Subsection
21772 Version control and Document comparison
21773 \end_layout
21774
21775 \begin_layout Standard
21776 One of the typical uses of version control is to inspect the changes between
21777  revisions, usually by creating 
21778 \begin_inset Flex Code
21779 status collapsed
21780
21781 \begin_layout Plain Layout
21782 diff
21783 \end_layout
21784
21785 \end_inset
21786
21787  dumps.
21788  While this is useful for plain text files, it is much less useful in the
21789  case of \SpecialChar LyX
21790  files, which have more a complicated structure.
21791  Hence we provide binding to the Document comparison feature.
21792  There are two ways of calling this feature - either by direct call of 
21793 \begin_inset Flex Code
21794 status collapsed
21795
21796 \begin_layout Plain Layout
21797 VC_COMPARE
21798 \end_layout
21799
21800 \end_inset
21801
21802  \SpecialChar LyX
21803  function (for details see \SpecialChar LyX
21804  functions manual) or by icon/menu item 
21805 \begin_inset Flex Noun
21806 status collapsed
21807
21808 \begin_layout Plain Layout
21809 Compare with older revision...
21810 \end_layout
21811
21812 \end_inset
21813
21814 .
21815  One can either compare two chosen revisions of the document or he can simply
21816  compare the current version of edited text with older revisions (where
21817  '
21818 \begin_inset Flex Noun
21819 status collapsed
21820
21821 \begin_layout Plain Layout
21822 0
21823 \end_layout
21824
21825 \end_inset
21826
21827 ' revisions back means comparison of the edited file with last commited
21828  revision).
21829  
21830 \end_layout
21831
21832 \begin_layout Standard
21833 This feature is supported for SVN and RCS though due to the more complicated
21834  versioning scheme of RCS there is a constraint – when addressing the revisions
21835  in dialog, numbers always point to the last number in RCS revision number,
21836  i.e.
21837  '35' in '1.2.35'.
21838  We don't currently support GIT addressing of revisions, one can just compare
21839  edited document with its revision X steps backs, where X is addressed as
21840  HEAD~X.
21841 \end_layout
21842
21843 \begin_layout Section
21844 Literate Programming
21845 \end_layout
21846
21847 \begin_layout Standard
21848 Updated by 
21849 \noun on
21850 Kayvan Sylvan 
21851 \noun default
21852 (kayvan@sylvan.com)
21853 \noun on
21854
21855 \noun default
21856 original documentation written by 
21857 \noun on
21858 Edmar Wienskoski Jr.
21859
21860 \noun default
21861  (edmar-w-jr@technologist.com)
21862 \end_layout
21863
21864 \begin_layout Subsection
21865 Introduction
21866 \end_layout
21867
21868 \begin_layout Standard
21869 The main purpose of this documentation is to show you how to use \SpecialChar LyX
21870  for literate
21871  programming, where it is assumed that you are familiar with this programming
21872  technique, and know what 
21873 \begin_inset Quotes eld
21874 \end_inset
21875
21876 tangling
21877 \begin_inset Quotes erd
21878 \end_inset
21879
21880  and 
21881 \begin_inset Quotes eld
21882 \end_inset
21883
21884 weaving
21885 \begin_inset Quotes erd
21886 \end_inset
21887
21888  means.
21889  If that is not the case, please follow the web links provided in the following
21890  sections.
21891  There is a lot of good documentation out there covering old development
21892  history to the latest tools tips.
21893 \end_layout
21894
21895 \begin_layout Standard
21896 It is also assumed that you are familiar with \SpecialChar LyX
21897  itself to a point that you
21898  are comfortable changing your \SpecialChar LyX
21899  preferences, and X resources file.
21900  If that is not the case please refer to other \SpecialChar LyX
21901  documentation to cover your
21902  specific needs.
21903 \end_layout
21904
21905 \begin_layout Subsection
21906 Literate Programming
21907 \end_layout
21908
21909 \begin_layout Standard
21910 From the Literate Programming FAQ: 
21911 \end_layout
21912
21913 \begin_layout Quotation
21914 Literate programming is the combination of documentation and source together
21915  in a fashion suited for reading by human beings.
21916  In fact, literate programs should be enjoyable reading, even inviting!
21917  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
21918  and documentation in a single file.
21919  Literate programming tools then parse the file to produce either readable
21920  documentation or compilable source.
21921  The WEB style of literate programming was created by D.
21922 \begin_inset space \thinspace{}
21923 \end_inset
21924
21925 E.
21926  Knuth during the development of his \SpecialChar TeX
21927  typesetting software.
21928  
21929 \end_layout
21930
21931 \begin_layout Standard
21932 Another excerpt says:
21933 \end_layout
21934
21935 \begin_layout Quotation
21936
21937 \emph on
21938 How is literate programming different from verbose commenting?
21939 \end_layout
21940
21941 \begin_layout Quotation
21942 There are three distinguishing characteristics.
21943  In order of importance, they are: 
21944 \end_layout
21945
21946 \begin_deeper
21947 \begin_layout Itemize
21948 flexible order of elaboration 
21949 \end_layout
21950
21951 \begin_layout Itemize
21952 automatic support for browsing 
21953 \end_layout
21954
21955 \begin_layout Itemize
21956 typeset documentation, especially diagrams and mathematics 
21957 \end_layout
21958
21959 \end_deeper
21960 \begin_layout Standard
21961 Now that I sparked your curiosity, take a look in the references.
21962 \end_layout
21963
21964 \begin_layout Subsubsection
21965 References
21966 \end_layout
21967
21968 \begin_layout Standard
21969 The complete Literate Programming FAQ can be found at:
21970 \end_layout
21971
21972 \begin_layout Quote
21973 Literate Programming FAQ 
21974 \begin_inset Flex URL
21975 status collapsed
21976
21977 \begin_layout Plain Layout
21978
21979 http://www.literateprogramming.com/lpfaq.pdf
21980 \end_layout
21981
21982 \end_inset
21983
21984
21985 \end_layout
21986
21987 \begin_layout Standard
21988 The FAQ lists 23 (twenty three!) different literate programming tools.
21989  Where some are specialized or 
21990 \begin_inset Quotes eld
21991 \end_inset
21992
21993 tailored
21994 \begin_inset Quotes erd
21995 \end_inset
21996
21997  for particular programming languages, while other have general scope.
21998  I selected 
21999 \noun on
22000 Noweb
22001 \noun default
22002  for my own use for several reasons:
22003 \end_layout
22004
22005 \begin_layout Itemize
22006 It can generate the documentation either in \SpecialChar LaTeX
22007  or HTML.
22008 \end_layout
22009
22010 \begin_layout Itemize
22011 It has a open architecture, i.
22012 \begin_inset space \thinspace{}
22013 \end_inset
22014
22015 e.
22016 \begin_inset space \space{}
22017 \end_inset
22018
22019 it is easy to plug in new filters and to perform special processing that
22020  you may need.
22021  
22022 \end_layout
22023
22024 \begin_layout Itemize
22025 There is a good selection of filters available already (the HTML is one
22026  of them).
22027 \end_layout
22028
22029 \begin_layout Itemize
22030 It is free.
22031 \end_layout
22032
22033 \begin_layout Standard
22034 The Noweb web page can be found at: 
22035 \end_layout
22036
22037 \begin_layout Quote
22038 Noweb home page 
22039 \begin_inset Flex URL
22040 status collapsed
22041
22042 \begin_layout Plain Layout
22043
22044 http://www.cs.virginia.edu/~nr/noweb/
22045 \end_layout
22046
22047 \end_inset
22048
22049
22050 \end_layout
22051
22052 \begin_layout Standard
22053 Starting from there you can reach many other interesting links and even
22054  some literate program examples.
22055 \end_layout
22056
22057 \begin_layout Subsection
22058 \SpecialChar LyX
22059  and Literate Programming with Noweb
22060 \end_layout
22061
22062 \begin_layout Standard
22063 The \SpecialChar LyX
22064  support for Literate Programming is provided by using the generic \SpecialChar LyX
22065
22066  converters mechanism.
22067  This support is provided in a 
22068 \begin_inset Quotes eld
22069 \end_inset
22070
22071 Noweb independent
22072 \begin_inset Quotes erd
22073 \end_inset
22074
22075  way, i.
22076 \begin_inset space \thinspace{}
22077 \end_inset
22078
22079 e.
22080 \begin_inset space \space{}
22081 \end_inset
22082
22083 you will be able to use this new \SpecialChar LyX
22084  feature with some other literate programming
22085  tool of your choice by just changing your \SpecialChar LyX
22086  preferences.
22087 \end_layout
22088
22089 \begin_layout Subsubsection
22090 Generating documents and code (weaving and tangling)
22091 \end_layout
22092
22093 \begin_layout Paragraph
22094 Using the noweb module
22095 \end_layout
22096
22097 \begin_layout Standard
22098 If you have installed Noweb and \SpecialChar LyX
22099  successfully, whenever you open a new document,
22100  after you have chosen its document class, use the Document->Settings menu
22101  to add the 
22102 \begin_inset Quotes eld
22103 \end_inset
22104
22105 noweb
22106 \begin_inset Quotes erd
22107 \end_inset
22108
22109  module.
22110  If Noweb is correctly installed, when you click on the 
22111 \begin_inset Quotes eld
22112 \end_inset
22113
22114 Modules
22115 \begin_inset Quotes erd
22116 \end_inset
22117
22118  link, you will see the 
22119 \begin_inset Quotes eld
22120 \end_inset
22121
22122 noweb
22123 \begin_inset Quotes erd
22124 \end_inset
22125
22126  module in the available list and you can add it to your document.
22127 \end_layout
22128
22129 \begin_layout Paragraph
22130 Typing code in
22131 \end_layout
22132
22133 \begin_layout Standard
22134 \SpecialChar LyX
22135  enables you to write code with a layout named 
22136 \begin_inset Flex Noun
22137 status collapsed
22138
22139 \begin_layout Plain Layout
22140 Chunk
22141 \end_layout
22142
22143 \end_inset
22144
22145 .
22146  Noweb delimits chunks like this:
22147 \end_layout
22148
22149 \begin_layout LyX-Code
22150 <<My code>>=
22151 \end_layout
22152
22153 \begin_layout LyX-Code
22154   code
22155 \end_layout
22156
22157 \begin_layout LyX-Code
22158   more code
22159 \end_layout
22160
22161 \begin_layout LyX-Code
22162   even more code
22163 \end_layout
22164
22165 \begin_layout LyX-Code
22166   @
22167 \end_layout
22168
22169 \begin_layout Standard
22170 The problem is that whatever is written in between the << and the 
22171 \family typewriter
22172 @
22173 \family default
22174  must be taken literally, i.
22175 \begin_inset space \thinspace{}
22176 \end_inset
22177
22178 e.
22179 \begin_inset space \space{}
22180 \end_inset
22181
22182 \SpecialChar LyX
22183  should be prevented from making any special interpretation of what has
22184  been written.
22185  This is also handled by 
22186 \begin_inset Flex Noun
22187 status collapsed
22188
22189 \begin_layout Plain Layout
22190 Chunk
22191 \end_layout
22192
22193 \end_inset
22194
22195 , that works like a normal paragraph but has a free spacing capability.
22196 \end_layout
22197
22198 \begin_layout Standard
22199 As a special note, you can also use the 
22200 \begin_inset Quotes eld
22201 \end_inset
22202
22203 %def
22204 \begin_inset Quotes erd
22205 \end_inset
22206
22207  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
22208 rence:
22209 \end_layout
22210
22211 \begin_layout LyX-Code
22212 <<My chunk>>=
22213 \end_layout
22214
22215 \begin_layout LyX-Code
22216 def some_function(args):
22217 \end_layout
22218
22219 \begin_layout LyX-Code
22220    "This is the doc string for this function."
22221 \end_layout
22222
22223 \begin_layout LyX-Code
22224    print "My args: ", args
22225 \end_layout
22226
22227 \begin_layout LyX-Code
22228 @ %def some_function
22229 \end_layout
22230
22231 \begin_layout Standard
22232 For an example of this usage and the resulting cross-reference output, look
22233  at the Literate python program in 
22234 \emph on
22235 LIBDIR/examples/listerrors.lyx
22236 \emph default
22237  which should make this all clear.
22238 \end_layout
22239
22240 \begin_layout Paragraph
22241 Generating the documentation
22242 \end_layout
22243
22244 \begin_layout Standard
22245 At this point you already have a new document file with a proper document
22246  class, and with some code and text on it.
22247  How do I print it? The answer is simple, you select 
22248 \family sans
22249 View\SpecialChar menuseparator
22250 DVI,
22251 \family default
22252  etc.
22253  Just like you would do for a plain document.
22254  No special procedure is required.
22255 \end_layout
22256
22257 \begin_layout Standard
22258 To help orientate you, I will now explain what happens inside \SpecialChar LyX
22259 :
22260 \end_layout
22261
22262 \begin_layout Enumerate
22263 When the 
22264 \family sans
22265 Update\SpecialChar menuseparator
22266 DVI
22267 \family default
22268  menu option is chosen, a \SpecialChar LaTeX
22269  file is generated.
22270  
22271 \end_layout
22272
22273 \begin_deeper
22274 \begin_layout Standard
22275 If the document is of any literate class the generated file will be named
22276  with an extension name defined by the 
22277 \begin_inset Quotes eld
22278 \end_inset
22279
22280 literate
22281 \begin_inset Quotes erd
22282 \end_inset
22283
22284  format (defined in the Preferences panel), otherwise the file will have
22285  the usual 
22286 \family typewriter
22287 .tex
22288 \family default
22289  extension.
22290 \end_layout
22291
22292 \end_deeper
22293 \begin_layout Enumerate
22294 Note that the only difference so far is in the name of the file, no special
22295  processing is required by \SpecialChar LyX
22296 .
22297  Given that you formatted the code using the 
22298 \begin_inset Flex Noun
22299 status collapsed
22300
22301 \begin_layout Plain Layout
22302 Chunk
22303 \end_layout
22304
22305 \end_inset
22306
22307  layout that, by itself, takes care of the business.
22308 \end_layout
22309
22310 \begin_layout Enumerate
22311 If the document is of any literate class \SpecialChar LyX
22312  will then use the internal \SpecialChar LyX
22313  to
22314  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
22315  converter
22316 \begin_inset Foot
22317 status collapsed
22318
22319 \begin_layout Plain Layout
22320 The converters are defined in the 
22321 \family sans
22322 Tools\SpecialChar menuseparator
22323 Preferences
22324 \family default
22325  panel, under the 
22326 \begin_inset Quotes eld
22327 \end_inset
22328
22329 Conversion
22330 \begin_inset Quotes erd
22331 \end_inset
22332
22333  tab.
22334  See section 
22335 \emph on
22336 Converters
22337 \emph default
22338  of the 
22339 \emph on
22340 Customization
22341 \emph default
22342  manual for general information about converters.
22343 \end_layout
22344
22345 \end_inset
22346
22347  to generate the \SpecialChar LaTeX
22348  file.
22349 \end_layout
22350
22351 \begin_deeper
22352 \begin_layout Standard
22353 Otherwise it will just skip this step.
22354 \end_layout
22355
22356 \end_deeper
22357 \begin_layout Enumerate
22358 Finally, \SpecialChar LaTeX
22359  is invoked and the regular post processing continues as in a plain
22360  document.
22361 \end_layout
22362
22363 \begin_layout Standard
22364 Independence from a particular 
22365 \begin_inset Quotes eld
22366 \end_inset
22367
22368 literate tool
22369 \begin_inset Quotes erd
22370 \end_inset
22371
22372  is easily achieved by changing the commands that are run by the various
22373  converters.
22374 \end_layout
22375
22376 \begin_layout Paragraph
22377 Generating the code
22378 \end_layout
22379
22380 \begin_layout Standard
22381 When the build menu option is chosen or the corresponding button in the
22382  toolbar is pressed, a \SpecialChar LaTeX
22383  file is generated just like step 1 above.
22384  Next, \SpecialChar LyX
22385  invokes the 
22386 \family typewriter
22387 Noweb->Program
22388 \family default
22389  converter.
22390  This converter needs to be defined by the user and is not installed by
22391  default, though the Program format is.
22392  This converter (like any other converter) will have two parts:
22393 \end_layout
22394
22395 \begin_layout Enumerate
22396 The converter program itself.
22397  This program performs the conversion from the one format to the other (in
22398  this case, from the Noweb format to the Program pseudo-format).
22399 \end_layout
22400
22401 \begin_layout Enumerate
22402 The error log parser.
22403  This is a program whose sole purpose is to rewrite error messages in a
22404  format that \SpecialChar LyX
22405  understands.
22406  This makes it possible for \SpecialChar LyX
22407  to place error boxes in the right places in
22408  the file buffer.
22409 \end_layout
22410
22411 \begin_layout Standard
22412 The first part, the 
22413 \begin_inset Quotes eld
22414 \end_inset
22415
22416 Converter
22417 \begin_inset Quotes erd
22418 \end_inset
22419
22420  setting, should be set to
22421 \begin_inset Newline newline
22422 \end_inset
22423
22424
22425 \begin_inset Quotes eld
22426 \end_inset
22427
22428
22429 \family typewriter
22430 build-script $$i
22431 \family default
22432  $$r
22433 \begin_inset Quotes erd
22434 \end_inset
22435
22436 .
22437 \begin_inset Newline newline
22438 \end_inset
22439
22440 This basically means that \SpecialChar LyX
22441  will call 
22442 \begin_inset Quotes eld
22443 \end_inset
22444
22445 build-script
22446 \begin_inset Quotes erd
22447 \end_inset
22448
22449  (a program or script) with the name of the Noweb file (normally a file
22450  in the \SpecialChar LyX
22451  temp directory) and the directory path of the original \SpecialChar LyX
22452  file.
22453  
22454 \end_layout
22455
22456 \begin_layout Standard
22457 This is an implementation of 
22458 \begin_inset Quotes eld
22459 \end_inset
22460
22461 build-script
22462 \begin_inset Quotes erd
22463 \end_inset
22464
22465  that you can place in a directory on your path:
22466 \end_layout
22467
22468 \begin_layout Standard
22469 \begin_inset VSpace defskip
22470 \end_inset
22471
22472
22473 \end_layout
22474
22475 \begin_layout Standard
22476 \begin_inset Newpage pagebreak
22477 \end_inset
22478
22479
22480 \end_layout
22481
22482 \begin_layout Standard
22483
22484 \family sans
22485 #!/bin/sh
22486 \end_layout
22487
22488 \begin_layout Standard
22489
22490 \family sans
22491 #
22492 \end_layout
22493
22494 \begin_layout Standard
22495
22496 \family sans
22497 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
22498 \end_layout
22499
22500 \begin_layout Standard
22501 \begin_inset VSpace defskip
22502 \end_inset
22503
22504
22505 \end_layout
22506
22507 \begin_layout Standard
22508 The next part of the converter setting is the 
22509 \begin_inset Quotes eld
22510 \end_inset
22511
22512 Flags
22513 \begin_inset Quotes erd
22514 \end_inset
22515
22516  which is to be set to
22517 \begin_inset Newline newline
22518 \end_inset
22519
22520
22521 \begin_inset Quotes eld
22522 \end_inset
22523
22524
22525 \family typewriter
22526 parselog=$$s/scripts/listerrors
22527 \family default
22528
22529 \begin_inset Quotes erd
22530 \end_inset
22531
22532 .
22533 \begin_inset Newline newline
22534 \end_inset
22535
22536 This will run any errors that are generated by the 
22537 \begin_inset Quotes eld
22538 \end_inset
22539
22540 build-script
22541 \begin_inset Quotes erd
22542 \end_inset
22543
22544  process through the 
22545 \begin_inset Quotes eld
22546 \end_inset
22547
22548 listerrors
22549 \begin_inset Quotes erd
22550 \end_inset
22551
22552  program.
22553 \end_layout
22554
22555 \begin_layout Standard
22556 The build will normally take place in \SpecialChar LyX
22557 's temporary directory, so the files
22558  produced by the conversion will be in that directory.
22559  \SpecialChar LyX
22560  will copy out what it regards as the `main' file, but the 
22561 \family typewriter
22562 Noweb->Program
22563 \family default
22564  conversion may produce several files, and so most of these would then be
22565  deleted when \SpecialChar LyX
22566  was closed.
22567  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
22568  the build-script chunk can place the generated files in that location.
22569 \end_layout
22570
22571 \begin_layout Paragraph
22572 Build instructions in the document
22573 \end_layout
22574
22575 \begin_layout Standard
22576 The last piece of the integration between \SpecialChar LyX
22577  and noweb is the 
22578 \begin_inset Quotes eld
22579 \end_inset
22580
22581 build-script
22582 \begin_inset Quotes erd
22583 \end_inset
22584
22585  chunk.
22586  Generally, the instructions for building your program should be embedded
22587  in a chunk of its own.
22588  The noweb-specific 
22589 \begin_inset Quotes eld
22590 \end_inset
22591
22592 build-script
22593 \begin_inset Quotes erd
22594 \end_inset
22595
22596  above uses the notangle command to look for this chunk (called 
22597 \begin_inset Quotes eld
22598 \end_inset
22599
22600 build-script
22601 \begin_inset Quotes erd
22602 \end_inset
22603
22604 ) and runs its contents through 
22605 \begin_inset Quotes eld
22606 \end_inset
22607
22608 sh
22609 \begin_inset Quotes erd
22610 \end_inset
22611
22612 .
22613 \end_layout
22614
22615 \begin_layout Standard
22616 Typically, such a chunk would look something like this:
22617 \end_layout
22618
22619 \begin_layout LyX-Code
22620 <<build-script>>=
22621 \end_layout
22622
22623 \begin_layout LyX-Code
22624 #!/bin/sh
22625 \begin_inset Newline newline
22626 \end_inset
22627
22628 if [ -z "${NOWEB_SOURCE}" ]
22629 \begin_inset Newline newline
22630 \end_inset
22631
22632 then
22633 \end_layout
22634
22635 \begin_layout LyX-Code
22636 NOWEB_SOURCE=myfile.nw
22637 \begin_inset Newline newline
22638 \end_inset
22639
22640 fi
22641 \begin_inset Newline newline
22642 \end_inset
22643
22644 [...
22645  code to extract files ...
22646  use NOWEB_OUTPUT_DIR here ...]
22647 \begin_inset Newline newline
22648 \end_inset
22649
22650 [...
22651  code to compile files ...]
22652 \begin_inset Newline newline
22653 \end_inset
22654
22655 @
22656 \end_layout
22657
22658 \begin_layout Standard
22659 Look in 
22660 \emph on
22661 LIBDIR/examples/listerrors.lyx
22662 \emph default
22663  or in 
22664 \emph on
22665 LIBDIR/examples/Literate.lyx
22666 \emph default
22667  which implement two versions of the 
22668 \begin_inset Quotes eld
22669 \end_inset
22670
22671 listerrors
22672 \begin_inset Quotes erd
22673 \end_inset
22674
22675  program for some illustrations of how all of these pieces go together or
22676  in 
22677 \emph on
22678 LIBDIR/examples/noweb2lyx.lyx.
22679
22680 \emph default
22681  Interestingly, these three files show off the language-indepence of the
22682  \SpecialChar LyX
22683  literate programming support since they are written in Python, C and Perl
22684  respectively.
22685 \end_layout
22686
22687 \begin_layout Subsubsection
22688 Configuring \SpecialChar LyX
22689
22690 \end_layout
22691
22692 \begin_layout Standard
22693 All the Literate Programming support is configured by the 
22694 \family sans
22695 Tools\SpecialChar menuseparator
22696 Preferences
22697 \family default
22698  panel in the 
22699 \begin_inset Quotes eld
22700 \end_inset
22701
22702 File Handling
22703 \begin_inset Quotes erd
22704 \end_inset
22705
22706  tab.
22707  The important parts are:
22708 \end_layout
22709
22710 \begin_layout Description
22711 the
22712 \begin_inset space ~
22713 \end_inset
22714
22715
22716 \begin_inset Quotes eld
22717 \end_inset
22718
22719 NoWeb
22720 \begin_inset Quotes erd
22721 \end_inset
22722
22723
22724 \begin_inset space ~
22725 \end_inset
22726
22727 format Set up via the File Formats tab, this is where the Noweb-specific
22728  pieces are set up.
22729  The 
22730 \family sans
22731 GUI Name
22732 \family default
22733  is set to 
22734 \family typewriter
22735 NoWeb
22736 \family default
22737 , the file extension is set to 
22738 \family typewriter
22739 .nw
22740 \family default
22741 .
22742  This tells \SpecialChar LyX
22743  to create a file with a 
22744 \family typewriter
22745 .nw
22746 \family default
22747  extension in the first step of the conversion process.
22748 \end_layout
22749
22750 \begin_layout Description
22751 the
22752 \begin_inset space ~
22753 \end_inset
22754
22755
22756 \family sans
22757 Program
22758 \family default
22759
22760 \begin_inset space ~
22761 \end_inset
22762
22763 format This is an empty format whose sole purpose is to be the endpoint
22764  of a conversion (which then allows us to set up a converter for it).
22765 \end_layout
22766
22767 \begin_layout Description
22768
22769 \family sans
22770 NoWeb
22771 \family default
22772 ->
22773 \family sans
22774 \SpecialChar LaTeX
22775
22776 \family default
22777  This converter performs the 
22778 \begin_inset Quotes eld
22779 \end_inset
22780
22781 weaving
22782 \begin_inset Quotes erd
22783 \end_inset
22784
22785  of the literate document.
22786  For Noweb, it is set to 
22787 \begin_inset Quotes eld
22788 \end_inset
22789
22790
22791 \family typewriter
22792 noweave -delay -index $$i > $$o
22793 \family default
22794
22795 \begin_inset Quotes erd
22796 \end_inset
22797
22798
22799 \end_layout
22800
22801 \begin_layout Description
22802
22803 \family sans
22804 NoWeb
22805 \family default
22806 ->
22807 \family sans
22808 Program
22809 \family default
22810  This performs the 
22811 \begin_inset Quotes eld
22812 \end_inset
22813
22814 tangling step
22815 \begin_inset Quotes erd
22816 \end_inset
22817
22818 .
22819  As stated above, the Converter is set to 
22820 \begin_inset Quotes eld
22821 \end_inset
22822
22823
22824 \family typewriter
22825 build-script $$i
22826 \family default
22827  $$r
22828 \begin_inset Quotes erd
22829 \end_inset
22830
22831 , with Flags set to
22832 \begin_inset Newline newline
22833 \end_inset
22834
22835
22836 \begin_inset Quotes eld
22837 \end_inset
22838
22839
22840 \family typewriter
22841 parselog=$$s/scripts/listerrors
22842 \family default
22843
22844 \begin_inset Quotes erd
22845 \end_inset
22846
22847 .
22848 \end_layout
22849
22850 \begin_layout Subsubsection
22851 Debug extensions
22852 \end_layout
22853
22854 \begin_layout Standard
22855 There is also a new function implemented in the \SpecialChar LyX
22856  server, the 
22857 \begin_inset Quotes eld
22858 \end_inset
22859
22860 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
22861  
22862 \end_layout
22863
22864 \begin_layout Standard
22865 When debugging code with ddd/gdb, it is possible to invoke a text editor
22866  at the current execution position with a single key stroke.
22867  The default ddd configuration for that is shift-ctrl-V.
22868  It happens that you can define the editor command line invocation in ddd
22869  by accessing the 
22870 \family sans
22871 Edit\SpecialChar menuseparator
22872 Preferences\SpecialChar menuseparator
22873 Helpers
22874 \family default
22875  dialog and changing the "Edit Sources" entry.
22876 \end_layout
22877
22878 \begin_layout Standard
22879 I take advantage of the newly created \SpecialChar LyX
22880  server function and this ddd feature,
22881  and set 
22882 \begin_inset Quotes eld
22883 \end_inset
22884
22885 Edit Sources
22886 \begin_inset Quotes erd
22887 \end_inset
22888
22889  to:
22890 \end_layout
22891
22892 \begin_layout Standard
22893 \begin_inset VSpace defskip
22894 \end_inset
22895
22896
22897 \end_layout
22898
22899 \begin_layout Standard
22900
22901 \family sans
22902 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
22903 \end_layout
22904
22905 \begin_layout Standard
22906 \begin_inset VSpace defskip
22907 \end_inset
22908
22909
22910 \end_layout
22911
22912 \begin_layout Standard
22913 With this, whenever you are using ddd and find a point in the program that
22914  you want to edit, you just press shift-ctrl-V (in the ddd window), and
22915  ddd will forward this information to \SpecialChar LyX
22916  through the \SpecialChar LyX
22917  server and then the
22918  \SpecialChar LyX
22919  window will show the same file with the cursor at the same position ddd
22920  was pointing to.
22921  No more guessing or long scrolling to locate a point in the program back
22922  from debugging !
22923 \end_layout
22924
22925 \begin_layout Standard
22926 Note however that you must enable the \SpecialChar LyX
22927  server to get this feature working
22928  (it is disabled by default).
22929  You can enable it in 
22930 \family sans
22931 Preferences
22932 \family default
22933  (tabs 
22934 \family sans
22935 Inputs
22936 \family default
22937
22938 \family sans
22939 Paths
22940 \family default
22941 ) by entering in the 
22942 \family sans
22943 \SpecialChar LyX
22944 server pipe
22945 \family default
22946  a path like 
22947 \begin_inset Quotes eld
22948 \end_inset
22949
22950
22951 \family typewriter
22952 /home/<your-home-directory>/.lyx/lyxpipe
22953 \family default
22954
22955 \begin_inset Quotes erd
22956 \end_inset
22957
22958
22959 \end_layout
22960
22961 \begin_layout Standard
22962 Read the \SpecialChar LyX
22963  server documentation in the 
22964 \emph on
22965 Customization Manual
22966 \emph default
22967  for further information.
22968 \end_layout
22969
22970 \begin_layout Subsubsection
22971 Toolbar extensions
22972 \end_layout
22973
22974 \begin_layout Standard
22975 There are six new buttons that can be added to your \SpecialChar LyX
22976  toolbar.
22977  Five of these buttons are short cuts to layout styles: 
22978 \family sans
22979 Standard
22980 \family default
22981
22982 \family sans
22983 Section
22984 \family default
22985
22986 \family sans
22987 \SpecialChar LaTeX
22988
22989 \family default
22990
22991 \family sans
22992 \SpecialChar LyX
22993 -Code
22994 \family default
22995 , and 
22996 \family sans
22997 Chunk
22998 \family default
22999 .
23000  The last one is a short cut to the 
23001 \begin_inset Quotes eld
23002 \end_inset
23003
23004 Build Program
23005 \begin_inset Quotes erd
23006 \end_inset
23007
23008  File menu entry.
23009  
23010 \end_layout
23011
23012 \begin_layout Standard
23013 \SpecialChar LyX
23014  has a range of buttons that are available for tool bar customization.
23015  In my toolbar I like to combine the six short cuts above with two more:
23016  One for 
23017 \family sans
23018 Document
23019 \family default
23020 \SpecialChar menuseparator
23021
23022 \family sans
23023 Update
23024 \family default
23025 \SpecialChar menuseparator
23026
23027 \family sans
23028 DVI
23029 \family default
23030  and the other for 
23031 \family sans
23032 Document\SpecialChar menuseparator
23033 View\SpecialChar menuseparator
23034 DVI
23035 \family default
23036  File menu entries.
23037  Here is how it looks like:
23038 \end_layout
23039
23040 \begin_layout LyX-Code
23041 Toolbar
23042 \end_layout
23043
23044 \begin_layout LyX-Code
23045   Layouts
23046 \end_layout
23047
23048 \begin_layout LyX-Code
23049   Icon "layout Standard"
23050 \end_layout
23051
23052 \begin_layout LyX-Code
23053   Icon "layout Section"
23054 \end_layout
23055
23056 \begin_layout LyX-Code
23057   Icon "layout \SpecialChar LaTeX
23058 "
23059 \end_layout
23060
23061 \begin_layout LyX-Code
23062   Icon "layout \SpecialChar LyX
23063 -Code"
23064 \end_layout
23065
23066 \begin_layout LyX-Code
23067   Icon "layout Chunk"
23068 \end_layout
23069
23070 \begin_layout LyX-Code
23071   Separator
23072 \end_layout
23073
23074 \begin_layout LyX-Code
23075   Icon "buffer-view"
23076 \end_layout
23077
23078 \begin_layout LyX-Code
23079   Icon "buffer-typeset"
23080 \end_layout
23081
23082 \begin_layout LyX-Code
23083   Icon "build-program"
23084 \end_layout
23085
23086 \begin_layout LyX-Code
23087   Separator
23088 \end_layout
23089
23090 \begin_layout LyX-Code
23091 .
23092 \end_layout
23093
23094 \begin_layout LyX-Code
23095 .
23096 \end_layout
23097
23098 \begin_layout LyX-Code
23099 .
23100 \end_layout
23101
23102 \begin_layout LyX-Code
23103 End
23104 \end_layout
23105
23106 \begin_layout Subsubsection
23107 Colors customization
23108 \end_layout
23109
23110 \begin_layout Standard
23111 There are a number of colors in \SpecialChar LyX
23112  that can be customized in 
23113 \family sans
23114 Preferences
23115 \family default
23116 .
23117  One of the things that bothers people is the \SpecialChar LaTeX
23118  font color.
23119  The default color is red, since the chunks uses \SpecialChar LaTeX
23120  font, and there is a lot
23121  of chunks in literate documents, you may get tired of seeing everything
23122  in red.
23123  You can change it by going to the tabs 
23124 \family sans
23125 Look&Feel
23126 \family default
23127
23128 \family sans
23129 Colors.
23130 \end_layout
23131
23132 \begin_layout Standard
23133 The next thing is the visible presence of the newline character in the screen.
23134  You can choose the color of this particular character and make it blend
23135  in the background.
23136  I recommend you choosing a color that is close to the background but not
23137  equal, that way you still can see it is there, but it is not bothering
23138  you anymore.
23139 \end_layout
23140
23141 \begin_layout Subsection
23142 \SpecialChar LyX
23143  and knitr/Sweave
23144 \end_layout
23145
23146 \begin_layout Standard
23147 Support for 
23148 \family sans
23149 knitr
23150 \family default
23151  and 
23152 \family sans
23153 Sweave
23154 \family default
23155  is documented in the 
23156 \emph on
23157 knitr.lyx
23158 \emph default
23159  example file and in the Sweave manual (menu 
23160 \family sans
23161 Help\SpecialChar menuseparator
23162 Specific Manuals
23163 \family default
23164 ).
23165 \end_layout
23166
23167 \begin_layout Chapter
23168 \SpecialChar LyX
23169  Archives
23170 \end_layout
23171
23172 \begin_layout Standard
23173 Users sometimes need to be able to 
23174 \begin_inset Quotes eld
23175 \end_inset
23176
23177 bundle
23178 \begin_inset Quotes erd
23179 \end_inset
23180
23181  a \SpecialChar LyX
23182  file together with all the images (and other files) on which it depends,
23183  either for sending to a publisher or for sharing with a co-author.
23184  \SpecialChar LyX
23185  2.0 includes a Python script (
23186 \begin_inset Flex Code
23187 status collapsed
23188
23189 \begin_layout Plain Layout
23190 lyxpak.py
23191 \end_layout
23192
23193 \end_inset
23194
23195 ) that automates this process.
23196  To use it, you must have either the 
23197 \begin_inset Flex Code
23198 status collapsed
23199
23200 \begin_layout Plain Layout
23201 zipfile
23202 \end_layout
23203
23204 \end_inset
23205
23206  or 
23207 \begin_inset Flex Code
23208 status collapsed
23209
23210 \begin_layout Plain Layout
23211 tarfile
23212 \end_layout
23213
23214 \end_inset
23215
23216  python modules installed on your system.
23217  By default, the script prefers the 
23218 \begin_inset Flex Code
23219 status collapsed
23220
23221 \begin_layout Plain Layout
23222 gzip
23223 \end_layout
23224
23225 \end_inset
23226
23227 -compressed 
23228 \begin_inset Flex Code
23229 status collapsed
23230
23231 \begin_layout Plain Layout
23232 tar
23233 \end_layout
23234
23235 \end_inset
23236
23237  format on Unix-like systems and the 
23238 \begin_inset Flex Code
23239 status collapsed
23240
23241 \begin_layout Plain Layout
23242 zip
23243 \end_layout
23244
23245 \end_inset
23246
23247  format on Windows.
23248 \end_layout
23249
23250 \begin_layout Standard
23251 \SpecialChar LyX
23252 's configuration process will set the script up to export a `\SpecialChar LyX
23253  Archive',
23254  and this format will then be available under 
23255 \begin_inset Flex Code
23256 status collapsed
23257
23258 \begin_layout Plain Layout
23259 File\SpecialChar menuseparator
23260 Export
23261 \end_layout
23262
23263 \end_inset
23264
23265 .
23266 \end_layout
23267
23268 \begin_layout Standard
23269 Independently of the platform, the generation of a particular archive format
23270  can be forced by adding either the 
23271 \begin_inset Flex Code
23272 status collapsed
23273
23274 \begin_layout Plain Layout
23275 -t
23276 \end_layout
23277
23278 \end_inset
23279
23280  (for the 
23281 \begin_inset Flex Code
23282 status collapsed
23283
23284 \begin_layout Plain Layout
23285 tar
23286 \end_layout
23287
23288 \end_inset
23289
23290  format) or 
23291 \begin_inset Flex Code
23292 status collapsed
23293
23294 \begin_layout Plain Layout
23295 -z
23296 \end_layout
23297
23298 \end_inset
23299
23300  (for the 
23301 \begin_inset Flex Code
23302 status collapsed
23303
23304 \begin_layout Plain Layout
23305 zip
23306 \end_layout
23307
23308 \end_inset
23309
23310  format) switch to the 
23311 \begin_inset Flex Code
23312 status collapsed
23313
23314 \begin_layout Plain Layout
23315 \SpecialChar LyX
23316 \SpecialChar menuseparator
23317 \SpecialChar LyX
23318  Archive
23319 \end_layout
23320
23321 \end_inset
23322
23323  converter in 
23324 \begin_inset Flex Code
23325 status collapsed
23326
23327 \begin_layout Plain Layout
23328 Tools\SpecialChar menuseparator
23329 Preferences\SpecialChar menuseparator
23330 File Handling\SpecialChar menuseparator
23331 Converters
23332 \end_layout
23333
23334 \end_inset
23335
23336 .
23337  (Make sure you add the switch after the script name, not before it.)
23338 \end_layout
23339
23340 \begin_layout Chapter
23341 \SpecialChar LyX
23342  and the World Wide Web
23343 \end_layout
23344
23345 \begin_layout Standard
23346 \SpecialChar LyX
23347  has long supported the export of documents to various web-friendly formats,
23348  such as HTML.
23349  Before verson 2.0, however, HTML export was always accomplished by the use
23350  of external converters.
23351 \begin_inset Foot
23352 status collapsed
23353
23354 \begin_layout Plain Layout
23355 For details on the use of external converters with \SpecialChar LyX
23356 , see the 
23357 \emph on
23358 Converters
23359 \emph default
23360  section of the Customization manual.
23361 \end_layout
23362
23363 \end_inset
23364
23365  These fall into two large groups: there are converters that use \SpecialChar LaTeX
23366  as an
23367  intermediate format, such as 
23368 \begin_inset Flex Code
23369 status collapsed
23370
23371 \begin_layout Plain Layout
23372 htlatex
23373 \end_layout
23374
23375 \end_inset
23376
23377
23378 \begin_inset Flex Code
23379 status collapsed
23380
23381 \begin_layout Plain Layout
23382 html2latex
23383 \end_layout
23384
23385 \end_inset
23386
23387 , and 
23388 \begin_inset Flex Code
23389 status collapsed
23390
23391 \begin_layout Plain Layout
23392 plastex
23393 \end_layout
23394
23395 \end_inset
23396
23397 , relying upon \SpecialChar LyX
23398  to produce the \SpecialChar LaTeX
23399 ; and there is a converter that works directly
23400  on \SpecialChar LyX
23401  files, 
23402 \begin_inset Flex Code
23403 status collapsed
23404
23405 \begin_layout Plain Layout
23406 e\SpecialChar LyX
23407 er
23408 \end_layout
23409
23410 \end_inset
23411
23412 .
23413  All of these have different advantages and disadvantages.
23414  
23415 \end_layout
23416
23417 \begin_layout Standard
23418 The \SpecialChar LaTeX
23419 -based converters have the advantage that, in principle, they know everythin
23420 g about the exported document that \SpecialChar LaTeX
23421  does.
23422  Such converters do not care, for example, if a certain block of code was
23423  produced by \SpecialChar LyX
23424  or was Evil Red Text.
23425  These converters know about 
23426 \begin_inset Flex Code
23427 status collapsed
23428
23429 \begin_layout Plain Layout
23430 aux
23431 \end_layout
23432
23433 \end_inset
23434
23435  files, counters, and references, and can often make use of the 
23436 \begin_inset Flex Code
23437 status collapsed
23438
23439 \begin_layout Plain Layout
23440 bbl
23441 \end_layout
23442
23443 \end_inset
23444
23445  files generated by Bib\SpecialChar TeX
23446 .
23447  On the other hand, \SpecialChar LaTeX
23448  is a very hard language to parse—it is sometimes said
23449  that only \SpecialChar TeX
23450  itself understands \SpecialChar TeX
23451 —and \SpecialChar LaTeX
23452 -based converters will often choke on
23453  what seem to be quite simple constructs; complex ones can throw them completely
23454 , and as of this writing, for example, the 
23455 \emph on
23456 Embedded Objects
23457 \emph default
23458  manual will not export with 
23459 \begin_inset Flex Code
23460 status collapsed
23461
23462 \begin_layout Plain Layout
23463 htlatex
23464 \end_layout
23465
23466 \end_inset
23467
23468 , though the others will.
23469  The other issue concerns how math is handled.
23470  These converters typically convert the formulae into little pictures that
23471  are then linked from the HTML document.
23472  Since these are actually generated by \SpecialChar LaTeX
23473 , they are accurate.
23474  But they do not scale well, and just getting them to look as if they are
23475  actually meant to be in your document—so that the font sizes seem to be
23476  roughly the same—can be a challenge.
23477 \end_layout
23478
23479 \begin_layout Standard
23480 Alex Fernandez's 
23481 \begin_inset Flex Code
23482 status collapsed
23483
23484 \begin_layout Plain Layout
23485 e\SpecialChar LyX
23486 er
23487 \end_layout
23488
23489 \end_inset
23490
23491  (
23492 \begin_inset CommandInset href
23493 LatexCommand href
23494 name "http://elyxer.nongnu.org/"
23495 target "http://elyxer.nongnu.org/"
23496
23497 \end_inset
23498
23499 ) solves some of these problems.
23500  In particular, the formulae it produces scale perfectly, since it renders
23501  math using a combination of HTML and CSS rather than converting the formulae
23502  to images.
23503  But even moderately complex formula are rendered less well than with 
23504 \begin_inset Flex Code
23505 status collapsed
23506
23507 \begin_layout Plain Layout
23508 htlatex
23509 \end_layout
23510
23511 \end_inset
23512
23513 ; this reflects the limitations of HTML.
23514 \begin_inset Foot
23515 status collapsed
23516
23517 \begin_layout Plain Layout
23518 That said, 
23519 \begin_inset Flex Code
23520 status collapsed
23521
23522 \begin_layout Plain Layout
23523 e\SpecialChar LyX
23524 er
23525 \end_layout
23526
23527 \end_inset
23528
23529  can also use jsMath and MathJax for equations, but this setting is only
23530  available globally and requires one to have access to a server that runs
23531  the backend.
23532 \end_layout
23533
23534 \end_inset
23535
23536  More importantly (as of version 1.1.1, at least), 
23537 \begin_inset Flex Code
23538 status collapsed
23539
23540 \begin_layout Plain Layout
23541 e\SpecialChar LyX
23542 er
23543 \end_layout
23544
23545 \end_inset
23546
23547  has limited support for math macros and no support for user-defined paragraph
23548  or character styles.
23549  These limitations make 
23550 \begin_inset Flex Code
23551 status collapsed
23552
23553 \begin_layout Plain Layout
23554 e\SpecialChar LyX
23555 er
23556 \end_layout
23557
23558 \end_inset
23559
23560  unsuitable for many of the documents \SpecialChar LyX
23561  users produce.
23562  In principle, of course, these problems could be solved, but the \SpecialChar LyX
23563  developers
23564  have decided to follow a different path and have made \SpecialChar LyX
23565  itself capable of
23566  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
23567 , DocBook, and plaintext.
23568 \end_layout
23569
23570 \begin_layout Standard
23571 As of this writing, XHTML output remains under development and should probably
23572  be regarded as 
23573 \begin_inset Quotes eld
23574 \end_inset
23575
23576 experimental
23577 \begin_inset Quotes erd
23578 \end_inset
23579
23580 .
23581 \begin_inset Foot
23582 status collapsed
23583
23584 \begin_layout Plain Layout
23585 The file 
23586 \begin_inset Flex Code
23587 status collapsed
23588
23589 \begin_layout Plain Layout
23590 development/HTML.notes
23591 \end_layout
23592
23593 \end_inset
23594
23595 , which can be found in the \SpecialChar LyX
23596  source tree or 
23597 \begin_inset CommandInset href
23598 LatexCommand href
23599 name "accessed online"
23600 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
23601
23602 \end_inset
23603
23604 , usually contains up-to-date information about the state of XHTML output.
23605  See also the list of XHTML bugs on 
23606 \begin_inset CommandInset href
23607 LatexCommand href
23608 name "the bug tracker"
23609 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"
23610
23611 \end_inset
23612
23613 .
23614 \end_layout
23615
23616 \end_inset
23617
23618  Still, the developers have chosen this approach because it has several
23619  potential advantages over the other two.
23620 \end_layout
23621
23622 \begin_layout Standard
23623 These advantages are primarily due to the fact that the XHTML output routines,
23624  since they are part of \SpecialChar LyX
23625 , know everything \SpecialChar LyX
23626  knows about the document being
23627  exported.
23628 \begin_inset Foot
23629 status collapsed
23630
23631 \begin_layout Plain Layout
23632 Another advantage is that, since these routines are internal to \SpecialChar LyX
23633 , they are
23634  immune to changes in \SpecialChar LyX
23635 's file format, or to changes in the semantics of
23636  existing insets.
23637 \end_layout
23638
23639 \end_inset
23640
23641  So they know about the table of contents (as displayed in the outline),
23642  about the counters associated with different paragraph styles, and about
23643  user-defined styles.
23644  The XHTML output routines know what \SpecialChar LyX
23645  knows about internationalization,
23646  too, so they will output 
23647 \begin_inset Quotes eld
23648 \end_inset
23649
23650 Chapter 1
23651 \begin_inset Quotes erd
23652 \end_inset
23653
23654  or 
23655 \begin_inset Quotes eld
23656 \end_inset
23657
23658
23659 \lang ngerman
23660 Kapitel
23661 \lang english
23662  1
23663 \begin_inset Quotes erd
23664 \end_inset
23665
23666 , depending upon the language in effect at the time.
23667  
23668 \end_layout
23669
23670 \begin_layout Standard
23671 Quite generally, the output routines know what \SpecialChar LyX
23672  knows about document layout,
23673  that is, about how the document is to be rendered on screen.
23674  We use this information when we output the document as XHTML.
23675  In particular, \SpecialChar LyX
23676  
23677 \emph on
23678 automatically
23679 \emph default
23680  generates CSS style information corresponding to the layout information
23681  it uses to render the document on screen: if section headings are supposed
23682  to be sans-serif and bold as seen in \SpecialChar LyX
23683 , then (by default) they will be sans-seri
23684 f and bold when viewed in a web browser, too.
23685  And this is true not just for pre-defined styles, like Section, but for
23686  any style, including user-defined styles.
23687  Indeed, the XHTML output routines make no distinction between user-defined
23688  paragraph and character styles and \SpecialChar LyX
23689 's own pre-defined styles: in each case,
23690  everything \SpecialChar LyX
23691  knows about the styles is contained in the layout files.
23692  And much the same is true as regards pre-defined textual insets, such as
23693  footnotes, and various custom insets.
23694  
23695 \end_layout
23696
23697 \begin_layout Standard
23698 The result is that XHTML output can be customized and extended in exactly
23699  the same way \SpecialChar LaTeX
23700  output can be customized and extended: through layout files
23701  and modules.
23702  See chapter five of the 
23703 \emph on
23704 Customization 
23705 \emph default
23706 manual for the details.
23707 \end_layout
23708
23709 \begin_layout Standard
23710 The remainder of this chapter contains more detailed information on XHTML
23711  output, its limitations, and ways to work around those limitations.
23712 \end_layout
23713
23714 \begin_layout Section
23715 Math Output in XHTML
23716 \end_layout
23717
23718 \begin_layout Standard
23719 \SpecialChar LyX
23720  offers four choices for how math is rendered.
23721  These have various advantages and disadvantages:
23722 \end_layout
23723
23724 \begin_layout Itemize
23725 MathML
23726 \begin_inset Newline newline
23727 \end_inset
23728
23729 MathML is a dialect of XML designed specifically for mathematics on the
23730  web, and it typically renders very well in browsers that support it.
23731  The disadvantage is that not all browsers support MathML, and support is
23732  not complete even in the Gecko-based browsers, such as Firefox.
23733 \begin_inset Newline newline
23734 \end_inset
23735
23736 If \SpecialChar LyX
23737  is unable to render a formula as MathML—for example, if the formula
23738  uses the 
23739 \begin_inset Flex Code
23740 status collapsed
23741
23742 \begin_layout Plain Layout
23743 xymatrix
23744 \end_layout
23745
23746 \end_inset
23747
23748  package or ERT—then it will instead output the formula as an image.
23749  
23750 \end_layout
23751
23752 \begin_layout Itemize
23753 HTML
23754 \begin_inset Newline newline
23755 \end_inset
23756
23757 As mentioned above, 
23758 \begin_inset Flex Code
23759 status collapsed
23760
23761 \begin_layout Plain Layout
23762 elyxer
23763 \end_layout
23764
23765 \end_inset
23766
23767  outputs math as HTML, styled by CSS.
23768 \begin_inset Foot
23769 status collapsed
23770
23771 \begin_layout Plain Layout
23772 \SpecialChar LyX
23773  has borrowed some of the CSS for its HTML output from 
23774 \begin_inset Flex Code
23775 status collapsed
23776
23777 \begin_layout Plain Layout
23778 elyxer
23779 \end_layout
23780
23781 \end_inset
23782
23783 .
23784 \end_layout
23785
23786 \end_inset
23787
23788  For simple formulae, this can work quite well, though with more complicated
23789  formulae it tends to break down.
23790  Still, this method has the advantage that it is very widely supported and
23791  so it may be appropriate for documents that contain only a little, fairly
23792  simple math.
23793 \begin_inset Newline newline
23794 \end_inset
23795
23796 If Lyx is unable to render a formula as HTML—for example, if the formula
23797  uses the 
23798 \begin_inset Flex Code
23799 status collapsed
23800
23801 \begin_layout Plain Layout
23802 xymatrix
23803 \end_layout
23804
23805 \end_inset
23806
23807  package or ERT—then it will instead output the formula as an image.
23808  
23809 \end_layout
23810
23811 \begin_layout Itemize
23812 Images
23813 \begin_inset Newline newline
23814 \end_inset
23815
23816 Like 
23817 \begin_inset Flex Code
23818 status collapsed
23819
23820 \begin_layout Plain Layout
23821 htlatex
23822 \end_layout
23823
23824 \end_inset
23825
23826 , \SpecialChar LyX
23827  will output formulae as images, the very same images, in fact, that are
23828  used for instant preview.
23829 \begin_inset Foot
23830 status collapsed
23831
23832 \begin_layout Plain Layout
23833 Instant preview does 
23834 \emph on
23835 not 
23836 \emph default
23837 have to be on for images to be output, however.
23838 \end_layout
23839
23840 \end_inset
23841
23842  The advantage to this method is that the images are simply generated by
23843  \SpecialChar LaTeX
23844 , so they are very accurate.
23845  The disadvantage, as mentioned earlier, is that these are bitmapped images,
23846  so they do not scale terribly well, and one cannot copy them, etc.
23847  (As of this writing, there are also problems about equation numbering.
23848  See 
23849 \begin_inset CommandInset href
23850 LatexCommand href
23851 name "bug 6894"
23852 target "http://www.lyx.org/trac/ticket/6894"
23853
23854 \end_inset
23855
23856 .)
23857 \begin_inset Newline newline
23858 \end_inset
23859
23860 The size of the images can be controlled by setting the 
23861 \begin_inset Quotes eld
23862 \end_inset
23863
23864 Math Images Scaling
23865 \begin_inset Quotes erd
23866 \end_inset
23867
23868  parameter under 
23869 \begin_inset Flex Noun
23870 status collapsed
23871
23872 \begin_layout Plain Layout
23873 Document\SpecialChar menuseparator
23874 Settings\SpecialChar menuseparator
23875 Output
23876 \end_layout
23877
23878 \end_inset
23879
23880 .
23881 \begin_inset Foot
23882 status collapsed
23883
23884 \begin_layout Plain Layout
23885 For those who want to know, this controls the resolution of the image in
23886  dots per inch and is based upon a default of 75 dpi.
23887 \end_layout
23888
23889 \end_inset
23890
23891
23892 \begin_inset Newline newline
23893 \end_inset
23894
23895 If \SpecialChar LyX
23896  for some reason fails to create an image for a formula (e.g., if a required
23897  \SpecialChar LaTeX
23898  package is not installed), then it will fall back to outputing the raw
23899  \SpecialChar LaTeX
23900 .
23901 \end_layout
23902
23903 \begin_layout Itemize
23904 \SpecialChar LaTeX
23905
23906 \begin_inset Newline newline
23907 \end_inset
23908
23909 Finally, \SpecialChar LyX
23910  will happily output math as \SpecialChar LaTeX
23911 .
23912  As well as being the output of last resort, this method can be used with
23913  such tools as 
23914 \begin_inset CommandInset href
23915 LatexCommand href
23916 name "jsMath"
23917 target "http://www.math.union.edu/~dpvc/jsMath/"
23918
23919 \end_inset
23920
23921 , which uses JavaScript to render \SpecialChar LaTeX
23922  embedded in HTML documents.
23923  \SpecialChar LyX
23924  wraps the \SpecialChar LaTeX
23925  in either a 
23926 \begin_inset Flex Code
23927 status collapsed
23928
23929 \begin_layout Plain Layout
23930 span
23931 \end_layout
23932
23933 \end_inset
23934
23935  (for inline formulas) or 
23936 \begin_inset Flex Code
23937 status collapsed
23938
23939 \begin_layout Plain Layout
23940 div
23941 \end_layout
23942
23943 \end_inset
23944
23945  (for displayed formulas) with 
23946 \begin_inset Flex Code
23947 status collapsed
23948
23949 \begin_layout Plain Layout
23950 class='math'
23951 \end_layout
23952
23953 \end_inset
23954
23955 , as is required for jsMath.
23956 \end_layout
23957
23958 \begin_layout Standard
23959 One of these output methods must be selected under 
23960 \begin_inset Flex Noun
23961 status collapsed
23962
23963 \begin_layout Plain Layout
23964 Document\SpecialChar menuseparator
23965 Settings\SpecialChar menuseparator
23966 Output
23967 \end_layout
23968
23969 \end_inset
23970
23971 .
23972  By default, \SpecialChar LyX
23973  outputs MathML.
23974  This is a document-wide setting, therefore.
23975 \end_layout
23976
23977 \begin_layout Standard
23978 Eventually, \SpecialChar LyX
23979  will offer the user the option to select an alternate output
23980  method for a particular inset, say, one that isn't being rendered very
23981  well by MathML.
23982 \begin_inset Foot
23983 status collapsed
23984
23985 \begin_layout Plain Layout
23986 That said, since \SpecialChar LyX
23987  falls back to images if the inset contains ERT, then one
23988  can force output as an image by putting some harmless ERT into the math,
23989  for example: 
23990 \begin_inset Formula $a=b\relax$
23991 \end_inset
23992
23993 .
23994 \end_layout
23995
23996 \end_inset
23997
23998
23999 \end_layout
24000
24001 \begin_layout Section
24002 Bibliography and Citations
24003 \end_layout
24004
24005 \begin_layout Standard
24006 XHTML output fully supports bibliographies and citations.
24007  
24008 \end_layout
24009
24010 \begin_layout Standard
24011 Citation labels are generated by the same machinery that generates \SpecialChar LyX
24012 's on-screen
24013  labels, so the labels will look in the output much as they do in \SpecialChar LyX
24014 , though
24015  better.
24016  If you are using numerical citations, then \SpecialChar LyX
24017  will output numerical labels,
24018  such as [1] or [17], rather than simply showing the citation key in square
24019  brackets, as it does on-screen.
24020  If you are using author-year citations, then \SpecialChar LyX
24021  will add lowercase letters
24022  to the years, just as Bib\SpecialChar TeX
24023  does, if it finds more than one citation for
24024  a given author-year combination.
24025  The labels will be printed with the bibliography entries.
24026  Note that there is, at present, no way to customize the appearance of the
24027  labels, for example, to choose between square brackets and parentheses.
24028 \end_layout
24029
24030 \begin_layout Standard
24031 Bibliography output is handled by the same machinery that handles the presentati
24032 on of reference information in the citation dialog, so you will see in the
24033  XHTML output pretty much what you would see if you were to look at a given
24034  entry in the citation dialog.
24035  The formatting can be customized in your layout file or, preferably, in
24036  a module.
24037  See the 
24038 \emph on
24039 Customization
24040 \emph default
24041  manual for the details.
24042 \end_layout
24043
24044 \begin_layout Standard
24045 The main defect at present is that cross-referenced information is printed
24046  with every entry with which it is associated.
24047  So you can see things like this:
24048 \end_layout
24049
24050 \begin_layout Quote
24051 Jason Stanley, 
24052 \begin_inset Quotes eld
24053 \end_inset
24054
24055 Context and Logical Form
24056 \begin_inset Quotes erd
24057 \end_inset
24058
24059 , in 
24060 \emph on
24061 Language in Context: Selected Essays
24062 \emph default
24063  (Oxford: Oxford University Press, 2007), pp.
24064  30–68.
24065 \end_layout
24066
24067 \begin_layout Quote
24068 Jason Stanley, 
24069 \begin_inset Quotes eld
24070 \end_inset
24071
24072 Semantics in Context
24073 \begin_inset Quotes erd
24074 \end_inset
24075
24076 , in 
24077 \emph on
24078 Language in Context: Selected Essays
24079 \emph default
24080  (Oxford: Oxford University Press, 2007), pp.
24081  201–30.
24082 \end_layout
24083
24084 \begin_layout Standard
24085 This should be fixed before long.
24086 \end_layout
24087
24088 \begin_layout Standard
24089 There is no support at present for sectioned bibliographies.
24090  If you have multiple bibliographies, then \SpecialChar LyX
24091  will print the same bibliography
24092  over and over.
24093 \end_layout
24094
24095 \begin_layout Section
24096 Indexes
24097 \end_layout
24098
24099 \begin_layout Standard
24100 \SpecialChar LyX
24101  will happily export indexes as XHTML, but with certain limitations at the
24102  moment.
24103 \end_layout
24104
24105 \begin_layout Standard
24106 Index export will be most reliable when you do not attempt to use the fancy
24107  constructs that are described in the section on indexes in the 
24108 \emph on
24109 User's Guide
24110 \emph default
24111 .
24112 \begin_inset Foot
24113 status collapsed
24114
24115 \begin_layout Plain Layout
24116 The main issue here is that \SpecialChar LyX
24117  itself does not really handle these.
24118  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
24119 .
24120 \end_layout
24121
24122 \end_inset
24123
24124  We'll describe how they are handled using the subsection headings from
24125  that section.
24126 \end_layout
24127
24128 \begin_layout Itemize
24129 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
24130  makes an effort to support these,
24131  but the entries must be separated by 
24132 \begin_inset Quotes eld
24133 \end_inset
24134
24135  ! 
24136 \begin_inset Quotes erd
24137 \end_inset
24138
24139 , that is, there must be spaces around the exclamation point.
24140  This is because it is otherwise too difficult to check for escaped exclamation
24141  points, ones in math, and so forth.
24142 \end_layout
24143
24144 \begin_layout Itemize
24145 Page Ranges: There is no support at all for page ranges, since these make
24146  no sense with XHMTL.
24147  Instead, you will just get two index entries, one at either end.
24148 \end_layout
24149
24150 \begin_layout Itemize
24151 Cross-referencing: There is no support for cross-referencing.
24152  If \SpecialChar LyX
24153  finds an entry containing the 
24154 \begin_inset Quotes eld
24155 \end_inset
24156
24157 |see\SpecialChar ldots
24158
24159 \begin_inset Quotes erd
24160 \end_inset
24161
24162  construct, it is just dropped, and the rest is treated as an ordinary index
24163  entry.
24164 \end_layout
24165
24166 \begin_layout Itemize
24167 Index Entry Order: \SpecialChar LyX
24168  does support attempts to fix the sorting order.
24169  It will take what is before the first `@' it finds and use that for sorting,
24170  taking what follows the first `@' to be the actual entry.
24171  At present, \SpecialChar LyX
24172  does not check for escaped `@', so do not try to index email
24173  addresses.
24174 \end_layout
24175
24176 \begin_layout Itemize
24177 Index Entry Layout: You can format entries by using the text style dialog,
24178  or by using any other method available within \SpecialChar LyX
24179  itself.
24180  There is no support for constructs like: 
24181 \begin_inset Quotes eld
24182 \end_inset
24183
24184 entry|textbf
24185 \begin_inset Quotes erd
24186 \end_inset
24187
24188 .
24189  Indeed, if \SpecialChar LyX
24190  finds a pipe symbol, `|', in an entry, it will delete it and
24191  everything that follows it.
24192 \end_layout
24193
24194 \begin_layout Itemize
24195 Multiple Indexes: There is no support for multiple indexes.
24196  Rather, all index entries will be printed as one large index.
24197  To avoid our printing several versions of the index, we print only the
24198  main index, so make sure you have one.
24199 \end_layout
24200
24201 \begin_layout Section
24202 Nomenclature and Glossary
24203 \end_layout
24204
24205 \begin_layout Standard
24206 There is at present no support for glossaries.
24207  Adding it would be fairly trivial, and welcome.
24208 \end_layout
24209
24210 \begin_layout Chapter
24211 The \SpecialChar LyX
24212  Server
24213 \end_layout
24214
24215 \begin_layout Section
24216 Introduction
24217 \end_layout
24218
24219 \begin_layout Standard
24220 The `\SpecialChar LyX
24221  server' allows other programs to talk to \SpecialChar LyX
24222 , invoke \SpecialChar LyX
24223  commands, and retrieve
24224  information about the \SpecialChar LyX
24225  internal state.
24226  This is only intended for advanced users, but they should find it useful.
24227  It is by writing to the \SpecialChar LyX
24228  server, for example, that bibliography managers,
24229  such as JabRef, are able to 
24230 \begin_inset Quotes eld
24231 \end_inset
24232
24233 push
24234 \begin_inset Quotes erd
24235 \end_inset
24236
24237  citations to \SpecialChar LyX
24238 .
24239 \end_layout
24240
24241 \begin_layout Section
24242 Starting the \SpecialChar LyX
24243  Server
24244 \end_layout
24245
24246 \begin_layout Standard
24247 The \SpecialChar LyX
24248  server works through the use of a pair of named pipes.
24249  These are usually located in 
24250 \begin_inset Flex Code
24251 status collapsed
24252
24253 \begin_layout Plain Layout
24254 UserDir
24255 \end_layout
24256
24257 \end_inset
24258
24259 , (except on Windows, where 
24260 \emph on
24261 local
24262 \emph default
24263  named pipes are special objects located in 
24264 \begin_inset Flex Code
24265 status collapsed
24266
24267 \begin_layout Plain Layout
24268
24269 \backslash
24270
24271 \backslash
24272 .
24273 \backslash
24274 pipe
24275 \end_layout
24276
24277 \end_inset
24278
24279 ) and have the names 
24280 \begin_inset Quotes eld
24281 \end_inset
24282
24283
24284 \begin_inset Flex Code
24285 status collapsed
24286
24287 \begin_layout Plain Layout
24288 lyxpipe.in
24289 \end_layout
24290
24291 \end_inset
24292
24293
24294 \begin_inset Quotes erd
24295 \end_inset
24296
24297  and 
24298 \begin_inset Quotes eld
24299 \end_inset
24300
24301
24302 \begin_inset Flex Code
24303 status collapsed
24304
24305 \begin_layout Plain Layout
24306 lyxpipe.out
24307 \end_layout
24308
24309 \end_inset
24310
24311
24312 \begin_inset Quotes erd
24313 \end_inset
24314
24315 .
24316  External programs write into 
24317 \begin_inset Flex Code
24318 status collapsed
24319
24320 \begin_layout Plain Layout
24321 lyxpipe.in
24322 \end_layout
24323
24324 \end_inset
24325
24326  and read back data from 
24327 \begin_inset Flex Code
24328 status collapsed
24329
24330 \begin_layout Plain Layout
24331 lyxpipe.out
24332 \end_layout
24333
24334 \end_inset
24335
24336 .
24337  The stem of the pipe names can be defined in the 
24338 \begin_inset Flex Noun
24339 status collapsed
24340
24341 \begin_layout Plain Layout
24342 Tools\SpecialChar menuseparator
24343 Preferences
24344 \end_layout
24345
24346 \end_inset
24347
24348  dialog, for example 
24349 \begin_inset Flex Code
24350 status collapsed
24351
24352 \begin_layout Plain Layout
24353 "/home/myhome/lyxpipe"
24354 \end_layout
24355
24356 \end_inset
24357
24358 , or 
24359 \begin_inset Flex Code
24360 status collapsed
24361
24362 \begin_layout Plain Layout
24363 "
24364 \backslash
24365
24366 \backslash
24367 .
24368 \backslash
24369 pipe
24370 \backslash
24371 lyxpipe"
24372 \end_layout
24373
24374 \end_inset
24375
24376  on Windows (where any working path instead of lyxpipe can be used, for
24377  example 
24378 \begin_inset Flex Code
24379 status collapsed
24380
24381 \begin_layout Plain Layout
24382 "
24383 \backslash
24384
24385 \backslash
24386 .
24387 \backslash
24388 pipe
24389 \backslash
24390 my
24391 \backslash
24392 lyx
24393 \backslash
24394 pipe"
24395 \end_layout
24396
24397 \end_inset
24398
24399  would also work).
24400  You 
24401 \emph on
24402 must
24403 \emph default
24404  configure this manually in order for the server to start.
24405 \end_layout
24406
24407 \begin_layout Standard
24408 \SpecialChar LyX
24409  will add the '
24410 \begin_inset Flex Code
24411 status collapsed
24412
24413 \begin_layout Plain Layout
24414 .in
24415 \end_layout
24416
24417 \end_inset
24418
24419 ' and '
24420 \begin_inset Flex Code
24421 status collapsed
24422
24423 \begin_layout Plain Layout
24424 .out
24425 \end_layout
24426
24427 \end_inset
24428
24429 ' to create the pipes.
24430  If one of the pipes already exists, \SpecialChar LyX
24431  will assume that another \SpecialChar LyX
24432  process
24433  is already running and will not start the server.
24434  On POSIX (Unix like) systems, if for some other reason, an unused 
24435 \begin_inset Quotes eld
24436 \end_inset
24437
24438 stale
24439 \begin_inset Quotes erd
24440 \end_inset
24441
24442  pipe is left in existence when \SpecialChar LyX
24443  closes, then \SpecialChar LyX
24444  will try to delete it.
24445  If this fails for some reason, you will need to delete the pipes manually
24446  and then restart \SpecialChar LyX
24447 .
24448  On Windows, pipes are deleted by the OS on program termination or crash,
24449  so 
24450 \begin_inset Quotes eld
24451 \end_inset
24452
24453 stale
24454 \begin_inset Quotes erd
24455 \end_inset
24456
24457  pipes should not be possible.
24458 \end_layout
24459
24460 \begin_layout Standard
24461 To have several \SpecialChar LyX
24462  processes with servers at the same time, you have to use
24463  different configurations, perhaps by using separate user directories, each
24464  with its own 
24465 \begin_inset Flex Code
24466 status collapsed
24467
24468 \begin_layout Plain Layout
24469 preferences
24470 \end_layout
24471
24472 \end_inset
24473
24474  file, for each process.
24475 \end_layout
24476
24477 \begin_layout Standard
24478 If you are developing a client program, you might find it useful to enable
24479  debugging information from the \SpecialChar LyX
24480  server.
24481  Do this by starting \SpecialChar LyX
24482  as 
24483 \begin_inset Flex Code
24484 status collapsed
24485
24486 \begin_layout Plain Layout
24487 lyx -dbg lyxserver
24488 \end_layout
24489
24490 \end_inset
24491
24492 .
24493 \end_layout
24494
24495 \begin_layout Standard
24496 You can find a complete example client written in C++ in the source distribution
24497  as 
24498 \begin_inset Flex Code
24499 status collapsed
24500
24501 \begin_layout Plain Layout
24502 development/lyxserver/server_monitor.cpp
24503 \end_layout
24504
24505 \end_inset
24506
24507 .
24508 \end_layout
24509
24510 \begin_layout Standard
24511 Another useful tool is the command-line based client found in 
24512 \begin_inset Flex Code
24513 status collapsed
24514
24515 \begin_layout Plain Layout
24516 src/client/lyxclient
24517 \end_layout
24518
24519 \end_inset
24520
24521 .
24522 \end_layout
24523
24524 \begin_layout Section
24525 Normal communication
24526 \end_layout
24527
24528 \begin_layout Standard
24529 To issue a \SpecialChar LyX
24530  call, the client writes a line of ASCII text into the input
24531  pipe.
24532  This line has the following format:
24533 \end_layout
24534
24535 \begin_layout Quote
24536 LYXCMD:
24537 \emph on
24538 clientname
24539 \emph default
24540 :
24541 \emph on
24542 function
24543 \emph default
24544 :
24545 \emph on
24546 argument
24547 \end_layout
24548
24549 \begin_layout Description
24550 clientname is a name that the client can choose arbitrarily.
24551  Its only use is that \SpecialChar LyX
24552  will echo it if it sends an answer—so a client can
24553  dispatch results from different requesters.
24554 \end_layout
24555
24556 \begin_layout Description
24557 function is the function you want \SpecialChar LyX
24558  to perform.
24559  It is the same as the commands you'd use in the minibuffer.
24560 \end_layout
24561
24562 \begin_layout Description
24563 argument is an optional argument which is meaningful only to some functions
24564  (for instance, the 
24565 \begin_inset Quotes eld
24566 \end_inset
24567
24568 self-insert
24569 \begin_inset Quotes erd
24570 \end_inset
24571
24572  LFUN will insert the argument as text at the cursor position).
24573 \end_layout
24574
24575 \begin_layout Standard
24576 The answer from \SpecialChar LyX
24577  will arrive in the output pipe and be of the form
24578 \end_layout
24579
24580 \begin_layout Quote
24581 INFO:
24582 \emph on
24583 clientname
24584 \emph default
24585 :
24586 \emph on
24587 function
24588 \emph default
24589 :
24590 \emph on
24591 data
24592 \end_layout
24593
24594 \begin_layout Standard
24595 where 
24596 \emph on
24597 clientname
24598 \emph default
24599  and 
24600 \emph on
24601 function
24602 \emph default
24603  are just echoed from the command request, while 
24604 \emph on
24605 data
24606 \emph default
24607  is more or less useful information filled according to how the command
24608  execution worked out.
24609  Some commands, such as 
24610 \begin_inset Quotes eld
24611 \end_inset
24612
24613 font-state
24614 \begin_inset Quotes erd
24615 \end_inset
24616
24617 , will return information about the internal state of \SpecialChar LyX
24618 , while other will
24619  return an empty data-response.
24620  This means that the command execution went fine.
24621 \end_layout
24622
24623 \begin_layout Standard
24624 In case of errors, the response from \SpecialChar LyX
24625  will have this form
24626 \end_layout
24627
24628 \begin_layout Quote
24629 ERROR:
24630 \emph on
24631 clientname
24632 \emph default
24633 :
24634 \emph on
24635 function
24636 \emph default
24637 :
24638 \emph on
24639 error message
24640 \end_layout
24641
24642 \begin_layout Standard
24643 where the 
24644 \emph on
24645 error message
24646 \emph default
24647  should contain an explanation of why the command failed.
24648 \end_layout
24649
24650 \begin_layout Standard
24651 Examples:
24652 \end_layout
24653
24654 \begin_layout LyX-Code
24655 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
24656 \begin_inset Newline newline
24657 \end_inset
24658
24659 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
24660 \begin_inset Newline newline
24661 \end_inset
24662
24663 read a <~/.lyxpipe.out
24664 \begin_inset Newline newline
24665 \end_inset
24666
24667 echo $a
24668 \end_layout
24669
24670 \begin_layout Subsection
24671 AppleScript (Mac OS X)
24672 \end_layout
24673
24674 \begin_layout Standard
24675 Since \SpecialChar LyX
24676  2.1, \SpecialChar LyX
24677  supports basic interactions with AppleScript for normal communicatio
24678 n through the command run.
24679  This command takes a direct argument (the 
24680 \series bold
24681 function
24682 \series default
24683  to perform) and an optional argument.
24684  It either returns the output of the function or triggers an error with
24685  the error message and code.
24686 \end_layout
24687
24688 \begin_layout Standard
24689 Example:
24690 \end_layout
24691
24692 \begin_layout LyX-Code
24693 tell application "\SpecialChar LyX
24694 "
24695 \end_layout
24696
24697 \begin_layout LyX-Code
24698   try
24699 \end_layout
24700
24701 \begin_layout LyX-Code
24702     -- Stores the current file name into f
24703 \end_layout
24704
24705 \begin_layout LyX-Code
24706     set f to (run "server-get-filename" with argument "")
24707 \end_layout
24708
24709 \begin_layout LyX-Code
24710     on error the error_message number the error_number
24711 \end_layout
24712
24713 \begin_layout LyX-Code
24714       display dialog "Error: " & the error_number & ".
24715  " ¬
24716 \end_layout
24717
24718 \begin_layout LyX-Code
24719               & the error_message buttons {"OK"} default button 1
24720 \end_layout
24721
24722 \begin_layout LyX-Code
24723   end try
24724 \end_layout
24725
24726 \begin_layout LyX-Code
24727 end tell
24728 \end_layout
24729
24730 \begin_layout Section
24731 Notification
24732 \end_layout
24733
24734 \begin_layout Standard
24735 \SpecialChar LyX
24736  can notify clients of events going on asynchronously.
24737  Currently it will only do this if the user binds a key sequence with the
24738  function 
24739 \begin_inset Quotes eld
24740 \end_inset
24741
24742 notify
24743 \begin_inset Quotes erd
24744 \end_inset
24745
24746 .
24747  The format of the string \SpecialChar LyX
24748  sends is as follows:
24749 \end_layout
24750
24751 \begin_layout Quote
24752 \begin_inset Flex Code
24753 status collapsed
24754
24755 \begin_layout Plain Layout
24756 NOTIFY:
24757 \end_layout
24758
24759 \end_inset
24760
24761
24762 \emph on
24763 key-sequence
24764 \end_layout
24765
24766 \begin_layout Standard
24767 where 
24768 \emph on
24769 key-sequence
24770 \emph default
24771  is the printed representation of the key sequence that was actually typed
24772  by the user.
24773 \end_layout
24774
24775 \begin_layout Standard
24776 This mechanism can be used to extend \SpecialChar LyX
24777 's command set and implement macros.
24778  Bind some key sequence to 
24779 \begin_inset Quotes eld
24780 \end_inset
24781
24782 notify
24783 \begin_inset Quotes erd
24784 \end_inset
24785
24786 .
24787  Then start a client that listens on the output pipe, dispatches the command
24788  according to the sequence, and starts a function that may use \SpecialChar LyX
24789  calls and
24790  \SpecialChar LyX
24791  requests to issue a command or a series of commands to \SpecialChar LyX
24792 .
24793 \end_layout
24794
24795 \begin_layout Section
24796 The simple \SpecialChar LyX
24797  Server Protocol
24798 \end_layout
24799
24800 \begin_layout Standard
24801 \SpecialChar LyX
24802  implements a simple protocol that can be used for session management.
24803  All messages are of the form
24804 \end_layout
24805
24806 \begin_layout Quote
24807 LYXSRV:
24808 \emph on
24809 clientname
24810 \emph default
24811 :
24812 \emph on
24813 protocol message
24814 \end_layout
24815
24816 \begin_layout Standard
24817 where 
24818 \emph on
24819 protocol message
24820 \emph default
24821  can be 
24822 \begin_inset Quotes eld
24823 \end_inset
24824
24825 hello
24826 \begin_inset Quotes erd
24827 \end_inset
24828
24829  or 
24830 \begin_inset Quotes eld
24831 \end_inset
24832
24833 bye
24834 \begin_inset Quotes erd
24835 \end_inset
24836
24837 .
24838  If 
24839 \begin_inset Quotes eld
24840 \end_inset
24841
24842 hello
24843 \begin_inset Quotes erd
24844 \end_inset
24845
24846  is received from a client, \SpecialChar LyX
24847  will report back to inform the client that
24848  it's listening to it's messages, while 
24849 \begin_inset Quotes eld
24850 \end_inset
24851
24852 bye
24853 \begin_inset Quotes erd
24854 \end_inset
24855
24856  sent from \SpecialChar LyX
24857  will inform clients that \SpecialChar LyX
24858  is closing.
24859 \end_layout
24860
24861 \begin_layout Section
24862 Reverse DVI/PDF search
24863 \end_layout
24864
24865 \begin_layout Standard
24866 Some DVI/PDF viewers
24867 \begin_inset Foot
24868 status collapsed
24869
24870 \begin_layout Plain Layout
24871 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
24872  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
24873 \end_layout
24874
24875 \end_inset
24876
24877  provide 
24878 \emph on
24879 reverse search
24880 \emph default
24881  facility (also called 
24882 \emph on
24883 inverse search
24884 \emph default
24885 ).
24886  This means that you can tell \SpecialChar LyX
24887  to put the cursor to a specific line in the
24888  document by clicking at the respective position in the DVI/PDF output.
24889  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
24890 .
24891  This is done via the \SpecialChar LyX
24892  server either by using the named pipe (
24893 \emph on
24894 lyxpipe
24895 \emph default
24896 ), or the UNIX domain socket (
24897 \emph on
24898 lyxsocket
24899 \emph default
24900 ) that \SpecialChar LyX
24901  creates in its temporary directory (this is the way the 
24902 \begin_inset Flex Code
24903 status collapsed
24904
24905 \begin_layout Plain Layout
24906 lyxclient
24907 \end_layout
24908
24909 \end_inset
24910
24911  program communicates with \SpecialChar LyX
24912 ).
24913  In some cases, you need a helper script that mediates between the viewer
24914  and \SpecialChar LyX
24915 , in others, the viewer can communicate with \SpecialChar LyX
24916  directly.
24917  This depends on the selected viewer and on your operating system.
24918  The same applies to the way viewers need to be configured and the way the
24919  reverse search is actually performed.
24920  In what follows, we will thus describe how to setup reverse search for
24921  specific viewers.
24922  Before we turn to this, though, we will explain what needs to be done generally
24923  to enable reverse search in the DVI/PDF output.
24924 \end_layout
24925
24926 \begin_layout Subsection
24927 Automatic setup
24928 \begin_inset CommandInset label
24929 LatexCommand label
24930 name "subsec:rev-search"
24931
24932 \end_inset
24933
24934
24935 \end_layout
24936
24937 \begin_layout Standard
24938 In most cases \SpecialChar LyX
24939  will do the work for you by enabling the option 
24940 \begin_inset Flex Noun
24941 status collapsed
24942
24943 \begin_layout Plain Layout
24944 Synchronize with Output
24945 \end_layout
24946
24947 \end_inset
24948
24949  in the menu 
24950 \begin_inset Flex Noun
24951 status collapsed
24952
24953 \begin_layout Plain Layout
24954 Document\SpecialChar menuseparator
24955 Settings\SpecialChar menuseparator
24956 Output
24957 \end_layout
24958
24959 \end_inset
24960
24961 .
24962  In such a case \SpecialChar LyX
24963  will automatically insert the necessary Sync\SpecialChar TeX
24964  macro (for
24965  PDF) or load the srcltx package (for DVI) respectively.
24966  This option can be easily reached also on 
24967 \begin_inset Flex Code
24968 status collapsed
24969
24970 \begin_layout Plain Layout
24971 View/Update
24972 \end_layout
24973
24974 \end_inset
24975
24976  Toolbar.
24977 \end_layout
24978
24979 \begin_layout Standard
24980 If you need a different setting, you can select or input a custom macro
24981  from the drop down box just below 
24982 \begin_inset Flex Noun
24983 status collapsed
24984
24985 \begin_layout Plain Layout
24986 Document\SpecialChar menuseparator
24987 Settings\SpecialChar menuseparator
24988 Output\SpecialChar menuseparator
24989 Synchronize with Output
24990 \end_layout
24991
24992 \end_inset
24993
24994 .
24995 \end_layout
24996
24997 \begin_layout Standard
24998 Note that the method 
24999 \begin_inset Flex Code
25000 status collapsed
25001
25002 \begin_layout Plain Layout
25003
25004 \backslash
25005 synctex=1
25006 \end_layout
25007
25008 \end_inset
25009
25010  enables gzip compression.
25011  If your viewer does not support it, you should instead use 
25012 \begin_inset Flex Code
25013 status collapsed
25014
25015 \begin_layout Plain Layout
25016
25017 \backslash
25018 synctex=-1
25019 \end_layout
25020
25021 \end_inset
25022
25023 .
25024 \end_layout
25025
25026 \begin_layout Standard
25027 Please also note that including the 
25028 \begin_inset Flex Code
25029 status collapsed
25030
25031 \begin_layout Plain Layout
25032 srcltx
25033 \end_layout
25034
25035 \end_inset
25036
25037  package or 
25038 \begin_inset Flex Code
25039 status collapsed
25040
25041 \begin_layout Plain Layout
25042 src-specials
25043 \end_layout
25044
25045 \end_inset
25046
25047  sometimes has an undesired impact on the typesetting.
25048  Thus, you should switch output synchronization off for the final typesetting
25049  if you use the 
25050 \begin_inset Flex Code
25051 status collapsed
25052
25053 \begin_layout Plain Layout
25054 srcltx
25055 \end_layout
25056
25057 \end_inset
25058
25059  package or 
25060 \begin_inset Flex Code
25061 status collapsed
25062
25063 \begin_layout Plain Layout
25064 src-specials
25065 \end_layout
25066
25067 \end_inset
25068
25069 .
25070  
25071 \end_layout
25072
25073 \begin_layout Standard
25074 In case you need some more special settings that are not covered by the
25075  automatic settings, read the next section about how to set up output synchroniz
25076 ation manually.
25077  If the automatic setup suits your needs, you can readily jump to section
25078 \begin_inset space ~
25079 \end_inset
25080
25081
25082 \begin_inset CommandInset ref
25083 LatexCommand ref
25084 reference "subsec:configuring-viewers"
25085
25086 \end_inset
25087
25088 , where the necessary configuration steps in your viewer – needed both with
25089  the automatic and the manual setup – are described.
25090 \end_layout
25091
25092 \begin_layout Subsection
25093 Manual setup
25094 \end_layout
25095
25096 \begin_layout Standard
25097 \SpecialChar LaTeX
25098  provides several different methods for reverse search.
25099  Some are built-in in the 
25100 \begin_inset Flex Code
25101 status collapsed
25102
25103 \begin_layout Plain Layout
25104 latex/pdflatex
25105 \end_layout
25106
25107 \end_inset
25108
25109  program, some are provided by external packages.
25110  Your choice depends on whether your \SpecialChar LaTeX
25111  distribution already provides a given
25112  method (the built-in methods are rather new) and whether your viewer can
25113  cope with it.
25114  The available methods are described in the following.
25115 \end_layout
25116
25117 \begin_layout Subsubsection*
25118 Built-in DVI-search via src-specials (DVI only) 
25119 \end_layout
25120
25121 \begin_layout Standard
25122 This method provides the DVI file with the necessary information for reverse
25123  search.
25124  It is available in \SpecialChar LaTeX
25125  since quite some time (any somewhat recent \SpecialChar LaTeX
25126  distribution
25127  should include it), and it works reliably.
25128  To enable it, change the 
25129 \begin_inset Flex Noun
25130 status collapsed
25131
25132 \begin_layout Plain Layout
25133 La
25134 \family sans
25135 TeX
25136 \family default
25137  (plain)->DVI
25138 \end_layout
25139
25140 \end_inset
25141
25142  or 
25143 \begin_inset Flex Noun
25144 status collapsed
25145
25146 \begin_layout Plain Layout
25147 La
25148 \family sans
25149 TeX
25150 \family default
25151  (plain)->DraftDVI
25152 \end_layout
25153
25154 \end_inset
25155
25156  converter in 
25157 \begin_inset Flex Noun
25158 status collapsed
25159
25160 \begin_layout Plain Layout
25161 Preferences\SpecialChar menuseparator
25162 File Handling\SpecialChar menuseparator
25163 Converters
25164 \end_layout
25165
25166 \end_inset
25167
25168  to 
25169 \begin_inset Flex Code
25170 status collapsed
25171
25172 \begin_layout Plain Layout
25173 latex -src-specials $$i
25174 \end_layout
25175
25176 \end_inset
25177
25178 .
25179  If this doesn't work, check if your \SpecialChar TeX
25180  engine needs different options (the
25181  syntax might differ in some distributions).
25182 \end_layout
25183
25184 \begin_layout Subsubsection*
25185 External Packages (PDFSync and scrltx) 
25186 \end_layout
25187
25188 \begin_layout Standard
25189 The packages 
25190 \emph on
25191 pdfsync
25192 \emph default
25193  and 
25194 \emph on
25195 scrltx
25196 \emph default
25197  provide reverse search facility for PDF output (via pdflatex) and DVI output,
25198  respectively.
25199  In order to enable it, load the packages in the \SpecialChar LyX
25200  preamble: 
25201 \end_layout
25202
25203 \begin_layout Itemize
25204 \begin_inset Flex Code
25205 status collapsed
25206
25207 \begin_layout Plain Layout
25208
25209 \backslash
25210 usepackage{pdfsync}
25211 \end_layout
25212
25213 \end_inset
25214
25215  for reverse PDF search,
25216 \end_layout
25217
25218 \begin_layout Itemize
25219 \begin_inset Flex Code
25220 status collapsed
25221
25222 \begin_layout Plain Layout
25223
25224 \backslash
25225 usepackage[active]{srcltx}
25226 \end_layout
25227
25228 \end_inset
25229
25230  for reverse DVI search.
25231 \end_layout
25232
25233 \begin_layout Standard
25234 If you want to be able to perform both DVI and PDF reverse searches, you
25235  can also insert in the preamble the following lines
25236 \end_layout
25237
25238 \begin_layout LyX-Code
25239
25240 \backslash
25241 usepackage{ifpdf}
25242 \begin_inset Newline newline
25243 \end_inset
25244
25245
25246 \backslash
25247 ifpdf
25248 \begin_inset Newline newline
25249 \end_inset
25250
25251   
25252 \backslash
25253 usepackage{pdfsync}
25254 \begin_inset Newline newline
25255 \end_inset
25256
25257
25258 \backslash
25259 else
25260 \begin_inset Newline newline
25261 \end_inset
25262
25263   
25264 \backslash
25265 usepackage[active]{srcltx}
25266 \begin_inset Newline newline
25267 \end_inset
25268
25269
25270 \backslash
25271 fi
25272 \end_layout
25273
25274 \begin_layout Standard
25275 This way, you can preview the file as either DVI or PDF (pdflatex) and the
25276  right package will be used.
25277 \end_layout
25278
25279 \begin_layout Standard
25280 Note that PDFSync might affect the output layout of your document.
25281  It is therefore advised to disable PDFsync for final documents.
25282 \end_layout
25283
25284 \begin_layout Subsubsection*
25285 Built-in reverse search via Sync\SpecialChar TeX
25286  (DVI and PDF) 
25287 \end_layout
25288
25289 \begin_layout Standard
25290 Recent versions of 
25291 \begin_inset Flex Code
25292 status collapsed
25293
25294 \begin_layout Plain Layout
25295 (pdf)latex
25296 \end_layout
25297
25298 \end_inset
25299
25300  have built-in support for both PDF and DVI reverse search.
25301  This so-called 
25302 \emph on
25303 Sync\SpecialChar TeX
25304
25305 \emph default
25306  facility is basically the result of the integration of the PDFSync package
25307  to the pdftex program and its merge with the 
25308 \emph on
25309 scr-specials
25310 \emph default
25311  approach.
25312  You need at least \SpecialChar TeX
25313 Live 2008 or a recent Mik\SpecialChar TeX
25314  distribution in order to use
25315  it.
25316 \begin_inset Foot
25317 status collapsed
25318
25319 \begin_layout Plain Layout
25320 For some reason, Mik\SpecialChar TeX
25321  does not understand/obey the command \SpecialChar LyX
25322  inserts into
25323  the preamble when you check the "Enable Forward/Reverse Search" button
25324  in the toolbar and does not generate the necessary info.
25325 \end_layout
25326
25327 \begin_layout Plain Layout
25328 The generation of the required info can be forced by changing the converter
25329  "\SpecialChar LaTeX
25330  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
25331  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
25332  the -synctex=1 switch).
25333 \end_layout
25334
25335 \end_inset
25336
25337  Also note that only a few PDF viewers (Okular and Qpdfview on Unix, Skim
25338  on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
25339  support.
25340 \end_layout
25341
25342 \begin_layout Standard
25343 To enable Sync\SpecialChar TeX
25344  for DVI output, change the 
25345 \begin_inset Flex Noun
25346 status collapsed
25347
25348 \begin_layout Plain Layout
25349 La
25350 \family sans
25351 TeX
25352 \family default
25353  (plain) -> DVI
25354 \end_layout
25355
25356 \end_inset
25357
25358  or 
25359 \begin_inset Flex Noun
25360 status collapsed
25361
25362 \begin_layout Plain Layout
25363 La
25364 \family sans
25365 TeX
25366 \family default
25367  (plain) -> DraftDVI
25368 \end_layout
25369
25370 \end_inset
25371
25372  converter in 
25373 \begin_inset Flex Noun
25374 status collapsed
25375
25376 \begin_layout Plain Layout
25377 Preferences\SpecialChar menuseparator
25378 File Handling\SpecialChar menuseparator
25379 Converters
25380 \end_layout
25381
25382 \end_inset
25383
25384  to 
25385 \begin_inset Flex Code
25386 status collapsed
25387
25388 \begin_layout Plain Layout
25389 latex -synctex=1 $$i
25390 \end_layout
25391
25392 \end_inset
25393
25394 , and for PDF output, change the 
25395 \begin_inset Flex Noun
25396 status collapsed
25397
25398 \begin_layout Plain Layout
25399 La
25400 \family sans
25401 TeX
25402 \family default
25403  (pdflatex) -> PDF (pdflatex)
25404 \end_layout
25405
25406 \end_inset
25407
25408  or converter to 
25409 \begin_inset Flex Code
25410 status collapsed
25411
25412 \begin_layout Plain Layout
25413 pdflatex -synctex=1 $$i
25414 \end_layout
25415
25416 \end_inset
25417
25418 .
25419  Check the documentation of your viewer whether the viewer needs to be configure
25420 d for the use with Sync\SpecialChar TeX
25421 .
25422 \begin_inset Foot
25423 status collapsed
25424
25425 \begin_layout Plain Layout
25426 Note that the option 
25427 \begin_inset Flex Code
25428 status collapsed
25429
25430 \begin_layout Plain Layout
25431 -synctex=1
25432 \end_layout
25433
25434 \end_inset
25435
25436  option enables gzip compression.
25437  If your viewer does not support it, you should instead use 
25438 \begin_inset Flex Code
25439 status collapsed
25440
25441 \begin_layout Plain Layout
25442 -synctex=-1
25443 \end_layout
25444
25445 \end_inset
25446
25447 .
25448 \end_layout
25449
25450 \end_inset
25451
25452
25453 \end_layout
25454
25455 \begin_layout Subsection
25456 Configuring and using specific viewers
25457 \begin_inset CommandInset label
25458 LatexCommand label
25459 name "subsec:configuring-viewers"
25460
25461 \end_inset
25462
25463
25464 \end_layout
25465
25466 \begin_layout Subsubsection*
25467 Xdvi (all platforms)
25468 \end_layout
25469
25470 \begin_layout Standard
25471 If you use 
25472 \begin_inset Flex Code
25473 status collapsed
25474
25475 \begin_layout Plain Layout
25476 xdvi
25477 \end_layout
25478
25479 \end_inset
25480
25481 , you don't need to do anything else for performing a reverse DVI search,
25482  as \SpecialChar LyX
25483  already provides the necessary hooks for automatically using the 
25484 \begin_inset Flex Code
25485 status collapsed
25486
25487 \begin_layout Plain Layout
25488 lyxclient
25489 \end_layout
25490
25491 \end_inset
25492
25493  program.
25494  Just setup your document as described above (reverse search is triggered
25495  by Ctrl-click or Alt-click on Mac OSX, respectively).
25496 \end_layout
25497
25498 \begin_layout Standard
25499 However, if for whatever reason you want to use the named pipe instead of
25500  the socket for communicating with \SpecialChar LyX
25501 , simply change the DVI viewer in 
25502 \begin_inset Flex Noun
25503 status collapsed
25504
25505 \begin_layout Plain Layout
25506 Preferences\SpecialChar menuseparator
25507 File Handling\SpecialChar menuseparator
25508 File formats
25509 \end_layout
25510
25511 \end_inset
25512
25513  to
25514 \begin_inset Foot
25515 status collapsed
25516
25517 \begin_layout Plain Layout
25518 On Mac OSX you have to use 
25519 \begin_inset Flex Code
25520 status collapsed
25521
25522 \begin_layout Plain Layout
25523 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
25524 \end_layout
25525
25526 \end_inset
25527
25528
25529 \end_layout
25530
25531 \end_inset
25532
25533  
25534 \begin_inset Flex Code
25535 status collapsed
25536
25537 \begin_layout Plain Layout
25538 xdvi -editor "lyxeditor.sh %f %l"
25539 \end_layout
25540
25541 \end_inset
25542
25543 , where 
25544 \begin_inset Flex Code
25545 status collapsed
25546
25547 \begin_layout Plain Layout
25548 lyxeditor.sh
25549 \end_layout
25550
25551 \end_inset
25552
25553  is a suitable script.
25554  For example, a minimal shell script is the following one:
25555 \end_layout
25556
25557 \begin_layout LyX-Code
25558 #!/bin/sh
25559 \begin_inset Newline newline
25560 \end_inset
25561
25562 LYXPIPE="/path/to/lyxpipe"
25563 \begin_inset Newline newline
25564 \end_inset
25565
25566 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
25567 \begin_inset Newline newline
25568 \end_inset
25569
25570 echo "$COMMAND" > "${LYXPIPE}".in || exit
25571 \begin_inset Newline newline
25572 \end_inset
25573
25574 read TMP < "${LYXPIPE}".out || exit
25575 \end_layout
25576
25577 \begin_layout Standard
25578 where 
25579 \begin_inset Flex Code
25580 status collapsed
25581
25582 \begin_layout Plain Layout
25583 /path/to/lyxpipe
25584 \end_layout
25585
25586 \end_inset
25587
25588  is the LyXServer pipe path specified in 
25589 \begin_inset Flex Noun
25590 status collapsed
25591
25592 \begin_layout Plain Layout
25593 Preferences\SpecialChar menuseparator
25594 Paths
25595 \end_layout
25596
25597 \end_inset
25598
25599 .
25600 \begin_inset Foot
25601 status collapsed
25602
25603 \begin_layout Plain Layout
25604 In the 
25605 \begin_inset Flex Code
25606 status collapsed
25607
25608 \begin_layout Plain Layout
25609 development/tools
25610 \end_layout
25611
25612 \end_inset
25613
25614  folder of a source distribution you can find a 
25615 \begin_inset Flex Code
25616 status collapsed
25617
25618 \begin_layout Plain Layout
25619 lyxeditor
25620 \end_layout
25621
25622 \end_inset
25623
25624  script which is able to locate the 
25625 \emph on
25626 lyxpipe
25627 \emph default
25628  based on your preferences.
25629 \end_layout
25630
25631 \end_inset
25632
25633
25634 \end_layout
25635
25636 \begin_layout Subsubsection*
25637 MacDviX (Mac OSX)
25638 \end_layout
25639
25640 \begin_layout Standard
25641 At the end of 
25642 \begin_inset Flex Code
25643 status collapsed
25644
25645 \begin_layout Plain Layout
25646 /Applications/MacDviX_Folder/calleditor.script
25647 \end_layout
25648
25649 \end_inset
25650
25651 , add the following lines:
25652 \end_layout
25653
25654 \begin_layout LyX-Code
25655 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
25656 \begin_inset Newline newline
25657 \end_inset
25658
25659 exit 1
25660 \end_layout
25661
25662 \begin_layout Standard
25663 Modify the lines accordingly if you install \SpecialChar LyX
25664  somewhere else than in the
25665  Applications folder.
25666 \end_layout
25667
25668 \begin_layout Standard
25669 Reverse search is triggered by Alt-click (OPTION-click).
25670 \end_layout
25671
25672 \begin_layout Subsubsection*
25673 Skim (Mac OSX)
25674 \end_layout
25675
25676 \begin_layout Standard
25677 Enter 
25678 \begin_inset Flex Code
25679 status collapsed
25680
25681 \begin_layout Plain Layout
25682 open -a Skim.app $$i
25683 \end_layout
25684
25685 \end_inset
25686
25687  to the viewer setting in 
25688 \begin_inset Flex Noun
25689 status collapsed
25690
25691 \begin_layout Plain Layout
25692 Preferences\SpecialChar menuseparator
25693 File Handling\SpecialChar menuseparator
25694 File formats\SpecialChar menuseparator
25695 PDF (pdflatex)
25696 \end_layout
25697
25698 \end_inset
25699
25700 , and then in 
25701 \begin_inset Flex Noun
25702 status collapsed
25703
25704 \begin_layout Plain Layout
25705 Skim\SpecialChar menuseparator
25706 Preferences\SpecialChar menuseparator
25707 Sync
25708 \end_layout
25709
25710 \end_inset
25711
25712  choose 
25713 \begin_inset Flex Noun
25714 status collapsed
25715
25716 \begin_layout Plain Layout
25717 custom
25718 \end_layout
25719
25720 \end_inset
25721
25722  preset and enter command 
25723 \begin_inset Flex Noun
25724 status collapsed
25725
25726 \begin_layout Plain Layout
25727 /Applications/\SpecialChar LyX
25728 .app/Contents/MacOS/lyxeditor
25729 \end_layout
25730
25731 \end_inset
25732
25733 .
25734 \end_layout
25735
25736 \begin_layout Standard
25737 Reverse search is triggered by COMMAND-SHIFT-click
25738 \end_layout
25739
25740 \begin_layout Subsubsection*
25741 Okular (KDE)
25742 \end_layout
25743
25744 \begin_layout Standard
25745 Go to 
25746 \begin_inset Flex Noun
25747 status collapsed
25748
25749 \begin_layout Plain Layout
25750 Settings\SpecialChar menuseparator
25751 Configure Okular\SpecialChar menuseparator
25752 Editor
25753 \end_layout
25754
25755 \end_inset
25756
25757 , select 
25758 \begin_inset Quotes eld
25759 \end_inset
25760
25761 Custom Text Editor
25762 \begin_inset Quotes erd
25763 \end_inset
25764
25765  and add the command 
25766 \begin_inset Flex Code
25767 status collapsed
25768
25769 \begin_layout Plain Layout
25770 lyxclient -g %f %l
25771 \end_layout
25772
25773 \end_inset
25774
25775 .
25776 \end_layout
25777
25778 \begin_layout Standard
25779 Reverse search is triggered by SHIFT-click.
25780 \end_layout
25781
25782 \begin_layout Subsubsection*
25783 Qpdfview (Unix)
25784 \end_layout
25785
25786 \begin_layout Standard
25787 Qpdfview supports Sync\SpecialChar TeX
25788  since version 0.3.5.
25789  Go to 
25790 \begin_inset Flex Noun
25791 status collapsed
25792
25793 \begin_layout Plain Layout
25794 Edit\SpecialChar menuseparator
25795 Settings\SpecialChar menuseparator
25796 Behavior
25797 \end_layout
25798
25799 \end_inset
25800
25801 , click on the input field of the 
25802 \begin_inset Quotes eld
25803 \end_inset
25804
25805 Source editor
25806 \begin_inset Quotes erd
25807 \end_inset
25808
25809  item and add the command 
25810 \begin_inset Flex Code
25811 status collapsed
25812
25813 \begin_layout Plain Layout
25814 lyxclient -g %1 %2
25815 \end_layout
25816
25817 \end_inset
25818
25819 .
25820 \end_layout
25821
25822 \begin_layout Standard
25823 Reverse search is triggered by double-click
25824 \change_inserted -851615295 1468920502
25825  or, in more recent versions, by context menu
25826 \change_unchanged
25827 .
25828 \end_layout
25829
25830 \begin_layout Subsubsection*
25831 YAP (Windows)
25832 \end_layout
25833
25834 \begin_layout Standard
25835 Launch yap, choose its 
25836 \begin_inset Flex Noun
25837 status collapsed
25838
25839 \begin_layout Plain Layout
25840 View\SpecialChar menuseparator
25841 Options
25842 \end_layout
25843
25844 \end_inset
25845
25846  menu and select the 
25847 \begin_inset Quotes eld
25848 \end_inset
25849
25850 Inverse DVI Search
25851 \begin_inset Quotes erd
25852 \end_inset
25853
25854  tab.
25855  Click on the 
25856 \begin_inset Quotes eld
25857 \end_inset
25858
25859 New\SpecialChar ldots
25860
25861 \begin_inset Quotes erd
25862 \end_inset
25863
25864  button and, in the window that opens, enter 
25865 \begin_inset Quotes eld
25866 \end_inset
25867
25868 \SpecialChar LyX
25869  Editor
25870 \begin_inset Quotes erd
25871 \end_inset
25872
25873  (or any other name you like) in the 
25874 \begin_inset Quotes eld
25875 \end_inset
25876
25877 Name:
25878 \begin_inset Quotes erd
25879 \end_inset
25880
25881  field.
25882  Now click on the button labeled 
25883 \begin_inset Quotes eld
25884 \end_inset
25885
25886 \SpecialChar ldots
25887
25888 \begin_inset Quotes erd
25889 \end_inset
25890
25891  to open a file dialog and navigate to the directory containing the batch
25892  file 
25893 \begin_inset Flex Code
25894 status collapsed
25895
25896 \begin_layout Plain Layout
25897 lyxeditor.bat
25898 \end_layout
25899
25900 \end_inset
25901
25902  (see below).
25903  Select 
25904 \begin_inset Flex Code
25905 status collapsed
25906
25907 \begin_layout Plain Layout
25908 lyxeditor.bat
25909 \end_layout
25910
25911 \end_inset
25912
25913  and then specify the program arguments as 
25914 \begin_inset Flex Code
25915 status collapsed
25916
25917 \begin_layout Plain Layout
25918 %f %l
25919 \end_layout
25920
25921 \end_inset
25922
25923 .
25924  The 
25925 \begin_inset Flex Code
25926 status collapsed
25927
25928 \begin_layout Plain Layout
25929 lyxeditor.bat
25930 \end_layout
25931
25932 \end_inset
25933
25934  wrapper is used for communicating with \SpecialChar LyX
25935  through the 
25936 \emph on
25937 lyxpipe
25938 \emph default
25939  and is as follows:
25940 \end_layout
25941
25942 \begin_layout LyX-Code
25943 @echo off
25944 \begin_inset Newline newline
25945 \end_inset
25946
25947 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
25948 \backslash
25949
25950 \backslash
25951 .
25952 \backslash
25953 pipe
25954 \backslash
25955 lyxpipe.in
25956 \begin_inset Newline newline
25957 \end_inset
25958
25959 type 
25960 \backslash
25961
25962 \backslash
25963 .
25964 \backslash
25965 pipe
25966 \backslash
25967 lyxpipe.out
25968 \end_layout
25969
25970 \begin_layout Standard
25971 Make sure that the \SpecialChar LyX
25972 Server pipe path you specified in \SpecialChar LyX
25973  is 
25974 \begin_inset Flex Code
25975 status collapsed
25976
25977 \begin_layout Plain Layout
25978
25979 \backslash
25980
25981 \backslash
25982 .
25983 \backslash
25984 pipe
25985 \backslash
25986 lyxpipe
25987 \end_layout
25988
25989 \end_inset
25990
25991 , otherwise change the 
25992 \begin_inset Flex Code
25993 status collapsed
25994
25995 \begin_layout Plain Layout
25996 lyxeditor.bat
25997 \end_layout
25998
25999 \end_inset
26000
26001  wrapper accordingly.
26002 \end_layout
26003
26004 \begin_layout Standard
26005 In yap, reverse search is triggered by double-click.
26006 \end_layout
26007
26008 \begin_layout Subsubsection*
26009 SumatraPDF (Windows)
26010 \end_layout
26011
26012 \begin_layout Standard
26013 In order to use SumatraPDF for inverse search, enter 
26014 \begin_inset Flex Code
26015 status collapsed
26016
26017 \begin_layout Plain Layout
26018 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
26019 \end_layout
26020
26021 \end_inset
26022
26023  in the viewer setting in 
26024 \begin_inset Flex Noun
26025 status collapsed
26026
26027 \begin_layout Plain Layout
26028 Preferences\SpecialChar menuseparator
26029 File Handling\SpecialChar menuseparator
26030 File formats\SpecialChar menuseparator
26031 PDF (pdflatex)
26032 \end_layout
26033
26034 \end_inset
26035
26036 , where 
26037 \begin_inset Flex Code
26038 status collapsed
26039
26040 \begin_layout Plain Layout
26041 lyxeditor.bat
26042 \end_layout
26043
26044 \end_inset
26045
26046  is the previous wrapper.
26047  If SumatraPDF.exe is not in your command PATH, use its full file name.
26048 \end_layout
26049
26050 \begin_layout Standard
26051 Reverse search is triggered by double-click.
26052 \end_layout
26053
26054 \begin_layout Subsubsection*
26055 YAP (Cygwin)
26056 \end_layout
26057
26058 \begin_layout Standard
26059 First of all, make sure that yap is your default DVI viewer in the Windows
26060  environment, then launch it, choose its 
26061 \begin_inset Flex Noun
26062 status collapsed
26063
26064 \begin_layout Plain Layout
26065 View\SpecialChar menuseparator
26066 Options
26067 \end_layout
26068
26069 \end_inset
26070
26071  menu and select the 
26072 \begin_inset Quotes eld
26073 \end_inset
26074
26075 Inverse DVI Search
26076 \begin_inset Quotes erd
26077 \end_inset
26078
26079  tab.
26080  Click on the 
26081 \begin_inset Quotes eld
26082 \end_inset
26083
26084 New\SpecialChar ldots
26085
26086 \begin_inset Quotes erd
26087 \end_inset
26088
26089  button and, in the window that opens, enter 
26090 \begin_inset Quotes eld
26091 \end_inset
26092
26093 \SpecialChar LyX
26094  Editor
26095 \begin_inset Quotes erd
26096 \end_inset
26097
26098  (or any other name you like) in the 
26099 \begin_inset Quotes eld
26100 \end_inset
26101
26102 Name:
26103 \begin_inset Quotes erd
26104 \end_inset
26105
26106  field.
26107  Now click on the button labeled 
26108 \begin_inset Quotes eld
26109 \end_inset
26110
26111 \SpecialChar ldots
26112
26113 \begin_inset Quotes erd
26114 \end_inset
26115
26116  to open a file dialog and navigate to the directory containing the 
26117 \begin_inset Flex Code
26118 status collapsed
26119
26120 \begin_layout Plain Layout
26121 lyxeditor.exe
26122 \end_layout
26123
26124 \end_inset
26125
26126  program (which is installed by default on Cygwin along with the \SpecialChar LyX
26127  executable).
26128  Select 
26129 \begin_inset Flex Code
26130 status collapsed
26131
26132 \begin_layout Plain Layout
26133 lyxeditor.exe
26134 \end_layout
26135
26136 \end_inset
26137
26138  and then specify the program arguments as 
26139 \begin_inset Flex Code
26140 status collapsed
26141
26142 \begin_layout Plain Layout
26143 -g %f %l
26144 \end_layout
26145
26146 \end_inset
26147
26148 .
26149  In this way, you will be using the 
26150 \emph on
26151 lyxsocket
26152 \emph default
26153  for communicating with \SpecialChar LyX
26154 .
26155  If, for whatever reason, you want to use the 
26156 \emph on
26157 lyxpipe
26158 \emph default
26159 , omit the 
26160 \begin_inset Flex Code
26161 status collapsed
26162
26163 \begin_layout Plain Layout
26164 -g
26165 \end_layout
26166
26167 \end_inset
26168
26169  option and be sure to specify the \SpecialChar LyX
26170 Server pipe path in the \SpecialChar LyX
26171  preferences.
26172 \end_layout
26173
26174 \begin_layout Standard
26175 In yap, reverse search is triggered by double-click.
26176 \end_layout
26177
26178 \begin_layout Subsubsection*
26179 SumatraPDF (Cygwin)
26180 \end_layout
26181
26182 \begin_layout Standard
26183 In order to use SumatraPDF for inverse search, enter 
26184 \begin_inset Flex Code
26185 status collapsed
26186
26187 \begin_layout Plain Layout
26188 SumatraPDF -inverse-search "lyxeditor -g %f %l"
26189 \end_layout
26190
26191 \end_inset
26192
26193  in the viewer setting in 
26194 \begin_inset Flex Noun
26195 status collapsed
26196
26197 \begin_layout Plain Layout
26198 Preferences\SpecialChar menuseparator
26199 File Handling\SpecialChar menuseparator
26200 File formats\SpecialChar menuseparator
26201 PDF (pdflatex)
26202 \end_layout
26203
26204 \end_inset
26205
26206 .
26207  If SumatraPDF.exe is not in your command PATH, use its full posix path.
26208  The 
26209 \begin_inset Flex Code
26210 status collapsed
26211
26212 \begin_layout Plain Layout
26213 -g
26214 \end_layout
26215
26216 \end_inset
26217
26218  enables communication via the 
26219 \emph on
26220 lyxsocket
26221 \emph default
26222 .
26223  Again, omit the 
26224 \begin_inset Flex Code
26225 status collapsed
26226
26227 \begin_layout Plain Layout
26228 -g
26229 \end_layout
26230
26231 \end_inset
26232
26233  option if you want to use the 
26234 \emph on
26235 lyxpipe
26236 \emph default
26237 , and be sure to specify the \SpecialChar LyX
26238 Server pipe path in the \SpecialChar LyX
26239  preferences.
26240 \end_layout
26241
26242 \begin_layout Standard
26243 Reverse search is triggered by double-click.
26244 \end_layout
26245
26246 \begin_layout Section
26247 Forward search
26248 \end_layout
26249
26250 \begin_layout Standard
26251 Forward search is, as the name implies, in a sense the 
26252 \begin_inset Quotes eld
26253 \end_inset
26254
26255 opposite
26256 \begin_inset Quotes erd
26257 \end_inset
26258
26259  of reverse search.
26260  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
26261 .
26262  If forward search is set up (as described in what follows), you can put
26263  the cursor anywhere in your \SpecialChar LyX
26264  document, and hit 
26265 \begin_inset Flex Noun
26266 status collapsed
26267
26268 \begin_layout Plain Layout
26269 Navigate\SpecialChar menuseparator
26270 Forward search
26271 \end_layout
26272
26273 \end_inset
26274
26275  (or select 
26276 \begin_inset Flex Noun
26277 status collapsed
26278
26279 \begin_layout Plain Layout
26280 Forward search
26281 \end_layout
26282
26283 \end_inset
26284
26285  in the context menu via right mouse click), and then the viewer will jump
26286  to that position as well.
26287  This implies, of course, that your viewer supports this function.
26288 \end_layout
26289
26290 \begin_layout Standard
26291 To make forward search possible, you first need to provide the generated
26292  output PDF/DVI file with additional information about the \SpecialChar TeX
26293  sources.
26294  This can be done via the methods described in the section 
26295 \begin_inset CommandInset ref
26296 LatexCommand ref
26297 reference "subsec:rev-search"
26298
26299 \end_inset
26300
26301 .
26302 \end_layout
26303
26304 \begin_layout Standard
26305 Additionally, you need to configure \SpecialChar LyX
26306  for using your viewers in 
26307 \begin_inset Flex Noun
26308 status collapsed
26309
26310 \begin_layout Plain Layout
26311 Tools\SpecialChar menuseparator
26312 Preferences\SpecialChar menuseparator
26313 Output\SpecialChar menuseparator
26314 General
26315 \end_layout
26316
26317 \end_inset
26318
26319 .
26320  We provide a range of tested configurations for some viewers, which you
26321  can select from the drop down list.
26322  If none of these configurations suits you, you have to find out and enter
26323  a suitable configuration yourself.
26324  The definition syntax uses the following placeholders:
26325 \end_layout
26326
26327 \begin_layout Itemize
26328 \noindent
26329 \begin_inset Flex Code
26330 status collapsed
26331
26332 \begin_layout Plain Layout
26333 $$n
26334 \end_layout
26335
26336 \end_inset
26337
26338 : row number
26339 \end_layout
26340
26341 \begin_layout Itemize
26342 \noindent
26343 \begin_inset Flex Code
26344 status collapsed
26345
26346 \begin_layout Plain Layout
26347 $$t
26348 \end_layout
26349
26350 \end_inset
26351
26352 : name of the (temporary) exported .tex file (without path)
26353 \end_layout
26354
26355 \begin_layout Itemize
26356 \noindent
26357 \begin_inset Flex Code
26358 status collapsed
26359
26360 \begin_layout Plain Layout
26361 $$f
26362 \end_layout
26363
26364 \end_inset
26365
26366 : name of the (temporary) exported .tex file (including path)
26367 \end_layout
26368
26369 \begin_layout Itemize
26370 \noindent
26371 \begin_inset Flex Code
26372 status collapsed
26373
26374 \begin_layout Plain Layout
26375 $$o
26376 \end_layout
26377
26378 \end_inset
26379
26380 : name of the exported output file (either dvi or pdf, depending on which
26381  one exists in the temporary directory)
26382 \end_layout
26383
26384 \begin_layout Standard
26385 Note that only some of the viewers provide full forward search functionality,
26386  among them yap, xdvi, okular
26387 \begin_inset Foot
26388 status collapsed
26389
26390 \begin_layout Plain Layout
26391 You might want to set 
26392 \begin_inset Flex Code
26393 status collapsed
26394
26395 \begin_layout Plain Layout
26396 okular –unique
26397 \end_layout
26398
26399 \end_inset
26400
26401  in 
26402 \begin_inset Flex Noun
26403 status collapsed
26404
26405 \begin_layout Plain Layout
26406 Tools\SpecialChar menuseparator
26407 Preferences\SpecialChar menuseparator
26408 File Handling\SpecialChar menuseparator
26409 File
26410 \begin_inset space ~
26411 \end_inset
26412
26413 Formats
26414 \end_layout
26415
26416 \end_inset
26417
26418
26419 \end_layout
26420
26421 \end_inset
26422
26423 , qpdfview and SumatraPDF
26424 \begin_inset Foot
26425 status collapsed
26426
26427 \begin_layout Plain Layout
26428 SumatraPDF can also use DDE commands through the external program CMCDDE
26429  — downloadable from 
26430 \begin_inset CommandInset href
26431 LatexCommand href
26432 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
26433
26434 \end_inset
26435
26436
26437 \end_layout
26438
26439 \end_inset
26440
26441 .
26442  While many of the widespread PDF viewers (most notably Adobe Reader) do
26443  not support forward search at all, some other viewers – e.
26444 \begin_inset space \thinspace{}
26445 \end_inset
26446
26447 g.
26448  evince and xpdf – allow at least to reload the document and jump to a specific
26449  page of the file, so you can at least navigate 
26450 \begin_inset Quotes eld
26451 \end_inset
26452
26453 near
26454 \begin_inset Quotes erd
26455 \end_inset
26456
26457 .
26458  This latter functionality is provided by an external call of synctex (see
26459  the predefined example configurations).
26460  
26461 \end_layout
26462
26463 \begin_layout Standard
26464 Forward search works both with DVI and PDF output.
26465  \SpecialChar LyX
26466  simply checks which preview format you have used before (i.
26467 \begin_inset space \thinspace{}
26468 \end_inset
26469
26470 e., which format is already there in the temporary directory) and chooses
26471  the appropriate configuration for the respective format.
26472 \end_layout
26473
26474 \end_body
26475 \end_document