]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
UserGuide.lyx: change a section name as suggested by a user
[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 -195340706 "Georg Baum" 
142 \author 711066561 "Enrico Forestieri" 
143 \end_header
144
145 \begin_body
146
147 \begin_layout Title
148 Additional \SpecialChar LyX
149  Features
150 \end_layout
151
152 \begin_layout Subtitle
153 Version 2.1.x
154 \end_layout
155
156 \begin_layout Author
157 by the \SpecialChar LyX
158  Team
159 \begin_inset Foot
160 status collapsed
161
162 \begin_layout Plain Layout
163 \noindent
164 Principal maintainer of this file is
165 \noun on
166  Richard Heck
167 \noun default
168 .
169  If you have comments or error corrections, please send them to the \SpecialChar LyX
170  Documentati
171 on mailing list, 
172 \begin_inset Flex Code
173 status collapsed
174
175 \begin_layout Plain Layout
176 \noindent
177 <lyx-docs@lists.lyx.org>
178 \end_layout
179
180 \end_inset
181
182 .
183 \end_layout
184
185 \end_inset
186
187
188 \end_layout
189
190 \begin_layout Standard
191 \begin_inset CommandInset toc
192 LatexCommand tableofcontents
193
194 \end_inset
195
196
197 \end_layout
198
199 \begin_layout Chapter
200 Introduction
201 \end_layout
202
203 \begin_layout Standard
204 This manual is essentially Part II of the 
205 \emph on
206 User's Guide\SpecialChar endofsentence
207
208 \emph default
209  The reason for separating the two documents is simple: the 
210 \emph on
211 User's Guide
212 \emph default
213  is already quite lengthy, and it contains information on all of the basic
214  features one needs to know in order to prepare most documents.
215  However, the \SpecialChar LyX
216  Team has worked to make \SpecialChar LyX
217  extensible through various configuration
218  files and external packages.
219  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
220  package, you can
221  create a layout file (or module) for it without having to alter \SpecialChar LyX
222  itself.
223  We've already had contributions of several new features this way, and some
224  of them are documented here.
225  There are also some more `advanced' features, such as how to control the
226  presentation of bibliographies and how to work with multi-part documents,
227  that are not covered in the 
228 \emph on
229 User's Guide
230 \emph default
231  and are discussed here.
232 \end_layout
233
234 \begin_layout Standard
235 This manual also documents some special features, like fax support, version
236  control, and SGML support, which require additional software to work properly.
237  There is also a chapter on \SpecialChar LyX
238 's support for HTML.
239  And lastly, there's a chapter of \SpecialChar LaTeX
240  tools and tips, things you can use to
241  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
242 .
243  After all, \SpecialChar LyX
244  
245 \emph on
246 is
247 \emph default
248  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
249  features.
250 \end_layout
251
252 \begin_layout Standard
253 If you haven't read the 
254 \emph on
255 Introduction
256 \emph default
257  yet, you are definitely in the wrong manual.
258  The 
259 \emph on
260 Introduction
261 \emph default
262  is the first place to go, since it describes the notation and format of
263  all of the manuals.
264  You should also be thoroughly familiar with the 
265 \emph on
266 User's Guide
267 \emph default
268  and all of the basic features of \SpecialChar LyX
269  before attempting to read this one.
270 \end_layout
271
272 \begin_layout Standard
273 Since many of the topics in this manual depend heavily on \SpecialChar LyX
274 's interaction
275  with \SpecialChar LaTeX
276 , this first chapter covers the inner workings of \SpecialChar LyX
277  and how to direct
278  \SpecialChar LyX
279  to generate exactly the \SpecialChar LaTeX
280  code you want.
281  It is obviously for more seasoned \SpecialChar LyX
282  users.
283 \end_layout
284
285 \begin_layout Chapter
286 \SpecialChar LyX
287  and \SpecialChar LaTeX
288
289 \end_layout
290
291 \begin_layout Section
292 How \SpecialChar LyX
293  Uses \SpecialChar LaTeX
294
295 \end_layout
296
297 \begin_layout Standard
298 This chapter is for both \SpecialChar TeX
299 -nicians and the \SpecialChar LaTeX
300 -curious.
301  In it, we'll explain how \SpecialChar LyX
302  and \SpecialChar LaTeX
303  work together to produce printable output.
304  This is the only place in any of the manuals where we assume you know something
305  about \SpecialChar LaTeX
306 .
307 \end_layout
308
309 \begin_layout Standard
310 At one time, \SpecialChar LyX
311  was called a 
312 \begin_inset Quotes eld
313 \end_inset
314
315 WYSIWYM frontend to \SpecialChar LaTeX
316 ,
317 \begin_inset Quotes erd
318 \end_inset
319
320  but that's no longer true.
321  There are frontends to \SpecialChar LaTeX
322  out there.
323 \begin_inset Foot
324 status collapsed
325
326 \begin_layout Plain Layout
327 Some familar ones are \SpecialChar TeX
328 maker and kile, on Linux, and \SpecialChar TeX
329 shop, OSX.
330  There are also the \SpecialChar LaTeX
331  modes for vi and emacs, of course.
332 \end_layout
333
334 \end_inset
335
336  These are basically text editors with the ability to run \SpecialChar LaTeX
337  and mark any
338  errors in the file you're editing.
339  Although \SpecialChar LyX
340  
341 \emph on
342 is
343 \emph default
344  an editor, and it 
345 \emph on
346 does
347 \emph default
348  run \SpecialChar LaTeX
349 , and it also indicates errors in the file, it also does much, much
350  more.
351  For one thing, you don't need to know \SpecialChar LaTeX
352  to use \SpecialChar LyX
353  effectively.
354  And \SpecialChar LyX
355  has added its own extensions to \SpecialChar LaTeX
356 .
357  Try the following sometime: select 
358 \begin_inset Flex MenuItem
359 status collapsed
360
361 \begin_layout Plain Layout
362 Export\SpecialChar menuseparator
363 \SpecialChar LaTeX
364
365 \end_layout
366
367 \end_inset
368
369  from the 
370 \begin_inset Flex MenuItem
371 status collapsed
372
373 \begin_layout Plain Layout
374 File
375 \end_layout
376
377 \end_inset
378
379  menu (or 
380 \begin_inset Flex MenuItem
381 status collapsed
382
383 \begin_layout Plain Layout
384 View\SpecialChar menuseparator
385 Source
386 \begin_inset space ~
387 \end_inset
388
389 Pane
390 \end_layout
391
392 \end_inset
393
394 ), then look at the preamble of the resulting 
395 \begin_inset Flex Code
396 status collapsed
397
398 \begin_layout Plain Layout
399 .tex
400 \end_layout
401
402 \end_inset
403
404  file.
405  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
406 .
407  These macros are defined automatically, according to the features you use
408  in the document.
409 \end_layout
410
411 \begin_layout Standard
412 There are several commands that automatically invoke \SpecialChar LaTeX
413 .
414  They are:
415 \end_layout
416
417 \begin_layout Itemize
418 \begin_inset Flex MenuItem
419 status collapsed
420
421 \begin_layout Plain Layout
422 Document\SpecialChar menuseparator
423 View
424 \end_layout
425
426 \end_inset
427
428
429 \end_layout
430
431 \begin_layout Itemize
432 \begin_inset Flex MenuItem
433 status collapsed
434
435 \begin_layout Plain Layout
436 Document\SpecialChar menuseparator
437 Update
438 \end_layout
439
440 \end_inset
441
442
443 \end_layout
444
445 \begin_layout Itemize
446 \begin_inset Flex MenuItem
447 status collapsed
448
449 \begin_layout Plain Layout
450 File\SpecialChar menuseparator
451 Print
452 \end_layout
453
454 \end_inset
455
456
457 \end_layout
458
459 \begin_layout Itemize
460 \begin_inset Flex MenuItem
461 status collapsed
462
463 \begin_layout Plain Layout
464 File\SpecialChar menuseparator
465 Fax
466 \end_layout
467
468 \end_inset
469
470
471 \end_layout
472
473 \begin_layout Standard
474 They will only invoke \SpecialChar LaTeX
475  if the file has changed since the last time \SpecialChar LaTeX
476  was
477  run.
478  
479 \end_layout
480
481 \begin_layout Standard
482 When \SpecialChar LyX
483  runs \SpecialChar LaTeX
484  on the file you're editing, it performs these steps:
485 \end_layout
486
487 \begin_layout Enumerate
488 Convert the document to \SpecialChar LaTeX
489  and save to a file with the extension 
490 \begin_inset Flex Code
491 status collapsed
492
493 \begin_layout Plain Layout
494 .tex
495 \end_layout
496
497 \end_inset
498
499  in place of 
500 \begin_inset Flex Code
501 status collapsed
502
503 \begin_layout Plain Layout
504 .lyx
505 \end_layout
506
507 \end_inset
508
509 .
510 \end_layout
511
512 \begin_layout Enumerate
513 Run \SpecialChar LaTeX
514  on the 
515 \begin_inset Flex Code
516 status collapsed
517
518 \begin_layout Plain Layout
519 .tex
520 \end_layout
521
522 \end_inset
523
524  file (maybe several times), and run any other commands (such as 
525 \begin_inset Flex Code
526 status collapsed
527
528 \begin_layout Plain Layout
529 bibtex
530 \end_layout
531
532 \end_inset
533
534  or 
535 \begin_inset Flex Code
536 status collapsed
537
538 \begin_layout Plain Layout
539 makeindex
540 \end_layout
541
542 \end_inset
543
544 ) needed to compile the \SpecialChar LaTeX
545  file.
546 \end_layout
547
548 \begin_layout Enumerate
549 If there are any errors, show the error log.
550 \end_layout
551
552 \begin_layout Standard
553 If you have run \SpecialChar LaTeX
554  using 
555 \begin_inset Flex MenuItem
556 status collapsed
557
558 \begin_layout Plain Layout
559 View
560 \bar under
561 \SpecialChar menuseparator
562
563 \bar default
564 DVI
565 \end_layout
566
567 \end_inset
568
569 , \SpecialChar LyX
570  then runs a DVI viewer to display the DVI-file.
571  If you have used 
572 \begin_inset Flex MenuItem
573 status collapsed
574
575 \begin_layout Plain Layout
576 View
577 \bar under
578 \SpecialChar menuseparator
579
580 \bar default
581 PostScript
582 \end_layout
583
584 \end_inset
585
586 , \SpecialChar LyX
587  performs further steps:
588 \end_layout
589
590 \begin_layout Itemize
591 Run 
592 \begin_inset Flex Code
593 status collapsed
594
595 \begin_layout Plain Layout
596 dvips
597 \end_layout
598
599 \end_inset
600
601  to convert the DVI file to PostScript.
602 \end_layout
603
604 \begin_layout Itemize
605 Run a PostScript viewer, such as 
606 \begin_inset Flex Code
607 status collapsed
608
609 \begin_layout Plain Layout
610 ghostview
611 \end_layout
612
613 \end_inset
614
615 , to display the PostScript file.
616 \end_layout
617
618 \begin_layout Standard
619 \SpecialChar LyX
620  does similar things when viewing, or exporting, other formats.
621 \end_layout
622
623 \begin_layout Section
624 Translating \SpecialChar LaTeX
625  files into \SpecialChar LyX
626
627 \end_layout
628
629 \begin_layout Standard
630 You can import a \SpecialChar LaTeX
631  file into \SpecialChar LyX
632  by using the 
633 \begin_inset Flex MenuItem
634 status collapsed
635
636 \begin_layout Plain Layout
637 File\SpecialChar menuseparator
638 Import\SpecialChar menuseparator
639 \SpecialChar LaTeX
640
641 \end_layout
642
643 \end_inset
644
645  command in \SpecialChar LyX
646 .
647  This will call a program named 
648 \begin_inset Flex Code
649 status collapsed
650
651 \begin_layout Plain Layout
652 tex2lyx
653 \end_layout
654
655 \end_inset
656
657  which will create a file 
658 \begin_inset Flex Code
659 status collapsed
660
661 \begin_layout Plain Layout
662 foo.lyx
663 \end_layout
664
665 \end_inset
666
667  from the file 
668 \begin_inset Flex Code
669 status collapsed
670
671 \begin_layout Plain Layout
672 foo.tex
673 \end_layout
674
675 \end_inset
676
677 .
678  \SpecialChar LyX
679  will then open that file.
680 \begin_inset Foot
681 status collapsed
682
683 \begin_layout Plain Layout
684 \begin_inset Flex Code
685 status collapsed
686
687 \begin_layout Plain Layout
688 tex2lyx
689 \end_layout
690
691 \end_inset
692
693  can also be run from the command line, of course.
694 \end_layout
695
696 \end_inset
697
698
699 \end_layout
700
701 \begin_layout Standard
702 \begin_inset Flex Code
703 status collapsed
704
705 \begin_layout Plain Layout
706 tex2lyx
707 \end_layout
708
709 \end_inset
710
711  will translate most legal \SpecialChar LaTeX
712 , but not everything.
713  It will put things it doesn't understand into \SpecialChar TeX
714  code, so after translating
715  a file with 
716 \begin_inset Flex Code
717 status collapsed
718
719 \begin_layout Plain Layout
720 tex2lyx
721 \end_layout
722
723 \end_inset
724
725 , you can look for \SpecialChar TeX
726  code and hand-edit it until it looks right.
727 \end_layout
728
729 \begin_layout Standard
730 If you don't know what \SpecialChar TeX
731  code is, read the next section.
732 \end_layout
733
734 \begin_layout Section
735 \begin_inset CommandInset label
736 LatexCommand label
737 name "sec:Inserting-TeX-Code"
738
739 \end_inset
740
741 Inserting \SpecialChar TeX
742  Code into \SpecialChar LyX
743  Documents 
744 \end_layout
745
746 \begin_layout Standard
747 Anything you can do in \SpecialChar LaTeX
748  you can do in \SpecialChar LyX
749 , for a very simple reason: You can
750  always insert \SpecialChar TeX
751  code into any \SpecialChar LyX
752  document.
753  \SpecialChar LyX
754  cannot, and will never be able to, display every possible \SpecialChar LaTeX
755  construct.
756  If ever you need to insert \SpecialChar LaTeX
757  commands into your \SpecialChar LyX
758  document, you can use the
759  
760 \begin_inset Flex Code
761 status collapsed
762
763 \begin_layout Plain Layout
764 \SpecialChar TeX
765  Code
766 \end_layout
767
768 \end_inset
769
770  box, which you can insert into your document with 
771 \begin_inset Flex MenuItem
772 status collapsed
773
774 \begin_layout Plain Layout
775 Insert\SpecialChar menuseparator
776
777 \change_deleted -712698321 1437633182
778 \SpecialChar TeX
779
780 \change_inserted -712698321 1437633182
781
782 \family sans
783 TeX
784 \change_unchanged
785
786 \family default
787  Code
788 \end_layout
789
790 \end_inset
791
792  or the keyboard shortcut 
793 \begin_inset Info
794 type  "shortcut"
795 arg   "ert-insert"
796 \end_inset
797
798 .
799 \end_layout
800
801 \begin_layout Standard
802 Here's an example of inserting \SpecialChar LaTeX
803  commands in a \SpecialChar LyX
804  document.
805  The code looks like this:
806 \end_layout
807
808 \begin_layout LyX-Code
809
810 \backslash
811 begin{tabular}{ll}
812 \begin_inset Newline newline
813 \end_inset
814
815
816 \backslash
817 begin{minipage}{5cm}
818 \begin_inset Newline newline
819 \end_inset
820
821 This is an example of a minipage environment.
822  You 
823 \begin_inset Newline newline
824 \end_inset
825
826 can put nearly everything in it, even (non-floating) 
827 \begin_inset Newline newline
828 \end_inset
829
830 figures and tables.
831  
832 \begin_inset Newline newline
833 \end_inset
834
835
836 \backslash
837 end{minipage}
838 \begin_inset Newline newline
839 \end_inset
840
841 &
842 \begin_inset Newline newline
843 \end_inset
844
845
846 \backslash
847 begin{minipage}{5cm}
848 \begin_inset Newline newline
849 \end_inset
850
851
852 \backslash
853 begin{verbatim}
854 \begin_inset Newline newline
855 \end_inset
856
857
858 \backslash
859 begin{minipage}{5cm}
860 \begin_inset Newline newline
861 \end_inset
862
863 This ...
864  
865 \begin_inset Newline newline
866 \end_inset
867
868
869 \backslash
870 end{minipage}
871 \begin_inset Newline newline
872 \end_inset
873
874
875 \backslash
876 end{verbatim}
877 \begin_inset Newline newline
878 \end_inset
879
880
881 \backslash
882 end{minipage}
883 \begin_inset Newline newline
884 \end_inset
885
886
887 \backslash
888 end{tabular}
889 \end_layout
890
891 \begin_layout LyX-Code
892
893 \end_layout
894
895 \begin_layout Standard
896 The 
897 \begin_inset Flex Code
898 status collapsed
899
900 \begin_layout Plain Layout
901 \SpecialChar TeX
902  Code
903 \end_layout
904
905 \end_inset
906
907  box containing this text is directly after this paragraph.
908  Those of you reading the manual in \SpecialChar LyX
909  will only see the \SpecialChar TeX
910  code inset.
911  Those reading a printed version of the manuals will see the actual results:
912 \begin_inset VSpace bigskip
913 \end_inset
914
915
916 \end_layout
917
918 \begin_layout Standard
919 \begin_inset ERT
920 status open
921
922 \begin_layout Plain Layout
923
924
925 \backslash
926 begin{tabular}{ll}
927 \end_layout
928
929 \begin_layout Plain Layout
930
931
932 \backslash
933 begin{minipage}{5cm}
934 \end_layout
935
936 \begin_layout Plain Layout
937
938 This is an example of a minipage environment.
939  You can put nearly everything in it, even (non-floating) figures and tables.
940  
941 \end_layout
942
943 \begin_layout Plain Layout
944
945
946 \backslash
947 end{minipage}
948 \end_layout
949
950 \begin_layout Plain Layout
951
952 &
953 \end_layout
954
955 \begin_layout Plain Layout
956
957
958 \backslash
959 begin{minipage}{5cm}
960 \end_layout
961
962 \begin_layout Plain Layout
963
964
965 \backslash
966 begin{verbatim}
967 \end_layout
968
969 \begin_layout Plain Layout
970
971
972 \backslash
973 begin{minipage}{5cm}
974 \end_layout
975
976 \begin_layout Plain Layout
977
978 This ...
979  
980 \end_layout
981
982 \begin_layout Plain Layout
983
984
985 \backslash
986 end{minipage}
987 \end_layout
988
989 \begin_layout Plain Layout
990
991
992 \backslash
993 end{verbatim}
994 \end_layout
995
996 \begin_layout Plain Layout
997
998
999 \backslash
1000 end{minipage}
1001 \end_layout
1002
1003 \begin_layout Plain Layout
1004
1005
1006 \backslash
1007 end{tabular}
1008 \end_layout
1009
1010 \end_inset
1011
1012
1013 \begin_inset VSpace bigskip
1014 \end_inset
1015
1016
1017 \end_layout
1018
1019 \begin_layout Standard
1020 In addition to using \SpecialChar TeX
1021  code, you can also create a separate file containing
1022  some complex \SpecialChar LaTeX
1023  structure and then use 
1024 \begin_inset Flex MenuItem
1025 status collapsed
1026
1027 \begin_layout Plain Layout
1028 Insert\SpecialChar menuseparator
1029 Child
1030 \begin_inset space ~
1031 \end_inset
1032
1033 Document
1034 \end_layout
1035
1036 \end_inset
1037
1038  to include your file (you should select the type 
1039 \begin_inset Flex Code
1040 status collapsed
1041
1042 \begin_layout Plain Layout
1043 Input
1044 \end_layout
1045
1046 \end_inset
1047
1048 ).
1049  We recommend that you only do this if you have a 
1050 \begin_inset Flex Code
1051 status collapsed
1052
1053 \begin_layout Plain Layout
1054 .tex
1055 \end_layout
1056
1057 \end_inset
1058
1059  file which you 
1060 \emph on
1061 know
1062 \emph default
1063  works already.
1064  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1065  errors.
1066 \end_layout
1067
1068 \begin_layout Standard
1069 There are a few last points to emphasize:
1070 \end_layout
1071
1072 \begin_layout Itemize
1073 \SpecialChar LyX
1074  
1075 \emph on
1076 does not
1077 \emph default
1078  check if your \SpecialChar LaTeX
1079  code is correct.
1080 \end_layout
1081
1082 \begin_layout Itemize
1083 Beware of reinventing the wheel.
1084 \end_layout
1085
1086 \begin_layout Standard
1087 On that last point, \SpecialChar LyX
1088  does have quite a few features tucked into it, and
1089  more are coming.
1090  Be sure to check the manuals to make sure that \SpecialChar LyX
1091  doesn't have such-and-such
1092  feature before you decide you have to do it by hand.
1093  Moreover, there are numerous \SpecialChar LaTeX
1094  packages out there to do all sorts of things,
1095  from labels to envelopes to fancy multipage tables.
1096  Check out 
1097 \begin_inset CommandInset href
1098 LatexCommand href
1099 name "CTAN"
1100 target "http://www.ctan.org/"
1101
1102 \end_inset
1103
1104  for details.
1105 \end_layout
1106
1107 \begin_layout Standard
1108 If you do need to do some wild and fancy things within your document, be
1109  sure to check out a good \SpecialChar LaTeX
1110  book for assistance.
1111  There are a number of them listed in the bibliography of the 
1112 \emph on
1113 User's Guide
1114 \emph default
1115 .
1116 \end_layout
1117
1118 \begin_layout Section
1119 \SpecialChar LyX
1120  and the \SpecialChar LaTeX
1121  Preamble
1122 \end_layout
1123
1124 \begin_layout Subsection
1125 About the \SpecialChar LaTeX
1126  Preamble
1127 \end_layout
1128
1129 \begin_layout Standard
1130 If you already know \SpecialChar LaTeX
1131 , there is no need to explain here what the preamble
1132  is good for.
1133  If you don't, the following will give you some ideas—we recommend again
1134  that you consult a \SpecialChar LaTeX
1135  book for further information.
1136  In any case, you should read the points below, because they explain what
1137  you can do and what you don't need to do in the \SpecialChar LaTeX
1138  preamble of a \SpecialChar LyX
1139  document.
1140 \end_layout
1141
1142 \begin_layout Standard
1143 The \SpecialChar LaTeX
1144  preamble comes at the very beginning of a document, 
1145 \emph on
1146 before
1147 \emph default
1148  the text.
1149  It serves to:
1150 \end_layout
1151
1152 \begin_layout Itemize
1153 Declare the document class.
1154  
1155 \begin_inset Newline newline
1156 \end_inset
1157
1158 \SpecialChar LyX
1159  already does this for you.
1160  If you're a seasoned \SpecialChar LaTeX
1161 -nician, and you have a custom document class you
1162  want to use, check out the 
1163 \emph on
1164 Customization Manual
1165 \emph default
1166  for information on how to make \SpecialChar LyX
1167  interface to it.
1168 \end_layout
1169
1170 \begin_layout Itemize
1171 Declare the usage of packages.
1172  
1173 \begin_inset Newline newline
1174 \end_inset
1175
1176 \SpecialChar LaTeX
1177  packages provide special commands, which are only available within a document
1178  when the package has been declared in the preamble.
1179  In addition to providing special commands, the inclusion of a package can
1180  change the document.
1181  For example, the package 
1182 \begin_inset Flex Code
1183 status collapsed
1184
1185 \begin_layout Plain Layout
1186 indentfirst
1187 \end_layout
1188
1189 \end_inset
1190
1191  forces all paragraphs to be indented.
1192  There are other packages for labels, envelopes, margins, etc.
1193  
1194 \end_layout
1195
1196 \begin_layout Itemize
1197 Set counters, variables, lengths and widths.
1198  
1199 \begin_inset Newline newline
1200 \end_inset
1201
1202 There are several \SpecialChar LaTeX
1203  counters and variables that 
1204 \emph on
1205 must
1206 \emph default
1207  be set globally from within the preamble in order to have the desired effect.
1208  (There are variables that you can set and reset inside the document, too.)
1209  Margins are a good example of something that must be set in the preamble.
1210  Another example is the label format for lists.
1211  You can actually set these just about anywhere, but it's best to do it
1212  just once, inside the preamble.
1213 \end_layout
1214
1215 \begin_layout Itemize
1216 Declare user defined commands (with 
1217 \begin_inset Flex Code
1218 status collapsed
1219
1220 \begin_layout Plain Layout
1221
1222 \backslash
1223 newcommand
1224 \end_layout
1225
1226 \end_inset
1227
1228  or 
1229 \begin_inset Flex Code
1230 status collapsed
1231
1232 \begin_layout Plain Layout
1233
1234 \backslash
1235 renewcommand
1236 \end_layout
1237
1238 \end_inset
1239
1240 ).
1241 \begin_inset Newline newline
1242 \end_inset
1243
1244 These are abbreviations for \SpecialChar LaTeX
1245  commands which appear very often inside a document.
1246  Although the preamble is a good place to declare such commands, they 
1247 \emph on
1248 can
1249 \emph default
1250  be declared anywhere (before they are used for the first time, of course).
1251  This can be useful if there is a lot of raw \SpecialChar LaTeX
1252  code in your document, which
1253  normally should not be the case.
1254 \end_layout
1255
1256 \begin_layout Standard
1257 \SpecialChar LyX
1258  adds its own set of definitions to the preamble of the 
1259 \begin_inset Flex Code
1260 status collapsed
1261
1262 \begin_layout Plain Layout
1263 .tex
1264 \end_layout
1265
1266 \end_inset
1267
1268  file it produces.
1269  This makes \SpecialChar LaTeX
1270  files generated by \SpecialChar LyX
1271  portable.
1272 \end_layout
1273
1274 \begin_layout Subsection
1275 Changing the Preamble
1276 \end_layout
1277
1278 \begin_layout Standard
1279 The commands which \SpecialChar LyX
1280  adds to the preamble of a \SpecialChar LaTeX
1281  file are fixed; you can't
1282  change them without patching \SpecialChar LyX
1283  itself.
1284  You can, however, add your own stuff to the preamble by selecting 
1285 \begin_inset Flex MenuItem
1286 status collapsed
1287
1288 \begin_layout Plain Layout
1289 \SpecialChar LaTeX
1290
1291 \begin_inset space ~
1292 \end_inset
1293
1294 Preamble
1295 \end_layout
1296
1297 \end_inset
1298
1299  in the 
1300 \begin_inset Flex MenuItem
1301 status collapsed
1302
1303 \begin_layout Plain Layout
1304 Document\SpecialChar menuseparator
1305 Settings
1306 \end_layout
1307
1308 \end_inset
1309
1310  dialog.
1311  \SpecialChar LyX
1312  adds anything in the 
1313 \begin_inset Flex MenuItem
1314 status collapsed
1315
1316 \begin_layout Plain Layout
1317 Preamble
1318 \end_layout
1319
1320 \end_inset
1321
1322  dialog to its own built-in preamble.
1323  Before adding your own declarations in the preamble, you should make sure
1324  that \SpecialChar LyX
1325  doesn't already support what you want to do.
1326  (Remember what we said about reinventing the wheel?) Also, 
1327 \emph on
1328 make sure your preamble code is correct
1329 \emph default
1330 .
1331  \SpecialChar LyX
1332  doesn't check it for you.
1333  If there is an error, you're likely to get an error like 
1334 \begin_inset Quotes eld
1335 \end_inset
1336
1337
1338 \begin_inset Flex Code
1339 status collapsed
1340
1341 \begin_layout Plain Layout
1342 Missing 
1343 \backslash
1344 begin{document}
1345 \end_layout
1346
1347 \end_inset
1348
1349
1350 \begin_inset Quotes erd
1351 \end_inset
1352
1353 .
1354  If you see this error, check your preamble.
1355 \end_layout
1356
1357 \begin_layout Subsection
1358 Examples
1359 \end_layout
1360
1361 \begin_layout Standard
1362 Here are some examples of what you can add to a preamble, and what they
1363  do.
1364 \end_layout
1365
1366 \begin_layout Subsubsection
1367 Example #1: Offsets
1368 \end_layout
1369
1370 \begin_layout Standard
1371 There are two variables under \SpecialChar LaTeX
1372  that control page position: 
1373 \begin_inset Flex Code
1374 status collapsed
1375
1376 \begin_layout Plain Layout
1377
1378 \backslash
1379 hoffset
1380 \end_layout
1381
1382 \end_inset
1383
1384  and 
1385 \begin_inset Flex Code
1386 status collapsed
1387
1388 \begin_layout Plain Layout
1389
1390 \backslash
1391 voffset
1392 \end_layout
1393
1394 \end_inset
1395
1396 .
1397  Their names should be self-explanatory.
1398  These variables are useful if you think for a moment about computer labels.
1399  Sometimes, the size of a print medium and the area of the medium that you
1400  can actually print on aren't the same.
1401  This is where 
1402 \begin_inset Flex Code
1403 status collapsed
1404
1405 \begin_layout Plain Layout
1406
1407 \backslash
1408 hoffset
1409 \end_layout
1410
1411 \end_inset
1412
1413  and 
1414 \begin_inset Flex Code
1415 status collapsed
1416
1417 \begin_layout Plain Layout
1418
1419 \backslash
1420 voffset
1421 \end_layout
1422
1423 \end_inset
1424
1425  come in.
1426 \end_layout
1427
1428 \begin_layout Standard
1429 The default values for 
1430 \begin_inset Flex Code
1431 status collapsed
1432
1433 \begin_layout Plain Layout
1434
1435 \backslash
1436 hoffset
1437 \end_layout
1438
1439 \end_inset
1440
1441  and 
1442 \begin_inset Flex Code
1443 status collapsed
1444
1445 \begin_layout Plain Layout
1446
1447 \backslash
1448 voffset
1449 \end_layout
1450
1451 \end_inset
1452
1453  are both 0
1454 \begin_inset space \thinspace{}
1455 \end_inset
1456
1457 points, i.
1458 \begin_inset space \thinspace{}
1459 \end_inset
1460
1461 e.
1462 \begin_inset space \space{}
1463 \end_inset
1464
1465 the page isn't shifted.
1466  Unfortunately, some DVI drivers always seem to shift the page.
1467  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1468  If you're using \SpecialChar LyX
1469  on a system that you don't personally maintain, and your
1470  sysadmin is a doofus, 
1471 \begin_inset Flex Code
1472 status collapsed
1473
1474 \begin_layout Plain Layout
1475
1476 \backslash
1477 hoffset
1478 \end_layout
1479
1480 \end_inset
1481
1482  and 
1483 \begin_inset Flex Code
1484 status collapsed
1485
1486 \begin_layout Plain Layout
1487
1488 \backslash
1489 voffset
1490 \end_layout
1491
1492 \end_inset
1493
1494  can save the day.
1495  Suppose your left and top margins are always 0.5
1496 \begin_inset space \thinspace{}
1497 \end_inset
1498
1499 inches too big.
1500  You can add this to the preamble:
1501 \end_layout
1502
1503 \begin_layout LyX-Code
1504
1505 \backslash
1506 setlength{
1507 \backslash
1508 hoffset}{-0.5 in}
1509 \end_layout
1510
1511 \begin_layout LyX-Code
1512
1513 \backslash
1514 setlength{
1515 \backslash
1516 voffset}{-0.5 in}
1517 \end_layout
1518
1519 \begin_layout Standard
1520 and your margins should now be correct.
1521 \end_layout
1522
1523 \begin_layout Subsubsection
1524 Example #2: Labels
1525 \end_layout
1526
1527 \begin_layout Standard
1528 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1529  There's a rather nice package, available at your nearest CTAN archive,
1530  for printing sheets of labels: 
1531 \begin_inset Flex Code
1532 status collapsed
1533
1534 \begin_layout Plain Layout
1535 labels.sty
1536 \end_layout
1537
1538 \end_inset
1539
1540 .
1541  Now, your system may not have this package installed by default.
1542  We leave that up to you to check.
1543  You'll also want to read the documentation for it; we're not going to do
1544  that for you.
1545  Since this is an example, however, we'll give you an example of how you
1546  use this package.
1547 \end_layout
1548
1549 \begin_layout Standard
1550 First, make sure you're using the 
1551 \begin_inset Flex Code
1552 status collapsed
1553
1554 \begin_layout Plain Layout
1555 article
1556 \end_layout
1557
1558 \end_inset
1559
1560  document class.
1561  Next, you need to put the following in your preamble:
1562 \end_layout
1563
1564 \begin_layout LyX-Code
1565
1566 \backslash
1567 usepackage{labels}
1568 \end_layout
1569
1570 \begin_layout LyX-Code
1571
1572 \backslash
1573 LabelCols=3
1574 \end_layout
1575
1576 \begin_layout LyX-Code
1577
1578 \backslash
1579 LabelRows=7
1580 \end_layout
1581
1582 \begin_layout LyX-Code
1583
1584 \backslash
1585 LeftBorder=8mm
1586 \end_layout
1587
1588 \begin_layout LyX-Code
1589
1590 \backslash
1591 RightBorder=8mm
1592 \end_layout
1593
1594 \begin_layout LyX-Code
1595
1596 \backslash
1597 TopBorder=9mm
1598 \end_layout
1599
1600 \begin_layout LyX-Code
1601
1602 \backslash
1603 BottomBorder=2mm
1604 \end_layout
1605
1606 \begin_layout Standard
1607 This sets things up for Avery label sheets, stock #5360.
1608  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1609  code, placing
1610  the commands 
1611 \begin_inset Flex Code
1612 status collapsed
1613
1614 \begin_layout Plain Layout
1615
1616 \backslash
1617 begin{labels}
1618 \end_layout
1619
1620 \end_inset
1621
1622  and 
1623 \begin_inset Flex Code
1624 status collapsed
1625
1626 \begin_layout Plain Layout
1627
1628 \backslash
1629 end{labels}
1630 \end_layout
1631
1632 \end_inset
1633
1634  around each label text.
1635  This and other special features of 
1636 \begin_inset Flex Code
1637 status collapsed
1638
1639 \begin_layout Plain Layout
1640 labels.sty
1641 \end_layout
1642
1643 \end_inset
1644
1645  are explained in its documentation.
1646 \end_layout
1647
1648 \begin_layout Standard
1649 Someday, someone may write a \SpecialChar LyX
1650  layout file to support this package directly.
1651  Maybe that someone is you.
1652 \end_layout
1653
1654 \begin_layout Subsubsection
1655 Example #3: Paragraph Indentation
1656 \end_layout
1657
1658 \begin_layout Standard
1659 Americans are trained to indent the first line of 
1660 \emph on
1661 every
1662 \emph default
1663  paragraph.
1664  As with all of their other weird quirks, most Americans will whine and
1665  moan until they can have their way and indent the first line of all paragraphs.
1666  (Yes, we're joking.
1667  (We are?) 
1668 \emph on
1669 Yeah
1670 \emph default
1671 , we are.)
1672 \end_layout
1673
1674 \begin_layout Standard
1675 Of course, this behavior isn't standard typography.
1676  In books, you typically only indent the first line of a paragraph 
1677 \emph on
1678 if
1679 \emph default
1680  it follows another one.
1681  The idea behind indenting the first line of a paragraph is to distinguish
1682  neighboring paragraphs from one another.
1683  If there is no previous paragraph—for example, if it follows a figure or
1684  is the first paragraph in a section—then there is no need for indentation.
1685  
1686 \end_layout
1687
1688 \begin_layout Standard
1689 If you're a typical American (we're still joking!), though, you don't care
1690  about such esoteric things; you want your indentation! Add this to the
1691  preamble:
1692 \end_layout
1693
1694 \begin_layout LyX-Code
1695
1696 \backslash
1697 usepackage{indentfirst}
1698 \end_layout
1699
1700 \begin_layout Standard
1701 If your \SpecialChar TeX
1702  distribution isn't braindead, you'll have this package, and all
1703  of your paragraphs will get the indentation the Founding Fathers intended
1704  they should have.
1705 \end_layout
1706
1707 \begin_layout Subsubsection
1708 Example #4: This Document
1709 \end_layout
1710
1711 \begin_layout Standard
1712 You can also check out the preamble of this document to get an idea of some
1713  of the advanced things you can do.
1714 \end_layout
1715
1716 \begin_layout Section
1717 \SpecialChar LyX
1718  and \SpecialChar LaTeX
1719  Errors
1720 \end_layout
1721
1722 \begin_layout Standard
1723 When \SpecialChar LyX
1724  calls \SpecialChar LaTeX
1725 , it tells \SpecialChar LaTeX
1726  to blithely ignore any errors and keep going.
1727  It then uses the logfile from the \SpecialChar LaTeX
1728  run to do a post-mortem.
1729  After analyzing the logfile, \SpecialChar LyX
1730  displays a dialog listing the errors.
1731  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1732  file
1733  where the error occurred.
1734 \begin_inset Foot
1735 status collapsed
1736
1737 \begin_layout Plain Layout
1738 Well, usually.
1739  Analyzing the logfile is a tough job, and \SpecialChar LyX
1740  doesn't always go to the right
1741  line.
1742  There are also cases where \SpecialChar LaTeX
1743  reports the error on one line, but the actual
1744  error is earlier.
1745  This is not unlike forgetting a closing brace in a program: You'll get
1746  an error, but only later.
1747 \end_layout
1748
1749 \end_inset
1750
1751
1752 \end_layout
1753
1754 \begin_layout Standard
1755 Some folks also like to look at the log file directly: It is available from
1756  
1757 \begin_inset Flex MenuItem
1758 status collapsed
1759
1760 \begin_layout Plain Layout
1761 Document
1762 \bar under
1763 \SpecialChar menuseparator
1764
1765 \bar default
1766 Latex
1767 \begin_inset space ~
1768 \end_inset
1769
1770 Log
1771 \end_layout
1772
1773 \end_inset
1774
1775 .
1776  There are some fairly common error messages and warnings.
1777  We'll cover those here.
1778  You should look at a good \SpecialChar LaTeX
1779  book for a complete listing.
1780 \end_layout
1781
1782 \begin_layout Itemize
1783 \begin_inset Flex Code
1784 status collapsed
1785
1786 \begin_layout Plain Layout
1787 \SpecialChar LaTeX
1788  Warning
1789 \end_layout
1790
1791 \end_inset
1792
1793
1794 \begin_inset Newline newline
1795 \end_inset
1796
1797 Anything beginning with these words is a warning message for the purpose
1798  of 
1799 \begin_inset Quotes eld
1800 \end_inset
1801
1802 debugging
1803 \begin_inset Quotes erd
1804 \end_inset
1805
1806  the \SpecialChar LaTeX
1807  code itself.
1808  You'll get messages like this if you added or changed cross-references
1809  or bibliography entries, in which case, \SpecialChar LaTeX
1810  is trying to tell you that you
1811  need to make another run.
1812  You can by-and-large ignore these.
1813 \end_layout
1814
1815 \begin_layout Itemize
1816 \begin_inset Flex Code
1817 status collapsed
1818
1819 \begin_layout Plain Layout
1820 \SpecialChar LaTeX
1821  Font Warning
1822 \end_layout
1823
1824 \end_inset
1825
1826
1827 \begin_inset Newline newline
1828 \end_inset
1829
1830 Another warning message, this time about fonts which \SpecialChar LaTeX
1831  couldn't find.
1832  The rest of the message will often say something about a replacement font
1833  that \SpecialChar LaTeX
1834  used.
1835  You can safely ignore these, too.
1836 \end_layout
1837
1838 \begin_layout Itemize
1839 \begin_inset Flex Code
1840 status collapsed
1841
1842 \begin_layout Plain Layout
1843 Overfull 
1844 \backslash
1845 hbox
1846 \end_layout
1847
1848 \end_inset
1849
1850
1851 \begin_inset Newline newline
1852 \end_inset
1853
1854 \SpecialChar LaTeX
1855  absolutely 
1856 \emph on
1857 loves
1858 \emph default
1859  to spew these out.
1860  They are warnings about lines that were too long and run past the right
1861  margin.
1862  Almost always, this is unnoticeable in the final output.
1863  (It can be just a point or two.) Or, only one or two characters extend past
1864  the margin.
1865  \SpecialChar LaTeX
1866  seems to generate at least one of these messages for just about any document
1867  you write.
1868 \begin_inset Newline newline
1869 \end_inset
1870
1871 You can ignore these messages.
1872  Your eyes will tell you if there's a problem with something that's too
1873  wide; just look at the output.
1874 \begin_inset Foot
1875 status collapsed
1876
1877 \begin_layout Plain Layout
1878 You can also enable the `draft' option in 
1879 \begin_inset Flex MenuItem
1880 status collapsed
1881
1882 \begin_layout Plain Layout
1883 Document
1884 \bar under
1885 \SpecialChar menuseparator
1886
1887 \bar default
1888 Settings
1889 \end_layout
1890
1891 \end_inset
1892
1893 , and then \SpecialChar LaTeX
1894  will draw a black box in the margin of lines that are overfull.
1895 \end_layout
1896
1897 \end_inset
1898
1899
1900 \end_layout
1901
1902 \begin_layout Itemize
1903 \begin_inset Flex Code
1904 status collapsed
1905
1906 \begin_layout Plain Layout
1907 Underfull 
1908 \backslash
1909 hbox
1910 \end_layout
1911
1912 \end_inset
1913
1914
1915 \begin_inset Newline newline
1916 \end_inset
1917
1918 Not quite as common as its cousin.
1919  \SpecialChar LaTeX
1920  seems to like to print lines that are a bit too wide as opposed to ones
1921  that are a bit too narrow.
1922  We have no idea why.
1923 \end_layout
1924
1925 \begin_layout Itemize
1926 \begin_inset Flex Code
1927 status collapsed
1928
1929 \begin_layout Plain Layout
1930 Overfull 
1931 \backslash
1932 vbox
1933 \end_layout
1934
1935 \end_inset
1936
1937  and 
1938 \begin_inset Flex Code
1939 status collapsed
1940
1941 \begin_layout Plain Layout
1942 Underfull 
1943 \backslash
1944 vbox
1945 \end_layout
1946
1947 \end_inset
1948
1949
1950 \begin_inset Newline newline
1951 \end_inset
1952
1953 Warnings about troubles breaking the page.
1954  Once again, just look at the output.
1955  Your eyes will tell you where something has gone wrong.
1956 \end_layout
1957
1958 \begin_layout Itemize
1959 \begin_inset Flex Code
1960 status collapsed
1961
1962 \begin_layout Plain Layout
1963 \SpecialChar LaTeX
1964  Error: File 
1965 \begin_inset Quotes els
1966 \end_inset
1967
1968 Xxxx
1969 \begin_inset Quotes ers
1970 \end_inset
1971
1972  not found
1973 \end_layout
1974
1975 \end_inset
1976
1977
1978 \begin_inset Newline newline
1979 \end_inset
1980
1981 The file 
1982 \begin_inset Quotes eld
1983 \end_inset
1984
1985 Xxxx
1986 \begin_inset Quotes erd
1987 \end_inset
1988
1989  isn't installed on this system.
1990  This usually appears because some package your document needs isn't installed.
1991  If you didn't touch the preamble or didn't use the 
1992 \begin_inset Flex Code
1993 status collapsed
1994
1995 \begin_layout Plain Layout
1996
1997 \backslash
1998 usepackage{}
1999 \end_layout
2000
2001 \end_inset
2002
2003  command, then one of the packages \SpecialChar LyX
2004  tried to load is missing.
2005  Use 
2006 \begin_inset Flex MenuItem
2007 status collapsed
2008
2009 \begin_layout Plain Layout
2010 Help\SpecialChar menuseparator
2011 \SpecialChar LaTeX
2012  Configuration
2013 \end_layout
2014
2015 \end_inset
2016
2017  to get a list of packages that \SpecialChar LyX
2018  knows about.
2019  This file is updated whenever you reconfigure \SpecialChar LyX
2020  (using 
2021 \begin_inset Flex MenuItem
2022 status collapsed
2023
2024 \begin_layout Plain Layout
2025 Tools\SpecialChar menuseparator
2026 Reconfigure
2027 \end_layout
2028
2029 \end_inset
2030
2031 ) and tells you which packages have been detected and what they do.
2032 \begin_inset Newline newline
2033 \end_inset
2034
2035 If you did use the 
2036 \begin_inset Flex Code
2037 status collapsed
2038
2039 \begin_layout Plain Layout
2040
2041 \backslash
2042 usepackage{}
2043 \end_layout
2044
2045 \end_inset
2046
2047  command and the package in question isn't installed, then you'll need to
2048  install it yourself.
2049 \end_layout
2050
2051 \begin_layout Itemize
2052 \begin_inset Flex Code
2053 status collapsed
2054
2055 \begin_layout Plain Layout
2056 \SpecialChar LaTeX
2057  Error: Unknown option
2058 \end_layout
2059
2060 \end_inset
2061
2062
2063 \begin_inset Newline newline
2064 \end_inset
2065
2066 Error messages beginning with this are trying to tell you that you specified
2067  a bad or undefined option to a package.
2068  Check the package's documentation.
2069 \end_layout
2070
2071 \begin_layout Itemize
2072 \begin_inset Flex Code
2073 status collapsed
2074
2075 \begin_layout Plain Layout
2076 Undefined control sequence
2077 \end_layout
2078
2079 \end_inset
2080
2081
2082 \begin_inset Newline newline
2083 \end_inset
2084
2085 If you've inserted \SpecialChar LaTeX
2086  code into your document, but made a typo, you'll get
2087  one of these.
2088  You may have forgotten to load a package.
2089  In any case, this error message usually means that you used an undefined
2090  command.
2091  
2092 \end_layout
2093
2094 \begin_layout Standard
2095 There are other error and warning messages.
2096  Some are self-explanatory.
2097  These are usually \SpecialChar LaTeX
2098  messages.
2099  Others are downright cryptic.
2100  These are usually \SpecialChar TeX
2101  error messages, and we really have 
2102 \emph on
2103 no clue
2104 \emph default
2105  what they mean or how to decipher them.
2106  No-one does.
2107 \end_layout
2108
2109 \begin_layout Standard
2110 There's a general sequence you should follow if you get error messages:
2111 \end_layout
2112
2113 \begin_layout Enumerate
2114 Look at the \SpecialChar LaTeX
2115  code you inserted for typos.
2116 \end_layout
2117
2118 \begin_layout Enumerate
2119 If there are no typos, check that you used the command(s) correctly.
2120 \end_layout
2121
2122 \begin_layout Enumerate
2123 If you get a bunch of error boxes piled up at the very top of the document—and
2124  especially if you see a 
2125 \begin_inset Quotes eld
2126 \end_inset
2127
2128
2129 \begin_inset Flex Code
2130 status collapsed
2131
2132 \begin_layout Plain Layout
2133 Missing 
2134 \backslash
2135 begin{document}
2136 \end_layout
2137
2138 \end_inset
2139
2140
2141 \begin_inset Quotes erd
2142 \end_inset
2143
2144  error—it means that there are errors in the preamble.
2145  Start debugging your preamble.
2146 \end_layout
2147
2148 \begin_layout Enumerate
2149 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2150  code to the
2151  document, the first suspect is your \SpecialChar LaTeX
2152  distribution itself.
2153  Check for missing packages and install them.
2154 \end_layout
2155
2156 \begin_layout Enumerate
2157 Okay, so there are no missing packages.
2158  Did you use any of the fine-tuning options in \SpecialChar LyX
2159 ? Specifically, did you 
2160 \emph on
2161 misuse
2162 \emph default
2163  any of them, like trying to manually insert lots of 
2164 \begin_inset Flex Code
2165 status collapsed
2166
2167 \begin_layout Plain Layout
2168 Protected
2169 \begin_inset space ~
2170 \end_inset
2171
2172 Blanks
2173 \end_layout
2174
2175 \end_inset
2176
2177
2178 \begin_inset Flex Code
2179 status collapsed
2180
2181 \begin_layout Plain Layout
2182 Linebreaks
2183 \end_layout
2184
2185 \end_inset
2186
2187 , or 
2188 \begin_inset Flex Code
2189 status collapsed
2190
2191 \begin_layout Plain Layout
2192 Pagebreaks
2193 \end_layout
2194
2195 \end_inset
2196
2197 ? Did you try to kludge something together with these instead of using the
2198  appropriate paragraph environment?
2199 \end_layout
2200
2201 \begin_layout Enumerate
2202 All right, you didn't use any of the fine-tuning options, you played by
2203  the rules.
2204  Did you try to pull a fancy maneuver? Did you do something funky inside
2205  a table or an equation, like inserting a graphic into a table cell?
2206 \end_layout
2207
2208 \begin_layout Enumerate
2209 Do you have long sections of text where \SpecialChar LaTeX
2210  cannot find a place to break a
2211  line? By default, \SpecialChar LaTeX
2212  is rather strict about how much extra inter-word spacing
2213  it will add in order to break a line.
2214  Preferably, you should rework the paragraph to avoid the problem.
2215  If this isn't an option, you can wrap your text in 
2216 \begin_inset Flex Code
2217 status collapsed
2218
2219 \begin_layout Plain Layout
2220
2221 \backslash
2222 sloppypar
2223 \end_layout
2224
2225 \end_inset
2226
2227  to make \SpecialChar LaTeX
2228 's line breaking more, well, sloppy.
2229 \end_layout
2230
2231 \begin_layout Enumerate
2232 Did you go overboard with the nesting? \SpecialChar LyX
2233  (currently) doesn't check to make
2234  sure you're in the limits for nesting environments.
2235  If you nested a bunch of environments to the 
2236 \begin_inset Formula $17^{\mathrm{th}}$
2237 \end_inset
2238
2239  level, that's the problem.
2240  (The limit in \SpecialChar LaTeX
2241  is five.)
2242 \end_layout
2243
2244 \begin_layout Enumerate
2245 Okay, you didn't get any error messages, but your output looks awful.
2246  If you have a table or figure that's too wide or long for the page, you
2247  need to:
2248 \begin_inset Separator parbreak
2249 \end_inset
2250
2251
2252 \end_layout
2253
2254 \begin_deeper
2255 \begin_layout Enumerate
2256 rescale the figure so it fits.
2257 \end_layout
2258
2259 \begin_layout Enumerate
2260 trim down the table so it fits.
2261 \end_layout
2262
2263 \end_deeper
2264 \begin_layout Enumerate
2265 If something else is wrong with the output, and you didn't try to pull anything
2266  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2267 \end_layout
2268
2269 \begin_layout Standard
2270 If all this doesn't help—well, then 
2271 \emph on
2272 perhaps
2273 \emph default
2274  you might have found a bug in \SpecialChar LyX
2275 \SpecialChar ldots
2276 .
2277 \end_layout
2278
2279 \begin_layout Chapter
2280 Supplemental Tools
2281 \end_layout
2282
2283 \begin_layout Section
2284 Customizing Bibliographies with Bib\SpecialChar TeX
2285
2286 \end_layout
2287
2288 \begin_layout Standard
2289 The most basic information about how to use Bib\SpecialChar TeX
2290  with \SpecialChar LyX
2291  is contained in the
2292  section 
2293 \emph on
2294 Bibliography databases (Bib\SpecialChar TeX
2295 )
2296 \emph default
2297  of the 
2298 \emph on
2299 User's Guide
2300 \emph default
2301 .
2302  The following subsections explain special bibliography features supported
2303  by \SpecialChar LyX
2304 .
2305 \end_layout
2306
2307 \begin_layout Subsection
2308 Alternative Citation Styles
2309 \end_layout
2310
2311 \begin_layout Standard
2312 Standard Bib\SpecialChar TeX
2313  uses numbers (e.
2314 \begin_inset space \thinspace{}
2315 \end_inset
2316
2317 g.
2318 \begin_inset space \space{}
2319 \end_inset
2320
2321
2322 \begin_inset Quotes eld
2323 \end_inset
2324
2325 [12]
2326 \begin_inset Quotes erd
2327 \end_inset
2328
2329 ) to refer to a cited work.
2330  However, in many scientific disciplines, other citation styles are in use.
2331  The most common one is the author-year style (e.
2332 \begin_inset space \thinspace{}
2333 \end_inset
2334
2335 g.
2336 \begin_inset space \space{}
2337 \end_inset
2338
2339
2340 \begin_inset Quotes eld
2341 \end_inset
2342
2343 Knuth 1984a
2344 \begin_inset Quotes erd
2345 \end_inset
2346
2347 ).
2348  \SpecialChar LyX
2349  supports two packages that provide this style, 
2350 \begin_inset Flex Code
2351 status collapsed
2352
2353 \begin_layout Plain Layout
2354 natbib
2355 \end_layout
2356
2357 \end_inset
2358
2359  and 
2360 \begin_inset Flex Code
2361 status collapsed
2362
2363 \begin_layout Plain Layout
2364 jurabib
2365 \end_layout
2366
2367 \end_inset
2368
2369 .
2370  Both packages have their pros and cons, which cannot be listed in detail.
2371  If you only want to have simple author-year (or author-numerical) style,
2372  or if you want to use one of the countless style files for 
2373 \begin_inset Flex Code
2374 status collapsed
2375
2376 \begin_layout Plain Layout
2377 natbib
2378 \end_layout
2379
2380 \end_inset
2381
2382 , then the established 
2383 \begin_inset Flex Code
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387 natbib
2388 \end_layout
2389
2390 \end_inset
2391
2392  package is probably your choice.
2393  If you need special features like short title references, ibidem etc., you
2394  might consider the 
2395 \begin_inset Flex Code
2396 status collapsed
2397
2398 \begin_layout Plain Layout
2399 jurabib
2400 \end_layout
2401
2402 \end_inset
2403
2404  package.
2405 \end_layout
2406
2407 \begin_layout Standard
2408 The handling of both packages in \SpecialChar LyX
2409  is basically the same.
2410  Go to 
2411 \begin_inset Flex MenuItem
2412 status collapsed
2413
2414 \begin_layout Plain Layout
2415 Document\SpecialChar menuseparator
2416 Settings
2417 \end_layout
2418
2419 \end_inset
2420
2421  and select under 
2422 \begin_inset Flex MenuItem
2423 status collapsed
2424
2425 \begin_layout Plain Layout
2426 Bibliography
2427 \end_layout
2428
2429 \end_inset
2430
2431  the option 
2432 \begin_inset Flex MenuItem
2433 status collapsed
2434
2435 \begin_layout Plain Layout
2436 Natbib
2437 \end_layout
2438
2439 \end_inset
2440
2441  or 
2442 \begin_inset Flex MenuItem
2443 status collapsed
2444
2445 \begin_layout Plain Layout
2446 Jurabib
2447 \end_layout
2448
2449 \end_inset
2450
2451 .
2452  With both packages, you will get some extra features in the citation dialog
2453  and you can select the style of the reference (
2454 \begin_inset Quotes eld
2455 \end_inset
2456
2457 Knuth 1984
2458 \begin_inset Quotes erd
2459 \end_inset
2460
2461
2462 \begin_inset Quotes eld
2463 \end_inset
2464
2465 Knuth (1984)
2466 \begin_inset Quotes erd
2467 \end_inset
2468
2469
2470 \begin_inset Quotes eld
2471 \end_inset
2472
2473 Knuth, 1984
2474 \begin_inset Quotes erd
2475 \end_inset
2476
2477
2478 \begin_inset Quotes eld
2479 \end_inset
2480
2481 1984
2482 \begin_inset Quotes erd
2483 \end_inset
2484
2485  etc.).
2486  Note that both packages need specifically designed style files.
2487  They both ship their own, but there are lots of additional style files,
2488  and there is even an interactive style file builder
2489 \begin_inset Foot
2490 status collapsed
2491
2492 \begin_layout Plain Layout
2493 See 
2494 \begin_inset Flex URL
2495 status open
2496
2497 \begin_layout Plain Layout
2498
2499 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2500 \end_layout
2501
2502 \end_inset
2503
2504
2505 \end_layout
2506
2507 \end_inset
2508
2509  for 
2510 \begin_inset Flex Code
2511 status collapsed
2512
2513 \begin_layout Plain Layout
2514 natbib
2515 \end_layout
2516
2517 \end_inset
2518
2519 .
2520 \end_layout
2521
2522 \begin_layout Subsection
2523 Sectioned Bibliographies
2524 \end_layout
2525
2526 \begin_layout Standard
2527 Sometimes you might need to divide your bibliography into several sections.
2528  If you are for instance a historian, the possibility to separate sources
2529  and scientific works is most likely a 
2530 \begin_inset Quotes eld
2531 \end_inset
2532
2533 must have
2534 \begin_inset Quotes erd
2535 \end_inset
2536
2537 .
2538  Unfortunately, Bib\SpecialChar TeX
2539  itself does not allow you to do this.
2540  But with the help of some \SpecialChar LaTeX
2541  packages, Bib\SpecialChar TeX
2542  can be extended to fit your needs.
2543 \end_layout
2544
2545 \begin_layout Standard
2546 \SpecialChar LyX
2547  provides native support for one of these packages, 
2548 \family typewriter
2549 bibtopic
2550 \family default
2551 .
2552 \begin_inset Foot
2553 status collapsed
2554
2555 \begin_layout Plain Layout
2556 Available from 
2557 \begin_inset Flex URL
2558 status open
2559
2560 \begin_layout Plain Layout
2561
2562 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2563 \end_layout
2564
2565 \end_inset
2566
2567
2568 \end_layout
2569
2570 \end_inset
2571
2572  The advantage of this package (compared to other packages like 
2573 \family typewriter
2574 multibib
2575 \family default
2576 ) is that you don't need to define new citation commands.
2577  Instead, you need to prepare different bibliographic databases which include
2578  the entries for the different sections of the bibliography.
2579  For example: If you want to divide your bibliography into the sections
2580  
2581 \begin_inset Quotes eld
2582 \end_inset
2583
2584 Sources
2585 \begin_inset Quotes erd
2586 \end_inset
2587
2588  and 
2589 \begin_inset Quotes eld
2590 \end_inset
2591
2592 Scientific works
2593 \begin_inset Quotes erd
2594 \end_inset
2595
2596 , you first need to create two bibliographic databases, e.
2597 \begin_inset space \thinspace{}
2598 \end_inset
2599
2600 g.
2601 \begin_inset space \space{}
2602 \end_inset
2603
2604
2605 \begin_inset Flex Code
2606 status collapsed
2607
2608 \begin_layout Plain Layout
2609 sources.bib
2610 \end_layout
2611
2612 \end_inset
2613
2614  and 
2615 \begin_inset Flex Code
2616 status collapsed
2617
2618 \begin_layout Plain Layout
2619 scientific.bib
2620 \end_layout
2621
2622 \end_inset
2623
2624 .
2625  
2626 \end_layout
2627
2628 \begin_layout Standard
2629 Go to 
2630 \begin_inset Flex MenuItem
2631 status collapsed
2632
2633 \begin_layout Plain Layout
2634 Document\SpecialChar menuseparator
2635 Settings
2636 \end_layout
2637
2638 \end_inset
2639
2640  and check under 
2641 \begin_inset Flex MenuItem
2642 status collapsed
2643
2644 \begin_layout Plain Layout
2645 Bibliography
2646 \end_layout
2647
2648 \end_inset
2649
2650  the option 
2651 \begin_inset Flex MenuItem
2652 status collapsed
2653
2654 \begin_layout Plain Layout
2655 Sectioned bibliography
2656 \end_layout
2657
2658 \end_inset
2659
2660 .
2661  Now you can insert multiple Bib\SpecialChar TeX
2662  bibliographies, one for each section of
2663  your bibliography.
2664  Returning to our example: Insert the Bib\SpecialChar TeX
2665  bibliography 
2666 \begin_inset Flex Code
2667 status collapsed
2668
2669 \begin_layout Plain Layout
2670 sources.bib
2671 \end_layout
2672
2673 \end_inset
2674
2675  and a second one for the database 
2676 \begin_inset Flex Code
2677 status collapsed
2678
2679 \begin_layout Plain Layout
2680 scientific.bib
2681 \end_layout
2682
2683 \end_inset
2684
2685 .
2686  You are free to use the same or different styles for each section.
2687  Additionally, you can choose if the bibliography section should contain
2688  
2689 \begin_inset Quotes eld
2690 \end_inset
2691
2692 all cited references
2693 \begin_inset Quotes erd
2694 \end_inset
2695
2696  of the specified database(s) (which is the default), 
2697 \begin_inset Quotes eld
2698 \end_inset
2699
2700 all uncited references
2701 \begin_inset Quotes erd
2702 \end_inset
2703
2704  or even 
2705 \begin_inset Quotes eld
2706 \end_inset
2707
2708 all references
2709 \begin_inset Quotes erd
2710 \end_inset
2711
2712 .
2713  This might be useful if you would like to separate your bibliography into
2714  three sections: 
2715 \begin_inset Quotes eld
2716 \end_inset
2717
2718 Cited sources
2719 \begin_inset Quotes erd
2720 \end_inset
2721
2722
2723 \begin_inset Quotes eld
2724 \end_inset
2725
2726 Uncited sources
2727 \begin_inset Quotes erd
2728 \end_inset
2729
2730 , and 
2731 \begin_inset Quotes eld
2732 \end_inset
2733
2734 Scientific works
2735 \begin_inset Quotes erd
2736 \end_inset
2737
2738 .
2739  The titles for the sections can be added as ordinary sections or subsections.
2740  Since 
2741 \begin_inset Flex Code
2742 status collapsed
2743
2744 \begin_layout Plain Layout
2745 bibtopic
2746 \end_layout
2747
2748 \end_inset
2749
2750  removes the bibliography title, you have to manually re-add that, too (as
2751  a chapter* or section*, for instance).
2752 \end_layout
2753
2754 \begin_layout Subsection
2755 Multiple Bibliographies
2756 \end_layout
2757
2758 \begin_layout Standard
2759 Multiple bibliographies, e.
2760 \begin_inset space \thinspace{}
2761 \end_inset
2762
2763 g.
2764 \begin_inset space \space{}
2765 \end_inset
2766
2767 a bibliography for each section or chapter of the document, are not supported
2768  by Bib\SpecialChar TeX
2769  itself.
2770  But the 
2771 \begin_inset Flex Code
2772 status collapsed
2773
2774 \begin_layout Plain Layout
2775 bibtopic
2776 \end_layout
2777
2778 \end_inset
2779
2780  package, which is used for the creation of sectioned bibliographies in
2781  \SpecialChar LyX
2782  (see the previous section), provides an easy way to solve this task, if
2783  you are willing to use some 
2784 \begin_inset Flex MenuItem
2785 status collapsed
2786
2787 \begin_layout Plain Layout
2788 \SpecialChar TeX
2789  Code
2790 \end_layout
2791
2792 \end_inset
2793
2794  (see section
2795 \begin_inset space ~
2796 \end_inset
2797
2798
2799 \begin_inset CommandInset ref
2800 LatexCommand ref
2801 reference "sec:Inserting-TeX-Code"
2802
2803 \end_inset
2804
2805 ).
2806 \begin_inset Foot
2807 status collapsed
2808
2809 \begin_layout Plain Layout
2810 An alternative approach is to use the 
2811 \begin_inset Flex Code
2812 status collapsed
2813
2814 \begin_layout Plain Layout
2815 chapterbib
2816 \end_layout
2817
2818 \end_inset
2819
2820  or 
2821 \begin_inset Flex Code
2822 status collapsed
2823
2824 \begin_layout Plain Layout
2825 bibunits
2826 \end_layout
2827
2828 \end_inset
2829
2830  package, respectively.
2831 \end_layout
2832
2833 \end_inset
2834
2835
2836 \end_layout
2837
2838 \begin_layout Standard
2839 First go to 
2840 \begin_inset Flex MenuItem
2841 status collapsed
2842
2843 \begin_layout Plain Layout
2844 Document\SpecialChar menuseparator
2845 Settings
2846 \end_layout
2847
2848 \end_inset
2849
2850  and under 
2851 \begin_inset Flex MenuItem
2852 status collapsed
2853
2854 \begin_layout Plain Layout
2855 Bibliography
2856 \end_layout
2857
2858 \end_inset
2859
2860  check 
2861 \begin_inset Flex MenuItem
2862 status collapsed
2863
2864 \begin_layout Plain Layout
2865 Sectioned bibliography
2866 \end_layout
2867
2868 \end_inset
2869
2870 .
2871  In the document, you have to enclose the sections, which shall contain
2872  their own bibliography (including the Bib\SpecialChar TeX
2873  bibliography itself), between
2874  
2875 \begin_inset Flex Code
2876 status collapsed
2877
2878 \begin_layout Plain Layout
2879
2880 \backslash
2881 begin{btUnit}
2882 \end_layout
2883
2884 \end_inset
2885
2886  and 
2887 \begin_inset Flex Code
2888 status collapsed
2889
2890 \begin_layout Plain Layout
2891
2892 \backslash
2893 end{btUnit}
2894 \end_layout
2895
2896 \end_inset
2897
2898  (those commands have to be inserted as \SpecialChar TeX
2899  code).
2900  The bibliography will contain all references that have been cited in the
2901  current 
2902 \begin_inset Flex Code
2903 status collapsed
2904
2905 \begin_layout Plain Layout
2906 btUnit
2907 \end_layout
2908
2909 \end_inset
2910
2911 .
2912  
2913 \series bold
2914 Note:
2915 \series default
2916  If you are using this approach, then every citation reference has to be
2917  inside some 
2918 \begin_inset Flex Code
2919 status collapsed
2920
2921 \begin_layout Plain Layout
2922 btUnit
2923 \end_layout
2924
2925 \end_inset
2926
2927 .
2928  Also, the 
2929 \begin_inset Flex Code
2930 status collapsed
2931
2932 \begin_layout Plain Layout
2933 btUnit
2934 \end_layout
2935
2936 \end_inset
2937
2938 s cannot be nested.
2939 \end_layout
2940
2941 \begin_layout Section
2942 Multipart Documents
2943 \end_layout
2944
2945 \begin_layout Subsection
2946 General Operation
2947 \end_layout
2948
2949 \begin_layout Standard
2950 When you are working on a large file with many sections, it is often convenient
2951  to break up the document into several files, or perhaps you have something
2952  where a table may change from time to time, but the preceding text does
2953  not.
2954  In these cases, you should seriously consider using multipart documents.
2955  For example, scientific papers often have five major sections: the introduction
2956 , observations, results, discussion, and conclusion.
2957  Each of these could be its own separate \SpecialChar LyX
2958  file, with one 
2959 \begin_inset Quotes eld
2960 \end_inset
2961
2962 master
2963 \begin_inset Quotes erd
2964 \end_inset
2965
2966  file which contains the title, authors, abstract, references, etc., plus
2967  the five included files.
2968  It is important to note that each of these files is a full \SpecialChar LyX
2969  file which
2970  can be formatted and printed on its own, as well as included in a master
2971  file.
2972  Each of these files must have the same document class, however—don't attempt
2973  to mix book classes with article classes.
2974  You may also include \SpecialChar LaTeX
2975  files; however, these files must not have their own
2976  preamble (i.
2977 \begin_inset space \thinspace{}
2978 \end_inset
2979
2980 e.
2981 \begin_inset space \space{}
2982 \end_inset
2983
2984 everything up to and including the 
2985 \begin_inset Flex Code
2986 status collapsed
2987
2988 \begin_layout Plain Layout
2989
2990 \backslash
2991 begin{document}
2992 \end_layout
2993
2994 \end_inset
2995
2996  line as well as the 
2997 \begin_inset Flex Code
2998 status collapsed
2999
3000 \begin_layout Plain Layout
3001
3002 \backslash
3003 end{document}
3004 \end_layout
3005
3006 \end_inset
3007
3008  line must be deleted) or else errors will be generated when you try to
3009  make a DVI file.
3010 \end_layout
3011
3012 \begin_layout Standard
3013 \SpecialChar LyX
3014  allows you to include files quite easily with 
3015 \begin_inset Flex MenuItem
3016 status collapsed
3017
3018 \begin_layout Plain Layout
3019 Insert\SpecialChar menuseparator
3020 ChiId
3021 \begin_inset space ~
3022 \end_inset
3023
3024 Document
3025 \end_layout
3026
3027 \end_inset
3028
3029 .
3030  When you click on this selection a small box is inserted into the file
3031  at the current cursor location.
3032  Clicking on the box raises a dialog which allows you to select the file
3033  to be included, and the method of its inclusion.
3034  
3035 \end_layout
3036
3037 \begin_layout Standard
3038 The file selection box should by now be obvious.
3039  The three inclusion methods are 
3040 \begin_inset Quotes eld
3041 \end_inset
3042
3043 include
3044 \begin_inset Quotes erd
3045 \end_inset
3046
3047
3048 \begin_inset Quotes eld
3049 \end_inset
3050
3051 input
3052 \begin_inset Quotes erd
3053 \end_inset
3054
3055 , and 
3056 \begin_inset Quotes eld
3057 \end_inset
3058
3059 verbatim
3060 \begin_inset Quotes erd
3061 \end_inset
3062
3063 .
3064  The difference between 
3065 \begin_inset Quotes eld
3066 \end_inset
3067
3068 include
3069 \begin_inset Quotes erd
3070 \end_inset
3071
3072  and 
3073 \begin_inset Quotes eld
3074 \end_inset
3075
3076 input
3077 \begin_inset Quotes erd
3078 \end_inset
3079
3080  is really only meaningful to \SpecialChar LaTeX
3081 perts, but the practical difference is that
3082  files that are 
3083 \begin_inset Quotes eld
3084 \end_inset
3085
3086 included
3087 \begin_inset Quotes erd
3088 \end_inset
3089
3090  are typeset beginning on a new page, while files that are 
3091 \begin_inset Quotes eld
3092 \end_inset
3093
3094 inputted
3095 \begin_inset Quotes erd
3096 \end_inset
3097
3098  are typeset starting on the current page.
3099 \end_layout
3100
3101 \begin_layout Standard
3102 Generally, the master file is converted into a full \SpecialChar LaTeX
3103  file before typesetting,
3104  while the included files are converted to \SpecialChar LaTeX
3105  files that do not have all the
3106  preamble information.
3107 \end_layout
3108
3109 \begin_layout Standard
3110
3111 \begin_inset Quotes eld
3112 \end_inset
3113
3114 verbatim
3115 \begin_inset Quotes erd
3116 \end_inset
3117
3118  included file allows you to include a file typeset exactly as it appears
3119  in the file, i.
3120 \begin_inset space \thinspace{}
3121 \end_inset
3122
3123 e.
3124 \begin_inset space \space{}
3125 \end_inset
3126
3127 in 
3128 \begin_inset Flex Code
3129 status collapsed
3130
3131 \begin_layout Plain Layout
3132 verbatim
3133 \end_layout
3134
3135 \end_inset
3136
3137  mode, with the characters set in a fixed-width typewriter font.
3138  Normally, spaces in this file are invisible, though two consecutive spaces
3139  are conserved, unlike \SpecialChar LyX
3140 's normal treatment of spaces.
3141  However, setting the 
3142 \begin_inset Flex MenuItem
3143 status collapsed
3144
3145 \begin_layout Plain Layout
3146 Mark
3147 \begin_inset space ~
3148 \end_inset
3149
3150 spaces
3151 \begin_inset space ~
3152 \end_inset
3153
3154 in
3155 \begin_inset space ~
3156 \end_inset
3157
3158 output
3159 \end_layout
3160
3161 \end_inset
3162
3163  checkbox typesets a mark to unambiguously define the presence of a space.
3164  
3165 \end_layout
3166
3167 \begin_layout Subsection
3168 Cross-References Between Files
3169 \end_layout
3170
3171 \begin_layout Standard
3172 \begin_inset Box Shadowbox
3173 position "t"
3174 hor_pos "c"
3175 has_inner_box 1
3176 inner_pos "t"
3177 use_parbox 0
3178 use_makebox 0
3179 width "100col%"
3180 special "none"
3181 height "1in"
3182 height_special "totalheight"
3183 thickness "0.4pt"
3184 separation "3pt"
3185 shadowsize "4pt"
3186 framecolor "black"
3187 backgroundcolor "none"
3188 status open
3189
3190 \begin_layout Plain Layout
3191 This section is somewhat out of date.
3192  Need to describe default master documents and how children are opened when
3193  the master is.
3194  [[FIXME]]
3195 \end_layout
3196
3197 \end_inset
3198
3199
3200 \end_layout
3201
3202 \begin_layout Standard
3203 It is possible to set up cross-references between the different files.
3204  First, open all the files in question: let's call them A and B in a two
3205  file example, where B is included in A.
3206  Let's say you insert a label in A, then want to reference it in B.
3207  Open the cross-reference dialog whilst in document B, and you can select
3208  the 
3209 \begin_inset Quotes eld
3210 \end_inset
3211
3212 buffer
3213 \begin_inset Quotes erd
3214 \end_inset
3215
3216  to use.
3217 \end_layout
3218
3219 \begin_layout Subsection
3220 Bibliography Lists in all Subdocuments
3221 \end_layout
3222
3223 \begin_layout Standard
3224 \begin_inset Box Frameless
3225 position "t"
3226 hor_pos "c"
3227 has_inner_box 1
3228 inner_pos "t"
3229 use_parbox 0
3230 use_makebox 0
3231 width "100col%"
3232 special "none"
3233 height "1in"
3234 height_special "totalheight"
3235 thickness "0.4pt"
3236 separation "3pt"
3237 shadowsize "4pt"
3238 framecolor "black"
3239 backgroundcolor "none"
3240 status open
3241
3242 \begin_layout Plain Layout
3243 This section also needs updating.
3244  There is now material about this on the wiki, and it could be copied here.
3245 \end_layout
3246
3247 \end_inset
3248
3249
3250 \end_layout
3251
3252 \begin_layout Standard
3253 Copy the bibliography list with all entries to all subdocuments and transform
3254  them to a comment.
3255  This way \SpecialChar LyX
3256  will find the 
3257 \begin_inset Flex Code
3258 status collapsed
3259
3260 \begin_layout Plain Layout
3261 .bib
3262 \end_layout
3263
3264 \end_inset
3265
3266 -files and you can easily insert references without making the bibliography
3267  list visible.
3268 \end_layout
3269
3270 \begin_layout Standard
3271 As the bibliography list is in a comment, \SpecialChar LaTeX
3272  won't use it and the references
3273  will look like this: [?], instead of like this: [1].
3274  One solution is to use the \SpecialChar LaTeX
3275 -package 
3276 \begin_inset Flex Code
3277 status collapsed
3278
3279 \begin_layout Plain Layout
3280 comment
3281 \end_layout
3282
3283 \end_inset
3284
3285  that will only include comments by processing the files separately.
3286  To do this, add in the \SpecialChar LaTeX
3287  preamble of every subdocument the following:
3288 \end_layout
3289
3290 \begin_layout LyX-Code
3291
3292 \backslash
3293 usepackage{comment}
3294 \end_layout
3295
3296 \begin_layout LyX-Code
3297
3298 \backslash
3299 includecomment{comment}
3300 \end_layout
3301
3302 \begin_layout Standard
3303 See also 
3304 \begin_inset Flex URL
3305 status collapsed
3306
3307 \begin_layout Plain Layout
3308
3309 http://wiki.lyx.org/FAQ/Unsorted#toc31
3310 \end_layout
3311
3312 \end_inset
3313
3314 .
3315 \end_layout
3316
3317 \begin_layout Section
3318 \SpecialChar LyX
3319  Archives
3320 \end_layout
3321
3322 \begin_layout Standard
3323 Users sometimes need to be able to 
3324 \begin_inset Quotes eld
3325 \end_inset
3326
3327 bundle
3328 \begin_inset Quotes erd
3329 \end_inset
3330
3331  a \SpecialChar LyX
3332  file together with all the images (and other files) on which it depends,
3333  either for sending to a publisher or for sharing with a co-author.
3334  \SpecialChar LyX
3335  2.0 includes a Python script (
3336 \begin_inset Flex Code
3337 status collapsed
3338
3339 \begin_layout Plain Layout
3340 lyxpak.py
3341 \end_layout
3342
3343 \end_inset
3344
3345 ) that automates this process.
3346  To use it, you must have either the 
3347 \begin_inset Flex Code
3348 status collapsed
3349
3350 \begin_layout Plain Layout
3351 zipfile
3352 \end_layout
3353
3354 \end_inset
3355
3356  or 
3357 \begin_inset Flex Code
3358 status collapsed
3359
3360 \begin_layout Plain Layout
3361 tarfile
3362 \end_layout
3363
3364 \end_inset
3365
3366  python modules installed on your system.
3367  By default, the script prefers the 
3368 \begin_inset Flex Code
3369 status collapsed
3370
3371 \begin_layout Plain Layout
3372 gzip
3373 \end_layout
3374
3375 \end_inset
3376
3377 -compressed 
3378 \begin_inset Flex Code
3379 status collapsed
3380
3381 \begin_layout Plain Layout
3382 tar
3383 \end_layout
3384
3385 \end_inset
3386
3387  format on Unix-like systems and the 
3388 \begin_inset Flex Code
3389 status collapsed
3390
3391 \begin_layout Plain Layout
3392 zip
3393 \end_layout
3394
3395 \end_inset
3396
3397  format on Windows.
3398 \end_layout
3399
3400 \begin_layout Standard
3401 \SpecialChar LyX
3402 's configuration process will set the script up to export a `\SpecialChar LyX
3403  Archive',
3404  and this format will then be available under 
3405 \begin_inset Flex Code
3406 status collapsed
3407
3408 \begin_layout Plain Layout
3409 File\SpecialChar menuseparator
3410 Export
3411 \end_layout
3412
3413 \end_inset
3414
3415 .
3416 \end_layout
3417
3418 \begin_layout Standard
3419 Independently of the platform, the generation of a particular archive format
3420  can be forced by adding either the 
3421 \begin_inset Flex Code
3422 status collapsed
3423
3424 \begin_layout Plain Layout
3425 -t
3426 \end_layout
3427
3428 \end_inset
3429
3430  (for the 
3431 \begin_inset Flex Code
3432 status collapsed
3433
3434 \begin_layout Plain Layout
3435 tar
3436 \end_layout
3437
3438 \end_inset
3439
3440  format) or 
3441 \begin_inset Flex Code
3442 status collapsed
3443
3444 \begin_layout Plain Layout
3445 -z
3446 \end_layout
3447
3448 \end_inset
3449
3450  (for the 
3451 \begin_inset Flex Code
3452 status collapsed
3453
3454 \begin_layout Plain Layout
3455 zip
3456 \end_layout
3457
3458 \end_inset
3459
3460  format) switch to the 
3461 \begin_inset Flex Code
3462 status collapsed
3463
3464 \begin_layout Plain Layout
3465 \SpecialChar LyX
3466 \SpecialChar menuseparator
3467 \SpecialChar LyX
3468  Archive
3469 \end_layout
3470
3471 \end_inset
3472
3473  converter in 
3474 \begin_inset Flex Code
3475 status collapsed
3476
3477 \begin_layout Plain Layout
3478 Tools\SpecialChar menuseparator
3479 Preferences\SpecialChar menuseparator
3480 File Handling\SpecialChar menuseparator
3481 Converters
3482 \end_layout
3483
3484 \end_inset
3485
3486 .
3487  (Make sure you add the switch after the script name, not before it.)
3488 \end_layout
3489
3490 \begin_layout Section
3491 Fancy Headers and Footers
3492 \end_layout
3493
3494 \begin_layout Standard
3495 The default page layout is rather plain; for an 
3496 \begin_inset Flex Code
3497 status collapsed
3498
3499 \begin_layout Plain Layout
3500 article
3501 \end_layout
3502
3503 \end_inset
3504
3505  document class, all you get is a centered page number at the bottom of
3506  the page.
3507  This document uses KOMA-script's book class, so it appears to be a bit
3508  fancier.
3509  But to really put on a show, you need to set the document page style to
3510  
3511 \begin_inset Quotes eld
3512 \end_inset
3513
3514 fancy
3515 \begin_inset Quotes erd
3516 \end_inset
3517
3518 , as mentioned in the 
3519 \emph on
3520 User Guide
3521 \emph default
3522 .
3523  This section describes the \SpecialChar LaTeX
3524  code you need to insert in your \SpecialChar LaTeX
3525  preamble in
3526  order to get the desired effects.
3527 \end_layout
3528
3529 \begin_layout Standard
3530 For more information on fancy headers, see the 
3531 \begin_inset Flex Code
3532 status collapsed
3533
3534 \begin_layout Plain Layout
3535 fancyhdr
3536 \end_layout
3537
3538 \end_inset
3539
3540  package documentation.
3541  (
3542 \begin_inset Flex URL
3543 status collapsed
3544
3545 \begin_layout Plain Layout
3546
3547 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3548 \end_layout
3549
3550 \end_inset
3551
3552 )
3553 \end_layout
3554
3555 \begin_layout Standard
3556 The page header is divided into three fields, not surprisingly labeled 
3557 \begin_inset Quotes eld
3558 \end_inset
3559
3560 left
3561 \begin_inset Quotes erd
3562 \end_inset
3563
3564
3565 \begin_inset Quotes eld
3566 \end_inset
3567
3568 center
3569 \begin_inset Quotes erd
3570 \end_inset
3571
3572 , and 
3573 \begin_inset Quotes eld
3574 \end_inset
3575
3576 right
3577 \begin_inset Quotes erd
3578 \end_inset
3579
3580 .
3581  The footer is also divided into these three fields.
3582  The \SpecialChar LaTeX
3583  commands to set these fields in the simplest manner are 
3584 \begin_inset Flex Code
3585 status collapsed
3586
3587 \begin_layout Plain Layout
3588
3589 \backslash
3590 lhead
3591 \end_layout
3592
3593 \end_inset
3594
3595
3596 \begin_inset Flex Code
3597 status collapsed
3598
3599 \begin_layout Plain Layout
3600
3601 \backslash
3602 chead
3603 \end_layout
3604
3605 \end_inset
3606
3607
3608 \begin_inset Flex Code
3609 status collapsed
3610
3611 \begin_layout Plain Layout
3612
3613 \backslash
3614 rhead
3615 \end_layout
3616
3617 \end_inset
3618
3619
3620 \begin_inset Flex Code
3621 status collapsed
3622
3623 \begin_layout Plain Layout
3624
3625 \backslash
3626 lfoot
3627 \end_layout
3628
3629 \end_inset
3630
3631 , etc.
3632  Suppose you wish to put your name in the upper left hand corner of each
3633  page.
3634  Simply insert the following command in the preamble: 
3635 \end_layout
3636
3637 \begin_layout Standard
3638
3639 \family typewriter
3640
3641 \backslash
3642 lhead{John Q.
3643  DocWriter}
3644 \end_layout
3645
3646 \begin_layout Standard
3647 You will now see your name in the upper left.
3648  If a field has a default entry that you would like to get rid of (often
3649  the page number appears in the central footer) simply include a command
3650  with a blank argument, e.
3651 \begin_inset space \thinspace{}
3652 \end_inset
3653
3654 g.:
3655 \end_layout
3656
3657 \begin_layout Standard
3658
3659 \family typewriter
3660
3661 \backslash
3662 cfoot{}
3663 \end_layout
3664
3665 \begin_layout Standard
3666 Let's get really fancy: lets put the section number with the word 
3667 \begin_inset Quotes eld
3668 \end_inset
3669
3670 Section
3671 \begin_inset Quotes erd
3672 \end_inset
3673
3674  (e.
3675 \begin_inset space \thinspace{}
3676 \end_inset
3677
3678 g.
3679 \begin_inset space \space{}
3680 \end_inset
3681
3682 Section 3) in the upper left, the page number (e.
3683 \begin_inset space \thinspace{}
3684 \end_inset
3685
3686 g.
3687 \begin_inset space \space{}
3688 \end_inset
3689
3690 Page 4) in the upper right, your name in the lower left, and the date in
3691  the lower right.
3692  The following commands should now appear in the preamble:
3693 \end_layout
3694
3695 \begin_layout Standard
3696
3697 \family typewriter
3698
3699 \backslash
3700 lhead{Section 
3701 \backslash
3702 thesection}
3703 \end_layout
3704
3705 \begin_layout Standard
3706
3707 \family typewriter
3708
3709 \backslash
3710 chead{}
3711 \end_layout
3712
3713 \begin_layout Standard
3714
3715 \family typewriter
3716
3717 \backslash
3718 rhead{Page 
3719 \backslash
3720 thepage}
3721 \end_layout
3722
3723 \begin_layout Standard
3724
3725 \family typewriter
3726
3727 \backslash
3728 lfoot{John Q.
3729  DocWriter}
3730 \end_layout
3731
3732 \begin_layout Standard
3733
3734 \family typewriter
3735
3736 \backslash
3737 cfoot{}
3738 \end_layout
3739
3740 \begin_layout Standard
3741
3742 \family typewriter
3743
3744 \backslash
3745 rfoot{
3746 \backslash
3747 today}
3748 \end_layout
3749
3750 \begin_layout Standard
3751 The commands 
3752 \begin_inset Flex Code
3753 status collapsed
3754
3755 \begin_layout Plain Layout
3756
3757 \backslash
3758 thesection
3759 \end_layout
3760
3761 \end_inset
3762
3763  and 
3764 \begin_inset Flex Code
3765 status collapsed
3766
3767 \begin_layout Plain Layout
3768
3769 \backslash
3770 thepage
3771 \end_layout
3772
3773 \end_inset
3774
3775  access \SpecialChar LaTeX
3776 's section and page counters, and so print out the current section
3777  and page numbers.
3778  
3779 \begin_inset Flex Code
3780 status collapsed
3781
3782 \begin_layout Plain Layout
3783
3784 \backslash
3785 today
3786 \end_layout
3787
3788 \end_inset
3789
3790  simply prints out today's date.
3791 \end_layout
3792
3793 \begin_layout Standard
3794 The thicknesses of the horizontal rules drawn beneath the header and above
3795  the footer can also be modified.
3796  If you don't want one of the rules, set its thickness to 0.
3797  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3798  Use commands
3799 \family typewriter
3800  
3801 \family default
3802 like 
3803 \begin_inset Flex Code
3804 status collapsed
3805
3806 \begin_layout Plain Layout
3807
3808 \backslash
3809 renewcommand{
3810 \backslash
3811 headrulewidth}{0.4pt}
3812 \end_layout
3813
3814 \end_inset
3815
3816  and 
3817 \begin_inset Flex Code
3818 status collapsed
3819
3820 \begin_layout Plain Layout
3821
3822 \backslash
3823 renewcommand{
3824 \backslash
3825 footrulewidth}{0.4pt}
3826 \end_layout
3827
3828 \end_inset
3829
3830  to set the thicknesses.
3831 \end_layout
3832
3833 \begin_layout Standard
3834 You can switch the header/footer settings on and off for individual pages
3835  using commands like 
3836 \begin_inset Flex Code
3837 status collapsed
3838
3839 \begin_layout Plain Layout
3840
3841 \backslash
3842 thispagestyle{empty}
3843 \end_layout
3844
3845 \end_inset
3846
3847
3848 \begin_inset Flex Code
3849 status collapsed
3850
3851 \begin_layout Plain Layout
3852
3853 \backslash
3854 thispagestyle{plain}
3855 \end_layout
3856
3857 \end_inset
3858
3859 , and 
3860 \begin_inset Flex Code
3861 status collapsed
3862
3863 \begin_layout Plain Layout
3864
3865 \backslash
3866 thispagestyle{fancy}
3867 \end_layout
3868
3869 \end_inset
3870
3871 .
3872  Simply insert them in the text on the page you want changed and mark them
3873  as \SpecialChar TeX
3874  code.
3875  In fact, title pages are marked as plain by default, while following pages
3876  are marked fancy when using the global fancy setting.
3877 \end_layout
3878
3879 \begin_layout Standard
3880 As a final example, it is possible to include an image in the header or
3881  footer.
3882  Suppose you want to put a company logo in the upper lefthand corner.
3883  You might try something like
3884 \end_layout
3885
3886 \begin_layout Standard
3887
3888 \family typewriter
3889
3890 \backslash
3891 lhead{
3892 \backslash
3893 resizebox{1in}{!}{
3894 \backslash
3895 includegraphics{logo.eps}}}
3896 \end_layout
3897
3898 \begin_layout Standard
3899 \noindent
3900 (you may need to preface this with 
3901 \begin_inset Flex Code
3902 status collapsed
3903
3904 \begin_layout Plain Layout
3905 \noindent
3906
3907 \backslash
3908 usepackage{graphics}
3909 \end_layout
3910
3911 \end_inset
3912
3913  if you don't include graphics elsewhere in your document).
3914 \end_layout
3915
3916 \begin_layout Section
3917 Itemize Bullet Selection
3918 \begin_inset CommandInset label
3919 LatexCommand label
3920 name "sec:bullet"
3921
3922 \end_inset
3923
3924
3925 \end_layout
3926
3927 \begin_layout Standard
3928 by
3929 \noun on
3930  Allan Rae
3931 \end_layout
3932
3933 \begin_layout Subsection
3934 Introduction
3935 \end_layout
3936
3937 \begin_layout Standard
3938 \SpecialChar LyX
3939  provides 216 bullet shapes that can be accessed from a simple dialog.
3940  Using this dialog you can easily specify what bullet shape to use at each
3941  level of an itemized list.
3942  These settings are document-wide so you won't be able to specify different
3943  sets of bullets for different paragraphs.
3944 \begin_inset Foot
3945 status collapsed
3946
3947 \begin_layout Plain Layout
3948 Well, actually you can but you'll have to do it by hand.
3949 \end_layout
3950
3951 \end_inset
3952
3953
3954 \end_layout
3955
3956 \begin_layout Subsection
3957 How it looks
3958 \end_layout
3959
3960 \begin_layout Standard
3961 Open the dialog by selecting the 
3962 \begin_inset Flex MenuItem
3963 status collapsed
3964
3965 \begin_layout Plain Layout
3966 Document\SpecialChar menuseparator
3967 Settings
3968 \end_layout
3969
3970 \end_inset
3971
3972  menu item and then select the 
3973 \begin_inset Flex MenuItem
3974 status collapsed
3975
3976 \begin_layout Plain Layout
3977 Bullets
3978 \end_layout
3979
3980 \end_inset
3981
3982  tab.
3983 \end_layout
3984
3985 \begin_layout Standard
3986 The dialog provides you with a table of bullet shapes.
3987  A column of buttons on the left of the table provides access to the six
3988  different panels of bullet shapes.
3989  The row of buttons across the top is used to select which bullet depth
3990  you are changing.
3991  A text entry under the table shows the currently selected bullet shape's
3992  \SpecialChar LaTeX
3993  equivalent and this can be edited if desired.
3994  If you do modify the text you will also need to specify any needed packages
3995  in the \SpecialChar LaTeX
3996  preamble.
3997 \end_layout
3998
3999 \begin_layout Standard
4000 The six panels are divided up by the packages they require.
4001  The following table shows the mappings from button name to \SpecialChar LaTeX
4002  package.
4003 \begin_inset Separator parbreak
4004 \end_inset
4005
4006
4007 \end_layout
4008
4009 \begin_layout Standard
4010 \align center
4011 \begin_inset Tabular
4012 <lyxtabular version="3" rows="7" columns="2">
4013 <features tabularvalignment="middle">
4014 <column alignment="center" valignment="top" width="0pt">
4015 <column alignment="center" valignment="top" width="0pt">
4016 <row>
4017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4018 \begin_inset Text
4019
4020 \begin_layout Plain Layout
4021
4022 \family roman
4023 \series medium
4024 \shape up
4025 \size normal
4026 \emph off
4027 \bar no
4028 \noun off
4029 \color none
4030 Button
4031 \end_layout
4032
4033 \end_inset
4034 </cell>
4035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4036 \begin_inset Text
4037
4038 \begin_layout Plain Layout
4039
4040 \family roman
4041 \series medium
4042 \shape up
4043 \size normal
4044 \emph off
4045 \bar no
4046 \noun off
4047 \color none
4048 Packages Required
4049 \end_layout
4050
4051 \end_inset
4052 </cell>
4053 </row>
4054 <row>
4055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4056 \begin_inset Text
4057
4058 \begin_layout Plain Layout
4059
4060 \family sans
4061 \series medium
4062 \shape up
4063 \size normal
4064 \emph off
4065 \bar no
4066 \noun off
4067 \color none
4068 Standard
4069 \end_layout
4070
4071 \end_inset
4072 </cell>
4073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4074 \begin_inset Text
4075
4076 \begin_layout Plain Layout
4077
4078 \series medium
4079 \shape up
4080 \size normal
4081 \emph off
4082 \bar no
4083 \noun off
4084 \color none
4085 base \SpecialChar LaTeX
4086
4087 \end_layout
4088
4089 \end_inset
4090 </cell>
4091 </row>
4092 <row>
4093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4094 \begin_inset Text
4095
4096 \begin_layout Plain Layout
4097
4098 \family sans
4099 \series medium
4100 \shape up
4101 \size normal
4102 \emph off
4103 \bar no
4104 \noun off
4105 \color none
4106 Maths
4107 \end_layout
4108
4109 \end_inset
4110 </cell>
4111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4112 \begin_inset Text
4113
4114 \begin_layout Plain Layout
4115
4116 \family typewriter
4117 \series medium
4118 \shape up
4119 \size normal
4120 \emph off
4121 \bar no
4122 \noun off
4123 \color none
4124 amssymb.sty
4125 \end_layout
4126
4127 \end_inset
4128 </cell>
4129 </row>
4130 <row>
4131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4132 \begin_inset Text
4133
4134 \begin_layout Plain Layout
4135
4136 \family sans
4137 \series medium
4138 \shape up
4139 \size normal
4140 \emph off
4141 \bar no
4142 \noun off
4143 \color none
4144 Ding1
4145 \end_layout
4146
4147 \end_inset
4148 </cell>
4149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4150 \begin_inset Text
4151
4152 \begin_layout Plain Layout
4153
4154 \family typewriter
4155 \series medium
4156 \shape up
4157 \size normal
4158 \emph off
4159 \bar no
4160 \noun off
4161 \color none
4162 pifont.sty
4163 \end_layout
4164
4165 \end_inset
4166 </cell>
4167 </row>
4168 <row>
4169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4170 \begin_inset Text
4171
4172 \begin_layout Plain Layout
4173
4174 \family sans
4175 \series medium
4176 \shape up
4177 \size normal
4178 \emph off
4179 \bar no
4180 \noun off
4181 \color none
4182 Ding2
4183 \end_layout
4184
4185 \end_inset
4186 </cell>
4187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4188 \begin_inset Text
4189
4190 \begin_layout Plain Layout
4191
4192 \family typewriter
4193 \series medium
4194 \shape up
4195 \size normal
4196 \emph off
4197 \bar no
4198 \noun off
4199 \color none
4200 pifont.sty
4201 \end_layout
4202
4203 \end_inset
4204 </cell>
4205 </row>
4206 <row>
4207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4208 \begin_inset Text
4209
4210 \begin_layout Plain Layout
4211
4212 \family sans
4213 \series medium
4214 \shape up
4215 \size normal
4216 \emph off
4217 \bar no
4218 \noun off
4219 \color none
4220 Ding3
4221 \end_layout
4222
4223 \end_inset
4224 </cell>
4225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4226 \begin_inset Text
4227
4228 \begin_layout Plain Layout
4229
4230 \family typewriter
4231 \series medium
4232 \shape up
4233 \size normal
4234 \emph off
4235 \bar no
4236 \noun off
4237 \color none
4238 pifont.sty
4239 \end_layout
4240
4241 \end_inset
4242 </cell>
4243 </row>
4244 <row>
4245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4246 \begin_inset Text
4247
4248 \begin_layout Plain Layout
4249
4250 \family sans
4251 \series medium
4252 \shape up
4253 \size normal
4254 \emph off
4255 \bar no
4256 \noun off
4257 \color none
4258 Ding4
4259 \end_layout
4260
4261 \end_inset
4262 </cell>
4263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4264 \begin_inset Text
4265
4266 \begin_layout Plain Layout
4267
4268 \family typewriter
4269 \series medium
4270 \shape up
4271 \size normal
4272 \emph off
4273 \bar no
4274 \noun off
4275 \color none
4276 pifont.sty
4277 \end_layout
4278
4279 \end_inset
4280 </cell>
4281 </row>
4282 </lyxtabular>
4283
4284 \end_inset
4285
4286
4287 \end_layout
4288
4289 \begin_layout Standard
4290 \SpecialChar LyX
4291  doesn't stop you using bullets from packages you don't have.
4292  If you get errors from \SpecialChar LaTeX
4293  when you try to view or print the file, then it
4294  is likely you are missing a package.
4295 \begin_inset Foot
4296 status collapsed
4297
4298 \begin_layout Plain Layout
4299 \SpecialChar LyX
4300  doesn't restrict your use since you may be editing locally and exporting
4301  elsewhere.
4302 \end_layout
4303
4304 \end_inset
4305
4306
4307 \end_layout
4308
4309 \begin_layout Subsection
4310 How to use it
4311 \end_layout
4312
4313 \begin_layout Standard
4314 Select which bullet depth you want to change then select the bullet shape
4315  and size.
4316  Any changes will not be visible in \SpecialChar LyX
4317 , but are visible when viewing the document.
4318 \end_layout
4319
4320 \begin_layout Standard
4321 You can reset a bullet shape to the default simply by clicking your right
4322  mouse button on the appropriate bullet depth button.
4323 \begin_inset Foot
4324 status collapsed
4325
4326 \begin_layout Plain Layout
4327 If you 
4328 \emph on
4329 really
4330 \emph default
4331  want to have multiple sets of paragraphs with different sets of bullets
4332  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4333  code.
4334  The bullet selection dialog can help though because it provides you with
4335  the \SpecialChar LaTeX
4336  code for a wide range of bullet shapes.
4337  To make your own custom paragraphs you have the following options:
4338 \end_layout
4339
4340 \begin_layout Plain Layout
4341 \begin_inset ERT
4342 status open
4343
4344 \begin_layout Plain Layout
4345
4346
4347 \backslash
4348 let
4349 \backslash
4350 savelabelitemi=
4351 \backslash
4352 labelitemi
4353 \end_layout
4354
4355 \end_inset
4356
4357
4358 \end_layout
4359
4360 \begin_layout Plain Layout
4361 \begin_inset ERT
4362 status open
4363
4364 \begin_layout Plain Layout
4365
4366
4367 \backslash
4368 renewcommand
4369 \backslash
4370 labelitemi[0]{
4371 \backslash
4372 small
4373 \backslash
4374 (
4375 \backslash
4376 sharp
4377 \backslash
4378 )}
4379 \end_layout
4380
4381 \end_inset
4382
4383
4384 \end_layout
4385
4386 \begin_layout Itemize
4387 Use the \SpecialChar LaTeX
4388  command 
4389 \begin_inset Flex Code
4390 status collapsed
4391
4392 \begin_layout Plain Layout
4393
4394 \backslash
4395 renewcommand{}{}
4396 \end_layout
4397
4398 \end_inset
4399
4400  to specify a new bullet shape for a given depth.
4401  You'll also need to save the current bullet shape so you can restore it
4402  again afterwards.
4403  In this itemized list the following \SpecialChar LaTeX
4404  code was used to change the bullet
4405  used for the first depth.
4406 \begin_inset Separator parbreak
4407 \end_inset
4408
4409
4410 \end_layout
4411
4412 \begin_deeper
4413 \begin_layout LyX-Code
4414
4415 \backslash
4416 let
4417 \backslash
4418 savelabelitemi=
4419 \backslash
4420 labelitemi 
4421 \end_layout
4422
4423 \begin_layout LyX-Code
4424
4425 \backslash
4426 renewcommand
4427 \backslash
4428 labelitemi[0]{
4429 \backslash
4430 small
4431 \backslash
4432 (
4433 \backslash
4434 sharp
4435 \backslash
4436 )}
4437 \end_layout
4438
4439 \end_deeper
4440 \begin_layout Itemize
4441 Note that the itemize depth is specified in Roman numerals as part of the
4442  
4443 \family typewriter
4444
4445 \backslash
4446 labelitem
4447 \family default
4448  command.
4449 \end_layout
4450
4451 \begin_layout Itemize
4452 \begin_inset ERT
4453 status open
4454
4455 \begin_layout Plain Layout
4456
4457 [
4458 \backslash
4459 (
4460 \backslash
4461 star
4462 \backslash
4463 )]
4464 \end_layout
4465
4466 \end_inset
4467
4468  Specify each individual entry by starting each item with the bullet shape
4469  enclosed in square brackets and set as 
4470 \begin_inset Flex MenuItem
4471 status collapsed
4472
4473 \begin_layout Plain Layout
4474 \SpecialChar TeX
4475  Code
4476 \end_layout
4477
4478 \end_inset
4479
4480 .
4481  For example, this item was started with 
4482 \begin_inset Flex Code
4483 status collapsed
4484
4485 \begin_layout Plain Layout
4486 [
4487 \backslash
4488 (
4489 \backslash
4490 star
4491 \backslash
4492 )]
4493 \end_layout
4494
4495 \end_inset
4496
4497 .
4498 \end_layout
4499
4500 \begin_layout Plain Layout
4501 \begin_inset ERT
4502 status open
4503
4504 \begin_layout Plain Layout
4505
4506
4507 \backslash
4508 renewcommand
4509 \backslash
4510 labelitemi[0]{
4511 \backslash
4512 savelabelitemi}
4513 \end_layout
4514
4515 \end_inset
4516
4517
4518 \end_layout
4519
4520 \begin_layout Plain Layout
4521 You'll also need to revert the labelitem back to its previous setting for
4522  the global bullet shape settings to remain in effect.
4523  The way used here was:
4524 \end_layout
4525
4526 \begin_layout LyX-Code
4527
4528 \backslash
4529 renewcommand
4530 \backslash
4531 labelitemi[0]{
4532 \backslash
4533 savelabelitemi}
4534 \end_layout
4535
4536 \end_inset
4537
4538
4539 \end_layout
4540
4541 \begin_layout Chapter
4542 \SpecialChar LyX
4543  and the World Wide Web
4544 \end_layout
4545
4546 \begin_layout Standard
4547 \SpecialChar LyX
4548  has long supported the export of documents to various web-friendly formats,
4549  such as HTML.
4550  Before verson 2.0, however, HTML export was always accomplished by the use
4551  of external converters.
4552 \begin_inset Foot
4553 status collapsed
4554
4555 \begin_layout Plain Layout
4556 For details on the use of external converters with \SpecialChar LyX
4557 , see the 
4558 \emph on
4559 Converters
4560 \emph default
4561  section of the Customization manual.
4562 \end_layout
4563
4564 \end_inset
4565
4566  These fall into two large groups: there are converters that use \SpecialChar LaTeX
4567  as an
4568  intermediate format, such as 
4569 \begin_inset Flex Code
4570 status collapsed
4571
4572 \begin_layout Plain Layout
4573 htlatex
4574 \end_layout
4575
4576 \end_inset
4577
4578
4579 \begin_inset Flex Code
4580 status collapsed
4581
4582 \begin_layout Plain Layout
4583 html2latex
4584 \end_layout
4585
4586 \end_inset
4587
4588 , and 
4589 \begin_inset Flex Code
4590 status collapsed
4591
4592 \begin_layout Plain Layout
4593 plastex
4594 \end_layout
4595
4596 \end_inset
4597
4598 , relying upon \SpecialChar LyX
4599  to produce the \SpecialChar LaTeX
4600 ; and there is a converter that works directly
4601  on \SpecialChar LyX
4602  files, 
4603 \begin_inset Flex Code
4604 status collapsed
4605
4606 \begin_layout Plain Layout
4607 e\SpecialChar LyX
4608 er
4609 \end_layout
4610
4611 \end_inset
4612
4613 .
4614  All of these have different advantages and disadvantages.
4615  
4616 \end_layout
4617
4618 \begin_layout Standard
4619 The \SpecialChar LaTeX
4620 -based converters have the advantage that, in principle, they know everythin
4621 g about the exported document that \SpecialChar LaTeX
4622  does.
4623  Such converters do not care, for example, if a certain block of code was
4624  produced by \SpecialChar LyX
4625  or was Evil Red Text.
4626  These converters know about 
4627 \begin_inset Flex Code
4628 status collapsed
4629
4630 \begin_layout Plain Layout
4631 aux
4632 \end_layout
4633
4634 \end_inset
4635
4636  files, counters, and references, and can often make use of the 
4637 \begin_inset Flex Code
4638 status collapsed
4639
4640 \begin_layout Plain Layout
4641 bbl
4642 \end_layout
4643
4644 \end_inset
4645
4646  files generated by Bib\SpecialChar TeX
4647 .
4648  On the other hand, \SpecialChar LaTeX
4649  is a very hard language to parse—it is sometimes said
4650  that only \SpecialChar TeX
4651  itself understands \SpecialChar TeX
4652 —and \SpecialChar LaTeX
4653 -based converters will often choke on
4654  what seem to be quite simple constructs; complex ones can throw them completely
4655 , and as of this writing, for example, the 
4656 \emph on
4657 Embedded Objects
4658 \emph default
4659  manual will not export with 
4660 \begin_inset Flex Code
4661 status collapsed
4662
4663 \begin_layout Plain Layout
4664 htlatex
4665 \end_layout
4666
4667 \end_inset
4668
4669 , though the others will.
4670  The other issue concerns how math is handled.
4671  These converters typically convert the formulae into little pictures that
4672  are then linked from the HTML document.
4673  Since these are actually generated by \SpecialChar LaTeX
4674 , they are accurate.
4675  But they do not scale well, and just getting them to look as if they are
4676  actually meant to be in your document—so that the font sizes seem to be
4677  roughly the same—can be a challenge.
4678 \end_layout
4679
4680 \begin_layout Standard
4681 Alex Fernandez's 
4682 \begin_inset Flex Code
4683 status collapsed
4684
4685 \begin_layout Plain Layout
4686 e\SpecialChar LyX
4687 er
4688 \end_layout
4689
4690 \end_inset
4691
4692  (
4693 \begin_inset CommandInset href
4694 LatexCommand href
4695 name "http://elyxer.nongnu.org/"
4696 target "http://elyxer.nongnu.org/"
4697
4698 \end_inset
4699
4700 ) solves some of these problems.
4701  In particular, the formulae it produces scale perfectly, since it renders
4702  math using a combination of HTML and CSS rather than converting the formulae
4703  to images.
4704  But even moderately complex formula are rendered less well than with 
4705 \begin_inset Flex Code
4706 status collapsed
4707
4708 \begin_layout Plain Layout
4709 htlatex
4710 \end_layout
4711
4712 \end_inset
4713
4714 ; this reflects the limitations of HTML.
4715 \begin_inset Foot
4716 status collapsed
4717
4718 \begin_layout Plain Layout
4719 That said, 
4720 \begin_inset Flex Code
4721 status collapsed
4722
4723 \begin_layout Plain Layout
4724 e\SpecialChar LyX
4725 er
4726 \end_layout
4727
4728 \end_inset
4729
4730  can also use jsMath and MathJax for equations, but this setting is only
4731  available globally and requires one to have access to a server that runs
4732  the backend.
4733 \end_layout
4734
4735 \end_inset
4736
4737  More importantly (as of version 1.1.1, at least), 
4738 \begin_inset Flex Code
4739 status collapsed
4740
4741 \begin_layout Plain Layout
4742 e\SpecialChar LyX
4743 er
4744 \end_layout
4745
4746 \end_inset
4747
4748  has limited support for math macros and no support for user-defined paragraph
4749  or character styles.
4750  These limitations make 
4751 \begin_inset Flex Code
4752 status collapsed
4753
4754 \begin_layout Plain Layout
4755 e\SpecialChar LyX
4756 er
4757 \end_layout
4758
4759 \end_inset
4760
4761  unsuitable for many of the documents \SpecialChar LyX
4762  users produce.
4763  In principle, of course, these problems could be solved, but the \SpecialChar LyX
4764  developers
4765  have decided to follow a different path and have made \SpecialChar LyX
4766  itself capable of
4767  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
4768 , DocBook, and plaintext.
4769 \end_layout
4770
4771 \begin_layout Standard
4772 As of this writing, XHTML output remains under development and should probably
4773  be regarded as 
4774 \begin_inset Quotes eld
4775 \end_inset
4776
4777 experimental
4778 \begin_inset Quotes erd
4779 \end_inset
4780
4781 .
4782 \begin_inset Foot
4783 status collapsed
4784
4785 \begin_layout Plain Layout
4786 The file 
4787 \begin_inset Flex Code
4788 status collapsed
4789
4790 \begin_layout Plain Layout
4791 development/HTML.notes
4792 \end_layout
4793
4794 \end_inset
4795
4796 , which can be found in the \SpecialChar LyX
4797  source tree or 
4798 \begin_inset CommandInset href
4799 LatexCommand href
4800 name "accessed online"
4801 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
4802
4803 \end_inset
4804
4805 , usually contains up-to-date information about the state of XHTML output.
4806  See also the list of XHTML bugs on 
4807 \begin_inset CommandInset href
4808 LatexCommand href
4809 name "the bug tracker"
4810 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"
4811
4812 \end_inset
4813
4814 .
4815 \end_layout
4816
4817 \end_inset
4818
4819  Still, the developers have chosen this approach because it has several
4820  potential advantages over the other two.
4821 \end_layout
4822
4823 \begin_layout Standard
4824 These advantages are primarily due to the fact that the XHTML output routines,
4825  since they are part of \SpecialChar LyX
4826 , know everything \SpecialChar LyX
4827  knows about the document being
4828  exported.
4829 \begin_inset Foot
4830 status collapsed
4831
4832 \begin_layout Plain Layout
4833 Another advantage is that, since these routines are internal to \SpecialChar LyX
4834 , they are
4835  immune to changes in \SpecialChar LyX
4836 's file format, or to changes in the semantics of
4837  existing insets.
4838 \end_layout
4839
4840 \end_inset
4841
4842  So they know about the table of contents (as displayed in the outline),
4843  about the counters associated with different paragraph styles, and about
4844  user-defined styles.
4845  The XHTML output routines know what \SpecialChar LyX
4846  knows about internationalization,
4847  too, so they will output 
4848 \begin_inset Quotes eld
4849 \end_inset
4850
4851 Chapter 1
4852 \begin_inset Quotes erd
4853 \end_inset
4854
4855  or 
4856 \begin_inset Quotes eld
4857 \end_inset
4858
4859
4860 \lang ngerman
4861 Kapitel
4862 \lang english
4863  1
4864 \begin_inset Quotes erd
4865 \end_inset
4866
4867 , depending upon the language in effect at the time.
4868  
4869 \end_layout
4870
4871 \begin_layout Standard
4872 Quite generally, the output routines know what \SpecialChar LyX
4873  knows about document layout,
4874  that is, about how the document is to be rendered on screen.
4875  We use this information when we output the document as XHTML.
4876  In particular, \SpecialChar LyX
4877  
4878 \emph on
4879 automatically
4880 \emph default
4881  generates CSS style information corresponding to the layout information
4882  it uses to render the document on screen: if section headings are supposed
4883  to be sans-serif and bold as seen in \SpecialChar LyX
4884 , then (by default) they will be sans-seri
4885 f and bold when viewed in a web browser, too.
4886  And this is true not just for pre-defined styles, like Section, but for
4887  any style, including user-defined styles.
4888  Indeed, the XHTML output routines make no distinction between user-defined
4889  paragraph and character styles and \SpecialChar LyX
4890 's own pre-defined styles: in each case,
4891  everything \SpecialChar LyX
4892  knows about the styles is contained in the layout files.
4893  And much the same is true as regards pre-defined textual insets, such as
4894  footnotes, and various custom insets.
4895  
4896 \end_layout
4897
4898 \begin_layout Standard
4899 The result is that XHTML output can be customized and extended in exactly
4900  the same way \SpecialChar LaTeX
4901  output can be customized and extended: through layout files
4902  and modules.
4903  See chapter five of the 
4904 \emph on
4905 Customization 
4906 \emph default
4907 manual for the details.
4908 \end_layout
4909
4910 \begin_layout Standard
4911 The remainder of this chapter contains more detailed information on XHTML
4912  output, its limitations, and ways to work around those limitations.
4913 \end_layout
4914
4915 \begin_layout Section
4916 Math Output in XHTML
4917 \end_layout
4918
4919 \begin_layout Standard
4920 \SpecialChar LyX
4921  offers four choices for how math is rendered.
4922  These have various advantages and disadvantages:
4923 \end_layout
4924
4925 \begin_layout Itemize
4926 MathML
4927 \begin_inset Newline newline
4928 \end_inset
4929
4930 MathML is a dialect of XML designed specifically for mathematics on the
4931  web, and it typically renders very well in browsers that support it.
4932  The disadvantage is that not all browsers support MathML, and support is
4933  not complete even in the Gecko-based browsers, such as Firefox.
4934 \begin_inset Newline newline
4935 \end_inset
4936
4937 If \SpecialChar LyX
4938  is unable to render a formula as MathML—for example, if the formula
4939  uses the 
4940 \begin_inset Flex Code
4941 status collapsed
4942
4943 \begin_layout Plain Layout
4944 xymatrix
4945 \end_layout
4946
4947 \end_inset
4948
4949  package or ERT—then it will instead output the formula as an image.
4950  
4951 \end_layout
4952
4953 \begin_layout Itemize
4954 HTML
4955 \begin_inset Newline newline
4956 \end_inset
4957
4958 As mentioned above, 
4959 \begin_inset Flex Code
4960 status collapsed
4961
4962 \begin_layout Plain Layout
4963 elyxer
4964 \end_layout
4965
4966 \end_inset
4967
4968  outputs math as HTML, styled by CSS.
4969 \begin_inset Foot
4970 status collapsed
4971
4972 \begin_layout Plain Layout
4973 \SpecialChar LyX
4974  has borrowed some of the CSS for its HTML output from 
4975 \begin_inset Flex Code
4976 status collapsed
4977
4978 \begin_layout Plain Layout
4979 elyxer
4980 \end_layout
4981
4982 \end_inset
4983
4984 .
4985 \end_layout
4986
4987 \end_inset
4988
4989  For simple formulae, this can work quite well, though with more complicated
4990  formulae it tends to break down.
4991  Still, this method has the advantage that it is very widely supported and
4992  so it may be appropriate for documents that contain only a little, fairly
4993  simple math.
4994 \begin_inset Newline newline
4995 \end_inset
4996
4997 If Lyx is unable to render a formula as HTML—for example, if the formula
4998  uses the 
4999 \begin_inset Flex Code
5000 status collapsed
5001
5002 \begin_layout Plain Layout
5003 xymatrix
5004 \end_layout
5005
5006 \end_inset
5007
5008  package or ERT—then it will instead output the formula as an image.
5009  
5010 \end_layout
5011
5012 \begin_layout Itemize
5013 Images
5014 \begin_inset Newline newline
5015 \end_inset
5016
5017 Like 
5018 \begin_inset Flex Code
5019 status collapsed
5020
5021 \begin_layout Plain Layout
5022 htlatex
5023 \end_layout
5024
5025 \end_inset
5026
5027 , \SpecialChar LyX
5028  will output formulae as images, the very same images, in fact, that are
5029  used for instant preview.
5030 \begin_inset Foot
5031 status collapsed
5032
5033 \begin_layout Plain Layout
5034 Instant preview does 
5035 \emph on
5036 not 
5037 \emph default
5038 have to be on for images to be output, however.
5039 \end_layout
5040
5041 \end_inset
5042
5043  The advantage to this method is that the images are simply generated by
5044  \SpecialChar LaTeX
5045 , so they are very accurate.
5046  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5047  so they do not scale terribly well, and one cannot copy them, etc.
5048  (As of this writing, there are also problems about equation numbering.
5049  See 
5050 \begin_inset CommandInset href
5051 LatexCommand href
5052 name "bug 6894"
5053 target "http://www.lyx.org/trac/ticket/6894"
5054
5055 \end_inset
5056
5057 .)
5058 \begin_inset Newline newline
5059 \end_inset
5060
5061 The size of the images can be controlled by setting the 
5062 \begin_inset Quotes eld
5063 \end_inset
5064
5065 Math Images Scaling
5066 \begin_inset Quotes erd
5067 \end_inset
5068
5069  parameter under 
5070 \begin_inset Flex MenuItem
5071 status collapsed
5072
5073 \begin_layout Plain Layout
5074 Document\SpecialChar menuseparator
5075 Settings\SpecialChar menuseparator
5076 Output
5077 \end_layout
5078
5079 \end_inset
5080
5081 .
5082 \begin_inset Foot
5083 status collapsed
5084
5085 \begin_layout Plain Layout
5086 For those who want to know, this controls the resolution of the image in
5087  dots per inch and is based upon a default of 75 dpi.
5088 \end_layout
5089
5090 \end_inset
5091
5092
5093 \begin_inset Newline newline
5094 \end_inset
5095
5096 If \SpecialChar LyX
5097  for some reason fails to create an image for a formula (e.g., if a required
5098  \SpecialChar LaTeX
5099  package is not installed), then it will fall back to outputing the raw
5100  \SpecialChar LaTeX
5101 .
5102 \end_layout
5103
5104 \begin_layout Itemize
5105 \SpecialChar LaTeX
5106
5107 \begin_inset Newline newline
5108 \end_inset
5109
5110 Finally, \SpecialChar LyX
5111  will happily output math as \SpecialChar LaTeX
5112 .
5113  As well as being the output of last resort, this method can be used with
5114  such tools as 
5115 \begin_inset CommandInset href
5116 LatexCommand href
5117 name "jsMath"
5118 target "http://www.math.union.edu/~dpvc/jsMath/"
5119
5120 \end_inset
5121
5122 , which uses JavaScript to render \SpecialChar LaTeX
5123  embedded in HTML documents.
5124  \SpecialChar LyX
5125  wraps the \SpecialChar LaTeX
5126  in either a 
5127 \begin_inset Flex Code
5128 status collapsed
5129
5130 \begin_layout Plain Layout
5131 span
5132 \end_layout
5133
5134 \end_inset
5135
5136  (for inline formulas) or 
5137 \begin_inset Flex Code
5138 status collapsed
5139
5140 \begin_layout Plain Layout
5141 div
5142 \end_layout
5143
5144 \end_inset
5145
5146  (for displayed formulas) with 
5147 \begin_inset Flex Code
5148 status collapsed
5149
5150 \begin_layout Plain Layout
5151 class='math'
5152 \end_layout
5153
5154 \end_inset
5155
5156 , as is required for jsMath.
5157 \end_layout
5158
5159 \begin_layout Standard
5160 One of these output methods must be selected under 
5161 \begin_inset Flex MenuItem
5162 status collapsed
5163
5164 \begin_layout Plain Layout
5165 Document\SpecialChar menuseparator
5166 Settings\SpecialChar menuseparator
5167 Output
5168 \end_layout
5169
5170 \end_inset
5171
5172 .
5173  By default, \SpecialChar LyX
5174  outputs MathML.
5175  This is a document-wide setting, therefore.
5176 \end_layout
5177
5178 \begin_layout Standard
5179 Eventually, \SpecialChar LyX
5180  will offer the user the option to select an alternate output
5181  method for a particular inset, say, one that isn't being rendered very
5182  well by MathML.
5183 \begin_inset Foot
5184 status collapsed
5185
5186 \begin_layout Plain Layout
5187 That said, since \SpecialChar LyX
5188  falls back to images if the inset contains ERT, then one
5189  can force output as an image by putting some harmless ERT into the math,
5190  for example: 
5191 \begin_inset Formula $a=b\relax$
5192 \end_inset
5193
5194 .
5195 \end_layout
5196
5197 \end_inset
5198
5199
5200 \end_layout
5201
5202 \begin_layout Section
5203 Bibliography and Citations
5204 \end_layout
5205
5206 \begin_layout Standard
5207 XHTML output fully supports bibliographies and citations.
5208  
5209 \end_layout
5210
5211 \begin_layout Standard
5212 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5213 's on-screen
5214  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5215 , though
5216  better.
5217  If you are using numerical citations, then \SpecialChar LyX
5218  will output numerical labels,
5219  such as [1] or [17], rather than simply showing the citation key in square
5220  brackets, as it does on-screen.
5221  If you are using author-year citations, then \SpecialChar LyX
5222  will add lowercase letters
5223  to the years, just as Bib\SpecialChar TeX
5224  does, if it finds more than one citation for
5225  a given author-year combination.
5226  The labels will be printed with the bibliography entries.
5227  Note that there is, at present, no way to customize the appearance of the
5228  labels, for example, to choose between square brackets and parentheses.
5229 \end_layout
5230
5231 \begin_layout Standard
5232 Bibliography output is handled by the same machinery that handles the presentati
5233 on of reference information in the citation dialog, so you will see in the
5234  XHTML output pretty much what you would see if you were to look at a given
5235  entry in the citation dialog.
5236  The formatting can be customized in your layout file or, preferably, in
5237  a module.
5238  See the 
5239 \emph on
5240 Customization
5241 \emph default
5242  manual for the details.
5243 \end_layout
5244
5245 \begin_layout Standard
5246 The main defect at present is that cross-referenced information is printed
5247  with every entry with which it is associated.
5248  So you can see things like this:
5249 \end_layout
5250
5251 \begin_layout Quote
5252 Jason Stanley, 
5253 \begin_inset Quotes eld
5254 \end_inset
5255
5256 Context and Logical Form
5257 \begin_inset Quotes erd
5258 \end_inset
5259
5260 , in 
5261 \emph on
5262 Language in Context: Selected Essays
5263 \emph default
5264  (Oxford: Oxford University Press, 2007), pp.
5265  30–68.
5266 \end_layout
5267
5268 \begin_layout Quote
5269 Jason Stanley, 
5270 \begin_inset Quotes eld
5271 \end_inset
5272
5273 Semantics in Context
5274 \begin_inset Quotes erd
5275 \end_inset
5276
5277 , in 
5278 \emph on
5279 Language in Context: Selected Essays
5280 \emph default
5281  (Oxford: Oxford University Press, 2007), pp.
5282  201–30.
5283 \end_layout
5284
5285 \begin_layout Standard
5286 This should be fixed before long.
5287 \end_layout
5288
5289 \begin_layout Standard
5290 There is no support at present for sectioned bibliographies.
5291  If you have multiple bibliographies, then \SpecialChar LyX
5292  will print the same bibliography
5293  over and over.
5294 \end_layout
5295
5296 \begin_layout Section
5297 Indexes
5298 \end_layout
5299
5300 \begin_layout Standard
5301 \SpecialChar LyX
5302  will happily export indexes as XHTML, but with certain limitations at the
5303  moment.
5304 \end_layout
5305
5306 \begin_layout Standard
5307 Index export will be most reliable when you do not attempt to use the fancy
5308  constructs that are described in the section on indexes in the 
5309 \emph on
5310 User's Guide
5311 \emph default
5312 .
5313 \begin_inset Foot
5314 status collapsed
5315
5316 \begin_layout Plain Layout
5317 The main issue here is that \SpecialChar LyX
5318  itself does not really handle these.
5319  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5320 .
5321 \end_layout
5322
5323 \end_inset
5324
5325  We'll describe how they are handled using the subsection headings from
5326  that section.
5327 \end_layout
5328
5329 \begin_layout Itemize
5330 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5331  makes an effort to support these,
5332  but the entries must be separated by 
5333 \begin_inset Quotes eld
5334 \end_inset
5335
5336  ! 
5337 \begin_inset Quotes erd
5338 \end_inset
5339
5340 , that is, there must be spaces around the exclamation point.
5341  This is because it is otherwise too difficult to check for escaped exclamation
5342  points, ones in math, and so forth.
5343 \end_layout
5344
5345 \begin_layout Itemize
5346 Page Ranges: There is no support at all for page ranges, since these make
5347  no sense with XHMTL.
5348  Instead, you will just get two index entries, one at either end.
5349 \end_layout
5350
5351 \begin_layout Itemize
5352 Cross-referencing: There is no support for cross-referencing.
5353  If \SpecialChar LyX
5354  finds an entry containing the 
5355 \begin_inset Quotes eld
5356 \end_inset
5357
5358 |see\SpecialChar ldots
5359
5360 \begin_inset Quotes erd
5361 \end_inset
5362
5363  construct, it is just dropped, and the rest is treated as an ordinary index
5364  entry.
5365 \end_layout
5366
5367 \begin_layout Itemize
5368 Index Entry Order: \SpecialChar LyX
5369  does support attempts to fix the sorting order.
5370  It will take what is before the first `@' it finds and use that for sorting,
5371  taking what follows the first `@' to be the actual entry.
5372  At present, \SpecialChar LyX
5373  does not check for escaped `@', so do not try to index email
5374  addresses.
5375 \end_layout
5376
5377 \begin_layout Itemize
5378 Index Entry Layout: You can format entries by using the text style dialog,
5379  or by using any other method available within \SpecialChar LyX
5380  itself.
5381  There is no support for constructs like: 
5382 \begin_inset Quotes eld
5383 \end_inset
5384
5385 entry|textbf
5386 \begin_inset Quotes erd
5387 \end_inset
5388
5389 .
5390  Indeed, if \SpecialChar LyX
5391  finds a pipe symbol, `|', in an entry, it will delete it and
5392  everything that follows it.
5393 \end_layout
5394
5395 \begin_layout Itemize
5396 Multiple Indexes: There is no support for multiple indexes.
5397  Rather, all index entries will be printed as one large index.
5398  To avoid our printing several versions of the index, we print only the
5399  main index, so make sure you have one.
5400 \end_layout
5401
5402 \begin_layout Section
5403 Nomenclature and Glossary
5404 \end_layout
5405
5406 \begin_layout Standard
5407 There is at present no support for glossaries.
5408  Adding it would be fairly trivial, and welcome.
5409 \end_layout
5410
5411 \begin_layout Chapter
5412 The \SpecialChar LyX
5413  Server
5414 \end_layout
5415
5416 \begin_layout Section
5417 Introduction
5418 \end_layout
5419
5420 \begin_layout Standard
5421 The `\SpecialChar LyX
5422  server' allows other programs to talk to \SpecialChar LyX
5423 , invoke \SpecialChar LyX
5424  commands, and retrieve
5425  information about the \SpecialChar LyX
5426  internal state.
5427  This is only intended for advanced users, but they should find it useful.
5428  It is by writing to the \SpecialChar LyX
5429  server, for example, that bibliography managers,
5430  such as JabRef, are able to 
5431 \begin_inset Quotes eld
5432 \end_inset
5433
5434 push
5435 \begin_inset Quotes erd
5436 \end_inset
5437
5438  citations to \SpecialChar LyX
5439 .
5440 \end_layout
5441
5442 \begin_layout Section
5443 Starting the \SpecialChar LyX
5444  Server
5445 \end_layout
5446
5447 \begin_layout Standard
5448 The \SpecialChar LyX
5449  server works through the use of a pair of named pipes.
5450  These are usually located in 
5451 \begin_inset Flex Code
5452 status collapsed
5453
5454 \begin_layout Plain Layout
5455 UserDir
5456 \end_layout
5457
5458 \end_inset
5459
5460 , (except on Windows, where 
5461 \emph on
5462 local
5463 \emph default
5464  named pipes are special objects located in 
5465 \begin_inset Flex Code
5466 status collapsed
5467
5468 \begin_layout Plain Layout
5469
5470 \backslash
5471
5472 \backslash
5473 .
5474 \backslash
5475 pipe
5476 \end_layout
5477
5478 \end_inset
5479
5480 ) and have the names 
5481 \begin_inset Quotes eld
5482 \end_inset
5483
5484
5485 \begin_inset Flex Code
5486 status collapsed
5487
5488 \begin_layout Plain Layout
5489 lyxpipe.in
5490 \end_layout
5491
5492 \end_inset
5493
5494
5495 \begin_inset Quotes erd
5496 \end_inset
5497
5498  and 
5499 \begin_inset Quotes eld
5500 \end_inset
5501
5502
5503 \begin_inset Flex Code
5504 status collapsed
5505
5506 \begin_layout Plain Layout
5507 lyxpipe.out
5508 \end_layout
5509
5510 \end_inset
5511
5512
5513 \begin_inset Quotes erd
5514 \end_inset
5515
5516 .
5517  External programs write into 
5518 \begin_inset Flex Code
5519 status collapsed
5520
5521 \begin_layout Plain Layout
5522 lyxpipe.in
5523 \end_layout
5524
5525 \end_inset
5526
5527  and read back data from 
5528 \begin_inset Flex Code
5529 status collapsed
5530
5531 \begin_layout Plain Layout
5532 lyxpipe.out
5533 \end_layout
5534
5535 \end_inset
5536
5537 .
5538  The stem of the pipe names can be defined in the 
5539 \begin_inset Flex MenuItem
5540 status collapsed
5541
5542 \begin_layout Plain Layout
5543 Tools\SpecialChar menuseparator
5544 Preferences
5545 \end_layout
5546
5547 \end_inset
5548
5549  dialog, for example 
5550 \begin_inset Flex Code
5551 status collapsed
5552
5553 \begin_layout Plain Layout
5554 "/home/myhome/lyxpipe"
5555 \end_layout
5556
5557 \end_inset
5558
5559 , or 
5560 \begin_inset Flex Code
5561 status collapsed
5562
5563 \begin_layout Plain Layout
5564 "
5565 \backslash
5566
5567 \backslash
5568 .
5569 \backslash
5570 pipe
5571 \backslash
5572 lyxpipe"
5573 \end_layout
5574
5575 \end_inset
5576
5577  on Windows (
5578 \change_deleted 711066561 1405258697
5579 but
5580 \change_inserted 711066561 1405258701
5581 where
5582 \change_unchanged
5583  any working path 
5584 \change_inserted 711066561 1405258613
5585 instead of lyxpipe 
5586 \change_unchanged
5587 can be used
5588 \change_inserted 711066561 1405258962
5589 , for example 
5590 \begin_inset Flex Code
5591 status collapsed
5592
5593 \begin_layout Plain Layout
5594
5595 \change_inserted 711066561 1405258868
5596 "
5597 \backslash
5598
5599 \backslash
5600 .
5601 \backslash
5602 pipe
5603 \backslash
5604 my
5605 \backslash
5606 lyx
5607 \backslash
5608 pipe"
5609 \change_unchanged
5610
5611 \end_layout
5612
5613 \end_inset
5614
5615  would also work
5616 \change_unchanged
5617 ).
5618  You 
5619 \emph on
5620 must
5621 \emph default
5622  configure this manually in order for the server to start.
5623 \end_layout
5624
5625 \begin_layout Standard
5626 \SpecialChar LyX
5627  will add the '
5628 \begin_inset Flex Code
5629 status collapsed
5630
5631 \begin_layout Plain Layout
5632 .in
5633 \end_layout
5634
5635 \end_inset
5636
5637 ' and '
5638 \begin_inset Flex Code
5639 status collapsed
5640
5641 \begin_layout Plain Layout
5642 .out
5643 \end_layout
5644
5645 \end_inset
5646
5647 ' to create the pipes.
5648  If one of the pipes already exists, \SpecialChar LyX
5649  will assume that another \SpecialChar LyX
5650  process
5651  is already running and will not start the server.
5652  On POSIX (Unix like) systems, if for some other reason, an unused 
5653 \begin_inset Quotes eld
5654 \end_inset
5655
5656 stale
5657 \begin_inset Quotes erd
5658 \end_inset
5659
5660  pipe is left in existence when \SpecialChar LyX
5661  closes, then \SpecialChar LyX
5662  will try to delete it.
5663  If this fails for some reason, you will need to delete the pipes manually
5664  and then restart \SpecialChar LyX
5665 .
5666  On Windows, pipes are deleted by the OS on program termination or crash,
5667  so 
5668 \begin_inset Quotes eld
5669 \end_inset
5670
5671 stale
5672 \begin_inset Quotes erd
5673 \end_inset
5674
5675  pipes should not be possible.
5676 \end_layout
5677
5678 \begin_layout Standard
5679 To have several \SpecialChar LyX
5680  processes with servers at the same time, you have to use
5681  different configurations, perhaps by using separate user directories, each
5682  with its own 
5683 \begin_inset Flex Code
5684 status collapsed
5685
5686 \begin_layout Plain Layout
5687 preferences
5688 \end_layout
5689
5690 \end_inset
5691
5692  file, for each process.
5693 \end_layout
5694
5695 \begin_layout Standard
5696 If you are developing a client program, you might find it useful to enable
5697  debugging information from the \SpecialChar LyX
5698  server.
5699  Do this by starting \SpecialChar LyX
5700  as 
5701 \begin_inset Flex Code
5702 status collapsed
5703
5704 \begin_layout Plain Layout
5705 lyx -dbg lyxserver
5706 \end_layout
5707
5708 \end_inset
5709
5710 .
5711 \end_layout
5712
5713 \begin_layout Standard
5714 You can find a complete example client written in C
5715 \change_inserted 711066561 1405258366
5716 ++
5717 \change_unchanged
5718  in the source distribution as 
5719 \begin_inset Flex Code
5720 status collapsed
5721
5722 \begin_layout Plain Layout
5723 development/lyxserver/server_monitor.c
5724 \change_inserted 711066561 1405258386
5725 pp
5726 \change_unchanged
5727
5728 \end_layout
5729
5730 \end_inset
5731
5732 .
5733 \end_layout
5734
5735 \begin_layout Standard
5736 Another useful tool is the command-line based client
5737 \change_inserted 711066561 1405258403
5738  
5739 \change_unchanged
5740 found in 
5741 \begin_inset Flex Code
5742 status collapsed
5743
5744 \begin_layout Plain Layout
5745 src/client/lyxclient
5746 \end_layout
5747
5748 \end_inset
5749
5750 .
5751 \end_layout
5752
5753 \begin_layout Section
5754 Normal communication
5755 \end_layout
5756
5757 \begin_layout Standard
5758 To issue a \SpecialChar LyX
5759  call, the client writes a line of ASCII text into the input
5760  pipe.
5761  This line has the following format:
5762 \end_layout
5763
5764 \begin_layout Quote
5765 LYXCMD:
5766 \emph on
5767 clientname
5768 \emph default
5769 :
5770 \emph on
5771 function
5772 \emph default
5773 :
5774 \emph on
5775 argument
5776 \end_layout
5777
5778 \begin_layout Description
5779 clientname is a name that the client can choose arbitrarily.
5780  Its only use is that \SpecialChar LyX
5781  will echo it if it sends an answer—so a client can
5782  dispatch results from different requesters.
5783 \end_layout
5784
5785 \begin_layout Description
5786 function is the function you want \SpecialChar LyX
5787  to perform.
5788  It is the same as the commands you'd use in the minibuffer.
5789 \end_layout
5790
5791 \begin_layout Description
5792 argument is an optional argument which is meaningful only to some functions
5793  (for instance, the 
5794 \begin_inset Quotes eld
5795 \end_inset
5796
5797 self-insert
5798 \begin_inset Quotes erd
5799 \end_inset
5800
5801  LFUN will insert the argument as text at the cursor position).
5802 \end_layout
5803
5804 \begin_layout Standard
5805 The answer from \SpecialChar LyX
5806  will arrive in the output pipe and be of the form
5807 \end_layout
5808
5809 \begin_layout Quote
5810 INFO:
5811 \emph on
5812 clientname
5813 \emph default
5814 :
5815 \emph on
5816 function
5817 \emph default
5818 :
5819 \emph on
5820 data
5821 \end_layout
5822
5823 \begin_layout Standard
5824 where 
5825 \emph on
5826 clientname
5827 \emph default
5828  and 
5829 \emph on
5830 function
5831 \emph default
5832  are just echoed from the command request, while 
5833 \emph on
5834 data
5835 \emph default
5836  is more or less useful information filled according to how the command
5837  execution worked out.
5838  Some commands, such as 
5839 \begin_inset Quotes eld
5840 \end_inset
5841
5842 font-state
5843 \begin_inset Quotes erd
5844 \end_inset
5845
5846 , will return information about the internal state of \SpecialChar LyX
5847 , while other will
5848  return an empty data-response.
5849  This means that the command execution went fine.
5850 \end_layout
5851
5852 \begin_layout Standard
5853 In case of errors, the response from \SpecialChar LyX
5854  will have this form
5855 \end_layout
5856
5857 \begin_layout Quote
5858 ERROR:
5859 \emph on
5860 clientname
5861 \emph default
5862 :
5863 \emph on
5864 function
5865 \emph default
5866 :
5867 \emph on
5868 error message
5869 \end_layout
5870
5871 \begin_layout Standard
5872 where the 
5873 \emph on
5874 error message
5875 \emph default
5876  should contain an explanation of why the command failed.
5877 \end_layout
5878
5879 \begin_layout Standard
5880 Examples:
5881 \end_layout
5882
5883 \begin_layout LyX-Code
5884 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
5885 \begin_inset Newline newline
5886 \end_inset
5887
5888 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
5889 \begin_inset Newline newline
5890 \end_inset
5891
5892 read a <~/.lyxpipe.out
5893 \begin_inset Newline newline
5894 \end_inset
5895
5896 echo $a
5897 \end_layout
5898
5899 \begin_layout Subsection
5900 AppleScript (Mac OS X)
5901 \end_layout
5902
5903 \begin_layout Standard
5904 Since \SpecialChar LyX
5905  2.1, \SpecialChar LyX
5906  supports basic interactions with AppleScript for normal communicatio
5907 n through the command run.
5908  This command takes a direct argument (the 
5909 \series bold
5910 function
5911 \series default
5912  to perform) and an optional argument.
5913  It either returns the output of the function or triggers an error with
5914  the error message and code.
5915 \end_layout
5916
5917 \begin_layout Standard
5918 Example:
5919 \end_layout
5920
5921 \begin_layout LyX-Code
5922 tell application "\SpecialChar LyX
5923 "
5924 \end_layout
5925
5926 \begin_layout LyX-Code
5927   try
5928 \end_layout
5929
5930 \begin_layout LyX-Code
5931     -- Stores the current file name into f
5932 \end_layout
5933
5934 \begin_layout LyX-Code
5935     set f to (run "server-get-filename" with argument "")
5936 \end_layout
5937
5938 \begin_layout LyX-Code
5939     on error the error_message number the error_number
5940 \end_layout
5941
5942 \begin_layout LyX-Code
5943       display dialog "Error: " & the error_number & ".
5944  " ¬
5945 \end_layout
5946
5947 \begin_layout LyX-Code
5948               & the error_message buttons {"OK"} default button 1
5949 \end_layout
5950
5951 \begin_layout LyX-Code
5952   end try
5953 \end_layout
5954
5955 \begin_layout LyX-Code
5956 end tell
5957 \end_layout
5958
5959 \begin_layout Section
5960 Notification
5961 \end_layout
5962
5963 \begin_layout Standard
5964 \SpecialChar LyX
5965  can notify clients of events going on asynchronously.
5966  Currently it will only do this if the user binds a key sequence with the
5967  function 
5968 \begin_inset Quotes eld
5969 \end_inset
5970
5971 notify
5972 \begin_inset Quotes erd
5973 \end_inset
5974
5975 .
5976  The format of the string \SpecialChar LyX
5977  sends is as follows:
5978 \end_layout
5979
5980 \begin_layout Quote
5981 \begin_inset Flex Code
5982 status collapsed
5983
5984 \begin_layout Plain Layout
5985 NOTIFY:
5986 \end_layout
5987
5988 \end_inset
5989
5990
5991 \emph on
5992 key-sequence
5993 \end_layout
5994
5995 \begin_layout Standard
5996 where 
5997 \emph on
5998 key-sequence
5999 \emph default
6000  is the printed representation of the key sequence that was actually typed
6001  by the user.
6002 \end_layout
6003
6004 \begin_layout Standard
6005 This mechanism can be used to extend \SpecialChar LyX
6006 's command set and implement macros.
6007  Bind some key sequence to 
6008 \begin_inset Quotes eld
6009 \end_inset
6010
6011 notify
6012 \begin_inset Quotes erd
6013 \end_inset
6014
6015 .
6016  Then start a client that listens on the output pipe, dispatches the command
6017  according to the sequence, and starts a function that may use \SpecialChar LyX
6018  calls and
6019  \SpecialChar LyX
6020  requests to issue a command or a series of commands to \SpecialChar LyX
6021 .
6022 \end_layout
6023
6024 \begin_layout Section
6025 The simple \SpecialChar LyX
6026  Server Protocol
6027 \end_layout
6028
6029 \begin_layout Standard
6030 \SpecialChar LyX
6031  implements a simple protocol that can be used for session management.
6032  All messages are of the form
6033 \end_layout
6034
6035 \begin_layout Quote
6036 LYXSRV:
6037 \emph on
6038 clientname
6039 \emph default
6040 :
6041 \emph on
6042 protocol message
6043 \end_layout
6044
6045 \begin_layout Standard
6046 where 
6047 \emph on
6048 protocol message
6049 \emph default
6050  can be 
6051 \begin_inset Quotes eld
6052 \end_inset
6053
6054 hello
6055 \begin_inset Quotes erd
6056 \end_inset
6057
6058  or 
6059 \begin_inset Quotes eld
6060 \end_inset
6061
6062 bye
6063 \begin_inset Quotes erd
6064 \end_inset
6065
6066 .
6067  If 
6068 \begin_inset Quotes eld
6069 \end_inset
6070
6071 hello
6072 \begin_inset Quotes erd
6073 \end_inset
6074
6075  is received from a client, \SpecialChar LyX
6076  will report back to inform the client that
6077  it's listening to it's messages, while 
6078 \begin_inset Quotes eld
6079 \end_inset
6080
6081 bye
6082 \begin_inset Quotes erd
6083 \end_inset
6084
6085  sent from \SpecialChar LyX
6086  will inform clients that \SpecialChar LyX
6087  is closing.
6088 \end_layout
6089
6090 \begin_layout Section
6091 Reverse DVI/PDF search
6092 \end_layout
6093
6094 \begin_layout Standard
6095 Some DVI/PDF viewers
6096 \begin_inset Foot
6097 status collapsed
6098
6099 \begin_layout Plain Layout
6100 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux
6101 \change_inserted 711066561 1405273809
6102 , Qpdfview on Unix
6103 \change_unchanged
6104 , Skim on Mac OSX and SumatraPDF on Windows.
6105 \end_layout
6106
6107 \end_inset
6108
6109  provide 
6110 \emph on
6111 reverse search
6112 \emph default
6113  facility (also called 
6114 \emph on
6115 inverse search
6116 \emph default
6117 ).
6118  This means that you can tell \SpecialChar LyX
6119  to put the cursor to a specific line in the
6120  document by clicking at the respective position in the DVI/PDF output.
6121  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6122 .
6123  This is done via the \SpecialChar LyX
6124  server either by using the named pipe (
6125 \emph on
6126 lyxpipe
6127 \emph default
6128 ), or the UNIX domain socket (
6129 \emph on
6130 lyxsocket
6131 \emph default
6132 ) that \SpecialChar LyX
6133  creates in its temporary directory (this is the way the 
6134 \begin_inset Flex Code
6135 status collapsed
6136
6137 \begin_layout Plain Layout
6138 lyxclient
6139 \end_layout
6140
6141 \end_inset
6142
6143  program communicates with \SpecialChar LyX
6144 ).
6145  In some cases, you need a helper script that mediates between the viewer
6146  and \SpecialChar LyX
6147 , in others, the viewer can communicate with \SpecialChar LyX
6148  directly.
6149  This depends on the selected viewer and on your operating system.
6150  The same applies to the way viewers need to be configured and the way the
6151  reverse search is actually performed.
6152  In what follows, we will thus describe how to setup reverse search for
6153  specific viewers.
6154  Before we turn to this, though, we will explain what needs to be done generally
6155  to enable reverse search in the DVI/PDF output.
6156 \end_layout
6157
6158 \begin_layout Subsection
6159 Automatic setup
6160 \begin_inset CommandInset label
6161 LatexCommand label
6162 name "subsec:rev-search"
6163
6164 \end_inset
6165
6166
6167 \end_layout
6168
6169 \begin_layout Standard
6170 In most cases \SpecialChar LyX
6171  will do the work for you by enabling the option 
6172 \begin_inset Flex MenuItem
6173 status collapsed
6174
6175 \begin_layout Plain Layout
6176 Synchronize with Output
6177 \end_layout
6178
6179 \end_inset
6180
6181  in the menu 
6182 \begin_inset Flex MenuItem
6183 status collapsed
6184
6185 \begin_layout Plain Layout
6186 Document\SpecialChar menuseparator
6187 Settings\SpecialChar menuseparator
6188 Output
6189 \end_layout
6190
6191 \end_inset
6192
6193 .
6194  In such a case \SpecialChar LyX
6195  will automatically insert the necessary Sync\SpecialChar TeX
6196  macro (for
6197  PDF) or load the srcltx package (for DVI) respectively.
6198  This option can be easily reached also on 
6199 \begin_inset Flex Code
6200 status collapsed
6201
6202 \begin_layout Plain Layout
6203 View/Update
6204 \end_layout
6205
6206 \end_inset
6207
6208  Toolbar.
6209 \end_layout
6210
6211 \begin_layout Standard
6212 If you need a different setting, you can select or input a custom macro
6213  from the drop down box just below 
6214 \begin_inset Flex MenuItem
6215 status collapsed
6216
6217 \begin_layout Plain Layout
6218 Document\SpecialChar menuseparator
6219 Settings\SpecialChar menuseparator
6220 Output\SpecialChar menuseparator
6221 Synchronize with Output
6222 \end_layout
6223
6224 \end_inset
6225
6226 .
6227 \end_layout
6228
6229 \begin_layout Standard
6230 Note that the method 
6231 \begin_inset Flex Code
6232 status collapsed
6233
6234 \begin_layout Plain Layout
6235
6236 \backslash
6237 synctex=1
6238 \end_layout
6239
6240 \end_inset
6241
6242  enables gzip compression.
6243  If your viewer does not support it, you should instead use 
6244 \begin_inset Flex Code
6245 status collapsed
6246
6247 \begin_layout Plain Layout
6248
6249 \backslash
6250 synctex=-1
6251 \end_layout
6252
6253 \end_inset
6254
6255 .
6256 \end_layout
6257
6258 \begin_layout Standard
6259 Please a
6260 \change_deleted 711066561 1405259326
6261 ö
6262 \change_inserted 711066561 1405259326
6263 l
6264 \change_unchanged
6265 so note that including the 
6266 \begin_inset Flex Code
6267 status collapsed
6268
6269 \begin_layout Plain Layout
6270 srcltx
6271 \end_layout
6272
6273 \end_inset
6274
6275  package or 
6276 \begin_inset Flex Code
6277 status collapsed
6278
6279 \begin_layout Plain Layout
6280 src-specials
6281 \end_layout
6282
6283 \end_inset
6284
6285  sometimes has an undesired impact on the typesetting.
6286  Thus, you should switch output synchronization off for the final typesetting
6287  if you use the 
6288 \begin_inset Flex Code
6289 status collapsed
6290
6291 \begin_layout Plain Layout
6292 srcltx
6293 \end_layout
6294
6295 \end_inset
6296
6297  package or 
6298 \begin_inset Flex Code
6299 status collapsed
6300
6301 \begin_layout Plain Layout
6302 src-specials
6303 \end_layout
6304
6305 \end_inset
6306
6307 .
6308  
6309 \end_layout
6310
6311 \begin_layout Standard
6312 In case you need some more special settings that are not covered by the
6313  automatic settings, read the next section about how to set up output synchroniz
6314 ation manually.
6315  If the automatic setup suits your needs, you can readily jump to section
6316 \begin_inset space ~
6317 \end_inset
6318
6319
6320 \begin_inset CommandInset ref
6321 LatexCommand ref
6322 reference "subsec:configuring-viewers"
6323
6324 \end_inset
6325
6326 , where the necessary configuration steps in your viewer – needed both with
6327  the automatic and the manual setup – are described.
6328 \end_layout
6329
6330 \begin_layout Subsection
6331 Manual setup
6332 \end_layout
6333
6334 \begin_layout Standard
6335 \SpecialChar LaTeX
6336  provides several different methods for reverse search.
6337  Some are built-in in the 
6338 \begin_inset Flex Code
6339 status collapsed
6340
6341 \begin_layout Plain Layout
6342 latex/pdflatex
6343 \end_layout
6344
6345 \end_inset
6346
6347  program, some are provided by external packages.
6348  Your choice depends on whether your \SpecialChar LaTeX
6349  distribution already provides a given
6350  method (the built-in methods are rather new) and whether your viewer can
6351  cope with it.
6352  The available methods are described in the following.
6353 \end_layout
6354
6355 \begin_layout Subsubsection*
6356 Built-in DVI-search via src-specials (DVI only) 
6357 \end_layout
6358
6359 \begin_layout Standard
6360 This method provides the DVI file with the necessary information for reverse
6361  search.
6362  It is available in \SpecialChar LaTeX
6363  since quite some time (any somewhat recent \SpecialChar LaTeX
6364  distribution
6365  should include it), and it works reliably.
6366  To enable it, change the 
6367 \begin_inset Flex MenuItem
6368 status collapsed
6369
6370 \begin_layout Plain Layout
6371 La
6372 \change_deleted -712698321 1437633234
6373 T
6374 \begin_inset ERT
6375 status collapsed
6376
6377 \begin_layout Plain Layout
6378
6379 {}
6380 \end_layout
6381
6382 \end_inset
6383
6384 eX
6385 \change_inserted -712698321 1437633234
6386
6387 \family sans
6388 TeX
6389 \change_unchanged
6390
6391 \family default
6392  (plain)->DVI
6393 \end_layout
6394
6395 \end_inset
6396
6397  or 
6398 \begin_inset Flex MenuItem
6399 status collapsed
6400
6401 \begin_layout Plain Layout
6402 La
6403 \change_deleted -712698321 1437633251
6404 T
6405 \begin_inset ERT
6406 status collapsed
6407
6408 \begin_layout Plain Layout
6409
6410 {}
6411 \end_layout
6412
6413 \end_inset
6414
6415 eX
6416 \change_inserted -712698321 1437633251
6417
6418 \family sans
6419 TeX
6420 \change_unchanged
6421
6422 \family default
6423  (plain)->DraftDVI
6424 \end_layout
6425
6426 \end_inset
6427
6428  converter in 
6429 \begin_inset Flex MenuItem
6430 status collapsed
6431
6432 \begin_layout Plain Layout
6433 Preferences\SpecialChar menuseparator
6434 File Handling\SpecialChar menuseparator
6435 Converters
6436 \end_layout
6437
6438 \end_inset
6439
6440  to 
6441 \begin_inset Flex Code
6442 status collapsed
6443
6444 \begin_layout Plain Layout
6445 latex -src-specials $$i
6446 \end_layout
6447
6448 \end_inset
6449
6450 .
6451  If this doesn't work, check if your \SpecialChar TeX
6452  engine needs different options (the
6453  syntax might differ in some distributions).
6454 \end_layout
6455
6456 \begin_layout Subsubsection*
6457 External Packages (PDFSync and scrltx) 
6458 \end_layout
6459
6460 \begin_layout Standard
6461 The packages 
6462 \emph on
6463 pdfsync
6464 \emph default
6465  and 
6466 \emph on
6467 scrltx
6468 \emph default
6469  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6470  respectively.
6471  In order to enable it, load the packages in the \SpecialChar LyX
6472  preamble: 
6473 \end_layout
6474
6475 \begin_layout Itemize
6476 \begin_inset Flex Code
6477 status collapsed
6478
6479 \begin_layout Plain Layout
6480
6481 \backslash
6482 usepackage{pdfsync}
6483 \end_layout
6484
6485 \end_inset
6486
6487  for reverse PDF search,
6488 \end_layout
6489
6490 \begin_layout Itemize
6491 \begin_inset Flex Code
6492 status collapsed
6493
6494 \begin_layout Plain Layout
6495
6496 \backslash
6497 usepackage[active]{srcltx}
6498 \end_layout
6499
6500 \end_inset
6501
6502  for reverse DVI search.
6503 \end_layout
6504
6505 \begin_layout Standard
6506 If you want to be able to perform both DVI and PDF reverse searches, you
6507  can also insert in the preamble the following lines
6508 \end_layout
6509
6510 \begin_layout LyX-Code
6511
6512 \backslash
6513 usepackage{ifpdf}
6514 \begin_inset Newline newline
6515 \end_inset
6516
6517
6518 \backslash
6519 ifpdf
6520 \begin_inset Newline newline
6521 \end_inset
6522
6523   
6524 \backslash
6525 usepackage{pdfsync}
6526 \begin_inset Newline newline
6527 \end_inset
6528
6529
6530 \backslash
6531 else
6532 \begin_inset Newline newline
6533 \end_inset
6534
6535   
6536 \backslash
6537 usepackage[active]{srcltx}
6538 \begin_inset Newline newline
6539 \end_inset
6540
6541
6542 \backslash
6543 fi
6544 \end_layout
6545
6546 \begin_layout Standard
6547 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6548  right package will be used.
6549 \end_layout
6550
6551 \begin_layout Standard
6552 Note that PDFSync might affect the output layout of your document.
6553  It is therefore advised to disable PDFsync for final documents.
6554 \end_layout
6555
6556 \begin_layout Subsubsection*
6557 Built-in reverse search via Sync\SpecialChar TeX
6558  (DVI and PDF) 
6559 \end_layout
6560
6561 \begin_layout Standard
6562 Recent versions of 
6563 \begin_inset Flex Code
6564 status collapsed
6565
6566 \begin_layout Plain Layout
6567 (pdf)latex
6568 \end_layout
6569
6570 \end_inset
6571
6572  have built-in support for both PDF and DVI reverse search.
6573  This so-called 
6574 \emph on
6575 Sync\SpecialChar TeX
6576
6577 \emph default
6578  facility is basically the result of the integration of the PDFSync package
6579  to the pdftex program and its merge with the 
6580 \emph on
6581 scr-specials
6582 \emph default
6583  approach.
6584  You need at least \SpecialChar TeX
6585 Live 2008 or a recent Mik\SpecialChar TeX
6586  distribution in order to use
6587  it
6588 \begin_inset Foot
6589 status collapsed
6590
6591 \begin_layout Plain Layout
6592 For some reason, Mik\SpecialChar TeX
6593  does not understand/obey the command \SpecialChar LyX
6594  inserts into
6595  the preamble when you check the "Enable Forward/Reverse Search" button
6596  in the toolbar and does not generate the necessary info.
6597 \end_layout
6598
6599 \begin_layout Plain Layout
6600 The generation of the required info can be forced by changing the converter
6601  "\SpecialChar LaTeX
6602  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
6603  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
6604  the -synctex=1 switch).
6605 \end_layout
6606
6607 \end_inset
6608
6609 .
6610  Also note that only a few PDF viewers (
6611 \change_inserted 711066561 1405273879
6612 Okular and Qpdfview on Unix, 
6613 \change_unchanged
6614 Skim on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
6615  support.
6616 \end_layout
6617
6618 \begin_layout Standard
6619 To enable Sync\SpecialChar TeX
6620  for DVI output, change the 
6621 \begin_inset Flex MenuItem
6622 status collapsed
6623
6624 \begin_layout Plain Layout
6625 La
6626 \change_deleted -712698321 1437633274
6627 T
6628 \begin_inset ERT
6629 status collapsed
6630
6631 \begin_layout Plain Layout
6632
6633 {}
6634 \end_layout
6635
6636 \end_inset
6637
6638 eX
6639 \change_inserted -712698321 1437633274
6640
6641 \family sans
6642 TeX
6643 \change_unchanged
6644
6645 \family default
6646  (plain) -> DVI
6647 \end_layout
6648
6649 \end_inset
6650
6651  or 
6652 \begin_inset Flex MenuItem
6653 status collapsed
6654
6655 \begin_layout Plain Layout
6656 La
6657 \change_deleted -712698321 1437633275
6658 T
6659 \begin_inset ERT
6660 status collapsed
6661
6662 \begin_layout Plain Layout
6663
6664 {}
6665 \end_layout
6666
6667 \end_inset
6668
6669 eX
6670 \change_inserted -712698321 1437633275
6671
6672 \family sans
6673 TeX
6674 \change_unchanged
6675
6676 \family default
6677  (plain) -> DraftDVI
6678 \end_layout
6679
6680 \end_inset
6681
6682  converter in 
6683 \begin_inset Flex MenuItem
6684 status collapsed
6685
6686 \begin_layout Plain Layout
6687 Preferences\SpecialChar menuseparator
6688 File Handling\SpecialChar menuseparator
6689 Converters
6690 \end_layout
6691
6692 \end_inset
6693
6694  to 
6695 \begin_inset Flex Code
6696 status collapsed
6697
6698 \begin_layout Plain Layout
6699 latex -synctex=1 $$i
6700 \end_layout
6701
6702 \end_inset
6703
6704 , and for PDF output, change the 
6705 \begin_inset Flex MenuItem
6706 status collapsed
6707
6708 \begin_layout Plain Layout
6709 La
6710 \change_deleted -712698321 1437633276
6711 T
6712 \begin_inset ERT
6713 status collapsed
6714
6715 \begin_layout Plain Layout
6716
6717 {}
6718 \end_layout
6719
6720 \end_inset
6721
6722 eX
6723 \change_inserted -712698321 1437633276
6724
6725 \family sans
6726 TeX
6727 \change_unchanged
6728
6729 \family default
6730  (pdflatex) -> PDF (pdflatex)
6731 \end_layout
6732
6733 \end_inset
6734
6735  or converter to 
6736 \begin_inset Flex Code
6737 status collapsed
6738
6739 \begin_layout Plain Layout
6740 pdflatex -synctex=1 $$i
6741 \end_layout
6742
6743 \end_inset
6744
6745 .
6746  Check the documentation of your viewer whether the viewer needs to be configure
6747 d for the use with Sync\SpecialChar TeX
6748 .
6749 \begin_inset Foot
6750 status collapsed
6751
6752 \begin_layout Plain Layout
6753 Note that the option 
6754 \begin_inset Flex Code
6755 status collapsed
6756
6757 \begin_layout Plain Layout
6758 -synctex=1
6759 \end_layout
6760
6761 \end_inset
6762
6763  option enables gzip compression.
6764  If your viewer does not support it, you should instead use 
6765 \begin_inset Flex Code
6766 status collapsed
6767
6768 \begin_layout Plain Layout
6769 -synctex=-1
6770 \end_layout
6771
6772 \end_inset
6773
6774 .
6775 \end_layout
6776
6777 \end_inset
6778
6779
6780 \end_layout
6781
6782 \begin_layout Subsection
6783 Configuring and using specific viewers
6784 \begin_inset CommandInset label
6785 LatexCommand label
6786 name "subsec:configuring-viewers"
6787
6788 \end_inset
6789
6790
6791 \end_layout
6792
6793 \begin_layout Subsubsection*
6794 Xdvi (all platforms)
6795 \end_layout
6796
6797 \begin_layout Standard
6798 If you use 
6799 \begin_inset Flex Code
6800 status collapsed
6801
6802 \begin_layout Plain Layout
6803 xdvi
6804 \end_layout
6805
6806 \end_inset
6807
6808 , you don't need to do anything else for performing a reverse DVI search,
6809  as \SpecialChar LyX
6810  already provides the necessary hooks for automatically using the 
6811 \begin_inset Flex Code
6812 status collapsed
6813
6814 \begin_layout Plain Layout
6815 lyxclient
6816 \end_layout
6817
6818 \end_inset
6819
6820  program.
6821  Just setup your document as described above (reverse search is triggered
6822  by Ctrl-click or Alt-click on Mac OSX, respectively).
6823 \end_layout
6824
6825 \begin_layout Standard
6826 However, if for whatever reason you want to use the named pipe instead of
6827  the socket for communicating with \SpecialChar LyX
6828 , simply change the DVI viewer in 
6829 \begin_inset Flex MenuItem
6830 status collapsed
6831
6832 \begin_layout Plain Layout
6833 Preferences\SpecialChar menuseparator
6834 File Handling\SpecialChar menuseparator
6835 File formats
6836 \end_layout
6837
6838 \end_inset
6839
6840  to
6841 \begin_inset Foot
6842 status collapsed
6843
6844 \begin_layout Plain Layout
6845 On Mac OSX you have to use 
6846 \begin_inset Flex Code
6847 status collapsed
6848
6849 \begin_layout Plain Layout
6850 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
6851 \end_layout
6852
6853 \end_inset
6854
6855
6856 \end_layout
6857
6858 \end_inset
6859
6860  
6861 \begin_inset Flex Code
6862 status collapsed
6863
6864 \begin_layout Plain Layout
6865 xdvi -editor "lyxeditor.sh %f %l"
6866 \end_layout
6867
6868 \end_inset
6869
6870 , where 
6871 \begin_inset Flex Code
6872 status collapsed
6873
6874 \begin_layout Plain Layout
6875 lyxeditor.sh
6876 \end_layout
6877
6878 \end_inset
6879
6880  is a suitable script.
6881  For example, a minimal shell script is the following one:
6882 \end_layout
6883
6884 \begin_layout LyX-Code
6885 #!/bin/sh
6886 \begin_inset Newline newline
6887 \end_inset
6888
6889 LYXPIPE="/path/to/lyxpipe"
6890 \begin_inset Newline newline
6891 \end_inset
6892
6893 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6894 \begin_inset Newline newline
6895 \end_inset
6896
6897 echo "$COMMAND" > "${LYXPIPE}".in || exit
6898 \begin_inset Newline newline
6899 \end_inset
6900
6901 read TMP < "${LYXPIPE}".out || exit
6902 \end_layout
6903
6904 \begin_layout Standard
6905 where 
6906 \begin_inset Flex Code
6907 status collapsed
6908
6909 \begin_layout Plain Layout
6910 /path/to/lyxpipe
6911 \end_layout
6912
6913 \end_inset
6914
6915  is the Ly
6916 \begin_inset ERT
6917 status collapsed
6918
6919 \begin_layout Plain Layout
6920
6921 {}
6922 \end_layout
6923
6924 \end_inset
6925
6926 XServer pipe path specified in 
6927 \begin_inset Flex MenuItem
6928 status collapsed
6929
6930 \begin_layout Plain Layout
6931 Preferences\SpecialChar menuseparator
6932 Paths
6933 \end_layout
6934
6935 \end_inset
6936
6937 .
6938 \begin_inset Foot
6939 status collapsed
6940
6941 \begin_layout Plain Layout
6942 In the 
6943 \begin_inset Flex Code
6944 status collapsed
6945
6946 \begin_layout Plain Layout
6947 development/tools
6948 \end_layout
6949
6950 \end_inset
6951
6952  folder of a source distribution you can find a 
6953 \begin_inset Flex Code
6954 status collapsed
6955
6956 \begin_layout Plain Layout
6957 lyxeditor
6958 \end_layout
6959
6960 \end_inset
6961
6962  script which is able to locate the 
6963 \emph on
6964 lyxpipe
6965 \emph default
6966  based on your preferences.
6967 \end_layout
6968
6969 \end_inset
6970
6971
6972 \end_layout
6973
6974 \begin_layout Subsubsection*
6975 MacDviX (Mac OSX)
6976 \end_layout
6977
6978 \begin_layout Standard
6979 At the end of 
6980 \begin_inset Flex Code
6981 status collapsed
6982
6983 \begin_layout Plain Layout
6984 /Applications/MacDviX_Folder/calleditor.script
6985 \end_layout
6986
6987 \end_inset
6988
6989 , add the following lines:
6990 \end_layout
6991
6992 \begin_layout LyX-Code
6993 /Applications/Ly
6994 \begin_inset ERT
6995 status collapsed
6996
6997 \begin_layout Plain Layout
6998
6999 {}
7000 \end_layout
7001
7002 \end_inset
7003
7004 X.app/Contents/MacOS/lyxeditor "$2" $1
7005 \begin_inset Newline newline
7006 \end_inset
7007
7008 exit 1
7009 \end_layout
7010
7011 \begin_layout Standard
7012 Modify the lines accordingly if you install \SpecialChar LyX
7013  somewhere else than in the
7014  Applications folder.
7015 \end_layout
7016
7017 \begin_layout Standard
7018 Reverse search is triggered by Alt-click (OPTION-click).
7019 \end_layout
7020
7021 \begin_layout Subsubsection*
7022 Skim (Mac OSX)
7023 \end_layout
7024
7025 \begin_layout Standard
7026 Enter 
7027 \begin_inset Flex Code
7028 status collapsed
7029
7030 \begin_layout Plain Layout
7031 open -a Skim.app $$i
7032 \end_layout
7033
7034 \end_inset
7035
7036  to the viewer setting in 
7037 \begin_inset Flex MenuItem
7038 status collapsed
7039
7040 \begin_layout Plain Layout
7041 Preferences\SpecialChar menuseparator
7042 File Handling\SpecialChar menuseparator
7043 File formats\SpecialChar menuseparator
7044 PDF (pdflatex)
7045 \end_layout
7046
7047 \end_inset
7048
7049 , and then in 
7050 \begin_inset Flex MenuItem
7051 status collapsed
7052
7053 \begin_layout Plain Layout
7054 Skim\SpecialChar menuseparator
7055 Preferences\SpecialChar menuseparator
7056 Sync
7057 \end_layout
7058
7059 \end_inset
7060
7061  choose 
7062 \begin_inset Flex MenuItem
7063 status collapsed
7064
7065 \begin_layout Plain Layout
7066 custom
7067 \end_layout
7068
7069 \end_inset
7070
7071  preset and enter command 
7072 \begin_inset Flex MenuItem
7073 status collapsed
7074
7075 \begin_layout Plain Layout
7076 /Applications/\SpecialChar LyX
7077 .app/Contents/MacOS/lyxeditor
7078 \end_layout
7079
7080 \end_inset
7081
7082 .
7083 \end_layout
7084
7085 \begin_layout Standard
7086 Reverse search is triggered by COMMAND-SHIFT-click
7087 \end_layout
7088
7089 \begin_layout Subsubsection*
7090 Okular (KDE)
7091 \end_layout
7092
7093 \begin_layout Standard
7094 Go to 
7095 \begin_inset Flex MenuItem
7096 status collapsed
7097
7098 \begin_layout Plain Layout
7099 Settings\SpecialChar menuseparator
7100 Configure Okular\SpecialChar ldots
7101 \SpecialChar menuseparator
7102 Editor
7103 \end_layout
7104
7105 \end_inset
7106
7107 , select 
7108 \begin_inset Quotes eld
7109 \end_inset
7110
7111 Custom Text Editor
7112 \begin_inset Quotes erd
7113 \end_inset
7114
7115  and add the command 
7116 \begin_inset Flex Code
7117 status collapsed
7118
7119 \begin_layout Plain Layout
7120 lyxclient -g %f %l
7121 \end_layout
7122
7123 \end_inset
7124
7125 .
7126 \end_layout
7127
7128 \begin_layout Standard
7129 Reverse search is triggered by SHIFT-click.
7130 \change_inserted 711066561 1405259853
7131
7132 \end_layout
7133
7134 \begin_layout Subsubsection*
7135
7136 \change_inserted 711066561 1405273730
7137 Qpdfview (Unix)
7138 \end_layout
7139
7140 \begin_layout Standard
7141
7142 \change_inserted 711066561 1405263147
7143 Qpdfview supports Sync\SpecialChar TeX
7144  since version 0.3.5.
7145  Go to 
7146 \begin_inset Flex MenuItem
7147 status collapsed
7148
7149 \begin_layout Plain Layout
7150
7151 \change_inserted 711066561 1405260331
7152 Edit\SpecialChar menuseparator
7153 Settings\SpecialChar ldots
7154 \SpecialChar menuseparator
7155 Behavior
7156 \change_unchanged
7157
7158 \end_layout
7159
7160 \end_inset
7161
7162 , click on the input field of the 
7163 \begin_inset Quotes eld
7164 \end_inset
7165
7166 Source editor
7167 \begin_inset Quotes erd
7168 \end_inset
7169
7170  item and add the command 
7171 \begin_inset Flex Code
7172 status collapsed
7173
7174 \begin_layout Plain Layout
7175
7176 \change_inserted 711066561 1405260473
7177 lyxclient -g %1 %2
7178 \change_unchanged
7179
7180 \end_layout
7181
7182 \end_inset
7183
7184 .
7185 \end_layout
7186
7187 \begin_layout Standard
7188
7189 \change_inserted 711066561 1405260506
7190 Reverse search is triggered by double-click.
7191 \change_unchanged
7192
7193 \end_layout
7194
7195 \begin_layout Subsubsection*
7196 YAP (Windows)
7197 \end_layout
7198
7199 \begin_layout Standard
7200 Launch yap, choose its 
7201 \begin_inset Flex MenuItem
7202 status collapsed
7203
7204 \begin_layout Plain Layout
7205 View\SpecialChar menuseparator
7206 Options
7207 \end_layout
7208
7209 \end_inset
7210
7211  menu and select the 
7212 \begin_inset Quotes eld
7213 \end_inset
7214
7215 Inverse DVI Search
7216 \begin_inset Quotes erd
7217 \end_inset
7218
7219  tab.
7220  Click on the 
7221 \begin_inset Quotes eld
7222 \end_inset
7223
7224 New\SpecialChar ldots
7225
7226 \begin_inset Quotes erd
7227 \end_inset
7228
7229  button and, in the window that opens, enter 
7230 \begin_inset Quotes eld
7231 \end_inset
7232
7233 \SpecialChar LyX
7234  Editor
7235 \begin_inset Quotes erd
7236 \end_inset
7237
7238  (or any other name you like) in the 
7239 \begin_inset Quotes eld
7240 \end_inset
7241
7242 Name:
7243 \begin_inset Quotes erd
7244 \end_inset
7245
7246  field.
7247  Now click on the button labeled 
7248 \begin_inset Quotes eld
7249 \end_inset
7250
7251 \SpecialChar ldots
7252
7253 \begin_inset Quotes erd
7254 \end_inset
7255
7256  to open a file dialog and navigate to the directory containing the batch
7257  file 
7258 \begin_inset Flex Code
7259 status collapsed
7260
7261 \begin_layout Plain Layout
7262 lyxeditor.bat
7263 \end_layout
7264
7265 \end_inset
7266
7267  (see below).
7268  Select 
7269 \begin_inset Flex Code
7270 status collapsed
7271
7272 \begin_layout Plain Layout
7273 lyxeditor.bat
7274 \end_layout
7275
7276 \end_inset
7277
7278  and then specify the program arguments as 
7279 \begin_inset Flex Code
7280 status collapsed
7281
7282 \begin_layout Plain Layout
7283 %f %l
7284 \end_layout
7285
7286 \end_inset
7287
7288 .
7289  The 
7290 \begin_inset Flex Code
7291 status collapsed
7292
7293 \begin_layout Plain Layout
7294 lyxeditor.bat
7295 \end_layout
7296
7297 \end_inset
7298
7299  wrapper is used for communicating with \SpecialChar LyX
7300  through the 
7301 \emph on
7302 lyxpipe
7303 \emph default
7304  and is as follows:
7305 \end_layout
7306
7307 \begin_layout LyX-Code
7308 @echo off
7309 \begin_inset Newline newline
7310 \end_inset
7311
7312 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7313 \backslash
7314
7315 \backslash
7316 .
7317 \backslash
7318 pipe
7319 \backslash
7320 lyxpipe.in
7321 \begin_inset Newline newline
7322 \end_inset
7323
7324 type 
7325 \backslash
7326
7327 \backslash
7328 .
7329 \backslash
7330 pipe
7331 \backslash
7332 lyxpipe.out
7333 \end_layout
7334
7335 \begin_layout Standard
7336 Make sure that the \SpecialChar LyX
7337 Server pipe path you specified in \SpecialChar LyX
7338  is 
7339 \begin_inset Flex Code
7340 status collapsed
7341
7342 \begin_layout Plain Layout
7343
7344 \backslash
7345
7346 \backslash
7347 .
7348 \backslash
7349 pipe
7350 \backslash
7351 lyxpipe
7352 \end_layout
7353
7354 \end_inset
7355
7356 , otherwise change the 
7357 \begin_inset Flex Code
7358 status collapsed
7359
7360 \begin_layout Plain Layout
7361 lyxeditor.bat
7362 \end_layout
7363
7364 \end_inset
7365
7366  wrapper accordingly.
7367 \end_layout
7368
7369 \begin_layout Standard
7370 In yap, reverse search is triggered by double-click.
7371 \end_layout
7372
7373 \begin_layout Subsubsection*
7374 SumatraPDF (Windows)
7375 \end_layout
7376
7377 \begin_layout Standard
7378 In order to use SumatraPDF for inverse search, enter 
7379 \begin_inset Flex Code
7380 status collapsed
7381
7382 \begin_layout Plain Layout
7383 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
7384 \end_layout
7385
7386 \end_inset
7387
7388  in the viewer setting in 
7389 \begin_inset Flex MenuItem
7390 status collapsed
7391
7392 \begin_layout Plain Layout
7393 Preferences\SpecialChar menuseparator
7394 File Handling\SpecialChar menuseparator
7395 File formats\SpecialChar menuseparator
7396 PDF (pdflatex)
7397 \end_layout
7398
7399 \end_inset
7400
7401 , where 
7402 \begin_inset Flex Code
7403 status collapsed
7404
7405 \begin_layout Plain Layout
7406 lyxeditor.bat
7407 \end_layout
7408
7409 \end_inset
7410
7411  is the previous wrapper.
7412  If SumatraPDF.exe is not in your command PATH, use its full file name.
7413 \end_layout
7414
7415 \begin_layout Standard
7416 Reverse search is triggered by double-click.
7417 \end_layout
7418
7419 \begin_layout Subsubsection*
7420 YAP (Cygwin)
7421 \end_layout
7422
7423 \begin_layout Standard
7424 First of all, make sure that yap is your default DVI viewer in the Windows
7425  environment, then launch it, choose its 
7426 \begin_inset Flex MenuItem
7427 status collapsed
7428
7429 \begin_layout Plain Layout
7430 View\SpecialChar menuseparator
7431 Options
7432 \end_layout
7433
7434 \end_inset
7435
7436  menu and select the 
7437 \begin_inset Quotes eld
7438 \end_inset
7439
7440 Inverse DVI Search
7441 \begin_inset Quotes erd
7442 \end_inset
7443
7444  tab.
7445  Click on the 
7446 \begin_inset Quotes eld
7447 \end_inset
7448
7449 New\SpecialChar ldots
7450
7451 \begin_inset Quotes erd
7452 \end_inset
7453
7454  button and, in the window that opens, enter 
7455 \begin_inset Quotes eld
7456 \end_inset
7457
7458 \SpecialChar LyX
7459  Editor
7460 \begin_inset Quotes erd
7461 \end_inset
7462
7463  (or any other name you like) in the 
7464 \begin_inset Quotes eld
7465 \end_inset
7466
7467 Name:
7468 \begin_inset Quotes erd
7469 \end_inset
7470
7471  field.
7472  Now click on the button labeled 
7473 \begin_inset Quotes eld
7474 \end_inset
7475
7476 \SpecialChar ldots
7477
7478 \begin_inset Quotes erd
7479 \end_inset
7480
7481  to open a file dialog and navigate to the directory containing the 
7482 \begin_inset Flex Code
7483 status collapsed
7484
7485 \begin_layout Plain Layout
7486 lyxeditor.exe
7487 \end_layout
7488
7489 \end_inset
7490
7491  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7492  executable).
7493  Select 
7494 \begin_inset Flex Code
7495 status collapsed
7496
7497 \begin_layout Plain Layout
7498 lyxeditor.exe
7499 \end_layout
7500
7501 \end_inset
7502
7503  and then specify the program arguments as 
7504 \begin_inset Flex Code
7505 status collapsed
7506
7507 \begin_layout Plain Layout
7508 -g %f %l
7509 \end_layout
7510
7511 \end_inset
7512
7513 .
7514  In this way, you will be using the 
7515 \emph on
7516 lyxsocket
7517 \emph default
7518  for communicating with \SpecialChar LyX
7519 .
7520  If, for whatever reason, you want to use the 
7521 \emph on
7522 lyxpipe
7523 \emph default
7524 , omit the 
7525 \begin_inset Flex Code
7526 status collapsed
7527
7528 \begin_layout Plain Layout
7529 -g
7530 \end_layout
7531
7532 \end_inset
7533
7534  option and be sure to specify the \SpecialChar LyX
7535 Server pipe path in the \SpecialChar LyX
7536  preferences.
7537 \end_layout
7538
7539 \begin_layout Standard
7540 In yap, reverse search is triggered by double-click.
7541 \end_layout
7542
7543 \begin_layout Subsubsection*
7544 SumatraPDF (Cygwin)
7545 \end_layout
7546
7547 \begin_layout Standard
7548 In order to use SumatraPDF for inverse search, enter 
7549 \begin_inset Flex Code
7550 status collapsed
7551
7552 \begin_layout Plain Layout
7553 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7554 \end_layout
7555
7556 \end_inset
7557
7558  in the viewer setting in 
7559 \begin_inset Flex MenuItem
7560 status collapsed
7561
7562 \begin_layout Plain Layout
7563 Preferences\SpecialChar menuseparator
7564 File Handling\SpecialChar menuseparator
7565 File formats\SpecialChar menuseparator
7566 PDF (pdflatex)
7567 \end_layout
7568
7569 \end_inset
7570
7571 .
7572  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7573  The 
7574 \begin_inset Flex Code
7575 status collapsed
7576
7577 \begin_layout Plain Layout
7578 -g
7579 \end_layout
7580
7581 \end_inset
7582
7583  enables communication via the 
7584 \emph on
7585 lyxsocket
7586 \emph default
7587 .
7588  Again, omit the 
7589 \begin_inset Flex Code
7590 status collapsed
7591
7592 \begin_layout Plain Layout
7593 -g
7594 \end_layout
7595
7596 \end_inset
7597
7598  option if you want to use the 
7599 \emph on
7600 lyxpipe
7601 \emph default
7602 , and be sure to specify the \SpecialChar LyX
7603 Server pipe path in the \SpecialChar LyX
7604  preferences.
7605 \end_layout
7606
7607 \begin_layout Standard
7608 Reverse search is triggered by double-click.
7609 \end_layout
7610
7611 \begin_layout Section
7612 Forward search
7613 \end_layout
7614
7615 \begin_layout Standard
7616 Forward search is, as the name implies, in a sense the 
7617 \begin_inset Quotes eld
7618 \end_inset
7619
7620 opposite
7621 \begin_inset Quotes erd
7622 \end_inset
7623
7624  of reverse search.
7625  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7626 .
7627  If forward search is set up (as described in what follows), you can put
7628  the cursor anywhere in your \SpecialChar LyX
7629  document, and hit 
7630 \begin_inset Flex MenuItem
7631 status collapsed
7632
7633 \begin_layout Plain Layout
7634 Navigate\SpecialChar menuseparator
7635 Forward search
7636 \end_layout
7637
7638 \end_inset
7639
7640  (or select 
7641 \begin_inset Flex MenuItem
7642 status collapsed
7643
7644 \begin_layout Plain Layout
7645 Forward search
7646 \end_layout
7647
7648 \end_inset
7649
7650  in the context menu via right mouse click), and then the viewer will jump
7651  to that position as well.
7652  This implies, of course, that your viewer supports this function.
7653 \end_layout
7654
7655 \begin_layout Standard
7656 To make forward search possible, you first need to provide the generated
7657  output PDF/DVI file with additional information about the \SpecialChar TeX
7658  sources.
7659  This can be done via the methods described in the section 
7660 \begin_inset CommandInset ref
7661 LatexCommand ref
7662 reference "subsec:rev-search"
7663
7664 \end_inset
7665
7666 .
7667 \end_layout
7668
7669 \begin_layout Standard
7670 Additionally, you need to configure \SpecialChar LyX
7671  for using your viewers in 
7672 \begin_inset Flex MenuItem
7673 status collapsed
7674
7675 \begin_layout Plain Layout
7676 Tools\SpecialChar menuseparator
7677 Preferences\SpecialChar menuseparator
7678 Output\SpecialChar menuseparator
7679 General
7680 \end_layout
7681
7682 \end_inset
7683
7684 .
7685  We provide a range of tested configurations for some viewers, which you
7686  can select from the drop down list.
7687  If none of these configurations suits you, you have to find out and enter
7688  a suitable configuration yourself.
7689  The definition syntax uses the following placeholders:
7690 \end_layout
7691
7692 \begin_layout Itemize
7693 \noindent
7694 \begin_inset Flex Code
7695 status collapsed
7696
7697 \begin_layout Plain Layout
7698 $$n
7699 \end_layout
7700
7701 \end_inset
7702
7703 : row number
7704 \end_layout
7705
7706 \begin_layout Itemize
7707 \noindent
7708 \begin_inset Flex Code
7709 status collapsed
7710
7711 \begin_layout Plain Layout
7712 $$t
7713 \end_layout
7714
7715 \end_inset
7716
7717 : name of the (temporary) exported .tex file (without path)
7718 \end_layout
7719
7720 \begin_layout Itemize
7721 \noindent
7722 \begin_inset Flex Code
7723 status collapsed
7724
7725 \begin_layout Plain Layout
7726 $$f
7727 \end_layout
7728
7729 \end_inset
7730
7731 : name of the (temporary) exported .tex file (including path)
7732 \end_layout
7733
7734 \begin_layout Itemize
7735 \noindent
7736 \begin_inset Flex Code
7737 status collapsed
7738
7739 \begin_layout Plain Layout
7740 $$o
7741 \end_layout
7742
7743 \end_inset
7744
7745 : name of the exported output file (either dvi or pdf, depending on which
7746  one exists in the temporary directory)
7747 \end_layout
7748
7749 \begin_layout Standard
7750 Note that only some of the viewers provide full forward search functionality,
7751  among them yap, xdvi, okular
7752 \begin_inset Foot
7753 status collapsed
7754
7755 \begin_layout Plain Layout
7756 You might want to set 
7757 \begin_inset Flex Code
7758 status collapsed
7759
7760 \begin_layout Plain Layout
7761 okular –unique
7762 \end_layout
7763
7764 \end_inset
7765
7766  in 
7767 \begin_inset Flex MenuItem
7768 status collapsed
7769
7770 \begin_layout Plain Layout
7771 Tools\SpecialChar menuseparator
7772 Preferences\SpecialChar menuseparator
7773 File Handling\SpecialChar menuseparator
7774 File
7775 \begin_inset space ~
7776 \end_inset
7777
7778 Formats
7779 \end_layout
7780
7781 \end_inset
7782
7783
7784 \end_layout
7785
7786 \end_inset
7787
7788
7789 \change_inserted 711066561 1405264317
7790 , qpdfview
7791 \change_unchanged
7792  and Sumatra
7793 \change_deleted 711066561 1405264282
7794  
7795 \change_unchanged
7796 PDF
7797 \begin_inset Foot
7798 status collapsed
7799
7800 \begin_layout Plain Layout
7801
7802 \change_deleted 711066561 1405264216
7803 For 
7804 \change_unchanged
7805 Sumatra
7806 \change_inserted 711066561 1405264265
7807 PDF can also use DDE commands through the external program
7808 \change_unchanged
7809  CMCDDE
7810 \change_deleted 711066561 1405264271
7811  is needed
7812 \change_unchanged
7813  — downloadable from 
7814 \begin_inset CommandInset href
7815 LatexCommand href
7816 target "ftp://ftp2.commence.com/pub/freebies/"
7817
7818 \end_inset
7819
7820
7821 \end_layout
7822
7823 \end_inset
7824
7825 .
7826  While many of the widespread PDF viewers (most notably Adobe Reader) do
7827  not support forward search at all, some other viewers – e.
7828 \begin_inset space \thinspace{}
7829 \end_inset
7830
7831 g.
7832  evince and xpdf – allow at least to reload the document and jump to a specific
7833  page of the file, so you can at least navigate 
7834 \begin_inset Quotes eld
7835 \end_inset
7836
7837 near
7838 \begin_inset Quotes erd
7839 \end_inset
7840
7841 .
7842  This latter functionality is provided by an external call of synctex (see
7843  the predefined example configurations).
7844  
7845 \end_layout
7846
7847 \begin_layout Standard
7848 Forward search works both with DVI and PDF output.
7849  \SpecialChar LyX
7850  simply checks which preview format you have used before (i.
7851 \begin_inset space \thinspace{}
7852 \end_inset
7853
7854 e., which format is already there in the temporary directory) and chooses
7855  the appropriate configuration for the respective format.
7856 \end_layout
7857
7858 \begin_layout Chapter
7859 Special Document Classes
7860 \end_layout
7861
7862 \begin_layout Section
7863 A&A Paper
7864 \end_layout
7865
7866 \begin_layout Standard
7867 by 
7868 \noun on
7869 Peter Sütterlin
7870 \end_layout
7871
7872 \begin_layout Subsection
7873 Introduction
7874 \end_layout
7875
7876 \begin_layout Standard
7877 This section describes how \SpecialChar LyX
7878  can be used to write articles for submission
7879  to the scientific journal 
7880 \emph on
7881 Astronomy and Astrophysics
7882 \emph default
7883  (www.edpsciences.fr/aa/ 
7884 \begin_inset Flex URL
7885 status collapsed
7886
7887 \begin_layout Plain Layout
7888
7889 http://www.edpsciences.fr/aa/
7890 \end_layout
7891
7892 \end_inset
7893
7894 ) using Version 5.01 of the document class 
7895 \family typewriter
7896 aa.cls
7897 \family default
7898 .
7899  This package can be downloaded from the ftp site
7900 \end_layout
7901
7902 \begin_layout Standard
7903 \begin_inset VSpace medskip
7904 \end_inset
7905
7906
7907 \end_layout
7908
7909 \begin_layout Standard
7910 \align center
7911 \begin_inset Flex URL
7912 status collapsed
7913
7914 \begin_layout Plain Layout
7915
7916 ftp://ftp.edpsciences.org/pub/aa/readme.html
7917 \end_layout
7918
7919 \end_inset
7920
7921
7922 \end_layout
7923
7924 \begin_layout Standard
7925 \begin_inset VSpace medskip
7926 \end_inset
7927
7928
7929 \end_layout
7930
7931 \begin_layout Standard
7932 A manual comes together with that package, and this text is not meant to
7933  replace the original manual but is merely a short guide in how to realize
7934  the correct form of your paper.
7935  
7936 \end_layout
7937
7938 \begin_layout Standard
7939 Please note that the publisher of the journal was changed from Springer
7940  to EDP Sciences starting January 1, 2001.
7941  That change involved also some slight changes to the style files, namely
7942  the removal of the thesaurus command.
7943  The \SpecialChar LyX
7944  class aa supports the newest version of these style files, V 5.01.
7945  If you have an older version installed, please upgrade.
7946  For compatibility, the old (version 4) layout has been kept as 
7947 \family sans
7948 article (A&A V4)
7949 \family default
7950 .
7951  Please refer to the comments in 
7952 \family typewriter
7953 \SpecialChar LyX
7954 Dir/layouts/aapaper.layout
7955 \family default
7956 .
7957 \end_layout
7958
7959 \begin_layout Subsection
7960 Getting started
7961 \end_layout
7962
7963 \begin_layout Standard
7964 It is recommended you start from the example template distributed with \SpecialChar LyX
7965 .
7966  If you are not using a template, note the following settings:
7967 \end_layout
7968
7969 \begin_layout Itemize
7970 Select 
7971 \family sans
7972 article (A&A)
7973 \family default
7974  in the 
7975 \family sans
7976 Document\SpecialChar menuseparator
7977 Settings
7978 \family default
7979  dialog (OK, that one was obvious).
7980 \end_layout
7981
7982 \begin_layout Itemize
7983 Don't change the option 
7984 \family sans
7985 Page
7986 \begin_inset space ~
7987 \end_inset
7988
7989 style
7990 \family default
7991 : Leave it set to 
7992 \family sans
7993 default
7994 \family default
7995 .
7996  The whole layout is done by the macros, you shouldn't change anything.
7997 \end_layout
7998
7999 \begin_layout Subsection
8000 The header block
8001 \end_layout
8002
8003 \begin_layout Standard
8004 First thing to enter is the header information.
8005  It consists of seven entries, of which some are optional.
8006  They are
8007 \end_layout
8008
8009 \begin_layout Itemize
8010
8011 \family sans
8012 Title
8013 \family default
8014 : [required] 
8015 \end_layout
8016
8017 \begin_layout Itemize
8018
8019 \family sans
8020 Subtitle
8021 \family default
8022 : [optional] 
8023 \end_layout
8024
8025 \begin_layout Itemize
8026
8027 \family sans
8028 Author
8029 \family default
8030 : [required]
8031 \end_layout
8032
8033 \begin_layout Itemize
8034
8035 \family sans
8036 Address
8037 \family default
8038 : [required]
8039 \end_layout
8040
8041 \begin_layout Itemize
8042
8043 \family sans
8044 Offprints
8045 \family default
8046 : [optional] if more than one author: whom to contact for offprint requests.
8047 \end_layout
8048
8049 \begin_layout Itemize
8050
8051 \family sans
8052 Mail
8053 \family default
8054 : [optional] mail address for contacts.
8055 \end_layout
8056
8057 \begin_layout Itemize
8058
8059 \family sans
8060 Date
8061 \family default
8062 : [required].
8063  Suggested format is 
8064 \family typewriter
8065 Received: <date>; Accepted <date> 
8066 \end_layout
8067
8068 \begin_layout Standard
8069 There is no need to issue the 
8070 \family typewriter
8071
8072 \backslash
8073 maketitle
8074 \family default
8075  command, this is done automatically by \SpecialChar LyX
8076  when the header is finished.
8077  Although the order of the single header entries doesn't matter it is advised
8078  to keep the above sequence, just to get the best optics and meets the layout
8079  of the real document.
8080 \end_layout
8081
8082 \begin_layout Standard
8083 If you want to place footnotes in the header block, e.
8084 \begin_inset space \thinspace{}
8085 \end_inset
8086
8087 g.
8088 \begin_inset space \space{}
8089 \end_inset
8090
8091 to state your present address, just use the standard footnote via the menu
8092  
8093 \family sans
8094 Insert\SpecialChar menuseparator
8095 Footnote.
8096
8097 \family default
8098  \SpecialChar LyX
8099  will automagically use the term 
8100 \family typewriter
8101
8102 \backslash
8103 thanks{}
8104 \family default
8105  in that case.
8106 \end_layout
8107
8108 \begin_layout Standard
8109 In addition to these topics, the macros use three additional \SpecialChar LaTeX
8110  commands that
8111  have no counterpart in \SpecialChar LyX
8112 :
8113 \end_layout
8114
8115 \begin_layout Itemize
8116
8117 \family typewriter
8118
8119 \backslash
8120 and
8121 \family default
8122  to separate different names for more than one author and institute, respectivel
8123 y.
8124 \end_layout
8125
8126 \begin_layout Itemize
8127
8128 \family typewriter
8129
8130 \backslash
8131 inst{<nr>}
8132 \family default
8133 to mark corresponding author/institute pairs.
8134  The institutes are numbered sequentially as they appear in the 
8135 \family sans
8136 Address
8137 \family default
8138  field, so you have to put a marker to each author.
8139 \end_layout
8140
8141 \begin_layout Itemize
8142
8143 \family typewriter
8144
8145 \backslash
8146 email{address}
8147 \family default
8148  to supply an email address for fast contact.
8149 \end_layout
8150
8151 \begin_layout Standard
8152 In all cases, the appropriate command has to be entered in \SpecialChar LyX
8153  and marked as
8154  \SpecialChar LaTeX
8155  code.
8156  See the examples.
8157  
8158 \end_layout
8159
8160 \begin_layout Subsection
8161 The abstract
8162 \end_layout
8163
8164 \begin_layout Standard
8165 The abstract should immediately follow the header block.
8166  With version 5 the abstract environment was changed to a command, and there
8167  is now a resctriction to only one paragraph.
8168  In addition, it should contain an entry with the keywords.
8169  This is not yet implemented for \SpecialChar LyX
8170 , therefore you have to enter the \SpecialChar LaTeX
8171  command
8172  
8173 \family typewriter
8174
8175 \backslash
8176 keywords{}
8177 \family default
8178  by hand and mark it as \SpecialChar LaTeX
8179  code.
8180  Refer to the example paper.
8181 \end_layout
8182
8183 \begin_layout Subsection
8184 Supported environments
8185 \end_layout
8186
8187 \begin_layout Standard
8188 The A&A paper layout supports the following environments for structuring
8189  your text:
8190 \end_layout
8191
8192 \begin_layout Itemize
8193
8194 \family sans
8195 Standard
8196 \end_layout
8197
8198 \begin_layout Itemize
8199
8200 \family sans
8201 Section
8202 \end_layout
8203
8204 \begin_layout Itemize
8205
8206 \family sans
8207 Subsection
8208 \end_layout
8209
8210 \begin_layout Itemize
8211
8212 \family sans
8213 Subsubsection
8214 \end_layout
8215
8216 \begin_layout Itemize
8217
8218 \family sans
8219 Itemize
8220 \end_layout
8221
8222 \begin_layout Itemize
8223
8224 \family sans
8225 Enumerate
8226 \end_layout
8227
8228 \begin_layout Itemize
8229
8230 \family sans
8231 Description
8232 \end_layout
8233
8234 \begin_layout Itemize
8235
8236 \family sans
8237 Caption
8238 \end_layout
8239
8240 \begin_layout Itemize
8241
8242 \family sans
8243 Abstract
8244 \end_layout
8245
8246 \begin_layout Itemize
8247
8248 \family sans
8249 Acknowledgment
8250 \end_layout
8251
8252 \begin_layout Itemize
8253
8254 \family sans
8255 Bibliography
8256 \end_layout
8257
8258 \begin_layout Itemize
8259
8260 \family sans
8261 \SpecialChar LaTeX
8262
8263 \end_layout
8264
8265 \begin_layout Subsection
8266 Commands not supported by \SpecialChar LyX
8267
8268 \end_layout
8269
8270 \begin_layout Standard
8271 Some commands are not yet supported by the 
8272 \family sans
8273 paper (A&A)
8274 \family default
8275  layout for \SpecialChar LyX
8276 .
8277  Some have already been mentioned.
8278  For the sake of completeness, they are listed all together here:
8279 \end_layout
8280
8281 \begin_layout Itemize
8282
8283 \family typewriter
8284
8285 \backslash
8286 and
8287 \end_layout
8288
8289 \begin_layout Itemize
8290
8291 \family typewriter
8292
8293 \backslash
8294 email
8295 \end_layout
8296
8297 \begin_layout Itemize
8298
8299 \family typewriter
8300
8301 \backslash
8302 appendix
8303 \end_layout
8304
8305 \begin_layout Itemize
8306
8307 \family typewriter
8308
8309 \backslash
8310 authorrunning
8311 \end_layout
8312
8313 \begin_layout Itemize
8314
8315 \family typewriter
8316
8317 \backslash
8318 inst{}
8319 \end_layout
8320
8321 \begin_layout Itemize
8322
8323 \family typewriter
8324
8325 \backslash
8326 keywords{}
8327 \end_layout
8328
8329 \begin_layout Itemize
8330
8331 \family typewriter
8332
8333 \backslash
8334 object{}
8335 \end_layout
8336
8337 \begin_layout Itemize
8338
8339 \family typewriter
8340
8341 \backslash
8342 titlerunning{}
8343 \end_layout
8344
8345 \begin_layout Standard
8346 If you want to use any of these commands, you have to enter them yourself.
8347  
8348 \series bold
8349 Do not forget to mark them as \SpecialChar LaTeX
8350  code!
8351 \end_layout
8352
8353 \begin_layout Subsection
8354 Figure and Table Floats
8355 \end_layout
8356
8357 \begin_layout Standard
8358 \SpecialChar LyX
8359  provides support for the necessary float environments 
8360 \family sans
8361 figure, figure*, table
8362 \family default
8363  and 
8364 \family sans
8365 table*
8366 \family default
8367 , therefore we won't tell much about it here.
8368  Refer to the 
8369 \emph on
8370 User's
8371 \begin_inset space ~
8372 \end_inset
8373
8374 Guide
8375 \emph default
8376 .
8377  Just remember that tables should be left-aligned.
8378  For that, select the table and change the alignment in 
8379 \family sans
8380 Edit\SpecialChar menuseparator
8381 Paragraph
8382 \begin_inset space ~
8383 \end_inset
8384
8385 Settings.
8386 \end_layout
8387
8388 \begin_layout Standard
8389 There is only one special thing: the figures with caption besides the figure.
8390  To create such a figure, you have to do the following:
8391 \end_layout
8392
8393 \begin_layout Enumerate
8394 Create a wide figure float: 
8395 \family sans
8396 Insert\SpecialChar menuseparator
8397 Float\SpecialChar menuseparator
8398 Figure
8399 \family default
8400 , then right click in the figure and select 
8401 \family sans
8402 \bar under
8403 S
8404 \bar default
8405 pan
8406 \begin_inset space ~
8407 \end_inset
8408
8409 columns
8410 \family default
8411 .
8412 \end_layout
8413
8414 \begin_layout Enumerate
8415 Enter your caption text.
8416 \end_layout
8417
8418 \begin_layout Enumerate
8419 Press 
8420 \family sans
8421 Return
8422 \family default
8423  to move the cursor above the caption.
8424 \end_layout
8425
8426 \begin_layout Enumerate
8427 Insert your figure
8428 \end_layout
8429
8430 \begin_layout Enumerate
8431 Position the cursor behind the figure and insert a horizontal fill: 
8432 \family sans
8433 Insert\SpecialChar menuseparator
8434 Special
8435 \begin_inset space ~
8436 \end_inset
8437
8438 Character\SpecialChar menuseparator
8439 Horizontal
8440 \begin_inset space ~
8441 \end_inset
8442
8443 Fill
8444 \family default
8445 .
8446 \end_layout
8447
8448 \begin_layout Enumerate
8449 Switch to \SpecialChar LaTeX
8450  mode: 
8451 \family sans
8452 M-c
8453 \begin_inset space ~
8454 \end_inset
8455
8456 t
8457 \family default
8458 .
8459 \end_layout
8460
8461 \begin_layout Enumerate
8462 Enter 
8463 \family typewriter
8464
8465 \backslash
8466 parbox[b]{55mm}{
8467 \family default
8468 .
8469  
8470 \series bold
8471 Do not close the brace!
8472 \end_layout
8473
8474 \begin_layout Enumerate
8475 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8476  mode and insert
8477  the closing brace: 
8478 \family sans
8479 M-c
8480 \begin_inset space ~
8481 \end_inset
8482
8483 t
8484 \family default
8485  
8486 \family typewriter
8487 }
8488 \family default
8489 .
8490 \end_layout
8491
8492 \begin_layout Standard
8493 Also, refer to the figures in the example paper.
8494 \end_layout
8495
8496 \begin_layout Subsection
8497 Referee layout
8498 \end_layout
8499
8500 \begin_layout Standard
8501 For submission, the paper has to be formated in a special double-spacing
8502  layout.
8503  For this purpose, you have to give the option 
8504 \family typewriter
8505 referee
8506 \family default
8507  to the documentclass.
8508  This must be done using the extra class options field in the 
8509 \family sans
8510 Document\SpecialChar menuseparator
8511 Settings
8512 \family default
8513  dialog.
8514  Just enter the string 
8515 \family typewriter
8516 referee
8517 \family default
8518  there.
8519 \end_layout
8520
8521 \begin_layout Subsection
8522 The example paper
8523 \end_layout
8524
8525 \begin_layout Standard
8526 The 
8527 \family sans
8528 Examples
8529 \family default
8530  directory contains an example paper written with \SpecialChar LyX
8531 .
8532  It is the example paper from the original macro package, translated to
8533  \SpecialChar LyX
8534 .
8535  Use it for inspiration, and compare the original \SpecialChar LaTeX
8536  code with \SpecialChar LyX
8537  way of writing.
8538 \end_layout
8539
8540 \begin_layout Section
8541 AAS\SpecialChar TeX
8542
8543 \end_layout
8544
8545 \begin_layout Standard
8546 by 
8547 \noun on
8548 Mike Ressler
8549 \end_layout
8550
8551 \begin_layout Subsection
8552 Introduction
8553 \end_layout
8554
8555 \begin_layout Standard
8556 AAS\SpecialChar TeX
8557  is a set of macros produced by the American Astronomical Society to
8558  facilitate electronic manuscript submission to the three journals they
8559  publish: the Astrophysical Journal (including the Letters and Supplement),
8560  the Astronomical Journal, and the Publications of the Astronomical Society
8561  of the Pacific.
8562  \SpecialChar LyX
8563  has proven to be an excellent tool for generating these documents, especially
8564  given its equation, citation, and figure handling capabilities.
8565  \SpecialChar LyX
8566  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8567  is the version described here, or higher.
8568  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8569 2.09 and are fundamentally
8570  incompatible with \SpecialChar LyX
8571 .
8572  The AAS\SpecialChar TeX
8573  package may be downloaded from the AAS\SpecialChar TeX
8574  Web site
8575 \end_layout
8576
8577 \begin_layout Standard
8578 \begin_inset VSpace medskip
8579 \end_inset
8580
8581
8582 \end_layout
8583
8584 \begin_layout Standard
8585 \align center
8586 \begin_inset Flex URL
8587 status collapsed
8588
8589 \begin_layout Plain Layout
8590
8591 http://www.journals.uchicago.edu/AAS/AASTeX
8592 \end_layout
8593
8594 \end_inset
8595
8596
8597 \end_layout
8598
8599 \begin_layout Standard
8600 \begin_inset VSpace medskip
8601 \end_inset
8602
8603
8604 \end_layout
8605
8606 \begin_layout Standard
8607 A complete user guide is contained in that package and you should familiarize
8608  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8609 .
8610  \SpecialChar LyX
8611  will not reduce the need to figure out all the AAS\SpecialChar TeX
8612  commands, it will only
8613  reduce the drudgery of typing everything in.
8614  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8615  document conforms
8616  completely to the requirements of the journal to which you are submitting
8617  your paper.
8618 \end_layout
8619
8620 \begin_layout Subsection
8621 Starting a New Paper
8622 \end_layout
8623
8624 \begin_layout Standard
8625 I strongly suggest that you start with the AAS\SpecialChar TeX
8626  template file.
8627  Click on 
8628 \family sans
8629 File\SpecialChar menuseparator
8630 New from
8631 \family default
8632  
8633 \family sans
8634 Template
8635 \family default
8636 , enter the new file name, then choose the 
8637 \family typewriter
8638 aastex.lyx
8639 \family default
8640  template.
8641  This will show the most common fields found in a manuscript.
8642  Simply overwrite the existing text (including the brackets, 
8643 \family typewriter
8644 <>
8645 \family default
8646 ) with the correct information.
8647  Many of the AAS\SpecialChar TeX
8648  commands and environments can be implemented directly in
8649  \SpecialChar LyX
8650 , but some cannot: most noticeably 
8651 \family typewriter
8652
8653 \backslash
8654 altaffilmark
8655 \family default
8656  and 
8657 \family typewriter
8658
8659 \backslash
8660 altaffiltext
8661 \family default
8662 , which should stick out like a sore thumb if you actually just opened the
8663  template file.
8664  For commands such as these, the \SpecialChar LaTeX
8665  code must be entered directly and marked
8666  as such.
8667  Such commands are referred to as \SpecialChar TeX
8668  code, or Evil Red Text.
8669  I tried to minimize the amount of \SpecialChar TeX
8670  code needed in an AAS\SpecialChar TeX
8671  document, but
8672  there is still a bit more required than any of us would like.
8673 \end_layout
8674
8675 \begin_layout Subsection
8676 Finishing Your Paper
8677 \end_layout
8678
8679 \begin_layout Standard
8680 When the paper is finished to your satisfaction and previews/prints correctly,
8681  there are a few 
8682 \begin_inset Quotes eld
8683 \end_inset
8684
8685 postprocessing
8686 \begin_inset Quotes erd
8687 \end_inset
8688
8689  actions which need to be done before you submit it to the journals.
8690  
8691 \end_layout
8692
8693 \begin_layout Enumerate
8694 Export your paper as a \SpecialChar LaTeX
8695  file (
8696 \family sans
8697 File\SpecialChar menuseparator
8698 Export\SpecialChar menuseparator
8699 \SpecialChar LaTeX
8700
8701 \family default
8702 ).
8703  
8704 \end_layout
8705
8706 \begin_layout Enumerate
8707 Edit the resulting 
8708 \family typewriter
8709 .tex
8710 \family default
8711  file with your favorite text editor
8712 \begin_inset Separator parbreak
8713 \end_inset
8714
8715
8716 \end_layout
8717
8718 \begin_deeper
8719 \begin_layout Enumerate
8720 remove the comment lines before the 
8721 \family typewriter
8722
8723 \backslash
8724 documentclass
8725 \family default
8726  command
8727 \end_layout
8728
8729 \begin_layout Enumerate
8730 remove the 
8731 \family typewriter
8732
8733 \backslash
8734 usepackage...{fontenc}
8735 \family default
8736  line if it appears (usually just after 
8737 \family typewriter
8738
8739 \backslash
8740 documentclass
8741 \family default
8742 }; also remove the 
8743 \family typewriter
8744
8745 \backslash
8746 secnumdepth
8747 \family default
8748  line if it appears.
8749 \end_layout
8750
8751 \begin_layout Enumerate
8752 remove everything between (and including) the 
8753 \family typewriter
8754
8755 \backslash
8756 makeatletter
8757 \family default
8758  and 
8759 \family typewriter
8760
8761 \backslash
8762 makeatother
8763 \family default
8764  commands, except for any commands you specifically put into the \SpecialChar LaTeX
8765  preamble
8766  (which should appear immediately after the 
8767 \begin_inset Quotes eld
8768 \end_inset
8769
8770 User specified \SpecialChar LaTeX
8771  commands
8772 \begin_inset Quotes erd
8773 \end_inset
8774
8775  comment in the 
8776 \family typewriter
8777 .tex
8778 \family default
8779  file).
8780 \end_layout
8781
8782 \end_deeper
8783 \begin_layout Enumerate
8784 Run the resulting file through \SpecialChar LaTeX
8785  to make sure it still processes correctly.
8786 \end_layout
8787
8788 \begin_layout Enumerate
8789 Reread the journal requirements to make sure your filenames and formats
8790  are correct.
8791 \end_layout
8792
8793 \begin_layout Enumerate
8794 Submit it.
8795 \end_layout
8796
8797 \begin_layout Subsection
8798 Comments On Specific Commands
8799 \end_layout
8800
8801 \begin_layout Standard
8802 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
8803  commands: the
8804  AAS\SpecialChar TeX
8805  User Guide (
8806 \family typewriter
8807 aasguide.tex
8808 \family default
8809 ) gives a good description of each.
8810  Thus it's probably easiest for me to go down the list as found in the guide
8811  and offer comments where necessary.
8812  So let's begin \SpecialChar ldots
8813
8814 \end_layout
8815
8816 \begin_layout Subsubsection
8817 Things that work as expected
8818 \end_layout
8819
8820 \begin_layout Standard
8821 Because they work as you might expect, I simply list them and the section
8822  they are found in: 
8823 \family typewriter
8824
8825 \backslash
8826 documentclass
8827 \family default
8828  (2.1.1), 
8829 \family typewriter
8830
8831 \backslash
8832 begin{document}
8833 \family default
8834  (2.2), 
8835 \family typewriter
8836
8837 \backslash
8838 title
8839 \family default
8840  (2.3), 
8841 \family typewriter
8842
8843 \backslash
8844 author
8845 \family default
8846  (2.3), 
8847 \family typewriter
8848
8849 \backslash
8850 affil
8851 \family default
8852  (2.3), 
8853 \family typewriter
8854
8855 \backslash
8856 abstract
8857 \family default
8858  (2.4), 
8859 \family typewriter
8860
8861 \backslash
8862 keywords
8863 \family default
8864  (2.5), 
8865 \family typewriter
8866
8867 \backslash
8868 section
8869 \family default
8870  (2.7), 
8871 \family typewriter
8872
8873 \backslash
8874 subsection
8875 \family default
8876  (2.7), 
8877 \family typewriter
8878
8879 \backslash
8880 subsubsection
8881 \family default
8882  (2.7), 
8883 \family typewriter
8884
8885 \backslash
8886 paragraph
8887 \family default
8888  (2.7), 
8889 \family typewriter
8890
8891 \backslash
8892 facility
8893 \family default
8894  (2.10), 
8895 \family typewriter
8896
8897 \backslash
8898 begin{displaymath}
8899 \family default
8900  (2.12), 
8901 \family typewriter
8902
8903 \backslash
8904 begin{equation}
8905 \family default
8906  (2.12), 
8907 \family typewriter
8908
8909 \backslash
8910 begin{eqnarray}
8911 \family default
8912  (2.12), 
8913 \family typewriter
8914
8915 \backslash
8916 begin{mathletters}
8917 \family default
8918  (2.12), 
8919 \family typewriter
8920
8921 \backslash
8922 begin{thebibliography}
8923 \family default
8924  (2.13.1), 
8925 \family typewriter
8926
8927 \backslash
8928 bibitem
8929 \family default
8930  (2.13.2), all the cite commands and their variations (2.13.2), the generic
8931  graphicx figure commands (2.14.1), 
8932 \family typewriter
8933
8934 \backslash
8935 begin{table}
8936 \family default
8937  (2.15.4), 
8938 \family typewriter
8939
8940 \backslash
8941 begin{tabular}
8942 \family default
8943  (2.15.4), 
8944 \family typewriter
8945
8946 \backslash
8947 caption
8948 \family default
8949  (2.15.4), 
8950 \family typewriter
8951
8952 \backslash
8953 label
8954 \family default
8955  (2.15.4, amongst other places), 
8956 \family typewriter
8957
8958 \backslash
8959 tablerefs
8960 \family default
8961  (2.15.5), 
8962 \family typewriter
8963
8964 \backslash
8965 tablecomments
8966 \family default
8967  (2.15.5), 
8968 \family typewriter
8969
8970 \backslash
8971 url
8972 \family default
8973  (2.17.4), 
8974 \family typewriter
8975
8976 \backslash
8977 end{document}
8978 \family default
8979  (2.18).
8980 \end_layout
8981
8982 \begin_layout Standard
8983 The following style options also work correctly: 
8984 \family typewriter
8985 longabstract
8986 \family default
8987  (2.4), 
8988 \family typewriter
8989 preprint
8990 \family default
8991  (3.2.1), 
8992 \family typewriter
8993 preprint2
8994 \family default
8995  (3.2.2), 
8996 \family typewriter
8997 eqsecnum
8998 \family default
8999  (3.3), 
9000 \family typewriter
9001 flushrt
9002 \family default
9003  (3.4).
9004  Simply put them in the 
9005 \family sans
9006 Options
9007 \family default
9008  box in 
9009 \family sans
9010 Layout\SpecialChar menuseparator
9011 Document
9012 \family default
9013 .
9014 \end_layout
9015
9016 \begin_layout Subsubsection
9017 Things that work, but require more comment
9018 \end_layout
9019
9020 \begin_layout Standard
9021 The following items work, but require a little more discussion:
9022 \end_layout
9023
9024 \begin_layout Itemize
9025 These items are reserved for use by the journal editors, but you can put
9026  them into the \SpecialChar LaTeX
9027  preamble if you feel compelled to do so: 
9028 \family typewriter
9029
9030 \backslash
9031 received
9032 \family default
9033
9034 \family typewriter
9035
9036 \backslash
9037 revised
9038 \family default
9039
9040 \family typewriter
9041
9042 \backslash
9043 accepted
9044 \family default
9045
9046 \family typewriter
9047
9048 \backslash
9049 ccc
9050 \family default
9051
9052 \family typewriter
9053
9054 \backslash
9055 cpright
9056 \family default
9057  (all from 2.1.3)
9058 \end_layout
9059
9060 \begin_layout Itemize
9061 These items may be placed in the \SpecialChar LaTeX
9062  preamble, and are included as blanks in
9063  the template file: 
9064 \family typewriter
9065
9066 \backslash
9067 slugcomment
9068 \family default
9069  (2.1.4), 
9070 \family typewriter
9071
9072 \backslash
9073 shorttitle
9074 \family default
9075  (2.1.5), 
9076 \family typewriter
9077
9078 \backslash
9079 shortauthors
9080 \family default
9081  (2.1.5)
9082 \end_layout
9083
9084 \begin_layout Itemize
9085
9086 \family typewriter
9087
9088 \backslash
9089 email
9090 \family default
9091  (2.3) – can only be used 
9092 \begin_inset Quotes eld
9093 \end_inset
9094
9095 standalone
9096 \begin_inset Quotes erd
9097 \end_inset
9098
9099 , not in the middle of a paragraph.
9100  Use \SpecialChar TeX
9101  code if you need to embed it.
9102 \end_layout
9103
9104 \begin_layout Itemize
9105
9106 \family typewriter
9107
9108 \backslash
9109 and
9110 \family default
9111  (2.3) – will have extra {} after it.
9112  This should not cause an error.
9113 \end_layout
9114
9115 \begin_layout Itemize
9116
9117 \family typewriter
9118
9119 \backslash
9120 notetoeditor
9121 \family default
9122  (2.6) – can only be used 
9123 \begin_inset Quotes eld
9124 \end_inset
9125
9126 standalone
9127 \begin_inset Quotes erd
9128 \end_inset
9129
9130 , not in the middle of a paragraph.
9131  Use \SpecialChar TeX
9132  code if you need to embed it.
9133 \end_layout
9134
9135 \begin_layout Itemize
9136
9137 \family typewriter
9138
9139 \backslash
9140 placetable
9141 \family default
9142  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9143  hand
9144 \end_layout
9145
9146 \begin_layout Itemize
9147
9148 \family typewriter
9149
9150 \backslash
9151 placefigure
9152 \family default
9153  (2.8) – same as for 
9154 \family typewriter
9155
9156 \backslash
9157 placetable
9158 \end_layout
9159
9160 \begin_layout Itemize
9161
9162 \family typewriter
9163
9164 \backslash
9165 acknowledgements
9166 \family default
9167  (2.9) – will have extra {} after it.
9168  This should not cause an error.
9169 \end_layout
9170
9171 \begin_layout Itemize
9172
9173 \family typewriter
9174
9175 \backslash
9176 appendix
9177 \family default
9178  (2.11) – will have extra {} after it.
9179  This should not cause an error.
9180 \end_layout
9181
9182 \begin_layout Itemize
9183
9184 \family typewriter
9185
9186 \backslash
9187 figcaption
9188 \family default
9189  (2.14.2) – you can insert an optional filename argument by placing the cursor
9190  at the beginning of the text and selecting 
9191 \family sans
9192 Insert\SpecialChar menuseparator
9193 Short Title
9194 \family default
9195 .
9196  
9197 \begin_inset Quotes eld
9198 \end_inset
9199
9200 Short Title
9201 \begin_inset Quotes erd
9202 \end_inset
9203
9204  inserts an optional argument of the type needed by 
9205 \family typewriter
9206
9207 \backslash
9208 figcaption
9209 \family default
9210 .
9211  Hopefully it will be renamed someday.
9212 \end_layout
9213
9214 \begin_layout Itemize
9215
9216 \family typewriter
9217
9218 \backslash
9219 objectname
9220 \family default
9221  (2.17.1) – same as 
9222 \family typewriter
9223
9224 \backslash
9225 figcaption
9226 \family default
9227  for the catalog ID optional parameter
9228 \end_layout
9229
9230 \begin_layout Itemize
9231
9232 \family typewriter
9233
9234 \backslash
9235 dataset
9236 \family default
9237  (2.17.1) – same as 
9238 \family typewriter
9239
9240 \backslash
9241 figcaption
9242 \family default
9243  for the catalog ID optional parameter
9244 \end_layout
9245
9246 \begin_layout Subsubsection
9247 Things not implemented, use \SpecialChar TeX
9248  code
9249 \end_layout
9250
9251 \begin_layout Standard
9252
9253 \family typewriter
9254
9255 \backslash
9256 altaffilmark
9257 \family default
9258  (2.3), 
9259 \family typewriter
9260
9261 \backslash
9262 altaffiltext
9263 \family default
9264  (2.3), 
9265 \family typewriter
9266
9267 \backslash
9268 eqnum
9269 \family default
9270  (2.12), 
9271 \family typewriter
9272
9273 \backslash
9274 setcounter{equation}
9275 \family default
9276  (2.12), Journal name abbreviations (2.13.4), 
9277 \family typewriter
9278
9279 \backslash
9280 figurenum
9281 \family default
9282  (2.14.1), 
9283 \family typewriter
9284
9285 \backslash
9286 epsscale
9287 \family default
9288  (2.14.1), 
9289 \family typewriter
9290
9291 \backslash
9292 plotone
9293 \family default
9294  (2.14.1), 
9295 \family typewriter
9296
9297 \backslash
9298 plottwo
9299 \family default
9300  (2.14.1), 
9301 \family typewriter
9302
9303 \backslash
9304 tablenum
9305 \family default
9306  (2.15.4), 
9307 \family typewriter
9308
9309 \backslash
9310 tableline
9311 \family default
9312  (2.15.4, insert it as the first element in the lefthand cell after where
9313  you want it.
9314  Don't use any of \SpecialChar LyX
9315 's rules in the table), 
9316 \family typewriter
9317
9318 \backslash
9319 tablenotemark
9320 \family default
9321  (2.15.5), 
9322 \family typewriter
9323
9324 \backslash
9325 tablenotetext
9326 \family default
9327  (2.15.5), much of Misc (2.17, except 
9328 \family typewriter
9329
9330 \backslash
9331 objectname
9332 \family default
9333
9334 \family typewriter
9335
9336 \backslash
9337 dataset
9338 \family default
9339
9340 \family typewriter
9341
9342 \backslash
9343 url
9344 \family default
9345 , and 
9346 \family typewriter
9347
9348 \backslash
9349 email
9350 \family default
9351 ; see above), 
9352 \family typewriter
9353
9354 \backslash
9355 singlespace
9356 \family default
9357  (3.1), 
9358 \family typewriter
9359
9360 \backslash
9361 doublespace
9362 \family default
9363  (3.1), 
9364 \family typewriter
9365
9366 \backslash
9367 onecolumn
9368 \family default
9369  (3.2), 
9370 \family typewriter
9371
9372 \backslash
9373 twocolumn
9374 \family default
9375  (3.2)
9376 \end_layout
9377
9378 \begin_layout Subsubsection
9379 Things that cannot be implemented
9380 \end_layout
9381
9382 \begin_layout Standard
9383 \SpecialChar ldots
9384  at least in any meaningful sort of way, so I suggest ignoring them.
9385  They are the references environment (2.13.3), and the deluxetable environment
9386  (2.15).
9387  If you really, really need to use deluxetable, I suggest editing it in
9388  a separate file with a text editor, then using 
9389 \family sans
9390 Insert\SpecialChar menuseparator
9391 Child
9392 \begin_inset space ~
9393 \end_inset
9394
9395 Document
9396 \family default
9397  to include it in your \SpecialChar LyX
9398  document.
9399  See the 
9400 \family typewriter
9401 aas_sample.lyx
9402 \family default
9403  file to see an example of this.
9404 \end_layout
9405
9406 \begin_layout Subsection
9407 FAQs, Tips, Tricks, and Other Ruminations
9408 \end_layout
9409
9410 \begin_layout Subsubsection
9411 Getting \SpecialChar LyX
9412  and AAS\SpecialChar TeX
9413  to cooperate
9414 \end_layout
9415
9416 \begin_layout Standard
9417 It can be a bit tricky to get \SpecialChar LyX
9418  to recognize a new layout and document class.
9419  When all else fails, do this:
9420 \end_layout
9421
9422 \begin_layout Enumerate
9423 Make certain that \SpecialChar LaTeX
9424  can find AAS\SpecialChar TeX
9425 .
9426  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9427  distribution into a
9428  directory completely unrelated to \SpecialChar LaTeX
9429  or AAS\SpecialChar TeX
9430  and run \SpecialChar LaTeX
9431  on 
9432 \family typewriter
9433 sample.tex
9434 \family default
9435 .
9436 \end_layout
9437
9438 \begin_layout Enumerate
9439 Make certain that 
9440 \family typewriter
9441 aastex.layout
9442 \family default
9443  appears in \SpecialChar LyX
9444 's 
9445 \family typewriter
9446 layouts
9447 \family default
9448  folder
9449 \end_layout
9450
9451 \begin_layout Enumerate
9452 Rerun 
9453 \family sans
9454 Tools\SpecialChar menuseparator
9455 Reconfigure
9456 \family default
9457  in \SpecialChar LyX
9458 , then restart \SpecialChar LyX
9459 .
9460 \end_layout
9461
9462 \begin_layout Enumerate
9463 Open a regular new file, not from a template.
9464  Does AAS\SpecialChar TeX
9465  appear in the class list in 
9466 \family sans
9467 Document\SpecialChar menuseparator
9468 Settings
9469 \family default
9470 ?
9471 \end_layout
9472
9473 \begin_layout Standard
9474 If you get a warning from an existing AAS\SpecialChar TeX
9475  document about not being able
9476  to find the AAS\SpecialChar TeX
9477  layout or a message about 
9478 \begin_inset Quotes eld
9479 \end_inset
9480
9481 You should not mix title layouts with normal ones
9482 \begin_inset Quotes erd
9483 \end_inset
9484
9485 , things haven't been installed correctly.
9486 \end_layout
9487
9488 \begin_layout Subsubsection
9489 \SpecialChar LaTeX
9490  error processing a table 
9491 \end_layout
9492
9493 \begin_layout Standard
9494 \SpecialChar LyX
9495 , by default, attempts to center the table caption/title.
9496  This seems to produce a bad interaction in AAS\SpecialChar TeX
9497  so you should click somewhere
9498  in the caption/title, then select 
9499 \family sans
9500 Edit\SpecialChar menuseparator
9501 Paragraph
9502 \begin_inset space ~
9503 \end_inset
9504
9505 Settings
9506 \family default
9507 , then set the 
9508 \family sans
9509 Alignment
9510 \family default
9511  to 
9512 \family sans
9513 Block
9514 \family default
9515 .
9516  This took care of it for me.
9517 \end_layout
9518
9519 \begin_layout Subsubsection
9520 References
9521 \end_layout
9522
9523 \begin_layout Standard
9524 A couple of things: 1) I have noticed some funny spacing in the reference
9525  entries in the text.
9526  When you enter the bibliography item data, make sure their is 
9527 \emph on
9528 no
9529 \emph default
9530  space between the last author and the parenthesis setting off the year;
9531  
9532 \emph on
9533 e.
9534 \begin_inset space \thinspace{}
9535 \end_inset
9536
9537 g.
9538 \begin_inset space \space{}
9539 \end_inset
9540
9541
9542 \emph default
9543 type 
9544 \family typewriter
9545 Ressler(1992)
9546 \family default
9547 , not 
9548 \family typewriter
9549 Ressler (1992)
9550 \family default
9551 .
9552  2) Entering the references at all is not obvious.
9553  The easiest thing is to start typing your first reference at the end of
9554  the document, then mark it as type 
9555 \family sans
9556 References
9557 \family default
9558 .
9559  That will put a small gray box in front of what you just typed.
9560  Click on the box to fill in the rest of the information.
9561  For new references, go to the end of an existing reference and press return.
9562  That will create a new line with its own box, etc.
9563 \end_layout
9564
9565 \begin_layout Subsubsection
9566 Including EPS files
9567 \end_layout
9568
9569 \begin_layout Standard
9570 Even though AAS\SpecialChar TeX
9571  provides its own figure commands (
9572 \family typewriter
9573
9574 \backslash
9575 plotone
9576 \family default
9577 , for example), I much prefer \SpecialChar LaTeX
9578 's standard figure commands (with the default
9579  graphicx).
9580  You can insert the 
9581 \family typewriter
9582
9583 \backslash
9584 plotone
9585 \family default
9586 , etc.
9587 \begin_inset space ~
9588 \end_inset
9589
9590 commands as \SpecialChar TeX
9591  code into a Figure Float box if you desire, but I never have
9592  much luck getting the layout right.
9593  With the standard graphics, \SpecialChar LyX
9594  will insert a 
9595 \family typewriter
9596
9597 \backslash
9598 usepackage{graphicx}
9599 \family default
9600  command into the \SpecialChar LaTeX
9601  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9602  way,
9603  interspersing the figures in the text.
9604  I believe ApJ accepts figures exactly this way now; AJ might still use
9605  the 
9606 \begin_inset Quotes eld
9607 \end_inset
9608
9609 stack everything at the end
9610 \begin_inset Quotes erd
9611 \end_inset
9612
9613  technique.
9614 \end_layout
9615
9616 \begin_layout Subsubsection
9617 Things I could have done, but didn't
9618 \end_layout
9619
9620 \begin_layout Standard
9621 There are a few 
9622 \begin_inset Quotes eld
9623 \end_inset
9624
9625 pretty
9626 \begin_inset Quotes erd
9627 \end_inset
9628
9629  things I could have implemented, but chose not to.
9630  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9631  window,
9632  even though it is double-spaced in the paper manuscript.
9633  Also, I chose not to make separate layouts for the preprint and preprint2
9634  styles.
9635  Since I assume you will spend most of your time in the plain manuscript
9636  mode anyway, I decided not to chew up more disk space with this.
9637  
9638 \end_layout
9639
9640 \begin_layout Subsection
9641 Final Caveat
9642 \end_layout
9643
9644 \begin_layout Standard
9645 Your mileage may vary.
9646  I've now had papers published by both ApJ and AJ that have had 98% of the
9647  effort done in \SpecialChar LyX
9648 ; the last 2% was the \SpecialChar LaTeX
9649  post-processing and a few cleanups.
9650  I have had no trouble with the submission process, and I'm sure the journals
9651  were never aware that there might be a difference.
9652  So, go forth and publish!
9653 \end_layout
9654
9655 \begin_layout Section
9656 AMS \SpecialChar LaTeX
9657
9658 \end_layout
9659
9660 \begin_layout Standard
9661 by 
9662 \noun on
9663 David Johnson
9664 \noun default
9665 ; updated by 
9666 \noun on
9667 Richard Heck
9668 \end_layout
9669
9670 \begin_layout Standard
9671 \begin_inset VSpace bigskip
9672 \end_inset
9673
9674
9675 \end_layout
9676
9677 \begin_layout Standard
9678 \noindent
9679 The AMS \SpecialChar LaTeX
9680  layouts are set up to conform to suggested styles for mathematical
9681  papers to be submitted to American Mathematical Society publications.
9682  The layouts are not tailored to a specific journal, but easily can be.
9683  You should refer to the AMS documentation for specific instructions for
9684  each journal (usually it will entail only changing a single line in the
9685  \SpecialChar TeX
9686  output).
9687  That documentation is available on the Web at 
9688 \begin_inset Flex URL
9689 status open
9690
9691 \begin_layout Plain Layout
9692
9693 http://www.ams.org
9694 \end_layout
9695
9696 \end_inset
9697
9698  or by ftp at 
9699 \begin_inset Flex URL
9700 status open
9701
9702 \begin_layout Plain Layout
9703
9704 ftp://ftp.ams.org/pub/tex/amslatex/
9705 \end_layout
9706
9707 \end_inset
9708
9709 .
9710  These layouts are appropriate, and useful, for any mathematical writing.
9711  
9712 \end_layout
9713
9714 \begin_layout Standard
9715 There are two basic AMS \SpecialChar LaTeX
9716  layouts: 
9717 \end_layout
9718
9719 \begin_layout Itemize
9720 amsart: The standard AMS article format.
9721 \end_layout
9722
9723 \begin_layout Itemize
9724 amsbook: the standard AMS book (really, monograph) format.
9725  
9726 \end_layout
9727
9728 \begin_layout Standard
9729 The layouts themselves contain only the minimum necessary to use the AMS
9730  classes.
9731  They do not, in particular, contain any of the `theorem' environments used
9732  for setting theorems, lemmas, and the like.
9733  These are contained, instead, in the 
9734 \begin_inset Flex Code
9735 status collapsed
9736
9737 \begin_layout Plain Layout
9738 Theorems (AMS)
9739 \end_layout
9740
9741 \end_inset
9742
9743  module, which is loaded by default when you select one of the AMS classes.
9744  (It can also be used with other classes and can be removed, if you would
9745  rather use something else.) Less commonly used environments are in the 
9746 \begin_inset Flex Code
9747 status collapsed
9748
9749 \begin_layout Plain Layout
9750 Theorems (AMS-Extended)
9751 \end_layout
9752
9753 \end_inset
9754
9755  module, which must be loaded manually.
9756 \end_layout
9757
9758 \begin_layout Standard
9759 By default, theorems and the like are numbered consecutively throughout
9760  the document, but this may be modified by loading the module 
9761 \begin_inset Flex Code
9762 status collapsed
9763
9764 \begin_layout Plain Layout
9765 Theorems (Order by Section)
9766 \end_layout
9767
9768 \end_inset
9769
9770  or, if you are using 
9771 \begin_inset Flex Code
9772 status collapsed
9773
9774 \begin_layout Plain Layout
9775 book (AMS)
9776 \end_layout
9777
9778 \end_inset
9779
9780 , the module 
9781 \begin_inset Flex Code
9782 status collapsed
9783
9784 \begin_layout Plain Layout
9785 Theorems (Order by Chapter)
9786 \end_layout
9787
9788 \end_inset
9789
9790 .
9791  These will number the results as 
9792 \begin_inset Formula $n.m$
9793 \end_inset
9794
9795 , where the first number refers to the section (or chapter) and the second
9796  refers to the total number of results so far in that section (or chapter).
9797  Many environments are also available unnumbered.
9798  These are indicated by an asterisk at the end.
9799  If you happen to want 
9800 \emph on
9801 only
9802 \emph default
9803  unnumbered results, the module 
9804 \begin_inset Flex Code
9805 status collapsed
9806
9807 \begin_layout Plain Layout
9808 Theorems (Starred)
9809 \end_layout
9810
9811 \end_inset
9812
9813  provides that option.
9814 \end_layout
9815
9816 \begin_layout Standard
9817 Note that these modules do not 
9818 \emph on
9819 have
9820 \emph default
9821  to be used with the AMS classes.
9822  It is perfectly possible to use the 
9823 \begin_inset Flex Code
9824 status collapsed
9825
9826 \begin_layout Plain Layout
9827 Theorems (AMS)
9828 \end_layout
9829
9830 \end_inset
9831
9832  module, and the others mentioned, with other classes, such as 
9833 \begin_inset Flex Code
9834 status collapsed
9835
9836 \begin_layout Plain Layout
9837 article
9838 \end_layout
9839
9840 \end_inset
9841
9842
9843 \begin_inset Flex Code
9844 status collapsed
9845
9846 \begin_layout Plain Layout
9847 report
9848 \end_layout
9849
9850 \end_inset
9851
9852
9853 \begin_inset Flex Code
9854 status collapsed
9855
9856 \begin_layout Plain Layout
9857 book (KOMA-script)
9858 \end_layout
9859
9860 \end_inset
9861
9862 , and so forth.
9863 \end_layout
9864
9865 \begin_layout Subsection
9866 What these layouts provide
9867 \end_layout
9868
9869 \begin_layout Standard
9870 There is a long list of included environments provided by these layouts.
9871  In AMS-\SpecialChar LaTeX
9872 , there is, in fact, an opportunity to define an unlimited variety
9873  of `theorem' environments.
9874  However, the AMS recommends the environments that are available in \SpecialChar LyX
9875 .
9876  
9877 \end_layout
9878
9879 \begin_layout Standard
9880 The following environments—as well as the standard environments, such as
9881  
9882 \begin_inset Flex Noun
9883 status collapsed
9884
9885 \begin_layout Plain Layout
9886 section
9887 \end_layout
9888
9889 \end_inset
9890
9891
9892 \begin_inset Flex Noun
9893 status collapsed
9894
9895 \begin_layout Plain Layout
9896 bibliography
9897 \end_layout
9898
9899 \end_inset
9900
9901
9902 \begin_inset Flex Noun
9903 status collapsed
9904
9905 \begin_layout Plain Layout
9906 title
9907 \end_layout
9908
9909 \end_inset
9910
9911
9912 \begin_inset Flex Noun
9913 status collapsed
9914
9915 \begin_layout Plain Layout
9916 author
9917 \end_layout
9918
9919 \end_inset
9920
9921 , and 
9922 \begin_inset Flex Noun
9923 status collapsed
9924
9925 \begin_layout Plain Layout
9926 date
9927 \end_layout
9928
9929 \end_inset
9930
9931 —are provided by 
9932 \begin_inset Flex Code
9933 status collapsed
9934
9935 \begin_layout Plain Layout
9936 article (AMS)
9937 \end_layout
9938
9939 \end_inset
9940
9941  and 
9942 \begin_inset Flex Code
9943 status collapsed
9944
9945 \begin_layout Plain Layout
9946 book (AMS)
9947 \end_layout
9948
9949 \end_inset
9950
9951 :
9952 \end_layout
9953
9954 \begin_layout Description
9955 Address This should be the author's permanent address.
9956 \end_layout
9957
9958 \begin_layout Description
9959 Current
9960 \begin_inset space ~
9961 \end_inset
9962
9963 Address This should be the author's temporary address at the time of submission,
9964  if different from the Address.
9965 \end_layout
9966
9967 \begin_layout Description
9968 Email Author's e-mail address
9969 \end_layout
9970
9971 \begin_layout Description
9972 URL Author's Web address, if desired.
9973 \end_layout
9974
9975 \begin_layout Description
9976 Keywords Key words or phrases used to identify specific topics discussed
9977  in the paper.
9978 \end_layout
9979
9980 \begin_layout Description
9981 Subjectclass These refer to the AMS Subject Classifications, published and
9982  described in 
9983 \emph on
9984 Mathematical Reviews
9985 \emph default
9986 .
9987  These are also available online at the AMS cites listed above.
9988 \end_layout
9989
9990 \begin_layout Description
9991 Thanks
9992 \end_layout
9993
9994 \begin_layout Description
9995 Dedicatory
9996 \end_layout
9997
9998 \begin_layout Description
9999 Translator
10000 \end_layout
10001
10002 \begin_layout Standard
10003 The following environments are provided by both the 
10004 \begin_inset Flex Code
10005 status collapsed
10006
10007 \begin_layout Plain Layout
10008 Theorems
10009 \end_layout
10010
10011 \end_inset
10012
10013  and 
10014 \begin_inset Flex Code
10015 status collapsed
10016
10017 \begin_layout Plain Layout
10018 Theorems (AMS)
10019 \end_layout
10020
10021 \end_inset
10022
10023  modules, in the latter case in both starred (unnumbered) and unstarred
10024  (numbered) versions.
10025  These same environments are provided only in the starred versions by the
10026  
10027 \begin_inset Flex Code
10028 status collapsed
10029
10030 \begin_layout Plain Layout
10031 Theorems (Starred)
10032 \end_layout
10033
10034 \end_inset
10035
10036  module:
10037 \end_layout
10038
10039 \begin_layout Theorem
10040 This is typically used for the statements of major results.
10041  
10042 \end_layout
10043
10044 \begin_layout Corollary*
10045 This is used for statements which follow fairly directly from previous statement
10046 s.
10047  Again, these can be major results.
10048  
10049 \end_layout
10050
10051 \begin_layout Lemma
10052 These are smaller results needed to prove other statements.
10053 \end_layout
10054
10055 \begin_layout Proposition
10056 These are less major results which (hopefully) add to the general theory
10057  being discussed.
10058 \end_layout
10059
10060 \begin_layout Conjecture
10061 These are statements provided without justification, which the author does
10062  not know how to prove, but which seem to be true (to the author, at least).
10063 \end_layout
10064
10065 \begin_layout Definition*
10066 Guess what this is for.
10067  The font is different for this environment than for the previous ones.
10068  
10069 \end_layout
10070
10071 \begin_layout Example*
10072 Used for examples illustrating proven results.
10073 \end_layout
10074
10075 \begin_layout Problem
10076 It's not really known what this is for.
10077  You should figure it out.
10078 \end_layout
10079
10080 \begin_layout Exercise*
10081 Write a description for this one.
10082 \end_layout
10083
10084 \begin_layout Remark
10085 This environment is also a type of theorem, usually a lesser sort of observation.
10086 \end_layout
10087
10088 \begin_layout Claim*
10089 Often used in the course of giving a proof of a larger result.
10090 \end_layout
10091
10092 \begin_layout Case
10093 Generally, these are used to break up long arguments, using specific instances
10094  of some condition.
10095  
10096 \end_layout
10097
10098 \begin_layout Case
10099 The numbering scheme for cases is on its own, not together with other numbered
10100  statements.
10101  
10102 \end_layout
10103
10104 \begin_layout Proof
10105 At the end of this environment, a QED symbol (usually a square, but it can
10106  vary with different styles) is placed.
10107  If you want to have other environments within this one—for example, Case
10108  environments—and have the QED symbol appear only after them, then the other
10109  environments need to be nested within the proof environment.
10110  See the section 
10111 \emph on
10112 Nesting Environments
10113 \emph default
10114  of the 
10115 \emph on
10116 User's Guide
10117 \emph default
10118  for information on nesting.
10119 \end_layout
10120
10121 \begin_layout Standard
10122 And these environments are provided by 
10123 \begin_inset Flex Code
10124 status collapsed
10125
10126 \begin_layout Plain Layout
10127 Theorems (AMS-Extended)
10128 \end_layout
10129
10130 \end_inset
10131
10132 :
10133 \end_layout
10134
10135 \begin_layout Criterion*
10136 A required condition.
10137 \end_layout
10138
10139 \begin_layout Algorithm*
10140 A general procedure to be used.
10141 \end_layout
10142
10143 \begin_layout Axiom*
10144 This is a property or statement taken as true within the system being discussed.
10145 \end_layout
10146
10147 \begin_layout Condition*
10148 Sometimes used to state a condition assumed within the present context of
10149  discussion.
10150 \end_layout
10151
10152 \begin_layout Note*
10153 Similar to a Remark.
10154 \end_layout
10155
10156 \begin_layout Notation*
10157 Used for the explanation of, yes, notation.
10158 \end_layout
10159
10160 \begin_layout Summary
10161 Do we really need to tell you? 
10162 \end_layout
10163
10164 \begin_layout Acknowledgement*
10165 Acknowledgement.
10166 \end_layout
10167
10168 \begin_layout Conclusion*
10169 Sometimes used at the end of a long train of argument.
10170 \end_layout
10171
10172 \begin_layout Fact
10173 Used in a way similar to Proposition, though perhaps lower on the scale.
10174 \end_layout
10175
10176 \begin_layout Standard
10177 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10178  and AMS fonts
10179  packages.
10180  They need to be available on your system in order to use these environments.
10181 \end_layout
10182
10183 \begin_layout Section
10184 AGU journals (
10185 \family sans
10186 aguplus
10187 \family default
10188 )
10189 \end_layout
10190
10191 \begin_layout Standard
10192 by 
10193 \shape smallcaps
10194 Martin Vermeer
10195 \end_layout
10196
10197 \begin_layout Subsection
10198 Description
10199 \end_layout
10200
10201 \begin_layout Standard
10202 These are the layout files for some of the journals of the American Geophysical
10203  Society.
10204  It is assumed that you have both the AGU's own class files and AGUplus
10205  installed (everything to be found at
10206 \begin_inset Flex URL
10207 status collapsed
10208
10209 \begin_layout Plain Layout
10210
10211 ftp://ftp.agu.org/journals/latex/journals
10212 \end_layout
10213
10214 \end_inset
10215
10216 ).
10217 \end_layout
10218
10219 \begin_layout Subsection
10220 New styles
10221 \end_layout
10222
10223 \begin_layout Standard
10224 Redefined are 
10225 \family sans
10226 Paragraph
10227 \family default
10228
10229 \family sans
10230 Paragraph*
10231 \family default
10232 .
10233  They are still called this in the \SpecialChar LyX
10234  GUI, though their \SpecialChar LaTeX
10235  equivalents in the
10236  AGU classes are 
10237 \family sans
10238 Subsubsubsection
10239 \family default
10240  and 
10241 \family sans
10242 Subsubsubsection*
10243 \family default
10244 .
10245 \end_layout
10246
10247 \begin_layout Standard
10248 Newly defined styles are 
10249 \family sans
10250 Left_Header
10251 \family default
10252
10253 \family sans
10254 Right_Header
10255 \family default
10256
10257 \family sans
10258 Received
10259 \family default
10260
10261 \family sans
10262 Revised
10263 \family default
10264
10265 \family sans
10266 Accepted
10267 \family default
10268
10269 \family sans
10270 CCC
10271 \family default
10272
10273 \family sans
10274 PaperId
10275 \family default
10276
10277 \family sans
10278 AuthorAddr
10279 \family default
10280
10281 \family sans
10282 SlugComment
10283 \family default
10284 .
10285  These are mostly manuscript attributes and defined in the AGU class documentati
10286 on.
10287 \end_layout
10288
10289 \begin_layout Standard
10290 I suspect this is still badly incomplete.
10291 \end_layout
10292
10293 \begin_layout Subsection
10294 New floats
10295 \end_layout
10296
10297 \begin_layout Standard
10298
10299 \family sans
10300 Planotable
10301 \family default
10302  and 
10303 \family sans
10304 Plate
10305 \family default
10306 .
10307  We also have a new 
10308 \family sans
10309 Table_Caption
10310 \family default
10311 .
10312 \end_layout
10313
10314 \begin_layout Subsection
10315 Supported journals
10316 \end_layout
10317
10318 \begin_layout Itemize
10319
10320 \emph on
10321 Journal of Geophysical Research
10322 \emph default
10323
10324 \family typewriter
10325 jgrga.layout
10326 \family default
10327  — Martin Vermeer
10328 \end_layout
10329
10330 \begin_layout Standard
10331 Add your own, it isn't so hard! Look at the 
10332 \family typewriter
10333 jgrga.layout
10334 \family default
10335  example and 
10336 \family typewriter
10337 aguplus.inc
10338 \family default
10339 .
10340 \end_layout
10341
10342 \begin_layout Subsection
10343 Bugs and things to remember
10344 \end_layout
10345
10346 \begin_layout Standard
10347 In order to use the new layouts, you must remember to do the following for
10348  a new document:
10349 \end_layout
10350
10351 \begin_layout Enumerate
10352
10353 \emph on
10354 Turn off babel
10355 \emph default
10356 .
10357  This can be done in the 
10358 \family sans
10359 Layout\SpecialChar menuseparator
10360 Document
10361 \family default
10362  or 
10363 \family sans
10364 Document\SpecialChar menuseparator
10365 Settings
10366 \family default
10367  menu item.
10368  (AGU articles are always in English, right? So 
10369 \emph on
10370 don't
10371 \emph default
10372  choose a language.)
10373 \end_layout
10374
10375 \begin_layout Enumerate
10376 Enter 
10377 \family typewriter
10378 jgrga
10379 \family default
10380  into the document's 
10381 \family sans
10382 Extra Options
10383 \family default
10384  field.
10385  (Yes, this is a bug.)
10386 \end_layout
10387
10388 \begin_layout Enumerate
10389 Make sure you use the 
10390 \family typewriter
10391 agu.bst
10392 \family default
10393  bibliography style, by entering 
10394 \family sans
10395 agu
10396 \family default
10397  into the second field of the Bib\SpecialChar TeX
10398  inset.
10399  None of the standard styles will do.
10400 \end_layout
10401
10402 \begin_layout Section
10403 Broadway
10404 \end_layout
10405
10406 \begin_layout Standard
10407 by 
10408 \shape smallcaps
10409 Garst Reese
10410 \end_layout
10411
10412 \begin_layout Subsection
10413 Introduction
10414 \end_layout
10415
10416 \begin_layout Standard
10417 Broadway is for writing plays.
10418  The format is more decorative than Hollywood, and much less standardized.
10419  This format should be suitable for workshops.
10420 \end_layout
10421
10422 \begin_layout Subsection
10423 Special problems
10424 \end_layout
10425
10426 \begin_layout Standard
10427 The same as in Hollywood.
10428 \end_layout
10429
10430 \begin_layout Subsection
10431 Special features
10432 \end_layout
10433
10434 \begin_layout Standard
10435 Insert the 
10436 \family sans
10437 Speaker
10438 \family default
10439  names as labels then cross-reference the label to insert the name.
10440  The cross-reference dialog will show the current cast of characters.
10441 \end_layout
10442
10443 \begin_layout Subsection
10444 Paper size and Margins
10445 \end_layout
10446
10447 \begin_layout Standard
10448 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10449 \end_layout
10450
10451 \begin_layout Subsection
10452 Environments
10453 \end_layout
10454
10455 \begin_layout Standard
10456 The following environments are available.
10457  You can use broadway.bind to get the bind keys shown at the right.
10458 \end_layout
10459
10460 \begin_layout Itemize
10461
10462 \family sans
10463 Standard
10464 \begin_inset Newline newline
10465 \end_inset
10466
10467
10468 \family default
10469 You should not have to use this, but it is here for anything that does not
10470  fit otherwise.
10471 \end_layout
10472
10473 \begin_layout Itemize
10474
10475 \family sans
10476 Narrative
10477 \begin_inset space \hfill{}
10478 \end_inset
10479
10480 M-z n
10481 \begin_inset Newline newline
10482 \end_inset
10483
10484
10485 \family default
10486 Used to describe stage setting and the action.
10487  First use of speaker names in all CAPs.
10488 \end_layout
10489
10490 \begin_layout Itemize
10491
10492 \family sans
10493 ACT
10494 \begin_inset space \hfill{}
10495 \end_inset
10496
10497 M-z a
10498 \begin_inset Newline newline
10499 \end_inset
10500
10501
10502 \family default
10503 Automatically numbered.
10504  On screen it will be arabic, but will print as Roman.
10505 \end_layout
10506
10507 \begin_layout Itemize
10508
10509 \family sans
10510 ACT*
10511 \begin_inset space \hfill{}
10512 \end_inset
10513
10514 M-z S at
10515 \begin_inset Newline newline
10516 \end_inset
10517
10518
10519 \family default
10520 Subtitle for 
10521 \family sans
10522 ACT.
10523
10524 \family default
10525  It is just centered text.
10526 \end_layout
10527
10528 \begin_layout Itemize
10529
10530 \family sans
10531 SCENE
10532 \begin_inset space \hfill{}
10533 \end_inset
10534
10535 M-z S-S
10536 \begin_inset Newline newline
10537 \end_inset
10538
10539
10540 \family default
10541 Not automatically numbered.
10542  You supply the number.
10543  This is because I couldn't figure out how.
10544 \end_layout
10545
10546 \begin_layout Itemize
10547
10548 \family sans
10549 AT_RISE:
10550 \begin_inset space \hfill{}
10551 \end_inset
10552
10553 M-z S-R
10554 \begin_inset Newline newline
10555 \end_inset
10556
10557
10558 \family default
10559 A special case of Narrative to describe the setting and action as the curtain
10560  rises.
10561 \end_layout
10562
10563 \begin_layout Itemize
10564
10565 \family sans
10566 Speaker
10567 \begin_inset space \hfill{}
10568 \end_inset
10569
10570 M-z s
10571 \begin_inset Newline newline
10572 \end_inset
10573
10574
10575 \family default
10576 The speaker's (actor's) title, centered in all CAPS.
10577 \end_layout
10578
10579 \begin_layout Itemize
10580
10581 \family sans
10582 Parenthetical
10583 \begin_inset space \hfill{}
10584 \end_inset
10585
10586 M-z p
10587 \begin_inset Newline newline
10588 \end_inset
10589
10590
10591 \family default
10592 Instructions to the speaker.
10593  The parentheses are automatically inserted.
10594  The ( will appear on screen, but both will be in the printed play.
10595  This environment is only used within 
10596 \family sans
10597 Dialogue
10598 \family default
10599 .
10600 \end_layout
10601
10602 \begin_layout Itemize
10603
10604 \family sans
10605 Dialogue
10606 \begin_inset space \hfill{}
10607 \end_inset
10608
10609 M-z d
10610 \begin_inset Newline newline
10611 \end_inset
10612
10613
10614 \family default
10615 What the Speaker says.
10616 \end_layout
10617
10618 \begin_layout Itemize
10619
10620 \family sans
10621 CURTAIN
10622 \begin_inset space \hfill{}
10623 \end_inset
10624
10625 M-z S-C
10626 \begin_inset Newline newline
10627 \end_inset
10628
10629
10630 \family default
10631 The curtain comes down.
10632 \end_layout
10633
10634 \begin_layout Itemize
10635
10636 \family sans
10637 Title
10638 \begin_inset space \hfill{}
10639 \end_inset
10640
10641 M-z S-T
10642 \end_layout
10643
10644 \begin_layout Itemize
10645
10646 \family sans
10647 Author
10648 \begin_inset space \hfill{}
10649 \end_inset
10650
10651 M-z S-A
10652 \end_layout
10653
10654 \begin_layout Itemize
10655
10656 \family sans
10657 Right_Address
10658 \begin_inset space \hfill{}
10659 \end_inset
10660
10661 M-z r
10662 \end_layout
10663
10664 \begin_layout Standard
10665 Hello there.
10666 \end_layout
10667
10668 \begin_layout Section
10669 Dinbrief
10670 \end_layout
10671
10672 \begin_layout Standard
10673 The document class 
10674 \family sans
10675 dinbrief
10676 \family default
10677  can be used to type letters according to German conventions.
10678  A template file is included in 
10679 \family typewriter
10680 .../lyx/share/templates
10681 \family default
10682  for you to use as a starting point.
10683 \end_layout
10684
10685 \begin_layout Section
10686 EGS journals (
10687 \family sans
10688 egs
10689 \family default
10690 )
10691 \end_layout
10692
10693 \begin_layout Standard
10694 by 
10695 \shape smallcaps
10696 Martin Vermeer
10697 \end_layout
10698
10699 \begin_layout Subsection
10700 Description
10701 \end_layout
10702
10703 \begin_layout Standard
10704 This is the layout file for the European Geophysical Society journals.
10705  The needed 
10706 \family typewriter
10707 egs.cls
10708 \family default
10709  can be downloaded from the web site of the EGS under 
10710 \begin_inset Flex URL
10711 status collapsed
10712
10713 \begin_layout Plain Layout
10714
10715 www.copernicus.org
10716 \end_layout
10717
10718 \end_inset
10719
10720 .
10721 \end_layout
10722
10723 \begin_layout Subsection
10724 New styles
10725 \end_layout
10726
10727 \begin_layout Standard
10728
10729 \family sans
10730 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10731  Accepted
10732 \family default
10733
10734 \family sans
10735 Offsets
10736 \family default
10737 .
10738  The current layout file is unfortunately very unmodular and would benefit
10739  from using the various 
10740 \family typewriter
10741 std*.inc
10742 \family default
10743  file inclusions.
10744 \end_layout
10745
10746 \begin_layout Section
10747 Elsevier Journals
10748 \end_layout
10749
10750 \begin_layout Standard
10751 See the \SpecialChar LyX
10752  template file 
10753 \family typewriter
10754 elsarticle.lyx
10755 \family default
10756 .
10757  It contains all infos you need.
10758 \end_layout
10759
10760 \begin_layout Section
10761 Foils [aka 
10762 \family sans
10763 Foil\SpecialChar TeX
10764
10765 \family default
10766 ]
10767 \begin_inset CommandInset label
10768 LatexCommand label
10769 name "sec:foiltex"
10770
10771 \end_inset
10772
10773
10774 \end_layout
10775
10776 \begin_layout Standard
10777 by 
10778 \noun on
10779 Allan Rae
10780 \end_layout
10781
10782 \begin_layout Subsection
10783 Introduction
10784 \end_layout
10785
10786 \begin_layout Standard
10787 This section describes how to use \SpecialChar LyX
10788  to make slides for overhead projectors.
10789  There are two document classes that can do this: the default slides class
10790  and the 
10791 \family sans
10792 Foil\SpecialChar TeX
10793
10794 \family default
10795  slides class.
10796  This section documents the latter.
10797 \end_layout
10798
10799 \begin_layout Standard
10800 I'm going to say this again, nice and clear, so that there's no misunderstanding
10801 :
10802 \end_layout
10803
10804 \begin_layout Standard
10805 \begin_inset VSpace bigskip
10806 \end_inset
10807
10808
10809 \end_layout
10810
10811 \begin_layout Standard
10812 \align center
10813
10814 \size large
10815 This section documents the class 
10816 \begin_inset Quotes eld
10817 \end_inset
10818
10819
10820 \family sans
10821 slides (Foil
10822 \change_inserted -712698321 1437633339
10823 TeX
10824 \change_deleted -712698321 1437633344
10825 \SpecialChar TeX
10826
10827 \change_unchanged
10828 )
10829 \family default
10830
10831 \begin_inset Quotes erd
10832 \end_inset
10833
10834  
10835 \emph on
10836 only.
10837 \end_layout
10838
10839 \begin_layout Standard
10840 \begin_inset VSpace bigskip
10841 \end_inset
10842
10843
10844 \end_layout
10845
10846 \begin_layout Standard
10847 If you're looking for the documentation for 
10848 \begin_inset Quotes eld
10849 \end_inset
10850
10851
10852 \family sans
10853 slides (default)
10854 \family default
10855
10856 \begin_inset Quotes erd
10857 \end_inset
10858
10859 , check out section
10860 \begin_inset space ~
10861 \end_inset
10862
10863
10864 \begin_inset CommandInset ref
10865 LatexCommand ref
10866 reference "sec:slitex"
10867
10868 \end_inset
10869
10870 .
10871  If your machine doesn't have the 
10872 \family sans
10873 foils
10874 \family default
10875  class [
10876 \begin_inset Quotes eld
10877 \end_inset
10878
10879
10880 \family sans
10881 slides (Foil
10882 \change_inserted -712698321 1437633364
10883 TeX
10884 \change_deleted -712698321 1437633362
10885 \SpecialChar TeX
10886
10887 \change_unchanged
10888 )
10889 \family default
10890
10891 \begin_inset Quotes erd
10892 \end_inset
10893
10894 ] installed, you'll probably have to use the default 
10895 \family sans
10896 slides
10897 \family default
10898  class, which isn't quite as good as 
10899 \family sans
10900 foils.
10901 \end_layout
10902
10903 \begin_layout Standard
10904 The 
10905 \family sans
10906 foils
10907 \family default
10908  class is designed for use with version 2.1 of the 
10909 \family sans
10910 foils.cls
10911 \family default
10912  \SpecialChar LaTeX
10913  class file which is now an integral part of \SpecialChar LaTeX2e
10914 .
10915 \end_layout
10916
10917 \begin_layout Subsection
10918 Getting Started
10919 \end_layout
10920
10921 \begin_layout Standard
10922 Obviously, to use this document class, you need to select 
10923 \begin_inset Quotes eld
10924 \end_inset
10925
10926
10927 \family sans
10928 slides (Foil
10929 \change_inserted -712698321 1437633373
10930 TeX
10931 \change_deleted -712698321 1437633373
10932 \SpecialChar TeX
10933
10934 \change_unchanged
10935 )
10936 \family default
10937
10938 \begin_inset Quotes erd
10939 \end_inset
10940
10941  from the 
10942 \family sans
10943 Class
10944 \family default
10945  entry in the 
10946 \family sans
10947 Document
10948 \begin_inset space ~
10949 \end_inset
10950
10951 Layout
10952 \family default
10953  dialog.
10954  There are some settings in the 
10955 \family sans
10956 Document
10957 \begin_inset space ~
10958 \end_inset
10959
10960 Layout
10961 \family default
10962  dialog that you should know about that are specific to this class:
10963 \end_layout
10964
10965 \begin_layout Itemize
10966 Don't change the options 
10967 \family sans
10968 Sides
10969 \family default
10970  and 
10971 \family sans
10972 Columns
10973 \family default
10974  on the 
10975 \family sans
10976 Document
10977 \begin_inset space ~
10978 \end_inset
10979
10980 Layout
10981 \family default
10982  dialog.
10983  They're ignored by the 
10984 \family sans
10985 foils
10986 \family default
10987  class.
10988 \end_layout
10989
10990 \begin_layout Itemize
10991 The default font size is 20
10992 \begin_inset space \thinspace{}
10993 \end_inset
10994
10995 pt with the other options being 17
10996 \begin_inset space \thinspace{}
10997 \end_inset
10998
10999 pt, 25
11000 \begin_inset space \thinspace{}
11001 \end_inset
11002
11003 pt and 30
11004 \begin_inset space \thinspace{}
11005 \end_inset
11006
11007 pt.
11008 \end_layout
11009
11010 \begin_layout Itemize
11011 The default font is 
11012 \family sans
11013 sans
11014 \family default
11015  
11016 \family sans
11017 serif
11018 \family default
11019  but all math equations are still typeset in the usual roman font.
11020 \end_layout
11021
11022 \begin_layout Itemize
11023
11024 \family sans
11025 Foil\SpecialChar TeX
11026
11027 \family default
11028  supports A4 and Letter paper sizes as well as a special size for working
11029  with 35
11030 \begin_inset space \thinspace{}
11031 \end_inset
11032
11033 mm slides.
11034  It doesn't support A5, B5, legal or executive paper sizes.
11035 \end_layout
11036
11037 \begin_layout Itemize
11038 Don't bother changing the 
11039 \family sans
11040 Float Placement
11041 \family default
11042  settings because they are ignored anyway.
11043  All floats appear where they are defined in the text.
11044 \end_layout
11045
11046 \begin_layout Itemize
11047 The 
11048 \family sans
11049 Pagestyle
11050 \family default
11051  setting behaves a bit differently for this class.
11052  
11053 \family sans
11054 Foil\SpecialChar TeX
11055
11056 \family default
11057  provides extensive footer and header capabilities including a user-defined
11058  logo.
11059  See section
11060 \begin_inset space ~
11061 \end_inset
11062
11063
11064 \begin_inset CommandInset ref
11065 LatexCommand ref
11066 reference "sec:foilfoot"
11067
11068 \end_inset
11069
11070  for more details.
11071  The title page is treated differently to all other pages in the document
11072  and is 
11073 \emph on
11074 always
11075 \emph default
11076  unnumbered and 
11077 \emph on
11078 always
11079 \emph default
11080  has the logo centered at the bottom of the page (if one is defined).
11081  The possible page style choices and what they do are as follows:
11082 \begin_inset Separator parbreak
11083 \end_inset
11084
11085
11086 \end_layout
11087
11088 \begin_deeper
11089 \begin_layout Labeling
11090 \labelwidthstring MMMMMMM
11091
11092 \family sans
11093 \series bold
11094 empty
11095 \family default
11096 \series default
11097  The final output contains no page numbers, or other headers or footers
11098  (except footnotes of course).
11099  
11100 \end_layout
11101
11102 \begin_layout Labeling
11103 \labelwidthstring MMMMMMM
11104
11105 \family sans
11106 \series bold
11107 plain
11108 \family default
11109 \series default
11110  The final output contains page numbers centered at the bottom of the page.
11111  No other headings or footers (other than footnotes).
11112 \end_layout
11113
11114 \begin_layout Labeling
11115 \labelwidthstring MMMMMMM
11116
11117 \series bold
11118 foilheadings
11119 \series default
11120  Page numbers in lower right corner.
11121  Additional headers and footers are also shown.
11122  This is also the default.
11123 \end_layout
11124
11125 \begin_layout Labeling
11126 \labelwidthstring MMMMMMM
11127
11128 \series bold
11129 fancy
11130 \series default
11131  Gives you access to the 
11132 \family sans
11133 fancyheadings
11134 \family default
11135  package although its use with 
11136 \family sans
11137 Foil\SpecialChar TeX
11138
11139 \family default
11140  is discouraged by the writer of the 
11141 \family sans
11142 Foil\SpecialChar TeX
11143
11144 \family default
11145  package because of some potential page layout clashes.
11146 \end_layout
11147
11148 \end_deeper
11149 \begin_layout Subsubsection
11150 Extra Options
11151 \end_layout
11152
11153 \begin_layout Standard
11154 The following options may be used in the extra class options in the 
11155 \family sans
11156 Document\SpecialChar menuseparator
11157 Settings
11158 \family default
11159  dialog.
11160 \end_layout
11161
11162 \begin_layout Labeling
11163 \labelwidthstring MMMMMMx
11164
11165 \series bold
11166 35mmSlide
11167 \series default
11168  This sets up the page layout for 7.33
11169 \begin_inset space \thinspace{}
11170 \end_inset
11171
11172 in by 11
11173 \begin_inset space \thinspace{}
11174 \end_inset
11175
11176 in paper, which is about the same aspect ratio as a 35
11177 \begin_inset space \thinspace{}
11178 \end_inset
11179
11180 mm slide, making it a bit easier to work with this medium.
11181 \end_layout
11182
11183 \begin_layout Labeling
11184 \labelwidthstring MMMMMMx
11185
11186 \series bold
11187 headrule
11188 \series default
11189  Places a rule across the page below the header on every page except the
11190  title page.
11191 \end_layout
11192
11193 \begin_layout Labeling
11194 \labelwidthstring MMMMMMx
11195
11196 \series bold
11197 footrule
11198 \series default
11199  Places a rule across the page above the footer on every page except the
11200  title page.
11201 \end_layout
11202
11203 \begin_layout Labeling
11204 \labelwidthstring MMMMMMx
11205
11206 \series bold
11207 dvips
11208 \series default
11209  This is automatically set each time you create a new 
11210 \family sans
11211 foils
11212 \family default
11213  document.
11214  This option tells 
11215 \family sans
11216 Foil\SpecialChar TeX
11217
11218 \family default
11219  to use the dvips driver to rotate those pages that are set as landscape
11220  foils.
11221 \end_layout
11222
11223 \begin_layout Labeling
11224 \labelwidthstring MMMMMMx
11225
11226 \series bold
11227 landscape
11228 \series default
11229  Simply changes the page dimensions to those of a landscape page but doesn't
11230  do any rotation.
11231  Thus if you use this option you need to use an external program to rotate
11232  each page or feed your paper through your printer as landscape.
11233  Note that this option effectively reverses the roles of the 
11234 \family sans
11235 Foilhead
11236 \family default
11237  and 
11238 \family sans
11239 Rotatefoilhead
11240 \family default
11241  environments (don't worry these are described in the next section).
11242 \end_layout
11243
11244 \begin_layout Labeling
11245 \labelwidthstring MMMMMMx
11246
11247 \series bold
11248 leqno
11249 \series default
11250  Equation numbers on the left.
11251 \end_layout
11252
11253 \begin_layout Labeling
11254 \labelwidthstring MMMMMMx
11255
11256 \series bold
11257 fleqn
11258 \series default
11259  Flush-left equations.
11260 \end_layout
11261
11262 \begin_layout Subsection
11263 Supported Environments
11264 \end_layout
11265
11266 \begin_layout Standard
11267 Most of the environments commonly supported in other classes are also supported
11268  by the 
11269 \family sans
11270 foils
11271 \family default
11272  class.
11273  There are several additional environments provided by 
11274 \family sans
11275 Foil\SpecialChar TeX
11276
11277 \family default
11278  as well as a couple added by \SpecialChar LyX
11279 .
11280  The following environments are shared with other classes:
11281 \end_layout
11282
11283 \begin_layout Standard
11284 \begin_inset Flex Multiple Columns
11285 status open
11286
11287 \begin_layout Itemize
11288
11289 \family sans
11290 Standard
11291 \end_layout
11292
11293 \begin_layout Itemize
11294
11295 \family sans
11296 Itemize
11297 \end_layout
11298
11299 \begin_layout Itemize
11300
11301 \family sans
11302 Enumerate
11303 \end_layout
11304
11305 \begin_layout Itemize
11306
11307 \family sans
11308 Description
11309 \end_layout
11310
11311 \begin_layout Itemize
11312
11313 \family sans
11314 List
11315 \end_layout
11316
11317 \begin_layout Itemize
11318
11319 \family sans
11320 \SpecialChar LyX
11321 -Code
11322 \end_layout
11323
11324 \begin_layout Itemize
11325
11326 \family sans
11327 Verse
11328 \end_layout
11329
11330 \begin_layout Itemize
11331
11332 \family sans
11333 Quote
11334 \end_layout
11335
11336 \begin_layout Itemize
11337
11338 \family sans
11339 Quotation
11340 \end_layout
11341
11342 \begin_layout Itemize
11343
11344 \family sans
11345 Title
11346 \end_layout
11347
11348 \begin_layout Itemize
11349
11350 \family sans
11351 Author
11352 \end_layout
11353
11354 \begin_layout Itemize
11355
11356 \family sans
11357 Date
11358 \end_layout
11359
11360 \begin_layout Itemize
11361
11362 \family sans
11363 Abstract
11364 \end_layout
11365
11366 \begin_layout Itemize
11367
11368 \family sans
11369 Bibliography
11370 \end_layout
11371
11372 \begin_layout Itemize
11373
11374 \family sans
11375 Address
11376 \end_layout
11377
11378 \begin_layout Itemize
11379
11380 \family sans
11381 RightAddress
11382 \end_layout
11383
11384 \begin_layout Itemize
11385
11386 \family sans
11387 Caption
11388 \end_layout
11389
11390 \begin_layout Itemize
11391
11392 \family sans
11393 Comment
11394 \end_layout
11395
11396 \end_inset
11397
11398
11399 \end_layout
11400
11401 \begin_layout Standard
11402 That is, all the major environments apart from the sectioning environments.
11403  Since foils are essentially self-contained sections, with a title and body,
11404  
11405 \family sans
11406 Foil\SpecialChar TeX
11407
11408 \family default
11409  provides specific commands for starting new foils and these are:
11410 \end_layout
11411
11412 \begin_layout Itemize
11413
11414 \family sans
11415 Foilhead
11416 \end_layout
11417
11418 \begin_layout Itemize
11419
11420 \family sans
11421 Rotatefoilhead
11422 \end_layout
11423
11424 \begin_layout Standard
11425 \SpecialChar LyX
11426  also provides slightly modified versions of these two environments called:
11427 \end_layout
11428
11429 \begin_layout Itemize
11430
11431 \family sans
11432 ShortFoilhead
11433 \end_layout
11434
11435 \begin_layout Itemize
11436
11437 \family sans
11438 ShortRotatefoilhead
11439 \end_layout
11440
11441 \begin_layout Standard
11442 and the differences will be explained in the next section.
11443 \end_layout
11444
11445 \begin_layout Standard
11446 Since foils are often used in presenting ideas or new theorems and such
11447  
11448 \family sans
11449 Foil\SpecialChar TeX
11450
11451 \family default
11452  also provides a comprehensive box of goodies for presenting them:
11453 \end_layout
11454
11455 \begin_layout Standard
11456 \begin_inset Flex Multiple Columns
11457 status open
11458
11459 \begin_layout Itemize
11460
11461 \family sans
11462 Theorem
11463 \end_layout
11464
11465 \begin_layout Itemize
11466
11467 \family sans
11468 Lemma
11469 \end_layout
11470
11471 \begin_layout Itemize
11472
11473 \family sans
11474 Corollary
11475 \end_layout
11476
11477 \begin_layout Itemize
11478
11479 \family sans
11480 Proposition
11481 \end_layout
11482
11483 \begin_layout Itemize
11484
11485 \family sans
11486 Definition
11487 \end_layout
11488
11489 \begin_layout Itemize
11490
11491 \family sans
11492 Proof
11493 \end_layout
11494
11495 \begin_layout Itemize
11496
11497 \family sans
11498 Theorem*
11499 \end_layout
11500
11501 \begin_layout Itemize
11502
11503 \family sans
11504 Lemma*
11505 \end_layout
11506
11507 \begin_layout Itemize
11508
11509 \family sans
11510 Corollary*
11511 \end_layout
11512
11513 \begin_layout Itemize
11514
11515 \family sans
11516 Proposition*
11517 \end_layout
11518
11519 \begin_layout Itemize
11520
11521 \family sans
11522 Definition*
11523 \end_layout
11524
11525 \end_inset
11526
11527
11528 \end_layout
11529
11530 \begin_layout Standard
11531 The starred versions are unnumbered while the unstarred versions are numbered.
11532  There are also two list environments added by \SpecialChar LyX
11533  and these are:
11534 \end_layout
11535
11536 \begin_layout Itemize
11537
11538 \family sans
11539 TickList
11540 \end_layout
11541
11542 \begin_layout Itemize
11543
11544 \family sans
11545 CrossList
11546 \end_layout
11547
11548 \begin_layout Standard
11549
11550 \family sans
11551 Foil\SpecialChar TeX
11552
11553 \family default
11554  provides some powerful header and footer capabilities that are best set
11555  in the preamble although they may be set at any point in a document.
11556  If you want to change these settings in your document the best place to
11557  do so is at the very top of a foil, i.
11558 \begin_inset space \thinspace{}
11559 \end_inset
11560
11561 e.
11562 \emph on
11563
11564 \begin_inset space \space{}
11565 \end_inset
11566
11567
11568 \emph default
11569 straight after the foilhead.
11570 \end_layout
11571
11572 \begin_layout Standard
11573 For this purpose, the following command styles are provided [
11574 \shape smallcaps
11575 Martin Vermeer
11576 \shape default
11577 ]:
11578 \end_layout
11579
11580 \begin_layout Standard
11581 \begin_inset Flex Multiple Columns
11582 status open
11583
11584 \begin_layout Itemize
11585
11586 \family sans
11587 My
11588 \begin_inset space ~
11589 \end_inset
11590
11591 Logo
11592 \end_layout
11593
11594 \begin_layout Itemize
11595
11596 \family sans
11597 Restriction
11598 \end_layout
11599
11600 \begin_layout Itemize
11601
11602 \family sans
11603 Right
11604 \begin_inset space ~
11605 \end_inset
11606
11607 Footer
11608 \end_layout
11609
11610 \begin_layout Itemize
11611
11612 \family sans
11613 Right
11614 \begin_inset space ~
11615 \end_inset
11616
11617 Header
11618 \end_layout
11619
11620 \begin_layout Itemize
11621
11622 \family sans
11623 Left
11624 \begin_inset space ~
11625 \end_inset
11626
11627 Header
11628 \family default
11629
11630 \begin_inset Separator parbreak
11631 \end_inset
11632
11633
11634 \end_layout
11635
11636 \begin_deeper
11637 \begin_layout Plain Layout
11638 \begin_inset space ~
11639 \end_inset
11640
11641
11642 \end_layout
11643
11644 \end_deeper
11645 \end_inset
11646
11647
11648 \end_layout
11649
11650 \begin_layout Standard
11651 There are also a few commands provided by 
11652 \family sans
11653 Foil\SpecialChar TeX
11654
11655 \family default
11656  that aren't directly supported by \SpecialChar LyX
11657  but I'll tell you what they do and how
11658  to use them in section
11659 \begin_inset space ~
11660 \end_inset
11661
11662
11663 \begin_inset CommandInset ref
11664 LatexCommand ref
11665 reference "sec:unsuppfoils"
11666
11667 \end_inset
11668
11669 .
11670 \end_layout
11671
11672 \begin_layout Subsection
11673 Building a Set of Foils
11674 \end_layout
11675
11676 \begin_layout Standard
11677 This section will give a simple introduction to using the different environments
11678  to build a set of foils.
11679  If you want to see an example set of foils, take a look at the 
11680 \family typewriter
11681 Foils.lyx
11682 \family default
11683  file you find in \SpecialChar LyX
11684 's 
11685 \family typewriter
11686 examples
11687 \family default
11688  folder.
11689 \end_layout
11690
11691 \begin_layout Subsubsection
11692 Give It a Title Page
11693 \end_layout
11694
11695 \begin_layout Standard
11696 Unlike other classes that provide 
11697 \family sans
11698 Title
11699 \family default
11700
11701 \family sans
11702 Author
11703 \family default
11704
11705 \family sans
11706 Date
11707 \family default
11708  and 
11709 \family sans
11710 Abstract
11711 \family default
11712  environments, 
11713 \family sans
11714 foils
11715 \family default
11716  creates the title on a page of its own.
11717  If you leave out the 
11718 \family sans
11719 Date
11720 \family default
11721  environment \SpecialChar LaTeX
11722  will substitute the current date (every time you regenerate
11723  the output).
11724 \end_layout
11725
11726 \begin_layout Subsubsection
11727 Start a New Foil
11728 \end_layout
11729
11730 \begin_layout Standard
11731 As I mentioned earlier, there are four ways of starting a new foil.
11732  For portrait foils you should use 
11733 \family sans
11734 Foilhead
11735 \family default
11736  or 
11737 \family sans
11738 ShortFoilhead.
11739
11740 \family default
11741  The difference between these two environments is the amount of space between
11742  the title of the foil (the foilhead) and the body of the foil.
11743 \end_layout
11744
11745 \begin_layout Standard
11746 Landscape foils are generated using the 
11747 \family sans
11748 Rotatefoilhead
11749 \family default
11750  and 
11751 \family sans
11752 ShortRotatefoilhead
11753 \family default
11754  environments.
11755  Again the only difference is the spacing between foilhead and body.
11756  Both of the short versions have 0.5
11757 \begin_inset space ~
11758 \end_inset
11759
11760 inches less separation between the foilhead and the body.
11761  
11762 \end_layout
11763
11764 \begin_layout Standard
11765 One problem with the support for landscape foils is the requirement that
11766  you have to use the 
11767 \family typewriter
11768 dvips
11769 \family default
11770  driver to generate the PostScript output otherwise the foils won't be rotated.
11771  It is possible to get landscape foils even if you haven't got the 
11772 \family typewriter
11773 dvips
11774 \family default
11775  driver provided you can feed your foils sideways through your printer ;-)
11776 \end_layout
11777
11778 \begin_layout Subsubsection
11779 Theorems, Lemmas, Proofs and more
11780 \end_layout
11781
11782 \begin_layout Standard
11783 Due to a small bug in \SpecialChar LyX
11784  you can't have two of the same type of these environments
11785  directly following each other.
11786  They must be separated by something.
11787  If you try, you will just be extending the previous environment as if you
11788  had merged the two environments together.
11789  So, how do you get around this problem? The simplest option is to insert
11790  some text between the two environments or add a 
11791 \family sans
11792 \SpecialChar LaTeX
11793
11794 \family default
11795  environment between the two with just a 
11796 \begin_inset Quotes eld
11797 \end_inset
11798
11799
11800 \family typewriter
11801 %
11802 \family default
11803
11804 \begin_inset Quotes erd
11805 \end_inset
11806
11807  in it.
11808  This will force \SpecialChar LyX
11809  to produce two separate environments and hence the correct
11810  \SpecialChar LaTeX
11811  output.
11812  An example is provided in the example file included with the \SpecialChar LyX
11813  distribution.
11814  Remember, this problem only occurs if you are trying to place two of the
11815  same type of theorem-like environments one directly after the other.
11816 \end_layout
11817
11818 \begin_layout Subsubsection
11819 Lists
11820 \end_layout
11821
11822 \begin_layout Standard
11823 You get all the commonly supported list styles found in other classes as
11824  well as two new ones.
11825  I'll only describe the new ones here.
11826  If you want to find out more about the other list environments check out
11827  the 
11828 \emph on
11829 User's Guide.
11830
11831 \emph default
11832  If you intend to use itemized lists you might also want to read about the
11833  
11834 \family sans
11835 Itemize
11836 \begin_inset space ~
11837 \end_inset
11838
11839 Bullet
11840 \begin_inset space ~
11841 \end_inset
11842
11843 Selection
11844 \family default
11845  dialog described above in section
11846 \begin_inset space ~
11847 \end_inset
11848
11849
11850 \begin_inset CommandInset ref
11851 LatexCommand ref
11852 reference "sec:bullet"
11853
11854 \end_inset
11855
11856 .
11857 \end_layout
11858
11859 \begin_layout Standard
11860 The two new list styles, 
11861 \family sans
11862 TickList
11863 \family default
11864  and 
11865 \family sans
11866 CrossList
11867 \family default
11868 , are designed to make it easier for you to create lists of do's and don'ts
11869  or right and wrong by providing dedicated environments that use a tick
11870  or a cross as the label of the list.
11871  These lists are in fact dedicated variants of the 
11872 \family sans
11873 Itemize
11874 \family default
11875  environment.
11876  They do however require that you have the 
11877 \family typewriter
11878 psnfss
11879 \family default
11880  packages installed.
11881 \end_layout
11882
11883 \begin_layout Subsubsection
11884 Figures and Tables
11885 \end_layout
11886
11887 \begin_layout Standard
11888
11889 \family sans
11890 Foil\SpecialChar TeX
11891
11892 \family default
11893  redefines the floating tables and figures so that they appear exactly where
11894  they are in the text rather than pushing them to the top of the page or
11895  to some user specified location.
11896  In fact if you change the float placement settings they are simply ignored.
11897 \end_layout
11898
11899 \begin_layout Subsubsection
11900 Page Headers and Footers
11901 \begin_inset CommandInset label
11902 LatexCommand label
11903 name "sec:foilfoot"
11904
11905 \end_inset
11906
11907
11908 \end_layout
11909
11910 \begin_layout Standard
11911
11912 \family sans
11913 My
11914 \begin_inset space ~
11915 \end_inset
11916
11917 Logo
11918 \family default
11919  and 
11920 \family sans
11921 Restriction
11922 \family default
11923  are two commands used to control the left-footer text string.
11924  The first is meant to allow you to include a graphic logo on your foils
11925  and defaults to 
11926 \begin_inset Quotes eld
11927 \end_inset
11928
11929 -Typeset by 
11930 \family sans
11931 Foil\SpecialChar TeX
11932
11933 \family default
11934 -
11935 \begin_inset Quotes erd
11936 \end_inset
11937
11938 .
11939  While the second is meant to provide a classification for the audience,
11940  
11941 \emph on
11942 e.
11943 \begin_inset space \thinspace{}
11944 \end_inset
11945
11946 g.
11947 \emph default
11948
11949 \begin_inset space \space{}
11950 \end_inset
11951
11952 Confidential.
11953  It is empty by default.
11954 \end_layout
11955
11956 \begin_layout Standard
11957 The remaining page corners can be filled by 
11958 \family sans
11959 Right
11960 \begin_inset space ~
11961 \end_inset
11962
11963 Footer
11964 \family default
11965  (which defaults to page numbers), 
11966 \family sans
11967 Right
11968 \begin_inset space ~
11969 \end_inset
11970
11971 Header
11972 \family default
11973  (top right) and 
11974 \family sans
11975 Left
11976 \begin_inset space ~
11977 \end_inset
11978
11979 Header
11980 \family default
11981  (top left).
11982 \end_layout
11983
11984 \begin_layout Subsection
11985 Unsupported 
11986 \family sans
11987 Foil\SpecialChar TeX
11988
11989 \family default
11990  Goodies
11991 \begin_inset CommandInset label
11992 LatexCommand label
11993 name "sec:unsuppfoils"
11994
11995 \end_inset
11996
11997
11998 \end_layout
11999
12000 \begin_layout Standard
12001 All the commands mentioned below need to be set in a 
12002 \family sans
12003 \SpecialChar LaTeX
12004
12005 \family default
12006  environment or as 
12007 \family sans
12008 \SpecialChar TeX
12009
12010 \family default
12011  within another environment.
12012 \end_layout
12013
12014 \begin_layout Subsubsection
12015 Lengths
12016 \end_layout
12017
12018 \begin_layout Standard
12019 All lengths are adjusted using the 
12020 \family typewriter
12021
12022 \backslash
12023 setlength{
12024 \family default
12025 \emph on
12026 lengthname
12027 \family typewriter
12028 \emph default
12029 }{
12030 \family default
12031 \emph on
12032 newlength
12033 \family typewriter
12034 \emph default
12035 }
12036 \family default
12037  command.
12038  Where 
12039 \emph on
12040 lengthname
12041 \emph default
12042  should be replaced by the name given to the length you want to change and
12043  
12044 \emph on
12045 newlength
12046 \emph default
12047  is the length value.
12048  All lengths should be specified in units of length such as inches (
12049 \family typewriter
12050 in
12051 \family default
12052 ), millimeters (
12053 \family typewriter
12054 mm
12055 \family default
12056 ) or points (
12057 \family typewriter
12058 pt
12059 \family default
12060 ) or relative to some document or font-based length such as 
12061 \family typewriter
12062
12063 \backslash
12064 textwidth
12065 \family default
12066 .
12067  
12068 \end_layout
12069
12070 \begin_layout Standard
12071 It's possible to change the spacing between a foilhead and the body of the
12072  foil by adjusting the length specified by 
12073 \family typewriter
12074
12075 \backslash
12076 foilheadskip
12077 \family default
12078 .
12079  For example, to make 
12080 \emph on
12081 all
12082 \emph default
12083  foilheads 0.5
12084 \begin_inset space \space{}
12085 \end_inset
12086
12087 in closer to their bodies put the following in the preamble: 
12088 \family typewriter
12089
12090 \backslash
12091 setlength{
12092 \backslash
12093 foilheadskip}{-0.5in}
12094 \end_layout
12095
12096 \begin_layout Standard
12097 The spacings around floats can be adjusted by setting these lengths:
12098 \end_layout
12099
12100 \begin_layout Labeling
12101 \labelwidthstring MMMMMMMMMMM
12102
12103 \family typewriter
12104
12105 \backslash
12106 abovefloatskip
12107 \family default
12108  Separation between the text and the top of the float
12109 \end_layout
12110
12111 \begin_layout Labeling
12112 \labelwidthstring MMMMMMMMMMM
12113
12114 \family typewriter
12115
12116 \backslash
12117 abovecaptionskip
12118 \family default
12119  Separation between the float and the caption
12120 \end_layout
12121
12122 \begin_layout Labeling
12123 \labelwidthstring MMMMMMMMMMM
12124
12125 \family typewriter
12126
12127 \backslash
12128 belowcaptionskip
12129 \family default
12130  Separation between the caption and the following text
12131 \end_layout
12132
12133 \begin_layout Labeling
12134 \labelwidthstring MMMMMMMMMMM
12135
12136 \family typewriter
12137
12138 \backslash
12139 captionwidth
12140 \family default
12141  You can make the captions narrower than the surrounding text by adjusting
12142  this length.
12143  Best done relative to 
12144 \family typewriter
12145
12146 \backslash
12147 textwidth
12148 \family default
12149 .
12150 \end_layout
12151
12152 \begin_layout Standard
12153 There are also several title page related lengths that you may find useful
12154  if you have a long title or several authors:
12155 \end_layout
12156
12157 \begin_layout Labeling
12158 \labelwidthstring MMMMMMMMMMM
12159
12160 \family typewriter
12161
12162 \backslash
12163 abovetitleskip
12164 \family default
12165  Separation from headers to 
12166 \family sans
12167 Title
12168 \end_layout
12169
12170 \begin_layout Labeling
12171 \labelwidthstring MMMMMMMMMMM
12172
12173 \family typewriter
12174
12175 \backslash
12176 titleauthorskip
12177 \family default
12178  between 
12179 \family sans
12180 Title
12181 \family default
12182  and 
12183 \family sans
12184 Author
12185 \family default
12186  environments
12187 \end_layout
12188
12189 \begin_layout Labeling
12190 \labelwidthstring MMMMMMMMMMM
12191
12192 \family typewriter
12193
12194 \backslash
12195 authorauthorskip
12196 \family default
12197  between multiple 
12198 \family sans
12199 Author
12200 \family default
12201  lines
12202 \end_layout
12203
12204 \begin_layout Labeling
12205 \labelwidthstring MMMMMMMMMMM
12206
12207 \family typewriter
12208
12209 \backslash
12210 authordateskip
12211 \family default
12212  between the 
12213 \family sans
12214 Author
12215 \family default
12216  and the 
12217 \family sans
12218 Date
12219 \end_layout
12220
12221 \begin_layout Labeling
12222 \labelwidthstring MMMMMMMMMMM
12223
12224 \family typewriter
12225
12226 \backslash
12227 dateabstractskip
12228 \family default
12229  between the 
12230 \family sans
12231 Date
12232 \family default
12233  and the 
12234 \family sans
12235 Abstract
12236 \end_layout
12237
12238 \begin_layout Standard
12239 The last length related command affects all the list environments.
12240  If you place 
12241 \family typewriter
12242
12243 \backslash
12244 zerolistvertdimens
12245 \family default
12246  
12247 \emph on
12248 inside
12249 \emph default
12250  a list environment then all the vertical spacing between the list items
12251  is removed.
12252  Note that this is a command not a length so it doesn't require 
12253 \family typewriter
12254
12255 \backslash
12256 setlength
12257 \family default
12258  like the stuff mentioned above.
12259 \end_layout
12260
12261 \begin_layout Subsubsection
12262 Headers and Footers
12263 \end_layout
12264
12265 \begin_layout Standard
12266 The 
12267 \family typewriter
12268
12269 \backslash
12270 LogoOn
12271 \family default
12272  and 
12273 \family typewriter
12274
12275 \backslash
12276 LogoOff
12277 \family default
12278  commands control whether the logo in the 
12279 \family sans
12280 MyLogo
12281 \family default
12282  definition appear on a given page.
12283  If you put 
12284 \family typewriter
12285
12286 \backslash
12287 LogoOff
12288 \family default
12289  in the preamble then none of the foils will have the logo on them.
12290  If you don't want the logo on a particular page place the 
12291 \family typewriter
12292
12293 \backslash
12294 LogoOff
12295 \family default
12296  directly after the foilhead of that page and the 
12297 \family typewriter
12298
12299 \backslash
12300 LogoOn
12301 \family default
12302  directly after the next foilhead.
12303 \end_layout
12304
12305 \begin_layout Standard
12306 If you decide to use the 
12307 \family sans
12308 fancy
12309 \family default
12310  page style setting in the 
12311 \family sans
12312 Document
12313 \begin_inset space ~
12314 \end_inset
12315
12316 Layout
12317 \family default
12318  dialog you should probably add 
12319 \family typewriter
12320
12321 \backslash
12322 let
12323 \backslash
12324 headwidth
12325 \backslash
12326 textwidth
12327 \family default
12328  to your preamble so headers and footers on landscape pages are correctly
12329  placed when rotated.
12330  This is due to some clashes between the page layouts provided by the 
12331 \family sans
12332 fancyheadings
12333 \family default
12334  package and the 
12335 \family sans
12336 foils
12337 \family default
12338  class.
12339 \end_layout
12340
12341 \begin_layout Section
12342 Hollywood (Hollywood spec scripts)
12343 \end_layout
12344
12345 \begin_layout Standard
12346 by 
12347 \shape smallcaps
12348 Garst Reese
12349 \end_layout
12350
12351 \begin_layout Subsection
12352 Introduction
12353 \end_layout
12354
12355 \begin_layout Standard
12356 Getting the format of a Hollywood script right is a 
12357 \begin_inset Quotes eld
12358 \end_inset
12359
12360 rite of passage.
12361 \begin_inset Quotes erd
12362 \end_inset
12363
12364  It is designed to make the readers focus on content and to be easy and
12365  familiar for the actors to read.
12366  Each page of a script should be one minute of film.
12367  Nothing goes in a script that you cannot see or hear on screen.
12368  The courier 12 pt font should be used throughout.
12369  No italics.
12370 \end_layout
12371
12372 \begin_layout Subsection
12373 Special problems
12374 \end_layout
12375
12376 \begin_layout Standard
12377 Speakers' lines should NEVER break in mid-sentence.
12378  If a speaker's lines continue over a page break, repeat the 
12379 \family sans
12380 Speaker
12381 \family default
12382  title followed by (Cont'd).
12383 \end_layout
12384
12385 \begin_layout Subsection
12386 Special features
12387 \end_layout
12388
12389 \begin_layout Standard
12390 Insert the 
12391 \family sans
12392 Speaker
12393 \family default
12394  names as labels then cross-reference the label to insert the name.
12395  The cross-reference dialog will show the current cast of characters.
12396  You can use this to insert the speaker name in narratives also.
12397 \end_layout
12398
12399 \begin_layout Subsection
12400 Paper size and Margins
12401 \end_layout
12402
12403 \begin_layout Standard
12404 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12405 \end_layout
12406
12407 \begin_layout Subsection
12408 Environments
12409 \end_layout
12410
12411 \begin_layout Standard
12412 The following environments are available.
12413  You can use hollywood.bind to get the bind keys shown at the right.
12414 \end_layout
12415
12416 \begin_layout Itemize
12417
12418 \family sans
12419 Standard
12420 \begin_inset Newline newline
12421 \end_inset
12422
12423
12424 \family default
12425 Used where nothing else works.
12426  Try to avoid it.
12427 \end_layout
12428
12429 \begin_layout Itemize
12430
12431 \family sans
12432 FADE_IN
12433 \family default
12434 :
12435 \begin_inset space \hfill{}
12436 \end_inset
12437
12438
12439 \family sans
12440 M-z S-I
12441 \family default
12442
12443 \begin_inset Newline newline
12444 \end_inset
12445
12446 Usually followed by something like 
12447 \begin_inset Quotes eld
12448 \end_inset
12449
12450 on Sally waking up.
12451 \begin_inset Quotes erd
12452 \end_inset
12453
12454
12455 \end_layout
12456
12457 \begin_layout Itemize
12458
12459 \family sans
12460 INT:
12461 \begin_inset space \hfill{}
12462 \end_inset
12463
12464 M-z i
12465 \begin_inset Newline newline
12466 \end_inset
12467
12468
12469 \family default
12470 Introduces a new INTERIOR camera set-up.
12471  Always followed by DAY or NIGHT, or something similar to define the lighting
12472  required.
12473  Everthing on this line in CAPS.
12474 \end_layout
12475
12476 \begin_layout Itemize
12477
12478 \family sans
12479 EXT:
12480 \begin_inset space \hfill{}
12481 \end_inset
12482
12483 M-z e
12484 \begin_inset Newline newline
12485 \end_inset
12486
12487
12488 \family default
12489 Introduces a new EXTERIOR camera set-up.
12490  Everthing on this line in CAPS.
12491 \end_layout
12492
12493 \begin_layout Itemize
12494
12495 \family sans
12496 Speaker
12497 \begin_inset space \hfill{}
12498 \end_inset
12499
12500 M-z s
12501 \begin_inset Newline newline
12502 \end_inset
12503
12504
12505 \family default
12506 The character speaking.
12507 \end_layout
12508
12509 \begin_layout Itemize
12510
12511 \family sans
12512 Parenthetical
12513 \begin_inset space \hfill{}
12514 \end_inset
12515
12516 M-z p
12517 \begin_inset Newline newline
12518 \end_inset
12519
12520
12521 \family default
12522 Instructions to the speaker.
12523  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12524 .
12525  Both will be printed.
12526 \end_layout
12527
12528 \begin_layout Itemize
12529
12530 \family sans
12531 Dialogue
12532 \begin_inset space \hfill{}
12533 \end_inset
12534
12535 M-z d
12536 \begin_inset Newline newline
12537 \end_inset
12538
12539
12540 \family default
12541 What the 
12542 \family sans
12543 Speaker
12544 \family default
12545  says.
12546 \end_layout
12547
12548 \begin_layout Itemize
12549
12550 \family sans
12551 Transition
12552 \begin_inset space \hfill{}
12553 \end_inset
12554
12555 M-z t
12556 \begin_inset Newline newline
12557 \end_inset
12558
12559
12560 \family default
12561 Camera movement instruction.
12562  e.
12563 \begin_inset space \thinspace{}
12564 \end_inset
12565
12566 g.
12567 \begin_inset space \space{}
12568 \end_inset
12569
12570 CUT TO:
12571 \end_layout
12572
12573 \begin_layout Itemize
12574
12575 \family sans
12576 FADE OUT:
12577 \begin_inset space \hfill{}
12578 \end_inset
12579
12580 M-z S-I
12581 \end_layout
12582
12583 \begin_layout Itemize
12584
12585 \family sans
12586 Author
12587 \begin_inset space \hfill{}
12588 \end_inset
12589
12590 M-z S-A
12591 \end_layout
12592
12593 \begin_layout Itemize
12594
12595 \family sans
12596 Title
12597 \begin_inset space \hfill{}
12598 \end_inset
12599
12600 M-z S-T
12601 \end_layout
12602
12603 \begin_layout Itemize
12604
12605 \family sans
12606 Right_Address
12607 \begin_inset space \hfill{}
12608 \end_inset
12609
12610 M-z r
12611 \end_layout
12612
12613 \begin_layout Subsection
12614 Script jargon
12615 \end_layout
12616
12617 \begin_layout Itemize
12618 (O.S) — off screen
12619 \end_layout
12620
12621 \begin_layout Itemize
12622 (V.0) — voice over
12623 \end_layout
12624
12625 \begin_layout Itemize
12626 b.
12627 \begin_inset space \thinspace{}
12628 \end_inset
12629
12630 g.
12631  — background
12632 \end_layout
12633
12634 \begin_layout Itemize
12635 C.U.
12636  — close-up
12637 \end_layout
12638
12639 \begin_layout Itemize
12640 PAN — camera movement
12641 \end_layout
12642
12643 \begin_layout Itemize
12644 INSERT — cut to close-up of
12645 \end_layout
12646
12647 \begin_layout Section
12648 ijmpc and ijmpd
12649 \end_layout
12650
12651 \begin_layout Standard
12652 by 
12653 \noun on
12654 Panayotis Papasotiriou
12655 \end_layout
12656
12657 \begin_layout Subsection
12658 Overview
12659 \end_layout
12660
12661 \begin_layout Standard
12662 The ijmpc package is a set of macros that facilitates electronic manuscript
12663  submission to the 
12664 \emph on
12665 International Journal of Modern Physics C
12666 \emph default
12667 .
12668  Similarly, the ijmpd package is for creating manuscripts to be submitted
12669  to the 
12670 \emph on
12671 International Journal of Modern Physics D
12672 \emph default
12673 .
12674  Both journals are published by World Scientific.
12675  The corresponding document classes are named 
12676 \family typewriter
12677 ws-ijmpc.cls
12678 \family default
12679  and 
12680 \family typewriter
12681 ws-ijmpd.cls
12682 \family default
12683 , respectively.
12684  These files, together with instructions for the authors, can be downloaded
12685  from the sites 
12686 \begin_inset Flex URL
12687 status collapsed
12688
12689 \begin_layout Plain Layout
12690
12691 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12692 \end_layout
12693
12694 \end_inset
12695
12696  and 
12697 \begin_inset Flex URL
12698 status collapsed
12699
12700 \begin_layout Plain Layout
12701
12702 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12703 \end_layout
12704
12705 \end_inset
12706
12707 .
12708  Both packages are modified versions of the standard 
12709 \begin_inset Quotes eld
12710 \end_inset
12711
12712 article
12713 \begin_inset Quotes erd
12714 \end_inset
12715
12716  package, and they are almost (but not exactly) identical.
12717  Most of their features are supported by \SpecialChar LyX
12718 .
12719  I have used \SpecialChar LyX
12720  successfully to write articles submitted to both journals
12721  without any problem.
12722 \end_layout
12723
12724 \begin_layout Subsection
12725 Writing a paper
12726 \end_layout
12727
12728 \begin_layout Standard
12729 As usual, the easiest way to write a paper is to start with a template.
12730  Click on 
12731 \family sans
12732 File\SpecialChar menuseparator
12733 New from
12734 \family default
12735  
12736 \family sans
12737 \bar under
12738 T
12739 \bar default
12740 emplate
12741 \family default
12742 , then choose the 
12743 \family typewriter
12744 ijmpc.lyx
12745 \family default
12746  or 
12747 \family typewriter
12748 ijmpd.lyx
12749 \family default
12750  template.
12751  This will give an (almost) empty document that includes the most common
12752  fields found in a manuscript.
12753  Simply overwrite the existing text (including the brackets, 
12754 \family typewriter
12755 <>
12756 \family default
12757 ) with your text.
12758  You should keep in mind the following remarks.
12759 \end_layout
12760
12761 \begin_layout Enumerate
12762 \SpecialChar LyX
12763  won't let you change the font size and the page style of the document,
12764  because such modifications are not allowed by both packages.
12765 \end_layout
12766
12767 \begin_layout Enumerate
12768 The language of the document should not be changed.
12769  Before previewing your paper, be sure that the babel package is not used.
12770  To do this, click on 
12771 \family sans
12772 Tools\SpecialChar menuseparator
12773 Preferences
12774 \family default
12775 , select the 
12776 \family sans
12777 Lang Opts
12778 \family default
12779  tab, deselect the 
12780 \family sans
12781 Use babel
12782 \family default
12783  checkbox in the language settings, and click on 
12784 \family sans
12785 Apply
12786 \family default
12787  (or 
12788 \family sans
12789 Save
12790 \family default
12791 , if you wish to make this change permanent).
12792 \end_layout
12793
12794 \begin_layout Enumerate
12795 The 
12796 \begin_inset Quotes eld
12797 \end_inset
12798
12799 Keywords
12800 \begin_inset Quotes erd
12801 \end_inset
12802
12803  style must be used to define keywords.
12804 \end_layout
12805
12806 \begin_layout Enumerate
12807 The ijmpc package provides a style named 
12808 \begin_inset Quotes eld
12809 \end_inset
12810
12811 Classification Codes
12812 \begin_inset Quotes erd
12813 \end_inset
12814
12815 , which can be used to define classification codes, such as PACS numbers.
12816  Note that this facility is not supported by the ijmpd package.
12817 \end_layout
12818
12819 \begin_layout Enumerate
12820 Several new environments are available: 
12821 \begin_inset Quotes eld
12822 \end_inset
12823
12824 Definition
12825 \begin_inset Quotes erd
12826 \end_inset
12827
12828
12829 \begin_inset Quotes eld
12830 \end_inset
12831
12832 Step
12833 \begin_inset Quotes erd
12834 \end_inset
12835
12836
12837 \begin_inset Quotes eld
12838 \end_inset
12839
12840 Example
12841 \begin_inset Quotes erd
12842 \end_inset
12843
12844
12845 \begin_inset Quotes eld
12846 \end_inset
12847
12848 Remark
12849 \begin_inset Quotes erd
12850 \end_inset
12851
12852
12853 \begin_inset Quotes eld
12854 \end_inset
12855
12856 Notation
12857 \begin_inset Quotes erd
12858 \end_inset
12859
12860
12861 \begin_inset Quotes eld
12862 \end_inset
12863
12864 Theorem
12865 \begin_inset Quotes erd
12866 \end_inset
12867
12868
12869 \begin_inset Quotes eld
12870 \end_inset
12871
12872 Proof
12873 \begin_inset Quotes erd
12874 \end_inset
12875
12876
12877 \begin_inset Quotes eld
12878 \end_inset
12879
12880 Corollary
12881 \begin_inset Quotes erd
12882 \end_inset
12883
12884
12885 \begin_inset Quotes eld
12886 \end_inset
12887
12888 Lemma
12889 \begin_inset Quotes erd
12890 \end_inset
12891
12892
12893 \begin_inset Quotes eld
12894 \end_inset
12895
12896 Proposition
12897 \begin_inset Quotes erd
12898 \end_inset
12899
12900
12901 \begin_inset Quotes eld
12902 \end_inset
12903
12904 Prop
12905 \begin_inset Quotes erd
12906 \end_inset
12907
12908
12909 \begin_inset Quotes eld
12910 \end_inset
12911
12912 Question
12913 \begin_inset Quotes erd
12914 \end_inset
12915
12916
12917 \begin_inset Quotes eld
12918 \end_inset
12919
12920 Claim
12921 \begin_inset Quotes erd
12922 \end_inset
12923
12924 , and 
12925 \begin_inset Quotes eld
12926 \end_inset
12927
12928 Conjecture
12929 \begin_inset Quotes erd
12930 \end_inset
12931
12932 .
12933  Their use is more or less obvious.
12934  \SpecialChar LyX
12935  supports all these environments; it will use the proper label, text style,
12936  and numbering scheme for each of them.
12937 \end_layout
12938
12939 \begin_layout Enumerate
12940 Both packages use basic citations; the natbib package should not be used.
12941  In \SpecialChar LyX
12942 , citation references are shown as usual; in the output, citations are
12943  shown as superscripts.
12944  If you want to use a citation as normal text, you should use the 
12945 \family typewriter
12946 refcite
12947 \family default
12948  command, e.
12949 \begin_inset space \thinspace{}
12950 \end_inset
12951
12952 g.
12953 \begin_inset space \space{}
12954 \end_inset
12955
12956
12957 \begin_inset Quotes eld
12958 \end_inset
12959
12960 See Ref.
12961 \begin_inset space \space{}
12962 \end_inset
12963
12964
12965 \family typewriter
12966
12967 \backslash
12968 refcite{key}
12969 \family default
12970
12971 \begin_inset Quotes erd
12972 \end_inset
12973
12974 .
12975 \end_layout
12976
12977 \begin_layout Enumerate
12978 There is no 
12979 \begin_inset Quotes eld
12980 \end_inset
12981
12982 Acknowledgments
12983 \begin_inset Quotes erd
12984 \end_inset
12985
12986  section in both packages.
12987  To put acknowledgments, just use the 
12988 \begin_inset Quotes eld
12989 \end_inset
12990
12991 Section*
12992 \begin_inset Quotes erd
12993 \end_inset
12994
12995  environment.
12996 \end_layout
12997
12998 \begin_layout Enumerate
12999 Appendices may be added to the paper, 
13000 \emph on
13001 after
13002 \emph default
13003  the Acknowledgments and 
13004 \shape italic
13005 before
13006 \shape default
13007  the References.
13008  \SpecialChar LyX
13009  provides a special environment, called 
13010 \begin_inset Quotes eld
13011 \end_inset
13012
13013 Appendices Section
13014 \begin_inset Quotes erd
13015 \end_inset
13016
13017  which marks the beginning of the appendices.
13018  This environment should be left blank; it just sends a \SpecialChar LaTeX
13019  command, but nothing
13020  is really printed.
13021  In \SpecialChar LyX
13022 , the word 
13023 \begin_inset Quotes eld
13024 \end_inset
13025
13026 Appendix
13027 \begin_inset Quotes erd
13028 \end_inset
13029
13030  is printed with blue letters, as a signal that all sections after that
13031  point are appendices.
13032  To write an appendix, use the 
13033 \begin_inset Quotes eld
13034 \end_inset
13035
13036 Appendix
13037 \begin_inset Quotes erd
13038 \end_inset
13039
13040  environment.
13041  \SpecialChar LyX
13042  will number each appendix with capital letters, as required by both journals.
13043  Note that 
13044 \begin_inset Quotes eld
13045 \end_inset
13046
13047 Appendices Section
13048 \begin_inset Quotes erd
13049 \end_inset
13050
13051  
13052 \emph on
13053 must
13054 \emph default
13055  be present before the first appendix; if not, all appendices will be numbered
13056  as normal sections in the output.
13057 \end_layout
13058
13059 \begin_layout Enumerate
13060 The ijmpc and the ijmpd packages use the 
13061 \family typewriter
13062 tbl
13063 \family default
13064  command to implement table captions.
13065  As a result, a table created by \SpecialChar LyX
13066  is printed correctly, but its caption
13067  is ignored.
13068  However, you can use some \SpecialChar TeX
13069  code to overcome this problem, so that captions
13070  are printed as expected.
13071  To do so, create a float table as usual, remove the caption, and replace
13072  it with the \SpecialChar TeX
13073  code 
13074 \family typewriter
13075
13076 \backslash
13077 tbl{
13078 \emph on
13079 your table caption
13080 \emph default
13081 }{
13082 \family default
13083  (sic); you must also the \SpecialChar TeX
13084  code 
13085 \family typewriter
13086 }
13087 \family default
13088  immediately after the tabular material.
13089  Study the example table included in the template files to see how this
13090  trick is implemented.
13091  Alternatively, If you need table captions, you should implement the whole
13092  table float in a 
13093 \family typewriter
13094 .tex
13095 \family default
13096  file, then include this file to the \SpecialChar LyX
13097  document (
13098 \family sans
13099 Insert\SpecialChar menuseparator
13100 File\SpecialChar menuseparator
13101 Child
13102 \begin_inset space ~
13103 \end_inset
13104
13105 Document
13106 \family default
13107 ).
13108  Details on how to create a table float can be found in the files 
13109 \family typewriter
13110 ws-ijmpc.tex
13111 \family default
13112  and 
13113 \family typewriter
13114 ws-ijmpd.tex
13115 \family default
13116 , included in the corresponding packages.
13117 \end_layout
13118
13119 \begin_layout Subsection
13120 Preparing a paper for submission
13121 \end_layout
13122
13123 \begin_layout Standard
13124 Before you submit your paper you must export the \SpecialChar LyX
13125  document as a \SpecialChar LaTeX
13126  file (
13127 \family sans
13128 File\SpecialChar menuseparator
13129 Export\SpecialChar menuseparator
13130 \SpecialChar LaTeX
13131
13132 \family default
13133 )
13134 \begin_inset Foot
13135 status open
13136
13137 \begin_layout Plain Layout
13138 Actually you have the choice between \SpecialChar LaTeX
13139  (plain) and pdflatex.
13140  If you intend to use pdflatex to prepare the paper, you should use the
13141  pdflatex option so that included graphics are converted to PDF format,
13142  ready for use by pdflatex.
13143 \end_layout
13144
13145 \end_inset
13146
13147 , then make the following changes to the resulting 
13148 \family typewriter
13149 .tex
13150 \family default
13151  file.
13152 \end_layout
13153
13154 \begin_layout Enumerate
13155 Remove the comment lines before the 
13156 \family typewriter
13157
13158 \backslash
13159 documentclass
13160 \family default
13161  command.
13162 \end_layout
13163
13164 \begin_layout Enumerate
13165 Remove everything between (and including) the 
13166 \family typewriter
13167
13168 \backslash
13169 makeatletter
13170 \family default
13171  and 
13172 \family typewriter
13173
13174 \backslash
13175 makeatother
13176 \family default
13177  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13178  preamble.
13179 \end_layout
13180
13181 \begin_layout Standard
13182 The modified 
13183 \family typewriter
13184 .tex
13185 \family default
13186  file should be saved and processed through \SpecialChar LaTeX
13187  as many times as necessary.
13188  You may also want to check the resulting 
13189 \family typewriter
13190 .dvi
13191 \family default
13192  document.
13193 \end_layout
13194
13195 \begin_layout Subsection
13196 Use of \SpecialChar TeX
13197  code
13198 \end_layout
13199
13200 \begin_layout Standard
13201 The use of \SpecialChar TeX
13202  code is reduced to two commands, which must be placed at the
13203  top of the document.
13204  If you started writing your paper by using the 
13205 \family typewriter
13206 ijmpc.lyx
13207 \family default
13208  or the 
13209 \family typewriter
13210 ijmpd.lyx
13211 \family default
13212  template, the \SpecialChar TeX
13213  code needed is already in its place; you usually don't need
13214  to delete it.
13215  You may only modify the first \SpecialChar TeX
13216  code to specify the information printed
13217  to the top of odd and even pages (authors' names and short paper's title,
13218  respectively).
13219  This \SpecialChar TeX
13220  code must have the form 
13221 \family typewriter
13222
13223 \backslash
13224 markboth{Authors' Names}{Short Paper's Title}
13225 \family default
13226 .
13227 \end_layout
13228
13229 \begin_layout Section
13230 iopart
13231 \end_layout
13232
13233 \begin_layout Standard
13234 by 
13235 \noun on
13236 Uwe Stöhr
13237 \end_layout
13238
13239 \begin_layout Subsection
13240 Overview
13241 \end_layout
13242
13243 \begin_layout Standard
13244 The iopart package provides a document class to create electronic manuscript
13245  submission to the journals published by the Institute of Physics.
13246  Instructions for the authors how to create a paper using the iopart class
13247  can be downloaded together with the iopart package from the site 
13248 \begin_inset Flex URL
13249 status collapsed
13250
13251 \begin_layout Plain Layout
13252
13253 ftp://ftp.iop.org/pub/journals/latex2e
13254 \end_layout
13255
13256 \end_inset
13257
13258 .
13259 \end_layout
13260
13261 \begin_layout Subsection
13262 Writing a paper
13263 \end_layout
13264
13265 \begin_layout Standard
13266 The easiest way to write a paper is to start with the file 
13267 \emph on
13268 IOP-article.lyx
13269 \emph default
13270  that is available in \SpecialChar LyX
13271 's examples files folder.
13272  Open this file, save it under a new name, and start writing.
13273  The example file explains how to use the special text environments.
13274  Here are the most important advices:
13275 \end_layout
13276
13277 \begin_layout Itemize
13278 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13279  two options 
13280 \family sans
13281 Use AMS math package
13282 \family default
13283  in the document settings under 
13284 \family sans
13285 Math Options
13286 \family default
13287  are not used!
13288 \end_layout
13289
13290 \begin_layout Itemize
13291
13292 \size normal
13293 The title environment defines the kind of your paper.
13294  So use one of the following environments for the title:
13295 \size default
13296
13297 \begin_inset Separator parbreak
13298 \end_inset
13299
13300
13301 \end_layout
13302
13303 \begin_deeper
13304 \begin_layout Itemize
13305
13306 \family sans
13307 \size normal
13308 Title
13309 \family default
13310  for a Paper
13311 \end_layout
13312
13313 \begin_layout Itemize
13314
13315 \family sans
13316 \size normal
13317 Review
13318 \family default
13319  for a Review
13320 \end_layout
13321
13322 \begin_layout Itemize
13323
13324 \family sans
13325 \size normal
13326 Topical
13327 \family default
13328  for a Topical review
13329 \end_layout
13330
13331 \begin_layout Itemize
13332
13333 \family sans
13334 \size normal
13335 Comment
13336 \family default
13337  for a Comment
13338 \end_layout
13339
13340 \begin_layout Itemize
13341
13342 \family sans
13343 \size normal
13344 Note
13345 \family default
13346  for a Note
13347 \end_layout
13348
13349 \begin_layout Itemize
13350
13351 \family sans
13352 \size normal
13353 Paper
13354 \family default
13355  for a Paper (same as Title)
13356 \end_layout
13357
13358 \begin_layout Itemize
13359
13360 \family sans
13361 \size normal
13362 Prelim
13363 \family default
13364  for a Preliminary communication
13365 \end_layout
13366
13367 \begin_layout Itemize
13368
13369 \family sans
13370 \size normal
13371 Rapid
13372 \family default
13373  for a Rapid communication
13374 \end_layout
13375
13376 \begin_layout Itemize
13377
13378 \family sans
13379 \size normal
13380 Letter
13381 \family default
13382  for a Letter to the editor
13383 \end_layout
13384
13385 \end_deeper
13386 \begin_layout Itemize
13387
13388 \size normal
13389 All title environments except of 
13390 \family sans
13391 Letter
13392 \family default
13393  can have an optional short title.
13394 \end_layout
13395
13396 \begin_layout Itemize
13397 There is a general title environment 
13398 \family sans
13399 Article
13400 \family default
13401  which is not directly supported by the \SpecialChar LyX
13402 .
13403  This can be used as \SpecialChar TeX
13404  code when your document doesn't fit into one of the
13405  other title types.
13406 \end_layout
13407
13408 \begin_layout Standard
13409 For more informations like hints for special table and formula formatting,
13410  look at the IOP author guidelines.
13411 \end_layout
13412
13413 \begin_layout Section
13414 Kluwer
13415 \end_layout
13416
13417 \begin_layout Standard
13418 by 
13419 \noun on
13420 Panayotis Papasotiriou
13421 \end_layout
13422
13423 \begin_layout Subsection
13424 Overview
13425 \end_layout
13426
13427 \begin_layout Standard
13428 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13429  that facilitates electronic manuscript submission to the journals they
13430  publish.
13431  Most known of them (at least in my domain of interest) are 
13432 \emph on
13433 Astrophysics and Space Science
13434 \emph default
13435  and 
13436 \emph on
13437 Solar Physics
13438 \emph default
13439 , but there are many others (see a complete list at 
13440 \begin_inset Flex URL
13441 status open
13442
13443 \begin_layout Plain Layout
13444
13445 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13446 \end_layout
13447
13448 \end_inset
13449
13450 ).
13451  The Kluwer package may be downloaded from the site 
13452 \begin_inset Flex URL
13453 status collapsed
13454
13455 \begin_layout Plain Layout
13456
13457 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13458 \end_layout
13459
13460 \end_inset
13461
13462 .
13463  A complete user guide is contained in that package (but it can also be
13464  downloaded separately).
13465 \end_layout
13466
13467 \begin_layout Standard
13468 \SpecialChar LyX
13469  supports many features of the package but not everything.
13470  However, the \SpecialChar TeX
13471  code needed is reduced to some 
13472 \begin_inset Quotes eld
13473 \end_inset
13474
13475 peculiar
13476 \begin_inset Quotes erd
13477 \end_inset
13478
13479  commands of the package (see
13480 \begin_inset space ~
13481 \end_inset
13482
13483
13484 \begin_inset CommandInset ref
13485 LatexCommand ref
13486 reference "subsec:kluwer_peculiarities"
13487
13488 \end_inset
13489
13490 ).
13491  I have recently used \SpecialChar LyX
13492  to write an article submitted to the 
13493 \emph on
13494 Astrophysics and Space Science
13495 \emph default
13496  without any problem.
13497 \end_layout
13498
13499 \begin_layout Subsection
13500 Writing a paper
13501 \end_layout
13502
13503 \begin_layout Standard
13504 The easiest way to write a paper is to start with the Kluwer template file.
13505  Click on 
13506 \family sans
13507 File\SpecialChar menuseparator
13508 New from
13509 \family default
13510  
13511 \family sans
13512 Template
13513 \family default
13514 , then choose the 
13515 \family typewriter
13516 kluwer.lyx
13517 \family default
13518  template.
13519  This will give an (almost) empty document that includes the most common
13520  fields found in a manuscript and a short description of their use.
13521  As in most templates, simply overwrite the existing text (including the
13522  brackets, 
13523 \family typewriter
13524 <>
13525 \family default
13526 ) with the correct information.
13527 \end_layout
13528
13529 \begin_layout Subsection
13530 Preparing a paper for submission
13531 \end_layout
13532
13533 \begin_layout Standard
13534 As in the AAS\SpecialChar TeX
13535  package, before you submit your paper to a journal you must
13536  
13537 \begin_inset Quotes eld
13538 \end_inset
13539
13540 postprocess
13541 \begin_inset Quotes erd
13542 \end_inset
13543
13544  it as follows.
13545 \end_layout
13546
13547 \begin_layout Enumerate
13548 Export your paper as a \SpecialChar LaTeX
13549  file.
13550  To do this, click on 
13551 \family sans
13552 File\SpecialChar menuseparator
13553 Export\SpecialChar menuseparator
13554 \SpecialChar LaTeX
13555
13556 \family default
13557 .
13558  
13559 \end_layout
13560
13561 \begin_layout Enumerate
13562 Edit the resulting 
13563 \family typewriter
13564 .tex
13565 \family default
13566  file with a text editor and make the following changes
13567 \begin_inset Separator parbreak
13568 \end_inset
13569
13570
13571 \end_layout
13572
13573 \begin_deeper
13574 \begin_layout Enumerate
13575 remove the comment lines before the 
13576 \family typewriter
13577
13578 \backslash
13579 documentclass
13580 \family default
13581  command,
13582 \end_layout
13583
13584 \begin_layout Enumerate
13585 remove everything between (and including) the 
13586 \family typewriter
13587
13588 \backslash
13589 makeatletter
13590 \family default
13591  and 
13592 \family typewriter
13593
13594 \backslash
13595 makeatother
13596 \family default
13597  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13598  preamble.
13599 \end_layout
13600
13601 \begin_layout Standard
13602 Save the resulting 
13603 \family typewriter
13604 .tex
13605 \family default
13606  file.
13607 \end_layout
13608
13609 \end_deeper
13610 \begin_layout Enumerate
13611 Run the 
13612 \family typewriter
13613 .tex
13614 \family default
13615  file through \SpecialChar LaTeX
13616  as many times as necessary (usually up to three).
13617 \end_layout
13618
13619 \begin_layout Enumerate
13620 View the resulting 
13621 \family typewriter
13622 .dvi
13623 \family default
13624  document using, e.
13625 \begin_inset space \thinspace{}
13626 \end_inset
13627
13628 g.
13629 \begin_inset space \space{}
13630 \end_inset
13631
13632
13633 \family sans
13634 xdvi
13635 \family default
13636 , and check if everything is OK (it should, if you didn't make any mistake).
13637 \end_layout
13638
13639 \begin_layout Subsection
13640 \begin_inset Quotes eld
13641 \end_inset
13642
13643 Peculiarities
13644 \begin_inset Quotes erd
13645 \end_inset
13646
13647  of the Kluwer package
13648 \begin_inset CommandInset label
13649 LatexCommand label
13650 name "subsec:kluwer_peculiarities"
13651
13652 \end_inset
13653
13654
13655 \end_layout
13656
13657 \begin_layout Standard
13658 The Kluwer package has the following 
13659 \begin_inset Quotes eld
13660 \end_inset
13661
13662 peculiarities
13663 \begin_inset Quotes erd
13664 \end_inset
13665
13666 .
13667 \end_layout
13668
13669 \begin_layout Enumerate
13670 It is possible to write multiple articles in the same \SpecialChar LaTeX
13671  file
13672 \begin_inset Foot
13673 status collapsed
13674
13675 \begin_layout Plain Layout
13676 I can't imagine any good reason to do this.
13677 \end_layout
13678
13679 \end_inset
13680
13681 .
13682  Each article must be included in the environment 
13683 \begin_inset Quotes eld
13684 \end_inset
13685
13686 article
13687 \begin_inset Quotes erd
13688 \end_inset
13689
13690 .
13691  Unfortunately, this environment cannot be omitted, even if you write just
13692  one article.
13693  Therefore, each article starts with the command 
13694 \family typewriter
13695
13696 \backslash
13697 begin{article}
13698 \family default
13699  and, obviously, ends with the command 
13700 \family typewriter
13701
13702 \backslash
13703 end{article}
13704 \family default
13705 .
13706  Although this can be implemented in \SpecialChar LyX
13707 , I didn't included it, since it looks
13708  ugly and can confuse the novice user.
13709  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13710  code (the
13711  well-known 
13712 \begin_inset Quotes eld
13713 \end_inset
13714
13715 \SpecialChar TeX
13716  code
13717 \begin_inset Quotes erd
13718 \end_inset
13719
13720 ).
13721 \end_layout
13722
13723 \begin_layout Enumerate
13724 Information given at the beginning of the article (i.
13725 \begin_inset space \thinspace{}
13726 \end_inset
13727
13728 e.
13729 \begin_inset space \space{}
13730 \end_inset
13731
13732 title, subtitle, author, institution, running title, running author, abstract
13733  and keywords) must be included in an environment called 
13734 \begin_inset Quotes eld
13735 \end_inset
13736
13737 opening
13738 \begin_inset Quotes erd
13739 \end_inset
13740
13741 .
13742  This is not implemented in \SpecialChar LyX
13743 , so you must enter title, subtitle etc.
13744 \begin_inset space ~
13745 \end_inset
13746
13747 between two \SpecialChar TeX
13748  code lines (
13749 \family typewriter
13750
13751 \backslash
13752 begin{opening}
13753 \family default
13754  and 
13755 \family typewriter
13756
13757 \backslash
13758 end{opening}
13759 \family default
13760 ).
13761 \end_layout
13762
13763 \begin_layout Enumerate
13764 According to the user manual, the label of each bibliography item must be
13765  written as 
13766 \family typewriter
13767
13768 \backslash
13769 protect
13770 \backslash
13771 citeauthoryear{
13772 \family default
13773 \emph on
13774 author(s)
13775 \family typewriter
13776 \emph default
13777 }{
13778 \family default
13779 \emph on
13780 year
13781 \family typewriter
13782 \emph default
13783 }
13784 \family default
13785 .
13786 \end_layout
13787
13788 \begin_layout Standard
13789 The 
13790 \family typewriter
13791 kluwer.lyx
13792 \family default
13793  template takes care of all these 
13794 \begin_inset Quotes eld
13795 \end_inset
13796
13797 peculiarities
13798 \begin_inset Quotes erd
13799 \end_inset
13800
13801 .
13802  If you start a new paper using this template you don't need to do anything
13803  special.
13804  Just 
13805 \end_layout
13806
13807 \begin_layout Enumerate
13808 don't delete the \SpecialChar TeX
13809  code included in the template, and
13810 \end_layout
13811
13812 \begin_layout Enumerate
13813 copy the example bibliography item included in the template and modify it
13814  as necessary to enter new bibliography items.
13815 \end_layout
13816
13817 \begin_layout Section
13818 Koma-Script
13819 \end_layout
13820
13821 \begin_layout Standard
13822 by 
13823 \noun on
13824 Bernd Rellermeyer
13825 \end_layout
13826
13827 \begin_layout Subsection
13828 Overview
13829 \end_layout
13830
13831 \begin_layout Standard
13832 The \SpecialChar LyX
13833  document classes 
13834 \emph on
13835 article (koma-script)
13836 \emph default
13837
13838 \emph on
13839 report (koma-script)
13840 \emph default
13841
13842 \emph on
13843 book
13844 \emph default
13845  
13846 \emph on
13847 (koma-script)
13848 \emph default
13849 , and 
13850 \emph on
13851 letter
13852 \emph default
13853  
13854 \emph on
13855 (koma-script)
13856 \emph default
13857  correspond to the \SpecialChar LaTeX
13858  document classes 
13859 \family typewriter
13860 scrartcl.cls
13861 \family default
13862
13863 \family typewriter
13864 scrreprt.cls
13865 \family default
13866
13867 \family typewriter
13868 scrbook.cls
13869 \family default
13870 , and 
13871 \family typewriter
13872 scrlettr.cls
13873 \family default
13874 , resp.
13875 \begin_inset space ~
13876 \end_inset
13877
13878 of the Koma-Script family.
13879  They are replacements for the standard document classes 
13880 \family typewriter
13881 article.cls
13882 \family default
13883
13884 \family typewriter
13885 report.cls
13886 \family default
13887
13888 \family typewriter
13889 book.cls
13890 \family default
13891  and 
13892 \family typewriter
13893 letter.cls
13894 \family default
13895 , resp., and fit better to European typography conventions in a number of
13896  points.
13897 \end_layout
13898
13899 \begin_layout Itemize
13900 Standard character size is 11pt in 
13901 \emph on
13902 article (koma-script)
13903 \emph default
13904
13905 \emph on
13906 report (koma-script)
13907 \emph default
13908 , and 
13909 \emph on
13910 book (koma-script)
13911 \emph default
13912 , and 12pt in 
13913 \emph on
13914 letter (koma-script)
13915 \emph default
13916 .
13917 \end_layout
13918
13919 \begin_layout Itemize
13920 Headings, labels of the description environment, and a number of elements
13921  of the 
13922 \emph on
13923 letter (koma-script)
13924 \emph default
13925  document class are set in a bold sans serif font.
13926 \begin_inset Foot
13927 status collapsed
13928
13929 \begin_layout Plain Layout
13930 There is a big difference between the bold sans serif old cm fonts and new
13931  ec fonts, especially in the appearance of headings.
13932  In comparison, the ec bold sans serif fonts look a bit thin.
13933  Here the \SpecialChar LaTeX
13934  package 
13935 \family typewriter
13936 cmsd.sty by
13937 \family default
13938  
13939 \shape smallcaps
13940 Walter Schmidt
13941 \shape default
13942  helps to produce the 
13943 \begin_inset Quotes eld
13944 \end_inset
13945
13946 usual
13947 \begin_inset Quotes erd
13948 \end_inset
13949
13950  appearance when using the ec fonts.
13951 \end_layout
13952
13953 \end_inset
13954
13955  The numbering of chapter headings is made in the same way as the numbering
13956  of section headings, that is without the extra line 
13957 \begin_inset Quotes eld
13958 \end_inset
13959
13960 Chapter\SpecialChar ldots
13961
13962 \begin_inset Quotes erd
13963 \end_inset
13964
13965 .
13966  In addition, the appearance of the headings can be modified by using a
13967  number of options (in \SpecialChar LyX
13968  to be entered in the field 
13969 \family sans
13970 Extra
13971 \begin_inset space ~
13972 \end_inset
13973
13974 Options
13975 \family default
13976  of the dialog 
13977 \family sans
13978 Layout\SpecialChar menuseparator
13979 Document
13980 \family default
13981 ).
13982  
13983 \end_layout
13984
13985 \begin_layout Itemize
13986 The main means in the Koma-Script document classes to design the type area
13987  are the options 
13988 \family sans
13989 BCOR
13990 \family default
13991  and 
13992 \family sans
13993 DIV
13994 \family default
13995  (in \SpecialChar LyX
13996  to be entered in the extra class options field in the dialog 
13997 \family sans
13998 Document\SpecialChar menuseparator
13999 Settings
14000 \family default
14001 ).
14002  They make a clearer modification of page margins possible as do the options
14003  of the dialog 
14004 \family sans
14005 Document\SpecialChar menuseparator
14006 Settings
14007 \family default
14008 .
14009  
14010 \end_layout
14011
14012 \begin_layout Itemize
14013 The \SpecialChar LaTeX
14014  document classes of the Koma-Script family define a number of additional
14015  commands.
14016  Those part of it which makes sense in \SpecialChar LyX
14017  is implemented in corresponding
14018  paragraph types.
14019 \end_layout
14020
14021 \begin_layout Standard
14022 Detailed descriptions of the \SpecialChar LaTeX
14023  document classes of the Koma-Script family
14024  can be found in the Koma-Script documentation 
14025 \emph on
14026 scrguide
14027 \emph default
14028  (German) and 
14029 \emph on
14030 scrguien
14031 \emph default
14032  (English).
14033 \end_layout
14034
14035 \begin_layout Subsection
14036 article (koma-script), report (koma-script), and book (koma-script)
14037 \end_layout
14038
14039 \begin_layout Standard
14040 The document classes 
14041 \emph on
14042 article (koma-script)
14043 \emph default
14044
14045 \emph on
14046 report (koma-script)
14047 \emph default
14048 , and 
14049 \emph on
14050 book
14051 \emph default
14052  
14053 \emph on
14054 (koma-script)
14055 \emph default
14056  are implemented in the layout files 
14057 \family typewriter
14058 scrartcl.layout
14059 \family default
14060
14061 \family typewriter
14062 scrreprt.layout
14063 \family default
14064 , and 
14065 \family typewriter
14066 scrbook.layout
14067 \family default
14068 , resp.
14069  They contain all the paragraph types of the corresponding standard document
14070  classes 
14071 \emph on
14072 article
14073 \emph default
14074
14075 \emph on
14076 report
14077 \emph default
14078 , and 
14079 \emph on
14080 book
14081 \emph default
14082 , resp., partly modified, with the exception of the \SpecialChar LyX
14083  specific 
14084 \family sans
14085 List
14086 \family default
14087 -type, which is replaced by the new 
14088 \family sans
14089 Labeling
14090 \family default
14091 -type having the same functionality.
14092  Beside the 
14093 \family sans
14094 Labeling
14095 \family default
14096 -Type there is a number of new paragraph types added.
14097  They are 
14098 \emph on
14099 not
14100 \emph default
14101  part of 
14102 \emph on
14103 letter (koma-script)
14104 \emph default
14105 .
14106 \end_layout
14107
14108 \begin_layout Itemize
14109
14110 \family sans
14111 Addpart, Addchap
14112 \family default
14113
14114 \family sans
14115 Addsec
14116 \family default
14117 : are equivalents to 
14118 \family sans
14119 Part*, Chapter*
14120 \family default
14121  and 
14122 \family sans
14123 Section*
14124 \family default
14125 , resp., additionally inserting an entry in the table of contents.
14126  
14127 \family sans
14128 Addpart
14129 \family default
14130  and 
14131 \family sans
14132 Addchap
14133 \family default
14134  are not contained in 
14135 \emph on
14136 article (koma-script)
14137 \emph default
14138 .
14139 \end_layout
14140
14141 \begin_layout Itemize
14142
14143 \family sans
14144 Addchap*
14145 \family default
14146
14147 \family sans
14148 Addsec*
14149 \family default
14150 : behave exactly as 
14151 \family sans
14152 Addchap
14153 \family default
14154  and 
14155 \family sans
14156 Addsec
14157 \family default
14158 , resp., additionally clearing running heads.
14159  
14160 \family sans
14161 Addchap*
14162 \family default
14163  is not contained in 
14164 \emph on
14165 article (koma-script)
14166 \emph default
14167 .
14168 \begin_inset Foot
14169 status collapsed
14170
14171 \begin_layout Plain Layout
14172 There is also an 
14173 \family typewriter
14174
14175 \backslash
14176 addpart*
14177 \family default
14178  command in 
14179 \emph on
14180 book (koma-script)
14181 \emph default
14182  and in 
14183 \emph on
14184 report (koma-script)
14185 \emph default
14186 , but since this is identical to 
14187 \family sans
14188 Part*
14189 \family default
14190 , is has not been implemented in \SpecialChar LyX
14191 .
14192 \end_layout
14193
14194 \end_inset
14195
14196
14197 \end_layout
14198
14199 \begin_layout Itemize
14200
14201 \family sans
14202 Minisec
14203 \family default
14204 : generates a heading directly above the following paragraph in the standard
14205  character size without affecting the structure of the document.
14206 \end_layout
14207
14208 \begin_layout Itemize
14209
14210 \family sans
14211 Captionabove
14212 \family default
14213  and 
14214 \family sans
14215 Captionbelow
14216 \family default
14217  are special captions which respect the different space settings needed
14218  for captions placed above or below an element (if you follow strict typographic
14219  rules, you might want to place table captions always above the table).
14220  You can also use the class option 
14221 \family typewriter
14222 tablecaptionsabove
14223 \family default
14224 , which will switch 
14225 \family sans
14226 caption
14227 \family default
14228  to 
14229 \family sans
14230 captionabove
14231 \family default
14232  for tables and 
14233 \family sans
14234 captionbelow
14235 \family default
14236  for figures.
14237  You need at least Koma-Script version 2.8q to use this.
14238 \end_layout
14239
14240 \begin_layout Itemize
14241
14242 \family sans
14243 Dictum
14244 \family default
14245 : can be used to set a bonmot, e.
14246 \begin_inset space \thinspace{}
14247 \end_inset
14248
14249 g.
14250 \begin_inset space \space{}
14251 \end_inset
14252
14253 at the beginning of a chapter.
14254  If you use the optional argument (
14255 \family sans
14256 Insert\SpecialChar menuseparator
14257 Short
14258 \begin_inset space ~
14259 \end_inset
14260
14261 Title
14262 \family default
14263 ), you can insert the dictum's author there.
14264  Dictum and author are separated by a line.
14265  You need at least Koma-Script version 2.8q to use this.
14266  
14267 \family sans
14268 Dictum
14269 \family default
14270  is not contained in 
14271 \emph on
14272 article (koma-script)
14273 \emph default
14274 .
14275 \end_layout
14276
14277 \begin_layout Standard
14278 The following types, together with the standard types 
14279 \family sans
14280 Title
14281 \family default
14282
14283 \family sans
14284 Author
14285 \family default
14286 , and 
14287 \family sans
14288 Date
14289 \family default
14290 , form the title area of the document.
14291  They must be entered ahead of the first 
14292 \begin_inset Quotes eld
14293 \end_inset
14294
14295 ordinary
14296 \begin_inset Quotes erd
14297 \end_inset
14298
14299  paragraph.
14300 \begin_inset Foot
14301 status collapsed
14302
14303 \begin_layout Plain Layout
14304 The corresponding \SpecialChar LaTeX
14305  commands must appear before the 
14306 \family typewriter
14307
14308 \backslash
14309 maketitle
14310 \family default
14311  command.
14312 \end_layout
14313
14314 \end_inset
14315
14316  When such a type is used more than once, the latter usage overwrites the
14317  former one, that means, for every type only the latest usage is valid.
14318  The order of the different types however has, like 
14319 \family sans
14320 Title
14321 \family default
14322
14323 \family sans
14324 Author
14325 \family default
14326 , and 
14327 \family sans
14328 Date
14329 \family default
14330 , no effect on the appearance of the produced document.
14331 \end_layout
14332
14333 \begin_layout Itemize
14334
14335 \family sans
14336 Subject
14337 \family default
14338 : produces a centered paragraph above the ordinary title (
14339 \family sans
14340 Title
14341 \family default
14342
14343 \family sans
14344 Author
14345 \family default
14346
14347 \family sans
14348 Date
14349 \family default
14350 ) for the subject of the document.
14351 \end_layout
14352
14353 \begin_layout Itemize
14354
14355 \family sans
14356 Publishers
14357 \family default
14358 : produces a centered paragraph below the ordinary title (
14359 \family sans
14360 Title
14361 \family default
14362
14363 \family sans
14364 Author
14365 \family default
14366
14367 \family sans
14368 Date
14369 \family default
14370 ) for the publishers' name.
14371 \end_layout
14372
14373 \begin_layout Itemize
14374
14375 \family sans
14376 Dedication
14377 \family default
14378 : in 
14379 \emph on
14380 report (koma-script)
14381 \emph default
14382  and 
14383 \emph on
14384 book (koma-script)
14385 \emph default
14386  produces a centered paragraph on its own page behind the title page, or
14387  in 
14388 \emph on
14389 article (koma-script)
14390 \emph default
14391  produces a centered paragraph below the ordinary title (
14392 \family sans
14393 Title
14394 \family default
14395
14396 \family sans
14397 Author
14398 \family default
14399
14400 \family sans
14401 Date
14402 \family default
14403
14404 \family sans
14405 Publishers
14406 \family default
14407 ) for a dedication.
14408 \end_layout
14409
14410 \begin_layout Itemize
14411
14412 \family sans
14413 Titlehead
14414 \family default
14415 : produces a left aligned paragraph above the ordinary title (
14416 \family sans
14417 Title
14418 \family default
14419
14420 \family sans
14421 Author
14422 \family default
14423
14424 \family sans
14425 Date
14426 \family default
14427
14428 \family sans
14429 Subject
14430 \family default
14431 ) for a document`s head.
14432 \end_layout
14433
14434 \begin_layout Itemize
14435
14436 \family sans
14437 Uppertitleback
14438 \family default
14439 : produces in a double-sided print in 
14440 \emph on
14441 report (koma-script)
14442 \emph default
14443  and 
14444 \emph on
14445 book (koma-script)
14446 \emph default
14447  a left-aligned paragraph at the top of the title page`s back or has no
14448  effect in a single-sided print or in 
14449 \emph on
14450 article (koma-script)
14451 \emph default
14452 .
14453 \end_layout
14454
14455 \begin_layout Itemize
14456
14457 \family sans
14458 Lowertitleback
14459 \family default
14460 : produces in a double-sided print in 
14461 \emph on
14462 report (koma-script)
14463 \emph default
14464  and 
14465 \emph on
14466 book (koma-script)
14467 \emph default
14468  a left-aligned paragraph at the bottom of the title page`s back or has
14469  no effect in a single-sided print or in 
14470 \emph on
14471 article (koma-script)
14472 \emph default
14473 .
14474 \end_layout
14475
14476 \begin_layout Itemize
14477
14478 \family sans
14479 Extratitle
14480 \family default
14481 : produces a special 
14482 \begin_inset Quotes eld
14483 \end_inset
14484
14485 dirty
14486 \begin_inset Quotes erd
14487 \end_inset
14488
14489  page ahead of the actual document containing a paragraph without special
14490  formatting.
14491 \end_layout
14492
14493 \begin_layout Standard
14494 The layout files for the document classes 
14495 \emph on
14496 article (koma-script)
14497 \emph default
14498
14499 \emph on
14500 report (koma-script)
14501 \emph default
14502 , and 
14503 \emph on
14504 book (koma-script)
14505 \emph default
14506  do include the file 
14507 \family typewriter
14508 scrmacros.inc
14509 \family default
14510 .
14511  This is thought of as a place to define your own types.
14512  Copy scrmacros
14513 \family typewriter
14514 .inc
14515 \family default
14516  in your personal layout directory and edit the file!
14517 \end_layout
14518
14519 \begin_layout Subsection
14520 letter (koma-script)
14521 \end_layout
14522
14523 \begin_layout Standard
14524 \noindent
14525 The document class 
14526 \emph on
14527 letter (koma-script)
14528 \emph default
14529  is implemented in the layout file 
14530 \family typewriter
14531 scrlettr.layout
14532 \family default
14533 .
14534  It contains all the paragraph types of the corresponding standard document
14535  class 
14536 \emph on
14537 letter
14538 \emph default
14539 , partly modified, with the exception of the \SpecialChar LyX
14540  specific types 
14541 \family sans
14542 \SpecialChar LyX
14543 -Code
14544 \family default
14545  and 
14546 \family sans
14547 Comment
14548 \family default
14549  and the 
14550 \family sans
14551 List
14552 \family default
14553  type, which is replaced by the new 
14554 \family sans
14555 Labeling
14556 \family default
14557  type.
14558  In addition, it contains, in contrast to the standard document class, the
14559  standard types 
14560 \family sans
14561 \SpecialChar LaTeX
14562
14563 \family default
14564
14565 \family sans
14566 Quotation
14567 \family default
14568
14569 \family sans
14570 Quote
14571 \family default
14572 , and 
14573 \family sans
14574 Verse
14575 \family default
14576 .
14577  Furthermore, there are a number of new letter specific types.
14578 \end_layout
14579
14580 \begin_layout Standard
14581 The appearance of the letter produced by this document class can be controlled
14582  by a number of \SpecialChar LaTeX
14583  commands, which you can put in the \SpecialChar LaTeX
14584  preamble.
14585 \begin_inset Foot
14586 status collapsed
14587
14588 \begin_layout Plain Layout
14589 For example, the standard appearance of the letter`s heading, consisting
14590  of name and address, is quite self-willed.
14591  An 
14592 \begin_inset Quotes eld
14593 \end_inset
14594
14595 ordinary
14596 \begin_inset Quotes erd
14597 \end_inset
14598
14599  heading is produced by the following \SpecialChar LaTeX
14600  commands in the preamble:
14601 \end_layout
14602
14603 \begin_layout LyX-Code
14604
14605 \backslash
14606 firsthead{
14607 \backslash
14608 parbox[b]{
14609 \backslash
14610 textwidth}
14611 \end_layout
14612
14613 \begin_layout LyX-Code
14614   {
14615 \backslash
14616 ignorespaces 
14617 \backslash
14618 fromname
14619 \backslash
14620
14621 \backslash
14622  
14623 \backslash
14624 ignorespaces 
14625 \backslash
14626 fromaddress}} 
14627 \end_layout
14628
14629 \begin_layout LyX-Code
14630
14631 \backslash
14632 nexthead{
14633 \backslash
14634 parbox[b]{
14635 \backslash
14636 textwidth}
14637 \end_layout
14638
14639 \begin_layout LyX-Code
14640   {
14641 \backslash
14642 ignorespaces 
14643 \backslash
14644 fromname 
14645 \backslash
14646 hfill 
14647 \backslash
14648 ignorespaces 
14649 \backslash
14650 pagename
14651 \backslash
14652  
14653 \backslash
14654 thepage}}
14655 \end_layout
14656
14657 \end_inset
14658
14659  A detailed German description of such \SpecialChar LaTeX
14660  commands can be found in the Koma-Script
14661  documentation 
14662 \emph on
14663 scrguide
14664 \emph default
14665 .
14666  With it, the letter's author can produce his personal letter layout.
14667 \end_layout
14668
14669 \begin_layout Standard
14670 The types 
14671 \family sans
14672 Letter
14673 \family default
14674  and 
14675 \family sans
14676 Opening
14677 \family default
14678  define the beginning of the letter and must be used in every letter.
14679  To emphasize them in the \SpecialChar LyX
14680  document class, they are marked with the letter
14681  
14682 \shape italic
14683 L
14684 \shape default
14685  or 
14686 \shape italic
14687 O
14688 \shape default
14689 , resp.
14690 \begin_inset space ~
14691 \end_inset
14692
14693 in the left margin.
14694  It is possible to write any number of letters in one file.
14695  An 
14696 \family sans
14697 Opening
14698 \family default
14699  type produces a new letter using the same addressee and a 
14700 \family sans
14701 Letter
14702 \family default
14703  type produces a new addressee.
14704  The types 
14705 \family sans
14706 Closing
14707 \family default
14708
14709 \family sans
14710 PS
14711 \family default
14712
14713 \family sans
14714 CC
14715 \family default
14716 , and 
14717 \family sans
14718 Encl
14719 \family default
14720  are ordinary paragraph types and can also be used several times in one
14721  and the same letter.
14722 \end_layout
14723
14724 \begin_layout Itemize
14725
14726 \family sans
14727 Letter
14728 \family default
14729 : produces a paragraph for the addressee and implicitly defines the beginning
14730  of the letter.
14731 \end_layout
14732
14733 \begin_layout Itemize
14734
14735 \family sans
14736 Opening
14737 \family default
14738 : produces a paragraph for the form of address and implicitly produces a
14739  new letter.
14740 \end_layout
14741
14742 \begin_layout Itemize
14743
14744 \family sans
14745 Closing
14746 \family default
14747 : produces a paragraph for a close.
14748 \end_layout
14749
14750 \begin_layout Itemize
14751
14752 \family sans
14753 PS
14754 \family default
14755 : produces a paragraph for a postscript.
14756 \end_layout
14757
14758 \begin_layout Itemize
14759
14760 \family sans
14761 CC
14762 \family default
14763 : produces a paragraph for a distribution list.
14764 \end_layout
14765
14766 \begin_layout Itemize
14767
14768 \family sans
14769 Encl
14770 \family default
14771 : produces a paragraph for enclosures.
14772 \end_layout
14773
14774 \begin_layout Standard
14775 The types 
14776 \family sans
14777 Name
14778 \family default
14779
14780 \family sans
14781 Signature
14782 \family default
14783
14784 \family sans
14785 Address
14786 \family default
14787
14788 \family sans
14789 Telephone
14790 \family default
14791
14792 \family sans
14793 Place
14794 \family default
14795
14796 \family sans
14797 Backaddress
14798 \family default
14799
14800 \family sans
14801 Specialmail
14802 \family default
14803
14804 \family sans
14805 Location
14806 \family default
14807
14808 \family sans
14809 Title
14810 \family default
14811 , and 
14812 \family sans
14813 Subject
14814 \family default
14815  are input types provided with a label to enter information, which will
14816  be processed by the document class.
14817 \begin_inset Foot
14818 status open
14819
14820 \begin_layout Plain Layout
14821 It could be seen as a matter of inconsequence, that the types 
14822 \family sans
14823 Letter
14824 \family default
14825  and 
14826 \family sans
14827 Opening
14828 \family default
14829  described above are not such input types as well.
14830  Because of the special meaning of those types, however, I have implemented
14831  them as ordinary paragraph types with a one letter mark in the left margin.
14832  Moreover, it would affect my feeling of symmetry, if the 
14833 \family sans
14834 Opening
14835 \family default
14836  type and the 
14837 \family sans
14838 Closing
14839 \family default
14840  type had such a serious different appearance.
14841 \end_layout
14842
14843 \end_inset
14844
14845  The types must be used ahead of the corresponding 
14846 \family sans
14847 Opening
14848 \family default
14849  type.
14850 \end_layout
14851
14852 \begin_layout Standard
14853 An implementation of these types in a WYSIWYG fashion does not seem to make
14854  sense, because the real appearance of the produced letter does not only
14855  depend on the usage of the particular type, but also on other factors.
14856  For example, a signature entered in the 
14857 \family sans
14858 Signature
14859 \family default
14860  type will in the standard behavior appear in the produced letter only,
14861  when in the same letter also a 
14862 \family sans
14863 Closing
14864 \family default
14865  type is used.
14866  The entered value of the 
14867 \family sans
14868 Telephone
14869 \family default
14870  type will in the standard behavior not appear in the produced letter at
14871  all.
14872  The possibility to design the letter`s heading freely is already indicated
14873  in a footnote above.
14874 \end_layout
14875
14876 \begin_layout Standard
14877 The input types can also be used as empty paragraphs.
14878  This makes sense e.
14879 \begin_inset space \thinspace{}
14880 \end_inset
14881
14882 g.
14883 \begin_inset space \space{}
14884 \end_inset
14885
14886 for the 
14887 \family sans
14888 Signature
14889 \family default
14890  type.
14891  If the 
14892 \family sans
14893 Signature
14894 \family default
14895  type is not used at all, in the standard behavior the value of the 
14896 \family sans
14897 Name
14898 \family default
14899  type is used as signature, whereas if an empty 
14900 \family sans
14901 Signature
14902 \family default
14903  type is used, no signature value is defined.
14904 \end_layout
14905
14906 \begin_layout Standard
14907 By using the input types it is possible to write a letter template, containing
14908  filled input types with your personal dates (name, address, etc.) and empty
14909  input types for other dates you want to enter.
14910 \end_layout
14911
14912 \begin_layout Itemize
14913
14914 \family sans
14915 Name
14916 \family default
14917 : sender's name, in the standard behavior appears as a centered paragraph
14918  in small caps in the letter`s heading.
14919 \end_layout
14920
14921 \begin_layout Itemize
14922
14923 \family sans
14924 Signature
14925 \family default
14926 : sender's signature, in the standard behavior appears below the 
14927 \family sans
14928 Closing
14929 \family default
14930  type.
14931  If no 
14932 \family sans
14933 Signature
14934 \family default
14935  type is used, the value of the 
14936 \family sans
14937 Name
14938 \family default
14939  type appears instead.
14940 \end_layout
14941
14942 \begin_layout Itemize
14943
14944 \family sans
14945 Address
14946 \family default
14947 : sender's address, in the standard behavior appears in a centered paragraph
14948  in the letter`s heading below the sender's name.
14949 \end_layout
14950
14951 \begin_layout Itemize
14952
14953 \family sans
14954 Telephone
14955 \family default
14956 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
14957  variable
14958  
14959 \family typewriter
14960
14961 \backslash
14962 telephonenum
14963 \family default
14964 .
14965 \end_layout
14966
14967 \begin_layout Itemize
14968
14969 \family sans
14970 Place
14971 \family default
14972 : place of the letter`s making.
14973 \end_layout
14974
14975 \begin_layout Itemize
14976
14977 \family sans
14978 Date
14979 \family default
14980 : date of the letter`s making.
14981  
14982 \family sans
14983 Place
14984 \family default
14985  and 
14986 \family sans
14987 Date
14988 \family default
14989 , in the standard behavior, produce the place and the date in a right-aligned
14990  line below the addressee's field.
14991  If an empty 
14992 \family sans
14993 Date
14994 \family default
14995  type is used, neither place nor date appear, independent of the value of
14996  the 
14997 \family sans
14998 Place
14999 \family default
15000  type.
15001  If no 
15002 \family sans
15003 Date
15004 \family default
15005  type is used, the date of the letter `s production is used.
15006 \end_layout
15007
15008 \begin_layout Itemize
15009
15010 \family sans
15011 Backaddress
15012 \family default
15013 : sender`s back address, in the standard behavior appears above the addressee's
15014  field in a small sans serif font.
15015 \end_layout
15016
15017 \begin_layout Itemize
15018
15019 \family sans
15020 Specialmail
15021 \family default
15022 : special mail information, in the standard behavior appears underlined
15023  above the addressee's field below the back address.
15024 \end_layout
15025
15026 \begin_layout Itemize
15027
15028 \family sans
15029 Location
15030 \family default
15031 : additional information, in the standard behavior appears on right side
15032  below the addressee`s field.
15033 \end_layout
15034
15035 \begin_layout Itemize
15036
15037 \family sans
15038 Title
15039 \family default
15040 : the letter's title, in the standard behavior appears in a big, bold, sans
15041  serif font above the subject.
15042 \end_layout
15043
15044 \begin_layout Itemize
15045
15046 \family sans
15047 Subject
15048 \family default
15049 : the letter's subject, in the standard behavior appears in a bold font
15050  above the 
15051 \family sans
15052 Opening
15053 \family default
15054  paragraph.
15055 \end_layout
15056
15057 \begin_layout Standard
15058 The types 
15059 \family sans
15060 Yourref
15061 \family default
15062
15063 \family sans
15064 Yourmail
15065 \family default
15066
15067 \family sans
15068 Myref
15069 \family default
15070
15071 \family sans
15072 Customer
15073 \family default
15074 , and 
15075 \family sans
15076 Invoice
15077 \family default
15078  produce a business letter like line above the 
15079 \family sans
15080 Title
15081 \family default
15082  line containing the fields 
15083 \begin_inset Quotes eld
15084 \end_inset
15085
15086 Your ref.
15087 \begin_inset Quotes erd
15088 \end_inset
15089
15090
15091 \begin_inset Quotes eld
15092 \end_inset
15093
15094 Your letter of
15095 \begin_inset Quotes erd
15096 \end_inset
15097
15098
15099 \begin_inset Quotes eld
15100 \end_inset
15101
15102 Our ref.
15103 \begin_inset Quotes erd
15104 \end_inset
15105
15106
15107 \begin_inset Quotes eld
15108 \end_inset
15109
15110 Customer no.
15111 \begin_inset Quotes erd
15112 \end_inset
15113
15114
15115 \begin_inset Quotes eld
15116 \end_inset
15117
15118 Invoice no.
15119 \begin_inset Quotes erd
15120 \end_inset
15121
15122 , and 
15123 \begin_inset Quotes eld
15124 \end_inset
15125
15126 Date
15127 \begin_inset Quotes erd
15128 \end_inset
15129
15130 .
15131  For the date field, the value of the 
15132 \family sans
15133 Date
15134 \family default
15135  type is used.
15136  If one of these 
15137 \begin_inset Quotes eld
15138 \end_inset
15139
15140 business letter types
15141 \begin_inset Quotes erd
15142 \end_inset
15143
15144  is used, the value of the 
15145 \family sans
15146 Place
15147 \family default
15148  type however does not appear, but only the \SpecialChar LaTeX
15149  variable 
15150 \family typewriter
15151
15152 \backslash
15153 fromplace
15154 \family default
15155  is set.
15156  The ordinary output of place and date in a right-aligned line below the
15157  addressee`s field is suppressed.
15158  The types are implemented as input types provided with a label and must
15159  be used ahead of the corresponding 
15160 \family sans
15161 Opening
15162 \family default
15163  type.
15164 \end_layout
15165
15166 \begin_layout Itemize
15167
15168 \family sans
15169 Yourref
15170 \family default
15171 : Your ref.
15172 \end_layout
15173
15174 \begin_layout Itemize
15175
15176 \family sans
15177 Yourmail
15178 \family default
15179 : Your letter of.
15180 \end_layout
15181
15182 \begin_layout Itemize
15183
15184 \family sans
15185 Myref
15186 \family default
15187 : Our ref.
15188 \end_layout
15189
15190 \begin_layout Itemize
15191
15192 \family sans
15193 Customer
15194 \family default
15195 : Customer no.
15196 \end_layout
15197
15198 \begin_layout Itemize
15199
15200 \family sans
15201 Invoice
15202 \family default
15203 : Invoice no.
15204 \end_layout
15205
15206 \begin_layout Subsection
15207 The new letter class: letter (koma-script v.2)
15208 \end_layout
15209
15210 \begin_layout Standard
15211 by 
15212 \noun on
15213 Jürgen Spitzmüller
15214 \end_layout
15215
15216 \begin_layout Standard
15217 \begin_inset VSpace medskip
15218 \end_inset
15219
15220
15221 \end_layout
15222
15223 \begin_layout Standard
15224 \noindent
15225 Koma-Script version 2.8 has introduced a new letter class 
15226 \family typewriter
15227 scrlttr2
15228 \family default
15229  which supersedes the now unsupported 
15230 \family typewriter
15231 scrlettr
15232 \family default
15233 .
15234  It has — on the \SpecialChar LaTeX
15235  side — a completely new interface and is not compatible
15236  with the old class.
15237  Therefore, \SpecialChar LyX
15238  supports both, though it is recommended you use the new class.
15239 \end_layout
15240
15241 \begin_layout Standard
15242 This class covers the same functionality as 
15243 \emph on
15244 letter (koma-script),
15245 \emph default
15246  and a few more.
15247  The basic items are 
15248 \family sans
15249 Address
15250 \family default
15251  (receiver's address, same as 
15252 \family sans
15253 Letter
15254 \family default
15255  in the old layout), 
15256 \family sans
15257 Opening
15258 \family default
15259 , and 
15260 \family sans
15261 Closing
15262 \family default
15263 .
15264  
15265 \family sans
15266 NextAddress
15267 \family default
15268  will start a new letter (i.
15269 \begin_inset space \thinspace{}
15270 \end_inset
15271
15272 e.
15273 \begin_inset space \space{}
15274 \end_inset
15275
15276 you can write several letters per document).
15277  New elements are sender's 
15278 \family sans
15279 E-Mail
15280 \family default
15281
15282 \family sans
15283 URL
15284 \family default
15285
15286 \family sans
15287 Fax
15288 \family default
15289
15290 \family sans
15291 Bank
15292 \family default
15293  and the possibility to use a 
15294 \family sans
15295 Logo
15296 \family default
15297  (via 
15298 \family sans
15299 Insert\SpecialChar menuseparator
15300 Graphics
15301 \family default
15302 ) in the header.
15303 \end_layout
15304
15305 \begin_layout Standard
15306 The biggest improvement is, though, that the letter's layout is configurable
15307  to meet almost any needs.
15308  This can be done via the preamble or with a special style file (Letter
15309  Class Option, extension 
15310 \family typewriter
15311 *.lco
15312 \family default
15313 ), that will be read in as a class option.
15314 \begin_inset Foot
15315 status collapsed
15316
15317 \begin_layout Plain Layout
15318 The KOMA package comes with some default 
15319 \family typewriter
15320 *.lco
15321 \family default
15322  files.
15323  There is, for instance, a 
15324 \family typewriter
15325 DIN.lco
15326 \family default
15327  file that follows german typesetting rules, or a 
15328 \family typewriter
15329 KOMAold.lco
15330 \family default
15331  that provides the default layout of the old 
15332 \family typewriter
15333 scrlettr
15334 \family default
15335  class.
15336  The latter can be loaded with the class option 
15337 \family typewriter
15338 KOMAold
15339 \family default
15340 , inserted via the 
15341 \family sans
15342 \bar under
15343 L
15344 \bar default
15345 ayout\SpecialChar menuseparator
15346
15347 \bar under
15348 D
15349 \bar default
15350 ocument\SpecialChar menuseparator
15351 Extra Options
15352 \family default
15353  field.
15354 \end_layout
15355
15356 \end_inset
15357
15358  Have a look at the 
15359 \emph on
15360 koma-letter2
15361 \emph default
15362  template that is included in \SpecialChar LyX
15363  for examples.
15364  A detailed description is to be found in the Koma-Script documentation
15365  (
15366 \emph on
15367 scrguide
15368 \emph default
15369 ).
15370 \end_layout
15371
15372 \begin_layout Subsection
15373 Problems
15374 \end_layout
15375
15376 \begin_layout Standard
15377 Visualizing the Koma-Script document classes in \SpecialChar LyX
15378 , the \SpecialChar LyX
15379  internals cause some
15380  problems.
15381 \end_layout
15382
15383 \begin_layout Itemize
15384 The chapter number of a 
15385 \family sans
15386 Chapter
15387 \family default
15388  type appears on a line of its own above the chapter heading instead of
15389  appearing in the same line ahead of it.
15390  The cause for that is the \SpecialChar LyX
15391  internal behavior for the labeltype 
15392 \family sans
15393 Counter_Chapter
15394 \family default
15395  in the layout file.
15396 \end_layout
15397
15398 \begin_layout Itemize
15399 The headings of the types 
15400 \family sans
15401 Addchap
15402 \family default
15403  and 
15404 \family sans
15405 Addsec
15406 \family default
15407  are only put in the 
15408 \begin_inset Quotes eld
15409 \end_inset
15410
15411 true
15412 \begin_inset Quotes erd
15413 \end_inset
15414
15415  \SpecialChar LaTeX
15416  table of contents, but not in the \SpecialChar LyX
15417  table of contents (
15418 \family sans
15419 Document\SpecialChar menuseparator
15420 Table
15421 \begin_inset space ~
15422 \end_inset
15423
15424 of
15425 \begin_inset space ~
15426 \end_inset
15427
15428 Contents
15429 \family default
15430 ).
15431 \end_layout
15432
15433 \begin_layout Itemize
15434 The paragraphs in a 
15435 \emph on
15436 letter
15437 \emph default
15438  document class appear in a skip separation mode, not indented.
15439  This is the standard behavior, no special \SpecialChar LaTeX
15440  commands are needed for that.
15441  But in the 
15442 \family sans
15443 Document\SpecialChar menuseparator
15444 Settings
15445 \family default
15446  dialog the corresponding radio button indicates 
15447 \family sans
15448 Indent
15449 \family default
15450 .
15451  A 
15452 \family sans
15453 Skip
15454 \family default
15455  value always has the effect that extra \SpecialChar LaTeX
15456  commands are inserted in the document
15457  to produce the gap, which is not what is wanted in this case.
15458 \end_layout
15459
15460 \begin_layout Section
15461 Memoir
15462 \end_layout
15463
15464 \begin_layout Standard
15465 By 
15466 \noun on
15467 Jürgen Spitzmüller
15468 \end_layout
15469
15470 \begin_layout Subsection
15471 Overview
15472 \end_layout
15473
15474 \begin_layout Standard
15475 Memoir is a very powerful and constantly evolving class.
15476  It has been designed with regard to fictional and non-fictional literature.
15477  Its aim is to let the user have maximum control over the typesetting of
15478  his document.
15479  Memoir is based on the standard book class, but it can also emulate the
15480  article class (see below).
15481 \end_layout
15482
15483 \begin_layout Standard
15484 Peter Wilson, the developer of Memoir, is known as the author of lots of
15485  useful packages in the \SpecialChar LaTeX
15486  world.
15487  Most of them have been merged with Memoir.
15488  Therefore, it is much easier to layout the table of contents, appendices,
15489  chapter designs and such.
15490  \SpecialChar LyX
15491 , though, does not support all of these goodies natively.
15492  Some of them might be added to forthcoming releases
15493 \begin_inset Foot
15494 status collapsed
15495
15496 \begin_layout Plain Layout
15497 You are invited to send suggestions to 
15498 \begin_inset Flex URL
15499 status collapsed
15500
15501 \begin_layout Plain Layout
15502
15503 lyx-devel@lists.lyx.org
15504 \end_layout
15505
15506 \end_inset
15507
15508 .
15509 \end_layout
15510
15511 \end_inset
15512
15513 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15514 's framework.
15515  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15516
15517  commands (\SpecialChar TeX
15518  code
15519 \begin_inset Foot
15520 status collapsed
15521
15522 \begin_layout Plain Layout
15523 Cf.
15524 \begin_inset ERT
15525 status collapsed
15526
15527 \begin_layout Plain Layout
15528
15529
15530 \backslash
15531  
15532 \end_layout
15533
15534 \end_inset
15535
15536 section
15537 \begin_inset space ~
15538 \end_inset
15539
15540
15541 \begin_inset CommandInset ref
15542 LatexCommand ref
15543 reference "sec:Inserting-TeX-Code"
15544
15545 \end_inset
15546
15547  for details.
15548 \end_layout
15549
15550 \end_inset
15551
15552 ).
15553  In this section, we can only list those features that are natively supported
15554  by \SpecialChar LyX
15555 .
15556  For detailed descriptions (and for the rest of features) we recommend you
15557  have a look at the detailed manual of the Memoir class
15558 \begin_inset Foot
15559 status collapsed
15560
15561 \begin_layout Plain Layout
15562 Cf.
15563 \begin_inset ERT
15564 status collapsed
15565
15566 \begin_layout Plain Layout
15567
15568
15569 \backslash
15570  
15571 \end_layout
15572
15573 \end_inset
15574
15575
15576 \begin_inset Flex URL
15577 status collapsed
15578
15579 \begin_layout Plain Layout
15580
15581 CTAN:/macros/latex/memoir/memman.pdf
15582 \end_layout
15583
15584 \end_inset
15585
15586 .
15587 \end_layout
15588
15589 \end_inset
15590
15591 , which is not only a user guide for the class, but also both a comprehensive
15592  description on good typesetting and a superb example for good typesetting
15593  itself.
15594 \end_layout
15595
15596 \begin_layout Subsection
15597 Basic features and restrictions
15598 \end_layout
15599
15600 \begin_layout Standard
15601 Memoir supports basically all features of the standard book classes.
15602  There are, however, some differences, as follows:
15603 \end_layout
15604
15605 \begin_layout Description
15606 Font
15607 \begin_inset space ~
15608 \end_inset
15609
15610 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15611 \end_layout
15612
15613 \begin_layout Description
15614 Page
15615 \begin_inset space ~
15616 \end_inset
15617
15618 style: The fancy page style is not supported, due to a command clash between
15619  Memoir and the fancyhdr package (they both define a command with the same
15620  name, which confuses \SpecialChar LaTeX
15621 ).
15622  Instead, Memoir comes with a number of its own page styles (see 
15623 \family sans
15624 Layout\SpecialChar menuseparator
15625 Document\SpecialChar menuseparator
15626 Page
15627 \begin_inset space ~
15628 \end_inset
15629
15630 Style
15631 \family default
15632 ).
15633  If you want to use these for the chapter pages, you have to use the command
15634  
15635 \family typewriter
15636
15637 \backslash
15638 chapterstyle
15639 \family default
15640  in the main text or in preamble (e.
15641 \begin_inset space \thinspace{}
15642 \end_inset
15643
15644 g.
15645 \begin_inset space \space{}
15646 \end_inset
15647
15648
15649 \family typewriter
15650
15651 \backslash
15652 chapterstyle{companion}
15653 \family default
15654 ).
15655 \end_layout
15656
15657 \begin_layout Description
15658 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15659  optional argument in the standard classes.
15660  With this, you can specify an alternative version of the title for the
15661  table of contents and the headers (for instance, if the title is too long).
15662  In \SpecialChar LyX
15663 , you can do this via 
15664 \family sans
15665 Insert\SpecialChar menuseparator
15666 Short
15667 \begin_inset space ~
15668 \end_inset
15669
15670 Title
15671 \family default
15672  at the beginning of a chapter/section.
15673  Memoir features a second optional argument and thus separates the table
15674  of contents from the header.
15675  You can define three variants of a title with this: one for the main text,
15676  one for the table of contents, and one for the headers.
15677  Simply insert two optional arguments if you need this feature, the first
15678  one containing the short title for the Table of Contents, the second one
15679  containing an alternative short title for the headers.
15680 \end_layout
15681
15682 \begin_layout Description
15683 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15684  of contents, the list of figures and the list of table start a new page
15685  automatically.
15686  Memoir does not follow this route.
15687  You have to insert a page break yourself, if you want to have one.
15688 \end_layout
15689
15690 \begin_layout Description
15691 Titlepage: For some unknown reason, Memoir uses pagination on the title
15692  page (in the standard classes, title pages are 
15693 \begin_inset Quotes eld
15694 \end_inset
15695
15696 empty
15697 \begin_inset Quotes erd
15698 \end_inset
15699
15700 ).
15701  If you want an empty title page, type 
15702 \family typewriter
15703
15704 \backslash
15705 aliaspagestyle{title}{empty}
15706 \family default
15707  in the preamble.
15708 \end_layout
15709
15710 \begin_layout Description
15711 Article: With the class option 
15712 \emph on
15713 article
15714 \emph default
15715  (to be inserted in 
15716 \family sans
15717 Layout\SpecialChar menuseparator
15718 Document\SpecialChar menuseparator
15719 Extra
15720 \begin_inset space ~
15721 \end_inset
15722
15723 Options
15724 \family default
15725 ), you can emulate article style.
15726  That is, counters (footnotes, figures, tables etc.) will not be reset on
15727  new chapters, chapters don't start a new page (but are—in contrary to 
15728 \begin_inset Quotes eld
15729 \end_inset
15730
15731 real
15732 \begin_inset Quotes erd
15733 \end_inset
15734
15735  article classes—still allowed), parts, though, use their own page, as in
15736  book.
15737 \end_layout
15738
15739 \begin_layout Description
15740 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15741  font commands, which have been used in the old \SpecialChar LaTeX
15742  version 2.09 (e.
15743 \begin_inset space \thinspace{}
15744 \end_inset
15745
15746 g.
15747 \begin_inset space \space{}
15748 \end_inset
15749
15750
15751 \family typewriter
15752
15753 \backslash
15754 rm
15755 \family default
15756
15757 \family typewriter
15758
15759 \backslash
15760 it
15761 \family default
15762 ).
15763  It produces an error and stops \SpecialChar LaTeX
15764  whenever such a command appears.
15765  The class option 
15766 \emph on
15767 oldfontcommands
15768 \emph default
15769  reallows the commands and spits out warnings instead (which does at least
15770  not stop \SpecialChar LaTeX
15771 ).
15772  Since a lot of packages and particularly Bib\SpecialChar TeX
15773  style files are still using
15774  those commands, we have decided to use this option by default.
15775 \end_layout
15776
15777 \begin_layout Subsection
15778 Extra features
15779 \end_layout
15780
15781 \begin_layout Standard
15782 We will only describe the features supported by \SpecialChar LyX
15783  (which is not much currently).
15784  Please consult the Memoir manual
15785 \begin_inset Foot
15786 status collapsed
15787
15788 \begin_layout Plain Layout
15789 Cf.
15790 \begin_inset ERT
15791 status collapsed
15792
15793 \begin_layout Plain Layout
15794
15795
15796 \backslash
15797  
15798 \end_layout
15799
15800 \end_inset
15801
15802
15803 \begin_inset Flex URL
15804 status collapsed
15805
15806 \begin_layout Plain Layout
15807
15808 CTAN:/macros/latex/memoir/memman.pdf
15809 \end_layout
15810
15811 \end_inset
15812
15813 .
15814 \end_layout
15815
15816 \end_inset
15817
15818  for details.
15819 \end_layout
15820
15821 \begin_layout Description
15822 Abstract: You may wonder why an abstract is an extra feature.
15823  Well, it is in book class.
15824  Usually books don't have abstracts.
15825  Memoir, however, has.
15826  You can use it wherever and how often you like.
15827 \end_layout
15828
15829 \begin_layout Description
15830 Chapterprecis: You may know this older typesetting style: The contents of
15831  a chapter are summarized below the title and also in the table of contents
15832  (e.
15833 \begin_inset space \thinspace{}
15834 \end_inset
15835
15836 g.
15837 \begin_inset space \space{}
15838 \end_inset
15839
15840
15841 \emph on
15842 Our hero arrives in Troia; he loses some friends; he finds others
15843 \emph default
15844 ).
15845  Chapterprecis does exactly this.
15846  It is therefore only sensible below a chapter.
15847 \end_layout
15848
15849 \begin_layout Description
15850 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15851  The epigraph environment provides an elegant way of typesetting such a
15852  motto.
15853  The motto itself (text) and its author (source) are divided by a short
15854  line.
15855  Unfortunately, we have to fool \SpecialChar LyX
15856  a bit here again, since the environment
15857  needs two arguments (text and source).
15858  In this case, we have to use curly brackets (in \SpecialChar TeX
15859  mode) between the two
15860  arguments: 
15861 \emph on
15862 <smart slogan>
15863 \emph default
15864  
15865 \family typewriter
15866 }{
15867 \family default
15868  
15869 \emph on
15870 <author of the slogan>.
15871 \end_layout
15872
15873 \begin_layout Description
15874 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15875  complex figurative poems).
15876  \SpecialChar LyX
15877  can only support a few of them.
15878  One is poemtitle, which is a centered title for poems, which will also
15879  be added to the table of contents (verse is the standard environment for
15880  poems.
15881  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15882  code,
15883  because they have to be nested inside regular verse environments, which
15884  is not possible with \SpecialChar LyX
15885 ).
15886 \end_layout
15887
15888 \begin_layout Description
15889 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15890 \end_layout
15891
15892 \begin_layout Section
15893 Article (mwart), book (mwbk) and report (mwrep)
15894 \begin_inset Argument status
15895 status collapsed
15896
15897 \begin_layout Plain Layout
15898 The 
15899 \family typewriter
15900 mw
15901 \family default
15902  Classes
15903 \end_layout
15904
15905 \end_inset
15906
15907
15908 \end_layout
15909
15910 \begin_layout Standard
15911 by 
15912 \noun on
15913 Tomasz Luczak
15914 \end_layout
15915
15916 \begin_layout Standard
15917 The \SpecialChar LyX
15918  document classes 
15919 \emph on
15920 article (mwart)
15921 \emph default
15922
15923 \emph on
15924 report (mwrep)
15925 \emph default
15926  and 
15927 \emph on
15928 book
15929 \emph default
15930  
15931 \emph on
15932 (mwbk)
15933 \emph default
15934  correspond to the \SpecialChar LaTeX
15935  document classes 
15936 \family typewriter
15937 mwart.cls
15938 \family default
15939
15940 \family typewriter
15941 mwrep.cls
15942 \family default
15943  and 
15944 \family typewriter
15945 mwbk.cls
15946 \family default
15947 , resp.
15948  They are replacements for the standard document classes 
15949 \family typewriter
15950 article.cls
15951 \family default
15952
15953 \family typewriter
15954 report.cls
15955 \family default
15956  and 
15957 \family typewriter
15958 book.cls
15959 \family default
15960 , resp., and fit better to Polish typography conventions in a number of points.
15961  
15962 \end_layout
15963
15964 \begin_layout Standard
15965 Basic differences:
15966 \end_layout
15967
15968 \begin_layout Itemize
15969 Unnumbered titles (with star, e.
15970 \begin_inset space \thinspace{}
15971 \end_inset
15972
15973 g.
15974 \begin_inset space \space{}
15975 \end_inset
15976
15977
15978 \family sans
15979 Section*
15980 \family default
15981 ) are added into table of contents,
15982 \end_layout
15983
15984 \begin_layout Itemize
15985 Additional page styles:
15986 \begin_inset Separator parbreak
15987 \end_inset
15988
15989
15990 \end_layout
15991
15992 \begin_deeper
15993 \begin_layout Description
15994 uheadings header with separated lines,
15995 \end_layout
15996
15997 \begin_layout Description
15998 myheadings custom header, contents headers via commands: 
15999 \family typewriter
16000
16001 \backslash
16002 markright
16003 \family default
16004  and 
16005 \family typewriter
16006
16007 \backslash
16008 markboth
16009 \family default
16010 ,
16011 \end_layout
16012
16013 \begin_layout Description
16014 myuheadings custom header with separated lines,
16015 \end_layout
16016
16017 \begin_layout Description
16018 outer page number is placed on outer side of page
16019 \end_layout
16020
16021 \end_deeper
16022 \begin_layout Itemize
16023 Options 
16024 \begin_inset Separator parbreak
16025 \end_inset
16026
16027
16028 \end_layout
16029
16030 \begin_deeper
16031 \begin_layout Description
16032 rmheadings serif titles — default,
16033 \end_layout
16034
16035 \begin_layout Description
16036 sfheadings sansserif titles,
16037 \end_layout
16038
16039 \begin_layout Description
16040 authortitle on title page first placed is author next title — default,
16041 \end_layout
16042
16043 \begin_layout Description
16044 titleauthor on title page first placed is title next author,
16045 \end_layout
16046
16047 \begin_layout Description
16048 withmarginpar reserve place on page for margins.
16049 \end_layout
16050
16051 \end_deeper
16052 \begin_layout Section
16053 Paper
16054 \end_layout
16055
16056 \begin_layout Standard
16057 The document class 
16058 \family sans
16059 paper
16060 \family default
16061  provides an alternative to the standard 
16062 \family sans
16063 article
16064 \family default
16065  class.
16066  It provides similar functionality, but you might prefer this layout with
16067  sans serif sections, headings, and more.
16068 \end_layout
16069
16070 \begin_layout Section
16071 Rev\SpecialChar TeX
16072 4
16073 \end_layout
16074
16075 \begin_layout Standard
16076 by 
16077 \noun on
16078 Amir Karger
16079 \end_layout
16080
16081 \begin_layout Standard
16082 \begin_inset VSpace bigskip
16083 \end_inset
16084
16085
16086 \end_layout
16087
16088 \begin_layout Standard
16089 \noindent
16090 The 
16091 \family sans
16092 Revtex
16093 \begin_inset space ~
16094 \end_inset
16095
16096 4
16097 \family default
16098  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16099  4.0 (the 
16100 \begin_inset Formula $\beta$
16101 \end_inset
16102
16103  release of May, 1999) class.
16104 \end_layout
16105
16106 \begin_layout Standard
16107 \SpecialChar LyX
16108  has a 
16109 \family sans
16110 Revtex
16111 \family default
16112  textclass, which works with Rev\SpecialChar TeX
16113  3.1.
16114  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16115  2.09.
16116  That means that it doesn't interact very well with \SpecialChar LyX
16117 , which requires \SpecialChar LaTeX2e
16118 , although
16119  it has been kludged to work.
16120  Since Rev\SpecialChar TeX
16121  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16122 , \SpecialChar LyX
16123  with the
16124  
16125 \family sans
16126 Rev\SpecialChar TeX
16127
16128 \begin_inset space ~
16129 \end_inset
16130
16131 4
16132 \family default
16133  textclass should also be pretty easy to use.
16134 \end_layout
16135
16136 \begin_layout Standard
16137 These documents are supposed to be used in 
16138 \emph on
16139 addition
16140 \emph default
16141  to the Rev\SpecialChar TeX
16142  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16143  macros,
16144  and assume you'll know what to put in the preamble if necessary.
16145 \end_layout
16146
16147 \begin_layout Subsection
16148 Installation
16149 \end_layout
16150
16151 \begin_layout Standard
16152 All you need to do is install Rev\SpecialChar TeX
16153  4, as described in the package's README
16154  file.
16155  The package can be found at The Rev\SpecialChar TeX
16156  4 Web Site 
16157 \begin_inset Flex URL
16158 status collapsed
16159
16160 \begin_layout Plain Layout
16161
16162 http://publish.aps.org/revtex4/
16163 \end_layout
16164
16165 \end_inset
16166
16167 .
16168  Install it somewhere that \SpecialChar LaTeX
16169  can see it.
16170  Test it by trying to \SpecialChar LaTeX
16171  a short Rev\SpecialChar TeX
16172  4 document in some random directory (i.
16173 \begin_inset space \thinspace{}
16174 \end_inset
16175
16176 e.
16177 \begin_inset space \space{}
16178 \end_inset
16179
16180 not the directory where you installed the class file.) Then, if you reconfigure
16181  \SpecialChar LyX
16182 , it will find the class file and let you use the Rev\SpecialChar TeX
16183 4 textclass.
16184 \end_layout
16185
16186 \begin_layout Standard
16187 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16188  4 document
16189  using 
16190 \family typewriter
16191 tex2lyx
16192 \family default
16193 , or to use the 
16194 \family sans
16195 Revtex
16196 \begin_inset space ~
16197 \end_inset
16198
16199 4
16200 \family default
16201  template, found in the templates directory.
16202 \end_layout
16203
16204 \begin_layout Subsection
16205 Preamble Matter
16206 \end_layout
16207
16208 \begin_layout Standard
16209 Optional arguments to 
16210 \family typewriter
16211
16212 \backslash
16213 documentclass
16214 \family default
16215 , like 
16216 \begin_inset Quotes eld
16217 \end_inset
16218
16219 preprint
16220 \begin_inset Quotes erd
16221 \end_inset
16222
16223  and 
16224 \begin_inset Quotes eld
16225 \end_inset
16226
16227 aps
16228 \begin_inset Quotes erd
16229 \end_inset
16230
16231 , go in the 
16232 \family sans
16233 E
16234 \bar under
16235 x
16236 \bar default
16237 tra
16238 \begin_inset space ~
16239 \end_inset
16240
16241 Options
16242 \family default
16243  field in the 
16244 \family sans
16245 Document
16246 \begin_inset space ~
16247 \end_inset
16248
16249 Layout
16250 \family default
16251  dialog, as usual.
16252  Remember that in Rev\SpecialChar TeX
16253 , at least one optional argument is required! 
16254 \end_layout
16255
16256 \begin_layout Standard
16257 Other preamble matter, like 
16258 \family typewriter
16259
16260 \backslash
16261 draft
16262 \family default
16263  etc.
16264 \begin_inset space ~
16265 \end_inset
16266
16267 goes in the 
16268 \family sans
16269 \SpecialChar LaTeX
16270
16271 \begin_inset space ~
16272 \end_inset
16273
16274 Preamble
16275 \family default
16276  dialog, also as usual.
16277 \end_layout
16278
16279 \begin_layout Subsection
16280 Layouts
16281 \end_layout
16282
16283 \begin_layout Standard
16284 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16285 4.0.
16286  For example, the Email layout corresponds to 
16287 \family typewriter
16288
16289 \backslash
16290 email{}
16291 \family default
16292 .
16293  Note that (at least as of Rev\SpecialChar TeX
16294  4.0 Beta), the 
16295 \family sans
16296 Address
16297 \family default
16298  and 
16299 \family sans
16300 Affiliation
16301 \family default
16302  layouts are exactly equivalent, so you shouldn't need to use both.
16303 \begin_inset Foot
16304 status collapsed
16305
16306 \begin_layout Plain Layout
16307 In case you're curious, both were included so that 
16308 \family typewriter
16309 tex2lyx
16310 \family default
16311  would be able to translate both 
16312 \family typewriter
16313
16314 \backslash
16315 address
16316 \family default
16317  and 
16318 \family typewriter
16319
16320 \backslash
16321 affiliation
16322 \family default
16323 .
16324 \end_layout
16325
16326 \end_inset
16327
16328
16329 \end_layout
16330
16331 \begin_layout Subsection
16332 Important Notes
16333 \end_layout
16334
16335 \begin_layout Standard
16336 There are a couple of important unique aspects of Rev\SpecialChar TeX
16337  4 which might cause
16338  bugs that will be even more confusing in \SpecialChar LyX
16339 .
16340 \end_layout
16341
16342 \begin_layout Standard
16343 In Rev\SpecialChar TeX
16344 , the 
16345 \family typewriter
16346
16347 \backslash
16348 thanks
16349 \family default
16350  command goes 
16351 \emph on
16352 outside
16353 \emph default
16354  the 
16355 \family typewriter
16356
16357 \backslash
16358 author
16359 \family default
16360  command.
16361  The \SpecialChar LyX
16362  equivalent is that there is a separate Thanks layout.
16363  Do 
16364 \emph on
16365 not
16366 \emph default
16367  write footnotes in the 
16368 \family sans
16369 Author
16370 \family default
16371  layout, or weird things may happen.
16372  See the Rev\SpecialChar TeX
16373  4 documentation for more details.
16374 \end_layout
16375
16376 \begin_layout Standard
16377 Also, the 
16378 \family sans
16379 Author
16380 \begin_inset space ~
16381 \end_inset
16382
16383 Email
16384 \family default
16385
16386 \family sans
16387 Author
16388 \begin_inset space ~
16389 \end_inset
16390
16391 URL
16392 \family default
16393 , and 
16394 \family sans
16395 Thanks
16396 \family default
16397  layouts must be placed 
16398 \emph on
16399 in between
16400 \emph default
16401  the 
16402 \family sans
16403 Author
16404 \family default
16405  layout and the corresponding 
16406 \family sans
16407 Address
16408 \family default
16409  (or equivalent 
16410 \family sans
16411 Affiliation
16412 \family default
16413 ) layout.
16414  If you put the 
16415 \family sans
16416 Thanks
16417 \family default
16418  after the 
16419 \family sans
16420 Address
16421 \family default
16422 , the \SpecialChar LaTeX
16423  won't compile.
16424 \end_layout
16425
16426 \begin_layout Subsection
16427 Drawbacks
16428 \end_layout
16429
16430 \begin_layout Standard
16431 The main problem with this layout is that you can't use the optional arguments
16432  to layouts like Email and Title.
16433  (The problem is not unique to this layout; you can't use optional arguments
16434  to the Section layouts either.) This means that after you export that file
16435  to \SpecialChar LaTeX
16436  (which you'll need to do eventually to send it in to APS), you'll need
16437  to edit the \SpecialChar LaTeX
16438  file with a text editor to add the optional arguments to set,
16439  e.
16440 \begin_inset space \thinspace{}
16441 \end_inset
16442
16443 g.
16444 \begin_inset space \space{}
16445 \end_inset
16446
16447 the running title for the page headers.
16448  Lacking these layouts makes the 
16449 \family typewriter
16450
16451 \backslash
16452 altaffiliation
16453 \family default
16454  (and the equivalent 
16455 \family typewriter
16456
16457 \backslash
16458 altaddress
16459 \family default
16460 ) useless, so the corresponding layouts don't exist, and will have to be
16461  added by hand.
16462 \begin_inset Foot
16463 status collapsed
16464
16465 \begin_layout Plain Layout
16466
16467 \emph on
16468 Note from JMarc:
16469 \emph default
16470  actually, \SpecialChar LyX
16471  1.3.0 supports some forms of optional arguments, but this layout
16472  has not been updated yet to take advantage of it.
16473 \end_layout
16474
16475 \end_inset
16476
16477  
16478 \end_layout
16479
16480 \begin_layout Section
16481 Springer Journals (
16482 \family sans
16483 svjour
16484 \family default
16485 )
16486 \end_layout
16487
16488 \begin_layout Standard
16489 by 
16490 \noun on
16491 Martin Vermeer
16492 \end_layout
16493
16494 \begin_layout Subsection
16495 Description
16496 \end_layout
16497
16498 \begin_layout Standard
16499 These are the layout files for some of the journal formats used by Springer
16500  Verlag and listed on 
16501 \begin_inset Flex URL
16502 status collapsed
16503
16504 \begin_layout Plain Layout
16505
16506 http://www.springer.de/author/tex/help-journals.html
16507 \end_layout
16508
16509 \end_inset
16510
16511 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16512  now!).
16513  It is a modular system: the things common to all journals are implemented
16514  in 
16515 \family typewriter
16516 svjour.inc
16517 \family default
16518 , which journal-specific layout files (such as, e.
16519 \begin_inset space \thinspace{}
16520 \end_inset
16521
16522 g.
16523 \begin_inset space \space{}
16524 \end_inset
16525
16526
16527 \family typewriter
16528 svjog.layout
16529 \family default
16530  for Journal of Geodesy) can include.
16531 \end_layout
16532
16533 \begin_layout Standard
16534 This means that implementing support for any other Springer journal on this
16535  list is as simple as writing your own 
16536 \family typewriter
16537 sv
16538 \family default
16539 <myjournal>
16540 \family typewriter
16541 .layout
16542 \family default
16543  file following the outline given in 
16544 \family typewriter
16545 svjog.layout
16546 \family default
16547 .
16548  
16549 \end_layout
16550
16551 \begin_layout Standard
16552 It is reasonably well tested only for the Journal of Geodesy.
16553  
16554 \family typewriter
16555 svjour
16556 \family default
16557  and 
16558 \family typewriter
16559 svjog
16560 \family default
16561  come with the standard \SpecialChar LyX
16562  distribution.
16563  Install the relevant class file (downloaded from Springer) in a proper
16564  directory, reconfigure \SpecialChar LaTeX
16565  (in the te\SpecialChar TeX
16566  case by running 
16567 \family typewriter
16568 texhash
16569 \family default
16570 , as root if necessary — doesn't \SpecialChar LyX
16571  take care of this?), reconfigure \SpecialChar LyX
16572  and
16573  it should work.
16574 \end_layout
16575
16576 \begin_layout Subsection
16577 New styles
16578 \end_layout
16579
16580 \begin_layout Standard
16581 A large number of theorem-like styles — 
16582 \family sans
16583 Claim, Conjecture,
16584 \family default
16585  
16586 \family sans
16587 \SpecialChar ldots
16588 Theorem
16589 \family default
16590 .
16591 \end_layout
16592
16593 \begin_layout Standard
16594
16595 \family sans
16596 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16597 _Title, Author_Running, Institute,
16598  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16599 \family default
16600 .
16601  See the Springer class file documentation for details.
16602 \end_layout
16603
16604 \begin_layout Subsection
16605 Supported journals
16606 \end_layout
16607
16608 \begin_layout Itemize
16609
16610 \emph on
16611 Journal of Geodesy
16612 \emph default
16613
16614 \family typewriter
16615 svjog.layout
16616 \family default
16617  — Martin Vermeer
16618 \end_layout
16619
16620 \begin_layout Itemize
16621
16622 \emph on
16623 Probability Theory and Related Fields
16624 \emph default
16625
16626 \family typewriter
16627 svprobth.layout
16628 \family default
16629  — Jean-Marc Lasgouttes
16630 \end_layout
16631
16632 \begin_layout Standard
16633 Add your own, it isn't so hard!
16634 \end_layout
16635
16636 \begin_layout Subsection
16637 Credits
16638 \end_layout
16639
16640 \begin_layout Standard
16641 These files are partly based on the older 
16642 \family typewriter
16643 ejour2.layout
16644 \family default
16645 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16646  2.09 style
16647  file from Springer.
16648  All this, and the 
16649 \family typewriter
16650 ejour2
16651 \family default
16652  layout, are now defunct.
16653  Jean-Marc Lasgouttes helped out big in making me find my way around the
16654  \SpecialChar LyX
16655  layout file mechanism.
16656 \end_layout
16657
16658 \begin_layout Subsection
16659 Bugs
16660 \end_layout
16661
16662 \begin_layout Standard
16663 Probably.
16664  But probably less than in the old hacked-\SpecialChar LaTeX
16665  
16666 \family typewriter
16667 ejour2
16668 \family default
16669 .
16670 \end_layout
16671
16672 \begin_layout Standard
16673 Limitations e.
16674 \begin_inset space \thinspace{}
16675 \end_inset
16676
16677 g.: does not display the number for theorem-like layouts, just #.
16678 \end_layout
16679
16680 \begin_layout Section
16681 Slides [aka 
16682 \noun on
16683 Sli\SpecialChar TeX
16684
16685 \noun default
16686 ]
16687 \begin_inset CommandInset label
16688 LatexCommand label
16689 name "sec:slitex"
16690
16691 \end_inset
16692
16693
16694 \end_layout
16695
16696 \begin_layout Standard
16697 by 
16698 \noun on
16699 John Weiss
16700 \noun default
16701  
16702 \end_layout
16703
16704 \begin_layout Subsection
16705 Introduction
16706 \end_layout
16707
16708 \begin_layout Standard
16709 This section describes how to use \SpecialChar LyX
16710  to make slides for overhead projectors.
16711  There are two document classes that can do this: the default slides class
16712  and the 
16713 \family sans
16714 Foil\SpecialChar TeX
16715
16716 \family default
16717  slides class.
16718  This section documents the former.
16719 \end_layout
16720
16721 \begin_layout Standard
16722 I'm going to say this again, nice and clear, so that there's no misunderstanding
16723 :
16724 \end_layout
16725
16726 \begin_layout Standard
16727 \begin_inset VSpace bigskip
16728 \end_inset
16729
16730
16731 \end_layout
16732
16733 \begin_layout Standard
16734 \align center
16735
16736 \size large
16737 This section documents the class 
16738 \begin_inset Quotes eld
16739 \end_inset
16740
16741
16742 \family sans
16743 slides (default)
16744 \family default
16745
16746 \begin_inset Quotes erd
16747 \end_inset
16748
16749  
16750 \emph on
16751 only.
16752 \end_layout
16753
16754 \begin_layout Standard
16755 \begin_inset VSpace bigskip
16756 \end_inset
16757
16758
16759 \end_layout
16760
16761 \begin_layout Standard
16762 If you're looking for the documentation for 
16763 \begin_inset Quotes eld
16764 \end_inset
16765
16766
16767 \family sans
16768 slides (Foil\SpecialChar TeX
16769 )
16770 \family default
16771
16772 \begin_inset Quotes erd
16773 \end_inset
16774
16775 , check out section
16776 \begin_inset space ~
16777 \end_inset
16778
16779
16780 \begin_inset CommandInset ref
16781 LatexCommand ref
16782 reference "sec:foiltex"
16783
16784 \end_inset
16785
16786 .
16787  The 
16788 \family sans
16789 foils
16790 \family default
16791  class [
16792 \begin_inset Quotes eld
16793 \end_inset
16794
16795
16796 \family sans
16797 slides (Foil\SpecialChar TeX
16798 )
16799 \family default
16800
16801 \begin_inset Quotes erd
16802 \end_inset
16803
16804 ] is actually somewhat better than the default 
16805 \family sans
16806 slides
16807 \family default
16808  class,
16809 \begin_inset Foot
16810 status collapsed
16811
16812 \begin_layout Plain Layout
16813 \SpecialChar ldots
16814 or so I've been told repeatedly by its advocates.
16815  Having never used it, I have no idea if this claim is true or not.
16816 \end_layout
16817
16818 \end_inset
16819
16820  which this section documents.
16821 \end_layout
16822
16823 \begin_layout Standard
16824 This class is the \SpecialChar LaTeX2e
16825  improvement of the old 
16826 \noun on
16827 Sli\SpecialChar TeX
16828
16829 \noun default
16830  package.
16831  Every \SpecialChar LaTeX2e
16832  distribution includes this class [which I'll just refer to as 
16833 \begin_inset Quotes eld
16834 \end_inset
16835
16836
16837 \family sans
16838 slides
16839 \family default
16840
16841 \begin_inset Quotes erd
16842 \end_inset
16843
16844  from now on], so you're bound to have it.
16845  As I noted earlier, there are other classes, such as 
16846 \family sans
16847 foils
16848 \family default
16849 , which also produce slides for overhead projectors and do a better job
16850  at it.
16851  However, there are some things which 
16852 \family sans
16853 slides
16854 \family default
16855  can do which the others can't, such as generate overlays.
16856  Read on to learn more!
16857 \end_layout
16858
16859 \begin_layout Subsection
16860 Getting Started
16861 \begin_inset CommandInset label
16862 LatexCommand label
16863 name "sec:slidesetup"
16864
16865 \end_inset
16866
16867
16868 \end_layout
16869
16870 \begin_layout Standard
16871 Obviously, to use this document class, you need to select 
16872 \begin_inset Quotes eld
16873 \end_inset
16874
16875
16876 \family sans
16877 slides (default)
16878 \family default
16879
16880 \begin_inset Quotes erd
16881 \end_inset
16882
16883  from the class list in the 
16884 \family sans
16885 Document\SpecialChar menuseparator
16886 Settings
16887 \family default
16888  dialog.
16889  There are some other special things you should know about this class:
16890 \end_layout
16891
16892 \begin_layout Itemize
16893 Don't bother changing the options 
16894 \family sans
16895 Sides and Columns
16896 \family default
16897 .
16898  They're not supported by the 
16899 \family sans
16900 slides
16901 \family default
16902  class, anyways.
16903 \end_layout
16904
16905 \begin_layout Itemize
16906 The option 
16907 \family sans
16908 Page
16909 \begin_inset space ~
16910 \end_inset
16911
16912 style
16913 \family default
16914  behaves a bit differently for this class.
16915  The possible choices and what they do are as follows:
16916 \begin_inset Separator parbreak
16917 \end_inset
16918
16919
16920 \end_layout
16921
16922 \begin_deeper
16923 \begin_layout Description
16924
16925 \family sans
16926 plain
16927 \family default
16928  The final output contains page numbers in the lower right corner.
16929 \end_layout
16930
16931 \begin_layout Description
16932
16933 \family sans
16934 headings
16935 \family default
16936  Like 
16937 \family sans
16938 plain
16939 \family default
16940 , but also prints out any time markers you've put in.
16941  This is the default.
16942 \end_layout
16943
16944 \begin_layout Description
16945
16946 \family sans
16947 empty
16948 \family default
16949  The final output contains no page numbers, time markers, or alignment markers.
16950 \end_layout
16951
16952 \end_deeper
16953 \begin_layout Itemize
16954 The 
16955 \family sans
16956 slides
16957 \family default
16958  class has an extra option: 
16959 \family typewriter
16960 clock
16961 \family default
16962 .
16963  To use it, put 
16964 \begin_inset Quotes eld
16965 \end_inset
16966
16967
16968 \family typewriter
16969 clock
16970 \family default
16971
16972 \begin_inset Quotes erd
16973 \end_inset
16974
16975  in the extra class options.
16976 \begin_inset Separator parbreak
16977 \end_inset
16978
16979
16980 \end_layout
16981
16982 \begin_deeper
16983 \begin_layout Standard
16984 Using this options allows you to add time markers to 
16985 \family sans
16986 Note
16987 \family default
16988 s.
16989  See section
16990 \begin_inset space ~
16991 \end_inset
16992
16993
16994 \begin_inset CommandInset ref
16995 LatexCommand ref
16996 reference "sec:slideNote"
16997
16998 \end_inset
16999
17000  for more details.
17001 \end_layout
17002
17003 \end_deeper
17004 \begin_layout Standard
17005 You can also use the template file 
17006 \begin_inset Quotes eld
17007 \end_inset
17008
17009
17010 \family typewriter
17011 slides.lyx
17012 \family default
17013
17014 \begin_inset Quotes erd
17015 \end_inset
17016
17017  to automatically set up a document to use the 
17018 \family sans
17019 slides
17020 \family default
17021  class [using 
17022 \family sans
17023 File\SpecialChar menuseparator
17024 New
17025 \begin_inset space ~
17026 \end_inset
17027
17028 from
17029 \begin_inset space ~
17030 \end_inset
17031
17032 Template
17033 \family default
17034  to open your new document].
17035  The template file also contains some examples of the special paragraph
17036  environments used by this class.
17037  I'll describe those next.
17038 \end_layout
17039
17040 \begin_layout Subsection
17041 Paragraph Environments
17042 \end_layout
17043
17044 \begin_layout Subsubsection
17045 Supported Environments
17046 \end_layout
17047
17048 \begin_layout Standard
17049 The first thing you'll notice when you start up a new 
17050 \family sans
17051 slides
17052 \family default
17053  document is the font size and type: it's the equivalent of the size 
17054 \begin_inset Quotes eld
17055 \end_inset
17056
17057
17058 \family sans
17059 Largest
17060 \family default
17061
17062 \begin_inset Quotes erd
17063 \end_inset
17064
17065  in the 
17066 \family sans
17067 Sans
17068 \begin_inset space ~
17069 \end_inset
17070
17071 Serif
17072 \family default
17073  font.
17074  This is also what's used in the output.
17075  Think of this as a 
17076 \begin_inset Quotes eld
17077 \end_inset
17078
17079 visual cue
17080 \begin_inset Quotes erd
17081 \end_inset
17082
17083  to remind you that this is a slide.
17084  Your final slides will use a larger font; ergo, you'll have less space.
17085  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17086 \end_layout
17087
17088 \begin_layout Standard
17089 The next thing that becomes obvious is the changes to the paragraph environment
17090  pull-down box [at the far-left end of the toolbar].
17091  Most of the paragraph environments you're used to seeing are missing.
17092  There are also five new ones.
17093  That's because the 
17094 \family sans
17095 slides
17096 \family default
17097  class itself only supports certain paragraph environments:
17098 \end_layout
17099
17100 \begin_layout Itemize
17101
17102 \family sans
17103 Standard
17104 \end_layout
17105
17106 \begin_layout Itemize
17107
17108 \family sans
17109 Itemize
17110 \end_layout
17111
17112 \begin_layout Itemize
17113
17114 \family sans
17115 Enumerate
17116 \end_layout
17117
17118 \begin_layout Itemize
17119
17120 \family sans
17121 Description
17122 \end_layout
17123
17124 \begin_layout Itemize
17125
17126 \family sans
17127 List
17128 \end_layout
17129
17130 \begin_layout Itemize
17131
17132 \family sans
17133 Quotation
17134 \end_layout
17135
17136 \begin_layout Itemize
17137
17138 \family sans
17139 Quote
17140 \end_layout
17141
17142 \begin_layout Itemize
17143
17144 \family sans
17145 Verse
17146 \end_layout
17147
17148 \begin_layout Itemize
17149
17150 \family sans
17151 Caption
17152 \end_layout
17153
17154 \begin_layout Itemize
17155
17156 \family sans
17157 \SpecialChar LyX
17158 -Code
17159 \end_layout
17160
17161 \begin_layout Itemize
17162
17163 \family sans
17164 Comment
17165 \end_layout
17166
17167 \begin_layout Standard
17168 All of the other standard environments, including the section-heading environmen
17169 ts, aren't used in the 
17170 \family sans
17171 slides
17172 \family default
17173  class.
17174 \end_layout
17175
17176 \begin_layout Standard
17177 On the other hand, you'll notice the following new environments:
17178 \end_layout
17179
17180 \begin_layout Itemize
17181
17182 \family sans
17183 Slide
17184 \end_layout
17185
17186 \begin_layout Itemize
17187
17188 \family sans
17189 Overlay
17190 \end_layout
17191
17192 \begin_layout Itemize
17193
17194 \family sans
17195 Note
17196 \end_layout
17197
17198 \begin_layout Itemize
17199
17200 \family sans
17201 InvisibleText
17202 \end_layout
17203
17204 \begin_layout Itemize
17205
17206 \family sans
17207 VisibleText
17208 \end_layout
17209
17210 \begin_layout Standard
17211 These five are kind of quirky, due to a 
17212 \begin_inset Quotes eld
17213 \end_inset
17214
17215 feature
17216 \begin_inset Quotes erd
17217 \end_inset
17218
17219  in \SpecialChar LyX
17220 .
17221  You see, \SpecialChar LyX
17222  doesn't permit you to nest any other paragraph environment into
17223  an empty environment.
17224  Now, that's fine and dandy, but it means that you wouldn't be able to start
17225  a slide with anything except plain text.
17226  To deal with this, I've performed a little 
17227 \begin_inset Quotes eld
17228 \end_inset
17229
17230 \SpecialChar LaTeX
17231  magic.
17232 \begin_inset Quotes erd
17233 \end_inset
17234
17235  
17236 \end_layout
17237
17238 \begin_layout Subsubsection
17239 Quirks of the New Environments
17240 \begin_inset CommandInset label
17241 LatexCommand label
17242 name "sec:slideQuirk"
17243
17244 \end_inset
17245
17246
17247 \end_layout
17248
17249 \begin_layout Standard
17250 All five of the new paragraph environments are somewhat quirky due to inherent
17251  limitiations in the current version of \SpecialChar LyX
17252 .
17253  As I just mentioned, \SpecialChar LyX
17254  forbids environments that begin with another environment.
17255  To get around this, the 
17256 \family sans
17257 Slide
17258 \family default
17259  environment isn't a paragraph environment as described in the 
17260 \emph on
17261 User's Guide
17262 \emph default
17263 .
17264  
17265 \end_layout
17266
17267 \begin_layout Standard
17268 You should consider 
17269 \family sans
17270 Slide
17271 \family default
17272
17273 \family sans
17274 Overlay
17275 \family default
17276 , and 
17277 \family sans
17278 Note
17279 \family default
17280  to be 
17281 \begin_inset Quotes eld
17282 \end_inset
17283
17284 pseudo-environments.
17285 \begin_inset Quotes erd
17286 \end_inset
17287
17288  They look like a section heading or a 
17289 \begin_inset Quotes eld
17290 \end_inset
17291
17292
17293 \family sans
17294 Caption
17295 \family default
17296 ,
17297 \begin_inset Quotes erd
17298 \end_inset
17299
17300  but really begin a [and, if necessary, end the previous] paragraph environment.
17301  Likewise, treat 
17302 \family sans
17303 InvisibleText
17304 \family default
17305  and 
17306 \family sans
17307 VisibleText
17308 \family default
17309  as 
17310 \begin_inset Quotes eld
17311 \end_inset
17312
17313 pseudo-commands.
17314 \begin_inset Quotes erd
17315 \end_inset
17316
17317  These two perform some action.
17318 \end_layout
17319
17320 \begin_layout Standard
17321 A common feature of all five environments, 
17322 \family sans
17323 Slide
17324 \family default
17325
17326 \family sans
17327 Overlay
17328 \family default
17329
17330 \family sans
17331 Note
17332 \family default
17333
17334 \family sans
17335 InvisibleText
17336 \family default
17337  and 
17338 \family sans
17339 VisibleText
17340 \family default
17341 , is a rather long-ish label.
17342  The text following this label — ordinarily the contents of the paragraph
17343  environment — is utterly irrelevant for 
17344 \family sans
17345 Slide
17346 \family default
17347
17348 \family sans
17349 Overlay
17350 \family default
17351
17352 \family sans
17353 Note
17354 \family default
17355
17356 \family sans
17357 InvisibleText
17358 \family default
17359  and 
17360 \family sans
17361 VisibleText
17362 \family default
17363 .
17364  \SpecialChar LyX
17365  completely ignores it.
17366  In fact, you can leave these five environments completely empty.
17367  
17368 \end_layout
17369
17370 \begin_layout Standard
17371 While you don't 
17372 \emph on
17373 have
17374 \emph default
17375  to put any text after the rather long-ish label, you might want to.
17376  This could be a short description of the contents of the 
17377 \family sans
17378 Slide
17379 \family default
17380 , for example.
17381  In that case, enter your descriptive comment and hit 
17382 \family sans
17383 Return
17384 \family default
17385  as you normally would.
17386 \end_layout
17387
17388 \begin_layout Standard
17389 If, on the other hand, you don't want to enter any descriptive text, you'll
17390  hit another \SpecialChar LyX
17391  quirk.
17392  \SpecialChar LyX
17393 , like nature, abhors a vacuum, and will not let you start a new paragraph
17394  environment until you put something in the old one.
17395  So, do this:
17396 \end_layout
17397
17398 \begin_layout Itemize
17399 Start entering the text that will 
17400 \emph on
17401 follow
17402 \emph default
17403  the new 
17404 \family sans
17405 Slide
17406 \family default
17407
17408 \family sans
17409 Overlay
17410 \family default
17411
17412 \family sans
17413 Note
17414 \family default
17415
17416 \family sans
17417 InvisibleText
17418 \family default
17419  or 
17420 \family sans
17421 VisibleText
17422 \family default
17423 .
17424  
17425 \end_layout
17426
17427 \begin_layout Itemize
17428 Now move to the beginning of that paragraph.
17429  
17430 \end_layout
17431
17432 \begin_layout Itemize
17433 Next, hit 
17434 \family sans
17435 Return
17436 \family default
17437 .
17438  
17439 \end_layout
17440
17441 \begin_layout Itemize
17442 Finally, change this new, empty paragraph to a 
17443 \family sans
17444 Slide
17445 \family default
17446
17447 \family sans
17448 Overlay
17449 \family default
17450
17451 \family sans
17452 Note
17453 \family default
17454
17455 \family sans
17456 InvisibleText
17457 \family default
17458  or 
17459 \family sans
17460 VisibleText
17461 \family default
17462 .
17463  
17464 \end_layout
17465
17466 \begin_layout Standard
17467 Some future version of \SpecialChar LyX
17468  will, hopefully, resolve this quirkiness\SpecialChar ldots
17469
17470 \end_layout
17471
17472 \begin_layout Subsection
17473 Making a Presentation with 
17474 \family sans
17475 Slide
17476 \family default
17477
17478 \family sans
17479 Overlay
17480 \family default
17481  and 
17482 \family sans
17483 Note
17484 \end_layout
17485
17486 \begin_layout Subsubsection
17487 Using the 
17488 \family sans
17489 Slide
17490 \family default
17491  Environment
17492 \end_layout
17493
17494 \begin_layout Standard
17495 If you're expecting this section to teach you how to actually make a presentatio
17496 n, you'll be sorely disappointed.
17497  Naturally, I'll describe all of the ways the 
17498 \family sans
17499 slides
17500 \family default
17501  class can assist you in preparing the materials for a presentation.
17502  Filling in the contents, however, is up to you.
17503  [Then again, that 
17504 \emph on
17505 is
17506 \emph default
17507  the \SpecialChar LyX
17508  philosophy.]
17509 \end_layout
17510
17511 \begin_layout Standard
17512 Choosing the 
17513 \family sans
17514 Slide
17515 \family default
17516  environment [in the manner described in section
17517 \begin_inset space ~
17518 \end_inset
17519
17520
17521 \begin_inset CommandInset ref
17522 LatexCommand ref
17523 reference "sec:slideQuirk"
17524
17525 \end_inset
17526
17527 ] tells \SpecialChar LyX
17528  to begin a new slide [duh].
17529  The label for this environment/
17530 \begin_inset Quotes erd
17531 \end_inset
17532
17533 pseudo-command
17534 \begin_inset Quotes erd
17535 \end_inset
17536
17537  is an 
17538 \begin_inset Quotes eld
17539 \end_inset
17540
17541 ASCII line,
17542 \begin_inset Quotes erd
17543 \end_inset
17544
17545  in cool blue, followed by the label, 
17546 \begin_inset Quotes eld
17547 \end_inset
17548
17549 NewSlide:
17550 \begin_inset Quotes erd
17551 \end_inset
17552
17553 .
17554  Any text or paragraph environments that follow this one go on the new slide.
17555  It's that simple.
17556 \end_layout
17557
17558 \begin_layout Standard
17559 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17560
17561  (this can be specified in the 
17562 \family sans
17563 Paragraph Layout
17564 \family default
17565  dialog).
17566  In fact, you'll want to, once you finish entering the contents of one slide.
17567  If you've entered more text than can physically fit on a slide, the extra
17568  overflows onto a new slide.
17569  I don't recommend doing this, however, since the overflow slide won't have
17570  any page number on it.
17571  Furthermore, it may interfere with any 
17572 \family sans
17573 Overlay
17574 \family default
17575  you've made to accompany the oversized 
17576 \family sans
17577 Slide
17578 \family default
17579 .
17580 \end_layout
17581
17582 \begin_layout Standard
17583 The 
17584 \family sans
17585 Overlay
17586 \family default
17587  and 
17588 \family sans
17589 Note
17590 \family default
17591  environments work the same way as the 
17592 \family sans
17593 Slide
17594 \family default
17595  environment.
17596  They both create an 
17597 \begin_inset Quotes eld
17598 \end_inset
17599
17600 ASCII line
17601 \begin_inset Quotes erd
17602 \end_inset
17603
17604  followed by a label [
17605 \begin_inset Quotes eld
17606 \end_inset
17607
17608 NewOverlay:
17609 \begin_inset Quotes erd
17610 \end_inset
17611
17612  and 
17613 \begin_inset Quotes eld
17614 \end_inset
17615
17616 NewNote:
17617 \begin_inset Quotes erd
17618 \end_inset
17619
17620 , respectively].
17621  The color is a stunning magenta instead of blue, and the 
17622 \begin_inset Quotes eld
17623 \end_inset
17624
17625 ASCII line
17626 \begin_inset Quotes erd
17627 \end_inset
17628
17629  will look different, in style and in length.
17630  The label fonts of all three also differ from one another.
17631 \end_layout
17632
17633 \begin_layout Standard
17634 As with a 
17635 \family sans
17636 Slide
17637 \family default
17638 , if the contents of a 
17639 \family sans
17640 Note
17641 \family default
17642  or 
17643 \family sans
17644 Overlay
17645 \family default
17646  exceed the physical size of a slide or sheet of paper, the extra will overflow
17647  onto a new sheet.
17648  Again, you should avoid this.
17649  It defeats the whole purpose of 
17650 \family sans
17651 Note
17652 \family default
17653 s and 
17654 \family sans
17655 Overlay
17656 \family default
17657 s.
17658 \end_layout
17659
17660 \begin_layout Subsubsection
17661 Using 
17662 \family sans
17663 Overlay
17664 \family default
17665  with 
17666 \family sans
17667 Slide
17668 \end_layout
17669
17670 \begin_layout Standard
17671 The idea behind an 
17672 \family sans
17673 Overlay
17674 \family default
17675  is a slide that sits atop another slide.
17676  Perhaps you wish to discuss a figure on the main 
17677 \family sans
17678 Slide
17679 \family default
17680  before displaying the text associated with it.
17681  One way to accomplish this is tape a flap of dark paper over the part of
17682  the 
17683 \family sans
17684 Slide
17685 \family default
17686  you want to display later.
17687  This method fails, however, if you wish to overlap one graph with another,
17688  for example.
17689  You would then have to fumble while speaking to align the two separate,
17690  overlapping 
17691 \family sans
17692 Slide
17693 \family default
17694 s to align the two graphs.
17695  The use of an 
17696 \family sans
17697 Overlay
17698 \family default
17699  environment in both cases makes life much easier.
17700 \end_layout
17701
17702 \begin_layout Standard
17703 Each 
17704 \family sans
17705 Overlay
17706 \family default
17707  receives the page number of its 
17708 \begin_inset Quotes eld
17709 \end_inset
17710
17711 parent
17712 \begin_inset Quotes erd
17713 \end_inset
17714
17715  
17716 \family sans
17717 Slide
17718 \family default
17719 , appended by 
17720 \begin_inset Quotes eld
17721 \end_inset
17722
17723
17724 \family typewriter
17725 -a
17726 \family default
17727
17728 \begin_inset Quotes erd
17729 \end_inset
17730
17731 .
17732 \begin_inset Foot
17733 status collapsed
17734
17735 \begin_layout Plain Layout
17736 Presumably, mutliple 
17737 \family sans
17738 Overlay
17739 \family default
17740 s would have 
17741 \begin_inset Quotes eld
17742 \end_inset
17743
17744
17745 \family typewriter
17746 -a
17747 \family default
17748
17749 \begin_inset Quotes erd
17750 \end_inset
17751
17752
17753 \begin_inset Quotes eld
17754 \end_inset
17755
17756
17757 \family typewriter
17758 -b
17759 \family default
17760
17761 \begin_inset Quotes erd
17762 \end_inset
17763
17764
17765 \begin_inset Quotes eld
17766 \end_inset
17767
17768
17769 \family typewriter
17770 -c
17771 \family default
17772
17773 \begin_inset Quotes erd
17774 \end_inset
17775
17776 , etc.
17777 \begin_inset space ~
17778 \end_inset
17779
17780 appended to the page number of the parent 
17781 \family sans
17782 Slide
17783 \family default
17784 .
17785  
17786 \end_layout
17787
17788 \end_inset
17789
17790  Clearly, you want the contents of both the 
17791 \family sans
17792 Slide
17793 \family default
17794  and the 
17795 \family sans
17796 Overlay
17797 \family default
17798  to each fit on a single physical slide! You should probably consider an
17799  
17800 \family sans
17801 Overlay
17802 \family default
17803  as 
17804 \begin_inset Quotes eld
17805 \end_inset
17806
17807 part of
17808 \begin_inset Quotes erd
17809 \end_inset
17810
17811  a 
17812 \family sans
17813 Slide
17814 \family default
17815 .
17816  Indeed, the \SpecialChar LyX
17817  
17818 \family sans
17819 slides
17820 \family default
17821  class provides a visual cue for this: the label at the start of an 
17822 \family sans
17823 Overlay
17824 \family default
17825  is shorter than that at the start of a 
17826 \family sans
17827 Slide
17828 \family default
17829 .
17830  Lastly, when you generate printable output, you'll find alignment markers
17831  in all four corners of both the 
17832 \family sans
17833 Overlay
17834 \family default
17835  page and its parent 
17836 \family sans
17837 Slide
17838 \family default
17839 .
17840  These will assist you in lining up the two physical slides.
17841 \end_layout
17842
17843 \begin_layout Standard
17844 The major problem in overlaying two slides is aligning the contents of the
17845  two transparencies.
17846  How much space should you leave for that graph on the second slide? Worse
17847  still, what if you want a graph and a sentence on second slide, but there
17848  is text on the main transparency that goes in between them? You could try
17849  and insert vertical space of the right size.
17850  The better way is to use 
17851 \family sans
17852 InvisibleText
17853 \family default
17854  and 
17855 \family sans
17856 VisibleText
17857 \family default
17858 .
17859 \end_layout
17860
17861 \begin_layout Standard
17862 As their names imply, 
17863 \family sans
17864 InvisibleText
17865 \family default
17866  and 
17867 \family sans
17868 VisibleText
17869 \family default
17870  are two command-like paragraph environments that make all subsequent text
17871  invisible and visible, respectively.
17872  Note from section
17873 \begin_inset space ~
17874 \end_inset
17875
17876
17877 \begin_inset CommandInset ref
17878 LatexCommand ref
17879 reference "sec:slideQuirk"
17880
17881 \end_inset
17882
17883  that you don't place anything 
17884 \emph on
17885 into
17886 \emph default
17887  these two environments, however.
17888  When you create an 
17889 \family sans
17890 InvisibleText
17891 \family default
17892 , it inserts a centered, sky-blue label into the page reading 
17893 \begin_inset Quotes eld
17894 \end_inset
17895
17896 <Invisible Text Follows>
17897 \begin_inset Quotes erd
17898 \end_inset
17899
17900 .
17901  For paragraphs following this label, the parts of the 
17902 \family sans
17903 Slide
17904 \family default
17905  [or 
17906 \family sans
17907 Overlay
17908 \family default
17909 ; it doesn't matter which] where they would be contain instead blank space.
17910  
17911 \end_layout
17912
17913 \begin_layout Standard
17914 For 
17915 \family sans
17916 VisibleText
17917 \family default
17918 , the corresponding centered label is 
17919 \begin_inset Quotes eld
17920 \end_inset
17921
17922 <Visible Text Follows>
17923 \begin_inset Quotes erd
17924 \end_inset
17925
17926  in blazing green.
17927  Paragraphs following this label behave normally.
17928  Note that the beginning of a new 
17929 \family sans
17930 Slide
17931 \family default
17932
17933 \family sans
17934 Overlay
17935 \family default
17936 , or 
17937 \family sans
17938 Note
17939 \family default
17940  automatically shuts off an 
17941 \family sans
17942 InvisibleText
17943 \family default
17944 .
17945  It's therefore not necessary to use 
17946 \family sans
17947 VisibleText
17948 \family default
17949  at the end of a 
17950 \family sans
17951 Slide
17952 \family default
17953 .
17954 \end_layout
17955
17956 \begin_layout Standard
17957 By now, it should be obvious how to create overlay transparencies using
17958  the proper combination of 
17959 \family sans
17960 InvisibleText
17961 \family default
17962  and 
17963 \family sans
17964 VisibleText
17965 \family default
17966  on a 
17967 \family sans
17968 Slide
17969 \family default
17970  and 
17971 \family sans
17972 Overlay
17973 \family default
17974 :
17975 \end_layout
17976
17977 \begin_layout Enumerate
17978 Create a 
17979 \family sans
17980 Slide
17981 \family default
17982 , including everything that will appear on it, whether on the main slide
17983  or on the 
17984 \family sans
17985 Overlay
17986 \family default
17987 .
17988 \end_layout
17989
17990 \begin_layout Enumerate
17991 Before each figure or paragraph that will appear only on the 
17992 \family sans
17993 Overlay
17994 \family default
17995 , insert an 
17996 \family sans
17997 InvisibleText
17998 \family default
17999  environment.
18000  If necessary, insert a 
18001 \family sans
18002 VisibleText
18003 \family default
18004  environment after the 
18005 \family sans
18006 Overlay
18007 \family default
18008 -only text.
18009 \end_layout
18010
18011 \begin_layout Enumerate
18012 Start an 
18013 \family sans
18014 Overlay
18015 \family default
18016  immediately following the 
18017 \family sans
18018 Slide
18019 \family default
18020 .
18021 \end_layout
18022
18023 \begin_layout Enumerate
18024 Copy the contents of this 
18025 \family sans
18026 Slide
18027 \family default
18028  into the 
18029 \family sans
18030 Overlay
18031 \family default
18032 .
18033 \end_layout
18034
18035 \begin_layout Enumerate
18036 Within the 
18037 \family sans
18038 Overlay
18039 \family default
18040 , change all of the 
18041 \family sans
18042 InvisibleText
18043 \family default
18044  lines to 
18045 \family sans
18046 VisibleText
18047 \family default
18048  and vice-versa.
18049 \end_layout
18050
18051 \begin_layout Standard
18052 That's it.
18053  You've just made an 
18054 \family sans
18055 Overlay
18056 \family default
18057 .
18058 \end_layout
18059
18060 \begin_layout Standard
18061 There's one problem with the way I've designed the \SpecialChar LyX
18062  
18063 \family sans
18064 slides
18065 \family default
18066  class: you can't make text in the middle of a paragraph invisible, nor
18067  make text in the middle of an invisible paragraph visible again.
18068  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18069  codes.
18070 \begin_inset Foot
18071 status collapsed
18072
18073 \begin_layout Plain Layout
18074 The commands of interest are: 
18075 \end_layout
18076
18077 \begin_layout Itemize
18078
18079 \family typewriter
18080 {
18081 \backslash
18082 invisible \SpecialChar ldots
18083  }
18084 \end_layout
18085
18086 \begin_layout Itemize
18087
18088 \family typewriter
18089 {
18090 \backslash
18091 visible \SpecialChar ldots
18092  }
18093 \end_layout
18094
18095 \begin_layout Plain Layout
18096 \SpecialChar ldots
18097 and need to be marked as \SpecialChar TeX
18098 .
18099  The text whose 
18100 \begin_inset Quotes eld
18101 \end_inset
18102
18103 visibility
18104 \begin_inset Quotes erd
18105 \end_inset
18106
18107  you wish to change goes in between the brackets [and after the 
18108 \family typewriter
18109
18110 \backslash
18111 invisible
18112 \family default
18113  or 
18114 \family typewriter
18115
18116 \backslash
18117 visible
18118 \family default
18119  command].
18120  If you don't know how to mark text as \SpecialChar TeX
18121 , see the appropriate section of
18122  the 
18123 \emph on
18124 User's Guide
18125 \emph default
18126 .
18127 \end_layout
18128
18129 \end_inset
18130
18131
18132 \end_layout
18133
18134 \begin_layout Subsubsection
18135 Using 
18136 \family sans
18137 Note
18138 \family default
18139  with 
18140 \family sans
18141 Slide
18142 \family default
18143
18144 \begin_inset CommandInset label
18145 LatexCommand label
18146 name "sec:slideNote"
18147
18148 \end_inset
18149
18150
18151 \end_layout
18152
18153 \begin_layout Standard
18154 Like an 
18155 \family sans
18156 Overlay
18157 \family default
18158 , a 
18159 \family sans
18160 Note
18161 \family default
18162  is associated with a 
18163 \begin_inset Quotes eld
18164 \end_inset
18165
18166 parent
18167 \begin_inset Quotes erd
18168 \end_inset
18169
18170  
18171 \family sans
18172 Slide
18173 \family default
18174 .
18175  Here, too, the \SpecialChar LyX
18176  
18177 \family sans
18178 slides
18179 \family default
18180  class provides visual cues.
18181  The label for a 
18182 \family sans
18183 Note
18184 \family default
18185  is shorter than that of a 
18186 \family sans
18187 Slide
18188 \family default
18189  [yet longer than that of an 
18190 \family sans
18191 Overlay
18192 \family default
18193 ] and, like the label of an 
18194 \family sans
18195 Overlay
18196 \family default
18197  is shockingly magenta.
18198  Additionally, the printed 
18199 \family sans
18200 Note
18201 \family default
18202  has the page number of its 
18203 \begin_inset Quotes eld
18204 \end_inset
18205
18206 parent
18207 \begin_inset Quotes erd
18208 \end_inset
18209
18210  
18211 \family sans
18212 Slide
18213 \family default
18214 , appended by 
18215 \begin_inset Quotes eld
18216 \end_inset
18217
18218
18219 \family typewriter
18220 -
18221 \family default
18222 1
18223 \begin_inset Quotes erd
18224 \end_inset
18225
18226
18227 \begin_inset Quotes eld
18228 \end_inset
18229
18230
18231 \family typewriter
18232 -
18233 \family default
18234 2
18235 \begin_inset Quotes erd
18236 \end_inset
18237
18238
18239 \begin_inset Quotes eld
18240 \end_inset
18241
18242
18243 \family typewriter
18244 -
18245 \family default
18246 3
18247 \begin_inset Quotes erd
18248 \end_inset
18249
18250 , etc.
18251  You can have multiple 
18252 \family sans
18253 Note
18254 \family default
18255 s associated with a single 
18256 \family sans
18257 Slide
18258 \family default
18259 , and, as with 
18260 \family sans
18261 Slide
18262 \family default
18263  and 
18264 \family sans
18265 Overlay
18266 \family default
18267 , you'll probably want to break up long 
18268 \family sans
18269 Note
18270 \family default
18271 s so that they fit on a single sheet of paper.
18272 \end_layout
18273
18274 \begin_layout Standard
18275 The purpose of a 
18276 \family sans
18277 Note
18278 \family default
18279  is obvious: it contains anything additional you might want to say about
18280  a 
18281 \family sans
18282 Slide
18283 \family default
18284 .
18285  It could also be used as a sheet of reminders for a particular 
18286 \family sans
18287 Slide
18288 \family default
18289 .
18290  In the case of the latter, you might want to make use of time markers.
18291  Currently, the \SpecialChar LyX
18292  
18293 \family sans
18294 slides
18295 \family default
18296  class has no 
18297 \begin_inset Quotes eld
18298 \end_inset
18299
18300 native
18301 \begin_inset Quotes erd
18302 \end_inset
18303
18304  support for time markers, a 
18305 \noun on
18306 Sli\SpecialChar TeX
18307
18308 \noun default
18309  feature.
18310  So, you'll have to resort to using the \SpecialChar LaTeX
18311  codes.
18312 \end_layout
18313
18314 \begin_layout Standard
18315 To use time markers, you'll need to specify the extra class option 
18316 \begin_inset Quotes eld
18317 \end_inset
18318
18319
18320 \family typewriter
18321 clock
18322 \family default
18323
18324 \begin_inset Quotes erd
18325 \end_inset
18326
18327  [see section
18328 \begin_inset space ~
18329 \end_inset
18330
18331
18332 \begin_inset CommandInset ref
18333 LatexCommand ref
18334 reference "sec:slidesetup"
18335
18336 \end_inset
18337
18338 ].
18339  This option turns on timing marks, which will appear in the lower-left-hand
18340  corner of every 
18341 \family sans
18342 Note
18343 \family default
18344  you generate.
18345  To set what appears in the time marker, you use the \SpecialChar LaTeX
18346  commands 
18347 \begin_inset Quotes eld
18348 \end_inset
18349
18350
18351 \family typewriter
18352
18353 \backslash
18354 settime{}
18355 \family default
18356
18357 \begin_inset Quotes erd
18358 \end_inset
18359
18360  and 
18361 \begin_inset Quotes eld
18362 \end_inset
18363
18364
18365 \family typewriter
18366
18367 \backslash
18368 addtime{}
18369 \family default
18370
18371 \begin_inset Quotes erd
18372 \end_inset
18373
18374 .
18375  The arguments of both commands are time measured in seconds.
18376  
18377 \begin_inset Quotes eld
18378 \end_inset
18379
18380
18381 \family typewriter
18382
18383 \backslash
18384 settime{}
18385 \family default
18386
18387 \begin_inset Quotes erd
18388 \end_inset
18389
18390  sets the time marker to a given time.
18391  
18392 \begin_inset Quotes eld
18393 \end_inset
18394
18395
18396 \family typewriter
18397
18398 \backslash
18399 addtime{}
18400 \family default
18401
18402 \begin_inset Quotes erd
18403 \end_inset
18404
18405  increments the time marker by the specified amount.
18406  Using time markers and 
18407 \family sans
18408 Note
18409 \family default
18410 s in this fashion, you can remind yourself how much time to spend on a particula
18411
18412 \family sans
18413 Slide
18414 \family default
18415 .
18416 \end_layout
18417
18418 \begin_layout Standard
18419 There's one last feature to describe.
18420  Clearly, you'd like to print out all of your 
18421 \family sans
18422 Slide
18423 \family default
18424 s and 
18425 \family sans
18426 Overlay
18427 \family default
18428 s on transparencies while printing all of your 
18429 \family sans
18430 Note
18431 \family default
18432 s on plain paper.
18433  However, a 
18434 \family sans
18435 Note
18436 \family default
18437  
18438 \emph on
18439 must
18440 \emph default
18441  follow the 
18442 \family sans
18443 Slide
18444 \family default
18445  with which it is associated.
18446  What's a person to do?
18447 \end_layout
18448
18449 \begin_layout Standard
18450 Luckily, there are two \SpecialChar LaTeX
18451  commands that allow you to select what to print
18452  out.
18453  Both must be placed into the preamble of your document.
18454  The command 
18455 \begin_inset Quotes eld
18456 \end_inset
18457
18458
18459 \family typewriter
18460
18461 \backslash
18462 onlyslides{
18463 \backslash
18464 slides}
18465 \family default
18466
18467 \begin_inset Quotes erd
18468 \end_inset
18469
18470  will cause the output to contain only the 
18471 \family sans
18472 Slide
18473 \family default
18474 s and 
18475 \family sans
18476 Overlay
18477 \family default
18478 s.
18479  Correspondingly, the command 
18480 \begin_inset Quotes eld
18481 \end_inset
18482
18483
18484 \family typewriter
18485
18486 \backslash
18487 onlynotes{
18488 \backslash
18489 notes}
18490 \family default
18491
18492 \begin_inset Quotes erd
18493 \end_inset
18494
18495  prevents the output of anything but 
18496 \family sans
18497 Note
18498 \family default
18499 s.
18500  I'd advise placing both commands in the preamble and initially comment
18501  both out.
18502  You can then preview your entire presentation as you write.
18503  When you're done writing, you can then uncomment one of the two to select
18504  what you want to print.
18505  I like to uncomment 
18506 \begin_inset Quotes eld
18507 \end_inset
18508
18509
18510 \family typewriter
18511
18512 \backslash
18513 onlyslides{
18514 \backslash
18515 slides}
18516 \family default
18517
18518 \begin_inset Quotes erd
18519 \end_inset
18520
18521  , print to a file with 
18522 \begin_inset Quotes eld
18523 \end_inset
18524
18525
18526 \family typewriter
18527 -slides
18528 \family default
18529
18530 \begin_inset Quotes erd
18531 \end_inset
18532
18533  in its name, comment it back out, then uncomment 
18534 \begin_inset Quotes eld
18535 \end_inset
18536
18537
18538 \family typewriter
18539
18540 \backslash
18541 onlynotes{
18542 \backslash
18543 notes}
18544 \family default
18545
18546 \begin_inset Quotes erd
18547 \end_inset
18548
18549  and print to a 
18550 \begin_inset Quotes eld
18551 \end_inset
18552
18553
18554 \family typewriter
18555 *-notes.ps
18556 \family default
18557
18558 \begin_inset Quotes erd
18559 \end_inset
18560
18561  file.
18562  I can then send either file to a printer, loading transparencies or plain
18563  paper as appropriate.
18564 \end_layout
18565
18566 \begin_layout Standard
18567 You can also provide other arguments to the 
18568 \begin_inset Quotes eld
18569 \end_inset
18570
18571
18572 \family typewriter
18573
18574 \backslash
18575 onlyslides{}
18576 \family default
18577
18578 \begin_inset Quotes erd
18579 \end_inset
18580
18581  and 
18582 \begin_inset Quotes eld
18583 \end_inset
18584
18585
18586 \family typewriter
18587
18588 \backslash
18589 onlynotes{}
18590 \family default
18591
18592 \begin_inset Quotes erd
18593 \end_inset
18594
18595  commands.
18596  See a good \SpecialChar LaTeX
18597  book for details.
18598 \end_layout
18599
18600 \begin_layout Subsection
18601 The 
18602 \family sans
18603 slides
18604 \family default
18605  Class Template File
18606 \end_layout
18607
18608 \begin_layout Standard
18609 I have also provided a template file, 
18610 \begin_inset Quotes eld
18611 \end_inset
18612
18613
18614 \family typewriter
18615 slides.lyx
18616 \family default
18617
18618 \begin_inset Quotes erd
18619 \end_inset
18620
18621 , with the 
18622 \family sans
18623 slides
18624 \family default
18625  class.
18626  To use it, begin your new presentation with 
18627 \family sans
18628 \bar under
18629 F
18630 \bar default
18631 ile\SpecialChar menuseparator
18632 New
18633 \begin_inset space ~
18634 \end_inset
18635
18636 from
18637 \begin_inset space ~
18638 \end_inset
18639
18640
18641 \bar under
18642 T
18643 \bar default
18644 emplate
18645 \family default
18646 .
18647  Your new \SpecialChar LyX
18648  presentation file will contain an example 
18649 \family sans
18650 Slide
18651 \family default
18652  – 
18653 \family sans
18654 Overlay
18655 \family default
18656  – 
18657 \family sans
18658 Note
18659 \family default
18660  triplet.
18661  The 
18662 \family sans
18663 Slide
18664 \family default
18665  and 
18666 \family sans
18667 Overlay
18668 \family default
18669  additionally contain an example of the use of 
18670 \family sans
18671 InvisibleText
18672 \family default
18673  and 
18674 \family sans
18675 VisibleText
18676 \family default
18677 .
18678  Lastly, the preamble will contain:
18679 \end_layout
18680
18681 \begin_layout LyX-Code
18682 % Uncomment to print out only slides and overlays
18683 \end_layout
18684
18685 \begin_layout LyX-Code
18686 %
18687 \end_layout
18688
18689 \begin_layout LyX-Code
18690 %
18691 \backslash
18692 onlyslides{
18693 \backslash
18694 slides}
18695 \begin_inset Newline newline
18696 \end_inset
18697
18698  
18699 \end_layout
18700
18701 \begin_layout LyX-Code
18702 % Uncomment to print out only notes
18703 \end_layout
18704
18705 \begin_layout LyX-Code
18706 %
18707 \end_layout
18708
18709 \begin_layout LyX-Code
18710 %
18711 \backslash
18712 onlynotes{
18713 \backslash
18714 notes}
18715 \end_layout
18716
18717 \begin_layout Standard
18718 One final thing: I created this class to support the \SpecialChar LaTeX2e
18719  
18720 \begin_inset Quotes eld
18721 \end_inset
18722
18723
18724 \noun on
18725 Sli\SpecialChar TeX
18726
18727 \noun default
18728  emulation
18729 \begin_inset Quotes erd
18730 \end_inset
18731
18732  class, one of the built-in \SpecialChar LaTeX2e
18733  classes.
18734  Neither I nor the rest of the \SpecialChar LyX
18735  Team endorse or oppose the use of this built-in
18736  slide class.
18737  It's here if you want it or need it.
18738  There exist other \SpecialChar LaTeX2e
18739  classes for creating presentations, such as the 
18740 \family sans
18741 Foils
18742 \family default
18743  class [see section
18744 \begin_inset space ~
18745 \end_inset
18746
18747
18748 \begin_inset CommandInset ref
18749 LatexCommand ref
18750 reference "sec:foiltex"
18751
18752 \end_inset
18753
18754 ] or the 
18755 \begin_inset Quotes eld
18756 \end_inset
18757
18758
18759 \family typewriter
18760 seminar
18761 \family default
18762
18763 \begin_inset Quotes erd
18764 \end_inset
18765
18766  package [present on some \SpecialChar TeX
18767  distributions].
18768  The latter is not yet supported under \SpecialChar LyX
18769 .
18770 \begin_inset Foot
18771 status collapsed
18772
18773 \begin_layout Plain Layout
18774 Perhaps you can take on the task\SpecialChar ldots
18775
18776 \end_layout
18777
18778 \end_inset
18779
18780  I know nothing about these other classes.
18781  Try them out to see what sort of alternative they provide.
18782 \end_layout
18783
18784 \begin_layout Chapter
18785 \SpecialChar LyX
18786  Features needing Extra Software
18787 \end_layout
18788
18789 \begin_layout Section
18790 Checking \SpecialChar TeX
18791
18792 \end_layout
18793
18794 \begin_layout Standard
18795 by 
18796 \noun on
18797 Asger Alstrup
18798 \end_layout
18799
18800 \begin_layout Subsection
18801 Introduction
18802 \end_layout
18803
18804 \begin_layout Standard
18805 If you have the 
18806 \family typewriter
18807 chktex
18808 \family default
18809  program installed
18810 \begin_inset Foot
18811 status collapsed
18812
18813 \begin_layout Plain Layout
18814
18815 \family typewriter
18816 chktex
18817 \family default
18818  is not yet available when you are using the \SpecialChar LaTeX
18819  distribution MiK\SpecialChar TeX
18820 .
18821 \end_layout
18822
18823 \end_inset
18824
18825 , you'll find in the 
18826 \family sans
18827 Tools
18828 \family default
18829  menu the entry: 
18830 \family sans
18831 Check
18832 \begin_inset space ~
18833 \end_inset
18834
18835
18836 \change_deleted -712698321 1437633476
18837 \SpecialChar TeX
18838
18839 \change_inserted -712698321 1437633477
18840 TeX
18841 \change_unchanged
18842
18843 \family default
18844 .
18845  You can get 
18846 \family typewriter
18847 chktex
18848 \family default
18849  from CTAN,
18850 \begin_inset Newline newline
18851 \end_inset
18852
18853
18854 \begin_inset CommandInset href
18855 LatexCommand href
18856 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18857
18858 \end_inset
18859
18860 .
18861 \end_layout
18862
18863 \begin_layout Standard
18864 The 
18865 \family sans
18866 Chk\SpecialChar TeX
18867
18868 \family default
18869  package is a program that was written by 
18870 \begin_inset Flex Noun
18871 status collapsed
18872
18873 \begin_layout Plain Layout
18874 Jens T.
18875 \begin_inset space ~
18876 \end_inset
18877
18878 Berger Thielemann
18879 \end_layout
18880
18881 \end_inset
18882
18883  in frustration because some constructs in \SpecialChar LaTeX
18884  are sometimes non-intuitive,
18885  and easy to forget.
18886  The program runs over your \SpecialChar LaTeX
18887  file, checks the integrity of the file, and
18888  flags some common errors.
18889  In other technical words, it is 
18890 \family typewriter
18891 lint
18892 \family default
18893  for \SpecialChar LaTeX
18894 .
18895 \end_layout
18896
18897 \begin_layout Standard
18898 Well, what is a syntax checker doing in \SpecialChar LyX
18899  which is supposed to produce correct
18900  \SpecialChar LaTeX
18901  anyways? The answer is simple: Just as 
18902 \family typewriter
18903 Lint
18904 \family default
18905  not only checks the 
18906 \emph on
18907 syntax
18908 \emph default
18909  of C programs, but also does 
18910 \emph on
18911 semantic
18912 \emph default
18913  checks for type-errors, 
18914 \family sans
18915 Chk\SpecialChar TeX
18916
18917 \family default
18918  catches some common 
18919 \emph on
18920 typographic
18921 \emph default
18922  errors, in addition to the syntactical ones.
18923  Specifically, 
18924 \family sans
18925 Chk\SpecialChar TeX
18926
18927 \family default
18928  is capable of detecting several common errors, such as
18929 \end_layout
18930
18931 \begin_layout Itemize
18932 Ellipsis detection:
18933 \begin_inset Newline newline
18934 \end_inset
18935
18936 Use \SpecialChar ldots
18937  instead of ...
18938 \end_layout
18939
18940 \begin_layout Itemize
18941 No space in front of/after parenthesis:
18942 \begin_inset Newline newline
18943 \end_inset
18944
18945 ( wrong spacing )
18946 \end_layout
18947
18948 \begin_layout Itemize
18949 Enforcement of normal space after common abbreviations:
18950 \begin_inset Newline newline
18951 \end_inset
18952
18953 e.
18954 \begin_inset space \thinspace{}
18955 \end_inset
18956
18957 g.
18958 \begin_inset space \space{}
18959 \end_inset
18960
18961 is too wide spacing.
18962 \end_layout
18963
18964 \begin_layout Itemize
18965 Enforcement of end-of-sentence space when the last sentence ends with a
18966  capital letter:
18967 \begin_inset Newline newline
18968 \end_inset
18969
18970 This is a TEST.
18971  And this is wrong spacing.
18972 \end_layout
18973
18974 \begin_layout Itemize
18975 Space in front of labels and similar commands:
18976 \begin_inset Newline newline
18977 \end_inset
18978
18979 The label should stick right up to the text to avoid falling to a wrong
18980  page.
18981  
18982 \begin_inset CommandInset label
18983 LatexCommand label
18984 name "sec:chktex"
18985
18986 \end_inset
18987
18988  
18989 \begin_inset Foot
18990 status collapsed
18991
18992 \begin_layout Plain Layout
18993 This footnote is in danger of falling off to a wrong page
18994 \end_layout
18995
18996 \end_inset
18997
18998  The label is separated too much.
18999 \end_layout
19000
19001 \begin_layout Itemize
19002 Space in front of references, instead of hard spaces:
19003 \begin_inset Newline newline
19004 \end_inset
19005
19006 If you have bad luck, the text will break right between the referenced text
19007  and reference number, and that's a pity.
19008  See section 
19009 \begin_inset CommandInset ref
19010 LatexCommand ref
19011 reference "sec:chktex"
19012
19013 \end_inset
19014
19015 .
19016 \end_layout
19017
19018 \begin_layout Itemize
19019 Use of 
19020 \begin_inset Quotes eld
19021 \end_inset
19022
19023 x
19024 \begin_inset Quotes erd
19025 \end_inset
19026
19027  instead of 
19028 \begin_inset Formula $\times$
19029 \end_inset
19030
19031  between numbers:
19032 \begin_inset Newline newline
19033 \end_inset
19034
19035 2x2 looks cheap compared to 
19036 \begin_inset Formula $2\times2$
19037 \end_inset
19038
19039 .
19040 \end_layout
19041
19042 \begin_layout Standard
19043 and more \SpecialChar ldots
19044  It is an invaluable tool when you are 
19045 \begin_inset Quotes eld
19046 \end_inset
19047
19048 finishing up
19049 \begin_inset Quotes erd
19050 \end_inset
19051
19052  your document before printing, and you should run it right after the obligatory
19053  spelling check, and before you go fine tuning the typesetting.
19054 \end_layout
19055
19056 \begin_layout Subsection
19057 How to use it
19058 \end_layout
19059
19060 \begin_layout Standard
19061 If you have the program installed, usage is as simple as choosing 
19062 \family sans
19063 Tools\SpecialChar menuseparator
19064 Check
19065 \begin_inset space ~
19066 \end_inset
19067
19068
19069 \change_deleted -712698321 1437633488
19070 \SpecialChar TeX
19071
19072 \change_inserted -712698321 1437633488
19073 TeX
19074 \change_unchanged
19075
19076 \family default
19077 .
19078  This will make \SpecialChar LyX
19079  generate a \SpecialChar LaTeX
19080  file of your document, start 
19081 \family sans
19082 Chk\SpecialChar TeX
19083
19084 \family default
19085  to check it, and then make \SpecialChar LyX
19086  insert 
19087 \begin_inset Quotes eld
19088 \end_inset
19089
19090 error boxes
19091 \begin_inset Quotes erd
19092 \end_inset
19093
19094  with the warnings from 
19095 \family sans
19096 Chk\SpecialChar TeX
19097
19098 \family default
19099 , if there were any.
19100  The warnings will be placed close to the point of the mistake, and you
19101  can quickly find them by using the 
19102 \family sans
19103 Navigate\SpecialChar menuseparator
19104 Error
19105 \family default
19106  menu item, or the shortcut key 
19107 \family sans
19108 C-g
19109 \family default
19110  from the default 
19111 \family typewriter
19112 cua
19113 \family default
19114  bind file.
19115  Open the error boxes by clicking on them with the mouse, or use the shortcut
19116  key 
19117 \family sans
19118 C-i
19119 \family default
19120  from 
19121 \family typewriter
19122 cua
19123 \family default
19124  bindings, or the corresponding 
19125 \family sans
19126 C-o
19127 \family default
19128  for the alternate 
19129 \family typewriter
19130 emacs
19131 \family default
19132  bind file.
19133  Read the warning and correct the mistake, if it is a mistake.
19134  If you have trouble understanding what the warning is about, you can safely
19135  ignore it.
19136  Remember that there is a hidden layer between the document on screen and
19137  the technical details in invoking 
19138 \family sans
19139 Chk\SpecialChar TeX
19140
19141 \family default
19142 , and this gap can make some warnings seem arcane or just plain silly.
19143 \end_layout
19144
19145 \begin_layout Standard
19146 This document is an excellent testing bed for the feature, and it should
19147  provide quite a few warnings for you to fiddle with.
19148  Since computers are only so smart, expect most of the warnings to be false
19149  alarms, though.
19150 \end_layout
19151
19152 \begin_layout Subsection
19153 How to fine tune it
19154 \end_layout
19155
19156 \begin_layout Standard
19157 Sometimes, you'll find that 
19158 \family sans
19159 Chk\SpecialChar TeX
19160
19161 \family default
19162  makes more noise than suits your mood.
19163  Then you can choose not to use it, wait until your mood changes, or try
19164  to customize 
19165 \family sans
19166 Chk\SpecialChar TeX
19167
19168 \family default
19169  to get better along with you.
19170 \end_layout
19171
19172 \begin_layout Standard
19173 Although 
19174 \family sans
19175 Chk\SpecialChar TeX
19176
19177 \family default
19178  
19179 \emph on
19180 is
19181 \emph default
19182  very configurable and extensible, you should not expect to solve all problems
19183  with 
19184 \family sans
19185 Chk\SpecialChar TeX
19186
19187 \family default
19188  in \SpecialChar LyX
19189  this way.
19190  Since \SpecialChar LyX
19191  has to generate a somewhat special \SpecialChar LaTeX
19192  file to be able to match the
19193  line numbers from the 
19194 \family sans
19195 Chk\SpecialChar TeX
19196
19197 \family default
19198  output
19199 \begin_inset Foot
19200 status collapsed
19201
19202 \begin_layout Plain Layout
19203 You can inspect the specific output from 
19204 \family sans
19205 chktex
19206 \family default
19207  by using 
19208 \family sans
19209 Document\SpecialChar menuseparator
19210 \SpecialChar LaTeX
19211
19212 \begin_inset space ~
19213 \end_inset
19214
19215 Log
19216 \family default
19217  right after a 
19218 \family sans
19219 chktex
19220 \family default
19221  run.
19222 \end_layout
19223
19224 \end_inset
19225
19226  to the internal document structure, some of the warnings will not appear
19227  correctly.
19228  There are two things you can do about this:
19229 \end_layout
19230
19231 \begin_layout Itemize
19232 Fine tune the 
19233 \family sans
19234 Chk\SpecialChar TeX
19235
19236 \family default
19237  invocation command line in 
19238 \begin_inset Flex MenuItem
19239 status collapsed
19240
19241 \begin_layout Plain Layout
19242 Tools\SpecialChar menuseparator
19243 Preferences\SpecialChar menuseparator
19244 Output\SpecialChar menuseparator
19245
19246 \change_deleted -712698321 1437633504
19247 \SpecialChar LaTeX
19248
19249 \change_inserted -712698321 1437633507
19250 LaTeX
19251 \change_unchanged
19252 \SpecialChar menuseparator
19253 Check
19254 \change_deleted -712698321 1437633509
19255 \SpecialChar TeX
19256
19257 \change_inserted -712698321 1437633511
19258 TeX
19259 \change_unchanged
19260  command
19261 \end_layout
19262
19263 \end_inset
19264
19265 , or the global 
19266 \family sans
19267 Chk\SpecialChar TeX
19268
19269 \family default
19270  installation configuration file (usually with the file 
19271 \family typewriter
19272 chktexrc
19273 \family default
19274 ).
19275  See below to learn what warnings can be enabled and disabled on the command
19276  line.
19277 \end_layout
19278
19279 \begin_layout Itemize
19280 Export your document as a raw \SpecialChar LaTeX
19281  file using 
19282 \family sans
19283 File\SpecialChar menuseparator
19284 Export\SpecialChar menuseparator
19285 \SpecialChar LaTeX
19286
19287 \family default
19288  and run 
19289 \family typewriter
19290 chktex
19291 \family default
19292  manually on that.
19293  Invoked in this way, it can be a hassle to find the corresponding place
19294  in the document inside \SpecialChar LyX
19295 , but with a little patience, you should be able
19296  to do it.
19297 \end_layout
19298
19299 \begin_layout Standard
19300 Here follows the warning messages that can be enabled and disabled in 
19301 \family sans
19302 Preferences
19303 \family default
19304 .
19305  Use 
19306 \family typewriter
19307 -n#
19308 \family default
19309  to disable a warning, and 
19310 \family typewriter
19311 -w#
19312 \family default
19313  to enable a warning.
19314  The emphasized entries are disabled by default, because the default is
19315  "
19316 \family typewriter
19317 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19318 \family default
19319 ".
19320 \end_layout
19321
19322 \begin_layout Standard
19323 Notice that you should only use the options that enable and disable warnings,
19324  because \SpecialChar LyX
19325  relies on some of the other command line parameters to be set
19326  in a specific way to have a chance to communicate with 
19327 \family typewriter
19328 chktex
19329 \family default
19330 .
19331 \end_layout
19332
19333 \begin_layout Enumerate
19334
19335 \size small
19336 \emph on
19337 Command terminated with space.
19338 \end_layout
19339
19340 \begin_layout Enumerate
19341
19342 \size small
19343 Non-breaking space (
19344 \begin_inset Quotes eld
19345 \end_inset
19346
19347
19348 \family typewriter
19349 ~
19350 \family default
19351
19352 \begin_inset Quotes erd
19353 \end_inset
19354
19355 ) should have been used.
19356 \end_layout
19357
19358 \begin_layout Enumerate
19359
19360 \size small
19361 \emph on
19362 You should enclose the previous parenthesis with 
19363 \begin_inset Quotes eld
19364 \end_inset
19365
19366
19367 \family typewriter
19368 {}
19369 \family default
19370
19371 \begin_inset Quotes erd
19372 \end_inset
19373
19374 .
19375 \end_layout
19376
19377 \begin_layout Enumerate
19378
19379 \size small
19380 Italic correction (
19381 \begin_inset Quotes eld
19382 \end_inset
19383
19384
19385 \family typewriter
19386
19387 \backslash
19388 /
19389 \family default
19390
19391 \begin_inset Quotes erd
19392 \end_inset
19393
19394 ) found in non-italic buffer.
19395 \end_layout
19396
19397 \begin_layout Enumerate
19398
19399 \size small
19400 Italic correction (
19401 \begin_inset Quotes eld
19402 \end_inset
19403
19404
19405 \family typewriter
19406
19407 \backslash
19408 /
19409 \family default
19410
19411 \begin_inset Quotes erd
19412 \end_inset
19413
19414 ) found more than once.
19415 \end_layout
19416
19417 \begin_layout Enumerate
19418
19419 \size small
19420 \emph on
19421 No italic correction (
19422 \begin_inset Quotes eld
19423 \end_inset
19424
19425
19426 \family typewriter
19427
19428 \backslash
19429 /
19430 \family default
19431
19432 \begin_inset Quotes erd
19433 \end_inset
19434
19435 ) found.
19436 \end_layout
19437
19438 \begin_layout Enumerate
19439
19440 \size small
19441 Accent command 
19442 \begin_inset Quotes eld
19443 \end_inset
19444
19445
19446 \family typewriter
19447 cmd
19448 \family default
19449
19450 \begin_inset Quotes erd
19451 \end_inset
19452
19453  needs use of 
19454 \begin_inset Quotes eld
19455 \end_inset
19456
19457
19458 \family typewriter
19459 cmd
19460 \family default
19461
19462 \begin_inset Quotes erd
19463 \end_inset
19464
19465 .
19466 \end_layout
19467
19468 \begin_layout Enumerate
19469
19470 \size small
19471 Wrong length of dash may have been used.
19472 \end_layout
19473
19474 \begin_layout Enumerate
19475
19476 \size small
19477 \emph on
19478 \begin_inset Quotes eld
19479 \end_inset
19480
19481
19482 \family typewriter
19483 %s
19484 \family default
19485
19486 \begin_inset Quotes erd
19487 \end_inset
19488
19489  expected, found 
19490 \begin_inset Quotes eld
19491 \end_inset
19492
19493
19494 \family typewriter
19495 %s
19496 \family default
19497
19498 \begin_inset Quotes erd
19499 \end_inset
19500
19501 .
19502 \end_layout
19503
19504 \begin_layout Enumerate
19505
19506 \size small
19507 Solo 
19508 \begin_inset Quotes eld
19509 \end_inset
19510
19511
19512 \family typewriter
19513 %s
19514 \family default
19515
19516 \begin_inset Quotes erd
19517 \end_inset
19518
19519  found.
19520 \end_layout
19521
19522 \begin_layout Enumerate
19523
19524 \size small
19525 You should use 
19526 \begin_inset Quotes eld
19527 \end_inset
19528
19529
19530 \family typewriter
19531 %s
19532 \family default
19533
19534 \begin_inset Quotes erd
19535 \end_inset
19536
19537  to achieve an ellipsis.
19538 \end_layout
19539
19540 \begin_layout Enumerate
19541
19542 \size small
19543 Inter-word spacing (
19544 \begin_inset Quotes eld
19545 \end_inset
19546
19547
19548 \family typewriter
19549
19550 \backslash
19551
19552 \family default
19553  
19554 \begin_inset Quotes eld
19555 \end_inset
19556
19557 ) should perhaps be used.
19558 \end_layout
19559
19560 \begin_layout Enumerate
19561
19562 \size small
19563 Inter-sentence spacing (
19564 \begin_inset Quotes eld
19565 \end_inset
19566
19567
19568 \family typewriter
19569
19570 \backslash
19571 @
19572 \family default
19573
19574 \begin_inset Quotes erd
19575 \end_inset
19576
19577 ) should perhaps be used.
19578 \end_layout
19579
19580 \begin_layout Enumerate
19581
19582 \size small
19583 Could not find argument for command.
19584 \end_layout
19585
19586 \begin_layout Enumerate
19587
19588 \size small
19589 No match found for 
19590 \begin_inset Quotes eld
19591 \end_inset
19592
19593
19594 \family typewriter
19595 %s
19596 \family default
19597
19598 \begin_inset Quotes erd
19599 \end_inset
19600
19601 .
19602 \end_layout
19603
19604 \begin_layout Enumerate
19605
19606 \size small
19607 Math mode still on at end of \SpecialChar LaTeX
19608  file.
19609 \end_layout
19610
19611 \begin_layout Enumerate
19612
19613 \size small
19614 Number of 
19615 \begin_inset Quotes eld
19616 \end_inset
19617
19618
19619 \family typewriter
19620 char
19621 \family default
19622
19623 \begin_inset Quotes erd
19624 \end_inset
19625
19626  doesn't match the number of 
19627 \begin_inset Quotes eld
19628 \end_inset
19629
19630
19631 \family typewriter
19632 char
19633 \family default
19634
19635 \begin_inset Quotes erd
19636 \end_inset
19637
19638 .
19639 \end_layout
19640
19641 \begin_layout Enumerate
19642
19643 \size small
19644 You should use either 
19645 \family typewriter
19646
19647 \begin_inset Quotes eld
19648 \end_inset
19649
19650
19651 \family default
19652  or 
19653 \family typewriter
19654
19655 \begin_inset Quotes erd
19656 \end_inset
19657
19658
19659 \family default
19660  as an alternative to 
19661 \begin_inset Quotes eld
19662 \end_inset
19663
19664
19665 \family typewriter
19666 "
19667 \family default
19668
19669 \begin_inset Quotes erd
19670 \end_inset
19671
19672 .
19673 \end_layout
19674
19675 \begin_layout Enumerate
19676
19677 \size small
19678 You should use "
19679 \family typewriter
19680 '
19681 \family default
19682 " (ASCII 39) instead of "
19683 \family typewriter
19684 ´
19685 \family default
19686 " (ASCII 180).
19687 \end_layout
19688
19689 \begin_layout Enumerate
19690
19691 \size small
19692 User-specified pattern found.
19693 \end_layout
19694
19695 \begin_layout Enumerate
19696
19697 \size small
19698 This command might not be intended.
19699 \end_layout
19700
19701 \begin_layout Enumerate
19702
19703 \size small
19704 \emph on
19705 Comment displayed.
19706 \end_layout
19707
19708 \begin_layout Enumerate
19709
19710 \size small
19711 Either 
19712 \family typewriter
19713 ''
19714 \backslash
19715 ,'
19716 \family default
19717  or 
19718 \family typewriter
19719 '
19720 \backslash
19721 ,''
19722 \family default
19723  will look better.
19724 \end_layout
19725
19726 \begin_layout Enumerate
19727
19728 \size small
19729 Delete this space to maintain correct page references.
19730 \end_layout
19731
19732 \begin_layout Enumerate
19733
19734 \size small
19735 \emph on
19736 You might wish to put this between a pair of 
19737 \begin_inset Quotes eld
19738 \end_inset
19739
19740
19741 \family typewriter
19742 {}
19743 \family default
19744
19745 \begin_inset Quotes erd
19746 \end_inset
19747
19748 .
19749 \end_layout
19750
19751 \begin_layout Enumerate
19752
19753 \size small
19754 You ought to remove spaces in front of punctuation.
19755 \end_layout
19756
19757 \begin_layout Enumerate
19758
19759 \size small
19760 Could not execute \SpecialChar LaTeX
19761  command.
19762 \end_layout
19763
19764 \begin_layout Enumerate
19765
19766 \size small
19767 Don't use 
19768 \family typewriter
19769
19770 \backslash
19771 /
19772 \family default
19773  in front of small punctuation.
19774 \end_layout
19775
19776 \begin_layout Enumerate
19777
19778 \family typewriter
19779 \size small
19780 $
19781 \backslash
19782 times$
19783 \family default
19784  may look prettier here.
19785 \end_layout
19786
19787 \begin_layout Enumerate
19788
19789 \size small
19790 \emph on
19791 Multiple spaces detected in output.
19792 \end_layout
19793
19794 \begin_layout Enumerate
19795
19796 \size small
19797 This text may be ignored.
19798 \end_layout
19799
19800 \begin_layout Enumerate
19801
19802 \size small
19803 Use 
19804 \family typewriter
19805
19806 \begin_inset Quotes eld
19807 \end_inset
19808
19809
19810 \family default
19811  to begin quotation, not 
19812 \family typewriter
19813 '
19814 \family default
19815 .
19816 \end_layout
19817
19818 \begin_layout Enumerate
19819
19820 \size small
19821 Use 
19822 \family typewriter
19823 '
19824 \family default
19825  to end quotation, not 
19826 \family typewriter
19827
19828 \begin_inset Quotes eld
19829 \end_inset
19830
19831
19832 \family default
19833 .
19834 \end_layout
19835
19836 \begin_layout Enumerate
19837
19838 \size small
19839 Don't mix quotes.
19840 \end_layout
19841
19842 \begin_layout Enumerate
19843
19844 \size small
19845 You should perhaps use 
19846 \begin_inset Quotes eld
19847 \end_inset
19848
19849
19850 \family typewriter
19851 cmd
19852 \family default
19853
19854 \begin_inset Quotes erd
19855 \end_inset
19856
19857  instead.
19858 \end_layout
19859
19860 \begin_layout Enumerate
19861
19862 \size small
19863 You should put a space in front of/after parenthesis.
19864 \end_layout
19865
19866 \begin_layout Enumerate
19867
19868 \size small
19869 You should avoid spaces in front of/after parenthesis.
19870 \end_layout
19871
19872 \begin_layout Enumerate
19873
19874 \size small
19875 \emph on
19876 You should not use punctuation in front of/after quotes.
19877 \end_layout
19878
19879 \begin_layout Enumerate
19880
19881 \size small
19882 Double space found.
19883 \end_layout
19884
19885 \begin_layout Enumerate
19886
19887 \size small
19888 You should put punctuation outside inner/inside display math mode.
19889 \end_layout
19890
19891 \begin_layout Enumerate
19892
19893 \size small
19894 You ought to not use primitive \SpecialChar TeX
19895  in \SpecialChar LaTeX
19896  code.
19897 \end_layout
19898
19899 \begin_layout Enumerate
19900
19901 \size small
19902 You should remove spaces in front of 
19903 \begin_inset Quotes eld
19904 \end_inset
19905
19906
19907 \family typewriter
19908 %s
19909 \family default
19910
19911 \begin_inset Quotes erd
19912 \end_inset
19913
19914
19915 \end_layout
19916
19917 \begin_layout Enumerate
19918
19919 \size small
19920 \begin_inset Quotes eld
19921 \end_inset
19922
19923
19924 \family typewriter
19925 %s
19926 \family default
19927
19928 \begin_inset Quotes erd
19929 \end_inset
19930
19931  is normally not followed by 
19932 \begin_inset Quotes eld
19933 \end_inset
19934
19935
19936 \family typewriter
19937 %c
19938 \family default
19939
19940 \begin_inset Quotes erd
19941 \end_inset
19942
19943 .
19944 \end_layout
19945
19946 \begin_layout Standard
19947 In later versions of \SpecialChar LyX
19948 , we hope to provide a more complete interface to this
19949  tool (and it's smaller cousin 
19950 \family typewriter
19951 lacheck
19952 \family default
19953 ) to exploit the full power of it.
19954  But it's not exactly useless as it is now: go try it on one of your existing
19955  documents of a certain length and be surprised.
19956 \end_layout
19957
19958 \begin_layout Section
19959 Version Control in \SpecialChar LyX
19960
19961 \end_layout
19962
19963 \begin_layout Standard
19964 by
19965 \noun on
19966  Lars Gullik Bjønnes 
19967 \noun default
19968 and 
19969 \noun on
19970 Pavel Sanda
19971 \end_layout
19972
19973 \begin_layout Subsection
19974 Introduction
19975 \end_layout
19976
19977 \begin_layout Standard
19978 \SpecialChar LyX
19979  supports some of the most basic RCS/CVS/SVN/GIT commands.
19980  If you need something a bit more sophisticated you will have to do that
19981  manually in a terminal.
19982 \end_layout
19983
19984 \begin_layout Standard
19985 Also note that CVS support is not as good as subversion support so we advise
19986  using SVN instead.
19987  A good place to start learning Subversion is SVN Book
19988 \begin_inset Foot
19989 status open
19990
19991 \begin_layout Plain Layout
19992 \begin_inset CommandInset href
19993 LatexCommand href
19994 target "http://svnbook.red-bean.com/"
19995
19996 \end_inset
19997
19998
19999 \end_layout
20000
20001 \end_inset
20002
20003 .
20004  In the case of RCS you should read 
20005 \begin_inset Quotes eld
20006 \end_inset
20007
20008 rcsintro
20009 \begin_inset Quotes erd
20010 \end_inset
20011
20012  (a man file, read it with 
20013 \family typewriter
20014 man rcsintro
20015 \family default
20016 ).
20017  This file describes all the basic features of RCS.
20018  You should especially notice the comment about a RCS directory, and the
20019  notion of a master RCS file (the file ending in 
20020 \family typewriter
20021 ,v
20022 \family default
20023 ).
20024 \end_layout
20025
20026 \begin_layout Standard
20027 Before you begin to use the version control features in \SpecialChar LyX
20028 , you should be
20029  familiar with RCS/CVS/SVN/GIT usage.
20030  The implementation in \SpecialChar LyX
20031  assumes a recent version of the GNU RCS or CVS/SVN
20032  package — no guarantees are made for older versions.
20033  Most of the log messages are not currently displayed after operations —
20034  you can check them in the Messages pane if unsure.
20035  Regular users of version control will appreciate VC toolbar, which can
20036  be enabled via 
20037 \family sans
20038 View\SpecialChar menuseparator
20039 Toolbars\SpecialChar menuseparator
20040 Version
20041 \begin_inset space ~
20042 \end_inset
20043
20044 Control
20045 \family default
20046 .
20047 \end_layout
20048
20049 \begin_layout Standard
20050 For introducing your own external commands consult vc-command in the manual
20051  of \SpecialChar LyX
20052  functions.
20053 \change_inserted -195340706 1447278952
20054
20055 \end_layout
20056
20057 \begin_layout Standard
20058
20059 \change_inserted -195340706 1447279250
20060 It is strongly recommended to store documents in uncompressed format if
20061  using version control (uncheck 
20062 \family sans
20063 Document\SpecialChar menuseparator
20064 Compressed
20065 \family default
20066  if it is checked): Uncompressed LyX documents are text files and therefore
20067  for merging two different versions by version control systems.
20068  Compressed LyX documents are binary files, which cannot be merged by version
20069  control systems.
20070 \change_unchanged
20071
20072 \end_layout
20073
20074 \begin_layout Subsection
20075 RCS commands in \SpecialChar LyX
20076
20077 \end_layout
20078
20079 \begin_layout Standard
20080 The following sections describe the RCS commands supported by \SpecialChar LyX
20081 .
20082  You can find them in the 
20083 \family sans
20084 File\SpecialChar menuseparator
20085 Version
20086 \begin_inset space ~
20087 \end_inset
20088
20089 Control
20090 \family default
20091  submenu.
20092  \SpecialChar LyX
20093  was tested against RCS 5.7/5.8
20094 \begin_inset Foot
20095 status open
20096
20097 \begin_layout Plain Layout
20098 Note that old DOS / MS Windows builds (5.7) need to setup environment variables
20099  in order to work properly with \SpecialChar LyX
20100 .
20101  In particular time zone (TZ) should be set and more importantly RCSINIT
20102  in order to change default archive location ("SET RCSINIT=-x,v/") — \SpecialChar LyX
20103  expects
20104  archive to be found in file.lyx,v within the original document directory.
20105  See also README shipped with Windows RCS binaries.
20106 \end_layout
20107
20108 \end_inset
20109
20110 .
20111 \end_layout
20112
20113 \begin_layout Subsubsection
20114
20115 \family sans
20116 Register
20117 \end_layout
20118
20119 \begin_layout Standard
20120 If your document is not under revision control, this is the only item shown
20121  in the menu.
20122  And if it is under revision control, the 
20123 \family sans
20124 Register
20125 \family default
20126  item is not visible.
20127  
20128 \end_layout
20129
20130 \begin_layout Standard
20131 This command registers your document with RCS (unless you are under the
20132  directory managed by CVS)\SpecialChar endofsentence
20133  You are asked interactively to supply an initial
20134  description of the document.
20135  The document is now set in Read-Only mode and you have to 
20136 \family sans
20137 Check
20138 \begin_inset space ~
20139 \end_inset
20140
20141 Out
20142 \begin_inset space ~
20143 \end_inset
20144
20145 For
20146 \begin_inset space ~
20147 \end_inset
20148
20149 Edit
20150 \family default
20151 , before making any changes to it.
20152  A document under revision control has a 
20153 \begin_inset Quotes eld
20154 \end_inset
20155
20156 [RCS:<version> <locker>]
20157 \begin_inset Quotes erd
20158 \end_inset
20159
20160  item tagged to the filename in the minibuffer.
20161 \end_layout
20162
20163 \begin_layout Standard
20164 RCS command that is run: 
20165 \family typewriter
20166 ci -q -u -i -t-"<initial description>" <file-name>
20167 \end_layout
20168
20169 \begin_layout Standard
20170 Read 
20171 \family typewriter
20172 man ci
20173 \family default
20174  to understand the switches.
20175  
20176 \end_layout
20177
20178 \begin_layout Subsubsection
20179
20180 \family sans
20181 Check In Changes
20182 \end_layout
20183
20184 \begin_layout Standard
20185 When you are finished editing a file, you check in your changes.
20186  When you do this, you are asked for a description of the changes.
20187  This is stored in the history log.
20188  The version number is bumped, your changes are applied to the master RCS
20189  file, the document is unlocked and set to Read-Only mode.
20190 \end_layout
20191
20192 \begin_layout Standard
20193 RCS command: 
20194 \family typewriter
20195 ci -q -u -m"<description>" <file-name>
20196 \end_layout
20197
20198 \begin_layout Subsubsection
20199
20200 \family sans
20201 Check Out For Edit
20202 \end_layout
20203
20204 \begin_layout Standard
20205 By doing this you lock the document so that only you can edit it.
20206  This will also make the document Read-Write only for you.
20207  You will usually continue editing for a while and when you are finished
20208  you check in your changes.
20209  The status line is changed to reflect that you have locked the file.
20210 \end_layout
20211
20212 \begin_layout Standard
20213 RCS command: 
20214 \family typewriter
20215 co -q -l <file-name>
20216 \end_layout
20217
20218 \begin_layout Subsubsection
20219
20220 \family sans
20221 Revert To Repository Version
20222 \end_layout
20223
20224 \begin_layout Standard
20225 This will discard all changes made to the document since the last check
20226  in.
20227  You get a warning before changes are discarded.
20228 \end_layout
20229
20230 \begin_layout Standard
20231 RCS command: 
20232 \family typewriter
20233 co -f -u<version> <file-name>
20234 \end_layout
20235
20236 \begin_layout Subsubsection
20237
20238 \family sans
20239 Copy
20240 \end_layout
20241
20242 \begin_layout Standard
20243 This will create a copy of the current document.
20244  Since RCS does not support copy operations natively, the version history
20245  is not preserved, and the copy is added as a new file.
20246  It requires a clean document without any changes since the last checkin.
20247  You are asked for a file name and a description of the copy operation.
20248  After that the copy is created, both locally and in the repository.
20249  If the parent directories of the copied and original document differ, all
20250  relative paths of included files of the copy are adjusted (like in 
20251 \family sans
20252 File\SpecialChar menuseparator
20253 Save As
20254 \family default
20255 \SpecialChar ldots
20256 ).
20257  Finally, the copy is loaded instead of the original document.
20258 \end_layout
20259
20260 \begin_layout Labeling
20261 \labelwidthstring 00.00.0000
20262 RCS
20263 \begin_inset space ~
20264 \end_inset
20265
20266 commands: 
20267 \begin_inset space ~
20268 \end_inset
20269
20270
20271 \begin_inset Newline newline
20272 \end_inset
20273
20274 Copy 
20275 \begin_inset Flex Code
20276 status collapsed
20277
20278 \begin_layout Plain Layout
20279
20280 \family typewriter
20281 \begin_inset Quotes eld
20282 \end_inset
20283
20284 <file-name>
20285 \begin_inset Quotes erd
20286 \end_inset
20287
20288
20289 \end_layout
20290
20291 \end_inset
20292
20293  to 
20294 \begin_inset Flex Code
20295 status collapsed
20296
20297 \begin_layout Plain Layout
20298
20299 \family typewriter
20300 \begin_inset Quotes eld
20301 \end_inset
20302
20303 <new-file-name>
20304 \begin_inset Quotes erd
20305 \end_inset
20306
20307
20308 \end_layout
20309
20310 \end_inset
20311
20312
20313 \begin_inset Newline newline
20314 \end_inset
20315
20316
20317 \begin_inset Flex Code
20318 status collapsed
20319
20320 \begin_layout Plain Layout
20321 ci -q -u 
20322 \family typewriter
20323 -i 
20324 \begin_inset Quotes eld
20325 \end_inset
20326
20327 <new-file-name>
20328 \begin_inset Quotes erd
20329 \end_inset
20330
20331
20332 \end_layout
20333
20334 \end_inset
20335
20336
20337 \end_layout
20338
20339 \begin_layout Subsubsection
20340
20341 \family sans
20342 Undo Last Checkin
20343 \end_layout
20344
20345 \begin_layout Standard
20346 This makes as if the last check in never happened.
20347  No changes are made to the document loaded into \SpecialChar LyX
20348 , but the last version
20349  is removed from the master RCS file.
20350 \end_layout
20351
20352 \begin_layout Standard
20353 RCS command: 
20354 \family typewriter
20355 rcs -o<version> <file-name>
20356 \end_layout
20357
20358 \begin_layout Subsubsection
20359
20360 \family sans
20361 Show History
20362 \end_layout
20363
20364 \begin_layout Standard
20365 This shows the complete history of the RCS document.
20366  The output of 
20367 \family typewriter
20368 rlog <file-name>
20369 \family default
20370  is shown in a browser.
20371  See 
20372 \family typewriter
20373 man rlog
20374 \family default
20375  for more info.
20376 \end_layout
20377
20378 \begin_layout Subsubsection
20379 Revision info
20380 \end_layout
20381
20382 \begin_layout Standard
20383 \SpecialChar LyX
20384  supports RCS version number, author name, date and time of last commit.
20385  All those are extracted from 
20386 \family typewriter
20387 rlog -r <file-name>
20388 \family default
20389 .
20390  See 
20391 \begin_inset CommandInset ref
20392 LatexCommand ref
20393 reference "subsec:VCS-Revision-Information"
20394
20395 \end_inset
20396
20397  for details.
20398 \end_layout
20399
20400 \begin_layout Subsection
20401 CVS commands in \SpecialChar LyX
20402
20403 \end_layout
20404
20405 \begin_layout Standard
20406 A subset of CVS operations is supported by \SpecialChar LyX
20407 .
20408  You can find the commands in the 
20409 \family sans
20410 File\SpecialChar menuseparator
20411 Version
20412 \begin_inset space ~
20413 \end_inset
20414
20415 Control
20416 \family default
20417  submenu.
20418  The version control system SVN is more powerful, so please use it instead
20419  of CVS if possible.
20420 \end_layout
20421
20422 \begin_layout Subsubsection
20423
20424 \family sans
20425 General CVS usage
20426 \end_layout
20427
20428 \begin_layout Standard
20429 If you start from scratch with CVS you have to create your repository and
20430  checkout the working copy with external tools.
20431  If you're using a client-server setup you may need to login before doing
20432  the first repository checkout.
20433 \end_layout
20434
20435 \begin_layout Standard
20436 If your documents are under revision control and others are using the same
20437  repository problems arise when different changes to the same document at
20438  the same location happen.
20439  Standard CVS repositories don't operate with a file locking mechanism.
20440  This may be surprising, but conflicts only occur if people disagree on
20441  the proper content of the same part of a document.
20442  So, if co-workers are used to communicate regularly, these conflicts occur
20443  rarely.
20444  If they don't communicate they have a fundamental problem anyway.
20445  Nevertheless some people like to work with so called 
20446 \begin_inset Quotes eld
20447 \end_inset
20448
20449 reserved checkouts
20450 \begin_inset Quotes erd
20451 \end_inset
20452
20453 .
20454  If they do so the working copy of all files is readonly when checked out
20455  first and the user starts editing after using a special command to make
20456  the working copy writable.
20457  When the changes are checked in the working copy returns to readonly state.
20458  With \SpecialChar LyX
20459  one has to edit the 
20460 \begin_inset Flex Code
20461 status collapsed
20462
20463 \begin_layout Plain Layout
20464 .cvsrc
20465 \end_layout
20466
20467 \end_inset
20468
20469  file and add the line 
20470 \begin_inset Flex Code
20471 status collapsed
20472
20473 \begin_layout Plain Layout
20474 cvs -r
20475 \end_layout
20476
20477 \end_inset
20478
20479  to work with reserved checkouts.
20480  The benefit is the possibility to see who is using a writable copy of some
20481  document.
20482  It's not guaranteed only one user makes a copy writable.
20483 \end_layout
20484
20485 \begin_layout Standard
20486 \SpecialChar LyX
20487  tries to guess if you're using reserved or non-reserved checkouts.
20488  If your working copy is readonly or it is writable and an additional copy
20489  of your document exists in the CVS/Base sub-directory a reserved otherwise
20490  a non-reserved checkout is assumed.
20491  When a reserved checkout is detected you have to use 
20492 \begin_inset Flex MenuItem
20493 status collapsed
20494
20495 \begin_layout Plain Layout
20496 Check Out
20497 \end_layout
20498
20499 \end_inset
20500
20501  to make your working copy writable if it's readonly.
20502  After doing so the 
20503 \begin_inset Flex MenuItem
20504 status collapsed
20505
20506 \begin_layout Plain Layout
20507 Check In
20508 \end_layout
20509
20510 \end_inset
20511
20512  operation is possible and that makes your working copy readonly again after
20513  transferring your changes to the repository.
20514 \end_layout
20515
20516 \begin_layout Standard
20517 More information about CVS can be found here 
20518 \begin_inset Flex URL
20519 status collapsed
20520
20521 \begin_layout Plain Layout
20522
20523 http://www.nongnu.org/cvs
20524 \end_layout
20525
20526 \end_inset
20527
20528  and here 
20529 \begin_inset Flex URL
20530 status collapsed
20531
20532 \begin_layout Plain Layout
20533
20534 http://ximbiot.com/cvs
20535 \end_layout
20536
20537 \end_inset
20538
20539 .
20540 \end_layout
20541
20542 \begin_layout Standard
20543 Read 
20544 \family typewriter
20545 man cvs
20546 \family default
20547  to understand the sub-commands and the switches mentioned below.
20548 \end_layout
20549
20550 \begin_layout Subsubsection
20551
20552 \family sans
20553 Register
20554 \end_layout
20555
20556 \begin_layout Standard
20557 If your document is not under revision control, this is the only item shown
20558  in the menu.
20559  And if it is under revision control, the 
20560 \family sans
20561 \bar under
20562 R
20563 \bar default
20564 egister
20565 \family default
20566  item is not visible.
20567  
20568 \end_layout
20569
20570 \begin_layout Standard
20571 This command registers in CVS your document 
20572 \begin_inset Flex Strong
20573 status collapsed
20574
20575 \begin_layout Plain Layout
20576
20577 \emph on
20578 only
20579 \end_layout
20580
20581 \end_inset
20582
20583  in the case you have already the documents directory under CVS control
20584  (in particular 
20585 \family typewriter
20586 CVS/Entries
20587 \family default
20588  file exists).
20589  This means you have to create or checkout the archive by yourself using
20590  external tools.
20591  (In case you forget that step \SpecialChar LyX
20592  registers the document with RCS.)
20593 \end_layout
20594
20595 \begin_layout Standard
20596 Then you are asked interactively to supply an initial description of the
20597  document.
20598  Don't forget that registered file is not yet checked in.
20599 \end_layout
20600
20601 \begin_layout Standard
20602 CVS command that is run: 
20603 \family typewriter
20604 cvs -q add -m"<entered message>" "<file-name>"
20605 \end_layout
20606
20607 \begin_layout Standard
20608 The term 
20609 \family typewriter
20610 "<file-name>"
20611 \family default
20612  above and for all other CVS commands is an abbreviation for 
20613 \begin_inset Quotes eld
20614 \end_inset
20615
20616 change the current working directory to file location and use the file name
20617  without path component as argument
20618 \begin_inset Quotes erd
20619 \end_inset
20620
20621 .
20622 \end_layout
20623
20624 \begin_layout Subsubsection
20625
20626 \family sans
20627 Check In Changes
20628 \end_layout
20629
20630 \begin_layout Standard
20631 When you are finished editing a file, you commit your changes.
20632  When you do this and you had changed the document, you are asked for a
20633  description of the changes.
20634  After that changes are written to the repository.
20635  In case you didn't change the document and a reserved checkout is detected
20636  the reservation made on 
20637 \begin_inset Flex MenuItem
20638 status collapsed
20639
20640 \begin_layout Plain Layout
20641 Check Out
20642 \end_layout
20643
20644 \end_inset
20645
20646  is undone.
20647 \end_layout
20648
20649 \begin_layout Labeling
20650 \labelwidthstring 00.00.0000
20651 CVS
20652 \begin_inset space ~
20653 \end_inset
20654
20655 command: 
20656 \begin_inset space ~
20657 \end_inset
20658
20659
20660 \begin_inset Newline newline
20661 \end_inset
20662
20663
20664 \begin_inset Flex Code
20665 status collapsed
20666
20667 \begin_layout Plain Layout
20668 cvs 
20669 \family typewriter
20670 -q commit -m"<description>" "<file-name>"
20671 \end_layout
20672
20673 \end_inset
20674
20675  or
20676 \begin_inset Newline newline
20677 \end_inset
20678
20679
20680 \begin_inset Flex Code
20681 status collapsed
20682
20683 \begin_layout Plain Layout
20684 cvs -q unedit 
20685 \family typewriter
20686 "<file-name>"
20687 \end_layout
20688
20689 \end_inset
20690
20691
20692 \end_layout
20693
20694 \begin_layout Subsubsection
20695
20696 \family sans
20697 Check Out Changes
20698 \end_layout
20699
20700 \begin_layout Standard
20701 When you are sharing a repository with others, you may have to incorporate
20702  their changes into your working copy.
20703 \end_layout
20704
20705 \begin_layout Standard
20706 CVS command: 
20707 \family typewriter
20708 cvs -q update "<file-name>"
20709 \end_layout
20710
20711 \begin_layout Standard
20712 If a readonly checkout is detected the working copy is made writable and
20713  reserved.
20714 \end_layout
20715
20716 \begin_layout Standard
20717 CVS command: 
20718 \family typewriter
20719 cvs -q edit "<file-name>"
20720 \end_layout
20721
20722 \begin_layout Subsubsection
20723
20724 \family sans
20725 Revert To Repository Version
20726 \end_layout
20727
20728 \begin_layout Standard
20729 This will discard all changes made to the document since the last check
20730  in.
20731  You get a warning before changes are discarded.
20732  Firstly the file is deleted, secondly CVS update command is run.
20733 \end_layout
20734
20735 \begin_layout Standard
20736 CVS command: 
20737 \family typewriter
20738 cvs -q update "<file-name>"
20739 \end_layout
20740
20741 \begin_layout Standard
20742 If a reserved checkout is detected and the working copy has no changes only
20743  the reservation is undone.
20744 \end_layout
20745
20746 \begin_layout Standard
20747 CVS command: 
20748 \family typewriter
20749 cvs -q unedit "<file-name>"
20750 \end_layout
20751
20752 \begin_layout Subsubsection
20753
20754 \family sans
20755 Copy
20756 \end_layout
20757
20758 \begin_layout Standard
20759 This will create a copy of the current document.
20760  Since CVS does not support copy operations natively, the version history
20761  is not preserved, and the copy is added as a new file.
20762  It requires a clean document without any changes since the last checkin.
20763  You are asked for a file name and a description of the copy operation.
20764  After that the copy is created, both locally and in the repository.
20765  If the parent directories of the copied and original document differ, all
20766  relative paths of included files of the copy are adjusted (like in 
20767 \family sans
20768 File\SpecialChar menuseparator
20769 Save As
20770 \family default
20771 \SpecialChar ldots
20772 ).
20773  Finally, the copy is loaded instead of the original document.
20774 \end_layout
20775
20776 \begin_layout Labeling
20777 \labelwidthstring 00.00.0000
20778 CVS
20779 \begin_inset space ~
20780 \end_inset
20781
20782 commands: 
20783 \begin_inset space ~
20784 \end_inset
20785
20786
20787 \begin_inset Newline newline
20788 \end_inset
20789
20790 Copy 
20791 \begin_inset Flex Code
20792 status collapsed
20793
20794 \begin_layout Plain Layout
20795
20796 \family typewriter
20797 \begin_inset Quotes eld
20798 \end_inset
20799
20800 <file-name>
20801 \begin_inset Quotes erd
20802 \end_inset
20803
20804
20805 \end_layout
20806
20807 \end_inset
20808
20809  to 
20810 \begin_inset Flex Code
20811 status collapsed
20812
20813 \begin_layout Plain Layout
20814
20815 \family typewriter
20816 \begin_inset Quotes eld
20817 \end_inset
20818
20819 <new-file-name>
20820 \begin_inset Quotes erd
20821 \end_inset
20822
20823
20824 \end_layout
20825
20826 \end_inset
20827
20828
20829 \begin_inset Newline newline
20830 \end_inset
20831
20832
20833 \begin_inset Flex Code
20834 status collapsed
20835
20836 \begin_layout Plain Layout
20837 cvs -q add 
20838 \family typewriter
20839
20840 \begin_inset Quotes eld
20841 \end_inset
20842
20843 <new-file-name>
20844 \begin_inset Quotes erd
20845 \end_inset
20846
20847
20848 \end_layout
20849
20850 \end_inset
20851
20852
20853 \end_layout
20854
20855 \begin_layout Subsubsection
20856
20857 \family sans
20858 Rename
20859 \end_layout
20860
20861 \begin_layout Standard
20862 This will rename the current document.
20863  Since CVS does not support rename operations natively, the version history
20864  is not preserved, the renamed document is added as a new file, and the
20865  original document is deleted.
20866  It requires a clean document without any changes since the last checkin.
20867  You are asked for a file name and a description of the rename operation.
20868  After that the document is renamed, both locally and in the repository.
20869  If the parent directories of the new and old file names differ, all relative
20870  paths of included files are adjusted (like in 
20871 \family sans
20872 File\SpecialChar menuseparator
20873 Save As
20874 \family default
20875 \SpecialChar ldots
20876 ).
20877  Finally, the document is reloaded using the new name.
20878 \end_layout
20879
20880 \begin_layout Labeling
20881 \labelwidthstring 00.00.0000
20882 CVS
20883 \begin_inset space ~
20884 \end_inset
20885
20886 commands: 
20887 \begin_inset space ~
20888 \end_inset
20889
20890
20891 \begin_inset Newline newline
20892 \end_inset
20893
20894 Rename 
20895 \begin_inset Flex Code
20896 status collapsed
20897
20898 \begin_layout Plain Layout
20899
20900 \family typewriter
20901 \begin_inset Quotes eld
20902 \end_inset
20903
20904 <file-name>
20905 \begin_inset Quotes erd
20906 \end_inset
20907
20908
20909 \end_layout
20910
20911 \end_inset
20912
20913  to 
20914 \begin_inset Flex Code
20915 status collapsed
20916
20917 \begin_layout Plain Layout
20918
20919 \family typewriter
20920 \begin_inset Quotes eld
20921 \end_inset
20922
20923 <new-file-name>
20924 \begin_inset Quotes erd
20925 \end_inset
20926
20927
20928 \end_layout
20929
20930 \end_inset
20931
20932
20933 \begin_inset Newline newline
20934 \end_inset
20935
20936
20937 \begin_inset Flex Code
20938 status collapsed
20939
20940 \begin_layout Plain Layout
20941 cvs -q add 
20942 \family typewriter
20943
20944 \begin_inset Quotes eld
20945 \end_inset
20946
20947 <new-file-name>
20948 \begin_inset Quotes erd
20949 \end_inset
20950
20951
20952 \end_layout
20953
20954 \end_inset
20955
20956
20957 \begin_inset Newline newline
20958 \end_inset
20959
20960
20961 \begin_inset Flex Code
20962 status collapsed
20963
20964 \begin_layout Plain Layout
20965 cvs -q remove 
20966 \family typewriter
20967
20968 \begin_inset Quotes eld
20969 \end_inset
20970
20971 <file-name>
20972 \begin_inset Quotes erd
20973 \end_inset
20974
20975
20976 \end_layout
20977
20978 \end_inset
20979
20980
20981 \end_layout
20982
20983 \begin_layout Subsubsection
20984 Update of the local directory checkout from repository
20985 \end_layout
20986
20987 \begin_layout Standard
20988 Once your documents gets more complex, containing sub-documents and pictures,
20989  including external 
20990 \begin_inset Flex Code
20991 status collapsed
20992
20993 \begin_layout Plain Layout
20994 .tex
20995 \end_layout
20996
20997 \end_inset
20998
20999  files and so on using version control becomes more complicated.
21000  \SpecialChar LyX
21001  supports updating the whole tree in which resides the document.
21002  This become especially useful once you cooperate with people which neither
21003  have detailed knowledge about CVS usage nor they have ambition to commit
21004  additional material to the repository.
21005  You have to organize the files structure so that all external files are
21006  in the same directory or subdirectories of the document.
21007  It's good practice anyway to store multipart documents in an extra directory.
21008 \end_layout
21009
21010 \begin_layout Standard
21011 The 
21012 \begin_inset Flex Code
21013 status collapsed
21014
21015 \begin_layout Plain Layout
21016 Update local directory from repository
21017 \end_layout
21018
21019 \end_inset
21020
21021  command updates the whole directory.
21022  If local changes are detected user is warned before update starts.
21023  In case of merge conflicts both versions of the conflicting document parts
21024  are placed in the final document.
21025  You have to review and correct the result of the merge.
21026  You'll find the conflicts enclosed in pairs of 
21027 \begin_inset Flex Code
21028 status collapsed
21029
21030 \begin_layout Plain Layout
21031 <<<<<<<
21032 \end_layout
21033
21034 \end_inset
21035
21036  and 
21037 \begin_inset Flex Code
21038 status collapsed
21039
21040 \begin_layout Plain Layout
21041 >>>>>>>
21042 \end_layout
21043
21044 \end_inset
21045
21046  separated by 
21047 \begin_inset Flex Code
21048 status collapsed
21049
21050 \begin_layout Plain Layout
21051 =======
21052 \end_layout
21053
21054 \end_inset
21055
21056 .
21057  The first part is your version as before the update operation with the
21058  document name prepended.
21059  The second one is the repository version with the version number after
21060  the sequence of 
21061 \begin_inset Flex Code
21062 status collapsed
21063
21064 \begin_layout Plain Layout
21065 >
21066 \end_layout
21067
21068 \end_inset
21069
21070  signs.
21071 \end_layout
21072
21073 \begin_layout Labeling
21074 \labelwidthstring 00.00.0000
21075 CVS
21076 \begin_inset space ~
21077 \end_inset
21078
21079 commands: 
21080 \begin_inset space ~
21081 \end_inset
21082
21083
21084 \begin_inset Newline newline
21085 \end_inset
21086
21087
21088 \begin_inset Flex Code
21089 status collapsed
21090
21091 \begin_layout Plain Layout
21092 cd $path; cvs diff 
21093 \family typewriter
21094 "."
21095 \end_layout
21096
21097 \end_inset
21098
21099  (Ask if changes are detected.)
21100 \begin_inset Newline newline
21101 \end_inset
21102
21103
21104 \begin_inset Flex Code
21105 status collapsed
21106
21107 \begin_layout Plain Layout
21108 cd $path; cvs -q update 
21109 \family typewriter
21110 "."
21111 \end_layout
21112
21113 \end_inset
21114
21115
21116 \end_layout
21117
21118 \begin_layout Standard
21119 where 
21120 \begin_inset Flex Code
21121 status collapsed
21122
21123 \begin_layout Plain Layout
21124 $path
21125 \end_layout
21126
21127 \end_inset
21128
21129  stands for the path to the document.
21130 \end_layout
21131
21132 \begin_layout Subsubsection
21133
21134 \family sans
21135 Show History
21136 \end_layout
21137
21138 \begin_layout Standard
21139 This shows the complete history of the CVS document.
21140  The output of 
21141 \family typewriter
21142 cvs log "<file-name>"
21143 \family default
21144  is shown in a browser.
21145 \end_layout
21146
21147 \begin_layout Subsubsection
21148 Revision info
21149 \end_layout
21150
21151 \begin_layout Standard
21152 \SpecialChar LyX
21153  supports CVS version number, author name, date and time of last commit.
21154  All those are extracted from 
21155 \family typewriter
21156 cvs log -r <file-name>
21157 \family default
21158 .
21159  See 
21160 \begin_inset CommandInset ref
21161 LatexCommand ref
21162 reference "subsec:VCS-Revision-Information"
21163
21164 \end_inset
21165
21166  for details.
21167 \end_layout
21168
21169 \begin_layout Subsection
21170 SVN commands in \SpecialChar LyX
21171
21172 \end_layout
21173
21174 \begin_layout Standard
21175 SVN is now partially supported by \SpecialChar LyX
21176 .
21177  You can find the commands in the 
21178 \family sans
21179 File\SpecialChar menuseparator
21180 Version
21181 \begin_inset space ~
21182 \end_inset
21183
21184 Control
21185 \family default
21186  submenu.
21187  Please note that if you use password protected access to repository via
21188  ssh, you will be asked in terminal window.
21189  \SpecialChar LyX
21190  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21191 \begin_inset Foot
21192 status open
21193
21194 \begin_layout Plain Layout
21195 Most of the commands will work with 1.4 too, see 
21196 \begin_inset CommandInset ref
21197 LatexCommand ref
21198 reference "subsec:SVN-Repo-Update"
21199
21200 \end_inset
21201
21202 .
21203  There seems to be currently unresolved permissions problem under SVN 1.8
21204  with reverting changes when file is locked.
21205 \end_layout
21206
21207 \end_inset
21208
21209
21210 \end_layout
21211
21212 \begin_layout Subsubsection
21213
21214 \family sans
21215 Register
21216 \end_layout
21217
21218 \begin_layout Standard
21219 If your document is not under revision control, this is the only item shown
21220  in the menu.
21221  And if it is under revision control, the 
21222 \family sans
21223 \bar under
21224 R
21225 \bar default
21226 egister
21227 \family default
21228  item is not visible.
21229 \end_layout
21230
21231 \begin_layout Standard
21232 This command registers in SVN your document ONLY in case you have already
21233  the documents directory under SVN control (in particular 
21234 \family typewriter
21235 .svn/entries
21236 \family default
21237  file exists).
21238  This means you have to checkout the archive by yourself.
21239 \end_layout
21240
21241 \begin_layout Standard
21242 Then you are asked interactively to supply an initial description of the
21243  document.
21244  Don't forget that registered file is not yet commited.
21245 \end_layout
21246
21247 \begin_layout Standard
21248 SVN command that is run: 
21249 \family typewriter
21250 svn add -q 
21251 \begin_inset Quotes eld
21252 \end_inset
21253
21254 <file-name>
21255 \begin_inset Quotes erd
21256 \end_inset
21257
21258
21259 \end_layout
21260
21261 \begin_layout Standard
21262 Read 
21263 \family typewriter
21264 man svn
21265 \family default
21266  to understand the switches.
21267 \end_layout
21268
21269 \begin_layout Subsubsection
21270
21271 \family sans
21272 Check In Changes
21273 \end_layout
21274
21275 \begin_layout Standard
21276 When you are finished editing a file, you commit your changes.
21277  When you do this, you are asked for a description of the changes.
21278  After that changes are commited.
21279 \end_layout
21280
21281 \begin_layout Standard
21282 SVN command:
21283 \begin_inset Foot
21284 status collapsed
21285
21286 \begin_layout Plain Layout
21287 In case locking is not enabled.
21288  See Section 
21289 \begin_inset CommandInset ref
21290 LatexCommand ref
21291 reference "subsec:SVN-File-Locking"
21292
21293 \end_inset
21294
21295 .
21296 \end_layout
21297
21298 \end_inset
21299
21300  
21301 \family typewriter
21302 svn commit -q -m"<description>" <file-name>
21303 \end_layout
21304
21305 \begin_layout Subsubsection
21306
21307 \family sans
21308 Check Out For Edit
21309 \end_layout
21310
21311 \begin_layout Standard
21312 Updates the changes of this file from the repository.
21313  Be sure you understand SVN merging and conflicts resolving before using
21314  this function, because all conflicts has to be resolved manually by you!
21315 \end_layout
21316
21317 \begin_layout Standard
21318 SVN command:
21319 \begin_inset Foot
21320 status collapsed
21321
21322 \begin_layout Plain Layout
21323 Ditto.
21324 \end_layout
21325
21326 \end_inset
21327
21328  
21329 \family typewriter
21330 svn update --non-interactive 
21331 \begin_inset Quotes eld
21332 \end_inset
21333
21334 <file-name>
21335 \begin_inset Quotes erd
21336 \end_inset
21337
21338
21339 \end_layout
21340
21341 \begin_layout Subsubsection
21342
21343 \family sans
21344 Revert To Repository Version
21345 \end_layout
21346
21347 \begin_layout Standard
21348 This will discard all changes made to the document since the last check
21349  in.
21350  You get a warning before changes are discarded.
21351 \end_layout
21352
21353 \begin_layout Standard
21354 SVN command: 
21355 \family typewriter
21356 svn revert -q 
21357 \begin_inset Quotes eld
21358 \end_inset
21359
21360 <file-name>
21361 \begin_inset Quotes erd
21362 \end_inset
21363
21364
21365 \end_layout
21366
21367 \begin_layout Subsubsection
21368
21369 \family sans
21370 Copy
21371 \end_layout
21372
21373 \begin_layout Standard
21374 This will create a copy of the current document including the version history.
21375  It requires a clean document without any changes since the last checkin.
21376  You are asked for a file name and a description of the copy operation.
21377  After that the copy is created, both locally and in the repository.
21378  If the parent directories of the copied and original document differ, all
21379  relative paths of included files of the copy are adjusted (like in 
21380 \family sans
21381 File\SpecialChar menuseparator
21382 Save As
21383 \family default
21384 \SpecialChar ldots
21385 ).
21386  Finally, the copy is loaded instead of the original document.
21387 \end_layout
21388
21389 \begin_layout Labeling
21390 \labelwidthstring 00.00.0000
21391 SVN
21392 \begin_inset space ~
21393 \end_inset
21394
21395 commands: 
21396 \begin_inset space ~
21397 \end_inset
21398
21399
21400 \begin_inset Newline newline
21401 \end_inset
21402
21403
21404 \begin_inset Flex Code
21405 status collapsed
21406
21407 \begin_layout Plain Layout
21408 svn copy -q 
21409 \family typewriter
21410
21411 \begin_inset Quotes eld
21412 \end_inset
21413
21414 <file-name>
21415 \begin_inset Quotes erd
21416 \end_inset
21417
21418  
21419 \begin_inset Quotes eld
21420 \end_inset
21421
21422 <new-file-name>
21423 \begin_inset Quotes erd
21424 \end_inset
21425
21426
21427 \end_layout
21428
21429 \end_inset
21430
21431
21432 \begin_inset Newline newline
21433 \end_inset
21434
21435
21436 \begin_inset Flex Code
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 svn commit
21441 \end_layout
21442
21443 \end_inset
21444
21445
21446 \end_layout
21447
21448 \begin_layout Subsubsection
21449
21450 \family sans
21451 Rename
21452 \end_layout
21453
21454 \begin_layout Standard
21455 This will rename the current document including the version history.
21456  It requires a clean document without any changes since the last checkin.
21457  You are asked for a file name and a description of the rename operation.
21458  After that the document is renamed, both locally and in the repository.
21459  If the parent directories of the new and old file names differ, all relative
21460  paths of included files are adjusted (like in 
21461 \family sans
21462 File\SpecialChar menuseparator
21463 Save As
21464 \family default
21465 \SpecialChar ldots
21466 ).
21467  Finally, the document is reloaded using the new name.
21468 \end_layout
21469
21470 \begin_layout Labeling
21471 \labelwidthstring 00.00.0000
21472 SVN
21473 \begin_inset space ~
21474 \end_inset
21475
21476 commands: 
21477 \begin_inset space ~
21478 \end_inset
21479
21480
21481 \begin_inset Newline newline
21482 \end_inset
21483
21484
21485 \begin_inset Flex Code
21486 status collapsed
21487
21488 \begin_layout Plain Layout
21489 svn move -q 
21490 \family typewriter
21491
21492 \begin_inset Quotes eld
21493 \end_inset
21494
21495 <file-name>
21496 \begin_inset Quotes erd
21497 \end_inset
21498
21499  
21500 \begin_inset Quotes eld
21501 \end_inset
21502
21503 <new-file-name>
21504 \begin_inset Quotes erd
21505 \end_inset
21506
21507
21508 \end_layout
21509
21510 \end_inset
21511
21512
21513 \begin_inset Newline newline
21514 \end_inset
21515
21516
21517 \begin_inset Flex Code
21518 status collapsed
21519
21520 \begin_layout Plain Layout
21521 svn commit
21522 \end_layout
21523
21524 \end_inset
21525
21526
21527 \end_layout
21528
21529 \begin_layout Subsubsection
21530 \begin_inset CommandInset label
21531 LatexCommand label
21532 name "subsec:SVN-Repo-Update"
21533
21534 \end_inset
21535
21536 Update of the local directory checkout from repository
21537 \begin_inset Foot
21538 status collapsed
21539
21540 \begin_layout Plain Layout
21541 Note that this command will work only with subversion 
21542 \begin_inset Formula $\geqq1.5$
21543 \end_inset
21544
21545
21546 \end_layout
21547
21548 \end_inset
21549
21550
21551 \end_layout
21552
21553 \begin_layout Standard
21554 All the commands above have one shortcomming - they deal with the current
21555  document only.
21556  Once your document contains pictures, includes external 
21557 \begin_inset Flex Code
21558 status collapsed
21559
21560 \begin_layout Plain Layout
21561 .tex
21562 \end_layout
21563
21564 \end_inset
21565
21566  files and so on administration becomes more complicated.
21567  \SpecialChar LyX
21568  now supports updating the whole tree in which resides the document
21569 \begin_inset Foot
21570 status collapsed
21571
21572 \begin_layout Plain Layout
21573 One need to organize the files structure so that all external files are
21574  in the same directory or subdirectories of the document.
21575  
21576 \end_layout
21577
21578 \end_inset
21579
21580 .
21581  This become especially useful once you cooperate with people which neither
21582  know about subversion management nor they have ambition to commit additional
21583  material to the repository.
21584  
21585 \end_layout
21586
21587 \begin_layout Standard
21588 \begin_inset Flex Code
21589 status collapsed
21590
21591 \begin_layout Plain Layout
21592 Update local directory from repository
21593 \end_layout
21594
21595 \end_inset
21596
21597  command updates the whole directory and in case of merge conflicts local
21598  version of the files are left, so no unintended data loss occurs.
21599  If local changes are detected user is warned before update starts.
21600 \end_layout
21601
21602 \begin_layout Labeling
21603 \labelwidthstring 00.00.0000
21604 SVN
21605 \begin_inset space ~
21606 \end_inset
21607
21608 commands: 
21609 \begin_inset space ~
21610 \end_inset
21611
21612
21613 \begin_inset Newline newline
21614 \end_inset
21615
21616
21617 \begin_inset Flex Code
21618 status collapsed
21619
21620 \begin_layout Plain Layout
21621 svn diff $path
21622 \end_layout
21623
21624 \end_inset
21625
21626  (Ask if changes are detected.)
21627 \begin_inset Newline newline
21628 \end_inset
21629
21630
21631 \begin_inset Flex Code
21632 status collapsed
21633
21634 \begin_layout Plain Layout
21635 svn update –accept mine-full $path
21636 \end_layout
21637
21638 \end_inset
21639
21640
21641 \end_layout
21642
21643 \begin_layout Standard
21644 where 
21645 \begin_inset Flex Code
21646 status collapsed
21647
21648 \begin_layout Plain Layout
21649 $path
21650 \end_layout
21651
21652 \end_inset
21653
21654  stands for the path to the document.
21655 \end_layout
21656
21657 \begin_layout Subsubsection
21658
21659 \family sans
21660 Show History
21661 \end_layout
21662
21663 \begin_layout Standard
21664 This shows the complete history of the SVN document.
21665  The output of 
21666 \family typewriter
21667 svn log 
21668 \begin_inset Quotes eld
21669 \end_inset
21670
21671 <file-name>
21672 \begin_inset Quotes erd
21673 \end_inset
21674
21675
21676 \family default
21677  is shown in a browser.
21678 \end_layout
21679
21680 \begin_layout Subsubsection
21681 File Locking
21682 \begin_inset CommandInset label
21683 LatexCommand label
21684 name "subsec:SVN-File-Locking"
21685
21686 \end_inset
21687
21688
21689 \end_layout
21690
21691 \begin_layout Standard
21692 The file exchange through various revision control systems brings the problem
21693  of merge conflicts in case two different users try to edit the same (parts
21694  of) document.
21695  When such a conflict happens it needs manual resolving and one reasonable
21696  alternative is to provide some kind of locking mechanism, which guarantees
21697  that only one user is allowed to edit file at the given time.
21698 \end_layout
21699
21700 \begin_layout Standard
21701 SVN has two such mechanisms to provide mutual exclusivity for file access
21702  - locks and automatic setting of write permissions (see sec.
21703  
21704 \begin_inset CommandInset ref
21705 LatexCommand ref
21706 reference "subsec:Automatical-Locking-Property"
21707
21708 \end_inset
21709
21710 ) based on 
21711 \begin_inset Flex Code
21712 status collapsed
21713
21714 \begin_layout Plain Layout
21715 svn:needs-lock
21716 \end_layout
21717
21718 \end_inset
21719
21720  file svn property
21721 \begin_inset Foot
21722 status open
21723
21724 \begin_layout Plain Layout
21725 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21726 \end_layout
21727
21728 \end_inset
21729
21730 .
21731  If this property is detected for a given document \SpecialChar LyX
21732  starts to use SVN locks
21733  for document editing automatically and the whole check-in/out mechanism
21734  switches to the same regimen as for RCS.
21735  This in particular means there are two different modes of file use in \SpecialChar LyX
21736 :
21737 \end_layout
21738
21739 \begin_layout Itemize
21740 Unlocked state.
21741  The loaded file is in the read-only mode.
21742  For editing on needs to check-out.
21743  
21744 \emph on
21745 Check-out
21746 \emph default
21747  consists of updating from the repository and gaining write lock.
21748  If the lock is not possible to obtain, we remain in unlocked state.
21749 \end_layout
21750
21751 \begin_layout Itemize
21752 Locked state.
21753  The loaded file is in the 'normal' edit mode.
21754  No other user is allowed to edit the file.
21755  
21756 \emph on
21757 Check-in
21758 \emph default
21759  consists of commiting changes and releasing write-lock.
21760  If no changes have been made to the document, no commit will be produced
21761 \begin_inset Foot
21762 status collapsed
21763
21764 \begin_layout Plain Layout
21765 Don't be puzzled by the fact that you will be asked for commit message anyway.
21766 \end_layout
21767
21768 \end_inset
21769
21770  and only the write-lock will be released.
21771 \end_layout
21772
21773 \begin_layout Standard
21774 SVN commands:
21775 \end_layout
21776
21777 \begin_layout Labeling
21778 \labelwidthstring 00.00.0000
21779 Check-in:
21780 \family typewriter
21781  svn commit -q -m"<description>" "<file-name>"
21782 \begin_inset Newline newline
21783 \end_inset
21784
21785 svn unlock "<file-name>"
21786 \end_layout
21787
21788 \begin_layout Labeling
21789 \labelwidthstring 00.00.0000
21790 Check-out: 
21791 \family typewriter
21792 svn update "<file-name>"
21793 \begin_inset Newline newline
21794 \end_inset
21795
21796 svn lock "<file-name>"
21797 \end_layout
21798
21799 \begin_layout Subsubsection
21800
21801 \family typewriter
21802 \begin_inset CommandInset label
21803 LatexCommand label
21804 name "subsec:Automatical-Locking-Property"
21805
21806 \end_inset
21807
21808
21809 \family default
21810 Automatic Locking Property
21811 \end_layout
21812
21813 \begin_layout Standard
21814 The above mentioned automatic setting of write permissions of the .lyx file
21815  can be set through
21816 \family sans
21817 \bar under
21818  F
21819 \bar default
21820 ile\SpecialChar menuseparator
21821
21822 \bar under
21823 V
21824 \bar default
21825 ersion
21826 \begin_inset space ~
21827 \end_inset
21828
21829 Control\SpecialChar menuseparator
21830
21831 \bar under
21832 T
21833 \bar default
21834 oggle locking property
21835 \family default
21836 .
21837  This command is active only when the file is not locked on the svn server
21838  (i.e.
21839  you need to check-out before proceeding).
21840 \end_layout
21841
21842 \begin_layout Labeling
21843 \labelwidthstring 00.00.0000
21844 SVN
21845 \begin_inset space ~
21846 \end_inset
21847
21848 commands:
21849 \end_layout
21850
21851 \begin_layout Labeling
21852 \labelwidthstring 00.00.0000
21853 Set:
21854 \family typewriter
21855  svn propset svn:needs-lock ON "<file-name>"
21856 \end_layout
21857
21858 \begin_layout Labeling
21859 \labelwidthstring 00.00.0000
21860 Unset: 
21861 \family typewriter
21862 svn propdel svn:needs-lock "<file-name>"
21863 \end_layout
21864
21865 \begin_layout Subsubsection
21866 \begin_inset CommandInset label
21867 LatexCommand label
21868 name "subsec:VCS-Revision-Information"
21869
21870 \end_inset
21871
21872 Revision Information in Documents
21873 \end_layout
21874
21875 \begin_layout Standard
21876 There are more possibilities how to activate revision information in our
21877  document.
21878 \end_layout
21879
21880 \begin_layout Itemize
21881 \SpecialChar LyX
21882  supports directly:
21883 \begin_inset Separator parbreak
21884 \end_inset
21885
21886
21887 \end_layout
21888
21889 \begin_deeper
21890 \begin_layout Itemize
21891 tree revision information (
21892 \begin_inset Flex Code
21893 status collapsed
21894
21895 \begin_layout Plain Layout
21896 vcs-tree-revision
21897 \end_layout
21898
21899 \end_inset
21900
21901 ).
21902  The result is the output of the 
21903 \begin_inset Flex Code
21904 status collapsed
21905
21906 \begin_layout Plain Layout
21907 svnversion
21908 \end_layout
21909
21910 \end_inset
21911
21912  command, the following table gives you an idea, how to read the results.
21913 \end_layout
21914
21915 \begin_layout Standard
21916 \align center
21917 \begin_inset Tabular
21918 <lyxtabular version="3" rows="6" columns="2">
21919 <features tabularvalignment="middle">
21920 <column alignment="center" valignment="top">
21921 <column alignment="center" valignment="top">
21922 <row>
21923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21924 \begin_inset Text
21925
21926 \begin_layout Plain Layout
21927 Output
21928 \end_layout
21929
21930 \end_inset
21931 </cell>
21932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21933 \begin_inset Text
21934
21935 \begin_layout Plain Layout
21936 Meaning
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 4123:4168
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 mixed revision 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 4168M
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 modified 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 4123S
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 switched working copy
21997 \end_layout
21998
21999 \end_inset
22000 </cell>
22001 </row>
22002 <row>
22003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22004 \begin_inset Text
22005
22006 \begin_layout Plain Layout
22007 4123P
22008 \end_layout
22009
22010 \end_inset
22011 </cell>
22012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22013 \begin_inset Text
22014
22015 \begin_layout Plain Layout
22016 partial working copy, from a sparse checkout
22017 \end_layout
22018
22019 \end_inset
22020 </cell>
22021 </row>
22022 <row>
22023 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22024 \begin_inset Text
22025
22026 \begin_layout Plain Layout
22027 4123:4168MS
22028 \end_layout
22029
22030 \end_inset
22031 </cell>
22032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22033 \begin_inset Text
22034
22035 \begin_layout Plain Layout
22036 mixed revision, modified, switched working copy
22037 \end_layout
22038
22039 \end_inset
22040 </cell>
22041 </row>
22042 </lyxtabular>
22043
22044 \end_inset
22045
22046
22047 \end_layout
22048
22049 \begin_layout Itemize
22050 file revision information.
22051  The result comes from parsing the output of 
22052 \begin_inset Flex Code
22053 status collapsed
22054
22055 \begin_layout Plain Layout
22056 svn
22057 \begin_inset space ~
22058 \end_inset
22059
22060 info
22061 \begin_inset space ~
22062 \end_inset
22063
22064 –xml
22065 \begin_inset space ~
22066 \end_inset
22067
22068 file.lyx
22069 \end_layout
22070
22071 \end_inset
22072
22073 .
22074  Supported flags are:
22075 \begin_inset Separator parbreak
22076 \end_inset
22077
22078
22079 \end_layout
22080
22081 \begin_deeper
22082 \begin_layout Itemize
22083 version number of the last commit (
22084 \begin_inset Flex Code
22085 status collapsed
22086
22087 \begin_layout Plain Layout
22088 vcs-revision
22089 \end_layout
22090
22091 \end_inset
22092
22093 )
22094 \end_layout
22095
22096 \begin_layout Itemize
22097 author of the last commit (
22098 \begin_inset Flex Code
22099 status collapsed
22100
22101 \begin_layout Plain Layout
22102 vcs-author
22103 \end_layout
22104
22105 \end_inset
22106
22107 )
22108 \end_layout
22109
22110 \begin_layout Itemize
22111 date of the last commit (
22112 \begin_inset Flex Code
22113 status collapsed
22114
22115 \begin_layout Plain Layout
22116 vcs-date
22117 \end_layout
22118
22119 \end_inset
22120
22121 )
22122 \end_layout
22123
22124 \begin_layout Itemize
22125 time of the last commit (
22126 \begin_inset Flex Code
22127 status collapsed
22128
22129 \begin_layout Plain Layout
22130 vcs-time
22131 \end_layout
22132
22133 \end_inset
22134
22135 )
22136 \end_layout
22137
22138 \end_deeper
22139 \begin_layout Standard
22140 You can obtain this info via InsetInfo (e.g.
22141  
22142 \begin_inset Flex Code
22143 status collapsed
22144
22145 \begin_layout Plain Layout
22146 info-insert buffer vcs-date
22147 \end_layout
22148
22149 \end_inset
22150
22151 ).
22152  The information will be available only when you have the file stored under
22153  svn managment (i.e.
22154  the 
22155 \begin_inset Flex Code
22156 status collapsed
22157
22158 \begin_layout Plain Layout
22159 .svn
22160 \end_layout
22161
22162 \end_inset
22163
22164  directory is available with your document).
22165 \end_layout
22166
22167 \end_deeper
22168 \begin_layout Itemize
22169 Another—a hacking one—possibility is to use svn keywords
22170 \begin_inset Foot
22171 status collapsed
22172
22173 \begin_layout Plain Layout
22174 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22175 \end_layout
22176
22177 \end_inset
22178
22179 .
22180  In short – you set file keywords property (e.g.
22181  
22182 \family sans
22183 svn propset svn:keywords 'Rev' file.lyx
22184 \family default
22185 ) and then paste keyword \SpecialChar TeX
22186  code
22187 \begin_inset Foot
22188 status collapsed
22189
22190 \begin_layout Plain Layout
22191 This is an easy way how to ensure that \SpecialChar LyX
22192  won't break the line in the middle
22193  of keyword tag.
22194 \end_layout
22195
22196 \end_inset
22197
22198  tag in your document (e.g.
22199  
22200 \begin_inset ERT
22201 status open
22202
22203 \begin_layout Plain Layout
22204
22205 $Rev$
22206 \end_layout
22207
22208 \end_inset
22209
22210 ).
22211  This way svn client will automatically substitute revision number (e.g.
22212  
22213 \begin_inset ERT
22214 status open
22215
22216 \begin_layout Plain Layout
22217
22218 $Rev: 59 $
22219 \end_layout
22220
22221 \end_inset
22222
22223 ) after each update and commit.
22224  There are more problems with this approach.
22225  Firstly, the '$' character is used in \SpecialChar TeX
22226  world for math equations, so any
22227  occurence of math formula 
22228 \begin_inset Formula $Rev$
22229 \end_inset
22230
22231  become 
22232 \begin_inset Formula $Rev:59$
22233 \end_inset
22234
22235  in your \SpecialChar LyX
22236  document.
22237  Similarly for other keywords like Id, Date, Author, etc.
22238  Secondly svn output is dependent on your locales, so its very easy that
22239  svn would produce some problematic strings once Date is used.
22240  Thirdly you get the whole 'Rev: 59' string in your document instead of
22241  the plain number.
22242  Until subversion implements user's custom keywords it will be hard to use
22243  this approach reliably or let \SpecialChar LyX
22244  to support it directly.
22245 \end_layout
22246
22247 \begin_layout Subsection
22248 SVN and Windows Environment
22249 \end_layout
22250
22251 \begin_layout Quote
22252 My inclination is to say that if the user cannot figure out the command
22253  line operations on their own fairly quickly, they would be well advised
22254  to use TortoiseSVN.
22255  —P.
22256  A.
22257  Rubin
22258 \end_layout
22259
22260 \begin_layout Subsubsection
22261 Preparation
22262 \end_layout
22263
22264 \begin_layout Standard
22265 In addition to installing \SpecialChar LyX
22266 , and having access to a Subversion repository,
22267  the user will need to install the Subversion client program.
22268  A Windows installer for the client program is available from 
22269 \begin_inset CommandInset href
22270 LatexCommand href
22271 name "CollabNet"
22272 target "http://www.collab.net/nonav/downloads/subversion/"
22273
22274 \end_inset
22275
22276 .
22277  The user may also want to install 
22278 \begin_inset CommandInset href
22279 LatexCommand href
22280 name "TortoiseSVN"
22281 target "http://tortoisesvn.tigris.org/"
22282
22283 \end_inset
22284
22285 , which integrates Subversion operations into the context (rightclick) menu
22286  of Windows Explorer.
22287  Operations done outside \SpecialChar LyX
22288  will typically be more convenient using the Explorer
22289  context menu.
22290  Note that TortoiseSVN is not a replacement for the client program, which
22291  is what \SpecialChar LyX
22292  itself will use.
22293 \end_layout
22294
22295 \begin_layout Subsubsection
22296 Bringing a document under Subversion control
22297 \end_layout
22298
22299 \begin_layout Standard
22300 Before a \SpecialChar LyX
22301  document can be brought under version control in Subversion, its
22302  parent directory needs to be under version control.
22303  If the document is being added to a project already in the repository,
22304  this is accomplished by checking the project out to the directory where
22305  the new document will be placed.
22306  If the project itself is not yet under version control (for instance, if
22307  this document starts a new project), the directory must be imported into
22308  the repository.
22309  This is done outside \SpecialChar LyX
22310 .
22311  Both import and checkout are easily accomplished from the Explorer context
22312  menu using TortoiseSVN, or alternatively can be done using the command
22313  line client at a DOS prompt.
22314  The procedure for importing the project using TortoiseSVN is described
22315  below, assuming an existing repository and a new project being started
22316  in 
22317 \family typewriter
22318 C:
22319 \backslash
22320 new project
22321 \family default
22322 .
22323  For information on using the Subversion client program, run 
22324 \family typewriter
22325 svn --help 
22326 \family default
22327 in a DOS shell.
22328 \end_layout
22329
22330 \begin_layout Enumerate
22331 Locate 
22332 \family typewriter
22333 C:
22334 \backslash
22335 new project 
22336 \family default
22337 in Windows Explorer, right click it, and select 
22338 \family sans
22339 TortoiseSVN\SpecialChar menuseparator
22340 Repo-browser
22341 \family default
22342 .
22343  If necessary, adjust the URL for the repository, then click OK.
22344 \end_layout
22345
22346 \begin_layout Enumerate
22347 Right click the level of the repository under which you want to place the
22348  new project folder (typically the top level) and click 
22349 \family sans
22350 Create folder
22351 \family default
22352  Supply a name for the project folder and click OK.
22353  Add a message for the log file if desired, then click OK again.
22354  The new project folder should appear in the repository.
22355  Finally, click OK again to exit the repository browser.
22356 \end_layout
22357
22358 \begin_layout Enumerate
22359 Once again right click 
22360 \family typewriter
22361 C:
22362 \backslash
22363 new project
22364 \family default
22365 , this time selecting SVN Checkout\SpecialChar ldots
22366  Select the URL of the project folder
22367  you just created in the repository, and set the checkout directory to 
22368 \family typewriter
22369 C:
22370 \backslash
22371 new project.
22372
22373 \family default
22374  Click OK.
22375  You will be warned about a non-empty folder; click OK to proceed.
22376  You should now have a 
22377 \family typewriter
22378 .svn
22379 \family default
22380  directory under 
22381 \family typewriter
22382 C:
22383 \backslash
22384 new project.
22385 \end_layout
22386
22387 \begin_layout Enumerate
22388 Create or open your document in \SpecialChar LyX
22389  and click 
22390 \family sans
22391 File\SpecialChar menuseparator
22392 Version
22393 \begin_inset space ~
22394 \end_inset
22395
22396 Control\SpecialChar menuseparator
22397 Register.
22398  
22399 \family default
22400 Add a log message and click OK to commit the document to version control.
22401 \end_layout
22402
22403 \begin_layout Standard
22404 From this point onward, you should have full functionality in the 
22405 \family sans
22406 File\SpecialChar menuseparator
22407 Version
22408 \begin_inset space ~
22409 \end_inset
22410
22411 Control
22412 \family default
22413  menu.
22414  You also have the option of checking the document in and out, viewing its
22415  history, etc.
22416  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22417  client program from a command prompt.
22418 \end_layout
22419
22420 \begin_layout Subsubsection
22421 SSH tunnel used with SVN under Windows
22422 \end_layout
22423
22424 \begin_layout Standard
22425 Compared with Linux setting up an svn client to communicate over ssh under
22426  Windows is a rather troublesome task.
22427  We will at least offer some hints how to setup the client side but prior
22428  knowledge about ssh and the Windows command line is needed, also be prepared
22429  for a great deal of frustration\SpecialChar ldots
22430
22431 \end_layout
22432
22433 \begin_layout Enumerate
22434 Get an svn client for windows, as described in the previous sections.
22435  When it is a fresh install run some svn command (e.g.
22436  
22437 \begin_inset Flex Code
22438 status collapsed
22439
22440 \begin_layout Plain Layout
22441 svn –version
22442 \end_layout
22443
22444 \end_inset
22445
22446 ) to create config files, which you will need to change later on.
22447 \end_layout
22448
22449 \begin_layout Enumerate
22450 Choose an ssh client for Windows.
22451  There are several possibilities, we will use the one from Putty tools
22452 \begin_inset Foot
22453 status collapsed
22454
22455 \begin_layout Plain Layout
22456 \begin_inset Flex URL
22457 status collapsed
22458
22459 \begin_layout Plain Layout
22460
22461 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22462 \end_layout
22463
22464 \end_inset
22465
22466
22467 \end_layout
22468
22469 \end_inset
22470
22471 .
22472  You will need to set the connection up so that the client doesn't ask for
22473  any password from you.
22474  To keep things easy we will use only keys without any additional password
22475  protection etc.
22476 \begin_inset Separator parbreak
22477 \end_inset
22478
22479
22480 \end_layout
22481
22482 \begin_deeper
22483 \begin_layout Enumerate
22484 Generate keys by 
22485 \begin_inset Flex Code
22486 status collapsed
22487
22488 \begin_layout Plain Layout
22489 puttygen
22490 \end_layout
22491
22492 \end_inset
22493
22494 .
22495  Save your private .ppk key file and put the public one on the server side.
22496  If the SVN server runs on Linux, note that the format of the public key
22497  is not compatible with Linux openssh and you will need to direcly copy-paste
22498  the key from the “
22499 \emph on
22500 Public key for pasting into OpenSSH authorized_keys file
22501 \emph default
22502 :” edit field into the server's 
22503 \begin_inset Flex Code
22504 status collapsed
22505
22506 \begin_layout Plain Layout
22507 ~/.ssh/authorized_keys
22508 \end_layout
22509
22510 \end_inset
22511
22512  / 
22513 \begin_inset Flex Code
22514 status collapsed
22515
22516 \begin_layout Plain Layout
22517 authorized_keys2
22518 \end_layout
22519
22520 \end_inset
22521
22522  file.
22523 \end_layout
22524
22525 \begin_layout Enumerate
22526 Get the Putty's 
22527 \begin_inset Flex Code
22528 status collapsed
22529
22530 \begin_layout Plain Layout
22531 plink
22532 \end_layout
22533
22534 \end_inset
22535
22536 .
22537  In the SVN config file
22538 \begin_inset Foot
22539 status collapsed
22540
22541 \begin_layout Plain Layout
22542 Exact path depends on Windows version, usually somewhere around 
22543 \begin_inset Flex Code
22544 status collapsed
22545
22546 \begin_layout Plain Layout
22547 c:
22548 \backslash
22549 Documents and Settings
22550 \backslash
22551 user
22552 \backslash
22553 Application Data
22554 \backslash
22555 Subversion
22556 \backslash
22557 config
22558 \end_layout
22559
22560 \end_inset
22561
22562  / 
22563 \begin_inset Flex Code
22564 status collapsed
22565
22566 \begin_layout Plain Layout
22567 AppData
22568 \backslash
22569 Roaming
22570 \backslash
22571 Subversion
22572 \end_layout
22573
22574 \end_inset
22575
22576 .
22577 \end_layout
22578
22579 \end_inset
22580
22581 , section [tunnels], setup ssh command, e.g.
22582  
22583 \begin_inset Flex Code
22584 status collapsed
22585
22586 \begin_layout Plain Layout
22587 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22588 \end_layout
22589
22590 \end_inset
22591
22592 .
22593 \begin_inset Foot
22594 status collapsed
22595
22596 \begin_layout Plain Layout
22597 It will usually take a lot of time to get exact command right and it depends
22598  on many things.
22599  For example do not have some remote server saved as a default session in
22600  Putty etc.
22601  If things fail, try to connect via plink without SVN first.
22602 \end_layout
22603
22604 \end_inset
22605
22606
22607 \end_layout
22608
22609 \end_deeper
22610 \begin_layout Enumerate
22611 Checkout the SVN archive, e.
22612 \begin_inset space \thinspace{}
22613 \end_inset
22614
22615 g.
22616 \begin_inset Newline newline
22617 \end_inset
22618
22619
22620 \begin_inset Flex Code
22621 status collapsed
22622
22623 \begin_layout Plain Layout
22624 svn co svn+ssh://user@server/repository_path
22625 \end_layout
22626
22627 \end_inset
22628
22629 .
22630 \end_layout
22631
22632 \begin_layout Subsubsection
22633 End-of-Line Conversions
22634 \end_layout
22635
22636 \begin_layout Standard
22637 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22638  will
22639  use different line endings inside the .lyx files.
22640  This is not a problem as far as \SpecialChar LyX
22641  functionality is concerned, but the commit
22642  diffs will be huge and merge-conflicts prone.
22643  Fortunately SVN itself knows
22644 \begin_inset Foot
22645 status collapsed
22646
22647 \begin_layout Plain Layout
22648 \begin_inset Flex URL
22649 status collapsed
22650
22651 \begin_layout Plain Layout
22652
22653 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22654 \end_layout
22655
22656 \end_inset
22657
22658
22659 \end_layout
22660
22661 \end_inset
22662
22663  how to deal with CR/LF problems when switching .lyx files to the 
22664 \begin_inset Flex Code
22665 status collapsed
22666
22667 \begin_layout Plain Layout
22668 native
22669 \end_layout
22670
22671 \end_inset
22672
22673  mode.
22674 \begin_inset Foot
22675 status collapsed
22676
22677 \begin_layout Plain Layout
22678 For the lazy guys: 
22679 \begin_inset Flex Code
22680 status collapsed
22681
22682 \begin_layout Plain Layout
22683 svn propset svn:eol-style native FILE_NAME
22684 \end_layout
22685
22686 \end_inset
22687
22688
22689 \end_layout
22690
22691 \end_inset
22692
22693
22694 \end_layout
22695
22696 \begin_layout Subsection
22697 GIT commands in \SpecialChar LyX
22698
22699 \end_layout
22700
22701 \begin_layout Standard
22702 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22703 .
22704  You can find the commands in the 
22705 \family sans
22706 File\SpecialChar menuseparator
22707 Version
22708 \begin_inset space ~
22709 \end_inset
22710
22711 Control
22712 \family default
22713  submenu.
22714  Please note that if you use password protected access to repository via
22715  ssh, you will be asked in terminal window.
22716  \SpecialChar LyX
22717  was tested against GIT 1.7.
22718 \begin_inset Foot
22719 status open
22720
22721 \begin_layout Plain Layout
22722 Windows users please note that you need to ensure that git is on the path.
22723  This can be set from within \SpecialChar LyX
22724  at 
22725 \family sans
22726 Tools\SpecialChar menuseparator
22727 Preferences\SpecialChar menuseparator
22728 Paths\SpecialChar menuseparator
22729 PATH prefix
22730 \family default
22731 .
22732 \end_layout
22733
22734 \end_inset
22735
22736
22737 \end_layout
22738
22739 \begin_layout Standard
22740 One big difference of GIT and the other supported version control systems
22741  is the distributed nature of GIT: With traditional version control systems
22742  there is one central server which hosts the repository.
22743  Users commit their changes to the server, and get updates made by other
22744  users from it.
22745  With GIT, users commit to a local repository.
22746  The local repository can be synchronized with one or more remote repositories
22747  using the 
22748 \begin_inset Flex Code
22749 status collapsed
22750
22751 \begin_layout Plain Layout
22752 pull
22753 \end_layout
22754
22755 \end_inset
22756
22757  and 
22758 \begin_inset Flex Code
22759 status collapsed
22760
22761 \begin_layout Plain Layout
22762 push
22763 \end_layout
22764
22765 \end_inset
22766
22767  GIT commands.
22768  \SpecialChar LyX
22769  does not interact in any way with remote GIT repositories.
22770  It works exclusively with the local repository in a very similar way as
22771  with a central CVS or SVN repository.
22772  If you use remote GIT repositories you need to do the 
22773 \begin_inset Flex Code
22774 status collapsed
22775
22776 \begin_layout Plain Layout
22777 pull
22778 \end_layout
22779
22780 \end_inset
22781
22782  and 
22783 \begin_inset Flex Code
22784 status collapsed
22785
22786 \begin_layout Plain Layout
22787 push
22788 \end_layout
22789
22790 \end_inset
22791
22792  operations with your favourite GIT client.
22793 \end_layout
22794
22795 \begin_layout Subsubsection
22796
22797 \family sans
22798 Register
22799 \end_layout
22800
22801 \begin_layout Standard
22802 If your document is not under revision control, this is the only item shown
22803  in the menu.
22804  And if it is under revision control, the 
22805 \family sans
22806 \bar under
22807 R
22808 \bar default
22809 egister
22810 \family default
22811  item is not visible.
22812 \end_layout
22813
22814 \begin_layout Standard
22815 This command registers in GIT your document ONLY in case you have already
22816  the documents directory under GIT control (in particular 
22817 \family typewriter
22818 .git/index
22819 \family default
22820  file exists).
22821  This means you have to checkout the archive by yourself.
22822 \end_layout
22823
22824 \begin_layout Standard
22825 Then you are asked interactively to supply an initial description of the
22826  document.
22827  Don't forget that registered file is not yet commited.
22828 \end_layout
22829
22830 \begin_layout Standard
22831 GIT command that is run: 
22832 \family typewriter
22833 git add 
22834 \begin_inset Quotes eld
22835 \end_inset
22836
22837 <file-name>
22838 \begin_inset Quotes erd
22839 \end_inset
22840
22841
22842 \end_layout
22843
22844 \begin_layout Standard
22845 Read 
22846 \family typewriter
22847 man git
22848 \family default
22849  to understand the switches.
22850 \end_layout
22851
22852 \begin_layout Subsubsection
22853
22854 \family sans
22855 Check In Changes
22856 \end_layout
22857
22858 \begin_layout Standard
22859 When you are finished editing a file, you commit your changes.
22860  When you do this, you are asked for a description of the changes.
22861  After that changes are commited.
22862 \end_layout
22863
22864 \begin_layout Standard
22865 GIT command: 
22866 \family typewriter
22867 git commit -q -m"<description>" <file-name>
22868 \end_layout
22869
22870 \begin_layout Subsubsection
22871
22872 \family sans
22873 Revert To Repository Version
22874 \end_layout
22875
22876 \begin_layout Standard
22877 This will discard all changes made to the document since the last check
22878  in.
22879  You get a warning before changes are discarded.
22880 \end_layout
22881
22882 \begin_layout Standard
22883 GIT command: 
22884 \family typewriter
22885 git checkout -q 
22886 \begin_inset Quotes eld
22887 \end_inset
22888
22889 <file-name>
22890 \begin_inset Quotes erd
22891 \end_inset
22892
22893
22894 \end_layout
22895
22896 \begin_layout Subsubsection
22897
22898 \family sans
22899 Rename
22900 \end_layout
22901
22902 \begin_layout Standard
22903 This will rename the current document including the version history.
22904  It requires a clean document without any changes since the last checkin.
22905  You are asked for a file name and a description of the rename operation.
22906  After that the document is renamed, both locally and in the repository.
22907  If the parent directories of the new and old file names differ, all relative
22908  paths of included files are adjusted (like in 
22909 \family sans
22910 File\SpecialChar menuseparator
22911 Save As
22912 \family default
22913 \SpecialChar ldots
22914 ).
22915  Finally, the document is reloaded using the new name.
22916 \end_layout
22917
22918 \begin_layout Labeling
22919 \labelwidthstring 00.00.0000
22920 GIT
22921 \begin_inset space ~
22922 \end_inset
22923
22924 commands: 
22925 \begin_inset space ~
22926 \end_inset
22927
22928
22929 \begin_inset Newline newline
22930 \end_inset
22931
22932
22933 \begin_inset Flex Code
22934 status collapsed
22935
22936 \begin_layout Plain Layout
22937 git mv 
22938 \family typewriter
22939
22940 \begin_inset Quotes eld
22941 \end_inset
22942
22943 <file-name>
22944 \begin_inset Quotes erd
22945 \end_inset
22946
22947  
22948 \begin_inset Quotes eld
22949 \end_inset
22950
22951 <new-file-name>
22952 \begin_inset Quotes erd
22953 \end_inset
22954
22955
22956 \end_layout
22957
22958 \end_inset
22959
22960
22961 \begin_inset Newline newline
22962 \end_inset
22963
22964
22965 \begin_inset Flex Code
22966 status collapsed
22967
22968 \begin_layout Plain Layout
22969 git commit
22970 \end_layout
22971
22972 \end_inset
22973
22974
22975 \end_layout
22976
22977 \begin_layout Subsubsection
22978
22979 \family sans
22980 Show History
22981 \end_layout
22982
22983 \begin_layout Standard
22984 This shows the complete history of the GIT document.
22985  The output of 
22986 \family typewriter
22987 git log 
22988 \begin_inset Quotes eld
22989 \end_inset
22990
22991 <file-name>
22992 \begin_inset Quotes erd
22993 \end_inset
22994
22995
22996 \family default
22997  is shown in a browser.
22998 \end_layout
22999
23000 \begin_layout Subsubsection
23001 Version Info
23002 \end_layout
23003
23004 \begin_layout Standard
23005 \SpecialChar LyX
23006  supports GIT hash number of the last commit to the file, author name, date
23007  and time of last commit.
23008  All those are extracted from 
23009 \family typewriter
23010 git log -n 1 --pretty=format:%H%n%an%n%ai
23011 \family default
23012 .
23013  Tree version information is obtained via 
23014 \family typewriter
23015 git describe --abbrev --dirty --long
23016 \family default
23017 .
23018  See 
23019 \begin_inset CommandInset ref
23020 LatexCommand ref
23021 reference "subsec:VCS-Revision-Information"
23022
23023 \end_inset
23024
23025  for other details.
23026 \end_layout
23027
23028 \begin_layout Subsection
23029 Further tuning
23030 \end_layout
23031
23032 \begin_layout Standard
23033 With the recent addition of the vc-command function \SpecialChar LyX
23034  power users are allowed
23035  to create their own commands for revision control.
23036 \end_layout
23037
23038 \begin_layout Standard
23039 As an example you can see how two TortoiseSVN commands could be integrated
23040  directly:
23041 \end_layout
23042
23043 \begin_layout Description
23044 Commit: 
23045 \begin_inset Flex Code
23046 status collapsed
23047
23048 \begin_layout Plain Layout
23049 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23050 \end_layout
23051
23052 \end_inset
23053
23054
23055 \end_layout
23056
23057 \begin_layout Description
23058 Revert: 
23059 \begin_inset Flex Code
23060 status collapsed
23061
23062 \begin_layout Plain Layout
23063 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23064 \end_layout
23065
23066 \end_inset
23067
23068
23069 \end_layout
23070
23071 \begin_layout Subsection
23072 Version control and Document comparison
23073 \end_layout
23074
23075 \begin_layout Standard
23076 One of the typical uses of version control is to inspect the changes between
23077  revisions, usually by creating 
23078 \begin_inset Flex Code
23079 status collapsed
23080
23081 \begin_layout Plain Layout
23082 diff
23083 \end_layout
23084
23085 \end_inset
23086
23087  dumps.
23088  While this is useful for plain text files, it is much less useful in the
23089  case of \SpecialChar LyX
23090  files, which have more a complicated structure.
23091  Hence we provide binding to the Document comparison feature.
23092  There are two ways of calling this feature - either by direct call of 
23093 \begin_inset Flex Code
23094 status collapsed
23095
23096 \begin_layout Plain Layout
23097 VC_COMPARE
23098 \end_layout
23099
23100 \end_inset
23101
23102  \SpecialChar LyX
23103  function (for details see \SpecialChar LyX
23104  functions manual) or by icon/menu item 
23105 \begin_inset Flex MenuItem
23106 status collapsed
23107
23108 \begin_layout Plain Layout
23109 Compare with older revision...
23110 \end_layout
23111
23112 \end_inset
23113
23114 .
23115  One can either compare two chosen revisions of the document or he can simply
23116  compare the current version of edited text with older revisions (where
23117  '
23118 \begin_inset Flex MenuItem
23119 status collapsed
23120
23121 \begin_layout Plain Layout
23122 0
23123 \end_layout
23124
23125 \end_inset
23126
23127 ' revisions back means comparison of the edited file with last commited
23128  revision).
23129  
23130 \end_layout
23131
23132 \begin_layout Standard
23133 This feature is supported for SVN and RCS though due to the more complicated
23134  versioning scheme of RCS there is a constraint – when addressing the revisions
23135  in dialog, numbers always point to the last number in RCS revision number,
23136  i.e.
23137  '35' in '1.2.35'.
23138  We don't currently support GIT addressing of revisions, one can just compare
23139  edited document with its revision X steps backs, where X is addressed as
23140  HEAD~X.
23141 \end_layout
23142
23143 \begin_layout Section
23144 Literate Programming
23145 \end_layout
23146
23147 \begin_layout Standard
23148 Updated by 
23149 \noun on
23150 Kayvan Sylvan 
23151 \noun default
23152 (kayvan@sylvan.com)
23153 \noun on
23154
23155 \noun default
23156 original documentation written by 
23157 \noun on
23158 Edmar Wienskoski Jr.
23159
23160 \noun default
23161  (edmar-w-jr@technologist.com)
23162 \end_layout
23163
23164 \begin_layout Subsection
23165 Introduction
23166 \end_layout
23167
23168 \begin_layout Standard
23169 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23170  for literate
23171  programming, where it is assumed that you are familiar with this programming
23172  technique, and know what 
23173 \begin_inset Quotes eld
23174 \end_inset
23175
23176 tangling
23177 \begin_inset Quotes erd
23178 \end_inset
23179
23180  and 
23181 \begin_inset Quotes eld
23182 \end_inset
23183
23184 weaving
23185 \begin_inset Quotes erd
23186 \end_inset
23187
23188  means.
23189  If that is not the case, please follow the web links provided in the following
23190  sections.
23191  There is a lot of good documentation out there covering old development
23192  history to the latest tools tips.
23193 \end_layout
23194
23195 \begin_layout Standard
23196 It is also assumed that you are familiar with \SpecialChar LyX
23197  itself to a point that you
23198  are comfortable changing your \SpecialChar LyX
23199  preferences, and X resources file.
23200  If that is not the case please refer to other \SpecialChar LyX
23201  documentation to cover your
23202  specific needs.
23203 \end_layout
23204
23205 \begin_layout Subsection
23206 Literate Programming
23207 \end_layout
23208
23209 \begin_layout Standard
23210 From the Literate Programming FAQ: 
23211 \end_layout
23212
23213 \begin_layout Quotation
23214 Literate programming is the combination of documentation and source together
23215  in a fashion suited for reading by human beings.
23216  In fact, literate programs should be enjoyable reading, even inviting!
23217  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23218  and documentation in a single file.
23219  Literate programming tools then parse the file to produce either readable
23220  documentation or compilable source.
23221  The WEB style of literate programming was created by D.
23222 \begin_inset space \thinspace{}
23223 \end_inset
23224
23225 E.
23226  Knuth during the development of his \SpecialChar TeX
23227  typesetting software.
23228  
23229 \end_layout
23230
23231 \begin_layout Standard
23232 Another excerpt says:
23233 \end_layout
23234
23235 \begin_layout Quotation
23236
23237 \emph on
23238 How is literate programming different from verbose commenting?
23239 \end_layout
23240
23241 \begin_layout Quotation
23242 There are three distinguishing characteristics.
23243  In order of importance, they are: 
23244 \begin_inset Separator parbreak
23245 \end_inset
23246
23247
23248 \end_layout
23249
23250 \begin_deeper
23251 \begin_layout Itemize
23252 flexible order of elaboration 
23253 \end_layout
23254
23255 \begin_layout Itemize
23256 automatic support for browsing 
23257 \end_layout
23258
23259 \begin_layout Itemize
23260 typeset documentation, especially diagrams and mathematics 
23261 \end_layout
23262
23263 \end_deeper
23264 \begin_layout Standard
23265 Now that I sparked your curiosity, take a look in the references.
23266 \end_layout
23267
23268 \begin_layout Subsubsection
23269 References
23270 \end_layout
23271
23272 \begin_layout Standard
23273 The complete Literate Programming FAQ can be found at:
23274 \end_layout
23275
23276 \begin_layout Quote
23277 Literate Programming FAQ 
23278 \begin_inset Flex URL
23279 status collapsed
23280
23281 \begin_layout Plain Layout
23282
23283 http://www.literateprogramming.com/lpfaq.pdf
23284 \end_layout
23285
23286 \end_inset
23287
23288
23289 \end_layout
23290
23291 \begin_layout Standard
23292 The FAQ lists 23 (twenty three!) different literate programming tools.
23293  Where some are specialized or 
23294 \begin_inset Quotes eld
23295 \end_inset
23296
23297 tailored
23298 \begin_inset Quotes erd
23299 \end_inset
23300
23301  for particular programming languages, while other have general scope.
23302  I selected 
23303 \noun on
23304 Noweb
23305 \noun default
23306  for my own use for several reasons:
23307 \end_layout
23308
23309 \begin_layout Itemize
23310 It can generate the documentation either in \SpecialChar LaTeX
23311  or HTML.
23312 \end_layout
23313
23314 \begin_layout Itemize
23315 It has a open architecture, i.
23316 \begin_inset space \thinspace{}
23317 \end_inset
23318
23319 e.
23320 \begin_inset space \space{}
23321 \end_inset
23322
23323 it is easy to plug in new filters and to perform special processing that
23324  you may need.
23325  
23326 \end_layout
23327
23328 \begin_layout Itemize
23329 There is a good selection of filters available already (the HTML is one
23330  of them).
23331 \end_layout
23332
23333 \begin_layout Itemize
23334 It is free.
23335 \end_layout
23336
23337 \begin_layout Standard
23338 The Noweb web page can be found at: 
23339 \end_layout
23340
23341 \begin_layout Quote
23342 Noweb home page 
23343 \begin_inset Flex URL
23344 status collapsed
23345
23346 \begin_layout Plain Layout
23347
23348 http://www.cs.virginia.edu/~nr/noweb/
23349 \end_layout
23350
23351 \end_inset
23352
23353
23354 \end_layout
23355
23356 \begin_layout Standard
23357 Starting from there you can reach many other interesting links and even
23358  some literate program examples.
23359 \end_layout
23360
23361 \begin_layout Subsection
23362 \SpecialChar LyX
23363  and Literate Programming with Noweb
23364 \end_layout
23365
23366 \begin_layout Standard
23367 The \SpecialChar LyX
23368  support for Literate Programming is provided by using the generic \SpecialChar LyX
23369
23370  converters mechanism.
23371  This support is provided in a 
23372 \begin_inset Quotes eld
23373 \end_inset
23374
23375 Noweb independent
23376 \begin_inset Quotes erd
23377 \end_inset
23378
23379  way, i.
23380 \begin_inset space \thinspace{}
23381 \end_inset
23382
23383 e.
23384 \begin_inset space \space{}
23385 \end_inset
23386
23387 you will be able to use this new \SpecialChar LyX
23388  feature with some other literate programming
23389  tool of your choice by just changing your \SpecialChar LyX
23390  preferences.
23391 \end_layout
23392
23393 \begin_layout Subsubsection
23394 Generating documents and code (weaving and tangling)
23395 \end_layout
23396
23397 \begin_layout Paragraph
23398 Using the noweb module
23399 \end_layout
23400
23401 \begin_layout Standard
23402 If you have installed Noweb and \SpecialChar LyX
23403  successfully, whenever you open a new document,
23404  after you have chosen its document class, use the Document->Settings menu
23405  to add the 
23406 \begin_inset Quotes eld
23407 \end_inset
23408
23409 noweb
23410 \begin_inset Quotes erd
23411 \end_inset
23412
23413  module.
23414  If Noweb is correctly installed, when you click on the 
23415 \begin_inset Quotes eld
23416 \end_inset
23417
23418 Modules
23419 \begin_inset Quotes erd
23420 \end_inset
23421
23422  link, you will see the 
23423 \begin_inset Quotes eld
23424 \end_inset
23425
23426 noweb
23427 \begin_inset Quotes erd
23428 \end_inset
23429
23430  module in the available list and you can add it to your document.
23431 \end_layout
23432
23433 \begin_layout Paragraph
23434 Typing code in
23435 \end_layout
23436
23437 \begin_layout Standard
23438 \SpecialChar LyX
23439  enables you to write code with a layout named 
23440 \begin_inset Flex Noun
23441 status collapsed
23442
23443 \begin_layout Plain Layout
23444 Chunk
23445 \end_layout
23446
23447 \end_inset
23448
23449 .
23450  Noweb delimits chunks like this:
23451 \end_layout
23452
23453 \begin_layout LyX-Code
23454 <<My code>>=
23455 \end_layout
23456
23457 \begin_layout LyX-Code
23458   code
23459 \end_layout
23460
23461 \begin_layout LyX-Code
23462   more code
23463 \end_layout
23464
23465 \begin_layout LyX-Code
23466   even more code
23467 \end_layout
23468
23469 \begin_layout LyX-Code
23470   @
23471 \end_layout
23472
23473 \begin_layout Standard
23474 The problem is that whatever is written in between the << and the 
23475 \family typewriter
23476 @
23477 \family default
23478  must be taken literally, i.
23479 \begin_inset space \thinspace{}
23480 \end_inset
23481
23482 e.
23483 \begin_inset space \space{}
23484 \end_inset
23485
23486 \SpecialChar LyX
23487  should be prevented from making any special interpretation of what has
23488  been written.
23489  This is also handled by 
23490 \begin_inset Flex Noun
23491 status collapsed
23492
23493 \begin_layout Plain Layout
23494 Chunk
23495 \end_layout
23496
23497 \end_inset
23498
23499 , that works like a normal paragraph but has a free spacing capability.
23500 \end_layout
23501
23502 \begin_layout Standard
23503 As a special note, you can also use the 
23504 \begin_inset Quotes eld
23505 \end_inset
23506
23507 %def
23508 \begin_inset Quotes erd
23509 \end_inset
23510
23511  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23512 rence:
23513 \end_layout
23514
23515 \begin_layout LyX-Code
23516 <<My chunk>>=
23517 \end_layout
23518
23519 \begin_layout LyX-Code
23520 def some_function(args):
23521 \end_layout
23522
23523 \begin_layout LyX-Code
23524    "This is the doc string for this function."
23525 \end_layout
23526
23527 \begin_layout LyX-Code
23528    print "My args: ", args
23529 \end_layout
23530
23531 \begin_layout LyX-Code
23532 @ %def some_function
23533 \end_layout
23534
23535 \begin_layout Standard
23536 For an example of this usage and the resulting cross-reference output, look
23537  at the Literate python program in 
23538 \emph on
23539 LIBDIR/examples/listerrors.lyx
23540 \emph default
23541  which should make this all clear.
23542 \end_layout
23543
23544 \begin_layout Paragraph
23545 Generating the documentation
23546 \end_layout
23547
23548 \begin_layout Standard
23549 At this point you already have a new document file with a proper document
23550  class, and with some code and text on it.
23551  How do I print it? The answer is simple, you select 
23552 \family sans
23553 View\SpecialChar menuseparator
23554 DVI,
23555 \family default
23556  etc.
23557  Just like you would do for a plain document.
23558  No special procedure is required.
23559 \end_layout
23560
23561 \begin_layout Standard
23562 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23563 :
23564 \end_layout
23565
23566 \begin_layout Enumerate
23567 When the 
23568 \family sans
23569 Update\SpecialChar menuseparator
23570 DVI
23571 \family default
23572  menu option is chosen, a \SpecialChar LaTeX
23573  file is generated.
23574  
23575 \begin_inset Separator parbreak
23576 \end_inset
23577
23578
23579 \end_layout
23580
23581 \begin_deeper
23582 \begin_layout Standard
23583 If the document is of any literate class the generated file will be named
23584  with an extension name defined by the 
23585 \begin_inset Quotes eld
23586 \end_inset
23587
23588 literate
23589 \begin_inset Quotes erd
23590 \end_inset
23591
23592  format (defined in the Preferences panel), otherwise the file will have
23593  the usual 
23594 \family typewriter
23595 .tex
23596 \family default
23597  extension.
23598 \end_layout
23599
23600 \end_deeper
23601 \begin_layout Enumerate
23602 Note that the only difference so far is in the name of the file, no special
23603  processing is required by \SpecialChar LyX
23604 .
23605  Given that you formatted the code using the 
23606 \begin_inset Flex Noun
23607 status collapsed
23608
23609 \begin_layout Plain Layout
23610 Chunk
23611 \end_layout
23612
23613 \end_inset
23614
23615  layout that, by itself, takes care of the business.
23616 \end_layout
23617
23618 \begin_layout Enumerate
23619 If the document is of any literate class \SpecialChar LyX
23620  will then use the internal \SpecialChar LyX
23621  to
23622  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23623  converter
23624 \begin_inset Foot
23625 status collapsed
23626
23627 \begin_layout Plain Layout
23628 The converters are defined in the 
23629 \family sans
23630 Tools\SpecialChar menuseparator
23631 Preferences
23632 \family default
23633  panel, under the 
23634 \begin_inset Quotes eld
23635 \end_inset
23636
23637 Conversion
23638 \begin_inset Quotes erd
23639 \end_inset
23640
23641  tab.
23642  See section 
23643 \emph on
23644 Converters
23645 \emph default
23646  of the 
23647 \emph on
23648 Customization
23649 \emph default
23650  manual for general information about converters.
23651 \end_layout
23652
23653 \end_inset
23654
23655  to generate the \SpecialChar LaTeX
23656  file.
23657 \begin_inset Separator parbreak
23658 \end_inset
23659
23660
23661 \end_layout
23662
23663 \begin_deeper
23664 \begin_layout Standard
23665 Otherwise it will just skip this step.
23666 \end_layout
23667
23668 \end_deeper
23669 \begin_layout Enumerate
23670 Finally, \SpecialChar LaTeX
23671  is invoked and the regular post processing continues as in a plain
23672  document.
23673 \end_layout
23674
23675 \begin_layout Standard
23676 Independence from a particular 
23677 \begin_inset Quotes eld
23678 \end_inset
23679
23680 literate tool
23681 \begin_inset Quotes erd
23682 \end_inset
23683
23684  is easily achieved by changing the commands that are run by the various
23685  converters.
23686 \end_layout
23687
23688 \begin_layout Paragraph
23689 Generating the code
23690 \end_layout
23691
23692 \begin_layout Standard
23693 When the build menu option is chosen or the corresponding button in the
23694  toolbar is pressed, a \SpecialChar LaTeX
23695  file is generated just like step 1 above.
23696  Next, \SpecialChar LyX
23697  invokes the 
23698 \family typewriter
23699 Noweb->Program
23700 \family default
23701  converter.
23702  This converter needs to be defined by the user and is not installed by
23703  default, though the Program format is.
23704  This converter (like any other converter) will have two parts:
23705 \end_layout
23706
23707 \begin_layout Enumerate
23708 The converter program itself.
23709  This program performs the conversion from the one format to the other (in
23710  this case, from the Noweb format to the Program pseudo-format).
23711 \end_layout
23712
23713 \begin_layout Enumerate
23714 The error log parser.
23715  This is a program whose sole purpose is to rewrite error messages in a
23716  format that \SpecialChar LyX
23717  understands.
23718  This makes it possible for \SpecialChar LyX
23719  to place error boxes in the right places in
23720  the file buffer.
23721 \end_layout
23722
23723 \begin_layout Standard
23724 The first part, the 
23725 \begin_inset Quotes eld
23726 \end_inset
23727
23728 Converter
23729 \begin_inset Quotes erd
23730 \end_inset
23731
23732  setting, should be set to
23733 \begin_inset Newline newline
23734 \end_inset
23735
23736
23737 \begin_inset Quotes eld
23738 \end_inset
23739
23740
23741 \family typewriter
23742 build-script $$i
23743 \family default
23744  $$r
23745 \begin_inset Quotes erd
23746 \end_inset
23747
23748 .
23749 \begin_inset Newline newline
23750 \end_inset
23751
23752 This basically means that \SpecialChar LyX
23753  will call 
23754 \begin_inset Quotes eld
23755 \end_inset
23756
23757 build-script
23758 \begin_inset Quotes erd
23759 \end_inset
23760
23761  (a program or script) with the name of the Noweb file (normally a file
23762  in the \SpecialChar LyX
23763  temp directory) and the directory path of the original \SpecialChar LyX
23764  file.
23765  
23766 \end_layout
23767
23768 \begin_layout Standard
23769 This is an implementation of 
23770 \begin_inset Quotes eld
23771 \end_inset
23772
23773 build-script
23774 \begin_inset Quotes erd
23775 \end_inset
23776
23777  that you can place in a directory on your path:
23778 \end_layout
23779
23780 \begin_layout Standard
23781 \begin_inset VSpace defskip
23782 \end_inset
23783
23784
23785 \end_layout
23786
23787 \begin_layout Standard
23788 \begin_inset Newpage pagebreak
23789 \end_inset
23790
23791
23792 \end_layout
23793
23794 \begin_layout Standard
23795
23796 \family sans
23797 #!/bin/sh
23798 \end_layout
23799
23800 \begin_layout Standard
23801
23802 \family sans
23803 #
23804 \end_layout
23805
23806 \begin_layout Standard
23807
23808 \family sans
23809 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23810 \end_layout
23811
23812 \begin_layout Standard
23813 \begin_inset VSpace defskip
23814 \end_inset
23815
23816
23817 \end_layout
23818
23819 \begin_layout Standard
23820 The next part of the converter setting is the 
23821 \begin_inset Quotes eld
23822 \end_inset
23823
23824 Flags
23825 \begin_inset Quotes erd
23826 \end_inset
23827
23828  which is to be set to
23829 \begin_inset Newline newline
23830 \end_inset
23831
23832
23833 \begin_inset Quotes eld
23834 \end_inset
23835
23836
23837 \family typewriter
23838 parselog=$$s/scripts/listerrors
23839 \family default
23840
23841 \begin_inset Quotes erd
23842 \end_inset
23843
23844 .
23845 \begin_inset Newline newline
23846 \end_inset
23847
23848 This will run any errors that are generated by the 
23849 \begin_inset Quotes eld
23850 \end_inset
23851
23852 build-script
23853 \begin_inset Quotes erd
23854 \end_inset
23855
23856  process through the 
23857 \begin_inset Quotes eld
23858 \end_inset
23859
23860 listerrors
23861 \begin_inset Quotes erd
23862 \end_inset
23863
23864  program.
23865 \end_layout
23866
23867 \begin_layout Standard
23868 The build will normally take place in \SpecialChar LyX
23869 's temporary directory, so the files
23870  produced by the conversion will be in that directory.
23871  \SpecialChar LyX
23872  will copy out what it regards as the `main' file, but the 
23873 \family typewriter
23874 Noweb->Program
23875 \family default
23876  conversion may produce several files, and so most of these would then be
23877  deleted when \SpecialChar LyX
23878  was closed.
23879  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23880  the build-script chunk can place the generated files in that location.
23881 \end_layout
23882
23883 \begin_layout Paragraph
23884 Build instructions in the document
23885 \end_layout
23886
23887 \begin_layout Standard
23888 The last piece of the integration between \SpecialChar LyX
23889  and noweb is the 
23890 \begin_inset Quotes eld
23891 \end_inset
23892
23893 build-script
23894 \begin_inset Quotes erd
23895 \end_inset
23896
23897  chunk.
23898  Generally, the instructions for building your program should be embedded
23899  in a chunk of its own.
23900  The noweb-specific 
23901 \begin_inset Quotes eld
23902 \end_inset
23903
23904 build-script
23905 \begin_inset Quotes erd
23906 \end_inset
23907
23908  above uses the notangle command to look for this chunk (called 
23909 \begin_inset Quotes eld
23910 \end_inset
23911
23912 build-script
23913 \begin_inset Quotes erd
23914 \end_inset
23915
23916 ) and runs its contents through 
23917 \begin_inset Quotes eld
23918 \end_inset
23919
23920 sh
23921 \begin_inset Quotes erd
23922 \end_inset
23923
23924 .
23925 \end_layout
23926
23927 \begin_layout Standard
23928 Typically, such a chunk would look something like this:
23929 \end_layout
23930
23931 \begin_layout LyX-Code
23932 <<build-script>>=
23933 \end_layout
23934
23935 \begin_layout LyX-Code
23936 #!/bin/sh
23937 \begin_inset Newline newline
23938 \end_inset
23939
23940 if [ -z "${NOWEB_SOURCE}" ]
23941 \begin_inset Newline newline
23942 \end_inset
23943
23944 then
23945 \end_layout
23946
23947 \begin_layout LyX-Code
23948 NOWEB_SOURCE=myfile.nw
23949 \begin_inset Newline newline
23950 \end_inset
23951
23952 fi
23953 \begin_inset Newline newline
23954 \end_inset
23955
23956 [...
23957  code to extract files ...
23958  use NOWEB_OUTPUT_DIR here ...]
23959 \begin_inset Newline newline
23960 \end_inset
23961
23962 [...
23963  code to compile files ...]
23964 \begin_inset Newline newline
23965 \end_inset
23966
23967 @
23968 \end_layout
23969
23970 \begin_layout Standard
23971 Look in 
23972 \emph on
23973 LIBDIR/examples/listerrors.lyx
23974 \emph default
23975  or in 
23976 \emph on
23977 LIBDIR/examples/Literate.lyx
23978 \emph default
23979  which implement two versions of the 
23980 \begin_inset Quotes eld
23981 \end_inset
23982
23983 listerrors
23984 \begin_inset Quotes erd
23985 \end_inset
23986
23987  program for some illustrations of how all of these pieces go together or
23988  in 
23989 \emph on
23990 LIBDIR/examples/noweb2lyx.lyx.
23991
23992 \emph default
23993  Interestingly, these three files show off the language-indepence of the
23994  \SpecialChar LyX
23995  literate programming support since they are written in Python, C and Perl
23996  respectively.
23997 \end_layout
23998
23999 \begin_layout Subsubsection
24000 Configuring \SpecialChar LyX
24001
24002 \end_layout
24003
24004 \begin_layout Standard
24005 All the Literate Programming support is configured by the 
24006 \family sans
24007 Tools\SpecialChar menuseparator
24008 Preferences
24009 \family default
24010  panel in the 
24011 \begin_inset Quotes eld
24012 \end_inset
24013
24014 File Handling
24015 \begin_inset Quotes erd
24016 \end_inset
24017
24018  tab.
24019  The important parts are:
24020 \end_layout
24021
24022 \begin_layout Description
24023 the
24024 \begin_inset space ~
24025 \end_inset
24026
24027
24028 \begin_inset Quotes eld
24029 \end_inset
24030
24031 NoWeb
24032 \begin_inset Quotes erd
24033 \end_inset
24034
24035
24036 \begin_inset space ~
24037 \end_inset
24038
24039 format Set up via the File Formats tab, this is where the Noweb-specific
24040  pieces are set up.
24041  The 
24042 \family sans
24043 GUI Name
24044 \family default
24045  is set to 
24046 \family typewriter
24047 NoWeb
24048 \family default
24049 , the file extension is set to 
24050 \family typewriter
24051 .nw
24052 \family default
24053 .
24054  This tells \SpecialChar LyX
24055  to create a file with a 
24056 \family typewriter
24057 .nw
24058 \family default
24059  extension in the first step of the conversion process.
24060 \end_layout
24061
24062 \begin_layout Description
24063 the
24064 \begin_inset space ~
24065 \end_inset
24066
24067
24068 \family sans
24069 Program
24070 \family default
24071
24072 \begin_inset space ~
24073 \end_inset
24074
24075 format This is an empty format whose sole purpose is to be the endpoint
24076  of a conversion (which then allows us to set up a converter for it).
24077 \end_layout
24078
24079 \begin_layout Description
24080
24081 \family sans
24082 NoWeb
24083 \family default
24084 ->
24085 \family sans
24086 \SpecialChar LaTeX
24087
24088 \family default
24089  This converter performs the 
24090 \begin_inset Quotes eld
24091 \end_inset
24092
24093 weaving
24094 \begin_inset Quotes erd
24095 \end_inset
24096
24097  of the literate document.
24098  For Noweb, it is set to 
24099 \begin_inset Quotes eld
24100 \end_inset
24101
24102
24103 \family typewriter
24104 noweave -delay -index $$i > $$o
24105 \family default
24106
24107 \begin_inset Quotes erd
24108 \end_inset
24109
24110
24111 \end_layout
24112
24113 \begin_layout Description
24114
24115 \family sans
24116 NoWeb
24117 \family default
24118 ->
24119 \family sans
24120 Program
24121 \family default
24122  This performs the 
24123 \begin_inset Quotes eld
24124 \end_inset
24125
24126 tangling step
24127 \begin_inset Quotes erd
24128 \end_inset
24129
24130 .
24131  As stated above, the Converter is set to 
24132 \begin_inset Quotes eld
24133 \end_inset
24134
24135
24136 \family typewriter
24137 build-script $$i
24138 \family default
24139  $$r
24140 \begin_inset Quotes erd
24141 \end_inset
24142
24143 , with Flags set to
24144 \begin_inset Newline newline
24145 \end_inset
24146
24147
24148 \begin_inset Quotes eld
24149 \end_inset
24150
24151
24152 \family typewriter
24153 parselog=$$s/scripts/listerrors
24154 \family default
24155
24156 \begin_inset Quotes erd
24157 \end_inset
24158
24159 .
24160 \end_layout
24161
24162 \begin_layout Subsubsection
24163 Debug extensions
24164 \end_layout
24165
24166 \begin_layout Standard
24167 There is also a new function implemented in the \SpecialChar LyX
24168  server, the 
24169 \begin_inset Quotes eld
24170 \end_inset
24171
24172 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24173  
24174 \end_layout
24175
24176 \begin_layout Standard
24177 When debugging code with ddd/gdb, it is possible to invoke a text editor
24178  at the current execution position with a single key stroke.
24179  The default ddd configuration for that is shift-ctrl-V.
24180  It happens that you can define the editor command line invocation in ddd
24181  by accessing the 
24182 \family sans
24183 Edit\SpecialChar menuseparator
24184 Preferences\SpecialChar menuseparator
24185 Helpers
24186 \family default
24187  dialog and changing the "Edit Sources" entry.
24188 \end_layout
24189
24190 \begin_layout Standard
24191 I take advantage of the newly created \SpecialChar LyX
24192  server function and this ddd feature,
24193  and set 
24194 \begin_inset Quotes eld
24195 \end_inset
24196
24197 Edit Sources
24198 \begin_inset Quotes erd
24199 \end_inset
24200
24201  to:
24202 \end_layout
24203
24204 \begin_layout Standard
24205 \begin_inset VSpace defskip
24206 \end_inset
24207
24208
24209 \end_layout
24210
24211 \begin_layout Standard
24212
24213 \family sans
24214 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24215 \end_layout
24216
24217 \begin_layout Standard
24218 \begin_inset VSpace defskip
24219 \end_inset
24220
24221
24222 \end_layout
24223
24224 \begin_layout Standard
24225 With this, whenever you are using ddd and find a point in the program that
24226  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24227  ddd will forward this information to \SpecialChar LyX
24228  through the \SpecialChar LyX
24229  server and then the
24230  \SpecialChar LyX
24231  window will show the same file with the cursor at the same position ddd
24232  was pointing to.
24233  No more guessing or long scrolling to locate a point in the program back
24234  from debugging !
24235 \end_layout
24236
24237 \begin_layout Standard
24238 Note however that you must enable the \SpecialChar LyX
24239  server to get this feature working
24240  (it is disabled by default).
24241  You can enable it in 
24242 \family sans
24243 Preferences
24244 \family default
24245  (tabs 
24246 \family sans
24247 Inputs
24248 \family default
24249
24250 \family sans
24251 Paths
24252 \family default
24253 ) by entering in the 
24254 \family sans
24255 \SpecialChar LyX
24256 server pipe
24257 \family default
24258  a path like 
24259 \begin_inset Quotes eld
24260 \end_inset
24261
24262
24263 \family typewriter
24264 /home/<your-home-directory>/.lyx/lyxpipe
24265 \family default
24266
24267 \begin_inset Quotes erd
24268 \end_inset
24269
24270
24271 \end_layout
24272
24273 \begin_layout Standard
24274 Read the \SpecialChar LyX
24275  server documentation in the 
24276 \emph on
24277 Customization Manual
24278 \emph default
24279  for further information.
24280 \end_layout
24281
24282 \begin_layout Subsubsection
24283 Toolbar extensions
24284 \end_layout
24285
24286 \begin_layout Standard
24287 There are six new buttons that can be added to your \SpecialChar LyX
24288  toolbar.
24289  Five of these buttons are short cuts to layout styles: 
24290 \family sans
24291 Standard
24292 \family default
24293
24294 \family sans
24295 Section
24296 \family default
24297
24298 \family sans
24299 \SpecialChar LaTeX
24300
24301 \family default
24302
24303 \family sans
24304 \SpecialChar LyX
24305 -Code
24306 \family default
24307 , and 
24308 \family sans
24309 Chunk
24310 \family default
24311 .
24312  The last one is a short cut to the 
24313 \begin_inset Quotes eld
24314 \end_inset
24315
24316 Build Program
24317 \begin_inset Quotes erd
24318 \end_inset
24319
24320  File menu entry.
24321  
24322 \end_layout
24323
24324 \begin_layout Standard
24325 \SpecialChar LyX
24326  has a range of buttons that are available for tool bar customization.
24327  In my toolbar I like to combine the six short cuts above with two more:
24328  One for 
24329 \family sans
24330 Document
24331 \family default
24332 \SpecialChar menuseparator
24333
24334 \family sans
24335 Update
24336 \family default
24337 \SpecialChar menuseparator
24338
24339 \family sans
24340 DVI
24341 \family default
24342  and the other for 
24343 \family sans
24344 Document\SpecialChar menuseparator
24345 View\SpecialChar menuseparator
24346 DVI
24347 \family default
24348  File menu entries.
24349  Here is how it looks like:
24350 \end_layout
24351
24352 \begin_layout LyX-Code
24353 Toolbar
24354 \end_layout
24355
24356 \begin_layout LyX-Code
24357   Layouts
24358 \end_layout
24359
24360 \begin_layout LyX-Code
24361   Icon "layout Standard"
24362 \end_layout
24363
24364 \begin_layout LyX-Code
24365   Icon "layout Section"
24366 \end_layout
24367
24368 \begin_layout LyX-Code
24369   Icon "layout \SpecialChar LaTeX
24370 "
24371 \end_layout
24372
24373 \begin_layout LyX-Code
24374   Icon "layout \SpecialChar LyX
24375 -Code"
24376 \end_layout
24377
24378 \begin_layout LyX-Code
24379   Icon "layout Chunk"
24380 \end_layout
24381
24382 \begin_layout LyX-Code
24383   Separator
24384 \end_layout
24385
24386 \begin_layout LyX-Code
24387   Icon "buffer-view"
24388 \end_layout
24389
24390 \begin_layout LyX-Code
24391   Icon "buffer-typeset"
24392 \end_layout
24393
24394 \begin_layout LyX-Code
24395   Icon "build-program"
24396 \end_layout
24397
24398 \begin_layout LyX-Code
24399   Separator
24400 \end_layout
24401
24402 \begin_layout LyX-Code
24403 .
24404 \end_layout
24405
24406 \begin_layout LyX-Code
24407 .
24408 \end_layout
24409
24410 \begin_layout LyX-Code
24411 .
24412 \end_layout
24413
24414 \begin_layout LyX-Code
24415 End
24416 \end_layout
24417
24418 \begin_layout Subsubsection
24419 Colors customization
24420 \end_layout
24421
24422 \begin_layout Standard
24423 There are a number of colors in \SpecialChar LyX
24424  that can be customized in 
24425 \family sans
24426 Preferences
24427 \family default
24428 .
24429  One of the things that bothers people is the \SpecialChar LaTeX
24430  font color.
24431  The default color is red, since the chunks uses \SpecialChar LaTeX
24432  font, and there is a lot
24433  of chunks in literate documents, you may get tired of seeing everything
24434  in red.
24435  You can change it by going to the tabs 
24436 \family sans
24437 Look&Feel
24438 \family default
24439
24440 \family sans
24441 Colors.
24442 \end_layout
24443
24444 \begin_layout Standard
24445 The next thing is the visible presence of the newline character in the screen.
24446  You can choose the color of this particular character and make it blend
24447  in the background.
24448  I recommend you choosing a color that is close to the background but not
24449  equal, that way you still can see it is there, but it is not bothering
24450  you anymore.
24451 \end_layout
24452
24453 \begin_layout Subsection
24454 \SpecialChar LyX
24455  and knitr/Sweave
24456 \end_layout
24457
24458 \begin_layout Standard
24459 Support for 
24460 \family sans
24461 knitr
24462 \family default
24463  and 
24464 \family sans
24465 Sweave
24466 \family default
24467  is documented in the 
24468 \emph on
24469 knitr.lyx
24470 \emph default
24471  example file and in the Sweave manual (menu 
24472 \family sans
24473 Help\SpecialChar menuseparator
24474 Specific Manuals
24475 \family default
24476 ).
24477 \end_layout
24478
24479 \begin_layout Chapter
24480 Special features
24481 \end_layout
24482
24483 \begin_layout Standard
24484 You can do everything with \SpecialChar LyX
24485  that you can do with \SpecialChar LaTeX
24486 .
24487  However, \SpecialChar LyX
24488  cannot support every \SpecialChar LaTeX
24489  feature directly.
24490  But you can always use \SpecialChar TeX
24491  Code.
24492  This chapter shows you some more special things you might want to use.
24493  For other special things you can do with figures, tables, floats, boxes
24494  and notes, have a look at the 
24495 \emph on
24496 Embedded
24497 \begin_inset space ~
24498 \end_inset
24499
24500 Objects
24501 \emph default
24502  manual.
24503 \end_layout
24504
24505 \begin_layout Section
24506 Multiple Text Columns
24507 \end_layout
24508
24509 \begin_layout Standard
24510 This feature is independent of the option 
24511 \family sans
24512 Two-column document
24513 \family default
24514  in the document settings under 
24515 \family sans
24516 Text Layout
24517 \family default
24518 .
24519  If you want to have 2
24520 \begin_inset space ~
24521 \end_inset
24522
24523 columns for the whole document, it is recommended to use the 
24524 \family sans
24525 Two-column document
24526 \family default
24527  option.
24528  For all other cases use this feature.
24529 \end_layout
24530
24531 \begin_layout Standard
24532 To use multiple text columns in your document, you have to load the module
24533  
24534 \family sans
24535 Multiple Columns
24536 \family default
24537  (menu 
24538 \family sans
24539 Document\SpecialChar menuseparator
24540 Settings\SpecialChar menuseparator
24541 Modules
24542 \family default
24543 ) and must have the \SpecialChar LaTeX
24544 -package 
24545 \series bold
24546 multicol
24547 \series default
24548  installed.
24549 \end_layout
24550
24551 \begin_layout Standard
24552 Footnotes within multiple columns will be placed at the bottom of the page
24553  and not under each column.
24554  Within the different columns you can use everything, with the limitation
24555  that for floats you need to use the float option 
24556 \family sans
24557 Span columns
24558 \family default
24559 .
24560 \end_layout
24561
24562 \begin_layout Subsection
24563 Basics
24564 \end_layout
24565
24566 \begin_layout Standard
24567 If you want to have 2
24568 \begin_inset space ~
24569 \end_inset
24570
24571 columns in your text, insert a multicolumn inset via the menu 
24572 \family sans
24573 Insert\SpecialChar menuseparator
24574 Custom
24575 \begin_inset space ~
24576 \end_inset
24577
24578 Insets\SpecialChar menuseparator
24579 Multiple
24580 \begin_inset space ~
24581 \end_inset
24582
24583 Columns
24584 \family default
24585  where the columns should start.
24586  Write all text that should be printed in 2
24587 \begin_inset space ~
24588 \end_inset
24589
24590 columns into this inset.
24591 \end_layout
24592
24593 \begin_layout Standard
24594 Here is an example:
24595 \end_layout
24596
24597 \begin_layout Standard
24598 \noindent
24599 \begin_inset Flex Multiple Columns
24600 status open
24601
24602 \begin_layout Plain Layout
24603 \noindent
24604
24605 \series bold
24606 \size small
24607 The Adventure of the Empty House
24608 \series default
24609
24610 \begin_inset Newline newline
24611 \end_inset
24612
24613 by Sir Arthur Conan Doyle
24614 \end_layout
24615
24616 \begin_layout Plain Layout
24617
24618 \size small
24619 It was in the spring of the year 1894 that all London was interested, and
24620  the fashionable world dismayed, by the murder of the Honourable Ronald
24621  Adair under most unusual and inexplicable circumstances.
24622  The public has already learned those particulars of the crime which came
24623  out in the police investigation, but a good deal was suppressed upon that
24624  occasion, since the case for the prosecution was so overwhelmingly strong
24625  that it was not necessary to bring forward all the facts.
24626  Only now, at the end of nearly ten years, am I allowed to supply those
24627  missing links which make up the whole of that remarkable chain.
24628  The crime was of interest in itself, but that interest was as nothing to
24629  me compared to the inconceivable sequel, which afforded me the greatest
24630  shock and surprise of any event in my adventurous life.
24631  Even now, after this long interval, I find myself thrilling as I think
24632  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24633 ty which utterly submerged my mind.
24634  Let me say to that public, which has shown some interest in those glimpses
24635  which I have occasionally given them of the thoughts and actions of a very
24636  remarkable man, that they are not to blame me if I have not shared my knowledge
24637  with them, for I should have considered it my first duty to do so, had
24638  I not been barred by a positive prohibition from his own lips, which was
24639  only withdrawn upon the third of last month.
24640 \end_layout
24641
24642 \end_inset
24643
24644
24645 \end_layout
24646
24647 \begin_layout Standard
24648 To get 3 or more columns, set the cursor into the multicolumn inset and
24649  use the menu 
24650 \family sans
24651 Insert\SpecialChar menuseparator
24652 Number
24653 \begin_inset space ~
24654 \end_inset
24655
24656 of
24657 \begin_inset space ~
24658 \end_inset
24659
24660 Columns
24661 \family default
24662 .
24663  The number of the desired columns is written into that inset (for 3
24664 \begin_inset space ~
24665 \end_inset
24666
24667 columns write 
24668 \begin_inset Quotes eld
24669 \end_inset
24670
24671 3
24672 \begin_inset Quotes erd
24673 \end_inset
24674
24675 ).
24676 \begin_inset Newline newline
24677 \end_inset
24678
24679 Here is an example with 3
24680 \begin_inset space ~
24681 \end_inset
24682
24683 columns:
24684 \end_layout
24685
24686 \begin_layout Standard
24687 \begin_inset Flex Multiple Columns
24688 status open
24689
24690 \begin_layout Plain Layout
24691
24692 \size footnotesize
24693 \begin_inset Argument 1
24694 status open
24695
24696 \begin_layout Plain Layout
24697 3
24698 \end_layout
24699
24700 \end_inset
24701
24702 It can be imagined that my close intimacy with Sherlock Holmes had interested
24703  me deeply in crime, and that after his disappearance I never failed to
24704  read with care the various problems which came before the public.
24705  And I even attempted, more than once, for my own private satisfaction,
24706  to employ his methods in their solution, though with indifferent success.
24707  There was none, however, which appealed to me like this tragedy of Ronald
24708  Adair.
24709  As I read the evidence at the inquest, which led up to a verdict of willful
24710  murder against some person or persons unknown, I realized more clearly
24711  than I had ever done the loss which the community had sustained by the
24712  death of Sherlock Holmes.
24713  There were points about this strange business which would, I was sure,
24714  have specially appealed to him, and the efforts of the police would have
24715  been supplemented, or more probably anticipated, by the trained observation
24716  and the alert mind of the first criminal agent in Europe.
24717  All day, as I drove upon my round, I turned over the case in my mind and
24718  found no explanation which appeared to me to be adequate.
24719  At the risk of telling a twice-told tale, I will recapitulate the facts
24720  as they were known to the public at the conclusion of the inquest.
24721 \end_layout
24722
24723 \end_inset
24724
24725
24726 \end_layout
24727
24728 \begin_layout Standard
24729 You can have up to 10
24730 \begin_inset space ~
24731 \end_inset
24732
24733 columns if you want to, but that might not be very pleasant for the readers
24734  of your document.
24735 \end_layout
24736
24737 \begin_layout Standard
24738 \begin_inset Newpage newpage
24739 \end_inset
24740
24741
24742 \end_layout
24743
24744 \begin_layout Subsection
24745 Columns inside Columns
24746 \end_layout
24747
24748 \begin_layout Standard
24749 You can also have columns inside columns:
24750 \end_layout
24751
24752 \begin_layout Standard
24753 \begin_inset Flex Multiple Columns
24754 status open
24755
24756 \begin_layout Plain Layout
24757
24758 \size footnotesize
24759 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24760  at that time governor of one of the Australian colonies.
24761  Adair's mother had returned from Australia to undergo the operation for
24762  cataract, and she, her son Ronald, and her daughter Hilda were living together
24763  at 427 Park Lane.
24764 \end_layout
24765
24766 \begin_layout Plain Layout
24767 \begin_inset Flex Multiple Columns
24768 status open
24769
24770 \begin_layout Plain Layout
24771
24772 \size footnotesize
24773 The youth moved in the best society–had, so far as was known, no enemies
24774  and no particular vices.
24775  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24776  had been broken off by mutual consent some months before, and there was
24777  no sign that it had left any very profound feeling behind it.
24778  For the rest {sic} the man's life moved in a narrow and conventional circle,
24779  for his habits were quiet and his nature unemotional.
24780  Yet it was upon this easy-going young aristocrat that death came, in most
24781  strange and unexpected form, between the hours of ten and eleven-twenty
24782  on the night of March 30, 1894.
24783 \end_layout
24784
24785 \end_inset
24786
24787
24788 \end_layout
24789
24790 \begin_layout Plain Layout
24791
24792 \size footnotesize
24793 Ronald Adair was fond of cards–playing continually, but never for such stakes
24794  as would hurt him.
24795  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24796  It was shown that, after dinner on the day of his death, he had played
24797  a rubber of whist at the latter club.
24798  He had also played there in the afternoon.
24799
24800 \size default
24801  
24802 \size footnotesize
24803 The evidence of those who had played with him– Mr.
24804  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24805  and that there was a fairly equal fall of the cards.
24806  Adair might have lost five pounds, but not more.
24807  His fortune was a considerable one, and such a loss could not in any way
24808  affect him.
24809  He had played nearly every day at one club or other, but he was a cautious
24810  player, and usually rose a winner.
24811  It came out in evidence that, in partnership with Colonel Moran, he had
24812  actually won as much as four hundred and twenty pounds in a sitting, some
24813  weeks before, from Godfrey Milner and Lord Balmoral.
24814  So much for his recent history as it came out at the inquest.
24815 \end_layout
24816
24817 \end_inset
24818
24819
24820 \end_layout
24821
24822 \begin_layout Subsection
24823 Advanced Examples
24824 \end_layout
24825
24826 \begin_layout Standard
24827 The examples in this section show some more special features of multiple
24828  columns.
24829 \end_layout
24830
24831 \begin_layout Standard
24832 For more features of multiple columns, have a look at the documentation
24833  of the \SpecialChar LaTeX
24834 -package 
24835 \series bold
24836 multicol
24837 \series default
24838
24839 \begin_inset CommandInset citation
24840 LatexCommand cite
24841 key "multicol"
24842
24843 \end_inset
24844
24845 .
24846 \end_layout
24847
24848 \begin_layout Subsubsection
24849 Preface
24850 \end_layout
24851
24852 \begin_layout Standard
24853 To add a preface text for multiple columns, set the cursor into the multicolumn
24854  inset and use the menu 
24855 \family sans
24856 Insert\SpecialChar menuseparator
24857 Preface
24858 \family default
24859 .
24860  Write your preface text into that inset.
24861 \begin_inset Newline newline
24862 \end_inset
24863
24864 This is an example with some preface text:
24865 \end_layout
24866
24867 \begin_layout Standard
24868 \begin_inset VSpace bigskip
24869 \end_inset
24870
24871
24872 \end_layout
24873
24874 \begin_layout Standard
24875 \begin_inset Flex Multiple Columns
24876 status open
24877
24878 \begin_layout Plain Layout
24879 \begin_inset Argument 2
24880 status open
24881
24882 \begin_layout Plain Layout
24883 And the story continues and continues and continues and continues\SpecialChar ldots
24884
24885 \end_layout
24886
24887 \end_inset
24888
24889
24890 \size small
24891 On the evening of the crime, he returned from the club exactly at ten.
24892  His mother and sister were out spending the evening with a relation.
24893  The servant deposed that she heard him enter the front room on the second
24894  floor, generally used as his sitting-room.
24895  She had lit a fire there, and as it smoked she had opened the window.
24896  No sound was heard from the room until eleven-twenty, the hour of the return
24897  of Lady Maynooth and her daughter.
24898  Desiring to say good-night, she attempted to enter her son's room.
24899  The door was locked on the inside, and no answer could be got to their
24900  cries and knocking.
24901  Help was obtained, and the door forced.
24902  The unfortunate young man was found lying near the table.
24903  His head had been horribly mutilated by an expanding revolver bullet, but
24904  no weapon of any sort was to be found in the room.
24905 \end_layout
24906
24907 \end_inset
24908
24909
24910 \end_layout
24911
24912 \begin_layout Standard
24913 You can also use a section heading as the preface if you use a section command
24914  as \SpecialChar TeX
24915  Code.
24916  For example the command
24917 \end_layout
24918
24919 \begin_layout Standard
24920
24921 \series bold
24922
24923 \backslash
24924 subsection{subsection title}
24925 \end_layout
24926
24927 \begin_layout Standard
24928 creates a subsection.
24929  In this example the preface is a subsubsection:
24930 \end_layout
24931
24932 \begin_layout Standard
24933 \begin_inset Flex Multiple Columns
24934 status open
24935
24936 \begin_layout Plain Layout
24937 \begin_inset Argument 2
24938 status open
24939
24940 \begin_layout Plain Layout
24941 \begin_inset ERT
24942 status collapsed
24943
24944 \begin_layout Plain Layout
24945
24946
24947 \backslash
24948 subsubsection{
24949 \end_layout
24950
24951 \end_inset
24952
24953 This is a subsubsection heading as a preface
24954 \begin_inset ERT
24955 status collapsed
24956
24957 \begin_layout Plain Layout
24958
24959 }
24960 \end_layout
24961
24962 \end_inset
24963
24964
24965 \end_layout
24966
24967 \end_inset
24968
24969
24970 \size small
24971 A minute examination of the circumstances served only to make the case more
24972  complex.
24973  In the first place, no reason could be given why the young man should have
24974  fastened the door upon the inside.
24975  There was the possibility that the murderer had done this, and had afterwards
24976  escaped by the window.
24977  The drop was at least twenty feet, however, and a bed of crocuses in full
24978  bloom lay beneath.
24979  Neither the flowers nor the earth showed any sign of having been disturbed,
24980  nor were there any marks upon the narrow strip of grass which separated
24981  the house from the road.
24982  Apparently, therefore, it was the young man himself who had fastened the
24983  door.
24984  But how did he come by his death? No one could have climbed up to the window
24985  without leaving traces.
24986  Suppose a man had fired through the window, he would indeed be a remarkable
24987  shot who could with a revolver inflict so deadly a wound.
24988  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24989  a hundred yards of the house.
24990  No one had heard a shot.
24991 \end_layout
24992
24993 \end_inset
24994
24995
24996 \end_layout
24997
24998 \begin_layout Standard
24999 If there is less vertical space than 6
25000 \begin_inset space ~
25001 \end_inset
25002
25003 text lines is left on the page at the beginning of the multiple columns,
25004  a page break will be inserted before the multiple columns.
25005  Depending on the number of lines of the preface text, you might want to
25006  change this space.
25007  This is done by setting the cursor into the mulitcolumn inset behind the
25008  preface (if there is any) and using the menu 
25009 \family sans
25010 Insert\SpecialChar menuseparator
25011 Space
25012 \begin_inset space ~
25013 \end_inset
25014
25015 Before
25016 \begin_inset space ~
25017 \end_inset
25018
25019 Page
25020 \begin_inset space ~
25021 \end_inset
25022
25023 Break
25024 \family default
25025 .
25026  Insert into that inset the amount of space like e.
25027 \begin_inset space \thinspace{}
25028 \end_inset
25029
25030 g.
25031 \begin_inset space \space{}
25032 \end_inset
25033
25034
25035 \begin_inset Quotes eld
25036 \end_inset
25037
25038 5cm
25039 \begin_inset Quotes erd
25040 \end_inset
25041
25042 .
25043 \begin_inset Newline newline
25044 \end_inset
25045
25046 In this example the space is set to 7
25047 \begin_inset space ~
25048 \end_inset
25049
25050 text lines by using 
25051 \begin_inset Quotes eld
25052 \end_inset
25053
25054 7
25055 \backslash
25056 baselineskip
25057 \begin_inset Quotes erd
25058 \end_inset
25059
25060  (where the command 
25061 \series bold
25062
25063 \backslash
25064 baselineskip
25065 \series default
25066  needs to be inserted as \SpecialChar TeX
25067  code):
25068 \end_layout
25069
25070 \begin_layout Standard
25071 \begin_inset Flex Multiple Columns
25072 status open
25073
25074 \begin_layout Plain Layout
25075 \begin_inset Argument 3
25076 status open
25077
25078 \begin_layout Plain Layout
25079 7
25080 \begin_inset ERT
25081 status collapsed
25082
25083 \begin_layout Plain Layout
25084
25085
25086 \backslash
25087 baselineskip
25088 \end_layout
25089
25090 \end_inset
25091
25092
25093 \end_layout
25094
25095 \end_inset
25096
25097
25098 \size small
25099 On the evening of the crime, he returned from the club exactly at ten.
25100  His mother and sister were out spending the evening with a relation.
25101  The servant deposed that she heard him enter the front room on the second
25102  floor, generally used as his sitting-room.
25103  She had lit a fire there, and as it smoked she had opened the window.
25104  No sound was heard from the room until eleven-twenty, the hour of the return
25105  of Lady Maynooth and her daughter.
25106  Desiring to say good-night, she attempted to enter her son's room.
25107  The door was locked on the inside, and no answer could be got to their
25108  cries and knocking.
25109  Help was obtained, and the door forced.
25110  The unfortunate young man was found lying near the table.
25111  His head had been horribly mutilated by an expanding revolver bullet, but
25112  no weapon of any sort was to be found in the room.
25113 \end_layout
25114
25115 \end_inset
25116
25117
25118 \end_layout
25119
25120 \begin_layout Subsubsection
25121 Surrounding Space
25122 \end_layout
25123
25124 \begin_layout Standard
25125 The amount of space before and after multiple columns can be changed by
25126  changing the length 
25127 \series bold
25128
25129 \backslash
25130 multicolsep
25131 \series default
25132 .
25133  For example the command
25134 \end_layout
25135
25136 \begin_layout Standard
25137
25138 \series bold
25139
25140 \backslash
25141 setlength{
25142 \backslash
25143 multicolsep}{3cm}
25144 \end_layout
25145
25146 \begin_layout Standard
25147 in \SpecialChar TeX
25148  Code changes its value to 3
25149 \begin_inset space \thinspace{}
25150 \end_inset
25151
25152 cm.
25153  The change must be made before the multiple columns' start.
25154  The predefined value is 13
25155 \begin_inset space \thinspace{}
25156 \end_inset
25157
25158 pt.
25159 \end_layout
25160
25161 \begin_layout Standard
25162 For this example 
25163 \series bold
25164
25165 \backslash
25166 multicolsep
25167 \series default
25168  was set to 2.5
25169 \begin_inset space \thinspace{}
25170 \end_inset
25171
25172 cm:
25173 \end_layout
25174
25175 \begin_layout Standard
25176 \begin_inset ERT
25177 status open
25178
25179 \begin_layout Plain Layout
25180
25181
25182 \backslash
25183 setlength{
25184 \backslash
25185 multicolsep}{2.5cm}
25186 \end_layout
25187
25188 \end_inset
25189
25190
25191 \end_layout
25192
25193 \begin_layout Standard
25194 \begin_inset Flex Multiple Columns
25195 status open
25196
25197 \begin_layout Plain Layout
25198
25199 \size small
25200 All day I turned these facts over in my mind, endeavouring to hit upon some
25201  theory which could reconcile them all, and to find that line of least resistanc
25202 e which my poor friend had declared to be the starting-point of every investigat
25203 ion.
25204  I confess that I made little progress.
25205  In the evening I strolled across the Park, and found myself about six o'clock
25206  at the Oxford Street end of Park Lane.
25207  A group of loafers upon the pavements, all staring up at a particular window,
25208  directed me to the house which I had come to see.
25209  A tall, thin man with coloured glasses, whom I strongly suspected of being
25210  a plain-clothes detective, was pointing out some theory of his own, while
25211  the others crowded round to listen to what he said.
25212  I got as near him as I could, but his observations seemed to me to be absurd,
25213  so I withdrew again in some disgust.
25214  As I did so I struck against an elderly, deformed man, who had been behind
25215  me, and I knocked down several books which he was carrying.
25216 \end_layout
25217
25218 \end_inset
25219
25220
25221 \end_layout
25222
25223 \begin_layout Standard
25224 \begin_inset Note Greyedout
25225 status open
25226
25227 \begin_layout Plain Layout
25228
25229 \series bold
25230 Note:
25231 \series default
25232  The values you set with 
25233 \series bold
25234
25235 \backslash
25236 setlength
25237 \series default
25238  will be used for all following multiple columns until you change them again.
25239 \end_layout
25240
25241 \end_inset
25242
25243
25244 \end_layout
25245
25246 \begin_layout Standard
25247 \begin_inset ERT
25248 status collapsed
25249
25250 \begin_layout Plain Layout
25251
25252
25253 \backslash
25254 setlength{
25255 \backslash
25256 multicolsep}{13pt}
25257 \end_layout
25258
25259 \end_inset
25260
25261
25262 \begin_inset Note Note
25263 status collapsed
25264
25265 \begin_layout Plain Layout
25266 go back to the default
25267 \end_layout
25268
25269 \end_inset
25270
25271
25272 \end_layout
25273
25274 \begin_layout Standard
25275 \begin_inset Newpage newpage
25276 \end_inset
25277
25278
25279 \end_layout
25280
25281 \begin_layout Subsubsection
25282 Column Breaks
25283 \end_layout
25284
25285 \begin_layout Standard
25286 A column break can be forced by inserting the command 
25287 \series bold
25288
25289 \backslash
25290 columnbreak{}
25291 \series default
25292  as \SpecialChar TeX
25293
25294 \change_inserted -712698321 1437633561
25295  
25296 \change_deleted -712698321 1437633560
25297 -
25298 \change_unchanged
25299 Code to that position in the text where the column should be broken.
25300  Note that this leads in most cases to whitespace in the text.
25301 \begin_inset Newline newline
25302 \end_inset
25303
25304 Here is an example:
25305 \end_layout
25306
25307 \begin_layout Standard
25308 \begin_inset Flex Multiple Columns
25309 status open
25310
25311 \begin_layout Plain Layout
25312
25313 \size small
25314 \begin_inset Quotes eld
25315 \end_inset
25316
25317 You're surprised to see me, sir,
25318 \begin_inset Quotes erd
25319 \end_inset
25320
25321  said he, in a strange, croaking voice.
25322 \end_layout
25323
25324 \begin_layout Plain Layout
25325
25326 \size small
25327 I acknowledged that I was.
25328 \end_layout
25329
25330 \begin_layout Plain Layout
25331
25332 \size small
25333 \begin_inset Quotes eld
25334 \end_inset
25335
25336 Well, I've a conscience, sir, and when I chanced to see you go into this
25337  house, as I came hobbling after you, I thought to myself, I'll just step
25338  in and see that kind gentleman, and tell him that if I was a bit gruff
25339  in my manner there was not any harm meant, and that I am much obliged to
25340  him for picking up my books.
25341 \begin_inset Quotes erd
25342 \end_inset
25343
25344
25345 \end_layout
25346
25347 \begin_layout Plain Layout
25348
25349 \size small
25350 \begin_inset Quotes eld
25351 \end_inset
25352
25353 You make too much of a trifle,
25354 \begin_inset Quotes erd
25355 \end_inset
25356
25357  said I.
25358  
25359 \begin_inset Quotes eld
25360 \end_inset
25361
25362 May I ask how you knew who I was?
25363 \begin_inset Quotes erd
25364 \end_inset
25365
25366  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25367 \begin_inset ERT
25368 status collapsed
25369
25370 \begin_layout Plain Layout
25371
25372
25373 \backslash
25374 columnbreak{}
25375 \end_layout
25376
25377 \end_inset
25378
25379
25380 \end_layout
25381
25382 \begin_layout Plain Layout
25383
25384 \size small
25385 \begin_inset Quotes eld
25386 \end_inset
25387
25388 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25389  you'll find my little bookshop at the corner of Church Street, and very
25390  happy to see you, I am sure.
25391  Maybe you collect yourself, sir.
25392  Here's 
25393 \noun on
25394 British
25395 \begin_inset space ~
25396 \end_inset
25397
25398 Birds
25399 \noun default
25400 , and 
25401 \noun on
25402 Catullus
25403 \noun default
25404 , and 
25405 \noun on
25406 The Holy War
25407 \noun default
25408 –a bargain, every one of them.
25409  With five volumes you could just fill that gap on that second shelf.
25410  It looks untidy, does it not, sir?
25411 \begin_inset Quotes erd
25412 \end_inset
25413
25414
25415 \end_layout
25416
25417 \end_inset
25418
25419
25420 \end_layout
25421
25422 \begin_layout Subsubsection
25423 Column Separation
25424 \end_layout
25425
25426 \begin_layout Standard
25427 The width of the columns is automatically calculated, but you can modify
25428  the space between the columns.
25429  This is done by changing the length 
25430 \series bold
25431
25432 \backslash
25433 columnsep
25434 \series default
25435 .
25436  Its predefined value is 10
25437 \begin_inset space \thinspace{}
25438 \end_inset
25439
25440 pt.
25441  Here is an example where 
25442 \series bold
25443
25444 \backslash
25445 columnsep
25446 \series default
25447  is set to 3
25448 \begin_inset space \thinspace{}
25449 \end_inset
25450
25451 cm:
25452 \end_layout
25453
25454 \begin_layout Standard
25455 \begin_inset ERT
25456 status open
25457
25458 \begin_layout Plain Layout
25459
25460
25461 \backslash
25462 setlength{
25463 \backslash
25464 columnsep}{3cm}
25465 \end_layout
25466
25467 \end_inset
25468
25469
25470 \end_layout
25471
25472 \begin_layout Standard
25473 \begin_inset Flex Multiple Columns
25474 status open
25475
25476 \begin_layout Plain Layout
25477
25478 \size small
25479 My observations of No.
25480 \begin_inset space \space{}
25481 \end_inset
25482
25483 427 Park Lane did little to clear up the problem in which I was interested.
25484  The house was separated from the street by a low wall and railing, the
25485  whole not more than five feet high.
25486  It was perfectly easy, therefore, for anyone to get into the garden, but
25487  the window was entirely inaccessible, since there was no water pipe or
25488  anything which could help the most active man to climb it.
25489  More puzzled than ever, I retraced my steps to Kensington.
25490  I had not been in my study five minutes when the maid entered to say that
25491  a person desired to see me.
25492  To my astonishment it was none other than my strange old book collector,
25493  his sharp, wizened face peering out from a frame of white hair, and his
25494  precious volumes, a dozen of them at least, wedged under his right arm.
25495 \end_layout
25496
25497 \end_inset
25498
25499
25500 \end_layout
25501
25502 \begin_layout Standard
25503 \begin_inset ERT
25504 status collapsed
25505
25506 \begin_layout Plain Layout
25507
25508
25509 \backslash
25510 setlength{
25511 \backslash
25512 columnsep}{10pt}
25513 \end_layout
25514
25515 \end_inset
25516
25517
25518 \begin_inset Note Note
25519 status collapsed
25520
25521 \begin_layout Plain Layout
25522 go back to the default
25523 \end_layout
25524
25525 \end_inset
25526
25527
25528 \end_layout
25529
25530 \begin_layout Subsubsection
25531 Vertical Lines
25532 \end_layout
25533
25534 \begin_layout Standard
25535 Between the columns a rule with a width of the length 
25536 \series bold
25537
25538 \backslash
25539 columnseprule
25540 \series default
25541  is placed.
25542  If this rule width is set to 0
25543 \begin_inset space \thinspace{}
25544 \end_inset
25545
25546 pt (this is the default), the rule is suppressed.
25547  In the following example the rule is 2
25548 \begin_inset space \thinspace{}
25549 \end_inset
25550
25551 pt wide:
25552 \end_layout
25553
25554 \begin_layout Standard
25555 \begin_inset ERT
25556 status open
25557
25558 \begin_layout Plain Layout
25559
25560
25561 \backslash
25562 setlength{
25563 \backslash
25564 columnseprule}{2pt}
25565 \end_layout
25566
25567 \end_inset
25568
25569
25570 \end_layout
25571
25572 \begin_layout Standard
25573 \begin_inset Flex Multiple Columns
25574 status open
25575
25576 \begin_layout Plain Layout
25577
25578 \size small
25579 \begin_inset Quotes eld
25580 \end_inset
25581
25582 You're surprised to see me, sir,
25583 \begin_inset Quotes erd
25584 \end_inset
25585
25586  said he, in a strange, croaking voice.
25587 \end_layout
25588
25589 \begin_layout Plain Layout
25590
25591 \size small
25592 I acknowledged that I was.
25593 \end_layout
25594
25595 \begin_layout Plain Layout
25596
25597 \size small
25598 \begin_inset Quotes eld
25599 \end_inset
25600
25601 Well, I've a conscience, sir, and when I chanced to see you go into this
25602  house, as I came hobbling after you, I thought to myself, I'll just step
25603  in and see that kind gentleman, and tell him that if I was a bit gruff
25604  in my manner there was not any harm meant, and that I am much obliged to
25605  him for picking up my books.
25606 \begin_inset Quotes erd
25607 \end_inset
25608
25609
25610 \end_layout
25611
25612 \begin_layout Plain Layout
25613
25614 \size small
25615 \begin_inset Quotes eld
25616 \end_inset
25617
25618 You make too much of a trifle,
25619 \begin_inset Quotes erd
25620 \end_inset
25621
25622  said I.
25623  
25624 \begin_inset Quotes eld
25625 \end_inset
25626
25627 May I ask how you knew who I was?
25628 \begin_inset Quotes erd
25629 \end_inset
25630
25631
25632 \end_layout
25633
25634 \begin_layout Plain Layout
25635
25636 \size small
25637 \begin_inset Quotes eld
25638 \end_inset
25639
25640 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25641  you'll find my little bookshop at the corner of Church Street, and very
25642  happy to see you, I am sure.
25643  Maybe you collect yourself, sir.
25644  Here's 
25645 \noun on
25646 British
25647 \begin_inset space ~
25648 \end_inset
25649
25650 Birds
25651 \noun default
25652 , and 
25653 \noun on
25654 Catullus
25655 \noun default
25656 , and 
25657 \noun on
25658 The Holy War
25659 \noun default
25660 –a bargain, every one of them.
25661  With five volumes you could just fill that gap on that second shelf.
25662  It looks untidy, does it not, sir?
25663 \begin_inset Quotes erd
25664 \end_inset
25665
25666
25667 \end_layout
25668
25669 \end_inset
25670
25671
25672 \end_layout
25673
25674 \begin_layout Standard
25675 \begin_inset VSpace defskip
25676 \end_inset
25677
25678
25679 \end_layout
25680
25681 \begin_layout Standard
25682 The rule can be colored by redefining the command 
25683 \series bold
25684
25685 \backslash
25686 columnseprulecolor
25687 \series default
25688 .
25689  This is done by inserting the command
25690 \begin_inset Newline newline
25691 \end_inset
25692
25693
25694 \series bold
25695
25696 \backslash
25697 renewcommand{
25698 \backslash
25699 columnseprulecolor}{
25700 \backslash
25701 color{red}}
25702 \series default
25703
25704 \begin_inset Newline newline
25705 \end_inset
25706
25707 as \SpecialChar TeX
25708
25709 \change_inserted -712698321 1437633567
25710  
25711 \change_deleted -712698321 1437633567
25712 -
25713 \change_unchanged
25714 Code before the multicolumn inset.
25715  Replace 
25716 \series bold
25717 red
25718 \series default
25719  in this command by a color of your choice.
25720  You can use all pre- and self-defined colors.
25721  See the 
25722 \emph on
25723 EmbeddedObjects
25724 \emph default
25725  manual, section 
25726 \emph on
25727 Colored
25728 \begin_inset space ~
25729 \end_inset
25730
25731 Tables
25732 \emph default
25733  for more information about pre- and self-defined colors.
25734  To go back to the default color insert the command
25735 \begin_inset Newline newline
25736 \end_inset
25737
25738
25739 \series bold
25740
25741 \backslash
25742 renewcommand{
25743 \backslash
25744 columnseprulecolor}{
25745 \backslash
25746 normalcolor}
25747 \series default
25748
25749 \begin_inset Newline newline
25750 \end_inset
25751
25752 Here is the example with a cyan rule and 1
25753 \begin_inset space \thinspace{}
25754 \end_inset
25755
25756 cm column separation:
25757 \end_layout
25758
25759 \begin_layout Standard
25760 \begin_inset ERT
25761 status open
25762
25763 \begin_layout Plain Layout
25764
25765
25766 \backslash
25767 setlength{
25768 \backslash
25769 columnsep}{1cm}
25770 \end_layout
25771
25772 \begin_layout Plain Layout
25773
25774
25775 \backslash
25776 renewcommand{
25777 \backslash
25778 columnseprulecolor}{
25779 \backslash
25780 color{cyan}}
25781 \end_layout
25782
25783 \end_inset
25784
25785
25786 \end_layout
25787
25788 \begin_layout Standard
25789 \begin_inset Flex Multiple Columns
25790 status open
25791
25792 \begin_layout Plain Layout
25793
25794 \size small
25795 \begin_inset Quotes eld
25796 \end_inset
25797
25798 You're surprised to see me, sir,
25799 \begin_inset Quotes erd
25800 \end_inset
25801
25802  said he, in a strange, croaking voice.
25803 \end_layout
25804
25805 \begin_layout Plain Layout
25806
25807 \size small
25808 I acknowledged that I was.
25809 \end_layout
25810
25811 \begin_layout Plain Layout
25812
25813 \size small
25814 \begin_inset Quotes eld
25815 \end_inset
25816
25817 Well, I've a conscience, sir, and when I chanced to see you go into this
25818  house, as I came hobbling after you, I thought to myself, I'll just step
25819  in and see that kind gentleman, and tell him that if I was a bit gruff
25820  in my manner there was not any harm meant, and that I am much obliged to
25821  him for picking up my books.
25822 \begin_inset Quotes erd
25823 \end_inset
25824
25825
25826 \end_layout
25827
25828 \begin_layout Plain Layout
25829
25830 \size small
25831 \begin_inset Quotes eld
25832 \end_inset
25833
25834 You make too much of a trifle,
25835 \begin_inset Quotes erd
25836 \end_inset
25837
25838  said I.
25839  
25840 \begin_inset Quotes eld
25841 \end_inset
25842
25843 May I ask how you knew who I was?
25844 \begin_inset Quotes erd
25845 \end_inset
25846
25847
25848 \end_layout
25849
25850 \begin_layout Plain Layout
25851
25852 \size small
25853 \begin_inset Quotes eld
25854 \end_inset
25855
25856 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25857  you'll find my little bookshop at the corner of Church Street, and very
25858  happy to see you, I am sure.
25859  Maybe you collect yourself, sir.
25860  Here's 
25861 \noun on
25862 British
25863 \begin_inset space ~
25864 \end_inset
25865
25866 Birds
25867 \noun default
25868 , and 
25869 \noun on
25870 Catullus
25871 \noun default
25872 , and 
25873 \noun on
25874 The Holy War
25875 \noun default
25876 –a bargain, every one of them.
25877  With five volumes you could just fill that gap on that second shelf.
25878  It looks untidy, does it not, sir?
25879 \begin_inset Quotes erd
25880 \end_inset
25881
25882
25883 \end_layout
25884
25885 \end_inset
25886
25887
25888 \end_layout
25889
25890 \begin_layout Standard
25891 \begin_inset ERT
25892 status collapsed
25893
25894 \begin_layout Plain Layout
25895
25896
25897 \backslash
25898 setlength{
25899 \backslash
25900 columnseprule}{0pt}
25901 \end_layout
25902
25903 \begin_layout Plain Layout
25904
25905
25906 \backslash
25907 renewcommand{
25908 \backslash
25909 columnseprulecolor}{
25910 \backslash
25911 normalcolor}
25912 \end_layout
25913
25914 \end_inset
25915
25916
25917 \begin_inset Note Note
25918 status collapsed
25919
25920 \begin_layout Plain Layout
25921 go back to the default
25922 \end_layout
25923
25924 \end_inset
25925
25926
25927 \end_layout
25928
25929 \begin_layout Section
25930 Non-standard Paragraph Shapes
25931 \end_layout
25932
25933 \begin_layout Standard
25934 \noindent
25935 \SpecialChar LaTeX
25936  as well as any other text processor uses by default rectangular paragraphs.
25937  For special cases like for example posters, invitation cards or poems you
25938  can modify the paragraph shape to one of your choice.
25939  This can be done by using the \SpecialChar LaTeX
25940 -package 
25941 \series bold
25942 shapepar
25943 \series default
25944  which is loaded by using in the document settings the module 
25945 \family sans
25946 Custom paragraph shapes
25947 \family default
25948 .
25949 \end_layout
25950
25951 \begin_layout Subsection
25952 Predefined shapes
25953 \end_layout
25954
25955 \begin_layout Standard
25956
25957 \series bold
25958 shapepar
25959 \series default
25960  provides the following shapes:
25961 \end_layout
25962
25963 \begin_layout Standard
25964 \begin_inset Tabular
25965 <lyxtabular version="3" rows="13" columns="3">
25966 <features booktabs="true" islongtable="true" longtabularalignment="center">
25967 <column alignment="center" valignment="middle" width="16col%">
25968 <column alignment="center" valignment="middle" width="40col%">
25969 <column alignment="center" valignment="middle" width="35col%">
25970 <row endhead="true">
25971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25972 \begin_inset Text
25973
25974 \begin_layout Plain Layout
25975 Name
25976 \end_layout
25977
25978 \end_inset
25979 </cell>
25980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25981 \begin_inset Text
25982
25983 \begin_layout Plain Layout
25984 Description
25985 \end_layout
25986
25987 \end_inset
25988 </cell>
25989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25990 \begin_inset Text
25991
25992 \begin_layout Plain Layout
25993 Annotation
25994 \end_layout
25995
25996 \end_inset
25997 </cell>
25998 </row>
25999 <row>
26000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26001 \begin_inset Text
26002
26003 \begin_layout Plain Layout
26004 CDlabel
26005 \end_layout
26006
26007 \end_inset
26008 </cell>
26009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26010 \begin_inset Text
26011
26012 \begin_layout Plain Layout
26013 Circle with circular hole (in the size of a CD/DVD)
26014 \end_layout
26015
26016 \end_inset
26017 </cell>
26018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26019 \begin_inset Text
26020
26021 \begin_layout Plain Layout
26022 Cannot be scaled, take care there is not too much text
26023 \end_layout
26024
26025 \end_inset
26026 </cell>
26027 </row>
26028 <row>
26029 <cell alignment="center" valignment="top" topline="true" usebox="none">
26030 \begin_inset Text
26031
26032 \begin_layout Plain Layout
26033 Circle
26034 \end_layout
26035
26036 \end_inset
26037 </cell>
26038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26039 \begin_inset Text
26040
26041 \begin_layout Plain Layout
26042 Circle
26043 \end_layout
26044
26045 \end_inset
26046 </cell>
26047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26048 \begin_inset Text
26049
26050 \begin_layout Plain Layout
26051 Fragile, calculation might fail
26052 \end_layout
26053
26054 \end_inset
26055 </cell>
26056 </row>
26057 <row>
26058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26059 \begin_inset Text
26060
26061 \begin_layout Plain Layout
26062 Diamond
26063 \end_layout
26064
26065 \end_inset
26066 </cell>
26067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26068 \begin_inset Text
26069
26070 \begin_layout Plain Layout
26071 Rhomboid (symbolizing a 
26072 \begin_inset Quotes eld
26073 \end_inset
26074
26075 diamond
26076 \begin_inset Quotes erd
26077 \end_inset
26078
26079 )
26080 \end_layout
26081
26082 \end_inset
26083 </cell>
26084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26085 \begin_inset Text
26086
26087 \begin_layout Plain Layout
26088 -
26089 \end_layout
26090
26091 \end_inset
26092 </cell>
26093 </row>
26094 <row>
26095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26096 \begin_inset Text
26097
26098 \begin_layout Plain Layout
26099 Heart
26100 \end_layout
26101
26102 \end_inset
26103 </cell>
26104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26105 \begin_inset Text
26106
26107 \begin_layout Plain Layout
26108 Heart-like shape
26109 \end_layout
26110
26111 \end_inset
26112 </cell>
26113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26114 \begin_inset Text
26115
26116 \begin_layout Plain Layout
26117 -
26118 \end_layout
26119
26120 \end_inset
26121 </cell>
26122 </row>
26123 <row>
26124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26125 \begin_inset Text
26126
26127 \begin_layout Plain Layout
26128 Hexagon
26129 \end_layout
26130
26131 \end_inset
26132 </cell>
26133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26134 \begin_inset Text
26135
26136 \begin_layout Plain Layout
26137 Hexagon
26138 \end_layout
26139
26140 \end_inset
26141 </cell>
26142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26143 \begin_inset Text
26144
26145 \begin_layout Plain Layout
26146 -
26147 \end_layout
26148
26149 \end_inset
26150 </cell>
26151 </row>
26152 <row>
26153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26154 \begin_inset Text
26155
26156 \begin_layout Plain Layout
26157 Nut
26158 \end_layout
26159
26160 \end_inset
26161 </cell>
26162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26163 \begin_inset Text
26164
26165 \begin_layout Plain Layout
26166 Nut for bolt (hexagon with circular hole)
26167 \end_layout
26168
26169 \end_inset
26170 </cell>
26171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26172 \begin_inset Text
26173
26174 \begin_layout Plain Layout
26175 -
26176 \end_layout
26177
26178 \end_inset
26179 </cell>
26180 </row>
26181 <row>
26182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26183 \begin_inset Text
26184
26185 \begin_layout Plain Layout
26186 Square
26187 \end_layout
26188
26189 \end_inset
26190 </cell>
26191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26192 \begin_inset Text
26193
26194 \begin_layout Plain Layout
26195 Square
26196 \end_layout
26197
26198 \end_inset
26199 </cell>
26200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26201 \begin_inset Text
26202
26203 \begin_layout Plain Layout
26204 -
26205 \end_layout
26206
26207 \end_inset
26208 </cell>
26209 </row>
26210 <row>
26211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26212 \begin_inset Text
26213
26214 \begin_layout Plain Layout
26215 Star
26216 \end_layout
26217
26218 \end_inset
26219 </cell>
26220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26221 \begin_inset Text
26222
26223 \begin_layout Plain Layout
26224 Five-point star
26225 \end_layout
26226
26227 \end_inset
26228 </cell>
26229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26230 \begin_inset Text
26231
26232 \begin_layout Plain Layout
26233 -
26234 \end_layout
26235
26236 \end_inset
26237 </cell>
26238 </row>
26239 <row>
26240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26241 \begin_inset Text
26242
26243 \begin_layout Plain Layout
26244 Candle
26245 \end_layout
26246
26247 \end_inset
26248 </cell>
26249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26250 \begin_inset Text
26251
26252 \begin_layout Plain Layout
26253 Burning candle
26254 \end_layout
26255
26256 \end_inset
26257 </cell>
26258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26259 \begin_inset Text
26260
26261 \begin_layout Plain Layout
26262 -
26263 \end_layout
26264
26265 \end_inset
26266 </cell>
26267 </row>
26268 <row>
26269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26270 \begin_inset Text
26271
26272 \begin_layout Plain Layout
26273 Drop down/up
26274 \end_layout
26275
26276 \end_inset
26277 </cell>
26278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26279 \begin_inset Text
26280
26281 \begin_layout Plain Layout
26282 Normal/reversed rain drop
26283 \end_layout
26284
26285 \end_inset
26286 </cell>
26287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26288 \begin_inset Text
26289
26290 \begin_layout Plain Layout
26291 Fragile, calculation might fail
26292 \end_layout
26293
26294 \end_inset
26295 </cell>
26296 </row>
26297 <row>
26298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26299 \begin_inset Text
26300
26301 \begin_layout Plain Layout
26302 \SpecialChar TeX
26303
26304 \end_layout
26305
26306 \end_inset
26307 </cell>
26308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26309 \begin_inset Text
26310
26311 \begin_layout Plain Layout
26312 The \SpecialChar TeX
26313  logo
26314 \end_layout
26315
26316 \end_inset
26317 </cell>
26318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26319 \begin_inset Text
26320
26321 \begin_layout Plain Layout
26322 -
26323 \end_layout
26324
26325 \end_inset
26326 </cell>
26327 </row>
26328 <row>
26329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26330 \begin_inset Text
26331
26332 \begin_layout Plain Layout
26333 Triangle up/down/
26334 \begin_inset Newline newline
26335 \end_inset
26336
26337 left/right
26338 \end_layout
26339
26340 \end_inset
26341 </cell>
26342 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26343 \begin_inset Text
26344
26345 \begin_layout Plain Layout
26346 Triangles in different orientations
26347 \end_layout
26348
26349 \end_inset
26350 </cell>
26351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26352 \begin_inset Text
26353
26354 \begin_layout Plain Layout
26355 -
26356 \end_layout
26357
26358 \end_inset
26359 </cell>
26360 </row>
26361 </lyxtabular>
26362
26363 \end_inset
26364
26365
26366 \end_layout
26367
26368 \begin_layout Standard
26369 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26370 's pull-down box
26371  for environments in the toolbar.
26372 \end_layout
26373
26374 \begin_layout Standard
26375 \begin_inset Newpage newpage
26376 \end_inset
26377
26378
26379 \end_layout
26380
26381 \begin_layout Standard
26382 Here is an example paragraph in the shape of a nut:
26383 \end_layout
26384
26385 \begin_layout Standard
26386 \begin_inset VSpace bigskip
26387 \end_inset
26388
26389
26390 \end_layout
26391
26392 \begin_layout Nut
26393
26394 \lang latin
26395 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26396  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26397  voluptua.
26398  At vero eos et accusam et justo duo dolores et ea rebum.
26399  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26400  sit amet.
26401  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26402  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26403  voluptua.
26404 \end_layout
26405
26406 \begin_layout Standard
26407 \begin_inset VSpace bigskip
26408 \end_inset
26409
26410
26411 \end_layout
26412
26413 \begin_layout Standard
26414 \begin_inset Note Greyedout
26415 status open
26416
26417 \begin_layout Plain Layout
26418
26419 \series bold
26420 Note
26421 \series default
26422 : shapepar paragraphs cannot run over a page break.
26423 \end_layout
26424
26425 \end_inset
26426
26427
26428 \end_layout
26429
26430 \begin_layout Standard
26431 \begin_inset VSpace bigskip
26432 \end_inset
26433
26434
26435 \end_layout
26436
26437 \begin_layout Standard
26438
26439 \series bold
26440 shapepar
26441 \series default
26442  takes care that the shape will always be preserved, no matter how much
26443  text is in the paragraph.
26444  Therefore the paragraph size changes with the amount of contained text.
26445  This can lead to paragraph sizes exceeding the page margins.
26446  To demonstrate the size scaling, here is the same example paragraph but
26447  with twice as much text:
26448 \end_layout
26449
26450 \begin_layout Standard
26451 \begin_inset Newpage newpage
26452 \end_inset
26453
26454
26455 \end_layout
26456
26457 \begin_layout Nut
26458
26459 \lang latin
26460 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26461  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26462  voluptua.
26463  At vero eos et accusam et justo duo dolores et ea rebum.
26464  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26465  sit amet.
26466  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26467  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26468  voluptua.
26469  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26470  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26471  voluptua.
26472  At vero eos et accusam et justo duo dolores et ea rebum.
26473  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26474  sit amet.
26475  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26476  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26477  voluptua.
26478 \end_layout
26479
26480 \begin_layout Standard
26481 \begin_inset VSpace bigskip
26482 \end_inset
26483
26484
26485 \end_layout
26486
26487 \begin_layout Standard
26488 An exception is the shape 
26489 \family sans
26490 CDlabel
26491 \family default
26492 .
26493  It cannot be scaled because it must fit the size of a CD/DVD.
26494  Therefore the amount of text that fits into the shape is limited.
26495 \begin_inset Newline newline
26496 \end_inset
26497
26498 The 
26499 \family sans
26500 drop
26501 \family default
26502  shapes and the 
26503 \family sans
26504 circle
26505 \family default
26506  shape are fragile, meaning that the calculation of their size can fail,
26507  depending on the amount of text.
26508  You will then get the \SpecialChar LaTeX
26509  error 
26510 \begin_inset Quotes eld
26511 \end_inset
26512
26513 Arithmetic overflow
26514 \begin_inset Quotes erd
26515 \end_inset
26516
26517 .
26518  In this case one can try to remove or add some text; if nothing works one
26519  has to use another shape.
26520 \end_layout
26521
26522 \begin_layout Standard
26523 \begin_inset VSpace bigskip
26524 \end_inset
26525
26526
26527 \end_layout
26528
26529 \begin_layout Standard
26530 For shapes with tips you will maybe see that \SpecialChar LaTeX
26531 's hyphenation routine fails
26532  for text in the tips.
26533  Therefore it is often necessary to add hyphenation points 
26534 \family sans
26535 (
26536 \begin_inset Info
26537 type  "shortcut"
26538 arg   "specialchar-insert hyphenation"
26539 \end_inset
26540
26541
26542 \family default
26543 ) to the corresponding text parts.
26544 \end_layout
26545
26546 \begin_layout Standard
26547 \begin_inset VSpace bigskip
26548 \end_inset
26549
26550
26551 \end_layout
26552
26553 \begin_layout Standard
26554 Shapepar paragraphs are either always centered or placed on the page so
26555  that their left border touches the left page margin.
26556  You can therefore not use the paragraph dialog to align such paragraphs.
26557  A solution is to put the paragraph into a minipage or parbox and align
26558  the box.
26559  The problem is hereby to find the right width for the box.
26560  Because if it is too wide and you center the box, the paragraph is not
26561  centered too because it sticks at the left side of the box.
26562  So you might have to play a bit with the width until it fits.
26563  Here are two heart-shaped paragraphs, the first one is not aligned, the
26564  second one is right-aligned:
26565 \end_layout
26566
26567 \begin_layout Standard
26568 \begin_inset Newpage newpage
26569 \end_inset
26570
26571
26572 \end_layout
26573
26574 \begin_layout Heart
26575 \noindent
26576
26577 \lang latin
26578 Lo\SpecialChar softhyphen
26579 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26580  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26581  voluptua.
26582  At vero eos et accusam et justo duo dolores et ea rebum.
26583  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26584  sit amet.
26585 \end_layout
26586
26587 \begin_layout Standard
26588 \begin_inset VSpace bigskip
26589 \end_inset
26590
26591
26592 \end_layout
26593
26594 \begin_layout Standard
26595 \noindent
26596 \align right
26597 \begin_inset Box Frameless
26598 position "t"
26599 hor_pos "c"
26600 has_inner_box 1
26601 inner_pos "t"
26602 use_parbox 1
26603 use_makebox 0
26604 width "42col%"
26605 special "none"
26606 height "1in"
26607 height_special "totalheight"
26608 thickness "0.4pt"
26609 separation "3pt"
26610 shadowsize "4pt"
26611 framecolor "black"
26612 backgroundcolor "none"
26613 status open
26614
26615 \begin_layout Heart
26616 \noindent
26617
26618 \lang latin
26619 Lo\SpecialChar softhyphen
26620 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26621  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26622  voluptua.
26623  At vero eos et accusam et justo duo dolores et ea rebum.
26624  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26625  sit amet.
26626 \end_layout
26627
26628 \end_inset
26629
26630
26631 \end_layout
26632
26633 \begin_layout Subsection
26634 Custom shapes
26635 \end_layout
26636
26637 \begin_layout Standard
26638 You can define any shape you want.
26639  Doing this manually is a lot of work because every coordinate must be specified.
26640  But there is a way to let the computer calculate the coordinates:
26641 \end_layout
26642
26643 \begin_layout Enumerate
26644 Install the program 
26645 \begin_inset CommandInset href
26646 LatexCommand href
26647 name "Jpgfdraw"
26648 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26649
26650 \end_inset
26651
26652 .
26653 \end_layout
26654
26655 \begin_layout Enumerate
26656 In 
26657 \family sans
26658 Jpgfdraw
26659 \family default
26660  go to the menu 
26661 \change_deleted -712698321 1437633577
26662
26663 \family sans
26664 Te
26665 \begin_inset ERT
26666 status collapsed
26667
26668 \begin_layout Plain Layout
26669
26670 {}
26671 \end_layout
26672
26673 \end_inset
26674
26675 X
26676 \change_inserted -712698321 1437633577
26677 TeX
26678 \change_unchanged
26679 /La
26680 \change_deleted -712698321 1437633578
26681 T
26682 \begin_inset ERT
26683 status collapsed
26684
26685 \begin_layout Plain Layout
26686
26687 {}
26688 \end_layout
26689
26690 \end_inset
26691
26692 eX
26693 \change_inserted -712698321 1437633578
26694 TeX
26695 \change_unchanged
26696 \SpecialChar menuseparator
26697 Settings\SpecialChar menuseparator
26698 Set Normal Size
26699 \family default
26700  and select the font size you are using in your document.
26701  For example this document uses the size 12
26702 \begin_inset space \thinspace{}
26703 \end_inset
26704
26705 pt.
26706 \end_layout
26707
26708 \begin_layout Enumerate
26709 Draw a shape.
26710 \end_layout
26711
26712 \begin_layout Enumerate
26713 Use the menu 
26714 \change_deleted -712698321 1437633580
26715
26716 \family sans
26717 Te
26718 \begin_inset ERT
26719 status collapsed
26720
26721 \begin_layout Plain Layout
26722
26723 {}
26724 \end_layout
26725
26726 \end_inset
26727
26728 X
26729 \change_inserted -712698321 1437633580
26730 TeX
26731 \change_unchanged
26732 /La
26733 \change_deleted -712698321 1437633581
26734 T
26735 \begin_inset ERT
26736 status collapsed
26737
26738 \begin_layout Plain Layout
26739
26740 {}
26741 \end_layout
26742
26743 \end_inset
26744
26745 eX
26746 \change_inserted -712698321 1437633581
26747 TeX
26748 \change_unchanged
26749 \SpecialChar menuseparator
26750 Shapepar
26751 \family default
26752  to export the shape to coordinates.
26753  In the appearing dialog use either the outline of your shape for the coordinate
26754 s or the path itself.
26755 \begin_inset Foot
26756 status collapsed
26757
26758 \begin_layout Plain Layout
26759 For more information see 
26760 \begin_inset CommandInset href
26761 LatexCommand href
26762 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26763
26764 \end_inset
26765
26766
26767 \end_layout
26768
26769 \end_inset
26770
26771
26772 \end_layout
26773
26774 \begin_layout Standard
26775 The coordinates are written into a \SpecialChar TeX
26776
26777 \change_inserted -712698321 1437633584
26778  
26779 \change_deleted -712698321 1437633584
26780 -
26781 \change_unchanged
26782 file.
26783  To use it for your \SpecialChar LyX
26784  document
26785 \end_layout
26786
26787 \begin_layout Enumerate
26788 Place the cursor before the first character of your paragraph (or into a
26789  new empty one).
26790 \end_layout
26791
26792 \begin_layout Enumerate
26793 Open in \SpecialChar LyX
26794  the menu 
26795 \family sans
26796 Insert\SpecialChar menuseparator
26797 File\SpecialChar menuseparator
26798 Child
26799 \begin_inset space ~
26800 \end_inset
26801
26802 Document
26803 \family default
26804 , select the file and use 
26805 \family sans
26806 Input
26807 \family default
26808  as 
26809 \family sans
26810 Include Type.
26811 \end_layout
26812
26813 \begin_layout Standard
26814 \begin_inset VSpace defskip
26815 \end_inset
26816
26817
26818 \end_layout
26819
26820 \begin_layout Standard
26821 \begin_inset Note Greyedout
26822 status open
26823
26824 \begin_layout Plain Layout
26825
26826 \series bold
26827 Note
26828 \series default
26829 : The changed shape only applies to the current paragraph; everything is
26830  reset to normal for the next paragraph.
26831  Therefore the shape definition file must be input into every paragraph
26832  with the desired shape.
26833 \end_layout
26834
26835 \end_inset
26836
26837
26838 \end_layout
26839
26840 \begin_layout Standard
26841 \begin_inset VSpace bigskip
26842 \end_inset
26843
26844
26845 \end_layout
26846
26847 \begin_layout Standard
26848 Here is an example:
26849 \end_layout
26850
26851 \begin_layout Standard
26852 \begin_inset VSpace bigskip
26853 \end_inset
26854
26855
26856 \end_layout
26857
26858 \begin_layout Standard
26859 \begin_inset CommandInset include
26860 LatexCommand input
26861 filename "SpecialParagraphShape.tex"
26862
26863 \end_inset
26864
26865
26866 \lang latin
26867 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26868  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26869  voluptua.
26870  At vero eos et accusam et justo duo dolores et ea rebum.
26871  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26872  sit amet.
26873  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26874  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26875  voluptua.
26876 \end_layout
26877
26878 \begin_layout Standard
26879 \begin_inset VSpace bigskip
26880 \end_inset
26881
26882
26883 \end_layout
26884
26885 \begin_layout Standard
26886
26887 \series bold
26888 A tip:
26889 \series default
26890  to draw complexer shapes in 
26891 \family sans
26892 Jpgfdraw
26893 \family default
26894  you can draw the shape in a program of your choice and import the resulting
26895  image to 
26896 \family sans
26897 Jpgfdraw
26898 \family default
26899 .
26900  Then you only need to draw a line or spline along the outline of the image.
26901 \end_layout
26902
26903 \begin_layout Standard
26904 \begin_inset VSpace bigskip
26905 \end_inset
26906
26907
26908 \end_layout
26909
26910 \begin_layout Standard
26911 The module 
26912 \family sans
26913 Custom paragraph shapes
26914 \family default
26915  also provides the two commands 
26916 \family sans
26917 shapepar
26918 \family default
26919  and 
26920 \family sans
26921 Shapepar
26922 \family default
26923  which can be used to define custom shapes coordinate by coordinate.
26924 \begin_inset Foot
26925 status collapsed
26926
26927 \begin_layout Plain Layout
26928 These commands are internally used for all shapes described here.
26929 \end_layout
26930
26931 \end_inset
26932
26933  For information how these styles are used and about further customization
26934  possibilities, have a look at the documentation of the package 
26935 \series bold
26936 shapepar
26937 \series default
26938
26939 \begin_inset CommandInset citation
26940 LatexCommand cite
26941 key "shapepar"
26942
26943 \end_inset
26944
26945 .
26946 \end_layout
26947
26948 \begin_layout Bibliography
26949 \begin_inset CommandInset bibitem
26950 LatexCommand bibitem
26951 key "multicol"
26952
26953 \end_inset
26954
26955 Documentation of the \SpecialChar LaTeX
26956 -package 
26957 \begin_inset CommandInset href
26958 LatexCommand href
26959 name "multicol"
26960 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26961
26962 \end_inset
26963
26964
26965 \end_layout
26966
26967 \begin_layout Bibliography
26968 \begin_inset CommandInset bibitem
26969 LatexCommand bibitem
26970 key "shapepar"
26971
26972 \end_inset
26973
26974 Documentation of the \SpecialChar LaTeX
26975 -package 
26976 \begin_inset CommandInset href
26977 LatexCommand href
26978 name "shapepar"
26979 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
26980
26981 \end_inset
26982
26983
26984 \end_layout
26985
26986 \end_body
26987 \end_document