]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Update docs to 2.3.0alpha1 format
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 541
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 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 \use_dash_ligatures true
57 \graphics default
58 \default_output_format pdf2
59 \output_sync 0
60 \bibtex_command default
61 \index_command default
62 \paperfontsize 12
63 \spacing single
64 \use_hyperref true
65 \pdf_title "LyX's Additional Features manual"
66 \pdf_author "LyX Team"
67 \pdf_subject "LyX's additional features documentation"
68 \pdf_keywords "LyX, Documentation, Additional"
69 \pdf_bookmarks true
70 \pdf_bookmarksnumbered true
71 \pdf_bookmarksopen false
72 \pdf_bookmarksopenlevel 1
73 \pdf_breaklinks false
74 \pdf_pdfborder false
75 \pdf_colorlinks true
76 \pdf_backref false
77 \pdf_pdfusetitle false
78 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
79 \papersize a4paper
80 \use_geometry false
81 \use_package amsmath 1
82 \use_package amssymb 1
83 \use_package cancel 0
84 \use_package esint 0
85 \use_package mathdots 1
86 \use_package mathtools 0
87 \use_package mhchem 1
88 \use_package stackrel 0
89 \use_package stmaryrd 0
90 \use_package undertilde 0
91 \cite_engine basic
92 \cite_engine_type default
93 \biblio_style plain
94 \use_bibtopic false
95 \use_indices false
96 \paperorientation portrait
97 \suppress_date false
98 \justification true
99 \use_refstyle 0
100 \notefontcolor #0000ff
101 \index Index
102 \shortcut idx
103 \color #008000
104 \end_index
105 \secnumdepth 3
106 \tocdepth 3
107 \paragraph_separation indent
108 \paragraph_indentation default
109 \is_math_indent 1
110 \quotes_style english
111 \dynamic_quotes 0
112 \papercolumns 1
113 \papersides 2
114 \paperpagestyle headings
115 \tracking_changes true
116 \output_changes false
117 \html_math_output 0
118 \html_css_as_file 0
119 \html_be_strict true
120 \author -712698321 "Jürgen Spitzmüller"
121 \end_header
122
123 \begin_body
124
125 \begin_layout Title
126 Additional \SpecialChar LyX
127  Features
128 \end_layout
129
130 \begin_layout Subtitle
131 Version 2.2.x
132 \end_layout
133
134 \begin_layout Author
135 by the \SpecialChar LyX
136  Team
137 \begin_inset Foot
138 status collapsed
139
140 \begin_layout Plain Layout
141 \noindent
142 Principal maintainer of this file is
143 \noun on
144  Richard Heck
145 \noun default
146 .
147  If you have comments or error corrections, please send them to the \SpecialChar LyX
148  Documentati
149 on mailing list, 
150 \begin_inset Flex Code
151 status collapsed
152
153 \begin_layout Plain Layout
154 \noindent
155 <lyx-docs@lists.lyx.org>
156 \end_layout
157
158 \end_inset
159
160 .
161 \end_layout
162
163 \end_inset
164
165
166 \end_layout
167
168 \begin_layout Standard
169 \begin_inset CommandInset toc
170 LatexCommand tableofcontents
171
172 \end_inset
173
174
175 \end_layout
176
177 \begin_layout Chapter
178 Introduction
179 \end_layout
180
181 \begin_layout Standard
182 This manual is essentially Part II of the 
183 \emph on
184 User's Guide\SpecialChar endofsentence
185
186 \emph default
187  The reason for separating the two documents is simple: the 
188 \emph on
189 User's Guide
190 \emph default
191  is already quite lengthy, and it contains information on all of the basic
192  features one needs to know in order to prepare most documents.
193  However, the \SpecialChar LyX
194  Team has worked to make \SpecialChar LyX
195  extensible through various configuration
196  files and external packages.
197  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
198  package, you can
199  create a layout file (or module) for it without having to alter \SpecialChar LyX
200  itself.
201  We've already had contributions of several new features this way, and some
202  of them are documented here.
203  There are also some more `advanced' features, such as how to control the
204  presentation of bibliographies and how to work with multi-part documents,
205  that are not covered in the 
206 \emph on
207 User's Guide
208 \emph default
209  and are discussed here.
210 \end_layout
211
212 \begin_layout Standard
213 This manual also documents some special features, like fax support, version
214  control, and SGML support, which require additional software to work properly.
215  There is also a chapter on \SpecialChar LyX
216 's support for HTML.
217  And lastly, there's a chapter of \SpecialChar LaTeX
218  tools and tips, things you can use to
219  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
220 .
221  After all, \SpecialChar LyX
222  
223 \emph on
224 is
225 \emph default
226  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
227  features.
228 \end_layout
229
230 \begin_layout Standard
231 If you haven't read the 
232 \emph on
233 Introduction
234 \emph default
235  yet, you are definitely in the wrong manual.
236  The 
237 \emph on
238 Introduction
239 \emph default
240  is the first place to go, since it describes the notation and format of
241  all of the manuals.
242  You should also be thoroughly familiar with the 
243 \emph on
244 User's Guide
245 \emph default
246  and all of the basic features of \SpecialChar LyX
247  before attempting to read this one.
248 \end_layout
249
250 \begin_layout Standard
251 Since many of the topics in this manual depend heavily on \SpecialChar LyX
252 's interaction
253  with \SpecialChar LaTeX
254 , this first chapter covers the inner workings of \SpecialChar LyX
255  and how to direct
256  \SpecialChar LyX
257  to generate exactly the \SpecialChar LaTeX
258  code you want.
259  It is obviously for more seasoned \SpecialChar LyX
260  users.
261 \end_layout
262
263 \begin_layout Chapter
264 \SpecialChar LyX
265  and \SpecialChar LaTeX
266
267 \end_layout
268
269 \begin_layout Section
270 How \SpecialChar LyX
271  Uses \SpecialChar LaTeX
272
273 \end_layout
274
275 \begin_layout Standard
276 This chapter is for both \SpecialChar TeX
277 -nicians and the \SpecialChar LaTeX
278 -curious.
279  In it, we'll explain how \SpecialChar LyX
280  and \SpecialChar LaTeX
281  work together to produce printable output.
282  This is the only place in any of the manuals where we assume you know something
283  about \SpecialChar LaTeX
284 .
285 \end_layout
286
287 \begin_layout Standard
288 At one time, \SpecialChar LyX
289  was called a 
290 \begin_inset Quotes eld
291 \end_inset
292
293 WYSIWYM frontend to \SpecialChar LaTeX
294 ,
295 \begin_inset Quotes erd
296 \end_inset
297
298  but that's no longer true.
299  There are frontends to \SpecialChar LaTeX
300  out there.
301 \begin_inset Foot
302 status collapsed
303
304 \begin_layout Plain Layout
305 Some familar ones are \SpecialChar TeX
306 maker and kile, on Linux, and \SpecialChar TeX
307 shop, OSX.
308  There are also the \SpecialChar LaTeX
309  modes for vi and emacs, of course.
310 \end_layout
311
312 \end_inset
313
314  These are basically text editors with the ability to run \SpecialChar LaTeX
315  and mark any
316  errors in the file you're editing.
317  Although \SpecialChar LyX
318  
319 \emph on
320 is
321 \emph default
322  an editor, and it 
323 \emph on
324 does
325 \emph default
326  run \SpecialChar LaTeX
327 , and it also indicates errors in the file, it also does much, much
328  more.
329  For one thing, you don't need to know \SpecialChar LaTeX
330  to use \SpecialChar LyX
331  effectively.
332  And \SpecialChar LyX
333  has added its own extensions to \SpecialChar LaTeX
334 .
335  Try the following sometime: select 
336 \begin_inset Flex Noun
337 status collapsed
338
339 \begin_layout Plain Layout
340 Export\SpecialChar menuseparator
341 LaTeX
342 \end_layout
343
344 \end_inset
345
346  from the 
347 \begin_inset Flex Noun
348 status collapsed
349
350 \begin_layout Plain Layout
351 File
352 \end_layout
353
354 \end_inset
355
356  menu (or 
357 \begin_inset Flex Noun
358 status collapsed
359
360 \begin_layout Plain Layout
361 View\SpecialChar menuseparator
362 Source
363 \begin_inset space ~
364 \end_inset
365
366 Pane
367 \end_layout
368
369 \end_inset
370
371 ), then look at the preamble of the resulting 
372 \begin_inset Flex Code
373 status collapsed
374
375 \begin_layout Plain Layout
376 .tex
377 \end_layout
378
379 \end_inset
380
381  file.
382  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
383 .
384  These macros are defined automatically, according to the features you use
385  in the document.
386 \end_layout
387
388 \begin_layout Standard
389 There are several commands that automatically invoke \SpecialChar LaTeX
390 .
391  They are:
392 \end_layout
393
394 \begin_layout Itemize
395 \begin_inset Flex Noun
396 status collapsed
397
398 \begin_layout Plain Layout
399 Document\SpecialChar menuseparator
400 View
401 \end_layout
402
403 \end_inset
404
405
406 \end_layout
407
408 \begin_layout Itemize
409 \begin_inset Flex Noun
410 status collapsed
411
412 \begin_layout Plain Layout
413 Document\SpecialChar menuseparator
414 Update
415 \end_layout
416
417 \end_inset
418
419
420 \end_layout
421
422 \begin_layout Standard
423 They will only invoke \SpecialChar LaTeX
424  if the file has changed since the last time \SpecialChar LaTeX
425  was
426  run.
427  
428 \end_layout
429
430 \begin_layout Standard
431 When \SpecialChar LyX
432  runs \SpecialChar LaTeX
433  on the file you're editing, it performs these steps:
434 \end_layout
435
436 \begin_layout Enumerate
437 Convert the document to \SpecialChar LaTeX
438  and save to a file with the extension 
439 \begin_inset Flex Code
440 status collapsed
441
442 \begin_layout Plain Layout
443 .tex
444 \end_layout
445
446 \end_inset
447
448  in place of 
449 \begin_inset Flex Code
450 status collapsed
451
452 \begin_layout Plain Layout
453 .lyx
454 \end_layout
455
456 \end_inset
457
458 .
459 \end_layout
460
461 \begin_layout Enumerate
462 Run \SpecialChar LaTeX
463  on the 
464 \begin_inset Flex Code
465 status collapsed
466
467 \begin_layout Plain Layout
468 .tex
469 \end_layout
470
471 \end_inset
472
473  file (maybe several times), and run any other commands (such as 
474 \begin_inset Flex Code
475 status collapsed
476
477 \begin_layout Plain Layout
478 bibtex
479 \end_layout
480
481 \end_inset
482
483  or 
484 \begin_inset Flex Code
485 status collapsed
486
487 \begin_layout Plain Layout
488 makeindex
489 \end_layout
490
491 \end_inset
492
493 ) needed to compile the \SpecialChar LaTeX
494  file.
495 \end_layout
496
497 \begin_layout Enumerate
498 If there are any errors, show the error log.
499 \end_layout
500
501 \begin_layout Standard
502 If you have run \SpecialChar LaTeX
503  using 
504 \begin_inset Flex Noun
505 status collapsed
506
507 \begin_layout Plain Layout
508 View\SpecialChar menuseparator
509 DVI
510 \end_layout
511
512 \end_inset
513
514 , \SpecialChar LyX
515  then runs a DVI viewer to display the DVI-file.
516  If you have used 
517 \begin_inset Flex Noun
518 status collapsed
519
520 \begin_layout Plain Layout
521 View\SpecialChar menuseparator
522 PostScript
523 \end_layout
524
525 \end_inset
526
527 , \SpecialChar LyX
528  performs further steps:
529 \end_layout
530
531 \begin_layout Itemize
532 Run 
533 \begin_inset Flex Code
534 status collapsed
535
536 \begin_layout Plain Layout
537 dvips
538 \end_layout
539
540 \end_inset
541
542  to convert the DVI file to PostScript.
543 \end_layout
544
545 \begin_layout Itemize
546 Run a PostScript viewer, such as 
547 \begin_inset Flex Code
548 status collapsed
549
550 \begin_layout Plain Layout
551 ghostview
552 \end_layout
553
554 \end_inset
555
556 , to display the PostScript file.
557 \end_layout
558
559 \begin_layout Standard
560 \SpecialChar LyX
561  does similar things when viewing, or exporting, other formats.
562 \end_layout
563
564 \begin_layout Section
565 Translating \SpecialChar LaTeX
566  files into \SpecialChar LyX
567
568 \end_layout
569
570 \begin_layout Standard
571 You can import a \SpecialChar LaTeX
572  file into \SpecialChar LyX
573  by using the 
574 \begin_inset Flex Noun
575 status collapsed
576
577 \begin_layout Plain Layout
578 File\SpecialChar menuseparator
579 Import\SpecialChar menuseparator
580 LaTeX
581 \end_layout
582
583 \end_inset
584
585  command in \SpecialChar LyX
586 .
587  This will call a program named 
588 \begin_inset Flex Code
589 status collapsed
590
591 \begin_layout Plain Layout
592 tex2lyx
593 \end_layout
594
595 \end_inset
596
597  which will create a file 
598 \begin_inset Flex Code
599 status collapsed
600
601 \begin_layout Plain Layout
602 foo.lyx
603 \end_layout
604
605 \end_inset
606
607  from the file 
608 \begin_inset Flex Code
609 status collapsed
610
611 \begin_layout Plain Layout
612 foo.tex
613 \end_layout
614
615 \end_inset
616
617 .
618  \SpecialChar LyX
619  will then open that file.
620 \begin_inset Foot
621 status collapsed
622
623 \begin_layout Plain Layout
624 \begin_inset Flex Code
625 status collapsed
626
627 \begin_layout Plain Layout
628 tex2lyx
629 \end_layout
630
631 \end_inset
632
633  can also be run from the command line, of course.
634 \end_layout
635
636 \end_inset
637
638
639 \end_layout
640
641 \begin_layout Standard
642 \begin_inset Flex Code
643 status collapsed
644
645 \begin_layout Plain Layout
646 tex2lyx
647 \end_layout
648
649 \end_inset
650
651  will translate most legal \SpecialChar LaTeX
652 , but not everything.
653  It will put things it doesn't understand into \SpecialChar TeX
654  code, so after translating
655  a file with 
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 tex2lyx
661 \end_layout
662
663 \end_inset
664
665 , you can look for \SpecialChar TeX
666  code and hand-edit it until it looks right.
667 \end_layout
668
669 \begin_layout Standard
670 If you don't know what \SpecialChar TeX
671  code is, read the next section.
672 \end_layout
673
674 \begin_layout Section
675 \begin_inset CommandInset label
676 LatexCommand label
677 name "sec:Inserting-TeX-Code"
678
679 \end_inset
680
681 Inserting \SpecialChar TeX
682  Code into \SpecialChar LyX
683  Documents 
684 \end_layout
685
686 \begin_layout Standard
687 Anything you can do in \SpecialChar LaTeX
688  you can do in \SpecialChar LyX
689 , for a very simple reason: You can
690  always insert \SpecialChar TeX
691  code into any \SpecialChar LyX
692  document.
693  \SpecialChar LyX
694  cannot, and will never be able to, display every possible \SpecialChar LaTeX
695  construct.
696  If ever you need to insert \SpecialChar LaTeX
697  commands into your \SpecialChar LyX
698  document, you can use the
699  
700 \begin_inset Flex Code
701 status collapsed
702
703 \begin_layout Plain Layout
704 \SpecialChar TeX
705  Code
706 \end_layout
707
708 \end_inset
709
710  box, which you can insert into your document with 
711 \begin_inset Flex Noun
712 status collapsed
713
714 \begin_layout Plain Layout
715 Insert\SpecialChar menuseparator
716
717 \family sans
718 TeX
719 \family default
720  Code
721 \end_layout
722
723 \end_inset
724
725  or the keyboard shortcut 
726 \begin_inset Info
727 type  "shortcut"
728 arg   "ert-insert"
729 \end_inset
730
731 .
732 \end_layout
733
734 \begin_layout Standard
735 Here's an example of inserting \SpecialChar LaTeX
736  commands in a \SpecialChar LyX
737  document.
738  The code looks like this:
739 \end_layout
740
741 \begin_layout LyX-Code
742
743 \backslash
744 begin{tabular}{ll}
745 \begin_inset Newline newline
746 \end_inset
747
748
749 \backslash
750 begin{minipage}{5cm}
751 \begin_inset Newline newline
752 \end_inset
753
754 This is an example of a minipage environment.
755  You 
756 \begin_inset Newline newline
757 \end_inset
758
759 can put nearly everything in it, even (non-floating) 
760 \begin_inset Newline newline
761 \end_inset
762
763 figures and tables.
764  
765 \begin_inset Newline newline
766 \end_inset
767
768
769 \backslash
770 end{minipage}
771 \begin_inset Newline newline
772 \end_inset
773
774 &
775 \begin_inset Newline newline
776 \end_inset
777
778
779 \backslash
780 begin{minipage}{5cm}
781 \begin_inset Newline newline
782 \end_inset
783
784
785 \backslash
786 begin{verbatim}
787 \begin_inset Newline newline
788 \end_inset
789
790
791 \backslash
792 begin{minipage}{5cm}
793 \begin_inset Newline newline
794 \end_inset
795
796 This ...
797  
798 \begin_inset Newline newline
799 \end_inset
800
801
802 \backslash
803 end{minipage}
804 \begin_inset Newline newline
805 \end_inset
806
807
808 \backslash
809 end{verbatim}
810 \begin_inset Newline newline
811 \end_inset
812
813
814 \backslash
815 end{minipage}
816 \begin_inset Newline newline
817 \end_inset
818
819
820 \backslash
821 end{tabular}
822 \end_layout
823
824 \begin_layout LyX-Code
825
826 \end_layout
827
828 \begin_layout Standard
829 The 
830 \begin_inset Flex Code
831 status collapsed
832
833 \begin_layout Plain Layout
834 \SpecialChar TeX
835  Code
836 \end_layout
837
838 \end_inset
839
840  box containing this text is directly after this paragraph.
841  Those of you reading the manual in \SpecialChar LyX
842  will only see the \SpecialChar TeX
843  code inset.
844  Those reading a printed version of the manuals will see the actual results:
845 \begin_inset VSpace bigskip
846 \end_inset
847
848
849 \end_layout
850
851 \begin_layout Standard
852 \begin_inset ERT
853 status open
854
855 \begin_layout Plain Layout
856
857
858 \backslash
859 begin{tabular}{ll}
860 \end_layout
861
862 \begin_layout Plain Layout
863
864
865 \backslash
866 begin{minipage}{5cm}
867 \end_layout
868
869 \begin_layout Plain Layout
870
871 This is an example of a minipage environment.
872  You can put nearly everything in it, even (non-floating) figures and tables.
873  
874 \end_layout
875
876 \begin_layout Plain Layout
877
878
879 \backslash
880 end{minipage}
881 \end_layout
882
883 \begin_layout Plain Layout
884
885 &
886 \end_layout
887
888 \begin_layout Plain Layout
889
890
891 \backslash
892 begin{minipage}{5cm}
893 \end_layout
894
895 \begin_layout Plain Layout
896
897
898 \backslash
899 begin{verbatim}
900 \end_layout
901
902 \begin_layout Plain Layout
903
904
905 \backslash
906 begin{minipage}{5cm}
907 \end_layout
908
909 \begin_layout Plain Layout
910
911 This ...
912  
913 \end_layout
914
915 \begin_layout Plain Layout
916
917
918 \backslash
919 end{minipage}
920 \end_layout
921
922 \begin_layout Plain Layout
923
924
925 \backslash
926 end{verbatim}
927 \end_layout
928
929 \begin_layout Plain Layout
930
931
932 \backslash
933 end{minipage}
934 \end_layout
935
936 \begin_layout Plain Layout
937
938
939 \backslash
940 end{tabular}
941 \end_layout
942
943 \end_inset
944
945
946 \begin_inset VSpace bigskip
947 \end_inset
948
949
950 \end_layout
951
952 \begin_layout Standard
953 In addition to using \SpecialChar TeX
954  code, you can also create a separate file containing
955  some complex \SpecialChar LaTeX
956  structure and then use 
957 \begin_inset Flex Noun
958 status collapsed
959
960 \begin_layout Plain Layout
961 Insert\SpecialChar menuseparator
962 Child
963 \begin_inset space ~
964 \end_inset
965
966 Document
967 \end_layout
968
969 \end_inset
970
971  to include your file (you should select the type 
972 \begin_inset Flex Code
973 status collapsed
974
975 \begin_layout Plain Layout
976 Input
977 \end_layout
978
979 \end_inset
980
981 ).
982  We recommend that you only do this if you have a 
983 \begin_inset Flex Code
984 status collapsed
985
986 \begin_layout Plain Layout
987 .tex
988 \end_layout
989
990 \end_inset
991
992  file which you 
993 \emph on
994 know
995 \emph default
996  works already.
997  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
998  errors.
999 \end_layout
1000
1001 \begin_layout Standard
1002 There are a few last points to emphasize:
1003 \end_layout
1004
1005 \begin_layout Itemize
1006 \SpecialChar LyX
1007  
1008 \emph on
1009 does not
1010 \emph default
1011  check if your \SpecialChar LaTeX
1012  code is correct.
1013 \end_layout
1014
1015 \begin_layout Itemize
1016 Beware of reinventing the wheel.
1017 \end_layout
1018
1019 \begin_layout Standard
1020 On that last point, \SpecialChar LyX
1021  does have quite a few features tucked into it, and
1022  more are coming.
1023  Be sure to check the manuals to make sure that \SpecialChar LyX
1024  doesn't have such-and-such
1025  feature before you decide you have to do it by hand.
1026  Moreover, there are numerous \SpecialChar LaTeX
1027  packages out there to do all sorts of things,
1028  from labels to envelopes to fancy multipage tables.
1029  Check out 
1030 \begin_inset CommandInset href
1031 LatexCommand href
1032 name "CTAN"
1033 target "http://www.ctan.org/"
1034 literal "false"
1035
1036 \end_inset
1037
1038  for details.
1039 \end_layout
1040
1041 \begin_layout Standard
1042 If you do need to do some wild and fancy things within your document, be
1043  sure to check out a good \SpecialChar LaTeX
1044  book for assistance.
1045  There are a number of them listed in the bibliography of the 
1046 \emph on
1047 User's Guide
1048 \emph default
1049 .
1050 \end_layout
1051
1052 \begin_layout Section
1053 \SpecialChar LyX
1054  and the \SpecialChar LaTeX
1055  Preamble
1056 \end_layout
1057
1058 \begin_layout Subsection
1059 About the \SpecialChar LaTeX
1060  Preamble
1061 \end_layout
1062
1063 \begin_layout Standard
1064 If you already know \SpecialChar LaTeX
1065 , there is no need to explain here what the preamble
1066  is good for.
1067  If you don't, the following will give you some ideas—we recommend again
1068  that you consult a \SpecialChar LaTeX
1069  book for further information.
1070  In any case, you should read the points below, because they explain what
1071  you can do and what you don't need to do in the \SpecialChar LaTeX
1072  preamble of a \SpecialChar LyX
1073  document.
1074 \end_layout
1075
1076 \begin_layout Standard
1077 The \SpecialChar LaTeX
1078  preamble comes at the very beginning of a document, 
1079 \emph on
1080 before
1081 \emph default
1082  the text.
1083  It serves to:
1084 \end_layout
1085
1086 \begin_layout Itemize
1087 Declare the document class.
1088  
1089 \begin_inset Newline newline
1090 \end_inset
1091
1092 \SpecialChar LyX
1093  already does this for you.
1094  If you're a seasoned \SpecialChar LaTeX
1095 -nician, and you have a custom document class you
1096  want to use, check out the 
1097 \emph on
1098 Customization Manual
1099 \emph default
1100  for information on how to make \SpecialChar LyX
1101  interface to it.
1102 \end_layout
1103
1104 \begin_layout Itemize
1105 Declare the usage of packages.
1106  
1107 \begin_inset Newline newline
1108 \end_inset
1109
1110 \SpecialChar LaTeX
1111  packages provide special commands, which are only available within a document
1112  when the package has been declared in the preamble.
1113  In addition to providing special commands, the inclusion of a package can
1114  change the document.
1115  For example, the package 
1116 \begin_inset Flex Code
1117 status collapsed
1118
1119 \begin_layout Plain Layout
1120 indentfirst
1121 \end_layout
1122
1123 \end_inset
1124
1125  forces all paragraphs to be indented.
1126  There are other packages for labels, envelopes, margins, etc.
1127  
1128 \end_layout
1129
1130 \begin_layout Itemize
1131 Set counters, variables, lengths and widths.
1132  
1133 \begin_inset Newline newline
1134 \end_inset
1135
1136 There are several \SpecialChar LaTeX
1137  counters and variables that 
1138 \emph on
1139 must
1140 \emph default
1141  be set globally from within the preamble in order to have the desired effect.
1142  (There are variables that you can set and reset inside the document, too.)
1143  Margins are a good example of something that must be set in the preamble.
1144  Another example is the label format for lists.
1145  You can actually set these just about anywhere, but it's best to do it
1146  just once, inside the preamble.
1147 \end_layout
1148
1149 \begin_layout Itemize
1150 Declare user defined commands (with 
1151 \begin_inset Flex Code
1152 status collapsed
1153
1154 \begin_layout Plain Layout
1155
1156 \backslash
1157 newcommand
1158 \end_layout
1159
1160 \end_inset
1161
1162  or 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167
1168 \backslash
1169 renewcommand
1170 \end_layout
1171
1172 \end_inset
1173
1174 ).
1175 \begin_inset Newline newline
1176 \end_inset
1177
1178 These are abbreviations for \SpecialChar LaTeX
1179  commands which appear very often inside a document.
1180  Although the preamble is a good place to declare such commands, they 
1181 \emph on
1182 can
1183 \emph default
1184  be declared anywhere (before they are used for the first time, of course).
1185  This can be useful if there is a lot of raw \SpecialChar LaTeX
1186  code in your document, which
1187  normally should not be the case.
1188 \end_layout
1189
1190 \begin_layout Standard
1191 \SpecialChar LyX
1192  adds its own set of definitions to the preamble of the 
1193 \begin_inset Flex Code
1194 status collapsed
1195
1196 \begin_layout Plain Layout
1197 .tex
1198 \end_layout
1199
1200 \end_inset
1201
1202  file it produces.
1203  This makes \SpecialChar LaTeX
1204  files generated by \SpecialChar LyX
1205  portable.
1206 \end_layout
1207
1208 \begin_layout Subsection
1209 Changing the Preamble
1210 \end_layout
1211
1212 \begin_layout Standard
1213 The commands which \SpecialChar LyX
1214  adds to the preamble of a \SpecialChar LaTeX
1215  file are fixed; you can't
1216  change them without patching \SpecialChar LyX
1217  itself.
1218  You can, however, add your own stuff to the preamble by selecting 
1219 \begin_inset Flex Noun
1220 status collapsed
1221
1222 \begin_layout Plain Layout
1223 \SpecialChar LaTeX
1224
1225 \begin_inset space ~
1226 \end_inset
1227
1228 Preamble
1229 \end_layout
1230
1231 \end_inset
1232
1233  in the 
1234 \begin_inset Flex Noun
1235 status collapsed
1236
1237 \begin_layout Plain Layout
1238 Document\SpecialChar menuseparator
1239 Settings
1240 \end_layout
1241
1242 \end_inset
1243
1244  dialog.
1245  \SpecialChar LyX
1246  adds anything in the 
1247 \begin_inset Flex Noun
1248 status collapsed
1249
1250 \begin_layout Plain Layout
1251 Preamble
1252 \end_layout
1253
1254 \end_inset
1255
1256  dialog to its own built-in preamble.
1257  Before adding your own declarations in the preamble, you should make sure
1258  that \SpecialChar LyX
1259  doesn't already support what you want to do.
1260  (Remember what we said about reinventing the wheel?) Also, 
1261 \emph on
1262 make sure your preamble code is correct
1263 \emph default
1264 .
1265  \SpecialChar LyX
1266  doesn't check it for you.
1267  If there is an error, you're likely to get an error like 
1268 \begin_inset Quotes eld
1269 \end_inset
1270
1271
1272 \begin_inset Flex Code
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276 Missing 
1277 \backslash
1278 begin{document}
1279 \end_layout
1280
1281 \end_inset
1282
1283
1284 \begin_inset Quotes erd
1285 \end_inset
1286
1287 .
1288  If you see this error, check your preamble.
1289 \end_layout
1290
1291 \begin_layout Subsection
1292 Examples
1293 \end_layout
1294
1295 \begin_layout Standard
1296 Here are some examples of what you can add to a preamble, and what they
1297  do.
1298 \end_layout
1299
1300 \begin_layout Subsubsection
1301 Example #1: Offsets
1302 \end_layout
1303
1304 \begin_layout Standard
1305 There are two variables under \SpecialChar LaTeX
1306  that control page position: 
1307 \begin_inset Flex Code
1308 status collapsed
1309
1310 \begin_layout Plain Layout
1311
1312 \backslash
1313 hoffset
1314 \end_layout
1315
1316 \end_inset
1317
1318  and 
1319 \begin_inset Flex Code
1320 status collapsed
1321
1322 \begin_layout Plain Layout
1323
1324 \backslash
1325 voffset
1326 \end_layout
1327
1328 \end_inset
1329
1330 .
1331  Their names should be self-explanatory.
1332  These variables are useful if you think for a moment about computer labels.
1333  Sometimes, the size of a print medium and the area of the medium that you
1334  can actually print on aren't the same.
1335  This is where 
1336 \begin_inset Flex Code
1337 status collapsed
1338
1339 \begin_layout Plain Layout
1340
1341 \backslash
1342 hoffset
1343 \end_layout
1344
1345 \end_inset
1346
1347  and 
1348 \begin_inset Flex Code
1349 status collapsed
1350
1351 \begin_layout Plain Layout
1352
1353 \backslash
1354 voffset
1355 \end_layout
1356
1357 \end_inset
1358
1359  come in.
1360 \end_layout
1361
1362 \begin_layout Standard
1363 The default values for 
1364 \begin_inset Flex Code
1365 status collapsed
1366
1367 \begin_layout Plain Layout
1368
1369 \backslash
1370 hoffset
1371 \end_layout
1372
1373 \end_inset
1374
1375  and 
1376 \begin_inset Flex Code
1377 status collapsed
1378
1379 \begin_layout Plain Layout
1380
1381 \backslash
1382 voffset
1383 \end_layout
1384
1385 \end_inset
1386
1387  are both 0
1388 \begin_inset space \thinspace{}
1389 \end_inset
1390
1391 points, i.
1392 \begin_inset space \thinspace{}
1393 \end_inset
1394
1395 e.
1396 \begin_inset space \space{}
1397 \end_inset
1398
1399 the page isn't shifted.
1400  Unfortunately, some DVI drivers always seem to shift the page.
1401  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1402  If you're using \SpecialChar LyX
1403  on a system that you don't personally maintain, and your
1404  sysadmin is a doofus, 
1405 \begin_inset Flex Code
1406 status collapsed
1407
1408 \begin_layout Plain Layout
1409
1410 \backslash
1411 hoffset
1412 \end_layout
1413
1414 \end_inset
1415
1416  and 
1417 \begin_inset Flex Code
1418 status collapsed
1419
1420 \begin_layout Plain Layout
1421
1422 \backslash
1423 voffset
1424 \end_layout
1425
1426 \end_inset
1427
1428  can save the day.
1429  Suppose your left and top margins are always 0.5
1430 \begin_inset space \thinspace{}
1431 \end_inset
1432
1433 inches too big.
1434  You can add this to the preamble:
1435 \end_layout
1436
1437 \begin_layout LyX-Code
1438
1439 \backslash
1440 setlength{
1441 \backslash
1442 hoffset}{-0.5 in}
1443 \end_layout
1444
1445 \begin_layout LyX-Code
1446
1447 \backslash
1448 setlength{
1449 \backslash
1450 voffset}{-0.5 in}
1451 \end_layout
1452
1453 \begin_layout Standard
1454 and your margins should now be correct.
1455 \end_layout
1456
1457 \begin_layout Subsubsection
1458 Example #2: Labels
1459 \end_layout
1460
1461 \begin_layout Standard
1462 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1463  There's a rather nice package, available at your nearest CTAN archive,
1464  for printing sheets of labels: 
1465 \begin_inset Flex Code
1466 status collapsed
1467
1468 \begin_layout Plain Layout
1469 labels.sty
1470 \end_layout
1471
1472 \end_inset
1473
1474 .
1475  Now, your system may not have this package installed by default.
1476  We leave that up to you to check.
1477  You'll also want to read the documentation for it; we're not going to do
1478  that for you.
1479  Since this is an example, however, we'll give you an example of how you
1480  use this package.
1481 \end_layout
1482
1483 \begin_layout Standard
1484 First, make sure you're using the 
1485 \begin_inset Flex Code
1486 status collapsed
1487
1488 \begin_layout Plain Layout
1489 article
1490 \end_layout
1491
1492 \end_inset
1493
1494  document class.
1495  Next, you need to put the following in your preamble:
1496 \end_layout
1497
1498 \begin_layout LyX-Code
1499
1500 \backslash
1501 usepackage{labels}
1502 \end_layout
1503
1504 \begin_layout LyX-Code
1505
1506 \backslash
1507 LabelCols=3
1508 \end_layout
1509
1510 \begin_layout LyX-Code
1511
1512 \backslash
1513 LabelRows=7
1514 \end_layout
1515
1516 \begin_layout LyX-Code
1517
1518 \backslash
1519 LeftBorder=8mm
1520 \end_layout
1521
1522 \begin_layout LyX-Code
1523
1524 \backslash
1525 RightBorder=8mm
1526 \end_layout
1527
1528 \begin_layout LyX-Code
1529
1530 \backslash
1531 TopBorder=9mm
1532 \end_layout
1533
1534 \begin_layout LyX-Code
1535
1536 \backslash
1537 BottomBorder=2mm
1538 \end_layout
1539
1540 \begin_layout Standard
1541 This sets things up for Avery label sheets, stock #5360.
1542  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1543  code, placing
1544  the commands 
1545 \begin_inset Flex Code
1546 status collapsed
1547
1548 \begin_layout Plain Layout
1549
1550 \backslash
1551 begin{labels}
1552 \end_layout
1553
1554 \end_inset
1555
1556  and 
1557 \begin_inset Flex Code
1558 status collapsed
1559
1560 \begin_layout Plain Layout
1561
1562 \backslash
1563 end{labels}
1564 \end_layout
1565
1566 \end_inset
1567
1568  around each label text.
1569  This and other special features of 
1570 \begin_inset Flex Code
1571 status collapsed
1572
1573 \begin_layout Plain Layout
1574 labels.sty
1575 \end_layout
1576
1577 \end_inset
1578
1579  are explained in its documentation.
1580 \end_layout
1581
1582 \begin_layout Standard
1583 Someday, someone may write a \SpecialChar LyX
1584  layout file to support this package directly.
1585  Maybe that someone is you.
1586 \end_layout
1587
1588 \begin_layout Subsubsection
1589 Example #3: Paragraph Indentation
1590 \end_layout
1591
1592 \begin_layout Standard
1593 Americans are trained to indent the first line of 
1594 \emph on
1595 every
1596 \emph default
1597  paragraph.
1598  As with all of their other weird quirks, most Americans will whine and
1599  moan until they can have their way and indent the first line of all paragraphs.
1600  (Yes, we're joking.
1601  (We are?) 
1602 \emph on
1603 Yeah
1604 \emph default
1605 , we are.)
1606 \end_layout
1607
1608 \begin_layout Standard
1609 Of course, this behavior isn't standard typography.
1610  In books, you typically only indent the first line of a paragraph 
1611 \emph on
1612 if
1613 \emph default
1614  it follows another one.
1615  The idea behind indenting the first line of a paragraph is to distinguish
1616  neighboring paragraphs from one another.
1617  If there is no previous paragraph—for example, if it follows a figure or
1618  is the first paragraph in a section—then there is no need for indentation.
1619  
1620 \end_layout
1621
1622 \begin_layout Standard
1623 If you're a typical American (we're still joking!), though, you don't care
1624  about such esoteric things; you want your indentation! Add this to the
1625  preamble:
1626 \end_layout
1627
1628 \begin_layout LyX-Code
1629
1630 \backslash
1631 usepackage{indentfirst}
1632 \end_layout
1633
1634 \begin_layout Standard
1635 If your \SpecialChar TeX
1636  distribution isn't braindead, you'll have this package, and all
1637  of your paragraphs will get the indentation the Founding Fathers intended
1638  they should have.
1639 \end_layout
1640
1641 \begin_layout Subsubsection
1642 Example #4: This Document
1643 \end_layout
1644
1645 \begin_layout Standard
1646 You can also check out the preamble of this document to get an idea of some
1647  of the advanced things you can do.
1648 \end_layout
1649
1650 \begin_layout Section
1651 \SpecialChar LyX
1652  and \SpecialChar LaTeX
1653  Errors
1654 \end_layout
1655
1656 \begin_layout Standard
1657 When \SpecialChar LyX
1658  calls \SpecialChar LaTeX
1659 , it tells \SpecialChar LaTeX
1660  to blithely ignore any errors and keep going.
1661  It then uses the logfile from the \SpecialChar LaTeX
1662  run to do a post-mortem.
1663  After analyzing the logfile, \SpecialChar LyX
1664  displays a dialog listing the errors.
1665  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1666  file
1667  where the error occurred.
1668 \begin_inset Foot
1669 status collapsed
1670
1671 \begin_layout Plain Layout
1672 Well, usually.
1673  Analyzing the logfile is a tough job, and \SpecialChar LyX
1674  doesn't always go to the right
1675  line.
1676  There are also cases where \SpecialChar LaTeX
1677  reports the error on one line, but the actual
1678  error is earlier.
1679  This is not unlike forgetting a closing brace in a program: You'll get
1680  an error, but only later.
1681 \end_layout
1682
1683 \end_inset
1684
1685
1686 \end_layout
1687
1688 \begin_layout Standard
1689 Some folks also like to look at the log file directly: It is available from
1690  
1691 \begin_inset Flex Noun
1692 status collapsed
1693
1694 \begin_layout Plain Layout
1695 Document\SpecialChar menuseparator
1696 LaTeX
1697 \begin_inset space ~
1698 \end_inset
1699
1700 Log
1701 \end_layout
1702
1703 \end_inset
1704
1705 .
1706  There are some fairly common error messages and warnings.
1707  We'll cover those here.
1708  You should look at a good \SpecialChar LaTeX
1709  book for a complete listing.
1710 \end_layout
1711
1712 \begin_layout Itemize
1713 \begin_inset Flex Code
1714 status collapsed
1715
1716 \begin_layout Plain Layout
1717 LaTeX Warning
1718 \end_layout
1719
1720 \end_inset
1721
1722
1723 \begin_inset Newline newline
1724 \end_inset
1725
1726 Anything beginning with these words is a warning message for the purpose
1727  of 
1728 \begin_inset Quotes eld
1729 \end_inset
1730
1731 debugging
1732 \begin_inset Quotes erd
1733 \end_inset
1734
1735  the \SpecialChar LaTeX
1736  code itself.
1737  You'll get messages like this if you added or changed cross-references
1738  or bibliography entries, in which case, \SpecialChar LaTeX
1739  is trying to tell you that you
1740  need to make another run.
1741  You can by-and-large ignore these.
1742 \end_layout
1743
1744 \begin_layout Itemize
1745 \begin_inset Flex Code
1746 status collapsed
1747
1748 \begin_layout Plain Layout
1749 LaTeX Font Warning
1750 \end_layout
1751
1752 \end_inset
1753
1754
1755 \begin_inset Newline newline
1756 \end_inset
1757
1758 Another warning message, this time about fonts which \SpecialChar LaTeX
1759  couldn't find.
1760  The rest of the message will often say something about a replacement font
1761  that \SpecialChar LaTeX
1762  used.
1763  You can safely ignore these, too.
1764 \end_layout
1765
1766 \begin_layout Itemize
1767 \begin_inset Flex Code
1768 status collapsed
1769
1770 \begin_layout Plain Layout
1771 Overfull 
1772 \backslash
1773 hbox
1774 \end_layout
1775
1776 \end_inset
1777
1778
1779 \begin_inset Newline newline
1780 \end_inset
1781
1782 \SpecialChar LaTeX
1783  absolutely 
1784 \emph on
1785 loves
1786 \emph default
1787  to spew these out.
1788  They are warnings about lines that were too long and run past the right
1789  margin.
1790  Almost always, this is unnoticeable in the final output.
1791  (It can be just a point or two.) Or, only one or two characters extend past
1792  the margin.
1793  \SpecialChar LaTeX
1794  seems to generate at least one of these messages for just about any document
1795  you write.
1796 \begin_inset Newline newline
1797 \end_inset
1798
1799 You can ignore these messages.
1800  Your eyes will tell you if there's a problem with something that's too
1801  wide; just look at the output.
1802 \begin_inset Foot
1803 status collapsed
1804
1805 \begin_layout Plain Layout
1806 You can also enable the `draft' option in 
1807 \begin_inset Flex Noun
1808 status collapsed
1809
1810 \begin_layout Plain Layout
1811 Document\SpecialChar menuseparator
1812 Settings
1813 \end_layout
1814
1815 \end_inset
1816
1817 , and then \SpecialChar LaTeX
1818  will draw a black box in the margin of lines that are overfull.
1819 \end_layout
1820
1821 \end_inset
1822
1823
1824 \end_layout
1825
1826 \begin_layout Itemize
1827 \begin_inset Flex Code
1828 status collapsed
1829
1830 \begin_layout Plain Layout
1831 Underfull 
1832 \backslash
1833 hbox
1834 \end_layout
1835
1836 \end_inset
1837
1838
1839 \begin_inset Newline newline
1840 \end_inset
1841
1842 Not quite as common as its cousin.
1843  \SpecialChar LaTeX
1844  seems to like to print lines that are a bit too wide as opposed to ones
1845  that are a bit too narrow.
1846  We have no idea why.
1847 \end_layout
1848
1849 \begin_layout Itemize
1850 \begin_inset Flex Code
1851 status collapsed
1852
1853 \begin_layout Plain Layout
1854 Overfull 
1855 \backslash
1856 vbox
1857 \end_layout
1858
1859 \end_inset
1860
1861  and 
1862 \begin_inset Flex Code
1863 status collapsed
1864
1865 \begin_layout Plain Layout
1866 Underfull 
1867 \backslash
1868 vbox
1869 \end_layout
1870
1871 \end_inset
1872
1873
1874 \begin_inset Newline newline
1875 \end_inset
1876
1877 Warnings about troubles breaking the page.
1878  Once again, just look at the output.
1879  Your eyes will tell you where something has gone wrong.
1880 \end_layout
1881
1882 \begin_layout Itemize
1883 \begin_inset Flex Code
1884 status collapsed
1885
1886 \begin_layout Plain Layout
1887 LaTeX Error: File 
1888 \begin_inset Quotes els
1889 \end_inset
1890
1891 Xxxx
1892 \begin_inset Quotes ers
1893 \end_inset
1894
1895  not found
1896 \end_layout
1897
1898 \end_inset
1899
1900
1901 \begin_inset Newline newline
1902 \end_inset
1903
1904 The file 
1905 \begin_inset Quotes eld
1906 \end_inset
1907
1908 Xxxx
1909 \begin_inset Quotes erd
1910 \end_inset
1911
1912  isn't installed on this system.
1913  This usually appears because some package your document needs isn't installed.
1914  If you didn't touch the preamble or didn't use the 
1915 \begin_inset Flex Code
1916 status collapsed
1917
1918 \begin_layout Plain Layout
1919
1920 \backslash
1921 usepackage{}
1922 \end_layout
1923
1924 \end_inset
1925
1926  command, then one of the packages \SpecialChar LyX
1927  tried to load is missing.
1928  Use 
1929 \begin_inset Flex Noun
1930 status collapsed
1931
1932 \begin_layout Plain Layout
1933 Help\SpecialChar menuseparator
1934 \SpecialChar LaTeX
1935  Configuration
1936 \end_layout
1937
1938 \end_inset
1939
1940  to get a list of packages that \SpecialChar LyX
1941  knows about.
1942  This file is updated whenever you reconfigure \SpecialChar LyX
1943  (using 
1944 \begin_inset Flex Noun
1945 status collapsed
1946
1947 \begin_layout Plain Layout
1948 Tools\SpecialChar menuseparator
1949 Reconfigure
1950 \end_layout
1951
1952 \end_inset
1953
1954 ) and tells you which packages have been detected and what they do.
1955 \begin_inset Newline newline
1956 \end_inset
1957
1958 If you did use the 
1959 \begin_inset Flex Code
1960 status collapsed
1961
1962 \begin_layout Plain Layout
1963
1964 \backslash
1965 usepackage{}
1966 \end_layout
1967
1968 \end_inset
1969
1970  command and the package in question isn't installed, then you'll need to
1971  install it yourself.
1972 \end_layout
1973
1974 \begin_layout Itemize
1975 \begin_inset Flex Code
1976 status collapsed
1977
1978 \begin_layout Plain Layout
1979 LaTeX Error: Unknown option
1980 \end_layout
1981
1982 \end_inset
1983
1984
1985 \begin_inset Newline newline
1986 \end_inset
1987
1988 Error messages beginning with this are trying to tell you that you specified
1989  a bad or undefined option to a package.
1990  Check the package's documentation.
1991 \end_layout
1992
1993 \begin_layout Itemize
1994 \begin_inset Flex Code
1995 status collapsed
1996
1997 \begin_layout Plain Layout
1998 Undefined control sequence
1999 \end_layout
2000
2001 \end_inset
2002
2003
2004 \begin_inset Newline newline
2005 \end_inset
2006
2007 If you've inserted \SpecialChar LaTeX
2008  code into your document, but made a typo, you'll get
2009  one of these.
2010  You may have forgotten to load a package.
2011  In any case, this error message usually means that you used an undefined
2012  command.
2013  
2014 \end_layout
2015
2016 \begin_layout Standard
2017 There are other error and warning messages.
2018  Some are self-explanatory.
2019  These are usually \SpecialChar LaTeX
2020  messages.
2021  Others are downright cryptic.
2022  These are usually \SpecialChar TeX
2023  error messages, and we really have 
2024 \emph on
2025 no clue
2026 \emph default
2027  what they mean or how to decipher them.
2028  No-one does.
2029 \end_layout
2030
2031 \begin_layout Standard
2032 There's a general sequence you should follow if you get error messages:
2033 \end_layout
2034
2035 \begin_layout Enumerate
2036 Look at the \SpecialChar LaTeX
2037  code you inserted for typos.
2038 \end_layout
2039
2040 \begin_layout Enumerate
2041 If there are no typos, check that you used the command(s) correctly.
2042 \end_layout
2043
2044 \begin_layout Enumerate
2045 If you get a bunch of error boxes piled up at the very top of the document—and
2046  especially if you see a 
2047 \begin_inset Quotes eld
2048 \end_inset
2049
2050
2051 \begin_inset Flex Code
2052 status collapsed
2053
2054 \begin_layout Plain Layout
2055 Missing 
2056 \backslash
2057 begin{document}
2058 \end_layout
2059
2060 \end_inset
2061
2062
2063 \begin_inset Quotes erd
2064 \end_inset
2065
2066  error—it means that there are errors in the preamble.
2067  Start debugging your preamble.
2068 \end_layout
2069
2070 \begin_layout Enumerate
2071 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2072  code to the
2073  document, the first suspect is your \SpecialChar LaTeX
2074  distribution itself.
2075  Check for missing packages and install them.
2076 \end_layout
2077
2078 \begin_layout Enumerate
2079 Okay, so there are no missing packages.
2080  Did you use any of the fine-tuning options in \SpecialChar LyX
2081 ? Specifically, did you 
2082 \emph on
2083 misuse
2084 \emph default
2085  any of them, like trying to manually insert lots of 
2086 \begin_inset Flex Code
2087 status collapsed
2088
2089 \begin_layout Plain Layout
2090 Protected
2091 \begin_inset space ~
2092 \end_inset
2093
2094 Blanks
2095 \end_layout
2096
2097 \end_inset
2098
2099
2100 \begin_inset Flex Code
2101 status collapsed
2102
2103 \begin_layout Plain Layout
2104 Linebreaks
2105 \end_layout
2106
2107 \end_inset
2108
2109 , or 
2110 \begin_inset Flex Code
2111 status collapsed
2112
2113 \begin_layout Plain Layout
2114 Pagebreaks
2115 \end_layout
2116
2117 \end_inset
2118
2119 ? Did you try to kludge something together with these instead of using the
2120  appropriate paragraph environment?
2121 \end_layout
2122
2123 \begin_layout Enumerate
2124 All right, you didn't use any of the fine-tuning options, you played by
2125  the rules.
2126  Did you try to pull a fancy maneuver? Did you do something funky inside
2127  a table or an equation, like inserting a graphic into a table cell?
2128 \end_layout
2129
2130 \begin_layout Enumerate
2131 Do you have long sections of text where \SpecialChar LaTeX
2132  cannot find a place to break a
2133  line? By default, \SpecialChar LaTeX
2134  is rather strict about how much extra inter-word spacing
2135  it will add in order to break a line.
2136  Preferably, you should rework the paragraph to avoid the problem.
2137 \end_layout
2138
2139 \begin_layout Enumerate
2140 Did you go overboard with the nesting? \SpecialChar LyX
2141  (currently) doesn't check to make
2142  sure you're in the limits for nesting environments.
2143  If you nested a bunch of environments to the 
2144 \begin_inset Formula $17^{\mathrm{th}}$
2145 \end_inset
2146
2147  level, that's the problem.
2148  (The limit in \SpecialChar LaTeX
2149  is five.)
2150 \end_layout
2151
2152 \begin_layout Enumerate
2153 Okay, you didn't get any error messages, but your output looks awful.
2154  If you have a table or figure that's too wide or long for the page, you
2155  need to:
2156 \end_layout
2157
2158 \begin_deeper
2159 \begin_layout Enumerate
2160 rescale the figure so it fits.
2161 \end_layout
2162
2163 \begin_layout Enumerate
2164 trim down the table so it fits.
2165 \end_layout
2166
2167 \end_deeper
2168 \begin_layout Enumerate
2169 If something else is wrong with the output, and you didn't try to pull anything
2170  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2171 \end_layout
2172
2173 \begin_layout Standard
2174 If all this doesn't help—well, then 
2175 \emph on
2176 perhaps
2177 \emph default
2178  you might have found a bug in \SpecialChar LyX
2179 \SpecialChar ldots
2180 .
2181 \end_layout
2182
2183 \begin_layout Chapter
2184 Supplemental Tools
2185 \end_layout
2186
2187 \begin_layout Section
2188 Customizing Bibliographies with Bib\SpecialChar TeX
2189
2190 \change_inserted -712698321 1485694846
2191  or Biblatex
2192 \change_unchanged
2193
2194 \end_layout
2195
2196 \begin_layout Standard
2197 The most basic information about how to use Bib\SpecialChar TeX
2198  
2199 \change_inserted -712698321 1485694851
2200 or 
2201 \family sans
2202 Biblatex
2203 \family default
2204  
2205 \change_unchanged
2206 with \SpecialChar LyX
2207  is contained in the section 
2208 \emph on
2209 Bibliography databases
2210 \change_deleted -712698321 1485694823
2211  (Bib\SpecialChar TeX
2212 )
2213 \change_unchanged
2214
2215 \emph default
2216  of the 
2217 \emph on
2218 User's Guide
2219 \emph default
2220 .
2221  The following subsections explain special bibliography features supported
2222  by \SpecialChar LyX
2223 .
2224 \end_layout
2225
2226 \begin_layout Subsection
2227 Alternative Citation Styles
2228 \end_layout
2229
2230 \begin_layout Standard
2231 Standard Bib\SpecialChar TeX
2232  uses numbers (e.
2233 \begin_inset space \thinspace{}
2234 \end_inset
2235
2236 g.
2237 \begin_inset space \space{}
2238 \end_inset
2239
2240
2241 \begin_inset Quotes eld
2242 \end_inset
2243
2244 [12]
2245 \begin_inset Quotes erd
2246 \end_inset
2247
2248 ) to refer to a cited work.
2249  However, in many scientific disciplines, other citation styles are in use.
2250  The most common one is the author-year style (e.
2251 \begin_inset space \thinspace{}
2252 \end_inset
2253
2254 g.
2255 \begin_inset space \space{}
2256 \end_inset
2257
2258
2259 \begin_inset Quotes eld
2260 \end_inset
2261
2262 Knuth 1984a
2263 \begin_inset Quotes erd
2264 \end_inset
2265
2266 ).
2267  \SpecialChar LyX
2268  supports 
2269 \change_deleted -712698321 1485694902
2270 two
2271 \change_inserted -712698321 1485694902
2272 three
2273 \change_unchanged
2274  packages that provide this style,
2275 \change_inserted -712698321 1485694917
2276  
2277 \begin_inset Flex Code
2278 status collapsed
2279
2280 \begin_layout Plain Layout
2281
2282 \change_inserted -712698321 1485694917
2283 biblatex
2284 \change_unchanged
2285
2286 \end_layout
2287
2288 \end_inset
2289
2290 ,
2291 \change_unchanged
2292  
2293 \begin_inset Flex Code
2294 status collapsed
2295
2296 \begin_layout Plain Layout
2297 natbib
2298 \end_layout
2299
2300 \end_inset
2301
2302
2303 \change_inserted -712698321 1485696751
2304 ,
2305 \change_unchanged
2306  and 
2307 \begin_inset Flex Code
2308 status collapsed
2309
2310 \begin_layout Plain Layout
2311 jurabib
2312 \end_layout
2313
2314 \end_inset
2315
2316 .
2317  
2318 \change_deleted -712698321 1485695091
2319 Both
2320 \change_inserted -712698321 1485695093
2321 Each of these
2322 \change_unchanged
2323  packages ha
2324 \change_deleted -712698321 1485695095
2325 ve
2326 \change_inserted -712698321 1485695095
2327 s
2328 \change_unchanged
2329  their pros and cons, which cannot be listed in detail.
2330  If you only want to have simple author-year (or author-numerical) style,
2331  or if you want to use one of the countless style files for 
2332 \begin_inset Flex Code
2333 status collapsed
2334
2335 \begin_layout Plain Layout
2336 natbib
2337 \end_layout
2338
2339 \end_inset
2340
2341 , then the established 
2342 \begin_inset Flex Code
2343 status collapsed
2344
2345 \begin_layout Plain Layout
2346 natbib
2347 \end_layout
2348
2349 \end_inset
2350
2351  package is probably your choice.
2352  If you 
2353 \change_inserted -712698321 1485695152
2354 look for specific citation styles common in law studies
2355 \change_deleted -712698321 1485695162
2356 need special features like short title references, ibidem etc.
2357 \change_unchanged
2358 , you might consider the 
2359 \begin_inset Flex Code
2360 status collapsed
2361
2362 \begin_layout Plain Layout
2363 jurabib
2364 \end_layout
2365
2366 \end_inset
2367
2368  package.
2369
2370 \change_inserted -712698321 1485695432
2371  If you want to have full control over the formatting or look for advanced
2372  features such as ibidem, footnote citations, full title citations, advanced
2373  date formats (such as 400 BC) or full localization to other languages than
2374  English, you should definitely consider 
2375 \begin_inset Flex Code
2376 status collapsed
2377
2378 \begin_layout Plain Layout
2379
2380 \change_inserted -712698321 1485695328
2381 biblatex
2382 \end_layout
2383
2384 \end_inset
2385
2386 , which exceeds all other packages in terms of features, but is also quite
2387  heavy and more resource-hungry.
2388 \change_unchanged
2389
2390 \end_layout
2391
2392 \begin_layout Standard
2393 The handling of 
2394 \change_deleted -712698321 1485695449
2395 both
2396 \change_inserted -712698321 1485695449
2397 these
2398 \change_unchanged
2399  packages in \SpecialChar LyX
2400  is basically the same.
2401  Go to 
2402 \begin_inset Flex Noun
2403 status collapsed
2404
2405 \begin_layout Plain Layout
2406 Document\SpecialChar menuseparator
2407 Settings
2408 \end_layout
2409
2410 \end_inset
2411
2412  and select under 
2413 \begin_inset Flex Noun
2414 status collapsed
2415
2416 \begin_layout Plain Layout
2417 Bibliography
2418 \end_layout
2419
2420 \end_inset
2421
2422  
2423 \change_deleted -712698321 1485695462
2424 the option
2425 \change_inserted -712698321 1485695559
2426 the 
2427 \begin_inset Flex Noun
2428 status collapsed
2429
2430 \begin_layout Plain Layout
2431
2432 \change_inserted -712698321 1485695499
2433 Style Format
2434 \end_layout
2435
2436 \end_inset
2437
2438  
2439 \begin_inset Flex Noun
2440 status collapsed
2441
2442 \begin_layout Plain Layout
2443
2444 \change_inserted -712698321 1485695527
2445 Biblatex
2446 \end_layout
2447
2448 \end_inset
2449
2450
2451 \begin_inset Flex Noun
2452 status collapsed
2453
2454 \begin_layout Plain Layout
2455
2456 \change_inserted -712698321 1485695554
2457 Biblatex (Natbib mode)
2458 \end_layout
2459
2460 \end_inset
2461
2462 ,
2463 \change_unchanged
2464  
2465 \begin_inset Flex Noun
2466 status collapsed
2467
2468 \begin_layout Plain Layout
2469 Natbib
2470 \change_inserted -712698321 1485695505
2471  (BibTeX)
2472 \change_unchanged
2473
2474 \end_layout
2475
2476 \end_inset
2477
2478  or 
2479 \begin_inset Flex Noun
2480 status collapsed
2481
2482 \begin_layout Plain Layout
2483 Jurabib
2484 \change_inserted -712698321 1485695511
2485  (BibTeX)
2486 \change_unchanged
2487
2488 \end_layout
2489
2490 \end_inset
2491
2492
2493 \change_inserted -712698321 1485695637
2494  (see sec.
2495 \begin_inset space ~
2496 \end_inset
2497
2498 6.5.3 in the User's Guide for more information on these choices)
2499 \change_unchanged
2500 .
2501  With 
2502 \change_deleted -712698321 1485695643
2503 both
2504 \change_inserted -712698321 1485695645
2505 all these
2506 \change_unchanged
2507  packages, you will get some extra features in the citation dialog and you
2508  can select the style of the reference (
2509 \begin_inset Quotes eld
2510 \end_inset
2511
2512 Knuth 1984
2513 \begin_inset Quotes erd
2514 \end_inset
2515
2516
2517 \begin_inset Quotes eld
2518 \end_inset
2519
2520 Knuth (1984)
2521 \begin_inset Quotes erd
2522 \end_inset
2523
2524
2525 \begin_inset Quotes eld
2526 \end_inset
2527
2528 Knuth, 1984
2529 \begin_inset Quotes erd
2530 \end_inset
2531
2532
2533 \begin_inset Quotes eld
2534 \end_inset
2535
2536 1984
2537 \begin_inset Quotes erd
2538 \end_inset
2539
2540  etc.).
2541  Note that 
2542 \change_deleted -712698321 1485695659
2543 both
2544 \change_inserted -712698321 1485695660
2545 either
2546 \change_unchanged
2547  package
2548 \change_deleted -712698321 1485695663
2549 s
2550 \change_unchanged
2551  need
2552 \change_inserted -712698321 1485695664
2553 s
2554 \change_unchanged
2555  specifically designed style files.
2556  They 
2557 \change_deleted -712698321 1485695676
2558 both
2559 \change_inserted -712698321 1485695676
2560 all
2561 \change_unchanged
2562  ship their own, but there are lots of additional style files, and there
2563  is even an interactive style file builder
2564 \begin_inset Foot
2565 status collapsed
2566
2567 \begin_layout Plain Layout
2568 See 
2569 \begin_inset Flex URL
2570 status open
2571
2572 \begin_layout Plain Layout
2573
2574 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2575 \end_layout
2576
2577 \end_inset
2578
2579
2580 \end_layout
2581
2582 \end_inset
2583
2584  for 
2585 \begin_inset Flex Code
2586 status collapsed
2587
2588 \begin_layout Plain Layout
2589 natbib
2590 \end_layout
2591
2592 \end_inset
2593
2594 .
2595 \end_layout
2596
2597 \begin_layout Subsection
2598 S
2599 \change_deleted -712698321 1486199102
2600 ection
2601 \change_inserted -712698321 1486199104
2602 ubdivid
2603 \change_unchanged
2604 ed Bibliographies
2605 \end_layout
2606
2607 \begin_layout Standard
2608 Sometimes you might need to divide your bibliography into several sections.
2609  If you are for instance a historian, the possibility to separate sources
2610  and scientific works is most likely a 
2611 \begin_inset Quotes eld
2612 \end_inset
2613
2614 must have
2615 \begin_inset Quotes erd
2616 \end_inset
2617
2618 .
2619  Unfortunately, Bib\SpecialChar TeX
2620  itself does not allow you to do this.
2621  But with the help of some \SpecialChar LaTeX
2622  packages, Bib\SpecialChar TeX
2623  can be extended to fit your needs.
2624 \end_layout
2625
2626 \begin_layout Standard
2627 \SpecialChar LyX
2628  provides native support for one of these packages, 
2629 \family typewriter
2630 bibtopic
2631 \family default
2632 .
2633 \begin_inset Foot
2634 status collapsed
2635
2636 \begin_layout Plain Layout
2637 Available from 
2638 \begin_inset Flex URL
2639 status open
2640
2641 \begin_layout Plain Layout
2642
2643 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2644 \end_layout
2645
2646 \end_inset
2647
2648
2649 \end_layout
2650
2651 \end_inset
2652
2653  The advantage of this package (compared to other packages 
2654 \change_deleted -712698321 1485695727
2655 like
2656 \change_inserted -712698321 1485695729
2657 such as
2658 \change_unchanged
2659  
2660 \family typewriter
2661 multibib
2662 \family default
2663 ) is that you don't need to define new citation commands.
2664  Instead, you need to prepare different bibliographic databases which include
2665  the entries for the different sections of the bibliography.
2666  For example: If you want to divide your bibliography into the sections
2667  
2668 \begin_inset Quotes eld
2669 \end_inset
2670
2671 Sources
2672 \begin_inset Quotes erd
2673 \end_inset
2674
2675  and 
2676 \begin_inset Quotes eld
2677 \end_inset
2678
2679 Scientific works
2680 \begin_inset Quotes erd
2681 \end_inset
2682
2683 , you first need to create two bibliographic databases, e.
2684 \begin_inset space \thinspace{}
2685 \end_inset
2686
2687 g.
2688 \begin_inset space \space{}
2689 \end_inset
2690
2691
2692 \begin_inset Flex Code
2693 status collapsed
2694
2695 \begin_layout Plain Layout
2696 sources.bib
2697 \end_layout
2698
2699 \end_inset
2700
2701  and 
2702 \begin_inset Flex Code
2703 status collapsed
2704
2705 \begin_layout Plain Layout
2706 scientific.bib
2707 \end_layout
2708
2709 \end_inset
2710
2711 .
2712  
2713 \end_layout
2714
2715 \begin_layout Standard
2716 Go to 
2717 \begin_inset Flex Noun
2718 status collapsed
2719
2720 \begin_layout Plain Layout
2721 Document\SpecialChar menuseparator
2722 Settings
2723 \end_layout
2724
2725 \end_inset
2726
2727  and check under 
2728 \begin_inset Flex Noun
2729 status collapsed
2730
2731 \begin_layout Plain Layout
2732 Bibliography
2733 \end_layout
2734
2735 \end_inset
2736
2737  the option 
2738 \begin_inset Flex Noun
2739 status collapsed
2740
2741 \begin_layout Plain Layout
2742 S
2743 \change_deleted -712698321 1486199132
2744 ection
2745 \change_inserted -712698321 1486199136
2746 ubdivid
2747 \change_unchanged
2748 ed bibliography
2749 \end_layout
2750
2751 \end_inset
2752
2753 .
2754  Now you can insert multiple Bib\SpecialChar TeX
2755  bibliographies, one for each section of
2756  your bibliography.
2757  Returning to our example: Insert the Bib\SpecialChar TeX
2758  bibliography 
2759 \begin_inset Flex Code
2760 status collapsed
2761
2762 \begin_layout Plain Layout
2763 sources.bib
2764 \end_layout
2765
2766 \end_inset
2767
2768  and a second one for the database 
2769 \begin_inset Flex Code
2770 status collapsed
2771
2772 \begin_layout Plain Layout
2773 scientific.bib
2774 \end_layout
2775
2776 \end_inset
2777
2778 .
2779  You are free to use the same or different styles for each section.
2780  Additionally, you can choose if the bibliography section should contain
2781  
2782 \begin_inset Quotes eld
2783 \end_inset
2784
2785 all cited references
2786 \begin_inset Quotes erd
2787 \end_inset
2788
2789  of the specified database(s) (which is the default), 
2790 \begin_inset Quotes eld
2791 \end_inset
2792
2793 all uncited references
2794 \begin_inset Quotes erd
2795 \end_inset
2796
2797  or even 
2798 \begin_inset Quotes eld
2799 \end_inset
2800
2801 all references
2802 \begin_inset Quotes erd
2803 \end_inset
2804
2805 .
2806  This might be useful if you would like to separate your bibliography into
2807  three sections: 
2808 \begin_inset Quotes eld
2809 \end_inset
2810
2811 Cited sources
2812 \begin_inset Quotes erd
2813 \end_inset
2814
2815
2816 \begin_inset Quotes eld
2817 \end_inset
2818
2819 Uncited sources
2820 \begin_inset Quotes erd
2821 \end_inset
2822
2823 , and 
2824 \begin_inset Quotes eld
2825 \end_inset
2826
2827 Scientific works
2828 \begin_inset Quotes erd
2829 \end_inset
2830
2831 .
2832  The titles for the sections can be added as ordinary sections or subsections.
2833  Since 
2834 \begin_inset Flex Code
2835 status collapsed
2836
2837 \begin_layout Plain Layout
2838 bibtopic
2839 \end_layout
2840
2841 \end_inset
2842
2843  removes the bibliography title, you have to manually re-add that, too (as
2844  a chapter* or section*, for instance).
2845 \change_inserted -712698321 1485695762
2846
2847 \end_layout
2848
2849 \begin_layout Standard
2850
2851 \change_inserted -712698321 1486200403
2852 With 
2853 \family sans
2854 Biblatex
2855 \family default
2856 , the procedure is a bit different.
2857  Since 
2858 \family typewriter
2859 bibtopic
2860 \family default
2861  does not work with 
2862 \family sans
2863 Biblatex
2864 \family default
2865 , the aforementioned 
2866 \begin_inset Flex Noun
2867 status collapsed
2868
2869 \begin_layout Plain Layout
2870
2871 \change_inserted -712698321 1486200382
2872 Subdivided bibliography
2873 \end_layout
2874
2875 \end_inset
2876
2877  option is disabled if you use 
2878 \family sans
2879 Biblatex
2880 \family default
2881 .
2882  However, 
2883 \family sans
2884 Biblatex
2885 \family default
2886  provides its own means to generate subdivided bibliographies.
2887  You can either add keywords to bibliography entries via the 
2888 \begin_inset Flex Code
2889 status collapsed
2890
2891 \begin_layout Plain Layout
2892
2893 \change_inserted -712698321 1485696318
2894 keywords
2895 \change_unchanged
2896
2897 \end_layout
2898
2899 \end_inset
2900
2901  entry option and then filter bibliography sections by keyword (by adding
2902  
2903 \begin_inset Flex Code
2904 status collapsed
2905
2906 \begin_layout Plain Layout
2907
2908 \change_inserted -712698321 1485696306
2909 keyword=mykeyword
2910 \change_unchanged
2911
2912 \end_layout
2913
2914 \end_inset
2915
2916  to the 
2917 \begin_inset Flex Noun
2918 status collapsed
2919
2920 \begin_layout Plain Layout
2921
2922 \change_inserted -712698321 1485696431
2923 Options
2924 \change_unchanged
2925
2926 \end_layout
2927
2928 \end_inset
2929
2930  field of the dialog that opens if you right-click on the 
2931 \begin_inset Flex Noun
2932 status collapsed
2933
2934 \begin_layout Plain Layout
2935
2936 \change_inserted -712698321 1485696518
2937 Biblatex Generated Bibliography
2938 \change_unchanged
2939
2940 \end_layout
2941
2942 \end_inset
2943
2944  button), or you can filter by entry types (such as 
2945 \emph on
2946 book
2947 \emph default
2948  or 
2949 \emph on
2950 article
2951 \emph default
2952 ) by entering e.
2953 \begin_inset space \thinspace{}
2954 \end_inset
2955
2956 g.
2957  
2958 \begin_inset Flex Code
2959 status collapsed
2960
2961 \begin_layout Plain Layout
2962
2963 \change_inserted -712698321 1485696628
2964 type=book
2965 \end_layout
2966
2967 \end_inset
2968
2969  or 
2970 \begin_inset Flex Code
2971 status collapsed
2972
2973 \begin_layout Plain Layout
2974
2975 \change_inserted -712698321 1485696643
2976 nottype=collection
2977 \end_layout
2978
2979 \end_inset
2980
2981  to the mentioned 
2982 \begin_inset Flex Noun
2983 status collapsed
2984
2985 \begin_layout Plain Layout
2986
2987 \change_inserted -712698321 1485696667
2988 Options
2989 \end_layout
2990
2991 \end_inset
2992
2993  field, or you can create so-called 
2994 \begin_inset Quotes eld
2995 \end_inset
2996
2997 Bibliography Categories
2998 \begin_inset Quotes erd
2999 \end_inset
3000
3001  to which you can assign individual entries.
3002  Please refer to the Biblatex manual, section 
3003 \emph on
3004 Subdivided Bibliographies
3005 \emph default
3006 , for details.
3007 \change_unchanged
3008
3009 \end_layout
3010
3011 \begin_layout Subsection
3012 Multiple Bibliographies
3013 \end_layout
3014
3015 \begin_layout Standard
3016 Multiple bibliographies, e.
3017 \begin_inset space \thinspace{}
3018 \end_inset
3019
3020 g.
3021 \begin_inset space \space{}
3022 \end_inset
3023
3024 a bibliography for each 
3025 \change_inserted -712698321 1486199441
3026 part, chapter, 
3027 \change_unchanged
3028 section
3029 \change_inserted -712698321 1486231742
3030 ,
3031 \change_unchanged
3032  
3033 \change_deleted -712698321 1486231742
3034 or 
3035 \change_inserted -712698321 1486199445
3036 subsection
3037 \change_deleted -712698321 1486199447
3038 chapter
3039 \change_unchanged
3040  
3041 \change_inserted -712698321 1486231758
3042 or child (sub-document) 
3043 \change_unchanged
3044 of the document, are 
3045 \change_deleted -712698321 1486199458
3046 not 
3047 \change_inserted -712698321 1486200433
3048 also 
3049 \change_unchanged
3050 supported 
3051 \change_inserted -712698321 1486231617
3052 by \SpecialChar LyX
3053 .
3054  In order to enable it, go to 
3055 \begin_inset Flex Noun
3056 status collapsed
3057
3058 \begin_layout Plain Layout
3059
3060 \change_inserted -712698321 1486199572
3061 Document\SpecialChar menuseparator
3062 Settings\SpecialChar menuseparator
3063 Bibliography
3064 \change_unchanged
3065
3066 \end_layout
3067
3068 \end_inset
3069
3070  and select the relevant unit (e.
3071 \begin_inset space \thinspace{}
3072 \end_inset
3073
3074 g., 
3075 \begin_inset Quotes eld
3076 \end_inset
3077
3078 per section
3079 \begin_inset Quotes erd
3080 \end_inset
3081
3082 ) in the 
3083 \begin_inset Flex Noun
3084 status collapsed
3085
3086 \begin_layout Plain Layout
3087
3088 \change_inserted -712698321 1486199553
3089 Multiple Bibliographies
3090 \change_unchanged
3091
3092 \end_layout
3093
3094 \end_inset
3095
3096  combo box.
3097  
3098 \change_deleted -712698321 1486199771
3099 by Bib\SpecialChar TeX
3100  itself.
3101  
3102 \change_inserted -712698321 1486200569
3103 Then add a Bib(la)\SpecialChar TeX
3104  bibliography to each unit (e.
3105 \begin_inset space \thinspace{}
3106 \end_inset
3107
3108 g., section) of your document.
3109  In the output, a separate bibliography, containing only the references
3110  done in the current unit is generated.
3111 \end_layout
3112
3113 \begin_layout Standard
3114
3115 \change_inserted -712698321 1486199829
3116 If you use Bib\SpecialChar TeX
3117
3118 \change_deleted -712698321 1486199835
3119 But 
3120 \change_inserted -712698321 1486231520
3121 either 
3122 \change_unchanged
3123 the
3124 \change_inserted -712698321 1486231576
3125  
3126 \begin_inset Flex Code
3127 status collapsed
3128
3129 \begin_layout Plain Layout
3130
3131 \change_inserted -712698321 1486231576
3132 chapterbib
3133 \change_unchanged
3134
3135 \end_layout
3136
3137 \end_inset
3138
3139  of the
3140 \change_unchanged
3141  
3142 \begin_inset Flex Code
3143 status collapsed
3144
3145 \begin_layout Plain Layout
3146 bibtopic
3147 \end_layout
3148
3149 \end_inset
3150
3151  package
3152 \change_deleted -712698321 1486231584
3153 , which is used for the creation of sectioned bibliographies in \SpecialChar LyX
3154  (see the
3155  previous section),
3156 \change_unchanged
3157  
3158 \change_inserted -712698321 1486231676
3159 is used to create multiple bibliographies.
3160  The former package is used if you select 
3161 \begin_inset Quotes eld
3162 \end_inset
3163
3164 per child document
3165 \begin_inset Quotes erd
3166 \end_inset
3167
3168  and do 
3169 \emph on
3170 not
3171 \emph default
3172  check 
3173 \begin_inset Flex Noun
3174 status collapsed
3175
3176 \begin_layout Plain Layout
3177
3178 \change_inserted -712698321 1486231676
3179 Sectioned Bibliography
3180 \change_unchanged
3181
3182 \end_layout
3183
3184 \end_inset
3185
3186 .
3187  In all other cases, 
3188 \begin_inset Flex Code
3189 status collapsed
3190
3191 \begin_layout Plain Layout
3192
3193 \change_inserted -712698321 1486231655
3194 bibtopic
3195 \end_layout
3196
3197 \end_inset
3198
3199  is used.
3200 \change_deleted -712698321 1486200505
3201 provides an easy way to solve this task, if you are willing to use some
3202  
3203 \begin_inset Flex Noun
3204 status collapsed
3205
3206 \begin_layout Plain Layout
3207 \SpecialChar TeX
3208  Code
3209 \end_layout
3210
3211 \end_inset
3212
3213  (see section
3214 \begin_inset space ~
3215 \end_inset
3216
3217
3218 \begin_inset CommandInset ref
3219 LatexCommand ref
3220 reference "sec:Inserting-TeX-Code"
3221
3222 \end_inset
3223
3224 ).
3225 \change_unchanged
3226
3227 \begin_inset Foot
3228 status collapsed
3229
3230 \begin_layout Plain Layout
3231 An alternative approach
3232 \change_inserted -712698321 1486199215
3233 , if you are willing to use some 
3234 \begin_inset Flex Noun
3235 status collapsed
3236
3237 \begin_layout Plain Layout
3238
3239 \change_inserted -712698321 1486199212
3240 \SpecialChar TeX
3241  Code
3242 \end_layout
3243
3244 \end_inset
3245
3246  (see section
3247 \begin_inset space ~
3248 \end_inset
3249
3250
3251 \begin_inset CommandInset ref
3252 LatexCommand ref
3253 reference "sec:Inserting-TeX-Code"
3254
3255 \end_inset
3256
3257 ),
3258 \change_unchanged
3259  is to use the 
3260 \change_deleted -712698321 1486231820
3261
3262 \begin_inset Flex Code
3263 status collapsed
3264
3265 \begin_layout Plain Layout
3266 chapterbib
3267 \end_layout
3268
3269 \end_inset
3270
3271  or 
3272 \change_unchanged
3273
3274 \begin_inset Flex Code
3275 status collapsed
3276
3277 \begin_layout Plain Layout
3278 bibunits
3279 \end_layout
3280
3281 \end_inset
3282
3283  package
3284 \change_deleted -712698321 1486231824
3285 , respectively
3286 \change_unchanged
3287 .
3288 \end_layout
3289
3290 \end_inset
3291
3292
3293 \change_inserted -712698321 1486231646
3294  
3295 \change_deleted -712698321 1486202138
3296
3297 \end_layout
3298
3299 \begin_layout Standard
3300
3301 \change_deleted -712698321 1486202126
3302 First go to 
3303 \begin_inset Flex Noun
3304 status collapsed
3305
3306 \begin_layout Plain Layout
3307 Document\SpecialChar menuseparator
3308 Settings
3309 \end_layout
3310
3311 \end_inset
3312
3313  and under 
3314 \begin_inset Flex Noun
3315 status collapsed
3316
3317 \begin_layout Plain Layout
3318 Bibliography
3319 \end_layout
3320
3321 \end_inset
3322
3323  check 
3324 \begin_inset Flex Noun
3325 status collapsed
3326
3327 \begin_layout Plain Layout
3328 Sectioned bibliography
3329 \end_layout
3330
3331 \end_inset
3332
3333 .
3334  In the document, you have to enclose the sections, which shall contain
3335  their own bibliography (including the Bib\SpecialChar TeX
3336  bibliography itself), between
3337  
3338 \change_inserted -712698321 1486231702
3339 If 
3340 \begin_inset Flex Code
3341 status collapsed
3342
3343 \begin_layout Plain Layout
3344
3345 \change_inserted -712698321 1486231702
3346 bibtopic
3347 \end_layout
3348
3349 \end_inset
3350
3351  is used, \SpecialChar LyX
3352  encloses the specified units in 
3353 \begin_inset Flex Code
3354 status collapsed
3355
3356 \begin_layout Plain Layout
3357
3358 \change_inserted -712698321 1486201443
3359 bibtopic
3360 \end_layout
3361
3362 \end_inset
3363
3364 's 
3365 \change_unchanged
3366
3367 \begin_inset Flex Code
3368 status collapsed
3369
3370 \begin_layout Plain Layout
3371
3372 \backslash
3373 begin{btUnit}
3374 \end_layout
3375
3376 \end_inset
3377
3378  and 
3379 \begin_inset Flex Code
3380 status collapsed
3381
3382 \begin_layout Plain Layout
3383
3384 \backslash
3385 end{btUnit}
3386 \end_layout
3387
3388 \end_inset
3389
3390
3391 \change_inserted -712698321 1486231697
3392  in order to create the units.
3393  Note that this approach has
3394 \change_unchanged
3395  
3396 \change_inserted -712698321 1486231697
3397 some limitations.
3398  
3399 \change_deleted -712698321 1486200476
3400 (those commands have to be inserted as \SpecialChar TeX
3401  code).
3402  The bibliography will contain all references that have been cited in the
3403  current 
3404 \begin_inset Flex Code
3405 status collapsed
3406
3407 \begin_layout Plain Layout
3408 btUnit
3409 \end_layout
3410
3411 \end_inset
3412
3413 .
3414  
3415 \series bold
3416 Note:
3417 \series default
3418  If you are using this approach, then 
3419 \change_inserted -712698321 1486231697
3420 First, 
3421 \change_unchanged
3422 every citation reference has to be inside some 
3423 \begin_inset Flex Code
3424 status collapsed
3425
3426 \begin_layout Plain Layout
3427 btUnit
3428 \end_layout
3429
3430 \end_inset
3431
3432 .
3433  
3434 \change_inserted -712698321 1486231697
3435 So citations outside a defined unit (e.
3436 \begin_inset space \thinspace{}
3437 \end_inset
3438
3439 g., before the first section if you use 
3440 \begin_inset Quotes eld
3441 \end_inset
3442
3443 by section
3444 \begin_inset Quotes erd
3445 \end_inset
3446
3447 ) will appear as 
3448 \begin_inset Quotes eld
3449 \end_inset
3450
3451 ???
3452 \begin_inset Quotes erd
3453 \end_inset
3454
3455 .
3456  You can also create your own units by entering 
3457 \begin_inset Flex Code
3458 status collapsed
3459
3460 \begin_layout Plain Layout
3461
3462 \change_inserted -712698321 1486200131
3463
3464 \backslash
3465 begin{btUnit}
3466 \end_layout
3467
3468 \end_inset
3469
3470  and 
3471 \begin_inset Flex Code
3472 status collapsed
3473
3474 \begin_layout Plain Layout
3475
3476 \change_inserted -712698321 1486200131
3477
3478 \backslash
3479 end{btUnit}
3480 \end_layout
3481
3482 \end_inset
3483
3484  as \SpecialChar TeX
3485  code (for instance to work around the mentioned limitation).
3486  Note, though, that
3487 \change_deleted -712698321 1486200476
3488 Also, the
3489 \change_unchanged
3490  
3491 \begin_inset Flex Code
3492 status collapsed
3493
3494 \begin_layout Plain Layout
3495 btUnit
3496 \end_layout
3497
3498 \end_inset
3499
3500 s cannot be nested.
3501
3502 \change_inserted -712698321 1486231697
3503  A second limitation is that 
3504 \begin_inset Flex Code
3505 status collapsed
3506
3507 \begin_layout Plain Layout
3508
3509 \change_inserted -712698321 1486200199
3510 bibtopic
3511 \end_layout
3512
3513 \end_inset
3514
3515  always processes all references of a bibliography database, even if they
3516  are not cited.
3517  This can result in odd labels (e.
3518 \begin_inset space \thinspace{}
3519 \end_inset
3520
3521 g.
3522  
3523 \begin_inset Quotes eld
3524 \end_inset
3525
3526 Miller 2014b
3527 \begin_inset Quotes erd
3528 \end_inset
3529
3530  if two works of this author from 2014 are in the database, even if only
3531  one is cited).
3532 \end_layout
3533
3534 \begin_layout Standard
3535
3536 \change_inserted -712698321 1486204109
3537 If you use 
3538 \family sans
3539 Biblatex
3540 \family default
3541 , the 
3542 \begin_inset Flex Code
3543 status collapsed
3544
3545 \begin_layout Plain Layout
3546
3547 \change_inserted -712698321 1486202183
3548 refsection
3549 \change_unchanged
3550
3551 \end_layout
3552
3553 \end_inset
3554
3555  option is used instead.
3556  If you need specific units, you can start them with the \SpecialChar TeX
3557  code 
3558 \begin_inset Flex Code
3559 status collapsed
3560
3561 \begin_layout Plain Layout
3562
3563 \change_inserted -712698321 1485697716
3564
3565 \backslash
3566 newrefsection
3567 \change_unchanged
3568
3569 \end_layout
3570
3571 \end_inset
3572
3573  or 
3574 \begin_inset Flex Code
3575 status collapsed
3576
3577 \begin_layout Plain Layout
3578
3579 \change_inserted -712698321 1485697724
3580
3581 \backslash
3582 newrefsegment
3583 \change_unchanged
3584
3585 \end_layout
3586
3587 \end_inset
3588
3589 , respectively.
3590  If you also want to control the end of the unit, use the environment 
3591 \begin_inset Flex Code
3592 status collapsed
3593
3594 \begin_layout Plain Layout
3595
3596 \change_inserted -712698321 1485697769
3597
3598 \backslash
3599 begin{refsection}
3600 \end_layout
3601
3602 \end_inset
3603
3604  \SpecialChar ldots
3605  
3606 \begin_inset Flex Code
3607 status collapsed
3608
3609 \begin_layout Plain Layout
3610
3611 \change_inserted -712698321 1485697780
3612
3613 \backslash
3614 end{refsection}
3615 \end_layout
3616
3617 \end_inset
3618
3619  instead.
3620  Note, though, that 
3621 \begin_inset Flex Code
3622 status collapsed
3623
3624 \begin_layout Plain Layout
3625
3626 \change_inserted -712698321 1486201999
3627 refsection
3628 \change_unchanged
3629
3630 \end_layout
3631
3632 \end_inset
3633
3634 s cannot be nested.
3635  In addition to the individual bibliography of the current unit, 
3636 \family sans
3637 Biblatex
3638 \family default
3639  also provides an easy way to output all bibliographies, subsequently, at
3640  one place (e.
3641 \begin_inset space \thinspace{}
3642 \end_inset
3643
3644 g., at the end of the document).
3645  Select 
3646 \begin_inset Quotes eld
3647 \end_inset
3648
3649 all reference units
3650 \begin_inset Quotes erd
3651 \end_inset
3652
3653  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
3654  this.
3655  Please refer to the 
3656 \family sans
3657 Biblatex
3658 \family default
3659  manual for more information on this topic.
3660 \change_unchanged
3661
3662 \end_layout
3663
3664 \begin_layout Section
3665 Multipart Documents
3666 \end_layout
3667
3668 \begin_layout Subsection
3669 General Operation
3670 \end_layout
3671
3672 \begin_layout Standard
3673 When you are working on a large file with many sections, it is often convenient
3674  to break up the document into several files, or perhaps you have something
3675  where a table may change from time to time, but the preceding text does
3676  not.
3677  In these cases, you should seriously consider using multipart documents.
3678  For example, scientific papers often have five major sections: the introduction
3679 , observations, results, discussion, and conclusion.
3680  Each of these could be its own separate \SpecialChar LyX
3681  file, with one 
3682 \begin_inset Quotes eld
3683 \end_inset
3684
3685 master
3686 \begin_inset Quotes erd
3687 \end_inset
3688
3689  file which contains the title, authors, abstract, references, etc., plus
3690  the five included files.
3691  It is important to note that each of these files is a full \SpecialChar LyX
3692  file which
3693  can be formatted and printed on its own, as well as included in a master
3694  file.
3695  Each of these files must have the same document class, however—don't attempt
3696  to mix book classes with article classes.
3697  You may also include \SpecialChar LaTeX
3698  files; however, these files must not have their own
3699  preamble (i.
3700 \begin_inset space \thinspace{}
3701 \end_inset
3702
3703 e.
3704 \begin_inset space \space{}
3705 \end_inset
3706
3707 everything up to and including the 
3708 \begin_inset Flex Code
3709 status collapsed
3710
3711 \begin_layout Plain Layout
3712
3713 \backslash
3714 begin{document}
3715 \end_layout
3716
3717 \end_inset
3718
3719  line as well as the 
3720 \begin_inset Flex Code
3721 status collapsed
3722
3723 \begin_layout Plain Layout
3724
3725 \backslash
3726 end{document}
3727 \end_layout
3728
3729 \end_inset
3730
3731  line must be deleted) or else errors will be generated when you try to
3732  make a DVI file.
3733 \end_layout
3734
3735 \begin_layout Standard
3736 \SpecialChar LyX
3737  allows you to include files quite easily with 
3738 \begin_inset Flex Noun
3739 status collapsed
3740
3741 \begin_layout Plain Layout
3742 Insert\SpecialChar menuseparator
3743 ChiId
3744 \begin_inset space ~
3745 \end_inset
3746
3747 Document
3748 \end_layout
3749
3750 \end_inset
3751
3752 .
3753  When you click on this selection a small box is inserted into the file
3754  at the current cursor location.
3755  Clicking on the box raises a dialog which allows you to select the file
3756  to be included, and the method of its inclusion.
3757  
3758 \end_layout
3759
3760 \begin_layout Standard
3761 The file selection box should by now be obvious.
3762  The three inclusion methods are 
3763 \begin_inset Quotes eld
3764 \end_inset
3765
3766 include
3767 \begin_inset Quotes erd
3768 \end_inset
3769
3770
3771 \begin_inset Quotes eld
3772 \end_inset
3773
3774 input
3775 \begin_inset Quotes erd
3776 \end_inset
3777
3778 , and 
3779 \begin_inset Quotes eld
3780 \end_inset
3781
3782 verbatim
3783 \begin_inset Quotes erd
3784 \end_inset
3785
3786 .
3787  The difference between 
3788 \begin_inset Quotes eld
3789 \end_inset
3790
3791 include
3792 \begin_inset Quotes erd
3793 \end_inset
3794
3795  and 
3796 \begin_inset Quotes eld
3797 \end_inset
3798
3799 input
3800 \begin_inset Quotes erd
3801 \end_inset
3802
3803  is really only meaningful to \SpecialChar LaTeX
3804 perts, but the practical difference is that
3805  files that are 
3806 \begin_inset Quotes eld
3807 \end_inset
3808
3809 included
3810 \begin_inset Quotes erd
3811 \end_inset
3812
3813  are typeset beginning on a new page, while files that are 
3814 \begin_inset Quotes eld
3815 \end_inset
3816
3817 inputted
3818 \begin_inset Quotes erd
3819 \end_inset
3820
3821  are typeset starting on the current page.
3822 \end_layout
3823
3824 \begin_layout Standard
3825 Generally, the master file is converted into a full \SpecialChar LaTeX
3826  file before typesetting,
3827  while the included files are converted to \SpecialChar LaTeX
3828  files that do not have all the
3829  preamble information.
3830 \end_layout
3831
3832 \begin_layout Standard
3833
3834 \begin_inset Quotes eld
3835 \end_inset
3836
3837 verbatim
3838 \begin_inset Quotes erd
3839 \end_inset
3840
3841  included file allows you to include a file typeset exactly as it appears
3842  in the file, i.
3843 \begin_inset space \thinspace{}
3844 \end_inset
3845
3846 e.
3847 \begin_inset space \space{}
3848 \end_inset
3849
3850 in 
3851 \begin_inset Flex Code
3852 status collapsed
3853
3854 \begin_layout Plain Layout
3855 verbatim
3856 \end_layout
3857
3858 \end_inset
3859
3860  mode, with the characters set in a fixed-width typewriter font.
3861  Normally, spaces in this file are invisible, though two consecutive spaces
3862  are conserved, unlike \SpecialChar LyX
3863 's normal treatment of spaces.
3864  However, setting the 
3865 \begin_inset Flex Noun
3866 status collapsed
3867
3868 \begin_layout Plain Layout
3869 Mark
3870 \begin_inset space ~
3871 \end_inset
3872
3873 spaces
3874 \begin_inset space ~
3875 \end_inset
3876
3877 in
3878 \begin_inset space ~
3879 \end_inset
3880
3881 output
3882 \end_layout
3883
3884 \end_inset
3885
3886  checkbox typesets a mark to unambiguously define the presence of a space.
3887  
3888 \end_layout
3889
3890 \begin_layout Subsection
3891 Cross-References Between Files
3892 \end_layout
3893
3894 \begin_layout Standard
3895 \begin_inset Box Shadowbox
3896 position "t"
3897 hor_pos "c"
3898 has_inner_box 1
3899 inner_pos "t"
3900 use_parbox 0
3901 use_makebox 0
3902 width "100col%"
3903 special "none"
3904 height "1in"
3905 height_special "totalheight"
3906 thickness "0.4pt"
3907 separation "3pt"
3908 shadowsize "4pt"
3909 framecolor "black"
3910 backgroundcolor "none"
3911 status open
3912
3913 \begin_layout Plain Layout
3914 This section is somewhat out of date.
3915  Need to describe default master documents and how children are opened when
3916  the master is.
3917  [[FIXME]]
3918 \end_layout
3919
3920 \end_inset
3921
3922
3923 \end_layout
3924
3925 \begin_layout Standard
3926 It is possible to set up cross-references between the different files.
3927  First, open all the files in question: let's call them A and B in a two
3928  file example, where B is included in A.
3929  Let's say you insert a label in A, then want to reference it in B.
3930  Open the cross-reference dialog whilst in document B, and you can select
3931  the 
3932 \begin_inset Quotes eld
3933 \end_inset
3934
3935 buffer
3936 \begin_inset Quotes erd
3937 \end_inset
3938
3939  to use.
3940 \end_layout
3941
3942 \begin_layout Subsection
3943 Bibliography Lists in all Subdocuments
3944 \end_layout
3945
3946 \begin_layout Standard
3947 \begin_inset Box Frameless
3948 position "t"
3949 hor_pos "c"
3950 has_inner_box 1
3951 inner_pos "t"
3952 use_parbox 0
3953 use_makebox 0
3954 width "100col%"
3955 special "none"
3956 height "1in"
3957 height_special "totalheight"
3958 thickness "0.4pt"
3959 separation "3pt"
3960 shadowsize "4pt"
3961 framecolor "black"
3962 backgroundcolor "none"
3963 status open
3964
3965 \begin_layout Plain Layout
3966 This section also needs updating.
3967  There is now material about this on the wiki, and it could be copied here.
3968 \end_layout
3969
3970 \end_inset
3971
3972
3973 \end_layout
3974
3975 \begin_layout Standard
3976 Copy the bibliography list with all entries to all subdocuments and transform
3977  them to a comment.
3978  This way \SpecialChar LyX
3979  will find the 
3980 \begin_inset Flex Code
3981 status collapsed
3982
3983 \begin_layout Plain Layout
3984 .bib
3985 \end_layout
3986
3987 \end_inset
3988
3989 -files and you can easily insert references without making the bibliography
3990  list visible.
3991 \end_layout
3992
3993 \begin_layout Standard
3994 As the bibliography list is in a comment, \SpecialChar LaTeX
3995  won't use it and the references
3996  will look like this: [?], instead of like this: [1].
3997  One solution is to use the \SpecialChar LaTeX
3998 -package 
3999 \begin_inset Flex Code
4000 status collapsed
4001
4002 \begin_layout Plain Layout
4003 comment
4004 \end_layout
4005
4006 \end_inset
4007
4008  that will only include comments by processing the files separately.
4009  To do this, add in the \SpecialChar LaTeX
4010  preamble of every subdocument the following:
4011 \end_layout
4012
4013 \begin_layout LyX-Code
4014
4015 \backslash
4016 usepackage{comment}
4017 \end_layout
4018
4019 \begin_layout LyX-Code
4020
4021 \backslash
4022 includecomment{comment}
4023 \end_layout
4024
4025 \begin_layout Standard
4026 See also 
4027 \begin_inset Flex URL
4028 status collapsed
4029
4030 \begin_layout Plain Layout
4031
4032 http://wiki.lyx.org/FAQ/Unsorted#toc31
4033 \end_layout
4034
4035 \end_inset
4036
4037 .
4038 \end_layout
4039
4040 \begin_layout Section
4041 \SpecialChar LyX
4042  Archives
4043 \end_layout
4044
4045 \begin_layout Standard
4046 Users sometimes need to be able to 
4047 \begin_inset Quotes eld
4048 \end_inset
4049
4050 bundle
4051 \begin_inset Quotes erd
4052 \end_inset
4053
4054  a \SpecialChar LyX
4055  file together with all the images (and other files) on which it depends,
4056  either for sending to a publisher or for sharing with a co-author.
4057  \SpecialChar LyX
4058  2.0 includes a Python script (
4059 \begin_inset Flex Code
4060 status collapsed
4061
4062 \begin_layout Plain Layout
4063 lyxpak.py
4064 \end_layout
4065
4066 \end_inset
4067
4068 ) that automates this process.
4069  To use it, you must have either the 
4070 \begin_inset Flex Code
4071 status collapsed
4072
4073 \begin_layout Plain Layout
4074 zipfile
4075 \end_layout
4076
4077 \end_inset
4078
4079  or 
4080 \begin_inset Flex Code
4081 status collapsed
4082
4083 \begin_layout Plain Layout
4084 tarfile
4085 \end_layout
4086
4087 \end_inset
4088
4089  python modules installed on your system.
4090  By default, the script prefers the 
4091 \begin_inset Flex Code
4092 status collapsed
4093
4094 \begin_layout Plain Layout
4095 gzip
4096 \end_layout
4097
4098 \end_inset
4099
4100 -compressed 
4101 \begin_inset Flex Code
4102 status collapsed
4103
4104 \begin_layout Plain Layout
4105 tar
4106 \end_layout
4107
4108 \end_inset
4109
4110  format on Unix-like systems and the 
4111 \begin_inset Flex Code
4112 status collapsed
4113
4114 \begin_layout Plain Layout
4115 zip
4116 \end_layout
4117
4118 \end_inset
4119
4120  format on Windows.
4121 \end_layout
4122
4123 \begin_layout Standard
4124 \SpecialChar LyX
4125 's configuration process will set the script up to export a `\SpecialChar LyX
4126  Archive',
4127  and this format will then be available under 
4128 \begin_inset Flex Code
4129 status collapsed
4130
4131 \begin_layout Plain Layout
4132 File\SpecialChar menuseparator
4133 Export
4134 \end_layout
4135
4136 \end_inset
4137
4138 .
4139 \end_layout
4140
4141 \begin_layout Standard
4142 Independently of the platform, the generation of a particular archive format
4143  can be forced by adding either the 
4144 \begin_inset Flex Code
4145 status collapsed
4146
4147 \begin_layout Plain Layout
4148 -t
4149 \end_layout
4150
4151 \end_inset
4152
4153  (for the 
4154 \begin_inset Flex Code
4155 status collapsed
4156
4157 \begin_layout Plain Layout
4158 tar
4159 \end_layout
4160
4161 \end_inset
4162
4163  format) or 
4164 \begin_inset Flex Code
4165 status collapsed
4166
4167 \begin_layout Plain Layout
4168 -z
4169 \end_layout
4170
4171 \end_inset
4172
4173  (for the 
4174 \begin_inset Flex Code
4175 status collapsed
4176
4177 \begin_layout Plain Layout
4178 zip
4179 \end_layout
4180
4181 \end_inset
4182
4183  format) switch to the 
4184 \begin_inset Flex Code
4185 status collapsed
4186
4187 \begin_layout Plain Layout
4188 \SpecialChar LyX
4189 \SpecialChar menuseparator
4190 \SpecialChar LyX
4191  Archive
4192 \end_layout
4193
4194 \end_inset
4195
4196  converter in 
4197 \begin_inset Flex Code
4198 status collapsed
4199
4200 \begin_layout Plain Layout
4201 Tools\SpecialChar menuseparator
4202 Preferences\SpecialChar menuseparator
4203 File Handling\SpecialChar menuseparator
4204 Converters
4205 \end_layout
4206
4207 \end_inset
4208
4209 .
4210  (Make sure you add the switch after the script name, not before it.)
4211 \end_layout
4212
4213 \begin_layout Section
4214 Fancy Headers and Footers
4215 \end_layout
4216
4217 \begin_layout Standard
4218 The default page layout is rather plain; for an 
4219 \begin_inset Flex Code
4220 status collapsed
4221
4222 \begin_layout Plain Layout
4223 article
4224 \end_layout
4225
4226 \end_inset
4227
4228  document class, all you get is a centered page number at the bottom of
4229  the page.
4230  This document uses KOMA-script's book class, so it appears to be a bit
4231  fancier.
4232  But to really put on a show, you need to set the document page style to
4233  
4234 \begin_inset Quotes eld
4235 \end_inset
4236
4237 fancy
4238 \begin_inset Quotes erd
4239 \end_inset
4240
4241 , as mentioned in the 
4242 \emph on
4243 User Guide
4244 \emph default
4245 .
4246  This section describes the \SpecialChar LaTeX
4247  code you need to insert in your \SpecialChar LaTeX
4248  preamble in
4249  order to get the desired effects.
4250 \end_layout
4251
4252 \begin_layout Standard
4253 For more information on fancy headers, see the 
4254 \begin_inset Flex Code
4255 status collapsed
4256
4257 \begin_layout Plain Layout
4258 fancyhdr
4259 \end_layout
4260
4261 \end_inset
4262
4263  package documentation.
4264  (
4265 \begin_inset Flex URL
4266 status collapsed
4267
4268 \begin_layout Plain Layout
4269
4270 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
4271 \end_layout
4272
4273 \end_inset
4274
4275 )
4276 \end_layout
4277
4278 \begin_layout Standard
4279 The page header is divided into three fields, not surprisingly labeled 
4280 \begin_inset Quotes eld
4281 \end_inset
4282
4283 left
4284 \begin_inset Quotes erd
4285 \end_inset
4286
4287
4288 \begin_inset Quotes eld
4289 \end_inset
4290
4291 center
4292 \begin_inset Quotes erd
4293 \end_inset
4294
4295 , and 
4296 \begin_inset Quotes eld
4297 \end_inset
4298
4299 right
4300 \begin_inset Quotes erd
4301 \end_inset
4302
4303 .
4304  The footer is also divided into these three fields.
4305  The \SpecialChar LaTeX
4306  commands to set these fields in the simplest manner are 
4307 \begin_inset Flex Code
4308 status collapsed
4309
4310 \begin_layout Plain Layout
4311
4312 \backslash
4313 lhead
4314 \end_layout
4315
4316 \end_inset
4317
4318
4319 \begin_inset Flex Code
4320 status collapsed
4321
4322 \begin_layout Plain Layout
4323
4324 \backslash
4325 chead
4326 \end_layout
4327
4328 \end_inset
4329
4330
4331 \begin_inset Flex Code
4332 status collapsed
4333
4334 \begin_layout Plain Layout
4335
4336 \backslash
4337 rhead
4338 \end_layout
4339
4340 \end_inset
4341
4342
4343 \begin_inset Flex Code
4344 status collapsed
4345
4346 \begin_layout Plain Layout
4347
4348 \backslash
4349 lfoot
4350 \end_layout
4351
4352 \end_inset
4353
4354 , etc.
4355  Suppose you wish to put your name in the upper left hand corner of each
4356  page.
4357  Simply insert the following command in the preamble: 
4358 \end_layout
4359
4360 \begin_layout Standard
4361
4362 \family typewriter
4363
4364 \backslash
4365 lhead{John Q.
4366  DocWriter}
4367 \end_layout
4368
4369 \begin_layout Standard
4370 You will now see your name in the upper left.
4371  If a field has a default entry that you would like to get rid of (often
4372  the page number appears in the central footer) simply include a command
4373  with a blank argument, e.
4374 \begin_inset space \thinspace{}
4375 \end_inset
4376
4377 g.:
4378 \end_layout
4379
4380 \begin_layout Standard
4381
4382 \family typewriter
4383
4384 \backslash
4385 cfoot{}
4386 \end_layout
4387
4388 \begin_layout Standard
4389 Let's get really fancy: lets put the section number with the word 
4390 \begin_inset Quotes eld
4391 \end_inset
4392
4393 Section
4394 \begin_inset Quotes erd
4395 \end_inset
4396
4397  (e.
4398 \begin_inset space \thinspace{}
4399 \end_inset
4400
4401 g.
4402 \begin_inset space \space{}
4403 \end_inset
4404
4405 Section 3) in the upper left, the page number (e.
4406 \begin_inset space \thinspace{}
4407 \end_inset
4408
4409 g.
4410 \begin_inset space \space{}
4411 \end_inset
4412
4413 Page 4) in the upper right, your name in the lower left, and the date in
4414  the lower right.
4415  The following commands should now appear in the preamble:
4416 \end_layout
4417
4418 \begin_layout Standard
4419
4420 \family typewriter
4421
4422 \backslash
4423 lhead{Section 
4424 \backslash
4425 thesection}
4426 \end_layout
4427
4428 \begin_layout Standard
4429
4430 \family typewriter
4431
4432 \backslash
4433 chead{}
4434 \end_layout
4435
4436 \begin_layout Standard
4437
4438 \family typewriter
4439
4440 \backslash
4441 rhead{Page 
4442 \backslash
4443 thepage}
4444 \end_layout
4445
4446 \begin_layout Standard
4447
4448 \family typewriter
4449
4450 \backslash
4451 lfoot{John Q.
4452  DocWriter}
4453 \end_layout
4454
4455 \begin_layout Standard
4456
4457 \family typewriter
4458
4459 \backslash
4460 cfoot{}
4461 \end_layout
4462
4463 \begin_layout Standard
4464
4465 \family typewriter
4466
4467 \backslash
4468 rfoot{
4469 \backslash
4470 today}
4471 \end_layout
4472
4473 \begin_layout Standard
4474 The commands 
4475 \begin_inset Flex Code
4476 status collapsed
4477
4478 \begin_layout Plain Layout
4479
4480 \backslash
4481 thesection
4482 \end_layout
4483
4484 \end_inset
4485
4486  and 
4487 \begin_inset Flex Code
4488 status collapsed
4489
4490 \begin_layout Plain Layout
4491
4492 \backslash
4493 thepage
4494 \end_layout
4495
4496 \end_inset
4497
4498  access \SpecialChar LaTeX
4499 's section and page counters, and so print out the current section
4500  and page numbers.
4501  
4502 \begin_inset Flex Code
4503 status collapsed
4504
4505 \begin_layout Plain Layout
4506
4507 \backslash
4508 today
4509 \end_layout
4510
4511 \end_inset
4512
4513  simply prints out today's date.
4514 \end_layout
4515
4516 \begin_layout Standard
4517 The thicknesses of the horizontal rules drawn beneath the header and above
4518  the footer can also be modified.
4519  If you don't want one of the rules, set its thickness to 0.
4520  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4521  Use commands
4522 \family typewriter
4523  
4524 \family default
4525 like 
4526 \begin_inset Flex Code
4527 status collapsed
4528
4529 \begin_layout Plain Layout
4530
4531 \backslash
4532 renewcommand{
4533 \backslash
4534 headrulewidth}{0.4pt}
4535 \end_layout
4536
4537 \end_inset
4538
4539  and 
4540 \begin_inset Flex Code
4541 status collapsed
4542
4543 \begin_layout Plain Layout
4544
4545 \backslash
4546 renewcommand{
4547 \backslash
4548 footrulewidth}{0.4pt}
4549 \end_layout
4550
4551 \end_inset
4552
4553  to set the thicknesses.
4554 \end_layout
4555
4556 \begin_layout Standard
4557 You can switch the header/footer settings on and off for individual pages
4558  using commands like 
4559 \begin_inset Flex Code
4560 status collapsed
4561
4562 \begin_layout Plain Layout
4563
4564 \backslash
4565 thispagestyle{empty}
4566 \end_layout
4567
4568 \end_inset
4569
4570
4571 \begin_inset Flex Code
4572 status collapsed
4573
4574 \begin_layout Plain Layout
4575
4576 \backslash
4577 thispagestyle{plain}
4578 \end_layout
4579
4580 \end_inset
4581
4582 , and 
4583 \begin_inset Flex Code
4584 status collapsed
4585
4586 \begin_layout Plain Layout
4587
4588 \backslash
4589 thispagestyle{fancy}
4590 \end_layout
4591
4592 \end_inset
4593
4594 .
4595  Simply insert them in the text on the page you want changed and mark them
4596  as \SpecialChar TeX
4597  code.
4598  In fact, title pages are marked as plain by default, while following pages
4599  are marked fancy when using the global fancy setting.
4600 \end_layout
4601
4602 \begin_layout Standard
4603 As a final example, it is possible to include an image in the header or
4604  footer.
4605  Suppose you want to put a company logo in the upper lefthand corner.
4606  You might try something like
4607 \end_layout
4608
4609 \begin_layout Standard
4610
4611 \family typewriter
4612
4613 \backslash
4614 lhead{
4615 \backslash
4616 resizebox{1in}{!}{
4617 \backslash
4618 includegraphics{logo.eps}}}
4619 \end_layout
4620
4621 \begin_layout Standard
4622 \noindent
4623 (you may need to preface this with 
4624 \begin_inset Flex Code
4625 status collapsed
4626
4627 \begin_layout Plain Layout
4628 \noindent
4629
4630 \backslash
4631 usepackage{graphics}
4632 \end_layout
4633
4634 \end_inset
4635
4636  if you don't include graphics elsewhere in your document).
4637 \end_layout
4638
4639 \begin_layout Section
4640 Itemize Bullet Selection
4641 \begin_inset CommandInset label
4642 LatexCommand label
4643 name "sec:bullet"
4644
4645 \end_inset
4646
4647
4648 \end_layout
4649
4650 \begin_layout Standard
4651 by
4652 \noun on
4653  Allan Rae
4654 \end_layout
4655
4656 \begin_layout Subsection
4657 Introduction
4658 \end_layout
4659
4660 \begin_layout Standard
4661 \SpecialChar LyX
4662  provides 216 bullet shapes that can be accessed from a simple dialog.
4663  Using this dialog you can easily specify what bullet shape to use at each
4664  level of an itemized list.
4665  These settings are document-wide so you won't be able to specify different
4666  sets of bullets for different paragraphs.
4667 \begin_inset Foot
4668 status collapsed
4669
4670 \begin_layout Plain Layout
4671 Well, actually you can but you'll have to do it by hand.
4672 \end_layout
4673
4674 \end_inset
4675
4676
4677 \end_layout
4678
4679 \begin_layout Subsection
4680 How it looks
4681 \end_layout
4682
4683 \begin_layout Standard
4684 Open the dialog by selecting the 
4685 \begin_inset Flex Noun
4686 status collapsed
4687
4688 \begin_layout Plain Layout
4689 Document\SpecialChar menuseparator
4690 Settings
4691 \end_layout
4692
4693 \end_inset
4694
4695  menu item and then select the 
4696 \begin_inset Flex Noun
4697 status collapsed
4698
4699 \begin_layout Plain Layout
4700 Bullets
4701 \end_layout
4702
4703 \end_inset
4704
4705  tab.
4706 \end_layout
4707
4708 \begin_layout Standard
4709 The dialog provides you with a table of bullet shapes.
4710  A column of buttons on the left of the table provides access to the six
4711  different panels of bullet shapes.
4712  The row of buttons across the top is used to select which bullet depth
4713  you are changing.
4714  A text entry under the table shows the currently selected bullet shape's
4715  \SpecialChar LaTeX
4716  equivalent and this can be edited if desired.
4717  If you do modify the text you will also need to specify any needed packages
4718  in the \SpecialChar LaTeX
4719  preamble.
4720 \end_layout
4721
4722 \begin_layout Standard
4723 The six panels are divided up by the packages they require.
4724  The following table shows the mappings from button name to \SpecialChar LaTeX
4725  package.
4726 \end_layout
4727
4728 \begin_layout Standard
4729 \align center
4730 \begin_inset Tabular
4731 <lyxtabular version="3" rows="7" columns="2">
4732 <features tabularvalignment="middle">
4733 <column alignment="center" valignment="top" width="0pt">
4734 <column alignment="center" valignment="top" width="0pt">
4735 <row>
4736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4737 \begin_inset Text
4738
4739 \begin_layout Plain Layout
4740
4741 \family roman
4742 \series medium
4743 \shape up
4744 \size normal
4745 \emph off
4746 \bar no
4747 \noun off
4748 \color none
4749 Button
4750 \end_layout
4751
4752 \end_inset
4753 </cell>
4754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4755 \begin_inset Text
4756
4757 \begin_layout Plain Layout
4758
4759 \family roman
4760 \series medium
4761 \shape up
4762 \size normal
4763 \emph off
4764 \bar no
4765 \noun off
4766 \color none
4767 Packages Required
4768 \end_layout
4769
4770 \end_inset
4771 </cell>
4772 </row>
4773 <row>
4774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4775 \begin_inset Text
4776
4777 \begin_layout Plain Layout
4778
4779 \family sans
4780 \series medium
4781 \shape up
4782 \size normal
4783 \emph off
4784 \bar no
4785 \noun off
4786 \color none
4787 Standard
4788 \end_layout
4789
4790 \end_inset
4791 </cell>
4792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4793 \begin_inset Text
4794
4795 \begin_layout Plain Layout
4796
4797 \series medium
4798 \shape up
4799 \size normal
4800 \emph off
4801 \bar no
4802 \noun off
4803 \color none
4804 base \SpecialChar LaTeX
4805
4806 \end_layout
4807
4808 \end_inset
4809 </cell>
4810 </row>
4811 <row>
4812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4813 \begin_inset Text
4814
4815 \begin_layout Plain Layout
4816
4817 \family sans
4818 \series medium
4819 \shape up
4820 \size normal
4821 \emph off
4822 \bar no
4823 \noun off
4824 \color none
4825 Maths
4826 \end_layout
4827
4828 \end_inset
4829 </cell>
4830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4831 \begin_inset Text
4832
4833 \begin_layout Plain Layout
4834
4835 \family typewriter
4836 \series medium
4837 \shape up
4838 \size normal
4839 \emph off
4840 \bar no
4841 \noun off
4842 \color none
4843 amssymb.sty
4844 \end_layout
4845
4846 \end_inset
4847 </cell>
4848 </row>
4849 <row>
4850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4851 \begin_inset Text
4852
4853 \begin_layout Plain Layout
4854
4855 \family sans
4856 \series medium
4857 \shape up
4858 \size normal
4859 \emph off
4860 \bar no
4861 \noun off
4862 \color none
4863 Ding1
4864 \end_layout
4865
4866 \end_inset
4867 </cell>
4868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4869 \begin_inset Text
4870
4871 \begin_layout Plain Layout
4872
4873 \family typewriter
4874 \series medium
4875 \shape up
4876 \size normal
4877 \emph off
4878 \bar no
4879 \noun off
4880 \color none
4881 pifont.sty
4882 \end_layout
4883
4884 \end_inset
4885 </cell>
4886 </row>
4887 <row>
4888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4889 \begin_inset Text
4890
4891 \begin_layout Plain Layout
4892
4893 \family sans
4894 \series medium
4895 \shape up
4896 \size normal
4897 \emph off
4898 \bar no
4899 \noun off
4900 \color none
4901 Ding2
4902 \end_layout
4903
4904 \end_inset
4905 </cell>
4906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4907 \begin_inset Text
4908
4909 \begin_layout Plain Layout
4910
4911 \family typewriter
4912 \series medium
4913 \shape up
4914 \size normal
4915 \emph off
4916 \bar no
4917 \noun off
4918 \color none
4919 pifont.sty
4920 \end_layout
4921
4922 \end_inset
4923 </cell>
4924 </row>
4925 <row>
4926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4927 \begin_inset Text
4928
4929 \begin_layout Plain Layout
4930
4931 \family sans
4932 \series medium
4933 \shape up
4934 \size normal
4935 \emph off
4936 \bar no
4937 \noun off
4938 \color none
4939 Ding3
4940 \end_layout
4941
4942 \end_inset
4943 </cell>
4944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4945 \begin_inset Text
4946
4947 \begin_layout Plain Layout
4948
4949 \family typewriter
4950 \series medium
4951 \shape up
4952 \size normal
4953 \emph off
4954 \bar no
4955 \noun off
4956 \color none
4957 pifont.sty
4958 \end_layout
4959
4960 \end_inset
4961 </cell>
4962 </row>
4963 <row>
4964 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4965 \begin_inset Text
4966
4967 \begin_layout Plain Layout
4968
4969 \family sans
4970 \series medium
4971 \shape up
4972 \size normal
4973 \emph off
4974 \bar no
4975 \noun off
4976 \color none
4977 Ding4
4978 \end_layout
4979
4980 \end_inset
4981 </cell>
4982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4983 \begin_inset Text
4984
4985 \begin_layout Plain Layout
4986
4987 \family typewriter
4988 \series medium
4989 \shape up
4990 \size normal
4991 \emph off
4992 \bar no
4993 \noun off
4994 \color none
4995 pifont.sty
4996 \end_layout
4997
4998 \end_inset
4999 </cell>
5000 </row>
5001 </lyxtabular>
5002
5003 \end_inset
5004
5005
5006 \end_layout
5007
5008 \begin_layout Standard
5009 \SpecialChar LyX
5010  doesn't stop you using bullets from packages you don't have.
5011  If you get errors from \SpecialChar LaTeX
5012  when you try to view or print the file, then it
5013  is likely you are missing a package.
5014 \begin_inset Foot
5015 status collapsed
5016
5017 \begin_layout Plain Layout
5018 \SpecialChar LyX
5019  doesn't restrict your use since you may be editing locally and exporting
5020  elsewhere.
5021 \end_layout
5022
5023 \end_inset
5024
5025
5026 \end_layout
5027
5028 \begin_layout Subsection
5029 How to use it
5030 \end_layout
5031
5032 \begin_layout Standard
5033 Select which bullet depth you want to change then select the bullet shape
5034  and size.
5035  Any changes will not be visible in \SpecialChar LyX
5036 , but are visible when viewing the document.
5037 \end_layout
5038
5039 \begin_layout Standard
5040 You can reset a bullet shape to the default simply by clicking your right
5041  mouse button on the appropriate bullet depth button.
5042 \begin_inset Foot
5043 status collapsed
5044
5045 \begin_layout Plain Layout
5046 If you 
5047 \emph on
5048 really
5049 \emph default
5050  want to have multiple sets of paragraphs with different sets of bullets
5051  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
5052  code.
5053  The bullet selection dialog can help though because it provides you with
5054  the \SpecialChar LaTeX
5055  code for a wide range of bullet shapes.
5056  To make your own custom paragraphs you have the following options:
5057 \end_layout
5058
5059 \begin_layout Plain Layout
5060 \begin_inset ERT
5061 status open
5062
5063 \begin_layout Plain Layout
5064
5065
5066 \backslash
5067 let
5068 \backslash
5069 savelabelitemi=
5070 \backslash
5071 labelitemi
5072 \end_layout
5073
5074 \end_inset
5075
5076
5077 \end_layout
5078
5079 \begin_layout Plain Layout
5080 \begin_inset ERT
5081 status open
5082
5083 \begin_layout Plain Layout
5084
5085
5086 \backslash
5087 renewcommand
5088 \backslash
5089 labelitemi[0]{
5090 \backslash
5091 small
5092 \backslash
5093 (
5094 \backslash
5095 sharp
5096 \backslash
5097 )}
5098 \end_layout
5099
5100 \end_inset
5101
5102
5103 \end_layout
5104
5105 \begin_layout Itemize
5106 Use the \SpecialChar LaTeX
5107  command 
5108 \begin_inset Flex Code
5109 status collapsed
5110
5111 \begin_layout Plain Layout
5112
5113 \backslash
5114 renewcommand{}{}
5115 \end_layout
5116
5117 \end_inset
5118
5119  to specify a new bullet shape for a given depth.
5120  You'll also need to save the current bullet shape so you can restore it
5121  again afterwards.
5122  In this itemized list the following \SpecialChar LaTeX
5123  code was used to change the bullet
5124  used for the first depth.
5125 \end_layout
5126
5127 \begin_deeper
5128 \begin_layout LyX-Code
5129
5130 \backslash
5131 let
5132 \backslash
5133 savelabelitemi=
5134 \backslash
5135 labelitemi 
5136 \end_layout
5137
5138 \begin_layout LyX-Code
5139
5140 \backslash
5141 renewcommand
5142 \backslash
5143 labelitemi[0]{
5144 \backslash
5145 small
5146 \backslash
5147 (
5148 \backslash
5149 sharp
5150 \backslash
5151 )}
5152 \end_layout
5153
5154 \end_deeper
5155 \begin_layout Itemize
5156 Note that the itemize depth is specified in Roman numerals as part of the
5157  
5158 \family typewriter
5159
5160 \backslash
5161 labelitem
5162 \family default
5163  command.
5164 \end_layout
5165
5166 \begin_layout Itemize
5167 \begin_inset ERT
5168 status open
5169
5170 \begin_layout Plain Layout
5171
5172 [
5173 \backslash
5174 (
5175 \backslash
5176 star
5177 \backslash
5178 )]
5179 \end_layout
5180
5181 \end_inset
5182
5183  Specify each individual entry by starting each item with the bullet shape
5184  enclosed in square brackets and set as 
5185 \begin_inset Flex Noun
5186 status collapsed
5187
5188 \begin_layout Plain Layout
5189 \SpecialChar TeX
5190  Code
5191 \end_layout
5192
5193 \end_inset
5194
5195 .
5196  For example, this item was started with 
5197 \begin_inset Flex Code
5198 status collapsed
5199
5200 \begin_layout Plain Layout
5201 [
5202 \backslash
5203 (
5204 \backslash
5205 star
5206 \backslash
5207 )]
5208 \end_layout
5209
5210 \end_inset
5211
5212 .
5213 \end_layout
5214
5215 \begin_layout Plain Layout
5216 \begin_inset ERT
5217 status open
5218
5219 \begin_layout Plain Layout
5220
5221
5222 \backslash
5223 renewcommand
5224 \backslash
5225 labelitemi[0]{
5226 \backslash
5227 savelabelitemi}
5228 \end_layout
5229
5230 \end_inset
5231
5232
5233 \end_layout
5234
5235 \begin_layout Plain Layout
5236 You'll also need to revert the labelitem back to its previous setting for
5237  the global bullet shape settings to remain in effect.
5238  The way used here was:
5239 \end_layout
5240
5241 \begin_layout LyX-Code
5242
5243 \backslash
5244 renewcommand
5245 \backslash
5246 labelitemi[0]{
5247 \backslash
5248 savelabelitemi}
5249 \end_layout
5250
5251 \end_inset
5252
5253
5254 \end_layout
5255
5256 \begin_layout Chapter
5257 \SpecialChar LyX
5258  and the World Wide Web
5259 \end_layout
5260
5261 \begin_layout Standard
5262 \SpecialChar LyX
5263  has long supported the export of documents to various web-friendly formats,
5264  such as HTML.
5265  Before verson 2.0, however, HTML export was always accomplished by the use
5266  of external converters.
5267 \begin_inset Foot
5268 status collapsed
5269
5270 \begin_layout Plain Layout
5271 For details on the use of external converters with \SpecialChar LyX
5272 , see the 
5273 \emph on
5274 Converters
5275 \emph default
5276  section of the Customization manual.
5277 \end_layout
5278
5279 \end_inset
5280
5281  These fall into two large groups: there are converters that use \SpecialChar LaTeX
5282  as an
5283  intermediate format, such as 
5284 \begin_inset Flex Code
5285 status collapsed
5286
5287 \begin_layout Plain Layout
5288 htlatex
5289 \end_layout
5290
5291 \end_inset
5292
5293
5294 \begin_inset Flex Code
5295 status collapsed
5296
5297 \begin_layout Plain Layout
5298 html2latex
5299 \end_layout
5300
5301 \end_inset
5302
5303 , and 
5304 \begin_inset Flex Code
5305 status collapsed
5306
5307 \begin_layout Plain Layout
5308 plastex
5309 \end_layout
5310
5311 \end_inset
5312
5313 , relying upon \SpecialChar LyX
5314  to produce the \SpecialChar LaTeX
5315 ; and there is a converter that works directly
5316  on \SpecialChar LyX
5317  files, 
5318 \begin_inset Flex Code
5319 status collapsed
5320
5321 \begin_layout Plain Layout
5322 e\SpecialChar LyX
5323 er
5324 \end_layout
5325
5326 \end_inset
5327
5328 .
5329  All of these have different advantages and disadvantages.
5330  
5331 \end_layout
5332
5333 \begin_layout Standard
5334 The \SpecialChar LaTeX
5335 -based converters have the advantage that, in principle, they know everythin
5336 g about the exported document that \SpecialChar LaTeX
5337  does.
5338  Such converters do not care, for example, if a certain block of code was
5339  produced by \SpecialChar LyX
5340  or was Evil Red Text.
5341  These converters know about 
5342 \begin_inset Flex Code
5343 status collapsed
5344
5345 \begin_layout Plain Layout
5346 aux
5347 \end_layout
5348
5349 \end_inset
5350
5351  files, counters, and references, and can often make use of the 
5352 \begin_inset Flex Code
5353 status collapsed
5354
5355 \begin_layout Plain Layout
5356 bbl
5357 \end_layout
5358
5359 \end_inset
5360
5361  files generated by Bib\SpecialChar TeX
5362 .
5363  On the other hand, \SpecialChar LaTeX
5364  is a very hard language to parse—it is sometimes said
5365  that only \SpecialChar TeX
5366  itself understands \SpecialChar TeX
5367 —and \SpecialChar LaTeX
5368 -based converters will often choke on
5369  what seem to be quite simple constructs; complex ones can throw them completely
5370 , and as of this writing, for example, the 
5371 \emph on
5372 Embedded Objects
5373 \emph default
5374  manual will not export with 
5375 \begin_inset Flex Code
5376 status collapsed
5377
5378 \begin_layout Plain Layout
5379 htlatex
5380 \end_layout
5381
5382 \end_inset
5383
5384 , though the others will.
5385  The other issue concerns how math is handled.
5386  These converters typically convert the formulae into little pictures that
5387  are then linked from the HTML document.
5388  Since these are actually generated by \SpecialChar LaTeX
5389 , they are accurate.
5390  But they do not scale well, and just getting them to look as if they are
5391  actually meant to be in your document—so that the font sizes seem to be
5392  roughly the same—can be a challenge.
5393 \end_layout
5394
5395 \begin_layout Standard
5396 Alex Fernandez's 
5397 \begin_inset Flex Code
5398 status collapsed
5399
5400 \begin_layout Plain Layout
5401 e\SpecialChar LyX
5402 er
5403 \end_layout
5404
5405 \end_inset
5406
5407  (
5408 \begin_inset CommandInset href
5409 LatexCommand href
5410 name "http://elyxer.nongnu.org/"
5411 target "http://elyxer.nongnu.org/"
5412 literal "false"
5413
5414 \end_inset
5415
5416 ) solves some of these problems.
5417  In particular, the formulae it produces scale perfectly, since it renders
5418  math using a combination of HTML and CSS rather than converting the formulae
5419  to images.
5420  But even moderately complex formula are rendered less well than with 
5421 \begin_inset Flex Code
5422 status collapsed
5423
5424 \begin_layout Plain Layout
5425 htlatex
5426 \end_layout
5427
5428 \end_inset
5429
5430 ; this reflects the limitations of HTML.
5431 \begin_inset Foot
5432 status collapsed
5433
5434 \begin_layout Plain Layout
5435 That said, 
5436 \begin_inset Flex Code
5437 status collapsed
5438
5439 \begin_layout Plain Layout
5440 e\SpecialChar LyX
5441 er
5442 \end_layout
5443
5444 \end_inset
5445
5446  can also use jsMath and MathJax for equations, but this setting is only
5447  available globally and requires one to have access to a server that runs
5448  the backend.
5449 \end_layout
5450
5451 \end_inset
5452
5453  More importantly (as of version 1.1.1, at least), 
5454 \begin_inset Flex Code
5455 status collapsed
5456
5457 \begin_layout Plain Layout
5458 e\SpecialChar LyX
5459 er
5460 \end_layout
5461
5462 \end_inset
5463
5464  has limited support for math macros and no support for user-defined paragraph
5465  or character styles.
5466  These limitations make 
5467 \begin_inset Flex Code
5468 status collapsed
5469
5470 \begin_layout Plain Layout
5471 e\SpecialChar LyX
5472 er
5473 \end_layout
5474
5475 \end_inset
5476
5477  unsuitable for many of the documents \SpecialChar LyX
5478  users produce.
5479  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5480  developers
5481  have decided to follow a different path and have made \SpecialChar LyX
5482  itself capable of
5483  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5484 , DocBook, and plaintext.
5485 \end_layout
5486
5487 \begin_layout Standard
5488 As of this writing, XHTML output remains under development and should probably
5489  be regarded as 
5490 \begin_inset Quotes eld
5491 \end_inset
5492
5493 experimental
5494 \begin_inset Quotes erd
5495 \end_inset
5496
5497 .
5498 \begin_inset Foot
5499 status collapsed
5500
5501 \begin_layout Plain Layout
5502 The file 
5503 \begin_inset Flex Code
5504 status collapsed
5505
5506 \begin_layout Plain Layout
5507 development/HTML.notes
5508 \end_layout
5509
5510 \end_inset
5511
5512 , which can be found in the \SpecialChar LyX
5513  source tree or 
5514 \begin_inset CommandInset href
5515 LatexCommand href
5516 name "accessed online"
5517 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5518 literal "false"
5519
5520 \end_inset
5521
5522 , usually contains up-to-date information about the state of XHTML output.
5523  See also the list of XHTML bugs on 
5524 \begin_inset CommandInset href
5525 LatexCommand href
5526 name "the bug tracker"
5527 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"
5528 literal "false"
5529
5530 \end_inset
5531
5532 .
5533 \end_layout
5534
5535 \end_inset
5536
5537  Still, the developers have chosen this approach because it has several
5538  potential advantages over the other two.
5539 \end_layout
5540
5541 \begin_layout Standard
5542 These advantages are primarily due to the fact that the XHTML output routines,
5543  since they are part of \SpecialChar LyX
5544 , know everything \SpecialChar LyX
5545  knows about the document being
5546  exported.
5547 \begin_inset Foot
5548 status collapsed
5549
5550 \begin_layout Plain Layout
5551 Another advantage is that, since these routines are internal to \SpecialChar LyX
5552 , they are
5553  immune to changes in \SpecialChar LyX
5554 's file format, or to changes in the semantics of
5555  existing insets.
5556 \end_layout
5557
5558 \end_inset
5559
5560  So they know about the table of contents (as displayed in the outline),
5561  about the counters associated with different paragraph styles, and about
5562  user-defined styles.
5563  The XHTML output routines know what \SpecialChar LyX
5564  knows about internationalization,
5565  too, so they will output 
5566 \begin_inset Quotes eld
5567 \end_inset
5568
5569 Chapter 1
5570 \begin_inset Quotes erd
5571 \end_inset
5572
5573  or 
5574 \begin_inset Quotes eld
5575 \end_inset
5576
5577
5578 \lang ngerman
5579 Kapitel
5580 \lang english
5581  1
5582 \begin_inset Quotes erd
5583 \end_inset
5584
5585 , depending upon the language in effect at the time.
5586  
5587 \end_layout
5588
5589 \begin_layout Standard
5590 Quite generally, the output routines know what \SpecialChar LyX
5591  knows about document layout,
5592  that is, about how the document is to be rendered on screen.
5593  We use this information when we output the document as XHTML.
5594  In particular, \SpecialChar LyX
5595  
5596 \emph on
5597 automatically
5598 \emph default
5599  generates CSS style information corresponding to the layout information
5600  it uses to render the document on screen: if section headings are supposed
5601  to be sans-serif and bold as seen in \SpecialChar LyX
5602 , then (by default) they will be sans-seri
5603 f and bold when viewed in a web browser, too.
5604  And this is true not just for pre-defined styles, like Section, but for
5605  any style, including user-defined styles.
5606  Indeed, the XHTML output routines make no distinction between user-defined
5607  paragraph and character styles and \SpecialChar LyX
5608 's own pre-defined styles: in each case,
5609  everything \SpecialChar LyX
5610  knows about the styles is contained in the layout files.
5611  And much the same is true as regards pre-defined textual insets, such as
5612  footnotes, and various custom insets.
5613  
5614 \end_layout
5615
5616 \begin_layout Standard
5617 The result is that XHTML output can be customized and extended in exactly
5618  the same way \SpecialChar LaTeX
5619  output can be customized and extended: through layout files
5620  and modules.
5621  See chapter five of the 
5622 \emph on
5623 Customization 
5624 \emph default
5625 manual for the details.
5626 \end_layout
5627
5628 \begin_layout Standard
5629 The remainder of this chapter contains more detailed information on XHTML
5630  output, its limitations, and ways to work around those limitations.
5631 \end_layout
5632
5633 \begin_layout Section
5634 Math Output in XHTML
5635 \end_layout
5636
5637 \begin_layout Standard
5638 \SpecialChar LyX
5639  offers four choices for how math is rendered.
5640  These have various advantages and disadvantages:
5641 \end_layout
5642
5643 \begin_layout Itemize
5644 MathML
5645 \begin_inset Newline newline
5646 \end_inset
5647
5648 MathML is a dialect of XML designed specifically for mathematics on the
5649  web, and it typically renders very well in browsers that support it.
5650  The disadvantage is that not all browsers support MathML, and support is
5651  not complete even in the Gecko-based browsers, such as Firefox.
5652 \begin_inset Newline newline
5653 \end_inset
5654
5655 If \SpecialChar LyX
5656  is unable to render a formula as MathML—for example, if the formula
5657  uses the 
5658 \begin_inset Flex Code
5659 status collapsed
5660
5661 \begin_layout Plain Layout
5662 xymatrix
5663 \end_layout
5664
5665 \end_inset
5666
5667  package or ERT—then it will instead output the formula as an image.
5668  
5669 \end_layout
5670
5671 \begin_layout Itemize
5672 HTML
5673 \begin_inset Newline newline
5674 \end_inset
5675
5676 As mentioned above, 
5677 \begin_inset Flex Code
5678 status collapsed
5679
5680 \begin_layout Plain Layout
5681 elyxer
5682 \end_layout
5683
5684 \end_inset
5685
5686  outputs math as HTML, styled by CSS.
5687 \begin_inset Foot
5688 status collapsed
5689
5690 \begin_layout Plain Layout
5691 \SpecialChar LyX
5692  has borrowed some of the CSS for its HTML output from 
5693 \begin_inset Flex Code
5694 status collapsed
5695
5696 \begin_layout Plain Layout
5697 elyxer
5698 \end_layout
5699
5700 \end_inset
5701
5702 .
5703 \end_layout
5704
5705 \end_inset
5706
5707  For simple formulae, this can work quite well, though with more complicated
5708  formulae it tends to break down.
5709  Still, this method has the advantage that it is very widely supported and
5710  so it may be appropriate for documents that contain only a little, fairly
5711  simple math.
5712 \begin_inset Newline newline
5713 \end_inset
5714
5715 If Lyx is unable to render a formula as HTML—for example, if the formula
5716  uses the 
5717 \begin_inset Flex Code
5718 status collapsed
5719
5720 \begin_layout Plain Layout
5721 xymatrix
5722 \end_layout
5723
5724 \end_inset
5725
5726  package or ERT—then it will instead output the formula as an image.
5727  
5728 \end_layout
5729
5730 \begin_layout Itemize
5731 Images
5732 \begin_inset Newline newline
5733 \end_inset
5734
5735 Like 
5736 \begin_inset Flex Code
5737 status collapsed
5738
5739 \begin_layout Plain Layout
5740 htlatex
5741 \end_layout
5742
5743 \end_inset
5744
5745 , \SpecialChar LyX
5746  will output formulae as images, the very same images, in fact, that are
5747  used for instant preview.
5748 \begin_inset Foot
5749 status collapsed
5750
5751 \begin_layout Plain Layout
5752 Instant preview does 
5753 \emph on
5754 not 
5755 \emph default
5756 have to be on for images to be output, however.
5757 \end_layout
5758
5759 \end_inset
5760
5761  The advantage to this method is that the images are simply generated by
5762  \SpecialChar LaTeX
5763 , so they are very accurate.
5764  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5765  so they do not scale terribly well, and one cannot copy them, etc.
5766  (As of this writing, there are also problems about equation numbering.
5767  See 
5768 \begin_inset CommandInset href
5769 LatexCommand href
5770 name "bug 6894"
5771 target "http://www.lyx.org/trac/ticket/6894"
5772 literal "false"
5773
5774 \end_inset
5775
5776 .)
5777 \begin_inset Newline newline
5778 \end_inset
5779
5780 The size of the images can be controlled by setting the 
5781 \begin_inset Quotes eld
5782 \end_inset
5783
5784 Math Images Scaling
5785 \begin_inset Quotes erd
5786 \end_inset
5787
5788  parameter under 
5789 \begin_inset Flex Noun
5790 status collapsed
5791
5792 \begin_layout Plain Layout
5793 Document\SpecialChar menuseparator
5794 Settings\SpecialChar menuseparator
5795 Output
5796 \end_layout
5797
5798 \end_inset
5799
5800 .
5801 \begin_inset Foot
5802 status collapsed
5803
5804 \begin_layout Plain Layout
5805 For those who want to know, this controls the resolution of the image in
5806  dots per inch and is based upon a default of 75 dpi.
5807 \end_layout
5808
5809 \end_inset
5810
5811
5812 \begin_inset Newline newline
5813 \end_inset
5814
5815 If \SpecialChar LyX
5816  for some reason fails to create an image for a formula (e.g., if a required
5817  \SpecialChar LaTeX
5818  package is not installed), then it will fall back to outputing the raw
5819  \SpecialChar LaTeX
5820 .
5821 \end_layout
5822
5823 \begin_layout Itemize
5824 \SpecialChar LaTeX
5825
5826 \begin_inset Newline newline
5827 \end_inset
5828
5829 Finally, \SpecialChar LyX
5830  will happily output math as \SpecialChar LaTeX
5831 .
5832  As well as being the output of last resort, this method can be used with
5833  such tools as 
5834 \begin_inset CommandInset href
5835 LatexCommand href
5836 name "jsMath"
5837 target "http://www.math.union.edu/~dpvc/jsMath/"
5838 literal "false"
5839
5840 \end_inset
5841
5842 , which uses JavaScript to render \SpecialChar LaTeX
5843  embedded in HTML documents.
5844  \SpecialChar LyX
5845  wraps the \SpecialChar LaTeX
5846  in either a 
5847 \begin_inset Flex Code
5848 status collapsed
5849
5850 \begin_layout Plain Layout
5851 span
5852 \end_layout
5853
5854 \end_inset
5855
5856  (for inline formulas) or 
5857 \begin_inset Flex Code
5858 status collapsed
5859
5860 \begin_layout Plain Layout
5861 div
5862 \end_layout
5863
5864 \end_inset
5865
5866  (for displayed formulas) with 
5867 \begin_inset Flex Code
5868 status collapsed
5869
5870 \begin_layout Plain Layout
5871 class='math'
5872 \end_layout
5873
5874 \end_inset
5875
5876 , as is required for jsMath.
5877 \end_layout
5878
5879 \begin_layout Standard
5880 One of these output methods must be selected under 
5881 \begin_inset Flex Noun
5882 status collapsed
5883
5884 \begin_layout Plain Layout
5885 Document\SpecialChar menuseparator
5886 Settings\SpecialChar menuseparator
5887 Output
5888 \end_layout
5889
5890 \end_inset
5891
5892 .
5893  By default, \SpecialChar LyX
5894  outputs MathML.
5895  This is a document-wide setting, therefore.
5896 \end_layout
5897
5898 \begin_layout Standard
5899 Eventually, \SpecialChar LyX
5900  will offer the user the option to select an alternate output
5901  method for a particular inset, say, one that isn't being rendered very
5902  well by MathML.
5903 \begin_inset Foot
5904 status collapsed
5905
5906 \begin_layout Plain Layout
5907 That said, since \SpecialChar LyX
5908  falls back to images if the inset contains ERT, then one
5909  can force output as an image by putting some harmless ERT into the math,
5910  for example: 
5911 \begin_inset Formula $a=b\relax$
5912 \end_inset
5913
5914 .
5915 \end_layout
5916
5917 \end_inset
5918
5919
5920 \end_layout
5921
5922 \begin_layout Section
5923 Bibliography and Citations
5924 \end_layout
5925
5926 \begin_layout Standard
5927 XHTML output fully supports bibliographies and citations.
5928  
5929 \end_layout
5930
5931 \begin_layout Standard
5932 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5933 's on-screen
5934  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5935 , though
5936  better.
5937  If you are using numerical citations, then \SpecialChar LyX
5938  will output numerical labels,
5939  such as [1] or [17], rather than simply showing the citation key in square
5940  brackets, as it does on-screen.
5941  If you are using author-year citations, then \SpecialChar LyX
5942  will add lowercase letters
5943  to the years, just as Bib\SpecialChar TeX
5944  does, if it finds more than one citation for
5945  a given author-year combination.
5946  The labels will be printed with the bibliography entries.
5947  Note that there is, at present, no way to customize the appearance of the
5948  labels, for example, to choose between square brackets and parentheses.
5949 \end_layout
5950
5951 \begin_layout Standard
5952 Bibliography output is handled by the same machinery that handles the presentati
5953 on of reference information in the citation dialog, so you will see in the
5954  XHTML output pretty much what you would see if you were to look at a given
5955  entry in the citation dialog.
5956  The formatting can be customized in your layout file or, preferably, in
5957  a module.
5958  See the 
5959 \emph on
5960 Customization
5961 \emph default
5962  manual for the details.
5963 \end_layout
5964
5965 \begin_layout Standard
5966 The main defect at present is that cross-referenced information is printed
5967  with every entry with which it is associated.
5968  So you can see things like this:
5969 \end_layout
5970
5971 \begin_layout Quote
5972 Jason Stanley, 
5973 \begin_inset Quotes eld
5974 \end_inset
5975
5976 Context and Logical Form
5977 \begin_inset Quotes erd
5978 \end_inset
5979
5980 , in 
5981 \emph on
5982 Language in Context: Selected Essays
5983 \emph default
5984  (Oxford: Oxford University Press, 2007), pp.
5985  30–68.
5986 \end_layout
5987
5988 \begin_layout Quote
5989 Jason Stanley, 
5990 \begin_inset Quotes eld
5991 \end_inset
5992
5993 Semantics in Context
5994 \begin_inset Quotes erd
5995 \end_inset
5996
5997 , in 
5998 \emph on
5999 Language in Context: Selected Essays
6000 \emph default
6001  (Oxford: Oxford University Press, 2007), pp.
6002  201–30.
6003 \end_layout
6004
6005 \begin_layout Standard
6006 This should be fixed before long.
6007 \end_layout
6008
6009 \begin_layout Standard
6010 There is no support at present for sectioned bibliographies.
6011  If you have multiple bibliographies, then \SpecialChar LyX
6012  will print the same bibliography
6013  over and over.
6014 \end_layout
6015
6016 \begin_layout Section
6017 Indexes
6018 \end_layout
6019
6020 \begin_layout Standard
6021 \SpecialChar LyX
6022  will happily export indexes as XHTML, but with certain limitations at the
6023  moment.
6024 \end_layout
6025
6026 \begin_layout Standard
6027 Index export will be most reliable when you do not attempt to use the fancy
6028  constructs that are described in the section on indexes in the 
6029 \emph on
6030 User's Guide
6031 \emph default
6032 .
6033 \begin_inset Foot
6034 status collapsed
6035
6036 \begin_layout Plain Layout
6037 The main issue here is that \SpecialChar LyX
6038  itself does not really handle these.
6039  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
6040 .
6041 \end_layout
6042
6043 \end_inset
6044
6045  We'll describe how they are handled using the subsection headings from
6046  that section.
6047 \end_layout
6048
6049 \begin_layout Itemize
6050 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
6051  makes an effort to support these,
6052  but the entries must be separated by 
6053 \begin_inset Quotes eld
6054 \end_inset
6055
6056  ! 
6057 \begin_inset Quotes erd
6058 \end_inset
6059
6060 , that is, there must be spaces around the exclamation point.
6061  This is because it is otherwise too difficult to check for escaped exclamation
6062  points, ones in math, and so forth.
6063 \end_layout
6064
6065 \begin_layout Itemize
6066 Page Ranges: There is no support at all for page ranges, since these make
6067  no sense with XHMTL.
6068  Instead, you will just get two index entries, one at either end.
6069 \end_layout
6070
6071 \begin_layout Itemize
6072 Cross-referencing: There is no support for cross-referencing.
6073  If \SpecialChar LyX
6074  finds an entry containing the 
6075 \begin_inset Quotes eld
6076 \end_inset
6077
6078 |see\SpecialChar ldots
6079
6080 \begin_inset Quotes erd
6081 \end_inset
6082
6083  construct, it is just dropped, and the rest is treated as an ordinary index
6084  entry.
6085 \end_layout
6086
6087 \begin_layout Itemize
6088 Index Entry Order: \SpecialChar LyX
6089  does support attempts to fix the sorting order.
6090  It will take what is before the first `@' it finds and use that for sorting,
6091  taking what follows the first `@' to be the actual entry.
6092  At present, \SpecialChar LyX
6093  does not check for escaped `@', so do not try to index email
6094  addresses.
6095 \end_layout
6096
6097 \begin_layout Itemize
6098 Index Entry Layout: You can format entries by using the text style dialog,
6099  or by using any other method available within \SpecialChar LyX
6100  itself.
6101  There is no support for constructs like: 
6102 \begin_inset Quotes eld
6103 \end_inset
6104
6105 entry|textbf
6106 \begin_inset Quotes erd
6107 \end_inset
6108
6109 .
6110  Indeed, if \SpecialChar LyX
6111  finds a pipe symbol, `|', in an entry, it will delete it and
6112  everything that follows it.
6113 \end_layout
6114
6115 \begin_layout Itemize
6116 Multiple Indexes: There is no support for multiple indexes.
6117  Rather, all index entries will be printed as one large index.
6118  To avoid our printing several versions of the index, we print only the
6119  main index, so make sure you have one.
6120 \end_layout
6121
6122 \begin_layout Section
6123 Nomenclature and Glossary
6124 \end_layout
6125
6126 \begin_layout Standard
6127 There is at present no support for glossaries.
6128  Adding it would be fairly trivial, and welcome.
6129 \end_layout
6130
6131 \begin_layout Chapter
6132 The \SpecialChar LyX
6133  Server
6134 \end_layout
6135
6136 \begin_layout Section
6137 Introduction
6138 \end_layout
6139
6140 \begin_layout Standard
6141 The `\SpecialChar LyX
6142  server' allows other programs to talk to \SpecialChar LyX
6143 , invoke \SpecialChar LyX
6144  commands, and retrieve
6145  information about the \SpecialChar LyX
6146  internal state.
6147  This is only intended for advanced users, but they should find it useful.
6148  It is by writing to the \SpecialChar LyX
6149  server, for example, that bibliography managers,
6150  such as JabRef, are able to 
6151 \begin_inset Quotes eld
6152 \end_inset
6153
6154 push
6155 \begin_inset Quotes erd
6156 \end_inset
6157
6158  citations to \SpecialChar LyX
6159 .
6160 \end_layout
6161
6162 \begin_layout Section
6163 Starting the \SpecialChar LyX
6164  Server
6165 \end_layout
6166
6167 \begin_layout Standard
6168 The \SpecialChar LyX
6169  server works through the use of a pair of named pipes.
6170  These are usually located in 
6171 \begin_inset Flex Code
6172 status collapsed
6173
6174 \begin_layout Plain Layout
6175 UserDir
6176 \end_layout
6177
6178 \end_inset
6179
6180 , (except on Windows, where 
6181 \emph on
6182 local
6183 \emph default
6184  named pipes are special objects located in 
6185 \begin_inset Flex Code
6186 status collapsed
6187
6188 \begin_layout Plain Layout
6189
6190 \backslash
6191
6192 \backslash
6193 .
6194 \backslash
6195 pipe
6196 \end_layout
6197
6198 \end_inset
6199
6200 ) and have the names 
6201 \begin_inset Quotes eld
6202 \end_inset
6203
6204
6205 \begin_inset Flex Code
6206 status collapsed
6207
6208 \begin_layout Plain Layout
6209 lyxpipe.in
6210 \end_layout
6211
6212 \end_inset
6213
6214
6215 \begin_inset Quotes erd
6216 \end_inset
6217
6218  and 
6219 \begin_inset Quotes eld
6220 \end_inset
6221
6222
6223 \begin_inset Flex Code
6224 status collapsed
6225
6226 \begin_layout Plain Layout
6227 lyxpipe.out
6228 \end_layout
6229
6230 \end_inset
6231
6232
6233 \begin_inset Quotes erd
6234 \end_inset
6235
6236 .
6237  External programs write into 
6238 \begin_inset Flex Code
6239 status collapsed
6240
6241 \begin_layout Plain Layout
6242 lyxpipe.in
6243 \end_layout
6244
6245 \end_inset
6246
6247  and read back data from 
6248 \begin_inset Flex Code
6249 status collapsed
6250
6251 \begin_layout Plain Layout
6252 lyxpipe.out
6253 \end_layout
6254
6255 \end_inset
6256
6257 .
6258  The stem of the pipe names can be defined in the 
6259 \begin_inset Flex Noun
6260 status collapsed
6261
6262 \begin_layout Plain Layout
6263 Tools\SpecialChar menuseparator
6264 Preferences
6265 \end_layout
6266
6267 \end_inset
6268
6269  dialog, for example 
6270 \begin_inset Flex Code
6271 status collapsed
6272
6273 \begin_layout Plain Layout
6274 "/home/myhome/lyxpipe"
6275 \end_layout
6276
6277 \end_inset
6278
6279 , or 
6280 \begin_inset Flex Code
6281 status collapsed
6282
6283 \begin_layout Plain Layout
6284 "
6285 \backslash
6286
6287 \backslash
6288 .
6289 \backslash
6290 pipe
6291 \backslash
6292 lyxpipe"
6293 \end_layout
6294
6295 \end_inset
6296
6297  on Windows (where any working path instead of lyxpipe can be used, for
6298  example 
6299 \begin_inset Flex Code
6300 status collapsed
6301
6302 \begin_layout Plain Layout
6303 "
6304 \backslash
6305
6306 \backslash
6307 .
6308 \backslash
6309 pipe
6310 \backslash
6311 my
6312 \backslash
6313 lyx
6314 \backslash
6315 pipe"
6316 \end_layout
6317
6318 \end_inset
6319
6320  would also work).
6321  You 
6322 \emph on
6323 must
6324 \emph default
6325  configure this manually in order for the server to start.
6326 \end_layout
6327
6328 \begin_layout Standard
6329 \SpecialChar LyX
6330  will add the '
6331 \begin_inset Flex Code
6332 status collapsed
6333
6334 \begin_layout Plain Layout
6335 .in
6336 \end_layout
6337
6338 \end_inset
6339
6340 ' and '
6341 \begin_inset Flex Code
6342 status collapsed
6343
6344 \begin_layout Plain Layout
6345 .out
6346 \end_layout
6347
6348 \end_inset
6349
6350 ' to create the pipes.
6351  If one of the pipes already exists, \SpecialChar LyX
6352  will assume that another \SpecialChar LyX
6353  process
6354  is already running and will not start the server.
6355  On POSIX (Unix like) systems, if for some other reason, an unused 
6356 \begin_inset Quotes eld
6357 \end_inset
6358
6359 stale
6360 \begin_inset Quotes erd
6361 \end_inset
6362
6363  pipe is left in existence when \SpecialChar LyX
6364  closes, then \SpecialChar LyX
6365  will try to delete it.
6366  If this fails for some reason, you will need to delete the pipes manually
6367  and then restart \SpecialChar LyX
6368 .
6369  On Windows, pipes are deleted by the OS on program termination or crash,
6370  so 
6371 \begin_inset Quotes eld
6372 \end_inset
6373
6374 stale
6375 \begin_inset Quotes erd
6376 \end_inset
6377
6378  pipes should not be possible.
6379 \end_layout
6380
6381 \begin_layout Standard
6382 To have several \SpecialChar LyX
6383  processes with servers at the same time, you have to use
6384  different configurations, perhaps by using separate user directories, each
6385  with its own 
6386 \begin_inset Flex Code
6387 status collapsed
6388
6389 \begin_layout Plain Layout
6390 preferences
6391 \end_layout
6392
6393 \end_inset
6394
6395  file, for each process.
6396 \end_layout
6397
6398 \begin_layout Standard
6399 If you are developing a client program, you might find it useful to enable
6400  debugging information from the \SpecialChar LyX
6401  server.
6402  Do this by starting \SpecialChar LyX
6403  as 
6404 \begin_inset Flex Code
6405 status collapsed
6406
6407 \begin_layout Plain Layout
6408 lyx -dbg lyxserver
6409 \end_layout
6410
6411 \end_inset
6412
6413 .
6414 \end_layout
6415
6416 \begin_layout Standard
6417 You can find a complete example client written in C++ in the source distribution
6418  as 
6419 \begin_inset Flex Code
6420 status collapsed
6421
6422 \begin_layout Plain Layout
6423 development/lyxserver/server_monitor.cpp
6424 \end_layout
6425
6426 \end_inset
6427
6428 .
6429 \end_layout
6430
6431 \begin_layout Standard
6432 Another useful tool is the command-line based client found in 
6433 \begin_inset Flex Code
6434 status collapsed
6435
6436 \begin_layout Plain Layout
6437 src/client/lyxclient
6438 \end_layout
6439
6440 \end_inset
6441
6442 .
6443 \end_layout
6444
6445 \begin_layout Section
6446 Normal communication
6447 \end_layout
6448
6449 \begin_layout Standard
6450 To issue a \SpecialChar LyX
6451  call, the client writes a line of ASCII text into the input
6452  pipe.
6453  This line has the following format:
6454 \end_layout
6455
6456 \begin_layout Quote
6457 LYXCMD:
6458 \emph on
6459 clientname
6460 \emph default
6461 :
6462 \emph on
6463 function
6464 \emph default
6465 :
6466 \emph on
6467 argument
6468 \end_layout
6469
6470 \begin_layout Description
6471 clientname is a name that the client can choose arbitrarily.
6472  Its only use is that \SpecialChar LyX
6473  will echo it if it sends an answer—so a client can
6474  dispatch results from different requesters.
6475 \end_layout
6476
6477 \begin_layout Description
6478 function is the function you want \SpecialChar LyX
6479  to perform.
6480  It is the same as the commands you'd use in the minibuffer.
6481 \end_layout
6482
6483 \begin_layout Description
6484 argument is an optional argument which is meaningful only to some functions
6485  (for instance, the 
6486 \begin_inset Quotes eld
6487 \end_inset
6488
6489 self-insert
6490 \begin_inset Quotes erd
6491 \end_inset
6492
6493  LFUN will insert the argument as text at the cursor position).
6494 \end_layout
6495
6496 \begin_layout Standard
6497 The answer from \SpecialChar LyX
6498  will arrive in the output pipe and be of the form
6499 \end_layout
6500
6501 \begin_layout Quote
6502 INFO:
6503 \emph on
6504 clientname
6505 \emph default
6506 :
6507 \emph on
6508 function
6509 \emph default
6510 :
6511 \emph on
6512 data
6513 \end_layout
6514
6515 \begin_layout Standard
6516 where 
6517 \emph on
6518 clientname
6519 \emph default
6520  and 
6521 \emph on
6522 function
6523 \emph default
6524  are just echoed from the command request, while 
6525 \emph on
6526 data
6527 \emph default
6528  is more or less useful information filled according to how the command
6529  execution worked out.
6530  Some commands, such as 
6531 \begin_inset Quotes eld
6532 \end_inset
6533
6534 font-state
6535 \begin_inset Quotes erd
6536 \end_inset
6537
6538 , will return information about the internal state of \SpecialChar LyX
6539 , while other will
6540  return an empty data-response.
6541  This means that the command execution went fine.
6542 \end_layout
6543
6544 \begin_layout Standard
6545 In case of errors, the response from \SpecialChar LyX
6546  will have this form
6547 \end_layout
6548
6549 \begin_layout Quote
6550 ERROR:
6551 \emph on
6552 clientname
6553 \emph default
6554 :
6555 \emph on
6556 function
6557 \emph default
6558 :
6559 \emph on
6560 error message
6561 \end_layout
6562
6563 \begin_layout Standard
6564 where the 
6565 \emph on
6566 error message
6567 \emph default
6568  should contain an explanation of why the command failed.
6569 \end_layout
6570
6571 \begin_layout Standard
6572 Examples:
6573 \end_layout
6574
6575 \begin_layout LyX-Code
6576 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6577 \begin_inset Newline newline
6578 \end_inset
6579
6580 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6581 \begin_inset Newline newline
6582 \end_inset
6583
6584 read a <~/.lyxpipe.out
6585 \begin_inset Newline newline
6586 \end_inset
6587
6588 echo $a
6589 \end_layout
6590
6591 \begin_layout Subsection
6592 AppleScript (Mac OS X)
6593 \end_layout
6594
6595 \begin_layout Standard
6596 Since \SpecialChar LyX
6597  2.1, \SpecialChar LyX
6598  supports basic interactions with AppleScript for normal communicatio
6599 n through the command run.
6600  This command takes a direct argument (the 
6601 \series bold
6602 function
6603 \series default
6604  to perform) and an optional argument.
6605  It either returns the output of the function or triggers an error with
6606  the error message and code.
6607 \end_layout
6608
6609 \begin_layout Standard
6610 Example:
6611 \end_layout
6612
6613 \begin_layout LyX-Code
6614 tell application "\SpecialChar LyX
6615 "
6616 \end_layout
6617
6618 \begin_layout LyX-Code
6619   try
6620 \end_layout
6621
6622 \begin_layout LyX-Code
6623     -- Stores the current file name into f
6624 \end_layout
6625
6626 \begin_layout LyX-Code
6627     set f to (run "server-get-filename" with argument "")
6628 \end_layout
6629
6630 \begin_layout LyX-Code
6631     on error the error_message number the error_number
6632 \end_layout
6633
6634 \begin_layout LyX-Code
6635       display dialog "Error: " & the error_number & ".
6636  " ¬
6637 \end_layout
6638
6639 \begin_layout LyX-Code
6640               & the error_message buttons {"OK"} default button 1
6641 \end_layout
6642
6643 \begin_layout LyX-Code
6644   end try
6645 \end_layout
6646
6647 \begin_layout LyX-Code
6648 end tell
6649 \end_layout
6650
6651 \begin_layout Section
6652 Notification
6653 \end_layout
6654
6655 \begin_layout Standard
6656 \SpecialChar LyX
6657  can notify clients of events going on asynchronously.
6658  Currently it will only do this if the user binds a key sequence with the
6659  function 
6660 \begin_inset Quotes eld
6661 \end_inset
6662
6663 notify
6664 \begin_inset Quotes erd
6665 \end_inset
6666
6667 .
6668  The format of the string \SpecialChar LyX
6669  sends is as follows:
6670 \end_layout
6671
6672 \begin_layout Quote
6673 \begin_inset Flex Code
6674 status collapsed
6675
6676 \begin_layout Plain Layout
6677 NOTIFY:
6678 \end_layout
6679
6680 \end_inset
6681
6682
6683 \emph on
6684 key-sequence
6685 \end_layout
6686
6687 \begin_layout Standard
6688 where 
6689 \emph on
6690 key-sequence
6691 \emph default
6692  is the printed representation of the key sequence that was actually typed
6693  by the user.
6694 \end_layout
6695
6696 \begin_layout Standard
6697 This mechanism can be used to extend \SpecialChar LyX
6698 's command set and implement macros.
6699  Bind some key sequence to 
6700 \begin_inset Quotes eld
6701 \end_inset
6702
6703 notify
6704 \begin_inset Quotes erd
6705 \end_inset
6706
6707 .
6708  Then start a client that listens on the output pipe, dispatches the command
6709  according to the sequence, and starts a function that may use \SpecialChar LyX
6710  calls and
6711  \SpecialChar LyX
6712  requests to issue a command or a series of commands to \SpecialChar LyX
6713 .
6714 \end_layout
6715
6716 \begin_layout Section
6717 The simple \SpecialChar LyX
6718  Server Protocol
6719 \end_layout
6720
6721 \begin_layout Standard
6722 \SpecialChar LyX
6723  implements a simple protocol that can be used for session management.
6724  All messages are of the form
6725 \end_layout
6726
6727 \begin_layout Quote
6728 LYXSRV:
6729 \emph on
6730 clientname
6731 \emph default
6732 :
6733 \emph on
6734 protocol message
6735 \end_layout
6736
6737 \begin_layout Standard
6738 where 
6739 \emph on
6740 protocol message
6741 \emph default
6742  can be 
6743 \begin_inset Quotes eld
6744 \end_inset
6745
6746 hello
6747 \begin_inset Quotes erd
6748 \end_inset
6749
6750  or 
6751 \begin_inset Quotes eld
6752 \end_inset
6753
6754 bye
6755 \begin_inset Quotes erd
6756 \end_inset
6757
6758 .
6759  If 
6760 \begin_inset Quotes eld
6761 \end_inset
6762
6763 hello
6764 \begin_inset Quotes erd
6765 \end_inset
6766
6767  is received from a client, \SpecialChar LyX
6768  will report back to inform the client that
6769  it's listening to it's messages, while 
6770 \begin_inset Quotes eld
6771 \end_inset
6772
6773 bye
6774 \begin_inset Quotes erd
6775 \end_inset
6776
6777  sent from \SpecialChar LyX
6778  will inform clients that \SpecialChar LyX
6779  is closing.
6780 \end_layout
6781
6782 \begin_layout Section
6783 Reverse DVI/PDF search
6784 \end_layout
6785
6786 \begin_layout Standard
6787 Some DVI/PDF viewers
6788 \begin_inset Foot
6789 status collapsed
6790
6791 \begin_layout Plain Layout
6792 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6793  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6794 \end_layout
6795
6796 \end_inset
6797
6798  provide 
6799 \emph on
6800 reverse search
6801 \emph default
6802  facility (also called 
6803 \emph on
6804 inverse search
6805 \emph default
6806 ).
6807  This means that you can tell \SpecialChar LyX
6808  to put the cursor to a specific line in the
6809  document by clicking at the respective position in the DVI/PDF output.
6810  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6811 .
6812  This is done via the \SpecialChar LyX
6813  server either by using the named pipe (
6814 \emph on
6815 lyxpipe
6816 \emph default
6817 ), or the UNIX domain socket (
6818 \emph on
6819 lyxsocket
6820 \emph default
6821 ) that \SpecialChar LyX
6822  creates in its temporary directory (this is the way the 
6823 \begin_inset Flex Code
6824 status collapsed
6825
6826 \begin_layout Plain Layout
6827 lyxclient
6828 \end_layout
6829
6830 \end_inset
6831
6832  program communicates with \SpecialChar LyX
6833 ).
6834  In some cases, you need a helper script that mediates between the viewer
6835  and \SpecialChar LyX
6836 , in others, the viewer can communicate with \SpecialChar LyX
6837  directly.
6838  This depends on the selected viewer and on your operating system.
6839  The same applies to the way viewers need to be configured and the way the
6840  reverse search is actually performed.
6841  In what follows, we will thus describe how to setup reverse search for
6842  specific viewers.
6843  Before we turn to this, though, we will explain what needs to be done generally
6844  to enable reverse search in the DVI/PDF output.
6845 \end_layout
6846
6847 \begin_layout Subsection
6848 Automatic setup
6849 \begin_inset CommandInset label
6850 LatexCommand label
6851 name "subsec:rev-search"
6852
6853 \end_inset
6854
6855
6856 \end_layout
6857
6858 \begin_layout Standard
6859 In most cases \SpecialChar LyX
6860  will do the work for you by enabling the option 
6861 \begin_inset Flex Noun
6862 status collapsed
6863
6864 \begin_layout Plain Layout
6865 Synchronize with Output
6866 \end_layout
6867
6868 \end_inset
6869
6870  in the menu 
6871 \begin_inset Flex Noun
6872 status collapsed
6873
6874 \begin_layout Plain Layout
6875 Document\SpecialChar menuseparator
6876 Settings\SpecialChar menuseparator
6877 Output
6878 \end_layout
6879
6880 \end_inset
6881
6882 .
6883  In such a case \SpecialChar LyX
6884  will automatically insert the necessary Sync\SpecialChar TeX
6885  macro (for
6886  PDF) or load the srcltx package (for DVI) respectively.
6887  This option can be easily reached also on 
6888 \begin_inset Flex Code
6889 status collapsed
6890
6891 \begin_layout Plain Layout
6892 View/Update
6893 \end_layout
6894
6895 \end_inset
6896
6897  Toolbar.
6898 \end_layout
6899
6900 \begin_layout Standard
6901 If you need a different setting, you can select or input a custom macro
6902  from the drop down box just below 
6903 \begin_inset Flex Noun
6904 status collapsed
6905
6906 \begin_layout Plain Layout
6907 Document\SpecialChar menuseparator
6908 Settings\SpecialChar menuseparator
6909 Output\SpecialChar menuseparator
6910 Synchronize with Output
6911 \end_layout
6912
6913 \end_inset
6914
6915 .
6916 \end_layout
6917
6918 \begin_layout Standard
6919 Note that the method 
6920 \begin_inset Flex Code
6921 status collapsed
6922
6923 \begin_layout Plain Layout
6924
6925 \backslash
6926 synctex=1
6927 \end_layout
6928
6929 \end_inset
6930
6931  enables gzip compression.
6932  If your viewer does not support it, you should instead use 
6933 \begin_inset Flex Code
6934 status collapsed
6935
6936 \begin_layout Plain Layout
6937
6938 \backslash
6939 synctex=-1
6940 \end_layout
6941
6942 \end_inset
6943
6944 .
6945 \end_layout
6946
6947 \begin_layout Standard
6948 Please also note that including the 
6949 \begin_inset Flex Code
6950 status collapsed
6951
6952 \begin_layout Plain Layout
6953 srcltx
6954 \end_layout
6955
6956 \end_inset
6957
6958  package or 
6959 \begin_inset Flex Code
6960 status collapsed
6961
6962 \begin_layout Plain Layout
6963 src-specials
6964 \end_layout
6965
6966 \end_inset
6967
6968  sometimes has an undesired impact on the typesetting.
6969  Thus, you should switch output synchronization off for the final typesetting
6970  if you use the 
6971 \begin_inset Flex Code
6972 status collapsed
6973
6974 \begin_layout Plain Layout
6975 srcltx
6976 \end_layout
6977
6978 \end_inset
6979
6980  package or 
6981 \begin_inset Flex Code
6982 status collapsed
6983
6984 \begin_layout Plain Layout
6985 src-specials
6986 \end_layout
6987
6988 \end_inset
6989
6990 .
6991  
6992 \end_layout
6993
6994 \begin_layout Standard
6995 In case you need some more special settings that are not covered by the
6996  automatic settings, read the next section about how to set up output synchroniz
6997 ation manually.
6998  If the automatic setup suits your needs, you can readily jump to section
6999 \begin_inset space ~
7000 \end_inset
7001
7002
7003 \begin_inset CommandInset ref
7004 LatexCommand ref
7005 reference "subsec:configuring-viewers"
7006
7007 \end_inset
7008
7009 , where the necessary configuration steps in your viewer – needed both with
7010  the automatic and the manual setup – are described.
7011 \end_layout
7012
7013 \begin_layout Subsection
7014 Manual setup
7015 \end_layout
7016
7017 \begin_layout Standard
7018 \SpecialChar LaTeX
7019  provides several different methods for reverse search.
7020  Some are built-in in the 
7021 \begin_inset Flex Code
7022 status collapsed
7023
7024 \begin_layout Plain Layout
7025 latex/pdflatex
7026 \end_layout
7027
7028 \end_inset
7029
7030  program, some are provided by external packages.
7031  Your choice depends on whether your \SpecialChar LaTeX
7032  distribution already provides a given
7033  method (the built-in methods are rather new) and whether your viewer can
7034  cope with it.
7035  The available methods are described in the following.
7036 \end_layout
7037
7038 \begin_layout Subsubsection*
7039 Built-in DVI-search via src-specials (DVI only) 
7040 \end_layout
7041
7042 \begin_layout Standard
7043 This method provides the DVI file with the necessary information for reverse
7044  search.
7045  It is available in \SpecialChar LaTeX
7046  since quite some time (any somewhat recent \SpecialChar LaTeX
7047  distribution
7048  should include it), and it works reliably.
7049  To enable it, change the 
7050 \begin_inset Flex Noun
7051 status collapsed
7052
7053 \begin_layout Plain Layout
7054 La
7055 \family sans
7056 TeX
7057 \family default
7058  (plain)->DVI
7059 \end_layout
7060
7061 \end_inset
7062
7063  or 
7064 \begin_inset Flex Noun
7065 status collapsed
7066
7067 \begin_layout Plain Layout
7068 La
7069 \family sans
7070 TeX
7071 \family default
7072  (plain)->DraftDVI
7073 \end_layout
7074
7075 \end_inset
7076
7077  converter in 
7078 \begin_inset Flex Noun
7079 status collapsed
7080
7081 \begin_layout Plain Layout
7082 Preferences\SpecialChar menuseparator
7083 File Handling\SpecialChar menuseparator
7084 Converters
7085 \end_layout
7086
7087 \end_inset
7088
7089  to 
7090 \begin_inset Flex Code
7091 status collapsed
7092
7093 \begin_layout Plain Layout
7094 latex -src-specials $$i
7095 \end_layout
7096
7097 \end_inset
7098
7099 .
7100  If this doesn't work, check if your \SpecialChar TeX
7101  engine needs different options (the
7102  syntax might differ in some distributions).
7103 \end_layout
7104
7105 \begin_layout Subsubsection*
7106 External Packages (PDFSync and scrltx) 
7107 \end_layout
7108
7109 \begin_layout Standard
7110 The packages 
7111 \emph on
7112 pdfsync
7113 \emph default
7114  and 
7115 \emph on
7116 scrltx
7117 \emph default
7118  provide reverse search facility for PDF output (via pdflatex) and DVI output,
7119  respectively.
7120  In order to enable it, load the packages in the \SpecialChar LyX
7121  preamble: 
7122 \end_layout
7123
7124 \begin_layout Itemize
7125 \begin_inset Flex Code
7126 status collapsed
7127
7128 \begin_layout Plain Layout
7129
7130 \backslash
7131 usepackage{pdfsync}
7132 \end_layout
7133
7134 \end_inset
7135
7136  for reverse PDF search,
7137 \end_layout
7138
7139 \begin_layout Itemize
7140 \begin_inset Flex Code
7141 status collapsed
7142
7143 \begin_layout Plain Layout
7144
7145 \backslash
7146 usepackage[active]{srcltx}
7147 \end_layout
7148
7149 \end_inset
7150
7151  for reverse DVI search.
7152 \end_layout
7153
7154 \begin_layout Standard
7155 If you want to be able to perform both DVI and PDF reverse searches, you
7156  can also insert in the preamble the following lines
7157 \end_layout
7158
7159 \begin_layout LyX-Code
7160
7161 \backslash
7162 usepackage{ifpdf}
7163 \begin_inset Newline newline
7164 \end_inset
7165
7166
7167 \backslash
7168 ifpdf
7169 \begin_inset Newline newline
7170 \end_inset
7171
7172   
7173 \backslash
7174 usepackage{pdfsync}
7175 \begin_inset Newline newline
7176 \end_inset
7177
7178
7179 \backslash
7180 else
7181 \begin_inset Newline newline
7182 \end_inset
7183
7184   
7185 \backslash
7186 usepackage[active]{srcltx}
7187 \begin_inset Newline newline
7188 \end_inset
7189
7190
7191 \backslash
7192 fi
7193 \end_layout
7194
7195 \begin_layout Standard
7196 This way, you can preview the file as either DVI or PDF (pdflatex) and the
7197  right package will be used.
7198 \end_layout
7199
7200 \begin_layout Standard
7201 Note that PDFSync might affect the output layout of your document.
7202  It is therefore advised to disable PDFsync for final documents.
7203 \end_layout
7204
7205 \begin_layout Subsubsection*
7206 Built-in reverse search via Sync\SpecialChar TeX
7207  (DVI and PDF) 
7208 \end_layout
7209
7210 \begin_layout Standard
7211 Recent versions of 
7212 \begin_inset Flex Code
7213 status collapsed
7214
7215 \begin_layout Plain Layout
7216 (pdf)latex
7217 \end_layout
7218
7219 \end_inset
7220
7221  have built-in support for both PDF and DVI reverse search.
7222  This so-called 
7223 \emph on
7224 Sync\SpecialChar TeX
7225
7226 \emph default
7227  facility is basically the result of the integration of the PDFSync package
7228  to the pdftex program and its merge with the 
7229 \emph on
7230 scr-specials
7231 \emph default
7232  approach.
7233  You need at least \SpecialChar TeX
7234 Live 2008 or a recent Mik\SpecialChar TeX
7235  distribution in order to use
7236  it.
7237 \begin_inset Foot
7238 status collapsed
7239
7240 \begin_layout Plain Layout
7241 For some reason, Mik\SpecialChar TeX
7242  does not understand/obey the command \SpecialChar LyX
7243  inserts into
7244  the preamble when you check the "Enable Forward/Reverse Search" button
7245  in the toolbar and does not generate the necessary info.
7246 \end_layout
7247
7248 \begin_layout Plain Layout
7249 The generation of the required info can be forced by changing the converter
7250  "\SpecialChar LaTeX
7251  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
7252  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
7253  the -synctex=1 switch).
7254 \end_layout
7255
7256 \end_inset
7257
7258  Also note that only a few PDF viewers (Okular and Qpdfview on Unix, Skim
7259  on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
7260  support.
7261 \end_layout
7262
7263 \begin_layout Standard
7264 To enable Sync\SpecialChar TeX
7265  for DVI output, change the 
7266 \begin_inset Flex Noun
7267 status collapsed
7268
7269 \begin_layout Plain Layout
7270 La
7271 \family sans
7272 TeX
7273 \family default
7274  (plain) -> DVI
7275 \end_layout
7276
7277 \end_inset
7278
7279  or 
7280 \begin_inset Flex Noun
7281 status collapsed
7282
7283 \begin_layout Plain Layout
7284 La
7285 \family sans
7286 TeX
7287 \family default
7288  (plain) -> DraftDVI
7289 \end_layout
7290
7291 \end_inset
7292
7293  converter in 
7294 \begin_inset Flex Noun
7295 status collapsed
7296
7297 \begin_layout Plain Layout
7298 Preferences\SpecialChar menuseparator
7299 File Handling\SpecialChar menuseparator
7300 Converters
7301 \end_layout
7302
7303 \end_inset
7304
7305  to 
7306 \begin_inset Flex Code
7307 status collapsed
7308
7309 \begin_layout Plain Layout
7310 latex -synctex=1 $$i
7311 \end_layout
7312
7313 \end_inset
7314
7315 , and for PDF output, change the 
7316 \begin_inset Flex Noun
7317 status collapsed
7318
7319 \begin_layout Plain Layout
7320 La
7321 \family sans
7322 TeX
7323 \family default
7324  (pdflatex) -> PDF (pdflatex)
7325 \end_layout
7326
7327 \end_inset
7328
7329  or converter to 
7330 \begin_inset Flex Code
7331 status collapsed
7332
7333 \begin_layout Plain Layout
7334 pdflatex -synctex=1 $$i
7335 \end_layout
7336
7337 \end_inset
7338
7339 .
7340  Check the documentation of your viewer whether the viewer needs to be configure
7341 d for the use with Sync\SpecialChar TeX
7342 .
7343 \begin_inset Foot
7344 status collapsed
7345
7346 \begin_layout Plain Layout
7347 Note that the option 
7348 \begin_inset Flex Code
7349 status collapsed
7350
7351 \begin_layout Plain Layout
7352 -synctex=1
7353 \end_layout
7354
7355 \end_inset
7356
7357  option enables gzip compression.
7358  If your viewer does not support it, you should instead use 
7359 \begin_inset Flex Code
7360 status collapsed
7361
7362 \begin_layout Plain Layout
7363 -synctex=-1
7364 \end_layout
7365
7366 \end_inset
7367
7368 .
7369 \end_layout
7370
7371 \end_inset
7372
7373
7374 \end_layout
7375
7376 \begin_layout Subsection
7377 Configuring and using specific viewers
7378 \begin_inset CommandInset label
7379 LatexCommand label
7380 name "subsec:configuring-viewers"
7381
7382 \end_inset
7383
7384
7385 \end_layout
7386
7387 \begin_layout Subsubsection*
7388 Xdvi (all platforms)
7389 \end_layout
7390
7391 \begin_layout Standard
7392 If you use 
7393 \begin_inset Flex Code
7394 status collapsed
7395
7396 \begin_layout Plain Layout
7397 xdvi
7398 \end_layout
7399
7400 \end_inset
7401
7402 , you don't need to do anything else for performing a reverse DVI search,
7403  as \SpecialChar LyX
7404  already provides the necessary hooks for automatically using the 
7405 \begin_inset Flex Code
7406 status collapsed
7407
7408 \begin_layout Plain Layout
7409 lyxclient
7410 \end_layout
7411
7412 \end_inset
7413
7414  program.
7415  Just setup your document as described above (reverse search is triggered
7416  by Ctrl-click or Alt-click on Mac OSX, respectively).
7417 \end_layout
7418
7419 \begin_layout Standard
7420 However, if for whatever reason you want to use the named pipe instead of
7421  the socket for communicating with \SpecialChar LyX
7422 , simply change the DVI viewer in 
7423 \begin_inset Flex Noun
7424 status collapsed
7425
7426 \begin_layout Plain Layout
7427 Preferences\SpecialChar menuseparator
7428 File Handling\SpecialChar menuseparator
7429 File formats
7430 \end_layout
7431
7432 \end_inset
7433
7434  to
7435 \begin_inset Foot
7436 status collapsed
7437
7438 \begin_layout Plain Layout
7439 On Mac OSX you have to use 
7440 \begin_inset Flex Code
7441 status collapsed
7442
7443 \begin_layout Plain Layout
7444 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7445 \end_layout
7446
7447 \end_inset
7448
7449
7450 \end_layout
7451
7452 \end_inset
7453
7454  
7455 \begin_inset Flex Code
7456 status collapsed
7457
7458 \begin_layout Plain Layout
7459 xdvi -editor "lyxeditor.sh %f %l"
7460 \end_layout
7461
7462 \end_inset
7463
7464 , where 
7465 \begin_inset Flex Code
7466 status collapsed
7467
7468 \begin_layout Plain Layout
7469 lyxeditor.sh
7470 \end_layout
7471
7472 \end_inset
7473
7474  is a suitable script.
7475  For example, a minimal shell script is the following one:
7476 \end_layout
7477
7478 \begin_layout LyX-Code
7479 #!/bin/sh
7480 \begin_inset Newline newline
7481 \end_inset
7482
7483 LYXPIPE="/path/to/lyxpipe"
7484 \begin_inset Newline newline
7485 \end_inset
7486
7487 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7488 \begin_inset Newline newline
7489 \end_inset
7490
7491 echo "$COMMAND" > "${LYXPIPE}".in || exit
7492 \begin_inset Newline newline
7493 \end_inset
7494
7495 read TMP < "${LYXPIPE}".out || exit
7496 \end_layout
7497
7498 \begin_layout Standard
7499 where 
7500 \begin_inset Flex Code
7501 status collapsed
7502
7503 \begin_layout Plain Layout
7504 /path/to/lyxpipe
7505 \end_layout
7506
7507 \end_inset
7508
7509  is the LyXServer pipe path specified in 
7510 \begin_inset Flex Noun
7511 status collapsed
7512
7513 \begin_layout Plain Layout
7514 Preferences\SpecialChar menuseparator
7515 Paths
7516 \end_layout
7517
7518 \end_inset
7519
7520 .
7521 \begin_inset Foot
7522 status collapsed
7523
7524 \begin_layout Plain Layout
7525 In the 
7526 \begin_inset Flex Code
7527 status collapsed
7528
7529 \begin_layout Plain Layout
7530 development/tools
7531 \end_layout
7532
7533 \end_inset
7534
7535  folder of a source distribution you can find a 
7536 \begin_inset Flex Code
7537 status collapsed
7538
7539 \begin_layout Plain Layout
7540 lyxeditor
7541 \end_layout
7542
7543 \end_inset
7544
7545  script which is able to locate the 
7546 \emph on
7547 lyxpipe
7548 \emph default
7549  based on your preferences.
7550 \end_layout
7551
7552 \end_inset
7553
7554
7555 \end_layout
7556
7557 \begin_layout Subsubsection*
7558 MacDviX (Mac OSX)
7559 \end_layout
7560
7561 \begin_layout Standard
7562 At the end of 
7563 \begin_inset Flex Code
7564 status collapsed
7565
7566 \begin_layout Plain Layout
7567 /Applications/MacDviX_Folder/calleditor.script
7568 \end_layout
7569
7570 \end_inset
7571
7572 , add the following lines:
7573 \end_layout
7574
7575 \begin_layout LyX-Code
7576 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7577 \begin_inset Newline newline
7578 \end_inset
7579
7580 exit 1
7581 \end_layout
7582
7583 \begin_layout Standard
7584 Modify the lines accordingly if you install \SpecialChar LyX
7585  somewhere else than in the
7586  Applications folder.
7587 \end_layout
7588
7589 \begin_layout Standard
7590 Reverse search is triggered by Alt-click (OPTION-click).
7591 \end_layout
7592
7593 \begin_layout Subsubsection*
7594 Skim (Mac OSX)
7595 \end_layout
7596
7597 \begin_layout Standard
7598 Enter 
7599 \begin_inset Flex Code
7600 status collapsed
7601
7602 \begin_layout Plain Layout
7603 open -a Skim.app $$i
7604 \end_layout
7605
7606 \end_inset
7607
7608  to the viewer setting in 
7609 \begin_inset Flex Noun
7610 status collapsed
7611
7612 \begin_layout Plain Layout
7613 Preferences\SpecialChar menuseparator
7614 File Handling\SpecialChar menuseparator
7615 File formats\SpecialChar menuseparator
7616 PDF (pdflatex)
7617 \end_layout
7618
7619 \end_inset
7620
7621 , and then in 
7622 \begin_inset Flex Noun
7623 status collapsed
7624
7625 \begin_layout Plain Layout
7626 Skim\SpecialChar menuseparator
7627 Preferences\SpecialChar menuseparator
7628 Sync
7629 \end_layout
7630
7631 \end_inset
7632
7633  choose 
7634 \begin_inset Flex Noun
7635 status collapsed
7636
7637 \begin_layout Plain Layout
7638 custom
7639 \end_layout
7640
7641 \end_inset
7642
7643  preset and enter command 
7644 \begin_inset Flex Noun
7645 status collapsed
7646
7647 \begin_layout Plain Layout
7648 /Applications/\SpecialChar LyX
7649 .app/Contents/MacOS/lyxeditor
7650 \end_layout
7651
7652 \end_inset
7653
7654 .
7655 \end_layout
7656
7657 \begin_layout Standard
7658 Reverse search is triggered by COMMAND-SHIFT-click
7659 \end_layout
7660
7661 \begin_layout Subsubsection*
7662 Okular (KDE)
7663 \end_layout
7664
7665 \begin_layout Standard
7666 Go to 
7667 \begin_inset Flex Noun
7668 status collapsed
7669
7670 \begin_layout Plain Layout
7671 Settings\SpecialChar menuseparator
7672 Configure Okular\SpecialChar menuseparator
7673 Editor
7674 \end_layout
7675
7676 \end_inset
7677
7678 , select 
7679 \begin_inset Quotes eld
7680 \end_inset
7681
7682 Custom Text Editor
7683 \begin_inset Quotes erd
7684 \end_inset
7685
7686  and add the command 
7687 \begin_inset Flex Code
7688 status collapsed
7689
7690 \begin_layout Plain Layout
7691 lyxclient -g %f %l
7692 \end_layout
7693
7694 \end_inset
7695
7696 .
7697 \end_layout
7698
7699 \begin_layout Standard
7700 Reverse search is triggered by SHIFT-click.
7701 \end_layout
7702
7703 \begin_layout Subsubsection*
7704 Qpdfview (Unix)
7705 \end_layout
7706
7707 \begin_layout Standard
7708 Qpdfview supports Sync\SpecialChar TeX
7709  since version 0.3.5.
7710  Go to 
7711 \begin_inset Flex Noun
7712 status collapsed
7713
7714 \begin_layout Plain Layout
7715 Edit\SpecialChar menuseparator
7716 Settings\SpecialChar menuseparator
7717 Behavior
7718 \end_layout
7719
7720 \end_inset
7721
7722 , click on the input field of the 
7723 \begin_inset Quotes eld
7724 \end_inset
7725
7726 Source editor
7727 \begin_inset Quotes erd
7728 \end_inset
7729
7730  item and add the command 
7731 \begin_inset Flex Code
7732 status collapsed
7733
7734 \begin_layout Plain Layout
7735 lyxclient -g %1 %2
7736 \end_layout
7737
7738 \end_inset
7739
7740 .
7741 \end_layout
7742
7743 \begin_layout Standard
7744 Reverse search is triggered by double-click or, in more recent versions,
7745  by context menu.
7746 \end_layout
7747
7748 \begin_layout Subsubsection*
7749 YAP (Windows)
7750 \end_layout
7751
7752 \begin_layout Standard
7753 Launch yap, choose its 
7754 \begin_inset Flex Noun
7755 status collapsed
7756
7757 \begin_layout Plain Layout
7758 View\SpecialChar menuseparator
7759 Options
7760 \end_layout
7761
7762 \end_inset
7763
7764  menu and select the 
7765 \begin_inset Quotes eld
7766 \end_inset
7767
7768 Inverse DVI Search
7769 \begin_inset Quotes erd
7770 \end_inset
7771
7772  tab.
7773  Click on the 
7774 \begin_inset Quotes eld
7775 \end_inset
7776
7777 New\SpecialChar ldots
7778
7779 \begin_inset Quotes erd
7780 \end_inset
7781
7782  button and, in the window that opens, enter 
7783 \begin_inset Quotes eld
7784 \end_inset
7785
7786 \SpecialChar LyX
7787  Editor
7788 \begin_inset Quotes erd
7789 \end_inset
7790
7791  (or any other name you like) in the 
7792 \begin_inset Quotes eld
7793 \end_inset
7794
7795 Name:
7796 \begin_inset Quotes erd
7797 \end_inset
7798
7799  field.
7800  Now click on the button labeled 
7801 \begin_inset Quotes eld
7802 \end_inset
7803
7804 \SpecialChar ldots
7805
7806 \begin_inset Quotes erd
7807 \end_inset
7808
7809  to open a file dialog and navigate to the directory containing the batch
7810  file 
7811 \begin_inset Flex Code
7812 status collapsed
7813
7814 \begin_layout Plain Layout
7815 lyxeditor.bat
7816 \end_layout
7817
7818 \end_inset
7819
7820  (see below).
7821  Select 
7822 \begin_inset Flex Code
7823 status collapsed
7824
7825 \begin_layout Plain Layout
7826 lyxeditor.bat
7827 \end_layout
7828
7829 \end_inset
7830
7831  and then specify the program arguments as 
7832 \begin_inset Flex Code
7833 status collapsed
7834
7835 \begin_layout Plain Layout
7836 %f %l
7837 \end_layout
7838
7839 \end_inset
7840
7841 .
7842  The 
7843 \begin_inset Flex Code
7844 status collapsed
7845
7846 \begin_layout Plain Layout
7847 lyxeditor.bat
7848 \end_layout
7849
7850 \end_inset
7851
7852  wrapper is used for communicating with \SpecialChar LyX
7853  through the 
7854 \emph on
7855 lyxpipe
7856 \emph default
7857  and is as follows:
7858 \end_layout
7859
7860 \begin_layout LyX-Code
7861 @echo off
7862 \begin_inset Newline newline
7863 \end_inset
7864
7865 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7866 \backslash
7867
7868 \backslash
7869 .
7870 \backslash
7871 pipe
7872 \backslash
7873 lyxpipe.in
7874 \begin_inset Newline newline
7875 \end_inset
7876
7877 type 
7878 \backslash
7879
7880 \backslash
7881 .
7882 \backslash
7883 pipe
7884 \backslash
7885 lyxpipe.out
7886 \end_layout
7887
7888 \begin_layout Standard
7889 Make sure that the \SpecialChar LyX
7890 Server pipe path you specified in \SpecialChar LyX
7891  is 
7892 \begin_inset Flex Code
7893 status collapsed
7894
7895 \begin_layout Plain Layout
7896
7897 \backslash
7898
7899 \backslash
7900 .
7901 \backslash
7902 pipe
7903 \backslash
7904 lyxpipe
7905 \end_layout
7906
7907 \end_inset
7908
7909 , otherwise change the 
7910 \begin_inset Flex Code
7911 status collapsed
7912
7913 \begin_layout Plain Layout
7914 lyxeditor.bat
7915 \end_layout
7916
7917 \end_inset
7918
7919  wrapper accordingly.
7920 \end_layout
7921
7922 \begin_layout Standard
7923 In yap, reverse search is triggered by double-click.
7924 \end_layout
7925
7926 \begin_layout Subsubsection*
7927 SumatraPDF (Windows)
7928 \end_layout
7929
7930 \begin_layout Standard
7931 In order to use SumatraPDF for inverse search, enter 
7932 \begin_inset Flex Code
7933 status collapsed
7934
7935 \begin_layout Plain Layout
7936 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
7937 \end_layout
7938
7939 \end_inset
7940
7941  in the viewer setting in 
7942 \begin_inset Flex Noun
7943 status collapsed
7944
7945 \begin_layout Plain Layout
7946 Preferences\SpecialChar menuseparator
7947 File Handling\SpecialChar menuseparator
7948 File formats\SpecialChar menuseparator
7949 PDF (pdflatex)
7950 \end_layout
7951
7952 \end_inset
7953
7954 , where 
7955 \begin_inset Flex Code
7956 status collapsed
7957
7958 \begin_layout Plain Layout
7959 lyxeditor.bat
7960 \end_layout
7961
7962 \end_inset
7963
7964  is the previous wrapper.
7965  If SumatraPDF.exe is not in your command PATH, use its full file name.
7966 \end_layout
7967
7968 \begin_layout Standard
7969 Reverse search is triggered by double-click.
7970 \end_layout
7971
7972 \begin_layout Subsubsection*
7973 YAP (Cygwin)
7974 \end_layout
7975
7976 \begin_layout Standard
7977 First of all, make sure that yap is your default DVI viewer in the Windows
7978  environment, then launch it, choose its 
7979 \begin_inset Flex Noun
7980 status collapsed
7981
7982 \begin_layout Plain Layout
7983 View\SpecialChar menuseparator
7984 Options
7985 \end_layout
7986
7987 \end_inset
7988
7989  menu and select the 
7990 \begin_inset Quotes eld
7991 \end_inset
7992
7993 Inverse DVI Search
7994 \begin_inset Quotes erd
7995 \end_inset
7996
7997  tab.
7998  Click on the 
7999 \begin_inset Quotes eld
8000 \end_inset
8001
8002 New\SpecialChar ldots
8003
8004 \begin_inset Quotes erd
8005 \end_inset
8006
8007  button and, in the window that opens, enter 
8008 \begin_inset Quotes eld
8009 \end_inset
8010
8011 \SpecialChar LyX
8012  Editor
8013 \begin_inset Quotes erd
8014 \end_inset
8015
8016  (or any other name you like) in the 
8017 \begin_inset Quotes eld
8018 \end_inset
8019
8020 Name:
8021 \begin_inset Quotes erd
8022 \end_inset
8023
8024  field.
8025  Now click on the button labeled 
8026 \begin_inset Quotes eld
8027 \end_inset
8028
8029 \SpecialChar ldots
8030
8031 \begin_inset Quotes erd
8032 \end_inset
8033
8034  to open a file dialog and navigate to the directory containing the 
8035 \begin_inset Flex Code
8036 status collapsed
8037
8038 \begin_layout Plain Layout
8039 lyxeditor.exe
8040 \end_layout
8041
8042 \end_inset
8043
8044  program (which is installed by default on Cygwin along with the \SpecialChar LyX
8045  executable).
8046  Select 
8047 \begin_inset Flex Code
8048 status collapsed
8049
8050 \begin_layout Plain Layout
8051 lyxeditor.exe
8052 \end_layout
8053
8054 \end_inset
8055
8056  and then specify the program arguments as 
8057 \begin_inset Flex Code
8058 status collapsed
8059
8060 \begin_layout Plain Layout
8061 -g %f %l
8062 \end_layout
8063
8064 \end_inset
8065
8066 .
8067  In this way, you will be using the 
8068 \emph on
8069 lyxsocket
8070 \emph default
8071  for communicating with \SpecialChar LyX
8072 .
8073  If, for whatever reason, you want to use the 
8074 \emph on
8075 lyxpipe
8076 \emph default
8077 , omit the 
8078 \begin_inset Flex Code
8079 status collapsed
8080
8081 \begin_layout Plain Layout
8082 -g
8083 \end_layout
8084
8085 \end_inset
8086
8087  option and be sure to specify the \SpecialChar LyX
8088 Server pipe path in the \SpecialChar LyX
8089  preferences.
8090 \end_layout
8091
8092 \begin_layout Standard
8093 In yap, reverse search is triggered by double-click.
8094 \end_layout
8095
8096 \begin_layout Subsubsection*
8097 SumatraPDF (Cygwin)
8098 \end_layout
8099
8100 \begin_layout Standard
8101 In order to use SumatraPDF for inverse search, enter 
8102 \begin_inset Flex Code
8103 status collapsed
8104
8105 \begin_layout Plain Layout
8106 SumatraPDF -inverse-search "lyxeditor -g %f %l"
8107 \end_layout
8108
8109 \end_inset
8110
8111  in the viewer setting in 
8112 \begin_inset Flex Noun
8113 status collapsed
8114
8115 \begin_layout Plain Layout
8116 Preferences\SpecialChar menuseparator
8117 File Handling\SpecialChar menuseparator
8118 File formats\SpecialChar menuseparator
8119 PDF (pdflatex)
8120 \end_layout
8121
8122 \end_inset
8123
8124 .
8125  If SumatraPDF.exe is not in your command PATH, use its full posix path.
8126  The 
8127 \begin_inset Flex Code
8128 status collapsed
8129
8130 \begin_layout Plain Layout
8131 -g
8132 \end_layout
8133
8134 \end_inset
8135
8136  enables communication via the 
8137 \emph on
8138 lyxsocket
8139 \emph default
8140 .
8141  Again, omit the 
8142 \begin_inset Flex Code
8143 status collapsed
8144
8145 \begin_layout Plain Layout
8146 -g
8147 \end_layout
8148
8149 \end_inset
8150
8151  option if you want to use the 
8152 \emph on
8153 lyxpipe
8154 \emph default
8155 , and be sure to specify the \SpecialChar LyX
8156 Server pipe path in the \SpecialChar LyX
8157  preferences.
8158 \end_layout
8159
8160 \begin_layout Standard
8161 Reverse search is triggered by double-click.
8162 \end_layout
8163
8164 \begin_layout Section
8165 Forward search
8166 \end_layout
8167
8168 \begin_layout Standard
8169 Forward search is, as the name implies, in a sense the 
8170 \begin_inset Quotes eld
8171 \end_inset
8172
8173 opposite
8174 \begin_inset Quotes erd
8175 \end_inset
8176
8177  of reverse search.
8178  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
8179 .
8180  If forward search is set up (as described in what follows), you can put
8181  the cursor anywhere in your \SpecialChar LyX
8182  document, and hit 
8183 \begin_inset Flex Noun
8184 status collapsed
8185
8186 \begin_layout Plain Layout
8187 Navigate\SpecialChar menuseparator
8188 Forward search
8189 \end_layout
8190
8191 \end_inset
8192
8193  (or select 
8194 \begin_inset Flex Noun
8195 status collapsed
8196
8197 \begin_layout Plain Layout
8198 Forward search
8199 \end_layout
8200
8201 \end_inset
8202
8203  in the context menu via right mouse click), and then the viewer will jump
8204  to that position as well.
8205  This implies, of course, that your viewer supports this function.
8206 \end_layout
8207
8208 \begin_layout Standard
8209 To make forward search possible, you first need to provide the generated
8210  output PDF/DVI file with additional information about the \SpecialChar TeX
8211  sources.
8212  This can be done via the methods described in the section 
8213 \begin_inset CommandInset ref
8214 LatexCommand ref
8215 reference "subsec:rev-search"
8216
8217 \end_inset
8218
8219 .
8220 \end_layout
8221
8222 \begin_layout Standard
8223 Additionally, you need to configure \SpecialChar LyX
8224  for using your viewers in 
8225 \begin_inset Flex Noun
8226 status collapsed
8227
8228 \begin_layout Plain Layout
8229 Tools\SpecialChar menuseparator
8230 Preferences\SpecialChar menuseparator
8231 Output\SpecialChar menuseparator
8232 General
8233 \end_layout
8234
8235 \end_inset
8236
8237 .
8238  We provide a range of tested configurations for some viewers, which you
8239  can select from the drop down list.
8240  If none of these configurations suits you, you have to find out and enter
8241  a suitable configuration yourself.
8242  The definition syntax uses the following placeholders:
8243 \end_layout
8244
8245 \begin_layout Itemize
8246 \noindent
8247 \begin_inset Flex Code
8248 status collapsed
8249
8250 \begin_layout Plain Layout
8251 $$n
8252 \end_layout
8253
8254 \end_inset
8255
8256 : row number
8257 \end_layout
8258
8259 \begin_layout Itemize
8260 \noindent
8261 \begin_inset Flex Code
8262 status collapsed
8263
8264 \begin_layout Plain Layout
8265 $$t
8266 \end_layout
8267
8268 \end_inset
8269
8270 : name of the (temporary) exported .tex file (without path)
8271 \end_layout
8272
8273 \begin_layout Itemize
8274 \noindent
8275 \begin_inset Flex Code
8276 status collapsed
8277
8278 \begin_layout Plain Layout
8279 $$f
8280 \end_layout
8281
8282 \end_inset
8283
8284 : name of the (temporary) exported .tex file (including path)
8285 \end_layout
8286
8287 \begin_layout Itemize
8288 \noindent
8289 \begin_inset Flex Code
8290 status collapsed
8291
8292 \begin_layout Plain Layout
8293 $$o
8294 \end_layout
8295
8296 \end_inset
8297
8298 : name of the exported output file (either dvi or pdf, depending on which
8299  one exists in the temporary directory)
8300 \end_layout
8301
8302 \begin_layout Standard
8303 Note that only some of the viewers provide full forward search functionality,
8304  among them yap, xdvi, okular
8305 \begin_inset Foot
8306 status collapsed
8307
8308 \begin_layout Plain Layout
8309 You might want to set 
8310 \begin_inset Flex Code
8311 status collapsed
8312
8313 \begin_layout Plain Layout
8314 okular –unique
8315 \end_layout
8316
8317 \end_inset
8318
8319  in 
8320 \begin_inset Flex Noun
8321 status collapsed
8322
8323 \begin_layout Plain Layout
8324 Tools\SpecialChar menuseparator
8325 Preferences\SpecialChar menuseparator
8326 File Handling\SpecialChar menuseparator
8327 File
8328 \begin_inset space ~
8329 \end_inset
8330
8331 Formats
8332 \end_layout
8333
8334 \end_inset
8335
8336
8337 \end_layout
8338
8339 \end_inset
8340
8341 , qpdfview and SumatraPDF
8342 \begin_inset Foot
8343 status collapsed
8344
8345 \begin_layout Plain Layout
8346 SumatraPDF can also use DDE commands through the external program CMCDDE
8347  — downloadable from 
8348 \begin_inset CommandInset href
8349 LatexCommand href
8350 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8351 literal "false"
8352
8353 \end_inset
8354
8355
8356 \end_layout
8357
8358 \end_inset
8359
8360 .
8361  While many of the widespread PDF viewers (most notably Adobe Reader) do
8362  not support forward search at all, some other viewers – e.
8363 \begin_inset space \thinspace{}
8364 \end_inset
8365
8366 g.
8367  evince and xpdf – allow at least to reload the document and jump to a specific
8368  page of the file, so you can at least navigate 
8369 \begin_inset Quotes eld
8370 \end_inset
8371
8372 near
8373 \begin_inset Quotes erd
8374 \end_inset
8375
8376 .
8377  This latter functionality is provided by an external call of synctex (see
8378  the predefined example configurations).
8379  
8380 \end_layout
8381
8382 \begin_layout Standard
8383 Forward search works both with DVI and PDF output.
8384  \SpecialChar LyX
8385  simply checks which preview format you have used before (i.
8386 \begin_inset space \thinspace{}
8387 \end_inset
8388
8389 e., which format is already there in the temporary directory) and chooses
8390  the appropriate configuration for the respective format.
8391 \end_layout
8392
8393 \begin_layout Chapter
8394 Special Document Classes
8395 \end_layout
8396
8397 \begin_layout Section
8398 A&A Paper
8399 \end_layout
8400
8401 \begin_layout Standard
8402 by 
8403 \noun on
8404 Peter Sütterlin
8405 \end_layout
8406
8407 \begin_layout Subsection
8408 Introduction
8409 \end_layout
8410
8411 \begin_layout Standard
8412 This section describes how \SpecialChar LyX
8413  can be used to write articles for submission
8414  to the scientific journal 
8415 \emph on
8416 Astronomy and Astrophysics
8417 \emph default
8418  (
8419 \begin_inset Flex URL
8420 status collapsed
8421
8422 \begin_layout Plain Layout
8423
8424 http://www.edpsciences.fr/aa/
8425 \end_layout
8426
8427 \end_inset
8428
8429 ) using Version 5.01 of the document class 
8430 \family typewriter
8431 aa.cls
8432 \family default
8433 .
8434  This package can be downloaded from the ftp site
8435 \end_layout
8436
8437 \begin_layout Standard
8438 \begin_inset VSpace medskip
8439 \end_inset
8440
8441
8442 \end_layout
8443
8444 \begin_layout Standard
8445 \align center
8446 \begin_inset Flex URL
8447 status collapsed
8448
8449 \begin_layout Plain Layout
8450
8451 ftp://ftp.edpsciences.org/pub/aa/readme.html
8452 \end_layout
8453
8454 \end_inset
8455
8456
8457 \end_layout
8458
8459 \begin_layout Standard
8460 \begin_inset VSpace medskip
8461 \end_inset
8462
8463
8464 \end_layout
8465
8466 \begin_layout Standard
8467 A manual comes together with that package, and this text is not meant to
8468  replace the original manual but is merely a short guide in how to realize
8469  the correct form of your paper.
8470  
8471 \end_layout
8472
8473 \begin_layout Standard
8474 Please note that the publisher of the journal was changed from Springer
8475  to EDP Sciences starting January 1, 2001.
8476  That change involved also some slight changes to the style files, namely
8477  the removal of the thesaurus command.
8478  The \SpecialChar LyX
8479  class aa supports the newest version of these style files, V 5.01.
8480  If you have an older version installed, please upgrade.
8481  For compatibility, the old (version 4) layout has been kept as 
8482 \family sans
8483 article (A&A V4)
8484 \family default
8485 .
8486  Please refer to the comments in 
8487 \family typewriter
8488 \SpecialChar LyX
8489 Dir/layouts/aapaper.layout
8490 \family default
8491 .
8492 \end_layout
8493
8494 \begin_layout Subsection
8495 Getting started
8496 \end_layout
8497
8498 \begin_layout Standard
8499 It is recommended you start from the example template distributed with \SpecialChar LyX
8500 .
8501  If you are not using a template, note the following settings:
8502 \end_layout
8503
8504 \begin_layout Itemize
8505 Select 
8506 \family sans
8507 article (A&A)
8508 \family default
8509  in the 
8510 \family sans
8511 Document\SpecialChar menuseparator
8512 Settings
8513 \family default
8514  dialog (OK, that one was obvious).
8515 \end_layout
8516
8517 \begin_layout Itemize
8518 Don't change the option 
8519 \family sans
8520 Page
8521 \begin_inset space ~
8522 \end_inset
8523
8524 style
8525 \family default
8526 : Leave it set to 
8527 \family sans
8528 default
8529 \family default
8530 .
8531  The whole layout is done by the macros, you shouldn't change anything.
8532 \end_layout
8533
8534 \begin_layout Subsection
8535 The header block
8536 \end_layout
8537
8538 \begin_layout Standard
8539 First thing to enter is the header information.
8540  It consists of seven entries, of which some are optional.
8541  They are
8542 \end_layout
8543
8544 \begin_layout Itemize
8545
8546 \family sans
8547 Title
8548 \family default
8549 : [required] 
8550 \end_layout
8551
8552 \begin_layout Itemize
8553
8554 \family sans
8555 Subtitle
8556 \family default
8557 : [optional] 
8558 \end_layout
8559
8560 \begin_layout Itemize
8561
8562 \family sans
8563 Author
8564 \family default
8565 : [required]
8566 \end_layout
8567
8568 \begin_layout Itemize
8569
8570 \family sans
8571 Address
8572 \family default
8573 : [required]
8574 \end_layout
8575
8576 \begin_layout Itemize
8577
8578 \family sans
8579 Offprints
8580 \family default
8581 : [optional] if more than one author: whom to contact for offprint requests.
8582 \end_layout
8583
8584 \begin_layout Itemize
8585
8586 \family sans
8587 Mail
8588 \family default
8589 : [optional] mail address for contacts.
8590 \end_layout
8591
8592 \begin_layout Itemize
8593
8594 \family sans
8595 Date
8596 \family default
8597 : [required].
8598  Suggested format is 
8599 \family typewriter
8600 Received: <date>; Accepted <date> 
8601 \end_layout
8602
8603 \begin_layout Standard
8604 There is no need to issue the 
8605 \family typewriter
8606
8607 \backslash
8608 maketitle
8609 \family default
8610  command, this is done automatically by \SpecialChar LyX
8611  when the header is finished.
8612  Although the order of the single header entries doesn't matter it is advised
8613  to keep the above sequence, just to get the best optics and meets the layout
8614  of the real document.
8615 \end_layout
8616
8617 \begin_layout Standard
8618 If you want to place footnotes in the header block, e.
8619 \begin_inset space \thinspace{}
8620 \end_inset
8621
8622 g.
8623 \begin_inset space \space{}
8624 \end_inset
8625
8626 to state your present address, just use the standard footnote via the menu
8627  
8628 \family sans
8629 Insert\SpecialChar menuseparator
8630 Footnote.
8631
8632 \family default
8633  \SpecialChar LyX
8634  will automagically use the term 
8635 \family typewriter
8636
8637 \backslash
8638 thanks{}
8639 \family default
8640  in that case.
8641 \end_layout
8642
8643 \begin_layout Standard
8644 In addition to these topics, the macros use three additional \SpecialChar LaTeX
8645  commands that
8646  have no counterpart in \SpecialChar LyX
8647 :
8648 \end_layout
8649
8650 \begin_layout Itemize
8651
8652 \family typewriter
8653
8654 \backslash
8655 and
8656 \family default
8657  to separate different names for more than one author and institute, respectivel
8658 y.
8659 \end_layout
8660
8661 \begin_layout Itemize
8662
8663 \family typewriter
8664
8665 \backslash
8666 inst{<nr>}
8667 \family default
8668 to mark corresponding author/institute pairs.
8669  The institutes are numbered sequentially as they appear in the 
8670 \family sans
8671 Address
8672 \family default
8673  field, so you have to put a marker to each author.
8674 \end_layout
8675
8676 \begin_layout Itemize
8677
8678 \family typewriter
8679
8680 \backslash
8681 email{address}
8682 \family default
8683  to supply an email address for fast contact.
8684 \end_layout
8685
8686 \begin_layout Standard
8687 In all cases, the appropriate command has to be entered in \SpecialChar LyX
8688  and marked as
8689  \SpecialChar LaTeX
8690  code.
8691  See the examples.
8692  
8693 \end_layout
8694
8695 \begin_layout Subsection
8696 The abstract
8697 \end_layout
8698
8699 \begin_layout Standard
8700 The abstract should immediately follow the header block.
8701  With version 5 the abstract environment was changed to a command, and there
8702  is now a resctriction to only one paragraph.
8703  In addition, it should contain an entry with the keywords.
8704  This is not yet implemented for \SpecialChar LyX
8705 , therefore you have to enter the \SpecialChar LaTeX
8706  command
8707  
8708 \family typewriter
8709
8710 \backslash
8711 keywords{}
8712 \family default
8713  by hand and mark it as \SpecialChar LaTeX
8714  code.
8715  Refer to the example paper.
8716 \end_layout
8717
8718 \begin_layout Subsection
8719 Supported environments
8720 \end_layout
8721
8722 \begin_layout Standard
8723 The A&A paper layout supports the following environments for structuring
8724  your text:
8725 \end_layout
8726
8727 \begin_layout Itemize
8728
8729 \family sans
8730 Standard
8731 \end_layout
8732
8733 \begin_layout Itemize
8734
8735 \family sans
8736 Section
8737 \end_layout
8738
8739 \begin_layout Itemize
8740
8741 \family sans
8742 Subsection
8743 \end_layout
8744
8745 \begin_layout Itemize
8746
8747 \family sans
8748 Subsubsection
8749 \end_layout
8750
8751 \begin_layout Itemize
8752
8753 \family sans
8754 Itemize
8755 \end_layout
8756
8757 \begin_layout Itemize
8758
8759 \family sans
8760 Enumerate
8761 \end_layout
8762
8763 \begin_layout Itemize
8764
8765 \family sans
8766 Description
8767 \end_layout
8768
8769 \begin_layout Itemize
8770
8771 \family sans
8772 Caption
8773 \end_layout
8774
8775 \begin_layout Itemize
8776
8777 \family sans
8778 Abstract
8779 \end_layout
8780
8781 \begin_layout Itemize
8782
8783 \family sans
8784 Acknowledgment
8785 \end_layout
8786
8787 \begin_layout Itemize
8788
8789 \family sans
8790 Bibliography
8791 \end_layout
8792
8793 \begin_layout Itemize
8794
8795 \family sans
8796 \SpecialChar LaTeX
8797
8798 \end_layout
8799
8800 \begin_layout Subsection
8801 Commands not supported by \SpecialChar LyX
8802
8803 \end_layout
8804
8805 \begin_layout Standard
8806 Some commands are not yet supported by the 
8807 \family sans
8808 paper (A&A)
8809 \family default
8810  layout for \SpecialChar LyX
8811 .
8812  Some have already been mentioned.
8813  For the sake of completeness, they are listed all together here:
8814 \end_layout
8815
8816 \begin_layout Itemize
8817
8818 \family typewriter
8819
8820 \backslash
8821 and
8822 \end_layout
8823
8824 \begin_layout Itemize
8825
8826 \family typewriter
8827
8828 \backslash
8829 email
8830 \end_layout
8831
8832 \begin_layout Itemize
8833
8834 \family typewriter
8835
8836 \backslash
8837 appendix
8838 \end_layout
8839
8840 \begin_layout Itemize
8841
8842 \family typewriter
8843
8844 \backslash
8845 authorrunning
8846 \end_layout
8847
8848 \begin_layout Itemize
8849
8850 \family typewriter
8851
8852 \backslash
8853 inst{}
8854 \end_layout
8855
8856 \begin_layout Itemize
8857
8858 \family typewriter
8859
8860 \backslash
8861 keywords{}
8862 \end_layout
8863
8864 \begin_layout Itemize
8865
8866 \family typewriter
8867
8868 \backslash
8869 object{}
8870 \end_layout
8871
8872 \begin_layout Itemize
8873
8874 \family typewriter
8875
8876 \backslash
8877 titlerunning{}
8878 \end_layout
8879
8880 \begin_layout Standard
8881 If you want to use any of these commands, you have to enter them yourself.
8882  
8883 \series bold
8884 Do not forget to mark them as \SpecialChar LaTeX
8885  code!
8886 \end_layout
8887
8888 \begin_layout Subsection
8889 Figure and Table Floats
8890 \end_layout
8891
8892 \begin_layout Standard
8893 \SpecialChar LyX
8894  provides support for the necessary float environments 
8895 \family sans
8896 figure, figure*, table
8897 \family default
8898  and 
8899 \family sans
8900 table*
8901 \family default
8902 , therefore we won't tell much about it here.
8903  Refer to the 
8904 \emph on
8905 User's
8906 \begin_inset space ~
8907 \end_inset
8908
8909 Guide
8910 \emph default
8911 .
8912  Just remember that tables should be left-aligned.
8913  For that, select the table and change the alignment in 
8914 \family sans
8915 Edit\SpecialChar menuseparator
8916 Paragraph
8917 \begin_inset space ~
8918 \end_inset
8919
8920 Settings.
8921 \end_layout
8922
8923 \begin_layout Standard
8924 There is only one special thing: the figures with caption besides the figure.
8925  To create such a figure, you have to do the following:
8926 \end_layout
8927
8928 \begin_layout Enumerate
8929 Create a wide figure float: 
8930 \family sans
8931 Insert\SpecialChar menuseparator
8932 Float\SpecialChar menuseparator
8933 Figure
8934 \family default
8935 , then right click in the figure and select 
8936 \family sans
8937 Span
8938 \begin_inset space ~
8939 \end_inset
8940
8941 columns
8942 \family default
8943 .
8944 \end_layout
8945
8946 \begin_layout Enumerate
8947 Enter your caption text.
8948 \end_layout
8949
8950 \begin_layout Enumerate
8951 Press 
8952 \family sans
8953 Return
8954 \family default
8955  to move the cursor above the caption.
8956 \end_layout
8957
8958 \begin_layout Enumerate
8959 Insert your figure
8960 \end_layout
8961
8962 \begin_layout Enumerate
8963 Position the cursor behind the figure and insert a horizontal fill: 
8964 \family sans
8965 Insert\SpecialChar menuseparator
8966 Special
8967 \begin_inset space ~
8968 \end_inset
8969
8970 Character\SpecialChar menuseparator
8971 Horizontal
8972 \begin_inset space ~
8973 \end_inset
8974
8975 Fill
8976 \family default
8977 .
8978 \end_layout
8979
8980 \begin_layout Enumerate
8981 Switch to \SpecialChar LaTeX
8982  mode: 
8983 \family sans
8984 M-c
8985 \begin_inset space ~
8986 \end_inset
8987
8988 t
8989 \family default
8990 .
8991 \end_layout
8992
8993 \begin_layout Enumerate
8994 Enter 
8995 \family typewriter
8996
8997 \backslash
8998 parbox[b]{55mm}{
8999 \family default
9000 .
9001  
9002 \series bold
9003 Do not close the brace!
9004 \end_layout
9005
9006 \begin_layout Enumerate
9007 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
9008  mode and insert
9009  the closing brace: 
9010 \family sans
9011 M-c
9012 \begin_inset space ~
9013 \end_inset
9014
9015 t
9016 \family default
9017  
9018 \family typewriter
9019 }
9020 \family default
9021 .
9022 \end_layout
9023
9024 \begin_layout Standard
9025 Also, refer to the figures in the example paper.
9026 \end_layout
9027
9028 \begin_layout Subsection
9029 Referee layout
9030 \end_layout
9031
9032 \begin_layout Standard
9033 For submission, the paper has to be formated in a special double-spacing
9034  layout.
9035  For this purpose, you have to give the option 
9036 \family typewriter
9037 referee
9038 \family default
9039  to the documentclass.
9040  This must be done using the extra class options field in the 
9041 \family sans
9042 Document\SpecialChar menuseparator
9043 Settings
9044 \family default
9045  dialog.
9046  Just enter the string 
9047 \family typewriter
9048 referee
9049 \family default
9050  there.
9051 \end_layout
9052
9053 \begin_layout Subsection
9054 The example paper
9055 \end_layout
9056
9057 \begin_layout Standard
9058 The 
9059 \family sans
9060 Examples
9061 \family default
9062  directory contains an example paper written with \SpecialChar LyX
9063 .
9064  It is the example paper from the original macro package, translated to
9065  \SpecialChar LyX
9066 .
9067  Use it for inspiration, and compare the original \SpecialChar LaTeX
9068  code with \SpecialChar LyX
9069  way of writing.
9070 \end_layout
9071
9072 \begin_layout Section
9073 AAS\SpecialChar TeX
9074
9075 \end_layout
9076
9077 \begin_layout Standard
9078 by 
9079 \noun on
9080 Mike Ressler
9081 \end_layout
9082
9083 \begin_layout Subsection
9084 Introduction
9085 \end_layout
9086
9087 \begin_layout Standard
9088 AAS\SpecialChar TeX
9089  is a set of macros produced by the American Astronomical Society to
9090  facilitate electronic manuscript submission to the three journals they
9091  publish: the Astrophysical Journal (including the Letters and Supplement),
9092  the Astronomical Journal, and the Publications of the Astronomical Society
9093  of the Pacific.
9094  \SpecialChar LyX
9095  has proven to be an excellent tool for generating these documents, especially
9096  given its equation, citation, and figure handling capabilities.
9097  \SpecialChar LyX
9098  requires version 5.0 (or higher) of these macros; preferably 5.2, which
9099  is the version described here, or higher.
9100  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
9101 2.09 and are fundamentally
9102  incompatible with \SpecialChar LyX
9103 .
9104  The AAS\SpecialChar TeX
9105  package may be downloaded from the AAS\SpecialChar TeX
9106  Web site
9107 \end_layout
9108
9109 \begin_layout Standard
9110 \begin_inset VSpace medskip
9111 \end_inset
9112
9113
9114 \end_layout
9115
9116 \begin_layout Standard
9117 \align center
9118 \begin_inset Flex URL
9119 status collapsed
9120
9121 \begin_layout Plain Layout
9122
9123 https://aas.org/aastex/aastex-downloads
9124 \end_layout
9125
9126 \end_inset
9127
9128
9129 \end_layout
9130
9131 \begin_layout Standard
9132 \begin_inset VSpace medskip
9133 \end_inset
9134
9135
9136 \end_layout
9137
9138 \begin_layout Standard
9139 A complete user guide is contained in that package and you should familiarize
9140  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
9141 .
9142  \SpecialChar LyX
9143  will not reduce the need to figure out all the AAS\SpecialChar TeX
9144  commands, it will only
9145  reduce the drudgery of typing everything in.
9146  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
9147  document conforms
9148  completely to the requirements of the journal to which you are submitting
9149  your paper.
9150 \end_layout
9151
9152 \begin_layout Subsection
9153 Starting a New Paper
9154 \end_layout
9155
9156 \begin_layout Standard
9157 I strongly suggest that you start with the AAS\SpecialChar TeX
9158  template file.
9159  Click on 
9160 \family sans
9161 File\SpecialChar menuseparator
9162 New from
9163 \family default
9164  
9165 \family sans
9166 Template
9167 \family default
9168 , enter the new file name, then choose the 
9169 \family typewriter
9170 aastex.lyx
9171 \family default
9172  template.
9173  This will show the most common fields found in a manuscript.
9174  Simply overwrite the existing text (including the brackets, 
9175 \family typewriter
9176 <>
9177 \family default
9178 ) with the correct information.
9179  Many of the AAS\SpecialChar TeX
9180  commands and environments can be implemented directly in
9181  \SpecialChar LyX
9182 , but some cannot: most noticeably 
9183 \family typewriter
9184
9185 \backslash
9186 altaffilmark
9187 \family default
9188  and 
9189 \family typewriter
9190
9191 \backslash
9192 altaffiltext
9193 \family default
9194 , which should stick out like a sore thumb if you actually just opened the
9195  template file.
9196  For commands such as these, the \SpecialChar LaTeX
9197  code must be entered directly and marked
9198  as such.
9199  Such commands are referred to as \SpecialChar TeX
9200  code, or Evil Red Text.
9201  I tried to minimize the amount of \SpecialChar TeX
9202  code needed in an AAS\SpecialChar TeX
9203  document, but
9204  there is still a bit more required than any of us would like.
9205 \end_layout
9206
9207 \begin_layout Subsection
9208 Finishing Your Paper
9209 \end_layout
9210
9211 \begin_layout Standard
9212 When the paper is finished to your satisfaction and previews/prints correctly,
9213  there are a few 
9214 \begin_inset Quotes eld
9215 \end_inset
9216
9217 postprocessing
9218 \begin_inset Quotes erd
9219 \end_inset
9220
9221  actions which need to be done before you submit it to the journals.
9222  
9223 \end_layout
9224
9225 \begin_layout Enumerate
9226 Export your paper as a \SpecialChar LaTeX
9227  file (
9228 \family sans
9229 File\SpecialChar menuseparator
9230 Export\SpecialChar menuseparator
9231 \SpecialChar LaTeX
9232
9233 \family default
9234 ).
9235  
9236 \end_layout
9237
9238 \begin_layout Enumerate
9239 Edit the resulting 
9240 \family typewriter
9241 .tex
9242 \family default
9243  file with your favorite text editor
9244 \end_layout
9245
9246 \begin_deeper
9247 \begin_layout Enumerate
9248 remove the comment lines before the 
9249 \family typewriter
9250
9251 \backslash
9252 documentclass
9253 \family default
9254  command
9255 \end_layout
9256
9257 \begin_layout Enumerate
9258 remove the 
9259 \family typewriter
9260
9261 \backslash
9262 usepackage...{fontenc}
9263 \family default
9264  line if it appears (usually just after 
9265 \family typewriter
9266
9267 \backslash
9268 documentclass
9269 \family default
9270 }; also remove the 
9271 \family typewriter
9272
9273 \backslash
9274 secnumdepth
9275 \family default
9276  line if it appears.
9277 \end_layout
9278
9279 \begin_layout Enumerate
9280 remove everything between (and including) the 
9281 \family typewriter
9282
9283 \backslash
9284 makeatletter
9285 \family default
9286  and 
9287 \family typewriter
9288
9289 \backslash
9290 makeatother
9291 \family default
9292  commands, except for any commands you specifically put into the \SpecialChar LaTeX
9293  preamble
9294  (which should appear immediately after the 
9295 \begin_inset Quotes eld
9296 \end_inset
9297
9298 User specified \SpecialChar LaTeX
9299  commands
9300 \begin_inset Quotes erd
9301 \end_inset
9302
9303  comment in the 
9304 \family typewriter
9305 .tex
9306 \family default
9307  file).
9308 \end_layout
9309
9310 \end_deeper
9311 \begin_layout Enumerate
9312 Run the resulting file through \SpecialChar LaTeX
9313  to make sure it still processes correctly.
9314 \end_layout
9315
9316 \begin_layout Enumerate
9317 Reread the journal requirements to make sure your filenames and formats
9318  are correct.
9319 \end_layout
9320
9321 \begin_layout Enumerate
9322 Submit it.
9323 \end_layout
9324
9325 \begin_layout Subsection
9326 Comments On Specific Commands
9327 \end_layout
9328
9329 \begin_layout Standard
9330 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9331  commands: the
9332  AAS\SpecialChar TeX
9333  User Guide (
9334 \family typewriter
9335 aasguide.tex
9336 \family default
9337 ) gives a good description of each.
9338  Thus it's probably easiest for me to go down the list as found in the guide
9339  and offer comments where necessary.
9340  So let's begin \SpecialChar ldots
9341
9342 \end_layout
9343
9344 \begin_layout Subsubsection
9345 Things that work as expected
9346 \end_layout
9347
9348 \begin_layout Standard
9349 Because they work as you might expect, I simply list them and the section
9350  they are found in: 
9351 \family typewriter
9352
9353 \backslash
9354 documentclass
9355 \family default
9356  (2.1.1), 
9357 \family typewriter
9358
9359 \backslash
9360 begin{document}
9361 \family default
9362  (2.2), 
9363 \family typewriter
9364
9365 \backslash
9366 title
9367 \family default
9368  (2.3), 
9369 \family typewriter
9370
9371 \backslash
9372 author
9373 \family default
9374  (2.3), 
9375 \family typewriter
9376
9377 \backslash
9378 affil
9379 \family default
9380  (2.3), 
9381 \family typewriter
9382
9383 \backslash
9384 abstract
9385 \family default
9386  (2.4), 
9387 \family typewriter
9388
9389 \backslash
9390 keywords
9391 \family default
9392  (2.5), 
9393 \family typewriter
9394
9395 \backslash
9396 section
9397 \family default
9398  (2.7), 
9399 \family typewriter
9400
9401 \backslash
9402 subsection
9403 \family default
9404  (2.7), 
9405 \family typewriter
9406
9407 \backslash
9408 subsubsection
9409 \family default
9410  (2.7), 
9411 \family typewriter
9412
9413 \backslash
9414 paragraph
9415 \family default
9416  (2.7), 
9417 \family typewriter
9418
9419 \backslash
9420 facility
9421 \family default
9422  (2.10), 
9423 \family typewriter
9424
9425 \backslash
9426 begin{displaymath}
9427 \family default
9428  (2.12), 
9429 \family typewriter
9430
9431 \backslash
9432 begin{equation}
9433 \family default
9434  (2.12), 
9435 \family typewriter
9436
9437 \backslash
9438 begin{eqnarray}
9439 \family default
9440  (2.12), 
9441 \family typewriter
9442
9443 \backslash
9444 begin{mathletters}
9445 \family default
9446  (2.12), 
9447 \family typewriter
9448
9449 \backslash
9450 begin{thebibliography}
9451 \family default
9452  (2.13.1), 
9453 \family typewriter
9454
9455 \backslash
9456 bibitem
9457 \family default
9458  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9459  graphicx figure commands (2.14.1), 
9460 \family typewriter
9461
9462 \backslash
9463 begin{table}
9464 \family default
9465  (2.15.4), 
9466 \family typewriter
9467
9468 \backslash
9469 begin{tabular}
9470 \family default
9471  (2.15.4), 
9472 \family typewriter
9473
9474 \backslash
9475 caption
9476 \family default
9477  (2.15.4), 
9478 \family typewriter
9479
9480 \backslash
9481 label
9482 \family default
9483  (2.15.4, amongst other places), 
9484 \family typewriter
9485
9486 \backslash
9487 tablerefs
9488 \family default
9489  (2.15.5), 
9490 \family typewriter
9491
9492 \backslash
9493 tablecomments
9494 \family default
9495  (2.15.5), 
9496 \family typewriter
9497
9498 \backslash
9499 url
9500 \family default
9501  (2.17.4), 
9502 \family typewriter
9503
9504 \backslash
9505 end{document}
9506 \family default
9507  (2.18).
9508 \end_layout
9509
9510 \begin_layout Standard
9511 The following style options also work correctly: 
9512 \family typewriter
9513 longabstract
9514 \family default
9515  (2.4), 
9516 \family typewriter
9517 preprint
9518 \family default
9519  (3.2.1), 
9520 \family typewriter
9521 preprint2
9522 \family default
9523  (3.2.2), 
9524 \family typewriter
9525 eqsecnum
9526 \family default
9527  (3.3), 
9528 \family typewriter
9529 flushrt
9530 \family default
9531  (3.4).
9532  Simply put them in the 
9533 \family sans
9534 Options
9535 \family default
9536  box in 
9537 \family sans
9538 Layout\SpecialChar menuseparator
9539 Document
9540 \family default
9541 .
9542 \end_layout
9543
9544 \begin_layout Subsubsection
9545 Things that work, but require more comment
9546 \end_layout
9547
9548 \begin_layout Standard
9549 The following items work, but require a little more discussion:
9550 \end_layout
9551
9552 \begin_layout Itemize
9553 These items are reserved for use by the journal editors, but you can put
9554  them into the \SpecialChar LaTeX
9555  preamble if you feel compelled to do so: 
9556 \family typewriter
9557
9558 \backslash
9559 received
9560 \family default
9561
9562 \family typewriter
9563
9564 \backslash
9565 revised
9566 \family default
9567
9568 \family typewriter
9569
9570 \backslash
9571 accepted
9572 \family default
9573
9574 \family typewriter
9575
9576 \backslash
9577 ccc
9578 \family default
9579
9580 \family typewriter
9581
9582 \backslash
9583 cpright
9584 \family default
9585  (all from 2.1.3)
9586 \end_layout
9587
9588 \begin_layout Itemize
9589 These items may be placed in the \SpecialChar LaTeX
9590  preamble, and are included as blanks in
9591  the template file: 
9592 \family typewriter
9593
9594 \backslash
9595 slugcomment
9596 \family default
9597  (2.1.4), 
9598 \family typewriter
9599
9600 \backslash
9601 shorttitle
9602 \family default
9603  (2.1.5), 
9604 \family typewriter
9605
9606 \backslash
9607 shortauthors
9608 \family default
9609  (2.1.5)
9610 \end_layout
9611
9612 \begin_layout Itemize
9613
9614 \family typewriter
9615
9616 \backslash
9617 email
9618 \family default
9619  (2.3) – can only be used 
9620 \begin_inset Quotes eld
9621 \end_inset
9622
9623 standalone
9624 \begin_inset Quotes erd
9625 \end_inset
9626
9627 , not in the middle of a paragraph.
9628  Use \SpecialChar TeX
9629  code if you need to embed it.
9630 \end_layout
9631
9632 \begin_layout Itemize
9633
9634 \family typewriter
9635
9636 \backslash
9637 and
9638 \family default
9639  (2.3) – will have extra {} after it.
9640  This should not cause an error.
9641 \end_layout
9642
9643 \begin_layout Itemize
9644
9645 \family typewriter
9646
9647 \backslash
9648 notetoeditor
9649 \family default
9650  (2.6) – can only be used 
9651 \begin_inset Quotes eld
9652 \end_inset
9653
9654 standalone
9655 \begin_inset Quotes erd
9656 \end_inset
9657
9658 , not in the middle of a paragraph.
9659  Use \SpecialChar TeX
9660  code if you need to embed it.
9661 \end_layout
9662
9663 \begin_layout Itemize
9664
9665 \family typewriter
9666
9667 \backslash
9668 placetable
9669 \family default
9670  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9671  hand
9672 \end_layout
9673
9674 \begin_layout Itemize
9675
9676 \family typewriter
9677
9678 \backslash
9679 placefigure
9680 \family default
9681  (2.8) – same as for 
9682 \family typewriter
9683
9684 \backslash
9685 placetable
9686 \end_layout
9687
9688 \begin_layout Itemize
9689
9690 \family typewriter
9691
9692 \backslash
9693 acknowledgements
9694 \family default
9695  (2.9) – will have extra {} after it.
9696  This should not cause an error.
9697 \end_layout
9698
9699 \begin_layout Itemize
9700
9701 \family typewriter
9702
9703 \backslash
9704 appendix
9705 \family default
9706  (2.11) – will have extra {} after it.
9707  This should not cause an error.
9708 \end_layout
9709
9710 \begin_layout Itemize
9711
9712 \family typewriter
9713
9714 \backslash
9715 figcaption
9716 \family default
9717  (2.14.2) – you can insert an optional filename argument by placing the cursor
9718  at the beginning of the text and selecting 
9719 \family sans
9720 Insert\SpecialChar menuseparator
9721 Short Title
9722 \family default
9723 .
9724  
9725 \begin_inset Quotes eld
9726 \end_inset
9727
9728 Short Title
9729 \begin_inset Quotes erd
9730 \end_inset
9731
9732  inserts an optional argument of the type needed by 
9733 \family typewriter
9734
9735 \backslash
9736 figcaption
9737 \family default
9738 .
9739  Hopefully it will be renamed someday.
9740 \end_layout
9741
9742 \begin_layout Itemize
9743
9744 \family typewriter
9745
9746 \backslash
9747 objectname
9748 \family default
9749  (2.17.1) – same as 
9750 \family typewriter
9751
9752 \backslash
9753 figcaption
9754 \family default
9755  for the catalog ID optional parameter
9756 \end_layout
9757
9758 \begin_layout Itemize
9759
9760 \family typewriter
9761
9762 \backslash
9763 dataset
9764 \family default
9765  (2.17.1) – same as 
9766 \family typewriter
9767
9768 \backslash
9769 figcaption
9770 \family default
9771  for the catalog ID optional parameter
9772 \end_layout
9773
9774 \begin_layout Subsubsection
9775 Things not implemented, use \SpecialChar TeX
9776  code
9777 \end_layout
9778
9779 \begin_layout Standard
9780
9781 \family typewriter
9782
9783 \backslash
9784 altaffilmark
9785 \family default
9786  (2.3), 
9787 \family typewriter
9788
9789 \backslash
9790 altaffiltext
9791 \family default
9792  (2.3), 
9793 \family typewriter
9794
9795 \backslash
9796 eqnum
9797 \family default
9798  (2.12), 
9799 \family typewriter
9800
9801 \backslash
9802 setcounter{equation}
9803 \family default
9804  (2.12), Journal name abbreviations (2.13.4), 
9805 \family typewriter
9806
9807 \backslash
9808 figurenum
9809 \family default
9810  (2.14.1), 
9811 \family typewriter
9812
9813 \backslash
9814 epsscale
9815 \family default
9816  (2.14.1), 
9817 \family typewriter
9818
9819 \backslash
9820 plotone
9821 \family default
9822  (2.14.1), 
9823 \family typewriter
9824
9825 \backslash
9826 plottwo
9827 \family default
9828  (2.14.1), 
9829 \family typewriter
9830
9831 \backslash
9832 tablenum
9833 \family default
9834  (2.15.4), 
9835 \family typewriter
9836
9837 \backslash
9838 tableline
9839 \family default
9840  (2.15.4, insert it as the first element in the lefthand cell after where
9841  you want it.
9842  Don't use any of \SpecialChar LyX
9843 's rules in the table), 
9844 \family typewriter
9845
9846 \backslash
9847 tablenotemark
9848 \family default
9849  (2.15.5), 
9850 \family typewriter
9851
9852 \backslash
9853 tablenotetext
9854 \family default
9855  (2.15.5), much of Misc (2.17, except 
9856 \family typewriter
9857
9858 \backslash
9859 objectname
9860 \family default
9861
9862 \family typewriter
9863
9864 \backslash
9865 dataset
9866 \family default
9867
9868 \family typewriter
9869
9870 \backslash
9871 url
9872 \family default
9873 , and 
9874 \family typewriter
9875
9876 \backslash
9877 email
9878 \family default
9879 ; see above), 
9880 \family typewriter
9881
9882 \backslash
9883 singlespace
9884 \family default
9885  (3.1), 
9886 \family typewriter
9887
9888 \backslash
9889 doublespace
9890 \family default
9891  (3.1), 
9892 \family typewriter
9893
9894 \backslash
9895 onecolumn
9896 \family default
9897  (3.2), 
9898 \family typewriter
9899
9900 \backslash
9901 twocolumn
9902 \family default
9903  (3.2)
9904 \end_layout
9905
9906 \begin_layout Subsubsection
9907 Things that cannot be implemented
9908 \end_layout
9909
9910 \begin_layout Standard
9911 \SpecialChar ldots
9912  at least in any meaningful sort of way, so I suggest ignoring them.
9913  They are the references environment (2.13.3), and the deluxetable environment
9914  (2.15).
9915  If you really, really need to use deluxetable, I suggest editing it in
9916  a separate file with a text editor, then using 
9917 \family sans
9918 Insert\SpecialChar menuseparator
9919 Child
9920 \begin_inset space ~
9921 \end_inset
9922
9923 Document
9924 \family default
9925  to include it in your \SpecialChar LyX
9926  document.
9927  See the 
9928 \family typewriter
9929 aas_sample.lyx
9930 \family default
9931  file to see an example of this.
9932 \end_layout
9933
9934 \begin_layout Subsection
9935 FAQs, Tips, Tricks, and Other Ruminations
9936 \end_layout
9937
9938 \begin_layout Subsubsection
9939 Getting \SpecialChar LyX
9940  and AAS\SpecialChar TeX
9941  to cooperate
9942 \end_layout
9943
9944 \begin_layout Standard
9945 It can be a bit tricky to get \SpecialChar LyX
9946  to recognize a new layout and document class.
9947  When all else fails, do this:
9948 \end_layout
9949
9950 \begin_layout Enumerate
9951 Make certain that \SpecialChar LaTeX
9952  can find AAS\SpecialChar TeX
9953 .
9954  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9955  distribution into a
9956  directory completely unrelated to \SpecialChar LaTeX
9957  or AAS\SpecialChar TeX
9958  and run \SpecialChar LaTeX
9959  on 
9960 \family typewriter
9961 sample.tex
9962 \family default
9963 .
9964 \end_layout
9965
9966 \begin_layout Enumerate
9967 Make certain that 
9968 \family typewriter
9969 aastex.layout
9970 \family default
9971  appears in \SpecialChar LyX
9972 's 
9973 \family typewriter
9974 layouts
9975 \family default
9976  folder
9977 \end_layout
9978
9979 \begin_layout Enumerate
9980 Rerun 
9981 \family sans
9982 Tools\SpecialChar menuseparator
9983 Reconfigure
9984 \family default
9985  in \SpecialChar LyX
9986 , then restart \SpecialChar LyX
9987 .
9988 \end_layout
9989
9990 \begin_layout Enumerate
9991 Open a regular new file, not from a template.
9992  Does AAS\SpecialChar TeX
9993  appear in the class list in 
9994 \family sans
9995 Document\SpecialChar menuseparator
9996 Settings
9997 \family default
9998 ?
9999 \end_layout
10000
10001 \begin_layout Standard
10002 If you get a warning from an existing AAS\SpecialChar TeX
10003  document about not being able
10004  to find the AAS\SpecialChar TeX
10005  layout or a message about 
10006 \begin_inset Quotes eld
10007 \end_inset
10008
10009 You should not mix title layouts with normal ones
10010 \begin_inset Quotes erd
10011 \end_inset
10012
10013 , things haven't been installed correctly.
10014 \end_layout
10015
10016 \begin_layout Subsubsection
10017 \SpecialChar LaTeX
10018  error processing a table 
10019 \end_layout
10020
10021 \begin_layout Standard
10022 \SpecialChar LyX
10023 , by default, attempts to center the table caption/title.
10024  This seems to produce a bad interaction in AAS\SpecialChar TeX
10025  so you should click somewhere
10026  in the caption/title, then select 
10027 \family sans
10028 Edit\SpecialChar menuseparator
10029 Paragraph
10030 \begin_inset space ~
10031 \end_inset
10032
10033 Settings
10034 \family default
10035 , then set the 
10036 \family sans
10037 Alignment
10038 \family default
10039  to 
10040 \family sans
10041 Block
10042 \family default
10043 .
10044  This took care of it for me.
10045 \end_layout
10046
10047 \begin_layout Subsubsection
10048 References
10049 \end_layout
10050
10051 \begin_layout Standard
10052 A couple of things: 1) I have noticed some funny spacing in the reference
10053  entries in the text.
10054  When you enter the bibliography item data, make sure their is 
10055 \emph on
10056 no
10057 \emph default
10058  space between the last author and the parenthesis setting off the year;
10059  
10060 \emph on
10061 e.
10062 \begin_inset space \thinspace{}
10063 \end_inset
10064
10065 g.
10066 \begin_inset space \space{}
10067 \end_inset
10068
10069
10070 \emph default
10071 type 
10072 \family typewriter
10073 Ressler(1992)
10074 \family default
10075 , not 
10076 \family typewriter
10077 Ressler (1992)
10078 \family default
10079 .
10080  2) Entering the references at all is not obvious.
10081  The easiest thing is to start typing your first reference at the end of
10082  the document, then mark it as type 
10083 \family sans
10084 References
10085 \family default
10086 .
10087  That will put a small gray box in front of what you just typed.
10088  Click on the box to fill in the rest of the information.
10089  For new references, go to the end of an existing reference and press return.
10090  That will create a new line with its own box, etc.
10091 \end_layout
10092
10093 \begin_layout Subsubsection
10094 Including EPS files
10095 \end_layout
10096
10097 \begin_layout Standard
10098 Even though AAS\SpecialChar TeX
10099  provides its own figure commands (
10100 \family typewriter
10101
10102 \backslash
10103 plotone
10104 \family default
10105 , for example), I much prefer \SpecialChar LaTeX
10106 's standard figure commands (with the default
10107  graphicx).
10108  You can insert the 
10109 \family typewriter
10110
10111 \backslash
10112 plotone
10113 \family default
10114 , etc.
10115 \begin_inset space ~
10116 \end_inset
10117
10118 commands as \SpecialChar TeX
10119  code into a Figure Float box if you desire, but I never have
10120  much luck getting the layout right.
10121  With the standard graphics, \SpecialChar LyX
10122  will insert a 
10123 \family typewriter
10124
10125 \backslash
10126 usepackage{graphicx}
10127 \family default
10128  command into the \SpecialChar LaTeX
10129  preamble and handle the figures in the standard \SpecialChar LaTeX2e
10130  way,
10131  interspersing the figures in the text.
10132  I believe ApJ accepts figures exactly this way now; AJ might still use
10133  the 
10134 \begin_inset Quotes eld
10135 \end_inset
10136
10137 stack everything at the end
10138 \begin_inset Quotes erd
10139 \end_inset
10140
10141  technique.
10142 \end_layout
10143
10144 \begin_layout Subsubsection
10145 Things I could have done, but didn't
10146 \end_layout
10147
10148 \begin_layout Standard
10149 There are a few 
10150 \begin_inset Quotes eld
10151 \end_inset
10152
10153 pretty
10154 \begin_inset Quotes erd
10155 \end_inset
10156
10157  things I could have implemented, but chose not to.
10158  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
10159  window,
10160  even though it is double-spaced in the paper manuscript.
10161  Also, I chose not to make separate layouts for the preprint and preprint2
10162  styles.
10163  Since I assume you will spend most of your time in the plain manuscript
10164  mode anyway, I decided not to chew up more disk space with this.
10165  
10166 \end_layout
10167
10168 \begin_layout Subsection
10169 Final Caveat
10170 \end_layout
10171
10172 \begin_layout Standard
10173 Your mileage may vary.
10174  I've now had papers published by both ApJ and AJ that have had 98% of the
10175  effort done in \SpecialChar LyX
10176 ; the last 2% was the \SpecialChar LaTeX
10177  post-processing and a few cleanups.
10178  I have had no trouble with the submission process, and I'm sure the journals
10179  were never aware that there might be a difference.
10180  So, go forth and publish!
10181 \end_layout
10182
10183 \begin_layout Section
10184 AMS \SpecialChar LaTeX
10185
10186 \end_layout
10187
10188 \begin_layout Standard
10189 by 
10190 \noun on
10191 David Johnson
10192 \noun default
10193 ; updated by 
10194 \noun on
10195 Richard Heck
10196 \end_layout
10197
10198 \begin_layout Standard
10199 \begin_inset VSpace bigskip
10200 \end_inset
10201
10202
10203 \end_layout
10204
10205 \begin_layout Standard
10206 \noindent
10207 The AMS \SpecialChar LaTeX
10208  layouts are set up to conform to suggested styles for mathematical
10209  papers to be submitted to American Mathematical Society publications.
10210  The layouts are not tailored to a specific journal, but easily can be.
10211  You should refer to the AMS documentation for specific instructions for
10212  each journal (usually it will entail only changing a single line in the
10213  \SpecialChar TeX
10214  output).
10215  That documentation is available on the Web at 
10216 \begin_inset Flex URL
10217 status open
10218
10219 \begin_layout Plain Layout
10220
10221 http://www.ams.org
10222 \end_layout
10223
10224 \end_inset
10225
10226  or by ftp at 
10227 \begin_inset Flex URL
10228 status open
10229
10230 \begin_layout Plain Layout
10231
10232 ftp://ftp.ams.org/pub/tex/amslatex/
10233 \end_layout
10234
10235 \end_inset
10236
10237 .
10238  These layouts are appropriate, and useful, for any mathematical writing.
10239  
10240 \end_layout
10241
10242 \begin_layout Standard
10243 There are two basic AMS \SpecialChar LaTeX
10244  layouts: 
10245 \end_layout
10246
10247 \begin_layout Itemize
10248 amsart: The standard AMS article format.
10249 \end_layout
10250
10251 \begin_layout Itemize
10252 amsbook: the standard AMS book (really, monograph) format.
10253  
10254 \end_layout
10255
10256 \begin_layout Standard
10257 The layouts themselves contain only the minimum necessary to use the AMS
10258  classes.
10259  They do not, in particular, contain any of the `theorem' environments used
10260  for setting theorems, lemmas, and the like.
10261  These are contained, instead, in the 
10262 \begin_inset Flex Code
10263 status collapsed
10264
10265 \begin_layout Plain Layout
10266 Theorems (AMS)
10267 \end_layout
10268
10269 \end_inset
10270
10271  module, which is loaded by default when you select one of the AMS classes.
10272  (It can also be used with other classes and can be removed, if you would
10273  rather use something else.) Less commonly used environments are in the 
10274 \begin_inset Flex Code
10275 status collapsed
10276
10277 \begin_layout Plain Layout
10278 Theorems (AMS-Extended)
10279 \end_layout
10280
10281 \end_inset
10282
10283  module, which must be loaded manually.
10284 \end_layout
10285
10286 \begin_layout Standard
10287 By default, theorems and the like are numbered consecutively throughout
10288  the document, but this may be modified by loading the module 
10289 \begin_inset Flex Code
10290 status collapsed
10291
10292 \begin_layout Plain Layout
10293 Theorems (Order by Section)
10294 \end_layout
10295
10296 \end_inset
10297
10298  or, if you are using 
10299 \begin_inset Flex Code
10300 status collapsed
10301
10302 \begin_layout Plain Layout
10303 book (AMS)
10304 \end_layout
10305
10306 \end_inset
10307
10308 , the module 
10309 \begin_inset Flex Code
10310 status collapsed
10311
10312 \begin_layout Plain Layout
10313 Theorems (Order by Chapter)
10314 \end_layout
10315
10316 \end_inset
10317
10318 .
10319  These will number the results as 
10320 \begin_inset Formula $n.m$
10321 \end_inset
10322
10323 , where the first number refers to the section (or chapter) and the second
10324  refers to the total number of results so far in that section (or chapter).
10325  Many environments are also available unnumbered.
10326  These are indicated by an asterisk at the end.
10327  If you happen to want 
10328 \emph on
10329 only
10330 \emph default
10331  unnumbered results, the module 
10332 \begin_inset Flex Code
10333 status collapsed
10334
10335 \begin_layout Plain Layout
10336 Theorems (Starred)
10337 \end_layout
10338
10339 \end_inset
10340
10341  provides that option.
10342 \end_layout
10343
10344 \begin_layout Standard
10345 Note that these modules do not 
10346 \emph on
10347 have
10348 \emph default
10349  to be used with the AMS classes.
10350  It is perfectly possible to use the 
10351 \begin_inset Flex Code
10352 status collapsed
10353
10354 \begin_layout Plain Layout
10355 Theorems (AMS)
10356 \end_layout
10357
10358 \end_inset
10359
10360  module, and the others mentioned, with other classes, such as 
10361 \begin_inset Flex Code
10362 status collapsed
10363
10364 \begin_layout Plain Layout
10365 article
10366 \end_layout
10367
10368 \end_inset
10369
10370
10371 \begin_inset Flex Code
10372 status collapsed
10373
10374 \begin_layout Plain Layout
10375 report
10376 \end_layout
10377
10378 \end_inset
10379
10380
10381 \begin_inset Flex Code
10382 status collapsed
10383
10384 \begin_layout Plain Layout
10385 book (KOMA-script)
10386 \end_layout
10387
10388 \end_inset
10389
10390 , and so forth.
10391 \end_layout
10392
10393 \begin_layout Subsection
10394 What these layouts provide
10395 \end_layout
10396
10397 \begin_layout Standard
10398 There is a long list of included environments provided by these layouts.
10399  In AMS-\SpecialChar LaTeX
10400 , there is, in fact, an opportunity to define an unlimited variety
10401  of `theorem' environments.
10402  However, the AMS recommends the environments that are available in \SpecialChar LyX
10403 .
10404  
10405 \end_layout
10406
10407 \begin_layout Standard
10408 The following environments—as well as the standard environments, such as
10409  
10410 \begin_inset Flex Noun
10411 status collapsed
10412
10413 \begin_layout Plain Layout
10414 section
10415 \end_layout
10416
10417 \end_inset
10418
10419
10420 \begin_inset Flex Noun
10421 status collapsed
10422
10423 \begin_layout Plain Layout
10424 bibliography
10425 \end_layout
10426
10427 \end_inset
10428
10429
10430 \begin_inset Flex Noun
10431 status collapsed
10432
10433 \begin_layout Plain Layout
10434 title
10435 \end_layout
10436
10437 \end_inset
10438
10439
10440 \begin_inset Flex Noun
10441 status collapsed
10442
10443 \begin_layout Plain Layout
10444 author
10445 \end_layout
10446
10447 \end_inset
10448
10449 , and 
10450 \begin_inset Flex Noun
10451 status collapsed
10452
10453 \begin_layout Plain Layout
10454 date
10455 \end_layout
10456
10457 \end_inset
10458
10459 —are provided by 
10460 \begin_inset Flex Code
10461 status collapsed
10462
10463 \begin_layout Plain Layout
10464 article (AMS)
10465 \end_layout
10466
10467 \end_inset
10468
10469  and 
10470 \begin_inset Flex Code
10471 status collapsed
10472
10473 \begin_layout Plain Layout
10474 book (AMS)
10475 \end_layout
10476
10477 \end_inset
10478
10479 :
10480 \end_layout
10481
10482 \begin_layout Description
10483 Address This should be the author's permanent address.
10484 \end_layout
10485
10486 \begin_layout Description
10487 Current
10488 \begin_inset space ~
10489 \end_inset
10490
10491 Address This should be the author's temporary address at the time of submission,
10492  if different from the Address.
10493 \end_layout
10494
10495 \begin_layout Description
10496 Email Author's e-mail address
10497 \end_layout
10498
10499 \begin_layout Description
10500 URL Author's Web address, if desired.
10501 \end_layout
10502
10503 \begin_layout Description
10504 Keywords Key words or phrases used to identify specific topics discussed
10505  in the paper.
10506 \end_layout
10507
10508 \begin_layout Description
10509 Subjectclass These refer to the AMS Subject Classifications, published and
10510  described in 
10511 \emph on
10512 Mathematical Reviews
10513 \emph default
10514 .
10515  These are also available online at the AMS cites listed above.
10516 \end_layout
10517
10518 \begin_layout Description
10519 Thanks
10520 \end_layout
10521
10522 \begin_layout Description
10523 Dedicatory
10524 \end_layout
10525
10526 \begin_layout Description
10527 Translator
10528 \end_layout
10529
10530 \begin_layout Standard
10531 The following environments are provided by both the 
10532 \begin_inset Flex Code
10533 status collapsed
10534
10535 \begin_layout Plain Layout
10536 Theorems
10537 \end_layout
10538
10539 \end_inset
10540
10541  and 
10542 \begin_inset Flex Code
10543 status collapsed
10544
10545 \begin_layout Plain Layout
10546 Theorems (AMS)
10547 \end_layout
10548
10549 \end_inset
10550
10551  modules, in the latter case in both starred (unnumbered) and unstarred
10552  (numbered) versions.
10553  These same environments are provided only in the starred versions by the
10554  
10555 \begin_inset Flex Code
10556 status collapsed
10557
10558 \begin_layout Plain Layout
10559 Theorems (Starred)
10560 \end_layout
10561
10562 \end_inset
10563
10564  module:
10565 \end_layout
10566
10567 \begin_layout Theorem
10568 This is typically used for the statements of major results.
10569  
10570 \end_layout
10571
10572 \begin_layout Corollary*
10573 This is used for statements which follow fairly directly from previous statement
10574 s.
10575  Again, these can be major results.
10576  
10577 \end_layout
10578
10579 \begin_layout Lemma
10580 These are smaller results needed to prove other statements.
10581 \end_layout
10582
10583 \begin_layout Proposition
10584 These are less major results which (hopefully) add to the general theory
10585  being discussed.
10586 \end_layout
10587
10588 \begin_layout Conjecture
10589 These are statements provided without justification, which the author does
10590  not know how to prove, but which seem to be true (to the author, at least).
10591 \end_layout
10592
10593 \begin_layout Definition*
10594 Guess what this is for.
10595  The font is different for this environment than for the previous ones.
10596  
10597 \end_layout
10598
10599 \begin_layout Example*
10600 Used for examples illustrating proven results.
10601 \end_layout
10602
10603 \begin_layout Problem
10604 It's not really known what this is for.
10605  You should figure it out.
10606 \end_layout
10607
10608 \begin_layout Exercise*
10609 Write a description for this one.
10610 \end_layout
10611
10612 \begin_layout Remark
10613 This environment is also a type of theorem, usually a lesser sort of observation.
10614 \end_layout
10615
10616 \begin_layout Claim*
10617 Often used in the course of giving a proof of a larger result.
10618 \end_layout
10619
10620 \begin_layout Case
10621 Generally, these are used to break up long arguments, using specific instances
10622  of some condition.
10623  
10624 \end_layout
10625
10626 \begin_layout Case
10627 The numbering scheme for cases is on its own, not together with other numbered
10628  statements.
10629  
10630 \end_layout
10631
10632 \begin_layout Proof
10633 At the end of this environment, a QED symbol (usually a square, but it can
10634  vary with different styles) is placed.
10635  If you want to have other environments within this one—for example, Case
10636  environments—and have the QED symbol appear only after them, then the other
10637  environments need to be nested within the proof environment.
10638  See the section 
10639 \emph on
10640 Nesting Environments
10641 \emph default
10642  of the 
10643 \emph on
10644 User's Guide
10645 \emph default
10646  for information on nesting.
10647 \end_layout
10648
10649 \begin_layout Standard
10650 And these environments are provided by 
10651 \begin_inset Flex Code
10652 status collapsed
10653
10654 \begin_layout Plain Layout
10655 Theorems (AMS-Extended)
10656 \end_layout
10657
10658 \end_inset
10659
10660 :
10661 \end_layout
10662
10663 \begin_layout Criterion*
10664 A required condition.
10665 \end_layout
10666
10667 \begin_layout Algorithm*
10668 A general procedure to be used.
10669 \end_layout
10670
10671 \begin_layout Axiom*
10672 This is a property or statement taken as true within the system being discussed.
10673 \end_layout
10674
10675 \begin_layout Condition*
10676 Sometimes used to state a condition assumed within the present context of
10677  discussion.
10678 \end_layout
10679
10680 \begin_layout Note*
10681 Similar to a Remark.
10682 \end_layout
10683
10684 \begin_layout Notation*
10685 Used for the explanation of, yes, notation.
10686 \end_layout
10687
10688 \begin_layout Summary
10689 Do we really need to tell you? 
10690 \end_layout
10691
10692 \begin_layout Acknowledgement*
10693 Acknowledgement.
10694 \end_layout
10695
10696 \begin_layout Conclusion*
10697 Sometimes used at the end of a long train of argument.
10698 \end_layout
10699
10700 \begin_layout Fact
10701 Used in a way similar to Proposition, though perhaps lower on the scale.
10702 \end_layout
10703
10704 \begin_layout Standard
10705 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10706  and AMS fonts
10707  packages.
10708  They need to be available on your system in order to use these environments.
10709 \end_layout
10710
10711 \begin_layout Section
10712 AGU journals (
10713 \family sans
10714 aguplus
10715 \family default
10716 )
10717 \end_layout
10718
10719 \begin_layout Standard
10720 by 
10721 \shape smallcaps
10722 Martin Vermeer
10723 \end_layout
10724
10725 \begin_layout Subsection
10726 Description
10727 \end_layout
10728
10729 \begin_layout Standard
10730 These are the layout files for some of the journals of the American Geophysical
10731  Society.
10732  It is assumed that you have both the AGU's own class files and AGUplus
10733  installed (everything to be found at
10734 \begin_inset Flex URL
10735 status collapsed
10736
10737 \begin_layout Plain Layout
10738
10739 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10740 \end_layout
10741
10742 \end_inset
10743
10744 ).
10745 \end_layout
10746
10747 \begin_layout Subsection
10748 New styles
10749 \end_layout
10750
10751 \begin_layout Standard
10752 Redefined are 
10753 \family sans
10754 Paragraph
10755 \family default
10756
10757 \family sans
10758 Paragraph*
10759 \family default
10760 .
10761  They are still called this in the \SpecialChar LyX
10762  GUI, though their \SpecialChar LaTeX
10763  equivalents in the
10764  AGU classes are 
10765 \family sans
10766 Subsubsubsection
10767 \family default
10768  and 
10769 \family sans
10770 Subsubsubsection*
10771 \family default
10772 .
10773 \end_layout
10774
10775 \begin_layout Standard
10776 Newly defined styles are 
10777 \family sans
10778 Left_Header
10779 \family default
10780
10781 \family sans
10782 Right_Header
10783 \family default
10784
10785 \family sans
10786 Received
10787 \family default
10788
10789 \family sans
10790 Revised
10791 \family default
10792
10793 \family sans
10794 Accepted
10795 \family default
10796
10797 \family sans
10798 CCC
10799 \family default
10800
10801 \family sans
10802 PaperId
10803 \family default
10804
10805 \family sans
10806 AuthorAddr
10807 \family default
10808
10809 \family sans
10810 SlugComment
10811 \family default
10812 .
10813  These are mostly manuscript attributes and defined in the AGU class documentati
10814 on.
10815 \end_layout
10816
10817 \begin_layout Standard
10818 I suspect this is still badly incomplete.
10819 \end_layout
10820
10821 \begin_layout Subsection
10822 New floats
10823 \end_layout
10824
10825 \begin_layout Standard
10826
10827 \family sans
10828 Planotable
10829 \family default
10830  and 
10831 \family sans
10832 Plate
10833 \family default
10834 .
10835  We also have a new 
10836 \family sans
10837 Table_Caption
10838 \family default
10839 .
10840 \end_layout
10841
10842 \begin_layout Subsection
10843 Supported journals
10844 \end_layout
10845
10846 \begin_layout Itemize
10847
10848 \emph on
10849 Journal of Geophysical Research
10850 \emph default
10851
10852 \family typewriter
10853 jgrga.layout
10854 \family default
10855  — Martin Vermeer
10856 \end_layout
10857
10858 \begin_layout Standard
10859 Add your own, it isn't so hard! Look at the 
10860 \family typewriter
10861 jgrga.layout
10862 \family default
10863  example and 
10864 \family typewriter
10865 aguplus.inc
10866 \family default
10867 .
10868 \end_layout
10869
10870 \begin_layout Subsection
10871 Bugs and things to remember
10872 \end_layout
10873
10874 \begin_layout Standard
10875 In order to use the new layouts, you must remember to do the following for
10876  a new document:
10877 \end_layout
10878
10879 \begin_layout Enumerate
10880
10881 \emph on
10882 Turn off babel
10883 \emph default
10884 .
10885  This can be done in the 
10886 \family sans
10887 Layout\SpecialChar menuseparator
10888 Document
10889 \family default
10890  or 
10891 \family sans
10892 Document\SpecialChar menuseparator
10893 Settings
10894 \family default
10895  menu item.
10896  (AGU articles are always in English, right? So 
10897 \emph on
10898 don't
10899 \emph default
10900  choose a language.)
10901 \end_layout
10902
10903 \begin_layout Enumerate
10904 Enter 
10905 \family typewriter
10906 jgrga
10907 \family default
10908  into the document's 
10909 \family sans
10910 Extra Options
10911 \family default
10912  field.
10913  (Yes, this is a bug.)
10914 \end_layout
10915
10916 \begin_layout Enumerate
10917 Make sure you use the 
10918 \family typewriter
10919 agu.bst
10920 \family default
10921  bibliography style, by entering 
10922 \family sans
10923 agu
10924 \family default
10925  into the second field of the Bib\SpecialChar TeX
10926  inset.
10927  None of the standard styles will do.
10928 \end_layout
10929
10930 \begin_layout Section
10931 Broadway
10932 \end_layout
10933
10934 \begin_layout Standard
10935 by 
10936 \shape smallcaps
10937 Garst Reese
10938 \end_layout
10939
10940 \begin_layout Subsection
10941 Introduction
10942 \end_layout
10943
10944 \begin_layout Standard
10945 Broadway is for writing plays.
10946  The format is more decorative than Hollywood, and much less standardized.
10947  This format should be suitable for workshops.
10948 \end_layout
10949
10950 \begin_layout Subsection
10951 Special problems
10952 \end_layout
10953
10954 \begin_layout Standard
10955 The same as in Hollywood.
10956 \end_layout
10957
10958 \begin_layout Subsection
10959 Special features
10960 \end_layout
10961
10962 \begin_layout Standard
10963 Insert the 
10964 \family sans
10965 Speaker
10966 \family default
10967  names as labels then cross-reference the label to insert the name.
10968  The cross-reference dialog will show the current cast of characters.
10969 \end_layout
10970
10971 \begin_layout Subsection
10972 Paper size and Margins
10973 \end_layout
10974
10975 \begin_layout Standard
10976 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10977 \end_layout
10978
10979 \begin_layout Subsection
10980 Environments
10981 \end_layout
10982
10983 \begin_layout Standard
10984 The following environments are available.
10985  You can use broadway.bind to get the bind keys shown at the right.
10986 \end_layout
10987
10988 \begin_layout Itemize
10989
10990 \family sans
10991 Standard
10992 \begin_inset Newline newline
10993 \end_inset
10994
10995
10996 \family default
10997 You should not have to use this, but it is here for anything that does not
10998  fit otherwise.
10999 \end_layout
11000
11001 \begin_layout Itemize
11002
11003 \family sans
11004 Narrative
11005 \begin_inset space \hfill{}
11006 \end_inset
11007
11008 M-z n
11009 \begin_inset Newline newline
11010 \end_inset
11011
11012
11013 \family default
11014 Used to describe stage setting and the action.
11015  First use of speaker names in all CAPs.
11016 \end_layout
11017
11018 \begin_layout Itemize
11019
11020 \family sans
11021 ACT
11022 \begin_inset space \hfill{}
11023 \end_inset
11024
11025 M-z a
11026 \begin_inset Newline newline
11027 \end_inset
11028
11029
11030 \family default
11031 Automatically numbered.
11032  On screen it will be arabic, but will print as Roman.
11033 \end_layout
11034
11035 \begin_layout Itemize
11036
11037 \family sans
11038 ACT*
11039 \begin_inset space \hfill{}
11040 \end_inset
11041
11042 M-z S at
11043 \begin_inset Newline newline
11044 \end_inset
11045
11046
11047 \family default
11048 Subtitle for 
11049 \family sans
11050 ACT.
11051
11052 \family default
11053  It is just centered text.
11054 \end_layout
11055
11056 \begin_layout Itemize
11057
11058 \family sans
11059 SCENE
11060 \begin_inset space \hfill{}
11061 \end_inset
11062
11063 M-z S-S
11064 \begin_inset Newline newline
11065 \end_inset
11066
11067
11068 \family default
11069 Not automatically numbered.
11070  You supply the number.
11071  This is because I couldn't figure out how.
11072 \end_layout
11073
11074 \begin_layout Itemize
11075
11076 \family sans
11077 AT_RISE:
11078 \begin_inset space \hfill{}
11079 \end_inset
11080
11081 M-z S-R
11082 \begin_inset Newline newline
11083 \end_inset
11084
11085
11086 \family default
11087 A special case of Narrative to describe the setting and action as the curtain
11088  rises.
11089 \end_layout
11090
11091 \begin_layout Itemize
11092
11093 \family sans
11094 Speaker
11095 \begin_inset space \hfill{}
11096 \end_inset
11097
11098 M-z s
11099 \begin_inset Newline newline
11100 \end_inset
11101
11102
11103 \family default
11104 The speaker's (actor's) title, centered in all CAPS.
11105 \end_layout
11106
11107 \begin_layout Itemize
11108
11109 \family sans
11110 Parenthetical
11111 \begin_inset space \hfill{}
11112 \end_inset
11113
11114 M-z p
11115 \begin_inset Newline newline
11116 \end_inset
11117
11118
11119 \family default
11120 Instructions to the speaker.
11121  The parentheses are automatically inserted.
11122  The ( will appear on screen, but both will be in the printed play.
11123  This environment is only used within 
11124 \family sans
11125 Dialogue
11126 \family default
11127 .
11128 \end_layout
11129
11130 \begin_layout Itemize
11131
11132 \family sans
11133 Dialogue
11134 \begin_inset space \hfill{}
11135 \end_inset
11136
11137 M-z d
11138 \begin_inset Newline newline
11139 \end_inset
11140
11141
11142 \family default
11143 What the Speaker says.
11144 \end_layout
11145
11146 \begin_layout Itemize
11147
11148 \family sans
11149 CURTAIN
11150 \begin_inset space \hfill{}
11151 \end_inset
11152
11153 M-z S-C
11154 \begin_inset Newline newline
11155 \end_inset
11156
11157
11158 \family default
11159 The curtain comes down.
11160 \end_layout
11161
11162 \begin_layout Itemize
11163
11164 \family sans
11165 Title
11166 \begin_inset space \hfill{}
11167 \end_inset
11168
11169 M-z S-T
11170 \end_layout
11171
11172 \begin_layout Itemize
11173
11174 \family sans
11175 Author
11176 \begin_inset space \hfill{}
11177 \end_inset
11178
11179 M-z S-A
11180 \end_layout
11181
11182 \begin_layout Itemize
11183
11184 \family sans
11185 Right_Address
11186 \begin_inset space \hfill{}
11187 \end_inset
11188
11189 M-z r
11190 \end_layout
11191
11192 \begin_layout Standard
11193 Hello there.
11194 \end_layout
11195
11196 \begin_layout Section
11197 Dinbrief
11198 \end_layout
11199
11200 \begin_layout Standard
11201 The document class 
11202 \family sans
11203 dinbrief
11204 \family default
11205  can be used to type letters according to German conventions.
11206  A template file is included in 
11207 \family typewriter
11208 .../lyx/share/templates
11209 \family default
11210  for you to use as a starting point.
11211 \end_layout
11212
11213 \begin_layout Section
11214 EGS journals (
11215 \family sans
11216 egs
11217 \family default
11218 )
11219 \end_layout
11220
11221 \begin_layout Standard
11222 by 
11223 \shape smallcaps
11224 Martin Vermeer
11225 \end_layout
11226
11227 \begin_layout Subsection
11228 Description
11229 \end_layout
11230
11231 \begin_layout Standard
11232 This is the layout file for the European Geophysical Society journals.
11233  The needed 
11234 \family typewriter
11235 egs.cls
11236 \family default
11237  can be downloaded from the web site of the EGS under 
11238 \begin_inset Flex URL
11239 status collapsed
11240
11241 \begin_layout Plain Layout
11242
11243 www.copernicus.org
11244 \end_layout
11245
11246 \end_inset
11247
11248 .
11249 \end_layout
11250
11251 \begin_layout Subsection
11252 New styles
11253 \end_layout
11254
11255 \begin_layout Standard
11256
11257 \family sans
11258 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
11259  Accepted
11260 \family default
11261
11262 \family sans
11263 Offsets
11264 \family default
11265 .
11266  The current layout file is unfortunately very unmodular and would benefit
11267  from using the various 
11268 \family typewriter
11269 std*.inc
11270 \family default
11271  file inclusions.
11272 \end_layout
11273
11274 \begin_layout Section
11275 Elsevier Journals
11276 \end_layout
11277
11278 \begin_layout Standard
11279 See the \SpecialChar LyX
11280  template file 
11281 \family typewriter
11282 elsarticle.lyx
11283 \family default
11284 .
11285  It contains all infos you need.
11286 \end_layout
11287
11288 \begin_layout Section
11289 Foils [aka 
11290 \family sans
11291 Foil\SpecialChar TeX
11292
11293 \family default
11294 ]
11295 \begin_inset CommandInset label
11296 LatexCommand label
11297 name "sec:foiltex"
11298
11299 \end_inset
11300
11301
11302 \end_layout
11303
11304 \begin_layout Standard
11305 by 
11306 \noun on
11307 Allan Rae
11308 \end_layout
11309
11310 \begin_layout Subsection
11311 Introduction
11312 \end_layout
11313
11314 \begin_layout Standard
11315 This section describes how to use \SpecialChar LyX
11316  to make slides for overhead projectors.
11317  There are two document classes that can do this: the default slides class
11318  and the 
11319 \family sans
11320 Foil\SpecialChar TeX
11321
11322 \family default
11323  slides class.
11324  This section documents the latter.
11325 \end_layout
11326
11327 \begin_layout Standard
11328 I'm going to say this again, nice and clear, so that there's no misunderstanding
11329 :
11330 \end_layout
11331
11332 \begin_layout Standard
11333 \begin_inset VSpace bigskip
11334 \end_inset
11335
11336
11337 \end_layout
11338
11339 \begin_layout Standard
11340 \align center
11341
11342 \size large
11343 This section documents the class 
11344 \begin_inset Quotes eld
11345 \end_inset
11346
11347
11348 \family sans
11349 FoilTeX
11350 \family default
11351
11352 \begin_inset Quotes erd
11353 \end_inset
11354
11355  
11356 \emph on
11357 only.
11358 \end_layout
11359
11360 \begin_layout Standard
11361 \begin_inset VSpace bigskip
11362 \end_inset
11363
11364
11365 \end_layout
11366
11367 \begin_layout Standard
11368 If you're looking for the documentation for 
11369 \begin_inset Quotes eld
11370 \end_inset
11371
11372
11373 \family sans
11374 slides (default)
11375 \family default
11376
11377 \begin_inset Quotes erd
11378 \end_inset
11379
11380 , check out section
11381 \begin_inset space ~
11382 \end_inset
11383
11384
11385 \begin_inset CommandInset ref
11386 LatexCommand ref
11387 reference "sec:slitex"
11388
11389 \end_inset
11390
11391 .
11392  If your machine doesn't have the 
11393 \family sans
11394 foils
11395 \family default
11396  class 
11397 \family sans
11398 FoilTeX
11399 \family default
11400  installed, you'll probably have to use the default 
11401 \family sans
11402 slides
11403 \family default
11404  class, which isn't quite as good as 
11405 \family sans
11406 foils.
11407 \end_layout
11408
11409 \begin_layout Standard
11410 The 
11411 \family sans
11412 foils
11413 \family default
11414  class is designed for use with version
11415 \begin_inset space ~
11416 \end_inset
11417
11418 2.1 of the 
11419 \family sans
11420 foils.cls
11421 \family default
11422  \SpecialChar LaTeX
11423  class file which is now an integral part of \SpecialChar LaTeX2e
11424 .
11425 \end_layout
11426
11427 \begin_layout Subsection
11428 Getting Started
11429 \end_layout
11430
11431 \begin_layout Standard
11432 Obviously, to use this document class, you need to select 
11433 \family sans
11434 FoilTeX
11435 \family default
11436  from the 
11437 \family sans
11438 Class
11439 \family default
11440  entry in the 
11441 \family sans
11442 Document
11443 \begin_inset space ~
11444 \end_inset
11445
11446 Layout
11447 \family default
11448  dialog.
11449  There are some settings in the 
11450 \family sans
11451 Document
11452 \begin_inset space ~
11453 \end_inset
11454
11455 Layout
11456 \family default
11457  dialog that you should know about that are specific to this class:
11458 \end_layout
11459
11460 \begin_layout Itemize
11461 Don't change the options 
11462 \family sans
11463 Sides
11464 \family default
11465  and 
11466 \family sans
11467 Columns
11468 \family default
11469  on the 
11470 \family sans
11471 Document
11472 \begin_inset space ~
11473 \end_inset
11474
11475 Layout
11476 \family default
11477  dialog.
11478  They're ignored by the 
11479 \family sans
11480 foils
11481 \family default
11482  class.
11483 \end_layout
11484
11485 \begin_layout Itemize
11486 The default font size is 20
11487 \begin_inset space \thinspace{}
11488 \end_inset
11489
11490 pt with the other options being 17
11491 \begin_inset space \thinspace{}
11492 \end_inset
11493
11494 pt, 25
11495 \begin_inset space \thinspace{}
11496 \end_inset
11497
11498 pt and 30
11499 \begin_inset space \thinspace{}
11500 \end_inset
11501
11502 pt.
11503 \end_layout
11504
11505 \begin_layout Itemize
11506 The default font is 
11507 \family sans
11508 sans
11509 \family default
11510  
11511 \family sans
11512 serif
11513 \family default
11514  but all math equations are still typeset in the usual roman font.
11515 \end_layout
11516
11517 \begin_layout Itemize
11518
11519 \family sans
11520 Foil\SpecialChar TeX
11521
11522 \family default
11523  supports A4 and Letter paper sizes as well as a special size for working
11524  with 35
11525 \begin_inset space \thinspace{}
11526 \end_inset
11527
11528 mm slides.
11529  It doesn't support A5, B5, legal or executive paper sizes.
11530 \end_layout
11531
11532 \begin_layout Itemize
11533 Don't bother changing the 
11534 \family sans
11535 Float Placement
11536 \family default
11537  settings because they are ignored anyway.
11538  All floats appear where they are defined in the text.
11539 \end_layout
11540
11541 \begin_layout Itemize
11542 The 
11543 \family sans
11544 Pagestyle
11545 \family default
11546  setting behaves a bit differently for this class.
11547  
11548 \family sans
11549 Foil\SpecialChar TeX
11550
11551 \family default
11552  provides extensive footer and header capabilities including a user-defined
11553  logo.
11554  See section
11555 \begin_inset space ~
11556 \end_inset
11557
11558
11559 \begin_inset CommandInset ref
11560 LatexCommand ref
11561 reference "sec:foilfoot"
11562
11563 \end_inset
11564
11565  for more details.
11566  The title page is treated differently to all other pages in the document
11567  and is 
11568 \emph on
11569 always
11570 \emph default
11571  unnumbered and 
11572 \emph on
11573 always
11574 \emph default
11575  has the logo centered at the bottom of the page (if one is defined).
11576  The possible page style choices and what they do are as follows:
11577 \end_layout
11578
11579 \begin_deeper
11580 \begin_layout Labeling
11581 \labelwidthstring MMMMMMM
11582
11583 \family sans
11584 \series bold
11585 empty
11586 \family default
11587 \series default
11588  The final output contains no page numbers, or other headers or footers
11589  (except footnotes of course).
11590  
11591 \end_layout
11592
11593 \begin_layout Labeling
11594 \labelwidthstring MMMMMMM
11595
11596 \family sans
11597 \series bold
11598 plain
11599 \family default
11600 \series default
11601  The final output contains page numbers centered at the bottom of the page.
11602  No other headings or footers (other than footnotes).
11603 \end_layout
11604
11605 \begin_layout Labeling
11606 \labelwidthstring MMMMMMM
11607
11608 \series bold
11609 foilheadings
11610 \series default
11611  Page numbers in lower right corner.
11612  Additional headers and footers are also shown.
11613  This is also the default.
11614 \end_layout
11615
11616 \begin_layout Labeling
11617 \labelwidthstring MMMMMMM
11618
11619 \series bold
11620 fancy
11621 \series default
11622  Gives you access to the 
11623 \family sans
11624 fancyheadings
11625 \family default
11626  package although its use with 
11627 \family sans
11628 Foil\SpecialChar TeX
11629
11630 \family default
11631  is discouraged by the writer of the 
11632 \family sans
11633 Foil\SpecialChar TeX
11634
11635 \family default
11636  package because of some potential page layout clashes.
11637 \end_layout
11638
11639 \end_deeper
11640 \begin_layout Subsubsection
11641 Extra Options
11642 \end_layout
11643
11644 \begin_layout Standard
11645 The following options may be used in the extra class options in the 
11646 \family sans
11647 Document\SpecialChar menuseparator
11648 Settings
11649 \family default
11650  dialog.
11651 \end_layout
11652
11653 \begin_layout Labeling
11654 \labelwidthstring MMMMMMx
11655
11656 \series bold
11657 35mmSlide
11658 \series default
11659  This sets up the page layout for 7.33
11660 \begin_inset space \thinspace{}
11661 \end_inset
11662
11663 in by 11
11664 \begin_inset space \thinspace{}
11665 \end_inset
11666
11667 in paper, which is about the same aspect ratio as a 35
11668 \begin_inset space \thinspace{}
11669 \end_inset
11670
11671 mm slide, making it a bit easier to work with this medium.
11672 \end_layout
11673
11674 \begin_layout Labeling
11675 \labelwidthstring MMMMMMx
11676
11677 \series bold
11678 headrule
11679 \series default
11680  Places a rule across the page below the header on every page except the
11681  title page.
11682 \end_layout
11683
11684 \begin_layout Labeling
11685 \labelwidthstring MMMMMMx
11686
11687 \series bold
11688 footrule
11689 \series default
11690  Places a rule across the page above the footer on every page except the
11691  title page.
11692 \end_layout
11693
11694 \begin_layout Labeling
11695 \labelwidthstring MMMMMMx
11696
11697 \series bold
11698 dvips
11699 \series default
11700  This is automatically set each time you create a new 
11701 \family sans
11702 foils
11703 \family default
11704  document.
11705  This option tells 
11706 \family sans
11707 Foil\SpecialChar TeX
11708
11709 \family default
11710  to use the dvips driver to rotate those pages that are set as landscape
11711  foils.
11712 \end_layout
11713
11714 \begin_layout Labeling
11715 \labelwidthstring MMMMMMx
11716
11717 \series bold
11718 landscape
11719 \series default
11720  Simply changes the page dimensions to those of a landscape page but doesn't
11721  do any rotation.
11722  Thus if you use this option you need to use an external program to rotate
11723  each page or feed your paper through your printer as landscape.
11724  Note that this option effectively reverses the roles of the 
11725 \family sans
11726 Foilhead
11727 \family default
11728  and 
11729 \family sans
11730 Rotatefoilhead
11731 \family default
11732  environments (don't worry these are described in the next section).
11733 \end_layout
11734
11735 \begin_layout Labeling
11736 \labelwidthstring MMMMMMx
11737
11738 \series bold
11739 leqno
11740 \series default
11741  Equation numbers on the left.
11742 \end_layout
11743
11744 \begin_layout Labeling
11745 \labelwidthstring MMMMMMx
11746
11747 \series bold
11748 fleqn
11749 \series default
11750  Flush-left equations.
11751 \end_layout
11752
11753 \begin_layout Subsection
11754 Supported Environments
11755 \end_layout
11756
11757 \begin_layout Standard
11758 Most of the environments commonly supported in other classes are also supported
11759  by the 
11760 \family sans
11761 foils
11762 \family default
11763  class.
11764  There are several additional environments provided by 
11765 \family sans
11766 Foil\SpecialChar TeX
11767
11768 \family default
11769  as well as a couple added by \SpecialChar LyX
11770 .
11771  The following environments are shared with other classes:
11772 \end_layout
11773
11774 \begin_layout Standard
11775 \begin_inset Flex Multiple Columns
11776 status open
11777
11778 \begin_layout Itemize
11779
11780 \family sans
11781 Standard
11782 \end_layout
11783
11784 \begin_layout Itemize
11785
11786 \family sans
11787 Itemize
11788 \end_layout
11789
11790 \begin_layout Itemize
11791
11792 \family sans
11793 Enumerate
11794 \end_layout
11795
11796 \begin_layout Itemize
11797
11798 \family sans
11799 Description
11800 \end_layout
11801
11802 \begin_layout Itemize
11803
11804 \family sans
11805 List
11806 \end_layout
11807
11808 \begin_layout Itemize
11809
11810 \family sans
11811 \SpecialChar LyX
11812 -Code
11813 \end_layout
11814
11815 \begin_layout Itemize
11816
11817 \family sans
11818 Verse
11819 \end_layout
11820
11821 \begin_layout Itemize
11822
11823 \family sans
11824 Quote
11825 \end_layout
11826
11827 \begin_layout Itemize
11828
11829 \family sans
11830 Quotation
11831 \end_layout
11832
11833 \begin_layout Itemize
11834
11835 \family sans
11836 Title
11837 \end_layout
11838
11839 \begin_layout Itemize
11840
11841 \family sans
11842 Author
11843 \end_layout
11844
11845 \begin_layout Itemize
11846
11847 \family sans
11848 Date
11849 \end_layout
11850
11851 \begin_layout Itemize
11852
11853 \family sans
11854 Abstract
11855 \end_layout
11856
11857 \begin_layout Itemize
11858
11859 \family sans
11860 Bibliography
11861 \end_layout
11862
11863 \begin_layout Itemize
11864
11865 \family sans
11866 Address
11867 \end_layout
11868
11869 \begin_layout Itemize
11870
11871 \family sans
11872 RightAddress
11873 \end_layout
11874
11875 \begin_layout Itemize
11876
11877 \family sans
11878 Caption
11879 \end_layout
11880
11881 \begin_layout Itemize
11882
11883 \family sans
11884 Comment
11885 \end_layout
11886
11887 \end_inset
11888
11889
11890 \end_layout
11891
11892 \begin_layout Standard
11893 That is, all the major environments apart from the sectioning environments.
11894  Since foils are essentially self-contained sections, with a title and body,
11895  
11896 \family sans
11897 Foil\SpecialChar TeX
11898
11899 \family default
11900  provides specific commands for starting new foils and these are:
11901 \end_layout
11902
11903 \begin_layout Itemize
11904
11905 \family sans
11906 Foilhead
11907 \end_layout
11908
11909 \begin_layout Itemize
11910
11911 \family sans
11912 Rotatefoilhead
11913 \end_layout
11914
11915 \begin_layout Standard
11916 \SpecialChar LyX
11917  also provides slightly modified versions of these two environments called:
11918 \end_layout
11919
11920 \begin_layout Itemize
11921
11922 \family sans
11923 ShortFoilhead
11924 \end_layout
11925
11926 \begin_layout Itemize
11927
11928 \family sans
11929 ShortRotatefoilhead
11930 \end_layout
11931
11932 \begin_layout Standard
11933 and the differences will be explained in the next section.
11934 \end_layout
11935
11936 \begin_layout Standard
11937 Since foils are often used in presenting ideas or new theorems and such
11938  
11939 \family sans
11940 Foil\SpecialChar TeX
11941
11942 \family default
11943  also provides a comprehensive box of goodies for presenting them:
11944 \end_layout
11945
11946 \begin_layout Standard
11947 \begin_inset Flex Multiple Columns
11948 status open
11949
11950 \begin_layout Itemize
11951
11952 \family sans
11953 Theorem
11954 \end_layout
11955
11956 \begin_layout Itemize
11957
11958 \family sans
11959 Lemma
11960 \end_layout
11961
11962 \begin_layout Itemize
11963
11964 \family sans
11965 Corollary
11966 \end_layout
11967
11968 \begin_layout Itemize
11969
11970 \family sans
11971 Proposition
11972 \end_layout
11973
11974 \begin_layout Itemize
11975
11976 \family sans
11977 Definition
11978 \end_layout
11979
11980 \begin_layout Itemize
11981
11982 \family sans
11983 Proof
11984 \end_layout
11985
11986 \begin_layout Itemize
11987
11988 \family sans
11989 Theorem*
11990 \end_layout
11991
11992 \begin_layout Itemize
11993
11994 \family sans
11995 Lemma*
11996 \end_layout
11997
11998 \begin_layout Itemize
11999
12000 \family sans
12001 Corollary*
12002 \end_layout
12003
12004 \begin_layout Itemize
12005
12006 \family sans
12007 Proposition*
12008 \end_layout
12009
12010 \begin_layout Itemize
12011
12012 \family sans
12013 Definition*
12014 \end_layout
12015
12016 \end_inset
12017
12018
12019 \end_layout
12020
12021 \begin_layout Standard
12022 The starred versions are unnumbered while the unstarred versions are numbered.
12023  There are also two list environments added by \SpecialChar LyX
12024  and these are:
12025 \end_layout
12026
12027 \begin_layout Itemize
12028
12029 \family sans
12030 TickList
12031 \end_layout
12032
12033 \begin_layout Itemize
12034
12035 \family sans
12036 CrossList
12037 \end_layout
12038
12039 \begin_layout Standard
12040
12041 \family sans
12042 Foil\SpecialChar TeX
12043
12044 \family default
12045  provides some powerful header and footer capabilities that are best set
12046  in the preamble although they may be set at any point in a document.
12047  If you want to change these settings in your document the best place to
12048  do so is at the very top of a foil, i.
12049 \begin_inset space \thinspace{}
12050 \end_inset
12051
12052 e.
12053 \emph on
12054
12055 \begin_inset space \space{}
12056 \end_inset
12057
12058
12059 \emph default
12060 straight after the foilhead.
12061 \end_layout
12062
12063 \begin_layout Standard
12064 For this purpose, the following command styles are provided [
12065 \shape smallcaps
12066 Martin Vermeer
12067 \shape default
12068 ]:
12069 \end_layout
12070
12071 \begin_layout Standard
12072 \begin_inset Flex Multiple Columns
12073 status open
12074
12075 \begin_layout Itemize
12076
12077 \family sans
12078 My
12079 \begin_inset space ~
12080 \end_inset
12081
12082 Logo
12083 \end_layout
12084
12085 \begin_layout Itemize
12086
12087 \family sans
12088 Restriction
12089 \end_layout
12090
12091 \begin_layout Itemize
12092
12093 \family sans
12094 Right
12095 \begin_inset space ~
12096 \end_inset
12097
12098 Footer
12099 \end_layout
12100
12101 \begin_layout Itemize
12102
12103 \family sans
12104 Right
12105 \begin_inset space ~
12106 \end_inset
12107
12108 Header
12109 \end_layout
12110
12111 \begin_layout Itemize
12112
12113 \family sans
12114 Left
12115 \begin_inset space ~
12116 \end_inset
12117
12118 Header
12119 \end_layout
12120
12121 \begin_deeper
12122 \begin_layout Plain Layout
12123 \begin_inset space ~
12124 \end_inset
12125
12126
12127 \end_layout
12128
12129 \end_deeper
12130 \end_inset
12131
12132
12133 \end_layout
12134
12135 \begin_layout Standard
12136 There are also a few commands provided by 
12137 \family sans
12138 Foil\SpecialChar TeX
12139
12140 \family default
12141  that aren't directly supported by \SpecialChar LyX
12142  but I'll tell you what they do and how
12143  to use them in section
12144 \begin_inset space ~
12145 \end_inset
12146
12147
12148 \begin_inset CommandInset ref
12149 LatexCommand ref
12150 reference "sec:unsuppfoils"
12151
12152 \end_inset
12153
12154 .
12155 \end_layout
12156
12157 \begin_layout Subsection
12158 Building a Set of Foils
12159 \end_layout
12160
12161 \begin_layout Standard
12162 This section will give a simple introduction to using the different environments
12163  to build a set of foils.
12164  If you want to see an example set of foils, take a look at the 
12165 \family typewriter
12166 Foils.lyx
12167 \family default
12168  file you find in \SpecialChar LyX
12169 's 
12170 \family typewriter
12171 examples
12172 \family default
12173  folder.
12174 \end_layout
12175
12176 \begin_layout Subsubsection
12177 Give It a Title Page
12178 \end_layout
12179
12180 \begin_layout Standard
12181 Unlike other classes that provide 
12182 \family sans
12183 Title
12184 \family default
12185
12186 \family sans
12187 Author
12188 \family default
12189
12190 \family sans
12191 Date
12192 \family default
12193  and 
12194 \family sans
12195 Abstract
12196 \family default
12197  environments, 
12198 \family sans
12199 foils
12200 \family default
12201  creates the title on a page of its own.
12202  If you leave out the 
12203 \family sans
12204 Date
12205 \family default
12206  environment \SpecialChar LaTeX
12207  will substitute the current date (every time you regenerate
12208  the output).
12209 \end_layout
12210
12211 \begin_layout Subsubsection
12212 Start a New Foil
12213 \end_layout
12214
12215 \begin_layout Standard
12216 As I mentioned earlier, there are four ways of starting a new foil.
12217  For portrait foils you should use 
12218 \family sans
12219 Foilhead
12220 \family default
12221  or 
12222 \family sans
12223 ShortFoilhead.
12224
12225 \family default
12226  The difference between these two environments is the amount of space between
12227  the title of the foil (the foilhead) and the body of the foil.
12228 \end_layout
12229
12230 \begin_layout Standard
12231 Landscape foils are generated using the 
12232 \family sans
12233 Rotatefoilhead
12234 \family default
12235  and 
12236 \family sans
12237 ShortRotatefoilhead
12238 \family default
12239  environments.
12240  Again the only difference is the spacing between foilhead and body.
12241  Both of the short versions have 0.5
12242 \begin_inset space ~
12243 \end_inset
12244
12245 inches less separation between the foilhead and the body.
12246  
12247 \end_layout
12248
12249 \begin_layout Standard
12250 One problem with the support for landscape foils is the requirement that
12251  you have to use the 
12252 \family typewriter
12253 dvips
12254 \family default
12255  driver to generate the PostScript output otherwise the foils won't be rotated.
12256  It is possible to get landscape foils even if you haven't got the 
12257 \family typewriter
12258 dvips
12259 \family default
12260  driver provided you can feed your foils sideways through your printer ;-)
12261 \end_layout
12262
12263 \begin_layout Subsubsection
12264 Theorems, Lemmas, Proofs and more
12265 \end_layout
12266
12267 \begin_layout Standard
12268 Due to a small bug in \SpecialChar LyX
12269  you can't have two of the same type of these environments
12270  directly following each other.
12271  They must be separated by something.
12272  If you try, you will just be extending the previous environment as if you
12273  had merged the two environments together.
12274  So, how do you get around this problem? The simplest option is to insert
12275  some text between the two environments or add a 
12276 \family sans
12277 \SpecialChar LaTeX
12278
12279 \family default
12280  environment between the two with just a 
12281 \begin_inset Quotes eld
12282 \end_inset
12283
12284
12285 \family typewriter
12286 %
12287 \family default
12288
12289 \begin_inset Quotes erd
12290 \end_inset
12291
12292  in it.
12293  This will force \SpecialChar LyX
12294  to produce two separate environments and hence the correct
12295  \SpecialChar LaTeX
12296  output.
12297  An example is provided in the example file included with the \SpecialChar LyX
12298  distribution.
12299  Remember, this problem only occurs if you are trying to place two of the
12300  same type of theorem-like environments one directly after the other.
12301 \end_layout
12302
12303 \begin_layout Subsubsection
12304 Lists
12305 \end_layout
12306
12307 \begin_layout Standard
12308 You get all the commonly supported list styles found in other classes as
12309  well as two new ones.
12310  I'll only describe the new ones here.
12311  If you want to find out more about the other list environments check out
12312  the 
12313 \emph on
12314 User's Guide.
12315
12316 \emph default
12317  If you intend to use itemized lists you might also want to read about the
12318  
12319 \family sans
12320 Itemize
12321 \begin_inset space ~
12322 \end_inset
12323
12324 Bullet
12325 \begin_inset space ~
12326 \end_inset
12327
12328 Selection
12329 \family default
12330  dialog described above in section
12331 \begin_inset space ~
12332 \end_inset
12333
12334
12335 \begin_inset CommandInset ref
12336 LatexCommand ref
12337 reference "sec:bullet"
12338
12339 \end_inset
12340
12341 .
12342 \end_layout
12343
12344 \begin_layout Standard
12345 The two new list styles, 
12346 \family sans
12347 TickList
12348 \family default
12349  and 
12350 \family sans
12351 CrossList
12352 \family default
12353 , are designed to make it easier for you to create lists of do's and don'ts
12354  or right and wrong by providing dedicated environments that use a tick
12355  or a cross as the label of the list.
12356  These lists are in fact dedicated variants of the 
12357 \family sans
12358 Itemize
12359 \family default
12360  environment.
12361  They do however require that you have the 
12362 \family typewriter
12363 psnfss
12364 \family default
12365  packages installed.
12366 \end_layout
12367
12368 \begin_layout Subsubsection
12369 Figures and Tables
12370 \end_layout
12371
12372 \begin_layout Standard
12373
12374 \family sans
12375 Foil\SpecialChar TeX
12376
12377 \family default
12378  redefines the floating tables and figures so that they appear exactly where
12379  they are in the text rather than pushing them to the top of the page or
12380  to some user specified location.
12381  In fact if you change the float placement settings they are simply ignored.
12382 \end_layout
12383
12384 \begin_layout Subsubsection
12385 Page Headers and Footers
12386 \begin_inset CommandInset label
12387 LatexCommand label
12388 name "sec:foilfoot"
12389
12390 \end_inset
12391
12392
12393 \end_layout
12394
12395 \begin_layout Standard
12396
12397 \family sans
12398 My
12399 \begin_inset space ~
12400 \end_inset
12401
12402 Logo
12403 \family default
12404  and 
12405 \family sans
12406 Restriction
12407 \family default
12408  are two commands used to control the left-footer text string.
12409  The first is meant to allow you to include a graphic logo on your foils
12410  and defaults to 
12411 \begin_inset Quotes eld
12412 \end_inset
12413
12414 -Typeset by 
12415 \family sans
12416 Foil\SpecialChar TeX
12417
12418 \family default
12419 -
12420 \begin_inset Quotes erd
12421 \end_inset
12422
12423 .
12424  While the second is meant to provide a classification for the audience,
12425  
12426 \emph on
12427 e.
12428 \begin_inset space \thinspace{}
12429 \end_inset
12430
12431 g.
12432 \emph default
12433
12434 \begin_inset space \space{}
12435 \end_inset
12436
12437 Confidential.
12438  It is empty by default.
12439 \end_layout
12440
12441 \begin_layout Standard
12442 The remaining page corners can be filled by 
12443 \family sans
12444 Right
12445 \begin_inset space ~
12446 \end_inset
12447
12448 Footer
12449 \family default
12450  (which defaults to page numbers), 
12451 \family sans
12452 Right
12453 \begin_inset space ~
12454 \end_inset
12455
12456 Header
12457 \family default
12458  (top right) and 
12459 \family sans
12460 Left
12461 \begin_inset space ~
12462 \end_inset
12463
12464 Header
12465 \family default
12466  (top left).
12467 \end_layout
12468
12469 \begin_layout Subsection
12470 Unsupported 
12471 \family sans
12472 Foil\SpecialChar TeX
12473
12474 \family default
12475  Goodies
12476 \begin_inset CommandInset label
12477 LatexCommand label
12478 name "sec:unsuppfoils"
12479
12480 \end_inset
12481
12482
12483 \end_layout
12484
12485 \begin_layout Standard
12486 All the commands mentioned below need to be set in a 
12487 \family sans
12488 \SpecialChar LaTeX
12489
12490 \family default
12491  environment or as 
12492 \family sans
12493 \SpecialChar TeX
12494
12495 \family default
12496  within another environment.
12497 \end_layout
12498
12499 \begin_layout Subsubsection
12500 Lengths
12501 \end_layout
12502
12503 \begin_layout Standard
12504 All lengths are adjusted using the 
12505 \family typewriter
12506
12507 \backslash
12508 setlength{
12509 \family default
12510 \emph on
12511 lengthname
12512 \family typewriter
12513 \emph default
12514 }{
12515 \family default
12516 \emph on
12517 newlength
12518 \family typewriter
12519 \emph default
12520 }
12521 \family default
12522  command.
12523  Where 
12524 \emph on
12525 lengthname
12526 \emph default
12527  should be replaced by the name given to the length you want to change and
12528  
12529 \emph on
12530 newlength
12531 \emph default
12532  is the length value.
12533  All lengths should be specified in units of length such as inches (
12534 \family typewriter
12535 in
12536 \family default
12537 ), millimeters (
12538 \family typewriter
12539 mm
12540 \family default
12541 ) or points (
12542 \family typewriter
12543 pt
12544 \family default
12545 ) or relative to some document or font-based length such as 
12546 \family typewriter
12547
12548 \backslash
12549 textwidth
12550 \family default
12551 .
12552  
12553 \end_layout
12554
12555 \begin_layout Standard
12556 It's possible to change the spacing between a foilhead and the body of the
12557  foil by adjusting the length specified by 
12558 \family typewriter
12559
12560 \backslash
12561 foilheadskip
12562 \family default
12563 .
12564  For example, to make 
12565 \emph on
12566 all
12567 \emph default
12568  foilheads 0.5
12569 \begin_inset space \space{}
12570 \end_inset
12571
12572 in closer to their bodies put the following in the preamble: 
12573 \family typewriter
12574
12575 \backslash
12576 setlength{
12577 \backslash
12578 foilheadskip}{-0.5in}
12579 \end_layout
12580
12581 \begin_layout Standard
12582 The spacings around floats can be adjusted by setting these lengths:
12583 \end_layout
12584
12585 \begin_layout Labeling
12586 \labelwidthstring MMMMMMMMMMM
12587
12588 \family typewriter
12589
12590 \backslash
12591 abovefloatskip
12592 \family default
12593  Separation between the text and the top of the float
12594 \end_layout
12595
12596 \begin_layout Labeling
12597 \labelwidthstring MMMMMMMMMMM
12598
12599 \family typewriter
12600
12601 \backslash
12602 abovecaptionskip
12603 \family default
12604  Separation between the float and the caption
12605 \end_layout
12606
12607 \begin_layout Labeling
12608 \labelwidthstring MMMMMMMMMMM
12609
12610 \family typewriter
12611
12612 \backslash
12613 belowcaptionskip
12614 \family default
12615  Separation between the caption and the following text
12616 \end_layout
12617
12618 \begin_layout Labeling
12619 \labelwidthstring MMMMMMMMMMM
12620
12621 \family typewriter
12622
12623 \backslash
12624 captionwidth
12625 \family default
12626  You can make the captions narrower than the surrounding text by adjusting
12627  this length.
12628  Best done relative to 
12629 \family typewriter
12630
12631 \backslash
12632 textwidth
12633 \family default
12634 .
12635 \end_layout
12636
12637 \begin_layout Standard
12638 There are also several title page related lengths that you may find useful
12639  if you have a long title or several authors:
12640 \end_layout
12641
12642 \begin_layout Labeling
12643 \labelwidthstring MMMMMMMMMMM
12644
12645 \family typewriter
12646
12647 \backslash
12648 abovetitleskip
12649 \family default
12650  Separation from headers to 
12651 \family sans
12652 Title
12653 \end_layout
12654
12655 \begin_layout Labeling
12656 \labelwidthstring MMMMMMMMMMM
12657
12658 \family typewriter
12659
12660 \backslash
12661 titleauthorskip
12662 \family default
12663  between 
12664 \family sans
12665 Title
12666 \family default
12667  and 
12668 \family sans
12669 Author
12670 \family default
12671  environments
12672 \end_layout
12673
12674 \begin_layout Labeling
12675 \labelwidthstring MMMMMMMMMMM
12676
12677 \family typewriter
12678
12679 \backslash
12680 authorauthorskip
12681 \family default
12682  between multiple 
12683 \family sans
12684 Author
12685 \family default
12686  lines
12687 \end_layout
12688
12689 \begin_layout Labeling
12690 \labelwidthstring MMMMMMMMMMM
12691
12692 \family typewriter
12693
12694 \backslash
12695 authordateskip
12696 \family default
12697  between the 
12698 \family sans
12699 Author
12700 \family default
12701  and the 
12702 \family sans
12703 Date
12704 \end_layout
12705
12706 \begin_layout Labeling
12707 \labelwidthstring MMMMMMMMMMM
12708
12709 \family typewriter
12710
12711 \backslash
12712 dateabstractskip
12713 \family default
12714  between the 
12715 \family sans
12716 Date
12717 \family default
12718  and the 
12719 \family sans
12720 Abstract
12721 \end_layout
12722
12723 \begin_layout Standard
12724 The last length related command affects all the list environments.
12725  If you place 
12726 \family typewriter
12727
12728 \backslash
12729 zerolistvertdimens
12730 \family default
12731  
12732 \emph on
12733 inside
12734 \emph default
12735  a list environment then all the vertical spacing between the list items
12736  is removed.
12737  Note that this is a command not a length so it doesn't require 
12738 \family typewriter
12739
12740 \backslash
12741 setlength
12742 \family default
12743  like the stuff mentioned above.
12744 \end_layout
12745
12746 \begin_layout Subsubsection
12747 Headers and Footers
12748 \end_layout
12749
12750 \begin_layout Standard
12751 The 
12752 \family typewriter
12753
12754 \backslash
12755 LogoOn
12756 \family default
12757  and 
12758 \family typewriter
12759
12760 \backslash
12761 LogoOff
12762 \family default
12763  commands control whether the logo in the 
12764 \family sans
12765 MyLogo
12766 \family default
12767  definition appear on a given page.
12768  If you put 
12769 \family typewriter
12770
12771 \backslash
12772 LogoOff
12773 \family default
12774  in the preamble then none of the foils will have the logo on them.
12775  If you don't want the logo on a particular page place the 
12776 \family typewriter
12777
12778 \backslash
12779 LogoOff
12780 \family default
12781  directly after the foilhead of that page and the 
12782 \family typewriter
12783
12784 \backslash
12785 LogoOn
12786 \family default
12787  directly after the next foilhead.
12788 \end_layout
12789
12790 \begin_layout Standard
12791 If you decide to use the 
12792 \family sans
12793 fancy
12794 \family default
12795  page style setting in the 
12796 \family sans
12797 Document
12798 \begin_inset space ~
12799 \end_inset
12800
12801 Layout
12802 \family default
12803  dialog you should probably add 
12804 \family typewriter
12805
12806 \backslash
12807 let
12808 \backslash
12809 headwidth
12810 \backslash
12811 textwidth
12812 \family default
12813  to your preamble so headers and footers on landscape pages are correctly
12814  placed when rotated.
12815  This is due to some clashes between the page layouts provided by the 
12816 \family sans
12817 fancyheadings
12818 \family default
12819  package and the 
12820 \family sans
12821 foils
12822 \family default
12823  class.
12824 \end_layout
12825
12826 \begin_layout Section
12827 Hollywood (Hollywood spec scripts)
12828 \end_layout
12829
12830 \begin_layout Standard
12831 by 
12832 \shape smallcaps
12833 Garst Reese
12834 \end_layout
12835
12836 \begin_layout Subsection
12837 Introduction
12838 \end_layout
12839
12840 \begin_layout Standard
12841 Getting the format of a Hollywood script right is a 
12842 \begin_inset Quotes eld
12843 \end_inset
12844
12845 rite of passage.
12846 \begin_inset Quotes erd
12847 \end_inset
12848
12849  It is designed to make the readers focus on content and to be easy and
12850  familiar for the actors to read.
12851  Each page of a script should be one minute of film.
12852  Nothing goes in a script that you cannot see or hear on screen.
12853  The courier 12 pt font should be used throughout.
12854  No italics.
12855 \end_layout
12856
12857 \begin_layout Subsection
12858 Special problems
12859 \end_layout
12860
12861 \begin_layout Standard
12862 Speakers' lines should NEVER break in mid-sentence.
12863  If a speaker's lines continue over a page break, repeat the 
12864 \family sans
12865 Speaker
12866 \family default
12867  title followed by (Cont'd).
12868 \end_layout
12869
12870 \begin_layout Subsection
12871 Special features
12872 \end_layout
12873
12874 \begin_layout Standard
12875 Insert the 
12876 \family sans
12877 Speaker
12878 \family default
12879  names as labels then cross-reference the label to insert the name.
12880  The cross-reference dialog will show the current cast of characters.
12881  You can use this to insert the speaker name in narratives also.
12882 \end_layout
12883
12884 \begin_layout Subsection
12885 Paper size and Margins
12886 \end_layout
12887
12888 \begin_layout Standard
12889 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12890 \end_layout
12891
12892 \begin_layout Subsection
12893 Environments
12894 \end_layout
12895
12896 \begin_layout Standard
12897 The following environments are available.
12898  You can use hollywood.bind to get the bind keys shown at the right.
12899 \end_layout
12900
12901 \begin_layout Itemize
12902
12903 \family sans
12904 Standard
12905 \begin_inset Newline newline
12906 \end_inset
12907
12908
12909 \family default
12910 Used where nothing else works.
12911  Try to avoid it.
12912 \end_layout
12913
12914 \begin_layout Itemize
12915
12916 \family sans
12917 FADE_IN
12918 \family default
12919 :
12920 \begin_inset space \hfill{}
12921 \end_inset
12922
12923
12924 \family sans
12925 M-z S-I
12926 \family default
12927
12928 \begin_inset Newline newline
12929 \end_inset
12930
12931 Usually followed by something like 
12932 \begin_inset Quotes eld
12933 \end_inset
12934
12935 on Sally waking up.
12936 \begin_inset Quotes erd
12937 \end_inset
12938
12939
12940 \end_layout
12941
12942 \begin_layout Itemize
12943
12944 \family sans
12945 INT:
12946 \begin_inset space \hfill{}
12947 \end_inset
12948
12949 M-z i
12950 \begin_inset Newline newline
12951 \end_inset
12952
12953
12954 \family default
12955 Introduces a new INTERIOR camera set-up.
12956  Always followed by DAY or NIGHT, or something similar to define the lighting
12957  required.
12958  Everthing on this line in CAPS.
12959 \end_layout
12960
12961 \begin_layout Itemize
12962
12963 \family sans
12964 EXT:
12965 \begin_inset space \hfill{}
12966 \end_inset
12967
12968 M-z e
12969 \begin_inset Newline newline
12970 \end_inset
12971
12972
12973 \family default
12974 Introduces a new EXTERIOR camera set-up.
12975  Everthing on this line in CAPS.
12976 \end_layout
12977
12978 \begin_layout Itemize
12979
12980 \family sans
12981 Speaker
12982 \begin_inset space \hfill{}
12983 \end_inset
12984
12985 M-z s
12986 \begin_inset Newline newline
12987 \end_inset
12988
12989
12990 \family default
12991 The character speaking.
12992 \end_layout
12993
12994 \begin_layout Itemize
12995
12996 \family sans
12997 Parenthetical
12998 \begin_inset space \hfill{}
12999 \end_inset
13000
13001 M-z p
13002 \begin_inset Newline newline
13003 \end_inset
13004
13005
13006 \family default
13007 Instructions to the speaker.
13008  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
13009 .
13010  Both will be printed.
13011 \end_layout
13012
13013 \begin_layout Itemize
13014
13015 \family sans
13016 Dialogue
13017 \begin_inset space \hfill{}
13018 \end_inset
13019
13020 M-z d
13021 \begin_inset Newline newline
13022 \end_inset
13023
13024
13025 \family default
13026 What the 
13027 \family sans
13028 Speaker
13029 \family default
13030  says.
13031 \end_layout
13032
13033 \begin_layout Itemize
13034
13035 \family sans
13036 Transition
13037 \begin_inset space \hfill{}
13038 \end_inset
13039
13040 M-z t
13041 \begin_inset Newline newline
13042 \end_inset
13043
13044
13045 \family default
13046 Camera movement instruction.
13047  e.
13048 \begin_inset space \thinspace{}
13049 \end_inset
13050
13051 g.
13052 \begin_inset space \space{}
13053 \end_inset
13054
13055 CUT TO:
13056 \end_layout
13057
13058 \begin_layout Itemize
13059
13060 \family sans
13061 FADE OUT:
13062 \begin_inset space \hfill{}
13063 \end_inset
13064
13065 M-z S-I
13066 \end_layout
13067
13068 \begin_layout Itemize
13069
13070 \family sans
13071 Author
13072 \begin_inset space \hfill{}
13073 \end_inset
13074
13075 M-z S-A
13076 \end_layout
13077
13078 \begin_layout Itemize
13079
13080 \family sans
13081 Title
13082 \begin_inset space \hfill{}
13083 \end_inset
13084
13085 M-z S-T
13086 \end_layout
13087
13088 \begin_layout Itemize
13089
13090 \family sans
13091 Right_Address
13092 \begin_inset space \hfill{}
13093 \end_inset
13094
13095 M-z r
13096 \end_layout
13097
13098 \begin_layout Subsection
13099 Script jargon
13100 \end_layout
13101
13102 \begin_layout Itemize
13103 (O.S) — off screen
13104 \end_layout
13105
13106 \begin_layout Itemize
13107 (V.0) — voice over
13108 \end_layout
13109
13110 \begin_layout Itemize
13111 b.
13112 \begin_inset space \thinspace{}
13113 \end_inset
13114
13115 g.
13116  — background
13117 \end_layout
13118
13119 \begin_layout Itemize
13120 C.U.
13121  — close-up
13122 \end_layout
13123
13124 \begin_layout Itemize
13125 PAN — camera movement
13126 \end_layout
13127
13128 \begin_layout Itemize
13129 INSERT — cut to close-up of
13130 \end_layout
13131
13132 \begin_layout Section
13133 ijmpc and ijmpd
13134 \end_layout
13135
13136 \begin_layout Standard
13137 by 
13138 \noun on
13139 Panayotis Papasotiriou
13140 \end_layout
13141
13142 \begin_layout Subsection
13143 Overview
13144 \end_layout
13145
13146 \begin_layout Standard
13147 The ijmpc package is a set of macros that facilitates electronic manuscript
13148  submission to the 
13149 \emph on
13150 International Journal of Modern Physics C
13151 \emph default
13152 .
13153  Similarly, the ijmpd package is for creating manuscripts to be submitted
13154  to the 
13155 \emph on
13156 International Journal of Modern Physics D
13157 \emph default
13158 .
13159  Both journals are published by World Scientific.
13160  The corresponding document classes are named 
13161 \family typewriter
13162 ws-ijmpc.cls
13163 \family default
13164  and 
13165 \family typewriter
13166 ws-ijmpd.cls
13167 \family default
13168 , respectively.
13169  These files, together with instructions for the authors, can be downloaded
13170  from the sites 
13171 \begin_inset Flex URL
13172 status collapsed
13173
13174 \begin_layout Plain Layout
13175
13176 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13177 \end_layout
13178
13179 \end_inset
13180
13181  and 
13182 \begin_inset Flex URL
13183 status collapsed
13184
13185 \begin_layout Plain Layout
13186
13187 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13188 \end_layout
13189
13190 \end_inset
13191
13192 .
13193  Both packages are modified versions of the standard 
13194 \begin_inset Quotes eld
13195 \end_inset
13196
13197 article
13198 \begin_inset Quotes erd
13199 \end_inset
13200
13201  package, and they are almost (but not exactly) identical.
13202  Most of their features are supported by \SpecialChar LyX
13203 .
13204  I have used \SpecialChar LyX
13205  successfully to write articles submitted to both journals
13206  without any problem.
13207 \end_layout
13208
13209 \begin_layout Subsection
13210 Writing a paper
13211 \end_layout
13212
13213 \begin_layout Standard
13214 As usual, the easiest way to write a paper is to start with a template.
13215  Click on 
13216 \family sans
13217 File\SpecialChar menuseparator
13218 New from
13219 \family default
13220  
13221 \family sans
13222 Template
13223 \family default
13224 , then choose the 
13225 \family typewriter
13226 ijmpc.lyx
13227 \family default
13228  or 
13229 \family typewriter
13230 ijmpd.lyx
13231 \family default
13232  template.
13233  This will give an (almost) empty document that includes the most common
13234  fields found in a manuscript.
13235  Simply overwrite the existing text (including the brackets, 
13236 \family typewriter
13237 <>
13238 \family default
13239 ) with your text.
13240  You should keep in mind the following remarks.
13241 \end_layout
13242
13243 \begin_layout Enumerate
13244 \SpecialChar LyX
13245  won't let you change the font size and the page style of the document,
13246  because such modifications are not allowed by both packages.
13247 \end_layout
13248
13249 \begin_layout Enumerate
13250 The language of the document should not be changed.
13251  Before previewing your paper, be sure that the babel package is not used.
13252  To do this, click on 
13253 \family sans
13254 Tools\SpecialChar menuseparator
13255 Preferences
13256 \family default
13257 , select the 
13258 \family sans
13259 Lang Opts
13260 \family default
13261  tab, deselect the 
13262 \family sans
13263 Use babel
13264 \family default
13265  checkbox in the language settings, and click on 
13266 \family sans
13267 Apply
13268 \family default
13269  (or 
13270 \family sans
13271 Save
13272 \family default
13273 , if you wish to make this change permanent).
13274 \end_layout
13275
13276 \begin_layout Enumerate
13277 The 
13278 \begin_inset Quotes eld
13279 \end_inset
13280
13281 Keywords
13282 \begin_inset Quotes erd
13283 \end_inset
13284
13285  style must be used to define keywords.
13286 \end_layout
13287
13288 \begin_layout Enumerate
13289 The ijmpc package provides a style named 
13290 \begin_inset Quotes eld
13291 \end_inset
13292
13293 Classification Codes
13294 \begin_inset Quotes erd
13295 \end_inset
13296
13297 , which can be used to define classification codes, such as PACS numbers.
13298  Note that this facility is not supported by the ijmpd package.
13299 \end_layout
13300
13301 \begin_layout Enumerate
13302 Several new environments are available: 
13303 \begin_inset Quotes eld
13304 \end_inset
13305
13306 Definition
13307 \begin_inset Quotes erd
13308 \end_inset
13309
13310
13311 \begin_inset Quotes eld
13312 \end_inset
13313
13314 Step
13315 \begin_inset Quotes erd
13316 \end_inset
13317
13318
13319 \begin_inset Quotes eld
13320 \end_inset
13321
13322 Example
13323 \begin_inset Quotes erd
13324 \end_inset
13325
13326
13327 \begin_inset Quotes eld
13328 \end_inset
13329
13330 Remark
13331 \begin_inset Quotes erd
13332 \end_inset
13333
13334
13335 \begin_inset Quotes eld
13336 \end_inset
13337
13338 Notation
13339 \begin_inset Quotes erd
13340 \end_inset
13341
13342
13343 \begin_inset Quotes eld
13344 \end_inset
13345
13346 Theorem
13347 \begin_inset Quotes erd
13348 \end_inset
13349
13350
13351 \begin_inset Quotes eld
13352 \end_inset
13353
13354 Proof
13355 \begin_inset Quotes erd
13356 \end_inset
13357
13358
13359 \begin_inset Quotes eld
13360 \end_inset
13361
13362 Corollary
13363 \begin_inset Quotes erd
13364 \end_inset
13365
13366
13367 \begin_inset Quotes eld
13368 \end_inset
13369
13370 Lemma
13371 \begin_inset Quotes erd
13372 \end_inset
13373
13374
13375 \begin_inset Quotes eld
13376 \end_inset
13377
13378 Proposition
13379 \begin_inset Quotes erd
13380 \end_inset
13381
13382
13383 \begin_inset Quotes eld
13384 \end_inset
13385
13386 Prop
13387 \begin_inset Quotes erd
13388 \end_inset
13389
13390
13391 \begin_inset Quotes eld
13392 \end_inset
13393
13394 Question
13395 \begin_inset Quotes erd
13396 \end_inset
13397
13398
13399 \begin_inset Quotes eld
13400 \end_inset
13401
13402 Claim
13403 \begin_inset Quotes erd
13404 \end_inset
13405
13406 , and 
13407 \begin_inset Quotes eld
13408 \end_inset
13409
13410 Conjecture
13411 \begin_inset Quotes erd
13412 \end_inset
13413
13414 .
13415  Their use is more or less obvious.
13416  \SpecialChar LyX
13417  supports all these environments; it will use the proper label, text style,
13418  and numbering scheme for each of them.
13419 \end_layout
13420
13421 \begin_layout Enumerate
13422 Both packages use basic citations; the natbib package should not be used.
13423  In \SpecialChar LyX
13424 , citation references are shown as usual; in the output, citations are
13425  shown as superscripts.
13426  If you want to use a citation as normal text, you should use the 
13427 \family typewriter
13428 refcite
13429 \family default
13430  command, e.
13431 \begin_inset space \thinspace{}
13432 \end_inset
13433
13434 g.
13435 \begin_inset space \space{}
13436 \end_inset
13437
13438
13439 \begin_inset Quotes eld
13440 \end_inset
13441
13442 See Ref.
13443 \begin_inset space \space{}
13444 \end_inset
13445
13446
13447 \family typewriter
13448
13449 \backslash
13450 refcite{key}
13451 \family default
13452
13453 \begin_inset Quotes erd
13454 \end_inset
13455
13456 .
13457 \end_layout
13458
13459 \begin_layout Enumerate
13460 There is no 
13461 \begin_inset Quotes eld
13462 \end_inset
13463
13464 Acknowledgments
13465 \begin_inset Quotes erd
13466 \end_inset
13467
13468  section in both packages.
13469  To put acknowledgments, just use the 
13470 \begin_inset Quotes eld
13471 \end_inset
13472
13473 Section*
13474 \begin_inset Quotes erd
13475 \end_inset
13476
13477  environment.
13478 \end_layout
13479
13480 \begin_layout Enumerate
13481 Appendices may be added to the paper, 
13482 \emph on
13483 after
13484 \emph default
13485  the Acknowledgments and 
13486 \shape italic
13487 before
13488 \shape default
13489  the References.
13490  \SpecialChar LyX
13491  provides a special environment, called 
13492 \begin_inset Quotes eld
13493 \end_inset
13494
13495 Appendices Section
13496 \begin_inset Quotes erd
13497 \end_inset
13498
13499  which marks the beginning of the appendices.
13500  This environment should be left blank; it just sends a \SpecialChar LaTeX
13501  command, but nothing
13502  is really printed.
13503  In \SpecialChar LyX
13504 , the word 
13505 \begin_inset Quotes eld
13506 \end_inset
13507
13508 Appendix
13509 \begin_inset Quotes erd
13510 \end_inset
13511
13512  is printed with blue letters, as a signal that all sections after that
13513  point are appendices.
13514  To write an appendix, use the 
13515 \begin_inset Quotes eld
13516 \end_inset
13517
13518 Appendix
13519 \begin_inset Quotes erd
13520 \end_inset
13521
13522  environment.
13523  \SpecialChar LyX
13524  will number each appendix with capital letters, as required by both journals.
13525  Note that 
13526 \begin_inset Quotes eld
13527 \end_inset
13528
13529 Appendices Section
13530 \begin_inset Quotes erd
13531 \end_inset
13532
13533  
13534 \emph on
13535 must
13536 \emph default
13537  be present before the first appendix; if not, all appendices will be numbered
13538  as normal sections in the output.
13539 \end_layout
13540
13541 \begin_layout Enumerate
13542 The ijmpc and the ijmpd packages use the 
13543 \family typewriter
13544 tbl
13545 \family default
13546  command to implement table captions.
13547  As a result, a table created by \SpecialChar LyX
13548  is printed correctly, but its caption
13549  is ignored.
13550  However, you can use some \SpecialChar TeX
13551  code to overcome this problem, so that captions
13552  are printed as expected.
13553  To do so, create a float table as usual, remove the caption, and replace
13554  it with the \SpecialChar TeX
13555  code 
13556 \family typewriter
13557
13558 \backslash
13559 tbl{
13560 \emph on
13561 your table caption
13562 \emph default
13563 }{
13564 \family default
13565  (sic); you must also the \SpecialChar TeX
13566  code 
13567 \family typewriter
13568 }
13569 \family default
13570  immediately after the tabular material.
13571  Study the example table included in the template files to see how this
13572  trick is implemented.
13573  Alternatively, If you need table captions, you should implement the whole
13574  table float in a 
13575 \family typewriter
13576 .tex
13577 \family default
13578  file, then include this file to the \SpecialChar LyX
13579  document (
13580 \family sans
13581 Insert\SpecialChar menuseparator
13582 File\SpecialChar menuseparator
13583 Child
13584 \begin_inset space ~
13585 \end_inset
13586
13587 Document
13588 \family default
13589 ).
13590  Details on how to create a table float can be found in the files 
13591 \family typewriter
13592 ws-ijmpc.tex
13593 \family default
13594  and 
13595 \family typewriter
13596 ws-ijmpd.tex
13597 \family default
13598 , included in the corresponding packages.
13599 \end_layout
13600
13601 \begin_layout Subsection
13602 Preparing a paper for submission
13603 \end_layout
13604
13605 \begin_layout Standard
13606 Before you submit your paper you must export the \SpecialChar LyX
13607  document as a \SpecialChar LaTeX
13608  file (
13609 \family sans
13610 File\SpecialChar menuseparator
13611 Export\SpecialChar menuseparator
13612 \SpecialChar LaTeX
13613
13614 \family default
13615 )
13616 \begin_inset Foot
13617 status open
13618
13619 \begin_layout Plain Layout
13620 Actually you have the choice between \SpecialChar LaTeX
13621  (plain) and pdflatex.
13622  If you intend to use pdflatex to prepare the paper, you should use the
13623  pdflatex option so that included graphics are converted to PDF format,
13624  ready for use by pdflatex.
13625 \end_layout
13626
13627 \end_inset
13628
13629 , then make the following changes to the resulting 
13630 \family typewriter
13631 .tex
13632 \family default
13633  file.
13634 \end_layout
13635
13636 \begin_layout Enumerate
13637 Remove the comment lines before the 
13638 \family typewriter
13639
13640 \backslash
13641 documentclass
13642 \family default
13643  command.
13644 \end_layout
13645
13646 \begin_layout Enumerate
13647 Remove everything between (and including) the 
13648 \family typewriter
13649
13650 \backslash
13651 makeatletter
13652 \family default
13653  and 
13654 \family typewriter
13655
13656 \backslash
13657 makeatother
13658 \family default
13659  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13660  preamble.
13661 \end_layout
13662
13663 \begin_layout Standard
13664 The modified 
13665 \family typewriter
13666 .tex
13667 \family default
13668  file should be saved and processed through \SpecialChar LaTeX
13669  as many times as necessary.
13670  You may also want to check the resulting 
13671 \family typewriter
13672 .dvi
13673 \family default
13674  document.
13675 \end_layout
13676
13677 \begin_layout Subsection
13678 Use of \SpecialChar TeX
13679  code
13680 \end_layout
13681
13682 \begin_layout Standard
13683 The use of \SpecialChar TeX
13684  code is reduced to two commands, which must be placed at the
13685  top of the document.
13686  If you started writing your paper by using the 
13687 \family typewriter
13688 ijmpc.lyx
13689 \family default
13690  or the 
13691 \family typewriter
13692 ijmpd.lyx
13693 \family default
13694  template, the \SpecialChar TeX
13695  code needed is already in its place; you usually don't need
13696  to delete it.
13697  You may only modify the first \SpecialChar TeX
13698  code to specify the information printed
13699  to the top of odd and even pages (authors' names and short paper's title,
13700  respectively).
13701  This \SpecialChar TeX
13702  code must have the form 
13703 \family typewriter
13704
13705 \backslash
13706 markboth{Authors' Names}{Short Paper's Title}
13707 \family default
13708 .
13709 \end_layout
13710
13711 \begin_layout Section
13712 iopart
13713 \end_layout
13714
13715 \begin_layout Standard
13716 by 
13717 \noun on
13718 Uwe Stöhr
13719 \end_layout
13720
13721 \begin_layout Subsection
13722 Overview
13723 \end_layout
13724
13725 \begin_layout Standard
13726 The iopart package provides a document class to create electronic manuscript
13727  submission to the journals published by the Institute of Physics.
13728  Instructions for the authors how to create a paper using the iopart class
13729  can be downloaded together with the iopart package from the site 
13730 \begin_inset Flex URL
13731 status collapsed
13732
13733 \begin_layout Plain Layout
13734
13735 ftp://ftp.iop.org/pub/journals/latex2e
13736 \end_layout
13737
13738 \end_inset
13739
13740 .
13741 \end_layout
13742
13743 \begin_layout Subsection
13744 Writing a paper
13745 \end_layout
13746
13747 \begin_layout Standard
13748 The easiest way to write a paper is to start with the file 
13749 \emph on
13750 IOP-article.lyx
13751 \emph default
13752  that is available in \SpecialChar LyX
13753 's examples files folder.
13754  Open this file, save it under a new name, and start writing.
13755  The example file explains how to use the special text environments.
13756  Here are the most important advices:
13757 \end_layout
13758
13759 \begin_layout Itemize
13760 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13761  two options 
13762 \family sans
13763 Use AMS math package
13764 \family default
13765  in the document settings under 
13766 \family sans
13767 Math Options
13768 \family default
13769  are not used!
13770 \end_layout
13771
13772 \begin_layout Itemize
13773
13774 \size normal
13775 The title environment defines the kind of your paper.
13776  So use one of the following environments for the title:
13777 \end_layout
13778
13779 \begin_deeper
13780 \begin_layout Itemize
13781
13782 \family sans
13783 \size normal
13784 Title
13785 \family default
13786  for a Paper
13787 \end_layout
13788
13789 \begin_layout Itemize
13790
13791 \family sans
13792 \size normal
13793 Review
13794 \family default
13795  for a Review
13796 \end_layout
13797
13798 \begin_layout Itemize
13799
13800 \family sans
13801 \size normal
13802 Topical
13803 \family default
13804  for a Topical review
13805 \end_layout
13806
13807 \begin_layout Itemize
13808
13809 \family sans
13810 \size normal
13811 Comment
13812 \family default
13813  for a Comment
13814 \end_layout
13815
13816 \begin_layout Itemize
13817
13818 \family sans
13819 \size normal
13820 Note
13821 \family default
13822  for a Note
13823 \end_layout
13824
13825 \begin_layout Itemize
13826
13827 \family sans
13828 \size normal
13829 Paper
13830 \family default
13831  for a Paper (same as Title)
13832 \end_layout
13833
13834 \begin_layout Itemize
13835
13836 \family sans
13837 \size normal
13838 Prelim
13839 \family default
13840  for a Preliminary communication
13841 \end_layout
13842
13843 \begin_layout Itemize
13844
13845 \family sans
13846 \size normal
13847 Rapid
13848 \family default
13849  for a Rapid communication
13850 \end_layout
13851
13852 \begin_layout Itemize
13853
13854 \family sans
13855 \size normal
13856 Letter
13857 \family default
13858  for a Letter to the editor
13859 \end_layout
13860
13861 \end_deeper
13862 \begin_layout Itemize
13863
13864 \size normal
13865 All title environments except of 
13866 \family sans
13867 Letter
13868 \family default
13869  can have an optional short title.
13870 \end_layout
13871
13872 \begin_layout Itemize
13873 There is a general title environment 
13874 \family sans
13875 Article
13876 \family default
13877  which is not directly supported by the \SpecialChar LyX
13878 .
13879  This can be used as \SpecialChar TeX
13880  code when your document doesn't fit into one of the
13881  other title types.
13882 \end_layout
13883
13884 \begin_layout Standard
13885 For more informations like hints for special table and formula formatting,
13886  look at the IOP author guidelines.
13887 \end_layout
13888
13889 \begin_layout Section
13890 Kluwer
13891 \end_layout
13892
13893 \begin_layout Standard
13894 by 
13895 \noun on
13896 Panayotis Papasotiriou
13897 \end_layout
13898
13899 \begin_layout Subsection
13900 Overview
13901 \end_layout
13902
13903 \begin_layout Standard
13904 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13905  that facilitates electronic manuscript submission to the journals they
13906  publish.
13907  Most known of them (at least in my domain of interest) are 
13908 \emph on
13909 Astrophysics and Space Science
13910 \emph default
13911  and 
13912 \emph on
13913 Solar Physics
13914 \emph default
13915 , but there are many others (see a complete list at 
13916 \begin_inset Flex URL
13917 status open
13918
13919 \begin_layout Plain Layout
13920
13921 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13922 \end_layout
13923
13924 \end_inset
13925
13926 ).
13927  The Kluwer package may be downloaded from the site 
13928 \begin_inset Flex URL
13929 status collapsed
13930
13931 \begin_layout Plain Layout
13932
13933 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13934 \end_layout
13935
13936 \end_inset
13937
13938 .
13939  A complete user guide is contained in that package (but it can also be
13940  downloaded separately).
13941 \end_layout
13942
13943 \begin_layout Standard
13944 \SpecialChar LyX
13945  supports many features of the package but not everything.
13946  However, the \SpecialChar TeX
13947  code needed is reduced to some 
13948 \begin_inset Quotes eld
13949 \end_inset
13950
13951 peculiar
13952 \begin_inset Quotes erd
13953 \end_inset
13954
13955  commands of the package (see
13956 \begin_inset space ~
13957 \end_inset
13958
13959
13960 \begin_inset CommandInset ref
13961 LatexCommand ref
13962 reference "subsec:kluwer_peculiarities"
13963
13964 \end_inset
13965
13966 ).
13967  I have recently used \SpecialChar LyX
13968  to write an article submitted to the 
13969 \emph on
13970 Astrophysics and Space Science
13971 \emph default
13972  without any problem.
13973 \end_layout
13974
13975 \begin_layout Subsection
13976 Writing a paper
13977 \end_layout
13978
13979 \begin_layout Standard
13980 The easiest way to write a paper is to start with the Kluwer template file.
13981  Click on 
13982 \family sans
13983 File\SpecialChar menuseparator
13984 New from
13985 \family default
13986  
13987 \family sans
13988 Template
13989 \family default
13990 , then choose the 
13991 \family typewriter
13992 kluwer.lyx
13993 \family default
13994  template.
13995  This will give an (almost) empty document that includes the most common
13996  fields found in a manuscript and a short description of their use.
13997  As in most templates, simply overwrite the existing text (including the
13998  brackets, 
13999 \family typewriter
14000 <>
14001 \family default
14002 ) with the correct information.
14003 \end_layout
14004
14005 \begin_layout Subsection
14006 Preparing a paper for submission
14007 \end_layout
14008
14009 \begin_layout Standard
14010 As in the AAS\SpecialChar TeX
14011  package, before you submit your paper to a journal you must
14012  
14013 \begin_inset Quotes eld
14014 \end_inset
14015
14016 postprocess
14017 \begin_inset Quotes erd
14018 \end_inset
14019
14020  it as follows.
14021 \end_layout
14022
14023 \begin_layout Enumerate
14024 Export your paper as a \SpecialChar LaTeX
14025  file.
14026  To do this, click on 
14027 \family sans
14028 File\SpecialChar menuseparator
14029 Export\SpecialChar menuseparator
14030 \SpecialChar LaTeX
14031
14032 \family default
14033 .
14034  
14035 \end_layout
14036
14037 \begin_layout Enumerate
14038 Edit the resulting 
14039 \family typewriter
14040 .tex
14041 \family default
14042  file with a text editor and make the following changes
14043 \end_layout
14044
14045 \begin_deeper
14046 \begin_layout Enumerate
14047 remove the comment lines before the 
14048 \family typewriter
14049
14050 \backslash
14051 documentclass
14052 \family default
14053  command,
14054 \end_layout
14055
14056 \begin_layout Enumerate
14057 remove everything between (and including) the 
14058 \family typewriter
14059
14060 \backslash
14061 makeatletter
14062 \family default
14063  and 
14064 \family typewriter
14065
14066 \backslash
14067 makeatother
14068 \family default
14069  commands, except for any commands you specifically put into the \SpecialChar LaTeX
14070  preamble.
14071 \end_layout
14072
14073 \begin_layout Standard
14074 Save the resulting 
14075 \family typewriter
14076 .tex
14077 \family default
14078  file.
14079 \end_layout
14080
14081 \end_deeper
14082 \begin_layout Enumerate
14083 Run the 
14084 \family typewriter
14085 .tex
14086 \family default
14087  file through \SpecialChar LaTeX
14088  as many times as necessary (usually up to three).
14089 \end_layout
14090
14091 \begin_layout Enumerate
14092 View the resulting 
14093 \family typewriter
14094 .dvi
14095 \family default
14096  document using, e.
14097 \begin_inset space \thinspace{}
14098 \end_inset
14099
14100 g.
14101 \begin_inset space \space{}
14102 \end_inset
14103
14104
14105 \family sans
14106 xdvi
14107 \family default
14108 , and check if everything is OK (it should, if you didn't make any mistake).
14109 \end_layout
14110
14111 \begin_layout Subsection
14112 \begin_inset Quotes eld
14113 \end_inset
14114
14115 Peculiarities
14116 \begin_inset Quotes erd
14117 \end_inset
14118
14119  of the Kluwer package
14120 \begin_inset CommandInset label
14121 LatexCommand label
14122 name "subsec:kluwer_peculiarities"
14123
14124 \end_inset
14125
14126
14127 \end_layout
14128
14129 \begin_layout Standard
14130 The Kluwer package has the following 
14131 \begin_inset Quotes eld
14132 \end_inset
14133
14134 peculiarities
14135 \begin_inset Quotes erd
14136 \end_inset
14137
14138 .
14139 \end_layout
14140
14141 \begin_layout Enumerate
14142 It is possible to write multiple articles in the same \SpecialChar LaTeX
14143  file
14144 \begin_inset Foot
14145 status collapsed
14146
14147 \begin_layout Plain Layout
14148 I can't imagine any good reason to do this.
14149 \end_layout
14150
14151 \end_inset
14152
14153 .
14154  Each article must be included in the environment 
14155 \begin_inset Quotes eld
14156 \end_inset
14157
14158 article
14159 \begin_inset Quotes erd
14160 \end_inset
14161
14162 .
14163  Unfortunately, this environment cannot be omitted, even if you write just
14164  one article.
14165  Therefore, each article starts with the command 
14166 \family typewriter
14167
14168 \backslash
14169 begin{article}
14170 \family default
14171  and, obviously, ends with the command 
14172 \family typewriter
14173
14174 \backslash
14175 end{article}
14176 \family default
14177 .
14178  Although this can be implemented in \SpecialChar LyX
14179 , I didn't included it, since it looks
14180  ugly and can confuse the novice user.
14181  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
14182  code (the
14183  well-known 
14184 \begin_inset Quotes eld
14185 \end_inset
14186
14187 \SpecialChar TeX
14188  code
14189 \begin_inset Quotes erd
14190 \end_inset
14191
14192 ).
14193 \end_layout
14194
14195 \begin_layout Enumerate
14196 Information given at the beginning of the article (i.
14197 \begin_inset space \thinspace{}
14198 \end_inset
14199
14200 e.
14201 \begin_inset space \space{}
14202 \end_inset
14203
14204 title, subtitle, author, institution, running title, running author, abstract
14205  and keywords) must be included in an environment called 
14206 \begin_inset Quotes eld
14207 \end_inset
14208
14209 opening
14210 \begin_inset Quotes erd
14211 \end_inset
14212
14213 .
14214  This is not implemented in \SpecialChar LyX
14215 , so you must enter title, subtitle etc.
14216 \begin_inset space ~
14217 \end_inset
14218
14219 between two \SpecialChar TeX
14220  code lines (
14221 \family typewriter
14222
14223 \backslash
14224 begin{opening}
14225 \family default
14226  and 
14227 \family typewriter
14228
14229 \backslash
14230 end{opening}
14231 \family default
14232 ).
14233 \end_layout
14234
14235 \begin_layout Enumerate
14236 According to the user manual, the label of each bibliography item must be
14237  written as 
14238 \family typewriter
14239
14240 \backslash
14241 protect
14242 \backslash
14243 citeauthoryear{
14244 \family default
14245 \emph on
14246 author(s)
14247 \family typewriter
14248 \emph default
14249 }{
14250 \family default
14251 \emph on
14252 year
14253 \family typewriter
14254 \emph default
14255 }
14256 \family default
14257 .
14258 \end_layout
14259
14260 \begin_layout Standard
14261 The 
14262 \family typewriter
14263 kluwer.lyx
14264 \family default
14265  template takes care of all these 
14266 \begin_inset Quotes eld
14267 \end_inset
14268
14269 peculiarities
14270 \begin_inset Quotes erd
14271 \end_inset
14272
14273 .
14274  If you start a new paper using this template you don't need to do anything
14275  special.
14276  Just 
14277 \end_layout
14278
14279 \begin_layout Enumerate
14280 don't delete the \SpecialChar TeX
14281  code included in the template, and
14282 \end_layout
14283
14284 \begin_layout Enumerate
14285 copy the example bibliography item included in the template and modify it
14286  as necessary to enter new bibliography items.
14287 \end_layout
14288
14289 \begin_layout Section
14290 Koma-Script
14291 \end_layout
14292
14293 \begin_layout Standard
14294 by 
14295 \noun on
14296 Bernd Rellermeyer
14297 \end_layout
14298
14299 \begin_layout Subsection
14300 Overview
14301 \end_layout
14302
14303 \begin_layout Standard
14304 The \SpecialChar LyX
14305  document classes 
14306 \emph on
14307 article (koma-script)
14308 \emph default
14309
14310 \emph on
14311 report (koma-script)
14312 \emph default
14313
14314 \emph on
14315 book
14316 \emph default
14317  
14318 \emph on
14319 (koma-script)
14320 \emph default
14321 , and 
14322 \emph on
14323 letter
14324 \emph default
14325  
14326 \emph on
14327 (koma-script)
14328 \emph default
14329  correspond to the \SpecialChar LaTeX
14330  document classes 
14331 \family typewriter
14332 scrartcl.cls
14333 \family default
14334
14335 \family typewriter
14336 scrreprt.cls
14337 \family default
14338
14339 \family typewriter
14340 scrbook.cls
14341 \family default
14342 , and 
14343 \family typewriter
14344 scrlettr.cls
14345 \family default
14346 , resp.
14347 \begin_inset space ~
14348 \end_inset
14349
14350 of the Koma-Script family.
14351  They are replacements for the standard document classes 
14352 \family typewriter
14353 article.cls
14354 \family default
14355
14356 \family typewriter
14357 report.cls
14358 \family default
14359
14360 \family typewriter
14361 book.cls
14362 \family default
14363  and 
14364 \family typewriter
14365 letter.cls
14366 \family default
14367 , resp., and fit better to European typography conventions in a number of
14368  points.
14369 \end_layout
14370
14371 \begin_layout Itemize
14372 Standard character size is 11pt in 
14373 \emph on
14374 article (koma-script)
14375 \emph default
14376
14377 \emph on
14378 report (koma-script)
14379 \emph default
14380 , and 
14381 \emph on
14382 book (koma-script)
14383 \emph default
14384 , and 12pt in 
14385 \emph on
14386 letter (koma-script)
14387 \emph default
14388 .
14389 \end_layout
14390
14391 \begin_layout Itemize
14392 Headings, labels of the description environment, and a number of elements
14393  of the 
14394 \emph on
14395 letter (koma-script)
14396 \emph default
14397  document class are set in a bold sans serif font.
14398 \begin_inset Foot
14399 status collapsed
14400
14401 \begin_layout Plain Layout
14402 There is a big difference between the bold sans serif old cm fonts and new
14403  ec fonts, especially in the appearance of headings.
14404  In comparison, the ec bold sans serif fonts look a bit thin.
14405  Here the \SpecialChar LaTeX
14406  package 
14407 \family typewriter
14408 cmsd.sty by
14409 \family default
14410  
14411 \shape smallcaps
14412 Walter Schmidt
14413 \shape default
14414  helps to produce the 
14415 \begin_inset Quotes eld
14416 \end_inset
14417
14418 usual
14419 \begin_inset Quotes erd
14420 \end_inset
14421
14422  appearance when using the ec fonts.
14423 \end_layout
14424
14425 \end_inset
14426
14427  The numbering of chapter headings is made in the same way as the numbering
14428  of section headings, that is without the extra line 
14429 \begin_inset Quotes eld
14430 \end_inset
14431
14432 Chapter\SpecialChar ldots
14433
14434 \begin_inset Quotes erd
14435 \end_inset
14436
14437 .
14438  In addition, the appearance of the headings can be modified by using a
14439  number of options (in \SpecialChar LyX
14440  to be entered in the field 
14441 \family sans
14442 Extra
14443 \begin_inset space ~
14444 \end_inset
14445
14446 Options
14447 \family default
14448  of the dialog 
14449 \family sans
14450 Layout\SpecialChar menuseparator
14451 Document
14452 \family default
14453 ).
14454  
14455 \end_layout
14456
14457 \begin_layout Itemize
14458 The main means in the Koma-Script document classes to design the type area
14459  are the options 
14460 \family sans
14461 BCOR
14462 \family default
14463  and 
14464 \family sans
14465 DIV
14466 \family default
14467  (in \SpecialChar LyX
14468  to be entered in the extra class options field in the dialog 
14469 \family sans
14470 Document\SpecialChar menuseparator
14471 Settings
14472 \family default
14473 ).
14474  They make a clearer modification of page margins possible as do the options
14475  of the dialog 
14476 \family sans
14477 Document\SpecialChar menuseparator
14478 Settings
14479 \family default
14480 .
14481  
14482 \end_layout
14483
14484 \begin_layout Itemize
14485 The \SpecialChar LaTeX
14486  document classes of the Koma-Script family define a number of additional
14487  commands.
14488  Those part of it which makes sense in \SpecialChar LyX
14489  is implemented in corresponding
14490  paragraph types.
14491 \end_layout
14492
14493 \begin_layout Standard
14494 Detailed descriptions of the \SpecialChar LaTeX
14495  document classes of the Koma-Script family
14496  can be found in the Koma-Script documentation 
14497 \emph on
14498 scrguide
14499 \emph default
14500  (German) and 
14501 \emph on
14502 scrguien
14503 \emph default
14504  (English).
14505 \end_layout
14506
14507 \begin_layout Subsection
14508 article (koma-script), report (koma-script), and book (koma-script)
14509 \end_layout
14510
14511 \begin_layout Standard
14512 The document classes 
14513 \emph on
14514 article (koma-script)
14515 \emph default
14516
14517 \emph on
14518 report (koma-script)
14519 \emph default
14520 , and 
14521 \emph on
14522 book
14523 \emph default
14524  
14525 \emph on
14526 (koma-script)
14527 \emph default
14528  are implemented in the layout files 
14529 \family typewriter
14530 scrartcl.layout
14531 \family default
14532
14533 \family typewriter
14534 scrreprt.layout
14535 \family default
14536 , and 
14537 \family typewriter
14538 scrbook.layout
14539 \family default
14540 , resp.
14541  They contain all the paragraph types of the corresponding standard document
14542  classes 
14543 \emph on
14544 article
14545 \emph default
14546
14547 \emph on
14548 report
14549 \emph default
14550 , and 
14551 \emph on
14552 book
14553 \emph default
14554 , resp., partly modified, with the exception of the \SpecialChar LyX
14555  specific 
14556 \family sans
14557 List
14558 \family default
14559 -type, which is replaced by the new 
14560 \family sans
14561 Labeling
14562 \family default
14563 -type having the same functionality.
14564  Beside the 
14565 \family sans
14566 Labeling
14567 \family default
14568 -Type there is a number of new paragraph types added.
14569  They are 
14570 \emph on
14571 not
14572 \emph default
14573  part of 
14574 \emph on
14575 letter (koma-script)
14576 \emph default
14577 .
14578 \end_layout
14579
14580 \begin_layout Itemize
14581
14582 \family sans
14583 Addpart, Addchap
14584 \family default
14585
14586 \family sans
14587 Addsec
14588 \family default
14589 : are equivalents to 
14590 \family sans
14591 Part*, Chapter*
14592 \family default
14593  and 
14594 \family sans
14595 Section*
14596 \family default
14597 , resp., additionally inserting an entry in the table of contents.
14598  
14599 \family sans
14600 Addpart
14601 \family default
14602  and 
14603 \family sans
14604 Addchap
14605 \family default
14606  are not contained in 
14607 \emph on
14608 article (koma-script)
14609 \emph default
14610 .
14611 \end_layout
14612
14613 \begin_layout Itemize
14614
14615 \family sans
14616 Addchap*
14617 \family default
14618
14619 \family sans
14620 Addsec*
14621 \family default
14622 : behave exactly as 
14623 \family sans
14624 Addchap
14625 \family default
14626  and 
14627 \family sans
14628 Addsec
14629 \family default
14630 , resp., additionally clearing running heads.
14631  
14632 \family sans
14633 Addchap*
14634 \family default
14635  is not contained in 
14636 \emph on
14637 article (koma-script)
14638 \emph default
14639 .
14640 \begin_inset Foot
14641 status collapsed
14642
14643 \begin_layout Plain Layout
14644 There is also an 
14645 \family typewriter
14646
14647 \backslash
14648 addpart*
14649 \family default
14650  command in 
14651 \emph on
14652 book (koma-script)
14653 \emph default
14654  and in 
14655 \emph on
14656 report (koma-script)
14657 \emph default
14658 , but since this is identical to 
14659 \family sans
14660 Part*
14661 \family default
14662 , is has not been implemented in \SpecialChar LyX
14663 .
14664 \end_layout
14665
14666 \end_inset
14667
14668
14669 \end_layout
14670
14671 \begin_layout Itemize
14672
14673 \family sans
14674 Minisec
14675 \family default
14676 : generates a heading directly above the following paragraph in the standard
14677  character size without affecting the structure of the document.
14678 \end_layout
14679
14680 \begin_layout Itemize
14681
14682 \family sans
14683 Captionabove
14684 \family default
14685  and 
14686 \family sans
14687 Captionbelow
14688 \family default
14689  are special captions which respect the different space settings needed
14690  for captions placed above or below an element (if you follow strict typographic
14691  rules, you might want to place table captions always above the table).
14692  You can also use the class option 
14693 \family typewriter
14694 tablecaptionsabove
14695 \family default
14696 , which will switch 
14697 \family sans
14698 caption
14699 \family default
14700  to 
14701 \family sans
14702 captionabove
14703 \family default
14704  for tables and 
14705 \family sans
14706 captionbelow
14707 \family default
14708  for figures.
14709  You need at least Koma-Script version 2.8q to use this.
14710 \end_layout
14711
14712 \begin_layout Itemize
14713
14714 \family sans
14715 Dictum
14716 \family default
14717 : can be used to set a bonmot, e.
14718 \begin_inset space \thinspace{}
14719 \end_inset
14720
14721 g.
14722 \begin_inset space \space{}
14723 \end_inset
14724
14725 at the beginning of a chapter.
14726  If you use the optional argument (
14727 \family sans
14728 Insert\SpecialChar menuseparator
14729 Short
14730 \begin_inset space ~
14731 \end_inset
14732
14733 Title
14734 \family default
14735 ), you can insert the dictum's author there.
14736  Dictum and author are separated by a line.
14737  You need at least Koma-Script version 2.8q to use this.
14738  
14739 \family sans
14740 Dictum
14741 \family default
14742  is not contained in 
14743 \emph on
14744 article (koma-script)
14745 \emph default
14746 .
14747 \end_layout
14748
14749 \begin_layout Standard
14750 The following types, together with the standard types 
14751 \family sans
14752 Title
14753 \family default
14754
14755 \family sans
14756 Author
14757 \family default
14758 , and 
14759 \family sans
14760 Date
14761 \family default
14762 , form the title area of the document.
14763  They must be entered ahead of the first 
14764 \begin_inset Quotes eld
14765 \end_inset
14766
14767 ordinary
14768 \begin_inset Quotes erd
14769 \end_inset
14770
14771  paragraph.
14772 \begin_inset Foot
14773 status collapsed
14774
14775 \begin_layout Plain Layout
14776 The corresponding \SpecialChar LaTeX
14777  commands must appear before the 
14778 \family typewriter
14779
14780 \backslash
14781 maketitle
14782 \family default
14783  command.
14784 \end_layout
14785
14786 \end_inset
14787
14788  When such a type is used more than once, the latter usage overwrites the
14789  former one, that means, for every type only the latest usage is valid.
14790  The order of the different types however has, like 
14791 \family sans
14792 Title
14793 \family default
14794
14795 \family sans
14796 Author
14797 \family default
14798 , and 
14799 \family sans
14800 Date
14801 \family default
14802 , no effect on the appearance of the produced document.
14803 \end_layout
14804
14805 \begin_layout Itemize
14806
14807 \family sans
14808 Subject
14809 \family default
14810 : produces a centered paragraph above the ordinary title (
14811 \family sans
14812 Title
14813 \family default
14814
14815 \family sans
14816 Author
14817 \family default
14818
14819 \family sans
14820 Date
14821 \family default
14822 ) for the subject of the document.
14823 \end_layout
14824
14825 \begin_layout Itemize
14826
14827 \family sans
14828 Publishers
14829 \family default
14830 : produces a centered paragraph below the ordinary title (
14831 \family sans
14832 Title
14833 \family default
14834
14835 \family sans
14836 Author
14837 \family default
14838
14839 \family sans
14840 Date
14841 \family default
14842 ) for the publishers' name.
14843 \end_layout
14844
14845 \begin_layout Itemize
14846
14847 \family sans
14848 Dedication
14849 \family default
14850 : in 
14851 \emph on
14852 report (koma-script)
14853 \emph default
14854  and 
14855 \emph on
14856 book (koma-script)
14857 \emph default
14858  produces a centered paragraph on its own page behind the title page, or
14859  in 
14860 \emph on
14861 article (koma-script)
14862 \emph default
14863  produces a centered paragraph below the ordinary title (
14864 \family sans
14865 Title
14866 \family default
14867
14868 \family sans
14869 Author
14870 \family default
14871
14872 \family sans
14873 Date
14874 \family default
14875
14876 \family sans
14877 Publishers
14878 \family default
14879 ) for a dedication.
14880 \end_layout
14881
14882 \begin_layout Itemize
14883
14884 \family sans
14885 Titlehead
14886 \family default
14887 : produces a left aligned paragraph above the ordinary title (
14888 \family sans
14889 Title
14890 \family default
14891
14892 \family sans
14893 Author
14894 \family default
14895
14896 \family sans
14897 Date
14898 \family default
14899
14900 \family sans
14901 Subject
14902 \family default
14903 ) for a document`s head.
14904 \end_layout
14905
14906 \begin_layout Itemize
14907
14908 \family sans
14909 Uppertitleback
14910 \family default
14911 : produces in a double-sided print in 
14912 \emph on
14913 report (koma-script)
14914 \emph default
14915  and 
14916 \emph on
14917 book (koma-script)
14918 \emph default
14919  a left-aligned paragraph at the top of the title page`s back or has no
14920  effect in a single-sided print or in 
14921 \emph on
14922 article (koma-script)
14923 \emph default
14924 .
14925 \end_layout
14926
14927 \begin_layout Itemize
14928
14929 \family sans
14930 Lowertitleback
14931 \family default
14932 : produces in a double-sided print in 
14933 \emph on
14934 report (koma-script)
14935 \emph default
14936  and 
14937 \emph on
14938 book (koma-script)
14939 \emph default
14940  a left-aligned paragraph at the bottom of the title page`s back or has
14941  no effect in a single-sided print or in 
14942 \emph on
14943 article (koma-script)
14944 \emph default
14945 .
14946 \end_layout
14947
14948 \begin_layout Itemize
14949
14950 \family sans
14951 Extratitle
14952 \family default
14953 : produces a special 
14954 \begin_inset Quotes eld
14955 \end_inset
14956
14957 dirty
14958 \begin_inset Quotes erd
14959 \end_inset
14960
14961  page ahead of the actual document containing a paragraph without special
14962  formatting.
14963 \end_layout
14964
14965 \begin_layout Standard
14966 The layout files for the document classes 
14967 \emph on
14968 article (koma-script)
14969 \emph default
14970
14971 \emph on
14972 report (koma-script)
14973 \emph default
14974 , and 
14975 \emph on
14976 book (koma-script)
14977 \emph default
14978  do include the file 
14979 \family typewriter
14980 scrmacros.inc
14981 \family default
14982 .
14983  This is thought of as a place to define your own types.
14984  Copy scrmacros
14985 \family typewriter
14986 .inc
14987 \family default
14988  in your personal layout directory and edit the file!
14989 \end_layout
14990
14991 \begin_layout Subsection
14992 letter (koma-script)
14993 \end_layout
14994
14995 \begin_layout Standard
14996 \noindent
14997 The document class 
14998 \emph on
14999 letter (koma-script)
15000 \emph default
15001  is implemented in the layout file 
15002 \family typewriter
15003 scrlettr.layout
15004 \family default
15005 .
15006  It contains all the paragraph types of the corresponding standard document
15007  class 
15008 \emph on
15009 letter
15010 \emph default
15011 , partly modified, with the exception of the \SpecialChar LyX
15012  specific types 
15013 \family sans
15014 \SpecialChar LyX
15015 -Code
15016 \family default
15017  and 
15018 \family sans
15019 Comment
15020 \family default
15021  and the 
15022 \family sans
15023 List
15024 \family default
15025  type, which is replaced by the new 
15026 \family sans
15027 Labeling
15028 \family default
15029  type.
15030  In addition, it contains, in contrast to the standard document class, the
15031  standard types 
15032 \family sans
15033 \SpecialChar LaTeX
15034
15035 \family default
15036
15037 \family sans
15038 Quotation
15039 \family default
15040
15041 \family sans
15042 Quote
15043 \family default
15044 , and 
15045 \family sans
15046 Verse
15047 \family default
15048 .
15049  Furthermore, there are a number of new letter specific types.
15050 \end_layout
15051
15052 \begin_layout Standard
15053 The appearance of the letter produced by this document class can be controlled
15054  by a number of \SpecialChar LaTeX
15055  commands, which you can put in the \SpecialChar LaTeX
15056  preamble.
15057 \begin_inset Foot
15058 status collapsed
15059
15060 \begin_layout Plain Layout
15061 For example, the standard appearance of the letter`s heading, consisting
15062  of name and address, is quite self-willed.
15063  An 
15064 \begin_inset Quotes eld
15065 \end_inset
15066
15067 ordinary
15068 \begin_inset Quotes erd
15069 \end_inset
15070
15071  heading is produced by the following \SpecialChar LaTeX
15072  commands in the preamble:
15073 \end_layout
15074
15075 \begin_layout LyX-Code
15076
15077 \backslash
15078 firsthead{
15079 \backslash
15080 parbox[b]{
15081 \backslash
15082 textwidth}
15083 \end_layout
15084
15085 \begin_layout LyX-Code
15086   {
15087 \backslash
15088 ignorespaces 
15089 \backslash
15090 fromname
15091 \backslash
15092
15093 \backslash
15094  
15095 \backslash
15096 ignorespaces 
15097 \backslash
15098 fromaddress}} 
15099 \end_layout
15100
15101 \begin_layout LyX-Code
15102
15103 \backslash
15104 nexthead{
15105 \backslash
15106 parbox[b]{
15107 \backslash
15108 textwidth}
15109 \end_layout
15110
15111 \begin_layout LyX-Code
15112   {
15113 \backslash
15114 ignorespaces 
15115 \backslash
15116 fromname 
15117 \backslash
15118 hfill 
15119 \backslash
15120 ignorespaces 
15121 \backslash
15122 pagename
15123 \backslash
15124  
15125 \backslash
15126 thepage}}
15127 \end_layout
15128
15129 \end_inset
15130
15131  A detailed German description of such \SpecialChar LaTeX
15132  commands can be found in the Koma-Script
15133  documentation 
15134 \emph on
15135 scrguide
15136 \emph default
15137 .
15138  With it, the letter's author can produce his personal letter layout.
15139 \end_layout
15140
15141 \begin_layout Standard
15142 The types 
15143 \family sans
15144 Letter
15145 \family default
15146  and 
15147 \family sans
15148 Opening
15149 \family default
15150  define the beginning of the letter and must be used in every letter.
15151  To emphasize them in the \SpecialChar LyX
15152  document class, they are marked with the letter
15153  
15154 \shape italic
15155 L
15156 \shape default
15157  or 
15158 \shape italic
15159 O
15160 \shape default
15161 , resp.
15162 \begin_inset space ~
15163 \end_inset
15164
15165 in the left margin.
15166  It is possible to write any number of letters in one file.
15167  An 
15168 \family sans
15169 Opening
15170 \family default
15171  type produces a new letter using the same addressee and a 
15172 \family sans
15173 Letter
15174 \family default
15175  type produces a new addressee.
15176  The types 
15177 \family sans
15178 Closing
15179 \family default
15180
15181 \family sans
15182 PS
15183 \family default
15184
15185 \family sans
15186 CC
15187 \family default
15188 , and 
15189 \family sans
15190 Encl
15191 \family default
15192  are ordinary paragraph types and can also be used several times in one
15193  and the same letter.
15194 \end_layout
15195
15196 \begin_layout Itemize
15197
15198 \family sans
15199 Letter
15200 \family default
15201 : produces a paragraph for the addressee and implicitly defines the beginning
15202  of the letter.
15203 \end_layout
15204
15205 \begin_layout Itemize
15206
15207 \family sans
15208 Opening
15209 \family default
15210 : produces a paragraph for the form of address and implicitly produces a
15211  new letter.
15212 \end_layout
15213
15214 \begin_layout Itemize
15215
15216 \family sans
15217 Closing
15218 \family default
15219 : produces a paragraph for a close.
15220 \end_layout
15221
15222 \begin_layout Itemize
15223
15224 \family sans
15225 PS
15226 \family default
15227 : produces a paragraph for a postscript.
15228 \end_layout
15229
15230 \begin_layout Itemize
15231
15232 \family sans
15233 CC
15234 \family default
15235 : produces a paragraph for a distribution list.
15236 \end_layout
15237
15238 \begin_layout Itemize
15239
15240 \family sans
15241 Encl
15242 \family default
15243 : produces a paragraph for enclosures.
15244 \end_layout
15245
15246 \begin_layout Standard
15247 The types 
15248 \family sans
15249 Name
15250 \family default
15251
15252 \family sans
15253 Signature
15254 \family default
15255
15256 \family sans
15257 Address
15258 \family default
15259
15260 \family sans
15261 Telephone
15262 \family default
15263
15264 \family sans
15265 Place
15266 \family default
15267
15268 \family sans
15269 Backaddress
15270 \family default
15271
15272 \family sans
15273 Specialmail
15274 \family default
15275
15276 \family sans
15277 Location
15278 \family default
15279
15280 \family sans
15281 Title
15282 \family default
15283 , and 
15284 \family sans
15285 Subject
15286 \family default
15287  are input types provided with a label to enter information, which will
15288  be processed by the document class.
15289 \begin_inset Foot
15290 status open
15291
15292 \begin_layout Plain Layout
15293 It could be seen as a matter of inconsequence, that the types 
15294 \family sans
15295 Letter
15296 \family default
15297  and 
15298 \family sans
15299 Opening
15300 \family default
15301  described above are not such input types as well.
15302  Because of the special meaning of those types, however, I have implemented
15303  them as ordinary paragraph types with a one letter mark in the left margin.
15304  Moreover, it would affect my feeling of symmetry, if the 
15305 \family sans
15306 Opening
15307 \family default
15308  type and the 
15309 \family sans
15310 Closing
15311 \family default
15312  type had such a serious different appearance.
15313 \end_layout
15314
15315 \end_inset
15316
15317  The types must be used ahead of the corresponding 
15318 \family sans
15319 Opening
15320 \family default
15321  type.
15322 \end_layout
15323
15324 \begin_layout Standard
15325 An implementation of these types in a WYSIWYG fashion does not seem to make
15326  sense, because the real appearance of the produced letter does not only
15327  depend on the usage of the particular type, but also on other factors.
15328  For example, a signature entered in the 
15329 \family sans
15330 Signature
15331 \family default
15332  type will in the standard behavior appear in the produced letter only,
15333  when in the same letter also a 
15334 \family sans
15335 Closing
15336 \family default
15337  type is used.
15338  The entered value of the 
15339 \family sans
15340 Telephone
15341 \family default
15342  type will in the standard behavior not appear in the produced letter at
15343  all.
15344  The possibility to design the letter`s heading freely is already indicated
15345  in a footnote above.
15346 \end_layout
15347
15348 \begin_layout Standard
15349 The input types can also be used as empty paragraphs.
15350  This makes sense e.
15351 \begin_inset space \thinspace{}
15352 \end_inset
15353
15354 g.
15355 \begin_inset space \space{}
15356 \end_inset
15357
15358 for the 
15359 \family sans
15360 Signature
15361 \family default
15362  type.
15363  If the 
15364 \family sans
15365 Signature
15366 \family default
15367  type is not used at all, in the standard behavior the value of the 
15368 \family sans
15369 Name
15370 \family default
15371  type is used as signature, whereas if an empty 
15372 \family sans
15373 Signature
15374 \family default
15375  type is used, no signature value is defined.
15376 \end_layout
15377
15378 \begin_layout Standard
15379 By using the input types it is possible to write a letter template, containing
15380  filled input types with your personal dates (name, address, etc.) and empty
15381  input types for other dates you want to enter.
15382 \end_layout
15383
15384 \begin_layout Itemize
15385
15386 \family sans
15387 Name
15388 \family default
15389 : sender's name, in the standard behavior appears as a centered paragraph
15390  in small caps in the letter`s heading.
15391 \end_layout
15392
15393 \begin_layout Itemize
15394
15395 \family sans
15396 Signature
15397 \family default
15398 : sender's signature, in the standard behavior appears below the 
15399 \family sans
15400 Closing
15401 \family default
15402  type.
15403  If no 
15404 \family sans
15405 Signature
15406 \family default
15407  type is used, the value of the 
15408 \family sans
15409 Name
15410 \family default
15411  type appears instead.
15412 \end_layout
15413
15414 \begin_layout Itemize
15415
15416 \family sans
15417 Address
15418 \family default
15419 : sender's address, in the standard behavior appears in a centered paragraph
15420  in the letter`s heading below the sender's name.
15421 \end_layout
15422
15423 \begin_layout Itemize
15424
15425 \family sans
15426 Telephone
15427 \family default
15428 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15429  variable
15430  
15431 \family typewriter
15432
15433 \backslash
15434 telephonenum
15435 \family default
15436 .
15437 \end_layout
15438
15439 \begin_layout Itemize
15440
15441 \family sans
15442 Place
15443 \family default
15444 : place of the letter`s making.
15445 \end_layout
15446
15447 \begin_layout Itemize
15448
15449 \family sans
15450 Date
15451 \family default
15452 : date of the letter`s making.
15453  
15454 \family sans
15455 Place
15456 \family default
15457  and 
15458 \family sans
15459 Date
15460 \family default
15461 , in the standard behavior, produce the place and the date in a right-aligned
15462  line below the addressee's field.
15463  If an empty 
15464 \family sans
15465 Date
15466 \family default
15467  type is used, neither place nor date appear, independent of the value of
15468  the 
15469 \family sans
15470 Place
15471 \family default
15472  type.
15473  If no 
15474 \family sans
15475 Date
15476 \family default
15477  type is used, the date of the letter `s production is used.
15478 \end_layout
15479
15480 \begin_layout Itemize
15481
15482 \family sans
15483 Backaddress
15484 \family default
15485 : sender`s back address, in the standard behavior appears above the addressee's
15486  field in a small sans serif font.
15487 \end_layout
15488
15489 \begin_layout Itemize
15490
15491 \family sans
15492 Specialmail
15493 \family default
15494 : special mail information, in the standard behavior appears underlined
15495  above the addressee's field below the back address.
15496 \end_layout
15497
15498 \begin_layout Itemize
15499
15500 \family sans
15501 Location
15502 \family default
15503 : additional information, in the standard behavior appears on right side
15504  below the addressee`s field.
15505 \end_layout
15506
15507 \begin_layout Itemize
15508
15509 \family sans
15510 Title
15511 \family default
15512 : the letter's title, in the standard behavior appears in a big, bold, sans
15513  serif font above the subject.
15514 \end_layout
15515
15516 \begin_layout Itemize
15517
15518 \family sans
15519 Subject
15520 \family default
15521 : the letter's subject, in the standard behavior appears in a bold font
15522  above the 
15523 \family sans
15524 Opening
15525 \family default
15526  paragraph.
15527 \end_layout
15528
15529 \begin_layout Standard
15530 The types 
15531 \family sans
15532 Yourref
15533 \family default
15534
15535 \family sans
15536 Yourmail
15537 \family default
15538
15539 \family sans
15540 Myref
15541 \family default
15542
15543 \family sans
15544 Customer
15545 \family default
15546 , and 
15547 \family sans
15548 Invoice
15549 \family default
15550  produce a business letter like line above the 
15551 \family sans
15552 Title
15553 \family default
15554  line containing the fields 
15555 \begin_inset Quotes eld
15556 \end_inset
15557
15558 Your ref.
15559 \begin_inset Quotes erd
15560 \end_inset
15561
15562
15563 \begin_inset Quotes eld
15564 \end_inset
15565
15566 Your letter of
15567 \begin_inset Quotes erd
15568 \end_inset
15569
15570
15571 \begin_inset Quotes eld
15572 \end_inset
15573
15574 Our ref.
15575 \begin_inset Quotes erd
15576 \end_inset
15577
15578
15579 \begin_inset Quotes eld
15580 \end_inset
15581
15582 Customer no.
15583 \begin_inset Quotes erd
15584 \end_inset
15585
15586
15587 \begin_inset Quotes eld
15588 \end_inset
15589
15590 Invoice no.
15591 \begin_inset Quotes erd
15592 \end_inset
15593
15594 , and 
15595 \begin_inset Quotes eld
15596 \end_inset
15597
15598 Date
15599 \begin_inset Quotes erd
15600 \end_inset
15601
15602 .
15603  For the date field, the value of the 
15604 \family sans
15605 Date
15606 \family default
15607  type is used.
15608  If one of these 
15609 \begin_inset Quotes eld
15610 \end_inset
15611
15612 business letter types
15613 \begin_inset Quotes erd
15614 \end_inset
15615
15616  is used, the value of the 
15617 \family sans
15618 Place
15619 \family default
15620  type however does not appear, but only the \SpecialChar LaTeX
15621  variable 
15622 \family typewriter
15623
15624 \backslash
15625 fromplace
15626 \family default
15627  is set.
15628  The ordinary output of place and date in a right-aligned line below the
15629  addressee`s field is suppressed.
15630  The types are implemented as input types provided with a label and must
15631  be used ahead of the corresponding 
15632 \family sans
15633 Opening
15634 \family default
15635  type.
15636 \end_layout
15637
15638 \begin_layout Itemize
15639
15640 \family sans
15641 Yourref
15642 \family default
15643 : Your ref.
15644 \end_layout
15645
15646 \begin_layout Itemize
15647
15648 \family sans
15649 Yourmail
15650 \family default
15651 : Your letter of.
15652 \end_layout
15653
15654 \begin_layout Itemize
15655
15656 \family sans
15657 Myref
15658 \family default
15659 : Our ref.
15660 \end_layout
15661
15662 \begin_layout Itemize
15663
15664 \family sans
15665 Customer
15666 \family default
15667 : Customer no.
15668 \end_layout
15669
15670 \begin_layout Itemize
15671
15672 \family sans
15673 Invoice
15674 \family default
15675 : Invoice no.
15676 \end_layout
15677
15678 \begin_layout Subsection
15679 The new letter class: letter (koma-script v.2)
15680 \end_layout
15681
15682 \begin_layout Standard
15683 by 
15684 \noun on
15685 Jürgen Spitzmüller
15686 \end_layout
15687
15688 \begin_layout Standard
15689 \begin_inset VSpace medskip
15690 \end_inset
15691
15692
15693 \end_layout
15694
15695 \begin_layout Standard
15696 \noindent
15697 Koma-Script version 2.8 has introduced a new letter class 
15698 \family typewriter
15699 scrlttr2
15700 \family default
15701  which supersedes the now unsupported 
15702 \family typewriter
15703 scrlettr
15704 \family default
15705 .
15706  It has — on the \SpecialChar LaTeX
15707  side — a completely new interface and is not compatible
15708  with the old class.
15709  Therefore, \SpecialChar LyX
15710  supports both, though it is recommended you use the new class.
15711 \end_layout
15712
15713 \begin_layout Standard
15714 This class covers the same functionality as 
15715 \emph on
15716 letter (koma-script),
15717 \emph default
15718  and a few more.
15719  The basic items are 
15720 \family sans
15721 Address
15722 \family default
15723  (receiver's address, same as 
15724 \family sans
15725 Letter
15726 \family default
15727  in the old layout), 
15728 \family sans
15729 Opening
15730 \family default
15731 , and 
15732 \family sans
15733 Closing
15734 \family default
15735 .
15736  
15737 \family sans
15738 NextAddress
15739 \family default
15740  will start a new letter (i.
15741 \begin_inset space \thinspace{}
15742 \end_inset
15743
15744 e.
15745 \begin_inset space \space{}
15746 \end_inset
15747
15748 you can write several letters per document).
15749  New elements are sender's 
15750 \family sans
15751 E-Mail
15752 \family default
15753
15754 \family sans
15755 URL
15756 \family default
15757
15758 \family sans
15759 Fax
15760 \family default
15761
15762 \family sans
15763 Bank
15764 \family default
15765  and the possibility to use a 
15766 \family sans
15767 Logo
15768 \family default
15769  (via 
15770 \family sans
15771 Insert\SpecialChar menuseparator
15772 Graphics
15773 \family default
15774 ) in the header.
15775 \end_layout
15776
15777 \begin_layout Standard
15778 The biggest improvement is, though, that the letter's layout is configurable
15779  to meet almost any needs.
15780  This can be done via the preamble or with a special style file (Letter
15781  Class Option, extension 
15782 \family typewriter
15783 *.lco
15784 \family default
15785 ), that will be read in as a class option.
15786 \begin_inset Foot
15787 status collapsed
15788
15789 \begin_layout Plain Layout
15790 The KOMA package comes with some default 
15791 \family typewriter
15792 *.lco
15793 \family default
15794  files.
15795  There is, for instance, a 
15796 \family typewriter
15797 DIN.lco
15798 \family default
15799  file that follows german typesetting rules, or a 
15800 \family typewriter
15801 KOMAold.lco
15802 \family default
15803  that provides the default layout of the old 
15804 \family typewriter
15805 scrlettr
15806 \family default
15807  class.
15808  The latter can be loaded with the class option 
15809 \family typewriter
15810 KOMAold
15811 \family default
15812 , inserted via the 
15813 \family sans
15814 Layout\SpecialChar menuseparator
15815 Document\SpecialChar menuseparator
15816 Extra Options
15817 \family default
15818  field.
15819 \end_layout
15820
15821 \end_inset
15822
15823  Have a look at the 
15824 \emph on
15825 koma-letter2
15826 \emph default
15827  template that is included in \SpecialChar LyX
15828  for examples.
15829  A detailed description is to be found in the Koma-Script documentation
15830  (
15831 \emph on
15832 scrguide
15833 \emph default
15834 ).
15835 \end_layout
15836
15837 \begin_layout Subsection
15838 Problems
15839 \end_layout
15840
15841 \begin_layout Standard
15842 Visualizing the Koma-Script document classes in \SpecialChar LyX
15843 , the \SpecialChar LyX
15844  internals cause some
15845  problems.
15846 \end_layout
15847
15848 \begin_layout Itemize
15849 The chapter number of a 
15850 \family sans
15851 Chapter
15852 \family default
15853  type appears on a line of its own above the chapter heading instead of
15854  appearing in the same line ahead of it.
15855  The cause for that is the \SpecialChar LyX
15856  internal behavior for the labeltype 
15857 \family sans
15858 Counter_Chapter
15859 \family default
15860  in the layout file.
15861 \end_layout
15862
15863 \begin_layout Itemize
15864 The headings of the types 
15865 \family sans
15866 Addchap
15867 \family default
15868  and 
15869 \family sans
15870 Addsec
15871 \family default
15872  are only put in the 
15873 \begin_inset Quotes eld
15874 \end_inset
15875
15876 true
15877 \begin_inset Quotes erd
15878 \end_inset
15879
15880  \SpecialChar LaTeX
15881  table of contents, but not in the \SpecialChar LyX
15882  table of contents (
15883 \family sans
15884 Document\SpecialChar menuseparator
15885 Table
15886 \begin_inset space ~
15887 \end_inset
15888
15889 of
15890 \begin_inset space ~
15891 \end_inset
15892
15893 Contents
15894 \family default
15895 ).
15896 \end_layout
15897
15898 \begin_layout Itemize
15899 The paragraphs in a 
15900 \emph on
15901 letter
15902 \emph default
15903  document class appear in a skip separation mode, not indented.
15904  This is the standard behavior, no special \SpecialChar LaTeX
15905  commands are needed for that.
15906  But in the 
15907 \family sans
15908 Document\SpecialChar menuseparator
15909 Settings
15910 \family default
15911  dialog the corresponding radio button indicates 
15912 \family sans
15913 Indent
15914 \family default
15915 .
15916  A 
15917 \family sans
15918 Skip
15919 \family default
15920  value always has the effect that extra \SpecialChar LaTeX
15921  commands are inserted in the document
15922  to produce the gap, which is not what is wanted in this case.
15923 \end_layout
15924
15925 \begin_layout Section
15926 Memoir
15927 \end_layout
15928
15929 \begin_layout Standard
15930 By 
15931 \noun on
15932 Jürgen Spitzmüller
15933 \end_layout
15934
15935 \begin_layout Subsection
15936 Overview
15937 \end_layout
15938
15939 \begin_layout Standard
15940 Memoir is a very powerful and constantly evolving class.
15941  It has been designed with regard to fictional and non-fictional literature.
15942  Its aim is to let the user have maximum control over the typesetting of
15943  his document.
15944  Memoir is based on the standard book class, but it can also emulate the
15945  article class (see below).
15946 \end_layout
15947
15948 \begin_layout Standard
15949 Peter Wilson, the developer of Memoir, is known as the author of lots of
15950  useful packages in the \SpecialChar LaTeX
15951  world.
15952  Most of them have been merged with Memoir.
15953  Therefore, it is much easier to layout the table of contents, appendices,
15954  chapter designs and such.
15955  \SpecialChar LyX
15956 , though, does not support all of these goodies natively.
15957  Some of them might be added to forthcoming releases
15958 \begin_inset Foot
15959 status collapsed
15960
15961 \begin_layout Plain Layout
15962 You are invited to send suggestions to 
15963 \begin_inset Flex URL
15964 status collapsed
15965
15966 \begin_layout Plain Layout
15967
15968 lyx-devel@lists.lyx.org
15969 \end_layout
15970
15971 \end_inset
15972
15973 .
15974 \end_layout
15975
15976 \end_inset
15977
15978 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15979 's framework.
15980  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15981
15982  commands (\SpecialChar TeX
15983  code
15984 \begin_inset Foot
15985 status collapsed
15986
15987 \begin_layout Plain Layout
15988 Cf.
15989 \begin_inset ERT
15990 status collapsed
15991
15992 \begin_layout Plain Layout
15993
15994
15995 \backslash
15996  
15997 \end_layout
15998
15999 \end_inset
16000
16001 section
16002 \begin_inset space ~
16003 \end_inset
16004
16005
16006 \begin_inset CommandInset ref
16007 LatexCommand ref
16008 reference "sec:Inserting-TeX-Code"
16009
16010 \end_inset
16011
16012  for details.
16013 \end_layout
16014
16015 \end_inset
16016
16017 ).
16018  In this section, we can only list those features that are natively supported
16019  by \SpecialChar LyX
16020 .
16021  For detailed descriptions (and for the rest of features) we recommend you
16022  have a look at the detailed manual of the Memoir class
16023 \begin_inset Foot
16024 status collapsed
16025
16026 \begin_layout Plain Layout
16027 Cf.
16028 \begin_inset ERT
16029 status collapsed
16030
16031 \begin_layout Plain Layout
16032
16033
16034 \backslash
16035  
16036 \end_layout
16037
16038 \end_inset
16039
16040
16041 \begin_inset Flex URL
16042 status collapsed
16043
16044 \begin_layout Plain Layout
16045
16046 CTAN:/macros/latex/memoir/memman.pdf
16047 \end_layout
16048
16049 \end_inset
16050
16051 .
16052 \end_layout
16053
16054 \end_inset
16055
16056 , which is not only a user guide for the class, but also both a comprehensive
16057  description on good typesetting and a superb example for good typesetting
16058  itself.
16059 \end_layout
16060
16061 \begin_layout Subsection
16062 Basic features and restrictions
16063 \end_layout
16064
16065 \begin_layout Standard
16066 Memoir supports basically all features of the standard book classes.
16067  There are, however, some differences, as follows:
16068 \end_layout
16069
16070 \begin_layout Description
16071 Font
16072 \begin_inset space ~
16073 \end_inset
16074
16075 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
16076 \end_layout
16077
16078 \begin_layout Description
16079 Page
16080 \begin_inset space ~
16081 \end_inset
16082
16083 style: The fancy page style is not supported, due to a command clash between
16084  Memoir and the fancyhdr package (they both define a command with the same
16085  name, which confuses \SpecialChar LaTeX
16086 ).
16087  Instead, Memoir comes with a number of its own page styles (see 
16088 \family sans
16089 Layout\SpecialChar menuseparator
16090 Document\SpecialChar menuseparator
16091 Page
16092 \begin_inset space ~
16093 \end_inset
16094
16095 Style
16096 \family default
16097 ).
16098  If you want to use these for the chapter pages, you have to use the command
16099  
16100 \family typewriter
16101
16102 \backslash
16103 chapterstyle
16104 \family default
16105  in the main text or in preamble (e.
16106 \begin_inset space \thinspace{}
16107 \end_inset
16108
16109 g.
16110 \begin_inset space \space{}
16111 \end_inset
16112
16113
16114 \family typewriter
16115
16116 \backslash
16117 chapterstyle{companion}
16118 \family default
16119 ).
16120 \end_layout
16121
16122 \begin_layout Description
16123 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
16124  optional argument in the standard classes.
16125  With this, you can specify an alternative version of the title for the
16126  table of contents and the headers (for instance, if the title is too long).
16127  In \SpecialChar LyX
16128 , you can do this via 
16129 \family sans
16130 Insert\SpecialChar menuseparator
16131 Short
16132 \begin_inset space ~
16133 \end_inset
16134
16135 Title
16136 \family default
16137  at the beginning of a chapter/section.
16138  Memoir features a second optional argument and thus separates the table
16139  of contents from the header.
16140  You can define three variants of a title with this: one for the main text,
16141  one for the table of contents, and one for the headers.
16142  Simply insert two optional arguments if you need this feature, the first
16143  one containing the short title for the Table of Contents, the second one
16144  containing an alternative short title for the headers.
16145 \end_layout
16146
16147 \begin_layout Description
16148 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
16149  of contents, the list of figures and the list of table start a new page
16150  automatically.
16151  Memoir does not follow this route.
16152  You have to insert a page break yourself, if you want to have one.
16153 \end_layout
16154
16155 \begin_layout Description
16156 Titlepage: For some unknown reason, Memoir uses pagination on the title
16157  page (in the standard classes, title pages are 
16158 \begin_inset Quotes eld
16159 \end_inset
16160
16161 empty
16162 \begin_inset Quotes erd
16163 \end_inset
16164
16165 ).
16166  If you want an empty title page, type 
16167 \family typewriter
16168
16169 \backslash
16170 aliaspagestyle{title}{empty}
16171 \family default
16172  in the preamble.
16173 \end_layout
16174
16175 \begin_layout Description
16176 Article: With the class option 
16177 \emph on
16178 article
16179 \emph default
16180  (to be inserted in 
16181 \family sans
16182 Layout\SpecialChar menuseparator
16183 Document\SpecialChar menuseparator
16184 Extra
16185 \begin_inset space ~
16186 \end_inset
16187
16188 Options
16189 \family default
16190 ), you can emulate article style.
16191  That is, counters (footnotes, figures, tables etc.) will not be reset on
16192  new chapters, chapters don't start a new page (but are—in contrary to 
16193 \begin_inset Quotes eld
16194 \end_inset
16195
16196 real
16197 \begin_inset Quotes erd
16198 \end_inset
16199
16200  article classes—still allowed), parts, though, use their own page, as in
16201  book.
16202 \end_layout
16203
16204 \begin_layout Description
16205 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
16206  font commands, which have been used in the old \SpecialChar LaTeX
16207  version 2.09 (e.
16208 \begin_inset space \thinspace{}
16209 \end_inset
16210
16211 g.
16212 \begin_inset space \space{}
16213 \end_inset
16214
16215
16216 \family typewriter
16217
16218 \backslash
16219 rm
16220 \family default
16221
16222 \family typewriter
16223
16224 \backslash
16225 it
16226 \family default
16227 ).
16228  It produces an error and stops \SpecialChar LaTeX
16229  whenever such a command appears.
16230  The class option 
16231 \emph on
16232 oldfontcommands
16233 \emph default
16234  reallows the commands and spits out warnings instead (which does at least
16235  not stop \SpecialChar LaTeX
16236 ).
16237  Since a lot of packages and particularly Bib\SpecialChar TeX
16238  style files are still using
16239  those commands, we have decided to use this option by default.
16240 \end_layout
16241
16242 \begin_layout Subsection
16243 Extra features
16244 \end_layout
16245
16246 \begin_layout Standard
16247 We will only describe the features supported by \SpecialChar LyX
16248  (which is not much currently).
16249  Please consult the Memoir manual
16250 \begin_inset Foot
16251 status collapsed
16252
16253 \begin_layout Plain Layout
16254 Cf.
16255 \begin_inset ERT
16256 status collapsed
16257
16258 \begin_layout Plain Layout
16259
16260
16261 \backslash
16262  
16263 \end_layout
16264
16265 \end_inset
16266
16267
16268 \begin_inset Flex URL
16269 status collapsed
16270
16271 \begin_layout Plain Layout
16272
16273 CTAN:/macros/latex/memoir/memman.pdf
16274 \end_layout
16275
16276 \end_inset
16277
16278 .
16279 \end_layout
16280
16281 \end_inset
16282
16283  for details.
16284 \end_layout
16285
16286 \begin_layout Description
16287 Abstract: You may wonder why an abstract is an extra feature.
16288  Well, it is in book class.
16289  Usually books don't have abstracts.
16290  Memoir, however, has.
16291  You can use it wherever and how often you like.
16292 \end_layout
16293
16294 \begin_layout Description
16295 Chapterprecis: You may know this older typesetting style: The contents of
16296  a chapter are summarized below the title and also in the table of contents
16297  (e.
16298 \begin_inset space \thinspace{}
16299 \end_inset
16300
16301 g.
16302 \begin_inset space \space{}
16303 \end_inset
16304
16305
16306 \emph on
16307 Our hero arrives in Troia; he loses some friends; he finds others
16308 \emph default
16309 ).
16310  Chapterprecis does exactly this.
16311  It is therefore only sensible below a chapter.
16312 \end_layout
16313
16314 \begin_layout Description
16315 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
16316  The epigraph environment provides an elegant way of typesetting such a
16317  motto.
16318  The motto itself (text) and its author (source) are divided by a short
16319  line.
16320  Unfortunately, we have to fool \SpecialChar LyX
16321  a bit here again, since the environment
16322  needs two arguments (text and source).
16323  In this case, we have to use curly brackets (in \SpecialChar TeX
16324  mode) between the two
16325  arguments: 
16326 \emph on
16327 <smart slogan>
16328 \emph default
16329  
16330 \family typewriter
16331 }{
16332 \family default
16333  
16334 \emph on
16335 <author of the slogan>.
16336 \end_layout
16337
16338 \begin_layout Description
16339 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
16340  complex figurative poems).
16341  \SpecialChar LyX
16342  can only support a few of them.
16343  One is poemtitle, which is a centered title for poems, which will also
16344  be added to the table of contents (verse is the standard environment for
16345  poems.
16346  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
16347  code,
16348  because they have to be nested inside regular verse environments, which
16349  is not possible with \SpecialChar LyX
16350 ).
16351 \end_layout
16352
16353 \begin_layout Description
16354 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
16355 \end_layout
16356
16357 \begin_layout Section
16358 Article (mwart), book (mwbk) and report (mwrep)
16359 \begin_inset Argument status
16360 status collapsed
16361
16362 \begin_layout Plain Layout
16363 The 
16364 \family typewriter
16365 mw
16366 \family default
16367  Classes
16368 \end_layout
16369
16370 \end_inset
16371
16372
16373 \end_layout
16374
16375 \begin_layout Standard
16376 by 
16377 \noun on
16378 Tomasz Luczak
16379 \end_layout
16380
16381 \begin_layout Standard
16382 The \SpecialChar LyX
16383  document classes 
16384 \emph on
16385 article (mwart)
16386 \emph default
16387
16388 \emph on
16389 report (mwrep)
16390 \emph default
16391  and 
16392 \emph on
16393 book
16394 \emph default
16395  
16396 \emph on
16397 (mwbk)
16398 \emph default
16399  correspond to the \SpecialChar LaTeX
16400  document classes 
16401 \family typewriter
16402 mwart.cls
16403 \family default
16404
16405 \family typewriter
16406 mwrep.cls
16407 \family default
16408  and 
16409 \family typewriter
16410 mwbk.cls
16411 \family default
16412 , resp.
16413  They are replacements for the standard document classes 
16414 \family typewriter
16415 article.cls
16416 \family default
16417
16418 \family typewriter
16419 report.cls
16420 \family default
16421  and 
16422 \family typewriter
16423 book.cls
16424 \family default
16425 , resp., and fit better to Polish typography conventions in a number of points.
16426  
16427 \end_layout
16428
16429 \begin_layout Standard
16430 Basic differences:
16431 \end_layout
16432
16433 \begin_layout Itemize
16434 Unnumbered titles (with star, e.
16435 \begin_inset space \thinspace{}
16436 \end_inset
16437
16438 g.
16439 \begin_inset space \space{}
16440 \end_inset
16441
16442
16443 \family sans
16444 Section*
16445 \family default
16446 ) are added into table of contents,
16447 \end_layout
16448
16449 \begin_layout Itemize
16450 Additional page styles:
16451 \end_layout
16452
16453 \begin_deeper
16454 \begin_layout Description
16455 uheadings header with separated lines,
16456 \end_layout
16457
16458 \begin_layout Description
16459 myheadings custom header, contents headers via commands: 
16460 \family typewriter
16461
16462 \backslash
16463 markright
16464 \family default
16465  and 
16466 \family typewriter
16467
16468 \backslash
16469 markboth
16470 \family default
16471 ,
16472 \end_layout
16473
16474 \begin_layout Description
16475 myuheadings custom header with separated lines,
16476 \end_layout
16477
16478 \begin_layout Description
16479 outer page number is placed on outer side of page
16480 \end_layout
16481
16482 \end_deeper
16483 \begin_layout Itemize
16484 Options 
16485 \end_layout
16486
16487 \begin_deeper
16488 \begin_layout Description
16489 rmheadings serif titles — default,
16490 \end_layout
16491
16492 \begin_layout Description
16493 sfheadings sansserif titles,
16494 \end_layout
16495
16496 \begin_layout Description
16497 authortitle on title page first placed is author next title — default,
16498 \end_layout
16499
16500 \begin_layout Description
16501 titleauthor on title page first placed is title next author,
16502 \end_layout
16503
16504 \begin_layout Description
16505 withmarginpar reserve place on page for margins.
16506 \end_layout
16507
16508 \end_deeper
16509 \begin_layout Section
16510 Paper
16511 \end_layout
16512
16513 \begin_layout Standard
16514 The document class 
16515 \family sans
16516 paper
16517 \family default
16518  provides an alternative to the standard 
16519 \family sans
16520 article
16521 \family default
16522  class.
16523  It provides similar functionality, but you might prefer this layout with
16524  sans serif sections, headings, and more.
16525 \end_layout
16526
16527 \begin_layout Section
16528 Rev\SpecialChar TeX
16529 4
16530 \end_layout
16531
16532 \begin_layout Standard
16533 by 
16534 \noun on
16535 Amir Karger
16536 \end_layout
16537
16538 \begin_layout Standard
16539 \begin_inset VSpace bigskip
16540 \end_inset
16541
16542
16543 \end_layout
16544
16545 \begin_layout Standard
16546 \noindent
16547 The 
16548 \family sans
16549 Revtex
16550 \begin_inset space ~
16551 \end_inset
16552
16553 4
16554 \family default
16555  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16556  4.0 (the 
16557 \begin_inset Formula $\beta$
16558 \end_inset
16559
16560  release of May, 1999) class.
16561 \end_layout
16562
16563 \begin_layout Standard
16564 \SpecialChar LyX
16565  has a 
16566 \family sans
16567 Revtex
16568 \family default
16569  textclass, which works with Rev\SpecialChar TeX
16570  3.1.
16571  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16572  2.09.
16573  That means that it doesn't interact very well with \SpecialChar LyX
16574 , which requires \SpecialChar LaTeX2e
16575 , although
16576  it has been kludged to work.
16577  Since Rev\SpecialChar TeX
16578  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16579 , \SpecialChar LyX
16580  with the
16581  
16582 \family sans
16583 Rev\SpecialChar TeX
16584
16585 \begin_inset space ~
16586 \end_inset
16587
16588 4
16589 \family default
16590  textclass should also be pretty easy to use.
16591 \end_layout
16592
16593 \begin_layout Standard
16594 These documents are supposed to be used in 
16595 \emph on
16596 addition
16597 \emph default
16598  to the Rev\SpecialChar TeX
16599  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16600  macros,
16601  and assume you'll know what to put in the preamble if necessary.
16602 \end_layout
16603
16604 \begin_layout Subsection
16605 Installation
16606 \end_layout
16607
16608 \begin_layout Standard
16609 All you need to do is install Rev\SpecialChar TeX
16610  4, as described in the package's README
16611  file.
16612  The package can be found at The Rev\SpecialChar TeX
16613  4 Web Site 
16614 \begin_inset Flex URL
16615 status collapsed
16616
16617 \begin_layout Plain Layout
16618
16619 http://publish.aps.org/revtex4/
16620 \end_layout
16621
16622 \end_inset
16623
16624 .
16625  Install it somewhere that \SpecialChar LaTeX
16626  can see it.
16627  Test it by trying to \SpecialChar LaTeX
16628  a short Rev\SpecialChar TeX
16629  4 document in some random directory (i.
16630 \begin_inset space \thinspace{}
16631 \end_inset
16632
16633 e.
16634 \begin_inset space \space{}
16635 \end_inset
16636
16637 not the directory where you installed the class file.) Then, if you reconfigure
16638  \SpecialChar LyX
16639 , it will find the class file and let you use the Rev\SpecialChar TeX
16640 4 textclass.
16641 \end_layout
16642
16643 \begin_layout Standard
16644 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16645  4 document
16646  using 
16647 \family typewriter
16648 tex2lyx
16649 \family default
16650 , or to use the 
16651 \family sans
16652 Revtex
16653 \begin_inset space ~
16654 \end_inset
16655
16656 4
16657 \family default
16658  template, found in the templates directory.
16659 \end_layout
16660
16661 \begin_layout Subsection
16662 Preamble Matter
16663 \end_layout
16664
16665 \begin_layout Standard
16666 Optional arguments to 
16667 \family typewriter
16668
16669 \backslash
16670 documentclass
16671 \family default
16672 , like 
16673 \begin_inset Quotes eld
16674 \end_inset
16675
16676 preprint
16677 \begin_inset Quotes erd
16678 \end_inset
16679
16680  and 
16681 \begin_inset Quotes eld
16682 \end_inset
16683
16684 aps
16685 \begin_inset Quotes erd
16686 \end_inset
16687
16688 , go in the 
16689 \family sans
16690 Extra
16691 \begin_inset space ~
16692 \end_inset
16693
16694 Options
16695 \family default
16696  field in the 
16697 \family sans
16698 Document
16699 \begin_inset space ~
16700 \end_inset
16701
16702 Layout
16703 \family default
16704  dialog, as usual.
16705  Remember that in Rev\SpecialChar TeX
16706 , at least one optional argument is required! 
16707 \end_layout
16708
16709 \begin_layout Standard
16710 Other preamble matter, like 
16711 \family typewriter
16712
16713 \backslash
16714 draft
16715 \family default
16716  etc.
16717 \begin_inset space ~
16718 \end_inset
16719
16720 goes in the 
16721 \family sans
16722 \SpecialChar LaTeX
16723
16724 \begin_inset space ~
16725 \end_inset
16726
16727 Preamble
16728 \family default
16729  dialog, also as usual.
16730 \end_layout
16731
16732 \begin_layout Subsection
16733 Layouts
16734 \end_layout
16735
16736 \begin_layout Standard
16737 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16738 4.0.
16739  For example, the Email layout corresponds to 
16740 \family typewriter
16741
16742 \backslash
16743 email{}
16744 \family default
16745 .
16746  Note that (at least as of Rev\SpecialChar TeX
16747  4.0 Beta), the 
16748 \family sans
16749 Address
16750 \family default
16751  and 
16752 \family sans
16753 Affiliation
16754 \family default
16755  layouts are exactly equivalent, so you shouldn't need to use both.
16756 \begin_inset Foot
16757 status collapsed
16758
16759 \begin_layout Plain Layout
16760 In case you're curious, both were included so that 
16761 \family typewriter
16762 tex2lyx
16763 \family default
16764  would be able to translate both 
16765 \family typewriter
16766
16767 \backslash
16768 address
16769 \family default
16770  and 
16771 \family typewriter
16772
16773 \backslash
16774 affiliation
16775 \family default
16776 .
16777 \end_layout
16778
16779 \end_inset
16780
16781
16782 \end_layout
16783
16784 \begin_layout Subsection
16785 Important Notes
16786 \end_layout
16787
16788 \begin_layout Standard
16789 There are a couple of important unique aspects of Rev\SpecialChar TeX
16790  4 which might cause
16791  bugs that will be even more confusing in \SpecialChar LyX
16792 .
16793 \end_layout
16794
16795 \begin_layout Standard
16796 In Rev\SpecialChar TeX
16797 , the 
16798 \family typewriter
16799
16800 \backslash
16801 thanks
16802 \family default
16803  command goes 
16804 \emph on
16805 outside
16806 \emph default
16807  the 
16808 \family typewriter
16809
16810 \backslash
16811 author
16812 \family default
16813  command.
16814  The \SpecialChar LyX
16815  equivalent is that there is a separate Thanks layout.
16816  Do 
16817 \emph on
16818 not
16819 \emph default
16820  write footnotes in the 
16821 \family sans
16822 Author
16823 \family default
16824  layout, or weird things may happen.
16825  See the Rev\SpecialChar TeX
16826  4 documentation for more details.
16827 \end_layout
16828
16829 \begin_layout Standard
16830 Also, the 
16831 \family sans
16832 Author
16833 \begin_inset space ~
16834 \end_inset
16835
16836 Email
16837 \family default
16838
16839 \family sans
16840 Author
16841 \begin_inset space ~
16842 \end_inset
16843
16844 URL
16845 \family default
16846 , and 
16847 \family sans
16848 Thanks
16849 \family default
16850  layouts must be placed 
16851 \emph on
16852 in between
16853 \emph default
16854  the 
16855 \family sans
16856 Author
16857 \family default
16858  layout and the corresponding 
16859 \family sans
16860 Address
16861 \family default
16862  (or equivalent 
16863 \family sans
16864 Affiliation
16865 \family default
16866 ) layout.
16867  If you put the 
16868 \family sans
16869 Thanks
16870 \family default
16871  after the 
16872 \family sans
16873 Address
16874 \family default
16875 , the \SpecialChar LaTeX
16876  won't compile.
16877 \end_layout
16878
16879 \begin_layout Subsection
16880 Drawbacks
16881 \end_layout
16882
16883 \begin_layout Standard
16884 The main problem with this layout is that you can't use the optional arguments
16885  to layouts like Email and Title.
16886  (The problem is not unique to this layout; you can't use optional arguments
16887  to the Section layouts either.) This means that after you export that file
16888  to \SpecialChar LaTeX
16889  (which you'll need to do eventually to send it in to APS), you'll need
16890  to edit the \SpecialChar LaTeX
16891  file with a text editor to add the optional arguments to set,
16892  e.
16893 \begin_inset space \thinspace{}
16894 \end_inset
16895
16896 g.
16897 \begin_inset space \space{}
16898 \end_inset
16899
16900 the running title for the page headers.
16901  Lacking these layouts makes the 
16902 \family typewriter
16903
16904 \backslash
16905 altaffiliation
16906 \family default
16907  (and the equivalent 
16908 \family typewriter
16909
16910 \backslash
16911 altaddress
16912 \family default
16913 ) useless, so the corresponding layouts don't exist, and will have to be
16914  added by hand.
16915 \begin_inset Foot
16916 status collapsed
16917
16918 \begin_layout Plain Layout
16919
16920 \emph on
16921 Note from JMarc:
16922 \emph default
16923  actually, \SpecialChar LyX
16924  1.3.0 supports some forms of optional arguments, but this layout
16925  has not been updated yet to take advantage of it.
16926 \end_layout
16927
16928 \end_inset
16929
16930  
16931 \end_layout
16932
16933 \begin_layout Section
16934 Springer Journals (
16935 \family sans
16936 svjour
16937 \family default
16938 )
16939 \end_layout
16940
16941 \begin_layout Standard
16942 by 
16943 \noun on
16944 Martin Vermeer
16945 \end_layout
16946
16947 \begin_layout Subsection
16948 Description
16949 \end_layout
16950
16951 \begin_layout Standard
16952 These are the layout files for some of the journal formats used by Springer
16953  Verlag and listed on 
16954 \begin_inset Flex URL
16955 status collapsed
16956
16957 \begin_layout Plain Layout
16958
16959 http://www.springer.de/author/tex/help-journals.html
16960 \end_layout
16961
16962 \end_inset
16963
16964 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16965  now!).
16966  It is a modular system: the things common to all journals are implemented
16967  in 
16968 \family typewriter
16969 svjour.inc
16970 \family default
16971 , which journal-specific layout files (such as, e.
16972 \begin_inset space \thinspace{}
16973 \end_inset
16974
16975 g.
16976 \begin_inset space \space{}
16977 \end_inset
16978
16979
16980 \family typewriter
16981 svjog.layout
16982 \family default
16983  for Journal of Geodesy) can include.
16984 \end_layout
16985
16986 \begin_layout Standard
16987 This means that implementing support for any other Springer journal on this
16988  list is as simple as writing your own 
16989 \family typewriter
16990 sv
16991 \family default
16992 <myjournal>
16993 \family typewriter
16994 .layout
16995 \family default
16996  file following the outline given in 
16997 \family typewriter
16998 svjog.layout
16999 \family default
17000 .
17001  
17002 \end_layout
17003
17004 \begin_layout Standard
17005 It is reasonably well tested only for the Journal of Geodesy.
17006  
17007 \family typewriter
17008 svjour
17009 \family default
17010  and 
17011 \family typewriter
17012 svjog
17013 \family default
17014  come with the standard \SpecialChar LyX
17015  distribution.
17016  Install the relevant class file (downloaded from Springer) in a proper
17017  directory, reconfigure \SpecialChar LaTeX
17018  (in the te\SpecialChar TeX
17019  case by running 
17020 \family typewriter
17021 texhash
17022 \family default
17023 , as root if necessary — doesn't \SpecialChar LyX
17024  take care of this?), reconfigure \SpecialChar LyX
17025  and
17026  it should work.
17027 \end_layout
17028
17029 \begin_layout Subsection
17030 New styles
17031 \end_layout
17032
17033 \begin_layout Standard
17034 A large number of theorem-like styles — 
17035 \family sans
17036 Claim, Conjecture,
17037 \family default
17038  
17039 \family sans
17040 \SpecialChar ldots
17041 Theorem
17042 \family default
17043 .
17044 \end_layout
17045
17046 \begin_layout Standard
17047
17048 \family sans
17049 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
17050 _Title, Author_Running, Institute,
17051  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
17052 \family default
17053 .
17054  See the Springer class file documentation for details.
17055 \end_layout
17056
17057 \begin_layout Subsection
17058 Supported journals
17059 \end_layout
17060
17061 \begin_layout Itemize
17062
17063 \emph on
17064 Journal of Geodesy
17065 \emph default
17066
17067 \family typewriter
17068 svjog.layout
17069 \family default
17070  — Martin Vermeer
17071 \end_layout
17072
17073 \begin_layout Itemize
17074
17075 \emph on
17076 Probability Theory and Related Fields
17077 \emph default
17078
17079 \family typewriter
17080 svprobth.layout
17081 \family default
17082  — Jean-Marc Lasgouttes
17083 \end_layout
17084
17085 \begin_layout Standard
17086 Add your own, it isn't so hard!
17087 \end_layout
17088
17089 \begin_layout Subsection
17090 Credits
17091 \end_layout
17092
17093 \begin_layout Standard
17094 These files are partly based on the older 
17095 \family typewriter
17096 ejour2.layout
17097 \family default
17098 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
17099  2.09 style
17100  file from Springer.
17101  All this, and the 
17102 \family typewriter
17103 ejour2
17104 \family default
17105  layout, are now defunct.
17106  Jean-Marc Lasgouttes helped out big in making me find my way around the
17107  \SpecialChar LyX
17108  layout file mechanism.
17109 \end_layout
17110
17111 \begin_layout Subsection
17112 Bugs
17113 \end_layout
17114
17115 \begin_layout Standard
17116 Probably.
17117  But probably less than in the old hacked-\SpecialChar LaTeX
17118  
17119 \family typewriter
17120 ejour2
17121 \family default
17122 .
17123 \end_layout
17124
17125 \begin_layout Standard
17126 Limitations e.
17127 \begin_inset space \thinspace{}
17128 \end_inset
17129
17130 g.: does not display the number for theorem-like layouts, just #.
17131 \end_layout
17132
17133 \begin_layout Section
17134 Slides [aka 
17135 \noun on
17136 Sli\SpecialChar TeX
17137
17138 \noun default
17139 ]
17140 \begin_inset CommandInset label
17141 LatexCommand label
17142 name "sec:slitex"
17143
17144 \end_inset
17145
17146
17147 \end_layout
17148
17149 \begin_layout Standard
17150 by 
17151 \noun on
17152 John Weiss
17153 \noun default
17154  
17155 \end_layout
17156
17157 \begin_layout Subsection
17158 Introduction
17159 \end_layout
17160
17161 \begin_layout Standard
17162 This section describes how to use \SpecialChar LyX
17163  to make slides for overhead projectors.
17164  There are two document classes that can do this: the default slides class
17165  and the 
17166 \family sans
17167 Foil\SpecialChar TeX
17168
17169 \family default
17170  slides class.
17171  This section documents the former.
17172 \end_layout
17173
17174 \begin_layout Standard
17175 I'm going to say this again, nice and clear, so that there's no misunderstanding
17176 :
17177 \end_layout
17178
17179 \begin_layout Standard
17180 \begin_inset VSpace bigskip
17181 \end_inset
17182
17183
17184 \end_layout
17185
17186 \begin_layout Standard
17187 \align center
17188
17189 \size large
17190 This section documents the class 
17191 \begin_inset Quotes eld
17192 \end_inset
17193
17194
17195 \family sans
17196 slides (default)
17197 \family default
17198
17199 \begin_inset Quotes erd
17200 \end_inset
17201
17202  
17203 \emph on
17204 only.
17205 \end_layout
17206
17207 \begin_layout Standard
17208 \begin_inset VSpace bigskip
17209 \end_inset
17210
17211
17212 \end_layout
17213
17214 \begin_layout Standard
17215 If you're looking for the documentation for 
17216 \begin_inset Quotes eld
17217 \end_inset
17218
17219
17220 \family sans
17221 slides (Foil\SpecialChar TeX
17222 )
17223 \family default
17224
17225 \begin_inset Quotes erd
17226 \end_inset
17227
17228 , check out section
17229 \begin_inset space ~
17230 \end_inset
17231
17232
17233 \begin_inset CommandInset ref
17234 LatexCommand ref
17235 reference "sec:foiltex"
17236
17237 \end_inset
17238
17239 .
17240  The 
17241 \family sans
17242 foils
17243 \family default
17244  class [
17245 \begin_inset Quotes eld
17246 \end_inset
17247
17248
17249 \family sans
17250 slides (Foil\SpecialChar TeX
17251 )
17252 \family default
17253
17254 \begin_inset Quotes erd
17255 \end_inset
17256
17257 ] is actually somewhat better than the default 
17258 \family sans
17259 slides
17260 \family default
17261  class,
17262 \begin_inset Foot
17263 status collapsed
17264
17265 \begin_layout Plain Layout
17266 \SpecialChar ldots
17267 or so I've been told repeatedly by its advocates.
17268  Having never used it, I have no idea if this claim is true or not.
17269 \end_layout
17270
17271 \end_inset
17272
17273  which this section documents.
17274 \end_layout
17275
17276 \begin_layout Standard
17277 This class is the \SpecialChar LaTeX2e
17278  improvement of the old 
17279 \noun on
17280 Sli\SpecialChar TeX
17281
17282 \noun default
17283  package.
17284  Every \SpecialChar LaTeX2e
17285  distribution includes this class [which I'll just refer to as 
17286 \begin_inset Quotes eld
17287 \end_inset
17288
17289
17290 \family sans
17291 slides
17292 \family default
17293
17294 \begin_inset Quotes erd
17295 \end_inset
17296
17297  from now on], so you're bound to have it.
17298  As I noted earlier, there are other classes, such as 
17299 \family sans
17300 foils
17301 \family default
17302 , which also produce slides for overhead projectors and do a better job
17303  at it.
17304  However, there are some things which 
17305 \family sans
17306 slides
17307 \family default
17308  can do which the others can't, such as generate overlays.
17309  Read on to learn more!
17310 \end_layout
17311
17312 \begin_layout Subsection
17313 Getting Started
17314 \begin_inset CommandInset label
17315 LatexCommand label
17316 name "sec:slidesetup"
17317
17318 \end_inset
17319
17320
17321 \end_layout
17322
17323 \begin_layout Standard
17324 Obviously, to use this document class, you need to select 
17325 \begin_inset Quotes eld
17326 \end_inset
17327
17328
17329 \family sans
17330 slides (default)
17331 \family default
17332
17333 \begin_inset Quotes erd
17334 \end_inset
17335
17336  from the class list in the 
17337 \family sans
17338 Document\SpecialChar menuseparator
17339 Settings
17340 \family default
17341  dialog.
17342  There are some other special things you should know about this class:
17343 \end_layout
17344
17345 \begin_layout Itemize
17346 Don't bother changing the options 
17347 \family sans
17348 Sides and Columns
17349 \family default
17350 .
17351  They're not supported by the 
17352 \family sans
17353 slides
17354 \family default
17355  class, anyways.
17356 \end_layout
17357
17358 \begin_layout Itemize
17359 The option 
17360 \family sans
17361 Page
17362 \begin_inset space ~
17363 \end_inset
17364
17365 style
17366 \family default
17367  behaves a bit differently for this class.
17368  The possible choices and what they do are as follows:
17369 \end_layout
17370
17371 \begin_deeper
17372 \begin_layout Description
17373
17374 \family sans
17375 plain
17376 \family default
17377  The final output contains page numbers in the lower right corner.
17378 \end_layout
17379
17380 \begin_layout Description
17381
17382 \family sans
17383 headings
17384 \family default
17385  Like 
17386 \family sans
17387 plain
17388 \family default
17389 , but also prints out any time markers you've put in.
17390  This is the default.
17391 \end_layout
17392
17393 \begin_layout Description
17394
17395 \family sans
17396 empty
17397 \family default
17398  The final output contains no page numbers, time markers, or alignment markers.
17399 \end_layout
17400
17401 \end_deeper
17402 \begin_layout Itemize
17403 The 
17404 \family sans
17405 slides
17406 \family default
17407  class has an extra option: 
17408 \family typewriter
17409 clock
17410 \family default
17411 .
17412  To use it, put 
17413 \begin_inset Quotes eld
17414 \end_inset
17415
17416
17417 \family typewriter
17418 clock
17419 \family default
17420
17421 \begin_inset Quotes erd
17422 \end_inset
17423
17424  in the extra class options.
17425 \end_layout
17426
17427 \begin_deeper
17428 \begin_layout Standard
17429 Using this options allows you to add time markers to 
17430 \family sans
17431 Note
17432 \family default
17433 s.
17434  See section
17435 \begin_inset space ~
17436 \end_inset
17437
17438
17439 \begin_inset CommandInset ref
17440 LatexCommand ref
17441 reference "sec:slideNote"
17442
17443 \end_inset
17444
17445  for more details.
17446 \end_layout
17447
17448 \end_deeper
17449 \begin_layout Standard
17450 You can also use the template file 
17451 \begin_inset Quotes eld
17452 \end_inset
17453
17454
17455 \family typewriter
17456 slides.lyx
17457 \family default
17458
17459 \begin_inset Quotes erd
17460 \end_inset
17461
17462  to automatically set up a document to use the 
17463 \family sans
17464 slides
17465 \family default
17466  class [using 
17467 \family sans
17468 File\SpecialChar menuseparator
17469 New
17470 \begin_inset space ~
17471 \end_inset
17472
17473 from
17474 \begin_inset space ~
17475 \end_inset
17476
17477 Template
17478 \family default
17479  to open your new document].
17480  The template file also contains some examples of the special paragraph
17481  environments used by this class.
17482  I'll describe those next.
17483 \end_layout
17484
17485 \begin_layout Subsection
17486 Paragraph Environments
17487 \end_layout
17488
17489 \begin_layout Subsubsection
17490 Supported Environments
17491 \end_layout
17492
17493 \begin_layout Standard
17494 The first thing you'll notice when you start up a new 
17495 \family sans
17496 slides
17497 \family default
17498  document is the font size and type: it's the equivalent of the size 
17499 \begin_inset Quotes eld
17500 \end_inset
17501
17502
17503 \family sans
17504 Largest
17505 \family default
17506
17507 \begin_inset Quotes erd
17508 \end_inset
17509
17510  in the 
17511 \family sans
17512 Sans
17513 \begin_inset space ~
17514 \end_inset
17515
17516 Serif
17517 \family default
17518  font.
17519  This is also what's used in the output.
17520  Think of this as a 
17521 \begin_inset Quotes eld
17522 \end_inset
17523
17524 visual cue
17525 \begin_inset Quotes erd
17526 \end_inset
17527
17528  to remind you that this is a slide.
17529  Your final slides will use a larger font; ergo, you'll have less space.
17530  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17531 \end_layout
17532
17533 \begin_layout Standard
17534 The next thing that becomes obvious is the changes to the paragraph environment
17535  pull-down box [at the far-left end of the toolbar].
17536  Most of the paragraph environments you're used to seeing are missing.
17537  There are also five new ones.
17538  That's because the 
17539 \family sans
17540 slides
17541 \family default
17542  class itself only supports certain paragraph environments:
17543 \end_layout
17544
17545 \begin_layout Itemize
17546
17547 \family sans
17548 Standard
17549 \end_layout
17550
17551 \begin_layout Itemize
17552
17553 \family sans
17554 Itemize
17555 \end_layout
17556
17557 \begin_layout Itemize
17558
17559 \family sans
17560 Enumerate
17561 \end_layout
17562
17563 \begin_layout Itemize
17564
17565 \family sans
17566 Description
17567 \end_layout
17568
17569 \begin_layout Itemize
17570
17571 \family sans
17572 List
17573 \end_layout
17574
17575 \begin_layout Itemize
17576
17577 \family sans
17578 Quotation
17579 \end_layout
17580
17581 \begin_layout Itemize
17582
17583 \family sans
17584 Quote
17585 \end_layout
17586
17587 \begin_layout Itemize
17588
17589 \family sans
17590 Verse
17591 \end_layout
17592
17593 \begin_layout Itemize
17594
17595 \family sans
17596 Caption
17597 \end_layout
17598
17599 \begin_layout Itemize
17600
17601 \family sans
17602 \SpecialChar LyX
17603 -Code
17604 \end_layout
17605
17606 \begin_layout Itemize
17607
17608 \family sans
17609 Comment
17610 \end_layout
17611
17612 \begin_layout Standard
17613 All of the other standard environments, including the section-heading environmen
17614 ts, aren't used in the 
17615 \family sans
17616 slides
17617 \family default
17618  class.
17619 \end_layout
17620
17621 \begin_layout Standard
17622 On the other hand, you'll notice the following new environments:
17623 \end_layout
17624
17625 \begin_layout Itemize
17626
17627 \family sans
17628 Slide
17629 \end_layout
17630
17631 \begin_layout Itemize
17632
17633 \family sans
17634 Overlay
17635 \end_layout
17636
17637 \begin_layout Itemize
17638
17639 \family sans
17640 Note
17641 \end_layout
17642
17643 \begin_layout Itemize
17644
17645 \family sans
17646 InvisibleText
17647 \end_layout
17648
17649 \begin_layout Itemize
17650
17651 \family sans
17652 VisibleText
17653 \end_layout
17654
17655 \begin_layout Standard
17656 These five are kind of quirky, due to a 
17657 \begin_inset Quotes eld
17658 \end_inset
17659
17660 feature
17661 \begin_inset Quotes erd
17662 \end_inset
17663
17664  in \SpecialChar LyX
17665 .
17666  You see, \SpecialChar LyX
17667  doesn't permit you to nest any other paragraph environment into
17668  an empty environment.
17669  Now, that's fine and dandy, but it means that you wouldn't be able to start
17670  a slide with anything except plain text.
17671  To deal with this, I've performed a little 
17672 \begin_inset Quotes eld
17673 \end_inset
17674
17675 \SpecialChar LaTeX
17676  magic.
17677 \begin_inset Quotes erd
17678 \end_inset
17679
17680  
17681 \end_layout
17682
17683 \begin_layout Subsubsection
17684 Quirks of the New Environments
17685 \begin_inset CommandInset label
17686 LatexCommand label
17687 name "sec:slideQuirk"
17688
17689 \end_inset
17690
17691
17692 \end_layout
17693
17694 \begin_layout Standard
17695 All five of the new paragraph environments are somewhat quirky due to inherent
17696  limitiations in the current version of \SpecialChar LyX
17697 .
17698  As I just mentioned, \SpecialChar LyX
17699  forbids environments that begin with another environment.
17700  To get around this, the 
17701 \family sans
17702 Slide
17703 \family default
17704  environment isn't a paragraph environment as described in the 
17705 \emph on
17706 User's Guide
17707 \emph default
17708 .
17709  
17710 \end_layout
17711
17712 \begin_layout Standard
17713 You should consider 
17714 \family sans
17715 Slide
17716 \family default
17717
17718 \family sans
17719 Overlay
17720 \family default
17721 , and 
17722 \family sans
17723 Note
17724 \family default
17725  to be 
17726 \begin_inset Quotes eld
17727 \end_inset
17728
17729 pseudo-environments.
17730 \begin_inset Quotes erd
17731 \end_inset
17732
17733  They look like a section heading or a 
17734 \begin_inset Quotes eld
17735 \end_inset
17736
17737
17738 \family sans
17739 Caption
17740 \family default
17741 ,
17742 \begin_inset Quotes erd
17743 \end_inset
17744
17745  but really begin a [and, if necessary, end the previous] paragraph environment.
17746  Likewise, treat 
17747 \family sans
17748 InvisibleText
17749 \family default
17750  and 
17751 \family sans
17752 VisibleText
17753 \family default
17754  as 
17755 \begin_inset Quotes eld
17756 \end_inset
17757
17758 pseudo-commands.
17759 \begin_inset Quotes erd
17760 \end_inset
17761
17762  These two perform some action.
17763 \end_layout
17764
17765 \begin_layout Standard
17766 A common feature of all five environments, 
17767 \family sans
17768 Slide
17769 \family default
17770
17771 \family sans
17772 Overlay
17773 \family default
17774
17775 \family sans
17776 Note
17777 \family default
17778
17779 \family sans
17780 InvisibleText
17781 \family default
17782  and 
17783 \family sans
17784 VisibleText
17785 \family default
17786 , is a rather long-ish label.
17787  The text following this label — ordinarily the contents of the paragraph
17788  environment — is utterly irrelevant for 
17789 \family sans
17790 Slide
17791 \family default
17792
17793 \family sans
17794 Overlay
17795 \family default
17796
17797 \family sans
17798 Note
17799 \family default
17800
17801 \family sans
17802 InvisibleText
17803 \family default
17804  and 
17805 \family sans
17806 VisibleText
17807 \family default
17808 .
17809  \SpecialChar LyX
17810  completely ignores it.
17811  In fact, you can leave these five environments completely empty.
17812  
17813 \end_layout
17814
17815 \begin_layout Standard
17816 While you don't 
17817 \emph on
17818 have
17819 \emph default
17820  to put any text after the rather long-ish label, you might want to.
17821  This could be a short description of the contents of the 
17822 \family sans
17823 Slide
17824 \family default
17825 , for example.
17826  In that case, enter your descriptive comment and hit 
17827 \family sans
17828 Return
17829 \family default
17830  as you normally would.
17831 \end_layout
17832
17833 \begin_layout Standard
17834 If, on the other hand, you don't want to enter any descriptive text, you'll
17835  hit another \SpecialChar LyX
17836  quirk.
17837  \SpecialChar LyX
17838 , like nature, abhors a vacuum, and will not let you start a new paragraph
17839  environment until you put something in the old one.
17840  So, do this:
17841 \end_layout
17842
17843 \begin_layout Itemize
17844 Start entering the text that will 
17845 \emph on
17846 follow
17847 \emph default
17848  the new 
17849 \family sans
17850 Slide
17851 \family default
17852
17853 \family sans
17854 Overlay
17855 \family default
17856
17857 \family sans
17858 Note
17859 \family default
17860
17861 \family sans
17862 InvisibleText
17863 \family default
17864  or 
17865 \family sans
17866 VisibleText
17867 \family default
17868 .
17869  
17870 \end_layout
17871
17872 \begin_layout Itemize
17873 Now move to the beginning of that paragraph.
17874  
17875 \end_layout
17876
17877 \begin_layout Itemize
17878 Next, hit 
17879 \family sans
17880 Return
17881 \family default
17882 .
17883  
17884 \end_layout
17885
17886 \begin_layout Itemize
17887 Finally, change this new, empty paragraph to a 
17888 \family sans
17889 Slide
17890 \family default
17891
17892 \family sans
17893 Overlay
17894 \family default
17895
17896 \family sans
17897 Note
17898 \family default
17899
17900 \family sans
17901 InvisibleText
17902 \family default
17903  or 
17904 \family sans
17905 VisibleText
17906 \family default
17907 .
17908  
17909 \end_layout
17910
17911 \begin_layout Standard
17912 Some future version of \SpecialChar LyX
17913  will, hopefully, resolve this quirkiness\SpecialChar ldots
17914
17915 \end_layout
17916
17917 \begin_layout Subsection
17918 Making a Presentation with 
17919 \family sans
17920 Slide
17921 \family default
17922
17923 \family sans
17924 Overlay
17925 \family default
17926  and 
17927 \family sans
17928 Note
17929 \end_layout
17930
17931 \begin_layout Subsubsection
17932 Using the 
17933 \family sans
17934 Slide
17935 \family default
17936  Environment
17937 \end_layout
17938
17939 \begin_layout Standard
17940 If you're expecting this section to teach you how to actually make a presentatio
17941 n, you'll be sorely disappointed.
17942  Naturally, I'll describe all of the ways the 
17943 \family sans
17944 slides
17945 \family default
17946  class can assist you in preparing the materials for a presentation.
17947  Filling in the contents, however, is up to you.
17948  [Then again, that 
17949 \emph on
17950 is
17951 \emph default
17952  the \SpecialChar LyX
17953  philosophy.]
17954 \end_layout
17955
17956 \begin_layout Standard
17957 Choosing the 
17958 \family sans
17959 Slide
17960 \family default
17961  environment [in the manner described in section
17962 \begin_inset space ~
17963 \end_inset
17964
17965
17966 \begin_inset CommandInset ref
17967 LatexCommand ref
17968 reference "sec:slideQuirk"
17969
17970 \end_inset
17971
17972 ] tells \SpecialChar LyX
17973  to begin a new slide [duh].
17974  The label for this environment/
17975 \begin_inset Quotes erd
17976 \end_inset
17977
17978 pseudo-command
17979 \begin_inset Quotes erd
17980 \end_inset
17981
17982  is an 
17983 \begin_inset Quotes eld
17984 \end_inset
17985
17986 ASCII line,
17987 \begin_inset Quotes erd
17988 \end_inset
17989
17990  in cool blue, followed by the label, 
17991 \begin_inset Quotes eld
17992 \end_inset
17993
17994 NewSlide:
17995 \begin_inset Quotes erd
17996 \end_inset
17997
17998 .
17999  Any text or paragraph environments that follow this one go on the new slide.
18000  It's that simple.
18001 \end_layout
18002
18003 \begin_layout Standard
18004 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
18005
18006  (this can be specified in the 
18007 \family sans
18008 Paragraph Layout
18009 \family default
18010  dialog).
18011  In fact, you'll want to, once you finish entering the contents of one slide.
18012  If you've entered more text than can physically fit on a slide, the extra
18013  overflows onto a new slide.
18014  I don't recommend doing this, however, since the overflow slide won't have
18015  any page number on it.
18016  Furthermore, it may interfere with any 
18017 \family sans
18018 Overlay
18019 \family default
18020  you've made to accompany the oversized 
18021 \family sans
18022 Slide
18023 \family default
18024 .
18025 \end_layout
18026
18027 \begin_layout Standard
18028 The 
18029 \family sans
18030 Overlay
18031 \family default
18032  and 
18033 \family sans
18034 Note
18035 \family default
18036  environments work the same way as the 
18037 \family sans
18038 Slide
18039 \family default
18040  environment.
18041  They both create an 
18042 \begin_inset Quotes eld
18043 \end_inset
18044
18045 ASCII line
18046 \begin_inset Quotes erd
18047 \end_inset
18048
18049  followed by a label [
18050 \begin_inset Quotes eld
18051 \end_inset
18052
18053 NewOverlay:
18054 \begin_inset Quotes erd
18055 \end_inset
18056
18057  and 
18058 \begin_inset Quotes eld
18059 \end_inset
18060
18061 NewNote:
18062 \begin_inset Quotes erd
18063 \end_inset
18064
18065 , respectively].
18066  The color is a stunning magenta instead of blue, and the 
18067 \begin_inset Quotes eld
18068 \end_inset
18069
18070 ASCII line
18071 \begin_inset Quotes erd
18072 \end_inset
18073
18074  will look different, in style and in length.
18075  The label fonts of all three also differ from one another.
18076 \end_layout
18077
18078 \begin_layout Standard
18079 As with a 
18080 \family sans
18081 Slide
18082 \family default
18083 , if the contents of a 
18084 \family sans
18085 Note
18086 \family default
18087  or 
18088 \family sans
18089 Overlay
18090 \family default
18091  exceed the physical size of a slide or sheet of paper, the extra will overflow
18092  onto a new sheet.
18093  Again, you should avoid this.
18094  It defeats the whole purpose of 
18095 \family sans
18096 Note
18097 \family default
18098 s and 
18099 \family sans
18100 Overlay
18101 \family default
18102 s.
18103 \end_layout
18104
18105 \begin_layout Subsubsection
18106 Using 
18107 \family sans
18108 Overlay
18109 \family default
18110  with 
18111 \family sans
18112 Slide
18113 \end_layout
18114
18115 \begin_layout Standard
18116 The idea behind an 
18117 \family sans
18118 Overlay
18119 \family default
18120  is a slide that sits atop another slide.
18121  Perhaps you wish to discuss a figure on the main 
18122 \family sans
18123 Slide
18124 \family default
18125  before displaying the text associated with it.
18126  One way to accomplish this is tape a flap of dark paper over the part of
18127  the 
18128 \family sans
18129 Slide
18130 \family default
18131  you want to display later.
18132  This method fails, however, if you wish to overlap one graph with another,
18133  for example.
18134  You would then have to fumble while speaking to align the two separate,
18135  overlapping 
18136 \family sans
18137 Slide
18138 \family default
18139 s to align the two graphs.
18140  The use of an 
18141 \family sans
18142 Overlay
18143 \family default
18144  environment in both cases makes life much easier.
18145 \end_layout
18146
18147 \begin_layout Standard
18148 Each 
18149 \family sans
18150 Overlay
18151 \family default
18152  receives the page number of its 
18153 \begin_inset Quotes eld
18154 \end_inset
18155
18156 parent
18157 \begin_inset Quotes erd
18158 \end_inset
18159
18160  
18161 \family sans
18162 Slide
18163 \family default
18164 , appended by 
18165 \begin_inset Quotes eld
18166 \end_inset
18167
18168
18169 \family typewriter
18170 -a
18171 \family default
18172
18173 \begin_inset Quotes erd
18174 \end_inset
18175
18176 .
18177 \begin_inset Foot
18178 status collapsed
18179
18180 \begin_layout Plain Layout
18181 Presumably, mutliple 
18182 \family sans
18183 Overlay
18184 \family default
18185 s would have 
18186 \begin_inset Quotes eld
18187 \end_inset
18188
18189
18190 \family typewriter
18191 -a
18192 \family default
18193
18194 \begin_inset Quotes erd
18195 \end_inset
18196
18197
18198 \begin_inset Quotes eld
18199 \end_inset
18200
18201
18202 \family typewriter
18203 -b
18204 \family default
18205
18206 \begin_inset Quotes erd
18207 \end_inset
18208
18209
18210 \begin_inset Quotes eld
18211 \end_inset
18212
18213
18214 \family typewriter
18215 -c
18216 \family default
18217
18218 \begin_inset Quotes erd
18219 \end_inset
18220
18221 , etc.
18222 \begin_inset space ~
18223 \end_inset
18224
18225 appended to the page number of the parent 
18226 \family sans
18227 Slide
18228 \family default
18229 .
18230  
18231 \end_layout
18232
18233 \end_inset
18234
18235  Clearly, you want the contents of both the 
18236 \family sans
18237 Slide
18238 \family default
18239  and the 
18240 \family sans
18241 Overlay
18242 \family default
18243  to each fit on a single physical slide! You should probably consider an
18244  
18245 \family sans
18246 Overlay
18247 \family default
18248  as 
18249 \begin_inset Quotes eld
18250 \end_inset
18251
18252 part of
18253 \begin_inset Quotes erd
18254 \end_inset
18255
18256  a 
18257 \family sans
18258 Slide
18259 \family default
18260 .
18261  Indeed, the \SpecialChar LyX
18262  
18263 \family sans
18264 slides
18265 \family default
18266  class provides a visual cue for this: the label at the start of an 
18267 \family sans
18268 Overlay
18269 \family default
18270  is shorter than that at the start of a 
18271 \family sans
18272 Slide
18273 \family default
18274 .
18275  Lastly, when you generate printable output, you'll find alignment markers
18276  in all four corners of both the 
18277 \family sans
18278 Overlay
18279 \family default
18280  page and its parent 
18281 \family sans
18282 Slide
18283 \family default
18284 .
18285  These will assist you in lining up the two physical slides.
18286 \end_layout
18287
18288 \begin_layout Standard
18289 The major problem in overlaying two slides is aligning the contents of the
18290  two transparencies.
18291  How much space should you leave for that graph on the second slide? Worse
18292  still, what if you want a graph and a sentence on second slide, but there
18293  is text on the main transparency that goes in between them? You could try
18294  and insert vertical space of the right size.
18295  The better way is to use 
18296 \family sans
18297 InvisibleText
18298 \family default
18299  and 
18300 \family sans
18301 VisibleText
18302 \family default
18303 .
18304 \end_layout
18305
18306 \begin_layout Standard
18307 As their names imply, 
18308 \family sans
18309 InvisibleText
18310 \family default
18311  and 
18312 \family sans
18313 VisibleText
18314 \family default
18315  are two command-like paragraph environments that make all subsequent text
18316  invisible and visible, respectively.
18317  Note from section
18318 \begin_inset space ~
18319 \end_inset
18320
18321
18322 \begin_inset CommandInset ref
18323 LatexCommand ref
18324 reference "sec:slideQuirk"
18325
18326 \end_inset
18327
18328  that you don't place anything 
18329 \emph on
18330 into
18331 \emph default
18332  these two environments, however.
18333  When you create an 
18334 \family sans
18335 InvisibleText
18336 \family default
18337 , it inserts a centered, sky-blue label into the page reading 
18338 \begin_inset Quotes eld
18339 \end_inset
18340
18341 <Invisible Text Follows>
18342 \begin_inset Quotes erd
18343 \end_inset
18344
18345 .
18346  For paragraphs following this label, the parts of the 
18347 \family sans
18348 Slide
18349 \family default
18350  [or 
18351 \family sans
18352 Overlay
18353 \family default
18354 ; it doesn't matter which] where they would be contain instead blank space.
18355  
18356 \end_layout
18357
18358 \begin_layout Standard
18359 For 
18360 \family sans
18361 VisibleText
18362 \family default
18363 , the corresponding centered label is 
18364 \begin_inset Quotes eld
18365 \end_inset
18366
18367 <Visible Text Follows>
18368 \begin_inset Quotes erd
18369 \end_inset
18370
18371  in blazing green.
18372  Paragraphs following this label behave normally.
18373  Note that the beginning of a new 
18374 \family sans
18375 Slide
18376 \family default
18377
18378 \family sans
18379 Overlay
18380 \family default
18381 , or 
18382 \family sans
18383 Note
18384 \family default
18385  automatically shuts off an 
18386 \family sans
18387 InvisibleText
18388 \family default
18389 .
18390  It's therefore not necessary to use 
18391 \family sans
18392 VisibleText
18393 \family default
18394  at the end of a 
18395 \family sans
18396 Slide
18397 \family default
18398 .
18399 \end_layout
18400
18401 \begin_layout Standard
18402 By now, it should be obvious how to create overlay transparencies using
18403  the proper combination of 
18404 \family sans
18405 InvisibleText
18406 \family default
18407  and 
18408 \family sans
18409 VisibleText
18410 \family default
18411  on a 
18412 \family sans
18413 Slide
18414 \family default
18415  and 
18416 \family sans
18417 Overlay
18418 \family default
18419 :
18420 \end_layout
18421
18422 \begin_layout Enumerate
18423 Create a 
18424 \family sans
18425 Slide
18426 \family default
18427 , including everything that will appear on it, whether on the main slide
18428  or on the 
18429 \family sans
18430 Overlay
18431 \family default
18432 .
18433 \end_layout
18434
18435 \begin_layout Enumerate
18436 Before each figure or paragraph that will appear only on the 
18437 \family sans
18438 Overlay
18439 \family default
18440 , insert an 
18441 \family sans
18442 InvisibleText
18443 \family default
18444  environment.
18445  If necessary, insert a 
18446 \family sans
18447 VisibleText
18448 \family default
18449  environment after the 
18450 \family sans
18451 Overlay
18452 \family default
18453 -only text.
18454 \end_layout
18455
18456 \begin_layout Enumerate
18457 Start an 
18458 \family sans
18459 Overlay
18460 \family default
18461  immediately following the 
18462 \family sans
18463 Slide
18464 \family default
18465 .
18466 \end_layout
18467
18468 \begin_layout Enumerate
18469 Copy the contents of this 
18470 \family sans
18471 Slide
18472 \family default
18473  into the 
18474 \family sans
18475 Overlay
18476 \family default
18477 .
18478 \end_layout
18479
18480 \begin_layout Enumerate
18481 Within the 
18482 \family sans
18483 Overlay
18484 \family default
18485 , change all of the 
18486 \family sans
18487 InvisibleText
18488 \family default
18489  lines to 
18490 \family sans
18491 VisibleText
18492 \family default
18493  and vice-versa.
18494 \end_layout
18495
18496 \begin_layout Standard
18497 That's it.
18498  You've just made an 
18499 \family sans
18500 Overlay
18501 \family default
18502 .
18503 \end_layout
18504
18505 \begin_layout Standard
18506 There's one problem with the way I've designed the \SpecialChar LyX
18507  
18508 \family sans
18509 slides
18510 \family default
18511  class: you can't make text in the middle of a paragraph invisible, nor
18512  make text in the middle of an invisible paragraph visible again.
18513  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18514  codes.
18515 \begin_inset Foot
18516 status collapsed
18517
18518 \begin_layout Plain Layout
18519 The commands of interest are: 
18520 \end_layout
18521
18522 \begin_layout Itemize
18523
18524 \family typewriter
18525 {
18526 \backslash
18527 invisible \SpecialChar ldots
18528  }
18529 \end_layout
18530
18531 \begin_layout Itemize
18532
18533 \family typewriter
18534 {
18535 \backslash
18536 visible \SpecialChar ldots
18537  }
18538 \end_layout
18539
18540 \begin_layout Plain Layout
18541 \SpecialChar ldots
18542 and need to be marked as \SpecialChar TeX
18543 .
18544  The text whose 
18545 \begin_inset Quotes eld
18546 \end_inset
18547
18548 visibility
18549 \begin_inset Quotes erd
18550 \end_inset
18551
18552  you wish to change goes in between the brackets [and after the 
18553 \family typewriter
18554
18555 \backslash
18556 invisible
18557 \family default
18558  or 
18559 \family typewriter
18560
18561 \backslash
18562 visible
18563 \family default
18564  command].
18565  If you don't know how to mark text as \SpecialChar TeX
18566 , see the appropriate section of
18567  the 
18568 \emph on
18569 User's Guide
18570 \emph default
18571 .
18572 \end_layout
18573
18574 \end_inset
18575
18576
18577 \end_layout
18578
18579 \begin_layout Subsubsection
18580 Using 
18581 \family sans
18582 Note
18583 \family default
18584  with 
18585 \family sans
18586 Slide
18587 \family default
18588
18589 \begin_inset CommandInset label
18590 LatexCommand label
18591 name "sec:slideNote"
18592
18593 \end_inset
18594
18595
18596 \end_layout
18597
18598 \begin_layout Standard
18599 Like an 
18600 \family sans
18601 Overlay
18602 \family default
18603 , a 
18604 \family sans
18605 Note
18606 \family default
18607  is associated with a 
18608 \begin_inset Quotes eld
18609 \end_inset
18610
18611 parent
18612 \begin_inset Quotes erd
18613 \end_inset
18614
18615  
18616 \family sans
18617 Slide
18618 \family default
18619 .
18620  Here, too, the \SpecialChar LyX
18621  
18622 \family sans
18623 slides
18624 \family default
18625  class provides visual cues.
18626  The label for a 
18627 \family sans
18628 Note
18629 \family default
18630  is shorter than that of a 
18631 \family sans
18632 Slide
18633 \family default
18634  [yet longer than that of an 
18635 \family sans
18636 Overlay
18637 \family default
18638 ] and, like the label of an 
18639 \family sans
18640 Overlay
18641 \family default
18642  is shockingly magenta.
18643  Additionally, the printed 
18644 \family sans
18645 Note
18646 \family default
18647  has the page number of its 
18648 \begin_inset Quotes eld
18649 \end_inset
18650
18651 parent
18652 \begin_inset Quotes erd
18653 \end_inset
18654
18655  
18656 \family sans
18657 Slide
18658 \family default
18659 , appended by 
18660 \begin_inset Quotes eld
18661 \end_inset
18662
18663
18664 \family typewriter
18665 -
18666 \family default
18667 1
18668 \begin_inset Quotes erd
18669 \end_inset
18670
18671
18672 \begin_inset Quotes eld
18673 \end_inset
18674
18675
18676 \family typewriter
18677 -
18678 \family default
18679 2
18680 \begin_inset Quotes erd
18681 \end_inset
18682
18683
18684 \begin_inset Quotes eld
18685 \end_inset
18686
18687
18688 \family typewriter
18689 -
18690 \family default
18691 3
18692 \begin_inset Quotes erd
18693 \end_inset
18694
18695 , etc.
18696  You can have multiple 
18697 \family sans
18698 Note
18699 \family default
18700 s associated with a single 
18701 \family sans
18702 Slide
18703 \family default
18704 , and, as with 
18705 \family sans
18706 Slide
18707 \family default
18708  and 
18709 \family sans
18710 Overlay
18711 \family default
18712 , you'll probably want to break up long 
18713 \family sans
18714 Note
18715 \family default
18716 s so that they fit on a single sheet of paper.
18717 \end_layout
18718
18719 \begin_layout Standard
18720 The purpose of a 
18721 \family sans
18722 Note
18723 \family default
18724  is obvious: it contains anything additional you might want to say about
18725  a 
18726 \family sans
18727 Slide
18728 \family default
18729 .
18730  It could also be used as a sheet of reminders for a particular 
18731 \family sans
18732 Slide
18733 \family default
18734 .
18735  In the case of the latter, you might want to make use of time markers.
18736  Currently, the \SpecialChar LyX
18737  
18738 \family sans
18739 slides
18740 \family default
18741  class has no 
18742 \begin_inset Quotes eld
18743 \end_inset
18744
18745 native
18746 \begin_inset Quotes erd
18747 \end_inset
18748
18749  support for time markers, a 
18750 \noun on
18751 Sli\SpecialChar TeX
18752
18753 \noun default
18754  feature.
18755  So, you'll have to resort to using the \SpecialChar LaTeX
18756  codes.
18757 \end_layout
18758
18759 \begin_layout Standard
18760 To use time markers, you'll need to specify the extra class option 
18761 \begin_inset Quotes eld
18762 \end_inset
18763
18764
18765 \family typewriter
18766 clock
18767 \family default
18768
18769 \begin_inset Quotes erd
18770 \end_inset
18771
18772  [see section
18773 \begin_inset space ~
18774 \end_inset
18775
18776
18777 \begin_inset CommandInset ref
18778 LatexCommand ref
18779 reference "sec:slidesetup"
18780
18781 \end_inset
18782
18783 ].
18784  This option turns on timing marks, which will appear in the lower-left-hand
18785  corner of every 
18786 \family sans
18787 Note
18788 \family default
18789  you generate.
18790  To set what appears in the time marker, you use the \SpecialChar LaTeX
18791  commands 
18792 \begin_inset Quotes eld
18793 \end_inset
18794
18795
18796 \family typewriter
18797
18798 \backslash
18799 settime{}
18800 \family default
18801
18802 \begin_inset Quotes erd
18803 \end_inset
18804
18805  and 
18806 \begin_inset Quotes eld
18807 \end_inset
18808
18809
18810 \family typewriter
18811
18812 \backslash
18813 addtime{}
18814 \family default
18815
18816 \begin_inset Quotes erd
18817 \end_inset
18818
18819 .
18820  The arguments of both commands are time measured in seconds.
18821  
18822 \begin_inset Quotes eld
18823 \end_inset
18824
18825
18826 \family typewriter
18827
18828 \backslash
18829 settime{}
18830 \family default
18831
18832 \begin_inset Quotes erd
18833 \end_inset
18834
18835  sets the time marker to a given time.
18836  
18837 \begin_inset Quotes eld
18838 \end_inset
18839
18840
18841 \family typewriter
18842
18843 \backslash
18844 addtime{}
18845 \family default
18846
18847 \begin_inset Quotes erd
18848 \end_inset
18849
18850  increments the time marker by the specified amount.
18851  Using time markers and 
18852 \family sans
18853 Note
18854 \family default
18855 s in this fashion, you can remind yourself how much time to spend on a particula
18856
18857 \family sans
18858 Slide
18859 \family default
18860 .
18861 \end_layout
18862
18863 \begin_layout Standard
18864 There's one last feature to describe.
18865  Clearly, you'd like to print out all of your 
18866 \family sans
18867 Slide
18868 \family default
18869 s and 
18870 \family sans
18871 Overlay
18872 \family default
18873 s on transparencies while printing all of your 
18874 \family sans
18875 Note
18876 \family default
18877 s on plain paper.
18878  However, a 
18879 \family sans
18880 Note
18881 \family default
18882  
18883 \emph on
18884 must
18885 \emph default
18886  follow the 
18887 \family sans
18888 Slide
18889 \family default
18890  with which it is associated.
18891  What's a person to do?
18892 \end_layout
18893
18894 \begin_layout Standard
18895 Luckily, there are two \SpecialChar LaTeX
18896  commands that allow you to select what to print
18897  out.
18898  Both must be placed into the preamble of your document.
18899  The command 
18900 \begin_inset Quotes eld
18901 \end_inset
18902
18903
18904 \family typewriter
18905
18906 \backslash
18907 onlyslides{
18908 \backslash
18909 slides}
18910 \family default
18911
18912 \begin_inset Quotes erd
18913 \end_inset
18914
18915  will cause the output to contain only the 
18916 \family sans
18917 Slide
18918 \family default
18919 s and 
18920 \family sans
18921 Overlay
18922 \family default
18923 s.
18924  Correspondingly, the command 
18925 \begin_inset Quotes eld
18926 \end_inset
18927
18928
18929 \family typewriter
18930
18931 \backslash
18932 onlynotes{
18933 \backslash
18934 notes}
18935 \family default
18936
18937 \begin_inset Quotes erd
18938 \end_inset
18939
18940  prevents the output of anything but 
18941 \family sans
18942 Note
18943 \family default
18944 s.
18945  I'd advise placing both commands in the preamble and initially comment
18946  both out.
18947  You can then preview your entire presentation as you write.
18948  When you're done writing, you can then uncomment one of the two to select
18949  what you want to print.
18950  I like to uncomment 
18951 \begin_inset Quotes eld
18952 \end_inset
18953
18954
18955 \family typewriter
18956
18957 \backslash
18958 onlyslides{
18959 \backslash
18960 slides}
18961 \family default
18962
18963 \begin_inset Quotes erd
18964 \end_inset
18965
18966  , print to a file with 
18967 \begin_inset Quotes eld
18968 \end_inset
18969
18970
18971 \family typewriter
18972 -slides
18973 \family default
18974
18975 \begin_inset Quotes erd
18976 \end_inset
18977
18978  in its name, comment it back out, then uncomment 
18979 \begin_inset Quotes eld
18980 \end_inset
18981
18982
18983 \family typewriter
18984
18985 \backslash
18986 onlynotes{
18987 \backslash
18988 notes}
18989 \family default
18990
18991 \begin_inset Quotes erd
18992 \end_inset
18993
18994  and print to a 
18995 \begin_inset Quotes eld
18996 \end_inset
18997
18998
18999 \family typewriter
19000 *-notes.ps
19001 \family default
19002
19003 \begin_inset Quotes erd
19004 \end_inset
19005
19006  file.
19007  I can then send either file to a printer, loading transparencies or plain
19008  paper as appropriate.
19009 \end_layout
19010
19011 \begin_layout Standard
19012 You can also provide other arguments to the 
19013 \begin_inset Quotes eld
19014 \end_inset
19015
19016
19017 \family typewriter
19018
19019 \backslash
19020 onlyslides{}
19021 \family default
19022
19023 \begin_inset Quotes erd
19024 \end_inset
19025
19026  and 
19027 \begin_inset Quotes eld
19028 \end_inset
19029
19030
19031 \family typewriter
19032
19033 \backslash
19034 onlynotes{}
19035 \family default
19036
19037 \begin_inset Quotes erd
19038 \end_inset
19039
19040  commands.
19041  See a good \SpecialChar LaTeX
19042  book for details.
19043 \end_layout
19044
19045 \begin_layout Subsection
19046 The 
19047 \family sans
19048 slides
19049 \family default
19050  Class Template File
19051 \end_layout
19052
19053 \begin_layout Standard
19054 I have also provided a template file, 
19055 \begin_inset Quotes eld
19056 \end_inset
19057
19058
19059 \family typewriter
19060 slides.lyx
19061 \family default
19062
19063 \begin_inset Quotes erd
19064 \end_inset
19065
19066 , with the 
19067 \family sans
19068 slides
19069 \family default
19070  class.
19071  To use it, begin your new presentation with 
19072 \family sans
19073 File\SpecialChar menuseparator
19074 New
19075 \begin_inset space ~
19076 \end_inset
19077
19078 from
19079 \begin_inset space ~
19080 \end_inset
19081
19082 Template
19083 \family default
19084 .
19085  Your new \SpecialChar LyX
19086  presentation file will contain an example 
19087 \family sans
19088 Slide
19089 \family default
19090  – 
19091 \family sans
19092 Overlay
19093 \family default
19094  – 
19095 \family sans
19096 Note
19097 \family default
19098  triplet.
19099  The 
19100 \family sans
19101 Slide
19102 \family default
19103  and 
19104 \family sans
19105 Overlay
19106 \family default
19107  additionally contain an example of the use of 
19108 \family sans
19109 InvisibleText
19110 \family default
19111  and 
19112 \family sans
19113 VisibleText
19114 \family default
19115 .
19116  Lastly, the preamble will contain:
19117 \end_layout
19118
19119 \begin_layout LyX-Code
19120 % Uncomment to print out only slides and overlays
19121 \end_layout
19122
19123 \begin_layout LyX-Code
19124 %
19125 \end_layout
19126
19127 \begin_layout LyX-Code
19128 %
19129 \backslash
19130 onlyslides{
19131 \backslash
19132 slides}
19133 \begin_inset Newline newline
19134 \end_inset
19135
19136  
19137 \end_layout
19138
19139 \begin_layout LyX-Code
19140 % Uncomment to print out only notes
19141 \end_layout
19142
19143 \begin_layout LyX-Code
19144 %
19145 \end_layout
19146
19147 \begin_layout LyX-Code
19148 %
19149 \backslash
19150 onlynotes{
19151 \backslash
19152 notes}
19153 \end_layout
19154
19155 \begin_layout Standard
19156 One final thing: I created this class to support the \SpecialChar LaTeX2e
19157  
19158 \begin_inset Quotes eld
19159 \end_inset
19160
19161
19162 \noun on
19163 Sli\SpecialChar TeX
19164
19165 \noun default
19166  emulation
19167 \begin_inset Quotes erd
19168 \end_inset
19169
19170  class, one of the built-in \SpecialChar LaTeX2e
19171  classes.
19172  Neither I nor the rest of the \SpecialChar LyX
19173  Team endorse or oppose the use of this built-in
19174  slide class.
19175  It's here if you want it or need it.
19176  There exist other \SpecialChar LaTeX2e
19177  classes for creating presentations, such as the 
19178 \family sans
19179 Foils
19180 \family default
19181  class [see section
19182 \begin_inset space ~
19183 \end_inset
19184
19185
19186 \begin_inset CommandInset ref
19187 LatexCommand ref
19188 reference "sec:foiltex"
19189
19190 \end_inset
19191
19192 ] or the 
19193 \begin_inset Quotes eld
19194 \end_inset
19195
19196
19197 \family typewriter
19198 seminar
19199 \family default
19200
19201 \begin_inset Quotes erd
19202 \end_inset
19203
19204  package [present on some \SpecialChar TeX
19205  distributions].
19206  The latter is not yet supported under \SpecialChar LyX
19207 .
19208 \begin_inset Foot
19209 status collapsed
19210
19211 \begin_layout Plain Layout
19212 Perhaps you can take on the task\SpecialChar ldots
19213
19214 \end_layout
19215
19216 \end_inset
19217
19218  I know nothing about these other classes.
19219  Try them out to see what sort of alternative they provide.
19220 \end_layout
19221
19222 \begin_layout Chapter
19223 \SpecialChar LyX
19224  Features needing Extra Software
19225 \end_layout
19226
19227 \begin_layout Section
19228 Checking \SpecialChar TeX
19229
19230 \end_layout
19231
19232 \begin_layout Standard
19233 by 
19234 \noun on
19235 Asger Alstrup
19236 \end_layout
19237
19238 \begin_layout Subsection
19239 Introduction
19240 \end_layout
19241
19242 \begin_layout Standard
19243 If you have the 
19244 \family typewriter
19245 chktex
19246 \family default
19247  program installed
19248 \begin_inset Foot
19249 status collapsed
19250
19251 \begin_layout Plain Layout
19252
19253 \family typewriter
19254 chktex
19255 \family default
19256  is not yet available when you are using the \SpecialChar LaTeX
19257  distribution MiK\SpecialChar TeX
19258 .
19259 \end_layout
19260
19261 \end_inset
19262
19263 , you'll find in the 
19264 \family sans
19265 Tools
19266 \family default
19267  menu the entry: 
19268 \family sans
19269 Check
19270 \begin_inset space ~
19271 \end_inset
19272
19273 TeX
19274 \family default
19275 .
19276  You can get 
19277 \family typewriter
19278 chktex
19279 \family default
19280  from CTAN,
19281 \begin_inset Newline newline
19282 \end_inset
19283
19284
19285 \begin_inset CommandInset href
19286 LatexCommand href
19287 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
19288 literal "false"
19289
19290 \end_inset
19291
19292 .
19293 \end_layout
19294
19295 \begin_layout Standard
19296 The 
19297 \family sans
19298 Chk\SpecialChar TeX
19299
19300 \family default
19301  package is a program that was written by 
19302 \begin_inset Flex Noun
19303 status collapsed
19304
19305 \begin_layout Plain Layout
19306 Jens T.
19307 \begin_inset space ~
19308 \end_inset
19309
19310 Berger Thielemann
19311 \end_layout
19312
19313 \end_inset
19314
19315  in frustration because some constructs in \SpecialChar LaTeX
19316  are sometimes non-intuitive,
19317  and easy to forget.
19318  The program runs over your \SpecialChar LaTeX
19319  file, checks the integrity of the file, and
19320  flags some common errors.
19321  In other technical words, it is 
19322 \family typewriter
19323 lint
19324 \family default
19325  for \SpecialChar LaTeX
19326 .
19327 \end_layout
19328
19329 \begin_layout Standard
19330 Well, what is a syntax checker doing in \SpecialChar LyX
19331  which is supposed to produce correct
19332  \SpecialChar LaTeX
19333  anyways? The answer is simple: Just as 
19334 \family typewriter
19335 Lint
19336 \family default
19337  not only checks the 
19338 \emph on
19339 syntax
19340 \emph default
19341  of C programs, but also does 
19342 \emph on
19343 semantic
19344 \emph default
19345  checks for type-errors, 
19346 \family sans
19347 Chk\SpecialChar TeX
19348
19349 \family default
19350  catches some common 
19351 \emph on
19352 typographic
19353 \emph default
19354  errors, in addition to the syntactical ones.
19355  Specifically, 
19356 \family sans
19357 Chk\SpecialChar TeX
19358
19359 \family default
19360  is capable of detecting several common errors, such as
19361 \end_layout
19362
19363 \begin_layout Itemize
19364 Ellipsis detection:
19365 \begin_inset Newline newline
19366 \end_inset
19367
19368 Use \SpecialChar ldots
19369  instead of ...
19370 \end_layout
19371
19372 \begin_layout Itemize
19373 No space in front of/after parenthesis:
19374 \begin_inset Newline newline
19375 \end_inset
19376
19377 ( wrong spacing )
19378 \end_layout
19379
19380 \begin_layout Itemize
19381 Enforcement of normal space after common abbreviations:
19382 \begin_inset Newline newline
19383 \end_inset
19384
19385 e.
19386 \begin_inset space \thinspace{}
19387 \end_inset
19388
19389 g.
19390 \begin_inset space \space{}
19391 \end_inset
19392
19393 is too wide spacing.
19394 \end_layout
19395
19396 \begin_layout Itemize
19397 Enforcement of end-of-sentence space when the last sentence ends with a
19398  capital letter:
19399 \begin_inset Newline newline
19400 \end_inset
19401
19402 This is a TEST.
19403  And this is wrong spacing.
19404 \end_layout
19405
19406 \begin_layout Itemize
19407 Space in front of labels and similar commands:
19408 \begin_inset Newline newline
19409 \end_inset
19410
19411 The label should stick right up to the text to avoid falling to a wrong
19412  page.
19413  
19414 \begin_inset CommandInset label
19415 LatexCommand label
19416 name "sec:chktex"
19417
19418 \end_inset
19419
19420  
19421 \begin_inset Foot
19422 status collapsed
19423
19424 \begin_layout Plain Layout
19425 This footnote is in danger of falling off to a wrong page
19426 \end_layout
19427
19428 \end_inset
19429
19430  The label is separated too much.
19431 \end_layout
19432
19433 \begin_layout Itemize
19434 Space in front of references, instead of hard spaces:
19435 \begin_inset Newline newline
19436 \end_inset
19437
19438 If you have bad luck, the text will break right between the referenced text
19439  and reference number, and that's a pity.
19440  See section 
19441 \begin_inset CommandInset ref
19442 LatexCommand ref
19443 reference "sec:chktex"
19444
19445 \end_inset
19446
19447 .
19448 \end_layout
19449
19450 \begin_layout Itemize
19451 Use of 
19452 \begin_inset Quotes eld
19453 \end_inset
19454
19455 x
19456 \begin_inset Quotes erd
19457 \end_inset
19458
19459  instead of 
19460 \begin_inset Formula $\times$
19461 \end_inset
19462
19463  between numbers:
19464 \begin_inset Newline newline
19465 \end_inset
19466
19467 2x2 looks cheap compared to 
19468 \begin_inset Formula $2\times2$
19469 \end_inset
19470
19471 .
19472 \end_layout
19473
19474 \begin_layout Standard
19475 and more \SpecialChar ldots
19476  It is an invaluable tool when you are 
19477 \begin_inset Quotes eld
19478 \end_inset
19479
19480 finishing up
19481 \begin_inset Quotes erd
19482 \end_inset
19483
19484  your document before printing, and you should run it right after the obligatory
19485  spelling check, and before you go fine tuning the typesetting.
19486 \end_layout
19487
19488 \begin_layout Subsection
19489 How to use it
19490 \end_layout
19491
19492 \begin_layout Standard
19493 If you have the program installed, usage is as simple as choosing 
19494 \family sans
19495 Tools\SpecialChar menuseparator
19496 Check
19497 \begin_inset space ~
19498 \end_inset
19499
19500 TeX
19501 \family default
19502 .
19503  This will make \SpecialChar LyX
19504  generate a \SpecialChar LaTeX
19505  file of your document, start 
19506 \family sans
19507 Chk\SpecialChar TeX
19508
19509 \family default
19510  to check it, and then make \SpecialChar LyX
19511  insert 
19512 \begin_inset Quotes eld
19513 \end_inset
19514
19515 error boxes
19516 \begin_inset Quotes erd
19517 \end_inset
19518
19519  with the warnings from 
19520 \family sans
19521 Chk\SpecialChar TeX
19522
19523 \family default
19524 , if there were any.
19525  The warnings will be placed close to the point of the mistake, and you
19526  can quickly find them by using the 
19527 \family sans
19528 Navigate\SpecialChar menuseparator
19529 Error
19530 \family default
19531  menu item, or the shortcut key 
19532 \family sans
19533 C-g
19534 \family default
19535  from the default 
19536 \family typewriter
19537 cua
19538 \family default
19539  bind file.
19540  Open the error boxes by clicking on them with the mouse, or use the shortcut
19541  key 
19542 \family sans
19543 C-i
19544 \family default
19545  from 
19546 \family typewriter
19547 cua
19548 \family default
19549  bindings, or the corresponding 
19550 \family sans
19551 C-o
19552 \family default
19553  for the alternate 
19554 \family typewriter
19555 emacs
19556 \family default
19557  bind file.
19558  Read the warning and correct the mistake, if it is a mistake.
19559  If you have trouble understanding what the warning is about, you can safely
19560  ignore it.
19561  Remember that there is a hidden layer between the document on screen and
19562  the technical details in invoking 
19563 \family sans
19564 Chk\SpecialChar TeX
19565
19566 \family default
19567 , and this gap can make some warnings seem arcane or just plain silly.
19568 \end_layout
19569
19570 \begin_layout Standard
19571 This document is an excellent testing bed for the feature, and it should
19572  provide quite a few warnings for you to fiddle with.
19573  Since computers are only so smart, expect most of the warnings to be false
19574  alarms, though.
19575 \end_layout
19576
19577 \begin_layout Subsection
19578 How to fine tune it
19579 \end_layout
19580
19581 \begin_layout Standard
19582 Sometimes, you'll find that 
19583 \family sans
19584 Chk\SpecialChar TeX
19585
19586 \family default
19587  makes more noise than suits your mood.
19588  Then you can choose not to use it, wait until your mood changes, or try
19589  to customize 
19590 \family sans
19591 Chk\SpecialChar TeX
19592
19593 \family default
19594  to get better along with you.
19595 \end_layout
19596
19597 \begin_layout Standard
19598 Although 
19599 \family sans
19600 Chk\SpecialChar TeX
19601
19602 \family default
19603  
19604 \emph on
19605 is
19606 \emph default
19607  very configurable and extensible, you should not expect to solve all problems
19608  with 
19609 \family sans
19610 Chk\SpecialChar TeX
19611
19612 \family default
19613  in \SpecialChar LyX
19614  this way.
19615  Since \SpecialChar LyX
19616  has to generate a somewhat special \SpecialChar LaTeX
19617  file to be able to match the
19618  line numbers from the 
19619 \family sans
19620 Chk\SpecialChar TeX
19621
19622 \family default
19623  output
19624 \begin_inset Foot
19625 status collapsed
19626
19627 \begin_layout Plain Layout
19628 You can inspect the specific output from 
19629 \family sans
19630 chktex
19631 \family default
19632  by using 
19633 \family sans
19634 Document\SpecialChar menuseparator
19635 \SpecialChar LaTeX
19636
19637 \begin_inset space ~
19638 \end_inset
19639
19640 Log
19641 \family default
19642  right after a 
19643 \family sans
19644 chktex
19645 \family default
19646  run.
19647 \end_layout
19648
19649 \end_inset
19650
19651  to the internal document structure, some of the warnings will not appear
19652  correctly.
19653  There are two things you can do about this:
19654 \end_layout
19655
19656 \begin_layout Itemize
19657 Fine tune the 
19658 \family sans
19659 Chk\SpecialChar TeX
19660
19661 \family default
19662  invocation command line in 
19663 \begin_inset Flex Noun
19664 status collapsed
19665
19666 \begin_layout Plain Layout
19667 Tools\SpecialChar menuseparator
19668 Preferences\SpecialChar menuseparator
19669 Output\SpecialChar menuseparator
19670 LaTeX\SpecialChar menuseparator
19671 CheckTeX command
19672 \end_layout
19673
19674 \end_inset
19675
19676 , or the global 
19677 \family sans
19678 Chk\SpecialChar TeX
19679
19680 \family default
19681  installation configuration file (usually with the file 
19682 \family typewriter
19683 chktexrc
19684 \family default
19685 ).
19686  See below to learn what warnings can be enabled and disabled on the command
19687  line.
19688 \end_layout
19689
19690 \begin_layout Itemize
19691 Export your document as a raw \SpecialChar LaTeX
19692  file using 
19693 \family sans
19694 File\SpecialChar menuseparator
19695 Export\SpecialChar menuseparator
19696 \SpecialChar LaTeX
19697
19698 \family default
19699  and run 
19700 \family typewriter
19701 chktex
19702 \family default
19703  manually on that.
19704  Invoked in this way, it can be a hassle to find the corresponding place
19705  in the document inside \SpecialChar LyX
19706 , but with a little patience, you should be able
19707  to do it.
19708 \end_layout
19709
19710 \begin_layout Standard
19711 Here follows the warning messages that can be enabled and disabled in 
19712 \family sans
19713 Preferences
19714 \family default
19715 .
19716  Use 
19717 \family typewriter
19718 -n#
19719 \family default
19720  to disable a warning, and 
19721 \family typewriter
19722 -w#
19723 \family default
19724  to enable a warning.
19725  The emphasized entries are disabled by default, because the default is
19726  "
19727 \family typewriter
19728 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19729 \family default
19730 ".
19731 \end_layout
19732
19733 \begin_layout Standard
19734 Notice that you should only use the options that enable and disable warnings,
19735  because \SpecialChar LyX
19736  relies on some of the other command line parameters to be set
19737  in a specific way to have a chance to communicate with 
19738 \family typewriter
19739 chktex
19740 \family default
19741 .
19742 \end_layout
19743
19744 \begin_layout Enumerate
19745
19746 \size small
19747 \emph on
19748 Command terminated with space.
19749 \end_layout
19750
19751 \begin_layout Enumerate
19752
19753 \size small
19754 Non-breaking space (
19755 \begin_inset Quotes eld
19756 \end_inset
19757
19758
19759 \family typewriter
19760 ~
19761 \family default
19762
19763 \begin_inset Quotes erd
19764 \end_inset
19765
19766 ) should have been used.
19767 \end_layout
19768
19769 \begin_layout Enumerate
19770
19771 \size small
19772 \emph on
19773 You should enclose the previous parenthesis with 
19774 \begin_inset Quotes eld
19775 \end_inset
19776
19777
19778 \family typewriter
19779 {}
19780 \family default
19781
19782 \begin_inset Quotes erd
19783 \end_inset
19784
19785 .
19786 \end_layout
19787
19788 \begin_layout Enumerate
19789
19790 \size small
19791 Italic correction (
19792 \begin_inset Quotes eld
19793 \end_inset
19794
19795
19796 \family typewriter
19797
19798 \backslash
19799 /
19800 \family default
19801
19802 \begin_inset Quotes erd
19803 \end_inset
19804
19805 ) found in non-italic buffer.
19806 \end_layout
19807
19808 \begin_layout Enumerate
19809
19810 \size small
19811 Italic correction (
19812 \begin_inset Quotes eld
19813 \end_inset
19814
19815
19816 \family typewriter
19817
19818 \backslash
19819 /
19820 \family default
19821
19822 \begin_inset Quotes erd
19823 \end_inset
19824
19825 ) found more than once.
19826 \end_layout
19827
19828 \begin_layout Enumerate
19829
19830 \size small
19831 \emph on
19832 No italic correction (
19833 \begin_inset Quotes eld
19834 \end_inset
19835
19836
19837 \family typewriter
19838
19839 \backslash
19840 /
19841 \family default
19842
19843 \begin_inset Quotes erd
19844 \end_inset
19845
19846 ) found.
19847 \end_layout
19848
19849 \begin_layout Enumerate
19850
19851 \size small
19852 Accent command 
19853 \begin_inset Quotes eld
19854 \end_inset
19855
19856
19857 \family typewriter
19858 cmd
19859 \family default
19860
19861 \begin_inset Quotes erd
19862 \end_inset
19863
19864  needs use of 
19865 \begin_inset Quotes eld
19866 \end_inset
19867
19868
19869 \family typewriter
19870 cmd
19871 \family default
19872
19873 \begin_inset Quotes erd
19874 \end_inset
19875
19876 .
19877 \end_layout
19878
19879 \begin_layout Enumerate
19880
19881 \size small
19882 Wrong length of dash may have been used.
19883 \end_layout
19884
19885 \begin_layout Enumerate
19886
19887 \size small
19888 \emph on
19889 \begin_inset Quotes eld
19890 \end_inset
19891
19892
19893 \family typewriter
19894 %s
19895 \family default
19896
19897 \begin_inset Quotes erd
19898 \end_inset
19899
19900  expected, found 
19901 \begin_inset Quotes eld
19902 \end_inset
19903
19904
19905 \family typewriter
19906 %s
19907 \family default
19908
19909 \begin_inset Quotes erd
19910 \end_inset
19911
19912 .
19913 \end_layout
19914
19915 \begin_layout Enumerate
19916
19917 \size small
19918 Solo 
19919 \begin_inset Quotes eld
19920 \end_inset
19921
19922
19923 \family typewriter
19924 %s
19925 \family default
19926
19927 \begin_inset Quotes erd
19928 \end_inset
19929
19930  found.
19931 \end_layout
19932
19933 \begin_layout Enumerate
19934
19935 \size small
19936 You should use 
19937 \begin_inset Quotes eld
19938 \end_inset
19939
19940
19941 \family typewriter
19942 %s
19943 \family default
19944
19945 \begin_inset Quotes erd
19946 \end_inset
19947
19948  to achieve an ellipsis.
19949 \end_layout
19950
19951 \begin_layout Enumerate
19952
19953 \size small
19954 Inter-word spacing (
19955 \begin_inset Quotes eld
19956 \end_inset
19957
19958
19959 \family typewriter
19960
19961 \backslash
19962
19963 \family default
19964  
19965 \begin_inset Quotes eld
19966 \end_inset
19967
19968 ) should perhaps be used.
19969 \end_layout
19970
19971 \begin_layout Enumerate
19972
19973 \size small
19974 Inter-sentence spacing (
19975 \begin_inset Quotes eld
19976 \end_inset
19977
19978
19979 \family typewriter
19980
19981 \backslash
19982 @
19983 \family default
19984
19985 \begin_inset Quotes erd
19986 \end_inset
19987
19988 ) should perhaps be used.
19989 \end_layout
19990
19991 \begin_layout Enumerate
19992
19993 \size small
19994 Could not find argument for command.
19995 \end_layout
19996
19997 \begin_layout Enumerate
19998
19999 \size small
20000 No match found for 
20001 \begin_inset Quotes eld
20002 \end_inset
20003
20004
20005 \family typewriter
20006 %s
20007 \family default
20008
20009 \begin_inset Quotes erd
20010 \end_inset
20011
20012 .
20013 \end_layout
20014
20015 \begin_layout Enumerate
20016
20017 \size small
20018 Math mode still on at end of \SpecialChar LaTeX
20019  file.
20020 \end_layout
20021
20022 \begin_layout Enumerate
20023
20024 \size small
20025 Number of 
20026 \begin_inset Quotes eld
20027 \end_inset
20028
20029
20030 \family typewriter
20031 char
20032 \family default
20033
20034 \begin_inset Quotes erd
20035 \end_inset
20036
20037  doesn't match the number of 
20038 \begin_inset Quotes eld
20039 \end_inset
20040
20041
20042 \family typewriter
20043 char
20044 \family default
20045
20046 \begin_inset Quotes erd
20047 \end_inset
20048
20049 .
20050 \end_layout
20051
20052 \begin_layout Enumerate
20053
20054 \size small
20055 You should use either 
20056 \family typewriter
20057
20058 \begin_inset Quotes eld
20059 \end_inset
20060
20061
20062 \family default
20063  or 
20064 \family typewriter
20065
20066 \begin_inset Quotes erd
20067 \end_inset
20068
20069
20070 \family default
20071  as an alternative to 
20072 \begin_inset Quotes eld
20073 \end_inset
20074
20075
20076 \family typewriter
20077 "
20078 \family default
20079
20080 \begin_inset Quotes erd
20081 \end_inset
20082
20083 .
20084 \end_layout
20085
20086 \begin_layout Enumerate
20087
20088 \size small
20089 You should use "
20090 \family typewriter
20091 '
20092 \family default
20093 " (ASCII 39) instead of "
20094 \family typewriter
20095 ´
20096 \family default
20097 " (ASCII 180).
20098 \end_layout
20099
20100 \begin_layout Enumerate
20101
20102 \size small
20103 User-specified pattern found.
20104 \end_layout
20105
20106 \begin_layout Enumerate
20107
20108 \size small
20109 This command might not be intended.
20110 \end_layout
20111
20112 \begin_layout Enumerate
20113
20114 \size small
20115 \emph on
20116 Comment displayed.
20117 \end_layout
20118
20119 \begin_layout Enumerate
20120
20121 \size small
20122 Either 
20123 \family typewriter
20124 ''
20125 \backslash
20126 ,'
20127 \family default
20128  or 
20129 \family typewriter
20130 '
20131 \backslash
20132 ,''
20133 \family default
20134  will look better.
20135 \end_layout
20136
20137 \begin_layout Enumerate
20138
20139 \size small
20140 Delete this space to maintain correct page references.
20141 \end_layout
20142
20143 \begin_layout Enumerate
20144
20145 \size small
20146 \emph on
20147 You might wish to put this between a pair of 
20148 \begin_inset Quotes eld
20149 \end_inset
20150
20151
20152 \family typewriter
20153 {}
20154 \family default
20155
20156 \begin_inset Quotes erd
20157 \end_inset
20158
20159 .
20160 \end_layout
20161
20162 \begin_layout Enumerate
20163
20164 \size small
20165 You ought to remove spaces in front of punctuation.
20166 \end_layout
20167
20168 \begin_layout Enumerate
20169
20170 \size small
20171 Could not execute \SpecialChar LaTeX
20172  command.
20173 \end_layout
20174
20175 \begin_layout Enumerate
20176
20177 \size small
20178 Don't use 
20179 \family typewriter
20180
20181 \backslash
20182 /
20183 \family default
20184  in front of small punctuation.
20185 \end_layout
20186
20187 \begin_layout Enumerate
20188
20189 \family typewriter
20190 \size small
20191 $
20192 \backslash
20193 times$
20194 \family default
20195  may look prettier here.
20196 \end_layout
20197
20198 \begin_layout Enumerate
20199
20200 \size small
20201 \emph on
20202 Multiple spaces detected in output.
20203 \end_layout
20204
20205 \begin_layout Enumerate
20206
20207 \size small
20208 This text may be ignored.
20209 \end_layout
20210
20211 \begin_layout Enumerate
20212
20213 \size small
20214 Use 
20215 \family typewriter
20216
20217 \begin_inset Quotes eld
20218 \end_inset
20219
20220
20221 \family default
20222  to begin quotation, not 
20223 \family typewriter
20224 '
20225 \family default
20226 .
20227 \end_layout
20228
20229 \begin_layout Enumerate
20230
20231 \size small
20232 Use 
20233 \family typewriter
20234 '
20235 \family default
20236  to end quotation, not 
20237 \family typewriter
20238
20239 \begin_inset Quotes eld
20240 \end_inset
20241
20242
20243 \family default
20244 .
20245 \end_layout
20246
20247 \begin_layout Enumerate
20248
20249 \size small
20250 Don't mix quotes.
20251 \end_layout
20252
20253 \begin_layout Enumerate
20254
20255 \size small
20256 You should perhaps use 
20257 \begin_inset Quotes eld
20258 \end_inset
20259
20260
20261 \family typewriter
20262 cmd
20263 \family default
20264
20265 \begin_inset Quotes erd
20266 \end_inset
20267
20268  instead.
20269 \end_layout
20270
20271 \begin_layout Enumerate
20272
20273 \size small
20274 You should put a space in front of/after parenthesis.
20275 \end_layout
20276
20277 \begin_layout Enumerate
20278
20279 \size small
20280 You should avoid spaces in front of/after parenthesis.
20281 \end_layout
20282
20283 \begin_layout Enumerate
20284
20285 \size small
20286 \emph on
20287 You should not use punctuation in front of/after quotes.
20288 \end_layout
20289
20290 \begin_layout Enumerate
20291
20292 \size small
20293 Double space found.
20294 \end_layout
20295
20296 \begin_layout Enumerate
20297
20298 \size small
20299 You should put punctuation outside inner/inside display math mode.
20300 \end_layout
20301
20302 \begin_layout Enumerate
20303
20304 \size small
20305 You ought to not use primitive \SpecialChar TeX
20306  in \SpecialChar LaTeX
20307  code.
20308 \end_layout
20309
20310 \begin_layout Enumerate
20311
20312 \size small
20313 You should remove spaces in front of 
20314 \begin_inset Quotes eld
20315 \end_inset
20316
20317
20318 \family typewriter
20319 %s
20320 \family default
20321
20322 \begin_inset Quotes erd
20323 \end_inset
20324
20325
20326 \end_layout
20327
20328 \begin_layout Enumerate
20329
20330 \size small
20331 \begin_inset Quotes eld
20332 \end_inset
20333
20334
20335 \family typewriter
20336 %s
20337 \family default
20338
20339 \begin_inset Quotes erd
20340 \end_inset
20341
20342  is normally not followed by 
20343 \begin_inset Quotes eld
20344 \end_inset
20345
20346
20347 \family typewriter
20348 %c
20349 \family default
20350
20351 \begin_inset Quotes erd
20352 \end_inset
20353
20354 .
20355 \end_layout
20356
20357 \begin_layout Standard
20358 In later versions of \SpecialChar LyX
20359 , we hope to provide a more complete interface to this
20360  tool (and it's smaller cousin 
20361 \family typewriter
20362 lacheck
20363 \family default
20364 ) to exploit the full power of it.
20365  But it's not exactly useless as it is now: go try it on one of your existing
20366  documents of a certain length and be surprised.
20367 \end_layout
20368
20369 \begin_layout Section
20370 Version Control in \SpecialChar LyX
20371
20372 \end_layout
20373
20374 \begin_layout Standard
20375 by
20376 \noun on
20377  Lars Gullik Bjønnes 
20378 \noun default
20379 and 
20380 \noun on
20381 Pavel Sanda
20382 \end_layout
20383
20384 \begin_layout Subsection
20385 Introduction
20386 \end_layout
20387
20388 \begin_layout Standard
20389 \SpecialChar LyX
20390  supports some of the most basic RCS/CVS/SVN/GIT commands.
20391  If you need something a bit more sophisticated you will have to do that
20392  manually in a terminal.
20393 \end_layout
20394
20395 \begin_layout Standard
20396 Also note that CVS support is not as good as subversion support so we advise
20397  using SVN instead.
20398  A good place to start learning Subversion is SVN Book
20399 \begin_inset Foot
20400 status collapsed
20401
20402 \begin_layout Plain Layout
20403 \begin_inset CommandInset href
20404 LatexCommand href
20405 target "http://svnbook.red-bean.com/"
20406 literal "false"
20407
20408 \end_inset
20409
20410
20411 \end_layout
20412
20413 \end_inset
20414
20415 .
20416  In the case of RCS you should read 
20417 \begin_inset Quotes eld
20418 \end_inset
20419
20420 rcsintro
20421 \begin_inset Quotes erd
20422 \end_inset
20423
20424  (a man file, read it with 
20425 \family typewriter
20426 man rcsintro
20427 \family default
20428 ).
20429  This file describes all the basic features of RCS.
20430  You should especially notice the comment about a RCS directory, and the
20431  notion of a master RCS file (the file ending in 
20432 \family typewriter
20433 ,v
20434 \family default
20435 ).
20436 \end_layout
20437
20438 \begin_layout Standard
20439 Before you begin to use the version control features in \SpecialChar LyX
20440 , you should be
20441  familiar with RCS/CVS/SVN/GIT usage.
20442  The implementation in \SpecialChar LyX
20443  assumes a recent version of the GNU RCS or CVS/SVN
20444  package — no guarantees are made for older versions.
20445  Most of the log messages are not currently displayed after operations —
20446  you can check them in the Messages pane if unsure.
20447  Regular users of version control will appreciate VC toolbar, which can
20448  be enabled via 
20449 \family sans
20450 View\SpecialChar menuseparator
20451 Toolbars\SpecialChar menuseparator
20452 Version
20453 \begin_inset space ~
20454 \end_inset
20455
20456 Control
20457 \family default
20458 .
20459 \end_layout
20460
20461 \begin_layout Standard
20462 For introducing your own external commands consult vc-command in the manual
20463  of \SpecialChar LyX
20464  functions.
20465 \end_layout
20466
20467 \begin_layout Standard
20468 It is strongly recommended to store documents in uncompressed format if
20469  using version control (uncheck 
20470 \family sans
20471 Document\SpecialChar menuseparator
20472 Compressed
20473 \family default
20474  if it is checked): Uncompressed LyX documents are text files and therefore
20475  for merging two different versions by version control systems.
20476  Compressed LyX documents are binary files, which cannot be merged by version
20477  control systems.
20478 \end_layout
20479
20480 \begin_layout Subsection
20481 RCS commands in \SpecialChar LyX
20482
20483 \end_layout
20484
20485 \begin_layout Standard
20486 The following sections describe the RCS commands supported by \SpecialChar LyX
20487 .
20488  You can find them in the 
20489 \family sans
20490 File\SpecialChar menuseparator
20491 Version
20492 \begin_inset space ~
20493 \end_inset
20494
20495 Control
20496 \family default
20497  submenu.
20498  \SpecialChar LyX
20499  was tested against RCS 5.7/5.8.
20500 \end_layout
20501
20502 \begin_layout Subsubsection
20503
20504 \family sans
20505 Register
20506 \end_layout
20507
20508 \begin_layout Standard
20509 If your document is not under revision control, this is the only item shown
20510  in the menu.
20511  And if it is under revision control, the 
20512 \family sans
20513 Register
20514 \family default
20515  item is not visible.
20516  
20517 \end_layout
20518
20519 \begin_layout Standard
20520 This command registers your document with RCS (unless you are under the
20521  directory managed by CVS)\SpecialChar endofsentence
20522  You are asked interactively to supply an initial
20523  description of the document.
20524  The document is now set in Read-Only mode and you have to 
20525 \family sans
20526 Check
20527 \begin_inset space ~
20528 \end_inset
20529
20530 Out
20531 \begin_inset space ~
20532 \end_inset
20533
20534 For
20535 \begin_inset space ~
20536 \end_inset
20537
20538 Edit
20539 \family default
20540 , before making any changes to it.
20541  A document under revision control has a 
20542 \begin_inset Quotes eld
20543 \end_inset
20544
20545 [RCS:<version> <locker>]
20546 \begin_inset Quotes erd
20547 \end_inset
20548
20549  item tagged to the filename in the minibuffer.
20550 \end_layout
20551
20552 \begin_layout Standard
20553 RCS command that is run: 
20554 \family typewriter
20555 ci -q -u -i -t-"<initial description>" <file-name>
20556 \end_layout
20557
20558 \begin_layout Standard
20559 Read 
20560 \family typewriter
20561 man ci
20562 \family default
20563  to understand the switches.
20564  
20565 \end_layout
20566
20567 \begin_layout Subsubsection
20568
20569 \family sans
20570 Check In Changes
20571 \end_layout
20572
20573 \begin_layout Standard
20574 When you are finished editing a file, you check in your changes.
20575  When you do this, you are asked for a description of the changes.
20576  This is stored in the history log.
20577  The version number is bumped, your changes are applied to the master RCS
20578  file, the document is unlocked and set to Read-Only mode.
20579 \end_layout
20580
20581 \begin_layout Standard
20582 RCS command: 
20583 \family typewriter
20584 ci -q -u -m"<description>" <file-name>
20585 \end_layout
20586
20587 \begin_layout Subsubsection
20588
20589 \family sans
20590 Check Out For Edit
20591 \end_layout
20592
20593 \begin_layout Standard
20594 By doing this you lock the document so that only you can edit it.
20595  This will also make the document Read-Write only for you.
20596  You will usually continue editing for a while and when you are finished
20597  you check in your changes.
20598  The status line is changed to reflect that you have locked the file.
20599 \end_layout
20600
20601 \begin_layout Standard
20602 RCS command: 
20603 \family typewriter
20604 co -q -l <file-name>
20605 \end_layout
20606
20607 \begin_layout Subsubsection
20608
20609 \family sans
20610 Revert To Repository Version
20611 \end_layout
20612
20613 \begin_layout Standard
20614 This will discard all changes made to the document since the last check
20615  in.
20616  You get a warning before changes are discarded.
20617 \end_layout
20618
20619 \begin_layout Standard
20620 RCS command: 
20621 \family typewriter
20622 co -f -u<version> <file-name>
20623 \end_layout
20624
20625 \begin_layout Subsubsection
20626
20627 \family sans
20628 Copy
20629 \end_layout
20630
20631 \begin_layout Standard
20632 This will create a copy of the current document.
20633  Since RCS does not support copy operations natively, the version history
20634  is not preserved, and the copy is added as a new file.
20635  It requires a clean document without any changes since the last checkin.
20636  You are asked for a file name and a description of the copy operation.
20637  After that the copy is created, both locally and in the repository.
20638  If the parent directories of the copied and original document differ, all
20639  relative paths of included files of the copy are adjusted (like in 
20640 \family sans
20641 File\SpecialChar menuseparator
20642 Save As
20643 \family default
20644 \SpecialChar ldots
20645 ).
20646  Finally, the copy is loaded instead of the original document.
20647 \end_layout
20648
20649 \begin_layout Labeling
20650 \labelwidthstring 00.00.0000
20651 RCS
20652 \begin_inset space ~
20653 \end_inset
20654
20655 commands: 
20656 \begin_inset space ~
20657 \end_inset
20658
20659
20660 \begin_inset Newline newline
20661 \end_inset
20662
20663 Copy 
20664 \begin_inset Flex Code
20665 status collapsed
20666
20667 \begin_layout Plain Layout
20668
20669 \family typewriter
20670 \begin_inset Quotes eld
20671 \end_inset
20672
20673 <file-name>
20674 \begin_inset Quotes erd
20675 \end_inset
20676
20677
20678 \end_layout
20679
20680 \end_inset
20681
20682  to 
20683 \begin_inset Flex Code
20684 status collapsed
20685
20686 \begin_layout Plain Layout
20687
20688 \family typewriter
20689 \begin_inset Quotes eld
20690 \end_inset
20691
20692 <new-file-name>
20693 \begin_inset Quotes erd
20694 \end_inset
20695
20696
20697 \end_layout
20698
20699 \end_inset
20700
20701
20702 \begin_inset Newline newline
20703 \end_inset
20704
20705
20706 \begin_inset Flex Code
20707 status collapsed
20708
20709 \begin_layout Plain Layout
20710 ci -q -u 
20711 \family typewriter
20712 -i 
20713 \begin_inset Quotes eld
20714 \end_inset
20715
20716 <new-file-name>
20717 \begin_inset Quotes erd
20718 \end_inset
20719
20720
20721 \end_layout
20722
20723 \end_inset
20724
20725
20726 \end_layout
20727
20728 \begin_layout Subsubsection
20729
20730 \family sans
20731 Undo Last Checkin
20732 \end_layout
20733
20734 \begin_layout Standard
20735 This makes as if the last check in never happened.
20736  No changes are made to the document loaded into \SpecialChar LyX
20737 , but the last version
20738  is removed from the master RCS file.
20739 \end_layout
20740
20741 \begin_layout Standard
20742 RCS command: 
20743 \family typewriter
20744 rcs -o<version> <file-name>
20745 \end_layout
20746
20747 \begin_layout Subsubsection
20748
20749 \family sans
20750 Show History
20751 \end_layout
20752
20753 \begin_layout Standard
20754 This shows the complete history of the RCS document.
20755  The output of 
20756 \family typewriter
20757 rlog <file-name>
20758 \family default
20759  is shown in a browser.
20760  See 
20761 \family typewriter
20762 man rlog
20763 \family default
20764  for more info.
20765 \end_layout
20766
20767 \begin_layout Subsubsection
20768 Revision info
20769 \end_layout
20770
20771 \begin_layout Standard
20772 \SpecialChar LyX
20773  supports RCS version number, author name, date and time of last commit.
20774  All those are extracted from 
20775 \family typewriter
20776 rlog -r <file-name>
20777 \family default
20778 .
20779  See 
20780 \begin_inset CommandInset ref
20781 LatexCommand ref
20782 reference "subsec:VCS-Revision-Information"
20783
20784 \end_inset
20785
20786  for details.
20787 \end_layout
20788
20789 \begin_layout Subsection
20790 CVS commands in \SpecialChar LyX
20791
20792 \end_layout
20793
20794 \begin_layout Standard
20795 A subset of CVS operations is supported by \SpecialChar LyX
20796 .
20797  You can find the commands in the 
20798 \family sans
20799 File\SpecialChar menuseparator
20800 Version
20801 \begin_inset space ~
20802 \end_inset
20803
20804 Control
20805 \family default
20806  submenu.
20807  The version control system SVN is more powerful, so please use it instead
20808  of CVS if possible.
20809 \end_layout
20810
20811 \begin_layout Subsubsection
20812
20813 \family sans
20814 General CVS usage
20815 \end_layout
20816
20817 \begin_layout Standard
20818 If you start from scratch with CVS you have to create your repository and
20819  checkout the working copy with external tools.
20820  If you're using a client-server setup you may need to login before doing
20821  the first repository checkout.
20822 \end_layout
20823
20824 \begin_layout Standard
20825 If your documents are under revision control and others are using the same
20826  repository problems arise when different changes to the same document at
20827  the same location happen.
20828  Standard CVS repositories don't operate with a file locking mechanism.
20829  This may be surprising, but conflicts only occur if people disagree on
20830  the proper content of the same part of a document.
20831  So, if co-workers are used to communicate regularly, these conflicts occur
20832  rarely.
20833  If they don't communicate they have a fundamental problem anyway.
20834  Nevertheless some people like to work with so called 
20835 \begin_inset Quotes eld
20836 \end_inset
20837
20838 reserved checkouts
20839 \begin_inset Quotes erd
20840 \end_inset
20841
20842 .
20843  If they do so the working copy of all files is readonly when checked out
20844  first and the user starts editing after using a special command to make
20845  the working copy writable.
20846  When the changes are checked in the working copy returns to readonly state.
20847  With \SpecialChar LyX
20848  one has to edit the 
20849 \begin_inset Flex Code
20850 status collapsed
20851
20852 \begin_layout Plain Layout
20853 .cvsrc
20854 \end_layout
20855
20856 \end_inset
20857
20858  file and add the line 
20859 \begin_inset Flex Code
20860 status collapsed
20861
20862 \begin_layout Plain Layout
20863 cvs -r
20864 \end_layout
20865
20866 \end_inset
20867
20868  to work with reserved checkouts.
20869  The benefit is the possibility to see who is using a writable copy of some
20870  document.
20871  It's not guaranteed only one user makes a copy writable.
20872 \end_layout
20873
20874 \begin_layout Standard
20875 \SpecialChar LyX
20876  tries to guess if you're using reserved or non-reserved checkouts.
20877  If your working copy is readonly or it is writable and an additional copy
20878  of your document exists in the CVS/Base sub-directory a reserved otherwise
20879  a non-reserved checkout is assumed.
20880  When a reserved checkout is detected you have to use 
20881 \begin_inset Flex Noun
20882 status collapsed
20883
20884 \begin_layout Plain Layout
20885 Check Out
20886 \end_layout
20887
20888 \end_inset
20889
20890  to make your working copy writable if it's readonly.
20891  After doing so the 
20892 \begin_inset Flex Noun
20893 status collapsed
20894
20895 \begin_layout Plain Layout
20896 Check In
20897 \end_layout
20898
20899 \end_inset
20900
20901  operation is possible and that makes your working copy readonly again after
20902  transferring your changes to the repository.
20903 \end_layout
20904
20905 \begin_layout Standard
20906 More information about CVS can be found here 
20907 \begin_inset Flex URL
20908 status collapsed
20909
20910 \begin_layout Plain Layout
20911
20912 http://www.nongnu.org/cvs
20913 \end_layout
20914
20915 \end_inset
20916
20917  and here 
20918 \begin_inset Flex URL
20919 status collapsed
20920
20921 \begin_layout Plain Layout
20922
20923 http://ximbiot.com/cvs
20924 \end_layout
20925
20926 \end_inset
20927
20928 .
20929 \end_layout
20930
20931 \begin_layout Standard
20932 Read 
20933 \family typewriter
20934 man cvs
20935 \family default
20936  to understand the sub-commands and the switches mentioned below.
20937 \end_layout
20938
20939 \begin_layout Subsubsection
20940
20941 \family sans
20942 Register
20943 \end_layout
20944
20945 \begin_layout Standard
20946 If your document is not under revision control, this is the only item shown
20947  in the menu.
20948  And if it is under revision control, the 
20949 \family sans
20950 Register
20951 \family default
20952  item is not visible.
20953  
20954 \end_layout
20955
20956 \begin_layout Standard
20957 This command registers in CVS your document 
20958 \begin_inset Flex Strong
20959 status collapsed
20960
20961 \begin_layout Plain Layout
20962
20963 \emph on
20964 only
20965 \end_layout
20966
20967 \end_inset
20968
20969  in the case you have already the documents directory under CVS control
20970  (in particular 
20971 \family typewriter
20972 CVS/Entries
20973 \family default
20974  file exists).
20975  This means you have to create or checkout the archive by yourself using
20976  external tools.
20977  (In case you forget that step \SpecialChar LyX
20978  registers the document with RCS.)
20979 \end_layout
20980
20981 \begin_layout Standard
20982 Then you are asked interactively to supply an initial description of the
20983  document.
20984  Don't forget that registered file is not yet checked in.
20985 \end_layout
20986
20987 \begin_layout Standard
20988 CVS command that is run: 
20989 \family typewriter
20990 cvs -q add -m"<entered message>" "<file-name>"
20991 \end_layout
20992
20993 \begin_layout Standard
20994 The term 
20995 \family typewriter
20996 "<file-name>"
20997 \family default
20998  above and for all other CVS commands is an abbreviation for 
20999 \begin_inset Quotes eld
21000 \end_inset
21001
21002 change the current working directory to file location and use the file name
21003  without path component as argument
21004 \begin_inset Quotes erd
21005 \end_inset
21006
21007 .
21008 \end_layout
21009
21010 \begin_layout Subsubsection
21011
21012 \family sans
21013 Check In Changes
21014 \end_layout
21015
21016 \begin_layout Standard
21017 When you are finished editing a file, you commit your changes.
21018  When you do this and you had changed the document, you are asked for a
21019  description of the changes.
21020  After that changes are written to the repository.
21021  In case you didn't change the document and a reserved checkout is detected
21022  the reservation made on 
21023 \begin_inset Flex Noun
21024 status collapsed
21025
21026 \begin_layout Plain Layout
21027 Check Out
21028 \end_layout
21029
21030 \end_inset
21031
21032  is undone.
21033 \end_layout
21034
21035 \begin_layout Labeling
21036 \labelwidthstring 00.00.0000
21037 CVS
21038 \begin_inset space ~
21039 \end_inset
21040
21041 command: 
21042 \begin_inset space ~
21043 \end_inset
21044
21045
21046 \begin_inset Newline newline
21047 \end_inset
21048
21049
21050 \begin_inset Flex Code
21051 status collapsed
21052
21053 \begin_layout Plain Layout
21054 cvs 
21055 \family typewriter
21056 -q commit -m"<description>" "<file-name>"
21057 \end_layout
21058
21059 \end_inset
21060
21061  or
21062 \begin_inset Newline newline
21063 \end_inset
21064
21065
21066 \begin_inset Flex Code
21067 status collapsed
21068
21069 \begin_layout Plain Layout
21070 cvs -q unedit 
21071 \family typewriter
21072 "<file-name>"
21073 \end_layout
21074
21075 \end_inset
21076
21077
21078 \end_layout
21079
21080 \begin_layout Subsubsection
21081
21082 \family sans
21083 Check Out Changes
21084 \end_layout
21085
21086 \begin_layout Standard
21087 When you are sharing a repository with others, you may have to incorporate
21088  their changes into your working copy.
21089 \end_layout
21090
21091 \begin_layout Standard
21092 CVS command: 
21093 \family typewriter
21094 cvs -q update "<file-name>"
21095 \end_layout
21096
21097 \begin_layout Standard
21098 If a readonly checkout is detected the working copy is made writable and
21099  reserved.
21100 \end_layout
21101
21102 \begin_layout Standard
21103 CVS command: 
21104 \family typewriter
21105 cvs -q edit "<file-name>"
21106 \end_layout
21107
21108 \begin_layout Subsubsection
21109
21110 \family sans
21111 Revert To Repository Version
21112 \end_layout
21113
21114 \begin_layout Standard
21115 This will discard all changes made to the document since the last check
21116  in.
21117  You get a warning before changes are discarded.
21118  Firstly the file is deleted, secondly CVS update command is run.
21119 \end_layout
21120
21121 \begin_layout Standard
21122 CVS command: 
21123 \family typewriter
21124 cvs -q update "<file-name>"
21125 \end_layout
21126
21127 \begin_layout Standard
21128 If a reserved checkout is detected and the working copy has no changes only
21129  the reservation is undone.
21130 \end_layout
21131
21132 \begin_layout Standard
21133 CVS command: 
21134 \family typewriter
21135 cvs -q unedit "<file-name>"
21136 \end_layout
21137
21138 \begin_layout Subsubsection
21139
21140 \family sans
21141 Copy
21142 \end_layout
21143
21144 \begin_layout Standard
21145 This will create a copy of the current document.
21146  Since CVS does not support copy operations natively, the version history
21147  is not preserved, and the copy is added as a new file.
21148  It requires a clean document without any changes since the last checkin.
21149  You are asked for a file name and a description of the copy operation.
21150  After that the copy is created, both locally and in the repository.
21151  If the parent directories of the copied and original document differ, all
21152  relative paths of included files of the copy are adjusted (like in 
21153 \family sans
21154 File\SpecialChar menuseparator
21155 Save As
21156 \family default
21157 \SpecialChar ldots
21158 ).
21159  Finally, the copy is loaded instead of the original document.
21160 \end_layout
21161
21162 \begin_layout Labeling
21163 \labelwidthstring 00.00.0000
21164 CVS
21165 \begin_inset space ~
21166 \end_inset
21167
21168 commands: 
21169 \begin_inset space ~
21170 \end_inset
21171
21172
21173 \begin_inset Newline newline
21174 \end_inset
21175
21176 Copy 
21177 \begin_inset Flex Code
21178 status collapsed
21179
21180 \begin_layout Plain Layout
21181
21182 \family typewriter
21183 \begin_inset Quotes eld
21184 \end_inset
21185
21186 <file-name>
21187 \begin_inset Quotes erd
21188 \end_inset
21189
21190
21191 \end_layout
21192
21193 \end_inset
21194
21195  to 
21196 \begin_inset Flex Code
21197 status collapsed
21198
21199 \begin_layout Plain Layout
21200
21201 \family typewriter
21202 \begin_inset Quotes eld
21203 \end_inset
21204
21205 <new-file-name>
21206 \begin_inset Quotes erd
21207 \end_inset
21208
21209
21210 \end_layout
21211
21212 \end_inset
21213
21214
21215 \begin_inset Newline newline
21216 \end_inset
21217
21218
21219 \begin_inset Flex Code
21220 status collapsed
21221
21222 \begin_layout Plain Layout
21223 cvs -q add 
21224 \family typewriter
21225
21226 \begin_inset Quotes eld
21227 \end_inset
21228
21229 <new-file-name>
21230 \begin_inset Quotes erd
21231 \end_inset
21232
21233
21234 \end_layout
21235
21236 \end_inset
21237
21238
21239 \end_layout
21240
21241 \begin_layout Subsubsection
21242
21243 \family sans
21244 Rename
21245 \end_layout
21246
21247 \begin_layout Standard
21248 This will rename the current document.
21249  Since CVS does not support rename operations natively, the version history
21250  is not preserved, the renamed document is added as a new file, and the
21251  original document is deleted.
21252  It requires a clean document without any changes since the last checkin.
21253  You are asked for a file name and a description of the rename operation.
21254  After that the document is renamed, both locally and in the repository.
21255  If the parent directories of the new and old file names differ, all relative
21256  paths of included files are adjusted (like in 
21257 \family sans
21258 File\SpecialChar menuseparator
21259 Save As
21260 \family default
21261 \SpecialChar ldots
21262 ).
21263  Finally, the document is reloaded using the new name.
21264 \end_layout
21265
21266 \begin_layout Labeling
21267 \labelwidthstring 00.00.0000
21268 CVS
21269 \begin_inset space ~
21270 \end_inset
21271
21272 commands: 
21273 \begin_inset space ~
21274 \end_inset
21275
21276
21277 \begin_inset Newline newline
21278 \end_inset
21279
21280 Rename 
21281 \begin_inset Flex Code
21282 status collapsed
21283
21284 \begin_layout Plain Layout
21285
21286 \family typewriter
21287 \begin_inset Quotes eld
21288 \end_inset
21289
21290 <file-name>
21291 \begin_inset Quotes erd
21292 \end_inset
21293
21294
21295 \end_layout
21296
21297 \end_inset
21298
21299  to 
21300 \begin_inset Flex Code
21301 status collapsed
21302
21303 \begin_layout Plain Layout
21304
21305 \family typewriter
21306 \begin_inset Quotes eld
21307 \end_inset
21308
21309 <new-file-name>
21310 \begin_inset Quotes erd
21311 \end_inset
21312
21313
21314 \end_layout
21315
21316 \end_inset
21317
21318
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 cvs -q add 
21328 \family typewriter
21329
21330 \begin_inset Quotes eld
21331 \end_inset
21332
21333 <new-file-name>
21334 \begin_inset Quotes erd
21335 \end_inset
21336
21337
21338 \end_layout
21339
21340 \end_inset
21341
21342
21343 \begin_inset Newline newline
21344 \end_inset
21345
21346
21347 \begin_inset Flex Code
21348 status collapsed
21349
21350 \begin_layout Plain Layout
21351 cvs -q remove 
21352 \family typewriter
21353
21354 \begin_inset Quotes eld
21355 \end_inset
21356
21357 <file-name>
21358 \begin_inset Quotes erd
21359 \end_inset
21360
21361
21362 \end_layout
21363
21364 \end_inset
21365
21366
21367 \end_layout
21368
21369 \begin_layout Subsubsection
21370 Update of the local directory checkout from repository
21371 \end_layout
21372
21373 \begin_layout Standard
21374 Once your documents gets more complex, containing sub-documents and pictures,
21375  including external 
21376 \begin_inset Flex Code
21377 status collapsed
21378
21379 \begin_layout Plain Layout
21380 .tex
21381 \end_layout
21382
21383 \end_inset
21384
21385  files and so on using version control becomes more complicated.
21386  \SpecialChar LyX
21387  supports updating the whole tree in which resides the document.
21388  This become especially useful once you cooperate with people which neither
21389  have detailed knowledge about CVS usage nor they have ambition to commit
21390  additional material to the repository.
21391  You have to organize the files structure so that all external files are
21392  in the same directory or subdirectories of the document.
21393  It's good practice anyway to store multipart documents in an extra directory.
21394 \end_layout
21395
21396 \begin_layout Standard
21397 The 
21398 \begin_inset Flex Code
21399 status collapsed
21400
21401 \begin_layout Plain Layout
21402 Update local directory from repository
21403 \end_layout
21404
21405 \end_inset
21406
21407  command updates the whole directory.
21408  If local changes are detected user is warned before update starts.
21409  In case of merge conflicts both versions of the conflicting document parts
21410  are placed in the final document.
21411  You have to review and correct the result of the merge.
21412  You'll find the conflicts enclosed in pairs of 
21413 \begin_inset Flex Code
21414 status collapsed
21415
21416 \begin_layout Plain Layout
21417 <<<<<<<
21418 \end_layout
21419
21420 \end_inset
21421
21422  and 
21423 \begin_inset Flex Code
21424 status collapsed
21425
21426 \begin_layout Plain Layout
21427 >>>>>>>
21428 \end_layout
21429
21430 \end_inset
21431
21432  separated by 
21433 \begin_inset Flex Code
21434 status collapsed
21435
21436 \begin_layout Plain Layout
21437 =======
21438 \end_layout
21439
21440 \end_inset
21441
21442 .
21443  The first part is your version as before the update operation with the
21444  document name prepended.
21445  The second one is the repository version with the version number after
21446  the sequence of 
21447 \begin_inset Flex Code
21448 status collapsed
21449
21450 \begin_layout Plain Layout
21451 >
21452 \end_layout
21453
21454 \end_inset
21455
21456  signs.
21457 \end_layout
21458
21459 \begin_layout Labeling
21460 \labelwidthstring 00.00.0000
21461 CVS
21462 \begin_inset space ~
21463 \end_inset
21464
21465 commands: 
21466 \begin_inset space ~
21467 \end_inset
21468
21469
21470 \begin_inset Newline newline
21471 \end_inset
21472
21473
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 cd $path; cvs diff 
21479 \family typewriter
21480 "."
21481 \end_layout
21482
21483 \end_inset
21484
21485  (Ask if changes are detected.)
21486 \begin_inset Newline newline
21487 \end_inset
21488
21489
21490 \begin_inset Flex Code
21491 status collapsed
21492
21493 \begin_layout Plain Layout
21494 cd $path; cvs -q update 
21495 \family typewriter
21496 "."
21497 \end_layout
21498
21499 \end_inset
21500
21501
21502 \end_layout
21503
21504 \begin_layout Standard
21505 where 
21506 \begin_inset Flex Code
21507 status collapsed
21508
21509 \begin_layout Plain Layout
21510 $path
21511 \end_layout
21512
21513 \end_inset
21514
21515  stands for the path to the document.
21516 \end_layout
21517
21518 \begin_layout Subsubsection
21519
21520 \family sans
21521 Show History
21522 \end_layout
21523
21524 \begin_layout Standard
21525 This shows the complete history of the CVS document.
21526  The output of 
21527 \family typewriter
21528 cvs log "<file-name>"
21529 \family default
21530  is shown in a browser.
21531 \end_layout
21532
21533 \begin_layout Subsubsection
21534 Revision info
21535 \end_layout
21536
21537 \begin_layout Standard
21538 \SpecialChar LyX
21539  supports CVS version number, author name, date and time of last commit.
21540  All those are extracted from 
21541 \family typewriter
21542 cvs log -r <file-name>
21543 \family default
21544 .
21545  See 
21546 \begin_inset CommandInset ref
21547 LatexCommand ref
21548 reference "subsec:VCS-Revision-Information"
21549
21550 \end_inset
21551
21552  for details.
21553 \end_layout
21554
21555 \begin_layout Subsection
21556 SVN commands in \SpecialChar LyX
21557
21558 \end_layout
21559
21560 \begin_layout Standard
21561 SVN is now partially supported by \SpecialChar LyX
21562 .
21563  You can find the commands in the 
21564 \family sans
21565 File\SpecialChar menuseparator
21566 Version
21567 \begin_inset space ~
21568 \end_inset
21569
21570 Control
21571 \family default
21572  submenu.
21573  Please note that if you use password protected access to repository via
21574  ssh, you will be asked in terminal window.
21575  \SpecialChar LyX
21576  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21577 \begin_inset Foot
21578 status open
21579
21580 \begin_layout Plain Layout
21581 Most of the commands will work with 1.4 too, see 
21582 \begin_inset CommandInset ref
21583 LatexCommand ref
21584 reference "subsec:SVN-Repo-Update"
21585
21586 \end_inset
21587
21588 .
21589  There seems to be currently unresolved permissions problem under SVN 1.8
21590  with reverting changes when file is locked.
21591 \end_layout
21592
21593 \end_inset
21594
21595
21596 \end_layout
21597
21598 \begin_layout Subsubsection
21599
21600 \family sans
21601 Register
21602 \end_layout
21603
21604 \begin_layout Standard
21605 If your document is not under revision control, this is the only item shown
21606  in the menu.
21607  And if it is under revision control, the 
21608 \family sans
21609 Register
21610 \family default
21611  item is not visible.
21612 \end_layout
21613
21614 \begin_layout Standard
21615 This command registers in SVN your document ONLY in case you have already
21616  the documents directory under SVN control (in particular 
21617 \family typewriter
21618 .svn/entries
21619 \family default
21620  file exists).
21621  This means you have to checkout the archive by yourself.
21622 \end_layout
21623
21624 \begin_layout Standard
21625 Then you are asked interactively to supply an initial description of the
21626  document.
21627  Don't forget that registered file is not yet commited.
21628 \end_layout
21629
21630 \begin_layout Standard
21631 SVN command that is run: 
21632 \family typewriter
21633 svn add -q 
21634 \begin_inset Quotes eld
21635 \end_inset
21636
21637 <file-name>
21638 \begin_inset Quotes erd
21639 \end_inset
21640
21641
21642 \end_layout
21643
21644 \begin_layout Standard
21645 Read 
21646 \family typewriter
21647 man svn
21648 \family default
21649  to understand the switches.
21650 \end_layout
21651
21652 \begin_layout Subsubsection
21653
21654 \family sans
21655 Check In Changes
21656 \end_layout
21657
21658 \begin_layout Standard
21659 When you are finished editing a file, you commit your changes.
21660  When you do this, you are asked for a description of the changes.
21661  After that changes are commited.
21662 \end_layout
21663
21664 \begin_layout Standard
21665 SVN command:
21666 \begin_inset Foot
21667 status collapsed
21668
21669 \begin_layout Plain Layout
21670 In case locking is not enabled.
21671  See Section 
21672 \begin_inset CommandInset ref
21673 LatexCommand ref
21674 reference "subsec:SVN-File-Locking"
21675
21676 \end_inset
21677
21678 .
21679 \end_layout
21680
21681 \end_inset
21682
21683  
21684 \family typewriter
21685 svn commit -q -m"<description>" <file-name>
21686 \end_layout
21687
21688 \begin_layout Subsubsection
21689
21690 \family sans
21691 Check Out For Edit
21692 \end_layout
21693
21694 \begin_layout Standard
21695 Updates the changes of this file from the repository.
21696  Be sure you understand SVN merging and conflicts resolving before using
21697  this function, because all conflicts has to be resolved manually by you!
21698 \end_layout
21699
21700 \begin_layout Standard
21701 SVN command:
21702 \begin_inset Foot
21703 status collapsed
21704
21705 \begin_layout Plain Layout
21706 Ditto.
21707 \end_layout
21708
21709 \end_inset
21710
21711  
21712 \family typewriter
21713 svn update --non-interactive 
21714 \begin_inset Quotes eld
21715 \end_inset
21716
21717 <file-name>
21718 \begin_inset Quotes erd
21719 \end_inset
21720
21721
21722 \end_layout
21723
21724 \begin_layout Subsubsection
21725
21726 \family sans
21727 Revert To Repository Version
21728 \end_layout
21729
21730 \begin_layout Standard
21731 This will discard all changes made to the document since the last check
21732  in.
21733  You get a warning before changes are discarded.
21734 \end_layout
21735
21736 \begin_layout Standard
21737 SVN command: 
21738 \family typewriter
21739 svn revert -q 
21740 \begin_inset Quotes eld
21741 \end_inset
21742
21743 <file-name>
21744 \begin_inset Quotes erd
21745 \end_inset
21746
21747
21748 \end_layout
21749
21750 \begin_layout Subsubsection
21751
21752 \family sans
21753 Copy
21754 \end_layout
21755
21756 \begin_layout Standard
21757 This will create a copy of the current document including the version history.
21758  It requires a clean document without any changes since the last checkin.
21759  You are asked for a file name and a description of the copy operation.
21760  After that the copy is created, both locally and in the repository.
21761  If the parent directories of the copied and original document differ, all
21762  relative paths of included files of the copy are adjusted (like in 
21763 \family sans
21764 File\SpecialChar menuseparator
21765 Save As
21766 \family default
21767 \SpecialChar ldots
21768 ).
21769  Finally, the copy is loaded instead of the original document.
21770 \end_layout
21771
21772 \begin_layout Labeling
21773 \labelwidthstring 00.00.0000
21774 SVN
21775 \begin_inset space ~
21776 \end_inset
21777
21778 commands: 
21779 \begin_inset space ~
21780 \end_inset
21781
21782
21783 \begin_inset Newline newline
21784 \end_inset
21785
21786
21787 \begin_inset Flex Code
21788 status collapsed
21789
21790 \begin_layout Plain Layout
21791 svn copy -q 
21792 \family typewriter
21793
21794 \begin_inset Quotes eld
21795 \end_inset
21796
21797 <file-name>
21798 \begin_inset Quotes erd
21799 \end_inset
21800
21801  
21802 \begin_inset Quotes eld
21803 \end_inset
21804
21805 <new-file-name>
21806 \begin_inset Quotes erd
21807 \end_inset
21808
21809
21810 \end_layout
21811
21812 \end_inset
21813
21814
21815 \begin_inset Newline newline
21816 \end_inset
21817
21818
21819 \begin_inset Flex Code
21820 status collapsed
21821
21822 \begin_layout Plain Layout
21823 svn commit
21824 \end_layout
21825
21826 \end_inset
21827
21828
21829 \end_layout
21830
21831 \begin_layout Subsubsection
21832
21833 \family sans
21834 Rename
21835 \end_layout
21836
21837 \begin_layout Standard
21838 This will rename the current document including the version history.
21839  It requires a clean document without any changes since the last checkin.
21840  You are asked for a file name and a description of the rename operation.
21841  After that the document is renamed, both locally and in the repository.
21842  If the parent directories of the new and old file names differ, all relative
21843  paths of included files are adjusted (like in 
21844 \family sans
21845 File\SpecialChar menuseparator
21846 Save As
21847 \family default
21848 \SpecialChar ldots
21849 ).
21850  Finally, the document is reloaded using the new name.
21851 \end_layout
21852
21853 \begin_layout Labeling
21854 \labelwidthstring 00.00.0000
21855 SVN
21856 \begin_inset space ~
21857 \end_inset
21858
21859 commands: 
21860 \begin_inset space ~
21861 \end_inset
21862
21863
21864 \begin_inset Newline newline
21865 \end_inset
21866
21867
21868 \begin_inset Flex Code
21869 status collapsed
21870
21871 \begin_layout Plain Layout
21872 svn move -q 
21873 \family typewriter
21874
21875 \begin_inset Quotes eld
21876 \end_inset
21877
21878 <file-name>
21879 \begin_inset Quotes erd
21880 \end_inset
21881
21882  
21883 \begin_inset Quotes eld
21884 \end_inset
21885
21886 <new-file-name>
21887 \begin_inset Quotes erd
21888 \end_inset
21889
21890
21891 \end_layout
21892
21893 \end_inset
21894
21895
21896 \begin_inset Newline newline
21897 \end_inset
21898
21899
21900 \begin_inset Flex Code
21901 status collapsed
21902
21903 \begin_layout Plain Layout
21904 svn commit
21905 \end_layout
21906
21907 \end_inset
21908
21909
21910 \end_layout
21911
21912 \begin_layout Subsubsection
21913 \begin_inset CommandInset label
21914 LatexCommand label
21915 name "subsec:SVN-Repo-Update"
21916
21917 \end_inset
21918
21919 Update of the local directory checkout from repository
21920 \begin_inset Foot
21921 status collapsed
21922
21923 \begin_layout Plain Layout
21924 Note that this command will work only with subversion 
21925 \begin_inset Formula $\geqq1.5$
21926 \end_inset
21927
21928
21929 \end_layout
21930
21931 \end_inset
21932
21933
21934 \end_layout
21935
21936 \begin_layout Standard
21937 All the commands above have one shortcomming - they deal with the current
21938  document only.
21939  Once your document contains pictures, includes external 
21940 \begin_inset Flex Code
21941 status collapsed
21942
21943 \begin_layout Plain Layout
21944 .tex
21945 \end_layout
21946
21947 \end_inset
21948
21949  files and so on administration becomes more complicated.
21950  \SpecialChar LyX
21951  now supports updating the whole tree in which resides the document
21952 \begin_inset Foot
21953 status collapsed
21954
21955 \begin_layout Plain Layout
21956 One need to organize the files structure so that all external files are
21957  in the same directory or subdirectories of the document.
21958  
21959 \end_layout
21960
21961 \end_inset
21962
21963 .
21964  This become especially useful once you cooperate with people which neither
21965  know about subversion management nor they have ambition to commit additional
21966  material to the repository.
21967  
21968 \end_layout
21969
21970 \begin_layout Standard
21971 \begin_inset Flex Code
21972 status collapsed
21973
21974 \begin_layout Plain Layout
21975 Update local directory from repository
21976 \end_layout
21977
21978 \end_inset
21979
21980  command updates the whole directory and in case of merge conflicts local
21981  version of the files are left, so no unintended data loss occurs.
21982  If local changes are detected user is warned before update starts.
21983 \end_layout
21984
21985 \begin_layout Labeling
21986 \labelwidthstring 00.00.0000
21987 SVN
21988 \begin_inset space ~
21989 \end_inset
21990
21991 commands: 
21992 \begin_inset space ~
21993 \end_inset
21994
21995
21996 \begin_inset Newline newline
21997 \end_inset
21998
21999
22000 \begin_inset Flex Code
22001 status collapsed
22002
22003 \begin_layout Plain Layout
22004 svn diff $path
22005 \end_layout
22006
22007 \end_inset
22008
22009  (Ask if changes are detected.)
22010 \begin_inset Newline newline
22011 \end_inset
22012
22013
22014 \begin_inset Flex Code
22015 status collapsed
22016
22017 \begin_layout Plain Layout
22018 svn update –accept mine-full $path
22019 \end_layout
22020
22021 \end_inset
22022
22023
22024 \end_layout
22025
22026 \begin_layout Standard
22027 where 
22028 \begin_inset Flex Code
22029 status collapsed
22030
22031 \begin_layout Plain Layout
22032 $path
22033 \end_layout
22034
22035 \end_inset
22036
22037  stands for the path to the document.
22038 \end_layout
22039
22040 \begin_layout Subsubsection
22041
22042 \family sans
22043 Show History
22044 \end_layout
22045
22046 \begin_layout Standard
22047 This shows the complete history of the SVN document.
22048  The output of 
22049 \family typewriter
22050 svn log 
22051 \begin_inset Quotes eld
22052 \end_inset
22053
22054 <file-name>
22055 \begin_inset Quotes erd
22056 \end_inset
22057
22058
22059 \family default
22060  is shown in a browser.
22061 \end_layout
22062
22063 \begin_layout Subsubsection
22064 File Locking
22065 \begin_inset CommandInset label
22066 LatexCommand label
22067 name "subsec:SVN-File-Locking"
22068
22069 \end_inset
22070
22071
22072 \end_layout
22073
22074 \begin_layout Standard
22075 The file exchange through various revision control systems brings the problem
22076  of merge conflicts in case two different users try to edit the same (parts
22077  of) document.
22078  When such a conflict happens it needs manual resolving and one reasonable
22079  alternative is to provide some kind of locking mechanism, which guarantees
22080  that only one user is allowed to edit file at the given time.
22081 \end_layout
22082
22083 \begin_layout Standard
22084 SVN has two such mechanisms to provide mutual exclusivity for file access
22085  - locks and automatic setting of write permissions (see sec.
22086  
22087 \begin_inset CommandInset ref
22088 LatexCommand ref
22089 reference "subsec:Automatical-Locking-Property"
22090
22091 \end_inset
22092
22093 ) based on 
22094 \begin_inset Flex Code
22095 status collapsed
22096
22097 \begin_layout Plain Layout
22098 svn:needs-lock
22099 \end_layout
22100
22101 \end_inset
22102
22103  file svn property
22104 \begin_inset Foot
22105 status open
22106
22107 \begin_layout Plain Layout
22108 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
22109 \end_layout
22110
22111 \end_inset
22112
22113 .
22114  If this property is detected for a given document \SpecialChar LyX
22115  starts to use SVN locks
22116  for document editing automatically and the whole check-in/out mechanism
22117  switches to the same regimen as for RCS.
22118  This in particular means there are two different modes of file use in \SpecialChar LyX
22119 :
22120 \end_layout
22121
22122 \begin_layout Itemize
22123 Unlocked state.
22124  The loaded file is in the read-only mode.
22125  For editing on needs to check-out.
22126  
22127 \emph on
22128 Check-out
22129 \emph default
22130  consists of updating from the repository and gaining write lock.
22131  If the lock is not possible to obtain, we remain in unlocked state.
22132 \end_layout
22133
22134 \begin_layout Itemize
22135 Locked state.
22136  The loaded file is in the 'normal' edit mode.
22137  No other user is allowed to edit the file.
22138  
22139 \emph on
22140 Check-in
22141 \emph default
22142  consists of commiting changes and releasing write-lock.
22143  If no changes have been made to the document, no commit will be produced
22144 \begin_inset Foot
22145 status collapsed
22146
22147 \begin_layout Plain Layout
22148 Don't be puzzled by the fact that you will be asked for commit message anyway.
22149 \end_layout
22150
22151 \end_inset
22152
22153  and only the write-lock will be released.
22154 \end_layout
22155
22156 \begin_layout Standard
22157 SVN commands:
22158 \end_layout
22159
22160 \begin_layout Labeling
22161 \labelwidthstring 00.00.0000
22162 Check-in:
22163 \family typewriter
22164  svn commit -q -m"<description>" "<file-name>"
22165 \begin_inset Newline newline
22166 \end_inset
22167
22168 svn unlock "<file-name>"
22169 \end_layout
22170
22171 \begin_layout Labeling
22172 \labelwidthstring 00.00.0000
22173 Check-out: 
22174 \family typewriter
22175 svn update "<file-name>"
22176 \begin_inset Newline newline
22177 \end_inset
22178
22179 svn lock "<file-name>"
22180 \end_layout
22181
22182 \begin_layout Subsubsection
22183
22184 \family typewriter
22185 \begin_inset CommandInset label
22186 LatexCommand label
22187 name "subsec:Automatical-Locking-Property"
22188
22189 \end_inset
22190
22191
22192 \family default
22193 Automatic Locking Property
22194 \end_layout
22195
22196 \begin_layout Standard
22197 The above mentioned automatic setting of write permissions of the .lyx file
22198  can be set through
22199 \family sans
22200  File\SpecialChar menuseparator
22201 Version
22202 \begin_inset space ~
22203 \end_inset
22204
22205 Control\SpecialChar menuseparator
22206 Toggle locking property
22207 \family default
22208 .
22209  This command is active only when the file is not locked on the svn server
22210  (i.e.
22211  you need to check-out before proceeding).
22212 \end_layout
22213
22214 \begin_layout Labeling
22215 \labelwidthstring 00.00.0000
22216 SVN
22217 \begin_inset space ~
22218 \end_inset
22219
22220 commands:
22221 \end_layout
22222
22223 \begin_layout Labeling
22224 \labelwidthstring 00.00.0000
22225 Set:
22226 \family typewriter
22227  svn propset svn:needs-lock ON "<file-name>"
22228 \end_layout
22229
22230 \begin_layout Labeling
22231 \labelwidthstring 00.00.0000
22232 Unset: 
22233 \family typewriter
22234 svn propdel svn:needs-lock "<file-name>"
22235 \end_layout
22236
22237 \begin_layout Subsubsection
22238 \begin_inset CommandInset label
22239 LatexCommand label
22240 name "subsec:VCS-Revision-Information"
22241
22242 \end_inset
22243
22244 Revision Information in Documents
22245 \end_layout
22246
22247 \begin_layout Standard
22248 There are more possibilities how to activate revision information in our
22249  document.
22250 \end_layout
22251
22252 \begin_layout Itemize
22253 \SpecialChar LyX
22254  supports directly:
22255 \end_layout
22256
22257 \begin_deeper
22258 \begin_layout Itemize
22259 tree revision information (
22260 \begin_inset Flex Code
22261 status collapsed
22262
22263 \begin_layout Plain Layout
22264 vcs-tree-revision
22265 \end_layout
22266
22267 \end_inset
22268
22269 ).
22270  The result is the output of the 
22271 \begin_inset Flex Code
22272 status collapsed
22273
22274 \begin_layout Plain Layout
22275 svnversion
22276 \end_layout
22277
22278 \end_inset
22279
22280  command, the following table gives you an idea, how to read the results.
22281 \end_layout
22282
22283 \begin_layout Standard
22284 \align center
22285 \begin_inset Tabular
22286 <lyxtabular version="3" rows="6" columns="2">
22287 <features tabularvalignment="middle">
22288 <column alignment="center" valignment="top">
22289 <column alignment="center" valignment="top">
22290 <row>
22291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22292 \begin_inset Text
22293
22294 \begin_layout Plain Layout
22295 Output
22296 \end_layout
22297
22298 \end_inset
22299 </cell>
22300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22301 \begin_inset Text
22302
22303 \begin_layout Plain Layout
22304 Meaning
22305 \end_layout
22306
22307 \end_inset
22308 </cell>
22309 </row>
22310 <row>
22311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22312 \begin_inset Text
22313
22314 \begin_layout Plain Layout
22315 4123:4168
22316 \end_layout
22317
22318 \end_inset
22319 </cell>
22320 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22321 \begin_inset Text
22322
22323 \begin_layout Plain Layout
22324 mixed revision working copy
22325 \end_layout
22326
22327 \end_inset
22328 </cell>
22329 </row>
22330 <row>
22331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22332 \begin_inset Text
22333
22334 \begin_layout Plain Layout
22335 4168M
22336 \end_layout
22337
22338 \end_inset
22339 </cell>
22340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22341 \begin_inset Text
22342
22343 \begin_layout Plain Layout
22344 modified working copy
22345 \end_layout
22346
22347 \end_inset
22348 </cell>
22349 </row>
22350 <row>
22351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22352 \begin_inset Text
22353
22354 \begin_layout Plain Layout
22355 4123S
22356 \end_layout
22357
22358 \end_inset
22359 </cell>
22360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22361 \begin_inset Text
22362
22363 \begin_layout Plain Layout
22364 switched working copy
22365 \end_layout
22366
22367 \end_inset
22368 </cell>
22369 </row>
22370 <row>
22371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22372 \begin_inset Text
22373
22374 \begin_layout Plain Layout
22375 4123P
22376 \end_layout
22377
22378 \end_inset
22379 </cell>
22380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22381 \begin_inset Text
22382
22383 \begin_layout Plain Layout
22384 partial working copy, from a sparse checkout
22385 \end_layout
22386
22387 \end_inset
22388 </cell>
22389 </row>
22390 <row>
22391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22392 \begin_inset Text
22393
22394 \begin_layout Plain Layout
22395 4123:4168MS
22396 \end_layout
22397
22398 \end_inset
22399 </cell>
22400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22401 \begin_inset Text
22402
22403 \begin_layout Plain Layout
22404 mixed revision, modified, switched working copy
22405 \end_layout
22406
22407 \end_inset
22408 </cell>
22409 </row>
22410 </lyxtabular>
22411
22412 \end_inset
22413
22414
22415 \end_layout
22416
22417 \begin_layout Itemize
22418 file revision information.
22419  The result comes from parsing the output of 
22420 \begin_inset Flex Code
22421 status collapsed
22422
22423 \begin_layout Plain Layout
22424 svn
22425 \begin_inset space ~
22426 \end_inset
22427
22428 info
22429 \begin_inset space ~
22430 \end_inset
22431
22432 –xml
22433 \begin_inset space ~
22434 \end_inset
22435
22436 file.lyx
22437 \end_layout
22438
22439 \end_inset
22440
22441 .
22442  Supported flags are:
22443 \end_layout
22444
22445 \begin_deeper
22446 \begin_layout Itemize
22447 version number of the last commit (
22448 \begin_inset Flex Code
22449 status collapsed
22450
22451 \begin_layout Plain Layout
22452 vcs-revision
22453 \end_layout
22454
22455 \end_inset
22456
22457 )
22458 \end_layout
22459
22460 \begin_layout Itemize
22461 author of the last commit (
22462 \begin_inset Flex Code
22463 status collapsed
22464
22465 \begin_layout Plain Layout
22466 vcs-author
22467 \end_layout
22468
22469 \end_inset
22470
22471 )
22472 \end_layout
22473
22474 \begin_layout Itemize
22475 date of the last commit (
22476 \begin_inset Flex Code
22477 status collapsed
22478
22479 \begin_layout Plain Layout
22480 vcs-date
22481 \end_layout
22482
22483 \end_inset
22484
22485 )
22486 \end_layout
22487
22488 \begin_layout Itemize
22489 time of the last commit (
22490 \begin_inset Flex Code
22491 status collapsed
22492
22493 \begin_layout Plain Layout
22494 vcs-time
22495 \end_layout
22496
22497 \end_inset
22498
22499 )
22500 \end_layout
22501
22502 \end_deeper
22503 \begin_layout Standard
22504 You can obtain this info via InsetInfo (e.g.
22505  
22506 \begin_inset Flex Code
22507 status collapsed
22508
22509 \begin_layout Plain Layout
22510 info-insert buffer vcs-date
22511 \end_layout
22512
22513 \end_inset
22514
22515 ).
22516  The information will be available only when you have the file stored under
22517  svn managment (i.e.
22518  the 
22519 \begin_inset Flex Code
22520 status collapsed
22521
22522 \begin_layout Plain Layout
22523 .svn
22524 \end_layout
22525
22526 \end_inset
22527
22528  directory is available with your document).
22529 \end_layout
22530
22531 \end_deeper
22532 \begin_layout Itemize
22533 Another—a hacking one—possibility is to use svn keywords
22534 \begin_inset Foot
22535 status collapsed
22536
22537 \begin_layout Plain Layout
22538 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22539 \end_layout
22540
22541 \end_inset
22542
22543 .
22544  In short – you set file keywords property (e.g.
22545  
22546 \family sans
22547 svn propset svn:keywords 'Rev' file.lyx
22548 \family default
22549 ) and then paste keyword \SpecialChar TeX
22550  code
22551 \begin_inset Foot
22552 status collapsed
22553
22554 \begin_layout Plain Layout
22555 This is an easy way how to ensure that \SpecialChar LyX
22556  won't break the line in the middle
22557  of keyword tag.
22558 \end_layout
22559
22560 \end_inset
22561
22562  tag in your document (e.g.
22563  
22564 \begin_inset ERT
22565 status open
22566
22567 \begin_layout Plain Layout
22568
22569 $Rev$
22570 \end_layout
22571
22572 \end_inset
22573
22574 ).
22575  This way svn client will automatically substitute revision number (e.g.
22576  
22577 \begin_inset ERT
22578 status open
22579
22580 \begin_layout Plain Layout
22581
22582 $Rev: 59 $
22583 \end_layout
22584
22585 \end_inset
22586
22587 ) after each update and commit.
22588  There are more problems with this approach.
22589  Firstly, the '$' character is used in \SpecialChar TeX
22590  world for math equations, so any
22591  occurence of math formula 
22592 \begin_inset Formula $Rev$
22593 \end_inset
22594
22595  become 
22596 \begin_inset Formula $Rev:59$
22597 \end_inset
22598
22599  in your \SpecialChar LyX
22600  document.
22601  Similarly for other keywords like Id, Date, Author, etc.
22602  Secondly svn output is dependent on your locales, so its very easy that
22603  svn would produce some problematic strings once Date is used.
22604  Thirdly you get the whole 'Rev: 59' string in your document instead of
22605  the plain number.
22606  Until subversion implements user's custom keywords it will be hard to use
22607  this approach reliably or let \SpecialChar LyX
22608  to support it directly.
22609 \end_layout
22610
22611 \begin_layout Subsection
22612 SVN and Windows Environment
22613 \end_layout
22614
22615 \begin_layout Quote
22616 My inclination is to say that if the user cannot figure out the command
22617  line operations on their own fairly quickly, they would be well advised
22618  to use TortoiseSVN.
22619  —P.
22620  A.
22621  Rubin
22622 \end_layout
22623
22624 \begin_layout Subsubsection
22625 Preparation
22626 \end_layout
22627
22628 \begin_layout Standard
22629 In addition to installing \SpecialChar LyX
22630 , and having access to a Subversion repository,
22631  the user will need to install the Subversion client program.
22632  A Windows installer for the client program is available from 
22633 \begin_inset CommandInset href
22634 LatexCommand href
22635 name "CollabNet"
22636 target "http://www.collab.net/nonav/downloads/subversion/"
22637 literal "false"
22638
22639 \end_inset
22640
22641 .
22642  The user may also want to install 
22643 \begin_inset CommandInset href
22644 LatexCommand href
22645 name "TortoiseSVN"
22646 target "http://tortoisesvn.tigris.org/"
22647 literal "false"
22648
22649 \end_inset
22650
22651 , which integrates Subversion operations into the context (rightclick) menu
22652  of Windows Explorer.
22653  Operations done outside \SpecialChar LyX
22654  will typically be more convenient using the Explorer
22655  context menu.
22656  Note that TortoiseSVN is not a replacement for the client program, which
22657  is what \SpecialChar LyX
22658  itself will use.
22659 \end_layout
22660
22661 \begin_layout Subsubsection
22662 Bringing a document under Subversion control
22663 \end_layout
22664
22665 \begin_layout Standard
22666 Before a \SpecialChar LyX
22667  document can be brought under version control in Subversion, its
22668  parent directory needs to be under version control.
22669  If the document is being added to a project already in the repository,
22670  this is accomplished by checking the project out to the directory where
22671  the new document will be placed.
22672  If the project itself is not yet under version control (for instance, if
22673  this document starts a new project), the directory must be imported into
22674  the repository.
22675  This is done outside \SpecialChar LyX
22676 .
22677  Both import and checkout are easily accomplished from the Explorer context
22678  menu using TortoiseSVN, or alternatively can be done using the command
22679  line client at a DOS prompt.
22680  The procedure for importing the project using TortoiseSVN is described
22681  below, assuming an existing repository and a new project being started
22682  in 
22683 \family typewriter
22684 C:
22685 \backslash
22686 new project
22687 \family default
22688 .
22689  For information on using the Subversion client program, run 
22690 \family typewriter
22691 svn --help 
22692 \family default
22693 in a DOS shell.
22694 \end_layout
22695
22696 \begin_layout Enumerate
22697 Locate 
22698 \family typewriter
22699 C:
22700 \backslash
22701 new project 
22702 \family default
22703 in Windows Explorer, right click it, and select 
22704 \family sans
22705 TortoiseSVN\SpecialChar menuseparator
22706 Repo-browser
22707 \family default
22708 .
22709  If necessary, adjust the URL for the repository, then click OK.
22710 \end_layout
22711
22712 \begin_layout Enumerate
22713 Right click the level of the repository under which you want to place the
22714  new project folder (typically the top level) and click 
22715 \family sans
22716 Create folder
22717 \family default
22718  Supply a name for the project folder and click OK.
22719  Add a message for the log file if desired, then click OK again.
22720  The new project folder should appear in the repository.
22721  Finally, click OK again to exit the repository browser.
22722 \end_layout
22723
22724 \begin_layout Enumerate
22725 Once again right click 
22726 \family typewriter
22727 C:
22728 \backslash
22729 new project
22730 \family default
22731 , this time selecting SVN Checkout\SpecialChar ldots
22732  Select the URL of the project folder
22733  you just created in the repository, and set the checkout directory to 
22734 \family typewriter
22735 C:
22736 \backslash
22737 new project.
22738
22739 \family default
22740  Click OK.
22741  You will be warned about a non-empty folder; click OK to proceed.
22742  You should now have a 
22743 \family typewriter
22744 .svn
22745 \family default
22746  directory under 
22747 \family typewriter
22748 C:
22749 \backslash
22750 new project.
22751 \end_layout
22752
22753 \begin_layout Enumerate
22754 Create or open your document in \SpecialChar LyX
22755  and click 
22756 \family sans
22757 File\SpecialChar menuseparator
22758 Version
22759 \begin_inset space ~
22760 \end_inset
22761
22762 Control\SpecialChar menuseparator
22763 Register.
22764  
22765 \family default
22766 Add a log message and click OK to commit the document to version control.
22767 \end_layout
22768
22769 \begin_layout Standard
22770 From this point onward, you should have full functionality in the 
22771 \family sans
22772 File\SpecialChar menuseparator
22773 Version
22774 \begin_inset space ~
22775 \end_inset
22776
22777 Control
22778 \family default
22779  menu.
22780  You also have the option of checking the document in and out, viewing its
22781  history, etc.
22782  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22783  client program from a command prompt.
22784 \end_layout
22785
22786 \begin_layout Subsubsection
22787 SSH tunnel used with SVN under Windows
22788 \end_layout
22789
22790 \begin_layout Standard
22791 Compared with Linux setting up an svn client to communicate over ssh under
22792  Windows is a rather troublesome task.
22793  We will at least offer some hints how to setup the client side but prior
22794  knowledge about ssh and the Windows command line is needed, also be prepared
22795  for a great deal of frustration\SpecialChar ldots
22796
22797 \end_layout
22798
22799 \begin_layout Enumerate
22800 Get an svn client for windows, as described in the previous sections.
22801  When it is a fresh install run some svn command (e.g.
22802  
22803 \begin_inset Flex Code
22804 status collapsed
22805
22806 \begin_layout Plain Layout
22807 svn –version
22808 \end_layout
22809
22810 \end_inset
22811
22812 ) to create config files, which you will need to change later on.
22813 \end_layout
22814
22815 \begin_layout Enumerate
22816 Choose an ssh client for Windows.
22817  There are several possibilities, we will use the one from Putty tools
22818 \begin_inset Foot
22819 status collapsed
22820
22821 \begin_layout Plain Layout
22822 \begin_inset Flex URL
22823 status collapsed
22824
22825 \begin_layout Plain Layout
22826
22827 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22828 \end_layout
22829
22830 \end_inset
22831
22832
22833 \end_layout
22834
22835 \end_inset
22836
22837 .
22838  You will need to set the connection up so that the client doesn't ask for
22839  any password from you.
22840  To keep things easy we will use only keys without any additional password
22841  protection etc.
22842 \end_layout
22843
22844 \begin_deeper
22845 \begin_layout Enumerate
22846 Generate keys by 
22847 \begin_inset Flex Code
22848 status collapsed
22849
22850 \begin_layout Plain Layout
22851 puttygen
22852 \end_layout
22853
22854 \end_inset
22855
22856 .
22857  Save your private .ppk key file and put the public one on the server side.
22858  If the SVN server runs on Linux, note that the format of the public key
22859  is not compatible with Linux openssh and you will need to direcly copy-paste
22860  the key from the “
22861 \emph on
22862 Public key for pasting into OpenSSH authorized_keys file
22863 \emph default
22864 :” edit field into the server's 
22865 \begin_inset Flex Code
22866 status collapsed
22867
22868 \begin_layout Plain Layout
22869 ~/.ssh/authorized_keys
22870 \end_layout
22871
22872 \end_inset
22873
22874  / 
22875 \begin_inset Flex Code
22876 status collapsed
22877
22878 \begin_layout Plain Layout
22879 authorized_keys2
22880 \end_layout
22881
22882 \end_inset
22883
22884  file.
22885 \end_layout
22886
22887 \begin_layout Enumerate
22888 Get the Putty's 
22889 \begin_inset Flex Code
22890 status collapsed
22891
22892 \begin_layout Plain Layout
22893 plink
22894 \end_layout
22895
22896 \end_inset
22897
22898 .
22899  In the SVN config file
22900 \begin_inset Foot
22901 status collapsed
22902
22903 \begin_layout Plain Layout
22904 Exact path depends on Windows version, usually somewhere around 
22905 \begin_inset Flex Code
22906 status collapsed
22907
22908 \begin_layout Plain Layout
22909 c:
22910 \backslash
22911 Documents and Settings
22912 \backslash
22913 user
22914 \backslash
22915 Application Data
22916 \backslash
22917 Subversion
22918 \backslash
22919 config
22920 \end_layout
22921
22922 \end_inset
22923
22924  / 
22925 \begin_inset Flex Code
22926 status collapsed
22927
22928 \begin_layout Plain Layout
22929 AppData
22930 \backslash
22931 Roaming
22932 \backslash
22933 Subversion
22934 \end_layout
22935
22936 \end_inset
22937
22938 .
22939 \end_layout
22940
22941 \end_inset
22942
22943 , section [tunnels], setup ssh command, e.g.
22944  
22945 \begin_inset Flex Code
22946 status collapsed
22947
22948 \begin_layout Plain Layout
22949 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22950 \end_layout
22951
22952 \end_inset
22953
22954 .
22955 \begin_inset Foot
22956 status collapsed
22957
22958 \begin_layout Plain Layout
22959 It will usually take a lot of time to get exact command right and it depends
22960  on many things.
22961  For example do not have some remote server saved as a default session in
22962  Putty etc.
22963  If things fail, try to connect via plink without SVN first.
22964 \end_layout
22965
22966 \end_inset
22967
22968
22969 \end_layout
22970
22971 \end_deeper
22972 \begin_layout Enumerate
22973 Checkout the SVN archive, e.
22974 \begin_inset space \thinspace{}
22975 \end_inset
22976
22977 g.
22978 \begin_inset Newline newline
22979 \end_inset
22980
22981
22982 \begin_inset Flex Code
22983 status collapsed
22984
22985 \begin_layout Plain Layout
22986 svn co svn+ssh://user@server/repository_path
22987 \end_layout
22988
22989 \end_inset
22990
22991 .
22992 \end_layout
22993
22994 \begin_layout Subsubsection
22995 End-of-Line Conversions
22996 \end_layout
22997
22998 \begin_layout Standard
22999 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
23000  will
23001  use different line endings inside the .lyx files.
23002  This is not a problem as far as \SpecialChar LyX
23003  functionality is concerned, but the commit
23004  diffs will be huge and merge-conflicts prone.
23005  Fortunately SVN itself knows
23006 \begin_inset Foot
23007 status collapsed
23008
23009 \begin_layout Plain Layout
23010 \begin_inset Flex URL
23011 status collapsed
23012
23013 \begin_layout Plain Layout
23014
23015 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
23016 \end_layout
23017
23018 \end_inset
23019
23020
23021 \end_layout
23022
23023 \end_inset
23024
23025  how to deal with CR/LF problems when switching .lyx files to the 
23026 \begin_inset Flex Code
23027 status collapsed
23028
23029 \begin_layout Plain Layout
23030 native
23031 \end_layout
23032
23033 \end_inset
23034
23035  mode.
23036 \begin_inset Foot
23037 status collapsed
23038
23039 \begin_layout Plain Layout
23040 For the lazy guys: 
23041 \begin_inset Flex Code
23042 status collapsed
23043
23044 \begin_layout Plain Layout
23045 svn propset svn:eol-style native FILE_NAME
23046 \end_layout
23047
23048 \end_inset
23049
23050
23051 \end_layout
23052
23053 \end_inset
23054
23055
23056 \end_layout
23057
23058 \begin_layout Subsection
23059 GIT commands in \SpecialChar LyX
23060
23061 \end_layout
23062
23063 \begin_layout Standard
23064 A minimal subset of GIT commands is now supported by \SpecialChar LyX
23065 .
23066  You can find the commands in the 
23067 \family sans
23068 File\SpecialChar menuseparator
23069 Version
23070 \begin_inset space ~
23071 \end_inset
23072
23073 Control
23074 \family default
23075  submenu.
23076  Please note that if you use password protected access to repository via
23077  ssh, you will be asked in terminal window.
23078  \SpecialChar LyX
23079  was tested against GIT 1.7.
23080 \begin_inset Foot
23081 status open
23082
23083 \begin_layout Plain Layout
23084 Windows users please note that you need to ensure that git is on the path.
23085  This can be set from within \SpecialChar LyX
23086  at 
23087 \family sans
23088 Tools\SpecialChar menuseparator
23089 Preferences\SpecialChar menuseparator
23090 Paths\SpecialChar menuseparator
23091 PATH prefix
23092 \family default
23093 .
23094 \end_layout
23095
23096 \end_inset
23097
23098
23099 \end_layout
23100
23101 \begin_layout Standard
23102 One big difference of GIT and the other supported version control systems
23103  is the distributed nature of GIT: With traditional version control systems
23104  there is one central server which hosts the repository.
23105  Users commit their changes to the server, and get updates made by other
23106  users from it.
23107  With GIT, users commit to a local repository.
23108  The local repository can be synchronized with one or more remote repositories
23109  using the 
23110 \begin_inset Flex Code
23111 status collapsed
23112
23113 \begin_layout Plain Layout
23114 pull
23115 \end_layout
23116
23117 \end_inset
23118
23119  and 
23120 \begin_inset Flex Code
23121 status collapsed
23122
23123 \begin_layout Plain Layout
23124 push
23125 \end_layout
23126
23127 \end_inset
23128
23129  GIT commands.
23130  \SpecialChar LyX
23131  does not interact in any way with remote GIT repositories.
23132  It works exclusively with the local repository in a very similar way as
23133  with a central CVS or SVN repository.
23134  If you use remote GIT repositories you need to do the 
23135 \begin_inset Flex Code
23136 status collapsed
23137
23138 \begin_layout Plain Layout
23139 pull
23140 \end_layout
23141
23142 \end_inset
23143
23144  and 
23145 \begin_inset Flex Code
23146 status collapsed
23147
23148 \begin_layout Plain Layout
23149 push
23150 \end_layout
23151
23152 \end_inset
23153
23154  operations with your favourite GIT client.
23155 \end_layout
23156
23157 \begin_layout Subsubsection
23158
23159 \family sans
23160 Register
23161 \end_layout
23162
23163 \begin_layout Standard
23164 If your document is not under revision control, this is the only item shown
23165  in the menu.
23166  And if it is under revision control, the 
23167 \family sans
23168 Register
23169 \family default
23170  item is not visible.
23171 \end_layout
23172
23173 \begin_layout Standard
23174 This command registers in GIT your document ONLY in case you have already
23175  the documents directory under GIT control (in particular 
23176 \family typewriter
23177 .git/index
23178 \family default
23179  file exists).
23180  This means you have to checkout the archive by yourself.
23181 \end_layout
23182
23183 \begin_layout Standard
23184 Then you are asked interactively to supply an initial description of the
23185  document.
23186  Don't forget that registered file is not yet commited.
23187 \end_layout
23188
23189 \begin_layout Standard
23190 GIT command that is run: 
23191 \family typewriter
23192 git add 
23193 \begin_inset Quotes eld
23194 \end_inset
23195
23196 <file-name>
23197 \begin_inset Quotes erd
23198 \end_inset
23199
23200
23201 \end_layout
23202
23203 \begin_layout Standard
23204 Read 
23205 \family typewriter
23206 man git
23207 \family default
23208  to understand the switches.
23209 \end_layout
23210
23211 \begin_layout Subsubsection
23212
23213 \family sans
23214 Check In Changes
23215 \end_layout
23216
23217 \begin_layout Standard
23218 When you are finished editing a file, you commit your changes.
23219  When you do this, you are asked for a description of the changes.
23220  After that changes are commited.
23221 \end_layout
23222
23223 \begin_layout Standard
23224 GIT command: 
23225 \family typewriter
23226 git commit -q -m"<description>" <file-name>
23227 \end_layout
23228
23229 \begin_layout Subsubsection
23230
23231 \family sans
23232 Revert To Repository Version
23233 \end_layout
23234
23235 \begin_layout Standard
23236 This will discard all changes made to the document since the last check
23237  in.
23238  You get a warning before changes are discarded.
23239 \end_layout
23240
23241 \begin_layout Standard
23242 GIT command: 
23243 \family typewriter
23244 git checkout -q 
23245 \begin_inset Quotes eld
23246 \end_inset
23247
23248 <file-name>
23249 \begin_inset Quotes erd
23250 \end_inset
23251
23252
23253 \end_layout
23254
23255 \begin_layout Subsubsection
23256
23257 \family sans
23258 Rename
23259 \end_layout
23260
23261 \begin_layout Standard
23262 This will rename the current document including the version history.
23263  It requires a clean document without any changes since the last checkin.
23264  You are asked for a file name and a description of the rename operation.
23265  After that the document is renamed, both locally and in the repository.
23266  If the parent directories of the new and old file names differ, all relative
23267  paths of included files are adjusted (like in 
23268 \family sans
23269 File\SpecialChar menuseparator
23270 Save As
23271 \family default
23272 \SpecialChar ldots
23273 ).
23274  Finally, the document is reloaded using the new name.
23275 \end_layout
23276
23277 \begin_layout Labeling
23278 \labelwidthstring 00.00.0000
23279 GIT
23280 \begin_inset space ~
23281 \end_inset
23282
23283 commands: 
23284 \begin_inset space ~
23285 \end_inset
23286
23287
23288 \begin_inset Newline newline
23289 \end_inset
23290
23291
23292 \begin_inset Flex Code
23293 status collapsed
23294
23295 \begin_layout Plain Layout
23296 git mv 
23297 \family typewriter
23298
23299 \begin_inset Quotes eld
23300 \end_inset
23301
23302 <file-name>
23303 \begin_inset Quotes erd
23304 \end_inset
23305
23306  
23307 \begin_inset Quotes eld
23308 \end_inset
23309
23310 <new-file-name>
23311 \begin_inset Quotes erd
23312 \end_inset
23313
23314
23315 \end_layout
23316
23317 \end_inset
23318
23319
23320 \begin_inset Newline newline
23321 \end_inset
23322
23323
23324 \begin_inset Flex Code
23325 status collapsed
23326
23327 \begin_layout Plain Layout
23328 git commit
23329 \end_layout
23330
23331 \end_inset
23332
23333
23334 \end_layout
23335
23336 \begin_layout Subsubsection
23337
23338 \family sans
23339 Show History
23340 \end_layout
23341
23342 \begin_layout Standard
23343 This shows the complete history of the GIT document.
23344  The output of 
23345 \family typewriter
23346 git log 
23347 \begin_inset Quotes eld
23348 \end_inset
23349
23350 <file-name>
23351 \begin_inset Quotes erd
23352 \end_inset
23353
23354
23355 \family default
23356  is shown in a browser.
23357 \end_layout
23358
23359 \begin_layout Subsubsection
23360 Version Info
23361 \end_layout
23362
23363 \begin_layout Standard
23364 \SpecialChar LyX
23365  supports GIT hash number of the last commit to the file, author name, date
23366  and time of last commit.
23367  All those are extracted from 
23368 \family typewriter
23369 git log -n 1 --pretty=format:%H%n%an%n%ai
23370 \family default
23371 .
23372  Tree version information is obtained via 
23373 \family typewriter
23374 git describe --abbrev --dirty --long
23375 \family default
23376 .
23377  See 
23378 \begin_inset CommandInset ref
23379 LatexCommand ref
23380 reference "subsec:VCS-Revision-Information"
23381
23382 \end_inset
23383
23384  for other details.
23385 \end_layout
23386
23387 \begin_layout Subsection
23388 Further tuning
23389 \end_layout
23390
23391 \begin_layout Standard
23392 With the recent addition of the vc-command function \SpecialChar LyX
23393  power users are allowed
23394  to create their own commands for revision control.
23395 \end_layout
23396
23397 \begin_layout Standard
23398 As an example you can see how two TortoiseSVN commands could be integrated
23399  directly:
23400 \end_layout
23401
23402 \begin_layout Description
23403 Commit: 
23404 \begin_inset Flex Code
23405 status collapsed
23406
23407 \begin_layout Plain Layout
23408 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23409 \end_layout
23410
23411 \end_inset
23412
23413
23414 \end_layout
23415
23416 \begin_layout Description
23417 Revert: 
23418 \begin_inset Flex Code
23419 status collapsed
23420
23421 \begin_layout Plain Layout
23422 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23423 \end_layout
23424
23425 \end_inset
23426
23427
23428 \end_layout
23429
23430 \begin_layout Subsection
23431 Version control and Document comparison
23432 \end_layout
23433
23434 \begin_layout Standard
23435 One of the typical uses of version control is to inspect the changes between
23436  revisions, usually by creating 
23437 \begin_inset Flex Code
23438 status collapsed
23439
23440 \begin_layout Plain Layout
23441 diff
23442 \end_layout
23443
23444 \end_inset
23445
23446  dumps.
23447  While this is useful for plain text files, it is much less useful in the
23448  case of \SpecialChar LyX
23449  files, which have more a complicated structure.
23450  Hence we provide binding to the Document comparison feature.
23451  There are two ways of calling this feature - either by direct call of 
23452 \begin_inset Flex Code
23453 status collapsed
23454
23455 \begin_layout Plain Layout
23456 VC_COMPARE
23457 \end_layout
23458
23459 \end_inset
23460
23461  \SpecialChar LyX
23462  function (for details see \SpecialChar LyX
23463  functions manual) or by icon/menu item 
23464 \begin_inset Flex Noun
23465 status collapsed
23466
23467 \begin_layout Plain Layout
23468 Compare with older revision...
23469 \end_layout
23470
23471 \end_inset
23472
23473 .
23474  One can either compare two chosen revisions of the document or he can simply
23475  compare the current version of edited text with older revisions (where
23476  '
23477 \begin_inset Flex Noun
23478 status collapsed
23479
23480 \begin_layout Plain Layout
23481 0
23482 \end_layout
23483
23484 \end_inset
23485
23486 ' revisions back means comparison of the edited file with last commited
23487  revision).
23488  
23489 \end_layout
23490
23491 \begin_layout Standard
23492 This feature is supported for SVN and RCS though due to the more complicated
23493  versioning scheme of RCS there is a constraint – when addressing the revisions
23494  in dialog, numbers always point to the last number in RCS revision number,
23495  i.e.
23496  '35' in '1.2.35'.
23497  We don't currently support GIT addressing of revisions, one can just compare
23498  edited document with its revision X steps backs, where X is addressed as
23499  HEAD~X.
23500 \end_layout
23501
23502 \begin_layout Section
23503 Literate Programming
23504 \end_layout
23505
23506 \begin_layout Standard
23507 Updated by 
23508 \noun on
23509 Kayvan Sylvan 
23510 \noun default
23511 (kayvan@sylvan.com)
23512 \noun on
23513
23514 \noun default
23515 original documentation written by 
23516 \noun on
23517 Edmar Wienskoski Jr.
23518
23519 \noun default
23520  (edmar-w-jr@technologist.com)
23521 \end_layout
23522
23523 \begin_layout Subsection
23524 Introduction
23525 \end_layout
23526
23527 \begin_layout Standard
23528 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23529  for literate
23530  programming, where it is assumed that you are familiar with this programming
23531  technique, and know what 
23532 \begin_inset Quotes eld
23533 \end_inset
23534
23535 tangling
23536 \begin_inset Quotes erd
23537 \end_inset
23538
23539  and 
23540 \begin_inset Quotes eld
23541 \end_inset
23542
23543 weaving
23544 \begin_inset Quotes erd
23545 \end_inset
23546
23547  means.
23548  If that is not the case, please follow the web links provided in the following
23549  sections.
23550  There is a lot of good documentation out there covering old development
23551  history to the latest tools tips.
23552 \end_layout
23553
23554 \begin_layout Standard
23555 It is also assumed that you are familiar with \SpecialChar LyX
23556  itself to a point that you
23557  are comfortable changing your \SpecialChar LyX
23558  preferences, and X resources file.
23559  If that is not the case please refer to other \SpecialChar LyX
23560  documentation to cover your
23561  specific needs.
23562 \end_layout
23563
23564 \begin_layout Subsection
23565 Literate Programming
23566 \end_layout
23567
23568 \begin_layout Standard
23569 From the Literate Programming FAQ: 
23570 \end_layout
23571
23572 \begin_layout Quotation
23573 Literate programming is the combination of documentation and source together
23574  in a fashion suited for reading by human beings.
23575  In fact, literate programs should be enjoyable reading, even inviting!
23576  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23577  and documentation in a single file.
23578  Literate programming tools then parse the file to produce either readable
23579  documentation or compilable source.
23580  The WEB style of literate programming was created by D.
23581 \begin_inset space \thinspace{}
23582 \end_inset
23583
23584 E.
23585  Knuth during the development of his \SpecialChar TeX
23586  typesetting software.
23587  
23588 \end_layout
23589
23590 \begin_layout Standard
23591 Another excerpt says:
23592 \end_layout
23593
23594 \begin_layout Quotation
23595
23596 \emph on
23597 How is literate programming different from verbose commenting?
23598 \end_layout
23599
23600 \begin_layout Quotation
23601 There are three distinguishing characteristics.
23602  In order of importance, they are: 
23603 \end_layout
23604
23605 \begin_deeper
23606 \begin_layout Itemize
23607 flexible order of elaboration 
23608 \end_layout
23609
23610 \begin_layout Itemize
23611 automatic support for browsing 
23612 \end_layout
23613
23614 \begin_layout Itemize
23615 typeset documentation, especially diagrams and mathematics 
23616 \end_layout
23617
23618 \end_deeper
23619 \begin_layout Standard
23620 Now that I sparked your curiosity, take a look in the references.
23621 \end_layout
23622
23623 \begin_layout Subsubsection
23624 References
23625 \end_layout
23626
23627 \begin_layout Standard
23628 The complete Literate Programming FAQ can be found at:
23629 \end_layout
23630
23631 \begin_layout Quote
23632 Literate Programming FAQ 
23633 \begin_inset Flex URL
23634 status collapsed
23635
23636 \begin_layout Plain Layout
23637
23638 http://www.literateprogramming.com/lpfaq.pdf
23639 \end_layout
23640
23641 \end_inset
23642
23643
23644 \end_layout
23645
23646 \begin_layout Standard
23647 The FAQ lists 23 (twenty three!) different literate programming tools.
23648  Where some are specialized or 
23649 \begin_inset Quotes eld
23650 \end_inset
23651
23652 tailored
23653 \begin_inset Quotes erd
23654 \end_inset
23655
23656  for particular programming languages, while other have general scope.
23657  I selected 
23658 \noun on
23659 Noweb
23660 \noun default
23661  for my own use for several reasons:
23662 \end_layout
23663
23664 \begin_layout Itemize
23665 It can generate the documentation either in \SpecialChar LaTeX
23666  or HTML.
23667 \end_layout
23668
23669 \begin_layout Itemize
23670 It has a open architecture, i.
23671 \begin_inset space \thinspace{}
23672 \end_inset
23673
23674 e.
23675 \begin_inset space \space{}
23676 \end_inset
23677
23678 it is easy to plug in new filters and to perform special processing that
23679  you may need.
23680  
23681 \end_layout
23682
23683 \begin_layout Itemize
23684 There is a good selection of filters available already (the HTML is one
23685  of them).
23686 \end_layout
23687
23688 \begin_layout Itemize
23689 It is free.
23690 \end_layout
23691
23692 \begin_layout Standard
23693 The Noweb web page can be found at: 
23694 \end_layout
23695
23696 \begin_layout Quote
23697 Noweb home page 
23698 \begin_inset Flex URL
23699 status collapsed
23700
23701 \begin_layout Plain Layout
23702
23703 http://www.cs.virginia.edu/~nr/noweb/
23704 \end_layout
23705
23706 \end_inset
23707
23708
23709 \end_layout
23710
23711 \begin_layout Standard
23712 Starting from there you can reach many other interesting links and even
23713  some literate program examples.
23714 \end_layout
23715
23716 \begin_layout Subsection
23717 \SpecialChar LyX
23718  and Literate Programming with Noweb
23719 \end_layout
23720
23721 \begin_layout Standard
23722 The \SpecialChar LyX
23723  support for Literate Programming is provided by using the generic \SpecialChar LyX
23724
23725  converters mechanism.
23726  This support is provided in a 
23727 \begin_inset Quotes eld
23728 \end_inset
23729
23730 Noweb independent
23731 \begin_inset Quotes erd
23732 \end_inset
23733
23734  way, i.
23735 \begin_inset space \thinspace{}
23736 \end_inset
23737
23738 e.
23739 \begin_inset space \space{}
23740 \end_inset
23741
23742 you will be able to use this new \SpecialChar LyX
23743  feature with some other literate programming
23744  tool of your choice by just changing your \SpecialChar LyX
23745  preferences.
23746 \end_layout
23747
23748 \begin_layout Subsubsection
23749 Generating documents and code (weaving and tangling)
23750 \end_layout
23751
23752 \begin_layout Paragraph
23753 Using the noweb module
23754 \end_layout
23755
23756 \begin_layout Standard
23757 If you have installed Noweb and \SpecialChar LyX
23758  successfully, whenever you open a new document,
23759  after you have chosen its document class, use the Document->Settings menu
23760  to add the 
23761 \begin_inset Quotes eld
23762 \end_inset
23763
23764 noweb
23765 \begin_inset Quotes erd
23766 \end_inset
23767
23768  module.
23769  If Noweb is correctly installed, when you click on the 
23770 \begin_inset Quotes eld
23771 \end_inset
23772
23773 Modules
23774 \begin_inset Quotes erd
23775 \end_inset
23776
23777  link, you will see the 
23778 \begin_inset Quotes eld
23779 \end_inset
23780
23781 noweb
23782 \begin_inset Quotes erd
23783 \end_inset
23784
23785  module in the available list and you can add it to your document.
23786 \end_layout
23787
23788 \begin_layout Paragraph
23789 Typing code in
23790 \end_layout
23791
23792 \begin_layout Standard
23793 \SpecialChar LyX
23794  enables you to write code with a layout named 
23795 \begin_inset Flex Noun
23796 status collapsed
23797
23798 \begin_layout Plain Layout
23799 Chunk
23800 \end_layout
23801
23802 \end_inset
23803
23804 .
23805  Noweb delimits chunks like this:
23806 \end_layout
23807
23808 \begin_layout LyX-Code
23809 <<My code>>=
23810 \end_layout
23811
23812 \begin_layout LyX-Code
23813   code
23814 \end_layout
23815
23816 \begin_layout LyX-Code
23817   more code
23818 \end_layout
23819
23820 \begin_layout LyX-Code
23821   even more code
23822 \end_layout
23823
23824 \begin_layout LyX-Code
23825   @
23826 \end_layout
23827
23828 \begin_layout Standard
23829 The problem is that whatever is written in between the << and the 
23830 \family typewriter
23831 @
23832 \family default
23833  must be taken literally, i.
23834 \begin_inset space \thinspace{}
23835 \end_inset
23836
23837 e.
23838 \begin_inset space \space{}
23839 \end_inset
23840
23841 \SpecialChar LyX
23842  should be prevented from making any special interpretation of what has
23843  been written.
23844  This is also handled by 
23845 \begin_inset Flex Noun
23846 status collapsed
23847
23848 \begin_layout Plain Layout
23849 Chunk
23850 \end_layout
23851
23852 \end_inset
23853
23854 , that works like a normal paragraph but has a free spacing capability.
23855 \end_layout
23856
23857 \begin_layout Standard
23858 As a special note, you can also use the 
23859 \begin_inset Quotes eld
23860 \end_inset
23861
23862 %def
23863 \begin_inset Quotes erd
23864 \end_inset
23865
23866  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23867 rence:
23868 \end_layout
23869
23870 \begin_layout LyX-Code
23871 <<My chunk>>=
23872 \end_layout
23873
23874 \begin_layout LyX-Code
23875 def some_function(args):
23876 \end_layout
23877
23878 \begin_layout LyX-Code
23879    "This is the doc string for this function."
23880 \end_layout
23881
23882 \begin_layout LyX-Code
23883    print "My args: ", args
23884 \end_layout
23885
23886 \begin_layout LyX-Code
23887 @ %def some_function
23888 \end_layout
23889
23890 \begin_layout Standard
23891 For an example of this usage and the resulting cross-reference output, look
23892  at the Literate python program in 
23893 \emph on
23894 LIBDIR/examples/listerrors.lyx
23895 \emph default
23896  which should make this all clear.
23897 \end_layout
23898
23899 \begin_layout Paragraph
23900 Generating the documentation
23901 \end_layout
23902
23903 \begin_layout Standard
23904 At this point you already have a new document file with a proper document
23905  class, and with some code and text on it.
23906  How do I print it? The answer is simple, you select 
23907 \family sans
23908 View\SpecialChar menuseparator
23909 DVI,
23910 \family default
23911  etc.
23912  Just like you would do for a plain document.
23913  No special procedure is required.
23914 \end_layout
23915
23916 \begin_layout Standard
23917 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23918 :
23919 \end_layout
23920
23921 \begin_layout Enumerate
23922 When the 
23923 \family sans
23924 Update\SpecialChar menuseparator
23925 DVI
23926 \family default
23927  menu option is chosen, a \SpecialChar LaTeX
23928  file is generated.
23929  
23930 \end_layout
23931
23932 \begin_deeper
23933 \begin_layout Standard
23934 If the document is of any literate class the generated file will be named
23935  with an extension name defined by the 
23936 \begin_inset Quotes eld
23937 \end_inset
23938
23939 literate
23940 \begin_inset Quotes erd
23941 \end_inset
23942
23943  format (defined in the Preferences panel), otherwise the file will have
23944  the usual 
23945 \family typewriter
23946 .tex
23947 \family default
23948  extension.
23949 \end_layout
23950
23951 \end_deeper
23952 \begin_layout Enumerate
23953 Note that the only difference so far is in the name of the file, no special
23954  processing is required by \SpecialChar LyX
23955 .
23956  Given that you formatted the code using the 
23957 \begin_inset Flex Noun
23958 status collapsed
23959
23960 \begin_layout Plain Layout
23961 Chunk
23962 \end_layout
23963
23964 \end_inset
23965
23966  layout that, by itself, takes care of the business.
23967 \end_layout
23968
23969 \begin_layout Enumerate
23970 If the document is of any literate class \SpecialChar LyX
23971  will then use the internal \SpecialChar LyX
23972  to
23973  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23974  converter
23975 \begin_inset Foot
23976 status collapsed
23977
23978 \begin_layout Plain Layout
23979 The converters are defined in the 
23980 \family sans
23981 Tools\SpecialChar menuseparator
23982 Preferences
23983 \family default
23984  panel, under the 
23985 \begin_inset Quotes eld
23986 \end_inset
23987
23988 Conversion
23989 \begin_inset Quotes erd
23990 \end_inset
23991
23992  tab.
23993  See section 
23994 \emph on
23995 Converters
23996 \emph default
23997  of the 
23998 \emph on
23999 Customization
24000 \emph default
24001  manual for general information about converters.
24002 \end_layout
24003
24004 \end_inset
24005
24006  to generate the \SpecialChar LaTeX
24007  file.
24008 \end_layout
24009
24010 \begin_deeper
24011 \begin_layout Standard
24012 Otherwise it will just skip this step.
24013 \end_layout
24014
24015 \end_deeper
24016 \begin_layout Enumerate
24017 Finally, \SpecialChar LaTeX
24018  is invoked and the regular post processing continues as in a plain
24019  document.
24020 \end_layout
24021
24022 \begin_layout Standard
24023 Independence from a particular 
24024 \begin_inset Quotes eld
24025 \end_inset
24026
24027 literate tool
24028 \begin_inset Quotes erd
24029 \end_inset
24030
24031  is easily achieved by changing the commands that are run by the various
24032  converters.
24033 \end_layout
24034
24035 \begin_layout Paragraph
24036 Generating the code
24037 \end_layout
24038
24039 \begin_layout Standard
24040 When the build menu option is chosen or the corresponding button in the
24041  toolbar is pressed, a \SpecialChar LaTeX
24042  file is generated just like step 1 above.
24043  Next, \SpecialChar LyX
24044  invokes the 
24045 \family typewriter
24046 Noweb->Program
24047 \family default
24048  converter.
24049  This converter needs to be defined by the user and is not installed by
24050  default, though the Program format is.
24051  This converter (like any other converter) will have two parts:
24052 \end_layout
24053
24054 \begin_layout Enumerate
24055 The converter program itself.
24056  This program performs the conversion from the one format to the other (in
24057  this case, from the Noweb format to the Program pseudo-format).
24058 \end_layout
24059
24060 \begin_layout Enumerate
24061 The error log parser.
24062  This is a program whose sole purpose is to rewrite error messages in a
24063  format that \SpecialChar LyX
24064  understands.
24065  This makes it possible for \SpecialChar LyX
24066  to place error boxes in the right places in
24067  the file buffer.
24068 \end_layout
24069
24070 \begin_layout Standard
24071 The first part, the 
24072 \begin_inset Quotes eld
24073 \end_inset
24074
24075 Converter
24076 \begin_inset Quotes erd
24077 \end_inset
24078
24079  setting, should be set to
24080 \begin_inset Newline newline
24081 \end_inset
24082
24083
24084 \begin_inset Quotes eld
24085 \end_inset
24086
24087
24088 \family typewriter
24089 build-script $$i
24090 \family default
24091  $$r
24092 \begin_inset Quotes erd
24093 \end_inset
24094
24095 .
24096 \begin_inset Newline newline
24097 \end_inset
24098
24099 This basically means that \SpecialChar LyX
24100  will call 
24101 \begin_inset Quotes eld
24102 \end_inset
24103
24104 build-script
24105 \begin_inset Quotes erd
24106 \end_inset
24107
24108  (a program or script) with the name of the Noweb file (normally a file
24109  in the \SpecialChar LyX
24110  temp directory) and the directory path of the original \SpecialChar LyX
24111  file.
24112  
24113 \end_layout
24114
24115 \begin_layout Standard
24116 This is an implementation of 
24117 \begin_inset Quotes eld
24118 \end_inset
24119
24120 build-script
24121 \begin_inset Quotes erd
24122 \end_inset
24123
24124  that you can place in a directory on your path:
24125 \end_layout
24126
24127 \begin_layout Standard
24128 \begin_inset VSpace defskip
24129 \end_inset
24130
24131
24132 \end_layout
24133
24134 \begin_layout Standard
24135 \begin_inset Newpage pagebreak
24136 \end_inset
24137
24138
24139 \end_layout
24140
24141 \begin_layout Standard
24142
24143 \family sans
24144 #!/bin/sh
24145 \end_layout
24146
24147 \begin_layout Standard
24148
24149 \family sans
24150 #
24151 \end_layout
24152
24153 \begin_layout Standard
24154
24155 \family sans
24156 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
24157 \end_layout
24158
24159 \begin_layout Standard
24160 \begin_inset VSpace defskip
24161 \end_inset
24162
24163
24164 \end_layout
24165
24166 \begin_layout Standard
24167 The next part of the converter setting is the 
24168 \begin_inset Quotes eld
24169 \end_inset
24170
24171 Flags
24172 \begin_inset Quotes erd
24173 \end_inset
24174
24175  which is to be set to
24176 \begin_inset Newline newline
24177 \end_inset
24178
24179
24180 \begin_inset Quotes eld
24181 \end_inset
24182
24183
24184 \family typewriter
24185 parselog=$$s/scripts/listerrors
24186 \family default
24187
24188 \begin_inset Quotes erd
24189 \end_inset
24190
24191 .
24192 \begin_inset Newline newline
24193 \end_inset
24194
24195 This will run any errors that are generated by the 
24196 \begin_inset Quotes eld
24197 \end_inset
24198
24199 build-script
24200 \begin_inset Quotes erd
24201 \end_inset
24202
24203  process through the 
24204 \begin_inset Quotes eld
24205 \end_inset
24206
24207 listerrors
24208 \begin_inset Quotes erd
24209 \end_inset
24210
24211  program.
24212 \end_layout
24213
24214 \begin_layout Standard
24215 The build will normally take place in \SpecialChar LyX
24216 's temporary directory, so the files
24217  produced by the conversion will be in that directory.
24218  \SpecialChar LyX
24219  will copy out what it regards as the `main' file, but the 
24220 \family typewriter
24221 Noweb->Program
24222 \family default
24223  conversion may produce several files, and so most of these would then be
24224  deleted when \SpecialChar LyX
24225  was closed.
24226  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
24227  the build-script chunk can place the generated files in that location.
24228 \end_layout
24229
24230 \begin_layout Paragraph
24231 Build instructions in the document
24232 \end_layout
24233
24234 \begin_layout Standard
24235 The last piece of the integration between \SpecialChar LyX
24236  and noweb is the 
24237 \begin_inset Quotes eld
24238 \end_inset
24239
24240 build-script
24241 \begin_inset Quotes erd
24242 \end_inset
24243
24244  chunk.
24245  Generally, the instructions for building your program should be embedded
24246  in a chunk of its own.
24247  The noweb-specific 
24248 \begin_inset Quotes eld
24249 \end_inset
24250
24251 build-script
24252 \begin_inset Quotes erd
24253 \end_inset
24254
24255  above uses the notangle command to look for this chunk (called 
24256 \begin_inset Quotes eld
24257 \end_inset
24258
24259 build-script
24260 \begin_inset Quotes erd
24261 \end_inset
24262
24263 ) and runs its contents through 
24264 \begin_inset Quotes eld
24265 \end_inset
24266
24267 sh
24268 \begin_inset Quotes erd
24269 \end_inset
24270
24271 .
24272 \end_layout
24273
24274 \begin_layout Standard
24275 Typically, such a chunk would look something like this:
24276 \end_layout
24277
24278 \begin_layout LyX-Code
24279 <<build-script>>=
24280 \end_layout
24281
24282 \begin_layout LyX-Code
24283 #!/bin/sh
24284 \begin_inset Newline newline
24285 \end_inset
24286
24287 if [ -z "${NOWEB_SOURCE}" ]
24288 \begin_inset Newline newline
24289 \end_inset
24290
24291 then
24292 \end_layout
24293
24294 \begin_layout LyX-Code
24295 NOWEB_SOURCE=myfile.nw
24296 \begin_inset Newline newline
24297 \end_inset
24298
24299 fi
24300 \begin_inset Newline newline
24301 \end_inset
24302
24303 [...
24304  code to extract files ...
24305  use NOWEB_OUTPUT_DIR here ...]
24306 \begin_inset Newline newline
24307 \end_inset
24308
24309 [...
24310  code to compile files ...]
24311 \begin_inset Newline newline
24312 \end_inset
24313
24314 @
24315 \end_layout
24316
24317 \begin_layout Standard
24318 Look in 
24319 \emph on
24320 LIBDIR/examples/listerrors.lyx
24321 \emph default
24322  or in 
24323 \emph on
24324 LIBDIR/examples/Literate.lyx
24325 \emph default
24326  which implement two versions of the 
24327 \begin_inset Quotes eld
24328 \end_inset
24329
24330 listerrors
24331 \begin_inset Quotes erd
24332 \end_inset
24333
24334  program for some illustrations of how all of these pieces go together or
24335  in 
24336 \emph on
24337 LIBDIR/examples/noweb2lyx.lyx.
24338
24339 \emph default
24340  Interestingly, these three files show off the language-indepence of the
24341  \SpecialChar LyX
24342  literate programming support since they are written in Python, C and Perl
24343  respectively.
24344 \end_layout
24345
24346 \begin_layout Subsubsection
24347 Configuring \SpecialChar LyX
24348
24349 \end_layout
24350
24351 \begin_layout Standard
24352 All the Literate Programming support is configured by the 
24353 \family sans
24354 Tools\SpecialChar menuseparator
24355 Preferences
24356 \family default
24357  panel in the 
24358 \begin_inset Quotes eld
24359 \end_inset
24360
24361 File Handling
24362 \begin_inset Quotes erd
24363 \end_inset
24364
24365  tab.
24366  The important parts are:
24367 \end_layout
24368
24369 \begin_layout Description
24370 the
24371 \begin_inset space ~
24372 \end_inset
24373
24374
24375 \begin_inset Quotes eld
24376 \end_inset
24377
24378 NoWeb
24379 \begin_inset Quotes erd
24380 \end_inset
24381
24382
24383 \begin_inset space ~
24384 \end_inset
24385
24386 format Set up via the File Formats tab, this is where the Noweb-specific
24387  pieces are set up.
24388  The 
24389 \family sans
24390 GUI Name
24391 \family default
24392  is set to 
24393 \family typewriter
24394 NoWeb
24395 \family default
24396 , the file extension is set to 
24397 \family typewriter
24398 .nw
24399 \family default
24400 .
24401  This tells \SpecialChar LyX
24402  to create a file with a 
24403 \family typewriter
24404 .nw
24405 \family default
24406  extension in the first step of the conversion process.
24407 \end_layout
24408
24409 \begin_layout Description
24410 the
24411 \begin_inset space ~
24412 \end_inset
24413
24414
24415 \family sans
24416 Program
24417 \family default
24418
24419 \begin_inset space ~
24420 \end_inset
24421
24422 format This is an empty format whose sole purpose is to be the endpoint
24423  of a conversion (which then allows us to set up a converter for it).
24424 \end_layout
24425
24426 \begin_layout Description
24427
24428 \family sans
24429 NoWeb
24430 \family default
24431 ->
24432 \family sans
24433 \SpecialChar LaTeX
24434
24435 \family default
24436  This converter performs the 
24437 \begin_inset Quotes eld
24438 \end_inset
24439
24440 weaving
24441 \begin_inset Quotes erd
24442 \end_inset
24443
24444  of the literate document.
24445  For Noweb, it is set to 
24446 \begin_inset Quotes eld
24447 \end_inset
24448
24449
24450 \family typewriter
24451 noweave -delay -index $$i > $$o
24452 \family default
24453
24454 \begin_inset Quotes erd
24455 \end_inset
24456
24457
24458 \end_layout
24459
24460 \begin_layout Description
24461
24462 \family sans
24463 NoWeb
24464 \family default
24465 ->
24466 \family sans
24467 Program
24468 \family default
24469  This performs the 
24470 \begin_inset Quotes eld
24471 \end_inset
24472
24473 tangling step
24474 \begin_inset Quotes erd
24475 \end_inset
24476
24477 .
24478  As stated above, the Converter is set to 
24479 \begin_inset Quotes eld
24480 \end_inset
24481
24482
24483 \family typewriter
24484 build-script $$i
24485 \family default
24486  $$r
24487 \begin_inset Quotes erd
24488 \end_inset
24489
24490 , with Flags set to
24491 \begin_inset Newline newline
24492 \end_inset
24493
24494
24495 \begin_inset Quotes eld
24496 \end_inset
24497
24498
24499 \family typewriter
24500 parselog=$$s/scripts/listerrors
24501 \family default
24502
24503 \begin_inset Quotes erd
24504 \end_inset
24505
24506 .
24507 \end_layout
24508
24509 \begin_layout Subsubsection
24510 Debug extensions
24511 \end_layout
24512
24513 \begin_layout Standard
24514 There is also a new function implemented in the \SpecialChar LyX
24515  server, the 
24516 \begin_inset Quotes eld
24517 \end_inset
24518
24519 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24520  
24521 \end_layout
24522
24523 \begin_layout Standard
24524 When debugging code with ddd/gdb, it is possible to invoke a text editor
24525  at the current execution position with a single key stroke.
24526  The default ddd configuration for that is shift-ctrl-V.
24527  It happens that you can define the editor command line invocation in ddd
24528  by accessing the 
24529 \family sans
24530 Edit\SpecialChar menuseparator
24531 Preferences\SpecialChar menuseparator
24532 Helpers
24533 \family default
24534  dialog and changing the "Edit Sources" entry.
24535 \end_layout
24536
24537 \begin_layout Standard
24538 I take advantage of the newly created \SpecialChar LyX
24539  server function and this ddd feature,
24540  and set 
24541 \begin_inset Quotes eld
24542 \end_inset
24543
24544 Edit Sources
24545 \begin_inset Quotes erd
24546 \end_inset
24547
24548  to:
24549 \end_layout
24550
24551 \begin_layout Standard
24552 \begin_inset VSpace defskip
24553 \end_inset
24554
24555
24556 \end_layout
24557
24558 \begin_layout Standard
24559
24560 \family sans
24561 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24562 \end_layout
24563
24564 \begin_layout Standard
24565 \begin_inset VSpace defskip
24566 \end_inset
24567
24568
24569 \end_layout
24570
24571 \begin_layout Standard
24572 With this, whenever you are using ddd and find a point in the program that
24573  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24574  ddd will forward this information to \SpecialChar LyX
24575  through the \SpecialChar LyX
24576  server and then the
24577  \SpecialChar LyX
24578  window will show the same file with the cursor at the same position ddd
24579  was pointing to.
24580  No more guessing or long scrolling to locate a point in the program back
24581  from debugging !
24582 \end_layout
24583
24584 \begin_layout Standard
24585 Note however that you must enable the \SpecialChar LyX
24586  server to get this feature working
24587  (it is disabled by default).
24588  You can enable it in 
24589 \family sans
24590 Preferences
24591 \family default
24592  (tabs 
24593 \family sans
24594 Inputs
24595 \family default
24596
24597 \family sans
24598 Paths
24599 \family default
24600 ) by entering in the 
24601 \family sans
24602 \SpecialChar LyX
24603 server pipe
24604 \family default
24605  a path like 
24606 \begin_inset Quotes eld
24607 \end_inset
24608
24609
24610 \family typewriter
24611 /home/<your-home-directory>/.lyx/lyxpipe
24612 \family default
24613
24614 \begin_inset Quotes erd
24615 \end_inset
24616
24617
24618 \end_layout
24619
24620 \begin_layout Standard
24621 Read the \SpecialChar LyX
24622  server documentation in the 
24623 \emph on
24624 Customization Manual
24625 \emph default
24626  for further information.
24627 \end_layout
24628
24629 \begin_layout Subsubsection
24630 Toolbar extensions
24631 \end_layout
24632
24633 \begin_layout Standard
24634 There are six new buttons that can be added to your \SpecialChar LyX
24635  toolbar.
24636  Five of these buttons are short cuts to layout styles: 
24637 \family sans
24638 Standard
24639 \family default
24640
24641 \family sans
24642 Section
24643 \family default
24644
24645 \family sans
24646 \SpecialChar LaTeX
24647
24648 \family default
24649
24650 \family sans
24651 \SpecialChar LyX
24652 -Code
24653 \family default
24654 , and 
24655 \family sans
24656 Chunk
24657 \family default
24658 .
24659  The last one is a short cut to the 
24660 \begin_inset Quotes eld
24661 \end_inset
24662
24663 Build Program
24664 \begin_inset Quotes erd
24665 \end_inset
24666
24667  File menu entry.
24668  
24669 \end_layout
24670
24671 \begin_layout Standard
24672 \SpecialChar LyX
24673  has a range of buttons that are available for tool bar customization.
24674  In my toolbar I like to combine the six short cuts above with two more:
24675  One for 
24676 \family sans
24677 Document
24678 \family default
24679 \SpecialChar menuseparator
24680
24681 \family sans
24682 Update
24683 \family default
24684 \SpecialChar menuseparator
24685
24686 \family sans
24687 DVI
24688 \family default
24689  and the other for 
24690 \family sans
24691 Document\SpecialChar menuseparator
24692 View\SpecialChar menuseparator
24693 DVI
24694 \family default
24695  File menu entries.
24696  Here is how it looks like:
24697 \end_layout
24698
24699 \begin_layout LyX-Code
24700 Toolbar
24701 \end_layout
24702
24703 \begin_layout LyX-Code
24704   Layouts
24705 \end_layout
24706
24707 \begin_layout LyX-Code
24708   Icon "layout Standard"
24709 \end_layout
24710
24711 \begin_layout LyX-Code
24712   Icon "layout Section"
24713 \end_layout
24714
24715 \begin_layout LyX-Code
24716   Icon "layout \SpecialChar LaTeX
24717 "
24718 \end_layout
24719
24720 \begin_layout LyX-Code
24721   Icon "layout \SpecialChar LyX
24722 -Code"
24723 \end_layout
24724
24725 \begin_layout LyX-Code
24726   Icon "layout Chunk"
24727 \end_layout
24728
24729 \begin_layout LyX-Code
24730   Separator
24731 \end_layout
24732
24733 \begin_layout LyX-Code
24734   Icon "buffer-view"
24735 \end_layout
24736
24737 \begin_layout LyX-Code
24738   Icon "buffer-typeset"
24739 \end_layout
24740
24741 \begin_layout LyX-Code
24742   Icon "build-program"
24743 \end_layout
24744
24745 \begin_layout LyX-Code
24746   Separator
24747 \end_layout
24748
24749 \begin_layout LyX-Code
24750 .
24751 \end_layout
24752
24753 \begin_layout LyX-Code
24754 .
24755 \end_layout
24756
24757 \begin_layout LyX-Code
24758 .
24759 \end_layout
24760
24761 \begin_layout LyX-Code
24762 End
24763 \end_layout
24764
24765 \begin_layout Subsubsection
24766 Colors customization
24767 \end_layout
24768
24769 \begin_layout Standard
24770 There are a number of colors in \SpecialChar LyX
24771  that can be customized in 
24772 \family sans
24773 Preferences
24774 \family default
24775 .
24776  One of the things that bothers people is the \SpecialChar LaTeX
24777  font color.
24778  The default color is red, since the chunks uses \SpecialChar LaTeX
24779  font, and there is a lot
24780  of chunks in literate documents, you may get tired of seeing everything
24781  in red.
24782  You can change it by going to the tabs 
24783 \family sans
24784 Look&Feel
24785 \family default
24786
24787 \family sans
24788 Colors.
24789 \end_layout
24790
24791 \begin_layout Standard
24792 The next thing is the visible presence of the newline character in the screen.
24793  You can choose the color of this particular character and make it blend
24794  in the background.
24795  I recommend you choosing a color that is close to the background but not
24796  equal, that way you still can see it is there, but it is not bothering
24797  you anymore.
24798 \end_layout
24799
24800 \begin_layout Subsection
24801 \SpecialChar LyX
24802  and knitr/Sweave
24803 \end_layout
24804
24805 \begin_layout Standard
24806 Support for 
24807 \family sans
24808 knitr
24809 \family default
24810  and 
24811 \family sans
24812 Sweave
24813 \family default
24814  is documented in the 
24815 \emph on
24816 knitr.lyx
24817 \emph default
24818  example file and in the Sweave manual (menu 
24819 \family sans
24820 Help\SpecialChar menuseparator
24821 Specific Manuals
24822 \family default
24823 ).
24824 \end_layout
24825
24826 \begin_layout Chapter
24827 Special features
24828 \end_layout
24829
24830 \begin_layout Standard
24831 You can do everything with \SpecialChar LyX
24832  that you can do with \SpecialChar LaTeX
24833 .
24834  However, \SpecialChar LyX
24835  cannot support every \SpecialChar LaTeX
24836  feature directly.
24837  But you can always use \SpecialChar TeX
24838  Code.
24839  This chapter shows you some more special things you might want to use.
24840  For other special things you can do with figures, tables, floats, boxes
24841  and notes, have a look at the 
24842 \emph on
24843 Embedded
24844 \begin_inset space ~
24845 \end_inset
24846
24847 Objects
24848 \emph default
24849  manual.
24850 \end_layout
24851
24852 \begin_layout Section
24853 Multiple Text Columns
24854 \end_layout
24855
24856 \begin_layout Standard
24857 This feature is independent of the option 
24858 \family sans
24859 Two-column document
24860 \family default
24861  in the document settings under 
24862 \family sans
24863 Text Layout
24864 \family default
24865 .
24866  If you want to have 2
24867 \begin_inset space ~
24868 \end_inset
24869
24870 columns for the whole document, it is recommended to use the 
24871 \family sans
24872 Two-column document
24873 \family default
24874  option.
24875  For all other cases use this feature.
24876 \end_layout
24877
24878 \begin_layout Standard
24879 To use multiple text columns in your document, you have to load the module
24880  
24881 \family sans
24882 Multiple Columns
24883 \family default
24884  (menu 
24885 \family sans
24886 Document\SpecialChar menuseparator
24887 Settings\SpecialChar menuseparator
24888 Modules
24889 \family default
24890 ) and must have the \SpecialChar LaTeX
24891 -package 
24892 \series bold
24893 multicol
24894 \series default
24895  installed.
24896 \end_layout
24897
24898 \begin_layout Standard
24899 Footnotes within multiple columns will be placed at the bottom of the page
24900  and not under each column.
24901  Within the different columns you can use everything, with the limitation
24902  that for floats you need to use the float option 
24903 \family sans
24904 Span columns
24905 \family default
24906 .
24907 \end_layout
24908
24909 \begin_layout Subsection
24910 Basics
24911 \end_layout
24912
24913 \begin_layout Standard
24914 If you want to have 2
24915 \begin_inset space ~
24916 \end_inset
24917
24918 columns in your text, insert a multicolumn inset via the menu 
24919 \family sans
24920 Insert\SpecialChar menuseparator
24921 Custom
24922 \begin_inset space ~
24923 \end_inset
24924
24925 Insets\SpecialChar menuseparator
24926 Multiple
24927 \begin_inset space ~
24928 \end_inset
24929
24930 Columns
24931 \family default
24932  where the columns should start.
24933  Write all text that should be printed in 2
24934 \begin_inset space ~
24935 \end_inset
24936
24937 columns into this inset.
24938 \end_layout
24939
24940 \begin_layout Standard
24941 Here is an example:
24942 \end_layout
24943
24944 \begin_layout Standard
24945 \noindent
24946 \begin_inset Flex Multiple Columns
24947 status open
24948
24949 \begin_layout Plain Layout
24950 \noindent
24951
24952 \series bold
24953 \size small
24954 The Adventure of the Empty House
24955 \series default
24956
24957 \begin_inset Newline newline
24958 \end_inset
24959
24960 by Sir Arthur Conan Doyle
24961 \end_layout
24962
24963 \begin_layout Plain Layout
24964
24965 \size small
24966 It was in the spring of the year 1894 that all London was interested, and
24967  the fashionable world dismayed, by the murder of the Honourable Ronald
24968  Adair under most unusual and inexplicable circumstances.
24969  The public has already learned those particulars of the crime which came
24970  out in the police investigation, but a good deal was suppressed upon that
24971  occasion, since the case for the prosecution was so overwhelmingly strong
24972  that it was not necessary to bring forward all the facts.
24973  Only now, at the end of nearly ten years, am I allowed to supply those
24974  missing links which make up the whole of that remarkable chain.
24975  The crime was of interest in itself, but that interest was as nothing to
24976  me compared to the inconceivable sequel, which afforded me the greatest
24977  shock and surprise of any event in my adventurous life.
24978  Even now, after this long interval, I find myself thrilling as I think
24979  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24980 ty which utterly submerged my mind.
24981  Let me say to that public, which has shown some interest in those glimpses
24982  which I have occasionally given them of the thoughts and actions of a very
24983  remarkable man, that they are not to blame me if I have not shared my knowledge
24984  with them, for I should have considered it my first duty to do so, had
24985  I not been barred by a positive prohibition from his own lips, which was
24986  only withdrawn upon the third of last month.
24987 \end_layout
24988
24989 \end_inset
24990
24991
24992 \end_layout
24993
24994 \begin_layout Standard
24995 To get 3 or more columns, set the cursor into the multicolumn inset and
24996  use the menu 
24997 \family sans
24998 Insert\SpecialChar menuseparator
24999 Number
25000 \begin_inset space ~
25001 \end_inset
25002
25003 of
25004 \begin_inset space ~
25005 \end_inset
25006
25007 Columns
25008 \family default
25009 .
25010  The number of the desired columns is written into that inset (for 3
25011 \begin_inset space ~
25012 \end_inset
25013
25014 columns write 
25015 \begin_inset Quotes eld
25016 \end_inset
25017
25018 3
25019 \begin_inset Quotes erd
25020 \end_inset
25021
25022 ).
25023 \begin_inset Newline newline
25024 \end_inset
25025
25026 Here is an example with 3
25027 \begin_inset space ~
25028 \end_inset
25029
25030 columns:
25031 \end_layout
25032
25033 \begin_layout Standard
25034 \begin_inset Flex Multiple Columns
25035 status open
25036
25037 \begin_layout Plain Layout
25038
25039 \size footnotesize
25040 \begin_inset Argument 1
25041 status open
25042
25043 \begin_layout Plain Layout
25044 3
25045 \end_layout
25046
25047 \end_inset
25048
25049 It can be imagined that my close intimacy with Sherlock Holmes had interested
25050  me deeply in crime, and that after his disappearance I never failed to
25051  read with care the various problems which came before the public.
25052  And I even attempted, more than once, for my own private satisfaction,
25053  to employ his methods in their solution, though with indifferent success.
25054  There was none, however, which appealed to me like this tragedy of Ronald
25055  Adair.
25056  As I read the evidence at the inquest, which led up to a verdict of willful
25057  murder against some person or persons unknown, I realized more clearly
25058  than I had ever done the loss which the community had sustained by the
25059  death of Sherlock Holmes.
25060  There were points about this strange business which would, I was sure,
25061  have specially appealed to him, and the efforts of the police would have
25062  been supplemented, or more probably anticipated, by the trained observation
25063  and the alert mind of the first criminal agent in Europe.
25064  All day, as I drove upon my round, I turned over the case in my mind and
25065  found no explanation which appeared to me to be adequate.
25066  At the risk of telling a twice-told tale, I will recapitulate the facts
25067  as they were known to the public at the conclusion of the inquest.
25068 \end_layout
25069
25070 \end_inset
25071
25072
25073 \end_layout
25074
25075 \begin_layout Standard
25076 You can have up to 10
25077 \begin_inset space ~
25078 \end_inset
25079
25080 columns if you want to, but that might not be very pleasant for the readers
25081  of your document.
25082 \end_layout
25083
25084 \begin_layout Standard
25085 \begin_inset Newpage newpage
25086 \end_inset
25087
25088
25089 \end_layout
25090
25091 \begin_layout Subsection
25092 Columns inside Columns
25093 \end_layout
25094
25095 \begin_layout Standard
25096 You can also have columns inside columns:
25097 \end_layout
25098
25099 \begin_layout Standard
25100 \begin_inset Flex Multiple Columns
25101 status open
25102
25103 \begin_layout Plain Layout
25104
25105 \size footnotesize
25106 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
25107  at that time governor of one of the Australian colonies.
25108  Adair's mother had returned from Australia to undergo the operation for
25109  cataract, and she, her son Ronald, and her daughter Hilda were living together
25110  at 427 Park Lane.
25111 \end_layout
25112
25113 \begin_layout Plain Layout
25114 \begin_inset Flex Multiple Columns
25115 status open
25116
25117 \begin_layout Plain Layout
25118
25119 \size footnotesize
25120 The youth moved in the best society–had, so far as was known, no enemies
25121  and no particular vices.
25122  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
25123  had been broken off by mutual consent some months before, and there was
25124  no sign that it had left any very profound feeling behind it.
25125  For the rest {sic} the man's life moved in a narrow and conventional circle,
25126  for his habits were quiet and his nature unemotional.
25127  Yet it was upon this easy-going young aristocrat that death came, in most
25128  strange and unexpected form, between the hours of ten and eleven-twenty
25129  on the night of March 30, 1894.
25130 \end_layout
25131
25132 \end_inset
25133
25134
25135 \end_layout
25136
25137 \begin_layout Plain Layout
25138
25139 \size footnotesize
25140 Ronald Adair was fond of cards–playing continually, but never for such stakes
25141  as would hurt him.
25142  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
25143  It was shown that, after dinner on the day of his death, he had played
25144  a rubber of whist at the latter club.
25145  He had also played there in the afternoon.
25146
25147 \size default
25148  
25149 \size footnotesize
25150 The evidence of those who had played with him– Mr.
25151  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
25152  and that there was a fairly equal fall of the cards.
25153  Adair might have lost five pounds, but not more.
25154  His fortune was a considerable one, and such a loss could not in any way
25155  affect him.
25156  He had played nearly every day at one club or other, but he was a cautious
25157  player, and usually rose a winner.
25158  It came out in evidence that, in partnership with Colonel Moran, he had
25159  actually won as much as four hundred and twenty pounds in a sitting, some
25160  weeks before, from Godfrey Milner and Lord Balmoral.
25161  So much for his recent history as it came out at the inquest.
25162 \end_layout
25163
25164 \end_inset
25165
25166
25167 \end_layout
25168
25169 \begin_layout Subsection
25170 Advanced Examples
25171 \end_layout
25172
25173 \begin_layout Standard
25174 The examples in this section show some more special features of multiple
25175  columns.
25176 \end_layout
25177
25178 \begin_layout Standard
25179 For more features of multiple columns, have a look at the documentation
25180  of the \SpecialChar LaTeX
25181 -package 
25182 \series bold
25183 multicol
25184 \series default
25185
25186 \begin_inset CommandInset citation
25187 LatexCommand cite
25188 key "multicol"
25189 literal "true"
25190
25191 \end_inset
25192
25193 .
25194 \end_layout
25195
25196 \begin_layout Subsubsection
25197 Preface
25198 \end_layout
25199
25200 \begin_layout Standard
25201 To add a preface text for multiple columns, set the cursor into the multicolumn
25202  inset and use the menu 
25203 \family sans
25204 Insert\SpecialChar menuseparator
25205 Preface
25206 \family default
25207 .
25208  Write your preface text into that inset.
25209 \begin_inset Newline newline
25210 \end_inset
25211
25212 This is an example with some preface text:
25213 \end_layout
25214
25215 \begin_layout Standard
25216 \begin_inset VSpace bigskip
25217 \end_inset
25218
25219
25220 \end_layout
25221
25222 \begin_layout Standard
25223 \begin_inset Flex Multiple Columns
25224 status open
25225
25226 \begin_layout Plain Layout
25227 \begin_inset Argument 2
25228 status open
25229
25230 \begin_layout Plain Layout
25231 And the story continues and continues and continues and continues\SpecialChar ldots
25232
25233 \end_layout
25234
25235 \end_inset
25236
25237
25238 \size small
25239 On the evening of the crime, he returned from the club exactly at ten.
25240  His mother and sister were out spending the evening with a relation.
25241  The servant deposed that she heard him enter the front room on the second
25242  floor, generally used as his sitting-room.
25243  She had lit a fire there, and as it smoked she had opened the window.
25244  No sound was heard from the room until eleven-twenty, the hour of the return
25245  of Lady Maynooth and her daughter.
25246  Desiring to say good-night, she attempted to enter her son's room.
25247  The door was locked on the inside, and no answer could be got to their
25248  cries and knocking.
25249  Help was obtained, and the door forced.
25250  The unfortunate young man was found lying near the table.
25251  His head had been horribly mutilated by an expanding revolver bullet, but
25252  no weapon of any sort was to be found in the room.
25253 \end_layout
25254
25255 \end_inset
25256
25257
25258 \end_layout
25259
25260 \begin_layout Standard
25261 You can also use a section heading as the preface if you use a section command
25262  as \SpecialChar TeX
25263  Code.
25264  For example the command
25265 \end_layout
25266
25267 \begin_layout Standard
25268
25269 \series bold
25270
25271 \backslash
25272 subsection{subsection title}
25273 \end_layout
25274
25275 \begin_layout Standard
25276 creates a subsection.
25277  In this example the preface is a subsubsection:
25278 \end_layout
25279
25280 \begin_layout Standard
25281 \begin_inset Flex Multiple Columns
25282 status open
25283
25284 \begin_layout Plain Layout
25285 \begin_inset Argument 2
25286 status open
25287
25288 \begin_layout Plain Layout
25289 \begin_inset ERT
25290 status collapsed
25291
25292 \begin_layout Plain Layout
25293
25294
25295 \backslash
25296 subsubsection{
25297 \end_layout
25298
25299 \end_inset
25300
25301 This is a subsubsection heading as a preface
25302 \begin_inset ERT
25303 status collapsed
25304
25305 \begin_layout Plain Layout
25306
25307 }
25308 \end_layout
25309
25310 \end_inset
25311
25312
25313 \end_layout
25314
25315 \end_inset
25316
25317
25318 \size small
25319 A minute examination of the circumstances served only to make the case more
25320  complex.
25321  In the first place, no reason could be given why the young man should have
25322  fastened the door upon the inside.
25323  There was the possibility that the murderer had done this, and had afterwards
25324  escaped by the window.
25325  The drop was at least twenty feet, however, and a bed of crocuses in full
25326  bloom lay beneath.
25327  Neither the flowers nor the earth showed any sign of having been disturbed,
25328  nor were there any marks upon the narrow strip of grass which separated
25329  the house from the road.
25330  Apparently, therefore, it was the young man himself who had fastened the
25331  door.
25332  But how did he come by his death? No one could have climbed up to the window
25333  without leaving traces.
25334  Suppose a man had fired through the window, he would indeed be a remarkable
25335  shot who could with a revolver inflict so deadly a wound.
25336  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
25337  a hundred yards of the house.
25338  No one had heard a shot.
25339 \end_layout
25340
25341 \end_inset
25342
25343
25344 \end_layout
25345
25346 \begin_layout Standard
25347 If there is less vertical space than 6
25348 \begin_inset space ~
25349 \end_inset
25350
25351 text lines is left on the page at the beginning of the multiple columns,
25352  a page break will be inserted before the multiple columns.
25353  Depending on the number of lines of the preface text, you might want to
25354  change this space.
25355  This is done by setting the cursor into the mulitcolumn inset behind the
25356  preface (if there is any) and using the menu 
25357 \family sans
25358 Insert\SpecialChar menuseparator
25359 Space
25360 \begin_inset space ~
25361 \end_inset
25362
25363 Before
25364 \begin_inset space ~
25365 \end_inset
25366
25367 Page
25368 \begin_inset space ~
25369 \end_inset
25370
25371 Break
25372 \family default
25373 .
25374  Insert into that inset the amount of space like e.
25375 \begin_inset space \thinspace{}
25376 \end_inset
25377
25378 g.
25379 \begin_inset space \space{}
25380 \end_inset
25381
25382
25383 \begin_inset Quotes eld
25384 \end_inset
25385
25386 5cm
25387 \begin_inset Quotes erd
25388 \end_inset
25389
25390 .
25391 \begin_inset Newline newline
25392 \end_inset
25393
25394 In this example the space is set to 7
25395 \begin_inset space ~
25396 \end_inset
25397
25398 text lines by using 
25399 \begin_inset Quotes eld
25400 \end_inset
25401
25402 7
25403 \backslash
25404 baselineskip
25405 \begin_inset Quotes erd
25406 \end_inset
25407
25408  (where the command 
25409 \series bold
25410
25411 \backslash
25412 baselineskip
25413 \series default
25414  needs to be inserted as \SpecialChar TeX
25415  code):
25416 \end_layout
25417
25418 \begin_layout Standard
25419 \begin_inset Flex Multiple Columns
25420 status open
25421
25422 \begin_layout Plain Layout
25423 \begin_inset Argument 3
25424 status open
25425
25426 \begin_layout Plain Layout
25427 7
25428 \begin_inset ERT
25429 status collapsed
25430
25431 \begin_layout Plain Layout
25432
25433
25434 \backslash
25435 baselineskip
25436 \end_layout
25437
25438 \end_inset
25439
25440
25441 \end_layout
25442
25443 \end_inset
25444
25445
25446 \size small
25447 On the evening of the crime, he returned from the club exactly at ten.
25448  His mother and sister were out spending the evening with a relation.
25449  The servant deposed that she heard him enter the front room on the second
25450  floor, generally used as his sitting-room.
25451  She had lit a fire there, and as it smoked she had opened the window.
25452  No sound was heard from the room until eleven-twenty, the hour of the return
25453  of Lady Maynooth and her daughter.
25454  Desiring to say good-night, she attempted to enter her son's room.
25455  The door was locked on the inside, and no answer could be got to their
25456  cries and knocking.
25457  Help was obtained, and the door forced.
25458  The unfortunate young man was found lying near the table.
25459  His head had been horribly mutilated by an expanding revolver bullet, but
25460  no weapon of any sort was to be found in the room.
25461 \end_layout
25462
25463 \end_inset
25464
25465
25466 \end_layout
25467
25468 \begin_layout Subsubsection
25469 Surrounding Space
25470 \end_layout
25471
25472 \begin_layout Standard
25473 The amount of space before and after multiple columns can be changed by
25474  changing the length 
25475 \series bold
25476
25477 \backslash
25478 multicolsep
25479 \series default
25480 .
25481  For example the command
25482 \end_layout
25483
25484 \begin_layout Standard
25485
25486 \series bold
25487
25488 \backslash
25489 setlength{
25490 \backslash
25491 multicolsep}{3cm}
25492 \end_layout
25493
25494 \begin_layout Standard
25495 in \SpecialChar TeX
25496  Code changes its value to 3
25497 \begin_inset space \thinspace{}
25498 \end_inset
25499
25500 cm.
25501  The change must be made before the multiple columns' start.
25502  The predefined value is 13
25503 \begin_inset space \thinspace{}
25504 \end_inset
25505
25506 pt.
25507 \end_layout
25508
25509 \begin_layout Standard
25510 For this example 
25511 \series bold
25512
25513 \backslash
25514 multicolsep
25515 \series default
25516  was set to 2.5
25517 \begin_inset space \thinspace{}
25518 \end_inset
25519
25520 cm:
25521 \end_layout
25522
25523 \begin_layout Standard
25524 \begin_inset ERT
25525 status open
25526
25527 \begin_layout Plain Layout
25528
25529
25530 \backslash
25531 setlength{
25532 \backslash
25533 multicolsep}{2.5cm}
25534 \end_layout
25535
25536 \end_inset
25537
25538
25539 \end_layout
25540
25541 \begin_layout Standard
25542 \begin_inset Flex Multiple Columns
25543 status open
25544
25545 \begin_layout Plain Layout
25546
25547 \size small
25548 All day I turned these facts over in my mind, endeavouring to hit upon some
25549  theory which could reconcile them all, and to find that line of least resistanc
25550 e which my poor friend had declared to be the starting-point of every investigat
25551 ion.
25552  I confess that I made little progress.
25553  In the evening I strolled across the Park, and found myself about six o'clock
25554  at the Oxford Street end of Park Lane.
25555  A group of loafers upon the pavements, all staring up at a particular window,
25556  directed me to the house which I had come to see.
25557  A tall, thin man with coloured glasses, whom I strongly suspected of being
25558  a plain-clothes detective, was pointing out some theory of his own, while
25559  the others crowded round to listen to what he said.
25560  I got as near him as I could, but his observations seemed to me to be absurd,
25561  so I withdrew again in some disgust.
25562  As I did so I struck against an elderly, deformed man, who had been behind
25563  me, and I knocked down several books which he was carrying.
25564 \end_layout
25565
25566 \end_inset
25567
25568
25569 \end_layout
25570
25571 \begin_layout Standard
25572 \begin_inset Note Greyedout
25573 status open
25574
25575 \begin_layout Plain Layout
25576
25577 \series bold
25578 Note:
25579 \series default
25580  The values you set with 
25581 \series bold
25582
25583 \backslash
25584 setlength
25585 \series default
25586  will be used for all following multiple columns until you change them again.
25587 \end_layout
25588
25589 \end_inset
25590
25591
25592 \end_layout
25593
25594 \begin_layout Standard
25595 \begin_inset ERT
25596 status collapsed
25597
25598 \begin_layout Plain Layout
25599
25600
25601 \backslash
25602 setlength{
25603 \backslash
25604 multicolsep}{13pt}
25605 \end_layout
25606
25607 \end_inset
25608
25609
25610 \begin_inset Note Note
25611 status collapsed
25612
25613 \begin_layout Plain Layout
25614 go back to the default
25615 \end_layout
25616
25617 \end_inset
25618
25619
25620 \end_layout
25621
25622 \begin_layout Standard
25623 \begin_inset Newpage newpage
25624 \end_inset
25625
25626
25627 \end_layout
25628
25629 \begin_layout Subsubsection
25630 Column Breaks
25631 \end_layout
25632
25633 \begin_layout Standard
25634 A column break can be forced by inserting the command 
25635 \series bold
25636
25637 \backslash
25638 columnbreak{}
25639 \series default
25640  as \SpecialChar TeX
25641  Code to that position in the text where the column should be broken.
25642  Note that this leads in most cases to whitespace in the text.
25643 \begin_inset Newline newline
25644 \end_inset
25645
25646 Here is an example:
25647 \end_layout
25648
25649 \begin_layout Standard
25650 \begin_inset Flex Multiple Columns
25651 status open
25652
25653 \begin_layout Plain Layout
25654
25655 \size small
25656 \begin_inset Quotes eld
25657 \end_inset
25658
25659 You're surprised to see me, sir,
25660 \begin_inset Quotes erd
25661 \end_inset
25662
25663  said he, in a strange, croaking voice.
25664 \end_layout
25665
25666 \begin_layout Plain Layout
25667
25668 \size small
25669 I acknowledged that I was.
25670 \end_layout
25671
25672 \begin_layout Plain Layout
25673
25674 \size small
25675 \begin_inset Quotes eld
25676 \end_inset
25677
25678 Well, I've a conscience, sir, and when I chanced to see you go into this
25679  house, as I came hobbling after you, I thought to myself, I'll just step
25680  in and see that kind gentleman, and tell him that if I was a bit gruff
25681  in my manner there was not any harm meant, and that I am much obliged to
25682  him for picking up my books.
25683 \begin_inset Quotes erd
25684 \end_inset
25685
25686
25687 \end_layout
25688
25689 \begin_layout Plain Layout
25690
25691 \size small
25692 \begin_inset Quotes eld
25693 \end_inset
25694
25695 You make too much of a trifle,
25696 \begin_inset Quotes erd
25697 \end_inset
25698
25699  said I.
25700  
25701 \begin_inset Quotes eld
25702 \end_inset
25703
25704 May I ask how you knew who I was?
25705 \begin_inset Quotes erd
25706 \end_inset
25707
25708  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25709 \begin_inset ERT
25710 status collapsed
25711
25712 \begin_layout Plain Layout
25713
25714
25715 \backslash
25716 columnbreak{}
25717 \end_layout
25718
25719 \end_inset
25720
25721
25722 \end_layout
25723
25724 \begin_layout Plain Layout
25725
25726 \size small
25727 \begin_inset Quotes eld
25728 \end_inset
25729
25730 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25731  you'll find my little bookshop at the corner of Church Street, and very
25732  happy to see you, I am sure.
25733  Maybe you collect yourself, sir.
25734  Here's 
25735 \noun on
25736 British
25737 \begin_inset space ~
25738 \end_inset
25739
25740 Birds
25741 \noun default
25742 , and 
25743 \noun on
25744 Catullus
25745 \noun default
25746 , and 
25747 \noun on
25748 The Holy War
25749 \noun default
25750 –a bargain, every one of them.
25751  With five volumes you could just fill that gap on that second shelf.
25752  It looks untidy, does it not, sir?
25753 \begin_inset Quotes erd
25754 \end_inset
25755
25756
25757 \end_layout
25758
25759 \end_inset
25760
25761
25762 \end_layout
25763
25764 \begin_layout Subsubsection
25765 Column Separation
25766 \end_layout
25767
25768 \begin_layout Standard
25769 The width of the columns is automatically calculated, but you can modify
25770  the space between the columns.
25771  This is done by changing the length 
25772 \series bold
25773
25774 \backslash
25775 columnsep
25776 \series default
25777 .
25778  Its predefined value is 10
25779 \begin_inset space \thinspace{}
25780 \end_inset
25781
25782 pt.
25783  Here is an example where 
25784 \series bold
25785
25786 \backslash
25787 columnsep
25788 \series default
25789  is set to 3
25790 \begin_inset space \thinspace{}
25791 \end_inset
25792
25793 cm:
25794 \end_layout
25795
25796 \begin_layout Standard
25797 \begin_inset ERT
25798 status open
25799
25800 \begin_layout Plain Layout
25801
25802
25803 \backslash
25804 setlength{
25805 \backslash
25806 columnsep}{3cm}
25807 \end_layout
25808
25809 \end_inset
25810
25811
25812 \end_layout
25813
25814 \begin_layout Standard
25815 \begin_inset Flex Multiple Columns
25816 status open
25817
25818 \begin_layout Plain Layout
25819
25820 \size small
25821 My observations of No.
25822 \begin_inset space \space{}
25823 \end_inset
25824
25825 427 Park Lane did little to clear up the problem in which I was interested.
25826  The house was separated from the street by a low wall and railing, the
25827  whole not more than five feet high.
25828  It was perfectly easy, therefore, for anyone to get into the garden, but
25829  the window was entirely inaccessible, since there was no water pipe or
25830  anything which could help the most active man to climb it.
25831  More puzzled than ever, I retraced my steps to Kensington.
25832  I had not been in my study five minutes when the maid entered to say that
25833  a person desired to see me.
25834  To my astonishment it was none other than my strange old book collector,
25835  his sharp, wizened face peering out from a frame of white hair, and his
25836  precious volumes, a dozen of them at least, wedged under his right arm.
25837 \end_layout
25838
25839 \end_inset
25840
25841
25842 \end_layout
25843
25844 \begin_layout Standard
25845 \begin_inset ERT
25846 status collapsed
25847
25848 \begin_layout Plain Layout
25849
25850
25851 \backslash
25852 setlength{
25853 \backslash
25854 columnsep}{10pt}
25855 \end_layout
25856
25857 \end_inset
25858
25859
25860 \begin_inset Note Note
25861 status collapsed
25862
25863 \begin_layout Plain Layout
25864 go back to the default
25865 \end_layout
25866
25867 \end_inset
25868
25869
25870 \end_layout
25871
25872 \begin_layout Subsubsection
25873 Vertical Lines
25874 \end_layout
25875
25876 \begin_layout Standard
25877 Between the columns a rule with a width of the length 
25878 \series bold
25879
25880 \backslash
25881 columnseprule
25882 \series default
25883  is placed.
25884  If this rule width is set to 0
25885 \begin_inset space \thinspace{}
25886 \end_inset
25887
25888 pt (this is the default), the rule is suppressed.
25889  In the following example the rule is 2
25890 \begin_inset space \thinspace{}
25891 \end_inset
25892
25893 pt wide:
25894 \end_layout
25895
25896 \begin_layout Standard
25897 \begin_inset ERT
25898 status open
25899
25900 \begin_layout Plain Layout
25901
25902
25903 \backslash
25904 setlength{
25905 \backslash
25906 columnseprule}{2pt}
25907 \end_layout
25908
25909 \end_inset
25910
25911
25912 \end_layout
25913
25914 \begin_layout Standard
25915 \begin_inset Flex Multiple Columns
25916 status open
25917
25918 \begin_layout Plain Layout
25919
25920 \size small
25921 \begin_inset Quotes eld
25922 \end_inset
25923
25924 You're surprised to see me, sir,
25925 \begin_inset Quotes erd
25926 \end_inset
25927
25928  said he, in a strange, croaking voice.
25929 \end_layout
25930
25931 \begin_layout Plain Layout
25932
25933 \size small
25934 I acknowledged that I was.
25935 \end_layout
25936
25937 \begin_layout Plain Layout
25938
25939 \size small
25940 \begin_inset Quotes eld
25941 \end_inset
25942
25943 Well, I've a conscience, sir, and when I chanced to see you go into this
25944  house, as I came hobbling after you, I thought to myself, I'll just step
25945  in and see that kind gentleman, and tell him that if I was a bit gruff
25946  in my manner there was not any harm meant, and that I am much obliged to
25947  him for picking up my books.
25948 \begin_inset Quotes erd
25949 \end_inset
25950
25951
25952 \end_layout
25953
25954 \begin_layout Plain Layout
25955
25956 \size small
25957 \begin_inset Quotes eld
25958 \end_inset
25959
25960 You make too much of a trifle,
25961 \begin_inset Quotes erd
25962 \end_inset
25963
25964  said I.
25965  
25966 \begin_inset Quotes eld
25967 \end_inset
25968
25969 May I ask how you knew who I was?
25970 \begin_inset Quotes erd
25971 \end_inset
25972
25973
25974 \end_layout
25975
25976 \begin_layout Plain Layout
25977
25978 \size small
25979 \begin_inset Quotes eld
25980 \end_inset
25981
25982 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25983  you'll find my little bookshop at the corner of Church Street, and very
25984  happy to see you, I am sure.
25985  Maybe you collect yourself, sir.
25986  Here's 
25987 \noun on
25988 British
25989 \begin_inset space ~
25990 \end_inset
25991
25992 Birds
25993 \noun default
25994 , and 
25995 \noun on
25996 Catullus
25997 \noun default
25998 , and 
25999 \noun on
26000 The Holy War
26001 \noun default
26002 –a bargain, every one of them.
26003  With five volumes you could just fill that gap on that second shelf.
26004  It looks untidy, does it not, sir?
26005 \begin_inset Quotes erd
26006 \end_inset
26007
26008
26009 \end_layout
26010
26011 \end_inset
26012
26013
26014 \end_layout
26015
26016 \begin_layout Standard
26017 \begin_inset VSpace defskip
26018 \end_inset
26019
26020
26021 \end_layout
26022
26023 \begin_layout Standard
26024 The rule can be colored by redefining the command 
26025 \series bold
26026
26027 \backslash
26028 columnseprulecolor
26029 \series default
26030 .
26031  This is done by inserting the command
26032 \begin_inset Newline newline
26033 \end_inset
26034
26035
26036 \series bold
26037
26038 \backslash
26039 renewcommand{
26040 \backslash
26041 columnseprulecolor}{
26042 \backslash
26043 color{red}}
26044 \series default
26045
26046 \begin_inset Newline newline
26047 \end_inset
26048
26049 as \SpecialChar TeX
26050  Code before the multicolumn inset.
26051  Replace 
26052 \series bold
26053 red
26054 \series default
26055  in this command by a color of your choice.
26056  You can use all pre- and self-defined colors.
26057  See the 
26058 \emph on
26059 EmbeddedObjects
26060 \emph default
26061  manual, section 
26062 \emph on
26063 Colored
26064 \begin_inset space ~
26065 \end_inset
26066
26067 Tables
26068 \emph default
26069  for more information about pre- and self-defined colors.
26070  To go back to the default color insert the command
26071 \begin_inset Newline newline
26072 \end_inset
26073
26074
26075 \series bold
26076
26077 \backslash
26078 renewcommand{
26079 \backslash
26080 columnseprulecolor}{
26081 \backslash
26082 normalcolor}
26083 \series default
26084
26085 \begin_inset Newline newline
26086 \end_inset
26087
26088 Here is the example with a cyan rule and 1
26089 \begin_inset space \thinspace{}
26090 \end_inset
26091
26092 cm column separation:
26093 \end_layout
26094
26095 \begin_layout Standard
26096 \begin_inset ERT
26097 status open
26098
26099 \begin_layout Plain Layout
26100
26101
26102 \backslash
26103 setlength{
26104 \backslash
26105 columnsep}{1cm}
26106 \end_layout
26107
26108 \begin_layout Plain Layout
26109
26110
26111 \backslash
26112 renewcommand{
26113 \backslash
26114 columnseprulecolor}{
26115 \backslash
26116 color{cyan}}
26117 \end_layout
26118
26119 \end_inset
26120
26121
26122 \end_layout
26123
26124 \begin_layout Standard
26125 \begin_inset Flex Multiple Columns
26126 status open
26127
26128 \begin_layout Plain Layout
26129
26130 \size small
26131 \begin_inset Quotes eld
26132 \end_inset
26133
26134 You're surprised to see me, sir,
26135 \begin_inset Quotes erd
26136 \end_inset
26137
26138  said he, in a strange, croaking voice.
26139 \end_layout
26140
26141 \begin_layout Plain Layout
26142
26143 \size small
26144 I acknowledged that I was.
26145 \end_layout
26146
26147 \begin_layout Plain Layout
26148
26149 \size small
26150 \begin_inset Quotes eld
26151 \end_inset
26152
26153 Well, I've a conscience, sir, and when I chanced to see you go into this
26154  house, as I came hobbling after you, I thought to myself, I'll just step
26155  in and see that kind gentleman, and tell him that if I was a bit gruff
26156  in my manner there was not any harm meant, and that I am much obliged to
26157  him for picking up my books.
26158 \begin_inset Quotes erd
26159 \end_inset
26160
26161
26162 \end_layout
26163
26164 \begin_layout Plain Layout
26165
26166 \size small
26167 \begin_inset Quotes eld
26168 \end_inset
26169
26170 You make too much of a trifle,
26171 \begin_inset Quotes erd
26172 \end_inset
26173
26174  said I.
26175  
26176 \begin_inset Quotes eld
26177 \end_inset
26178
26179 May I ask how you knew who I was?
26180 \begin_inset Quotes erd
26181 \end_inset
26182
26183
26184 \end_layout
26185
26186 \begin_layout Plain Layout
26187
26188 \size small
26189 \begin_inset Quotes eld
26190 \end_inset
26191
26192 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26193  you'll find my little bookshop at the corner of Church Street, and very
26194  happy to see you, I am sure.
26195  Maybe you collect yourself, sir.
26196  Here's 
26197 \noun on
26198 British
26199 \begin_inset space ~
26200 \end_inset
26201
26202 Birds
26203 \noun default
26204 , and 
26205 \noun on
26206 Catullus
26207 \noun default
26208 , and 
26209 \noun on
26210 The Holy War
26211 \noun default
26212 –a bargain, every one of them.
26213  With five volumes you could just fill that gap on that second shelf.
26214  It looks untidy, does it not, sir?
26215 \begin_inset Quotes erd
26216 \end_inset
26217
26218
26219 \end_layout
26220
26221 \end_inset
26222
26223
26224 \end_layout
26225
26226 \begin_layout Standard
26227 \begin_inset ERT
26228 status collapsed
26229
26230 \begin_layout Plain Layout
26231
26232
26233 \backslash
26234 setlength{
26235 \backslash
26236 columnseprule}{0pt}
26237 \end_layout
26238
26239 \begin_layout Plain Layout
26240
26241
26242 \backslash
26243 renewcommand{
26244 \backslash
26245 columnseprulecolor}{
26246 \backslash
26247 normalcolor}
26248 \end_layout
26249
26250 \end_inset
26251
26252
26253 \begin_inset Note Note
26254 status collapsed
26255
26256 \begin_layout Plain Layout
26257 go back to the default
26258 \end_layout
26259
26260 \end_inset
26261
26262
26263 \end_layout
26264
26265 \begin_layout Section
26266 Non-standard Paragraph Shapes
26267 \end_layout
26268
26269 \begin_layout Standard
26270 \noindent
26271 \SpecialChar LaTeX
26272  as well as any other text processor uses by default rectangular paragraphs.
26273  For special cases like for example posters, invitation cards or poems you
26274  can modify the paragraph shape to one of your choice.
26275  This can be done by using the \SpecialChar LaTeX
26276 -package 
26277 \series bold
26278 shapepar
26279 \series default
26280  which is loaded by using in the document settings the module 
26281 \family sans
26282 Custom paragraph shapes
26283 \family default
26284 .
26285 \end_layout
26286
26287 \begin_layout Subsection
26288 Predefined shapes
26289 \end_layout
26290
26291 \begin_layout Standard
26292
26293 \series bold
26294 shapepar
26295 \series default
26296  provides the following shapes:
26297 \end_layout
26298
26299 \begin_layout Standard
26300 \begin_inset Tabular
26301 <lyxtabular version="3" rows="13" columns="3">
26302 <features booktabs="true" islongtable="true" longtabularalignment="center">
26303 <column alignment="center" valignment="middle" width="16col%">
26304 <column alignment="center" valignment="middle" width="40col%">
26305 <column alignment="center" valignment="middle" width="35col%">
26306 <row endhead="true">
26307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26308 \begin_inset Text
26309
26310 \begin_layout Plain Layout
26311 Name
26312 \end_layout
26313
26314 \end_inset
26315 </cell>
26316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26317 \begin_inset Text
26318
26319 \begin_layout Plain Layout
26320 Description
26321 \end_layout
26322
26323 \end_inset
26324 </cell>
26325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26326 \begin_inset Text
26327
26328 \begin_layout Plain Layout
26329 Annotation
26330 \end_layout
26331
26332 \end_inset
26333 </cell>
26334 </row>
26335 <row>
26336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26337 \begin_inset Text
26338
26339 \begin_layout Plain Layout
26340 CDlabel
26341 \end_layout
26342
26343 \end_inset
26344 </cell>
26345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26346 \begin_inset Text
26347
26348 \begin_layout Plain Layout
26349 Circle with circular hole (in the size of a CD/DVD)
26350 \end_layout
26351
26352 \end_inset
26353 </cell>
26354 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26355 \begin_inset Text
26356
26357 \begin_layout Plain Layout
26358 Cannot be scaled, take care there is not too much text
26359 \end_layout
26360
26361 \end_inset
26362 </cell>
26363 </row>
26364 <row>
26365 <cell alignment="center" valignment="top" topline="true" usebox="none">
26366 \begin_inset Text
26367
26368 \begin_layout Plain Layout
26369 Circle
26370 \end_layout
26371
26372 \end_inset
26373 </cell>
26374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26375 \begin_inset Text
26376
26377 \begin_layout Plain Layout
26378 Circle
26379 \end_layout
26380
26381 \end_inset
26382 </cell>
26383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26384 \begin_inset Text
26385
26386 \begin_layout Plain Layout
26387 Fragile, calculation might fail
26388 \end_layout
26389
26390 \end_inset
26391 </cell>
26392 </row>
26393 <row>
26394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26395 \begin_inset Text
26396
26397 \begin_layout Plain Layout
26398 Diamond
26399 \end_layout
26400
26401 \end_inset
26402 </cell>
26403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26404 \begin_inset Text
26405
26406 \begin_layout Plain Layout
26407 Rhomboid (symbolizing a 
26408 \begin_inset Quotes eld
26409 \end_inset
26410
26411 diamond
26412 \begin_inset Quotes erd
26413 \end_inset
26414
26415 )
26416 \end_layout
26417
26418 \end_inset
26419 </cell>
26420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26421 \begin_inset Text
26422
26423 \begin_layout Plain Layout
26424 -
26425 \end_layout
26426
26427 \end_inset
26428 </cell>
26429 </row>
26430 <row>
26431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26432 \begin_inset Text
26433
26434 \begin_layout Plain Layout
26435 Heart
26436 \end_layout
26437
26438 \end_inset
26439 </cell>
26440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26441 \begin_inset Text
26442
26443 \begin_layout Plain Layout
26444 Heart-like shape
26445 \end_layout
26446
26447 \end_inset
26448 </cell>
26449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26450 \begin_inset Text
26451
26452 \begin_layout Plain Layout
26453 -
26454 \end_layout
26455
26456 \end_inset
26457 </cell>
26458 </row>
26459 <row>
26460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26461 \begin_inset Text
26462
26463 \begin_layout Plain Layout
26464 Hexagon
26465 \end_layout
26466
26467 \end_inset
26468 </cell>
26469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26470 \begin_inset Text
26471
26472 \begin_layout Plain Layout
26473 Hexagon
26474 \end_layout
26475
26476 \end_inset
26477 </cell>
26478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26479 \begin_inset Text
26480
26481 \begin_layout Plain Layout
26482 -
26483 \end_layout
26484
26485 \end_inset
26486 </cell>
26487 </row>
26488 <row>
26489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26490 \begin_inset Text
26491
26492 \begin_layout Plain Layout
26493 Nut
26494 \end_layout
26495
26496 \end_inset
26497 </cell>
26498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26499 \begin_inset Text
26500
26501 \begin_layout Plain Layout
26502 Nut for bolt (hexagon with circular hole)
26503 \end_layout
26504
26505 \end_inset
26506 </cell>
26507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26508 \begin_inset Text
26509
26510 \begin_layout Plain Layout
26511 -
26512 \end_layout
26513
26514 \end_inset
26515 </cell>
26516 </row>
26517 <row>
26518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26519 \begin_inset Text
26520
26521 \begin_layout Plain Layout
26522 Square
26523 \end_layout
26524
26525 \end_inset
26526 </cell>
26527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26528 \begin_inset Text
26529
26530 \begin_layout Plain Layout
26531 Square
26532 \end_layout
26533
26534 \end_inset
26535 </cell>
26536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26537 \begin_inset Text
26538
26539 \begin_layout Plain Layout
26540 -
26541 \end_layout
26542
26543 \end_inset
26544 </cell>
26545 </row>
26546 <row>
26547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26548 \begin_inset Text
26549
26550 \begin_layout Plain Layout
26551 Star
26552 \end_layout
26553
26554 \end_inset
26555 </cell>
26556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26557 \begin_inset Text
26558
26559 \begin_layout Plain Layout
26560 Five-point star
26561 \end_layout
26562
26563 \end_inset
26564 </cell>
26565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26566 \begin_inset Text
26567
26568 \begin_layout Plain Layout
26569 -
26570 \end_layout
26571
26572 \end_inset
26573 </cell>
26574 </row>
26575 <row>
26576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26577 \begin_inset Text
26578
26579 \begin_layout Plain Layout
26580 Candle
26581 \end_layout
26582
26583 \end_inset
26584 </cell>
26585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26586 \begin_inset Text
26587
26588 \begin_layout Plain Layout
26589 Burning candle
26590 \end_layout
26591
26592 \end_inset
26593 </cell>
26594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26595 \begin_inset Text
26596
26597 \begin_layout Plain Layout
26598 -
26599 \end_layout
26600
26601 \end_inset
26602 </cell>
26603 </row>
26604 <row>
26605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26606 \begin_inset Text
26607
26608 \begin_layout Plain Layout
26609 Drop down/up
26610 \end_layout
26611
26612 \end_inset
26613 </cell>
26614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26615 \begin_inset Text
26616
26617 \begin_layout Plain Layout
26618 Normal/reversed rain drop
26619 \end_layout
26620
26621 \end_inset
26622 </cell>
26623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26624 \begin_inset Text
26625
26626 \begin_layout Plain Layout
26627 Fragile, calculation might fail
26628 \end_layout
26629
26630 \end_inset
26631 </cell>
26632 </row>
26633 <row>
26634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26635 \begin_inset Text
26636
26637 \begin_layout Plain Layout
26638 \SpecialChar TeX
26639
26640 \end_layout
26641
26642 \end_inset
26643 </cell>
26644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26645 \begin_inset Text
26646
26647 \begin_layout Plain Layout
26648 The \SpecialChar TeX
26649  logo
26650 \end_layout
26651
26652 \end_inset
26653 </cell>
26654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26655 \begin_inset Text
26656
26657 \begin_layout Plain Layout
26658 -
26659 \end_layout
26660
26661 \end_inset
26662 </cell>
26663 </row>
26664 <row>
26665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26666 \begin_inset Text
26667
26668 \begin_layout Plain Layout
26669 Triangle up/down/
26670 \begin_inset Newline newline
26671 \end_inset
26672
26673 left/right
26674 \end_layout
26675
26676 \end_inset
26677 </cell>
26678 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26679 \begin_inset Text
26680
26681 \begin_layout Plain Layout
26682 Triangles in different orientations
26683 \end_layout
26684
26685 \end_inset
26686 </cell>
26687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26688 \begin_inset Text
26689
26690 \begin_layout Plain Layout
26691 -
26692 \end_layout
26693
26694 \end_inset
26695 </cell>
26696 </row>
26697 </lyxtabular>
26698
26699 \end_inset
26700
26701
26702 \end_layout
26703
26704 \begin_layout Standard
26705 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26706 's pull-down box
26707  for environments in the toolbar.
26708 \end_layout
26709
26710 \begin_layout Standard
26711 \begin_inset Newpage newpage
26712 \end_inset
26713
26714
26715 \end_layout
26716
26717 \begin_layout Standard
26718 Here is an example paragraph in the shape of a nut:
26719 \end_layout
26720
26721 \begin_layout Standard
26722 \begin_inset VSpace bigskip
26723 \end_inset
26724
26725
26726 \end_layout
26727
26728 \begin_layout Nut
26729
26730 \lang latin
26731 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26732  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26733  voluptua.
26734  At vero eos et accusam et justo duo dolores et ea rebum.
26735  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26736  sit amet.
26737  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26738  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26739  voluptua.
26740 \end_layout
26741
26742 \begin_layout Standard
26743 \begin_inset VSpace bigskip
26744 \end_inset
26745
26746
26747 \end_layout
26748
26749 \begin_layout Standard
26750 \begin_inset Note Greyedout
26751 status open
26752
26753 \begin_layout Plain Layout
26754
26755 \series bold
26756 Note
26757 \series default
26758 : shapepar paragraphs cannot run over a page break.
26759 \end_layout
26760
26761 \end_inset
26762
26763
26764 \end_layout
26765
26766 \begin_layout Standard
26767 \begin_inset VSpace bigskip
26768 \end_inset
26769
26770
26771 \end_layout
26772
26773 \begin_layout Standard
26774
26775 \series bold
26776 shapepar
26777 \series default
26778  takes care that the shape will always be preserved, no matter how much
26779  text is in the paragraph.
26780  Therefore the paragraph size changes with the amount of contained text.
26781  This can lead to paragraph sizes exceeding the page margins.
26782  To demonstrate the size scaling, here is the same example paragraph but
26783  with twice as much text:
26784 \end_layout
26785
26786 \begin_layout Standard
26787 \begin_inset Newpage newpage
26788 \end_inset
26789
26790
26791 \end_layout
26792
26793 \begin_layout Nut
26794
26795 \lang latin
26796 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26797  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26798  voluptua.
26799  At vero eos et accusam et justo duo dolores et ea rebum.
26800  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26801  sit amet.
26802  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26803  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26804  voluptua.
26805  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26806  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26807  voluptua.
26808  At vero eos et accusam et justo duo dolores et ea rebum.
26809  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26810  sit amet.
26811  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26812  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26813  voluptua.
26814 \end_layout
26815
26816 \begin_layout Standard
26817 \begin_inset VSpace bigskip
26818 \end_inset
26819
26820
26821 \end_layout
26822
26823 \begin_layout Standard
26824 An exception is the shape 
26825 \family sans
26826 CDlabel
26827 \family default
26828 .
26829  It cannot be scaled because it must fit the size of a CD/DVD.
26830  Therefore the amount of text that fits into the shape is limited.
26831 \begin_inset Newline newline
26832 \end_inset
26833
26834 The 
26835 \family sans
26836 drop
26837 \family default
26838  shapes and the 
26839 \family sans
26840 circle
26841 \family default
26842  shape are fragile, meaning that the calculation of their size can fail,
26843  depending on the amount of text.
26844  You will then get the \SpecialChar LaTeX
26845  error 
26846 \begin_inset Quotes eld
26847 \end_inset
26848
26849 Arithmetic overflow
26850 \begin_inset Quotes erd
26851 \end_inset
26852
26853 .
26854  In this case one can try to remove or add some text; if nothing works one
26855  has to use another shape.
26856 \end_layout
26857
26858 \begin_layout Standard
26859 \begin_inset VSpace bigskip
26860 \end_inset
26861
26862
26863 \end_layout
26864
26865 \begin_layout Standard
26866 For shapes with tips you will maybe see that \SpecialChar LaTeX
26867 's hyphenation routine fails
26868  for text in the tips.
26869  Therefore it is often necessary to add hyphenation points 
26870 \family sans
26871 (
26872 \begin_inset Info
26873 type  "shortcut"
26874 arg   "specialchar-insert hyphenation"
26875 \end_inset
26876
26877
26878 \family default
26879 ) to the corresponding text parts.
26880 \end_layout
26881
26882 \begin_layout Standard
26883 \begin_inset VSpace bigskip
26884 \end_inset
26885
26886
26887 \end_layout
26888
26889 \begin_layout Standard
26890 Shapepar paragraphs are either always centered or placed on the page so
26891  that their left border touches the left page margin.
26892  You can therefore not use the paragraph dialog to align such paragraphs.
26893  A solution is to put the paragraph into a minipage or parbox and align
26894  the box.
26895  The problem is hereby to find the right width for the box.
26896  Because if it is too wide and you center the box, the paragraph is not
26897  centered too because it sticks at the left side of the box.
26898  So you might have to play a bit with the width until it fits.
26899  Here are two heart-shaped paragraphs, the first one is not aligned, the
26900  second one is right-aligned:
26901 \end_layout
26902
26903 \begin_layout Standard
26904 \begin_inset Newpage newpage
26905 \end_inset
26906
26907
26908 \end_layout
26909
26910 \begin_layout Heart
26911 \noindent
26912
26913 \lang latin
26914 Lo\SpecialChar softhyphen
26915 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26916  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26917  voluptua.
26918  At vero eos et accusam et justo duo dolores et ea rebum.
26919  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26920  sit amet.
26921 \end_layout
26922
26923 \begin_layout Standard
26924 \begin_inset VSpace bigskip
26925 \end_inset
26926
26927
26928 \end_layout
26929
26930 \begin_layout Standard
26931 \noindent
26932 \align right
26933 \begin_inset Box Frameless
26934 position "t"
26935 hor_pos "c"
26936 has_inner_box 1
26937 inner_pos "t"
26938 use_parbox 1
26939 use_makebox 0
26940 width "42col%"
26941 special "none"
26942 height "1in"
26943 height_special "totalheight"
26944 thickness "0.4pt"
26945 separation "3pt"
26946 shadowsize "4pt"
26947 framecolor "black"
26948 backgroundcolor "none"
26949 status open
26950
26951 \begin_layout Heart
26952 \noindent
26953
26954 \lang latin
26955 Lo\SpecialChar softhyphen
26956 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26957  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26958  voluptua.
26959  At vero eos et accusam et justo duo dolores et ea rebum.
26960  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26961  sit amet.
26962 \end_layout
26963
26964 \end_inset
26965
26966
26967 \end_layout
26968
26969 \begin_layout Subsection
26970 Custom shapes
26971 \end_layout
26972
26973 \begin_layout Standard
26974 You can define any shape you want.
26975  Doing this manually is a lot of work because every coordinate must be specified.
26976  But there is a way to let the computer calculate the coordinates:
26977 \end_layout
26978
26979 \begin_layout Enumerate
26980 Install the program 
26981 \begin_inset CommandInset href
26982 LatexCommand href
26983 name "Jpgfdraw"
26984 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26985 literal "false"
26986
26987 \end_inset
26988
26989 .
26990 \end_layout
26991
26992 \begin_layout Enumerate
26993 In 
26994 \family sans
26995 Jpgfdraw
26996 \family default
26997  go to the menu 
26998 \family sans
26999 TeX/LaTeX\SpecialChar menuseparator
27000 Settings\SpecialChar menuseparator
27001 Set Normal Size
27002 \family default
27003  and select the font size you are using in your document.
27004  For example this document uses the size 12
27005 \begin_inset space \thinspace{}
27006 \end_inset
27007
27008 pt.
27009 \end_layout
27010
27011 \begin_layout Enumerate
27012 Draw a shape.
27013 \end_layout
27014
27015 \begin_layout Enumerate
27016 Use the menu 
27017 \family sans
27018 TeX/LaTeX\SpecialChar menuseparator
27019 Shapepar
27020 \family default
27021  to export the shape to coordinates.
27022  In the appearing dialog use either the outline of your shape for the coordinate
27023 s or the path itself.
27024 \begin_inset Foot
27025 status collapsed
27026
27027 \begin_layout Plain Layout
27028 For more information see 
27029 \begin_inset CommandInset href
27030 LatexCommand href
27031 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
27032 literal "false"
27033
27034 \end_inset
27035
27036
27037 \end_layout
27038
27039 \end_inset
27040
27041
27042 \end_layout
27043
27044 \begin_layout Standard
27045 The coordinates are written into a \SpecialChar TeX
27046  file.
27047  To use it for your \SpecialChar LyX
27048  document
27049 \end_layout
27050
27051 \begin_layout Enumerate
27052 Place the cursor before the first character of your paragraph (or into a
27053  new empty one).
27054 \end_layout
27055
27056 \begin_layout Enumerate
27057 Open in \SpecialChar LyX
27058  the menu 
27059 \family sans
27060 Insert\SpecialChar menuseparator
27061 File\SpecialChar menuseparator
27062 Child
27063 \begin_inset space ~
27064 \end_inset
27065
27066 Document
27067 \family default
27068 , select the file and use 
27069 \family sans
27070 Input
27071 \family default
27072  as 
27073 \family sans
27074 Include Type.
27075 \end_layout
27076
27077 \begin_layout Standard
27078 \begin_inset VSpace defskip
27079 \end_inset
27080
27081
27082 \end_layout
27083
27084 \begin_layout Standard
27085 \begin_inset Note Greyedout
27086 status open
27087
27088 \begin_layout Plain Layout
27089
27090 \series bold
27091 Note
27092 \series default
27093 : The changed shape only applies to the current paragraph; everything is
27094  reset to normal for the next paragraph.
27095  Therefore the shape definition file must be input into every paragraph
27096  with the desired shape.
27097 \end_layout
27098
27099 \end_inset
27100
27101
27102 \end_layout
27103
27104 \begin_layout Standard
27105 \begin_inset VSpace bigskip
27106 \end_inset
27107
27108
27109 \end_layout
27110
27111 \begin_layout Standard
27112 Here is an example:
27113 \end_layout
27114
27115 \begin_layout Standard
27116 \begin_inset VSpace bigskip
27117 \end_inset
27118
27119
27120 \end_layout
27121
27122 \begin_layout Standard
27123 \begin_inset CommandInset include
27124 LatexCommand input
27125 filename "SpecialParagraphShape.tex"
27126
27127 \end_inset
27128
27129
27130 \lang latin
27131 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27132  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27133  voluptua.
27134  At vero eos et accusam et justo duo dolores et ea rebum.
27135  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27136  sit amet.
27137  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27138  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27139  voluptua.
27140 \end_layout
27141
27142 \begin_layout Standard
27143 \begin_inset VSpace bigskip
27144 \end_inset
27145
27146
27147 \end_layout
27148
27149 \begin_layout Standard
27150
27151 \series bold
27152 A tip:
27153 \series default
27154  to draw complexer shapes in 
27155 \family sans
27156 Jpgfdraw
27157 \family default
27158  you can draw the shape in a program of your choice and import the resulting
27159  image to 
27160 \family sans
27161 Jpgfdraw
27162 \family default
27163 .
27164  Then you only need to draw a line or spline along the outline of the image.
27165 \end_layout
27166
27167 \begin_layout Standard
27168 \begin_inset VSpace bigskip
27169 \end_inset
27170
27171
27172 \end_layout
27173
27174 \begin_layout Standard
27175 The module 
27176 \family sans
27177 Custom paragraph shapes
27178 \family default
27179  also provides the two commands 
27180 \family sans
27181 shapepar
27182 \family default
27183  and 
27184 \family sans
27185 Shapepar
27186 \family default
27187  which can be used to define custom shapes coordinate by coordinate.
27188 \begin_inset Foot
27189 status collapsed
27190
27191 \begin_layout Plain Layout
27192 These commands are internally used for all shapes described here.
27193 \end_layout
27194
27195 \end_inset
27196
27197  For information how these styles are used and about further customization
27198  possibilities, have a look at the documentation of the package 
27199 \series bold
27200 shapepar
27201 \series default
27202
27203 \begin_inset CommandInset citation
27204 LatexCommand cite
27205 key "shapepar"
27206 literal "true"
27207
27208 \end_inset
27209
27210 .
27211 \end_layout
27212
27213 \begin_layout Bibliography
27214 \begin_inset CommandInset bibitem
27215 LatexCommand bibitem
27216 key "multicol"
27217 literal "true"
27218
27219 \end_inset
27220
27221 Documentation of the \SpecialChar LaTeX
27222 -package 
27223 \begin_inset CommandInset href
27224 LatexCommand href
27225 name "multicol"
27226 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
27227 literal "false"
27228
27229 \end_inset
27230
27231
27232 \end_layout
27233
27234 \begin_layout Bibliography
27235 \begin_inset CommandInset bibitem
27236 LatexCommand bibitem
27237 key "shapepar"
27238 literal "true"
27239
27240 \end_inset
27241
27242 Documentation of the \SpecialChar LaTeX
27243 -package 
27244 \begin_inset CommandInset href
27245 LatexCommand href
27246 name "shapepar"
27247 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
27248 literal "false"
27249
27250 \end_inset
27251
27252
27253 \end_layout
27254
27255 \end_body
27256 \end_document