]> git.lyx.org Git - features.git/blob - lib/doc/Additional.lyx
Remove a duplicate URL in Additional.lyx
[features.git] / lib / doc / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 503
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 274215730 "scott"
143 \author 711066561 "Enrico Forestieri"
144 \end_header
145
146 \begin_body
147
148 \begin_layout Title
149 Additional \SpecialChar LyX
150  Features
151 \end_layout
152
153 \begin_layout Subtitle
154 Version 2.1.x
155 \end_layout
156
157 \begin_layout Author
158 by the \SpecialChar LyX
159  Team
160 \begin_inset Foot
161 status collapsed
162
163 \begin_layout Plain Layout
164 \noindent
165 Principal maintainer of this file is
166 \noun on
167  Richard Heck
168 \noun default
169 .
170  If you have comments or error corrections, please send them to the \SpecialChar LyX
171  Documentati
172 on mailing list, 
173 \begin_inset Flex Code
174 status collapsed
175
176 \begin_layout Plain Layout
177 \noindent
178 <lyx-docs@lists.lyx.org>
179 \end_layout
180
181 \end_inset
182
183 .
184 \end_layout
185
186 \end_inset
187
188
189 \end_layout
190
191 \begin_layout Standard
192 \begin_inset CommandInset toc
193 LatexCommand tableofcontents
194
195 \end_inset
196
197
198 \end_layout
199
200 \begin_layout Chapter
201 Introduction
202 \end_layout
203
204 \begin_layout Standard
205 This manual is essentially Part II of the 
206 \emph on
207 User's Guide\SpecialChar endofsentence
208
209 \emph default
210  The reason for separating the two documents is simple: the 
211 \emph on
212 User's Guide
213 \emph default
214  is already quite lengthy, and it contains information on all of the basic
215  features one needs to know in order to prepare most documents.
216  However, the \SpecialChar LyX
217  Team has worked to make \SpecialChar LyX
218  extensible through various configuration
219  files and external packages.
220  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
221  package, you can
222  create a layout file (or module) for it without having to alter \SpecialChar LyX
223  itself.
224  We've already had contributions of several new features this way, and some
225  of them are documented here.
226  There are also some more `advanced' features, such as how to control the
227  presentation of bibliographies and how to work with multi-part documents,
228  that are not covered in the 
229 \emph on
230 User's Guide
231 \emph default
232  and are discussed here.
233 \end_layout
234
235 \begin_layout Standard
236 This manual also documents some special features, like fax support, version
237  control, and SGML support, which require additional software to work properly.
238  There is also a chapter on \SpecialChar LyX
239 's support for HTML.
240  And lastly, there's a chapter of \SpecialChar LaTeX
241  tools and tips, things you can use to
242  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
243 .
244  After all, \SpecialChar LyX
245  
246 \emph on
247 is
248 \emph default
249  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
250  features.
251 \end_layout
252
253 \begin_layout Standard
254 If you haven't read the 
255 \emph on
256 Introduction
257 \emph default
258  yet, you are definitely in the wrong manual.
259  The 
260 \emph on
261 Introduction
262 \emph default
263  is the first place to go, since it describes the notation and format of
264  all of the manuals.
265  You should also be thoroughly familiar with the 
266 \emph on
267 User's Guide
268 \emph default
269  and all of the basic features of \SpecialChar LyX
270  before attempting to read this one.
271 \end_layout
272
273 \begin_layout Standard
274 Since many of the topics in this manual depend heavily on \SpecialChar LyX
275 's interaction
276  with \SpecialChar LaTeX
277 , this first chapter covers the inner workings of \SpecialChar LyX
278  and how to direct
279  \SpecialChar LyX
280  to generate exactly the \SpecialChar LaTeX
281  code you want.
282  It is obviously for more seasoned \SpecialChar LyX
283  users.
284 \end_layout
285
286 \begin_layout Chapter
287 \SpecialChar LyX
288  and \SpecialChar LaTeX
289
290 \end_layout
291
292 \begin_layout Section
293 How \SpecialChar LyX
294  Uses \SpecialChar LaTeX
295
296 \end_layout
297
298 \begin_layout Standard
299 This chapter is for both \SpecialChar TeX
300 -nicians and the \SpecialChar LaTeX
301 -curious.
302  In it, we'll explain how \SpecialChar LyX
303  and \SpecialChar LaTeX
304  work together to produce printable output.
305  This is the only place in any of the manuals where we assume you know something
306  about \SpecialChar LaTeX
307 .
308 \end_layout
309
310 \begin_layout Standard
311 At one time, \SpecialChar LyX
312  was called a 
313 \begin_inset Quotes eld
314 \end_inset
315
316 WYSIWYM frontend to \SpecialChar LaTeX
317 ,
318 \begin_inset Quotes erd
319 \end_inset
320
321  but that's no longer true.
322  There are frontends to \SpecialChar LaTeX
323  out there.
324 \begin_inset Foot
325 status collapsed
326
327 \begin_layout Plain Layout
328 Some familar ones are \SpecialChar TeX
329 maker and kile, on Linux, and \SpecialChar TeX
330 shop, OSX.
331  There are also the \SpecialChar LaTeX
332  modes for vi and emacs, of course.
333 \end_layout
334
335 \end_inset
336
337  These are basically text editors with the ability to run \SpecialChar LaTeX
338  and mark any
339  errors in the file you're editing.
340  Although \SpecialChar LyX
341  
342 \emph on
343 is
344 \emph default
345  an editor, and it 
346 \emph on
347 does
348 \emph default
349  run \SpecialChar LaTeX
350 , and it also indicates errors in the file, it also does much, much
351  more.
352  For one thing, you don't need to know \SpecialChar LaTeX
353  to use \SpecialChar LyX
354  effectively.
355  And \SpecialChar LyX
356  has added its own extensions to \SpecialChar LaTeX
357 .
358  Try the following sometime: select 
359 \begin_inset Flex MenuItem
360 status collapsed
361
362 \begin_layout Plain Layout
363 Export\SpecialChar menuseparator
364 \SpecialChar LaTeX
365
366 \end_layout
367
368 \end_inset
369
370  from the 
371 \begin_inset Flex MenuItem
372 status collapsed
373
374 \begin_layout Plain Layout
375 File
376 \end_layout
377
378 \end_inset
379
380  menu (or 
381 \begin_inset Flex MenuItem
382 status collapsed
383
384 \begin_layout Plain Layout
385 View\SpecialChar menuseparator
386 Source
387 \begin_inset space ~
388 \end_inset
389
390 Pane
391 \end_layout
392
393 \end_inset
394
395 ), then look at the preamble of the resulting 
396 \begin_inset Flex Code
397 status collapsed
398
399 \begin_layout Plain Layout
400 .tex
401 \end_layout
402
403 \end_inset
404
405  file.
406  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
407 .
408  These macros are defined automatically, according to the features you use
409  in the document.
410 \end_layout
411
412 \begin_layout Standard
413 There are several commands that automatically invoke \SpecialChar LaTeX
414 .
415  They are:
416 \end_layout
417
418 \begin_layout Itemize
419 \begin_inset Flex MenuItem
420 status collapsed
421
422 \begin_layout Plain Layout
423 Document\SpecialChar menuseparator
424 View
425 \end_layout
426
427 \end_inset
428
429
430 \end_layout
431
432 \begin_layout Itemize
433 \begin_inset Flex MenuItem
434 status collapsed
435
436 \begin_layout Plain Layout
437 Document\SpecialChar menuseparator
438 Update
439 \end_layout
440
441 \end_inset
442
443
444 \end_layout
445
446 \begin_layout Itemize
447 \begin_inset Flex MenuItem
448 status collapsed
449
450 \begin_layout Plain Layout
451 File\SpecialChar menuseparator
452 Print
453 \end_layout
454
455 \end_inset
456
457
458 \end_layout
459
460 \begin_layout Itemize
461 \begin_inset Flex MenuItem
462 status collapsed
463
464 \begin_layout Plain Layout
465 File\SpecialChar menuseparator
466 Fax
467 \end_layout
468
469 \end_inset
470
471
472 \end_layout
473
474 \begin_layout Standard
475 They will only invoke \SpecialChar LaTeX
476  if the file has changed since the last time \SpecialChar LaTeX
477  was
478  run.
479  
480 \end_layout
481
482 \begin_layout Standard
483 When \SpecialChar LyX
484  runs \SpecialChar LaTeX
485  on the file you're editing, it performs these steps:
486 \end_layout
487
488 \begin_layout Enumerate
489 Convert the document to \SpecialChar LaTeX
490  and save to a file with the extension 
491 \begin_inset Flex Code
492 status collapsed
493
494 \begin_layout Plain Layout
495 .tex
496 \end_layout
497
498 \end_inset
499
500  in place of 
501 \begin_inset Flex Code
502 status collapsed
503
504 \begin_layout Plain Layout
505 .lyx
506 \end_layout
507
508 \end_inset
509
510 .
511 \end_layout
512
513 \begin_layout Enumerate
514 Run \SpecialChar LaTeX
515  on the 
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 .tex
521 \end_layout
522
523 \end_inset
524
525  file (maybe several times), and run any other commands (such as 
526 \begin_inset Flex Code
527 status collapsed
528
529 \begin_layout Plain Layout
530 bibtex
531 \end_layout
532
533 \end_inset
534
535  or 
536 \begin_inset Flex Code
537 status collapsed
538
539 \begin_layout Plain Layout
540 makeindex
541 \end_layout
542
543 \end_inset
544
545 ) needed to compile the \SpecialChar LaTeX
546  file.
547 \end_layout
548
549 \begin_layout Enumerate
550 If there are any errors, show the error log.
551 \end_layout
552
553 \begin_layout Standard
554 If you have run \SpecialChar LaTeX
555  using 
556 \begin_inset Flex MenuItem
557 status collapsed
558
559 \begin_layout Plain Layout
560 View
561 \bar under
562 \SpecialChar menuseparator
563
564 \bar default
565 DVI
566 \end_layout
567
568 \end_inset
569
570 , \SpecialChar LyX
571  then runs a DVI viewer to display the DVI-file.
572  If you have used 
573 \begin_inset Flex MenuItem
574 status collapsed
575
576 \begin_layout Plain Layout
577 View
578 \bar under
579 \SpecialChar menuseparator
580
581 \bar default
582 PostScript
583 \end_layout
584
585 \end_inset
586
587 , \SpecialChar LyX
588  performs further steps:
589 \end_layout
590
591 \begin_layout Itemize
592 Run 
593 \begin_inset Flex Code
594 status collapsed
595
596 \begin_layout Plain Layout
597 dvips
598 \end_layout
599
600 \end_inset
601
602  to convert the DVI file to PostScript.
603 \end_layout
604
605 \begin_layout Itemize
606 Run a PostScript viewer, such as 
607 \begin_inset Flex Code
608 status collapsed
609
610 \begin_layout Plain Layout
611 ghostview
612 \end_layout
613
614 \end_inset
615
616 , to display the PostScript file.
617 \end_layout
618
619 \begin_layout Standard
620 \SpecialChar LyX
621  does similar things when viewing, or exporting, other formats.
622 \end_layout
623
624 \begin_layout Section
625 Translating \SpecialChar LaTeX
626  files into \SpecialChar LyX
627
628 \end_layout
629
630 \begin_layout Standard
631 You can import a \SpecialChar LaTeX
632  file into \SpecialChar LyX
633  by using the 
634 \begin_inset Flex MenuItem
635 status collapsed
636
637 \begin_layout Plain Layout
638 File\SpecialChar menuseparator
639 Import\SpecialChar menuseparator
640 \SpecialChar LaTeX
641
642 \end_layout
643
644 \end_inset
645
646  command in \SpecialChar LyX
647 .
648  This will call a program named 
649 \begin_inset Flex Code
650 status collapsed
651
652 \begin_layout Plain Layout
653 tex2lyx
654 \end_layout
655
656 \end_inset
657
658  which will create a file 
659 \begin_inset Flex Code
660 status collapsed
661
662 \begin_layout Plain Layout
663 foo.lyx
664 \end_layout
665
666 \end_inset
667
668  from the file 
669 \begin_inset Flex Code
670 status collapsed
671
672 \begin_layout Plain Layout
673 foo.tex
674 \end_layout
675
676 \end_inset
677
678 .
679  \SpecialChar LyX
680  will then open that file.
681 \begin_inset Foot
682 status collapsed
683
684 \begin_layout Plain Layout
685 \begin_inset Flex Code
686 status collapsed
687
688 \begin_layout Plain Layout
689 tex2lyx
690 \end_layout
691
692 \end_inset
693
694  can also be run from the command line, of course.
695 \end_layout
696
697 \end_inset
698
699
700 \end_layout
701
702 \begin_layout Standard
703 \begin_inset Flex Code
704 status collapsed
705
706 \begin_layout Plain Layout
707 tex2lyx
708 \end_layout
709
710 \end_inset
711
712  will translate most legal \SpecialChar LaTeX
713 , but not everything.
714  It will put things it doesn't understand into \SpecialChar TeX
715  code, so after translating
716  a file with 
717 \begin_inset Flex Code
718 status collapsed
719
720 \begin_layout Plain Layout
721 tex2lyx
722 \end_layout
723
724 \end_inset
725
726 , you can look for \SpecialChar TeX
727  code and hand-edit it until it looks right.
728 \end_layout
729
730 \begin_layout Standard
731 If you don't know what \SpecialChar TeX
732  code is, read the next section.
733 \end_layout
734
735 \begin_layout Section
736 \begin_inset CommandInset label
737 LatexCommand label
738 name "sec:Inserting-TeX-Code"
739
740 \end_inset
741
742 Inserting \SpecialChar TeX
743  Code into \SpecialChar LyX
744  Documents 
745 \end_layout
746
747 \begin_layout Standard
748 Anything you can do in \SpecialChar LaTeX
749  you can do in \SpecialChar LyX
750 , for a very simple reason: You can
751  always insert \SpecialChar TeX
752  code into any \SpecialChar LyX
753  document.
754  \SpecialChar LyX
755  cannot, and will never be able to, display every possible \SpecialChar LaTeX
756  construct.
757  If ever you need to insert \SpecialChar LaTeX
758  commands into your \SpecialChar LyX
759  document, you can use the
760  
761 \begin_inset Flex Code
762 status collapsed
763
764 \begin_layout Plain Layout
765 \SpecialChar TeX
766  Code
767 \end_layout
768
769 \end_inset
770
771  box, which you can insert into your document with 
772 \begin_inset Flex MenuItem
773 status collapsed
774
775 \begin_layout Plain Layout
776 Insert\SpecialChar menuseparator
777
778 \change_deleted -712698321 1437633182
779 \SpecialChar TeX
780
781 \change_inserted -712698321 1437633182
782
783 \family sans
784 TeX
785 \change_unchanged
786
787 \family default
788  Code
789 \end_layout
790
791 \end_inset
792
793  or the keyboard shortcut 
794 \begin_inset Info
795 type  "shortcut"
796 arg   "ert-insert"
797 \end_inset
798
799 .
800 \end_layout
801
802 \begin_layout Standard
803 Here's an example of inserting \SpecialChar LaTeX
804  commands in a \SpecialChar LyX
805  document.
806  The code looks like this:
807 \end_layout
808
809 \begin_layout LyX-Code
810
811 \backslash
812 begin{tabular}{ll}
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 begin{minipage}{5cm}
819 \begin_inset Newline newline
820 \end_inset
821
822 This is an example of a minipage environment.
823  You 
824 \begin_inset Newline newline
825 \end_inset
826
827 can put nearly everything in it, even (non-floating) 
828 \begin_inset Newline newline
829 \end_inset
830
831 figures and tables.
832  
833 \begin_inset Newline newline
834 \end_inset
835
836
837 \backslash
838 end{minipage}
839 \begin_inset Newline newline
840 \end_inset
841
842 &
843 \begin_inset Newline newline
844 \end_inset
845
846
847 \backslash
848 begin{minipage}{5cm}
849 \begin_inset Newline newline
850 \end_inset
851
852
853 \backslash
854 begin{verbatim}
855 \begin_inset Newline newline
856 \end_inset
857
858
859 \backslash
860 begin{minipage}{5cm}
861 \begin_inset Newline newline
862 \end_inset
863
864 This ...
865  
866 \begin_inset Newline newline
867 \end_inset
868
869
870 \backslash
871 end{minipage}
872 \begin_inset Newline newline
873 \end_inset
874
875
876 \backslash
877 end{verbatim}
878 \begin_inset Newline newline
879 \end_inset
880
881
882 \backslash
883 end{minipage}
884 \begin_inset Newline newline
885 \end_inset
886
887
888 \backslash
889 end{tabular}
890 \end_layout
891
892 \begin_layout LyX-Code
893
894 \end_layout
895
896 \begin_layout Standard
897 The 
898 \begin_inset Flex Code
899 status collapsed
900
901 \begin_layout Plain Layout
902 \SpecialChar TeX
903  Code
904 \end_layout
905
906 \end_inset
907
908  box containing this text is directly after this paragraph.
909  Those of you reading the manual in \SpecialChar LyX
910  will only see the \SpecialChar TeX
911  code inset.
912  Those reading a printed version of the manuals will see the actual results:
913 \begin_inset VSpace bigskip
914 \end_inset
915
916
917 \end_layout
918
919 \begin_layout Standard
920 \begin_inset ERT
921 status open
922
923 \begin_layout Plain Layout
924
925
926 \backslash
927 begin{tabular}{ll}
928 \end_layout
929
930 \begin_layout Plain Layout
931
932
933 \backslash
934 begin{minipage}{5cm}
935 \end_layout
936
937 \begin_layout Plain Layout
938
939 This is an example of a minipage environment.
940  You can put nearly everything in it, even (non-floating) figures and tables.
941  
942 \end_layout
943
944 \begin_layout Plain Layout
945
946
947 \backslash
948 end{minipage}
949 \end_layout
950
951 \begin_layout Plain Layout
952
953 &
954 \end_layout
955
956 \begin_layout Plain Layout
957
958
959 \backslash
960 begin{minipage}{5cm}
961 \end_layout
962
963 \begin_layout Plain Layout
964
965
966 \backslash
967 begin{verbatim}
968 \end_layout
969
970 \begin_layout Plain Layout
971
972
973 \backslash
974 begin{minipage}{5cm}
975 \end_layout
976
977 \begin_layout Plain Layout
978
979 This ...
980  
981 \end_layout
982
983 \begin_layout Plain Layout
984
985
986 \backslash
987 end{minipage}
988 \end_layout
989
990 \begin_layout Plain Layout
991
992
993 \backslash
994 end{verbatim}
995 \end_layout
996
997 \begin_layout Plain Layout
998
999
1000 \backslash
1001 end{minipage}
1002 \end_layout
1003
1004 \begin_layout Plain Layout
1005
1006
1007 \backslash
1008 end{tabular}
1009 \end_layout
1010
1011 \end_inset
1012
1013
1014 \begin_inset VSpace bigskip
1015 \end_inset
1016
1017
1018 \end_layout
1019
1020 \begin_layout Standard
1021 In addition to using \SpecialChar TeX
1022  code, you can also create a separate file containing
1023  some complex \SpecialChar LaTeX
1024  structure and then use 
1025 \begin_inset Flex MenuItem
1026 status collapsed
1027
1028 \begin_layout Plain Layout
1029 Insert\SpecialChar menuseparator
1030 Child
1031 \begin_inset space ~
1032 \end_inset
1033
1034 Document
1035 \end_layout
1036
1037 \end_inset
1038
1039  to include your file (you should select the type 
1040 \begin_inset Flex Code
1041 status collapsed
1042
1043 \begin_layout Plain Layout
1044 Input
1045 \end_layout
1046
1047 \end_inset
1048
1049 ).
1050  We recommend that you only do this if you have a 
1051 \begin_inset Flex Code
1052 status collapsed
1053
1054 \begin_layout Plain Layout
1055 .tex
1056 \end_layout
1057
1058 \end_inset
1059
1060  file which you 
1061 \emph on
1062 know
1063 \emph default
1064  works already.
1065  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1066  errors.
1067 \end_layout
1068
1069 \begin_layout Standard
1070 There are a few last points to emphasize:
1071 \end_layout
1072
1073 \begin_layout Itemize
1074 \SpecialChar LyX
1075  
1076 \emph on
1077 does not
1078 \emph default
1079  check if your \SpecialChar LaTeX
1080  code is correct.
1081 \end_layout
1082
1083 \begin_layout Itemize
1084 Beware of reinventing the wheel.
1085 \end_layout
1086
1087 \begin_layout Standard
1088 On that last point, \SpecialChar LyX
1089  does have quite a few features tucked into it, and
1090  more are coming.
1091  Be sure to check the manuals to make sure that \SpecialChar LyX
1092  doesn't have such-and-such
1093  feature before you decide you have to do it by hand.
1094  Moreover, there are numerous \SpecialChar LaTeX
1095  packages out there to do all sorts of things,
1096  from labels to envelopes to fancy multipage tables.
1097  Check out 
1098 \begin_inset CommandInset href
1099 LatexCommand href
1100 name "CTAN"
1101 target "http://www.ctan.org/"
1102
1103 \end_inset
1104
1105  for details.
1106 \end_layout
1107
1108 \begin_layout Standard
1109 If you do need to do some wild and fancy things within your document, be
1110  sure to check out a good \SpecialChar LaTeX
1111  book for assistance.
1112  There are a number of them listed in the bibliography of the 
1113 \emph on
1114 User's Guide
1115 \emph default
1116 .
1117 \end_layout
1118
1119 \begin_layout Section
1120 \SpecialChar LyX
1121  and the \SpecialChar LaTeX
1122  Preamble
1123 \end_layout
1124
1125 \begin_layout Subsection
1126 About the \SpecialChar LaTeX
1127  Preamble
1128 \end_layout
1129
1130 \begin_layout Standard
1131 If you already know \SpecialChar LaTeX
1132 , there is no need to explain here what the preamble
1133  is good for.
1134  If you don't, the following will give you some ideas—we recommend again
1135  that you consult a \SpecialChar LaTeX
1136  book for further information.
1137  In any case, you should read the points below, because they explain what
1138  you can do and what you don't need to do in the \SpecialChar LaTeX
1139  preamble of a \SpecialChar LyX
1140  document.
1141 \end_layout
1142
1143 \begin_layout Standard
1144 The \SpecialChar LaTeX
1145  preamble comes at the very beginning of a document, 
1146 \emph on
1147 before
1148 \emph default
1149  the text.
1150  It serves to:
1151 \end_layout
1152
1153 \begin_layout Itemize
1154 Declare the document class.
1155  
1156 \begin_inset Newline newline
1157 \end_inset
1158
1159 \SpecialChar LyX
1160  already does this for you.
1161  If you're a seasoned \SpecialChar LaTeX
1162 -nician, and you have a custom document class you
1163  want to use, check out the 
1164 \emph on
1165 Customization Manual
1166 \emph default
1167  for information on how to make \SpecialChar LyX
1168  interface to it.
1169 \end_layout
1170
1171 \begin_layout Itemize
1172 Declare the usage of packages.
1173  
1174 \begin_inset Newline newline
1175 \end_inset
1176
1177 \SpecialChar LaTeX
1178  packages provide special commands, which are only available within a document
1179  when the package has been declared in the preamble.
1180  In addition to providing special commands, the inclusion of a package can
1181  change the document.
1182  For example, the package 
1183 \begin_inset Flex Code
1184 status collapsed
1185
1186 \begin_layout Plain Layout
1187 indentfirst
1188 \end_layout
1189
1190 \end_inset
1191
1192  forces all paragraphs to be indented.
1193  There are other packages for labels, envelopes, margins, etc.
1194  
1195 \end_layout
1196
1197 \begin_layout Itemize
1198 Set counters, variables, lengths and widths.
1199  
1200 \begin_inset Newline newline
1201 \end_inset
1202
1203 There are several \SpecialChar LaTeX
1204  counters and variables that 
1205 \emph on
1206 must
1207 \emph default
1208  be set globally from within the preamble in order to have the desired effect.
1209  (There are variables that you can set and reset inside the document, too.)
1210  Margins are a good example of something that must be set in the preamble.
1211  Another example is the label format for lists.
1212  You can actually set these just about anywhere, but it's best to do it
1213  just once, inside the preamble.
1214 \end_layout
1215
1216 \begin_layout Itemize
1217 Declare user defined commands (with 
1218 \begin_inset Flex Code
1219 status collapsed
1220
1221 \begin_layout Plain Layout
1222
1223 \backslash
1224 newcommand
1225 \end_layout
1226
1227 \end_inset
1228
1229  or 
1230 \begin_inset Flex Code
1231 status collapsed
1232
1233 \begin_layout Plain Layout
1234
1235 \backslash
1236 renewcommand
1237 \end_layout
1238
1239 \end_inset
1240
1241 ).
1242 \begin_inset Newline newline
1243 \end_inset
1244
1245 These are abbreviations for \SpecialChar LaTeX
1246  commands which appear very often inside a document.
1247  Although the preamble is a good place to declare such commands, they 
1248 \emph on
1249 can
1250 \emph default
1251  be declared anywhere (before they are used for the first time, of course).
1252  This can be useful if there is a lot of raw \SpecialChar LaTeX
1253  code in your document, which
1254  normally should not be the case.
1255 \end_layout
1256
1257 \begin_layout Standard
1258 \SpecialChar LyX
1259  adds its own set of definitions to the preamble of the 
1260 \begin_inset Flex Code
1261 status collapsed
1262
1263 \begin_layout Plain Layout
1264 .tex
1265 \end_layout
1266
1267 \end_inset
1268
1269  file it produces.
1270  This makes \SpecialChar LaTeX
1271  files generated by \SpecialChar LyX
1272  portable.
1273 \end_layout
1274
1275 \begin_layout Subsection
1276 Changing the Preamble
1277 \end_layout
1278
1279 \begin_layout Standard
1280 The commands which \SpecialChar LyX
1281  adds to the preamble of a \SpecialChar LaTeX
1282  file are fixed; you can't
1283  change them without patching \SpecialChar LyX
1284  itself.
1285  You can, however, add your own stuff to the preamble by selecting 
1286 \begin_inset Flex MenuItem
1287 status collapsed
1288
1289 \begin_layout Plain Layout
1290 \SpecialChar LaTeX
1291
1292 \begin_inset space ~
1293 \end_inset
1294
1295 Preamble
1296 \end_layout
1297
1298 \end_inset
1299
1300  in the 
1301 \begin_inset Flex MenuItem
1302 status collapsed
1303
1304 \begin_layout Plain Layout
1305 Document\SpecialChar menuseparator
1306 Settings
1307 \end_layout
1308
1309 \end_inset
1310
1311  dialog.
1312  \SpecialChar LyX
1313  adds anything in the 
1314 \begin_inset Flex MenuItem
1315 status collapsed
1316
1317 \begin_layout Plain Layout
1318 Preamble
1319 \end_layout
1320
1321 \end_inset
1322
1323  dialog to its own built-in preamble.
1324  Before adding your own declarations in the preamble, you should make sure
1325  that \SpecialChar LyX
1326  doesn't already support what you want to do.
1327  (Remember what we said about reinventing the wheel?) Also, 
1328 \emph on
1329 make sure your preamble code is correct
1330 \emph default
1331 .
1332  \SpecialChar LyX
1333  doesn't check it for you.
1334  If there is an error, you're likely to get an error like 
1335 \begin_inset Quotes eld
1336 \end_inset
1337
1338
1339 \begin_inset Flex Code
1340 status collapsed
1341
1342 \begin_layout Plain Layout
1343 Missing 
1344 \backslash
1345 begin{document}
1346 \end_layout
1347
1348 \end_inset
1349
1350
1351 \begin_inset Quotes erd
1352 \end_inset
1353
1354 .
1355  If you see this error, check your preamble.
1356 \end_layout
1357
1358 \begin_layout Subsection
1359 Examples
1360 \end_layout
1361
1362 \begin_layout Standard
1363 Here are some examples of what you can add to a preamble, and what they
1364  do.
1365 \end_layout
1366
1367 \begin_layout Subsubsection
1368 Example #1: Offsets
1369 \end_layout
1370
1371 \begin_layout Standard
1372 There are two variables under \SpecialChar LaTeX
1373  that control page position: 
1374 \begin_inset Flex Code
1375 status collapsed
1376
1377 \begin_layout Plain Layout
1378
1379 \backslash
1380 hoffset
1381 \end_layout
1382
1383 \end_inset
1384
1385  and 
1386 \begin_inset Flex Code
1387 status collapsed
1388
1389 \begin_layout Plain Layout
1390
1391 \backslash
1392 voffset
1393 \end_layout
1394
1395 \end_inset
1396
1397 .
1398  Their names should be self-explanatory.
1399  These variables are useful if you think for a moment about computer labels.
1400  Sometimes, the size of a print medium and the area of the medium that you
1401  can actually print on aren't the same.
1402  This is where 
1403 \begin_inset Flex Code
1404 status collapsed
1405
1406 \begin_layout Plain Layout
1407
1408 \backslash
1409 hoffset
1410 \end_layout
1411
1412 \end_inset
1413
1414  and 
1415 \begin_inset Flex Code
1416 status collapsed
1417
1418 \begin_layout Plain Layout
1419
1420 \backslash
1421 voffset
1422 \end_layout
1423
1424 \end_inset
1425
1426  come in.
1427 \end_layout
1428
1429 \begin_layout Standard
1430 The default values for 
1431 \begin_inset Flex Code
1432 status collapsed
1433
1434 \begin_layout Plain Layout
1435
1436 \backslash
1437 hoffset
1438 \end_layout
1439
1440 \end_inset
1441
1442  and 
1443 \begin_inset Flex Code
1444 status collapsed
1445
1446 \begin_layout Plain Layout
1447
1448 \backslash
1449 voffset
1450 \end_layout
1451
1452 \end_inset
1453
1454  are both 0
1455 \begin_inset space \thinspace{}
1456 \end_inset
1457
1458 points, i.
1459 \begin_inset space \thinspace{}
1460 \end_inset
1461
1462 e.
1463 \begin_inset space \space{}
1464 \end_inset
1465
1466 the page isn't shifted.
1467  Unfortunately, some DVI drivers always seem to shift the page.
1468  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1469  If you're using \SpecialChar LyX
1470  on a system that you don't personally maintain, and your
1471  sysadmin is a doofus, 
1472 \begin_inset Flex Code
1473 status collapsed
1474
1475 \begin_layout Plain Layout
1476
1477 \backslash
1478 hoffset
1479 \end_layout
1480
1481 \end_inset
1482
1483  and 
1484 \begin_inset Flex Code
1485 status collapsed
1486
1487 \begin_layout Plain Layout
1488
1489 \backslash
1490 voffset
1491 \end_layout
1492
1493 \end_inset
1494
1495  can save the day.
1496  Suppose your left and top margins are always 0.5
1497 \begin_inset space \thinspace{}
1498 \end_inset
1499
1500 inches too big.
1501  You can add this to the preamble:
1502 \end_layout
1503
1504 \begin_layout LyX-Code
1505
1506 \backslash
1507 setlength{
1508 \backslash
1509 hoffset}{-0.5 in}
1510 \end_layout
1511
1512 \begin_layout LyX-Code
1513
1514 \backslash
1515 setlength{
1516 \backslash
1517 voffset}{-0.5 in}
1518 \end_layout
1519
1520 \begin_layout Standard
1521 and your margins should now be correct.
1522 \end_layout
1523
1524 \begin_layout Subsubsection
1525 Example #2: Labels
1526 \end_layout
1527
1528 \begin_layout Standard
1529 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1530  There's a rather nice package, available at your nearest CTAN archive,
1531  for printing sheets of labels: 
1532 \begin_inset Flex Code
1533 status collapsed
1534
1535 \begin_layout Plain Layout
1536 labels.sty
1537 \end_layout
1538
1539 \end_inset
1540
1541 .
1542  Now, your system may not have this package installed by default.
1543  We leave that up to you to check.
1544  You'll also want to read the documentation for it; we're not going to do
1545  that for you.
1546  Since this is an example, however, we'll give you an example of how you
1547  use this package.
1548 \end_layout
1549
1550 \begin_layout Standard
1551 First, make sure you're using the 
1552 \begin_inset Flex Code
1553 status collapsed
1554
1555 \begin_layout Plain Layout
1556 article
1557 \end_layout
1558
1559 \end_inset
1560
1561  document class.
1562  Next, you need to put the following in your preamble:
1563 \end_layout
1564
1565 \begin_layout LyX-Code
1566
1567 \backslash
1568 usepackage{labels}
1569 \end_layout
1570
1571 \begin_layout LyX-Code
1572
1573 \backslash
1574 LabelCols=3
1575 \end_layout
1576
1577 \begin_layout LyX-Code
1578
1579 \backslash
1580 LabelRows=7
1581 \end_layout
1582
1583 \begin_layout LyX-Code
1584
1585 \backslash
1586 LeftBorder=8mm
1587 \end_layout
1588
1589 \begin_layout LyX-Code
1590
1591 \backslash
1592 RightBorder=8mm
1593 \end_layout
1594
1595 \begin_layout LyX-Code
1596
1597 \backslash
1598 TopBorder=9mm
1599 \end_layout
1600
1601 \begin_layout LyX-Code
1602
1603 \backslash
1604 BottomBorder=2mm
1605 \end_layout
1606
1607 \begin_layout Standard
1608 This sets things up for Avery label sheets, stock #5360.
1609  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1610  code, placing
1611  the commands 
1612 \begin_inset Flex Code
1613 status collapsed
1614
1615 \begin_layout Plain Layout
1616
1617 \backslash
1618 begin{labels}
1619 \end_layout
1620
1621 \end_inset
1622
1623  and 
1624 \begin_inset Flex Code
1625 status collapsed
1626
1627 \begin_layout Plain Layout
1628
1629 \backslash
1630 end{labels}
1631 \end_layout
1632
1633 \end_inset
1634
1635  around each label text.
1636  This and other special features of 
1637 \begin_inset Flex Code
1638 status collapsed
1639
1640 \begin_layout Plain Layout
1641 labels.sty
1642 \end_layout
1643
1644 \end_inset
1645
1646  are explained in its documentation.
1647 \end_layout
1648
1649 \begin_layout Standard
1650 Someday, someone may write a \SpecialChar LyX
1651  layout file to support this package directly.
1652  Maybe that someone is you.
1653 \end_layout
1654
1655 \begin_layout Subsubsection
1656 Example #3: Paragraph Indentation
1657 \end_layout
1658
1659 \begin_layout Standard
1660 Americans are trained to indent the first line of 
1661 \emph on
1662 every
1663 \emph default
1664  paragraph.
1665  As with all of their other weird quirks, most Americans will whine and
1666  moan until they can have their way and indent the first line of all paragraphs.
1667  (Yes, we're joking.
1668  (We are?) 
1669 \emph on
1670 Yeah
1671 \emph default
1672 , we are.)
1673 \end_layout
1674
1675 \begin_layout Standard
1676 Of course, this behavior isn't standard typography.
1677  In books, you typically only indent the first line of a paragraph 
1678 \emph on
1679 if
1680 \emph default
1681  it follows another one.
1682  The idea behind indenting the first line of a paragraph is to distinguish
1683  neighboring paragraphs from one another.
1684  If there is no previous paragraph—for example, if it follows a figure or
1685  is the first paragraph in a section—then there is no need for indentation.
1686  
1687 \end_layout
1688
1689 \begin_layout Standard
1690 If you're a typical American (we're still joking!), though, you don't care
1691  about such esoteric things; you want your indentation! Add this to the
1692  preamble:
1693 \end_layout
1694
1695 \begin_layout LyX-Code
1696
1697 \backslash
1698 usepackage{indentfirst}
1699 \end_layout
1700
1701 \begin_layout Standard
1702 If your \SpecialChar TeX
1703  distribution isn't braindead, you'll have this package, and all
1704  of your paragraphs will get the indentation the Founding Fathers intended
1705  they should have.
1706 \end_layout
1707
1708 \begin_layout Subsubsection
1709 Example #4: This Document
1710 \end_layout
1711
1712 \begin_layout Standard
1713 You can also check out the preamble of this document to get an idea of some
1714  of the advanced things you can do.
1715 \end_layout
1716
1717 \begin_layout Section
1718 \SpecialChar LyX
1719  and \SpecialChar LaTeX
1720  Errors
1721 \end_layout
1722
1723 \begin_layout Standard
1724 When \SpecialChar LyX
1725  calls \SpecialChar LaTeX
1726 , it tells \SpecialChar LaTeX
1727  to blithely ignore any errors and keep going.
1728  It then uses the logfile from the \SpecialChar LaTeX
1729  run to do a post-mortem.
1730  After analyzing the logfile, \SpecialChar LyX
1731  displays a dialog listing the errors.
1732  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1733  file
1734  where the error occurred.
1735 \begin_inset Foot
1736 status collapsed
1737
1738 \begin_layout Plain Layout
1739 Well, usually.
1740  Analyzing the logfile is a tough job, and \SpecialChar LyX
1741  doesn't always go to the right
1742  line.
1743  There are also cases where \SpecialChar LaTeX
1744  reports the error on one line, but the actual
1745  error is earlier.
1746  This is not unlike forgetting a closing brace in a program: You'll get
1747  an error, but only later.
1748 \end_layout
1749
1750 \end_inset
1751
1752
1753 \end_layout
1754
1755 \begin_layout Standard
1756 Some folks also like to look at the log file directly: It is available from
1757  
1758 \begin_inset Flex MenuItem
1759 status collapsed
1760
1761 \begin_layout Plain Layout
1762 Document
1763 \bar under
1764 \SpecialChar menuseparator
1765
1766 \bar default
1767 Latex
1768 \begin_inset space ~
1769 \end_inset
1770
1771 Log
1772 \end_layout
1773
1774 \end_inset
1775
1776 .
1777  There are some fairly common error messages and warnings.
1778  We'll cover those here.
1779  You should look at a good \SpecialChar LaTeX
1780  book for a complete listing.
1781 \end_layout
1782
1783 \begin_layout Itemize
1784 \begin_inset Flex Code
1785 status collapsed
1786
1787 \begin_layout Plain Layout
1788 \SpecialChar LaTeX
1789  Warning
1790 \end_layout
1791
1792 \end_inset
1793
1794
1795 \begin_inset Newline newline
1796 \end_inset
1797
1798 Anything beginning with these words is a warning message for the purpose
1799  of 
1800 \begin_inset Quotes eld
1801 \end_inset
1802
1803 debugging
1804 \begin_inset Quotes erd
1805 \end_inset
1806
1807  the \SpecialChar LaTeX
1808  code itself.
1809  You'll get messages like this if you added or changed cross-references
1810  or bibliography entries, in which case, \SpecialChar LaTeX
1811  is trying to tell you that you
1812  need to make another run.
1813  You can by-and-large ignore these.
1814 \end_layout
1815
1816 \begin_layout Itemize
1817 \begin_inset Flex Code
1818 status collapsed
1819
1820 \begin_layout Plain Layout
1821 \SpecialChar LaTeX
1822  Font Warning
1823 \end_layout
1824
1825 \end_inset
1826
1827
1828 \begin_inset Newline newline
1829 \end_inset
1830
1831 Another warning message, this time about fonts which \SpecialChar LaTeX
1832  couldn't find.
1833  The rest of the message will often say something about a replacement font
1834  that \SpecialChar LaTeX
1835  used.
1836  You can safely ignore these, too.
1837 \end_layout
1838
1839 \begin_layout Itemize
1840 \begin_inset Flex Code
1841 status collapsed
1842
1843 \begin_layout Plain Layout
1844 Overfull 
1845 \backslash
1846 hbox
1847 \end_layout
1848
1849 \end_inset
1850
1851
1852 \begin_inset Newline newline
1853 \end_inset
1854
1855 \SpecialChar LaTeX
1856  absolutely 
1857 \emph on
1858 loves
1859 \emph default
1860  to spew these out.
1861  They are warnings about lines that were too long and run past the right
1862  margin.
1863  Almost always, this is unnoticeable in the final output.
1864  (It can be just a point or two.) Or, only one or two characters extend past
1865  the margin.
1866  \SpecialChar LaTeX
1867  seems to generate at least one of these messages for just about any document
1868  you write.
1869 \begin_inset Newline newline
1870 \end_inset
1871
1872 You can ignore these messages.
1873  Your eyes will tell you if there's a problem with something that's too
1874  wide; just look at the output.
1875 \begin_inset Foot
1876 status collapsed
1877
1878 \begin_layout Plain Layout
1879 You can also enable the `draft' option in 
1880 \begin_inset Flex MenuItem
1881 status collapsed
1882
1883 \begin_layout Plain Layout
1884 Document
1885 \bar under
1886 \SpecialChar menuseparator
1887
1888 \bar default
1889 Settings
1890 \end_layout
1891
1892 \end_inset
1893
1894 , and then \SpecialChar LaTeX
1895  will draw a black box in the margin of lines that are overfull.
1896 \end_layout
1897
1898 \end_inset
1899
1900
1901 \end_layout
1902
1903 \begin_layout Itemize
1904 \begin_inset Flex Code
1905 status collapsed
1906
1907 \begin_layout Plain Layout
1908 Underfull 
1909 \backslash
1910 hbox
1911 \end_layout
1912
1913 \end_inset
1914
1915
1916 \begin_inset Newline newline
1917 \end_inset
1918
1919 Not quite as common as its cousin.
1920  \SpecialChar LaTeX
1921  seems to like to print lines that are a bit too wide as opposed to ones
1922  that are a bit too narrow.
1923  We have no idea why.
1924 \end_layout
1925
1926 \begin_layout Itemize
1927 \begin_inset Flex Code
1928 status collapsed
1929
1930 \begin_layout Plain Layout
1931 Overfull 
1932 \backslash
1933 vbox
1934 \end_layout
1935
1936 \end_inset
1937
1938  and 
1939 \begin_inset Flex Code
1940 status collapsed
1941
1942 \begin_layout Plain Layout
1943 Underfull 
1944 \backslash
1945 vbox
1946 \end_layout
1947
1948 \end_inset
1949
1950
1951 \begin_inset Newline newline
1952 \end_inset
1953
1954 Warnings about troubles breaking the page.
1955  Once again, just look at the output.
1956  Your eyes will tell you where something has gone wrong.
1957 \end_layout
1958
1959 \begin_layout Itemize
1960 \begin_inset Flex Code
1961 status collapsed
1962
1963 \begin_layout Plain Layout
1964 \SpecialChar LaTeX
1965  Error: File 
1966 \begin_inset Quotes els
1967 \end_inset
1968
1969 Xxxx
1970 \begin_inset Quotes ers
1971 \end_inset
1972
1973  not found
1974 \end_layout
1975
1976 \end_inset
1977
1978
1979 \begin_inset Newline newline
1980 \end_inset
1981
1982 The file 
1983 \begin_inset Quotes eld
1984 \end_inset
1985
1986 Xxxx
1987 \begin_inset Quotes erd
1988 \end_inset
1989
1990  isn't installed on this system.
1991  This usually appears because some package your document needs isn't installed.
1992  If you didn't touch the preamble or didn't use the 
1993 \begin_inset Flex Code
1994 status collapsed
1995
1996 \begin_layout Plain Layout
1997
1998 \backslash
1999 usepackage{}
2000 \end_layout
2001
2002 \end_inset
2003
2004  command, then one of the packages \SpecialChar LyX
2005  tried to load is missing.
2006  Use 
2007 \begin_inset Flex MenuItem
2008 status collapsed
2009
2010 \begin_layout Plain Layout
2011 Help\SpecialChar menuseparator
2012 \SpecialChar LaTeX
2013  Configuration
2014 \end_layout
2015
2016 \end_inset
2017
2018  to get a list of packages that \SpecialChar LyX
2019  knows about.
2020  This file is updated whenever you reconfigure \SpecialChar LyX
2021  (using 
2022 \begin_inset Flex MenuItem
2023 status collapsed
2024
2025 \begin_layout Plain Layout
2026 Tools\SpecialChar menuseparator
2027 Reconfigure
2028 \end_layout
2029
2030 \end_inset
2031
2032 ) and tells you which packages have been detected and what they do.
2033 \begin_inset Newline newline
2034 \end_inset
2035
2036 If you did use the 
2037 \begin_inset Flex Code
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041
2042 \backslash
2043 usepackage{}
2044 \end_layout
2045
2046 \end_inset
2047
2048  command and the package in question isn't installed, then you'll need to
2049  install it yourself.
2050 \end_layout
2051
2052 \begin_layout Itemize
2053 \begin_inset Flex Code
2054 status collapsed
2055
2056 \begin_layout Plain Layout
2057 \SpecialChar LaTeX
2058  Error: Unknown option
2059 \end_layout
2060
2061 \end_inset
2062
2063
2064 \begin_inset Newline newline
2065 \end_inset
2066
2067 Error messages beginning with this are trying to tell you that you specified
2068  a bad or undefined option to a package.
2069  Check the package's documentation.
2070 \end_layout
2071
2072 \begin_layout Itemize
2073 \begin_inset Flex Code
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 Undefined control sequence
2078 \end_layout
2079
2080 \end_inset
2081
2082
2083 \begin_inset Newline newline
2084 \end_inset
2085
2086 If you've inserted \SpecialChar LaTeX
2087  code into your document, but made a typo, you'll get
2088  one of these.
2089  You may have forgotten to load a package.
2090  In any case, this error message usually means that you used an undefined
2091  command.
2092  
2093 \end_layout
2094
2095 \begin_layout Standard
2096 There are other error and warning messages.
2097  Some are self-explanatory.
2098  These are usually \SpecialChar LaTeX
2099  messages.
2100  Others are downright cryptic.
2101  These are usually \SpecialChar TeX
2102  error messages, and we really have 
2103 \emph on
2104 no clue
2105 \emph default
2106  what they mean or how to decipher them.
2107  No-one does.
2108 \end_layout
2109
2110 \begin_layout Standard
2111 There's a general sequence you should follow if you get error messages:
2112 \end_layout
2113
2114 \begin_layout Enumerate
2115 Look at the \SpecialChar LaTeX
2116  code you inserted for typos.
2117 \end_layout
2118
2119 \begin_layout Enumerate
2120 If there are no typos, check that you used the command(s) correctly.
2121 \end_layout
2122
2123 \begin_layout Enumerate
2124 If you get a bunch of error boxes piled up at the very top of the document—and
2125  especially if you see a 
2126 \begin_inset Quotes eld
2127 \end_inset
2128
2129
2130 \begin_inset Flex Code
2131 status collapsed
2132
2133 \begin_layout Plain Layout
2134 Missing 
2135 \backslash
2136 begin{document}
2137 \end_layout
2138
2139 \end_inset
2140
2141
2142 \begin_inset Quotes erd
2143 \end_inset
2144
2145  error—it means that there are errors in the preamble.
2146  Start debugging your preamble.
2147 \end_layout
2148
2149 \begin_layout Enumerate
2150 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2151  code to the
2152  document, the first suspect is your \SpecialChar LaTeX
2153  distribution itself.
2154  Check for missing packages and install them.
2155 \end_layout
2156
2157 \begin_layout Enumerate
2158 Okay, so there are no missing packages.
2159  Did you use any of the fine-tuning options in \SpecialChar LyX
2160 ? Specifically, did you 
2161 \emph on
2162 misuse
2163 \emph default
2164  any of them, like trying to manually insert lots of 
2165 \begin_inset Flex Code
2166 status collapsed
2167
2168 \begin_layout Plain Layout
2169 Protected
2170 \begin_inset space ~
2171 \end_inset
2172
2173 Blanks
2174 \end_layout
2175
2176 \end_inset
2177
2178
2179 \begin_inset Flex Code
2180 status collapsed
2181
2182 \begin_layout Plain Layout
2183 Linebreaks
2184 \end_layout
2185
2186 \end_inset
2187
2188 , or 
2189 \begin_inset Flex Code
2190 status collapsed
2191
2192 \begin_layout Plain Layout
2193 Pagebreaks
2194 \end_layout
2195
2196 \end_inset
2197
2198 ? Did you try to kludge something together with these instead of using the
2199  appropriate paragraph environment?
2200 \end_layout
2201
2202 \begin_layout Enumerate
2203 All right, you didn't use any of the fine-tuning options, you played by
2204  the rules.
2205  Did you try to pull a fancy maneuver? Did you do something funky inside
2206  a table or an equation, like inserting a graphic into a table cell?
2207 \end_layout
2208
2209 \begin_layout Enumerate
2210 Do you have long sections of text where \SpecialChar LaTeX
2211  cannot find a place to break a
2212  line? By default, \SpecialChar LaTeX
2213  is rather strict about how much extra inter-word spacing
2214  it will add in order to break a line.
2215  Preferably, you should rework the paragraph to avoid the problem.
2216  If this isn't an option, you can wrap your text in 
2217 \begin_inset Flex Code
2218 status collapsed
2219
2220 \begin_layout Plain Layout
2221
2222 \backslash
2223 sloppypar
2224 \end_layout
2225
2226 \end_inset
2227
2228  to make \SpecialChar LaTeX
2229 's line breaking more, well, sloppy.
2230 \end_layout
2231
2232 \begin_layout Enumerate
2233 Did you go overboard with the nesting? \SpecialChar LyX
2234  (currently) doesn't check to make
2235  sure you're in the limits for nesting environments.
2236  If you nested a bunch of environments to the 
2237 \begin_inset Formula $17^{\mathrm{th}}$
2238 \end_inset
2239
2240  level, that's the problem.
2241  (The limit in \SpecialChar LaTeX
2242  is five.)
2243 \end_layout
2244
2245 \begin_layout Enumerate
2246 Okay, you didn't get any error messages, but your output looks awful.
2247  If you have a table or figure that's too wide or long for the page, you
2248  need to:
2249 \begin_inset Separator parbreak
2250 \end_inset
2251
2252
2253 \end_layout
2254
2255 \begin_deeper
2256 \begin_layout Enumerate
2257 rescale the figure so it fits.
2258 \end_layout
2259
2260 \begin_layout Enumerate
2261 trim down the table so it fits.
2262 \end_layout
2263
2264 \end_deeper
2265 \begin_layout Enumerate
2266 If something else is wrong with the output, and you didn't try to pull anything
2267  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2268 \end_layout
2269
2270 \begin_layout Standard
2271 If all this doesn't help—well, then 
2272 \emph on
2273 perhaps
2274 \emph default
2275  you might have found a bug in \SpecialChar LyX
2276 \SpecialChar ldots
2277 .
2278 \end_layout
2279
2280 \begin_layout Chapter
2281 Supplemental Tools
2282 \end_layout
2283
2284 \begin_layout Section
2285 Customizing Bibliographies with Bib\SpecialChar TeX
2286
2287 \end_layout
2288
2289 \begin_layout Standard
2290 The most basic information about how to use Bib\SpecialChar TeX
2291  with \SpecialChar LyX
2292  is contained in the
2293  section 
2294 \emph on
2295 Bibliography databases (Bib\SpecialChar TeX
2296 )
2297 \emph default
2298  of the 
2299 \emph on
2300 User's Guide
2301 \emph default
2302 .
2303  The following subsections explain special bibliography features supported
2304  by \SpecialChar LyX
2305 .
2306 \end_layout
2307
2308 \begin_layout Subsection
2309 Alternative Citation Styles
2310 \end_layout
2311
2312 \begin_layout Standard
2313 Standard Bib\SpecialChar TeX
2314  uses numbers (e.
2315 \begin_inset space \thinspace{}
2316 \end_inset
2317
2318 g.
2319 \begin_inset space \space{}
2320 \end_inset
2321
2322
2323 \begin_inset Quotes eld
2324 \end_inset
2325
2326 [12]
2327 \begin_inset Quotes erd
2328 \end_inset
2329
2330 ) to refer to a cited work.
2331  However, in many scientific disciplines, other citation styles are in use.
2332  The most common one is the author-year style (e.
2333 \begin_inset space \thinspace{}
2334 \end_inset
2335
2336 g.
2337 \begin_inset space \space{}
2338 \end_inset
2339
2340
2341 \begin_inset Quotes eld
2342 \end_inset
2343
2344 Knuth 1984a
2345 \begin_inset Quotes erd
2346 \end_inset
2347
2348 ).
2349  \SpecialChar LyX
2350  supports two packages that provide this style, 
2351 \begin_inset Flex Code
2352 status collapsed
2353
2354 \begin_layout Plain Layout
2355 natbib
2356 \end_layout
2357
2358 \end_inset
2359
2360  and 
2361 \begin_inset Flex Code
2362 status collapsed
2363
2364 \begin_layout Plain Layout
2365 jurabib
2366 \end_layout
2367
2368 \end_inset
2369
2370 .
2371  Both packages have their pros and cons, which cannot be listed in detail.
2372  If you only want to have simple author-year (or author-numerical) style,
2373  or if you want to use one of the countless style files for 
2374 \begin_inset Flex Code
2375 status collapsed
2376
2377 \begin_layout Plain Layout
2378 natbib
2379 \end_layout
2380
2381 \end_inset
2382
2383 , then the established 
2384 \begin_inset Flex Code
2385 status collapsed
2386
2387 \begin_layout Plain Layout
2388 natbib
2389 \end_layout
2390
2391 \end_inset
2392
2393  package is probably your choice.
2394  If you need special features like short title references, ibidem etc., you
2395  might consider the 
2396 \begin_inset Flex Code
2397 status collapsed
2398
2399 \begin_layout Plain Layout
2400 jurabib
2401 \end_layout
2402
2403 \end_inset
2404
2405  package.
2406 \end_layout
2407
2408 \begin_layout Standard
2409 The handling of both packages in \SpecialChar LyX
2410  is basically the same.
2411  Go to 
2412 \begin_inset Flex MenuItem
2413 status collapsed
2414
2415 \begin_layout Plain Layout
2416 Document\SpecialChar menuseparator
2417 Settings
2418 \end_layout
2419
2420 \end_inset
2421
2422  and select under 
2423 \begin_inset Flex MenuItem
2424 status collapsed
2425
2426 \begin_layout Plain Layout
2427 Bibliography
2428 \end_layout
2429
2430 \end_inset
2431
2432  the option 
2433 \begin_inset Flex MenuItem
2434 status collapsed
2435
2436 \begin_layout Plain Layout
2437 Natbib
2438 \end_layout
2439
2440 \end_inset
2441
2442  or 
2443 \begin_inset Flex MenuItem
2444 status collapsed
2445
2446 \begin_layout Plain Layout
2447 Jurabib
2448 \end_layout
2449
2450 \end_inset
2451
2452 .
2453  With both packages, you will get some extra features in the citation dialog
2454  and you can select the style of the reference (
2455 \begin_inset Quotes eld
2456 \end_inset
2457
2458 Knuth 1984
2459 \begin_inset Quotes erd
2460 \end_inset
2461
2462
2463 \begin_inset Quotes eld
2464 \end_inset
2465
2466 Knuth (1984)
2467 \begin_inset Quotes erd
2468 \end_inset
2469
2470
2471 \begin_inset Quotes eld
2472 \end_inset
2473
2474 Knuth, 1984
2475 \begin_inset Quotes erd
2476 \end_inset
2477
2478
2479 \begin_inset Quotes eld
2480 \end_inset
2481
2482 1984
2483 \begin_inset Quotes erd
2484 \end_inset
2485
2486  etc.).
2487  Note that both packages need specifically designed style files.
2488  They both ship their own, but there are lots of additional style files,
2489  and there is even an interactive style file builder
2490 \begin_inset Foot
2491 status collapsed
2492
2493 \begin_layout Plain Layout
2494 See 
2495 \begin_inset Flex URL
2496 status open
2497
2498 \begin_layout Plain Layout
2499
2500 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2501 \end_layout
2502
2503 \end_inset
2504
2505
2506 \end_layout
2507
2508 \end_inset
2509
2510  for 
2511 \begin_inset Flex Code
2512 status collapsed
2513
2514 \begin_layout Plain Layout
2515 natbib
2516 \end_layout
2517
2518 \end_inset
2519
2520 .
2521 \end_layout
2522
2523 \begin_layout Subsection
2524 Sectioned Bibliographies
2525 \end_layout
2526
2527 \begin_layout Standard
2528 Sometimes you might need to divide your bibliography into several sections.
2529  If you are for instance a historian, the possibility to separate sources
2530  and scientific works is most likely a 
2531 \begin_inset Quotes eld
2532 \end_inset
2533
2534 must have
2535 \begin_inset Quotes erd
2536 \end_inset
2537
2538 .
2539  Unfortunately, Bib\SpecialChar TeX
2540  itself does not allow you to do this.
2541  But with the help of some \SpecialChar LaTeX
2542  packages, Bib\SpecialChar TeX
2543  can be extended to fit your needs.
2544 \end_layout
2545
2546 \begin_layout Standard
2547 \SpecialChar LyX
2548  provides native support for one of these packages, 
2549 \family typewriter
2550 bibtopic
2551 \family default
2552 .
2553 \begin_inset Foot
2554 status collapsed
2555
2556 \begin_layout Plain Layout
2557 Available from 
2558 \begin_inset Flex URL
2559 status open
2560
2561 \begin_layout Plain Layout
2562
2563 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2564 \end_layout
2565
2566 \end_inset
2567
2568
2569 \end_layout
2570
2571 \end_inset
2572
2573  The advantage of this package (compared to other packages like 
2574 \family typewriter
2575 multibib
2576 \family default
2577 ) is that you don't need to define new citation commands.
2578  Instead, you need to prepare different bibliographic databases which include
2579  the entries for the different sections of the bibliography.
2580  For example: If you want to divide your bibliography into the sections
2581  
2582 \begin_inset Quotes eld
2583 \end_inset
2584
2585 Sources
2586 \begin_inset Quotes erd
2587 \end_inset
2588
2589  and 
2590 \begin_inset Quotes eld
2591 \end_inset
2592
2593 Scientific works
2594 \begin_inset Quotes erd
2595 \end_inset
2596
2597 , you first need to create two bibliographic databases, e.
2598 \begin_inset space \thinspace{}
2599 \end_inset
2600
2601 g.
2602 \begin_inset space \space{}
2603 \end_inset
2604
2605
2606 \begin_inset Flex Code
2607 status collapsed
2608
2609 \begin_layout Plain Layout
2610 sources.bib
2611 \end_layout
2612
2613 \end_inset
2614
2615  and 
2616 \begin_inset Flex Code
2617 status collapsed
2618
2619 \begin_layout Plain Layout
2620 scientific.bib
2621 \end_layout
2622
2623 \end_inset
2624
2625 .
2626  
2627 \end_layout
2628
2629 \begin_layout Standard
2630 Go to 
2631 \begin_inset Flex MenuItem
2632 status collapsed
2633
2634 \begin_layout Plain Layout
2635 Document\SpecialChar menuseparator
2636 Settings
2637 \end_layout
2638
2639 \end_inset
2640
2641  and check under 
2642 \begin_inset Flex MenuItem
2643 status collapsed
2644
2645 \begin_layout Plain Layout
2646 Bibliography
2647 \end_layout
2648
2649 \end_inset
2650
2651  the option 
2652 \begin_inset Flex MenuItem
2653 status collapsed
2654
2655 \begin_layout Plain Layout
2656 Sectioned bibliography
2657 \end_layout
2658
2659 \end_inset
2660
2661 .
2662  Now you can insert multiple Bib\SpecialChar TeX
2663  bibliographies, one for each section of
2664  your bibliography.
2665  Returning to our example: Insert the Bib\SpecialChar TeX
2666  bibliography 
2667 \begin_inset Flex Code
2668 status collapsed
2669
2670 \begin_layout Plain Layout
2671 sources.bib
2672 \end_layout
2673
2674 \end_inset
2675
2676  and a second one for the database 
2677 \begin_inset Flex Code
2678 status collapsed
2679
2680 \begin_layout Plain Layout
2681 scientific.bib
2682 \end_layout
2683
2684 \end_inset
2685
2686 .
2687  You are free to use the same or different styles for each section.
2688  Additionally, you can choose if the bibliography section should contain
2689  
2690 \begin_inset Quotes eld
2691 \end_inset
2692
2693 all cited references
2694 \begin_inset Quotes erd
2695 \end_inset
2696
2697  of the specified database(s) (which is the default), 
2698 \begin_inset Quotes eld
2699 \end_inset
2700
2701 all uncited references
2702 \begin_inset Quotes erd
2703 \end_inset
2704
2705  or even 
2706 \begin_inset Quotes eld
2707 \end_inset
2708
2709 all references
2710 \begin_inset Quotes erd
2711 \end_inset
2712
2713 .
2714  This might be useful if you would like to separate your bibliography into
2715  three sections: 
2716 \begin_inset Quotes eld
2717 \end_inset
2718
2719 Cited sources
2720 \begin_inset Quotes erd
2721 \end_inset
2722
2723
2724 \begin_inset Quotes eld
2725 \end_inset
2726
2727 Uncited sources
2728 \begin_inset Quotes erd
2729 \end_inset
2730
2731 , and 
2732 \begin_inset Quotes eld
2733 \end_inset
2734
2735 Scientific works
2736 \begin_inset Quotes erd
2737 \end_inset
2738
2739 .
2740  The titles for the sections can be added as ordinary sections or subsections.
2741  Since 
2742 \begin_inset Flex Code
2743 status collapsed
2744
2745 \begin_layout Plain Layout
2746 bibtopic
2747 \end_layout
2748
2749 \end_inset
2750
2751  removes the bibliography title, you have to manually re-add that, too (as
2752  a chapter* or section*, for instance).
2753 \end_layout
2754
2755 \begin_layout Subsection
2756 Multiple Bibliographies
2757 \end_layout
2758
2759 \begin_layout Standard
2760 Multiple bibliographies, e.
2761 \begin_inset space \thinspace{}
2762 \end_inset
2763
2764 g.
2765 \begin_inset space \space{}
2766 \end_inset
2767
2768 a bibliography for each section or chapter of the document, are not supported
2769  by Bib\SpecialChar TeX
2770  itself.
2771  But the 
2772 \begin_inset Flex Code
2773 status collapsed
2774
2775 \begin_layout Plain Layout
2776 bibtopic
2777 \end_layout
2778
2779 \end_inset
2780
2781  package, which is used for the creation of sectioned bibliographies in
2782  \SpecialChar LyX
2783  (see the previous section), provides an easy way to solve this task, if
2784  you are willing to use some 
2785 \begin_inset Flex MenuItem
2786 status collapsed
2787
2788 \begin_layout Plain Layout
2789 \SpecialChar TeX
2790  Code
2791 \end_layout
2792
2793 \end_inset
2794
2795  (see section
2796 \begin_inset space ~
2797 \end_inset
2798
2799
2800 \begin_inset CommandInset ref
2801 LatexCommand ref
2802 reference "sec:Inserting-TeX-Code"
2803
2804 \end_inset
2805
2806 ).
2807 \begin_inset Foot
2808 status collapsed
2809
2810 \begin_layout Plain Layout
2811 An alternative approach is to use the 
2812 \begin_inset Flex Code
2813 status collapsed
2814
2815 \begin_layout Plain Layout
2816 chapterbib
2817 \end_layout
2818
2819 \end_inset
2820
2821  or 
2822 \begin_inset Flex Code
2823 status collapsed
2824
2825 \begin_layout Plain Layout
2826 bibunits
2827 \end_layout
2828
2829 \end_inset
2830
2831  package, respectively.
2832 \end_layout
2833
2834 \end_inset
2835
2836
2837 \end_layout
2838
2839 \begin_layout Standard
2840 First go to 
2841 \begin_inset Flex MenuItem
2842 status collapsed
2843
2844 \begin_layout Plain Layout
2845 Document\SpecialChar menuseparator
2846 Settings
2847 \end_layout
2848
2849 \end_inset
2850
2851  and under 
2852 \begin_inset Flex MenuItem
2853 status collapsed
2854
2855 \begin_layout Plain Layout
2856 Bibliography
2857 \end_layout
2858
2859 \end_inset
2860
2861  check 
2862 \begin_inset Flex MenuItem
2863 status collapsed
2864
2865 \begin_layout Plain Layout
2866 Sectioned bibliography
2867 \end_layout
2868
2869 \end_inset
2870
2871 .
2872  In the document, you have to enclose the sections, which shall contain
2873  their own bibliography (including the Bib\SpecialChar TeX
2874  bibliography itself), between
2875  
2876 \begin_inset Flex Code
2877 status collapsed
2878
2879 \begin_layout Plain Layout
2880
2881 \backslash
2882 begin{btUnit}
2883 \end_layout
2884
2885 \end_inset
2886
2887  and 
2888 \begin_inset Flex Code
2889 status collapsed
2890
2891 \begin_layout Plain Layout
2892
2893 \backslash
2894 end{btUnit}
2895 \end_layout
2896
2897 \end_inset
2898
2899  (those commands have to be inserted as \SpecialChar TeX
2900  code).
2901  The bibliography will contain all references that have been cited in the
2902  current 
2903 \begin_inset Flex Code
2904 status collapsed
2905
2906 \begin_layout Plain Layout
2907 btUnit
2908 \end_layout
2909
2910 \end_inset
2911
2912 .
2913  
2914 \series bold
2915 Note:
2916 \series default
2917  If you are using this approach, then every citation reference has to be
2918  inside some 
2919 \begin_inset Flex Code
2920 status collapsed
2921
2922 \begin_layout Plain Layout
2923 btUnit
2924 \end_layout
2925
2926 \end_inset
2927
2928 .
2929  Also, the 
2930 \begin_inset Flex Code
2931 status collapsed
2932
2933 \begin_layout Plain Layout
2934 btUnit
2935 \end_layout
2936
2937 \end_inset
2938
2939 s cannot be nested.
2940 \end_layout
2941
2942 \begin_layout Section
2943 Multipart Documents
2944 \end_layout
2945
2946 \begin_layout Subsection
2947 General Operation
2948 \end_layout
2949
2950 \begin_layout Standard
2951 When you are working on a large file with many sections, it is often convenient
2952  to break up the document into several files, or perhaps you have something
2953  where a table may change from time to time, but the preceding text does
2954  not.
2955  In these cases, you should seriously consider using multipart documents.
2956  For example, scientific papers often have five major sections: the introduction
2957 , observations, results, discussion, and conclusion.
2958  Each of these could be its own separate \SpecialChar LyX
2959  file, with one 
2960 \begin_inset Quotes eld
2961 \end_inset
2962
2963 master
2964 \begin_inset Quotes erd
2965 \end_inset
2966
2967  file which contains the title, authors, abstract, references, etc., plus
2968  the five included files.
2969  It is important to note that each of these files is a full \SpecialChar LyX
2970  file which
2971  can be formatted and printed on its own, as well as included in a master
2972  file.
2973  Each of these files must have the same document class, however—don't attempt
2974  to mix book classes with article classes.
2975  You may also include \SpecialChar LaTeX
2976  files; however, these files must not have their own
2977  preamble (i.
2978 \begin_inset space \thinspace{}
2979 \end_inset
2980
2981 e.
2982 \begin_inset space \space{}
2983 \end_inset
2984
2985 everything up to and including the 
2986 \begin_inset Flex Code
2987 status collapsed
2988
2989 \begin_layout Plain Layout
2990
2991 \backslash
2992 begin{document}
2993 \end_layout
2994
2995 \end_inset
2996
2997  line as well as the 
2998 \begin_inset Flex Code
2999 status collapsed
3000
3001 \begin_layout Plain Layout
3002
3003 \backslash
3004 end{document}
3005 \end_layout
3006
3007 \end_inset
3008
3009  line must be deleted) or else errors will be generated when you try to
3010  make a DVI file.
3011 \end_layout
3012
3013 \begin_layout Standard
3014 \SpecialChar LyX
3015  allows you to include files quite easily with 
3016 \begin_inset Flex MenuItem
3017 status collapsed
3018
3019 \begin_layout Plain Layout
3020 Insert\SpecialChar menuseparator
3021 ChiId
3022 \begin_inset space ~
3023 \end_inset
3024
3025 Document
3026 \end_layout
3027
3028 \end_inset
3029
3030 .
3031  When you click on this selection a small box is inserted into the file
3032  at the current cursor location.
3033  Clicking on the box raises a dialog which allows you to select the file
3034  to be included, and the method of its inclusion.
3035  
3036 \end_layout
3037
3038 \begin_layout Standard
3039 The file selection box should by now be obvious.
3040  The three inclusion methods are 
3041 \begin_inset Quotes eld
3042 \end_inset
3043
3044 include
3045 \begin_inset Quotes erd
3046 \end_inset
3047
3048
3049 \begin_inset Quotes eld
3050 \end_inset
3051
3052 input
3053 \begin_inset Quotes erd
3054 \end_inset
3055
3056 , and 
3057 \begin_inset Quotes eld
3058 \end_inset
3059
3060 verbatim
3061 \begin_inset Quotes erd
3062 \end_inset
3063
3064 .
3065  The difference between 
3066 \begin_inset Quotes eld
3067 \end_inset
3068
3069 include
3070 \begin_inset Quotes erd
3071 \end_inset
3072
3073  and 
3074 \begin_inset Quotes eld
3075 \end_inset
3076
3077 input
3078 \begin_inset Quotes erd
3079 \end_inset
3080
3081  is really only meaningful to \SpecialChar LaTeX
3082 perts, but the practical difference is that
3083  files that are 
3084 \begin_inset Quotes eld
3085 \end_inset
3086
3087 included
3088 \begin_inset Quotes erd
3089 \end_inset
3090
3091  are typeset beginning on a new page, while files that are 
3092 \begin_inset Quotes eld
3093 \end_inset
3094
3095 inputted
3096 \begin_inset Quotes erd
3097 \end_inset
3098
3099  are typeset starting on the current page.
3100 \end_layout
3101
3102 \begin_layout Standard
3103 Generally, the master file is converted into a full \SpecialChar LaTeX
3104  file before typesetting,
3105  while the included files are converted to \SpecialChar LaTeX
3106  files that do not have all the
3107  preamble information.
3108 \end_layout
3109
3110 \begin_layout Standard
3111
3112 \begin_inset Quotes eld
3113 \end_inset
3114
3115 verbatim
3116 \begin_inset Quotes erd
3117 \end_inset
3118
3119  included file allows you to include a file typeset exactly as it appears
3120  in the file, i.
3121 \begin_inset space \thinspace{}
3122 \end_inset
3123
3124 e.
3125 \begin_inset space \space{}
3126 \end_inset
3127
3128 in 
3129 \begin_inset Flex Code
3130 status collapsed
3131
3132 \begin_layout Plain Layout
3133 verbatim
3134 \end_layout
3135
3136 \end_inset
3137
3138  mode, with the characters set in a fixed-width typewriter font.
3139  Normally, spaces in this file are invisible, though two consecutive spaces
3140  are conserved, unlike \SpecialChar LyX
3141 's normal treatment of spaces.
3142  However, setting the 
3143 \begin_inset Flex MenuItem
3144 status collapsed
3145
3146 \begin_layout Plain Layout
3147 Mark
3148 \begin_inset space ~
3149 \end_inset
3150
3151 spaces
3152 \begin_inset space ~
3153 \end_inset
3154
3155 in
3156 \begin_inset space ~
3157 \end_inset
3158
3159 output
3160 \end_layout
3161
3162 \end_inset
3163
3164  checkbox typesets a mark to unambiguously define the presence of a space.
3165  
3166 \end_layout
3167
3168 \begin_layout Subsection
3169 Cross-References Between Files
3170 \end_layout
3171
3172 \begin_layout Standard
3173 \begin_inset Box Shadowbox
3174 position "t"
3175 hor_pos "c"
3176 has_inner_box 1
3177 inner_pos "t"
3178 use_parbox 0
3179 use_makebox 0
3180 width "100col%"
3181 special "none"
3182 height "1in"
3183 height_special "totalheight"
3184 thickness "0.4pt"
3185 separation "3pt"
3186 shadowsize "4pt"
3187 framecolor "black"
3188 backgroundcolor "none"
3189 status open
3190
3191 \begin_layout Plain Layout
3192 This section is somewhat out of date.
3193  Need to describe default master documents and how children are opened when
3194  the master is.
3195  [[FIXME]]
3196 \end_layout
3197
3198 \end_inset
3199
3200
3201 \end_layout
3202
3203 \begin_layout Standard
3204 It is possible to set up cross-references between the different files.
3205  First, open all the files in question: let's call them A and B in a two
3206  file example, where B is included in A.
3207  Let's say you insert a label in A, then want to reference it in B.
3208  Open the cross-reference dialog whilst in document B, and you can select
3209  the 
3210 \begin_inset Quotes eld
3211 \end_inset
3212
3213 buffer
3214 \begin_inset Quotes erd
3215 \end_inset
3216
3217  to use.
3218 \end_layout
3219
3220 \begin_layout Subsection
3221 Bibliography Lists in all Subdocuments
3222 \end_layout
3223
3224 \begin_layout Standard
3225 \begin_inset Box Frameless
3226 position "t"
3227 hor_pos "c"
3228 has_inner_box 1
3229 inner_pos "t"
3230 use_parbox 0
3231 use_makebox 0
3232 width "100col%"
3233 special "none"
3234 height "1in"
3235 height_special "totalheight"
3236 thickness "0.4pt"
3237 separation "3pt"
3238 shadowsize "4pt"
3239 framecolor "black"
3240 backgroundcolor "none"
3241 status open
3242
3243 \begin_layout Plain Layout
3244 This section also needs updating.
3245  There is now material about this on the wiki, and it could be copied here.
3246 \end_layout
3247
3248 \end_inset
3249
3250
3251 \end_layout
3252
3253 \begin_layout Standard
3254 Copy the bibliography list with all entries to all subdocuments and transform
3255  them to a comment.
3256  This way \SpecialChar LyX
3257  will find the 
3258 \begin_inset Flex Code
3259 status collapsed
3260
3261 \begin_layout Plain Layout
3262 .bib
3263 \end_layout
3264
3265 \end_inset
3266
3267 -files and you can easily insert references without making the bibliography
3268  list visible.
3269 \end_layout
3270
3271 \begin_layout Standard
3272 As the bibliography list is in a comment, \SpecialChar LaTeX
3273  won't use it and the references
3274  will look like this: [?], instead of like this: [1].
3275  One solution is to use the \SpecialChar LaTeX
3276 -package 
3277 \begin_inset Flex Code
3278 status collapsed
3279
3280 \begin_layout Plain Layout
3281 comment
3282 \end_layout
3283
3284 \end_inset
3285
3286  that will only include comments by processing the files separately.
3287  To do this, add in the \SpecialChar LaTeX
3288  preamble of every subdocument the following:
3289 \end_layout
3290
3291 \begin_layout LyX-Code
3292
3293 \backslash
3294 usepackage{comment}
3295 \end_layout
3296
3297 \begin_layout LyX-Code
3298
3299 \backslash
3300 includecomment{comment}
3301 \end_layout
3302
3303 \begin_layout Standard
3304 See also 
3305 \begin_inset Flex URL
3306 status collapsed
3307
3308 \begin_layout Plain Layout
3309
3310 http://wiki.lyx.org/FAQ/Unsorted#toc31
3311 \end_layout
3312
3313 \end_inset
3314
3315 .
3316 \end_layout
3317
3318 \begin_layout Section
3319 \SpecialChar LyX
3320  Archives
3321 \end_layout
3322
3323 \begin_layout Standard
3324 Users sometimes need to be able to 
3325 \begin_inset Quotes eld
3326 \end_inset
3327
3328 bundle
3329 \begin_inset Quotes erd
3330 \end_inset
3331
3332  a \SpecialChar LyX
3333  file together with all the images (and other files) on which it depends,
3334  either for sending to a publisher or for sharing with a co-author.
3335  \SpecialChar LyX
3336  2.0 includes a Python script (
3337 \begin_inset Flex Code
3338 status collapsed
3339
3340 \begin_layout Plain Layout
3341 lyxpak.py
3342 \end_layout
3343
3344 \end_inset
3345
3346 ) that automates this process.
3347  To use it, you must have either the 
3348 \begin_inset Flex Code
3349 status collapsed
3350
3351 \begin_layout Plain Layout
3352 zipfile
3353 \end_layout
3354
3355 \end_inset
3356
3357  or 
3358 \begin_inset Flex Code
3359 status collapsed
3360
3361 \begin_layout Plain Layout
3362 tarfile
3363 \end_layout
3364
3365 \end_inset
3366
3367  python modules installed on your system.
3368  By default, the script prefers the 
3369 \begin_inset Flex Code
3370 status collapsed
3371
3372 \begin_layout Plain Layout
3373 gzip
3374 \end_layout
3375
3376 \end_inset
3377
3378 -compressed 
3379 \begin_inset Flex Code
3380 status collapsed
3381
3382 \begin_layout Plain Layout
3383 tar
3384 \end_layout
3385
3386 \end_inset
3387
3388  format on Unix-like systems and the 
3389 \begin_inset Flex Code
3390 status collapsed
3391
3392 \begin_layout Plain Layout
3393 zip
3394 \end_layout
3395
3396 \end_inset
3397
3398  format on Windows.
3399 \end_layout
3400
3401 \begin_layout Standard
3402 \SpecialChar LyX
3403 's configuration process will set the script up to export a `\SpecialChar LyX
3404  Archive',
3405  and this format will then be available under 
3406 \begin_inset Flex Code
3407 status collapsed
3408
3409 \begin_layout Plain Layout
3410 File\SpecialChar menuseparator
3411 Export
3412 \end_layout
3413
3414 \end_inset
3415
3416 .
3417 \end_layout
3418
3419 \begin_layout Standard
3420 Independently of the platform, the generation of a particular archive format
3421  can be forced by adding either the 
3422 \begin_inset Flex Code
3423 status collapsed
3424
3425 \begin_layout Plain Layout
3426 -t
3427 \end_layout
3428
3429 \end_inset
3430
3431  (for the 
3432 \begin_inset Flex Code
3433 status collapsed
3434
3435 \begin_layout Plain Layout
3436 tar
3437 \end_layout
3438
3439 \end_inset
3440
3441  format) or 
3442 \begin_inset Flex Code
3443 status collapsed
3444
3445 \begin_layout Plain Layout
3446 -z
3447 \end_layout
3448
3449 \end_inset
3450
3451  (for the 
3452 \begin_inset Flex Code
3453 status collapsed
3454
3455 \begin_layout Plain Layout
3456 zip
3457 \end_layout
3458
3459 \end_inset
3460
3461  format) switch to the 
3462 \begin_inset Flex Code
3463 status collapsed
3464
3465 \begin_layout Plain Layout
3466 \SpecialChar LyX
3467 \SpecialChar menuseparator
3468 \SpecialChar LyX
3469  Archive
3470 \end_layout
3471
3472 \end_inset
3473
3474  converter in 
3475 \begin_inset Flex Code
3476 status collapsed
3477
3478 \begin_layout Plain Layout
3479 Tools\SpecialChar menuseparator
3480 Preferences\SpecialChar menuseparator
3481 File Handling\SpecialChar menuseparator
3482 Converters
3483 \end_layout
3484
3485 \end_inset
3486
3487 .
3488  (Make sure you add the switch after the script name, not before it.)
3489 \end_layout
3490
3491 \begin_layout Section
3492 Fancy Headers and Footers
3493 \end_layout
3494
3495 \begin_layout Standard
3496 The default page layout is rather plain; for an 
3497 \begin_inset Flex Code
3498 status collapsed
3499
3500 \begin_layout Plain Layout
3501 article
3502 \end_layout
3503
3504 \end_inset
3505
3506  document class, all you get is a centered page number at the bottom of
3507  the page.
3508  This document uses KOMA-script's book class, so it appears to be a bit
3509  fancier.
3510  But to really put on a show, you need to set the document page style to
3511  
3512 \begin_inset Quotes eld
3513 \end_inset
3514
3515 fancy
3516 \begin_inset Quotes erd
3517 \end_inset
3518
3519 , as mentioned in the 
3520 \emph on
3521 User Guide
3522 \emph default
3523 .
3524  This section describes the \SpecialChar LaTeX
3525  code you need to insert in your \SpecialChar LaTeX
3526  preamble in
3527  order to get the desired effects.
3528 \end_layout
3529
3530 \begin_layout Standard
3531 For more information on fancy headers, see the 
3532 \begin_inset Flex Code
3533 status collapsed
3534
3535 \begin_layout Plain Layout
3536 fancyhdr
3537 \end_layout
3538
3539 \end_inset
3540
3541  package documentation.
3542  (
3543 \begin_inset Flex URL
3544 status collapsed
3545
3546 \begin_layout Plain Layout
3547
3548 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3549 \end_layout
3550
3551 \end_inset
3552
3553 )
3554 \end_layout
3555
3556 \begin_layout Standard
3557 The page header is divided into three fields, not surprisingly labeled 
3558 \begin_inset Quotes eld
3559 \end_inset
3560
3561 left
3562 \begin_inset Quotes erd
3563 \end_inset
3564
3565
3566 \begin_inset Quotes eld
3567 \end_inset
3568
3569 center
3570 \begin_inset Quotes erd
3571 \end_inset
3572
3573 , and 
3574 \begin_inset Quotes eld
3575 \end_inset
3576
3577 right
3578 \begin_inset Quotes erd
3579 \end_inset
3580
3581 .
3582  The footer is also divided into these three fields.
3583  The \SpecialChar LaTeX
3584  commands to set these fields in the simplest manner are 
3585 \begin_inset Flex Code
3586 status collapsed
3587
3588 \begin_layout Plain Layout
3589
3590 \backslash
3591 lhead
3592 \end_layout
3593
3594 \end_inset
3595
3596
3597 \begin_inset Flex Code
3598 status collapsed
3599
3600 \begin_layout Plain Layout
3601
3602 \backslash
3603 chead
3604 \end_layout
3605
3606 \end_inset
3607
3608
3609 \begin_inset Flex Code
3610 status collapsed
3611
3612 \begin_layout Plain Layout
3613
3614 \backslash
3615 rhead
3616 \end_layout
3617
3618 \end_inset
3619
3620
3621 \begin_inset Flex Code
3622 status collapsed
3623
3624 \begin_layout Plain Layout
3625
3626 \backslash
3627 lfoot
3628 \end_layout
3629
3630 \end_inset
3631
3632 , etc.
3633  Suppose you wish to put your name in the upper left hand corner of each
3634  page.
3635  Simply insert the following command in the preamble: 
3636 \end_layout
3637
3638 \begin_layout Standard
3639
3640 \family typewriter
3641
3642 \backslash
3643 lhead{John Q.
3644  DocWriter}
3645 \end_layout
3646
3647 \begin_layout Standard
3648 You will now see your name in the upper left.
3649  If a field has a default entry that you would like to get rid of (often
3650  the page number appears in the central footer) simply include a command
3651  with a blank argument, e.
3652 \begin_inset space \thinspace{}
3653 \end_inset
3654
3655 g.:
3656 \end_layout
3657
3658 \begin_layout Standard
3659
3660 \family typewriter
3661
3662 \backslash
3663 cfoot{}
3664 \end_layout
3665
3666 \begin_layout Standard
3667 Let's get really fancy: lets put the section number with the word 
3668 \begin_inset Quotes eld
3669 \end_inset
3670
3671 Section
3672 \begin_inset Quotes erd
3673 \end_inset
3674
3675  (e.
3676 \begin_inset space \thinspace{}
3677 \end_inset
3678
3679 g.
3680 \begin_inset space \space{}
3681 \end_inset
3682
3683 Section 3) in the upper left, the page number (e.
3684 \begin_inset space \thinspace{}
3685 \end_inset
3686
3687 g.
3688 \begin_inset space \space{}
3689 \end_inset
3690
3691 Page 4) in the upper right, your name in the lower left, and the date in
3692  the lower right.
3693  The following commands should now appear in the preamble:
3694 \end_layout
3695
3696 \begin_layout Standard
3697
3698 \family typewriter
3699
3700 \backslash
3701 lhead{Section 
3702 \backslash
3703 thesection}
3704 \end_layout
3705
3706 \begin_layout Standard
3707
3708 \family typewriter
3709
3710 \backslash
3711 chead{}
3712 \end_layout
3713
3714 \begin_layout Standard
3715
3716 \family typewriter
3717
3718 \backslash
3719 rhead{Page 
3720 \backslash
3721 thepage}
3722 \end_layout
3723
3724 \begin_layout Standard
3725
3726 \family typewriter
3727
3728 \backslash
3729 lfoot{John Q.
3730  DocWriter}
3731 \end_layout
3732
3733 \begin_layout Standard
3734
3735 \family typewriter
3736
3737 \backslash
3738 cfoot{}
3739 \end_layout
3740
3741 \begin_layout Standard
3742
3743 \family typewriter
3744
3745 \backslash
3746 rfoot{
3747 \backslash
3748 today}
3749 \end_layout
3750
3751 \begin_layout Standard
3752 The commands 
3753 \begin_inset Flex Code
3754 status collapsed
3755
3756 \begin_layout Plain Layout
3757
3758 \backslash
3759 thesection
3760 \end_layout
3761
3762 \end_inset
3763
3764  and 
3765 \begin_inset Flex Code
3766 status collapsed
3767
3768 \begin_layout Plain Layout
3769
3770 \backslash
3771 thepage
3772 \end_layout
3773
3774 \end_inset
3775
3776  access \SpecialChar LaTeX
3777 's section and page counters, and so print out the current section
3778  and page numbers.
3779  
3780 \begin_inset Flex Code
3781 status collapsed
3782
3783 \begin_layout Plain Layout
3784
3785 \backslash
3786 today
3787 \end_layout
3788
3789 \end_inset
3790
3791  simply prints out today's date.
3792 \end_layout
3793
3794 \begin_layout Standard
3795 The thicknesses of the horizontal rules drawn beneath the header and above
3796  the footer can also be modified.
3797  If you don't want one of the rules, set its thickness to 0.
3798  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3799  Use commands
3800 \family typewriter
3801  
3802 \family default
3803 like 
3804 \begin_inset Flex Code
3805 status collapsed
3806
3807 \begin_layout Plain Layout
3808
3809 \backslash
3810 renewcommand{
3811 \backslash
3812 headrulewidth}{0.4pt}
3813 \end_layout
3814
3815 \end_inset
3816
3817  and 
3818 \begin_inset Flex Code
3819 status collapsed
3820
3821 \begin_layout Plain Layout
3822
3823 \backslash
3824 renewcommand{
3825 \backslash
3826 footrulewidth}{0.4pt}
3827 \end_layout
3828
3829 \end_inset
3830
3831  to set the thicknesses.
3832 \end_layout
3833
3834 \begin_layout Standard
3835 You can switch the header/footer settings on and off for individual pages
3836  using commands like 
3837 \begin_inset Flex Code
3838 status collapsed
3839
3840 \begin_layout Plain Layout
3841
3842 \backslash
3843 thispagestyle{empty}
3844 \end_layout
3845
3846 \end_inset
3847
3848
3849 \begin_inset Flex Code
3850 status collapsed
3851
3852 \begin_layout Plain Layout
3853
3854 \backslash
3855 thispagestyle{plain}
3856 \end_layout
3857
3858 \end_inset
3859
3860 , and 
3861 \begin_inset Flex Code
3862 status collapsed
3863
3864 \begin_layout Plain Layout
3865
3866 \backslash
3867 thispagestyle{fancy}
3868 \end_layout
3869
3870 \end_inset
3871
3872 .
3873  Simply insert them in the text on the page you want changed and mark them
3874  as \SpecialChar TeX
3875  code.
3876  In fact, title pages are marked as plain by default, while following pages
3877  are marked fancy when using the global fancy setting.
3878 \end_layout
3879
3880 \begin_layout Standard
3881 As a final example, it is possible to include an image in the header or
3882  footer.
3883  Suppose you want to put a company logo in the upper lefthand corner.
3884  You might try something like
3885 \end_layout
3886
3887 \begin_layout Standard
3888
3889 \family typewriter
3890
3891 \backslash
3892 lhead{
3893 \backslash
3894 resizebox{1in}{!}{
3895 \backslash
3896 includegraphics{logo.eps}}}
3897 \end_layout
3898
3899 \begin_layout Standard
3900 \noindent
3901 (you may need to preface this with 
3902 \begin_inset Flex Code
3903 status collapsed
3904
3905 \begin_layout Plain Layout
3906 \noindent
3907
3908 \backslash
3909 usepackage{graphics}
3910 \end_layout
3911
3912 \end_inset
3913
3914  if you don't include graphics elsewhere in your document).
3915 \end_layout
3916
3917 \begin_layout Section
3918 Itemize Bullet Selection
3919 \begin_inset CommandInset label
3920 LatexCommand label
3921 name "sec:bullet"
3922
3923 \end_inset
3924
3925
3926 \end_layout
3927
3928 \begin_layout Standard
3929 by
3930 \noun on
3931  Allan Rae
3932 \end_layout
3933
3934 \begin_layout Subsection
3935 Introduction
3936 \end_layout
3937
3938 \begin_layout Standard
3939 \SpecialChar LyX
3940  provides 216 bullet shapes that can be accessed from a simple dialog.
3941  Using this dialog you can easily specify what bullet shape to use at each
3942  level of an itemized list.
3943  These settings are document-wide so you won't be able to specify different
3944  sets of bullets for different paragraphs.
3945 \begin_inset Foot
3946 status collapsed
3947
3948 \begin_layout Plain Layout
3949 Well, actually you can but you'll have to do it by hand.
3950 \end_layout
3951
3952 \end_inset
3953
3954
3955 \end_layout
3956
3957 \begin_layout Subsection
3958 How it looks
3959 \end_layout
3960
3961 \begin_layout Standard
3962 Open the dialog by selecting the 
3963 \begin_inset Flex MenuItem
3964 status collapsed
3965
3966 \begin_layout Plain Layout
3967 Document\SpecialChar menuseparator
3968 Settings
3969 \end_layout
3970
3971 \end_inset
3972
3973  menu item and then select the 
3974 \begin_inset Flex MenuItem
3975 status collapsed
3976
3977 \begin_layout Plain Layout
3978 Bullets
3979 \end_layout
3980
3981 \end_inset
3982
3983  tab.
3984 \end_layout
3985
3986 \begin_layout Standard
3987 The dialog provides you with a table of bullet shapes.
3988  A column of buttons on the left of the table provides access to the six
3989  different panels of bullet shapes.
3990  The row of buttons across the top is used to select which bullet depth
3991  you are changing.
3992  A text entry under the table shows the currently selected bullet shape's
3993  \SpecialChar LaTeX
3994  equivalent and this can be edited if desired.
3995  If you do modify the text you will also need to specify any needed packages
3996  in the \SpecialChar LaTeX
3997  preamble.
3998 \end_layout
3999
4000 \begin_layout Standard
4001 The six panels are divided up by the packages they require.
4002  The following table shows the mappings from button name to \SpecialChar LaTeX
4003  package.
4004 \begin_inset Separator parbreak
4005 \end_inset
4006
4007
4008 \end_layout
4009
4010 \begin_layout Standard
4011 \align center
4012 \begin_inset Tabular
4013 <lyxtabular version="3" rows="7" columns="2">
4014 <features tabularvalignment="middle">
4015 <column alignment="center" valignment="top" width="0pt">
4016 <column alignment="center" valignment="top" width="0pt">
4017 <row>
4018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4019 \begin_inset Text
4020
4021 \begin_layout Plain Layout
4022
4023 \family roman
4024 \series medium
4025 \shape up
4026 \size normal
4027 \emph off
4028 \bar no
4029 \noun off
4030 \color none
4031 Button
4032 \end_layout
4033
4034 \end_inset
4035 </cell>
4036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4037 \begin_inset Text
4038
4039 \begin_layout Plain Layout
4040
4041 \family roman
4042 \series medium
4043 \shape up
4044 \size normal
4045 \emph off
4046 \bar no
4047 \noun off
4048 \color none
4049 Packages Required
4050 \end_layout
4051
4052 \end_inset
4053 </cell>
4054 </row>
4055 <row>
4056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4057 \begin_inset Text
4058
4059 \begin_layout Plain Layout
4060
4061 \family sans
4062 \series medium
4063 \shape up
4064 \size normal
4065 \emph off
4066 \bar no
4067 \noun off
4068 \color none
4069 Standard
4070 \end_layout
4071
4072 \end_inset
4073 </cell>
4074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4075 \begin_inset Text
4076
4077 \begin_layout Plain Layout
4078
4079 \series medium
4080 \shape up
4081 \size normal
4082 \emph off
4083 \bar no
4084 \noun off
4085 \color none
4086 base \SpecialChar LaTeX
4087
4088 \end_layout
4089
4090 \end_inset
4091 </cell>
4092 </row>
4093 <row>
4094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4095 \begin_inset Text
4096
4097 \begin_layout Plain Layout
4098
4099 \family sans
4100 \series medium
4101 \shape up
4102 \size normal
4103 \emph off
4104 \bar no
4105 \noun off
4106 \color none
4107 Maths
4108 \end_layout
4109
4110 \end_inset
4111 </cell>
4112 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4113 \begin_inset Text
4114
4115 \begin_layout Plain Layout
4116
4117 \family typewriter
4118 \series medium
4119 \shape up
4120 \size normal
4121 \emph off
4122 \bar no
4123 \noun off
4124 \color none
4125 amssymb.sty
4126 \end_layout
4127
4128 \end_inset
4129 </cell>
4130 </row>
4131 <row>
4132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4133 \begin_inset Text
4134
4135 \begin_layout Plain Layout
4136
4137 \family sans
4138 \series medium
4139 \shape up
4140 \size normal
4141 \emph off
4142 \bar no
4143 \noun off
4144 \color none
4145 Ding1
4146 \end_layout
4147
4148 \end_inset
4149 </cell>
4150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4151 \begin_inset Text
4152
4153 \begin_layout Plain Layout
4154
4155 \family typewriter
4156 \series medium
4157 \shape up
4158 \size normal
4159 \emph off
4160 \bar no
4161 \noun off
4162 \color none
4163 pifont.sty
4164 \end_layout
4165
4166 \end_inset
4167 </cell>
4168 </row>
4169 <row>
4170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4171 \begin_inset Text
4172
4173 \begin_layout Plain Layout
4174
4175 \family sans
4176 \series medium
4177 \shape up
4178 \size normal
4179 \emph off
4180 \bar no
4181 \noun off
4182 \color none
4183 Ding2
4184 \end_layout
4185
4186 \end_inset
4187 </cell>
4188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4189 \begin_inset Text
4190
4191 \begin_layout Plain Layout
4192
4193 \family typewriter
4194 \series medium
4195 \shape up
4196 \size normal
4197 \emph off
4198 \bar no
4199 \noun off
4200 \color none
4201 pifont.sty
4202 \end_layout
4203
4204 \end_inset
4205 </cell>
4206 </row>
4207 <row>
4208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4209 \begin_inset Text
4210
4211 \begin_layout Plain Layout
4212
4213 \family sans
4214 \series medium
4215 \shape up
4216 \size normal
4217 \emph off
4218 \bar no
4219 \noun off
4220 \color none
4221 Ding3
4222 \end_layout
4223
4224 \end_inset
4225 </cell>
4226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4227 \begin_inset Text
4228
4229 \begin_layout Plain Layout
4230
4231 \family typewriter
4232 \series medium
4233 \shape up
4234 \size normal
4235 \emph off
4236 \bar no
4237 \noun off
4238 \color none
4239 pifont.sty
4240 \end_layout
4241
4242 \end_inset
4243 </cell>
4244 </row>
4245 <row>
4246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4247 \begin_inset Text
4248
4249 \begin_layout Plain Layout
4250
4251 \family sans
4252 \series medium
4253 \shape up
4254 \size normal
4255 \emph off
4256 \bar no
4257 \noun off
4258 \color none
4259 Ding4
4260 \end_layout
4261
4262 \end_inset
4263 </cell>
4264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4265 \begin_inset Text
4266
4267 \begin_layout Plain Layout
4268
4269 \family typewriter
4270 \series medium
4271 \shape up
4272 \size normal
4273 \emph off
4274 \bar no
4275 \noun off
4276 \color none
4277 pifont.sty
4278 \end_layout
4279
4280 \end_inset
4281 </cell>
4282 </row>
4283 </lyxtabular>
4284
4285 \end_inset
4286
4287
4288 \end_layout
4289
4290 \begin_layout Standard
4291 \SpecialChar LyX
4292  doesn't stop you using bullets from packages you don't have.
4293  If you get errors from \SpecialChar LaTeX
4294  when you try to view or print the file, then it
4295  is likely you are missing a package.
4296 \begin_inset Foot
4297 status collapsed
4298
4299 \begin_layout Plain Layout
4300 \SpecialChar LyX
4301  doesn't restrict your use since you may be editing locally and exporting
4302  elsewhere.
4303 \end_layout
4304
4305 \end_inset
4306
4307
4308 \end_layout
4309
4310 \begin_layout Subsection
4311 How to use it
4312 \end_layout
4313
4314 \begin_layout Standard
4315 Select which bullet depth you want to change then select the bullet shape
4316  and size.
4317  Any changes will not be visible in \SpecialChar LyX
4318 , but are visible when viewing the document.
4319 \end_layout
4320
4321 \begin_layout Standard
4322 You can reset a bullet shape to the default simply by clicking your right
4323  mouse button on the appropriate bullet depth button.
4324 \begin_inset Foot
4325 status collapsed
4326
4327 \begin_layout Plain Layout
4328 If you 
4329 \emph on
4330 really
4331 \emph default
4332  want to have multiple sets of paragraphs with different sets of bullets
4333  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4334  code.
4335  The bullet selection dialog can help though because it provides you with
4336  the \SpecialChar LaTeX
4337  code for a wide range of bullet shapes.
4338  To make your own custom paragraphs you have the following options:
4339 \end_layout
4340
4341 \begin_layout Plain Layout
4342 \begin_inset ERT
4343 status open
4344
4345 \begin_layout Plain Layout
4346
4347
4348 \backslash
4349 let
4350 \backslash
4351 savelabelitemi=
4352 \backslash
4353 labelitemi
4354 \end_layout
4355
4356 \end_inset
4357
4358
4359 \end_layout
4360
4361 \begin_layout Plain Layout
4362 \begin_inset ERT
4363 status open
4364
4365 \begin_layout Plain Layout
4366
4367
4368 \backslash
4369 renewcommand
4370 \backslash
4371 labelitemi[0]{
4372 \backslash
4373 small
4374 \backslash
4375 (
4376 \backslash
4377 sharp
4378 \backslash
4379 )}
4380 \end_layout
4381
4382 \end_inset
4383
4384
4385 \end_layout
4386
4387 \begin_layout Itemize
4388 Use the \SpecialChar LaTeX
4389  command 
4390 \begin_inset Flex Code
4391 status collapsed
4392
4393 \begin_layout Plain Layout
4394
4395 \backslash
4396 renewcommand{}{}
4397 \end_layout
4398
4399 \end_inset
4400
4401  to specify a new bullet shape for a given depth.
4402  You'll also need to save the current bullet shape so you can restore it
4403  again afterwards.
4404  In this itemized list the following \SpecialChar LaTeX
4405  code was used to change the bullet
4406  used for the first depth.
4407 \begin_inset Separator parbreak
4408 \end_inset
4409
4410
4411 \end_layout
4412
4413 \begin_deeper
4414 \begin_layout LyX-Code
4415
4416 \backslash
4417 let
4418 \backslash
4419 savelabelitemi=
4420 \backslash
4421 labelitemi 
4422 \end_layout
4423
4424 \begin_layout LyX-Code
4425
4426 \backslash
4427 renewcommand
4428 \backslash
4429 labelitemi[0]{
4430 \backslash
4431 small
4432 \backslash
4433 (
4434 \backslash
4435 sharp
4436 \backslash
4437 )}
4438 \end_layout
4439
4440 \end_deeper
4441 \begin_layout Itemize
4442 Note that the itemize depth is specified in Roman numerals as part of the
4443  
4444 \family typewriter
4445
4446 \backslash
4447 labelitem
4448 \family default
4449  command.
4450 \end_layout
4451
4452 \begin_layout Itemize
4453 \begin_inset ERT
4454 status open
4455
4456 \begin_layout Plain Layout
4457
4458 [
4459 \backslash
4460 (
4461 \backslash
4462 star
4463 \backslash
4464 )]
4465 \end_layout
4466
4467 \end_inset
4468
4469  Specify each individual entry by starting each item with the bullet shape
4470  enclosed in square brackets and set as 
4471 \begin_inset Flex MenuItem
4472 status collapsed
4473
4474 \begin_layout Plain Layout
4475 \SpecialChar TeX
4476  Code
4477 \end_layout
4478
4479 \end_inset
4480
4481 .
4482  For example, this item was started with 
4483 \begin_inset Flex Code
4484 status collapsed
4485
4486 \begin_layout Plain Layout
4487 [
4488 \backslash
4489 (
4490 \backslash
4491 star
4492 \backslash
4493 )]
4494 \end_layout
4495
4496 \end_inset
4497
4498 .
4499 \end_layout
4500
4501 \begin_layout Plain Layout
4502 \begin_inset ERT
4503 status open
4504
4505 \begin_layout Plain Layout
4506
4507
4508 \backslash
4509 renewcommand
4510 \backslash
4511 labelitemi[0]{
4512 \backslash
4513 savelabelitemi}
4514 \end_layout
4515
4516 \end_inset
4517
4518
4519 \end_layout
4520
4521 \begin_layout Plain Layout
4522 You'll also need to revert the labelitem back to its previous setting for
4523  the global bullet shape settings to remain in effect.
4524  The way used here was:
4525 \end_layout
4526
4527 \begin_layout LyX-Code
4528
4529 \backslash
4530 renewcommand
4531 \backslash
4532 labelitemi[0]{
4533 \backslash
4534 savelabelitemi}
4535 \end_layout
4536
4537 \end_inset
4538
4539
4540 \end_layout
4541
4542 \begin_layout Chapter
4543 \SpecialChar LyX
4544  and the World Wide Web
4545 \end_layout
4546
4547 \begin_layout Standard
4548 \SpecialChar LyX
4549  has long supported the export of documents to various web-friendly formats,
4550  such as HTML.
4551  Before verson 2.0, however, HTML export was always accomplished by the use
4552  of external converters.
4553 \begin_inset Foot
4554 status collapsed
4555
4556 \begin_layout Plain Layout
4557 For details on the use of external converters with \SpecialChar LyX
4558 , see the 
4559 \emph on
4560 Converters
4561 \emph default
4562  section of the Customization manual.
4563 \end_layout
4564
4565 \end_inset
4566
4567  These fall into two large groups: there are converters that use \SpecialChar LaTeX
4568  as an
4569  intermediate format, such as 
4570 \begin_inset Flex Code
4571 status collapsed
4572
4573 \begin_layout Plain Layout
4574 htlatex
4575 \end_layout
4576
4577 \end_inset
4578
4579
4580 \begin_inset Flex Code
4581 status collapsed
4582
4583 \begin_layout Plain Layout
4584 html2latex
4585 \end_layout
4586
4587 \end_inset
4588
4589 , and 
4590 \begin_inset Flex Code
4591 status collapsed
4592
4593 \begin_layout Plain Layout
4594 plastex
4595 \end_layout
4596
4597 \end_inset
4598
4599 , relying upon \SpecialChar LyX
4600  to produce the \SpecialChar LaTeX
4601 ; and there is a converter that works directly
4602  on \SpecialChar LyX
4603  files, 
4604 \begin_inset Flex Code
4605 status collapsed
4606
4607 \begin_layout Plain Layout
4608 e\SpecialChar LyX
4609 er
4610 \end_layout
4611
4612 \end_inset
4613
4614 .
4615  All of these have different advantages and disadvantages.
4616  
4617 \end_layout
4618
4619 \begin_layout Standard
4620 The \SpecialChar LaTeX
4621 -based converters have the advantage that, in principle, they know everythin
4622 g about the exported document that \SpecialChar LaTeX
4623  does.
4624  Such converters do not care, for example, if a certain block of code was
4625  produced by \SpecialChar LyX
4626  or was Evil Red Text.
4627  These converters know about 
4628 \begin_inset Flex Code
4629 status collapsed
4630
4631 \begin_layout Plain Layout
4632 aux
4633 \end_layout
4634
4635 \end_inset
4636
4637  files, counters, and references, and can often make use of the 
4638 \begin_inset Flex Code
4639 status collapsed
4640
4641 \begin_layout Plain Layout
4642 bbl
4643 \end_layout
4644
4645 \end_inset
4646
4647  files generated by Bib\SpecialChar TeX
4648 .
4649  On the other hand, \SpecialChar LaTeX
4650  is a very hard language to parse—it is sometimes said
4651  that only \SpecialChar TeX
4652  itself understands \SpecialChar TeX
4653 —and \SpecialChar LaTeX
4654 -based converters will often choke on
4655  what seem to be quite simple constructs; complex ones can throw them completely
4656 , and as of this writing, for example, the 
4657 \emph on
4658 Embedded Objects
4659 \emph default
4660  manual will not export with 
4661 \begin_inset Flex Code
4662 status collapsed
4663
4664 \begin_layout Plain Layout
4665 htlatex
4666 \end_layout
4667
4668 \end_inset
4669
4670 , though the others will.
4671  The other issue concerns how math is handled.
4672  These converters typically convert the formulae into little pictures that
4673  are then linked from the HTML document.
4674  Since these are actually generated by \SpecialChar LaTeX
4675 , they are accurate.
4676  But they do not scale well, and just getting them to look as if they are
4677  actually meant to be in your document—so that the font sizes seem to be
4678  roughly the same—can be a challenge.
4679 \end_layout
4680
4681 \begin_layout Standard
4682 Alex Fernandez's 
4683 \begin_inset Flex Code
4684 status collapsed
4685
4686 \begin_layout Plain Layout
4687 e\SpecialChar LyX
4688 er
4689 \end_layout
4690
4691 \end_inset
4692
4693  (
4694 \begin_inset CommandInset href
4695 LatexCommand href
4696 name "http://elyxer.nongnu.org/"
4697 target "http://elyxer.nongnu.org/"
4698
4699 \end_inset
4700
4701 ) solves some of these problems.
4702  In particular, the formulae it produces scale perfectly, since it renders
4703  math using a combination of HTML and CSS rather than converting the formulae
4704  to images.
4705  But even moderately complex formula are rendered less well than with 
4706 \begin_inset Flex Code
4707 status collapsed
4708
4709 \begin_layout Plain Layout
4710 htlatex
4711 \end_layout
4712
4713 \end_inset
4714
4715 ; this reflects the limitations of HTML.
4716 \begin_inset Foot
4717 status collapsed
4718
4719 \begin_layout Plain Layout
4720 That said, 
4721 \begin_inset Flex Code
4722 status collapsed
4723
4724 \begin_layout Plain Layout
4725 e\SpecialChar LyX
4726 er
4727 \end_layout
4728
4729 \end_inset
4730
4731  can also use jsMath and MathJax for equations, but this setting is only
4732  available globally and requires one to have access to a server that runs
4733  the backend.
4734 \end_layout
4735
4736 \end_inset
4737
4738  More importantly (as of version 1.1.1, at least), 
4739 \begin_inset Flex Code
4740 status collapsed
4741
4742 \begin_layout Plain Layout
4743 e\SpecialChar LyX
4744 er
4745 \end_layout
4746
4747 \end_inset
4748
4749  has limited support for math macros and no support for user-defined paragraph
4750  or character styles.
4751  These limitations make 
4752 \begin_inset Flex Code
4753 status collapsed
4754
4755 \begin_layout Plain Layout
4756 e\SpecialChar LyX
4757 er
4758 \end_layout
4759
4760 \end_inset
4761
4762  unsuitable for many of the documents \SpecialChar LyX
4763  users produce.
4764  In principle, of course, these problems could be solved, but the \SpecialChar LyX
4765  developers
4766  have decided to follow a different path and have made \SpecialChar LyX
4767  itself capable of
4768  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
4769 , DocBook, and plaintext.
4770 \end_layout
4771
4772 \begin_layout Standard
4773 As of this writing, XHTML output remains under development and should probably
4774  be regarded as 
4775 \begin_inset Quotes eld
4776 \end_inset
4777
4778 experimental
4779 \begin_inset Quotes erd
4780 \end_inset
4781
4782 .
4783 \begin_inset Foot
4784 status collapsed
4785
4786 \begin_layout Plain Layout
4787 The file 
4788 \begin_inset Flex Code
4789 status collapsed
4790
4791 \begin_layout Plain Layout
4792 development/HTML.notes
4793 \end_layout
4794
4795 \end_inset
4796
4797 , which can be found in the \SpecialChar LyX
4798  source tree or 
4799 \begin_inset CommandInset href
4800 LatexCommand href
4801 name "accessed online"
4802 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
4803
4804 \end_inset
4805
4806 , usually contains up-to-date information about the state of XHTML output.
4807  See also the list of XHTML bugs on 
4808 \begin_inset CommandInset href
4809 LatexCommand href
4810 name "the bug tracker"
4811 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"
4812
4813 \end_inset
4814
4815 .
4816 \end_layout
4817
4818 \end_inset
4819
4820  Still, the developers have chosen this approach because it has several
4821  potential advantages over the other two.
4822 \end_layout
4823
4824 \begin_layout Standard
4825 These advantages are primarily due to the fact that the XHTML output routines,
4826  since they are part of \SpecialChar LyX
4827 , know everything \SpecialChar LyX
4828  knows about the document being
4829  exported.
4830 \begin_inset Foot
4831 status collapsed
4832
4833 \begin_layout Plain Layout
4834 Another advantage is that, since these routines are internal to \SpecialChar LyX
4835 , they are
4836  immune to changes in \SpecialChar LyX
4837 's file format, or to changes in the semantics of
4838  existing insets.
4839 \end_layout
4840
4841 \end_inset
4842
4843  So they know about the table of contents (as displayed in the outline),
4844  about the counters associated with different paragraph styles, and about
4845  user-defined styles.
4846  The XHTML output routines know what \SpecialChar LyX
4847  knows about internationalization,
4848  too, so they will output 
4849 \begin_inset Quotes eld
4850 \end_inset
4851
4852 Chapter 1
4853 \begin_inset Quotes erd
4854 \end_inset
4855
4856  or 
4857 \begin_inset Quotes eld
4858 \end_inset
4859
4860
4861 \lang ngerman
4862 Kapitel
4863 \lang english
4864  1
4865 \begin_inset Quotes erd
4866 \end_inset
4867
4868 , depending upon the language in effect at the time.
4869  
4870 \end_layout
4871
4872 \begin_layout Standard
4873 Quite generally, the output routines know what \SpecialChar LyX
4874  knows about document layout,
4875  that is, about how the document is to be rendered on screen.
4876  We use this information when we output the document as XHTML.
4877  In particular, \SpecialChar LyX
4878  
4879 \emph on
4880 automatically
4881 \emph default
4882  generates CSS style information corresponding to the layout information
4883  it uses to render the document on screen: if section headings are supposed
4884  to be sans-serif and bold as seen in \SpecialChar LyX
4885 , then (by default) they will be sans-seri
4886 f and bold when viewed in a web browser, too.
4887  And this is true not just for pre-defined styles, like Section, but for
4888  any style, including user-defined styles.
4889  Indeed, the XHTML output routines make no distinction between user-defined
4890  paragraph and character styles and \SpecialChar LyX
4891 's own pre-defined styles: in each case,
4892  everything \SpecialChar LyX
4893  knows about the styles is contained in the layout files.
4894  And much the same is true as regards pre-defined textual insets, such as
4895  footnotes, and various custom insets.
4896  
4897 \end_layout
4898
4899 \begin_layout Standard
4900 The result is that XHTML output can be customized and extended in exactly
4901  the same way \SpecialChar LaTeX
4902  output can be customized and extended: through layout files
4903  and modules.
4904  See chapter five of the 
4905 \emph on
4906 Customization 
4907 \emph default
4908 manual for the details.
4909 \end_layout
4910
4911 \begin_layout Standard
4912 The remainder of this chapter contains more detailed information on XHTML
4913  output, its limitations, and ways to work around those limitations.
4914 \end_layout
4915
4916 \begin_layout Section
4917 Math Output in XHTML
4918 \end_layout
4919
4920 \begin_layout Standard
4921 \SpecialChar LyX
4922  offers four choices for how math is rendered.
4923  These have various advantages and disadvantages:
4924 \end_layout
4925
4926 \begin_layout Itemize
4927 MathML
4928 \begin_inset Newline newline
4929 \end_inset
4930
4931 MathML is a dialect of XML designed specifically for mathematics on the
4932  web, and it typically renders very well in browsers that support it.
4933  The disadvantage is that not all browsers support MathML, and support is
4934  not complete even in the Gecko-based browsers, such as Firefox.
4935 \begin_inset Newline newline
4936 \end_inset
4937
4938 If \SpecialChar LyX
4939  is unable to render a formula as MathML—for example, if the formula
4940  uses the 
4941 \begin_inset Flex Code
4942 status collapsed
4943
4944 \begin_layout Plain Layout
4945 xymatrix
4946 \end_layout
4947
4948 \end_inset
4949
4950  package or ERT—then it will instead output the formula as an image.
4951  
4952 \end_layout
4953
4954 \begin_layout Itemize
4955 HTML
4956 \begin_inset Newline newline
4957 \end_inset
4958
4959 As mentioned above, 
4960 \begin_inset Flex Code
4961 status collapsed
4962
4963 \begin_layout Plain Layout
4964 elyxer
4965 \end_layout
4966
4967 \end_inset
4968
4969  outputs math as HTML, styled by CSS.
4970 \begin_inset Foot
4971 status collapsed
4972
4973 \begin_layout Plain Layout
4974 \SpecialChar LyX
4975  has borrowed some of the CSS for its HTML output from 
4976 \begin_inset Flex Code
4977 status collapsed
4978
4979 \begin_layout Plain Layout
4980 elyxer
4981 \end_layout
4982
4983 \end_inset
4984
4985 .
4986 \end_layout
4987
4988 \end_inset
4989
4990  For simple formulae, this can work quite well, though with more complicated
4991  formulae it tends to break down.
4992  Still, this method has the advantage that it is very widely supported and
4993  so it may be appropriate for documents that contain only a little, fairly
4994  simple math.
4995 \begin_inset Newline newline
4996 \end_inset
4997
4998 If Lyx is unable to render a formula as HTML—for example, if the formula
4999  uses the 
5000 \begin_inset Flex Code
5001 status collapsed
5002
5003 \begin_layout Plain Layout
5004 xymatrix
5005 \end_layout
5006
5007 \end_inset
5008
5009  package or ERT—then it will instead output the formula as an image.
5010  
5011 \end_layout
5012
5013 \begin_layout Itemize
5014 Images
5015 \begin_inset Newline newline
5016 \end_inset
5017
5018 Like 
5019 \begin_inset Flex Code
5020 status collapsed
5021
5022 \begin_layout Plain Layout
5023 htlatex
5024 \end_layout
5025
5026 \end_inset
5027
5028 , \SpecialChar LyX
5029  will output formulae as images, the very same images, in fact, that are
5030  used for instant preview.
5031 \begin_inset Foot
5032 status collapsed
5033
5034 \begin_layout Plain Layout
5035 Instant preview does 
5036 \emph on
5037 not 
5038 \emph default
5039 have to be on for images to be output, however.
5040 \end_layout
5041
5042 \end_inset
5043
5044  The advantage to this method is that the images are simply generated by
5045  \SpecialChar LaTeX
5046 , so they are very accurate.
5047  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5048  so they do not scale terribly well, and one cannot copy them, etc.
5049  (As of this writing, there are also problems about equation numbering.
5050  See 
5051 \begin_inset CommandInset href
5052 LatexCommand href
5053 name "bug 6894"
5054 target "http://www.lyx.org/trac/ticket/6894"
5055
5056 \end_inset
5057
5058 .)
5059 \begin_inset Newline newline
5060 \end_inset
5061
5062 The size of the images can be controlled by setting the 
5063 \begin_inset Quotes eld
5064 \end_inset
5065
5066 Math Images Scaling
5067 \begin_inset Quotes erd
5068 \end_inset
5069
5070  parameter under 
5071 \begin_inset Flex MenuItem
5072 status collapsed
5073
5074 \begin_layout Plain Layout
5075 Document\SpecialChar menuseparator
5076 Settings\SpecialChar menuseparator
5077 Output
5078 \end_layout
5079
5080 \end_inset
5081
5082 .
5083 \begin_inset Foot
5084 status collapsed
5085
5086 \begin_layout Plain Layout
5087 For those who want to know, this controls the resolution of the image in
5088  dots per inch and is based upon a default of 75 dpi.
5089 \end_layout
5090
5091 \end_inset
5092
5093
5094 \begin_inset Newline newline
5095 \end_inset
5096
5097 If \SpecialChar LyX
5098  for some reason fails to create an image for a formula (e.g., if a required
5099  \SpecialChar LaTeX
5100  package is not installed), then it will fall back to outputing the raw
5101  \SpecialChar LaTeX
5102 .
5103 \end_layout
5104
5105 \begin_layout Itemize
5106 \SpecialChar LaTeX
5107
5108 \begin_inset Newline newline
5109 \end_inset
5110
5111 Finally, \SpecialChar LyX
5112  will happily output math as \SpecialChar LaTeX
5113 .
5114  As well as being the output of last resort, this method can be used with
5115  such tools as 
5116 \begin_inset CommandInset href
5117 LatexCommand href
5118 name "jsMath"
5119 target "http://www.math.union.edu/~dpvc/jsMath/"
5120
5121 \end_inset
5122
5123 , which uses JavaScript to render \SpecialChar LaTeX
5124  embedded in HTML documents.
5125  \SpecialChar LyX
5126  wraps the \SpecialChar LaTeX
5127  in either a 
5128 \begin_inset Flex Code
5129 status collapsed
5130
5131 \begin_layout Plain Layout
5132 span
5133 \end_layout
5134
5135 \end_inset
5136
5137  (for inline formulas) or 
5138 \begin_inset Flex Code
5139 status collapsed
5140
5141 \begin_layout Plain Layout
5142 div
5143 \end_layout
5144
5145 \end_inset
5146
5147  (for displayed formulas) with 
5148 \begin_inset Flex Code
5149 status collapsed
5150
5151 \begin_layout Plain Layout
5152 class='math'
5153 \end_layout
5154
5155 \end_inset
5156
5157 , as is required for jsMath.
5158 \end_layout
5159
5160 \begin_layout Standard
5161 One of these output methods must be selected under 
5162 \begin_inset Flex MenuItem
5163 status collapsed
5164
5165 \begin_layout Plain Layout
5166 Document\SpecialChar menuseparator
5167 Settings\SpecialChar menuseparator
5168 Output
5169 \end_layout
5170
5171 \end_inset
5172
5173 .
5174  By default, \SpecialChar LyX
5175  outputs MathML.
5176  This is a document-wide setting, therefore.
5177 \end_layout
5178
5179 \begin_layout Standard
5180 Eventually, \SpecialChar LyX
5181  will offer the user the option to select an alternate output
5182  method for a particular inset, say, one that isn't being rendered very
5183  well by MathML.
5184 \begin_inset Foot
5185 status collapsed
5186
5187 \begin_layout Plain Layout
5188 That said, since \SpecialChar LyX
5189  falls back to images if the inset contains ERT, then one
5190  can force output as an image by putting some harmless ERT into the math,
5191  for example: 
5192 \begin_inset Formula $a=b\relax$
5193 \end_inset
5194
5195 .
5196 \end_layout
5197
5198 \end_inset
5199
5200
5201 \end_layout
5202
5203 \begin_layout Section
5204 Bibliography and Citations
5205 \end_layout
5206
5207 \begin_layout Standard
5208 XHTML output fully supports bibliographies and citations.
5209  
5210 \end_layout
5211
5212 \begin_layout Standard
5213 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5214 's on-screen
5215  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5216 , though
5217  better.
5218  If you are using numerical citations, then \SpecialChar LyX
5219  will output numerical labels,
5220  such as [1] or [17], rather than simply showing the citation key in square
5221  brackets, as it does on-screen.
5222  If you are using author-year citations, then \SpecialChar LyX
5223  will add lowercase letters
5224  to the years, just as Bib\SpecialChar TeX
5225  does, if it finds more than one citation for
5226  a given author-year combination.
5227  The labels will be printed with the bibliography entries.
5228  Note that there is, at present, no way to customize the appearance of the
5229  labels, for example, to choose between square brackets and parentheses.
5230 \end_layout
5231
5232 \begin_layout Standard
5233 Bibliography output is handled by the same machinery that handles the presentati
5234 on of reference information in the citation dialog, so you will see in the
5235  XHTML output pretty much what you would see if you were to look at a given
5236  entry in the citation dialog.
5237  The formatting can be customized in your layout file or, preferably, in
5238  a module.
5239  See the 
5240 \emph on
5241 Customization
5242 \emph default
5243  manual for the details.
5244 \end_layout
5245
5246 \begin_layout Standard
5247 The main defect at present is that cross-referenced information is printed
5248  with every entry with which it is associated.
5249  So you can see things like this:
5250 \end_layout
5251
5252 \begin_layout Quote
5253 Jason Stanley, 
5254 \begin_inset Quotes eld
5255 \end_inset
5256
5257 Context and Logical Form
5258 \begin_inset Quotes erd
5259 \end_inset
5260
5261 , in 
5262 \emph on
5263 Language in Context: Selected Essays
5264 \emph default
5265  (Oxford: Oxford University Press, 2007), pp.
5266  30–68.
5267 \end_layout
5268
5269 \begin_layout Quote
5270 Jason Stanley, 
5271 \begin_inset Quotes eld
5272 \end_inset
5273
5274 Semantics in Context
5275 \begin_inset Quotes erd
5276 \end_inset
5277
5278 , in 
5279 \emph on
5280 Language in Context: Selected Essays
5281 \emph default
5282  (Oxford: Oxford University Press, 2007), pp.
5283  201–30.
5284 \end_layout
5285
5286 \begin_layout Standard
5287 This should be fixed before long.
5288 \end_layout
5289
5290 \begin_layout Standard
5291 There is no support at present for sectioned bibliographies.
5292  If you have multiple bibliographies, then \SpecialChar LyX
5293  will print the same bibliography
5294  over and over.
5295 \end_layout
5296
5297 \begin_layout Section
5298 Indexes
5299 \end_layout
5300
5301 \begin_layout Standard
5302 \SpecialChar LyX
5303  will happily export indexes as XHTML, but with certain limitations at the
5304  moment.
5305 \end_layout
5306
5307 \begin_layout Standard
5308 Index export will be most reliable when you do not attempt to use the fancy
5309  constructs that are described in the section on indexes in the 
5310 \emph on
5311 User's Guide
5312 \emph default
5313 .
5314 \begin_inset Foot
5315 status collapsed
5316
5317 \begin_layout Plain Layout
5318 The main issue here is that \SpecialChar LyX
5319  itself does not really handle these.
5320  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5321 .
5322 \end_layout
5323
5324 \end_inset
5325
5326  We'll describe how they are handled using the subsection headings from
5327  that section.
5328 \end_layout
5329
5330 \begin_layout Itemize
5331 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5332  makes an effort to support these,
5333  but the entries must be separated by 
5334 \begin_inset Quotes eld
5335 \end_inset
5336
5337  ! 
5338 \begin_inset Quotes erd
5339 \end_inset
5340
5341 , that is, there must be spaces around the exclamation point.
5342  This is because it is otherwise too difficult to check for escaped exclamation
5343  points, ones in math, and so forth.
5344 \end_layout
5345
5346 \begin_layout Itemize
5347 Page Ranges: There is no support at all for page ranges, since these make
5348  no sense with XHMTL.
5349  Instead, you will just get two index entries, one at either end.
5350 \end_layout
5351
5352 \begin_layout Itemize
5353 Cross-referencing: There is no support for cross-referencing.
5354  If \SpecialChar LyX
5355  finds an entry containing the 
5356 \begin_inset Quotes eld
5357 \end_inset
5358
5359 |see\SpecialChar ldots
5360
5361 \begin_inset Quotes erd
5362 \end_inset
5363
5364  construct, it is just dropped, and the rest is treated as an ordinary index
5365  entry.
5366 \end_layout
5367
5368 \begin_layout Itemize
5369 Index Entry Order: \SpecialChar LyX
5370  does support attempts to fix the sorting order.
5371  It will take what is before the first `@' it finds and use that for sorting,
5372  taking what follows the first `@' to be the actual entry.
5373  At present, \SpecialChar LyX
5374  does not check for escaped `@', so do not try to index email
5375  addresses.
5376 \end_layout
5377
5378 \begin_layout Itemize
5379 Index Entry Layout: You can format entries by using the text style dialog,
5380  or by using any other method available within \SpecialChar LyX
5381  itself.
5382  There is no support for constructs like: 
5383 \begin_inset Quotes eld
5384 \end_inset
5385
5386 entry|textbf
5387 \begin_inset Quotes erd
5388 \end_inset
5389
5390 .
5391  Indeed, if \SpecialChar LyX
5392  finds a pipe symbol, `|', in an entry, it will delete it and
5393  everything that follows it.
5394 \end_layout
5395
5396 \begin_layout Itemize
5397 Multiple Indexes: There is no support for multiple indexes.
5398  Rather, all index entries will be printed as one large index.
5399  To avoid our printing several versions of the index, we print only the
5400  main index, so make sure you have one.
5401 \end_layout
5402
5403 \begin_layout Section
5404 Nomenclature and Glossary
5405 \end_layout
5406
5407 \begin_layout Standard
5408 There is at present no support for glossaries.
5409  Adding it would be fairly trivial, and welcome.
5410 \end_layout
5411
5412 \begin_layout Chapter
5413 The \SpecialChar LyX
5414  Server
5415 \end_layout
5416
5417 \begin_layout Section
5418 Introduction
5419 \end_layout
5420
5421 \begin_layout Standard
5422 The `\SpecialChar LyX
5423  server' allows other programs to talk to \SpecialChar LyX
5424 , invoke \SpecialChar LyX
5425  commands, and retrieve
5426  information about the \SpecialChar LyX
5427  internal state.
5428  This is only intended for advanced users, but they should find it useful.
5429  It is by writing to the \SpecialChar LyX
5430  server, for example, that bibliography managers,
5431  such as JabRef, are able to 
5432 \begin_inset Quotes eld
5433 \end_inset
5434
5435 push
5436 \begin_inset Quotes erd
5437 \end_inset
5438
5439  citations to \SpecialChar LyX
5440 .
5441 \end_layout
5442
5443 \begin_layout Section
5444 Starting the \SpecialChar LyX
5445  Server
5446 \end_layout
5447
5448 \begin_layout Standard
5449 The \SpecialChar LyX
5450  server works through the use of a pair of named pipes.
5451  These are usually located in 
5452 \begin_inset Flex Code
5453 status collapsed
5454
5455 \begin_layout Plain Layout
5456 UserDir
5457 \end_layout
5458
5459 \end_inset
5460
5461 , (except on Windows, where 
5462 \emph on
5463 local
5464 \emph default
5465  named pipes are special objects located in 
5466 \begin_inset Flex Code
5467 status collapsed
5468
5469 \begin_layout Plain Layout
5470
5471 \backslash
5472
5473 \backslash
5474 .
5475 \backslash
5476 pipe
5477 \end_layout
5478
5479 \end_inset
5480
5481 ) and have the names 
5482 \begin_inset Quotes eld
5483 \end_inset
5484
5485
5486 \begin_inset Flex Code
5487 status collapsed
5488
5489 \begin_layout Plain Layout
5490 lyxpipe.in
5491 \end_layout
5492
5493 \end_inset
5494
5495
5496 \begin_inset Quotes erd
5497 \end_inset
5498
5499  and 
5500 \begin_inset Quotes eld
5501 \end_inset
5502
5503
5504 \begin_inset Flex Code
5505 status collapsed
5506
5507 \begin_layout Plain Layout
5508 lyxpipe.out
5509 \end_layout
5510
5511 \end_inset
5512
5513
5514 \begin_inset Quotes erd
5515 \end_inset
5516
5517 .
5518  External programs write into 
5519 \begin_inset Flex Code
5520 status collapsed
5521
5522 \begin_layout Plain Layout
5523 lyxpipe.in
5524 \end_layout
5525
5526 \end_inset
5527
5528  and read back data from 
5529 \begin_inset Flex Code
5530 status collapsed
5531
5532 \begin_layout Plain Layout
5533 lyxpipe.out
5534 \end_layout
5535
5536 \end_inset
5537
5538 .
5539  The stem of the pipe names can be defined in the 
5540 \begin_inset Flex MenuItem
5541 status collapsed
5542
5543 \begin_layout Plain Layout
5544 Tools\SpecialChar menuseparator
5545 Preferences
5546 \end_layout
5547
5548 \end_inset
5549
5550  dialog, for example 
5551 \begin_inset Flex Code
5552 status collapsed
5553
5554 \begin_layout Plain Layout
5555 "/home/myhome/lyxpipe"
5556 \end_layout
5557
5558 \end_inset
5559
5560 , or 
5561 \begin_inset Flex Code
5562 status collapsed
5563
5564 \begin_layout Plain Layout
5565 "
5566 \backslash
5567
5568 \backslash
5569 .
5570 \backslash
5571 pipe
5572 \backslash
5573 lyxpipe"
5574 \end_layout
5575
5576 \end_inset
5577
5578  on Windows (
5579 \change_deleted 711066561 1405258697
5580 but
5581 \change_inserted 711066561 1405258701
5582 where
5583 \change_unchanged
5584  any working path 
5585 \change_inserted 711066561 1405258613
5586 instead of lyxpipe 
5587 \change_unchanged
5588 can be used
5589 \change_inserted 711066561 1405258962
5590 , for example 
5591 \begin_inset Flex Code
5592 status collapsed
5593
5594 \begin_layout Plain Layout
5595
5596 \change_inserted 711066561 1405258868
5597 "
5598 \backslash
5599
5600 \backslash
5601 .
5602 \backslash
5603 pipe
5604 \backslash
5605 my
5606 \backslash
5607 lyx
5608 \backslash
5609 pipe"
5610 \change_unchanged
5611
5612 \end_layout
5613
5614 \end_inset
5615
5616  would also work
5617 \change_unchanged
5618 ).
5619  You 
5620 \emph on
5621 must
5622 \emph default
5623  configure this manually in order for the server to start.
5624 \end_layout
5625
5626 \begin_layout Standard
5627 \SpecialChar LyX
5628  will add the '
5629 \begin_inset Flex Code
5630 status collapsed
5631
5632 \begin_layout Plain Layout
5633 .in
5634 \end_layout
5635
5636 \end_inset
5637
5638 ' and '
5639 \begin_inset Flex Code
5640 status collapsed
5641
5642 \begin_layout Plain Layout
5643 .out
5644 \end_layout
5645
5646 \end_inset
5647
5648 ' to create the pipes.
5649  If one of the pipes already exists, \SpecialChar LyX
5650  will assume that another \SpecialChar LyX
5651  process
5652  is already running and will not start the server.
5653  On POSIX (Unix like) systems, if for some other reason, an unused 
5654 \begin_inset Quotes eld
5655 \end_inset
5656
5657 stale
5658 \begin_inset Quotes erd
5659 \end_inset
5660
5661  pipe is left in existence when \SpecialChar LyX
5662  closes, then \SpecialChar LyX
5663  will try to delete it.
5664  If this fails for some reason, you will need to delete the pipes manually
5665  and then restart \SpecialChar LyX
5666 .
5667  On Windows, pipes are deleted by the OS on program termination or crash,
5668  so 
5669 \begin_inset Quotes eld
5670 \end_inset
5671
5672 stale
5673 \begin_inset Quotes erd
5674 \end_inset
5675
5676  pipes should not be possible.
5677 \end_layout
5678
5679 \begin_layout Standard
5680 To have several \SpecialChar LyX
5681  processes with servers at the same time, you have to use
5682  different configurations, perhaps by using separate user directories, each
5683  with its own 
5684 \begin_inset Flex Code
5685 status collapsed
5686
5687 \begin_layout Plain Layout
5688 preferences
5689 \end_layout
5690
5691 \end_inset
5692
5693  file, for each process.
5694 \end_layout
5695
5696 \begin_layout Standard
5697 If you are developing a client program, you might find it useful to enable
5698  debugging information from the \SpecialChar LyX
5699  server.
5700  Do this by starting \SpecialChar LyX
5701  as 
5702 \begin_inset Flex Code
5703 status collapsed
5704
5705 \begin_layout Plain Layout
5706 lyx -dbg lyxserver
5707 \end_layout
5708
5709 \end_inset
5710
5711 .
5712 \end_layout
5713
5714 \begin_layout Standard
5715 You can find a complete example client written in C
5716 \change_inserted 711066561 1405258366
5717 ++
5718 \change_unchanged
5719  in the source distribution as 
5720 \begin_inset Flex Code
5721 status collapsed
5722
5723 \begin_layout Plain Layout
5724 development/lyxserver/server_monitor.c
5725 \change_inserted 711066561 1405258386
5726 pp
5727 \change_unchanged
5728
5729 \end_layout
5730
5731 \end_inset
5732
5733 .
5734 \end_layout
5735
5736 \begin_layout Standard
5737 Another useful tool is the command-line based client
5738 \change_inserted 711066561 1405258403
5739  
5740 \change_unchanged
5741 found in 
5742 \begin_inset Flex Code
5743 status collapsed
5744
5745 \begin_layout Plain Layout
5746 src/client/lyxclient
5747 \end_layout
5748
5749 \end_inset
5750
5751 .
5752 \end_layout
5753
5754 \begin_layout Section
5755 Normal communication
5756 \end_layout
5757
5758 \begin_layout Standard
5759 To issue a \SpecialChar LyX
5760  call, the client writes a line of ASCII text into the input
5761  pipe.
5762  This line has the following format:
5763 \end_layout
5764
5765 \begin_layout Quote
5766 LYXCMD:
5767 \emph on
5768 clientname
5769 \emph default
5770 :
5771 \emph on
5772 function
5773 \emph default
5774 :
5775 \emph on
5776 argument
5777 \end_layout
5778
5779 \begin_layout Description
5780 clientname is a name that the client can choose arbitrarily.
5781  Its only use is that \SpecialChar LyX
5782  will echo it if it sends an answer—so a client can
5783  dispatch results from different requesters.
5784 \end_layout
5785
5786 \begin_layout Description
5787 function is the function you want \SpecialChar LyX
5788  to perform.
5789  It is the same as the commands you'd use in the minibuffer.
5790 \end_layout
5791
5792 \begin_layout Description
5793 argument is an optional argument which is meaningful only to some functions
5794  (for instance, the 
5795 \begin_inset Quotes eld
5796 \end_inset
5797
5798 self-insert
5799 \begin_inset Quotes erd
5800 \end_inset
5801
5802  LFUN will insert the argument as text at the cursor position).
5803 \end_layout
5804
5805 \begin_layout Standard
5806 The answer from \SpecialChar LyX
5807  will arrive in the output pipe and be of the form
5808 \end_layout
5809
5810 \begin_layout Quote
5811 INFO:
5812 \emph on
5813 clientname
5814 \emph default
5815 :
5816 \emph on
5817 function
5818 \emph default
5819 :
5820 \emph on
5821 data
5822 \end_layout
5823
5824 \begin_layout Standard
5825 where 
5826 \emph on
5827 clientname
5828 \emph default
5829  and 
5830 \emph on
5831 function
5832 \emph default
5833  are just echoed from the command request, while 
5834 \emph on
5835 data
5836 \emph default
5837  is more or less useful information filled according to how the command
5838  execution worked out.
5839  Some commands, such as 
5840 \begin_inset Quotes eld
5841 \end_inset
5842
5843 font-state
5844 \begin_inset Quotes erd
5845 \end_inset
5846
5847 , will return information about the internal state of \SpecialChar LyX
5848 , while other will
5849  return an empty data-response.
5850  This means that the command execution went fine.
5851 \end_layout
5852
5853 \begin_layout Standard
5854 In case of errors, the response from \SpecialChar LyX
5855  will have this form
5856 \end_layout
5857
5858 \begin_layout Quote
5859 ERROR:
5860 \emph on
5861 clientname
5862 \emph default
5863 :
5864 \emph on
5865 function
5866 \emph default
5867 :
5868 \emph on
5869 error message
5870 \end_layout
5871
5872 \begin_layout Standard
5873 where the 
5874 \emph on
5875 error message
5876 \emph default
5877  should contain an explanation of why the command failed.
5878 \end_layout
5879
5880 \begin_layout Standard
5881 Examples:
5882 \end_layout
5883
5884 \begin_layout LyX-Code
5885 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
5886 \begin_inset Newline newline
5887 \end_inset
5888
5889 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
5890 \begin_inset Newline newline
5891 \end_inset
5892
5893 read a <~/.lyxpipe.out
5894 \begin_inset Newline newline
5895 \end_inset
5896
5897 echo $a
5898 \end_layout
5899
5900 \begin_layout Subsection
5901 AppleScript (Mac OS X)
5902 \end_layout
5903
5904 \begin_layout Standard
5905 Since \SpecialChar LyX
5906  2.1, \SpecialChar LyX
5907  supports basic interactions with AppleScript for normal communicatio
5908 n through the command run.
5909  This command takes a direct argument (the 
5910 \series bold
5911 function
5912 \series default
5913  to perform) and an optional argument.
5914  It either returns the output of the function or triggers an error with
5915  the error message and code.
5916 \end_layout
5917
5918 \begin_layout Standard
5919 Example:
5920 \end_layout
5921
5922 \begin_layout LyX-Code
5923 tell application "\SpecialChar LyX
5924 "
5925 \end_layout
5926
5927 \begin_layout LyX-Code
5928   try
5929 \end_layout
5930
5931 \begin_layout LyX-Code
5932     -- Stores the current file name into f
5933 \end_layout
5934
5935 \begin_layout LyX-Code
5936     set f to (run "server-get-filename" with argument "")
5937 \end_layout
5938
5939 \begin_layout LyX-Code
5940     on error the error_message number the error_number
5941 \end_layout
5942
5943 \begin_layout LyX-Code
5944       display dialog "Error: " & the error_number & ".
5945  " ¬
5946 \end_layout
5947
5948 \begin_layout LyX-Code
5949               & the error_message buttons {"OK"} default button 1
5950 \end_layout
5951
5952 \begin_layout LyX-Code
5953   end try
5954 \end_layout
5955
5956 \begin_layout LyX-Code
5957 end tell
5958 \end_layout
5959
5960 \begin_layout Section
5961 Notification
5962 \end_layout
5963
5964 \begin_layout Standard
5965 \SpecialChar LyX
5966  can notify clients of events going on asynchronously.
5967  Currently it will only do this if the user binds a key sequence with the
5968  function 
5969 \begin_inset Quotes eld
5970 \end_inset
5971
5972 notify
5973 \begin_inset Quotes erd
5974 \end_inset
5975
5976 .
5977  The format of the string \SpecialChar LyX
5978  sends is as follows:
5979 \end_layout
5980
5981 \begin_layout Quote
5982 \begin_inset Flex Code
5983 status collapsed
5984
5985 \begin_layout Plain Layout
5986 NOTIFY:
5987 \end_layout
5988
5989 \end_inset
5990
5991
5992 \emph on
5993 key-sequence
5994 \end_layout
5995
5996 \begin_layout Standard
5997 where 
5998 \emph on
5999 key-sequence
6000 \emph default
6001  is the printed representation of the key sequence that was actually typed
6002  by the user.
6003 \end_layout
6004
6005 \begin_layout Standard
6006 This mechanism can be used to extend \SpecialChar LyX
6007 's command set and implement macros.
6008  Bind some key sequence to 
6009 \begin_inset Quotes eld
6010 \end_inset
6011
6012 notify
6013 \begin_inset Quotes erd
6014 \end_inset
6015
6016 .
6017  Then start a client that listens on the output pipe, dispatches the command
6018  according to the sequence, and starts a function that may use \SpecialChar LyX
6019  calls and
6020  \SpecialChar LyX
6021  requests to issue a command or a series of commands to \SpecialChar LyX
6022 .
6023 \end_layout
6024
6025 \begin_layout Section
6026 The simple \SpecialChar LyX
6027  Server Protocol
6028 \end_layout
6029
6030 \begin_layout Standard
6031 \SpecialChar LyX
6032  implements a simple protocol that can be used for session management.
6033  All messages are of the form
6034 \end_layout
6035
6036 \begin_layout Quote
6037 LYXSRV:
6038 \emph on
6039 clientname
6040 \emph default
6041 :
6042 \emph on
6043 protocol message
6044 \end_layout
6045
6046 \begin_layout Standard
6047 where 
6048 \emph on
6049 protocol message
6050 \emph default
6051  can be 
6052 \begin_inset Quotes eld
6053 \end_inset
6054
6055 hello
6056 \begin_inset Quotes erd
6057 \end_inset
6058
6059  or 
6060 \begin_inset Quotes eld
6061 \end_inset
6062
6063 bye
6064 \begin_inset Quotes erd
6065 \end_inset
6066
6067 .
6068  If 
6069 \begin_inset Quotes eld
6070 \end_inset
6071
6072 hello
6073 \begin_inset Quotes erd
6074 \end_inset
6075
6076  is received from a client, \SpecialChar LyX
6077  will report back to inform the client that
6078  it's listening to it's messages, while 
6079 \begin_inset Quotes eld
6080 \end_inset
6081
6082 bye
6083 \begin_inset Quotes erd
6084 \end_inset
6085
6086  sent from \SpecialChar LyX
6087  will inform clients that \SpecialChar LyX
6088  is closing.
6089 \end_layout
6090
6091 \begin_layout Section
6092 Reverse DVI/PDF search
6093 \end_layout
6094
6095 \begin_layout Standard
6096 Some DVI/PDF viewers
6097 \begin_inset Foot
6098 status collapsed
6099
6100 \begin_layout Plain Layout
6101 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux
6102 \change_inserted 711066561 1405273809
6103 , Qpdfview on Unix
6104 \change_unchanged
6105 , Skim on Mac OSX and SumatraPDF on Windows.
6106 \end_layout
6107
6108 \end_inset
6109
6110  provide 
6111 \emph on
6112 reverse search
6113 \emph default
6114  facility (also called 
6115 \emph on
6116 inverse search
6117 \emph default
6118 ).
6119  This means that you can tell \SpecialChar LyX
6120  to put the cursor to a specific line in the
6121  document by clicking at the respective position in the DVI/PDF output.
6122  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6123 .
6124  This is done via the \SpecialChar LyX
6125  server either by using the named pipe (
6126 \emph on
6127 lyxpipe
6128 \emph default
6129 ), or the UNIX domain socket (
6130 \emph on
6131 lyxsocket
6132 \emph default
6133 ) that \SpecialChar LyX
6134  creates in its temporary directory (this is the way the 
6135 \begin_inset Flex Code
6136 status collapsed
6137
6138 \begin_layout Plain Layout
6139 lyxclient
6140 \end_layout
6141
6142 \end_inset
6143
6144  program communicates with \SpecialChar LyX
6145 ).
6146  In some cases, you need a helper script that mediates between the viewer
6147  and \SpecialChar LyX
6148 , in others, the viewer can communicate with \SpecialChar LyX
6149  directly.
6150  This depends on the selected viewer and on your operating system.
6151  The same applies to the way viewers need to be configured and the way the
6152  reverse search is actually performed.
6153  In what follows, we will thus describe how to setup reverse search for
6154  specific viewers.
6155  Before we turn to this, though, we will explain what needs to be done generally
6156  to enable reverse search in the DVI/PDF output.
6157 \end_layout
6158
6159 \begin_layout Subsection
6160 Automatic setup
6161 \begin_inset CommandInset label
6162 LatexCommand label
6163 name "subsec:rev-search"
6164
6165 \end_inset
6166
6167
6168 \end_layout
6169
6170 \begin_layout Standard
6171 In most cases \SpecialChar LyX
6172  will do the work for you by enabling the option 
6173 \begin_inset Flex MenuItem
6174 status collapsed
6175
6176 \begin_layout Plain Layout
6177 Synchronize with Output
6178 \end_layout
6179
6180 \end_inset
6181
6182  in the menu 
6183 \begin_inset Flex MenuItem
6184 status collapsed
6185
6186 \begin_layout Plain Layout
6187 Document\SpecialChar menuseparator
6188 Settings\SpecialChar menuseparator
6189 Output
6190 \end_layout
6191
6192 \end_inset
6193
6194 .
6195  In such a case \SpecialChar LyX
6196  will automatically insert the necessary Sync\SpecialChar TeX
6197  macro (for
6198  PDF) or load the srcltx package (for DVI) respectively.
6199  This option can be easily reached also on 
6200 \begin_inset Flex Code
6201 status collapsed
6202
6203 \begin_layout Plain Layout
6204 View/Update
6205 \end_layout
6206
6207 \end_inset
6208
6209  Toolbar.
6210 \end_layout
6211
6212 \begin_layout Standard
6213 If you need a different setting, you can select or input a custom macro
6214  from the drop down box just below 
6215 \begin_inset Flex MenuItem
6216 status collapsed
6217
6218 \begin_layout Plain Layout
6219 Document\SpecialChar menuseparator
6220 Settings\SpecialChar menuseparator
6221 Output\SpecialChar menuseparator
6222 Synchronize with Output
6223 \end_layout
6224
6225 \end_inset
6226
6227 .
6228 \end_layout
6229
6230 \begin_layout Standard
6231 Note that the method 
6232 \begin_inset Flex Code
6233 status collapsed
6234
6235 \begin_layout Plain Layout
6236
6237 \backslash
6238 synctex=1
6239 \end_layout
6240
6241 \end_inset
6242
6243  enables gzip compression.
6244  If your viewer does not support it, you should instead use 
6245 \begin_inset Flex Code
6246 status collapsed
6247
6248 \begin_layout Plain Layout
6249
6250 \backslash
6251 synctex=-1
6252 \end_layout
6253
6254 \end_inset
6255
6256 .
6257 \end_layout
6258
6259 \begin_layout Standard
6260 Please a
6261 \change_deleted 711066561 1405259326
6262 ö
6263 \change_inserted 711066561 1405259326
6264 l
6265 \change_unchanged
6266 so note that including the 
6267 \begin_inset Flex Code
6268 status collapsed
6269
6270 \begin_layout Plain Layout
6271 srcltx
6272 \end_layout
6273
6274 \end_inset
6275
6276  package or 
6277 \begin_inset Flex Code
6278 status collapsed
6279
6280 \begin_layout Plain Layout
6281 src-specials
6282 \end_layout
6283
6284 \end_inset
6285
6286  sometimes has an undesired impact on the typesetting.
6287  Thus, you should switch output synchronization off for the final typesetting
6288  if you use the 
6289 \begin_inset Flex Code
6290 status collapsed
6291
6292 \begin_layout Plain Layout
6293 srcltx
6294 \end_layout
6295
6296 \end_inset
6297
6298  package or 
6299 \begin_inset Flex Code
6300 status collapsed
6301
6302 \begin_layout Plain Layout
6303 src-specials
6304 \end_layout
6305
6306 \end_inset
6307
6308 .
6309  
6310 \end_layout
6311
6312 \begin_layout Standard
6313 In case you need some more special settings that are not covered by the
6314  automatic settings, read the next section about how to set up output synchroniz
6315 ation manually.
6316  If the automatic setup suits your needs, you can readily jump to section
6317 \begin_inset space ~
6318 \end_inset
6319
6320
6321 \begin_inset CommandInset ref
6322 LatexCommand ref
6323 reference "subsec:configuring-viewers"
6324
6325 \end_inset
6326
6327 , where the necessary configuration steps in your viewer – needed both with
6328  the automatic and the manual setup – are described.
6329 \end_layout
6330
6331 \begin_layout Subsection
6332 Manual setup
6333 \end_layout
6334
6335 \begin_layout Standard
6336 \SpecialChar LaTeX
6337  provides several different methods for reverse search.
6338  Some are built-in in the 
6339 \begin_inset Flex Code
6340 status collapsed
6341
6342 \begin_layout Plain Layout
6343 latex/pdflatex
6344 \end_layout
6345
6346 \end_inset
6347
6348  program, some are provided by external packages.
6349  Your choice depends on whether your \SpecialChar LaTeX
6350  distribution already provides a given
6351  method (the built-in methods are rather new) and whether your viewer can
6352  cope with it.
6353  The available methods are described in the following.
6354 \end_layout
6355
6356 \begin_layout Subsubsection*
6357 Built-in DVI-search via src-specials (DVI only) 
6358 \end_layout
6359
6360 \begin_layout Standard
6361 This method provides the DVI file with the necessary information for reverse
6362  search.
6363  It is available in \SpecialChar LaTeX
6364  since quite some time (any somewhat recent \SpecialChar LaTeX
6365  distribution
6366  should include it), and it works reliably.
6367  To enable it, change the 
6368 \begin_inset Flex MenuItem
6369 status collapsed
6370
6371 \begin_layout Plain Layout
6372 La
6373 \change_deleted -712698321 1437633234
6374 T
6375 \begin_inset ERT
6376 status collapsed
6377
6378 \begin_layout Plain Layout
6379
6380 {}
6381 \end_layout
6382
6383 \end_inset
6384
6385 eX
6386 \change_inserted -712698321 1437633234
6387
6388 \family sans
6389 TeX
6390 \change_unchanged
6391
6392 \family default
6393  (plain)->DVI
6394 \end_layout
6395
6396 \end_inset
6397
6398  or 
6399 \begin_inset Flex MenuItem
6400 status collapsed
6401
6402 \begin_layout Plain Layout
6403 La
6404 \change_deleted -712698321 1437633251
6405 T
6406 \begin_inset ERT
6407 status collapsed
6408
6409 \begin_layout Plain Layout
6410
6411 {}
6412 \end_layout
6413
6414 \end_inset
6415
6416 eX
6417 \change_inserted -712698321 1437633251
6418
6419 \family sans
6420 TeX
6421 \change_unchanged
6422
6423 \family default
6424  (plain)->DraftDVI
6425 \end_layout
6426
6427 \end_inset
6428
6429  converter in 
6430 \begin_inset Flex MenuItem
6431 status collapsed
6432
6433 \begin_layout Plain Layout
6434 Preferences\SpecialChar menuseparator
6435 File Handling\SpecialChar menuseparator
6436 Converters
6437 \end_layout
6438
6439 \end_inset
6440
6441  to 
6442 \begin_inset Flex Code
6443 status collapsed
6444
6445 \begin_layout Plain Layout
6446 latex -src-specials $$i
6447 \end_layout
6448
6449 \end_inset
6450
6451 .
6452  If this doesn't work, check if your \SpecialChar TeX
6453  engine needs different options (the
6454  syntax might differ in some distributions).
6455 \end_layout
6456
6457 \begin_layout Subsubsection*
6458 External Packages (PDFSync and scrltx) 
6459 \end_layout
6460
6461 \begin_layout Standard
6462 The packages 
6463 \emph on
6464 pdfsync
6465 \emph default
6466  and 
6467 \emph on
6468 scrltx
6469 \emph default
6470  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6471  respectively.
6472  In order to enable it, load the packages in the \SpecialChar LyX
6473  preamble: 
6474 \end_layout
6475
6476 \begin_layout Itemize
6477 \begin_inset Flex Code
6478 status collapsed
6479
6480 \begin_layout Plain Layout
6481
6482 \backslash
6483 usepackage{pdfsync}
6484 \end_layout
6485
6486 \end_inset
6487
6488  for reverse PDF search,
6489 \end_layout
6490
6491 \begin_layout Itemize
6492 \begin_inset Flex Code
6493 status collapsed
6494
6495 \begin_layout Plain Layout
6496
6497 \backslash
6498 usepackage[active]{srcltx}
6499 \end_layout
6500
6501 \end_inset
6502
6503  for reverse DVI search.
6504 \end_layout
6505
6506 \begin_layout Standard
6507 If you want to be able to perform both DVI and PDF reverse searches, you
6508  can also insert in the preamble the following lines
6509 \end_layout
6510
6511 \begin_layout LyX-Code
6512
6513 \backslash
6514 usepackage{ifpdf}
6515 \begin_inset Newline newline
6516 \end_inset
6517
6518
6519 \backslash
6520 ifpdf
6521 \begin_inset Newline newline
6522 \end_inset
6523
6524   
6525 \backslash
6526 usepackage{pdfsync}
6527 \begin_inset Newline newline
6528 \end_inset
6529
6530
6531 \backslash
6532 else
6533 \begin_inset Newline newline
6534 \end_inset
6535
6536   
6537 \backslash
6538 usepackage[active]{srcltx}
6539 \begin_inset Newline newline
6540 \end_inset
6541
6542
6543 \backslash
6544 fi
6545 \end_layout
6546
6547 \begin_layout Standard
6548 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6549  right package will be used.
6550 \end_layout
6551
6552 \begin_layout Standard
6553 Note that PDFSync might affect the output layout of your document.
6554  It is therefore advised to disable PDFsync for final documents.
6555 \end_layout
6556
6557 \begin_layout Subsubsection*
6558 Built-in reverse search via Sync\SpecialChar TeX
6559  (DVI and PDF) 
6560 \end_layout
6561
6562 \begin_layout Standard
6563 Recent versions of 
6564 \begin_inset Flex Code
6565 status collapsed
6566
6567 \begin_layout Plain Layout
6568 (pdf)latex
6569 \end_layout
6570
6571 \end_inset
6572
6573  have built-in support for both PDF and DVI reverse search.
6574  This so-called 
6575 \emph on
6576 Sync\SpecialChar TeX
6577
6578 \emph default
6579  facility is basically the result of the integration of the PDFSync package
6580  to the pdftex program and its merge with the 
6581 \emph on
6582 scr-specials
6583 \emph default
6584  approach.
6585  You need at least \SpecialChar TeX
6586 Live 2008 or a recent Mik\SpecialChar TeX
6587  distribution in order to use
6588  it
6589 \begin_inset Foot
6590 status collapsed
6591
6592 \begin_layout Plain Layout
6593 For some reason, Mik\SpecialChar TeX
6594  does not understand/obey the command \SpecialChar LyX
6595  inserts into
6596  the preamble when you check the "Enable Forward/Reverse Search" button
6597  in the toolbar and does not generate the necessary info.
6598 \end_layout
6599
6600 \begin_layout Plain Layout
6601 The generation of the required info can be forced by changing the converter
6602  "\SpecialChar LaTeX
6603  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
6604  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
6605  the -synctex=1 switch).
6606 \end_layout
6607
6608 \end_inset
6609
6610 .
6611  Also note that only a few PDF viewers (
6612 \change_inserted 711066561 1405273879
6613 Okular and Qpdfview on Unix, 
6614 \change_unchanged
6615 Skim on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
6616  support.
6617 \end_layout
6618
6619 \begin_layout Standard
6620 To enable Sync\SpecialChar TeX
6621  for DVI output, change the 
6622 \begin_inset Flex MenuItem
6623 status collapsed
6624
6625 \begin_layout Plain Layout
6626 La
6627 \change_deleted -712698321 1437633274
6628 T
6629 \begin_inset ERT
6630 status collapsed
6631
6632 \begin_layout Plain Layout
6633
6634 {}
6635 \end_layout
6636
6637 \end_inset
6638
6639 eX
6640 \change_inserted -712698321 1437633274
6641
6642 \family sans
6643 TeX
6644 \change_unchanged
6645
6646 \family default
6647  (plain) -> DVI
6648 \end_layout
6649
6650 \end_inset
6651
6652  or 
6653 \begin_inset Flex MenuItem
6654 status collapsed
6655
6656 \begin_layout Plain Layout
6657 La
6658 \change_deleted -712698321 1437633275
6659 T
6660 \begin_inset ERT
6661 status collapsed
6662
6663 \begin_layout Plain Layout
6664
6665 {}
6666 \end_layout
6667
6668 \end_inset
6669
6670 eX
6671 \change_inserted -712698321 1437633275
6672
6673 \family sans
6674 TeX
6675 \change_unchanged
6676
6677 \family default
6678  (plain) -> DraftDVI
6679 \end_layout
6680
6681 \end_inset
6682
6683  converter in 
6684 \begin_inset Flex MenuItem
6685 status collapsed
6686
6687 \begin_layout Plain Layout
6688 Preferences\SpecialChar menuseparator
6689 File Handling\SpecialChar menuseparator
6690 Converters
6691 \end_layout
6692
6693 \end_inset
6694
6695  to 
6696 \begin_inset Flex Code
6697 status collapsed
6698
6699 \begin_layout Plain Layout
6700 latex -synctex=1 $$i
6701 \end_layout
6702
6703 \end_inset
6704
6705 , and for PDF output, change the 
6706 \begin_inset Flex MenuItem
6707 status collapsed
6708
6709 \begin_layout Plain Layout
6710 La
6711 \change_deleted -712698321 1437633276
6712 T
6713 \begin_inset ERT
6714 status collapsed
6715
6716 \begin_layout Plain Layout
6717
6718 {}
6719 \end_layout
6720
6721 \end_inset
6722
6723 eX
6724 \change_inserted -712698321 1437633276
6725
6726 \family sans
6727 TeX
6728 \change_unchanged
6729
6730 \family default
6731  (pdflatex) -> PDF (pdflatex)
6732 \end_layout
6733
6734 \end_inset
6735
6736  or converter to 
6737 \begin_inset Flex Code
6738 status collapsed
6739
6740 \begin_layout Plain Layout
6741 pdflatex -synctex=1 $$i
6742 \end_layout
6743
6744 \end_inset
6745
6746 .
6747  Check the documentation of your viewer whether the viewer needs to be configure
6748 d for the use with Sync\SpecialChar TeX
6749 .
6750 \begin_inset Foot
6751 status collapsed
6752
6753 \begin_layout Plain Layout
6754 Note that the option 
6755 \begin_inset Flex Code
6756 status collapsed
6757
6758 \begin_layout Plain Layout
6759 -synctex=1
6760 \end_layout
6761
6762 \end_inset
6763
6764  option enables gzip compression.
6765  If your viewer does not support it, you should instead use 
6766 \begin_inset Flex Code
6767 status collapsed
6768
6769 \begin_layout Plain Layout
6770 -synctex=-1
6771 \end_layout
6772
6773 \end_inset
6774
6775 .
6776 \end_layout
6777
6778 \end_inset
6779
6780
6781 \end_layout
6782
6783 \begin_layout Subsection
6784 Configuring and using specific viewers
6785 \begin_inset CommandInset label
6786 LatexCommand label
6787 name "subsec:configuring-viewers"
6788
6789 \end_inset
6790
6791
6792 \end_layout
6793
6794 \begin_layout Subsubsection*
6795 Xdvi (all platforms)
6796 \end_layout
6797
6798 \begin_layout Standard
6799 If you use 
6800 \begin_inset Flex Code
6801 status collapsed
6802
6803 \begin_layout Plain Layout
6804 xdvi
6805 \end_layout
6806
6807 \end_inset
6808
6809 , you don't need to do anything else for performing a reverse DVI search,
6810  as \SpecialChar LyX
6811  already provides the necessary hooks for automatically using the 
6812 \begin_inset Flex Code
6813 status collapsed
6814
6815 \begin_layout Plain Layout
6816 lyxclient
6817 \end_layout
6818
6819 \end_inset
6820
6821  program.
6822  Just setup your document as described above (reverse search is triggered
6823  by Ctrl-click or Alt-click on Mac OSX, respectively).
6824 \end_layout
6825
6826 \begin_layout Standard
6827 However, if for whatever reason you want to use the named pipe instead of
6828  the socket for communicating with \SpecialChar LyX
6829 , simply change the DVI viewer in 
6830 \begin_inset Flex MenuItem
6831 status collapsed
6832
6833 \begin_layout Plain Layout
6834 Preferences\SpecialChar menuseparator
6835 File Handling\SpecialChar menuseparator
6836 File formats
6837 \end_layout
6838
6839 \end_inset
6840
6841  to
6842 \begin_inset Foot
6843 status collapsed
6844
6845 \begin_layout Plain Layout
6846 On Mac OSX you have to use 
6847 \begin_inset Flex Code
6848 status collapsed
6849
6850 \begin_layout Plain Layout
6851 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
6852 \end_layout
6853
6854 \end_inset
6855
6856
6857 \end_layout
6858
6859 \end_inset
6860
6861  
6862 \begin_inset Flex Code
6863 status collapsed
6864
6865 \begin_layout Plain Layout
6866 xdvi -editor "lyxeditor.sh %f %l"
6867 \end_layout
6868
6869 \end_inset
6870
6871 , where 
6872 \begin_inset Flex Code
6873 status collapsed
6874
6875 \begin_layout Plain Layout
6876 lyxeditor.sh
6877 \end_layout
6878
6879 \end_inset
6880
6881  is a suitable script.
6882  For example, a minimal shell script is the following one:
6883 \end_layout
6884
6885 \begin_layout LyX-Code
6886 #!/bin/sh
6887 \begin_inset Newline newline
6888 \end_inset
6889
6890 LYXPIPE="/path/to/lyxpipe"
6891 \begin_inset Newline newline
6892 \end_inset
6893
6894 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6895 \begin_inset Newline newline
6896 \end_inset
6897
6898 echo "$COMMAND" > "${LYXPIPE}".in || exit
6899 \begin_inset Newline newline
6900 \end_inset
6901
6902 read TMP < "${LYXPIPE}".out || exit
6903 \end_layout
6904
6905 \begin_layout Standard
6906 where 
6907 \begin_inset Flex Code
6908 status collapsed
6909
6910 \begin_layout Plain Layout
6911 /path/to/lyxpipe
6912 \end_layout
6913
6914 \end_inset
6915
6916  is the Ly
6917 \begin_inset ERT
6918 status collapsed
6919
6920 \begin_layout Plain Layout
6921
6922 {}
6923 \end_layout
6924
6925 \end_inset
6926
6927 XServer pipe path specified in 
6928 \begin_inset Flex MenuItem
6929 status collapsed
6930
6931 \begin_layout Plain Layout
6932 Preferences\SpecialChar menuseparator
6933 Paths
6934 \end_layout
6935
6936 \end_inset
6937
6938 .
6939 \begin_inset Foot
6940 status collapsed
6941
6942 \begin_layout Plain Layout
6943 In the 
6944 \begin_inset Flex Code
6945 status collapsed
6946
6947 \begin_layout Plain Layout
6948 development/tools
6949 \end_layout
6950
6951 \end_inset
6952
6953  folder of a source distribution you can find a 
6954 \begin_inset Flex Code
6955 status collapsed
6956
6957 \begin_layout Plain Layout
6958 lyxeditor
6959 \end_layout
6960
6961 \end_inset
6962
6963  script which is able to locate the 
6964 \emph on
6965 lyxpipe
6966 \emph default
6967  based on your preferences.
6968 \end_layout
6969
6970 \end_inset
6971
6972
6973 \end_layout
6974
6975 \begin_layout Subsubsection*
6976 MacDviX (Mac OSX)
6977 \end_layout
6978
6979 \begin_layout Standard
6980 At the end of 
6981 \begin_inset Flex Code
6982 status collapsed
6983
6984 \begin_layout Plain Layout
6985 /Applications/MacDviX_Folder/calleditor.script
6986 \end_layout
6987
6988 \end_inset
6989
6990 , add the following lines:
6991 \end_layout
6992
6993 \begin_layout LyX-Code
6994 /Applications/Ly
6995 \begin_inset ERT
6996 status collapsed
6997
6998 \begin_layout Plain Layout
6999
7000 {}
7001 \end_layout
7002
7003 \end_inset
7004
7005 X.app/Contents/MacOS/lyxeditor "$2" $1
7006 \begin_inset Newline newline
7007 \end_inset
7008
7009 exit 1
7010 \end_layout
7011
7012 \begin_layout Standard
7013 Modify the lines accordingly if you install \SpecialChar LyX
7014  somewhere else than in the
7015  Applications folder.
7016 \end_layout
7017
7018 \begin_layout Standard
7019 Reverse search is triggered by Alt-click (OPTION-click).
7020 \end_layout
7021
7022 \begin_layout Subsubsection*
7023 Skim (Mac OSX)
7024 \end_layout
7025
7026 \begin_layout Standard
7027 Enter 
7028 \begin_inset Flex Code
7029 status collapsed
7030
7031 \begin_layout Plain Layout
7032 open -a Skim.app $$i
7033 \end_layout
7034
7035 \end_inset
7036
7037  to the viewer setting in 
7038 \begin_inset Flex MenuItem
7039 status collapsed
7040
7041 \begin_layout Plain Layout
7042 Preferences\SpecialChar menuseparator
7043 File Handling\SpecialChar menuseparator
7044 File formats\SpecialChar menuseparator
7045 PDF (pdflatex)
7046 \end_layout
7047
7048 \end_inset
7049
7050 , and then in 
7051 \begin_inset Flex MenuItem
7052 status collapsed
7053
7054 \begin_layout Plain Layout
7055 Skim\SpecialChar menuseparator
7056 Preferences\SpecialChar menuseparator
7057 Sync
7058 \end_layout
7059
7060 \end_inset
7061
7062  choose 
7063 \begin_inset Flex MenuItem
7064 status collapsed
7065
7066 \begin_layout Plain Layout
7067 custom
7068 \end_layout
7069
7070 \end_inset
7071
7072  preset and enter command 
7073 \begin_inset Flex MenuItem
7074 status collapsed
7075
7076 \begin_layout Plain Layout
7077 /Applications/\SpecialChar LyX
7078 .app/Contents/MacOS/lyxeditor
7079 \end_layout
7080
7081 \end_inset
7082
7083 .
7084 \end_layout
7085
7086 \begin_layout Standard
7087 Reverse search is triggered by COMMAND-SHIFT-click
7088 \end_layout
7089
7090 \begin_layout Subsubsection*
7091 Okular (KDE)
7092 \end_layout
7093
7094 \begin_layout Standard
7095 Go to 
7096 \begin_inset Flex MenuItem
7097 status collapsed
7098
7099 \begin_layout Plain Layout
7100 Settings\SpecialChar menuseparator
7101 Configure Okular\SpecialChar ldots
7102 \SpecialChar menuseparator
7103 Editor
7104 \end_layout
7105
7106 \end_inset
7107
7108 , select 
7109 \begin_inset Quotes eld
7110 \end_inset
7111
7112 Custom Text Editor
7113 \begin_inset Quotes erd
7114 \end_inset
7115
7116  and add the command 
7117 \begin_inset Flex Code
7118 status collapsed
7119
7120 \begin_layout Plain Layout
7121 lyxclient -g %f %l
7122 \end_layout
7123
7124 \end_inset
7125
7126 .
7127 \end_layout
7128
7129 \begin_layout Standard
7130 Reverse search is triggered by SHIFT-click.
7131 \change_inserted 711066561 1405259853
7132
7133 \end_layout
7134
7135 \begin_layout Subsubsection*
7136
7137 \change_inserted 711066561 1405273730
7138 Qpdfview (Unix)
7139 \end_layout
7140
7141 \begin_layout Standard
7142
7143 \change_inserted 711066561 1405263147
7144 Qpdfview supports Sync\SpecialChar TeX
7145  since version 0.3.5.
7146  Go to 
7147 \begin_inset Flex MenuItem
7148 status collapsed
7149
7150 \begin_layout Plain Layout
7151
7152 \change_inserted 711066561 1405260331
7153 Edit\SpecialChar menuseparator
7154 Settings\SpecialChar ldots
7155 \SpecialChar menuseparator
7156 Behavior
7157 \change_unchanged
7158
7159 \end_layout
7160
7161 \end_inset
7162
7163 , click on the input field of the 
7164 \begin_inset Quotes eld
7165 \end_inset
7166
7167 Source editor
7168 \begin_inset Quotes erd
7169 \end_inset
7170
7171  item and add the command 
7172 \begin_inset Flex Code
7173 status collapsed
7174
7175 \begin_layout Plain Layout
7176
7177 \change_inserted 711066561 1405260473
7178 lyxclient -g %1 %2
7179 \change_unchanged
7180
7181 \end_layout
7182
7183 \end_inset
7184
7185 .
7186 \end_layout
7187
7188 \begin_layout Standard
7189
7190 \change_inserted 711066561 1405260506
7191 Reverse search is triggered by double-click.
7192 \change_unchanged
7193
7194 \end_layout
7195
7196 \begin_layout Subsubsection*
7197 YAP (Windows)
7198 \end_layout
7199
7200 \begin_layout Standard
7201 Launch yap, choose its 
7202 \begin_inset Flex MenuItem
7203 status collapsed
7204
7205 \begin_layout Plain Layout
7206 View\SpecialChar menuseparator
7207 Options
7208 \end_layout
7209
7210 \end_inset
7211
7212  menu and select the 
7213 \begin_inset Quotes eld
7214 \end_inset
7215
7216 Inverse DVI Search
7217 \begin_inset Quotes erd
7218 \end_inset
7219
7220  tab.
7221  Click on the 
7222 \begin_inset Quotes eld
7223 \end_inset
7224
7225 New\SpecialChar ldots
7226
7227 \begin_inset Quotes erd
7228 \end_inset
7229
7230  button and, in the window that opens, enter 
7231 \begin_inset Quotes eld
7232 \end_inset
7233
7234 \SpecialChar LyX
7235  Editor
7236 \begin_inset Quotes erd
7237 \end_inset
7238
7239  (or any other name you like) in the 
7240 \begin_inset Quotes eld
7241 \end_inset
7242
7243 Name:
7244 \begin_inset Quotes erd
7245 \end_inset
7246
7247  field.
7248  Now click on the button labeled 
7249 \begin_inset Quotes eld
7250 \end_inset
7251
7252 \SpecialChar ldots
7253
7254 \begin_inset Quotes erd
7255 \end_inset
7256
7257  to open a file dialog and navigate to the directory containing the batch
7258  file 
7259 \begin_inset Flex Code
7260 status collapsed
7261
7262 \begin_layout Plain Layout
7263 lyxeditor.bat
7264 \end_layout
7265
7266 \end_inset
7267
7268  (see below).
7269  Select 
7270 \begin_inset Flex Code
7271 status collapsed
7272
7273 \begin_layout Plain Layout
7274 lyxeditor.bat
7275 \end_layout
7276
7277 \end_inset
7278
7279  and then specify the program arguments as 
7280 \begin_inset Flex Code
7281 status collapsed
7282
7283 \begin_layout Plain Layout
7284 %f %l
7285 \end_layout
7286
7287 \end_inset
7288
7289 .
7290  The 
7291 \begin_inset Flex Code
7292 status collapsed
7293
7294 \begin_layout Plain Layout
7295 lyxeditor.bat
7296 \end_layout
7297
7298 \end_inset
7299
7300  wrapper is used for communicating with \SpecialChar LyX
7301  through the 
7302 \emph on
7303 lyxpipe
7304 \emph default
7305  and is as follows:
7306 \end_layout
7307
7308 \begin_layout LyX-Code
7309 @echo off
7310 \begin_inset Newline newline
7311 \end_inset
7312
7313 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7314 \backslash
7315
7316 \backslash
7317 .
7318 \backslash
7319 pipe
7320 \backslash
7321 lyxpipe.in
7322 \begin_inset Newline newline
7323 \end_inset
7324
7325 type 
7326 \backslash
7327
7328 \backslash
7329 .
7330 \backslash
7331 pipe
7332 \backslash
7333 lyxpipe.out
7334 \end_layout
7335
7336 \begin_layout Standard
7337 Make sure that the \SpecialChar LyX
7338 Server pipe path you specified in \SpecialChar LyX
7339  is 
7340 \begin_inset Flex Code
7341 status collapsed
7342
7343 \begin_layout Plain Layout
7344
7345 \backslash
7346
7347 \backslash
7348 .
7349 \backslash
7350 pipe
7351 \backslash
7352 lyxpipe
7353 \end_layout
7354
7355 \end_inset
7356
7357 , otherwise change the 
7358 \begin_inset Flex Code
7359 status collapsed
7360
7361 \begin_layout Plain Layout
7362 lyxeditor.bat
7363 \end_layout
7364
7365 \end_inset
7366
7367  wrapper accordingly.
7368 \end_layout
7369
7370 \begin_layout Standard
7371 In yap, reverse search is triggered by double-click.
7372 \end_layout
7373
7374 \begin_layout Subsubsection*
7375 SumatraPDF (Windows)
7376 \end_layout
7377
7378 \begin_layout Standard
7379 In order to use SumatraPDF for inverse search, enter 
7380 \begin_inset Flex Code
7381 status collapsed
7382
7383 \begin_layout Plain Layout
7384 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
7385 \end_layout
7386
7387 \end_inset
7388
7389  in the viewer setting in 
7390 \begin_inset Flex MenuItem
7391 status collapsed
7392
7393 \begin_layout Plain Layout
7394 Preferences\SpecialChar menuseparator
7395 File Handling\SpecialChar menuseparator
7396 File formats\SpecialChar menuseparator
7397 PDF (pdflatex)
7398 \end_layout
7399
7400 \end_inset
7401
7402 , where 
7403 \begin_inset Flex Code
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407 lyxeditor.bat
7408 \end_layout
7409
7410 \end_inset
7411
7412  is the previous wrapper.
7413  If SumatraPDF.exe is not in your command PATH, use its full file name.
7414 \end_layout
7415
7416 \begin_layout Standard
7417 Reverse search is triggered by double-click.
7418 \end_layout
7419
7420 \begin_layout Subsubsection*
7421 YAP (Cygwin)
7422 \end_layout
7423
7424 \begin_layout Standard
7425 First of all, make sure that yap is your default DVI viewer in the Windows
7426  environment, then launch it, choose its 
7427 \begin_inset Flex MenuItem
7428 status collapsed
7429
7430 \begin_layout Plain Layout
7431 View\SpecialChar menuseparator
7432 Options
7433 \end_layout
7434
7435 \end_inset
7436
7437  menu and select the 
7438 \begin_inset Quotes eld
7439 \end_inset
7440
7441 Inverse DVI Search
7442 \begin_inset Quotes erd
7443 \end_inset
7444
7445  tab.
7446  Click on the 
7447 \begin_inset Quotes eld
7448 \end_inset
7449
7450 New\SpecialChar ldots
7451
7452 \begin_inset Quotes erd
7453 \end_inset
7454
7455  button and, in the window that opens, enter 
7456 \begin_inset Quotes eld
7457 \end_inset
7458
7459 \SpecialChar LyX
7460  Editor
7461 \begin_inset Quotes erd
7462 \end_inset
7463
7464  (or any other name you like) in the 
7465 \begin_inset Quotes eld
7466 \end_inset
7467
7468 Name:
7469 \begin_inset Quotes erd
7470 \end_inset
7471
7472  field.
7473  Now click on the button labeled 
7474 \begin_inset Quotes eld
7475 \end_inset
7476
7477 \SpecialChar ldots
7478
7479 \begin_inset Quotes erd
7480 \end_inset
7481
7482  to open a file dialog and navigate to the directory containing the 
7483 \begin_inset Flex Code
7484 status collapsed
7485
7486 \begin_layout Plain Layout
7487 lyxeditor.exe
7488 \end_layout
7489
7490 \end_inset
7491
7492  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7493  executable).
7494  Select 
7495 \begin_inset Flex Code
7496 status collapsed
7497
7498 \begin_layout Plain Layout
7499 lyxeditor.exe
7500 \end_layout
7501
7502 \end_inset
7503
7504  and then specify the program arguments as 
7505 \begin_inset Flex Code
7506 status collapsed
7507
7508 \begin_layout Plain Layout
7509 -g %f %l
7510 \end_layout
7511
7512 \end_inset
7513
7514 .
7515  In this way, you will be using the 
7516 \emph on
7517 lyxsocket
7518 \emph default
7519  for communicating with \SpecialChar LyX
7520 .
7521  If, for whatever reason, you want to use the 
7522 \emph on
7523 lyxpipe
7524 \emph default
7525 , omit the 
7526 \begin_inset Flex Code
7527 status collapsed
7528
7529 \begin_layout Plain Layout
7530 -g
7531 \end_layout
7532
7533 \end_inset
7534
7535  option and be sure to specify the \SpecialChar LyX
7536 Server pipe path in the \SpecialChar LyX
7537  preferences.
7538 \end_layout
7539
7540 \begin_layout Standard
7541 In yap, reverse search is triggered by double-click.
7542 \end_layout
7543
7544 \begin_layout Subsubsection*
7545 SumatraPDF (Cygwin)
7546 \end_layout
7547
7548 \begin_layout Standard
7549 In order to use SumatraPDF for inverse search, enter 
7550 \begin_inset Flex Code
7551 status collapsed
7552
7553 \begin_layout Plain Layout
7554 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7555 \end_layout
7556
7557 \end_inset
7558
7559  in the viewer setting in 
7560 \begin_inset Flex MenuItem
7561 status collapsed
7562
7563 \begin_layout Plain Layout
7564 Preferences\SpecialChar menuseparator
7565 File Handling\SpecialChar menuseparator
7566 File formats\SpecialChar menuseparator
7567 PDF (pdflatex)
7568 \end_layout
7569
7570 \end_inset
7571
7572 .
7573  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7574  The 
7575 \begin_inset Flex Code
7576 status collapsed
7577
7578 \begin_layout Plain Layout
7579 -g
7580 \end_layout
7581
7582 \end_inset
7583
7584  enables communication via the 
7585 \emph on
7586 lyxsocket
7587 \emph default
7588 .
7589  Again, omit the 
7590 \begin_inset Flex Code
7591 status collapsed
7592
7593 \begin_layout Plain Layout
7594 -g
7595 \end_layout
7596
7597 \end_inset
7598
7599  option if you want to use the 
7600 \emph on
7601 lyxpipe
7602 \emph default
7603 , and be sure to specify the \SpecialChar LyX
7604 Server pipe path in the \SpecialChar LyX
7605  preferences.
7606 \end_layout
7607
7608 \begin_layout Standard
7609 Reverse search is triggered by double-click.
7610 \end_layout
7611
7612 \begin_layout Section
7613 Forward search
7614 \end_layout
7615
7616 \begin_layout Standard
7617 Forward search is, as the name implies, in a sense the 
7618 \begin_inset Quotes eld
7619 \end_inset
7620
7621 opposite
7622 \begin_inset Quotes erd
7623 \end_inset
7624
7625  of reverse search.
7626  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7627 .
7628  If forward search is set up (as described in what follows), you can put
7629  the cursor anywhere in your \SpecialChar LyX
7630  document, and hit 
7631 \begin_inset Flex MenuItem
7632 status collapsed
7633
7634 \begin_layout Plain Layout
7635 Navigate\SpecialChar menuseparator
7636 Forward search
7637 \end_layout
7638
7639 \end_inset
7640
7641  (or select 
7642 \begin_inset Flex MenuItem
7643 status collapsed
7644
7645 \begin_layout Plain Layout
7646 Forward search
7647 \end_layout
7648
7649 \end_inset
7650
7651  in the context menu via right mouse click), and then the viewer will jump
7652  to that position as well.
7653  This implies, of course, that your viewer supports this function.
7654 \end_layout
7655
7656 \begin_layout Standard
7657 To make forward search possible, you first need to provide the generated
7658  output PDF/DVI file with additional information about the \SpecialChar TeX
7659  sources.
7660  This can be done via the methods described in the section 
7661 \begin_inset CommandInset ref
7662 LatexCommand ref
7663 reference "subsec:rev-search"
7664
7665 \end_inset
7666
7667 .
7668 \end_layout
7669
7670 \begin_layout Standard
7671 Additionally, you need to configure \SpecialChar LyX
7672  for using your viewers in 
7673 \begin_inset Flex MenuItem
7674 status collapsed
7675
7676 \begin_layout Plain Layout
7677 Tools\SpecialChar menuseparator
7678 Preferences\SpecialChar menuseparator
7679 Output\SpecialChar menuseparator
7680 General
7681 \end_layout
7682
7683 \end_inset
7684
7685 .
7686  We provide a range of tested configurations for some viewers, which you
7687  can select from the drop down list.
7688  If none of these configurations suits you, you have to find out and enter
7689  a suitable configuration yourself.
7690  The definition syntax uses the following placeholders:
7691 \end_layout
7692
7693 \begin_layout Itemize
7694 \noindent
7695 \begin_inset Flex Code
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 $$n
7700 \end_layout
7701
7702 \end_inset
7703
7704 : row number
7705 \end_layout
7706
7707 \begin_layout Itemize
7708 \noindent
7709 \begin_inset Flex Code
7710 status collapsed
7711
7712 \begin_layout Plain Layout
7713 $$t
7714 \end_layout
7715
7716 \end_inset
7717
7718 : name of the (temporary) exported .tex file (without path)
7719 \end_layout
7720
7721 \begin_layout Itemize
7722 \noindent
7723 \begin_inset Flex Code
7724 status collapsed
7725
7726 \begin_layout Plain Layout
7727 $$f
7728 \end_layout
7729
7730 \end_inset
7731
7732 : name of the (temporary) exported .tex file (including path)
7733 \end_layout
7734
7735 \begin_layout Itemize
7736 \noindent
7737 \begin_inset Flex Code
7738 status collapsed
7739
7740 \begin_layout Plain Layout
7741 $$o
7742 \end_layout
7743
7744 \end_inset
7745
7746 : name of the exported output file (either dvi or pdf, depending on which
7747  one exists in the temporary directory)
7748 \end_layout
7749
7750 \begin_layout Standard
7751 Note that only some of the viewers provide full forward search functionality,
7752  among them yap, xdvi, okular
7753 \begin_inset Foot
7754 status collapsed
7755
7756 \begin_layout Plain Layout
7757 You might want to set 
7758 \begin_inset Flex Code
7759 status collapsed
7760
7761 \begin_layout Plain Layout
7762 okular –unique
7763 \end_layout
7764
7765 \end_inset
7766
7767  in 
7768 \begin_inset Flex MenuItem
7769 status collapsed
7770
7771 \begin_layout Plain Layout
7772 Tools\SpecialChar menuseparator
7773 Preferences\SpecialChar menuseparator
7774 File Handling\SpecialChar menuseparator
7775 File
7776 \begin_inset space ~
7777 \end_inset
7778
7779 Formats
7780 \end_layout
7781
7782 \end_inset
7783
7784
7785 \end_layout
7786
7787 \end_inset
7788
7789
7790 \change_inserted 711066561 1405264317
7791 , qpdfview
7792 \change_unchanged
7793  and Sumatra
7794 \change_deleted 711066561 1405264282
7795  
7796 \change_unchanged
7797 PDF
7798 \begin_inset Foot
7799 status collapsed
7800
7801 \begin_layout Plain Layout
7802
7803 \change_deleted 711066561 1405264216
7804 For 
7805 \change_unchanged
7806 Sumatra
7807 \change_inserted 711066561 1405264265
7808 PDF can also use DDE commands through the external program
7809 \change_unchanged
7810  CMCDDE
7811 \change_deleted 711066561 1405264271
7812  is needed
7813 \change_unchanged
7814  — downloadable from 
7815 \begin_inset CommandInset href
7816 LatexCommand href
7817 target "ftp://ftp2.commence.com/pub/freebies/"
7818
7819 \end_inset
7820
7821
7822 \end_layout
7823
7824 \end_inset
7825
7826 .
7827  While many of the widespread PDF viewers (most notably Adobe Reader) do
7828  not support forward search at all, some other viewers – e.
7829 \begin_inset space \thinspace{}
7830 \end_inset
7831
7832 g.
7833  evince and xpdf – allow at least to reload the document and jump to a specific
7834  page of the file, so you can at least navigate 
7835 \begin_inset Quotes eld
7836 \end_inset
7837
7838 near
7839 \begin_inset Quotes erd
7840 \end_inset
7841
7842 .
7843  This latter functionality is provided by an external call of synctex (see
7844  the predefined example configurations).
7845  
7846 \end_layout
7847
7848 \begin_layout Standard
7849 Forward search works both with DVI and PDF output.
7850  \SpecialChar LyX
7851  simply checks which preview format you have used before (i.
7852 \begin_inset space \thinspace{}
7853 \end_inset
7854
7855 e., which format is already there in the temporary directory) and chooses
7856  the appropriate configuration for the respective format.
7857 \end_layout
7858
7859 \begin_layout Chapter
7860 Special Document Classes
7861 \end_layout
7862
7863 \begin_layout Section
7864 A&A Paper
7865 \end_layout
7866
7867 \begin_layout Standard
7868 by 
7869 \noun on
7870 Peter Sütterlin
7871 \end_layout
7872
7873 \begin_layout Subsection
7874 Introduction
7875 \end_layout
7876
7877 \begin_layout Standard
7878 This section describes how \SpecialChar LyX
7879  can be used to write articles for submission
7880  to the scientific journal 
7881 \emph on
7882 Astronomy and Astrophysics
7883 \emph default
7884  (
7885 \change_deleted 274215730 1448595777
7886 www.edpsciences.fr/aa/ 
7887 \change_unchanged
7888
7889 \begin_inset Flex URL
7890 status collapsed
7891
7892 \begin_layout Plain Layout
7893
7894 http://www.edpsciences.fr/aa/
7895 \end_layout
7896
7897 \end_inset
7898
7899 ) using Version 5.01 of the document class 
7900 \family typewriter
7901 aa.cls
7902 \family default
7903 .
7904  This package can be downloaded from the ftp site
7905 \end_layout
7906
7907 \begin_layout Standard
7908 \begin_inset VSpace medskip
7909 \end_inset
7910
7911
7912 \end_layout
7913
7914 \begin_layout Standard
7915 \align center
7916 \begin_inset Flex URL
7917 status collapsed
7918
7919 \begin_layout Plain Layout
7920
7921 ftp://ftp.edpsciences.org/pub/aa/readme.html
7922 \end_layout
7923
7924 \end_inset
7925
7926
7927 \end_layout
7928
7929 \begin_layout Standard
7930 \begin_inset VSpace medskip
7931 \end_inset
7932
7933
7934 \end_layout
7935
7936 \begin_layout Standard
7937 A manual comes together with that package, and this text is not meant to
7938  replace the original manual but is merely a short guide in how to realize
7939  the correct form of your paper.
7940  
7941 \end_layout
7942
7943 \begin_layout Standard
7944 Please note that the publisher of the journal was changed from Springer
7945  to EDP Sciences starting January 1, 2001.
7946  That change involved also some slight changes to the style files, namely
7947  the removal of the thesaurus command.
7948  The \SpecialChar LyX
7949  class aa supports the newest version of these style files, V 5.01.
7950  If you have an older version installed, please upgrade.
7951  For compatibility, the old (version 4) layout has been kept as 
7952 \family sans
7953 article (A&A V4)
7954 \family default
7955 .
7956  Please refer to the comments in 
7957 \family typewriter
7958 \SpecialChar LyX
7959 Dir/layouts/aapaper.layout
7960 \family default
7961 .
7962 \end_layout
7963
7964 \begin_layout Subsection
7965 Getting started
7966 \end_layout
7967
7968 \begin_layout Standard
7969 It is recommended you start from the example template distributed with \SpecialChar LyX
7970 .
7971  If you are not using a template, note the following settings:
7972 \end_layout
7973
7974 \begin_layout Itemize
7975 Select 
7976 \family sans
7977 article (A&A)
7978 \family default
7979  in the 
7980 \family sans
7981 Document\SpecialChar menuseparator
7982 Settings
7983 \family default
7984  dialog (OK, that one was obvious).
7985 \end_layout
7986
7987 \begin_layout Itemize
7988 Don't change the option 
7989 \family sans
7990 Page
7991 \begin_inset space ~
7992 \end_inset
7993
7994 style
7995 \family default
7996 : Leave it set to 
7997 \family sans
7998 default
7999 \family default
8000 .
8001  The whole layout is done by the macros, you shouldn't change anything.
8002 \end_layout
8003
8004 \begin_layout Subsection
8005 The header block
8006 \end_layout
8007
8008 \begin_layout Standard
8009 First thing to enter is the header information.
8010  It consists of seven entries, of which some are optional.
8011  They are
8012 \end_layout
8013
8014 \begin_layout Itemize
8015
8016 \family sans
8017 Title
8018 \family default
8019 : [required] 
8020 \end_layout
8021
8022 \begin_layout Itemize
8023
8024 \family sans
8025 Subtitle
8026 \family default
8027 : [optional] 
8028 \end_layout
8029
8030 \begin_layout Itemize
8031
8032 \family sans
8033 Author
8034 \family default
8035 : [required]
8036 \end_layout
8037
8038 \begin_layout Itemize
8039
8040 \family sans
8041 Address
8042 \family default
8043 : [required]
8044 \end_layout
8045
8046 \begin_layout Itemize
8047
8048 \family sans
8049 Offprints
8050 \family default
8051 : [optional] if more than one author: whom to contact for offprint requests.
8052 \end_layout
8053
8054 \begin_layout Itemize
8055
8056 \family sans
8057 Mail
8058 \family default
8059 : [optional] mail address for contacts.
8060 \end_layout
8061
8062 \begin_layout Itemize
8063
8064 \family sans
8065 Date
8066 \family default
8067 : [required].
8068  Suggested format is 
8069 \family typewriter
8070 Received: <date>; Accepted <date> 
8071 \end_layout
8072
8073 \begin_layout Standard
8074 There is no need to issue the 
8075 \family typewriter
8076
8077 \backslash
8078 maketitle
8079 \family default
8080  command, this is done automatically by \SpecialChar LyX
8081  when the header is finished.
8082  Although the order of the single header entries doesn't matter it is advised
8083  to keep the above sequence, just to get the best optics and meets the layout
8084  of the real document.
8085 \end_layout
8086
8087 \begin_layout Standard
8088 If you want to place footnotes in the header block, e.
8089 \begin_inset space \thinspace{}
8090 \end_inset
8091
8092 g.
8093 \begin_inset space \space{}
8094 \end_inset
8095
8096 to state your present address, just use the standard footnote via the menu
8097  
8098 \family sans
8099 Insert\SpecialChar menuseparator
8100 Footnote.
8101
8102 \family default
8103  \SpecialChar LyX
8104  will automagically use the term 
8105 \family typewriter
8106
8107 \backslash
8108 thanks{}
8109 \family default
8110  in that case.
8111 \end_layout
8112
8113 \begin_layout Standard
8114 In addition to these topics, the macros use three additional \SpecialChar LaTeX
8115  commands that
8116  have no counterpart in \SpecialChar LyX
8117 :
8118 \end_layout
8119
8120 \begin_layout Itemize
8121
8122 \family typewriter
8123
8124 \backslash
8125 and
8126 \family default
8127  to separate different names for more than one author and institute, respectivel
8128 y.
8129 \end_layout
8130
8131 \begin_layout Itemize
8132
8133 \family typewriter
8134
8135 \backslash
8136 inst{<nr>}
8137 \family default
8138 to mark corresponding author/institute pairs.
8139  The institutes are numbered sequentially as they appear in the 
8140 \family sans
8141 Address
8142 \family default
8143  field, so you have to put a marker to each author.
8144 \end_layout
8145
8146 \begin_layout Itemize
8147
8148 \family typewriter
8149
8150 \backslash
8151 email{address}
8152 \family default
8153  to supply an email address for fast contact.
8154 \end_layout
8155
8156 \begin_layout Standard
8157 In all cases, the appropriate command has to be entered in \SpecialChar LyX
8158  and marked as
8159  \SpecialChar LaTeX
8160  code.
8161  See the examples.
8162  
8163 \end_layout
8164
8165 \begin_layout Subsection
8166 The abstract
8167 \end_layout
8168
8169 \begin_layout Standard
8170 The abstract should immediately follow the header block.
8171  With version 5 the abstract environment was changed to a command, and there
8172  is now a resctriction to only one paragraph.
8173  In addition, it should contain an entry with the keywords.
8174  This is not yet implemented for \SpecialChar LyX
8175 , therefore you have to enter the \SpecialChar LaTeX
8176  command
8177  
8178 \family typewriter
8179
8180 \backslash
8181 keywords{}
8182 \family default
8183  by hand and mark it as \SpecialChar LaTeX
8184  code.
8185  Refer to the example paper.
8186 \end_layout
8187
8188 \begin_layout Subsection
8189 Supported environments
8190 \end_layout
8191
8192 \begin_layout Standard
8193 The A&A paper layout supports the following environments for structuring
8194  your text:
8195 \end_layout
8196
8197 \begin_layout Itemize
8198
8199 \family sans
8200 Standard
8201 \end_layout
8202
8203 \begin_layout Itemize
8204
8205 \family sans
8206 Section
8207 \end_layout
8208
8209 \begin_layout Itemize
8210
8211 \family sans
8212 Subsection
8213 \end_layout
8214
8215 \begin_layout Itemize
8216
8217 \family sans
8218 Subsubsection
8219 \end_layout
8220
8221 \begin_layout Itemize
8222
8223 \family sans
8224 Itemize
8225 \end_layout
8226
8227 \begin_layout Itemize
8228
8229 \family sans
8230 Enumerate
8231 \end_layout
8232
8233 \begin_layout Itemize
8234
8235 \family sans
8236 Description
8237 \end_layout
8238
8239 \begin_layout Itemize
8240
8241 \family sans
8242 Caption
8243 \end_layout
8244
8245 \begin_layout Itemize
8246
8247 \family sans
8248 Abstract
8249 \end_layout
8250
8251 \begin_layout Itemize
8252
8253 \family sans
8254 Acknowledgment
8255 \end_layout
8256
8257 \begin_layout Itemize
8258
8259 \family sans
8260 Bibliography
8261 \end_layout
8262
8263 \begin_layout Itemize
8264
8265 \family sans
8266 \SpecialChar LaTeX
8267
8268 \end_layout
8269
8270 \begin_layout Subsection
8271 Commands not supported by \SpecialChar LyX
8272
8273 \end_layout
8274
8275 \begin_layout Standard
8276 Some commands are not yet supported by the 
8277 \family sans
8278 paper (A&A)
8279 \family default
8280  layout for \SpecialChar LyX
8281 .
8282  Some have already been mentioned.
8283  For the sake of completeness, they are listed all together here:
8284 \end_layout
8285
8286 \begin_layout Itemize
8287
8288 \family typewriter
8289
8290 \backslash
8291 and
8292 \end_layout
8293
8294 \begin_layout Itemize
8295
8296 \family typewriter
8297
8298 \backslash
8299 email
8300 \end_layout
8301
8302 \begin_layout Itemize
8303
8304 \family typewriter
8305
8306 \backslash
8307 appendix
8308 \end_layout
8309
8310 \begin_layout Itemize
8311
8312 \family typewriter
8313
8314 \backslash
8315 authorrunning
8316 \end_layout
8317
8318 \begin_layout Itemize
8319
8320 \family typewriter
8321
8322 \backslash
8323 inst{}
8324 \end_layout
8325
8326 \begin_layout Itemize
8327
8328 \family typewriter
8329
8330 \backslash
8331 keywords{}
8332 \end_layout
8333
8334 \begin_layout Itemize
8335
8336 \family typewriter
8337
8338 \backslash
8339 object{}
8340 \end_layout
8341
8342 \begin_layout Itemize
8343
8344 \family typewriter
8345
8346 \backslash
8347 titlerunning{}
8348 \end_layout
8349
8350 \begin_layout Standard
8351 If you want to use any of these commands, you have to enter them yourself.
8352  
8353 \series bold
8354 Do not forget to mark them as \SpecialChar LaTeX
8355  code!
8356 \end_layout
8357
8358 \begin_layout Subsection
8359 Figure and Table Floats
8360 \end_layout
8361
8362 \begin_layout Standard
8363 \SpecialChar LyX
8364  provides support for the necessary float environments 
8365 \family sans
8366 figure, figure*, table
8367 \family default
8368  and 
8369 \family sans
8370 table*
8371 \family default
8372 , therefore we won't tell much about it here.
8373  Refer to the 
8374 \emph on
8375 User's
8376 \begin_inset space ~
8377 \end_inset
8378
8379 Guide
8380 \emph default
8381 .
8382  Just remember that tables should be left-aligned.
8383  For that, select the table and change the alignment in 
8384 \family sans
8385 Edit\SpecialChar menuseparator
8386 Paragraph
8387 \begin_inset space ~
8388 \end_inset
8389
8390 Settings.
8391 \end_layout
8392
8393 \begin_layout Standard
8394 There is only one special thing: the figures with caption besides the figure.
8395  To create such a figure, you have to do the following:
8396 \end_layout
8397
8398 \begin_layout Enumerate
8399 Create a wide figure float: 
8400 \family sans
8401 Insert\SpecialChar menuseparator
8402 Float\SpecialChar menuseparator
8403 Figure
8404 \family default
8405 , then right click in the figure and select 
8406 \family sans
8407 \bar under
8408 S
8409 \bar default
8410 pan
8411 \begin_inset space ~
8412 \end_inset
8413
8414 columns
8415 \family default
8416 .
8417 \end_layout
8418
8419 \begin_layout Enumerate
8420 Enter your caption text.
8421 \end_layout
8422
8423 \begin_layout Enumerate
8424 Press 
8425 \family sans
8426 Return
8427 \family default
8428  to move the cursor above the caption.
8429 \end_layout
8430
8431 \begin_layout Enumerate
8432 Insert your figure
8433 \end_layout
8434
8435 \begin_layout Enumerate
8436 Position the cursor behind the figure and insert a horizontal fill: 
8437 \family sans
8438 Insert\SpecialChar menuseparator
8439 Special
8440 \begin_inset space ~
8441 \end_inset
8442
8443 Character\SpecialChar menuseparator
8444 Horizontal
8445 \begin_inset space ~
8446 \end_inset
8447
8448 Fill
8449 \family default
8450 .
8451 \end_layout
8452
8453 \begin_layout Enumerate
8454 Switch to \SpecialChar LaTeX
8455  mode: 
8456 \family sans
8457 M-c
8458 \begin_inset space ~
8459 \end_inset
8460
8461 t
8462 \family default
8463 .
8464 \end_layout
8465
8466 \begin_layout Enumerate
8467 Enter 
8468 \family typewriter
8469
8470 \backslash
8471 parbox[b]{55mm}{
8472 \family default
8473 .
8474  
8475 \series bold
8476 Do not close the brace!
8477 \end_layout
8478
8479 \begin_layout Enumerate
8480 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8481  mode and insert
8482  the closing brace: 
8483 \family sans
8484 M-c
8485 \begin_inset space ~
8486 \end_inset
8487
8488 t
8489 \family default
8490  
8491 \family typewriter
8492 }
8493 \family default
8494 .
8495 \end_layout
8496
8497 \begin_layout Standard
8498 Also, refer to the figures in the example paper.
8499 \end_layout
8500
8501 \begin_layout Subsection
8502 Referee layout
8503 \end_layout
8504
8505 \begin_layout Standard
8506 For submission, the paper has to be formated in a special double-spacing
8507  layout.
8508  For this purpose, you have to give the option 
8509 \family typewriter
8510 referee
8511 \family default
8512  to the documentclass.
8513  This must be done using the extra class options field in the 
8514 \family sans
8515 Document\SpecialChar menuseparator
8516 Settings
8517 \family default
8518  dialog.
8519  Just enter the string 
8520 \family typewriter
8521 referee
8522 \family default
8523  there.
8524 \end_layout
8525
8526 \begin_layout Subsection
8527 The example paper
8528 \end_layout
8529
8530 \begin_layout Standard
8531 The 
8532 \family sans
8533 Examples
8534 \family default
8535  directory contains an example paper written with \SpecialChar LyX
8536 .
8537  It is the example paper from the original macro package, translated to
8538  \SpecialChar LyX
8539 .
8540  Use it for inspiration, and compare the original \SpecialChar LaTeX
8541  code with \SpecialChar LyX
8542  way of writing.
8543 \end_layout
8544
8545 \begin_layout Section
8546 AAS\SpecialChar TeX
8547
8548 \end_layout
8549
8550 \begin_layout Standard
8551 by 
8552 \noun on
8553 Mike Ressler
8554 \end_layout
8555
8556 \begin_layout Subsection
8557 Introduction
8558 \end_layout
8559
8560 \begin_layout Standard
8561 AAS\SpecialChar TeX
8562  is a set of macros produced by the American Astronomical Society to
8563  facilitate electronic manuscript submission to the three journals they
8564  publish: the Astrophysical Journal (including the Letters and Supplement),
8565  the Astronomical Journal, and the Publications of the Astronomical Society
8566  of the Pacific.
8567  \SpecialChar LyX
8568  has proven to be an excellent tool for generating these documents, especially
8569  given its equation, citation, and figure handling capabilities.
8570  \SpecialChar LyX
8571  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8572  is the version described here, or higher.
8573  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8574 2.09 and are fundamentally
8575  incompatible with \SpecialChar LyX
8576 .
8577  The AAS\SpecialChar TeX
8578  package may be downloaded from the AAS\SpecialChar TeX
8579  Web site
8580 \end_layout
8581
8582 \begin_layout Standard
8583 \begin_inset VSpace medskip
8584 \end_inset
8585
8586
8587 \end_layout
8588
8589 \begin_layout Standard
8590 \align center
8591 \begin_inset Flex URL
8592 status collapsed
8593
8594 \begin_layout Plain Layout
8595
8596 http://www.journals.uchicago.edu/AAS/AASTeX
8597 \end_layout
8598
8599 \end_inset
8600
8601
8602 \end_layout
8603
8604 \begin_layout Standard
8605 \begin_inset VSpace medskip
8606 \end_inset
8607
8608
8609 \end_layout
8610
8611 \begin_layout Standard
8612 A complete user guide is contained in that package and you should familiarize
8613  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8614 .
8615  \SpecialChar LyX
8616  will not reduce the need to figure out all the AAS\SpecialChar TeX
8617  commands, it will only
8618  reduce the drudgery of typing everything in.
8619  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8620  document conforms
8621  completely to the requirements of the journal to which you are submitting
8622  your paper.
8623 \end_layout
8624
8625 \begin_layout Subsection
8626 Starting a New Paper
8627 \end_layout
8628
8629 \begin_layout Standard
8630 I strongly suggest that you start with the AAS\SpecialChar TeX
8631  template file.
8632  Click on 
8633 \family sans
8634 File\SpecialChar menuseparator
8635 New from
8636 \family default
8637  
8638 \family sans
8639 Template
8640 \family default
8641 , enter the new file name, then choose the 
8642 \family typewriter
8643 aastex.lyx
8644 \family default
8645  template.
8646  This will show the most common fields found in a manuscript.
8647  Simply overwrite the existing text (including the brackets, 
8648 \family typewriter
8649 <>
8650 \family default
8651 ) with the correct information.
8652  Many of the AAS\SpecialChar TeX
8653  commands and environments can be implemented directly in
8654  \SpecialChar LyX
8655 , but some cannot: most noticeably 
8656 \family typewriter
8657
8658 \backslash
8659 altaffilmark
8660 \family default
8661  and 
8662 \family typewriter
8663
8664 \backslash
8665 altaffiltext
8666 \family default
8667 , which should stick out like a sore thumb if you actually just opened the
8668  template file.
8669  For commands such as these, the \SpecialChar LaTeX
8670  code must be entered directly and marked
8671  as such.
8672  Such commands are referred to as \SpecialChar TeX
8673  code, or Evil Red Text.
8674  I tried to minimize the amount of \SpecialChar TeX
8675  code needed in an AAS\SpecialChar TeX
8676  document, but
8677  there is still a bit more required than any of us would like.
8678 \end_layout
8679
8680 \begin_layout Subsection
8681 Finishing Your Paper
8682 \end_layout
8683
8684 \begin_layout Standard
8685 When the paper is finished to your satisfaction and previews/prints correctly,
8686  there are a few 
8687 \begin_inset Quotes eld
8688 \end_inset
8689
8690 postprocessing
8691 \begin_inset Quotes erd
8692 \end_inset
8693
8694  actions which need to be done before you submit it to the journals.
8695  
8696 \end_layout
8697
8698 \begin_layout Enumerate
8699 Export your paper as a \SpecialChar LaTeX
8700  file (
8701 \family sans
8702 File\SpecialChar menuseparator
8703 Export\SpecialChar menuseparator
8704 \SpecialChar LaTeX
8705
8706 \family default
8707 ).
8708  
8709 \end_layout
8710
8711 \begin_layout Enumerate
8712 Edit the resulting 
8713 \family typewriter
8714 .tex
8715 \family default
8716  file with your favorite text editor
8717 \begin_inset Separator parbreak
8718 \end_inset
8719
8720
8721 \end_layout
8722
8723 \begin_deeper
8724 \begin_layout Enumerate
8725 remove the comment lines before the 
8726 \family typewriter
8727
8728 \backslash
8729 documentclass
8730 \family default
8731  command
8732 \end_layout
8733
8734 \begin_layout Enumerate
8735 remove the 
8736 \family typewriter
8737
8738 \backslash
8739 usepackage...{fontenc}
8740 \family default
8741  line if it appears (usually just after 
8742 \family typewriter
8743
8744 \backslash
8745 documentclass
8746 \family default
8747 }; also remove the 
8748 \family typewriter
8749
8750 \backslash
8751 secnumdepth
8752 \family default
8753  line if it appears.
8754 \end_layout
8755
8756 \begin_layout Enumerate
8757 remove everything between (and including) the 
8758 \family typewriter
8759
8760 \backslash
8761 makeatletter
8762 \family default
8763  and 
8764 \family typewriter
8765
8766 \backslash
8767 makeatother
8768 \family default
8769  commands, except for any commands you specifically put into the \SpecialChar LaTeX
8770  preamble
8771  (which should appear immediately after the 
8772 \begin_inset Quotes eld
8773 \end_inset
8774
8775 User specified \SpecialChar LaTeX
8776  commands
8777 \begin_inset Quotes erd
8778 \end_inset
8779
8780  comment in the 
8781 \family typewriter
8782 .tex
8783 \family default
8784  file).
8785 \end_layout
8786
8787 \end_deeper
8788 \begin_layout Enumerate
8789 Run the resulting file through \SpecialChar LaTeX
8790  to make sure it still processes correctly.
8791 \end_layout
8792
8793 \begin_layout Enumerate
8794 Reread the journal requirements to make sure your filenames and formats
8795  are correct.
8796 \end_layout
8797
8798 \begin_layout Enumerate
8799 Submit it.
8800 \end_layout
8801
8802 \begin_layout Subsection
8803 Comments On Specific Commands
8804 \end_layout
8805
8806 \begin_layout Standard
8807 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
8808  commands: the
8809  AAS\SpecialChar TeX
8810  User Guide (
8811 \family typewriter
8812 aasguide.tex
8813 \family default
8814 ) gives a good description of each.
8815  Thus it's probably easiest for me to go down the list as found in the guide
8816  and offer comments where necessary.
8817  So let's begin \SpecialChar ldots
8818
8819 \end_layout
8820
8821 \begin_layout Subsubsection
8822 Things that work as expected
8823 \end_layout
8824
8825 \begin_layout Standard
8826 Because they work as you might expect, I simply list them and the section
8827  they are found in: 
8828 \family typewriter
8829
8830 \backslash
8831 documentclass
8832 \family default
8833  (2.1.1), 
8834 \family typewriter
8835
8836 \backslash
8837 begin{document}
8838 \family default
8839  (2.2), 
8840 \family typewriter
8841
8842 \backslash
8843 title
8844 \family default
8845  (2.3), 
8846 \family typewriter
8847
8848 \backslash
8849 author
8850 \family default
8851  (2.3), 
8852 \family typewriter
8853
8854 \backslash
8855 affil
8856 \family default
8857  (2.3), 
8858 \family typewriter
8859
8860 \backslash
8861 abstract
8862 \family default
8863  (2.4), 
8864 \family typewriter
8865
8866 \backslash
8867 keywords
8868 \family default
8869  (2.5), 
8870 \family typewriter
8871
8872 \backslash
8873 section
8874 \family default
8875  (2.7), 
8876 \family typewriter
8877
8878 \backslash
8879 subsection
8880 \family default
8881  (2.7), 
8882 \family typewriter
8883
8884 \backslash
8885 subsubsection
8886 \family default
8887  (2.7), 
8888 \family typewriter
8889
8890 \backslash
8891 paragraph
8892 \family default
8893  (2.7), 
8894 \family typewriter
8895
8896 \backslash
8897 facility
8898 \family default
8899  (2.10), 
8900 \family typewriter
8901
8902 \backslash
8903 begin{displaymath}
8904 \family default
8905  (2.12), 
8906 \family typewriter
8907
8908 \backslash
8909 begin{equation}
8910 \family default
8911  (2.12), 
8912 \family typewriter
8913
8914 \backslash
8915 begin{eqnarray}
8916 \family default
8917  (2.12), 
8918 \family typewriter
8919
8920 \backslash
8921 begin{mathletters}
8922 \family default
8923  (2.12), 
8924 \family typewriter
8925
8926 \backslash
8927 begin{thebibliography}
8928 \family default
8929  (2.13.1), 
8930 \family typewriter
8931
8932 \backslash
8933 bibitem
8934 \family default
8935  (2.13.2), all the cite commands and their variations (2.13.2), the generic
8936  graphicx figure commands (2.14.1), 
8937 \family typewriter
8938
8939 \backslash
8940 begin{table}
8941 \family default
8942  (2.15.4), 
8943 \family typewriter
8944
8945 \backslash
8946 begin{tabular}
8947 \family default
8948  (2.15.4), 
8949 \family typewriter
8950
8951 \backslash
8952 caption
8953 \family default
8954  (2.15.4), 
8955 \family typewriter
8956
8957 \backslash
8958 label
8959 \family default
8960  (2.15.4, amongst other places), 
8961 \family typewriter
8962
8963 \backslash
8964 tablerefs
8965 \family default
8966  (2.15.5), 
8967 \family typewriter
8968
8969 \backslash
8970 tablecomments
8971 \family default
8972  (2.15.5), 
8973 \family typewriter
8974
8975 \backslash
8976 url
8977 \family default
8978  (2.17.4), 
8979 \family typewriter
8980
8981 \backslash
8982 end{document}
8983 \family default
8984  (2.18).
8985 \end_layout
8986
8987 \begin_layout Standard
8988 The following style options also work correctly: 
8989 \family typewriter
8990 longabstract
8991 \family default
8992  (2.4), 
8993 \family typewriter
8994 preprint
8995 \family default
8996  (3.2.1), 
8997 \family typewriter
8998 preprint2
8999 \family default
9000  (3.2.2), 
9001 \family typewriter
9002 eqsecnum
9003 \family default
9004  (3.3), 
9005 \family typewriter
9006 flushrt
9007 \family default
9008  (3.4).
9009  Simply put them in the 
9010 \family sans
9011 Options
9012 \family default
9013  box in 
9014 \family sans
9015 Layout\SpecialChar menuseparator
9016 Document
9017 \family default
9018 .
9019 \end_layout
9020
9021 \begin_layout Subsubsection
9022 Things that work, but require more comment
9023 \end_layout
9024
9025 \begin_layout Standard
9026 The following items work, but require a little more discussion:
9027 \end_layout
9028
9029 \begin_layout Itemize
9030 These items are reserved for use by the journal editors, but you can put
9031  them into the \SpecialChar LaTeX
9032  preamble if you feel compelled to do so: 
9033 \family typewriter
9034
9035 \backslash
9036 received
9037 \family default
9038
9039 \family typewriter
9040
9041 \backslash
9042 revised
9043 \family default
9044
9045 \family typewriter
9046
9047 \backslash
9048 accepted
9049 \family default
9050
9051 \family typewriter
9052
9053 \backslash
9054 ccc
9055 \family default
9056
9057 \family typewriter
9058
9059 \backslash
9060 cpright
9061 \family default
9062  (all from 2.1.3)
9063 \end_layout
9064
9065 \begin_layout Itemize
9066 These items may be placed in the \SpecialChar LaTeX
9067  preamble, and are included as blanks in
9068  the template file: 
9069 \family typewriter
9070
9071 \backslash
9072 slugcomment
9073 \family default
9074  (2.1.4), 
9075 \family typewriter
9076
9077 \backslash
9078 shorttitle
9079 \family default
9080  (2.1.5), 
9081 \family typewriter
9082
9083 \backslash
9084 shortauthors
9085 \family default
9086  (2.1.5)
9087 \end_layout
9088
9089 \begin_layout Itemize
9090
9091 \family typewriter
9092
9093 \backslash
9094 email
9095 \family default
9096  (2.3) – can only be used 
9097 \begin_inset Quotes eld
9098 \end_inset
9099
9100 standalone
9101 \begin_inset Quotes erd
9102 \end_inset
9103
9104 , not in the middle of a paragraph.
9105  Use \SpecialChar TeX
9106  code if you need to embed it.
9107 \end_layout
9108
9109 \begin_layout Itemize
9110
9111 \family typewriter
9112
9113 \backslash
9114 and
9115 \family default
9116  (2.3) – will have extra {} after it.
9117  This should not cause an error.
9118 \end_layout
9119
9120 \begin_layout Itemize
9121
9122 \family typewriter
9123
9124 \backslash
9125 notetoeditor
9126 \family default
9127  (2.6) – can only be used 
9128 \begin_inset Quotes eld
9129 \end_inset
9130
9131 standalone
9132 \begin_inset Quotes erd
9133 \end_inset
9134
9135 , not in the middle of a paragraph.
9136  Use \SpecialChar TeX
9137  code if you need to embed it.
9138 \end_layout
9139
9140 \begin_layout Itemize
9141
9142 \family typewriter
9143
9144 \backslash
9145 placetable
9146 \family default
9147  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9148  hand
9149 \end_layout
9150
9151 \begin_layout Itemize
9152
9153 \family typewriter
9154
9155 \backslash
9156 placefigure
9157 \family default
9158  (2.8) – same as for 
9159 \family typewriter
9160
9161 \backslash
9162 placetable
9163 \end_layout
9164
9165 \begin_layout Itemize
9166
9167 \family typewriter
9168
9169 \backslash
9170 acknowledgements
9171 \family default
9172  (2.9) – will have extra {} after it.
9173  This should not cause an error.
9174 \end_layout
9175
9176 \begin_layout Itemize
9177
9178 \family typewriter
9179
9180 \backslash
9181 appendix
9182 \family default
9183  (2.11) – will have extra {} after it.
9184  This should not cause an error.
9185 \end_layout
9186
9187 \begin_layout Itemize
9188
9189 \family typewriter
9190
9191 \backslash
9192 figcaption
9193 \family default
9194  (2.14.2) – you can insert an optional filename argument by placing the cursor
9195  at the beginning of the text and selecting 
9196 \family sans
9197 Insert\SpecialChar menuseparator
9198 Short Title
9199 \family default
9200 .
9201  
9202 \begin_inset Quotes eld
9203 \end_inset
9204
9205 Short Title
9206 \begin_inset Quotes erd
9207 \end_inset
9208
9209  inserts an optional argument of the type needed by 
9210 \family typewriter
9211
9212 \backslash
9213 figcaption
9214 \family default
9215 .
9216  Hopefully it will be renamed someday.
9217 \end_layout
9218
9219 \begin_layout Itemize
9220
9221 \family typewriter
9222
9223 \backslash
9224 objectname
9225 \family default
9226  (2.17.1) – same as 
9227 \family typewriter
9228
9229 \backslash
9230 figcaption
9231 \family default
9232  for the catalog ID optional parameter
9233 \end_layout
9234
9235 \begin_layout Itemize
9236
9237 \family typewriter
9238
9239 \backslash
9240 dataset
9241 \family default
9242  (2.17.1) – same as 
9243 \family typewriter
9244
9245 \backslash
9246 figcaption
9247 \family default
9248  for the catalog ID optional parameter
9249 \end_layout
9250
9251 \begin_layout Subsubsection
9252 Things not implemented, use \SpecialChar TeX
9253  code
9254 \end_layout
9255
9256 \begin_layout Standard
9257
9258 \family typewriter
9259
9260 \backslash
9261 altaffilmark
9262 \family default
9263  (2.3), 
9264 \family typewriter
9265
9266 \backslash
9267 altaffiltext
9268 \family default
9269  (2.3), 
9270 \family typewriter
9271
9272 \backslash
9273 eqnum
9274 \family default
9275  (2.12), 
9276 \family typewriter
9277
9278 \backslash
9279 setcounter{equation}
9280 \family default
9281  (2.12), Journal name abbreviations (2.13.4), 
9282 \family typewriter
9283
9284 \backslash
9285 figurenum
9286 \family default
9287  (2.14.1), 
9288 \family typewriter
9289
9290 \backslash
9291 epsscale
9292 \family default
9293  (2.14.1), 
9294 \family typewriter
9295
9296 \backslash
9297 plotone
9298 \family default
9299  (2.14.1), 
9300 \family typewriter
9301
9302 \backslash
9303 plottwo
9304 \family default
9305  (2.14.1), 
9306 \family typewriter
9307
9308 \backslash
9309 tablenum
9310 \family default
9311  (2.15.4), 
9312 \family typewriter
9313
9314 \backslash
9315 tableline
9316 \family default
9317  (2.15.4, insert it as the first element in the lefthand cell after where
9318  you want it.
9319  Don't use any of \SpecialChar LyX
9320 's rules in the table), 
9321 \family typewriter
9322
9323 \backslash
9324 tablenotemark
9325 \family default
9326  (2.15.5), 
9327 \family typewriter
9328
9329 \backslash
9330 tablenotetext
9331 \family default
9332  (2.15.5), much of Misc (2.17, except 
9333 \family typewriter
9334
9335 \backslash
9336 objectname
9337 \family default
9338
9339 \family typewriter
9340
9341 \backslash
9342 dataset
9343 \family default
9344
9345 \family typewriter
9346
9347 \backslash
9348 url
9349 \family default
9350 , and 
9351 \family typewriter
9352
9353 \backslash
9354 email
9355 \family default
9356 ; see above), 
9357 \family typewriter
9358
9359 \backslash
9360 singlespace
9361 \family default
9362  (3.1), 
9363 \family typewriter
9364
9365 \backslash
9366 doublespace
9367 \family default
9368  (3.1), 
9369 \family typewriter
9370
9371 \backslash
9372 onecolumn
9373 \family default
9374  (3.2), 
9375 \family typewriter
9376
9377 \backslash
9378 twocolumn
9379 \family default
9380  (3.2)
9381 \end_layout
9382
9383 \begin_layout Subsubsection
9384 Things that cannot be implemented
9385 \end_layout
9386
9387 \begin_layout Standard
9388 \SpecialChar ldots
9389  at least in any meaningful sort of way, so I suggest ignoring them.
9390  They are the references environment (2.13.3), and the deluxetable environment
9391  (2.15).
9392  If you really, really need to use deluxetable, I suggest editing it in
9393  a separate file with a text editor, then using 
9394 \family sans
9395 Insert\SpecialChar menuseparator
9396 Child
9397 \begin_inset space ~
9398 \end_inset
9399
9400 Document
9401 \family default
9402  to include it in your \SpecialChar LyX
9403  document.
9404  See the 
9405 \family typewriter
9406 aas_sample.lyx
9407 \family default
9408  file to see an example of this.
9409 \end_layout
9410
9411 \begin_layout Subsection
9412 FAQs, Tips, Tricks, and Other Ruminations
9413 \end_layout
9414
9415 \begin_layout Subsubsection
9416 Getting \SpecialChar LyX
9417  and AAS\SpecialChar TeX
9418  to cooperate
9419 \end_layout
9420
9421 \begin_layout Standard
9422 It can be a bit tricky to get \SpecialChar LyX
9423  to recognize a new layout and document class.
9424  When all else fails, do this:
9425 \end_layout
9426
9427 \begin_layout Enumerate
9428 Make certain that \SpecialChar LaTeX
9429  can find AAS\SpecialChar TeX
9430 .
9431  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9432  distribution into a
9433  directory completely unrelated to \SpecialChar LaTeX
9434  or AAS\SpecialChar TeX
9435  and run \SpecialChar LaTeX
9436  on 
9437 \family typewriter
9438 sample.tex
9439 \family default
9440 .
9441 \end_layout
9442
9443 \begin_layout Enumerate
9444 Make certain that 
9445 \family typewriter
9446 aastex.layout
9447 \family default
9448  appears in \SpecialChar LyX
9449 's 
9450 \family typewriter
9451 layouts
9452 \family default
9453  folder
9454 \end_layout
9455
9456 \begin_layout Enumerate
9457 Rerun 
9458 \family sans
9459 Tools\SpecialChar menuseparator
9460 Reconfigure
9461 \family default
9462  in \SpecialChar LyX
9463 , then restart \SpecialChar LyX
9464 .
9465 \end_layout
9466
9467 \begin_layout Enumerate
9468 Open a regular new file, not from a template.
9469  Does AAS\SpecialChar TeX
9470  appear in the class list in 
9471 \family sans
9472 Document\SpecialChar menuseparator
9473 Settings
9474 \family default
9475 ?
9476 \end_layout
9477
9478 \begin_layout Standard
9479 If you get a warning from an existing AAS\SpecialChar TeX
9480  document about not being able
9481  to find the AAS\SpecialChar TeX
9482  layout or a message about 
9483 \begin_inset Quotes eld
9484 \end_inset
9485
9486 You should not mix title layouts with normal ones
9487 \begin_inset Quotes erd
9488 \end_inset
9489
9490 , things haven't been installed correctly.
9491 \end_layout
9492
9493 \begin_layout Subsubsection
9494 \SpecialChar LaTeX
9495  error processing a table 
9496 \end_layout
9497
9498 \begin_layout Standard
9499 \SpecialChar LyX
9500 , by default, attempts to center the table caption/title.
9501  This seems to produce a bad interaction in AAS\SpecialChar TeX
9502  so you should click somewhere
9503  in the caption/title, then select 
9504 \family sans
9505 Edit\SpecialChar menuseparator
9506 Paragraph
9507 \begin_inset space ~
9508 \end_inset
9509
9510 Settings
9511 \family default
9512 , then set the 
9513 \family sans
9514 Alignment
9515 \family default
9516  to 
9517 \family sans
9518 Block
9519 \family default
9520 .
9521  This took care of it for me.
9522 \end_layout
9523
9524 \begin_layout Subsubsection
9525 References
9526 \end_layout
9527
9528 \begin_layout Standard
9529 A couple of things: 1) I have noticed some funny spacing in the reference
9530  entries in the text.
9531  When you enter the bibliography item data, make sure their is 
9532 \emph on
9533 no
9534 \emph default
9535  space between the last author and the parenthesis setting off the year;
9536  
9537 \emph on
9538 e.
9539 \begin_inset space \thinspace{}
9540 \end_inset
9541
9542 g.
9543 \begin_inset space \space{}
9544 \end_inset
9545
9546
9547 \emph default
9548 type 
9549 \family typewriter
9550 Ressler(1992)
9551 \family default
9552 , not 
9553 \family typewriter
9554 Ressler (1992)
9555 \family default
9556 .
9557  2) Entering the references at all is not obvious.
9558  The easiest thing is to start typing your first reference at the end of
9559  the document, then mark it as type 
9560 \family sans
9561 References
9562 \family default
9563 .
9564  That will put a small gray box in front of what you just typed.
9565  Click on the box to fill in the rest of the information.
9566  For new references, go to the end of an existing reference and press return.
9567  That will create a new line with its own box, etc.
9568 \end_layout
9569
9570 \begin_layout Subsubsection
9571 Including EPS files
9572 \end_layout
9573
9574 \begin_layout Standard
9575 Even though AAS\SpecialChar TeX
9576  provides its own figure commands (
9577 \family typewriter
9578
9579 \backslash
9580 plotone
9581 \family default
9582 , for example), I much prefer \SpecialChar LaTeX
9583 's standard figure commands (with the default
9584  graphicx).
9585  You can insert the 
9586 \family typewriter
9587
9588 \backslash
9589 plotone
9590 \family default
9591 , etc.
9592 \begin_inset space ~
9593 \end_inset
9594
9595 commands as \SpecialChar TeX
9596  code into a Figure Float box if you desire, but I never have
9597  much luck getting the layout right.
9598  With the standard graphics, \SpecialChar LyX
9599  will insert a 
9600 \family typewriter
9601
9602 \backslash
9603 usepackage{graphicx}
9604 \family default
9605  command into the \SpecialChar LaTeX
9606  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9607  way,
9608  interspersing the figures in the text.
9609  I believe ApJ accepts figures exactly this way now; AJ might still use
9610  the 
9611 \begin_inset Quotes eld
9612 \end_inset
9613
9614 stack everything at the end
9615 \begin_inset Quotes erd
9616 \end_inset
9617
9618  technique.
9619 \end_layout
9620
9621 \begin_layout Subsubsection
9622 Things I could have done, but didn't
9623 \end_layout
9624
9625 \begin_layout Standard
9626 There are a few 
9627 \begin_inset Quotes eld
9628 \end_inset
9629
9630 pretty
9631 \begin_inset Quotes erd
9632 \end_inset
9633
9634  things I could have implemented, but chose not to.
9635  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9636  window,
9637  even though it is double-spaced in the paper manuscript.
9638  Also, I chose not to make separate layouts for the preprint and preprint2
9639  styles.
9640  Since I assume you will spend most of your time in the plain manuscript
9641  mode anyway, I decided not to chew up more disk space with this.
9642  
9643 \end_layout
9644
9645 \begin_layout Subsection
9646 Final Caveat
9647 \end_layout
9648
9649 \begin_layout Standard
9650 Your mileage may vary.
9651  I've now had papers published by both ApJ and AJ that have had 98% of the
9652  effort done in \SpecialChar LyX
9653 ; the last 2% was the \SpecialChar LaTeX
9654  post-processing and a few cleanups.
9655  I have had no trouble with the submission process, and I'm sure the journals
9656  were never aware that there might be a difference.
9657  So, go forth and publish!
9658 \end_layout
9659
9660 \begin_layout Section
9661 AMS \SpecialChar LaTeX
9662
9663 \end_layout
9664
9665 \begin_layout Standard
9666 by 
9667 \noun on
9668 David Johnson
9669 \noun default
9670 ; updated by 
9671 \noun on
9672 Richard Heck
9673 \end_layout
9674
9675 \begin_layout Standard
9676 \begin_inset VSpace bigskip
9677 \end_inset
9678
9679
9680 \end_layout
9681
9682 \begin_layout Standard
9683 \noindent
9684 The AMS \SpecialChar LaTeX
9685  layouts are set up to conform to suggested styles for mathematical
9686  papers to be submitted to American Mathematical Society publications.
9687  The layouts are not tailored to a specific journal, but easily can be.
9688  You should refer to the AMS documentation for specific instructions for
9689  each journal (usually it will entail only changing a single line in the
9690  \SpecialChar TeX
9691  output).
9692  That documentation is available on the Web at 
9693 \begin_inset Flex URL
9694 status open
9695
9696 \begin_layout Plain Layout
9697
9698 http://www.ams.org
9699 \end_layout
9700
9701 \end_inset
9702
9703  or by ftp at 
9704 \begin_inset Flex URL
9705 status open
9706
9707 \begin_layout Plain Layout
9708
9709 ftp://ftp.ams.org/pub/tex/amslatex/
9710 \end_layout
9711
9712 \end_inset
9713
9714 .
9715  These layouts are appropriate, and useful, for any mathematical writing.
9716  
9717 \end_layout
9718
9719 \begin_layout Standard
9720 There are two basic AMS \SpecialChar LaTeX
9721  layouts: 
9722 \end_layout
9723
9724 \begin_layout Itemize
9725 amsart: The standard AMS article format.
9726 \end_layout
9727
9728 \begin_layout Itemize
9729 amsbook: the standard AMS book (really, monograph) format.
9730  
9731 \end_layout
9732
9733 \begin_layout Standard
9734 The layouts themselves contain only the minimum necessary to use the AMS
9735  classes.
9736  They do not, in particular, contain any of the `theorem' environments used
9737  for setting theorems, lemmas, and the like.
9738  These are contained, instead, in the 
9739 \begin_inset Flex Code
9740 status collapsed
9741
9742 \begin_layout Plain Layout
9743 Theorems (AMS)
9744 \end_layout
9745
9746 \end_inset
9747
9748  module, which is loaded by default when you select one of the AMS classes.
9749  (It can also be used with other classes and can be removed, if you would
9750  rather use something else.) Less commonly used environments are in the 
9751 \begin_inset Flex Code
9752 status collapsed
9753
9754 \begin_layout Plain Layout
9755 Theorems (AMS-Extended)
9756 \end_layout
9757
9758 \end_inset
9759
9760  module, which must be loaded manually.
9761 \end_layout
9762
9763 \begin_layout Standard
9764 By default, theorems and the like are numbered consecutively throughout
9765  the document, but this may be modified by loading the module 
9766 \begin_inset Flex Code
9767 status collapsed
9768
9769 \begin_layout Plain Layout
9770 Theorems (Order by Section)
9771 \end_layout
9772
9773 \end_inset
9774
9775  or, if you are using 
9776 \begin_inset Flex Code
9777 status collapsed
9778
9779 \begin_layout Plain Layout
9780 book (AMS)
9781 \end_layout
9782
9783 \end_inset
9784
9785 , the module 
9786 \begin_inset Flex Code
9787 status collapsed
9788
9789 \begin_layout Plain Layout
9790 Theorems (Order by Chapter)
9791 \end_layout
9792
9793 \end_inset
9794
9795 .
9796  These will number the results as 
9797 \begin_inset Formula $n.m$
9798 \end_inset
9799
9800 , where the first number refers to the section (or chapter) and the second
9801  refers to the total number of results so far in that section (or chapter).
9802  Many environments are also available unnumbered.
9803  These are indicated by an asterisk at the end.
9804  If you happen to want 
9805 \emph on
9806 only
9807 \emph default
9808  unnumbered results, the module 
9809 \begin_inset Flex Code
9810 status collapsed
9811
9812 \begin_layout Plain Layout
9813 Theorems (Starred)
9814 \end_layout
9815
9816 \end_inset
9817
9818  provides that option.
9819 \end_layout
9820
9821 \begin_layout Standard
9822 Note that these modules do not 
9823 \emph on
9824 have
9825 \emph default
9826  to be used with the AMS classes.
9827  It is perfectly possible to use the 
9828 \begin_inset Flex Code
9829 status collapsed
9830
9831 \begin_layout Plain Layout
9832 Theorems (AMS)
9833 \end_layout
9834
9835 \end_inset
9836
9837  module, and the others mentioned, with other classes, such as 
9838 \begin_inset Flex Code
9839 status collapsed
9840
9841 \begin_layout Plain Layout
9842 article
9843 \end_layout
9844
9845 \end_inset
9846
9847
9848 \begin_inset Flex Code
9849 status collapsed
9850
9851 \begin_layout Plain Layout
9852 report
9853 \end_layout
9854
9855 \end_inset
9856
9857
9858 \begin_inset Flex Code
9859 status collapsed
9860
9861 \begin_layout Plain Layout
9862 book (KOMA-script)
9863 \end_layout
9864
9865 \end_inset
9866
9867 , and so forth.
9868 \end_layout
9869
9870 \begin_layout Subsection
9871 What these layouts provide
9872 \end_layout
9873
9874 \begin_layout Standard
9875 There is a long list of included environments provided by these layouts.
9876  In AMS-\SpecialChar LaTeX
9877 , there is, in fact, an opportunity to define an unlimited variety
9878  of `theorem' environments.
9879  However, the AMS recommends the environments that are available in \SpecialChar LyX
9880 .
9881  
9882 \end_layout
9883
9884 \begin_layout Standard
9885 The following environments—as well as the standard environments, such as
9886  
9887 \begin_inset Flex Noun
9888 status collapsed
9889
9890 \begin_layout Plain Layout
9891 section
9892 \end_layout
9893
9894 \end_inset
9895
9896
9897 \begin_inset Flex Noun
9898 status collapsed
9899
9900 \begin_layout Plain Layout
9901 bibliography
9902 \end_layout
9903
9904 \end_inset
9905
9906
9907 \begin_inset Flex Noun
9908 status collapsed
9909
9910 \begin_layout Plain Layout
9911 title
9912 \end_layout
9913
9914 \end_inset
9915
9916
9917 \begin_inset Flex Noun
9918 status collapsed
9919
9920 \begin_layout Plain Layout
9921 author
9922 \end_layout
9923
9924 \end_inset
9925
9926 , and 
9927 \begin_inset Flex Noun
9928 status collapsed
9929
9930 \begin_layout Plain Layout
9931 date
9932 \end_layout
9933
9934 \end_inset
9935
9936 —are provided by 
9937 \begin_inset Flex Code
9938 status collapsed
9939
9940 \begin_layout Plain Layout
9941 article (AMS)
9942 \end_layout
9943
9944 \end_inset
9945
9946  and 
9947 \begin_inset Flex Code
9948 status collapsed
9949
9950 \begin_layout Plain Layout
9951 book (AMS)
9952 \end_layout
9953
9954 \end_inset
9955
9956 :
9957 \end_layout
9958
9959 \begin_layout Description
9960 Address This should be the author's permanent address.
9961 \end_layout
9962
9963 \begin_layout Description
9964 Current
9965 \begin_inset space ~
9966 \end_inset
9967
9968 Address This should be the author's temporary address at the time of submission,
9969  if different from the Address.
9970 \end_layout
9971
9972 \begin_layout Description
9973 Email Author's e-mail address
9974 \end_layout
9975
9976 \begin_layout Description
9977 URL Author's Web address, if desired.
9978 \end_layout
9979
9980 \begin_layout Description
9981 Keywords Key words or phrases used to identify specific topics discussed
9982  in the paper.
9983 \end_layout
9984
9985 \begin_layout Description
9986 Subjectclass These refer to the AMS Subject Classifications, published and
9987  described in 
9988 \emph on
9989 Mathematical Reviews
9990 \emph default
9991 .
9992  These are also available online at the AMS cites listed above.
9993 \end_layout
9994
9995 \begin_layout Description
9996 Thanks
9997 \end_layout
9998
9999 \begin_layout Description
10000 Dedicatory
10001 \end_layout
10002
10003 \begin_layout Description
10004 Translator
10005 \end_layout
10006
10007 \begin_layout Standard
10008 The following environments are provided by both the 
10009 \begin_inset Flex Code
10010 status collapsed
10011
10012 \begin_layout Plain Layout
10013 Theorems
10014 \end_layout
10015
10016 \end_inset
10017
10018  and 
10019 \begin_inset Flex Code
10020 status collapsed
10021
10022 \begin_layout Plain Layout
10023 Theorems (AMS)
10024 \end_layout
10025
10026 \end_inset
10027
10028  modules, in the latter case in both starred (unnumbered) and unstarred
10029  (numbered) versions.
10030  These same environments are provided only in the starred versions by the
10031  
10032 \begin_inset Flex Code
10033 status collapsed
10034
10035 \begin_layout Plain Layout
10036 Theorems (Starred)
10037 \end_layout
10038
10039 \end_inset
10040
10041  module:
10042 \end_layout
10043
10044 \begin_layout Theorem
10045 This is typically used for the statements of major results.
10046  
10047 \end_layout
10048
10049 \begin_layout Corollary*
10050 This is used for statements which follow fairly directly from previous statement
10051 s.
10052  Again, these can be major results.
10053  
10054 \end_layout
10055
10056 \begin_layout Lemma
10057 These are smaller results needed to prove other statements.
10058 \end_layout
10059
10060 \begin_layout Proposition
10061 These are less major results which (hopefully) add to the general theory
10062  being discussed.
10063 \end_layout
10064
10065 \begin_layout Conjecture
10066 These are statements provided without justification, which the author does
10067  not know how to prove, but which seem to be true (to the author, at least).
10068 \end_layout
10069
10070 \begin_layout Definition*
10071 Guess what this is for.
10072  The font is different for this environment than for the previous ones.
10073  
10074 \end_layout
10075
10076 \begin_layout Example*
10077 Used for examples illustrating proven results.
10078 \end_layout
10079
10080 \begin_layout Problem
10081 It's not really known what this is for.
10082  You should figure it out.
10083 \end_layout
10084
10085 \begin_layout Exercise*
10086 Write a description for this one.
10087 \end_layout
10088
10089 \begin_layout Remark
10090 This environment is also a type of theorem, usually a lesser sort of observation.
10091 \end_layout
10092
10093 \begin_layout Claim*
10094 Often used in the course of giving a proof of a larger result.
10095 \end_layout
10096
10097 \begin_layout Case
10098 Generally, these are used to break up long arguments, using specific instances
10099  of some condition.
10100  
10101 \end_layout
10102
10103 \begin_layout Case
10104 The numbering scheme for cases is on its own, not together with other numbered
10105  statements.
10106  
10107 \end_layout
10108
10109 \begin_layout Proof
10110 At the end of this environment, a QED symbol (usually a square, but it can
10111  vary with different styles) is placed.
10112  If you want to have other environments within this one—for example, Case
10113  environments—and have the QED symbol appear only after them, then the other
10114  environments need to be nested within the proof environment.
10115  See the section 
10116 \emph on
10117 Nesting Environments
10118 \emph default
10119  of the 
10120 \emph on
10121 User's Guide
10122 \emph default
10123  for information on nesting.
10124 \end_layout
10125
10126 \begin_layout Standard
10127 And these environments are provided by 
10128 \begin_inset Flex Code
10129 status collapsed
10130
10131 \begin_layout Plain Layout
10132 Theorems (AMS-Extended)
10133 \end_layout
10134
10135 \end_inset
10136
10137 :
10138 \end_layout
10139
10140 \begin_layout Criterion*
10141 A required condition.
10142 \end_layout
10143
10144 \begin_layout Algorithm*
10145 A general procedure to be used.
10146 \end_layout
10147
10148 \begin_layout Axiom*
10149 This is a property or statement taken as true within the system being discussed.
10150 \end_layout
10151
10152 \begin_layout Condition*
10153 Sometimes used to state a condition assumed within the present context of
10154  discussion.
10155 \end_layout
10156
10157 \begin_layout Note*
10158 Similar to a Remark.
10159 \end_layout
10160
10161 \begin_layout Notation*
10162 Used for the explanation of, yes, notation.
10163 \end_layout
10164
10165 \begin_layout Summary
10166 Do we really need to tell you? 
10167 \end_layout
10168
10169 \begin_layout Acknowledgement*
10170 Acknowledgement.
10171 \end_layout
10172
10173 \begin_layout Conclusion*
10174 Sometimes used at the end of a long train of argument.
10175 \end_layout
10176
10177 \begin_layout Fact
10178 Used in a way similar to Proposition, though perhaps lower on the scale.
10179 \end_layout
10180
10181 \begin_layout Standard
10182 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10183  and AMS fonts
10184  packages.
10185  They need to be available on your system in order to use these environments.
10186 \end_layout
10187
10188 \begin_layout Section
10189 AGU journals (
10190 \family sans
10191 aguplus
10192 \family default
10193 )
10194 \end_layout
10195
10196 \begin_layout Standard
10197 by 
10198 \shape smallcaps
10199 Martin Vermeer
10200 \end_layout
10201
10202 \begin_layout Subsection
10203 Description
10204 \end_layout
10205
10206 \begin_layout Standard
10207 These are the layout files for some of the journals of the American Geophysical
10208  Society.
10209  It is assumed that you have both the AGU's own class files and AGUplus
10210  installed (everything to be found at
10211 \begin_inset Flex URL
10212 status collapsed
10213
10214 \begin_layout Plain Layout
10215
10216 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10217 \end_layout
10218
10219 \end_inset
10220
10221 ).
10222 \end_layout
10223
10224 \begin_layout Subsection
10225 New styles
10226 \end_layout
10227
10228 \begin_layout Standard
10229 Redefined are 
10230 \family sans
10231 Paragraph
10232 \family default
10233
10234 \family sans
10235 Paragraph*
10236 \family default
10237 .
10238  They are still called this in the \SpecialChar LyX
10239  GUI, though their \SpecialChar LaTeX
10240  equivalents in the
10241  AGU classes are 
10242 \family sans
10243 Subsubsubsection
10244 \family default
10245  and 
10246 \family sans
10247 Subsubsubsection*
10248 \family default
10249 .
10250 \end_layout
10251
10252 \begin_layout Standard
10253 Newly defined styles are 
10254 \family sans
10255 Left_Header
10256 \family default
10257
10258 \family sans
10259 Right_Header
10260 \family default
10261
10262 \family sans
10263 Received
10264 \family default
10265
10266 \family sans
10267 Revised
10268 \family default
10269
10270 \family sans
10271 Accepted
10272 \family default
10273
10274 \family sans
10275 CCC
10276 \family default
10277
10278 \family sans
10279 PaperId
10280 \family default
10281
10282 \family sans
10283 AuthorAddr
10284 \family default
10285
10286 \family sans
10287 SlugComment
10288 \family default
10289 .
10290  These are mostly manuscript attributes and defined in the AGU class documentati
10291 on.
10292 \end_layout
10293
10294 \begin_layout Standard
10295 I suspect this is still badly incomplete.
10296 \end_layout
10297
10298 \begin_layout Subsection
10299 New floats
10300 \end_layout
10301
10302 \begin_layout Standard
10303
10304 \family sans
10305 Planotable
10306 \family default
10307  and 
10308 \family sans
10309 Plate
10310 \family default
10311 .
10312  We also have a new 
10313 \family sans
10314 Table_Caption
10315 \family default
10316 .
10317 \end_layout
10318
10319 \begin_layout Subsection
10320 Supported journals
10321 \end_layout
10322
10323 \begin_layout Itemize
10324
10325 \emph on
10326 Journal of Geophysical Research
10327 \emph default
10328
10329 \family typewriter
10330 jgrga.layout
10331 \family default
10332  — Martin Vermeer
10333 \end_layout
10334
10335 \begin_layout Standard
10336 Add your own, it isn't so hard! Look at the 
10337 \family typewriter
10338 jgrga.layout
10339 \family default
10340  example and 
10341 \family typewriter
10342 aguplus.inc
10343 \family default
10344 .
10345 \end_layout
10346
10347 \begin_layout Subsection
10348 Bugs and things to remember
10349 \end_layout
10350
10351 \begin_layout Standard
10352 In order to use the new layouts, you must remember to do the following for
10353  a new document:
10354 \end_layout
10355
10356 \begin_layout Enumerate
10357
10358 \emph on
10359 Turn off babel
10360 \emph default
10361 .
10362  This can be done in the 
10363 \family sans
10364 Layout\SpecialChar menuseparator
10365 Document
10366 \family default
10367  or 
10368 \family sans
10369 Document\SpecialChar menuseparator
10370 Settings
10371 \family default
10372  menu item.
10373  (AGU articles are always in English, right? So 
10374 \emph on
10375 don't
10376 \emph default
10377  choose a language.)
10378 \end_layout
10379
10380 \begin_layout Enumerate
10381 Enter 
10382 \family typewriter
10383 jgrga
10384 \family default
10385  into the document's 
10386 \family sans
10387 Extra Options
10388 \family default
10389  field.
10390  (Yes, this is a bug.)
10391 \end_layout
10392
10393 \begin_layout Enumerate
10394 Make sure you use the 
10395 \family typewriter
10396 agu.bst
10397 \family default
10398  bibliography style, by entering 
10399 \family sans
10400 agu
10401 \family default
10402  into the second field of the Bib\SpecialChar TeX
10403  inset.
10404  None of the standard styles will do.
10405 \end_layout
10406
10407 \begin_layout Section
10408 Broadway
10409 \end_layout
10410
10411 \begin_layout Standard
10412 by 
10413 \shape smallcaps
10414 Garst Reese
10415 \end_layout
10416
10417 \begin_layout Subsection
10418 Introduction
10419 \end_layout
10420
10421 \begin_layout Standard
10422 Broadway is for writing plays.
10423  The format is more decorative than Hollywood, and much less standardized.
10424  This format should be suitable for workshops.
10425 \end_layout
10426
10427 \begin_layout Subsection
10428 Special problems
10429 \end_layout
10430
10431 \begin_layout Standard
10432 The same as in Hollywood.
10433 \end_layout
10434
10435 \begin_layout Subsection
10436 Special features
10437 \end_layout
10438
10439 \begin_layout Standard
10440 Insert the 
10441 \family sans
10442 Speaker
10443 \family default
10444  names as labels then cross-reference the label to insert the name.
10445  The cross-reference dialog will show the current cast of characters.
10446 \end_layout
10447
10448 \begin_layout Subsection
10449 Paper size and Margins
10450 \end_layout
10451
10452 \begin_layout Standard
10453 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10454 \end_layout
10455
10456 \begin_layout Subsection
10457 Environments
10458 \end_layout
10459
10460 \begin_layout Standard
10461 The following environments are available.
10462  You can use broadway.bind to get the bind keys shown at the right.
10463 \end_layout
10464
10465 \begin_layout Itemize
10466
10467 \family sans
10468 Standard
10469 \begin_inset Newline newline
10470 \end_inset
10471
10472
10473 \family default
10474 You should not have to use this, but it is here for anything that does not
10475  fit otherwise.
10476 \end_layout
10477
10478 \begin_layout Itemize
10479
10480 \family sans
10481 Narrative
10482 \begin_inset space \hfill{}
10483 \end_inset
10484
10485 M-z n
10486 \begin_inset Newline newline
10487 \end_inset
10488
10489
10490 \family default
10491 Used to describe stage setting and the action.
10492  First use of speaker names in all CAPs.
10493 \end_layout
10494
10495 \begin_layout Itemize
10496
10497 \family sans
10498 ACT
10499 \begin_inset space \hfill{}
10500 \end_inset
10501
10502 M-z a
10503 \begin_inset Newline newline
10504 \end_inset
10505
10506
10507 \family default
10508 Automatically numbered.
10509  On screen it will be arabic, but will print as Roman.
10510 \end_layout
10511
10512 \begin_layout Itemize
10513
10514 \family sans
10515 ACT*
10516 \begin_inset space \hfill{}
10517 \end_inset
10518
10519 M-z S at
10520 \begin_inset Newline newline
10521 \end_inset
10522
10523
10524 \family default
10525 Subtitle for 
10526 \family sans
10527 ACT.
10528
10529 \family default
10530  It is just centered text.
10531 \end_layout
10532
10533 \begin_layout Itemize
10534
10535 \family sans
10536 SCENE
10537 \begin_inset space \hfill{}
10538 \end_inset
10539
10540 M-z S-S
10541 \begin_inset Newline newline
10542 \end_inset
10543
10544
10545 \family default
10546 Not automatically numbered.
10547  You supply the number.
10548  This is because I couldn't figure out how.
10549 \end_layout
10550
10551 \begin_layout Itemize
10552
10553 \family sans
10554 AT_RISE:
10555 \begin_inset space \hfill{}
10556 \end_inset
10557
10558 M-z S-R
10559 \begin_inset Newline newline
10560 \end_inset
10561
10562
10563 \family default
10564 A special case of Narrative to describe the setting and action as the curtain
10565  rises.
10566 \end_layout
10567
10568 \begin_layout Itemize
10569
10570 \family sans
10571 Speaker
10572 \begin_inset space \hfill{}
10573 \end_inset
10574
10575 M-z s
10576 \begin_inset Newline newline
10577 \end_inset
10578
10579
10580 \family default
10581 The speaker's (actor's) title, centered in all CAPS.
10582 \end_layout
10583
10584 \begin_layout Itemize
10585
10586 \family sans
10587 Parenthetical
10588 \begin_inset space \hfill{}
10589 \end_inset
10590
10591 M-z p
10592 \begin_inset Newline newline
10593 \end_inset
10594
10595
10596 \family default
10597 Instructions to the speaker.
10598  The parentheses are automatically inserted.
10599  The ( will appear on screen, but both will be in the printed play.
10600  This environment is only used within 
10601 \family sans
10602 Dialogue
10603 \family default
10604 .
10605 \end_layout
10606
10607 \begin_layout Itemize
10608
10609 \family sans
10610 Dialogue
10611 \begin_inset space \hfill{}
10612 \end_inset
10613
10614 M-z d
10615 \begin_inset Newline newline
10616 \end_inset
10617
10618
10619 \family default
10620 What the Speaker says.
10621 \end_layout
10622
10623 \begin_layout Itemize
10624
10625 \family sans
10626 CURTAIN
10627 \begin_inset space \hfill{}
10628 \end_inset
10629
10630 M-z S-C
10631 \begin_inset Newline newline
10632 \end_inset
10633
10634
10635 \family default
10636 The curtain comes down.
10637 \end_layout
10638
10639 \begin_layout Itemize
10640
10641 \family sans
10642 Title
10643 \begin_inset space \hfill{}
10644 \end_inset
10645
10646 M-z S-T
10647 \end_layout
10648
10649 \begin_layout Itemize
10650
10651 \family sans
10652 Author
10653 \begin_inset space \hfill{}
10654 \end_inset
10655
10656 M-z S-A
10657 \end_layout
10658
10659 \begin_layout Itemize
10660
10661 \family sans
10662 Right_Address
10663 \begin_inset space \hfill{}
10664 \end_inset
10665
10666 M-z r
10667 \end_layout
10668
10669 \begin_layout Standard
10670 Hello there.
10671 \end_layout
10672
10673 \begin_layout Section
10674 Dinbrief
10675 \end_layout
10676
10677 \begin_layout Standard
10678 The document class 
10679 \family sans
10680 dinbrief
10681 \family default
10682  can be used to type letters according to German conventions.
10683  A template file is included in 
10684 \family typewriter
10685 .../lyx/share/templates
10686 \family default
10687  for you to use as a starting point.
10688 \end_layout
10689
10690 \begin_layout Section
10691 EGS journals (
10692 \family sans
10693 egs
10694 \family default
10695 )
10696 \end_layout
10697
10698 \begin_layout Standard
10699 by 
10700 \shape smallcaps
10701 Martin Vermeer
10702 \end_layout
10703
10704 \begin_layout Subsection
10705 Description
10706 \end_layout
10707
10708 \begin_layout Standard
10709 This is the layout file for the European Geophysical Society journals.
10710  The needed 
10711 \family typewriter
10712 egs.cls
10713 \family default
10714  can be downloaded from the web site of the EGS under 
10715 \begin_inset Flex URL
10716 status collapsed
10717
10718 \begin_layout Plain Layout
10719
10720 www.copernicus.org
10721 \end_layout
10722
10723 \end_inset
10724
10725 .
10726 \end_layout
10727
10728 \begin_layout Subsection
10729 New styles
10730 \end_layout
10731
10732 \begin_layout Standard
10733
10734 \family sans
10735 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10736  Accepted
10737 \family default
10738
10739 \family sans
10740 Offsets
10741 \family default
10742 .
10743  The current layout file is unfortunately very unmodular and would benefit
10744  from using the various 
10745 \family typewriter
10746 std*.inc
10747 \family default
10748  file inclusions.
10749 \end_layout
10750
10751 \begin_layout Section
10752 Elsevier Journals
10753 \end_layout
10754
10755 \begin_layout Standard
10756 See the \SpecialChar LyX
10757  template file 
10758 \family typewriter
10759 elsarticle.lyx
10760 \family default
10761 .
10762  It contains all infos you need.
10763 \end_layout
10764
10765 \begin_layout Section
10766 Foils [aka 
10767 \family sans
10768 Foil\SpecialChar TeX
10769
10770 \family default
10771 ]
10772 \begin_inset CommandInset label
10773 LatexCommand label
10774 name "sec:foiltex"
10775
10776 \end_inset
10777
10778
10779 \end_layout
10780
10781 \begin_layout Standard
10782 by 
10783 \noun on
10784 Allan Rae
10785 \end_layout
10786
10787 \begin_layout Subsection
10788 Introduction
10789 \end_layout
10790
10791 \begin_layout Standard
10792 This section describes how to use \SpecialChar LyX
10793  to make slides for overhead projectors.
10794  There are two document classes that can do this: the default slides class
10795  and the 
10796 \family sans
10797 Foil\SpecialChar TeX
10798
10799 \family default
10800  slides class.
10801  This section documents the latter.
10802 \end_layout
10803
10804 \begin_layout Standard
10805 I'm going to say this again, nice and clear, so that there's no misunderstanding
10806 :
10807 \end_layout
10808
10809 \begin_layout Standard
10810 \begin_inset VSpace bigskip
10811 \end_inset
10812
10813
10814 \end_layout
10815
10816 \begin_layout Standard
10817 \align center
10818
10819 \size large
10820 This section documents the class 
10821 \begin_inset Quotes eld
10822 \end_inset
10823
10824
10825 \family sans
10826 slides (Foil
10827 \change_inserted -712698321 1437633339
10828 TeX
10829 \change_deleted -712698321 1437633344
10830 \SpecialChar TeX
10831
10832 \change_unchanged
10833 )
10834 \family default
10835
10836 \begin_inset Quotes erd
10837 \end_inset
10838
10839  
10840 \emph on
10841 only.
10842 \end_layout
10843
10844 \begin_layout Standard
10845 \begin_inset VSpace bigskip
10846 \end_inset
10847
10848
10849 \end_layout
10850
10851 \begin_layout Standard
10852 If you're looking for the documentation for 
10853 \begin_inset Quotes eld
10854 \end_inset
10855
10856
10857 \family sans
10858 slides (default)
10859 \family default
10860
10861 \begin_inset Quotes erd
10862 \end_inset
10863
10864 , check out section
10865 \begin_inset space ~
10866 \end_inset
10867
10868
10869 \begin_inset CommandInset ref
10870 LatexCommand ref
10871 reference "sec:slitex"
10872
10873 \end_inset
10874
10875 .
10876  If your machine doesn't have the 
10877 \family sans
10878 foils
10879 \family default
10880  class [
10881 \begin_inset Quotes eld
10882 \end_inset
10883
10884
10885 \family sans
10886 slides (Foil
10887 \change_inserted -712698321 1437633364
10888 TeX
10889 \change_deleted -712698321 1437633362
10890 \SpecialChar TeX
10891
10892 \change_unchanged
10893 )
10894 \family default
10895
10896 \begin_inset Quotes erd
10897 \end_inset
10898
10899 ] installed, you'll probably have to use the default 
10900 \family sans
10901 slides
10902 \family default
10903  class, which isn't quite as good as 
10904 \family sans
10905 foils.
10906 \end_layout
10907
10908 \begin_layout Standard
10909 The 
10910 \family sans
10911 foils
10912 \family default
10913  class is designed for use with version 2.1 of the 
10914 \family sans
10915 foils.cls
10916 \family default
10917  \SpecialChar LaTeX
10918  class file which is now an integral part of \SpecialChar LaTeX2e
10919 .
10920 \end_layout
10921
10922 \begin_layout Subsection
10923 Getting Started
10924 \end_layout
10925
10926 \begin_layout Standard
10927 Obviously, to use this document class, you need to select 
10928 \begin_inset Quotes eld
10929 \end_inset
10930
10931
10932 \family sans
10933 slides (Foil
10934 \change_inserted -712698321 1437633373
10935 TeX
10936 \change_deleted -712698321 1437633373
10937 \SpecialChar TeX
10938
10939 \change_unchanged
10940 )
10941 \family default
10942
10943 \begin_inset Quotes erd
10944 \end_inset
10945
10946  from the 
10947 \family sans
10948 Class
10949 \family default
10950  entry in the 
10951 \family sans
10952 Document
10953 \begin_inset space ~
10954 \end_inset
10955
10956 Layout
10957 \family default
10958  dialog.
10959  There are some settings in the 
10960 \family sans
10961 Document
10962 \begin_inset space ~
10963 \end_inset
10964
10965 Layout
10966 \family default
10967  dialog that you should know about that are specific to this class:
10968 \end_layout
10969
10970 \begin_layout Itemize
10971 Don't change the options 
10972 \family sans
10973 Sides
10974 \family default
10975  and 
10976 \family sans
10977 Columns
10978 \family default
10979  on the 
10980 \family sans
10981 Document
10982 \begin_inset space ~
10983 \end_inset
10984
10985 Layout
10986 \family default
10987  dialog.
10988  They're ignored by the 
10989 \family sans
10990 foils
10991 \family default
10992  class.
10993 \end_layout
10994
10995 \begin_layout Itemize
10996 The default font size is 20
10997 \begin_inset space \thinspace{}
10998 \end_inset
10999
11000 pt with the other options being 17
11001 \begin_inset space \thinspace{}
11002 \end_inset
11003
11004 pt, 25
11005 \begin_inset space \thinspace{}
11006 \end_inset
11007
11008 pt and 30
11009 \begin_inset space \thinspace{}
11010 \end_inset
11011
11012 pt.
11013 \end_layout
11014
11015 \begin_layout Itemize
11016 The default font is 
11017 \family sans
11018 sans
11019 \family default
11020  
11021 \family sans
11022 serif
11023 \family default
11024  but all math equations are still typeset in the usual roman font.
11025 \end_layout
11026
11027 \begin_layout Itemize
11028
11029 \family sans
11030 Foil\SpecialChar TeX
11031
11032 \family default
11033  supports A4 and Letter paper sizes as well as a special size for working
11034  with 35
11035 \begin_inset space \thinspace{}
11036 \end_inset
11037
11038 mm slides.
11039  It doesn't support A5, B5, legal or executive paper sizes.
11040 \end_layout
11041
11042 \begin_layout Itemize
11043 Don't bother changing the 
11044 \family sans
11045 Float Placement
11046 \family default
11047  settings because they are ignored anyway.
11048  All floats appear where they are defined in the text.
11049 \end_layout
11050
11051 \begin_layout Itemize
11052 The 
11053 \family sans
11054 Pagestyle
11055 \family default
11056  setting behaves a bit differently for this class.
11057  
11058 \family sans
11059 Foil\SpecialChar TeX
11060
11061 \family default
11062  provides extensive footer and header capabilities including a user-defined
11063  logo.
11064  See section
11065 \begin_inset space ~
11066 \end_inset
11067
11068
11069 \begin_inset CommandInset ref
11070 LatexCommand ref
11071 reference "sec:foilfoot"
11072
11073 \end_inset
11074
11075  for more details.
11076  The title page is treated differently to all other pages in the document
11077  and is 
11078 \emph on
11079 always
11080 \emph default
11081  unnumbered and 
11082 \emph on
11083 always
11084 \emph default
11085  has the logo centered at the bottom of the page (if one is defined).
11086  The possible page style choices and what they do are as follows:
11087 \begin_inset Separator parbreak
11088 \end_inset
11089
11090
11091 \end_layout
11092
11093 \begin_deeper
11094 \begin_layout Labeling
11095 \labelwidthstring MMMMMMM
11096
11097 \family sans
11098 \series bold
11099 empty
11100 \family default
11101 \series default
11102  The final output contains no page numbers, or other headers or footers
11103  (except footnotes of course).
11104  
11105 \end_layout
11106
11107 \begin_layout Labeling
11108 \labelwidthstring MMMMMMM
11109
11110 \family sans
11111 \series bold
11112 plain
11113 \family default
11114 \series default
11115  The final output contains page numbers centered at the bottom of the page.
11116  No other headings or footers (other than footnotes).
11117 \end_layout
11118
11119 \begin_layout Labeling
11120 \labelwidthstring MMMMMMM
11121
11122 \series bold
11123 foilheadings
11124 \series default
11125  Page numbers in lower right corner.
11126  Additional headers and footers are also shown.
11127  This is also the default.
11128 \end_layout
11129
11130 \begin_layout Labeling
11131 \labelwidthstring MMMMMMM
11132
11133 \series bold
11134 fancy
11135 \series default
11136  Gives you access to the 
11137 \family sans
11138 fancyheadings
11139 \family default
11140  package although its use with 
11141 \family sans
11142 Foil\SpecialChar TeX
11143
11144 \family default
11145  is discouraged by the writer of the 
11146 \family sans
11147 Foil\SpecialChar TeX
11148
11149 \family default
11150  package because of some potential page layout clashes.
11151 \end_layout
11152
11153 \end_deeper
11154 \begin_layout Subsubsection
11155 Extra Options
11156 \end_layout
11157
11158 \begin_layout Standard
11159 The following options may be used in the extra class options in the 
11160 \family sans
11161 Document\SpecialChar menuseparator
11162 Settings
11163 \family default
11164  dialog.
11165 \end_layout
11166
11167 \begin_layout Labeling
11168 \labelwidthstring MMMMMMx
11169
11170 \series bold
11171 35mmSlide
11172 \series default
11173  This sets up the page layout for 7.33
11174 \begin_inset space \thinspace{}
11175 \end_inset
11176
11177 in by 11
11178 \begin_inset space \thinspace{}
11179 \end_inset
11180
11181 in paper, which is about the same aspect ratio as a 35
11182 \begin_inset space \thinspace{}
11183 \end_inset
11184
11185 mm slide, making it a bit easier to work with this medium.
11186 \end_layout
11187
11188 \begin_layout Labeling
11189 \labelwidthstring MMMMMMx
11190
11191 \series bold
11192 headrule
11193 \series default
11194  Places a rule across the page below the header on every page except the
11195  title page.
11196 \end_layout
11197
11198 \begin_layout Labeling
11199 \labelwidthstring MMMMMMx
11200
11201 \series bold
11202 footrule
11203 \series default
11204  Places a rule across the page above the footer on every page except the
11205  title page.
11206 \end_layout
11207
11208 \begin_layout Labeling
11209 \labelwidthstring MMMMMMx
11210
11211 \series bold
11212 dvips
11213 \series default
11214  This is automatically set each time you create a new 
11215 \family sans
11216 foils
11217 \family default
11218  document.
11219  This option tells 
11220 \family sans
11221 Foil\SpecialChar TeX
11222
11223 \family default
11224  to use the dvips driver to rotate those pages that are set as landscape
11225  foils.
11226 \end_layout
11227
11228 \begin_layout Labeling
11229 \labelwidthstring MMMMMMx
11230
11231 \series bold
11232 landscape
11233 \series default
11234  Simply changes the page dimensions to those of a landscape page but doesn't
11235  do any rotation.
11236  Thus if you use this option you need to use an external program to rotate
11237  each page or feed your paper through your printer as landscape.
11238  Note that this option effectively reverses the roles of the 
11239 \family sans
11240 Foilhead
11241 \family default
11242  and 
11243 \family sans
11244 Rotatefoilhead
11245 \family default
11246  environments (don't worry these are described in the next section).
11247 \end_layout
11248
11249 \begin_layout Labeling
11250 \labelwidthstring MMMMMMx
11251
11252 \series bold
11253 leqno
11254 \series default
11255  Equation numbers on the left.
11256 \end_layout
11257
11258 \begin_layout Labeling
11259 \labelwidthstring MMMMMMx
11260
11261 \series bold
11262 fleqn
11263 \series default
11264  Flush-left equations.
11265 \end_layout
11266
11267 \begin_layout Subsection
11268 Supported Environments
11269 \end_layout
11270
11271 \begin_layout Standard
11272 Most of the environments commonly supported in other classes are also supported
11273  by the 
11274 \family sans
11275 foils
11276 \family default
11277  class.
11278  There are several additional environments provided by 
11279 \family sans
11280 Foil\SpecialChar TeX
11281
11282 \family default
11283  as well as a couple added by \SpecialChar LyX
11284 .
11285  The following environments are shared with other classes:
11286 \end_layout
11287
11288 \begin_layout Standard
11289 \begin_inset Flex Multiple Columns
11290 status open
11291
11292 \begin_layout Itemize
11293
11294 \family sans
11295 Standard
11296 \end_layout
11297
11298 \begin_layout Itemize
11299
11300 \family sans
11301 Itemize
11302 \end_layout
11303
11304 \begin_layout Itemize
11305
11306 \family sans
11307 Enumerate
11308 \end_layout
11309
11310 \begin_layout Itemize
11311
11312 \family sans
11313 Description
11314 \end_layout
11315
11316 \begin_layout Itemize
11317
11318 \family sans
11319 List
11320 \end_layout
11321
11322 \begin_layout Itemize
11323
11324 \family sans
11325 \SpecialChar LyX
11326 -Code
11327 \end_layout
11328
11329 \begin_layout Itemize
11330
11331 \family sans
11332 Verse
11333 \end_layout
11334
11335 \begin_layout Itemize
11336
11337 \family sans
11338 Quote
11339 \end_layout
11340
11341 \begin_layout Itemize
11342
11343 \family sans
11344 Quotation
11345 \end_layout
11346
11347 \begin_layout Itemize
11348
11349 \family sans
11350 Title
11351 \end_layout
11352
11353 \begin_layout Itemize
11354
11355 \family sans
11356 Author
11357 \end_layout
11358
11359 \begin_layout Itemize
11360
11361 \family sans
11362 Date
11363 \end_layout
11364
11365 \begin_layout Itemize
11366
11367 \family sans
11368 Abstract
11369 \end_layout
11370
11371 \begin_layout Itemize
11372
11373 \family sans
11374 Bibliography
11375 \end_layout
11376
11377 \begin_layout Itemize
11378
11379 \family sans
11380 Address
11381 \end_layout
11382
11383 \begin_layout Itemize
11384
11385 \family sans
11386 RightAddress
11387 \end_layout
11388
11389 \begin_layout Itemize
11390
11391 \family sans
11392 Caption
11393 \end_layout
11394
11395 \begin_layout Itemize
11396
11397 \family sans
11398 Comment
11399 \end_layout
11400
11401 \end_inset
11402
11403
11404 \end_layout
11405
11406 \begin_layout Standard
11407 That is, all the major environments apart from the sectioning environments.
11408  Since foils are essentially self-contained sections, with a title and body,
11409  
11410 \family sans
11411 Foil\SpecialChar TeX
11412
11413 \family default
11414  provides specific commands for starting new foils and these are:
11415 \end_layout
11416
11417 \begin_layout Itemize
11418
11419 \family sans
11420 Foilhead
11421 \end_layout
11422
11423 \begin_layout Itemize
11424
11425 \family sans
11426 Rotatefoilhead
11427 \end_layout
11428
11429 \begin_layout Standard
11430 \SpecialChar LyX
11431  also provides slightly modified versions of these two environments called:
11432 \end_layout
11433
11434 \begin_layout Itemize
11435
11436 \family sans
11437 ShortFoilhead
11438 \end_layout
11439
11440 \begin_layout Itemize
11441
11442 \family sans
11443 ShortRotatefoilhead
11444 \end_layout
11445
11446 \begin_layout Standard
11447 and the differences will be explained in the next section.
11448 \end_layout
11449
11450 \begin_layout Standard
11451 Since foils are often used in presenting ideas or new theorems and such
11452  
11453 \family sans
11454 Foil\SpecialChar TeX
11455
11456 \family default
11457  also provides a comprehensive box of goodies for presenting them:
11458 \end_layout
11459
11460 \begin_layout Standard
11461 \begin_inset Flex Multiple Columns
11462 status open
11463
11464 \begin_layout Itemize
11465
11466 \family sans
11467 Theorem
11468 \end_layout
11469
11470 \begin_layout Itemize
11471
11472 \family sans
11473 Lemma
11474 \end_layout
11475
11476 \begin_layout Itemize
11477
11478 \family sans
11479 Corollary
11480 \end_layout
11481
11482 \begin_layout Itemize
11483
11484 \family sans
11485 Proposition
11486 \end_layout
11487
11488 \begin_layout Itemize
11489
11490 \family sans
11491 Definition
11492 \end_layout
11493
11494 \begin_layout Itemize
11495
11496 \family sans
11497 Proof
11498 \end_layout
11499
11500 \begin_layout Itemize
11501
11502 \family sans
11503 Theorem*
11504 \end_layout
11505
11506 \begin_layout Itemize
11507
11508 \family sans
11509 Lemma*
11510 \end_layout
11511
11512 \begin_layout Itemize
11513
11514 \family sans
11515 Corollary*
11516 \end_layout
11517
11518 \begin_layout Itemize
11519
11520 \family sans
11521 Proposition*
11522 \end_layout
11523
11524 \begin_layout Itemize
11525
11526 \family sans
11527 Definition*
11528 \end_layout
11529
11530 \end_inset
11531
11532
11533 \end_layout
11534
11535 \begin_layout Standard
11536 The starred versions are unnumbered while the unstarred versions are numbered.
11537  There are also two list environments added by \SpecialChar LyX
11538  and these are:
11539 \end_layout
11540
11541 \begin_layout Itemize
11542
11543 \family sans
11544 TickList
11545 \end_layout
11546
11547 \begin_layout Itemize
11548
11549 \family sans
11550 CrossList
11551 \end_layout
11552
11553 \begin_layout Standard
11554
11555 \family sans
11556 Foil\SpecialChar TeX
11557
11558 \family default
11559  provides some powerful header and footer capabilities that are best set
11560  in the preamble although they may be set at any point in a document.
11561  If you want to change these settings in your document the best place to
11562  do so is at the very top of a foil, i.
11563 \begin_inset space \thinspace{}
11564 \end_inset
11565
11566 e.
11567 \emph on
11568
11569 \begin_inset space \space{}
11570 \end_inset
11571
11572
11573 \emph default
11574 straight after the foilhead.
11575 \end_layout
11576
11577 \begin_layout Standard
11578 For this purpose, the following command styles are provided [
11579 \shape smallcaps
11580 Martin Vermeer
11581 \shape default
11582 ]:
11583 \end_layout
11584
11585 \begin_layout Standard
11586 \begin_inset Flex Multiple Columns
11587 status open
11588
11589 \begin_layout Itemize
11590
11591 \family sans
11592 My
11593 \begin_inset space ~
11594 \end_inset
11595
11596 Logo
11597 \end_layout
11598
11599 \begin_layout Itemize
11600
11601 \family sans
11602 Restriction
11603 \end_layout
11604
11605 \begin_layout Itemize
11606
11607 \family sans
11608 Right
11609 \begin_inset space ~
11610 \end_inset
11611
11612 Footer
11613 \end_layout
11614
11615 \begin_layout Itemize
11616
11617 \family sans
11618 Right
11619 \begin_inset space ~
11620 \end_inset
11621
11622 Header
11623 \end_layout
11624
11625 \begin_layout Itemize
11626
11627 \family sans
11628 Left
11629 \begin_inset space ~
11630 \end_inset
11631
11632 Header
11633 \family default
11634
11635 \begin_inset Separator parbreak
11636 \end_inset
11637
11638
11639 \end_layout
11640
11641 \begin_deeper
11642 \begin_layout Plain Layout
11643 \begin_inset space ~
11644 \end_inset
11645
11646
11647 \end_layout
11648
11649 \end_deeper
11650 \end_inset
11651
11652
11653 \end_layout
11654
11655 \begin_layout Standard
11656 There are also a few commands provided by 
11657 \family sans
11658 Foil\SpecialChar TeX
11659
11660 \family default
11661  that aren't directly supported by \SpecialChar LyX
11662  but I'll tell you what they do and how
11663  to use them in section
11664 \begin_inset space ~
11665 \end_inset
11666
11667
11668 \begin_inset CommandInset ref
11669 LatexCommand ref
11670 reference "sec:unsuppfoils"
11671
11672 \end_inset
11673
11674 .
11675 \end_layout
11676
11677 \begin_layout Subsection
11678 Building a Set of Foils
11679 \end_layout
11680
11681 \begin_layout Standard
11682 This section will give a simple introduction to using the different environments
11683  to build a set of foils.
11684  If you want to see an example set of foils, take a look at the 
11685 \family typewriter
11686 Foils.lyx
11687 \family default
11688  file you find in \SpecialChar LyX
11689 's 
11690 \family typewriter
11691 examples
11692 \family default
11693  folder.
11694 \end_layout
11695
11696 \begin_layout Subsubsection
11697 Give It a Title Page
11698 \end_layout
11699
11700 \begin_layout Standard
11701 Unlike other classes that provide 
11702 \family sans
11703 Title
11704 \family default
11705
11706 \family sans
11707 Author
11708 \family default
11709
11710 \family sans
11711 Date
11712 \family default
11713  and 
11714 \family sans
11715 Abstract
11716 \family default
11717  environments, 
11718 \family sans
11719 foils
11720 \family default
11721  creates the title on a page of its own.
11722  If you leave out the 
11723 \family sans
11724 Date
11725 \family default
11726  environment \SpecialChar LaTeX
11727  will substitute the current date (every time you regenerate
11728  the output).
11729 \end_layout
11730
11731 \begin_layout Subsubsection
11732 Start a New Foil
11733 \end_layout
11734
11735 \begin_layout Standard
11736 As I mentioned earlier, there are four ways of starting a new foil.
11737  For portrait foils you should use 
11738 \family sans
11739 Foilhead
11740 \family default
11741  or 
11742 \family sans
11743 ShortFoilhead.
11744
11745 \family default
11746  The difference between these two environments is the amount of space between
11747  the title of the foil (the foilhead) and the body of the foil.
11748 \end_layout
11749
11750 \begin_layout Standard
11751 Landscape foils are generated using the 
11752 \family sans
11753 Rotatefoilhead
11754 \family default
11755  and 
11756 \family sans
11757 ShortRotatefoilhead
11758 \family default
11759  environments.
11760  Again the only difference is the spacing between foilhead and body.
11761  Both of the short versions have 0.5
11762 \begin_inset space ~
11763 \end_inset
11764
11765 inches less separation between the foilhead and the body.
11766  
11767 \end_layout
11768
11769 \begin_layout Standard
11770 One problem with the support for landscape foils is the requirement that
11771  you have to use the 
11772 \family typewriter
11773 dvips
11774 \family default
11775  driver to generate the PostScript output otherwise the foils won't be rotated.
11776  It is possible to get landscape foils even if you haven't got the 
11777 \family typewriter
11778 dvips
11779 \family default
11780  driver provided you can feed your foils sideways through your printer ;-)
11781 \end_layout
11782
11783 \begin_layout Subsubsection
11784 Theorems, Lemmas, Proofs and more
11785 \end_layout
11786
11787 \begin_layout Standard
11788 Due to a small bug in \SpecialChar LyX
11789  you can't have two of the same type of these environments
11790  directly following each other.
11791  They must be separated by something.
11792  If you try, you will just be extending the previous environment as if you
11793  had merged the two environments together.
11794  So, how do you get around this problem? The simplest option is to insert
11795  some text between the two environments or add a 
11796 \family sans
11797 \SpecialChar LaTeX
11798
11799 \family default
11800  environment between the two with just a 
11801 \begin_inset Quotes eld
11802 \end_inset
11803
11804
11805 \family typewriter
11806 %
11807 \family default
11808
11809 \begin_inset Quotes erd
11810 \end_inset
11811
11812  in it.
11813  This will force \SpecialChar LyX
11814  to produce two separate environments and hence the correct
11815  \SpecialChar LaTeX
11816  output.
11817  An example is provided in the example file included with the \SpecialChar LyX
11818  distribution.
11819  Remember, this problem only occurs if you are trying to place two of the
11820  same type of theorem-like environments one directly after the other.
11821 \end_layout
11822
11823 \begin_layout Subsubsection
11824 Lists
11825 \end_layout
11826
11827 \begin_layout Standard
11828 You get all the commonly supported list styles found in other classes as
11829  well as two new ones.
11830  I'll only describe the new ones here.
11831  If you want to find out more about the other list environments check out
11832  the 
11833 \emph on
11834 User's Guide.
11835
11836 \emph default
11837  If you intend to use itemized lists you might also want to read about the
11838  
11839 \family sans
11840 Itemize
11841 \begin_inset space ~
11842 \end_inset
11843
11844 Bullet
11845 \begin_inset space ~
11846 \end_inset
11847
11848 Selection
11849 \family default
11850  dialog described above in section
11851 \begin_inset space ~
11852 \end_inset
11853
11854
11855 \begin_inset CommandInset ref
11856 LatexCommand ref
11857 reference "sec:bullet"
11858
11859 \end_inset
11860
11861 .
11862 \end_layout
11863
11864 \begin_layout Standard
11865 The two new list styles, 
11866 \family sans
11867 TickList
11868 \family default
11869  and 
11870 \family sans
11871 CrossList
11872 \family default
11873 , are designed to make it easier for you to create lists of do's and don'ts
11874  or right and wrong by providing dedicated environments that use a tick
11875  or a cross as the label of the list.
11876  These lists are in fact dedicated variants of the 
11877 \family sans
11878 Itemize
11879 \family default
11880  environment.
11881  They do however require that you have the 
11882 \family typewriter
11883 psnfss
11884 \family default
11885  packages installed.
11886 \end_layout
11887
11888 \begin_layout Subsubsection
11889 Figures and Tables
11890 \end_layout
11891
11892 \begin_layout Standard
11893
11894 \family sans
11895 Foil\SpecialChar TeX
11896
11897 \family default
11898  redefines the floating tables and figures so that they appear exactly where
11899  they are in the text rather than pushing them to the top of the page or
11900  to some user specified location.
11901  In fact if you change the float placement settings they are simply ignored.
11902 \end_layout
11903
11904 \begin_layout Subsubsection
11905 Page Headers and Footers
11906 \begin_inset CommandInset label
11907 LatexCommand label
11908 name "sec:foilfoot"
11909
11910 \end_inset
11911
11912
11913 \end_layout
11914
11915 \begin_layout Standard
11916
11917 \family sans
11918 My
11919 \begin_inset space ~
11920 \end_inset
11921
11922 Logo
11923 \family default
11924  and 
11925 \family sans
11926 Restriction
11927 \family default
11928  are two commands used to control the left-footer text string.
11929  The first is meant to allow you to include a graphic logo on your foils
11930  and defaults to 
11931 \begin_inset Quotes eld
11932 \end_inset
11933
11934 -Typeset by 
11935 \family sans
11936 Foil\SpecialChar TeX
11937
11938 \family default
11939 -
11940 \begin_inset Quotes erd
11941 \end_inset
11942
11943 .
11944  While the second is meant to provide a classification for the audience,
11945  
11946 \emph on
11947 e.
11948 \begin_inset space \thinspace{}
11949 \end_inset
11950
11951 g.
11952 \emph default
11953
11954 \begin_inset space \space{}
11955 \end_inset
11956
11957 Confidential.
11958  It is empty by default.
11959 \end_layout
11960
11961 \begin_layout Standard
11962 The remaining page corners can be filled by 
11963 \family sans
11964 Right
11965 \begin_inset space ~
11966 \end_inset
11967
11968 Footer
11969 \family default
11970  (which defaults to page numbers), 
11971 \family sans
11972 Right
11973 \begin_inset space ~
11974 \end_inset
11975
11976 Header
11977 \family default
11978  (top right) and 
11979 \family sans
11980 Left
11981 \begin_inset space ~
11982 \end_inset
11983
11984 Header
11985 \family default
11986  (top left).
11987 \end_layout
11988
11989 \begin_layout Subsection
11990 Unsupported 
11991 \family sans
11992 Foil\SpecialChar TeX
11993
11994 \family default
11995  Goodies
11996 \begin_inset CommandInset label
11997 LatexCommand label
11998 name "sec:unsuppfoils"
11999
12000 \end_inset
12001
12002
12003 \end_layout
12004
12005 \begin_layout Standard
12006 All the commands mentioned below need to be set in a 
12007 \family sans
12008 \SpecialChar LaTeX
12009
12010 \family default
12011  environment or as 
12012 \family sans
12013 \SpecialChar TeX
12014
12015 \family default
12016  within another environment.
12017 \end_layout
12018
12019 \begin_layout Subsubsection
12020 Lengths
12021 \end_layout
12022
12023 \begin_layout Standard
12024 All lengths are adjusted using the 
12025 \family typewriter
12026
12027 \backslash
12028 setlength{
12029 \family default
12030 \emph on
12031 lengthname
12032 \family typewriter
12033 \emph default
12034 }{
12035 \family default
12036 \emph on
12037 newlength
12038 \family typewriter
12039 \emph default
12040 }
12041 \family default
12042  command.
12043  Where 
12044 \emph on
12045 lengthname
12046 \emph default
12047  should be replaced by the name given to the length you want to change and
12048  
12049 \emph on
12050 newlength
12051 \emph default
12052  is the length value.
12053  All lengths should be specified in units of length such as inches (
12054 \family typewriter
12055 in
12056 \family default
12057 ), millimeters (
12058 \family typewriter
12059 mm
12060 \family default
12061 ) or points (
12062 \family typewriter
12063 pt
12064 \family default
12065 ) or relative to some document or font-based length such as 
12066 \family typewriter
12067
12068 \backslash
12069 textwidth
12070 \family default
12071 .
12072  
12073 \end_layout
12074
12075 \begin_layout Standard
12076 It's possible to change the spacing between a foilhead and the body of the
12077  foil by adjusting the length specified by 
12078 \family typewriter
12079
12080 \backslash
12081 foilheadskip
12082 \family default
12083 .
12084  For example, to make 
12085 \emph on
12086 all
12087 \emph default
12088  foilheads 0.5
12089 \begin_inset space \space{}
12090 \end_inset
12091
12092 in closer to their bodies put the following in the preamble: 
12093 \family typewriter
12094
12095 \backslash
12096 setlength{
12097 \backslash
12098 foilheadskip}{-0.5in}
12099 \end_layout
12100
12101 \begin_layout Standard
12102 The spacings around floats can be adjusted by setting these lengths:
12103 \end_layout
12104
12105 \begin_layout Labeling
12106 \labelwidthstring MMMMMMMMMMM
12107
12108 \family typewriter
12109
12110 \backslash
12111 abovefloatskip
12112 \family default
12113  Separation between the text and the top of the float
12114 \end_layout
12115
12116 \begin_layout Labeling
12117 \labelwidthstring MMMMMMMMMMM
12118
12119 \family typewriter
12120
12121 \backslash
12122 abovecaptionskip
12123 \family default
12124  Separation between the float and the caption
12125 \end_layout
12126
12127 \begin_layout Labeling
12128 \labelwidthstring MMMMMMMMMMM
12129
12130 \family typewriter
12131
12132 \backslash
12133 belowcaptionskip
12134 \family default
12135  Separation between the caption and the following text
12136 \end_layout
12137
12138 \begin_layout Labeling
12139 \labelwidthstring MMMMMMMMMMM
12140
12141 \family typewriter
12142
12143 \backslash
12144 captionwidth
12145 \family default
12146  You can make the captions narrower than the surrounding text by adjusting
12147  this length.
12148  Best done relative to 
12149 \family typewriter
12150
12151 \backslash
12152 textwidth
12153 \family default
12154 .
12155 \end_layout
12156
12157 \begin_layout Standard
12158 There are also several title page related lengths that you may find useful
12159  if you have a long title or several authors:
12160 \end_layout
12161
12162 \begin_layout Labeling
12163 \labelwidthstring MMMMMMMMMMM
12164
12165 \family typewriter
12166
12167 \backslash
12168 abovetitleskip
12169 \family default
12170  Separation from headers to 
12171 \family sans
12172 Title
12173 \end_layout
12174
12175 \begin_layout Labeling
12176 \labelwidthstring MMMMMMMMMMM
12177
12178 \family typewriter
12179
12180 \backslash
12181 titleauthorskip
12182 \family default
12183  between 
12184 \family sans
12185 Title
12186 \family default
12187  and 
12188 \family sans
12189 Author
12190 \family default
12191  environments
12192 \end_layout
12193
12194 \begin_layout Labeling
12195 \labelwidthstring MMMMMMMMMMM
12196
12197 \family typewriter
12198
12199 \backslash
12200 authorauthorskip
12201 \family default
12202  between multiple 
12203 \family sans
12204 Author
12205 \family default
12206  lines
12207 \end_layout
12208
12209 \begin_layout Labeling
12210 \labelwidthstring MMMMMMMMMMM
12211
12212 \family typewriter
12213
12214 \backslash
12215 authordateskip
12216 \family default
12217  between the 
12218 \family sans
12219 Author
12220 \family default
12221  and the 
12222 \family sans
12223 Date
12224 \end_layout
12225
12226 \begin_layout Labeling
12227 \labelwidthstring MMMMMMMMMMM
12228
12229 \family typewriter
12230
12231 \backslash
12232 dateabstractskip
12233 \family default
12234  between the 
12235 \family sans
12236 Date
12237 \family default
12238  and the 
12239 \family sans
12240 Abstract
12241 \end_layout
12242
12243 \begin_layout Standard
12244 The last length related command affects all the list environments.
12245  If you place 
12246 \family typewriter
12247
12248 \backslash
12249 zerolistvertdimens
12250 \family default
12251  
12252 \emph on
12253 inside
12254 \emph default
12255  a list environment then all the vertical spacing between the list items
12256  is removed.
12257  Note that this is a command not a length so it doesn't require 
12258 \family typewriter
12259
12260 \backslash
12261 setlength
12262 \family default
12263  like the stuff mentioned above.
12264 \end_layout
12265
12266 \begin_layout Subsubsection
12267 Headers and Footers
12268 \end_layout
12269
12270 \begin_layout Standard
12271 The 
12272 \family typewriter
12273
12274 \backslash
12275 LogoOn
12276 \family default
12277  and 
12278 \family typewriter
12279
12280 \backslash
12281 LogoOff
12282 \family default
12283  commands control whether the logo in the 
12284 \family sans
12285 MyLogo
12286 \family default
12287  definition appear on a given page.
12288  If you put 
12289 \family typewriter
12290
12291 \backslash
12292 LogoOff
12293 \family default
12294  in the preamble then none of the foils will have the logo on them.
12295  If you don't want the logo on a particular page place the 
12296 \family typewriter
12297
12298 \backslash
12299 LogoOff
12300 \family default
12301  directly after the foilhead of that page and the 
12302 \family typewriter
12303
12304 \backslash
12305 LogoOn
12306 \family default
12307  directly after the next foilhead.
12308 \end_layout
12309
12310 \begin_layout Standard
12311 If you decide to use the 
12312 \family sans
12313 fancy
12314 \family default
12315  page style setting in the 
12316 \family sans
12317 Document
12318 \begin_inset space ~
12319 \end_inset
12320
12321 Layout
12322 \family default
12323  dialog you should probably add 
12324 \family typewriter
12325
12326 \backslash
12327 let
12328 \backslash
12329 headwidth
12330 \backslash
12331 textwidth
12332 \family default
12333  to your preamble so headers and footers on landscape pages are correctly
12334  placed when rotated.
12335  This is due to some clashes between the page layouts provided by the 
12336 \family sans
12337 fancyheadings
12338 \family default
12339  package and the 
12340 \family sans
12341 foils
12342 \family default
12343  class.
12344 \end_layout
12345
12346 \begin_layout Section
12347 Hollywood (Hollywood spec scripts)
12348 \end_layout
12349
12350 \begin_layout Standard
12351 by 
12352 \shape smallcaps
12353 Garst Reese
12354 \end_layout
12355
12356 \begin_layout Subsection
12357 Introduction
12358 \end_layout
12359
12360 \begin_layout Standard
12361 Getting the format of a Hollywood script right is a 
12362 \begin_inset Quotes eld
12363 \end_inset
12364
12365 rite of passage.
12366 \begin_inset Quotes erd
12367 \end_inset
12368
12369  It is designed to make the readers focus on content and to be easy and
12370  familiar for the actors to read.
12371  Each page of a script should be one minute of film.
12372  Nothing goes in a script that you cannot see or hear on screen.
12373  The courier 12 pt font should be used throughout.
12374  No italics.
12375 \end_layout
12376
12377 \begin_layout Subsection
12378 Special problems
12379 \end_layout
12380
12381 \begin_layout Standard
12382 Speakers' lines should NEVER break in mid-sentence.
12383  If a speaker's lines continue over a page break, repeat the 
12384 \family sans
12385 Speaker
12386 \family default
12387  title followed by (Cont'd).
12388 \end_layout
12389
12390 \begin_layout Subsection
12391 Special features
12392 \end_layout
12393
12394 \begin_layout Standard
12395 Insert the 
12396 \family sans
12397 Speaker
12398 \family default
12399  names as labels then cross-reference the label to insert the name.
12400  The cross-reference dialog will show the current cast of characters.
12401  You can use this to insert the speaker name in narratives also.
12402 \end_layout
12403
12404 \begin_layout Subsection
12405 Paper size and Margins
12406 \end_layout
12407
12408 \begin_layout Standard
12409 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12410 \end_layout
12411
12412 \begin_layout Subsection
12413 Environments
12414 \end_layout
12415
12416 \begin_layout Standard
12417 The following environments are available.
12418  You can use hollywood.bind to get the bind keys shown at the right.
12419 \end_layout
12420
12421 \begin_layout Itemize
12422
12423 \family sans
12424 Standard
12425 \begin_inset Newline newline
12426 \end_inset
12427
12428
12429 \family default
12430 Used where nothing else works.
12431  Try to avoid it.
12432 \end_layout
12433
12434 \begin_layout Itemize
12435
12436 \family sans
12437 FADE_IN
12438 \family default
12439 :
12440 \begin_inset space \hfill{}
12441 \end_inset
12442
12443
12444 \family sans
12445 M-z S-I
12446 \family default
12447
12448 \begin_inset Newline newline
12449 \end_inset
12450
12451 Usually followed by something like 
12452 \begin_inset Quotes eld
12453 \end_inset
12454
12455 on Sally waking up.
12456 \begin_inset Quotes erd
12457 \end_inset
12458
12459
12460 \end_layout
12461
12462 \begin_layout Itemize
12463
12464 \family sans
12465 INT:
12466 \begin_inset space \hfill{}
12467 \end_inset
12468
12469 M-z i
12470 \begin_inset Newline newline
12471 \end_inset
12472
12473
12474 \family default
12475 Introduces a new INTERIOR camera set-up.
12476  Always followed by DAY or NIGHT, or something similar to define the lighting
12477  required.
12478  Everthing on this line in CAPS.
12479 \end_layout
12480
12481 \begin_layout Itemize
12482
12483 \family sans
12484 EXT:
12485 \begin_inset space \hfill{}
12486 \end_inset
12487
12488 M-z e
12489 \begin_inset Newline newline
12490 \end_inset
12491
12492
12493 \family default
12494 Introduces a new EXTERIOR camera set-up.
12495  Everthing on this line in CAPS.
12496 \end_layout
12497
12498 \begin_layout Itemize
12499
12500 \family sans
12501 Speaker
12502 \begin_inset space \hfill{}
12503 \end_inset
12504
12505 M-z s
12506 \begin_inset Newline newline
12507 \end_inset
12508
12509
12510 \family default
12511 The character speaking.
12512 \end_layout
12513
12514 \begin_layout Itemize
12515
12516 \family sans
12517 Parenthetical
12518 \begin_inset space \hfill{}
12519 \end_inset
12520
12521 M-z p
12522 \begin_inset Newline newline
12523 \end_inset
12524
12525
12526 \family default
12527 Instructions to the speaker.
12528  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12529 .
12530  Both will be printed.
12531 \end_layout
12532
12533 \begin_layout Itemize
12534
12535 \family sans
12536 Dialogue
12537 \begin_inset space \hfill{}
12538 \end_inset
12539
12540 M-z d
12541 \begin_inset Newline newline
12542 \end_inset
12543
12544
12545 \family default
12546 What the 
12547 \family sans
12548 Speaker
12549 \family default
12550  says.
12551 \end_layout
12552
12553 \begin_layout Itemize
12554
12555 \family sans
12556 Transition
12557 \begin_inset space \hfill{}
12558 \end_inset
12559
12560 M-z t
12561 \begin_inset Newline newline
12562 \end_inset
12563
12564
12565 \family default
12566 Camera movement instruction.
12567  e.
12568 \begin_inset space \thinspace{}
12569 \end_inset
12570
12571 g.
12572 \begin_inset space \space{}
12573 \end_inset
12574
12575 CUT TO:
12576 \end_layout
12577
12578 \begin_layout Itemize
12579
12580 \family sans
12581 FADE OUT:
12582 \begin_inset space \hfill{}
12583 \end_inset
12584
12585 M-z S-I
12586 \end_layout
12587
12588 \begin_layout Itemize
12589
12590 \family sans
12591 Author
12592 \begin_inset space \hfill{}
12593 \end_inset
12594
12595 M-z S-A
12596 \end_layout
12597
12598 \begin_layout Itemize
12599
12600 \family sans
12601 Title
12602 \begin_inset space \hfill{}
12603 \end_inset
12604
12605 M-z S-T
12606 \end_layout
12607
12608 \begin_layout Itemize
12609
12610 \family sans
12611 Right_Address
12612 \begin_inset space \hfill{}
12613 \end_inset
12614
12615 M-z r
12616 \end_layout
12617
12618 \begin_layout Subsection
12619 Script jargon
12620 \end_layout
12621
12622 \begin_layout Itemize
12623 (O.S) — off screen
12624 \end_layout
12625
12626 \begin_layout Itemize
12627 (V.0) — voice over
12628 \end_layout
12629
12630 \begin_layout Itemize
12631 b.
12632 \begin_inset space \thinspace{}
12633 \end_inset
12634
12635 g.
12636  — background
12637 \end_layout
12638
12639 \begin_layout Itemize
12640 C.U.
12641  — close-up
12642 \end_layout
12643
12644 \begin_layout Itemize
12645 PAN — camera movement
12646 \end_layout
12647
12648 \begin_layout Itemize
12649 INSERT — cut to close-up of
12650 \end_layout
12651
12652 \begin_layout Section
12653 ijmpc and ijmpd
12654 \end_layout
12655
12656 \begin_layout Standard
12657 by 
12658 \noun on
12659 Panayotis Papasotiriou
12660 \end_layout
12661
12662 \begin_layout Subsection
12663 Overview
12664 \end_layout
12665
12666 \begin_layout Standard
12667 The ijmpc package is a set of macros that facilitates electronic manuscript
12668  submission to the 
12669 \emph on
12670 International Journal of Modern Physics C
12671 \emph default
12672 .
12673  Similarly, the ijmpd package is for creating manuscripts to be submitted
12674  to the 
12675 \emph on
12676 International Journal of Modern Physics D
12677 \emph default
12678 .
12679  Both journals are published by World Scientific.
12680  The corresponding document classes are named 
12681 \family typewriter
12682 ws-ijmpc.cls
12683 \family default
12684  and 
12685 \family typewriter
12686 ws-ijmpd.cls
12687 \family default
12688 , respectively.
12689  These files, together with instructions for the authors, can be downloaded
12690  from the sites 
12691 \begin_inset Flex URL
12692 status collapsed
12693
12694 \begin_layout Plain Layout
12695
12696 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12697 \end_layout
12698
12699 \end_inset
12700
12701  and 
12702 \begin_inset Flex URL
12703 status collapsed
12704
12705 \begin_layout Plain Layout
12706
12707 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12708 \end_layout
12709
12710 \end_inset
12711
12712 .
12713  Both packages are modified versions of the standard 
12714 \begin_inset Quotes eld
12715 \end_inset
12716
12717 article
12718 \begin_inset Quotes erd
12719 \end_inset
12720
12721  package, and they are almost (but not exactly) identical.
12722  Most of their features are supported by \SpecialChar LyX
12723 .
12724  I have used \SpecialChar LyX
12725  successfully to write articles submitted to both journals
12726  without any problem.
12727 \end_layout
12728
12729 \begin_layout Subsection
12730 Writing a paper
12731 \end_layout
12732
12733 \begin_layout Standard
12734 As usual, the easiest way to write a paper is to start with a template.
12735  Click on 
12736 \family sans
12737 File\SpecialChar menuseparator
12738 New from
12739 \family default
12740  
12741 \family sans
12742 \bar under
12743 T
12744 \bar default
12745 emplate
12746 \family default
12747 , then choose the 
12748 \family typewriter
12749 ijmpc.lyx
12750 \family default
12751  or 
12752 \family typewriter
12753 ijmpd.lyx
12754 \family default
12755  template.
12756  This will give an (almost) empty document that includes the most common
12757  fields found in a manuscript.
12758  Simply overwrite the existing text (including the brackets, 
12759 \family typewriter
12760 <>
12761 \family default
12762 ) with your text.
12763  You should keep in mind the following remarks.
12764 \end_layout
12765
12766 \begin_layout Enumerate
12767 \SpecialChar LyX
12768  won't let you change the font size and the page style of the document,
12769  because such modifications are not allowed by both packages.
12770 \end_layout
12771
12772 \begin_layout Enumerate
12773 The language of the document should not be changed.
12774  Before previewing your paper, be sure that the babel package is not used.
12775  To do this, click on 
12776 \family sans
12777 Tools\SpecialChar menuseparator
12778 Preferences
12779 \family default
12780 , select the 
12781 \family sans
12782 Lang Opts
12783 \family default
12784  tab, deselect the 
12785 \family sans
12786 Use babel
12787 \family default
12788  checkbox in the language settings, and click on 
12789 \family sans
12790 Apply
12791 \family default
12792  (or 
12793 \family sans
12794 Save
12795 \family default
12796 , if you wish to make this change permanent).
12797 \end_layout
12798
12799 \begin_layout Enumerate
12800 The 
12801 \begin_inset Quotes eld
12802 \end_inset
12803
12804 Keywords
12805 \begin_inset Quotes erd
12806 \end_inset
12807
12808  style must be used to define keywords.
12809 \end_layout
12810
12811 \begin_layout Enumerate
12812 The ijmpc package provides a style named 
12813 \begin_inset Quotes eld
12814 \end_inset
12815
12816 Classification Codes
12817 \begin_inset Quotes erd
12818 \end_inset
12819
12820 , which can be used to define classification codes, such as PACS numbers.
12821  Note that this facility is not supported by the ijmpd package.
12822 \end_layout
12823
12824 \begin_layout Enumerate
12825 Several new environments are available: 
12826 \begin_inset Quotes eld
12827 \end_inset
12828
12829 Definition
12830 \begin_inset Quotes erd
12831 \end_inset
12832
12833
12834 \begin_inset Quotes eld
12835 \end_inset
12836
12837 Step
12838 \begin_inset Quotes erd
12839 \end_inset
12840
12841
12842 \begin_inset Quotes eld
12843 \end_inset
12844
12845 Example
12846 \begin_inset Quotes erd
12847 \end_inset
12848
12849
12850 \begin_inset Quotes eld
12851 \end_inset
12852
12853 Remark
12854 \begin_inset Quotes erd
12855 \end_inset
12856
12857
12858 \begin_inset Quotes eld
12859 \end_inset
12860
12861 Notation
12862 \begin_inset Quotes erd
12863 \end_inset
12864
12865
12866 \begin_inset Quotes eld
12867 \end_inset
12868
12869 Theorem
12870 \begin_inset Quotes erd
12871 \end_inset
12872
12873
12874 \begin_inset Quotes eld
12875 \end_inset
12876
12877 Proof
12878 \begin_inset Quotes erd
12879 \end_inset
12880
12881
12882 \begin_inset Quotes eld
12883 \end_inset
12884
12885 Corollary
12886 \begin_inset Quotes erd
12887 \end_inset
12888
12889
12890 \begin_inset Quotes eld
12891 \end_inset
12892
12893 Lemma
12894 \begin_inset Quotes erd
12895 \end_inset
12896
12897
12898 \begin_inset Quotes eld
12899 \end_inset
12900
12901 Proposition
12902 \begin_inset Quotes erd
12903 \end_inset
12904
12905
12906 \begin_inset Quotes eld
12907 \end_inset
12908
12909 Prop
12910 \begin_inset Quotes erd
12911 \end_inset
12912
12913
12914 \begin_inset Quotes eld
12915 \end_inset
12916
12917 Question
12918 \begin_inset Quotes erd
12919 \end_inset
12920
12921
12922 \begin_inset Quotes eld
12923 \end_inset
12924
12925 Claim
12926 \begin_inset Quotes erd
12927 \end_inset
12928
12929 , and 
12930 \begin_inset Quotes eld
12931 \end_inset
12932
12933 Conjecture
12934 \begin_inset Quotes erd
12935 \end_inset
12936
12937 .
12938  Their use is more or less obvious.
12939  \SpecialChar LyX
12940  supports all these environments; it will use the proper label, text style,
12941  and numbering scheme for each of them.
12942 \end_layout
12943
12944 \begin_layout Enumerate
12945 Both packages use basic citations; the natbib package should not be used.
12946  In \SpecialChar LyX
12947 , citation references are shown as usual; in the output, citations are
12948  shown as superscripts.
12949  If you want to use a citation as normal text, you should use the 
12950 \family typewriter
12951 refcite
12952 \family default
12953  command, e.
12954 \begin_inset space \thinspace{}
12955 \end_inset
12956
12957 g.
12958 \begin_inset space \space{}
12959 \end_inset
12960
12961
12962 \begin_inset Quotes eld
12963 \end_inset
12964
12965 See Ref.
12966 \begin_inset space \space{}
12967 \end_inset
12968
12969
12970 \family typewriter
12971
12972 \backslash
12973 refcite{key}
12974 \family default
12975
12976 \begin_inset Quotes erd
12977 \end_inset
12978
12979 .
12980 \end_layout
12981
12982 \begin_layout Enumerate
12983 There is no 
12984 \begin_inset Quotes eld
12985 \end_inset
12986
12987 Acknowledgments
12988 \begin_inset Quotes erd
12989 \end_inset
12990
12991  section in both packages.
12992  To put acknowledgments, just use the 
12993 \begin_inset Quotes eld
12994 \end_inset
12995
12996 Section*
12997 \begin_inset Quotes erd
12998 \end_inset
12999
13000  environment.
13001 \end_layout
13002
13003 \begin_layout Enumerate
13004 Appendices may be added to the paper, 
13005 \emph on
13006 after
13007 \emph default
13008  the Acknowledgments and 
13009 \shape italic
13010 before
13011 \shape default
13012  the References.
13013  \SpecialChar LyX
13014  provides a special environment, called 
13015 \begin_inset Quotes eld
13016 \end_inset
13017
13018 Appendices Section
13019 \begin_inset Quotes erd
13020 \end_inset
13021
13022  which marks the beginning of the appendices.
13023  This environment should be left blank; it just sends a \SpecialChar LaTeX
13024  command, but nothing
13025  is really printed.
13026  In \SpecialChar LyX
13027 , the word 
13028 \begin_inset Quotes eld
13029 \end_inset
13030
13031 Appendix
13032 \begin_inset Quotes erd
13033 \end_inset
13034
13035  is printed with blue letters, as a signal that all sections after that
13036  point are appendices.
13037  To write an appendix, use the 
13038 \begin_inset Quotes eld
13039 \end_inset
13040
13041 Appendix
13042 \begin_inset Quotes erd
13043 \end_inset
13044
13045  environment.
13046  \SpecialChar LyX
13047  will number each appendix with capital letters, as required by both journals.
13048  Note that 
13049 \begin_inset Quotes eld
13050 \end_inset
13051
13052 Appendices Section
13053 \begin_inset Quotes erd
13054 \end_inset
13055
13056  
13057 \emph on
13058 must
13059 \emph default
13060  be present before the first appendix; if not, all appendices will be numbered
13061  as normal sections in the output.
13062 \end_layout
13063
13064 \begin_layout Enumerate
13065 The ijmpc and the ijmpd packages use the 
13066 \family typewriter
13067 tbl
13068 \family default
13069  command to implement table captions.
13070  As a result, a table created by \SpecialChar LyX
13071  is printed correctly, but its caption
13072  is ignored.
13073  However, you can use some \SpecialChar TeX
13074  code to overcome this problem, so that captions
13075  are printed as expected.
13076  To do so, create a float table as usual, remove the caption, and replace
13077  it with the \SpecialChar TeX
13078  code 
13079 \family typewriter
13080
13081 \backslash
13082 tbl{
13083 \emph on
13084 your table caption
13085 \emph default
13086 }{
13087 \family default
13088  (sic); you must also the \SpecialChar TeX
13089  code 
13090 \family typewriter
13091 }
13092 \family default
13093  immediately after the tabular material.
13094  Study the example table included in the template files to see how this
13095  trick is implemented.
13096  Alternatively, If you need table captions, you should implement the whole
13097  table float in a 
13098 \family typewriter
13099 .tex
13100 \family default
13101  file, then include this file to the \SpecialChar LyX
13102  document (
13103 \family sans
13104 Insert\SpecialChar menuseparator
13105 File\SpecialChar menuseparator
13106 Child
13107 \begin_inset space ~
13108 \end_inset
13109
13110 Document
13111 \family default
13112 ).
13113  Details on how to create a table float can be found in the files 
13114 \family typewriter
13115 ws-ijmpc.tex
13116 \family default
13117  and 
13118 \family typewriter
13119 ws-ijmpd.tex
13120 \family default
13121 , included in the corresponding packages.
13122 \end_layout
13123
13124 \begin_layout Subsection
13125 Preparing a paper for submission
13126 \end_layout
13127
13128 \begin_layout Standard
13129 Before you submit your paper you must export the \SpecialChar LyX
13130  document as a \SpecialChar LaTeX
13131  file (
13132 \family sans
13133 File\SpecialChar menuseparator
13134 Export\SpecialChar menuseparator
13135 \SpecialChar LaTeX
13136
13137 \family default
13138 )
13139 \begin_inset Foot
13140 status open
13141
13142 \begin_layout Plain Layout
13143 Actually you have the choice between \SpecialChar LaTeX
13144  (plain) and pdflatex.
13145  If you intend to use pdflatex to prepare the paper, you should use the
13146  pdflatex option so that included graphics are converted to PDF format,
13147  ready for use by pdflatex.
13148 \end_layout
13149
13150 \end_inset
13151
13152 , then make the following changes to the resulting 
13153 \family typewriter
13154 .tex
13155 \family default
13156  file.
13157 \end_layout
13158
13159 \begin_layout Enumerate
13160 Remove the comment lines before the 
13161 \family typewriter
13162
13163 \backslash
13164 documentclass
13165 \family default
13166  command.
13167 \end_layout
13168
13169 \begin_layout Enumerate
13170 Remove everything between (and including) the 
13171 \family typewriter
13172
13173 \backslash
13174 makeatletter
13175 \family default
13176  and 
13177 \family typewriter
13178
13179 \backslash
13180 makeatother
13181 \family default
13182  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13183  preamble.
13184 \end_layout
13185
13186 \begin_layout Standard
13187 The modified 
13188 \family typewriter
13189 .tex
13190 \family default
13191  file should be saved and processed through \SpecialChar LaTeX
13192  as many times as necessary.
13193  You may also want to check the resulting 
13194 \family typewriter
13195 .dvi
13196 \family default
13197  document.
13198 \end_layout
13199
13200 \begin_layout Subsection
13201 Use of \SpecialChar TeX
13202  code
13203 \end_layout
13204
13205 \begin_layout Standard
13206 The use of \SpecialChar TeX
13207  code is reduced to two commands, which must be placed at the
13208  top of the document.
13209  If you started writing your paper by using the 
13210 \family typewriter
13211 ijmpc.lyx
13212 \family default
13213  or the 
13214 \family typewriter
13215 ijmpd.lyx
13216 \family default
13217  template, the \SpecialChar TeX
13218  code needed is already in its place; you usually don't need
13219  to delete it.
13220  You may only modify the first \SpecialChar TeX
13221  code to specify the information printed
13222  to the top of odd and even pages (authors' names and short paper's title,
13223  respectively).
13224  This \SpecialChar TeX
13225  code must have the form 
13226 \family typewriter
13227
13228 \backslash
13229 markboth{Authors' Names}{Short Paper's Title}
13230 \family default
13231 .
13232 \end_layout
13233
13234 \begin_layout Section
13235 iopart
13236 \end_layout
13237
13238 \begin_layout Standard
13239 by 
13240 \noun on
13241 Uwe Stöhr
13242 \end_layout
13243
13244 \begin_layout Subsection
13245 Overview
13246 \end_layout
13247
13248 \begin_layout Standard
13249 The iopart package provides a document class to create electronic manuscript
13250  submission to the journals published by the Institute of Physics.
13251  Instructions for the authors how to create a paper using the iopart class
13252  can be downloaded together with the iopart package from the site 
13253 \begin_inset Flex URL
13254 status collapsed
13255
13256 \begin_layout Plain Layout
13257
13258 ftp://ftp.iop.org/pub/journals/latex2e
13259 \end_layout
13260
13261 \end_inset
13262
13263 .
13264 \end_layout
13265
13266 \begin_layout Subsection
13267 Writing a paper
13268 \end_layout
13269
13270 \begin_layout Standard
13271 The easiest way to write a paper is to start with the file 
13272 \emph on
13273 IOP-article.lyx
13274 \emph default
13275  that is available in \SpecialChar LyX
13276 's examples files folder.
13277  Open this file, save it under a new name, and start writing.
13278  The example file explains how to use the special text environments.
13279  Here are the most important advices:
13280 \end_layout
13281
13282 \begin_layout Itemize
13283 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13284  two options 
13285 \family sans
13286 Use AMS math package
13287 \family default
13288  in the document settings under 
13289 \family sans
13290 Math Options
13291 \family default
13292  are not used!
13293 \end_layout
13294
13295 \begin_layout Itemize
13296
13297 \size normal
13298 The title environment defines the kind of your paper.
13299  So use one of the following environments for the title:
13300 \size default
13301
13302 \begin_inset Separator parbreak
13303 \end_inset
13304
13305
13306 \end_layout
13307
13308 \begin_deeper
13309 \begin_layout Itemize
13310
13311 \family sans
13312 \size normal
13313 Title
13314 \family default
13315  for a Paper
13316 \end_layout
13317
13318 \begin_layout Itemize
13319
13320 \family sans
13321 \size normal
13322 Review
13323 \family default
13324  for a Review
13325 \end_layout
13326
13327 \begin_layout Itemize
13328
13329 \family sans
13330 \size normal
13331 Topical
13332 \family default
13333  for a Topical review
13334 \end_layout
13335
13336 \begin_layout Itemize
13337
13338 \family sans
13339 \size normal
13340 Comment
13341 \family default
13342  for a Comment
13343 \end_layout
13344
13345 \begin_layout Itemize
13346
13347 \family sans
13348 \size normal
13349 Note
13350 \family default
13351  for a Note
13352 \end_layout
13353
13354 \begin_layout Itemize
13355
13356 \family sans
13357 \size normal
13358 Paper
13359 \family default
13360  for a Paper (same as Title)
13361 \end_layout
13362
13363 \begin_layout Itemize
13364
13365 \family sans
13366 \size normal
13367 Prelim
13368 \family default
13369  for a Preliminary communication
13370 \end_layout
13371
13372 \begin_layout Itemize
13373
13374 \family sans
13375 \size normal
13376 Rapid
13377 \family default
13378  for a Rapid communication
13379 \end_layout
13380
13381 \begin_layout Itemize
13382
13383 \family sans
13384 \size normal
13385 Letter
13386 \family default
13387  for a Letter to the editor
13388 \end_layout
13389
13390 \end_deeper
13391 \begin_layout Itemize
13392
13393 \size normal
13394 All title environments except of 
13395 \family sans
13396 Letter
13397 \family default
13398  can have an optional short title.
13399 \end_layout
13400
13401 \begin_layout Itemize
13402 There is a general title environment 
13403 \family sans
13404 Article
13405 \family default
13406  which is not directly supported by the \SpecialChar LyX
13407 .
13408  This can be used as \SpecialChar TeX
13409  code when your document doesn't fit into one of the
13410  other title types.
13411 \end_layout
13412
13413 \begin_layout Standard
13414 For more informations like hints for special table and formula formatting,
13415  look at the IOP author guidelines.
13416 \end_layout
13417
13418 \begin_layout Section
13419 Kluwer
13420 \end_layout
13421
13422 \begin_layout Standard
13423 by 
13424 \noun on
13425 Panayotis Papasotiriou
13426 \end_layout
13427
13428 \begin_layout Subsection
13429 Overview
13430 \end_layout
13431
13432 \begin_layout Standard
13433 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13434  that facilitates electronic manuscript submission to the journals they
13435  publish.
13436  Most known of them (at least in my domain of interest) are 
13437 \emph on
13438 Astrophysics and Space Science
13439 \emph default
13440  and 
13441 \emph on
13442 Solar Physics
13443 \emph default
13444 , but there are many others (see a complete list at 
13445 \begin_inset Flex URL
13446 status open
13447
13448 \begin_layout Plain Layout
13449
13450 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13451 \end_layout
13452
13453 \end_inset
13454
13455 ).
13456  The Kluwer package may be downloaded from the site 
13457 \begin_inset Flex URL
13458 status collapsed
13459
13460 \begin_layout Plain Layout
13461
13462 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13463 \end_layout
13464
13465 \end_inset
13466
13467 .
13468  A complete user guide is contained in that package (but it can also be
13469  downloaded separately).
13470 \end_layout
13471
13472 \begin_layout Standard
13473 \SpecialChar LyX
13474  supports many features of the package but not everything.
13475  However, the \SpecialChar TeX
13476  code needed is reduced to some 
13477 \begin_inset Quotes eld
13478 \end_inset
13479
13480 peculiar
13481 \begin_inset Quotes erd
13482 \end_inset
13483
13484  commands of the package (see
13485 \begin_inset space ~
13486 \end_inset
13487
13488
13489 \begin_inset CommandInset ref
13490 LatexCommand ref
13491 reference "subsec:kluwer_peculiarities"
13492
13493 \end_inset
13494
13495 ).
13496  I have recently used \SpecialChar LyX
13497  to write an article submitted to the 
13498 \emph on
13499 Astrophysics and Space Science
13500 \emph default
13501  without any problem.
13502 \end_layout
13503
13504 \begin_layout Subsection
13505 Writing a paper
13506 \end_layout
13507
13508 \begin_layout Standard
13509 The easiest way to write a paper is to start with the Kluwer template file.
13510  Click on 
13511 \family sans
13512 File\SpecialChar menuseparator
13513 New from
13514 \family default
13515  
13516 \family sans
13517 Template
13518 \family default
13519 , then choose the 
13520 \family typewriter
13521 kluwer.lyx
13522 \family default
13523  template.
13524  This will give an (almost) empty document that includes the most common
13525  fields found in a manuscript and a short description of their use.
13526  As in most templates, simply overwrite the existing text (including the
13527  brackets, 
13528 \family typewriter
13529 <>
13530 \family default
13531 ) with the correct information.
13532 \end_layout
13533
13534 \begin_layout Subsection
13535 Preparing a paper for submission
13536 \end_layout
13537
13538 \begin_layout Standard
13539 As in the AAS\SpecialChar TeX
13540  package, before you submit your paper to a journal you must
13541  
13542 \begin_inset Quotes eld
13543 \end_inset
13544
13545 postprocess
13546 \begin_inset Quotes erd
13547 \end_inset
13548
13549  it as follows.
13550 \end_layout
13551
13552 \begin_layout Enumerate
13553 Export your paper as a \SpecialChar LaTeX
13554  file.
13555  To do this, click on 
13556 \family sans
13557 File\SpecialChar menuseparator
13558 Export\SpecialChar menuseparator
13559 \SpecialChar LaTeX
13560
13561 \family default
13562 .
13563  
13564 \end_layout
13565
13566 \begin_layout Enumerate
13567 Edit the resulting 
13568 \family typewriter
13569 .tex
13570 \family default
13571  file with a text editor and make the following changes
13572 \begin_inset Separator parbreak
13573 \end_inset
13574
13575
13576 \end_layout
13577
13578 \begin_deeper
13579 \begin_layout Enumerate
13580 remove the comment lines before the 
13581 \family typewriter
13582
13583 \backslash
13584 documentclass
13585 \family default
13586  command,
13587 \end_layout
13588
13589 \begin_layout Enumerate
13590 remove everything between (and including) the 
13591 \family typewriter
13592
13593 \backslash
13594 makeatletter
13595 \family default
13596  and 
13597 \family typewriter
13598
13599 \backslash
13600 makeatother
13601 \family default
13602  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13603  preamble.
13604 \end_layout
13605
13606 \begin_layout Standard
13607 Save the resulting 
13608 \family typewriter
13609 .tex
13610 \family default
13611  file.
13612 \end_layout
13613
13614 \end_deeper
13615 \begin_layout Enumerate
13616 Run the 
13617 \family typewriter
13618 .tex
13619 \family default
13620  file through \SpecialChar LaTeX
13621  as many times as necessary (usually up to three).
13622 \end_layout
13623
13624 \begin_layout Enumerate
13625 View the resulting 
13626 \family typewriter
13627 .dvi
13628 \family default
13629  document using, e.
13630 \begin_inset space \thinspace{}
13631 \end_inset
13632
13633 g.
13634 \begin_inset space \space{}
13635 \end_inset
13636
13637
13638 \family sans
13639 xdvi
13640 \family default
13641 , and check if everything is OK (it should, if you didn't make any mistake).
13642 \end_layout
13643
13644 \begin_layout Subsection
13645 \begin_inset Quotes eld
13646 \end_inset
13647
13648 Peculiarities
13649 \begin_inset Quotes erd
13650 \end_inset
13651
13652  of the Kluwer package
13653 \begin_inset CommandInset label
13654 LatexCommand label
13655 name "subsec:kluwer_peculiarities"
13656
13657 \end_inset
13658
13659
13660 \end_layout
13661
13662 \begin_layout Standard
13663 The Kluwer package has the following 
13664 \begin_inset Quotes eld
13665 \end_inset
13666
13667 peculiarities
13668 \begin_inset Quotes erd
13669 \end_inset
13670
13671 .
13672 \end_layout
13673
13674 \begin_layout Enumerate
13675 It is possible to write multiple articles in the same \SpecialChar LaTeX
13676  file
13677 \begin_inset Foot
13678 status collapsed
13679
13680 \begin_layout Plain Layout
13681 I can't imagine any good reason to do this.
13682 \end_layout
13683
13684 \end_inset
13685
13686 .
13687  Each article must be included in the environment 
13688 \begin_inset Quotes eld
13689 \end_inset
13690
13691 article
13692 \begin_inset Quotes erd
13693 \end_inset
13694
13695 .
13696  Unfortunately, this environment cannot be omitted, even if you write just
13697  one article.
13698  Therefore, each article starts with the command 
13699 \family typewriter
13700
13701 \backslash
13702 begin{article}
13703 \family default
13704  and, obviously, ends with the command 
13705 \family typewriter
13706
13707 \backslash
13708 end{article}
13709 \family default
13710 .
13711  Although this can be implemented in \SpecialChar LyX
13712 , I didn't included it, since it looks
13713  ugly and can confuse the novice user.
13714  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13715  code (the
13716  well-known 
13717 \begin_inset Quotes eld
13718 \end_inset
13719
13720 \SpecialChar TeX
13721  code
13722 \begin_inset Quotes erd
13723 \end_inset
13724
13725 ).
13726 \end_layout
13727
13728 \begin_layout Enumerate
13729 Information given at the beginning of the article (i.
13730 \begin_inset space \thinspace{}
13731 \end_inset
13732
13733 e.
13734 \begin_inset space \space{}
13735 \end_inset
13736
13737 title, subtitle, author, institution, running title, running author, abstract
13738  and keywords) must be included in an environment called 
13739 \begin_inset Quotes eld
13740 \end_inset
13741
13742 opening
13743 \begin_inset Quotes erd
13744 \end_inset
13745
13746 .
13747  This is not implemented in \SpecialChar LyX
13748 , so you must enter title, subtitle etc.
13749 \begin_inset space ~
13750 \end_inset
13751
13752 between two \SpecialChar TeX
13753  code lines (
13754 \family typewriter
13755
13756 \backslash
13757 begin{opening}
13758 \family default
13759  and 
13760 \family typewriter
13761
13762 \backslash
13763 end{opening}
13764 \family default
13765 ).
13766 \end_layout
13767
13768 \begin_layout Enumerate
13769 According to the user manual, the label of each bibliography item must be
13770  written as 
13771 \family typewriter
13772
13773 \backslash
13774 protect
13775 \backslash
13776 citeauthoryear{
13777 \family default
13778 \emph on
13779 author(s)
13780 \family typewriter
13781 \emph default
13782 }{
13783 \family default
13784 \emph on
13785 year
13786 \family typewriter
13787 \emph default
13788 }
13789 \family default
13790 .
13791 \end_layout
13792
13793 \begin_layout Standard
13794 The 
13795 \family typewriter
13796 kluwer.lyx
13797 \family default
13798  template takes care of all these 
13799 \begin_inset Quotes eld
13800 \end_inset
13801
13802 peculiarities
13803 \begin_inset Quotes erd
13804 \end_inset
13805
13806 .
13807  If you start a new paper using this template you don't need to do anything
13808  special.
13809  Just 
13810 \end_layout
13811
13812 \begin_layout Enumerate
13813 don't delete the \SpecialChar TeX
13814  code included in the template, and
13815 \end_layout
13816
13817 \begin_layout Enumerate
13818 copy the example bibliography item included in the template and modify it
13819  as necessary to enter new bibliography items.
13820 \end_layout
13821
13822 \begin_layout Section
13823 Koma-Script
13824 \end_layout
13825
13826 \begin_layout Standard
13827 by 
13828 \noun on
13829 Bernd Rellermeyer
13830 \end_layout
13831
13832 \begin_layout Subsection
13833 Overview
13834 \end_layout
13835
13836 \begin_layout Standard
13837 The \SpecialChar LyX
13838  document classes 
13839 \emph on
13840 article (koma-script)
13841 \emph default
13842
13843 \emph on
13844 report (koma-script)
13845 \emph default
13846
13847 \emph on
13848 book
13849 \emph default
13850  
13851 \emph on
13852 (koma-script)
13853 \emph default
13854 , and 
13855 \emph on
13856 letter
13857 \emph default
13858  
13859 \emph on
13860 (koma-script)
13861 \emph default
13862  correspond to the \SpecialChar LaTeX
13863  document classes 
13864 \family typewriter
13865 scrartcl.cls
13866 \family default
13867
13868 \family typewriter
13869 scrreprt.cls
13870 \family default
13871
13872 \family typewriter
13873 scrbook.cls
13874 \family default
13875 , and 
13876 \family typewriter
13877 scrlettr.cls
13878 \family default
13879 , resp.
13880 \begin_inset space ~
13881 \end_inset
13882
13883 of the Koma-Script family.
13884  They are replacements for the standard document classes 
13885 \family typewriter
13886 article.cls
13887 \family default
13888
13889 \family typewriter
13890 report.cls
13891 \family default
13892
13893 \family typewriter
13894 book.cls
13895 \family default
13896  and 
13897 \family typewriter
13898 letter.cls
13899 \family default
13900 , resp., and fit better to European typography conventions in a number of
13901  points.
13902 \end_layout
13903
13904 \begin_layout Itemize
13905 Standard character size is 11pt in 
13906 \emph on
13907 article (koma-script)
13908 \emph default
13909
13910 \emph on
13911 report (koma-script)
13912 \emph default
13913 , and 
13914 \emph on
13915 book (koma-script)
13916 \emph default
13917 , and 12pt in 
13918 \emph on
13919 letter (koma-script)
13920 \emph default
13921 .
13922 \end_layout
13923
13924 \begin_layout Itemize
13925 Headings, labels of the description environment, and a number of elements
13926  of the 
13927 \emph on
13928 letter (koma-script)
13929 \emph default
13930  document class are set in a bold sans serif font.
13931 \begin_inset Foot
13932 status collapsed
13933
13934 \begin_layout Plain Layout
13935 There is a big difference between the bold sans serif old cm fonts and new
13936  ec fonts, especially in the appearance of headings.
13937  In comparison, the ec bold sans serif fonts look a bit thin.
13938  Here the \SpecialChar LaTeX
13939  package 
13940 \family typewriter
13941 cmsd.sty by
13942 \family default
13943  
13944 \shape smallcaps
13945 Walter Schmidt
13946 \shape default
13947  helps to produce the 
13948 \begin_inset Quotes eld
13949 \end_inset
13950
13951 usual
13952 \begin_inset Quotes erd
13953 \end_inset
13954
13955  appearance when using the ec fonts.
13956 \end_layout
13957
13958 \end_inset
13959
13960  The numbering of chapter headings is made in the same way as the numbering
13961  of section headings, that is without the extra line 
13962 \begin_inset Quotes eld
13963 \end_inset
13964
13965 Chapter\SpecialChar ldots
13966
13967 \begin_inset Quotes erd
13968 \end_inset
13969
13970 .
13971  In addition, the appearance of the headings can be modified by using a
13972  number of options (in \SpecialChar LyX
13973  to be entered in the field 
13974 \family sans
13975 Extra
13976 \begin_inset space ~
13977 \end_inset
13978
13979 Options
13980 \family default
13981  of the dialog 
13982 \family sans
13983 Layout\SpecialChar menuseparator
13984 Document
13985 \family default
13986 ).
13987  
13988 \end_layout
13989
13990 \begin_layout Itemize
13991 The main means in the Koma-Script document classes to design the type area
13992  are the options 
13993 \family sans
13994 BCOR
13995 \family default
13996  and 
13997 \family sans
13998 DIV
13999 \family default
14000  (in \SpecialChar LyX
14001  to be entered in the extra class options field in the dialog 
14002 \family sans
14003 Document\SpecialChar menuseparator
14004 Settings
14005 \family default
14006 ).
14007  They make a clearer modification of page margins possible as do the options
14008  of the dialog 
14009 \family sans
14010 Document\SpecialChar menuseparator
14011 Settings
14012 \family default
14013 .
14014  
14015 \end_layout
14016
14017 \begin_layout Itemize
14018 The \SpecialChar LaTeX
14019  document classes of the Koma-Script family define a number of additional
14020  commands.
14021  Those part of it which makes sense in \SpecialChar LyX
14022  is implemented in corresponding
14023  paragraph types.
14024 \end_layout
14025
14026 \begin_layout Standard
14027 Detailed descriptions of the \SpecialChar LaTeX
14028  document classes of the Koma-Script family
14029  can be found in the Koma-Script documentation 
14030 \emph on
14031 scrguide
14032 \emph default
14033  (German) and 
14034 \emph on
14035 scrguien
14036 \emph default
14037  (English).
14038 \end_layout
14039
14040 \begin_layout Subsection
14041 article (koma-script), report (koma-script), and book (koma-script)
14042 \end_layout
14043
14044 \begin_layout Standard
14045 The document classes 
14046 \emph on
14047 article (koma-script)
14048 \emph default
14049
14050 \emph on
14051 report (koma-script)
14052 \emph default
14053 , and 
14054 \emph on
14055 book
14056 \emph default
14057  
14058 \emph on
14059 (koma-script)
14060 \emph default
14061  are implemented in the layout files 
14062 \family typewriter
14063 scrartcl.layout
14064 \family default
14065
14066 \family typewriter
14067 scrreprt.layout
14068 \family default
14069 , and 
14070 \family typewriter
14071 scrbook.layout
14072 \family default
14073 , resp.
14074  They contain all the paragraph types of the corresponding standard document
14075  classes 
14076 \emph on
14077 article
14078 \emph default
14079
14080 \emph on
14081 report
14082 \emph default
14083 , and 
14084 \emph on
14085 book
14086 \emph default
14087 , resp., partly modified, with the exception of the \SpecialChar LyX
14088  specific 
14089 \family sans
14090 List
14091 \family default
14092 -type, which is replaced by the new 
14093 \family sans
14094 Labeling
14095 \family default
14096 -type having the same functionality.
14097  Beside the 
14098 \family sans
14099 Labeling
14100 \family default
14101 -Type there is a number of new paragraph types added.
14102  They are 
14103 \emph on
14104 not
14105 \emph default
14106  part of 
14107 \emph on
14108 letter (koma-script)
14109 \emph default
14110 .
14111 \end_layout
14112
14113 \begin_layout Itemize
14114
14115 \family sans
14116 Addpart, Addchap
14117 \family default
14118
14119 \family sans
14120 Addsec
14121 \family default
14122 : are equivalents to 
14123 \family sans
14124 Part*, Chapter*
14125 \family default
14126  and 
14127 \family sans
14128 Section*
14129 \family default
14130 , resp., additionally inserting an entry in the table of contents.
14131  
14132 \family sans
14133 Addpart
14134 \family default
14135  and 
14136 \family sans
14137 Addchap
14138 \family default
14139  are not contained in 
14140 \emph on
14141 article (koma-script)
14142 \emph default
14143 .
14144 \end_layout
14145
14146 \begin_layout Itemize
14147
14148 \family sans
14149 Addchap*
14150 \family default
14151
14152 \family sans
14153 Addsec*
14154 \family default
14155 : behave exactly as 
14156 \family sans
14157 Addchap
14158 \family default
14159  and 
14160 \family sans
14161 Addsec
14162 \family default
14163 , resp., additionally clearing running heads.
14164  
14165 \family sans
14166 Addchap*
14167 \family default
14168  is not contained in 
14169 \emph on
14170 article (koma-script)
14171 \emph default
14172 .
14173 \begin_inset Foot
14174 status collapsed
14175
14176 \begin_layout Plain Layout
14177 There is also an 
14178 \family typewriter
14179
14180 \backslash
14181 addpart*
14182 \family default
14183  command in 
14184 \emph on
14185 book (koma-script)
14186 \emph default
14187  and in 
14188 \emph on
14189 report (koma-script)
14190 \emph default
14191 , but since this is identical to 
14192 \family sans
14193 Part*
14194 \family default
14195 , is has not been implemented in \SpecialChar LyX
14196 .
14197 \end_layout
14198
14199 \end_inset
14200
14201
14202 \end_layout
14203
14204 \begin_layout Itemize
14205
14206 \family sans
14207 Minisec
14208 \family default
14209 : generates a heading directly above the following paragraph in the standard
14210  character size without affecting the structure of the document.
14211 \end_layout
14212
14213 \begin_layout Itemize
14214
14215 \family sans
14216 Captionabove
14217 \family default
14218  and 
14219 \family sans
14220 Captionbelow
14221 \family default
14222  are special captions which respect the different space settings needed
14223  for captions placed above or below an element (if you follow strict typographic
14224  rules, you might want to place table captions always above the table).
14225  You can also use the class option 
14226 \family typewriter
14227 tablecaptionsabove
14228 \family default
14229 , which will switch 
14230 \family sans
14231 caption
14232 \family default
14233  to 
14234 \family sans
14235 captionabove
14236 \family default
14237  for tables and 
14238 \family sans
14239 captionbelow
14240 \family default
14241  for figures.
14242  You need at least Koma-Script version 2.8q to use this.
14243 \end_layout
14244
14245 \begin_layout Itemize
14246
14247 \family sans
14248 Dictum
14249 \family default
14250 : can be used to set a bonmot, e.
14251 \begin_inset space \thinspace{}
14252 \end_inset
14253
14254 g.
14255 \begin_inset space \space{}
14256 \end_inset
14257
14258 at the beginning of a chapter.
14259  If you use the optional argument (
14260 \family sans
14261 Insert\SpecialChar menuseparator
14262 Short
14263 \begin_inset space ~
14264 \end_inset
14265
14266 Title
14267 \family default
14268 ), you can insert the dictum's author there.
14269  Dictum and author are separated by a line.
14270  You need at least Koma-Script version 2.8q to use this.
14271  
14272 \family sans
14273 Dictum
14274 \family default
14275  is not contained in 
14276 \emph on
14277 article (koma-script)
14278 \emph default
14279 .
14280 \end_layout
14281
14282 \begin_layout Standard
14283 The following types, together with the standard types 
14284 \family sans
14285 Title
14286 \family default
14287
14288 \family sans
14289 Author
14290 \family default
14291 , and 
14292 \family sans
14293 Date
14294 \family default
14295 , form the title area of the document.
14296  They must be entered ahead of the first 
14297 \begin_inset Quotes eld
14298 \end_inset
14299
14300 ordinary
14301 \begin_inset Quotes erd
14302 \end_inset
14303
14304  paragraph.
14305 \begin_inset Foot
14306 status collapsed
14307
14308 \begin_layout Plain Layout
14309 The corresponding \SpecialChar LaTeX
14310  commands must appear before the 
14311 \family typewriter
14312
14313 \backslash
14314 maketitle
14315 \family default
14316  command.
14317 \end_layout
14318
14319 \end_inset
14320
14321  When such a type is used more than once, the latter usage overwrites the
14322  former one, that means, for every type only the latest usage is valid.
14323  The order of the different types however has, like 
14324 \family sans
14325 Title
14326 \family default
14327
14328 \family sans
14329 Author
14330 \family default
14331 , and 
14332 \family sans
14333 Date
14334 \family default
14335 , no effect on the appearance of the produced document.
14336 \end_layout
14337
14338 \begin_layout Itemize
14339
14340 \family sans
14341 Subject
14342 \family default
14343 : produces a centered paragraph above the ordinary title (
14344 \family sans
14345 Title
14346 \family default
14347
14348 \family sans
14349 Author
14350 \family default
14351
14352 \family sans
14353 Date
14354 \family default
14355 ) for the subject of the document.
14356 \end_layout
14357
14358 \begin_layout Itemize
14359
14360 \family sans
14361 Publishers
14362 \family default
14363 : produces a centered paragraph below the ordinary title (
14364 \family sans
14365 Title
14366 \family default
14367
14368 \family sans
14369 Author
14370 \family default
14371
14372 \family sans
14373 Date
14374 \family default
14375 ) for the publishers' name.
14376 \end_layout
14377
14378 \begin_layout Itemize
14379
14380 \family sans
14381 Dedication
14382 \family default
14383 : in 
14384 \emph on
14385 report (koma-script)
14386 \emph default
14387  and 
14388 \emph on
14389 book (koma-script)
14390 \emph default
14391  produces a centered paragraph on its own page behind the title page, or
14392  in 
14393 \emph on
14394 article (koma-script)
14395 \emph default
14396  produces a centered paragraph below the ordinary title (
14397 \family sans
14398 Title
14399 \family default
14400
14401 \family sans
14402 Author
14403 \family default
14404
14405 \family sans
14406 Date
14407 \family default
14408
14409 \family sans
14410 Publishers
14411 \family default
14412 ) for a dedication.
14413 \end_layout
14414
14415 \begin_layout Itemize
14416
14417 \family sans
14418 Titlehead
14419 \family default
14420 : produces a left aligned paragraph above the ordinary title (
14421 \family sans
14422 Title
14423 \family default
14424
14425 \family sans
14426 Author
14427 \family default
14428
14429 \family sans
14430 Date
14431 \family default
14432
14433 \family sans
14434 Subject
14435 \family default
14436 ) for a document`s head.
14437 \end_layout
14438
14439 \begin_layout Itemize
14440
14441 \family sans
14442 Uppertitleback
14443 \family default
14444 : produces in a double-sided print in 
14445 \emph on
14446 report (koma-script)
14447 \emph default
14448  and 
14449 \emph on
14450 book (koma-script)
14451 \emph default
14452  a left-aligned paragraph at the top of the title page`s back or has no
14453  effect in a single-sided print or in 
14454 \emph on
14455 article (koma-script)
14456 \emph default
14457 .
14458 \end_layout
14459
14460 \begin_layout Itemize
14461
14462 \family sans
14463 Lowertitleback
14464 \family default
14465 : produces in a double-sided print in 
14466 \emph on
14467 report (koma-script)
14468 \emph default
14469  and 
14470 \emph on
14471 book (koma-script)
14472 \emph default
14473  a left-aligned paragraph at the bottom of the title page`s back or has
14474  no effect in a single-sided print or in 
14475 \emph on
14476 article (koma-script)
14477 \emph default
14478 .
14479 \end_layout
14480
14481 \begin_layout Itemize
14482
14483 \family sans
14484 Extratitle
14485 \family default
14486 : produces a special 
14487 \begin_inset Quotes eld
14488 \end_inset
14489
14490 dirty
14491 \begin_inset Quotes erd
14492 \end_inset
14493
14494  page ahead of the actual document containing a paragraph without special
14495  formatting.
14496 \end_layout
14497
14498 \begin_layout Standard
14499 The layout files for the document classes 
14500 \emph on
14501 article (koma-script)
14502 \emph default
14503
14504 \emph on
14505 report (koma-script)
14506 \emph default
14507 , and 
14508 \emph on
14509 book (koma-script)
14510 \emph default
14511  do include the file 
14512 \family typewriter
14513 scrmacros.inc
14514 \family default
14515 .
14516  This is thought of as a place to define your own types.
14517  Copy scrmacros
14518 \family typewriter
14519 .inc
14520 \family default
14521  in your personal layout directory and edit the file!
14522 \end_layout
14523
14524 \begin_layout Subsection
14525 letter (koma-script)
14526 \end_layout
14527
14528 \begin_layout Standard
14529 \noindent
14530 The document class 
14531 \emph on
14532 letter (koma-script)
14533 \emph default
14534  is implemented in the layout file 
14535 \family typewriter
14536 scrlettr.layout
14537 \family default
14538 .
14539  It contains all the paragraph types of the corresponding standard document
14540  class 
14541 \emph on
14542 letter
14543 \emph default
14544 , partly modified, with the exception of the \SpecialChar LyX
14545  specific types 
14546 \family sans
14547 \SpecialChar LyX
14548 -Code
14549 \family default
14550  and 
14551 \family sans
14552 Comment
14553 \family default
14554  and the 
14555 \family sans
14556 List
14557 \family default
14558  type, which is replaced by the new 
14559 \family sans
14560 Labeling
14561 \family default
14562  type.
14563  In addition, it contains, in contrast to the standard document class, the
14564  standard types 
14565 \family sans
14566 \SpecialChar LaTeX
14567
14568 \family default
14569
14570 \family sans
14571 Quotation
14572 \family default
14573
14574 \family sans
14575 Quote
14576 \family default
14577 , and 
14578 \family sans
14579 Verse
14580 \family default
14581 .
14582  Furthermore, there are a number of new letter specific types.
14583 \end_layout
14584
14585 \begin_layout Standard
14586 The appearance of the letter produced by this document class can be controlled
14587  by a number of \SpecialChar LaTeX
14588  commands, which you can put in the \SpecialChar LaTeX
14589  preamble.
14590 \begin_inset Foot
14591 status collapsed
14592
14593 \begin_layout Plain Layout
14594 For example, the standard appearance of the letter`s heading, consisting
14595  of name and address, is quite self-willed.
14596  An 
14597 \begin_inset Quotes eld
14598 \end_inset
14599
14600 ordinary
14601 \begin_inset Quotes erd
14602 \end_inset
14603
14604  heading is produced by the following \SpecialChar LaTeX
14605  commands in the preamble:
14606 \end_layout
14607
14608 \begin_layout LyX-Code
14609
14610 \backslash
14611 firsthead{
14612 \backslash
14613 parbox[b]{
14614 \backslash
14615 textwidth}
14616 \end_layout
14617
14618 \begin_layout LyX-Code
14619   {
14620 \backslash
14621 ignorespaces 
14622 \backslash
14623 fromname
14624 \backslash
14625
14626 \backslash
14627  
14628 \backslash
14629 ignorespaces 
14630 \backslash
14631 fromaddress}} 
14632 \end_layout
14633
14634 \begin_layout LyX-Code
14635
14636 \backslash
14637 nexthead{
14638 \backslash
14639 parbox[b]{
14640 \backslash
14641 textwidth}
14642 \end_layout
14643
14644 \begin_layout LyX-Code
14645   {
14646 \backslash
14647 ignorespaces 
14648 \backslash
14649 fromname 
14650 \backslash
14651 hfill 
14652 \backslash
14653 ignorespaces 
14654 \backslash
14655 pagename
14656 \backslash
14657  
14658 \backslash
14659 thepage}}
14660 \end_layout
14661
14662 \end_inset
14663
14664  A detailed German description of such \SpecialChar LaTeX
14665  commands can be found in the Koma-Script
14666  documentation 
14667 \emph on
14668 scrguide
14669 \emph default
14670 .
14671  With it, the letter's author can produce his personal letter layout.
14672 \end_layout
14673
14674 \begin_layout Standard
14675 The types 
14676 \family sans
14677 Letter
14678 \family default
14679  and 
14680 \family sans
14681 Opening
14682 \family default
14683  define the beginning of the letter and must be used in every letter.
14684  To emphasize them in the \SpecialChar LyX
14685  document class, they are marked with the letter
14686  
14687 \shape italic
14688 L
14689 \shape default
14690  or 
14691 \shape italic
14692 O
14693 \shape default
14694 , resp.
14695 \begin_inset space ~
14696 \end_inset
14697
14698 in the left margin.
14699  It is possible to write any number of letters in one file.
14700  An 
14701 \family sans
14702 Opening
14703 \family default
14704  type produces a new letter using the same addressee and a 
14705 \family sans
14706 Letter
14707 \family default
14708  type produces a new addressee.
14709  The types 
14710 \family sans
14711 Closing
14712 \family default
14713
14714 \family sans
14715 PS
14716 \family default
14717
14718 \family sans
14719 CC
14720 \family default
14721 , and 
14722 \family sans
14723 Encl
14724 \family default
14725  are ordinary paragraph types and can also be used several times in one
14726  and the same letter.
14727 \end_layout
14728
14729 \begin_layout Itemize
14730
14731 \family sans
14732 Letter
14733 \family default
14734 : produces a paragraph for the addressee and implicitly defines the beginning
14735  of the letter.
14736 \end_layout
14737
14738 \begin_layout Itemize
14739
14740 \family sans
14741 Opening
14742 \family default
14743 : produces a paragraph for the form of address and implicitly produces a
14744  new letter.
14745 \end_layout
14746
14747 \begin_layout Itemize
14748
14749 \family sans
14750 Closing
14751 \family default
14752 : produces a paragraph for a close.
14753 \end_layout
14754
14755 \begin_layout Itemize
14756
14757 \family sans
14758 PS
14759 \family default
14760 : produces a paragraph for a postscript.
14761 \end_layout
14762
14763 \begin_layout Itemize
14764
14765 \family sans
14766 CC
14767 \family default
14768 : produces a paragraph for a distribution list.
14769 \end_layout
14770
14771 \begin_layout Itemize
14772
14773 \family sans
14774 Encl
14775 \family default
14776 : produces a paragraph for enclosures.
14777 \end_layout
14778
14779 \begin_layout Standard
14780 The types 
14781 \family sans
14782 Name
14783 \family default
14784
14785 \family sans
14786 Signature
14787 \family default
14788
14789 \family sans
14790 Address
14791 \family default
14792
14793 \family sans
14794 Telephone
14795 \family default
14796
14797 \family sans
14798 Place
14799 \family default
14800
14801 \family sans
14802 Backaddress
14803 \family default
14804
14805 \family sans
14806 Specialmail
14807 \family default
14808
14809 \family sans
14810 Location
14811 \family default
14812
14813 \family sans
14814 Title
14815 \family default
14816 , and 
14817 \family sans
14818 Subject
14819 \family default
14820  are input types provided with a label to enter information, which will
14821  be processed by the document class.
14822 \begin_inset Foot
14823 status open
14824
14825 \begin_layout Plain Layout
14826 It could be seen as a matter of inconsequence, that the types 
14827 \family sans
14828 Letter
14829 \family default
14830  and 
14831 \family sans
14832 Opening
14833 \family default
14834  described above are not such input types as well.
14835  Because of the special meaning of those types, however, I have implemented
14836  them as ordinary paragraph types with a one letter mark in the left margin.
14837  Moreover, it would affect my feeling of symmetry, if the 
14838 \family sans
14839 Opening
14840 \family default
14841  type and the 
14842 \family sans
14843 Closing
14844 \family default
14845  type had such a serious different appearance.
14846 \end_layout
14847
14848 \end_inset
14849
14850  The types must be used ahead of the corresponding 
14851 \family sans
14852 Opening
14853 \family default
14854  type.
14855 \end_layout
14856
14857 \begin_layout Standard
14858 An implementation of these types in a WYSIWYG fashion does not seem to make
14859  sense, because the real appearance of the produced letter does not only
14860  depend on the usage of the particular type, but also on other factors.
14861  For example, a signature entered in the 
14862 \family sans
14863 Signature
14864 \family default
14865  type will in the standard behavior appear in the produced letter only,
14866  when in the same letter also a 
14867 \family sans
14868 Closing
14869 \family default
14870  type is used.
14871  The entered value of the 
14872 \family sans
14873 Telephone
14874 \family default
14875  type will in the standard behavior not appear in the produced letter at
14876  all.
14877  The possibility to design the letter`s heading freely is already indicated
14878  in a footnote above.
14879 \end_layout
14880
14881 \begin_layout Standard
14882 The input types can also be used as empty paragraphs.
14883  This makes sense e.
14884 \begin_inset space \thinspace{}
14885 \end_inset
14886
14887 g.
14888 \begin_inset space \space{}
14889 \end_inset
14890
14891 for the 
14892 \family sans
14893 Signature
14894 \family default
14895  type.
14896  If the 
14897 \family sans
14898 Signature
14899 \family default
14900  type is not used at all, in the standard behavior the value of the 
14901 \family sans
14902 Name
14903 \family default
14904  type is used as signature, whereas if an empty 
14905 \family sans
14906 Signature
14907 \family default
14908  type is used, no signature value is defined.
14909 \end_layout
14910
14911 \begin_layout Standard
14912 By using the input types it is possible to write a letter template, containing
14913  filled input types with your personal dates (name, address, etc.) and empty
14914  input types for other dates you want to enter.
14915 \end_layout
14916
14917 \begin_layout Itemize
14918
14919 \family sans
14920 Name
14921 \family default
14922 : sender's name, in the standard behavior appears as a centered paragraph
14923  in small caps in the letter`s heading.
14924 \end_layout
14925
14926 \begin_layout Itemize
14927
14928 \family sans
14929 Signature
14930 \family default
14931 : sender's signature, in the standard behavior appears below the 
14932 \family sans
14933 Closing
14934 \family default
14935  type.
14936  If no 
14937 \family sans
14938 Signature
14939 \family default
14940  type is used, the value of the 
14941 \family sans
14942 Name
14943 \family default
14944  type appears instead.
14945 \end_layout
14946
14947 \begin_layout Itemize
14948
14949 \family sans
14950 Address
14951 \family default
14952 : sender's address, in the standard behavior appears in a centered paragraph
14953  in the letter`s heading below the sender's name.
14954 \end_layout
14955
14956 \begin_layout Itemize
14957
14958 \family sans
14959 Telephone
14960 \family default
14961 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
14962  variable
14963  
14964 \family typewriter
14965
14966 \backslash
14967 telephonenum
14968 \family default
14969 .
14970 \end_layout
14971
14972 \begin_layout Itemize
14973
14974 \family sans
14975 Place
14976 \family default
14977 : place of the letter`s making.
14978 \end_layout
14979
14980 \begin_layout Itemize
14981
14982 \family sans
14983 Date
14984 \family default
14985 : date of the letter`s making.
14986  
14987 \family sans
14988 Place
14989 \family default
14990  and 
14991 \family sans
14992 Date
14993 \family default
14994 , in the standard behavior, produce the place and the date in a right-aligned
14995  line below the addressee's field.
14996  If an empty 
14997 \family sans
14998 Date
14999 \family default
15000  type is used, neither place nor date appear, independent of the value of
15001  the 
15002 \family sans
15003 Place
15004 \family default
15005  type.
15006  If no 
15007 \family sans
15008 Date
15009 \family default
15010  type is used, the date of the letter `s production is used.
15011 \end_layout
15012
15013 \begin_layout Itemize
15014
15015 \family sans
15016 Backaddress
15017 \family default
15018 : sender`s back address, in the standard behavior appears above the addressee's
15019  field in a small sans serif font.
15020 \end_layout
15021
15022 \begin_layout Itemize
15023
15024 \family sans
15025 Specialmail
15026 \family default
15027 : special mail information, in the standard behavior appears underlined
15028  above the addressee's field below the back address.
15029 \end_layout
15030
15031 \begin_layout Itemize
15032
15033 \family sans
15034 Location
15035 \family default
15036 : additional information, in the standard behavior appears on right side
15037  below the addressee`s field.
15038 \end_layout
15039
15040 \begin_layout Itemize
15041
15042 \family sans
15043 Title
15044 \family default
15045 : the letter's title, in the standard behavior appears in a big, bold, sans
15046  serif font above the subject.
15047 \end_layout
15048
15049 \begin_layout Itemize
15050
15051 \family sans
15052 Subject
15053 \family default
15054 : the letter's subject, in the standard behavior appears in a bold font
15055  above the 
15056 \family sans
15057 Opening
15058 \family default
15059  paragraph.
15060 \end_layout
15061
15062 \begin_layout Standard
15063 The types 
15064 \family sans
15065 Yourref
15066 \family default
15067
15068 \family sans
15069 Yourmail
15070 \family default
15071
15072 \family sans
15073 Myref
15074 \family default
15075
15076 \family sans
15077 Customer
15078 \family default
15079 , and 
15080 \family sans
15081 Invoice
15082 \family default
15083  produce a business letter like line above the 
15084 \family sans
15085 Title
15086 \family default
15087  line containing the fields 
15088 \begin_inset Quotes eld
15089 \end_inset
15090
15091 Your ref.
15092 \begin_inset Quotes erd
15093 \end_inset
15094
15095
15096 \begin_inset Quotes eld
15097 \end_inset
15098
15099 Your letter of
15100 \begin_inset Quotes erd
15101 \end_inset
15102
15103
15104 \begin_inset Quotes eld
15105 \end_inset
15106
15107 Our ref.
15108 \begin_inset Quotes erd
15109 \end_inset
15110
15111
15112 \begin_inset Quotes eld
15113 \end_inset
15114
15115 Customer no.
15116 \begin_inset Quotes erd
15117 \end_inset
15118
15119
15120 \begin_inset Quotes eld
15121 \end_inset
15122
15123 Invoice no.
15124 \begin_inset Quotes erd
15125 \end_inset
15126
15127 , and 
15128 \begin_inset Quotes eld
15129 \end_inset
15130
15131 Date
15132 \begin_inset Quotes erd
15133 \end_inset
15134
15135 .
15136  For the date field, the value of the 
15137 \family sans
15138 Date
15139 \family default
15140  type is used.
15141  If one of these 
15142 \begin_inset Quotes eld
15143 \end_inset
15144
15145 business letter types
15146 \begin_inset Quotes erd
15147 \end_inset
15148
15149  is used, the value of the 
15150 \family sans
15151 Place
15152 \family default
15153  type however does not appear, but only the \SpecialChar LaTeX
15154  variable 
15155 \family typewriter
15156
15157 \backslash
15158 fromplace
15159 \family default
15160  is set.
15161  The ordinary output of place and date in a right-aligned line below the
15162  addressee`s field is suppressed.
15163  The types are implemented as input types provided with a label and must
15164  be used ahead of the corresponding 
15165 \family sans
15166 Opening
15167 \family default
15168  type.
15169 \end_layout
15170
15171 \begin_layout Itemize
15172
15173 \family sans
15174 Yourref
15175 \family default
15176 : Your ref.
15177 \end_layout
15178
15179 \begin_layout Itemize
15180
15181 \family sans
15182 Yourmail
15183 \family default
15184 : Your letter of.
15185 \end_layout
15186
15187 \begin_layout Itemize
15188
15189 \family sans
15190 Myref
15191 \family default
15192 : Our ref.
15193 \end_layout
15194
15195 \begin_layout Itemize
15196
15197 \family sans
15198 Customer
15199 \family default
15200 : Customer no.
15201 \end_layout
15202
15203 \begin_layout Itemize
15204
15205 \family sans
15206 Invoice
15207 \family default
15208 : Invoice no.
15209 \end_layout
15210
15211 \begin_layout Subsection
15212 The new letter class: letter (koma-script v.2)
15213 \end_layout
15214
15215 \begin_layout Standard
15216 by 
15217 \noun on
15218 Jürgen Spitzmüller
15219 \end_layout
15220
15221 \begin_layout Standard
15222 \begin_inset VSpace medskip
15223 \end_inset
15224
15225
15226 \end_layout
15227
15228 \begin_layout Standard
15229 \noindent
15230 Koma-Script version 2.8 has introduced a new letter class 
15231 \family typewriter
15232 scrlttr2
15233 \family default
15234  which supersedes the now unsupported 
15235 \family typewriter
15236 scrlettr
15237 \family default
15238 .
15239  It has — on the \SpecialChar LaTeX
15240  side — a completely new interface and is not compatible
15241  with the old class.
15242  Therefore, \SpecialChar LyX
15243  supports both, though it is recommended you use the new class.
15244 \end_layout
15245
15246 \begin_layout Standard
15247 This class covers the same functionality as 
15248 \emph on
15249 letter (koma-script),
15250 \emph default
15251  and a few more.
15252  The basic items are 
15253 \family sans
15254 Address
15255 \family default
15256  (receiver's address, same as 
15257 \family sans
15258 Letter
15259 \family default
15260  in the old layout), 
15261 \family sans
15262 Opening
15263 \family default
15264 , and 
15265 \family sans
15266 Closing
15267 \family default
15268 .
15269  
15270 \family sans
15271 NextAddress
15272 \family default
15273  will start a new letter (i.
15274 \begin_inset space \thinspace{}
15275 \end_inset
15276
15277 e.
15278 \begin_inset space \space{}
15279 \end_inset
15280
15281 you can write several letters per document).
15282  New elements are sender's 
15283 \family sans
15284 E-Mail
15285 \family default
15286
15287 \family sans
15288 URL
15289 \family default
15290
15291 \family sans
15292 Fax
15293 \family default
15294
15295 \family sans
15296 Bank
15297 \family default
15298  and the possibility to use a 
15299 \family sans
15300 Logo
15301 \family default
15302  (via 
15303 \family sans
15304 Insert\SpecialChar menuseparator
15305 Graphics
15306 \family default
15307 ) in the header.
15308 \end_layout
15309
15310 \begin_layout Standard
15311 The biggest improvement is, though, that the letter's layout is configurable
15312  to meet almost any needs.
15313  This can be done via the preamble or with a special style file (Letter
15314  Class Option, extension 
15315 \family typewriter
15316 *.lco
15317 \family default
15318 ), that will be read in as a class option.
15319 \begin_inset Foot
15320 status collapsed
15321
15322 \begin_layout Plain Layout
15323 The KOMA package comes with some default 
15324 \family typewriter
15325 *.lco
15326 \family default
15327  files.
15328  There is, for instance, a 
15329 \family typewriter
15330 DIN.lco
15331 \family default
15332  file that follows german typesetting rules, or a 
15333 \family typewriter
15334 KOMAold.lco
15335 \family default
15336  that provides the default layout of the old 
15337 \family typewriter
15338 scrlettr
15339 \family default
15340  class.
15341  The latter can be loaded with the class option 
15342 \family typewriter
15343 KOMAold
15344 \family default
15345 , inserted via the 
15346 \family sans
15347 \bar under
15348 L
15349 \bar default
15350 ayout\SpecialChar menuseparator
15351
15352 \bar under
15353 D
15354 \bar default
15355 ocument\SpecialChar menuseparator
15356 Extra Options
15357 \family default
15358  field.
15359 \end_layout
15360
15361 \end_inset
15362
15363  Have a look at the 
15364 \emph on
15365 koma-letter2
15366 \emph default
15367  template that is included in \SpecialChar LyX
15368  for examples.
15369  A detailed description is to be found in the Koma-Script documentation
15370  (
15371 \emph on
15372 scrguide
15373 \emph default
15374 ).
15375 \end_layout
15376
15377 \begin_layout Subsection
15378 Problems
15379 \end_layout
15380
15381 \begin_layout Standard
15382 Visualizing the Koma-Script document classes in \SpecialChar LyX
15383 , the \SpecialChar LyX
15384  internals cause some
15385  problems.
15386 \end_layout
15387
15388 \begin_layout Itemize
15389 The chapter number of a 
15390 \family sans
15391 Chapter
15392 \family default
15393  type appears on a line of its own above the chapter heading instead of
15394  appearing in the same line ahead of it.
15395  The cause for that is the \SpecialChar LyX
15396  internal behavior for the labeltype 
15397 \family sans
15398 Counter_Chapter
15399 \family default
15400  in the layout file.
15401 \end_layout
15402
15403 \begin_layout Itemize
15404 The headings of the types 
15405 \family sans
15406 Addchap
15407 \family default
15408  and 
15409 \family sans
15410 Addsec
15411 \family default
15412  are only put in the 
15413 \begin_inset Quotes eld
15414 \end_inset
15415
15416 true
15417 \begin_inset Quotes erd
15418 \end_inset
15419
15420  \SpecialChar LaTeX
15421  table of contents, but not in the \SpecialChar LyX
15422  table of contents (
15423 \family sans
15424 Document\SpecialChar menuseparator
15425 Table
15426 \begin_inset space ~
15427 \end_inset
15428
15429 of
15430 \begin_inset space ~
15431 \end_inset
15432
15433 Contents
15434 \family default
15435 ).
15436 \end_layout
15437
15438 \begin_layout Itemize
15439 The paragraphs in a 
15440 \emph on
15441 letter
15442 \emph default
15443  document class appear in a skip separation mode, not indented.
15444  This is the standard behavior, no special \SpecialChar LaTeX
15445  commands are needed for that.
15446  But in the 
15447 \family sans
15448 Document\SpecialChar menuseparator
15449 Settings
15450 \family default
15451  dialog the corresponding radio button indicates 
15452 \family sans
15453 Indent
15454 \family default
15455 .
15456  A 
15457 \family sans
15458 Skip
15459 \family default
15460  value always has the effect that extra \SpecialChar LaTeX
15461  commands are inserted in the document
15462  to produce the gap, which is not what is wanted in this case.
15463 \end_layout
15464
15465 \begin_layout Section
15466 Memoir
15467 \end_layout
15468
15469 \begin_layout Standard
15470 By 
15471 \noun on
15472 Jürgen Spitzmüller
15473 \end_layout
15474
15475 \begin_layout Subsection
15476 Overview
15477 \end_layout
15478
15479 \begin_layout Standard
15480 Memoir is a very powerful and constantly evolving class.
15481  It has been designed with regard to fictional and non-fictional literature.
15482  Its aim is to let the user have maximum control over the typesetting of
15483  his document.
15484  Memoir is based on the standard book class, but it can also emulate the
15485  article class (see below).
15486 \end_layout
15487
15488 \begin_layout Standard
15489 Peter Wilson, the developer of Memoir, is known as the author of lots of
15490  useful packages in the \SpecialChar LaTeX
15491  world.
15492  Most of them have been merged with Memoir.
15493  Therefore, it is much easier to layout the table of contents, appendices,
15494  chapter designs and such.
15495  \SpecialChar LyX
15496 , though, does not support all of these goodies natively.
15497  Some of them might be added to forthcoming releases
15498 \begin_inset Foot
15499 status collapsed
15500
15501 \begin_layout Plain Layout
15502 You are invited to send suggestions to 
15503 \begin_inset Flex URL
15504 status collapsed
15505
15506 \begin_layout Plain Layout
15507
15508 lyx-devel@lists.lyx.org
15509 \end_layout
15510
15511 \end_inset
15512
15513 .
15514 \end_layout
15515
15516 \end_inset
15517
15518 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15519 's framework.
15520  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15521
15522  commands (\SpecialChar TeX
15523  code
15524 \begin_inset Foot
15525 status collapsed
15526
15527 \begin_layout Plain Layout
15528 Cf.
15529 \begin_inset ERT
15530 status collapsed
15531
15532 \begin_layout Plain Layout
15533
15534
15535 \backslash
15536  
15537 \end_layout
15538
15539 \end_inset
15540
15541 section
15542 \begin_inset space ~
15543 \end_inset
15544
15545
15546 \begin_inset CommandInset ref
15547 LatexCommand ref
15548 reference "sec:Inserting-TeX-Code"
15549
15550 \end_inset
15551
15552  for details.
15553 \end_layout
15554
15555 \end_inset
15556
15557 ).
15558  In this section, we can only list those features that are natively supported
15559  by \SpecialChar LyX
15560 .
15561  For detailed descriptions (and for the rest of features) we recommend you
15562  have a look at the detailed manual of the Memoir class
15563 \begin_inset Foot
15564 status collapsed
15565
15566 \begin_layout Plain Layout
15567 Cf.
15568 \begin_inset ERT
15569 status collapsed
15570
15571 \begin_layout Plain Layout
15572
15573
15574 \backslash
15575  
15576 \end_layout
15577
15578 \end_inset
15579
15580
15581 \begin_inset Flex URL
15582 status collapsed
15583
15584 \begin_layout Plain Layout
15585
15586 CTAN:/macros/latex/memoir/memman.pdf
15587 \end_layout
15588
15589 \end_inset
15590
15591 .
15592 \end_layout
15593
15594 \end_inset
15595
15596 , which is not only a user guide for the class, but also both a comprehensive
15597  description on good typesetting and a superb example for good typesetting
15598  itself.
15599 \end_layout
15600
15601 \begin_layout Subsection
15602 Basic features and restrictions
15603 \end_layout
15604
15605 \begin_layout Standard
15606 Memoir supports basically all features of the standard book classes.
15607  There are, however, some differences, as follows:
15608 \end_layout
15609
15610 \begin_layout Description
15611 Font
15612 \begin_inset space ~
15613 \end_inset
15614
15615 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15616 \end_layout
15617
15618 \begin_layout Description
15619 Page
15620 \begin_inset space ~
15621 \end_inset
15622
15623 style: The fancy page style is not supported, due to a command clash between
15624  Memoir and the fancyhdr package (they both define a command with the same
15625  name, which confuses \SpecialChar LaTeX
15626 ).
15627  Instead, Memoir comes with a number of its own page styles (see 
15628 \family sans
15629 Layout\SpecialChar menuseparator
15630 Document\SpecialChar menuseparator
15631 Page
15632 \begin_inset space ~
15633 \end_inset
15634
15635 Style
15636 \family default
15637 ).
15638  If you want to use these for the chapter pages, you have to use the command
15639  
15640 \family typewriter
15641
15642 \backslash
15643 chapterstyle
15644 \family default
15645  in the main text or in preamble (e.
15646 \begin_inset space \thinspace{}
15647 \end_inset
15648
15649 g.
15650 \begin_inset space \space{}
15651 \end_inset
15652
15653
15654 \family typewriter
15655
15656 \backslash
15657 chapterstyle{companion}
15658 \family default
15659 ).
15660 \end_layout
15661
15662 \begin_layout Description
15663 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15664  optional argument in the standard classes.
15665  With this, you can specify an alternative version of the title for the
15666  table of contents and the headers (for instance, if the title is too long).
15667  In \SpecialChar LyX
15668 , you can do this via 
15669 \family sans
15670 Insert\SpecialChar menuseparator
15671 Short
15672 \begin_inset space ~
15673 \end_inset
15674
15675 Title
15676 \family default
15677  at the beginning of a chapter/section.
15678  Memoir features a second optional argument and thus separates the table
15679  of contents from the header.
15680  You can define three variants of a title with this: one for the main text,
15681  one for the table of contents, and one for the headers.
15682  Simply insert two optional arguments if you need this feature, the first
15683  one containing the short title for the Table of Contents, the second one
15684  containing an alternative short title for the headers.
15685 \end_layout
15686
15687 \begin_layout Description
15688 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15689  of contents, the list of figures and the list of table start a new page
15690  automatically.
15691  Memoir does not follow this route.
15692  You have to insert a page break yourself, if you want to have one.
15693 \end_layout
15694
15695 \begin_layout Description
15696 Titlepage: For some unknown reason, Memoir uses pagination on the title
15697  page (in the standard classes, title pages are 
15698 \begin_inset Quotes eld
15699 \end_inset
15700
15701 empty
15702 \begin_inset Quotes erd
15703 \end_inset
15704
15705 ).
15706  If you want an empty title page, type 
15707 \family typewriter
15708
15709 \backslash
15710 aliaspagestyle{title}{empty}
15711 \family default
15712  in the preamble.
15713 \end_layout
15714
15715 \begin_layout Description
15716 Article: With the class option 
15717 \emph on
15718 article
15719 \emph default
15720  (to be inserted in 
15721 \family sans
15722 Layout\SpecialChar menuseparator
15723 Document\SpecialChar menuseparator
15724 Extra
15725 \begin_inset space ~
15726 \end_inset
15727
15728 Options
15729 \family default
15730 ), you can emulate article style.
15731  That is, counters (footnotes, figures, tables etc.) will not be reset on
15732  new chapters, chapters don't start a new page (but are—in contrary to 
15733 \begin_inset Quotes eld
15734 \end_inset
15735
15736 real
15737 \begin_inset Quotes erd
15738 \end_inset
15739
15740  article classes—still allowed), parts, though, use their own page, as in
15741  book.
15742 \end_layout
15743
15744 \begin_layout Description
15745 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15746  font commands, which have been used in the old \SpecialChar LaTeX
15747  version 2.09 (e.
15748 \begin_inset space \thinspace{}
15749 \end_inset
15750
15751 g.
15752 \begin_inset space \space{}
15753 \end_inset
15754
15755
15756 \family typewriter
15757
15758 \backslash
15759 rm
15760 \family default
15761
15762 \family typewriter
15763
15764 \backslash
15765 it
15766 \family default
15767 ).
15768  It produces an error and stops \SpecialChar LaTeX
15769  whenever such a command appears.
15770  The class option 
15771 \emph on
15772 oldfontcommands
15773 \emph default
15774  reallows the commands and spits out warnings instead (which does at least
15775  not stop \SpecialChar LaTeX
15776 ).
15777  Since a lot of packages and particularly Bib\SpecialChar TeX
15778  style files are still using
15779  those commands, we have decided to use this option by default.
15780 \end_layout
15781
15782 \begin_layout Subsection
15783 Extra features
15784 \end_layout
15785
15786 \begin_layout Standard
15787 We will only describe the features supported by \SpecialChar LyX
15788  (which is not much currently).
15789  Please consult the Memoir manual
15790 \begin_inset Foot
15791 status collapsed
15792
15793 \begin_layout Plain Layout
15794 Cf.
15795 \begin_inset ERT
15796 status collapsed
15797
15798 \begin_layout Plain Layout
15799
15800
15801 \backslash
15802  
15803 \end_layout
15804
15805 \end_inset
15806
15807
15808 \begin_inset Flex URL
15809 status collapsed
15810
15811 \begin_layout Plain Layout
15812
15813 CTAN:/macros/latex/memoir/memman.pdf
15814 \end_layout
15815
15816 \end_inset
15817
15818 .
15819 \end_layout
15820
15821 \end_inset
15822
15823  for details.
15824 \end_layout
15825
15826 \begin_layout Description
15827 Abstract: You may wonder why an abstract is an extra feature.
15828  Well, it is in book class.
15829  Usually books don't have abstracts.
15830  Memoir, however, has.
15831  You can use it wherever and how often you like.
15832 \end_layout
15833
15834 \begin_layout Description
15835 Chapterprecis: You may know this older typesetting style: The contents of
15836  a chapter are summarized below the title and also in the table of contents
15837  (e.
15838 \begin_inset space \thinspace{}
15839 \end_inset
15840
15841 g.
15842 \begin_inset space \space{}
15843 \end_inset
15844
15845
15846 \emph on
15847 Our hero arrives in Troia; he loses some friends; he finds others
15848 \emph default
15849 ).
15850  Chapterprecis does exactly this.
15851  It is therefore only sensible below a chapter.
15852 \end_layout
15853
15854 \begin_layout Description
15855 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15856  The epigraph environment provides an elegant way of typesetting such a
15857  motto.
15858  The motto itself (text) and its author (source) are divided by a short
15859  line.
15860  Unfortunately, we have to fool \SpecialChar LyX
15861  a bit here again, since the environment
15862  needs two arguments (text and source).
15863  In this case, we have to use curly brackets (in \SpecialChar TeX
15864  mode) between the two
15865  arguments: 
15866 \emph on
15867 <smart slogan>
15868 \emph default
15869  
15870 \family typewriter
15871 }{
15872 \family default
15873  
15874 \emph on
15875 <author of the slogan>.
15876 \end_layout
15877
15878 \begin_layout Description
15879 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15880  complex figurative poems).
15881  \SpecialChar LyX
15882  can only support a few of them.
15883  One is poemtitle, which is a centered title for poems, which will also
15884  be added to the table of contents (verse is the standard environment for
15885  poems.
15886  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15887  code,
15888  because they have to be nested inside regular verse environments, which
15889  is not possible with \SpecialChar LyX
15890 ).
15891 \end_layout
15892
15893 \begin_layout Description
15894 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15895 \end_layout
15896
15897 \begin_layout Section
15898 Article (mwart), book (mwbk) and report (mwrep)
15899 \begin_inset Argument status
15900 status collapsed
15901
15902 \begin_layout Plain Layout
15903 The 
15904 \family typewriter
15905 mw
15906 \family default
15907  Classes
15908 \end_layout
15909
15910 \end_inset
15911
15912
15913 \end_layout
15914
15915 \begin_layout Standard
15916 by 
15917 \noun on
15918 Tomasz Luczak
15919 \end_layout
15920
15921 \begin_layout Standard
15922 The \SpecialChar LyX
15923  document classes 
15924 \emph on
15925 article (mwart)
15926 \emph default
15927
15928 \emph on
15929 report (mwrep)
15930 \emph default
15931  and 
15932 \emph on
15933 book
15934 \emph default
15935  
15936 \emph on
15937 (mwbk)
15938 \emph default
15939  correspond to the \SpecialChar LaTeX
15940  document classes 
15941 \family typewriter
15942 mwart.cls
15943 \family default
15944
15945 \family typewriter
15946 mwrep.cls
15947 \family default
15948  and 
15949 \family typewriter
15950 mwbk.cls
15951 \family default
15952 , resp.
15953  They are replacements for the standard document classes 
15954 \family typewriter
15955 article.cls
15956 \family default
15957
15958 \family typewriter
15959 report.cls
15960 \family default
15961  and 
15962 \family typewriter
15963 book.cls
15964 \family default
15965 , resp., and fit better to Polish typography conventions in a number of points.
15966  
15967 \end_layout
15968
15969 \begin_layout Standard
15970 Basic differences:
15971 \end_layout
15972
15973 \begin_layout Itemize
15974 Unnumbered titles (with star, e.
15975 \begin_inset space \thinspace{}
15976 \end_inset
15977
15978 g.
15979 \begin_inset space \space{}
15980 \end_inset
15981
15982
15983 \family sans
15984 Section*
15985 \family default
15986 ) are added into table of contents,
15987 \end_layout
15988
15989 \begin_layout Itemize
15990 Additional page styles:
15991 \begin_inset Separator parbreak
15992 \end_inset
15993
15994
15995 \end_layout
15996
15997 \begin_deeper
15998 \begin_layout Description
15999 uheadings header with separated lines,
16000 \end_layout
16001
16002 \begin_layout Description
16003 myheadings custom header, contents headers via commands: 
16004 \family typewriter
16005
16006 \backslash
16007 markright
16008 \family default
16009  and 
16010 \family typewriter
16011
16012 \backslash
16013 markboth
16014 \family default
16015 ,
16016 \end_layout
16017
16018 \begin_layout Description
16019 myuheadings custom header with separated lines,
16020 \end_layout
16021
16022 \begin_layout Description
16023 outer page number is placed on outer side of page
16024 \end_layout
16025
16026 \end_deeper
16027 \begin_layout Itemize
16028 Options 
16029 \begin_inset Separator parbreak
16030 \end_inset
16031
16032
16033 \end_layout
16034
16035 \begin_deeper
16036 \begin_layout Description
16037 rmheadings serif titles — default,
16038 \end_layout
16039
16040 \begin_layout Description
16041 sfheadings sansserif titles,
16042 \end_layout
16043
16044 \begin_layout Description
16045 authortitle on title page first placed is author next title — default,
16046 \end_layout
16047
16048 \begin_layout Description
16049 titleauthor on title page first placed is title next author,
16050 \end_layout
16051
16052 \begin_layout Description
16053 withmarginpar reserve place on page for margins.
16054 \end_layout
16055
16056 \end_deeper
16057 \begin_layout Section
16058 Paper
16059 \end_layout
16060
16061 \begin_layout Standard
16062 The document class 
16063 \family sans
16064 paper
16065 \family default
16066  provides an alternative to the standard 
16067 \family sans
16068 article
16069 \family default
16070  class.
16071  It provides similar functionality, but you might prefer this layout with
16072  sans serif sections, headings, and more.
16073 \end_layout
16074
16075 \begin_layout Section
16076 Rev\SpecialChar TeX
16077 4
16078 \end_layout
16079
16080 \begin_layout Standard
16081 by 
16082 \noun on
16083 Amir Karger
16084 \end_layout
16085
16086 \begin_layout Standard
16087 \begin_inset VSpace bigskip
16088 \end_inset
16089
16090
16091 \end_layout
16092
16093 \begin_layout Standard
16094 \noindent
16095 The 
16096 \family sans
16097 Revtex
16098 \begin_inset space ~
16099 \end_inset
16100
16101 4
16102 \family default
16103  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16104  4.0 (the 
16105 \begin_inset Formula $\beta$
16106 \end_inset
16107
16108  release of May, 1999) class.
16109 \end_layout
16110
16111 \begin_layout Standard
16112 \SpecialChar LyX
16113  has a 
16114 \family sans
16115 Revtex
16116 \family default
16117  textclass, which works with Rev\SpecialChar TeX
16118  3.1.
16119  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16120  2.09.
16121  That means that it doesn't interact very well with \SpecialChar LyX
16122 , which requires \SpecialChar LaTeX2e
16123 , although
16124  it has been kludged to work.
16125  Since Rev\SpecialChar TeX
16126  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16127 , \SpecialChar LyX
16128  with the
16129  
16130 \family sans
16131 Rev\SpecialChar TeX
16132
16133 \begin_inset space ~
16134 \end_inset
16135
16136 4
16137 \family default
16138  textclass should also be pretty easy to use.
16139 \end_layout
16140
16141 \begin_layout Standard
16142 These documents are supposed to be used in 
16143 \emph on
16144 addition
16145 \emph default
16146  to the Rev\SpecialChar TeX
16147  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16148  macros,
16149  and assume you'll know what to put in the preamble if necessary.
16150 \end_layout
16151
16152 \begin_layout Subsection
16153 Installation
16154 \end_layout
16155
16156 \begin_layout Standard
16157 All you need to do is install Rev\SpecialChar TeX
16158  4, as described in the package's README
16159  file.
16160  The package can be found at The Rev\SpecialChar TeX
16161  4 Web Site 
16162 \begin_inset Flex URL
16163 status collapsed
16164
16165 \begin_layout Plain Layout
16166
16167 http://publish.aps.org/revtex4/
16168 \end_layout
16169
16170 \end_inset
16171
16172 .
16173  Install it somewhere that \SpecialChar LaTeX
16174  can see it.
16175  Test it by trying to \SpecialChar LaTeX
16176  a short Rev\SpecialChar TeX
16177  4 document in some random directory (i.
16178 \begin_inset space \thinspace{}
16179 \end_inset
16180
16181 e.
16182 \begin_inset space \space{}
16183 \end_inset
16184
16185 not the directory where you installed the class file.) Then, if you reconfigure
16186  \SpecialChar LyX
16187 , it will find the class file and let you use the Rev\SpecialChar TeX
16188 4 textclass.
16189 \end_layout
16190
16191 \begin_layout Standard
16192 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16193  4 document
16194  using 
16195 \family typewriter
16196 tex2lyx
16197 \family default
16198 , or to use the 
16199 \family sans
16200 Revtex
16201 \begin_inset space ~
16202 \end_inset
16203
16204 4
16205 \family default
16206  template, found in the templates directory.
16207 \end_layout
16208
16209 \begin_layout Subsection
16210 Preamble Matter
16211 \end_layout
16212
16213 \begin_layout Standard
16214 Optional arguments to 
16215 \family typewriter
16216
16217 \backslash
16218 documentclass
16219 \family default
16220 , like 
16221 \begin_inset Quotes eld
16222 \end_inset
16223
16224 preprint
16225 \begin_inset Quotes erd
16226 \end_inset
16227
16228  and 
16229 \begin_inset Quotes eld
16230 \end_inset
16231
16232 aps
16233 \begin_inset Quotes erd
16234 \end_inset
16235
16236 , go in the 
16237 \family sans
16238 E
16239 \bar under
16240 x
16241 \bar default
16242 tra
16243 \begin_inset space ~
16244 \end_inset
16245
16246 Options
16247 \family default
16248  field in the 
16249 \family sans
16250 Document
16251 \begin_inset space ~
16252 \end_inset
16253
16254 Layout
16255 \family default
16256  dialog, as usual.
16257  Remember that in Rev\SpecialChar TeX
16258 , at least one optional argument is required! 
16259 \end_layout
16260
16261 \begin_layout Standard
16262 Other preamble matter, like 
16263 \family typewriter
16264
16265 \backslash
16266 draft
16267 \family default
16268  etc.
16269 \begin_inset space ~
16270 \end_inset
16271
16272 goes in the 
16273 \family sans
16274 \SpecialChar LaTeX
16275
16276 \begin_inset space ~
16277 \end_inset
16278
16279 Preamble
16280 \family default
16281  dialog, also as usual.
16282 \end_layout
16283
16284 \begin_layout Subsection
16285 Layouts
16286 \end_layout
16287
16288 \begin_layout Standard
16289 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16290 4.0.
16291  For example, the Email layout corresponds to 
16292 \family typewriter
16293
16294 \backslash
16295 email{}
16296 \family default
16297 .
16298  Note that (at least as of Rev\SpecialChar TeX
16299  4.0 Beta), the 
16300 \family sans
16301 Address
16302 \family default
16303  and 
16304 \family sans
16305 Affiliation
16306 \family default
16307  layouts are exactly equivalent, so you shouldn't need to use both.
16308 \begin_inset Foot
16309 status collapsed
16310
16311 \begin_layout Plain Layout
16312 In case you're curious, both were included so that 
16313 \family typewriter
16314 tex2lyx
16315 \family default
16316  would be able to translate both 
16317 \family typewriter
16318
16319 \backslash
16320 address
16321 \family default
16322  and 
16323 \family typewriter
16324
16325 \backslash
16326 affiliation
16327 \family default
16328 .
16329 \end_layout
16330
16331 \end_inset
16332
16333
16334 \end_layout
16335
16336 \begin_layout Subsection
16337 Important Notes
16338 \end_layout
16339
16340 \begin_layout Standard
16341 There are a couple of important unique aspects of Rev\SpecialChar TeX
16342  4 which might cause
16343  bugs that will be even more confusing in \SpecialChar LyX
16344 .
16345 \end_layout
16346
16347 \begin_layout Standard
16348 In Rev\SpecialChar TeX
16349 , the 
16350 \family typewriter
16351
16352 \backslash
16353 thanks
16354 \family default
16355  command goes 
16356 \emph on
16357 outside
16358 \emph default
16359  the 
16360 \family typewriter
16361
16362 \backslash
16363 author
16364 \family default
16365  command.
16366  The \SpecialChar LyX
16367  equivalent is that there is a separate Thanks layout.
16368  Do 
16369 \emph on
16370 not
16371 \emph default
16372  write footnotes in the 
16373 \family sans
16374 Author
16375 \family default
16376  layout, or weird things may happen.
16377  See the Rev\SpecialChar TeX
16378  4 documentation for more details.
16379 \end_layout
16380
16381 \begin_layout Standard
16382 Also, the 
16383 \family sans
16384 Author
16385 \begin_inset space ~
16386 \end_inset
16387
16388 Email
16389 \family default
16390
16391 \family sans
16392 Author
16393 \begin_inset space ~
16394 \end_inset
16395
16396 URL
16397 \family default
16398 , and 
16399 \family sans
16400 Thanks
16401 \family default
16402  layouts must be placed 
16403 \emph on
16404 in between
16405 \emph default
16406  the 
16407 \family sans
16408 Author
16409 \family default
16410  layout and the corresponding 
16411 \family sans
16412 Address
16413 \family default
16414  (or equivalent 
16415 \family sans
16416 Affiliation
16417 \family default
16418 ) layout.
16419  If you put the 
16420 \family sans
16421 Thanks
16422 \family default
16423  after the 
16424 \family sans
16425 Address
16426 \family default
16427 , the \SpecialChar LaTeX
16428  won't compile.
16429 \end_layout
16430
16431 \begin_layout Subsection
16432 Drawbacks
16433 \end_layout
16434
16435 \begin_layout Standard
16436 The main problem with this layout is that you can't use the optional arguments
16437  to layouts like Email and Title.
16438  (The problem is not unique to this layout; you can't use optional arguments
16439  to the Section layouts either.) This means that after you export that file
16440  to \SpecialChar LaTeX
16441  (which you'll need to do eventually to send it in to APS), you'll need
16442  to edit the \SpecialChar LaTeX
16443  file with a text editor to add the optional arguments to set,
16444  e.
16445 \begin_inset space \thinspace{}
16446 \end_inset
16447
16448 g.
16449 \begin_inset space \space{}
16450 \end_inset
16451
16452 the running title for the page headers.
16453  Lacking these layouts makes the 
16454 \family typewriter
16455
16456 \backslash
16457 altaffiliation
16458 \family default
16459  (and the equivalent 
16460 \family typewriter
16461
16462 \backslash
16463 altaddress
16464 \family default
16465 ) useless, so the corresponding layouts don't exist, and will have to be
16466  added by hand.
16467 \begin_inset Foot
16468 status collapsed
16469
16470 \begin_layout Plain Layout
16471
16472 \emph on
16473 Note from JMarc:
16474 \emph default
16475  actually, \SpecialChar LyX
16476  1.3.0 supports some forms of optional arguments, but this layout
16477  has not been updated yet to take advantage of it.
16478 \end_layout
16479
16480 \end_inset
16481
16482  
16483 \end_layout
16484
16485 \begin_layout Section
16486 Springer Journals (
16487 \family sans
16488 svjour
16489 \family default
16490 )
16491 \end_layout
16492
16493 \begin_layout Standard
16494 by 
16495 \noun on
16496 Martin Vermeer
16497 \end_layout
16498
16499 \begin_layout Subsection
16500 Description
16501 \end_layout
16502
16503 \begin_layout Standard
16504 These are the layout files for some of the journal formats used by Springer
16505  Verlag and listed on 
16506 \begin_inset Flex URL
16507 status collapsed
16508
16509 \begin_layout Plain Layout
16510
16511 http://www.springer.de/author/tex/help-journals.html
16512 \end_layout
16513
16514 \end_inset
16515
16516 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16517  now!).
16518  It is a modular system: the things common to all journals are implemented
16519  in 
16520 \family typewriter
16521 svjour.inc
16522 \family default
16523 , which journal-specific layout files (such as, e.
16524 \begin_inset space \thinspace{}
16525 \end_inset
16526
16527 g.
16528 \begin_inset space \space{}
16529 \end_inset
16530
16531
16532 \family typewriter
16533 svjog.layout
16534 \family default
16535  for Journal of Geodesy) can include.
16536 \end_layout
16537
16538 \begin_layout Standard
16539 This means that implementing support for any other Springer journal on this
16540  list is as simple as writing your own 
16541 \family typewriter
16542 sv
16543 \family default
16544 <myjournal>
16545 \family typewriter
16546 .layout
16547 \family default
16548  file following the outline given in 
16549 \family typewriter
16550 svjog.layout
16551 \family default
16552 .
16553  
16554 \end_layout
16555
16556 \begin_layout Standard
16557 It is reasonably well tested only for the Journal of Geodesy.
16558  
16559 \family typewriter
16560 svjour
16561 \family default
16562  and 
16563 \family typewriter
16564 svjog
16565 \family default
16566  come with the standard \SpecialChar LyX
16567  distribution.
16568  Install the relevant class file (downloaded from Springer) in a proper
16569  directory, reconfigure \SpecialChar LaTeX
16570  (in the te\SpecialChar TeX
16571  case by running 
16572 \family typewriter
16573 texhash
16574 \family default
16575 , as root if necessary — doesn't \SpecialChar LyX
16576  take care of this?), reconfigure \SpecialChar LyX
16577  and
16578  it should work.
16579 \end_layout
16580
16581 \begin_layout Subsection
16582 New styles
16583 \end_layout
16584
16585 \begin_layout Standard
16586 A large number of theorem-like styles — 
16587 \family sans
16588 Claim, Conjecture,
16589 \family default
16590  
16591 \family sans
16592 \SpecialChar ldots
16593 Theorem
16594 \family default
16595 .
16596 \end_layout
16597
16598 \begin_layout Standard
16599
16600 \family sans
16601 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16602 _Title, Author_Running, Institute,
16603  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16604 \family default
16605 .
16606  See the Springer class file documentation for details.
16607 \end_layout
16608
16609 \begin_layout Subsection
16610 Supported journals
16611 \end_layout
16612
16613 \begin_layout Itemize
16614
16615 \emph on
16616 Journal of Geodesy
16617 \emph default
16618
16619 \family typewriter
16620 svjog.layout
16621 \family default
16622  — Martin Vermeer
16623 \end_layout
16624
16625 \begin_layout Itemize
16626
16627 \emph on
16628 Probability Theory and Related Fields
16629 \emph default
16630
16631 \family typewriter
16632 svprobth.layout
16633 \family default
16634  — Jean-Marc Lasgouttes
16635 \end_layout
16636
16637 \begin_layout Standard
16638 Add your own, it isn't so hard!
16639 \end_layout
16640
16641 \begin_layout Subsection
16642 Credits
16643 \end_layout
16644
16645 \begin_layout Standard
16646 These files are partly based on the older 
16647 \family typewriter
16648 ejour2.layout
16649 \family default
16650 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16651  2.09 style
16652  file from Springer.
16653  All this, and the 
16654 \family typewriter
16655 ejour2
16656 \family default
16657  layout, are now defunct.
16658  Jean-Marc Lasgouttes helped out big in making me find my way around the
16659  \SpecialChar LyX
16660  layout file mechanism.
16661 \end_layout
16662
16663 \begin_layout Subsection
16664 Bugs
16665 \end_layout
16666
16667 \begin_layout Standard
16668 Probably.
16669  But probably less than in the old hacked-\SpecialChar LaTeX
16670  
16671 \family typewriter
16672 ejour2
16673 \family default
16674 .
16675 \end_layout
16676
16677 \begin_layout Standard
16678 Limitations e.
16679 \begin_inset space \thinspace{}
16680 \end_inset
16681
16682 g.: does not display the number for theorem-like layouts, just #.
16683 \end_layout
16684
16685 \begin_layout Section
16686 Slides [aka 
16687 \noun on
16688 Sli\SpecialChar TeX
16689
16690 \noun default
16691 ]
16692 \begin_inset CommandInset label
16693 LatexCommand label
16694 name "sec:slitex"
16695
16696 \end_inset
16697
16698
16699 \end_layout
16700
16701 \begin_layout Standard
16702 by 
16703 \noun on
16704 John Weiss
16705 \noun default
16706  
16707 \end_layout
16708
16709 \begin_layout Subsection
16710 Introduction
16711 \end_layout
16712
16713 \begin_layout Standard
16714 This section describes how to use \SpecialChar LyX
16715  to make slides for overhead projectors.
16716  There are two document classes that can do this: the default slides class
16717  and the 
16718 \family sans
16719 Foil\SpecialChar TeX
16720
16721 \family default
16722  slides class.
16723  This section documents the former.
16724 \end_layout
16725
16726 \begin_layout Standard
16727 I'm going to say this again, nice and clear, so that there's no misunderstanding
16728 :
16729 \end_layout
16730
16731 \begin_layout Standard
16732 \begin_inset VSpace bigskip
16733 \end_inset
16734
16735
16736 \end_layout
16737
16738 \begin_layout Standard
16739 \align center
16740
16741 \size large
16742 This section documents the class 
16743 \begin_inset Quotes eld
16744 \end_inset
16745
16746
16747 \family sans
16748 slides (default)
16749 \family default
16750
16751 \begin_inset Quotes erd
16752 \end_inset
16753
16754  
16755 \emph on
16756 only.
16757 \end_layout
16758
16759 \begin_layout Standard
16760 \begin_inset VSpace bigskip
16761 \end_inset
16762
16763
16764 \end_layout
16765
16766 \begin_layout Standard
16767 If you're looking for the documentation for 
16768 \begin_inset Quotes eld
16769 \end_inset
16770
16771
16772 \family sans
16773 slides (Foil\SpecialChar TeX
16774 )
16775 \family default
16776
16777 \begin_inset Quotes erd
16778 \end_inset
16779
16780 , check out section
16781 \begin_inset space ~
16782 \end_inset
16783
16784
16785 \begin_inset CommandInset ref
16786 LatexCommand ref
16787 reference "sec:foiltex"
16788
16789 \end_inset
16790
16791 .
16792  The 
16793 \family sans
16794 foils
16795 \family default
16796  class [
16797 \begin_inset Quotes eld
16798 \end_inset
16799
16800
16801 \family sans
16802 slides (Foil\SpecialChar TeX
16803 )
16804 \family default
16805
16806 \begin_inset Quotes erd
16807 \end_inset
16808
16809 ] is actually somewhat better than the default 
16810 \family sans
16811 slides
16812 \family default
16813  class,
16814 \begin_inset Foot
16815 status collapsed
16816
16817 \begin_layout Plain Layout
16818 \SpecialChar ldots
16819 or so I've been told repeatedly by its advocates.
16820  Having never used it, I have no idea if this claim is true or not.
16821 \end_layout
16822
16823 \end_inset
16824
16825  which this section documents.
16826 \end_layout
16827
16828 \begin_layout Standard
16829 This class is the \SpecialChar LaTeX2e
16830  improvement of the old 
16831 \noun on
16832 Sli\SpecialChar TeX
16833
16834 \noun default
16835  package.
16836  Every \SpecialChar LaTeX2e
16837  distribution includes this class [which I'll just refer to as 
16838 \begin_inset Quotes eld
16839 \end_inset
16840
16841
16842 \family sans
16843 slides
16844 \family default
16845
16846 \begin_inset Quotes erd
16847 \end_inset
16848
16849  from now on], so you're bound to have it.
16850  As I noted earlier, there are other classes, such as 
16851 \family sans
16852 foils
16853 \family default
16854 , which also produce slides for overhead projectors and do a better job
16855  at it.
16856  However, there are some things which 
16857 \family sans
16858 slides
16859 \family default
16860  can do which the others can't, such as generate overlays.
16861  Read on to learn more!
16862 \end_layout
16863
16864 \begin_layout Subsection
16865 Getting Started
16866 \begin_inset CommandInset label
16867 LatexCommand label
16868 name "sec:slidesetup"
16869
16870 \end_inset
16871
16872
16873 \end_layout
16874
16875 \begin_layout Standard
16876 Obviously, to use this document class, you need to select 
16877 \begin_inset Quotes eld
16878 \end_inset
16879
16880
16881 \family sans
16882 slides (default)
16883 \family default
16884
16885 \begin_inset Quotes erd
16886 \end_inset
16887
16888  from the class list in the 
16889 \family sans
16890 Document\SpecialChar menuseparator
16891 Settings
16892 \family default
16893  dialog.
16894  There are some other special things you should know about this class:
16895 \end_layout
16896
16897 \begin_layout Itemize
16898 Don't bother changing the options 
16899 \family sans
16900 Sides and Columns
16901 \family default
16902 .
16903  They're not supported by the 
16904 \family sans
16905 slides
16906 \family default
16907  class, anyways.
16908 \end_layout
16909
16910 \begin_layout Itemize
16911 The option 
16912 \family sans
16913 Page
16914 \begin_inset space ~
16915 \end_inset
16916
16917 style
16918 \family default
16919  behaves a bit differently for this class.
16920  The possible choices and what they do are as follows:
16921 \begin_inset Separator parbreak
16922 \end_inset
16923
16924
16925 \end_layout
16926
16927 \begin_deeper
16928 \begin_layout Description
16929
16930 \family sans
16931 plain
16932 \family default
16933  The final output contains page numbers in the lower right corner.
16934 \end_layout
16935
16936 \begin_layout Description
16937
16938 \family sans
16939 headings
16940 \family default
16941  Like 
16942 \family sans
16943 plain
16944 \family default
16945 , but also prints out any time markers you've put in.
16946  This is the default.
16947 \end_layout
16948
16949 \begin_layout Description
16950
16951 \family sans
16952 empty
16953 \family default
16954  The final output contains no page numbers, time markers, or alignment markers.
16955 \end_layout
16956
16957 \end_deeper
16958 \begin_layout Itemize
16959 The 
16960 \family sans
16961 slides
16962 \family default
16963  class has an extra option: 
16964 \family typewriter
16965 clock
16966 \family default
16967 .
16968  To use it, put 
16969 \begin_inset Quotes eld
16970 \end_inset
16971
16972
16973 \family typewriter
16974 clock
16975 \family default
16976
16977 \begin_inset Quotes erd
16978 \end_inset
16979
16980  in the extra class options.
16981 \begin_inset Separator parbreak
16982 \end_inset
16983
16984
16985 \end_layout
16986
16987 \begin_deeper
16988 \begin_layout Standard
16989 Using this options allows you to add time markers to 
16990 \family sans
16991 Note
16992 \family default
16993 s.
16994  See section
16995 \begin_inset space ~
16996 \end_inset
16997
16998
16999 \begin_inset CommandInset ref
17000 LatexCommand ref
17001 reference "sec:slideNote"
17002
17003 \end_inset
17004
17005  for more details.
17006 \end_layout
17007
17008 \end_deeper
17009 \begin_layout Standard
17010 You can also use the template file 
17011 \begin_inset Quotes eld
17012 \end_inset
17013
17014
17015 \family typewriter
17016 slides.lyx
17017 \family default
17018
17019 \begin_inset Quotes erd
17020 \end_inset
17021
17022  to automatically set up a document to use the 
17023 \family sans
17024 slides
17025 \family default
17026  class [using 
17027 \family sans
17028 File\SpecialChar menuseparator
17029 New
17030 \begin_inset space ~
17031 \end_inset
17032
17033 from
17034 \begin_inset space ~
17035 \end_inset
17036
17037 Template
17038 \family default
17039  to open your new document].
17040  The template file also contains some examples of the special paragraph
17041  environments used by this class.
17042  I'll describe those next.
17043 \end_layout
17044
17045 \begin_layout Subsection
17046 Paragraph Environments
17047 \end_layout
17048
17049 \begin_layout Subsubsection
17050 Supported Environments
17051 \end_layout
17052
17053 \begin_layout Standard
17054 The first thing you'll notice when you start up a new 
17055 \family sans
17056 slides
17057 \family default
17058  document is the font size and type: it's the equivalent of the size 
17059 \begin_inset Quotes eld
17060 \end_inset
17061
17062
17063 \family sans
17064 Largest
17065 \family default
17066
17067 \begin_inset Quotes erd
17068 \end_inset
17069
17070  in the 
17071 \family sans
17072 Sans
17073 \begin_inset space ~
17074 \end_inset
17075
17076 Serif
17077 \family default
17078  font.
17079  This is also what's used in the output.
17080  Think of this as a 
17081 \begin_inset Quotes eld
17082 \end_inset
17083
17084 visual cue
17085 \begin_inset Quotes erd
17086 \end_inset
17087
17088  to remind you that this is a slide.
17089  Your final slides will use a larger font; ergo, you'll have less space.
17090  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17091 \end_layout
17092
17093 \begin_layout Standard
17094 The next thing that becomes obvious is the changes to the paragraph environment
17095  pull-down box [at the far-left end of the toolbar].
17096  Most of the paragraph environments you're used to seeing are missing.
17097  There are also five new ones.
17098  That's because the 
17099 \family sans
17100 slides
17101 \family default
17102  class itself only supports certain paragraph environments:
17103 \end_layout
17104
17105 \begin_layout Itemize
17106
17107 \family sans
17108 Standard
17109 \end_layout
17110
17111 \begin_layout Itemize
17112
17113 \family sans
17114 Itemize
17115 \end_layout
17116
17117 \begin_layout Itemize
17118
17119 \family sans
17120 Enumerate
17121 \end_layout
17122
17123 \begin_layout Itemize
17124
17125 \family sans
17126 Description
17127 \end_layout
17128
17129 \begin_layout Itemize
17130
17131 \family sans
17132 List
17133 \end_layout
17134
17135 \begin_layout Itemize
17136
17137 \family sans
17138 Quotation
17139 \end_layout
17140
17141 \begin_layout Itemize
17142
17143 \family sans
17144 Quote
17145 \end_layout
17146
17147 \begin_layout Itemize
17148
17149 \family sans
17150 Verse
17151 \end_layout
17152
17153 \begin_layout Itemize
17154
17155 \family sans
17156 Caption
17157 \end_layout
17158
17159 \begin_layout Itemize
17160
17161 \family sans
17162 \SpecialChar LyX
17163 -Code
17164 \end_layout
17165
17166 \begin_layout Itemize
17167
17168 \family sans
17169 Comment
17170 \end_layout
17171
17172 \begin_layout Standard
17173 All of the other standard environments, including the section-heading environmen
17174 ts, aren't used in the 
17175 \family sans
17176 slides
17177 \family default
17178  class.
17179 \end_layout
17180
17181 \begin_layout Standard
17182 On the other hand, you'll notice the following new environments:
17183 \end_layout
17184
17185 \begin_layout Itemize
17186
17187 \family sans
17188 Slide
17189 \end_layout
17190
17191 \begin_layout Itemize
17192
17193 \family sans
17194 Overlay
17195 \end_layout
17196
17197 \begin_layout Itemize
17198
17199 \family sans
17200 Note
17201 \end_layout
17202
17203 \begin_layout Itemize
17204
17205 \family sans
17206 InvisibleText
17207 \end_layout
17208
17209 \begin_layout Itemize
17210
17211 \family sans
17212 VisibleText
17213 \end_layout
17214
17215 \begin_layout Standard
17216 These five are kind of quirky, due to a 
17217 \begin_inset Quotes eld
17218 \end_inset
17219
17220 feature
17221 \begin_inset Quotes erd
17222 \end_inset
17223
17224  in \SpecialChar LyX
17225 .
17226  You see, \SpecialChar LyX
17227  doesn't permit you to nest any other paragraph environment into
17228  an empty environment.
17229  Now, that's fine and dandy, but it means that you wouldn't be able to start
17230  a slide with anything except plain text.
17231  To deal with this, I've performed a little 
17232 \begin_inset Quotes eld
17233 \end_inset
17234
17235 \SpecialChar LaTeX
17236  magic.
17237 \begin_inset Quotes erd
17238 \end_inset
17239
17240  
17241 \end_layout
17242
17243 \begin_layout Subsubsection
17244 Quirks of the New Environments
17245 \begin_inset CommandInset label
17246 LatexCommand label
17247 name "sec:slideQuirk"
17248
17249 \end_inset
17250
17251
17252 \end_layout
17253
17254 \begin_layout Standard
17255 All five of the new paragraph environments are somewhat quirky due to inherent
17256  limitiations in the current version of \SpecialChar LyX
17257 .
17258  As I just mentioned, \SpecialChar LyX
17259  forbids environments that begin with another environment.
17260  To get around this, the 
17261 \family sans
17262 Slide
17263 \family default
17264  environment isn't a paragraph environment as described in the 
17265 \emph on
17266 User's Guide
17267 \emph default
17268 .
17269  
17270 \end_layout
17271
17272 \begin_layout Standard
17273 You should consider 
17274 \family sans
17275 Slide
17276 \family default
17277
17278 \family sans
17279 Overlay
17280 \family default
17281 , and 
17282 \family sans
17283 Note
17284 \family default
17285  to be 
17286 \begin_inset Quotes eld
17287 \end_inset
17288
17289 pseudo-environments.
17290 \begin_inset Quotes erd
17291 \end_inset
17292
17293  They look like a section heading or a 
17294 \begin_inset Quotes eld
17295 \end_inset
17296
17297
17298 \family sans
17299 Caption
17300 \family default
17301 ,
17302 \begin_inset Quotes erd
17303 \end_inset
17304
17305  but really begin a [and, if necessary, end the previous] paragraph environment.
17306  Likewise, treat 
17307 \family sans
17308 InvisibleText
17309 \family default
17310  and 
17311 \family sans
17312 VisibleText
17313 \family default
17314  as 
17315 \begin_inset Quotes eld
17316 \end_inset
17317
17318 pseudo-commands.
17319 \begin_inset Quotes erd
17320 \end_inset
17321
17322  These two perform some action.
17323 \end_layout
17324
17325 \begin_layout Standard
17326 A common feature of all five environments, 
17327 \family sans
17328 Slide
17329 \family default
17330
17331 \family sans
17332 Overlay
17333 \family default
17334
17335 \family sans
17336 Note
17337 \family default
17338
17339 \family sans
17340 InvisibleText
17341 \family default
17342  and 
17343 \family sans
17344 VisibleText
17345 \family default
17346 , is a rather long-ish label.
17347  The text following this label — ordinarily the contents of the paragraph
17348  environment — is utterly irrelevant for 
17349 \family sans
17350 Slide
17351 \family default
17352
17353 \family sans
17354 Overlay
17355 \family default
17356
17357 \family sans
17358 Note
17359 \family default
17360
17361 \family sans
17362 InvisibleText
17363 \family default
17364  and 
17365 \family sans
17366 VisibleText
17367 \family default
17368 .
17369  \SpecialChar LyX
17370  completely ignores it.
17371  In fact, you can leave these five environments completely empty.
17372  
17373 \end_layout
17374
17375 \begin_layout Standard
17376 While you don't 
17377 \emph on
17378 have
17379 \emph default
17380  to put any text after the rather long-ish label, you might want to.
17381  This could be a short description of the contents of the 
17382 \family sans
17383 Slide
17384 \family default
17385 , for example.
17386  In that case, enter your descriptive comment and hit 
17387 \family sans
17388 Return
17389 \family default
17390  as you normally would.
17391 \end_layout
17392
17393 \begin_layout Standard
17394 If, on the other hand, you don't want to enter any descriptive text, you'll
17395  hit another \SpecialChar LyX
17396  quirk.
17397  \SpecialChar LyX
17398 , like nature, abhors a vacuum, and will not let you start a new paragraph
17399  environment until you put something in the old one.
17400  So, do this:
17401 \end_layout
17402
17403 \begin_layout Itemize
17404 Start entering the text that will 
17405 \emph on
17406 follow
17407 \emph default
17408  the new 
17409 \family sans
17410 Slide
17411 \family default
17412
17413 \family sans
17414 Overlay
17415 \family default
17416
17417 \family sans
17418 Note
17419 \family default
17420
17421 \family sans
17422 InvisibleText
17423 \family default
17424  or 
17425 \family sans
17426 VisibleText
17427 \family default
17428 .
17429  
17430 \end_layout
17431
17432 \begin_layout Itemize
17433 Now move to the beginning of that paragraph.
17434  
17435 \end_layout
17436
17437 \begin_layout Itemize
17438 Next, hit 
17439 \family sans
17440 Return
17441 \family default
17442 .
17443  
17444 \end_layout
17445
17446 \begin_layout Itemize
17447 Finally, change this new, empty paragraph to a 
17448 \family sans
17449 Slide
17450 \family default
17451
17452 \family sans
17453 Overlay
17454 \family default
17455
17456 \family sans
17457 Note
17458 \family default
17459
17460 \family sans
17461 InvisibleText
17462 \family default
17463  or 
17464 \family sans
17465 VisibleText
17466 \family default
17467 .
17468  
17469 \end_layout
17470
17471 \begin_layout Standard
17472 Some future version of \SpecialChar LyX
17473  will, hopefully, resolve this quirkiness\SpecialChar ldots
17474
17475 \end_layout
17476
17477 \begin_layout Subsection
17478 Making a Presentation with 
17479 \family sans
17480 Slide
17481 \family default
17482
17483 \family sans
17484 Overlay
17485 \family default
17486  and 
17487 \family sans
17488 Note
17489 \end_layout
17490
17491 \begin_layout Subsubsection
17492 Using the 
17493 \family sans
17494 Slide
17495 \family default
17496  Environment
17497 \end_layout
17498
17499 \begin_layout Standard
17500 If you're expecting this section to teach you how to actually make a presentatio
17501 n, you'll be sorely disappointed.
17502  Naturally, I'll describe all of the ways the 
17503 \family sans
17504 slides
17505 \family default
17506  class can assist you in preparing the materials for a presentation.
17507  Filling in the contents, however, is up to you.
17508  [Then again, that 
17509 \emph on
17510 is
17511 \emph default
17512  the \SpecialChar LyX
17513  philosophy.]
17514 \end_layout
17515
17516 \begin_layout Standard
17517 Choosing the 
17518 \family sans
17519 Slide
17520 \family default
17521  environment [in the manner described in section
17522 \begin_inset space ~
17523 \end_inset
17524
17525
17526 \begin_inset CommandInset ref
17527 LatexCommand ref
17528 reference "sec:slideQuirk"
17529
17530 \end_inset
17531
17532 ] tells \SpecialChar LyX
17533  to begin a new slide [duh].
17534  The label for this environment/
17535 \begin_inset Quotes erd
17536 \end_inset
17537
17538 pseudo-command
17539 \begin_inset Quotes erd
17540 \end_inset
17541
17542  is an 
17543 \begin_inset Quotes eld
17544 \end_inset
17545
17546 ASCII line,
17547 \begin_inset Quotes erd
17548 \end_inset
17549
17550  in cool blue, followed by the label, 
17551 \begin_inset Quotes eld
17552 \end_inset
17553
17554 NewSlide:
17555 \begin_inset Quotes erd
17556 \end_inset
17557
17558 .
17559  Any text or paragraph environments that follow this one go on the new slide.
17560  It's that simple.
17561 \end_layout
17562
17563 \begin_layout Standard
17564 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17565
17566  (this can be specified in the 
17567 \family sans
17568 Paragraph Layout
17569 \family default
17570  dialog).
17571  In fact, you'll want to, once you finish entering the contents of one slide.
17572  If you've entered more text than can physically fit on a slide, the extra
17573  overflows onto a new slide.
17574  I don't recommend doing this, however, since the overflow slide won't have
17575  any page number on it.
17576  Furthermore, it may interfere with any 
17577 \family sans
17578 Overlay
17579 \family default
17580  you've made to accompany the oversized 
17581 \family sans
17582 Slide
17583 \family default
17584 .
17585 \end_layout
17586
17587 \begin_layout Standard
17588 The 
17589 \family sans
17590 Overlay
17591 \family default
17592  and 
17593 \family sans
17594 Note
17595 \family default
17596  environments work the same way as the 
17597 \family sans
17598 Slide
17599 \family default
17600  environment.
17601  They both create an 
17602 \begin_inset Quotes eld
17603 \end_inset
17604
17605 ASCII line
17606 \begin_inset Quotes erd
17607 \end_inset
17608
17609  followed by a label [
17610 \begin_inset Quotes eld
17611 \end_inset
17612
17613 NewOverlay:
17614 \begin_inset Quotes erd
17615 \end_inset
17616
17617  and 
17618 \begin_inset Quotes eld
17619 \end_inset
17620
17621 NewNote:
17622 \begin_inset Quotes erd
17623 \end_inset
17624
17625 , respectively].
17626  The color is a stunning magenta instead of blue, and the 
17627 \begin_inset Quotes eld
17628 \end_inset
17629
17630 ASCII line
17631 \begin_inset Quotes erd
17632 \end_inset
17633
17634  will look different, in style and in length.
17635  The label fonts of all three also differ from one another.
17636 \end_layout
17637
17638 \begin_layout Standard
17639 As with a 
17640 \family sans
17641 Slide
17642 \family default
17643 , if the contents of a 
17644 \family sans
17645 Note
17646 \family default
17647  or 
17648 \family sans
17649 Overlay
17650 \family default
17651  exceed the physical size of a slide or sheet of paper, the extra will overflow
17652  onto a new sheet.
17653  Again, you should avoid this.
17654  It defeats the whole purpose of 
17655 \family sans
17656 Note
17657 \family default
17658 s and 
17659 \family sans
17660 Overlay
17661 \family default
17662 s.
17663 \end_layout
17664
17665 \begin_layout Subsubsection
17666 Using 
17667 \family sans
17668 Overlay
17669 \family default
17670  with 
17671 \family sans
17672 Slide
17673 \end_layout
17674
17675 \begin_layout Standard
17676 The idea behind an 
17677 \family sans
17678 Overlay
17679 \family default
17680  is a slide that sits atop another slide.
17681  Perhaps you wish to discuss a figure on the main 
17682 \family sans
17683 Slide
17684 \family default
17685  before displaying the text associated with it.
17686  One way to accomplish this is tape a flap of dark paper over the part of
17687  the 
17688 \family sans
17689 Slide
17690 \family default
17691  you want to display later.
17692  This method fails, however, if you wish to overlap one graph with another,
17693  for example.
17694  You would then have to fumble while speaking to align the two separate,
17695  overlapping 
17696 \family sans
17697 Slide
17698 \family default
17699 s to align the two graphs.
17700  The use of an 
17701 \family sans
17702 Overlay
17703 \family default
17704  environment in both cases makes life much easier.
17705 \end_layout
17706
17707 \begin_layout Standard
17708 Each 
17709 \family sans
17710 Overlay
17711 \family default
17712  receives the page number of its 
17713 \begin_inset Quotes eld
17714 \end_inset
17715
17716 parent
17717 \begin_inset Quotes erd
17718 \end_inset
17719
17720  
17721 \family sans
17722 Slide
17723 \family default
17724 , appended by 
17725 \begin_inset Quotes eld
17726 \end_inset
17727
17728
17729 \family typewriter
17730 -a
17731 \family default
17732
17733 \begin_inset Quotes erd
17734 \end_inset
17735
17736 .
17737 \begin_inset Foot
17738 status collapsed
17739
17740 \begin_layout Plain Layout
17741 Presumably, mutliple 
17742 \family sans
17743 Overlay
17744 \family default
17745 s would have 
17746 \begin_inset Quotes eld
17747 \end_inset
17748
17749
17750 \family typewriter
17751 -a
17752 \family default
17753
17754 \begin_inset Quotes erd
17755 \end_inset
17756
17757
17758 \begin_inset Quotes eld
17759 \end_inset
17760
17761
17762 \family typewriter
17763 -b
17764 \family default
17765
17766 \begin_inset Quotes erd
17767 \end_inset
17768
17769
17770 \begin_inset Quotes eld
17771 \end_inset
17772
17773
17774 \family typewriter
17775 -c
17776 \family default
17777
17778 \begin_inset Quotes erd
17779 \end_inset
17780
17781 , etc.
17782 \begin_inset space ~
17783 \end_inset
17784
17785 appended to the page number of the parent 
17786 \family sans
17787 Slide
17788 \family default
17789 .
17790  
17791 \end_layout
17792
17793 \end_inset
17794
17795  Clearly, you want the contents of both the 
17796 \family sans
17797 Slide
17798 \family default
17799  and the 
17800 \family sans
17801 Overlay
17802 \family default
17803  to each fit on a single physical slide! You should probably consider an
17804  
17805 \family sans
17806 Overlay
17807 \family default
17808  as 
17809 \begin_inset Quotes eld
17810 \end_inset
17811
17812 part of
17813 \begin_inset Quotes erd
17814 \end_inset
17815
17816  a 
17817 \family sans
17818 Slide
17819 \family default
17820 .
17821  Indeed, the \SpecialChar LyX
17822  
17823 \family sans
17824 slides
17825 \family default
17826  class provides a visual cue for this: the label at the start of an 
17827 \family sans
17828 Overlay
17829 \family default
17830  is shorter than that at the start of a 
17831 \family sans
17832 Slide
17833 \family default
17834 .
17835  Lastly, when you generate printable output, you'll find alignment markers
17836  in all four corners of both the 
17837 \family sans
17838 Overlay
17839 \family default
17840  page and its parent 
17841 \family sans
17842 Slide
17843 \family default
17844 .
17845  These will assist you in lining up the two physical slides.
17846 \end_layout
17847
17848 \begin_layout Standard
17849 The major problem in overlaying two slides is aligning the contents of the
17850  two transparencies.
17851  How much space should you leave for that graph on the second slide? Worse
17852  still, what if you want a graph and a sentence on second slide, but there
17853  is text on the main transparency that goes in between them? You could try
17854  and insert vertical space of the right size.
17855  The better way is to use 
17856 \family sans
17857 InvisibleText
17858 \family default
17859  and 
17860 \family sans
17861 VisibleText
17862 \family default
17863 .
17864 \end_layout
17865
17866 \begin_layout Standard
17867 As their names imply, 
17868 \family sans
17869 InvisibleText
17870 \family default
17871  and 
17872 \family sans
17873 VisibleText
17874 \family default
17875  are two command-like paragraph environments that make all subsequent text
17876  invisible and visible, respectively.
17877  Note from section
17878 \begin_inset space ~
17879 \end_inset
17880
17881
17882 \begin_inset CommandInset ref
17883 LatexCommand ref
17884 reference "sec:slideQuirk"
17885
17886 \end_inset
17887
17888  that you don't place anything 
17889 \emph on
17890 into
17891 \emph default
17892  these two environments, however.
17893  When you create an 
17894 \family sans
17895 InvisibleText
17896 \family default
17897 , it inserts a centered, sky-blue label into the page reading 
17898 \begin_inset Quotes eld
17899 \end_inset
17900
17901 <Invisible Text Follows>
17902 \begin_inset Quotes erd
17903 \end_inset
17904
17905 .
17906  For paragraphs following this label, the parts of the 
17907 \family sans
17908 Slide
17909 \family default
17910  [or 
17911 \family sans
17912 Overlay
17913 \family default
17914 ; it doesn't matter which] where they would be contain instead blank space.
17915  
17916 \end_layout
17917
17918 \begin_layout Standard
17919 For 
17920 \family sans
17921 VisibleText
17922 \family default
17923 , the corresponding centered label is 
17924 \begin_inset Quotes eld
17925 \end_inset
17926
17927 <Visible Text Follows>
17928 \begin_inset Quotes erd
17929 \end_inset
17930
17931  in blazing green.
17932  Paragraphs following this label behave normally.
17933  Note that the beginning of a new 
17934 \family sans
17935 Slide
17936 \family default
17937
17938 \family sans
17939 Overlay
17940 \family default
17941 , or 
17942 \family sans
17943 Note
17944 \family default
17945  automatically shuts off an 
17946 \family sans
17947 InvisibleText
17948 \family default
17949 .
17950  It's therefore not necessary to use 
17951 \family sans
17952 VisibleText
17953 \family default
17954  at the end of a 
17955 \family sans
17956 Slide
17957 \family default
17958 .
17959 \end_layout
17960
17961 \begin_layout Standard
17962 By now, it should be obvious how to create overlay transparencies using
17963  the proper combination of 
17964 \family sans
17965 InvisibleText
17966 \family default
17967  and 
17968 \family sans
17969 VisibleText
17970 \family default
17971  on a 
17972 \family sans
17973 Slide
17974 \family default
17975  and 
17976 \family sans
17977 Overlay
17978 \family default
17979 :
17980 \end_layout
17981
17982 \begin_layout Enumerate
17983 Create a 
17984 \family sans
17985 Slide
17986 \family default
17987 , including everything that will appear on it, whether on the main slide
17988  or on the 
17989 \family sans
17990 Overlay
17991 \family default
17992 .
17993 \end_layout
17994
17995 \begin_layout Enumerate
17996 Before each figure or paragraph that will appear only on the 
17997 \family sans
17998 Overlay
17999 \family default
18000 , insert an 
18001 \family sans
18002 InvisibleText
18003 \family default
18004  environment.
18005  If necessary, insert a 
18006 \family sans
18007 VisibleText
18008 \family default
18009  environment after the 
18010 \family sans
18011 Overlay
18012 \family default
18013 -only text.
18014 \end_layout
18015
18016 \begin_layout Enumerate
18017 Start an 
18018 \family sans
18019 Overlay
18020 \family default
18021  immediately following the 
18022 \family sans
18023 Slide
18024 \family default
18025 .
18026 \end_layout
18027
18028 \begin_layout Enumerate
18029 Copy the contents of this 
18030 \family sans
18031 Slide
18032 \family default
18033  into the 
18034 \family sans
18035 Overlay
18036 \family default
18037 .
18038 \end_layout
18039
18040 \begin_layout Enumerate
18041 Within the 
18042 \family sans
18043 Overlay
18044 \family default
18045 , change all of the 
18046 \family sans
18047 InvisibleText
18048 \family default
18049  lines to 
18050 \family sans
18051 VisibleText
18052 \family default
18053  and vice-versa.
18054 \end_layout
18055
18056 \begin_layout Standard
18057 That's it.
18058  You've just made an 
18059 \family sans
18060 Overlay
18061 \family default
18062 .
18063 \end_layout
18064
18065 \begin_layout Standard
18066 There's one problem with the way I've designed the \SpecialChar LyX
18067  
18068 \family sans
18069 slides
18070 \family default
18071  class: you can't make text in the middle of a paragraph invisible, nor
18072  make text in the middle of an invisible paragraph visible again.
18073  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18074  codes.
18075 \begin_inset Foot
18076 status collapsed
18077
18078 \begin_layout Plain Layout
18079 The commands of interest are: 
18080 \end_layout
18081
18082 \begin_layout Itemize
18083
18084 \family typewriter
18085 {
18086 \backslash
18087 invisible \SpecialChar ldots
18088  }
18089 \end_layout
18090
18091 \begin_layout Itemize
18092
18093 \family typewriter
18094 {
18095 \backslash
18096 visible \SpecialChar ldots
18097  }
18098 \end_layout
18099
18100 \begin_layout Plain Layout
18101 \SpecialChar ldots
18102 and need to be marked as \SpecialChar TeX
18103 .
18104  The text whose 
18105 \begin_inset Quotes eld
18106 \end_inset
18107
18108 visibility
18109 \begin_inset Quotes erd
18110 \end_inset
18111
18112  you wish to change goes in between the brackets [and after the 
18113 \family typewriter
18114
18115 \backslash
18116 invisible
18117 \family default
18118  or 
18119 \family typewriter
18120
18121 \backslash
18122 visible
18123 \family default
18124  command].
18125  If you don't know how to mark text as \SpecialChar TeX
18126 , see the appropriate section of
18127  the 
18128 \emph on
18129 User's Guide
18130 \emph default
18131 .
18132 \end_layout
18133
18134 \end_inset
18135
18136
18137 \end_layout
18138
18139 \begin_layout Subsubsection
18140 Using 
18141 \family sans
18142 Note
18143 \family default
18144  with 
18145 \family sans
18146 Slide
18147 \family default
18148
18149 \begin_inset CommandInset label
18150 LatexCommand label
18151 name "sec:slideNote"
18152
18153 \end_inset
18154
18155
18156 \end_layout
18157
18158 \begin_layout Standard
18159 Like an 
18160 \family sans
18161 Overlay
18162 \family default
18163 , a 
18164 \family sans
18165 Note
18166 \family default
18167  is associated with a 
18168 \begin_inset Quotes eld
18169 \end_inset
18170
18171 parent
18172 \begin_inset Quotes erd
18173 \end_inset
18174
18175  
18176 \family sans
18177 Slide
18178 \family default
18179 .
18180  Here, too, the \SpecialChar LyX
18181  
18182 \family sans
18183 slides
18184 \family default
18185  class provides visual cues.
18186  The label for a 
18187 \family sans
18188 Note
18189 \family default
18190  is shorter than that of a 
18191 \family sans
18192 Slide
18193 \family default
18194  [yet longer than that of an 
18195 \family sans
18196 Overlay
18197 \family default
18198 ] and, like the label of an 
18199 \family sans
18200 Overlay
18201 \family default
18202  is shockingly magenta.
18203  Additionally, the printed 
18204 \family sans
18205 Note
18206 \family default
18207  has the page number of its 
18208 \begin_inset Quotes eld
18209 \end_inset
18210
18211 parent
18212 \begin_inset Quotes erd
18213 \end_inset
18214
18215  
18216 \family sans
18217 Slide
18218 \family default
18219 , appended by 
18220 \begin_inset Quotes eld
18221 \end_inset
18222
18223
18224 \family typewriter
18225 -
18226 \family default
18227 1
18228 \begin_inset Quotes erd
18229 \end_inset
18230
18231
18232 \begin_inset Quotes eld
18233 \end_inset
18234
18235
18236 \family typewriter
18237 -
18238 \family default
18239 2
18240 \begin_inset Quotes erd
18241 \end_inset
18242
18243
18244 \begin_inset Quotes eld
18245 \end_inset
18246
18247
18248 \family typewriter
18249 -
18250 \family default
18251 3
18252 \begin_inset Quotes erd
18253 \end_inset
18254
18255 , etc.
18256  You can have multiple 
18257 \family sans
18258 Note
18259 \family default
18260 s associated with a single 
18261 \family sans
18262 Slide
18263 \family default
18264 , and, as with 
18265 \family sans
18266 Slide
18267 \family default
18268  and 
18269 \family sans
18270 Overlay
18271 \family default
18272 , you'll probably want to break up long 
18273 \family sans
18274 Note
18275 \family default
18276 s so that they fit on a single sheet of paper.
18277 \end_layout
18278
18279 \begin_layout Standard
18280 The purpose of a 
18281 \family sans
18282 Note
18283 \family default
18284  is obvious: it contains anything additional you might want to say about
18285  a 
18286 \family sans
18287 Slide
18288 \family default
18289 .
18290  It could also be used as a sheet of reminders for a particular 
18291 \family sans
18292 Slide
18293 \family default
18294 .
18295  In the case of the latter, you might want to make use of time markers.
18296  Currently, the \SpecialChar LyX
18297  
18298 \family sans
18299 slides
18300 \family default
18301  class has no 
18302 \begin_inset Quotes eld
18303 \end_inset
18304
18305 native
18306 \begin_inset Quotes erd
18307 \end_inset
18308
18309  support for time markers, a 
18310 \noun on
18311 Sli\SpecialChar TeX
18312
18313 \noun default
18314  feature.
18315  So, you'll have to resort to using the \SpecialChar LaTeX
18316  codes.
18317 \end_layout
18318
18319 \begin_layout Standard
18320 To use time markers, you'll need to specify the extra class option 
18321 \begin_inset Quotes eld
18322 \end_inset
18323
18324
18325 \family typewriter
18326 clock
18327 \family default
18328
18329 \begin_inset Quotes erd
18330 \end_inset
18331
18332  [see section
18333 \begin_inset space ~
18334 \end_inset
18335
18336
18337 \begin_inset CommandInset ref
18338 LatexCommand ref
18339 reference "sec:slidesetup"
18340
18341 \end_inset
18342
18343 ].
18344  This option turns on timing marks, which will appear in the lower-left-hand
18345  corner of every 
18346 \family sans
18347 Note
18348 \family default
18349  you generate.
18350  To set what appears in the time marker, you use the \SpecialChar LaTeX
18351  commands 
18352 \begin_inset Quotes eld
18353 \end_inset
18354
18355
18356 \family typewriter
18357
18358 \backslash
18359 settime{}
18360 \family default
18361
18362 \begin_inset Quotes erd
18363 \end_inset
18364
18365  and 
18366 \begin_inset Quotes eld
18367 \end_inset
18368
18369
18370 \family typewriter
18371
18372 \backslash
18373 addtime{}
18374 \family default
18375
18376 \begin_inset Quotes erd
18377 \end_inset
18378
18379 .
18380  The arguments of both commands are time measured in seconds.
18381  
18382 \begin_inset Quotes eld
18383 \end_inset
18384
18385
18386 \family typewriter
18387
18388 \backslash
18389 settime{}
18390 \family default
18391
18392 \begin_inset Quotes erd
18393 \end_inset
18394
18395  sets the time marker to a given time.
18396  
18397 \begin_inset Quotes eld
18398 \end_inset
18399
18400
18401 \family typewriter
18402
18403 \backslash
18404 addtime{}
18405 \family default
18406
18407 \begin_inset Quotes erd
18408 \end_inset
18409
18410  increments the time marker by the specified amount.
18411  Using time markers and 
18412 \family sans
18413 Note
18414 \family default
18415 s in this fashion, you can remind yourself how much time to spend on a particula
18416
18417 \family sans
18418 Slide
18419 \family default
18420 .
18421 \end_layout
18422
18423 \begin_layout Standard
18424 There's one last feature to describe.
18425  Clearly, you'd like to print out all of your 
18426 \family sans
18427 Slide
18428 \family default
18429 s and 
18430 \family sans
18431 Overlay
18432 \family default
18433 s on transparencies while printing all of your 
18434 \family sans
18435 Note
18436 \family default
18437 s on plain paper.
18438  However, a 
18439 \family sans
18440 Note
18441 \family default
18442  
18443 \emph on
18444 must
18445 \emph default
18446  follow the 
18447 \family sans
18448 Slide
18449 \family default
18450  with which it is associated.
18451  What's a person to do?
18452 \end_layout
18453
18454 \begin_layout Standard
18455 Luckily, there are two \SpecialChar LaTeX
18456  commands that allow you to select what to print
18457  out.
18458  Both must be placed into the preamble of your document.
18459  The command 
18460 \begin_inset Quotes eld
18461 \end_inset
18462
18463
18464 \family typewriter
18465
18466 \backslash
18467 onlyslides{
18468 \backslash
18469 slides}
18470 \family default
18471
18472 \begin_inset Quotes erd
18473 \end_inset
18474
18475  will cause the output to contain only the 
18476 \family sans
18477 Slide
18478 \family default
18479 s and 
18480 \family sans
18481 Overlay
18482 \family default
18483 s.
18484  Correspondingly, the command 
18485 \begin_inset Quotes eld
18486 \end_inset
18487
18488
18489 \family typewriter
18490
18491 \backslash
18492 onlynotes{
18493 \backslash
18494 notes}
18495 \family default
18496
18497 \begin_inset Quotes erd
18498 \end_inset
18499
18500  prevents the output of anything but 
18501 \family sans
18502 Note
18503 \family default
18504 s.
18505  I'd advise placing both commands in the preamble and initially comment
18506  both out.
18507  You can then preview your entire presentation as you write.
18508  When you're done writing, you can then uncomment one of the two to select
18509  what you want to print.
18510  I like to uncomment 
18511 \begin_inset Quotes eld
18512 \end_inset
18513
18514
18515 \family typewriter
18516
18517 \backslash
18518 onlyslides{
18519 \backslash
18520 slides}
18521 \family default
18522
18523 \begin_inset Quotes erd
18524 \end_inset
18525
18526  , print to a file with 
18527 \begin_inset Quotes eld
18528 \end_inset
18529
18530
18531 \family typewriter
18532 -slides
18533 \family default
18534
18535 \begin_inset Quotes erd
18536 \end_inset
18537
18538  in its name, comment it back out, then uncomment 
18539 \begin_inset Quotes eld
18540 \end_inset
18541
18542
18543 \family typewriter
18544
18545 \backslash
18546 onlynotes{
18547 \backslash
18548 notes}
18549 \family default
18550
18551 \begin_inset Quotes erd
18552 \end_inset
18553
18554  and print to a 
18555 \begin_inset Quotes eld
18556 \end_inset
18557
18558
18559 \family typewriter
18560 *-notes.ps
18561 \family default
18562
18563 \begin_inset Quotes erd
18564 \end_inset
18565
18566  file.
18567  I can then send either file to a printer, loading transparencies or plain
18568  paper as appropriate.
18569 \end_layout
18570
18571 \begin_layout Standard
18572 You can also provide other arguments to the 
18573 \begin_inset Quotes eld
18574 \end_inset
18575
18576
18577 \family typewriter
18578
18579 \backslash
18580 onlyslides{}
18581 \family default
18582
18583 \begin_inset Quotes erd
18584 \end_inset
18585
18586  and 
18587 \begin_inset Quotes eld
18588 \end_inset
18589
18590
18591 \family typewriter
18592
18593 \backslash
18594 onlynotes{}
18595 \family default
18596
18597 \begin_inset Quotes erd
18598 \end_inset
18599
18600  commands.
18601  See a good \SpecialChar LaTeX
18602  book for details.
18603 \end_layout
18604
18605 \begin_layout Subsection
18606 The 
18607 \family sans
18608 slides
18609 \family default
18610  Class Template File
18611 \end_layout
18612
18613 \begin_layout Standard
18614 I have also provided a template file, 
18615 \begin_inset Quotes eld
18616 \end_inset
18617
18618
18619 \family typewriter
18620 slides.lyx
18621 \family default
18622
18623 \begin_inset Quotes erd
18624 \end_inset
18625
18626 , with the 
18627 \family sans
18628 slides
18629 \family default
18630  class.
18631  To use it, begin your new presentation with 
18632 \family sans
18633 \bar under
18634 F
18635 \bar default
18636 ile\SpecialChar menuseparator
18637 New
18638 \begin_inset space ~
18639 \end_inset
18640
18641 from
18642 \begin_inset space ~
18643 \end_inset
18644
18645
18646 \bar under
18647 T
18648 \bar default
18649 emplate
18650 \family default
18651 .
18652  Your new \SpecialChar LyX
18653  presentation file will contain an example 
18654 \family sans
18655 Slide
18656 \family default
18657  – 
18658 \family sans
18659 Overlay
18660 \family default
18661  – 
18662 \family sans
18663 Note
18664 \family default
18665  triplet.
18666  The 
18667 \family sans
18668 Slide
18669 \family default
18670  and 
18671 \family sans
18672 Overlay
18673 \family default
18674  additionally contain an example of the use of 
18675 \family sans
18676 InvisibleText
18677 \family default
18678  and 
18679 \family sans
18680 VisibleText
18681 \family default
18682 .
18683  Lastly, the preamble will contain:
18684 \end_layout
18685
18686 \begin_layout LyX-Code
18687 % Uncomment to print out only slides and overlays
18688 \end_layout
18689
18690 \begin_layout LyX-Code
18691 %
18692 \end_layout
18693
18694 \begin_layout LyX-Code
18695 %
18696 \backslash
18697 onlyslides{
18698 \backslash
18699 slides}
18700 \begin_inset Newline newline
18701 \end_inset
18702
18703  
18704 \end_layout
18705
18706 \begin_layout LyX-Code
18707 % Uncomment to print out only notes
18708 \end_layout
18709
18710 \begin_layout LyX-Code
18711 %
18712 \end_layout
18713
18714 \begin_layout LyX-Code
18715 %
18716 \backslash
18717 onlynotes{
18718 \backslash
18719 notes}
18720 \end_layout
18721
18722 \begin_layout Standard
18723 One final thing: I created this class to support the \SpecialChar LaTeX2e
18724  
18725 \begin_inset Quotes eld
18726 \end_inset
18727
18728
18729 \noun on
18730 Sli\SpecialChar TeX
18731
18732 \noun default
18733  emulation
18734 \begin_inset Quotes erd
18735 \end_inset
18736
18737  class, one of the built-in \SpecialChar LaTeX2e
18738  classes.
18739  Neither I nor the rest of the \SpecialChar LyX
18740  Team endorse or oppose the use of this built-in
18741  slide class.
18742  It's here if you want it or need it.
18743  There exist other \SpecialChar LaTeX2e
18744  classes for creating presentations, such as the 
18745 \family sans
18746 Foils
18747 \family default
18748  class [see section
18749 \begin_inset space ~
18750 \end_inset
18751
18752
18753 \begin_inset CommandInset ref
18754 LatexCommand ref
18755 reference "sec:foiltex"
18756
18757 \end_inset
18758
18759 ] or the 
18760 \begin_inset Quotes eld
18761 \end_inset
18762
18763
18764 \family typewriter
18765 seminar
18766 \family default
18767
18768 \begin_inset Quotes erd
18769 \end_inset
18770
18771  package [present on some \SpecialChar TeX
18772  distributions].
18773  The latter is not yet supported under \SpecialChar LyX
18774 .
18775 \begin_inset Foot
18776 status collapsed
18777
18778 \begin_layout Plain Layout
18779 Perhaps you can take on the task\SpecialChar ldots
18780
18781 \end_layout
18782
18783 \end_inset
18784
18785  I know nothing about these other classes.
18786  Try them out to see what sort of alternative they provide.
18787 \end_layout
18788
18789 \begin_layout Chapter
18790 \SpecialChar LyX
18791  Features needing Extra Software
18792 \end_layout
18793
18794 \begin_layout Section
18795 Checking \SpecialChar TeX
18796
18797 \end_layout
18798
18799 \begin_layout Standard
18800 by 
18801 \noun on
18802 Asger Alstrup
18803 \end_layout
18804
18805 \begin_layout Subsection
18806 Introduction
18807 \end_layout
18808
18809 \begin_layout Standard
18810 If you have the 
18811 \family typewriter
18812 chktex
18813 \family default
18814  program installed
18815 \begin_inset Foot
18816 status collapsed
18817
18818 \begin_layout Plain Layout
18819
18820 \family typewriter
18821 chktex
18822 \family default
18823  is not yet available when you are using the \SpecialChar LaTeX
18824  distribution MiK\SpecialChar TeX
18825 .
18826 \end_layout
18827
18828 \end_inset
18829
18830 , you'll find in the 
18831 \family sans
18832 Tools
18833 \family default
18834  menu the entry: 
18835 \family sans
18836 Check
18837 \begin_inset space ~
18838 \end_inset
18839
18840
18841 \change_deleted -712698321 1437633476
18842 \SpecialChar TeX
18843
18844 \change_inserted -712698321 1437633477
18845 TeX
18846 \change_unchanged
18847
18848 \family default
18849 .
18850  You can get 
18851 \family typewriter
18852 chktex
18853 \family default
18854  from CTAN,
18855 \begin_inset Newline newline
18856 \end_inset
18857
18858
18859 \begin_inset CommandInset href
18860 LatexCommand href
18861 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18862
18863 \end_inset
18864
18865 .
18866 \end_layout
18867
18868 \begin_layout Standard
18869 The 
18870 \family sans
18871 Chk\SpecialChar TeX
18872
18873 \family default
18874  package is a program that was written by 
18875 \begin_inset Flex Noun
18876 status collapsed
18877
18878 \begin_layout Plain Layout
18879 Jens T.
18880 \begin_inset space ~
18881 \end_inset
18882
18883 Berger Thielemann
18884 \end_layout
18885
18886 \end_inset
18887
18888  in frustration because some constructs in \SpecialChar LaTeX
18889  are sometimes non-intuitive,
18890  and easy to forget.
18891  The program runs over your \SpecialChar LaTeX
18892  file, checks the integrity of the file, and
18893  flags some common errors.
18894  In other technical words, it is 
18895 \family typewriter
18896 lint
18897 \family default
18898  for \SpecialChar LaTeX
18899 .
18900 \end_layout
18901
18902 \begin_layout Standard
18903 Well, what is a syntax checker doing in \SpecialChar LyX
18904  which is supposed to produce correct
18905  \SpecialChar LaTeX
18906  anyways? The answer is simple: Just as 
18907 \family typewriter
18908 Lint
18909 \family default
18910  not only checks the 
18911 \emph on
18912 syntax
18913 \emph default
18914  of C programs, but also does 
18915 \emph on
18916 semantic
18917 \emph default
18918  checks for type-errors, 
18919 \family sans
18920 Chk\SpecialChar TeX
18921
18922 \family default
18923  catches some common 
18924 \emph on
18925 typographic
18926 \emph default
18927  errors, in addition to the syntactical ones.
18928  Specifically, 
18929 \family sans
18930 Chk\SpecialChar TeX
18931
18932 \family default
18933  is capable of detecting several common errors, such as
18934 \end_layout
18935
18936 \begin_layout Itemize
18937 Ellipsis detection:
18938 \begin_inset Newline newline
18939 \end_inset
18940
18941 Use \SpecialChar ldots
18942  instead of ...
18943 \end_layout
18944
18945 \begin_layout Itemize
18946 No space in front of/after parenthesis:
18947 \begin_inset Newline newline
18948 \end_inset
18949
18950 ( wrong spacing )
18951 \end_layout
18952
18953 \begin_layout Itemize
18954 Enforcement of normal space after common abbreviations:
18955 \begin_inset Newline newline
18956 \end_inset
18957
18958 e.
18959 \begin_inset space \thinspace{}
18960 \end_inset
18961
18962 g.
18963 \begin_inset space \space{}
18964 \end_inset
18965
18966 is too wide spacing.
18967 \end_layout
18968
18969 \begin_layout Itemize
18970 Enforcement of end-of-sentence space when the last sentence ends with a
18971  capital letter:
18972 \begin_inset Newline newline
18973 \end_inset
18974
18975 This is a TEST.
18976  And this is wrong spacing.
18977 \end_layout
18978
18979 \begin_layout Itemize
18980 Space in front of labels and similar commands:
18981 \begin_inset Newline newline
18982 \end_inset
18983
18984 The label should stick right up to the text to avoid falling to a wrong
18985  page.
18986  
18987 \begin_inset CommandInset label
18988 LatexCommand label
18989 name "sec:chktex"
18990
18991 \end_inset
18992
18993  
18994 \begin_inset Foot
18995 status collapsed
18996
18997 \begin_layout Plain Layout
18998 This footnote is in danger of falling off to a wrong page
18999 \end_layout
19000
19001 \end_inset
19002
19003  The label is separated too much.
19004 \end_layout
19005
19006 \begin_layout Itemize
19007 Space in front of references, instead of hard spaces:
19008 \begin_inset Newline newline
19009 \end_inset
19010
19011 If you have bad luck, the text will break right between the referenced text
19012  and reference number, and that's a pity.
19013  See section 
19014 \begin_inset CommandInset ref
19015 LatexCommand ref
19016 reference "sec:chktex"
19017
19018 \end_inset
19019
19020 .
19021 \end_layout
19022
19023 \begin_layout Itemize
19024 Use of 
19025 \begin_inset Quotes eld
19026 \end_inset
19027
19028 x
19029 \begin_inset Quotes erd
19030 \end_inset
19031
19032  instead of 
19033 \begin_inset Formula $\times$
19034 \end_inset
19035
19036  between numbers:
19037 \begin_inset Newline newline
19038 \end_inset
19039
19040 2x2 looks cheap compared to 
19041 \begin_inset Formula $2\times2$
19042 \end_inset
19043
19044 .
19045 \end_layout
19046
19047 \begin_layout Standard
19048 and more \SpecialChar ldots
19049  It is an invaluable tool when you are 
19050 \begin_inset Quotes eld
19051 \end_inset
19052
19053 finishing up
19054 \begin_inset Quotes erd
19055 \end_inset
19056
19057  your document before printing, and you should run it right after the obligatory
19058  spelling check, and before you go fine tuning the typesetting.
19059 \end_layout
19060
19061 \begin_layout Subsection
19062 How to use it
19063 \end_layout
19064
19065 \begin_layout Standard
19066 If you have the program installed, usage is as simple as choosing 
19067 \family sans
19068 Tools\SpecialChar menuseparator
19069 Check
19070 \begin_inset space ~
19071 \end_inset
19072
19073
19074 \change_deleted -712698321 1437633488
19075 \SpecialChar TeX
19076
19077 \change_inserted -712698321 1437633488
19078 TeX
19079 \change_unchanged
19080
19081 \family default
19082 .
19083  This will make \SpecialChar LyX
19084  generate a \SpecialChar LaTeX
19085  file of your document, start 
19086 \family sans
19087 Chk\SpecialChar TeX
19088
19089 \family default
19090  to check it, and then make \SpecialChar LyX
19091  insert 
19092 \begin_inset Quotes eld
19093 \end_inset
19094
19095 error boxes
19096 \begin_inset Quotes erd
19097 \end_inset
19098
19099  with the warnings from 
19100 \family sans
19101 Chk\SpecialChar TeX
19102
19103 \family default
19104 , if there were any.
19105  The warnings will be placed close to the point of the mistake, and you
19106  can quickly find them by using the 
19107 \family sans
19108 Navigate\SpecialChar menuseparator
19109 Error
19110 \family default
19111  menu item, or the shortcut key 
19112 \family sans
19113 C-g
19114 \family default
19115  from the default 
19116 \family typewriter
19117 cua
19118 \family default
19119  bind file.
19120  Open the error boxes by clicking on them with the mouse, or use the shortcut
19121  key 
19122 \family sans
19123 C-i
19124 \family default
19125  from 
19126 \family typewriter
19127 cua
19128 \family default
19129  bindings, or the corresponding 
19130 \family sans
19131 C-o
19132 \family default
19133  for the alternate 
19134 \family typewriter
19135 emacs
19136 \family default
19137  bind file.
19138  Read the warning and correct the mistake, if it is a mistake.
19139  If you have trouble understanding what the warning is about, you can safely
19140  ignore it.
19141  Remember that there is a hidden layer between the document on screen and
19142  the technical details in invoking 
19143 \family sans
19144 Chk\SpecialChar TeX
19145
19146 \family default
19147 , and this gap can make some warnings seem arcane or just plain silly.
19148 \end_layout
19149
19150 \begin_layout Standard
19151 This document is an excellent testing bed for the feature, and it should
19152  provide quite a few warnings for you to fiddle with.
19153  Since computers are only so smart, expect most of the warnings to be false
19154  alarms, though.
19155 \end_layout
19156
19157 \begin_layout Subsection
19158 How to fine tune it
19159 \end_layout
19160
19161 \begin_layout Standard
19162 Sometimes, you'll find that 
19163 \family sans
19164 Chk\SpecialChar TeX
19165
19166 \family default
19167  makes more noise than suits your mood.
19168  Then you can choose not to use it, wait until your mood changes, or try
19169  to customize 
19170 \family sans
19171 Chk\SpecialChar TeX
19172
19173 \family default
19174  to get better along with you.
19175 \end_layout
19176
19177 \begin_layout Standard
19178 Although 
19179 \family sans
19180 Chk\SpecialChar TeX
19181
19182 \family default
19183  
19184 \emph on
19185 is
19186 \emph default
19187  very configurable and extensible, you should not expect to solve all problems
19188  with 
19189 \family sans
19190 Chk\SpecialChar TeX
19191
19192 \family default
19193  in \SpecialChar LyX
19194  this way.
19195  Since \SpecialChar LyX
19196  has to generate a somewhat special \SpecialChar LaTeX
19197  file to be able to match the
19198  line numbers from the 
19199 \family sans
19200 Chk\SpecialChar TeX
19201
19202 \family default
19203  output
19204 \begin_inset Foot
19205 status collapsed
19206
19207 \begin_layout Plain Layout
19208 You can inspect the specific output from 
19209 \family sans
19210 chktex
19211 \family default
19212  by using 
19213 \family sans
19214 Document\SpecialChar menuseparator
19215 \SpecialChar LaTeX
19216
19217 \begin_inset space ~
19218 \end_inset
19219
19220 Log
19221 \family default
19222  right after a 
19223 \family sans
19224 chktex
19225 \family default
19226  run.
19227 \end_layout
19228
19229 \end_inset
19230
19231  to the internal document structure, some of the warnings will not appear
19232  correctly.
19233  There are two things you can do about this:
19234 \end_layout
19235
19236 \begin_layout Itemize
19237 Fine tune the 
19238 \family sans
19239 Chk\SpecialChar TeX
19240
19241 \family default
19242  invocation command line in 
19243 \begin_inset Flex MenuItem
19244 status collapsed
19245
19246 \begin_layout Plain Layout
19247 Tools\SpecialChar menuseparator
19248 Preferences\SpecialChar menuseparator
19249 Output\SpecialChar menuseparator
19250
19251 \change_deleted -712698321 1437633504
19252 \SpecialChar LaTeX
19253
19254 \change_inserted -712698321 1437633507
19255 LaTeX
19256 \change_unchanged
19257 \SpecialChar menuseparator
19258 Check
19259 \change_deleted -712698321 1437633509
19260 \SpecialChar TeX
19261
19262 \change_inserted -712698321 1437633511
19263 TeX
19264 \change_unchanged
19265  command
19266 \end_layout
19267
19268 \end_inset
19269
19270 , or the global 
19271 \family sans
19272 Chk\SpecialChar TeX
19273
19274 \family default
19275  installation configuration file (usually with the file 
19276 \family typewriter
19277 chktexrc
19278 \family default
19279 ).
19280  See below to learn what warnings can be enabled and disabled on the command
19281  line.
19282 \end_layout
19283
19284 \begin_layout Itemize
19285 Export your document as a raw \SpecialChar LaTeX
19286  file using 
19287 \family sans
19288 File\SpecialChar menuseparator
19289 Export\SpecialChar menuseparator
19290 \SpecialChar LaTeX
19291
19292 \family default
19293  and run 
19294 \family typewriter
19295 chktex
19296 \family default
19297  manually on that.
19298  Invoked in this way, it can be a hassle to find the corresponding place
19299  in the document inside \SpecialChar LyX
19300 , but with a little patience, you should be able
19301  to do it.
19302 \end_layout
19303
19304 \begin_layout Standard
19305 Here follows the warning messages that can be enabled and disabled in 
19306 \family sans
19307 Preferences
19308 \family default
19309 .
19310  Use 
19311 \family typewriter
19312 -n#
19313 \family default
19314  to disable a warning, and 
19315 \family typewriter
19316 -w#
19317 \family default
19318  to enable a warning.
19319  The emphasized entries are disabled by default, because the default is
19320  "
19321 \family typewriter
19322 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19323 \family default
19324 ".
19325 \end_layout
19326
19327 \begin_layout Standard
19328 Notice that you should only use the options that enable and disable warnings,
19329  because \SpecialChar LyX
19330  relies on some of the other command line parameters to be set
19331  in a specific way to have a chance to communicate with 
19332 \family typewriter
19333 chktex
19334 \family default
19335 .
19336 \end_layout
19337
19338 \begin_layout Enumerate
19339
19340 \size small
19341 \emph on
19342 Command terminated with space.
19343 \end_layout
19344
19345 \begin_layout Enumerate
19346
19347 \size small
19348 Non-breaking space (
19349 \begin_inset Quotes eld
19350 \end_inset
19351
19352
19353 \family typewriter
19354 ~
19355 \family default
19356
19357 \begin_inset Quotes erd
19358 \end_inset
19359
19360 ) should have been used.
19361 \end_layout
19362
19363 \begin_layout Enumerate
19364
19365 \size small
19366 \emph on
19367 You should enclose the previous parenthesis with 
19368 \begin_inset Quotes eld
19369 \end_inset
19370
19371
19372 \family typewriter
19373 {}
19374 \family default
19375
19376 \begin_inset Quotes erd
19377 \end_inset
19378
19379 .
19380 \end_layout
19381
19382 \begin_layout Enumerate
19383
19384 \size small
19385 Italic correction (
19386 \begin_inset Quotes eld
19387 \end_inset
19388
19389
19390 \family typewriter
19391
19392 \backslash
19393 /
19394 \family default
19395
19396 \begin_inset Quotes erd
19397 \end_inset
19398
19399 ) found in non-italic buffer.
19400 \end_layout
19401
19402 \begin_layout Enumerate
19403
19404 \size small
19405 Italic correction (
19406 \begin_inset Quotes eld
19407 \end_inset
19408
19409
19410 \family typewriter
19411
19412 \backslash
19413 /
19414 \family default
19415
19416 \begin_inset Quotes erd
19417 \end_inset
19418
19419 ) found more than once.
19420 \end_layout
19421
19422 \begin_layout Enumerate
19423
19424 \size small
19425 \emph on
19426 No italic correction (
19427 \begin_inset Quotes eld
19428 \end_inset
19429
19430
19431 \family typewriter
19432
19433 \backslash
19434 /
19435 \family default
19436
19437 \begin_inset Quotes erd
19438 \end_inset
19439
19440 ) found.
19441 \end_layout
19442
19443 \begin_layout Enumerate
19444
19445 \size small
19446 Accent command 
19447 \begin_inset Quotes eld
19448 \end_inset
19449
19450
19451 \family typewriter
19452 cmd
19453 \family default
19454
19455 \begin_inset Quotes erd
19456 \end_inset
19457
19458  needs use of 
19459 \begin_inset Quotes eld
19460 \end_inset
19461
19462
19463 \family typewriter
19464 cmd
19465 \family default
19466
19467 \begin_inset Quotes erd
19468 \end_inset
19469
19470 .
19471 \end_layout
19472
19473 \begin_layout Enumerate
19474
19475 \size small
19476 Wrong length of dash may have been used.
19477 \end_layout
19478
19479 \begin_layout Enumerate
19480
19481 \size small
19482 \emph on
19483 \begin_inset Quotes eld
19484 \end_inset
19485
19486
19487 \family typewriter
19488 %s
19489 \family default
19490
19491 \begin_inset Quotes erd
19492 \end_inset
19493
19494  expected, found 
19495 \begin_inset Quotes eld
19496 \end_inset
19497
19498
19499 \family typewriter
19500 %s
19501 \family default
19502
19503 \begin_inset Quotes erd
19504 \end_inset
19505
19506 .
19507 \end_layout
19508
19509 \begin_layout Enumerate
19510
19511 \size small
19512 Solo 
19513 \begin_inset Quotes eld
19514 \end_inset
19515
19516
19517 \family typewriter
19518 %s
19519 \family default
19520
19521 \begin_inset Quotes erd
19522 \end_inset
19523
19524  found.
19525 \end_layout
19526
19527 \begin_layout Enumerate
19528
19529 \size small
19530 You should use 
19531 \begin_inset Quotes eld
19532 \end_inset
19533
19534
19535 \family typewriter
19536 %s
19537 \family default
19538
19539 \begin_inset Quotes erd
19540 \end_inset
19541
19542  to achieve an ellipsis.
19543 \end_layout
19544
19545 \begin_layout Enumerate
19546
19547 \size small
19548 Inter-word spacing (
19549 \begin_inset Quotes eld
19550 \end_inset
19551
19552
19553 \family typewriter
19554
19555 \backslash
19556
19557 \family default
19558  
19559 \begin_inset Quotes eld
19560 \end_inset
19561
19562 ) should perhaps be used.
19563 \end_layout
19564
19565 \begin_layout Enumerate
19566
19567 \size small
19568 Inter-sentence spacing (
19569 \begin_inset Quotes eld
19570 \end_inset
19571
19572
19573 \family typewriter
19574
19575 \backslash
19576 @
19577 \family default
19578
19579 \begin_inset Quotes erd
19580 \end_inset
19581
19582 ) should perhaps be used.
19583 \end_layout
19584
19585 \begin_layout Enumerate
19586
19587 \size small
19588 Could not find argument for command.
19589 \end_layout
19590
19591 \begin_layout Enumerate
19592
19593 \size small
19594 No match found for 
19595 \begin_inset Quotes eld
19596 \end_inset
19597
19598
19599 \family typewriter
19600 %s
19601 \family default
19602
19603 \begin_inset Quotes erd
19604 \end_inset
19605
19606 .
19607 \end_layout
19608
19609 \begin_layout Enumerate
19610
19611 \size small
19612 Math mode still on at end of \SpecialChar LaTeX
19613  file.
19614 \end_layout
19615
19616 \begin_layout Enumerate
19617
19618 \size small
19619 Number of 
19620 \begin_inset Quotes eld
19621 \end_inset
19622
19623
19624 \family typewriter
19625 char
19626 \family default
19627
19628 \begin_inset Quotes erd
19629 \end_inset
19630
19631  doesn't match the number of 
19632 \begin_inset Quotes eld
19633 \end_inset
19634
19635
19636 \family typewriter
19637 char
19638 \family default
19639
19640 \begin_inset Quotes erd
19641 \end_inset
19642
19643 .
19644 \end_layout
19645
19646 \begin_layout Enumerate
19647
19648 \size small
19649 You should use either 
19650 \family typewriter
19651
19652 \begin_inset Quotes eld
19653 \end_inset
19654
19655
19656 \family default
19657  or 
19658 \family typewriter
19659
19660 \begin_inset Quotes erd
19661 \end_inset
19662
19663
19664 \family default
19665  as an alternative to 
19666 \begin_inset Quotes eld
19667 \end_inset
19668
19669
19670 \family typewriter
19671 "
19672 \family default
19673
19674 \begin_inset Quotes erd
19675 \end_inset
19676
19677 .
19678 \end_layout
19679
19680 \begin_layout Enumerate
19681
19682 \size small
19683 You should use "
19684 \family typewriter
19685 '
19686 \family default
19687 " (ASCII 39) instead of "
19688 \family typewriter
19689 ´
19690 \family default
19691 " (ASCII 180).
19692 \end_layout
19693
19694 \begin_layout Enumerate
19695
19696 \size small
19697 User-specified pattern found.
19698 \end_layout
19699
19700 \begin_layout Enumerate
19701
19702 \size small
19703 This command might not be intended.
19704 \end_layout
19705
19706 \begin_layout Enumerate
19707
19708 \size small
19709 \emph on
19710 Comment displayed.
19711 \end_layout
19712
19713 \begin_layout Enumerate
19714
19715 \size small
19716 Either 
19717 \family typewriter
19718 ''
19719 \backslash
19720 ,'
19721 \family default
19722  or 
19723 \family typewriter
19724 '
19725 \backslash
19726 ,''
19727 \family default
19728  will look better.
19729 \end_layout
19730
19731 \begin_layout Enumerate
19732
19733 \size small
19734 Delete this space to maintain correct page references.
19735 \end_layout
19736
19737 \begin_layout Enumerate
19738
19739 \size small
19740 \emph on
19741 You might wish to put this between a pair of 
19742 \begin_inset Quotes eld
19743 \end_inset
19744
19745
19746 \family typewriter
19747 {}
19748 \family default
19749
19750 \begin_inset Quotes erd
19751 \end_inset
19752
19753 .
19754 \end_layout
19755
19756 \begin_layout Enumerate
19757
19758 \size small
19759 You ought to remove spaces in front of punctuation.
19760 \end_layout
19761
19762 \begin_layout Enumerate
19763
19764 \size small
19765 Could not execute \SpecialChar LaTeX
19766  command.
19767 \end_layout
19768
19769 \begin_layout Enumerate
19770
19771 \size small
19772 Don't use 
19773 \family typewriter
19774
19775 \backslash
19776 /
19777 \family default
19778  in front of small punctuation.
19779 \end_layout
19780
19781 \begin_layout Enumerate
19782
19783 \family typewriter
19784 \size small
19785 $
19786 \backslash
19787 times$
19788 \family default
19789  may look prettier here.
19790 \end_layout
19791
19792 \begin_layout Enumerate
19793
19794 \size small
19795 \emph on
19796 Multiple spaces detected in output.
19797 \end_layout
19798
19799 \begin_layout Enumerate
19800
19801 \size small
19802 This text may be ignored.
19803 \end_layout
19804
19805 \begin_layout Enumerate
19806
19807 \size small
19808 Use 
19809 \family typewriter
19810
19811 \begin_inset Quotes eld
19812 \end_inset
19813
19814
19815 \family default
19816  to begin quotation, not 
19817 \family typewriter
19818 '
19819 \family default
19820 .
19821 \end_layout
19822
19823 \begin_layout Enumerate
19824
19825 \size small
19826 Use 
19827 \family typewriter
19828 '
19829 \family default
19830  to end quotation, not 
19831 \family typewriter
19832
19833 \begin_inset Quotes eld
19834 \end_inset
19835
19836
19837 \family default
19838 .
19839 \end_layout
19840
19841 \begin_layout Enumerate
19842
19843 \size small
19844 Don't mix quotes.
19845 \end_layout
19846
19847 \begin_layout Enumerate
19848
19849 \size small
19850 You should perhaps use 
19851 \begin_inset Quotes eld
19852 \end_inset
19853
19854
19855 \family typewriter
19856 cmd
19857 \family default
19858
19859 \begin_inset Quotes erd
19860 \end_inset
19861
19862  instead.
19863 \end_layout
19864
19865 \begin_layout Enumerate
19866
19867 \size small
19868 You should put a space in front of/after parenthesis.
19869 \end_layout
19870
19871 \begin_layout Enumerate
19872
19873 \size small
19874 You should avoid spaces in front of/after parenthesis.
19875 \end_layout
19876
19877 \begin_layout Enumerate
19878
19879 \size small
19880 \emph on
19881 You should not use punctuation in front of/after quotes.
19882 \end_layout
19883
19884 \begin_layout Enumerate
19885
19886 \size small
19887 Double space found.
19888 \end_layout
19889
19890 \begin_layout Enumerate
19891
19892 \size small
19893 You should put punctuation outside inner/inside display math mode.
19894 \end_layout
19895
19896 \begin_layout Enumerate
19897
19898 \size small
19899 You ought to not use primitive \SpecialChar TeX
19900  in \SpecialChar LaTeX
19901  code.
19902 \end_layout
19903
19904 \begin_layout Enumerate
19905
19906 \size small
19907 You should remove spaces in front of 
19908 \begin_inset Quotes eld
19909 \end_inset
19910
19911
19912 \family typewriter
19913 %s
19914 \family default
19915
19916 \begin_inset Quotes erd
19917 \end_inset
19918
19919
19920 \end_layout
19921
19922 \begin_layout Enumerate
19923
19924 \size small
19925 \begin_inset Quotes eld
19926 \end_inset
19927
19928
19929 \family typewriter
19930 %s
19931 \family default
19932
19933 \begin_inset Quotes erd
19934 \end_inset
19935
19936  is normally not followed by 
19937 \begin_inset Quotes eld
19938 \end_inset
19939
19940
19941 \family typewriter
19942 %c
19943 \family default
19944
19945 \begin_inset Quotes erd
19946 \end_inset
19947
19948 .
19949 \end_layout
19950
19951 \begin_layout Standard
19952 In later versions of \SpecialChar LyX
19953 , we hope to provide a more complete interface to this
19954  tool (and it's smaller cousin 
19955 \family typewriter
19956 lacheck
19957 \family default
19958 ) to exploit the full power of it.
19959  But it's not exactly useless as it is now: go try it on one of your existing
19960  documents of a certain length and be surprised.
19961 \end_layout
19962
19963 \begin_layout Section
19964 Version Control in \SpecialChar LyX
19965
19966 \end_layout
19967
19968 \begin_layout Standard
19969 by
19970 \noun on
19971  Lars Gullik Bjønnes 
19972 \noun default
19973 and 
19974 \noun on
19975 Pavel Sanda
19976 \end_layout
19977
19978 \begin_layout Subsection
19979 Introduction
19980 \end_layout
19981
19982 \begin_layout Standard
19983 \SpecialChar LyX
19984  supports some of the most basic RCS/CVS/SVN/GIT commands.
19985  If you need something a bit more sophisticated you will have to do that
19986  manually in a terminal.
19987 \end_layout
19988
19989 \begin_layout Standard
19990 Also note that CVS support is not as good as subversion support so we advise
19991  using SVN instead.
19992  A good place to start learning Subversion is SVN Book
19993 \begin_inset Foot
19994 status open
19995
19996 \begin_layout Plain Layout
19997 \begin_inset CommandInset href
19998 LatexCommand href
19999 target "http://svnbook.red-bean.com/"
20000
20001 \end_inset
20002
20003
20004 \end_layout
20005
20006 \end_inset
20007
20008 .
20009  In the case of RCS you should read 
20010 \begin_inset Quotes eld
20011 \end_inset
20012
20013 rcsintro
20014 \begin_inset Quotes erd
20015 \end_inset
20016
20017  (a man file, read it with 
20018 \family typewriter
20019 man rcsintro
20020 \family default
20021 ).
20022  This file describes all the basic features of RCS.
20023  You should especially notice the comment about a RCS directory, and the
20024  notion of a master RCS file (the file ending in 
20025 \family typewriter
20026 ,v
20027 \family default
20028 ).
20029 \end_layout
20030
20031 \begin_layout Standard
20032 Before you begin to use the version control features in \SpecialChar LyX
20033 , you should be
20034  familiar with RCS/CVS/SVN/GIT usage.
20035  The implementation in \SpecialChar LyX
20036  assumes a recent version of the GNU RCS or CVS/SVN
20037  package — no guarantees are made for older versions.
20038  Most of the log messages are not currently displayed after operations —
20039  you can check them in the Messages pane if unsure.
20040  Regular users of version control will appreciate VC toolbar, which can
20041  be enabled via 
20042 \family sans
20043 View\SpecialChar menuseparator
20044 Toolbars\SpecialChar menuseparator
20045 Version
20046 \begin_inset space ~
20047 \end_inset
20048
20049 Control
20050 \family default
20051 .
20052 \end_layout
20053
20054 \begin_layout Standard
20055 For introducing your own external commands consult vc-command in the manual
20056  of \SpecialChar LyX
20057  functions.
20058 \change_inserted -195340706 1447278952
20059
20060 \end_layout
20061
20062 \begin_layout Standard
20063
20064 \change_inserted -195340706 1447279250
20065 It is strongly recommended to store documents in uncompressed format if
20066  using version control (uncheck 
20067 \family sans
20068 Document\SpecialChar menuseparator
20069 Compressed
20070 \family default
20071  if it is checked): Uncompressed LyX documents are text files and therefore
20072  for merging two different versions by version control systems.
20073  Compressed LyX documents are binary files, which cannot be merged by version
20074  control systems.
20075 \change_unchanged
20076
20077 \end_layout
20078
20079 \begin_layout Subsection
20080 RCS commands in \SpecialChar LyX
20081
20082 \end_layout
20083
20084 \begin_layout Standard
20085 The following sections describe the RCS commands supported by \SpecialChar LyX
20086 .
20087  You can find them in the 
20088 \family sans
20089 File\SpecialChar menuseparator
20090 Version
20091 \begin_inset space ~
20092 \end_inset
20093
20094 Control
20095 \family default
20096  submenu.
20097  \SpecialChar LyX
20098  was tested against RCS 5.7/5.8
20099 \begin_inset Foot
20100 status open
20101
20102 \begin_layout Plain Layout
20103 Note that old DOS / MS Windows builds (5.7) need to setup environment variables
20104  in order to work properly with \SpecialChar LyX
20105 .
20106  In particular time zone (TZ) should be set and more importantly RCSINIT
20107  in order to change default archive location ("SET RCSINIT=-x,v/") — \SpecialChar LyX
20108  expects
20109  archive to be found in file.lyx,v within the original document directory.
20110  See also README shipped with Windows RCS binaries.
20111 \end_layout
20112
20113 \end_inset
20114
20115 .
20116 \end_layout
20117
20118 \begin_layout Subsubsection
20119
20120 \family sans
20121 Register
20122 \end_layout
20123
20124 \begin_layout Standard
20125 If your document is not under revision control, this is the only item shown
20126  in the menu.
20127  And if it is under revision control, the 
20128 \family sans
20129 Register
20130 \family default
20131  item is not visible.
20132  
20133 \end_layout
20134
20135 \begin_layout Standard
20136 This command registers your document with RCS (unless you are under the
20137  directory managed by CVS)\SpecialChar endofsentence
20138  You are asked interactively to supply an initial
20139  description of the document.
20140  The document is now set in Read-Only mode and you have to 
20141 \family sans
20142 Check
20143 \begin_inset space ~
20144 \end_inset
20145
20146 Out
20147 \begin_inset space ~
20148 \end_inset
20149
20150 For
20151 \begin_inset space ~
20152 \end_inset
20153
20154 Edit
20155 \family default
20156 , before making any changes to it.
20157  A document under revision control has a 
20158 \begin_inset Quotes eld
20159 \end_inset
20160
20161 [RCS:<version> <locker>]
20162 \begin_inset Quotes erd
20163 \end_inset
20164
20165  item tagged to the filename in the minibuffer.
20166 \end_layout
20167
20168 \begin_layout Standard
20169 RCS command that is run: 
20170 \family typewriter
20171 ci -q -u -i -t-"<initial description>" <file-name>
20172 \end_layout
20173
20174 \begin_layout Standard
20175 Read 
20176 \family typewriter
20177 man ci
20178 \family default
20179  to understand the switches.
20180  
20181 \end_layout
20182
20183 \begin_layout Subsubsection
20184
20185 \family sans
20186 Check In Changes
20187 \end_layout
20188
20189 \begin_layout Standard
20190 When you are finished editing a file, you check in your changes.
20191  When you do this, you are asked for a description of the changes.
20192  This is stored in the history log.
20193  The version number is bumped, your changes are applied to the master RCS
20194  file, the document is unlocked and set to Read-Only mode.
20195 \end_layout
20196
20197 \begin_layout Standard
20198 RCS command: 
20199 \family typewriter
20200 ci -q -u -m"<description>" <file-name>
20201 \end_layout
20202
20203 \begin_layout Subsubsection
20204
20205 \family sans
20206 Check Out For Edit
20207 \end_layout
20208
20209 \begin_layout Standard
20210 By doing this you lock the document so that only you can edit it.
20211  This will also make the document Read-Write only for you.
20212  You will usually continue editing for a while and when you are finished
20213  you check in your changes.
20214  The status line is changed to reflect that you have locked the file.
20215 \end_layout
20216
20217 \begin_layout Standard
20218 RCS command: 
20219 \family typewriter
20220 co -q -l <file-name>
20221 \end_layout
20222
20223 \begin_layout Subsubsection
20224
20225 \family sans
20226 Revert To Repository Version
20227 \end_layout
20228
20229 \begin_layout Standard
20230 This will discard all changes made to the document since the last check
20231  in.
20232  You get a warning before changes are discarded.
20233 \end_layout
20234
20235 \begin_layout Standard
20236 RCS command: 
20237 \family typewriter
20238 co -f -u<version> <file-name>
20239 \end_layout
20240
20241 \begin_layout Subsubsection
20242
20243 \family sans
20244 Copy
20245 \end_layout
20246
20247 \begin_layout Standard
20248 This will create a copy of the current document.
20249  Since RCS does not support copy operations natively, the version history
20250  is not preserved, and the copy is added as a new file.
20251  It requires a clean document without any changes since the last checkin.
20252  You are asked for a file name and a description of the copy operation.
20253  After that the copy is created, both locally and in the repository.
20254  If the parent directories of the copied and original document differ, all
20255  relative paths of included files of the copy are adjusted (like in 
20256 \family sans
20257 File\SpecialChar menuseparator
20258 Save As
20259 \family default
20260 \SpecialChar ldots
20261 ).
20262  Finally, the copy is loaded instead of the original document.
20263 \end_layout
20264
20265 \begin_layout Labeling
20266 \labelwidthstring 00.00.0000
20267 RCS
20268 \begin_inset space ~
20269 \end_inset
20270
20271 commands: 
20272 \begin_inset space ~
20273 \end_inset
20274
20275
20276 \begin_inset Newline newline
20277 \end_inset
20278
20279 Copy 
20280 \begin_inset Flex Code
20281 status collapsed
20282
20283 \begin_layout Plain Layout
20284
20285 \family typewriter
20286 \begin_inset Quotes eld
20287 \end_inset
20288
20289 <file-name>
20290 \begin_inset Quotes erd
20291 \end_inset
20292
20293
20294 \end_layout
20295
20296 \end_inset
20297
20298  to 
20299 \begin_inset Flex Code
20300 status collapsed
20301
20302 \begin_layout Plain Layout
20303
20304 \family typewriter
20305 \begin_inset Quotes eld
20306 \end_inset
20307
20308 <new-file-name>
20309 \begin_inset Quotes erd
20310 \end_inset
20311
20312
20313 \end_layout
20314
20315 \end_inset
20316
20317
20318 \begin_inset Newline newline
20319 \end_inset
20320
20321
20322 \begin_inset Flex Code
20323 status collapsed
20324
20325 \begin_layout Plain Layout
20326 ci -q -u 
20327 \family typewriter
20328 -i 
20329 \begin_inset Quotes eld
20330 \end_inset
20331
20332 <new-file-name>
20333 \begin_inset Quotes erd
20334 \end_inset
20335
20336
20337 \end_layout
20338
20339 \end_inset
20340
20341
20342 \end_layout
20343
20344 \begin_layout Subsubsection
20345
20346 \family sans
20347 Undo Last Checkin
20348 \end_layout
20349
20350 \begin_layout Standard
20351 This makes as if the last check in never happened.
20352  No changes are made to the document loaded into \SpecialChar LyX
20353 , but the last version
20354  is removed from the master RCS file.
20355 \end_layout
20356
20357 \begin_layout Standard
20358 RCS command: 
20359 \family typewriter
20360 rcs -o<version> <file-name>
20361 \end_layout
20362
20363 \begin_layout Subsubsection
20364
20365 \family sans
20366 Show History
20367 \end_layout
20368
20369 \begin_layout Standard
20370 This shows the complete history of the RCS document.
20371  The output of 
20372 \family typewriter
20373 rlog <file-name>
20374 \family default
20375  is shown in a browser.
20376  See 
20377 \family typewriter
20378 man rlog
20379 \family default
20380  for more info.
20381 \end_layout
20382
20383 \begin_layout Subsubsection
20384 Revision info
20385 \end_layout
20386
20387 \begin_layout Standard
20388 \SpecialChar LyX
20389  supports RCS version number, author name, date and time of last commit.
20390  All those are extracted from 
20391 \family typewriter
20392 rlog -r <file-name>
20393 \family default
20394 .
20395  See 
20396 \begin_inset CommandInset ref
20397 LatexCommand ref
20398 reference "subsec:VCS-Revision-Information"
20399
20400 \end_inset
20401
20402  for details.
20403 \end_layout
20404
20405 \begin_layout Subsection
20406 CVS commands in \SpecialChar LyX
20407
20408 \end_layout
20409
20410 \begin_layout Standard
20411 A subset of CVS operations is supported by \SpecialChar LyX
20412 .
20413  You can find the commands in the 
20414 \family sans
20415 File\SpecialChar menuseparator
20416 Version
20417 \begin_inset space ~
20418 \end_inset
20419
20420 Control
20421 \family default
20422  submenu.
20423  The version control system SVN is more powerful, so please use it instead
20424  of CVS if possible.
20425 \end_layout
20426
20427 \begin_layout Subsubsection
20428
20429 \family sans
20430 General CVS usage
20431 \end_layout
20432
20433 \begin_layout Standard
20434 If you start from scratch with CVS you have to create your repository and
20435  checkout the working copy with external tools.
20436  If you're using a client-server setup you may need to login before doing
20437  the first repository checkout.
20438 \end_layout
20439
20440 \begin_layout Standard
20441 If your documents are under revision control and others are using the same
20442  repository problems arise when different changes to the same document at
20443  the same location happen.
20444  Standard CVS repositories don't operate with a file locking mechanism.
20445  This may be surprising, but conflicts only occur if people disagree on
20446  the proper content of the same part of a document.
20447  So, if co-workers are used to communicate regularly, these conflicts occur
20448  rarely.
20449  If they don't communicate they have a fundamental problem anyway.
20450  Nevertheless some people like to work with so called 
20451 \begin_inset Quotes eld
20452 \end_inset
20453
20454 reserved checkouts
20455 \begin_inset Quotes erd
20456 \end_inset
20457
20458 .
20459  If they do so the working copy of all files is readonly when checked out
20460  first and the user starts editing after using a special command to make
20461  the working copy writable.
20462  When the changes are checked in the working copy returns to readonly state.
20463  With \SpecialChar LyX
20464  one has to edit the 
20465 \begin_inset Flex Code
20466 status collapsed
20467
20468 \begin_layout Plain Layout
20469 .cvsrc
20470 \end_layout
20471
20472 \end_inset
20473
20474  file and add the line 
20475 \begin_inset Flex Code
20476 status collapsed
20477
20478 \begin_layout Plain Layout
20479 cvs -r
20480 \end_layout
20481
20482 \end_inset
20483
20484  to work with reserved checkouts.
20485  The benefit is the possibility to see who is using a writable copy of some
20486  document.
20487  It's not guaranteed only one user makes a copy writable.
20488 \end_layout
20489
20490 \begin_layout Standard
20491 \SpecialChar LyX
20492  tries to guess if you're using reserved or non-reserved checkouts.
20493  If your working copy is readonly or it is writable and an additional copy
20494  of your document exists in the CVS/Base sub-directory a reserved otherwise
20495  a non-reserved checkout is assumed.
20496  When a reserved checkout is detected you have to use 
20497 \begin_inset Flex MenuItem
20498 status collapsed
20499
20500 \begin_layout Plain Layout
20501 Check Out
20502 \end_layout
20503
20504 \end_inset
20505
20506  to make your working copy writable if it's readonly.
20507  After doing so the 
20508 \begin_inset Flex MenuItem
20509 status collapsed
20510
20511 \begin_layout Plain Layout
20512 Check In
20513 \end_layout
20514
20515 \end_inset
20516
20517  operation is possible and that makes your working copy readonly again after
20518  transferring your changes to the repository.
20519 \end_layout
20520
20521 \begin_layout Standard
20522 More information about CVS can be found here 
20523 \begin_inset Flex URL
20524 status collapsed
20525
20526 \begin_layout Plain Layout
20527
20528 http://www.nongnu.org/cvs
20529 \end_layout
20530
20531 \end_inset
20532
20533  and here 
20534 \begin_inset Flex URL
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538
20539 http://ximbiot.com/cvs
20540 \end_layout
20541
20542 \end_inset
20543
20544 .
20545 \end_layout
20546
20547 \begin_layout Standard
20548 Read 
20549 \family typewriter
20550 man cvs
20551 \family default
20552  to understand the sub-commands and the switches mentioned below.
20553 \end_layout
20554
20555 \begin_layout Subsubsection
20556
20557 \family sans
20558 Register
20559 \end_layout
20560
20561 \begin_layout Standard
20562 If your document is not under revision control, this is the only item shown
20563  in the menu.
20564  And if it is under revision control, the 
20565 \family sans
20566 \bar under
20567 R
20568 \bar default
20569 egister
20570 \family default
20571  item is not visible.
20572  
20573 \end_layout
20574
20575 \begin_layout Standard
20576 This command registers in CVS your document 
20577 \begin_inset Flex Strong
20578 status collapsed
20579
20580 \begin_layout Plain Layout
20581
20582 \emph on
20583 only
20584 \end_layout
20585
20586 \end_inset
20587
20588  in the case you have already the documents directory under CVS control
20589  (in particular 
20590 \family typewriter
20591 CVS/Entries
20592 \family default
20593  file exists).
20594  This means you have to create or checkout the archive by yourself using
20595  external tools.
20596  (In case you forget that step \SpecialChar LyX
20597  registers the document with RCS.)
20598 \end_layout
20599
20600 \begin_layout Standard
20601 Then you are asked interactively to supply an initial description of the
20602  document.
20603  Don't forget that registered file is not yet checked in.
20604 \end_layout
20605
20606 \begin_layout Standard
20607 CVS command that is run: 
20608 \family typewriter
20609 cvs -q add -m"<entered message>" "<file-name>"
20610 \end_layout
20611
20612 \begin_layout Standard
20613 The term 
20614 \family typewriter
20615 "<file-name>"
20616 \family default
20617  above and for all other CVS commands is an abbreviation for 
20618 \begin_inset Quotes eld
20619 \end_inset
20620
20621 change the current working directory to file location and use the file name
20622  without path component as argument
20623 \begin_inset Quotes erd
20624 \end_inset
20625
20626 .
20627 \end_layout
20628
20629 \begin_layout Subsubsection
20630
20631 \family sans
20632 Check In Changes
20633 \end_layout
20634
20635 \begin_layout Standard
20636 When you are finished editing a file, you commit your changes.
20637  When you do this and you had changed the document, you are asked for a
20638  description of the changes.
20639  After that changes are written to the repository.
20640  In case you didn't change the document and a reserved checkout is detected
20641  the reservation made on 
20642 \begin_inset Flex MenuItem
20643 status collapsed
20644
20645 \begin_layout Plain Layout
20646 Check Out
20647 \end_layout
20648
20649 \end_inset
20650
20651  is undone.
20652 \end_layout
20653
20654 \begin_layout Labeling
20655 \labelwidthstring 00.00.0000
20656 CVS
20657 \begin_inset space ~
20658 \end_inset
20659
20660 command: 
20661 \begin_inset space ~
20662 \end_inset
20663
20664
20665 \begin_inset Newline newline
20666 \end_inset
20667
20668
20669 \begin_inset Flex Code
20670 status collapsed
20671
20672 \begin_layout Plain Layout
20673 cvs 
20674 \family typewriter
20675 -q commit -m"<description>" "<file-name>"
20676 \end_layout
20677
20678 \end_inset
20679
20680  or
20681 \begin_inset Newline newline
20682 \end_inset
20683
20684
20685 \begin_inset Flex Code
20686 status collapsed
20687
20688 \begin_layout Plain Layout
20689 cvs -q unedit 
20690 \family typewriter
20691 "<file-name>"
20692 \end_layout
20693
20694 \end_inset
20695
20696
20697 \end_layout
20698
20699 \begin_layout Subsubsection
20700
20701 \family sans
20702 Check Out Changes
20703 \end_layout
20704
20705 \begin_layout Standard
20706 When you are sharing a repository with others, you may have to incorporate
20707  their changes into your working copy.
20708 \end_layout
20709
20710 \begin_layout Standard
20711 CVS command: 
20712 \family typewriter
20713 cvs -q update "<file-name>"
20714 \end_layout
20715
20716 \begin_layout Standard
20717 If a readonly checkout is detected the working copy is made writable and
20718  reserved.
20719 \end_layout
20720
20721 \begin_layout Standard
20722 CVS command: 
20723 \family typewriter
20724 cvs -q edit "<file-name>"
20725 \end_layout
20726
20727 \begin_layout Subsubsection
20728
20729 \family sans
20730 Revert To Repository Version
20731 \end_layout
20732
20733 \begin_layout Standard
20734 This will discard all changes made to the document since the last check
20735  in.
20736  You get a warning before changes are discarded.
20737  Firstly the file is deleted, secondly CVS update command is run.
20738 \end_layout
20739
20740 \begin_layout Standard
20741 CVS command: 
20742 \family typewriter
20743 cvs -q update "<file-name>"
20744 \end_layout
20745
20746 \begin_layout Standard
20747 If a reserved checkout is detected and the working copy has no changes only
20748  the reservation is undone.
20749 \end_layout
20750
20751 \begin_layout Standard
20752 CVS command: 
20753 \family typewriter
20754 cvs -q unedit "<file-name>"
20755 \end_layout
20756
20757 \begin_layout Subsubsection
20758
20759 \family sans
20760 Copy
20761 \end_layout
20762
20763 \begin_layout Standard
20764 This will create a copy of the current document.
20765  Since CVS does not support copy operations natively, the version history
20766  is not preserved, and the copy is added as a new file.
20767  It requires a clean document without any changes since the last checkin.
20768  You are asked for a file name and a description of the copy operation.
20769  After that the copy is created, both locally and in the repository.
20770  If the parent directories of the copied and original document differ, all
20771  relative paths of included files of the copy are adjusted (like in 
20772 \family sans
20773 File\SpecialChar menuseparator
20774 Save As
20775 \family default
20776 \SpecialChar ldots
20777 ).
20778  Finally, the copy is loaded instead of the original document.
20779 \end_layout
20780
20781 \begin_layout Labeling
20782 \labelwidthstring 00.00.0000
20783 CVS
20784 \begin_inset space ~
20785 \end_inset
20786
20787 commands: 
20788 \begin_inset space ~
20789 \end_inset
20790
20791
20792 \begin_inset Newline newline
20793 \end_inset
20794
20795 Copy 
20796 \begin_inset Flex Code
20797 status collapsed
20798
20799 \begin_layout Plain Layout
20800
20801 \family typewriter
20802 \begin_inset Quotes eld
20803 \end_inset
20804
20805 <file-name>
20806 \begin_inset Quotes erd
20807 \end_inset
20808
20809
20810 \end_layout
20811
20812 \end_inset
20813
20814  to 
20815 \begin_inset Flex Code
20816 status collapsed
20817
20818 \begin_layout Plain Layout
20819
20820 \family typewriter
20821 \begin_inset Quotes eld
20822 \end_inset
20823
20824 <new-file-name>
20825 \begin_inset Quotes erd
20826 \end_inset
20827
20828
20829 \end_layout
20830
20831 \end_inset
20832
20833
20834 \begin_inset Newline newline
20835 \end_inset
20836
20837
20838 \begin_inset Flex Code
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842 cvs -q add 
20843 \family typewriter
20844
20845 \begin_inset Quotes eld
20846 \end_inset
20847
20848 <new-file-name>
20849 \begin_inset Quotes erd
20850 \end_inset
20851
20852
20853 \end_layout
20854
20855 \end_inset
20856
20857
20858 \end_layout
20859
20860 \begin_layout Subsubsection
20861
20862 \family sans
20863 Rename
20864 \end_layout
20865
20866 \begin_layout Standard
20867 This will rename the current document.
20868  Since CVS does not support rename operations natively, the version history
20869  is not preserved, the renamed document is added as a new file, and the
20870  original document is deleted.
20871  It requires a clean document without any changes since the last checkin.
20872  You are asked for a file name and a description of the rename operation.
20873  After that the document is renamed, both locally and in the repository.
20874  If the parent directories of the new and old file names differ, all relative
20875  paths of included files are adjusted (like in 
20876 \family sans
20877 File\SpecialChar menuseparator
20878 Save As
20879 \family default
20880 \SpecialChar ldots
20881 ).
20882  Finally, the document is reloaded using the new name.
20883 \end_layout
20884
20885 \begin_layout Labeling
20886 \labelwidthstring 00.00.0000
20887 CVS
20888 \begin_inset space ~
20889 \end_inset
20890
20891 commands: 
20892 \begin_inset space ~
20893 \end_inset
20894
20895
20896 \begin_inset Newline newline
20897 \end_inset
20898
20899 Rename 
20900 \begin_inset Flex Code
20901 status collapsed
20902
20903 \begin_layout Plain Layout
20904
20905 \family typewriter
20906 \begin_inset Quotes eld
20907 \end_inset
20908
20909 <file-name>
20910 \begin_inset Quotes erd
20911 \end_inset
20912
20913
20914 \end_layout
20915
20916 \end_inset
20917
20918  to 
20919 \begin_inset Flex Code
20920 status collapsed
20921
20922 \begin_layout Plain Layout
20923
20924 \family typewriter
20925 \begin_inset Quotes eld
20926 \end_inset
20927
20928 <new-file-name>
20929 \begin_inset Quotes erd
20930 \end_inset
20931
20932
20933 \end_layout
20934
20935 \end_inset
20936
20937
20938 \begin_inset Newline newline
20939 \end_inset
20940
20941
20942 \begin_inset Flex Code
20943 status collapsed
20944
20945 \begin_layout Plain Layout
20946 cvs -q add 
20947 \family typewriter
20948
20949 \begin_inset Quotes eld
20950 \end_inset
20951
20952 <new-file-name>
20953 \begin_inset Quotes erd
20954 \end_inset
20955
20956
20957 \end_layout
20958
20959 \end_inset
20960
20961
20962 \begin_inset Newline newline
20963 \end_inset
20964
20965
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970 cvs -q remove 
20971 \family typewriter
20972
20973 \begin_inset Quotes eld
20974 \end_inset
20975
20976 <file-name>
20977 \begin_inset Quotes erd
20978 \end_inset
20979
20980
20981 \end_layout
20982
20983 \end_inset
20984
20985
20986 \end_layout
20987
20988 \begin_layout Subsubsection
20989 Update of the local directory checkout from repository
20990 \end_layout
20991
20992 \begin_layout Standard
20993 Once your documents gets more complex, containing sub-documents and pictures,
20994  including external 
20995 \begin_inset Flex Code
20996 status collapsed
20997
20998 \begin_layout Plain Layout
20999 .tex
21000 \end_layout
21001
21002 \end_inset
21003
21004  files and so on using version control becomes more complicated.
21005  \SpecialChar LyX
21006  supports updating the whole tree in which resides the document.
21007  This become especially useful once you cooperate with people which neither
21008  have detailed knowledge about CVS usage nor they have ambition to commit
21009  additional material to the repository.
21010  You have to organize the files structure so that all external files are
21011  in the same directory or subdirectories of the document.
21012  It's good practice anyway to store multipart documents in an extra directory.
21013 \end_layout
21014
21015 \begin_layout Standard
21016 The 
21017 \begin_inset Flex Code
21018 status collapsed
21019
21020 \begin_layout Plain Layout
21021 Update local directory from repository
21022 \end_layout
21023
21024 \end_inset
21025
21026  command updates the whole directory.
21027  If local changes are detected user is warned before update starts.
21028  In case of merge conflicts both versions of the conflicting document parts
21029  are placed in the final document.
21030  You have to review and correct the result of the merge.
21031  You'll find the conflicts enclosed in pairs of 
21032 \begin_inset Flex Code
21033 status collapsed
21034
21035 \begin_layout Plain Layout
21036 <<<<<<<
21037 \end_layout
21038
21039 \end_inset
21040
21041  and 
21042 \begin_inset Flex Code
21043 status collapsed
21044
21045 \begin_layout Plain Layout
21046 >>>>>>>
21047 \end_layout
21048
21049 \end_inset
21050
21051  separated by 
21052 \begin_inset Flex Code
21053 status collapsed
21054
21055 \begin_layout Plain Layout
21056 =======
21057 \end_layout
21058
21059 \end_inset
21060
21061 .
21062  The first part is your version as before the update operation with the
21063  document name prepended.
21064  The second one is the repository version with the version number after
21065  the sequence of 
21066 \begin_inset Flex Code
21067 status collapsed
21068
21069 \begin_layout Plain Layout
21070 >
21071 \end_layout
21072
21073 \end_inset
21074
21075  signs.
21076 \end_layout
21077
21078 \begin_layout Labeling
21079 \labelwidthstring 00.00.0000
21080 CVS
21081 \begin_inset space ~
21082 \end_inset
21083
21084 commands: 
21085 \begin_inset space ~
21086 \end_inset
21087
21088
21089 \begin_inset Newline newline
21090 \end_inset
21091
21092
21093 \begin_inset Flex Code
21094 status collapsed
21095
21096 \begin_layout Plain Layout
21097 cd $path; cvs diff 
21098 \family typewriter
21099 "."
21100 \end_layout
21101
21102 \end_inset
21103
21104  (Ask if changes are detected.)
21105 \begin_inset Newline newline
21106 \end_inset
21107
21108
21109 \begin_inset Flex Code
21110 status collapsed
21111
21112 \begin_layout Plain Layout
21113 cd $path; cvs -q update 
21114 \family typewriter
21115 "."
21116 \end_layout
21117
21118 \end_inset
21119
21120
21121 \end_layout
21122
21123 \begin_layout Standard
21124 where 
21125 \begin_inset Flex Code
21126 status collapsed
21127
21128 \begin_layout Plain Layout
21129 $path
21130 \end_layout
21131
21132 \end_inset
21133
21134  stands for the path to the document.
21135 \end_layout
21136
21137 \begin_layout Subsubsection
21138
21139 \family sans
21140 Show History
21141 \end_layout
21142
21143 \begin_layout Standard
21144 This shows the complete history of the CVS document.
21145  The output of 
21146 \family typewriter
21147 cvs log "<file-name>"
21148 \family default
21149  is shown in a browser.
21150 \end_layout
21151
21152 \begin_layout Subsubsection
21153 Revision info
21154 \end_layout
21155
21156 \begin_layout Standard
21157 \SpecialChar LyX
21158  supports CVS version number, author name, date and time of last commit.
21159  All those are extracted from 
21160 \family typewriter
21161 cvs log -r <file-name>
21162 \family default
21163 .
21164  See 
21165 \begin_inset CommandInset ref
21166 LatexCommand ref
21167 reference "subsec:VCS-Revision-Information"
21168
21169 \end_inset
21170
21171  for details.
21172 \end_layout
21173
21174 \begin_layout Subsection
21175 SVN commands in \SpecialChar LyX
21176
21177 \end_layout
21178
21179 \begin_layout Standard
21180 SVN is now partially supported by \SpecialChar LyX
21181 .
21182  You can find the commands in the 
21183 \family sans
21184 File\SpecialChar menuseparator
21185 Version
21186 \begin_inset space ~
21187 \end_inset
21188
21189 Control
21190 \family default
21191  submenu.
21192  Please note that if you use password protected access to repository via
21193  ssh, you will be asked in terminal window.
21194  \SpecialChar LyX
21195  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21196 \begin_inset Foot
21197 status open
21198
21199 \begin_layout Plain Layout
21200 Most of the commands will work with 1.4 too, see 
21201 \begin_inset CommandInset ref
21202 LatexCommand ref
21203 reference "subsec:SVN-Repo-Update"
21204
21205 \end_inset
21206
21207 .
21208  There seems to be currently unresolved permissions problem under SVN 1.8
21209  with reverting changes when file is locked.
21210 \end_layout
21211
21212 \end_inset
21213
21214
21215 \end_layout
21216
21217 \begin_layout Subsubsection
21218
21219 \family sans
21220 Register
21221 \end_layout
21222
21223 \begin_layout Standard
21224 If your document is not under revision control, this is the only item shown
21225  in the menu.
21226  And if it is under revision control, the 
21227 \family sans
21228 \bar under
21229 R
21230 \bar default
21231 egister
21232 \family default
21233  item is not visible.
21234 \end_layout
21235
21236 \begin_layout Standard
21237 This command registers in SVN your document ONLY in case you have already
21238  the documents directory under SVN control (in particular 
21239 \family typewriter
21240 .svn/entries
21241 \family default
21242  file exists).
21243  This means you have to checkout the archive by yourself.
21244 \end_layout
21245
21246 \begin_layout Standard
21247 Then you are asked interactively to supply an initial description of the
21248  document.
21249  Don't forget that registered file is not yet commited.
21250 \end_layout
21251
21252 \begin_layout Standard
21253 SVN command that is run: 
21254 \family typewriter
21255 svn add -q 
21256 \begin_inset Quotes eld
21257 \end_inset
21258
21259 <file-name>
21260 \begin_inset Quotes erd
21261 \end_inset
21262
21263
21264 \end_layout
21265
21266 \begin_layout Standard
21267 Read 
21268 \family typewriter
21269 man svn
21270 \family default
21271  to understand the switches.
21272 \end_layout
21273
21274 \begin_layout Subsubsection
21275
21276 \family sans
21277 Check In Changes
21278 \end_layout
21279
21280 \begin_layout Standard
21281 When you are finished editing a file, you commit your changes.
21282  When you do this, you are asked for a description of the changes.
21283  After that changes are commited.
21284 \end_layout
21285
21286 \begin_layout Standard
21287 SVN command:
21288 \begin_inset Foot
21289 status collapsed
21290
21291 \begin_layout Plain Layout
21292 In case locking is not enabled.
21293  See Section 
21294 \begin_inset CommandInset ref
21295 LatexCommand ref
21296 reference "subsec:SVN-File-Locking"
21297
21298 \end_inset
21299
21300 .
21301 \end_layout
21302
21303 \end_inset
21304
21305  
21306 \family typewriter
21307 svn commit -q -m"<description>" <file-name>
21308 \end_layout
21309
21310 \begin_layout Subsubsection
21311
21312 \family sans
21313 Check Out For Edit
21314 \end_layout
21315
21316 \begin_layout Standard
21317 Updates the changes of this file from the repository.
21318  Be sure you understand SVN merging and conflicts resolving before using
21319  this function, because all conflicts has to be resolved manually by you!
21320 \end_layout
21321
21322 \begin_layout Standard
21323 SVN command:
21324 \begin_inset Foot
21325 status collapsed
21326
21327 \begin_layout Plain Layout
21328 Ditto.
21329 \end_layout
21330
21331 \end_inset
21332
21333  
21334 \family typewriter
21335 svn update --non-interactive 
21336 \begin_inset Quotes eld
21337 \end_inset
21338
21339 <file-name>
21340 \begin_inset Quotes erd
21341 \end_inset
21342
21343
21344 \end_layout
21345
21346 \begin_layout Subsubsection
21347
21348 \family sans
21349 Revert To Repository Version
21350 \end_layout
21351
21352 \begin_layout Standard
21353 This will discard all changes made to the document since the last check
21354  in.
21355  You get a warning before changes are discarded.
21356 \end_layout
21357
21358 \begin_layout Standard
21359 SVN command: 
21360 \family typewriter
21361 svn revert -q 
21362 \begin_inset Quotes eld
21363 \end_inset
21364
21365 <file-name>
21366 \begin_inset Quotes erd
21367 \end_inset
21368
21369
21370 \end_layout
21371
21372 \begin_layout Subsubsection
21373
21374 \family sans
21375 Copy
21376 \end_layout
21377
21378 \begin_layout Standard
21379 This will create a copy of the current document including the version history.
21380  It requires a clean document without any changes since the last checkin.
21381  You are asked for a file name and a description of the copy operation.
21382  After that the copy is created, both locally and in the repository.
21383  If the parent directories of the copied and original document differ, all
21384  relative paths of included files of the copy are adjusted (like in 
21385 \family sans
21386 File\SpecialChar menuseparator
21387 Save As
21388 \family default
21389 \SpecialChar ldots
21390 ).
21391  Finally, the copy is loaded instead of the original document.
21392 \end_layout
21393
21394 \begin_layout Labeling
21395 \labelwidthstring 00.00.0000
21396 SVN
21397 \begin_inset space ~
21398 \end_inset
21399
21400 commands: 
21401 \begin_inset space ~
21402 \end_inset
21403
21404
21405 \begin_inset Newline newline
21406 \end_inset
21407
21408
21409 \begin_inset Flex Code
21410 status collapsed
21411
21412 \begin_layout Plain Layout
21413 svn copy -q 
21414 \family typewriter
21415
21416 \begin_inset Quotes eld
21417 \end_inset
21418
21419 <file-name>
21420 \begin_inset Quotes erd
21421 \end_inset
21422
21423  
21424 \begin_inset Quotes eld
21425 \end_inset
21426
21427 <new-file-name>
21428 \begin_inset Quotes erd
21429 \end_inset
21430
21431
21432 \end_layout
21433
21434 \end_inset
21435
21436
21437 \begin_inset Newline newline
21438 \end_inset
21439
21440
21441 \begin_inset Flex Code
21442 status collapsed
21443
21444 \begin_layout Plain Layout
21445 svn commit
21446 \end_layout
21447
21448 \end_inset
21449
21450
21451 \end_layout
21452
21453 \begin_layout Subsubsection
21454
21455 \family sans
21456 Rename
21457 \end_layout
21458
21459 \begin_layout Standard
21460 This will rename the current document including the version history.
21461  It requires a clean document without any changes since the last checkin.
21462  You are asked for a file name and a description of the rename operation.
21463  After that the document is renamed, both locally and in the repository.
21464  If the parent directories of the new and old file names differ, all relative
21465  paths of included files are adjusted (like in 
21466 \family sans
21467 File\SpecialChar menuseparator
21468 Save As
21469 \family default
21470 \SpecialChar ldots
21471 ).
21472  Finally, the document is reloaded using the new name.
21473 \end_layout
21474
21475 \begin_layout Labeling
21476 \labelwidthstring 00.00.0000
21477 SVN
21478 \begin_inset space ~
21479 \end_inset
21480
21481 commands: 
21482 \begin_inset space ~
21483 \end_inset
21484
21485
21486 \begin_inset Newline newline
21487 \end_inset
21488
21489
21490 \begin_inset Flex Code
21491 status collapsed
21492
21493 \begin_layout Plain Layout
21494 svn move -q 
21495 \family typewriter
21496
21497 \begin_inset Quotes eld
21498 \end_inset
21499
21500 <file-name>
21501 \begin_inset Quotes erd
21502 \end_inset
21503
21504  
21505 \begin_inset Quotes eld
21506 \end_inset
21507
21508 <new-file-name>
21509 \begin_inset Quotes erd
21510 \end_inset
21511
21512
21513 \end_layout
21514
21515 \end_inset
21516
21517
21518 \begin_inset Newline newline
21519 \end_inset
21520
21521
21522 \begin_inset Flex Code
21523 status collapsed
21524
21525 \begin_layout Plain Layout
21526 svn commit
21527 \end_layout
21528
21529 \end_inset
21530
21531
21532 \end_layout
21533
21534 \begin_layout Subsubsection
21535 \begin_inset CommandInset label
21536 LatexCommand label
21537 name "subsec:SVN-Repo-Update"
21538
21539 \end_inset
21540
21541 Update of the local directory checkout from repository
21542 \begin_inset Foot
21543 status collapsed
21544
21545 \begin_layout Plain Layout
21546 Note that this command will work only with subversion 
21547 \begin_inset Formula $\geqq1.5$
21548 \end_inset
21549
21550
21551 \end_layout
21552
21553 \end_inset
21554
21555
21556 \end_layout
21557
21558 \begin_layout Standard
21559 All the commands above have one shortcomming - they deal with the current
21560  document only.
21561  Once your document contains pictures, includes external 
21562 \begin_inset Flex Code
21563 status collapsed
21564
21565 \begin_layout Plain Layout
21566 .tex
21567 \end_layout
21568
21569 \end_inset
21570
21571  files and so on administration becomes more complicated.
21572  \SpecialChar LyX
21573  now supports updating the whole tree in which resides the document
21574 \begin_inset Foot
21575 status collapsed
21576
21577 \begin_layout Plain Layout
21578 One need to organize the files structure so that all external files are
21579  in the same directory or subdirectories of the document.
21580  
21581 \end_layout
21582
21583 \end_inset
21584
21585 .
21586  This become especially useful once you cooperate with people which neither
21587  know about subversion management nor they have ambition to commit additional
21588  material to the repository.
21589  
21590 \end_layout
21591
21592 \begin_layout Standard
21593 \begin_inset Flex Code
21594 status collapsed
21595
21596 \begin_layout Plain Layout
21597 Update local directory from repository
21598 \end_layout
21599
21600 \end_inset
21601
21602  command updates the whole directory and in case of merge conflicts local
21603  version of the files are left, so no unintended data loss occurs.
21604  If local changes are detected user is warned before update starts.
21605 \end_layout
21606
21607 \begin_layout Labeling
21608 \labelwidthstring 00.00.0000
21609 SVN
21610 \begin_inset space ~
21611 \end_inset
21612
21613 commands: 
21614 \begin_inset space ~
21615 \end_inset
21616
21617
21618 \begin_inset Newline newline
21619 \end_inset
21620
21621
21622 \begin_inset Flex Code
21623 status collapsed
21624
21625 \begin_layout Plain Layout
21626 svn diff $path
21627 \end_layout
21628
21629 \end_inset
21630
21631  (Ask if changes are detected.)
21632 \begin_inset Newline newline
21633 \end_inset
21634
21635
21636 \begin_inset Flex Code
21637 status collapsed
21638
21639 \begin_layout Plain Layout
21640 svn update –accept mine-full $path
21641 \end_layout
21642
21643 \end_inset
21644
21645
21646 \end_layout
21647
21648 \begin_layout Standard
21649 where 
21650 \begin_inset Flex Code
21651 status collapsed
21652
21653 \begin_layout Plain Layout
21654 $path
21655 \end_layout
21656
21657 \end_inset
21658
21659  stands for the path to the document.
21660 \end_layout
21661
21662 \begin_layout Subsubsection
21663
21664 \family sans
21665 Show History
21666 \end_layout
21667
21668 \begin_layout Standard
21669 This shows the complete history of the SVN document.
21670  The output of 
21671 \family typewriter
21672 svn log 
21673 \begin_inset Quotes eld
21674 \end_inset
21675
21676 <file-name>
21677 \begin_inset Quotes erd
21678 \end_inset
21679
21680
21681 \family default
21682  is shown in a browser.
21683 \end_layout
21684
21685 \begin_layout Subsubsection
21686 File Locking
21687 \begin_inset CommandInset label
21688 LatexCommand label
21689 name "subsec:SVN-File-Locking"
21690
21691 \end_inset
21692
21693
21694 \end_layout
21695
21696 \begin_layout Standard
21697 The file exchange through various revision control systems brings the problem
21698  of merge conflicts in case two different users try to edit the same (parts
21699  of) document.
21700  When such a conflict happens it needs manual resolving and one reasonable
21701  alternative is to provide some kind of locking mechanism, which guarantees
21702  that only one user is allowed to edit file at the given time.
21703 \end_layout
21704
21705 \begin_layout Standard
21706 SVN has two such mechanisms to provide mutual exclusivity for file access
21707  - locks and automatic setting of write permissions (see sec.
21708  
21709 \begin_inset CommandInset ref
21710 LatexCommand ref
21711 reference "subsec:Automatical-Locking-Property"
21712
21713 \end_inset
21714
21715 ) based on 
21716 \begin_inset Flex Code
21717 status collapsed
21718
21719 \begin_layout Plain Layout
21720 svn:needs-lock
21721 \end_layout
21722
21723 \end_inset
21724
21725  file svn property
21726 \begin_inset Foot
21727 status open
21728
21729 \begin_layout Plain Layout
21730 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21731 \end_layout
21732
21733 \end_inset
21734
21735 .
21736  If this property is detected for a given document \SpecialChar LyX
21737  starts to use SVN locks
21738  for document editing automatically and the whole check-in/out mechanism
21739  switches to the same regimen as for RCS.
21740  This in particular means there are two different modes of file use in \SpecialChar LyX
21741 :
21742 \end_layout
21743
21744 \begin_layout Itemize
21745 Unlocked state.
21746  The loaded file is in the read-only mode.
21747  For editing on needs to check-out.
21748  
21749 \emph on
21750 Check-out
21751 \emph default
21752  consists of updating from the repository and gaining write lock.
21753  If the lock is not possible to obtain, we remain in unlocked state.
21754 \end_layout
21755
21756 \begin_layout Itemize
21757 Locked state.
21758  The loaded file is in the 'normal' edit mode.
21759  No other user is allowed to edit the file.
21760  
21761 \emph on
21762 Check-in
21763 \emph default
21764  consists of commiting changes and releasing write-lock.
21765  If no changes have been made to the document, no commit will be produced
21766 \begin_inset Foot
21767 status collapsed
21768
21769 \begin_layout Plain Layout
21770 Don't be puzzled by the fact that you will be asked for commit message anyway.
21771 \end_layout
21772
21773 \end_inset
21774
21775  and only the write-lock will be released.
21776 \end_layout
21777
21778 \begin_layout Standard
21779 SVN commands:
21780 \end_layout
21781
21782 \begin_layout Labeling
21783 \labelwidthstring 00.00.0000
21784 Check-in:
21785 \family typewriter
21786  svn commit -q -m"<description>" "<file-name>"
21787 \begin_inset Newline newline
21788 \end_inset
21789
21790 svn unlock "<file-name>"
21791 \end_layout
21792
21793 \begin_layout Labeling
21794 \labelwidthstring 00.00.0000
21795 Check-out: 
21796 \family typewriter
21797 svn update "<file-name>"
21798 \begin_inset Newline newline
21799 \end_inset
21800
21801 svn lock "<file-name>"
21802 \end_layout
21803
21804 \begin_layout Subsubsection
21805
21806 \family typewriter
21807 \begin_inset CommandInset label
21808 LatexCommand label
21809 name "subsec:Automatical-Locking-Property"
21810
21811 \end_inset
21812
21813
21814 \family default
21815 Automatic Locking Property
21816 \end_layout
21817
21818 \begin_layout Standard
21819 The above mentioned automatic setting of write permissions of the .lyx file
21820  can be set through
21821 \family sans
21822 \bar under
21823  F
21824 \bar default
21825 ile\SpecialChar menuseparator
21826
21827 \bar under
21828 V
21829 \bar default
21830 ersion
21831 \begin_inset space ~
21832 \end_inset
21833
21834 Control\SpecialChar menuseparator
21835
21836 \bar under
21837 T
21838 \bar default
21839 oggle locking property
21840 \family default
21841 .
21842  This command is active only when the file is not locked on the svn server
21843  (i.e.
21844  you need to check-out before proceeding).
21845 \end_layout
21846
21847 \begin_layout Labeling
21848 \labelwidthstring 00.00.0000
21849 SVN
21850 \begin_inset space ~
21851 \end_inset
21852
21853 commands:
21854 \end_layout
21855
21856 \begin_layout Labeling
21857 \labelwidthstring 00.00.0000
21858 Set:
21859 \family typewriter
21860  svn propset svn:needs-lock ON "<file-name>"
21861 \end_layout
21862
21863 \begin_layout Labeling
21864 \labelwidthstring 00.00.0000
21865 Unset: 
21866 \family typewriter
21867 svn propdel svn:needs-lock "<file-name>"
21868 \end_layout
21869
21870 \begin_layout Subsubsection
21871 \begin_inset CommandInset label
21872 LatexCommand label
21873 name "subsec:VCS-Revision-Information"
21874
21875 \end_inset
21876
21877 Revision Information in Documents
21878 \end_layout
21879
21880 \begin_layout Standard
21881 There are more possibilities how to activate revision information in our
21882  document.
21883 \end_layout
21884
21885 \begin_layout Itemize
21886 \SpecialChar LyX
21887  supports directly:
21888 \begin_inset Separator parbreak
21889 \end_inset
21890
21891
21892 \end_layout
21893
21894 \begin_deeper
21895 \begin_layout Itemize
21896 tree revision information (
21897 \begin_inset Flex Code
21898 status collapsed
21899
21900 \begin_layout Plain Layout
21901 vcs-tree-revision
21902 \end_layout
21903
21904 \end_inset
21905
21906 ).
21907  The result is the output of the 
21908 \begin_inset Flex Code
21909 status collapsed
21910
21911 \begin_layout Plain Layout
21912 svnversion
21913 \end_layout
21914
21915 \end_inset
21916
21917  command, the following table gives you an idea, how to read the results.
21918 \end_layout
21919
21920 \begin_layout Standard
21921 \align center
21922 \begin_inset Tabular
21923 <lyxtabular version="3" rows="6" columns="2">
21924 <features tabularvalignment="middle">
21925 <column alignment="center" valignment="top">
21926 <column alignment="center" valignment="top">
21927 <row>
21928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21929 \begin_inset Text
21930
21931 \begin_layout Plain Layout
21932 Output
21933 \end_layout
21934
21935 \end_inset
21936 </cell>
21937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21938 \begin_inset Text
21939
21940 \begin_layout Plain Layout
21941 Meaning
21942 \end_layout
21943
21944 \end_inset
21945 </cell>
21946 </row>
21947 <row>
21948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21949 \begin_inset Text
21950
21951 \begin_layout Plain Layout
21952 4123:4168
21953 \end_layout
21954
21955 \end_inset
21956 </cell>
21957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21958 \begin_inset Text
21959
21960 \begin_layout Plain Layout
21961 mixed revision working copy
21962 \end_layout
21963
21964 \end_inset
21965 </cell>
21966 </row>
21967 <row>
21968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21969 \begin_inset Text
21970
21971 \begin_layout Plain Layout
21972 4168M
21973 \end_layout
21974
21975 \end_inset
21976 </cell>
21977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21978 \begin_inset Text
21979
21980 \begin_layout Plain Layout
21981 modified working copy
21982 \end_layout
21983
21984 \end_inset
21985 </cell>
21986 </row>
21987 <row>
21988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21989 \begin_inset Text
21990
21991 \begin_layout Plain Layout
21992 4123S
21993 \end_layout
21994
21995 \end_inset
21996 </cell>
21997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21998 \begin_inset Text
21999
22000 \begin_layout Plain Layout
22001 switched working copy
22002 \end_layout
22003
22004 \end_inset
22005 </cell>
22006 </row>
22007 <row>
22008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22009 \begin_inset Text
22010
22011 \begin_layout Plain Layout
22012 4123P
22013 \end_layout
22014
22015 \end_inset
22016 </cell>
22017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22018 \begin_inset Text
22019
22020 \begin_layout Plain Layout
22021 partial working copy, from a sparse checkout
22022 \end_layout
22023
22024 \end_inset
22025 </cell>
22026 </row>
22027 <row>
22028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22029 \begin_inset Text
22030
22031 \begin_layout Plain Layout
22032 4123:4168MS
22033 \end_layout
22034
22035 \end_inset
22036 </cell>
22037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22038 \begin_inset Text
22039
22040 \begin_layout Plain Layout
22041 mixed revision, modified, switched working copy
22042 \end_layout
22043
22044 \end_inset
22045 </cell>
22046 </row>
22047 </lyxtabular>
22048
22049 \end_inset
22050
22051
22052 \end_layout
22053
22054 \begin_layout Itemize
22055 file revision information.
22056  The result comes from parsing the output of 
22057 \begin_inset Flex Code
22058 status collapsed
22059
22060 \begin_layout Plain Layout
22061 svn
22062 \begin_inset space ~
22063 \end_inset
22064
22065 info
22066 \begin_inset space ~
22067 \end_inset
22068
22069 –xml
22070 \begin_inset space ~
22071 \end_inset
22072
22073 file.lyx
22074 \end_layout
22075
22076 \end_inset
22077
22078 .
22079  Supported flags are:
22080 \begin_inset Separator parbreak
22081 \end_inset
22082
22083
22084 \end_layout
22085
22086 \begin_deeper
22087 \begin_layout Itemize
22088 version number of the last commit (
22089 \begin_inset Flex Code
22090 status collapsed
22091
22092 \begin_layout Plain Layout
22093 vcs-revision
22094 \end_layout
22095
22096 \end_inset
22097
22098 )
22099 \end_layout
22100
22101 \begin_layout Itemize
22102 author of the last commit (
22103 \begin_inset Flex Code
22104 status collapsed
22105
22106 \begin_layout Plain Layout
22107 vcs-author
22108 \end_layout
22109
22110 \end_inset
22111
22112 )
22113 \end_layout
22114
22115 \begin_layout Itemize
22116 date of the last commit (
22117 \begin_inset Flex Code
22118 status collapsed
22119
22120 \begin_layout Plain Layout
22121 vcs-date
22122 \end_layout
22123
22124 \end_inset
22125
22126 )
22127 \end_layout
22128
22129 \begin_layout Itemize
22130 time of the last commit (
22131 \begin_inset Flex Code
22132 status collapsed
22133
22134 \begin_layout Plain Layout
22135 vcs-time
22136 \end_layout
22137
22138 \end_inset
22139
22140 )
22141 \end_layout
22142
22143 \end_deeper
22144 \begin_layout Standard
22145 You can obtain this info via InsetInfo (e.g.
22146  
22147 \begin_inset Flex Code
22148 status collapsed
22149
22150 \begin_layout Plain Layout
22151 info-insert buffer vcs-date
22152 \end_layout
22153
22154 \end_inset
22155
22156 ).
22157  The information will be available only when you have the file stored under
22158  svn managment (i.e.
22159  the 
22160 \begin_inset Flex Code
22161 status collapsed
22162
22163 \begin_layout Plain Layout
22164 .svn
22165 \end_layout
22166
22167 \end_inset
22168
22169  directory is available with your document).
22170 \end_layout
22171
22172 \end_deeper
22173 \begin_layout Itemize
22174 Another—a hacking one—possibility is to use svn keywords
22175 \begin_inset Foot
22176 status collapsed
22177
22178 \begin_layout Plain Layout
22179 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22180 \end_layout
22181
22182 \end_inset
22183
22184 .
22185  In short – you set file keywords property (e.g.
22186  
22187 \family sans
22188 svn propset svn:keywords 'Rev' file.lyx
22189 \family default
22190 ) and then paste keyword \SpecialChar TeX
22191  code
22192 \begin_inset Foot
22193 status collapsed
22194
22195 \begin_layout Plain Layout
22196 This is an easy way how to ensure that \SpecialChar LyX
22197  won't break the line in the middle
22198  of keyword tag.
22199 \end_layout
22200
22201 \end_inset
22202
22203  tag in your document (e.g.
22204  
22205 \begin_inset ERT
22206 status open
22207
22208 \begin_layout Plain Layout
22209
22210 $Rev$
22211 \end_layout
22212
22213 \end_inset
22214
22215 ).
22216  This way svn client will automatically substitute revision number (e.g.
22217  
22218 \begin_inset ERT
22219 status open
22220
22221 \begin_layout Plain Layout
22222
22223 $Rev: 59 $
22224 \end_layout
22225
22226 \end_inset
22227
22228 ) after each update and commit.
22229  There are more problems with this approach.
22230  Firstly, the '$' character is used in \SpecialChar TeX
22231  world for math equations, so any
22232  occurence of math formula 
22233 \begin_inset Formula $Rev$
22234 \end_inset
22235
22236  become 
22237 \begin_inset Formula $Rev:59$
22238 \end_inset
22239
22240  in your \SpecialChar LyX
22241  document.
22242  Similarly for other keywords like Id, Date, Author, etc.
22243  Secondly svn output is dependent on your locales, so its very easy that
22244  svn would produce some problematic strings once Date is used.
22245  Thirdly you get the whole 'Rev: 59' string in your document instead of
22246  the plain number.
22247  Until subversion implements user's custom keywords it will be hard to use
22248  this approach reliably or let \SpecialChar LyX
22249  to support it directly.
22250 \end_layout
22251
22252 \begin_layout Subsection
22253 SVN and Windows Environment
22254 \end_layout
22255
22256 \begin_layout Quote
22257 My inclination is to say that if the user cannot figure out the command
22258  line operations on their own fairly quickly, they would be well advised
22259  to use TortoiseSVN.
22260  —P.
22261  A.
22262  Rubin
22263 \end_layout
22264
22265 \begin_layout Subsubsection
22266 Preparation
22267 \end_layout
22268
22269 \begin_layout Standard
22270 In addition to installing \SpecialChar LyX
22271 , and having access to a Subversion repository,
22272  the user will need to install the Subversion client program.
22273  A Windows installer for the client program is available from 
22274 \begin_inset CommandInset href
22275 LatexCommand href
22276 name "CollabNet"
22277 target "http://www.collab.net/nonav/downloads/subversion/"
22278
22279 \end_inset
22280
22281 .
22282  The user may also want to install 
22283 \begin_inset CommandInset href
22284 LatexCommand href
22285 name "TortoiseSVN"
22286 target "http://tortoisesvn.tigris.org/"
22287
22288 \end_inset
22289
22290 , which integrates Subversion operations into the context (rightclick) menu
22291  of Windows Explorer.
22292  Operations done outside \SpecialChar LyX
22293  will typically be more convenient using the Explorer
22294  context menu.
22295  Note that TortoiseSVN is not a replacement for the client program, which
22296  is what \SpecialChar LyX
22297  itself will use.
22298 \end_layout
22299
22300 \begin_layout Subsubsection
22301 Bringing a document under Subversion control
22302 \end_layout
22303
22304 \begin_layout Standard
22305 Before a \SpecialChar LyX
22306  document can be brought under version control in Subversion, its
22307  parent directory needs to be under version control.
22308  If the document is being added to a project already in the repository,
22309  this is accomplished by checking the project out to the directory where
22310  the new document will be placed.
22311  If the project itself is not yet under version control (for instance, if
22312  this document starts a new project), the directory must be imported into
22313  the repository.
22314  This is done outside \SpecialChar LyX
22315 .
22316  Both import and checkout are easily accomplished from the Explorer context
22317  menu using TortoiseSVN, or alternatively can be done using the command
22318  line client at a DOS prompt.
22319  The procedure for importing the project using TortoiseSVN is described
22320  below, assuming an existing repository and a new project being started
22321  in 
22322 \family typewriter
22323 C:
22324 \backslash
22325 new project
22326 \family default
22327 .
22328  For information on using the Subversion client program, run 
22329 \family typewriter
22330 svn --help 
22331 \family default
22332 in a DOS shell.
22333 \end_layout
22334
22335 \begin_layout Enumerate
22336 Locate 
22337 \family typewriter
22338 C:
22339 \backslash
22340 new project 
22341 \family default
22342 in Windows Explorer, right click it, and select 
22343 \family sans
22344 TortoiseSVN\SpecialChar menuseparator
22345 Repo-browser
22346 \family default
22347 .
22348  If necessary, adjust the URL for the repository, then click OK.
22349 \end_layout
22350
22351 \begin_layout Enumerate
22352 Right click the level of the repository under which you want to place the
22353  new project folder (typically the top level) and click 
22354 \family sans
22355 Create folder
22356 \family default
22357  Supply a name for the project folder and click OK.
22358  Add a message for the log file if desired, then click OK again.
22359  The new project folder should appear in the repository.
22360  Finally, click OK again to exit the repository browser.
22361 \end_layout
22362
22363 \begin_layout Enumerate
22364 Once again right click 
22365 \family typewriter
22366 C:
22367 \backslash
22368 new project
22369 \family default
22370 , this time selecting SVN Checkout\SpecialChar ldots
22371  Select the URL of the project folder
22372  you just created in the repository, and set the checkout directory to 
22373 \family typewriter
22374 C:
22375 \backslash
22376 new project.
22377
22378 \family default
22379  Click OK.
22380  You will be warned about a non-empty folder; click OK to proceed.
22381  You should now have a 
22382 \family typewriter
22383 .svn
22384 \family default
22385  directory under 
22386 \family typewriter
22387 C:
22388 \backslash
22389 new project.
22390 \end_layout
22391
22392 \begin_layout Enumerate
22393 Create or open your document in \SpecialChar LyX
22394  and click 
22395 \family sans
22396 File\SpecialChar menuseparator
22397 Version
22398 \begin_inset space ~
22399 \end_inset
22400
22401 Control\SpecialChar menuseparator
22402 Register.
22403  
22404 \family default
22405 Add a log message and click OK to commit the document to version control.
22406 \end_layout
22407
22408 \begin_layout Standard
22409 From this point onward, you should have full functionality in the 
22410 \family sans
22411 File\SpecialChar menuseparator
22412 Version
22413 \begin_inset space ~
22414 \end_inset
22415
22416 Control
22417 \family default
22418  menu.
22419  You also have the option of checking the document in and out, viewing its
22420  history, etc.
22421  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22422  client program from a command prompt.
22423 \end_layout
22424
22425 \begin_layout Subsubsection
22426 SSH tunnel used with SVN under Windows
22427 \end_layout
22428
22429 \begin_layout Standard
22430 Compared with Linux setting up an svn client to communicate over ssh under
22431  Windows is a rather troublesome task.
22432  We will at least offer some hints how to setup the client side but prior
22433  knowledge about ssh and the Windows command line is needed, also be prepared
22434  for a great deal of frustration\SpecialChar ldots
22435
22436 \end_layout
22437
22438 \begin_layout Enumerate
22439 Get an svn client for windows, as described in the previous sections.
22440  When it is a fresh install run some svn command (e.g.
22441  
22442 \begin_inset Flex Code
22443 status collapsed
22444
22445 \begin_layout Plain Layout
22446 svn –version
22447 \end_layout
22448
22449 \end_inset
22450
22451 ) to create config files, which you will need to change later on.
22452 \end_layout
22453
22454 \begin_layout Enumerate
22455 Choose an ssh client for Windows.
22456  There are several possibilities, we will use the one from Putty tools
22457 \begin_inset Foot
22458 status collapsed
22459
22460 \begin_layout Plain Layout
22461 \begin_inset Flex URL
22462 status collapsed
22463
22464 \begin_layout Plain Layout
22465
22466 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22467 \end_layout
22468
22469 \end_inset
22470
22471
22472 \end_layout
22473
22474 \end_inset
22475
22476 .
22477  You will need to set the connection up so that the client doesn't ask for
22478  any password from you.
22479  To keep things easy we will use only keys without any additional password
22480  protection etc.
22481 \begin_inset Separator parbreak
22482 \end_inset
22483
22484
22485 \end_layout
22486
22487 \begin_deeper
22488 \begin_layout Enumerate
22489 Generate keys by 
22490 \begin_inset Flex Code
22491 status collapsed
22492
22493 \begin_layout Plain Layout
22494 puttygen
22495 \end_layout
22496
22497 \end_inset
22498
22499 .
22500  Save your private .ppk key file and put the public one on the server side.
22501  If the SVN server runs on Linux, note that the format of the public key
22502  is not compatible with Linux openssh and you will need to direcly copy-paste
22503  the key from the “
22504 \emph on
22505 Public key for pasting into OpenSSH authorized_keys file
22506 \emph default
22507 :” edit field into the server's 
22508 \begin_inset Flex Code
22509 status collapsed
22510
22511 \begin_layout Plain Layout
22512 ~/.ssh/authorized_keys
22513 \end_layout
22514
22515 \end_inset
22516
22517  / 
22518 \begin_inset Flex Code
22519 status collapsed
22520
22521 \begin_layout Plain Layout
22522 authorized_keys2
22523 \end_layout
22524
22525 \end_inset
22526
22527  file.
22528 \end_layout
22529
22530 \begin_layout Enumerate
22531 Get the Putty's 
22532 \begin_inset Flex Code
22533 status collapsed
22534
22535 \begin_layout Plain Layout
22536 plink
22537 \end_layout
22538
22539 \end_inset
22540
22541 .
22542  In the SVN config file
22543 \begin_inset Foot
22544 status collapsed
22545
22546 \begin_layout Plain Layout
22547 Exact path depends on Windows version, usually somewhere around 
22548 \begin_inset Flex Code
22549 status collapsed
22550
22551 \begin_layout Plain Layout
22552 c:
22553 \backslash
22554 Documents and Settings
22555 \backslash
22556 user
22557 \backslash
22558 Application Data
22559 \backslash
22560 Subversion
22561 \backslash
22562 config
22563 \end_layout
22564
22565 \end_inset
22566
22567  / 
22568 \begin_inset Flex Code
22569 status collapsed
22570
22571 \begin_layout Plain Layout
22572 AppData
22573 \backslash
22574 Roaming
22575 \backslash
22576 Subversion
22577 \end_layout
22578
22579 \end_inset
22580
22581 .
22582 \end_layout
22583
22584 \end_inset
22585
22586 , section [tunnels], setup ssh command, e.g.
22587  
22588 \begin_inset Flex Code
22589 status collapsed
22590
22591 \begin_layout Plain Layout
22592 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22593 \end_layout
22594
22595 \end_inset
22596
22597 .
22598 \begin_inset Foot
22599 status collapsed
22600
22601 \begin_layout Plain Layout
22602 It will usually take a lot of time to get exact command right and it depends
22603  on many things.
22604  For example do not have some remote server saved as a default session in
22605  Putty etc.
22606  If things fail, try to connect via plink without SVN first.
22607 \end_layout
22608
22609 \end_inset
22610
22611
22612 \end_layout
22613
22614 \end_deeper
22615 \begin_layout Enumerate
22616 Checkout the SVN archive, e.
22617 \begin_inset space \thinspace{}
22618 \end_inset
22619
22620 g.
22621 \begin_inset Newline newline
22622 \end_inset
22623
22624
22625 \begin_inset Flex Code
22626 status collapsed
22627
22628 \begin_layout Plain Layout
22629 svn co svn+ssh://user@server/repository_path
22630 \end_layout
22631
22632 \end_inset
22633
22634 .
22635 \end_layout
22636
22637 \begin_layout Subsubsection
22638 End-of-Line Conversions
22639 \end_layout
22640
22641 \begin_layout Standard
22642 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22643  will
22644  use different line endings inside the .lyx files.
22645  This is not a problem as far as \SpecialChar LyX
22646  functionality is concerned, but the commit
22647  diffs will be huge and merge-conflicts prone.
22648  Fortunately SVN itself knows
22649 \begin_inset Foot
22650 status collapsed
22651
22652 \begin_layout Plain Layout
22653 \begin_inset Flex URL
22654 status collapsed
22655
22656 \begin_layout Plain Layout
22657
22658 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22659 \end_layout
22660
22661 \end_inset
22662
22663
22664 \end_layout
22665
22666 \end_inset
22667
22668  how to deal with CR/LF problems when switching .lyx files to the 
22669 \begin_inset Flex Code
22670 status collapsed
22671
22672 \begin_layout Plain Layout
22673 native
22674 \end_layout
22675
22676 \end_inset
22677
22678  mode.
22679 \begin_inset Foot
22680 status collapsed
22681
22682 \begin_layout Plain Layout
22683 For the lazy guys: 
22684 \begin_inset Flex Code
22685 status collapsed
22686
22687 \begin_layout Plain Layout
22688 svn propset svn:eol-style native FILE_NAME
22689 \end_layout
22690
22691 \end_inset
22692
22693
22694 \end_layout
22695
22696 \end_inset
22697
22698
22699 \end_layout
22700
22701 \begin_layout Subsection
22702 GIT commands in \SpecialChar LyX
22703
22704 \end_layout
22705
22706 \begin_layout Standard
22707 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22708 .
22709  You can find the commands in the 
22710 \family sans
22711 File\SpecialChar menuseparator
22712 Version
22713 \begin_inset space ~
22714 \end_inset
22715
22716 Control
22717 \family default
22718  submenu.
22719  Please note that if you use password protected access to repository via
22720  ssh, you will be asked in terminal window.
22721  \SpecialChar LyX
22722  was tested against GIT 1.7.
22723 \begin_inset Foot
22724 status open
22725
22726 \begin_layout Plain Layout
22727 Windows users please note that you need to ensure that git is on the path.
22728  This can be set from within \SpecialChar LyX
22729  at 
22730 \family sans
22731 Tools\SpecialChar menuseparator
22732 Preferences\SpecialChar menuseparator
22733 Paths\SpecialChar menuseparator
22734 PATH prefix
22735 \family default
22736 .
22737 \end_layout
22738
22739 \end_inset
22740
22741
22742 \end_layout
22743
22744 \begin_layout Standard
22745 One big difference of GIT and the other supported version control systems
22746  is the distributed nature of GIT: With traditional version control systems
22747  there is one central server which hosts the repository.
22748  Users commit their changes to the server, and get updates made by other
22749  users from it.
22750  With GIT, users commit to a local repository.
22751  The local repository can be synchronized with one or more remote repositories
22752  using the 
22753 \begin_inset Flex Code
22754 status collapsed
22755
22756 \begin_layout Plain Layout
22757 pull
22758 \end_layout
22759
22760 \end_inset
22761
22762  and 
22763 \begin_inset Flex Code
22764 status collapsed
22765
22766 \begin_layout Plain Layout
22767 push
22768 \end_layout
22769
22770 \end_inset
22771
22772  GIT commands.
22773  \SpecialChar LyX
22774  does not interact in any way with remote GIT repositories.
22775  It works exclusively with the local repository in a very similar way as
22776  with a central CVS or SVN repository.
22777  If you use remote GIT repositories you need to do the 
22778 \begin_inset Flex Code
22779 status collapsed
22780
22781 \begin_layout Plain Layout
22782 pull
22783 \end_layout
22784
22785 \end_inset
22786
22787  and 
22788 \begin_inset Flex Code
22789 status collapsed
22790
22791 \begin_layout Plain Layout
22792 push
22793 \end_layout
22794
22795 \end_inset
22796
22797  operations with your favourite GIT client.
22798 \end_layout
22799
22800 \begin_layout Subsubsection
22801
22802 \family sans
22803 Register
22804 \end_layout
22805
22806 \begin_layout Standard
22807 If your document is not under revision control, this is the only item shown
22808  in the menu.
22809  And if it is under revision control, the 
22810 \family sans
22811 \bar under
22812 R
22813 \bar default
22814 egister
22815 \family default
22816  item is not visible.
22817 \end_layout
22818
22819 \begin_layout Standard
22820 This command registers in GIT your document ONLY in case you have already
22821  the documents directory under GIT control (in particular 
22822 \family typewriter
22823 .git/index
22824 \family default
22825  file exists).
22826  This means you have to checkout the archive by yourself.
22827 \end_layout
22828
22829 \begin_layout Standard
22830 Then you are asked interactively to supply an initial description of the
22831  document.
22832  Don't forget that registered file is not yet commited.
22833 \end_layout
22834
22835 \begin_layout Standard
22836 GIT command that is run: 
22837 \family typewriter
22838 git add 
22839 \begin_inset Quotes eld
22840 \end_inset
22841
22842 <file-name>
22843 \begin_inset Quotes erd
22844 \end_inset
22845
22846
22847 \end_layout
22848
22849 \begin_layout Standard
22850 Read 
22851 \family typewriter
22852 man git
22853 \family default
22854  to understand the switches.
22855 \end_layout
22856
22857 \begin_layout Subsubsection
22858
22859 \family sans
22860 Check In Changes
22861 \end_layout
22862
22863 \begin_layout Standard
22864 When you are finished editing a file, you commit your changes.
22865  When you do this, you are asked for a description of the changes.
22866  After that changes are commited.
22867 \end_layout
22868
22869 \begin_layout Standard
22870 GIT command: 
22871 \family typewriter
22872 git commit -q -m"<description>" <file-name>
22873 \end_layout
22874
22875 \begin_layout Subsubsection
22876
22877 \family sans
22878 Revert To Repository Version
22879 \end_layout
22880
22881 \begin_layout Standard
22882 This will discard all changes made to the document since the last check
22883  in.
22884  You get a warning before changes are discarded.
22885 \end_layout
22886
22887 \begin_layout Standard
22888 GIT command: 
22889 \family typewriter
22890 git checkout -q 
22891 \begin_inset Quotes eld
22892 \end_inset
22893
22894 <file-name>
22895 \begin_inset Quotes erd
22896 \end_inset
22897
22898
22899 \end_layout
22900
22901 \begin_layout Subsubsection
22902
22903 \family sans
22904 Rename
22905 \end_layout
22906
22907 \begin_layout Standard
22908 This will rename the current document including the version history.
22909  It requires a clean document without any changes since the last checkin.
22910  You are asked for a file name and a description of the rename operation.
22911  After that the document is renamed, both locally and in the repository.
22912  If the parent directories of the new and old file names differ, all relative
22913  paths of included files are adjusted (like in 
22914 \family sans
22915 File\SpecialChar menuseparator
22916 Save As
22917 \family default
22918 \SpecialChar ldots
22919 ).
22920  Finally, the document is reloaded using the new name.
22921 \end_layout
22922
22923 \begin_layout Labeling
22924 \labelwidthstring 00.00.0000
22925 GIT
22926 \begin_inset space ~
22927 \end_inset
22928
22929 commands: 
22930 \begin_inset space ~
22931 \end_inset
22932
22933
22934 \begin_inset Newline newline
22935 \end_inset
22936
22937
22938 \begin_inset Flex Code
22939 status collapsed
22940
22941 \begin_layout Plain Layout
22942 git mv 
22943 \family typewriter
22944
22945 \begin_inset Quotes eld
22946 \end_inset
22947
22948 <file-name>
22949 \begin_inset Quotes erd
22950 \end_inset
22951
22952  
22953 \begin_inset Quotes eld
22954 \end_inset
22955
22956 <new-file-name>
22957 \begin_inset Quotes erd
22958 \end_inset
22959
22960
22961 \end_layout
22962
22963 \end_inset
22964
22965
22966 \begin_inset Newline newline
22967 \end_inset
22968
22969
22970 \begin_inset Flex Code
22971 status collapsed
22972
22973 \begin_layout Plain Layout
22974 git commit
22975 \end_layout
22976
22977 \end_inset
22978
22979
22980 \end_layout
22981
22982 \begin_layout Subsubsection
22983
22984 \family sans
22985 Show History
22986 \end_layout
22987
22988 \begin_layout Standard
22989 This shows the complete history of the GIT document.
22990  The output of 
22991 \family typewriter
22992 git log 
22993 \begin_inset Quotes eld
22994 \end_inset
22995
22996 <file-name>
22997 \begin_inset Quotes erd
22998 \end_inset
22999
23000
23001 \family default
23002  is shown in a browser.
23003 \end_layout
23004
23005 \begin_layout Subsubsection
23006 Version Info
23007 \end_layout
23008
23009 \begin_layout Standard
23010 \SpecialChar LyX
23011  supports GIT hash number of the last commit to the file, author name, date
23012  and time of last commit.
23013  All those are extracted from 
23014 \family typewriter
23015 git log -n 1 --pretty=format:%H%n%an%n%ai
23016 \family default
23017 .
23018  Tree version information is obtained via 
23019 \family typewriter
23020 git describe --abbrev --dirty --long
23021 \family default
23022 .
23023  See 
23024 \begin_inset CommandInset ref
23025 LatexCommand ref
23026 reference "subsec:VCS-Revision-Information"
23027
23028 \end_inset
23029
23030  for other details.
23031 \end_layout
23032
23033 \begin_layout Subsection
23034 Further tuning
23035 \end_layout
23036
23037 \begin_layout Standard
23038 With the recent addition of the vc-command function \SpecialChar LyX
23039  power users are allowed
23040  to create their own commands for revision control.
23041 \end_layout
23042
23043 \begin_layout Standard
23044 As an example you can see how two TortoiseSVN commands could be integrated
23045  directly:
23046 \end_layout
23047
23048 \begin_layout Description
23049 Commit: 
23050 \begin_inset Flex Code
23051 status collapsed
23052
23053 \begin_layout Plain Layout
23054 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23055 \end_layout
23056
23057 \end_inset
23058
23059
23060 \end_layout
23061
23062 \begin_layout Description
23063 Revert: 
23064 \begin_inset Flex Code
23065 status collapsed
23066
23067 \begin_layout Plain Layout
23068 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23069 \end_layout
23070
23071 \end_inset
23072
23073
23074 \end_layout
23075
23076 \begin_layout Subsection
23077 Version control and Document comparison
23078 \end_layout
23079
23080 \begin_layout Standard
23081 One of the typical uses of version control is to inspect the changes between
23082  revisions, usually by creating 
23083 \begin_inset Flex Code
23084 status collapsed
23085
23086 \begin_layout Plain Layout
23087 diff
23088 \end_layout
23089
23090 \end_inset
23091
23092  dumps.
23093  While this is useful for plain text files, it is much less useful in the
23094  case of \SpecialChar LyX
23095  files, which have more a complicated structure.
23096  Hence we provide binding to the Document comparison feature.
23097  There are two ways of calling this feature - either by direct call of 
23098 \begin_inset Flex Code
23099 status collapsed
23100
23101 \begin_layout Plain Layout
23102 VC_COMPARE
23103 \end_layout
23104
23105 \end_inset
23106
23107  \SpecialChar LyX
23108  function (for details see \SpecialChar LyX
23109  functions manual) or by icon/menu item 
23110 \begin_inset Flex MenuItem
23111 status collapsed
23112
23113 \begin_layout Plain Layout
23114 Compare with older revision...
23115 \end_layout
23116
23117 \end_inset
23118
23119 .
23120  One can either compare two chosen revisions of the document or he can simply
23121  compare the current version of edited text with older revisions (where
23122  '
23123 \begin_inset Flex MenuItem
23124 status collapsed
23125
23126 \begin_layout Plain Layout
23127 0
23128 \end_layout
23129
23130 \end_inset
23131
23132 ' revisions back means comparison of the edited file with last commited
23133  revision).
23134  
23135 \end_layout
23136
23137 \begin_layout Standard
23138 This feature is supported for SVN and RCS though due to the more complicated
23139  versioning scheme of RCS there is a constraint – when addressing the revisions
23140  in dialog, numbers always point to the last number in RCS revision number,
23141  i.e.
23142  '35' in '1.2.35'.
23143  We don't currently support GIT addressing of revisions, one can just compare
23144  edited document with its revision X steps backs, where X is addressed as
23145  HEAD~X.
23146 \end_layout
23147
23148 \begin_layout Section
23149 Literate Programming
23150 \end_layout
23151
23152 \begin_layout Standard
23153 Updated by 
23154 \noun on
23155 Kayvan Sylvan 
23156 \noun default
23157 (kayvan@sylvan.com)
23158 \noun on
23159
23160 \noun default
23161 original documentation written by 
23162 \noun on
23163 Edmar Wienskoski Jr.
23164
23165 \noun default
23166  (edmar-w-jr@technologist.com)
23167 \end_layout
23168
23169 \begin_layout Subsection
23170 Introduction
23171 \end_layout
23172
23173 \begin_layout Standard
23174 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23175  for literate
23176  programming, where it is assumed that you are familiar with this programming
23177  technique, and know what 
23178 \begin_inset Quotes eld
23179 \end_inset
23180
23181 tangling
23182 \begin_inset Quotes erd
23183 \end_inset
23184
23185  and 
23186 \begin_inset Quotes eld
23187 \end_inset
23188
23189 weaving
23190 \begin_inset Quotes erd
23191 \end_inset
23192
23193  means.
23194  If that is not the case, please follow the web links provided in the following
23195  sections.
23196  There is a lot of good documentation out there covering old development
23197  history to the latest tools tips.
23198 \end_layout
23199
23200 \begin_layout Standard
23201 It is also assumed that you are familiar with \SpecialChar LyX
23202  itself to a point that you
23203  are comfortable changing your \SpecialChar LyX
23204  preferences, and X resources file.
23205  If that is not the case please refer to other \SpecialChar LyX
23206  documentation to cover your
23207  specific needs.
23208 \end_layout
23209
23210 \begin_layout Subsection
23211 Literate Programming
23212 \end_layout
23213
23214 \begin_layout Standard
23215 From the Literate Programming FAQ: 
23216 \end_layout
23217
23218 \begin_layout Quotation
23219 Literate programming is the combination of documentation and source together
23220  in a fashion suited for reading by human beings.
23221  In fact, literate programs should be enjoyable reading, even inviting!
23222  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23223  and documentation in a single file.
23224  Literate programming tools then parse the file to produce either readable
23225  documentation or compilable source.
23226  The WEB style of literate programming was created by D.
23227 \begin_inset space \thinspace{}
23228 \end_inset
23229
23230 E.
23231  Knuth during the development of his \SpecialChar TeX
23232  typesetting software.
23233  
23234 \end_layout
23235
23236 \begin_layout Standard
23237 Another excerpt says:
23238 \end_layout
23239
23240 \begin_layout Quotation
23241
23242 \emph on
23243 How is literate programming different from verbose commenting?
23244 \end_layout
23245
23246 \begin_layout Quotation
23247 There are three distinguishing characteristics.
23248  In order of importance, they are: 
23249 \begin_inset Separator parbreak
23250 \end_inset
23251
23252
23253 \end_layout
23254
23255 \begin_deeper
23256 \begin_layout Itemize
23257 flexible order of elaboration 
23258 \end_layout
23259
23260 \begin_layout Itemize
23261 automatic support for browsing 
23262 \end_layout
23263
23264 \begin_layout Itemize
23265 typeset documentation, especially diagrams and mathematics 
23266 \end_layout
23267
23268 \end_deeper
23269 \begin_layout Standard
23270 Now that I sparked your curiosity, take a look in the references.
23271 \end_layout
23272
23273 \begin_layout Subsubsection
23274 References
23275 \end_layout
23276
23277 \begin_layout Standard
23278 The complete Literate Programming FAQ can be found at:
23279 \end_layout
23280
23281 \begin_layout Quote
23282 Literate Programming FAQ 
23283 \begin_inset Flex URL
23284 status collapsed
23285
23286 \begin_layout Plain Layout
23287
23288 http://www.literateprogramming.com/lpfaq.pdf
23289 \end_layout
23290
23291 \end_inset
23292
23293
23294 \end_layout
23295
23296 \begin_layout Standard
23297 The FAQ lists 23 (twenty three!) different literate programming tools.
23298  Where some are specialized or 
23299 \begin_inset Quotes eld
23300 \end_inset
23301
23302 tailored
23303 \begin_inset Quotes erd
23304 \end_inset
23305
23306  for particular programming languages, while other have general scope.
23307  I selected 
23308 \noun on
23309 Noweb
23310 \noun default
23311  for my own use for several reasons:
23312 \end_layout
23313
23314 \begin_layout Itemize
23315 It can generate the documentation either in \SpecialChar LaTeX
23316  or HTML.
23317 \end_layout
23318
23319 \begin_layout Itemize
23320 It has a open architecture, i.
23321 \begin_inset space \thinspace{}
23322 \end_inset
23323
23324 e.
23325 \begin_inset space \space{}
23326 \end_inset
23327
23328 it is easy to plug in new filters and to perform special processing that
23329  you may need.
23330  
23331 \end_layout
23332
23333 \begin_layout Itemize
23334 There is a good selection of filters available already (the HTML is one
23335  of them).
23336 \end_layout
23337
23338 \begin_layout Itemize
23339 It is free.
23340 \end_layout
23341
23342 \begin_layout Standard
23343 The Noweb web page can be found at: 
23344 \end_layout
23345
23346 \begin_layout Quote
23347 Noweb home page 
23348 \begin_inset Flex URL
23349 status collapsed
23350
23351 \begin_layout Plain Layout
23352
23353 http://www.cs.virginia.edu/~nr/noweb/
23354 \end_layout
23355
23356 \end_inset
23357
23358
23359 \end_layout
23360
23361 \begin_layout Standard
23362 Starting from there you can reach many other interesting links and even
23363  some literate program examples.
23364 \end_layout
23365
23366 \begin_layout Subsection
23367 \SpecialChar LyX
23368  and Literate Programming with Noweb
23369 \end_layout
23370
23371 \begin_layout Standard
23372 The \SpecialChar LyX
23373  support for Literate Programming is provided by using the generic \SpecialChar LyX
23374
23375  converters mechanism.
23376  This support is provided in a 
23377 \begin_inset Quotes eld
23378 \end_inset
23379
23380 Noweb independent
23381 \begin_inset Quotes erd
23382 \end_inset
23383
23384  way, i.
23385 \begin_inset space \thinspace{}
23386 \end_inset
23387
23388 e.
23389 \begin_inset space \space{}
23390 \end_inset
23391
23392 you will be able to use this new \SpecialChar LyX
23393  feature with some other literate programming
23394  tool of your choice by just changing your \SpecialChar LyX
23395  preferences.
23396 \end_layout
23397
23398 \begin_layout Subsubsection
23399 Generating documents and code (weaving and tangling)
23400 \end_layout
23401
23402 \begin_layout Paragraph
23403 Using the noweb module
23404 \end_layout
23405
23406 \begin_layout Standard
23407 If you have installed Noweb and \SpecialChar LyX
23408  successfully, whenever you open a new document,
23409  after you have chosen its document class, use the Document->Settings menu
23410  to add the 
23411 \begin_inset Quotes eld
23412 \end_inset
23413
23414 noweb
23415 \begin_inset Quotes erd
23416 \end_inset
23417
23418  module.
23419  If Noweb is correctly installed, when you click on the 
23420 \begin_inset Quotes eld
23421 \end_inset
23422
23423 Modules
23424 \begin_inset Quotes erd
23425 \end_inset
23426
23427  link, you will see the 
23428 \begin_inset Quotes eld
23429 \end_inset
23430
23431 noweb
23432 \begin_inset Quotes erd
23433 \end_inset
23434
23435  module in the available list and you can add it to your document.
23436 \end_layout
23437
23438 \begin_layout Paragraph
23439 Typing code in
23440 \end_layout
23441
23442 \begin_layout Standard
23443 \SpecialChar LyX
23444  enables you to write code with a layout named 
23445 \begin_inset Flex Noun
23446 status collapsed
23447
23448 \begin_layout Plain Layout
23449 Chunk
23450 \end_layout
23451
23452 \end_inset
23453
23454 .
23455  Noweb delimits chunks like this:
23456 \end_layout
23457
23458 \begin_layout LyX-Code
23459 <<My code>>=
23460 \end_layout
23461
23462 \begin_layout LyX-Code
23463   code
23464 \end_layout
23465
23466 \begin_layout LyX-Code
23467   more code
23468 \end_layout
23469
23470 \begin_layout LyX-Code
23471   even more code
23472 \end_layout
23473
23474 \begin_layout LyX-Code
23475   @
23476 \end_layout
23477
23478 \begin_layout Standard
23479 The problem is that whatever is written in between the << and the 
23480 \family typewriter
23481 @
23482 \family default
23483  must be taken literally, i.
23484 \begin_inset space \thinspace{}
23485 \end_inset
23486
23487 e.
23488 \begin_inset space \space{}
23489 \end_inset
23490
23491 \SpecialChar LyX
23492  should be prevented from making any special interpretation of what has
23493  been written.
23494  This is also handled by 
23495 \begin_inset Flex Noun
23496 status collapsed
23497
23498 \begin_layout Plain Layout
23499 Chunk
23500 \end_layout
23501
23502 \end_inset
23503
23504 , that works like a normal paragraph but has a free spacing capability.
23505 \end_layout
23506
23507 \begin_layout Standard
23508 As a special note, you can also use the 
23509 \begin_inset Quotes eld
23510 \end_inset
23511
23512 %def
23513 \begin_inset Quotes erd
23514 \end_inset
23515
23516  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23517 rence:
23518 \end_layout
23519
23520 \begin_layout LyX-Code
23521 <<My chunk>>=
23522 \end_layout
23523
23524 \begin_layout LyX-Code
23525 def some_function(args):
23526 \end_layout
23527
23528 \begin_layout LyX-Code
23529    "This is the doc string for this function."
23530 \end_layout
23531
23532 \begin_layout LyX-Code
23533    print "My args: ", args
23534 \end_layout
23535
23536 \begin_layout LyX-Code
23537 @ %def some_function
23538 \end_layout
23539
23540 \begin_layout Standard
23541 For an example of this usage and the resulting cross-reference output, look
23542  at the Literate python program in 
23543 \emph on
23544 LIBDIR/examples/listerrors.lyx
23545 \emph default
23546  which should make this all clear.
23547 \end_layout
23548
23549 \begin_layout Paragraph
23550 Generating the documentation
23551 \end_layout
23552
23553 \begin_layout Standard
23554 At this point you already have a new document file with a proper document
23555  class, and with some code and text on it.
23556  How do I print it? The answer is simple, you select 
23557 \family sans
23558 View\SpecialChar menuseparator
23559 DVI,
23560 \family default
23561  etc.
23562  Just like you would do for a plain document.
23563  No special procedure is required.
23564 \end_layout
23565
23566 \begin_layout Standard
23567 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23568 :
23569 \end_layout
23570
23571 \begin_layout Enumerate
23572 When the 
23573 \family sans
23574 Update\SpecialChar menuseparator
23575 DVI
23576 \family default
23577  menu option is chosen, a \SpecialChar LaTeX
23578  file is generated.
23579  
23580 \begin_inset Separator parbreak
23581 \end_inset
23582
23583
23584 \end_layout
23585
23586 \begin_deeper
23587 \begin_layout Standard
23588 If the document is of any literate class the generated file will be named
23589  with an extension name defined by the 
23590 \begin_inset Quotes eld
23591 \end_inset
23592
23593 literate
23594 \begin_inset Quotes erd
23595 \end_inset
23596
23597  format (defined in the Preferences panel), otherwise the file will have
23598  the usual 
23599 \family typewriter
23600 .tex
23601 \family default
23602  extension.
23603 \end_layout
23604
23605 \end_deeper
23606 \begin_layout Enumerate
23607 Note that the only difference so far is in the name of the file, no special
23608  processing is required by \SpecialChar LyX
23609 .
23610  Given that you formatted the code using the 
23611 \begin_inset Flex Noun
23612 status collapsed
23613
23614 \begin_layout Plain Layout
23615 Chunk
23616 \end_layout
23617
23618 \end_inset
23619
23620  layout that, by itself, takes care of the business.
23621 \end_layout
23622
23623 \begin_layout Enumerate
23624 If the document is of any literate class \SpecialChar LyX
23625  will then use the internal \SpecialChar LyX
23626  to
23627  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23628  converter
23629 \begin_inset Foot
23630 status collapsed
23631
23632 \begin_layout Plain Layout
23633 The converters are defined in the 
23634 \family sans
23635 Tools\SpecialChar menuseparator
23636 Preferences
23637 \family default
23638  panel, under the 
23639 \begin_inset Quotes eld
23640 \end_inset
23641
23642 Conversion
23643 \begin_inset Quotes erd
23644 \end_inset
23645
23646  tab.
23647  See section 
23648 \emph on
23649 Converters
23650 \emph default
23651  of the 
23652 \emph on
23653 Customization
23654 \emph default
23655  manual for general information about converters.
23656 \end_layout
23657
23658 \end_inset
23659
23660  to generate the \SpecialChar LaTeX
23661  file.
23662 \begin_inset Separator parbreak
23663 \end_inset
23664
23665
23666 \end_layout
23667
23668 \begin_deeper
23669 \begin_layout Standard
23670 Otherwise it will just skip this step.
23671 \end_layout
23672
23673 \end_deeper
23674 \begin_layout Enumerate
23675 Finally, \SpecialChar LaTeX
23676  is invoked and the regular post processing continues as in a plain
23677  document.
23678 \end_layout
23679
23680 \begin_layout Standard
23681 Independence from a particular 
23682 \begin_inset Quotes eld
23683 \end_inset
23684
23685 literate tool
23686 \begin_inset Quotes erd
23687 \end_inset
23688
23689  is easily achieved by changing the commands that are run by the various
23690  converters.
23691 \end_layout
23692
23693 \begin_layout Paragraph
23694 Generating the code
23695 \end_layout
23696
23697 \begin_layout Standard
23698 When the build menu option is chosen or the corresponding button in the
23699  toolbar is pressed, a \SpecialChar LaTeX
23700  file is generated just like step 1 above.
23701  Next, \SpecialChar LyX
23702  invokes the 
23703 \family typewriter
23704 Noweb->Program
23705 \family default
23706  converter.
23707  This converter needs to be defined by the user and is not installed by
23708  default, though the Program format is.
23709  This converter (like any other converter) will have two parts:
23710 \end_layout
23711
23712 \begin_layout Enumerate
23713 The converter program itself.
23714  This program performs the conversion from the one format to the other (in
23715  this case, from the Noweb format to the Program pseudo-format).
23716 \end_layout
23717
23718 \begin_layout Enumerate
23719 The error log parser.
23720  This is a program whose sole purpose is to rewrite error messages in a
23721  format that \SpecialChar LyX
23722  understands.
23723  This makes it possible for \SpecialChar LyX
23724  to place error boxes in the right places in
23725  the file buffer.
23726 \end_layout
23727
23728 \begin_layout Standard
23729 The first part, the 
23730 \begin_inset Quotes eld
23731 \end_inset
23732
23733 Converter
23734 \begin_inset Quotes erd
23735 \end_inset
23736
23737  setting, should be set to
23738 \begin_inset Newline newline
23739 \end_inset
23740
23741
23742 \begin_inset Quotes eld
23743 \end_inset
23744
23745
23746 \family typewriter
23747 build-script $$i
23748 \family default
23749  $$r
23750 \begin_inset Quotes erd
23751 \end_inset
23752
23753 .
23754 \begin_inset Newline newline
23755 \end_inset
23756
23757 This basically means that \SpecialChar LyX
23758  will call 
23759 \begin_inset Quotes eld
23760 \end_inset
23761
23762 build-script
23763 \begin_inset Quotes erd
23764 \end_inset
23765
23766  (a program or script) with the name of the Noweb file (normally a file
23767  in the \SpecialChar LyX
23768  temp directory) and the directory path of the original \SpecialChar LyX
23769  file.
23770  
23771 \end_layout
23772
23773 \begin_layout Standard
23774 This is an implementation of 
23775 \begin_inset Quotes eld
23776 \end_inset
23777
23778 build-script
23779 \begin_inset Quotes erd
23780 \end_inset
23781
23782  that you can place in a directory on your path:
23783 \end_layout
23784
23785 \begin_layout Standard
23786 \begin_inset VSpace defskip
23787 \end_inset
23788
23789
23790 \end_layout
23791
23792 \begin_layout Standard
23793 \begin_inset Newpage pagebreak
23794 \end_inset
23795
23796
23797 \end_layout
23798
23799 \begin_layout Standard
23800
23801 \family sans
23802 #!/bin/sh
23803 \end_layout
23804
23805 \begin_layout Standard
23806
23807 \family sans
23808 #
23809 \end_layout
23810
23811 \begin_layout Standard
23812
23813 \family sans
23814 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23815 \end_layout
23816
23817 \begin_layout Standard
23818 \begin_inset VSpace defskip
23819 \end_inset
23820
23821
23822 \end_layout
23823
23824 \begin_layout Standard
23825 The next part of the converter setting is the 
23826 \begin_inset Quotes eld
23827 \end_inset
23828
23829 Flags
23830 \begin_inset Quotes erd
23831 \end_inset
23832
23833  which is to be set to
23834 \begin_inset Newline newline
23835 \end_inset
23836
23837
23838 \begin_inset Quotes eld
23839 \end_inset
23840
23841
23842 \family typewriter
23843 parselog=$$s/scripts/listerrors
23844 \family default
23845
23846 \begin_inset Quotes erd
23847 \end_inset
23848
23849 .
23850 \begin_inset Newline newline
23851 \end_inset
23852
23853 This will run any errors that are generated by the 
23854 \begin_inset Quotes eld
23855 \end_inset
23856
23857 build-script
23858 \begin_inset Quotes erd
23859 \end_inset
23860
23861  process through the 
23862 \begin_inset Quotes eld
23863 \end_inset
23864
23865 listerrors
23866 \begin_inset Quotes erd
23867 \end_inset
23868
23869  program.
23870 \end_layout
23871
23872 \begin_layout Standard
23873 The build will normally take place in \SpecialChar LyX
23874 's temporary directory, so the files
23875  produced by the conversion will be in that directory.
23876  \SpecialChar LyX
23877  will copy out what it regards as the `main' file, but the 
23878 \family typewriter
23879 Noweb->Program
23880 \family default
23881  conversion may produce several files, and so most of these would then be
23882  deleted when \SpecialChar LyX
23883  was closed.
23884  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23885  the build-script chunk can place the generated files in that location.
23886 \end_layout
23887
23888 \begin_layout Paragraph
23889 Build instructions in the document
23890 \end_layout
23891
23892 \begin_layout Standard
23893 The last piece of the integration between \SpecialChar LyX
23894  and noweb is the 
23895 \begin_inset Quotes eld
23896 \end_inset
23897
23898 build-script
23899 \begin_inset Quotes erd
23900 \end_inset
23901
23902  chunk.
23903  Generally, the instructions for building your program should be embedded
23904  in a chunk of its own.
23905  The noweb-specific 
23906 \begin_inset Quotes eld
23907 \end_inset
23908
23909 build-script
23910 \begin_inset Quotes erd
23911 \end_inset
23912
23913  above uses the notangle command to look for this chunk (called 
23914 \begin_inset Quotes eld
23915 \end_inset
23916
23917 build-script
23918 \begin_inset Quotes erd
23919 \end_inset
23920
23921 ) and runs its contents through 
23922 \begin_inset Quotes eld
23923 \end_inset
23924
23925 sh
23926 \begin_inset Quotes erd
23927 \end_inset
23928
23929 .
23930 \end_layout
23931
23932 \begin_layout Standard
23933 Typically, such a chunk would look something like this:
23934 \end_layout
23935
23936 \begin_layout LyX-Code
23937 <<build-script>>=
23938 \end_layout
23939
23940 \begin_layout LyX-Code
23941 #!/bin/sh
23942 \begin_inset Newline newline
23943 \end_inset
23944
23945 if [ -z "${NOWEB_SOURCE}" ]
23946 \begin_inset Newline newline
23947 \end_inset
23948
23949 then
23950 \end_layout
23951
23952 \begin_layout LyX-Code
23953 NOWEB_SOURCE=myfile.nw
23954 \begin_inset Newline newline
23955 \end_inset
23956
23957 fi
23958 \begin_inset Newline newline
23959 \end_inset
23960
23961 [...
23962  code to extract files ...
23963  use NOWEB_OUTPUT_DIR here ...]
23964 \begin_inset Newline newline
23965 \end_inset
23966
23967 [...
23968  code to compile files ...]
23969 \begin_inset Newline newline
23970 \end_inset
23971
23972 @
23973 \end_layout
23974
23975 \begin_layout Standard
23976 Look in 
23977 \emph on
23978 LIBDIR/examples/listerrors.lyx
23979 \emph default
23980  or in 
23981 \emph on
23982 LIBDIR/examples/Literate.lyx
23983 \emph default
23984  which implement two versions of the 
23985 \begin_inset Quotes eld
23986 \end_inset
23987
23988 listerrors
23989 \begin_inset Quotes erd
23990 \end_inset
23991
23992  program for some illustrations of how all of these pieces go together or
23993  in 
23994 \emph on
23995 LIBDIR/examples/noweb2lyx.lyx.
23996
23997 \emph default
23998  Interestingly, these three files show off the language-indepence of the
23999  \SpecialChar LyX
24000  literate programming support since they are written in Python, C and Perl
24001  respectively.
24002 \end_layout
24003
24004 \begin_layout Subsubsection
24005 Configuring \SpecialChar LyX
24006
24007 \end_layout
24008
24009 \begin_layout Standard
24010 All the Literate Programming support is configured by the 
24011 \family sans
24012 Tools\SpecialChar menuseparator
24013 Preferences
24014 \family default
24015  panel in the 
24016 \begin_inset Quotes eld
24017 \end_inset
24018
24019 File Handling
24020 \begin_inset Quotes erd
24021 \end_inset
24022
24023  tab.
24024  The important parts are:
24025 \end_layout
24026
24027 \begin_layout Description
24028 the
24029 \begin_inset space ~
24030 \end_inset
24031
24032
24033 \begin_inset Quotes eld
24034 \end_inset
24035
24036 NoWeb
24037 \begin_inset Quotes erd
24038 \end_inset
24039
24040
24041 \begin_inset space ~
24042 \end_inset
24043
24044 format Set up via the File Formats tab, this is where the Noweb-specific
24045  pieces are set up.
24046  The 
24047 \family sans
24048 GUI Name
24049 \family default
24050  is set to 
24051 \family typewriter
24052 NoWeb
24053 \family default
24054 , the file extension is set to 
24055 \family typewriter
24056 .nw
24057 \family default
24058 .
24059  This tells \SpecialChar LyX
24060  to create a file with a 
24061 \family typewriter
24062 .nw
24063 \family default
24064  extension in the first step of the conversion process.
24065 \end_layout
24066
24067 \begin_layout Description
24068 the
24069 \begin_inset space ~
24070 \end_inset
24071
24072
24073 \family sans
24074 Program
24075 \family default
24076
24077 \begin_inset space ~
24078 \end_inset
24079
24080 format This is an empty format whose sole purpose is to be the endpoint
24081  of a conversion (which then allows us to set up a converter for it).
24082 \end_layout
24083
24084 \begin_layout Description
24085
24086 \family sans
24087 NoWeb
24088 \family default
24089 ->
24090 \family sans
24091 \SpecialChar LaTeX
24092
24093 \family default
24094  This converter performs the 
24095 \begin_inset Quotes eld
24096 \end_inset
24097
24098 weaving
24099 \begin_inset Quotes erd
24100 \end_inset
24101
24102  of the literate document.
24103  For Noweb, it is set to 
24104 \begin_inset Quotes eld
24105 \end_inset
24106
24107
24108 \family typewriter
24109 noweave -delay -index $$i > $$o
24110 \family default
24111
24112 \begin_inset Quotes erd
24113 \end_inset
24114
24115
24116 \end_layout
24117
24118 \begin_layout Description
24119
24120 \family sans
24121 NoWeb
24122 \family default
24123 ->
24124 \family sans
24125 Program
24126 \family default
24127  This performs the 
24128 \begin_inset Quotes eld
24129 \end_inset
24130
24131 tangling step
24132 \begin_inset Quotes erd
24133 \end_inset
24134
24135 .
24136  As stated above, the Converter is set to 
24137 \begin_inset Quotes eld
24138 \end_inset
24139
24140
24141 \family typewriter
24142 build-script $$i
24143 \family default
24144  $$r
24145 \begin_inset Quotes erd
24146 \end_inset
24147
24148 , with Flags set to
24149 \begin_inset Newline newline
24150 \end_inset
24151
24152
24153 \begin_inset Quotes eld
24154 \end_inset
24155
24156
24157 \family typewriter
24158 parselog=$$s/scripts/listerrors
24159 \family default
24160
24161 \begin_inset Quotes erd
24162 \end_inset
24163
24164 .
24165 \end_layout
24166
24167 \begin_layout Subsubsection
24168 Debug extensions
24169 \end_layout
24170
24171 \begin_layout Standard
24172 There is also a new function implemented in the \SpecialChar LyX
24173  server, the 
24174 \begin_inset Quotes eld
24175 \end_inset
24176
24177 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24178  
24179 \end_layout
24180
24181 \begin_layout Standard
24182 When debugging code with ddd/gdb, it is possible to invoke a text editor
24183  at the current execution position with a single key stroke.
24184  The default ddd configuration for that is shift-ctrl-V.
24185  It happens that you can define the editor command line invocation in ddd
24186  by accessing the 
24187 \family sans
24188 Edit\SpecialChar menuseparator
24189 Preferences\SpecialChar menuseparator
24190 Helpers
24191 \family default
24192  dialog and changing the "Edit Sources" entry.
24193 \end_layout
24194
24195 \begin_layout Standard
24196 I take advantage of the newly created \SpecialChar LyX
24197  server function and this ddd feature,
24198  and set 
24199 \begin_inset Quotes eld
24200 \end_inset
24201
24202 Edit Sources
24203 \begin_inset Quotes erd
24204 \end_inset
24205
24206  to:
24207 \end_layout
24208
24209 \begin_layout Standard
24210 \begin_inset VSpace defskip
24211 \end_inset
24212
24213
24214 \end_layout
24215
24216 \begin_layout Standard
24217
24218 \family sans
24219 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24220 \end_layout
24221
24222 \begin_layout Standard
24223 \begin_inset VSpace defskip
24224 \end_inset
24225
24226
24227 \end_layout
24228
24229 \begin_layout Standard
24230 With this, whenever you are using ddd and find a point in the program that
24231  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24232  ddd will forward this information to \SpecialChar LyX
24233  through the \SpecialChar LyX
24234  server and then the
24235  \SpecialChar LyX
24236  window will show the same file with the cursor at the same position ddd
24237  was pointing to.
24238  No more guessing or long scrolling to locate a point in the program back
24239  from debugging !
24240 \end_layout
24241
24242 \begin_layout Standard
24243 Note however that you must enable the \SpecialChar LyX
24244  server to get this feature working
24245  (it is disabled by default).
24246  You can enable it in 
24247 \family sans
24248 Preferences
24249 \family default
24250  (tabs 
24251 \family sans
24252 Inputs
24253 \family default
24254
24255 \family sans
24256 Paths
24257 \family default
24258 ) by entering in the 
24259 \family sans
24260 \SpecialChar LyX
24261 server pipe
24262 \family default
24263  a path like 
24264 \begin_inset Quotes eld
24265 \end_inset
24266
24267
24268 \family typewriter
24269 /home/<your-home-directory>/.lyx/lyxpipe
24270 \family default
24271
24272 \begin_inset Quotes erd
24273 \end_inset
24274
24275
24276 \end_layout
24277
24278 \begin_layout Standard
24279 Read the \SpecialChar LyX
24280  server documentation in the 
24281 \emph on
24282 Customization Manual
24283 \emph default
24284  for further information.
24285 \end_layout
24286
24287 \begin_layout Subsubsection
24288 Toolbar extensions
24289 \end_layout
24290
24291 \begin_layout Standard
24292 There are six new buttons that can be added to your \SpecialChar LyX
24293  toolbar.
24294  Five of these buttons are short cuts to layout styles: 
24295 \family sans
24296 Standard
24297 \family default
24298
24299 \family sans
24300 Section
24301 \family default
24302
24303 \family sans
24304 \SpecialChar LaTeX
24305
24306 \family default
24307
24308 \family sans
24309 \SpecialChar LyX
24310 -Code
24311 \family default
24312 , and 
24313 \family sans
24314 Chunk
24315 \family default
24316 .
24317  The last one is a short cut to the 
24318 \begin_inset Quotes eld
24319 \end_inset
24320
24321 Build Program
24322 \begin_inset Quotes erd
24323 \end_inset
24324
24325  File menu entry.
24326  
24327 \end_layout
24328
24329 \begin_layout Standard
24330 \SpecialChar LyX
24331  has a range of buttons that are available for tool bar customization.
24332  In my toolbar I like to combine the six short cuts above with two more:
24333  One for 
24334 \family sans
24335 Document
24336 \family default
24337 \SpecialChar menuseparator
24338
24339 \family sans
24340 Update
24341 \family default
24342 \SpecialChar menuseparator
24343
24344 \family sans
24345 DVI
24346 \family default
24347  and the other for 
24348 \family sans
24349 Document\SpecialChar menuseparator
24350 View\SpecialChar menuseparator
24351 DVI
24352 \family default
24353  File menu entries.
24354  Here is how it looks like:
24355 \end_layout
24356
24357 \begin_layout LyX-Code
24358 Toolbar
24359 \end_layout
24360
24361 \begin_layout LyX-Code
24362   Layouts
24363 \end_layout
24364
24365 \begin_layout LyX-Code
24366   Icon "layout Standard"
24367 \end_layout
24368
24369 \begin_layout LyX-Code
24370   Icon "layout Section"
24371 \end_layout
24372
24373 \begin_layout LyX-Code
24374   Icon "layout \SpecialChar LaTeX
24375 "
24376 \end_layout
24377
24378 \begin_layout LyX-Code
24379   Icon "layout \SpecialChar LyX
24380 -Code"
24381 \end_layout
24382
24383 \begin_layout LyX-Code
24384   Icon "layout Chunk"
24385 \end_layout
24386
24387 \begin_layout LyX-Code
24388   Separator
24389 \end_layout
24390
24391 \begin_layout LyX-Code
24392   Icon "buffer-view"
24393 \end_layout
24394
24395 \begin_layout LyX-Code
24396   Icon "buffer-typeset"
24397 \end_layout
24398
24399 \begin_layout LyX-Code
24400   Icon "build-program"
24401 \end_layout
24402
24403 \begin_layout LyX-Code
24404   Separator
24405 \end_layout
24406
24407 \begin_layout LyX-Code
24408 .
24409 \end_layout
24410
24411 \begin_layout LyX-Code
24412 .
24413 \end_layout
24414
24415 \begin_layout LyX-Code
24416 .
24417 \end_layout
24418
24419 \begin_layout LyX-Code
24420 End
24421 \end_layout
24422
24423 \begin_layout Subsubsection
24424 Colors customization
24425 \end_layout
24426
24427 \begin_layout Standard
24428 There are a number of colors in \SpecialChar LyX
24429  that can be customized in 
24430 \family sans
24431 Preferences
24432 \family default
24433 .
24434  One of the things that bothers people is the \SpecialChar LaTeX
24435  font color.
24436  The default color is red, since the chunks uses \SpecialChar LaTeX
24437  font, and there is a lot
24438  of chunks in literate documents, you may get tired of seeing everything
24439  in red.
24440  You can change it by going to the tabs 
24441 \family sans
24442 Look&Feel
24443 \family default
24444
24445 \family sans
24446 Colors.
24447 \end_layout
24448
24449 \begin_layout Standard
24450 The next thing is the visible presence of the newline character in the screen.
24451  You can choose the color of this particular character and make it blend
24452  in the background.
24453  I recommend you choosing a color that is close to the background but not
24454  equal, that way you still can see it is there, but it is not bothering
24455  you anymore.
24456 \end_layout
24457
24458 \begin_layout Subsection
24459 \SpecialChar LyX
24460  and knitr/Sweave
24461 \end_layout
24462
24463 \begin_layout Standard
24464 Support for 
24465 \family sans
24466 knitr
24467 \family default
24468  and 
24469 \family sans
24470 Sweave
24471 \family default
24472  is documented in the 
24473 \emph on
24474 knitr.lyx
24475 \emph default
24476  example file and in the Sweave manual (menu 
24477 \family sans
24478 Help\SpecialChar menuseparator
24479 Specific Manuals
24480 \family default
24481 ).
24482 \end_layout
24483
24484 \begin_layout Chapter
24485 Special features
24486 \end_layout
24487
24488 \begin_layout Standard
24489 You can do everything with \SpecialChar LyX
24490  that you can do with \SpecialChar LaTeX
24491 .
24492  However, \SpecialChar LyX
24493  cannot support every \SpecialChar LaTeX
24494  feature directly.
24495  But you can always use \SpecialChar TeX
24496  Code.
24497  This chapter shows you some more special things you might want to use.
24498  For other special things you can do with figures, tables, floats, boxes
24499  and notes, have a look at the 
24500 \emph on
24501 Embedded
24502 \begin_inset space ~
24503 \end_inset
24504
24505 Objects
24506 \emph default
24507  manual.
24508 \end_layout
24509
24510 \begin_layout Section
24511 Multiple Text Columns
24512 \end_layout
24513
24514 \begin_layout Standard
24515 This feature is independent of the option 
24516 \family sans
24517 Two-column document
24518 \family default
24519  in the document settings under 
24520 \family sans
24521 Text Layout
24522 \family default
24523 .
24524  If you want to have 2
24525 \begin_inset space ~
24526 \end_inset
24527
24528 columns for the whole document, it is recommended to use the 
24529 \family sans
24530 Two-column document
24531 \family default
24532  option.
24533  For all other cases use this feature.
24534 \end_layout
24535
24536 \begin_layout Standard
24537 To use multiple text columns in your document, you have to load the module
24538  
24539 \family sans
24540 Multiple Columns
24541 \family default
24542  (menu 
24543 \family sans
24544 Document\SpecialChar menuseparator
24545 Settings\SpecialChar menuseparator
24546 Modules
24547 \family default
24548 ) and must have the \SpecialChar LaTeX
24549 -package 
24550 \series bold
24551 multicol
24552 \series default
24553  installed.
24554 \end_layout
24555
24556 \begin_layout Standard
24557 Footnotes within multiple columns will be placed at the bottom of the page
24558  and not under each column.
24559  Within the different columns you can use everything, with the limitation
24560  that for floats you need to use the float option 
24561 \family sans
24562 Span columns
24563 \family default
24564 .
24565 \end_layout
24566
24567 \begin_layout Subsection
24568 Basics
24569 \end_layout
24570
24571 \begin_layout Standard
24572 If you want to have 2
24573 \begin_inset space ~
24574 \end_inset
24575
24576 columns in your text, insert a multicolumn inset via the menu 
24577 \family sans
24578 Insert\SpecialChar menuseparator
24579 Custom
24580 \begin_inset space ~
24581 \end_inset
24582
24583 Insets\SpecialChar menuseparator
24584 Multiple
24585 \begin_inset space ~
24586 \end_inset
24587
24588 Columns
24589 \family default
24590  where the columns should start.
24591  Write all text that should be printed in 2
24592 \begin_inset space ~
24593 \end_inset
24594
24595 columns into this inset.
24596 \end_layout
24597
24598 \begin_layout Standard
24599 Here is an example:
24600 \end_layout
24601
24602 \begin_layout Standard
24603 \noindent
24604 \begin_inset Flex Multiple Columns
24605 status open
24606
24607 \begin_layout Plain Layout
24608 \noindent
24609
24610 \series bold
24611 \size small
24612 The Adventure of the Empty House
24613 \series default
24614
24615 \begin_inset Newline newline
24616 \end_inset
24617
24618 by Sir Arthur Conan Doyle
24619 \end_layout
24620
24621 \begin_layout Plain Layout
24622
24623 \size small
24624 It was in the spring of the year 1894 that all London was interested, and
24625  the fashionable world dismayed, by the murder of the Honourable Ronald
24626  Adair under most unusual and inexplicable circumstances.
24627  The public has already learned those particulars of the crime which came
24628  out in the police investigation, but a good deal was suppressed upon that
24629  occasion, since the case for the prosecution was so overwhelmingly strong
24630  that it was not necessary to bring forward all the facts.
24631  Only now, at the end of nearly ten years, am I allowed to supply those
24632  missing links which make up the whole of that remarkable chain.
24633  The crime was of interest in itself, but that interest was as nothing to
24634  me compared to the inconceivable sequel, which afforded me the greatest
24635  shock and surprise of any event in my adventurous life.
24636  Even now, after this long interval, I find myself thrilling as I think
24637  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24638 ty which utterly submerged my mind.
24639  Let me say to that public, which has shown some interest in those glimpses
24640  which I have occasionally given them of the thoughts and actions of a very
24641  remarkable man, that they are not to blame me if I have not shared my knowledge
24642  with them, for I should have considered it my first duty to do so, had
24643  I not been barred by a positive prohibition from his own lips, which was
24644  only withdrawn upon the third of last month.
24645 \end_layout
24646
24647 \end_inset
24648
24649
24650 \end_layout
24651
24652 \begin_layout Standard
24653 To get 3 or more columns, set the cursor into the multicolumn inset and
24654  use the menu 
24655 \family sans
24656 Insert\SpecialChar menuseparator
24657 Number
24658 \begin_inset space ~
24659 \end_inset
24660
24661 of
24662 \begin_inset space ~
24663 \end_inset
24664
24665 Columns
24666 \family default
24667 .
24668  The number of the desired columns is written into that inset (for 3
24669 \begin_inset space ~
24670 \end_inset
24671
24672 columns write 
24673 \begin_inset Quotes eld
24674 \end_inset
24675
24676 3
24677 \begin_inset Quotes erd
24678 \end_inset
24679
24680 ).
24681 \begin_inset Newline newline
24682 \end_inset
24683
24684 Here is an example with 3
24685 \begin_inset space ~
24686 \end_inset
24687
24688 columns:
24689 \end_layout
24690
24691 \begin_layout Standard
24692 \begin_inset Flex Multiple Columns
24693 status open
24694
24695 \begin_layout Plain Layout
24696
24697 \size footnotesize
24698 \begin_inset Argument 1
24699 status open
24700
24701 \begin_layout Plain Layout
24702 3
24703 \end_layout
24704
24705 \end_inset
24706
24707 It can be imagined that my close intimacy with Sherlock Holmes had interested
24708  me deeply in crime, and that after his disappearance I never failed to
24709  read with care the various problems which came before the public.
24710  And I even attempted, more than once, for my own private satisfaction,
24711  to employ his methods in their solution, though with indifferent success.
24712  There was none, however, which appealed to me like this tragedy of Ronald
24713  Adair.
24714  As I read the evidence at the inquest, which led up to a verdict of willful
24715  murder against some person or persons unknown, I realized more clearly
24716  than I had ever done the loss which the community had sustained by the
24717  death of Sherlock Holmes.
24718  There were points about this strange business which would, I was sure,
24719  have specially appealed to him, and the efforts of the police would have
24720  been supplemented, or more probably anticipated, by the trained observation
24721  and the alert mind of the first criminal agent in Europe.
24722  All day, as I drove upon my round, I turned over the case in my mind and
24723  found no explanation which appeared to me to be adequate.
24724  At the risk of telling a twice-told tale, I will recapitulate the facts
24725  as they were known to the public at the conclusion of the inquest.
24726 \end_layout
24727
24728 \end_inset
24729
24730
24731 \end_layout
24732
24733 \begin_layout Standard
24734 You can have up to 10
24735 \begin_inset space ~
24736 \end_inset
24737
24738 columns if you want to, but that might not be very pleasant for the readers
24739  of your document.
24740 \end_layout
24741
24742 \begin_layout Standard
24743 \begin_inset Newpage newpage
24744 \end_inset
24745
24746
24747 \end_layout
24748
24749 \begin_layout Subsection
24750 Columns inside Columns
24751 \end_layout
24752
24753 \begin_layout Standard
24754 You can also have columns inside columns:
24755 \end_layout
24756
24757 \begin_layout Standard
24758 \begin_inset Flex Multiple Columns
24759 status open
24760
24761 \begin_layout Plain Layout
24762
24763 \size footnotesize
24764 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24765  at that time governor of one of the Australian colonies.
24766  Adair's mother had returned from Australia to undergo the operation for
24767  cataract, and she, her son Ronald, and her daughter Hilda were living together
24768  at 427 Park Lane.
24769 \end_layout
24770
24771 \begin_layout Plain Layout
24772 \begin_inset Flex Multiple Columns
24773 status open
24774
24775 \begin_layout Plain Layout
24776
24777 \size footnotesize
24778 The youth moved in the best society–had, so far as was known, no enemies
24779  and no particular vices.
24780  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24781  had been broken off by mutual consent some months before, and there was
24782  no sign that it had left any very profound feeling behind it.
24783  For the rest {sic} the man's life moved in a narrow and conventional circle,
24784  for his habits were quiet and his nature unemotional.
24785  Yet it was upon this easy-going young aristocrat that death came, in most
24786  strange and unexpected form, between the hours of ten and eleven-twenty
24787  on the night of March 30, 1894.
24788 \end_layout
24789
24790 \end_inset
24791
24792
24793 \end_layout
24794
24795 \begin_layout Plain Layout
24796
24797 \size footnotesize
24798 Ronald Adair was fond of cards–playing continually, but never for such stakes
24799  as would hurt him.
24800  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24801  It was shown that, after dinner on the day of his death, he had played
24802  a rubber of whist at the latter club.
24803  He had also played there in the afternoon.
24804
24805 \size default
24806  
24807 \size footnotesize
24808 The evidence of those who had played with him– Mr.
24809  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24810  and that there was a fairly equal fall of the cards.
24811  Adair might have lost five pounds, but not more.
24812  His fortune was a considerable one, and such a loss could not in any way
24813  affect him.
24814  He had played nearly every day at one club or other, but he was a cautious
24815  player, and usually rose a winner.
24816  It came out in evidence that, in partnership with Colonel Moran, he had
24817  actually won as much as four hundred and twenty pounds in a sitting, some
24818  weeks before, from Godfrey Milner and Lord Balmoral.
24819  So much for his recent history as it came out at the inquest.
24820 \end_layout
24821
24822 \end_inset
24823
24824
24825 \end_layout
24826
24827 \begin_layout Subsection
24828 Advanced Examples
24829 \end_layout
24830
24831 \begin_layout Standard
24832 The examples in this section show some more special features of multiple
24833  columns.
24834 \end_layout
24835
24836 \begin_layout Standard
24837 For more features of multiple columns, have a look at the documentation
24838  of the \SpecialChar LaTeX
24839 -package 
24840 \series bold
24841 multicol
24842 \series default
24843
24844 \begin_inset CommandInset citation
24845 LatexCommand cite
24846 key "multicol"
24847
24848 \end_inset
24849
24850 .
24851 \end_layout
24852
24853 \begin_layout Subsubsection
24854 Preface
24855 \end_layout
24856
24857 \begin_layout Standard
24858 To add a preface text for multiple columns, set the cursor into the multicolumn
24859  inset and use the menu 
24860 \family sans
24861 Insert\SpecialChar menuseparator
24862 Preface
24863 \family default
24864 .
24865  Write your preface text into that inset.
24866 \begin_inset Newline newline
24867 \end_inset
24868
24869 This is an example with some preface text:
24870 \end_layout
24871
24872 \begin_layout Standard
24873 \begin_inset VSpace bigskip
24874 \end_inset
24875
24876
24877 \end_layout
24878
24879 \begin_layout Standard
24880 \begin_inset Flex Multiple Columns
24881 status open
24882
24883 \begin_layout Plain Layout
24884 \begin_inset Argument 2
24885 status open
24886
24887 \begin_layout Plain Layout
24888 And the story continues and continues and continues and continues\SpecialChar ldots
24889
24890 \end_layout
24891
24892 \end_inset
24893
24894
24895 \size small
24896 On the evening of the crime, he returned from the club exactly at ten.
24897  His mother and sister were out spending the evening with a relation.
24898  The servant deposed that she heard him enter the front room on the second
24899  floor, generally used as his sitting-room.
24900  She had lit a fire there, and as it smoked she had opened the window.
24901  No sound was heard from the room until eleven-twenty, the hour of the return
24902  of Lady Maynooth and her daughter.
24903  Desiring to say good-night, she attempted to enter her son's room.
24904  The door was locked on the inside, and no answer could be got to their
24905  cries and knocking.
24906  Help was obtained, and the door forced.
24907  The unfortunate young man was found lying near the table.
24908  His head had been horribly mutilated by an expanding revolver bullet, but
24909  no weapon of any sort was to be found in the room.
24910 \end_layout
24911
24912 \end_inset
24913
24914
24915 \end_layout
24916
24917 \begin_layout Standard
24918 You can also use a section heading as the preface if you use a section command
24919  as \SpecialChar TeX
24920  Code.
24921  For example the command
24922 \end_layout
24923
24924 \begin_layout Standard
24925
24926 \series bold
24927
24928 \backslash
24929 subsection{subsection title}
24930 \end_layout
24931
24932 \begin_layout Standard
24933 creates a subsection.
24934  In this example the preface is a subsubsection:
24935 \end_layout
24936
24937 \begin_layout Standard
24938 \begin_inset Flex Multiple Columns
24939 status open
24940
24941 \begin_layout Plain Layout
24942 \begin_inset Argument 2
24943 status open
24944
24945 \begin_layout Plain Layout
24946 \begin_inset ERT
24947 status collapsed
24948
24949 \begin_layout Plain Layout
24950
24951
24952 \backslash
24953 subsubsection{
24954 \end_layout
24955
24956 \end_inset
24957
24958 This is a subsubsection heading as a preface
24959 \begin_inset ERT
24960 status collapsed
24961
24962 \begin_layout Plain Layout
24963
24964 }
24965 \end_layout
24966
24967 \end_inset
24968
24969
24970 \end_layout
24971
24972 \end_inset
24973
24974
24975 \size small
24976 A minute examination of the circumstances served only to make the case more
24977  complex.
24978  In the first place, no reason could be given why the young man should have
24979  fastened the door upon the inside.
24980  There was the possibility that the murderer had done this, and had afterwards
24981  escaped by the window.
24982  The drop was at least twenty feet, however, and a bed of crocuses in full
24983  bloom lay beneath.
24984  Neither the flowers nor the earth showed any sign of having been disturbed,
24985  nor were there any marks upon the narrow strip of grass which separated
24986  the house from the road.
24987  Apparently, therefore, it was the young man himself who had fastened the
24988  door.
24989  But how did he come by his death? No one could have climbed up to the window
24990  without leaving traces.
24991  Suppose a man had fired through the window, he would indeed be a remarkable
24992  shot who could with a revolver inflict so deadly a wound.
24993  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24994  a hundred yards of the house.
24995  No one had heard a shot.
24996 \end_layout
24997
24998 \end_inset
24999
25000
25001 \end_layout
25002
25003 \begin_layout Standard
25004 If there is less vertical space than 6
25005 \begin_inset space ~
25006 \end_inset
25007
25008 text lines is left on the page at the beginning of the multiple columns,
25009  a page break will be inserted before the multiple columns.
25010  Depending on the number of lines of the preface text, you might want to
25011  change this space.
25012  This is done by setting the cursor into the mulitcolumn inset behind the
25013  preface (if there is any) and using the menu 
25014 \family sans
25015 Insert\SpecialChar menuseparator
25016 Space
25017 \begin_inset space ~
25018 \end_inset
25019
25020 Before
25021 \begin_inset space ~
25022 \end_inset
25023
25024 Page
25025 \begin_inset space ~
25026 \end_inset
25027
25028 Break
25029 \family default
25030 .
25031  Insert into that inset the amount of space like e.
25032 \begin_inset space \thinspace{}
25033 \end_inset
25034
25035 g.
25036 \begin_inset space \space{}
25037 \end_inset
25038
25039
25040 \begin_inset Quotes eld
25041 \end_inset
25042
25043 5cm
25044 \begin_inset Quotes erd
25045 \end_inset
25046
25047 .
25048 \begin_inset Newline newline
25049 \end_inset
25050
25051 In this example the space is set to 7
25052 \begin_inset space ~
25053 \end_inset
25054
25055 text lines by using 
25056 \begin_inset Quotes eld
25057 \end_inset
25058
25059 7
25060 \backslash
25061 baselineskip
25062 \begin_inset Quotes erd
25063 \end_inset
25064
25065  (where the command 
25066 \series bold
25067
25068 \backslash
25069 baselineskip
25070 \series default
25071  needs to be inserted as \SpecialChar TeX
25072  code):
25073 \end_layout
25074
25075 \begin_layout Standard
25076 \begin_inset Flex Multiple Columns
25077 status open
25078
25079 \begin_layout Plain Layout
25080 \begin_inset Argument 3
25081 status open
25082
25083 \begin_layout Plain Layout
25084 7
25085 \begin_inset ERT
25086 status collapsed
25087
25088 \begin_layout Plain Layout
25089
25090
25091 \backslash
25092 baselineskip
25093 \end_layout
25094
25095 \end_inset
25096
25097
25098 \end_layout
25099
25100 \end_inset
25101
25102
25103 \size small
25104 On the evening of the crime, he returned from the club exactly at ten.
25105  His mother and sister were out spending the evening with a relation.
25106  The servant deposed that she heard him enter the front room on the second
25107  floor, generally used as his sitting-room.
25108  She had lit a fire there, and as it smoked she had opened the window.
25109  No sound was heard from the room until eleven-twenty, the hour of the return
25110  of Lady Maynooth and her daughter.
25111  Desiring to say good-night, she attempted to enter her son's room.
25112  The door was locked on the inside, and no answer could be got to their
25113  cries and knocking.
25114  Help was obtained, and the door forced.
25115  The unfortunate young man was found lying near the table.
25116  His head had been horribly mutilated by an expanding revolver bullet, but
25117  no weapon of any sort was to be found in the room.
25118 \end_layout
25119
25120 \end_inset
25121
25122
25123 \end_layout
25124
25125 \begin_layout Subsubsection
25126 Surrounding Space
25127 \end_layout
25128
25129 \begin_layout Standard
25130 The amount of space before and after multiple columns can be changed by
25131  changing the length 
25132 \series bold
25133
25134 \backslash
25135 multicolsep
25136 \series default
25137 .
25138  For example the command
25139 \end_layout
25140
25141 \begin_layout Standard
25142
25143 \series bold
25144
25145 \backslash
25146 setlength{
25147 \backslash
25148 multicolsep}{3cm}
25149 \end_layout
25150
25151 \begin_layout Standard
25152 in \SpecialChar TeX
25153  Code changes its value to 3
25154 \begin_inset space \thinspace{}
25155 \end_inset
25156
25157 cm.
25158  The change must be made before the multiple columns' start.
25159  The predefined value is 13
25160 \begin_inset space \thinspace{}
25161 \end_inset
25162
25163 pt.
25164 \end_layout
25165
25166 \begin_layout Standard
25167 For this example 
25168 \series bold
25169
25170 \backslash
25171 multicolsep
25172 \series default
25173  was set to 2.5
25174 \begin_inset space \thinspace{}
25175 \end_inset
25176
25177 cm:
25178 \end_layout
25179
25180 \begin_layout Standard
25181 \begin_inset ERT
25182 status open
25183
25184 \begin_layout Plain Layout
25185
25186
25187 \backslash
25188 setlength{
25189 \backslash
25190 multicolsep}{2.5cm}
25191 \end_layout
25192
25193 \end_inset
25194
25195
25196 \end_layout
25197
25198 \begin_layout Standard
25199 \begin_inset Flex Multiple Columns
25200 status open
25201
25202 \begin_layout Plain Layout
25203
25204 \size small
25205 All day I turned these facts over in my mind, endeavouring to hit upon some
25206  theory which could reconcile them all, and to find that line of least resistanc
25207 e which my poor friend had declared to be the starting-point of every investigat
25208 ion.
25209  I confess that I made little progress.
25210  In the evening I strolled across the Park, and found myself about six o'clock
25211  at the Oxford Street end of Park Lane.
25212  A group of loafers upon the pavements, all staring up at a particular window,
25213  directed me to the house which I had come to see.
25214  A tall, thin man with coloured glasses, whom I strongly suspected of being
25215  a plain-clothes detective, was pointing out some theory of his own, while
25216  the others crowded round to listen to what he said.
25217  I got as near him as I could, but his observations seemed to me to be absurd,
25218  so I withdrew again in some disgust.
25219  As I did so I struck against an elderly, deformed man, who had been behind
25220  me, and I knocked down several books which he was carrying.
25221 \end_layout
25222
25223 \end_inset
25224
25225
25226 \end_layout
25227
25228 \begin_layout Standard
25229 \begin_inset Note Greyedout
25230 status open
25231
25232 \begin_layout Plain Layout
25233
25234 \series bold
25235 Note:
25236 \series default
25237  The values you set with 
25238 \series bold
25239
25240 \backslash
25241 setlength
25242 \series default
25243  will be used for all following multiple columns until you change them again.
25244 \end_layout
25245
25246 \end_inset
25247
25248
25249 \end_layout
25250
25251 \begin_layout Standard
25252 \begin_inset ERT
25253 status collapsed
25254
25255 \begin_layout Plain Layout
25256
25257
25258 \backslash
25259 setlength{
25260 \backslash
25261 multicolsep}{13pt}
25262 \end_layout
25263
25264 \end_inset
25265
25266
25267 \begin_inset Note Note
25268 status collapsed
25269
25270 \begin_layout Plain Layout
25271 go back to the default
25272 \end_layout
25273
25274 \end_inset
25275
25276
25277 \end_layout
25278
25279 \begin_layout Standard
25280 \begin_inset Newpage newpage
25281 \end_inset
25282
25283
25284 \end_layout
25285
25286 \begin_layout Subsubsection
25287 Column Breaks
25288 \end_layout
25289
25290 \begin_layout Standard
25291 A column break can be forced by inserting the command 
25292 \series bold
25293
25294 \backslash
25295 columnbreak{}
25296 \series default
25297  as \SpecialChar TeX
25298
25299 \change_inserted -712698321 1437633561
25300  
25301 \change_deleted -712698321 1437633560
25302 -
25303 \change_unchanged
25304 Code to that position in the text where the column should be broken.
25305  Note that this leads in most cases to whitespace in the text.
25306 \begin_inset Newline newline
25307 \end_inset
25308
25309 Here is an example:
25310 \end_layout
25311
25312 \begin_layout Standard
25313 \begin_inset Flex Multiple Columns
25314 status open
25315
25316 \begin_layout Plain Layout
25317
25318 \size small
25319 \begin_inset Quotes eld
25320 \end_inset
25321
25322 You're surprised to see me, sir,
25323 \begin_inset Quotes erd
25324 \end_inset
25325
25326  said he, in a strange, croaking voice.
25327 \end_layout
25328
25329 \begin_layout Plain Layout
25330
25331 \size small
25332 I acknowledged that I was.
25333 \end_layout
25334
25335 \begin_layout Plain Layout
25336
25337 \size small
25338 \begin_inset Quotes eld
25339 \end_inset
25340
25341 Well, I've a conscience, sir, and when I chanced to see you go into this
25342  house, as I came hobbling after you, I thought to myself, I'll just step
25343  in and see that kind gentleman, and tell him that if I was a bit gruff
25344  in my manner there was not any harm meant, and that I am much obliged to
25345  him for picking up my books.
25346 \begin_inset Quotes erd
25347 \end_inset
25348
25349
25350 \end_layout
25351
25352 \begin_layout Plain Layout
25353
25354 \size small
25355 \begin_inset Quotes eld
25356 \end_inset
25357
25358 You make too much of a trifle,
25359 \begin_inset Quotes erd
25360 \end_inset
25361
25362  said I.
25363  
25364 \begin_inset Quotes eld
25365 \end_inset
25366
25367 May I ask how you knew who I was?
25368 \begin_inset Quotes erd
25369 \end_inset
25370
25371  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25372 \begin_inset ERT
25373 status collapsed
25374
25375 \begin_layout Plain Layout
25376
25377
25378 \backslash
25379 columnbreak{}
25380 \end_layout
25381
25382 \end_inset
25383
25384
25385 \end_layout
25386
25387 \begin_layout Plain Layout
25388
25389 \size small
25390 \begin_inset Quotes eld
25391 \end_inset
25392
25393 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25394  you'll find my little bookshop at the corner of Church Street, and very
25395  happy to see you, I am sure.
25396  Maybe you collect yourself, sir.
25397  Here's 
25398 \noun on
25399 British
25400 \begin_inset space ~
25401 \end_inset
25402
25403 Birds
25404 \noun default
25405 , and 
25406 \noun on
25407 Catullus
25408 \noun default
25409 , and 
25410 \noun on
25411 The Holy War
25412 \noun default
25413 –a bargain, every one of them.
25414  With five volumes you could just fill that gap on that second shelf.
25415  It looks untidy, does it not, sir?
25416 \begin_inset Quotes erd
25417 \end_inset
25418
25419
25420 \end_layout
25421
25422 \end_inset
25423
25424
25425 \end_layout
25426
25427 \begin_layout Subsubsection
25428 Column Separation
25429 \end_layout
25430
25431 \begin_layout Standard
25432 The width of the columns is automatically calculated, but you can modify
25433  the space between the columns.
25434  This is done by changing the length 
25435 \series bold
25436
25437 \backslash
25438 columnsep
25439 \series default
25440 .
25441  Its predefined value is 10
25442 \begin_inset space \thinspace{}
25443 \end_inset
25444
25445 pt.
25446  Here is an example where 
25447 \series bold
25448
25449 \backslash
25450 columnsep
25451 \series default
25452  is set to 3
25453 \begin_inset space \thinspace{}
25454 \end_inset
25455
25456 cm:
25457 \end_layout
25458
25459 \begin_layout Standard
25460 \begin_inset ERT
25461 status open
25462
25463 \begin_layout Plain Layout
25464
25465
25466 \backslash
25467 setlength{
25468 \backslash
25469 columnsep}{3cm}
25470 \end_layout
25471
25472 \end_inset
25473
25474
25475 \end_layout
25476
25477 \begin_layout Standard
25478 \begin_inset Flex Multiple Columns
25479 status open
25480
25481 \begin_layout Plain Layout
25482
25483 \size small
25484 My observations of No.
25485 \begin_inset space \space{}
25486 \end_inset
25487
25488 427 Park Lane did little to clear up the problem in which I was interested.
25489  The house was separated from the street by a low wall and railing, the
25490  whole not more than five feet high.
25491  It was perfectly easy, therefore, for anyone to get into the garden, but
25492  the window was entirely inaccessible, since there was no water pipe or
25493  anything which could help the most active man to climb it.
25494  More puzzled than ever, I retraced my steps to Kensington.
25495  I had not been in my study five minutes when the maid entered to say that
25496  a person desired to see me.
25497  To my astonishment it was none other than my strange old book collector,
25498  his sharp, wizened face peering out from a frame of white hair, and his
25499  precious volumes, a dozen of them at least, wedged under his right arm.
25500 \end_layout
25501
25502 \end_inset
25503
25504
25505 \end_layout
25506
25507 \begin_layout Standard
25508 \begin_inset ERT
25509 status collapsed
25510
25511 \begin_layout Plain Layout
25512
25513
25514 \backslash
25515 setlength{
25516 \backslash
25517 columnsep}{10pt}
25518 \end_layout
25519
25520 \end_inset
25521
25522
25523 \begin_inset Note Note
25524 status collapsed
25525
25526 \begin_layout Plain Layout
25527 go back to the default
25528 \end_layout
25529
25530 \end_inset
25531
25532
25533 \end_layout
25534
25535 \begin_layout Subsubsection
25536 Vertical Lines
25537 \end_layout
25538
25539 \begin_layout Standard
25540 Between the columns a rule with a width of the length 
25541 \series bold
25542
25543 \backslash
25544 columnseprule
25545 \series default
25546  is placed.
25547  If this rule width is set to 0
25548 \begin_inset space \thinspace{}
25549 \end_inset
25550
25551 pt (this is the default), the rule is suppressed.
25552  In the following example the rule is 2
25553 \begin_inset space \thinspace{}
25554 \end_inset
25555
25556 pt wide:
25557 \end_layout
25558
25559 \begin_layout Standard
25560 \begin_inset ERT
25561 status open
25562
25563 \begin_layout Plain Layout
25564
25565
25566 \backslash
25567 setlength{
25568 \backslash
25569 columnseprule}{2pt}
25570 \end_layout
25571
25572 \end_inset
25573
25574
25575 \end_layout
25576
25577 \begin_layout Standard
25578 \begin_inset Flex Multiple Columns
25579 status open
25580
25581 \begin_layout Plain Layout
25582
25583 \size small
25584 \begin_inset Quotes eld
25585 \end_inset
25586
25587 You're surprised to see me, sir,
25588 \begin_inset Quotes erd
25589 \end_inset
25590
25591  said he, in a strange, croaking voice.
25592 \end_layout
25593
25594 \begin_layout Plain Layout
25595
25596 \size small
25597 I acknowledged that I was.
25598 \end_layout
25599
25600 \begin_layout Plain Layout
25601
25602 \size small
25603 \begin_inset Quotes eld
25604 \end_inset
25605
25606 Well, I've a conscience, sir, and when I chanced to see you go into this
25607  house, as I came hobbling after you, I thought to myself, I'll just step
25608  in and see that kind gentleman, and tell him that if I was a bit gruff
25609  in my manner there was not any harm meant, and that I am much obliged to
25610  him for picking up my books.
25611 \begin_inset Quotes erd
25612 \end_inset
25613
25614
25615 \end_layout
25616
25617 \begin_layout Plain Layout
25618
25619 \size small
25620 \begin_inset Quotes eld
25621 \end_inset
25622
25623 You make too much of a trifle,
25624 \begin_inset Quotes erd
25625 \end_inset
25626
25627  said I.
25628  
25629 \begin_inset Quotes eld
25630 \end_inset
25631
25632 May I ask how you knew who I was?
25633 \begin_inset Quotes erd
25634 \end_inset
25635
25636
25637 \end_layout
25638
25639 \begin_layout Plain Layout
25640
25641 \size small
25642 \begin_inset Quotes eld
25643 \end_inset
25644
25645 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25646  you'll find my little bookshop at the corner of Church Street, and very
25647  happy to see you, I am sure.
25648  Maybe you collect yourself, sir.
25649  Here's 
25650 \noun on
25651 British
25652 \begin_inset space ~
25653 \end_inset
25654
25655 Birds
25656 \noun default
25657 , and 
25658 \noun on
25659 Catullus
25660 \noun default
25661 , and 
25662 \noun on
25663 The Holy War
25664 \noun default
25665 –a bargain, every one of them.
25666  With five volumes you could just fill that gap on that second shelf.
25667  It looks untidy, does it not, sir?
25668 \begin_inset Quotes erd
25669 \end_inset
25670
25671
25672 \end_layout
25673
25674 \end_inset
25675
25676
25677 \end_layout
25678
25679 \begin_layout Standard
25680 \begin_inset VSpace defskip
25681 \end_inset
25682
25683
25684 \end_layout
25685
25686 \begin_layout Standard
25687 The rule can be colored by redefining the command 
25688 \series bold
25689
25690 \backslash
25691 columnseprulecolor
25692 \series default
25693 .
25694  This is done by inserting the command
25695 \begin_inset Newline newline
25696 \end_inset
25697
25698
25699 \series bold
25700
25701 \backslash
25702 renewcommand{
25703 \backslash
25704 columnseprulecolor}{
25705 \backslash
25706 color{red}}
25707 \series default
25708
25709 \begin_inset Newline newline
25710 \end_inset
25711
25712 as \SpecialChar TeX
25713
25714 \change_inserted -712698321 1437633567
25715  
25716 \change_deleted -712698321 1437633567
25717 -
25718 \change_unchanged
25719 Code before the multicolumn inset.
25720  Replace 
25721 \series bold
25722 red
25723 \series default
25724  in this command by a color of your choice.
25725  You can use all pre- and self-defined colors.
25726  See the 
25727 \emph on
25728 EmbeddedObjects
25729 \emph default
25730  manual, section 
25731 \emph on
25732 Colored
25733 \begin_inset space ~
25734 \end_inset
25735
25736 Tables
25737 \emph default
25738  for more information about pre- and self-defined colors.
25739  To go back to the default color insert the command
25740 \begin_inset Newline newline
25741 \end_inset
25742
25743
25744 \series bold
25745
25746 \backslash
25747 renewcommand{
25748 \backslash
25749 columnseprulecolor}{
25750 \backslash
25751 normalcolor}
25752 \series default
25753
25754 \begin_inset Newline newline
25755 \end_inset
25756
25757 Here is the example with a cyan rule and 1
25758 \begin_inset space \thinspace{}
25759 \end_inset
25760
25761 cm column separation:
25762 \end_layout
25763
25764 \begin_layout Standard
25765 \begin_inset ERT
25766 status open
25767
25768 \begin_layout Plain Layout
25769
25770
25771 \backslash
25772 setlength{
25773 \backslash
25774 columnsep}{1cm}
25775 \end_layout
25776
25777 \begin_layout Plain Layout
25778
25779
25780 \backslash
25781 renewcommand{
25782 \backslash
25783 columnseprulecolor}{
25784 \backslash
25785 color{cyan}}
25786 \end_layout
25787
25788 \end_inset
25789
25790
25791 \end_layout
25792
25793 \begin_layout Standard
25794 \begin_inset Flex Multiple Columns
25795 status open
25796
25797 \begin_layout Plain Layout
25798
25799 \size small
25800 \begin_inset Quotes eld
25801 \end_inset
25802
25803 You're surprised to see me, sir,
25804 \begin_inset Quotes erd
25805 \end_inset
25806
25807  said he, in a strange, croaking voice.
25808 \end_layout
25809
25810 \begin_layout Plain Layout
25811
25812 \size small
25813 I acknowledged that I was.
25814 \end_layout
25815
25816 \begin_layout Plain Layout
25817
25818 \size small
25819 \begin_inset Quotes eld
25820 \end_inset
25821
25822 Well, I've a conscience, sir, and when I chanced to see you go into this
25823  house, as I came hobbling after you, I thought to myself, I'll just step
25824  in and see that kind gentleman, and tell him that if I was a bit gruff
25825  in my manner there was not any harm meant, and that I am much obliged to
25826  him for picking up my books.
25827 \begin_inset Quotes erd
25828 \end_inset
25829
25830
25831 \end_layout
25832
25833 \begin_layout Plain Layout
25834
25835 \size small
25836 \begin_inset Quotes eld
25837 \end_inset
25838
25839 You make too much of a trifle,
25840 \begin_inset Quotes erd
25841 \end_inset
25842
25843  said I.
25844  
25845 \begin_inset Quotes eld
25846 \end_inset
25847
25848 May I ask how you knew who I was?
25849 \begin_inset Quotes erd
25850 \end_inset
25851
25852
25853 \end_layout
25854
25855 \begin_layout Plain Layout
25856
25857 \size small
25858 \begin_inset Quotes eld
25859 \end_inset
25860
25861 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25862  you'll find my little bookshop at the corner of Church Street, and very
25863  happy to see you, I am sure.
25864  Maybe you collect yourself, sir.
25865  Here's 
25866 \noun on
25867 British
25868 \begin_inset space ~
25869 \end_inset
25870
25871 Birds
25872 \noun default
25873 , and 
25874 \noun on
25875 Catullus
25876 \noun default
25877 , and 
25878 \noun on
25879 The Holy War
25880 \noun default
25881 –a bargain, every one of them.
25882  With five volumes you could just fill that gap on that second shelf.
25883  It looks untidy, does it not, sir?
25884 \begin_inset Quotes erd
25885 \end_inset
25886
25887
25888 \end_layout
25889
25890 \end_inset
25891
25892
25893 \end_layout
25894
25895 \begin_layout Standard
25896 \begin_inset ERT
25897 status collapsed
25898
25899 \begin_layout Plain Layout
25900
25901
25902 \backslash
25903 setlength{
25904 \backslash
25905 columnseprule}{0pt}
25906 \end_layout
25907
25908 \begin_layout Plain Layout
25909
25910
25911 \backslash
25912 renewcommand{
25913 \backslash
25914 columnseprulecolor}{
25915 \backslash
25916 normalcolor}
25917 \end_layout
25918
25919 \end_inset
25920
25921
25922 \begin_inset Note Note
25923 status collapsed
25924
25925 \begin_layout Plain Layout
25926 go back to the default
25927 \end_layout
25928
25929 \end_inset
25930
25931
25932 \end_layout
25933
25934 \begin_layout Section
25935 Non-standard Paragraph Shapes
25936 \end_layout
25937
25938 \begin_layout Standard
25939 \noindent
25940 \SpecialChar LaTeX
25941  as well as any other text processor uses by default rectangular paragraphs.
25942  For special cases like for example posters, invitation cards or poems you
25943  can modify the paragraph shape to one of your choice.
25944  This can be done by using the \SpecialChar LaTeX
25945 -package 
25946 \series bold
25947 shapepar
25948 \series default
25949  which is loaded by using in the document settings the module 
25950 \family sans
25951 Custom paragraph shapes
25952 \family default
25953 .
25954 \end_layout
25955
25956 \begin_layout Subsection
25957 Predefined shapes
25958 \end_layout
25959
25960 \begin_layout Standard
25961
25962 \series bold
25963 shapepar
25964 \series default
25965  provides the following shapes:
25966 \end_layout
25967
25968 \begin_layout Standard
25969 \begin_inset Tabular
25970 <lyxtabular version="3" rows="13" columns="3">
25971 <features booktabs="true" islongtable="true" longtabularalignment="center">
25972 <column alignment="center" valignment="middle" width="16col%">
25973 <column alignment="center" valignment="middle" width="40col%">
25974 <column alignment="center" valignment="middle" width="35col%">
25975 <row endhead="true">
25976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25977 \begin_inset Text
25978
25979 \begin_layout Plain Layout
25980 Name
25981 \end_layout
25982
25983 \end_inset
25984 </cell>
25985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25986 \begin_inset Text
25987
25988 \begin_layout Plain Layout
25989 Description
25990 \end_layout
25991
25992 \end_inset
25993 </cell>
25994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25995 \begin_inset Text
25996
25997 \begin_layout Plain Layout
25998 Annotation
25999 \end_layout
26000
26001 \end_inset
26002 </cell>
26003 </row>
26004 <row>
26005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26006 \begin_inset Text
26007
26008 \begin_layout Plain Layout
26009 CDlabel
26010 \end_layout
26011
26012 \end_inset
26013 </cell>
26014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26015 \begin_inset Text
26016
26017 \begin_layout Plain Layout
26018 Circle with circular hole (in the size of a CD/DVD)
26019 \end_layout
26020
26021 \end_inset
26022 </cell>
26023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26024 \begin_inset Text
26025
26026 \begin_layout Plain Layout
26027 Cannot be scaled, take care there is not too much text
26028 \end_layout
26029
26030 \end_inset
26031 </cell>
26032 </row>
26033 <row>
26034 <cell alignment="center" valignment="top" topline="true" usebox="none">
26035 \begin_inset Text
26036
26037 \begin_layout Plain Layout
26038 Circle
26039 \end_layout
26040
26041 \end_inset
26042 </cell>
26043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26044 \begin_inset Text
26045
26046 \begin_layout Plain Layout
26047 Circle
26048 \end_layout
26049
26050 \end_inset
26051 </cell>
26052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26053 \begin_inset Text
26054
26055 \begin_layout Plain Layout
26056 Fragile, calculation might fail
26057 \end_layout
26058
26059 \end_inset
26060 </cell>
26061 </row>
26062 <row>
26063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26064 \begin_inset Text
26065
26066 \begin_layout Plain Layout
26067 Diamond
26068 \end_layout
26069
26070 \end_inset
26071 </cell>
26072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26073 \begin_inset Text
26074
26075 \begin_layout Plain Layout
26076 Rhomboid (symbolizing a 
26077 \begin_inset Quotes eld
26078 \end_inset
26079
26080 diamond
26081 \begin_inset Quotes erd
26082 \end_inset
26083
26084 )
26085 \end_layout
26086
26087 \end_inset
26088 </cell>
26089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26090 \begin_inset Text
26091
26092 \begin_layout Plain Layout
26093 -
26094 \end_layout
26095
26096 \end_inset
26097 </cell>
26098 </row>
26099 <row>
26100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26101 \begin_inset Text
26102
26103 \begin_layout Plain Layout
26104 Heart
26105 \end_layout
26106
26107 \end_inset
26108 </cell>
26109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26110 \begin_inset Text
26111
26112 \begin_layout Plain Layout
26113 Heart-like shape
26114 \end_layout
26115
26116 \end_inset
26117 </cell>
26118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26119 \begin_inset Text
26120
26121 \begin_layout Plain Layout
26122 -
26123 \end_layout
26124
26125 \end_inset
26126 </cell>
26127 </row>
26128 <row>
26129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26130 \begin_inset Text
26131
26132 \begin_layout Plain Layout
26133 Hexagon
26134 \end_layout
26135
26136 \end_inset
26137 </cell>
26138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26139 \begin_inset Text
26140
26141 \begin_layout Plain Layout
26142 Hexagon
26143 \end_layout
26144
26145 \end_inset
26146 </cell>
26147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26148 \begin_inset Text
26149
26150 \begin_layout Plain Layout
26151 -
26152 \end_layout
26153
26154 \end_inset
26155 </cell>
26156 </row>
26157 <row>
26158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26159 \begin_inset Text
26160
26161 \begin_layout Plain Layout
26162 Nut
26163 \end_layout
26164
26165 \end_inset
26166 </cell>
26167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26168 \begin_inset Text
26169
26170 \begin_layout Plain Layout
26171 Nut for bolt (hexagon with circular hole)
26172 \end_layout
26173
26174 \end_inset
26175 </cell>
26176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26177 \begin_inset Text
26178
26179 \begin_layout Plain Layout
26180 -
26181 \end_layout
26182
26183 \end_inset
26184 </cell>
26185 </row>
26186 <row>
26187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26188 \begin_inset Text
26189
26190 \begin_layout Plain Layout
26191 Square
26192 \end_layout
26193
26194 \end_inset
26195 </cell>
26196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26197 \begin_inset Text
26198
26199 \begin_layout Plain Layout
26200 Square
26201 \end_layout
26202
26203 \end_inset
26204 </cell>
26205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26206 \begin_inset Text
26207
26208 \begin_layout Plain Layout
26209 -
26210 \end_layout
26211
26212 \end_inset
26213 </cell>
26214 </row>
26215 <row>
26216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26217 \begin_inset Text
26218
26219 \begin_layout Plain Layout
26220 Star
26221 \end_layout
26222
26223 \end_inset
26224 </cell>
26225 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26226 \begin_inset Text
26227
26228 \begin_layout Plain Layout
26229 Five-point star
26230 \end_layout
26231
26232 \end_inset
26233 </cell>
26234 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26235 \begin_inset Text
26236
26237 \begin_layout Plain Layout
26238 -
26239 \end_layout
26240
26241 \end_inset
26242 </cell>
26243 </row>
26244 <row>
26245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26246 \begin_inset Text
26247
26248 \begin_layout Plain Layout
26249 Candle
26250 \end_layout
26251
26252 \end_inset
26253 </cell>
26254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26255 \begin_inset Text
26256
26257 \begin_layout Plain Layout
26258 Burning candle
26259 \end_layout
26260
26261 \end_inset
26262 </cell>
26263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26264 \begin_inset Text
26265
26266 \begin_layout Plain Layout
26267 -
26268 \end_layout
26269
26270 \end_inset
26271 </cell>
26272 </row>
26273 <row>
26274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26275 \begin_inset Text
26276
26277 \begin_layout Plain Layout
26278 Drop down/up
26279 \end_layout
26280
26281 \end_inset
26282 </cell>
26283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26284 \begin_inset Text
26285
26286 \begin_layout Plain Layout
26287 Normal/reversed rain drop
26288 \end_layout
26289
26290 \end_inset
26291 </cell>
26292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26293 \begin_inset Text
26294
26295 \begin_layout Plain Layout
26296 Fragile, calculation might fail
26297 \end_layout
26298
26299 \end_inset
26300 </cell>
26301 </row>
26302 <row>
26303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26304 \begin_inset Text
26305
26306 \begin_layout Plain Layout
26307 \SpecialChar TeX
26308
26309 \end_layout
26310
26311 \end_inset
26312 </cell>
26313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26314 \begin_inset Text
26315
26316 \begin_layout Plain Layout
26317 The \SpecialChar TeX
26318  logo
26319 \end_layout
26320
26321 \end_inset
26322 </cell>
26323 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26324 \begin_inset Text
26325
26326 \begin_layout Plain Layout
26327 -
26328 \end_layout
26329
26330 \end_inset
26331 </cell>
26332 </row>
26333 <row>
26334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26335 \begin_inset Text
26336
26337 \begin_layout Plain Layout
26338 Triangle up/down/
26339 \begin_inset Newline newline
26340 \end_inset
26341
26342 left/right
26343 \end_layout
26344
26345 \end_inset
26346 </cell>
26347 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26348 \begin_inset Text
26349
26350 \begin_layout Plain Layout
26351 Triangles in different orientations
26352 \end_layout
26353
26354 \end_inset
26355 </cell>
26356 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26357 \begin_inset Text
26358
26359 \begin_layout Plain Layout
26360 -
26361 \end_layout
26362
26363 \end_inset
26364 </cell>
26365 </row>
26366 </lyxtabular>
26367
26368 \end_inset
26369
26370
26371 \end_layout
26372
26373 \begin_layout Standard
26374 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26375 's pull-down box
26376  for environments in the toolbar.
26377 \end_layout
26378
26379 \begin_layout Standard
26380 \begin_inset Newpage newpage
26381 \end_inset
26382
26383
26384 \end_layout
26385
26386 \begin_layout Standard
26387 Here is an example paragraph in the shape of a nut:
26388 \end_layout
26389
26390 \begin_layout Standard
26391 \begin_inset VSpace bigskip
26392 \end_inset
26393
26394
26395 \end_layout
26396
26397 \begin_layout Nut
26398
26399 \lang latin
26400 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26401  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26402  voluptua.
26403  At vero eos et accusam et justo duo dolores et ea rebum.
26404  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26405  sit amet.
26406  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26407  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26408  voluptua.
26409 \end_layout
26410
26411 \begin_layout Standard
26412 \begin_inset VSpace bigskip
26413 \end_inset
26414
26415
26416 \end_layout
26417
26418 \begin_layout Standard
26419 \begin_inset Note Greyedout
26420 status open
26421
26422 \begin_layout Plain Layout
26423
26424 \series bold
26425 Note
26426 \series default
26427 : shapepar paragraphs cannot run over a page break.
26428 \end_layout
26429
26430 \end_inset
26431
26432
26433 \end_layout
26434
26435 \begin_layout Standard
26436 \begin_inset VSpace bigskip
26437 \end_inset
26438
26439
26440 \end_layout
26441
26442 \begin_layout Standard
26443
26444 \series bold
26445 shapepar
26446 \series default
26447  takes care that the shape will always be preserved, no matter how much
26448  text is in the paragraph.
26449  Therefore the paragraph size changes with the amount of contained text.
26450  This can lead to paragraph sizes exceeding the page margins.
26451  To demonstrate the size scaling, here is the same example paragraph but
26452  with twice as much text:
26453 \end_layout
26454
26455 \begin_layout Standard
26456 \begin_inset Newpage newpage
26457 \end_inset
26458
26459
26460 \end_layout
26461
26462 \begin_layout Nut
26463
26464 \lang latin
26465 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26466  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26467  voluptua.
26468  At vero eos et accusam et justo duo dolores et ea rebum.
26469  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26470  sit amet.
26471  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26472  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26473  voluptua.
26474  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26475  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26476  voluptua.
26477  At vero eos et accusam et justo duo dolores et ea rebum.
26478  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26479  sit amet.
26480  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26481  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26482  voluptua.
26483 \end_layout
26484
26485 \begin_layout Standard
26486 \begin_inset VSpace bigskip
26487 \end_inset
26488
26489
26490 \end_layout
26491
26492 \begin_layout Standard
26493 An exception is the shape 
26494 \family sans
26495 CDlabel
26496 \family default
26497 .
26498  It cannot be scaled because it must fit the size of a CD/DVD.
26499  Therefore the amount of text that fits into the shape is limited.
26500 \begin_inset Newline newline
26501 \end_inset
26502
26503 The 
26504 \family sans
26505 drop
26506 \family default
26507  shapes and the 
26508 \family sans
26509 circle
26510 \family default
26511  shape are fragile, meaning that the calculation of their size can fail,
26512  depending on the amount of text.
26513  You will then get the \SpecialChar LaTeX
26514  error 
26515 \begin_inset Quotes eld
26516 \end_inset
26517
26518 Arithmetic overflow
26519 \begin_inset Quotes erd
26520 \end_inset
26521
26522 .
26523  In this case one can try to remove or add some text; if nothing works one
26524  has to use another shape.
26525 \end_layout
26526
26527 \begin_layout Standard
26528 \begin_inset VSpace bigskip
26529 \end_inset
26530
26531
26532 \end_layout
26533
26534 \begin_layout Standard
26535 For shapes with tips you will maybe see that \SpecialChar LaTeX
26536 's hyphenation routine fails
26537  for text in the tips.
26538  Therefore it is often necessary to add hyphenation points 
26539 \family sans
26540 (
26541 \begin_inset Info
26542 type  "shortcut"
26543 arg   "specialchar-insert hyphenation"
26544 \end_inset
26545
26546
26547 \family default
26548 ) to the corresponding text parts.
26549 \end_layout
26550
26551 \begin_layout Standard
26552 \begin_inset VSpace bigskip
26553 \end_inset
26554
26555
26556 \end_layout
26557
26558 \begin_layout Standard
26559 Shapepar paragraphs are either always centered or placed on the page so
26560  that their left border touches the left page margin.
26561  You can therefore not use the paragraph dialog to align such paragraphs.
26562  A solution is to put the paragraph into a minipage or parbox and align
26563  the box.
26564  The problem is hereby to find the right width for the box.
26565  Because if it is too wide and you center the box, the paragraph is not
26566  centered too because it sticks at the left side of the box.
26567  So you might have to play a bit with the width until it fits.
26568  Here are two heart-shaped paragraphs, the first one is not aligned, the
26569  second one is right-aligned:
26570 \end_layout
26571
26572 \begin_layout Standard
26573 \begin_inset Newpage newpage
26574 \end_inset
26575
26576
26577 \end_layout
26578
26579 \begin_layout Heart
26580 \noindent
26581
26582 \lang latin
26583 Lo\SpecialChar softhyphen
26584 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26585  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26586  voluptua.
26587  At vero eos et accusam et justo duo dolores et ea rebum.
26588  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26589  sit amet.
26590 \end_layout
26591
26592 \begin_layout Standard
26593 \begin_inset VSpace bigskip
26594 \end_inset
26595
26596
26597 \end_layout
26598
26599 \begin_layout Standard
26600 \noindent
26601 \align right
26602 \begin_inset Box Frameless
26603 position "t"
26604 hor_pos "c"
26605 has_inner_box 1
26606 inner_pos "t"
26607 use_parbox 1
26608 use_makebox 0
26609 width "42col%"
26610 special "none"
26611 height "1in"
26612 height_special "totalheight"
26613 thickness "0.4pt"
26614 separation "3pt"
26615 shadowsize "4pt"
26616 framecolor "black"
26617 backgroundcolor "none"
26618 status open
26619
26620 \begin_layout Heart
26621 \noindent
26622
26623 \lang latin
26624 Lo\SpecialChar softhyphen
26625 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26626  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26627  voluptua.
26628  At vero eos et accusam et justo duo dolores et ea rebum.
26629  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26630  sit amet.
26631 \end_layout
26632
26633 \end_inset
26634
26635
26636 \end_layout
26637
26638 \begin_layout Subsection
26639 Custom shapes
26640 \end_layout
26641
26642 \begin_layout Standard
26643 You can define any shape you want.
26644  Doing this manually is a lot of work because every coordinate must be specified.
26645  But there is a way to let the computer calculate the coordinates:
26646 \end_layout
26647
26648 \begin_layout Enumerate
26649 Install the program 
26650 \begin_inset CommandInset href
26651 LatexCommand href
26652 name "Jpgfdraw"
26653 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26654
26655 \end_inset
26656
26657 .
26658 \end_layout
26659
26660 \begin_layout Enumerate
26661 In 
26662 \family sans
26663 Jpgfdraw
26664 \family default
26665  go to the menu 
26666 \change_deleted -712698321 1437633577
26667
26668 \family sans
26669 Te
26670 \begin_inset ERT
26671 status collapsed
26672
26673 \begin_layout Plain Layout
26674
26675 {}
26676 \end_layout
26677
26678 \end_inset
26679
26680 X
26681 \change_inserted -712698321 1437633577
26682 TeX
26683 \change_unchanged
26684 /La
26685 \change_deleted -712698321 1437633578
26686 T
26687 \begin_inset ERT
26688 status collapsed
26689
26690 \begin_layout Plain Layout
26691
26692 {}
26693 \end_layout
26694
26695 \end_inset
26696
26697 eX
26698 \change_inserted -712698321 1437633578
26699 TeX
26700 \change_unchanged
26701 \SpecialChar menuseparator
26702 Settings\SpecialChar menuseparator
26703 Set Normal Size
26704 \family default
26705  and select the font size you are using in your document.
26706  For example this document uses the size 12
26707 \begin_inset space \thinspace{}
26708 \end_inset
26709
26710 pt.
26711 \end_layout
26712
26713 \begin_layout Enumerate
26714 Draw a shape.
26715 \end_layout
26716
26717 \begin_layout Enumerate
26718 Use the menu 
26719 \change_deleted -712698321 1437633580
26720
26721 \family sans
26722 Te
26723 \begin_inset ERT
26724 status collapsed
26725
26726 \begin_layout Plain Layout
26727
26728 {}
26729 \end_layout
26730
26731 \end_inset
26732
26733 X
26734 \change_inserted -712698321 1437633580
26735 TeX
26736 \change_unchanged
26737 /La
26738 \change_deleted -712698321 1437633581
26739 T
26740 \begin_inset ERT
26741 status collapsed
26742
26743 \begin_layout Plain Layout
26744
26745 {}
26746 \end_layout
26747
26748 \end_inset
26749
26750 eX
26751 \change_inserted -712698321 1437633581
26752 TeX
26753 \change_unchanged
26754 \SpecialChar menuseparator
26755 Shapepar
26756 \family default
26757  to export the shape to coordinates.
26758  In the appearing dialog use either the outline of your shape for the coordinate
26759 s or the path itself.
26760 \begin_inset Foot
26761 status collapsed
26762
26763 \begin_layout Plain Layout
26764 For more information see 
26765 \begin_inset CommandInset href
26766 LatexCommand href
26767 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26768
26769 \end_inset
26770
26771
26772 \end_layout
26773
26774 \end_inset
26775
26776
26777 \end_layout
26778
26779 \begin_layout Standard
26780 The coordinates are written into a \SpecialChar TeX
26781
26782 \change_inserted -712698321 1437633584
26783  
26784 \change_deleted -712698321 1437633584
26785 -
26786 \change_unchanged
26787 file.
26788  To use it for your \SpecialChar LyX
26789  document
26790 \end_layout
26791
26792 \begin_layout Enumerate
26793 Place the cursor before the first character of your paragraph (or into a
26794  new empty one).
26795 \end_layout
26796
26797 \begin_layout Enumerate
26798 Open in \SpecialChar LyX
26799  the menu 
26800 \family sans
26801 Insert\SpecialChar menuseparator
26802 File\SpecialChar menuseparator
26803 Child
26804 \begin_inset space ~
26805 \end_inset
26806
26807 Document
26808 \family default
26809 , select the file and use 
26810 \family sans
26811 Input
26812 \family default
26813  as 
26814 \family sans
26815 Include Type.
26816 \end_layout
26817
26818 \begin_layout Standard
26819 \begin_inset VSpace defskip
26820 \end_inset
26821
26822
26823 \end_layout
26824
26825 \begin_layout Standard
26826 \begin_inset Note Greyedout
26827 status open
26828
26829 \begin_layout Plain Layout
26830
26831 \series bold
26832 Note
26833 \series default
26834 : The changed shape only applies to the current paragraph; everything is
26835  reset to normal for the next paragraph.
26836  Therefore the shape definition file must be input into every paragraph
26837  with the desired shape.
26838 \end_layout
26839
26840 \end_inset
26841
26842
26843 \end_layout
26844
26845 \begin_layout Standard
26846 \begin_inset VSpace bigskip
26847 \end_inset
26848
26849
26850 \end_layout
26851
26852 \begin_layout Standard
26853 Here is an example:
26854 \end_layout
26855
26856 \begin_layout Standard
26857 \begin_inset VSpace bigskip
26858 \end_inset
26859
26860
26861 \end_layout
26862
26863 \begin_layout Standard
26864 \begin_inset CommandInset include
26865 LatexCommand input
26866 filename "SpecialParagraphShape.tex"
26867
26868 \end_inset
26869
26870
26871 \lang latin
26872 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26873  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26874  voluptua.
26875  At vero eos et accusam et justo duo dolores et ea rebum.
26876  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26877  sit amet.
26878  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26879  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26880  voluptua.
26881 \end_layout
26882
26883 \begin_layout Standard
26884 \begin_inset VSpace bigskip
26885 \end_inset
26886
26887
26888 \end_layout
26889
26890 \begin_layout Standard
26891
26892 \series bold
26893 A tip:
26894 \series default
26895  to draw complexer shapes in 
26896 \family sans
26897 Jpgfdraw
26898 \family default
26899  you can draw the shape in a program of your choice and import the resulting
26900  image to 
26901 \family sans
26902 Jpgfdraw
26903 \family default
26904 .
26905  Then you only need to draw a line or spline along the outline of the image.
26906 \end_layout
26907
26908 \begin_layout Standard
26909 \begin_inset VSpace bigskip
26910 \end_inset
26911
26912
26913 \end_layout
26914
26915 \begin_layout Standard
26916 The module 
26917 \family sans
26918 Custom paragraph shapes
26919 \family default
26920  also provides the two commands 
26921 \family sans
26922 shapepar
26923 \family default
26924  and 
26925 \family sans
26926 Shapepar
26927 \family default
26928  which can be used to define custom shapes coordinate by coordinate.
26929 \begin_inset Foot
26930 status collapsed
26931
26932 \begin_layout Plain Layout
26933 These commands are internally used for all shapes described here.
26934 \end_layout
26935
26936 \end_inset
26937
26938  For information how these styles are used and about further customization
26939  possibilities, have a look at the documentation of the package 
26940 \series bold
26941 shapepar
26942 \series default
26943
26944 \begin_inset CommandInset citation
26945 LatexCommand cite
26946 key "shapepar"
26947
26948 \end_inset
26949
26950 .
26951 \end_layout
26952
26953 \begin_layout Bibliography
26954 \begin_inset CommandInset bibitem
26955 LatexCommand bibitem
26956 key "multicol"
26957
26958 \end_inset
26959
26960 Documentation of the \SpecialChar LaTeX
26961 -package 
26962 \begin_inset CommandInset href
26963 LatexCommand href
26964 name "multicol"
26965 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26966
26967 \end_inset
26968
26969
26970 \end_layout
26971
26972 \begin_layout Bibliography
26973 \begin_inset CommandInset bibitem
26974 LatexCommand bibitem
26975 key "shapepar"
26976
26977 \end_inset
26978
26979 Documentation of the \SpecialChar LaTeX
26980 -package 
26981 \begin_inset CommandInset href
26982 LatexCommand href
26983 name "shapepar"
26984 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
26985
26986 \end_inset
26987
26988
26989 \end_layout
26990
26991 \end_body
26992 \end_document