]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Update documentation to current format
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 501
3 \begin_document
4 \begin_header
5 \origin /systemlyxdir/doc/
6 \textclass scrbook
7 \begin_preamble
8 % DO NOT ALTER THIS PREAMBLE!!!
9 %
10 % This preamble is designed to ensure that the manual prints
11 % out as advertised. If you mess with this preamble,
12 % parts of the manual may not print out as expected.  If you
13 % have problems LaTeXing this file, please contact 
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
16
17 % if pdflatex is used
18 \usepackage{ifpdf}
19 \ifpdf
20
21  % set fonts for nicer pdf view
22  \IfFileExists{lmodern.sty}
23   {\usepackage{lmodern}}{}
24
25 \fi % end if pdflatex is used
26
27 % the pages of the TOC are numbered roman
28 % and a PDF-bookmark for the TOC is added
29 \pagenumbering{roman}
30 \let\myTOC\tableofcontents
31 \renewcommand{\tableofcontents}{%
32  \pdfbookmark[1]{\contentsname}{}
33  \myTOC
34  \cleardoublepage
35  \pagenumbering{arabic}}
36
37 % extra space for tables
38 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
39 \end_preamble
40 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
41 \use_default_options false
42 \begin_modules
43 logicalmkup
44 theorems-ams
45 theorems-ams-extended
46 multicol
47 shapepar
48 \end_modules
49 \maintain_unincluded_children false
50 \begin_local_layout
51 Format 7
52 InsetLayout CharStyle:MenuItem
53 LyxType               charstyle
54 LabelString           menu
55 LatexType             command
56 LatexName             menuitem
57 Font
58 Family              Sans
59 EndFont
60 Preamble
61 \newcommand*{\menuitem}[1]{{\sffamily #1}}
62 EndPreamble
63 End
64 \end_local_layout
65 \language english
66 \language_package default
67 \inputencoding auto
68 \fontencoding global
69 \font_roman "default" "default"
70 \font_sans "default" "default"
71 \font_typewriter "default" "default"
72 \font_math "auto" "auto"
73 \font_default_family default
74 \use_non_tex_fonts false
75 \font_sc false
76 \font_osf false
77 \font_sf_scale 100 100
78 \font_tt_scale 100 100
79 \graphics default
80 \default_output_format default
81 \output_sync 0
82 \bibtex_command default
83 \index_command default
84 \paperfontsize 12
85 \spacing single
86 \use_hyperref true
87 \pdf_title "LyX's Additional Features manual"
88 \pdf_author "LyX Team"
89 \pdf_subject "LyX's additional features documentation"
90 \pdf_keywords "LyX, Documentation, Additional"
91 \pdf_bookmarks true
92 \pdf_bookmarksnumbered true
93 \pdf_bookmarksopen false
94 \pdf_bookmarksopenlevel 1
95 \pdf_breaklinks false
96 \pdf_pdfborder false
97 \pdf_colorlinks true
98 \pdf_backref false
99 \pdf_pdfusetitle false
100 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
101 \papersize a4paper
102 \use_geometry false
103 \use_package amsmath 1
104 \use_package amssymb 1
105 \use_package cancel 0
106 \use_package esint 0
107 \use_package mathdots 1
108 \use_package mathtools 0
109 \use_package mhchem 1
110 \use_package stackrel 0
111 \use_package stmaryrd 0
112 \use_package undertilde 0
113 \cite_engine basic
114 \cite_engine_type default
115 \biblio_style plain
116 \use_bibtopic false
117 \use_indices false
118 \paperorientation portrait
119 \suppress_date false
120 \justification true
121 \use_refstyle 0
122 \notefontcolor #0000ff
123 \index Index
124 \shortcut idx
125 \color #008000
126 \end_index
127 \secnumdepth 3
128 \tocdepth 3
129 \paragraph_separation indent
130 \paragraph_indentation default
131 \quotes_language english
132 \papercolumns 1
133 \papersides 2
134 \paperpagestyle headings
135 \tracking_changes true
136 \output_changes false
137 \html_math_output 0
138 \html_css_as_file 0
139 \html_be_strict true
140 \author -712698321 "Jürgen Spitzmüller"
141 \author 711066561 "Enrico Forestieri"
142 \end_header
143
144 \begin_body
145
146 \begin_layout Title
147 Additional \SpecialChar LyX
148  Features
149 \end_layout
150
151 \begin_layout Subtitle
152 Version 2.1.x
153 \end_layout
154
155 \begin_layout Author
156 by the \SpecialChar LyX
157  Team
158 \begin_inset Foot
159 status collapsed
160
161 \begin_layout Plain Layout
162 \noindent
163 Principal maintainer of this file is
164 \noun on
165  Richard Heck
166 \noun default
167 .
168  If you have comments or error corrections, please send them to the \SpecialChar LyX
169  Documentati
170 on mailing list, 
171 \begin_inset Flex Code
172 status collapsed
173
174 \begin_layout Plain Layout
175 \noindent
176 <lyx-docs@lists.lyx.org>
177 \end_layout
178
179 \end_inset
180
181 .
182 \end_layout
183
184 \end_inset
185
186
187 \end_layout
188
189 \begin_layout Standard
190 \begin_inset CommandInset toc
191 LatexCommand tableofcontents
192
193 \end_inset
194
195
196 \end_layout
197
198 \begin_layout Chapter
199 Introduction
200 \end_layout
201
202 \begin_layout Standard
203 This manual is essentially Part II of the 
204 \emph on
205 User's Guide\SpecialChar endofsentence
206
207 \emph default
208  The reason for separating the two documents is simple: the 
209 \emph on
210 User's Guide
211 \emph default
212  is already quite lengthy, and it contains information on all of the basic
213  features one needs to know in order to prepare most documents.
214  However, the \SpecialChar LyX
215  Team has worked to make \SpecialChar LyX
216  extensible through various configuration
217  files and external packages.
218  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
219  package, you can
220  create a layout file (or module) for it without having to alter \SpecialChar LyX
221  itself.
222  We've already had contributions of several new features this way, and some
223  of them are documented here.
224  There are also some more `advanced' features, such as how to control the
225  presentation of bibliographies and how to work with multi-part documents,
226  that are not covered in the 
227 \emph on
228 User's Guide
229 \emph default
230  and are discussed here.
231 \end_layout
232
233 \begin_layout Standard
234 This manual also documents some special features, like fax support, version
235  control, and SGML support, which require additional software to work properly.
236  There is also a chapter on \SpecialChar LyX
237 's support for HTML.
238  And lastly, there's a chapter of \SpecialChar LaTeX
239  tools and tips, things you can use to
240  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
241 .
242  After all, \SpecialChar LyX
243  
244 \emph on
245 is
246 \emph default
247  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
248  features.
249 \end_layout
250
251 \begin_layout Standard
252 If you haven't read the 
253 \emph on
254 Introduction
255 \emph default
256  yet, you are definitely in the wrong manual.
257  The 
258 \emph on
259 Introduction
260 \emph default
261  is the first place to go, since it describes the notation and format of
262  all of the manuals.
263  You should also be thoroughly familiar with the 
264 \emph on
265 User's Guide
266 \emph default
267  and all of the basic features of \SpecialChar LyX
268  before attempting to read this one.
269 \end_layout
270
271 \begin_layout Standard
272 Since many of the topics in this manual depend heavily on \SpecialChar LyX
273 's interaction
274  with \SpecialChar LaTeX
275 , this first chapter covers the inner workings of \SpecialChar LyX
276  and how to direct
277  \SpecialChar LyX
278  to generate exactly the \SpecialChar LaTeX
279  code you want.
280  It is obviously for more seasoned \SpecialChar LyX
281  users.
282 \end_layout
283
284 \begin_layout Chapter
285 \SpecialChar LyX
286  and \SpecialChar LaTeX
287
288 \end_layout
289
290 \begin_layout Section
291 How \SpecialChar LyX
292  Uses \SpecialChar LaTeX
293
294 \end_layout
295
296 \begin_layout Standard
297 This chapter is for both \SpecialChar TeX
298 -nicians and the \SpecialChar LaTeX
299 -curious.
300  In it, we'll explain how \SpecialChar LyX
301  and \SpecialChar LaTeX
302  work together to produce printable output.
303  This is the only place in any of the manuals where we assume you know something
304  about \SpecialChar LaTeX
305 .
306 \end_layout
307
308 \begin_layout Standard
309 At one time, \SpecialChar LyX
310  was called a 
311 \begin_inset Quotes eld
312 \end_inset
313
314 WYSIWYM frontend to \SpecialChar LaTeX
315 ,
316 \begin_inset Quotes erd
317 \end_inset
318
319  but that's no longer true.
320  There are frontends to \SpecialChar LaTeX
321  out there.
322 \begin_inset Foot
323 status collapsed
324
325 \begin_layout Plain Layout
326 Some familar ones are \SpecialChar TeX
327 maker and kile, on Linux, and \SpecialChar TeX
328 shop, OSX.
329  There are also the \SpecialChar LaTeX
330  modes for vi and emacs, of course.
331 \end_layout
332
333 \end_inset
334
335  These are basically text editors with the ability to run \SpecialChar LaTeX
336  and mark any
337  errors in the file you're editing.
338  Although \SpecialChar LyX
339  
340 \emph on
341 is
342 \emph default
343  an editor, and it 
344 \emph on
345 does
346 \emph default
347  run \SpecialChar LaTeX
348 , and it also indicates errors in the file, it also does much, much
349  more.
350  For one thing, you don't need to know \SpecialChar LaTeX
351  to use \SpecialChar LyX
352  effectively.
353  And \SpecialChar LyX
354  has added its own extensions to \SpecialChar LaTeX
355 .
356  Try the following sometime: select 
357 \begin_inset Flex MenuItem
358 status collapsed
359
360 \begin_layout Plain Layout
361 Export\SpecialChar menuseparator
362 \SpecialChar LaTeX
363
364 \end_layout
365
366 \end_inset
367
368  from the 
369 \begin_inset Flex MenuItem
370 status collapsed
371
372 \begin_layout Plain Layout
373 File
374 \end_layout
375
376 \end_inset
377
378  menu (or 
379 \begin_inset Flex MenuItem
380 status collapsed
381
382 \begin_layout Plain Layout
383 View\SpecialChar menuseparator
384 Source
385 \begin_inset space ~
386 \end_inset
387
388 Pane
389 \end_layout
390
391 \end_inset
392
393 ), then look at the preamble of the resulting 
394 \begin_inset Flex Code
395 status collapsed
396
397 \begin_layout Plain Layout
398 .tex
399 \end_layout
400
401 \end_inset
402
403  file.
404  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
405 .
406  These macros are defined automatically, according to the features you use
407  in the document.
408 \end_layout
409
410 \begin_layout Standard
411 There are several commands that automatically invoke \SpecialChar LaTeX
412 .
413  They are:
414 \end_layout
415
416 \begin_layout Itemize
417 \begin_inset Flex MenuItem
418 status collapsed
419
420 \begin_layout Plain Layout
421 Document\SpecialChar menuseparator
422 View
423 \end_layout
424
425 \end_inset
426
427
428 \end_layout
429
430 \begin_layout Itemize
431 \begin_inset Flex MenuItem
432 status collapsed
433
434 \begin_layout Plain Layout
435 Document\SpecialChar menuseparator
436 Update
437 \end_layout
438
439 \end_inset
440
441
442 \end_layout
443
444 \begin_layout Itemize
445 \begin_inset Flex MenuItem
446 status collapsed
447
448 \begin_layout Plain Layout
449 File\SpecialChar menuseparator
450 Print
451 \end_layout
452
453 \end_inset
454
455
456 \end_layout
457
458 \begin_layout Itemize
459 \begin_inset Flex MenuItem
460 status collapsed
461
462 \begin_layout Plain Layout
463 File\SpecialChar menuseparator
464 Fax
465 \end_layout
466
467 \end_inset
468
469
470 \end_layout
471
472 \begin_layout Standard
473 They will only invoke \SpecialChar LaTeX
474  if the file has changed since the last time \SpecialChar LaTeX
475  was
476  run.
477  
478 \end_layout
479
480 \begin_layout Standard
481 When \SpecialChar LyX
482  runs \SpecialChar LaTeX
483  on the file you're editing, it performs these steps:
484 \end_layout
485
486 \begin_layout Enumerate
487 Convert the document to \SpecialChar LaTeX
488  and save to a file with the extension 
489 \begin_inset Flex Code
490 status collapsed
491
492 \begin_layout Plain Layout
493 .tex
494 \end_layout
495
496 \end_inset
497
498  in place of 
499 \begin_inset Flex Code
500 status collapsed
501
502 \begin_layout Plain Layout
503 .lyx
504 \end_layout
505
506 \end_inset
507
508 .
509 \end_layout
510
511 \begin_layout Enumerate
512 Run \SpecialChar LaTeX
513  on the 
514 \begin_inset Flex Code
515 status collapsed
516
517 \begin_layout Plain Layout
518 .tex
519 \end_layout
520
521 \end_inset
522
523  file (maybe several times), and run any other commands (such as 
524 \begin_inset Flex Code
525 status collapsed
526
527 \begin_layout Plain Layout
528 bibtex
529 \end_layout
530
531 \end_inset
532
533  or 
534 \begin_inset Flex Code
535 status collapsed
536
537 \begin_layout Plain Layout
538 makeindex
539 \end_layout
540
541 \end_inset
542
543 ) needed to compile the \SpecialChar LaTeX
544  file.
545 \end_layout
546
547 \begin_layout Enumerate
548 If there are any errors, show the error log.
549 \end_layout
550
551 \begin_layout Standard
552 If you have run \SpecialChar LaTeX
553  using 
554 \begin_inset Flex MenuItem
555 status collapsed
556
557 \begin_layout Plain Layout
558 View
559 \bar under
560 \SpecialChar menuseparator
561
562 \bar default
563 DVI
564 \end_layout
565
566 \end_inset
567
568 , \SpecialChar LyX
569  then runs a DVI viewer to display the DVI-file.
570  If you have used 
571 \begin_inset Flex MenuItem
572 status collapsed
573
574 \begin_layout Plain Layout
575 View
576 \bar under
577 \SpecialChar menuseparator
578
579 \bar default
580 PostScript
581 \end_layout
582
583 \end_inset
584
585 , \SpecialChar LyX
586  performs further steps:
587 \end_layout
588
589 \begin_layout Itemize
590 Run 
591 \begin_inset Flex Code
592 status collapsed
593
594 \begin_layout Plain Layout
595 dvips
596 \end_layout
597
598 \end_inset
599
600  to convert the DVI file to PostScript.
601 \end_layout
602
603 \begin_layout Itemize
604 Run a PostScript viewer, such as 
605 \begin_inset Flex Code
606 status collapsed
607
608 \begin_layout Plain Layout
609 ghostview
610 \end_layout
611
612 \end_inset
613
614 , to display the PostScript file.
615 \end_layout
616
617 \begin_layout Standard
618 \SpecialChar LyX
619  does similar things when viewing, or exporting, other formats.
620 \end_layout
621
622 \begin_layout Section
623 Translating \SpecialChar LaTeX
624  files into \SpecialChar LyX
625
626 \end_layout
627
628 \begin_layout Standard
629 You can import a \SpecialChar LaTeX
630  file into \SpecialChar LyX
631  by using the 
632 \begin_inset Flex MenuItem
633 status collapsed
634
635 \begin_layout Plain Layout
636 File\SpecialChar menuseparator
637 Import\SpecialChar menuseparator
638 \SpecialChar LaTeX
639
640 \end_layout
641
642 \end_inset
643
644  command in \SpecialChar LyX
645 .
646  This will call a program named 
647 \begin_inset Flex Code
648 status collapsed
649
650 \begin_layout Plain Layout
651 tex2lyx
652 \end_layout
653
654 \end_inset
655
656  which will create a file 
657 \begin_inset Flex Code
658 status collapsed
659
660 \begin_layout Plain Layout
661 foo.lyx
662 \end_layout
663
664 \end_inset
665
666  from the file 
667 \begin_inset Flex Code
668 status collapsed
669
670 \begin_layout Plain Layout
671 foo.tex
672 \end_layout
673
674 \end_inset
675
676 .
677  \SpecialChar LyX
678  will then open that file.
679 \begin_inset Foot
680 status collapsed
681
682 \begin_layout Plain Layout
683 \begin_inset Flex Code
684 status collapsed
685
686 \begin_layout Plain Layout
687 tex2lyx
688 \end_layout
689
690 \end_inset
691
692  can also be run from the command line, of course.
693 \end_layout
694
695 \end_inset
696
697
698 \end_layout
699
700 \begin_layout Standard
701 \begin_inset Flex Code
702 status collapsed
703
704 \begin_layout Plain Layout
705 tex2lyx
706 \end_layout
707
708 \end_inset
709
710  will translate most legal \SpecialChar LaTeX
711 , but not everything.
712  It will put things it doesn't understand into \SpecialChar TeX
713  code, so after translating
714  a file with 
715 \begin_inset Flex Code
716 status collapsed
717
718 \begin_layout Plain Layout
719 tex2lyx
720 \end_layout
721
722 \end_inset
723
724 , you can look for \SpecialChar TeX
725  code and hand-edit it until it looks right.
726 \end_layout
727
728 \begin_layout Standard
729 If you don't know what \SpecialChar TeX
730  code is, read the next section.
731 \end_layout
732
733 \begin_layout Section
734 \begin_inset CommandInset label
735 LatexCommand label
736 name "sec:Inserting-TeX-Code"
737
738 \end_inset
739
740 Inserting \SpecialChar TeX
741  Code into \SpecialChar LyX
742  Documents 
743 \end_layout
744
745 \begin_layout Standard
746 Anything you can do in \SpecialChar LaTeX
747  you can do in \SpecialChar LyX
748 , for a very simple reason: You can
749  always insert \SpecialChar TeX
750  code into any \SpecialChar LyX
751  document.
752  \SpecialChar LyX
753  cannot, and will never be able to, display every possible \SpecialChar LaTeX
754  construct.
755  If ever you need to insert \SpecialChar LaTeX
756  commands into your \SpecialChar LyX
757  document, you can use the
758  
759 \begin_inset Flex Code
760 status collapsed
761
762 \begin_layout Plain Layout
763 \SpecialChar TeX
764  Code
765 \end_layout
766
767 \end_inset
768
769  box, which you can insert into your document with 
770 \begin_inset Flex MenuItem
771 status collapsed
772
773 \begin_layout Plain Layout
774 Insert\SpecialChar menuseparator
775
776 \change_deleted -712698321 1437633182
777 \SpecialChar TeX
778
779 \change_inserted -712698321 1437633182
780
781 \family sans
782 TeX
783 \change_unchanged
784
785 \family default
786  Code
787 \end_layout
788
789 \end_inset
790
791  or the keyboard shortcut 
792 \begin_inset Info
793 type  "shortcut"
794 arg   "ert-insert"
795 \end_inset
796
797 .
798 \end_layout
799
800 \begin_layout Standard
801 Here's an example of inserting \SpecialChar LaTeX
802  commands in a \SpecialChar LyX
803  document.
804  The code looks like this:
805 \end_layout
806
807 \begin_layout LyX-Code
808
809 \backslash
810 begin{tabular}{ll}
811 \begin_inset Newline newline
812 \end_inset
813
814
815 \backslash
816 begin{minipage}{5cm}
817 \begin_inset Newline newline
818 \end_inset
819
820 This is an example of a minipage environment.
821  You 
822 \begin_inset Newline newline
823 \end_inset
824
825 can put nearly everything in it, even (non-floating) 
826 \begin_inset Newline newline
827 \end_inset
828
829 figures and tables.
830  
831 \begin_inset Newline newline
832 \end_inset
833
834
835 \backslash
836 end{minipage}
837 \begin_inset Newline newline
838 \end_inset
839
840 &
841 \begin_inset Newline newline
842 \end_inset
843
844
845 \backslash
846 begin{minipage}{5cm}
847 \begin_inset Newline newline
848 \end_inset
849
850
851 \backslash
852 begin{verbatim}
853 \begin_inset Newline newline
854 \end_inset
855
856
857 \backslash
858 begin{minipage}{5cm}
859 \begin_inset Newline newline
860 \end_inset
861
862 This ...
863  
864 \begin_inset Newline newline
865 \end_inset
866
867
868 \backslash
869 end{minipage}
870 \begin_inset Newline newline
871 \end_inset
872
873
874 \backslash
875 end{verbatim}
876 \begin_inset Newline newline
877 \end_inset
878
879
880 \backslash
881 end{minipage}
882 \begin_inset Newline newline
883 \end_inset
884
885
886 \backslash
887 end{tabular}
888 \end_layout
889
890 \begin_layout LyX-Code
891
892 \end_layout
893
894 \begin_layout Standard
895 The 
896 \begin_inset Flex Code
897 status collapsed
898
899 \begin_layout Plain Layout
900 \SpecialChar TeX
901  Code
902 \end_layout
903
904 \end_inset
905
906  box containing this text is directly after this paragraph.
907  Those of you reading the manual in \SpecialChar LyX
908  will only see the \SpecialChar TeX
909  code inset.
910  Those reading a printed version of the manuals will see the actual results:
911 \begin_inset VSpace bigskip
912 \end_inset
913
914
915 \end_layout
916
917 \begin_layout Standard
918 \begin_inset ERT
919 status open
920
921 \begin_layout Plain Layout
922
923
924 \backslash
925 begin{tabular}{ll}
926 \end_layout
927
928 \begin_layout Plain Layout
929
930
931 \backslash
932 begin{minipage}{5cm}
933 \end_layout
934
935 \begin_layout Plain Layout
936
937 This is an example of a minipage environment.
938  You can put nearly everything in it, even (non-floating) figures and tables.
939  
940 \end_layout
941
942 \begin_layout Plain Layout
943
944
945 \backslash
946 end{minipage}
947 \end_layout
948
949 \begin_layout Plain Layout
950
951 &
952 \end_layout
953
954 \begin_layout Plain Layout
955
956
957 \backslash
958 begin{minipage}{5cm}
959 \end_layout
960
961 \begin_layout Plain Layout
962
963
964 \backslash
965 begin{verbatim}
966 \end_layout
967
968 \begin_layout Plain Layout
969
970
971 \backslash
972 begin{minipage}{5cm}
973 \end_layout
974
975 \begin_layout Plain Layout
976
977 This ...
978  
979 \end_layout
980
981 \begin_layout Plain Layout
982
983
984 \backslash
985 end{minipage}
986 \end_layout
987
988 \begin_layout Plain Layout
989
990
991 \backslash
992 end{verbatim}
993 \end_layout
994
995 \begin_layout Plain Layout
996
997
998 \backslash
999 end{minipage}
1000 \end_layout
1001
1002 \begin_layout Plain Layout
1003
1004
1005 \backslash
1006 end{tabular}
1007 \end_layout
1008
1009 \end_inset
1010
1011
1012 \begin_inset VSpace bigskip
1013 \end_inset
1014
1015
1016 \end_layout
1017
1018 \begin_layout Standard
1019 In addition to using \SpecialChar TeX
1020  code, you can also create a separate file containing
1021  some complex \SpecialChar LaTeX
1022  structure and then use 
1023 \begin_inset Flex MenuItem
1024 status collapsed
1025
1026 \begin_layout Plain Layout
1027 Insert\SpecialChar menuseparator
1028 Child
1029 \begin_inset space ~
1030 \end_inset
1031
1032 Document
1033 \end_layout
1034
1035 \end_inset
1036
1037  to include your file (you should select the type 
1038 \begin_inset Flex Code
1039 status collapsed
1040
1041 \begin_layout Plain Layout
1042 Input
1043 \end_layout
1044
1045 \end_inset
1046
1047 ).
1048  We recommend that you only do this if you have a 
1049 \begin_inset Flex Code
1050 status collapsed
1051
1052 \begin_layout Plain Layout
1053 .tex
1054 \end_layout
1055
1056 \end_inset
1057
1058  file which you 
1059 \emph on
1060 know
1061 \emph default
1062  works already.
1063  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1064  errors.
1065 \end_layout
1066
1067 \begin_layout Standard
1068 There are a few last points to emphasize:
1069 \end_layout
1070
1071 \begin_layout Itemize
1072 \SpecialChar LyX
1073  
1074 \emph on
1075 does not
1076 \emph default
1077  check if your \SpecialChar LaTeX
1078  code is correct.
1079 \end_layout
1080
1081 \begin_layout Itemize
1082 Beware of reinventing the wheel.
1083 \end_layout
1084
1085 \begin_layout Standard
1086 On that last point, \SpecialChar LyX
1087  does have quite a few features tucked into it, and
1088  more are coming.
1089  Be sure to check the manuals to make sure that \SpecialChar LyX
1090  doesn't have such-and-such
1091  feature before you decide you have to do it by hand.
1092  Moreover, there are numerous \SpecialChar LaTeX
1093  packages out there to do all sorts of things,
1094  from labels to envelopes to fancy multipage tables.
1095  Check out 
1096 \begin_inset CommandInset href
1097 LatexCommand href
1098 name "CTAN"
1099 target "http://www.ctan.org/"
1100
1101 \end_inset
1102
1103  for details.
1104 \end_layout
1105
1106 \begin_layout Standard
1107 If you do need to do some wild and fancy things within your document, be
1108  sure to check out a good \SpecialChar LaTeX
1109  book for assistance.
1110  There are a number of them listed in the bibliography of the 
1111 \emph on
1112 User's Guide
1113 \emph default
1114 .
1115 \end_layout
1116
1117 \begin_layout Section
1118 \SpecialChar LyX
1119  and the \SpecialChar LaTeX
1120  Preamble
1121 \end_layout
1122
1123 \begin_layout Subsection
1124 About the \SpecialChar LaTeX
1125  Preamble
1126 \end_layout
1127
1128 \begin_layout Standard
1129 If you already know \SpecialChar LaTeX
1130 , there is no need to explain here what the preamble
1131  is good for.
1132  If you don't, the following will give you some ideas—we recommend again
1133  that you consult a \SpecialChar LaTeX
1134  book for further information.
1135  In any case, you should read the points below, because they explain what
1136  you can do and what you don't need to do in the \SpecialChar LaTeX
1137  preamble of a \SpecialChar LyX
1138  document.
1139 \end_layout
1140
1141 \begin_layout Standard
1142 The \SpecialChar LaTeX
1143  preamble comes at the very beginning of a document, 
1144 \emph on
1145 before
1146 \emph default
1147  the text.
1148  It serves to:
1149 \end_layout
1150
1151 \begin_layout Itemize
1152 Declare the document class.
1153  
1154 \begin_inset Newline newline
1155 \end_inset
1156
1157 \SpecialChar LyX
1158  already does this for you.
1159  If you're a seasoned \SpecialChar LaTeX
1160 -nician, and you have a custom document class you
1161  want to use, check out the 
1162 \emph on
1163 Customization Manual
1164 \emph default
1165  for information on how to make \SpecialChar LyX
1166  interface to it.
1167 \end_layout
1168
1169 \begin_layout Itemize
1170 Declare the usage of packages.
1171  
1172 \begin_inset Newline newline
1173 \end_inset
1174
1175 \SpecialChar LaTeX
1176  packages provide special commands, which are only available within a document
1177  when the package has been declared in the preamble.
1178  In addition to providing special commands, the inclusion of a package can
1179  change the document.
1180  For example, the package 
1181 \begin_inset Flex Code
1182 status collapsed
1183
1184 \begin_layout Plain Layout
1185 indentfirst
1186 \end_layout
1187
1188 \end_inset
1189
1190  forces all paragraphs to be indented.
1191  There are other packages for labels, envelopes, margins, etc.
1192  
1193 \end_layout
1194
1195 \begin_layout Itemize
1196 Set counters, variables, lengths and widths.
1197  
1198 \begin_inset Newline newline
1199 \end_inset
1200
1201 There are several \SpecialChar LaTeX
1202  counters and variables that 
1203 \emph on
1204 must
1205 \emph default
1206  be set globally from within the preamble in order to have the desired effect.
1207  (There are variables that you can set and reset inside the document, too.)
1208  Margins are a good example of something that must be set in the preamble.
1209  Another example is the label format for lists.
1210  You can actually set these just about anywhere, but it's best to do it
1211  just once, inside the preamble.
1212 \end_layout
1213
1214 \begin_layout Itemize
1215 Declare user defined commands (with 
1216 \begin_inset Flex Code
1217 status collapsed
1218
1219 \begin_layout Plain Layout
1220
1221 \backslash
1222 newcommand
1223 \end_layout
1224
1225 \end_inset
1226
1227  or 
1228 \begin_inset Flex Code
1229 status collapsed
1230
1231 \begin_layout Plain Layout
1232
1233 \backslash
1234 renewcommand
1235 \end_layout
1236
1237 \end_inset
1238
1239 ).
1240 \begin_inset Newline newline
1241 \end_inset
1242
1243 These are abbreviations for \SpecialChar LaTeX
1244  commands which appear very often inside a document.
1245  Although the preamble is a good place to declare such commands, they 
1246 \emph on
1247 can
1248 \emph default
1249  be declared anywhere (before they are used for the first time, of course).
1250  This can be useful if there is a lot of raw \SpecialChar LaTeX
1251  code in your document, which
1252  normally should not be the case.
1253 \end_layout
1254
1255 \begin_layout Standard
1256 \SpecialChar LyX
1257  adds its own set of definitions to the preamble of the 
1258 \begin_inset Flex Code
1259 status collapsed
1260
1261 \begin_layout Plain Layout
1262 .tex
1263 \end_layout
1264
1265 \end_inset
1266
1267  file it produces.
1268  This makes \SpecialChar LaTeX
1269  files generated by \SpecialChar LyX
1270  portable.
1271 \end_layout
1272
1273 \begin_layout Subsection
1274 Changing the Preamble
1275 \end_layout
1276
1277 \begin_layout Standard
1278 The commands which \SpecialChar LyX
1279  adds to the preamble of a \SpecialChar LaTeX
1280  file are fixed; you can't
1281  change them without patching \SpecialChar LyX
1282  itself.
1283  You can, however, add your own stuff to the preamble by selecting 
1284 \begin_inset Flex MenuItem
1285 status collapsed
1286
1287 \begin_layout Plain Layout
1288 \SpecialChar LaTeX
1289
1290 \begin_inset space ~
1291 \end_inset
1292
1293 Preamble
1294 \end_layout
1295
1296 \end_inset
1297
1298  in the 
1299 \begin_inset Flex MenuItem
1300 status collapsed
1301
1302 \begin_layout Plain Layout
1303 Document\SpecialChar menuseparator
1304 Settings
1305 \end_layout
1306
1307 \end_inset
1308
1309  dialog.
1310  \SpecialChar LyX
1311  adds anything in the 
1312 \begin_inset Flex MenuItem
1313 status collapsed
1314
1315 \begin_layout Plain Layout
1316 Preamble
1317 \end_layout
1318
1319 \end_inset
1320
1321  dialog to its own built-in preamble.
1322  Before adding your own declarations in the preamble, you should make sure
1323  that \SpecialChar LyX
1324  doesn't already support what you want to do.
1325  (Remember what we said about reinventing the wheel?) Also, 
1326 \emph on
1327 make sure your preamble code is correct
1328 \emph default
1329 .
1330  \SpecialChar LyX
1331  doesn't check it for you.
1332  If there is an error, you're likely to get an error like 
1333 \begin_inset Quotes eld
1334 \end_inset
1335
1336
1337 \begin_inset Flex Code
1338 status collapsed
1339
1340 \begin_layout Plain Layout
1341 Missing 
1342 \backslash
1343 begin{document}
1344 \end_layout
1345
1346 \end_inset
1347
1348
1349 \begin_inset Quotes erd
1350 \end_inset
1351
1352 .
1353  If you see this error, check your preamble.
1354 \end_layout
1355
1356 \begin_layout Subsection
1357 Examples
1358 \end_layout
1359
1360 \begin_layout Standard
1361 Here are some examples of what you can add to a preamble, and what they
1362  do.
1363 \end_layout
1364
1365 \begin_layout Subsubsection
1366 Example #1: Offsets
1367 \end_layout
1368
1369 \begin_layout Standard
1370 There are two variables under \SpecialChar LaTeX
1371  that control page position: 
1372 \begin_inset Flex Code
1373 status collapsed
1374
1375 \begin_layout Plain Layout
1376
1377 \backslash
1378 hoffset
1379 \end_layout
1380
1381 \end_inset
1382
1383  and 
1384 \begin_inset Flex Code
1385 status collapsed
1386
1387 \begin_layout Plain Layout
1388
1389 \backslash
1390 voffset
1391 \end_layout
1392
1393 \end_inset
1394
1395 .
1396  Their names should be self-explanatory.
1397  These variables are useful if you think for a moment about computer labels.
1398  Sometimes, the size of a print medium and the area of the medium that you
1399  can actually print on aren't the same.
1400  This is where 
1401 \begin_inset Flex Code
1402 status collapsed
1403
1404 \begin_layout Plain Layout
1405
1406 \backslash
1407 hoffset
1408 \end_layout
1409
1410 \end_inset
1411
1412  and 
1413 \begin_inset Flex Code
1414 status collapsed
1415
1416 \begin_layout Plain Layout
1417
1418 \backslash
1419 voffset
1420 \end_layout
1421
1422 \end_inset
1423
1424  come in.
1425 \end_layout
1426
1427 \begin_layout Standard
1428 The default values for 
1429 \begin_inset Flex Code
1430 status collapsed
1431
1432 \begin_layout Plain Layout
1433
1434 \backslash
1435 hoffset
1436 \end_layout
1437
1438 \end_inset
1439
1440  and 
1441 \begin_inset Flex Code
1442 status collapsed
1443
1444 \begin_layout Plain Layout
1445
1446 \backslash
1447 voffset
1448 \end_layout
1449
1450 \end_inset
1451
1452  are both 0
1453 \begin_inset space \thinspace{}
1454 \end_inset
1455
1456 points, i.
1457 \begin_inset space \thinspace{}
1458 \end_inset
1459
1460 e.
1461 \begin_inset space \space{}
1462 \end_inset
1463
1464 the page isn't shifted.
1465  Unfortunately, some DVI drivers always seem to shift the page.
1466  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1467  If you're using \SpecialChar LyX
1468  on a system that you don't personally maintain, and your
1469  sysadmin is a doofus, 
1470 \begin_inset Flex Code
1471 status collapsed
1472
1473 \begin_layout Plain Layout
1474
1475 \backslash
1476 hoffset
1477 \end_layout
1478
1479 \end_inset
1480
1481  and 
1482 \begin_inset Flex Code
1483 status collapsed
1484
1485 \begin_layout Plain Layout
1486
1487 \backslash
1488 voffset
1489 \end_layout
1490
1491 \end_inset
1492
1493  can save the day.
1494  Suppose your left and top margins are always 0.5
1495 \begin_inset space \thinspace{}
1496 \end_inset
1497
1498 inches too big.
1499  You can add this to the preamble:
1500 \end_layout
1501
1502 \begin_layout LyX-Code
1503
1504 \backslash
1505 setlength{
1506 \backslash
1507 hoffset}{-0.5 in}
1508 \end_layout
1509
1510 \begin_layout LyX-Code
1511
1512 \backslash
1513 setlength{
1514 \backslash
1515 voffset}{-0.5 in}
1516 \end_layout
1517
1518 \begin_layout Standard
1519 and your margins should now be correct.
1520 \end_layout
1521
1522 \begin_layout Subsubsection
1523 Example #2: Labels
1524 \end_layout
1525
1526 \begin_layout Standard
1527 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1528  There's a rather nice package, available at your nearest CTAN archive,
1529  for printing sheets of labels: 
1530 \begin_inset Flex Code
1531 status collapsed
1532
1533 \begin_layout Plain Layout
1534 labels.sty
1535 \end_layout
1536
1537 \end_inset
1538
1539 .
1540  Now, your system may not have this package installed by default.
1541  We leave that up to you to check.
1542  You'll also want to read the documentation for it; we're not going to do
1543  that for you.
1544  Since this is an example, however, we'll give you an example of how you
1545  use this package.
1546 \end_layout
1547
1548 \begin_layout Standard
1549 First, make sure you're using the 
1550 \begin_inset Flex Code
1551 status collapsed
1552
1553 \begin_layout Plain Layout
1554 article
1555 \end_layout
1556
1557 \end_inset
1558
1559  document class.
1560  Next, you need to put the following in your preamble:
1561 \end_layout
1562
1563 \begin_layout LyX-Code
1564
1565 \backslash
1566 usepackage{labels}
1567 \end_layout
1568
1569 \begin_layout LyX-Code
1570
1571 \backslash
1572 LabelCols=3
1573 \end_layout
1574
1575 \begin_layout LyX-Code
1576
1577 \backslash
1578 LabelRows=7
1579 \end_layout
1580
1581 \begin_layout LyX-Code
1582
1583 \backslash
1584 LeftBorder=8mm
1585 \end_layout
1586
1587 \begin_layout LyX-Code
1588
1589 \backslash
1590 RightBorder=8mm
1591 \end_layout
1592
1593 \begin_layout LyX-Code
1594
1595 \backslash
1596 TopBorder=9mm
1597 \end_layout
1598
1599 \begin_layout LyX-Code
1600
1601 \backslash
1602 BottomBorder=2mm
1603 \end_layout
1604
1605 \begin_layout Standard
1606 This sets things up for Avery label sheets, stock #5360.
1607  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1608  code, placing
1609  the commands 
1610 \begin_inset Flex Code
1611 status collapsed
1612
1613 \begin_layout Plain Layout
1614
1615 \backslash
1616 begin{labels}
1617 \end_layout
1618
1619 \end_inset
1620
1621  and 
1622 \begin_inset Flex Code
1623 status collapsed
1624
1625 \begin_layout Plain Layout
1626
1627 \backslash
1628 end{labels}
1629 \end_layout
1630
1631 \end_inset
1632
1633  around each label text.
1634  This and other special features of 
1635 \begin_inset Flex Code
1636 status collapsed
1637
1638 \begin_layout Plain Layout
1639 labels.sty
1640 \end_layout
1641
1642 \end_inset
1643
1644  are explained in its documentation.
1645 \end_layout
1646
1647 \begin_layout Standard
1648 Someday, someone may write a \SpecialChar LyX
1649  layout file to support this package directly.
1650  Maybe that someone is you.
1651 \end_layout
1652
1653 \begin_layout Subsubsection
1654 Example #3: Paragraph Indentation
1655 \end_layout
1656
1657 \begin_layout Standard
1658 Americans are trained to indent the first line of 
1659 \emph on
1660 every
1661 \emph default
1662  paragraph.
1663  As with all of their other weird quirks, most Americans will whine and
1664  moan until they can have their way and indent the first line of all paragraphs.
1665  (Yes, we're joking.
1666  (We are?) 
1667 \emph on
1668 Yeah
1669 \emph default
1670 , we are.)
1671 \end_layout
1672
1673 \begin_layout Standard
1674 Of course, this behavior isn't standard typography.
1675  In books, you typically only indent the first line of a paragraph 
1676 \emph on
1677 if
1678 \emph default
1679  it follows another one.
1680  The idea behind indenting the first line of a paragraph is to distinguish
1681  neighboring paragraphs from one another.
1682  If there is no previous paragraph—for example, if it follows a figure or
1683  is the first paragraph in a section—then there is no need for indentation.
1684  
1685 \end_layout
1686
1687 \begin_layout Standard
1688 If you're a typical American (we're still joking!), though, you don't care
1689  about such esoteric things; you want your indentation! Add this to the
1690  preamble:
1691 \end_layout
1692
1693 \begin_layout LyX-Code
1694
1695 \backslash
1696 usepackage{indentfirst}
1697 \end_layout
1698
1699 \begin_layout Standard
1700 If your \SpecialChar TeX
1701  distribution isn't braindead, you'll have this package, and all
1702  of your paragraphs will get the indentation the Founding Fathers intended
1703  they should have.
1704 \end_layout
1705
1706 \begin_layout Subsubsection
1707 Example #4: This Document
1708 \end_layout
1709
1710 \begin_layout Standard
1711 You can also check out the preamble of this document to get an idea of some
1712  of the advanced things you can do.
1713 \end_layout
1714
1715 \begin_layout Section
1716 \SpecialChar LyX
1717  and \SpecialChar LaTeX
1718  Errors
1719 \end_layout
1720
1721 \begin_layout Standard
1722 When \SpecialChar LyX
1723  calls \SpecialChar LaTeX
1724 , it tells \SpecialChar LaTeX
1725  to blithely ignore any errors and keep going.
1726  It then uses the logfile from the \SpecialChar LaTeX
1727  run to do a post-mortem.
1728  After analyzing the logfile, \SpecialChar LyX
1729  displays a dialog listing the errors.
1730  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1731  file
1732  where the error occurred.
1733 \begin_inset Foot
1734 status collapsed
1735
1736 \begin_layout Plain Layout
1737 Well, usually.
1738  Analyzing the logfile is a tough job, and \SpecialChar LyX
1739  doesn't always go to the right
1740  line.
1741  There are also cases where \SpecialChar LaTeX
1742  reports the error on one line, but the actual
1743  error is earlier.
1744  This is not unlike forgetting a closing brace in a program: You'll get
1745  an error, but only later.
1746 \end_layout
1747
1748 \end_inset
1749
1750
1751 \end_layout
1752
1753 \begin_layout Standard
1754 Some folks also like to look at the log file directly: It is available from
1755  
1756 \begin_inset Flex MenuItem
1757 status collapsed
1758
1759 \begin_layout Plain Layout
1760 Document
1761 \bar under
1762 \SpecialChar menuseparator
1763
1764 \bar default
1765 Latex
1766 \begin_inset space ~
1767 \end_inset
1768
1769 Log
1770 \end_layout
1771
1772 \end_inset
1773
1774 .
1775  There are some fairly common error messages and warnings.
1776  We'll cover those here.
1777  You should look at a good \SpecialChar LaTeX
1778  book for a complete listing.
1779 \end_layout
1780
1781 \begin_layout Itemize
1782 \begin_inset Flex Code
1783 status collapsed
1784
1785 \begin_layout Plain Layout
1786 \SpecialChar LaTeX
1787  Warning
1788 \end_layout
1789
1790 \end_inset
1791
1792
1793 \begin_inset Newline newline
1794 \end_inset
1795
1796 Anything beginning with these words is a warning message for the purpose
1797  of 
1798 \begin_inset Quotes eld
1799 \end_inset
1800
1801 debugging
1802 \begin_inset Quotes erd
1803 \end_inset
1804
1805  the \SpecialChar LaTeX
1806  code itself.
1807  You'll get messages like this if you added or changed cross-references
1808  or bibliography entries, in which case, \SpecialChar LaTeX
1809  is trying to tell you that you
1810  need to make another run.
1811  You can by-and-large ignore these.
1812 \end_layout
1813
1814 \begin_layout Itemize
1815 \begin_inset Flex Code
1816 status collapsed
1817
1818 \begin_layout Plain Layout
1819 \SpecialChar LaTeX
1820  Font Warning
1821 \end_layout
1822
1823 \end_inset
1824
1825
1826 \begin_inset Newline newline
1827 \end_inset
1828
1829 Another warning message, this time about fonts which \SpecialChar LaTeX
1830  couldn't find.
1831  The rest of the message will often say something about a replacement font
1832  that \SpecialChar LaTeX
1833  used.
1834  You can safely ignore these, too.
1835 \end_layout
1836
1837 \begin_layout Itemize
1838 \begin_inset Flex Code
1839 status collapsed
1840
1841 \begin_layout Plain Layout
1842 Overfull 
1843 \backslash
1844 hbox
1845 \end_layout
1846
1847 \end_inset
1848
1849
1850 \begin_inset Newline newline
1851 \end_inset
1852
1853 \SpecialChar LaTeX
1854  absolutely 
1855 \emph on
1856 loves
1857 \emph default
1858  to spew these out.
1859  They are warnings about lines that were too long and run past the right
1860  margin.
1861  Almost always, this is unnoticeable in the final output.
1862  (It can be just a point or two.) Or, only one or two characters extend past
1863  the margin.
1864  \SpecialChar LaTeX
1865  seems to generate at least one of these messages for just about any document
1866  you write.
1867 \begin_inset Newline newline
1868 \end_inset
1869
1870 You can ignore these messages.
1871  Your eyes will tell you if there's a problem with something that's too
1872  wide; just look at the output.
1873 \begin_inset Foot
1874 status collapsed
1875
1876 \begin_layout Plain Layout
1877 You can also enable the `draft' option in 
1878 \begin_inset Flex MenuItem
1879 status collapsed
1880
1881 \begin_layout Plain Layout
1882 Document
1883 \bar under
1884 \SpecialChar menuseparator
1885
1886 \bar default
1887 Settings
1888 \end_layout
1889
1890 \end_inset
1891
1892 , and then \SpecialChar LaTeX
1893  will draw a black box in the margin of lines that are overfull.
1894 \end_layout
1895
1896 \end_inset
1897
1898
1899 \end_layout
1900
1901 \begin_layout Itemize
1902 \begin_inset Flex Code
1903 status collapsed
1904
1905 \begin_layout Plain Layout
1906 Underfull 
1907 \backslash
1908 hbox
1909 \end_layout
1910
1911 \end_inset
1912
1913
1914 \begin_inset Newline newline
1915 \end_inset
1916
1917 Not quite as common as its cousin.
1918  \SpecialChar LaTeX
1919  seems to like to print lines that are a bit too wide as opposed to ones
1920  that are a bit too narrow.
1921  We have no idea why.
1922 \end_layout
1923
1924 \begin_layout Itemize
1925 \begin_inset Flex Code
1926 status collapsed
1927
1928 \begin_layout Plain Layout
1929 Overfull 
1930 \backslash
1931 vbox
1932 \end_layout
1933
1934 \end_inset
1935
1936  and 
1937 \begin_inset Flex Code
1938 status collapsed
1939
1940 \begin_layout Plain Layout
1941 Underfull 
1942 \backslash
1943 vbox
1944 \end_layout
1945
1946 \end_inset
1947
1948
1949 \begin_inset Newline newline
1950 \end_inset
1951
1952 Warnings about troubles breaking the page.
1953  Once again, just look at the output.
1954  Your eyes will tell you where something has gone wrong.
1955 \end_layout
1956
1957 \begin_layout Itemize
1958 \begin_inset Flex Code
1959 status collapsed
1960
1961 \begin_layout Plain Layout
1962 \SpecialChar LaTeX
1963  Error: File 
1964 \begin_inset Quotes els
1965 \end_inset
1966
1967 Xxxx
1968 \begin_inset Quotes ers
1969 \end_inset
1970
1971  not found
1972 \end_layout
1973
1974 \end_inset
1975
1976
1977 \begin_inset Newline newline
1978 \end_inset
1979
1980 The file 
1981 \begin_inset Quotes eld
1982 \end_inset
1983
1984 Xxxx
1985 \begin_inset Quotes erd
1986 \end_inset
1987
1988  isn't installed on this system.
1989  This usually appears because some package your document needs isn't installed.
1990  If you didn't touch the preamble or didn't use the 
1991 \begin_inset Flex Code
1992 status collapsed
1993
1994 \begin_layout Plain Layout
1995
1996 \backslash
1997 usepackage{}
1998 \end_layout
1999
2000 \end_inset
2001
2002  command, then one of the packages \SpecialChar LyX
2003  tried to load is missing.
2004  Use 
2005 \begin_inset Flex MenuItem
2006 status collapsed
2007
2008 \begin_layout Plain Layout
2009 Help\SpecialChar menuseparator
2010 \SpecialChar LaTeX
2011  Configuration
2012 \end_layout
2013
2014 \end_inset
2015
2016  to get a list of packages that \SpecialChar LyX
2017  knows about.
2018  This file is updated whenever you reconfigure \SpecialChar LyX
2019  (using 
2020 \begin_inset Flex MenuItem
2021 status collapsed
2022
2023 \begin_layout Plain Layout
2024 Tools\SpecialChar menuseparator
2025 Reconfigure
2026 \end_layout
2027
2028 \end_inset
2029
2030 ) and tells you which packages have been detected and what they do.
2031 \begin_inset Newline newline
2032 \end_inset
2033
2034 If you did use the 
2035 \begin_inset Flex Code
2036 status collapsed
2037
2038 \begin_layout Plain Layout
2039
2040 \backslash
2041 usepackage{}
2042 \end_layout
2043
2044 \end_inset
2045
2046  command and the package in question isn't installed, then you'll need to
2047  install it yourself.
2048 \end_layout
2049
2050 \begin_layout Itemize
2051 \begin_inset Flex Code
2052 status collapsed
2053
2054 \begin_layout Plain Layout
2055 \SpecialChar LaTeX
2056  Error: Unknown option
2057 \end_layout
2058
2059 \end_inset
2060
2061
2062 \begin_inset Newline newline
2063 \end_inset
2064
2065 Error messages beginning with this are trying to tell you that you specified
2066  a bad or undefined option to a package.
2067  Check the package's documentation.
2068 \end_layout
2069
2070 \begin_layout Itemize
2071 \begin_inset Flex Code
2072 status collapsed
2073
2074 \begin_layout Plain Layout
2075 Undefined control sequence
2076 \end_layout
2077
2078 \end_inset
2079
2080
2081 \begin_inset Newline newline
2082 \end_inset
2083
2084 If you've inserted \SpecialChar LaTeX
2085  code into your document, but made a typo, you'll get
2086  one of these.
2087  You may have forgotten to load a package.
2088  In any case, this error message usually means that you used an undefined
2089  command.
2090  
2091 \end_layout
2092
2093 \begin_layout Standard
2094 There are other error and warning messages.
2095  Some are self-explanatory.
2096  These are usually \SpecialChar LaTeX
2097  messages.
2098  Others are downright cryptic.
2099  These are usually \SpecialChar TeX
2100  error messages, and we really have 
2101 \emph on
2102 no clue
2103 \emph default
2104  what they mean or how to decipher them.
2105  No-one does.
2106 \end_layout
2107
2108 \begin_layout Standard
2109 There's a general sequence you should follow if you get error messages:
2110 \end_layout
2111
2112 \begin_layout Enumerate
2113 Look at the \SpecialChar LaTeX
2114  code you inserted for typos.
2115 \end_layout
2116
2117 \begin_layout Enumerate
2118 If there are no typos, check that you used the command(s) correctly.
2119 \end_layout
2120
2121 \begin_layout Enumerate
2122 If you get a bunch of error boxes piled up at the very top of the document—and
2123  especially if you see a 
2124 \begin_inset Quotes eld
2125 \end_inset
2126
2127
2128 \begin_inset Flex Code
2129 status collapsed
2130
2131 \begin_layout Plain Layout
2132 Missing 
2133 \backslash
2134 begin{document}
2135 \end_layout
2136
2137 \end_inset
2138
2139
2140 \begin_inset Quotes erd
2141 \end_inset
2142
2143  error—it means that there are errors in the preamble.
2144  Start debugging your preamble.
2145 \end_layout
2146
2147 \begin_layout Enumerate
2148 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2149  code to the
2150  document, the first suspect is your \SpecialChar LaTeX
2151  distribution itself.
2152  Check for missing packages and install them.
2153 \end_layout
2154
2155 \begin_layout Enumerate
2156 Okay, so there are no missing packages.
2157  Did you use any of the fine-tuning options in \SpecialChar LyX
2158 ? Specifically, did you 
2159 \emph on
2160 misuse
2161 \emph default
2162  any of them, like trying to manually insert lots of 
2163 \begin_inset Flex Code
2164 status collapsed
2165
2166 \begin_layout Plain Layout
2167 Protected
2168 \begin_inset space ~
2169 \end_inset
2170
2171 Blanks
2172 \end_layout
2173
2174 \end_inset
2175
2176
2177 \begin_inset Flex Code
2178 status collapsed
2179
2180 \begin_layout Plain Layout
2181 Linebreaks
2182 \end_layout
2183
2184 \end_inset
2185
2186 , or 
2187 \begin_inset Flex Code
2188 status collapsed
2189
2190 \begin_layout Plain Layout
2191 Pagebreaks
2192 \end_layout
2193
2194 \end_inset
2195
2196 ? Did you try to kludge something together with these instead of using the
2197  appropriate paragraph environment?
2198 \end_layout
2199
2200 \begin_layout Enumerate
2201 All right, you didn't use any of the fine-tuning options, you played by
2202  the rules.
2203  Did you try to pull a fancy maneuver? Did you do something funky inside
2204  a table or an equation, like inserting a graphic into a table cell?
2205 \end_layout
2206
2207 \begin_layout Enumerate
2208 Do you have long sections of text where \SpecialChar LaTeX
2209  cannot find a place to break a
2210  line? By default, \SpecialChar LaTeX
2211  is rather strict about how much extra inter-word spacing
2212  it will add in order to break a line.
2213  Preferably, you should rework the paragraph to avoid the problem.
2214  If this isn't an option, you can wrap your text in 
2215 \begin_inset Flex Code
2216 status collapsed
2217
2218 \begin_layout Plain Layout
2219
2220 \backslash
2221 sloppypar
2222 \end_layout
2223
2224 \end_inset
2225
2226  to make \SpecialChar LaTeX
2227 's line breaking more, well, sloppy.
2228 \end_layout
2229
2230 \begin_layout Enumerate
2231 Did you go overboard with the nesting? \SpecialChar LyX
2232  (currently) doesn't check to make
2233  sure you're in the limits for nesting environments.
2234  If you nested a bunch of environments to the 
2235 \begin_inset Formula $17^{\mathrm{th}}$
2236 \end_inset
2237
2238  level, that's the problem.
2239  (The limit in \SpecialChar LaTeX
2240  is five.)
2241 \end_layout
2242
2243 \begin_layout Enumerate
2244 Okay, you didn't get any error messages, but your output looks awful.
2245  If you have a table or figure that's too wide or long for the page, you
2246  need to:
2247 \begin_inset Separator parbreak
2248 \end_inset
2249
2250
2251 \end_layout
2252
2253 \begin_deeper
2254 \begin_layout Enumerate
2255 rescale the figure so it fits.
2256 \end_layout
2257
2258 \begin_layout Enumerate
2259 trim down the table so it fits.
2260 \end_layout
2261
2262 \end_deeper
2263 \begin_layout Enumerate
2264 If something else is wrong with the output, and you didn't try to pull anything
2265  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2266 \end_layout
2267
2268 \begin_layout Standard
2269 If all this doesn't help—well, then 
2270 \emph on
2271 perhaps
2272 \emph default
2273  you might have found a bug in \SpecialChar LyX
2274 \SpecialChar ldots
2275 .
2276 \end_layout
2277
2278 \begin_layout Chapter
2279 Supplemental Tools
2280 \end_layout
2281
2282 \begin_layout Section
2283 Customizing Bibliographies with Bib\SpecialChar TeX
2284
2285 \end_layout
2286
2287 \begin_layout Standard
2288 The most basic information about how to use Bib\SpecialChar TeX
2289  with \SpecialChar LyX
2290  is contained in the
2291  section 
2292 \emph on
2293 Bibliography databases (Bib\SpecialChar TeX
2294 )
2295 \emph default
2296  of the 
2297 \emph on
2298 User's Guide
2299 \emph default
2300 .
2301  The following subsections explain special bibliography features supported
2302  by \SpecialChar LyX
2303 .
2304 \end_layout
2305
2306 \begin_layout Subsection
2307 Alternative Citation Styles
2308 \end_layout
2309
2310 \begin_layout Standard
2311 Standard Bib\SpecialChar TeX
2312  uses numbers (e.
2313 \begin_inset space \thinspace{}
2314 \end_inset
2315
2316 g.
2317 \begin_inset space \space{}
2318 \end_inset
2319
2320
2321 \begin_inset Quotes eld
2322 \end_inset
2323
2324 [12]
2325 \begin_inset Quotes erd
2326 \end_inset
2327
2328 ) to refer to a cited work.
2329  However, in many scientific disciplines, other citation styles are in use.
2330  The most common one is the author-year style (e.
2331 \begin_inset space \thinspace{}
2332 \end_inset
2333
2334 g.
2335 \begin_inset space \space{}
2336 \end_inset
2337
2338
2339 \begin_inset Quotes eld
2340 \end_inset
2341
2342 Knuth 1984a
2343 \begin_inset Quotes erd
2344 \end_inset
2345
2346 ).
2347  \SpecialChar LyX
2348  supports two packages that provide this style, 
2349 \begin_inset Flex Code
2350 status collapsed
2351
2352 \begin_layout Plain Layout
2353 natbib
2354 \end_layout
2355
2356 \end_inset
2357
2358  and 
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 .
2369  Both packages have their pros and cons, which cannot be listed in detail.
2370  If you only want to have simple author-year (or author-numerical) style,
2371  or if you want to use one of the countless style files for 
2372 \begin_inset Flex Code
2373 status collapsed
2374
2375 \begin_layout Plain Layout
2376 natbib
2377 \end_layout
2378
2379 \end_inset
2380
2381 , then the established 
2382 \begin_inset Flex Code
2383 status collapsed
2384
2385 \begin_layout Plain Layout
2386 natbib
2387 \end_layout
2388
2389 \end_inset
2390
2391  package is probably your choice.
2392  If you need special features like short title references, ibidem etc., you
2393  might consider the 
2394 \begin_inset Flex Code
2395 status collapsed
2396
2397 \begin_layout Plain Layout
2398 jurabib
2399 \end_layout
2400
2401 \end_inset
2402
2403  package.
2404 \end_layout
2405
2406 \begin_layout Standard
2407 The handling of both packages in \SpecialChar LyX
2408  is basically the same.
2409  Go to 
2410 \begin_inset Flex MenuItem
2411 status collapsed
2412
2413 \begin_layout Plain Layout
2414 Document\SpecialChar menuseparator
2415 Settings
2416 \end_layout
2417
2418 \end_inset
2419
2420  and select under 
2421 \begin_inset Flex MenuItem
2422 status collapsed
2423
2424 \begin_layout Plain Layout
2425 Bibliography
2426 \end_layout
2427
2428 \end_inset
2429
2430  the option 
2431 \begin_inset Flex MenuItem
2432 status collapsed
2433
2434 \begin_layout Plain Layout
2435 Natbib
2436 \end_layout
2437
2438 \end_inset
2439
2440  or 
2441 \begin_inset Flex MenuItem
2442 status collapsed
2443
2444 \begin_layout Plain Layout
2445 Jurabib
2446 \end_layout
2447
2448 \end_inset
2449
2450 .
2451  With both packages, you will get some extra features in the citation dialog
2452  and you can select the style of the reference (
2453 \begin_inset Quotes eld
2454 \end_inset
2455
2456 Knuth 1984
2457 \begin_inset Quotes erd
2458 \end_inset
2459
2460
2461 \begin_inset Quotes eld
2462 \end_inset
2463
2464 Knuth (1984)
2465 \begin_inset Quotes erd
2466 \end_inset
2467
2468
2469 \begin_inset Quotes eld
2470 \end_inset
2471
2472 Knuth, 1984
2473 \begin_inset Quotes erd
2474 \end_inset
2475
2476
2477 \begin_inset Quotes eld
2478 \end_inset
2479
2480 1984
2481 \begin_inset Quotes erd
2482 \end_inset
2483
2484  etc.).
2485  Note that both packages need specifically designed style files.
2486  They both ship their own, but there are lots of additional style files,
2487  and there is even an interactive style file builder
2488 \begin_inset Foot
2489 status collapsed
2490
2491 \begin_layout Plain Layout
2492 See 
2493 \begin_inset Flex URL
2494 status open
2495
2496 \begin_layout Plain Layout
2497
2498 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2499 \end_layout
2500
2501 \end_inset
2502
2503
2504 \end_layout
2505
2506 \end_inset
2507
2508  for 
2509 \begin_inset Flex Code
2510 status collapsed
2511
2512 \begin_layout Plain Layout
2513 natbib
2514 \end_layout
2515
2516 \end_inset
2517
2518 .
2519 \end_layout
2520
2521 \begin_layout Subsection
2522 Sectioned Bibliographies
2523 \end_layout
2524
2525 \begin_layout Standard
2526 Sometimes you might need to divide your bibliography into several sections.
2527  If you are for instance a historian, the possibility to separate sources
2528  and scientific works is most likely a 
2529 \begin_inset Quotes eld
2530 \end_inset
2531
2532 must have
2533 \begin_inset Quotes erd
2534 \end_inset
2535
2536 .
2537  Unfortunately, Bib\SpecialChar TeX
2538  itself does not allow you to do this.
2539  But with the help of some \SpecialChar LaTeX
2540  packages, Bib\SpecialChar TeX
2541  can be extended to fit your needs.
2542 \end_layout
2543
2544 \begin_layout Standard
2545 \SpecialChar LyX
2546  provides native support for one of these packages, 
2547 \family typewriter
2548 bibtopic
2549 \family default
2550 .
2551 \begin_inset Foot
2552 status collapsed
2553
2554 \begin_layout Plain Layout
2555 Available from 
2556 \begin_inset Flex URL
2557 status open
2558
2559 \begin_layout Plain Layout
2560
2561 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2562 \end_layout
2563
2564 \end_inset
2565
2566
2567 \end_layout
2568
2569 \end_inset
2570
2571  The advantage of this package (compared to other packages like 
2572 \family typewriter
2573 multibib
2574 \family default
2575 ) is that you don't need to define new citation commands.
2576  Instead, you need to prepare different bibliographic databases which include
2577  the entries for the different sections of the bibliography.
2578  For example: If you want to divide your bibliography into the sections
2579  
2580 \begin_inset Quotes eld
2581 \end_inset
2582
2583 Sources
2584 \begin_inset Quotes erd
2585 \end_inset
2586
2587  and 
2588 \begin_inset Quotes eld
2589 \end_inset
2590
2591 Scientific works
2592 \begin_inset Quotes erd
2593 \end_inset
2594
2595 , you first need to create two bibliographic databases, e.
2596 \begin_inset space \thinspace{}
2597 \end_inset
2598
2599 g.
2600 \begin_inset space \space{}
2601 \end_inset
2602
2603
2604 \begin_inset Flex Code
2605 status collapsed
2606
2607 \begin_layout Plain Layout
2608 sources.bib
2609 \end_layout
2610
2611 \end_inset
2612
2613  and 
2614 \begin_inset Flex Code
2615 status collapsed
2616
2617 \begin_layout Plain Layout
2618 scientific.bib
2619 \end_layout
2620
2621 \end_inset
2622
2623 .
2624  
2625 \end_layout
2626
2627 \begin_layout Standard
2628 Go to 
2629 \begin_inset Flex MenuItem
2630 status collapsed
2631
2632 \begin_layout Plain Layout
2633 Document\SpecialChar menuseparator
2634 Settings
2635 \end_layout
2636
2637 \end_inset
2638
2639  and check under 
2640 \begin_inset Flex MenuItem
2641 status collapsed
2642
2643 \begin_layout Plain Layout
2644 Bibliography
2645 \end_layout
2646
2647 \end_inset
2648
2649  the option 
2650 \begin_inset Flex MenuItem
2651 status collapsed
2652
2653 \begin_layout Plain Layout
2654 Sectioned bibliography
2655 \end_layout
2656
2657 \end_inset
2658
2659 .
2660  Now you can insert multiple Bib\SpecialChar TeX
2661  bibliographies, one for each section of
2662  your bibliography.
2663  Returning to our example: Insert the Bib\SpecialChar TeX
2664  bibliography 
2665 \begin_inset Flex Code
2666 status collapsed
2667
2668 \begin_layout Plain Layout
2669 sources.bib
2670 \end_layout
2671
2672 \end_inset
2673
2674  and a second one for the database 
2675 \begin_inset Flex Code
2676 status collapsed
2677
2678 \begin_layout Plain Layout
2679 scientific.bib
2680 \end_layout
2681
2682 \end_inset
2683
2684 .
2685  You are free to use the same or different styles for each section.
2686  Additionally, you can choose if the bibliography section should contain
2687  
2688 \begin_inset Quotes eld
2689 \end_inset
2690
2691 all cited references
2692 \begin_inset Quotes erd
2693 \end_inset
2694
2695  of the specified database(s) (which is the default), 
2696 \begin_inset Quotes eld
2697 \end_inset
2698
2699 all uncited references
2700 \begin_inset Quotes erd
2701 \end_inset
2702
2703  or even 
2704 \begin_inset Quotes eld
2705 \end_inset
2706
2707 all references
2708 \begin_inset Quotes erd
2709 \end_inset
2710
2711 .
2712  This might be useful if you would like to separate your bibliography into
2713  three sections: 
2714 \begin_inset Quotes eld
2715 \end_inset
2716
2717 Cited sources
2718 \begin_inset Quotes erd
2719 \end_inset
2720
2721
2722 \begin_inset Quotes eld
2723 \end_inset
2724
2725 Uncited sources
2726 \begin_inset Quotes erd
2727 \end_inset
2728
2729 , and 
2730 \begin_inset Quotes eld
2731 \end_inset
2732
2733 Scientific works
2734 \begin_inset Quotes erd
2735 \end_inset
2736
2737 .
2738  The titles for the sections can be added as ordinary sections or subsections.
2739  Since 
2740 \begin_inset Flex Code
2741 status collapsed
2742
2743 \begin_layout Plain Layout
2744 bibtopic
2745 \end_layout
2746
2747 \end_inset
2748
2749  removes the bibliography title, you have to manually re-add that, too (as
2750  a chapter* or section*, for instance).
2751 \end_layout
2752
2753 \begin_layout Subsection
2754 Multiple Bibliographies
2755 \end_layout
2756
2757 \begin_layout Standard
2758 Multiple bibliographies, e.
2759 \begin_inset space \thinspace{}
2760 \end_inset
2761
2762 g.
2763 \begin_inset space \space{}
2764 \end_inset
2765
2766 a bibliography for each section or chapter of the document, are not supported
2767  by Bib\SpecialChar TeX
2768  itself.
2769  But the 
2770 \begin_inset Flex Code
2771 status collapsed
2772
2773 \begin_layout Plain Layout
2774 bibtopic
2775 \end_layout
2776
2777 \end_inset
2778
2779  package, which is used for the creation of sectioned bibliographies in
2780  \SpecialChar LyX
2781  (see the previous section), provides an easy way to solve this task, if
2782  you are willing to use some 
2783 \begin_inset Flex MenuItem
2784 status collapsed
2785
2786 \begin_layout Plain Layout
2787 \SpecialChar TeX
2788  Code
2789 \end_layout
2790
2791 \end_inset
2792
2793  (see section
2794 \begin_inset space ~
2795 \end_inset
2796
2797
2798 \begin_inset CommandInset ref
2799 LatexCommand ref
2800 reference "sec:Inserting-TeX-Code"
2801
2802 \end_inset
2803
2804 ).
2805 \begin_inset Foot
2806 status collapsed
2807
2808 \begin_layout Plain Layout
2809 An alternative approach is to use the 
2810 \begin_inset Flex Code
2811 status collapsed
2812
2813 \begin_layout Plain Layout
2814 chapterbib
2815 \end_layout
2816
2817 \end_inset
2818
2819  or 
2820 \begin_inset Flex Code
2821 status collapsed
2822
2823 \begin_layout Plain Layout
2824 bibunits
2825 \end_layout
2826
2827 \end_inset
2828
2829  package, respectively.
2830 \end_layout
2831
2832 \end_inset
2833
2834
2835 \end_layout
2836
2837 \begin_layout Standard
2838 First go to 
2839 \begin_inset Flex MenuItem
2840 status collapsed
2841
2842 \begin_layout Plain Layout
2843 Document\SpecialChar menuseparator
2844 Settings
2845 \end_layout
2846
2847 \end_inset
2848
2849  and under 
2850 \begin_inset Flex MenuItem
2851 status collapsed
2852
2853 \begin_layout Plain Layout
2854 Bibliography
2855 \end_layout
2856
2857 \end_inset
2858
2859  check 
2860 \begin_inset Flex MenuItem
2861 status collapsed
2862
2863 \begin_layout Plain Layout
2864 Sectioned bibliography
2865 \end_layout
2866
2867 \end_inset
2868
2869 .
2870  In the document, you have to enclose the sections, which shall contain
2871  their own bibliography (including the Bib\SpecialChar TeX
2872  bibliography itself), between
2873  
2874 \begin_inset Flex Code
2875 status collapsed
2876
2877 \begin_layout Plain Layout
2878
2879 \backslash
2880 begin{btUnit}
2881 \end_layout
2882
2883 \end_inset
2884
2885  and 
2886 \begin_inset Flex Code
2887 status collapsed
2888
2889 \begin_layout Plain Layout
2890
2891 \backslash
2892 end{btUnit}
2893 \end_layout
2894
2895 \end_inset
2896
2897  (those commands have to be inserted as \SpecialChar TeX
2898  code).
2899  The bibliography will contain all references that have been cited in the
2900  current 
2901 \begin_inset Flex Code
2902 status collapsed
2903
2904 \begin_layout Plain Layout
2905 btUnit
2906 \end_layout
2907
2908 \end_inset
2909
2910 .
2911  
2912 \series bold
2913 Note:
2914 \series default
2915  If you are using this approach, then every citation reference has to be
2916  inside some 
2917 \begin_inset Flex Code
2918 status collapsed
2919
2920 \begin_layout Plain Layout
2921 btUnit
2922 \end_layout
2923
2924 \end_inset
2925
2926 .
2927  Also, the 
2928 \begin_inset Flex Code
2929 status collapsed
2930
2931 \begin_layout Plain Layout
2932 btUnit
2933 \end_layout
2934
2935 \end_inset
2936
2937 s cannot be nested.
2938 \end_layout
2939
2940 \begin_layout Section
2941 Multipart Documents
2942 \end_layout
2943
2944 \begin_layout Subsection
2945 General Operation
2946 \end_layout
2947
2948 \begin_layout Standard
2949 When you are working on a large file with many sections, it is often convenient
2950  to break up the document into several files, or perhaps you have something
2951  where a table may change from time to time, but the preceding text does
2952  not.
2953  In these cases, you should seriously consider using multipart documents.
2954  For example, scientific papers often have five major sections: the introduction
2955 , observations, results, discussion, and conclusion.
2956  Each of these could be its own separate \SpecialChar LyX
2957  file, with one 
2958 \begin_inset Quotes eld
2959 \end_inset
2960
2961 master
2962 \begin_inset Quotes erd
2963 \end_inset
2964
2965  file which contains the title, authors, abstract, references, etc., plus
2966  the five included files.
2967  It is important to note that each of these files is a full \SpecialChar LyX
2968  file which
2969  can be formatted and printed on its own, as well as included in a master
2970  file.
2971  Each of these files must have the same document class, however—don't attempt
2972  to mix book classes with article classes.
2973  You may also include \SpecialChar LaTeX
2974  files; however, these files must not have their own
2975  preamble (i.
2976 \begin_inset space \thinspace{}
2977 \end_inset
2978
2979 e.
2980 \begin_inset space \space{}
2981 \end_inset
2982
2983 everything up to and including the 
2984 \begin_inset Flex Code
2985 status collapsed
2986
2987 \begin_layout Plain Layout
2988
2989 \backslash
2990 begin{document}
2991 \end_layout
2992
2993 \end_inset
2994
2995  line as well as the 
2996 \begin_inset Flex Code
2997 status collapsed
2998
2999 \begin_layout Plain Layout
3000
3001 \backslash
3002 end{document}
3003 \end_layout
3004
3005 \end_inset
3006
3007  line must be deleted) or else errors will be generated when you try to
3008  make a DVI file.
3009 \end_layout
3010
3011 \begin_layout Standard
3012 \SpecialChar LyX
3013  allows you to include files quite easily with 
3014 \begin_inset Flex MenuItem
3015 status collapsed
3016
3017 \begin_layout Plain Layout
3018 Insert\SpecialChar menuseparator
3019 ChiId
3020 \begin_inset space ~
3021 \end_inset
3022
3023 Document
3024 \end_layout
3025
3026 \end_inset
3027
3028 .
3029  When you click on this selection a small box is inserted into the file
3030  at the current cursor location.
3031  Clicking on the box raises a dialog which allows you to select the file
3032  to be included, and the method of its inclusion.
3033  
3034 \end_layout
3035
3036 \begin_layout Standard
3037 The file selection box should by now be obvious.
3038  The three inclusion methods are 
3039 \begin_inset Quotes eld
3040 \end_inset
3041
3042 include
3043 \begin_inset Quotes erd
3044 \end_inset
3045
3046
3047 \begin_inset Quotes eld
3048 \end_inset
3049
3050 input
3051 \begin_inset Quotes erd
3052 \end_inset
3053
3054 , and 
3055 \begin_inset Quotes eld
3056 \end_inset
3057
3058 verbatim
3059 \begin_inset Quotes erd
3060 \end_inset
3061
3062 .
3063  The difference between 
3064 \begin_inset Quotes eld
3065 \end_inset
3066
3067 include
3068 \begin_inset Quotes erd
3069 \end_inset
3070
3071  and 
3072 \begin_inset Quotes eld
3073 \end_inset
3074
3075 input
3076 \begin_inset Quotes erd
3077 \end_inset
3078
3079  is really only meaningful to \SpecialChar LaTeX
3080 perts, but the practical difference is that
3081  files that are 
3082 \begin_inset Quotes eld
3083 \end_inset
3084
3085 included
3086 \begin_inset Quotes erd
3087 \end_inset
3088
3089  are typeset beginning on a new page, while files that are 
3090 \begin_inset Quotes eld
3091 \end_inset
3092
3093 inputted
3094 \begin_inset Quotes erd
3095 \end_inset
3096
3097  are typeset starting on the current page.
3098 \end_layout
3099
3100 \begin_layout Standard
3101 Generally, the master file is converted into a full \SpecialChar LaTeX
3102  file before typesetting,
3103  while the included files are converted to \SpecialChar LaTeX
3104  files that do not have all the
3105  preamble information.
3106 \end_layout
3107
3108 \begin_layout Standard
3109
3110 \begin_inset Quotes eld
3111 \end_inset
3112
3113 verbatim
3114 \begin_inset Quotes erd
3115 \end_inset
3116
3117  included file allows you to include a file typeset exactly as it appears
3118  in the file, i.
3119 \begin_inset space \thinspace{}
3120 \end_inset
3121
3122 e.
3123 \begin_inset space \space{}
3124 \end_inset
3125
3126 in 
3127 \begin_inset Flex Code
3128 status collapsed
3129
3130 \begin_layout Plain Layout
3131 verbatim
3132 \end_layout
3133
3134 \end_inset
3135
3136  mode, with the characters set in a fixed-width typewriter font.
3137  Normally, spaces in this file are invisible, though two consecutive spaces
3138  are conserved, unlike \SpecialChar LyX
3139 's normal treatment of spaces.
3140  However, setting the 
3141 \begin_inset Flex MenuItem
3142 status collapsed
3143
3144 \begin_layout Plain Layout
3145 Mark
3146 \begin_inset space ~
3147 \end_inset
3148
3149 spaces
3150 \begin_inset space ~
3151 \end_inset
3152
3153 in
3154 \begin_inset space ~
3155 \end_inset
3156
3157 output
3158 \end_layout
3159
3160 \end_inset
3161
3162  checkbox typesets a mark to unambiguously define the presence of a space.
3163  
3164 \end_layout
3165
3166 \begin_layout Subsection
3167 Cross-References Between Files
3168 \end_layout
3169
3170 \begin_layout Standard
3171 \begin_inset Box Shadowbox
3172 position "t"
3173 hor_pos "c"
3174 has_inner_box 1
3175 inner_pos "t"
3176 use_parbox 0
3177 use_makebox 0
3178 width "100col%"
3179 special "none"
3180 height "1in"
3181 height_special "totalheight"
3182 thickness "0.4pt"
3183 separation "3pt"
3184 shadowsize "4pt"
3185 framecolor "black"
3186 backgroundcolor "none"
3187 status open
3188
3189 \begin_layout Plain Layout
3190 This section is somewhat out of date.
3191  Need to describe default master documents and how children are opened when
3192  the master is.
3193  [[FIXME]]
3194 \end_layout
3195
3196 \end_inset
3197
3198
3199 \end_layout
3200
3201 \begin_layout Standard
3202 It is possible to set up cross-references between the different files.
3203  First, open all the files in question: let's call them A and B in a two
3204  file example, where B is included in A.
3205  Let's say you insert a label in A, then want to reference it in B.
3206  Open the cross-reference dialog whilst in document B, and you can select
3207  the 
3208 \begin_inset Quotes eld
3209 \end_inset
3210
3211 buffer
3212 \begin_inset Quotes erd
3213 \end_inset
3214
3215  to use.
3216 \end_layout
3217
3218 \begin_layout Subsection
3219 Bibliography Lists in all Subdocuments
3220 \end_layout
3221
3222 \begin_layout Standard
3223 \begin_inset Box Frameless
3224 position "t"
3225 hor_pos "c"
3226 has_inner_box 1
3227 inner_pos "t"
3228 use_parbox 0
3229 use_makebox 0
3230 width "100col%"
3231 special "none"
3232 height "1in"
3233 height_special "totalheight"
3234 thickness "0.4pt"
3235 separation "3pt"
3236 shadowsize "4pt"
3237 framecolor "black"
3238 backgroundcolor "none"
3239 status open
3240
3241 \begin_layout Plain Layout
3242 This section also needs updating.
3243  There is now material about this on the wiki, and it could be copied here.
3244 \end_layout
3245
3246 \end_inset
3247
3248
3249 \end_layout
3250
3251 \begin_layout Standard
3252 Copy the bibliography list with all entries to all subdocuments and transform
3253  them to a comment.
3254  This way \SpecialChar LyX
3255  will find the 
3256 \begin_inset Flex Code
3257 status collapsed
3258
3259 \begin_layout Plain Layout
3260 .bib
3261 \end_layout
3262
3263 \end_inset
3264
3265 -files and you can easily insert references without making the bibliography
3266  list visible.
3267 \end_layout
3268
3269 \begin_layout Standard
3270 As the bibliography list is in a comment, \SpecialChar LaTeX
3271  won't use it and the references
3272  will look like this: [?], instead of like this: [1].
3273  One solution is to use the \SpecialChar LaTeX
3274 -package 
3275 \begin_inset Flex Code
3276 status collapsed
3277
3278 \begin_layout Plain Layout
3279 comment
3280 \end_layout
3281
3282 \end_inset
3283
3284  that will only include comments by processing the files separately.
3285  To do this, add in the \SpecialChar LaTeX
3286  preamble of every subdocument the following:
3287 \end_layout
3288
3289 \begin_layout LyX-Code
3290
3291 \backslash
3292 usepackage{comment}
3293 \end_layout
3294
3295 \begin_layout LyX-Code
3296
3297 \backslash
3298 includecomment{comment}
3299 \end_layout
3300
3301 \begin_layout Standard
3302 See also 
3303 \begin_inset Flex URL
3304 status collapsed
3305
3306 \begin_layout Plain Layout
3307
3308 http://wiki.lyx.org/FAQ/Unsorted#toc31
3309 \end_layout
3310
3311 \end_inset
3312
3313 .
3314 \end_layout
3315
3316 \begin_layout Section
3317 \SpecialChar LyX
3318  Archives
3319 \end_layout
3320
3321 \begin_layout Standard
3322 Users sometimes need to be able to 
3323 \begin_inset Quotes eld
3324 \end_inset
3325
3326 bundle
3327 \begin_inset Quotes erd
3328 \end_inset
3329
3330  a \SpecialChar LyX
3331  file together with all the images (and other files) on which it depends,
3332  either for sending to a publisher or for sharing with a co-author.
3333  \SpecialChar LyX
3334  2.0 includes a Python script (
3335 \begin_inset Flex Code
3336 status collapsed
3337
3338 \begin_layout Plain Layout
3339 lyxpak.py
3340 \end_layout
3341
3342 \end_inset
3343
3344 ) that automates this process.
3345  To use it, you must have either the 
3346 \begin_inset Flex Code
3347 status collapsed
3348
3349 \begin_layout Plain Layout
3350 zipfile
3351 \end_layout
3352
3353 \end_inset
3354
3355  or 
3356 \begin_inset Flex Code
3357 status collapsed
3358
3359 \begin_layout Plain Layout
3360 tarfile
3361 \end_layout
3362
3363 \end_inset
3364
3365  python modules installed on your system.
3366  By default, the script prefers the 
3367 \begin_inset Flex Code
3368 status collapsed
3369
3370 \begin_layout Plain Layout
3371 gzip
3372 \end_layout
3373
3374 \end_inset
3375
3376 -compressed 
3377 \begin_inset Flex Code
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 tar
3382 \end_layout
3383
3384 \end_inset
3385
3386  format on Unix-like systems and the 
3387 \begin_inset Flex Code
3388 status collapsed
3389
3390 \begin_layout Plain Layout
3391 zip
3392 \end_layout
3393
3394 \end_inset
3395
3396  format on Windows.
3397 \end_layout
3398
3399 \begin_layout Standard
3400 \SpecialChar LyX
3401 's configuration process will set the script up to export a `\SpecialChar LyX
3402  Archive',
3403  and this format will then be available under 
3404 \begin_inset Flex Code
3405 status collapsed
3406
3407 \begin_layout Plain Layout
3408 File\SpecialChar menuseparator
3409 Export
3410 \end_layout
3411
3412 \end_inset
3413
3414 .
3415 \end_layout
3416
3417 \begin_layout Standard
3418 Independently of the platform, the generation of a particular archive format
3419  can be forced by adding either the 
3420 \begin_inset Flex Code
3421 status collapsed
3422
3423 \begin_layout Plain Layout
3424 -t
3425 \end_layout
3426
3427 \end_inset
3428
3429  (for the 
3430 \begin_inset Flex Code
3431 status collapsed
3432
3433 \begin_layout Plain Layout
3434 tar
3435 \end_layout
3436
3437 \end_inset
3438
3439  format) or 
3440 \begin_inset Flex Code
3441 status collapsed
3442
3443 \begin_layout Plain Layout
3444 -z
3445 \end_layout
3446
3447 \end_inset
3448
3449  (for the 
3450 \begin_inset Flex Code
3451 status collapsed
3452
3453 \begin_layout Plain Layout
3454 zip
3455 \end_layout
3456
3457 \end_inset
3458
3459  format) switch to the 
3460 \begin_inset Flex Code
3461 status collapsed
3462
3463 \begin_layout Plain Layout
3464 \SpecialChar LyX
3465 \SpecialChar menuseparator
3466 \SpecialChar LyX
3467  Archive
3468 \end_layout
3469
3470 \end_inset
3471
3472  converter in 
3473 \begin_inset Flex Code
3474 status collapsed
3475
3476 \begin_layout Plain Layout
3477 Tools\SpecialChar menuseparator
3478 Preferences\SpecialChar menuseparator
3479 File Handling\SpecialChar menuseparator
3480 Converters
3481 \end_layout
3482
3483 \end_inset
3484
3485 .
3486  (Make sure you add the switch after the script name, not before it.)
3487 \end_layout
3488
3489 \begin_layout Section
3490 Fancy Headers and Footers
3491 \end_layout
3492
3493 \begin_layout Standard
3494 The default page layout is rather plain; for an 
3495 \begin_inset Flex Code
3496 status collapsed
3497
3498 \begin_layout Plain Layout
3499 article
3500 \end_layout
3501
3502 \end_inset
3503
3504  document class, all you get is a centered page number at the bottom of
3505  the page.
3506  This document uses KOMA-script's book class, so it appears to be a bit
3507  fancier.
3508  But to really put on a show, you need to set the document page style to
3509  
3510 \begin_inset Quotes eld
3511 \end_inset
3512
3513 fancy
3514 \begin_inset Quotes erd
3515 \end_inset
3516
3517 , as mentioned in the 
3518 \emph on
3519 User Guide
3520 \emph default
3521 .
3522  This section describes the \SpecialChar LaTeX
3523  code you need to insert in your \SpecialChar LaTeX
3524  preamble in
3525  order to get the desired effects.
3526 \end_layout
3527
3528 \begin_layout Standard
3529 For more information on fancy headers, see the 
3530 \begin_inset Flex Code
3531 status collapsed
3532
3533 \begin_layout Plain Layout
3534 fancyhdr
3535 \end_layout
3536
3537 \end_inset
3538
3539  package documentation.
3540  (
3541 \begin_inset Flex URL
3542 status collapsed
3543
3544 \begin_layout Plain Layout
3545
3546 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3547 \end_layout
3548
3549 \end_inset
3550
3551 )
3552 \end_layout
3553
3554 \begin_layout Standard
3555 The page header is divided into three fields, not surprisingly labeled 
3556 \begin_inset Quotes eld
3557 \end_inset
3558
3559 left
3560 \begin_inset Quotes erd
3561 \end_inset
3562
3563
3564 \begin_inset Quotes eld
3565 \end_inset
3566
3567 center
3568 \begin_inset Quotes erd
3569 \end_inset
3570
3571 , and 
3572 \begin_inset Quotes eld
3573 \end_inset
3574
3575 right
3576 \begin_inset Quotes erd
3577 \end_inset
3578
3579 .
3580  The footer is also divided into these three fields.
3581  The \SpecialChar LaTeX
3582  commands to set these fields in the simplest manner are 
3583 \begin_inset Flex Code
3584 status collapsed
3585
3586 \begin_layout Plain Layout
3587
3588 \backslash
3589 lhead
3590 \end_layout
3591
3592 \end_inset
3593
3594
3595 \begin_inset Flex Code
3596 status collapsed
3597
3598 \begin_layout Plain Layout
3599
3600 \backslash
3601 chead
3602 \end_layout
3603
3604 \end_inset
3605
3606
3607 \begin_inset Flex Code
3608 status collapsed
3609
3610 \begin_layout Plain Layout
3611
3612 \backslash
3613 rhead
3614 \end_layout
3615
3616 \end_inset
3617
3618
3619 \begin_inset Flex Code
3620 status collapsed
3621
3622 \begin_layout Plain Layout
3623
3624 \backslash
3625 lfoot
3626 \end_layout
3627
3628 \end_inset
3629
3630 , etc.
3631  Suppose you wish to put your name in the upper left hand corner of each
3632  page.
3633  Simply insert the following command in the preamble: 
3634 \end_layout
3635
3636 \begin_layout Standard
3637
3638 \family typewriter
3639
3640 \backslash
3641 lhead{John Q.
3642  DocWriter}
3643 \end_layout
3644
3645 \begin_layout Standard
3646 You will now see your name in the upper left.
3647  If a field has a default entry that you would like to get rid of (often
3648  the page number appears in the central footer) simply include a command
3649  with a blank argument, e.
3650 \begin_inset space \thinspace{}
3651 \end_inset
3652
3653 g.:
3654 \end_layout
3655
3656 \begin_layout Standard
3657
3658 \family typewriter
3659
3660 \backslash
3661 cfoot{}
3662 \end_layout
3663
3664 \begin_layout Standard
3665 Let's get really fancy: lets put the section number with the word 
3666 \begin_inset Quotes eld
3667 \end_inset
3668
3669 Section
3670 \begin_inset Quotes erd
3671 \end_inset
3672
3673  (e.
3674 \begin_inset space \thinspace{}
3675 \end_inset
3676
3677 g.
3678 \begin_inset space \space{}
3679 \end_inset
3680
3681 Section 3) in the upper left, the page number (e.
3682 \begin_inset space \thinspace{}
3683 \end_inset
3684
3685 g.
3686 \begin_inset space \space{}
3687 \end_inset
3688
3689 Page 4) in the upper right, your name in the lower left, and the date in
3690  the lower right.
3691  The following commands should now appear in the preamble:
3692 \end_layout
3693
3694 \begin_layout Standard
3695
3696 \family typewriter
3697
3698 \backslash
3699 lhead{Section 
3700 \backslash
3701 thesection}
3702 \end_layout
3703
3704 \begin_layout Standard
3705
3706 \family typewriter
3707
3708 \backslash
3709 chead{}
3710 \end_layout
3711
3712 \begin_layout Standard
3713
3714 \family typewriter
3715
3716 \backslash
3717 rhead{Page 
3718 \backslash
3719 thepage}
3720 \end_layout
3721
3722 \begin_layout Standard
3723
3724 \family typewriter
3725
3726 \backslash
3727 lfoot{John Q.
3728  DocWriter}
3729 \end_layout
3730
3731 \begin_layout Standard
3732
3733 \family typewriter
3734
3735 \backslash
3736 cfoot{}
3737 \end_layout
3738
3739 \begin_layout Standard
3740
3741 \family typewriter
3742
3743 \backslash
3744 rfoot{
3745 \backslash
3746 today}
3747 \end_layout
3748
3749 \begin_layout Standard
3750 The commands 
3751 \begin_inset Flex Code
3752 status collapsed
3753
3754 \begin_layout Plain Layout
3755
3756 \backslash
3757 thesection
3758 \end_layout
3759
3760 \end_inset
3761
3762  and 
3763 \begin_inset Flex Code
3764 status collapsed
3765
3766 \begin_layout Plain Layout
3767
3768 \backslash
3769 thepage
3770 \end_layout
3771
3772 \end_inset
3773
3774  access \SpecialChar LaTeX
3775 's section and page counters, and so print out the current section
3776  and page numbers.
3777  
3778 \begin_inset Flex Code
3779 status collapsed
3780
3781 \begin_layout Plain Layout
3782
3783 \backslash
3784 today
3785 \end_layout
3786
3787 \end_inset
3788
3789  simply prints out today's date.
3790 \end_layout
3791
3792 \begin_layout Standard
3793 The thicknesses of the horizontal rules drawn beneath the header and above
3794  the footer can also be modified.
3795  If you don't want one of the rules, set its thickness to 0.
3796  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3797  Use commands
3798 \family typewriter
3799  
3800 \family default
3801 like 
3802 \begin_inset Flex Code
3803 status collapsed
3804
3805 \begin_layout Plain Layout
3806
3807 \backslash
3808 renewcommand{
3809 \backslash
3810 headrulewidth}{0.4pt}
3811 \end_layout
3812
3813 \end_inset
3814
3815  and 
3816 \begin_inset Flex Code
3817 status collapsed
3818
3819 \begin_layout Plain Layout
3820
3821 \backslash
3822 renewcommand{
3823 \backslash
3824 footrulewidth}{0.4pt}
3825 \end_layout
3826
3827 \end_inset
3828
3829  to set the thicknesses.
3830 \end_layout
3831
3832 \begin_layout Standard
3833 You can switch the header/footer settings on and off for individual pages
3834  using commands like 
3835 \begin_inset Flex Code
3836 status collapsed
3837
3838 \begin_layout Plain Layout
3839
3840 \backslash
3841 thispagestyle{empty}
3842 \end_layout
3843
3844 \end_inset
3845
3846
3847 \begin_inset Flex Code
3848 status collapsed
3849
3850 \begin_layout Plain Layout
3851
3852 \backslash
3853 thispagestyle{plain}
3854 \end_layout
3855
3856 \end_inset
3857
3858 , and 
3859 \begin_inset Flex Code
3860 status collapsed
3861
3862 \begin_layout Plain Layout
3863
3864 \backslash
3865 thispagestyle{fancy}
3866 \end_layout
3867
3868 \end_inset
3869
3870 .
3871  Simply insert them in the text on the page you want changed and mark them
3872  as \SpecialChar TeX
3873  code.
3874  In fact, title pages are marked as plain by default, while following pages
3875  are marked fancy when using the global fancy setting.
3876 \end_layout
3877
3878 \begin_layout Standard
3879 As a final example, it is possible to include an image in the header or
3880  footer.
3881  Suppose you want to put a company logo in the upper lefthand corner.
3882  You might try something like
3883 \end_layout
3884
3885 \begin_layout Standard
3886
3887 \family typewriter
3888
3889 \backslash
3890 lhead{
3891 \backslash
3892 resizebox{1in}{!}{
3893 \backslash
3894 includegraphics{logo.eps}}}
3895 \end_layout
3896
3897 \begin_layout Standard
3898 \noindent
3899 (you may need to preface this with 
3900 \begin_inset Flex Code
3901 status collapsed
3902
3903 \begin_layout Plain Layout
3904 \noindent
3905
3906 \backslash
3907 usepackage{graphics}
3908 \end_layout
3909
3910 \end_inset
3911
3912  if you don't include graphics elsewhere in your document).
3913 \end_layout
3914
3915 \begin_layout Section
3916 Itemize Bullet Selection
3917 \begin_inset CommandInset label
3918 LatexCommand label
3919 name "sec:bullet"
3920
3921 \end_inset
3922
3923
3924 \end_layout
3925
3926 \begin_layout Standard
3927 by
3928 \noun on
3929  Allan Rae
3930 \end_layout
3931
3932 \begin_layout Subsection
3933 Introduction
3934 \end_layout
3935
3936 \begin_layout Standard
3937 \SpecialChar LyX
3938  provides 216 bullet shapes that can be accessed from a simple dialog.
3939  Using this dialog you can easily specify what bullet shape to use at each
3940  level of an itemized list.
3941  These settings are document-wide so you won't be able to specify different
3942  sets of bullets for different paragraphs.
3943 \begin_inset Foot
3944 status collapsed
3945
3946 \begin_layout Plain Layout
3947 Well, actually you can but you'll have to do it by hand.
3948 \end_layout
3949
3950 \end_inset
3951
3952
3953 \end_layout
3954
3955 \begin_layout Subsection
3956 How it looks
3957 \end_layout
3958
3959 \begin_layout Standard
3960 Open the dialog by selecting the 
3961 \begin_inset Flex MenuItem
3962 status collapsed
3963
3964 \begin_layout Plain Layout
3965 Document\SpecialChar menuseparator
3966 Settings
3967 \end_layout
3968
3969 \end_inset
3970
3971  menu item and then select the 
3972 \begin_inset Flex MenuItem
3973 status collapsed
3974
3975 \begin_layout Plain Layout
3976 Bullets
3977 \end_layout
3978
3979 \end_inset
3980
3981  tab.
3982 \end_layout
3983
3984 \begin_layout Standard
3985 The dialog provides you with a table of bullet shapes.
3986  A column of buttons on the left of the table provides access to the six
3987  different panels of bullet shapes.
3988  The row of buttons across the top is used to select which bullet depth
3989  you are changing.
3990  A text entry under the table shows the currently selected bullet shape's
3991  \SpecialChar LaTeX
3992  equivalent and this can be edited if desired.
3993  If you do modify the text you will also need to specify any needed packages
3994  in the \SpecialChar LaTeX
3995  preamble.
3996 \end_layout
3997
3998 \begin_layout Standard
3999 The six panels are divided up by the packages they require.
4000  The following table shows the mappings from button name to \SpecialChar LaTeX
4001  package.
4002 \begin_inset Separator parbreak
4003 \end_inset
4004
4005
4006 \end_layout
4007
4008 \begin_layout Standard
4009 \align center
4010 \begin_inset Tabular
4011 <lyxtabular version="3" rows="7" columns="2">
4012 <features tabularvalignment="middle">
4013 <column alignment="center" valignment="top" width="0pt">
4014 <column alignment="center" valignment="top" width="0pt">
4015 <row>
4016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4017 \begin_inset Text
4018
4019 \begin_layout Plain Layout
4020
4021 \family roman
4022 \series medium
4023 \shape up
4024 \size normal
4025 \emph off
4026 \bar no
4027 \noun off
4028 \color none
4029 Button
4030 \end_layout
4031
4032 \end_inset
4033 </cell>
4034 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4035 \begin_inset Text
4036
4037 \begin_layout Plain Layout
4038
4039 \family roman
4040 \series medium
4041 \shape up
4042 \size normal
4043 \emph off
4044 \bar no
4045 \noun off
4046 \color none
4047 Packages Required
4048 \end_layout
4049
4050 \end_inset
4051 </cell>
4052 </row>
4053 <row>
4054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4055 \begin_inset Text
4056
4057 \begin_layout Plain Layout
4058
4059 \family sans
4060 \series medium
4061 \shape up
4062 \size normal
4063 \emph off
4064 \bar no
4065 \noun off
4066 \color none
4067 Standard
4068 \end_layout
4069
4070 \end_inset
4071 </cell>
4072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4073 \begin_inset Text
4074
4075 \begin_layout Plain Layout
4076
4077 \series medium
4078 \shape up
4079 \size normal
4080 \emph off
4081 \bar no
4082 \noun off
4083 \color none
4084 base \SpecialChar LaTeX
4085
4086 \end_layout
4087
4088 \end_inset
4089 </cell>
4090 </row>
4091 <row>
4092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4093 \begin_inset Text
4094
4095 \begin_layout Plain Layout
4096
4097 \family sans
4098 \series medium
4099 \shape up
4100 \size normal
4101 \emph off
4102 \bar no
4103 \noun off
4104 \color none
4105 Maths
4106 \end_layout
4107
4108 \end_inset
4109 </cell>
4110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4111 \begin_inset Text
4112
4113 \begin_layout Plain Layout
4114
4115 \family typewriter
4116 \series medium
4117 \shape up
4118 \size normal
4119 \emph off
4120 \bar no
4121 \noun off
4122 \color none
4123 amssymb.sty
4124 \end_layout
4125
4126 \end_inset
4127 </cell>
4128 </row>
4129 <row>
4130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4131 \begin_inset Text
4132
4133 \begin_layout Plain Layout
4134
4135 \family sans
4136 \series medium
4137 \shape up
4138 \size normal
4139 \emph off
4140 \bar no
4141 \noun off
4142 \color none
4143 Ding1
4144 \end_layout
4145
4146 \end_inset
4147 </cell>
4148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4149 \begin_inset Text
4150
4151 \begin_layout Plain Layout
4152
4153 \family typewriter
4154 \series medium
4155 \shape up
4156 \size normal
4157 \emph off
4158 \bar no
4159 \noun off
4160 \color none
4161 pifont.sty
4162 \end_layout
4163
4164 \end_inset
4165 </cell>
4166 </row>
4167 <row>
4168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4169 \begin_inset Text
4170
4171 \begin_layout Plain Layout
4172
4173 \family sans
4174 \series medium
4175 \shape up
4176 \size normal
4177 \emph off
4178 \bar no
4179 \noun off
4180 \color none
4181 Ding2
4182 \end_layout
4183
4184 \end_inset
4185 </cell>
4186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4187 \begin_inset Text
4188
4189 \begin_layout Plain Layout
4190
4191 \family typewriter
4192 \series medium
4193 \shape up
4194 \size normal
4195 \emph off
4196 \bar no
4197 \noun off
4198 \color none
4199 pifont.sty
4200 \end_layout
4201
4202 \end_inset
4203 </cell>
4204 </row>
4205 <row>
4206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4207 \begin_inset Text
4208
4209 \begin_layout Plain Layout
4210
4211 \family sans
4212 \series medium
4213 \shape up
4214 \size normal
4215 \emph off
4216 \bar no
4217 \noun off
4218 \color none
4219 Ding3
4220 \end_layout
4221
4222 \end_inset
4223 </cell>
4224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4225 \begin_inset Text
4226
4227 \begin_layout Plain Layout
4228
4229 \family typewriter
4230 \series medium
4231 \shape up
4232 \size normal
4233 \emph off
4234 \bar no
4235 \noun off
4236 \color none
4237 pifont.sty
4238 \end_layout
4239
4240 \end_inset
4241 </cell>
4242 </row>
4243 <row>
4244 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4245 \begin_inset Text
4246
4247 \begin_layout Plain Layout
4248
4249 \family sans
4250 \series medium
4251 \shape up
4252 \size normal
4253 \emph off
4254 \bar no
4255 \noun off
4256 \color none
4257 Ding4
4258 \end_layout
4259
4260 \end_inset
4261 </cell>
4262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4263 \begin_inset Text
4264
4265 \begin_layout Plain Layout
4266
4267 \family typewriter
4268 \series medium
4269 \shape up
4270 \size normal
4271 \emph off
4272 \bar no
4273 \noun off
4274 \color none
4275 pifont.sty
4276 \end_layout
4277
4278 \end_inset
4279 </cell>
4280 </row>
4281 </lyxtabular>
4282
4283 \end_inset
4284
4285
4286 \end_layout
4287
4288 \begin_layout Standard
4289 \SpecialChar LyX
4290  doesn't stop you using bullets from packages you don't have.
4291  If you get errors from \SpecialChar LaTeX
4292  when you try to view or print the file, then it
4293  is likely you are missing a package.
4294 \begin_inset Foot
4295 status collapsed
4296
4297 \begin_layout Plain Layout
4298 \SpecialChar LyX
4299  doesn't restrict your use since you may be editing locally and exporting
4300  elsewhere.
4301 \end_layout
4302
4303 \end_inset
4304
4305
4306 \end_layout
4307
4308 \begin_layout Subsection
4309 How to use it
4310 \end_layout
4311
4312 \begin_layout Standard
4313 Select which bullet depth you want to change then select the bullet shape
4314  and size.
4315  Any changes will not be visible in \SpecialChar LyX
4316 , but are visible when viewing the document.
4317 \end_layout
4318
4319 \begin_layout Standard
4320 You can reset a bullet shape to the default simply by clicking your right
4321  mouse button on the appropriate bullet depth button.
4322 \begin_inset Foot
4323 status collapsed
4324
4325 \begin_layout Plain Layout
4326 If you 
4327 \emph on
4328 really
4329 \emph default
4330  want to have multiple sets of paragraphs with different sets of bullets
4331  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4332  code.
4333  The bullet selection dialog can help though because it provides you with
4334  the \SpecialChar LaTeX
4335  code for a wide range of bullet shapes.
4336  To make your own custom paragraphs you have the following options:
4337 \end_layout
4338
4339 \begin_layout Plain Layout
4340 \begin_inset ERT
4341 status open
4342
4343 \begin_layout Plain Layout
4344
4345
4346 \backslash
4347 let
4348 \backslash
4349 savelabelitemi=
4350 \backslash
4351 labelitemi
4352 \end_layout
4353
4354 \end_inset
4355
4356
4357 \end_layout
4358
4359 \begin_layout Plain Layout
4360 \begin_inset ERT
4361 status open
4362
4363 \begin_layout Plain Layout
4364
4365
4366 \backslash
4367 renewcommand
4368 \backslash
4369 labelitemi[0]{
4370 \backslash
4371 small
4372 \backslash
4373 (
4374 \backslash
4375 sharp
4376 \backslash
4377 )}
4378 \end_layout
4379
4380 \end_inset
4381
4382
4383 \end_layout
4384
4385 \begin_layout Itemize
4386 Use the \SpecialChar LaTeX
4387  command 
4388 \begin_inset Flex Code
4389 status collapsed
4390
4391 \begin_layout Plain Layout
4392
4393 \backslash
4394 renewcommand{}{}
4395 \end_layout
4396
4397 \end_inset
4398
4399  to specify a new bullet shape for a given depth.
4400  You'll also need to save the current bullet shape so you can restore it
4401  again afterwards.
4402  In this itemized list the following \SpecialChar LaTeX
4403  code was used to change the bullet
4404  used for the first depth.
4405 \begin_inset Separator parbreak
4406 \end_inset
4407
4408
4409 \end_layout
4410
4411 \begin_deeper
4412 \begin_layout LyX-Code
4413
4414 \backslash
4415 let
4416 \backslash
4417 savelabelitemi=
4418 \backslash
4419 labelitemi 
4420 \end_layout
4421
4422 \begin_layout LyX-Code
4423
4424 \backslash
4425 renewcommand
4426 \backslash
4427 labelitemi[0]{
4428 \backslash
4429 small
4430 \backslash
4431 (
4432 \backslash
4433 sharp
4434 \backslash
4435 )}
4436 \end_layout
4437
4438 \end_deeper
4439 \begin_layout Itemize
4440 Note that the itemize depth is specified in Roman numerals as part of the
4441  
4442 \family typewriter
4443
4444 \backslash
4445 labelitem
4446 \family default
4447  command.
4448 \end_layout
4449
4450 \begin_layout Itemize
4451 \begin_inset ERT
4452 status open
4453
4454 \begin_layout Plain Layout
4455
4456 [
4457 \backslash
4458 (
4459 \backslash
4460 star
4461 \backslash
4462 )]
4463 \end_layout
4464
4465 \end_inset
4466
4467  Specify each individual entry by starting each item with the bullet shape
4468  enclosed in square brackets and set as 
4469 \begin_inset Flex MenuItem
4470 status collapsed
4471
4472 \begin_layout Plain Layout
4473 \SpecialChar TeX
4474  Code
4475 \end_layout
4476
4477 \end_inset
4478
4479 .
4480  For example, this item was started with 
4481 \begin_inset Flex Code
4482 status collapsed
4483
4484 \begin_layout Plain Layout
4485 [
4486 \backslash
4487 (
4488 \backslash
4489 star
4490 \backslash
4491 )]
4492 \end_layout
4493
4494 \end_inset
4495
4496 .
4497 \end_layout
4498
4499 \begin_layout Plain Layout
4500 \begin_inset ERT
4501 status open
4502
4503 \begin_layout Plain Layout
4504
4505
4506 \backslash
4507 renewcommand
4508 \backslash
4509 labelitemi[0]{
4510 \backslash
4511 savelabelitemi}
4512 \end_layout
4513
4514 \end_inset
4515
4516
4517 \end_layout
4518
4519 \begin_layout Plain Layout
4520 You'll also need to revert the labelitem back to its previous setting for
4521  the global bullet shape settings to remain in effect.
4522  The way used here was:
4523 \end_layout
4524
4525 \begin_layout LyX-Code
4526
4527 \backslash
4528 renewcommand
4529 \backslash
4530 labelitemi[0]{
4531 \backslash
4532 savelabelitemi}
4533 \end_layout
4534
4535 \end_inset
4536
4537
4538 \end_layout
4539
4540 \begin_layout Chapter
4541 \SpecialChar LyX
4542  and the World Wide Web
4543 \end_layout
4544
4545 \begin_layout Standard
4546 \SpecialChar LyX
4547  has long supported the export of documents to various web-friendly formats,
4548  such as HTML.
4549  Before verson 2.0, however, HTML export was always accomplished by the use
4550  of external converters.
4551 \begin_inset Foot
4552 status collapsed
4553
4554 \begin_layout Plain Layout
4555 For details on the use of external converters with \SpecialChar LyX
4556 , see the 
4557 \emph on
4558 Converters
4559 \emph default
4560  section of the Customization manual.
4561 \end_layout
4562
4563 \end_inset
4564
4565  These fall into two large groups: there are converters that use \SpecialChar LaTeX
4566  as an
4567  intermediate format, such as 
4568 \begin_inset Flex Code
4569 status collapsed
4570
4571 \begin_layout Plain Layout
4572 htlatex
4573 \end_layout
4574
4575 \end_inset
4576
4577
4578 \begin_inset Flex Code
4579 status collapsed
4580
4581 \begin_layout Plain Layout
4582 html2latex
4583 \end_layout
4584
4585 \end_inset
4586
4587 , and 
4588 \begin_inset Flex Code
4589 status collapsed
4590
4591 \begin_layout Plain Layout
4592 plastex
4593 \end_layout
4594
4595 \end_inset
4596
4597 , relying upon \SpecialChar LyX
4598  to produce the \SpecialChar LaTeX
4599 ; and there is a converter that works directly
4600  on \SpecialChar LyX
4601  files, 
4602 \begin_inset Flex Code
4603 status collapsed
4604
4605 \begin_layout Plain Layout
4606 e\SpecialChar LyX
4607 er
4608 \end_layout
4609
4610 \end_inset
4611
4612 .
4613  All of these have different advantages and disadvantages.
4614  
4615 \end_layout
4616
4617 \begin_layout Standard
4618 The \SpecialChar LaTeX
4619 -based converters have the advantage that, in principle, they know everythin
4620 g about the exported document that \SpecialChar LaTeX
4621  does.
4622  Such converters do not care, for example, if a certain block of code was
4623  produced by \SpecialChar LyX
4624  or was Evil Red Text.
4625  These converters know about 
4626 \begin_inset Flex Code
4627 status collapsed
4628
4629 \begin_layout Plain Layout
4630 aux
4631 \end_layout
4632
4633 \end_inset
4634
4635  files, counters, and references, and can often make use of the 
4636 \begin_inset Flex Code
4637 status collapsed
4638
4639 \begin_layout Plain Layout
4640 bbl
4641 \end_layout
4642
4643 \end_inset
4644
4645  files generated by Bib\SpecialChar TeX
4646 .
4647  On the other hand, \SpecialChar LaTeX
4648  is a very hard language to parse—it is sometimes said
4649  that only \SpecialChar TeX
4650  itself understands \SpecialChar TeX
4651 —and \SpecialChar LaTeX
4652 -based converters will often choke on
4653  what seem to be quite simple constructs; complex ones can throw them completely
4654 , and as of this writing, for example, the 
4655 \emph on
4656 Embedded Objects
4657 \emph default
4658  manual will not export with 
4659 \begin_inset Flex Code
4660 status collapsed
4661
4662 \begin_layout Plain Layout
4663 htlatex
4664 \end_layout
4665
4666 \end_inset
4667
4668 , though the others will.
4669  The other issue concerns how math is handled.
4670  These converters typically convert the formulae into little pictures that
4671  are then linked from the HTML document.
4672  Since these are actually generated by \SpecialChar LaTeX
4673 , they are accurate.
4674  But they do not scale well, and just getting them to look as if they are
4675  actually meant to be in your document—so that the font sizes seem to be
4676  roughly the same—can be a challenge.
4677 \end_layout
4678
4679 \begin_layout Standard
4680 Alex Fernandez's 
4681 \begin_inset Flex Code
4682 status collapsed
4683
4684 \begin_layout Plain Layout
4685 e\SpecialChar LyX
4686 er
4687 \end_layout
4688
4689 \end_inset
4690
4691  (
4692 \begin_inset CommandInset href
4693 LatexCommand href
4694 name "http://elyxer.nongnu.org/"
4695 target "http://elyxer.nongnu.org/"
4696
4697 \end_inset
4698
4699 ) solves some of these problems.
4700  In particular, the formulae it produces scale perfectly, since it renders
4701  math using a combination of HTML and CSS rather than converting the formulae
4702  to images.
4703  But even moderately complex formula are rendered less well than with 
4704 \begin_inset Flex Code
4705 status collapsed
4706
4707 \begin_layout Plain Layout
4708 htlatex
4709 \end_layout
4710
4711 \end_inset
4712
4713 ; this reflects the limitations of HTML.
4714 \begin_inset Foot
4715 status collapsed
4716
4717 \begin_layout Plain Layout
4718 That said, 
4719 \begin_inset Flex Code
4720 status collapsed
4721
4722 \begin_layout Plain Layout
4723 e\SpecialChar LyX
4724 er
4725 \end_layout
4726
4727 \end_inset
4728
4729  can also use jsMath and MathJax for equations, but this setting is only
4730  available globally and requires one to have access to a server that runs
4731  the backend.
4732 \end_layout
4733
4734 \end_inset
4735
4736  More importantly (as of version 1.1.1, at least), 
4737 \begin_inset Flex Code
4738 status collapsed
4739
4740 \begin_layout Plain Layout
4741 e\SpecialChar LyX
4742 er
4743 \end_layout
4744
4745 \end_inset
4746
4747  has limited support for math macros and no support for user-defined paragraph
4748  or character styles.
4749  These limitations make 
4750 \begin_inset Flex Code
4751 status collapsed
4752
4753 \begin_layout Plain Layout
4754 e\SpecialChar LyX
4755 er
4756 \end_layout
4757
4758 \end_inset
4759
4760  unsuitable for many of the documents \SpecialChar LyX
4761  users produce.
4762  In principle, of course, these problems could be solved, but the \SpecialChar LyX
4763  developers
4764  have decided to follow a different path and have made \SpecialChar LyX
4765  itself capable of
4766  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
4767 , DocBook, and plaintext.
4768 \end_layout
4769
4770 \begin_layout Standard
4771 As of this writing, XHTML output remains under development and should probably
4772  be regarded as 
4773 \begin_inset Quotes eld
4774 \end_inset
4775
4776 experimental
4777 \begin_inset Quotes erd
4778 \end_inset
4779
4780 .
4781 \begin_inset Foot
4782 status collapsed
4783
4784 \begin_layout Plain Layout
4785 The file 
4786 \begin_inset Flex Code
4787 status collapsed
4788
4789 \begin_layout Plain Layout
4790 development/HTML.notes
4791 \end_layout
4792
4793 \end_inset
4794
4795 , which can be found in the \SpecialChar LyX
4796  source tree or 
4797 \begin_inset CommandInset href
4798 LatexCommand href
4799 name "accessed online"
4800 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
4801
4802 \end_inset
4803
4804 , usually contains up-to-date information about the state of XHTML output.
4805  See also the list of XHTML bugs on 
4806 \begin_inset CommandInset href
4807 LatexCommand href
4808 name "the bug tracker"
4809 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"
4810
4811 \end_inset
4812
4813 .
4814 \end_layout
4815
4816 \end_inset
4817
4818  Still, the developers have chosen this approach because it has several
4819  potential advantages over the other two.
4820 \end_layout
4821
4822 \begin_layout Standard
4823 These advantages are primarily due to the fact that the XHTML output routines,
4824  since they are part of \SpecialChar LyX
4825 , know everything \SpecialChar LyX
4826  knows about the document being
4827  exported.
4828 \begin_inset Foot
4829 status collapsed
4830
4831 \begin_layout Plain Layout
4832 Another advantage is that, since these routines are internal to \SpecialChar LyX
4833 , they are
4834  immune to changes in \SpecialChar LyX
4835 's file format, or to changes in the semantics of
4836  existing insets.
4837 \end_layout
4838
4839 \end_inset
4840
4841  So they know about the table of contents (as displayed in the outline),
4842  about the counters associated with different paragraph styles, and about
4843  user-defined styles.
4844  The XHTML output routines know what \SpecialChar LyX
4845  knows about internationalization,
4846  too, so they will output 
4847 \begin_inset Quotes eld
4848 \end_inset
4849
4850 Chapter 1
4851 \begin_inset Quotes erd
4852 \end_inset
4853
4854  or 
4855 \begin_inset Quotes eld
4856 \end_inset
4857
4858
4859 \lang ngerman
4860 Kapitel
4861 \lang english
4862  1
4863 \begin_inset Quotes erd
4864 \end_inset
4865
4866 , depending upon the language in effect at the time.
4867  
4868 \end_layout
4869
4870 \begin_layout Standard
4871 Quite generally, the output routines know what \SpecialChar LyX
4872  knows about document layout,
4873  that is, about how the document is to be rendered on screen.
4874  We use this information when we output the document as XHTML.
4875  In particular, \SpecialChar LyX
4876  
4877 \emph on
4878 automatically
4879 \emph default
4880  generates CSS style information corresponding to the layout information
4881  it uses to render the document on screen: if section headings are supposed
4882  to be sans-serif and bold as seen in \SpecialChar LyX
4883 , then (by default) they will be sans-seri
4884 f and bold when viewed in a web browser, too.
4885  And this is true not just for pre-defined styles, like Section, but for
4886  any style, including user-defined styles.
4887  Indeed, the XHTML output routines make no distinction between user-defined
4888  paragraph and character styles and \SpecialChar LyX
4889 's own pre-defined styles: in each case,
4890  everything \SpecialChar LyX
4891  knows about the styles is contained in the layout files.
4892  And much the same is true as regards pre-defined textual insets, such as
4893  footnotes, and various custom insets.
4894  
4895 \end_layout
4896
4897 \begin_layout Standard
4898 The result is that XHTML output can be customized and extended in exactly
4899  the same way \SpecialChar LaTeX
4900  output can be customized and extended: through layout files
4901  and modules.
4902  See chapter five of the 
4903 \emph on
4904 Customization 
4905 \emph default
4906 manual for the details.
4907 \end_layout
4908
4909 \begin_layout Standard
4910 The remainder of this chapter contains more detailed information on XHTML
4911  output, its limitations, and ways to work around those limitations.
4912 \end_layout
4913
4914 \begin_layout Section
4915 Math Output in XHTML
4916 \end_layout
4917
4918 \begin_layout Standard
4919 \SpecialChar LyX
4920  offers four choices for how math is rendered.
4921  These have various advantages and disadvantages:
4922 \end_layout
4923
4924 \begin_layout Itemize
4925 MathML
4926 \begin_inset Newline newline
4927 \end_inset
4928
4929 MathML is a dialect of XML designed specifically for mathematics on the
4930  web, and it typically renders very well in browsers that support it.
4931  The disadvantage is that not all browsers support MathML, and support is
4932  not complete even in the Gecko-based browsers, such as Firefox.
4933 \begin_inset Newline newline
4934 \end_inset
4935
4936 If \SpecialChar LyX
4937  is unable to render a formula as MathML—for example, if the formula
4938  uses the 
4939 \begin_inset Flex Code
4940 status collapsed
4941
4942 \begin_layout Plain Layout
4943 xymatrix
4944 \end_layout
4945
4946 \end_inset
4947
4948  package or ERT—then it will instead output the formula as an image.
4949  
4950 \end_layout
4951
4952 \begin_layout Itemize
4953 HTML
4954 \begin_inset Newline newline
4955 \end_inset
4956
4957 As mentioned above, 
4958 \begin_inset Flex Code
4959 status collapsed
4960
4961 \begin_layout Plain Layout
4962 elyxer
4963 \end_layout
4964
4965 \end_inset
4966
4967  outputs math as HTML, styled by CSS.
4968 \begin_inset Foot
4969 status collapsed
4970
4971 \begin_layout Plain Layout
4972 \SpecialChar LyX
4973  has borrowed some of the CSS for its HTML output from 
4974 \begin_inset Flex Code
4975 status collapsed
4976
4977 \begin_layout Plain Layout
4978 elyxer
4979 \end_layout
4980
4981 \end_inset
4982
4983 .
4984 \end_layout
4985
4986 \end_inset
4987
4988  For simple formulae, this can work quite well, though with more complicated
4989  formulae it tends to break down.
4990  Still, this method has the advantage that it is very widely supported and
4991  so it may be appropriate for documents that contain only a little, fairly
4992  simple math.
4993 \begin_inset Newline newline
4994 \end_inset
4995
4996 If Lyx is unable to render a formula as HTML—for example, if the formula
4997  uses the 
4998 \begin_inset Flex Code
4999 status collapsed
5000
5001 \begin_layout Plain Layout
5002 xymatrix
5003 \end_layout
5004
5005 \end_inset
5006
5007  package or ERT—then it will instead output the formula as an image.
5008  
5009 \end_layout
5010
5011 \begin_layout Itemize
5012 Images
5013 \begin_inset Newline newline
5014 \end_inset
5015
5016 Like 
5017 \begin_inset Flex Code
5018 status collapsed
5019
5020 \begin_layout Plain Layout
5021 htlatex
5022 \end_layout
5023
5024 \end_inset
5025
5026 , \SpecialChar LyX
5027  will output formulae as images, the very same images, in fact, that are
5028  used for instant preview.
5029 \begin_inset Foot
5030 status collapsed
5031
5032 \begin_layout Plain Layout
5033 Instant preview does 
5034 \emph on
5035 not 
5036 \emph default
5037 have to be on for images to be output, however.
5038 \end_layout
5039
5040 \end_inset
5041
5042  The advantage to this method is that the images are simply generated by
5043  \SpecialChar LaTeX
5044 , so they are very accurate.
5045  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5046  so they do not scale terribly well, and one cannot copy them, etc.
5047  (As of this writing, there are also problems about equation numbering.
5048  See 
5049 \begin_inset CommandInset href
5050 LatexCommand href
5051 name "bug 6894"
5052 target "http://www.lyx.org/trac/ticket/6894"
5053
5054 \end_inset
5055
5056 .)
5057 \begin_inset Newline newline
5058 \end_inset
5059
5060 The size of the images can be controlled by setting the 
5061 \begin_inset Quotes eld
5062 \end_inset
5063
5064 Math Images Scaling
5065 \begin_inset Quotes erd
5066 \end_inset
5067
5068  parameter under 
5069 \begin_inset Flex MenuItem
5070 status collapsed
5071
5072 \begin_layout Plain Layout
5073 Document\SpecialChar menuseparator
5074 Settings\SpecialChar menuseparator
5075 Output
5076 \end_layout
5077
5078 \end_inset
5079
5080 .
5081 \begin_inset Foot
5082 status collapsed
5083
5084 \begin_layout Plain Layout
5085 For those who want to know, this controls the resolution of the image in
5086  dots per inch and is based upon a default of 75 dpi.
5087 \end_layout
5088
5089 \end_inset
5090
5091
5092 \begin_inset Newline newline
5093 \end_inset
5094
5095 If \SpecialChar LyX
5096  for some reason fails to create an image for a formula (e.g., if a required
5097  \SpecialChar LaTeX
5098  package is not installed), then it will fall back to outputing the raw
5099  \SpecialChar LaTeX
5100 .
5101 \end_layout
5102
5103 \begin_layout Itemize
5104 \SpecialChar LaTeX
5105
5106 \begin_inset Newline newline
5107 \end_inset
5108
5109 Finally, \SpecialChar LyX
5110  will happily output math as \SpecialChar LaTeX
5111 .
5112  As well as being the output of last resort, this method can be used with
5113  such tools as 
5114 \begin_inset CommandInset href
5115 LatexCommand href
5116 name "jsMath"
5117 target "http://www.math.union.edu/~dpvc/jsMath/"
5118
5119 \end_inset
5120
5121 , which uses JavaScript to render \SpecialChar LaTeX
5122  embedded in HTML documents.
5123  \SpecialChar LyX
5124  wraps the \SpecialChar LaTeX
5125  in either a 
5126 \begin_inset Flex Code
5127 status collapsed
5128
5129 \begin_layout Plain Layout
5130 span
5131 \end_layout
5132
5133 \end_inset
5134
5135  (for inline formulas) or 
5136 \begin_inset Flex Code
5137 status collapsed
5138
5139 \begin_layout Plain Layout
5140 div
5141 \end_layout
5142
5143 \end_inset
5144
5145  (for displayed formulas) with 
5146 \begin_inset Flex Code
5147 status collapsed
5148
5149 \begin_layout Plain Layout
5150 class='math'
5151 \end_layout
5152
5153 \end_inset
5154
5155 , as is required for jsMath.
5156 \end_layout
5157
5158 \begin_layout Standard
5159 One of these output methods must be selected under 
5160 \begin_inset Flex MenuItem
5161 status collapsed
5162
5163 \begin_layout Plain Layout
5164 Document\SpecialChar menuseparator
5165 Settings\SpecialChar menuseparator
5166 Output
5167 \end_layout
5168
5169 \end_inset
5170
5171 .
5172  By default, \SpecialChar LyX
5173  outputs MathML.
5174  This is a document-wide setting, therefore.
5175 \end_layout
5176
5177 \begin_layout Standard
5178 Eventually, \SpecialChar LyX
5179  will offer the user the option to select an alternate output
5180  method for a particular inset, say, one that isn't being rendered very
5181  well by MathML.
5182 \begin_inset Foot
5183 status collapsed
5184
5185 \begin_layout Plain Layout
5186 That said, since \SpecialChar LyX
5187  falls back to images if the inset contains ERT, then one
5188  can force output as an image by putting some harmless ERT into the math,
5189  for example: 
5190 \begin_inset Formula $a=b\relax$
5191 \end_inset
5192
5193 .
5194 \end_layout
5195
5196 \end_inset
5197
5198
5199 \end_layout
5200
5201 \begin_layout Section
5202 Bibliography and Citations
5203 \end_layout
5204
5205 \begin_layout Standard
5206 XHTML output fully supports bibliographies and citations.
5207  
5208 \end_layout
5209
5210 \begin_layout Standard
5211 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5212 's on-screen
5213  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5214 , though
5215  better.
5216  If you are using numerical citations, then \SpecialChar LyX
5217  will output numerical labels,
5218  such as [1] or [17], rather than simply showing the citation key in square
5219  brackets, as it does on-screen.
5220  If you are using author-year citations, then \SpecialChar LyX
5221  will add lowercase letters
5222  to the years, just as Bib\SpecialChar TeX
5223  does, if it finds more than one citation for
5224  a given author-year combination.
5225  The labels will be printed with the bibliography entries.
5226  Note that there is, at present, no way to customize the appearance of the
5227  labels, for example, to choose between square brackets and parentheses.
5228 \end_layout
5229
5230 \begin_layout Standard
5231 Bibliography output is handled by the same machinery that handles the presentati
5232 on of reference information in the citation dialog, so you will see in the
5233  XHTML output pretty much what you would see if you were to look at a given
5234  entry in the citation dialog.
5235  The formatting can be customized in your layout file or, preferably, in
5236  a module.
5237  See the 
5238 \emph on
5239 Customization
5240 \emph default
5241  manual for the details.
5242 \end_layout
5243
5244 \begin_layout Standard
5245 The main defect at present is that cross-referenced information is printed
5246  with every entry with which it is associated.
5247  So you can see things like this:
5248 \end_layout
5249
5250 \begin_layout Quote
5251 Jason Stanley, 
5252 \begin_inset Quotes eld
5253 \end_inset
5254
5255 Context and Logical Form
5256 \begin_inset Quotes erd
5257 \end_inset
5258
5259 , in 
5260 \emph on
5261 Language in Context: Selected Essays
5262 \emph default
5263  (Oxford: Oxford University Press, 2007), pp.
5264  30–68.
5265 \end_layout
5266
5267 \begin_layout Quote
5268 Jason Stanley, 
5269 \begin_inset Quotes eld
5270 \end_inset
5271
5272 Semantics in Context
5273 \begin_inset Quotes erd
5274 \end_inset
5275
5276 , in 
5277 \emph on
5278 Language in Context: Selected Essays
5279 \emph default
5280  (Oxford: Oxford University Press, 2007), pp.
5281  201–30.
5282 \end_layout
5283
5284 \begin_layout Standard
5285 This should be fixed before long.
5286 \end_layout
5287
5288 \begin_layout Standard
5289 There is no support at present for sectioned bibliographies.
5290  If you have multiple bibliographies, then \SpecialChar LyX
5291  will print the same bibliography
5292  over and over.
5293 \end_layout
5294
5295 \begin_layout Section
5296 Indexes
5297 \end_layout
5298
5299 \begin_layout Standard
5300 \SpecialChar LyX
5301  will happily export indexes as XHTML, but with certain limitations at the
5302  moment.
5303 \end_layout
5304
5305 \begin_layout Standard
5306 Index export will be most reliable when you do not attempt to use the fancy
5307  constructs that are described in the section on indexes in the 
5308 \emph on
5309 User's Guide
5310 \emph default
5311 .
5312 \begin_inset Foot
5313 status collapsed
5314
5315 \begin_layout Plain Layout
5316 The main issue here is that \SpecialChar LyX
5317  itself does not really handle these.
5318  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5319 .
5320 \end_layout
5321
5322 \end_inset
5323
5324  We'll describe how they are handled using the subsection headings from
5325  that section.
5326 \end_layout
5327
5328 \begin_layout Itemize
5329 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5330  makes an effort to support these,
5331  but the entries must be separated by 
5332 \begin_inset Quotes eld
5333 \end_inset
5334
5335  ! 
5336 \begin_inset Quotes erd
5337 \end_inset
5338
5339 , that is, there must be spaces around the exclamation point.
5340  This is because it is otherwise too difficult to check for escaped exclamation
5341  points, ones in math, and so forth.
5342 \end_layout
5343
5344 \begin_layout Itemize
5345 Page Ranges: There is no support at all for page ranges, since these make
5346  no sense with XHMTL.
5347  Instead, you will just get two index entries, one at either end.
5348 \end_layout
5349
5350 \begin_layout Itemize
5351 Cross-referencing: There is no support for cross-referencing.
5352  If \SpecialChar LyX
5353  finds an entry containing the 
5354 \begin_inset Quotes eld
5355 \end_inset
5356
5357 |see\SpecialChar ldots
5358
5359 \begin_inset Quotes erd
5360 \end_inset
5361
5362  construct, it is just dropped, and the rest is treated as an ordinary index
5363  entry.
5364 \end_layout
5365
5366 \begin_layout Itemize
5367 Index Entry Order: \SpecialChar LyX
5368  does support attempts to fix the sorting order.
5369  It will take what is before the first `@' it finds and use that for sorting,
5370  taking what follows the first `@' to be the actual entry.
5371  At present, \SpecialChar LyX
5372  does not check for escaped `@', so do not try to index email
5373  addresses.
5374 \end_layout
5375
5376 \begin_layout Itemize
5377 Index Entry Layout: You can format entries by using the text style dialog,
5378  or by using any other method available within \SpecialChar LyX
5379  itself.
5380  There is no support for constructs like: 
5381 \begin_inset Quotes eld
5382 \end_inset
5383
5384 entry|textbf
5385 \begin_inset Quotes erd
5386 \end_inset
5387
5388 .
5389  Indeed, if \SpecialChar LyX
5390  finds a pipe symbol, `|', in an entry, it will delete it and
5391  everything that follows it.
5392 \end_layout
5393
5394 \begin_layout Itemize
5395 Multiple Indexes: There is no support for multiple indexes.
5396  Rather, all index entries will be printed as one large index.
5397  To avoid our printing several versions of the index, we print only the
5398  main index, so make sure you have one.
5399 \end_layout
5400
5401 \begin_layout Section
5402 Nomenclature and Glossary
5403 \end_layout
5404
5405 \begin_layout Standard
5406 There is at present no support for glossaries.
5407  Adding it would be fairly trivial, and welcome.
5408 \end_layout
5409
5410 \begin_layout Chapter
5411 The \SpecialChar LyX
5412  Server
5413 \end_layout
5414
5415 \begin_layout Section
5416 Introduction
5417 \end_layout
5418
5419 \begin_layout Standard
5420 The `\SpecialChar LyX
5421  server' allows other programs to talk to \SpecialChar LyX
5422 , invoke \SpecialChar LyX
5423  commands, and retrieve
5424  information about the \SpecialChar LyX
5425  internal state.
5426  This is only intended for advanced users, but they should find it useful.
5427  It is by writing to the \SpecialChar LyX
5428  server, for example, that bibliography managers,
5429  such as JabRef, are able to 
5430 \begin_inset Quotes eld
5431 \end_inset
5432
5433 push
5434 \begin_inset Quotes erd
5435 \end_inset
5436
5437  citations to \SpecialChar LyX
5438 .
5439 \end_layout
5440
5441 \begin_layout Section
5442 Starting the \SpecialChar LyX
5443  Server
5444 \end_layout
5445
5446 \begin_layout Standard
5447 The \SpecialChar LyX
5448  server works through the use of a pair of named pipes.
5449  These are usually located in 
5450 \begin_inset Flex Code
5451 status collapsed
5452
5453 \begin_layout Plain Layout
5454 UserDir
5455 \end_layout
5456
5457 \end_inset
5458
5459 , (except on Windows, where 
5460 \emph on
5461 local
5462 \emph default
5463  named pipes are special objects located in 
5464 \begin_inset Flex Code
5465 status collapsed
5466
5467 \begin_layout Plain Layout
5468
5469 \backslash
5470
5471 \backslash
5472 .
5473 \backslash
5474 pipe
5475 \end_layout
5476
5477 \end_inset
5478
5479 ) and have the names 
5480 \begin_inset Quotes eld
5481 \end_inset
5482
5483
5484 \begin_inset Flex Code
5485 status collapsed
5486
5487 \begin_layout Plain Layout
5488 lyxpipe.in
5489 \end_layout
5490
5491 \end_inset
5492
5493
5494 \begin_inset Quotes erd
5495 \end_inset
5496
5497  and 
5498 \begin_inset Quotes eld
5499 \end_inset
5500
5501
5502 \begin_inset Flex Code
5503 status collapsed
5504
5505 \begin_layout Plain Layout
5506 lyxpipe.out
5507 \end_layout
5508
5509 \end_inset
5510
5511
5512 \begin_inset Quotes erd
5513 \end_inset
5514
5515 .
5516  External programs write into 
5517 \begin_inset Flex Code
5518 status collapsed
5519
5520 \begin_layout Plain Layout
5521 lyxpipe.in
5522 \end_layout
5523
5524 \end_inset
5525
5526  and read back data from 
5527 \begin_inset Flex Code
5528 status collapsed
5529
5530 \begin_layout Plain Layout
5531 lyxpipe.out
5532 \end_layout
5533
5534 \end_inset
5535
5536 .
5537  The stem of the pipe names can be defined in the 
5538 \begin_inset Flex MenuItem
5539 status collapsed
5540
5541 \begin_layout Plain Layout
5542 Tools\SpecialChar menuseparator
5543 Preferences
5544 \end_layout
5545
5546 \end_inset
5547
5548  dialog, for example 
5549 \begin_inset Flex Code
5550 status collapsed
5551
5552 \begin_layout Plain Layout
5553 "/home/myhome/lyxpipe"
5554 \end_layout
5555
5556 \end_inset
5557
5558 , or 
5559 \begin_inset Flex Code
5560 status collapsed
5561
5562 \begin_layout Plain Layout
5563 "
5564 \backslash
5565
5566 \backslash
5567 .
5568 \backslash
5569 pipe
5570 \backslash
5571 lyxpipe"
5572 \end_layout
5573
5574 \end_inset
5575
5576  on Windows (
5577 \change_deleted 711066561 1405258697
5578 but
5579 \change_inserted 711066561 1405258701
5580 where
5581 \change_unchanged
5582  any working path 
5583 \change_inserted 711066561 1405258613
5584 instead of lyxpipe 
5585 \change_unchanged
5586 can be used
5587 \change_inserted 711066561 1405258962
5588 , for example 
5589 \begin_inset Flex Code
5590 status collapsed
5591
5592 \begin_layout Plain Layout
5593
5594 \change_inserted 711066561 1405258868
5595 "
5596 \backslash
5597
5598 \backslash
5599 .
5600 \backslash
5601 pipe
5602 \backslash
5603 my
5604 \backslash
5605 lyx
5606 \backslash
5607 pipe"
5608 \change_unchanged
5609
5610 \end_layout
5611
5612 \end_inset
5613
5614  would also work
5615 \change_unchanged
5616 ).
5617  You 
5618 \emph on
5619 must
5620 \emph default
5621  configure this manually in order for the server to start.
5622 \end_layout
5623
5624 \begin_layout Standard
5625 \SpecialChar LyX
5626  will add the '
5627 \begin_inset Flex Code
5628 status collapsed
5629
5630 \begin_layout Plain Layout
5631 .in
5632 \end_layout
5633
5634 \end_inset
5635
5636 ' and '
5637 \begin_inset Flex Code
5638 status collapsed
5639
5640 \begin_layout Plain Layout
5641 .out
5642 \end_layout
5643
5644 \end_inset
5645
5646 ' to create the pipes.
5647  If one of the pipes already exists, \SpecialChar LyX
5648  will assume that another \SpecialChar LyX
5649  process
5650  is already running and will not start the server.
5651  On POSIX (Unix like) systems, if for some other reason, an unused 
5652 \begin_inset Quotes eld
5653 \end_inset
5654
5655 stale
5656 \begin_inset Quotes erd
5657 \end_inset
5658
5659  pipe is left in existence when \SpecialChar LyX
5660  closes, then \SpecialChar LyX
5661  will try to delete it.
5662  If this fails for some reason, you will need to delete the pipes manually
5663  and then restart \SpecialChar LyX
5664 .
5665  On Windows, pipes are deleted by the OS on program termination or crash,
5666  so 
5667 \begin_inset Quotes eld
5668 \end_inset
5669
5670 stale
5671 \begin_inset Quotes erd
5672 \end_inset
5673
5674  pipes should not be possible.
5675 \end_layout
5676
5677 \begin_layout Standard
5678 To have several \SpecialChar LyX
5679  processes with servers at the same time, you have to use
5680  different configurations, perhaps by using separate user directories, each
5681  with its own 
5682 \begin_inset Flex Code
5683 status collapsed
5684
5685 \begin_layout Plain Layout
5686 preferences
5687 \end_layout
5688
5689 \end_inset
5690
5691  file, for each process.
5692 \end_layout
5693
5694 \begin_layout Standard
5695 If you are developing a client program, you might find it useful to enable
5696  debugging information from the \SpecialChar LyX
5697  server.
5698  Do this by starting \SpecialChar LyX
5699  as 
5700 \begin_inset Flex Code
5701 status collapsed
5702
5703 \begin_layout Plain Layout
5704 lyx -dbg lyxserver
5705 \end_layout
5706
5707 \end_inset
5708
5709 .
5710 \end_layout
5711
5712 \begin_layout Standard
5713 You can find a complete example client written in C
5714 \change_inserted 711066561 1405258366
5715 ++
5716 \change_unchanged
5717  in the source distribution as 
5718 \begin_inset Flex Code
5719 status collapsed
5720
5721 \begin_layout Plain Layout
5722 development/lyxserver/server_monitor.c
5723 \change_inserted 711066561 1405258386
5724 pp
5725 \change_unchanged
5726
5727 \end_layout
5728
5729 \end_inset
5730
5731 .
5732 \end_layout
5733
5734 \begin_layout Standard
5735 Another useful tool is the command-line based client
5736 \change_inserted 711066561 1405258403
5737  
5738 \change_unchanged
5739 found in 
5740 \begin_inset Flex Code
5741 status collapsed
5742
5743 \begin_layout Plain Layout
5744 src/client/lyxclient
5745 \end_layout
5746
5747 \end_inset
5748
5749 .
5750 \end_layout
5751
5752 \begin_layout Section
5753 Normal communication
5754 \end_layout
5755
5756 \begin_layout Standard
5757 To issue a \SpecialChar LyX
5758  call, the client writes a line of ASCII text into the input
5759  pipe.
5760  This line has the following format:
5761 \end_layout
5762
5763 \begin_layout Quote
5764 LYXCMD:
5765 \emph on
5766 clientname
5767 \emph default
5768 :
5769 \emph on
5770 function
5771 \emph default
5772 :
5773 \emph on
5774 argument
5775 \end_layout
5776
5777 \begin_layout Description
5778 clientname is a name that the client can choose arbitrarily.
5779  Its only use is that \SpecialChar LyX
5780  will echo it if it sends an answer—so a client can
5781  dispatch results from different requesters.
5782 \end_layout
5783
5784 \begin_layout Description
5785 function is the function you want \SpecialChar LyX
5786  to perform.
5787  It is the same as the commands you'd use in the minibuffer.
5788 \end_layout
5789
5790 \begin_layout Description
5791 argument is an optional argument which is meaningful only to some functions
5792  (for instance, the 
5793 \begin_inset Quotes eld
5794 \end_inset
5795
5796 self-insert
5797 \begin_inset Quotes erd
5798 \end_inset
5799
5800  LFUN will insert the argument as text at the cursor position).
5801 \end_layout
5802
5803 \begin_layout Standard
5804 The answer from \SpecialChar LyX
5805  will arrive in the output pipe and be of the form
5806 \end_layout
5807
5808 \begin_layout Quote
5809 INFO:
5810 \emph on
5811 clientname
5812 \emph default
5813 :
5814 \emph on
5815 function
5816 \emph default
5817 :
5818 \emph on
5819 data
5820 \end_layout
5821
5822 \begin_layout Standard
5823 where 
5824 \emph on
5825 clientname
5826 \emph default
5827  and 
5828 \emph on
5829 function
5830 \emph default
5831  are just echoed from the command request, while 
5832 \emph on
5833 data
5834 \emph default
5835  is more or less useful information filled according to how the command
5836  execution worked out.
5837  Some commands, such as 
5838 \begin_inset Quotes eld
5839 \end_inset
5840
5841 font-state
5842 \begin_inset Quotes erd
5843 \end_inset
5844
5845 , will return information about the internal state of \SpecialChar LyX
5846 , while other will
5847  return an empty data-response.
5848  This means that the command execution went fine.
5849 \end_layout
5850
5851 \begin_layout Standard
5852 In case of errors, the response from \SpecialChar LyX
5853  will have this form
5854 \end_layout
5855
5856 \begin_layout Quote
5857 ERROR:
5858 \emph on
5859 clientname
5860 \emph default
5861 :
5862 \emph on
5863 function
5864 \emph default
5865 :
5866 \emph on
5867 error message
5868 \end_layout
5869
5870 \begin_layout Standard
5871 where the 
5872 \emph on
5873 error message
5874 \emph default
5875  should contain an explanation of why the command failed.
5876 \end_layout
5877
5878 \begin_layout Standard
5879 Examples:
5880 \end_layout
5881
5882 \begin_layout LyX-Code
5883 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
5884 \begin_inset Newline newline
5885 \end_inset
5886
5887 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
5888 \begin_inset Newline newline
5889 \end_inset
5890
5891 read a <~/.lyxpipe.out
5892 \begin_inset Newline newline
5893 \end_inset
5894
5895 echo $a
5896 \end_layout
5897
5898 \begin_layout Subsection
5899 AppleScript (Mac OS X)
5900 \end_layout
5901
5902 \begin_layout Standard
5903 Since \SpecialChar LyX
5904  2.1, \SpecialChar LyX
5905  supports basic interactions with AppleScript for normal communicatio
5906 n through the command run.
5907  This command takes a direct argument (the 
5908 \series bold
5909 function
5910 \series default
5911  to perform) and an optional argument.
5912  It either returns the output of the function or triggers an error with
5913  the error message and code.
5914 \end_layout
5915
5916 \begin_layout Standard
5917 Example:
5918 \end_layout
5919
5920 \begin_layout LyX-Code
5921 tell application "\SpecialChar LyX
5922 "
5923 \end_layout
5924
5925 \begin_layout LyX-Code
5926   try
5927 \end_layout
5928
5929 \begin_layout LyX-Code
5930     -- Stores the current file name into f
5931 \end_layout
5932
5933 \begin_layout LyX-Code
5934     set f to (run "server-get-filename" with argument "")
5935 \end_layout
5936
5937 \begin_layout LyX-Code
5938     on error the error_message number the error_number
5939 \end_layout
5940
5941 \begin_layout LyX-Code
5942       display dialog "Error: " & the error_number & ".
5943  " ¬
5944 \end_layout
5945
5946 \begin_layout LyX-Code
5947               & the error_message buttons {"OK"} default button 1
5948 \end_layout
5949
5950 \begin_layout LyX-Code
5951   end try
5952 \end_layout
5953
5954 \begin_layout LyX-Code
5955 end tell
5956 \end_layout
5957
5958 \begin_layout Section
5959 Notification
5960 \end_layout
5961
5962 \begin_layout Standard
5963 \SpecialChar LyX
5964  can notify clients of events going on asynchronously.
5965  Currently it will only do this if the user binds a key sequence with the
5966  function 
5967 \begin_inset Quotes eld
5968 \end_inset
5969
5970 notify
5971 \begin_inset Quotes erd
5972 \end_inset
5973
5974 .
5975  The format of the string \SpecialChar LyX
5976  sends is as follows:
5977 \end_layout
5978
5979 \begin_layout Quote
5980 \begin_inset Flex Code
5981 status collapsed
5982
5983 \begin_layout Plain Layout
5984 NOTIFY:
5985 \end_layout
5986
5987 \end_inset
5988
5989
5990 \emph on
5991 key-sequence
5992 \end_layout
5993
5994 \begin_layout Standard
5995 where 
5996 \emph on
5997 key-sequence
5998 \emph default
5999  is the printed representation of the key sequence that was actually typed
6000  by the user.
6001 \end_layout
6002
6003 \begin_layout Standard
6004 This mechanism can be used to extend \SpecialChar LyX
6005 's command set and implement macros.
6006  Bind some key sequence to 
6007 \begin_inset Quotes eld
6008 \end_inset
6009
6010 notify
6011 \begin_inset Quotes erd
6012 \end_inset
6013
6014 .
6015  Then start a client that listens on the output pipe, dispatches the command
6016  according to the sequence, and starts a function that may use \SpecialChar LyX
6017  calls and
6018  \SpecialChar LyX
6019  requests to issue a command or a series of commands to \SpecialChar LyX
6020 .
6021 \end_layout
6022
6023 \begin_layout Section
6024 The simple \SpecialChar LyX
6025  Server Protocol
6026 \end_layout
6027
6028 \begin_layout Standard
6029 \SpecialChar LyX
6030  implements a simple protocol that can be used for session management.
6031  All messages are of the form
6032 \end_layout
6033
6034 \begin_layout Quote
6035 LYXSRV:
6036 \emph on
6037 clientname
6038 \emph default
6039 :
6040 \emph on
6041 protocol message
6042 \end_layout
6043
6044 \begin_layout Standard
6045 where 
6046 \emph on
6047 protocol message
6048 \emph default
6049  can be 
6050 \begin_inset Quotes eld
6051 \end_inset
6052
6053 hello
6054 \begin_inset Quotes erd
6055 \end_inset
6056
6057  or 
6058 \begin_inset Quotes eld
6059 \end_inset
6060
6061 bye
6062 \begin_inset Quotes erd
6063 \end_inset
6064
6065 .
6066  If 
6067 \begin_inset Quotes eld
6068 \end_inset
6069
6070 hello
6071 \begin_inset Quotes erd
6072 \end_inset
6073
6074  is received from a client, \SpecialChar LyX
6075  will report back to inform the client that
6076  it's listening to it's messages, while 
6077 \begin_inset Quotes eld
6078 \end_inset
6079
6080 bye
6081 \begin_inset Quotes erd
6082 \end_inset
6083
6084  sent from \SpecialChar LyX
6085  will inform clients that \SpecialChar LyX
6086  is closing.
6087 \end_layout
6088
6089 \begin_layout Section
6090 Reverse DVI/PDF search
6091 \end_layout
6092
6093 \begin_layout Standard
6094 Some DVI/PDF viewers
6095 \begin_inset Foot
6096 status collapsed
6097
6098 \begin_layout Plain Layout
6099 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux
6100 \change_inserted 711066561 1405273809
6101 , Qpdfview on Unix
6102 \change_unchanged
6103 , Skim on Mac OSX and SumatraPDF on Windows.
6104 \end_layout
6105
6106 \end_inset
6107
6108  provide 
6109 \emph on
6110 reverse search
6111 \emph default
6112  facility (also called 
6113 \emph on
6114 inverse search
6115 \emph default
6116 ).
6117  This means that you can tell \SpecialChar LyX
6118  to put the cursor to a specific line in the
6119  document by clicking at the respective position in the DVI/PDF output.
6120  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6121 .
6122  This is done via the \SpecialChar LyX
6123  server either by using the named pipe (
6124 \emph on
6125 lyxpipe
6126 \emph default
6127 ), or the UNIX domain socket (
6128 \emph on
6129 lyxsocket
6130 \emph default
6131 ) that \SpecialChar LyX
6132  creates in its temporary directory (this is the way the 
6133 \begin_inset Flex Code
6134 status collapsed
6135
6136 \begin_layout Plain Layout
6137 lyxclient
6138 \end_layout
6139
6140 \end_inset
6141
6142  program communicates with \SpecialChar LyX
6143 ).
6144  In some cases, you need a helper script that mediates between the viewer
6145  and \SpecialChar LyX
6146 , in others, the viewer can communicate with \SpecialChar LyX
6147  directly.
6148  This depends on the selected viewer and on your operating system.
6149  The same applies to the way viewers need to be configured and the way the
6150  reverse search is actually performed.
6151  In what follows, we will thus describe how to setup reverse search for
6152  specific viewers.
6153  Before we turn to this, though, we will explain what needs to be done generally
6154  to enable reverse search in the DVI/PDF output.
6155 \end_layout
6156
6157 \begin_layout Subsection
6158 Automatic setup
6159 \begin_inset CommandInset label
6160 LatexCommand label
6161 name "subsec:rev-search"
6162
6163 \end_inset
6164
6165
6166 \end_layout
6167
6168 \begin_layout Standard
6169 In most cases \SpecialChar LyX
6170  will do the work for you by enabling the option 
6171 \begin_inset Flex MenuItem
6172 status collapsed
6173
6174 \begin_layout Plain Layout
6175 Synchronize with Output
6176 \end_layout
6177
6178 \end_inset
6179
6180  in the menu 
6181 \begin_inset Flex MenuItem
6182 status collapsed
6183
6184 \begin_layout Plain Layout
6185 Document\SpecialChar menuseparator
6186 Settings\SpecialChar menuseparator
6187 Output
6188 \end_layout
6189
6190 \end_inset
6191
6192 .
6193  In such a case \SpecialChar LyX
6194  will automatically insert the necessary Sync\SpecialChar TeX
6195  macro (for
6196  PDF) or load the srcltx package (for DVI) respectively.
6197  This option can be easily reached also on 
6198 \begin_inset Flex Code
6199 status collapsed
6200
6201 \begin_layout Plain Layout
6202 View/Update
6203 \end_layout
6204
6205 \end_inset
6206
6207  Toolbar.
6208 \end_layout
6209
6210 \begin_layout Standard
6211 If you need a different setting, you can select or input a custom macro
6212  from the drop down box just below 
6213 \begin_inset Flex MenuItem
6214 status collapsed
6215
6216 \begin_layout Plain Layout
6217 Document\SpecialChar menuseparator
6218 Settings\SpecialChar menuseparator
6219 Output\SpecialChar menuseparator
6220 Synchronize with Output
6221 \end_layout
6222
6223 \end_inset
6224
6225 .
6226 \end_layout
6227
6228 \begin_layout Standard
6229 Note that the method 
6230 \begin_inset Flex Code
6231 status collapsed
6232
6233 \begin_layout Plain Layout
6234
6235 \backslash
6236 synctex=1
6237 \end_layout
6238
6239 \end_inset
6240
6241  enables gzip compression.
6242  If your viewer does not support it, you should instead use 
6243 \begin_inset Flex Code
6244 status collapsed
6245
6246 \begin_layout Plain Layout
6247
6248 \backslash
6249 synctex=-1
6250 \end_layout
6251
6252 \end_inset
6253
6254 .
6255 \end_layout
6256
6257 \begin_layout Standard
6258 Please a
6259 \change_deleted 711066561 1405259326
6260 ö
6261 \change_inserted 711066561 1405259326
6262 l
6263 \change_unchanged
6264 so note that including the 
6265 \begin_inset Flex Code
6266 status collapsed
6267
6268 \begin_layout Plain Layout
6269 srcltx
6270 \end_layout
6271
6272 \end_inset
6273
6274  package or 
6275 \begin_inset Flex Code
6276 status collapsed
6277
6278 \begin_layout Plain Layout
6279 src-specials
6280 \end_layout
6281
6282 \end_inset
6283
6284  sometimes has an undesired impact on the typesetting.
6285  Thus, you should switch output synchronization off for the final typesetting
6286  if you use the 
6287 \begin_inset Flex Code
6288 status collapsed
6289
6290 \begin_layout Plain Layout
6291 srcltx
6292 \end_layout
6293
6294 \end_inset
6295
6296  package or 
6297 \begin_inset Flex Code
6298 status collapsed
6299
6300 \begin_layout Plain Layout
6301 src-specials
6302 \end_layout
6303
6304 \end_inset
6305
6306 .
6307  
6308 \end_layout
6309
6310 \begin_layout Standard
6311 In case you need some more special settings that are not covered by the
6312  automatic settings, read the next section about how to set up output synchroniz
6313 ation manually.
6314  If the automatic setup suits your needs, you can readily jump to section
6315 \begin_inset space ~
6316 \end_inset
6317
6318
6319 \begin_inset CommandInset ref
6320 LatexCommand ref
6321 reference "subsec:configuring-viewers"
6322
6323 \end_inset
6324
6325 , where the necessary configuration steps in your viewer – needed both with
6326  the automatic and the manual setup – are described.
6327 \end_layout
6328
6329 \begin_layout Subsection
6330 Manual setup
6331 \end_layout
6332
6333 \begin_layout Standard
6334 \SpecialChar LaTeX
6335  provides several different methods for reverse search.
6336  Some are built-in in the 
6337 \begin_inset Flex Code
6338 status collapsed
6339
6340 \begin_layout Plain Layout
6341 latex/pdflatex
6342 \end_layout
6343
6344 \end_inset
6345
6346  program, some are provided by external packages.
6347  Your choice depends on whether your \SpecialChar LaTeX
6348  distribution already provides a given
6349  method (the built-in methods are rather new) and whether your viewer can
6350  cope with it.
6351  The available methods are described in the following.
6352 \end_layout
6353
6354 \begin_layout Subsubsection*
6355 Built-in DVI-search via src-specials (DVI only) 
6356 \end_layout
6357
6358 \begin_layout Standard
6359 This method provides the DVI file with the necessary information for reverse
6360  search.
6361  It is available in \SpecialChar LaTeX
6362  since quite some time (any somewhat recent \SpecialChar LaTeX
6363  distribution
6364  should include it), and it works reliably.
6365  To enable it, change the 
6366 \begin_inset Flex MenuItem
6367 status collapsed
6368
6369 \begin_layout Plain Layout
6370 La
6371 \change_deleted -712698321 1437633234
6372 T
6373 \begin_inset ERT
6374 status collapsed
6375
6376 \begin_layout Plain Layout
6377
6378 {}
6379 \end_layout
6380
6381 \end_inset
6382
6383 eX
6384 \change_inserted -712698321 1437633234
6385
6386 \family sans
6387 TeX
6388 \change_unchanged
6389
6390 \family default
6391  (plain)->DVI
6392 \end_layout
6393
6394 \end_inset
6395
6396  or 
6397 \begin_inset Flex MenuItem
6398 status collapsed
6399
6400 \begin_layout Plain Layout
6401 La
6402 \change_deleted -712698321 1437633251
6403 T
6404 \begin_inset ERT
6405 status collapsed
6406
6407 \begin_layout Plain Layout
6408
6409 {}
6410 \end_layout
6411
6412 \end_inset
6413
6414 eX
6415 \change_inserted -712698321 1437633251
6416
6417 \family sans
6418 TeX
6419 \change_unchanged
6420
6421 \family default
6422  (plain)->DraftDVI
6423 \end_layout
6424
6425 \end_inset
6426
6427  converter in 
6428 \begin_inset Flex MenuItem
6429 status collapsed
6430
6431 \begin_layout Plain Layout
6432 Preferences\SpecialChar menuseparator
6433 File Handling\SpecialChar menuseparator
6434 Converters
6435 \end_layout
6436
6437 \end_inset
6438
6439  to 
6440 \begin_inset Flex Code
6441 status collapsed
6442
6443 \begin_layout Plain Layout
6444 latex -src-specials $$i
6445 \end_layout
6446
6447 \end_inset
6448
6449 .
6450  If this doesn't work, check if your \SpecialChar TeX
6451  engine needs different options (the
6452  syntax might differ in some distributions).
6453 \end_layout
6454
6455 \begin_layout Subsubsection*
6456 External Packages (PDFSync and scrltx) 
6457 \end_layout
6458
6459 \begin_layout Standard
6460 The packages 
6461 \emph on
6462 pdfsync
6463 \emph default
6464  and 
6465 \emph on
6466 scrltx
6467 \emph default
6468  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6469  respectively.
6470  In order to enable it, load the packages in the \SpecialChar LyX
6471  preamble: 
6472 \end_layout
6473
6474 \begin_layout Itemize
6475 \begin_inset Flex Code
6476 status collapsed
6477
6478 \begin_layout Plain Layout
6479
6480 \backslash
6481 usepackage{pdfsync}
6482 \end_layout
6483
6484 \end_inset
6485
6486  for reverse PDF search,
6487 \end_layout
6488
6489 \begin_layout Itemize
6490 \begin_inset Flex Code
6491 status collapsed
6492
6493 \begin_layout Plain Layout
6494
6495 \backslash
6496 usepackage[active]{srcltx}
6497 \end_layout
6498
6499 \end_inset
6500
6501  for reverse DVI search.
6502 \end_layout
6503
6504 \begin_layout Standard
6505 If you want to be able to perform both DVI and PDF reverse searches, you
6506  can also insert in the preamble the following lines
6507 \end_layout
6508
6509 \begin_layout LyX-Code
6510
6511 \backslash
6512 usepackage{ifpdf}
6513 \begin_inset Newline newline
6514 \end_inset
6515
6516
6517 \backslash
6518 ifpdf
6519 \begin_inset Newline newline
6520 \end_inset
6521
6522   
6523 \backslash
6524 usepackage{pdfsync}
6525 \begin_inset Newline newline
6526 \end_inset
6527
6528
6529 \backslash
6530 else
6531 \begin_inset Newline newline
6532 \end_inset
6533
6534   
6535 \backslash
6536 usepackage[active]{srcltx}
6537 \begin_inset Newline newline
6538 \end_inset
6539
6540
6541 \backslash
6542 fi
6543 \end_layout
6544
6545 \begin_layout Standard
6546 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6547  right package will be used.
6548 \end_layout
6549
6550 \begin_layout Standard
6551 Note that PDFSync might affect the output layout of your document.
6552  It is therefore advised to disable PDFsync for final documents.
6553 \end_layout
6554
6555 \begin_layout Subsubsection*
6556 Built-in reverse search via Sync\SpecialChar TeX
6557  (DVI and PDF) 
6558 \end_layout
6559
6560 \begin_layout Standard
6561 Recent versions of 
6562 \begin_inset Flex Code
6563 status collapsed
6564
6565 \begin_layout Plain Layout
6566 (pdf)latex
6567 \end_layout
6568
6569 \end_inset
6570
6571  have built-in support for both PDF and DVI reverse search.
6572  This so-called 
6573 \emph on
6574 Sync\SpecialChar TeX
6575
6576 \emph default
6577  facility is basically the result of the integration of the PDFSync package
6578  to the pdftex program and its merge with the 
6579 \emph on
6580 scr-specials
6581 \emph default
6582  approach.
6583  You need at least \SpecialChar TeX
6584 Live 2008 or a recent Mik\SpecialChar TeX
6585  distribution in order to use
6586  it
6587 \begin_inset Foot
6588 status collapsed
6589
6590 \begin_layout Plain Layout
6591 For some reason, Mik\SpecialChar TeX
6592  does not understand/obey the command \SpecialChar LyX
6593  inserts into
6594  the preamble when you check the "Enable Forward/Reverse Search" button
6595  in the toolbar and does not generate the necessary info.
6596 \end_layout
6597
6598 \begin_layout Plain Layout
6599 The generation of the required info can be forced by changing the converter
6600  "\SpecialChar LaTeX
6601  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
6602  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
6603  the -synctex=1 switch).
6604 \end_layout
6605
6606 \end_inset
6607
6608 .
6609  Also note that only a few PDF viewers (
6610 \change_inserted 711066561 1405273879
6611 Okular and Qpdfview on Unix, 
6612 \change_unchanged
6613 Skim on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
6614  support.
6615 \end_layout
6616
6617 \begin_layout Standard
6618 To enable Sync\SpecialChar TeX
6619  for DVI output, change the 
6620 \begin_inset Flex MenuItem
6621 status collapsed
6622
6623 \begin_layout Plain Layout
6624 La
6625 \change_deleted -712698321 1437633274
6626 T
6627 \begin_inset ERT
6628 status collapsed
6629
6630 \begin_layout Plain Layout
6631
6632 {}
6633 \end_layout
6634
6635 \end_inset
6636
6637 eX
6638 \change_inserted -712698321 1437633274
6639
6640 \family sans
6641 TeX
6642 \change_unchanged
6643
6644 \family default
6645  (plain) -> DVI
6646 \end_layout
6647
6648 \end_inset
6649
6650  or 
6651 \begin_inset Flex MenuItem
6652 status collapsed
6653
6654 \begin_layout Plain Layout
6655 La
6656 \change_deleted -712698321 1437633275
6657 T
6658 \begin_inset ERT
6659 status collapsed
6660
6661 \begin_layout Plain Layout
6662
6663 {}
6664 \end_layout
6665
6666 \end_inset
6667
6668 eX
6669 \change_inserted -712698321 1437633275
6670
6671 \family sans
6672 TeX
6673 \change_unchanged
6674
6675 \family default
6676  (plain) -> DraftDVI
6677 \end_layout
6678
6679 \end_inset
6680
6681  converter in 
6682 \begin_inset Flex MenuItem
6683 status collapsed
6684
6685 \begin_layout Plain Layout
6686 Preferences\SpecialChar menuseparator
6687 File Handling\SpecialChar menuseparator
6688 Converters
6689 \end_layout
6690
6691 \end_inset
6692
6693  to 
6694 \begin_inset Flex Code
6695 status collapsed
6696
6697 \begin_layout Plain Layout
6698 latex -synctex=1 $$i
6699 \end_layout
6700
6701 \end_inset
6702
6703 , and for PDF output, change the 
6704 \begin_inset Flex MenuItem
6705 status collapsed
6706
6707 \begin_layout Plain Layout
6708 La
6709 \change_deleted -712698321 1437633276
6710 T
6711 \begin_inset ERT
6712 status collapsed
6713
6714 \begin_layout Plain Layout
6715
6716 {}
6717 \end_layout
6718
6719 \end_inset
6720
6721 eX
6722 \change_inserted -712698321 1437633276
6723
6724 \family sans
6725 TeX
6726 \change_unchanged
6727
6728 \family default
6729  (pdflatex) -> PDF (pdflatex)
6730 \end_layout
6731
6732 \end_inset
6733
6734  or converter to 
6735 \begin_inset Flex Code
6736 status collapsed
6737
6738 \begin_layout Plain Layout
6739 pdflatex -synctex=1 $$i
6740 \end_layout
6741
6742 \end_inset
6743
6744 .
6745  Check the documentation of your viewer whether the viewer needs to be configure
6746 d for the use with Sync\SpecialChar TeX
6747 .
6748 \begin_inset Foot
6749 status collapsed
6750
6751 \begin_layout Plain Layout
6752 Note that the option 
6753 \begin_inset Flex Code
6754 status collapsed
6755
6756 \begin_layout Plain Layout
6757 -synctex=1
6758 \end_layout
6759
6760 \end_inset
6761
6762  option enables gzip compression.
6763  If your viewer does not support it, you should instead use 
6764 \begin_inset Flex Code
6765 status collapsed
6766
6767 \begin_layout Plain Layout
6768 -synctex=-1
6769 \end_layout
6770
6771 \end_inset
6772
6773 .
6774 \end_layout
6775
6776 \end_inset
6777
6778
6779 \end_layout
6780
6781 \begin_layout Subsection
6782 Configuring and using specific viewers
6783 \begin_inset CommandInset label
6784 LatexCommand label
6785 name "subsec:configuring-viewers"
6786
6787 \end_inset
6788
6789
6790 \end_layout
6791
6792 \begin_layout Subsubsection*
6793 Xdvi (all platforms)
6794 \end_layout
6795
6796 \begin_layout Standard
6797 If you use 
6798 \begin_inset Flex Code
6799 status collapsed
6800
6801 \begin_layout Plain Layout
6802 xdvi
6803 \end_layout
6804
6805 \end_inset
6806
6807 , you don't need to do anything else for performing a reverse DVI search,
6808  as \SpecialChar LyX
6809  already provides the necessary hooks for automatically using the 
6810 \begin_inset Flex Code
6811 status collapsed
6812
6813 \begin_layout Plain Layout
6814 lyxclient
6815 \end_layout
6816
6817 \end_inset
6818
6819  program.
6820  Just setup your document as described above (reverse search is triggered
6821  by Ctrl-click or Alt-click on Mac OSX, respectively).
6822 \end_layout
6823
6824 \begin_layout Standard
6825 However, if for whatever reason you want to use the named pipe instead of
6826  the socket for communicating with \SpecialChar LyX
6827 , simply change the DVI viewer in 
6828 \begin_inset Flex MenuItem
6829 status collapsed
6830
6831 \begin_layout Plain Layout
6832 Preferences\SpecialChar menuseparator
6833 File Handling\SpecialChar menuseparator
6834 File formats
6835 \end_layout
6836
6837 \end_inset
6838
6839  to
6840 \begin_inset Foot
6841 status collapsed
6842
6843 \begin_layout Plain Layout
6844 On Mac OSX you have to use 
6845 \begin_inset Flex Code
6846 status collapsed
6847
6848 \begin_layout Plain Layout
6849 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
6850 \end_layout
6851
6852 \end_inset
6853
6854
6855 \end_layout
6856
6857 \end_inset
6858
6859  
6860 \begin_inset Flex Code
6861 status collapsed
6862
6863 \begin_layout Plain Layout
6864 xdvi -editor "lyxeditor.sh %f %l"
6865 \end_layout
6866
6867 \end_inset
6868
6869 , where 
6870 \begin_inset Flex Code
6871 status collapsed
6872
6873 \begin_layout Plain Layout
6874 lyxeditor.sh
6875 \end_layout
6876
6877 \end_inset
6878
6879  is a suitable script.
6880  For example, a minimal shell script is the following one:
6881 \end_layout
6882
6883 \begin_layout LyX-Code
6884 #!/bin/sh
6885 \begin_inset Newline newline
6886 \end_inset
6887
6888 LYXPIPE="/path/to/lyxpipe"
6889 \begin_inset Newline newline
6890 \end_inset
6891
6892 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6893 \begin_inset Newline newline
6894 \end_inset
6895
6896 echo "$COMMAND" > "${LYXPIPE}".in || exit
6897 \begin_inset Newline newline
6898 \end_inset
6899
6900 read TMP < "${LYXPIPE}".out || exit
6901 \end_layout
6902
6903 \begin_layout Standard
6904 where 
6905 \begin_inset Flex Code
6906 status collapsed
6907
6908 \begin_layout Plain Layout
6909 /path/to/lyxpipe
6910 \end_layout
6911
6912 \end_inset
6913
6914  is the Ly
6915 \begin_inset ERT
6916 status collapsed
6917
6918 \begin_layout Plain Layout
6919
6920 {}
6921 \end_layout
6922
6923 \end_inset
6924
6925 XServer pipe path specified in 
6926 \begin_inset Flex MenuItem
6927 status collapsed
6928
6929 \begin_layout Plain Layout
6930 Preferences\SpecialChar menuseparator
6931 Paths
6932 \end_layout
6933
6934 \end_inset
6935
6936 .
6937 \begin_inset Foot
6938 status collapsed
6939
6940 \begin_layout Plain Layout
6941 In the 
6942 \begin_inset Flex Code
6943 status collapsed
6944
6945 \begin_layout Plain Layout
6946 development/tools
6947 \end_layout
6948
6949 \end_inset
6950
6951  folder of a source distribution you can find a 
6952 \begin_inset Flex Code
6953 status collapsed
6954
6955 \begin_layout Plain Layout
6956 lyxeditor
6957 \end_layout
6958
6959 \end_inset
6960
6961  script which is able to locate the 
6962 \emph on
6963 lyxpipe
6964 \emph default
6965  based on your preferences.
6966 \end_layout
6967
6968 \end_inset
6969
6970
6971 \end_layout
6972
6973 \begin_layout Subsubsection*
6974 MacDviX (Mac OSX)
6975 \end_layout
6976
6977 \begin_layout Standard
6978 At the end of 
6979 \begin_inset Flex Code
6980 status collapsed
6981
6982 \begin_layout Plain Layout
6983 /Applications/MacDviX_Folder/calleditor.script
6984 \end_layout
6985
6986 \end_inset
6987
6988 , add the following lines:
6989 \end_layout
6990
6991 \begin_layout LyX-Code
6992 /Applications/Ly
6993 \begin_inset ERT
6994 status collapsed
6995
6996 \begin_layout Plain Layout
6997
6998 {}
6999 \end_layout
7000
7001 \end_inset
7002
7003 X.app/Contents/MacOS/lyxeditor "$2" $1
7004 \begin_inset Newline newline
7005 \end_inset
7006
7007 exit 1
7008 \end_layout
7009
7010 \begin_layout Standard
7011 Modify the lines accordingly if you install \SpecialChar LyX
7012  somewhere else than in the
7013  Applications folder.
7014 \end_layout
7015
7016 \begin_layout Standard
7017 Reverse search is triggered by Alt-click (OPTION-click).
7018 \end_layout
7019
7020 \begin_layout Subsubsection*
7021 Skim (Mac OSX)
7022 \end_layout
7023
7024 \begin_layout Standard
7025 Enter 
7026 \begin_inset Flex Code
7027 status collapsed
7028
7029 \begin_layout Plain Layout
7030 open -a Skim.app $$i
7031 \end_layout
7032
7033 \end_inset
7034
7035  to the viewer setting in 
7036 \begin_inset Flex MenuItem
7037 status collapsed
7038
7039 \begin_layout Plain Layout
7040 Preferences\SpecialChar menuseparator
7041 File Handling\SpecialChar menuseparator
7042 File formats\SpecialChar menuseparator
7043 PDF (pdflatex)
7044 \end_layout
7045
7046 \end_inset
7047
7048 , and then in 
7049 \begin_inset Flex MenuItem
7050 status collapsed
7051
7052 \begin_layout Plain Layout
7053 Skim\SpecialChar menuseparator
7054 Preferences\SpecialChar menuseparator
7055 Sync
7056 \end_layout
7057
7058 \end_inset
7059
7060  choose 
7061 \begin_inset Flex MenuItem
7062 status collapsed
7063
7064 \begin_layout Plain Layout
7065 custom
7066 \end_layout
7067
7068 \end_inset
7069
7070  preset and enter command 
7071 \begin_inset Flex MenuItem
7072 status collapsed
7073
7074 \begin_layout Plain Layout
7075 /Applications/\SpecialChar LyX
7076 .app/Contents/MacOS/lyxeditor
7077 \end_layout
7078
7079 \end_inset
7080
7081 .
7082 \end_layout
7083
7084 \begin_layout Standard
7085 Reverse search is triggered by COMMAND-SHIFT-click
7086 \end_layout
7087
7088 \begin_layout Subsubsection*
7089 Okular (KDE)
7090 \end_layout
7091
7092 \begin_layout Standard
7093 Go to 
7094 \begin_inset Flex MenuItem
7095 status collapsed
7096
7097 \begin_layout Plain Layout
7098 Settings\SpecialChar menuseparator
7099 Configure Okular\SpecialChar ldots
7100 \SpecialChar menuseparator
7101 Editor
7102 \end_layout
7103
7104 \end_inset
7105
7106 , select 
7107 \begin_inset Quotes eld
7108 \end_inset
7109
7110 Custom Text Editor
7111 \begin_inset Quotes erd
7112 \end_inset
7113
7114  and add the command 
7115 \begin_inset Flex Code
7116 status collapsed
7117
7118 \begin_layout Plain Layout
7119 lyxclient -g %f %l
7120 \end_layout
7121
7122 \end_inset
7123
7124 .
7125 \end_layout
7126
7127 \begin_layout Standard
7128 Reverse search is triggered by SHIFT-click.
7129 \change_inserted 711066561 1405259853
7130
7131 \end_layout
7132
7133 \begin_layout Subsubsection*
7134
7135 \change_inserted 711066561 1405273730
7136 Qpdfview (Unix)
7137 \end_layout
7138
7139 \begin_layout Standard
7140
7141 \change_inserted 711066561 1405263147
7142 Qpdfview supports Sync\SpecialChar TeX
7143  since version 0.3.5.
7144  Go to 
7145 \begin_inset Flex MenuItem
7146 status collapsed
7147
7148 \begin_layout Plain Layout
7149
7150 \change_inserted 711066561 1405260331
7151 Edit\SpecialChar menuseparator
7152 Settings\SpecialChar ldots
7153 \SpecialChar menuseparator
7154 Behavior
7155 \change_unchanged
7156
7157 \end_layout
7158
7159 \end_inset
7160
7161 , click on the input field of the 
7162 \begin_inset Quotes eld
7163 \end_inset
7164
7165 Source editor
7166 \begin_inset Quotes erd
7167 \end_inset
7168
7169  item and add the command 
7170 \begin_inset Flex Code
7171 status collapsed
7172
7173 \begin_layout Plain Layout
7174
7175 \change_inserted 711066561 1405260473
7176 lyxclient -g %1 %2
7177 \change_unchanged
7178
7179 \end_layout
7180
7181 \end_inset
7182
7183 .
7184 \end_layout
7185
7186 \begin_layout Standard
7187
7188 \change_inserted 711066561 1405260506
7189 Reverse search is triggered by double-click.
7190 \change_unchanged
7191
7192 \end_layout
7193
7194 \begin_layout Subsubsection*
7195 YAP (Windows)
7196 \end_layout
7197
7198 \begin_layout Standard
7199 Launch yap, choose its 
7200 \begin_inset Flex MenuItem
7201 status collapsed
7202
7203 \begin_layout Plain Layout
7204 View\SpecialChar menuseparator
7205 Options
7206 \end_layout
7207
7208 \end_inset
7209
7210  menu and select the 
7211 \begin_inset Quotes eld
7212 \end_inset
7213
7214 Inverse DVI Search
7215 \begin_inset Quotes erd
7216 \end_inset
7217
7218  tab.
7219  Click on the 
7220 \begin_inset Quotes eld
7221 \end_inset
7222
7223 New\SpecialChar ldots
7224
7225 \begin_inset Quotes erd
7226 \end_inset
7227
7228  button and, in the window that opens, enter 
7229 \begin_inset Quotes eld
7230 \end_inset
7231
7232 \SpecialChar LyX
7233  Editor
7234 \begin_inset Quotes erd
7235 \end_inset
7236
7237  (or any other name you like) in the 
7238 \begin_inset Quotes eld
7239 \end_inset
7240
7241 Name:
7242 \begin_inset Quotes erd
7243 \end_inset
7244
7245  field.
7246  Now click on the button labeled 
7247 \begin_inset Quotes eld
7248 \end_inset
7249
7250 \SpecialChar ldots
7251
7252 \begin_inset Quotes erd
7253 \end_inset
7254
7255  to open a file dialog and navigate to the directory containing the batch
7256  file 
7257 \begin_inset Flex Code
7258 status collapsed
7259
7260 \begin_layout Plain Layout
7261 lyxeditor.bat
7262 \end_layout
7263
7264 \end_inset
7265
7266  (see below).
7267  Select 
7268 \begin_inset Flex Code
7269 status collapsed
7270
7271 \begin_layout Plain Layout
7272 lyxeditor.bat
7273 \end_layout
7274
7275 \end_inset
7276
7277  and then specify the program arguments as 
7278 \begin_inset Flex Code
7279 status collapsed
7280
7281 \begin_layout Plain Layout
7282 %f %l
7283 \end_layout
7284
7285 \end_inset
7286
7287 .
7288  The 
7289 \begin_inset Flex Code
7290 status collapsed
7291
7292 \begin_layout Plain Layout
7293 lyxeditor.bat
7294 \end_layout
7295
7296 \end_inset
7297
7298  wrapper is used for communicating with \SpecialChar LyX
7299  through the 
7300 \emph on
7301 lyxpipe
7302 \emph default
7303  and is as follows:
7304 \end_layout
7305
7306 \begin_layout LyX-Code
7307 @echo off
7308 \begin_inset Newline newline
7309 \end_inset
7310
7311 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7312 \backslash
7313
7314 \backslash
7315 .
7316 \backslash
7317 pipe
7318 \backslash
7319 lyxpipe.in
7320 \begin_inset Newline newline
7321 \end_inset
7322
7323 type 
7324 \backslash
7325
7326 \backslash
7327 .
7328 \backslash
7329 pipe
7330 \backslash
7331 lyxpipe.out
7332 \end_layout
7333
7334 \begin_layout Standard
7335 Make sure that the \SpecialChar LyX
7336 Server pipe path you specified in \SpecialChar LyX
7337  is 
7338 \begin_inset Flex Code
7339 status collapsed
7340
7341 \begin_layout Plain Layout
7342
7343 \backslash
7344
7345 \backslash
7346 .
7347 \backslash
7348 pipe
7349 \backslash
7350 lyxpipe
7351 \end_layout
7352
7353 \end_inset
7354
7355 , otherwise change the 
7356 \begin_inset Flex Code
7357 status collapsed
7358
7359 \begin_layout Plain Layout
7360 lyxeditor.bat
7361 \end_layout
7362
7363 \end_inset
7364
7365  wrapper accordingly.
7366 \end_layout
7367
7368 \begin_layout Standard
7369 In yap, reverse search is triggered by double-click.
7370 \end_layout
7371
7372 \begin_layout Subsubsection*
7373 SumatraPDF (Windows)
7374 \end_layout
7375
7376 \begin_layout Standard
7377 In order to use SumatraPDF for inverse search, enter 
7378 \begin_inset Flex Code
7379 status collapsed
7380
7381 \begin_layout Plain Layout
7382 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
7383 \end_layout
7384
7385 \end_inset
7386
7387  in the viewer setting in 
7388 \begin_inset Flex MenuItem
7389 status collapsed
7390
7391 \begin_layout Plain Layout
7392 Preferences\SpecialChar menuseparator
7393 File Handling\SpecialChar menuseparator
7394 File formats\SpecialChar menuseparator
7395 PDF (pdflatex)
7396 \end_layout
7397
7398 \end_inset
7399
7400 , where 
7401 \begin_inset Flex Code
7402 status collapsed
7403
7404 \begin_layout Plain Layout
7405 lyxeditor.bat
7406 \end_layout
7407
7408 \end_inset
7409
7410  is the previous wrapper.
7411  If SumatraPDF.exe is not in your command PATH, use its full file name.
7412 \end_layout
7413
7414 \begin_layout Standard
7415 Reverse search is triggered by double-click.
7416 \end_layout
7417
7418 \begin_layout Subsubsection*
7419 YAP (Cygwin)
7420 \end_layout
7421
7422 \begin_layout Standard
7423 First of all, make sure that yap is your default DVI viewer in the Windows
7424  environment, then launch it, choose its 
7425 \begin_inset Flex MenuItem
7426 status collapsed
7427
7428 \begin_layout Plain Layout
7429 View\SpecialChar menuseparator
7430 Options
7431 \end_layout
7432
7433 \end_inset
7434
7435  menu and select the 
7436 \begin_inset Quotes eld
7437 \end_inset
7438
7439 Inverse DVI Search
7440 \begin_inset Quotes erd
7441 \end_inset
7442
7443  tab.
7444  Click on the 
7445 \begin_inset Quotes eld
7446 \end_inset
7447
7448 New\SpecialChar ldots
7449
7450 \begin_inset Quotes erd
7451 \end_inset
7452
7453  button and, in the window that opens, enter 
7454 \begin_inset Quotes eld
7455 \end_inset
7456
7457 \SpecialChar LyX
7458  Editor
7459 \begin_inset Quotes erd
7460 \end_inset
7461
7462  (or any other name you like) in the 
7463 \begin_inset Quotes eld
7464 \end_inset
7465
7466 Name:
7467 \begin_inset Quotes erd
7468 \end_inset
7469
7470  field.
7471  Now click on the button labeled 
7472 \begin_inset Quotes eld
7473 \end_inset
7474
7475 \SpecialChar ldots
7476
7477 \begin_inset Quotes erd
7478 \end_inset
7479
7480  to open a file dialog and navigate to the directory containing the 
7481 \begin_inset Flex Code
7482 status collapsed
7483
7484 \begin_layout Plain Layout
7485 lyxeditor.exe
7486 \end_layout
7487
7488 \end_inset
7489
7490  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7491  executable).
7492  Select 
7493 \begin_inset Flex Code
7494 status collapsed
7495
7496 \begin_layout Plain Layout
7497 lyxeditor.exe
7498 \end_layout
7499
7500 \end_inset
7501
7502  and then specify the program arguments as 
7503 \begin_inset Flex Code
7504 status collapsed
7505
7506 \begin_layout Plain Layout
7507 -g %f %l
7508 \end_layout
7509
7510 \end_inset
7511
7512 .
7513  In this way, you will be using the 
7514 \emph on
7515 lyxsocket
7516 \emph default
7517  for communicating with \SpecialChar LyX
7518 .
7519  If, for whatever reason, you want to use the 
7520 \emph on
7521 lyxpipe
7522 \emph default
7523 , omit the 
7524 \begin_inset Flex Code
7525 status collapsed
7526
7527 \begin_layout Plain Layout
7528 -g
7529 \end_layout
7530
7531 \end_inset
7532
7533  option and be sure to specify the \SpecialChar LyX
7534 Server pipe path in the \SpecialChar LyX
7535  preferences.
7536 \end_layout
7537
7538 \begin_layout Standard
7539 In yap, reverse search is triggered by double-click.
7540 \end_layout
7541
7542 \begin_layout Subsubsection*
7543 SumatraPDF (Cygwin)
7544 \end_layout
7545
7546 \begin_layout Standard
7547 In order to use SumatraPDF for inverse search, enter 
7548 \begin_inset Flex Code
7549 status collapsed
7550
7551 \begin_layout Plain Layout
7552 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7553 \end_layout
7554
7555 \end_inset
7556
7557  in the viewer setting in 
7558 \begin_inset Flex MenuItem
7559 status collapsed
7560
7561 \begin_layout Plain Layout
7562 Preferences\SpecialChar menuseparator
7563 File Handling\SpecialChar menuseparator
7564 File formats\SpecialChar menuseparator
7565 PDF (pdflatex)
7566 \end_layout
7567
7568 \end_inset
7569
7570 .
7571  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7572  The 
7573 \begin_inset Flex Code
7574 status collapsed
7575
7576 \begin_layout Plain Layout
7577 -g
7578 \end_layout
7579
7580 \end_inset
7581
7582  enables communication via the 
7583 \emph on
7584 lyxsocket
7585 \emph default
7586 .
7587  Again, omit the 
7588 \begin_inset Flex Code
7589 status collapsed
7590
7591 \begin_layout Plain Layout
7592 -g
7593 \end_layout
7594
7595 \end_inset
7596
7597  option if you want to use the 
7598 \emph on
7599 lyxpipe
7600 \emph default
7601 , and be sure to specify the \SpecialChar LyX
7602 Server pipe path in the \SpecialChar LyX
7603  preferences.
7604 \end_layout
7605
7606 \begin_layout Standard
7607 Reverse search is triggered by double-click.
7608 \end_layout
7609
7610 \begin_layout Section
7611 Forward search
7612 \end_layout
7613
7614 \begin_layout Standard
7615 Forward search is, as the name implies, in a sense the 
7616 \begin_inset Quotes eld
7617 \end_inset
7618
7619 opposite
7620 \begin_inset Quotes erd
7621 \end_inset
7622
7623  of reverse search.
7624  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7625 .
7626  If forward search is set up (as described in what follows), you can put
7627  the cursor anywhere in your \SpecialChar LyX
7628  document, and hit 
7629 \begin_inset Flex MenuItem
7630 status collapsed
7631
7632 \begin_layout Plain Layout
7633 Navigate\SpecialChar menuseparator
7634 Forward search
7635 \end_layout
7636
7637 \end_inset
7638
7639  (or select 
7640 \begin_inset Flex MenuItem
7641 status collapsed
7642
7643 \begin_layout Plain Layout
7644 Forward search
7645 \end_layout
7646
7647 \end_inset
7648
7649  in the context menu via right mouse click), and then the viewer will jump
7650  to that position as well.
7651  This implies, of course, that your viewer supports this function.
7652 \end_layout
7653
7654 \begin_layout Standard
7655 To make forward search possible, you first need to provide the generated
7656  output PDF/DVI file with additional information about the \SpecialChar TeX
7657  sources.
7658  This can be done via the methods described in the section 
7659 \begin_inset CommandInset ref
7660 LatexCommand ref
7661 reference "subsec:rev-search"
7662
7663 \end_inset
7664
7665 .
7666 \end_layout
7667
7668 \begin_layout Standard
7669 Additionally, you need to configure \SpecialChar LyX
7670  for using your viewers in 
7671 \begin_inset Flex MenuItem
7672 status collapsed
7673
7674 \begin_layout Plain Layout
7675 Tools\SpecialChar menuseparator
7676 Preferences\SpecialChar menuseparator
7677 Output\SpecialChar menuseparator
7678 General
7679 \end_layout
7680
7681 \end_inset
7682
7683 .
7684  We provide a range of tested configurations for some viewers, which you
7685  can select from the drop down list.
7686  If none of these configurations suits you, you have to find out and enter
7687  a suitable configuration yourself.
7688  The definition syntax uses the following placeholders:
7689 \end_layout
7690
7691 \begin_layout Itemize
7692 \noindent
7693 \begin_inset Flex Code
7694 status collapsed
7695
7696 \begin_layout Plain Layout
7697 $$n
7698 \end_layout
7699
7700 \end_inset
7701
7702 : row number
7703 \end_layout
7704
7705 \begin_layout Itemize
7706 \noindent
7707 \begin_inset Flex Code
7708 status collapsed
7709
7710 \begin_layout Plain Layout
7711 $$t
7712 \end_layout
7713
7714 \end_inset
7715
7716 : name of the (temporary) exported .tex file (without path)
7717 \end_layout
7718
7719 \begin_layout Itemize
7720 \noindent
7721 \begin_inset Flex Code
7722 status collapsed
7723
7724 \begin_layout Plain Layout
7725 $$f
7726 \end_layout
7727
7728 \end_inset
7729
7730 : name of the (temporary) exported .tex file (including path)
7731 \end_layout
7732
7733 \begin_layout Itemize
7734 \noindent
7735 \begin_inset Flex Code
7736 status collapsed
7737
7738 \begin_layout Plain Layout
7739 $$o
7740 \end_layout
7741
7742 \end_inset
7743
7744 : name of the exported output file (either dvi or pdf, depending on which
7745  one exists in the temporary directory)
7746 \end_layout
7747
7748 \begin_layout Standard
7749 Note that only some of the viewers provide full forward search functionality,
7750  among them yap, xdvi, okular
7751 \begin_inset Foot
7752 status collapsed
7753
7754 \begin_layout Plain Layout
7755 You might want to set 
7756 \begin_inset Flex Code
7757 status collapsed
7758
7759 \begin_layout Plain Layout
7760 okular –unique
7761 \end_layout
7762
7763 \end_inset
7764
7765  in 
7766 \begin_inset Flex MenuItem
7767 status collapsed
7768
7769 \begin_layout Plain Layout
7770 Tools\SpecialChar menuseparator
7771 Preferences\SpecialChar menuseparator
7772 File Handling\SpecialChar menuseparator
7773 File
7774 \begin_inset space ~
7775 \end_inset
7776
7777 Formats
7778 \end_layout
7779
7780 \end_inset
7781
7782
7783 \end_layout
7784
7785 \end_inset
7786
7787
7788 \change_inserted 711066561 1405264317
7789 , qpdfview
7790 \change_unchanged
7791  and Sumatra
7792 \change_deleted 711066561 1405264282
7793  
7794 \change_unchanged
7795 PDF
7796 \begin_inset Foot
7797 status collapsed
7798
7799 \begin_layout Plain Layout
7800
7801 \change_deleted 711066561 1405264216
7802 For 
7803 \change_unchanged
7804 Sumatra
7805 \change_inserted 711066561 1405264265
7806 PDF can also use DDE commands through the external program
7807 \change_unchanged
7808  CMCDDE
7809 \change_deleted 711066561 1405264271
7810  is needed
7811 \change_unchanged
7812  — downloadable from 
7813 \begin_inset CommandInset href
7814 LatexCommand href
7815 target "ftp://ftp2.commence.com/pub/freebies/"
7816
7817 \end_inset
7818
7819
7820 \end_layout
7821
7822 \end_inset
7823
7824 .
7825  While many of the widespread PDF viewers (most notably Adobe Reader) do
7826  not support forward search at all, some other viewers – e.
7827 \begin_inset space \thinspace{}
7828 \end_inset
7829
7830 g.
7831  evince and xpdf – allow at least to reload the document and jump to a specific
7832  page of the file, so you can at least navigate 
7833 \begin_inset Quotes eld
7834 \end_inset
7835
7836 near
7837 \begin_inset Quotes erd
7838 \end_inset
7839
7840 .
7841  This latter functionality is provided by an external call of synctex (see
7842  the predefined example configurations).
7843  
7844 \end_layout
7845
7846 \begin_layout Standard
7847 Forward search works both with DVI and PDF output.
7848  \SpecialChar LyX
7849  simply checks which preview format you have used before (i.
7850 \begin_inset space \thinspace{}
7851 \end_inset
7852
7853 e., which format is already there in the temporary directory) and chooses
7854  the appropriate configuration for the respective format.
7855 \end_layout
7856
7857 \begin_layout Chapter
7858 Special Document Classes
7859 \end_layout
7860
7861 \begin_layout Section
7862 A&A Paper
7863 \end_layout
7864
7865 \begin_layout Standard
7866 by 
7867 \noun on
7868 Peter Sütterlin
7869 \end_layout
7870
7871 \begin_layout Subsection
7872 Introduction
7873 \end_layout
7874
7875 \begin_layout Standard
7876 This section describes how \SpecialChar LyX
7877  can be used to write articles for submission
7878  to the scientific journal 
7879 \emph on
7880 Astronomy and Astrophysics
7881 \emph default
7882  (www.edpsciences.fr/aa/ 
7883 \begin_inset Flex URL
7884 status collapsed
7885
7886 \begin_layout Plain Layout
7887
7888 http://www.edpsciences.fr/aa/
7889 \end_layout
7890
7891 \end_inset
7892
7893 ) using Version 5.01 of the document class 
7894 \family typewriter
7895 aa.cls
7896 \family default
7897 .
7898  This package can be downloaded from the ftp site
7899 \end_layout
7900
7901 \begin_layout Standard
7902 \begin_inset VSpace medskip
7903 \end_inset
7904
7905
7906 \end_layout
7907
7908 \begin_layout Standard
7909 \align center
7910 \begin_inset Flex URL
7911 status collapsed
7912
7913 \begin_layout Plain Layout
7914
7915 ftp://ftp.edpsciences.org/pub/aa/readme.html
7916 \end_layout
7917
7918 \end_inset
7919
7920
7921 \end_layout
7922
7923 \begin_layout Standard
7924 \begin_inset VSpace medskip
7925 \end_inset
7926
7927
7928 \end_layout
7929
7930 \begin_layout Standard
7931 A manual comes together with that package, and this text is not meant to
7932  replace the original manual but is merely a short guide in how to realize
7933  the correct form of your paper.
7934  
7935 \end_layout
7936
7937 \begin_layout Standard
7938 Please note that the publisher of the journal was changed from Springer
7939  to EDP Sciences starting January 1, 2001.
7940  That change involved also some slight changes to the style files, namely
7941  the removal of the thesaurus command.
7942  The \SpecialChar LyX
7943  class aa supports the newest version of these style files, V 5.01.
7944  If you have an older version installed, please upgrade.
7945  For compatibility, the old (version 4) layout has been kept as 
7946 \family sans
7947 article (A&A V4)
7948 \family default
7949 .
7950  Please refer to the comments in 
7951 \family typewriter
7952 \SpecialChar LyX
7953 Dir/layouts/aapaper.layout
7954 \family default
7955 .
7956 \end_layout
7957
7958 \begin_layout Subsection
7959 Getting started
7960 \end_layout
7961
7962 \begin_layout Standard
7963 It is recommended you start from the example template distributed with \SpecialChar LyX
7964 .
7965  If you are not using a template, note the following settings:
7966 \end_layout
7967
7968 \begin_layout Itemize
7969 Select 
7970 \family sans
7971 article (A&A)
7972 \family default
7973  in the 
7974 \family sans
7975 Document\SpecialChar menuseparator
7976 Settings
7977 \family default
7978  dialog (OK, that one was obvious).
7979 \end_layout
7980
7981 \begin_layout Itemize
7982 Don't change the option 
7983 \family sans
7984 Page
7985 \begin_inset space ~
7986 \end_inset
7987
7988 style
7989 \family default
7990 : Leave it set to 
7991 \family sans
7992 default
7993 \family default
7994 .
7995  The whole layout is done by the macros, you shouldn't change anything.
7996 \end_layout
7997
7998 \begin_layout Subsection
7999 The header block
8000 \end_layout
8001
8002 \begin_layout Standard
8003 First thing to enter is the header information.
8004  It consists of seven entries, of which some are optional.
8005  They are
8006 \end_layout
8007
8008 \begin_layout Itemize
8009
8010 \family sans
8011 Title
8012 \family default
8013 : [required] 
8014 \end_layout
8015
8016 \begin_layout Itemize
8017
8018 \family sans
8019 Subtitle
8020 \family default
8021 : [optional] 
8022 \end_layout
8023
8024 \begin_layout Itemize
8025
8026 \family sans
8027 Author
8028 \family default
8029 : [required]
8030 \end_layout
8031
8032 \begin_layout Itemize
8033
8034 \family sans
8035 Address
8036 \family default
8037 : [required]
8038 \end_layout
8039
8040 \begin_layout Itemize
8041
8042 \family sans
8043 Offprints
8044 \family default
8045 : [optional] if more than one author: whom to contact for offprint requests.
8046 \end_layout
8047
8048 \begin_layout Itemize
8049
8050 \family sans
8051 Mail
8052 \family default
8053 : [optional] mail address for contacts.
8054 \end_layout
8055
8056 \begin_layout Itemize
8057
8058 \family sans
8059 Date
8060 \family default
8061 : [required].
8062  Suggested format is 
8063 \family typewriter
8064 Received: <date>; Accepted <date> 
8065 \end_layout
8066
8067 \begin_layout Standard
8068 There is no need to issue the 
8069 \family typewriter
8070
8071 \backslash
8072 maketitle
8073 \family default
8074  command, this is done automatically by \SpecialChar LyX
8075  when the header is finished.
8076  Although the order of the single header entries doesn't matter it is advised
8077  to keep the above sequence, just to get the best optics and meets the layout
8078  of the real document.
8079 \end_layout
8080
8081 \begin_layout Standard
8082 If you want to place footnotes in the header block, e.
8083 \begin_inset space \thinspace{}
8084 \end_inset
8085
8086 g.
8087 \begin_inset space \space{}
8088 \end_inset
8089
8090 to state your present address, just use the standard footnote via the menu
8091  
8092 \family sans
8093 Insert\SpecialChar menuseparator
8094 Footnote.
8095
8096 \family default
8097  \SpecialChar LyX
8098  will automagically use the term 
8099 \family typewriter
8100
8101 \backslash
8102 thanks{}
8103 \family default
8104  in that case.
8105 \end_layout
8106
8107 \begin_layout Standard
8108 In addition to these topics, the macros use three additional \SpecialChar LaTeX
8109  commands that
8110  have no counterpart in \SpecialChar LyX
8111 :
8112 \end_layout
8113
8114 \begin_layout Itemize
8115
8116 \family typewriter
8117
8118 \backslash
8119 and
8120 \family default
8121  to separate different names for more than one author and institute, respectivel
8122 y.
8123 \end_layout
8124
8125 \begin_layout Itemize
8126
8127 \family typewriter
8128
8129 \backslash
8130 inst{<nr>}
8131 \family default
8132 to mark corresponding author/institute pairs.
8133  The institutes are numbered sequentially as they appear in the 
8134 \family sans
8135 Address
8136 \family default
8137  field, so you have to put a marker to each author.
8138 \end_layout
8139
8140 \begin_layout Itemize
8141
8142 \family typewriter
8143
8144 \backslash
8145 email{address}
8146 \family default
8147  to supply an email address for fast contact.
8148 \end_layout
8149
8150 \begin_layout Standard
8151 In all cases, the appropriate command has to be entered in \SpecialChar LyX
8152  and marked as
8153  \SpecialChar LaTeX
8154  code.
8155  See the examples.
8156  
8157 \end_layout
8158
8159 \begin_layout Subsection
8160 The abstract
8161 \end_layout
8162
8163 \begin_layout Standard
8164 The abstract should immediately follow the header block.
8165  With version 5 the abstract environment was changed to a command, and there
8166  is now a resctriction to only one paragraph.
8167  In addition, it should contain an entry with the keywords.
8168  This is not yet implemented for \SpecialChar LyX
8169 , therefore you have to enter the \SpecialChar LaTeX
8170  command
8171  
8172 \family typewriter
8173
8174 \backslash
8175 keywords{}
8176 \family default
8177  by hand and mark it as \SpecialChar LaTeX
8178  code.
8179  Refer to the example paper.
8180 \end_layout
8181
8182 \begin_layout Subsection
8183 Supported environments
8184 \end_layout
8185
8186 \begin_layout Standard
8187 The A&A paper layout supports the following environments for structuring
8188  your text:
8189 \end_layout
8190
8191 \begin_layout Itemize
8192
8193 \family sans
8194 Standard
8195 \end_layout
8196
8197 \begin_layout Itemize
8198
8199 \family sans
8200 Section
8201 \end_layout
8202
8203 \begin_layout Itemize
8204
8205 \family sans
8206 Subsection
8207 \end_layout
8208
8209 \begin_layout Itemize
8210
8211 \family sans
8212 Subsubsection
8213 \end_layout
8214
8215 \begin_layout Itemize
8216
8217 \family sans
8218 Itemize
8219 \end_layout
8220
8221 \begin_layout Itemize
8222
8223 \family sans
8224 Enumerate
8225 \end_layout
8226
8227 \begin_layout Itemize
8228
8229 \family sans
8230 Description
8231 \end_layout
8232
8233 \begin_layout Itemize
8234
8235 \family sans
8236 Caption
8237 \end_layout
8238
8239 \begin_layout Itemize
8240
8241 \family sans
8242 Abstract
8243 \end_layout
8244
8245 \begin_layout Itemize
8246
8247 \family sans
8248 Acknowledgment
8249 \end_layout
8250
8251 \begin_layout Itemize
8252
8253 \family sans
8254 Bibliography
8255 \end_layout
8256
8257 \begin_layout Itemize
8258
8259 \family sans
8260 \SpecialChar LaTeX
8261
8262 \end_layout
8263
8264 \begin_layout Subsection
8265 Commands not supported by \SpecialChar LyX
8266
8267 \end_layout
8268
8269 \begin_layout Standard
8270 Some commands are not yet supported by the 
8271 \family sans
8272 paper (A&A)
8273 \family default
8274  layout for \SpecialChar LyX
8275 .
8276  Some have already been mentioned.
8277  For the sake of completeness, they are listed all together here:
8278 \end_layout
8279
8280 \begin_layout Itemize
8281
8282 \family typewriter
8283
8284 \backslash
8285 and
8286 \end_layout
8287
8288 \begin_layout Itemize
8289
8290 \family typewriter
8291
8292 \backslash
8293 email
8294 \end_layout
8295
8296 \begin_layout Itemize
8297
8298 \family typewriter
8299
8300 \backslash
8301 appendix
8302 \end_layout
8303
8304 \begin_layout Itemize
8305
8306 \family typewriter
8307
8308 \backslash
8309 authorrunning
8310 \end_layout
8311
8312 \begin_layout Itemize
8313
8314 \family typewriter
8315
8316 \backslash
8317 inst{}
8318 \end_layout
8319
8320 \begin_layout Itemize
8321
8322 \family typewriter
8323
8324 \backslash
8325 keywords{}
8326 \end_layout
8327
8328 \begin_layout Itemize
8329
8330 \family typewriter
8331
8332 \backslash
8333 object{}
8334 \end_layout
8335
8336 \begin_layout Itemize
8337
8338 \family typewriter
8339
8340 \backslash
8341 titlerunning{}
8342 \end_layout
8343
8344 \begin_layout Standard
8345 If you want to use any of these commands, you have to enter them yourself.
8346  
8347 \series bold
8348 Do not forget to mark them as \SpecialChar LaTeX
8349  code!
8350 \end_layout
8351
8352 \begin_layout Subsection
8353 Figure and Table Floats
8354 \end_layout
8355
8356 \begin_layout Standard
8357 \SpecialChar LyX
8358  provides support for the necessary float environments 
8359 \family sans
8360 figure, figure*, table
8361 \family default
8362  and 
8363 \family sans
8364 table*
8365 \family default
8366 , therefore we won't tell much about it here.
8367  Refer to the 
8368 \emph on
8369 User's
8370 \begin_inset space ~
8371 \end_inset
8372
8373 Guide
8374 \emph default
8375 .
8376  Just remember that tables should be left-aligned.
8377  For that, select the table and change the alignment in 
8378 \family sans
8379 Edit\SpecialChar menuseparator
8380 Paragraph
8381 \begin_inset space ~
8382 \end_inset
8383
8384 Settings.
8385 \end_layout
8386
8387 \begin_layout Standard
8388 There is only one special thing: the figures with caption besides the figure.
8389  To create such a figure, you have to do the following:
8390 \end_layout
8391
8392 \begin_layout Enumerate
8393 Create a wide figure float: 
8394 \family sans
8395 Insert\SpecialChar menuseparator
8396 Float\SpecialChar menuseparator
8397 Figure
8398 \family default
8399 , then right click in the figure and select 
8400 \family sans
8401 \bar under
8402 S
8403 \bar default
8404 pan
8405 \begin_inset space ~
8406 \end_inset
8407
8408 columns
8409 \family default
8410 .
8411 \end_layout
8412
8413 \begin_layout Enumerate
8414 Enter your caption text.
8415 \end_layout
8416
8417 \begin_layout Enumerate
8418 Press 
8419 \family sans
8420 Return
8421 \family default
8422  to move the cursor above the caption.
8423 \end_layout
8424
8425 \begin_layout Enumerate
8426 Insert your figure
8427 \end_layout
8428
8429 \begin_layout Enumerate
8430 Position the cursor behind the figure and insert a horizontal fill: 
8431 \family sans
8432 Insert\SpecialChar menuseparator
8433 Special
8434 \begin_inset space ~
8435 \end_inset
8436
8437 Character\SpecialChar menuseparator
8438 Horizontal
8439 \begin_inset space ~
8440 \end_inset
8441
8442 Fill
8443 \family default
8444 .
8445 \end_layout
8446
8447 \begin_layout Enumerate
8448 Switch to \SpecialChar LaTeX
8449  mode: 
8450 \family sans
8451 M-c
8452 \begin_inset space ~
8453 \end_inset
8454
8455 t
8456 \family default
8457 .
8458 \end_layout
8459
8460 \begin_layout Enumerate
8461 Enter 
8462 \family typewriter
8463
8464 \backslash
8465 parbox[b]{55mm}{
8466 \family default
8467 .
8468  
8469 \series bold
8470 Do not close the brace!
8471 \end_layout
8472
8473 \begin_layout Enumerate
8474 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8475  mode and insert
8476  the closing brace: 
8477 \family sans
8478 M-c
8479 \begin_inset space ~
8480 \end_inset
8481
8482 t
8483 \family default
8484  
8485 \family typewriter
8486 }
8487 \family default
8488 .
8489 \end_layout
8490
8491 \begin_layout Standard
8492 Also, refer to the figures in the example paper.
8493 \end_layout
8494
8495 \begin_layout Subsection
8496 Referee layout
8497 \end_layout
8498
8499 \begin_layout Standard
8500 For submission, the paper has to be formated in a special double-spacing
8501  layout.
8502  For this purpose, you have to give the option 
8503 \family typewriter
8504 referee
8505 \family default
8506  to the documentclass.
8507  This must be done using the extra class options field in the 
8508 \family sans
8509 Document\SpecialChar menuseparator
8510 Settings
8511 \family default
8512  dialog.
8513  Just enter the string 
8514 \family typewriter
8515 referee
8516 \family default
8517  there.
8518 \end_layout
8519
8520 \begin_layout Subsection
8521 The example paper
8522 \end_layout
8523
8524 \begin_layout Standard
8525 The 
8526 \family sans
8527 Examples
8528 \family default
8529  directory contains an example paper written with \SpecialChar LyX
8530 .
8531  It is the example paper from the original macro package, translated to
8532  \SpecialChar LyX
8533 .
8534  Use it for inspiration, and compare the original \SpecialChar LaTeX
8535  code with \SpecialChar LyX
8536  way of writing.
8537 \end_layout
8538
8539 \begin_layout Section
8540 AAS\SpecialChar TeX
8541
8542 \end_layout
8543
8544 \begin_layout Standard
8545 by 
8546 \noun on
8547 Mike Ressler
8548 \end_layout
8549
8550 \begin_layout Subsection
8551 Introduction
8552 \end_layout
8553
8554 \begin_layout Standard
8555 AAS\SpecialChar TeX
8556  is a set of macros produced by the American Astronomical Society to
8557  facilitate electronic manuscript submission to the three journals they
8558  publish: the Astrophysical Journal (including the Letters and Supplement),
8559  the Astronomical Journal, and the Publications of the Astronomical Society
8560  of the Pacific.
8561  \SpecialChar LyX
8562  has proven to be an excellent tool for generating these documents, especially
8563  given its equation, citation, and figure handling capabilities.
8564  \SpecialChar LyX
8565  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8566  is the version described here, or higher.
8567  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8568 2.09 and are fundamentally
8569  incompatible with \SpecialChar LyX
8570 .
8571  The AAS\SpecialChar TeX
8572  package may be downloaded from the AAS\SpecialChar TeX
8573  Web site
8574 \end_layout
8575
8576 \begin_layout Standard
8577 \begin_inset VSpace medskip
8578 \end_inset
8579
8580
8581 \end_layout
8582
8583 \begin_layout Standard
8584 \align center
8585 \begin_inset Flex URL
8586 status collapsed
8587
8588 \begin_layout Plain Layout
8589
8590 http://www.journals.uchicago.edu/AAS/AASTeX
8591 \end_layout
8592
8593 \end_inset
8594
8595
8596 \end_layout
8597
8598 \begin_layout Standard
8599 \begin_inset VSpace medskip
8600 \end_inset
8601
8602
8603 \end_layout
8604
8605 \begin_layout Standard
8606 A complete user guide is contained in that package and you should familiarize
8607  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8608 .
8609  \SpecialChar LyX
8610  will not reduce the need to figure out all the AAS\SpecialChar TeX
8611  commands, it will only
8612  reduce the drudgery of typing everything in.
8613  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8614  document conforms
8615  completely to the requirements of the journal to which you are submitting
8616  your paper.
8617 \end_layout
8618
8619 \begin_layout Subsection
8620 Starting a New Paper
8621 \end_layout
8622
8623 \begin_layout Standard
8624 I strongly suggest that you start with the AAS\SpecialChar TeX
8625  template file.
8626  Click on 
8627 \family sans
8628 File\SpecialChar menuseparator
8629 New from
8630 \family default
8631  
8632 \family sans
8633 Template
8634 \family default
8635 , enter the new file name, then choose the 
8636 \family typewriter
8637 aastex.lyx
8638 \family default
8639  template.
8640  This will show the most common fields found in a manuscript.
8641  Simply overwrite the existing text (including the brackets, 
8642 \family typewriter
8643 <>
8644 \family default
8645 ) with the correct information.
8646  Many of the AAS\SpecialChar TeX
8647  commands and environments can be implemented directly in
8648  \SpecialChar LyX
8649 , but some cannot: most noticeably 
8650 \family typewriter
8651
8652 \backslash
8653 altaffilmark
8654 \family default
8655  and 
8656 \family typewriter
8657
8658 \backslash
8659 altaffiltext
8660 \family default
8661 , which should stick out like a sore thumb if you actually just opened the
8662  template file.
8663  For commands such as these, the \SpecialChar LaTeX
8664  code must be entered directly and marked
8665  as such.
8666  Such commands are referred to as \SpecialChar TeX
8667  code, or Evil Red Text.
8668  I tried to minimize the amount of \SpecialChar TeX
8669  code needed in an AAS\SpecialChar TeX
8670  document, but
8671  there is still a bit more required than any of us would like.
8672 \end_layout
8673
8674 \begin_layout Subsection
8675 Finishing Your Paper
8676 \end_layout
8677
8678 \begin_layout Standard
8679 When the paper is finished to your satisfaction and previews/prints correctly,
8680  there are a few 
8681 \begin_inset Quotes eld
8682 \end_inset
8683
8684 postprocessing
8685 \begin_inset Quotes erd
8686 \end_inset
8687
8688  actions which need to be done before you submit it to the journals.
8689  
8690 \end_layout
8691
8692 \begin_layout Enumerate
8693 Export your paper as a \SpecialChar LaTeX
8694  file (
8695 \family sans
8696 File\SpecialChar menuseparator
8697 Export\SpecialChar menuseparator
8698 \SpecialChar LaTeX
8699
8700 \family default
8701 ).
8702  
8703 \end_layout
8704
8705 \begin_layout Enumerate
8706 Edit the resulting 
8707 \family typewriter
8708 .tex
8709 \family default
8710  file with your favorite text editor
8711 \begin_inset Separator parbreak
8712 \end_inset
8713
8714
8715 \end_layout
8716
8717 \begin_deeper
8718 \begin_layout Enumerate
8719 remove the comment lines before the 
8720 \family typewriter
8721
8722 \backslash
8723 documentclass
8724 \family default
8725  command
8726 \end_layout
8727
8728 \begin_layout Enumerate
8729 remove the 
8730 \family typewriter
8731
8732 \backslash
8733 usepackage...{fontenc}
8734 \family default
8735  line if it appears (usually just after 
8736 \family typewriter
8737
8738 \backslash
8739 documentclass
8740 \family default
8741 }; also remove the 
8742 \family typewriter
8743
8744 \backslash
8745 secnumdepth
8746 \family default
8747  line if it appears.
8748 \end_layout
8749
8750 \begin_layout Enumerate
8751 remove everything between (and including) the 
8752 \family typewriter
8753
8754 \backslash
8755 makeatletter
8756 \family default
8757  and 
8758 \family typewriter
8759
8760 \backslash
8761 makeatother
8762 \family default
8763  commands, except for any commands you specifically put into the \SpecialChar LaTeX
8764  preamble
8765  (which should appear immediately after the 
8766 \begin_inset Quotes eld
8767 \end_inset
8768
8769 User specified \SpecialChar LaTeX
8770  commands
8771 \begin_inset Quotes erd
8772 \end_inset
8773
8774  comment in the 
8775 \family typewriter
8776 .tex
8777 \family default
8778  file).
8779 \end_layout
8780
8781 \end_deeper
8782 \begin_layout Enumerate
8783 Run the resulting file through \SpecialChar LaTeX
8784  to make sure it still processes correctly.
8785 \end_layout
8786
8787 \begin_layout Enumerate
8788 Reread the journal requirements to make sure your filenames and formats
8789  are correct.
8790 \end_layout
8791
8792 \begin_layout Enumerate
8793 Submit it.
8794 \end_layout
8795
8796 \begin_layout Subsection
8797 Comments On Specific Commands
8798 \end_layout
8799
8800 \begin_layout Standard
8801 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
8802  commands: the
8803  AAS\SpecialChar TeX
8804  User Guide (
8805 \family typewriter
8806 aasguide.tex
8807 \family default
8808 ) gives a good description of each.
8809  Thus it's probably easiest for me to go down the list as found in the guide
8810  and offer comments where necessary.
8811  So let's begin \SpecialChar ldots
8812
8813 \end_layout
8814
8815 \begin_layout Subsubsection
8816 Things that work as expected
8817 \end_layout
8818
8819 \begin_layout Standard
8820 Because they work as you might expect, I simply list them and the section
8821  they are found in: 
8822 \family typewriter
8823
8824 \backslash
8825 documentclass
8826 \family default
8827  (2.1.1), 
8828 \family typewriter
8829
8830 \backslash
8831 begin{document}
8832 \family default
8833  (2.2), 
8834 \family typewriter
8835
8836 \backslash
8837 title
8838 \family default
8839  (2.3), 
8840 \family typewriter
8841
8842 \backslash
8843 author
8844 \family default
8845  (2.3), 
8846 \family typewriter
8847
8848 \backslash
8849 affil
8850 \family default
8851  (2.3), 
8852 \family typewriter
8853
8854 \backslash
8855 abstract
8856 \family default
8857  (2.4), 
8858 \family typewriter
8859
8860 \backslash
8861 keywords
8862 \family default
8863  (2.5), 
8864 \family typewriter
8865
8866 \backslash
8867 section
8868 \family default
8869  (2.7), 
8870 \family typewriter
8871
8872 \backslash
8873 subsection
8874 \family default
8875  (2.7), 
8876 \family typewriter
8877
8878 \backslash
8879 subsubsection
8880 \family default
8881  (2.7), 
8882 \family typewriter
8883
8884 \backslash
8885 paragraph
8886 \family default
8887  (2.7), 
8888 \family typewriter
8889
8890 \backslash
8891 facility
8892 \family default
8893  (2.10), 
8894 \family typewriter
8895
8896 \backslash
8897 begin{displaymath}
8898 \family default
8899  (2.12), 
8900 \family typewriter
8901
8902 \backslash
8903 begin{equation}
8904 \family default
8905  (2.12), 
8906 \family typewriter
8907
8908 \backslash
8909 begin{eqnarray}
8910 \family default
8911  (2.12), 
8912 \family typewriter
8913
8914 \backslash
8915 begin{mathletters}
8916 \family default
8917  (2.12), 
8918 \family typewriter
8919
8920 \backslash
8921 begin{thebibliography}
8922 \family default
8923  (2.13.1), 
8924 \family typewriter
8925
8926 \backslash
8927 bibitem
8928 \family default
8929  (2.13.2), all the cite commands and their variations (2.13.2), the generic
8930  graphicx figure commands (2.14.1), 
8931 \family typewriter
8932
8933 \backslash
8934 begin{table}
8935 \family default
8936  (2.15.4), 
8937 \family typewriter
8938
8939 \backslash
8940 begin{tabular}
8941 \family default
8942  (2.15.4), 
8943 \family typewriter
8944
8945 \backslash
8946 caption
8947 \family default
8948  (2.15.4), 
8949 \family typewriter
8950
8951 \backslash
8952 label
8953 \family default
8954  (2.15.4, amongst other places), 
8955 \family typewriter
8956
8957 \backslash
8958 tablerefs
8959 \family default
8960  (2.15.5), 
8961 \family typewriter
8962
8963 \backslash
8964 tablecomments
8965 \family default
8966  (2.15.5), 
8967 \family typewriter
8968
8969 \backslash
8970 url
8971 \family default
8972  (2.17.4), 
8973 \family typewriter
8974
8975 \backslash
8976 end{document}
8977 \family default
8978  (2.18).
8979 \end_layout
8980
8981 \begin_layout Standard
8982 The following style options also work correctly: 
8983 \family typewriter
8984 longabstract
8985 \family default
8986  (2.4), 
8987 \family typewriter
8988 preprint
8989 \family default
8990  (3.2.1), 
8991 \family typewriter
8992 preprint2
8993 \family default
8994  (3.2.2), 
8995 \family typewriter
8996 eqsecnum
8997 \family default
8998  (3.3), 
8999 \family typewriter
9000 flushrt
9001 \family default
9002  (3.4).
9003  Simply put them in the 
9004 \family sans
9005 Options
9006 \family default
9007  box in 
9008 \family sans
9009 Layout\SpecialChar menuseparator
9010 Document
9011 \family default
9012 .
9013 \end_layout
9014
9015 \begin_layout Subsubsection
9016 Things that work, but require more comment
9017 \end_layout
9018
9019 \begin_layout Standard
9020 The following items work, but require a little more discussion:
9021 \end_layout
9022
9023 \begin_layout Itemize
9024 These items are reserved for use by the journal editors, but you can put
9025  them into the \SpecialChar LaTeX
9026  preamble if you feel compelled to do so: 
9027 \family typewriter
9028
9029 \backslash
9030 received
9031 \family default
9032
9033 \family typewriter
9034
9035 \backslash
9036 revised
9037 \family default
9038
9039 \family typewriter
9040
9041 \backslash
9042 accepted
9043 \family default
9044
9045 \family typewriter
9046
9047 \backslash
9048 ccc
9049 \family default
9050
9051 \family typewriter
9052
9053 \backslash
9054 cpright
9055 \family default
9056  (all from 2.1.3)
9057 \end_layout
9058
9059 \begin_layout Itemize
9060 These items may be placed in the \SpecialChar LaTeX
9061  preamble, and are included as blanks in
9062  the template file: 
9063 \family typewriter
9064
9065 \backslash
9066 slugcomment
9067 \family default
9068  (2.1.4), 
9069 \family typewriter
9070
9071 \backslash
9072 shorttitle
9073 \family default
9074  (2.1.5), 
9075 \family typewriter
9076
9077 \backslash
9078 shortauthors
9079 \family default
9080  (2.1.5)
9081 \end_layout
9082
9083 \begin_layout Itemize
9084
9085 \family typewriter
9086
9087 \backslash
9088 email
9089 \family default
9090  (2.3) – can only be used 
9091 \begin_inset Quotes eld
9092 \end_inset
9093
9094 standalone
9095 \begin_inset Quotes erd
9096 \end_inset
9097
9098 , not in the middle of a paragraph.
9099  Use \SpecialChar TeX
9100  code if you need to embed it.
9101 \end_layout
9102
9103 \begin_layout Itemize
9104
9105 \family typewriter
9106
9107 \backslash
9108 and
9109 \family default
9110  (2.3) – will have extra {} after it.
9111  This should not cause an error.
9112 \end_layout
9113
9114 \begin_layout Itemize
9115
9116 \family typewriter
9117
9118 \backslash
9119 notetoeditor
9120 \family default
9121  (2.6) – can only be used 
9122 \begin_inset Quotes eld
9123 \end_inset
9124
9125 standalone
9126 \begin_inset Quotes erd
9127 \end_inset
9128
9129 , not in the middle of a paragraph.
9130  Use \SpecialChar TeX
9131  code if you need to embed it.
9132 \end_layout
9133
9134 \begin_layout Itemize
9135
9136 \family typewriter
9137
9138 \backslash
9139 placetable
9140 \family default
9141  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9142  hand
9143 \end_layout
9144
9145 \begin_layout Itemize
9146
9147 \family typewriter
9148
9149 \backslash
9150 placefigure
9151 \family default
9152  (2.8) – same as for 
9153 \family typewriter
9154
9155 \backslash
9156 placetable
9157 \end_layout
9158
9159 \begin_layout Itemize
9160
9161 \family typewriter
9162
9163 \backslash
9164 acknowledgements
9165 \family default
9166  (2.9) – will have extra {} after it.
9167  This should not cause an error.
9168 \end_layout
9169
9170 \begin_layout Itemize
9171
9172 \family typewriter
9173
9174 \backslash
9175 appendix
9176 \family default
9177  (2.11) – will have extra {} after it.
9178  This should not cause an error.
9179 \end_layout
9180
9181 \begin_layout Itemize
9182
9183 \family typewriter
9184
9185 \backslash
9186 figcaption
9187 \family default
9188  (2.14.2) – you can insert an optional filename argument by placing the cursor
9189  at the beginning of the text and selecting 
9190 \family sans
9191 Insert\SpecialChar menuseparator
9192 Short Title
9193 \family default
9194 .
9195  
9196 \begin_inset Quotes eld
9197 \end_inset
9198
9199 Short Title
9200 \begin_inset Quotes erd
9201 \end_inset
9202
9203  inserts an optional argument of the type needed by 
9204 \family typewriter
9205
9206 \backslash
9207 figcaption
9208 \family default
9209 .
9210  Hopefully it will be renamed someday.
9211 \end_layout
9212
9213 \begin_layout Itemize
9214
9215 \family typewriter
9216
9217 \backslash
9218 objectname
9219 \family default
9220  (2.17.1) – same as 
9221 \family typewriter
9222
9223 \backslash
9224 figcaption
9225 \family default
9226  for the catalog ID optional parameter
9227 \end_layout
9228
9229 \begin_layout Itemize
9230
9231 \family typewriter
9232
9233 \backslash
9234 dataset
9235 \family default
9236  (2.17.1) – same as 
9237 \family typewriter
9238
9239 \backslash
9240 figcaption
9241 \family default
9242  for the catalog ID optional parameter
9243 \end_layout
9244
9245 \begin_layout Subsubsection
9246 Things not implemented, use \SpecialChar TeX
9247  code
9248 \end_layout
9249
9250 \begin_layout Standard
9251
9252 \family typewriter
9253
9254 \backslash
9255 altaffilmark
9256 \family default
9257  (2.3), 
9258 \family typewriter
9259
9260 \backslash
9261 altaffiltext
9262 \family default
9263  (2.3), 
9264 \family typewriter
9265
9266 \backslash
9267 eqnum
9268 \family default
9269  (2.12), 
9270 \family typewriter
9271
9272 \backslash
9273 setcounter{equation}
9274 \family default
9275  (2.12), Journal name abbreviations (2.13.4), 
9276 \family typewriter
9277
9278 \backslash
9279 figurenum
9280 \family default
9281  (2.14.1), 
9282 \family typewriter
9283
9284 \backslash
9285 epsscale
9286 \family default
9287  (2.14.1), 
9288 \family typewriter
9289
9290 \backslash
9291 plotone
9292 \family default
9293  (2.14.1), 
9294 \family typewriter
9295
9296 \backslash
9297 plottwo
9298 \family default
9299  (2.14.1), 
9300 \family typewriter
9301
9302 \backslash
9303 tablenum
9304 \family default
9305  (2.15.4), 
9306 \family typewriter
9307
9308 \backslash
9309 tableline
9310 \family default
9311  (2.15.4, insert it as the first element in the lefthand cell after where
9312  you want it.
9313  Don't use any of \SpecialChar LyX
9314 's rules in the table), 
9315 \family typewriter
9316
9317 \backslash
9318 tablenotemark
9319 \family default
9320  (2.15.5), 
9321 \family typewriter
9322
9323 \backslash
9324 tablenotetext
9325 \family default
9326  (2.15.5), much of Misc (2.17, except 
9327 \family typewriter
9328
9329 \backslash
9330 objectname
9331 \family default
9332
9333 \family typewriter
9334
9335 \backslash
9336 dataset
9337 \family default
9338
9339 \family typewriter
9340
9341 \backslash
9342 url
9343 \family default
9344 , and 
9345 \family typewriter
9346
9347 \backslash
9348 email
9349 \family default
9350 ; see above), 
9351 \family typewriter
9352
9353 \backslash
9354 singlespace
9355 \family default
9356  (3.1), 
9357 \family typewriter
9358
9359 \backslash
9360 doublespace
9361 \family default
9362  (3.1), 
9363 \family typewriter
9364
9365 \backslash
9366 onecolumn
9367 \family default
9368  (3.2), 
9369 \family typewriter
9370
9371 \backslash
9372 twocolumn
9373 \family default
9374  (3.2)
9375 \end_layout
9376
9377 \begin_layout Subsubsection
9378 Things that cannot be implemented
9379 \end_layout
9380
9381 \begin_layout Standard
9382 \SpecialChar ldots
9383  at least in any meaningful sort of way, so I suggest ignoring them.
9384  They are the references environment (2.13.3), and the deluxetable environment
9385  (2.15).
9386  If you really, really need to use deluxetable, I suggest editing it in
9387  a separate file with a text editor, then using 
9388 \family sans
9389 Insert\SpecialChar menuseparator
9390 Child
9391 \begin_inset space ~
9392 \end_inset
9393
9394 Document
9395 \family default
9396  to include it in your \SpecialChar LyX
9397  document.
9398  See the 
9399 \family typewriter
9400 aas_sample.lyx
9401 \family default
9402  file to see an example of this.
9403 \end_layout
9404
9405 \begin_layout Subsection
9406 FAQs, Tips, Tricks, and Other Ruminations
9407 \end_layout
9408
9409 \begin_layout Subsubsection
9410 Getting \SpecialChar LyX
9411  and AAS\SpecialChar TeX
9412  to cooperate
9413 \end_layout
9414
9415 \begin_layout Standard
9416 It can be a bit tricky to get \SpecialChar LyX
9417  to recognize a new layout and document class.
9418  When all else fails, do this:
9419 \end_layout
9420
9421 \begin_layout Enumerate
9422 Make certain that \SpecialChar LaTeX
9423  can find AAS\SpecialChar TeX
9424 .
9425  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9426  distribution into a
9427  directory completely unrelated to \SpecialChar LaTeX
9428  or AAS\SpecialChar TeX
9429  and run \SpecialChar LaTeX
9430  on 
9431 \family typewriter
9432 sample.tex
9433 \family default
9434 .
9435 \end_layout
9436
9437 \begin_layout Enumerate
9438 Make certain that 
9439 \family typewriter
9440 aastex.layout
9441 \family default
9442  appears in \SpecialChar LyX
9443 's 
9444 \family typewriter
9445 layouts
9446 \family default
9447  folder
9448 \end_layout
9449
9450 \begin_layout Enumerate
9451 Rerun 
9452 \family sans
9453 Tools\SpecialChar menuseparator
9454 Reconfigure
9455 \family default
9456  in \SpecialChar LyX
9457 , then restart \SpecialChar LyX
9458 .
9459 \end_layout
9460
9461 \begin_layout Enumerate
9462 Open a regular new file, not from a template.
9463  Does AAS\SpecialChar TeX
9464  appear in the class list in 
9465 \family sans
9466 Document\SpecialChar menuseparator
9467 Settings
9468 \family default
9469 ?
9470 \end_layout
9471
9472 \begin_layout Standard
9473 If you get a warning from an existing AAS\SpecialChar TeX
9474  document about not being able
9475  to find the AAS\SpecialChar TeX
9476  layout or a message about 
9477 \begin_inset Quotes eld
9478 \end_inset
9479
9480 You should not mix title layouts with normal ones
9481 \begin_inset Quotes erd
9482 \end_inset
9483
9484 , things haven't been installed correctly.
9485 \end_layout
9486
9487 \begin_layout Subsubsection
9488 \SpecialChar LaTeX
9489  error processing a table 
9490 \end_layout
9491
9492 \begin_layout Standard
9493 \SpecialChar LyX
9494 , by default, attempts to center the table caption/title.
9495  This seems to produce a bad interaction in AAS\SpecialChar TeX
9496  so you should click somewhere
9497  in the caption/title, then select 
9498 \family sans
9499 Edit\SpecialChar menuseparator
9500 Paragraph
9501 \begin_inset space ~
9502 \end_inset
9503
9504 Settings
9505 \family default
9506 , then set the 
9507 \family sans
9508 Alignment
9509 \family default
9510  to 
9511 \family sans
9512 Block
9513 \family default
9514 .
9515  This took care of it for me.
9516 \end_layout
9517
9518 \begin_layout Subsubsection
9519 References
9520 \end_layout
9521
9522 \begin_layout Standard
9523 A couple of things: 1) I have noticed some funny spacing in the reference
9524  entries in the text.
9525  When you enter the bibliography item data, make sure their is 
9526 \emph on
9527 no
9528 \emph default
9529  space between the last author and the parenthesis setting off the year;
9530  
9531 \emph on
9532 e.
9533 \begin_inset space \thinspace{}
9534 \end_inset
9535
9536 g.
9537 \begin_inset space \space{}
9538 \end_inset
9539
9540
9541 \emph default
9542 type 
9543 \family typewriter
9544 Ressler(1992)
9545 \family default
9546 , not 
9547 \family typewriter
9548 Ressler (1992)
9549 \family default
9550 .
9551  2) Entering the references at all is not obvious.
9552  The easiest thing is to start typing your first reference at the end of
9553  the document, then mark it as type 
9554 \family sans
9555 References
9556 \family default
9557 .
9558  That will put a small gray box in front of what you just typed.
9559  Click on the box to fill in the rest of the information.
9560  For new references, go to the end of an existing reference and press return.
9561  That will create a new line with its own box, etc.
9562 \end_layout
9563
9564 \begin_layout Subsubsection
9565 Including EPS files
9566 \end_layout
9567
9568 \begin_layout Standard
9569 Even though AAS\SpecialChar TeX
9570  provides its own figure commands (
9571 \family typewriter
9572
9573 \backslash
9574 plotone
9575 \family default
9576 , for example), I much prefer \SpecialChar LaTeX
9577 's standard figure commands (with the default
9578  graphicx).
9579  You can insert the 
9580 \family typewriter
9581
9582 \backslash
9583 plotone
9584 \family default
9585 , etc.
9586 \begin_inset space ~
9587 \end_inset
9588
9589 commands as \SpecialChar TeX
9590  code into a Figure Float box if you desire, but I never have
9591  much luck getting the layout right.
9592  With the standard graphics, \SpecialChar LyX
9593  will insert a 
9594 \family typewriter
9595
9596 \backslash
9597 usepackage{graphicx}
9598 \family default
9599  command into the \SpecialChar LaTeX
9600  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9601  way,
9602  interspersing the figures in the text.
9603  I believe ApJ accepts figures exactly this way now; AJ might still use
9604  the 
9605 \begin_inset Quotes eld
9606 \end_inset
9607
9608 stack everything at the end
9609 \begin_inset Quotes erd
9610 \end_inset
9611
9612  technique.
9613 \end_layout
9614
9615 \begin_layout Subsubsection
9616 Things I could have done, but didn't
9617 \end_layout
9618
9619 \begin_layout Standard
9620 There are a few 
9621 \begin_inset Quotes eld
9622 \end_inset
9623
9624 pretty
9625 \begin_inset Quotes erd
9626 \end_inset
9627
9628  things I could have implemented, but chose not to.
9629  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9630  window,
9631  even though it is double-spaced in the paper manuscript.
9632  Also, I chose not to make separate layouts for the preprint and preprint2
9633  styles.
9634  Since I assume you will spend most of your time in the plain manuscript
9635  mode anyway, I decided not to chew up more disk space with this.
9636  
9637 \end_layout
9638
9639 \begin_layout Subsection
9640 Final Caveat
9641 \end_layout
9642
9643 \begin_layout Standard
9644 Your mileage may vary.
9645  I've now had papers published by both ApJ and AJ that have had 98% of the
9646  effort done in \SpecialChar LyX
9647 ; the last 2% was the \SpecialChar LaTeX
9648  post-processing and a few cleanups.
9649  I have had no trouble with the submission process, and I'm sure the journals
9650  were never aware that there might be a difference.
9651  So, go forth and publish!
9652 \end_layout
9653
9654 \begin_layout Section
9655 AMS \SpecialChar LaTeX
9656
9657 \end_layout
9658
9659 \begin_layout Standard
9660 by 
9661 \noun on
9662 David Johnson
9663 \noun default
9664 ; updated by 
9665 \noun on
9666 Richard Heck
9667 \end_layout
9668
9669 \begin_layout Standard
9670 \begin_inset VSpace bigskip
9671 \end_inset
9672
9673
9674 \end_layout
9675
9676 \begin_layout Standard
9677 \noindent
9678 The AMS \SpecialChar LaTeX
9679  layouts are set up to conform to suggested styles for mathematical
9680  papers to be submitted to American Mathematical Society publications.
9681  The layouts are not tailored to a specific journal, but easily can be.
9682  You should refer to the AMS documentation for specific instructions for
9683  each journal (usually it will entail only changing a single line in the
9684  \SpecialChar TeX
9685  output).
9686  That documentation is available on the Web at 
9687 \begin_inset Flex URL
9688 status open
9689
9690 \begin_layout Plain Layout
9691
9692 http://www.ams.org
9693 \end_layout
9694
9695 \end_inset
9696
9697  or by ftp at 
9698 \begin_inset Flex URL
9699 status open
9700
9701 \begin_layout Plain Layout
9702
9703 ftp://ftp.ams.org/pub/tex/amslatex/
9704 \end_layout
9705
9706 \end_inset
9707
9708 .
9709  These layouts are appropriate, and useful, for any mathematical writing.
9710  
9711 \end_layout
9712
9713 \begin_layout Standard
9714 There are two basic AMS \SpecialChar LaTeX
9715  layouts: 
9716 \end_layout
9717
9718 \begin_layout Itemize
9719 amsart: The standard AMS article format.
9720 \end_layout
9721
9722 \begin_layout Itemize
9723 amsbook: the standard AMS book (really, monograph) format.
9724  
9725 \end_layout
9726
9727 \begin_layout Standard
9728 The layouts themselves contain only the minimum necessary to use the AMS
9729  classes.
9730  They do not, in particular, contain any of the `theorem' environments used
9731  for setting theorems, lemmas, and the like.
9732  These are contained, instead, in the 
9733 \begin_inset Flex Code
9734 status collapsed
9735
9736 \begin_layout Plain Layout
9737 Theorems (AMS)
9738 \end_layout
9739
9740 \end_inset
9741
9742  module, which is loaded by default when you select one of the AMS classes.
9743  (It can also be used with other classes and can be removed, if you would
9744  rather use something else.) Less commonly used environments are in the 
9745 \begin_inset Flex Code
9746 status collapsed
9747
9748 \begin_layout Plain Layout
9749 Theorems (AMS-Extended)
9750 \end_layout
9751
9752 \end_inset
9753
9754  module, which must be loaded manually.
9755 \end_layout
9756
9757 \begin_layout Standard
9758 By default, theorems and the like are numbered consecutively throughout
9759  the document, but this may be modified by loading the module 
9760 \begin_inset Flex Code
9761 status collapsed
9762
9763 \begin_layout Plain Layout
9764 Theorems (Order by Section)
9765 \end_layout
9766
9767 \end_inset
9768
9769  or, if you are using 
9770 \begin_inset Flex Code
9771 status collapsed
9772
9773 \begin_layout Plain Layout
9774 book (AMS)
9775 \end_layout
9776
9777 \end_inset
9778
9779 , the module 
9780 \begin_inset Flex Code
9781 status collapsed
9782
9783 \begin_layout Plain Layout
9784 Theorems (Order by Chapter)
9785 \end_layout
9786
9787 \end_inset
9788
9789 .
9790  These will number the results as 
9791 \begin_inset Formula $n.m$
9792 \end_inset
9793
9794 , where the first number refers to the section (or chapter) and the second
9795  refers to the total number of results so far in that section (or chapter).
9796  Many environments are also available unnumbered.
9797  These are indicated by an asterisk at the end.
9798  If you happen to want 
9799 \emph on
9800 only
9801 \emph default
9802  unnumbered results, the module 
9803 \begin_inset Flex Code
9804 status collapsed
9805
9806 \begin_layout Plain Layout
9807 Theorems (Starred)
9808 \end_layout
9809
9810 \end_inset
9811
9812  provides that option.
9813 \end_layout
9814
9815 \begin_layout Standard
9816 Note that these modules do not 
9817 \emph on
9818 have
9819 \emph default
9820  to be used with the AMS classes.
9821  It is perfectly possible to use the 
9822 \begin_inset Flex Code
9823 status collapsed
9824
9825 \begin_layout Plain Layout
9826 Theorems (AMS)
9827 \end_layout
9828
9829 \end_inset
9830
9831  module, and the others mentioned, with other classes, such as 
9832 \begin_inset Flex Code
9833 status collapsed
9834
9835 \begin_layout Plain Layout
9836 article
9837 \end_layout
9838
9839 \end_inset
9840
9841
9842 \begin_inset Flex Code
9843 status collapsed
9844
9845 \begin_layout Plain Layout
9846 report
9847 \end_layout
9848
9849 \end_inset
9850
9851
9852 \begin_inset Flex Code
9853 status collapsed
9854
9855 \begin_layout Plain Layout
9856 book (KOMA-script)
9857 \end_layout
9858
9859 \end_inset
9860
9861 , and so forth.
9862 \end_layout
9863
9864 \begin_layout Subsection
9865 What these layouts provide
9866 \end_layout
9867
9868 \begin_layout Standard
9869 There is a long list of included environments provided by these layouts.
9870  In AMS-\SpecialChar LaTeX
9871 , there is, in fact, an opportunity to define an unlimited variety
9872  of `theorem' environments.
9873  However, the AMS recommends the environments that are available in \SpecialChar LyX
9874 .
9875  
9876 \end_layout
9877
9878 \begin_layout Standard
9879 The following environments—as well as the standard environments, such as
9880  
9881 \begin_inset Flex Noun
9882 status collapsed
9883
9884 \begin_layout Plain Layout
9885 section
9886 \end_layout
9887
9888 \end_inset
9889
9890
9891 \begin_inset Flex Noun
9892 status collapsed
9893
9894 \begin_layout Plain Layout
9895 bibliography
9896 \end_layout
9897
9898 \end_inset
9899
9900
9901 \begin_inset Flex Noun
9902 status collapsed
9903
9904 \begin_layout Plain Layout
9905 title
9906 \end_layout
9907
9908 \end_inset
9909
9910
9911 \begin_inset Flex Noun
9912 status collapsed
9913
9914 \begin_layout Plain Layout
9915 author
9916 \end_layout
9917
9918 \end_inset
9919
9920 , and 
9921 \begin_inset Flex Noun
9922 status collapsed
9923
9924 \begin_layout Plain Layout
9925 date
9926 \end_layout
9927
9928 \end_inset
9929
9930 —are provided by 
9931 \begin_inset Flex Code
9932 status collapsed
9933
9934 \begin_layout Plain Layout
9935 article (AMS)
9936 \end_layout
9937
9938 \end_inset
9939
9940  and 
9941 \begin_inset Flex Code
9942 status collapsed
9943
9944 \begin_layout Plain Layout
9945 book (AMS)
9946 \end_layout
9947
9948 \end_inset
9949
9950 :
9951 \end_layout
9952
9953 \begin_layout Description
9954 Address This should be the author's permanent address.
9955 \end_layout
9956
9957 \begin_layout Description
9958 Current
9959 \begin_inset space ~
9960 \end_inset
9961
9962 Address This should be the author's temporary address at the time of submission,
9963  if different from the Address.
9964 \end_layout
9965
9966 \begin_layout Description
9967 Email Author's e-mail address
9968 \end_layout
9969
9970 \begin_layout Description
9971 URL Author's Web address, if desired.
9972 \end_layout
9973
9974 \begin_layout Description
9975 Keywords Key words or phrases used to identify specific topics discussed
9976  in the paper.
9977 \end_layout
9978
9979 \begin_layout Description
9980 Subjectclass These refer to the AMS Subject Classifications, published and
9981  described in 
9982 \emph on
9983 Mathematical Reviews
9984 \emph default
9985 .
9986  These are also available online at the AMS cites listed above.
9987 \end_layout
9988
9989 \begin_layout Description
9990 Thanks
9991 \end_layout
9992
9993 \begin_layout Description
9994 Dedicatory
9995 \end_layout
9996
9997 \begin_layout Description
9998 Translator
9999 \end_layout
10000
10001 \begin_layout Standard
10002 The following environments are provided by both the 
10003 \begin_inset Flex Code
10004 status collapsed
10005
10006 \begin_layout Plain Layout
10007 Theorems
10008 \end_layout
10009
10010 \end_inset
10011
10012  and 
10013 \begin_inset Flex Code
10014 status collapsed
10015
10016 \begin_layout Plain Layout
10017 Theorems (AMS)
10018 \end_layout
10019
10020 \end_inset
10021
10022  modules, in the latter case in both starred (unnumbered) and unstarred
10023  (numbered) versions.
10024  These same environments are provided only in the starred versions by the
10025  
10026 \begin_inset Flex Code
10027 status collapsed
10028
10029 \begin_layout Plain Layout
10030 Theorems (Starred)
10031 \end_layout
10032
10033 \end_inset
10034
10035  module:
10036 \end_layout
10037
10038 \begin_layout Theorem
10039 This is typically used for the statements of major results.
10040  
10041 \end_layout
10042
10043 \begin_layout Corollary*
10044 This is used for statements which follow fairly directly from previous statement
10045 s.
10046  Again, these can be major results.
10047  
10048 \end_layout
10049
10050 \begin_layout Lemma
10051 These are smaller results needed to prove other statements.
10052 \end_layout
10053
10054 \begin_layout Proposition
10055 These are less major results which (hopefully) add to the general theory
10056  being discussed.
10057 \end_layout
10058
10059 \begin_layout Conjecture
10060 These are statements provided without justification, which the author does
10061  not know how to prove, but which seem to be true (to the author, at least).
10062 \end_layout
10063
10064 \begin_layout Definition*
10065 Guess what this is for.
10066  The font is different for this environment than for the previous ones.
10067  
10068 \end_layout
10069
10070 \begin_layout Example*
10071 Used for examples illustrating proven results.
10072 \end_layout
10073
10074 \begin_layout Problem
10075 It's not really known what this is for.
10076  You should figure it out.
10077 \end_layout
10078
10079 \begin_layout Exercise*
10080 Write a description for this one.
10081 \end_layout
10082
10083 \begin_layout Remark
10084 This environment is also a type of theorem, usually a lesser sort of observation.
10085 \end_layout
10086
10087 \begin_layout Claim*
10088 Often used in the course of giving a proof of a larger result.
10089 \end_layout
10090
10091 \begin_layout Case
10092 Generally, these are used to break up long arguments, using specific instances
10093  of some condition.
10094  
10095 \end_layout
10096
10097 \begin_layout Case
10098 The numbering scheme for cases is on its own, not together with other numbered
10099  statements.
10100  
10101 \end_layout
10102
10103 \begin_layout Proof
10104 At the end of this environment, a QED symbol (usually a square, but it can
10105  vary with different styles) is placed.
10106  If you want to have other environments within this one—for example, Case
10107  environments—and have the QED symbol appear only after them, then the other
10108  environments need to be nested within the proof environment.
10109  See the section 
10110 \emph on
10111 Nesting Environments
10112 \emph default
10113  of the 
10114 \emph on
10115 User's Guide
10116 \emph default
10117  for information on nesting.
10118 \end_layout
10119
10120 \begin_layout Standard
10121 And these environments are provided by 
10122 \begin_inset Flex Code
10123 status collapsed
10124
10125 \begin_layout Plain Layout
10126 Theorems (AMS-Extended)
10127 \end_layout
10128
10129 \end_inset
10130
10131 :
10132 \end_layout
10133
10134 \begin_layout Criterion*
10135 A required condition.
10136 \end_layout
10137
10138 \begin_layout Algorithm*
10139 A general procedure to be used.
10140 \end_layout
10141
10142 \begin_layout Axiom*
10143 This is a property or statement taken as true within the system being discussed.
10144 \end_layout
10145
10146 \begin_layout Condition*
10147 Sometimes used to state a condition assumed within the present context of
10148  discussion.
10149 \end_layout
10150
10151 \begin_layout Note*
10152 Similar to a Remark.
10153 \end_layout
10154
10155 \begin_layout Notation*
10156 Used for the explanation of, yes, notation.
10157 \end_layout
10158
10159 \begin_layout Summary
10160 Do we really need to tell you? 
10161 \end_layout
10162
10163 \begin_layout Acknowledgement*
10164 Acknowledgement.
10165 \end_layout
10166
10167 \begin_layout Conclusion*
10168 Sometimes used at the end of a long train of argument.
10169 \end_layout
10170
10171 \begin_layout Fact
10172 Used in a way similar to Proposition, though perhaps lower on the scale.
10173 \end_layout
10174
10175 \begin_layout Standard
10176 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10177  and AMS fonts
10178  packages.
10179  They need to be available on your system in order to use these environments.
10180 \end_layout
10181
10182 \begin_layout Section
10183 AGU journals (
10184 \family sans
10185 aguplus
10186 \family default
10187 )
10188 \end_layout
10189
10190 \begin_layout Standard
10191 by 
10192 \shape smallcaps
10193 Martin Vermeer
10194 \end_layout
10195
10196 \begin_layout Subsection
10197 Description
10198 \end_layout
10199
10200 \begin_layout Standard
10201 These are the layout files for some of the journals of the American Geophysical
10202  Society.
10203  It is assumed that you have both the AGU's own class files and AGUplus
10204  installed (everything to be found at
10205 \begin_inset Flex URL
10206 status collapsed
10207
10208 \begin_layout Plain Layout
10209
10210 ftp://ftp.agu.org/journals/latex/journals
10211 \end_layout
10212
10213 \end_inset
10214
10215 ).
10216 \end_layout
10217
10218 \begin_layout Subsection
10219 New styles
10220 \end_layout
10221
10222 \begin_layout Standard
10223 Redefined are 
10224 \family sans
10225 Paragraph
10226 \family default
10227
10228 \family sans
10229 Paragraph*
10230 \family default
10231 .
10232  They are still called this in the \SpecialChar LyX
10233  GUI, though their \SpecialChar LaTeX
10234  equivalents in the
10235  AGU classes are 
10236 \family sans
10237 Subsubsubsection
10238 \family default
10239  and 
10240 \family sans
10241 Subsubsubsection*
10242 \family default
10243 .
10244 \end_layout
10245
10246 \begin_layout Standard
10247 Newly defined styles are 
10248 \family sans
10249 Left_Header
10250 \family default
10251
10252 \family sans
10253 Right_Header
10254 \family default
10255
10256 \family sans
10257 Received
10258 \family default
10259
10260 \family sans
10261 Revised
10262 \family default
10263
10264 \family sans
10265 Accepted
10266 \family default
10267
10268 \family sans
10269 CCC
10270 \family default
10271
10272 \family sans
10273 PaperId
10274 \family default
10275
10276 \family sans
10277 AuthorAddr
10278 \family default
10279
10280 \family sans
10281 SlugComment
10282 \family default
10283 .
10284  These are mostly manuscript attributes and defined in the AGU class documentati
10285 on.
10286 \end_layout
10287
10288 \begin_layout Standard
10289 I suspect this is still badly incomplete.
10290 \end_layout
10291
10292 \begin_layout Subsection
10293 New floats
10294 \end_layout
10295
10296 \begin_layout Standard
10297
10298 \family sans
10299 Planotable
10300 \family default
10301  and 
10302 \family sans
10303 Plate
10304 \family default
10305 .
10306  We also have a new 
10307 \family sans
10308 Table_Caption
10309 \family default
10310 .
10311 \end_layout
10312
10313 \begin_layout Subsection
10314 Supported journals
10315 \end_layout
10316
10317 \begin_layout Itemize
10318
10319 \emph on
10320 Journal of Geophysical Research
10321 \emph default
10322
10323 \family typewriter
10324 jgrga.layout
10325 \family default
10326  — Martin Vermeer
10327 \end_layout
10328
10329 \begin_layout Standard
10330 Add your own, it isn't so hard! Look at the 
10331 \family typewriter
10332 jgrga.layout
10333 \family default
10334  example and 
10335 \family typewriter
10336 aguplus.inc
10337 \family default
10338 .
10339 \end_layout
10340
10341 \begin_layout Subsection
10342 Bugs and things to remember
10343 \end_layout
10344
10345 \begin_layout Standard
10346 In order to use the new layouts, you must remember to do the following for
10347  a new document:
10348 \end_layout
10349
10350 \begin_layout Enumerate
10351
10352 \emph on
10353 Turn off babel
10354 \emph default
10355 .
10356  This can be done in the 
10357 \family sans
10358 Layout\SpecialChar menuseparator
10359 Document
10360 \family default
10361  or 
10362 \family sans
10363 Document\SpecialChar menuseparator
10364 Settings
10365 \family default
10366  menu item.
10367  (AGU articles are always in English, right? So 
10368 \emph on
10369 don't
10370 \emph default
10371  choose a language.)
10372 \end_layout
10373
10374 \begin_layout Enumerate
10375 Enter 
10376 \family typewriter
10377 jgrga
10378 \family default
10379  into the document's 
10380 \family sans
10381 Extra Options
10382 \family default
10383  field.
10384  (Yes, this is a bug.)
10385 \end_layout
10386
10387 \begin_layout Enumerate
10388 Make sure you use the 
10389 \family typewriter
10390 agu.bst
10391 \family default
10392  bibliography style, by entering 
10393 \family sans
10394 agu
10395 \family default
10396  into the second field of the Bib\SpecialChar TeX
10397  inset.
10398  None of the standard styles will do.
10399 \end_layout
10400
10401 \begin_layout Section
10402 Broadway
10403 \end_layout
10404
10405 \begin_layout Standard
10406 by 
10407 \shape smallcaps
10408 Garst Reese
10409 \end_layout
10410
10411 \begin_layout Subsection
10412 Introduction
10413 \end_layout
10414
10415 \begin_layout Standard
10416 Broadway is for writing plays.
10417  The format is more decorative than Hollywood, and much less standardized.
10418  This format should be suitable for workshops.
10419 \end_layout
10420
10421 \begin_layout Subsection
10422 Special problems
10423 \end_layout
10424
10425 \begin_layout Standard
10426 The same as in Hollywood.
10427 \end_layout
10428
10429 \begin_layout Subsection
10430 Special features
10431 \end_layout
10432
10433 \begin_layout Standard
10434 Insert the 
10435 \family sans
10436 Speaker
10437 \family default
10438  names as labels then cross-reference the label to insert the name.
10439  The cross-reference dialog will show the current cast of characters.
10440 \end_layout
10441
10442 \begin_layout Subsection
10443 Paper size and Margins
10444 \end_layout
10445
10446 \begin_layout Standard
10447 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10448 \end_layout
10449
10450 \begin_layout Subsection
10451 Environments
10452 \end_layout
10453
10454 \begin_layout Standard
10455 The following environments are available.
10456  You can use broadway.bind to get the bind keys shown at the right.
10457 \end_layout
10458
10459 \begin_layout Itemize
10460
10461 \family sans
10462 Standard
10463 \begin_inset Newline newline
10464 \end_inset
10465
10466
10467 \family default
10468 You should not have to use this, but it is here for anything that does not
10469  fit otherwise.
10470 \end_layout
10471
10472 \begin_layout Itemize
10473
10474 \family sans
10475 Narrative
10476 \begin_inset space \hfill{}
10477 \end_inset
10478
10479 M-z n
10480 \begin_inset Newline newline
10481 \end_inset
10482
10483
10484 \family default
10485 Used to describe stage setting and the action.
10486  First use of speaker names in all CAPs.
10487 \end_layout
10488
10489 \begin_layout Itemize
10490
10491 \family sans
10492 ACT
10493 \begin_inset space \hfill{}
10494 \end_inset
10495
10496 M-z a
10497 \begin_inset Newline newline
10498 \end_inset
10499
10500
10501 \family default
10502 Automatically numbered.
10503  On screen it will be arabic, but will print as Roman.
10504 \end_layout
10505
10506 \begin_layout Itemize
10507
10508 \family sans
10509 ACT*
10510 \begin_inset space \hfill{}
10511 \end_inset
10512
10513 M-z S at
10514 \begin_inset Newline newline
10515 \end_inset
10516
10517
10518 \family default
10519 Subtitle for 
10520 \family sans
10521 ACT.
10522
10523 \family default
10524  It is just centered text.
10525 \end_layout
10526
10527 \begin_layout Itemize
10528
10529 \family sans
10530 SCENE
10531 \begin_inset space \hfill{}
10532 \end_inset
10533
10534 M-z S-S
10535 \begin_inset Newline newline
10536 \end_inset
10537
10538
10539 \family default
10540 Not automatically numbered.
10541  You supply the number.
10542  This is because I couldn't figure out how.
10543 \end_layout
10544
10545 \begin_layout Itemize
10546
10547 \family sans
10548 AT_RISE:
10549 \begin_inset space \hfill{}
10550 \end_inset
10551
10552 M-z S-R
10553 \begin_inset Newline newline
10554 \end_inset
10555
10556
10557 \family default
10558 A special case of Narrative to describe the setting and action as the curtain
10559  rises.
10560 \end_layout
10561
10562 \begin_layout Itemize
10563
10564 \family sans
10565 Speaker
10566 \begin_inset space \hfill{}
10567 \end_inset
10568
10569 M-z s
10570 \begin_inset Newline newline
10571 \end_inset
10572
10573
10574 \family default
10575 The speaker's (actor's) title, centered in all CAPS.
10576 \end_layout
10577
10578 \begin_layout Itemize
10579
10580 \family sans
10581 Parenthetical
10582 \begin_inset space \hfill{}
10583 \end_inset
10584
10585 M-z p
10586 \begin_inset Newline newline
10587 \end_inset
10588
10589
10590 \family default
10591 Instructions to the speaker.
10592  The parentheses are automatically inserted.
10593  The ( will appear on screen, but both will be in the printed play.
10594  This environment is only used within 
10595 \family sans
10596 Dialogue
10597 \family default
10598 .
10599 \end_layout
10600
10601 \begin_layout Itemize
10602
10603 \family sans
10604 Dialogue
10605 \begin_inset space \hfill{}
10606 \end_inset
10607
10608 M-z d
10609 \begin_inset Newline newline
10610 \end_inset
10611
10612
10613 \family default
10614 What the Speaker says.
10615 \end_layout
10616
10617 \begin_layout Itemize
10618
10619 \family sans
10620 CURTAIN
10621 \begin_inset space \hfill{}
10622 \end_inset
10623
10624 M-z S-C
10625 \begin_inset Newline newline
10626 \end_inset
10627
10628
10629 \family default
10630 The curtain comes down.
10631 \end_layout
10632
10633 \begin_layout Itemize
10634
10635 \family sans
10636 Title
10637 \begin_inset space \hfill{}
10638 \end_inset
10639
10640 M-z S-T
10641 \end_layout
10642
10643 \begin_layout Itemize
10644
10645 \family sans
10646 Author
10647 \begin_inset space \hfill{}
10648 \end_inset
10649
10650 M-z S-A
10651 \end_layout
10652
10653 \begin_layout Itemize
10654
10655 \family sans
10656 Right_Address
10657 \begin_inset space \hfill{}
10658 \end_inset
10659
10660 M-z r
10661 \end_layout
10662
10663 \begin_layout Standard
10664 Hello there.
10665 \end_layout
10666
10667 \begin_layout Section
10668 Dinbrief
10669 \end_layout
10670
10671 \begin_layout Standard
10672 The document class 
10673 \family sans
10674 dinbrief
10675 \family default
10676  can be used to type letters according to German conventions.
10677  A template file is included in 
10678 \family typewriter
10679 .../lyx/share/templates
10680 \family default
10681  for you to use as a starting point.
10682 \end_layout
10683
10684 \begin_layout Section
10685 EGS journals (
10686 \family sans
10687 egs
10688 \family default
10689 )
10690 \end_layout
10691
10692 \begin_layout Standard
10693 by 
10694 \shape smallcaps
10695 Martin Vermeer
10696 \end_layout
10697
10698 \begin_layout Subsection
10699 Description
10700 \end_layout
10701
10702 \begin_layout Standard
10703 This is the layout file for the European Geophysical Society journals.
10704  The needed 
10705 \family typewriter
10706 egs.cls
10707 \family default
10708  can be downloaded from the web site of the EGS under 
10709 \begin_inset Flex URL
10710 status collapsed
10711
10712 \begin_layout Plain Layout
10713
10714 www.copernicus.org
10715 \end_layout
10716
10717 \end_inset
10718
10719 .
10720 \end_layout
10721
10722 \begin_layout Subsection
10723 New styles
10724 \end_layout
10725
10726 \begin_layout Standard
10727
10728 \family sans
10729 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10730  Accepted
10731 \family default
10732
10733 \family sans
10734 Offsets
10735 \family default
10736 .
10737  The current layout file is unfortunately very unmodular and would benefit
10738  from using the various 
10739 \family typewriter
10740 std*.inc
10741 \family default
10742  file inclusions.
10743 \end_layout
10744
10745 \begin_layout Section
10746 Elsevier Journals
10747 \end_layout
10748
10749 \begin_layout Standard
10750 See the \SpecialChar LyX
10751  template file 
10752 \family typewriter
10753 elsarticle.lyx
10754 \family default
10755 .
10756  It contains all infos you need.
10757 \end_layout
10758
10759 \begin_layout Section
10760 Foils [aka 
10761 \family sans
10762 Foil\SpecialChar TeX
10763
10764 \family default
10765 ]
10766 \begin_inset CommandInset label
10767 LatexCommand label
10768 name "sec:foiltex"
10769
10770 \end_inset
10771
10772
10773 \end_layout
10774
10775 \begin_layout Standard
10776 by 
10777 \noun on
10778 Allan Rae
10779 \end_layout
10780
10781 \begin_layout Subsection
10782 Introduction
10783 \end_layout
10784
10785 \begin_layout Standard
10786 This section describes how to use \SpecialChar LyX
10787  to make slides for overhead projectors.
10788  There are two document classes that can do this: the default slides class
10789  and the 
10790 \family sans
10791 Foil\SpecialChar TeX
10792
10793 \family default
10794  slides class.
10795  This section documents the latter.
10796 \end_layout
10797
10798 \begin_layout Standard
10799 I'm going to say this again, nice and clear, so that there's no misunderstanding
10800 :
10801 \end_layout
10802
10803 \begin_layout Standard
10804 \begin_inset VSpace bigskip
10805 \end_inset
10806
10807
10808 \end_layout
10809
10810 \begin_layout Standard
10811 \align center
10812
10813 \size large
10814 This section documents the class 
10815 \begin_inset Quotes eld
10816 \end_inset
10817
10818
10819 \family sans
10820 slides (Foil
10821 \change_inserted -712698321 1437633339
10822 TeX
10823 \change_deleted -712698321 1437633344
10824 \SpecialChar TeX
10825
10826 \change_unchanged
10827 )
10828 \family default
10829
10830 \begin_inset Quotes erd
10831 \end_inset
10832
10833  
10834 \emph on
10835 only.
10836 \end_layout
10837
10838 \begin_layout Standard
10839 \begin_inset VSpace bigskip
10840 \end_inset
10841
10842
10843 \end_layout
10844
10845 \begin_layout Standard
10846 If you're looking for the documentation for 
10847 \begin_inset Quotes eld
10848 \end_inset
10849
10850
10851 \family sans
10852 slides (default)
10853 \family default
10854
10855 \begin_inset Quotes erd
10856 \end_inset
10857
10858 , check out section
10859 \begin_inset space ~
10860 \end_inset
10861
10862
10863 \begin_inset CommandInset ref
10864 LatexCommand ref
10865 reference "sec:slitex"
10866
10867 \end_inset
10868
10869 .
10870  If your machine doesn't have the 
10871 \family sans
10872 foils
10873 \family default
10874  class [
10875 \begin_inset Quotes eld
10876 \end_inset
10877
10878
10879 \family sans
10880 slides (Foil
10881 \change_inserted -712698321 1437633364
10882 TeX
10883 \change_deleted -712698321 1437633362
10884 \SpecialChar TeX
10885
10886 \change_unchanged
10887 )
10888 \family default
10889
10890 \begin_inset Quotes erd
10891 \end_inset
10892
10893 ] installed, you'll probably have to use the default 
10894 \family sans
10895 slides
10896 \family default
10897  class, which isn't quite as good as 
10898 \family sans
10899 foils.
10900 \end_layout
10901
10902 \begin_layout Standard
10903 The 
10904 \family sans
10905 foils
10906 \family default
10907  class is designed for use with version 2.1 of the 
10908 \family sans
10909 foils.cls
10910 \family default
10911  \SpecialChar LaTeX
10912  class file which is now an integral part of \SpecialChar LaTeX2e
10913 .
10914 \end_layout
10915
10916 \begin_layout Subsection
10917 Getting Started
10918 \end_layout
10919
10920 \begin_layout Standard
10921 Obviously, to use this document class, you need to select 
10922 \begin_inset Quotes eld
10923 \end_inset
10924
10925
10926 \family sans
10927 slides (Foil
10928 \change_inserted -712698321 1437633373
10929 TeX
10930 \change_deleted -712698321 1437633373
10931 \SpecialChar TeX
10932
10933 \change_unchanged
10934 )
10935 \family default
10936
10937 \begin_inset Quotes erd
10938 \end_inset
10939
10940  from the 
10941 \family sans
10942 Class
10943 \family default
10944  entry in the 
10945 \family sans
10946 Document
10947 \begin_inset space ~
10948 \end_inset
10949
10950 Layout
10951 \family default
10952  dialog.
10953  There are some settings in the 
10954 \family sans
10955 Document
10956 \begin_inset space ~
10957 \end_inset
10958
10959 Layout
10960 \family default
10961  dialog that you should know about that are specific to this class:
10962 \end_layout
10963
10964 \begin_layout Itemize
10965 Don't change the options 
10966 \family sans
10967 Sides
10968 \family default
10969  and 
10970 \family sans
10971 Columns
10972 \family default
10973  on the 
10974 \family sans
10975 Document
10976 \begin_inset space ~
10977 \end_inset
10978
10979 Layout
10980 \family default
10981  dialog.
10982  They're ignored by the 
10983 \family sans
10984 foils
10985 \family default
10986  class.
10987 \end_layout
10988
10989 \begin_layout Itemize
10990 The default font size is 20
10991 \begin_inset space \thinspace{}
10992 \end_inset
10993
10994 pt with the other options being 17
10995 \begin_inset space \thinspace{}
10996 \end_inset
10997
10998 pt, 25
10999 \begin_inset space \thinspace{}
11000 \end_inset
11001
11002 pt and 30
11003 \begin_inset space \thinspace{}
11004 \end_inset
11005
11006 pt.
11007 \end_layout
11008
11009 \begin_layout Itemize
11010 The default font is 
11011 \family sans
11012 sans
11013 \family default
11014  
11015 \family sans
11016 serif
11017 \family default
11018  but all math equations are still typeset in the usual roman font.
11019 \end_layout
11020
11021 \begin_layout Itemize
11022
11023 \family sans
11024 Foil\SpecialChar TeX
11025
11026 \family default
11027  supports A4 and Letter paper sizes as well as a special size for working
11028  with 35
11029 \begin_inset space \thinspace{}
11030 \end_inset
11031
11032 mm slides.
11033  It doesn't support A5, B5, legal or executive paper sizes.
11034 \end_layout
11035
11036 \begin_layout Itemize
11037 Don't bother changing the 
11038 \family sans
11039 Float Placement
11040 \family default
11041  settings because they are ignored anyway.
11042  All floats appear where they are defined in the text.
11043 \end_layout
11044
11045 \begin_layout Itemize
11046 The 
11047 \family sans
11048 Pagestyle
11049 \family default
11050  setting behaves a bit differently for this class.
11051  
11052 \family sans
11053 Foil\SpecialChar TeX
11054
11055 \family default
11056  provides extensive footer and header capabilities including a user-defined
11057  logo.
11058  See section
11059 \begin_inset space ~
11060 \end_inset
11061
11062
11063 \begin_inset CommandInset ref
11064 LatexCommand ref
11065 reference "sec:foilfoot"
11066
11067 \end_inset
11068
11069  for more details.
11070  The title page is treated differently to all other pages in the document
11071  and is 
11072 \emph on
11073 always
11074 \emph default
11075  unnumbered and 
11076 \emph on
11077 always
11078 \emph default
11079  has the logo centered at the bottom of the page (if one is defined).
11080  The possible page style choices and what they do are as follows:
11081 \begin_inset Separator parbreak
11082 \end_inset
11083
11084
11085 \end_layout
11086
11087 \begin_deeper
11088 \begin_layout Labeling
11089 \labelwidthstring MMMMMMM
11090
11091 \family sans
11092 \series bold
11093 empty
11094 \family default
11095 \series default
11096  The final output contains no page numbers, or other headers or footers
11097  (except footnotes of course).
11098  
11099 \end_layout
11100
11101 \begin_layout Labeling
11102 \labelwidthstring MMMMMMM
11103
11104 \family sans
11105 \series bold
11106 plain
11107 \family default
11108 \series default
11109  The final output contains page numbers centered at the bottom of the page.
11110  No other headings or footers (other than footnotes).
11111 \end_layout
11112
11113 \begin_layout Labeling
11114 \labelwidthstring MMMMMMM
11115
11116 \series bold
11117 foilheadings
11118 \series default
11119  Page numbers in lower right corner.
11120  Additional headers and footers are also shown.
11121  This is also the default.
11122 \end_layout
11123
11124 \begin_layout Labeling
11125 \labelwidthstring MMMMMMM
11126
11127 \series bold
11128 fancy
11129 \series default
11130  Gives you access to the 
11131 \family sans
11132 fancyheadings
11133 \family default
11134  package although its use with 
11135 \family sans
11136 Foil\SpecialChar TeX
11137
11138 \family default
11139  is discouraged by the writer of the 
11140 \family sans
11141 Foil\SpecialChar TeX
11142
11143 \family default
11144  package because of some potential page layout clashes.
11145 \end_layout
11146
11147 \end_deeper
11148 \begin_layout Subsubsection
11149 Extra Options
11150 \end_layout
11151
11152 \begin_layout Standard
11153 The following options may be used in the extra class options in the 
11154 \family sans
11155 Document\SpecialChar menuseparator
11156 Settings
11157 \family default
11158  dialog.
11159 \end_layout
11160
11161 \begin_layout Labeling
11162 \labelwidthstring MMMMMMx
11163
11164 \series bold
11165 35mmSlide
11166 \series default
11167  This sets up the page layout for 7.33
11168 \begin_inset space \thinspace{}
11169 \end_inset
11170
11171 in by 11
11172 \begin_inset space \thinspace{}
11173 \end_inset
11174
11175 in paper, which is about the same aspect ratio as a 35
11176 \begin_inset space \thinspace{}
11177 \end_inset
11178
11179 mm slide, making it a bit easier to work with this medium.
11180 \end_layout
11181
11182 \begin_layout Labeling
11183 \labelwidthstring MMMMMMx
11184
11185 \series bold
11186 headrule
11187 \series default
11188  Places a rule across the page below the header on every page except the
11189  title page.
11190 \end_layout
11191
11192 \begin_layout Labeling
11193 \labelwidthstring MMMMMMx
11194
11195 \series bold
11196 footrule
11197 \series default
11198  Places a rule across the page above the footer on every page except the
11199  title page.
11200 \end_layout
11201
11202 \begin_layout Labeling
11203 \labelwidthstring MMMMMMx
11204
11205 \series bold
11206 dvips
11207 \series default
11208  This is automatically set each time you create a new 
11209 \family sans
11210 foils
11211 \family default
11212  document.
11213  This option tells 
11214 \family sans
11215 Foil\SpecialChar TeX
11216
11217 \family default
11218  to use the dvips driver to rotate those pages that are set as landscape
11219  foils.
11220 \end_layout
11221
11222 \begin_layout Labeling
11223 \labelwidthstring MMMMMMx
11224
11225 \series bold
11226 landscape
11227 \series default
11228  Simply changes the page dimensions to those of a landscape page but doesn't
11229  do any rotation.
11230  Thus if you use this option you need to use an external program to rotate
11231  each page or feed your paper through your printer as landscape.
11232  Note that this option effectively reverses the roles of the 
11233 \family sans
11234 Foilhead
11235 \family default
11236  and 
11237 \family sans
11238 Rotatefoilhead
11239 \family default
11240  environments (don't worry these are described in the next section).
11241 \end_layout
11242
11243 \begin_layout Labeling
11244 \labelwidthstring MMMMMMx
11245
11246 \series bold
11247 leqno
11248 \series default
11249  Equation numbers on the left.
11250 \end_layout
11251
11252 \begin_layout Labeling
11253 \labelwidthstring MMMMMMx
11254
11255 \series bold
11256 fleqn
11257 \series default
11258  Flush-left equations.
11259 \end_layout
11260
11261 \begin_layout Subsection
11262 Supported Environments
11263 \end_layout
11264
11265 \begin_layout Standard
11266 Most of the environments commonly supported in other classes are also supported
11267  by the 
11268 \family sans
11269 foils
11270 \family default
11271  class.
11272  There are several additional environments provided by 
11273 \family sans
11274 Foil\SpecialChar TeX
11275
11276 \family default
11277  as well as a couple added by \SpecialChar LyX
11278 .
11279  The following environments are shared with other classes:
11280 \end_layout
11281
11282 \begin_layout Standard
11283 \begin_inset Flex Multiple Columns
11284 status open
11285
11286 \begin_layout Itemize
11287
11288 \family sans
11289 Standard
11290 \end_layout
11291
11292 \begin_layout Itemize
11293
11294 \family sans
11295 Itemize
11296 \end_layout
11297
11298 \begin_layout Itemize
11299
11300 \family sans
11301 Enumerate
11302 \end_layout
11303
11304 \begin_layout Itemize
11305
11306 \family sans
11307 Description
11308 \end_layout
11309
11310 \begin_layout Itemize
11311
11312 \family sans
11313 List
11314 \end_layout
11315
11316 \begin_layout Itemize
11317
11318 \family sans
11319 \SpecialChar LyX
11320 -Code
11321 \end_layout
11322
11323 \begin_layout Itemize
11324
11325 \family sans
11326 Verse
11327 \end_layout
11328
11329 \begin_layout Itemize
11330
11331 \family sans
11332 Quote
11333 \end_layout
11334
11335 \begin_layout Itemize
11336
11337 \family sans
11338 Quotation
11339 \end_layout
11340
11341 \begin_layout Itemize
11342
11343 \family sans
11344 Title
11345 \end_layout
11346
11347 \begin_layout Itemize
11348
11349 \family sans
11350 Author
11351 \end_layout
11352
11353 \begin_layout Itemize
11354
11355 \family sans
11356 Date
11357 \end_layout
11358
11359 \begin_layout Itemize
11360
11361 \family sans
11362 Abstract
11363 \end_layout
11364
11365 \begin_layout Itemize
11366
11367 \family sans
11368 Bibliography
11369 \end_layout
11370
11371 \begin_layout Itemize
11372
11373 \family sans
11374 Address
11375 \end_layout
11376
11377 \begin_layout Itemize
11378
11379 \family sans
11380 RightAddress
11381 \end_layout
11382
11383 \begin_layout Itemize
11384
11385 \family sans
11386 Caption
11387 \end_layout
11388
11389 \begin_layout Itemize
11390
11391 \family sans
11392 Comment
11393 \end_layout
11394
11395 \end_inset
11396
11397
11398 \end_layout
11399
11400 \begin_layout Standard
11401 That is, all the major environments apart from the sectioning environments.
11402  Since foils are essentially self-contained sections, with a title and body,
11403  
11404 \family sans
11405 Foil\SpecialChar TeX
11406
11407 \family default
11408  provides specific commands for starting new foils and these are:
11409 \end_layout
11410
11411 \begin_layout Itemize
11412
11413 \family sans
11414 Foilhead
11415 \end_layout
11416
11417 \begin_layout Itemize
11418
11419 \family sans
11420 Rotatefoilhead
11421 \end_layout
11422
11423 \begin_layout Standard
11424 \SpecialChar LyX
11425  also provides slightly modified versions of these two environments called:
11426 \end_layout
11427
11428 \begin_layout Itemize
11429
11430 \family sans
11431 ShortFoilhead
11432 \end_layout
11433
11434 \begin_layout Itemize
11435
11436 \family sans
11437 ShortRotatefoilhead
11438 \end_layout
11439
11440 \begin_layout Standard
11441 and the differences will be explained in the next section.
11442 \end_layout
11443
11444 \begin_layout Standard
11445 Since foils are often used in presenting ideas or new theorems and such
11446  
11447 \family sans
11448 Foil\SpecialChar TeX
11449
11450 \family default
11451  also provides a comprehensive box of goodies for presenting them:
11452 \end_layout
11453
11454 \begin_layout Standard
11455 \begin_inset Flex Multiple Columns
11456 status open
11457
11458 \begin_layout Itemize
11459
11460 \family sans
11461 Theorem
11462 \end_layout
11463
11464 \begin_layout Itemize
11465
11466 \family sans
11467 Lemma
11468 \end_layout
11469
11470 \begin_layout Itemize
11471
11472 \family sans
11473 Corollary
11474 \end_layout
11475
11476 \begin_layout Itemize
11477
11478 \family sans
11479 Proposition
11480 \end_layout
11481
11482 \begin_layout Itemize
11483
11484 \family sans
11485 Definition
11486 \end_layout
11487
11488 \begin_layout Itemize
11489
11490 \family sans
11491 Proof
11492 \end_layout
11493
11494 \begin_layout Itemize
11495
11496 \family sans
11497 Theorem*
11498 \end_layout
11499
11500 \begin_layout Itemize
11501
11502 \family sans
11503 Lemma*
11504 \end_layout
11505
11506 \begin_layout Itemize
11507
11508 \family sans
11509 Corollary*
11510 \end_layout
11511
11512 \begin_layout Itemize
11513
11514 \family sans
11515 Proposition*
11516 \end_layout
11517
11518 \begin_layout Itemize
11519
11520 \family sans
11521 Definition*
11522 \end_layout
11523
11524 \end_inset
11525
11526
11527 \end_layout
11528
11529 \begin_layout Standard
11530 The starred versions are unnumbered while the unstarred versions are numbered.
11531  There are also two list environments added by \SpecialChar LyX
11532  and these are:
11533 \end_layout
11534
11535 \begin_layout Itemize
11536
11537 \family sans
11538 TickList
11539 \end_layout
11540
11541 \begin_layout Itemize
11542
11543 \family sans
11544 CrossList
11545 \end_layout
11546
11547 \begin_layout Standard
11548
11549 \family sans
11550 Foil\SpecialChar TeX
11551
11552 \family default
11553  provides some powerful header and footer capabilities that are best set
11554  in the preamble although they may be set at any point in a document.
11555  If you want to change these settings in your document the best place to
11556  do so is at the very top of a foil, i.
11557 \begin_inset space \thinspace{}
11558 \end_inset
11559
11560 e.
11561 \emph on
11562
11563 \begin_inset space \space{}
11564 \end_inset
11565
11566
11567 \emph default
11568 straight after the foilhead.
11569 \end_layout
11570
11571 \begin_layout Standard
11572 For this purpose, the following command styles are provided [
11573 \shape smallcaps
11574 Martin Vermeer
11575 \shape default
11576 ]:
11577 \end_layout
11578
11579 \begin_layout Standard
11580 \begin_inset Flex Multiple Columns
11581 status open
11582
11583 \begin_layout Itemize
11584
11585 \family sans
11586 My
11587 \begin_inset space ~
11588 \end_inset
11589
11590 Logo
11591 \end_layout
11592
11593 \begin_layout Itemize
11594
11595 \family sans
11596 Restriction
11597 \end_layout
11598
11599 \begin_layout Itemize
11600
11601 \family sans
11602 Right
11603 \begin_inset space ~
11604 \end_inset
11605
11606 Footer
11607 \end_layout
11608
11609 \begin_layout Itemize
11610
11611 \family sans
11612 Right
11613 \begin_inset space ~
11614 \end_inset
11615
11616 Header
11617 \end_layout
11618
11619 \begin_layout Itemize
11620
11621 \family sans
11622 Left
11623 \begin_inset space ~
11624 \end_inset
11625
11626 Header
11627 \family default
11628
11629 \begin_inset Separator parbreak
11630 \end_inset
11631
11632
11633 \end_layout
11634
11635 \begin_deeper
11636 \begin_layout Plain Layout
11637 \begin_inset space ~
11638 \end_inset
11639
11640
11641 \end_layout
11642
11643 \end_deeper
11644 \end_inset
11645
11646
11647 \end_layout
11648
11649 \begin_layout Standard
11650 There are also a few commands provided by 
11651 \family sans
11652 Foil\SpecialChar TeX
11653
11654 \family default
11655  that aren't directly supported by \SpecialChar LyX
11656  but I'll tell you what they do and how
11657  to use them in section
11658 \begin_inset space ~
11659 \end_inset
11660
11661
11662 \begin_inset CommandInset ref
11663 LatexCommand ref
11664 reference "sec:unsuppfoils"
11665
11666 \end_inset
11667
11668 .
11669 \end_layout
11670
11671 \begin_layout Subsection
11672 Building a Set of Foils
11673 \end_layout
11674
11675 \begin_layout Standard
11676 This section will give a simple introduction to using the different environments
11677  to build a set of foils.
11678  If you want to see an example set of foils, take a look at the 
11679 \family typewriter
11680 Foils.lyx
11681 \family default
11682  file you find in \SpecialChar LyX
11683 's 
11684 \family typewriter
11685 examples
11686 \family default
11687  folder.
11688 \end_layout
11689
11690 \begin_layout Subsubsection
11691 Give It a Title Page
11692 \end_layout
11693
11694 \begin_layout Standard
11695 Unlike other classes that provide 
11696 \family sans
11697 Title
11698 \family default
11699
11700 \family sans
11701 Author
11702 \family default
11703
11704 \family sans
11705 Date
11706 \family default
11707  and 
11708 \family sans
11709 Abstract
11710 \family default
11711  environments, 
11712 \family sans
11713 foils
11714 \family default
11715  creates the title on a page of its own.
11716  If you leave out the 
11717 \family sans
11718 Date
11719 \family default
11720  environment \SpecialChar LaTeX
11721  will substitute the current date (every time you regenerate
11722  the output).
11723 \end_layout
11724
11725 \begin_layout Subsubsection
11726 Start a New Foil
11727 \end_layout
11728
11729 \begin_layout Standard
11730 As I mentioned earlier, there are four ways of starting a new foil.
11731  For portrait foils you should use 
11732 \family sans
11733 Foilhead
11734 \family default
11735  or 
11736 \family sans
11737 ShortFoilhead.
11738
11739 \family default
11740  The difference between these two environments is the amount of space between
11741  the title of the foil (the foilhead) and the body of the foil.
11742 \end_layout
11743
11744 \begin_layout Standard
11745 Landscape foils are generated using the 
11746 \family sans
11747 Rotatefoilhead
11748 \family default
11749  and 
11750 \family sans
11751 ShortRotatefoilhead
11752 \family default
11753  environments.
11754  Again the only difference is the spacing between foilhead and body.
11755  Both of the short versions have 0.5
11756 \begin_inset space ~
11757 \end_inset
11758
11759 inches less separation between the foilhead and the body.
11760  
11761 \end_layout
11762
11763 \begin_layout Standard
11764 One problem with the support for landscape foils is the requirement that
11765  you have to use the 
11766 \family typewriter
11767 dvips
11768 \family default
11769  driver to generate the PostScript output otherwise the foils won't be rotated.
11770  It is possible to get landscape foils even if you haven't got the 
11771 \family typewriter
11772 dvips
11773 \family default
11774  driver provided you can feed your foils sideways through your printer ;-)
11775 \end_layout
11776
11777 \begin_layout Subsubsection
11778 Theorems, Lemmas, Proofs and more
11779 \end_layout
11780
11781 \begin_layout Standard
11782 Due to a small bug in \SpecialChar LyX
11783  you can't have two of the same type of these environments
11784  directly following each other.
11785  They must be separated by something.
11786  If you try, you will just be extending the previous environment as if you
11787  had merged the two environments together.
11788  So, how do you get around this problem? The simplest option is to insert
11789  some text between the two environments or add a 
11790 \family sans
11791 \SpecialChar LaTeX
11792
11793 \family default
11794  environment between the two with just a 
11795 \begin_inset Quotes eld
11796 \end_inset
11797
11798
11799 \family typewriter
11800 %
11801 \family default
11802
11803 \begin_inset Quotes erd
11804 \end_inset
11805
11806  in it.
11807  This will force \SpecialChar LyX
11808  to produce two separate environments and hence the correct
11809  \SpecialChar LaTeX
11810  output.
11811  An example is provided in the example file included with the \SpecialChar LyX
11812  distribution.
11813  Remember, this problem only occurs if you are trying to place two of the
11814  same type of theorem-like environments one directly after the other.
11815 \end_layout
11816
11817 \begin_layout Subsubsection
11818 Lists
11819 \end_layout
11820
11821 \begin_layout Standard
11822 You get all the commonly supported list styles found in other classes as
11823  well as two new ones.
11824  I'll only describe the new ones here.
11825  If you want to find out more about the other list environments check out
11826  the 
11827 \emph on
11828 User's Guide.
11829
11830 \emph default
11831  If you intend to use itemized lists you might also want to read about the
11832  
11833 \family sans
11834 Itemize
11835 \begin_inset space ~
11836 \end_inset
11837
11838 Bullet
11839 \begin_inset space ~
11840 \end_inset
11841
11842 Selection
11843 \family default
11844  dialog described above in section
11845 \begin_inset space ~
11846 \end_inset
11847
11848
11849 \begin_inset CommandInset ref
11850 LatexCommand ref
11851 reference "sec:bullet"
11852
11853 \end_inset
11854
11855 .
11856 \end_layout
11857
11858 \begin_layout Standard
11859 The two new list styles, 
11860 \family sans
11861 TickList
11862 \family default
11863  and 
11864 \family sans
11865 CrossList
11866 \family default
11867 , are designed to make it easier for you to create lists of do's and don'ts
11868  or right and wrong by providing dedicated environments that use a tick
11869  or a cross as the label of the list.
11870  These lists are in fact dedicated variants of the 
11871 \family sans
11872 Itemize
11873 \family default
11874  environment.
11875  They do however require that you have the 
11876 \family typewriter
11877 psnfss
11878 \family default
11879  packages installed.
11880 \end_layout
11881
11882 \begin_layout Subsubsection
11883 Figures and Tables
11884 \end_layout
11885
11886 \begin_layout Standard
11887
11888 \family sans
11889 Foil\SpecialChar TeX
11890
11891 \family default
11892  redefines the floating tables and figures so that they appear exactly where
11893  they are in the text rather than pushing them to the top of the page or
11894  to some user specified location.
11895  In fact if you change the float placement settings they are simply ignored.
11896 \end_layout
11897
11898 \begin_layout Subsubsection
11899 Page Headers and Footers
11900 \begin_inset CommandInset label
11901 LatexCommand label
11902 name "sec:foilfoot"
11903
11904 \end_inset
11905
11906
11907 \end_layout
11908
11909 \begin_layout Standard
11910
11911 \family sans
11912 My
11913 \begin_inset space ~
11914 \end_inset
11915
11916 Logo
11917 \family default
11918  and 
11919 \family sans
11920 Restriction
11921 \family default
11922  are two commands used to control the left-footer text string.
11923  The first is meant to allow you to include a graphic logo on your foils
11924  and defaults to 
11925 \begin_inset Quotes eld
11926 \end_inset
11927
11928 -Typeset by 
11929 \family sans
11930 Foil\SpecialChar TeX
11931
11932 \family default
11933 -
11934 \begin_inset Quotes erd
11935 \end_inset
11936
11937 .
11938  While the second is meant to provide a classification for the audience,
11939  
11940 \emph on
11941 e.
11942 \begin_inset space \thinspace{}
11943 \end_inset
11944
11945 g.
11946 \emph default
11947
11948 \begin_inset space \space{}
11949 \end_inset
11950
11951 Confidential.
11952  It is empty by default.
11953 \end_layout
11954
11955 \begin_layout Standard
11956 The remaining page corners can be filled by 
11957 \family sans
11958 Right
11959 \begin_inset space ~
11960 \end_inset
11961
11962 Footer
11963 \family default
11964  (which defaults to page numbers), 
11965 \family sans
11966 Right
11967 \begin_inset space ~
11968 \end_inset
11969
11970 Header
11971 \family default
11972  (top right) and 
11973 \family sans
11974 Left
11975 \begin_inset space ~
11976 \end_inset
11977
11978 Header
11979 \family default
11980  (top left).
11981 \end_layout
11982
11983 \begin_layout Subsection
11984 Unsupported 
11985 \family sans
11986 Foil\SpecialChar TeX
11987
11988 \family default
11989  Goodies
11990 \begin_inset CommandInset label
11991 LatexCommand label
11992 name "sec:unsuppfoils"
11993
11994 \end_inset
11995
11996
11997 \end_layout
11998
11999 \begin_layout Standard
12000 All the commands mentioned below need to be set in a 
12001 \family sans
12002 \SpecialChar LaTeX
12003
12004 \family default
12005  environment or as 
12006 \family sans
12007 \SpecialChar TeX
12008
12009 \family default
12010  within another environment.
12011 \end_layout
12012
12013 \begin_layout Subsubsection
12014 Lengths
12015 \end_layout
12016
12017 \begin_layout Standard
12018 All lengths are adjusted using the 
12019 \family typewriter
12020
12021 \backslash
12022 setlength{
12023 \family default
12024 \emph on
12025 lengthname
12026 \family typewriter
12027 \emph default
12028 }{
12029 \family default
12030 \emph on
12031 newlength
12032 \family typewriter
12033 \emph default
12034 }
12035 \family default
12036  command.
12037  Where 
12038 \emph on
12039 lengthname
12040 \emph default
12041  should be replaced by the name given to the length you want to change and
12042  
12043 \emph on
12044 newlength
12045 \emph default
12046  is the length value.
12047  All lengths should be specified in units of length such as inches (
12048 \family typewriter
12049 in
12050 \family default
12051 ), millimeters (
12052 \family typewriter
12053 mm
12054 \family default
12055 ) or points (
12056 \family typewriter
12057 pt
12058 \family default
12059 ) or relative to some document or font-based length such as 
12060 \family typewriter
12061
12062 \backslash
12063 textwidth
12064 \family default
12065 .
12066  
12067 \end_layout
12068
12069 \begin_layout Standard
12070 It's possible to change the spacing between a foilhead and the body of the
12071  foil by adjusting the length specified by 
12072 \family typewriter
12073
12074 \backslash
12075 foilheadskip
12076 \family default
12077 .
12078  For example, to make 
12079 \emph on
12080 all
12081 \emph default
12082  foilheads 0.5
12083 \begin_inset space \space{}
12084 \end_inset
12085
12086 in closer to their bodies put the following in the preamble: 
12087 \family typewriter
12088
12089 \backslash
12090 setlength{
12091 \backslash
12092 foilheadskip}{-0.5in}
12093 \end_layout
12094
12095 \begin_layout Standard
12096 The spacings around floats can be adjusted by setting these lengths:
12097 \end_layout
12098
12099 \begin_layout Labeling
12100 \labelwidthstring MMMMMMMMMMM
12101
12102 \family typewriter
12103
12104 \backslash
12105 abovefloatskip
12106 \family default
12107  Separation between the text and the top of the float
12108 \end_layout
12109
12110 \begin_layout Labeling
12111 \labelwidthstring MMMMMMMMMMM
12112
12113 \family typewriter
12114
12115 \backslash
12116 abovecaptionskip
12117 \family default
12118  Separation between the float and the caption
12119 \end_layout
12120
12121 \begin_layout Labeling
12122 \labelwidthstring MMMMMMMMMMM
12123
12124 \family typewriter
12125
12126 \backslash
12127 belowcaptionskip
12128 \family default
12129  Separation between the caption and the following text
12130 \end_layout
12131
12132 \begin_layout Labeling
12133 \labelwidthstring MMMMMMMMMMM
12134
12135 \family typewriter
12136
12137 \backslash
12138 captionwidth
12139 \family default
12140  You can make the captions narrower than the surrounding text by adjusting
12141  this length.
12142  Best done relative to 
12143 \family typewriter
12144
12145 \backslash
12146 textwidth
12147 \family default
12148 .
12149 \end_layout
12150
12151 \begin_layout Standard
12152 There are also several title page related lengths that you may find useful
12153  if you have a long title or several authors:
12154 \end_layout
12155
12156 \begin_layout Labeling
12157 \labelwidthstring MMMMMMMMMMM
12158
12159 \family typewriter
12160
12161 \backslash
12162 abovetitleskip
12163 \family default
12164  Separation from headers to 
12165 \family sans
12166 Title
12167 \end_layout
12168
12169 \begin_layout Labeling
12170 \labelwidthstring MMMMMMMMMMM
12171
12172 \family typewriter
12173
12174 \backslash
12175 titleauthorskip
12176 \family default
12177  between 
12178 \family sans
12179 Title
12180 \family default
12181  and 
12182 \family sans
12183 Author
12184 \family default
12185  environments
12186 \end_layout
12187
12188 \begin_layout Labeling
12189 \labelwidthstring MMMMMMMMMMM
12190
12191 \family typewriter
12192
12193 \backslash
12194 authorauthorskip
12195 \family default
12196  between multiple 
12197 \family sans
12198 Author
12199 \family default
12200  lines
12201 \end_layout
12202
12203 \begin_layout Labeling
12204 \labelwidthstring MMMMMMMMMMM
12205
12206 \family typewriter
12207
12208 \backslash
12209 authordateskip
12210 \family default
12211  between the 
12212 \family sans
12213 Author
12214 \family default
12215  and the 
12216 \family sans
12217 Date
12218 \end_layout
12219
12220 \begin_layout Labeling
12221 \labelwidthstring MMMMMMMMMMM
12222
12223 \family typewriter
12224
12225 \backslash
12226 dateabstractskip
12227 \family default
12228  between the 
12229 \family sans
12230 Date
12231 \family default
12232  and the 
12233 \family sans
12234 Abstract
12235 \end_layout
12236
12237 \begin_layout Standard
12238 The last length related command affects all the list environments.
12239  If you place 
12240 \family typewriter
12241
12242 \backslash
12243 zerolistvertdimens
12244 \family default
12245  
12246 \emph on
12247 inside
12248 \emph default
12249  a list environment then all the vertical spacing between the list items
12250  is removed.
12251  Note that this is a command not a length so it doesn't require 
12252 \family typewriter
12253
12254 \backslash
12255 setlength
12256 \family default
12257  like the stuff mentioned above.
12258 \end_layout
12259
12260 \begin_layout Subsubsection
12261 Headers and Footers
12262 \end_layout
12263
12264 \begin_layout Standard
12265 The 
12266 \family typewriter
12267
12268 \backslash
12269 LogoOn
12270 \family default
12271  and 
12272 \family typewriter
12273
12274 \backslash
12275 LogoOff
12276 \family default
12277  commands control whether the logo in the 
12278 \family sans
12279 MyLogo
12280 \family default
12281  definition appear on a given page.
12282  If you put 
12283 \family typewriter
12284
12285 \backslash
12286 LogoOff
12287 \family default
12288  in the preamble then none of the foils will have the logo on them.
12289  If you don't want the logo on a particular page place the 
12290 \family typewriter
12291
12292 \backslash
12293 LogoOff
12294 \family default
12295  directly after the foilhead of that page and the 
12296 \family typewriter
12297
12298 \backslash
12299 LogoOn
12300 \family default
12301  directly after the next foilhead.
12302 \end_layout
12303
12304 \begin_layout Standard
12305 If you decide to use the 
12306 \family sans
12307 fancy
12308 \family default
12309  page style setting in the 
12310 \family sans
12311 Document
12312 \begin_inset space ~
12313 \end_inset
12314
12315 Layout
12316 \family default
12317  dialog you should probably add 
12318 \family typewriter
12319
12320 \backslash
12321 let
12322 \backslash
12323 headwidth
12324 \backslash
12325 textwidth
12326 \family default
12327  to your preamble so headers and footers on landscape pages are correctly
12328  placed when rotated.
12329  This is due to some clashes between the page layouts provided by the 
12330 \family sans
12331 fancyheadings
12332 \family default
12333  package and the 
12334 \family sans
12335 foils
12336 \family default
12337  class.
12338 \end_layout
12339
12340 \begin_layout Section
12341 Hollywood (Hollywood spec scripts)
12342 \end_layout
12343
12344 \begin_layout Standard
12345 by 
12346 \shape smallcaps
12347 Garst Reese
12348 \end_layout
12349
12350 \begin_layout Subsection
12351 Introduction
12352 \end_layout
12353
12354 \begin_layout Standard
12355 Getting the format of a Hollywood script right is a 
12356 \begin_inset Quotes eld
12357 \end_inset
12358
12359 rite of passage.
12360 \begin_inset Quotes erd
12361 \end_inset
12362
12363  It is designed to make the readers focus on content and to be easy and
12364  familiar for the actors to read.
12365  Each page of a script should be one minute of film.
12366  Nothing goes in a script that you cannot see or hear on screen.
12367  The courier 12 pt font should be used throughout.
12368  No italics.
12369 \end_layout
12370
12371 \begin_layout Subsection
12372 Special problems
12373 \end_layout
12374
12375 \begin_layout Standard
12376 Speakers' lines should NEVER break in mid-sentence.
12377  If a speaker's lines continue over a page break, repeat the 
12378 \family sans
12379 Speaker
12380 \family default
12381  title followed by (Cont'd).
12382 \end_layout
12383
12384 \begin_layout Subsection
12385 Special features
12386 \end_layout
12387
12388 \begin_layout Standard
12389 Insert the 
12390 \family sans
12391 Speaker
12392 \family default
12393  names as labels then cross-reference the label to insert the name.
12394  The cross-reference dialog will show the current cast of characters.
12395  You can use this to insert the speaker name in narratives also.
12396 \end_layout
12397
12398 \begin_layout Subsection
12399 Paper size and Margins
12400 \end_layout
12401
12402 \begin_layout Standard
12403 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12404 \end_layout
12405
12406 \begin_layout Subsection
12407 Environments
12408 \end_layout
12409
12410 \begin_layout Standard
12411 The following environments are available.
12412  You can use hollywood.bind to get the bind keys shown at the right.
12413 \end_layout
12414
12415 \begin_layout Itemize
12416
12417 \family sans
12418 Standard
12419 \begin_inset Newline newline
12420 \end_inset
12421
12422
12423 \family default
12424 Used where nothing else works.
12425  Try to avoid it.
12426 \end_layout
12427
12428 \begin_layout Itemize
12429
12430 \family sans
12431 FADE_IN
12432 \family default
12433 :
12434 \begin_inset space \hfill{}
12435 \end_inset
12436
12437
12438 \family sans
12439 M-z S-I
12440 \family default
12441
12442 \begin_inset Newline newline
12443 \end_inset
12444
12445 Usually followed by something like 
12446 \begin_inset Quotes eld
12447 \end_inset
12448
12449 on Sally waking up.
12450 \begin_inset Quotes erd
12451 \end_inset
12452
12453
12454 \end_layout
12455
12456 \begin_layout Itemize
12457
12458 \family sans
12459 INT:
12460 \begin_inset space \hfill{}
12461 \end_inset
12462
12463 M-z i
12464 \begin_inset Newline newline
12465 \end_inset
12466
12467
12468 \family default
12469 Introduces a new INTERIOR camera set-up.
12470  Always followed by DAY or NIGHT, or something similar to define the lighting
12471  required.
12472  Everthing on this line in CAPS.
12473 \end_layout
12474
12475 \begin_layout Itemize
12476
12477 \family sans
12478 EXT:
12479 \begin_inset space \hfill{}
12480 \end_inset
12481
12482 M-z e
12483 \begin_inset Newline newline
12484 \end_inset
12485
12486
12487 \family default
12488 Introduces a new EXTERIOR camera set-up.
12489  Everthing on this line in CAPS.
12490 \end_layout
12491
12492 \begin_layout Itemize
12493
12494 \family sans
12495 Speaker
12496 \begin_inset space \hfill{}
12497 \end_inset
12498
12499 M-z s
12500 \begin_inset Newline newline
12501 \end_inset
12502
12503
12504 \family default
12505 The character speaking.
12506 \end_layout
12507
12508 \begin_layout Itemize
12509
12510 \family sans
12511 Parenthetical
12512 \begin_inset space \hfill{}
12513 \end_inset
12514
12515 M-z p
12516 \begin_inset Newline newline
12517 \end_inset
12518
12519
12520 \family default
12521 Instructions to the speaker.
12522  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12523 .
12524  Both will be printed.
12525 \end_layout
12526
12527 \begin_layout Itemize
12528
12529 \family sans
12530 Dialogue
12531 \begin_inset space \hfill{}
12532 \end_inset
12533
12534 M-z d
12535 \begin_inset Newline newline
12536 \end_inset
12537
12538
12539 \family default
12540 What the 
12541 \family sans
12542 Speaker
12543 \family default
12544  says.
12545 \end_layout
12546
12547 \begin_layout Itemize
12548
12549 \family sans
12550 Transition
12551 \begin_inset space \hfill{}
12552 \end_inset
12553
12554 M-z t
12555 \begin_inset Newline newline
12556 \end_inset
12557
12558
12559 \family default
12560 Camera movement instruction.
12561  e.
12562 \begin_inset space \thinspace{}
12563 \end_inset
12564
12565 g.
12566 \begin_inset space \space{}
12567 \end_inset
12568
12569 CUT TO:
12570 \end_layout
12571
12572 \begin_layout Itemize
12573
12574 \family sans
12575 FADE OUT:
12576 \begin_inset space \hfill{}
12577 \end_inset
12578
12579 M-z S-I
12580 \end_layout
12581
12582 \begin_layout Itemize
12583
12584 \family sans
12585 Author
12586 \begin_inset space \hfill{}
12587 \end_inset
12588
12589 M-z S-A
12590 \end_layout
12591
12592 \begin_layout Itemize
12593
12594 \family sans
12595 Title
12596 \begin_inset space \hfill{}
12597 \end_inset
12598
12599 M-z S-T
12600 \end_layout
12601
12602 \begin_layout Itemize
12603
12604 \family sans
12605 Right_Address
12606 \begin_inset space \hfill{}
12607 \end_inset
12608
12609 M-z r
12610 \end_layout
12611
12612 \begin_layout Subsection
12613 Script jargon
12614 \end_layout
12615
12616 \begin_layout Itemize
12617 (O.S) — off screen
12618 \end_layout
12619
12620 \begin_layout Itemize
12621 (V.0) — voice over
12622 \end_layout
12623
12624 \begin_layout Itemize
12625 b.
12626 \begin_inset space \thinspace{}
12627 \end_inset
12628
12629 g.
12630  — background
12631 \end_layout
12632
12633 \begin_layout Itemize
12634 C.U.
12635  — close-up
12636 \end_layout
12637
12638 \begin_layout Itemize
12639 PAN — camera movement
12640 \end_layout
12641
12642 \begin_layout Itemize
12643 INSERT — cut to close-up of
12644 \end_layout
12645
12646 \begin_layout Section
12647 ijmpc and ijmpd
12648 \end_layout
12649
12650 \begin_layout Standard
12651 by 
12652 \noun on
12653 Panayotis Papasotiriou
12654 \end_layout
12655
12656 \begin_layout Subsection
12657 Overview
12658 \end_layout
12659
12660 \begin_layout Standard
12661 The ijmpc package is a set of macros that facilitates electronic manuscript
12662  submission to the 
12663 \emph on
12664 International Journal of Modern Physics C
12665 \emph default
12666 .
12667  Similarly, the ijmpd package is for creating manuscripts to be submitted
12668  to the 
12669 \emph on
12670 International Journal of Modern Physics D
12671 \emph default
12672 .
12673  Both journals are published by World Scientific.
12674  The corresponding document classes are named 
12675 \family typewriter
12676 ws-ijmpc.cls
12677 \family default
12678  and 
12679 \family typewriter
12680 ws-ijmpd.cls
12681 \family default
12682 , respectively.
12683  These files, together with instructions for the authors, can be downloaded
12684  from the sites 
12685 \begin_inset Flex URL
12686 status collapsed
12687
12688 \begin_layout Plain Layout
12689
12690 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12691 \end_layout
12692
12693 \end_inset
12694
12695  and 
12696 \begin_inset Flex URL
12697 status collapsed
12698
12699 \begin_layout Plain Layout
12700
12701 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12702 \end_layout
12703
12704 \end_inset
12705
12706 .
12707  Both packages are modified versions of the standard 
12708 \begin_inset Quotes eld
12709 \end_inset
12710
12711 article
12712 \begin_inset Quotes erd
12713 \end_inset
12714
12715  package, and they are almost (but not exactly) identical.
12716  Most of their features are supported by \SpecialChar LyX
12717 .
12718  I have used \SpecialChar LyX
12719  successfully to write articles submitted to both journals
12720  without any problem.
12721 \end_layout
12722
12723 \begin_layout Subsection
12724 Writing a paper
12725 \end_layout
12726
12727 \begin_layout Standard
12728 As usual, the easiest way to write a paper is to start with a template.
12729  Click on 
12730 \family sans
12731 File\SpecialChar menuseparator
12732 New from
12733 \family default
12734  
12735 \family sans
12736 \bar under
12737 T
12738 \bar default
12739 emplate
12740 \family default
12741 , then choose the 
12742 \family typewriter
12743 ijmpc.lyx
12744 \family default
12745  or 
12746 \family typewriter
12747 ijmpd.lyx
12748 \family default
12749  template.
12750  This will give an (almost) empty document that includes the most common
12751  fields found in a manuscript.
12752  Simply overwrite the existing text (including the brackets, 
12753 \family typewriter
12754 <>
12755 \family default
12756 ) with your text.
12757  You should keep in mind the following remarks.
12758 \end_layout
12759
12760 \begin_layout Enumerate
12761 \SpecialChar LyX
12762  won't let you change the font size and the page style of the document,
12763  because such modifications are not allowed by both packages.
12764 \end_layout
12765
12766 \begin_layout Enumerate
12767 The language of the document should not be changed.
12768  Before previewing your paper, be sure that the babel package is not used.
12769  To do this, click on 
12770 \family sans
12771 Tools\SpecialChar menuseparator
12772 Preferences
12773 \family default
12774 , select the 
12775 \family sans
12776 Lang Opts
12777 \family default
12778  tab, deselect the 
12779 \family sans
12780 Use babel
12781 \family default
12782  checkbox in the language settings, and click on 
12783 \family sans
12784 Apply
12785 \family default
12786  (or 
12787 \family sans
12788 Save
12789 \family default
12790 , if you wish to make this change permanent).
12791 \end_layout
12792
12793 \begin_layout Enumerate
12794 The 
12795 \begin_inset Quotes eld
12796 \end_inset
12797
12798 Keywords
12799 \begin_inset Quotes erd
12800 \end_inset
12801
12802  style must be used to define keywords.
12803 \end_layout
12804
12805 \begin_layout Enumerate
12806 The ijmpc package provides a style named 
12807 \begin_inset Quotes eld
12808 \end_inset
12809
12810 Classification Codes
12811 \begin_inset Quotes erd
12812 \end_inset
12813
12814 , which can be used to define classification codes, such as PACS numbers.
12815  Note that this facility is not supported by the ijmpd package.
12816 \end_layout
12817
12818 \begin_layout Enumerate
12819 Several new environments are available: 
12820 \begin_inset Quotes eld
12821 \end_inset
12822
12823 Definition
12824 \begin_inset Quotes erd
12825 \end_inset
12826
12827
12828 \begin_inset Quotes eld
12829 \end_inset
12830
12831 Step
12832 \begin_inset Quotes erd
12833 \end_inset
12834
12835
12836 \begin_inset Quotes eld
12837 \end_inset
12838
12839 Example
12840 \begin_inset Quotes erd
12841 \end_inset
12842
12843
12844 \begin_inset Quotes eld
12845 \end_inset
12846
12847 Remark
12848 \begin_inset Quotes erd
12849 \end_inset
12850
12851
12852 \begin_inset Quotes eld
12853 \end_inset
12854
12855 Notation
12856 \begin_inset Quotes erd
12857 \end_inset
12858
12859
12860 \begin_inset Quotes eld
12861 \end_inset
12862
12863 Theorem
12864 \begin_inset Quotes erd
12865 \end_inset
12866
12867
12868 \begin_inset Quotes eld
12869 \end_inset
12870
12871 Proof
12872 \begin_inset Quotes erd
12873 \end_inset
12874
12875
12876 \begin_inset Quotes eld
12877 \end_inset
12878
12879 Corollary
12880 \begin_inset Quotes erd
12881 \end_inset
12882
12883
12884 \begin_inset Quotes eld
12885 \end_inset
12886
12887 Lemma
12888 \begin_inset Quotes erd
12889 \end_inset
12890
12891
12892 \begin_inset Quotes eld
12893 \end_inset
12894
12895 Proposition
12896 \begin_inset Quotes erd
12897 \end_inset
12898
12899
12900 \begin_inset Quotes eld
12901 \end_inset
12902
12903 Prop
12904 \begin_inset Quotes erd
12905 \end_inset
12906
12907
12908 \begin_inset Quotes eld
12909 \end_inset
12910
12911 Question
12912 \begin_inset Quotes erd
12913 \end_inset
12914
12915
12916 \begin_inset Quotes eld
12917 \end_inset
12918
12919 Claim
12920 \begin_inset Quotes erd
12921 \end_inset
12922
12923 , and 
12924 \begin_inset Quotes eld
12925 \end_inset
12926
12927 Conjecture
12928 \begin_inset Quotes erd
12929 \end_inset
12930
12931 .
12932  Their use is more or less obvious.
12933  \SpecialChar LyX
12934  supports all these environments; it will use the proper label, text style,
12935  and numbering scheme for each of them.
12936 \end_layout
12937
12938 \begin_layout Enumerate
12939 Both packages use basic citations; the natbib package should not be used.
12940  In \SpecialChar LyX
12941 , citation references are shown as usual; in the output, citations are
12942  shown as superscripts.
12943  If you want to use a citation as normal text, you should use the 
12944 \family typewriter
12945 refcite
12946 \family default
12947  command, e.
12948 \begin_inset space \thinspace{}
12949 \end_inset
12950
12951 g.
12952 \begin_inset space \space{}
12953 \end_inset
12954
12955
12956 \begin_inset Quotes eld
12957 \end_inset
12958
12959 See Ref.
12960 \begin_inset space \space{}
12961 \end_inset
12962
12963
12964 \family typewriter
12965
12966 \backslash
12967 refcite{key}
12968 \family default
12969
12970 \begin_inset Quotes erd
12971 \end_inset
12972
12973 .
12974 \end_layout
12975
12976 \begin_layout Enumerate
12977 There is no 
12978 \begin_inset Quotes eld
12979 \end_inset
12980
12981 Acknowledgments
12982 \begin_inset Quotes erd
12983 \end_inset
12984
12985  section in both packages.
12986  To put acknowledgments, just use the 
12987 \begin_inset Quotes eld
12988 \end_inset
12989
12990 Section*
12991 \begin_inset Quotes erd
12992 \end_inset
12993
12994  environment.
12995 \end_layout
12996
12997 \begin_layout Enumerate
12998 Appendices may be added to the paper, 
12999 \emph on
13000 after
13001 \emph default
13002  the Acknowledgments and 
13003 \shape italic
13004 before
13005 \shape default
13006  the References.
13007  \SpecialChar LyX
13008  provides a special environment, called 
13009 \begin_inset Quotes eld
13010 \end_inset
13011
13012 Appendices Section
13013 \begin_inset Quotes erd
13014 \end_inset
13015
13016  which marks the beginning of the appendices.
13017  This environment should be left blank; it just sends a \SpecialChar LaTeX
13018  command, but nothing
13019  is really printed.
13020  In \SpecialChar LyX
13021 , the word 
13022 \begin_inset Quotes eld
13023 \end_inset
13024
13025 Appendix
13026 \begin_inset Quotes erd
13027 \end_inset
13028
13029  is printed with blue letters, as a signal that all sections after that
13030  point are appendices.
13031  To write an appendix, use the 
13032 \begin_inset Quotes eld
13033 \end_inset
13034
13035 Appendix
13036 \begin_inset Quotes erd
13037 \end_inset
13038
13039  environment.
13040  \SpecialChar LyX
13041  will number each appendix with capital letters, as required by both journals.
13042  Note that 
13043 \begin_inset Quotes eld
13044 \end_inset
13045
13046 Appendices Section
13047 \begin_inset Quotes erd
13048 \end_inset
13049
13050  
13051 \emph on
13052 must
13053 \emph default
13054  be present before the first appendix; if not, all appendices will be numbered
13055  as normal sections in the output.
13056 \end_layout
13057
13058 \begin_layout Enumerate
13059 The ijmpc and the ijmpd packages use the 
13060 \family typewriter
13061 tbl
13062 \family default
13063  command to implement table captions.
13064  As a result, a table created by \SpecialChar LyX
13065  is printed correctly, but its caption
13066  is ignored.
13067  However, you can use some \SpecialChar TeX
13068  code to overcome this problem, so that captions
13069  are printed as expected.
13070  To do so, create a float table as usual, remove the caption, and replace
13071  it with the \SpecialChar TeX
13072  code 
13073 \family typewriter
13074
13075 \backslash
13076 tbl{
13077 \emph on
13078 your table caption
13079 \emph default
13080 }{
13081 \family default
13082  (sic); you must also the \SpecialChar TeX
13083  code 
13084 \family typewriter
13085 }
13086 \family default
13087  immediately after the tabular material.
13088  Study the example table included in the template files to see how this
13089  trick is implemented.
13090  Alternatively, If you need table captions, you should implement the whole
13091  table float in a 
13092 \family typewriter
13093 .tex
13094 \family default
13095  file, then include this file to the \SpecialChar LyX
13096  document (
13097 \family sans
13098 Insert\SpecialChar menuseparator
13099 File\SpecialChar menuseparator
13100 Child
13101 \begin_inset space ~
13102 \end_inset
13103
13104 Document
13105 \family default
13106 ).
13107  Details on how to create a table float can be found in the files 
13108 \family typewriter
13109 ws-ijmpc.tex
13110 \family default
13111  and 
13112 \family typewriter
13113 ws-ijmpd.tex
13114 \family default
13115 , included in the corresponding packages.
13116 \end_layout
13117
13118 \begin_layout Subsection
13119 Preparing a paper for submission
13120 \end_layout
13121
13122 \begin_layout Standard
13123 Before you submit your paper you must export the \SpecialChar LyX
13124  document as a \SpecialChar LaTeX
13125  file (
13126 \family sans
13127 File\SpecialChar menuseparator
13128 Export\SpecialChar menuseparator
13129 \SpecialChar LaTeX
13130
13131 \family default
13132 )
13133 \begin_inset Foot
13134 status open
13135
13136 \begin_layout Plain Layout
13137 Actually you have the choice between \SpecialChar LaTeX
13138  (plain) and pdflatex.
13139  If you intend to use pdflatex to prepare the paper, you should use the
13140  pdflatex option so that included graphics are converted to PDF format,
13141  ready for use by pdflatex.
13142 \end_layout
13143
13144 \end_inset
13145
13146 , then make the following changes to the resulting 
13147 \family typewriter
13148 .tex
13149 \family default
13150  file.
13151 \end_layout
13152
13153 \begin_layout Enumerate
13154 Remove the comment lines before the 
13155 \family typewriter
13156
13157 \backslash
13158 documentclass
13159 \family default
13160  command.
13161 \end_layout
13162
13163 \begin_layout Enumerate
13164 Remove everything between (and including) the 
13165 \family typewriter
13166
13167 \backslash
13168 makeatletter
13169 \family default
13170  and 
13171 \family typewriter
13172
13173 \backslash
13174 makeatother
13175 \family default
13176  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13177  preamble.
13178 \end_layout
13179
13180 \begin_layout Standard
13181 The modified 
13182 \family typewriter
13183 .tex
13184 \family default
13185  file should be saved and processed through \SpecialChar LaTeX
13186  as many times as necessary.
13187  You may also want to check the resulting 
13188 \family typewriter
13189 .dvi
13190 \family default
13191  document.
13192 \end_layout
13193
13194 \begin_layout Subsection
13195 Use of \SpecialChar TeX
13196  code
13197 \end_layout
13198
13199 \begin_layout Standard
13200 The use of \SpecialChar TeX
13201  code is reduced to two commands, which must be placed at the
13202  top of the document.
13203  If you started writing your paper by using the 
13204 \family typewriter
13205 ijmpc.lyx
13206 \family default
13207  or the 
13208 \family typewriter
13209 ijmpd.lyx
13210 \family default
13211  template, the \SpecialChar TeX
13212  code needed is already in its place; you usually don't need
13213  to delete it.
13214  You may only modify the first \SpecialChar TeX
13215  code to specify the information printed
13216  to the top of odd and even pages (authors' names and short paper's title,
13217  respectively).
13218  This \SpecialChar TeX
13219  code must have the form 
13220 \family typewriter
13221
13222 \backslash
13223 markboth{Authors' Names}{Short Paper's Title}
13224 \family default
13225 .
13226 \end_layout
13227
13228 \begin_layout Section
13229 iopart
13230 \end_layout
13231
13232 \begin_layout Standard
13233 by 
13234 \noun on
13235 Uwe Stöhr
13236 \end_layout
13237
13238 \begin_layout Subsection
13239 Overview
13240 \end_layout
13241
13242 \begin_layout Standard
13243 The iopart package provides a document class to create electronic manuscript
13244  submission to the journals published by the Institute of Physics.
13245  Instructions for the authors how to create a paper using the iopart class
13246  can be downloaded together with the iopart package from the site 
13247 \begin_inset Flex URL
13248 status collapsed
13249
13250 \begin_layout Plain Layout
13251
13252 ftp://ftp.iop.org/pub/journals/latex2e
13253 \end_layout
13254
13255 \end_inset
13256
13257 .
13258 \end_layout
13259
13260 \begin_layout Subsection
13261 Writing a paper
13262 \end_layout
13263
13264 \begin_layout Standard
13265 The easiest way to write a paper is to start with the file 
13266 \emph on
13267 IOP-article.lyx
13268 \emph default
13269  that is available in \SpecialChar LyX
13270 's examples files folder.
13271  Open this file, save it under a new name, and start writing.
13272  The example file explains how to use the special text environments.
13273  Here are the most important advices:
13274 \end_layout
13275
13276 \begin_layout Itemize
13277 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13278  two options 
13279 \family sans
13280 Use AMS math package
13281 \family default
13282  in the document settings under 
13283 \family sans
13284 Math Options
13285 \family default
13286  are not used!
13287 \end_layout
13288
13289 \begin_layout Itemize
13290
13291 \size normal
13292 The title environment defines the kind of your paper.
13293  So use one of the following environments for the title:
13294 \size default
13295
13296 \begin_inset Separator parbreak
13297 \end_inset
13298
13299
13300 \end_layout
13301
13302 \begin_deeper
13303 \begin_layout Itemize
13304
13305 \family sans
13306 \size normal
13307 Title
13308 \family default
13309  for a Paper
13310 \end_layout
13311
13312 \begin_layout Itemize
13313
13314 \family sans
13315 \size normal
13316 Review
13317 \family default
13318  for a Review
13319 \end_layout
13320
13321 \begin_layout Itemize
13322
13323 \family sans
13324 \size normal
13325 Topical
13326 \family default
13327  for a Topical review
13328 \end_layout
13329
13330 \begin_layout Itemize
13331
13332 \family sans
13333 \size normal
13334 Comment
13335 \family default
13336  for a Comment
13337 \end_layout
13338
13339 \begin_layout Itemize
13340
13341 \family sans
13342 \size normal
13343 Note
13344 \family default
13345  for a Note
13346 \end_layout
13347
13348 \begin_layout Itemize
13349
13350 \family sans
13351 \size normal
13352 Paper
13353 \family default
13354  for a Paper (same as Title)
13355 \end_layout
13356
13357 \begin_layout Itemize
13358
13359 \family sans
13360 \size normal
13361 Prelim
13362 \family default
13363  for a Preliminary communication
13364 \end_layout
13365
13366 \begin_layout Itemize
13367
13368 \family sans
13369 \size normal
13370 Rapid
13371 \family default
13372  for a Rapid communication
13373 \end_layout
13374
13375 \begin_layout Itemize
13376
13377 \family sans
13378 \size normal
13379 Letter
13380 \family default
13381  for a Letter to the editor
13382 \end_layout
13383
13384 \end_deeper
13385 \begin_layout Itemize
13386
13387 \size normal
13388 All title environments except of 
13389 \family sans
13390 Letter
13391 \family default
13392  can have an optional short title.
13393 \end_layout
13394
13395 \begin_layout Itemize
13396 There is a general title environment 
13397 \family sans
13398 Article
13399 \family default
13400  which is not directly supported by the \SpecialChar LyX
13401 .
13402  This can be used as \SpecialChar TeX
13403  code when your document doesn't fit into one of the
13404  other title types.
13405 \end_layout
13406
13407 \begin_layout Standard
13408 For more informations like hints for special table and formula formatting,
13409  look at the IOP author guidelines.
13410 \end_layout
13411
13412 \begin_layout Section
13413 Kluwer
13414 \end_layout
13415
13416 \begin_layout Standard
13417 by 
13418 \noun on
13419 Panayotis Papasotiriou
13420 \end_layout
13421
13422 \begin_layout Subsection
13423 Overview
13424 \end_layout
13425
13426 \begin_layout Standard
13427 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13428  that facilitates electronic manuscript submission to the journals they
13429  publish.
13430  Most known of them (at least in my domain of interest) are 
13431 \emph on
13432 Astrophysics and Space Science
13433 \emph default
13434  and 
13435 \emph on
13436 Solar Physics
13437 \emph default
13438 , but there are many others (see a complete list at 
13439 \begin_inset Flex URL
13440 status open
13441
13442 \begin_layout Plain Layout
13443
13444 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13445 \end_layout
13446
13447 \end_inset
13448
13449 ).
13450  The Kluwer package may be downloaded from the site 
13451 \begin_inset Flex URL
13452 status collapsed
13453
13454 \begin_layout Plain Layout
13455
13456 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13457 \end_layout
13458
13459 \end_inset
13460
13461 .
13462  A complete user guide is contained in that package (but it can also be
13463  downloaded separately).
13464 \end_layout
13465
13466 \begin_layout Standard
13467 \SpecialChar LyX
13468  supports many features of the package but not everything.
13469  However, the \SpecialChar TeX
13470  code needed is reduced to some 
13471 \begin_inset Quotes eld
13472 \end_inset
13473
13474 peculiar
13475 \begin_inset Quotes erd
13476 \end_inset
13477
13478  commands of the package (see
13479 \begin_inset space ~
13480 \end_inset
13481
13482
13483 \begin_inset CommandInset ref
13484 LatexCommand ref
13485 reference "subsec:kluwer_peculiarities"
13486
13487 \end_inset
13488
13489 ).
13490  I have recently used \SpecialChar LyX
13491  to write an article submitted to the 
13492 \emph on
13493 Astrophysics and Space Science
13494 \emph default
13495  without any problem.
13496 \end_layout
13497
13498 \begin_layout Subsection
13499 Writing a paper
13500 \end_layout
13501
13502 \begin_layout Standard
13503 The easiest way to write a paper is to start with the Kluwer template file.
13504  Click on 
13505 \family sans
13506 File\SpecialChar menuseparator
13507 New from
13508 \family default
13509  
13510 \family sans
13511 Template
13512 \family default
13513 , then choose the 
13514 \family typewriter
13515 kluwer.lyx
13516 \family default
13517  template.
13518  This will give an (almost) empty document that includes the most common
13519  fields found in a manuscript and a short description of their use.
13520  As in most templates, simply overwrite the existing text (including the
13521  brackets, 
13522 \family typewriter
13523 <>
13524 \family default
13525 ) with the correct information.
13526 \end_layout
13527
13528 \begin_layout Subsection
13529 Preparing a paper for submission
13530 \end_layout
13531
13532 \begin_layout Standard
13533 As in the AAS\SpecialChar TeX
13534  package, before you submit your paper to a journal you must
13535  
13536 \begin_inset Quotes eld
13537 \end_inset
13538
13539 postprocess
13540 \begin_inset Quotes erd
13541 \end_inset
13542
13543  it as follows.
13544 \end_layout
13545
13546 \begin_layout Enumerate
13547 Export your paper as a \SpecialChar LaTeX
13548  file.
13549  To do this, click on 
13550 \family sans
13551 File\SpecialChar menuseparator
13552 Export\SpecialChar menuseparator
13553 \SpecialChar LaTeX
13554
13555 \family default
13556 .
13557  
13558 \end_layout
13559
13560 \begin_layout Enumerate
13561 Edit the resulting 
13562 \family typewriter
13563 .tex
13564 \family default
13565  file with a text editor and make the following changes
13566 \begin_inset Separator parbreak
13567 \end_inset
13568
13569
13570 \end_layout
13571
13572 \begin_deeper
13573 \begin_layout Enumerate
13574 remove the comment lines before the 
13575 \family typewriter
13576
13577 \backslash
13578 documentclass
13579 \family default
13580  command,
13581 \end_layout
13582
13583 \begin_layout Enumerate
13584 remove everything between (and including) the 
13585 \family typewriter
13586
13587 \backslash
13588 makeatletter
13589 \family default
13590  and 
13591 \family typewriter
13592
13593 \backslash
13594 makeatother
13595 \family default
13596  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13597  preamble.
13598 \end_layout
13599
13600 \begin_layout Standard
13601 Save the resulting 
13602 \family typewriter
13603 .tex
13604 \family default
13605  file.
13606 \end_layout
13607
13608 \end_deeper
13609 \begin_layout Enumerate
13610 Run the 
13611 \family typewriter
13612 .tex
13613 \family default
13614  file through \SpecialChar LaTeX
13615  as many times as necessary (usually up to three).
13616 \end_layout
13617
13618 \begin_layout Enumerate
13619 View the resulting 
13620 \family typewriter
13621 .dvi
13622 \family default
13623  document using, e.
13624 \begin_inset space \thinspace{}
13625 \end_inset
13626
13627 g.
13628 \begin_inset space \space{}
13629 \end_inset
13630
13631
13632 \family sans
13633 xdvi
13634 \family default
13635 , and check if everything is OK (it should, if you didn't make any mistake).
13636 \end_layout
13637
13638 \begin_layout Subsection
13639 \begin_inset Quotes eld
13640 \end_inset
13641
13642 Peculiarities
13643 \begin_inset Quotes erd
13644 \end_inset
13645
13646  of the Kluwer package
13647 \begin_inset CommandInset label
13648 LatexCommand label
13649 name "subsec:kluwer_peculiarities"
13650
13651 \end_inset
13652
13653
13654 \end_layout
13655
13656 \begin_layout Standard
13657 The Kluwer package has the following 
13658 \begin_inset Quotes eld
13659 \end_inset
13660
13661 peculiarities
13662 \begin_inset Quotes erd
13663 \end_inset
13664
13665 .
13666 \end_layout
13667
13668 \begin_layout Enumerate
13669 It is possible to write multiple articles in the same \SpecialChar LaTeX
13670  file
13671 \begin_inset Foot
13672 status collapsed
13673
13674 \begin_layout Plain Layout
13675 I can't imagine any good reason to do this.
13676 \end_layout
13677
13678 \end_inset
13679
13680 .
13681  Each article must be included in the environment 
13682 \begin_inset Quotes eld
13683 \end_inset
13684
13685 article
13686 \begin_inset Quotes erd
13687 \end_inset
13688
13689 .
13690  Unfortunately, this environment cannot be omitted, even if you write just
13691  one article.
13692  Therefore, each article starts with the command 
13693 \family typewriter
13694
13695 \backslash
13696 begin{article}
13697 \family default
13698  and, obviously, ends with the command 
13699 \family typewriter
13700
13701 \backslash
13702 end{article}
13703 \family default
13704 .
13705  Although this can be implemented in \SpecialChar LyX
13706 , I didn't included it, since it looks
13707  ugly and can confuse the novice user.
13708  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13709  code (the
13710  well-known 
13711 \begin_inset Quotes eld
13712 \end_inset
13713
13714 \SpecialChar TeX
13715  code
13716 \begin_inset Quotes erd
13717 \end_inset
13718
13719 ).
13720 \end_layout
13721
13722 \begin_layout Enumerate
13723 Information given at the beginning of the article (i.
13724 \begin_inset space \thinspace{}
13725 \end_inset
13726
13727 e.
13728 \begin_inset space \space{}
13729 \end_inset
13730
13731 title, subtitle, author, institution, running title, running author, abstract
13732  and keywords) must be included in an environment called 
13733 \begin_inset Quotes eld
13734 \end_inset
13735
13736 opening
13737 \begin_inset Quotes erd
13738 \end_inset
13739
13740 .
13741  This is not implemented in \SpecialChar LyX
13742 , so you must enter title, subtitle etc.
13743 \begin_inset space ~
13744 \end_inset
13745
13746 between two \SpecialChar TeX
13747  code lines (
13748 \family typewriter
13749
13750 \backslash
13751 begin{opening}
13752 \family default
13753  and 
13754 \family typewriter
13755
13756 \backslash
13757 end{opening}
13758 \family default
13759 ).
13760 \end_layout
13761
13762 \begin_layout Enumerate
13763 According to the user manual, the label of each bibliography item must be
13764  written as 
13765 \family typewriter
13766
13767 \backslash
13768 protect
13769 \backslash
13770 citeauthoryear{
13771 \family default
13772 \emph on
13773 author(s)
13774 \family typewriter
13775 \emph default
13776 }{
13777 \family default
13778 \emph on
13779 year
13780 \family typewriter
13781 \emph default
13782 }
13783 \family default
13784 .
13785 \end_layout
13786
13787 \begin_layout Standard
13788 The 
13789 \family typewriter
13790 kluwer.lyx
13791 \family default
13792  template takes care of all these 
13793 \begin_inset Quotes eld
13794 \end_inset
13795
13796 peculiarities
13797 \begin_inset Quotes erd
13798 \end_inset
13799
13800 .
13801  If you start a new paper using this template you don't need to do anything
13802  special.
13803  Just 
13804 \end_layout
13805
13806 \begin_layout Enumerate
13807 don't delete the \SpecialChar TeX
13808  code included in the template, and
13809 \end_layout
13810
13811 \begin_layout Enumerate
13812 copy the example bibliography item included in the template and modify it
13813  as necessary to enter new bibliography items.
13814 \end_layout
13815
13816 \begin_layout Section
13817 Koma-Script
13818 \end_layout
13819
13820 \begin_layout Standard
13821 by 
13822 \noun on
13823 Bernd Rellermeyer
13824 \end_layout
13825
13826 \begin_layout Subsection
13827 Overview
13828 \end_layout
13829
13830 \begin_layout Standard
13831 The \SpecialChar LyX
13832  document classes 
13833 \emph on
13834 article (koma-script)
13835 \emph default
13836
13837 \emph on
13838 report (koma-script)
13839 \emph default
13840
13841 \emph on
13842 book
13843 \emph default
13844  
13845 \emph on
13846 (koma-script)
13847 \emph default
13848 , and 
13849 \emph on
13850 letter
13851 \emph default
13852  
13853 \emph on
13854 (koma-script)
13855 \emph default
13856  correspond to the \SpecialChar LaTeX
13857  document classes 
13858 \family typewriter
13859 scrartcl.cls
13860 \family default
13861
13862 \family typewriter
13863 scrreprt.cls
13864 \family default
13865
13866 \family typewriter
13867 scrbook.cls
13868 \family default
13869 , and 
13870 \family typewriter
13871 scrlettr.cls
13872 \family default
13873 , resp.
13874 \begin_inset space ~
13875 \end_inset
13876
13877 of the Koma-Script family.
13878  They are replacements for the standard document classes 
13879 \family typewriter
13880 article.cls
13881 \family default
13882
13883 \family typewriter
13884 report.cls
13885 \family default
13886
13887 \family typewriter
13888 book.cls
13889 \family default
13890  and 
13891 \family typewriter
13892 letter.cls
13893 \family default
13894 , resp., and fit better to European typography conventions in a number of
13895  points.
13896 \end_layout
13897
13898 \begin_layout Itemize
13899 Standard character size is 11pt in 
13900 \emph on
13901 article (koma-script)
13902 \emph default
13903
13904 \emph on
13905 report (koma-script)
13906 \emph default
13907 , and 
13908 \emph on
13909 book (koma-script)
13910 \emph default
13911 , and 12pt in 
13912 \emph on
13913 letter (koma-script)
13914 \emph default
13915 .
13916 \end_layout
13917
13918 \begin_layout Itemize
13919 Headings, labels of the description environment, and a number of elements
13920  of the 
13921 \emph on
13922 letter (koma-script)
13923 \emph default
13924  document class are set in a bold sans serif font.
13925 \begin_inset Foot
13926 status collapsed
13927
13928 \begin_layout Plain Layout
13929 There is a big difference between the bold sans serif old cm fonts and new
13930  ec fonts, especially in the appearance of headings.
13931  In comparison, the ec bold sans serif fonts look a bit thin.
13932  Here the \SpecialChar LaTeX
13933  package 
13934 \family typewriter
13935 cmsd.sty by
13936 \family default
13937  
13938 \shape smallcaps
13939 Walter Schmidt
13940 \shape default
13941  helps to produce the 
13942 \begin_inset Quotes eld
13943 \end_inset
13944
13945 usual
13946 \begin_inset Quotes erd
13947 \end_inset
13948
13949  appearance when using the ec fonts.
13950 \end_layout
13951
13952 \end_inset
13953
13954  The numbering of chapter headings is made in the same way as the numbering
13955  of section headings, that is without the extra line 
13956 \begin_inset Quotes eld
13957 \end_inset
13958
13959 Chapter\SpecialChar ldots
13960
13961 \begin_inset Quotes erd
13962 \end_inset
13963
13964 .
13965  In addition, the appearance of the headings can be modified by using a
13966  number of options (in \SpecialChar LyX
13967  to be entered in the field 
13968 \family sans
13969 Extra
13970 \begin_inset space ~
13971 \end_inset
13972
13973 Options
13974 \family default
13975  of the dialog 
13976 \family sans
13977 Layout\SpecialChar menuseparator
13978 Document
13979 \family default
13980 ).
13981  
13982 \end_layout
13983
13984 \begin_layout Itemize
13985 The main means in the Koma-Script document classes to design the type area
13986  are the options 
13987 \family sans
13988 BCOR
13989 \family default
13990  and 
13991 \family sans
13992 DIV
13993 \family default
13994  (in \SpecialChar LyX
13995  to be entered in the extra class options field in the dialog 
13996 \family sans
13997 Document\SpecialChar menuseparator
13998 Settings
13999 \family default
14000 ).
14001  They make a clearer modification of page margins possible as do the options
14002  of the dialog 
14003 \family sans
14004 Document\SpecialChar menuseparator
14005 Settings
14006 \family default
14007 .
14008  
14009 \end_layout
14010
14011 \begin_layout Itemize
14012 The \SpecialChar LaTeX
14013  document classes of the Koma-Script family define a number of additional
14014  commands.
14015  Those part of it which makes sense in \SpecialChar LyX
14016  is implemented in corresponding
14017  paragraph types.
14018 \end_layout
14019
14020 \begin_layout Standard
14021 Detailed descriptions of the \SpecialChar LaTeX
14022  document classes of the Koma-Script family
14023  can be found in the Koma-Script documentation 
14024 \emph on
14025 scrguide
14026 \emph default
14027  (German) and 
14028 \emph on
14029 scrguien
14030 \emph default
14031  (English).
14032 \end_layout
14033
14034 \begin_layout Subsection
14035 article (koma-script), report (koma-script), and book (koma-script)
14036 \end_layout
14037
14038 \begin_layout Standard
14039 The document classes 
14040 \emph on
14041 article (koma-script)
14042 \emph default
14043
14044 \emph on
14045 report (koma-script)
14046 \emph default
14047 , and 
14048 \emph on
14049 book
14050 \emph default
14051  
14052 \emph on
14053 (koma-script)
14054 \emph default
14055  are implemented in the layout files 
14056 \family typewriter
14057 scrartcl.layout
14058 \family default
14059
14060 \family typewriter
14061 scrreprt.layout
14062 \family default
14063 , and 
14064 \family typewriter
14065 scrbook.layout
14066 \family default
14067 , resp.
14068  They contain all the paragraph types of the corresponding standard document
14069  classes 
14070 \emph on
14071 article
14072 \emph default
14073
14074 \emph on
14075 report
14076 \emph default
14077 , and 
14078 \emph on
14079 book
14080 \emph default
14081 , resp., partly modified, with the exception of the \SpecialChar LyX
14082  specific 
14083 \family sans
14084 List
14085 \family default
14086 -type, which is replaced by the new 
14087 \family sans
14088 Labeling
14089 \family default
14090 -type having the same functionality.
14091  Beside the 
14092 \family sans
14093 Labeling
14094 \family default
14095 -Type there is a number of new paragraph types added.
14096  They are 
14097 \emph on
14098 not
14099 \emph default
14100  part of 
14101 \emph on
14102 letter (koma-script)
14103 \emph default
14104 .
14105 \end_layout
14106
14107 \begin_layout Itemize
14108
14109 \family sans
14110 Addpart, Addchap
14111 \family default
14112
14113 \family sans
14114 Addsec
14115 \family default
14116 : are equivalents to 
14117 \family sans
14118 Part*, Chapter*
14119 \family default
14120  and 
14121 \family sans
14122 Section*
14123 \family default
14124 , resp., additionally inserting an entry in the table of contents.
14125  
14126 \family sans
14127 Addpart
14128 \family default
14129  and 
14130 \family sans
14131 Addchap
14132 \family default
14133  are not contained in 
14134 \emph on
14135 article (koma-script)
14136 \emph default
14137 .
14138 \end_layout
14139
14140 \begin_layout Itemize
14141
14142 \family sans
14143 Addchap*
14144 \family default
14145
14146 \family sans
14147 Addsec*
14148 \family default
14149 : behave exactly as 
14150 \family sans
14151 Addchap
14152 \family default
14153  and 
14154 \family sans
14155 Addsec
14156 \family default
14157 , resp., additionally clearing running heads.
14158  
14159 \family sans
14160 Addchap*
14161 \family default
14162  is not contained in 
14163 \emph on
14164 article (koma-script)
14165 \emph default
14166 .
14167 \begin_inset Foot
14168 status collapsed
14169
14170 \begin_layout Plain Layout
14171 There is also an 
14172 \family typewriter
14173
14174 \backslash
14175 addpart*
14176 \family default
14177  command in 
14178 \emph on
14179 book (koma-script)
14180 \emph default
14181  and in 
14182 \emph on
14183 report (koma-script)
14184 \emph default
14185 , but since this is identical to 
14186 \family sans
14187 Part*
14188 \family default
14189 , is has not been implemented in \SpecialChar LyX
14190 .
14191 \end_layout
14192
14193 \end_inset
14194
14195
14196 \end_layout
14197
14198 \begin_layout Itemize
14199
14200 \family sans
14201 Minisec
14202 \family default
14203 : generates a heading directly above the following paragraph in the standard
14204  character size without affecting the structure of the document.
14205 \end_layout
14206
14207 \begin_layout Itemize
14208
14209 \family sans
14210 Captionabove
14211 \family default
14212  and 
14213 \family sans
14214 Captionbelow
14215 \family default
14216  are special captions which respect the different space settings needed
14217  for captions placed above or below an element (if you follow strict typographic
14218  rules, you might want to place table captions always above the table).
14219  You can also use the class option 
14220 \family typewriter
14221 tablecaptionsabove
14222 \family default
14223 , which will switch 
14224 \family sans
14225 caption
14226 \family default
14227  to 
14228 \family sans
14229 captionabove
14230 \family default
14231  for tables and 
14232 \family sans
14233 captionbelow
14234 \family default
14235  for figures.
14236  You need at least Koma-Script version 2.8q to use this.
14237 \end_layout
14238
14239 \begin_layout Itemize
14240
14241 \family sans
14242 Dictum
14243 \family default
14244 : can be used to set a bonmot, e.
14245 \begin_inset space \thinspace{}
14246 \end_inset
14247
14248 g.
14249 \begin_inset space \space{}
14250 \end_inset
14251
14252 at the beginning of a chapter.
14253  If you use the optional argument (
14254 \family sans
14255 Insert\SpecialChar menuseparator
14256 Short
14257 \begin_inset space ~
14258 \end_inset
14259
14260 Title
14261 \family default
14262 ), you can insert the dictum's author there.
14263  Dictum and author are separated by a line.
14264  You need at least Koma-Script version 2.8q to use this.
14265  
14266 \family sans
14267 Dictum
14268 \family default
14269  is not contained in 
14270 \emph on
14271 article (koma-script)
14272 \emph default
14273 .
14274 \end_layout
14275
14276 \begin_layout Standard
14277 The following types, together with the standard types 
14278 \family sans
14279 Title
14280 \family default
14281
14282 \family sans
14283 Author
14284 \family default
14285 , and 
14286 \family sans
14287 Date
14288 \family default
14289 , form the title area of the document.
14290  They must be entered ahead of the first 
14291 \begin_inset Quotes eld
14292 \end_inset
14293
14294 ordinary
14295 \begin_inset Quotes erd
14296 \end_inset
14297
14298  paragraph.
14299 \begin_inset Foot
14300 status collapsed
14301
14302 \begin_layout Plain Layout
14303 The corresponding \SpecialChar LaTeX
14304  commands must appear before the 
14305 \family typewriter
14306
14307 \backslash
14308 maketitle
14309 \family default
14310  command.
14311 \end_layout
14312
14313 \end_inset
14314
14315  When such a type is used more than once, the latter usage overwrites the
14316  former one, that means, for every type only the latest usage is valid.
14317  The order of the different types however has, like 
14318 \family sans
14319 Title
14320 \family default
14321
14322 \family sans
14323 Author
14324 \family default
14325 , and 
14326 \family sans
14327 Date
14328 \family default
14329 , no effect on the appearance of the produced document.
14330 \end_layout
14331
14332 \begin_layout Itemize
14333
14334 \family sans
14335 Subject
14336 \family default
14337 : produces a centered paragraph above the ordinary title (
14338 \family sans
14339 Title
14340 \family default
14341
14342 \family sans
14343 Author
14344 \family default
14345
14346 \family sans
14347 Date
14348 \family default
14349 ) for the subject of the document.
14350 \end_layout
14351
14352 \begin_layout Itemize
14353
14354 \family sans
14355 Publishers
14356 \family default
14357 : produces a centered paragraph below the ordinary title (
14358 \family sans
14359 Title
14360 \family default
14361
14362 \family sans
14363 Author
14364 \family default
14365
14366 \family sans
14367 Date
14368 \family default
14369 ) for the publishers' name.
14370 \end_layout
14371
14372 \begin_layout Itemize
14373
14374 \family sans
14375 Dedication
14376 \family default
14377 : in 
14378 \emph on
14379 report (koma-script)
14380 \emph default
14381  and 
14382 \emph on
14383 book (koma-script)
14384 \emph default
14385  produces a centered paragraph on its own page behind the title page, or
14386  in 
14387 \emph on
14388 article (koma-script)
14389 \emph default
14390  produces a centered paragraph below the ordinary title (
14391 \family sans
14392 Title
14393 \family default
14394
14395 \family sans
14396 Author
14397 \family default
14398
14399 \family sans
14400 Date
14401 \family default
14402
14403 \family sans
14404 Publishers
14405 \family default
14406 ) for a dedication.
14407 \end_layout
14408
14409 \begin_layout Itemize
14410
14411 \family sans
14412 Titlehead
14413 \family default
14414 : produces a left aligned paragraph above the ordinary title (
14415 \family sans
14416 Title
14417 \family default
14418
14419 \family sans
14420 Author
14421 \family default
14422
14423 \family sans
14424 Date
14425 \family default
14426
14427 \family sans
14428 Subject
14429 \family default
14430 ) for a document`s head.
14431 \end_layout
14432
14433 \begin_layout Itemize
14434
14435 \family sans
14436 Uppertitleback
14437 \family default
14438 : produces in a double-sided print in 
14439 \emph on
14440 report (koma-script)
14441 \emph default
14442  and 
14443 \emph on
14444 book (koma-script)
14445 \emph default
14446  a left-aligned paragraph at the top of the title page`s back or has no
14447  effect in a single-sided print or in 
14448 \emph on
14449 article (koma-script)
14450 \emph default
14451 .
14452 \end_layout
14453
14454 \begin_layout Itemize
14455
14456 \family sans
14457 Lowertitleback
14458 \family default
14459 : produces in a double-sided print in 
14460 \emph on
14461 report (koma-script)
14462 \emph default
14463  and 
14464 \emph on
14465 book (koma-script)
14466 \emph default
14467  a left-aligned paragraph at the bottom of the title page`s back or has
14468  no effect in a single-sided print or in 
14469 \emph on
14470 article (koma-script)
14471 \emph default
14472 .
14473 \end_layout
14474
14475 \begin_layout Itemize
14476
14477 \family sans
14478 Extratitle
14479 \family default
14480 : produces a special 
14481 \begin_inset Quotes eld
14482 \end_inset
14483
14484 dirty
14485 \begin_inset Quotes erd
14486 \end_inset
14487
14488  page ahead of the actual document containing a paragraph without special
14489  formatting.
14490 \end_layout
14491
14492 \begin_layout Standard
14493 The layout files for the document classes 
14494 \emph on
14495 article (koma-script)
14496 \emph default
14497
14498 \emph on
14499 report (koma-script)
14500 \emph default
14501 , and 
14502 \emph on
14503 book (koma-script)
14504 \emph default
14505  do include the file 
14506 \family typewriter
14507 scrmacros.inc
14508 \family default
14509 .
14510  This is thought of as a place to define your own types.
14511  Copy scrmacros
14512 \family typewriter
14513 .inc
14514 \family default
14515  in your personal layout directory and edit the file!
14516 \end_layout
14517
14518 \begin_layout Subsection
14519 letter (koma-script)
14520 \end_layout
14521
14522 \begin_layout Standard
14523 \noindent
14524 The document class 
14525 \emph on
14526 letter (koma-script)
14527 \emph default
14528  is implemented in the layout file 
14529 \family typewriter
14530 scrlettr.layout
14531 \family default
14532 .
14533  It contains all the paragraph types of the corresponding standard document
14534  class 
14535 \emph on
14536 letter
14537 \emph default
14538 , partly modified, with the exception of the \SpecialChar LyX
14539  specific types 
14540 \family sans
14541 \SpecialChar LyX
14542 -Code
14543 \family default
14544  and 
14545 \family sans
14546 Comment
14547 \family default
14548  and the 
14549 \family sans
14550 List
14551 \family default
14552  type, which is replaced by the new 
14553 \family sans
14554 Labeling
14555 \family default
14556  type.
14557  In addition, it contains, in contrast to the standard document class, the
14558  standard types 
14559 \family sans
14560 \SpecialChar LaTeX
14561
14562 \family default
14563
14564 \family sans
14565 Quotation
14566 \family default
14567
14568 \family sans
14569 Quote
14570 \family default
14571 , and 
14572 \family sans
14573 Verse
14574 \family default
14575 .
14576  Furthermore, there are a number of new letter specific types.
14577 \end_layout
14578
14579 \begin_layout Standard
14580 The appearance of the letter produced by this document class can be controlled
14581  by a number of \SpecialChar LaTeX
14582  commands, which you can put in the \SpecialChar LaTeX
14583  preamble.
14584 \begin_inset Foot
14585 status collapsed
14586
14587 \begin_layout Plain Layout
14588 For example, the standard appearance of the letter`s heading, consisting
14589  of name and address, is quite self-willed.
14590  An 
14591 \begin_inset Quotes eld
14592 \end_inset
14593
14594 ordinary
14595 \begin_inset Quotes erd
14596 \end_inset
14597
14598  heading is produced by the following \SpecialChar LaTeX
14599  commands in the preamble:
14600 \end_layout
14601
14602 \begin_layout LyX-Code
14603
14604 \backslash
14605 firsthead{
14606 \backslash
14607 parbox[b]{
14608 \backslash
14609 textwidth}
14610 \end_layout
14611
14612 \begin_layout LyX-Code
14613   {
14614 \backslash
14615 ignorespaces 
14616 \backslash
14617 fromname
14618 \backslash
14619
14620 \backslash
14621  
14622 \backslash
14623 ignorespaces 
14624 \backslash
14625 fromaddress}} 
14626 \end_layout
14627
14628 \begin_layout LyX-Code
14629
14630 \backslash
14631 nexthead{
14632 \backslash
14633 parbox[b]{
14634 \backslash
14635 textwidth}
14636 \end_layout
14637
14638 \begin_layout LyX-Code
14639   {
14640 \backslash
14641 ignorespaces 
14642 \backslash
14643 fromname 
14644 \backslash
14645 hfill 
14646 \backslash
14647 ignorespaces 
14648 \backslash
14649 pagename
14650 \backslash
14651  
14652 \backslash
14653 thepage}}
14654 \end_layout
14655
14656 \end_inset
14657
14658  A detailed German description of such \SpecialChar LaTeX
14659  commands can be found in the Koma-Script
14660  documentation 
14661 \emph on
14662 scrguide
14663 \emph default
14664 .
14665  With it, the letter's author can produce his personal letter layout.
14666 \end_layout
14667
14668 \begin_layout Standard
14669 The types 
14670 \family sans
14671 Letter
14672 \family default
14673  and 
14674 \family sans
14675 Opening
14676 \family default
14677  define the beginning of the letter and must be used in every letter.
14678  To emphasize them in the \SpecialChar LyX
14679  document class, they are marked with the letter
14680  
14681 \shape italic
14682 L
14683 \shape default
14684  or 
14685 \shape italic
14686 O
14687 \shape default
14688 , resp.
14689 \begin_inset space ~
14690 \end_inset
14691
14692 in the left margin.
14693  It is possible to write any number of letters in one file.
14694  An 
14695 \family sans
14696 Opening
14697 \family default
14698  type produces a new letter using the same addressee and a 
14699 \family sans
14700 Letter
14701 \family default
14702  type produces a new addressee.
14703  The types 
14704 \family sans
14705 Closing
14706 \family default
14707
14708 \family sans
14709 PS
14710 \family default
14711
14712 \family sans
14713 CC
14714 \family default
14715 , and 
14716 \family sans
14717 Encl
14718 \family default
14719  are ordinary paragraph types and can also be used several times in one
14720  and the same letter.
14721 \end_layout
14722
14723 \begin_layout Itemize
14724
14725 \family sans
14726 Letter
14727 \family default
14728 : produces a paragraph for the addressee and implicitly defines the beginning
14729  of the letter.
14730 \end_layout
14731
14732 \begin_layout Itemize
14733
14734 \family sans
14735 Opening
14736 \family default
14737 : produces a paragraph for the form of address and implicitly produces a
14738  new letter.
14739 \end_layout
14740
14741 \begin_layout Itemize
14742
14743 \family sans
14744 Closing
14745 \family default
14746 : produces a paragraph for a close.
14747 \end_layout
14748
14749 \begin_layout Itemize
14750
14751 \family sans
14752 PS
14753 \family default
14754 : produces a paragraph for a postscript.
14755 \end_layout
14756
14757 \begin_layout Itemize
14758
14759 \family sans
14760 CC
14761 \family default
14762 : produces a paragraph for a distribution list.
14763 \end_layout
14764
14765 \begin_layout Itemize
14766
14767 \family sans
14768 Encl
14769 \family default
14770 : produces a paragraph for enclosures.
14771 \end_layout
14772
14773 \begin_layout Standard
14774 The types 
14775 \family sans
14776 Name
14777 \family default
14778
14779 \family sans
14780 Signature
14781 \family default
14782
14783 \family sans
14784 Address
14785 \family default
14786
14787 \family sans
14788 Telephone
14789 \family default
14790
14791 \family sans
14792 Place
14793 \family default
14794
14795 \family sans
14796 Backaddress
14797 \family default
14798
14799 \family sans
14800 Specialmail
14801 \family default
14802
14803 \family sans
14804 Location
14805 \family default
14806
14807 \family sans
14808 Title
14809 \family default
14810 , and 
14811 \family sans
14812 Subject
14813 \family default
14814  are input types provided with a label to enter information, which will
14815  be processed by the document class.
14816 \begin_inset Foot
14817 status open
14818
14819 \begin_layout Plain Layout
14820 It could be seen as a matter of inconsequence, that the types 
14821 \family sans
14822 Letter
14823 \family default
14824  and 
14825 \family sans
14826 Opening
14827 \family default
14828  described above are not such input types as well.
14829  Because of the special meaning of those types, however, I have implemented
14830  them as ordinary paragraph types with a one letter mark in the left margin.
14831  Moreover, it would affect my feeling of symmetry, if the 
14832 \family sans
14833 Opening
14834 \family default
14835  type and the 
14836 \family sans
14837 Closing
14838 \family default
14839  type had such a serious different appearance.
14840 \end_layout
14841
14842 \end_inset
14843
14844  The types must be used ahead of the corresponding 
14845 \family sans
14846 Opening
14847 \family default
14848  type.
14849 \end_layout
14850
14851 \begin_layout Standard
14852 An implementation of these types in a WYSIWYG fashion does not seem to make
14853  sense, because the real appearance of the produced letter does not only
14854  depend on the usage of the particular type, but also on other factors.
14855  For example, a signature entered in the 
14856 \family sans
14857 Signature
14858 \family default
14859  type will in the standard behavior appear in the produced letter only,
14860  when in the same letter also a 
14861 \family sans
14862 Closing
14863 \family default
14864  type is used.
14865  The entered value of the 
14866 \family sans
14867 Telephone
14868 \family default
14869  type will in the standard behavior not appear in the produced letter at
14870  all.
14871  The possibility to design the letter`s heading freely is already indicated
14872  in a footnote above.
14873 \end_layout
14874
14875 \begin_layout Standard
14876 The input types can also be used as empty paragraphs.
14877  This makes sense e.
14878 \begin_inset space \thinspace{}
14879 \end_inset
14880
14881 g.
14882 \begin_inset space \space{}
14883 \end_inset
14884
14885 for the 
14886 \family sans
14887 Signature
14888 \family default
14889  type.
14890  If the 
14891 \family sans
14892 Signature
14893 \family default
14894  type is not used at all, in the standard behavior the value of the 
14895 \family sans
14896 Name
14897 \family default
14898  type is used as signature, whereas if an empty 
14899 \family sans
14900 Signature
14901 \family default
14902  type is used, no signature value is defined.
14903 \end_layout
14904
14905 \begin_layout Standard
14906 By using the input types it is possible to write a letter template, containing
14907  filled input types with your personal dates (name, address, etc.) and empty
14908  input types for other dates you want to enter.
14909 \end_layout
14910
14911 \begin_layout Itemize
14912
14913 \family sans
14914 Name
14915 \family default
14916 : sender's name, in the standard behavior appears as a centered paragraph
14917  in small caps in the letter`s heading.
14918 \end_layout
14919
14920 \begin_layout Itemize
14921
14922 \family sans
14923 Signature
14924 \family default
14925 : sender's signature, in the standard behavior appears below the 
14926 \family sans
14927 Closing
14928 \family default
14929  type.
14930  If no 
14931 \family sans
14932 Signature
14933 \family default
14934  type is used, the value of the 
14935 \family sans
14936 Name
14937 \family default
14938  type appears instead.
14939 \end_layout
14940
14941 \begin_layout Itemize
14942
14943 \family sans
14944 Address
14945 \family default
14946 : sender's address, in the standard behavior appears in a centered paragraph
14947  in the letter`s heading below the sender's name.
14948 \end_layout
14949
14950 \begin_layout Itemize
14951
14952 \family sans
14953 Telephone
14954 \family default
14955 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
14956  variable
14957  
14958 \family typewriter
14959
14960 \backslash
14961 telephonenum
14962 \family default
14963 .
14964 \end_layout
14965
14966 \begin_layout Itemize
14967
14968 \family sans
14969 Place
14970 \family default
14971 : place of the letter`s making.
14972 \end_layout
14973
14974 \begin_layout Itemize
14975
14976 \family sans
14977 Date
14978 \family default
14979 : date of the letter`s making.
14980  
14981 \family sans
14982 Place
14983 \family default
14984  and 
14985 \family sans
14986 Date
14987 \family default
14988 , in the standard behavior, produce the place and the date in a right-aligned
14989  line below the addressee's field.
14990  If an empty 
14991 \family sans
14992 Date
14993 \family default
14994  type is used, neither place nor date appear, independent of the value of
14995  the 
14996 \family sans
14997 Place
14998 \family default
14999  type.
15000  If no 
15001 \family sans
15002 Date
15003 \family default
15004  type is used, the date of the letter `s production is used.
15005 \end_layout
15006
15007 \begin_layout Itemize
15008
15009 \family sans
15010 Backaddress
15011 \family default
15012 : sender`s back address, in the standard behavior appears above the addressee's
15013  field in a small sans serif font.
15014 \end_layout
15015
15016 \begin_layout Itemize
15017
15018 \family sans
15019 Specialmail
15020 \family default
15021 : special mail information, in the standard behavior appears underlined
15022  above the addressee's field below the back address.
15023 \end_layout
15024
15025 \begin_layout Itemize
15026
15027 \family sans
15028 Location
15029 \family default
15030 : additional information, in the standard behavior appears on right side
15031  below the addressee`s field.
15032 \end_layout
15033
15034 \begin_layout Itemize
15035
15036 \family sans
15037 Title
15038 \family default
15039 : the letter's title, in the standard behavior appears in a big, bold, sans
15040  serif font above the subject.
15041 \end_layout
15042
15043 \begin_layout Itemize
15044
15045 \family sans
15046 Subject
15047 \family default
15048 : the letter's subject, in the standard behavior appears in a bold font
15049  above the 
15050 \family sans
15051 Opening
15052 \family default
15053  paragraph.
15054 \end_layout
15055
15056 \begin_layout Standard
15057 The types 
15058 \family sans
15059 Yourref
15060 \family default
15061
15062 \family sans
15063 Yourmail
15064 \family default
15065
15066 \family sans
15067 Myref
15068 \family default
15069
15070 \family sans
15071 Customer
15072 \family default
15073 , and 
15074 \family sans
15075 Invoice
15076 \family default
15077  produce a business letter like line above the 
15078 \family sans
15079 Title
15080 \family default
15081  line containing the fields 
15082 \begin_inset Quotes eld
15083 \end_inset
15084
15085 Your ref.
15086 \begin_inset Quotes erd
15087 \end_inset
15088
15089
15090 \begin_inset Quotes eld
15091 \end_inset
15092
15093 Your letter of
15094 \begin_inset Quotes erd
15095 \end_inset
15096
15097
15098 \begin_inset Quotes eld
15099 \end_inset
15100
15101 Our ref.
15102 \begin_inset Quotes erd
15103 \end_inset
15104
15105
15106 \begin_inset Quotes eld
15107 \end_inset
15108
15109 Customer no.
15110 \begin_inset Quotes erd
15111 \end_inset
15112
15113
15114 \begin_inset Quotes eld
15115 \end_inset
15116
15117 Invoice no.
15118 \begin_inset Quotes erd
15119 \end_inset
15120
15121 , and 
15122 \begin_inset Quotes eld
15123 \end_inset
15124
15125 Date
15126 \begin_inset Quotes erd
15127 \end_inset
15128
15129 .
15130  For the date field, the value of the 
15131 \family sans
15132 Date
15133 \family default
15134  type is used.
15135  If one of these 
15136 \begin_inset Quotes eld
15137 \end_inset
15138
15139 business letter types
15140 \begin_inset Quotes erd
15141 \end_inset
15142
15143  is used, the value of the 
15144 \family sans
15145 Place
15146 \family default
15147  type however does not appear, but only the \SpecialChar LaTeX
15148  variable 
15149 \family typewriter
15150
15151 \backslash
15152 fromplace
15153 \family default
15154  is set.
15155  The ordinary output of place and date in a right-aligned line below the
15156  addressee`s field is suppressed.
15157  The types are implemented as input types provided with a label and must
15158  be used ahead of the corresponding 
15159 \family sans
15160 Opening
15161 \family default
15162  type.
15163 \end_layout
15164
15165 \begin_layout Itemize
15166
15167 \family sans
15168 Yourref
15169 \family default
15170 : Your ref.
15171 \end_layout
15172
15173 \begin_layout Itemize
15174
15175 \family sans
15176 Yourmail
15177 \family default
15178 : Your letter of.
15179 \end_layout
15180
15181 \begin_layout Itemize
15182
15183 \family sans
15184 Myref
15185 \family default
15186 : Our ref.
15187 \end_layout
15188
15189 \begin_layout Itemize
15190
15191 \family sans
15192 Customer
15193 \family default
15194 : Customer no.
15195 \end_layout
15196
15197 \begin_layout Itemize
15198
15199 \family sans
15200 Invoice
15201 \family default
15202 : Invoice no.
15203 \end_layout
15204
15205 \begin_layout Subsection
15206 The new letter class: letter (koma-script v.2)
15207 \end_layout
15208
15209 \begin_layout Standard
15210 by 
15211 \noun on
15212 Jürgen Spitzmüller
15213 \end_layout
15214
15215 \begin_layout Standard
15216 \begin_inset VSpace medskip
15217 \end_inset
15218
15219
15220 \end_layout
15221
15222 \begin_layout Standard
15223 \noindent
15224 Koma-Script version 2.8 has introduced a new letter class 
15225 \family typewriter
15226 scrlttr2
15227 \family default
15228  which supersedes the now unsupported 
15229 \family typewriter
15230 scrlettr
15231 \family default
15232 .
15233  It has — on the \SpecialChar LaTeX
15234  side — a completely new interface and is not compatible
15235  with the old class.
15236  Therefore, \SpecialChar LyX
15237  supports both, though it is recommended you use the new class.
15238 \end_layout
15239
15240 \begin_layout Standard
15241 This class covers the same functionality as 
15242 \emph on
15243 letter (koma-script),
15244 \emph default
15245  and a few more.
15246  The basic items are 
15247 \family sans
15248 Address
15249 \family default
15250  (receiver's address, same as 
15251 \family sans
15252 Letter
15253 \family default
15254  in the old layout), 
15255 \family sans
15256 Opening
15257 \family default
15258 , and 
15259 \family sans
15260 Closing
15261 \family default
15262 .
15263  
15264 \family sans
15265 NextAddress
15266 \family default
15267  will start a new letter (i.
15268 \begin_inset space \thinspace{}
15269 \end_inset
15270
15271 e.
15272 \begin_inset space \space{}
15273 \end_inset
15274
15275 you can write several letters per document).
15276  New elements are sender's 
15277 \family sans
15278 E-Mail
15279 \family default
15280
15281 \family sans
15282 URL
15283 \family default
15284
15285 \family sans
15286 Fax
15287 \family default
15288
15289 \family sans
15290 Bank
15291 \family default
15292  and the possibility to use a 
15293 \family sans
15294 Logo
15295 \family default
15296  (via 
15297 \family sans
15298 Insert\SpecialChar menuseparator
15299 Graphics
15300 \family default
15301 ) in the header.
15302 \end_layout
15303
15304 \begin_layout Standard
15305 The biggest improvement is, though, that the letter's layout is configurable
15306  to meet almost any needs.
15307  This can be done via the preamble or with a special style file (Letter
15308  Class Option, extension 
15309 \family typewriter
15310 *.lco
15311 \family default
15312 ), that will be read in as a class option.
15313 \begin_inset Foot
15314 status collapsed
15315
15316 \begin_layout Plain Layout
15317 The KOMA package comes with some default 
15318 \family typewriter
15319 *.lco
15320 \family default
15321  files.
15322  There is, for instance, a 
15323 \family typewriter
15324 DIN.lco
15325 \family default
15326  file that follows german typesetting rules, or a 
15327 \family typewriter
15328 KOMAold.lco
15329 \family default
15330  that provides the default layout of the old 
15331 \family typewriter
15332 scrlettr
15333 \family default
15334  class.
15335  The latter can be loaded with the class option 
15336 \family typewriter
15337 KOMAold
15338 \family default
15339 , inserted via the 
15340 \family sans
15341 \bar under
15342 L
15343 \bar default
15344 ayout\SpecialChar menuseparator
15345
15346 \bar under
15347 D
15348 \bar default
15349 ocument\SpecialChar menuseparator
15350 Extra Options
15351 \family default
15352  field.
15353 \end_layout
15354
15355 \end_inset
15356
15357  Have a look at the 
15358 \emph on
15359 koma-letter2
15360 \emph default
15361  template that is included in \SpecialChar LyX
15362  for examples.
15363  A detailed description is to be found in the Koma-Script documentation
15364  (
15365 \emph on
15366 scrguide
15367 \emph default
15368 ).
15369 \end_layout
15370
15371 \begin_layout Subsection
15372 Problems
15373 \end_layout
15374
15375 \begin_layout Standard
15376 Visualizing the Koma-Script document classes in \SpecialChar LyX
15377 , the \SpecialChar LyX
15378  internals cause some
15379  problems.
15380 \end_layout
15381
15382 \begin_layout Itemize
15383 The chapter number of a 
15384 \family sans
15385 Chapter
15386 \family default
15387  type appears on a line of its own above the chapter heading instead of
15388  appearing in the same line ahead of it.
15389  The cause for that is the \SpecialChar LyX
15390  internal behavior for the labeltype 
15391 \family sans
15392 Counter_Chapter
15393 \family default
15394  in the layout file.
15395 \end_layout
15396
15397 \begin_layout Itemize
15398 The headings of the types 
15399 \family sans
15400 Addchap
15401 \family default
15402  and 
15403 \family sans
15404 Addsec
15405 \family default
15406  are only put in the 
15407 \begin_inset Quotes eld
15408 \end_inset
15409
15410 true
15411 \begin_inset Quotes erd
15412 \end_inset
15413
15414  \SpecialChar LaTeX
15415  table of contents, but not in the \SpecialChar LyX
15416  table of contents (
15417 \family sans
15418 Document\SpecialChar menuseparator
15419 Table
15420 \begin_inset space ~
15421 \end_inset
15422
15423 of
15424 \begin_inset space ~
15425 \end_inset
15426
15427 Contents
15428 \family default
15429 ).
15430 \end_layout
15431
15432 \begin_layout Itemize
15433 The paragraphs in a 
15434 \emph on
15435 letter
15436 \emph default
15437  document class appear in a skip separation mode, not indented.
15438  This is the standard behavior, no special \SpecialChar LaTeX
15439  commands are needed for that.
15440  But in the 
15441 \family sans
15442 Document\SpecialChar menuseparator
15443 Settings
15444 \family default
15445  dialog the corresponding radio button indicates 
15446 \family sans
15447 Indent
15448 \family default
15449 .
15450  A 
15451 \family sans
15452 Skip
15453 \family default
15454  value always has the effect that extra \SpecialChar LaTeX
15455  commands are inserted in the document
15456  to produce the gap, which is not what is wanted in this case.
15457 \end_layout
15458
15459 \begin_layout Section
15460 Memoir
15461 \end_layout
15462
15463 \begin_layout Standard
15464 By 
15465 \noun on
15466 Jürgen Spitzmüller
15467 \end_layout
15468
15469 \begin_layout Subsection
15470 Overview
15471 \end_layout
15472
15473 \begin_layout Standard
15474 Memoir is a very powerful and constantly evolving class.
15475  It has been designed with regard to fictional and non-fictional literature.
15476  Its aim is to let the user have maximum control over the typesetting of
15477  his document.
15478  Memoir is based on the standard book class, but it can also emulate the
15479  article class (see below).
15480 \end_layout
15481
15482 \begin_layout Standard
15483 Peter Wilson, the developer of Memoir, is known as the author of lots of
15484  useful packages in the \SpecialChar LaTeX
15485  world.
15486  Most of them have been merged with Memoir.
15487  Therefore, it is much easier to layout the table of contents, appendices,
15488  chapter designs and such.
15489  \SpecialChar LyX
15490 , though, does not support all of these goodies natively.
15491  Some of them might be added to forthcoming releases
15492 \begin_inset Foot
15493 status collapsed
15494
15495 \begin_layout Plain Layout
15496 You are invited to send suggestions to 
15497 \begin_inset Flex URL
15498 status collapsed
15499
15500 \begin_layout Plain Layout
15501
15502 lyx-devel@lists.lyx.org
15503 \end_layout
15504
15505 \end_inset
15506
15507 .
15508 \end_layout
15509
15510 \end_inset
15511
15512 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15513 's framework.
15514  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15515
15516  commands (\SpecialChar TeX
15517  code
15518 \begin_inset Foot
15519 status collapsed
15520
15521 \begin_layout Plain Layout
15522 Cf.
15523 \begin_inset ERT
15524 status collapsed
15525
15526 \begin_layout Plain Layout
15527
15528
15529 \backslash
15530  
15531 \end_layout
15532
15533 \end_inset
15534
15535 section
15536 \begin_inset space ~
15537 \end_inset
15538
15539
15540 \begin_inset CommandInset ref
15541 LatexCommand ref
15542 reference "sec:Inserting-TeX-Code"
15543
15544 \end_inset
15545
15546  for details.
15547 \end_layout
15548
15549 \end_inset
15550
15551 ).
15552  In this section, we can only list those features that are natively supported
15553  by \SpecialChar LyX
15554 .
15555  For detailed descriptions (and for the rest of features) we recommend you
15556  have a look at the detailed manual of the Memoir class
15557 \begin_inset Foot
15558 status collapsed
15559
15560 \begin_layout Plain Layout
15561 Cf.
15562 \begin_inset ERT
15563 status collapsed
15564
15565 \begin_layout Plain Layout
15566
15567
15568 \backslash
15569  
15570 \end_layout
15571
15572 \end_inset
15573
15574
15575 \begin_inset Flex URL
15576 status collapsed
15577
15578 \begin_layout Plain Layout
15579
15580 CTAN:/macros/latex/memoir/memman.pdf
15581 \end_layout
15582
15583 \end_inset
15584
15585 .
15586 \end_layout
15587
15588 \end_inset
15589
15590 , which is not only a user guide for the class, but also both a comprehensive
15591  description on good typesetting and a superb example for good typesetting
15592  itself.
15593 \end_layout
15594
15595 \begin_layout Subsection
15596 Basic features and restrictions
15597 \end_layout
15598
15599 \begin_layout Standard
15600 Memoir supports basically all features of the standard book classes.
15601  There are, however, some differences, as follows:
15602 \end_layout
15603
15604 \begin_layout Description
15605 Font
15606 \begin_inset space ~
15607 \end_inset
15608
15609 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15610 \end_layout
15611
15612 \begin_layout Description
15613 Page
15614 \begin_inset space ~
15615 \end_inset
15616
15617 style: The fancy page style is not supported, due to a command clash between
15618  Memoir and the fancyhdr package (they both define a command with the same
15619  name, which confuses \SpecialChar LaTeX
15620 ).
15621  Instead, Memoir comes with a number of its own page styles (see 
15622 \family sans
15623 Layout\SpecialChar menuseparator
15624 Document\SpecialChar menuseparator
15625 Page
15626 \begin_inset space ~
15627 \end_inset
15628
15629 Style
15630 \family default
15631 ).
15632  If you want to use these for the chapter pages, you have to use the command
15633  
15634 \family typewriter
15635
15636 \backslash
15637 chapterstyle
15638 \family default
15639  in the main text or in preamble (e.
15640 \begin_inset space \thinspace{}
15641 \end_inset
15642
15643 g.
15644 \begin_inset space \space{}
15645 \end_inset
15646
15647
15648 \family typewriter
15649
15650 \backslash
15651 chapterstyle{companion}
15652 \family default
15653 ).
15654 \end_layout
15655
15656 \begin_layout Description
15657 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15658  optional argument in the standard classes.
15659  With this, you can specify an alternative version of the title for the
15660  table of contents and the headers (for instance, if the title is too long).
15661  In \SpecialChar LyX
15662 , you can do this via 
15663 \family sans
15664 Insert\SpecialChar menuseparator
15665 Short
15666 \begin_inset space ~
15667 \end_inset
15668
15669 Title
15670 \family default
15671  at the beginning of a chapter/section.
15672  Memoir features a second optional argument and thus separates the table
15673  of contents from the header.
15674  You can define three variants of a title with this: one for the main text,
15675  one for the table of contents, and one for the headers.
15676  Simply insert two optional arguments if you need this feature, the first
15677  one containing the short title for the Table of Contents, the second one
15678  containing an alternative short title for the headers.
15679 \end_layout
15680
15681 \begin_layout Description
15682 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15683  of contents, the list of figures and the list of table start a new page
15684  automatically.
15685  Memoir does not follow this route.
15686  You have to insert a page break yourself, if you want to have one.
15687 \end_layout
15688
15689 \begin_layout Description
15690 Titlepage: For some unknown reason, Memoir uses pagination on the title
15691  page (in the standard classes, title pages are 
15692 \begin_inset Quotes eld
15693 \end_inset
15694
15695 empty
15696 \begin_inset Quotes erd
15697 \end_inset
15698
15699 ).
15700  If you want an empty title page, type 
15701 \family typewriter
15702
15703 \backslash
15704 aliaspagestyle{title}{empty}
15705 \family default
15706  in the preamble.
15707 \end_layout
15708
15709 \begin_layout Description
15710 Article: With the class option 
15711 \emph on
15712 article
15713 \emph default
15714  (to be inserted in 
15715 \family sans
15716 Layout\SpecialChar menuseparator
15717 Document\SpecialChar menuseparator
15718 Extra
15719 \begin_inset space ~
15720 \end_inset
15721
15722 Options
15723 \family default
15724 ), you can emulate article style.
15725  That is, counters (footnotes, figures, tables etc.) will not be reset on
15726  new chapters, chapters don't start a new page (but are—in contrary to 
15727 \begin_inset Quotes eld
15728 \end_inset
15729
15730 real
15731 \begin_inset Quotes erd
15732 \end_inset
15733
15734  article classes—still allowed), parts, though, use their own page, as in
15735  book.
15736 \end_layout
15737
15738 \begin_layout Description
15739 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15740  font commands, which have been used in the old \SpecialChar LaTeX
15741  version 2.09 (e.
15742 \begin_inset space \thinspace{}
15743 \end_inset
15744
15745 g.
15746 \begin_inset space \space{}
15747 \end_inset
15748
15749
15750 \family typewriter
15751
15752 \backslash
15753 rm
15754 \family default
15755
15756 \family typewriter
15757
15758 \backslash
15759 it
15760 \family default
15761 ).
15762  It produces an error and stops \SpecialChar LaTeX
15763  whenever such a command appears.
15764  The class option 
15765 \emph on
15766 oldfontcommands
15767 \emph default
15768  reallows the commands and spits out warnings instead (which does at least
15769  not stop \SpecialChar LaTeX
15770 ).
15771  Since a lot of packages and particularly Bib\SpecialChar TeX
15772  style files are still using
15773  those commands, we have decided to use this option by default.
15774 \end_layout
15775
15776 \begin_layout Subsection
15777 Extra features
15778 \end_layout
15779
15780 \begin_layout Standard
15781 We will only describe the features supported by \SpecialChar LyX
15782  (which is not much currently).
15783  Please consult the Memoir manual
15784 \begin_inset Foot
15785 status collapsed
15786
15787 \begin_layout Plain Layout
15788 Cf.
15789 \begin_inset ERT
15790 status collapsed
15791
15792 \begin_layout Plain Layout
15793
15794
15795 \backslash
15796  
15797 \end_layout
15798
15799 \end_inset
15800
15801
15802 \begin_inset Flex URL
15803 status collapsed
15804
15805 \begin_layout Plain Layout
15806
15807 CTAN:/macros/latex/memoir/memman.pdf
15808 \end_layout
15809
15810 \end_inset
15811
15812 .
15813 \end_layout
15814
15815 \end_inset
15816
15817  for details.
15818 \end_layout
15819
15820 \begin_layout Description
15821 Abstract: You may wonder why an abstract is an extra feature.
15822  Well, it is in book class.
15823  Usually books don't have abstracts.
15824  Memoir, however, has.
15825  You can use it wherever and how often you like.
15826 \end_layout
15827
15828 \begin_layout Description
15829 Chapterprecis: You may know this older typesetting style: The contents of
15830  a chapter are summarized below the title and also in the table of contents
15831  (e.
15832 \begin_inset space \thinspace{}
15833 \end_inset
15834
15835 g.
15836 \begin_inset space \space{}
15837 \end_inset
15838
15839
15840 \emph on
15841 Our hero arrives in Troia; he loses some friends; he finds others
15842 \emph default
15843 ).
15844  Chapterprecis does exactly this.
15845  It is therefore only sensible below a chapter.
15846 \end_layout
15847
15848 \begin_layout Description
15849 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15850  The epigraph environment provides an elegant way of typesetting such a
15851  motto.
15852  The motto itself (text) and its author (source) are divided by a short
15853  line.
15854  Unfortunately, we have to fool \SpecialChar LyX
15855  a bit here again, since the environment
15856  needs two arguments (text and source).
15857  In this case, we have to use curly brackets (in \SpecialChar TeX
15858  mode) between the two
15859  arguments: 
15860 \emph on
15861 <smart slogan>
15862 \emph default
15863  
15864 \family typewriter
15865 }{
15866 \family default
15867  
15868 \emph on
15869 <author of the slogan>.
15870 \end_layout
15871
15872 \begin_layout Description
15873 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15874  complex figurative poems).
15875  \SpecialChar LyX
15876  can only support a few of them.
15877  One is poemtitle, which is a centered title for poems, which will also
15878  be added to the table of contents (verse is the standard environment for
15879  poems.
15880  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15881  code,
15882  because they have to be nested inside regular verse environments, which
15883  is not possible with \SpecialChar LyX
15884 ).
15885 \end_layout
15886
15887 \begin_layout Description
15888 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15889 \end_layout
15890
15891 \begin_layout Section
15892 Article (mwart), book (mwbk) and report (mwrep)
15893 \begin_inset Argument status
15894 status collapsed
15895
15896 \begin_layout Plain Layout
15897 The 
15898 \family typewriter
15899 mw
15900 \family default
15901  Classes
15902 \end_layout
15903
15904 \end_inset
15905
15906
15907 \end_layout
15908
15909 \begin_layout Standard
15910 by 
15911 \noun on
15912 Tomasz Luczak
15913 \end_layout
15914
15915 \begin_layout Standard
15916 The \SpecialChar LyX
15917  document classes 
15918 \emph on
15919 article (mwart)
15920 \emph default
15921
15922 \emph on
15923 report (mwrep)
15924 \emph default
15925  and 
15926 \emph on
15927 book
15928 \emph default
15929  
15930 \emph on
15931 (mwbk)
15932 \emph default
15933  correspond to the \SpecialChar LaTeX
15934  document classes 
15935 \family typewriter
15936 mwart.cls
15937 \family default
15938
15939 \family typewriter
15940 mwrep.cls
15941 \family default
15942  and 
15943 \family typewriter
15944 mwbk.cls
15945 \family default
15946 , resp.
15947  They are replacements for the standard document classes 
15948 \family typewriter
15949 article.cls
15950 \family default
15951
15952 \family typewriter
15953 report.cls
15954 \family default
15955  and 
15956 \family typewriter
15957 book.cls
15958 \family default
15959 , resp., and fit better to Polish typography conventions in a number of points.
15960  
15961 \end_layout
15962
15963 \begin_layout Standard
15964 Basic differences:
15965 \end_layout
15966
15967 \begin_layout Itemize
15968 Unnumbered titles (with star, e.
15969 \begin_inset space \thinspace{}
15970 \end_inset
15971
15972 g.
15973 \begin_inset space \space{}
15974 \end_inset
15975
15976
15977 \family sans
15978 Section*
15979 \family default
15980 ) are added into table of contents,
15981 \end_layout
15982
15983 \begin_layout Itemize
15984 Additional page styles:
15985 \begin_inset Separator parbreak
15986 \end_inset
15987
15988
15989 \end_layout
15990
15991 \begin_deeper
15992 \begin_layout Description
15993 uheadings header with separated lines,
15994 \end_layout
15995
15996 \begin_layout Description
15997 myheadings custom header, contents headers via commands: 
15998 \family typewriter
15999
16000 \backslash
16001 markright
16002 \family default
16003  and 
16004 \family typewriter
16005
16006 \backslash
16007 markboth
16008 \family default
16009 ,
16010 \end_layout
16011
16012 \begin_layout Description
16013 myuheadings custom header with separated lines,
16014 \end_layout
16015
16016 \begin_layout Description
16017 outer page number is placed on outer side of page
16018 \end_layout
16019
16020 \end_deeper
16021 \begin_layout Itemize
16022 Options 
16023 \begin_inset Separator parbreak
16024 \end_inset
16025
16026
16027 \end_layout
16028
16029 \begin_deeper
16030 \begin_layout Description
16031 rmheadings serif titles — default,
16032 \end_layout
16033
16034 \begin_layout Description
16035 sfheadings sansserif titles,
16036 \end_layout
16037
16038 \begin_layout Description
16039 authortitle on title page first placed is author next title — default,
16040 \end_layout
16041
16042 \begin_layout Description
16043 titleauthor on title page first placed is title next author,
16044 \end_layout
16045
16046 \begin_layout Description
16047 withmarginpar reserve place on page for margins.
16048 \end_layout
16049
16050 \end_deeper
16051 \begin_layout Section
16052 Paper
16053 \end_layout
16054
16055 \begin_layout Standard
16056 The document class 
16057 \family sans
16058 paper
16059 \family default
16060  provides an alternative to the standard 
16061 \family sans
16062 article
16063 \family default
16064  class.
16065  It provides similar functionality, but you might prefer this layout with
16066  sans serif sections, headings, and more.
16067 \end_layout
16068
16069 \begin_layout Section
16070 Rev\SpecialChar TeX
16071 4
16072 \end_layout
16073
16074 \begin_layout Standard
16075 by 
16076 \noun on
16077 Amir Karger
16078 \end_layout
16079
16080 \begin_layout Standard
16081 \begin_inset VSpace bigskip
16082 \end_inset
16083
16084
16085 \end_layout
16086
16087 \begin_layout Standard
16088 \noindent
16089 The 
16090 \family sans
16091 Revtex
16092 \begin_inset space ~
16093 \end_inset
16094
16095 4
16096 \family default
16097  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16098  4.0 (the 
16099 \begin_inset Formula $\beta$
16100 \end_inset
16101
16102  release of May, 1999) class.
16103 \end_layout
16104
16105 \begin_layout Standard
16106 \SpecialChar LyX
16107  has a 
16108 \family sans
16109 Revtex
16110 \family default
16111  textclass, which works with Rev\SpecialChar TeX
16112  3.1.
16113  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16114  2.09.
16115  That means that it doesn't interact very well with \SpecialChar LyX
16116 , which requires \SpecialChar LaTeX2e
16117 , although
16118  it has been kludged to work.
16119  Since Rev\SpecialChar TeX
16120  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16121 , \SpecialChar LyX
16122  with the
16123  
16124 \family sans
16125 Rev\SpecialChar TeX
16126
16127 \begin_inset space ~
16128 \end_inset
16129
16130 4
16131 \family default
16132  textclass should also be pretty easy to use.
16133 \end_layout
16134
16135 \begin_layout Standard
16136 These documents are supposed to be used in 
16137 \emph on
16138 addition
16139 \emph default
16140  to the Rev\SpecialChar TeX
16141  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16142  macros,
16143  and assume you'll know what to put in the preamble if necessary.
16144 \end_layout
16145
16146 \begin_layout Subsection
16147 Installation
16148 \end_layout
16149
16150 \begin_layout Standard
16151 All you need to do is install Rev\SpecialChar TeX
16152  4, as described in the package's README
16153  file.
16154  The package can be found at The Rev\SpecialChar TeX
16155  4 Web Site 
16156 \begin_inset Flex URL
16157 status collapsed
16158
16159 \begin_layout Plain Layout
16160
16161 http://publish.aps.org/revtex4/
16162 \end_layout
16163
16164 \end_inset
16165
16166 .
16167  Install it somewhere that \SpecialChar LaTeX
16168  can see it.
16169  Test it by trying to \SpecialChar LaTeX
16170  a short Rev\SpecialChar TeX
16171  4 document in some random directory (i.
16172 \begin_inset space \thinspace{}
16173 \end_inset
16174
16175 e.
16176 \begin_inset space \space{}
16177 \end_inset
16178
16179 not the directory where you installed the class file.) Then, if you reconfigure
16180  \SpecialChar LyX
16181 , it will find the class file and let you use the Rev\SpecialChar TeX
16182 4 textclass.
16183 \end_layout
16184
16185 \begin_layout Standard
16186 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16187  4 document
16188  using 
16189 \family typewriter
16190 tex2lyx
16191 \family default
16192 , or to use the 
16193 \family sans
16194 Revtex
16195 \begin_inset space ~
16196 \end_inset
16197
16198 4
16199 \family default
16200  template, found in the templates directory.
16201 \end_layout
16202
16203 \begin_layout Subsection
16204 Preamble Matter
16205 \end_layout
16206
16207 \begin_layout Standard
16208 Optional arguments to 
16209 \family typewriter
16210
16211 \backslash
16212 documentclass
16213 \family default
16214 , like 
16215 \begin_inset Quotes eld
16216 \end_inset
16217
16218 preprint
16219 \begin_inset Quotes erd
16220 \end_inset
16221
16222  and 
16223 \begin_inset Quotes eld
16224 \end_inset
16225
16226 aps
16227 \begin_inset Quotes erd
16228 \end_inset
16229
16230 , go in the 
16231 \family sans
16232 E
16233 \bar under
16234 x
16235 \bar default
16236 tra
16237 \begin_inset space ~
16238 \end_inset
16239
16240 Options
16241 \family default
16242  field in the 
16243 \family sans
16244 Document
16245 \begin_inset space ~
16246 \end_inset
16247
16248 Layout
16249 \family default
16250  dialog, as usual.
16251  Remember that in Rev\SpecialChar TeX
16252 , at least one optional argument is required! 
16253 \end_layout
16254
16255 \begin_layout Standard
16256 Other preamble matter, like 
16257 \family typewriter
16258
16259 \backslash
16260 draft
16261 \family default
16262  etc.
16263 \begin_inset space ~
16264 \end_inset
16265
16266 goes in the 
16267 \family sans
16268 \SpecialChar LaTeX
16269
16270 \begin_inset space ~
16271 \end_inset
16272
16273 Preamble
16274 \family default
16275  dialog, also as usual.
16276 \end_layout
16277
16278 \begin_layout Subsection
16279 Layouts
16280 \end_layout
16281
16282 \begin_layout Standard
16283 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16284 4.0.
16285  For example, the Email layout corresponds to 
16286 \family typewriter
16287
16288 \backslash
16289 email{}
16290 \family default
16291 .
16292  Note that (at least as of Rev\SpecialChar TeX
16293  4.0 Beta), the 
16294 \family sans
16295 Address
16296 \family default
16297  and 
16298 \family sans
16299 Affiliation
16300 \family default
16301  layouts are exactly equivalent, so you shouldn't need to use both.
16302 \begin_inset Foot
16303 status collapsed
16304
16305 \begin_layout Plain Layout
16306 In case you're curious, both were included so that 
16307 \family typewriter
16308 tex2lyx
16309 \family default
16310  would be able to translate both 
16311 \family typewriter
16312
16313 \backslash
16314 address
16315 \family default
16316  and 
16317 \family typewriter
16318
16319 \backslash
16320 affiliation
16321 \family default
16322 .
16323 \end_layout
16324
16325 \end_inset
16326
16327
16328 \end_layout
16329
16330 \begin_layout Subsection
16331 Important Notes
16332 \end_layout
16333
16334 \begin_layout Standard
16335 There are a couple of important unique aspects of Rev\SpecialChar TeX
16336  4 which might cause
16337  bugs that will be even more confusing in \SpecialChar LyX
16338 .
16339 \end_layout
16340
16341 \begin_layout Standard
16342 In Rev\SpecialChar TeX
16343 , the 
16344 \family typewriter
16345
16346 \backslash
16347 thanks
16348 \family default
16349  command goes 
16350 \emph on
16351 outside
16352 \emph default
16353  the 
16354 \family typewriter
16355
16356 \backslash
16357 author
16358 \family default
16359  command.
16360  The \SpecialChar LyX
16361  equivalent is that there is a separate Thanks layout.
16362  Do 
16363 \emph on
16364 not
16365 \emph default
16366  write footnotes in the 
16367 \family sans
16368 Author
16369 \family default
16370  layout, or weird things may happen.
16371  See the Rev\SpecialChar TeX
16372  4 documentation for more details.
16373 \end_layout
16374
16375 \begin_layout Standard
16376 Also, the 
16377 \family sans
16378 Author
16379 \begin_inset space ~
16380 \end_inset
16381
16382 Email
16383 \family default
16384
16385 \family sans
16386 Author
16387 \begin_inset space ~
16388 \end_inset
16389
16390 URL
16391 \family default
16392 , and 
16393 \family sans
16394 Thanks
16395 \family default
16396  layouts must be placed 
16397 \emph on
16398 in between
16399 \emph default
16400  the 
16401 \family sans
16402 Author
16403 \family default
16404  layout and the corresponding 
16405 \family sans
16406 Address
16407 \family default
16408  (or equivalent 
16409 \family sans
16410 Affiliation
16411 \family default
16412 ) layout.
16413  If you put the 
16414 \family sans
16415 Thanks
16416 \family default
16417  after the 
16418 \family sans
16419 Address
16420 \family default
16421 , the \SpecialChar LaTeX
16422  won't compile.
16423 \end_layout
16424
16425 \begin_layout Subsection
16426 Drawbacks
16427 \end_layout
16428
16429 \begin_layout Standard
16430 The main problem with this layout is that you can't use the optional arguments
16431  to layouts like Email and Title.
16432  (The problem is not unique to this layout; you can't use optional arguments
16433  to the Section layouts either.) This means that after you export that file
16434  to \SpecialChar LaTeX
16435  (which you'll need to do eventually to send it in to APS), you'll need
16436  to edit the \SpecialChar LaTeX
16437  file with a text editor to add the optional arguments to set,
16438  e.
16439 \begin_inset space \thinspace{}
16440 \end_inset
16441
16442 g.
16443 \begin_inset space \space{}
16444 \end_inset
16445
16446 the running title for the page headers.
16447  Lacking these layouts makes the 
16448 \family typewriter
16449
16450 \backslash
16451 altaffiliation
16452 \family default
16453  (and the equivalent 
16454 \family typewriter
16455
16456 \backslash
16457 altaddress
16458 \family default
16459 ) useless, so the corresponding layouts don't exist, and will have to be
16460  added by hand.
16461 \begin_inset Foot
16462 status collapsed
16463
16464 \begin_layout Plain Layout
16465
16466 \emph on
16467 Note from JMarc:
16468 \emph default
16469  actually, \SpecialChar LyX
16470  1.3.0 supports some forms of optional arguments, but this layout
16471  has not been updated yet to take advantage of it.
16472 \end_layout
16473
16474 \end_inset
16475
16476  
16477 \end_layout
16478
16479 \begin_layout Section
16480 Springer Journals (
16481 \family sans
16482 svjour
16483 \family default
16484 )
16485 \end_layout
16486
16487 \begin_layout Standard
16488 by 
16489 \noun on
16490 Martin Vermeer
16491 \end_layout
16492
16493 \begin_layout Subsection
16494 Description
16495 \end_layout
16496
16497 \begin_layout Standard
16498 These are the layout files for some of the journal formats used by Springer
16499  Verlag and listed on 
16500 \begin_inset Flex URL
16501 status collapsed
16502
16503 \begin_layout Plain Layout
16504
16505 http://www.springer.de/author/tex/help-journals.html
16506 \end_layout
16507
16508 \end_inset
16509
16510 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16511  now!).
16512  It is a modular system: the things common to all journals are implemented
16513  in 
16514 \family typewriter
16515 svjour.inc
16516 \family default
16517 , which journal-specific layout files (such as, e.
16518 \begin_inset space \thinspace{}
16519 \end_inset
16520
16521 g.
16522 \begin_inset space \space{}
16523 \end_inset
16524
16525
16526 \family typewriter
16527 svjog.layout
16528 \family default
16529  for Journal of Geodesy) can include.
16530 \end_layout
16531
16532 \begin_layout Standard
16533 This means that implementing support for any other Springer journal on this
16534  list is as simple as writing your own 
16535 \family typewriter
16536 sv
16537 \family default
16538 <myjournal>
16539 \family typewriter
16540 .layout
16541 \family default
16542  file following the outline given in 
16543 \family typewriter
16544 svjog.layout
16545 \family default
16546 .
16547  
16548 \end_layout
16549
16550 \begin_layout Standard
16551 It is reasonably well tested only for the Journal of Geodesy.
16552  
16553 \family typewriter
16554 svjour
16555 \family default
16556  and 
16557 \family typewriter
16558 svjog
16559 \family default
16560  come with the standard \SpecialChar LyX
16561  distribution.
16562  Install the relevant class file (downloaded from Springer) in a proper
16563  directory, reconfigure \SpecialChar LaTeX
16564  (in the te\SpecialChar TeX
16565  case by running 
16566 \family typewriter
16567 texhash
16568 \family default
16569 , as root if necessary — doesn't \SpecialChar LyX
16570  take care of this?), reconfigure \SpecialChar LyX
16571  and
16572  it should work.
16573 \end_layout
16574
16575 \begin_layout Subsection
16576 New styles
16577 \end_layout
16578
16579 \begin_layout Standard
16580 A large number of theorem-like styles — 
16581 \family sans
16582 Claim, Conjecture,
16583 \family default
16584  
16585 \family sans
16586 \SpecialChar ldots
16587 Theorem
16588 \family default
16589 .
16590 \end_layout
16591
16592 \begin_layout Standard
16593
16594 \family sans
16595 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16596 _Title, Author_Running, Institute,
16597  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16598 \family default
16599 .
16600  See the Springer class file documentation for details.
16601 \end_layout
16602
16603 \begin_layout Subsection
16604 Supported journals
16605 \end_layout
16606
16607 \begin_layout Itemize
16608
16609 \emph on
16610 Journal of Geodesy
16611 \emph default
16612
16613 \family typewriter
16614 svjog.layout
16615 \family default
16616  — Martin Vermeer
16617 \end_layout
16618
16619 \begin_layout Itemize
16620
16621 \emph on
16622 Probability Theory and Related Fields
16623 \emph default
16624
16625 \family typewriter
16626 svprobth.layout
16627 \family default
16628  — Jean-Marc Lasgouttes
16629 \end_layout
16630
16631 \begin_layout Standard
16632 Add your own, it isn't so hard!
16633 \end_layout
16634
16635 \begin_layout Subsection
16636 Credits
16637 \end_layout
16638
16639 \begin_layout Standard
16640 These files are partly based on the older 
16641 \family typewriter
16642 ejour2.layout
16643 \family default
16644 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16645  2.09 style
16646  file from Springer.
16647  All this, and the 
16648 \family typewriter
16649 ejour2
16650 \family default
16651  layout, are now defunct.
16652  Jean-Marc Lasgouttes helped out big in making me find my way around the
16653  \SpecialChar LyX
16654  layout file mechanism.
16655 \end_layout
16656
16657 \begin_layout Subsection
16658 Bugs
16659 \end_layout
16660
16661 \begin_layout Standard
16662 Probably.
16663  But probably less than in the old hacked-\SpecialChar LaTeX
16664  
16665 \family typewriter
16666 ejour2
16667 \family default
16668 .
16669 \end_layout
16670
16671 \begin_layout Standard
16672 Limitations e.
16673 \begin_inset space \thinspace{}
16674 \end_inset
16675
16676 g.: does not display the number for theorem-like layouts, just #.
16677 \end_layout
16678
16679 \begin_layout Section
16680 Slides [aka 
16681 \noun on
16682 Sli\SpecialChar TeX
16683
16684 \noun default
16685 ]
16686 \begin_inset CommandInset label
16687 LatexCommand label
16688 name "sec:slitex"
16689
16690 \end_inset
16691
16692
16693 \end_layout
16694
16695 \begin_layout Standard
16696 by 
16697 \noun on
16698 John Weiss
16699 \noun default
16700  
16701 \end_layout
16702
16703 \begin_layout Subsection
16704 Introduction
16705 \end_layout
16706
16707 \begin_layout Standard
16708 This section describes how to use \SpecialChar LyX
16709  to make slides for overhead projectors.
16710  There are two document classes that can do this: the default slides class
16711  and the 
16712 \family sans
16713 Foil\SpecialChar TeX
16714
16715 \family default
16716  slides class.
16717  This section documents the former.
16718 \end_layout
16719
16720 \begin_layout Standard
16721 I'm going to say this again, nice and clear, so that there's no misunderstanding
16722 :
16723 \end_layout
16724
16725 \begin_layout Standard
16726 \begin_inset VSpace bigskip
16727 \end_inset
16728
16729
16730 \end_layout
16731
16732 \begin_layout Standard
16733 \align center
16734
16735 \size large
16736 This section documents the class 
16737 \begin_inset Quotes eld
16738 \end_inset
16739
16740
16741 \family sans
16742 slides (default)
16743 \family default
16744
16745 \begin_inset Quotes erd
16746 \end_inset
16747
16748  
16749 \emph on
16750 only.
16751 \end_layout
16752
16753 \begin_layout Standard
16754 \begin_inset VSpace bigskip
16755 \end_inset
16756
16757
16758 \end_layout
16759
16760 \begin_layout Standard
16761 If you're looking for the documentation for 
16762 \begin_inset Quotes eld
16763 \end_inset
16764
16765
16766 \family sans
16767 slides (Foil\SpecialChar TeX
16768 )
16769 \family default
16770
16771 \begin_inset Quotes erd
16772 \end_inset
16773
16774 , check out section
16775 \begin_inset space ~
16776 \end_inset
16777
16778
16779 \begin_inset CommandInset ref
16780 LatexCommand ref
16781 reference "sec:foiltex"
16782
16783 \end_inset
16784
16785 .
16786  The 
16787 \family sans
16788 foils
16789 \family default
16790  class [
16791 \begin_inset Quotes eld
16792 \end_inset
16793
16794
16795 \family sans
16796 slides (Foil\SpecialChar TeX
16797 )
16798 \family default
16799
16800 \begin_inset Quotes erd
16801 \end_inset
16802
16803 ] is actually somewhat better than the default 
16804 \family sans
16805 slides
16806 \family default
16807  class,
16808 \begin_inset Foot
16809 status collapsed
16810
16811 \begin_layout Plain Layout
16812 \SpecialChar ldots
16813 or so I've been told repeatedly by its advocates.
16814  Having never used it, I have no idea if this claim is true or not.
16815 \end_layout
16816
16817 \end_inset
16818
16819  which this section documents.
16820 \end_layout
16821
16822 \begin_layout Standard
16823 This class is the \SpecialChar LaTeX2e
16824  improvement of the old 
16825 \noun on
16826 Sli\SpecialChar TeX
16827
16828 \noun default
16829  package.
16830  Every \SpecialChar LaTeX2e
16831  distribution includes this class [which I'll just refer to as 
16832 \begin_inset Quotes eld
16833 \end_inset
16834
16835
16836 \family sans
16837 slides
16838 \family default
16839
16840 \begin_inset Quotes erd
16841 \end_inset
16842
16843  from now on], so you're bound to have it.
16844  As I noted earlier, there are other classes, such as 
16845 \family sans
16846 foils
16847 \family default
16848 , which also produce slides for overhead projectors and do a better job
16849  at it.
16850  However, there are some things which 
16851 \family sans
16852 slides
16853 \family default
16854  can do which the others can't, such as generate overlays.
16855  Read on to learn more!
16856 \end_layout
16857
16858 \begin_layout Subsection
16859 Getting Started
16860 \begin_inset CommandInset label
16861 LatexCommand label
16862 name "sec:slidesetup"
16863
16864 \end_inset
16865
16866
16867 \end_layout
16868
16869 \begin_layout Standard
16870 Obviously, to use this document class, you need to select 
16871 \begin_inset Quotes eld
16872 \end_inset
16873
16874
16875 \family sans
16876 slides (default)
16877 \family default
16878
16879 \begin_inset Quotes erd
16880 \end_inset
16881
16882  from the class list in the 
16883 \family sans
16884 Document\SpecialChar menuseparator
16885 Settings
16886 \family default
16887  dialog.
16888  There are some other special things you should know about this class:
16889 \end_layout
16890
16891 \begin_layout Itemize
16892 Don't bother changing the options 
16893 \family sans
16894 Sides and Columns
16895 \family default
16896 .
16897  They're not supported by the 
16898 \family sans
16899 slides
16900 \family default
16901  class, anyways.
16902 \end_layout
16903
16904 \begin_layout Itemize
16905 The option 
16906 \family sans
16907 Page
16908 \begin_inset space ~
16909 \end_inset
16910
16911 style
16912 \family default
16913  behaves a bit differently for this class.
16914  The possible choices and what they do are as follows:
16915 \begin_inset Separator parbreak
16916 \end_inset
16917
16918
16919 \end_layout
16920
16921 \begin_deeper
16922 \begin_layout Description
16923
16924 \family sans
16925 plain
16926 \family default
16927  The final output contains page numbers in the lower right corner.
16928 \end_layout
16929
16930 \begin_layout Description
16931
16932 \family sans
16933 headings
16934 \family default
16935  Like 
16936 \family sans
16937 plain
16938 \family default
16939 , but also prints out any time markers you've put in.
16940  This is the default.
16941 \end_layout
16942
16943 \begin_layout Description
16944
16945 \family sans
16946 empty
16947 \family default
16948  The final output contains no page numbers, time markers, or alignment markers.
16949 \end_layout
16950
16951 \end_deeper
16952 \begin_layout Itemize
16953 The 
16954 \family sans
16955 slides
16956 \family default
16957  class has an extra option: 
16958 \family typewriter
16959 clock
16960 \family default
16961 .
16962  To use it, put 
16963 \begin_inset Quotes eld
16964 \end_inset
16965
16966
16967 \family typewriter
16968 clock
16969 \family default
16970
16971 \begin_inset Quotes erd
16972 \end_inset
16973
16974  in the extra class options.
16975 \begin_inset Separator parbreak
16976 \end_inset
16977
16978
16979 \end_layout
16980
16981 \begin_deeper
16982 \begin_layout Standard
16983 Using this options allows you to add time markers to 
16984 \family sans
16985 Note
16986 \family default
16987 s.
16988  See section
16989 \begin_inset space ~
16990 \end_inset
16991
16992
16993 \begin_inset CommandInset ref
16994 LatexCommand ref
16995 reference "sec:slideNote"
16996
16997 \end_inset
16998
16999  for more details.
17000 \end_layout
17001
17002 \end_deeper
17003 \begin_layout Standard
17004 You can also use the template file 
17005 \begin_inset Quotes eld
17006 \end_inset
17007
17008
17009 \family typewriter
17010 slides.lyx
17011 \family default
17012
17013 \begin_inset Quotes erd
17014 \end_inset
17015
17016  to automatically set up a document to use the 
17017 \family sans
17018 slides
17019 \family default
17020  class [using 
17021 \family sans
17022 File\SpecialChar menuseparator
17023 New
17024 \begin_inset space ~
17025 \end_inset
17026
17027 from
17028 \begin_inset space ~
17029 \end_inset
17030
17031 Template
17032 \family default
17033  to open your new document].
17034  The template file also contains some examples of the special paragraph
17035  environments used by this class.
17036  I'll describe those next.
17037 \end_layout
17038
17039 \begin_layout Subsection
17040 Paragraph Environments
17041 \end_layout
17042
17043 \begin_layout Subsubsection
17044 Supported Environments
17045 \end_layout
17046
17047 \begin_layout Standard
17048 The first thing you'll notice when you start up a new 
17049 \family sans
17050 slides
17051 \family default
17052  document is the font size and type: it's the equivalent of the size 
17053 \begin_inset Quotes eld
17054 \end_inset
17055
17056
17057 \family sans
17058 Largest
17059 \family default
17060
17061 \begin_inset Quotes erd
17062 \end_inset
17063
17064  in the 
17065 \family sans
17066 Sans
17067 \begin_inset space ~
17068 \end_inset
17069
17070 Serif
17071 \family default
17072  font.
17073  This is also what's used in the output.
17074  Think of this as a 
17075 \begin_inset Quotes eld
17076 \end_inset
17077
17078 visual cue
17079 \begin_inset Quotes erd
17080 \end_inset
17081
17082  to remind you that this is a slide.
17083  Your final slides will use a larger font; ergo, you'll have less space.
17084  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17085 \end_layout
17086
17087 \begin_layout Standard
17088 The next thing that becomes obvious is the changes to the paragraph environment
17089  pull-down box [at the far-left end of the toolbar].
17090  Most of the paragraph environments you're used to seeing are missing.
17091  There are also five new ones.
17092  That's because the 
17093 \family sans
17094 slides
17095 \family default
17096  class itself only supports certain paragraph environments:
17097 \end_layout
17098
17099 \begin_layout Itemize
17100
17101 \family sans
17102 Standard
17103 \end_layout
17104
17105 \begin_layout Itemize
17106
17107 \family sans
17108 Itemize
17109 \end_layout
17110
17111 \begin_layout Itemize
17112
17113 \family sans
17114 Enumerate
17115 \end_layout
17116
17117 \begin_layout Itemize
17118
17119 \family sans
17120 Description
17121 \end_layout
17122
17123 \begin_layout Itemize
17124
17125 \family sans
17126 List
17127 \end_layout
17128
17129 \begin_layout Itemize
17130
17131 \family sans
17132 Quotation
17133 \end_layout
17134
17135 \begin_layout Itemize
17136
17137 \family sans
17138 Quote
17139 \end_layout
17140
17141 \begin_layout Itemize
17142
17143 \family sans
17144 Verse
17145 \end_layout
17146
17147 \begin_layout Itemize
17148
17149 \family sans
17150 Caption
17151 \end_layout
17152
17153 \begin_layout Itemize
17154
17155 \family sans
17156 \SpecialChar LyX
17157 -Code
17158 \end_layout
17159
17160 \begin_layout Itemize
17161
17162 \family sans
17163 Comment
17164 \end_layout
17165
17166 \begin_layout Standard
17167 All of the other standard environments, including the section-heading environmen
17168 ts, aren't used in the 
17169 \family sans
17170 slides
17171 \family default
17172  class.
17173 \end_layout
17174
17175 \begin_layout Standard
17176 On the other hand, you'll notice the following new environments:
17177 \end_layout
17178
17179 \begin_layout Itemize
17180
17181 \family sans
17182 Slide
17183 \end_layout
17184
17185 \begin_layout Itemize
17186
17187 \family sans
17188 Overlay
17189 \end_layout
17190
17191 \begin_layout Itemize
17192
17193 \family sans
17194 Note
17195 \end_layout
17196
17197 \begin_layout Itemize
17198
17199 \family sans
17200 InvisibleText
17201 \end_layout
17202
17203 \begin_layout Itemize
17204
17205 \family sans
17206 VisibleText
17207 \end_layout
17208
17209 \begin_layout Standard
17210 These five are kind of quirky, due to a 
17211 \begin_inset Quotes eld
17212 \end_inset
17213
17214 feature
17215 \begin_inset Quotes erd
17216 \end_inset
17217
17218  in \SpecialChar LyX
17219 .
17220  You see, \SpecialChar LyX
17221  doesn't permit you to nest any other paragraph environment into
17222  an empty environment.
17223  Now, that's fine and dandy, but it means that you wouldn't be able to start
17224  a slide with anything except plain text.
17225  To deal with this, I've performed a little 
17226 \begin_inset Quotes eld
17227 \end_inset
17228
17229 \SpecialChar LaTeX
17230  magic.
17231 \begin_inset Quotes erd
17232 \end_inset
17233
17234  
17235 \end_layout
17236
17237 \begin_layout Subsubsection
17238 Quirks of the New Environments
17239 \begin_inset CommandInset label
17240 LatexCommand label
17241 name "sec:slideQuirk"
17242
17243 \end_inset
17244
17245
17246 \end_layout
17247
17248 \begin_layout Standard
17249 All five of the new paragraph environments are somewhat quirky due to inherent
17250  limitiations in the current version of \SpecialChar LyX
17251 .
17252  As I just mentioned, \SpecialChar LyX
17253  forbids environments that begin with another environment.
17254  To get around this, the 
17255 \family sans
17256 Slide
17257 \family default
17258  environment isn't a paragraph environment as described in the 
17259 \emph on
17260 User's Guide
17261 \emph default
17262 .
17263  
17264 \end_layout
17265
17266 \begin_layout Standard
17267 You should consider 
17268 \family sans
17269 Slide
17270 \family default
17271
17272 \family sans
17273 Overlay
17274 \family default
17275 , and 
17276 \family sans
17277 Note
17278 \family default
17279  to be 
17280 \begin_inset Quotes eld
17281 \end_inset
17282
17283 pseudo-environments.
17284 \begin_inset Quotes erd
17285 \end_inset
17286
17287  They look like a section heading or a 
17288 \begin_inset Quotes eld
17289 \end_inset
17290
17291
17292 \family sans
17293 Caption
17294 \family default
17295 ,
17296 \begin_inset Quotes erd
17297 \end_inset
17298
17299  but really begin a [and, if necessary, end the previous] paragraph environment.
17300  Likewise, treat 
17301 \family sans
17302 InvisibleText
17303 \family default
17304  and 
17305 \family sans
17306 VisibleText
17307 \family default
17308  as 
17309 \begin_inset Quotes eld
17310 \end_inset
17311
17312 pseudo-commands.
17313 \begin_inset Quotes erd
17314 \end_inset
17315
17316  These two perform some action.
17317 \end_layout
17318
17319 \begin_layout Standard
17320 A common feature of all five environments, 
17321 \family sans
17322 Slide
17323 \family default
17324
17325 \family sans
17326 Overlay
17327 \family default
17328
17329 \family sans
17330 Note
17331 \family default
17332
17333 \family sans
17334 InvisibleText
17335 \family default
17336  and 
17337 \family sans
17338 VisibleText
17339 \family default
17340 , is a rather long-ish label.
17341  The text following this label — ordinarily the contents of the paragraph
17342  environment — is utterly irrelevant for 
17343 \family sans
17344 Slide
17345 \family default
17346
17347 \family sans
17348 Overlay
17349 \family default
17350
17351 \family sans
17352 Note
17353 \family default
17354
17355 \family sans
17356 InvisibleText
17357 \family default
17358  and 
17359 \family sans
17360 VisibleText
17361 \family default
17362 .
17363  \SpecialChar LyX
17364  completely ignores it.
17365  In fact, you can leave these five environments completely empty.
17366  
17367 \end_layout
17368
17369 \begin_layout Standard
17370 While you don't 
17371 \emph on
17372 have
17373 \emph default
17374  to put any text after the rather long-ish label, you might want to.
17375  This could be a short description of the contents of the 
17376 \family sans
17377 Slide
17378 \family default
17379 , for example.
17380  In that case, enter your descriptive comment and hit 
17381 \family sans
17382 Return
17383 \family default
17384  as you normally would.
17385 \end_layout
17386
17387 \begin_layout Standard
17388 If, on the other hand, you don't want to enter any descriptive text, you'll
17389  hit another \SpecialChar LyX
17390  quirk.
17391  \SpecialChar LyX
17392 , like nature, abhors a vacuum, and will not let you start a new paragraph
17393  environment until you put something in the old one.
17394  So, do this:
17395 \end_layout
17396
17397 \begin_layout Itemize
17398 Start entering the text that will 
17399 \emph on
17400 follow
17401 \emph default
17402  the new 
17403 \family sans
17404 Slide
17405 \family default
17406
17407 \family sans
17408 Overlay
17409 \family default
17410
17411 \family sans
17412 Note
17413 \family default
17414
17415 \family sans
17416 InvisibleText
17417 \family default
17418  or 
17419 \family sans
17420 VisibleText
17421 \family default
17422 .
17423  
17424 \end_layout
17425
17426 \begin_layout Itemize
17427 Now move to the beginning of that paragraph.
17428  
17429 \end_layout
17430
17431 \begin_layout Itemize
17432 Next, hit 
17433 \family sans
17434 Return
17435 \family default
17436 .
17437  
17438 \end_layout
17439
17440 \begin_layout Itemize
17441 Finally, change this new, empty paragraph to a 
17442 \family sans
17443 Slide
17444 \family default
17445
17446 \family sans
17447 Overlay
17448 \family default
17449
17450 \family sans
17451 Note
17452 \family default
17453
17454 \family sans
17455 InvisibleText
17456 \family default
17457  or 
17458 \family sans
17459 VisibleText
17460 \family default
17461 .
17462  
17463 \end_layout
17464
17465 \begin_layout Standard
17466 Some future version of \SpecialChar LyX
17467  will, hopefully, resolve this quirkiness\SpecialChar ldots
17468
17469 \end_layout
17470
17471 \begin_layout Subsection
17472 Making a Presentation with 
17473 \family sans
17474 Slide
17475 \family default
17476
17477 \family sans
17478 Overlay
17479 \family default
17480  and 
17481 \family sans
17482 Note
17483 \end_layout
17484
17485 \begin_layout Subsubsection
17486 Using the 
17487 \family sans
17488 Slide
17489 \family default
17490  Environment
17491 \end_layout
17492
17493 \begin_layout Standard
17494 If you're expecting this section to teach you how to actually make a presentatio
17495 n, you'll be sorely disappointed.
17496  Naturally, I'll describe all of the ways the 
17497 \family sans
17498 slides
17499 \family default
17500  class can assist you in preparing the materials for a presentation.
17501  Filling in the contents, however, is up to you.
17502  [Then again, that 
17503 \emph on
17504 is
17505 \emph default
17506  the \SpecialChar LyX
17507  philosophy.]
17508 \end_layout
17509
17510 \begin_layout Standard
17511 Choosing the 
17512 \family sans
17513 Slide
17514 \family default
17515  environment [in the manner described in section
17516 \begin_inset space ~
17517 \end_inset
17518
17519
17520 \begin_inset CommandInset ref
17521 LatexCommand ref
17522 reference "sec:slideQuirk"
17523
17524 \end_inset
17525
17526 ] tells \SpecialChar LyX
17527  to begin a new slide [duh].
17528  The label for this environment/
17529 \begin_inset Quotes erd
17530 \end_inset
17531
17532 pseudo-command
17533 \begin_inset Quotes erd
17534 \end_inset
17535
17536  is an 
17537 \begin_inset Quotes eld
17538 \end_inset
17539
17540 ASCII line,
17541 \begin_inset Quotes erd
17542 \end_inset
17543
17544  in cool blue, followed by the label, 
17545 \begin_inset Quotes eld
17546 \end_inset
17547
17548 NewSlide:
17549 \begin_inset Quotes erd
17550 \end_inset
17551
17552 .
17553  Any text or paragraph environments that follow this one go on the new slide.
17554  It's that simple.
17555 \end_layout
17556
17557 \begin_layout Standard
17558 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17559
17560  (this can be specified in the 
17561 \family sans
17562 Paragraph Layout
17563 \family default
17564  dialog).
17565  In fact, you'll want to, once you finish entering the contents of one slide.
17566  If you've entered more text than can physically fit on a slide, the extra
17567  overflows onto a new slide.
17568  I don't recommend doing this, however, since the overflow slide won't have
17569  any page number on it.
17570  Furthermore, it may interfere with any 
17571 \family sans
17572 Overlay
17573 \family default
17574  you've made to accompany the oversized 
17575 \family sans
17576 Slide
17577 \family default
17578 .
17579 \end_layout
17580
17581 \begin_layout Standard
17582 The 
17583 \family sans
17584 Overlay
17585 \family default
17586  and 
17587 \family sans
17588 Note
17589 \family default
17590  environments work the same way as the 
17591 \family sans
17592 Slide
17593 \family default
17594  environment.
17595  They both create an 
17596 \begin_inset Quotes eld
17597 \end_inset
17598
17599 ASCII line
17600 \begin_inset Quotes erd
17601 \end_inset
17602
17603  followed by a label [
17604 \begin_inset Quotes eld
17605 \end_inset
17606
17607 NewOverlay:
17608 \begin_inset Quotes erd
17609 \end_inset
17610
17611  and 
17612 \begin_inset Quotes eld
17613 \end_inset
17614
17615 NewNote:
17616 \begin_inset Quotes erd
17617 \end_inset
17618
17619 , respectively].
17620  The color is a stunning magenta instead of blue, and the 
17621 \begin_inset Quotes eld
17622 \end_inset
17623
17624 ASCII line
17625 \begin_inset Quotes erd
17626 \end_inset
17627
17628  will look different, in style and in length.
17629  The label fonts of all three also differ from one another.
17630 \end_layout
17631
17632 \begin_layout Standard
17633 As with a 
17634 \family sans
17635 Slide
17636 \family default
17637 , if the contents of a 
17638 \family sans
17639 Note
17640 \family default
17641  or 
17642 \family sans
17643 Overlay
17644 \family default
17645  exceed the physical size of a slide or sheet of paper, the extra will overflow
17646  onto a new sheet.
17647  Again, you should avoid this.
17648  It defeats the whole purpose of 
17649 \family sans
17650 Note
17651 \family default
17652 s and 
17653 \family sans
17654 Overlay
17655 \family default
17656 s.
17657 \end_layout
17658
17659 \begin_layout Subsubsection
17660 Using 
17661 \family sans
17662 Overlay
17663 \family default
17664  with 
17665 \family sans
17666 Slide
17667 \end_layout
17668
17669 \begin_layout Standard
17670 The idea behind an 
17671 \family sans
17672 Overlay
17673 \family default
17674  is a slide that sits atop another slide.
17675  Perhaps you wish to discuss a figure on the main 
17676 \family sans
17677 Slide
17678 \family default
17679  before displaying the text associated with it.
17680  One way to accomplish this is tape a flap of dark paper over the part of
17681  the 
17682 \family sans
17683 Slide
17684 \family default
17685  you want to display later.
17686  This method fails, however, if you wish to overlap one graph with another,
17687  for example.
17688  You would then have to fumble while speaking to align the two separate,
17689  overlapping 
17690 \family sans
17691 Slide
17692 \family default
17693 s to align the two graphs.
17694  The use of an 
17695 \family sans
17696 Overlay
17697 \family default
17698  environment in both cases makes life much easier.
17699 \end_layout
17700
17701 \begin_layout Standard
17702 Each 
17703 \family sans
17704 Overlay
17705 \family default
17706  receives the page number of its 
17707 \begin_inset Quotes eld
17708 \end_inset
17709
17710 parent
17711 \begin_inset Quotes erd
17712 \end_inset
17713
17714  
17715 \family sans
17716 Slide
17717 \family default
17718 , appended by 
17719 \begin_inset Quotes eld
17720 \end_inset
17721
17722
17723 \family typewriter
17724 -a
17725 \family default
17726
17727 \begin_inset Quotes erd
17728 \end_inset
17729
17730 .
17731 \begin_inset Foot
17732 status collapsed
17733
17734 \begin_layout Plain Layout
17735 Presumably, mutliple 
17736 \family sans
17737 Overlay
17738 \family default
17739 s would have 
17740 \begin_inset Quotes eld
17741 \end_inset
17742
17743
17744 \family typewriter
17745 -a
17746 \family default
17747
17748 \begin_inset Quotes erd
17749 \end_inset
17750
17751
17752 \begin_inset Quotes eld
17753 \end_inset
17754
17755
17756 \family typewriter
17757 -b
17758 \family default
17759
17760 \begin_inset Quotes erd
17761 \end_inset
17762
17763
17764 \begin_inset Quotes eld
17765 \end_inset
17766
17767
17768 \family typewriter
17769 -c
17770 \family default
17771
17772 \begin_inset Quotes erd
17773 \end_inset
17774
17775 , etc.
17776 \begin_inset space ~
17777 \end_inset
17778
17779 appended to the page number of the parent 
17780 \family sans
17781 Slide
17782 \family default
17783 .
17784  
17785 \end_layout
17786
17787 \end_inset
17788
17789  Clearly, you want the contents of both the 
17790 \family sans
17791 Slide
17792 \family default
17793  and the 
17794 \family sans
17795 Overlay
17796 \family default
17797  to each fit on a single physical slide! You should probably consider an
17798  
17799 \family sans
17800 Overlay
17801 \family default
17802  as 
17803 \begin_inset Quotes eld
17804 \end_inset
17805
17806 part of
17807 \begin_inset Quotes erd
17808 \end_inset
17809
17810  a 
17811 \family sans
17812 Slide
17813 \family default
17814 .
17815  Indeed, the \SpecialChar LyX
17816  
17817 \family sans
17818 slides
17819 \family default
17820  class provides a visual cue for this: the label at the start of an 
17821 \family sans
17822 Overlay
17823 \family default
17824  is shorter than that at the start of a 
17825 \family sans
17826 Slide
17827 \family default
17828 .
17829  Lastly, when you generate printable output, you'll find alignment markers
17830  in all four corners of both the 
17831 \family sans
17832 Overlay
17833 \family default
17834  page and its parent 
17835 \family sans
17836 Slide
17837 \family default
17838 .
17839  These will assist you in lining up the two physical slides.
17840 \end_layout
17841
17842 \begin_layout Standard
17843 The major problem in overlaying two slides is aligning the contents of the
17844  two transparencies.
17845  How much space should you leave for that graph on the second slide? Worse
17846  still, what if you want a graph and a sentence on second slide, but there
17847  is text on the main transparency that goes in between them? You could try
17848  and insert vertical space of the right size.
17849  The better way is to use 
17850 \family sans
17851 InvisibleText
17852 \family default
17853  and 
17854 \family sans
17855 VisibleText
17856 \family default
17857 .
17858 \end_layout
17859
17860 \begin_layout Standard
17861 As their names imply, 
17862 \family sans
17863 InvisibleText
17864 \family default
17865  and 
17866 \family sans
17867 VisibleText
17868 \family default
17869  are two command-like paragraph environments that make all subsequent text
17870  invisible and visible, respectively.
17871  Note from section
17872 \begin_inset space ~
17873 \end_inset
17874
17875
17876 \begin_inset CommandInset ref
17877 LatexCommand ref
17878 reference "sec:slideQuirk"
17879
17880 \end_inset
17881
17882  that you don't place anything 
17883 \emph on
17884 into
17885 \emph default
17886  these two environments, however.
17887  When you create an 
17888 \family sans
17889 InvisibleText
17890 \family default
17891 , it inserts a centered, sky-blue label into the page reading 
17892 \begin_inset Quotes eld
17893 \end_inset
17894
17895 <Invisible Text Follows>
17896 \begin_inset Quotes erd
17897 \end_inset
17898
17899 .
17900  For paragraphs following this label, the parts of the 
17901 \family sans
17902 Slide
17903 \family default
17904  [or 
17905 \family sans
17906 Overlay
17907 \family default
17908 ; it doesn't matter which] where they would be contain instead blank space.
17909  
17910 \end_layout
17911
17912 \begin_layout Standard
17913 For 
17914 \family sans
17915 VisibleText
17916 \family default
17917 , the corresponding centered label is 
17918 \begin_inset Quotes eld
17919 \end_inset
17920
17921 <Visible Text Follows>
17922 \begin_inset Quotes erd
17923 \end_inset
17924
17925  in blazing green.
17926  Paragraphs following this label behave normally.
17927  Note that the beginning of a new 
17928 \family sans
17929 Slide
17930 \family default
17931
17932 \family sans
17933 Overlay
17934 \family default
17935 , or 
17936 \family sans
17937 Note
17938 \family default
17939  automatically shuts off an 
17940 \family sans
17941 InvisibleText
17942 \family default
17943 .
17944  It's therefore not necessary to use 
17945 \family sans
17946 VisibleText
17947 \family default
17948  at the end of a 
17949 \family sans
17950 Slide
17951 \family default
17952 .
17953 \end_layout
17954
17955 \begin_layout Standard
17956 By now, it should be obvious how to create overlay transparencies using
17957  the proper combination of 
17958 \family sans
17959 InvisibleText
17960 \family default
17961  and 
17962 \family sans
17963 VisibleText
17964 \family default
17965  on a 
17966 \family sans
17967 Slide
17968 \family default
17969  and 
17970 \family sans
17971 Overlay
17972 \family default
17973 :
17974 \end_layout
17975
17976 \begin_layout Enumerate
17977 Create a 
17978 \family sans
17979 Slide
17980 \family default
17981 , including everything that will appear on it, whether on the main slide
17982  or on the 
17983 \family sans
17984 Overlay
17985 \family default
17986 .
17987 \end_layout
17988
17989 \begin_layout Enumerate
17990 Before each figure or paragraph that will appear only on the 
17991 \family sans
17992 Overlay
17993 \family default
17994 , insert an 
17995 \family sans
17996 InvisibleText
17997 \family default
17998  environment.
17999  If necessary, insert a 
18000 \family sans
18001 VisibleText
18002 \family default
18003  environment after the 
18004 \family sans
18005 Overlay
18006 \family default
18007 -only text.
18008 \end_layout
18009
18010 \begin_layout Enumerate
18011 Start an 
18012 \family sans
18013 Overlay
18014 \family default
18015  immediately following the 
18016 \family sans
18017 Slide
18018 \family default
18019 .
18020 \end_layout
18021
18022 \begin_layout Enumerate
18023 Copy the contents of this 
18024 \family sans
18025 Slide
18026 \family default
18027  into the 
18028 \family sans
18029 Overlay
18030 \family default
18031 .
18032 \end_layout
18033
18034 \begin_layout Enumerate
18035 Within the 
18036 \family sans
18037 Overlay
18038 \family default
18039 , change all of the 
18040 \family sans
18041 InvisibleText
18042 \family default
18043  lines to 
18044 \family sans
18045 VisibleText
18046 \family default
18047  and vice-versa.
18048 \end_layout
18049
18050 \begin_layout Standard
18051 That's it.
18052  You've just made an 
18053 \family sans
18054 Overlay
18055 \family default
18056 .
18057 \end_layout
18058
18059 \begin_layout Standard
18060 There's one problem with the way I've designed the \SpecialChar LyX
18061  
18062 \family sans
18063 slides
18064 \family default
18065  class: you can't make text in the middle of a paragraph invisible, nor
18066  make text in the middle of an invisible paragraph visible again.
18067  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18068  codes.
18069 \begin_inset Foot
18070 status collapsed
18071
18072 \begin_layout Plain Layout
18073 The commands of interest are: 
18074 \end_layout
18075
18076 \begin_layout Itemize
18077
18078 \family typewriter
18079 {
18080 \backslash
18081 invisible \SpecialChar ldots
18082  }
18083 \end_layout
18084
18085 \begin_layout Itemize
18086
18087 \family typewriter
18088 {
18089 \backslash
18090 visible \SpecialChar ldots
18091  }
18092 \end_layout
18093
18094 \begin_layout Plain Layout
18095 \SpecialChar ldots
18096 and need to be marked as \SpecialChar TeX
18097 .
18098  The text whose 
18099 \begin_inset Quotes eld
18100 \end_inset
18101
18102 visibility
18103 \begin_inset Quotes erd
18104 \end_inset
18105
18106  you wish to change goes in between the brackets [and after the 
18107 \family typewriter
18108
18109 \backslash
18110 invisible
18111 \family default
18112  or 
18113 \family typewriter
18114
18115 \backslash
18116 visible
18117 \family default
18118  command].
18119  If you don't know how to mark text as \SpecialChar TeX
18120 , see the appropriate section of
18121  the 
18122 \emph on
18123 User's Guide
18124 \emph default
18125 .
18126 \end_layout
18127
18128 \end_inset
18129
18130
18131 \end_layout
18132
18133 \begin_layout Subsubsection
18134 Using 
18135 \family sans
18136 Note
18137 \family default
18138  with 
18139 \family sans
18140 Slide
18141 \family default
18142
18143 \begin_inset CommandInset label
18144 LatexCommand label
18145 name "sec:slideNote"
18146
18147 \end_inset
18148
18149
18150 \end_layout
18151
18152 \begin_layout Standard
18153 Like an 
18154 \family sans
18155 Overlay
18156 \family default
18157 , a 
18158 \family sans
18159 Note
18160 \family default
18161  is associated with a 
18162 \begin_inset Quotes eld
18163 \end_inset
18164
18165 parent
18166 \begin_inset Quotes erd
18167 \end_inset
18168
18169  
18170 \family sans
18171 Slide
18172 \family default
18173 .
18174  Here, too, the \SpecialChar LyX
18175  
18176 \family sans
18177 slides
18178 \family default
18179  class provides visual cues.
18180  The label for a 
18181 \family sans
18182 Note
18183 \family default
18184  is shorter than that of a 
18185 \family sans
18186 Slide
18187 \family default
18188  [yet longer than that of an 
18189 \family sans
18190 Overlay
18191 \family default
18192 ] and, like the label of an 
18193 \family sans
18194 Overlay
18195 \family default
18196  is shockingly magenta.
18197  Additionally, the printed 
18198 \family sans
18199 Note
18200 \family default
18201  has the page number of its 
18202 \begin_inset Quotes eld
18203 \end_inset
18204
18205 parent
18206 \begin_inset Quotes erd
18207 \end_inset
18208
18209  
18210 \family sans
18211 Slide
18212 \family default
18213 , appended by 
18214 \begin_inset Quotes eld
18215 \end_inset
18216
18217
18218 \family typewriter
18219 -
18220 \family default
18221 1
18222 \begin_inset Quotes erd
18223 \end_inset
18224
18225
18226 \begin_inset Quotes eld
18227 \end_inset
18228
18229
18230 \family typewriter
18231 -
18232 \family default
18233 2
18234 \begin_inset Quotes erd
18235 \end_inset
18236
18237
18238 \begin_inset Quotes eld
18239 \end_inset
18240
18241
18242 \family typewriter
18243 -
18244 \family default
18245 3
18246 \begin_inset Quotes erd
18247 \end_inset
18248
18249 , etc.
18250  You can have multiple 
18251 \family sans
18252 Note
18253 \family default
18254 s associated with a single 
18255 \family sans
18256 Slide
18257 \family default
18258 , and, as with 
18259 \family sans
18260 Slide
18261 \family default
18262  and 
18263 \family sans
18264 Overlay
18265 \family default
18266 , you'll probably want to break up long 
18267 \family sans
18268 Note
18269 \family default
18270 s so that they fit on a single sheet of paper.
18271 \end_layout
18272
18273 \begin_layout Standard
18274 The purpose of a 
18275 \family sans
18276 Note
18277 \family default
18278  is obvious: it contains anything additional you might want to say about
18279  a 
18280 \family sans
18281 Slide
18282 \family default
18283 .
18284  It could also be used as a sheet of reminders for a particular 
18285 \family sans
18286 Slide
18287 \family default
18288 .
18289  In the case of the latter, you might want to make use of time markers.
18290  Currently, the \SpecialChar LyX
18291  
18292 \family sans
18293 slides
18294 \family default
18295  class has no 
18296 \begin_inset Quotes eld
18297 \end_inset
18298
18299 native
18300 \begin_inset Quotes erd
18301 \end_inset
18302
18303  support for time markers, a 
18304 \noun on
18305 Sli\SpecialChar TeX
18306
18307 \noun default
18308  feature.
18309  So, you'll have to resort to using the \SpecialChar LaTeX
18310  codes.
18311 \end_layout
18312
18313 \begin_layout Standard
18314 To use time markers, you'll need to specify the extra class option 
18315 \begin_inset Quotes eld
18316 \end_inset
18317
18318
18319 \family typewriter
18320 clock
18321 \family default
18322
18323 \begin_inset Quotes erd
18324 \end_inset
18325
18326  [see section
18327 \begin_inset space ~
18328 \end_inset
18329
18330
18331 \begin_inset CommandInset ref
18332 LatexCommand ref
18333 reference "sec:slidesetup"
18334
18335 \end_inset
18336
18337 ].
18338  This option turns on timing marks, which will appear in the lower-left-hand
18339  corner of every 
18340 \family sans
18341 Note
18342 \family default
18343  you generate.
18344  To set what appears in the time marker, you use the \SpecialChar LaTeX
18345  commands 
18346 \begin_inset Quotes eld
18347 \end_inset
18348
18349
18350 \family typewriter
18351
18352 \backslash
18353 settime{}
18354 \family default
18355
18356 \begin_inset Quotes erd
18357 \end_inset
18358
18359  and 
18360 \begin_inset Quotes eld
18361 \end_inset
18362
18363
18364 \family typewriter
18365
18366 \backslash
18367 addtime{}
18368 \family default
18369
18370 \begin_inset Quotes erd
18371 \end_inset
18372
18373 .
18374  The arguments of both commands are time measured in seconds.
18375  
18376 \begin_inset Quotes eld
18377 \end_inset
18378
18379
18380 \family typewriter
18381
18382 \backslash
18383 settime{}
18384 \family default
18385
18386 \begin_inset Quotes erd
18387 \end_inset
18388
18389  sets the time marker to a given time.
18390  
18391 \begin_inset Quotes eld
18392 \end_inset
18393
18394
18395 \family typewriter
18396
18397 \backslash
18398 addtime{}
18399 \family default
18400
18401 \begin_inset Quotes erd
18402 \end_inset
18403
18404  increments the time marker by the specified amount.
18405  Using time markers and 
18406 \family sans
18407 Note
18408 \family default
18409 s in this fashion, you can remind yourself how much time to spend on a particula
18410
18411 \family sans
18412 Slide
18413 \family default
18414 .
18415 \end_layout
18416
18417 \begin_layout Standard
18418 There's one last feature to describe.
18419  Clearly, you'd like to print out all of your 
18420 \family sans
18421 Slide
18422 \family default
18423 s and 
18424 \family sans
18425 Overlay
18426 \family default
18427 s on transparencies while printing all of your 
18428 \family sans
18429 Note
18430 \family default
18431 s on plain paper.
18432  However, a 
18433 \family sans
18434 Note
18435 \family default
18436  
18437 \emph on
18438 must
18439 \emph default
18440  follow the 
18441 \family sans
18442 Slide
18443 \family default
18444  with which it is associated.
18445  What's a person to do?
18446 \end_layout
18447
18448 \begin_layout Standard
18449 Luckily, there are two \SpecialChar LaTeX
18450  commands that allow you to select what to print
18451  out.
18452  Both must be placed into the preamble of your document.
18453  The command 
18454 \begin_inset Quotes eld
18455 \end_inset
18456
18457
18458 \family typewriter
18459
18460 \backslash
18461 onlyslides{
18462 \backslash
18463 slides}
18464 \family default
18465
18466 \begin_inset Quotes erd
18467 \end_inset
18468
18469  will cause the output to contain only the 
18470 \family sans
18471 Slide
18472 \family default
18473 s and 
18474 \family sans
18475 Overlay
18476 \family default
18477 s.
18478  Correspondingly, the command 
18479 \begin_inset Quotes eld
18480 \end_inset
18481
18482
18483 \family typewriter
18484
18485 \backslash
18486 onlynotes{
18487 \backslash
18488 notes}
18489 \family default
18490
18491 \begin_inset Quotes erd
18492 \end_inset
18493
18494  prevents the output of anything but 
18495 \family sans
18496 Note
18497 \family default
18498 s.
18499  I'd advise placing both commands in the preamble and initially comment
18500  both out.
18501  You can then preview your entire presentation as you write.
18502  When you're done writing, you can then uncomment one of the two to select
18503  what you want to print.
18504  I like to uncomment 
18505 \begin_inset Quotes eld
18506 \end_inset
18507
18508
18509 \family typewriter
18510
18511 \backslash
18512 onlyslides{
18513 \backslash
18514 slides}
18515 \family default
18516
18517 \begin_inset Quotes erd
18518 \end_inset
18519
18520  , print to a file with 
18521 \begin_inset Quotes eld
18522 \end_inset
18523
18524
18525 \family typewriter
18526 -slides
18527 \family default
18528
18529 \begin_inset Quotes erd
18530 \end_inset
18531
18532  in its name, comment it back out, then uncomment 
18533 \begin_inset Quotes eld
18534 \end_inset
18535
18536
18537 \family typewriter
18538
18539 \backslash
18540 onlynotes{
18541 \backslash
18542 notes}
18543 \family default
18544
18545 \begin_inset Quotes erd
18546 \end_inset
18547
18548  and print to a 
18549 \begin_inset Quotes eld
18550 \end_inset
18551
18552
18553 \family typewriter
18554 *-notes.ps
18555 \family default
18556
18557 \begin_inset Quotes erd
18558 \end_inset
18559
18560  file.
18561  I can then send either file to a printer, loading transparencies or plain
18562  paper as appropriate.
18563 \end_layout
18564
18565 \begin_layout Standard
18566 You can also provide other arguments to the 
18567 \begin_inset Quotes eld
18568 \end_inset
18569
18570
18571 \family typewriter
18572
18573 \backslash
18574 onlyslides{}
18575 \family default
18576
18577 \begin_inset Quotes erd
18578 \end_inset
18579
18580  and 
18581 \begin_inset Quotes eld
18582 \end_inset
18583
18584
18585 \family typewriter
18586
18587 \backslash
18588 onlynotes{}
18589 \family default
18590
18591 \begin_inset Quotes erd
18592 \end_inset
18593
18594  commands.
18595  See a good \SpecialChar LaTeX
18596  book for details.
18597 \end_layout
18598
18599 \begin_layout Subsection
18600 The 
18601 \family sans
18602 slides
18603 \family default
18604  Class Template File
18605 \end_layout
18606
18607 \begin_layout Standard
18608 I have also provided a template file, 
18609 \begin_inset Quotes eld
18610 \end_inset
18611
18612
18613 \family typewriter
18614 slides.lyx
18615 \family default
18616
18617 \begin_inset Quotes erd
18618 \end_inset
18619
18620 , with the 
18621 \family sans
18622 slides
18623 \family default
18624  class.
18625  To use it, begin your new presentation with 
18626 \family sans
18627 \bar under
18628 F
18629 \bar default
18630 ile\SpecialChar menuseparator
18631 New
18632 \begin_inset space ~
18633 \end_inset
18634
18635 from
18636 \begin_inset space ~
18637 \end_inset
18638
18639
18640 \bar under
18641 T
18642 \bar default
18643 emplate
18644 \family default
18645 .
18646  Your new \SpecialChar LyX
18647  presentation file will contain an example 
18648 \family sans
18649 Slide
18650 \family default
18651  – 
18652 \family sans
18653 Overlay
18654 \family default
18655  – 
18656 \family sans
18657 Note
18658 \family default
18659  triplet.
18660  The 
18661 \family sans
18662 Slide
18663 \family default
18664  and 
18665 \family sans
18666 Overlay
18667 \family default
18668  additionally contain an example of the use of 
18669 \family sans
18670 InvisibleText
18671 \family default
18672  and 
18673 \family sans
18674 VisibleText
18675 \family default
18676 .
18677  Lastly, the preamble will contain:
18678 \end_layout
18679
18680 \begin_layout LyX-Code
18681 % Uncomment to print out only slides and overlays
18682 \end_layout
18683
18684 \begin_layout LyX-Code
18685 %
18686 \end_layout
18687
18688 \begin_layout LyX-Code
18689 %
18690 \backslash
18691 onlyslides{
18692 \backslash
18693 slides}
18694 \begin_inset Newline newline
18695 \end_inset
18696
18697  
18698 \end_layout
18699
18700 \begin_layout LyX-Code
18701 % Uncomment to print out only notes
18702 \end_layout
18703
18704 \begin_layout LyX-Code
18705 %
18706 \end_layout
18707
18708 \begin_layout LyX-Code
18709 %
18710 \backslash
18711 onlynotes{
18712 \backslash
18713 notes}
18714 \end_layout
18715
18716 \begin_layout Standard
18717 One final thing: I created this class to support the \SpecialChar LaTeX2e
18718  
18719 \begin_inset Quotes eld
18720 \end_inset
18721
18722
18723 \noun on
18724 Sli\SpecialChar TeX
18725
18726 \noun default
18727  emulation
18728 \begin_inset Quotes erd
18729 \end_inset
18730
18731  class, one of the built-in \SpecialChar LaTeX2e
18732  classes.
18733  Neither I nor the rest of the \SpecialChar LyX
18734  Team endorse or oppose the use of this built-in
18735  slide class.
18736  It's here if you want it or need it.
18737  There exist other \SpecialChar LaTeX2e
18738  classes for creating presentations, such as the 
18739 \family sans
18740 Foils
18741 \family default
18742  class [see section
18743 \begin_inset space ~
18744 \end_inset
18745
18746
18747 \begin_inset CommandInset ref
18748 LatexCommand ref
18749 reference "sec:foiltex"
18750
18751 \end_inset
18752
18753 ] or the 
18754 \begin_inset Quotes eld
18755 \end_inset
18756
18757
18758 \family typewriter
18759 seminar
18760 \family default
18761
18762 \begin_inset Quotes erd
18763 \end_inset
18764
18765  package [present on some \SpecialChar TeX
18766  distributions].
18767  The latter is not yet supported under \SpecialChar LyX
18768 .
18769 \begin_inset Foot
18770 status collapsed
18771
18772 \begin_layout Plain Layout
18773 Perhaps you can take on the task\SpecialChar ldots
18774
18775 \end_layout
18776
18777 \end_inset
18778
18779  I know nothing about these other classes.
18780  Try them out to see what sort of alternative they provide.
18781 \end_layout
18782
18783 \begin_layout Chapter
18784 \SpecialChar LyX
18785  Features needing Extra Software
18786 \end_layout
18787
18788 \begin_layout Section
18789 Checking \SpecialChar TeX
18790
18791 \end_layout
18792
18793 \begin_layout Standard
18794 by 
18795 \noun on
18796 Asger Alstrup
18797 \end_layout
18798
18799 \begin_layout Subsection
18800 Introduction
18801 \end_layout
18802
18803 \begin_layout Standard
18804 If you have the 
18805 \family typewriter
18806 chktex
18807 \family default
18808  program installed
18809 \begin_inset Foot
18810 status collapsed
18811
18812 \begin_layout Plain Layout
18813
18814 \family typewriter
18815 chktex
18816 \family default
18817  is not yet available when you are using the \SpecialChar LaTeX
18818  distribution MiK\SpecialChar TeX
18819 .
18820 \end_layout
18821
18822 \end_inset
18823
18824 , you'll find in the 
18825 \family sans
18826 Tools
18827 \family default
18828  menu the entry: 
18829 \family sans
18830 Check
18831 \begin_inset space ~
18832 \end_inset
18833
18834
18835 \change_deleted -712698321 1437633476
18836 \SpecialChar TeX
18837
18838 \change_inserted -712698321 1437633477
18839 TeX
18840 \change_unchanged
18841
18842 \family default
18843 .
18844  You can get 
18845 \family typewriter
18846 chktex
18847 \family default
18848  from CTAN,
18849 \begin_inset Newline newline
18850 \end_inset
18851
18852
18853 \begin_inset CommandInset href
18854 LatexCommand href
18855 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18856
18857 \end_inset
18858
18859 .
18860 \end_layout
18861
18862 \begin_layout Standard
18863 The 
18864 \family sans
18865 Chk\SpecialChar TeX
18866
18867 \family default
18868  package is a program that was written by 
18869 \begin_inset Flex Noun
18870 status collapsed
18871
18872 \begin_layout Plain Layout
18873 Jens T.
18874 \begin_inset space ~
18875 \end_inset
18876
18877 Berger Thielemann
18878 \end_layout
18879
18880 \end_inset
18881
18882  in frustration because some constructs in \SpecialChar LaTeX
18883  are sometimes non-intuitive,
18884  and easy to forget.
18885  The program runs over your \SpecialChar LaTeX
18886  file, checks the integrity of the file, and
18887  flags some common errors.
18888  In other technical words, it is 
18889 \family typewriter
18890 lint
18891 \family default
18892  for \SpecialChar LaTeX
18893 .
18894 \end_layout
18895
18896 \begin_layout Standard
18897 Well, what is a syntax checker doing in \SpecialChar LyX
18898  which is supposed to produce correct
18899  \SpecialChar LaTeX
18900  anyways? The answer is simple: Just as 
18901 \family typewriter
18902 Lint
18903 \family default
18904  not only checks the 
18905 \emph on
18906 syntax
18907 \emph default
18908  of C programs, but also does 
18909 \emph on
18910 semantic
18911 \emph default
18912  checks for type-errors, 
18913 \family sans
18914 Chk\SpecialChar TeX
18915
18916 \family default
18917  catches some common 
18918 \emph on
18919 typographic
18920 \emph default
18921  errors, in addition to the syntactical ones.
18922  Specifically, 
18923 \family sans
18924 Chk\SpecialChar TeX
18925
18926 \family default
18927  is capable of detecting several common errors, such as
18928 \end_layout
18929
18930 \begin_layout Itemize
18931 Ellipsis detection:
18932 \begin_inset Newline newline
18933 \end_inset
18934
18935 Use \SpecialChar ldots
18936  instead of ...
18937 \end_layout
18938
18939 \begin_layout Itemize
18940 No space in front of/after parenthesis:
18941 \begin_inset Newline newline
18942 \end_inset
18943
18944 ( wrong spacing )
18945 \end_layout
18946
18947 \begin_layout Itemize
18948 Enforcement of normal space after common abbreviations:
18949 \begin_inset Newline newline
18950 \end_inset
18951
18952 e.
18953 \begin_inset space \thinspace{}
18954 \end_inset
18955
18956 g.
18957 \begin_inset space \space{}
18958 \end_inset
18959
18960 is too wide spacing.
18961 \end_layout
18962
18963 \begin_layout Itemize
18964 Enforcement of end-of-sentence space when the last sentence ends with a
18965  capital letter:
18966 \begin_inset Newline newline
18967 \end_inset
18968
18969 This is a TEST.
18970  And this is wrong spacing.
18971 \end_layout
18972
18973 \begin_layout Itemize
18974 Space in front of labels and similar commands:
18975 \begin_inset Newline newline
18976 \end_inset
18977
18978 The label should stick right up to the text to avoid falling to a wrong
18979  page.
18980  
18981 \begin_inset CommandInset label
18982 LatexCommand label
18983 name "sec:chktex"
18984
18985 \end_inset
18986
18987  
18988 \begin_inset Foot
18989 status collapsed
18990
18991 \begin_layout Plain Layout
18992 This footnote is in danger of falling off to a wrong page
18993 \end_layout
18994
18995 \end_inset
18996
18997  The label is separated too much.
18998 \end_layout
18999
19000 \begin_layout Itemize
19001 Space in front of references, instead of hard spaces:
19002 \begin_inset Newline newline
19003 \end_inset
19004
19005 If you have bad luck, the text will break right between the referenced text
19006  and reference number, and that's a pity.
19007  See section 
19008 \begin_inset CommandInset ref
19009 LatexCommand ref
19010 reference "sec:chktex"
19011
19012 \end_inset
19013
19014 .
19015 \end_layout
19016
19017 \begin_layout Itemize
19018 Use of 
19019 \begin_inset Quotes eld
19020 \end_inset
19021
19022 x
19023 \begin_inset Quotes erd
19024 \end_inset
19025
19026  instead of 
19027 \begin_inset Formula $\times$
19028 \end_inset
19029
19030  between numbers:
19031 \begin_inset Newline newline
19032 \end_inset
19033
19034 2x2 looks cheap compared to 
19035 \begin_inset Formula $2\times2$
19036 \end_inset
19037
19038 .
19039 \end_layout
19040
19041 \begin_layout Standard
19042 and more \SpecialChar ldots
19043  It is an invaluable tool when you are 
19044 \begin_inset Quotes eld
19045 \end_inset
19046
19047 finishing up
19048 \begin_inset Quotes erd
19049 \end_inset
19050
19051  your document before printing, and you should run it right after the obligatory
19052  spelling check, and before you go fine tuning the typesetting.
19053 \end_layout
19054
19055 \begin_layout Subsection
19056 How to use it
19057 \end_layout
19058
19059 \begin_layout Standard
19060 If you have the program installed, usage is as simple as choosing 
19061 \family sans
19062 Tools\SpecialChar menuseparator
19063 Check
19064 \begin_inset space ~
19065 \end_inset
19066
19067
19068 \change_deleted -712698321 1437633488
19069 \SpecialChar TeX
19070
19071 \change_inserted -712698321 1437633488
19072 TeX
19073 \change_unchanged
19074
19075 \family default
19076 .
19077  This will make \SpecialChar LyX
19078  generate a \SpecialChar LaTeX
19079  file of your document, start 
19080 \family sans
19081 Chk\SpecialChar TeX
19082
19083 \family default
19084  to check it, and then make \SpecialChar LyX
19085  insert 
19086 \begin_inset Quotes eld
19087 \end_inset
19088
19089 error boxes
19090 \begin_inset Quotes erd
19091 \end_inset
19092
19093  with the warnings from 
19094 \family sans
19095 Chk\SpecialChar TeX
19096
19097 \family default
19098 , if there were any.
19099  The warnings will be placed close to the point of the mistake, and you
19100  can quickly find them by using the 
19101 \family sans
19102 Navigate\SpecialChar menuseparator
19103 Error
19104 \family default
19105  menu item, or the shortcut key 
19106 \family sans
19107 C-g
19108 \family default
19109  from the default 
19110 \family typewriter
19111 cua
19112 \family default
19113  bind file.
19114  Open the error boxes by clicking on them with the mouse, or use the shortcut
19115  key 
19116 \family sans
19117 C-i
19118 \family default
19119  from 
19120 \family typewriter
19121 cua
19122 \family default
19123  bindings, or the corresponding 
19124 \family sans
19125 C-o
19126 \family default
19127  for the alternate 
19128 \family typewriter
19129 emacs
19130 \family default
19131  bind file.
19132  Read the warning and correct the mistake, if it is a mistake.
19133  If you have trouble understanding what the warning is about, you can safely
19134  ignore it.
19135  Remember that there is a hidden layer between the document on screen and
19136  the technical details in invoking 
19137 \family sans
19138 Chk\SpecialChar TeX
19139
19140 \family default
19141 , and this gap can make some warnings seem arcane or just plain silly.
19142 \end_layout
19143
19144 \begin_layout Standard
19145 This document is an excellent testing bed for the feature, and it should
19146  provide quite a few warnings for you to fiddle with.
19147  Since computers are only so smart, expect most of the warnings to be false
19148  alarms, though.
19149 \end_layout
19150
19151 \begin_layout Subsection
19152 How to fine tune it
19153 \end_layout
19154
19155 \begin_layout Standard
19156 Sometimes, you'll find that 
19157 \family sans
19158 Chk\SpecialChar TeX
19159
19160 \family default
19161  makes more noise than suits your mood.
19162  Then you can choose not to use it, wait until your mood changes, or try
19163  to customize 
19164 \family sans
19165 Chk\SpecialChar TeX
19166
19167 \family default
19168  to get better along with you.
19169 \end_layout
19170
19171 \begin_layout Standard
19172 Although 
19173 \family sans
19174 Chk\SpecialChar TeX
19175
19176 \family default
19177  
19178 \emph on
19179 is
19180 \emph default
19181  very configurable and extensible, you should not expect to solve all problems
19182  with 
19183 \family sans
19184 Chk\SpecialChar TeX
19185
19186 \family default
19187  in \SpecialChar LyX
19188  this way.
19189  Since \SpecialChar LyX
19190  has to generate a somewhat special \SpecialChar LaTeX
19191  file to be able to match the
19192  line numbers from the 
19193 \family sans
19194 Chk\SpecialChar TeX
19195
19196 \family default
19197  output
19198 \begin_inset Foot
19199 status collapsed
19200
19201 \begin_layout Plain Layout
19202 You can inspect the specific output from 
19203 \family sans
19204 chktex
19205 \family default
19206  by using 
19207 \family sans
19208 Document\SpecialChar menuseparator
19209 \SpecialChar LaTeX
19210
19211 \begin_inset space ~
19212 \end_inset
19213
19214 Log
19215 \family default
19216  right after a 
19217 \family sans
19218 chktex
19219 \family default
19220  run.
19221 \end_layout
19222
19223 \end_inset
19224
19225  to the internal document structure, some of the warnings will not appear
19226  correctly.
19227  There are two things you can do about this:
19228 \end_layout
19229
19230 \begin_layout Itemize
19231 Fine tune the 
19232 \family sans
19233 Chk\SpecialChar TeX
19234
19235 \family default
19236  invocation command line in 
19237 \begin_inset Flex MenuItem
19238 status collapsed
19239
19240 \begin_layout Plain Layout
19241 Tools\SpecialChar menuseparator
19242 Preferences\SpecialChar menuseparator
19243 Output\SpecialChar menuseparator
19244
19245 \change_deleted -712698321 1437633504
19246 \SpecialChar LaTeX
19247
19248 \change_inserted -712698321 1437633507
19249 LaTeX
19250 \change_unchanged
19251 \SpecialChar menuseparator
19252 Check
19253 \change_deleted -712698321 1437633509
19254 \SpecialChar TeX
19255
19256 \change_inserted -712698321 1437633511
19257 TeX
19258 \change_unchanged
19259  command
19260 \end_layout
19261
19262 \end_inset
19263
19264 , or the global 
19265 \family sans
19266 Chk\SpecialChar TeX
19267
19268 \family default
19269  installation configuration file (usually with the file 
19270 \family typewriter
19271 chktexrc
19272 \family default
19273 ).
19274  See below to learn what warnings can be enabled and disabled on the command
19275  line.
19276 \end_layout
19277
19278 \begin_layout Itemize
19279 Export your document as a raw \SpecialChar LaTeX
19280  file using 
19281 \family sans
19282 File\SpecialChar menuseparator
19283 Export\SpecialChar menuseparator
19284 \SpecialChar LaTeX
19285
19286 \family default
19287  and run 
19288 \family typewriter
19289 chktex
19290 \family default
19291  manually on that.
19292  Invoked in this way, it can be a hassle to find the corresponding place
19293  in the document inside \SpecialChar LyX
19294 , but with a little patience, you should be able
19295  to do it.
19296 \end_layout
19297
19298 \begin_layout Standard
19299 Here follows the warning messages that can be enabled and disabled in 
19300 \family sans
19301 Preferences
19302 \family default
19303 .
19304  Use 
19305 \family typewriter
19306 -n#
19307 \family default
19308  to disable a warning, and 
19309 \family typewriter
19310 -w#
19311 \family default
19312  to enable a warning.
19313  The emphasized entries are disabled by default, because the default is
19314  "
19315 \family typewriter
19316 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19317 \family default
19318 ".
19319 \end_layout
19320
19321 \begin_layout Standard
19322 Notice that you should only use the options that enable and disable warnings,
19323  because \SpecialChar LyX
19324  relies on some of the other command line parameters to be set
19325  in a specific way to have a chance to communicate with 
19326 \family typewriter
19327 chktex
19328 \family default
19329 .
19330 \end_layout
19331
19332 \begin_layout Enumerate
19333
19334 \size small
19335 \emph on
19336 Command terminated with space.
19337 \end_layout
19338
19339 \begin_layout Enumerate
19340
19341 \size small
19342 Non-breaking space (
19343 \begin_inset Quotes eld
19344 \end_inset
19345
19346
19347 \family typewriter
19348 ~
19349 \family default
19350
19351 \begin_inset Quotes erd
19352 \end_inset
19353
19354 ) should have been used.
19355 \end_layout
19356
19357 \begin_layout Enumerate
19358
19359 \size small
19360 \emph on
19361 You should enclose the previous parenthesis with 
19362 \begin_inset Quotes eld
19363 \end_inset
19364
19365
19366 \family typewriter
19367 {}
19368 \family default
19369
19370 \begin_inset Quotes erd
19371 \end_inset
19372
19373 .
19374 \end_layout
19375
19376 \begin_layout Enumerate
19377
19378 \size small
19379 Italic correction (
19380 \begin_inset Quotes eld
19381 \end_inset
19382
19383
19384 \family typewriter
19385
19386 \backslash
19387 /
19388 \family default
19389
19390 \begin_inset Quotes erd
19391 \end_inset
19392
19393 ) found in non-italic buffer.
19394 \end_layout
19395
19396 \begin_layout Enumerate
19397
19398 \size small
19399 Italic correction (
19400 \begin_inset Quotes eld
19401 \end_inset
19402
19403
19404 \family typewriter
19405
19406 \backslash
19407 /
19408 \family default
19409
19410 \begin_inset Quotes erd
19411 \end_inset
19412
19413 ) found more than once.
19414 \end_layout
19415
19416 \begin_layout Enumerate
19417
19418 \size small
19419 \emph on
19420 No italic correction (
19421 \begin_inset Quotes eld
19422 \end_inset
19423
19424
19425 \family typewriter
19426
19427 \backslash
19428 /
19429 \family default
19430
19431 \begin_inset Quotes erd
19432 \end_inset
19433
19434 ) found.
19435 \end_layout
19436
19437 \begin_layout Enumerate
19438
19439 \size small
19440 Accent command 
19441 \begin_inset Quotes eld
19442 \end_inset
19443
19444
19445 \family typewriter
19446 cmd
19447 \family default
19448
19449 \begin_inset Quotes erd
19450 \end_inset
19451
19452  needs use of 
19453 \begin_inset Quotes eld
19454 \end_inset
19455
19456
19457 \family typewriter
19458 cmd
19459 \family default
19460
19461 \begin_inset Quotes erd
19462 \end_inset
19463
19464 .
19465 \end_layout
19466
19467 \begin_layout Enumerate
19468
19469 \size small
19470 Wrong length of dash may have been used.
19471 \end_layout
19472
19473 \begin_layout Enumerate
19474
19475 \size small
19476 \emph on
19477 \begin_inset Quotes eld
19478 \end_inset
19479
19480
19481 \family typewriter
19482 %s
19483 \family default
19484
19485 \begin_inset Quotes erd
19486 \end_inset
19487
19488  expected, found 
19489 \begin_inset Quotes eld
19490 \end_inset
19491
19492
19493 \family typewriter
19494 %s
19495 \family default
19496
19497 \begin_inset Quotes erd
19498 \end_inset
19499
19500 .
19501 \end_layout
19502
19503 \begin_layout Enumerate
19504
19505 \size small
19506 Solo 
19507 \begin_inset Quotes eld
19508 \end_inset
19509
19510
19511 \family typewriter
19512 %s
19513 \family default
19514
19515 \begin_inset Quotes erd
19516 \end_inset
19517
19518  found.
19519 \end_layout
19520
19521 \begin_layout Enumerate
19522
19523 \size small
19524 You should use 
19525 \begin_inset Quotes eld
19526 \end_inset
19527
19528
19529 \family typewriter
19530 %s
19531 \family default
19532
19533 \begin_inset Quotes erd
19534 \end_inset
19535
19536  to achieve an ellipsis.
19537 \end_layout
19538
19539 \begin_layout Enumerate
19540
19541 \size small
19542 Inter-word spacing (
19543 \begin_inset Quotes eld
19544 \end_inset
19545
19546
19547 \family typewriter
19548
19549 \backslash
19550
19551 \family default
19552  
19553 \begin_inset Quotes eld
19554 \end_inset
19555
19556 ) should perhaps be used.
19557 \end_layout
19558
19559 \begin_layout Enumerate
19560
19561 \size small
19562 Inter-sentence spacing (
19563 \begin_inset Quotes eld
19564 \end_inset
19565
19566
19567 \family typewriter
19568
19569 \backslash
19570 @
19571 \family default
19572
19573 \begin_inset Quotes erd
19574 \end_inset
19575
19576 ) should perhaps be used.
19577 \end_layout
19578
19579 \begin_layout Enumerate
19580
19581 \size small
19582 Could not find argument for command.
19583 \end_layout
19584
19585 \begin_layout Enumerate
19586
19587 \size small
19588 No match found for 
19589 \begin_inset Quotes eld
19590 \end_inset
19591
19592
19593 \family typewriter
19594 %s
19595 \family default
19596
19597 \begin_inset Quotes erd
19598 \end_inset
19599
19600 .
19601 \end_layout
19602
19603 \begin_layout Enumerate
19604
19605 \size small
19606 Math mode still on at end of \SpecialChar LaTeX
19607  file.
19608 \end_layout
19609
19610 \begin_layout Enumerate
19611
19612 \size small
19613 Number of 
19614 \begin_inset Quotes eld
19615 \end_inset
19616
19617
19618 \family typewriter
19619 char
19620 \family default
19621
19622 \begin_inset Quotes erd
19623 \end_inset
19624
19625  doesn't match the number of 
19626 \begin_inset Quotes eld
19627 \end_inset
19628
19629
19630 \family typewriter
19631 char
19632 \family default
19633
19634 \begin_inset Quotes erd
19635 \end_inset
19636
19637 .
19638 \end_layout
19639
19640 \begin_layout Enumerate
19641
19642 \size small
19643 You should use either 
19644 \family typewriter
19645
19646 \begin_inset Quotes eld
19647 \end_inset
19648
19649
19650 \family default
19651  or 
19652 \family typewriter
19653
19654 \begin_inset Quotes erd
19655 \end_inset
19656
19657
19658 \family default
19659  as an alternative to 
19660 \begin_inset Quotes eld
19661 \end_inset
19662
19663
19664 \family typewriter
19665 "
19666 \family default
19667
19668 \begin_inset Quotes erd
19669 \end_inset
19670
19671 .
19672 \end_layout
19673
19674 \begin_layout Enumerate
19675
19676 \size small
19677 You should use "
19678 \family typewriter
19679 '
19680 \family default
19681 " (ASCII 39) instead of "
19682 \family typewriter
19683 ´
19684 \family default
19685 " (ASCII 180).
19686 \end_layout
19687
19688 \begin_layout Enumerate
19689
19690 \size small
19691 User-specified pattern found.
19692 \end_layout
19693
19694 \begin_layout Enumerate
19695
19696 \size small
19697 This command might not be intended.
19698 \end_layout
19699
19700 \begin_layout Enumerate
19701
19702 \size small
19703 \emph on
19704 Comment displayed.
19705 \end_layout
19706
19707 \begin_layout Enumerate
19708
19709 \size small
19710 Either 
19711 \family typewriter
19712 ''
19713 \backslash
19714 ,'
19715 \family default
19716  or 
19717 \family typewriter
19718 '
19719 \backslash
19720 ,''
19721 \family default
19722  will look better.
19723 \end_layout
19724
19725 \begin_layout Enumerate
19726
19727 \size small
19728 Delete this space to maintain correct page references.
19729 \end_layout
19730
19731 \begin_layout Enumerate
19732
19733 \size small
19734 \emph on
19735 You might wish to put this between a pair of 
19736 \begin_inset Quotes eld
19737 \end_inset
19738
19739
19740 \family typewriter
19741 {}
19742 \family default
19743
19744 \begin_inset Quotes erd
19745 \end_inset
19746
19747 .
19748 \end_layout
19749
19750 \begin_layout Enumerate
19751
19752 \size small
19753 You ought to remove spaces in front of punctuation.
19754 \end_layout
19755
19756 \begin_layout Enumerate
19757
19758 \size small
19759 Could not execute \SpecialChar LaTeX
19760  command.
19761 \end_layout
19762
19763 \begin_layout Enumerate
19764
19765 \size small
19766 Don't use 
19767 \family typewriter
19768
19769 \backslash
19770 /
19771 \family default
19772  in front of small punctuation.
19773 \end_layout
19774
19775 \begin_layout Enumerate
19776
19777 \family typewriter
19778 \size small
19779 $
19780 \backslash
19781 times$
19782 \family default
19783  may look prettier here.
19784 \end_layout
19785
19786 \begin_layout Enumerate
19787
19788 \size small
19789 \emph on
19790 Multiple spaces detected in output.
19791 \end_layout
19792
19793 \begin_layout Enumerate
19794
19795 \size small
19796 This text may be ignored.
19797 \end_layout
19798
19799 \begin_layout Enumerate
19800
19801 \size small
19802 Use 
19803 \family typewriter
19804
19805 \begin_inset Quotes eld
19806 \end_inset
19807
19808
19809 \family default
19810  to begin quotation, not 
19811 \family typewriter
19812 '
19813 \family default
19814 .
19815 \end_layout
19816
19817 \begin_layout Enumerate
19818
19819 \size small
19820 Use 
19821 \family typewriter
19822 '
19823 \family default
19824  to end quotation, not 
19825 \family typewriter
19826
19827 \begin_inset Quotes eld
19828 \end_inset
19829
19830
19831 \family default
19832 .
19833 \end_layout
19834
19835 \begin_layout Enumerate
19836
19837 \size small
19838 Don't mix quotes.
19839 \end_layout
19840
19841 \begin_layout Enumerate
19842
19843 \size small
19844 You should perhaps use 
19845 \begin_inset Quotes eld
19846 \end_inset
19847
19848
19849 \family typewriter
19850 cmd
19851 \family default
19852
19853 \begin_inset Quotes erd
19854 \end_inset
19855
19856  instead.
19857 \end_layout
19858
19859 \begin_layout Enumerate
19860
19861 \size small
19862 You should put a space in front of/after parenthesis.
19863 \end_layout
19864
19865 \begin_layout Enumerate
19866
19867 \size small
19868 You should avoid spaces in front of/after parenthesis.
19869 \end_layout
19870
19871 \begin_layout Enumerate
19872
19873 \size small
19874 \emph on
19875 You should not use punctuation in front of/after quotes.
19876 \end_layout
19877
19878 \begin_layout Enumerate
19879
19880 \size small
19881 Double space found.
19882 \end_layout
19883
19884 \begin_layout Enumerate
19885
19886 \size small
19887 You should put punctuation outside inner/inside display math mode.
19888 \end_layout
19889
19890 \begin_layout Enumerate
19891
19892 \size small
19893 You ought to not use primitive \SpecialChar TeX
19894  in \SpecialChar LaTeX
19895  code.
19896 \end_layout
19897
19898 \begin_layout Enumerate
19899
19900 \size small
19901 You should remove spaces in front of 
19902 \begin_inset Quotes eld
19903 \end_inset
19904
19905
19906 \family typewriter
19907 %s
19908 \family default
19909
19910 \begin_inset Quotes erd
19911 \end_inset
19912
19913
19914 \end_layout
19915
19916 \begin_layout Enumerate
19917
19918 \size small
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  is normally not followed by 
19931 \begin_inset Quotes eld
19932 \end_inset
19933
19934
19935 \family typewriter
19936 %c
19937 \family default
19938
19939 \begin_inset Quotes erd
19940 \end_inset
19941
19942 .
19943 \end_layout
19944
19945 \begin_layout Standard
19946 In later versions of \SpecialChar LyX
19947 , we hope to provide a more complete interface to this
19948  tool (and it's smaller cousin 
19949 \family typewriter
19950 lacheck
19951 \family default
19952 ) to exploit the full power of it.
19953  But it's not exactly useless as it is now: go try it on one of your existing
19954  documents of a certain length and be surprised.
19955 \end_layout
19956
19957 \begin_layout Section
19958 Version Control in \SpecialChar LyX
19959
19960 \end_layout
19961
19962 \begin_layout Standard
19963 by
19964 \noun on
19965  Lars Gullik Bjønnes 
19966 \noun default
19967 and 
19968 \noun on
19969 Pavel Sanda
19970 \end_layout
19971
19972 \begin_layout Subsection
19973 Introduction
19974 \end_layout
19975
19976 \begin_layout Standard
19977 \SpecialChar LyX
19978  supports some of the most basic RCS/CVS/SVN/GIT commands.
19979  If you need something a bit more sophisticated you will have to do that
19980  manually in a terminal.
19981 \end_layout
19982
19983 \begin_layout Standard
19984 Also note that CVS support is not as good as subversion support so we advise
19985  using SVN instead.
19986  A good place to start learning Subversion is SVN Book
19987 \begin_inset Foot
19988 status open
19989
19990 \begin_layout Plain Layout
19991 \begin_inset CommandInset href
19992 LatexCommand href
19993 target "http://svnbook.red-bean.com/"
19994
19995 \end_inset
19996
19997
19998 \end_layout
19999
20000 \end_inset
20001
20002 .
20003  In the case of RCS you should read 
20004 \begin_inset Quotes eld
20005 \end_inset
20006
20007 rcsintro
20008 \begin_inset Quotes erd
20009 \end_inset
20010
20011  (a man file, read it with 
20012 \family typewriter
20013 man rcsintro
20014 \family default
20015 ).
20016  This file describes all the basic features of RCS.
20017  You should especially notice the comment about a RCS directory, and the
20018  notion of a master RCS file (the file ending in 
20019 \family typewriter
20020 ,v
20021 \family default
20022 ).
20023 \end_layout
20024
20025 \begin_layout Standard
20026 Before you begin to use the version control features in \SpecialChar LyX
20027 , you should be
20028  familiar with RCS/CVS/SVN/GIT usage.
20029  The implementation in \SpecialChar LyX
20030  assumes a recent version of the GNU RCS or CVS/SVN
20031  package — no guarantees are made for older versions.
20032  Most of the log messages are not currently displayed after operations —
20033  you can check them in the Messages pane if unsure.
20034  Regular users of version control will appreciate VC toolbar, which can
20035  be enabled via 
20036 \family sans
20037 View\SpecialChar menuseparator
20038 Toolbars\SpecialChar menuseparator
20039 Version
20040 \begin_inset space ~
20041 \end_inset
20042
20043 Control
20044 \family default
20045 .
20046 \end_layout
20047
20048 \begin_layout Standard
20049 For introducing your own external commands consult vc-command in the manual
20050  of \SpecialChar LyX
20051  functions.
20052 \end_layout
20053
20054 \begin_layout Subsection
20055 RCS commands in \SpecialChar LyX
20056
20057 \end_layout
20058
20059 \begin_layout Standard
20060 The following sections describe the RCS commands supported by \SpecialChar LyX
20061 .
20062  You can find them in the 
20063 \family sans
20064 File\SpecialChar menuseparator
20065 Version
20066 \begin_inset space ~
20067 \end_inset
20068
20069 Control
20070 \family default
20071  submenu.
20072  \SpecialChar LyX
20073  was tested against RCS 5.7/5.8
20074 \begin_inset Foot
20075 status open
20076
20077 \begin_layout Plain Layout
20078 Note that old DOS / MS Windows builds (5.7) need to setup environment variables
20079  in order to work properly with \SpecialChar LyX
20080 .
20081  In particular time zone (TZ) should be set and more importantly RCSINIT
20082  in order to change default archive location ("SET RCSINIT=-x,v/") — \SpecialChar LyX
20083  expects
20084  archive to be found in file.lyx,v within the original document directory.
20085  See also README shipped with Windows RCS binaries.
20086 \end_layout
20087
20088 \end_inset
20089
20090 .
20091 \end_layout
20092
20093 \begin_layout Subsubsection
20094
20095 \family sans
20096 Register
20097 \end_layout
20098
20099 \begin_layout Standard
20100 If your document is not under revision control, this is the only item shown
20101  in the menu.
20102  And if it is under revision control, the 
20103 \family sans
20104 Register
20105 \family default
20106  item is not visible.
20107  
20108 \end_layout
20109
20110 \begin_layout Standard
20111 This command registers your document with RCS (unless you are under the
20112  directory managed by CVS)\SpecialChar endofsentence
20113  You are asked interactively to supply an initial
20114  description of the document.
20115  The document is now set in Read-Only mode and you have to 
20116 \family sans
20117 Check
20118 \begin_inset space ~
20119 \end_inset
20120
20121 Out
20122 \begin_inset space ~
20123 \end_inset
20124
20125 For
20126 \begin_inset space ~
20127 \end_inset
20128
20129 Edit
20130 \family default
20131 , before making any changes to it.
20132  A document under revision control has a 
20133 \begin_inset Quotes eld
20134 \end_inset
20135
20136 [RCS:<version> <locker>]
20137 \begin_inset Quotes erd
20138 \end_inset
20139
20140  item tagged to the filename in the minibuffer.
20141 \end_layout
20142
20143 \begin_layout Standard
20144 RCS command that is run: 
20145 \family typewriter
20146 ci -q -u -i -t-"<initial description>" <file-name>
20147 \end_layout
20148
20149 \begin_layout Standard
20150 Read 
20151 \family typewriter
20152 man ci
20153 \family default
20154  to understand the switches.
20155  
20156 \end_layout
20157
20158 \begin_layout Subsubsection
20159
20160 \family sans
20161 Check In Changes
20162 \end_layout
20163
20164 \begin_layout Standard
20165 When you are finished editing a file, you check in your changes.
20166  When you do this, you are asked for a description of the changes.
20167  This is stored in the history log.
20168  The version number is bumped, your changes are applied to the master RCS
20169  file, the document is unlocked and set to Read-Only mode.
20170 \end_layout
20171
20172 \begin_layout Standard
20173 RCS command: 
20174 \family typewriter
20175 ci -q -u -m"<description>" <file-name>
20176 \end_layout
20177
20178 \begin_layout Subsubsection
20179
20180 \family sans
20181 Check Out For Edit
20182 \end_layout
20183
20184 \begin_layout Standard
20185 By doing this you lock the document so that only you can edit it.
20186  This will also make the document Read-Write only for you.
20187  You will usually continue editing for a while and when you are finished
20188  you check in your changes.
20189  The status line is changed to reflect that you have locked the file.
20190 \end_layout
20191
20192 \begin_layout Standard
20193 RCS command: 
20194 \family typewriter
20195 co -q -l <file-name>
20196 \end_layout
20197
20198 \begin_layout Subsubsection
20199
20200 \family sans
20201 Revert To Repository Version
20202 \end_layout
20203
20204 \begin_layout Standard
20205 This will discard all changes made to the document since the last check
20206  in.
20207  You get a warning before changes are discarded.
20208 \end_layout
20209
20210 \begin_layout Standard
20211 RCS command: 
20212 \family typewriter
20213 co -f -u<version> <file-name>
20214 \end_layout
20215
20216 \begin_layout Subsubsection
20217
20218 \family sans
20219 Copy
20220 \end_layout
20221
20222 \begin_layout Standard
20223 This will create a copy of the current document.
20224  Since RCS does not support copy operations natively, the version history
20225  is not preserved, and the copy is added as a new file.
20226  It requires a clean document without any changes since the last checkin.
20227  You are asked for a file name and a description of the copy operation.
20228  After that the copy is created, both locally and in the repository.
20229  If the parent directories of the copied and original document differ, all
20230  relative paths of included files of the copy are adjusted (like in 
20231 \family sans
20232 File\SpecialChar menuseparator
20233 Save As
20234 \family default
20235 \SpecialChar ldots
20236 ).
20237  Finally, the copy is loaded instead of the original document.
20238 \end_layout
20239
20240 \begin_layout Labeling
20241 \labelwidthstring 00.00.0000
20242 RCS
20243 \begin_inset space ~
20244 \end_inset
20245
20246 commands: 
20247 \begin_inset space ~
20248 \end_inset
20249
20250
20251 \begin_inset Newline newline
20252 \end_inset
20253
20254 Copy 
20255 \begin_inset Flex Code
20256 status collapsed
20257
20258 \begin_layout Plain Layout
20259
20260 \family typewriter
20261 \begin_inset Quotes eld
20262 \end_inset
20263
20264 <file-name>
20265 \begin_inset Quotes erd
20266 \end_inset
20267
20268
20269 \end_layout
20270
20271 \end_inset
20272
20273  to 
20274 \begin_inset Flex Code
20275 status collapsed
20276
20277 \begin_layout Plain Layout
20278
20279 \family typewriter
20280 \begin_inset Quotes eld
20281 \end_inset
20282
20283 <new-file-name>
20284 \begin_inset Quotes erd
20285 \end_inset
20286
20287
20288 \end_layout
20289
20290 \end_inset
20291
20292
20293 \begin_inset Newline newline
20294 \end_inset
20295
20296
20297 \begin_inset Flex Code
20298 status collapsed
20299
20300 \begin_layout Plain Layout
20301 ci -q -u 
20302 \family typewriter
20303 -i 
20304 \begin_inset Quotes eld
20305 \end_inset
20306
20307 <new-file-name>
20308 \begin_inset Quotes erd
20309 \end_inset
20310
20311
20312 \end_layout
20313
20314 \end_inset
20315
20316
20317 \end_layout
20318
20319 \begin_layout Subsubsection
20320
20321 \family sans
20322 Undo Last Checkin
20323 \end_layout
20324
20325 \begin_layout Standard
20326 This makes as if the last check in never happened.
20327  No changes are made to the document loaded into \SpecialChar LyX
20328 , but the last version
20329  is removed from the master RCS file.
20330 \end_layout
20331
20332 \begin_layout Standard
20333 RCS command: 
20334 \family typewriter
20335 rcs -o<version> <file-name>
20336 \end_layout
20337
20338 \begin_layout Subsubsection
20339
20340 \family sans
20341 Show History
20342 \end_layout
20343
20344 \begin_layout Standard
20345 This shows the complete history of the RCS document.
20346  The output of 
20347 \family typewriter
20348 rlog <file-name>
20349 \family default
20350  is shown in a browser.
20351  See 
20352 \family typewriter
20353 man rlog
20354 \family default
20355  for more info.
20356 \end_layout
20357
20358 \begin_layout Subsubsection
20359 Revision info
20360 \end_layout
20361
20362 \begin_layout Standard
20363 \SpecialChar LyX
20364  supports RCS version number, author name, date and time of last commit.
20365  All those are extracted from 
20366 \family typewriter
20367 rlog -r <file-name>
20368 \family default
20369 .
20370  See 
20371 \begin_inset CommandInset ref
20372 LatexCommand ref
20373 reference "subsec:VCS-Revision-Information"
20374
20375 \end_inset
20376
20377  for details.
20378 \end_layout
20379
20380 \begin_layout Subsection
20381 CVS commands in \SpecialChar LyX
20382
20383 \end_layout
20384
20385 \begin_layout Standard
20386 A subset of CVS operations is supported by \SpecialChar LyX
20387 .
20388  You can find the commands in the 
20389 \family sans
20390 File\SpecialChar menuseparator
20391 Version
20392 \begin_inset space ~
20393 \end_inset
20394
20395 Control
20396 \family default
20397  submenu.
20398  The version control system SVN is more powerful, so please use it instead
20399  of CVS if possible.
20400 \end_layout
20401
20402 \begin_layout Subsubsection
20403
20404 \family sans
20405 General CVS usage
20406 \end_layout
20407
20408 \begin_layout Standard
20409 If you start from scratch with CVS you have to create your repository and
20410  checkout the working copy with external tools.
20411  If you're using a client-server setup you may need to login before doing
20412  the first repository checkout.
20413 \end_layout
20414
20415 \begin_layout Standard
20416 If your documents are under revision control and others are using the same
20417  repository problems arise when different changes to the same document at
20418  the same location happen.
20419  Standard CVS repositories don't operate with a file locking mechanism.
20420  This may be surprising, but conflicts only occur if people disagree on
20421  the proper content of the same part of a document.
20422  So, if co-workers are used to communicate regularly, these conflicts occur
20423  rarely.
20424  If they don't communicate they have a fundamental problem anyway.
20425  Nevertheless some people like to work with so called 
20426 \begin_inset Quotes eld
20427 \end_inset
20428
20429 reserved checkouts
20430 \begin_inset Quotes erd
20431 \end_inset
20432
20433 .
20434  If they do so the working copy of all files is readonly when checked out
20435  first and the user starts editing after using a special command to make
20436  the working copy writable.
20437  When the changes are checked in the working copy returns to readonly state.
20438  With \SpecialChar LyX
20439  one has to edit the 
20440 \begin_inset Flex Code
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444 .cvsrc
20445 \end_layout
20446
20447 \end_inset
20448
20449  file and add the line 
20450 \begin_inset Flex Code
20451 status collapsed
20452
20453 \begin_layout Plain Layout
20454 cvs -r
20455 \end_layout
20456
20457 \end_inset
20458
20459  to work with reserved checkouts.
20460  The benefit is the possibility to see who is using a writable copy of some
20461  document.
20462  It's not guaranteed only one user makes a copy writable.
20463 \end_layout
20464
20465 \begin_layout Standard
20466 \SpecialChar LyX
20467  tries to guess if you're using reserved or non-reserved checkouts.
20468  If your working copy is readonly or it is writable and an additional copy
20469  of your document exists in the CVS/Base sub-directory a reserved otherwise
20470  a non-reserved checkout is assumed.
20471  When a reserved checkout is detected you have to use 
20472 \begin_inset Flex MenuItem
20473 status collapsed
20474
20475 \begin_layout Plain Layout
20476 Check Out
20477 \end_layout
20478
20479 \end_inset
20480
20481  to make your working copy writable if it's readonly.
20482  After doing so the 
20483 \begin_inset Flex MenuItem
20484 status collapsed
20485
20486 \begin_layout Plain Layout
20487 Check In
20488 \end_layout
20489
20490 \end_inset
20491
20492  operation is possible and that makes your working copy readonly again after
20493  transferring your changes to the repository.
20494 \end_layout
20495
20496 \begin_layout Standard
20497 More information about CVS can be found here 
20498 \begin_inset Flex URL
20499 status collapsed
20500
20501 \begin_layout Plain Layout
20502
20503 http://www.nongnu.org/cvs
20504 \end_layout
20505
20506 \end_inset
20507
20508  and here 
20509 \begin_inset Flex URL
20510 status collapsed
20511
20512 \begin_layout Plain Layout
20513
20514 http://ximbiot.com/cvs
20515 \end_layout
20516
20517 \end_inset
20518
20519 .
20520 \end_layout
20521
20522 \begin_layout Standard
20523 Read 
20524 \family typewriter
20525 man cvs
20526 \family default
20527  to understand the sub-commands and the switches mentioned below.
20528 \end_layout
20529
20530 \begin_layout Subsubsection
20531
20532 \family sans
20533 Register
20534 \end_layout
20535
20536 \begin_layout Standard
20537 If your document is not under revision control, this is the only item shown
20538  in the menu.
20539  And if it is under revision control, the 
20540 \family sans
20541 \bar under
20542 R
20543 \bar default
20544 egister
20545 \family default
20546  item is not visible.
20547  
20548 \end_layout
20549
20550 \begin_layout Standard
20551 This command registers in CVS your document 
20552 \begin_inset Flex Strong
20553 status collapsed
20554
20555 \begin_layout Plain Layout
20556
20557 \emph on
20558 only
20559 \end_layout
20560
20561 \end_inset
20562
20563  in the case you have already the documents directory under CVS control
20564  (in particular 
20565 \family typewriter
20566 CVS/Entries
20567 \family default
20568  file exists).
20569  This means you have to create or checkout the archive by yourself using
20570  external tools.
20571  (In case you forget that step \SpecialChar LyX
20572  registers the document with RCS.)
20573 \end_layout
20574
20575 \begin_layout Standard
20576 Then you are asked interactively to supply an initial description of the
20577  document.
20578  Don't forget that registered file is not yet checked in.
20579 \end_layout
20580
20581 \begin_layout Standard
20582 CVS command that is run: 
20583 \family typewriter
20584 cvs -q add -m"<entered message>" "<file-name>"
20585 \end_layout
20586
20587 \begin_layout Standard
20588 The term 
20589 \family typewriter
20590 "<file-name>"
20591 \family default
20592  above and for all other CVS commands is an abbreviation for 
20593 \begin_inset Quotes eld
20594 \end_inset
20595
20596 change the current working directory to file location and use the file name
20597  without path component as argument
20598 \begin_inset Quotes erd
20599 \end_inset
20600
20601 .
20602 \end_layout
20603
20604 \begin_layout Subsubsection
20605
20606 \family sans
20607 Check In Changes
20608 \end_layout
20609
20610 \begin_layout Standard
20611 When you are finished editing a file, you commit your changes.
20612  When you do this and you had changed the document, you are asked for a
20613  description of the changes.
20614  After that changes are written to the repository.
20615  In case you didn't change the document and a reserved checkout is detected
20616  the reservation made on 
20617 \begin_inset Flex MenuItem
20618 status collapsed
20619
20620 \begin_layout Plain Layout
20621 Check Out
20622 \end_layout
20623
20624 \end_inset
20625
20626  is undone.
20627 \end_layout
20628
20629 \begin_layout Labeling
20630 \labelwidthstring 00.00.0000
20631 CVS
20632 \begin_inset space ~
20633 \end_inset
20634
20635 command: 
20636 \begin_inset space ~
20637 \end_inset
20638
20639
20640 \begin_inset Newline newline
20641 \end_inset
20642
20643
20644 \begin_inset Flex Code
20645 status collapsed
20646
20647 \begin_layout Plain Layout
20648 cvs 
20649 \family typewriter
20650 -q commit -m"<description>" "<file-name>"
20651 \end_layout
20652
20653 \end_inset
20654
20655  or
20656 \begin_inset Newline newline
20657 \end_inset
20658
20659
20660 \begin_inset Flex Code
20661 status collapsed
20662
20663 \begin_layout Plain Layout
20664 cvs -q unedit 
20665 \family typewriter
20666 "<file-name>"
20667 \end_layout
20668
20669 \end_inset
20670
20671
20672 \end_layout
20673
20674 \begin_layout Subsubsection
20675
20676 \family sans
20677 Check Out Changes
20678 \end_layout
20679
20680 \begin_layout Standard
20681 When you are sharing a repository with others, you may have to incorporate
20682  their changes into your working copy.
20683 \end_layout
20684
20685 \begin_layout Standard
20686 CVS command: 
20687 \family typewriter
20688 cvs -q update "<file-name>"
20689 \end_layout
20690
20691 \begin_layout Standard
20692 If a readonly checkout is detected the working copy is made writable and
20693  reserved.
20694 \end_layout
20695
20696 \begin_layout Standard
20697 CVS command: 
20698 \family typewriter
20699 cvs -q edit "<file-name>"
20700 \end_layout
20701
20702 \begin_layout Subsubsection
20703
20704 \family sans
20705 Revert To Repository Version
20706 \end_layout
20707
20708 \begin_layout Standard
20709 This will discard all changes made to the document since the last check
20710  in.
20711  You get a warning before changes are discarded.
20712  Firstly the file is deleted, secondly CVS update command is run.
20713 \end_layout
20714
20715 \begin_layout Standard
20716 CVS command: 
20717 \family typewriter
20718 cvs -q update "<file-name>"
20719 \end_layout
20720
20721 \begin_layout Standard
20722 If a reserved checkout is detected and the working copy has no changes only
20723  the reservation is undone.
20724 \end_layout
20725
20726 \begin_layout Standard
20727 CVS command: 
20728 \family typewriter
20729 cvs -q unedit "<file-name>"
20730 \end_layout
20731
20732 \begin_layout Subsubsection
20733
20734 \family sans
20735 Copy
20736 \end_layout
20737
20738 \begin_layout Standard
20739 This will create a copy of the current document.
20740  Since CVS does not support copy operations natively, the version history
20741  is not preserved, and the copy is added as a new file.
20742  It requires a clean document without any changes since the last checkin.
20743  You are asked for a file name and a description of the copy operation.
20744  After that the copy is created, both locally and in the repository.
20745  If the parent directories of the copied and original document differ, all
20746  relative paths of included files of the copy are adjusted (like in 
20747 \family sans
20748 File\SpecialChar menuseparator
20749 Save As
20750 \family default
20751 \SpecialChar ldots
20752 ).
20753  Finally, the copy is loaded instead of the original document.
20754 \end_layout
20755
20756 \begin_layout Labeling
20757 \labelwidthstring 00.00.0000
20758 CVS
20759 \begin_inset space ~
20760 \end_inset
20761
20762 commands: 
20763 \begin_inset space ~
20764 \end_inset
20765
20766
20767 \begin_inset Newline newline
20768 \end_inset
20769
20770 Copy 
20771 \begin_inset Flex Code
20772 status collapsed
20773
20774 \begin_layout Plain Layout
20775
20776 \family typewriter
20777 \begin_inset Quotes eld
20778 \end_inset
20779
20780 <file-name>
20781 \begin_inset Quotes erd
20782 \end_inset
20783
20784
20785 \end_layout
20786
20787 \end_inset
20788
20789  to 
20790 \begin_inset Flex Code
20791 status collapsed
20792
20793 \begin_layout Plain Layout
20794
20795 \family typewriter
20796 \begin_inset Quotes eld
20797 \end_inset
20798
20799 <new-file-name>
20800 \begin_inset Quotes erd
20801 \end_inset
20802
20803
20804 \end_layout
20805
20806 \end_inset
20807
20808
20809 \begin_inset Newline newline
20810 \end_inset
20811
20812
20813 \begin_inset Flex Code
20814 status collapsed
20815
20816 \begin_layout Plain Layout
20817 cvs -q add 
20818 \family typewriter
20819
20820 \begin_inset Quotes eld
20821 \end_inset
20822
20823 <new-file-name>
20824 \begin_inset Quotes erd
20825 \end_inset
20826
20827
20828 \end_layout
20829
20830 \end_inset
20831
20832
20833 \end_layout
20834
20835 \begin_layout Subsubsection
20836
20837 \family sans
20838 Rename
20839 \end_layout
20840
20841 \begin_layout Standard
20842 This will rename the current document.
20843  Since CVS does not support rename operations natively, the version history
20844  is not preserved, the renamed document is added as a new file, and the
20845  original document is deleted.
20846  It requires a clean document without any changes since the last checkin.
20847  You are asked for a file name and a description of the rename operation.
20848  After that the document is renamed, both locally and in the repository.
20849  If the parent directories of the new and old file names differ, all relative
20850  paths of included files are adjusted (like in 
20851 \family sans
20852 File\SpecialChar menuseparator
20853 Save As
20854 \family default
20855 \SpecialChar ldots
20856 ).
20857  Finally, the document is reloaded using the new name.
20858 \end_layout
20859
20860 \begin_layout Labeling
20861 \labelwidthstring 00.00.0000
20862 CVS
20863 \begin_inset space ~
20864 \end_inset
20865
20866 commands: 
20867 \begin_inset space ~
20868 \end_inset
20869
20870
20871 \begin_inset Newline newline
20872 \end_inset
20873
20874 Rename 
20875 \begin_inset Flex Code
20876 status collapsed
20877
20878 \begin_layout Plain Layout
20879
20880 \family typewriter
20881 \begin_inset Quotes eld
20882 \end_inset
20883
20884 <file-name>
20885 \begin_inset Quotes erd
20886 \end_inset
20887
20888
20889 \end_layout
20890
20891 \end_inset
20892
20893  to 
20894 \begin_inset Flex Code
20895 status collapsed
20896
20897 \begin_layout Plain Layout
20898
20899 \family typewriter
20900 \begin_inset Quotes eld
20901 \end_inset
20902
20903 <new-file-name>
20904 \begin_inset Quotes erd
20905 \end_inset
20906
20907
20908 \end_layout
20909
20910 \end_inset
20911
20912
20913 \begin_inset Newline newline
20914 \end_inset
20915
20916
20917 \begin_inset Flex Code
20918 status collapsed
20919
20920 \begin_layout Plain Layout
20921 cvs -q add 
20922 \family typewriter
20923
20924 \begin_inset Quotes eld
20925 \end_inset
20926
20927 <new-file-name>
20928 \begin_inset Quotes erd
20929 \end_inset
20930
20931
20932 \end_layout
20933
20934 \end_inset
20935
20936
20937 \begin_inset Newline newline
20938 \end_inset
20939
20940
20941 \begin_inset Flex Code
20942 status collapsed
20943
20944 \begin_layout Plain Layout
20945 cvs -q remove 
20946 \family typewriter
20947
20948 \begin_inset Quotes eld
20949 \end_inset
20950
20951 <file-name>
20952 \begin_inset Quotes erd
20953 \end_inset
20954
20955
20956 \end_layout
20957
20958 \end_inset
20959
20960
20961 \end_layout
20962
20963 \begin_layout Subsubsection
20964 Update of the local directory checkout from repository
20965 \end_layout
20966
20967 \begin_layout Standard
20968 Once your documents gets more complex, containing sub-documents and pictures,
20969  including external 
20970 \begin_inset Flex Code
20971 status collapsed
20972
20973 \begin_layout Plain Layout
20974 .tex
20975 \end_layout
20976
20977 \end_inset
20978
20979  files and so on using version control becomes more complicated.
20980  \SpecialChar LyX
20981  supports updating the whole tree in which resides the document.
20982  This become especially useful once you cooperate with people which neither
20983  have detailed knowledge about CVS usage nor they have ambition to commit
20984  additional material to the repository.
20985  You have to organize the files structure so that all external files are
20986  in the same directory or subdirectories of the document.
20987  It's good practice anyway to store multipart documents in an extra directory.
20988 \end_layout
20989
20990 \begin_layout Standard
20991 The 
20992 \begin_inset Flex Code
20993 status collapsed
20994
20995 \begin_layout Plain Layout
20996 Update local directory from repository
20997 \end_layout
20998
20999 \end_inset
21000
21001  command updates the whole directory.
21002  If local changes are detected user is warned before update starts.
21003  In case of merge conflicts both versions of the conflicting document parts
21004  are placed in the final document.
21005  You have to review and correct the result of the merge.
21006  You'll find the conflicts enclosed in pairs of 
21007 \begin_inset Flex Code
21008 status collapsed
21009
21010 \begin_layout Plain Layout
21011 <<<<<<<
21012 \end_layout
21013
21014 \end_inset
21015
21016  and 
21017 \begin_inset Flex Code
21018 status collapsed
21019
21020 \begin_layout Plain Layout
21021 >>>>>>>
21022 \end_layout
21023
21024 \end_inset
21025
21026  separated by 
21027 \begin_inset Flex Code
21028 status collapsed
21029
21030 \begin_layout Plain Layout
21031 =======
21032 \end_layout
21033
21034 \end_inset
21035
21036 .
21037  The first part is your version as before the update operation with the
21038  document name prepended.
21039  The second one is the repository version with the version number after
21040  the sequence of 
21041 \begin_inset Flex Code
21042 status collapsed
21043
21044 \begin_layout Plain Layout
21045 >
21046 \end_layout
21047
21048 \end_inset
21049
21050  signs.
21051 \end_layout
21052
21053 \begin_layout Labeling
21054 \labelwidthstring 00.00.0000
21055 CVS
21056 \begin_inset space ~
21057 \end_inset
21058
21059 commands: 
21060 \begin_inset space ~
21061 \end_inset
21062
21063
21064 \begin_inset Newline newline
21065 \end_inset
21066
21067
21068 \begin_inset Flex Code
21069 status collapsed
21070
21071 \begin_layout Plain Layout
21072 cd $path; cvs diff 
21073 \family typewriter
21074 "."
21075 \end_layout
21076
21077 \end_inset
21078
21079  (Ask if changes are detected.)
21080 \begin_inset Newline newline
21081 \end_inset
21082
21083
21084 \begin_inset Flex Code
21085 status collapsed
21086
21087 \begin_layout Plain Layout
21088 cd $path; cvs -q update 
21089 \family typewriter
21090 "."
21091 \end_layout
21092
21093 \end_inset
21094
21095
21096 \end_layout
21097
21098 \begin_layout Standard
21099 where 
21100 \begin_inset Flex Code
21101 status collapsed
21102
21103 \begin_layout Plain Layout
21104 $path
21105 \end_layout
21106
21107 \end_inset
21108
21109  stands for the path to the document.
21110 \end_layout
21111
21112 \begin_layout Subsubsection
21113
21114 \family sans
21115 Show History
21116 \end_layout
21117
21118 \begin_layout Standard
21119 This shows the complete history of the CVS document.
21120  The output of 
21121 \family typewriter
21122 cvs log "<file-name>"
21123 \family default
21124  is shown in a browser.
21125 \end_layout
21126
21127 \begin_layout Subsubsection
21128 Revision info
21129 \end_layout
21130
21131 \begin_layout Standard
21132 \SpecialChar LyX
21133  supports CVS version number, author name, date and time of last commit.
21134  All those are extracted from 
21135 \family typewriter
21136 cvs log -r <file-name>
21137 \family default
21138 .
21139  See 
21140 \begin_inset CommandInset ref
21141 LatexCommand ref
21142 reference "subsec:VCS-Revision-Information"
21143
21144 \end_inset
21145
21146  for details.
21147 \end_layout
21148
21149 \begin_layout Subsection
21150 SVN commands in \SpecialChar LyX
21151
21152 \end_layout
21153
21154 \begin_layout Standard
21155 SVN is now partially supported by \SpecialChar LyX
21156 .
21157  You can find the commands in the 
21158 \family sans
21159 File\SpecialChar menuseparator
21160 Version
21161 \begin_inset space ~
21162 \end_inset
21163
21164 Control
21165 \family default
21166  submenu.
21167  Please note that if you use password protected access to repository via
21168  ssh, you will be asked in terminal window.
21169  \SpecialChar LyX
21170  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21171 \begin_inset Foot
21172 status open
21173
21174 \begin_layout Plain Layout
21175 Most of the commands will work with 1.4 too, see 
21176 \begin_inset CommandInset ref
21177 LatexCommand ref
21178 reference "subsec:SVN-Repo-Update"
21179
21180 \end_inset
21181
21182 .
21183  There seems to be currently unresolved permissions problem under SVN 1.8
21184  with reverting changes when file is locked.
21185 \end_layout
21186
21187 \end_inset
21188
21189
21190 \end_layout
21191
21192 \begin_layout Subsubsection
21193
21194 \family sans
21195 Register
21196 \end_layout
21197
21198 \begin_layout Standard
21199 If your document is not under revision control, this is the only item shown
21200  in the menu.
21201  And if it is under revision control, the 
21202 \family sans
21203 \bar under
21204 R
21205 \bar default
21206 egister
21207 \family default
21208  item is not visible.
21209 \end_layout
21210
21211 \begin_layout Standard
21212 This command registers in SVN your document ONLY in case you have already
21213  the documents directory under SVN control (in particular 
21214 \family typewriter
21215 .svn/entries
21216 \family default
21217  file exists).
21218  This means you have to checkout the archive by yourself.
21219 \end_layout
21220
21221 \begin_layout Standard
21222 Then you are asked interactively to supply an initial description of the
21223  document.
21224  Don't forget that registered file is not yet commited.
21225 \end_layout
21226
21227 \begin_layout Standard
21228 SVN command that is run: 
21229 \family typewriter
21230 svn add -q 
21231 \begin_inset Quotes eld
21232 \end_inset
21233
21234 <file-name>
21235 \begin_inset Quotes erd
21236 \end_inset
21237
21238
21239 \end_layout
21240
21241 \begin_layout Standard
21242 Read 
21243 \family typewriter
21244 man svn
21245 \family default
21246  to understand the switches.
21247 \end_layout
21248
21249 \begin_layout Subsubsection
21250
21251 \family sans
21252 Check In Changes
21253 \end_layout
21254
21255 \begin_layout Standard
21256 When you are finished editing a file, you commit your changes.
21257  When you do this, you are asked for a description of the changes.
21258  After that changes are commited.
21259 \end_layout
21260
21261 \begin_layout Standard
21262 SVN command:
21263 \begin_inset Foot
21264 status collapsed
21265
21266 \begin_layout Plain Layout
21267 In case locking is not enabled.
21268  See Section 
21269 \begin_inset CommandInset ref
21270 LatexCommand ref
21271 reference "subsec:SVN-File-Locking"
21272
21273 \end_inset
21274
21275 .
21276 \end_layout
21277
21278 \end_inset
21279
21280  
21281 \family typewriter
21282 svn commit -q -m"<description>" <file-name>
21283 \end_layout
21284
21285 \begin_layout Subsubsection
21286
21287 \family sans
21288 Check Out For Edit
21289 \end_layout
21290
21291 \begin_layout Standard
21292 Updates the changes of this file from the repository.
21293  Be sure you understand SVN merging and conflicts resolving before using
21294  this function, because all conflicts has to be resolved manually by you!
21295 \end_layout
21296
21297 \begin_layout Standard
21298 SVN command:
21299 \begin_inset Foot
21300 status collapsed
21301
21302 \begin_layout Plain Layout
21303 Ditto.
21304 \end_layout
21305
21306 \end_inset
21307
21308  
21309 \family typewriter
21310 svn update --non-interactive 
21311 \begin_inset Quotes eld
21312 \end_inset
21313
21314 <file-name>
21315 \begin_inset Quotes erd
21316 \end_inset
21317
21318
21319 \end_layout
21320
21321 \begin_layout Subsubsection
21322
21323 \family sans
21324 Revert To Repository Version
21325 \end_layout
21326
21327 \begin_layout Standard
21328 This will discard all changes made to the document since the last check
21329  in.
21330  You get a warning before changes are discarded.
21331 \end_layout
21332
21333 \begin_layout Standard
21334 SVN command: 
21335 \family typewriter
21336 svn revert -q 
21337 \begin_inset Quotes eld
21338 \end_inset
21339
21340 <file-name>
21341 \begin_inset Quotes erd
21342 \end_inset
21343
21344
21345 \end_layout
21346
21347 \begin_layout Subsubsection
21348
21349 \family sans
21350 Copy
21351 \end_layout
21352
21353 \begin_layout Standard
21354 This will create a copy of the current document including the version history.
21355  It requires a clean document without any changes since the last checkin.
21356  You are asked for a file name and a description of the copy operation.
21357  After that the copy is created, both locally and in the repository.
21358  If the parent directories of the copied and original document differ, all
21359  relative paths of included files of the copy are adjusted (like in 
21360 \family sans
21361 File\SpecialChar menuseparator
21362 Save As
21363 \family default
21364 \SpecialChar ldots
21365 ).
21366  Finally, the copy is loaded instead of the original document.
21367 \end_layout
21368
21369 \begin_layout Labeling
21370 \labelwidthstring 00.00.0000
21371 SVN
21372 \begin_inset space ~
21373 \end_inset
21374
21375 commands: 
21376 \begin_inset space ~
21377 \end_inset
21378
21379
21380 \begin_inset Newline newline
21381 \end_inset
21382
21383
21384 \begin_inset Flex Code
21385 status collapsed
21386
21387 \begin_layout Plain Layout
21388 svn copy -q 
21389 \family typewriter
21390
21391 \begin_inset Quotes eld
21392 \end_inset
21393
21394 <file-name>
21395 \begin_inset Quotes erd
21396 \end_inset
21397
21398  
21399 \begin_inset Quotes eld
21400 \end_inset
21401
21402 <new-file-name>
21403 \begin_inset Quotes erd
21404 \end_inset
21405
21406
21407 \end_layout
21408
21409 \end_inset
21410
21411
21412 \begin_inset Newline newline
21413 \end_inset
21414
21415
21416 \begin_inset Flex Code
21417 status collapsed
21418
21419 \begin_layout Plain Layout
21420 svn commit
21421 \end_layout
21422
21423 \end_inset
21424
21425
21426 \end_layout
21427
21428 \begin_layout Subsubsection
21429
21430 \family sans
21431 Rename
21432 \end_layout
21433
21434 \begin_layout Standard
21435 This will rename the current document including the version history.
21436  It requires a clean document without any changes since the last checkin.
21437  You are asked for a file name and a description of the rename operation.
21438  After that the document is renamed, both locally and in the repository.
21439  If the parent directories of the new and old file names differ, all relative
21440  paths of included files are adjusted (like in 
21441 \family sans
21442 File\SpecialChar menuseparator
21443 Save As
21444 \family default
21445 \SpecialChar ldots
21446 ).
21447  Finally, the document is reloaded using the new name.
21448 \end_layout
21449
21450 \begin_layout Labeling
21451 \labelwidthstring 00.00.0000
21452 SVN
21453 \begin_inset space ~
21454 \end_inset
21455
21456 commands: 
21457 \begin_inset space ~
21458 \end_inset
21459
21460
21461 \begin_inset Newline newline
21462 \end_inset
21463
21464
21465 \begin_inset Flex Code
21466 status collapsed
21467
21468 \begin_layout Plain Layout
21469 svn move -q 
21470 \family typewriter
21471
21472 \begin_inset Quotes eld
21473 \end_inset
21474
21475 <file-name>
21476 \begin_inset Quotes erd
21477 \end_inset
21478
21479  
21480 \begin_inset Quotes eld
21481 \end_inset
21482
21483 <new-file-name>
21484 \begin_inset Quotes erd
21485 \end_inset
21486
21487
21488 \end_layout
21489
21490 \end_inset
21491
21492
21493 \begin_inset Newline newline
21494 \end_inset
21495
21496
21497 \begin_inset Flex Code
21498 status collapsed
21499
21500 \begin_layout Plain Layout
21501 svn commit
21502 \end_layout
21503
21504 \end_inset
21505
21506
21507 \end_layout
21508
21509 \begin_layout Subsubsection
21510 \begin_inset CommandInset label
21511 LatexCommand label
21512 name "subsec:SVN-Repo-Update"
21513
21514 \end_inset
21515
21516 Update of the local directory checkout from repository
21517 \begin_inset Foot
21518 status collapsed
21519
21520 \begin_layout Plain Layout
21521 Note that this command will work only with subversion 
21522 \begin_inset Formula $\geqq1.5$
21523 \end_inset
21524
21525
21526 \end_layout
21527
21528 \end_inset
21529
21530
21531 \end_layout
21532
21533 \begin_layout Standard
21534 All the commands above have one shortcomming - they deal with the current
21535  document only.
21536  Once your document contains pictures, includes external 
21537 \begin_inset Flex Code
21538 status collapsed
21539
21540 \begin_layout Plain Layout
21541 .tex
21542 \end_layout
21543
21544 \end_inset
21545
21546  files and so on administration becomes more complicated.
21547  \SpecialChar LyX
21548  now supports updating the whole tree in which resides the document
21549 \begin_inset Foot
21550 status collapsed
21551
21552 \begin_layout Plain Layout
21553 One need to organize the files structure so that all external files are
21554  in the same directory or subdirectories of the document.
21555  
21556 \end_layout
21557
21558 \end_inset
21559
21560 .
21561  This become especially useful once you cooperate with people which neither
21562  know about subversion management nor they have ambition to commit additional
21563  material to the repository.
21564  
21565 \end_layout
21566
21567 \begin_layout Standard
21568 \begin_inset Flex Code
21569 status collapsed
21570
21571 \begin_layout Plain Layout
21572 Update local directory from repository
21573 \end_layout
21574
21575 \end_inset
21576
21577  command updates the whole directory and in case of merge conflicts local
21578  version of the files are left, so no unintended data loss occurs.
21579  If local changes are detected user is warned before update starts.
21580 \end_layout
21581
21582 \begin_layout Labeling
21583 \labelwidthstring 00.00.0000
21584 SVN
21585 \begin_inset space ~
21586 \end_inset
21587
21588 commands: 
21589 \begin_inset space ~
21590 \end_inset
21591
21592
21593 \begin_inset Newline newline
21594 \end_inset
21595
21596
21597 \begin_inset Flex Code
21598 status collapsed
21599
21600 \begin_layout Plain Layout
21601 svn diff $path
21602 \end_layout
21603
21604 \end_inset
21605
21606  (Ask if changes are detected.)
21607 \begin_inset Newline newline
21608 \end_inset
21609
21610
21611 \begin_inset Flex Code
21612 status collapsed
21613
21614 \begin_layout Plain Layout
21615 svn update –accept mine-full $path
21616 \end_layout
21617
21618 \end_inset
21619
21620
21621 \end_layout
21622
21623 \begin_layout Standard
21624 where 
21625 \begin_inset Flex Code
21626 status collapsed
21627
21628 \begin_layout Plain Layout
21629 $path
21630 \end_layout
21631
21632 \end_inset
21633
21634  stands for the path to the document.
21635 \end_layout
21636
21637 \begin_layout Subsubsection
21638
21639 \family sans
21640 Show History
21641 \end_layout
21642
21643 \begin_layout Standard
21644 This shows the complete history of the SVN document.
21645  The output of 
21646 \family typewriter
21647 svn log 
21648 \begin_inset Quotes eld
21649 \end_inset
21650
21651 <file-name>
21652 \begin_inset Quotes erd
21653 \end_inset
21654
21655
21656 \family default
21657  is shown in a browser.
21658 \end_layout
21659
21660 \begin_layout Subsubsection
21661 File Locking
21662 \begin_inset CommandInset label
21663 LatexCommand label
21664 name "subsec:SVN-File-Locking"
21665
21666 \end_inset
21667
21668
21669 \end_layout
21670
21671 \begin_layout Standard
21672 The file exchange through various revision control systems brings the problem
21673  of merge conflicts in case two different users try to edit the same (parts
21674  of) document.
21675  When such a conflict happens it needs manual resolving and one reasonable
21676  alternative is to provide some kind of locking mechanism, which guarantees
21677  that only one user is allowed to edit file at the given time.
21678 \end_layout
21679
21680 \begin_layout Standard
21681 SVN has two such mechanisms to provide mutual exclusivity for file access
21682  - locks and automatic setting of write permissions (see sec.
21683  
21684 \begin_inset CommandInset ref
21685 LatexCommand ref
21686 reference "subsec:Automatical-Locking-Property"
21687
21688 \end_inset
21689
21690 ) based on 
21691 \begin_inset Flex Code
21692 status collapsed
21693
21694 \begin_layout Plain Layout
21695 svn:needs-lock
21696 \end_layout
21697
21698 \end_inset
21699
21700  file svn property
21701 \begin_inset Foot
21702 status open
21703
21704 \begin_layout Plain Layout
21705 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21706 \end_layout
21707
21708 \end_inset
21709
21710 .
21711  If this property is detected for a given document \SpecialChar LyX
21712  starts to use SVN locks
21713  for document editing automatically and the whole check-in/out mechanism
21714  switches to the same regimen as for RCS.
21715  This in particular means there are two different modes of file use in \SpecialChar LyX
21716 :
21717 \end_layout
21718
21719 \begin_layout Itemize
21720 Unlocked state.
21721  The loaded file is in the read-only mode.
21722  For editing on needs to check-out.
21723  
21724 \emph on
21725 Check-out
21726 \emph default
21727  consists of updating from the repository and gaining write lock.
21728  If the lock is not possible to obtain, we remain in unlocked state.
21729 \end_layout
21730
21731 \begin_layout Itemize
21732 Locked state.
21733  The loaded file is in the 'normal' edit mode.
21734  No other user is allowed to edit the file.
21735  
21736 \emph on
21737 Check-in
21738 \emph default
21739  consists of commiting changes and releasing write-lock.
21740  If no changes have been made to the document, no commit will be produced
21741 \begin_inset Foot
21742 status collapsed
21743
21744 \begin_layout Plain Layout
21745 Don't be puzzled by the fact that you will be asked for commit message anyway.
21746 \end_layout
21747
21748 \end_inset
21749
21750  and only the write-lock will be released.
21751 \end_layout
21752
21753 \begin_layout Standard
21754 SVN commands:
21755 \end_layout
21756
21757 \begin_layout Labeling
21758 \labelwidthstring 00.00.0000
21759 Check-in:
21760 \family typewriter
21761  svn commit -q -m"<description>" "<file-name>"
21762 \begin_inset Newline newline
21763 \end_inset
21764
21765 svn unlock "<file-name>"
21766 \end_layout
21767
21768 \begin_layout Labeling
21769 \labelwidthstring 00.00.0000
21770 Check-out: 
21771 \family typewriter
21772 svn update "<file-name>"
21773 \begin_inset Newline newline
21774 \end_inset
21775
21776 svn lock "<file-name>"
21777 \end_layout
21778
21779 \begin_layout Subsubsection
21780
21781 \family typewriter
21782 \begin_inset CommandInset label
21783 LatexCommand label
21784 name "subsec:Automatical-Locking-Property"
21785
21786 \end_inset
21787
21788
21789 \family default
21790 Automatic Locking Property
21791 \end_layout
21792
21793 \begin_layout Standard
21794 The above mentioned automatic setting of write permissions of the .lyx file
21795  can be set through
21796 \family sans
21797 \bar under
21798  F
21799 \bar default
21800 ile\SpecialChar menuseparator
21801
21802 \bar under
21803 V
21804 \bar default
21805 ersion
21806 \begin_inset space ~
21807 \end_inset
21808
21809 Control\SpecialChar menuseparator
21810
21811 \bar under
21812 T
21813 \bar default
21814 oggle locking property
21815 \family default
21816 .
21817  This command is active only when the file is not locked on the svn server
21818  (i.e.
21819  you need to check-out before proceeding).
21820 \end_layout
21821
21822 \begin_layout Labeling
21823 \labelwidthstring 00.00.0000
21824 SVN
21825 \begin_inset space ~
21826 \end_inset
21827
21828 commands:
21829 \end_layout
21830
21831 \begin_layout Labeling
21832 \labelwidthstring 00.00.0000
21833 Set:
21834 \family typewriter
21835  svn propset svn:needs-lock ON "<file-name>"
21836 \end_layout
21837
21838 \begin_layout Labeling
21839 \labelwidthstring 00.00.0000
21840 Unset: 
21841 \family typewriter
21842 svn propdel svn:needs-lock "<file-name>"
21843 \end_layout
21844
21845 \begin_layout Subsubsection
21846 \begin_inset CommandInset label
21847 LatexCommand label
21848 name "subsec:VCS-Revision-Information"
21849
21850 \end_inset
21851
21852 Revision Information in Documents
21853 \end_layout
21854
21855 \begin_layout Standard
21856 There are more possibilities how to activate revision information in our
21857  document.
21858 \end_layout
21859
21860 \begin_layout Itemize
21861 \SpecialChar LyX
21862  supports directly:
21863 \begin_inset Separator parbreak
21864 \end_inset
21865
21866
21867 \end_layout
21868
21869 \begin_deeper
21870 \begin_layout Itemize
21871 tree revision information (
21872 \begin_inset Flex Code
21873 status collapsed
21874
21875 \begin_layout Plain Layout
21876 vcs-tree-revision
21877 \end_layout
21878
21879 \end_inset
21880
21881 ).
21882  The result is the output of the 
21883 \begin_inset Flex Code
21884 status collapsed
21885
21886 \begin_layout Plain Layout
21887 svnversion
21888 \end_layout
21889
21890 \end_inset
21891
21892  command, the following table gives you an idea, how to read the results.
21893 \end_layout
21894
21895 \begin_layout Standard
21896 \align center
21897 \begin_inset Tabular
21898 <lyxtabular version="3" rows="6" columns="2">
21899 <features tabularvalignment="middle">
21900 <column alignment="center" valignment="top">
21901 <column alignment="center" valignment="top">
21902 <row>
21903 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21904 \begin_inset Text
21905
21906 \begin_layout Plain Layout
21907 Output
21908 \end_layout
21909
21910 \end_inset
21911 </cell>
21912 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21913 \begin_inset Text
21914
21915 \begin_layout Plain Layout
21916 Meaning
21917 \end_layout
21918
21919 \end_inset
21920 </cell>
21921 </row>
21922 <row>
21923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21924 \begin_inset Text
21925
21926 \begin_layout Plain Layout
21927 4123:4168
21928 \end_layout
21929
21930 \end_inset
21931 </cell>
21932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21933 \begin_inset Text
21934
21935 \begin_layout Plain Layout
21936 mixed revision working copy
21937 \end_layout
21938
21939 \end_inset
21940 </cell>
21941 </row>
21942 <row>
21943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21944 \begin_inset Text
21945
21946 \begin_layout Plain Layout
21947 4168M
21948 \end_layout
21949
21950 \end_inset
21951 </cell>
21952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21953 \begin_inset Text
21954
21955 \begin_layout Plain Layout
21956 modified working copy
21957 \end_layout
21958
21959 \end_inset
21960 </cell>
21961 </row>
21962 <row>
21963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21964 \begin_inset Text
21965
21966 \begin_layout Plain Layout
21967 4123S
21968 \end_layout
21969
21970 \end_inset
21971 </cell>
21972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21973 \begin_inset Text
21974
21975 \begin_layout Plain Layout
21976 switched working copy
21977 \end_layout
21978
21979 \end_inset
21980 </cell>
21981 </row>
21982 <row>
21983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21984 \begin_inset Text
21985
21986 \begin_layout Plain Layout
21987 4123P
21988 \end_layout
21989
21990 \end_inset
21991 </cell>
21992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21993 \begin_inset Text
21994
21995 \begin_layout Plain Layout
21996 partial working copy, from a sparse checkout
21997 \end_layout
21998
21999 \end_inset
22000 </cell>
22001 </row>
22002 <row>
22003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22004 \begin_inset Text
22005
22006 \begin_layout Plain Layout
22007 4123:4168MS
22008 \end_layout
22009
22010 \end_inset
22011 </cell>
22012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22013 \begin_inset Text
22014
22015 \begin_layout Plain Layout
22016 mixed revision, modified, switched working copy
22017 \end_layout
22018
22019 \end_inset
22020 </cell>
22021 </row>
22022 </lyxtabular>
22023
22024 \end_inset
22025
22026
22027 \end_layout
22028
22029 \begin_layout Itemize
22030 file revision information.
22031  The result comes from parsing the output of 
22032 \begin_inset Flex Code
22033 status collapsed
22034
22035 \begin_layout Plain Layout
22036 svn
22037 \begin_inset space ~
22038 \end_inset
22039
22040 info
22041 \begin_inset space ~
22042 \end_inset
22043
22044 –xml
22045 \begin_inset space ~
22046 \end_inset
22047
22048 file.lyx
22049 \end_layout
22050
22051 \end_inset
22052
22053 .
22054  Supported flags are:
22055 \begin_inset Separator parbreak
22056 \end_inset
22057
22058
22059 \end_layout
22060
22061 \begin_deeper
22062 \begin_layout Itemize
22063 version number of the last commit (
22064 \begin_inset Flex Code
22065 status collapsed
22066
22067 \begin_layout Plain Layout
22068 vcs-revision
22069 \end_layout
22070
22071 \end_inset
22072
22073 )
22074 \end_layout
22075
22076 \begin_layout Itemize
22077 author of the last commit (
22078 \begin_inset Flex Code
22079 status collapsed
22080
22081 \begin_layout Plain Layout
22082 vcs-author
22083 \end_layout
22084
22085 \end_inset
22086
22087 )
22088 \end_layout
22089
22090 \begin_layout Itemize
22091 date of the last commit (
22092 \begin_inset Flex Code
22093 status collapsed
22094
22095 \begin_layout Plain Layout
22096 vcs-date
22097 \end_layout
22098
22099 \end_inset
22100
22101 )
22102 \end_layout
22103
22104 \begin_layout Itemize
22105 time of the last commit (
22106 \begin_inset Flex Code
22107 status collapsed
22108
22109 \begin_layout Plain Layout
22110 vcs-time
22111 \end_layout
22112
22113 \end_inset
22114
22115 )
22116 \end_layout
22117
22118 \end_deeper
22119 \begin_layout Standard
22120 You can obtain this info via InsetInfo (e.g.
22121  
22122 \begin_inset Flex Code
22123 status collapsed
22124
22125 \begin_layout Plain Layout
22126 info-insert buffer vcs-date
22127 \end_layout
22128
22129 \end_inset
22130
22131 ).
22132  The information will be available only when you have the file stored under
22133  svn managment (i.e.
22134  the 
22135 \begin_inset Flex Code
22136 status collapsed
22137
22138 \begin_layout Plain Layout
22139 .svn
22140 \end_layout
22141
22142 \end_inset
22143
22144  directory is available with your document).
22145 \end_layout
22146
22147 \end_deeper
22148 \begin_layout Itemize
22149 Another—a hacking one—possibility is to use svn keywords
22150 \begin_inset Foot
22151 status collapsed
22152
22153 \begin_layout Plain Layout
22154 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22155 \end_layout
22156
22157 \end_inset
22158
22159 .
22160  In short – you set file keywords property (e.g.
22161  
22162 \family sans
22163 svn propset svn:keywords 'Rev' file.lyx
22164 \family default
22165 ) and then paste keyword \SpecialChar TeX
22166  code
22167 \begin_inset Foot
22168 status collapsed
22169
22170 \begin_layout Plain Layout
22171 This is an easy way how to ensure that \SpecialChar LyX
22172  won't break the line in the middle
22173  of keyword tag.
22174 \end_layout
22175
22176 \end_inset
22177
22178  tag in your document (e.g.
22179  
22180 \begin_inset ERT
22181 status open
22182
22183 \begin_layout Plain Layout
22184
22185 $Rev$
22186 \end_layout
22187
22188 \end_inset
22189
22190 ).
22191  This way svn client will automatically substitute revision number (e.g.
22192  
22193 \begin_inset ERT
22194 status open
22195
22196 \begin_layout Plain Layout
22197
22198 $Rev: 59 $
22199 \end_layout
22200
22201 \end_inset
22202
22203 ) after each update and commit.
22204  There are more problems with this approach.
22205  Firstly, the '$' character is used in \SpecialChar TeX
22206  world for math equations, so any
22207  occurence of math formula 
22208 \begin_inset Formula $Rev$
22209 \end_inset
22210
22211  become 
22212 \begin_inset Formula $Rev:59$
22213 \end_inset
22214
22215  in your \SpecialChar LyX
22216  document.
22217  Similarly for other keywords like Id, Date, Author, etc.
22218  Secondly svn output is dependent on your locales, so its very easy that
22219  svn would produce some problematic strings once Date is used.
22220  Thirdly you get the whole 'Rev: 59' string in your document instead of
22221  the plain number.
22222  Until subversion implements user's custom keywords it will be hard to use
22223  this approach reliably or let \SpecialChar LyX
22224  to support it directly.
22225 \end_layout
22226
22227 \begin_layout Subsection
22228 SVN and Windows Environment
22229 \end_layout
22230
22231 \begin_layout Quote
22232 My inclination is to say that if the user cannot figure out the command
22233  line operations on their own fairly quickly, they would be well advised
22234  to use TortoiseSVN.
22235  —P.
22236  A.
22237  Rubin
22238 \end_layout
22239
22240 \begin_layout Subsubsection
22241 Preparation
22242 \end_layout
22243
22244 \begin_layout Standard
22245 In addition to installing \SpecialChar LyX
22246 , and having access to a Subversion repository,
22247  the user will need to install the Subversion client program.
22248  A Windows installer for the client program is available from 
22249 \begin_inset CommandInset href
22250 LatexCommand href
22251 name "CollabNet"
22252 target "http://www.collab.net/nonav/downloads/subversion/"
22253
22254 \end_inset
22255
22256 .
22257  The user may also want to install 
22258 \begin_inset CommandInset href
22259 LatexCommand href
22260 name "TortoiseSVN"
22261 target "http://tortoisesvn.tigris.org/"
22262
22263 \end_inset
22264
22265 , which integrates Subversion operations into the context (rightclick) menu
22266  of Windows Explorer.
22267  Operations done outside \SpecialChar LyX
22268  will typically be more convenient using the Explorer
22269  context menu.
22270  Note that TortoiseSVN is not a replacement for the client program, which
22271  is what \SpecialChar LyX
22272  itself will use.
22273 \end_layout
22274
22275 \begin_layout Subsubsection
22276 Bringing a document under Subversion control
22277 \end_layout
22278
22279 \begin_layout Standard
22280 Before a \SpecialChar LyX
22281  document can be brought under version control in Subversion, its
22282  parent directory needs to be under version control.
22283  If the document is being added to a project already in the repository,
22284  this is accomplished by checking the project out to the directory where
22285  the new document will be placed.
22286  If the project itself is not yet under version control (for instance, if
22287  this document starts a new project), the directory must be imported into
22288  the repository.
22289  This is done outside \SpecialChar LyX
22290 .
22291  Both import and checkout are easily accomplished from the Explorer context
22292  menu using TortoiseSVN, or alternatively can be done using the command
22293  line client at a DOS prompt.
22294  The procedure for importing the project using TortoiseSVN is described
22295  below, assuming an existing repository and a new project being started
22296  in 
22297 \family typewriter
22298 C:
22299 \backslash
22300 new project
22301 \family default
22302 .
22303  For information on using the Subversion client program, run 
22304 \family typewriter
22305 svn --help 
22306 \family default
22307 in a DOS shell.
22308 \end_layout
22309
22310 \begin_layout Enumerate
22311 Locate 
22312 \family typewriter
22313 C:
22314 \backslash
22315 new project 
22316 \family default
22317 in Windows Explorer, right click it, and select 
22318 \family sans
22319 TortoiseSVN\SpecialChar menuseparator
22320 Repo-browser
22321 \family default
22322 .
22323  If necessary, adjust the URL for the repository, then click OK.
22324 \end_layout
22325
22326 \begin_layout Enumerate
22327 Right click the level of the repository under which you want to place the
22328  new project folder (typically the top level) and click 
22329 \family sans
22330 Create folder
22331 \family default
22332  Supply a name for the project folder and click OK.
22333  Add a message for the log file if desired, then click OK again.
22334  The new project folder should appear in the repository.
22335  Finally, click OK again to exit the repository browser.
22336 \end_layout
22337
22338 \begin_layout Enumerate
22339 Once again right click 
22340 \family typewriter
22341 C:
22342 \backslash
22343 new project
22344 \family default
22345 , this time selecting SVN Checkout\SpecialChar ldots
22346  Select the URL of the project folder
22347  you just created in the repository, and set the checkout directory to 
22348 \family typewriter
22349 C:
22350 \backslash
22351 new project.
22352
22353 \family default
22354  Click OK.
22355  You will be warned about a non-empty folder; click OK to proceed.
22356  You should now have a 
22357 \family typewriter
22358 .svn
22359 \family default
22360  directory under 
22361 \family typewriter
22362 C:
22363 \backslash
22364 new project.
22365 \end_layout
22366
22367 \begin_layout Enumerate
22368 Create or open your document in \SpecialChar LyX
22369  and click 
22370 \family sans
22371 File\SpecialChar menuseparator
22372 Version
22373 \begin_inset space ~
22374 \end_inset
22375
22376 Control\SpecialChar menuseparator
22377 Register.
22378  
22379 \family default
22380 Add a log message and click OK to commit the document to version control.
22381 \end_layout
22382
22383 \begin_layout Standard
22384 From this point onward, you should have full functionality in the 
22385 \family sans
22386 File\SpecialChar menuseparator
22387 Version
22388 \begin_inset space ~
22389 \end_inset
22390
22391 Control
22392 \family default
22393  menu.
22394  You also have the option of checking the document in and out, viewing its
22395  history, etc.
22396  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22397  client program from a command prompt.
22398 \end_layout
22399
22400 \begin_layout Subsubsection
22401 SSH tunnel used with SVN under Windows
22402 \end_layout
22403
22404 \begin_layout Standard
22405 Compared with Linux setting up an svn client to communicate over ssh under
22406  Windows is a rather troublesome task.
22407  We will at least offer some hints how to setup the client side but prior
22408  knowledge about ssh and the Windows command line is needed, also be prepared
22409  for a great deal of frustration\SpecialChar ldots
22410
22411 \end_layout
22412
22413 \begin_layout Enumerate
22414 Get an svn client for windows, as described in the previous sections.
22415  When it is a fresh install run some svn command (e.g.
22416  
22417 \begin_inset Flex Code
22418 status collapsed
22419
22420 \begin_layout Plain Layout
22421 svn –version
22422 \end_layout
22423
22424 \end_inset
22425
22426 ) to create config files, which you will need to change later on.
22427 \end_layout
22428
22429 \begin_layout Enumerate
22430 Choose an ssh client for Windows.
22431  There are several possibilities, we will use the one from Putty tools
22432 \begin_inset Foot
22433 status collapsed
22434
22435 \begin_layout Plain Layout
22436 \begin_inset Flex URL
22437 status collapsed
22438
22439 \begin_layout Plain Layout
22440
22441 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22442 \end_layout
22443
22444 \end_inset
22445
22446
22447 \end_layout
22448
22449 \end_inset
22450
22451 .
22452  You will need to set the connection up so that the client doesn't ask for
22453  any password from you.
22454  To keep things easy we will use only keys without any additional password
22455  protection etc.
22456 \begin_inset Separator parbreak
22457 \end_inset
22458
22459
22460 \end_layout
22461
22462 \begin_deeper
22463 \begin_layout Enumerate
22464 Generate keys by 
22465 \begin_inset Flex Code
22466 status collapsed
22467
22468 \begin_layout Plain Layout
22469 puttygen
22470 \end_layout
22471
22472 \end_inset
22473
22474 .
22475  Save your private .ppk key file and put the public one on the server side.
22476  If the SVN server runs on Linux, note that the format of the public key
22477  is not compatible with Linux openssh and you will need to direcly copy-paste
22478  the key from the “
22479 \emph on
22480 Public key for pasting into OpenSSH authorized_keys file
22481 \emph default
22482 :” edit field into the server's 
22483 \begin_inset Flex Code
22484 status collapsed
22485
22486 \begin_layout Plain Layout
22487 ~/.ssh/authorized_keys
22488 \end_layout
22489
22490 \end_inset
22491
22492  / 
22493 \begin_inset Flex Code
22494 status collapsed
22495
22496 \begin_layout Plain Layout
22497 authorized_keys2
22498 \end_layout
22499
22500 \end_inset
22501
22502  file.
22503 \end_layout
22504
22505 \begin_layout Enumerate
22506 Get the Putty's 
22507 \begin_inset Flex Code
22508 status collapsed
22509
22510 \begin_layout Plain Layout
22511 plink
22512 \end_layout
22513
22514 \end_inset
22515
22516 .
22517  In the SVN config file
22518 \begin_inset Foot
22519 status collapsed
22520
22521 \begin_layout Plain Layout
22522 Exact path depends on Windows version, usually somewhere around 
22523 \begin_inset Flex Code
22524 status collapsed
22525
22526 \begin_layout Plain Layout
22527 c:
22528 \backslash
22529 Documents and Settings
22530 \backslash
22531 user
22532 \backslash
22533 Application Data
22534 \backslash
22535 Subversion
22536 \backslash
22537 config
22538 \end_layout
22539
22540 \end_inset
22541
22542  / 
22543 \begin_inset Flex Code
22544 status collapsed
22545
22546 \begin_layout Plain Layout
22547 AppData
22548 \backslash
22549 Roaming
22550 \backslash
22551 Subversion
22552 \end_layout
22553
22554 \end_inset
22555
22556 .
22557 \end_layout
22558
22559 \end_inset
22560
22561 , section [tunnels], setup ssh command, e.g.
22562  
22563 \begin_inset Flex Code
22564 status collapsed
22565
22566 \begin_layout Plain Layout
22567 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22568 \end_layout
22569
22570 \end_inset
22571
22572 .
22573 \begin_inset Foot
22574 status collapsed
22575
22576 \begin_layout Plain Layout
22577 It will usually take a lot of time to get exact command right and it depends
22578  on many things.
22579  For example do not have some remote server saved as a default session in
22580  Putty etc.
22581  If things fail, try to connect via plink without SVN first.
22582 \end_layout
22583
22584 \end_inset
22585
22586
22587 \end_layout
22588
22589 \end_deeper
22590 \begin_layout Enumerate
22591 Checkout the SVN archive, e.
22592 \begin_inset space \thinspace{}
22593 \end_inset
22594
22595 g.
22596 \begin_inset Newline newline
22597 \end_inset
22598
22599
22600 \begin_inset Flex Code
22601 status collapsed
22602
22603 \begin_layout Plain Layout
22604 svn co svn+ssh://user@server/repository_path
22605 \end_layout
22606
22607 \end_inset
22608
22609 .
22610 \end_layout
22611
22612 \begin_layout Subsubsection
22613 End-of-Line Conversions
22614 \end_layout
22615
22616 \begin_layout Standard
22617 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22618  will
22619  use different line endings inside the .lyx files.
22620  This is not a problem as far as \SpecialChar LyX
22621  functionality is concerned, but the commit
22622  diffs will be huge and merge-conflicts prone.
22623  Fortunately SVN itself knows
22624 \begin_inset Foot
22625 status collapsed
22626
22627 \begin_layout Plain Layout
22628 \begin_inset Flex URL
22629 status collapsed
22630
22631 \begin_layout Plain Layout
22632
22633 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22634 \end_layout
22635
22636 \end_inset
22637
22638
22639 \end_layout
22640
22641 \end_inset
22642
22643  how to deal with CR/LF problems when switching .lyx files to the 
22644 \begin_inset Flex Code
22645 status collapsed
22646
22647 \begin_layout Plain Layout
22648 native
22649 \end_layout
22650
22651 \end_inset
22652
22653  mode.
22654 \begin_inset Foot
22655 status collapsed
22656
22657 \begin_layout Plain Layout
22658 For the lazy guys: 
22659 \begin_inset Flex Code
22660 status collapsed
22661
22662 \begin_layout Plain Layout
22663 svn propset svn:eol-style native FILE_NAME
22664 \end_layout
22665
22666 \end_inset
22667
22668
22669 \end_layout
22670
22671 \end_inset
22672
22673
22674 \end_layout
22675
22676 \begin_layout Subsection
22677 GIT commands in \SpecialChar LyX
22678
22679 \end_layout
22680
22681 \begin_layout Standard
22682 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22683 .
22684  You can find the commands in the 
22685 \family sans
22686 File\SpecialChar menuseparator
22687 Version
22688 \begin_inset space ~
22689 \end_inset
22690
22691 Control
22692 \family default
22693  submenu.
22694  Please note that if you use password protected access to repository via
22695  ssh, you will be asked in terminal window.
22696  \SpecialChar LyX
22697  was tested against GIT 1.7.
22698 \begin_inset Foot
22699 status open
22700
22701 \begin_layout Plain Layout
22702 Windows users please note that you need to ensure that git is on the path.
22703  This can be set from within \SpecialChar LyX
22704  at 
22705 \family sans
22706 Tools\SpecialChar menuseparator
22707 Preferences\SpecialChar menuseparator
22708 Paths\SpecialChar menuseparator
22709 PATH prefix
22710 \family default
22711 .
22712 \end_layout
22713
22714 \end_inset
22715
22716
22717 \end_layout
22718
22719 \begin_layout Standard
22720 One big difference of GIT and the other supported version control systems
22721  is the distributed nature of GIT: With traditional version control systems
22722  there is one central server which hosts the repository.
22723  Users commit their changes to the server, and get updates made by other
22724  users from it.
22725  With GIT, users commit to a local repository.
22726  The local repository can be synchronized with one or more remote repositories
22727  using the 
22728 \begin_inset Flex Code
22729 status collapsed
22730
22731 \begin_layout Plain Layout
22732 pull
22733 \end_layout
22734
22735 \end_inset
22736
22737  and 
22738 \begin_inset Flex Code
22739 status collapsed
22740
22741 \begin_layout Plain Layout
22742 push
22743 \end_layout
22744
22745 \end_inset
22746
22747  GIT commands.
22748  \SpecialChar LyX
22749  does not interact in any way with remote GIT repositories.
22750  It works exclusively with the local repository in a very similar way as
22751  with a central CVS or SVN repository.
22752  If you use remote GIT repositories you need to do the 
22753 \begin_inset Flex Code
22754 status collapsed
22755
22756 \begin_layout Plain Layout
22757 pull
22758 \end_layout
22759
22760 \end_inset
22761
22762  and 
22763 \begin_inset Flex Code
22764 status collapsed
22765
22766 \begin_layout Plain Layout
22767 push
22768 \end_layout
22769
22770 \end_inset
22771
22772  operations with your favourite GIT client.
22773 \end_layout
22774
22775 \begin_layout Subsubsection
22776
22777 \family sans
22778 Register
22779 \end_layout
22780
22781 \begin_layout Standard
22782 If your document is not under revision control, this is the only item shown
22783  in the menu.
22784  And if it is under revision control, the 
22785 \family sans
22786 \bar under
22787 R
22788 \bar default
22789 egister
22790 \family default
22791  item is not visible.
22792 \end_layout
22793
22794 \begin_layout Standard
22795 This command registers in GIT your document ONLY in case you have already
22796  the documents directory under GIT control (in particular 
22797 \family typewriter
22798 .git/index
22799 \family default
22800  file exists).
22801  This means you have to checkout the archive by yourself.
22802 \end_layout
22803
22804 \begin_layout Standard
22805 Then you are asked interactively to supply an initial description of the
22806  document.
22807  Don't forget that registered file is not yet commited.
22808 \end_layout
22809
22810 \begin_layout Standard
22811 GIT command that is run: 
22812 \family typewriter
22813 git add 
22814 \begin_inset Quotes eld
22815 \end_inset
22816
22817 <file-name>
22818 \begin_inset Quotes erd
22819 \end_inset
22820
22821
22822 \end_layout
22823
22824 \begin_layout Standard
22825 Read 
22826 \family typewriter
22827 man git
22828 \family default
22829  to understand the switches.
22830 \end_layout
22831
22832 \begin_layout Subsubsection
22833
22834 \family sans
22835 Check In Changes
22836 \end_layout
22837
22838 \begin_layout Standard
22839 When you are finished editing a file, you commit your changes.
22840  When you do this, you are asked for a description of the changes.
22841  After that changes are commited.
22842 \end_layout
22843
22844 \begin_layout Standard
22845 GIT command: 
22846 \family typewriter
22847 git commit -q -m"<description>" <file-name>
22848 \end_layout
22849
22850 \begin_layout Subsubsection
22851
22852 \family sans
22853 Revert To Repository Version
22854 \end_layout
22855
22856 \begin_layout Standard
22857 This will discard all changes made to the document since the last check
22858  in.
22859  You get a warning before changes are discarded.
22860 \end_layout
22861
22862 \begin_layout Standard
22863 GIT command: 
22864 \family typewriter
22865 git checkout -q 
22866 \begin_inset Quotes eld
22867 \end_inset
22868
22869 <file-name>
22870 \begin_inset Quotes erd
22871 \end_inset
22872
22873
22874 \end_layout
22875
22876 \begin_layout Subsubsection
22877
22878 \family sans
22879 Rename
22880 \end_layout
22881
22882 \begin_layout Standard
22883 This will rename the current document including the version history.
22884  It requires a clean document without any changes since the last checkin.
22885  You are asked for a file name and a description of the rename operation.
22886  After that the document is renamed, both locally and in the repository.
22887  If the parent directories of the new and old file names differ, all relative
22888  paths of included files are adjusted (like in 
22889 \family sans
22890 File\SpecialChar menuseparator
22891 Save As
22892 \family default
22893 \SpecialChar ldots
22894 ).
22895  Finally, the document is reloaded using the new name.
22896 \end_layout
22897
22898 \begin_layout Labeling
22899 \labelwidthstring 00.00.0000
22900 GIT
22901 \begin_inset space ~
22902 \end_inset
22903
22904 commands: 
22905 \begin_inset space ~
22906 \end_inset
22907
22908
22909 \begin_inset Newline newline
22910 \end_inset
22911
22912
22913 \begin_inset Flex Code
22914 status collapsed
22915
22916 \begin_layout Plain Layout
22917 git mv 
22918 \family typewriter
22919
22920 \begin_inset Quotes eld
22921 \end_inset
22922
22923 <file-name>
22924 \begin_inset Quotes erd
22925 \end_inset
22926
22927  
22928 \begin_inset Quotes eld
22929 \end_inset
22930
22931 <new-file-name>
22932 \begin_inset Quotes erd
22933 \end_inset
22934
22935
22936 \end_layout
22937
22938 \end_inset
22939
22940
22941 \begin_inset Newline newline
22942 \end_inset
22943
22944
22945 \begin_inset Flex Code
22946 status collapsed
22947
22948 \begin_layout Plain Layout
22949 git commit
22950 \end_layout
22951
22952 \end_inset
22953
22954
22955 \end_layout
22956
22957 \begin_layout Subsubsection
22958
22959 \family sans
22960 Show History
22961 \end_layout
22962
22963 \begin_layout Standard
22964 This shows the complete history of the GIT document.
22965  The output of 
22966 \family typewriter
22967 git log 
22968 \begin_inset Quotes eld
22969 \end_inset
22970
22971 <file-name>
22972 \begin_inset Quotes erd
22973 \end_inset
22974
22975
22976 \family default
22977  is shown in a browser.
22978 \end_layout
22979
22980 \begin_layout Subsubsection
22981 Version Info
22982 \end_layout
22983
22984 \begin_layout Standard
22985 \SpecialChar LyX
22986  supports GIT hash number of the last commit to the file, author name, date
22987  and time of last commit.
22988  All those are extracted from 
22989 \family typewriter
22990 git log -n 1 --pretty=format:%H%n%an%n%ai
22991 \family default
22992 .
22993  Tree version information is obtained via 
22994 \family typewriter
22995 git describe --abbrev --dirty --long
22996 \family default
22997 .
22998  See 
22999 \begin_inset CommandInset ref
23000 LatexCommand ref
23001 reference "subsec:VCS-Revision-Information"
23002
23003 \end_inset
23004
23005  for other details.
23006 \end_layout
23007
23008 \begin_layout Subsection
23009 Further tuning
23010 \end_layout
23011
23012 \begin_layout Standard
23013 With the recent addition of the vc-command function \SpecialChar LyX
23014  power users are allowed
23015  to create their own commands for revision control.
23016 \end_layout
23017
23018 \begin_layout Standard
23019 As an example you can see how two TortoiseSVN commands could be integrated
23020  directly:
23021 \end_layout
23022
23023 \begin_layout Description
23024 Commit: 
23025 \begin_inset Flex Code
23026 status collapsed
23027
23028 \begin_layout Plain Layout
23029 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23030 \end_layout
23031
23032 \end_inset
23033
23034
23035 \end_layout
23036
23037 \begin_layout Description
23038 Revert: 
23039 \begin_inset Flex Code
23040 status collapsed
23041
23042 \begin_layout Plain Layout
23043 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23044 \end_layout
23045
23046 \end_inset
23047
23048
23049 \end_layout
23050
23051 \begin_layout Subsection
23052 Version control and Document comparison
23053 \end_layout
23054
23055 \begin_layout Standard
23056 One of the typical uses of version control is to inspect the changes between
23057  revisions, usually by creating 
23058 \begin_inset Flex Code
23059 status collapsed
23060
23061 \begin_layout Plain Layout
23062 diff
23063 \end_layout
23064
23065 \end_inset
23066
23067  dumps.
23068  While this is useful for plain text files, it is much less useful in the
23069  case of \SpecialChar LyX
23070  files, which have more a complicated structure.
23071  Hence we provide binding to the Document comparison feature.
23072  There are two ways of calling this feature - either by direct call of 
23073 \begin_inset Flex Code
23074 status collapsed
23075
23076 \begin_layout Plain Layout
23077 VC_COMPARE
23078 \end_layout
23079
23080 \end_inset
23081
23082  \SpecialChar LyX
23083  function (for details see \SpecialChar LyX
23084  functions manual) or by icon/menu item 
23085 \begin_inset Flex MenuItem
23086 status collapsed
23087
23088 \begin_layout Plain Layout
23089 Compare with older revision...
23090 \end_layout
23091
23092 \end_inset
23093
23094 .
23095  One can either compare two chosen revisions of the document or he can simply
23096  compare the current version of edited text with older revisions (where
23097  '
23098 \begin_inset Flex MenuItem
23099 status collapsed
23100
23101 \begin_layout Plain Layout
23102 0
23103 \end_layout
23104
23105 \end_inset
23106
23107 ' revisions back means comparison of the edited file with last commited
23108  revision).
23109  
23110 \end_layout
23111
23112 \begin_layout Standard
23113 This feature is supported for SVN and RCS though due to the more complicated
23114  versioning scheme of RCS there is a constraint – when addressing the revisions
23115  in dialog, numbers always point to the last number in RCS revision number,
23116  i.e.
23117  '35' in '1.2.35'.
23118  We don't currently support GIT addressing of revisions, one can just compare
23119  edited document with its revision X steps backs, where X is addressed as
23120  HEAD~X.
23121 \end_layout
23122
23123 \begin_layout Section
23124 Literate Programming
23125 \end_layout
23126
23127 \begin_layout Standard
23128 Updated by 
23129 \noun on
23130 Kayvan Sylvan 
23131 \noun default
23132 (kayvan@sylvan.com)
23133 \noun on
23134
23135 \noun default
23136 original documentation written by 
23137 \noun on
23138 Edmar Wienskoski Jr.
23139
23140 \noun default
23141  (edmar-w-jr@technologist.com)
23142 \end_layout
23143
23144 \begin_layout Subsection
23145 Introduction
23146 \end_layout
23147
23148 \begin_layout Standard
23149 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23150  for literate
23151  programming, where it is assumed that you are familiar with this programming
23152  technique, and know what 
23153 \begin_inset Quotes eld
23154 \end_inset
23155
23156 tangling
23157 \begin_inset Quotes erd
23158 \end_inset
23159
23160  and 
23161 \begin_inset Quotes eld
23162 \end_inset
23163
23164 weaving
23165 \begin_inset Quotes erd
23166 \end_inset
23167
23168  means.
23169  If that is not the case, please follow the web links provided in the following
23170  sections.
23171  There is a lot of good documentation out there covering old development
23172  history to the latest tools tips.
23173 \end_layout
23174
23175 \begin_layout Standard
23176 It is also assumed that you are familiar with \SpecialChar LyX
23177  itself to a point that you
23178  are comfortable changing your \SpecialChar LyX
23179  preferences, and X resources file.
23180  If that is not the case please refer to other \SpecialChar LyX
23181  documentation to cover your
23182  specific needs.
23183 \end_layout
23184
23185 \begin_layout Subsection
23186 Literate Programming
23187 \end_layout
23188
23189 \begin_layout Standard
23190 From the Literate Programming FAQ: 
23191 \end_layout
23192
23193 \begin_layout Quotation
23194 Literate programming is the combination of documentation and source together
23195  in a fashion suited for reading by human beings.
23196  In fact, literate programs should be enjoyable reading, even inviting!
23197  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23198  and documentation in a single file.
23199  Literate programming tools then parse the file to produce either readable
23200  documentation or compilable source.
23201  The WEB style of literate programming was created by D.
23202 \begin_inset space \thinspace{}
23203 \end_inset
23204
23205 E.
23206  Knuth during the development of his \SpecialChar TeX
23207  typesetting software.
23208  
23209 \end_layout
23210
23211 \begin_layout Standard
23212 Another excerpt says:
23213 \end_layout
23214
23215 \begin_layout Quotation
23216
23217 \emph on
23218 How is literate programming different from verbose commenting?
23219 \end_layout
23220
23221 \begin_layout Quotation
23222 There are three distinguishing characteristics.
23223  In order of importance, they are: 
23224 \begin_inset Separator parbreak
23225 \end_inset
23226
23227
23228 \end_layout
23229
23230 \begin_deeper
23231 \begin_layout Itemize
23232 flexible order of elaboration 
23233 \end_layout
23234
23235 \begin_layout Itemize
23236 automatic support for browsing 
23237 \end_layout
23238
23239 \begin_layout Itemize
23240 typeset documentation, especially diagrams and mathematics 
23241 \end_layout
23242
23243 \end_deeper
23244 \begin_layout Standard
23245 Now that I sparked your curiosity, take a look in the references.
23246 \end_layout
23247
23248 \begin_layout Subsubsection
23249 References
23250 \end_layout
23251
23252 \begin_layout Standard
23253 The complete Literate Programming FAQ can be found at:
23254 \end_layout
23255
23256 \begin_layout Quote
23257 Literate Programming FAQ 
23258 \begin_inset Flex URL
23259 status collapsed
23260
23261 \begin_layout Plain Layout
23262
23263 http://www.literateprogramming.com/lpfaq.pdf
23264 \end_layout
23265
23266 \end_inset
23267
23268
23269 \end_layout
23270
23271 \begin_layout Standard
23272 The FAQ lists 23 (twenty three!) different literate programming tools.
23273  Where some are specialized or 
23274 \begin_inset Quotes eld
23275 \end_inset
23276
23277 tailored
23278 \begin_inset Quotes erd
23279 \end_inset
23280
23281  for particular programming languages, while other have general scope.
23282  I selected 
23283 \noun on
23284 Noweb
23285 \noun default
23286  for my own use for several reasons:
23287 \end_layout
23288
23289 \begin_layout Itemize
23290 It can generate the documentation either in \SpecialChar LaTeX
23291  or HTML.
23292 \end_layout
23293
23294 \begin_layout Itemize
23295 It has a open architecture, i.
23296 \begin_inset space \thinspace{}
23297 \end_inset
23298
23299 e.
23300 \begin_inset space \space{}
23301 \end_inset
23302
23303 it is easy to plug in new filters and to perform special processing that
23304  you may need.
23305  
23306 \end_layout
23307
23308 \begin_layout Itemize
23309 There is a good selection of filters available already (the HTML is one
23310  of them).
23311 \end_layout
23312
23313 \begin_layout Itemize
23314 It is free.
23315 \end_layout
23316
23317 \begin_layout Standard
23318 The Noweb web page can be found at: 
23319 \end_layout
23320
23321 \begin_layout Quote
23322 Noweb home page 
23323 \begin_inset Flex URL
23324 status collapsed
23325
23326 \begin_layout Plain Layout
23327
23328 http://www.cs.virginia.edu/~nr/noweb/
23329 \end_layout
23330
23331 \end_inset
23332
23333
23334 \end_layout
23335
23336 \begin_layout Standard
23337 Starting from there you can reach many other interesting links and even
23338  some literate program examples.
23339 \end_layout
23340
23341 \begin_layout Subsection
23342 \SpecialChar LyX
23343  and Literate Programming with Noweb
23344 \end_layout
23345
23346 \begin_layout Standard
23347 The \SpecialChar LyX
23348  support for Literate Programming is provided by using the generic \SpecialChar LyX
23349
23350  converters mechanism.
23351  This support is provided in a 
23352 \begin_inset Quotes eld
23353 \end_inset
23354
23355 Noweb independent
23356 \begin_inset Quotes erd
23357 \end_inset
23358
23359  way, i.
23360 \begin_inset space \thinspace{}
23361 \end_inset
23362
23363 e.
23364 \begin_inset space \space{}
23365 \end_inset
23366
23367 you will be able to use this new \SpecialChar LyX
23368  feature with some other literate programming
23369  tool of your choice by just changing your \SpecialChar LyX
23370  preferences.
23371 \end_layout
23372
23373 \begin_layout Subsubsection
23374 Generating documents and code (weaving and tangling)
23375 \end_layout
23376
23377 \begin_layout Paragraph
23378 Using the noweb module
23379 \end_layout
23380
23381 \begin_layout Standard
23382 If you have installed Noweb and \SpecialChar LyX
23383  successfully, whenever you open a new document,
23384  after you have chosen its document class, use the Document->Settings menu
23385  to add the 
23386 \begin_inset Quotes eld
23387 \end_inset
23388
23389 noweb
23390 \begin_inset Quotes erd
23391 \end_inset
23392
23393  module.
23394  If Noweb is correctly installed, when you click on the 
23395 \begin_inset Quotes eld
23396 \end_inset
23397
23398 Modules
23399 \begin_inset Quotes erd
23400 \end_inset
23401
23402  link, you will see the 
23403 \begin_inset Quotes eld
23404 \end_inset
23405
23406 noweb
23407 \begin_inset Quotes erd
23408 \end_inset
23409
23410  module in the available list and you can add it to your document.
23411 \end_layout
23412
23413 \begin_layout Paragraph
23414 Typing code in
23415 \end_layout
23416
23417 \begin_layout Standard
23418 \SpecialChar LyX
23419  enables you to write code with a layout named 
23420 \begin_inset Flex Noun
23421 status collapsed
23422
23423 \begin_layout Plain Layout
23424 Chunk
23425 \end_layout
23426
23427 \end_inset
23428
23429 .
23430  Noweb delimits chunks like this:
23431 \end_layout
23432
23433 \begin_layout LyX-Code
23434 <<My code>>=
23435 \end_layout
23436
23437 \begin_layout LyX-Code
23438   code
23439 \end_layout
23440
23441 \begin_layout LyX-Code
23442   more code
23443 \end_layout
23444
23445 \begin_layout LyX-Code
23446   even more code
23447 \end_layout
23448
23449 \begin_layout LyX-Code
23450   @
23451 \end_layout
23452
23453 \begin_layout Standard
23454 The problem is that whatever is written in between the << and the 
23455 \family typewriter
23456 @
23457 \family default
23458  must be taken literally, i.
23459 \begin_inset space \thinspace{}
23460 \end_inset
23461
23462 e.
23463 \begin_inset space \space{}
23464 \end_inset
23465
23466 \SpecialChar LyX
23467  should be prevented from making any special interpretation of what has
23468  been written.
23469  This is also handled by 
23470 \begin_inset Flex Noun
23471 status collapsed
23472
23473 \begin_layout Plain Layout
23474 Chunk
23475 \end_layout
23476
23477 \end_inset
23478
23479 , that works like a normal paragraph but has a free spacing capability.
23480 \end_layout
23481
23482 \begin_layout Standard
23483 As a special note, you can also use the 
23484 \begin_inset Quotes eld
23485 \end_inset
23486
23487 %def
23488 \begin_inset Quotes erd
23489 \end_inset
23490
23491  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23492 rence:
23493 \end_layout
23494
23495 \begin_layout LyX-Code
23496 <<My chunk>>=
23497 \end_layout
23498
23499 \begin_layout LyX-Code
23500 def some_function(args):
23501 \end_layout
23502
23503 \begin_layout LyX-Code
23504    "This is the doc string for this function."
23505 \end_layout
23506
23507 \begin_layout LyX-Code
23508    print "My args: ", args
23509 \end_layout
23510
23511 \begin_layout LyX-Code
23512 @ %def some_function
23513 \end_layout
23514
23515 \begin_layout Standard
23516 For an example of this usage and the resulting cross-reference output, look
23517  at the Literate python program in 
23518 \emph on
23519 LIBDIR/examples/listerrors.lyx
23520 \emph default
23521  which should make this all clear.
23522 \end_layout
23523
23524 \begin_layout Paragraph
23525 Generating the documentation
23526 \end_layout
23527
23528 \begin_layout Standard
23529 At this point you already have a new document file with a proper document
23530  class, and with some code and text on it.
23531  How do I print it? The answer is simple, you select 
23532 \family sans
23533 View\SpecialChar menuseparator
23534 DVI,
23535 \family default
23536  etc.
23537  Just like you would do for a plain document.
23538  No special procedure is required.
23539 \end_layout
23540
23541 \begin_layout Standard
23542 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23543 :
23544 \end_layout
23545
23546 \begin_layout Enumerate
23547 When the 
23548 \family sans
23549 Update\SpecialChar menuseparator
23550 DVI
23551 \family default
23552  menu option is chosen, a \SpecialChar LaTeX
23553  file is generated.
23554  
23555 \begin_inset Separator parbreak
23556 \end_inset
23557
23558
23559 \end_layout
23560
23561 \begin_deeper
23562 \begin_layout Standard
23563 If the document is of any literate class the generated file will be named
23564  with an extension name defined by the 
23565 \begin_inset Quotes eld
23566 \end_inset
23567
23568 literate
23569 \begin_inset Quotes erd
23570 \end_inset
23571
23572  format (defined in the Preferences panel), otherwise the file will have
23573  the usual 
23574 \family typewriter
23575 .tex
23576 \family default
23577  extension.
23578 \end_layout
23579
23580 \end_deeper
23581 \begin_layout Enumerate
23582 Note that the only difference so far is in the name of the file, no special
23583  processing is required by \SpecialChar LyX
23584 .
23585  Given that you formatted the code using the 
23586 \begin_inset Flex Noun
23587 status collapsed
23588
23589 \begin_layout Plain Layout
23590 Chunk
23591 \end_layout
23592
23593 \end_inset
23594
23595  layout that, by itself, takes care of the business.
23596 \end_layout
23597
23598 \begin_layout Enumerate
23599 If the document is of any literate class \SpecialChar LyX
23600  will then use the internal \SpecialChar LyX
23601  to
23602  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23603  converter
23604 \begin_inset Foot
23605 status collapsed
23606
23607 \begin_layout Plain Layout
23608 The converters are defined in the 
23609 \family sans
23610 Tools\SpecialChar menuseparator
23611 Preferences
23612 \family default
23613  panel, under the 
23614 \begin_inset Quotes eld
23615 \end_inset
23616
23617 Conversion
23618 \begin_inset Quotes erd
23619 \end_inset
23620
23621  tab.
23622  See section 
23623 \emph on
23624 Converters
23625 \emph default
23626  of the 
23627 \emph on
23628 Customization
23629 \emph default
23630  manual for general information about converters.
23631 \end_layout
23632
23633 \end_inset
23634
23635  to generate the \SpecialChar LaTeX
23636  file.
23637 \begin_inset Separator parbreak
23638 \end_inset
23639
23640
23641 \end_layout
23642
23643 \begin_deeper
23644 \begin_layout Standard
23645 Otherwise it will just skip this step.
23646 \end_layout
23647
23648 \end_deeper
23649 \begin_layout Enumerate
23650 Finally, \SpecialChar LaTeX
23651  is invoked and the regular post processing continues as in a plain
23652  document.
23653 \end_layout
23654
23655 \begin_layout Standard
23656 Independence from a particular 
23657 \begin_inset Quotes eld
23658 \end_inset
23659
23660 literate tool
23661 \begin_inset Quotes erd
23662 \end_inset
23663
23664  is easily achieved by changing the commands that are run by the various
23665  converters.
23666 \end_layout
23667
23668 \begin_layout Paragraph
23669 Generating the code
23670 \end_layout
23671
23672 \begin_layout Standard
23673 When the build menu option is chosen or the corresponding button in the
23674  toolbar is pressed, a \SpecialChar LaTeX
23675  file is generated just like step 1 above.
23676  Next, \SpecialChar LyX
23677  invokes the 
23678 \family typewriter
23679 Noweb->Program
23680 \family default
23681  converter.
23682  This converter needs to be defined by the user and is not installed by
23683  default, though the Program format is.
23684  This converter (like any other converter) will have two parts:
23685 \end_layout
23686
23687 \begin_layout Enumerate
23688 The converter program itself.
23689  This program performs the conversion from the one format to the other (in
23690  this case, from the Noweb format to the Program pseudo-format).
23691 \end_layout
23692
23693 \begin_layout Enumerate
23694 The error log parser.
23695  This is a program whose sole purpose is to rewrite error messages in a
23696  format that \SpecialChar LyX
23697  understands.
23698  This makes it possible for \SpecialChar LyX
23699  to place error boxes in the right places in
23700  the file buffer.
23701 \end_layout
23702
23703 \begin_layout Standard
23704 The first part, the 
23705 \begin_inset Quotes eld
23706 \end_inset
23707
23708 Converter
23709 \begin_inset Quotes erd
23710 \end_inset
23711
23712  setting, should be set to
23713 \begin_inset Newline newline
23714 \end_inset
23715
23716
23717 \begin_inset Quotes eld
23718 \end_inset
23719
23720
23721 \family typewriter
23722 build-script $$i
23723 \family default
23724  $$r
23725 \begin_inset Quotes erd
23726 \end_inset
23727
23728 .
23729 \begin_inset Newline newline
23730 \end_inset
23731
23732 This basically means that \SpecialChar LyX
23733  will call 
23734 \begin_inset Quotes eld
23735 \end_inset
23736
23737 build-script
23738 \begin_inset Quotes erd
23739 \end_inset
23740
23741  (a program or script) with the name of the Noweb file (normally a file
23742  in the \SpecialChar LyX
23743  temp directory) and the directory path of the original \SpecialChar LyX
23744  file.
23745  
23746 \end_layout
23747
23748 \begin_layout Standard
23749 This is an implementation of 
23750 \begin_inset Quotes eld
23751 \end_inset
23752
23753 build-script
23754 \begin_inset Quotes erd
23755 \end_inset
23756
23757  that you can place in a directory on your path:
23758 \end_layout
23759
23760 \begin_layout Standard
23761 \begin_inset VSpace defskip
23762 \end_inset
23763
23764
23765 \end_layout
23766
23767 \begin_layout Standard
23768 \begin_inset Newpage pagebreak
23769 \end_inset
23770
23771
23772 \end_layout
23773
23774 \begin_layout Standard
23775
23776 \family sans
23777 #!/bin/sh
23778 \end_layout
23779
23780 \begin_layout Standard
23781
23782 \family sans
23783 #
23784 \end_layout
23785
23786 \begin_layout Standard
23787
23788 \family sans
23789 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23790 \end_layout
23791
23792 \begin_layout Standard
23793 \begin_inset VSpace defskip
23794 \end_inset
23795
23796
23797 \end_layout
23798
23799 \begin_layout Standard
23800 The next part of the converter setting is the 
23801 \begin_inset Quotes eld
23802 \end_inset
23803
23804 Flags
23805 \begin_inset Quotes erd
23806 \end_inset
23807
23808  which is to be set to
23809 \begin_inset Newline newline
23810 \end_inset
23811
23812
23813 \begin_inset Quotes eld
23814 \end_inset
23815
23816
23817 \family typewriter
23818 parselog=$$s/scripts/listerrors
23819 \family default
23820
23821 \begin_inset Quotes erd
23822 \end_inset
23823
23824 .
23825 \begin_inset Newline newline
23826 \end_inset
23827
23828 This will run any errors that are generated by the 
23829 \begin_inset Quotes eld
23830 \end_inset
23831
23832 build-script
23833 \begin_inset Quotes erd
23834 \end_inset
23835
23836  process through the 
23837 \begin_inset Quotes eld
23838 \end_inset
23839
23840 listerrors
23841 \begin_inset Quotes erd
23842 \end_inset
23843
23844  program.
23845 \end_layout
23846
23847 \begin_layout Standard
23848 The build will normally take place in \SpecialChar LyX
23849 's temporary directory, so the files
23850  produced by the conversion will be in that directory.
23851  \SpecialChar LyX
23852  will copy out what it regards as the `main' file, but the 
23853 \family typewriter
23854 Noweb->Program
23855 \family default
23856  conversion may produce several files, and so most of these would then be
23857  deleted when \SpecialChar LyX
23858  was closed.
23859  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23860  the build-script chunk can place the generated files in that location.
23861 \end_layout
23862
23863 \begin_layout Paragraph
23864 Build instructions in the document
23865 \end_layout
23866
23867 \begin_layout Standard
23868 The last piece of the integration between \SpecialChar LyX
23869  and noweb is the 
23870 \begin_inset Quotes eld
23871 \end_inset
23872
23873 build-script
23874 \begin_inset Quotes erd
23875 \end_inset
23876
23877  chunk.
23878  Generally, the instructions for building your program should be embedded
23879  in a chunk of its own.
23880  The noweb-specific 
23881 \begin_inset Quotes eld
23882 \end_inset
23883
23884 build-script
23885 \begin_inset Quotes erd
23886 \end_inset
23887
23888  above uses the notangle command to look for this chunk (called 
23889 \begin_inset Quotes eld
23890 \end_inset
23891
23892 build-script
23893 \begin_inset Quotes erd
23894 \end_inset
23895
23896 ) and runs its contents through 
23897 \begin_inset Quotes eld
23898 \end_inset
23899
23900 sh
23901 \begin_inset Quotes erd
23902 \end_inset
23903
23904 .
23905 \end_layout
23906
23907 \begin_layout Standard
23908 Typically, such a chunk would look something like this:
23909 \end_layout
23910
23911 \begin_layout LyX-Code
23912 <<build-script>>=
23913 \end_layout
23914
23915 \begin_layout LyX-Code
23916 #!/bin/sh
23917 \begin_inset Newline newline
23918 \end_inset
23919
23920 if [ -z "${NOWEB_SOURCE}" ]
23921 \begin_inset Newline newline
23922 \end_inset
23923
23924 then
23925 \end_layout
23926
23927 \begin_layout LyX-Code
23928 NOWEB_SOURCE=myfile.nw
23929 \begin_inset Newline newline
23930 \end_inset
23931
23932 fi
23933 \begin_inset Newline newline
23934 \end_inset
23935
23936 [...
23937  code to extract files ...
23938  use NOWEB_OUTPUT_DIR here ...]
23939 \begin_inset Newline newline
23940 \end_inset
23941
23942 [...
23943  code to compile files ...]
23944 \begin_inset Newline newline
23945 \end_inset
23946
23947 @
23948 \end_layout
23949
23950 \begin_layout Standard
23951 Look in 
23952 \emph on
23953 LIBDIR/examples/listerrors.lyx
23954 \emph default
23955  or in 
23956 \emph on
23957 LIBDIR/examples/Literate.lyx
23958 \emph default
23959  which implement two versions of the 
23960 \begin_inset Quotes eld
23961 \end_inset
23962
23963 listerrors
23964 \begin_inset Quotes erd
23965 \end_inset
23966
23967  program for some illustrations of how all of these pieces go together or
23968  in 
23969 \emph on
23970 LIBDIR/examples/noweb2lyx.lyx.
23971
23972 \emph default
23973  Interestingly, these three files show off the language-indepence of the
23974  \SpecialChar LyX
23975  literate programming support since they are written in Python, C and Perl
23976  respectively.
23977 \end_layout
23978
23979 \begin_layout Subsubsection
23980 Configuring \SpecialChar LyX
23981
23982 \end_layout
23983
23984 \begin_layout Standard
23985 All the Literate Programming support is configured by the 
23986 \family sans
23987 Tools\SpecialChar menuseparator
23988 Preferences
23989 \family default
23990  panel in the 
23991 \begin_inset Quotes eld
23992 \end_inset
23993
23994 File Handling
23995 \begin_inset Quotes erd
23996 \end_inset
23997
23998  tab.
23999  The important parts are:
24000 \end_layout
24001
24002 \begin_layout Description
24003 the
24004 \begin_inset space ~
24005 \end_inset
24006
24007
24008 \begin_inset Quotes eld
24009 \end_inset
24010
24011 NoWeb
24012 \begin_inset Quotes erd
24013 \end_inset
24014
24015
24016 \begin_inset space ~
24017 \end_inset
24018
24019 format Set up via the File Formats tab, this is where the Noweb-specific
24020  pieces are set up.
24021  The 
24022 \family sans
24023 GUI Name
24024 \family default
24025  is set to 
24026 \family typewriter
24027 NoWeb
24028 \family default
24029 , the file extension is set to 
24030 \family typewriter
24031 .nw
24032 \family default
24033 .
24034  This tells \SpecialChar LyX
24035  to create a file with a 
24036 \family typewriter
24037 .nw
24038 \family default
24039  extension in the first step of the conversion process.
24040 \end_layout
24041
24042 \begin_layout Description
24043 the
24044 \begin_inset space ~
24045 \end_inset
24046
24047
24048 \family sans
24049 Program
24050 \family default
24051
24052 \begin_inset space ~
24053 \end_inset
24054
24055 format This is an empty format whose sole purpose is to be the endpoint
24056  of a conversion (which then allows us to set up a converter for it).
24057 \end_layout
24058
24059 \begin_layout Description
24060
24061 \family sans
24062 NoWeb
24063 \family default
24064 ->
24065 \family sans
24066 \SpecialChar LaTeX
24067
24068 \family default
24069  This converter performs the 
24070 \begin_inset Quotes eld
24071 \end_inset
24072
24073 weaving
24074 \begin_inset Quotes erd
24075 \end_inset
24076
24077  of the literate document.
24078  For Noweb, it is set to 
24079 \begin_inset Quotes eld
24080 \end_inset
24081
24082
24083 \family typewriter
24084 noweave -delay -index $$i > $$o
24085 \family default
24086
24087 \begin_inset Quotes erd
24088 \end_inset
24089
24090
24091 \end_layout
24092
24093 \begin_layout Description
24094
24095 \family sans
24096 NoWeb
24097 \family default
24098 ->
24099 \family sans
24100 Program
24101 \family default
24102  This performs the 
24103 \begin_inset Quotes eld
24104 \end_inset
24105
24106 tangling step
24107 \begin_inset Quotes erd
24108 \end_inset
24109
24110 .
24111  As stated above, the Converter is set to 
24112 \begin_inset Quotes eld
24113 \end_inset
24114
24115
24116 \family typewriter
24117 build-script $$i
24118 \family default
24119  $$r
24120 \begin_inset Quotes erd
24121 \end_inset
24122
24123 , with Flags set to
24124 \begin_inset Newline newline
24125 \end_inset
24126
24127
24128 \begin_inset Quotes eld
24129 \end_inset
24130
24131
24132 \family typewriter
24133 parselog=$$s/scripts/listerrors
24134 \family default
24135
24136 \begin_inset Quotes erd
24137 \end_inset
24138
24139 .
24140 \end_layout
24141
24142 \begin_layout Subsubsection
24143 Debug extensions
24144 \end_layout
24145
24146 \begin_layout Standard
24147 There is also a new function implemented in the \SpecialChar LyX
24148  server, the 
24149 \begin_inset Quotes eld
24150 \end_inset
24151
24152 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24153  
24154 \end_layout
24155
24156 \begin_layout Standard
24157 When debugging code with ddd/gdb, it is possible to invoke a text editor
24158  at the current execution position with a single key stroke.
24159  The default ddd configuration for that is shift-ctrl-V.
24160  It happens that you can define the editor command line invocation in ddd
24161  by accessing the 
24162 \family sans
24163 Edit\SpecialChar menuseparator
24164 Preferences\SpecialChar menuseparator
24165 Helpers
24166 \family default
24167  dialog and changing the "Edit Sources" entry.
24168 \end_layout
24169
24170 \begin_layout Standard
24171 I take advantage of the newly created \SpecialChar LyX
24172  server function and this ddd feature,
24173  and set 
24174 \begin_inset Quotes eld
24175 \end_inset
24176
24177 Edit Sources
24178 \begin_inset Quotes erd
24179 \end_inset
24180
24181  to:
24182 \end_layout
24183
24184 \begin_layout Standard
24185 \begin_inset VSpace defskip
24186 \end_inset
24187
24188
24189 \end_layout
24190
24191 \begin_layout Standard
24192
24193 \family sans
24194 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24195 \end_layout
24196
24197 \begin_layout Standard
24198 \begin_inset VSpace defskip
24199 \end_inset
24200
24201
24202 \end_layout
24203
24204 \begin_layout Standard
24205 With this, whenever you are using ddd and find a point in the program that
24206  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24207  ddd will forward this information to \SpecialChar LyX
24208  through the \SpecialChar LyX
24209  server and then the
24210  \SpecialChar LyX
24211  window will show the same file with the cursor at the same position ddd
24212  was pointing to.
24213  No more guessing or long scrolling to locate a point in the program back
24214  from debugging !
24215 \end_layout
24216
24217 \begin_layout Standard
24218 Note however that you must enable the \SpecialChar LyX
24219  server to get this feature working
24220  (it is disabled by default).
24221  You can enable it in 
24222 \family sans
24223 Preferences
24224 \family default
24225  (tabs 
24226 \family sans
24227 Inputs
24228 \family default
24229
24230 \family sans
24231 Paths
24232 \family default
24233 ) by entering in the 
24234 \family sans
24235 \SpecialChar LyX
24236 server pipe
24237 \family default
24238  a path like 
24239 \begin_inset Quotes eld
24240 \end_inset
24241
24242
24243 \family typewriter
24244 /home/<your-home-directory>/.lyx/lyxpipe
24245 \family default
24246
24247 \begin_inset Quotes erd
24248 \end_inset
24249
24250
24251 \end_layout
24252
24253 \begin_layout Standard
24254 Read the \SpecialChar LyX
24255  server documentation in the 
24256 \emph on
24257 Customization Manual
24258 \emph default
24259  for further information.
24260 \end_layout
24261
24262 \begin_layout Subsubsection
24263 Toolbar extensions
24264 \end_layout
24265
24266 \begin_layout Standard
24267 There are six new buttons that can be added to your \SpecialChar LyX
24268  toolbar.
24269  Five of these buttons are short cuts to layout styles: 
24270 \family sans
24271 Standard
24272 \family default
24273
24274 \family sans
24275 Section
24276 \family default
24277
24278 \family sans
24279 \SpecialChar LaTeX
24280
24281 \family default
24282
24283 \family sans
24284 \SpecialChar LyX
24285 -Code
24286 \family default
24287 , and 
24288 \family sans
24289 Chunk
24290 \family default
24291 .
24292  The last one is a short cut to the 
24293 \begin_inset Quotes eld
24294 \end_inset
24295
24296 Build Program
24297 \begin_inset Quotes erd
24298 \end_inset
24299
24300  File menu entry.
24301  
24302 \end_layout
24303
24304 \begin_layout Standard
24305 \SpecialChar LyX
24306  has a range of buttons that are available for tool bar customization.
24307  In my toolbar I like to combine the six short cuts above with two more:
24308  One for 
24309 \family sans
24310 Document
24311 \family default
24312 \SpecialChar menuseparator
24313
24314 \family sans
24315 Update
24316 \family default
24317 \SpecialChar menuseparator
24318
24319 \family sans
24320 DVI
24321 \family default
24322  and the other for 
24323 \family sans
24324 Document\SpecialChar menuseparator
24325 View\SpecialChar menuseparator
24326 DVI
24327 \family default
24328  File menu entries.
24329  Here is how it looks like:
24330 \end_layout
24331
24332 \begin_layout LyX-Code
24333 Toolbar
24334 \end_layout
24335
24336 \begin_layout LyX-Code
24337   Layouts
24338 \end_layout
24339
24340 \begin_layout LyX-Code
24341   Icon "layout Standard"
24342 \end_layout
24343
24344 \begin_layout LyX-Code
24345   Icon "layout Section"
24346 \end_layout
24347
24348 \begin_layout LyX-Code
24349   Icon "layout \SpecialChar LaTeX
24350 "
24351 \end_layout
24352
24353 \begin_layout LyX-Code
24354   Icon "layout \SpecialChar LyX
24355 -Code"
24356 \end_layout
24357
24358 \begin_layout LyX-Code
24359   Icon "layout Chunk"
24360 \end_layout
24361
24362 \begin_layout LyX-Code
24363   Separator
24364 \end_layout
24365
24366 \begin_layout LyX-Code
24367   Icon "buffer-view"
24368 \end_layout
24369
24370 \begin_layout LyX-Code
24371   Icon "buffer-typeset"
24372 \end_layout
24373
24374 \begin_layout LyX-Code
24375   Icon "build-program"
24376 \end_layout
24377
24378 \begin_layout LyX-Code
24379   Separator
24380 \end_layout
24381
24382 \begin_layout LyX-Code
24383 .
24384 \end_layout
24385
24386 \begin_layout LyX-Code
24387 .
24388 \end_layout
24389
24390 \begin_layout LyX-Code
24391 .
24392 \end_layout
24393
24394 \begin_layout LyX-Code
24395 End
24396 \end_layout
24397
24398 \begin_layout Subsubsection
24399 Colors customization
24400 \end_layout
24401
24402 \begin_layout Standard
24403 There are a number of colors in \SpecialChar LyX
24404  that can be customized in 
24405 \family sans
24406 Preferences
24407 \family default
24408 .
24409  One of the things that bothers people is the \SpecialChar LaTeX
24410  font color.
24411  The default color is red, since the chunks uses \SpecialChar LaTeX
24412  font, and there is a lot
24413  of chunks in literate documents, you may get tired of seeing everything
24414  in red.
24415  You can change it by going to the tabs 
24416 \family sans
24417 Look&Feel
24418 \family default
24419
24420 \family sans
24421 Colors.
24422 \end_layout
24423
24424 \begin_layout Standard
24425 The next thing is the visible presence of the newline character in the screen.
24426  You can choose the color of this particular character and make it blend
24427  in the background.
24428  I recommend you choosing a color that is close to the background but not
24429  equal, that way you still can see it is there, but it is not bothering
24430  you anymore.
24431 \end_layout
24432
24433 \begin_layout Subsection
24434 \SpecialChar LyX
24435  and knitr/Sweave
24436 \end_layout
24437
24438 \begin_layout Standard
24439 Support for 
24440 \family sans
24441 knitr
24442 \family default
24443  and 
24444 \family sans
24445 Sweave
24446 \family default
24447  is documented in the 
24448 \emph on
24449 knitr.lyx
24450 \emph default
24451  example file and in the Sweave manual (menu 
24452 \family sans
24453 Help\SpecialChar menuseparator
24454 Specific Manuals
24455 \family default
24456 ).
24457 \end_layout
24458
24459 \begin_layout Chapter
24460 Special features
24461 \end_layout
24462
24463 \begin_layout Standard
24464 You can do everything with \SpecialChar LyX
24465  that you can do with \SpecialChar LaTeX
24466 .
24467  However, \SpecialChar LyX
24468  cannot support every \SpecialChar LaTeX
24469  feature directly.
24470  But you can always use \SpecialChar TeX
24471  Code.
24472  This chapter shows you some more special things you might want to use.
24473  For other special things you can do with figures, tables, floats, boxes
24474  and notes, have a look at the 
24475 \emph on
24476 Embedded
24477 \begin_inset space ~
24478 \end_inset
24479
24480 Objects
24481 \emph default
24482  manual.
24483 \end_layout
24484
24485 \begin_layout Section
24486 Multiple Text Columns
24487 \end_layout
24488
24489 \begin_layout Standard
24490 This feature is independent of the option 
24491 \family sans
24492 Two-column document
24493 \family default
24494  in the document settings under 
24495 \family sans
24496 Text Layout
24497 \family default
24498 .
24499  If you want to have 2
24500 \begin_inset space ~
24501 \end_inset
24502
24503 columns for the whole document, it is recommended to use the 
24504 \family sans
24505 Two-column document
24506 \family default
24507  option.
24508  For all other cases use this feature.
24509 \end_layout
24510
24511 \begin_layout Standard
24512 To use multiple text columns in your document, you have to load the module
24513  
24514 \family sans
24515 Multiple Columns
24516 \family default
24517  (menu 
24518 \family sans
24519 Document\SpecialChar menuseparator
24520 Settings\SpecialChar menuseparator
24521 Modules
24522 \family default
24523 ) and must have the \SpecialChar LaTeX
24524 -package 
24525 \series bold
24526 multicol
24527 \series default
24528  installed.
24529 \end_layout
24530
24531 \begin_layout Standard
24532 Footnotes within multiple columns will be placed at the bottom of the page
24533  and not under each column.
24534  Within the different columns you can use everything, with the limitation
24535  that for floats you need to use the float option 
24536 \family sans
24537 Span columns
24538 \family default
24539 .
24540 \end_layout
24541
24542 \begin_layout Subsection
24543 Basics
24544 \end_layout
24545
24546 \begin_layout Standard
24547 If you want to have 2
24548 \begin_inset space ~
24549 \end_inset
24550
24551 columns in your text, insert a multicolumn inset via the menu 
24552 \family sans
24553 Insert\SpecialChar menuseparator
24554 Custom
24555 \begin_inset space ~
24556 \end_inset
24557
24558 Insets\SpecialChar menuseparator
24559 Multiple
24560 \begin_inset space ~
24561 \end_inset
24562
24563 Columns
24564 \family default
24565  where the columns should start.
24566  Write all text that should be printed in 2
24567 \begin_inset space ~
24568 \end_inset
24569
24570 columns into this inset.
24571 \end_layout
24572
24573 \begin_layout Standard
24574 Here is an example:
24575 \end_layout
24576
24577 \begin_layout Standard
24578 \noindent
24579 \begin_inset Flex Multiple Columns
24580 status open
24581
24582 \begin_layout Plain Layout
24583 \noindent
24584
24585 \series bold
24586 \size small
24587 The Adventure of the Empty House
24588 \series default
24589
24590 \begin_inset Newline newline
24591 \end_inset
24592
24593 by Sir Arthur Conan Doyle
24594 \end_layout
24595
24596 \begin_layout Plain Layout
24597
24598 \size small
24599 It was in the spring of the year 1894 that all London was interested, and
24600  the fashionable world dismayed, by the murder of the Honourable Ronald
24601  Adair under most unusual and inexplicable circumstances.
24602  The public has already learned those particulars of the crime which came
24603  out in the police investigation, but a good deal was suppressed upon that
24604  occasion, since the case for the prosecution was so overwhelmingly strong
24605  that it was not necessary to bring forward all the facts.
24606  Only now, at the end of nearly ten years, am I allowed to supply those
24607  missing links which make up the whole of that remarkable chain.
24608  The crime was of interest in itself, but that interest was as nothing to
24609  me compared to the inconceivable sequel, which afforded me the greatest
24610  shock and surprise of any event in my adventurous life.
24611  Even now, after this long interval, I find myself thrilling as I think
24612  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24613 ty which utterly submerged my mind.
24614  Let me say to that public, which has shown some interest in those glimpses
24615  which I have occasionally given them of the thoughts and actions of a very
24616  remarkable man, that they are not to blame me if I have not shared my knowledge
24617  with them, for I should have considered it my first duty to do so, had
24618  I not been barred by a positive prohibition from his own lips, which was
24619  only withdrawn upon the third of last month.
24620 \end_layout
24621
24622 \end_inset
24623
24624
24625 \end_layout
24626
24627 \begin_layout Standard
24628 To get 3 or more columns, set the cursor into the multicolumn inset and
24629  use the menu 
24630 \family sans
24631 Insert\SpecialChar menuseparator
24632 Number
24633 \begin_inset space ~
24634 \end_inset
24635
24636 of
24637 \begin_inset space ~
24638 \end_inset
24639
24640 Columns
24641 \family default
24642 .
24643  The number of the desired columns is written into that inset (for 3
24644 \begin_inset space ~
24645 \end_inset
24646
24647 columns write 
24648 \begin_inset Quotes eld
24649 \end_inset
24650
24651 3
24652 \begin_inset Quotes erd
24653 \end_inset
24654
24655 ).
24656 \begin_inset Newline newline
24657 \end_inset
24658
24659 Here is an example with 3
24660 \begin_inset space ~
24661 \end_inset
24662
24663 columns:
24664 \end_layout
24665
24666 \begin_layout Standard
24667 \begin_inset Flex Multiple Columns
24668 status open
24669
24670 \begin_layout Plain Layout
24671
24672 \size footnotesize
24673 \begin_inset Argument 1
24674 status open
24675
24676 \begin_layout Plain Layout
24677 3
24678 \end_layout
24679
24680 \end_inset
24681
24682 It can be imagined that my close intimacy with Sherlock Holmes had interested
24683  me deeply in crime, and that after his disappearance I never failed to
24684  read with care the various problems which came before the public.
24685  And I even attempted, more than once, for my own private satisfaction,
24686  to employ his methods in their solution, though with indifferent success.
24687  There was none, however, which appealed to me like this tragedy of Ronald
24688  Adair.
24689  As I read the evidence at the inquest, which led up to a verdict of willful
24690  murder against some person or persons unknown, I realized more clearly
24691  than I had ever done the loss which the community had sustained by the
24692  death of Sherlock Holmes.
24693  There were points about this strange business which would, I was sure,
24694  have specially appealed to him, and the efforts of the police would have
24695  been supplemented, or more probably anticipated, by the trained observation
24696  and the alert mind of the first criminal agent in Europe.
24697  All day, as I drove upon my round, I turned over the case in my mind and
24698  found no explanation which appeared to me to be adequate.
24699  At the risk of telling a twice-told tale, I will recapitulate the facts
24700  as they were known to the public at the conclusion of the inquest.
24701 \end_layout
24702
24703 \end_inset
24704
24705
24706 \end_layout
24707
24708 \begin_layout Standard
24709 You can have up to 10
24710 \begin_inset space ~
24711 \end_inset
24712
24713 columns if you want to, but that might not be very pleasant for the readers
24714  of your document.
24715 \end_layout
24716
24717 \begin_layout Standard
24718 \begin_inset Newpage newpage
24719 \end_inset
24720
24721
24722 \end_layout
24723
24724 \begin_layout Subsection
24725 Columns inside Columns
24726 \end_layout
24727
24728 \begin_layout Standard
24729 You can also have columns inside columns:
24730 \end_layout
24731
24732 \begin_layout Standard
24733 \begin_inset Flex Multiple Columns
24734 status open
24735
24736 \begin_layout Plain Layout
24737
24738 \size footnotesize
24739 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24740  at that time governor of one of the Australian colonies.
24741  Adair's mother had returned from Australia to undergo the operation for
24742  cataract, and she, her son Ronald, and her daughter Hilda were living together
24743  at 427 Park Lane.
24744 \end_layout
24745
24746 \begin_layout Plain Layout
24747 \begin_inset Flex Multiple Columns
24748 status open
24749
24750 \begin_layout Plain Layout
24751
24752 \size footnotesize
24753 The youth moved in the best society–had, so far as was known, no enemies
24754  and no particular vices.
24755  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24756  had been broken off by mutual consent some months before, and there was
24757  no sign that it had left any very profound feeling behind it.
24758  For the rest {sic} the man's life moved in a narrow and conventional circle,
24759  for his habits were quiet and his nature unemotional.
24760  Yet it was upon this easy-going young aristocrat that death came, in most
24761  strange and unexpected form, between the hours of ten and eleven-twenty
24762  on the night of March 30, 1894.
24763 \end_layout
24764
24765 \end_inset
24766
24767
24768 \end_layout
24769
24770 \begin_layout Plain Layout
24771
24772 \size footnotesize
24773 Ronald Adair was fond of cards–playing continually, but never for such stakes
24774  as would hurt him.
24775  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24776  It was shown that, after dinner on the day of his death, he had played
24777  a rubber of whist at the latter club.
24778  He had also played there in the afternoon.
24779
24780 \size default
24781  
24782 \size footnotesize
24783 The evidence of those who had played with him– Mr.
24784  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24785  and that there was a fairly equal fall of the cards.
24786  Adair might have lost five pounds, but not more.
24787  His fortune was a considerable one, and such a loss could not in any way
24788  affect him.
24789  He had played nearly every day at one club or other, but he was a cautious
24790  player, and usually rose a winner.
24791  It came out in evidence that, in partnership with Colonel Moran, he had
24792  actually won as much as four hundred and twenty pounds in a sitting, some
24793  weeks before, from Godfrey Milner and Lord Balmoral.
24794  So much for his recent history as it came out at the inquest.
24795 \end_layout
24796
24797 \end_inset
24798
24799
24800 \end_layout
24801
24802 \begin_layout Subsection
24803 Advanced Examples
24804 \end_layout
24805
24806 \begin_layout Standard
24807 The examples in this section show some more special features of multiple
24808  columns.
24809 \end_layout
24810
24811 \begin_layout Standard
24812 For more features of multiple columns, have a look at the documentation
24813  of the \SpecialChar LaTeX
24814 -package 
24815 \series bold
24816 multicol
24817 \series default
24818
24819 \begin_inset CommandInset citation
24820 LatexCommand cite
24821 key "multicol"
24822
24823 \end_inset
24824
24825 .
24826 \end_layout
24827
24828 \begin_layout Subsubsection
24829 Preface
24830 \end_layout
24831
24832 \begin_layout Standard
24833 To add a preface text for multiple columns, set the cursor into the multicolumn
24834  inset and use the menu 
24835 \family sans
24836 Insert\SpecialChar menuseparator
24837 Preface
24838 \family default
24839 .
24840  Write your preface text into that inset.
24841 \begin_inset Newline newline
24842 \end_inset
24843
24844 This is an example with some preface text:
24845 \end_layout
24846
24847 \begin_layout Standard
24848 \begin_inset VSpace bigskip
24849 \end_inset
24850
24851
24852 \end_layout
24853
24854 \begin_layout Standard
24855 \begin_inset Flex Multiple Columns
24856 status open
24857
24858 \begin_layout Plain Layout
24859 \begin_inset Argument 2
24860 status open
24861
24862 \begin_layout Plain Layout
24863 And the story continues and continues and continues and continues\SpecialChar ldots
24864
24865 \end_layout
24866
24867 \end_inset
24868
24869
24870 \size small
24871 On the evening of the crime, he returned from the club exactly at ten.
24872  His mother and sister were out spending the evening with a relation.
24873  The servant deposed that she heard him enter the front room on the second
24874  floor, generally used as his sitting-room.
24875  She had lit a fire there, and as it smoked she had opened the window.
24876  No sound was heard from the room until eleven-twenty, the hour of the return
24877  of Lady Maynooth and her daughter.
24878  Desiring to say good-night, she attempted to enter her son's room.
24879  The door was locked on the inside, and no answer could be got to their
24880  cries and knocking.
24881  Help was obtained, and the door forced.
24882  The unfortunate young man was found lying near the table.
24883  His head had been horribly mutilated by an expanding revolver bullet, but
24884  no weapon of any sort was to be found in the room.
24885 \end_layout
24886
24887 \end_inset
24888
24889
24890 \end_layout
24891
24892 \begin_layout Standard
24893 You can also use a section heading as the preface if you use a section command
24894  as \SpecialChar TeX
24895  Code.
24896  For example the command
24897 \end_layout
24898
24899 \begin_layout Standard
24900
24901 \series bold
24902
24903 \backslash
24904 subsection{subsection title}
24905 \end_layout
24906
24907 \begin_layout Standard
24908 creates a subsection.
24909  In this example the preface is a subsubsection:
24910 \end_layout
24911
24912 \begin_layout Standard
24913 \begin_inset Flex Multiple Columns
24914 status open
24915
24916 \begin_layout Plain Layout
24917 \begin_inset Argument 2
24918 status open
24919
24920 \begin_layout Plain Layout
24921 \begin_inset ERT
24922 status collapsed
24923
24924 \begin_layout Plain Layout
24925
24926
24927 \backslash
24928 subsubsection{
24929 \end_layout
24930
24931 \end_inset
24932
24933 This is a subsubsection heading as a preface
24934 \begin_inset ERT
24935 status collapsed
24936
24937 \begin_layout Plain Layout
24938
24939 }
24940 \end_layout
24941
24942 \end_inset
24943
24944
24945 \end_layout
24946
24947 \end_inset
24948
24949
24950 \size small
24951 A minute examination of the circumstances served only to make the case more
24952  complex.
24953  In the first place, no reason could be given why the young man should have
24954  fastened the door upon the inside.
24955  There was the possibility that the murderer had done this, and had afterwards
24956  escaped by the window.
24957  The drop was at least twenty feet, however, and a bed of crocuses in full
24958  bloom lay beneath.
24959  Neither the flowers nor the earth showed any sign of having been disturbed,
24960  nor were there any marks upon the narrow strip of grass which separated
24961  the house from the road.
24962  Apparently, therefore, it was the young man himself who had fastened the
24963  door.
24964  But how did he come by his death? No one could have climbed up to the window
24965  without leaving traces.
24966  Suppose a man had fired through the window, he would indeed be a remarkable
24967  shot who could with a revolver inflict so deadly a wound.
24968  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24969  a hundred yards of the house.
24970  No one had heard a shot.
24971 \end_layout
24972
24973 \end_inset
24974
24975
24976 \end_layout
24977
24978 \begin_layout Standard
24979 If there is less vertical space than 6
24980 \begin_inset space ~
24981 \end_inset
24982
24983 text lines is left on the page at the beginning of the multiple columns,
24984  a page break will be inserted before the multiple columns.
24985  Depending on the number of lines of the preface text, you might want to
24986  change this space.
24987  This is done by setting the cursor into the mulitcolumn inset behind the
24988  preface (if there is any) and using the menu 
24989 \family sans
24990 Insert\SpecialChar menuseparator
24991 Space
24992 \begin_inset space ~
24993 \end_inset
24994
24995 Before
24996 \begin_inset space ~
24997 \end_inset
24998
24999 Page
25000 \begin_inset space ~
25001 \end_inset
25002
25003 Break
25004 \family default
25005 .
25006  Insert into that inset the amount of space like e.
25007 \begin_inset space \thinspace{}
25008 \end_inset
25009
25010 g.
25011 \begin_inset space \space{}
25012 \end_inset
25013
25014
25015 \begin_inset Quotes eld
25016 \end_inset
25017
25018 5cm
25019 \begin_inset Quotes erd
25020 \end_inset
25021
25022 .
25023 \begin_inset Newline newline
25024 \end_inset
25025
25026 In this example the space is set to 7
25027 \begin_inset space ~
25028 \end_inset
25029
25030 text lines by using 
25031 \begin_inset Quotes eld
25032 \end_inset
25033
25034 7
25035 \backslash
25036 baselineskip
25037 \begin_inset Quotes erd
25038 \end_inset
25039
25040  (where the command 
25041 \series bold
25042
25043 \backslash
25044 baselineskip
25045 \series default
25046  needs to be inserted as \SpecialChar TeX
25047  code):
25048 \end_layout
25049
25050 \begin_layout Standard
25051 \begin_inset Flex Multiple Columns
25052 status open
25053
25054 \begin_layout Plain Layout
25055 \begin_inset Argument 3
25056 status open
25057
25058 \begin_layout Plain Layout
25059 7
25060 \begin_inset ERT
25061 status collapsed
25062
25063 \begin_layout Plain Layout
25064
25065
25066 \backslash
25067 baselineskip
25068 \end_layout
25069
25070 \end_inset
25071
25072
25073 \end_layout
25074
25075 \end_inset
25076
25077
25078 \size small
25079 On the evening of the crime, he returned from the club exactly at ten.
25080  His mother and sister were out spending the evening with a relation.
25081  The servant deposed that she heard him enter the front room on the second
25082  floor, generally used as his sitting-room.
25083  She had lit a fire there, and as it smoked she had opened the window.
25084  No sound was heard from the room until eleven-twenty, the hour of the return
25085  of Lady Maynooth and her daughter.
25086  Desiring to say good-night, she attempted to enter her son's room.
25087  The door was locked on the inside, and no answer could be got to their
25088  cries and knocking.
25089  Help was obtained, and the door forced.
25090  The unfortunate young man was found lying near the table.
25091  His head had been horribly mutilated by an expanding revolver bullet, but
25092  no weapon of any sort was to be found in the room.
25093 \end_layout
25094
25095 \end_inset
25096
25097
25098 \end_layout
25099
25100 \begin_layout Subsubsection
25101 Surrounding Space
25102 \end_layout
25103
25104 \begin_layout Standard
25105 The amount of space before and after multiple columns can be changed by
25106  changing the length 
25107 \series bold
25108
25109 \backslash
25110 multicolsep
25111 \series default
25112 .
25113  For example the command
25114 \end_layout
25115
25116 \begin_layout Standard
25117
25118 \series bold
25119
25120 \backslash
25121 setlength{
25122 \backslash
25123 multicolsep}{3cm}
25124 \end_layout
25125
25126 \begin_layout Standard
25127 in \SpecialChar TeX
25128  Code changes its value to 3
25129 \begin_inset space \thinspace{}
25130 \end_inset
25131
25132 cm.
25133  The change must be made before the multiple columns' start.
25134  The predefined value is 13
25135 \begin_inset space \thinspace{}
25136 \end_inset
25137
25138 pt.
25139 \end_layout
25140
25141 \begin_layout Standard
25142 For this example 
25143 \series bold
25144
25145 \backslash
25146 multicolsep
25147 \series default
25148  was set to 2.5
25149 \begin_inset space \thinspace{}
25150 \end_inset
25151
25152 cm:
25153 \end_layout
25154
25155 \begin_layout Standard
25156 \begin_inset ERT
25157 status open
25158
25159 \begin_layout Plain Layout
25160
25161
25162 \backslash
25163 setlength{
25164 \backslash
25165 multicolsep}{2.5cm}
25166 \end_layout
25167
25168 \end_inset
25169
25170
25171 \end_layout
25172
25173 \begin_layout Standard
25174 \begin_inset Flex Multiple Columns
25175 status open
25176
25177 \begin_layout Plain Layout
25178
25179 \size small
25180 All day I turned these facts over in my mind, endeavouring to hit upon some
25181  theory which could reconcile them all, and to find that line of least resistanc
25182 e which my poor friend had declared to be the starting-point of every investigat
25183 ion.
25184  I confess that I made little progress.
25185  In the evening I strolled across the Park, and found myself about six o'clock
25186  at the Oxford Street end of Park Lane.
25187  A group of loafers upon the pavements, all staring up at a particular window,
25188  directed me to the house which I had come to see.
25189  A tall, thin man with coloured glasses, whom I strongly suspected of being
25190  a plain-clothes detective, was pointing out some theory of his own, while
25191  the others crowded round to listen to what he said.
25192  I got as near him as I could, but his observations seemed to me to be absurd,
25193  so I withdrew again in some disgust.
25194  As I did so I struck against an elderly, deformed man, who had been behind
25195  me, and I knocked down several books which he was carrying.
25196 \end_layout
25197
25198 \end_inset
25199
25200
25201 \end_layout
25202
25203 \begin_layout Standard
25204 \begin_inset Note Greyedout
25205 status open
25206
25207 \begin_layout Plain Layout
25208
25209 \series bold
25210 Note:
25211 \series default
25212  The values you set with 
25213 \series bold
25214
25215 \backslash
25216 setlength
25217 \series default
25218  will be used for all following multiple columns until you change them again.
25219 \end_layout
25220
25221 \end_inset
25222
25223
25224 \end_layout
25225
25226 \begin_layout Standard
25227 \begin_inset ERT
25228 status collapsed
25229
25230 \begin_layout Plain Layout
25231
25232
25233 \backslash
25234 setlength{
25235 \backslash
25236 multicolsep}{13pt}
25237 \end_layout
25238
25239 \end_inset
25240
25241
25242 \begin_inset Note Note
25243 status collapsed
25244
25245 \begin_layout Plain Layout
25246 go back to the default
25247 \end_layout
25248
25249 \end_inset
25250
25251
25252 \end_layout
25253
25254 \begin_layout Standard
25255 \begin_inset Newpage newpage
25256 \end_inset
25257
25258
25259 \end_layout
25260
25261 \begin_layout Subsubsection
25262 Column Breaks
25263 \end_layout
25264
25265 \begin_layout Standard
25266 A column break can be forced by inserting the command 
25267 \series bold
25268
25269 \backslash
25270 columnbreak{}
25271 \series default
25272  as \SpecialChar TeX
25273
25274 \change_inserted -712698321 1437633561
25275  
25276 \change_deleted -712698321 1437633560
25277 -
25278 \change_unchanged
25279 Code to that position in the text where the column should be broken.
25280  Note that this leads in most cases to whitespace in the text.
25281 \begin_inset Newline newline
25282 \end_inset
25283
25284 Here is an example:
25285 \end_layout
25286
25287 \begin_layout Standard
25288 \begin_inset Flex Multiple Columns
25289 status open
25290
25291 \begin_layout Plain Layout
25292
25293 \size small
25294 \begin_inset Quotes eld
25295 \end_inset
25296
25297 You're surprised to see me, sir,
25298 \begin_inset Quotes erd
25299 \end_inset
25300
25301  said he, in a strange, croaking voice.
25302 \end_layout
25303
25304 \begin_layout Plain Layout
25305
25306 \size small
25307 I acknowledged that I was.
25308 \end_layout
25309
25310 \begin_layout Plain Layout
25311
25312 \size small
25313 \begin_inset Quotes eld
25314 \end_inset
25315
25316 Well, I've a conscience, sir, and when I chanced to see you go into this
25317  house, as I came hobbling after you, I thought to myself, I'll just step
25318  in and see that kind gentleman, and tell him that if I was a bit gruff
25319  in my manner there was not any harm meant, and that I am much obliged to
25320  him for picking up my books.
25321 \begin_inset Quotes erd
25322 \end_inset
25323
25324
25325 \end_layout
25326
25327 \begin_layout Plain Layout
25328
25329 \size small
25330 \begin_inset Quotes eld
25331 \end_inset
25332
25333 You make too much of a trifle,
25334 \begin_inset Quotes erd
25335 \end_inset
25336
25337  said I.
25338  
25339 \begin_inset Quotes eld
25340 \end_inset
25341
25342 May I ask how you knew who I was?
25343 \begin_inset Quotes erd
25344 \end_inset
25345
25346  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25347 \begin_inset ERT
25348 status collapsed
25349
25350 \begin_layout Plain Layout
25351
25352
25353 \backslash
25354 columnbreak{}
25355 \end_layout
25356
25357 \end_inset
25358
25359
25360 \end_layout
25361
25362 \begin_layout Plain Layout
25363
25364 \size small
25365 \begin_inset Quotes eld
25366 \end_inset
25367
25368 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25369  you'll find my little bookshop at the corner of Church Street, and very
25370  happy to see you, I am sure.
25371  Maybe you collect yourself, sir.
25372  Here's 
25373 \noun on
25374 British
25375 \begin_inset space ~
25376 \end_inset
25377
25378 Birds
25379 \noun default
25380 , and 
25381 \noun on
25382 Catullus
25383 \noun default
25384 , and 
25385 \noun on
25386 The Holy War
25387 \noun default
25388 –a bargain, every one of them.
25389  With five volumes you could just fill that gap on that second shelf.
25390  It looks untidy, does it not, sir?
25391 \begin_inset Quotes erd
25392 \end_inset
25393
25394
25395 \end_layout
25396
25397 \end_inset
25398
25399
25400 \end_layout
25401
25402 \begin_layout Subsubsection
25403 Column Separation
25404 \end_layout
25405
25406 \begin_layout Standard
25407 The width of the columns is automatically calculated, but you can modify
25408  the space between the columns.
25409  This is done by changing the length 
25410 \series bold
25411
25412 \backslash
25413 columnsep
25414 \series default
25415 .
25416  Its predefined value is 10
25417 \begin_inset space \thinspace{}
25418 \end_inset
25419
25420 pt.
25421  Here is an example where 
25422 \series bold
25423
25424 \backslash
25425 columnsep
25426 \series default
25427  is set to 3
25428 \begin_inset space \thinspace{}
25429 \end_inset
25430
25431 cm:
25432 \end_layout
25433
25434 \begin_layout Standard
25435 \begin_inset ERT
25436 status open
25437
25438 \begin_layout Plain Layout
25439
25440
25441 \backslash
25442 setlength{
25443 \backslash
25444 columnsep}{3cm}
25445 \end_layout
25446
25447 \end_inset
25448
25449
25450 \end_layout
25451
25452 \begin_layout Standard
25453 \begin_inset Flex Multiple Columns
25454 status open
25455
25456 \begin_layout Plain Layout
25457
25458 \size small
25459 My observations of No.
25460 \begin_inset space \space{}
25461 \end_inset
25462
25463 427 Park Lane did little to clear up the problem in which I was interested.
25464  The house was separated from the street by a low wall and railing, the
25465  whole not more than five feet high.
25466  It was perfectly easy, therefore, for anyone to get into the garden, but
25467  the window was entirely inaccessible, since there was no water pipe or
25468  anything which could help the most active man to climb it.
25469  More puzzled than ever, I retraced my steps to Kensington.
25470  I had not been in my study five minutes when the maid entered to say that
25471  a person desired to see me.
25472  To my astonishment it was none other than my strange old book collector,
25473  his sharp, wizened face peering out from a frame of white hair, and his
25474  precious volumes, a dozen of them at least, wedged under his right arm.
25475 \end_layout
25476
25477 \end_inset
25478
25479
25480 \end_layout
25481
25482 \begin_layout Standard
25483 \begin_inset ERT
25484 status collapsed
25485
25486 \begin_layout Plain Layout
25487
25488
25489 \backslash
25490 setlength{
25491 \backslash
25492 columnsep}{10pt}
25493 \end_layout
25494
25495 \end_inset
25496
25497
25498 \begin_inset Note Note
25499 status collapsed
25500
25501 \begin_layout Plain Layout
25502 go back to the default
25503 \end_layout
25504
25505 \end_inset
25506
25507
25508 \end_layout
25509
25510 \begin_layout Subsubsection
25511 Vertical Lines
25512 \end_layout
25513
25514 \begin_layout Standard
25515 Between the columns a rule with a width of the length 
25516 \series bold
25517
25518 \backslash
25519 columnseprule
25520 \series default
25521  is placed.
25522  If this rule width is set to 0
25523 \begin_inset space \thinspace{}
25524 \end_inset
25525
25526 pt (this is the default), the rule is suppressed.
25527  In the following example the rule is 2
25528 \begin_inset space \thinspace{}
25529 \end_inset
25530
25531 pt wide:
25532 \end_layout
25533
25534 \begin_layout Standard
25535 \begin_inset ERT
25536 status open
25537
25538 \begin_layout Plain Layout
25539
25540
25541 \backslash
25542 setlength{
25543 \backslash
25544 columnseprule}{2pt}
25545 \end_layout
25546
25547 \end_inset
25548
25549
25550 \end_layout
25551
25552 \begin_layout Standard
25553 \begin_inset Flex Multiple Columns
25554 status open
25555
25556 \begin_layout Plain Layout
25557
25558 \size small
25559 \begin_inset Quotes eld
25560 \end_inset
25561
25562 You're surprised to see me, sir,
25563 \begin_inset Quotes erd
25564 \end_inset
25565
25566  said he, in a strange, croaking voice.
25567 \end_layout
25568
25569 \begin_layout Plain Layout
25570
25571 \size small
25572 I acknowledged that I was.
25573 \end_layout
25574
25575 \begin_layout Plain Layout
25576
25577 \size small
25578 \begin_inset Quotes eld
25579 \end_inset
25580
25581 Well, I've a conscience, sir, and when I chanced to see you go into this
25582  house, as I came hobbling after you, I thought to myself, I'll just step
25583  in and see that kind gentleman, and tell him that if I was a bit gruff
25584  in my manner there was not any harm meant, and that I am much obliged to
25585  him for picking up my books.
25586 \begin_inset Quotes erd
25587 \end_inset
25588
25589
25590 \end_layout
25591
25592 \begin_layout Plain Layout
25593
25594 \size small
25595 \begin_inset Quotes eld
25596 \end_inset
25597
25598 You make too much of a trifle,
25599 \begin_inset Quotes erd
25600 \end_inset
25601
25602  said I.
25603  
25604 \begin_inset Quotes eld
25605 \end_inset
25606
25607 May I ask how you knew who I was?
25608 \begin_inset Quotes erd
25609 \end_inset
25610
25611
25612 \end_layout
25613
25614 \begin_layout Plain Layout
25615
25616 \size small
25617 \begin_inset Quotes eld
25618 \end_inset
25619
25620 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25621  you'll find my little bookshop at the corner of Church Street, and very
25622  happy to see you, I am sure.
25623  Maybe you collect yourself, sir.
25624  Here's 
25625 \noun on
25626 British
25627 \begin_inset space ~
25628 \end_inset
25629
25630 Birds
25631 \noun default
25632 , and 
25633 \noun on
25634 Catullus
25635 \noun default
25636 , and 
25637 \noun on
25638 The Holy War
25639 \noun default
25640 –a bargain, every one of them.
25641  With five volumes you could just fill that gap on that second shelf.
25642  It looks untidy, does it not, sir?
25643 \begin_inset Quotes erd
25644 \end_inset
25645
25646
25647 \end_layout
25648
25649 \end_inset
25650
25651
25652 \end_layout
25653
25654 \begin_layout Standard
25655 \begin_inset VSpace defskip
25656 \end_inset
25657
25658
25659 \end_layout
25660
25661 \begin_layout Standard
25662 The rule can be colored by redefining the command 
25663 \series bold
25664
25665 \backslash
25666 columnseprulecolor
25667 \series default
25668 .
25669  This is done by inserting the command
25670 \begin_inset Newline newline
25671 \end_inset
25672
25673
25674 \series bold
25675
25676 \backslash
25677 renewcommand{
25678 \backslash
25679 columnseprulecolor}{
25680 \backslash
25681 color{red}}
25682 \series default
25683
25684 \begin_inset Newline newline
25685 \end_inset
25686
25687 as \SpecialChar TeX
25688
25689 \change_inserted -712698321 1437633567
25690  
25691 \change_deleted -712698321 1437633567
25692 -
25693 \change_unchanged
25694 Code before the multicolumn inset.
25695  Replace 
25696 \series bold
25697 red
25698 \series default
25699  in this command by a color of your choice.
25700  You can use all pre- and self-defined colors.
25701  See the 
25702 \emph on
25703 EmbeddedObjects
25704 \emph default
25705  manual, section 
25706 \emph on
25707 Colored
25708 \begin_inset space ~
25709 \end_inset
25710
25711 Tables
25712 \emph default
25713  for more information about pre- and self-defined colors.
25714  To go back to the default color insert the command
25715 \begin_inset Newline newline
25716 \end_inset
25717
25718
25719 \series bold
25720
25721 \backslash
25722 renewcommand{
25723 \backslash
25724 columnseprulecolor}{
25725 \backslash
25726 normalcolor}
25727 \series default
25728
25729 \begin_inset Newline newline
25730 \end_inset
25731
25732 Here is the example with a cyan rule and 1
25733 \begin_inset space \thinspace{}
25734 \end_inset
25735
25736 cm column separation:
25737 \end_layout
25738
25739 \begin_layout Standard
25740 \begin_inset ERT
25741 status open
25742
25743 \begin_layout Plain Layout
25744
25745
25746 \backslash
25747 setlength{
25748 \backslash
25749 columnsep}{1cm}
25750 \end_layout
25751
25752 \begin_layout Plain Layout
25753
25754
25755 \backslash
25756 renewcommand{
25757 \backslash
25758 columnseprulecolor}{
25759 \backslash
25760 color{cyan}}
25761 \end_layout
25762
25763 \end_inset
25764
25765
25766 \end_layout
25767
25768 \begin_layout Standard
25769 \begin_inset Flex Multiple Columns
25770 status open
25771
25772 \begin_layout Plain Layout
25773
25774 \size small
25775 \begin_inset Quotes eld
25776 \end_inset
25777
25778 You're surprised to see me, sir,
25779 \begin_inset Quotes erd
25780 \end_inset
25781
25782  said he, in a strange, croaking voice.
25783 \end_layout
25784
25785 \begin_layout Plain Layout
25786
25787 \size small
25788 I acknowledged that I was.
25789 \end_layout
25790
25791 \begin_layout Plain Layout
25792
25793 \size small
25794 \begin_inset Quotes eld
25795 \end_inset
25796
25797 Well, I've a conscience, sir, and when I chanced to see you go into this
25798  house, as I came hobbling after you, I thought to myself, I'll just step
25799  in and see that kind gentleman, and tell him that if I was a bit gruff
25800  in my manner there was not any harm meant, and that I am much obliged to
25801  him for picking up my books.
25802 \begin_inset Quotes erd
25803 \end_inset
25804
25805
25806 \end_layout
25807
25808 \begin_layout Plain Layout
25809
25810 \size small
25811 \begin_inset Quotes eld
25812 \end_inset
25813
25814 You make too much of a trifle,
25815 \begin_inset Quotes erd
25816 \end_inset
25817
25818  said I.
25819  
25820 \begin_inset Quotes eld
25821 \end_inset
25822
25823 May I ask how you knew who I was?
25824 \begin_inset Quotes erd
25825 \end_inset
25826
25827
25828 \end_layout
25829
25830 \begin_layout Plain Layout
25831
25832 \size small
25833 \begin_inset Quotes eld
25834 \end_inset
25835
25836 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25837  you'll find my little bookshop at the corner of Church Street, and very
25838  happy to see you, I am sure.
25839  Maybe you collect yourself, sir.
25840  Here's 
25841 \noun on
25842 British
25843 \begin_inset space ~
25844 \end_inset
25845
25846 Birds
25847 \noun default
25848 , and 
25849 \noun on
25850 Catullus
25851 \noun default
25852 , and 
25853 \noun on
25854 The Holy War
25855 \noun default
25856 –a bargain, every one of them.
25857  With five volumes you could just fill that gap on that second shelf.
25858  It looks untidy, does it not, sir?
25859 \begin_inset Quotes erd
25860 \end_inset
25861
25862
25863 \end_layout
25864
25865 \end_inset
25866
25867
25868 \end_layout
25869
25870 \begin_layout Standard
25871 \begin_inset ERT
25872 status collapsed
25873
25874 \begin_layout Plain Layout
25875
25876
25877 \backslash
25878 setlength{
25879 \backslash
25880 columnseprule}{0pt}
25881 \end_layout
25882
25883 \begin_layout Plain Layout
25884
25885
25886 \backslash
25887 renewcommand{
25888 \backslash
25889 columnseprulecolor}{
25890 \backslash
25891 normalcolor}
25892 \end_layout
25893
25894 \end_inset
25895
25896
25897 \begin_inset Note Note
25898 status collapsed
25899
25900 \begin_layout Plain Layout
25901 go back to the default
25902 \end_layout
25903
25904 \end_inset
25905
25906
25907 \end_layout
25908
25909 \begin_layout Section
25910 Non-standard Paragraph Shapes
25911 \end_layout
25912
25913 \begin_layout Standard
25914 \noindent
25915 \SpecialChar LaTeX
25916  as well as any other text processor uses by default rectangular paragraphs.
25917  For special cases like for example posters, invitation cards or poems you
25918  can modify the paragraph shape to one of your choice.
25919  This can be done by using the \SpecialChar LaTeX
25920 -package 
25921 \series bold
25922 shapepar
25923 \series default
25924  which is loaded by using in the document settings the module 
25925 \family sans
25926 Custom paragraph shapes
25927 \family default
25928 .
25929 \end_layout
25930
25931 \begin_layout Subsection
25932 Predefined shapes
25933 \end_layout
25934
25935 \begin_layout Standard
25936
25937 \series bold
25938 shapepar
25939 \series default
25940  provides the following shapes:
25941 \end_layout
25942
25943 \begin_layout Standard
25944 \begin_inset Tabular
25945 <lyxtabular version="3" rows="13" columns="3">
25946 <features booktabs="true" islongtable="true" longtabularalignment="center">
25947 <column alignment="center" valignment="middle" width="16col%">
25948 <column alignment="center" valignment="middle" width="40col%">
25949 <column alignment="center" valignment="middle" width="35col%">
25950 <row endhead="true">
25951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25952 \begin_inset Text
25953
25954 \begin_layout Plain Layout
25955 Name
25956 \end_layout
25957
25958 \end_inset
25959 </cell>
25960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25961 \begin_inset Text
25962
25963 \begin_layout Plain Layout
25964 Description
25965 \end_layout
25966
25967 \end_inset
25968 </cell>
25969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25970 \begin_inset Text
25971
25972 \begin_layout Plain Layout
25973 Annotation
25974 \end_layout
25975
25976 \end_inset
25977 </cell>
25978 </row>
25979 <row>
25980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25981 \begin_inset Text
25982
25983 \begin_layout Plain Layout
25984 CDlabel
25985 \end_layout
25986
25987 \end_inset
25988 </cell>
25989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25990 \begin_inset Text
25991
25992 \begin_layout Plain Layout
25993 Circle with circular hole (in the size of a CD/DVD)
25994 \end_layout
25995
25996 \end_inset
25997 </cell>
25998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25999 \begin_inset Text
26000
26001 \begin_layout Plain Layout
26002 Cannot be scaled, take care there is not too much text
26003 \end_layout
26004
26005 \end_inset
26006 </cell>
26007 </row>
26008 <row>
26009 <cell alignment="center" valignment="top" topline="true" usebox="none">
26010 \begin_inset Text
26011
26012 \begin_layout Plain Layout
26013 Circle
26014 \end_layout
26015
26016 \end_inset
26017 </cell>
26018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26019 \begin_inset Text
26020
26021 \begin_layout Plain Layout
26022 Circle
26023 \end_layout
26024
26025 \end_inset
26026 </cell>
26027 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26028 \begin_inset Text
26029
26030 \begin_layout Plain Layout
26031 Fragile, calculation might fail
26032 \end_layout
26033
26034 \end_inset
26035 </cell>
26036 </row>
26037 <row>
26038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26039 \begin_inset Text
26040
26041 \begin_layout Plain Layout
26042 Diamond
26043 \end_layout
26044
26045 \end_inset
26046 </cell>
26047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26048 \begin_inset Text
26049
26050 \begin_layout Plain Layout
26051 Rhomboid (symbolizing a 
26052 \begin_inset Quotes eld
26053 \end_inset
26054
26055 diamond
26056 \begin_inset Quotes erd
26057 \end_inset
26058
26059 )
26060 \end_layout
26061
26062 \end_inset
26063 </cell>
26064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26065 \begin_inset Text
26066
26067 \begin_layout Plain Layout
26068 -
26069 \end_layout
26070
26071 \end_inset
26072 </cell>
26073 </row>
26074 <row>
26075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26076 \begin_inset Text
26077
26078 \begin_layout Plain Layout
26079 Heart
26080 \end_layout
26081
26082 \end_inset
26083 </cell>
26084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26085 \begin_inset Text
26086
26087 \begin_layout Plain Layout
26088 Heart-like shape
26089 \end_layout
26090
26091 \end_inset
26092 </cell>
26093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26094 \begin_inset Text
26095
26096 \begin_layout Plain Layout
26097 -
26098 \end_layout
26099
26100 \end_inset
26101 </cell>
26102 </row>
26103 <row>
26104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26105 \begin_inset Text
26106
26107 \begin_layout Plain Layout
26108 Hexagon
26109 \end_layout
26110
26111 \end_inset
26112 </cell>
26113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26114 \begin_inset Text
26115
26116 \begin_layout Plain Layout
26117 Hexagon
26118 \end_layout
26119
26120 \end_inset
26121 </cell>
26122 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26123 \begin_inset Text
26124
26125 \begin_layout Plain Layout
26126 -
26127 \end_layout
26128
26129 \end_inset
26130 </cell>
26131 </row>
26132 <row>
26133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26134 \begin_inset Text
26135
26136 \begin_layout Plain Layout
26137 Nut
26138 \end_layout
26139
26140 \end_inset
26141 </cell>
26142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26143 \begin_inset Text
26144
26145 \begin_layout Plain Layout
26146 Nut for bolt (hexagon with circular hole)
26147 \end_layout
26148
26149 \end_inset
26150 </cell>
26151 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26152 \begin_inset Text
26153
26154 \begin_layout Plain Layout
26155 -
26156 \end_layout
26157
26158 \end_inset
26159 </cell>
26160 </row>
26161 <row>
26162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26163 \begin_inset Text
26164
26165 \begin_layout Plain Layout
26166 Square
26167 \end_layout
26168
26169 \end_inset
26170 </cell>
26171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26172 \begin_inset Text
26173
26174 \begin_layout Plain Layout
26175 Square
26176 \end_layout
26177
26178 \end_inset
26179 </cell>
26180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26181 \begin_inset Text
26182
26183 \begin_layout Plain Layout
26184 -
26185 \end_layout
26186
26187 \end_inset
26188 </cell>
26189 </row>
26190 <row>
26191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26192 \begin_inset Text
26193
26194 \begin_layout Plain Layout
26195 Star
26196 \end_layout
26197
26198 \end_inset
26199 </cell>
26200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26201 \begin_inset Text
26202
26203 \begin_layout Plain Layout
26204 Five-point star
26205 \end_layout
26206
26207 \end_inset
26208 </cell>
26209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26210 \begin_inset Text
26211
26212 \begin_layout Plain Layout
26213 -
26214 \end_layout
26215
26216 \end_inset
26217 </cell>
26218 </row>
26219 <row>
26220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26221 \begin_inset Text
26222
26223 \begin_layout Plain Layout
26224 Candle
26225 \end_layout
26226
26227 \end_inset
26228 </cell>
26229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26230 \begin_inset Text
26231
26232 \begin_layout Plain Layout
26233 Burning candle
26234 \end_layout
26235
26236 \end_inset
26237 </cell>
26238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26239 \begin_inset Text
26240
26241 \begin_layout Plain Layout
26242 -
26243 \end_layout
26244
26245 \end_inset
26246 </cell>
26247 </row>
26248 <row>
26249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26250 \begin_inset Text
26251
26252 \begin_layout Plain Layout
26253 Drop down/up
26254 \end_layout
26255
26256 \end_inset
26257 </cell>
26258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26259 \begin_inset Text
26260
26261 \begin_layout Plain Layout
26262 Normal/reversed rain drop
26263 \end_layout
26264
26265 \end_inset
26266 </cell>
26267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26268 \begin_inset Text
26269
26270 \begin_layout Plain Layout
26271 Fragile, calculation might fail
26272 \end_layout
26273
26274 \end_inset
26275 </cell>
26276 </row>
26277 <row>
26278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26279 \begin_inset Text
26280
26281 \begin_layout Plain Layout
26282 \SpecialChar TeX
26283
26284 \end_layout
26285
26286 \end_inset
26287 </cell>
26288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26289 \begin_inset Text
26290
26291 \begin_layout Plain Layout
26292 The \SpecialChar TeX
26293  logo
26294 \end_layout
26295
26296 \end_inset
26297 </cell>
26298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26299 \begin_inset Text
26300
26301 \begin_layout Plain Layout
26302 -
26303 \end_layout
26304
26305 \end_inset
26306 </cell>
26307 </row>
26308 <row>
26309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26310 \begin_inset Text
26311
26312 \begin_layout Plain Layout
26313 Triangle up/down/
26314 \begin_inset Newline newline
26315 \end_inset
26316
26317 left/right
26318 \end_layout
26319
26320 \end_inset
26321 </cell>
26322 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26323 \begin_inset Text
26324
26325 \begin_layout Plain Layout
26326 Triangles in different orientations
26327 \end_layout
26328
26329 \end_inset
26330 </cell>
26331 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26332 \begin_inset Text
26333
26334 \begin_layout Plain Layout
26335 -
26336 \end_layout
26337
26338 \end_inset
26339 </cell>
26340 </row>
26341 </lyxtabular>
26342
26343 \end_inset
26344
26345
26346 \end_layout
26347
26348 \begin_layout Standard
26349 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26350 's pull-down box
26351  for environments in the toolbar.
26352 \end_layout
26353
26354 \begin_layout Standard
26355 \begin_inset Newpage newpage
26356 \end_inset
26357
26358
26359 \end_layout
26360
26361 \begin_layout Standard
26362 Here is an example paragraph in the shape of a nut:
26363 \end_layout
26364
26365 \begin_layout Standard
26366 \begin_inset VSpace bigskip
26367 \end_inset
26368
26369
26370 \end_layout
26371
26372 \begin_layout Nut
26373
26374 \lang latin
26375 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26376  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26377  voluptua.
26378  At vero eos et accusam et justo duo dolores et ea rebum.
26379  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26380  sit amet.
26381  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26382  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26383  voluptua.
26384 \end_layout
26385
26386 \begin_layout Standard
26387 \begin_inset VSpace bigskip
26388 \end_inset
26389
26390
26391 \end_layout
26392
26393 \begin_layout Standard
26394 \begin_inset Note Greyedout
26395 status open
26396
26397 \begin_layout Plain Layout
26398
26399 \series bold
26400 Note
26401 \series default
26402 : shapepar paragraphs cannot run over a page break.
26403 \end_layout
26404
26405 \end_inset
26406
26407
26408 \end_layout
26409
26410 \begin_layout Standard
26411 \begin_inset VSpace bigskip
26412 \end_inset
26413
26414
26415 \end_layout
26416
26417 \begin_layout Standard
26418
26419 \series bold
26420 shapepar
26421 \series default
26422  takes care that the shape will always be preserved, no matter how much
26423  text is in the paragraph.
26424  Therefore the paragraph size changes with the amount of contained text.
26425  This can lead to paragraph sizes exceeding the page margins.
26426  To demonstrate the size scaling, here is the same example paragraph but
26427  with twice as much text:
26428 \end_layout
26429
26430 \begin_layout Standard
26431 \begin_inset Newpage newpage
26432 \end_inset
26433
26434
26435 \end_layout
26436
26437 \begin_layout Nut
26438
26439 \lang latin
26440 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26441  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26442  voluptua.
26443  At vero eos et accusam et justo duo dolores et ea rebum.
26444  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26445  sit amet.
26446  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26447  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26448  voluptua.
26449  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26450  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26451  voluptua.
26452  At vero eos et accusam et justo duo dolores et ea rebum.
26453  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26454  sit amet.
26455  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26456  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26457  voluptua.
26458 \end_layout
26459
26460 \begin_layout Standard
26461 \begin_inset VSpace bigskip
26462 \end_inset
26463
26464
26465 \end_layout
26466
26467 \begin_layout Standard
26468 An exception is the shape 
26469 \family sans
26470 CDlabel
26471 \family default
26472 .
26473  It cannot be scaled because it must fit the size of a CD/DVD.
26474  Therefore the amount of text that fits into the shape is limited.
26475 \begin_inset Newline newline
26476 \end_inset
26477
26478 The 
26479 \family sans
26480 drop
26481 \family default
26482  shapes and the 
26483 \family sans
26484 circle
26485 \family default
26486  shape are fragile, meaning that the calculation of their size can fail,
26487  depending on the amount of text.
26488  You will then get the \SpecialChar LaTeX
26489  error 
26490 \begin_inset Quotes eld
26491 \end_inset
26492
26493 Arithmetic overflow
26494 \begin_inset Quotes erd
26495 \end_inset
26496
26497 .
26498  In this case one can try to remove or add some text; if nothing works one
26499  has to use another shape.
26500 \end_layout
26501
26502 \begin_layout Standard
26503 \begin_inset VSpace bigskip
26504 \end_inset
26505
26506
26507 \end_layout
26508
26509 \begin_layout Standard
26510 For shapes with tips you will maybe see that \SpecialChar LaTeX
26511 's hyphenation routine fails
26512  for text in the tips.
26513  Therefore it is often necessary to add hyphenation points 
26514 \family sans
26515 (
26516 \begin_inset Info
26517 type  "shortcut"
26518 arg   "specialchar-insert hyphenation"
26519 \end_inset
26520
26521
26522 \family default
26523 ) to the corresponding text parts.
26524 \end_layout
26525
26526 \begin_layout Standard
26527 \begin_inset VSpace bigskip
26528 \end_inset
26529
26530
26531 \end_layout
26532
26533 \begin_layout Standard
26534 Shapepar paragraphs are either always centered or placed on the page so
26535  that their left border touches the left page margin.
26536  You can therefore not use the paragraph dialog to align such paragraphs.
26537  A solution is to put the paragraph into a minipage or parbox and align
26538  the box.
26539  The problem is hereby to find the right width for the box.
26540  Because if it is too wide and you center the box, the paragraph is not
26541  centered too because it sticks at the left side of the box.
26542  So you might have to play a bit with the width until it fits.
26543  Here are two heart-shaped paragraphs, the first one is not aligned, the
26544  second one is right-aligned:
26545 \end_layout
26546
26547 \begin_layout Standard
26548 \begin_inset Newpage newpage
26549 \end_inset
26550
26551
26552 \end_layout
26553
26554 \begin_layout Heart
26555 \noindent
26556
26557 \lang latin
26558 Lo\SpecialChar softhyphen
26559 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26560  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26561  voluptua.
26562  At vero eos et accusam et justo duo dolores et ea rebum.
26563  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26564  sit amet.
26565 \end_layout
26566
26567 \begin_layout Standard
26568 \begin_inset VSpace bigskip
26569 \end_inset
26570
26571
26572 \end_layout
26573
26574 \begin_layout Standard
26575 \noindent
26576 \align right
26577 \begin_inset Box Frameless
26578 position "t"
26579 hor_pos "c"
26580 has_inner_box 1
26581 inner_pos "t"
26582 use_parbox 1
26583 use_makebox 0
26584 width "42col%"
26585 special "none"
26586 height "1in"
26587 height_special "totalheight"
26588 thickness "0.4pt"
26589 separation "3pt"
26590 shadowsize "4pt"
26591 framecolor "black"
26592 backgroundcolor "none"
26593 status open
26594
26595 \begin_layout Heart
26596 \noindent
26597
26598 \lang latin
26599 Lo\SpecialChar softhyphen
26600 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26601  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26602  voluptua.
26603  At vero eos et accusam et justo duo dolores et ea rebum.
26604  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26605  sit amet.
26606 \end_layout
26607
26608 \end_inset
26609
26610
26611 \end_layout
26612
26613 \begin_layout Subsection
26614 Custom shapes
26615 \end_layout
26616
26617 \begin_layout Standard
26618 You can define any shape you want.
26619  Doing this manually is a lot of work because every coordinate must be specified.
26620  But there is a way to let the computer calculate the coordinates:
26621 \end_layout
26622
26623 \begin_layout Enumerate
26624 Install the program 
26625 \begin_inset CommandInset href
26626 LatexCommand href
26627 name "Jpgfdraw"
26628 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26629
26630 \end_inset
26631
26632 .
26633 \end_layout
26634
26635 \begin_layout Enumerate
26636 In 
26637 \family sans
26638 Jpgfdraw
26639 \family default
26640  go to the menu 
26641 \change_deleted -712698321 1437633577
26642
26643 \family sans
26644 Te
26645 \begin_inset ERT
26646 status collapsed
26647
26648 \begin_layout Plain Layout
26649
26650 {}
26651 \end_layout
26652
26653 \end_inset
26654
26655 X
26656 \change_inserted -712698321 1437633577
26657 TeX
26658 \change_unchanged
26659 /La
26660 \change_deleted -712698321 1437633578
26661 T
26662 \begin_inset ERT
26663 status collapsed
26664
26665 \begin_layout Plain Layout
26666
26667 {}
26668 \end_layout
26669
26670 \end_inset
26671
26672 eX
26673 \change_inserted -712698321 1437633578
26674 TeX
26675 \change_unchanged
26676 \SpecialChar menuseparator
26677 Settings\SpecialChar menuseparator
26678 Set Normal Size
26679 \family default
26680  and select the font size you are using in your document.
26681  For example this document uses the size 12
26682 \begin_inset space \thinspace{}
26683 \end_inset
26684
26685 pt.
26686 \end_layout
26687
26688 \begin_layout Enumerate
26689 Draw a shape.
26690 \end_layout
26691
26692 \begin_layout Enumerate
26693 Use the menu 
26694 \change_deleted -712698321 1437633580
26695
26696 \family sans
26697 Te
26698 \begin_inset ERT
26699 status collapsed
26700
26701 \begin_layout Plain Layout
26702
26703 {}
26704 \end_layout
26705
26706 \end_inset
26707
26708 X
26709 \change_inserted -712698321 1437633580
26710 TeX
26711 \change_unchanged
26712 /La
26713 \change_deleted -712698321 1437633581
26714 T
26715 \begin_inset ERT
26716 status collapsed
26717
26718 \begin_layout Plain Layout
26719
26720 {}
26721 \end_layout
26722
26723 \end_inset
26724
26725 eX
26726 \change_inserted -712698321 1437633581
26727 TeX
26728 \change_unchanged
26729 \SpecialChar menuseparator
26730 Shapepar
26731 \family default
26732  to export the shape to coordinates.
26733  In the appearing dialog use either the outline of your shape for the coordinate
26734 s or the path itself.
26735 \begin_inset Foot
26736 status collapsed
26737
26738 \begin_layout Plain Layout
26739 For more information see 
26740 \begin_inset CommandInset href
26741 LatexCommand href
26742 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26743
26744 \end_inset
26745
26746
26747 \end_layout
26748
26749 \end_inset
26750
26751
26752 \end_layout
26753
26754 \begin_layout Standard
26755 The coordinates are written into a \SpecialChar TeX
26756
26757 \change_inserted -712698321 1437633584
26758  
26759 \change_deleted -712698321 1437633584
26760 -
26761 \change_unchanged
26762 file.
26763  To use it for your \SpecialChar LyX
26764  document
26765 \end_layout
26766
26767 \begin_layout Enumerate
26768 Place the cursor before the first character of your paragraph (or into a
26769  new empty one).
26770 \end_layout
26771
26772 \begin_layout Enumerate
26773 Open in \SpecialChar LyX
26774  the menu 
26775 \family sans
26776 Insert\SpecialChar menuseparator
26777 File\SpecialChar menuseparator
26778 Child
26779 \begin_inset space ~
26780 \end_inset
26781
26782 Document
26783 \family default
26784 , select the file and use 
26785 \family sans
26786 Input
26787 \family default
26788  as 
26789 \family sans
26790 Include Type.
26791 \end_layout
26792
26793 \begin_layout Standard
26794 \begin_inset VSpace defskip
26795 \end_inset
26796
26797
26798 \end_layout
26799
26800 \begin_layout Standard
26801 \begin_inset Note Greyedout
26802 status open
26803
26804 \begin_layout Plain Layout
26805
26806 \series bold
26807 Note
26808 \series default
26809 : The changed shape only applies to the current paragraph; everything is
26810  reset to normal for the next paragraph.
26811  Therefore the shape definition file must be input into every paragraph
26812  with the desired shape.
26813 \end_layout
26814
26815 \end_inset
26816
26817
26818 \end_layout
26819
26820 \begin_layout Standard
26821 \begin_inset VSpace bigskip
26822 \end_inset
26823
26824
26825 \end_layout
26826
26827 \begin_layout Standard
26828 Here is an example:
26829 \end_layout
26830
26831 \begin_layout Standard
26832 \begin_inset VSpace bigskip
26833 \end_inset
26834
26835
26836 \end_layout
26837
26838 \begin_layout Standard
26839 \begin_inset CommandInset include
26840 LatexCommand input
26841 filename "SpecialParagraphShape.tex"
26842
26843 \end_inset
26844
26845
26846 \lang latin
26847 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26848  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26849  voluptua.
26850  At vero eos et accusam et justo duo dolores et ea rebum.
26851  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26852  sit amet.
26853  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26854  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26855  voluptua.
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
26867 \series bold
26868 A tip:
26869 \series default
26870  to draw complexer shapes in 
26871 \family sans
26872 Jpgfdraw
26873 \family default
26874  you can draw the shape in a program of your choice and import the resulting
26875  image to 
26876 \family sans
26877 Jpgfdraw
26878 \family default
26879 .
26880  Then you only need to draw a line or spline along the outline of the image.
26881 \end_layout
26882
26883 \begin_layout Standard
26884 \begin_inset VSpace bigskip
26885 \end_inset
26886
26887
26888 \end_layout
26889
26890 \begin_layout Standard
26891 The module 
26892 \family sans
26893 Custom paragraph shapes
26894 \family default
26895  also provides the two commands 
26896 \family sans
26897 shapepar
26898 \family default
26899  and 
26900 \family sans
26901 Shapepar
26902 \family default
26903  which can be used to define custom shapes coordinate by coordinate.
26904 \begin_inset Foot
26905 status collapsed
26906
26907 \begin_layout Plain Layout
26908 These commands are internally used for all shapes described here.
26909 \end_layout
26910
26911 \end_inset
26912
26913  For information how these styles are used and about further customization
26914  possibilities, have a look at the documentation of the package 
26915 \series bold
26916 shapepar
26917 \series default
26918
26919 \begin_inset CommandInset citation
26920 LatexCommand cite
26921 key "shapepar"
26922
26923 \end_inset
26924
26925 .
26926 \end_layout
26927
26928 \begin_layout Bibliography
26929 \begin_inset CommandInset bibitem
26930 LatexCommand bibitem
26931 key "multicol"
26932
26933 \end_inset
26934
26935 Documentation of the \SpecialChar LaTeX
26936 -package 
26937 \begin_inset CommandInset href
26938 LatexCommand href
26939 name "multicol"
26940 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26941
26942 \end_inset
26943
26944
26945 \end_layout
26946
26947 \begin_layout Bibliography
26948 \begin_inset CommandInset bibitem
26949 LatexCommand bibitem
26950 key "shapepar"
26951
26952 \end_inset
26953
26954 Documentation of the \SpecialChar LaTeX
26955 -package 
26956 \begin_inset CommandInset href
26957 LatexCommand href
26958 name "shapepar"
26959 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
26960
26961 \end_inset
26962
26963
26964 \end_layout
26965
26966 \end_body
26967 \end_document