]> git.lyx.org Git - features.git/blob - lib/doc/Additional.lyx
Copy the recent Additiona.lyx changes wrt forward/reverse search to the localized...
[features.git] / lib / doc / Additional.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30 \end_preamble
31 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 theorems-ams
36 theorems-ams-extended
37 multicol
38 shapepar
39 \end_modules
40 \maintain_unincluded_children false
41 \language english
42 \language_package default
43 \inputencoding auto
44 \fontencoding global
45 \font_roman "lmodern" "default"
46 \font_sans "lmss" "default"
47 \font_typewriter "lmtt" "default"
48 \font_math "auto" "auto"
49 \font_default_family default
50 \use_non_tex_fonts false
51 \font_sc false
52 \font_osf false
53 \font_sf_scale 100 100
54 \font_tt_scale 100 100
55 \use_microtype false
56 \use_dash_ligatures true
57 \graphics default
58 \default_output_format pdf2
59 \output_sync 0
60 \bibtex_command default
61 \index_command default
62 \paperfontsize 12
63 \spacing single
64 \use_hyperref true
65 \pdf_title "LyX's Additional Features manual"
66 \pdf_author "LyX Team"
67 \pdf_subject "LyX's additional features documentation"
68 \pdf_keywords "LyX, Documentation, Additional"
69 \pdf_bookmarks true
70 \pdf_bookmarksnumbered true
71 \pdf_bookmarksopen false
72 \pdf_bookmarksopenlevel 1
73 \pdf_breaklinks false
74 \pdf_pdfborder false
75 \pdf_colorlinks true
76 \pdf_backref false
77 \pdf_pdfusetitle false
78 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
79 \papersize a4paper
80 \use_geometry false
81 \use_package amsmath 1
82 \use_package amssymb 1
83 \use_package cancel 0
84 \use_package esint 0
85 \use_package mathdots 1
86 \use_package mathtools 0
87 \use_package mhchem 1
88 \use_package stackrel 0
89 \use_package stmaryrd 0
90 \use_package undertilde 0
91 \cite_engine basic
92 \cite_engine_type default
93 \biblio_style plain
94 \use_bibtopic false
95 \use_indices false
96 \paperorientation portrait
97 \suppress_date false
98 \justification true
99 \use_refstyle 0
100 \use_minted 0
101 \notefontcolor #0000ff
102 \index Index
103 \shortcut idx
104 \color #008000
105 \end_index
106 \secnumdepth 3
107 \tocdepth 3
108 \paragraph_separation indent
109 \paragraph_indentation default
110 \is_math_indent 1
111 \math_indentation default
112 \math_numbering_side default
113 \quotes_style english
114 \dynamic_quotes 0
115 \papercolumns 1
116 \papersides 2
117 \paperpagestyle headings
118 \tracking_changes true
119 \output_changes false
120 \html_math_output 0
121 \html_css_as_file 0
122 \html_be_strict true
123 \end_header
124
125 \begin_body
126
127 \begin_layout Title
128 Additional \SpecialChar LyX
129  Features
130 \end_layout
131
132 \begin_layout Subtitle
133 Version 2.3.x
134 \end_layout
135
136 \begin_layout Author
137 by the \SpecialChar LyX
138  Team
139 \begin_inset Foot
140 status collapsed
141
142 \begin_layout Plain Layout
143 \noindent
144 Principal maintainer of this file is
145 \noun on
146  Richard Heck
147 \noun default
148 .
149  If you have comments or error corrections, please send them to the \SpecialChar LyX
150  Documentati
151 on mailing list, 
152 \begin_inset Flex Code
153 status collapsed
154
155 \begin_layout Plain Layout
156 \noindent
157 <lyx-docs@lists.lyx.org>
158 \end_layout
159
160 \end_inset
161
162 .
163 \end_layout
164
165 \end_inset
166
167
168 \end_layout
169
170 \begin_layout Standard
171 \begin_inset CommandInset toc
172 LatexCommand tableofcontents
173
174 \end_inset
175
176
177 \end_layout
178
179 \begin_layout Chapter
180 Introduction
181 \end_layout
182
183 \begin_layout Standard
184 This manual is essentially Part II of the 
185 \emph on
186 User's Guide\SpecialChar endofsentence
187
188 \emph default
189  The reason for separating the two documents is simple: the 
190 \emph on
191 User's Guide
192 \emph default
193  is already quite lengthy, and it contains information on all of the basic
194  features one needs to know in order to prepare most documents.
195  However, the \SpecialChar LyX
196  Team has worked to make \SpecialChar LyX
197  extensible through various configuration
198  files and external packages.
199  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
200  package, you can
201  create a layout file (or module) for it without having to alter \SpecialChar LyX
202  itself.
203  We've already had contributions of several new features this way, and some
204  of them are documented here.
205  There are also some more `advanced' features, such as how to control the
206  presentation of bibliographies and how to work with multi-part documents,
207  that are not covered in the 
208 \emph on
209 User's Guide
210 \emph default
211  and are discussed here.
212 \end_layout
213
214 \begin_layout Standard
215 This manual also documents some special features, like fax support, version
216  control, and SGML support, which require additional software to work properly.
217  There is also a chapter on \SpecialChar LyX
218 's support for HTML.
219  And lastly, there's a chapter of \SpecialChar LaTeX
220  tools and tips, things you can use to
221  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
222 .
223  After all, \SpecialChar LyX
224  
225 \emph on
226 is
227 \emph default
228  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
229  features.
230 \end_layout
231
232 \begin_layout Standard
233 If you haven't read the 
234 \emph on
235 Introduction
236 \emph default
237  yet, you are definitely in the wrong manual.
238  The 
239 \emph on
240 Introduction
241 \emph default
242  is the first place to go, since it describes the notation and format of
243  all of the manuals.
244  You should also be thoroughly familiar with the 
245 \emph on
246 User's Guide
247 \emph default
248  and all of the basic features of \SpecialChar LyX
249  before attempting to read this one.
250 \end_layout
251
252 \begin_layout Standard
253 Since many of the topics in this manual depend heavily on \SpecialChar LyX
254 's interaction
255  with \SpecialChar LaTeX
256 , this first chapter covers the inner workings of \SpecialChar LyX
257  and how to direct
258  \SpecialChar LyX
259  to generate exactly the \SpecialChar LaTeX
260  code you want.
261  It is obviously for more seasoned \SpecialChar LyX
262  users.
263 \end_layout
264
265 \begin_layout Chapter
266 \SpecialChar LyX
267  and \SpecialChar LaTeX
268
269 \end_layout
270
271 \begin_layout Section
272 How \SpecialChar LyX
273  Uses \SpecialChar LaTeX
274
275 \end_layout
276
277 \begin_layout Standard
278 This chapter is for both \SpecialChar TeX
279 -nicians and the \SpecialChar LaTeX
280 -curious.
281  In it, we'll explain how \SpecialChar LyX
282  and \SpecialChar LaTeX
283  work together to produce printable output.
284  This is the only place in any of the manuals where we assume you know something
285  about \SpecialChar LaTeX
286 .
287 \end_layout
288
289 \begin_layout Standard
290 At one time, \SpecialChar LyX
291  was called a 
292 \begin_inset Quotes eld
293 \end_inset
294
295 WYSIWYM frontend to \SpecialChar LaTeX
296 ,
297 \begin_inset Quotes erd
298 \end_inset
299
300  but that's no longer true.
301  There are frontends to \SpecialChar LaTeX
302  out there.
303 \begin_inset Foot
304 status collapsed
305
306 \begin_layout Plain Layout
307 Some familar ones are \SpecialChar TeX
308 maker and kile, on Linux, and \SpecialChar TeX
309 shop, OSX.
310  There are also the \SpecialChar LaTeX
311  modes for vi and emacs, of course.
312 \end_layout
313
314 \end_inset
315
316  These are basically text editors with the ability to run \SpecialChar LaTeX
317  and mark any
318  errors in the file you're editing.
319  Although \SpecialChar LyX
320  
321 \emph on
322 is
323 \emph default
324  an editor, and it 
325 \emph on
326 does
327 \emph default
328  run \SpecialChar LaTeX
329 , and it also indicates errors in the file, it also does much, much
330  more.
331  For one thing, you don't need to know \SpecialChar LaTeX
332  to use \SpecialChar LyX
333  effectively.
334  And \SpecialChar LyX
335  has added its own extensions to \SpecialChar LaTeX
336 .
337  Try the following sometime: select 
338 \begin_inset Flex Noun
339 status collapsed
340
341 \begin_layout Plain Layout
342 Export\SpecialChar menuseparator
343 LaTeX
344 \end_layout
345
346 \end_inset
347
348  from the 
349 \begin_inset Flex Noun
350 status collapsed
351
352 \begin_layout Plain Layout
353 File
354 \end_layout
355
356 \end_inset
357
358  menu (or 
359 \begin_inset Flex Noun
360 status collapsed
361
362 \begin_layout Plain Layout
363 View\SpecialChar menuseparator
364 Source
365 \begin_inset space ~
366 \end_inset
367
368 Pane
369 \end_layout
370
371 \end_inset
372
373 ), then look at the preamble of the resulting 
374 \begin_inset Flex Code
375 status collapsed
376
377 \begin_layout Plain Layout
378 .tex
379 \end_layout
380
381 \end_inset
382
383  file.
384  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
385 .
386  These macros are defined automatically, according to the features you use
387  in the document.
388 \end_layout
389
390 \begin_layout Standard
391 There are several commands that automatically invoke \SpecialChar LaTeX
392 .
393  They are:
394 \end_layout
395
396 \begin_layout Itemize
397 \begin_inset Flex Noun
398 status collapsed
399
400 \begin_layout Plain Layout
401 Document\SpecialChar menuseparator
402 View
403 \end_layout
404
405 \end_inset
406
407
408 \end_layout
409
410 \begin_layout Itemize
411 \begin_inset Flex Noun
412 status collapsed
413
414 \begin_layout Plain Layout
415 Document\SpecialChar menuseparator
416 Update
417 \end_layout
418
419 \end_inset
420
421
422 \end_layout
423
424 \begin_layout Standard
425 They will only invoke \SpecialChar LaTeX
426  if the file has changed since the last time \SpecialChar LaTeX
427  was
428  run.
429  
430 \end_layout
431
432 \begin_layout Standard
433 When \SpecialChar LyX
434  runs \SpecialChar LaTeX
435  on the file you're editing, it performs these steps:
436 \end_layout
437
438 \begin_layout Enumerate
439 Convert the document to \SpecialChar LaTeX
440  and save to a file with the extension 
441 \begin_inset Flex Code
442 status collapsed
443
444 \begin_layout Plain Layout
445 .tex
446 \end_layout
447
448 \end_inset
449
450  in place of 
451 \begin_inset Flex Code
452 status collapsed
453
454 \begin_layout Plain Layout
455 .lyx
456 \end_layout
457
458 \end_inset
459
460 .
461 \end_layout
462
463 \begin_layout Enumerate
464 Run \SpecialChar LaTeX
465  on the 
466 \begin_inset Flex Code
467 status collapsed
468
469 \begin_layout Plain Layout
470 .tex
471 \end_layout
472
473 \end_inset
474
475  file (maybe several times), and run any other commands (such as 
476 \begin_inset Flex Code
477 status collapsed
478
479 \begin_layout Plain Layout
480 bibtex
481 \end_layout
482
483 \end_inset
484
485  or 
486 \begin_inset Flex Code
487 status collapsed
488
489 \begin_layout Plain Layout
490 makeindex
491 \end_layout
492
493 \end_inset
494
495 ) needed to compile the \SpecialChar LaTeX
496  file.
497 \end_layout
498
499 \begin_layout Enumerate
500 If there are any errors, show the error log.
501 \end_layout
502
503 \begin_layout Standard
504 If you have run \SpecialChar LaTeX
505  using 
506 \begin_inset Flex Noun
507 status collapsed
508
509 \begin_layout Plain Layout
510 View\SpecialChar menuseparator
511 DVI
512 \end_layout
513
514 \end_inset
515
516 , \SpecialChar LyX
517  then runs a DVI viewer to display the DVI-file.
518  If you have used 
519 \begin_inset Flex Noun
520 status collapsed
521
522 \begin_layout Plain Layout
523 View\SpecialChar menuseparator
524 PostScript
525 \end_layout
526
527 \end_inset
528
529 , \SpecialChar LyX
530  performs further steps:
531 \end_layout
532
533 \begin_layout Itemize
534 Run 
535 \begin_inset Flex Code
536 status collapsed
537
538 \begin_layout Plain Layout
539 dvips
540 \end_layout
541
542 \end_inset
543
544  to convert the DVI file to PostScript.
545 \end_layout
546
547 \begin_layout Itemize
548 Run a PostScript viewer, such as 
549 \begin_inset Flex Code
550 status collapsed
551
552 \begin_layout Plain Layout
553 ghostview
554 \end_layout
555
556 \end_inset
557
558 , to display the PostScript file.
559 \end_layout
560
561 \begin_layout Standard
562 \SpecialChar LyX
563  does similar things when viewing, or exporting, other formats.
564 \end_layout
565
566 \begin_layout Section
567 Translating \SpecialChar LaTeX
568  files into \SpecialChar LyX
569
570 \end_layout
571
572 \begin_layout Standard
573 You can import a \SpecialChar LaTeX
574  file into \SpecialChar LyX
575  by using the 
576 \begin_inset Flex Noun
577 status collapsed
578
579 \begin_layout Plain Layout
580 File\SpecialChar menuseparator
581 Import\SpecialChar menuseparator
582 LaTeX
583 \end_layout
584
585 \end_inset
586
587  command in \SpecialChar LyX
588 .
589  This will call a program named 
590 \begin_inset Flex Code
591 status collapsed
592
593 \begin_layout Plain Layout
594 tex2lyx
595 \end_layout
596
597 \end_inset
598
599  which will create a file 
600 \begin_inset Flex Code
601 status collapsed
602
603 \begin_layout Plain Layout
604 foo.lyx
605 \end_layout
606
607 \end_inset
608
609  from the file 
610 \begin_inset Flex Code
611 status collapsed
612
613 \begin_layout Plain Layout
614 foo.tex
615 \end_layout
616
617 \end_inset
618
619 .
620  \SpecialChar LyX
621  will then open that file.
622 \begin_inset Foot
623 status collapsed
624
625 \begin_layout Plain Layout
626 \begin_inset Flex Code
627 status collapsed
628
629 \begin_layout Plain Layout
630 tex2lyx
631 \end_layout
632
633 \end_inset
634
635  can also be run from the command line, of course.
636 \end_layout
637
638 \end_inset
639
640
641 \end_layout
642
643 \begin_layout Standard
644 \begin_inset Flex Code
645 status collapsed
646
647 \begin_layout Plain Layout
648 tex2lyx
649 \end_layout
650
651 \end_inset
652
653  will translate most legal \SpecialChar LaTeX
654 , but not everything.
655  It will put things it doesn't understand into \SpecialChar TeX
656  code, so after translating
657  a file with 
658 \begin_inset Flex Code
659 status collapsed
660
661 \begin_layout Plain Layout
662 tex2lyx
663 \end_layout
664
665 \end_inset
666
667 , you can look for \SpecialChar TeX
668  code and hand-edit it until it looks right.
669 \end_layout
670
671 \begin_layout Standard
672 If you don't know what \SpecialChar TeX
673  code is, read the next section.
674 \end_layout
675
676 \begin_layout Section
677 \begin_inset CommandInset label
678 LatexCommand label
679 name "sec:Inserting-TeX-Code"
680
681 \end_inset
682
683 Inserting \SpecialChar TeX
684  Code into \SpecialChar LyX
685  Documents 
686 \end_layout
687
688 \begin_layout Standard
689 Anything you can do in \SpecialChar LaTeX
690  you can do in \SpecialChar LyX
691 , for a very simple reason: You can
692  always insert \SpecialChar TeX
693  code into any \SpecialChar LyX
694  document.
695  \SpecialChar LyX
696  cannot, and will never be able to, display every possible \SpecialChar LaTeX
697  construct.
698  If ever you need to insert \SpecialChar LaTeX
699  commands into your \SpecialChar LyX
700  document, you can use the
701  
702 \begin_inset Flex Code
703 status collapsed
704
705 \begin_layout Plain Layout
706 \SpecialChar TeX
707  Code
708 \end_layout
709
710 \end_inset
711
712  box, which you can insert into your document with 
713 \begin_inset Flex Noun
714 status collapsed
715
716 \begin_layout Plain Layout
717 Insert\SpecialChar menuseparator
718
719 \family sans
720 TeX
721 \family default
722  Code
723 \end_layout
724
725 \end_inset
726
727  or the keyboard shortcut 
728 \begin_inset Info
729 type  "shortcut"
730 arg   "ert-insert"
731 \end_inset
732
733 .
734 \end_layout
735
736 \begin_layout Standard
737 Here's an example of inserting \SpecialChar LaTeX
738  commands in a \SpecialChar LyX
739  document.
740  The code looks like this:
741 \end_layout
742
743 \begin_layout LyX-Code
744
745 \backslash
746 begin{tabular}{ll}
747 \begin_inset Newline newline
748 \end_inset
749
750
751 \backslash
752 begin{minipage}{5cm}
753 \begin_inset Newline newline
754 \end_inset
755
756 This is an example of a minipage environment.
757  You 
758 \begin_inset Newline newline
759 \end_inset
760
761 can put nearly everything in it, even (non-floating) 
762 \begin_inset Newline newline
763 \end_inset
764
765 figures and tables.
766  
767 \begin_inset Newline newline
768 \end_inset
769
770
771 \backslash
772 end{minipage}
773 \begin_inset Newline newline
774 \end_inset
775
776 &
777 \begin_inset Newline newline
778 \end_inset
779
780
781 \backslash
782 begin{minipage}{5cm}
783 \begin_inset Newline newline
784 \end_inset
785
786
787 \backslash
788 begin{verbatim}
789 \begin_inset Newline newline
790 \end_inset
791
792
793 \backslash
794 begin{minipage}{5cm}
795 \begin_inset Newline newline
796 \end_inset
797
798 This ...
799  
800 \begin_inset Newline newline
801 \end_inset
802
803
804 \backslash
805 end{minipage}
806 \begin_inset Newline newline
807 \end_inset
808
809
810 \backslash
811 end{verbatim}
812 \begin_inset Newline newline
813 \end_inset
814
815
816 \backslash
817 end{minipage}
818 \begin_inset Newline newline
819 \end_inset
820
821
822 \backslash
823 end{tabular}
824 \end_layout
825
826 \begin_layout LyX-Code
827
828 \end_layout
829
830 \begin_layout Standard
831 The 
832 \begin_inset Flex Code
833 status collapsed
834
835 \begin_layout Plain Layout
836 \SpecialChar TeX
837  Code
838 \end_layout
839
840 \end_inset
841
842  box containing this text is directly after this paragraph.
843  Those of you reading the manual in \SpecialChar LyX
844  will only see the \SpecialChar TeX
845  code inset.
846  Those reading a printed version of the manuals will see the actual results:
847 \begin_inset VSpace bigskip
848 \end_inset
849
850
851 \end_layout
852
853 \begin_layout Standard
854 \begin_inset ERT
855 status open
856
857 \begin_layout Plain Layout
858
859
860 \backslash
861 begin{tabular}{ll}
862 \end_layout
863
864 \begin_layout Plain Layout
865
866
867 \backslash
868 begin{minipage}{5cm}
869 \end_layout
870
871 \begin_layout Plain Layout
872
873 This is an example of a minipage environment.
874  You can put nearly everything in it, even (non-floating) figures and tables.
875  
876 \end_layout
877
878 \begin_layout Plain Layout
879
880
881 \backslash
882 end{minipage}
883 \end_layout
884
885 \begin_layout Plain Layout
886
887 &
888 \end_layout
889
890 \begin_layout Plain Layout
891
892
893 \backslash
894 begin{minipage}{5cm}
895 \end_layout
896
897 \begin_layout Plain Layout
898
899
900 \backslash
901 begin{verbatim}
902 \end_layout
903
904 \begin_layout Plain Layout
905
906
907 \backslash
908 begin{minipage}{5cm}
909 \end_layout
910
911 \begin_layout Plain Layout
912
913 This ...
914  
915 \end_layout
916
917 \begin_layout Plain Layout
918
919
920 \backslash
921 end{minipage}
922 \end_layout
923
924 \begin_layout Plain Layout
925
926
927 \backslash
928 end{verbatim}
929 \end_layout
930
931 \begin_layout Plain Layout
932
933
934 \backslash
935 end{minipage}
936 \end_layout
937
938 \begin_layout Plain Layout
939
940
941 \backslash
942 end{tabular}
943 \end_layout
944
945 \end_inset
946
947
948 \begin_inset VSpace bigskip
949 \end_inset
950
951
952 \end_layout
953
954 \begin_layout Standard
955 In addition to using \SpecialChar TeX
956  code, you can also create a separate file containing
957  some complex \SpecialChar LaTeX
958  structure and then use 
959 \begin_inset Flex Noun
960 status collapsed
961
962 \begin_layout Plain Layout
963 Insert\SpecialChar menuseparator
964 Child
965 \begin_inset space ~
966 \end_inset
967
968 Document
969 \end_layout
970
971 \end_inset
972
973  to include your file (you should select the type 
974 \begin_inset Flex Code
975 status collapsed
976
977 \begin_layout Plain Layout
978 Input
979 \end_layout
980
981 \end_inset
982
983 ).
984  We recommend that you only do this if you have a 
985 \begin_inset Flex Code
986 status collapsed
987
988 \begin_layout Plain Layout
989 .tex
990 \end_layout
991
992 \end_inset
993
994  file which you 
995 \emph on
996 know
997 \emph default
998  works already.
999  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1000  errors.
1001 \end_layout
1002
1003 \begin_layout Standard
1004 There are a few last points to emphasize:
1005 \end_layout
1006
1007 \begin_layout Itemize
1008 \SpecialChar LyX
1009  
1010 \emph on
1011 does not
1012 \emph default
1013  check if your \SpecialChar LaTeX
1014  code is correct.
1015 \end_layout
1016
1017 \begin_layout Itemize
1018 Beware of reinventing the wheel.
1019 \end_layout
1020
1021 \begin_layout Standard
1022 On that last point, \SpecialChar LyX
1023  does have quite a few features tucked into it, and
1024  more are coming.
1025  Be sure to check the manuals to make sure that \SpecialChar LyX
1026  doesn't have such-and-such
1027  feature before you decide you have to do it by hand.
1028  Moreover, there are numerous \SpecialChar LaTeX
1029  packages out there to do all sorts of things,
1030  from labels to envelopes to fancy multipage tables.
1031  Check out 
1032 \begin_inset CommandInset href
1033 LatexCommand href
1034 name "CTAN"
1035 target "http://www.ctan.org/"
1036 literal "false"
1037
1038 \end_inset
1039
1040  for details.
1041 \end_layout
1042
1043 \begin_layout Standard
1044 If you do need to do some wild and fancy things within your document, be
1045  sure to check out a good \SpecialChar LaTeX
1046  book for assistance.
1047  There are a number of them listed in the bibliography of the 
1048 \emph on
1049 User's Guide
1050 \emph default
1051 .
1052 \end_layout
1053
1054 \begin_layout Section
1055 \SpecialChar LyX
1056  and the \SpecialChar LaTeX
1057  Preamble
1058 \end_layout
1059
1060 \begin_layout Subsection
1061 About the \SpecialChar LaTeX
1062  Preamble
1063 \end_layout
1064
1065 \begin_layout Standard
1066 If you already know \SpecialChar LaTeX
1067 , there is no need to explain here what the preamble
1068  is good for.
1069  If you don't, the following will give you some ideas—we recommend again
1070  that you consult a \SpecialChar LaTeX
1071  book for further information.
1072  In any case, you should read the points below, because they explain what
1073  you can do and what you don't need to do in the \SpecialChar LaTeX
1074  preamble of a \SpecialChar LyX
1075  document.
1076 \end_layout
1077
1078 \begin_layout Standard
1079 The \SpecialChar LaTeX
1080  preamble comes at the very beginning of a document, 
1081 \emph on
1082 before
1083 \emph default
1084  the text.
1085  It serves to:
1086 \end_layout
1087
1088 \begin_layout Itemize
1089 Declare the document class.
1090  
1091 \begin_inset Newline newline
1092 \end_inset
1093
1094 \SpecialChar LyX
1095  already does this for you.
1096  If you're a seasoned \SpecialChar LaTeX
1097 -nician, and you have a custom document class you
1098  want to use, check out the 
1099 \emph on
1100 Customization Manual
1101 \emph default
1102  for information on how to make \SpecialChar LyX
1103  interface to it.
1104 \end_layout
1105
1106 \begin_layout Itemize
1107 Declare the usage of packages.
1108  
1109 \begin_inset Newline newline
1110 \end_inset
1111
1112 \SpecialChar LaTeX
1113  packages provide special commands, which are only available within a document
1114  when the package has been declared in the preamble.
1115  In addition to providing special commands, the inclusion of a package can
1116  change the document.
1117  For example, the package 
1118 \begin_inset Flex Code
1119 status collapsed
1120
1121 \begin_layout Plain Layout
1122 indentfirst
1123 \end_layout
1124
1125 \end_inset
1126
1127  forces all paragraphs to be indented.
1128  There are other packages for labels, envelopes, margins, etc.
1129  
1130 \end_layout
1131
1132 \begin_layout Itemize
1133 Set counters, variables, lengths and widths.
1134  
1135 \begin_inset Newline newline
1136 \end_inset
1137
1138 There are several \SpecialChar LaTeX
1139  counters and variables that 
1140 \emph on
1141 must
1142 \emph default
1143  be set globally from within the preamble in order to have the desired effect.
1144  (There are variables that you can set and reset inside the document, too.)
1145  Margins are a good example of something that must be set in the preamble.
1146  Another example is the label format for lists.
1147  You can actually set these just about anywhere, but it's best to do it
1148  just once, inside the preamble.
1149 \end_layout
1150
1151 \begin_layout Itemize
1152 Declare user defined commands (with 
1153 \begin_inset Flex Code
1154 status collapsed
1155
1156 \begin_layout Plain Layout
1157
1158 \backslash
1159 newcommand
1160 \end_layout
1161
1162 \end_inset
1163
1164  or 
1165 \begin_inset Flex Code
1166 status collapsed
1167
1168 \begin_layout Plain Layout
1169
1170 \backslash
1171 renewcommand
1172 \end_layout
1173
1174 \end_inset
1175
1176 ).
1177 \begin_inset Newline newline
1178 \end_inset
1179
1180 These are abbreviations for \SpecialChar LaTeX
1181  commands which appear very often inside a document.
1182  Although the preamble is a good place to declare such commands, they 
1183 \emph on
1184 can
1185 \emph default
1186  be declared anywhere (before they are used for the first time, of course).
1187  This can be useful if there is a lot of raw \SpecialChar LaTeX
1188  code in your document, which
1189  normally should not be the case.
1190 \end_layout
1191
1192 \begin_layout Standard
1193 \SpecialChar LyX
1194  adds its own set of definitions to the preamble of the 
1195 \begin_inset Flex Code
1196 status collapsed
1197
1198 \begin_layout Plain Layout
1199 .tex
1200 \end_layout
1201
1202 \end_inset
1203
1204  file it produces.
1205  This makes \SpecialChar LaTeX
1206  files generated by \SpecialChar LyX
1207  portable.
1208 \end_layout
1209
1210 \begin_layout Subsection
1211 Changing the Preamble
1212 \end_layout
1213
1214 \begin_layout Standard
1215 The commands which \SpecialChar LyX
1216  adds to the preamble of a \SpecialChar LaTeX
1217  file are fixed; you can't
1218  change them without patching \SpecialChar LyX
1219  itself.
1220  You can, however, add your own stuff to the preamble by selecting 
1221 \begin_inset Flex Noun
1222 status collapsed
1223
1224 \begin_layout Plain Layout
1225 \SpecialChar LaTeX
1226
1227 \begin_inset space ~
1228 \end_inset
1229
1230 Preamble
1231 \end_layout
1232
1233 \end_inset
1234
1235  in the 
1236 \begin_inset Flex Noun
1237 status collapsed
1238
1239 \begin_layout Plain Layout
1240 Document\SpecialChar menuseparator
1241 Settings
1242 \end_layout
1243
1244 \end_inset
1245
1246  dialog.
1247  \SpecialChar LyX
1248  adds anything in the 
1249 \begin_inset Flex Noun
1250 status collapsed
1251
1252 \begin_layout Plain Layout
1253 Preamble
1254 \end_layout
1255
1256 \end_inset
1257
1258  dialog to its own built-in preamble.
1259  Before adding your own declarations in the preamble, you should make sure
1260  that \SpecialChar LyX
1261  doesn't already support what you want to do.
1262  (Remember what we said about reinventing the wheel?) Also, 
1263 \emph on
1264 make sure your preamble code is correct
1265 \emph default
1266 .
1267  \SpecialChar LyX
1268  doesn't check it for you.
1269  If there is an error, you're likely to get an error like 
1270 \begin_inset Quotes eld
1271 \end_inset
1272
1273
1274 \begin_inset Flex Code
1275 status collapsed
1276
1277 \begin_layout Plain Layout
1278 Missing 
1279 \backslash
1280 begin{document}
1281 \end_layout
1282
1283 \end_inset
1284
1285
1286 \begin_inset Quotes erd
1287 \end_inset
1288
1289 .
1290  If you see this error, check your preamble.
1291 \end_layout
1292
1293 \begin_layout Subsection
1294 Examples
1295 \end_layout
1296
1297 \begin_layout Standard
1298 Here are some examples of what you can add to a preamble, and what they
1299  do.
1300 \end_layout
1301
1302 \begin_layout Subsubsection
1303 Example #1: Offsets
1304 \end_layout
1305
1306 \begin_layout Standard
1307 There are two variables under \SpecialChar LaTeX
1308  that control page position: 
1309 \begin_inset Flex Code
1310 status collapsed
1311
1312 \begin_layout Plain Layout
1313
1314 \backslash
1315 hoffset
1316 \end_layout
1317
1318 \end_inset
1319
1320  and 
1321 \begin_inset Flex Code
1322 status collapsed
1323
1324 \begin_layout Plain Layout
1325
1326 \backslash
1327 voffset
1328 \end_layout
1329
1330 \end_inset
1331
1332 .
1333  Their names should be self-explanatory.
1334  These variables are useful if you think for a moment about computer labels.
1335  Sometimes, the size of a print medium and the area of the medium that you
1336  can actually print on aren't the same.
1337  This is where 
1338 \begin_inset Flex Code
1339 status collapsed
1340
1341 \begin_layout Plain Layout
1342
1343 \backslash
1344 hoffset
1345 \end_layout
1346
1347 \end_inset
1348
1349  and 
1350 \begin_inset Flex Code
1351 status collapsed
1352
1353 \begin_layout Plain Layout
1354
1355 \backslash
1356 voffset
1357 \end_layout
1358
1359 \end_inset
1360
1361  come in.
1362 \end_layout
1363
1364 \begin_layout Standard
1365 The default values for 
1366 \begin_inset Flex Code
1367 status collapsed
1368
1369 \begin_layout Plain Layout
1370
1371 \backslash
1372 hoffset
1373 \end_layout
1374
1375 \end_inset
1376
1377  and 
1378 \begin_inset Flex Code
1379 status collapsed
1380
1381 \begin_layout Plain Layout
1382
1383 \backslash
1384 voffset
1385 \end_layout
1386
1387 \end_inset
1388
1389  are both 0
1390 \begin_inset space \thinspace{}
1391 \end_inset
1392
1393 points, i.
1394 \begin_inset space \thinspace{}
1395 \end_inset
1396
1397 e.
1398 \begin_inset space \space{}
1399 \end_inset
1400
1401 the page isn't shifted.
1402  Unfortunately, some DVI drivers always seem to shift the page.
1403  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1404  If you're using \SpecialChar LyX
1405  on a system that you don't personally maintain, and your
1406  sysadmin is a doofus, 
1407 \begin_inset Flex Code
1408 status collapsed
1409
1410 \begin_layout Plain Layout
1411
1412 \backslash
1413 hoffset
1414 \end_layout
1415
1416 \end_inset
1417
1418  and 
1419 \begin_inset Flex Code
1420 status collapsed
1421
1422 \begin_layout Plain Layout
1423
1424 \backslash
1425 voffset
1426 \end_layout
1427
1428 \end_inset
1429
1430  can save the day.
1431  Suppose your left and top margins are always 0.5
1432 \begin_inset space \thinspace{}
1433 \end_inset
1434
1435 inches too big.
1436  You can add this to the preamble:
1437 \end_layout
1438
1439 \begin_layout LyX-Code
1440
1441 \backslash
1442 setlength{
1443 \backslash
1444 hoffset}{-0.5 in}
1445 \end_layout
1446
1447 \begin_layout LyX-Code
1448
1449 \backslash
1450 setlength{
1451 \backslash
1452 voffset}{-0.5 in}
1453 \end_layout
1454
1455 \begin_layout Standard
1456 and your margins should now be correct.
1457 \end_layout
1458
1459 \begin_layout Subsubsection
1460 Example #2: Labels
1461 \end_layout
1462
1463 \begin_layout Standard
1464 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1465  There's a rather nice package, available at your nearest CTAN archive,
1466  for printing sheets of labels: 
1467 \begin_inset Flex Code
1468 status collapsed
1469
1470 \begin_layout Plain Layout
1471 labels.sty
1472 \end_layout
1473
1474 \end_inset
1475
1476 .
1477  Now, your system may not have this package installed by default.
1478  We leave that up to you to check.
1479  You'll also want to read the documentation for it; we're not going to do
1480  that for you.
1481  Since this is an example, however, we'll give you an example of how you
1482  use this package.
1483 \end_layout
1484
1485 \begin_layout Standard
1486 First, make sure you're using the 
1487 \begin_inset Flex Code
1488 status collapsed
1489
1490 \begin_layout Plain Layout
1491 article
1492 \end_layout
1493
1494 \end_inset
1495
1496  document class.
1497  Next, you need to put the following in your preamble:
1498 \end_layout
1499
1500 \begin_layout LyX-Code
1501
1502 \backslash
1503 usepackage{labels}
1504 \end_layout
1505
1506 \begin_layout LyX-Code
1507
1508 \backslash
1509 LabelCols=3
1510 \end_layout
1511
1512 \begin_layout LyX-Code
1513
1514 \backslash
1515 LabelRows=7
1516 \end_layout
1517
1518 \begin_layout LyX-Code
1519
1520 \backslash
1521 LeftBorder=8mm
1522 \end_layout
1523
1524 \begin_layout LyX-Code
1525
1526 \backslash
1527 RightBorder=8mm
1528 \end_layout
1529
1530 \begin_layout LyX-Code
1531
1532 \backslash
1533 TopBorder=9mm
1534 \end_layout
1535
1536 \begin_layout LyX-Code
1537
1538 \backslash
1539 BottomBorder=2mm
1540 \end_layout
1541
1542 \begin_layout Standard
1543 This sets things up for Avery label sheets, stock #5360.
1544  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1545  code, placing
1546  the commands 
1547 \begin_inset Flex Code
1548 status collapsed
1549
1550 \begin_layout Plain Layout
1551
1552 \backslash
1553 begin{labels}
1554 \end_layout
1555
1556 \end_inset
1557
1558  and 
1559 \begin_inset Flex Code
1560 status collapsed
1561
1562 \begin_layout Plain Layout
1563
1564 \backslash
1565 end{labels}
1566 \end_layout
1567
1568 \end_inset
1569
1570  around each label text.
1571  This and other special features of 
1572 \begin_inset Flex Code
1573 status collapsed
1574
1575 \begin_layout Plain Layout
1576 labels.sty
1577 \end_layout
1578
1579 \end_inset
1580
1581  are explained in its documentation.
1582 \end_layout
1583
1584 \begin_layout Standard
1585 Someday, someone may write a \SpecialChar LyX
1586  layout file to support this package directly.
1587  Maybe that someone is you.
1588 \end_layout
1589
1590 \begin_layout Subsubsection
1591 Example #3: Paragraph Indentation
1592 \end_layout
1593
1594 \begin_layout Standard
1595 Americans are trained to indent the first line of 
1596 \emph on
1597 every
1598 \emph default
1599  paragraph.
1600  As with all of their other weird quirks, most Americans will whine and
1601  moan until they can have their way and indent the first line of all paragraphs.
1602  (Yes, we're joking.
1603  (We are?) 
1604 \emph on
1605 Yeah
1606 \emph default
1607 , we are.)
1608 \end_layout
1609
1610 \begin_layout Standard
1611 Of course, this behavior isn't standard typography.
1612  In books, you typically only indent the first line of a paragraph 
1613 \emph on
1614 if
1615 \emph default
1616  it follows another one.
1617  The idea behind indenting the first line of a paragraph is to distinguish
1618  neighboring paragraphs from one another.
1619  If there is no previous paragraph—for example, if it follows a figure or
1620  is the first paragraph in a section—then there is no need for indentation.
1621  
1622 \end_layout
1623
1624 \begin_layout Standard
1625 If you're a typical American (we're still joking!), though, you don't care
1626  about such esoteric things; you want your indentation! Add this to the
1627  preamble:
1628 \end_layout
1629
1630 \begin_layout LyX-Code
1631
1632 \backslash
1633 usepackage{indentfirst}
1634 \end_layout
1635
1636 \begin_layout Standard
1637 If your \SpecialChar TeX
1638  distribution isn't braindead, you'll have this package, and all
1639  of your paragraphs will get the indentation the Founding Fathers intended
1640  they should have.
1641 \end_layout
1642
1643 \begin_layout Subsubsection
1644 Example #4: This Document
1645 \end_layout
1646
1647 \begin_layout Standard
1648 You can also check out the preamble of this document to get an idea of some
1649  of the advanced things you can do.
1650 \end_layout
1651
1652 \begin_layout Section
1653 \SpecialChar LyX
1654  and \SpecialChar LaTeX
1655  Errors
1656 \end_layout
1657
1658 \begin_layout Standard
1659 When \SpecialChar LyX
1660  calls \SpecialChar LaTeX
1661 , it tells \SpecialChar LaTeX
1662  to blithely ignore any errors and keep going.
1663  It then uses the logfile from the \SpecialChar LaTeX
1664  run to do a post-mortem.
1665  After analyzing the logfile, \SpecialChar LyX
1666  displays a dialog listing the errors.
1667  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1668  file
1669  where the error occurred.
1670 \begin_inset Foot
1671 status collapsed
1672
1673 \begin_layout Plain Layout
1674 Well, usually.
1675  Analyzing the logfile is a tough job, and \SpecialChar LyX
1676  doesn't always go to the right
1677  line.
1678  There are also cases where \SpecialChar LaTeX
1679  reports the error on one line, but the actual
1680  error is earlier.
1681  This is not unlike forgetting a closing brace in a program: You'll get
1682  an error, but only later.
1683 \end_layout
1684
1685 \end_inset
1686
1687
1688 \end_layout
1689
1690 \begin_layout Standard
1691 Some folks also like to look at the log file directly: It is available from
1692  
1693 \begin_inset Flex Noun
1694 status collapsed
1695
1696 \begin_layout Plain Layout
1697 Document\SpecialChar menuseparator
1698 LaTeX
1699 \begin_inset space ~
1700 \end_inset
1701
1702 Log
1703 \end_layout
1704
1705 \end_inset
1706
1707 .
1708  There are some fairly common error messages and warnings.
1709  We'll cover those here.
1710  You should look at a good \SpecialChar LaTeX
1711  book for a complete listing.
1712 \end_layout
1713
1714 \begin_layout Itemize
1715 \begin_inset Flex Code
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 LaTeX Warning
1720 \end_layout
1721
1722 \end_inset
1723
1724
1725 \begin_inset Newline newline
1726 \end_inset
1727
1728 Anything beginning with these words is a warning message for the purpose
1729  of 
1730 \begin_inset Quotes eld
1731 \end_inset
1732
1733 debugging
1734 \begin_inset Quotes erd
1735 \end_inset
1736
1737  the \SpecialChar LaTeX
1738  code itself.
1739  You'll get messages like this if you added or changed cross-references
1740  or bibliography entries, in which case, \SpecialChar LaTeX
1741  is trying to tell you that you
1742  need to make another run.
1743  You can by-and-large ignore these.
1744 \end_layout
1745
1746 \begin_layout Itemize
1747 \begin_inset Flex Code
1748 status collapsed
1749
1750 \begin_layout Plain Layout
1751 LaTeX Font Warning
1752 \end_layout
1753
1754 \end_inset
1755
1756
1757 \begin_inset Newline newline
1758 \end_inset
1759
1760 Another warning message, this time about fonts which \SpecialChar LaTeX
1761  couldn't find.
1762  The rest of the message will often say something about a replacement font
1763  that \SpecialChar LaTeX
1764  used.
1765  You can safely ignore these, too.
1766 \end_layout
1767
1768 \begin_layout Itemize
1769 \begin_inset Flex Code
1770 status collapsed
1771
1772 \begin_layout Plain Layout
1773 Overfull 
1774 \backslash
1775 hbox
1776 \end_layout
1777
1778 \end_inset
1779
1780
1781 \begin_inset Newline newline
1782 \end_inset
1783
1784 \SpecialChar LaTeX
1785  absolutely 
1786 \emph on
1787 loves
1788 \emph default
1789  to spew these out.
1790  They are warnings about lines that were too long and run past the right
1791  margin.
1792  Almost always, this is unnoticeable in the final output.
1793  (It can be just a point or two.) Or, only one or two characters extend past
1794  the margin.
1795  \SpecialChar LaTeX
1796  seems to generate at least one of these messages for just about any document
1797  you write.
1798 \begin_inset Newline newline
1799 \end_inset
1800
1801 You can ignore these messages.
1802  Your eyes will tell you if there's a problem with something that's too
1803  wide; just look at the output.
1804 \begin_inset Foot
1805 status collapsed
1806
1807 \begin_layout Plain Layout
1808 You can also enable the `draft' option in 
1809 \begin_inset Flex Noun
1810 status collapsed
1811
1812 \begin_layout Plain Layout
1813 Document\SpecialChar menuseparator
1814 Settings
1815 \end_layout
1816
1817 \end_inset
1818
1819 , and then \SpecialChar LaTeX
1820  will draw a black box in the margin of lines that are overfull.
1821 \end_layout
1822
1823 \end_inset
1824
1825
1826 \end_layout
1827
1828 \begin_layout Itemize
1829 \begin_inset Flex Code
1830 status collapsed
1831
1832 \begin_layout Plain Layout
1833 Underfull 
1834 \backslash
1835 hbox
1836 \end_layout
1837
1838 \end_inset
1839
1840
1841 \begin_inset Newline newline
1842 \end_inset
1843
1844 Not quite as common as its cousin.
1845  \SpecialChar LaTeX
1846  seems to like to print lines that are a bit too wide as opposed to ones
1847  that are a bit too narrow.
1848  We have no idea why.
1849 \end_layout
1850
1851 \begin_layout Itemize
1852 \begin_inset Flex Code
1853 status collapsed
1854
1855 \begin_layout Plain Layout
1856 Overfull 
1857 \backslash
1858 vbox
1859 \end_layout
1860
1861 \end_inset
1862
1863  and 
1864 \begin_inset Flex Code
1865 status collapsed
1866
1867 \begin_layout Plain Layout
1868 Underfull 
1869 \backslash
1870 vbox
1871 \end_layout
1872
1873 \end_inset
1874
1875
1876 \begin_inset Newline newline
1877 \end_inset
1878
1879 Warnings about troubles breaking the page.
1880  Once again, just look at the output.
1881  Your eyes will tell you where something has gone wrong.
1882 \end_layout
1883
1884 \begin_layout Itemize
1885 \begin_inset Flex Code
1886 status collapsed
1887
1888 \begin_layout Plain Layout
1889 LaTeX Error: File 
1890 \begin_inset Quotes els
1891 \end_inset
1892
1893 Xxxx
1894 \begin_inset Quotes ers
1895 \end_inset
1896
1897  not found
1898 \end_layout
1899
1900 \end_inset
1901
1902
1903 \begin_inset Newline newline
1904 \end_inset
1905
1906 The file 
1907 \begin_inset Quotes eld
1908 \end_inset
1909
1910 Xxxx
1911 \begin_inset Quotes erd
1912 \end_inset
1913
1914  isn't installed on this system.
1915  This usually appears because some package your document needs isn't installed.
1916  If you didn't touch the preamble or didn't use the 
1917 \begin_inset Flex Code
1918 status collapsed
1919
1920 \begin_layout Plain Layout
1921
1922 \backslash
1923 usepackage{}
1924 \end_layout
1925
1926 \end_inset
1927
1928  command, then one of the packages \SpecialChar LyX
1929  tried to load is missing.
1930  Use 
1931 \begin_inset Flex Noun
1932 status collapsed
1933
1934 \begin_layout Plain Layout
1935 Help\SpecialChar menuseparator
1936 \SpecialChar LaTeX
1937  Configuration
1938 \end_layout
1939
1940 \end_inset
1941
1942  to get a list of packages that \SpecialChar LyX
1943  knows about.
1944  This file is updated whenever you reconfigure \SpecialChar LyX
1945  (using 
1946 \begin_inset Flex Noun
1947 status collapsed
1948
1949 \begin_layout Plain Layout
1950 Tools\SpecialChar menuseparator
1951 Reconfigure
1952 \end_layout
1953
1954 \end_inset
1955
1956 ) and tells you which packages have been detected and what they do.
1957 \begin_inset Newline newline
1958 \end_inset
1959
1960 If you did use the 
1961 \begin_inset Flex Code
1962 status collapsed
1963
1964 \begin_layout Plain Layout
1965
1966 \backslash
1967 usepackage{}
1968 \end_layout
1969
1970 \end_inset
1971
1972  command and the package in question isn't installed, then you'll need to
1973  install it yourself.
1974 \end_layout
1975
1976 \begin_layout Itemize
1977 \begin_inset Flex Code
1978 status collapsed
1979
1980 \begin_layout Plain Layout
1981 LaTeX Error: Unknown option
1982 \end_layout
1983
1984 \end_inset
1985
1986
1987 \begin_inset Newline newline
1988 \end_inset
1989
1990 Error messages beginning with this are trying to tell you that you specified
1991  a bad or undefined option to a package.
1992  Check the package's documentation.
1993 \end_layout
1994
1995 \begin_layout Itemize
1996 \begin_inset Flex Code
1997 status collapsed
1998
1999 \begin_layout Plain Layout
2000 Undefined control sequence
2001 \end_layout
2002
2003 \end_inset
2004
2005
2006 \begin_inset Newline newline
2007 \end_inset
2008
2009 If you've inserted \SpecialChar LaTeX
2010  code into your document, but made a typo, you'll get
2011  one of these.
2012  You may have forgotten to load a package.
2013  In any case, this error message usually means that you used an undefined
2014  command.
2015  
2016 \end_layout
2017
2018 \begin_layout Standard
2019 There are other error and warning messages.
2020  Some are self-explanatory.
2021  These are usually \SpecialChar LaTeX
2022  messages.
2023  Others are downright cryptic.
2024  These are usually \SpecialChar TeX
2025  error messages, and we really have 
2026 \emph on
2027 no clue
2028 \emph default
2029  what they mean or how to decipher them.
2030  No-one does.
2031 \end_layout
2032
2033 \begin_layout Standard
2034 There's a general sequence you should follow if you get error messages:
2035 \end_layout
2036
2037 \begin_layout Enumerate
2038 Look at the \SpecialChar LaTeX
2039  code you inserted for typos.
2040 \end_layout
2041
2042 \begin_layout Enumerate
2043 If there are no typos, check that you used the command(s) correctly.
2044 \end_layout
2045
2046 \begin_layout Enumerate
2047 If you get a bunch of error boxes piled up at the very top of the document—and
2048  especially if you see a 
2049 \begin_inset Quotes eld
2050 \end_inset
2051
2052
2053 \begin_inset Flex Code
2054 status collapsed
2055
2056 \begin_layout Plain Layout
2057 Missing 
2058 \backslash
2059 begin{document}
2060 \end_layout
2061
2062 \end_inset
2063
2064
2065 \begin_inset Quotes erd
2066 \end_inset
2067
2068  error—it means that there are errors in the preamble.
2069  Start debugging your preamble.
2070 \end_layout
2071
2072 \begin_layout Enumerate
2073 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2074  code to the
2075  document, the first suspect is your \SpecialChar LaTeX
2076  distribution itself.
2077  Check for missing packages and install them.
2078 \end_layout
2079
2080 \begin_layout Enumerate
2081 Okay, so there are no missing packages.
2082  Did you use any of the fine-tuning options in \SpecialChar LyX
2083 ? Specifically, did you 
2084 \emph on
2085 misuse
2086 \emph default
2087  any of them, like trying to manually insert lots of 
2088 \begin_inset Flex Code
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092 Protected
2093 \begin_inset space ~
2094 \end_inset
2095
2096 Blanks
2097 \end_layout
2098
2099 \end_inset
2100
2101
2102 \begin_inset Flex Code
2103 status collapsed
2104
2105 \begin_layout Plain Layout
2106 Linebreaks
2107 \end_layout
2108
2109 \end_inset
2110
2111 , or 
2112 \begin_inset Flex Code
2113 status collapsed
2114
2115 \begin_layout Plain Layout
2116 Pagebreaks
2117 \end_layout
2118
2119 \end_inset
2120
2121 ? Did you try to kludge something together with these instead of using the
2122  appropriate paragraph environment?
2123 \end_layout
2124
2125 \begin_layout Enumerate
2126 All right, you didn't use any of the fine-tuning options, you played by
2127  the rules.
2128  Did you try to pull a fancy maneuver? Did you do something funky inside
2129  a table or an equation, like inserting a graphic into a table cell?
2130 \end_layout
2131
2132 \begin_layout Enumerate
2133 Do you have long sections of text where \SpecialChar LaTeX
2134  cannot find a place to break a
2135  line? By default, \SpecialChar LaTeX
2136  is rather strict about how much extra inter-word spacing
2137  it will add in order to break a line.
2138  Preferably, you should rework the paragraph to avoid the problem.
2139 \end_layout
2140
2141 \begin_layout Enumerate
2142 Did you go overboard with the nesting? \SpecialChar LyX
2143  (currently) doesn't check to make
2144  sure you're in the limits for nesting environments.
2145  If you nested a bunch of environments to the 
2146 \begin_inset Formula $17^{\mathrm{th}}$
2147 \end_inset
2148
2149  level, that's the problem.
2150  (The limit in \SpecialChar LaTeX
2151  is five.)
2152 \end_layout
2153
2154 \begin_layout Enumerate
2155 Okay, you didn't get any error messages, but your output looks awful.
2156  If you have a table or figure that's too wide or long for the page, you
2157  need to:
2158 \end_layout
2159
2160 \begin_deeper
2161 \begin_layout Enumerate
2162 rescale the figure so it fits.
2163 \end_layout
2164
2165 \begin_layout Enumerate
2166 trim down the table so it fits.
2167 \end_layout
2168
2169 \end_deeper
2170 \begin_layout Enumerate
2171 If something else is wrong with the output, and you didn't try to pull anything
2172  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2173 \end_layout
2174
2175 \begin_layout Standard
2176 If all this doesn't help—well, then 
2177 \emph on
2178 perhaps
2179 \emph default
2180  you might have found a bug in \SpecialChar LyX
2181 \SpecialChar ldots
2182 .
2183 \end_layout
2184
2185 \begin_layout Chapter
2186 Supplemental Tools
2187 \end_layout
2188
2189 \begin_layout Section
2190 Customizing Bibliographies with Bib\SpecialChar TeX
2191  or Biblatex
2192 \end_layout
2193
2194 \begin_layout Standard
2195 The most basic information about how to use Bib\SpecialChar TeX
2196  or 
2197 \family sans
2198 Biblatex
2199 \family default
2200  with \SpecialChar LyX
2201  is contained in the section 
2202 \emph on
2203 Bibliography databases
2204 \emph default
2205  of the 
2206 \emph on
2207 User's Guide
2208 \emph default
2209 .
2210  The following subsections explain special bibliography features supported
2211  by \SpecialChar LyX
2212 .
2213 \end_layout
2214
2215 \begin_layout Subsection
2216 Alternative Citation Styles
2217 \end_layout
2218
2219 \begin_layout Standard
2220 Standard Bib\SpecialChar TeX
2221  uses numbers (e.
2222 \begin_inset space \thinspace{}
2223 \end_inset
2224
2225 g.
2226 \begin_inset space \space{}
2227 \end_inset
2228
2229
2230 \begin_inset Quotes eld
2231 \end_inset
2232
2233 [12]
2234 \begin_inset Quotes erd
2235 \end_inset
2236
2237 ) to refer to a cited work.
2238  However, in many scientific disciplines, other citation styles are in use.
2239  The most common one is the author-year style (e.
2240 \begin_inset space \thinspace{}
2241 \end_inset
2242
2243 g.
2244 \begin_inset space \space{}
2245 \end_inset
2246
2247
2248 \begin_inset Quotes eld
2249 \end_inset
2250
2251 Knuth 1984a
2252 \begin_inset Quotes erd
2253 \end_inset
2254
2255 ).
2256  \SpecialChar LyX
2257  supports three packages that provide this style, 
2258 \begin_inset Flex Code
2259 status collapsed
2260
2261 \begin_layout Plain Layout
2262 biblatex
2263 \end_layout
2264
2265 \end_inset
2266
2267
2268 \begin_inset Flex Code
2269 status collapsed
2270
2271 \begin_layout Plain Layout
2272 natbib
2273 \end_layout
2274
2275 \end_inset
2276
2277 , and 
2278 \begin_inset Flex Code
2279 status collapsed
2280
2281 \begin_layout Plain Layout
2282 jurabib
2283 \end_layout
2284
2285 \end_inset
2286
2287 .
2288  Each of these packages has their pros and cons, which cannot be listed
2289  in detail.
2290  If you only want to have simple author-year (or author-numerical) style,
2291  or if you want to use one of the countless style files for 
2292 \begin_inset Flex Code
2293 status collapsed
2294
2295 \begin_layout Plain Layout
2296 natbib
2297 \end_layout
2298
2299 \end_inset
2300
2301 , then the established 
2302 \begin_inset Flex Code
2303 status collapsed
2304
2305 \begin_layout Plain Layout
2306 natbib
2307 \end_layout
2308
2309 \end_inset
2310
2311  package is probably your choice.
2312  If you look for specific citation styles common in law studies, you might
2313  consider the 
2314 \begin_inset Flex Code
2315 status collapsed
2316
2317 \begin_layout Plain Layout
2318 jurabib
2319 \end_layout
2320
2321 \end_inset
2322
2323  package.
2324  If you want to have full control over the formatting or look for advanced
2325  features such as ibidem, footnote citations, full title citations, advanced
2326  date formats (such as 400 BC) or full localization to other languages than
2327  English, you should definitely consider 
2328 \begin_inset Flex Code
2329 status collapsed
2330
2331 \begin_layout Plain Layout
2332 biblatex
2333 \end_layout
2334
2335 \end_inset
2336
2337 , which exceeds all other packages in terms of features, but is also quite
2338  heavy and more resource-hungry.
2339 \end_layout
2340
2341 \begin_layout Standard
2342 The handling of these packages in \SpecialChar LyX
2343  is basically the same.
2344  Go to 
2345 \begin_inset Flex Noun
2346 status collapsed
2347
2348 \begin_layout Plain Layout
2349 Document\SpecialChar menuseparator
2350 Settings
2351 \end_layout
2352
2353 \end_inset
2354
2355  and select under 
2356 \begin_inset Flex Noun
2357 status collapsed
2358
2359 \begin_layout Plain Layout
2360 Bibliography
2361 \end_layout
2362
2363 \end_inset
2364
2365  the 
2366 \begin_inset Flex Noun
2367 status collapsed
2368
2369 \begin_layout Plain Layout
2370 Style Format
2371 \end_layout
2372
2373 \end_inset
2374
2375  
2376 \begin_inset Flex Noun
2377 status collapsed
2378
2379 \begin_layout Plain Layout
2380 Biblatex
2381 \end_layout
2382
2383 \end_inset
2384
2385
2386 \begin_inset Flex Noun
2387 status collapsed
2388
2389 \begin_layout Plain Layout
2390 Biblatex (Natbib mode)
2391 \end_layout
2392
2393 \end_inset
2394
2395
2396 \begin_inset Flex Noun
2397 status collapsed
2398
2399 \begin_layout Plain Layout
2400 Natbib (BibTeX)
2401 \end_layout
2402
2403 \end_inset
2404
2405  or 
2406 \begin_inset Flex Noun
2407 status collapsed
2408
2409 \begin_layout Plain Layout
2410 Jurabib (BibTeX)
2411 \end_layout
2412
2413 \end_inset
2414
2415  (see sec.
2416 \begin_inset space ~
2417 \end_inset
2418
2419 6.5.3 in the User's Guide for more information on these choices).
2420  With all these packages, you will get some extra features in the citation
2421  dialog and you can select the style of the reference (
2422 \begin_inset Quotes eld
2423 \end_inset
2424
2425 Knuth 1984
2426 \begin_inset Quotes erd
2427 \end_inset
2428
2429
2430 \begin_inset Quotes eld
2431 \end_inset
2432
2433 Knuth (1984)
2434 \begin_inset Quotes erd
2435 \end_inset
2436
2437
2438 \begin_inset Quotes eld
2439 \end_inset
2440
2441 Knuth, 1984
2442 \begin_inset Quotes erd
2443 \end_inset
2444
2445
2446 \begin_inset Quotes eld
2447 \end_inset
2448
2449 1984
2450 \begin_inset Quotes erd
2451 \end_inset
2452
2453  etc.).
2454  Note that either package needs specifically designed style files.
2455  They all ship their own, but there are lots of additional style files,
2456  and there is even an interactive style file builder
2457 \begin_inset Foot
2458 status collapsed
2459
2460 \begin_layout Plain Layout
2461 See 
2462 \begin_inset Flex URL
2463 status open
2464
2465 \begin_layout Plain Layout
2466
2467 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2468 \end_layout
2469
2470 \end_inset
2471
2472
2473 \end_layout
2474
2475 \end_inset
2476
2477  for 
2478 \begin_inset Flex Code
2479 status collapsed
2480
2481 \begin_layout Plain Layout
2482 natbib
2483 \end_layout
2484
2485 \end_inset
2486
2487 .
2488 \end_layout
2489
2490 \begin_layout Subsection
2491 Subdivided Bibliographies
2492 \end_layout
2493
2494 \begin_layout Standard
2495 Sometimes you might need to divide your bibliography into several sections.
2496  If you are for instance a historian, the possibility to separate sources
2497  and scientific works is most likely a 
2498 \begin_inset Quotes eld
2499 \end_inset
2500
2501 must have
2502 \begin_inset Quotes erd
2503 \end_inset
2504
2505 .
2506  Unfortunately, Bib\SpecialChar TeX
2507  itself does not allow you to do this.
2508  But with the help of some \SpecialChar LaTeX
2509  packages, Bib\SpecialChar TeX
2510  can be extended to fit your needs.
2511 \end_layout
2512
2513 \begin_layout Standard
2514 \SpecialChar LyX
2515  provides native support for one of these packages, 
2516 \family typewriter
2517 bibtopic
2518 \family default
2519 .
2520 \begin_inset Foot
2521 status collapsed
2522
2523 \begin_layout Plain Layout
2524 Available from 
2525 \begin_inset Flex URL
2526 status open
2527
2528 \begin_layout Plain Layout
2529
2530 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2531 \end_layout
2532
2533 \end_inset
2534
2535
2536 \end_layout
2537
2538 \end_inset
2539
2540  The advantage of this package (compared to other packages such as 
2541 \family typewriter
2542 multibib
2543 \family default
2544 ) is that you don't need to define new citation commands.
2545  Instead, you need to prepare different bibliographic databases which include
2546  the entries for the different sections of the bibliography.
2547  For example: If you want to divide your bibliography into the sections
2548  
2549 \begin_inset Quotes eld
2550 \end_inset
2551
2552 Sources
2553 \begin_inset Quotes erd
2554 \end_inset
2555
2556  and 
2557 \begin_inset Quotes eld
2558 \end_inset
2559
2560 Scientific works
2561 \begin_inset Quotes erd
2562 \end_inset
2563
2564 , you first need to create two bibliographic databases, e.
2565 \begin_inset space \thinspace{}
2566 \end_inset
2567
2568 g.
2569 \begin_inset space \space{}
2570 \end_inset
2571
2572
2573 \begin_inset Flex Code
2574 status collapsed
2575
2576 \begin_layout Plain Layout
2577 sources.bib
2578 \end_layout
2579
2580 \end_inset
2581
2582  and 
2583 \begin_inset Flex Code
2584 status collapsed
2585
2586 \begin_layout Plain Layout
2587 scientific.bib
2588 \end_layout
2589
2590 \end_inset
2591
2592 .
2593  
2594 \end_layout
2595
2596 \begin_layout Standard
2597 Go to 
2598 \begin_inset Flex Noun
2599 status collapsed
2600
2601 \begin_layout Plain Layout
2602 Document\SpecialChar menuseparator
2603 Settings
2604 \end_layout
2605
2606 \end_inset
2607
2608  and check under 
2609 \begin_inset Flex Noun
2610 status collapsed
2611
2612 \begin_layout Plain Layout
2613 Bibliography
2614 \end_layout
2615
2616 \end_inset
2617
2618  the option 
2619 \begin_inset Flex Noun
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 Subdivided bibliography
2624 \end_layout
2625
2626 \end_inset
2627
2628 .
2629  Now you can insert multiple Bib\SpecialChar TeX
2630  bibliographies, one for each section of
2631  your bibliography.
2632  Returning to our example: Insert the Bib\SpecialChar TeX
2633  bibliography 
2634 \begin_inset Flex Code
2635 status collapsed
2636
2637 \begin_layout Plain Layout
2638 sources.bib
2639 \end_layout
2640
2641 \end_inset
2642
2643  and a second one for the database 
2644 \begin_inset Flex Code
2645 status collapsed
2646
2647 \begin_layout Plain Layout
2648 scientific.bib
2649 \end_layout
2650
2651 \end_inset
2652
2653 .
2654  You are free to use the same or different styles for each section.
2655  Additionally, you can choose if the bibliography section should contain
2656  
2657 \begin_inset Quotes eld
2658 \end_inset
2659
2660 all cited references
2661 \begin_inset Quotes erd
2662 \end_inset
2663
2664  of the specified database(s) (which is the default), 
2665 \begin_inset Quotes eld
2666 \end_inset
2667
2668 all uncited references
2669 \begin_inset Quotes erd
2670 \end_inset
2671
2672  or even 
2673 \begin_inset Quotes eld
2674 \end_inset
2675
2676 all references
2677 \begin_inset Quotes erd
2678 \end_inset
2679
2680 .
2681  This might be useful if you would like to separate your bibliography into
2682  three sections: 
2683 \begin_inset Quotes eld
2684 \end_inset
2685
2686 Cited sources
2687 \begin_inset Quotes erd
2688 \end_inset
2689
2690
2691 \begin_inset Quotes eld
2692 \end_inset
2693
2694 Uncited sources
2695 \begin_inset Quotes erd
2696 \end_inset
2697
2698 , and 
2699 \begin_inset Quotes eld
2700 \end_inset
2701
2702 Scientific works
2703 \begin_inset Quotes erd
2704 \end_inset
2705
2706 .
2707  The titles for the sections can be added as ordinary sections or subsections.
2708  Since 
2709 \begin_inset Flex Code
2710 status collapsed
2711
2712 \begin_layout Plain Layout
2713 bibtopic
2714 \end_layout
2715
2716 \end_inset
2717
2718  removes the bibliography title, you have to manually re-add that, too (as
2719  a chapter* or section*, for instance).
2720 \end_layout
2721
2722 \begin_layout Standard
2723 With 
2724 \family sans
2725 Biblatex
2726 \family default
2727 , the procedure is a bit different.
2728  Since 
2729 \family typewriter
2730 bibtopic
2731 \family default
2732  does not work with 
2733 \family sans
2734 Biblatex
2735 \family default
2736 , the aforementioned 
2737 \begin_inset Flex Noun
2738 status collapsed
2739
2740 \begin_layout Plain Layout
2741 Subdivided bibliography
2742 \end_layout
2743
2744 \end_inset
2745
2746  option is disabled if you use 
2747 \family sans
2748 Biblatex
2749 \family default
2750 .
2751  However, 
2752 \family sans
2753 Biblatex
2754 \family default
2755  provides its own means to generate subdivided bibliographies.
2756  You can either add keywords to bibliography entries via the 
2757 \begin_inset Flex Code
2758 status collapsed
2759
2760 \begin_layout Plain Layout
2761 keywords
2762 \end_layout
2763
2764 \end_inset
2765
2766  entry option and then filter bibliography sections by keyword (by adding
2767  
2768 \begin_inset Flex Code
2769 status collapsed
2770
2771 \begin_layout Plain Layout
2772 keyword=mykeyword
2773 \end_layout
2774
2775 \end_inset
2776
2777  to the 
2778 \begin_inset Flex Noun
2779 status collapsed
2780
2781 \begin_layout Plain Layout
2782 Options
2783 \end_layout
2784
2785 \end_inset
2786
2787  field of the dialog that opens if you right-click on the 
2788 \begin_inset Flex Noun
2789 status collapsed
2790
2791 \begin_layout Plain Layout
2792 Biblatex Generated Bibliography
2793 \end_layout
2794
2795 \end_inset
2796
2797  button), or you can filter by entry types (such as 
2798 \emph on
2799 book
2800 \emph default
2801  or 
2802 \emph on
2803 article
2804 \emph default
2805 ) by entering e.
2806 \begin_inset space \thinspace{}
2807 \end_inset
2808
2809 g.
2810  
2811 \begin_inset Flex Code
2812 status collapsed
2813
2814 \begin_layout Plain Layout
2815 type=book
2816 \end_layout
2817
2818 \end_inset
2819
2820  or 
2821 \begin_inset Flex Code
2822 status collapsed
2823
2824 \begin_layout Plain Layout
2825 nottype=collection
2826 \end_layout
2827
2828 \end_inset
2829
2830  to the mentioned 
2831 \begin_inset Flex Noun
2832 status collapsed
2833
2834 \begin_layout Plain Layout
2835 Options
2836 \end_layout
2837
2838 \end_inset
2839
2840  field, or you can create so-called 
2841 \begin_inset Quotes eld
2842 \end_inset
2843
2844 Bibliography Categories
2845 \begin_inset Quotes erd
2846 \end_inset
2847
2848  to which you can assign individual entries.
2849  Please refer to the Biblatex manual, section 
2850 \emph on
2851 Subdivided Bibliographies
2852 \emph default
2853 , for details.
2854 \end_layout
2855
2856 \begin_layout Subsection
2857 Multiple Bibliographies
2858 \end_layout
2859
2860 \begin_layout Standard
2861 Multiple bibliographies, e.
2862 \begin_inset space \thinspace{}
2863 \end_inset
2864
2865 g.
2866 \begin_inset space \space{}
2867 \end_inset
2868
2869 a bibliography for each part, chapter, section, subsection or child (sub-documen
2870 t) of the document, are also supported by \SpecialChar LyX
2871 .
2872  In order to enable it, go to 
2873 \begin_inset Flex Noun
2874 status collapsed
2875
2876 \begin_layout Plain Layout
2877 Document\SpecialChar menuseparator
2878 Settings\SpecialChar menuseparator
2879 Bibliography
2880 \end_layout
2881
2882 \end_inset
2883
2884  and select the relevant unit (e.
2885 \begin_inset space \thinspace{}
2886 \end_inset
2887
2888 g., 
2889 \begin_inset Quotes eld
2890 \end_inset
2891
2892 per section
2893 \begin_inset Quotes erd
2894 \end_inset
2895
2896 ) in the 
2897 \begin_inset Flex Noun
2898 status collapsed
2899
2900 \begin_layout Plain Layout
2901 Multiple Bibliographies
2902 \end_layout
2903
2904 \end_inset
2905
2906  combo box.
2907  Then add a Bib(la)\SpecialChar TeX
2908  bibliography to each unit (e.
2909 \begin_inset space \thinspace{}
2910 \end_inset
2911
2912 g., section) of your document.
2913  In the output, a separate bibliography, containing only the references
2914  done in the current unit is generated.
2915 \end_layout
2916
2917 \begin_layout Standard
2918 If you use Bib\SpecialChar TeX
2919 , either the 
2920 \begin_inset Flex Code
2921 status collapsed
2922
2923 \begin_layout Plain Layout
2924 chapterbib
2925 \end_layout
2926
2927 \end_inset
2928
2929  of the 
2930 \begin_inset Flex Code
2931 status collapsed
2932
2933 \begin_layout Plain Layout
2934 bibtopic
2935 \end_layout
2936
2937 \end_inset
2938
2939  package is used to create multiple bibliographies.
2940  The former package is used if you select 
2941 \begin_inset Quotes eld
2942 \end_inset
2943
2944 per child document
2945 \begin_inset Quotes erd
2946 \end_inset
2947
2948  and do 
2949 \emph on
2950 not
2951 \emph default
2952  check 
2953 \begin_inset Flex Noun
2954 status collapsed
2955
2956 \begin_layout Plain Layout
2957 Sectioned Bibliography
2958 \end_layout
2959
2960 \end_inset
2961
2962 .
2963  In all other cases, 
2964 \begin_inset Flex Code
2965 status collapsed
2966
2967 \begin_layout Plain Layout
2968 bibtopic
2969 \end_layout
2970
2971 \end_inset
2972
2973  is used.
2974 \begin_inset Foot
2975 status collapsed
2976
2977 \begin_layout Plain Layout
2978 An alternative approach, if you are willing to use some 
2979 \begin_inset Flex Noun
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983 \SpecialChar TeX
2984  Code
2985 \end_layout
2986
2987 \end_inset
2988
2989  (see section
2990 \begin_inset space ~
2991 \end_inset
2992
2993
2994 \begin_inset CommandInset ref
2995 LatexCommand ref
2996 reference "sec:Inserting-TeX-Code"
2997
2998 \end_inset
2999
3000 ), is to use the 
3001 \begin_inset Flex Code
3002 status collapsed
3003
3004 \begin_layout Plain Layout
3005 bibunits
3006 \end_layout
3007
3008 \end_inset
3009
3010  package.
3011 \end_layout
3012
3013 \end_inset
3014
3015  If 
3016 \begin_inset Flex Code
3017 status collapsed
3018
3019 \begin_layout Plain Layout
3020 bibtopic
3021 \end_layout
3022
3023 \end_inset
3024
3025  is used, \SpecialChar LyX
3026  encloses the specified units in 
3027 \begin_inset Flex Code
3028 status collapsed
3029
3030 \begin_layout Plain Layout
3031 bibtopic
3032 \end_layout
3033
3034 \end_inset
3035
3036 's 
3037 \begin_inset Flex Code
3038 status collapsed
3039
3040 \begin_layout Plain Layout
3041
3042 \backslash
3043 begin{btUnit}
3044 \end_layout
3045
3046 \end_inset
3047
3048  and 
3049 \begin_inset Flex Code
3050 status collapsed
3051
3052 \begin_layout Plain Layout
3053
3054 \backslash
3055 end{btUnit}
3056 \end_layout
3057
3058 \end_inset
3059
3060  in order to create the units.
3061  Note that this approach has some limitations.
3062  First, every citation reference has to be inside some 
3063 \begin_inset Flex Code
3064 status collapsed
3065
3066 \begin_layout Plain Layout
3067 btUnit
3068 \end_layout
3069
3070 \end_inset
3071
3072 .
3073  So citations outside a defined unit (e.
3074 \begin_inset space \thinspace{}
3075 \end_inset
3076
3077 g., before the first section if you use 
3078 \begin_inset Quotes eld
3079 \end_inset
3080
3081 by section
3082 \begin_inset Quotes erd
3083 \end_inset
3084
3085 ) will appear as 
3086 \begin_inset Quotes eld
3087 \end_inset
3088
3089 ???
3090 \begin_inset Quotes erd
3091 \end_inset
3092
3093 .
3094  You can also create your own units by entering 
3095 \begin_inset Flex Code
3096 status collapsed
3097
3098 \begin_layout Plain Layout
3099
3100 \backslash
3101 begin{btUnit}
3102 \end_layout
3103
3104 \end_inset
3105
3106  and 
3107 \begin_inset Flex Code
3108 status collapsed
3109
3110 \begin_layout Plain Layout
3111
3112 \backslash
3113 end{btUnit}
3114 \end_layout
3115
3116 \end_inset
3117
3118  as \SpecialChar TeX
3119  code (for instance to work around the mentioned limitation).
3120  Note, though, that 
3121 \begin_inset Flex Code
3122 status collapsed
3123
3124 \begin_layout Plain Layout
3125 btUnit
3126 \end_layout
3127
3128 \end_inset
3129
3130 s cannot be nested.
3131  A second limitation is that 
3132 \begin_inset Flex Code
3133 status collapsed
3134
3135 \begin_layout Plain Layout
3136 bibtopic
3137 \end_layout
3138
3139 \end_inset
3140
3141  always processes all references of a bibliography database, even if they
3142  are not cited.
3143  This can result in odd labels (e.
3144 \begin_inset space \thinspace{}
3145 \end_inset
3146
3147 g.
3148  
3149 \begin_inset Quotes eld
3150 \end_inset
3151
3152 Miller 2014b
3153 \begin_inset Quotes erd
3154 \end_inset
3155
3156  if two works of this author from 2014 are in the database, even if only
3157  one is cited).
3158 \end_layout
3159
3160 \begin_layout Standard
3161 If you use 
3162 \family sans
3163 Biblatex
3164 \family default
3165 , the 
3166 \begin_inset Flex Code
3167 status collapsed
3168
3169 \begin_layout Plain Layout
3170 refsection
3171 \end_layout
3172
3173 \end_inset
3174
3175  option is used instead.
3176  If you need specific units, you can start them with the \SpecialChar TeX
3177  code 
3178 \begin_inset Flex Code
3179 status collapsed
3180
3181 \begin_layout Plain Layout
3182
3183 \backslash
3184 newrefsection
3185 \end_layout
3186
3187 \end_inset
3188
3189  or 
3190 \begin_inset Flex Code
3191 status collapsed
3192
3193 \begin_layout Plain Layout
3194
3195 \backslash
3196 newrefsegment
3197 \end_layout
3198
3199 \end_inset
3200
3201 , respectively.
3202  If you also want to control the end of the unit, use the environment 
3203 \begin_inset Flex Code
3204 status collapsed
3205
3206 \begin_layout Plain Layout
3207
3208 \backslash
3209 begin{refsection}
3210 \end_layout
3211
3212 \end_inset
3213
3214  \SpecialChar ldots
3215  
3216 \begin_inset Flex Code
3217 status collapsed
3218
3219 \begin_layout Plain Layout
3220
3221 \backslash
3222 end{refsection}
3223 \end_layout
3224
3225 \end_inset
3226
3227  instead.
3228  Note, though, that 
3229 \begin_inset Flex Code
3230 status collapsed
3231
3232 \begin_layout Plain Layout
3233 refsection
3234 \end_layout
3235
3236 \end_inset
3237
3238 s cannot be nested.
3239  In addition to the individual bibliography of the current unit, 
3240 \family sans
3241 Biblatex
3242 \family default
3243  also provides an easy way to output all bibliographies, subsequently, at
3244  one place (e.
3245 \begin_inset space \thinspace{}
3246 \end_inset
3247
3248 g., at the end of the document).
3249  Select 
3250 \begin_inset Quotes eld
3251 \end_inset
3252
3253 all reference units
3254 \begin_inset Quotes erd
3255 \end_inset
3256
3257  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
3258  this.
3259  Please refer to the 
3260 \family sans
3261 Biblatex
3262 \family default
3263  manual for more information on this topic.
3264 \end_layout
3265
3266 \begin_layout Section
3267 Multipart Documents
3268 \end_layout
3269
3270 \begin_layout Subsection
3271 General Operation
3272 \end_layout
3273
3274 \begin_layout Standard
3275 When you are working on a large file with many sections, it is often convenient
3276  to break up the document into several files, or perhaps you have something
3277  where a table may change from time to time, but the preceding text does
3278  not.
3279  In these cases, you should seriously consider using multipart documents.
3280  For example, scientific papers often have five major sections: the introduction
3281 , observations, results, discussion, and conclusion.
3282  Each of these could be its own separate \SpecialChar LyX
3283  file, with one 
3284 \begin_inset Quotes eld
3285 \end_inset
3286
3287 master
3288 \begin_inset Quotes erd
3289 \end_inset
3290
3291  file which contains the title, authors, abstract, references, etc., plus
3292  the five included files.
3293  It is important to note that each of these files is a full \SpecialChar LyX
3294  file which
3295  can be formatted and printed on its own, as well as included in a master
3296  file.
3297  Each of these files must have the same document class, however—don't attempt
3298  to mix book classes with article classes.
3299  You may also include \SpecialChar LaTeX
3300  files; however, these files must not have their own
3301  preamble (i.
3302 \begin_inset space \thinspace{}
3303 \end_inset
3304
3305 e.
3306 \begin_inset space \space{}
3307 \end_inset
3308
3309 everything up to and including the 
3310 \begin_inset Flex Code
3311 status collapsed
3312
3313 \begin_layout Plain Layout
3314
3315 \backslash
3316 begin{document}
3317 \end_layout
3318
3319 \end_inset
3320
3321  line as well as the 
3322 \begin_inset Flex Code
3323 status collapsed
3324
3325 \begin_layout Plain Layout
3326
3327 \backslash
3328 end{document}
3329 \end_layout
3330
3331 \end_inset
3332
3333  line must be deleted) or else errors will be generated when you try to
3334  make a DVI file.
3335 \end_layout
3336
3337 \begin_layout Standard
3338 \SpecialChar LyX
3339  allows you to include files quite easily with 
3340 \begin_inset Flex Noun
3341 status collapsed
3342
3343 \begin_layout Plain Layout
3344 Insert\SpecialChar menuseparator
3345 ChiId
3346 \begin_inset space ~
3347 \end_inset
3348
3349 Document
3350 \end_layout
3351
3352 \end_inset
3353
3354 .
3355  When you click on this selection a small box is inserted into the file
3356  at the current cursor location.
3357  Clicking on the box raises a dialog which allows you to select the file
3358  to be included, and the method of its inclusion.
3359  
3360 \end_layout
3361
3362 \begin_layout Standard
3363 The file selection box should by now be obvious.
3364  The three inclusion methods are 
3365 \begin_inset Quotes eld
3366 \end_inset
3367
3368 include
3369 \begin_inset Quotes erd
3370 \end_inset
3371
3372
3373 \begin_inset Quotes eld
3374 \end_inset
3375
3376 input
3377 \begin_inset Quotes erd
3378 \end_inset
3379
3380 , and 
3381 \begin_inset Quotes eld
3382 \end_inset
3383
3384 verbatim
3385 \begin_inset Quotes erd
3386 \end_inset
3387
3388 .
3389  The difference between 
3390 \begin_inset Quotes eld
3391 \end_inset
3392
3393 include
3394 \begin_inset Quotes erd
3395 \end_inset
3396
3397  and 
3398 \begin_inset Quotes eld
3399 \end_inset
3400
3401 input
3402 \begin_inset Quotes erd
3403 \end_inset
3404
3405  is really only meaningful to \SpecialChar LaTeX
3406 perts, but the practical difference is that
3407  files that are 
3408 \begin_inset Quotes eld
3409 \end_inset
3410
3411 included
3412 \begin_inset Quotes erd
3413 \end_inset
3414
3415  are typeset beginning on a new page, while files that are 
3416 \begin_inset Quotes eld
3417 \end_inset
3418
3419 inputted
3420 \begin_inset Quotes erd
3421 \end_inset
3422
3423  are typeset starting on the current page.
3424 \end_layout
3425
3426 \begin_layout Standard
3427 Generally, the master file is converted into a full \SpecialChar LaTeX
3428  file before typesetting,
3429  while the included files are converted to \SpecialChar LaTeX
3430  files that do not have all the
3431  preamble information.
3432 \end_layout
3433
3434 \begin_layout Standard
3435
3436 \begin_inset Quotes eld
3437 \end_inset
3438
3439 verbatim
3440 \begin_inset Quotes erd
3441 \end_inset
3442
3443  included file allows you to include a file typeset exactly as it appears
3444  in the file, i.
3445 \begin_inset space \thinspace{}
3446 \end_inset
3447
3448 e.
3449 \begin_inset space \space{}
3450 \end_inset
3451
3452 in 
3453 \begin_inset Flex Code
3454 status collapsed
3455
3456 \begin_layout Plain Layout
3457 verbatim
3458 \end_layout
3459
3460 \end_inset
3461
3462  mode, with the characters set in a fixed-width typewriter font.
3463  Normally, spaces in this file are invisible, though two consecutive spaces
3464  are conserved, unlike \SpecialChar LyX
3465 's normal treatment of spaces.
3466  However, setting the 
3467 \begin_inset Flex Noun
3468 status collapsed
3469
3470 \begin_layout Plain Layout
3471 Mark
3472 \begin_inset space ~
3473 \end_inset
3474
3475 spaces
3476 \begin_inset space ~
3477 \end_inset
3478
3479 in
3480 \begin_inset space ~
3481 \end_inset
3482
3483 output
3484 \end_layout
3485
3486 \end_inset
3487
3488  checkbox typesets a mark to unambiguously define the presence of a space.
3489  
3490 \end_layout
3491
3492 \begin_layout Subsection
3493 Cross-References Between Files
3494 \end_layout
3495
3496 \begin_layout Standard
3497 \begin_inset Box Shadowbox
3498 position "t"
3499 hor_pos "c"
3500 has_inner_box 1
3501 inner_pos "t"
3502 use_parbox 0
3503 use_makebox 0
3504 width "100col%"
3505 special "none"
3506 height "1in"
3507 height_special "totalheight"
3508 thickness "0.4pt"
3509 separation "3pt"
3510 shadowsize "4pt"
3511 framecolor "black"
3512 backgroundcolor "none"
3513 status open
3514
3515 \begin_layout Plain Layout
3516 This section is somewhat out of date.
3517  Need to describe default master documents and how children are opened when
3518  the master is.
3519  [[FIXME]]
3520 \end_layout
3521
3522 \end_inset
3523
3524
3525 \end_layout
3526
3527 \begin_layout Standard
3528 It is possible to set up cross-references between the different files.
3529  First, open all the files in question: let's call them A and B in a two
3530  file example, where B is included in A.
3531  Let's say you insert a label in A, then want to reference it in B.
3532  Open the cross-reference dialog whilst in document B, and you can select
3533  the 
3534 \begin_inset Quotes eld
3535 \end_inset
3536
3537 buffer
3538 \begin_inset Quotes erd
3539 \end_inset
3540
3541  to use.
3542 \end_layout
3543
3544 \begin_layout Subsection
3545 Bibliography Lists in all Subdocuments
3546 \end_layout
3547
3548 \begin_layout Standard
3549 \begin_inset Box Frameless
3550 position "t"
3551 hor_pos "c"
3552 has_inner_box 1
3553 inner_pos "t"
3554 use_parbox 0
3555 use_makebox 0
3556 width "100col%"
3557 special "none"
3558 height "1in"
3559 height_special "totalheight"
3560 thickness "0.4pt"
3561 separation "3pt"
3562 shadowsize "4pt"
3563 framecolor "black"
3564 backgroundcolor "none"
3565 status open
3566
3567 \begin_layout Plain Layout
3568 This section also needs updating.
3569  There is now material about this on the wiki, and it could be copied here.
3570 \end_layout
3571
3572 \end_inset
3573
3574
3575 \end_layout
3576
3577 \begin_layout Standard
3578 Copy the bibliography list with all entries to all subdocuments and transform
3579  them to a comment.
3580  This way \SpecialChar LyX
3581  will find the 
3582 \begin_inset Flex Code
3583 status collapsed
3584
3585 \begin_layout Plain Layout
3586 .bib
3587 \end_layout
3588
3589 \end_inset
3590
3591 -files and you can easily insert references without making the bibliography
3592  list visible.
3593 \end_layout
3594
3595 \begin_layout Standard
3596 As the bibliography list is in a comment, \SpecialChar LaTeX
3597  won't use it and the references
3598  will look like this: [?], instead of like this: [1].
3599  One solution is to use the \SpecialChar LaTeX
3600 -package 
3601 \begin_inset Flex Code
3602 status collapsed
3603
3604 \begin_layout Plain Layout
3605 comment
3606 \end_layout
3607
3608 \end_inset
3609
3610  that will only include comments by processing the files separately.
3611  To do this, add in the \SpecialChar LaTeX
3612  preamble of every subdocument the following:
3613 \end_layout
3614
3615 \begin_layout LyX-Code
3616
3617 \backslash
3618 usepackage{comment}
3619 \end_layout
3620
3621 \begin_layout LyX-Code
3622
3623 \backslash
3624 includecomment{comment}
3625 \end_layout
3626
3627 \begin_layout Standard
3628 See also 
3629 \begin_inset Flex URL
3630 status collapsed
3631
3632 \begin_layout Plain Layout
3633
3634 http://wiki.lyx.org/FAQ/Unsorted#toc31
3635 \end_layout
3636
3637 \end_inset
3638
3639 .
3640 \end_layout
3641
3642 \begin_layout Section
3643 \SpecialChar LyX
3644  Archives
3645 \end_layout
3646
3647 \begin_layout Standard
3648 Users sometimes need to be able to 
3649 \begin_inset Quotes eld
3650 \end_inset
3651
3652 bundle
3653 \begin_inset Quotes erd
3654 \end_inset
3655
3656  a \SpecialChar LyX
3657  file together with all the images (and other files) on which it depends,
3658  either for sending to a publisher or for sharing with a co-author.
3659  \SpecialChar LyX
3660  2.0 includes a Python script (
3661 \begin_inset Flex Code
3662 status collapsed
3663
3664 \begin_layout Plain Layout
3665 lyxpak.py
3666 \end_layout
3667
3668 \end_inset
3669
3670 ) that automates this process.
3671  To use it, you must have either the 
3672 \begin_inset Flex Code
3673 status collapsed
3674
3675 \begin_layout Plain Layout
3676 zipfile
3677 \end_layout
3678
3679 \end_inset
3680
3681  or 
3682 \begin_inset Flex Code
3683 status collapsed
3684
3685 \begin_layout Plain Layout
3686 tarfile
3687 \end_layout
3688
3689 \end_inset
3690
3691  python modules installed on your system.
3692  By default, the script prefers the 
3693 \begin_inset Flex Code
3694 status collapsed
3695
3696 \begin_layout Plain Layout
3697 gzip
3698 \end_layout
3699
3700 \end_inset
3701
3702 -compressed 
3703 \begin_inset Flex Code
3704 status collapsed
3705
3706 \begin_layout Plain Layout
3707 tar
3708 \end_layout
3709
3710 \end_inset
3711
3712  format on Unix-like systems and the 
3713 \begin_inset Flex Code
3714 status collapsed
3715
3716 \begin_layout Plain Layout
3717 zip
3718 \end_layout
3719
3720 \end_inset
3721
3722  format on Windows.
3723 \end_layout
3724
3725 \begin_layout Standard
3726 \SpecialChar LyX
3727 's configuration process will set the script up to export a `\SpecialChar LyX
3728  Archive',
3729  and this format will then be available under 
3730 \begin_inset Flex Code
3731 status collapsed
3732
3733 \begin_layout Plain Layout
3734 File\SpecialChar menuseparator
3735 Export
3736 \end_layout
3737
3738 \end_inset
3739
3740 .
3741 \end_layout
3742
3743 \begin_layout Standard
3744 Independently of the platform, the generation of a particular archive format
3745  can be forced by adding either the 
3746 \begin_inset Flex Code
3747 status collapsed
3748
3749 \begin_layout Plain Layout
3750 -t
3751 \end_layout
3752
3753 \end_inset
3754
3755  (for the 
3756 \begin_inset Flex Code
3757 status collapsed
3758
3759 \begin_layout Plain Layout
3760 tar
3761 \end_layout
3762
3763 \end_inset
3764
3765  format) or 
3766 \begin_inset Flex Code
3767 status collapsed
3768
3769 \begin_layout Plain Layout
3770 -z
3771 \end_layout
3772
3773 \end_inset
3774
3775  (for the 
3776 \begin_inset Flex Code
3777 status collapsed
3778
3779 \begin_layout Plain Layout
3780 zip
3781 \end_layout
3782
3783 \end_inset
3784
3785  format) switch to the 
3786 \begin_inset Flex Code
3787 status collapsed
3788
3789 \begin_layout Plain Layout
3790 \SpecialChar LyX
3791 \SpecialChar menuseparator
3792 \SpecialChar LyX
3793  Archive
3794 \end_layout
3795
3796 \end_inset
3797
3798  converter in 
3799 \begin_inset Flex Code
3800 status collapsed
3801
3802 \begin_layout Plain Layout
3803 Tools\SpecialChar menuseparator
3804 Preferences\SpecialChar menuseparator
3805 File Handling\SpecialChar menuseparator
3806 Converters
3807 \end_layout
3808
3809 \end_inset
3810
3811 .
3812  (Make sure you add the switch after the script name, not before it.)
3813 \end_layout
3814
3815 \begin_layout Section
3816 Fancy Headers and Footers
3817 \end_layout
3818
3819 \begin_layout Standard
3820 The default page layout is rather plain; for an 
3821 \begin_inset Flex Code
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825 article
3826 \end_layout
3827
3828 \end_inset
3829
3830  document class, all you get is a centered page number at the bottom of
3831  the page.
3832  This document uses KOMA-script's book class, so it appears to be a bit
3833  fancier.
3834  But to really put on a show, you need to set the document page style to
3835  
3836 \begin_inset Quotes eld
3837 \end_inset
3838
3839 fancy
3840 \begin_inset Quotes erd
3841 \end_inset
3842
3843 , as mentioned in the 
3844 \emph on
3845 User Guide
3846 \emph default
3847 .
3848  This section describes the \SpecialChar LaTeX
3849  code you need to insert in your \SpecialChar LaTeX
3850  preamble in
3851  order to get the desired effects.
3852 \end_layout
3853
3854 \begin_layout Standard
3855 For more information on fancy headers, see the 
3856 \begin_inset Flex Code
3857 status collapsed
3858
3859 \begin_layout Plain Layout
3860 fancyhdr
3861 \end_layout
3862
3863 \end_inset
3864
3865  package documentation.
3866  (
3867 \begin_inset Flex URL
3868 status collapsed
3869
3870 \begin_layout Plain Layout
3871
3872 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3873 \end_layout
3874
3875 \end_inset
3876
3877 )
3878 \end_layout
3879
3880 \begin_layout Standard
3881 The page header is divided into three fields, not surprisingly labeled 
3882 \begin_inset Quotes eld
3883 \end_inset
3884
3885 left
3886 \begin_inset Quotes erd
3887 \end_inset
3888
3889
3890 \begin_inset Quotes eld
3891 \end_inset
3892
3893 center
3894 \begin_inset Quotes erd
3895 \end_inset
3896
3897 , and 
3898 \begin_inset Quotes eld
3899 \end_inset
3900
3901 right
3902 \begin_inset Quotes erd
3903 \end_inset
3904
3905 .
3906  The footer is also divided into these three fields.
3907  The \SpecialChar LaTeX
3908  commands to set these fields in the simplest manner are 
3909 \begin_inset Flex Code
3910 status collapsed
3911
3912 \begin_layout Plain Layout
3913
3914 \backslash
3915 lhead
3916 \end_layout
3917
3918 \end_inset
3919
3920
3921 \begin_inset Flex Code
3922 status collapsed
3923
3924 \begin_layout Plain Layout
3925
3926 \backslash
3927 chead
3928 \end_layout
3929
3930 \end_inset
3931
3932
3933 \begin_inset Flex Code
3934 status collapsed
3935
3936 \begin_layout Plain Layout
3937
3938 \backslash
3939 rhead
3940 \end_layout
3941
3942 \end_inset
3943
3944
3945 \begin_inset Flex Code
3946 status collapsed
3947
3948 \begin_layout Plain Layout
3949
3950 \backslash
3951 lfoot
3952 \end_layout
3953
3954 \end_inset
3955
3956 , etc.
3957  Suppose you wish to put your name in the upper left hand corner of each
3958  page.
3959  Simply insert the following command in the preamble: 
3960 \end_layout
3961
3962 \begin_layout Standard
3963
3964 \family typewriter
3965
3966 \backslash
3967 lhead{John Q.
3968  DocWriter}
3969 \end_layout
3970
3971 \begin_layout Standard
3972 You will now see your name in the upper left.
3973  If a field has a default entry that you would like to get rid of (often
3974  the page number appears in the central footer) simply include a command
3975  with a blank argument, e.
3976 \begin_inset space \thinspace{}
3977 \end_inset
3978
3979 g.:
3980 \end_layout
3981
3982 \begin_layout Standard
3983
3984 \family typewriter
3985
3986 \backslash
3987 cfoot{}
3988 \end_layout
3989
3990 \begin_layout Standard
3991 Let's get really fancy: lets put the section number with the word 
3992 \begin_inset Quotes eld
3993 \end_inset
3994
3995 Section
3996 \begin_inset Quotes erd
3997 \end_inset
3998
3999  (e.
4000 \begin_inset space \thinspace{}
4001 \end_inset
4002
4003 g.
4004 \begin_inset space \space{}
4005 \end_inset
4006
4007 Section 3) in the upper left, the page number (e.
4008 \begin_inset space \thinspace{}
4009 \end_inset
4010
4011 g.
4012 \begin_inset space \space{}
4013 \end_inset
4014
4015 Page 4) in the upper right, your name in the lower left, and the date in
4016  the lower right.
4017  The following commands should now appear in the preamble:
4018 \end_layout
4019
4020 \begin_layout Standard
4021
4022 \family typewriter
4023
4024 \backslash
4025 lhead{Section 
4026 \backslash
4027 thesection}
4028 \end_layout
4029
4030 \begin_layout Standard
4031
4032 \family typewriter
4033
4034 \backslash
4035 chead{}
4036 \end_layout
4037
4038 \begin_layout Standard
4039
4040 \family typewriter
4041
4042 \backslash
4043 rhead{Page 
4044 \backslash
4045 thepage}
4046 \end_layout
4047
4048 \begin_layout Standard
4049
4050 \family typewriter
4051
4052 \backslash
4053 lfoot{John Q.
4054  DocWriter}
4055 \end_layout
4056
4057 \begin_layout Standard
4058
4059 \family typewriter
4060
4061 \backslash
4062 cfoot{}
4063 \end_layout
4064
4065 \begin_layout Standard
4066
4067 \family typewriter
4068
4069 \backslash
4070 rfoot{
4071 \backslash
4072 today}
4073 \end_layout
4074
4075 \begin_layout Standard
4076 The commands 
4077 \begin_inset Flex Code
4078 status collapsed
4079
4080 \begin_layout Plain Layout
4081
4082 \backslash
4083 thesection
4084 \end_layout
4085
4086 \end_inset
4087
4088  and 
4089 \begin_inset Flex Code
4090 status collapsed
4091
4092 \begin_layout Plain Layout
4093
4094 \backslash
4095 thepage
4096 \end_layout
4097
4098 \end_inset
4099
4100  access \SpecialChar LaTeX
4101 's section and page counters, and so print out the current section
4102  and page numbers.
4103  
4104 \begin_inset Flex Code
4105 status collapsed
4106
4107 \begin_layout Plain Layout
4108
4109 \backslash
4110 today
4111 \end_layout
4112
4113 \end_inset
4114
4115  simply prints out today's date.
4116 \end_layout
4117
4118 \begin_layout Standard
4119 The thicknesses of the horizontal rules drawn beneath the header and above
4120  the footer can also be modified.
4121  If you don't want one of the rules, set its thickness to 0.
4122  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4123  Use commands
4124 \family typewriter
4125  
4126 \family default
4127 like 
4128 \begin_inset Flex Code
4129 status collapsed
4130
4131 \begin_layout Plain Layout
4132
4133 \backslash
4134 renewcommand{
4135 \backslash
4136 headrulewidth}{0.4pt}
4137 \end_layout
4138
4139 \end_inset
4140
4141  and 
4142 \begin_inset Flex Code
4143 status collapsed
4144
4145 \begin_layout Plain Layout
4146
4147 \backslash
4148 renewcommand{
4149 \backslash
4150 footrulewidth}{0.4pt}
4151 \end_layout
4152
4153 \end_inset
4154
4155  to set the thicknesses.
4156 \end_layout
4157
4158 \begin_layout Standard
4159 You can switch the header/footer settings on and off for individual pages
4160  using commands like 
4161 \begin_inset Flex Code
4162 status collapsed
4163
4164 \begin_layout Plain Layout
4165
4166 \backslash
4167 thispagestyle{empty}
4168 \end_layout
4169
4170 \end_inset
4171
4172
4173 \begin_inset Flex Code
4174 status collapsed
4175
4176 \begin_layout Plain Layout
4177
4178 \backslash
4179 thispagestyle{plain}
4180 \end_layout
4181
4182 \end_inset
4183
4184 , and 
4185 \begin_inset Flex Code
4186 status collapsed
4187
4188 \begin_layout Plain Layout
4189
4190 \backslash
4191 thispagestyle{fancy}
4192 \end_layout
4193
4194 \end_inset
4195
4196 .
4197  Simply insert them in the text on the page you want changed and mark them
4198  as \SpecialChar TeX
4199  code.
4200  In fact, title pages are marked as plain by default, while following pages
4201  are marked fancy when using the global fancy setting.
4202 \end_layout
4203
4204 \begin_layout Standard
4205 As a final example, it is possible to include an image in the header or
4206  footer.
4207  Suppose you want to put a company logo in the upper lefthand corner.
4208  You might try something like
4209 \end_layout
4210
4211 \begin_layout Standard
4212
4213 \family typewriter
4214
4215 \backslash
4216 lhead{
4217 \backslash
4218 resizebox{1in}{!}{
4219 \backslash
4220 includegraphics{logo.eps}}}
4221 \end_layout
4222
4223 \begin_layout Standard
4224 \noindent
4225 (you may need to preface this with 
4226 \begin_inset Flex Code
4227 status collapsed
4228
4229 \begin_layout Plain Layout
4230 \noindent
4231
4232 \backslash
4233 usepackage{graphics}
4234 \end_layout
4235
4236 \end_inset
4237
4238  if you don't include graphics elsewhere in your document).
4239 \end_layout
4240
4241 \begin_layout Section
4242 Itemize Bullet Selection
4243 \begin_inset CommandInset label
4244 LatexCommand label
4245 name "sec:bullet"
4246
4247 \end_inset
4248
4249
4250 \end_layout
4251
4252 \begin_layout Standard
4253 by
4254 \noun on
4255  Allan Rae
4256 \end_layout
4257
4258 \begin_layout Subsection
4259 Introduction
4260 \end_layout
4261
4262 \begin_layout Standard
4263 \SpecialChar LyX
4264  provides 216 bullet shapes that can be accessed from a simple dialog.
4265  Using this dialog you can easily specify what bullet shape to use at each
4266  level of an itemized list.
4267  These settings are document-wide so you won't be able to specify different
4268  sets of bullets for different paragraphs.
4269 \begin_inset Foot
4270 status collapsed
4271
4272 \begin_layout Plain Layout
4273 Well, actually you can but you'll have to do it by hand.
4274 \end_layout
4275
4276 \end_inset
4277
4278
4279 \end_layout
4280
4281 \begin_layout Subsection
4282 How it looks
4283 \end_layout
4284
4285 \begin_layout Standard
4286 Open the dialog by selecting the 
4287 \begin_inset Flex Noun
4288 status collapsed
4289
4290 \begin_layout Plain Layout
4291 Document\SpecialChar menuseparator
4292 Settings
4293 \end_layout
4294
4295 \end_inset
4296
4297  menu item and then select the 
4298 \begin_inset Flex Noun
4299 status collapsed
4300
4301 \begin_layout Plain Layout
4302 Bullets
4303 \end_layout
4304
4305 \end_inset
4306
4307  tab.
4308 \end_layout
4309
4310 \begin_layout Standard
4311 The dialog provides you with a table of bullet shapes.
4312  A column of buttons on the left of the table provides access to the six
4313  different panels of bullet shapes.
4314  The row of buttons across the top is used to select which bullet depth
4315  you are changing.
4316  A text entry under the table shows the currently selected bullet shape's
4317  \SpecialChar LaTeX
4318  equivalent and this can be edited if desired.
4319  If you do modify the text you will also need to specify any needed packages
4320  in the \SpecialChar LaTeX
4321  preamble.
4322 \end_layout
4323
4324 \begin_layout Standard
4325 The six panels are divided up by the packages they require.
4326  The following table shows the mappings from button name to \SpecialChar LaTeX
4327  package.
4328 \end_layout
4329
4330 \begin_layout Standard
4331 \align center
4332 \begin_inset Tabular
4333 <lyxtabular version="3" rows="7" columns="2">
4334 <features tabularvalignment="middle">
4335 <column alignment="center" valignment="top" width="0pt">
4336 <column alignment="center" valignment="top" width="0pt">
4337 <row>
4338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4339 \begin_inset Text
4340
4341 \begin_layout Plain Layout
4342
4343 \family roman
4344 \series medium
4345 \shape up
4346 \size normal
4347 \emph off
4348 \bar no
4349 \noun off
4350 \color none
4351 Button
4352 \end_layout
4353
4354 \end_inset
4355 </cell>
4356 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4357 \begin_inset Text
4358
4359 \begin_layout Plain Layout
4360
4361 \family roman
4362 \series medium
4363 \shape up
4364 \size normal
4365 \emph off
4366 \bar no
4367 \noun off
4368 \color none
4369 Packages Required
4370 \end_layout
4371
4372 \end_inset
4373 </cell>
4374 </row>
4375 <row>
4376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4377 \begin_inset Text
4378
4379 \begin_layout Plain Layout
4380
4381 \family sans
4382 \series medium
4383 \shape up
4384 \size normal
4385 \emph off
4386 \bar no
4387 \noun off
4388 \color none
4389 Standard
4390 \end_layout
4391
4392 \end_inset
4393 </cell>
4394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4395 \begin_inset Text
4396
4397 \begin_layout Plain Layout
4398
4399 \series medium
4400 \shape up
4401 \size normal
4402 \emph off
4403 \bar no
4404 \noun off
4405 \color none
4406 base \SpecialChar LaTeX
4407
4408 \end_layout
4409
4410 \end_inset
4411 </cell>
4412 </row>
4413 <row>
4414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4415 \begin_inset Text
4416
4417 \begin_layout Plain Layout
4418
4419 \family sans
4420 \series medium
4421 \shape up
4422 \size normal
4423 \emph off
4424 \bar no
4425 \noun off
4426 \color none
4427 Maths
4428 \end_layout
4429
4430 \end_inset
4431 </cell>
4432 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4433 \begin_inset Text
4434
4435 \begin_layout Plain Layout
4436
4437 \family typewriter
4438 \series medium
4439 \shape up
4440 \size normal
4441 \emph off
4442 \bar no
4443 \noun off
4444 \color none
4445 amssymb.sty
4446 \end_layout
4447
4448 \end_inset
4449 </cell>
4450 </row>
4451 <row>
4452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4453 \begin_inset Text
4454
4455 \begin_layout Plain Layout
4456
4457 \family sans
4458 \series medium
4459 \shape up
4460 \size normal
4461 \emph off
4462 \bar no
4463 \noun off
4464 \color none
4465 Ding1
4466 \end_layout
4467
4468 \end_inset
4469 </cell>
4470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4471 \begin_inset Text
4472
4473 \begin_layout Plain Layout
4474
4475 \family typewriter
4476 \series medium
4477 \shape up
4478 \size normal
4479 \emph off
4480 \bar no
4481 \noun off
4482 \color none
4483 pifont.sty
4484 \end_layout
4485
4486 \end_inset
4487 </cell>
4488 </row>
4489 <row>
4490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4491 \begin_inset Text
4492
4493 \begin_layout Plain Layout
4494
4495 \family sans
4496 \series medium
4497 \shape up
4498 \size normal
4499 \emph off
4500 \bar no
4501 \noun off
4502 \color none
4503 Ding2
4504 \end_layout
4505
4506 \end_inset
4507 </cell>
4508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4509 \begin_inset Text
4510
4511 \begin_layout Plain Layout
4512
4513 \family typewriter
4514 \series medium
4515 \shape up
4516 \size normal
4517 \emph off
4518 \bar no
4519 \noun off
4520 \color none
4521 pifont.sty
4522 \end_layout
4523
4524 \end_inset
4525 </cell>
4526 </row>
4527 <row>
4528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4529 \begin_inset Text
4530
4531 \begin_layout Plain Layout
4532
4533 \family sans
4534 \series medium
4535 \shape up
4536 \size normal
4537 \emph off
4538 \bar no
4539 \noun off
4540 \color none
4541 Ding3
4542 \end_layout
4543
4544 \end_inset
4545 </cell>
4546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4547 \begin_inset Text
4548
4549 \begin_layout Plain Layout
4550
4551 \family typewriter
4552 \series medium
4553 \shape up
4554 \size normal
4555 \emph off
4556 \bar no
4557 \noun off
4558 \color none
4559 pifont.sty
4560 \end_layout
4561
4562 \end_inset
4563 </cell>
4564 </row>
4565 <row>
4566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4567 \begin_inset Text
4568
4569 \begin_layout Plain Layout
4570
4571 \family sans
4572 \series medium
4573 \shape up
4574 \size normal
4575 \emph off
4576 \bar no
4577 \noun off
4578 \color none
4579 Ding4
4580 \end_layout
4581
4582 \end_inset
4583 </cell>
4584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4585 \begin_inset Text
4586
4587 \begin_layout Plain Layout
4588
4589 \family typewriter
4590 \series medium
4591 \shape up
4592 \size normal
4593 \emph off
4594 \bar no
4595 \noun off
4596 \color none
4597 pifont.sty
4598 \end_layout
4599
4600 \end_inset
4601 </cell>
4602 </row>
4603 </lyxtabular>
4604
4605 \end_inset
4606
4607
4608 \end_layout
4609
4610 \begin_layout Standard
4611 \SpecialChar LyX
4612  doesn't stop you using bullets from packages you don't have.
4613  If you get errors from \SpecialChar LaTeX
4614  when you try to view or print the file, then it
4615  is likely you are missing a package.
4616 \begin_inset Foot
4617 status collapsed
4618
4619 \begin_layout Plain Layout
4620 \SpecialChar LyX
4621  doesn't restrict your use since you may be editing locally and exporting
4622  elsewhere.
4623 \end_layout
4624
4625 \end_inset
4626
4627
4628 \end_layout
4629
4630 \begin_layout Subsection
4631 How to use it
4632 \end_layout
4633
4634 \begin_layout Standard
4635 Select which bullet depth you want to change then select the bullet shape
4636  and size.
4637  Any changes will not be visible in \SpecialChar LyX
4638 , but are visible when viewing the document.
4639 \end_layout
4640
4641 \begin_layout Standard
4642 You can reset a bullet shape to the default simply by clicking your right
4643  mouse button on the appropriate bullet depth button.
4644 \begin_inset Foot
4645 status collapsed
4646
4647 \begin_layout Plain Layout
4648 If you 
4649 \emph on
4650 really
4651 \emph default
4652  want to have multiple sets of paragraphs with different sets of bullets
4653  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4654  code.
4655  The bullet selection dialog can help though because it provides you with
4656  the \SpecialChar LaTeX
4657  code for a wide range of bullet shapes.
4658  To make your own custom paragraphs you have the following options:
4659 \end_layout
4660
4661 \begin_layout Plain Layout
4662 \begin_inset ERT
4663 status open
4664
4665 \begin_layout Plain Layout
4666
4667
4668 \backslash
4669 let
4670 \backslash
4671 savelabelitemi=
4672 \backslash
4673 labelitemi
4674 \end_layout
4675
4676 \end_inset
4677
4678
4679 \end_layout
4680
4681 \begin_layout Plain Layout
4682 \begin_inset ERT
4683 status open
4684
4685 \begin_layout Plain Layout
4686
4687
4688 \backslash
4689 renewcommand
4690 \backslash
4691 labelitemi[0]{
4692 \backslash
4693 small
4694 \backslash
4695 (
4696 \backslash
4697 sharp
4698 \backslash
4699 )}
4700 \end_layout
4701
4702 \end_inset
4703
4704
4705 \end_layout
4706
4707 \begin_layout Itemize
4708 Use the \SpecialChar LaTeX
4709  command 
4710 \begin_inset Flex Code
4711 status collapsed
4712
4713 \begin_layout Plain Layout
4714
4715 \backslash
4716 renewcommand{}{}
4717 \end_layout
4718
4719 \end_inset
4720
4721  to specify a new bullet shape for a given depth.
4722  You'll also need to save the current bullet shape so you can restore it
4723  again afterwards.
4724  In this itemized list the following \SpecialChar LaTeX
4725  code was used to change the bullet
4726  used for the first depth.
4727 \end_layout
4728
4729 \begin_deeper
4730 \begin_layout LyX-Code
4731
4732 \backslash
4733 let
4734 \backslash
4735 savelabelitemi=
4736 \backslash
4737 labelitemi 
4738 \end_layout
4739
4740 \begin_layout LyX-Code
4741
4742 \backslash
4743 renewcommand
4744 \backslash
4745 labelitemi[0]{
4746 \backslash
4747 small
4748 \backslash
4749 (
4750 \backslash
4751 sharp
4752 \backslash
4753 )}
4754 \end_layout
4755
4756 \end_deeper
4757 \begin_layout Itemize
4758 Note that the itemize depth is specified in Roman numerals as part of the
4759  
4760 \family typewriter
4761
4762 \backslash
4763 labelitem
4764 \family default
4765  command.
4766 \end_layout
4767
4768 \begin_layout Itemize
4769 \begin_inset ERT
4770 status open
4771
4772 \begin_layout Plain Layout
4773
4774 [
4775 \backslash
4776 (
4777 \backslash
4778 star
4779 \backslash
4780 )]
4781 \end_layout
4782
4783 \end_inset
4784
4785  Specify each individual entry by starting each item with the bullet shape
4786  enclosed in square brackets and set as 
4787 \begin_inset Flex Noun
4788 status collapsed
4789
4790 \begin_layout Plain Layout
4791 \SpecialChar TeX
4792  Code
4793 \end_layout
4794
4795 \end_inset
4796
4797 .
4798  For example, this item was started with 
4799 \begin_inset Flex Code
4800 status collapsed
4801
4802 \begin_layout Plain Layout
4803 [
4804 \backslash
4805 (
4806 \backslash
4807 star
4808 \backslash
4809 )]
4810 \end_layout
4811
4812 \end_inset
4813
4814 .
4815 \end_layout
4816
4817 \begin_layout Plain Layout
4818 \begin_inset ERT
4819 status open
4820
4821 \begin_layout Plain Layout
4822
4823
4824 \backslash
4825 renewcommand
4826 \backslash
4827 labelitemi[0]{
4828 \backslash
4829 savelabelitemi}
4830 \end_layout
4831
4832 \end_inset
4833
4834
4835 \end_layout
4836
4837 \begin_layout Plain Layout
4838 You'll also need to revert the labelitem back to its previous setting for
4839  the global bullet shape settings to remain in effect.
4840  The way used here was:
4841 \end_layout
4842
4843 \begin_layout LyX-Code
4844
4845 \backslash
4846 renewcommand
4847 \backslash
4848 labelitemi[0]{
4849 \backslash
4850 savelabelitemi}
4851 \end_layout
4852
4853 \end_inset
4854
4855
4856 \end_layout
4857
4858 \begin_layout Chapter
4859 \SpecialChar LyX
4860  and the World Wide Web
4861 \end_layout
4862
4863 \begin_layout Standard
4864 \SpecialChar LyX
4865  has long supported the export of documents to various web-friendly formats,
4866  such as HTML.
4867  Before verson 2.0, however, HTML export was always accomplished by the use
4868  of external converters.
4869 \begin_inset Foot
4870 status collapsed
4871
4872 \begin_layout Plain Layout
4873 For details on the use of external converters with \SpecialChar LyX
4874 , see the 
4875 \emph on
4876 Converters
4877 \emph default
4878  section of the Customization manual.
4879 \end_layout
4880
4881 \end_inset
4882
4883  These fall into two large groups: there are converters that use \SpecialChar LaTeX
4884  as an
4885  intermediate format, such as 
4886 \begin_inset Flex Code
4887 status collapsed
4888
4889 \begin_layout Plain Layout
4890 htlatex
4891 \end_layout
4892
4893 \end_inset
4894
4895
4896 \begin_inset Flex Code
4897 status collapsed
4898
4899 \begin_layout Plain Layout
4900 html2latex
4901 \end_layout
4902
4903 \end_inset
4904
4905 , and 
4906 \begin_inset Flex Code
4907 status collapsed
4908
4909 \begin_layout Plain Layout
4910 plastex
4911 \end_layout
4912
4913 \end_inset
4914
4915 , relying upon \SpecialChar LyX
4916  to produce the \SpecialChar LaTeX
4917 ; and there is a converter that works directly
4918  on \SpecialChar LyX
4919  files, 
4920 \begin_inset Flex Code
4921 status collapsed
4922
4923 \begin_layout Plain Layout
4924 e\SpecialChar LyX
4925 er
4926 \end_layout
4927
4928 \end_inset
4929
4930 .
4931  All of these have different advantages and disadvantages.
4932  
4933 \end_layout
4934
4935 \begin_layout Standard
4936 The \SpecialChar LaTeX
4937 -based converters have the advantage that, in principle, they know everythin
4938 g about the exported document that \SpecialChar LaTeX
4939  does.
4940  Such converters do not care, for example, if a certain block of code was
4941  produced by \SpecialChar LyX
4942  or was Evil Red Text.
4943  These converters know about 
4944 \begin_inset Flex Code
4945 status collapsed
4946
4947 \begin_layout Plain Layout
4948 aux
4949 \end_layout
4950
4951 \end_inset
4952
4953  files, counters, and references, and can often make use of the 
4954 \begin_inset Flex Code
4955 status collapsed
4956
4957 \begin_layout Plain Layout
4958 bbl
4959 \end_layout
4960
4961 \end_inset
4962
4963  files generated by Bib\SpecialChar TeX
4964 .
4965  On the other hand, \SpecialChar LaTeX
4966  is a very hard language to parse—it is sometimes said
4967  that only \SpecialChar TeX
4968  itself understands \SpecialChar TeX
4969 —and \SpecialChar LaTeX
4970 -based converters will often choke on
4971  what seem to be quite simple constructs; complex ones can throw them completely
4972 , and as of this writing, for example, the 
4973 \emph on
4974 Embedded Objects
4975 \emph default
4976  manual will not export with 
4977 \begin_inset Flex Code
4978 status collapsed
4979
4980 \begin_layout Plain Layout
4981 htlatex
4982 \end_layout
4983
4984 \end_inset
4985
4986 , though the others will.
4987  The other issue concerns how math is handled.
4988  These converters typically convert the formulae into little pictures that
4989  are then linked from the HTML document.
4990  Since these are actually generated by \SpecialChar LaTeX
4991 , they are accurate.
4992  But they do not scale well, and just getting them to look as if they are
4993  actually meant to be in your document—so that the font sizes seem to be
4994  roughly the same—can be a challenge.
4995 \end_layout
4996
4997 \begin_layout Standard
4998 Alex Fernandez's 
4999 \begin_inset Flex Code
5000 status collapsed
5001
5002 \begin_layout Plain Layout
5003 e\SpecialChar LyX
5004 er
5005 \end_layout
5006
5007 \end_inset
5008
5009  (
5010 \begin_inset CommandInset href
5011 LatexCommand href
5012 name "http://elyxer.nongnu.org/"
5013 target "http://elyxer.nongnu.org/"
5014 literal "false"
5015
5016 \end_inset
5017
5018 ) solves some of these problems.
5019  In particular, the formulae it produces scale perfectly, since it renders
5020  math using a combination of HTML and CSS rather than converting the formulae
5021  to images.
5022  But even moderately complex formula are rendered less well than with 
5023 \begin_inset Flex Code
5024 status collapsed
5025
5026 \begin_layout Plain Layout
5027 htlatex
5028 \end_layout
5029
5030 \end_inset
5031
5032 ; this reflects the limitations of HTML.
5033 \begin_inset Foot
5034 status collapsed
5035
5036 \begin_layout Plain Layout
5037 That said, 
5038 \begin_inset Flex Code
5039 status collapsed
5040
5041 \begin_layout Plain Layout
5042 e\SpecialChar LyX
5043 er
5044 \end_layout
5045
5046 \end_inset
5047
5048  can also use jsMath and MathJax for equations, but this setting is only
5049  available globally and requires one to have access to a server that runs
5050  the backend.
5051 \end_layout
5052
5053 \end_inset
5054
5055  More importantly (as of version 1.1.1, at least), 
5056 \begin_inset Flex Code
5057 status collapsed
5058
5059 \begin_layout Plain Layout
5060 e\SpecialChar LyX
5061 er
5062 \end_layout
5063
5064 \end_inset
5065
5066  has limited support for math macros and no support for user-defined paragraph
5067  or character styles.
5068  These limitations make 
5069 \begin_inset Flex Code
5070 status collapsed
5071
5072 \begin_layout Plain Layout
5073 e\SpecialChar LyX
5074 er
5075 \end_layout
5076
5077 \end_inset
5078
5079  unsuitable for many of the documents \SpecialChar LyX
5080  users produce.
5081  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5082  developers
5083  have decided to follow a different path and have made \SpecialChar LyX
5084  itself capable of
5085  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5086 , DocBook, and plaintext.
5087 \end_layout
5088
5089 \begin_layout Standard
5090 As of this writing, XHTML output remains under development and should probably
5091  be regarded as 
5092 \begin_inset Quotes eld
5093 \end_inset
5094
5095 experimental
5096 \begin_inset Quotes erd
5097 \end_inset
5098
5099 .
5100 \begin_inset Foot
5101 status collapsed
5102
5103 \begin_layout Plain Layout
5104 The file 
5105 \begin_inset Flex Code
5106 status collapsed
5107
5108 \begin_layout Plain Layout
5109 development/HTML.notes
5110 \end_layout
5111
5112 \end_inset
5113
5114 , which can be found in the \SpecialChar LyX
5115  source tree or 
5116 \begin_inset CommandInset href
5117 LatexCommand href
5118 name "accessed online"
5119 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5120 literal "false"
5121
5122 \end_inset
5123
5124 , usually contains up-to-date information about the state of XHTML output.
5125  See also the list of XHTML bugs on 
5126 \begin_inset CommandInset href
5127 LatexCommand href
5128 name "the bug tracker"
5129 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"
5130 literal "false"
5131
5132 \end_inset
5133
5134 .
5135 \end_layout
5136
5137 \end_inset
5138
5139  Still, the developers have chosen this approach because it has several
5140  potential advantages over the other two.
5141 \end_layout
5142
5143 \begin_layout Standard
5144 These advantages are primarily due to the fact that the XHTML output routines,
5145  since they are part of \SpecialChar LyX
5146 , know everything \SpecialChar LyX
5147  knows about the document being
5148  exported.
5149 \begin_inset Foot
5150 status collapsed
5151
5152 \begin_layout Plain Layout
5153 Another advantage is that, since these routines are internal to \SpecialChar LyX
5154 , they are
5155  immune to changes in \SpecialChar LyX
5156 's file format, or to changes in the semantics of
5157  existing insets.
5158 \end_layout
5159
5160 \end_inset
5161
5162  So they know about the table of contents (as displayed in the outline),
5163  about the counters associated with different paragraph styles, and about
5164  user-defined styles.
5165  The XHTML output routines know what \SpecialChar LyX
5166  knows about internationalization,
5167  too, so they will output 
5168 \begin_inset Quotes eld
5169 \end_inset
5170
5171 Chapter 1
5172 \begin_inset Quotes erd
5173 \end_inset
5174
5175  or 
5176 \begin_inset Quotes eld
5177 \end_inset
5178
5179
5180 \lang ngerman
5181 Kapitel
5182 \lang english
5183  1
5184 \begin_inset Quotes erd
5185 \end_inset
5186
5187 , depending upon the language in effect at the time.
5188  
5189 \end_layout
5190
5191 \begin_layout Standard
5192 Quite generally, the output routines know what \SpecialChar LyX
5193  knows about document layout,
5194  that is, about how the document is to be rendered on screen.
5195  We use this information when we output the document as XHTML.
5196  In particular, \SpecialChar LyX
5197  
5198 \emph on
5199 automatically
5200 \emph default
5201  generates CSS style information corresponding to the layout information
5202  it uses to render the document on screen: if section headings are supposed
5203  to be sans-serif and bold as seen in \SpecialChar LyX
5204 , then (by default) they will be sans-seri
5205 f and bold when viewed in a web browser, too.
5206  And this is true not just for pre-defined styles, like Section, but for
5207  any style, including user-defined styles.
5208  Indeed, the XHTML output routines make no distinction between user-defined
5209  paragraph and character styles and \SpecialChar LyX
5210 's own pre-defined styles: in each case,
5211  everything \SpecialChar LyX
5212  knows about the styles is contained in the layout files.
5213  And much the same is true as regards pre-defined textual insets, such as
5214  footnotes, and various custom insets.
5215  
5216 \end_layout
5217
5218 \begin_layout Standard
5219 The result is that XHTML output can be customized and extended in exactly
5220  the same way \SpecialChar LaTeX
5221  output can be customized and extended: through layout files
5222  and modules.
5223  See chapter five of the 
5224 \emph on
5225 Customization 
5226 \emph default
5227 manual for the details.
5228 \end_layout
5229
5230 \begin_layout Standard
5231 The remainder of this chapter contains more detailed information on XHTML
5232  output, its limitations, and ways to work around those limitations.
5233 \end_layout
5234
5235 \begin_layout Section
5236 Math Output in XHTML
5237 \end_layout
5238
5239 \begin_layout Standard
5240 \SpecialChar LyX
5241  offers four choices for how math is rendered.
5242  These have various advantages and disadvantages:
5243 \end_layout
5244
5245 \begin_layout Itemize
5246 MathML
5247 \begin_inset Newline newline
5248 \end_inset
5249
5250 MathML is a dialect of XML designed specifically for mathematics on the
5251  web, and it typically renders very well in browsers that support it.
5252  The disadvantage is that not all browsers support MathML, and support is
5253  not complete even in the Gecko-based browsers, such as Firefox.
5254 \begin_inset Newline newline
5255 \end_inset
5256
5257 If \SpecialChar LyX
5258  is unable to render a formula as MathML—for example, if the formula
5259  uses the 
5260 \begin_inset Flex Code
5261 status collapsed
5262
5263 \begin_layout Plain Layout
5264 xymatrix
5265 \end_layout
5266
5267 \end_inset
5268
5269  package or ERT—then it will instead output the formula as an image.
5270  
5271 \end_layout
5272
5273 \begin_layout Itemize
5274 HTML
5275 \begin_inset Newline newline
5276 \end_inset
5277
5278 As mentioned above, 
5279 \begin_inset Flex Code
5280 status collapsed
5281
5282 \begin_layout Plain Layout
5283 elyxer
5284 \end_layout
5285
5286 \end_inset
5287
5288  outputs math as HTML, styled by CSS.
5289 \begin_inset Foot
5290 status collapsed
5291
5292 \begin_layout Plain Layout
5293 \SpecialChar LyX
5294  has borrowed some of the CSS for its HTML output from 
5295 \begin_inset Flex Code
5296 status collapsed
5297
5298 \begin_layout Plain Layout
5299 elyxer
5300 \end_layout
5301
5302 \end_inset
5303
5304 .
5305 \end_layout
5306
5307 \end_inset
5308
5309  For simple formulae, this can work quite well, though with more complicated
5310  formulae it tends to break down.
5311  Still, this method has the advantage that it is very widely supported and
5312  so it may be appropriate for documents that contain only a little, fairly
5313  simple math.
5314 \begin_inset Newline newline
5315 \end_inset
5316
5317 If Lyx is unable to render a formula as HTML—for example, if the formula
5318  uses the 
5319 \begin_inset Flex Code
5320 status collapsed
5321
5322 \begin_layout Plain Layout
5323 xymatrix
5324 \end_layout
5325
5326 \end_inset
5327
5328  package or ERT—then it will instead output the formula as an image.
5329  
5330 \end_layout
5331
5332 \begin_layout Itemize
5333 Images
5334 \begin_inset Newline newline
5335 \end_inset
5336
5337 Like 
5338 \begin_inset Flex Code
5339 status collapsed
5340
5341 \begin_layout Plain Layout
5342 htlatex
5343 \end_layout
5344
5345 \end_inset
5346
5347 , \SpecialChar LyX
5348  will output formulae as images, the very same images, in fact, that are
5349  used for instant preview.
5350 \begin_inset Foot
5351 status collapsed
5352
5353 \begin_layout Plain Layout
5354 Instant preview does 
5355 \emph on
5356 not 
5357 \emph default
5358 have to be on for images to be output, however.
5359 \end_layout
5360
5361 \end_inset
5362
5363  The advantage to this method is that the images are simply generated by
5364  \SpecialChar LaTeX
5365 , so they are very accurate.
5366  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5367  so they do not scale terribly well, and one cannot copy them, etc.
5368  (As of this writing, there are also problems about equation numbering.
5369  See 
5370 \begin_inset CommandInset href
5371 LatexCommand href
5372 name "bug 6894"
5373 target "http://www.lyx.org/trac/ticket/6894"
5374 literal "false"
5375
5376 \end_inset
5377
5378 .)
5379 \begin_inset Newline newline
5380 \end_inset
5381
5382 The size of the images can be controlled by setting the 
5383 \begin_inset Quotes eld
5384 \end_inset
5385
5386 Math Images Scaling
5387 \begin_inset Quotes erd
5388 \end_inset
5389
5390  parameter under 
5391 \begin_inset Flex Noun
5392 status collapsed
5393
5394 \begin_layout Plain Layout
5395 Document\SpecialChar menuseparator
5396 Settings\SpecialChar menuseparator
5397 Output
5398 \end_layout
5399
5400 \end_inset
5401
5402 .
5403 \begin_inset Foot
5404 status collapsed
5405
5406 \begin_layout Plain Layout
5407 For those who want to know, this controls the resolution of the image in
5408  dots per inch and is based upon a default of 75 dpi.
5409 \end_layout
5410
5411 \end_inset
5412
5413
5414 \begin_inset Newline newline
5415 \end_inset
5416
5417 If \SpecialChar LyX
5418  for some reason fails to create an image for a formula (e.g., if a required
5419  \SpecialChar LaTeX
5420  package is not installed), then it will fall back to outputing the raw
5421  \SpecialChar LaTeX
5422 .
5423 \end_layout
5424
5425 \begin_layout Itemize
5426 \SpecialChar LaTeX
5427
5428 \begin_inset Newline newline
5429 \end_inset
5430
5431 Finally, \SpecialChar LyX
5432  will happily output math as \SpecialChar LaTeX
5433 .
5434  As well as being the output of last resort, this method can be used with
5435  such tools as 
5436 \begin_inset CommandInset href
5437 LatexCommand href
5438 name "jsMath"
5439 target "http://www.math.union.edu/~dpvc/jsMath/"
5440 literal "false"
5441
5442 \end_inset
5443
5444 , which uses JavaScript to render \SpecialChar LaTeX
5445  embedded in HTML documents.
5446  \SpecialChar LyX
5447  wraps the \SpecialChar LaTeX
5448  in either a 
5449 \begin_inset Flex Code
5450 status collapsed
5451
5452 \begin_layout Plain Layout
5453 span
5454 \end_layout
5455
5456 \end_inset
5457
5458  (for inline formulas) or 
5459 \begin_inset Flex Code
5460 status collapsed
5461
5462 \begin_layout Plain Layout
5463 div
5464 \end_layout
5465
5466 \end_inset
5467
5468  (for displayed formulas) with 
5469 \begin_inset Flex Code
5470 status collapsed
5471
5472 \begin_layout Plain Layout
5473 class='math'
5474 \end_layout
5475
5476 \end_inset
5477
5478 , as is required for jsMath.
5479 \end_layout
5480
5481 \begin_layout Standard
5482 One of these output methods must be selected under 
5483 \begin_inset Flex Noun
5484 status collapsed
5485
5486 \begin_layout Plain Layout
5487 Document\SpecialChar menuseparator
5488 Settings\SpecialChar menuseparator
5489 Output
5490 \end_layout
5491
5492 \end_inset
5493
5494 .
5495  By default, \SpecialChar LyX
5496  outputs MathML.
5497  This is a document-wide setting, therefore.
5498 \end_layout
5499
5500 \begin_layout Standard
5501 Eventually, \SpecialChar LyX
5502  will offer the user the option to select an alternate output
5503  method for a particular inset, say, one that isn't being rendered very
5504  well by MathML.
5505 \begin_inset Foot
5506 status collapsed
5507
5508 \begin_layout Plain Layout
5509 That said, since \SpecialChar LyX
5510  falls back to images if the inset contains ERT, then one
5511  can force output as an image by putting some harmless ERT into the math,
5512  for example: 
5513 \begin_inset Formula $a=b\relax$
5514 \end_inset
5515
5516 .
5517 \end_layout
5518
5519 \end_inset
5520
5521
5522 \end_layout
5523
5524 \begin_layout Section
5525 Bibliography and Citations
5526 \end_layout
5527
5528 \begin_layout Standard
5529 XHTML output fully supports bibliographies and citations.
5530  
5531 \end_layout
5532
5533 \begin_layout Standard
5534 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5535 's on-screen
5536  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5537 , though
5538  better.
5539  If you are using numerical citations, then \SpecialChar LyX
5540  will output numerical labels,
5541  such as [1] or [17], rather than simply showing the citation key in square
5542  brackets, as it does on-screen.
5543  If you are using author-year citations, then \SpecialChar LyX
5544  will add lowercase letters
5545  to the years, just as Bib\SpecialChar TeX
5546  does, if it finds more than one citation for
5547  a given author-year combination.
5548  The labels will be printed with the bibliography entries.
5549  Note that there is, at present, no way to customize the appearance of the
5550  labels, for example, to choose between square brackets and parentheses.
5551 \end_layout
5552
5553 \begin_layout Standard
5554 Bibliography output is handled by the same machinery that handles the presentati
5555 on of reference information in the citation dialog, so you will see in the
5556  XHTML output pretty much what you would see if you were to look at a given
5557  entry in the citation dialog.
5558  The formatting can be customized in your layout file or, preferably, in
5559  a module.
5560  See the 
5561 \emph on
5562 Customization
5563 \emph default
5564  manual for the details.
5565 \end_layout
5566
5567 \begin_layout Standard
5568 The main defect at present is that cross-referenced information is printed
5569  with every entry with which it is associated.
5570  So you can see things like this:
5571 \end_layout
5572
5573 \begin_layout Quote
5574 Jason Stanley, 
5575 \begin_inset Quotes eld
5576 \end_inset
5577
5578 Context and Logical Form
5579 \begin_inset Quotes erd
5580 \end_inset
5581
5582 , in 
5583 \emph on
5584 Language in Context: Selected Essays
5585 \emph default
5586  (Oxford: Oxford University Press, 2007), pp.
5587  30–68.
5588 \end_layout
5589
5590 \begin_layout Quote
5591 Jason Stanley, 
5592 \begin_inset Quotes eld
5593 \end_inset
5594
5595 Semantics in Context
5596 \begin_inset Quotes erd
5597 \end_inset
5598
5599 , in 
5600 \emph on
5601 Language in Context: Selected Essays
5602 \emph default
5603  (Oxford: Oxford University Press, 2007), pp.
5604  201–30.
5605 \end_layout
5606
5607 \begin_layout Standard
5608 This should be fixed before long.
5609 \end_layout
5610
5611 \begin_layout Standard
5612 There is no support at present for sectioned bibliographies.
5613  If you have multiple bibliographies, then \SpecialChar LyX
5614  will print the same bibliography
5615  over and over.
5616 \end_layout
5617
5618 \begin_layout Section
5619 Indexes
5620 \end_layout
5621
5622 \begin_layout Standard
5623 \SpecialChar LyX
5624  will happily export indexes as XHTML, but with certain limitations at the
5625  moment.
5626 \end_layout
5627
5628 \begin_layout Standard
5629 Index export will be most reliable when you do not attempt to use the fancy
5630  constructs that are described in the section on indexes in the 
5631 \emph on
5632 User's Guide
5633 \emph default
5634 .
5635 \begin_inset Foot
5636 status collapsed
5637
5638 \begin_layout Plain Layout
5639 The main issue here is that \SpecialChar LyX
5640  itself does not really handle these.
5641  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5642 .
5643 \end_layout
5644
5645 \end_inset
5646
5647  We'll describe how they are handled using the subsection headings from
5648  that section.
5649 \end_layout
5650
5651 \begin_layout Itemize
5652 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5653  makes an effort to support these,
5654  but the entries must be separated by 
5655 \begin_inset Quotes eld
5656 \end_inset
5657
5658  ! 
5659 \begin_inset Quotes erd
5660 \end_inset
5661
5662 , that is, there must be spaces around the exclamation point.
5663  This is because it is otherwise too difficult to check for escaped exclamation
5664  points, ones in math, and so forth.
5665 \end_layout
5666
5667 \begin_layout Itemize
5668 Page Ranges: There is no support at all for page ranges, since these make
5669  no sense with XHMTL.
5670  Instead, you will just get two index entries, one at either end.
5671 \end_layout
5672
5673 \begin_layout Itemize
5674 Cross-referencing: There is no support for cross-referencing.
5675  If \SpecialChar LyX
5676  finds an entry containing the 
5677 \begin_inset Quotes eld
5678 \end_inset
5679
5680 |see\SpecialChar ldots
5681
5682 \begin_inset Quotes erd
5683 \end_inset
5684
5685  construct, it is just dropped, and the rest is treated as an ordinary index
5686  entry.
5687 \end_layout
5688
5689 \begin_layout Itemize
5690 Index Entry Order: \SpecialChar LyX
5691  does support attempts to fix the sorting order.
5692  It will take what is before the first `@' it finds and use that for sorting,
5693  taking what follows the first `@' to be the actual entry.
5694  At present, \SpecialChar LyX
5695  does not check for escaped `@', so do not try to index email
5696  addresses.
5697 \end_layout
5698
5699 \begin_layout Itemize
5700 Index Entry Layout: You can format entries by using the text style dialog,
5701  or by using any other method available within \SpecialChar LyX
5702  itself.
5703  There is no support for constructs like: 
5704 \begin_inset Quotes eld
5705 \end_inset
5706
5707 entry|textbf
5708 \begin_inset Quotes erd
5709 \end_inset
5710
5711 .
5712  Indeed, if \SpecialChar LyX
5713  finds a pipe symbol, `|', in an entry, it will delete it and
5714  everything that follows it.
5715 \end_layout
5716
5717 \begin_layout Itemize
5718 Multiple Indexes: There is no support for multiple indexes.
5719  Rather, all index entries will be printed as one large index.
5720  To avoid our printing several versions of the index, we print only the
5721  main index, so make sure you have one.
5722 \end_layout
5723
5724 \begin_layout Section
5725 Nomenclature and Glossary
5726 \end_layout
5727
5728 \begin_layout Standard
5729 There is at present no support for glossaries.
5730  Adding it would be fairly trivial, and welcome.
5731 \end_layout
5732
5733 \begin_layout Chapter
5734 The \SpecialChar LyX
5735  Server
5736 \end_layout
5737
5738 \begin_layout Section
5739 Introduction
5740 \end_layout
5741
5742 \begin_layout Standard
5743 The `\SpecialChar LyX
5744  server' allows other programs to talk to \SpecialChar LyX
5745 , invoke \SpecialChar LyX
5746  commands, and retrieve
5747  information about the \SpecialChar LyX
5748  internal state.
5749  This is only intended for advanced users, but they should find it useful.
5750  It is by writing to the \SpecialChar LyX
5751  server, for example, that bibliography managers,
5752  such as JabRef, are able to 
5753 \begin_inset Quotes eld
5754 \end_inset
5755
5756 push
5757 \begin_inset Quotes erd
5758 \end_inset
5759
5760  citations to \SpecialChar LyX
5761 .
5762 \end_layout
5763
5764 \begin_layout Section
5765 Starting the \SpecialChar LyX
5766  Server
5767 \end_layout
5768
5769 \begin_layout Standard
5770 The \SpecialChar LyX
5771  server works through the use of a pair of named pipes.
5772  These are usually located in 
5773 \begin_inset Flex Code
5774 status collapsed
5775
5776 \begin_layout Plain Layout
5777 UserDir
5778 \end_layout
5779
5780 \end_inset
5781
5782 , (except on Windows, where 
5783 \emph on
5784 local
5785 \emph default
5786  named pipes are special objects located in 
5787 \begin_inset Flex Code
5788 status collapsed
5789
5790 \begin_layout Plain Layout
5791
5792 \backslash
5793
5794 \backslash
5795 .
5796 \backslash
5797 pipe
5798 \end_layout
5799
5800 \end_inset
5801
5802 ) and have the names 
5803 \begin_inset Quotes eld
5804 \end_inset
5805
5806
5807 \begin_inset Flex Code
5808 status collapsed
5809
5810 \begin_layout Plain Layout
5811 lyxpipe.in
5812 \end_layout
5813
5814 \end_inset
5815
5816
5817 \begin_inset Quotes erd
5818 \end_inset
5819
5820  and 
5821 \begin_inset Quotes eld
5822 \end_inset
5823
5824
5825 \begin_inset Flex Code
5826 status collapsed
5827
5828 \begin_layout Plain Layout
5829 lyxpipe.out
5830 \end_layout
5831
5832 \end_inset
5833
5834
5835 \begin_inset Quotes erd
5836 \end_inset
5837
5838 .
5839  External programs write into 
5840 \begin_inset Flex Code
5841 status collapsed
5842
5843 \begin_layout Plain Layout
5844 lyxpipe.in
5845 \end_layout
5846
5847 \end_inset
5848
5849  and read back data from 
5850 \begin_inset Flex Code
5851 status collapsed
5852
5853 \begin_layout Plain Layout
5854 lyxpipe.out
5855 \end_layout
5856
5857 \end_inset
5858
5859 .
5860  The stem of the pipe names can be defined in the 
5861 \begin_inset Flex Noun
5862 status collapsed
5863
5864 \begin_layout Plain Layout
5865 Tools\SpecialChar menuseparator
5866 Preferences
5867 \end_layout
5868
5869 \end_inset
5870
5871  dialog, for example 
5872 \begin_inset Flex Code
5873 status collapsed
5874
5875 \begin_layout Plain Layout
5876 "/home/myhome/lyxpipe"
5877 \end_layout
5878
5879 \end_inset
5880
5881 , or 
5882 \begin_inset Flex Code
5883 status collapsed
5884
5885 \begin_layout Plain Layout
5886 "
5887 \backslash
5888
5889 \backslash
5890 .
5891 \backslash
5892 pipe
5893 \backslash
5894 lyxpipe"
5895 \end_layout
5896
5897 \end_inset
5898
5899  on Windows (where any working path instead of lyxpipe can be used, for
5900  example 
5901 \begin_inset Flex Code
5902 status collapsed
5903
5904 \begin_layout Plain Layout
5905 "
5906 \backslash
5907
5908 \backslash
5909 .
5910 \backslash
5911 pipe
5912 \backslash
5913 my
5914 \backslash
5915 lyx
5916 \backslash
5917 pipe"
5918 \end_layout
5919
5920 \end_inset
5921
5922  would also work).
5923  You 
5924 \emph on
5925 must
5926 \emph default
5927  configure this manually in order for the server to start.
5928 \end_layout
5929
5930 \begin_layout Standard
5931 \SpecialChar LyX
5932  will add the '
5933 \begin_inset Flex Code
5934 status collapsed
5935
5936 \begin_layout Plain Layout
5937 .in
5938 \end_layout
5939
5940 \end_inset
5941
5942 ' and '
5943 \begin_inset Flex Code
5944 status collapsed
5945
5946 \begin_layout Plain Layout
5947 .out
5948 \end_layout
5949
5950 \end_inset
5951
5952 ' to create the pipes.
5953  If one of the pipes already exists, \SpecialChar LyX
5954  will assume that another \SpecialChar LyX
5955  process
5956  is already running and will not start the server.
5957  On POSIX (Unix like) systems, if for some other reason, an unused 
5958 \begin_inset Quotes eld
5959 \end_inset
5960
5961 stale
5962 \begin_inset Quotes erd
5963 \end_inset
5964
5965  pipe is left in existence when \SpecialChar LyX
5966  closes, then \SpecialChar LyX
5967  will try to delete it.
5968  If this fails for some reason, you will need to delete the pipes manually
5969  and then restart \SpecialChar LyX
5970 .
5971  On Windows, pipes are deleted by the OS on program termination or crash,
5972  so 
5973 \begin_inset Quotes eld
5974 \end_inset
5975
5976 stale
5977 \begin_inset Quotes erd
5978 \end_inset
5979
5980  pipes should not be possible.
5981 \end_layout
5982
5983 \begin_layout Standard
5984 To have several \SpecialChar LyX
5985  processes with servers at the same time, you have to use
5986  different configurations, perhaps by using separate user directories, each
5987  with its own 
5988 \begin_inset Flex Code
5989 status collapsed
5990
5991 \begin_layout Plain Layout
5992 preferences
5993 \end_layout
5994
5995 \end_inset
5996
5997  file, for each process.
5998 \end_layout
5999
6000 \begin_layout Standard
6001 If you are developing a client program, you might find it useful to enable
6002  debugging information from the \SpecialChar LyX
6003  server.
6004  Do this by starting \SpecialChar LyX
6005  as 
6006 \begin_inset Flex Code
6007 status collapsed
6008
6009 \begin_layout Plain Layout
6010 lyx -dbg lyxserver
6011 \end_layout
6012
6013 \end_inset
6014
6015 .
6016 \end_layout
6017
6018 \begin_layout Standard
6019 You can find a complete example client written in C++ in the source distribution
6020  as 
6021 \begin_inset Flex Code
6022 status collapsed
6023
6024 \begin_layout Plain Layout
6025 development/lyxserver/server_monitor.cpp
6026 \end_layout
6027
6028 \end_inset
6029
6030 .
6031 \end_layout
6032
6033 \begin_layout Standard
6034 Another useful tool is the command-line based client found in 
6035 \begin_inset Flex Code
6036 status collapsed
6037
6038 \begin_layout Plain Layout
6039 src/client/lyxclient
6040 \end_layout
6041
6042 \end_inset
6043
6044 .
6045 \end_layout
6046
6047 \begin_layout Section
6048 Normal communication
6049 \end_layout
6050
6051 \begin_layout Standard
6052 To issue a \SpecialChar LyX
6053  call, the client writes a line of ASCII text into the input
6054  pipe.
6055  This line has the following format:
6056 \end_layout
6057
6058 \begin_layout Quote
6059 LYXCMD:
6060 \emph on
6061 clientname
6062 \emph default
6063 :
6064 \emph on
6065 function
6066 \emph default
6067 :
6068 \emph on
6069 argument
6070 \end_layout
6071
6072 \begin_layout Description
6073 clientname is a name that the client can choose arbitrarily.
6074  Its only use is that \SpecialChar LyX
6075  will echo it if it sends an answer—so a client can
6076  dispatch results from different requesters.
6077 \end_layout
6078
6079 \begin_layout Description
6080 function is the function you want \SpecialChar LyX
6081  to perform.
6082  It is the same as the commands you'd use in the minibuffer.
6083 \end_layout
6084
6085 \begin_layout Description
6086 argument is an optional argument which is meaningful only to some functions
6087  (for instance, the 
6088 \begin_inset Quotes eld
6089 \end_inset
6090
6091 self-insert
6092 \begin_inset Quotes erd
6093 \end_inset
6094
6095  LFUN will insert the argument as text at the cursor position).
6096 \end_layout
6097
6098 \begin_layout Standard
6099 The answer from \SpecialChar LyX
6100  will arrive in the output pipe and be of the form
6101 \end_layout
6102
6103 \begin_layout Quote
6104 INFO:
6105 \emph on
6106 clientname
6107 \emph default
6108 :
6109 \emph on
6110 function
6111 \emph default
6112 :
6113 \emph on
6114 data
6115 \end_layout
6116
6117 \begin_layout Standard
6118 where 
6119 \emph on
6120 clientname
6121 \emph default
6122  and 
6123 \emph on
6124 function
6125 \emph default
6126  are just echoed from the command request, while 
6127 \emph on
6128 data
6129 \emph default
6130  is more or less useful information filled according to how the command
6131  execution worked out.
6132  Some commands, such as 
6133 \begin_inset Quotes eld
6134 \end_inset
6135
6136 font-state
6137 \begin_inset Quotes erd
6138 \end_inset
6139
6140 , will return information about the internal state of \SpecialChar LyX
6141 , while other will
6142  return an empty data-response.
6143  This means that the command execution went fine.
6144 \end_layout
6145
6146 \begin_layout Standard
6147 In case of errors, the response from \SpecialChar LyX
6148  will have this form
6149 \end_layout
6150
6151 \begin_layout Quote
6152 ERROR:
6153 \emph on
6154 clientname
6155 \emph default
6156 :
6157 \emph on
6158 function
6159 \emph default
6160 :
6161 \emph on
6162 error message
6163 \end_layout
6164
6165 \begin_layout Standard
6166 where the 
6167 \emph on
6168 error message
6169 \emph default
6170  should contain an explanation of why the command failed.
6171 \end_layout
6172
6173 \begin_layout Standard
6174 Examples:
6175 \end_layout
6176
6177 \begin_layout LyX-Code
6178 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6179 \begin_inset Newline newline
6180 \end_inset
6181
6182 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6183 \begin_inset Newline newline
6184 \end_inset
6185
6186 read a <~/.lyxpipe.out
6187 \begin_inset Newline newline
6188 \end_inset
6189
6190 echo $a
6191 \end_layout
6192
6193 \begin_layout Subsection
6194 AppleScript (Mac OS X)
6195 \end_layout
6196
6197 \begin_layout Standard
6198 Since \SpecialChar LyX
6199  2.1, \SpecialChar LyX
6200  supports basic interactions with AppleScript for normal communicatio
6201 n through the command run.
6202  This command takes a direct argument (the 
6203 \series bold
6204 function
6205 \series default
6206  to perform) and an optional argument.
6207  It either returns the output of the function or triggers an error with
6208  the error message and code.
6209 \end_layout
6210
6211 \begin_layout Standard
6212 Example:
6213 \end_layout
6214
6215 \begin_layout LyX-Code
6216 tell application "\SpecialChar LyX
6217 "
6218 \end_layout
6219
6220 \begin_layout LyX-Code
6221   try
6222 \end_layout
6223
6224 \begin_layout LyX-Code
6225     -- Stores the current file name into f
6226 \end_layout
6227
6228 \begin_layout LyX-Code
6229     set f to (run "server-get-filename" with argument "")
6230 \end_layout
6231
6232 \begin_layout LyX-Code
6233     on error the error_message number the error_number
6234 \end_layout
6235
6236 \begin_layout LyX-Code
6237       display dialog "Error: " & the error_number & ".
6238  " ¬
6239 \end_layout
6240
6241 \begin_layout LyX-Code
6242               & the error_message buttons {"OK"} default button 1
6243 \end_layout
6244
6245 \begin_layout LyX-Code
6246   end try
6247 \end_layout
6248
6249 \begin_layout LyX-Code
6250 end tell
6251 \end_layout
6252
6253 \begin_layout Section
6254 Notification
6255 \end_layout
6256
6257 \begin_layout Standard
6258 \SpecialChar LyX
6259  can notify clients of events going on asynchronously.
6260  Currently it will only do this if the user binds a key sequence with the
6261  function 
6262 \begin_inset Quotes eld
6263 \end_inset
6264
6265 notify
6266 \begin_inset Quotes erd
6267 \end_inset
6268
6269 .
6270  The format of the string \SpecialChar LyX
6271  sends is as follows:
6272 \end_layout
6273
6274 \begin_layout Quote
6275 \begin_inset Flex Code
6276 status collapsed
6277
6278 \begin_layout Plain Layout
6279 NOTIFY:
6280 \end_layout
6281
6282 \end_inset
6283
6284
6285 \emph on
6286 key-sequence
6287 \end_layout
6288
6289 \begin_layout Standard
6290 where 
6291 \emph on
6292 key-sequence
6293 \emph default
6294  is the printed representation of the key sequence that was actually typed
6295  by the user.
6296 \end_layout
6297
6298 \begin_layout Standard
6299 This mechanism can be used to extend \SpecialChar LyX
6300 's command set and implement macros.
6301  Bind some key sequence to 
6302 \begin_inset Quotes eld
6303 \end_inset
6304
6305 notify
6306 \begin_inset Quotes erd
6307 \end_inset
6308
6309 .
6310  Then start a client that listens on the output pipe, dispatches the command
6311  according to the sequence, and starts a function that may use \SpecialChar LyX
6312  calls and
6313  \SpecialChar LyX
6314  requests to issue a command or a series of commands to \SpecialChar LyX
6315 .
6316 \end_layout
6317
6318 \begin_layout Section
6319 The simple \SpecialChar LyX
6320  Server Protocol
6321 \end_layout
6322
6323 \begin_layout Standard
6324 \SpecialChar LyX
6325  implements a simple protocol that can be used for session management.
6326  All messages are of the form
6327 \end_layout
6328
6329 \begin_layout Quote
6330 LYXSRV:
6331 \emph on
6332 clientname
6333 \emph default
6334 :
6335 \emph on
6336 protocol message
6337 \end_layout
6338
6339 \begin_layout Standard
6340 where 
6341 \emph on
6342 protocol message
6343 \emph default
6344  can be 
6345 \begin_inset Quotes eld
6346 \end_inset
6347
6348 hello
6349 \begin_inset Quotes erd
6350 \end_inset
6351
6352  or 
6353 \begin_inset Quotes eld
6354 \end_inset
6355
6356 bye
6357 \begin_inset Quotes erd
6358 \end_inset
6359
6360 .
6361  If 
6362 \begin_inset Quotes eld
6363 \end_inset
6364
6365 hello
6366 \begin_inset Quotes erd
6367 \end_inset
6368
6369  is received from a client, \SpecialChar LyX
6370  will report back to inform the client that
6371  it's listening to it's messages, while 
6372 \begin_inset Quotes eld
6373 \end_inset
6374
6375 bye
6376 \begin_inset Quotes erd
6377 \end_inset
6378
6379  sent from \SpecialChar LyX
6380  will inform clients that \SpecialChar LyX
6381  is closing.
6382 \end_layout
6383
6384 \begin_layout Section
6385 Reverse DVI/PDF search
6386 \end_layout
6387
6388 \begin_layout Standard
6389 Some DVI/PDF viewers
6390 \begin_inset Foot
6391 status collapsed
6392
6393 \begin_layout Plain Layout
6394 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6395  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6396 \end_layout
6397
6398 \end_inset
6399
6400  provide 
6401 \emph on
6402 reverse search
6403 \emph default
6404  facility (also called 
6405 \emph on
6406 inverse search
6407 \emph default
6408 ).
6409  This means that you can tell \SpecialChar LyX
6410  to put the cursor to a specific line in the
6411  document by clicking at the respective position in the DVI/PDF output.
6412  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6413 .
6414  This is done via the \SpecialChar LyX
6415  server either by using the named pipe (
6416 \emph on
6417 lyxpipe
6418 \emph default
6419 ), or the UNIX domain socket (
6420 \emph on
6421 lyxsocket
6422 \emph default
6423 ) that \SpecialChar LyX
6424  creates in its temporary directory (this is the way the 
6425 \begin_inset Flex Code
6426 status collapsed
6427
6428 \begin_layout Plain Layout
6429 lyxclient
6430 \end_layout
6431
6432 \end_inset
6433
6434  program communicates with \SpecialChar LyX
6435 ).
6436  In some cases, you need a helper script that mediates between the viewer
6437  and \SpecialChar LyX
6438 , in others, the viewer can communicate with \SpecialChar LyX
6439  directly.
6440  This depends on the selected viewer and on your operating system.
6441  The same applies to the way viewers need to be configured and the way the
6442  reverse search is actually performed.
6443  In what follows, we will thus describe how to setup reverse search for
6444  specific viewers.
6445  Before we turn to this, though, we will explain what needs to be done generally
6446  to enable reverse search in the DVI/PDF output.
6447 \end_layout
6448
6449 \begin_layout Subsection
6450 Automatic setup
6451 \begin_inset CommandInset label
6452 LatexCommand label
6453 name "subsec:rev-search"
6454
6455 \end_inset
6456
6457
6458 \end_layout
6459
6460 \begin_layout Standard
6461 In most cases \SpecialChar LyX
6462  will do the work for you by enabling the option 
6463 \begin_inset Flex Noun
6464 status collapsed
6465
6466 \begin_layout Plain Layout
6467 Synchronize with Output
6468 \end_layout
6469
6470 \end_inset
6471
6472  in the menu 
6473 \begin_inset Flex Noun
6474 status collapsed
6475
6476 \begin_layout Plain Layout
6477 Document\SpecialChar menuseparator
6478 Settings\SpecialChar menuseparator
6479 Output
6480 \end_layout
6481
6482 \end_inset
6483
6484 .
6485  In such a case \SpecialChar LyX
6486  will automatically insert the necessary Sync\SpecialChar TeX
6487  macro (for
6488  PDF) or load the srcltx package (for DVI) respectively.
6489  This option can be easily reached also on 
6490 \begin_inset Flex Code
6491 status collapsed
6492
6493 \begin_layout Plain Layout
6494 View/Update
6495 \end_layout
6496
6497 \end_inset
6498
6499  Toolbar.
6500 \end_layout
6501
6502 \begin_layout Standard
6503 If you need a different setting, you can select or input a custom macro
6504  from the drop down box just below 
6505 \begin_inset Flex Noun
6506 status collapsed
6507
6508 \begin_layout Plain Layout
6509 Document\SpecialChar menuseparator
6510 Settings\SpecialChar menuseparator
6511 Output\SpecialChar menuseparator
6512 Synchronize with Output
6513 \end_layout
6514
6515 \end_inset
6516
6517 .
6518 \end_layout
6519
6520 \begin_layout Standard
6521 Note that the method 
6522 \begin_inset Flex Code
6523 status collapsed
6524
6525 \begin_layout Plain Layout
6526
6527 \backslash
6528 synctex=1
6529 \end_layout
6530
6531 \end_inset
6532
6533  enables gzip compression.
6534  If your viewer does not support it, you should instead use 
6535 \begin_inset Flex Code
6536 status collapsed
6537
6538 \begin_layout Plain Layout
6539
6540 \backslash
6541 synctex=-1
6542 \end_layout
6543
6544 \end_inset
6545
6546 .
6547 \end_layout
6548
6549 \begin_layout Standard
6550 Please also note that including the 
6551 \begin_inset Flex Code
6552 status collapsed
6553
6554 \begin_layout Plain Layout
6555 srcltx
6556 \end_layout
6557
6558 \end_inset
6559
6560  package or 
6561 \begin_inset Flex Code
6562 status collapsed
6563
6564 \begin_layout Plain Layout
6565 src-specials
6566 \end_layout
6567
6568 \end_inset
6569
6570  sometimes has an undesired impact on the typesetting.
6571  Thus, you should switch output synchronization off for the final typesetting
6572  if you use the 
6573 \begin_inset Flex Code
6574 status collapsed
6575
6576 \begin_layout Plain Layout
6577 srcltx
6578 \end_layout
6579
6580 \end_inset
6581
6582  package or 
6583 \begin_inset Flex Code
6584 status collapsed
6585
6586 \begin_layout Plain Layout
6587 src-specials
6588 \end_layout
6589
6590 \end_inset
6591
6592 .
6593  
6594 \end_layout
6595
6596 \begin_layout Standard
6597 In case you need some more special settings that are not covered by the
6598  automatic settings, read the next section about how to set up output synchroniz
6599 ation manually.
6600  If the automatic setup suits your needs, you can readily jump to section
6601 \begin_inset space ~
6602 \end_inset
6603
6604
6605 \begin_inset CommandInset ref
6606 LatexCommand ref
6607 reference "subsec:configuring-viewers"
6608
6609 \end_inset
6610
6611 , where the necessary configuration steps in your viewer – needed both with
6612  the automatic and the manual setup – are described.
6613 \end_layout
6614
6615 \begin_layout Subsection
6616 Manual setup
6617 \end_layout
6618
6619 \begin_layout Standard
6620 \SpecialChar LaTeX
6621  provides several different methods for reverse search.
6622  Some are built-in in the 
6623 \begin_inset Flex Code
6624 status collapsed
6625
6626 \begin_layout Plain Layout
6627 latex/pdflatex
6628 \end_layout
6629
6630 \end_inset
6631
6632  program, some are provided by external packages.
6633  Your choice depends on whether your \SpecialChar LaTeX
6634  distribution already provides a given
6635  method (the built-in methods are rather new) and whether your viewer can
6636  cope with it.
6637  The available methods are described in the following.
6638 \end_layout
6639
6640 \begin_layout Subsubsection*
6641 Built-in DVI-search via src-specials (DVI only) 
6642 \end_layout
6643
6644 \begin_layout Standard
6645 This method provides the DVI file with the necessary information for reverse
6646  search.
6647  It is available in \SpecialChar LaTeX
6648  since quite some time (any somewhat recent \SpecialChar LaTeX
6649  distribution
6650  should include it), and it works reliably.
6651  To enable it, change the 
6652 \begin_inset Flex Noun
6653 status collapsed
6654
6655 \begin_layout Plain Layout
6656 La
6657 \family sans
6658 TeX
6659 \family default
6660  (plain)->DVI
6661 \end_layout
6662
6663 \end_inset
6664
6665  or 
6666 \begin_inset Flex Noun
6667 status collapsed
6668
6669 \begin_layout Plain Layout
6670 La
6671 \family sans
6672 TeX
6673 \family default
6674  (plain)->DraftDVI
6675 \end_layout
6676
6677 \end_inset
6678
6679  converter in 
6680 \begin_inset Flex Noun
6681 status collapsed
6682
6683 \begin_layout Plain Layout
6684 Preferences\SpecialChar menuseparator
6685 File Handling\SpecialChar menuseparator
6686 Converters
6687 \end_layout
6688
6689 \end_inset
6690
6691  to 
6692 \begin_inset Flex Code
6693 status collapsed
6694
6695 \begin_layout Plain Layout
6696 latex -src-specials $$i
6697 \end_layout
6698
6699 \end_inset
6700
6701 .
6702  If this doesn't work, check if your \SpecialChar TeX
6703  engine needs different options (the
6704  syntax might differ in some distributions).
6705 \end_layout
6706
6707 \begin_layout Subsubsection*
6708 External Packages (PDFSync and scrltx) 
6709 \end_layout
6710
6711 \begin_layout Standard
6712 The packages 
6713 \emph on
6714 pdfsync
6715 \emph default
6716  and 
6717 \emph on
6718 scrltx
6719 \emph default
6720  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6721  respectively.
6722  In order to enable it, load the packages in the \SpecialChar LyX
6723  preamble: 
6724 \end_layout
6725
6726 \begin_layout Itemize
6727 \begin_inset Flex Code
6728 status collapsed
6729
6730 \begin_layout Plain Layout
6731
6732 \backslash
6733 usepackage{pdfsync}
6734 \end_layout
6735
6736 \end_inset
6737
6738  for reverse PDF search,
6739 \end_layout
6740
6741 \begin_layout Itemize
6742 \begin_inset Flex Code
6743 status collapsed
6744
6745 \begin_layout Plain Layout
6746
6747 \backslash
6748 usepackage[active]{srcltx}
6749 \end_layout
6750
6751 \end_inset
6752
6753  for reverse DVI search.
6754 \end_layout
6755
6756 \begin_layout Standard
6757 If you want to be able to perform both DVI and PDF reverse searches, you
6758  can also insert in the preamble the following lines
6759 \end_layout
6760
6761 \begin_layout LyX-Code
6762
6763 \backslash
6764 usepackage{ifpdf}
6765 \begin_inset Newline newline
6766 \end_inset
6767
6768
6769 \backslash
6770 ifpdf
6771 \begin_inset Newline newline
6772 \end_inset
6773
6774   
6775 \backslash
6776 usepackage{pdfsync}
6777 \begin_inset Newline newline
6778 \end_inset
6779
6780
6781 \backslash
6782 else
6783 \begin_inset Newline newline
6784 \end_inset
6785
6786   
6787 \backslash
6788 usepackage[active]{srcltx}
6789 \begin_inset Newline newline
6790 \end_inset
6791
6792
6793 \backslash
6794 fi
6795 \end_layout
6796
6797 \begin_layout Standard
6798 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6799  right package will be used.
6800 \end_layout
6801
6802 \begin_layout Standard
6803 Note that PDFSync might affect the output layout of your document.
6804  It is therefore advised to disable PDFsync for final documents.
6805 \end_layout
6806
6807 \begin_layout Subsubsection*
6808 Built-in reverse search via Sync\SpecialChar TeX
6809  (DVI and PDF) 
6810 \end_layout
6811
6812 \begin_layout Standard
6813 Recent versions of 
6814 \begin_inset Flex Code
6815 status collapsed
6816
6817 \begin_layout Plain Layout
6818 (pdf)latex
6819 \end_layout
6820
6821 \end_inset
6822
6823  have built-in support for both PDF and DVI reverse search.
6824  This so-called 
6825 \emph on
6826 Sync\SpecialChar TeX
6827
6828 \emph default
6829  facility is basically the result of the integration of the PDFSync package
6830  to the pdftex program and its merge with the 
6831 \emph on
6832 scr-specials
6833 \emph default
6834  approach.
6835  You need at least \SpecialChar TeX
6836 Live 2008 or a recent Mik\SpecialChar TeX
6837  distribution in order to use
6838  it.
6839 \begin_inset Foot
6840 status collapsed
6841
6842 \begin_layout Plain Layout
6843 For some reason, Mik\SpecialChar TeX
6844  does not understand/obey the command \SpecialChar LyX
6845  inserts into
6846  the preamble when you check the "Enable Forward/Reverse Search" button
6847  in the toolbar and does not generate the necessary info.
6848 \end_layout
6849
6850 \begin_layout Plain Layout
6851 The generation of the required info can be forced by changing the converter
6852  "\SpecialChar LaTeX
6853  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
6854  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
6855  the -synctex=1 switch).
6856 \end_layout
6857
6858 \end_inset
6859
6860  Also note that only a few PDF viewers (Okular and Qpdfview on Unix, Skim
6861  on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
6862  support.
6863 \end_layout
6864
6865 \begin_layout Standard
6866 To enable Sync\SpecialChar TeX
6867  for DVI output, change the 
6868 \begin_inset Flex Noun
6869 status collapsed
6870
6871 \begin_layout Plain Layout
6872 La
6873 \family sans
6874 TeX
6875 \family default
6876  (plain) -> DVI
6877 \end_layout
6878
6879 \end_inset
6880
6881  or 
6882 \begin_inset Flex Noun
6883 status collapsed
6884
6885 \begin_layout Plain Layout
6886 La
6887 \family sans
6888 TeX
6889 \family default
6890  (plain) -> DraftDVI
6891 \end_layout
6892
6893 \end_inset
6894
6895  converter in 
6896 \begin_inset Flex Noun
6897 status collapsed
6898
6899 \begin_layout Plain Layout
6900 Preferences\SpecialChar menuseparator
6901 File Handling\SpecialChar menuseparator
6902 Converters
6903 \end_layout
6904
6905 \end_inset
6906
6907  to 
6908 \begin_inset Flex Code
6909 status collapsed
6910
6911 \begin_layout Plain Layout
6912 latex -synctex=1 $$i
6913 \end_layout
6914
6915 \end_inset
6916
6917 , and for PDF output, change the 
6918 \begin_inset Flex Noun
6919 status collapsed
6920
6921 \begin_layout Plain Layout
6922 La
6923 \family sans
6924 TeX
6925 \family default
6926  (pdflatex) -> PDF (pdflatex)
6927 \end_layout
6928
6929 \end_inset
6930
6931  or converter to 
6932 \begin_inset Flex Code
6933 status collapsed
6934
6935 \begin_layout Plain Layout
6936 pdflatex -synctex=1 $$i
6937 \end_layout
6938
6939 \end_inset
6940
6941 .
6942  Check the documentation of your viewer whether the viewer needs to be configure
6943 d for the use with Sync\SpecialChar TeX
6944 .
6945 \begin_inset Foot
6946 status collapsed
6947
6948 \begin_layout Plain Layout
6949 Note that the option 
6950 \begin_inset Flex Code
6951 status collapsed
6952
6953 \begin_layout Plain Layout
6954 -synctex=1
6955 \end_layout
6956
6957 \end_inset
6958
6959  option enables gzip compression.
6960  If your viewer does not support it, you should instead use 
6961 \begin_inset Flex Code
6962 status collapsed
6963
6964 \begin_layout Plain Layout
6965 -synctex=-1
6966 \end_layout
6967
6968 \end_inset
6969
6970 .
6971 \end_layout
6972
6973 \end_inset
6974
6975
6976 \end_layout
6977
6978 \begin_layout Subsection
6979 Configuring and using specific viewers
6980 \begin_inset CommandInset label
6981 LatexCommand label
6982 name "subsec:configuring-viewers"
6983
6984 \end_inset
6985
6986
6987 \end_layout
6988
6989 \begin_layout Subsubsection*
6990 Xdvi (all platforms)
6991 \end_layout
6992
6993 \begin_layout Standard
6994 If you use 
6995 \begin_inset Flex Code
6996 status collapsed
6997
6998 \begin_layout Plain Layout
6999 xdvi
7000 \end_layout
7001
7002 \end_inset
7003
7004 , you don't need to do anything else for performing a reverse DVI search,
7005  as \SpecialChar LyX
7006  already provides the necessary hooks for automatically using the 
7007 \begin_inset Flex Code
7008 status collapsed
7009
7010 \begin_layout Plain Layout
7011 lyxclient
7012 \end_layout
7013
7014 \end_inset
7015
7016  program.
7017  Just setup your document as described above (reverse search is triggered
7018  by Ctrl-click or Alt-click on Mac OSX, respectively).
7019 \end_layout
7020
7021 \begin_layout Standard
7022 However, if for whatever reason you want to use the named pipe instead of
7023  the socket for communicating with \SpecialChar LyX
7024 , simply change the DVI viewer in 
7025 \begin_inset Flex Noun
7026 status collapsed
7027
7028 \begin_layout Plain Layout
7029 Preferences\SpecialChar menuseparator
7030 File Handling\SpecialChar menuseparator
7031 File formats
7032 \end_layout
7033
7034 \end_inset
7035
7036  to
7037 \begin_inset Foot
7038 status collapsed
7039
7040 \begin_layout Plain Layout
7041 On Mac OSX you have to use 
7042 \begin_inset Flex Code
7043 status collapsed
7044
7045 \begin_layout Plain Layout
7046 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7047 \end_layout
7048
7049 \end_inset
7050
7051
7052 \end_layout
7053
7054 \end_inset
7055
7056  
7057 \begin_inset Flex Code
7058 status collapsed
7059
7060 \begin_layout Plain Layout
7061 xdvi -editor "lyxeditor.sh %f %l"
7062 \end_layout
7063
7064 \end_inset
7065
7066 , where 
7067 \begin_inset Flex Code
7068 status collapsed
7069
7070 \begin_layout Plain Layout
7071 lyxeditor.sh
7072 \end_layout
7073
7074 \end_inset
7075
7076  is a suitable script.
7077  For example, a minimal shell script is the following one:
7078 \end_layout
7079
7080 \begin_layout LyX-Code
7081 #!/bin/sh
7082 \begin_inset Newline newline
7083 \end_inset
7084
7085 LYXPIPE="/path/to/lyxpipe"
7086 \begin_inset Newline newline
7087 \end_inset
7088
7089 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7090 \begin_inset Newline newline
7091 \end_inset
7092
7093 echo "$COMMAND" > "${LYXPIPE}".in || exit
7094 \begin_inset Newline newline
7095 \end_inset
7096
7097 read TMP < "${LYXPIPE}".out || exit
7098 \end_layout
7099
7100 \begin_layout Standard
7101 where 
7102 \begin_inset Flex Code
7103 status collapsed
7104
7105 \begin_layout Plain Layout
7106 /path/to/lyxpipe
7107 \end_layout
7108
7109 \end_inset
7110
7111  is the LyXServer pipe path specified in 
7112 \begin_inset Flex Noun
7113 status collapsed
7114
7115 \begin_layout Plain Layout
7116 Preferences\SpecialChar menuseparator
7117 Paths
7118 \end_layout
7119
7120 \end_inset
7121
7122 .
7123 \begin_inset Foot
7124 status collapsed
7125
7126 \begin_layout Plain Layout
7127 In the 
7128 \begin_inset Flex Code
7129 status collapsed
7130
7131 \begin_layout Plain Layout
7132 development/tools
7133 \end_layout
7134
7135 \end_inset
7136
7137  folder of a source distribution you can find a 
7138 \begin_inset Flex Code
7139 status collapsed
7140
7141 \begin_layout Plain Layout
7142 lyxeditor
7143 \end_layout
7144
7145 \end_inset
7146
7147  script which is able to locate the 
7148 \emph on
7149 lyxpipe
7150 \emph default
7151  based on your preferences.
7152 \end_layout
7153
7154 \end_inset
7155
7156
7157 \end_layout
7158
7159 \begin_layout Subsubsection*
7160 MacDviX (Mac OSX)
7161 \end_layout
7162
7163 \begin_layout Standard
7164 At the end of 
7165 \begin_inset Flex Code
7166 status collapsed
7167
7168 \begin_layout Plain Layout
7169 /Applications/MacDviX_Folder/calleditor.script
7170 \end_layout
7171
7172 \end_inset
7173
7174 , add the following lines:
7175 \end_layout
7176
7177 \begin_layout LyX-Code
7178 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7179 \begin_inset Newline newline
7180 \end_inset
7181
7182 exit 1
7183 \end_layout
7184
7185 \begin_layout Standard
7186 Modify the lines accordingly if you install \SpecialChar LyX
7187  somewhere else than in the
7188  Applications folder.
7189 \end_layout
7190
7191 \begin_layout Standard
7192 Reverse search is triggered by Alt-click (OPTION-click).
7193 \end_layout
7194
7195 \begin_layout Subsubsection*
7196 Skim (Mac OSX)
7197 \end_layout
7198
7199 \begin_layout Standard
7200 Enter 
7201 \begin_inset Flex Code
7202 status collapsed
7203
7204 \begin_layout Plain Layout
7205 open -a Skim.app $$i
7206 \end_layout
7207
7208 \end_inset
7209
7210  to the viewer setting in 
7211 \begin_inset Flex Noun
7212 status collapsed
7213
7214 \begin_layout Plain Layout
7215 Preferences\SpecialChar menuseparator
7216 File Handling\SpecialChar menuseparator
7217 File formats\SpecialChar menuseparator
7218 PDF (pdflatex)
7219 \end_layout
7220
7221 \end_inset
7222
7223 , and then in 
7224 \begin_inset Flex Noun
7225 status collapsed
7226
7227 \begin_layout Plain Layout
7228 Skim\SpecialChar menuseparator
7229 Preferences\SpecialChar menuseparator
7230 Sync
7231 \end_layout
7232
7233 \end_inset
7234
7235  choose 
7236 \begin_inset Flex Noun
7237 status collapsed
7238
7239 \begin_layout Plain Layout
7240 custom
7241 \end_layout
7242
7243 \end_inset
7244
7245  preset and enter command 
7246 \begin_inset Flex Noun
7247 status collapsed
7248
7249 \begin_layout Plain Layout
7250 /Applications/\SpecialChar LyX
7251 .app/Contents/MacOS/lyxeditor
7252 \end_layout
7253
7254 \end_inset
7255
7256 .
7257 \end_layout
7258
7259 \begin_layout Standard
7260 Reverse search is triggered by COMMAND-SHIFT-click
7261 \end_layout
7262
7263 \begin_layout Subsubsection*
7264 Evince (GNOME)
7265 \end_layout
7266
7267 \begin_layout Standard
7268 Reverse search with evince does not work out of the box, but it can be achieved
7269  by means of some third party helper scripts.
7270  Please refer to 
7271 \begin_inset CommandInset href
7272 LatexCommand href
7273 target "http://wiki.lyx.org/LyX/SyncTeX"
7274 literal "false"
7275
7276 \end_inset
7277
7278  for details.
7279 \end_layout
7280
7281 \begin_layout Subsubsection*
7282 Okular (KDE)
7283 \end_layout
7284
7285 \begin_layout Standard
7286 Go to 
7287 \begin_inset Flex Noun
7288 status collapsed
7289
7290 \begin_layout Plain Layout
7291 Settings\SpecialChar menuseparator
7292 Configure Okular\SpecialChar menuseparator
7293 Editor
7294 \end_layout
7295
7296 \end_inset
7297
7298 , select 
7299 \begin_inset Quotes eld
7300 \end_inset
7301
7302 Custom Text Editor
7303 \begin_inset Quotes erd
7304 \end_inset
7305
7306  and add the command 
7307 \begin_inset Flex Code
7308 status collapsed
7309
7310 \begin_layout Plain Layout
7311 lyxclient -g %f %l
7312 \end_layout
7313
7314 \end_inset
7315
7316 .
7317 \end_layout
7318
7319 \begin_layout Standard
7320 Reverse search is triggered by SHIFT-click.
7321 \end_layout
7322
7323 \begin_layout Subsubsection*
7324 Qpdfview (Unix)
7325 \end_layout
7326
7327 \begin_layout Standard
7328 Qpdfview supports Sync\SpecialChar TeX
7329  since version 0.3.5.
7330  Go to 
7331 \begin_inset Flex Noun
7332 status collapsed
7333
7334 \begin_layout Plain Layout
7335 Edit\SpecialChar menuseparator
7336 Settings\SpecialChar menuseparator
7337 Behavior
7338 \end_layout
7339
7340 \end_inset
7341
7342 , click on the input field of the 
7343 \begin_inset Quotes eld
7344 \end_inset
7345
7346 Source editor
7347 \begin_inset Quotes erd
7348 \end_inset
7349
7350  item and add the command 
7351 \begin_inset Flex Code
7352 status collapsed
7353
7354 \begin_layout Plain Layout
7355 lyxclient -g %1 %2
7356 \end_layout
7357
7358 \end_inset
7359
7360 .
7361 \end_layout
7362
7363 \begin_layout Standard
7364 Reverse search is triggered by double-click or, in more recent versions,
7365  by context menu.
7366 \end_layout
7367
7368 \begin_layout Subsubsection*
7369 YAP (Windows)
7370 \end_layout
7371
7372 \begin_layout Standard
7373 Launch yap, choose its 
7374 \begin_inset Flex Noun
7375 status collapsed
7376
7377 \begin_layout Plain Layout
7378 View\SpecialChar menuseparator
7379 Options
7380 \end_layout
7381
7382 \end_inset
7383
7384  menu and select the 
7385 \begin_inset Quotes eld
7386 \end_inset
7387
7388 Inverse DVI Search
7389 \begin_inset Quotes erd
7390 \end_inset
7391
7392  tab.
7393  Click on the 
7394 \begin_inset Quotes eld
7395 \end_inset
7396
7397 New\SpecialChar ldots
7398
7399 \begin_inset Quotes erd
7400 \end_inset
7401
7402  button and, in the window that opens, enter 
7403 \begin_inset Quotes eld
7404 \end_inset
7405
7406 \SpecialChar LyX
7407  Editor
7408 \begin_inset Quotes erd
7409 \end_inset
7410
7411  (or any other name you like) in the 
7412 \begin_inset Quotes eld
7413 \end_inset
7414
7415 Name:
7416 \begin_inset Quotes erd
7417 \end_inset
7418
7419  field.
7420  Now click on the button labeled 
7421 \begin_inset Quotes eld
7422 \end_inset
7423
7424 \SpecialChar ldots
7425
7426 \begin_inset Quotes erd
7427 \end_inset
7428
7429  to open a file dialog and navigate to the directory containing the batch
7430  file 
7431 \begin_inset Flex Code
7432 status collapsed
7433
7434 \begin_layout Plain Layout
7435 lyxeditor.bat
7436 \end_layout
7437
7438 \end_inset
7439
7440  (see below).
7441  Select 
7442 \begin_inset Flex Code
7443 status collapsed
7444
7445 \begin_layout Plain Layout
7446 lyxeditor.bat
7447 \end_layout
7448
7449 \end_inset
7450
7451  and then specify the program arguments as 
7452 \begin_inset Flex Code
7453 status collapsed
7454
7455 \begin_layout Plain Layout
7456 %f %l
7457 \end_layout
7458
7459 \end_inset
7460
7461 .
7462  The 
7463 \begin_inset Flex Code
7464 status collapsed
7465
7466 \begin_layout Plain Layout
7467 lyxeditor.bat
7468 \end_layout
7469
7470 \end_inset
7471
7472  wrapper is used for communicating with \SpecialChar LyX
7473  through the 
7474 \emph on
7475 lyxpipe
7476 \emph default
7477  and is as follows:
7478 \end_layout
7479
7480 \begin_layout LyX-Code
7481 @echo off
7482 \begin_inset Newline newline
7483 \end_inset
7484
7485 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
7486 \backslash
7487
7488 \backslash
7489 .
7490 \backslash
7491 pipe
7492 \backslash
7493 lyxpipe.in
7494 \begin_inset Newline newline
7495 \end_inset
7496
7497 type 
7498 \backslash
7499
7500 \backslash
7501 .
7502 \backslash
7503 pipe
7504 \backslash
7505 lyxpipe.out
7506 \end_layout
7507
7508 \begin_layout Standard
7509 Make sure that the \SpecialChar LyX
7510 Server pipe path you specified in \SpecialChar LyX
7511  is 
7512 \begin_inset Flex Code
7513 status collapsed
7514
7515 \begin_layout Plain Layout
7516
7517 \backslash
7518
7519 \backslash
7520 .
7521 \backslash
7522 pipe
7523 \backslash
7524 lyxpipe
7525 \end_layout
7526
7527 \end_inset
7528
7529 , otherwise change the 
7530 \begin_inset Flex Code
7531 status collapsed
7532
7533 \begin_layout Plain Layout
7534 lyxeditor.bat
7535 \end_layout
7536
7537 \end_inset
7538
7539  wrapper accordingly.
7540 \end_layout
7541
7542 \begin_layout Standard
7543 In yap, reverse search is triggered by double-click.
7544 \end_layout
7545
7546 \begin_layout Subsubsection*
7547 SumatraPDF (Windows)
7548 \end_layout
7549
7550 \begin_layout Standard
7551 In order to use SumatraPDF for inverse search, enter 
7552 \begin_inset Flex Code
7553 status collapsed
7554
7555 \begin_layout Plain Layout
7556 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
7557 \end_layout
7558
7559 \end_inset
7560
7561  in the viewer setting in 
7562 \begin_inset Flex Noun
7563 status collapsed
7564
7565 \begin_layout Plain Layout
7566 Preferences\SpecialChar menuseparator
7567 File Handling\SpecialChar menuseparator
7568 File formats\SpecialChar menuseparator
7569 PDF (pdflatex)
7570 \end_layout
7571
7572 \end_inset
7573
7574 , where 
7575 \begin_inset Flex Code
7576 status collapsed
7577
7578 \begin_layout Plain Layout
7579 lyxeditor.bat
7580 \end_layout
7581
7582 \end_inset
7583
7584  is the previous wrapper.
7585  If SumatraPDF.exe is not in your command PATH, use its full file name.
7586 \end_layout
7587
7588 \begin_layout Standard
7589 Reverse search is triggered by double-click.
7590 \end_layout
7591
7592 \begin_layout Subsubsection*
7593 YAP (Cygwin)
7594 \end_layout
7595
7596 \begin_layout Standard
7597 First of all, make sure that yap is your default DVI viewer in the Windows
7598  environment, then launch it, choose its 
7599 \begin_inset Flex Noun
7600 status collapsed
7601
7602 \begin_layout Plain Layout
7603 View\SpecialChar menuseparator
7604 Options
7605 \end_layout
7606
7607 \end_inset
7608
7609  menu and select the 
7610 \begin_inset Quotes eld
7611 \end_inset
7612
7613 Inverse DVI Search
7614 \begin_inset Quotes erd
7615 \end_inset
7616
7617  tab.
7618  Click on the 
7619 \begin_inset Quotes eld
7620 \end_inset
7621
7622 New\SpecialChar ldots
7623
7624 \begin_inset Quotes erd
7625 \end_inset
7626
7627  button and, in the window that opens, enter 
7628 \begin_inset Quotes eld
7629 \end_inset
7630
7631 \SpecialChar LyX
7632  Editor
7633 \begin_inset Quotes erd
7634 \end_inset
7635
7636  (or any other name you like) in the 
7637 \begin_inset Quotes eld
7638 \end_inset
7639
7640 Name:
7641 \begin_inset Quotes erd
7642 \end_inset
7643
7644  field.
7645  Now click on the button labeled 
7646 \begin_inset Quotes eld
7647 \end_inset
7648
7649 \SpecialChar ldots
7650
7651 \begin_inset Quotes erd
7652 \end_inset
7653
7654  to open a file dialog and navigate to the directory containing the 
7655 \begin_inset Flex Code
7656 status collapsed
7657
7658 \begin_layout Plain Layout
7659 lyxeditor.exe
7660 \end_layout
7661
7662 \end_inset
7663
7664  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7665  executable).
7666  Select 
7667 \begin_inset Flex Code
7668 status collapsed
7669
7670 \begin_layout Plain Layout
7671 lyxeditor.exe
7672 \end_layout
7673
7674 \end_inset
7675
7676  and then specify the program arguments as 
7677 \begin_inset Flex Code
7678 status collapsed
7679
7680 \begin_layout Plain Layout
7681 -g %f %l
7682 \end_layout
7683
7684 \end_inset
7685
7686 .
7687  In this way, you will be using the 
7688 \emph on
7689 lyxsocket
7690 \emph default
7691  for communicating with \SpecialChar LyX
7692 .
7693  If, for whatever reason, you want to use the 
7694 \emph on
7695 lyxpipe
7696 \emph default
7697 , omit the 
7698 \begin_inset Flex Code
7699 status collapsed
7700
7701 \begin_layout Plain Layout
7702 -g
7703 \end_layout
7704
7705 \end_inset
7706
7707  option and be sure to specify the \SpecialChar LyX
7708 Server pipe path in the \SpecialChar LyX
7709  preferences.
7710 \end_layout
7711
7712 \begin_layout Standard
7713 In yap, reverse search is triggered by double-click.
7714 \end_layout
7715
7716 \begin_layout Subsubsection*
7717 SumatraPDF (Cygwin)
7718 \end_layout
7719
7720 \begin_layout Standard
7721 In order to use SumatraPDF for inverse search, enter 
7722 \begin_inset Flex Code
7723 status collapsed
7724
7725 \begin_layout Plain Layout
7726 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7727 \end_layout
7728
7729 \end_inset
7730
7731  in the viewer setting in 
7732 \begin_inset Flex Noun
7733 status collapsed
7734
7735 \begin_layout Plain Layout
7736 Preferences\SpecialChar menuseparator
7737 File Handling\SpecialChar menuseparator
7738 File formats\SpecialChar menuseparator
7739 PDF (pdflatex)
7740 \end_layout
7741
7742 \end_inset
7743
7744 .
7745  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7746  The 
7747 \begin_inset Flex Code
7748 status collapsed
7749
7750 \begin_layout Plain Layout
7751 -g
7752 \end_layout
7753
7754 \end_inset
7755
7756  enables communication via the 
7757 \emph on
7758 lyxsocket
7759 \emph default
7760 .
7761  Again, omit the 
7762 \begin_inset Flex Code
7763 status collapsed
7764
7765 \begin_layout Plain Layout
7766 -g
7767 \end_layout
7768
7769 \end_inset
7770
7771  option if you want to use the 
7772 \emph on
7773 lyxpipe
7774 \emph default
7775 , and be sure to specify the \SpecialChar LyX
7776 Server pipe path in the \SpecialChar LyX
7777  preferences.
7778 \end_layout
7779
7780 \begin_layout Standard
7781 Reverse search is triggered by double-click.
7782 \end_layout
7783
7784 \begin_layout Section
7785 Forward search
7786 \end_layout
7787
7788 \begin_layout Standard
7789 Forward search is, as the name implies, in a sense the 
7790 \begin_inset Quotes eld
7791 \end_inset
7792
7793 opposite
7794 \begin_inset Quotes erd
7795 \end_inset
7796
7797  of reverse search.
7798  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7799 .
7800  If forward search is set up (as described in what follows), you can put
7801  the cursor anywhere in your \SpecialChar LyX
7802  document, and hit 
7803 \begin_inset Flex Noun
7804 status collapsed
7805
7806 \begin_layout Plain Layout
7807 Navigate\SpecialChar menuseparator
7808 Forward search
7809 \end_layout
7810
7811 \end_inset
7812
7813  (or select 
7814 \begin_inset Flex Noun
7815 status collapsed
7816
7817 \begin_layout Plain Layout
7818 Forward search
7819 \end_layout
7820
7821 \end_inset
7822
7823  in the context menu via right mouse click), and then the viewer will jump
7824  to that position as well.
7825  This implies, of course, that your viewer supports this function.
7826 \end_layout
7827
7828 \begin_layout Standard
7829 To make forward search possible, you first need to provide the generated
7830  output PDF/DVI file with additional information about the \SpecialChar TeX
7831  sources.
7832  This can be done via the methods described in the section 
7833 \begin_inset CommandInset ref
7834 LatexCommand ref
7835 reference "subsec:rev-search"
7836
7837 \end_inset
7838
7839 .
7840 \end_layout
7841
7842 \begin_layout Standard
7843 Additionally, you need to configure \SpecialChar LyX
7844  for using your viewers in 
7845 \begin_inset Flex Noun
7846 status collapsed
7847
7848 \begin_layout Plain Layout
7849 Tools\SpecialChar menuseparator
7850 Preferences\SpecialChar menuseparator
7851 Output\SpecialChar menuseparator
7852 General
7853 \end_layout
7854
7855 \end_inset
7856
7857 .
7858  We provide a range of tested configurations for some viewers, which you
7859  can select from the drop down list.
7860  If none of these configurations suits you, you have to find out and enter
7861  a suitable configuration yourself.
7862  The definition syntax uses the following placeholders:
7863 \end_layout
7864
7865 \begin_layout Itemize
7866 \noindent
7867 \begin_inset Flex Code
7868 status collapsed
7869
7870 \begin_layout Plain Layout
7871 $$n
7872 \end_layout
7873
7874 \end_inset
7875
7876 : row number
7877 \end_layout
7878
7879 \begin_layout Itemize
7880 \noindent
7881 \begin_inset Flex Code
7882 status collapsed
7883
7884 \begin_layout Plain Layout
7885 $$t
7886 \end_layout
7887
7888 \end_inset
7889
7890 : name of the (temporary) exported .tex file (without path)
7891 \end_layout
7892
7893 \begin_layout Itemize
7894 \noindent
7895 \begin_inset Flex Code
7896 status collapsed
7897
7898 \begin_layout Plain Layout
7899 $$f
7900 \end_layout
7901
7902 \end_inset
7903
7904 : name of the (temporary) exported .tex file (including path)
7905 \end_layout
7906
7907 \begin_layout Itemize
7908 \noindent
7909 \begin_inset Flex Code
7910 status collapsed
7911
7912 \begin_layout Plain Layout
7913 $$o
7914 \end_layout
7915
7916 \end_inset
7917
7918 : name of the exported output file (either dvi or pdf, depending on which
7919  one exists in the temporary directory)
7920 \end_layout
7921
7922 \begin_layout Standard
7923 Note that only some of the viewers provide full and usable forward search
7924  functionality out of the box, among them yap, xdvi, okular
7925 \begin_inset Foot
7926 status collapsed
7927
7928 \begin_layout Plain Layout
7929 You might want to set 
7930 \begin_inset Flex Code
7931 status collapsed
7932
7933 \begin_layout Plain Layout
7934 okular –unique
7935 \end_layout
7936
7937 \end_inset
7938
7939  in 
7940 \begin_inset Flex Noun
7941 status collapsed
7942
7943 \begin_layout Plain Layout
7944 Tools\SpecialChar menuseparator
7945 Preferences\SpecialChar menuseparator
7946 File Handling\SpecialChar menuseparator
7947 File
7948 \begin_inset space ~
7949 \end_inset
7950
7951 Formats
7952 \end_layout
7953
7954 \end_inset
7955
7956
7957 \end_layout
7958
7959 \end_inset
7960
7961 , qpdfview, and SumatraPDF
7962 \begin_inset Foot
7963 status collapsed
7964
7965 \begin_layout Plain Layout
7966 SumatraPDF can also use DDE commands through the external program CMCDDE
7967  — downloadable from 
7968 \begin_inset CommandInset href
7969 LatexCommand href
7970 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
7971 literal "false"
7972
7973 \end_inset
7974
7975
7976 \end_layout
7977
7978 \end_inset
7979
7980 .
7981  Others, such as evince
7982 \begin_inset Foot
7983 status collapsed
7984
7985 \begin_layout Plain Layout
7986 \paragraph_spacing single
7987 Forward search with evince can be achieved by means of third party helper
7988  scripts.
7989  Please refer to 
7990 \begin_inset CommandInset href
7991 LatexCommand href
7992 target "http://wiki.lyx.org/LyX/SyncTeX"
7993 literal "false"
7994
7995 \end_inset
7996
7997  for details.
7998 \end_layout
7999
8000 \end_inset
8001
8002 , require some extra tools in order to use forward search.
8003  While many of the widespread PDF viewers (most notably Adobe Reader) do
8004  not support forward search at all, some other viewers – e.
8005 \begin_inset space \thinspace{}
8006 \end_inset
8007
8008 g.
8009  xpdf – allow at least to reload the document and jump to a specific page
8010  of the file, so you can at least navigate 
8011 \begin_inset Quotes eld
8012 \end_inset
8013
8014 near
8015 \begin_inset Quotes erd
8016 \end_inset
8017
8018 .
8019  This latter functionality is provided by an external call of synctex (see
8020  the predefined example configurations).
8021  
8022 \end_layout
8023
8024 \begin_layout Standard
8025 Forward search works both with DVI and PDF output.
8026  \SpecialChar LyX
8027  simply checks which preview format you have used before (i.
8028 \begin_inset space \thinspace{}
8029 \end_inset
8030
8031 e., which format is already there in the temporary directory) and chooses
8032  the appropriate configuration for the respective format.
8033 \end_layout
8034
8035 \begin_layout Chapter
8036 Special Document Classes
8037 \end_layout
8038
8039 \begin_layout Section
8040 A&A Paper
8041 \end_layout
8042
8043 \begin_layout Standard
8044 by 
8045 \noun on
8046 Peter Sütterlin
8047 \end_layout
8048
8049 \begin_layout Subsection
8050 Introduction
8051 \end_layout
8052
8053 \begin_layout Standard
8054 This section describes how \SpecialChar LyX
8055  can be used to write articles for submission
8056  to the scientific journal 
8057 \emph on
8058 Astronomy and Astrophysics
8059 \emph default
8060  (
8061 \begin_inset Flex URL
8062 status collapsed
8063
8064 \begin_layout Plain Layout
8065
8066 http://www.edpsciences.fr/aa/
8067 \end_layout
8068
8069 \end_inset
8070
8071 ) using Version 5.01 of the document class 
8072 \family typewriter
8073 aa.cls
8074 \family default
8075 .
8076  This package can be downloaded from the ftp site
8077 \end_layout
8078
8079 \begin_layout Standard
8080 \begin_inset VSpace medskip
8081 \end_inset
8082
8083
8084 \end_layout
8085
8086 \begin_layout Standard
8087 \align center
8088 \begin_inset Flex URL
8089 status collapsed
8090
8091 \begin_layout Plain Layout
8092
8093 ftp://ftp.edpsciences.org/pub/aa/readme.html
8094 \end_layout
8095
8096 \end_inset
8097
8098
8099 \end_layout
8100
8101 \begin_layout Standard
8102 \begin_inset VSpace medskip
8103 \end_inset
8104
8105
8106 \end_layout
8107
8108 \begin_layout Standard
8109 A manual comes together with that package, and this text is not meant to
8110  replace the original manual but is merely a short guide in how to realize
8111  the correct form of your paper.
8112  
8113 \end_layout
8114
8115 \begin_layout Standard
8116 Please note that the publisher of the journal was changed from Springer
8117  to EDP Sciences starting January 1, 2001.
8118  That change involved also some slight changes to the style files, namely
8119  the removal of the thesaurus command.
8120  The \SpecialChar LyX
8121  class aa supports the newest version of these style files, V 5.01.
8122  If you have an older version installed, please upgrade.
8123  For compatibility, the old (version 4) layout has been kept as 
8124 \family sans
8125 article (A&A V4)
8126 \family default
8127 .
8128  Please refer to the comments in 
8129 \family typewriter
8130 \SpecialChar LyX
8131 Dir/layouts/aapaper.layout
8132 \family default
8133 .
8134 \end_layout
8135
8136 \begin_layout Subsection
8137 Getting started
8138 \end_layout
8139
8140 \begin_layout Standard
8141 It is recommended you start from the example template distributed with \SpecialChar LyX
8142 .
8143  If you are not using a template, note the following settings:
8144 \end_layout
8145
8146 \begin_layout Itemize
8147 Select 
8148 \family sans
8149 article (A&A)
8150 \family default
8151  in the 
8152 \family sans
8153 Document\SpecialChar menuseparator
8154 Settings
8155 \family default
8156  dialog (OK, that one was obvious).
8157 \end_layout
8158
8159 \begin_layout Itemize
8160 Don't change the option 
8161 \family sans
8162 Page
8163 \begin_inset space ~
8164 \end_inset
8165
8166 style
8167 \family default
8168 : Leave it set to 
8169 \family sans
8170 default
8171 \family default
8172 .
8173  The whole layout is done by the macros, you shouldn't change anything.
8174 \end_layout
8175
8176 \begin_layout Subsection
8177 The header block
8178 \end_layout
8179
8180 \begin_layout Standard
8181 First thing to enter is the header information.
8182  It consists of seven entries, of which some are optional.
8183  They are
8184 \end_layout
8185
8186 \begin_layout Itemize
8187
8188 \family sans
8189 Title
8190 \family default
8191 : [required] 
8192 \end_layout
8193
8194 \begin_layout Itemize
8195
8196 \family sans
8197 Subtitle
8198 \family default
8199 : [optional] 
8200 \end_layout
8201
8202 \begin_layout Itemize
8203
8204 \family sans
8205 Author
8206 \family default
8207 : [required]
8208 \end_layout
8209
8210 \begin_layout Itemize
8211
8212 \family sans
8213 Address
8214 \family default
8215 : [required]
8216 \end_layout
8217
8218 \begin_layout Itemize
8219
8220 \family sans
8221 Offprints
8222 \family default
8223 : [optional] if more than one author: whom to contact for offprint requests.
8224 \end_layout
8225
8226 \begin_layout Itemize
8227
8228 \family sans
8229 Mail
8230 \family default
8231 : [optional] mail address for contacts.
8232 \end_layout
8233
8234 \begin_layout Itemize
8235
8236 \family sans
8237 Date
8238 \family default
8239 : [required].
8240  Suggested format is 
8241 \family typewriter
8242 Received: <date>; Accepted <date> 
8243 \end_layout
8244
8245 \begin_layout Standard
8246 There is no need to issue the 
8247 \family typewriter
8248
8249 \backslash
8250 maketitle
8251 \family default
8252  command, this is done automatically by \SpecialChar LyX
8253  when the header is finished.
8254  Although the order of the single header entries doesn't matter it is advised
8255  to keep the above sequence, just to get the best optics and meets the layout
8256  of the real document.
8257 \end_layout
8258
8259 \begin_layout Standard
8260 If you want to place footnotes in the header block, e.
8261 \begin_inset space \thinspace{}
8262 \end_inset
8263
8264 g.
8265 \begin_inset space \space{}
8266 \end_inset
8267
8268 to state your present address, just use the standard footnote via the menu
8269  
8270 \family sans
8271 Insert\SpecialChar menuseparator
8272 Footnote.
8273
8274 \family default
8275  \SpecialChar LyX
8276  will automagically use the term 
8277 \family typewriter
8278
8279 \backslash
8280 thanks{}
8281 \family default
8282  in that case.
8283 \end_layout
8284
8285 \begin_layout Standard
8286 In addition to these topics, the macros use three additional \SpecialChar LaTeX
8287  commands that
8288  have no counterpart in \SpecialChar LyX
8289 :
8290 \end_layout
8291
8292 \begin_layout Itemize
8293
8294 \family typewriter
8295
8296 \backslash
8297 and
8298 \family default
8299  to separate different names for more than one author and institute, respectivel
8300 y.
8301 \end_layout
8302
8303 \begin_layout Itemize
8304
8305 \family typewriter
8306
8307 \backslash
8308 inst{<nr>}
8309 \family default
8310 to mark corresponding author/institute pairs.
8311  The institutes are numbered sequentially as they appear in the 
8312 \family sans
8313 Address
8314 \family default
8315  field, so you have to put a marker to each author.
8316 \end_layout
8317
8318 \begin_layout Itemize
8319
8320 \family typewriter
8321
8322 \backslash
8323 email{address}
8324 \family default
8325  to supply an email address for fast contact.
8326 \end_layout
8327
8328 \begin_layout Standard
8329 In all cases, the appropriate command has to be entered in \SpecialChar LyX
8330  and marked as
8331  \SpecialChar LaTeX
8332  code.
8333  See the examples.
8334  
8335 \end_layout
8336
8337 \begin_layout Subsection
8338 The abstract
8339 \end_layout
8340
8341 \begin_layout Standard
8342 The abstract should immediately follow the header block.
8343  With version 5 the abstract environment was changed to a command, and there
8344  is now a resctriction to only one paragraph.
8345  In addition, it should contain an entry with the keywords.
8346  This is not yet implemented for \SpecialChar LyX
8347 , therefore you have to enter the \SpecialChar LaTeX
8348  command
8349  
8350 \family typewriter
8351
8352 \backslash
8353 keywords{}
8354 \family default
8355  by hand and mark it as \SpecialChar LaTeX
8356  code.
8357  Refer to the example paper.
8358 \end_layout
8359
8360 \begin_layout Subsection
8361 Supported environments
8362 \end_layout
8363
8364 \begin_layout Standard
8365 The A&A paper layout supports the following environments for structuring
8366  your text:
8367 \end_layout
8368
8369 \begin_layout Itemize
8370
8371 \family sans
8372 Standard
8373 \end_layout
8374
8375 \begin_layout Itemize
8376
8377 \family sans
8378 Section
8379 \end_layout
8380
8381 \begin_layout Itemize
8382
8383 \family sans
8384 Subsection
8385 \end_layout
8386
8387 \begin_layout Itemize
8388
8389 \family sans
8390 Subsubsection
8391 \end_layout
8392
8393 \begin_layout Itemize
8394
8395 \family sans
8396 Itemize
8397 \end_layout
8398
8399 \begin_layout Itemize
8400
8401 \family sans
8402 Enumerate
8403 \end_layout
8404
8405 \begin_layout Itemize
8406
8407 \family sans
8408 Description
8409 \end_layout
8410
8411 \begin_layout Itemize
8412
8413 \family sans
8414 Caption
8415 \end_layout
8416
8417 \begin_layout Itemize
8418
8419 \family sans
8420 Abstract
8421 \end_layout
8422
8423 \begin_layout Itemize
8424
8425 \family sans
8426 Acknowledgment
8427 \end_layout
8428
8429 \begin_layout Itemize
8430
8431 \family sans
8432 Bibliography
8433 \end_layout
8434
8435 \begin_layout Itemize
8436
8437 \family sans
8438 \SpecialChar LaTeX
8439
8440 \end_layout
8441
8442 \begin_layout Subsection
8443 Commands not supported by \SpecialChar LyX
8444
8445 \end_layout
8446
8447 \begin_layout Standard
8448 Some commands are not yet supported by the 
8449 \family sans
8450 paper (A&A)
8451 \family default
8452  layout for \SpecialChar LyX
8453 .
8454  Some have already been mentioned.
8455  For the sake of completeness, they are listed all together here:
8456 \end_layout
8457
8458 \begin_layout Itemize
8459
8460 \family typewriter
8461
8462 \backslash
8463 and
8464 \end_layout
8465
8466 \begin_layout Itemize
8467
8468 \family typewriter
8469
8470 \backslash
8471 email
8472 \end_layout
8473
8474 \begin_layout Itemize
8475
8476 \family typewriter
8477
8478 \backslash
8479 appendix
8480 \end_layout
8481
8482 \begin_layout Itemize
8483
8484 \family typewriter
8485
8486 \backslash
8487 authorrunning
8488 \end_layout
8489
8490 \begin_layout Itemize
8491
8492 \family typewriter
8493
8494 \backslash
8495 inst{}
8496 \end_layout
8497
8498 \begin_layout Itemize
8499
8500 \family typewriter
8501
8502 \backslash
8503 keywords{}
8504 \end_layout
8505
8506 \begin_layout Itemize
8507
8508 \family typewriter
8509
8510 \backslash
8511 object{}
8512 \end_layout
8513
8514 \begin_layout Itemize
8515
8516 \family typewriter
8517
8518 \backslash
8519 titlerunning{}
8520 \end_layout
8521
8522 \begin_layout Standard
8523 If you want to use any of these commands, you have to enter them yourself.
8524  
8525 \series bold
8526 Do not forget to mark them as \SpecialChar LaTeX
8527  code!
8528 \end_layout
8529
8530 \begin_layout Subsection
8531 Figure and Table Floats
8532 \end_layout
8533
8534 \begin_layout Standard
8535 \SpecialChar LyX
8536  provides support for the necessary float environments 
8537 \family sans
8538 figure, figure*, table
8539 \family default
8540  and 
8541 \family sans
8542 table*
8543 \family default
8544 , therefore we won't tell much about it here.
8545  Refer to the 
8546 \emph on
8547 User's
8548 \begin_inset space ~
8549 \end_inset
8550
8551 Guide
8552 \emph default
8553 .
8554  Just remember that tables should be left-aligned.
8555  For that, select the table and change the alignment in 
8556 \family sans
8557 Edit\SpecialChar menuseparator
8558 Paragraph
8559 \begin_inset space ~
8560 \end_inset
8561
8562 Settings.
8563 \end_layout
8564
8565 \begin_layout Standard
8566 There is only one special thing: the figures with caption besides the figure.
8567  To create such a figure, you have to do the following:
8568 \end_layout
8569
8570 \begin_layout Enumerate
8571 Create a wide figure float: 
8572 \family sans
8573 Insert\SpecialChar menuseparator
8574 Float\SpecialChar menuseparator
8575 Figure
8576 \family default
8577 , then right click in the figure and select 
8578 \family sans
8579 Span
8580 \begin_inset space ~
8581 \end_inset
8582
8583 columns
8584 \family default
8585 .
8586 \end_layout
8587
8588 \begin_layout Enumerate
8589 Enter your caption text.
8590 \end_layout
8591
8592 \begin_layout Enumerate
8593 Press 
8594 \family sans
8595 Return
8596 \family default
8597  to move the cursor above the caption.
8598 \end_layout
8599
8600 \begin_layout Enumerate
8601 Insert your figure
8602 \end_layout
8603
8604 \begin_layout Enumerate
8605 Position the cursor behind the figure and insert a horizontal fill: 
8606 \family sans
8607 Insert\SpecialChar menuseparator
8608 Special
8609 \begin_inset space ~
8610 \end_inset
8611
8612 Character\SpecialChar menuseparator
8613 Horizontal
8614 \begin_inset space ~
8615 \end_inset
8616
8617 Fill
8618 \family default
8619 .
8620 \end_layout
8621
8622 \begin_layout Enumerate
8623 Switch to \SpecialChar LaTeX
8624  mode: 
8625 \family sans
8626 M-c
8627 \begin_inset space ~
8628 \end_inset
8629
8630 t
8631 \family default
8632 .
8633 \end_layout
8634
8635 \begin_layout Enumerate
8636 Enter 
8637 \family typewriter
8638
8639 \backslash
8640 parbox[b]{55mm}{
8641 \family default
8642 .
8643  
8644 \series bold
8645 Do not close the brace!
8646 \end_layout
8647
8648 \begin_layout Enumerate
8649 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8650  mode and insert
8651  the closing brace: 
8652 \family sans
8653 M-c
8654 \begin_inset space ~
8655 \end_inset
8656
8657 t
8658 \family default
8659  
8660 \family typewriter
8661 }
8662 \family default
8663 .
8664 \end_layout
8665
8666 \begin_layout Standard
8667 Also, refer to the figures in the example paper.
8668 \end_layout
8669
8670 \begin_layout Subsection
8671 Referee layout
8672 \end_layout
8673
8674 \begin_layout Standard
8675 For submission, the paper has to be formated in a special double-spacing
8676  layout.
8677  For this purpose, you have to give the option 
8678 \family typewriter
8679 referee
8680 \family default
8681  to the documentclass.
8682  This must be done using the extra class options field in the 
8683 \family sans
8684 Document\SpecialChar menuseparator
8685 Settings
8686 \family default
8687  dialog.
8688  Just enter the string 
8689 \family typewriter
8690 referee
8691 \family default
8692  there.
8693 \end_layout
8694
8695 \begin_layout Subsection
8696 The example paper
8697 \end_layout
8698
8699 \begin_layout Standard
8700 The 
8701 \family sans
8702 Examples
8703 \family default
8704  directory contains an example paper written with \SpecialChar LyX
8705 .
8706  It is the example paper from the original macro package, translated to
8707  \SpecialChar LyX
8708 .
8709  Use it for inspiration, and compare the original \SpecialChar LaTeX
8710  code with \SpecialChar LyX
8711  way of writing.
8712 \end_layout
8713
8714 \begin_layout Section
8715 AAS\SpecialChar TeX
8716
8717 \end_layout
8718
8719 \begin_layout Standard
8720 by 
8721 \noun on
8722 Mike Ressler
8723 \end_layout
8724
8725 \begin_layout Subsection
8726 Introduction
8727 \end_layout
8728
8729 \begin_layout Standard
8730 AAS\SpecialChar TeX
8731  is a set of macros produced by the American Astronomical Society to
8732  facilitate electronic manuscript submission to the three journals they
8733  publish: the Astrophysical Journal (including the Letters and Supplement),
8734  the Astronomical Journal, and the Publications of the Astronomical Society
8735  of the Pacific.
8736  \SpecialChar LyX
8737  has proven to be an excellent tool for generating these documents, especially
8738  given its equation, citation, and figure handling capabilities.
8739  \SpecialChar LyX
8740  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8741  is the version described here, or higher.
8742  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8743 2.09 and are fundamentally
8744  incompatible with \SpecialChar LyX
8745 .
8746  The AAS\SpecialChar TeX
8747  package may be downloaded from the AAS\SpecialChar TeX
8748  Web site
8749 \end_layout
8750
8751 \begin_layout Standard
8752 \begin_inset VSpace medskip
8753 \end_inset
8754
8755
8756 \end_layout
8757
8758 \begin_layout Standard
8759 \align center
8760 \begin_inset Flex URL
8761 status collapsed
8762
8763 \begin_layout Plain Layout
8764
8765 https://aas.org/aastex/aastex-downloads
8766 \end_layout
8767
8768 \end_inset
8769
8770
8771 \end_layout
8772
8773 \begin_layout Standard
8774 \begin_inset VSpace medskip
8775 \end_inset
8776
8777
8778 \end_layout
8779
8780 \begin_layout Standard
8781 A complete user guide is contained in that package and you should familiarize
8782  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8783 .
8784  \SpecialChar LyX
8785  will not reduce the need to figure out all the AAS\SpecialChar TeX
8786  commands, it will only
8787  reduce the drudgery of typing everything in.
8788  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8789  document conforms
8790  completely to the requirements of the journal to which you are submitting
8791  your paper.
8792 \end_layout
8793
8794 \begin_layout Subsection
8795 Starting a New Paper
8796 \end_layout
8797
8798 \begin_layout Standard
8799 I strongly suggest that you start with the AAS\SpecialChar TeX
8800  template file.
8801  Click on 
8802 \family sans
8803 File\SpecialChar menuseparator
8804 New from
8805 \family default
8806  
8807 \family sans
8808 Template
8809 \family default
8810 , enter the new file name, then choose the 
8811 \family typewriter
8812 aastex.lyx
8813 \family default
8814  template.
8815  This will show the most common fields found in a manuscript.
8816  Simply overwrite the existing text (including the brackets, 
8817 \family typewriter
8818 <>
8819 \family default
8820 ) with the correct information.
8821  Many of the AAS\SpecialChar TeX
8822  commands and environments can be implemented directly in
8823  \SpecialChar LyX
8824 , but some cannot: most noticeably 
8825 \family typewriter
8826
8827 \backslash
8828 altaffilmark
8829 \family default
8830  and 
8831 \family typewriter
8832
8833 \backslash
8834 altaffiltext
8835 \family default
8836 , which should stick out like a sore thumb if you actually just opened the
8837  template file.
8838  For commands such as these, the \SpecialChar LaTeX
8839  code must be entered directly and marked
8840  as such.
8841  Such commands are referred to as \SpecialChar TeX
8842  code, or Evil Red Text.
8843  I tried to minimize the amount of \SpecialChar TeX
8844  code needed in an AAS\SpecialChar TeX
8845  document, but
8846  there is still a bit more required than any of us would like.
8847 \end_layout
8848
8849 \begin_layout Subsection
8850 Finishing Your Paper
8851 \end_layout
8852
8853 \begin_layout Standard
8854 When the paper is finished to your satisfaction and previews/prints correctly,
8855  there are a few 
8856 \begin_inset Quotes eld
8857 \end_inset
8858
8859 postprocessing
8860 \begin_inset Quotes erd
8861 \end_inset
8862
8863  actions which need to be done before you submit it to the journals.
8864  
8865 \end_layout
8866
8867 \begin_layout Enumerate
8868 Export your paper as a \SpecialChar LaTeX
8869  file (
8870 \family sans
8871 File\SpecialChar menuseparator
8872 Export\SpecialChar menuseparator
8873 \SpecialChar LaTeX
8874
8875 \family default
8876 ).
8877  
8878 \end_layout
8879
8880 \begin_layout Enumerate
8881 Edit the resulting 
8882 \family typewriter
8883 .tex
8884 \family default
8885  file with your favorite text editor
8886 \end_layout
8887
8888 \begin_deeper
8889 \begin_layout Enumerate
8890 remove the comment lines before the 
8891 \family typewriter
8892
8893 \backslash
8894 documentclass
8895 \family default
8896  command
8897 \end_layout
8898
8899 \begin_layout Enumerate
8900 remove the 
8901 \family typewriter
8902
8903 \backslash
8904 usepackage...{fontenc}
8905 \family default
8906  line if it appears (usually just after 
8907 \family typewriter
8908
8909 \backslash
8910 documentclass
8911 \family default
8912 }; also remove the 
8913 \family typewriter
8914
8915 \backslash
8916 secnumdepth
8917 \family default
8918  line if it appears.
8919 \end_layout
8920
8921 \begin_layout Enumerate
8922 remove everything between (and including) the 
8923 \family typewriter
8924
8925 \backslash
8926 makeatletter
8927 \family default
8928  and 
8929 \family typewriter
8930
8931 \backslash
8932 makeatother
8933 \family default
8934  commands, except for any commands you specifically put into the \SpecialChar LaTeX
8935  preamble
8936  (which should appear immediately after the 
8937 \begin_inset Quotes eld
8938 \end_inset
8939
8940 User specified \SpecialChar LaTeX
8941  commands
8942 \begin_inset Quotes erd
8943 \end_inset
8944
8945  comment in the 
8946 \family typewriter
8947 .tex
8948 \family default
8949  file).
8950 \end_layout
8951
8952 \end_deeper
8953 \begin_layout Enumerate
8954 Run the resulting file through \SpecialChar LaTeX
8955  to make sure it still processes correctly.
8956 \end_layout
8957
8958 \begin_layout Enumerate
8959 Reread the journal requirements to make sure your filenames and formats
8960  are correct.
8961 \end_layout
8962
8963 \begin_layout Enumerate
8964 Submit it.
8965 \end_layout
8966
8967 \begin_layout Subsection
8968 Comments On Specific Commands
8969 \end_layout
8970
8971 \begin_layout Standard
8972 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
8973  commands: the
8974  AAS\SpecialChar TeX
8975  User Guide (
8976 \family typewriter
8977 aasguide.tex
8978 \family default
8979 ) gives a good description of each.
8980  Thus it's probably easiest for me to go down the list as found in the guide
8981  and offer comments where necessary.
8982  So let's begin \SpecialChar ldots
8983
8984 \end_layout
8985
8986 \begin_layout Subsubsection
8987 Things that work as expected
8988 \end_layout
8989
8990 \begin_layout Standard
8991 Because they work as you might expect, I simply list them and the section
8992  they are found in: 
8993 \family typewriter
8994
8995 \backslash
8996 documentclass
8997 \family default
8998  (2.1.1), 
8999 \family typewriter
9000
9001 \backslash
9002 begin{document}
9003 \family default
9004  (2.2), 
9005 \family typewriter
9006
9007 \backslash
9008 title
9009 \family default
9010  (2.3), 
9011 \family typewriter
9012
9013 \backslash
9014 author
9015 \family default
9016  (2.3), 
9017 \family typewriter
9018
9019 \backslash
9020 affil
9021 \family default
9022  (2.3), 
9023 \family typewriter
9024
9025 \backslash
9026 abstract
9027 \family default
9028  (2.4), 
9029 \family typewriter
9030
9031 \backslash
9032 keywords
9033 \family default
9034  (2.5), 
9035 \family typewriter
9036
9037 \backslash
9038 section
9039 \family default
9040  (2.7), 
9041 \family typewriter
9042
9043 \backslash
9044 subsection
9045 \family default
9046  (2.7), 
9047 \family typewriter
9048
9049 \backslash
9050 subsubsection
9051 \family default
9052  (2.7), 
9053 \family typewriter
9054
9055 \backslash
9056 paragraph
9057 \family default
9058  (2.7), 
9059 \family typewriter
9060
9061 \backslash
9062 facility
9063 \family default
9064  (2.10), 
9065 \family typewriter
9066
9067 \backslash
9068 begin{displaymath}
9069 \family default
9070  (2.12), 
9071 \family typewriter
9072
9073 \backslash
9074 begin{equation}
9075 \family default
9076  (2.12), 
9077 \family typewriter
9078
9079 \backslash
9080 begin{eqnarray}
9081 \family default
9082  (2.12), 
9083 \family typewriter
9084
9085 \backslash
9086 begin{mathletters}
9087 \family default
9088  (2.12), 
9089 \family typewriter
9090
9091 \backslash
9092 begin{thebibliography}
9093 \family default
9094  (2.13.1), 
9095 \family typewriter
9096
9097 \backslash
9098 bibitem
9099 \family default
9100  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9101  graphicx figure commands (2.14.1), 
9102 \family typewriter
9103
9104 \backslash
9105 begin{table}
9106 \family default
9107  (2.15.4), 
9108 \family typewriter
9109
9110 \backslash
9111 begin{tabular}
9112 \family default
9113  (2.15.4), 
9114 \family typewriter
9115
9116 \backslash
9117 caption
9118 \family default
9119  (2.15.4), 
9120 \family typewriter
9121
9122 \backslash
9123 label
9124 \family default
9125  (2.15.4, amongst other places), 
9126 \family typewriter
9127
9128 \backslash
9129 tablerefs
9130 \family default
9131  (2.15.5), 
9132 \family typewriter
9133
9134 \backslash
9135 tablecomments
9136 \family default
9137  (2.15.5), 
9138 \family typewriter
9139
9140 \backslash
9141 url
9142 \family default
9143  (2.17.4), 
9144 \family typewriter
9145
9146 \backslash
9147 end{document}
9148 \family default
9149  (2.18).
9150 \end_layout
9151
9152 \begin_layout Standard
9153 The following style options also work correctly: 
9154 \family typewriter
9155 longabstract
9156 \family default
9157  (2.4), 
9158 \family typewriter
9159 preprint
9160 \family default
9161  (3.2.1), 
9162 \family typewriter
9163 preprint2
9164 \family default
9165  (3.2.2), 
9166 \family typewriter
9167 eqsecnum
9168 \family default
9169  (3.3), 
9170 \family typewriter
9171 flushrt
9172 \family default
9173  (3.4).
9174  Simply put them in the 
9175 \family sans
9176 Options
9177 \family default
9178  box in 
9179 \family sans
9180 Layout\SpecialChar menuseparator
9181 Document
9182 \family default
9183 .
9184 \end_layout
9185
9186 \begin_layout Subsubsection
9187 Things that work, but require more comment
9188 \end_layout
9189
9190 \begin_layout Standard
9191 The following items work, but require a little more discussion:
9192 \end_layout
9193
9194 \begin_layout Itemize
9195 These items are reserved for use by the journal editors, but you can put
9196  them into the \SpecialChar LaTeX
9197  preamble if you feel compelled to do so: 
9198 \family typewriter
9199
9200 \backslash
9201 received
9202 \family default
9203
9204 \family typewriter
9205
9206 \backslash
9207 revised
9208 \family default
9209
9210 \family typewriter
9211
9212 \backslash
9213 accepted
9214 \family default
9215
9216 \family typewriter
9217
9218 \backslash
9219 ccc
9220 \family default
9221
9222 \family typewriter
9223
9224 \backslash
9225 cpright
9226 \family default
9227  (all from 2.1.3)
9228 \end_layout
9229
9230 \begin_layout Itemize
9231 These items may be placed in the \SpecialChar LaTeX
9232  preamble, and are included as blanks in
9233  the template file: 
9234 \family typewriter
9235
9236 \backslash
9237 slugcomment
9238 \family default
9239  (2.1.4), 
9240 \family typewriter
9241
9242 \backslash
9243 shorttitle
9244 \family default
9245  (2.1.5), 
9246 \family typewriter
9247
9248 \backslash
9249 shortauthors
9250 \family default
9251  (2.1.5)
9252 \end_layout
9253
9254 \begin_layout Itemize
9255
9256 \family typewriter
9257
9258 \backslash
9259 email
9260 \family default
9261  (2.3) – can only be used 
9262 \begin_inset Quotes eld
9263 \end_inset
9264
9265 standalone
9266 \begin_inset Quotes erd
9267 \end_inset
9268
9269 , not in the middle of a paragraph.
9270  Use \SpecialChar TeX
9271  code if you need to embed it.
9272 \end_layout
9273
9274 \begin_layout Itemize
9275
9276 \family typewriter
9277
9278 \backslash
9279 and
9280 \family default
9281  (2.3) – will have extra {} after it.
9282  This should not cause an error.
9283 \end_layout
9284
9285 \begin_layout Itemize
9286
9287 \family typewriter
9288
9289 \backslash
9290 notetoeditor
9291 \family default
9292  (2.6) – can only be used 
9293 \begin_inset Quotes eld
9294 \end_inset
9295
9296 standalone
9297 \begin_inset Quotes erd
9298 \end_inset
9299
9300 , not in the middle of a paragraph.
9301  Use \SpecialChar TeX
9302  code if you need to embed it.
9303 \end_layout
9304
9305 \begin_layout Itemize
9306
9307 \family typewriter
9308
9309 \backslash
9310 placetable
9311 \family default
9312  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9313  hand
9314 \end_layout
9315
9316 \begin_layout Itemize
9317
9318 \family typewriter
9319
9320 \backslash
9321 placefigure
9322 \family default
9323  (2.8) – same as for 
9324 \family typewriter
9325
9326 \backslash
9327 placetable
9328 \end_layout
9329
9330 \begin_layout Itemize
9331
9332 \family typewriter
9333
9334 \backslash
9335 acknowledgements
9336 \family default
9337  (2.9) – will have extra {} after it.
9338  This should not cause an error.
9339 \end_layout
9340
9341 \begin_layout Itemize
9342
9343 \family typewriter
9344
9345 \backslash
9346 appendix
9347 \family default
9348  (2.11) – will have extra {} after it.
9349  This should not cause an error.
9350 \end_layout
9351
9352 \begin_layout Itemize
9353
9354 \family typewriter
9355
9356 \backslash
9357 figcaption
9358 \family default
9359  (2.14.2) – you can insert an optional filename argument by placing the cursor
9360  at the beginning of the text and selecting 
9361 \family sans
9362 Insert\SpecialChar menuseparator
9363 Short Title
9364 \family default
9365 .
9366  
9367 \begin_inset Quotes eld
9368 \end_inset
9369
9370 Short Title
9371 \begin_inset Quotes erd
9372 \end_inset
9373
9374  inserts an optional argument of the type needed by 
9375 \family typewriter
9376
9377 \backslash
9378 figcaption
9379 \family default
9380 .
9381  Hopefully it will be renamed someday.
9382 \end_layout
9383
9384 \begin_layout Itemize
9385
9386 \family typewriter
9387
9388 \backslash
9389 objectname
9390 \family default
9391  (2.17.1) – same as 
9392 \family typewriter
9393
9394 \backslash
9395 figcaption
9396 \family default
9397  for the catalog ID optional parameter
9398 \end_layout
9399
9400 \begin_layout Itemize
9401
9402 \family typewriter
9403
9404 \backslash
9405 dataset
9406 \family default
9407  (2.17.1) – same as 
9408 \family typewriter
9409
9410 \backslash
9411 figcaption
9412 \family default
9413  for the catalog ID optional parameter
9414 \end_layout
9415
9416 \begin_layout Subsubsection
9417 Things not implemented, use \SpecialChar TeX
9418  code
9419 \end_layout
9420
9421 \begin_layout Standard
9422
9423 \family typewriter
9424
9425 \backslash
9426 altaffilmark
9427 \family default
9428  (2.3), 
9429 \family typewriter
9430
9431 \backslash
9432 altaffiltext
9433 \family default
9434  (2.3), 
9435 \family typewriter
9436
9437 \backslash
9438 eqnum
9439 \family default
9440  (2.12), 
9441 \family typewriter
9442
9443 \backslash
9444 setcounter{equation}
9445 \family default
9446  (2.12), Journal name abbreviations (2.13.4), 
9447 \family typewriter
9448
9449 \backslash
9450 figurenum
9451 \family default
9452  (2.14.1), 
9453 \family typewriter
9454
9455 \backslash
9456 epsscale
9457 \family default
9458  (2.14.1), 
9459 \family typewriter
9460
9461 \backslash
9462 plotone
9463 \family default
9464  (2.14.1), 
9465 \family typewriter
9466
9467 \backslash
9468 plottwo
9469 \family default
9470  (2.14.1), 
9471 \family typewriter
9472
9473 \backslash
9474 tablenum
9475 \family default
9476  (2.15.4), 
9477 \family typewriter
9478
9479 \backslash
9480 tableline
9481 \family default
9482  (2.15.4, insert it as the first element in the lefthand cell after where
9483  you want it.
9484  Don't use any of \SpecialChar LyX
9485 's rules in the table), 
9486 \family typewriter
9487
9488 \backslash
9489 tablenotemark
9490 \family default
9491  (2.15.5), 
9492 \family typewriter
9493
9494 \backslash
9495 tablenotetext
9496 \family default
9497  (2.15.5), much of Misc (2.17, except 
9498 \family typewriter
9499
9500 \backslash
9501 objectname
9502 \family default
9503
9504 \family typewriter
9505
9506 \backslash
9507 dataset
9508 \family default
9509
9510 \family typewriter
9511
9512 \backslash
9513 url
9514 \family default
9515 , and 
9516 \family typewriter
9517
9518 \backslash
9519 email
9520 \family default
9521 ; see above), 
9522 \family typewriter
9523
9524 \backslash
9525 singlespace
9526 \family default
9527  (3.1), 
9528 \family typewriter
9529
9530 \backslash
9531 doublespace
9532 \family default
9533  (3.1), 
9534 \family typewriter
9535
9536 \backslash
9537 onecolumn
9538 \family default
9539  (3.2), 
9540 \family typewriter
9541
9542 \backslash
9543 twocolumn
9544 \family default
9545  (3.2)
9546 \end_layout
9547
9548 \begin_layout Subsubsection
9549 Things that cannot be implemented
9550 \end_layout
9551
9552 \begin_layout Standard
9553 \SpecialChar ldots
9554  at least in any meaningful sort of way, so I suggest ignoring them.
9555  They are the references environment (2.13.3), and the deluxetable environment
9556  (2.15).
9557  If you really, really need to use deluxetable, I suggest editing it in
9558  a separate file with a text editor, then using 
9559 \family sans
9560 Insert\SpecialChar menuseparator
9561 Child
9562 \begin_inset space ~
9563 \end_inset
9564
9565 Document
9566 \family default
9567  to include it in your \SpecialChar LyX
9568  document.
9569  See the 
9570 \family typewriter
9571 aas_sample.lyx
9572 \family default
9573  file to see an example of this.
9574 \end_layout
9575
9576 \begin_layout Subsection
9577 FAQs, Tips, Tricks, and Other Ruminations
9578 \end_layout
9579
9580 \begin_layout Subsubsection
9581 Getting \SpecialChar LyX
9582  and AAS\SpecialChar TeX
9583  to cooperate
9584 \end_layout
9585
9586 \begin_layout Standard
9587 It can be a bit tricky to get \SpecialChar LyX
9588  to recognize a new layout and document class.
9589  When all else fails, do this:
9590 \end_layout
9591
9592 \begin_layout Enumerate
9593 Make certain that \SpecialChar LaTeX
9594  can find AAS\SpecialChar TeX
9595 .
9596  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9597  distribution into a
9598  directory completely unrelated to \SpecialChar LaTeX
9599  or AAS\SpecialChar TeX
9600  and run \SpecialChar LaTeX
9601  on 
9602 \family typewriter
9603 sample.tex
9604 \family default
9605 .
9606 \end_layout
9607
9608 \begin_layout Enumerate
9609 Make certain that 
9610 \family typewriter
9611 aastex.layout
9612 \family default
9613  appears in \SpecialChar LyX
9614 's 
9615 \family typewriter
9616 layouts
9617 \family default
9618  folder
9619 \end_layout
9620
9621 \begin_layout Enumerate
9622 Rerun 
9623 \family sans
9624 Tools\SpecialChar menuseparator
9625 Reconfigure
9626 \family default
9627  in \SpecialChar LyX
9628 , then restart \SpecialChar LyX
9629 .
9630 \end_layout
9631
9632 \begin_layout Enumerate
9633 Open a regular new file, not from a template.
9634  Does AAS\SpecialChar TeX
9635  appear in the class list in 
9636 \family sans
9637 Document\SpecialChar menuseparator
9638 Settings
9639 \family default
9640 ?
9641 \end_layout
9642
9643 \begin_layout Standard
9644 If you get a warning from an existing AAS\SpecialChar TeX
9645  document about not being able
9646  to find the AAS\SpecialChar TeX
9647  layout or a message about 
9648 \begin_inset Quotes eld
9649 \end_inset
9650
9651 You should not mix title layouts with normal ones
9652 \begin_inset Quotes erd
9653 \end_inset
9654
9655 , things haven't been installed correctly.
9656 \end_layout
9657
9658 \begin_layout Subsubsection
9659 \SpecialChar LaTeX
9660  error processing a table 
9661 \end_layout
9662
9663 \begin_layout Standard
9664 \SpecialChar LyX
9665 , by default, attempts to center the table caption/title.
9666  This seems to produce a bad interaction in AAS\SpecialChar TeX
9667  so you should click somewhere
9668  in the caption/title, then select 
9669 \family sans
9670 Edit\SpecialChar menuseparator
9671 Paragraph
9672 \begin_inset space ~
9673 \end_inset
9674
9675 Settings
9676 \family default
9677 , then set the 
9678 \family sans
9679 Alignment
9680 \family default
9681  to 
9682 \family sans
9683 Block
9684 \family default
9685 .
9686  This took care of it for me.
9687 \end_layout
9688
9689 \begin_layout Subsubsection
9690 References
9691 \end_layout
9692
9693 \begin_layout Standard
9694 A couple of things: 1) I have noticed some funny spacing in the reference
9695  entries in the text.
9696  When you enter the bibliography item data, make sure their is 
9697 \emph on
9698 no
9699 \emph default
9700  space between the last author and the parenthesis setting off the year;
9701  
9702 \emph on
9703 e.
9704 \begin_inset space \thinspace{}
9705 \end_inset
9706
9707 g.
9708 \begin_inset space \space{}
9709 \end_inset
9710
9711
9712 \emph default
9713 type 
9714 \family typewriter
9715 Ressler(1992)
9716 \family default
9717 , not 
9718 \family typewriter
9719 Ressler (1992)
9720 \family default
9721 .
9722  2) Entering the references at all is not obvious.
9723  The easiest thing is to start typing your first reference at the end of
9724  the document, then mark it as type 
9725 \family sans
9726 References
9727 \family default
9728 .
9729  That will put a small gray box in front of what you just typed.
9730  Click on the box to fill in the rest of the information.
9731  For new references, go to the end of an existing reference and press return.
9732  That will create a new line with its own box, etc.
9733 \end_layout
9734
9735 \begin_layout Subsubsection
9736 Including EPS files
9737 \end_layout
9738
9739 \begin_layout Standard
9740 Even though AAS\SpecialChar TeX
9741  provides its own figure commands (
9742 \family typewriter
9743
9744 \backslash
9745 plotone
9746 \family default
9747 , for example), I much prefer \SpecialChar LaTeX
9748 's standard figure commands (with the default
9749  graphicx).
9750  You can insert the 
9751 \family typewriter
9752
9753 \backslash
9754 plotone
9755 \family default
9756 , etc.
9757 \begin_inset space ~
9758 \end_inset
9759
9760 commands as \SpecialChar TeX
9761  code into a Figure Float box if you desire, but I never have
9762  much luck getting the layout right.
9763  With the standard graphics, \SpecialChar LyX
9764  will insert a 
9765 \family typewriter
9766
9767 \backslash
9768 usepackage{graphicx}
9769 \family default
9770  command into the \SpecialChar LaTeX
9771  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9772  way,
9773  interspersing the figures in the text.
9774  I believe ApJ accepts figures exactly this way now; AJ might still use
9775  the 
9776 \begin_inset Quotes eld
9777 \end_inset
9778
9779 stack everything at the end
9780 \begin_inset Quotes erd
9781 \end_inset
9782
9783  technique.
9784 \end_layout
9785
9786 \begin_layout Subsubsection
9787 Things I could have done, but didn't
9788 \end_layout
9789
9790 \begin_layout Standard
9791 There are a few 
9792 \begin_inset Quotes eld
9793 \end_inset
9794
9795 pretty
9796 \begin_inset Quotes erd
9797 \end_inset
9798
9799  things I could have implemented, but chose not to.
9800  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9801  window,
9802  even though it is double-spaced in the paper manuscript.
9803  Also, I chose not to make separate layouts for the preprint and preprint2
9804  styles.
9805  Since I assume you will spend most of your time in the plain manuscript
9806  mode anyway, I decided not to chew up more disk space with this.
9807  
9808 \end_layout
9809
9810 \begin_layout Subsection
9811 Final Caveat
9812 \end_layout
9813
9814 \begin_layout Standard
9815 Your mileage may vary.
9816  I've now had papers published by both ApJ and AJ that have had 98% of the
9817  effort done in \SpecialChar LyX
9818 ; the last 2% was the \SpecialChar LaTeX
9819  post-processing and a few cleanups.
9820  I have had no trouble with the submission process, and I'm sure the journals
9821  were never aware that there might be a difference.
9822  So, go forth and publish!
9823 \end_layout
9824
9825 \begin_layout Section
9826 AMS \SpecialChar LaTeX
9827
9828 \end_layout
9829
9830 \begin_layout Standard
9831 by 
9832 \noun on
9833 David Johnson
9834 \noun default
9835 ; updated by 
9836 \noun on
9837 Richard Heck
9838 \end_layout
9839
9840 \begin_layout Standard
9841 \begin_inset VSpace bigskip
9842 \end_inset
9843
9844
9845 \end_layout
9846
9847 \begin_layout Standard
9848 \noindent
9849 The AMS \SpecialChar LaTeX
9850  layouts are set up to conform to suggested styles for mathematical
9851  papers to be submitted to American Mathematical Society publications.
9852  The layouts are not tailored to a specific journal, but easily can be.
9853  You should refer to the AMS documentation for specific instructions for
9854  each journal (usually it will entail only changing a single line in the
9855  \SpecialChar TeX
9856  output).
9857  That documentation is available on the Web at 
9858 \begin_inset Flex URL
9859 status open
9860
9861 \begin_layout Plain Layout
9862
9863 http://www.ams.org
9864 \end_layout
9865
9866 \end_inset
9867
9868  or by ftp at 
9869 \begin_inset Flex URL
9870 status open
9871
9872 \begin_layout Plain Layout
9873
9874 ftp://ftp.ams.org/pub/tex/amslatex/
9875 \end_layout
9876
9877 \end_inset
9878
9879 .
9880  These layouts are appropriate, and useful, for any mathematical writing.
9881  
9882 \end_layout
9883
9884 \begin_layout Standard
9885 There are two basic AMS \SpecialChar LaTeX
9886  layouts: 
9887 \end_layout
9888
9889 \begin_layout Itemize
9890 amsart: The standard AMS article format.
9891 \end_layout
9892
9893 \begin_layout Itemize
9894 amsbook: the standard AMS book (really, monograph) format.
9895  
9896 \end_layout
9897
9898 \begin_layout Standard
9899 The layouts themselves contain only the minimum necessary to use the AMS
9900  classes.
9901  They do not, in particular, contain any of the `theorem' environments used
9902  for setting theorems, lemmas, and the like.
9903  These are contained, instead, in the 
9904 \begin_inset Flex Code
9905 status collapsed
9906
9907 \begin_layout Plain Layout
9908 Theorems (AMS)
9909 \end_layout
9910
9911 \end_inset
9912
9913  module, which is loaded by default when you select one of the AMS classes.
9914  (It can also be used with other classes and can be removed, if you would
9915  rather use something else.) Less commonly used environments are in the 
9916 \begin_inset Flex Code
9917 status collapsed
9918
9919 \begin_layout Plain Layout
9920 Theorems (AMS-Extended)
9921 \end_layout
9922
9923 \end_inset
9924
9925  module, which must be loaded manually.
9926 \end_layout
9927
9928 \begin_layout Standard
9929 By default, theorems and the like are numbered consecutively throughout
9930  the document, but this may be modified by loading the module 
9931 \begin_inset Flex Code
9932 status collapsed
9933
9934 \begin_layout Plain Layout
9935 Theorems (Order by Section)
9936 \end_layout
9937
9938 \end_inset
9939
9940  or, if you are using 
9941 \begin_inset Flex Code
9942 status collapsed
9943
9944 \begin_layout Plain Layout
9945 book (AMS)
9946 \end_layout
9947
9948 \end_inset
9949
9950 , the module 
9951 \begin_inset Flex Code
9952 status collapsed
9953
9954 \begin_layout Plain Layout
9955 Theorems (Order by Chapter)
9956 \end_layout
9957
9958 \end_inset
9959
9960 .
9961  These will number the results as 
9962 \begin_inset Formula $n.m$
9963 \end_inset
9964
9965 , where the first number refers to the section (or chapter) and the second
9966  refers to the total number of results so far in that section (or chapter).
9967  Many environments are also available unnumbered.
9968  These are indicated by an asterisk at the end.
9969  If you happen to want 
9970 \emph on
9971 only
9972 \emph default
9973  unnumbered results, the module 
9974 \begin_inset Flex Code
9975 status collapsed
9976
9977 \begin_layout Plain Layout
9978 Theorems (Starred)
9979 \end_layout
9980
9981 \end_inset
9982
9983  provides that option.
9984 \end_layout
9985
9986 \begin_layout Standard
9987 Note that these modules do not 
9988 \emph on
9989 have
9990 \emph default
9991  to be used with the AMS classes.
9992  It is perfectly possible to use the 
9993 \begin_inset Flex Code
9994 status collapsed
9995
9996 \begin_layout Plain Layout
9997 Theorems (AMS)
9998 \end_layout
9999
10000 \end_inset
10001
10002  module, and the others mentioned, with other classes, such as 
10003 \begin_inset Flex Code
10004 status collapsed
10005
10006 \begin_layout Plain Layout
10007 article
10008 \end_layout
10009
10010 \end_inset
10011
10012
10013 \begin_inset Flex Code
10014 status collapsed
10015
10016 \begin_layout Plain Layout
10017 report
10018 \end_layout
10019
10020 \end_inset
10021
10022
10023 \begin_inset Flex Code
10024 status collapsed
10025
10026 \begin_layout Plain Layout
10027 book (KOMA-script)
10028 \end_layout
10029
10030 \end_inset
10031
10032 , and so forth.
10033 \end_layout
10034
10035 \begin_layout Subsection
10036 What these layouts provide
10037 \end_layout
10038
10039 \begin_layout Standard
10040 There is a long list of included environments provided by these layouts.
10041  In AMS-\SpecialChar LaTeX
10042 , there is, in fact, an opportunity to define an unlimited variety
10043  of `theorem' environments.
10044  However, the AMS recommends the environments that are available in \SpecialChar LyX
10045 .
10046  
10047 \end_layout
10048
10049 \begin_layout Standard
10050 The following environments—as well as the standard environments, such as
10051  
10052 \begin_inset Flex Noun
10053 status collapsed
10054
10055 \begin_layout Plain Layout
10056 section
10057 \end_layout
10058
10059 \end_inset
10060
10061
10062 \begin_inset Flex Noun
10063 status collapsed
10064
10065 \begin_layout Plain Layout
10066 bibliography
10067 \end_layout
10068
10069 \end_inset
10070
10071
10072 \begin_inset Flex Noun
10073 status collapsed
10074
10075 \begin_layout Plain Layout
10076 title
10077 \end_layout
10078
10079 \end_inset
10080
10081
10082 \begin_inset Flex Noun
10083 status collapsed
10084
10085 \begin_layout Plain Layout
10086 author
10087 \end_layout
10088
10089 \end_inset
10090
10091 , and 
10092 \begin_inset Flex Noun
10093 status collapsed
10094
10095 \begin_layout Plain Layout
10096 date
10097 \end_layout
10098
10099 \end_inset
10100
10101 —are provided by 
10102 \begin_inset Flex Code
10103 status collapsed
10104
10105 \begin_layout Plain Layout
10106 article (AMS)
10107 \end_layout
10108
10109 \end_inset
10110
10111  and 
10112 \begin_inset Flex Code
10113 status collapsed
10114
10115 \begin_layout Plain Layout
10116 book (AMS)
10117 \end_layout
10118
10119 \end_inset
10120
10121 :
10122 \end_layout
10123
10124 \begin_layout Description
10125 Address This should be the author's permanent address.
10126 \end_layout
10127
10128 \begin_layout Description
10129 Current
10130 \begin_inset space ~
10131 \end_inset
10132
10133 Address This should be the author's temporary address at the time of submission,
10134  if different from the Address.
10135 \end_layout
10136
10137 \begin_layout Description
10138 Email Author's e-mail address
10139 \end_layout
10140
10141 \begin_layout Description
10142 URL Author's Web address, if desired.
10143 \end_layout
10144
10145 \begin_layout Description
10146 Keywords Key words or phrases used to identify specific topics discussed
10147  in the paper.
10148 \end_layout
10149
10150 \begin_layout Description
10151 Subjectclass These refer to the AMS Subject Classifications, published and
10152  described in 
10153 \emph on
10154 Mathematical Reviews
10155 \emph default
10156 .
10157  These are also available online at the AMS cites listed above.
10158 \end_layout
10159
10160 \begin_layout Description
10161 Thanks
10162 \end_layout
10163
10164 \begin_layout Description
10165 Dedicatory
10166 \end_layout
10167
10168 \begin_layout Description
10169 Translator
10170 \end_layout
10171
10172 \begin_layout Standard
10173 The following environments are provided by both the 
10174 \begin_inset Flex Code
10175 status collapsed
10176
10177 \begin_layout Plain Layout
10178 Theorems
10179 \end_layout
10180
10181 \end_inset
10182
10183  and 
10184 \begin_inset Flex Code
10185 status collapsed
10186
10187 \begin_layout Plain Layout
10188 Theorems (AMS)
10189 \end_layout
10190
10191 \end_inset
10192
10193  modules, in the latter case in both starred (unnumbered) and unstarred
10194  (numbered) versions.
10195  These same environments are provided only in the starred versions by the
10196  
10197 \begin_inset Flex Code
10198 status collapsed
10199
10200 \begin_layout Plain Layout
10201 Theorems (Starred)
10202 \end_layout
10203
10204 \end_inset
10205
10206  module:
10207 \end_layout
10208
10209 \begin_layout Theorem
10210 This is typically used for the statements of major results.
10211  
10212 \end_layout
10213
10214 \begin_layout Corollary*
10215 This is used for statements which follow fairly directly from previous statement
10216 s.
10217  Again, these can be major results.
10218  
10219 \end_layout
10220
10221 \begin_layout Lemma
10222 These are smaller results needed to prove other statements.
10223 \end_layout
10224
10225 \begin_layout Proposition
10226 These are less major results which (hopefully) add to the general theory
10227  being discussed.
10228 \end_layout
10229
10230 \begin_layout Conjecture
10231 These are statements provided without justification, which the author does
10232  not know how to prove, but which seem to be true (to the author, at least).
10233 \end_layout
10234
10235 \begin_layout Definition*
10236 Guess what this is for.
10237  The font is different for this environment than for the previous ones.
10238  
10239 \end_layout
10240
10241 \begin_layout Example*
10242 Used for examples illustrating proven results.
10243 \end_layout
10244
10245 \begin_layout Problem
10246 It's not really known what this is for.
10247  You should figure it out.
10248 \end_layout
10249
10250 \begin_layout Exercise*
10251 Write a description for this one.
10252 \end_layout
10253
10254 \begin_layout Remark
10255 This environment is also a type of theorem, usually a lesser sort of observation.
10256 \end_layout
10257
10258 \begin_layout Claim*
10259 Often used in the course of giving a proof of a larger result.
10260 \end_layout
10261
10262 \begin_layout Case
10263 Generally, these are used to break up long arguments, using specific instances
10264  of some condition.
10265  
10266 \end_layout
10267
10268 \begin_layout Case
10269 The numbering scheme for cases is on its own, not together with other numbered
10270  statements.
10271  
10272 \end_layout
10273
10274 \begin_layout Proof
10275 At the end of this environment, a QED symbol (usually a square, but it can
10276  vary with different styles) is placed.
10277  If you want to have other environments within this one—for example, Case
10278  environments—and have the QED symbol appear only after them, then the other
10279  environments need to be nested within the proof environment.
10280  See the section 
10281 \emph on
10282 Nesting Environments
10283 \emph default
10284  of the 
10285 \emph on
10286 User's Guide
10287 \emph default
10288  for information on nesting.
10289 \end_layout
10290
10291 \begin_layout Standard
10292 And these environments are provided by 
10293 \begin_inset Flex Code
10294 status collapsed
10295
10296 \begin_layout Plain Layout
10297 Theorems (AMS-Extended)
10298 \end_layout
10299
10300 \end_inset
10301
10302 :
10303 \end_layout
10304
10305 \begin_layout Criterion*
10306 A required condition.
10307 \end_layout
10308
10309 \begin_layout Algorithm*
10310 A general procedure to be used.
10311 \end_layout
10312
10313 \begin_layout Axiom*
10314 This is a property or statement taken as true within the system being discussed.
10315 \end_layout
10316
10317 \begin_layout Condition*
10318 Sometimes used to state a condition assumed within the present context of
10319  discussion.
10320 \end_layout
10321
10322 \begin_layout Note*
10323 Similar to a Remark.
10324 \end_layout
10325
10326 \begin_layout Notation*
10327 Used for the explanation of, yes, notation.
10328 \end_layout
10329
10330 \begin_layout Summary
10331 Do we really need to tell you? 
10332 \end_layout
10333
10334 \begin_layout Acknowledgement*
10335 Acknowledgement.
10336 \end_layout
10337
10338 \begin_layout Conclusion*
10339 Sometimes used at the end of a long train of argument.
10340 \end_layout
10341
10342 \begin_layout Fact
10343 Used in a way similar to Proposition, though perhaps lower on the scale.
10344 \end_layout
10345
10346 \begin_layout Standard
10347 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10348  and AMS fonts
10349  packages.
10350  They need to be available on your system in order to use these environments.
10351 \end_layout
10352
10353 \begin_layout Section
10354 AGU journals (
10355 \family sans
10356 aguplus
10357 \family default
10358 )
10359 \end_layout
10360
10361 \begin_layout Standard
10362 by 
10363 \shape smallcaps
10364 Martin Vermeer
10365 \end_layout
10366
10367 \begin_layout Subsection
10368 Description
10369 \end_layout
10370
10371 \begin_layout Standard
10372 These are the layout files for some of the journals of the American Geophysical
10373  Society.
10374  It is assumed that you have both the AGU's own class files and AGUplus
10375  installed (everything to be found at
10376 \begin_inset Flex URL
10377 status collapsed
10378
10379 \begin_layout Plain Layout
10380
10381 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10382 \end_layout
10383
10384 \end_inset
10385
10386 ).
10387 \end_layout
10388
10389 \begin_layout Subsection
10390 New styles
10391 \end_layout
10392
10393 \begin_layout Standard
10394 Redefined are 
10395 \family sans
10396 Paragraph
10397 \family default
10398
10399 \family sans
10400 Paragraph*
10401 \family default
10402 .
10403  They are still called this in the \SpecialChar LyX
10404  GUI, though their \SpecialChar LaTeX
10405  equivalents in the
10406  AGU classes are 
10407 \family sans
10408 Subsubsubsection
10409 \family default
10410  and 
10411 \family sans
10412 Subsubsubsection*
10413 \family default
10414 .
10415 \end_layout
10416
10417 \begin_layout Standard
10418 Newly defined styles are 
10419 \family sans
10420 Left_Header
10421 \family default
10422
10423 \family sans
10424 Right_Header
10425 \family default
10426
10427 \family sans
10428 Received
10429 \family default
10430
10431 \family sans
10432 Revised
10433 \family default
10434
10435 \family sans
10436 Accepted
10437 \family default
10438
10439 \family sans
10440 CCC
10441 \family default
10442
10443 \family sans
10444 PaperId
10445 \family default
10446
10447 \family sans
10448 AuthorAddr
10449 \family default
10450
10451 \family sans
10452 SlugComment
10453 \family default
10454 .
10455  These are mostly manuscript attributes and defined in the AGU class documentati
10456 on.
10457 \end_layout
10458
10459 \begin_layout Standard
10460 I suspect this is still badly incomplete.
10461 \end_layout
10462
10463 \begin_layout Subsection
10464 New floats
10465 \end_layout
10466
10467 \begin_layout Standard
10468
10469 \family sans
10470 Planotable
10471 \family default
10472  and 
10473 \family sans
10474 Plate
10475 \family default
10476 .
10477  We also have a new 
10478 \family sans
10479 Table_Caption
10480 \family default
10481 .
10482 \end_layout
10483
10484 \begin_layout Subsection
10485 Supported journals
10486 \end_layout
10487
10488 \begin_layout Itemize
10489
10490 \emph on
10491 Journal of Geophysical Research
10492 \emph default
10493
10494 \family typewriter
10495 jgrga.layout
10496 \family default
10497  — Martin Vermeer
10498 \end_layout
10499
10500 \begin_layout Standard
10501 Add your own, it isn't so hard! Look at the 
10502 \family typewriter
10503 jgrga.layout
10504 \family default
10505  example and 
10506 \family typewriter
10507 aguplus.inc
10508 \family default
10509 .
10510 \end_layout
10511
10512 \begin_layout Subsection
10513 Bugs and things to remember
10514 \end_layout
10515
10516 \begin_layout Standard
10517 In order to use the new layouts, you must remember to do the following for
10518  a new document:
10519 \end_layout
10520
10521 \begin_layout Enumerate
10522
10523 \emph on
10524 Turn off babel
10525 \emph default
10526 .
10527  This can be done in the 
10528 \family sans
10529 Layout\SpecialChar menuseparator
10530 Document
10531 \family default
10532  or 
10533 \family sans
10534 Document\SpecialChar menuseparator
10535 Settings
10536 \family default
10537  menu item.
10538  (AGU articles are always in English, right? So 
10539 \emph on
10540 don't
10541 \emph default
10542  choose a language.)
10543 \end_layout
10544
10545 \begin_layout Enumerate
10546 Enter 
10547 \family typewriter
10548 jgrga
10549 \family default
10550  into the document's 
10551 \family sans
10552 Extra Options
10553 \family default
10554  field.
10555  (Yes, this is a bug.)
10556 \end_layout
10557
10558 \begin_layout Enumerate
10559 Make sure you use the 
10560 \family typewriter
10561 agu.bst
10562 \family default
10563  bibliography style, by entering 
10564 \family sans
10565 agu
10566 \family default
10567  into the second field of the Bib\SpecialChar TeX
10568  inset.
10569  None of the standard styles will do.
10570 \end_layout
10571
10572 \begin_layout Section
10573 Broadway
10574 \end_layout
10575
10576 \begin_layout Standard
10577 by 
10578 \shape smallcaps
10579 Garst Reese
10580 \end_layout
10581
10582 \begin_layout Subsection
10583 Introduction
10584 \end_layout
10585
10586 \begin_layout Standard
10587 Broadway is for writing plays.
10588  The format is more decorative than Hollywood, and much less standardized.
10589  This format should be suitable for workshops.
10590 \end_layout
10591
10592 \begin_layout Subsection
10593 Special problems
10594 \end_layout
10595
10596 \begin_layout Standard
10597 The same as in Hollywood.
10598 \end_layout
10599
10600 \begin_layout Subsection
10601 Special features
10602 \end_layout
10603
10604 \begin_layout Standard
10605 Insert the 
10606 \family sans
10607 Speaker
10608 \family default
10609  names as labels then cross-reference the label to insert the name.
10610  The cross-reference dialog will show the current cast of characters.
10611 \end_layout
10612
10613 \begin_layout Subsection
10614 Paper size and Margins
10615 \end_layout
10616
10617 \begin_layout Standard
10618 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10619 \end_layout
10620
10621 \begin_layout Subsection
10622 Environments
10623 \end_layout
10624
10625 \begin_layout Standard
10626 The following environments are available.
10627  You can use broadway.bind to get the bind keys shown at the right.
10628 \end_layout
10629
10630 \begin_layout Itemize
10631
10632 \family sans
10633 Standard
10634 \begin_inset Newline newline
10635 \end_inset
10636
10637
10638 \family default
10639 You should not have to use this, but it is here for anything that does not
10640  fit otherwise.
10641 \end_layout
10642
10643 \begin_layout Itemize
10644
10645 \family sans
10646 Narrative
10647 \begin_inset space \hfill{}
10648 \end_inset
10649
10650 M-z n
10651 \begin_inset Newline newline
10652 \end_inset
10653
10654
10655 \family default
10656 Used to describe stage setting and the action.
10657  First use of speaker names in all CAPs.
10658 \end_layout
10659
10660 \begin_layout Itemize
10661
10662 \family sans
10663 ACT
10664 \begin_inset space \hfill{}
10665 \end_inset
10666
10667 M-z a
10668 \begin_inset Newline newline
10669 \end_inset
10670
10671
10672 \family default
10673 Automatically numbered.
10674  On screen it will be arabic, but will print as Roman.
10675 \end_layout
10676
10677 \begin_layout Itemize
10678
10679 \family sans
10680 ACT*
10681 \begin_inset space \hfill{}
10682 \end_inset
10683
10684 M-z S at
10685 \begin_inset Newline newline
10686 \end_inset
10687
10688
10689 \family default
10690 Subtitle for 
10691 \family sans
10692 ACT.
10693
10694 \family default
10695  It is just centered text.
10696 \end_layout
10697
10698 \begin_layout Itemize
10699
10700 \family sans
10701 SCENE
10702 \begin_inset space \hfill{}
10703 \end_inset
10704
10705 M-z S-S
10706 \begin_inset Newline newline
10707 \end_inset
10708
10709
10710 \family default
10711 Not automatically numbered.
10712  You supply the number.
10713  This is because I couldn't figure out how.
10714 \end_layout
10715
10716 \begin_layout Itemize
10717
10718 \family sans
10719 AT_RISE:
10720 \begin_inset space \hfill{}
10721 \end_inset
10722
10723 M-z S-R
10724 \begin_inset Newline newline
10725 \end_inset
10726
10727
10728 \family default
10729 A special case of Narrative to describe the setting and action as the curtain
10730  rises.
10731 \end_layout
10732
10733 \begin_layout Itemize
10734
10735 \family sans
10736 Speaker
10737 \begin_inset space \hfill{}
10738 \end_inset
10739
10740 M-z s
10741 \begin_inset Newline newline
10742 \end_inset
10743
10744
10745 \family default
10746 The speaker's (actor's) title, centered in all CAPS.
10747 \end_layout
10748
10749 \begin_layout Itemize
10750
10751 \family sans
10752 Parenthetical
10753 \begin_inset space \hfill{}
10754 \end_inset
10755
10756 M-z p
10757 \begin_inset Newline newline
10758 \end_inset
10759
10760
10761 \family default
10762 Instructions to the speaker.
10763  The parentheses are automatically inserted.
10764  The ( will appear on screen, but both will be in the printed play.
10765  This environment is only used within 
10766 \family sans
10767 Dialogue
10768 \family default
10769 .
10770 \end_layout
10771
10772 \begin_layout Itemize
10773
10774 \family sans
10775 Dialogue
10776 \begin_inset space \hfill{}
10777 \end_inset
10778
10779 M-z d
10780 \begin_inset Newline newline
10781 \end_inset
10782
10783
10784 \family default
10785 What the Speaker says.
10786 \end_layout
10787
10788 \begin_layout Itemize
10789
10790 \family sans
10791 CURTAIN
10792 \begin_inset space \hfill{}
10793 \end_inset
10794
10795 M-z S-C
10796 \begin_inset Newline newline
10797 \end_inset
10798
10799
10800 \family default
10801 The curtain comes down.
10802 \end_layout
10803
10804 \begin_layout Itemize
10805
10806 \family sans
10807 Title
10808 \begin_inset space \hfill{}
10809 \end_inset
10810
10811 M-z S-T
10812 \end_layout
10813
10814 \begin_layout Itemize
10815
10816 \family sans
10817 Author
10818 \begin_inset space \hfill{}
10819 \end_inset
10820
10821 M-z S-A
10822 \end_layout
10823
10824 \begin_layout Itemize
10825
10826 \family sans
10827 Right_Address
10828 \begin_inset space \hfill{}
10829 \end_inset
10830
10831 M-z r
10832 \end_layout
10833
10834 \begin_layout Standard
10835 Hello there.
10836 \end_layout
10837
10838 \begin_layout Section
10839 Dinbrief
10840 \end_layout
10841
10842 \begin_layout Standard
10843 The document class 
10844 \family sans
10845 dinbrief
10846 \family default
10847  can be used to type letters according to German conventions.
10848  A template file is included in 
10849 \family typewriter
10850 .../lyx/share/templates
10851 \family default
10852  for you to use as a starting point.
10853 \end_layout
10854
10855 \begin_layout Section
10856 EGS journals (
10857 \family sans
10858 egs
10859 \family default
10860 )
10861 \end_layout
10862
10863 \begin_layout Standard
10864 by 
10865 \shape smallcaps
10866 Martin Vermeer
10867 \end_layout
10868
10869 \begin_layout Subsection
10870 Description
10871 \end_layout
10872
10873 \begin_layout Standard
10874 This is the layout file for the European Geophysical Society journals.
10875  The needed 
10876 \family typewriter
10877 egs.cls
10878 \family default
10879  can be downloaded from the web site of the EGS under 
10880 \begin_inset Flex URL
10881 status collapsed
10882
10883 \begin_layout Plain Layout
10884
10885 www.copernicus.org
10886 \end_layout
10887
10888 \end_inset
10889
10890 .
10891 \end_layout
10892
10893 \begin_layout Subsection
10894 New styles
10895 \end_layout
10896
10897 \begin_layout Standard
10898
10899 \family sans
10900 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10901  Accepted
10902 \family default
10903
10904 \family sans
10905 Offsets
10906 \family default
10907 .
10908  The current layout file is unfortunately very unmodular and would benefit
10909  from using the various 
10910 \family typewriter
10911 std*.inc
10912 \family default
10913  file inclusions.
10914 \end_layout
10915
10916 \begin_layout Section
10917 Elsevier Journals
10918 \end_layout
10919
10920 \begin_layout Standard
10921 See the \SpecialChar LyX
10922  template file 
10923 \family typewriter
10924 elsarticle.lyx
10925 \family default
10926 .
10927  It contains all infos you need.
10928 \end_layout
10929
10930 \begin_layout Section
10931 Foils [aka 
10932 \family sans
10933 Foil\SpecialChar TeX
10934
10935 \family default
10936 ]
10937 \begin_inset CommandInset label
10938 LatexCommand label
10939 name "sec:foiltex"
10940
10941 \end_inset
10942
10943
10944 \end_layout
10945
10946 \begin_layout Standard
10947 by 
10948 \noun on
10949 Allan Rae
10950 \end_layout
10951
10952 \begin_layout Subsection
10953 Introduction
10954 \end_layout
10955
10956 \begin_layout Standard
10957 This section describes how to use \SpecialChar LyX
10958  to make slides for overhead projectors.
10959  There are two document classes that can do this: the default slides class
10960  and the 
10961 \family sans
10962 Foil\SpecialChar TeX
10963
10964 \family default
10965  slides class.
10966  This section documents the latter.
10967 \end_layout
10968
10969 \begin_layout Standard
10970 I'm going to say this again, nice and clear, so that there's no misunderstanding
10971 :
10972 \end_layout
10973
10974 \begin_layout Standard
10975 \begin_inset VSpace bigskip
10976 \end_inset
10977
10978
10979 \end_layout
10980
10981 \begin_layout Standard
10982 \align center
10983
10984 \size large
10985 This section documents the class 
10986 \begin_inset Quotes eld
10987 \end_inset
10988
10989
10990 \family sans
10991 FoilTeX
10992 \family default
10993
10994 \begin_inset Quotes erd
10995 \end_inset
10996
10997  
10998 \emph on
10999 only.
11000 \end_layout
11001
11002 \begin_layout Standard
11003 \begin_inset VSpace bigskip
11004 \end_inset
11005
11006
11007 \end_layout
11008
11009 \begin_layout Standard
11010 If you're looking for the documentation for 
11011 \begin_inset Quotes eld
11012 \end_inset
11013
11014
11015 \family sans
11016 slides (default)
11017 \family default
11018
11019 \begin_inset Quotes erd
11020 \end_inset
11021
11022 , check out section
11023 \begin_inset space ~
11024 \end_inset
11025
11026
11027 \begin_inset CommandInset ref
11028 LatexCommand ref
11029 reference "sec:slitex"
11030
11031 \end_inset
11032
11033 .
11034  If your machine doesn't have the 
11035 \family sans
11036 foils
11037 \family default
11038  class 
11039 \family sans
11040 FoilTeX
11041 \family default
11042  installed, you'll probably have to use the default 
11043 \family sans
11044 slides
11045 \family default
11046  class, which isn't quite as good as 
11047 \family sans
11048 foils.
11049 \end_layout
11050
11051 \begin_layout Standard
11052 The 
11053 \family sans
11054 foils
11055 \family default
11056  class is designed for use with version
11057 \begin_inset space ~
11058 \end_inset
11059
11060 2.1 of the 
11061 \family sans
11062 foils.cls
11063 \family default
11064  \SpecialChar LaTeX
11065  class file which is now an integral part of \SpecialChar LaTeX2e
11066 .
11067 \end_layout
11068
11069 \begin_layout Subsection
11070 Getting Started
11071 \end_layout
11072
11073 \begin_layout Standard
11074 Obviously, to use this document class, you need to select 
11075 \family sans
11076 FoilTeX
11077 \family default
11078  from the 
11079 \family sans
11080 Class
11081 \family default
11082  entry in the 
11083 \family sans
11084 Document
11085 \begin_inset space ~
11086 \end_inset
11087
11088 Layout
11089 \family default
11090  dialog.
11091  There are some settings in the 
11092 \family sans
11093 Document
11094 \begin_inset space ~
11095 \end_inset
11096
11097 Layout
11098 \family default
11099  dialog that you should know about that are specific to this class:
11100 \end_layout
11101
11102 \begin_layout Itemize
11103 Don't change the options 
11104 \family sans
11105 Sides
11106 \family default
11107  and 
11108 \family sans
11109 Columns
11110 \family default
11111  on the 
11112 \family sans
11113 Document
11114 \begin_inset space ~
11115 \end_inset
11116
11117 Layout
11118 \family default
11119  dialog.
11120  They're ignored by the 
11121 \family sans
11122 foils
11123 \family default
11124  class.
11125 \end_layout
11126
11127 \begin_layout Itemize
11128 The default font size is 20
11129 \begin_inset space \thinspace{}
11130 \end_inset
11131
11132 pt with the other options being 17
11133 \begin_inset space \thinspace{}
11134 \end_inset
11135
11136 pt, 25
11137 \begin_inset space \thinspace{}
11138 \end_inset
11139
11140 pt and 30
11141 \begin_inset space \thinspace{}
11142 \end_inset
11143
11144 pt.
11145 \end_layout
11146
11147 \begin_layout Itemize
11148 The default font is 
11149 \family sans
11150 sans
11151 \family default
11152  
11153 \family sans
11154 serif
11155 \family default
11156  but all math equations are still typeset in the usual roman font.
11157 \end_layout
11158
11159 \begin_layout Itemize
11160
11161 \family sans
11162 Foil\SpecialChar TeX
11163
11164 \family default
11165  supports A4 and Letter paper sizes as well as a special size for working
11166  with 35
11167 \begin_inset space \thinspace{}
11168 \end_inset
11169
11170 mm slides.
11171  It doesn't support A5, B5, legal or executive paper sizes.
11172 \end_layout
11173
11174 \begin_layout Itemize
11175 Don't bother changing the 
11176 \family sans
11177 Float Placement
11178 \family default
11179  settings because they are ignored anyway.
11180  All floats appear where they are defined in the text.
11181 \end_layout
11182
11183 \begin_layout Itemize
11184 The 
11185 \family sans
11186 Pagestyle
11187 \family default
11188  setting behaves a bit differently for this class.
11189  
11190 \family sans
11191 Foil\SpecialChar TeX
11192
11193 \family default
11194  provides extensive footer and header capabilities including a user-defined
11195  logo.
11196  See section
11197 \begin_inset space ~
11198 \end_inset
11199
11200
11201 \begin_inset CommandInset ref
11202 LatexCommand ref
11203 reference "sec:foilfoot"
11204
11205 \end_inset
11206
11207  for more details.
11208  The title page is treated differently to all other pages in the document
11209  and is 
11210 \emph on
11211 always
11212 \emph default
11213  unnumbered and 
11214 \emph on
11215 always
11216 \emph default
11217  has the logo centered at the bottom of the page (if one is defined).
11218  The possible page style choices and what they do are as follows:
11219 \end_layout
11220
11221 \begin_deeper
11222 \begin_layout Labeling
11223 \labelwidthstring MMMMMMM
11224
11225 \family sans
11226 \series bold
11227 empty
11228 \family default
11229 \series default
11230  The final output contains no page numbers, or other headers or footers
11231  (except footnotes of course).
11232  
11233 \end_layout
11234
11235 \begin_layout Labeling
11236 \labelwidthstring MMMMMMM
11237
11238 \family sans
11239 \series bold
11240 plain
11241 \family default
11242 \series default
11243  The final output contains page numbers centered at the bottom of the page.
11244  No other headings or footers (other than footnotes).
11245 \end_layout
11246
11247 \begin_layout Labeling
11248 \labelwidthstring MMMMMMM
11249
11250 \series bold
11251 foilheadings
11252 \series default
11253  Page numbers in lower right corner.
11254  Additional headers and footers are also shown.
11255  This is also the default.
11256 \end_layout
11257
11258 \begin_layout Labeling
11259 \labelwidthstring MMMMMMM
11260
11261 \series bold
11262 fancy
11263 \series default
11264  Gives you access to the 
11265 \family sans
11266 fancyheadings
11267 \family default
11268  package although its use with 
11269 \family sans
11270 Foil\SpecialChar TeX
11271
11272 \family default
11273  is discouraged by the writer of the 
11274 \family sans
11275 Foil\SpecialChar TeX
11276
11277 \family default
11278  package because of some potential page layout clashes.
11279 \end_layout
11280
11281 \end_deeper
11282 \begin_layout Subsubsection
11283 Extra Options
11284 \end_layout
11285
11286 \begin_layout Standard
11287 The following options may be used in the extra class options in the 
11288 \family sans
11289 Document\SpecialChar menuseparator
11290 Settings
11291 \family default
11292  dialog.
11293 \end_layout
11294
11295 \begin_layout Labeling
11296 \labelwidthstring MMMMMMx
11297
11298 \series bold
11299 35mmSlide
11300 \series default
11301  This sets up the page layout for 7.33
11302 \begin_inset space \thinspace{}
11303 \end_inset
11304
11305 in by 11
11306 \begin_inset space \thinspace{}
11307 \end_inset
11308
11309 in paper, which is about the same aspect ratio as a 35
11310 \begin_inset space \thinspace{}
11311 \end_inset
11312
11313 mm slide, making it a bit easier to work with this medium.
11314 \end_layout
11315
11316 \begin_layout Labeling
11317 \labelwidthstring MMMMMMx
11318
11319 \series bold
11320 headrule
11321 \series default
11322  Places a rule across the page below the header on every page except the
11323  title page.
11324 \end_layout
11325
11326 \begin_layout Labeling
11327 \labelwidthstring MMMMMMx
11328
11329 \series bold
11330 footrule
11331 \series default
11332  Places a rule across the page above the footer on every page except the
11333  title page.
11334 \end_layout
11335
11336 \begin_layout Labeling
11337 \labelwidthstring MMMMMMx
11338
11339 \series bold
11340 dvips
11341 \series default
11342  This is automatically set each time you create a new 
11343 \family sans
11344 foils
11345 \family default
11346  document.
11347  This option tells 
11348 \family sans
11349 Foil\SpecialChar TeX
11350
11351 \family default
11352  to use the dvips driver to rotate those pages that are set as landscape
11353  foils.
11354 \end_layout
11355
11356 \begin_layout Labeling
11357 \labelwidthstring MMMMMMx
11358
11359 \series bold
11360 landscape
11361 \series default
11362  Simply changes the page dimensions to those of a landscape page but doesn't
11363  do any rotation.
11364  Thus if you use this option you need to use an external program to rotate
11365  each page or feed your paper through your printer as landscape.
11366  Note that this option effectively reverses the roles of the 
11367 \family sans
11368 Foilhead
11369 \family default
11370  and 
11371 \family sans
11372 Rotatefoilhead
11373 \family default
11374  environments (don't worry these are described in the next section).
11375 \end_layout
11376
11377 \begin_layout Labeling
11378 \labelwidthstring MMMMMMx
11379
11380 \series bold
11381 leqno
11382 \series default
11383  Equation numbers on the left.
11384 \end_layout
11385
11386 \begin_layout Labeling
11387 \labelwidthstring MMMMMMx
11388
11389 \series bold
11390 fleqn
11391 \series default
11392  Flush-left equations.
11393 \end_layout
11394
11395 \begin_layout Subsection
11396 Supported Environments
11397 \end_layout
11398
11399 \begin_layout Standard
11400 Most of the environments commonly supported in other classes are also supported
11401  by the 
11402 \family sans
11403 foils
11404 \family default
11405  class.
11406  There are several additional environments provided by 
11407 \family sans
11408 Foil\SpecialChar TeX
11409
11410 \family default
11411  as well as a couple added by \SpecialChar LyX
11412 .
11413  The following environments are shared with other classes:
11414 \end_layout
11415
11416 \begin_layout Standard
11417 \begin_inset Flex Multiple Columns
11418 status open
11419
11420 \begin_layout Itemize
11421
11422 \family sans
11423 Standard
11424 \end_layout
11425
11426 \begin_layout Itemize
11427
11428 \family sans
11429 Itemize
11430 \end_layout
11431
11432 \begin_layout Itemize
11433
11434 \family sans
11435 Enumerate
11436 \end_layout
11437
11438 \begin_layout Itemize
11439
11440 \family sans
11441 Description
11442 \end_layout
11443
11444 \begin_layout Itemize
11445
11446 \family sans
11447 List
11448 \end_layout
11449
11450 \begin_layout Itemize
11451
11452 \family sans
11453 \SpecialChar LyX
11454 -Code
11455 \end_layout
11456
11457 \begin_layout Itemize
11458
11459 \family sans
11460 Verse
11461 \end_layout
11462
11463 \begin_layout Itemize
11464
11465 \family sans
11466 Quote
11467 \end_layout
11468
11469 \begin_layout Itemize
11470
11471 \family sans
11472 Quotation
11473 \end_layout
11474
11475 \begin_layout Itemize
11476
11477 \family sans
11478 Title
11479 \end_layout
11480
11481 \begin_layout Itemize
11482
11483 \family sans
11484 Author
11485 \end_layout
11486
11487 \begin_layout Itemize
11488
11489 \family sans
11490 Date
11491 \end_layout
11492
11493 \begin_layout Itemize
11494
11495 \family sans
11496 Abstract
11497 \end_layout
11498
11499 \begin_layout Itemize
11500
11501 \family sans
11502 Bibliography
11503 \end_layout
11504
11505 \begin_layout Itemize
11506
11507 \family sans
11508 Address
11509 \end_layout
11510
11511 \begin_layout Itemize
11512
11513 \family sans
11514 RightAddress
11515 \end_layout
11516
11517 \begin_layout Itemize
11518
11519 \family sans
11520 Caption
11521 \end_layout
11522
11523 \begin_layout Itemize
11524
11525 \family sans
11526 Comment
11527 \end_layout
11528
11529 \end_inset
11530
11531
11532 \end_layout
11533
11534 \begin_layout Standard
11535 That is, all the major environments apart from the sectioning environments.
11536  Since foils are essentially self-contained sections, with a title and body,
11537  
11538 \family sans
11539 Foil\SpecialChar TeX
11540
11541 \family default
11542  provides specific commands for starting new foils and these are:
11543 \end_layout
11544
11545 \begin_layout Itemize
11546
11547 \family sans
11548 Foilhead
11549 \end_layout
11550
11551 \begin_layout Itemize
11552
11553 \family sans
11554 Rotatefoilhead
11555 \end_layout
11556
11557 \begin_layout Standard
11558 \SpecialChar LyX
11559  also provides slightly modified versions of these two environments called:
11560 \end_layout
11561
11562 \begin_layout Itemize
11563
11564 \family sans
11565 ShortFoilhead
11566 \end_layout
11567
11568 \begin_layout Itemize
11569
11570 \family sans
11571 ShortRotatefoilhead
11572 \end_layout
11573
11574 \begin_layout Standard
11575 and the differences will be explained in the next section.
11576 \end_layout
11577
11578 \begin_layout Standard
11579 Since foils are often used in presenting ideas or new theorems and such
11580  
11581 \family sans
11582 Foil\SpecialChar TeX
11583
11584 \family default
11585  also provides a comprehensive box of goodies for presenting them:
11586 \end_layout
11587
11588 \begin_layout Standard
11589 \begin_inset Flex Multiple Columns
11590 status open
11591
11592 \begin_layout Itemize
11593
11594 \family sans
11595 Theorem
11596 \end_layout
11597
11598 \begin_layout Itemize
11599
11600 \family sans
11601 Lemma
11602 \end_layout
11603
11604 \begin_layout Itemize
11605
11606 \family sans
11607 Corollary
11608 \end_layout
11609
11610 \begin_layout Itemize
11611
11612 \family sans
11613 Proposition
11614 \end_layout
11615
11616 \begin_layout Itemize
11617
11618 \family sans
11619 Definition
11620 \end_layout
11621
11622 \begin_layout Itemize
11623
11624 \family sans
11625 Proof
11626 \end_layout
11627
11628 \begin_layout Itemize
11629
11630 \family sans
11631 Theorem*
11632 \end_layout
11633
11634 \begin_layout Itemize
11635
11636 \family sans
11637 Lemma*
11638 \end_layout
11639
11640 \begin_layout Itemize
11641
11642 \family sans
11643 Corollary*
11644 \end_layout
11645
11646 \begin_layout Itemize
11647
11648 \family sans
11649 Proposition*
11650 \end_layout
11651
11652 \begin_layout Itemize
11653
11654 \family sans
11655 Definition*
11656 \end_layout
11657
11658 \end_inset
11659
11660
11661 \end_layout
11662
11663 \begin_layout Standard
11664 The starred versions are unnumbered while the unstarred versions are numbered.
11665  There are also two list environments added by \SpecialChar LyX
11666  and these are:
11667 \end_layout
11668
11669 \begin_layout Itemize
11670
11671 \family sans
11672 TickList
11673 \end_layout
11674
11675 \begin_layout Itemize
11676
11677 \family sans
11678 CrossList
11679 \end_layout
11680
11681 \begin_layout Standard
11682
11683 \family sans
11684 Foil\SpecialChar TeX
11685
11686 \family default
11687  provides some powerful header and footer capabilities that are best set
11688  in the preamble although they may be set at any point in a document.
11689  If you want to change these settings in your document the best place to
11690  do so is at the very top of a foil, i.
11691 \begin_inset space \thinspace{}
11692 \end_inset
11693
11694 e.
11695 \emph on
11696
11697 \begin_inset space \space{}
11698 \end_inset
11699
11700
11701 \emph default
11702 straight after the foilhead.
11703 \end_layout
11704
11705 \begin_layout Standard
11706 For this purpose, the following command styles are provided [
11707 \shape smallcaps
11708 Martin Vermeer
11709 \shape default
11710 ]:
11711 \end_layout
11712
11713 \begin_layout Standard
11714 \begin_inset Flex Multiple Columns
11715 status open
11716
11717 \begin_layout Itemize
11718
11719 \family sans
11720 My
11721 \begin_inset space ~
11722 \end_inset
11723
11724 Logo
11725 \end_layout
11726
11727 \begin_layout Itemize
11728
11729 \family sans
11730 Restriction
11731 \end_layout
11732
11733 \begin_layout Itemize
11734
11735 \family sans
11736 Right
11737 \begin_inset space ~
11738 \end_inset
11739
11740 Footer
11741 \end_layout
11742
11743 \begin_layout Itemize
11744
11745 \family sans
11746 Right
11747 \begin_inset space ~
11748 \end_inset
11749
11750 Header
11751 \end_layout
11752
11753 \begin_layout Itemize
11754
11755 \family sans
11756 Left
11757 \begin_inset space ~
11758 \end_inset
11759
11760 Header
11761 \end_layout
11762
11763 \begin_deeper
11764 \begin_layout Plain Layout
11765 \begin_inset space ~
11766 \end_inset
11767
11768
11769 \end_layout
11770
11771 \end_deeper
11772 \end_inset
11773
11774
11775 \end_layout
11776
11777 \begin_layout Standard
11778 There are also a few commands provided by 
11779 \family sans
11780 Foil\SpecialChar TeX
11781
11782 \family default
11783  that aren't directly supported by \SpecialChar LyX
11784  but I'll tell you what they do and how
11785  to use them in section
11786 \begin_inset space ~
11787 \end_inset
11788
11789
11790 \begin_inset CommandInset ref
11791 LatexCommand ref
11792 reference "sec:unsuppfoils"
11793
11794 \end_inset
11795
11796 .
11797 \end_layout
11798
11799 \begin_layout Subsection
11800 Building a Set of Foils
11801 \end_layout
11802
11803 \begin_layout Standard
11804 This section will give a simple introduction to using the different environments
11805  to build a set of foils.
11806  If you want to see an example set of foils, take a look at the 
11807 \family typewriter
11808 Foils.lyx
11809 \family default
11810  file you find in \SpecialChar LyX
11811 's 
11812 \family typewriter
11813 examples
11814 \family default
11815  folder.
11816 \end_layout
11817
11818 \begin_layout Subsubsection
11819 Give It a Title Page
11820 \end_layout
11821
11822 \begin_layout Standard
11823 Unlike other classes that provide 
11824 \family sans
11825 Title
11826 \family default
11827
11828 \family sans
11829 Author
11830 \family default
11831
11832 \family sans
11833 Date
11834 \family default
11835  and 
11836 \family sans
11837 Abstract
11838 \family default
11839  environments, 
11840 \family sans
11841 foils
11842 \family default
11843  creates the title on a page of its own.
11844  If you leave out the 
11845 \family sans
11846 Date
11847 \family default
11848  environment \SpecialChar LaTeX
11849  will substitute the current date (every time you regenerate
11850  the output).
11851 \end_layout
11852
11853 \begin_layout Subsubsection
11854 Start a New Foil
11855 \end_layout
11856
11857 \begin_layout Standard
11858 As I mentioned earlier, there are four ways of starting a new foil.
11859  For portrait foils you should use 
11860 \family sans
11861 Foilhead
11862 \family default
11863  or 
11864 \family sans
11865 ShortFoilhead.
11866
11867 \family default
11868  The difference between these two environments is the amount of space between
11869  the title of the foil (the foilhead) and the body of the foil.
11870 \end_layout
11871
11872 \begin_layout Standard
11873 Landscape foils are generated using the 
11874 \family sans
11875 Rotatefoilhead
11876 \family default
11877  and 
11878 \family sans
11879 ShortRotatefoilhead
11880 \family default
11881  environments.
11882  Again the only difference is the spacing between foilhead and body.
11883  Both of the short versions have 0.5
11884 \begin_inset space ~
11885 \end_inset
11886
11887 inches less separation between the foilhead and the body.
11888  
11889 \end_layout
11890
11891 \begin_layout Standard
11892 One problem with the support for landscape foils is the requirement that
11893  you have to use the 
11894 \family typewriter
11895 dvips
11896 \family default
11897  driver to generate the PostScript output otherwise the foils won't be rotated.
11898  It is possible to get landscape foils even if you haven't got the 
11899 \family typewriter
11900 dvips
11901 \family default
11902  driver provided you can feed your foils sideways through your printer ;-)
11903 \end_layout
11904
11905 \begin_layout Subsubsection
11906 Theorems, Lemmas, Proofs and more
11907 \end_layout
11908
11909 \begin_layout Standard
11910 Due to a small bug in \SpecialChar LyX
11911  you can't have two of the same type of these environments
11912  directly following each other.
11913  They must be separated by something.
11914  If you try, you will just be extending the previous environment as if you
11915  had merged the two environments together.
11916  So, how do you get around this problem? The simplest option is to insert
11917  some text between the two environments or add a 
11918 \family sans
11919 \SpecialChar LaTeX
11920
11921 \family default
11922  environment between the two with just a 
11923 \begin_inset Quotes eld
11924 \end_inset
11925
11926
11927 \family typewriter
11928 %
11929 \family default
11930
11931 \begin_inset Quotes erd
11932 \end_inset
11933
11934  in it.
11935  This will force \SpecialChar LyX
11936  to produce two separate environments and hence the correct
11937  \SpecialChar LaTeX
11938  output.
11939  An example is provided in the example file included with the \SpecialChar LyX
11940  distribution.
11941  Remember, this problem only occurs if you are trying to place two of the
11942  same type of theorem-like environments one directly after the other.
11943 \end_layout
11944
11945 \begin_layout Subsubsection
11946 Lists
11947 \end_layout
11948
11949 \begin_layout Standard
11950 You get all the commonly supported list styles found in other classes as
11951  well as two new ones.
11952  I'll only describe the new ones here.
11953  If you want to find out more about the other list environments check out
11954  the 
11955 \emph on
11956 User's Guide.
11957
11958 \emph default
11959  If you intend to use itemized lists you might also want to read about the
11960  
11961 \family sans
11962 Itemize
11963 \begin_inset space ~
11964 \end_inset
11965
11966 Bullet
11967 \begin_inset space ~
11968 \end_inset
11969
11970 Selection
11971 \family default
11972  dialog described above in section
11973 \begin_inset space ~
11974 \end_inset
11975
11976
11977 \begin_inset CommandInset ref
11978 LatexCommand ref
11979 reference "sec:bullet"
11980
11981 \end_inset
11982
11983 .
11984 \end_layout
11985
11986 \begin_layout Standard
11987 The two new list styles, 
11988 \family sans
11989 TickList
11990 \family default
11991  and 
11992 \family sans
11993 CrossList
11994 \family default
11995 , are designed to make it easier for you to create lists of do's and don'ts
11996  or right and wrong by providing dedicated environments that use a tick
11997  or a cross as the label of the list.
11998  These lists are in fact dedicated variants of the 
11999 \family sans
12000 Itemize
12001 \family default
12002  environment.
12003  They do however require that you have the 
12004 \family typewriter
12005 psnfss
12006 \family default
12007  packages installed.
12008 \end_layout
12009
12010 \begin_layout Subsubsection
12011 Figures and Tables
12012 \end_layout
12013
12014 \begin_layout Standard
12015
12016 \family sans
12017 Foil\SpecialChar TeX
12018
12019 \family default
12020  redefines the floating tables and figures so that they appear exactly where
12021  they are in the text rather than pushing them to the top of the page or
12022  to some user specified location.
12023  In fact if you change the float placement settings they are simply ignored.
12024 \end_layout
12025
12026 \begin_layout Subsubsection
12027 Page Headers and Footers
12028 \begin_inset CommandInset label
12029 LatexCommand label
12030 name "sec:foilfoot"
12031
12032 \end_inset
12033
12034
12035 \end_layout
12036
12037 \begin_layout Standard
12038
12039 \family sans
12040 My
12041 \begin_inset space ~
12042 \end_inset
12043
12044 Logo
12045 \family default
12046  and 
12047 \family sans
12048 Restriction
12049 \family default
12050  are two commands used to control the left-footer text string.
12051  The first is meant to allow you to include a graphic logo on your foils
12052  and defaults to 
12053 \begin_inset Quotes eld
12054 \end_inset
12055
12056 -Typeset by 
12057 \family sans
12058 Foil\SpecialChar TeX
12059
12060 \family default
12061 -
12062 \begin_inset Quotes erd
12063 \end_inset
12064
12065 .
12066  While the second is meant to provide a classification for the audience,
12067  
12068 \emph on
12069 e.
12070 \begin_inset space \thinspace{}
12071 \end_inset
12072
12073 g.
12074 \emph default
12075
12076 \begin_inset space \space{}
12077 \end_inset
12078
12079 Confidential.
12080  It is empty by default.
12081 \end_layout
12082
12083 \begin_layout Standard
12084 The remaining page corners can be filled by 
12085 \family sans
12086 Right
12087 \begin_inset space ~
12088 \end_inset
12089
12090 Footer
12091 \family default
12092  (which defaults to page numbers), 
12093 \family sans
12094 Right
12095 \begin_inset space ~
12096 \end_inset
12097
12098 Header
12099 \family default
12100  (top right) and 
12101 \family sans
12102 Left
12103 \begin_inset space ~
12104 \end_inset
12105
12106 Header
12107 \family default
12108  (top left).
12109 \end_layout
12110
12111 \begin_layout Subsection
12112 Unsupported 
12113 \family sans
12114 Foil\SpecialChar TeX
12115
12116 \family default
12117  Goodies
12118 \begin_inset CommandInset label
12119 LatexCommand label
12120 name "sec:unsuppfoils"
12121
12122 \end_inset
12123
12124
12125 \end_layout
12126
12127 \begin_layout Standard
12128 All the commands mentioned below need to be set in a 
12129 \family sans
12130 \SpecialChar LaTeX
12131
12132 \family default
12133  environment or as 
12134 \family sans
12135 \SpecialChar TeX
12136
12137 \family default
12138  within another environment.
12139 \end_layout
12140
12141 \begin_layout Subsubsection
12142 Lengths
12143 \end_layout
12144
12145 \begin_layout Standard
12146 All lengths are adjusted using the 
12147 \family typewriter
12148
12149 \backslash
12150 setlength{
12151 \family default
12152 \emph on
12153 lengthname
12154 \family typewriter
12155 \emph default
12156 }{
12157 \family default
12158 \emph on
12159 newlength
12160 \family typewriter
12161 \emph default
12162 }
12163 \family default
12164  command.
12165  Where 
12166 \emph on
12167 lengthname
12168 \emph default
12169  should be replaced by the name given to the length you want to change and
12170  
12171 \emph on
12172 newlength
12173 \emph default
12174  is the length value.
12175  All lengths should be specified in units of length such as inches (
12176 \family typewriter
12177 in
12178 \family default
12179 ), millimeters (
12180 \family typewriter
12181 mm
12182 \family default
12183 ) or points (
12184 \family typewriter
12185 pt
12186 \family default
12187 ) or relative to some document or font-based length such as 
12188 \family typewriter
12189
12190 \backslash
12191 textwidth
12192 \family default
12193 .
12194  
12195 \end_layout
12196
12197 \begin_layout Standard
12198 It's possible to change the spacing between a foilhead and the body of the
12199  foil by adjusting the length specified by 
12200 \family typewriter
12201
12202 \backslash
12203 foilheadskip
12204 \family default
12205 .
12206  For example, to make 
12207 \emph on
12208 all
12209 \emph default
12210  foilheads 0.5
12211 \begin_inset space \space{}
12212 \end_inset
12213
12214 in closer to their bodies put the following in the preamble: 
12215 \family typewriter
12216
12217 \backslash
12218 setlength{
12219 \backslash
12220 foilheadskip}{-0.5in}
12221 \end_layout
12222
12223 \begin_layout Standard
12224 The spacings around floats can be adjusted by setting these lengths:
12225 \end_layout
12226
12227 \begin_layout Labeling
12228 \labelwidthstring MMMMMMMMMMM
12229
12230 \family typewriter
12231
12232 \backslash
12233 abovefloatskip
12234 \family default
12235  Separation between the text and the top of the float
12236 \end_layout
12237
12238 \begin_layout Labeling
12239 \labelwidthstring MMMMMMMMMMM
12240
12241 \family typewriter
12242
12243 \backslash
12244 abovecaptionskip
12245 \family default
12246  Separation between the float and the caption
12247 \end_layout
12248
12249 \begin_layout Labeling
12250 \labelwidthstring MMMMMMMMMMM
12251
12252 \family typewriter
12253
12254 \backslash
12255 belowcaptionskip
12256 \family default
12257  Separation between the caption and the following text
12258 \end_layout
12259
12260 \begin_layout Labeling
12261 \labelwidthstring MMMMMMMMMMM
12262
12263 \family typewriter
12264
12265 \backslash
12266 captionwidth
12267 \family default
12268  You can make the captions narrower than the surrounding text by adjusting
12269  this length.
12270  Best done relative to 
12271 \family typewriter
12272
12273 \backslash
12274 textwidth
12275 \family default
12276 .
12277 \end_layout
12278
12279 \begin_layout Standard
12280 There are also several title page related lengths that you may find useful
12281  if you have a long title or several authors:
12282 \end_layout
12283
12284 \begin_layout Labeling
12285 \labelwidthstring MMMMMMMMMMM
12286
12287 \family typewriter
12288
12289 \backslash
12290 abovetitleskip
12291 \family default
12292  Separation from headers to 
12293 \family sans
12294 Title
12295 \end_layout
12296
12297 \begin_layout Labeling
12298 \labelwidthstring MMMMMMMMMMM
12299
12300 \family typewriter
12301
12302 \backslash
12303 titleauthorskip
12304 \family default
12305  between 
12306 \family sans
12307 Title
12308 \family default
12309  and 
12310 \family sans
12311 Author
12312 \family default
12313  environments
12314 \end_layout
12315
12316 \begin_layout Labeling
12317 \labelwidthstring MMMMMMMMMMM
12318
12319 \family typewriter
12320
12321 \backslash
12322 authorauthorskip
12323 \family default
12324  between multiple 
12325 \family sans
12326 Author
12327 \family default
12328  lines
12329 \end_layout
12330
12331 \begin_layout Labeling
12332 \labelwidthstring MMMMMMMMMMM
12333
12334 \family typewriter
12335
12336 \backslash
12337 authordateskip
12338 \family default
12339  between the 
12340 \family sans
12341 Author
12342 \family default
12343  and the 
12344 \family sans
12345 Date
12346 \end_layout
12347
12348 \begin_layout Labeling
12349 \labelwidthstring MMMMMMMMMMM
12350
12351 \family typewriter
12352
12353 \backslash
12354 dateabstractskip
12355 \family default
12356  between the 
12357 \family sans
12358 Date
12359 \family default
12360  and the 
12361 \family sans
12362 Abstract
12363 \end_layout
12364
12365 \begin_layout Standard
12366 The last length related command affects all the list environments.
12367  If you place 
12368 \family typewriter
12369
12370 \backslash
12371 zerolistvertdimens
12372 \family default
12373  
12374 \emph on
12375 inside
12376 \emph default
12377  a list environment then all the vertical spacing between the list items
12378  is removed.
12379  Note that this is a command not a length so it doesn't require 
12380 \family typewriter
12381
12382 \backslash
12383 setlength
12384 \family default
12385  like the stuff mentioned above.
12386 \end_layout
12387
12388 \begin_layout Subsubsection
12389 Headers and Footers
12390 \end_layout
12391
12392 \begin_layout Standard
12393 The 
12394 \family typewriter
12395
12396 \backslash
12397 LogoOn
12398 \family default
12399  and 
12400 \family typewriter
12401
12402 \backslash
12403 LogoOff
12404 \family default
12405  commands control whether the logo in the 
12406 \family sans
12407 MyLogo
12408 \family default
12409  definition appear on a given page.
12410  If you put 
12411 \family typewriter
12412
12413 \backslash
12414 LogoOff
12415 \family default
12416  in the preamble then none of the foils will have the logo on them.
12417  If you don't want the logo on a particular page place the 
12418 \family typewriter
12419
12420 \backslash
12421 LogoOff
12422 \family default
12423  directly after the foilhead of that page and the 
12424 \family typewriter
12425
12426 \backslash
12427 LogoOn
12428 \family default
12429  directly after the next foilhead.
12430 \end_layout
12431
12432 \begin_layout Standard
12433 If you decide to use the 
12434 \family sans
12435 fancy
12436 \family default
12437  page style setting in the 
12438 \family sans
12439 Document
12440 \begin_inset space ~
12441 \end_inset
12442
12443 Layout
12444 \family default
12445  dialog you should probably add 
12446 \family typewriter
12447
12448 \backslash
12449 let
12450 \backslash
12451 headwidth
12452 \backslash
12453 textwidth
12454 \family default
12455  to your preamble so headers and footers on landscape pages are correctly
12456  placed when rotated.
12457  This is due to some clashes between the page layouts provided by the 
12458 \family sans
12459 fancyheadings
12460 \family default
12461  package and the 
12462 \family sans
12463 foils
12464 \family default
12465  class.
12466 \end_layout
12467
12468 \begin_layout Section
12469 Hollywood (Hollywood spec scripts)
12470 \end_layout
12471
12472 \begin_layout Standard
12473 by 
12474 \shape smallcaps
12475 Garst Reese
12476 \end_layout
12477
12478 \begin_layout Subsection
12479 Introduction
12480 \end_layout
12481
12482 \begin_layout Standard
12483 Getting the format of a Hollywood script right is a 
12484 \begin_inset Quotes eld
12485 \end_inset
12486
12487 rite of passage.
12488 \begin_inset Quotes erd
12489 \end_inset
12490
12491  It is designed to make the readers focus on content and to be easy and
12492  familiar for the actors to read.
12493  Each page of a script should be one minute of film.
12494  Nothing goes in a script that you cannot see or hear on screen.
12495  The courier 12 pt font should be used throughout.
12496  No italics.
12497 \end_layout
12498
12499 \begin_layout Subsection
12500 Special problems
12501 \end_layout
12502
12503 \begin_layout Standard
12504 Speakers' lines should NEVER break in mid-sentence.
12505  If a speaker's lines continue over a page break, repeat the 
12506 \family sans
12507 Speaker
12508 \family default
12509  title followed by (Cont'd).
12510 \end_layout
12511
12512 \begin_layout Subsection
12513 Special features
12514 \end_layout
12515
12516 \begin_layout Standard
12517 Insert the 
12518 \family sans
12519 Speaker
12520 \family default
12521  names as labels then cross-reference the label to insert the name.
12522  The cross-reference dialog will show the current cast of characters.
12523  You can use this to insert the speaker name in narratives also.
12524 \end_layout
12525
12526 \begin_layout Subsection
12527 Paper size and Margins
12528 \end_layout
12529
12530 \begin_layout Standard
12531 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12532 \end_layout
12533
12534 \begin_layout Subsection
12535 Environments
12536 \end_layout
12537
12538 \begin_layout Standard
12539 The following environments are available.
12540  You can use hollywood.bind to get the bind keys shown at the right.
12541 \end_layout
12542
12543 \begin_layout Itemize
12544
12545 \family sans
12546 Standard
12547 \begin_inset Newline newline
12548 \end_inset
12549
12550
12551 \family default
12552 Used where nothing else works.
12553  Try to avoid it.
12554 \end_layout
12555
12556 \begin_layout Itemize
12557
12558 \family sans
12559 FADE_IN
12560 \family default
12561 :
12562 \begin_inset space \hfill{}
12563 \end_inset
12564
12565
12566 \family sans
12567 M-z S-I
12568 \family default
12569
12570 \begin_inset Newline newline
12571 \end_inset
12572
12573 Usually followed by something like 
12574 \begin_inset Quotes eld
12575 \end_inset
12576
12577 on Sally waking up.
12578 \begin_inset Quotes erd
12579 \end_inset
12580
12581
12582 \end_layout
12583
12584 \begin_layout Itemize
12585
12586 \family sans
12587 INT:
12588 \begin_inset space \hfill{}
12589 \end_inset
12590
12591 M-z i
12592 \begin_inset Newline newline
12593 \end_inset
12594
12595
12596 \family default
12597 Introduces a new INTERIOR camera set-up.
12598  Always followed by DAY or NIGHT, or something similar to define the lighting
12599  required.
12600  Everthing on this line in CAPS.
12601 \end_layout
12602
12603 \begin_layout Itemize
12604
12605 \family sans
12606 EXT:
12607 \begin_inset space \hfill{}
12608 \end_inset
12609
12610 M-z e
12611 \begin_inset Newline newline
12612 \end_inset
12613
12614
12615 \family default
12616 Introduces a new EXTERIOR camera set-up.
12617  Everthing on this line in CAPS.
12618 \end_layout
12619
12620 \begin_layout Itemize
12621
12622 \family sans
12623 Speaker
12624 \begin_inset space \hfill{}
12625 \end_inset
12626
12627 M-z s
12628 \begin_inset Newline newline
12629 \end_inset
12630
12631
12632 \family default
12633 The character speaking.
12634 \end_layout
12635
12636 \begin_layout Itemize
12637
12638 \family sans
12639 Parenthetical
12640 \begin_inset space \hfill{}
12641 \end_inset
12642
12643 M-z p
12644 \begin_inset Newline newline
12645 \end_inset
12646
12647
12648 \family default
12649 Instructions to the speaker.
12650  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12651 .
12652  Both will be printed.
12653 \end_layout
12654
12655 \begin_layout Itemize
12656
12657 \family sans
12658 Dialogue
12659 \begin_inset space \hfill{}
12660 \end_inset
12661
12662 M-z d
12663 \begin_inset Newline newline
12664 \end_inset
12665
12666
12667 \family default
12668 What the 
12669 \family sans
12670 Speaker
12671 \family default
12672  says.
12673 \end_layout
12674
12675 \begin_layout Itemize
12676
12677 \family sans
12678 Transition
12679 \begin_inset space \hfill{}
12680 \end_inset
12681
12682 M-z t
12683 \begin_inset Newline newline
12684 \end_inset
12685
12686
12687 \family default
12688 Camera movement instruction.
12689  e.
12690 \begin_inset space \thinspace{}
12691 \end_inset
12692
12693 g.
12694 \begin_inset space \space{}
12695 \end_inset
12696
12697 CUT TO:
12698 \end_layout
12699
12700 \begin_layout Itemize
12701
12702 \family sans
12703 FADE OUT:
12704 \begin_inset space \hfill{}
12705 \end_inset
12706
12707 M-z S-I
12708 \end_layout
12709
12710 \begin_layout Itemize
12711
12712 \family sans
12713 Author
12714 \begin_inset space \hfill{}
12715 \end_inset
12716
12717 M-z S-A
12718 \end_layout
12719
12720 \begin_layout Itemize
12721
12722 \family sans
12723 Title
12724 \begin_inset space \hfill{}
12725 \end_inset
12726
12727 M-z S-T
12728 \end_layout
12729
12730 \begin_layout Itemize
12731
12732 \family sans
12733 Right_Address
12734 \begin_inset space \hfill{}
12735 \end_inset
12736
12737 M-z r
12738 \end_layout
12739
12740 \begin_layout Subsection
12741 Script jargon
12742 \end_layout
12743
12744 \begin_layout Itemize
12745 (O.S) — off screen
12746 \end_layout
12747
12748 \begin_layout Itemize
12749 (V.0) — voice over
12750 \end_layout
12751
12752 \begin_layout Itemize
12753 b.
12754 \begin_inset space \thinspace{}
12755 \end_inset
12756
12757 g.
12758  — background
12759 \end_layout
12760
12761 \begin_layout Itemize
12762 C.U.
12763  — close-up
12764 \end_layout
12765
12766 \begin_layout Itemize
12767 PAN — camera movement
12768 \end_layout
12769
12770 \begin_layout Itemize
12771 INSERT — cut to close-up of
12772 \end_layout
12773
12774 \begin_layout Section
12775 ijmpc and ijmpd
12776 \end_layout
12777
12778 \begin_layout Standard
12779 by 
12780 \noun on
12781 Panayotis Papasotiriou
12782 \end_layout
12783
12784 \begin_layout Subsection
12785 Overview
12786 \end_layout
12787
12788 \begin_layout Standard
12789 The ijmpc package is a set of macros that facilitates electronic manuscript
12790  submission to the 
12791 \emph on
12792 International Journal of Modern Physics C
12793 \emph default
12794 .
12795  Similarly, the ijmpd package is for creating manuscripts to be submitted
12796  to the 
12797 \emph on
12798 International Journal of Modern Physics D
12799 \emph default
12800 .
12801  Both journals are published by World Scientific.
12802  The corresponding document classes are named 
12803 \family typewriter
12804 ws-ijmpc.cls
12805 \family default
12806  and 
12807 \family typewriter
12808 ws-ijmpd.cls
12809 \family default
12810 , respectively.
12811  These files, together with instructions for the authors, can be downloaded
12812  from the sites 
12813 \begin_inset Flex URL
12814 status collapsed
12815
12816 \begin_layout Plain Layout
12817
12818 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12819 \end_layout
12820
12821 \end_inset
12822
12823  and 
12824 \begin_inset Flex URL
12825 status collapsed
12826
12827 \begin_layout Plain Layout
12828
12829 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12830 \end_layout
12831
12832 \end_inset
12833
12834 .
12835  Both packages are modified versions of the standard 
12836 \begin_inset Quotes eld
12837 \end_inset
12838
12839 article
12840 \begin_inset Quotes erd
12841 \end_inset
12842
12843  package, and they are almost (but not exactly) identical.
12844  Most of their features are supported by \SpecialChar LyX
12845 .
12846  I have used \SpecialChar LyX
12847  successfully to write articles submitted to both journals
12848  without any problem.
12849 \end_layout
12850
12851 \begin_layout Subsection
12852 Writing a paper
12853 \end_layout
12854
12855 \begin_layout Standard
12856 As usual, the easiest way to write a paper is to start with a template.
12857  Click on 
12858 \family sans
12859 File\SpecialChar menuseparator
12860 New from
12861 \family default
12862  
12863 \family sans
12864 Template
12865 \family default
12866 , then choose the 
12867 \family typewriter
12868 ijmpc.lyx
12869 \family default
12870  or 
12871 \family typewriter
12872 ijmpd.lyx
12873 \family default
12874  template.
12875  This will give an (almost) empty document that includes the most common
12876  fields found in a manuscript.
12877  Simply overwrite the existing text (including the brackets, 
12878 \family typewriter
12879 <>
12880 \family default
12881 ) with your text.
12882  You should keep in mind the following remarks.
12883 \end_layout
12884
12885 \begin_layout Enumerate
12886 \SpecialChar LyX
12887  won't let you change the font size and the page style of the document,
12888  because such modifications are not allowed by both packages.
12889 \end_layout
12890
12891 \begin_layout Enumerate
12892 The language of the document should not be changed.
12893  Before previewing your paper, be sure that the babel package is not used.
12894  To do this, click on 
12895 \family sans
12896 Tools\SpecialChar menuseparator
12897 Preferences
12898 \family default
12899 , select the 
12900 \family sans
12901 Lang Opts
12902 \family default
12903  tab, deselect the 
12904 \family sans
12905 Use babel
12906 \family default
12907  checkbox in the language settings, and click on 
12908 \family sans
12909 Apply
12910 \family default
12911  (or 
12912 \family sans
12913 Save
12914 \family default
12915 , if you wish to make this change permanent).
12916 \end_layout
12917
12918 \begin_layout Enumerate
12919 The 
12920 \begin_inset Quotes eld
12921 \end_inset
12922
12923 Keywords
12924 \begin_inset Quotes erd
12925 \end_inset
12926
12927  style must be used to define keywords.
12928 \end_layout
12929
12930 \begin_layout Enumerate
12931 The ijmpc package provides a style named 
12932 \begin_inset Quotes eld
12933 \end_inset
12934
12935 Classification Codes
12936 \begin_inset Quotes erd
12937 \end_inset
12938
12939 , which can be used to define classification codes, such as PACS numbers.
12940  Note that this facility is not supported by the ijmpd package.
12941 \end_layout
12942
12943 \begin_layout Enumerate
12944 Several new environments are available: 
12945 \begin_inset Quotes eld
12946 \end_inset
12947
12948 Definition
12949 \begin_inset Quotes erd
12950 \end_inset
12951
12952
12953 \begin_inset Quotes eld
12954 \end_inset
12955
12956 Step
12957 \begin_inset Quotes erd
12958 \end_inset
12959
12960
12961 \begin_inset Quotes eld
12962 \end_inset
12963
12964 Example
12965 \begin_inset Quotes erd
12966 \end_inset
12967
12968
12969 \begin_inset Quotes eld
12970 \end_inset
12971
12972 Remark
12973 \begin_inset Quotes erd
12974 \end_inset
12975
12976
12977 \begin_inset Quotes eld
12978 \end_inset
12979
12980 Notation
12981 \begin_inset Quotes erd
12982 \end_inset
12983
12984
12985 \begin_inset Quotes eld
12986 \end_inset
12987
12988 Theorem
12989 \begin_inset Quotes erd
12990 \end_inset
12991
12992
12993 \begin_inset Quotes eld
12994 \end_inset
12995
12996 Proof
12997 \begin_inset Quotes erd
12998 \end_inset
12999
13000
13001 \begin_inset Quotes eld
13002 \end_inset
13003
13004 Corollary
13005 \begin_inset Quotes erd
13006 \end_inset
13007
13008
13009 \begin_inset Quotes eld
13010 \end_inset
13011
13012 Lemma
13013 \begin_inset Quotes erd
13014 \end_inset
13015
13016
13017 \begin_inset Quotes eld
13018 \end_inset
13019
13020 Proposition
13021 \begin_inset Quotes erd
13022 \end_inset
13023
13024
13025 \begin_inset Quotes eld
13026 \end_inset
13027
13028 Prop
13029 \begin_inset Quotes erd
13030 \end_inset
13031
13032
13033 \begin_inset Quotes eld
13034 \end_inset
13035
13036 Question
13037 \begin_inset Quotes erd
13038 \end_inset
13039
13040
13041 \begin_inset Quotes eld
13042 \end_inset
13043
13044 Claim
13045 \begin_inset Quotes erd
13046 \end_inset
13047
13048 , and 
13049 \begin_inset Quotes eld
13050 \end_inset
13051
13052 Conjecture
13053 \begin_inset Quotes erd
13054 \end_inset
13055
13056 .
13057  Their use is more or less obvious.
13058  \SpecialChar LyX
13059  supports all these environments; it will use the proper label, text style,
13060  and numbering scheme for each of them.
13061 \end_layout
13062
13063 \begin_layout Enumerate
13064 Both packages use basic citations; the natbib package should not be used.
13065  In \SpecialChar LyX
13066 , citation references are shown as usual; in the output, citations are
13067  shown as superscripts.
13068  If you want to use a citation as normal text, you should use the 
13069 \family typewriter
13070 refcite
13071 \family default
13072  command, e.
13073 \begin_inset space \thinspace{}
13074 \end_inset
13075
13076 g.
13077 \begin_inset space \space{}
13078 \end_inset
13079
13080
13081 \begin_inset Quotes eld
13082 \end_inset
13083
13084 See Ref.
13085 \begin_inset space \space{}
13086 \end_inset
13087
13088
13089 \family typewriter
13090
13091 \backslash
13092 refcite{key}
13093 \family default
13094
13095 \begin_inset Quotes erd
13096 \end_inset
13097
13098 .
13099 \end_layout
13100
13101 \begin_layout Enumerate
13102 There is no 
13103 \begin_inset Quotes eld
13104 \end_inset
13105
13106 Acknowledgments
13107 \begin_inset Quotes erd
13108 \end_inset
13109
13110  section in both packages.
13111  To put acknowledgments, just use the 
13112 \begin_inset Quotes eld
13113 \end_inset
13114
13115 Section*
13116 \begin_inset Quotes erd
13117 \end_inset
13118
13119  environment.
13120 \end_layout
13121
13122 \begin_layout Enumerate
13123 Appendices may be added to the paper, 
13124 \emph on
13125 after
13126 \emph default
13127  the Acknowledgments and 
13128 \shape italic
13129 before
13130 \shape default
13131  the References.
13132  \SpecialChar LyX
13133  provides a special environment, called 
13134 \begin_inset Quotes eld
13135 \end_inset
13136
13137 Appendices Section
13138 \begin_inset Quotes erd
13139 \end_inset
13140
13141  which marks the beginning of the appendices.
13142  This environment should be left blank; it just sends a \SpecialChar LaTeX
13143  command, but nothing
13144  is really printed.
13145  In \SpecialChar LyX
13146 , the word 
13147 \begin_inset Quotes eld
13148 \end_inset
13149
13150 Appendix
13151 \begin_inset Quotes erd
13152 \end_inset
13153
13154  is printed with blue letters, as a signal that all sections after that
13155  point are appendices.
13156  To write an appendix, use the 
13157 \begin_inset Quotes eld
13158 \end_inset
13159
13160 Appendix
13161 \begin_inset Quotes erd
13162 \end_inset
13163
13164  environment.
13165  \SpecialChar LyX
13166  will number each appendix with capital letters, as required by both journals.
13167  Note that 
13168 \begin_inset Quotes eld
13169 \end_inset
13170
13171 Appendices Section
13172 \begin_inset Quotes erd
13173 \end_inset
13174
13175  
13176 \emph on
13177 must
13178 \emph default
13179  be present before the first appendix; if not, all appendices will be numbered
13180  as normal sections in the output.
13181 \end_layout
13182
13183 \begin_layout Enumerate
13184 The ijmpc and the ijmpd packages use the 
13185 \family typewriter
13186 tbl
13187 \family default
13188  command to implement table captions.
13189  As a result, a table created by \SpecialChar LyX
13190  is printed correctly, but its caption
13191  is ignored.
13192  However, you can use some \SpecialChar TeX
13193  code to overcome this problem, so that captions
13194  are printed as expected.
13195  To do so, create a float table as usual, remove the caption, and replace
13196  it with the \SpecialChar TeX
13197  code 
13198 \family typewriter
13199
13200 \backslash
13201 tbl{
13202 \emph on
13203 your table caption
13204 \emph default
13205 }{
13206 \family default
13207  (sic); you must also the \SpecialChar TeX
13208  code 
13209 \family typewriter
13210 }
13211 \family default
13212  immediately after the tabular material.
13213  Study the example table included in the template files to see how this
13214  trick is implemented.
13215  Alternatively, If you need table captions, you should implement the whole
13216  table float in a 
13217 \family typewriter
13218 .tex
13219 \family default
13220  file, then include this file to the \SpecialChar LyX
13221  document (
13222 \family sans
13223 Insert\SpecialChar menuseparator
13224 File\SpecialChar menuseparator
13225 Child
13226 \begin_inset space ~
13227 \end_inset
13228
13229 Document
13230 \family default
13231 ).
13232  Details on how to create a table float can be found in the files 
13233 \family typewriter
13234 ws-ijmpc.tex
13235 \family default
13236  and 
13237 \family typewriter
13238 ws-ijmpd.tex
13239 \family default
13240 , included in the corresponding packages.
13241 \end_layout
13242
13243 \begin_layout Subsection
13244 Preparing a paper for submission
13245 \end_layout
13246
13247 \begin_layout Standard
13248 Before you submit your paper you must export the \SpecialChar LyX
13249  document as a \SpecialChar LaTeX
13250  file (
13251 \family sans
13252 File\SpecialChar menuseparator
13253 Export\SpecialChar menuseparator
13254 \SpecialChar LaTeX
13255
13256 \family default
13257 )
13258 \begin_inset Foot
13259 status open
13260
13261 \begin_layout Plain Layout
13262 Actually you have the choice between \SpecialChar LaTeX
13263  (plain) and pdflatex.
13264  If you intend to use pdflatex to prepare the paper, you should use the
13265  pdflatex option so that included graphics are converted to PDF format,
13266  ready for use by pdflatex.
13267 \end_layout
13268
13269 \end_inset
13270
13271 , then make the following changes to the resulting 
13272 \family typewriter
13273 .tex
13274 \family default
13275  file.
13276 \end_layout
13277
13278 \begin_layout Enumerate
13279 Remove the comment lines before the 
13280 \family typewriter
13281
13282 \backslash
13283 documentclass
13284 \family default
13285  command.
13286 \end_layout
13287
13288 \begin_layout Enumerate
13289 Remove everything between (and including) the 
13290 \family typewriter
13291
13292 \backslash
13293 makeatletter
13294 \family default
13295  and 
13296 \family typewriter
13297
13298 \backslash
13299 makeatother
13300 \family default
13301  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13302  preamble.
13303 \end_layout
13304
13305 \begin_layout Standard
13306 The modified 
13307 \family typewriter
13308 .tex
13309 \family default
13310  file should be saved and processed through \SpecialChar LaTeX
13311  as many times as necessary.
13312  You may also want to check the resulting 
13313 \family typewriter
13314 .dvi
13315 \family default
13316  document.
13317 \end_layout
13318
13319 \begin_layout Subsection
13320 Use of \SpecialChar TeX
13321  code
13322 \end_layout
13323
13324 \begin_layout Standard
13325 The use of \SpecialChar TeX
13326  code is reduced to two commands, which must be placed at the
13327  top of the document.
13328  If you started writing your paper by using the 
13329 \family typewriter
13330 ijmpc.lyx
13331 \family default
13332  or the 
13333 \family typewriter
13334 ijmpd.lyx
13335 \family default
13336  template, the \SpecialChar TeX
13337  code needed is already in its place; you usually don't need
13338  to delete it.
13339  You may only modify the first \SpecialChar TeX
13340  code to specify the information printed
13341  to the top of odd and even pages (authors' names and short paper's title,
13342  respectively).
13343  This \SpecialChar TeX
13344  code must have the form 
13345 \family typewriter
13346
13347 \backslash
13348 markboth{Authors' Names}{Short Paper's Title}
13349 \family default
13350 .
13351 \end_layout
13352
13353 \begin_layout Section
13354 iopart
13355 \end_layout
13356
13357 \begin_layout Standard
13358 by 
13359 \noun on
13360 Uwe Stöhr
13361 \end_layout
13362
13363 \begin_layout Subsection
13364 Overview
13365 \end_layout
13366
13367 \begin_layout Standard
13368 The iopart package provides a document class to create electronic manuscript
13369  submission to the journals published by the Institute of Physics.
13370  Instructions for the authors how to create a paper using the iopart class
13371  can be downloaded together with the iopart package from the site 
13372 \begin_inset Flex URL
13373 status collapsed
13374
13375 \begin_layout Plain Layout
13376
13377 ftp://ftp.iop.org/pub/journals/latex2e
13378 \end_layout
13379
13380 \end_inset
13381
13382 .
13383 \end_layout
13384
13385 \begin_layout Subsection
13386 Writing a paper
13387 \end_layout
13388
13389 \begin_layout Standard
13390 The easiest way to write a paper is to start with the file 
13391 \emph on
13392 IOP-article.lyx
13393 \emph default
13394  that is available in \SpecialChar LyX
13395 's examples files folder.
13396  Open this file, save it under a new name, and start writing.
13397  The example file explains how to use the special text environments.
13398  Here are the most important advices:
13399 \end_layout
13400
13401 \begin_layout Itemize
13402 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13403  two options 
13404 \family sans
13405 Use AMS math package
13406 \family default
13407  in the document settings under 
13408 \family sans
13409 Math Options
13410 \family default
13411  are not used!
13412 \end_layout
13413
13414 \begin_layout Itemize
13415
13416 \size normal
13417 The title environment defines the kind of your paper.
13418  So use one of the following environments for the title:
13419 \end_layout
13420
13421 \begin_deeper
13422 \begin_layout Itemize
13423
13424 \family sans
13425 \size normal
13426 Title
13427 \family default
13428  for a Paper
13429 \end_layout
13430
13431 \begin_layout Itemize
13432
13433 \family sans
13434 \size normal
13435 Review
13436 \family default
13437  for a Review
13438 \end_layout
13439
13440 \begin_layout Itemize
13441
13442 \family sans
13443 \size normal
13444 Topical
13445 \family default
13446  for a Topical review
13447 \end_layout
13448
13449 \begin_layout Itemize
13450
13451 \family sans
13452 \size normal
13453 Comment
13454 \family default
13455  for a Comment
13456 \end_layout
13457
13458 \begin_layout Itemize
13459
13460 \family sans
13461 \size normal
13462 Note
13463 \family default
13464  for a Note
13465 \end_layout
13466
13467 \begin_layout Itemize
13468
13469 \family sans
13470 \size normal
13471 Paper
13472 \family default
13473  for a Paper (same as Title)
13474 \end_layout
13475
13476 \begin_layout Itemize
13477
13478 \family sans
13479 \size normal
13480 Prelim
13481 \family default
13482  for a Preliminary communication
13483 \end_layout
13484
13485 \begin_layout Itemize
13486
13487 \family sans
13488 \size normal
13489 Rapid
13490 \family default
13491  for a Rapid communication
13492 \end_layout
13493
13494 \begin_layout Itemize
13495
13496 \family sans
13497 \size normal
13498 Letter
13499 \family default
13500  for a Letter to the editor
13501 \end_layout
13502
13503 \end_deeper
13504 \begin_layout Itemize
13505
13506 \size normal
13507 All title environments except of 
13508 \family sans
13509 Letter
13510 \family default
13511  can have an optional short title.
13512 \end_layout
13513
13514 \begin_layout Itemize
13515 There is a general title environment 
13516 \family sans
13517 Article
13518 \family default
13519  which is not directly supported by the \SpecialChar LyX
13520 .
13521  This can be used as \SpecialChar TeX
13522  code when your document doesn't fit into one of the
13523  other title types.
13524 \end_layout
13525
13526 \begin_layout Standard
13527 For more informations like hints for special table and formula formatting,
13528  look at the IOP author guidelines.
13529 \end_layout
13530
13531 \begin_layout Section
13532 Kluwer
13533 \end_layout
13534
13535 \begin_layout Standard
13536 by 
13537 \noun on
13538 Panayotis Papasotiriou
13539 \end_layout
13540
13541 \begin_layout Subsection
13542 Overview
13543 \end_layout
13544
13545 \begin_layout Standard
13546 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13547  that facilitates electronic manuscript submission to the journals they
13548  publish.
13549  Most known of them (at least in my domain of interest) are 
13550 \emph on
13551 Astrophysics and Space Science
13552 \emph default
13553  and 
13554 \emph on
13555 Solar Physics
13556 \emph default
13557 , but there are many others (see a complete list at 
13558 \begin_inset Flex URL
13559 status open
13560
13561 \begin_layout Plain Layout
13562
13563 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13564 \end_layout
13565
13566 \end_inset
13567
13568 ).
13569  The Kluwer package may be downloaded from the site 
13570 \begin_inset Flex URL
13571 status collapsed
13572
13573 \begin_layout Plain Layout
13574
13575 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13576 \end_layout
13577
13578 \end_inset
13579
13580 .
13581  A complete user guide is contained in that package (but it can also be
13582  downloaded separately).
13583 \end_layout
13584
13585 \begin_layout Standard
13586 \SpecialChar LyX
13587  supports many features of the package but not everything.
13588  However, the \SpecialChar TeX
13589  code needed is reduced to some 
13590 \begin_inset Quotes eld
13591 \end_inset
13592
13593 peculiar
13594 \begin_inset Quotes erd
13595 \end_inset
13596
13597  commands of the package (see
13598 \begin_inset space ~
13599 \end_inset
13600
13601
13602 \begin_inset CommandInset ref
13603 LatexCommand ref
13604 reference "subsec:kluwer_peculiarities"
13605
13606 \end_inset
13607
13608 ).
13609  I have recently used \SpecialChar LyX
13610  to write an article submitted to the 
13611 \emph on
13612 Astrophysics and Space Science
13613 \emph default
13614  without any problem.
13615 \end_layout
13616
13617 \begin_layout Subsection
13618 Writing a paper
13619 \end_layout
13620
13621 \begin_layout Standard
13622 The easiest way to write a paper is to start with the Kluwer template file.
13623  Click on 
13624 \family sans
13625 File\SpecialChar menuseparator
13626 New from
13627 \family default
13628  
13629 \family sans
13630 Template
13631 \family default
13632 , then choose the 
13633 \family typewriter
13634 kluwer.lyx
13635 \family default
13636  template.
13637  This will give an (almost) empty document that includes the most common
13638  fields found in a manuscript and a short description of their use.
13639  As in most templates, simply overwrite the existing text (including the
13640  brackets, 
13641 \family typewriter
13642 <>
13643 \family default
13644 ) with the correct information.
13645 \end_layout
13646
13647 \begin_layout Subsection
13648 Preparing a paper for submission
13649 \end_layout
13650
13651 \begin_layout Standard
13652 As in the AAS\SpecialChar TeX
13653  package, before you submit your paper to a journal you must
13654  
13655 \begin_inset Quotes eld
13656 \end_inset
13657
13658 postprocess
13659 \begin_inset Quotes erd
13660 \end_inset
13661
13662  it as follows.
13663 \end_layout
13664
13665 \begin_layout Enumerate
13666 Export your paper as a \SpecialChar LaTeX
13667  file.
13668  To do this, click on 
13669 \family sans
13670 File\SpecialChar menuseparator
13671 Export\SpecialChar menuseparator
13672 \SpecialChar LaTeX
13673
13674 \family default
13675 .
13676  
13677 \end_layout
13678
13679 \begin_layout Enumerate
13680 Edit the resulting 
13681 \family typewriter
13682 .tex
13683 \family default
13684  file with a text editor and make the following changes
13685 \end_layout
13686
13687 \begin_deeper
13688 \begin_layout Enumerate
13689 remove the comment lines before the 
13690 \family typewriter
13691
13692 \backslash
13693 documentclass
13694 \family default
13695  command,
13696 \end_layout
13697
13698 \begin_layout Enumerate
13699 remove everything between (and including) the 
13700 \family typewriter
13701
13702 \backslash
13703 makeatletter
13704 \family default
13705  and 
13706 \family typewriter
13707
13708 \backslash
13709 makeatother
13710 \family default
13711  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13712  preamble.
13713 \end_layout
13714
13715 \begin_layout Standard
13716 Save the resulting 
13717 \family typewriter
13718 .tex
13719 \family default
13720  file.
13721 \end_layout
13722
13723 \end_deeper
13724 \begin_layout Enumerate
13725 Run the 
13726 \family typewriter
13727 .tex
13728 \family default
13729  file through \SpecialChar LaTeX
13730  as many times as necessary (usually up to three).
13731 \end_layout
13732
13733 \begin_layout Enumerate
13734 View the resulting 
13735 \family typewriter
13736 .dvi
13737 \family default
13738  document using, e.
13739 \begin_inset space \thinspace{}
13740 \end_inset
13741
13742 g.
13743 \begin_inset space \space{}
13744 \end_inset
13745
13746
13747 \family sans
13748 xdvi
13749 \family default
13750 , and check if everything is OK (it should, if you didn't make any mistake).
13751 \end_layout
13752
13753 \begin_layout Subsection
13754 \begin_inset Quotes eld
13755 \end_inset
13756
13757 Peculiarities
13758 \begin_inset Quotes erd
13759 \end_inset
13760
13761  of the Kluwer package
13762 \begin_inset CommandInset label
13763 LatexCommand label
13764 name "subsec:kluwer_peculiarities"
13765
13766 \end_inset
13767
13768
13769 \end_layout
13770
13771 \begin_layout Standard
13772 The Kluwer package has the following 
13773 \begin_inset Quotes eld
13774 \end_inset
13775
13776 peculiarities
13777 \begin_inset Quotes erd
13778 \end_inset
13779
13780 .
13781 \end_layout
13782
13783 \begin_layout Enumerate
13784 It is possible to write multiple articles in the same \SpecialChar LaTeX
13785  file
13786 \begin_inset Foot
13787 status collapsed
13788
13789 \begin_layout Plain Layout
13790 I can't imagine any good reason to do this.
13791 \end_layout
13792
13793 \end_inset
13794
13795 .
13796  Each article must be included in the environment 
13797 \begin_inset Quotes eld
13798 \end_inset
13799
13800 article
13801 \begin_inset Quotes erd
13802 \end_inset
13803
13804 .
13805  Unfortunately, this environment cannot be omitted, even if you write just
13806  one article.
13807  Therefore, each article starts with the command 
13808 \family typewriter
13809
13810 \backslash
13811 begin{article}
13812 \family default
13813  and, obviously, ends with the command 
13814 \family typewriter
13815
13816 \backslash
13817 end{article}
13818 \family default
13819 .
13820  Although this can be implemented in \SpecialChar LyX
13821 , I didn't included it, since it looks
13822  ugly and can confuse the novice user.
13823  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13824  code (the
13825  well-known 
13826 \begin_inset Quotes eld
13827 \end_inset
13828
13829 \SpecialChar TeX
13830  code
13831 \begin_inset Quotes erd
13832 \end_inset
13833
13834 ).
13835 \end_layout
13836
13837 \begin_layout Enumerate
13838 Information given at the beginning of the article (i.
13839 \begin_inset space \thinspace{}
13840 \end_inset
13841
13842 e.
13843 \begin_inset space \space{}
13844 \end_inset
13845
13846 title, subtitle, author, institution, running title, running author, abstract
13847  and keywords) must be included in an environment called 
13848 \begin_inset Quotes eld
13849 \end_inset
13850
13851 opening
13852 \begin_inset Quotes erd
13853 \end_inset
13854
13855 .
13856  This is not implemented in \SpecialChar LyX
13857 , so you must enter title, subtitle etc.
13858 \begin_inset space ~
13859 \end_inset
13860
13861 between two \SpecialChar TeX
13862  code lines (
13863 \family typewriter
13864
13865 \backslash
13866 begin{opening}
13867 \family default
13868  and 
13869 \family typewriter
13870
13871 \backslash
13872 end{opening}
13873 \family default
13874 ).
13875 \end_layout
13876
13877 \begin_layout Enumerate
13878 According to the user manual, the label of each bibliography item must be
13879  written as 
13880 \family typewriter
13881
13882 \backslash
13883 protect
13884 \backslash
13885 citeauthoryear{
13886 \family default
13887 \emph on
13888 author(s)
13889 \family typewriter
13890 \emph default
13891 }{
13892 \family default
13893 \emph on
13894 year
13895 \family typewriter
13896 \emph default
13897 }
13898 \family default
13899 .
13900 \end_layout
13901
13902 \begin_layout Standard
13903 The 
13904 \family typewriter
13905 kluwer.lyx
13906 \family default
13907  template takes care of all these 
13908 \begin_inset Quotes eld
13909 \end_inset
13910
13911 peculiarities
13912 \begin_inset Quotes erd
13913 \end_inset
13914
13915 .
13916  If you start a new paper using this template you don't need to do anything
13917  special.
13918  Just 
13919 \end_layout
13920
13921 \begin_layout Enumerate
13922 don't delete the \SpecialChar TeX
13923  code included in the template, and
13924 \end_layout
13925
13926 \begin_layout Enumerate
13927 copy the example bibliography item included in the template and modify it
13928  as necessary to enter new bibliography items.
13929 \end_layout
13930
13931 \begin_layout Section
13932 Koma-Script
13933 \end_layout
13934
13935 \begin_layout Standard
13936 by 
13937 \noun on
13938 Bernd Rellermeyer
13939 \end_layout
13940
13941 \begin_layout Subsection
13942 Overview
13943 \end_layout
13944
13945 \begin_layout Standard
13946 The \SpecialChar LyX
13947  document classes 
13948 \emph on
13949 article (koma-script)
13950 \emph default
13951
13952 \emph on
13953 report (koma-script)
13954 \emph default
13955
13956 \emph on
13957 book
13958 \emph default
13959  
13960 \emph on
13961 (koma-script)
13962 \emph default
13963 , and 
13964 \emph on
13965 letter
13966 \emph default
13967  
13968 \emph on
13969 (koma-script)
13970 \emph default
13971  correspond to the \SpecialChar LaTeX
13972  document classes 
13973 \family typewriter
13974 scrartcl.cls
13975 \family default
13976
13977 \family typewriter
13978 scrreprt.cls
13979 \family default
13980
13981 \family typewriter
13982 scrbook.cls
13983 \family default
13984 , and 
13985 \family typewriter
13986 scrlettr.cls
13987 \family default
13988 , resp.
13989 \begin_inset space ~
13990 \end_inset
13991
13992 of the Koma-Script family.
13993  They are replacements for the standard document classes 
13994 \family typewriter
13995 article.cls
13996 \family default
13997
13998 \family typewriter
13999 report.cls
14000 \family default
14001
14002 \family typewriter
14003 book.cls
14004 \family default
14005  and 
14006 \family typewriter
14007 letter.cls
14008 \family default
14009 , resp., and fit better to European typography conventions in a number of
14010  points.
14011 \end_layout
14012
14013 \begin_layout Itemize
14014 Standard character size is 11pt in 
14015 \emph on
14016 article (koma-script)
14017 \emph default
14018
14019 \emph on
14020 report (koma-script)
14021 \emph default
14022 , and 
14023 \emph on
14024 book (koma-script)
14025 \emph default
14026 , and 12pt in 
14027 \emph on
14028 letter (koma-script)
14029 \emph default
14030 .
14031 \end_layout
14032
14033 \begin_layout Itemize
14034 Headings, labels of the description environment, and a number of elements
14035  of the 
14036 \emph on
14037 letter (koma-script)
14038 \emph default
14039  document class are set in a bold sans serif font.
14040 \begin_inset Foot
14041 status collapsed
14042
14043 \begin_layout Plain Layout
14044 There is a big difference between the bold sans serif old cm fonts and new
14045  ec fonts, especially in the appearance of headings.
14046  In comparison, the ec bold sans serif fonts look a bit thin.
14047  Here the \SpecialChar LaTeX
14048  package 
14049 \family typewriter
14050 cmsd.sty by
14051 \family default
14052  
14053 \shape smallcaps
14054 Walter Schmidt
14055 \shape default
14056  helps to produce the 
14057 \begin_inset Quotes eld
14058 \end_inset
14059
14060 usual
14061 \begin_inset Quotes erd
14062 \end_inset
14063
14064  appearance when using the ec fonts.
14065 \end_layout
14066
14067 \end_inset
14068
14069  The numbering of chapter headings is made in the same way as the numbering
14070  of section headings, that is without the extra line 
14071 \begin_inset Quotes eld
14072 \end_inset
14073
14074 Chapter\SpecialChar ldots
14075
14076 \begin_inset Quotes erd
14077 \end_inset
14078
14079 .
14080  In addition, the appearance of the headings can be modified by using a
14081  number of options (in \SpecialChar LyX
14082  to be entered in the field 
14083 \family sans
14084 Extra
14085 \begin_inset space ~
14086 \end_inset
14087
14088 Options
14089 \family default
14090  of the dialog 
14091 \family sans
14092 Layout\SpecialChar menuseparator
14093 Document
14094 \family default
14095 ).
14096  
14097 \end_layout
14098
14099 \begin_layout Itemize
14100 The main means in the Koma-Script document classes to design the type area
14101  are the options 
14102 \family sans
14103 BCOR
14104 \family default
14105  and 
14106 \family sans
14107 DIV
14108 \family default
14109  (in \SpecialChar LyX
14110  to be entered in the extra class options field in the dialog 
14111 \family sans
14112 Document\SpecialChar menuseparator
14113 Settings
14114 \family default
14115 ).
14116  They make a clearer modification of page margins possible as do the options
14117  of the dialog 
14118 \family sans
14119 Document\SpecialChar menuseparator
14120 Settings
14121 \family default
14122 .
14123  
14124 \end_layout
14125
14126 \begin_layout Itemize
14127 The \SpecialChar LaTeX
14128  document classes of the Koma-Script family define a number of additional
14129  commands.
14130  Those part of it which makes sense in \SpecialChar LyX
14131  is implemented in corresponding
14132  paragraph types.
14133 \end_layout
14134
14135 \begin_layout Standard
14136 Detailed descriptions of the \SpecialChar LaTeX
14137  document classes of the Koma-Script family
14138  can be found in the Koma-Script documentation 
14139 \emph on
14140 scrguide
14141 \emph default
14142  (German) and 
14143 \emph on
14144 scrguien
14145 \emph default
14146  (English).
14147 \end_layout
14148
14149 \begin_layout Subsection
14150 article (koma-script), report (koma-script), and book (koma-script)
14151 \end_layout
14152
14153 \begin_layout Standard
14154 The document classes 
14155 \emph on
14156 article (koma-script)
14157 \emph default
14158
14159 \emph on
14160 report (koma-script)
14161 \emph default
14162 , and 
14163 \emph on
14164 book
14165 \emph default
14166  
14167 \emph on
14168 (koma-script)
14169 \emph default
14170  are implemented in the layout files 
14171 \family typewriter
14172 scrartcl.layout
14173 \family default
14174
14175 \family typewriter
14176 scrreprt.layout
14177 \family default
14178 , and 
14179 \family typewriter
14180 scrbook.layout
14181 \family default
14182 , resp.
14183  They contain all the paragraph types of the corresponding standard document
14184  classes 
14185 \emph on
14186 article
14187 \emph default
14188
14189 \emph on
14190 report
14191 \emph default
14192 , and 
14193 \emph on
14194 book
14195 \emph default
14196 , resp., partly modified, with the exception of the \SpecialChar LyX
14197  specific 
14198 \family sans
14199 List
14200 \family default
14201 -type, which is replaced by the new 
14202 \family sans
14203 Labeling
14204 \family default
14205 -type having the same functionality.
14206  Beside the 
14207 \family sans
14208 Labeling
14209 \family default
14210 -Type there is a number of new paragraph types added.
14211  They are 
14212 \emph on
14213 not
14214 \emph default
14215  part of 
14216 \emph on
14217 letter (koma-script)
14218 \emph default
14219 .
14220 \end_layout
14221
14222 \begin_layout Itemize
14223
14224 \family sans
14225 Addpart, Addchap
14226 \family default
14227
14228 \family sans
14229 Addsec
14230 \family default
14231 : are equivalents to 
14232 \family sans
14233 Part*, Chapter*
14234 \family default
14235  and 
14236 \family sans
14237 Section*
14238 \family default
14239 , resp., additionally inserting an entry in the table of contents.
14240  
14241 \family sans
14242 Addpart
14243 \family default
14244  and 
14245 \family sans
14246 Addchap
14247 \family default
14248  are not contained in 
14249 \emph on
14250 article (koma-script)
14251 \emph default
14252 .
14253 \end_layout
14254
14255 \begin_layout Itemize
14256
14257 \family sans
14258 Addchap*
14259 \family default
14260
14261 \family sans
14262 Addsec*
14263 \family default
14264 : behave exactly as 
14265 \family sans
14266 Addchap
14267 \family default
14268  and 
14269 \family sans
14270 Addsec
14271 \family default
14272 , resp., additionally clearing running heads.
14273  
14274 \family sans
14275 Addchap*
14276 \family default
14277  is not contained in 
14278 \emph on
14279 article (koma-script)
14280 \emph default
14281 .
14282 \begin_inset Foot
14283 status collapsed
14284
14285 \begin_layout Plain Layout
14286 There is also an 
14287 \family typewriter
14288
14289 \backslash
14290 addpart*
14291 \family default
14292  command in 
14293 \emph on
14294 book (koma-script)
14295 \emph default
14296  and in 
14297 \emph on
14298 report (koma-script)
14299 \emph default
14300 , but since this is identical to 
14301 \family sans
14302 Part*
14303 \family default
14304 , is has not been implemented in \SpecialChar LyX
14305 .
14306 \end_layout
14307
14308 \end_inset
14309
14310
14311 \end_layout
14312
14313 \begin_layout Itemize
14314
14315 \family sans
14316 Minisec
14317 \family default
14318 : generates a heading directly above the following paragraph in the standard
14319  character size without affecting the structure of the document.
14320 \end_layout
14321
14322 \begin_layout Itemize
14323
14324 \family sans
14325 Captionabove
14326 \family default
14327  and 
14328 \family sans
14329 Captionbelow
14330 \family default
14331  are special captions which respect the different space settings needed
14332  for captions placed above or below an element (if you follow strict typographic
14333  rules, you might want to place table captions always above the table).
14334  You can also use the class option 
14335 \family typewriter
14336 tablecaptionsabove
14337 \family default
14338 , which will switch 
14339 \family sans
14340 caption
14341 \family default
14342  to 
14343 \family sans
14344 captionabove
14345 \family default
14346  for tables and 
14347 \family sans
14348 captionbelow
14349 \family default
14350  for figures.
14351  You need at least Koma-Script version 2.8q to use this.
14352 \end_layout
14353
14354 \begin_layout Itemize
14355
14356 \family sans
14357 Dictum
14358 \family default
14359 : can be used to set a bonmot, e.
14360 \begin_inset space \thinspace{}
14361 \end_inset
14362
14363 g.
14364 \begin_inset space \space{}
14365 \end_inset
14366
14367 at the beginning of a chapter.
14368  If you use the optional argument (
14369 \family sans
14370 Insert\SpecialChar menuseparator
14371 Short
14372 \begin_inset space ~
14373 \end_inset
14374
14375 Title
14376 \family default
14377 ), you can insert the dictum's author there.
14378  Dictum and author are separated by a line.
14379  You need at least Koma-Script version 2.8q to use this.
14380  
14381 \family sans
14382 Dictum
14383 \family default
14384  is not contained in 
14385 \emph on
14386 article (koma-script)
14387 \emph default
14388 .
14389 \end_layout
14390
14391 \begin_layout Standard
14392 The following types, together with the standard types 
14393 \family sans
14394 Title
14395 \family default
14396
14397 \family sans
14398 Author
14399 \family default
14400 , and 
14401 \family sans
14402 Date
14403 \family default
14404 , form the title area of the document.
14405  They must be entered ahead of the first 
14406 \begin_inset Quotes eld
14407 \end_inset
14408
14409 ordinary
14410 \begin_inset Quotes erd
14411 \end_inset
14412
14413  paragraph.
14414 \begin_inset Foot
14415 status collapsed
14416
14417 \begin_layout Plain Layout
14418 The corresponding \SpecialChar LaTeX
14419  commands must appear before the 
14420 \family typewriter
14421
14422 \backslash
14423 maketitle
14424 \family default
14425  command.
14426 \end_layout
14427
14428 \end_inset
14429
14430  When such a type is used more than once, the latter usage overwrites the
14431  former one, that means, for every type only the latest usage is valid.
14432  The order of the different types however has, like 
14433 \family sans
14434 Title
14435 \family default
14436
14437 \family sans
14438 Author
14439 \family default
14440 , and 
14441 \family sans
14442 Date
14443 \family default
14444 , no effect on the appearance of the produced document.
14445 \end_layout
14446
14447 \begin_layout Itemize
14448
14449 \family sans
14450 Subject
14451 \family default
14452 : produces a centered paragraph above the ordinary title (
14453 \family sans
14454 Title
14455 \family default
14456
14457 \family sans
14458 Author
14459 \family default
14460
14461 \family sans
14462 Date
14463 \family default
14464 ) for the subject of the document.
14465 \end_layout
14466
14467 \begin_layout Itemize
14468
14469 \family sans
14470 Publishers
14471 \family default
14472 : produces a centered paragraph below the ordinary title (
14473 \family sans
14474 Title
14475 \family default
14476
14477 \family sans
14478 Author
14479 \family default
14480
14481 \family sans
14482 Date
14483 \family default
14484 ) for the publishers' name.
14485 \end_layout
14486
14487 \begin_layout Itemize
14488
14489 \family sans
14490 Dedication
14491 \family default
14492 : in 
14493 \emph on
14494 report (koma-script)
14495 \emph default
14496  and 
14497 \emph on
14498 book (koma-script)
14499 \emph default
14500  produces a centered paragraph on its own page behind the title page, or
14501  in 
14502 \emph on
14503 article (koma-script)
14504 \emph default
14505  produces a centered paragraph below the ordinary title (
14506 \family sans
14507 Title
14508 \family default
14509
14510 \family sans
14511 Author
14512 \family default
14513
14514 \family sans
14515 Date
14516 \family default
14517
14518 \family sans
14519 Publishers
14520 \family default
14521 ) for a dedication.
14522 \end_layout
14523
14524 \begin_layout Itemize
14525
14526 \family sans
14527 Titlehead
14528 \family default
14529 : produces a left aligned paragraph above the ordinary title (
14530 \family sans
14531 Title
14532 \family default
14533
14534 \family sans
14535 Author
14536 \family default
14537
14538 \family sans
14539 Date
14540 \family default
14541
14542 \family sans
14543 Subject
14544 \family default
14545 ) for a document`s head.
14546 \end_layout
14547
14548 \begin_layout Itemize
14549
14550 \family sans
14551 Uppertitleback
14552 \family default
14553 : produces in a double-sided print in 
14554 \emph on
14555 report (koma-script)
14556 \emph default
14557  and 
14558 \emph on
14559 book (koma-script)
14560 \emph default
14561  a left-aligned paragraph at the top of the title page`s back or has no
14562  effect in a single-sided print or in 
14563 \emph on
14564 article (koma-script)
14565 \emph default
14566 .
14567 \end_layout
14568
14569 \begin_layout Itemize
14570
14571 \family sans
14572 Lowertitleback
14573 \family default
14574 : produces in a double-sided print in 
14575 \emph on
14576 report (koma-script)
14577 \emph default
14578  and 
14579 \emph on
14580 book (koma-script)
14581 \emph default
14582  a left-aligned paragraph at the bottom of the title page`s back or has
14583  no effect in a single-sided print or in 
14584 \emph on
14585 article (koma-script)
14586 \emph default
14587 .
14588 \end_layout
14589
14590 \begin_layout Itemize
14591
14592 \family sans
14593 Extratitle
14594 \family default
14595 : produces a special 
14596 \begin_inset Quotes eld
14597 \end_inset
14598
14599 dirty
14600 \begin_inset Quotes erd
14601 \end_inset
14602
14603  page ahead of the actual document containing a paragraph without special
14604  formatting.
14605 \end_layout
14606
14607 \begin_layout Standard
14608 The layout files for the document classes 
14609 \emph on
14610 article (koma-script)
14611 \emph default
14612
14613 \emph on
14614 report (koma-script)
14615 \emph default
14616 , and 
14617 \emph on
14618 book (koma-script)
14619 \emph default
14620  do include the file 
14621 \family typewriter
14622 scrmacros.inc
14623 \family default
14624 .
14625  This is thought of as a place to define your own types.
14626  Copy scrmacros
14627 \family typewriter
14628 .inc
14629 \family default
14630  in your personal layout directory and edit the file!
14631 \end_layout
14632
14633 \begin_layout Subsection
14634 letter (koma-script)
14635 \end_layout
14636
14637 \begin_layout Standard
14638 \noindent
14639 The document class 
14640 \emph on
14641 letter (koma-script)
14642 \emph default
14643  is implemented in the layout file 
14644 \family typewriter
14645 scrlettr.layout
14646 \family default
14647 .
14648  It contains all the paragraph types of the corresponding standard document
14649  class 
14650 \emph on
14651 letter
14652 \emph default
14653 , partly modified, with the exception of the \SpecialChar LyX
14654  specific types 
14655 \family sans
14656 \SpecialChar LyX
14657 -Code
14658 \family default
14659  and 
14660 \family sans
14661 Comment
14662 \family default
14663  and the 
14664 \family sans
14665 List
14666 \family default
14667  type, which is replaced by the new 
14668 \family sans
14669 Labeling
14670 \family default
14671  type.
14672  In addition, it contains, in contrast to the standard document class, the
14673  standard types 
14674 \family sans
14675 \SpecialChar LaTeX
14676
14677 \family default
14678
14679 \family sans
14680 Quotation
14681 \family default
14682
14683 \family sans
14684 Quote
14685 \family default
14686 , and 
14687 \family sans
14688 Verse
14689 \family default
14690 .
14691  Furthermore, there are a number of new letter specific types.
14692 \end_layout
14693
14694 \begin_layout Standard
14695 The appearance of the letter produced by this document class can be controlled
14696  by a number of \SpecialChar LaTeX
14697  commands, which you can put in the \SpecialChar LaTeX
14698  preamble.
14699 \begin_inset Foot
14700 status collapsed
14701
14702 \begin_layout Plain Layout
14703 For example, the standard appearance of the letter`s heading, consisting
14704  of name and address, is quite self-willed.
14705  An 
14706 \begin_inset Quotes eld
14707 \end_inset
14708
14709 ordinary
14710 \begin_inset Quotes erd
14711 \end_inset
14712
14713  heading is produced by the following \SpecialChar LaTeX
14714  commands in the preamble:
14715 \end_layout
14716
14717 \begin_layout LyX-Code
14718
14719 \backslash
14720 firsthead{
14721 \backslash
14722 parbox[b]{
14723 \backslash
14724 textwidth}
14725 \end_layout
14726
14727 \begin_layout LyX-Code
14728   {
14729 \backslash
14730 ignorespaces 
14731 \backslash
14732 fromname
14733 \backslash
14734
14735 \backslash
14736  
14737 \backslash
14738 ignorespaces 
14739 \backslash
14740 fromaddress}} 
14741 \end_layout
14742
14743 \begin_layout LyX-Code
14744
14745 \backslash
14746 nexthead{
14747 \backslash
14748 parbox[b]{
14749 \backslash
14750 textwidth}
14751 \end_layout
14752
14753 \begin_layout LyX-Code
14754   {
14755 \backslash
14756 ignorespaces 
14757 \backslash
14758 fromname 
14759 \backslash
14760 hfill 
14761 \backslash
14762 ignorespaces 
14763 \backslash
14764 pagename
14765 \backslash
14766  
14767 \backslash
14768 thepage}}
14769 \end_layout
14770
14771 \end_inset
14772
14773  A detailed German description of such \SpecialChar LaTeX
14774  commands can be found in the Koma-Script
14775  documentation 
14776 \emph on
14777 scrguide
14778 \emph default
14779 .
14780  With it, the letter's author can produce his personal letter layout.
14781 \end_layout
14782
14783 \begin_layout Standard
14784 The types 
14785 \family sans
14786 Letter
14787 \family default
14788  and 
14789 \family sans
14790 Opening
14791 \family default
14792  define the beginning of the letter and must be used in every letter.
14793  To emphasize them in the \SpecialChar LyX
14794  document class, they are marked with the letter
14795  
14796 \shape italic
14797 L
14798 \shape default
14799  or 
14800 \shape italic
14801 O
14802 \shape default
14803 , resp.
14804 \begin_inset space ~
14805 \end_inset
14806
14807 in the left margin.
14808  It is possible to write any number of letters in one file.
14809  An 
14810 \family sans
14811 Opening
14812 \family default
14813  type produces a new letter using the same addressee and a 
14814 \family sans
14815 Letter
14816 \family default
14817  type produces a new addressee.
14818  The types 
14819 \family sans
14820 Closing
14821 \family default
14822
14823 \family sans
14824 PS
14825 \family default
14826
14827 \family sans
14828 CC
14829 \family default
14830 , and 
14831 \family sans
14832 Encl
14833 \family default
14834  are ordinary paragraph types and can also be used several times in one
14835  and the same letter.
14836 \end_layout
14837
14838 \begin_layout Itemize
14839
14840 \family sans
14841 Letter
14842 \family default
14843 : produces a paragraph for the addressee and implicitly defines the beginning
14844  of the letter.
14845 \end_layout
14846
14847 \begin_layout Itemize
14848
14849 \family sans
14850 Opening
14851 \family default
14852 : produces a paragraph for the form of address and implicitly produces a
14853  new letter.
14854 \end_layout
14855
14856 \begin_layout Itemize
14857
14858 \family sans
14859 Closing
14860 \family default
14861 : produces a paragraph for a close.
14862 \end_layout
14863
14864 \begin_layout Itemize
14865
14866 \family sans
14867 PS
14868 \family default
14869 : produces a paragraph for a postscript.
14870 \end_layout
14871
14872 \begin_layout Itemize
14873
14874 \family sans
14875 CC
14876 \family default
14877 : produces a paragraph for a distribution list.
14878 \end_layout
14879
14880 \begin_layout Itemize
14881
14882 \family sans
14883 Encl
14884 \family default
14885 : produces a paragraph for enclosures.
14886 \end_layout
14887
14888 \begin_layout Standard
14889 The types 
14890 \family sans
14891 Name
14892 \family default
14893
14894 \family sans
14895 Signature
14896 \family default
14897
14898 \family sans
14899 Address
14900 \family default
14901
14902 \family sans
14903 Telephone
14904 \family default
14905
14906 \family sans
14907 Place
14908 \family default
14909
14910 \family sans
14911 Backaddress
14912 \family default
14913
14914 \family sans
14915 Specialmail
14916 \family default
14917
14918 \family sans
14919 Location
14920 \family default
14921
14922 \family sans
14923 Title
14924 \family default
14925 , and 
14926 \family sans
14927 Subject
14928 \family default
14929  are input types provided with a label to enter information, which will
14930  be processed by the document class.
14931 \begin_inset Foot
14932 status open
14933
14934 \begin_layout Plain Layout
14935 It could be seen as a matter of inconsequence, that the types 
14936 \family sans
14937 Letter
14938 \family default
14939  and 
14940 \family sans
14941 Opening
14942 \family default
14943  described above are not such input types as well.
14944  Because of the special meaning of those types, however, I have implemented
14945  them as ordinary paragraph types with a one letter mark in the left margin.
14946  Moreover, it would affect my feeling of symmetry, if the 
14947 \family sans
14948 Opening
14949 \family default
14950  type and the 
14951 \family sans
14952 Closing
14953 \family default
14954  type had such a serious different appearance.
14955 \end_layout
14956
14957 \end_inset
14958
14959  The types must be used ahead of the corresponding 
14960 \family sans
14961 Opening
14962 \family default
14963  type.
14964 \end_layout
14965
14966 \begin_layout Standard
14967 An implementation of these types in a WYSIWYG fashion does not seem to make
14968  sense, because the real appearance of the produced letter does not only
14969  depend on the usage of the particular type, but also on other factors.
14970  For example, a signature entered in the 
14971 \family sans
14972 Signature
14973 \family default
14974  type will in the standard behavior appear in the produced letter only,
14975  when in the same letter also a 
14976 \family sans
14977 Closing
14978 \family default
14979  type is used.
14980  The entered value of the 
14981 \family sans
14982 Telephone
14983 \family default
14984  type will in the standard behavior not appear in the produced letter at
14985  all.
14986  The possibility to design the letter`s heading freely is already indicated
14987  in a footnote above.
14988 \end_layout
14989
14990 \begin_layout Standard
14991 The input types can also be used as empty paragraphs.
14992  This makes sense e.
14993 \begin_inset space \thinspace{}
14994 \end_inset
14995
14996 g.
14997 \begin_inset space \space{}
14998 \end_inset
14999
15000 for the 
15001 \family sans
15002 Signature
15003 \family default
15004  type.
15005  If the 
15006 \family sans
15007 Signature
15008 \family default
15009  type is not used at all, in the standard behavior the value of the 
15010 \family sans
15011 Name
15012 \family default
15013  type is used as signature, whereas if an empty 
15014 \family sans
15015 Signature
15016 \family default
15017  type is used, no signature value is defined.
15018 \end_layout
15019
15020 \begin_layout Standard
15021 By using the input types it is possible to write a letter template, containing
15022  filled input types with your personal dates (name, address, etc.) and empty
15023  input types for other dates you want to enter.
15024 \end_layout
15025
15026 \begin_layout Itemize
15027
15028 \family sans
15029 Name
15030 \family default
15031 : sender's name, in the standard behavior appears as a centered paragraph
15032  in small caps in the letter`s heading.
15033 \end_layout
15034
15035 \begin_layout Itemize
15036
15037 \family sans
15038 Signature
15039 \family default
15040 : sender's signature, in the standard behavior appears below the 
15041 \family sans
15042 Closing
15043 \family default
15044  type.
15045  If no 
15046 \family sans
15047 Signature
15048 \family default
15049  type is used, the value of the 
15050 \family sans
15051 Name
15052 \family default
15053  type appears instead.
15054 \end_layout
15055
15056 \begin_layout Itemize
15057
15058 \family sans
15059 Address
15060 \family default
15061 : sender's address, in the standard behavior appears in a centered paragraph
15062  in the letter`s heading below the sender's name.
15063 \end_layout
15064
15065 \begin_layout Itemize
15066
15067 \family sans
15068 Telephone
15069 \family default
15070 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15071  variable
15072  
15073 \family typewriter
15074
15075 \backslash
15076 telephonenum
15077 \family default
15078 .
15079 \end_layout
15080
15081 \begin_layout Itemize
15082
15083 \family sans
15084 Place
15085 \family default
15086 : place of the letter`s making.
15087 \end_layout
15088
15089 \begin_layout Itemize
15090
15091 \family sans
15092 Date
15093 \family default
15094 : date of the letter`s making.
15095  
15096 \family sans
15097 Place
15098 \family default
15099  and 
15100 \family sans
15101 Date
15102 \family default
15103 , in the standard behavior, produce the place and the date in a right-aligned
15104  line below the addressee's field.
15105  If an empty 
15106 \family sans
15107 Date
15108 \family default
15109  type is used, neither place nor date appear, independent of the value of
15110  the 
15111 \family sans
15112 Place
15113 \family default
15114  type.
15115  If no 
15116 \family sans
15117 Date
15118 \family default
15119  type is used, the date of the letter `s production is used.
15120 \end_layout
15121
15122 \begin_layout Itemize
15123
15124 \family sans
15125 Backaddress
15126 \family default
15127 : sender`s back address, in the standard behavior appears above the addressee's
15128  field in a small sans serif font.
15129 \end_layout
15130
15131 \begin_layout Itemize
15132
15133 \family sans
15134 Specialmail
15135 \family default
15136 : special mail information, in the standard behavior appears underlined
15137  above the addressee's field below the back address.
15138 \end_layout
15139
15140 \begin_layout Itemize
15141
15142 \family sans
15143 Location
15144 \family default
15145 : additional information, in the standard behavior appears on right side
15146  below the addressee`s field.
15147 \end_layout
15148
15149 \begin_layout Itemize
15150
15151 \family sans
15152 Title
15153 \family default
15154 : the letter's title, in the standard behavior appears in a big, bold, sans
15155  serif font above the subject.
15156 \end_layout
15157
15158 \begin_layout Itemize
15159
15160 \family sans
15161 Subject
15162 \family default
15163 : the letter's subject, in the standard behavior appears in a bold font
15164  above the 
15165 \family sans
15166 Opening
15167 \family default
15168  paragraph.
15169 \end_layout
15170
15171 \begin_layout Standard
15172 The types 
15173 \family sans
15174 Yourref
15175 \family default
15176
15177 \family sans
15178 Yourmail
15179 \family default
15180
15181 \family sans
15182 Myref
15183 \family default
15184
15185 \family sans
15186 Customer
15187 \family default
15188 , and 
15189 \family sans
15190 Invoice
15191 \family default
15192  produce a business letter like line above the 
15193 \family sans
15194 Title
15195 \family default
15196  line containing the fields 
15197 \begin_inset Quotes eld
15198 \end_inset
15199
15200 Your ref.
15201 \begin_inset Quotes erd
15202 \end_inset
15203
15204
15205 \begin_inset Quotes eld
15206 \end_inset
15207
15208 Your letter of
15209 \begin_inset Quotes erd
15210 \end_inset
15211
15212
15213 \begin_inset Quotes eld
15214 \end_inset
15215
15216 Our ref.
15217 \begin_inset Quotes erd
15218 \end_inset
15219
15220
15221 \begin_inset Quotes eld
15222 \end_inset
15223
15224 Customer no.
15225 \begin_inset Quotes erd
15226 \end_inset
15227
15228
15229 \begin_inset Quotes eld
15230 \end_inset
15231
15232 Invoice no.
15233 \begin_inset Quotes erd
15234 \end_inset
15235
15236 , and 
15237 \begin_inset Quotes eld
15238 \end_inset
15239
15240 Date
15241 \begin_inset Quotes erd
15242 \end_inset
15243
15244 .
15245  For the date field, the value of the 
15246 \family sans
15247 Date
15248 \family default
15249  type is used.
15250  If one of these 
15251 \begin_inset Quotes eld
15252 \end_inset
15253
15254 business letter types
15255 \begin_inset Quotes erd
15256 \end_inset
15257
15258  is used, the value of the 
15259 \family sans
15260 Place
15261 \family default
15262  type however does not appear, but only the \SpecialChar LaTeX
15263  variable 
15264 \family typewriter
15265
15266 \backslash
15267 fromplace
15268 \family default
15269  is set.
15270  The ordinary output of place and date in a right-aligned line below the
15271  addressee`s field is suppressed.
15272  The types are implemented as input types provided with a label and must
15273  be used ahead of the corresponding 
15274 \family sans
15275 Opening
15276 \family default
15277  type.
15278 \end_layout
15279
15280 \begin_layout Itemize
15281
15282 \family sans
15283 Yourref
15284 \family default
15285 : Your ref.
15286 \end_layout
15287
15288 \begin_layout Itemize
15289
15290 \family sans
15291 Yourmail
15292 \family default
15293 : Your letter of.
15294 \end_layout
15295
15296 \begin_layout Itemize
15297
15298 \family sans
15299 Myref
15300 \family default
15301 : Our ref.
15302 \end_layout
15303
15304 \begin_layout Itemize
15305
15306 \family sans
15307 Customer
15308 \family default
15309 : Customer no.
15310 \end_layout
15311
15312 \begin_layout Itemize
15313
15314 \family sans
15315 Invoice
15316 \family default
15317 : Invoice no.
15318 \end_layout
15319
15320 \begin_layout Subsection
15321 The new letter class: letter (koma-script v.2)
15322 \end_layout
15323
15324 \begin_layout Standard
15325 by 
15326 \noun on
15327 Jürgen Spitzmüller
15328 \end_layout
15329
15330 \begin_layout Standard
15331 \begin_inset VSpace medskip
15332 \end_inset
15333
15334
15335 \end_layout
15336
15337 \begin_layout Standard
15338 \noindent
15339 Koma-Script version 2.8 has introduced a new letter class 
15340 \family typewriter
15341 scrlttr2
15342 \family default
15343  which supersedes the now unsupported 
15344 \family typewriter
15345 scrlettr
15346 \family default
15347 .
15348  It has — on the \SpecialChar LaTeX
15349  side — a completely new interface and is not compatible
15350  with the old class.
15351  Therefore, \SpecialChar LyX
15352  supports both, though it is recommended you use the new class.
15353 \end_layout
15354
15355 \begin_layout Standard
15356 This class covers the same functionality as 
15357 \emph on
15358 letter (koma-script),
15359 \emph default
15360  and a few more.
15361  The basic items are 
15362 \family sans
15363 Address
15364 \family default
15365  (receiver's address, same as 
15366 \family sans
15367 Letter
15368 \family default
15369  in the old layout), 
15370 \family sans
15371 Opening
15372 \family default
15373 , and 
15374 \family sans
15375 Closing
15376 \family default
15377 .
15378  
15379 \family sans
15380 NextAddress
15381 \family default
15382  will start a new letter (i.
15383 \begin_inset space \thinspace{}
15384 \end_inset
15385
15386 e.
15387 \begin_inset space \space{}
15388 \end_inset
15389
15390 you can write several letters per document).
15391  New elements are sender's 
15392 \family sans
15393 E-Mail
15394 \family default
15395
15396 \family sans
15397 URL
15398 \family default
15399
15400 \family sans
15401 Fax
15402 \family default
15403
15404 \family sans
15405 Bank
15406 \family default
15407  and the possibility to use a 
15408 \family sans
15409 Logo
15410 \family default
15411  (via 
15412 \family sans
15413 Insert\SpecialChar menuseparator
15414 Graphics
15415 \family default
15416 ) in the header.
15417 \end_layout
15418
15419 \begin_layout Standard
15420 The biggest improvement is, though, that the letter's layout is configurable
15421  to meet almost any needs.
15422  This can be done via the preamble or with a special style file (Letter
15423  Class Option, extension 
15424 \family typewriter
15425 *.lco
15426 \family default
15427 ), that will be read in as a class option.
15428 \begin_inset Foot
15429 status collapsed
15430
15431 \begin_layout Plain Layout
15432 The KOMA package comes with some default 
15433 \family typewriter
15434 *.lco
15435 \family default
15436  files.
15437  There is, for instance, a 
15438 \family typewriter
15439 DIN.lco
15440 \family default
15441  file that follows german typesetting rules, or a 
15442 \family typewriter
15443 KOMAold.lco
15444 \family default
15445  that provides the default layout of the old 
15446 \family typewriter
15447 scrlettr
15448 \family default
15449  class.
15450  The latter can be loaded with the class option 
15451 \family typewriter
15452 KOMAold
15453 \family default
15454 , inserted via the 
15455 \family sans
15456 Layout\SpecialChar menuseparator
15457 Document\SpecialChar menuseparator
15458 Extra Options
15459 \family default
15460  field.
15461 \end_layout
15462
15463 \end_inset
15464
15465  Have a look at the 
15466 \emph on
15467 koma-letter2
15468 \emph default
15469  template that is included in \SpecialChar LyX
15470  for examples.
15471  A detailed description is to be found in the Koma-Script documentation
15472  (
15473 \emph on
15474 scrguide
15475 \emph default
15476 ).
15477 \end_layout
15478
15479 \begin_layout Subsection
15480 Problems
15481 \end_layout
15482
15483 \begin_layout Standard
15484 Visualizing the Koma-Script document classes in \SpecialChar LyX
15485 , the \SpecialChar LyX
15486  internals cause some
15487  problems.
15488 \end_layout
15489
15490 \begin_layout Itemize
15491 The chapter number of a 
15492 \family sans
15493 Chapter
15494 \family default
15495  type appears on a line of its own above the chapter heading instead of
15496  appearing in the same line ahead of it.
15497  The cause for that is the \SpecialChar LyX
15498  internal behavior for the labeltype 
15499 \family sans
15500 Counter_Chapter
15501 \family default
15502  in the layout file.
15503 \end_layout
15504
15505 \begin_layout Itemize
15506 The headings of the types 
15507 \family sans
15508 Addchap
15509 \family default
15510  and 
15511 \family sans
15512 Addsec
15513 \family default
15514  are only put in the 
15515 \begin_inset Quotes eld
15516 \end_inset
15517
15518 true
15519 \begin_inset Quotes erd
15520 \end_inset
15521
15522  \SpecialChar LaTeX
15523  table of contents, but not in the \SpecialChar LyX
15524  table of contents (
15525 \family sans
15526 Document\SpecialChar menuseparator
15527 Table
15528 \begin_inset space ~
15529 \end_inset
15530
15531 of
15532 \begin_inset space ~
15533 \end_inset
15534
15535 Contents
15536 \family default
15537 ).
15538 \end_layout
15539
15540 \begin_layout Itemize
15541 The paragraphs in a 
15542 \emph on
15543 letter
15544 \emph default
15545  document class appear in a skip separation mode, not indented.
15546  This is the standard behavior, no special \SpecialChar LaTeX
15547  commands are needed for that.
15548  But in the 
15549 \family sans
15550 Document\SpecialChar menuseparator
15551 Settings
15552 \family default
15553  dialog the corresponding radio button indicates 
15554 \family sans
15555 Indent
15556 \family default
15557 .
15558  A 
15559 \family sans
15560 Skip
15561 \family default
15562  value always has the effect that extra \SpecialChar LaTeX
15563  commands are inserted in the document
15564  to produce the gap, which is not what is wanted in this case.
15565 \end_layout
15566
15567 \begin_layout Section
15568 Memoir
15569 \end_layout
15570
15571 \begin_layout Standard
15572 By 
15573 \noun on
15574 Jürgen Spitzmüller
15575 \end_layout
15576
15577 \begin_layout Subsection
15578 Overview
15579 \end_layout
15580
15581 \begin_layout Standard
15582 Memoir is a very powerful and constantly evolving class.
15583  It has been designed with regard to fictional and non-fictional literature.
15584  Its aim is to let the user have maximum control over the typesetting of
15585  his document.
15586  Memoir is based on the standard book class, but it can also emulate the
15587  article class (see below).
15588 \end_layout
15589
15590 \begin_layout Standard
15591 Peter Wilson, the developer of Memoir, is known as the author of lots of
15592  useful packages in the \SpecialChar LaTeX
15593  world.
15594  Most of them have been merged with Memoir.
15595  Therefore, it is much easier to layout the table of contents, appendices,
15596  chapter designs and such.
15597  \SpecialChar LyX
15598 , though, does not support all of these goodies natively.
15599  Some of them might be added to forthcoming releases
15600 \begin_inset Foot
15601 status collapsed
15602
15603 \begin_layout Plain Layout
15604 You are invited to send suggestions to 
15605 \begin_inset Flex URL
15606 status collapsed
15607
15608 \begin_layout Plain Layout
15609
15610 lyx-devel@lists.lyx.org
15611 \end_layout
15612
15613 \end_inset
15614
15615 .
15616 \end_layout
15617
15618 \end_inset
15619
15620 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15621 's framework.
15622  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15623
15624  commands (\SpecialChar TeX
15625  code
15626 \begin_inset Foot
15627 status collapsed
15628
15629 \begin_layout Plain Layout
15630 Cf.
15631 \begin_inset ERT
15632 status collapsed
15633
15634 \begin_layout Plain Layout
15635
15636
15637 \backslash
15638  
15639 \end_layout
15640
15641 \end_inset
15642
15643 section
15644 \begin_inset space ~
15645 \end_inset
15646
15647
15648 \begin_inset CommandInset ref
15649 LatexCommand ref
15650 reference "sec:Inserting-TeX-Code"
15651
15652 \end_inset
15653
15654  for details.
15655 \end_layout
15656
15657 \end_inset
15658
15659 ).
15660  In this section, we can only list those features that are natively supported
15661  by \SpecialChar LyX
15662 .
15663  For detailed descriptions (and for the rest of features) we recommend you
15664  have a look at the detailed manual of the Memoir class
15665 \begin_inset Foot
15666 status collapsed
15667
15668 \begin_layout Plain Layout
15669 Cf.
15670 \begin_inset ERT
15671 status collapsed
15672
15673 \begin_layout Plain Layout
15674
15675
15676 \backslash
15677  
15678 \end_layout
15679
15680 \end_inset
15681
15682
15683 \begin_inset Flex URL
15684 status collapsed
15685
15686 \begin_layout Plain Layout
15687
15688 CTAN:/macros/latex/memoir/memman.pdf
15689 \end_layout
15690
15691 \end_inset
15692
15693 .
15694 \end_layout
15695
15696 \end_inset
15697
15698 , which is not only a user guide for the class, but also both a comprehensive
15699  description on good typesetting and a superb example for good typesetting
15700  itself.
15701 \end_layout
15702
15703 \begin_layout Subsection
15704 Basic features and restrictions
15705 \end_layout
15706
15707 \begin_layout Standard
15708 Memoir supports basically all features of the standard book classes.
15709  There are, however, some differences, as follows:
15710 \end_layout
15711
15712 \begin_layout Description
15713 Font
15714 \begin_inset space ~
15715 \end_inset
15716
15717 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15718 \end_layout
15719
15720 \begin_layout Description
15721 Page
15722 \begin_inset space ~
15723 \end_inset
15724
15725 style: The fancy page style is not supported, due to a command clash between
15726  Memoir and the fancyhdr package (they both define a command with the same
15727  name, which confuses \SpecialChar LaTeX
15728 ).
15729  Instead, Memoir comes with a number of its own page styles (see 
15730 \family sans
15731 Layout\SpecialChar menuseparator
15732 Document\SpecialChar menuseparator
15733 Page
15734 \begin_inset space ~
15735 \end_inset
15736
15737 Style
15738 \family default
15739 ).
15740  If you want to use these for the chapter pages, you have to use the command
15741  
15742 \family typewriter
15743
15744 \backslash
15745 chapterstyle
15746 \family default
15747  in the main text or in preamble (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 chapterstyle{companion}
15760 \family default
15761 ).
15762 \end_layout
15763
15764 \begin_layout Description
15765 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15766  optional argument in the standard classes.
15767  With this, you can specify an alternative version of the title for the
15768  table of contents and the headers (for instance, if the title is too long).
15769  In \SpecialChar LyX
15770 , you can do this via 
15771 \family sans
15772 Insert\SpecialChar menuseparator
15773 Short
15774 \begin_inset space ~
15775 \end_inset
15776
15777 Title
15778 \family default
15779  at the beginning of a chapter/section.
15780  Memoir features a second optional argument and thus separates the table
15781  of contents from the header.
15782  You can define three variants of a title with this: one for the main text,
15783  one for the table of contents, and one for the headers.
15784  Simply insert two optional arguments if you need this feature, the first
15785  one containing the short title for the Table of Contents, the second one
15786  containing an alternative short title for the headers.
15787 \end_layout
15788
15789 \begin_layout Description
15790 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15791  of contents, the list of figures and the list of table start a new page
15792  automatically.
15793  Memoir does not follow this route.
15794  You have to insert a page break yourself, if you want to have one.
15795 \end_layout
15796
15797 \begin_layout Description
15798 Titlepage: For some unknown reason, Memoir uses pagination on the title
15799  page (in the standard classes, title pages are 
15800 \begin_inset Quotes eld
15801 \end_inset
15802
15803 empty
15804 \begin_inset Quotes erd
15805 \end_inset
15806
15807 ).
15808  If you want an empty title page, type 
15809 \family typewriter
15810
15811 \backslash
15812 aliaspagestyle{title}{empty}
15813 \family default
15814  in the preamble.
15815 \end_layout
15816
15817 \begin_layout Description
15818 Article: With the class option 
15819 \emph on
15820 article
15821 \emph default
15822  (to be inserted in 
15823 \family sans
15824 Layout\SpecialChar menuseparator
15825 Document\SpecialChar menuseparator
15826 Extra
15827 \begin_inset space ~
15828 \end_inset
15829
15830 Options
15831 \family default
15832 ), you can emulate article style.
15833  That is, counters (footnotes, figures, tables etc.) will not be reset on
15834  new chapters, chapters don't start a new page (but are—in contrary to 
15835 \begin_inset Quotes eld
15836 \end_inset
15837
15838 real
15839 \begin_inset Quotes erd
15840 \end_inset
15841
15842  article classes—still allowed), parts, though, use their own page, as in
15843  book.
15844 \end_layout
15845
15846 \begin_layout Description
15847 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15848  font commands, which have been used in the old \SpecialChar LaTeX
15849  version 2.09 (e.
15850 \begin_inset space \thinspace{}
15851 \end_inset
15852
15853 g.
15854 \begin_inset space \space{}
15855 \end_inset
15856
15857
15858 \family typewriter
15859
15860 \backslash
15861 rm
15862 \family default
15863
15864 \family typewriter
15865
15866 \backslash
15867 it
15868 \family default
15869 ).
15870  It produces an error and stops \SpecialChar LaTeX
15871  whenever such a command appears.
15872  The class option 
15873 \emph on
15874 oldfontcommands
15875 \emph default
15876  reallows the commands and spits out warnings instead (which does at least
15877  not stop \SpecialChar LaTeX
15878 ).
15879  Since a lot of packages and particularly Bib\SpecialChar TeX
15880  style files are still using
15881  those commands, we have decided to use this option by default.
15882 \end_layout
15883
15884 \begin_layout Subsection
15885 Extra features
15886 \end_layout
15887
15888 \begin_layout Standard
15889 We will only describe the features supported by \SpecialChar LyX
15890  (which is not much currently).
15891  Please consult the Memoir manual
15892 \begin_inset Foot
15893 status collapsed
15894
15895 \begin_layout Plain Layout
15896 Cf.
15897 \begin_inset ERT
15898 status collapsed
15899
15900 \begin_layout Plain Layout
15901
15902
15903 \backslash
15904  
15905 \end_layout
15906
15907 \end_inset
15908
15909
15910 \begin_inset Flex URL
15911 status collapsed
15912
15913 \begin_layout Plain Layout
15914
15915 CTAN:/macros/latex/memoir/memman.pdf
15916 \end_layout
15917
15918 \end_inset
15919
15920 .
15921 \end_layout
15922
15923 \end_inset
15924
15925  for details.
15926 \end_layout
15927
15928 \begin_layout Description
15929 Abstract: You may wonder why an abstract is an extra feature.
15930  Well, it is in book class.
15931  Usually books don't have abstracts.
15932  Memoir, however, has.
15933  You can use it wherever and how often you like.
15934 \end_layout
15935
15936 \begin_layout Description
15937 Chapterprecis: You may know this older typesetting style: The contents of
15938  a chapter are summarized below the title and also in the table of contents
15939  (e.
15940 \begin_inset space \thinspace{}
15941 \end_inset
15942
15943 g.
15944 \begin_inset space \space{}
15945 \end_inset
15946
15947
15948 \emph on
15949 Our hero arrives in Troia; he loses some friends; he finds others
15950 \emph default
15951 ).
15952  Chapterprecis does exactly this.
15953  It is therefore only sensible below a chapter.
15954 \end_layout
15955
15956 \begin_layout Description
15957 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15958  The epigraph environment provides an elegant way of typesetting such a
15959  motto.
15960  The motto itself (text) and its author (source) are divided by a short
15961  line.
15962  Unfortunately, we have to fool \SpecialChar LyX
15963  a bit here again, since the environment
15964  needs two arguments (text and source).
15965  In this case, we have to use curly brackets (in \SpecialChar TeX
15966  mode) between the two
15967  arguments: 
15968 \emph on
15969 <smart slogan>
15970 \emph default
15971  
15972 \family typewriter
15973 }{
15974 \family default
15975  
15976 \emph on
15977 <author of the slogan>.
15978 \end_layout
15979
15980 \begin_layout Description
15981 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15982  complex figurative poems).
15983  \SpecialChar LyX
15984  can only support a few of them.
15985  One is poemtitle, which is a centered title for poems, which will also
15986  be added to the table of contents (verse is the standard environment for
15987  poems.
15988  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15989  code,
15990  because they have to be nested inside regular verse environments, which
15991  is not possible with \SpecialChar LyX
15992 ).
15993 \end_layout
15994
15995 \begin_layout Description
15996 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15997 \end_layout
15998
15999 \begin_layout Section
16000 Article (mwart), book (mwbk) and report (mwrep)
16001 \begin_inset Argument status
16002 status collapsed
16003
16004 \begin_layout Plain Layout
16005 The 
16006 \family typewriter
16007 mw
16008 \family default
16009  Classes
16010 \end_layout
16011
16012 \end_inset
16013
16014
16015 \end_layout
16016
16017 \begin_layout Standard
16018 by 
16019 \noun on
16020 Tomasz Luczak
16021 \end_layout
16022
16023 \begin_layout Standard
16024 The \SpecialChar LyX
16025  document classes 
16026 \emph on
16027 article (mwart)
16028 \emph default
16029
16030 \emph on
16031 report (mwrep)
16032 \emph default
16033  and 
16034 \emph on
16035 book
16036 \emph default
16037  
16038 \emph on
16039 (mwbk)
16040 \emph default
16041  correspond to the \SpecialChar LaTeX
16042  document classes 
16043 \family typewriter
16044 mwart.cls
16045 \family default
16046
16047 \family typewriter
16048 mwrep.cls
16049 \family default
16050  and 
16051 \family typewriter
16052 mwbk.cls
16053 \family default
16054 , resp.
16055  They are replacements for the standard document classes 
16056 \family typewriter
16057 article.cls
16058 \family default
16059
16060 \family typewriter
16061 report.cls
16062 \family default
16063  and 
16064 \family typewriter
16065 book.cls
16066 \family default
16067 , resp., and fit better to Polish typography conventions in a number of points.
16068  
16069 \end_layout
16070
16071 \begin_layout Standard
16072 Basic differences:
16073 \end_layout
16074
16075 \begin_layout Itemize
16076 Unnumbered titles (with star, e.
16077 \begin_inset space \thinspace{}
16078 \end_inset
16079
16080 g.
16081 \begin_inset space \space{}
16082 \end_inset
16083
16084
16085 \family sans
16086 Section*
16087 \family default
16088 ) are added into table of contents,
16089 \end_layout
16090
16091 \begin_layout Itemize
16092 Additional page styles:
16093 \end_layout
16094
16095 \begin_deeper
16096 \begin_layout Description
16097 uheadings header with separated lines,
16098 \end_layout
16099
16100 \begin_layout Description
16101 myheadings custom header, contents headers via commands: 
16102 \family typewriter
16103
16104 \backslash
16105 markright
16106 \family default
16107  and 
16108 \family typewriter
16109
16110 \backslash
16111 markboth
16112 \family default
16113 ,
16114 \end_layout
16115
16116 \begin_layout Description
16117 myuheadings custom header with separated lines,
16118 \end_layout
16119
16120 \begin_layout Description
16121 outer page number is placed on outer side of page
16122 \end_layout
16123
16124 \end_deeper
16125 \begin_layout Itemize
16126 Options 
16127 \end_layout
16128
16129 \begin_deeper
16130 \begin_layout Description
16131 rmheadings serif titles — default,
16132 \end_layout
16133
16134 \begin_layout Description
16135 sfheadings sansserif titles,
16136 \end_layout
16137
16138 \begin_layout Description
16139 authortitle on title page first placed is author next title — default,
16140 \end_layout
16141
16142 \begin_layout Description
16143 titleauthor on title page first placed is title next author,
16144 \end_layout
16145
16146 \begin_layout Description
16147 withmarginpar reserve place on page for margins.
16148 \end_layout
16149
16150 \end_deeper
16151 \begin_layout Section
16152 Paper
16153 \end_layout
16154
16155 \begin_layout Standard
16156 The document class 
16157 \family sans
16158 paper
16159 \family default
16160  provides an alternative to the standard 
16161 \family sans
16162 article
16163 \family default
16164  class.
16165  It provides similar functionality, but you might prefer this layout with
16166  sans serif sections, headings, and more.
16167 \end_layout
16168
16169 \begin_layout Section
16170 Rev\SpecialChar TeX
16171 4
16172 \end_layout
16173
16174 \begin_layout Standard
16175 by 
16176 \noun on
16177 Amir Karger
16178 \end_layout
16179
16180 \begin_layout Standard
16181 \begin_inset VSpace bigskip
16182 \end_inset
16183
16184
16185 \end_layout
16186
16187 \begin_layout Standard
16188 \noindent
16189 The 
16190 \family sans
16191 Revtex
16192 \begin_inset space ~
16193 \end_inset
16194
16195 4
16196 \family default
16197  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16198  4.0 (the 
16199 \begin_inset Formula $\beta$
16200 \end_inset
16201
16202  release of May, 1999) class.
16203 \end_layout
16204
16205 \begin_layout Standard
16206 \SpecialChar LyX
16207  has a 
16208 \family sans
16209 Revtex
16210 \family default
16211  textclass, which works with Rev\SpecialChar TeX
16212  3.1.
16213  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16214  2.09.
16215  That means that it doesn't interact very well with \SpecialChar LyX
16216 , which requires \SpecialChar LaTeX2e
16217 , although
16218  it has been kludged to work.
16219  Since Rev\SpecialChar TeX
16220  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16221 , \SpecialChar LyX
16222  with the
16223  
16224 \family sans
16225 Rev\SpecialChar TeX
16226
16227 \begin_inset space ~
16228 \end_inset
16229
16230 4
16231 \family default
16232  textclass should also be pretty easy to use.
16233 \end_layout
16234
16235 \begin_layout Standard
16236 These documents are supposed to be used in 
16237 \emph on
16238 addition
16239 \emph default
16240  to the Rev\SpecialChar TeX
16241  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16242  macros,
16243  and assume you'll know what to put in the preamble if necessary.
16244 \end_layout
16245
16246 \begin_layout Subsection
16247 Installation
16248 \end_layout
16249
16250 \begin_layout Standard
16251 All you need to do is install Rev\SpecialChar TeX
16252  4, as described in the package's README
16253  file.
16254  The package can be found at The Rev\SpecialChar TeX
16255  4 Web Site 
16256 \begin_inset Flex URL
16257 status collapsed
16258
16259 \begin_layout Plain Layout
16260
16261 http://publish.aps.org/revtex4/
16262 \end_layout
16263
16264 \end_inset
16265
16266 .
16267  Install it somewhere that \SpecialChar LaTeX
16268  can see it.
16269  Test it by trying to \SpecialChar LaTeX
16270  a short Rev\SpecialChar TeX
16271  4 document in some random directory (i.
16272 \begin_inset space \thinspace{}
16273 \end_inset
16274
16275 e.
16276 \begin_inset space \space{}
16277 \end_inset
16278
16279 not the directory where you installed the class file.) Then, if you reconfigure
16280  \SpecialChar LyX
16281 , it will find the class file and let you use the Rev\SpecialChar TeX
16282 4 textclass.
16283 \end_layout
16284
16285 \begin_layout Standard
16286 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16287  4 document
16288  using 
16289 \family typewriter
16290 tex2lyx
16291 \family default
16292 , or to use the 
16293 \family sans
16294 Revtex
16295 \begin_inset space ~
16296 \end_inset
16297
16298 4
16299 \family default
16300  template, found in the templates directory.
16301 \end_layout
16302
16303 \begin_layout Subsection
16304 Preamble Matter
16305 \end_layout
16306
16307 \begin_layout Standard
16308 Optional arguments to 
16309 \family typewriter
16310
16311 \backslash
16312 documentclass
16313 \family default
16314 , like 
16315 \begin_inset Quotes eld
16316 \end_inset
16317
16318 preprint
16319 \begin_inset Quotes erd
16320 \end_inset
16321
16322  and 
16323 \begin_inset Quotes eld
16324 \end_inset
16325
16326 aps
16327 \begin_inset Quotes erd
16328 \end_inset
16329
16330 , go in the 
16331 \family sans
16332 Extra
16333 \begin_inset space ~
16334 \end_inset
16335
16336 Options
16337 \family default
16338  field in the 
16339 \family sans
16340 Document
16341 \begin_inset space ~
16342 \end_inset
16343
16344 Layout
16345 \family default
16346  dialog, as usual.
16347  Remember that in Rev\SpecialChar TeX
16348 , at least one optional argument is required! 
16349 \end_layout
16350
16351 \begin_layout Standard
16352 Other preamble matter, like 
16353 \family typewriter
16354
16355 \backslash
16356 draft
16357 \family default
16358  etc.
16359 \begin_inset space ~
16360 \end_inset
16361
16362 goes in the 
16363 \family sans
16364 \SpecialChar LaTeX
16365
16366 \begin_inset space ~
16367 \end_inset
16368
16369 Preamble
16370 \family default
16371  dialog, also as usual.
16372 \end_layout
16373
16374 \begin_layout Subsection
16375 Layouts
16376 \end_layout
16377
16378 \begin_layout Standard
16379 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16380 4.0.
16381  For example, the Email layout corresponds to 
16382 \family typewriter
16383
16384 \backslash
16385 email{}
16386 \family default
16387 .
16388  Note that (at least as of Rev\SpecialChar TeX
16389  4.0 Beta), the 
16390 \family sans
16391 Address
16392 \family default
16393  and 
16394 \family sans
16395 Affiliation
16396 \family default
16397  layouts are exactly equivalent, so you shouldn't need to use both.
16398 \begin_inset Foot
16399 status collapsed
16400
16401 \begin_layout Plain Layout
16402 In case you're curious, both were included so that 
16403 \family typewriter
16404 tex2lyx
16405 \family default
16406  would be able to translate both 
16407 \family typewriter
16408
16409 \backslash
16410 address
16411 \family default
16412  and 
16413 \family typewriter
16414
16415 \backslash
16416 affiliation
16417 \family default
16418 .
16419 \end_layout
16420
16421 \end_inset
16422
16423
16424 \end_layout
16425
16426 \begin_layout Subsection
16427 Important Notes
16428 \end_layout
16429
16430 \begin_layout Standard
16431 There are a couple of important unique aspects of Rev\SpecialChar TeX
16432  4 which might cause
16433  bugs that will be even more confusing in \SpecialChar LyX
16434 .
16435 \end_layout
16436
16437 \begin_layout Standard
16438 In Rev\SpecialChar TeX
16439 , the 
16440 \family typewriter
16441
16442 \backslash
16443 thanks
16444 \family default
16445  command goes 
16446 \emph on
16447 outside
16448 \emph default
16449  the 
16450 \family typewriter
16451
16452 \backslash
16453 author
16454 \family default
16455  command.
16456  The \SpecialChar LyX
16457  equivalent is that there is a separate Thanks layout.
16458  Do 
16459 \emph on
16460 not
16461 \emph default
16462  write footnotes in the 
16463 \family sans
16464 Author
16465 \family default
16466  layout, or weird things may happen.
16467  See the Rev\SpecialChar TeX
16468  4 documentation for more details.
16469 \end_layout
16470
16471 \begin_layout Standard
16472 Also, the 
16473 \family sans
16474 Author
16475 \begin_inset space ~
16476 \end_inset
16477
16478 Email
16479 \family default
16480
16481 \family sans
16482 Author
16483 \begin_inset space ~
16484 \end_inset
16485
16486 URL
16487 \family default
16488 , and 
16489 \family sans
16490 Thanks
16491 \family default
16492  layouts must be placed 
16493 \emph on
16494 in between
16495 \emph default
16496  the 
16497 \family sans
16498 Author
16499 \family default
16500  layout and the corresponding 
16501 \family sans
16502 Address
16503 \family default
16504  (or equivalent 
16505 \family sans
16506 Affiliation
16507 \family default
16508 ) layout.
16509  If you put the 
16510 \family sans
16511 Thanks
16512 \family default
16513  after the 
16514 \family sans
16515 Address
16516 \family default
16517 , the \SpecialChar LaTeX
16518  won't compile.
16519 \end_layout
16520
16521 \begin_layout Subsection
16522 Drawbacks
16523 \end_layout
16524
16525 \begin_layout Standard
16526 The main problem with this layout is that you can't use the optional arguments
16527  to layouts like Email and Title.
16528  (The problem is not unique to this layout; you can't use optional arguments
16529  to the Section layouts either.) This means that after you export that file
16530  to \SpecialChar LaTeX
16531  (which you'll need to do eventually to send it in to APS), you'll need
16532  to edit the \SpecialChar LaTeX
16533  file with a text editor to add the optional arguments to set,
16534  e.
16535 \begin_inset space \thinspace{}
16536 \end_inset
16537
16538 g.
16539 \begin_inset space \space{}
16540 \end_inset
16541
16542 the running title for the page headers.
16543  Lacking these layouts makes the 
16544 \family typewriter
16545
16546 \backslash
16547 altaffiliation
16548 \family default
16549  (and the equivalent 
16550 \family typewriter
16551
16552 \backslash
16553 altaddress
16554 \family default
16555 ) useless, so the corresponding layouts don't exist, and will have to be
16556  added by hand.
16557 \begin_inset Foot
16558 status collapsed
16559
16560 \begin_layout Plain Layout
16561
16562 \emph on
16563 Note from JMarc:
16564 \emph default
16565  actually, \SpecialChar LyX
16566  1.3.0 supports some forms of optional arguments, but this layout
16567  has not been updated yet to take advantage of it.
16568 \end_layout
16569
16570 \end_inset
16571
16572  
16573 \end_layout
16574
16575 \begin_layout Section
16576 Springer Journals (
16577 \family sans
16578 svjour
16579 \family default
16580 )
16581 \end_layout
16582
16583 \begin_layout Standard
16584 by 
16585 \noun on
16586 Martin Vermeer
16587 \end_layout
16588
16589 \begin_layout Subsection
16590 Description
16591 \end_layout
16592
16593 \begin_layout Standard
16594 These are the layout files for some of the journal formats used by Springer
16595  Verlag and listed on 
16596 \begin_inset Flex URL
16597 status collapsed
16598
16599 \begin_layout Plain Layout
16600
16601 http://www.springer.de/author/tex/help-journals.html
16602 \end_layout
16603
16604 \end_inset
16605
16606 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16607  now!).
16608  It is a modular system: the things common to all journals are implemented
16609  in 
16610 \family typewriter
16611 svjour.inc
16612 \family default
16613 , which journal-specific layout files (such as, e.
16614 \begin_inset space \thinspace{}
16615 \end_inset
16616
16617 g.
16618 \begin_inset space \space{}
16619 \end_inset
16620
16621
16622 \family typewriter
16623 svjog.layout
16624 \family default
16625  for Journal of Geodesy) can include.
16626 \end_layout
16627
16628 \begin_layout Standard
16629 This means that implementing support for any other Springer journal on this
16630  list is as simple as writing your own 
16631 \family typewriter
16632 sv
16633 \family default
16634 <myjournal>
16635 \family typewriter
16636 .layout
16637 \family default
16638  file following the outline given in 
16639 \family typewriter
16640 svjog.layout
16641 \family default
16642 .
16643  
16644 \end_layout
16645
16646 \begin_layout Standard
16647 It is reasonably well tested only for the Journal of Geodesy.
16648  
16649 \family typewriter
16650 svjour
16651 \family default
16652  and 
16653 \family typewriter
16654 svjog
16655 \family default
16656  come with the standard \SpecialChar LyX
16657  distribution.
16658  Install the relevant class file (downloaded from Springer) in a proper
16659  directory, reconfigure \SpecialChar LaTeX
16660  (in the te\SpecialChar TeX
16661  case by running 
16662 \family typewriter
16663 texhash
16664 \family default
16665 , as root if necessary — doesn't \SpecialChar LyX
16666  take care of this?), reconfigure \SpecialChar LyX
16667  and
16668  it should work.
16669 \end_layout
16670
16671 \begin_layout Subsection
16672 New styles
16673 \end_layout
16674
16675 \begin_layout Standard
16676 A large number of theorem-like styles — 
16677 \family sans
16678 Claim, Conjecture,
16679 \family default
16680  
16681 \family sans
16682 \SpecialChar ldots
16683 Theorem
16684 \family default
16685 .
16686 \end_layout
16687
16688 \begin_layout Standard
16689
16690 \family sans
16691 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16692 _Title, Author_Running, Institute,
16693  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16694 \family default
16695 .
16696  See the Springer class file documentation for details.
16697 \end_layout
16698
16699 \begin_layout Subsection
16700 Supported journals
16701 \end_layout
16702
16703 \begin_layout Itemize
16704
16705 \emph on
16706 Journal of Geodesy
16707 \emph default
16708
16709 \family typewriter
16710 svjog.layout
16711 \family default
16712  — Martin Vermeer
16713 \end_layout
16714
16715 \begin_layout Itemize
16716
16717 \emph on
16718 Probability Theory and Related Fields
16719 \emph default
16720
16721 \family typewriter
16722 svprobth.layout
16723 \family default
16724  — Jean-Marc Lasgouttes
16725 \end_layout
16726
16727 \begin_layout Standard
16728 Add your own, it isn't so hard!
16729 \end_layout
16730
16731 \begin_layout Subsection
16732 Credits
16733 \end_layout
16734
16735 \begin_layout Standard
16736 These files are partly based on the older 
16737 \family typewriter
16738 ejour2.layout
16739 \family default
16740 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16741  2.09 style
16742  file from Springer.
16743  All this, and the 
16744 \family typewriter
16745 ejour2
16746 \family default
16747  layout, are now defunct.
16748  Jean-Marc Lasgouttes helped out big in making me find my way around the
16749  \SpecialChar LyX
16750  layout file mechanism.
16751 \end_layout
16752
16753 \begin_layout Subsection
16754 Bugs
16755 \end_layout
16756
16757 \begin_layout Standard
16758 Probably.
16759  But probably less than in the old hacked-\SpecialChar LaTeX
16760  
16761 \family typewriter
16762 ejour2
16763 \family default
16764 .
16765 \end_layout
16766
16767 \begin_layout Standard
16768 Limitations e.
16769 \begin_inset space \thinspace{}
16770 \end_inset
16771
16772 g.: does not display the number for theorem-like layouts, just #.
16773 \end_layout
16774
16775 \begin_layout Section
16776 Slides [aka 
16777 \noun on
16778 Sli\SpecialChar TeX
16779
16780 \noun default
16781 ]
16782 \begin_inset CommandInset label
16783 LatexCommand label
16784 name "sec:slitex"
16785
16786 \end_inset
16787
16788
16789 \end_layout
16790
16791 \begin_layout Standard
16792 by 
16793 \noun on
16794 John Weiss
16795 \noun default
16796  
16797 \end_layout
16798
16799 \begin_layout Subsection
16800 Introduction
16801 \end_layout
16802
16803 \begin_layout Standard
16804 This section describes how to use \SpecialChar LyX
16805  to make slides for overhead projectors.
16806  There are two document classes that can do this: the default slides class
16807  and the 
16808 \family sans
16809 Foil\SpecialChar TeX
16810
16811 \family default
16812  slides class.
16813  This section documents the former.
16814 \end_layout
16815
16816 \begin_layout Standard
16817 I'm going to say this again, nice and clear, so that there's no misunderstanding
16818 :
16819 \end_layout
16820
16821 \begin_layout Standard
16822 \begin_inset VSpace bigskip
16823 \end_inset
16824
16825
16826 \end_layout
16827
16828 \begin_layout Standard
16829 \align center
16830
16831 \size large
16832 This section documents the class 
16833 \begin_inset Quotes eld
16834 \end_inset
16835
16836
16837 \family sans
16838 slides (default)
16839 \family default
16840
16841 \begin_inset Quotes erd
16842 \end_inset
16843
16844  
16845 \emph on
16846 only.
16847 \end_layout
16848
16849 \begin_layout Standard
16850 \begin_inset VSpace bigskip
16851 \end_inset
16852
16853
16854 \end_layout
16855
16856 \begin_layout Standard
16857 If you're looking for the documentation for 
16858 \begin_inset Quotes eld
16859 \end_inset
16860
16861
16862 \family sans
16863 slides (Foil\SpecialChar TeX
16864 )
16865 \family default
16866
16867 \begin_inset Quotes erd
16868 \end_inset
16869
16870 , check out section
16871 \begin_inset space ~
16872 \end_inset
16873
16874
16875 \begin_inset CommandInset ref
16876 LatexCommand ref
16877 reference "sec:foiltex"
16878
16879 \end_inset
16880
16881 .
16882  The 
16883 \family sans
16884 foils
16885 \family default
16886  class [
16887 \begin_inset Quotes eld
16888 \end_inset
16889
16890
16891 \family sans
16892 slides (Foil\SpecialChar TeX
16893 )
16894 \family default
16895
16896 \begin_inset Quotes erd
16897 \end_inset
16898
16899 ] is actually somewhat better than the default 
16900 \family sans
16901 slides
16902 \family default
16903  class,
16904 \begin_inset Foot
16905 status collapsed
16906
16907 \begin_layout Plain Layout
16908 \SpecialChar ldots
16909 or so I've been told repeatedly by its advocates.
16910  Having never used it, I have no idea if this claim is true or not.
16911 \end_layout
16912
16913 \end_inset
16914
16915  which this section documents.
16916 \end_layout
16917
16918 \begin_layout Standard
16919 This class is the \SpecialChar LaTeX2e
16920  improvement of the old 
16921 \noun on
16922 Sli\SpecialChar TeX
16923
16924 \noun default
16925  package.
16926  Every \SpecialChar LaTeX2e
16927  distribution includes this class [which I'll just refer to as 
16928 \begin_inset Quotes eld
16929 \end_inset
16930
16931
16932 \family sans
16933 slides
16934 \family default
16935
16936 \begin_inset Quotes erd
16937 \end_inset
16938
16939  from now on], so you're bound to have it.
16940  As I noted earlier, there are other classes, such as 
16941 \family sans
16942 foils
16943 \family default
16944 , which also produce slides for overhead projectors and do a better job
16945  at it.
16946  However, there are some things which 
16947 \family sans
16948 slides
16949 \family default
16950  can do which the others can't, such as generate overlays.
16951  Read on to learn more!
16952 \end_layout
16953
16954 \begin_layout Subsection
16955 Getting Started
16956 \begin_inset CommandInset label
16957 LatexCommand label
16958 name "sec:slidesetup"
16959
16960 \end_inset
16961
16962
16963 \end_layout
16964
16965 \begin_layout Standard
16966 Obviously, to use this document class, you need to select 
16967 \begin_inset Quotes eld
16968 \end_inset
16969
16970
16971 \family sans
16972 slides (default)
16973 \family default
16974
16975 \begin_inset Quotes erd
16976 \end_inset
16977
16978  from the class list in the 
16979 \family sans
16980 Document\SpecialChar menuseparator
16981 Settings
16982 \family default
16983  dialog.
16984  There are some other special things you should know about this class:
16985 \end_layout
16986
16987 \begin_layout Itemize
16988 Don't bother changing the options 
16989 \family sans
16990 Sides and Columns
16991 \family default
16992 .
16993  They're not supported by the 
16994 \family sans
16995 slides
16996 \family default
16997  class, anyways.
16998 \end_layout
16999
17000 \begin_layout Itemize
17001 The option 
17002 \family sans
17003 Page
17004 \begin_inset space ~
17005 \end_inset
17006
17007 style
17008 \family default
17009  behaves a bit differently for this class.
17010  The possible choices and what they do are as follows:
17011 \end_layout
17012
17013 \begin_deeper
17014 \begin_layout Description
17015
17016 \family sans
17017 plain
17018 \family default
17019  The final output contains page numbers in the lower right corner.
17020 \end_layout
17021
17022 \begin_layout Description
17023
17024 \family sans
17025 headings
17026 \family default
17027  Like 
17028 \family sans
17029 plain
17030 \family default
17031 , but also prints out any time markers you've put in.
17032  This is the default.
17033 \end_layout
17034
17035 \begin_layout Description
17036
17037 \family sans
17038 empty
17039 \family default
17040  The final output contains no page numbers, time markers, or alignment markers.
17041 \end_layout
17042
17043 \end_deeper
17044 \begin_layout Itemize
17045 The 
17046 \family sans
17047 slides
17048 \family default
17049  class has an extra option: 
17050 \family typewriter
17051 clock
17052 \family default
17053 .
17054  To use it, put 
17055 \begin_inset Quotes eld
17056 \end_inset
17057
17058
17059 \family typewriter
17060 clock
17061 \family default
17062
17063 \begin_inset Quotes erd
17064 \end_inset
17065
17066  in the extra class options.
17067 \end_layout
17068
17069 \begin_deeper
17070 \begin_layout Standard
17071 Using this options allows you to add time markers to 
17072 \family sans
17073 Note
17074 \family default
17075 s.
17076  See section
17077 \begin_inset space ~
17078 \end_inset
17079
17080
17081 \begin_inset CommandInset ref
17082 LatexCommand ref
17083 reference "sec:slideNote"
17084
17085 \end_inset
17086
17087  for more details.
17088 \end_layout
17089
17090 \end_deeper
17091 \begin_layout Standard
17092 You can also use the template file 
17093 \begin_inset Quotes eld
17094 \end_inset
17095
17096
17097 \family typewriter
17098 slides.lyx
17099 \family default
17100
17101 \begin_inset Quotes erd
17102 \end_inset
17103
17104  to automatically set up a document to use the 
17105 \family sans
17106 slides
17107 \family default
17108  class [using 
17109 \family sans
17110 File\SpecialChar menuseparator
17111 New
17112 \begin_inset space ~
17113 \end_inset
17114
17115 from
17116 \begin_inset space ~
17117 \end_inset
17118
17119 Template
17120 \family default
17121  to open your new document].
17122  The template file also contains some examples of the special paragraph
17123  environments used by this class.
17124  I'll describe those next.
17125 \end_layout
17126
17127 \begin_layout Subsection
17128 Paragraph Environments
17129 \end_layout
17130
17131 \begin_layout Subsubsection
17132 Supported Environments
17133 \end_layout
17134
17135 \begin_layout Standard
17136 The first thing you'll notice when you start up a new 
17137 \family sans
17138 slides
17139 \family default
17140  document is the font size and type: it's the equivalent of the size 
17141 \begin_inset Quotes eld
17142 \end_inset
17143
17144
17145 \family sans
17146 Largest
17147 \family default
17148
17149 \begin_inset Quotes erd
17150 \end_inset
17151
17152  in the 
17153 \family sans
17154 Sans
17155 \begin_inset space ~
17156 \end_inset
17157
17158 Serif
17159 \family default
17160  font.
17161  This is also what's used in the output.
17162  Think of this as a 
17163 \begin_inset Quotes eld
17164 \end_inset
17165
17166 visual cue
17167 \begin_inset Quotes erd
17168 \end_inset
17169
17170  to remind you that this is a slide.
17171  Your final slides will use a larger font; ergo, you'll have less space.
17172  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17173 \end_layout
17174
17175 \begin_layout Standard
17176 The next thing that becomes obvious is the changes to the paragraph environment
17177  pull-down box [at the far-left end of the toolbar].
17178  Most of the paragraph environments you're used to seeing are missing.
17179  There are also five new ones.
17180  That's because the 
17181 \family sans
17182 slides
17183 \family default
17184  class itself only supports certain paragraph environments:
17185 \end_layout
17186
17187 \begin_layout Itemize
17188
17189 \family sans
17190 Standard
17191 \end_layout
17192
17193 \begin_layout Itemize
17194
17195 \family sans
17196 Itemize
17197 \end_layout
17198
17199 \begin_layout Itemize
17200
17201 \family sans
17202 Enumerate
17203 \end_layout
17204
17205 \begin_layout Itemize
17206
17207 \family sans
17208 Description
17209 \end_layout
17210
17211 \begin_layout Itemize
17212
17213 \family sans
17214 List
17215 \end_layout
17216
17217 \begin_layout Itemize
17218
17219 \family sans
17220 Quotation
17221 \end_layout
17222
17223 \begin_layout Itemize
17224
17225 \family sans
17226 Quote
17227 \end_layout
17228
17229 \begin_layout Itemize
17230
17231 \family sans
17232 Verse
17233 \end_layout
17234
17235 \begin_layout Itemize
17236
17237 \family sans
17238 Caption
17239 \end_layout
17240
17241 \begin_layout Itemize
17242
17243 \family sans
17244 \SpecialChar LyX
17245 -Code
17246 \end_layout
17247
17248 \begin_layout Itemize
17249
17250 \family sans
17251 Comment
17252 \end_layout
17253
17254 \begin_layout Standard
17255 All of the other standard environments, including the section-heading environmen
17256 ts, aren't used in the 
17257 \family sans
17258 slides
17259 \family default
17260  class.
17261 \end_layout
17262
17263 \begin_layout Standard
17264 On the other hand, you'll notice the following new environments:
17265 \end_layout
17266
17267 \begin_layout Itemize
17268
17269 \family sans
17270 Slide
17271 \end_layout
17272
17273 \begin_layout Itemize
17274
17275 \family sans
17276 Overlay
17277 \end_layout
17278
17279 \begin_layout Itemize
17280
17281 \family sans
17282 Note
17283 \end_layout
17284
17285 \begin_layout Itemize
17286
17287 \family sans
17288 InvisibleText
17289 \end_layout
17290
17291 \begin_layout Itemize
17292
17293 \family sans
17294 VisibleText
17295 \end_layout
17296
17297 \begin_layout Standard
17298 These five are kind of quirky, due to a 
17299 \begin_inset Quotes eld
17300 \end_inset
17301
17302 feature
17303 \begin_inset Quotes erd
17304 \end_inset
17305
17306  in \SpecialChar LyX
17307 .
17308  You see, \SpecialChar LyX
17309  doesn't permit you to nest any other paragraph environment into
17310  an empty environment.
17311  Now, that's fine and dandy, but it means that you wouldn't be able to start
17312  a slide with anything except plain text.
17313  To deal with this, I've performed a little 
17314 \begin_inset Quotes eld
17315 \end_inset
17316
17317 \SpecialChar LaTeX
17318  magic.
17319 \begin_inset Quotes erd
17320 \end_inset
17321
17322  
17323 \end_layout
17324
17325 \begin_layout Subsubsection
17326 Quirks of the New Environments
17327 \begin_inset CommandInset label
17328 LatexCommand label
17329 name "sec:slideQuirk"
17330
17331 \end_inset
17332
17333
17334 \end_layout
17335
17336 \begin_layout Standard
17337 All five of the new paragraph environments are somewhat quirky due to inherent
17338  limitiations in the current version of \SpecialChar LyX
17339 .
17340  As I just mentioned, \SpecialChar LyX
17341  forbids environments that begin with another environment.
17342  To get around this, the 
17343 \family sans
17344 Slide
17345 \family default
17346  environment isn't a paragraph environment as described in the 
17347 \emph on
17348 User's Guide
17349 \emph default
17350 .
17351  
17352 \end_layout
17353
17354 \begin_layout Standard
17355 You should consider 
17356 \family sans
17357 Slide
17358 \family default
17359
17360 \family sans
17361 Overlay
17362 \family default
17363 , and 
17364 \family sans
17365 Note
17366 \family default
17367  to be 
17368 \begin_inset Quotes eld
17369 \end_inset
17370
17371 pseudo-environments.
17372 \begin_inset Quotes erd
17373 \end_inset
17374
17375  They look like a section heading or a 
17376 \begin_inset Quotes eld
17377 \end_inset
17378
17379
17380 \family sans
17381 Caption
17382 \family default
17383 ,
17384 \begin_inset Quotes erd
17385 \end_inset
17386
17387  but really begin a [and, if necessary, end the previous] paragraph environment.
17388  Likewise, treat 
17389 \family sans
17390 InvisibleText
17391 \family default
17392  and 
17393 \family sans
17394 VisibleText
17395 \family default
17396  as 
17397 \begin_inset Quotes eld
17398 \end_inset
17399
17400 pseudo-commands.
17401 \begin_inset Quotes erd
17402 \end_inset
17403
17404  These two perform some action.
17405 \end_layout
17406
17407 \begin_layout Standard
17408 A common feature of all five environments, 
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  and 
17425 \family sans
17426 VisibleText
17427 \family default
17428 , is a rather long-ish label.
17429  The text following this label — ordinarily the contents of the paragraph
17430  environment — is utterly irrelevant for 
17431 \family sans
17432 Slide
17433 \family default
17434
17435 \family sans
17436 Overlay
17437 \family default
17438
17439 \family sans
17440 Note
17441 \family default
17442
17443 \family sans
17444 InvisibleText
17445 \family default
17446  and 
17447 \family sans
17448 VisibleText
17449 \family default
17450 .
17451  \SpecialChar LyX
17452  completely ignores it.
17453  In fact, you can leave these five environments completely empty.
17454  
17455 \end_layout
17456
17457 \begin_layout Standard
17458 While you don't 
17459 \emph on
17460 have
17461 \emph default
17462  to put any text after the rather long-ish label, you might want to.
17463  This could be a short description of the contents of the 
17464 \family sans
17465 Slide
17466 \family default
17467 , for example.
17468  In that case, enter your descriptive comment and hit 
17469 \family sans
17470 Return
17471 \family default
17472  as you normally would.
17473 \end_layout
17474
17475 \begin_layout Standard
17476 If, on the other hand, you don't want to enter any descriptive text, you'll
17477  hit another \SpecialChar LyX
17478  quirk.
17479  \SpecialChar LyX
17480 , like nature, abhors a vacuum, and will not let you start a new paragraph
17481  environment until you put something in the old one.
17482  So, do this:
17483 \end_layout
17484
17485 \begin_layout Itemize
17486 Start entering the text that will 
17487 \emph on
17488 follow
17489 \emph default
17490  the new 
17491 \family sans
17492 Slide
17493 \family default
17494
17495 \family sans
17496 Overlay
17497 \family default
17498
17499 \family sans
17500 Note
17501 \family default
17502
17503 \family sans
17504 InvisibleText
17505 \family default
17506  or 
17507 \family sans
17508 VisibleText
17509 \family default
17510 .
17511  
17512 \end_layout
17513
17514 \begin_layout Itemize
17515 Now move to the beginning of that paragraph.
17516  
17517 \end_layout
17518
17519 \begin_layout Itemize
17520 Next, hit 
17521 \family sans
17522 Return
17523 \family default
17524 .
17525  
17526 \end_layout
17527
17528 \begin_layout Itemize
17529 Finally, change this new, empty paragraph to a 
17530 \family sans
17531 Slide
17532 \family default
17533
17534 \family sans
17535 Overlay
17536 \family default
17537
17538 \family sans
17539 Note
17540 \family default
17541
17542 \family sans
17543 InvisibleText
17544 \family default
17545  or 
17546 \family sans
17547 VisibleText
17548 \family default
17549 .
17550  
17551 \end_layout
17552
17553 \begin_layout Standard
17554 Some future version of \SpecialChar LyX
17555  will, hopefully, resolve this quirkiness\SpecialChar ldots
17556
17557 \end_layout
17558
17559 \begin_layout Subsection
17560 Making a Presentation with 
17561 \family sans
17562 Slide
17563 \family default
17564
17565 \family sans
17566 Overlay
17567 \family default
17568  and 
17569 \family sans
17570 Note
17571 \end_layout
17572
17573 \begin_layout Subsubsection
17574 Using the 
17575 \family sans
17576 Slide
17577 \family default
17578  Environment
17579 \end_layout
17580
17581 \begin_layout Standard
17582 If you're expecting this section to teach you how to actually make a presentatio
17583 n, you'll be sorely disappointed.
17584  Naturally, I'll describe all of the ways the 
17585 \family sans
17586 slides
17587 \family default
17588  class can assist you in preparing the materials for a presentation.
17589  Filling in the contents, however, is up to you.
17590  [Then again, that 
17591 \emph on
17592 is
17593 \emph default
17594  the \SpecialChar LyX
17595  philosophy.]
17596 \end_layout
17597
17598 \begin_layout Standard
17599 Choosing the 
17600 \family sans
17601 Slide
17602 \family default
17603  environment [in the manner described in section
17604 \begin_inset space ~
17605 \end_inset
17606
17607
17608 \begin_inset CommandInset ref
17609 LatexCommand ref
17610 reference "sec:slideQuirk"
17611
17612 \end_inset
17613
17614 ] tells \SpecialChar LyX
17615  to begin a new slide [duh].
17616  The label for this environment/
17617 \begin_inset Quotes erd
17618 \end_inset
17619
17620 pseudo-command
17621 \begin_inset Quotes erd
17622 \end_inset
17623
17624  is an 
17625 \begin_inset Quotes eld
17626 \end_inset
17627
17628 ASCII line,
17629 \begin_inset Quotes erd
17630 \end_inset
17631
17632  in cool blue, followed by the label, 
17633 \begin_inset Quotes eld
17634 \end_inset
17635
17636 NewSlide:
17637 \begin_inset Quotes erd
17638 \end_inset
17639
17640 .
17641  Any text or paragraph environments that follow this one go on the new slide.
17642  It's that simple.
17643 \end_layout
17644
17645 \begin_layout Standard
17646 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17647
17648  (this can be specified in the 
17649 \family sans
17650 Paragraph Layout
17651 \family default
17652  dialog).
17653  In fact, you'll want to, once you finish entering the contents of one slide.
17654  If you've entered more text than can physically fit on a slide, the extra
17655  overflows onto a new slide.
17656  I don't recommend doing this, however, since the overflow slide won't have
17657  any page number on it.
17658  Furthermore, it may interfere with any 
17659 \family sans
17660 Overlay
17661 \family default
17662  you've made to accompany the oversized 
17663 \family sans
17664 Slide
17665 \family default
17666 .
17667 \end_layout
17668
17669 \begin_layout Standard
17670 The 
17671 \family sans
17672 Overlay
17673 \family default
17674  and 
17675 \family sans
17676 Note
17677 \family default
17678  environments work the same way as the 
17679 \family sans
17680 Slide
17681 \family default
17682  environment.
17683  They both create an 
17684 \begin_inset Quotes eld
17685 \end_inset
17686
17687 ASCII line
17688 \begin_inset Quotes erd
17689 \end_inset
17690
17691  followed by a label [
17692 \begin_inset Quotes eld
17693 \end_inset
17694
17695 NewOverlay:
17696 \begin_inset Quotes erd
17697 \end_inset
17698
17699  and 
17700 \begin_inset Quotes eld
17701 \end_inset
17702
17703 NewNote:
17704 \begin_inset Quotes erd
17705 \end_inset
17706
17707 , respectively].
17708  The color is a stunning magenta instead of blue, and the 
17709 \begin_inset Quotes eld
17710 \end_inset
17711
17712 ASCII line
17713 \begin_inset Quotes erd
17714 \end_inset
17715
17716  will look different, in style and in length.
17717  The label fonts of all three also differ from one another.
17718 \end_layout
17719
17720 \begin_layout Standard
17721 As with a 
17722 \family sans
17723 Slide
17724 \family default
17725 , if the contents of a 
17726 \family sans
17727 Note
17728 \family default
17729  or 
17730 \family sans
17731 Overlay
17732 \family default
17733  exceed the physical size of a slide or sheet of paper, the extra will overflow
17734  onto a new sheet.
17735  Again, you should avoid this.
17736  It defeats the whole purpose of 
17737 \family sans
17738 Note
17739 \family default
17740 s and 
17741 \family sans
17742 Overlay
17743 \family default
17744 s.
17745 \end_layout
17746
17747 \begin_layout Subsubsection
17748 Using 
17749 \family sans
17750 Overlay
17751 \family default
17752  with 
17753 \family sans
17754 Slide
17755 \end_layout
17756
17757 \begin_layout Standard
17758 The idea behind an 
17759 \family sans
17760 Overlay
17761 \family default
17762  is a slide that sits atop another slide.
17763  Perhaps you wish to discuss a figure on the main 
17764 \family sans
17765 Slide
17766 \family default
17767  before displaying the text associated with it.
17768  One way to accomplish this is tape a flap of dark paper over the part of
17769  the 
17770 \family sans
17771 Slide
17772 \family default
17773  you want to display later.
17774  This method fails, however, if you wish to overlap one graph with another,
17775  for example.
17776  You would then have to fumble while speaking to align the two separate,
17777  overlapping 
17778 \family sans
17779 Slide
17780 \family default
17781 s to align the two graphs.
17782  The use of an 
17783 \family sans
17784 Overlay
17785 \family default
17786  environment in both cases makes life much easier.
17787 \end_layout
17788
17789 \begin_layout Standard
17790 Each 
17791 \family sans
17792 Overlay
17793 \family default
17794  receives the page number of its 
17795 \begin_inset Quotes eld
17796 \end_inset
17797
17798 parent
17799 \begin_inset Quotes erd
17800 \end_inset
17801
17802  
17803 \family sans
17804 Slide
17805 \family default
17806 , appended by 
17807 \begin_inset Quotes eld
17808 \end_inset
17809
17810
17811 \family typewriter
17812 -a
17813 \family default
17814
17815 \begin_inset Quotes erd
17816 \end_inset
17817
17818 .
17819 \begin_inset Foot
17820 status collapsed
17821
17822 \begin_layout Plain Layout
17823 Presumably, mutliple 
17824 \family sans
17825 Overlay
17826 \family default
17827 s would have 
17828 \begin_inset Quotes eld
17829 \end_inset
17830
17831
17832 \family typewriter
17833 -a
17834 \family default
17835
17836 \begin_inset Quotes erd
17837 \end_inset
17838
17839
17840 \begin_inset Quotes eld
17841 \end_inset
17842
17843
17844 \family typewriter
17845 -b
17846 \family default
17847
17848 \begin_inset Quotes erd
17849 \end_inset
17850
17851
17852 \begin_inset Quotes eld
17853 \end_inset
17854
17855
17856 \family typewriter
17857 -c
17858 \family default
17859
17860 \begin_inset Quotes erd
17861 \end_inset
17862
17863 , etc.
17864 \begin_inset space ~
17865 \end_inset
17866
17867 appended to the page number of the parent 
17868 \family sans
17869 Slide
17870 \family default
17871 .
17872  
17873 \end_layout
17874
17875 \end_inset
17876
17877  Clearly, you want the contents of both the 
17878 \family sans
17879 Slide
17880 \family default
17881  and the 
17882 \family sans
17883 Overlay
17884 \family default
17885  to each fit on a single physical slide! You should probably consider an
17886  
17887 \family sans
17888 Overlay
17889 \family default
17890  as 
17891 \begin_inset Quotes eld
17892 \end_inset
17893
17894 part of
17895 \begin_inset Quotes erd
17896 \end_inset
17897
17898  a 
17899 \family sans
17900 Slide
17901 \family default
17902 .
17903  Indeed, the \SpecialChar LyX
17904  
17905 \family sans
17906 slides
17907 \family default
17908  class provides a visual cue for this: the label at the start of an 
17909 \family sans
17910 Overlay
17911 \family default
17912  is shorter than that at the start of a 
17913 \family sans
17914 Slide
17915 \family default
17916 .
17917  Lastly, when you generate printable output, you'll find alignment markers
17918  in all four corners of both the 
17919 \family sans
17920 Overlay
17921 \family default
17922  page and its parent 
17923 \family sans
17924 Slide
17925 \family default
17926 .
17927  These will assist you in lining up the two physical slides.
17928 \end_layout
17929
17930 \begin_layout Standard
17931 The major problem in overlaying two slides is aligning the contents of the
17932  two transparencies.
17933  How much space should you leave for that graph on the second slide? Worse
17934  still, what if you want a graph and a sentence on second slide, but there
17935  is text on the main transparency that goes in between them? You could try
17936  and insert vertical space of the right size.
17937  The better way is to use 
17938 \family sans
17939 InvisibleText
17940 \family default
17941  and 
17942 \family sans
17943 VisibleText
17944 \family default
17945 .
17946 \end_layout
17947
17948 \begin_layout Standard
17949 As their names imply, 
17950 \family sans
17951 InvisibleText
17952 \family default
17953  and 
17954 \family sans
17955 VisibleText
17956 \family default
17957  are two command-like paragraph environments that make all subsequent text
17958  invisible and visible, respectively.
17959  Note from section
17960 \begin_inset space ~
17961 \end_inset
17962
17963
17964 \begin_inset CommandInset ref
17965 LatexCommand ref
17966 reference "sec:slideQuirk"
17967
17968 \end_inset
17969
17970  that you don't place anything 
17971 \emph on
17972 into
17973 \emph default
17974  these two environments, however.
17975  When you create an 
17976 \family sans
17977 InvisibleText
17978 \family default
17979 , it inserts a centered, sky-blue label into the page reading 
17980 \begin_inset Quotes eld
17981 \end_inset
17982
17983 <Invisible Text Follows>
17984 \begin_inset Quotes erd
17985 \end_inset
17986
17987 .
17988  For paragraphs following this label, the parts of the 
17989 \family sans
17990 Slide
17991 \family default
17992  [or 
17993 \family sans
17994 Overlay
17995 \family default
17996 ; it doesn't matter which] where they would be contain instead blank space.
17997  
17998 \end_layout
17999
18000 \begin_layout Standard
18001 For 
18002 \family sans
18003 VisibleText
18004 \family default
18005 , the corresponding centered label is 
18006 \begin_inset Quotes eld
18007 \end_inset
18008
18009 <Visible Text Follows>
18010 \begin_inset Quotes erd
18011 \end_inset
18012
18013  in blazing green.
18014  Paragraphs following this label behave normally.
18015  Note that the beginning of a new 
18016 \family sans
18017 Slide
18018 \family default
18019
18020 \family sans
18021 Overlay
18022 \family default
18023 , or 
18024 \family sans
18025 Note
18026 \family default
18027  automatically shuts off an 
18028 \family sans
18029 InvisibleText
18030 \family default
18031 .
18032  It's therefore not necessary to use 
18033 \family sans
18034 VisibleText
18035 \family default
18036  at the end of a 
18037 \family sans
18038 Slide
18039 \family default
18040 .
18041 \end_layout
18042
18043 \begin_layout Standard
18044 By now, it should be obvious how to create overlay transparencies using
18045  the proper combination of 
18046 \family sans
18047 InvisibleText
18048 \family default
18049  and 
18050 \family sans
18051 VisibleText
18052 \family default
18053  on a 
18054 \family sans
18055 Slide
18056 \family default
18057  and 
18058 \family sans
18059 Overlay
18060 \family default
18061 :
18062 \end_layout
18063
18064 \begin_layout Enumerate
18065 Create a 
18066 \family sans
18067 Slide
18068 \family default
18069 , including everything that will appear on it, whether on the main slide
18070  or on the 
18071 \family sans
18072 Overlay
18073 \family default
18074 .
18075 \end_layout
18076
18077 \begin_layout Enumerate
18078 Before each figure or paragraph that will appear only on the 
18079 \family sans
18080 Overlay
18081 \family default
18082 , insert an 
18083 \family sans
18084 InvisibleText
18085 \family default
18086  environment.
18087  If necessary, insert a 
18088 \family sans
18089 VisibleText
18090 \family default
18091  environment after the 
18092 \family sans
18093 Overlay
18094 \family default
18095 -only text.
18096 \end_layout
18097
18098 \begin_layout Enumerate
18099 Start an 
18100 \family sans
18101 Overlay
18102 \family default
18103  immediately following the 
18104 \family sans
18105 Slide
18106 \family default
18107 .
18108 \end_layout
18109
18110 \begin_layout Enumerate
18111 Copy the contents of this 
18112 \family sans
18113 Slide
18114 \family default
18115  into the 
18116 \family sans
18117 Overlay
18118 \family default
18119 .
18120 \end_layout
18121
18122 \begin_layout Enumerate
18123 Within the 
18124 \family sans
18125 Overlay
18126 \family default
18127 , change all of the 
18128 \family sans
18129 InvisibleText
18130 \family default
18131  lines to 
18132 \family sans
18133 VisibleText
18134 \family default
18135  and vice-versa.
18136 \end_layout
18137
18138 \begin_layout Standard
18139 That's it.
18140  You've just made an 
18141 \family sans
18142 Overlay
18143 \family default
18144 .
18145 \end_layout
18146
18147 \begin_layout Standard
18148 There's one problem with the way I've designed the \SpecialChar LyX
18149  
18150 \family sans
18151 slides
18152 \family default
18153  class: you can't make text in the middle of a paragraph invisible, nor
18154  make text in the middle of an invisible paragraph visible again.
18155  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18156  codes.
18157 \begin_inset Foot
18158 status collapsed
18159
18160 \begin_layout Plain Layout
18161 The commands of interest are: 
18162 \end_layout
18163
18164 \begin_layout Itemize
18165
18166 \family typewriter
18167 {
18168 \backslash
18169 invisible \SpecialChar ldots
18170  }
18171 \end_layout
18172
18173 \begin_layout Itemize
18174
18175 \family typewriter
18176 {
18177 \backslash
18178 visible \SpecialChar ldots
18179  }
18180 \end_layout
18181
18182 \begin_layout Plain Layout
18183 \SpecialChar ldots
18184 and need to be marked as \SpecialChar TeX
18185 .
18186  The text whose 
18187 \begin_inset Quotes eld
18188 \end_inset
18189
18190 visibility
18191 \begin_inset Quotes erd
18192 \end_inset
18193
18194  you wish to change goes in between the brackets [and after the 
18195 \family typewriter
18196
18197 \backslash
18198 invisible
18199 \family default
18200  or 
18201 \family typewriter
18202
18203 \backslash
18204 visible
18205 \family default
18206  command].
18207  If you don't know how to mark text as \SpecialChar TeX
18208 , see the appropriate section of
18209  the 
18210 \emph on
18211 User's Guide
18212 \emph default
18213 .
18214 \end_layout
18215
18216 \end_inset
18217
18218
18219 \end_layout
18220
18221 \begin_layout Subsubsection
18222 Using 
18223 \family sans
18224 Note
18225 \family default
18226  with 
18227 \family sans
18228 Slide
18229 \family default
18230
18231 \begin_inset CommandInset label
18232 LatexCommand label
18233 name "sec:slideNote"
18234
18235 \end_inset
18236
18237
18238 \end_layout
18239
18240 \begin_layout Standard
18241 Like an 
18242 \family sans
18243 Overlay
18244 \family default
18245 , a 
18246 \family sans
18247 Note
18248 \family default
18249  is associated with a 
18250 \begin_inset Quotes eld
18251 \end_inset
18252
18253 parent
18254 \begin_inset Quotes erd
18255 \end_inset
18256
18257  
18258 \family sans
18259 Slide
18260 \family default
18261 .
18262  Here, too, the \SpecialChar LyX
18263  
18264 \family sans
18265 slides
18266 \family default
18267  class provides visual cues.
18268  The label for a 
18269 \family sans
18270 Note
18271 \family default
18272  is shorter than that of a 
18273 \family sans
18274 Slide
18275 \family default
18276  [yet longer than that of an 
18277 \family sans
18278 Overlay
18279 \family default
18280 ] and, like the label of an 
18281 \family sans
18282 Overlay
18283 \family default
18284  is shockingly magenta.
18285  Additionally, the printed 
18286 \family sans
18287 Note
18288 \family default
18289  has the page number of its 
18290 \begin_inset Quotes eld
18291 \end_inset
18292
18293 parent
18294 \begin_inset Quotes erd
18295 \end_inset
18296
18297  
18298 \family sans
18299 Slide
18300 \family default
18301 , appended by 
18302 \begin_inset Quotes eld
18303 \end_inset
18304
18305
18306 \family typewriter
18307 -
18308 \family default
18309 1
18310 \begin_inset Quotes erd
18311 \end_inset
18312
18313
18314 \begin_inset Quotes eld
18315 \end_inset
18316
18317
18318 \family typewriter
18319 -
18320 \family default
18321 2
18322 \begin_inset Quotes erd
18323 \end_inset
18324
18325
18326 \begin_inset Quotes eld
18327 \end_inset
18328
18329
18330 \family typewriter
18331 -
18332 \family default
18333 3
18334 \begin_inset Quotes erd
18335 \end_inset
18336
18337 , etc.
18338  You can have multiple 
18339 \family sans
18340 Note
18341 \family default
18342 s associated with a single 
18343 \family sans
18344 Slide
18345 \family default
18346 , and, as with 
18347 \family sans
18348 Slide
18349 \family default
18350  and 
18351 \family sans
18352 Overlay
18353 \family default
18354 , you'll probably want to break up long 
18355 \family sans
18356 Note
18357 \family default
18358 s so that they fit on a single sheet of paper.
18359 \end_layout
18360
18361 \begin_layout Standard
18362 The purpose of a 
18363 \family sans
18364 Note
18365 \family default
18366  is obvious: it contains anything additional you might want to say about
18367  a 
18368 \family sans
18369 Slide
18370 \family default
18371 .
18372  It could also be used as a sheet of reminders for a particular 
18373 \family sans
18374 Slide
18375 \family default
18376 .
18377  In the case of the latter, you might want to make use of time markers.
18378  Currently, the \SpecialChar LyX
18379  
18380 \family sans
18381 slides
18382 \family default
18383  class has no 
18384 \begin_inset Quotes eld
18385 \end_inset
18386
18387 native
18388 \begin_inset Quotes erd
18389 \end_inset
18390
18391  support for time markers, a 
18392 \noun on
18393 Sli\SpecialChar TeX
18394
18395 \noun default
18396  feature.
18397  So, you'll have to resort to using the \SpecialChar LaTeX
18398  codes.
18399 \end_layout
18400
18401 \begin_layout Standard
18402 To use time markers, you'll need to specify the extra class option 
18403 \begin_inset Quotes eld
18404 \end_inset
18405
18406
18407 \family typewriter
18408 clock
18409 \family default
18410
18411 \begin_inset Quotes erd
18412 \end_inset
18413
18414  [see section
18415 \begin_inset space ~
18416 \end_inset
18417
18418
18419 \begin_inset CommandInset ref
18420 LatexCommand ref
18421 reference "sec:slidesetup"
18422
18423 \end_inset
18424
18425 ].
18426  This option turns on timing marks, which will appear in the lower-left-hand
18427  corner of every 
18428 \family sans
18429 Note
18430 \family default
18431  you generate.
18432  To set what appears in the time marker, you use the \SpecialChar LaTeX
18433  commands 
18434 \begin_inset Quotes eld
18435 \end_inset
18436
18437
18438 \family typewriter
18439
18440 \backslash
18441 settime{}
18442 \family default
18443
18444 \begin_inset Quotes erd
18445 \end_inset
18446
18447  and 
18448 \begin_inset Quotes eld
18449 \end_inset
18450
18451
18452 \family typewriter
18453
18454 \backslash
18455 addtime{}
18456 \family default
18457
18458 \begin_inset Quotes erd
18459 \end_inset
18460
18461 .
18462  The arguments of both commands are time measured in seconds.
18463  
18464 \begin_inset Quotes eld
18465 \end_inset
18466
18467
18468 \family typewriter
18469
18470 \backslash
18471 settime{}
18472 \family default
18473
18474 \begin_inset Quotes erd
18475 \end_inset
18476
18477  sets the time marker to a given time.
18478  
18479 \begin_inset Quotes eld
18480 \end_inset
18481
18482
18483 \family typewriter
18484
18485 \backslash
18486 addtime{}
18487 \family default
18488
18489 \begin_inset Quotes erd
18490 \end_inset
18491
18492  increments the time marker by the specified amount.
18493  Using time markers and 
18494 \family sans
18495 Note
18496 \family default
18497 s in this fashion, you can remind yourself how much time to spend on a particula
18498
18499 \family sans
18500 Slide
18501 \family default
18502 .
18503 \end_layout
18504
18505 \begin_layout Standard
18506 There's one last feature to describe.
18507  Clearly, you'd like to print out all of your 
18508 \family sans
18509 Slide
18510 \family default
18511 s and 
18512 \family sans
18513 Overlay
18514 \family default
18515 s on transparencies while printing all of your 
18516 \family sans
18517 Note
18518 \family default
18519 s on plain paper.
18520  However, a 
18521 \family sans
18522 Note
18523 \family default
18524  
18525 \emph on
18526 must
18527 \emph default
18528  follow the 
18529 \family sans
18530 Slide
18531 \family default
18532  with which it is associated.
18533  What's a person to do?
18534 \end_layout
18535
18536 \begin_layout Standard
18537 Luckily, there are two \SpecialChar LaTeX
18538  commands that allow you to select what to print
18539  out.
18540  Both must be placed into the preamble of your document.
18541  The command 
18542 \begin_inset Quotes eld
18543 \end_inset
18544
18545
18546 \family typewriter
18547
18548 \backslash
18549 onlyslides{
18550 \backslash
18551 slides}
18552 \family default
18553
18554 \begin_inset Quotes erd
18555 \end_inset
18556
18557  will cause the output to contain only the 
18558 \family sans
18559 Slide
18560 \family default
18561 s and 
18562 \family sans
18563 Overlay
18564 \family default
18565 s.
18566  Correspondingly, the command 
18567 \begin_inset Quotes eld
18568 \end_inset
18569
18570
18571 \family typewriter
18572
18573 \backslash
18574 onlynotes{
18575 \backslash
18576 notes}
18577 \family default
18578
18579 \begin_inset Quotes erd
18580 \end_inset
18581
18582  prevents the output of anything but 
18583 \family sans
18584 Note
18585 \family default
18586 s.
18587  I'd advise placing both commands in the preamble and initially comment
18588  both out.
18589  You can then preview your entire presentation as you write.
18590  When you're done writing, you can then uncomment one of the two to select
18591  what you want to print.
18592  I like to uncomment 
18593 \begin_inset Quotes eld
18594 \end_inset
18595
18596
18597 \family typewriter
18598
18599 \backslash
18600 onlyslides{
18601 \backslash
18602 slides}
18603 \family default
18604
18605 \begin_inset Quotes erd
18606 \end_inset
18607
18608  , print to a file with 
18609 \begin_inset Quotes eld
18610 \end_inset
18611
18612
18613 \family typewriter
18614 -slides
18615 \family default
18616
18617 \begin_inset Quotes erd
18618 \end_inset
18619
18620  in its name, comment it back out, then uncomment 
18621 \begin_inset Quotes eld
18622 \end_inset
18623
18624
18625 \family typewriter
18626
18627 \backslash
18628 onlynotes{
18629 \backslash
18630 notes}
18631 \family default
18632
18633 \begin_inset Quotes erd
18634 \end_inset
18635
18636  and print to a 
18637 \begin_inset Quotes eld
18638 \end_inset
18639
18640
18641 \family typewriter
18642 *-notes.ps
18643 \family default
18644
18645 \begin_inset Quotes erd
18646 \end_inset
18647
18648  file.
18649  I can then send either file to a printer, loading transparencies or plain
18650  paper as appropriate.
18651 \end_layout
18652
18653 \begin_layout Standard
18654 You can also provide other arguments to the 
18655 \begin_inset Quotes eld
18656 \end_inset
18657
18658
18659 \family typewriter
18660
18661 \backslash
18662 onlyslides{}
18663 \family default
18664
18665 \begin_inset Quotes erd
18666 \end_inset
18667
18668  and 
18669 \begin_inset Quotes eld
18670 \end_inset
18671
18672
18673 \family typewriter
18674
18675 \backslash
18676 onlynotes{}
18677 \family default
18678
18679 \begin_inset Quotes erd
18680 \end_inset
18681
18682  commands.
18683  See a good \SpecialChar LaTeX
18684  book for details.
18685 \end_layout
18686
18687 \begin_layout Subsection
18688 The 
18689 \family sans
18690 slides
18691 \family default
18692  Class Template File
18693 \end_layout
18694
18695 \begin_layout Standard
18696 I have also provided a template file, 
18697 \begin_inset Quotes eld
18698 \end_inset
18699
18700
18701 \family typewriter
18702 slides.lyx
18703 \family default
18704
18705 \begin_inset Quotes erd
18706 \end_inset
18707
18708 , with the 
18709 \family sans
18710 slides
18711 \family default
18712  class.
18713  To use it, begin your new presentation with 
18714 \family sans
18715 File\SpecialChar menuseparator
18716 New
18717 \begin_inset space ~
18718 \end_inset
18719
18720 from
18721 \begin_inset space ~
18722 \end_inset
18723
18724 Template
18725 \family default
18726 .
18727  Your new \SpecialChar LyX
18728  presentation file will contain an example 
18729 \family sans
18730 Slide
18731 \family default
18732  – 
18733 \family sans
18734 Overlay
18735 \family default
18736  – 
18737 \family sans
18738 Note
18739 \family default
18740  triplet.
18741  The 
18742 \family sans
18743 Slide
18744 \family default
18745  and 
18746 \family sans
18747 Overlay
18748 \family default
18749  additionally contain an example of the use of 
18750 \family sans
18751 InvisibleText
18752 \family default
18753  and 
18754 \family sans
18755 VisibleText
18756 \family default
18757 .
18758  Lastly, the preamble will contain:
18759 \end_layout
18760
18761 \begin_layout LyX-Code
18762 % Uncomment to print out only slides and overlays
18763 \end_layout
18764
18765 \begin_layout LyX-Code
18766 %
18767 \end_layout
18768
18769 \begin_layout LyX-Code
18770 %
18771 \backslash
18772 onlyslides{
18773 \backslash
18774 slides}
18775 \begin_inset Newline newline
18776 \end_inset
18777
18778  
18779 \end_layout
18780
18781 \begin_layout LyX-Code
18782 % Uncomment to print out only notes
18783 \end_layout
18784
18785 \begin_layout LyX-Code
18786 %
18787 \end_layout
18788
18789 \begin_layout LyX-Code
18790 %
18791 \backslash
18792 onlynotes{
18793 \backslash
18794 notes}
18795 \end_layout
18796
18797 \begin_layout Standard
18798 One final thing: I created this class to support the \SpecialChar LaTeX2e
18799  
18800 \begin_inset Quotes eld
18801 \end_inset
18802
18803
18804 \noun on
18805 Sli\SpecialChar TeX
18806
18807 \noun default
18808  emulation
18809 \begin_inset Quotes erd
18810 \end_inset
18811
18812  class, one of the built-in \SpecialChar LaTeX2e
18813  classes.
18814  Neither I nor the rest of the \SpecialChar LyX
18815  Team endorse or oppose the use of this built-in
18816  slide class.
18817  It's here if you want it or need it.
18818  There exist other \SpecialChar LaTeX2e
18819  classes for creating presentations, such as the 
18820 \family sans
18821 Foils
18822 \family default
18823  class [see section
18824 \begin_inset space ~
18825 \end_inset
18826
18827
18828 \begin_inset CommandInset ref
18829 LatexCommand ref
18830 reference "sec:foiltex"
18831
18832 \end_inset
18833
18834 ] or the 
18835 \begin_inset Quotes eld
18836 \end_inset
18837
18838
18839 \family typewriter
18840 seminar
18841 \family default
18842
18843 \begin_inset Quotes erd
18844 \end_inset
18845
18846  package [present on some \SpecialChar TeX
18847  distributions].
18848  The latter is not yet supported under \SpecialChar LyX
18849 .
18850 \begin_inset Foot
18851 status collapsed
18852
18853 \begin_layout Plain Layout
18854 Perhaps you can take on the task\SpecialChar ldots
18855
18856 \end_layout
18857
18858 \end_inset
18859
18860  I know nothing about these other classes.
18861  Try them out to see what sort of alternative they provide.
18862 \end_layout
18863
18864 \begin_layout Chapter
18865 \SpecialChar LyX
18866  Features needing Extra Software
18867 \end_layout
18868
18869 \begin_layout Section
18870 Checking \SpecialChar TeX
18871
18872 \end_layout
18873
18874 \begin_layout Standard
18875 by 
18876 \noun on
18877 Asger Alstrup
18878 \end_layout
18879
18880 \begin_layout Subsection
18881 Introduction
18882 \end_layout
18883
18884 \begin_layout Standard
18885 If you have the 
18886 \family typewriter
18887 chktex
18888 \family default
18889  program installed
18890 \begin_inset Foot
18891 status collapsed
18892
18893 \begin_layout Plain Layout
18894
18895 \family typewriter
18896 chktex
18897 \family default
18898  is not yet available when you are using the \SpecialChar LaTeX
18899  distribution MiK\SpecialChar TeX
18900 .
18901 \end_layout
18902
18903 \end_inset
18904
18905 , you'll find in the 
18906 \family sans
18907 Tools
18908 \family default
18909  menu the entry: 
18910 \family sans
18911 Check
18912 \begin_inset space ~
18913 \end_inset
18914
18915 TeX
18916 \family default
18917 .
18918  You can get 
18919 \family typewriter
18920 chktex
18921 \family default
18922  from CTAN,
18923 \begin_inset Newline newline
18924 \end_inset
18925
18926
18927 \begin_inset CommandInset href
18928 LatexCommand href
18929 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18930 literal "false"
18931
18932 \end_inset
18933
18934 .
18935 \end_layout
18936
18937 \begin_layout Standard
18938 The 
18939 \family sans
18940 Chk\SpecialChar TeX
18941
18942 \family default
18943  package is a program that was written by 
18944 \begin_inset Flex Noun
18945 status collapsed
18946
18947 \begin_layout Plain Layout
18948 Jens T.
18949 \begin_inset space ~
18950 \end_inset
18951
18952 Berger Thielemann
18953 \end_layout
18954
18955 \end_inset
18956
18957  in frustration because some constructs in \SpecialChar LaTeX
18958  are sometimes non-intuitive,
18959  and easy to forget.
18960  The program runs over your \SpecialChar LaTeX
18961  file, checks the integrity of the file, and
18962  flags some common errors.
18963  In other technical words, it is 
18964 \family typewriter
18965 lint
18966 \family default
18967  for \SpecialChar LaTeX
18968 .
18969 \end_layout
18970
18971 \begin_layout Standard
18972 Well, what is a syntax checker doing in \SpecialChar LyX
18973  which is supposed to produce correct
18974  \SpecialChar LaTeX
18975  anyways? The answer is simple: Just as 
18976 \family typewriter
18977 Lint
18978 \family default
18979  not only checks the 
18980 \emph on
18981 syntax
18982 \emph default
18983  of C programs, but also does 
18984 \emph on
18985 semantic
18986 \emph default
18987  checks for type-errors, 
18988 \family sans
18989 Chk\SpecialChar TeX
18990
18991 \family default
18992  catches some common 
18993 \emph on
18994 typographic
18995 \emph default
18996  errors, in addition to the syntactical ones.
18997  Specifically, 
18998 \family sans
18999 Chk\SpecialChar TeX
19000
19001 \family default
19002  is capable of detecting several common errors, such as
19003 \end_layout
19004
19005 \begin_layout Itemize
19006 Ellipsis detection:
19007 \begin_inset Newline newline
19008 \end_inset
19009
19010 Use \SpecialChar ldots
19011  instead of ...
19012 \end_layout
19013
19014 \begin_layout Itemize
19015 No space in front of/after parenthesis:
19016 \begin_inset Newline newline
19017 \end_inset
19018
19019 ( wrong spacing )
19020 \end_layout
19021
19022 \begin_layout Itemize
19023 Enforcement of normal space after common abbreviations:
19024 \begin_inset Newline newline
19025 \end_inset
19026
19027 e.
19028 \begin_inset space \thinspace{}
19029 \end_inset
19030
19031 g.
19032 \begin_inset space \space{}
19033 \end_inset
19034
19035 is too wide spacing.
19036 \end_layout
19037
19038 \begin_layout Itemize
19039 Enforcement of end-of-sentence space when the last sentence ends with a
19040  capital letter:
19041 \begin_inset Newline newline
19042 \end_inset
19043
19044 This is a TEST.
19045  And this is wrong spacing.
19046 \end_layout
19047
19048 \begin_layout Itemize
19049 Space in front of labels and similar commands:
19050 \begin_inset Newline newline
19051 \end_inset
19052
19053 The label should stick right up to the text to avoid falling to a wrong
19054  page.
19055  
19056 \begin_inset CommandInset label
19057 LatexCommand label
19058 name "sec:chktex"
19059
19060 \end_inset
19061
19062  
19063 \begin_inset Foot
19064 status collapsed
19065
19066 \begin_layout Plain Layout
19067 This footnote is in danger of falling off to a wrong page
19068 \end_layout
19069
19070 \end_inset
19071
19072  The label is separated too much.
19073 \end_layout
19074
19075 \begin_layout Itemize
19076 Space in front of references, instead of hard spaces:
19077 \begin_inset Newline newline
19078 \end_inset
19079
19080 If you have bad luck, the text will break right between the referenced text
19081  and reference number, and that's a pity.
19082  See section 
19083 \begin_inset CommandInset ref
19084 LatexCommand ref
19085 reference "sec:chktex"
19086
19087 \end_inset
19088
19089 .
19090 \end_layout
19091
19092 \begin_layout Itemize
19093 Use of 
19094 \begin_inset Quotes eld
19095 \end_inset
19096
19097 x
19098 \begin_inset Quotes erd
19099 \end_inset
19100
19101  instead of 
19102 \begin_inset Formula $\times$
19103 \end_inset
19104
19105  between numbers:
19106 \begin_inset Newline newline
19107 \end_inset
19108
19109 2x2 looks cheap compared to 
19110 \begin_inset Formula $2\times2$
19111 \end_inset
19112
19113 .
19114 \end_layout
19115
19116 \begin_layout Standard
19117 and more \SpecialChar ldots
19118  It is an invaluable tool when you are 
19119 \begin_inset Quotes eld
19120 \end_inset
19121
19122 finishing up
19123 \begin_inset Quotes erd
19124 \end_inset
19125
19126  your document before printing, and you should run it right after the obligatory
19127  spelling check, and before you go fine tuning the typesetting.
19128 \end_layout
19129
19130 \begin_layout Subsection
19131 How to use it
19132 \end_layout
19133
19134 \begin_layout Standard
19135 If you have the program installed, usage is as simple as choosing 
19136 \family sans
19137 Tools\SpecialChar menuseparator
19138 Check
19139 \begin_inset space ~
19140 \end_inset
19141
19142 TeX
19143 \family default
19144 .
19145  This will make \SpecialChar LyX
19146  generate a \SpecialChar LaTeX
19147  file of your document, start 
19148 \family sans
19149 Chk\SpecialChar TeX
19150
19151 \family default
19152  to check it, and then make \SpecialChar LyX
19153  insert 
19154 \begin_inset Quotes eld
19155 \end_inset
19156
19157 error boxes
19158 \begin_inset Quotes erd
19159 \end_inset
19160
19161  with the warnings from 
19162 \family sans
19163 Chk\SpecialChar TeX
19164
19165 \family default
19166 , if there were any.
19167  The warnings will be placed close to the point of the mistake, and you
19168  can quickly find them by using the 
19169 \family sans
19170 Navigate\SpecialChar menuseparator
19171 Error
19172 \family default
19173  menu item, or the shortcut key 
19174 \family sans
19175 C-g
19176 \family default
19177  from the default 
19178 \family typewriter
19179 cua
19180 \family default
19181  bind file.
19182  Open the error boxes by clicking on them with the mouse, or use the shortcut
19183  key 
19184 \family sans
19185 C-i
19186 \family default
19187  from 
19188 \family typewriter
19189 cua
19190 \family default
19191  bindings, or the corresponding 
19192 \family sans
19193 C-o
19194 \family default
19195  for the alternate 
19196 \family typewriter
19197 emacs
19198 \family default
19199  bind file.
19200  Read the warning and correct the mistake, if it is a mistake.
19201  If you have trouble understanding what the warning is about, you can safely
19202  ignore it.
19203  Remember that there is a hidden layer between the document on screen and
19204  the technical details in invoking 
19205 \family sans
19206 Chk\SpecialChar TeX
19207
19208 \family default
19209 , and this gap can make some warnings seem arcane or just plain silly.
19210 \end_layout
19211
19212 \begin_layout Standard
19213 This document is an excellent testing bed for the feature, and it should
19214  provide quite a few warnings for you to fiddle with.
19215  Since computers are only so smart, expect most of the warnings to be false
19216  alarms, though.
19217 \end_layout
19218
19219 \begin_layout Subsection
19220 How to fine tune it
19221 \end_layout
19222
19223 \begin_layout Standard
19224 Sometimes, you'll find that 
19225 \family sans
19226 Chk\SpecialChar TeX
19227
19228 \family default
19229  makes more noise than suits your mood.
19230  Then you can choose not to use it, wait until your mood changes, or try
19231  to customize 
19232 \family sans
19233 Chk\SpecialChar TeX
19234
19235 \family default
19236  to get better along with you.
19237 \end_layout
19238
19239 \begin_layout Standard
19240 Although 
19241 \family sans
19242 Chk\SpecialChar TeX
19243
19244 \family default
19245  
19246 \emph on
19247 is
19248 \emph default
19249  very configurable and extensible, you should not expect to solve all problems
19250  with 
19251 \family sans
19252 Chk\SpecialChar TeX
19253
19254 \family default
19255  in \SpecialChar LyX
19256  this way.
19257  Since \SpecialChar LyX
19258  has to generate a somewhat special \SpecialChar LaTeX
19259  file to be able to match the
19260  line numbers from the 
19261 \family sans
19262 Chk\SpecialChar TeX
19263
19264 \family default
19265  output
19266 \begin_inset Foot
19267 status collapsed
19268
19269 \begin_layout Plain Layout
19270 You can inspect the specific output from 
19271 \family sans
19272 chktex
19273 \family default
19274  by using 
19275 \family sans
19276 Document\SpecialChar menuseparator
19277 \SpecialChar LaTeX
19278
19279 \begin_inset space ~
19280 \end_inset
19281
19282 Log
19283 \family default
19284  right after a 
19285 \family sans
19286 chktex
19287 \family default
19288  run.
19289 \end_layout
19290
19291 \end_inset
19292
19293  to the internal document structure, some of the warnings will not appear
19294  correctly.
19295  There are two things you can do about this:
19296 \end_layout
19297
19298 \begin_layout Itemize
19299 Fine tune the 
19300 \family sans
19301 Chk\SpecialChar TeX
19302
19303 \family default
19304  invocation command line in 
19305 \begin_inset Flex Noun
19306 status collapsed
19307
19308 \begin_layout Plain Layout
19309 Tools\SpecialChar menuseparator
19310 Preferences\SpecialChar menuseparator
19311 Output\SpecialChar menuseparator
19312 LaTeX\SpecialChar menuseparator
19313 CheckTeX command
19314 \end_layout
19315
19316 \end_inset
19317
19318 , or the global 
19319 \family sans
19320 Chk\SpecialChar TeX
19321
19322 \family default
19323  installation configuration file (usually with the file 
19324 \family typewriter
19325 chktexrc
19326 \family default
19327 ).
19328  See below to learn what warnings can be enabled and disabled on the command
19329  line.
19330 \end_layout
19331
19332 \begin_layout Itemize
19333 Export your document as a raw \SpecialChar LaTeX
19334  file using 
19335 \family sans
19336 File\SpecialChar menuseparator
19337 Export\SpecialChar menuseparator
19338 \SpecialChar LaTeX
19339
19340 \family default
19341  and run 
19342 \family typewriter
19343 chktex
19344 \family default
19345  manually on that.
19346  Invoked in this way, it can be a hassle to find the corresponding place
19347  in the document inside \SpecialChar LyX
19348 , but with a little patience, you should be able
19349  to do it.
19350 \end_layout
19351
19352 \begin_layout Standard
19353 Here follows the warning messages that can be enabled and disabled in 
19354 \family sans
19355 Preferences
19356 \family default
19357 .
19358  Use 
19359 \family typewriter
19360 -n#
19361 \family default
19362  to disable a warning, and 
19363 \family typewriter
19364 -w#
19365 \family default
19366  to enable a warning.
19367  The emphasized entries are disabled by default, because the default is
19368  "
19369 \family typewriter
19370 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19371 \family default
19372 ".
19373 \end_layout
19374
19375 \begin_layout Standard
19376 Notice that you should only use the options that enable and disable warnings,
19377  because \SpecialChar LyX
19378  relies on some of the other command line parameters to be set
19379  in a specific way to have a chance to communicate with 
19380 \family typewriter
19381 chktex
19382 \family default
19383 .
19384 \end_layout
19385
19386 \begin_layout Enumerate
19387
19388 \size small
19389 \emph on
19390 Command terminated with space.
19391 \end_layout
19392
19393 \begin_layout Enumerate
19394
19395 \size small
19396 Non-breaking space (
19397 \begin_inset Quotes eld
19398 \end_inset
19399
19400
19401 \family typewriter
19402 ~
19403 \family default
19404
19405 \begin_inset Quotes erd
19406 \end_inset
19407
19408 ) should have been used.
19409 \end_layout
19410
19411 \begin_layout Enumerate
19412
19413 \size small
19414 \emph on
19415 You should enclose the previous parenthesis with 
19416 \begin_inset Quotes eld
19417 \end_inset
19418
19419
19420 \family typewriter
19421 {}
19422 \family default
19423
19424 \begin_inset Quotes erd
19425 \end_inset
19426
19427 .
19428 \end_layout
19429
19430 \begin_layout Enumerate
19431
19432 \size small
19433 Italic correction (
19434 \begin_inset Quotes eld
19435 \end_inset
19436
19437
19438 \family typewriter
19439
19440 \backslash
19441 /
19442 \family default
19443
19444 \begin_inset Quotes erd
19445 \end_inset
19446
19447 ) found in non-italic buffer.
19448 \end_layout
19449
19450 \begin_layout Enumerate
19451
19452 \size small
19453 Italic correction (
19454 \begin_inset Quotes eld
19455 \end_inset
19456
19457
19458 \family typewriter
19459
19460 \backslash
19461 /
19462 \family default
19463
19464 \begin_inset Quotes erd
19465 \end_inset
19466
19467 ) found more than once.
19468 \end_layout
19469
19470 \begin_layout Enumerate
19471
19472 \size small
19473 \emph on
19474 No italic correction (
19475 \begin_inset Quotes eld
19476 \end_inset
19477
19478
19479 \family typewriter
19480
19481 \backslash
19482 /
19483 \family default
19484
19485 \begin_inset Quotes erd
19486 \end_inset
19487
19488 ) found.
19489 \end_layout
19490
19491 \begin_layout Enumerate
19492
19493 \size small
19494 Accent command 
19495 \begin_inset Quotes eld
19496 \end_inset
19497
19498
19499 \family typewriter
19500 cmd
19501 \family default
19502
19503 \begin_inset Quotes erd
19504 \end_inset
19505
19506  needs use of 
19507 \begin_inset Quotes eld
19508 \end_inset
19509
19510
19511 \family typewriter
19512 cmd
19513 \family default
19514
19515 \begin_inset Quotes erd
19516 \end_inset
19517
19518 .
19519 \end_layout
19520
19521 \begin_layout Enumerate
19522
19523 \size small
19524 Wrong length of dash may have been used.
19525 \end_layout
19526
19527 \begin_layout Enumerate
19528
19529 \size small
19530 \emph on
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  expected, found 
19543 \begin_inset Quotes eld
19544 \end_inset
19545
19546
19547 \family typewriter
19548 %s
19549 \family default
19550
19551 \begin_inset Quotes erd
19552 \end_inset
19553
19554 .
19555 \end_layout
19556
19557 \begin_layout Enumerate
19558
19559 \size small
19560 Solo 
19561 \begin_inset Quotes eld
19562 \end_inset
19563
19564
19565 \family typewriter
19566 %s
19567 \family default
19568
19569 \begin_inset Quotes erd
19570 \end_inset
19571
19572  found.
19573 \end_layout
19574
19575 \begin_layout Enumerate
19576
19577 \size small
19578 You should use 
19579 \begin_inset Quotes eld
19580 \end_inset
19581
19582
19583 \family typewriter
19584 %s
19585 \family default
19586
19587 \begin_inset Quotes erd
19588 \end_inset
19589
19590  to achieve an ellipsis.
19591 \end_layout
19592
19593 \begin_layout Enumerate
19594
19595 \size small
19596 Inter-word spacing (
19597 \begin_inset Quotes eld
19598 \end_inset
19599
19600
19601 \family typewriter
19602
19603 \backslash
19604
19605 \family default
19606  
19607 \begin_inset Quotes eld
19608 \end_inset
19609
19610 ) should perhaps be used.
19611 \end_layout
19612
19613 \begin_layout Enumerate
19614
19615 \size small
19616 Inter-sentence spacing (
19617 \begin_inset Quotes eld
19618 \end_inset
19619
19620
19621 \family typewriter
19622
19623 \backslash
19624 @
19625 \family default
19626
19627 \begin_inset Quotes erd
19628 \end_inset
19629
19630 ) should perhaps be used.
19631 \end_layout
19632
19633 \begin_layout Enumerate
19634
19635 \size small
19636 Could not find argument for command.
19637 \end_layout
19638
19639 \begin_layout Enumerate
19640
19641 \size small
19642 No match found for 
19643 \begin_inset Quotes eld
19644 \end_inset
19645
19646
19647 \family typewriter
19648 %s
19649 \family default
19650
19651 \begin_inset Quotes erd
19652 \end_inset
19653
19654 .
19655 \end_layout
19656
19657 \begin_layout Enumerate
19658
19659 \size small
19660 Math mode still on at end of \SpecialChar LaTeX
19661  file.
19662 \end_layout
19663
19664 \begin_layout Enumerate
19665
19666 \size small
19667 Number of 
19668 \begin_inset Quotes eld
19669 \end_inset
19670
19671
19672 \family typewriter
19673 char
19674 \family default
19675
19676 \begin_inset Quotes erd
19677 \end_inset
19678
19679  doesn't match the number of 
19680 \begin_inset Quotes eld
19681 \end_inset
19682
19683
19684 \family typewriter
19685 char
19686 \family default
19687
19688 \begin_inset Quotes erd
19689 \end_inset
19690
19691 .
19692 \end_layout
19693
19694 \begin_layout Enumerate
19695
19696 \size small
19697 You should use either 
19698 \family typewriter
19699
19700 \begin_inset Quotes eld
19701 \end_inset
19702
19703
19704 \family default
19705  or 
19706 \family typewriter
19707
19708 \begin_inset Quotes erd
19709 \end_inset
19710
19711
19712 \family default
19713  as an alternative to 
19714 \begin_inset Quotes eld
19715 \end_inset
19716
19717
19718 \family typewriter
19719 "
19720 \family default
19721
19722 \begin_inset Quotes erd
19723 \end_inset
19724
19725 .
19726 \end_layout
19727
19728 \begin_layout Enumerate
19729
19730 \size small
19731 You should use "
19732 \family typewriter
19733 '
19734 \family default
19735 " (ASCII 39) instead of "
19736 \family typewriter
19737 ´
19738 \family default
19739 " (ASCII 180).
19740 \end_layout
19741
19742 \begin_layout Enumerate
19743
19744 \size small
19745 User-specified pattern found.
19746 \end_layout
19747
19748 \begin_layout Enumerate
19749
19750 \size small
19751 This command might not be intended.
19752 \end_layout
19753
19754 \begin_layout Enumerate
19755
19756 \size small
19757 \emph on
19758 Comment displayed.
19759 \end_layout
19760
19761 \begin_layout Enumerate
19762
19763 \size small
19764 Either 
19765 \family typewriter
19766 ''
19767 \backslash
19768 ,'
19769 \family default
19770  or 
19771 \family typewriter
19772 '
19773 \backslash
19774 ,''
19775 \family default
19776  will look better.
19777 \end_layout
19778
19779 \begin_layout Enumerate
19780
19781 \size small
19782 Delete this space to maintain correct page references.
19783 \end_layout
19784
19785 \begin_layout Enumerate
19786
19787 \size small
19788 \emph on
19789 You might wish to put this between a pair of 
19790 \begin_inset Quotes eld
19791 \end_inset
19792
19793
19794 \family typewriter
19795 {}
19796 \family default
19797
19798 \begin_inset Quotes erd
19799 \end_inset
19800
19801 .
19802 \end_layout
19803
19804 \begin_layout Enumerate
19805
19806 \size small
19807 You ought to remove spaces in front of punctuation.
19808 \end_layout
19809
19810 \begin_layout Enumerate
19811
19812 \size small
19813 Could not execute \SpecialChar LaTeX
19814  command.
19815 \end_layout
19816
19817 \begin_layout Enumerate
19818
19819 \size small
19820 Don't use 
19821 \family typewriter
19822
19823 \backslash
19824 /
19825 \family default
19826  in front of small punctuation.
19827 \end_layout
19828
19829 \begin_layout Enumerate
19830
19831 \family typewriter
19832 \size small
19833 $
19834 \backslash
19835 times$
19836 \family default
19837  may look prettier here.
19838 \end_layout
19839
19840 \begin_layout Enumerate
19841
19842 \size small
19843 \emph on
19844 Multiple spaces detected in output.
19845 \end_layout
19846
19847 \begin_layout Enumerate
19848
19849 \size small
19850 This text may be ignored.
19851 \end_layout
19852
19853 \begin_layout Enumerate
19854
19855 \size small
19856 Use 
19857 \family typewriter
19858
19859 \begin_inset Quotes eld
19860 \end_inset
19861
19862
19863 \family default
19864  to begin quotation, not 
19865 \family typewriter
19866 '
19867 \family default
19868 .
19869 \end_layout
19870
19871 \begin_layout Enumerate
19872
19873 \size small
19874 Use 
19875 \family typewriter
19876 '
19877 \family default
19878  to end quotation, not 
19879 \family typewriter
19880
19881 \begin_inset Quotes eld
19882 \end_inset
19883
19884
19885 \family default
19886 .
19887 \end_layout
19888
19889 \begin_layout Enumerate
19890
19891 \size small
19892 Don't mix quotes.
19893 \end_layout
19894
19895 \begin_layout Enumerate
19896
19897 \size small
19898 You should perhaps use 
19899 \begin_inset Quotes eld
19900 \end_inset
19901
19902
19903 \family typewriter
19904 cmd
19905 \family default
19906
19907 \begin_inset Quotes erd
19908 \end_inset
19909
19910  instead.
19911 \end_layout
19912
19913 \begin_layout Enumerate
19914
19915 \size small
19916 You should put a space in front of/after parenthesis.
19917 \end_layout
19918
19919 \begin_layout Enumerate
19920
19921 \size small
19922 You should avoid spaces in front of/after parenthesis.
19923 \end_layout
19924
19925 \begin_layout Enumerate
19926
19927 \size small
19928 \emph on
19929 You should not use punctuation in front of/after quotes.
19930 \end_layout
19931
19932 \begin_layout Enumerate
19933
19934 \size small
19935 Double space found.
19936 \end_layout
19937
19938 \begin_layout Enumerate
19939
19940 \size small
19941 You should put punctuation outside inner/inside display math mode.
19942 \end_layout
19943
19944 \begin_layout Enumerate
19945
19946 \size small
19947 You ought to not use primitive \SpecialChar TeX
19948  in \SpecialChar LaTeX
19949  code.
19950 \end_layout
19951
19952 \begin_layout Enumerate
19953
19954 \size small
19955 You should remove spaces in front of 
19956 \begin_inset Quotes eld
19957 \end_inset
19958
19959
19960 \family typewriter
19961 %s
19962 \family default
19963
19964 \begin_inset Quotes erd
19965 \end_inset
19966
19967
19968 \end_layout
19969
19970 \begin_layout Enumerate
19971
19972 \size small
19973 \begin_inset Quotes eld
19974 \end_inset
19975
19976
19977 \family typewriter
19978 %s
19979 \family default
19980
19981 \begin_inset Quotes erd
19982 \end_inset
19983
19984  is normally not followed by 
19985 \begin_inset Quotes eld
19986 \end_inset
19987
19988
19989 \family typewriter
19990 %c
19991 \family default
19992
19993 \begin_inset Quotes erd
19994 \end_inset
19995
19996 .
19997 \end_layout
19998
19999 \begin_layout Standard
20000 In later versions of \SpecialChar LyX
20001 , we hope to provide a more complete interface to this
20002  tool (and it's smaller cousin 
20003 \family typewriter
20004 lacheck
20005 \family default
20006 ) to exploit the full power of it.
20007  But it's not exactly useless as it is now: go try it on one of your existing
20008  documents of a certain length and be surprised.
20009 \end_layout
20010
20011 \begin_layout Section
20012 Version Control in \SpecialChar LyX
20013
20014 \end_layout
20015
20016 \begin_layout Standard
20017 by
20018 \noun on
20019  Lars Gullik Bjønnes 
20020 \noun default
20021 and 
20022 \noun on
20023 Pavel Sanda
20024 \end_layout
20025
20026 \begin_layout Subsection
20027 Introduction
20028 \end_layout
20029
20030 \begin_layout Standard
20031 \SpecialChar LyX
20032  supports some of the most basic RCS/CVS/SVN/GIT commands.
20033  If you need something a bit more sophisticated you will have to do that
20034  manually in a terminal.
20035 \end_layout
20036
20037 \begin_layout Standard
20038 Also note that CVS support is not as good as subversion support so we advise
20039  using SVN instead.
20040  A good place to start learning Subversion is SVN Book
20041 \begin_inset Foot
20042 status collapsed
20043
20044 \begin_layout Plain Layout
20045 \begin_inset CommandInset href
20046 LatexCommand href
20047 target "http://svnbook.red-bean.com/"
20048 literal "false"
20049
20050 \end_inset
20051
20052
20053 \end_layout
20054
20055 \end_inset
20056
20057 .
20058  In the case of RCS you should read 
20059 \begin_inset Quotes eld
20060 \end_inset
20061
20062 rcsintro
20063 \begin_inset Quotes erd
20064 \end_inset
20065
20066  (a man file, read it with 
20067 \family typewriter
20068 man rcsintro
20069 \family default
20070 ).
20071  This file describes all the basic features of RCS.
20072  You should especially notice the comment about a RCS directory, and the
20073  notion of a master RCS file (the file ending in 
20074 \family typewriter
20075 ,v
20076 \family default
20077 ).
20078 \end_layout
20079
20080 \begin_layout Standard
20081 Before you begin to use the version control features in \SpecialChar LyX
20082 , you should be
20083  familiar with RCS/CVS/SVN/GIT usage.
20084  The implementation in \SpecialChar LyX
20085  assumes a recent version of the GNU RCS or CVS/SVN
20086  package — no guarantees are made for older versions.
20087  Most of the log messages are not currently displayed after operations —
20088  you can check them in the Messages pane if unsure.
20089  Regular users of version control will appreciate VC toolbar, which can
20090  be enabled via 
20091 \family sans
20092 View\SpecialChar menuseparator
20093 Toolbars\SpecialChar menuseparator
20094 Version
20095 \begin_inset space ~
20096 \end_inset
20097
20098 Control
20099 \family default
20100 .
20101 \end_layout
20102
20103 \begin_layout Standard
20104 For introducing your own external commands consult vc-command in the manual
20105  of \SpecialChar LyX
20106  functions.
20107 \end_layout
20108
20109 \begin_layout Standard
20110 It is strongly recommended to store documents in uncompressed format if
20111  using version control (uncheck 
20112 \family sans
20113 Document\SpecialChar menuseparator
20114 Compressed
20115 \family default
20116  if it is checked): Uncompressed LyX documents are text files and therefore
20117  for merging two different versions by version control systems.
20118  Compressed LyX documents are binary files, which cannot be merged by version
20119  control systems.
20120 \end_layout
20121
20122 \begin_layout Subsection
20123 RCS commands in \SpecialChar LyX
20124
20125 \end_layout
20126
20127 \begin_layout Standard
20128 The following sections describe the RCS commands supported by \SpecialChar LyX
20129 .
20130  You can find them in the 
20131 \family sans
20132 File\SpecialChar menuseparator
20133 Version
20134 \begin_inset space ~
20135 \end_inset
20136
20137 Control
20138 \family default
20139  submenu.
20140  \SpecialChar LyX
20141  was tested against RCS 5.7/5.8.
20142 \end_layout
20143
20144 \begin_layout Subsubsection
20145
20146 \family sans
20147 Register
20148 \end_layout
20149
20150 \begin_layout Standard
20151 If your document is not under revision control, this is the only item shown
20152  in the menu.
20153  And if it is under revision control, the 
20154 \family sans
20155 Register
20156 \family default
20157  item is not visible.
20158  
20159 \end_layout
20160
20161 \begin_layout Standard
20162 This command registers your document with RCS (unless you are under the
20163  directory managed by CVS)\SpecialChar endofsentence
20164  You are asked interactively to supply an initial
20165  description of the document.
20166  The document is now set in Read-Only mode and you have to 
20167 \family sans
20168 Check
20169 \begin_inset space ~
20170 \end_inset
20171
20172 Out
20173 \begin_inset space ~
20174 \end_inset
20175
20176 For
20177 \begin_inset space ~
20178 \end_inset
20179
20180 Edit
20181 \family default
20182 , before making any changes to it.
20183  A document under revision control has a 
20184 \begin_inset Quotes eld
20185 \end_inset
20186
20187 [RCS:<version> <locker>]
20188 \begin_inset Quotes erd
20189 \end_inset
20190
20191  item tagged to the filename in the minibuffer.
20192 \end_layout
20193
20194 \begin_layout Standard
20195 RCS command that is run: 
20196 \family typewriter
20197 ci -q -u -i -t-"<initial description>" <file-name>
20198 \end_layout
20199
20200 \begin_layout Standard
20201 Read 
20202 \family typewriter
20203 man ci
20204 \family default
20205  to understand the switches.
20206  
20207 \end_layout
20208
20209 \begin_layout Subsubsection
20210
20211 \family sans
20212 Check In Changes
20213 \end_layout
20214
20215 \begin_layout Standard
20216 When you are finished editing a file, you check in your changes.
20217  When you do this, you are asked for a description of the changes.
20218  This is stored in the history log.
20219  The version number is bumped, your changes are applied to the master RCS
20220  file, the document is unlocked and set to Read-Only mode.
20221 \end_layout
20222
20223 \begin_layout Standard
20224 RCS command: 
20225 \family typewriter
20226 ci -q -u -m"<description>" <file-name>
20227 \end_layout
20228
20229 \begin_layout Subsubsection
20230
20231 \family sans
20232 Check Out For Edit
20233 \end_layout
20234
20235 \begin_layout Standard
20236 By doing this you lock the document so that only you can edit it.
20237  This will also make the document Read-Write only for you.
20238  You will usually continue editing for a while and when you are finished
20239  you check in your changes.
20240  The status line is changed to reflect that you have locked the file.
20241 \end_layout
20242
20243 \begin_layout Standard
20244 RCS command: 
20245 \family typewriter
20246 co -q -l <file-name>
20247 \end_layout
20248
20249 \begin_layout Subsubsection
20250
20251 \family sans
20252 Revert To Repository Version
20253 \end_layout
20254
20255 \begin_layout Standard
20256 This will discard all changes made to the document since the last check
20257  in.
20258  You get a warning before changes are discarded.
20259 \end_layout
20260
20261 \begin_layout Standard
20262 RCS command: 
20263 \family typewriter
20264 co -f -u<version> <file-name>
20265 \end_layout
20266
20267 \begin_layout Subsubsection
20268
20269 \family sans
20270 Copy
20271 \end_layout
20272
20273 \begin_layout Standard
20274 This will create a copy of the current document.
20275  Since RCS does not support copy operations natively, the version history
20276  is not preserved, and the copy is added as a new file.
20277  It requires a clean document without any changes since the last checkin.
20278  You are asked for a file name and a description of the copy operation.
20279  After that the copy is created, both locally and in the repository.
20280  If the parent directories of the copied and original document differ, all
20281  relative paths of included files of the copy are adjusted (like in 
20282 \family sans
20283 File\SpecialChar menuseparator
20284 Save As
20285 \family default
20286 \SpecialChar ldots
20287 ).
20288  Finally, the copy is loaded instead of the original document.
20289 \end_layout
20290
20291 \begin_layout Labeling
20292 \labelwidthstring 00.00.0000
20293 RCS
20294 \begin_inset space ~
20295 \end_inset
20296
20297 commands: 
20298 \begin_inset space ~
20299 \end_inset
20300
20301
20302 \begin_inset Newline newline
20303 \end_inset
20304
20305 Copy 
20306 \begin_inset Flex Code
20307 status collapsed
20308
20309 \begin_layout Plain Layout
20310
20311 \family typewriter
20312 \begin_inset Quotes eld
20313 \end_inset
20314
20315 <file-name>
20316 \begin_inset Quotes erd
20317 \end_inset
20318
20319
20320 \end_layout
20321
20322 \end_inset
20323
20324  to 
20325 \begin_inset Flex Code
20326 status collapsed
20327
20328 \begin_layout Plain Layout
20329
20330 \family typewriter
20331 \begin_inset Quotes eld
20332 \end_inset
20333
20334 <new-file-name>
20335 \begin_inset Quotes erd
20336 \end_inset
20337
20338
20339 \end_layout
20340
20341 \end_inset
20342
20343
20344 \begin_inset Newline newline
20345 \end_inset
20346
20347
20348 \begin_inset Flex Code
20349 status collapsed
20350
20351 \begin_layout Plain Layout
20352 ci -q -u 
20353 \family typewriter
20354 -i 
20355 \begin_inset Quotes eld
20356 \end_inset
20357
20358 <new-file-name>
20359 \begin_inset Quotes erd
20360 \end_inset
20361
20362
20363 \end_layout
20364
20365 \end_inset
20366
20367
20368 \end_layout
20369
20370 \begin_layout Subsubsection
20371
20372 \family sans
20373 Undo Last Checkin
20374 \end_layout
20375
20376 \begin_layout Standard
20377 This makes as if the last check in never happened.
20378  No changes are made to the document loaded into \SpecialChar LyX
20379 , but the last version
20380  is removed from the master RCS file.
20381 \end_layout
20382
20383 \begin_layout Standard
20384 RCS command: 
20385 \family typewriter
20386 rcs -o<version> <file-name>
20387 \end_layout
20388
20389 \begin_layout Subsubsection
20390
20391 \family sans
20392 Show History
20393 \end_layout
20394
20395 \begin_layout Standard
20396 This shows the complete history of the RCS document.
20397  The output of 
20398 \family typewriter
20399 rlog <file-name>
20400 \family default
20401  is shown in a browser.
20402  See 
20403 \family typewriter
20404 man rlog
20405 \family default
20406  for more info.
20407 \end_layout
20408
20409 \begin_layout Subsubsection
20410 Revision info
20411 \end_layout
20412
20413 \begin_layout Standard
20414 \SpecialChar LyX
20415  supports RCS version number, author name, date and time of last commit.
20416  All those are extracted from 
20417 \family typewriter
20418 rlog -r <file-name>
20419 \family default
20420 .
20421  See 
20422 \begin_inset CommandInset ref
20423 LatexCommand ref
20424 reference "subsec:VCS-Revision-Information"
20425
20426 \end_inset
20427
20428  for details.
20429 \end_layout
20430
20431 \begin_layout Subsection
20432 CVS commands in \SpecialChar LyX
20433
20434 \end_layout
20435
20436 \begin_layout Standard
20437 A subset of CVS operations is supported by \SpecialChar LyX
20438 .
20439  You can find the commands in the 
20440 \family sans
20441 File\SpecialChar menuseparator
20442 Version
20443 \begin_inset space ~
20444 \end_inset
20445
20446 Control
20447 \family default
20448  submenu.
20449  The version control system SVN is more powerful, so please use it instead
20450  of CVS if possible.
20451 \end_layout
20452
20453 \begin_layout Subsubsection
20454
20455 \family sans
20456 General CVS usage
20457 \end_layout
20458
20459 \begin_layout Standard
20460 If you start from scratch with CVS you have to create your repository and
20461  checkout the working copy with external tools.
20462  If you're using a client-server setup you may need to login before doing
20463  the first repository checkout.
20464 \end_layout
20465
20466 \begin_layout Standard
20467 If your documents are under revision control and others are using the same
20468  repository problems arise when different changes to the same document at
20469  the same location happen.
20470  Standard CVS repositories don't operate with a file locking mechanism.
20471  This may be surprising, but conflicts only occur if people disagree on
20472  the proper content of the same part of a document.
20473  So, if co-workers are used to communicate regularly, these conflicts occur
20474  rarely.
20475  If they don't communicate they have a fundamental problem anyway.
20476  Nevertheless some people like to work with so called 
20477 \begin_inset Quotes eld
20478 \end_inset
20479
20480 reserved checkouts
20481 \begin_inset Quotes erd
20482 \end_inset
20483
20484 .
20485  If they do so the working copy of all files is readonly when checked out
20486  first and the user starts editing after using a special command to make
20487  the working copy writable.
20488  When the changes are checked in the working copy returns to readonly state.
20489  With \SpecialChar LyX
20490  one has to edit the 
20491 \begin_inset Flex Code
20492 status collapsed
20493
20494 \begin_layout Plain Layout
20495 .cvsrc
20496 \end_layout
20497
20498 \end_inset
20499
20500  file and add the line 
20501 \begin_inset Flex Code
20502 status collapsed
20503
20504 \begin_layout Plain Layout
20505 cvs -r
20506 \end_layout
20507
20508 \end_inset
20509
20510  to work with reserved checkouts.
20511  The benefit is the possibility to see who is using a writable copy of some
20512  document.
20513  It's not guaranteed only one user makes a copy writable.
20514 \end_layout
20515
20516 \begin_layout Standard
20517 \SpecialChar LyX
20518  tries to guess if you're using reserved or non-reserved checkouts.
20519  If your working copy is readonly or it is writable and an additional copy
20520  of your document exists in the CVS/Base sub-directory a reserved otherwise
20521  a non-reserved checkout is assumed.
20522  When a reserved checkout is detected you have to use 
20523 \begin_inset Flex Noun
20524 status collapsed
20525
20526 \begin_layout Plain Layout
20527 Check Out
20528 \end_layout
20529
20530 \end_inset
20531
20532  to make your working copy writable if it's readonly.
20533  After doing so the 
20534 \begin_inset Flex Noun
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538 Check In
20539 \end_layout
20540
20541 \end_inset
20542
20543  operation is possible and that makes your working copy readonly again after
20544  transferring your changes to the repository.
20545 \end_layout
20546
20547 \begin_layout Standard
20548 More information about CVS can be found here 
20549 \begin_inset Flex URL
20550 status collapsed
20551
20552 \begin_layout Plain Layout
20553
20554 http://www.nongnu.org/cvs
20555 \end_layout
20556
20557 \end_inset
20558
20559  and here 
20560 \begin_inset Flex URL
20561 status collapsed
20562
20563 \begin_layout Plain Layout
20564
20565 http://ximbiot.com/cvs
20566 \end_layout
20567
20568 \end_inset
20569
20570 .
20571 \end_layout
20572
20573 \begin_layout Standard
20574 Read 
20575 \family typewriter
20576 man cvs
20577 \family default
20578  to understand the sub-commands and the switches mentioned below.
20579 \end_layout
20580
20581 \begin_layout Subsubsection
20582
20583 \family sans
20584 Register
20585 \end_layout
20586
20587 \begin_layout Standard
20588 If your document is not under revision control, this is the only item shown
20589  in the menu.
20590  And if it is under revision control, the 
20591 \family sans
20592 Register
20593 \family default
20594  item is not visible.
20595  
20596 \end_layout
20597
20598 \begin_layout Standard
20599 This command registers in CVS your document 
20600 \begin_inset Flex Strong
20601 status collapsed
20602
20603 \begin_layout Plain Layout
20604
20605 \emph on
20606 only
20607 \end_layout
20608
20609 \end_inset
20610
20611  in the case you have already the documents directory under CVS control
20612  (in particular 
20613 \family typewriter
20614 CVS/Entries
20615 \family default
20616  file exists).
20617  This means you have to create or checkout the archive by yourself using
20618  external tools.
20619  (In case you forget that step \SpecialChar LyX
20620  registers the document with RCS.)
20621 \end_layout
20622
20623 \begin_layout Standard
20624 Then you are asked interactively to supply an initial description of the
20625  document.
20626  Don't forget that registered file is not yet checked in.
20627 \end_layout
20628
20629 \begin_layout Standard
20630 CVS command that is run: 
20631 \family typewriter
20632 cvs -q add -m"<entered message>" "<file-name>"
20633 \end_layout
20634
20635 \begin_layout Standard
20636 The term 
20637 \family typewriter
20638 "<file-name>"
20639 \family default
20640  above and for all other CVS commands is an abbreviation for 
20641 \begin_inset Quotes eld
20642 \end_inset
20643
20644 change the current working directory to file location and use the file name
20645  without path component as argument
20646 \begin_inset Quotes erd
20647 \end_inset
20648
20649 .
20650 \end_layout
20651
20652 \begin_layout Subsubsection
20653
20654 \family sans
20655 Check In Changes
20656 \end_layout
20657
20658 \begin_layout Standard
20659 When you are finished editing a file, you commit your changes.
20660  When you do this and you had changed the document, you are asked for a
20661  description of the changes.
20662  After that changes are written to the repository.
20663  In case you didn't change the document and a reserved checkout is detected
20664  the reservation made on 
20665 \begin_inset Flex Noun
20666 status collapsed
20667
20668 \begin_layout Plain Layout
20669 Check Out
20670 \end_layout
20671
20672 \end_inset
20673
20674  is undone.
20675 \end_layout
20676
20677 \begin_layout Labeling
20678 \labelwidthstring 00.00.0000
20679 CVS
20680 \begin_inset space ~
20681 \end_inset
20682
20683 command: 
20684 \begin_inset space ~
20685 \end_inset
20686
20687
20688 \begin_inset Newline newline
20689 \end_inset
20690
20691
20692 \begin_inset Flex Code
20693 status collapsed
20694
20695 \begin_layout Plain Layout
20696 cvs 
20697 \family typewriter
20698 -q commit -m"<description>" "<file-name>"
20699 \end_layout
20700
20701 \end_inset
20702
20703  or
20704 \begin_inset Newline newline
20705 \end_inset
20706
20707
20708 \begin_inset Flex Code
20709 status collapsed
20710
20711 \begin_layout Plain Layout
20712 cvs -q unedit 
20713 \family typewriter
20714 "<file-name>"
20715 \end_layout
20716
20717 \end_inset
20718
20719
20720 \end_layout
20721
20722 \begin_layout Subsubsection
20723
20724 \family sans
20725 Check Out Changes
20726 \end_layout
20727
20728 \begin_layout Standard
20729 When you are sharing a repository with others, you may have to incorporate
20730  their changes into your working copy.
20731 \end_layout
20732
20733 \begin_layout Standard
20734 CVS command: 
20735 \family typewriter
20736 cvs -q update "<file-name>"
20737 \end_layout
20738
20739 \begin_layout Standard
20740 If a readonly checkout is detected the working copy is made writable and
20741  reserved.
20742 \end_layout
20743
20744 \begin_layout Standard
20745 CVS command: 
20746 \family typewriter
20747 cvs -q edit "<file-name>"
20748 \end_layout
20749
20750 \begin_layout Subsubsection
20751
20752 \family sans
20753 Revert To Repository Version
20754 \end_layout
20755
20756 \begin_layout Standard
20757 This will discard all changes made to the document since the last check
20758  in.
20759  You get a warning before changes are discarded.
20760  Firstly the file is deleted, secondly CVS update command is run.
20761 \end_layout
20762
20763 \begin_layout Standard
20764 CVS command: 
20765 \family typewriter
20766 cvs -q update "<file-name>"
20767 \end_layout
20768
20769 \begin_layout Standard
20770 If a reserved checkout is detected and the working copy has no changes only
20771  the reservation is undone.
20772 \end_layout
20773
20774 \begin_layout Standard
20775 CVS command: 
20776 \family typewriter
20777 cvs -q unedit "<file-name>"
20778 \end_layout
20779
20780 \begin_layout Subsubsection
20781
20782 \family sans
20783 Copy
20784 \end_layout
20785
20786 \begin_layout Standard
20787 This will create a copy of the current document.
20788  Since CVS does not support copy operations natively, the version history
20789  is not preserved, and the copy is added as a new file.
20790  It requires a clean document without any changes since the last checkin.
20791  You are asked for a file name and a description of the copy operation.
20792  After that the copy is created, both locally and in the repository.
20793  If the parent directories of the copied and original document differ, all
20794  relative paths of included files of the copy are adjusted (like in 
20795 \family sans
20796 File\SpecialChar menuseparator
20797 Save As
20798 \family default
20799 \SpecialChar ldots
20800 ).
20801  Finally, the copy is loaded instead of the original document.
20802 \end_layout
20803
20804 \begin_layout Labeling
20805 \labelwidthstring 00.00.0000
20806 CVS
20807 \begin_inset space ~
20808 \end_inset
20809
20810 commands: 
20811 \begin_inset space ~
20812 \end_inset
20813
20814
20815 \begin_inset Newline newline
20816 \end_inset
20817
20818 Copy 
20819 \begin_inset Flex Code
20820 status collapsed
20821
20822 \begin_layout Plain Layout
20823
20824 \family typewriter
20825 \begin_inset Quotes eld
20826 \end_inset
20827
20828 <file-name>
20829 \begin_inset Quotes erd
20830 \end_inset
20831
20832
20833 \end_layout
20834
20835 \end_inset
20836
20837  to 
20838 \begin_inset Flex Code
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842
20843 \family typewriter
20844 \begin_inset Quotes eld
20845 \end_inset
20846
20847 <new-file-name>
20848 \begin_inset Quotes erd
20849 \end_inset
20850
20851
20852 \end_layout
20853
20854 \end_inset
20855
20856
20857 \begin_inset Newline newline
20858 \end_inset
20859
20860
20861 \begin_inset Flex Code
20862 status collapsed
20863
20864 \begin_layout Plain Layout
20865 cvs -q add 
20866 \family typewriter
20867
20868 \begin_inset Quotes eld
20869 \end_inset
20870
20871 <new-file-name>
20872 \begin_inset Quotes erd
20873 \end_inset
20874
20875
20876 \end_layout
20877
20878 \end_inset
20879
20880
20881 \end_layout
20882
20883 \begin_layout Subsubsection
20884
20885 \family sans
20886 Rename
20887 \end_layout
20888
20889 \begin_layout Standard
20890 This will rename the current document.
20891  Since CVS does not support rename operations natively, the version history
20892  is not preserved, the renamed document is added as a new file, and the
20893  original document is deleted.
20894  It requires a clean document without any changes since the last checkin.
20895  You are asked for a file name and a description of the rename operation.
20896  After that the document is renamed, both locally and in the repository.
20897  If the parent directories of the new and old file names differ, all relative
20898  paths of included files are adjusted (like in 
20899 \family sans
20900 File\SpecialChar menuseparator
20901 Save As
20902 \family default
20903 \SpecialChar ldots
20904 ).
20905  Finally, the document is reloaded using the new name.
20906 \end_layout
20907
20908 \begin_layout Labeling
20909 \labelwidthstring 00.00.0000
20910 CVS
20911 \begin_inset space ~
20912 \end_inset
20913
20914 commands: 
20915 \begin_inset space ~
20916 \end_inset
20917
20918
20919 \begin_inset Newline newline
20920 \end_inset
20921
20922 Rename 
20923 \begin_inset Flex Code
20924 status collapsed
20925
20926 \begin_layout Plain Layout
20927
20928 \family typewriter
20929 \begin_inset Quotes eld
20930 \end_inset
20931
20932 <file-name>
20933 \begin_inset Quotes erd
20934 \end_inset
20935
20936
20937 \end_layout
20938
20939 \end_inset
20940
20941  to 
20942 \begin_inset Flex Code
20943 status collapsed
20944
20945 \begin_layout Plain Layout
20946
20947 \family typewriter
20948 \begin_inset Quotes eld
20949 \end_inset
20950
20951 <new-file-name>
20952 \begin_inset Quotes erd
20953 \end_inset
20954
20955
20956 \end_layout
20957
20958 \end_inset
20959
20960
20961 \begin_inset Newline newline
20962 \end_inset
20963
20964
20965 \begin_inset Flex Code
20966 status collapsed
20967
20968 \begin_layout Plain Layout
20969 cvs -q add 
20970 \family typewriter
20971
20972 \begin_inset Quotes eld
20973 \end_inset
20974
20975 <new-file-name>
20976 \begin_inset Quotes erd
20977 \end_inset
20978
20979
20980 \end_layout
20981
20982 \end_inset
20983
20984
20985 \begin_inset Newline newline
20986 \end_inset
20987
20988
20989 \begin_inset Flex Code
20990 status collapsed
20991
20992 \begin_layout Plain Layout
20993 cvs -q remove 
20994 \family typewriter
20995
20996 \begin_inset Quotes eld
20997 \end_inset
20998
20999 <file-name>
21000 \begin_inset Quotes erd
21001 \end_inset
21002
21003
21004 \end_layout
21005
21006 \end_inset
21007
21008
21009 \end_layout
21010
21011 \begin_layout Subsubsection
21012 Update of the local directory checkout from repository
21013 \end_layout
21014
21015 \begin_layout Standard
21016 Once your documents gets more complex, containing sub-documents and pictures,
21017  including external 
21018 \begin_inset Flex Code
21019 status collapsed
21020
21021 \begin_layout Plain Layout
21022 .tex
21023 \end_layout
21024
21025 \end_inset
21026
21027  files and so on using version control becomes more complicated.
21028  \SpecialChar LyX
21029  supports updating the whole tree in which resides the document.
21030  This become especially useful once you cooperate with people which neither
21031  have detailed knowledge about CVS usage nor they have ambition to commit
21032  additional material to the repository.
21033  You have to organize the files structure so that all external files are
21034  in the same directory or subdirectories of the document.
21035  It's good practice anyway to store multipart documents in an extra directory.
21036 \end_layout
21037
21038 \begin_layout Standard
21039 The 
21040 \begin_inset Flex Code
21041 status collapsed
21042
21043 \begin_layout Plain Layout
21044 Update local directory from repository
21045 \end_layout
21046
21047 \end_inset
21048
21049  command updates the whole directory.
21050  If local changes are detected user is warned before update starts.
21051  In case of merge conflicts both versions of the conflicting document parts
21052  are placed in the final document.
21053  You have to review and correct the result of the merge.
21054  You'll find the conflicts enclosed in pairs of 
21055 \begin_inset Flex Code
21056 status collapsed
21057
21058 \begin_layout Plain Layout
21059 <<<<<<<
21060 \end_layout
21061
21062 \end_inset
21063
21064  and 
21065 \begin_inset Flex Code
21066 status collapsed
21067
21068 \begin_layout Plain Layout
21069 >>>>>>>
21070 \end_layout
21071
21072 \end_inset
21073
21074  separated by 
21075 \begin_inset Flex Code
21076 status collapsed
21077
21078 \begin_layout Plain Layout
21079 =======
21080 \end_layout
21081
21082 \end_inset
21083
21084 .
21085  The first part is your version as before the update operation with the
21086  document name prepended.
21087  The second one is the repository version with the version number after
21088  the sequence of 
21089 \begin_inset Flex Code
21090 status collapsed
21091
21092 \begin_layout Plain Layout
21093 >
21094 \end_layout
21095
21096 \end_inset
21097
21098  signs.
21099 \end_layout
21100
21101 \begin_layout Labeling
21102 \labelwidthstring 00.00.0000
21103 CVS
21104 \begin_inset space ~
21105 \end_inset
21106
21107 commands: 
21108 \begin_inset space ~
21109 \end_inset
21110
21111
21112 \begin_inset Newline newline
21113 \end_inset
21114
21115
21116 \begin_inset Flex Code
21117 status collapsed
21118
21119 \begin_layout Plain Layout
21120 cd $path; cvs diff 
21121 \family typewriter
21122 "."
21123 \end_layout
21124
21125 \end_inset
21126
21127  (Ask if changes are detected.)
21128 \begin_inset Newline newline
21129 \end_inset
21130
21131
21132 \begin_inset Flex Code
21133 status collapsed
21134
21135 \begin_layout Plain Layout
21136 cd $path; cvs -q update 
21137 \family typewriter
21138 "."
21139 \end_layout
21140
21141 \end_inset
21142
21143
21144 \end_layout
21145
21146 \begin_layout Standard
21147 where 
21148 \begin_inset Flex Code
21149 status collapsed
21150
21151 \begin_layout Plain Layout
21152 $path
21153 \end_layout
21154
21155 \end_inset
21156
21157  stands for the path to the document.
21158 \end_layout
21159
21160 \begin_layout Subsubsection
21161
21162 \family sans
21163 Show History
21164 \end_layout
21165
21166 \begin_layout Standard
21167 This shows the complete history of the CVS document.
21168  The output of 
21169 \family typewriter
21170 cvs log "<file-name>"
21171 \family default
21172  is shown in a browser.
21173 \end_layout
21174
21175 \begin_layout Subsubsection
21176 Revision info
21177 \end_layout
21178
21179 \begin_layout Standard
21180 \SpecialChar LyX
21181  supports CVS version number, author name, date and time of last commit.
21182  All those are extracted from 
21183 \family typewriter
21184 cvs log -r <file-name>
21185 \family default
21186 .
21187  See 
21188 \begin_inset CommandInset ref
21189 LatexCommand ref
21190 reference "subsec:VCS-Revision-Information"
21191
21192 \end_inset
21193
21194  for details.
21195 \end_layout
21196
21197 \begin_layout Subsection
21198 SVN commands in \SpecialChar LyX
21199
21200 \end_layout
21201
21202 \begin_layout Standard
21203 SVN is now partially supported by \SpecialChar LyX
21204 .
21205  You can find the commands in the 
21206 \family sans
21207 File\SpecialChar menuseparator
21208 Version
21209 \begin_inset space ~
21210 \end_inset
21211
21212 Control
21213 \family default
21214  submenu.
21215  Please note that if you use password protected access to repository via
21216  ssh, you will be asked in terminal window.
21217  \SpecialChar LyX
21218  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21219 \begin_inset Foot
21220 status open
21221
21222 \begin_layout Plain Layout
21223 Most of the commands will work with 1.4 too, see 
21224 \begin_inset CommandInset ref
21225 LatexCommand ref
21226 reference "subsec:SVN-Repo-Update"
21227
21228 \end_inset
21229
21230 .
21231  There seems to be currently unresolved permissions problem under SVN 1.8
21232  with reverting changes when file is locked.
21233 \end_layout
21234
21235 \end_inset
21236
21237
21238 \end_layout
21239
21240 \begin_layout Subsubsection
21241
21242 \family sans
21243 Register
21244 \end_layout
21245
21246 \begin_layout Standard
21247 If your document is not under revision control, this is the only item shown
21248  in the menu.
21249  And if it is under revision control, the 
21250 \family sans
21251 Register
21252 \family default
21253  item is not visible.
21254 \end_layout
21255
21256 \begin_layout Standard
21257 This command registers in SVN your document ONLY in case you have already
21258  the documents directory under SVN control (in particular 
21259 \family typewriter
21260 .svn/entries
21261 \family default
21262  file exists).
21263  This means you have to checkout the archive by yourself.
21264 \end_layout
21265
21266 \begin_layout Standard
21267 Then you are asked interactively to supply an initial description of the
21268  document.
21269  Don't forget that registered file is not yet commited.
21270 \end_layout
21271
21272 \begin_layout Standard
21273 SVN command that is run: 
21274 \family typewriter
21275 svn add -q 
21276 \begin_inset Quotes eld
21277 \end_inset
21278
21279 <file-name>
21280 \begin_inset Quotes erd
21281 \end_inset
21282
21283
21284 \end_layout
21285
21286 \begin_layout Standard
21287 Read 
21288 \family typewriter
21289 man svn
21290 \family default
21291  to understand the switches.
21292 \end_layout
21293
21294 \begin_layout Subsubsection
21295
21296 \family sans
21297 Check In Changes
21298 \end_layout
21299
21300 \begin_layout Standard
21301 When you are finished editing a file, you commit your changes.
21302  When you do this, you are asked for a description of the changes.
21303  After that changes are commited.
21304 \end_layout
21305
21306 \begin_layout Standard
21307 SVN command:
21308 \begin_inset Foot
21309 status collapsed
21310
21311 \begin_layout Plain Layout
21312 In case locking is not enabled.
21313  See Section 
21314 \begin_inset CommandInset ref
21315 LatexCommand ref
21316 reference "subsec:SVN-File-Locking"
21317
21318 \end_inset
21319
21320 .
21321 \end_layout
21322
21323 \end_inset
21324
21325  
21326 \family typewriter
21327 svn commit -q -m"<description>" <file-name>
21328 \end_layout
21329
21330 \begin_layout Subsubsection
21331
21332 \family sans
21333 Check Out For Edit
21334 \end_layout
21335
21336 \begin_layout Standard
21337 Updates the changes of this file from the repository.
21338  Be sure you understand SVN merging and conflicts resolving before using
21339  this function, because all conflicts has to be resolved manually by you!
21340 \end_layout
21341
21342 \begin_layout Standard
21343 SVN command:
21344 \begin_inset Foot
21345 status collapsed
21346
21347 \begin_layout Plain Layout
21348 Ditto.
21349 \end_layout
21350
21351 \end_inset
21352
21353  
21354 \family typewriter
21355 svn update --non-interactive 
21356 \begin_inset Quotes eld
21357 \end_inset
21358
21359 <file-name>
21360 \begin_inset Quotes erd
21361 \end_inset
21362
21363
21364 \end_layout
21365
21366 \begin_layout Subsubsection
21367
21368 \family sans
21369 Revert To Repository Version
21370 \end_layout
21371
21372 \begin_layout Standard
21373 This will discard all changes made to the document since the last check
21374  in.
21375  You get a warning before changes are discarded.
21376 \end_layout
21377
21378 \begin_layout Standard
21379 SVN command: 
21380 \family typewriter
21381 svn revert -q 
21382 \begin_inset Quotes eld
21383 \end_inset
21384
21385 <file-name>
21386 \begin_inset Quotes erd
21387 \end_inset
21388
21389
21390 \end_layout
21391
21392 \begin_layout Subsubsection
21393
21394 \family sans
21395 Copy
21396 \end_layout
21397
21398 \begin_layout Standard
21399 This will create a copy of the current document including the version history.
21400  It requires a clean document without any changes since the last checkin.
21401  You are asked for a file name and a description of the copy operation.
21402  After that the copy is created, both locally and in the repository.
21403  If the parent directories of the copied and original document differ, all
21404  relative paths of included files of the copy are adjusted (like in 
21405 \family sans
21406 File\SpecialChar menuseparator
21407 Save As
21408 \family default
21409 \SpecialChar ldots
21410 ).
21411  Finally, the copy is loaded instead of the original document.
21412 \end_layout
21413
21414 \begin_layout Labeling
21415 \labelwidthstring 00.00.0000
21416 SVN
21417 \begin_inset space ~
21418 \end_inset
21419
21420 commands: 
21421 \begin_inset space ~
21422 \end_inset
21423
21424
21425 \begin_inset Newline newline
21426 \end_inset
21427
21428
21429 \begin_inset Flex Code
21430 status collapsed
21431
21432 \begin_layout Plain Layout
21433 svn copy -q 
21434 \family typewriter
21435
21436 \begin_inset Quotes eld
21437 \end_inset
21438
21439 <file-name>
21440 \begin_inset Quotes erd
21441 \end_inset
21442
21443  
21444 \begin_inset Quotes eld
21445 \end_inset
21446
21447 <new-file-name>
21448 \begin_inset Quotes erd
21449 \end_inset
21450
21451
21452 \end_layout
21453
21454 \end_inset
21455
21456
21457 \begin_inset Newline newline
21458 \end_inset
21459
21460
21461 \begin_inset Flex Code
21462 status collapsed
21463
21464 \begin_layout Plain Layout
21465 svn commit
21466 \end_layout
21467
21468 \end_inset
21469
21470
21471 \end_layout
21472
21473 \begin_layout Subsubsection
21474
21475 \family sans
21476 Rename
21477 \end_layout
21478
21479 \begin_layout Standard
21480 This will rename the current document including the version history.
21481  It requires a clean document without any changes since the last checkin.
21482  You are asked for a file name and a description of the rename operation.
21483  After that the document is renamed, both locally and in the repository.
21484  If the parent directories of the new and old file names differ, all relative
21485  paths of included files are adjusted (like in 
21486 \family sans
21487 File\SpecialChar menuseparator
21488 Save As
21489 \family default
21490 \SpecialChar ldots
21491 ).
21492  Finally, the document is reloaded using the new name.
21493 \end_layout
21494
21495 \begin_layout Labeling
21496 \labelwidthstring 00.00.0000
21497 SVN
21498 \begin_inset space ~
21499 \end_inset
21500
21501 commands: 
21502 \begin_inset space ~
21503 \end_inset
21504
21505
21506 \begin_inset Newline newline
21507 \end_inset
21508
21509
21510 \begin_inset Flex Code
21511 status collapsed
21512
21513 \begin_layout Plain Layout
21514 svn move -q 
21515 \family typewriter
21516
21517 \begin_inset Quotes eld
21518 \end_inset
21519
21520 <file-name>
21521 \begin_inset Quotes erd
21522 \end_inset
21523
21524  
21525 \begin_inset Quotes eld
21526 \end_inset
21527
21528 <new-file-name>
21529 \begin_inset Quotes erd
21530 \end_inset
21531
21532
21533 \end_layout
21534
21535 \end_inset
21536
21537
21538 \begin_inset Newline newline
21539 \end_inset
21540
21541
21542 \begin_inset Flex Code
21543 status collapsed
21544
21545 \begin_layout Plain Layout
21546 svn commit
21547 \end_layout
21548
21549 \end_inset
21550
21551
21552 \end_layout
21553
21554 \begin_layout Subsubsection
21555 \begin_inset CommandInset label
21556 LatexCommand label
21557 name "subsec:SVN-Repo-Update"
21558
21559 \end_inset
21560
21561 Update of the local directory checkout from repository
21562 \begin_inset Foot
21563 status collapsed
21564
21565 \begin_layout Plain Layout
21566 Note that this command will work only with subversion 
21567 \begin_inset Formula $\geqq1.5$
21568 \end_inset
21569
21570
21571 \end_layout
21572
21573 \end_inset
21574
21575
21576 \end_layout
21577
21578 \begin_layout Standard
21579 All the commands above have one shortcomming - they deal with the current
21580  document only.
21581  Once your document contains pictures, includes external 
21582 \begin_inset Flex Code
21583 status collapsed
21584
21585 \begin_layout Plain Layout
21586 .tex
21587 \end_layout
21588
21589 \end_inset
21590
21591  files and so on administration becomes more complicated.
21592  \SpecialChar LyX
21593  now supports updating the whole tree in which resides the document
21594 \begin_inset Foot
21595 status collapsed
21596
21597 \begin_layout Plain Layout
21598 One need to organize the files structure so that all external files are
21599  in the same directory or subdirectories of the document.
21600  
21601 \end_layout
21602
21603 \end_inset
21604
21605 .
21606  This become especially useful once you cooperate with people which neither
21607  know about subversion management nor they have ambition to commit additional
21608  material to the repository.
21609  
21610 \end_layout
21611
21612 \begin_layout Standard
21613 \begin_inset Flex Code
21614 status collapsed
21615
21616 \begin_layout Plain Layout
21617 Update local directory from repository
21618 \end_layout
21619
21620 \end_inset
21621
21622  command updates the whole directory and in case of merge conflicts local
21623  version of the files are left, so no unintended data loss occurs.
21624  If local changes are detected user is warned before update starts.
21625 \end_layout
21626
21627 \begin_layout Labeling
21628 \labelwidthstring 00.00.0000
21629 SVN
21630 \begin_inset space ~
21631 \end_inset
21632
21633 commands: 
21634 \begin_inset space ~
21635 \end_inset
21636
21637
21638 \begin_inset Newline newline
21639 \end_inset
21640
21641
21642 \begin_inset Flex Code
21643 status collapsed
21644
21645 \begin_layout Plain Layout
21646 svn diff $path
21647 \end_layout
21648
21649 \end_inset
21650
21651  (Ask if changes are detected.)
21652 \begin_inset Newline newline
21653 \end_inset
21654
21655
21656 \begin_inset Flex Code
21657 status collapsed
21658
21659 \begin_layout Plain Layout
21660 svn update –accept mine-full $path
21661 \end_layout
21662
21663 \end_inset
21664
21665
21666 \end_layout
21667
21668 \begin_layout Standard
21669 where 
21670 \begin_inset Flex Code
21671 status collapsed
21672
21673 \begin_layout Plain Layout
21674 $path
21675 \end_layout
21676
21677 \end_inset
21678
21679  stands for the path to the document.
21680 \end_layout
21681
21682 \begin_layout Subsubsection
21683
21684 \family sans
21685 Show History
21686 \end_layout
21687
21688 \begin_layout Standard
21689 This shows the complete history of the SVN document.
21690  The output of 
21691 \family typewriter
21692 svn log 
21693 \begin_inset Quotes eld
21694 \end_inset
21695
21696 <file-name>
21697 \begin_inset Quotes erd
21698 \end_inset
21699
21700
21701 \family default
21702  is shown in a browser.
21703 \end_layout
21704
21705 \begin_layout Subsubsection
21706 File Locking
21707 \begin_inset CommandInset label
21708 LatexCommand label
21709 name "subsec:SVN-File-Locking"
21710
21711 \end_inset
21712
21713
21714 \end_layout
21715
21716 \begin_layout Standard
21717 The file exchange through various revision control systems brings the problem
21718  of merge conflicts in case two different users try to edit the same (parts
21719  of) document.
21720  When such a conflict happens it needs manual resolving and one reasonable
21721  alternative is to provide some kind of locking mechanism, which guarantees
21722  that only one user is allowed to edit file at the given time.
21723 \end_layout
21724
21725 \begin_layout Standard
21726 SVN has two such mechanisms to provide mutual exclusivity for file access
21727  - locks and automatic setting of write permissions (see sec.
21728  
21729 \begin_inset CommandInset ref
21730 LatexCommand ref
21731 reference "subsec:Automatical-Locking-Property"
21732
21733 \end_inset
21734
21735 ) based on 
21736 \begin_inset Flex Code
21737 status collapsed
21738
21739 \begin_layout Plain Layout
21740 svn:needs-lock
21741 \end_layout
21742
21743 \end_inset
21744
21745  file svn property
21746 \begin_inset Foot
21747 status open
21748
21749 \begin_layout Plain Layout
21750 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21751 \end_layout
21752
21753 \end_inset
21754
21755 .
21756  If this property is detected for a given document \SpecialChar LyX
21757  starts to use SVN locks
21758  for document editing automatically and the whole check-in/out mechanism
21759  switches to the same regimen as for RCS.
21760  This in particular means there are two different modes of file use in \SpecialChar LyX
21761 :
21762 \end_layout
21763
21764 \begin_layout Itemize
21765 Unlocked state.
21766  The loaded file is in the read-only mode.
21767  For editing on needs to check-out.
21768  
21769 \emph on
21770 Check-out
21771 \emph default
21772  consists of updating from the repository and gaining write lock.
21773  If the lock is not possible to obtain, we remain in unlocked state.
21774 \end_layout
21775
21776 \begin_layout Itemize
21777 Locked state.
21778  The loaded file is in the 'normal' edit mode.
21779  No other user is allowed to edit the file.
21780  
21781 \emph on
21782 Check-in
21783 \emph default
21784  consists of commiting changes and releasing write-lock.
21785  If no changes have been made to the document, no commit will be produced
21786 \begin_inset Foot
21787 status collapsed
21788
21789 \begin_layout Plain Layout
21790 Don't be puzzled by the fact that you will be asked for commit message anyway.
21791 \end_layout
21792
21793 \end_inset
21794
21795  and only the write-lock will be released.
21796 \end_layout
21797
21798 \begin_layout Standard
21799 SVN commands:
21800 \end_layout
21801
21802 \begin_layout Labeling
21803 \labelwidthstring 00.00.0000
21804 Check-in:
21805 \family typewriter
21806  svn commit -q -m"<description>" "<file-name>"
21807 \begin_inset Newline newline
21808 \end_inset
21809
21810 svn unlock "<file-name>"
21811 \end_layout
21812
21813 \begin_layout Labeling
21814 \labelwidthstring 00.00.0000
21815 Check-out: 
21816 \family typewriter
21817 svn update "<file-name>"
21818 \begin_inset Newline newline
21819 \end_inset
21820
21821 svn lock "<file-name>"
21822 \end_layout
21823
21824 \begin_layout Subsubsection
21825
21826 \family typewriter
21827 \begin_inset CommandInset label
21828 LatexCommand label
21829 name "subsec:Automatical-Locking-Property"
21830
21831 \end_inset
21832
21833
21834 \family default
21835 Automatic Locking Property
21836 \end_layout
21837
21838 \begin_layout Standard
21839 The above mentioned automatic setting of write permissions of the .lyx file
21840  can be set through
21841 \family sans
21842  File\SpecialChar menuseparator
21843 Version
21844 \begin_inset space ~
21845 \end_inset
21846
21847 Control\SpecialChar menuseparator
21848 Toggle locking property
21849 \family default
21850 .
21851  This command is active only when the file is not locked on the svn server
21852  (i.e.
21853  you need to check-out before proceeding).
21854 \end_layout
21855
21856 \begin_layout Labeling
21857 \labelwidthstring 00.00.0000
21858 SVN
21859 \begin_inset space ~
21860 \end_inset
21861
21862 commands:
21863 \end_layout
21864
21865 \begin_layout Labeling
21866 \labelwidthstring 00.00.0000
21867 Set:
21868 \family typewriter
21869  svn propset svn:needs-lock ON "<file-name>"
21870 \end_layout
21871
21872 \begin_layout Labeling
21873 \labelwidthstring 00.00.0000
21874 Unset: 
21875 \family typewriter
21876 svn propdel svn:needs-lock "<file-name>"
21877 \end_layout
21878
21879 \begin_layout Subsubsection
21880 \begin_inset CommandInset label
21881 LatexCommand label
21882 name "subsec:VCS-Revision-Information"
21883
21884 \end_inset
21885
21886 Revision Information in Documents
21887 \end_layout
21888
21889 \begin_layout Standard
21890 There are more possibilities how to activate revision information in our
21891  document.
21892 \end_layout
21893
21894 \begin_layout Itemize
21895 \SpecialChar LyX
21896  supports directly:
21897 \end_layout
21898
21899 \begin_deeper
21900 \begin_layout Itemize
21901 tree revision information (
21902 \begin_inset Flex Code
21903 status collapsed
21904
21905 \begin_layout Plain Layout
21906 vcs-tree-revision
21907 \end_layout
21908
21909 \end_inset
21910
21911 ).
21912  The result is the output of the 
21913 \begin_inset Flex Code
21914 status collapsed
21915
21916 \begin_layout Plain Layout
21917 svnversion
21918 \end_layout
21919
21920 \end_inset
21921
21922  command, the following table gives you an idea, how to read the results.
21923 \end_layout
21924
21925 \begin_layout Standard
21926 \align center
21927 \begin_inset Tabular
21928 <lyxtabular version="3" rows="6" columns="2">
21929 <features tabularvalignment="middle">
21930 <column alignment="center" valignment="top">
21931 <column alignment="center" valignment="top">
21932 <row>
21933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21934 \begin_inset Text
21935
21936 \begin_layout Plain Layout
21937 Output
21938 \end_layout
21939
21940 \end_inset
21941 </cell>
21942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21943 \begin_inset Text
21944
21945 \begin_layout Plain Layout
21946 Meaning
21947 \end_layout
21948
21949 \end_inset
21950 </cell>
21951 </row>
21952 <row>
21953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21954 \begin_inset Text
21955
21956 \begin_layout Plain Layout
21957 4123:4168
21958 \end_layout
21959
21960 \end_inset
21961 </cell>
21962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21963 \begin_inset Text
21964
21965 \begin_layout Plain Layout
21966 mixed revision working copy
21967 \end_layout
21968
21969 \end_inset
21970 </cell>
21971 </row>
21972 <row>
21973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21974 \begin_inset Text
21975
21976 \begin_layout Plain Layout
21977 4168M
21978 \end_layout
21979
21980 \end_inset
21981 </cell>
21982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21983 \begin_inset Text
21984
21985 \begin_layout Plain Layout
21986 modified working copy
21987 \end_layout
21988
21989 \end_inset
21990 </cell>
21991 </row>
21992 <row>
21993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21994 \begin_inset Text
21995
21996 \begin_layout Plain Layout
21997 4123S
21998 \end_layout
21999
22000 \end_inset
22001 </cell>
22002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22003 \begin_inset Text
22004
22005 \begin_layout Plain Layout
22006 switched working copy
22007 \end_layout
22008
22009 \end_inset
22010 </cell>
22011 </row>
22012 <row>
22013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22014 \begin_inset Text
22015
22016 \begin_layout Plain Layout
22017 4123P
22018 \end_layout
22019
22020 \end_inset
22021 </cell>
22022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22023 \begin_inset Text
22024
22025 \begin_layout Plain Layout
22026 partial working copy, from a sparse checkout
22027 \end_layout
22028
22029 \end_inset
22030 </cell>
22031 </row>
22032 <row>
22033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22034 \begin_inset Text
22035
22036 \begin_layout Plain Layout
22037 4123:4168MS
22038 \end_layout
22039
22040 \end_inset
22041 </cell>
22042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22043 \begin_inset Text
22044
22045 \begin_layout Plain Layout
22046 mixed revision, modified, switched working copy
22047 \end_layout
22048
22049 \end_inset
22050 </cell>
22051 </row>
22052 </lyxtabular>
22053
22054 \end_inset
22055
22056
22057 \end_layout
22058
22059 \begin_layout Itemize
22060 file revision information.
22061  The result comes from parsing the output of 
22062 \begin_inset Flex Code
22063 status collapsed
22064
22065 \begin_layout Plain Layout
22066 svn
22067 \begin_inset space ~
22068 \end_inset
22069
22070 info
22071 \begin_inset space ~
22072 \end_inset
22073
22074 –xml
22075 \begin_inset space ~
22076 \end_inset
22077
22078 file.lyx
22079 \end_layout
22080
22081 \end_inset
22082
22083 .
22084  Supported flags are:
22085 \end_layout
22086
22087 \begin_deeper
22088 \begin_layout Itemize
22089 version number of the last commit (
22090 \begin_inset Flex Code
22091 status collapsed
22092
22093 \begin_layout Plain Layout
22094 vcs-revision
22095 \end_layout
22096
22097 \end_inset
22098
22099 )
22100 \end_layout
22101
22102 \begin_layout Itemize
22103 author of the last commit (
22104 \begin_inset Flex Code
22105 status collapsed
22106
22107 \begin_layout Plain Layout
22108 vcs-author
22109 \end_layout
22110
22111 \end_inset
22112
22113 )
22114 \end_layout
22115
22116 \begin_layout Itemize
22117 date of the last commit (
22118 \begin_inset Flex Code
22119 status collapsed
22120
22121 \begin_layout Plain Layout
22122 vcs-date
22123 \end_layout
22124
22125 \end_inset
22126
22127 )
22128 \end_layout
22129
22130 \begin_layout Itemize
22131 time of the last commit (
22132 \begin_inset Flex Code
22133 status collapsed
22134
22135 \begin_layout Plain Layout
22136 vcs-time
22137 \end_layout
22138
22139 \end_inset
22140
22141 )
22142 \end_layout
22143
22144 \end_deeper
22145 \begin_layout Standard
22146 You can obtain this info via InsetInfo (e.g.
22147  
22148 \begin_inset Flex Code
22149 status collapsed
22150
22151 \begin_layout Plain Layout
22152 info-insert buffer vcs-date
22153 \end_layout
22154
22155 \end_inset
22156
22157 ).
22158  The information will be available only when you have the file stored under
22159  svn managment (i.e.
22160  the 
22161 \begin_inset Flex Code
22162 status collapsed
22163
22164 \begin_layout Plain Layout
22165 .svn
22166 \end_layout
22167
22168 \end_inset
22169
22170  directory is available with your document).
22171 \end_layout
22172
22173 \end_deeper
22174 \begin_layout Itemize
22175 Another—a hacking one—possibility is to use svn keywords
22176 \begin_inset Foot
22177 status collapsed
22178
22179 \begin_layout Plain Layout
22180 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22181 \end_layout
22182
22183 \end_inset
22184
22185 .
22186  In short – you set file keywords property (e.g.
22187  
22188 \family sans
22189 svn propset svn:keywords 'Rev' file.lyx
22190 \family default
22191 ) and then paste keyword \SpecialChar TeX
22192  code
22193 \begin_inset Foot
22194 status collapsed
22195
22196 \begin_layout Plain Layout
22197 This is an easy way how to ensure that \SpecialChar LyX
22198  won't break the line in the middle
22199  of keyword tag.
22200 \end_layout
22201
22202 \end_inset
22203
22204  tag in your document (e.g.
22205  
22206 \begin_inset ERT
22207 status open
22208
22209 \begin_layout Plain Layout
22210
22211 $Rev$
22212 \end_layout
22213
22214 \end_inset
22215
22216 ).
22217  This way svn client will automatically substitute revision number (e.g.
22218  
22219 \begin_inset ERT
22220 status open
22221
22222 \begin_layout Plain Layout
22223
22224 $Rev: 59 $
22225 \end_layout
22226
22227 \end_inset
22228
22229 ) after each update and commit.
22230  There are more problems with this approach.
22231  Firstly, the '$' character is used in \SpecialChar TeX
22232  world for math equations, so any
22233  occurence of math formula 
22234 \begin_inset Formula $Rev$
22235 \end_inset
22236
22237  become 
22238 \begin_inset Formula $Rev:59$
22239 \end_inset
22240
22241  in your \SpecialChar LyX
22242  document.
22243  Similarly for other keywords like Id, Date, Author, etc.
22244  Secondly svn output is dependent on your locales, so its very easy that
22245  svn would produce some problematic strings once Date is used.
22246  Thirdly you get the whole 'Rev: 59' string in your document instead of
22247  the plain number.
22248  Until subversion implements user's custom keywords it will be hard to use
22249  this approach reliably or let \SpecialChar LyX
22250  to support it directly.
22251 \end_layout
22252
22253 \begin_layout Subsection
22254 SVN and Windows Environment
22255 \end_layout
22256
22257 \begin_layout Quote
22258 My inclination is to say that if the user cannot figure out the command
22259  line operations on their own fairly quickly, they would be well advised
22260  to use TortoiseSVN.
22261  —P.
22262  A.
22263  Rubin
22264 \end_layout
22265
22266 \begin_layout Subsubsection
22267 Preparation
22268 \end_layout
22269
22270 \begin_layout Standard
22271 In addition to installing \SpecialChar LyX
22272 , and having access to a Subversion repository,
22273  the user will need to install the Subversion client program.
22274  A Windows installer for the client program is available from 
22275 \begin_inset CommandInset href
22276 LatexCommand href
22277 name "CollabNet"
22278 target "http://www.collab.net/nonav/downloads/subversion/"
22279 literal "false"
22280
22281 \end_inset
22282
22283 .
22284  The user may also want to install 
22285 \begin_inset CommandInset href
22286 LatexCommand href
22287 name "TortoiseSVN"
22288 target "http://tortoisesvn.tigris.org/"
22289 literal "false"
22290
22291 \end_inset
22292
22293 , which integrates Subversion operations into the context (rightclick) menu
22294  of Windows Explorer.
22295  Operations done outside \SpecialChar LyX
22296  will typically be more convenient using the Explorer
22297  context menu.
22298  Note that TortoiseSVN is not a replacement for the client program, which
22299  is what \SpecialChar LyX
22300  itself will use.
22301 \end_layout
22302
22303 \begin_layout Subsubsection
22304 Bringing a document under Subversion control
22305 \end_layout
22306
22307 \begin_layout Standard
22308 Before a \SpecialChar LyX
22309  document can be brought under version control in Subversion, its
22310  parent directory needs to be under version control.
22311  If the document is being added to a project already in the repository,
22312  this is accomplished by checking the project out to the directory where
22313  the new document will be placed.
22314  If the project itself is not yet under version control (for instance, if
22315  this document starts a new project), the directory must be imported into
22316  the repository.
22317  This is done outside \SpecialChar LyX
22318 .
22319  Both import and checkout are easily accomplished from the Explorer context
22320  menu using TortoiseSVN, or alternatively can be done using the command
22321  line client at a DOS prompt.
22322  The procedure for importing the project using TortoiseSVN is described
22323  below, assuming an existing repository and a new project being started
22324  in 
22325 \family typewriter
22326 C:
22327 \backslash
22328 new project
22329 \family default
22330 .
22331  For information on using the Subversion client program, run 
22332 \family typewriter
22333 svn --help 
22334 \family default
22335 in a DOS shell.
22336 \end_layout
22337
22338 \begin_layout Enumerate
22339 Locate 
22340 \family typewriter
22341 C:
22342 \backslash
22343 new project 
22344 \family default
22345 in Windows Explorer, right click it, and select 
22346 \family sans
22347 TortoiseSVN\SpecialChar menuseparator
22348 Repo-browser
22349 \family default
22350 .
22351  If necessary, adjust the URL for the repository, then click OK.
22352 \end_layout
22353
22354 \begin_layout Enumerate
22355 Right click the level of the repository under which you want to place the
22356  new project folder (typically the top level) and click 
22357 \family sans
22358 Create folder
22359 \family default
22360  Supply a name for the project folder and click OK.
22361  Add a message for the log file if desired, then click OK again.
22362  The new project folder should appear in the repository.
22363  Finally, click OK again to exit the repository browser.
22364 \end_layout
22365
22366 \begin_layout Enumerate
22367 Once again right click 
22368 \family typewriter
22369 C:
22370 \backslash
22371 new project
22372 \family default
22373 , this time selecting SVN Checkout\SpecialChar ldots
22374  Select the URL of the project folder
22375  you just created in the repository, and set the checkout directory to 
22376 \family typewriter
22377 C:
22378 \backslash
22379 new project.
22380
22381 \family default
22382  Click OK.
22383  You will be warned about a non-empty folder; click OK to proceed.
22384  You should now have a 
22385 \family typewriter
22386 .svn
22387 \family default
22388  directory under 
22389 \family typewriter
22390 C:
22391 \backslash
22392 new project.
22393 \end_layout
22394
22395 \begin_layout Enumerate
22396 Create or open your document in \SpecialChar LyX
22397  and click 
22398 \family sans
22399 File\SpecialChar menuseparator
22400 Version
22401 \begin_inset space ~
22402 \end_inset
22403
22404 Control\SpecialChar menuseparator
22405 Register.
22406  
22407 \family default
22408 Add a log message and click OK to commit the document to version control.
22409 \end_layout
22410
22411 \begin_layout Standard
22412 From this point onward, you should have full functionality in the 
22413 \family sans
22414 File\SpecialChar menuseparator
22415 Version
22416 \begin_inset space ~
22417 \end_inset
22418
22419 Control
22420 \family default
22421  menu.
22422  You also have the option of checking the document in and out, viewing its
22423  history, etc.
22424  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22425  client program from a command prompt.
22426 \end_layout
22427
22428 \begin_layout Subsubsection
22429 SSH tunnel used with SVN under Windows
22430 \end_layout
22431
22432 \begin_layout Standard
22433 Compared with Linux setting up an svn client to communicate over ssh under
22434  Windows is a rather troublesome task.
22435  We will at least offer some hints how to setup the client side but prior
22436  knowledge about ssh and the Windows command line is needed, also be prepared
22437  for a great deal of frustration\SpecialChar ldots
22438
22439 \end_layout
22440
22441 \begin_layout Enumerate
22442 Get an svn client for windows, as described in the previous sections.
22443  When it is a fresh install run some svn command (e.g.
22444  
22445 \begin_inset Flex Code
22446 status collapsed
22447
22448 \begin_layout Plain Layout
22449 svn –version
22450 \end_layout
22451
22452 \end_inset
22453
22454 ) to create config files, which you will need to change later on.
22455 \end_layout
22456
22457 \begin_layout Enumerate
22458 Choose an ssh client for Windows.
22459  There are several possibilities, we will use the one from Putty tools
22460 \begin_inset Foot
22461 status collapsed
22462
22463 \begin_layout Plain Layout
22464 \begin_inset Flex URL
22465 status collapsed
22466
22467 \begin_layout Plain Layout
22468
22469 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22470 \end_layout
22471
22472 \end_inset
22473
22474
22475 \end_layout
22476
22477 \end_inset
22478
22479 .
22480  You will need to set the connection up so that the client doesn't ask for
22481  any password from you.
22482  To keep things easy we will use only keys without any additional password
22483  protection etc.
22484 \end_layout
22485
22486 \begin_deeper
22487 \begin_layout Enumerate
22488 Generate keys by 
22489 \begin_inset Flex Code
22490 status collapsed
22491
22492 \begin_layout Plain Layout
22493 puttygen
22494 \end_layout
22495
22496 \end_inset
22497
22498 .
22499  Save your private .ppk key file and put the public one on the server side.
22500  If the SVN server runs on Linux, note that the format of the public key
22501  is not compatible with Linux openssh and you will need to direcly copy-paste
22502  the key from the “
22503 \emph on
22504 Public key for pasting into OpenSSH authorized_keys file
22505 \emph default
22506 :” edit field into the server's 
22507 \begin_inset Flex Code
22508 status collapsed
22509
22510 \begin_layout Plain Layout
22511 ~/.ssh/authorized_keys
22512 \end_layout
22513
22514 \end_inset
22515
22516  / 
22517 \begin_inset Flex Code
22518 status collapsed
22519
22520 \begin_layout Plain Layout
22521 authorized_keys2
22522 \end_layout
22523
22524 \end_inset
22525
22526  file.
22527 \end_layout
22528
22529 \begin_layout Enumerate
22530 Get the Putty's 
22531 \begin_inset Flex Code
22532 status collapsed
22533
22534 \begin_layout Plain Layout
22535 plink
22536 \end_layout
22537
22538 \end_inset
22539
22540 .
22541  In the SVN config file
22542 \begin_inset Foot
22543 status collapsed
22544
22545 \begin_layout Plain Layout
22546 Exact path depends on Windows version, usually somewhere around 
22547 \begin_inset Flex Code
22548 status collapsed
22549
22550 \begin_layout Plain Layout
22551 c:
22552 \backslash
22553 Documents and Settings
22554 \backslash
22555 user
22556 \backslash
22557 Application Data
22558 \backslash
22559 Subversion
22560 \backslash
22561 config
22562 \end_layout
22563
22564 \end_inset
22565
22566  / 
22567 \begin_inset Flex Code
22568 status collapsed
22569
22570 \begin_layout Plain Layout
22571 AppData
22572 \backslash
22573 Roaming
22574 \backslash
22575 Subversion
22576 \end_layout
22577
22578 \end_inset
22579
22580 .
22581 \end_layout
22582
22583 \end_inset
22584
22585 , section [tunnels], setup ssh command, e.g.
22586  
22587 \begin_inset Flex Code
22588 status collapsed
22589
22590 \begin_layout Plain Layout
22591 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22592 \end_layout
22593
22594 \end_inset
22595
22596 .
22597 \begin_inset Foot
22598 status collapsed
22599
22600 \begin_layout Plain Layout
22601 It will usually take a lot of time to get exact command right and it depends
22602  on many things.
22603  For example do not have some remote server saved as a default session in
22604  Putty etc.
22605  If things fail, try to connect via plink without SVN first.
22606 \end_layout
22607
22608 \end_inset
22609
22610
22611 \end_layout
22612
22613 \end_deeper
22614 \begin_layout Enumerate
22615 Checkout the SVN archive, e.
22616 \begin_inset space \thinspace{}
22617 \end_inset
22618
22619 g.
22620 \begin_inset Newline newline
22621 \end_inset
22622
22623
22624 \begin_inset Flex Code
22625 status collapsed
22626
22627 \begin_layout Plain Layout
22628 svn co svn+ssh://user@server/repository_path
22629 \end_layout
22630
22631 \end_inset
22632
22633 .
22634 \end_layout
22635
22636 \begin_layout Subsubsection
22637 End-of-Line Conversions
22638 \end_layout
22639
22640 \begin_layout Standard
22641 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22642  will
22643  use different line endings inside the .lyx files.
22644  This is not a problem as far as \SpecialChar LyX
22645  functionality is concerned, but the commit
22646  diffs will be huge and merge-conflicts prone.
22647  Fortunately SVN itself knows
22648 \begin_inset Foot
22649 status collapsed
22650
22651 \begin_layout Plain Layout
22652 \begin_inset Flex URL
22653 status collapsed
22654
22655 \begin_layout Plain Layout
22656
22657 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22658 \end_layout
22659
22660 \end_inset
22661
22662
22663 \end_layout
22664
22665 \end_inset
22666
22667  how to deal with CR/LF problems when switching .lyx files to the 
22668 \begin_inset Flex Code
22669 status collapsed
22670
22671 \begin_layout Plain Layout
22672 native
22673 \end_layout
22674
22675 \end_inset
22676
22677  mode.
22678 \begin_inset Foot
22679 status collapsed
22680
22681 \begin_layout Plain Layout
22682 For the lazy guys: 
22683 \begin_inset Flex Code
22684 status collapsed
22685
22686 \begin_layout Plain Layout
22687 svn propset svn:eol-style native FILE_NAME
22688 \end_layout
22689
22690 \end_inset
22691
22692
22693 \end_layout
22694
22695 \end_inset
22696
22697
22698 \end_layout
22699
22700 \begin_layout Subsection
22701 GIT commands in \SpecialChar LyX
22702
22703 \end_layout
22704
22705 \begin_layout Standard
22706 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22707 .
22708  You can find the commands in the 
22709 \family sans
22710 File\SpecialChar menuseparator
22711 Version
22712 \begin_inset space ~
22713 \end_inset
22714
22715 Control
22716 \family default
22717  submenu.
22718  Please note that if you use password protected access to repository via
22719  ssh, you will be asked in terminal window.
22720  \SpecialChar LyX
22721  was tested against GIT 1.7.
22722 \begin_inset Foot
22723 status open
22724
22725 \begin_layout Plain Layout
22726 Windows users please note that you need to ensure that git is on the path.
22727  This can be set from within \SpecialChar LyX
22728  at 
22729 \family sans
22730 Tools\SpecialChar menuseparator
22731 Preferences\SpecialChar menuseparator
22732 Paths\SpecialChar menuseparator
22733 PATH prefix
22734 \family default
22735 .
22736 \end_layout
22737
22738 \end_inset
22739
22740
22741 \end_layout
22742
22743 \begin_layout Standard
22744 One big difference of GIT and the other supported version control systems
22745  is the distributed nature of GIT: With traditional version control systems
22746  there is one central server which hosts the repository.
22747  Users commit their changes to the server, and get updates made by other
22748  users from it.
22749  With GIT, users commit to a local repository.
22750  The local repository can be synchronized with one or more remote repositories
22751  using the 
22752 \begin_inset Flex Code
22753 status collapsed
22754
22755 \begin_layout Plain Layout
22756 pull
22757 \end_layout
22758
22759 \end_inset
22760
22761  and 
22762 \begin_inset Flex Code
22763 status collapsed
22764
22765 \begin_layout Plain Layout
22766 push
22767 \end_layout
22768
22769 \end_inset
22770
22771  GIT commands.
22772  \SpecialChar LyX
22773  does not interact in any way with remote GIT repositories.
22774  It works exclusively with the local repository in a very similar way as
22775  with a central CVS or SVN repository.
22776  If you use remote GIT repositories you need to do the 
22777 \begin_inset Flex Code
22778 status collapsed
22779
22780 \begin_layout Plain Layout
22781 pull
22782 \end_layout
22783
22784 \end_inset
22785
22786  and 
22787 \begin_inset Flex Code
22788 status collapsed
22789
22790 \begin_layout Plain Layout
22791 push
22792 \end_layout
22793
22794 \end_inset
22795
22796  operations with your favourite GIT client.
22797 \end_layout
22798
22799 \begin_layout Subsubsection
22800
22801 \family sans
22802 Register
22803 \end_layout
22804
22805 \begin_layout Standard
22806 If your document is not under revision control, this is the only item shown
22807  in the menu.
22808  And if it is under revision control, the 
22809 \family sans
22810 Register
22811 \family default
22812  item is not visible.
22813 \end_layout
22814
22815 \begin_layout Standard
22816 This command registers in GIT your document ONLY in case you have already
22817  the documents directory under GIT control (in particular 
22818 \family typewriter
22819 .git/index
22820 \family default
22821  file exists).
22822  This means you have to checkout the archive by yourself.
22823 \end_layout
22824
22825 \begin_layout Standard
22826 Then you are asked interactively to supply an initial description of the
22827  document.
22828  Don't forget that registered file is not yet commited.
22829 \end_layout
22830
22831 \begin_layout Standard
22832 GIT command that is run: 
22833 \family typewriter
22834 git add 
22835 \begin_inset Quotes eld
22836 \end_inset
22837
22838 <file-name>
22839 \begin_inset Quotes erd
22840 \end_inset
22841
22842
22843 \end_layout
22844
22845 \begin_layout Standard
22846 Read 
22847 \family typewriter
22848 man git
22849 \family default
22850  to understand the switches.
22851 \end_layout
22852
22853 \begin_layout Subsubsection
22854
22855 \family sans
22856 Check In Changes
22857 \end_layout
22858
22859 \begin_layout Standard
22860 When you are finished editing a file, you commit your changes.
22861  When you do this, you are asked for a description of the changes.
22862  After that changes are commited.
22863 \end_layout
22864
22865 \begin_layout Standard
22866 GIT command: 
22867 \family typewriter
22868 git commit -q -m"<description>" <file-name>
22869 \end_layout
22870
22871 \begin_layout Subsubsection
22872
22873 \family sans
22874 Revert To Repository Version
22875 \end_layout
22876
22877 \begin_layout Standard
22878 This will discard all changes made to the document since the last check
22879  in.
22880  You get a warning before changes are discarded.
22881 \end_layout
22882
22883 \begin_layout Standard
22884 GIT command: 
22885 \family typewriter
22886 git checkout -q 
22887 \begin_inset Quotes eld
22888 \end_inset
22889
22890 <file-name>
22891 \begin_inset Quotes erd
22892 \end_inset
22893
22894
22895 \end_layout
22896
22897 \begin_layout Subsubsection
22898
22899 \family sans
22900 Rename
22901 \end_layout
22902
22903 \begin_layout Standard
22904 This will rename the current document including the version history.
22905  It requires a clean document without any changes since the last checkin.
22906  You are asked for a file name and a description of the rename operation.
22907  After that the document is renamed, both locally and in the repository.
22908  If the parent directories of the new and old file names differ, all relative
22909  paths of included files are adjusted (like in 
22910 \family sans
22911 File\SpecialChar menuseparator
22912 Save As
22913 \family default
22914 \SpecialChar ldots
22915 ).
22916  Finally, the document is reloaded using the new name.
22917 \end_layout
22918
22919 \begin_layout Labeling
22920 \labelwidthstring 00.00.0000
22921 GIT
22922 \begin_inset space ~
22923 \end_inset
22924
22925 commands: 
22926 \begin_inset space ~
22927 \end_inset
22928
22929
22930 \begin_inset Newline newline
22931 \end_inset
22932
22933
22934 \begin_inset Flex Code
22935 status collapsed
22936
22937 \begin_layout Plain Layout
22938 git mv 
22939 \family typewriter
22940
22941 \begin_inset Quotes eld
22942 \end_inset
22943
22944 <file-name>
22945 \begin_inset Quotes erd
22946 \end_inset
22947
22948  
22949 \begin_inset Quotes eld
22950 \end_inset
22951
22952 <new-file-name>
22953 \begin_inset Quotes erd
22954 \end_inset
22955
22956
22957 \end_layout
22958
22959 \end_inset
22960
22961
22962 \begin_inset Newline newline
22963 \end_inset
22964
22965
22966 \begin_inset Flex Code
22967 status collapsed
22968
22969 \begin_layout Plain Layout
22970 git commit
22971 \end_layout
22972
22973 \end_inset
22974
22975
22976 \end_layout
22977
22978 \begin_layout Subsubsection
22979
22980 \family sans
22981 Show History
22982 \end_layout
22983
22984 \begin_layout Standard
22985 This shows the complete history of the GIT document.
22986  The output of 
22987 \family typewriter
22988 git log 
22989 \begin_inset Quotes eld
22990 \end_inset
22991
22992 <file-name>
22993 \begin_inset Quotes erd
22994 \end_inset
22995
22996
22997 \family default
22998  is shown in a browser.
22999 \end_layout
23000
23001 \begin_layout Subsubsection
23002 Version Info
23003 \end_layout
23004
23005 \begin_layout Standard
23006 \SpecialChar LyX
23007  supports GIT hash number of the last commit to the file, author name, date
23008  and time of last commit.
23009  All those are extracted from 
23010 \family typewriter
23011 git log -n 1 --pretty=format:%H%n%an%n%ai
23012 \family default
23013 .
23014  Tree version information is obtained via 
23015 \family typewriter
23016 git describe --abbrev --dirty --long
23017 \family default
23018 .
23019  See 
23020 \begin_inset CommandInset ref
23021 LatexCommand ref
23022 reference "subsec:VCS-Revision-Information"
23023
23024 \end_inset
23025
23026  for other details.
23027 \end_layout
23028
23029 \begin_layout Subsection
23030 Further tuning
23031 \end_layout
23032
23033 \begin_layout Standard
23034 With the recent addition of the vc-command function \SpecialChar LyX
23035  power users are allowed
23036  to create their own commands for revision control.
23037 \end_layout
23038
23039 \begin_layout Standard
23040 As an example you can see how two TortoiseSVN commands could be integrated
23041  directly:
23042 \end_layout
23043
23044 \begin_layout Description
23045 Commit: 
23046 \begin_inset Flex Code
23047 status collapsed
23048
23049 \begin_layout Plain Layout
23050 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23051 \end_layout
23052
23053 \end_inset
23054
23055
23056 \end_layout
23057
23058 \begin_layout Description
23059 Revert: 
23060 \begin_inset Flex Code
23061 status collapsed
23062
23063 \begin_layout Plain Layout
23064 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23065 \end_layout
23066
23067 \end_inset
23068
23069
23070 \end_layout
23071
23072 \begin_layout Subsection
23073 Version control and Document comparison
23074 \end_layout
23075
23076 \begin_layout Standard
23077 One of the typical uses of version control is to inspect the changes between
23078  revisions, usually by creating 
23079 \begin_inset Flex Code
23080 status collapsed
23081
23082 \begin_layout Plain Layout
23083 diff
23084 \end_layout
23085
23086 \end_inset
23087
23088  dumps.
23089  While this is useful for plain text files, it is much less useful in the
23090  case of \SpecialChar LyX
23091  files, which have more a complicated structure.
23092  Hence we provide binding to the Document comparison feature.
23093  There are two ways of calling this feature - either by direct call of 
23094 \begin_inset Flex Code
23095 status collapsed
23096
23097 \begin_layout Plain Layout
23098 VC_COMPARE
23099 \end_layout
23100
23101 \end_inset
23102
23103  \SpecialChar LyX
23104  function (for details see \SpecialChar LyX
23105  functions manual) or by icon/menu item 
23106 \begin_inset Flex Noun
23107 status collapsed
23108
23109 \begin_layout Plain Layout
23110 Compare with older revision...
23111 \end_layout
23112
23113 \end_inset
23114
23115 .
23116  One can either compare two chosen revisions of the document or he can simply
23117  compare the current version of edited text with older revisions (where
23118  '
23119 \begin_inset Flex Noun
23120 status collapsed
23121
23122 \begin_layout Plain Layout
23123 0
23124 \end_layout
23125
23126 \end_inset
23127
23128 ' revisions back means comparison of the edited file with last commited
23129  revision).
23130  
23131 \end_layout
23132
23133 \begin_layout Standard
23134 This feature is supported for SVN and RCS though due to the more complicated
23135  versioning scheme of RCS there is a constraint – when addressing the revisions
23136  in dialog, numbers always point to the last number in RCS revision number,
23137  i.e.
23138  '35' in '1.2.35'.
23139  We don't currently support GIT addressing of revisions, one can just compare
23140  edited document with its revision X steps backs, where X is addressed as
23141  HEAD~X.
23142 \end_layout
23143
23144 \begin_layout Section
23145 Literate Programming
23146 \end_layout
23147
23148 \begin_layout Standard
23149 Updated by 
23150 \noun on
23151 Kayvan Sylvan 
23152 \noun default
23153 (kayvan@sylvan.com)
23154 \noun on
23155
23156 \noun default
23157 original documentation written by 
23158 \noun on
23159 Edmar Wienskoski Jr.
23160
23161 \noun default
23162  (edmar-w-jr@technologist.com)
23163 \end_layout
23164
23165 \begin_layout Subsection
23166 Introduction
23167 \end_layout
23168
23169 \begin_layout Standard
23170 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23171  for literate
23172  programming, where it is assumed that you are familiar with this programming
23173  technique, and know what 
23174 \begin_inset Quotes eld
23175 \end_inset
23176
23177 tangling
23178 \begin_inset Quotes erd
23179 \end_inset
23180
23181  and 
23182 \begin_inset Quotes eld
23183 \end_inset
23184
23185 weaving
23186 \begin_inset Quotes erd
23187 \end_inset
23188
23189  means.
23190  If that is not the case, please follow the web links provided in the following
23191  sections.
23192  There is a lot of good documentation out there covering old development
23193  history to the latest tools tips.
23194 \end_layout
23195
23196 \begin_layout Standard
23197 It is also assumed that you are familiar with \SpecialChar LyX
23198  itself to a point that you
23199  are comfortable changing your \SpecialChar LyX
23200  preferences, and X resources file.
23201  If that is not the case please refer to other \SpecialChar LyX
23202  documentation to cover your
23203  specific needs.
23204 \end_layout
23205
23206 \begin_layout Subsection
23207 Literate Programming
23208 \end_layout
23209
23210 \begin_layout Standard
23211 From the Literate Programming FAQ: 
23212 \end_layout
23213
23214 \begin_layout Quotation
23215 Literate programming is the combination of documentation and source together
23216  in a fashion suited for reading by human beings.
23217  In fact, literate programs should be enjoyable reading, even inviting!
23218  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23219  and documentation in a single file.
23220  Literate programming tools then parse the file to produce either readable
23221  documentation or compilable source.
23222  The WEB style of literate programming was created by D.
23223 \begin_inset space \thinspace{}
23224 \end_inset
23225
23226 E.
23227  Knuth during the development of his \SpecialChar TeX
23228  typesetting software.
23229  
23230 \end_layout
23231
23232 \begin_layout Standard
23233 Another excerpt says:
23234 \end_layout
23235
23236 \begin_layout Quotation
23237
23238 \emph on
23239 How is literate programming different from verbose commenting?
23240 \end_layout
23241
23242 \begin_layout Quotation
23243 There are three distinguishing characteristics.
23244  In order of importance, they are: 
23245 \end_layout
23246
23247 \begin_deeper
23248 \begin_layout Itemize
23249 flexible order of elaboration 
23250 \end_layout
23251
23252 \begin_layout Itemize
23253 automatic support for browsing 
23254 \end_layout
23255
23256 \begin_layout Itemize
23257 typeset documentation, especially diagrams and mathematics 
23258 \end_layout
23259
23260 \end_deeper
23261 \begin_layout Standard
23262 Now that I sparked your curiosity, take a look in the references.
23263 \end_layout
23264
23265 \begin_layout Subsubsection
23266 References
23267 \end_layout
23268
23269 \begin_layout Standard
23270 The complete Literate Programming FAQ can be found at:
23271 \end_layout
23272
23273 \begin_layout Quote
23274 Literate Programming FAQ 
23275 \begin_inset Flex URL
23276 status collapsed
23277
23278 \begin_layout Plain Layout
23279
23280 http://www.literateprogramming.com/lpfaq.pdf
23281 \end_layout
23282
23283 \end_inset
23284
23285
23286 \end_layout
23287
23288 \begin_layout Standard
23289 The FAQ lists 23 (twenty three!) different literate programming tools.
23290  Where some are specialized or 
23291 \begin_inset Quotes eld
23292 \end_inset
23293
23294 tailored
23295 \begin_inset Quotes erd
23296 \end_inset
23297
23298  for particular programming languages, while other have general scope.
23299  I selected 
23300 \noun on
23301 Noweb
23302 \noun default
23303  for my own use for several reasons:
23304 \end_layout
23305
23306 \begin_layout Itemize
23307 It can generate the documentation either in \SpecialChar LaTeX
23308  or HTML.
23309 \end_layout
23310
23311 \begin_layout Itemize
23312 It has a open architecture, i.
23313 \begin_inset space \thinspace{}
23314 \end_inset
23315
23316 e.
23317 \begin_inset space \space{}
23318 \end_inset
23319
23320 it is easy to plug in new filters and to perform special processing that
23321  you may need.
23322  
23323 \end_layout
23324
23325 \begin_layout Itemize
23326 There is a good selection of filters available already (the HTML is one
23327  of them).
23328 \end_layout
23329
23330 \begin_layout Itemize
23331 It is free.
23332 \end_layout
23333
23334 \begin_layout Standard
23335 The Noweb web page can be found at: 
23336 \end_layout
23337
23338 \begin_layout Quote
23339 Noweb home page 
23340 \begin_inset Flex URL
23341 status collapsed
23342
23343 \begin_layout Plain Layout
23344
23345 http://www.cs.virginia.edu/~nr/noweb/
23346 \end_layout
23347
23348 \end_inset
23349
23350
23351 \end_layout
23352
23353 \begin_layout Standard
23354 Starting from there you can reach many other interesting links and even
23355  some literate program examples.
23356 \end_layout
23357
23358 \begin_layout Subsection
23359 \SpecialChar LyX
23360  and Literate Programming with Noweb
23361 \end_layout
23362
23363 \begin_layout Standard
23364 The \SpecialChar LyX
23365  support for Literate Programming is provided by using the generic \SpecialChar LyX
23366
23367  converters mechanism.
23368  This support is provided in a 
23369 \begin_inset Quotes eld
23370 \end_inset
23371
23372 Noweb independent
23373 \begin_inset Quotes erd
23374 \end_inset
23375
23376  way, i.
23377 \begin_inset space \thinspace{}
23378 \end_inset
23379
23380 e.
23381 \begin_inset space \space{}
23382 \end_inset
23383
23384 you will be able to use this new \SpecialChar LyX
23385  feature with some other literate programming
23386  tool of your choice by just changing your \SpecialChar LyX
23387  preferences.
23388 \end_layout
23389
23390 \begin_layout Subsubsection
23391 Generating documents and code (weaving and tangling)
23392 \end_layout
23393
23394 \begin_layout Paragraph
23395 Using the noweb module
23396 \end_layout
23397
23398 \begin_layout Standard
23399 If you have installed Noweb and \SpecialChar LyX
23400  successfully, whenever you open a new document,
23401  after you have chosen its document class, use the Document->Settings menu
23402  to add the 
23403 \begin_inset Quotes eld
23404 \end_inset
23405
23406 noweb
23407 \begin_inset Quotes erd
23408 \end_inset
23409
23410  module.
23411  If Noweb is correctly installed, when you click on the 
23412 \begin_inset Quotes eld
23413 \end_inset
23414
23415 Modules
23416 \begin_inset Quotes erd
23417 \end_inset
23418
23419  link, you will see the 
23420 \begin_inset Quotes eld
23421 \end_inset
23422
23423 noweb
23424 \begin_inset Quotes erd
23425 \end_inset
23426
23427  module in the available list and you can add it to your document.
23428 \end_layout
23429
23430 \begin_layout Paragraph
23431 Typing code in
23432 \end_layout
23433
23434 \begin_layout Standard
23435 \SpecialChar LyX
23436  enables you to write code with a layout named 
23437 \begin_inset Flex Noun
23438 status collapsed
23439
23440 \begin_layout Plain Layout
23441 Chunk
23442 \end_layout
23443
23444 \end_inset
23445
23446 .
23447  Noweb delimits chunks like this:
23448 \end_layout
23449
23450 \begin_layout LyX-Code
23451 <<My code>>=
23452 \end_layout
23453
23454 \begin_layout LyX-Code
23455   code
23456 \end_layout
23457
23458 \begin_layout LyX-Code
23459   more code
23460 \end_layout
23461
23462 \begin_layout LyX-Code
23463   even more code
23464 \end_layout
23465
23466 \begin_layout LyX-Code
23467   @
23468 \end_layout
23469
23470 \begin_layout Standard
23471 The problem is that whatever is written in between the << and the 
23472 \family typewriter
23473 @
23474 \family default
23475  must be taken literally, i.
23476 \begin_inset space \thinspace{}
23477 \end_inset
23478
23479 e.
23480 \begin_inset space \space{}
23481 \end_inset
23482
23483 \SpecialChar LyX
23484  should be prevented from making any special interpretation of what has
23485  been written.
23486  This is also handled by 
23487 \begin_inset Flex Noun
23488 status collapsed
23489
23490 \begin_layout Plain Layout
23491 Chunk
23492 \end_layout
23493
23494 \end_inset
23495
23496 , that works like a normal paragraph but has a free spacing capability.
23497 \end_layout
23498
23499 \begin_layout Standard
23500 As a special note, you can also use the 
23501 \begin_inset Quotes eld
23502 \end_inset
23503
23504 %def
23505 \begin_inset Quotes erd
23506 \end_inset
23507
23508  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23509 rence:
23510 \end_layout
23511
23512 \begin_layout LyX-Code
23513 <<My chunk>>=
23514 \end_layout
23515
23516 \begin_layout LyX-Code
23517 def some_function(args):
23518 \end_layout
23519
23520 \begin_layout LyX-Code
23521    "This is the doc string for this function."
23522 \end_layout
23523
23524 \begin_layout LyX-Code
23525    print "My args: ", args
23526 \end_layout
23527
23528 \begin_layout LyX-Code
23529 @ %def some_function
23530 \end_layout
23531
23532 \begin_layout Standard
23533 For an example of this usage and the resulting cross-reference output, look
23534  at the Literate python program in 
23535 \emph on
23536 LIBDIR/examples/listerrors.lyx
23537 \emph default
23538  which should make this all clear.
23539 \end_layout
23540
23541 \begin_layout Paragraph
23542 Generating the documentation
23543 \end_layout
23544
23545 \begin_layout Standard
23546 At this point you already have a new document file with a proper document
23547  class, and with some code and text on it.
23548  How do I print it? The answer is simple, you select 
23549 \family sans
23550 View\SpecialChar menuseparator
23551 DVI,
23552 \family default
23553  etc.
23554  Just like you would do for a plain document.
23555  No special procedure is required.
23556 \end_layout
23557
23558 \begin_layout Standard
23559 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23560 :
23561 \end_layout
23562
23563 \begin_layout Enumerate
23564 When the 
23565 \family sans
23566 Update\SpecialChar menuseparator
23567 DVI
23568 \family default
23569  menu option is chosen, a \SpecialChar LaTeX
23570  file is generated.
23571  
23572 \end_layout
23573
23574 \begin_deeper
23575 \begin_layout Standard
23576 If the document is of any literate class the generated file will be named
23577  with an extension name defined by the 
23578 \begin_inset Quotes eld
23579 \end_inset
23580
23581 literate
23582 \begin_inset Quotes erd
23583 \end_inset
23584
23585  format (defined in the Preferences panel), otherwise the file will have
23586  the usual 
23587 \family typewriter
23588 .tex
23589 \family default
23590  extension.
23591 \end_layout
23592
23593 \end_deeper
23594 \begin_layout Enumerate
23595 Note that the only difference so far is in the name of the file, no special
23596  processing is required by \SpecialChar LyX
23597 .
23598  Given that you formatted the code using the 
23599 \begin_inset Flex Noun
23600 status collapsed
23601
23602 \begin_layout Plain Layout
23603 Chunk
23604 \end_layout
23605
23606 \end_inset
23607
23608  layout that, by itself, takes care of the business.
23609 \end_layout
23610
23611 \begin_layout Enumerate
23612 If the document is of any literate class \SpecialChar LyX
23613  will then use the internal \SpecialChar LyX
23614  to
23615  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23616  converter
23617 \begin_inset Foot
23618 status collapsed
23619
23620 \begin_layout Plain Layout
23621 The converters are defined in the 
23622 \family sans
23623 Tools\SpecialChar menuseparator
23624 Preferences
23625 \family default
23626  panel, under the 
23627 \begin_inset Quotes eld
23628 \end_inset
23629
23630 Conversion
23631 \begin_inset Quotes erd
23632 \end_inset
23633
23634  tab.
23635  See section 
23636 \emph on
23637 Converters
23638 \emph default
23639  of the 
23640 \emph on
23641 Customization
23642 \emph default
23643  manual for general information about converters.
23644 \end_layout
23645
23646 \end_inset
23647
23648  to generate the \SpecialChar LaTeX
23649  file.
23650 \end_layout
23651
23652 \begin_deeper
23653 \begin_layout Standard
23654 Otherwise it will just skip this step.
23655 \end_layout
23656
23657 \end_deeper
23658 \begin_layout Enumerate
23659 Finally, \SpecialChar LaTeX
23660  is invoked and the regular post processing continues as in a plain
23661  document.
23662 \end_layout
23663
23664 \begin_layout Standard
23665 Independence from a particular 
23666 \begin_inset Quotes eld
23667 \end_inset
23668
23669 literate tool
23670 \begin_inset Quotes erd
23671 \end_inset
23672
23673  is easily achieved by changing the commands that are run by the various
23674  converters.
23675 \end_layout
23676
23677 \begin_layout Paragraph
23678 Generating the code
23679 \end_layout
23680
23681 \begin_layout Standard
23682 When the build menu option is chosen or the corresponding button in the
23683  toolbar is pressed, a \SpecialChar LaTeX
23684  file is generated just like step 1 above.
23685  Next, \SpecialChar LyX
23686  invokes the 
23687 \family typewriter
23688 Noweb->Program
23689 \family default
23690  converter.
23691  This converter needs to be defined by the user and is not installed by
23692  default, though the Program format is.
23693  This converter (like any other converter) will have two parts:
23694 \end_layout
23695
23696 \begin_layout Enumerate
23697 The converter program itself.
23698  This program performs the conversion from the one format to the other (in
23699  this case, from the Noweb format to the Program pseudo-format).
23700 \end_layout
23701
23702 \begin_layout Enumerate
23703 The error log parser.
23704  This is a program whose sole purpose is to rewrite error messages in a
23705  format that \SpecialChar LyX
23706  understands.
23707  This makes it possible for \SpecialChar LyX
23708  to place error boxes in the right places in
23709  the file buffer.
23710 \end_layout
23711
23712 \begin_layout Standard
23713 The first part, the 
23714 \begin_inset Quotes eld
23715 \end_inset
23716
23717 Converter
23718 \begin_inset Quotes erd
23719 \end_inset
23720
23721  setting, should be set to
23722 \begin_inset Newline newline
23723 \end_inset
23724
23725
23726 \begin_inset Quotes eld
23727 \end_inset
23728
23729
23730 \family typewriter
23731 build-script $$i
23732 \family default
23733  $$r
23734 \begin_inset Quotes erd
23735 \end_inset
23736
23737 .
23738 \begin_inset Newline newline
23739 \end_inset
23740
23741 This basically means that \SpecialChar LyX
23742  will call 
23743 \begin_inset Quotes eld
23744 \end_inset
23745
23746 build-script
23747 \begin_inset Quotes erd
23748 \end_inset
23749
23750  (a program or script) with the name of the Noweb file (normally a file
23751  in the \SpecialChar LyX
23752  temp directory) and the directory path of the original \SpecialChar LyX
23753  file.
23754  
23755 \end_layout
23756
23757 \begin_layout Standard
23758 This is an implementation of 
23759 \begin_inset Quotes eld
23760 \end_inset
23761
23762 build-script
23763 \begin_inset Quotes erd
23764 \end_inset
23765
23766  that you can place in a directory on your path:
23767 \end_layout
23768
23769 \begin_layout Standard
23770 \begin_inset VSpace defskip
23771 \end_inset
23772
23773
23774 \end_layout
23775
23776 \begin_layout Standard
23777 \begin_inset Newpage pagebreak
23778 \end_inset
23779
23780
23781 \end_layout
23782
23783 \begin_layout Standard
23784
23785 \family sans
23786 #!/bin/sh
23787 \end_layout
23788
23789 \begin_layout Standard
23790
23791 \family sans
23792 #
23793 \end_layout
23794
23795 \begin_layout Standard
23796
23797 \family sans
23798 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23799 \end_layout
23800
23801 \begin_layout Standard
23802 \begin_inset VSpace defskip
23803 \end_inset
23804
23805
23806 \end_layout
23807
23808 \begin_layout Standard
23809 The next part of the converter setting is the 
23810 \begin_inset Quotes eld
23811 \end_inset
23812
23813 Flags
23814 \begin_inset Quotes erd
23815 \end_inset
23816
23817  which is to be set to
23818 \begin_inset Newline newline
23819 \end_inset
23820
23821
23822 \begin_inset Quotes eld
23823 \end_inset
23824
23825
23826 \family typewriter
23827 parselog=$$s/scripts/listerrors
23828 \family default
23829
23830 \begin_inset Quotes erd
23831 \end_inset
23832
23833 .
23834 \begin_inset Newline newline
23835 \end_inset
23836
23837 This will run any errors that are generated by the 
23838 \begin_inset Quotes eld
23839 \end_inset
23840
23841 build-script
23842 \begin_inset Quotes erd
23843 \end_inset
23844
23845  process through the 
23846 \begin_inset Quotes eld
23847 \end_inset
23848
23849 listerrors
23850 \begin_inset Quotes erd
23851 \end_inset
23852
23853  program.
23854 \end_layout
23855
23856 \begin_layout Standard
23857 The build will normally take place in \SpecialChar LyX
23858 's temporary directory, so the files
23859  produced by the conversion will be in that directory.
23860  \SpecialChar LyX
23861  will copy out what it regards as the `main' file, but the 
23862 \family typewriter
23863 Noweb->Program
23864 \family default
23865  conversion may produce several files, and so most of these would then be
23866  deleted when \SpecialChar LyX
23867  was closed.
23868  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23869  the build-script chunk can place the generated files in that location.
23870 \end_layout
23871
23872 \begin_layout Paragraph
23873 Build instructions in the document
23874 \end_layout
23875
23876 \begin_layout Standard
23877 The last piece of the integration between \SpecialChar LyX
23878  and noweb is the 
23879 \begin_inset Quotes eld
23880 \end_inset
23881
23882 build-script
23883 \begin_inset Quotes erd
23884 \end_inset
23885
23886  chunk.
23887  Generally, the instructions for building your program should be embedded
23888  in a chunk of its own.
23889  The noweb-specific 
23890 \begin_inset Quotes eld
23891 \end_inset
23892
23893 build-script
23894 \begin_inset Quotes erd
23895 \end_inset
23896
23897  above uses the notangle command to look for this chunk (called 
23898 \begin_inset Quotes eld
23899 \end_inset
23900
23901 build-script
23902 \begin_inset Quotes erd
23903 \end_inset
23904
23905 ) and runs its contents through 
23906 \begin_inset Quotes eld
23907 \end_inset
23908
23909 sh
23910 \begin_inset Quotes erd
23911 \end_inset
23912
23913 .
23914 \end_layout
23915
23916 \begin_layout Standard
23917 Typically, such a chunk would look something like this:
23918 \end_layout
23919
23920 \begin_layout LyX-Code
23921 <<build-script>>=
23922 \end_layout
23923
23924 \begin_layout LyX-Code
23925 #!/bin/sh
23926 \begin_inset Newline newline
23927 \end_inset
23928
23929 if [ -z "${NOWEB_SOURCE}" ]
23930 \begin_inset Newline newline
23931 \end_inset
23932
23933 then
23934 \end_layout
23935
23936 \begin_layout LyX-Code
23937 NOWEB_SOURCE=myfile.nw
23938 \begin_inset Newline newline
23939 \end_inset
23940
23941 fi
23942 \begin_inset Newline newline
23943 \end_inset
23944
23945 [...
23946  code to extract files ...
23947  use NOWEB_OUTPUT_DIR here ...]
23948 \begin_inset Newline newline
23949 \end_inset
23950
23951 [...
23952  code to compile files ...]
23953 \begin_inset Newline newline
23954 \end_inset
23955
23956 @
23957 \end_layout
23958
23959 \begin_layout Standard
23960 Look in 
23961 \emph on
23962 LIBDIR/examples/listerrors.lyx
23963 \emph default
23964  or in 
23965 \emph on
23966 LIBDIR/examples/Literate.lyx
23967 \emph default
23968  which implement two versions of the 
23969 \begin_inset Quotes eld
23970 \end_inset
23971
23972 listerrors
23973 \begin_inset Quotes erd
23974 \end_inset
23975
23976  program for some illustrations of how all of these pieces go together or
23977  in 
23978 \emph on
23979 LIBDIR/examples/noweb2lyx.lyx.
23980
23981 \emph default
23982  Interestingly, these three files show off the language-indepence of the
23983  \SpecialChar LyX
23984  literate programming support since they are written in Python, C and Perl
23985  respectively.
23986 \end_layout
23987
23988 \begin_layout Subsubsection
23989 Configuring \SpecialChar LyX
23990
23991 \end_layout
23992
23993 \begin_layout Standard
23994 All the Literate Programming support is configured by the 
23995 \family sans
23996 Tools\SpecialChar menuseparator
23997 Preferences
23998 \family default
23999  panel in the 
24000 \begin_inset Quotes eld
24001 \end_inset
24002
24003 File Handling
24004 \begin_inset Quotes erd
24005 \end_inset
24006
24007  tab.
24008  The important parts are:
24009 \end_layout
24010
24011 \begin_layout Description
24012 the
24013 \begin_inset space ~
24014 \end_inset
24015
24016
24017 \begin_inset Quotes eld
24018 \end_inset
24019
24020 NoWeb
24021 \begin_inset Quotes erd
24022 \end_inset
24023
24024
24025 \begin_inset space ~
24026 \end_inset
24027
24028 format Set up via the File Formats tab, this is where the Noweb-specific
24029  pieces are set up.
24030  The 
24031 \family sans
24032 GUI Name
24033 \family default
24034  is set to 
24035 \family typewriter
24036 NoWeb
24037 \family default
24038 , the file extension is set to 
24039 \family typewriter
24040 .nw
24041 \family default
24042 .
24043  This tells \SpecialChar LyX
24044  to create a file with a 
24045 \family typewriter
24046 .nw
24047 \family default
24048  extension in the first step of the conversion process.
24049 \end_layout
24050
24051 \begin_layout Description
24052 the
24053 \begin_inset space ~
24054 \end_inset
24055
24056
24057 \family sans
24058 Program
24059 \family default
24060
24061 \begin_inset space ~
24062 \end_inset
24063
24064 format This is an empty format whose sole purpose is to be the endpoint
24065  of a conversion (which then allows us to set up a converter for it).
24066 \end_layout
24067
24068 \begin_layout Description
24069
24070 \family sans
24071 NoWeb
24072 \family default
24073 ->
24074 \family sans
24075 \SpecialChar LaTeX
24076
24077 \family default
24078  This converter performs the 
24079 \begin_inset Quotes eld
24080 \end_inset
24081
24082 weaving
24083 \begin_inset Quotes erd
24084 \end_inset
24085
24086  of the literate document.
24087  For Noweb, it is set to 
24088 \begin_inset Quotes eld
24089 \end_inset
24090
24091
24092 \family typewriter
24093 noweave -delay -index $$i > $$o
24094 \family default
24095
24096 \begin_inset Quotes erd
24097 \end_inset
24098
24099
24100 \end_layout
24101
24102 \begin_layout Description
24103
24104 \family sans
24105 NoWeb
24106 \family default
24107 ->
24108 \family sans
24109 Program
24110 \family default
24111  This performs the 
24112 \begin_inset Quotes eld
24113 \end_inset
24114
24115 tangling step
24116 \begin_inset Quotes erd
24117 \end_inset
24118
24119 .
24120  As stated above, the Converter is set to 
24121 \begin_inset Quotes eld
24122 \end_inset
24123
24124
24125 \family typewriter
24126 build-script $$i
24127 \family default
24128  $$r
24129 \begin_inset Quotes erd
24130 \end_inset
24131
24132 , with Flags set to
24133 \begin_inset Newline newline
24134 \end_inset
24135
24136
24137 \begin_inset Quotes eld
24138 \end_inset
24139
24140
24141 \family typewriter
24142 parselog=$$s/scripts/listerrors
24143 \family default
24144
24145 \begin_inset Quotes erd
24146 \end_inset
24147
24148 .
24149 \end_layout
24150
24151 \begin_layout Subsubsection
24152 Debug extensions
24153 \end_layout
24154
24155 \begin_layout Standard
24156 There is also a new function implemented in the \SpecialChar LyX
24157  server, the 
24158 \begin_inset Quotes eld
24159 \end_inset
24160
24161 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24162  
24163 \end_layout
24164
24165 \begin_layout Standard
24166 When debugging code with ddd/gdb, it is possible to invoke a text editor
24167  at the current execution position with a single key stroke.
24168  The default ddd configuration for that is shift-ctrl-V.
24169  It happens that you can define the editor command line invocation in ddd
24170  by accessing the 
24171 \family sans
24172 Edit\SpecialChar menuseparator
24173 Preferences\SpecialChar menuseparator
24174 Helpers
24175 \family default
24176  dialog and changing the "Edit Sources" entry.
24177 \end_layout
24178
24179 \begin_layout Standard
24180 I take advantage of the newly created \SpecialChar LyX
24181  server function and this ddd feature,
24182  and set 
24183 \begin_inset Quotes eld
24184 \end_inset
24185
24186 Edit Sources
24187 \begin_inset Quotes erd
24188 \end_inset
24189
24190  to:
24191 \end_layout
24192
24193 \begin_layout Standard
24194 \begin_inset VSpace defskip
24195 \end_inset
24196
24197
24198 \end_layout
24199
24200 \begin_layout Standard
24201
24202 \family sans
24203 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24204 \end_layout
24205
24206 \begin_layout Standard
24207 \begin_inset VSpace defskip
24208 \end_inset
24209
24210
24211 \end_layout
24212
24213 \begin_layout Standard
24214 With this, whenever you are using ddd and find a point in the program that
24215  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24216  ddd will forward this information to \SpecialChar LyX
24217  through the \SpecialChar LyX
24218  server and then the
24219  \SpecialChar LyX
24220  window will show the same file with the cursor at the same position ddd
24221  was pointing to.
24222  No more guessing or long scrolling to locate a point in the program back
24223  from debugging !
24224 \end_layout
24225
24226 \begin_layout Standard
24227 Note however that you must enable the \SpecialChar LyX
24228  server to get this feature working
24229  (it is disabled by default).
24230  You can enable it in 
24231 \family sans
24232 Preferences
24233 \family default
24234  (tabs 
24235 \family sans
24236 Inputs
24237 \family default
24238
24239 \family sans
24240 Paths
24241 \family default
24242 ) by entering in the 
24243 \family sans
24244 \SpecialChar LyX
24245 server pipe
24246 \family default
24247  a path like 
24248 \begin_inset Quotes eld
24249 \end_inset
24250
24251
24252 \family typewriter
24253 /home/<your-home-directory>/.lyx/lyxpipe
24254 \family default
24255
24256 \begin_inset Quotes erd
24257 \end_inset
24258
24259
24260 \end_layout
24261
24262 \begin_layout Standard
24263 Read the \SpecialChar LyX
24264  server documentation in the 
24265 \emph on
24266 Customization Manual
24267 \emph default
24268  for further information.
24269 \end_layout
24270
24271 \begin_layout Subsubsection
24272 Toolbar extensions
24273 \end_layout
24274
24275 \begin_layout Standard
24276 There are six new buttons that can be added to your \SpecialChar LyX
24277  toolbar.
24278  Five of these buttons are short cuts to layout styles: 
24279 \family sans
24280 Standard
24281 \family default
24282
24283 \family sans
24284 Section
24285 \family default
24286
24287 \family sans
24288 \SpecialChar LaTeX
24289
24290 \family default
24291
24292 \family sans
24293 \SpecialChar LyX
24294 -Code
24295 \family default
24296 , and 
24297 \family sans
24298 Chunk
24299 \family default
24300 .
24301  The last one is a short cut to the 
24302 \begin_inset Quotes eld
24303 \end_inset
24304
24305 Build Program
24306 \begin_inset Quotes erd
24307 \end_inset
24308
24309  File menu entry.
24310  
24311 \end_layout
24312
24313 \begin_layout Standard
24314 \SpecialChar LyX
24315  has a range of buttons that are available for tool bar customization.
24316  In my toolbar I like to combine the six short cuts above with two more:
24317  One for 
24318 \family sans
24319 Document
24320 \family default
24321 \SpecialChar menuseparator
24322
24323 \family sans
24324 Update
24325 \family default
24326 \SpecialChar menuseparator
24327
24328 \family sans
24329 DVI
24330 \family default
24331  and the other for 
24332 \family sans
24333 Document\SpecialChar menuseparator
24334 View\SpecialChar menuseparator
24335 DVI
24336 \family default
24337  File menu entries.
24338  Here is how it looks like:
24339 \end_layout
24340
24341 \begin_layout LyX-Code
24342 Toolbar
24343 \end_layout
24344
24345 \begin_layout LyX-Code
24346   Layouts
24347 \end_layout
24348
24349 \begin_layout LyX-Code
24350   Icon "layout Standard"
24351 \end_layout
24352
24353 \begin_layout LyX-Code
24354   Icon "layout Section"
24355 \end_layout
24356
24357 \begin_layout LyX-Code
24358   Icon "layout \SpecialChar LaTeX
24359 "
24360 \end_layout
24361
24362 \begin_layout LyX-Code
24363   Icon "layout \SpecialChar LyX
24364 -Code"
24365 \end_layout
24366
24367 \begin_layout LyX-Code
24368   Icon "layout Chunk"
24369 \end_layout
24370
24371 \begin_layout LyX-Code
24372   Separator
24373 \end_layout
24374
24375 \begin_layout LyX-Code
24376   Icon "buffer-view"
24377 \end_layout
24378
24379 \begin_layout LyX-Code
24380   Icon "buffer-typeset"
24381 \end_layout
24382
24383 \begin_layout LyX-Code
24384   Icon "build-program"
24385 \end_layout
24386
24387 \begin_layout LyX-Code
24388   Separator
24389 \end_layout
24390
24391 \begin_layout LyX-Code
24392 .
24393 \end_layout
24394
24395 \begin_layout LyX-Code
24396 .
24397 \end_layout
24398
24399 \begin_layout LyX-Code
24400 .
24401 \end_layout
24402
24403 \begin_layout LyX-Code
24404 End
24405 \end_layout
24406
24407 \begin_layout Subsubsection
24408 Colors customization
24409 \end_layout
24410
24411 \begin_layout Standard
24412 There are a number of colors in \SpecialChar LyX
24413  that can be customized in 
24414 \family sans
24415 Preferences
24416 \family default
24417 .
24418  One of the things that bothers people is the \SpecialChar LaTeX
24419  font color.
24420  The default color is red, since the chunks uses \SpecialChar LaTeX
24421  font, and there is a lot
24422  of chunks in literate documents, you may get tired of seeing everything
24423  in red.
24424  You can change it by going to the tabs 
24425 \family sans
24426 Look&Feel
24427 \family default
24428
24429 \family sans
24430 Colors.
24431 \end_layout
24432
24433 \begin_layout Standard
24434 The next thing is the visible presence of the newline character in the screen.
24435  You can choose the color of this particular character and make it blend
24436  in the background.
24437  I recommend you choosing a color that is close to the background but not
24438  equal, that way you still can see it is there, but it is not bothering
24439  you anymore.
24440 \end_layout
24441
24442 \begin_layout Subsection
24443 \SpecialChar LyX
24444  and knitr/Sweave
24445 \end_layout
24446
24447 \begin_layout Standard
24448 Support for 
24449 \family sans
24450 knitr
24451 \family default
24452  and 
24453 \family sans
24454 Sweave
24455 \family default
24456  is documented in the 
24457 \emph on
24458 knitr.lyx
24459 \emph default
24460  example file and in the Sweave manual (menu 
24461 \family sans
24462 Help\SpecialChar menuseparator
24463 Specific Manuals
24464 \family default
24465 ).
24466 \end_layout
24467
24468 \begin_layout Chapter
24469 Special features
24470 \end_layout
24471
24472 \begin_layout Standard
24473 You can do everything with \SpecialChar LyX
24474  that you can do with \SpecialChar LaTeX
24475 .
24476  However, \SpecialChar LyX
24477  cannot support every \SpecialChar LaTeX
24478  feature directly.
24479  But you can always use \SpecialChar TeX
24480  Code.
24481  This chapter shows you some more special things you might want to use.
24482  For other special things you can do with figures, tables, floats, boxes
24483  and notes, have a look at the 
24484 \emph on
24485 Embedded
24486 \begin_inset space ~
24487 \end_inset
24488
24489 Objects
24490 \emph default
24491  manual.
24492 \end_layout
24493
24494 \begin_layout Section
24495 Multiple Text Columns
24496 \end_layout
24497
24498 \begin_layout Standard
24499 This feature is independent of the option 
24500 \family sans
24501 Two-column document
24502 \family default
24503  in the document settings under 
24504 \family sans
24505 Text Layout
24506 \family default
24507 .
24508  If you want to have 2
24509 \begin_inset space ~
24510 \end_inset
24511
24512 columns for the whole document, it is recommended to use the 
24513 \family sans
24514 Two-column document
24515 \family default
24516  option.
24517  For all other cases use this feature.
24518 \end_layout
24519
24520 \begin_layout Standard
24521 To use multiple text columns in your document, you have to load the module
24522  
24523 \family sans
24524 Multiple Columns
24525 \family default
24526  (menu 
24527 \family sans
24528 Document\SpecialChar menuseparator
24529 Settings\SpecialChar menuseparator
24530 Modules
24531 \family default
24532 ) and must have the \SpecialChar LaTeX
24533 -package 
24534 \series bold
24535 multicol
24536 \series default
24537  installed.
24538 \end_layout
24539
24540 \begin_layout Standard
24541 Footnotes within multiple columns will be placed at the bottom of the page
24542  and not under each column.
24543  Within the different columns you can use everything, with the limitation
24544  that for floats you need to use the float option 
24545 \family sans
24546 Span columns
24547 \family default
24548 .
24549 \end_layout
24550
24551 \begin_layout Subsection
24552 Basics
24553 \end_layout
24554
24555 \begin_layout Standard
24556 If you want to have 2
24557 \begin_inset space ~
24558 \end_inset
24559
24560 columns in your text, insert a multicolumn inset via the menu 
24561 \family sans
24562 Insert\SpecialChar menuseparator
24563 Custom
24564 \begin_inset space ~
24565 \end_inset
24566
24567 Insets\SpecialChar menuseparator
24568 Multiple
24569 \begin_inset space ~
24570 \end_inset
24571
24572 Columns
24573 \family default
24574  where the columns should start.
24575  Write all text that should be printed in 2
24576 \begin_inset space ~
24577 \end_inset
24578
24579 columns into this inset.
24580 \end_layout
24581
24582 \begin_layout Standard
24583 Here is an example:
24584 \end_layout
24585
24586 \begin_layout Standard
24587 \noindent
24588 \begin_inset Flex Multiple Columns
24589 status open
24590
24591 \begin_layout Plain Layout
24592 \noindent
24593
24594 \series bold
24595 \size small
24596 The Adventure of the Empty House
24597 \series default
24598
24599 \begin_inset Newline newline
24600 \end_inset
24601
24602 by Sir Arthur Conan Doyle
24603 \end_layout
24604
24605 \begin_layout Plain Layout
24606
24607 \size small
24608 It was in the spring of the year 1894 that all London was interested, and
24609  the fashionable world dismayed, by the murder of the Honourable Ronald
24610  Adair under most unusual and inexplicable circumstances.
24611  The public has already learned those particulars of the crime which came
24612  out in the police investigation, but a good deal was suppressed upon that
24613  occasion, since the case for the prosecution was so overwhelmingly strong
24614  that it was not necessary to bring forward all the facts.
24615  Only now, at the end of nearly ten years, am I allowed to supply those
24616  missing links which make up the whole of that remarkable chain.
24617  The crime was of interest in itself, but that interest was as nothing to
24618  me compared to the inconceivable sequel, which afforded me the greatest
24619  shock and surprise of any event in my adventurous life.
24620  Even now, after this long interval, I find myself thrilling as I think
24621  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24622 ty which utterly submerged my mind.
24623  Let me say to that public, which has shown some interest in those glimpses
24624  which I have occasionally given them of the thoughts and actions of a very
24625  remarkable man, that they are not to blame me if I have not shared my knowledge
24626  with them, for I should have considered it my first duty to do so, had
24627  I not been barred by a positive prohibition from his own lips, which was
24628  only withdrawn upon the third of last month.
24629 \end_layout
24630
24631 \end_inset
24632
24633
24634 \end_layout
24635
24636 \begin_layout Standard
24637 To get 3 or more columns, set the cursor into the multicolumn inset and
24638  use the menu 
24639 \family sans
24640 Insert\SpecialChar menuseparator
24641 Number
24642 \begin_inset space ~
24643 \end_inset
24644
24645 of
24646 \begin_inset space ~
24647 \end_inset
24648
24649 Columns
24650 \family default
24651 .
24652  The number of the desired columns is written into that inset (for 3
24653 \begin_inset space ~
24654 \end_inset
24655
24656 columns write 
24657 \begin_inset Quotes eld
24658 \end_inset
24659
24660 3
24661 \begin_inset Quotes erd
24662 \end_inset
24663
24664 ).
24665 \begin_inset Newline newline
24666 \end_inset
24667
24668 Here is an example with 3
24669 \begin_inset space ~
24670 \end_inset
24671
24672 columns:
24673 \end_layout
24674
24675 \begin_layout Standard
24676 \begin_inset Flex Multiple Columns
24677 status open
24678
24679 \begin_layout Plain Layout
24680
24681 \size footnotesize
24682 \begin_inset Argument 1
24683 status open
24684
24685 \begin_layout Plain Layout
24686 3
24687 \end_layout
24688
24689 \end_inset
24690
24691 It can be imagined that my close intimacy with Sherlock Holmes had interested
24692  me deeply in crime, and that after his disappearance I never failed to
24693  read with care the various problems which came before the public.
24694  And I even attempted, more than once, for my own private satisfaction,
24695  to employ his methods in their solution, though with indifferent success.
24696  There was none, however, which appealed to me like this tragedy of Ronald
24697  Adair.
24698  As I read the evidence at the inquest, which led up to a verdict of willful
24699  murder against some person or persons unknown, I realized more clearly
24700  than I had ever done the loss which the community had sustained by the
24701  death of Sherlock Holmes.
24702  There were points about this strange business which would, I was sure,
24703  have specially appealed to him, and the efforts of the police would have
24704  been supplemented, or more probably anticipated, by the trained observation
24705  and the alert mind of the first criminal agent in Europe.
24706  All day, as I drove upon my round, I turned over the case in my mind and
24707  found no explanation which appeared to me to be adequate.
24708  At the risk of telling a twice-told tale, I will recapitulate the facts
24709  as they were known to the public at the conclusion of the inquest.
24710 \end_layout
24711
24712 \end_inset
24713
24714
24715 \end_layout
24716
24717 \begin_layout Standard
24718 You can have up to 10
24719 \begin_inset space ~
24720 \end_inset
24721
24722 columns if you want to, but that might not be very pleasant for the readers
24723  of your document.
24724 \end_layout
24725
24726 \begin_layout Standard
24727 \begin_inset Newpage newpage
24728 \end_inset
24729
24730
24731 \end_layout
24732
24733 \begin_layout Subsection
24734 Columns inside Columns
24735 \end_layout
24736
24737 \begin_layout Standard
24738 You can also have columns inside columns:
24739 \end_layout
24740
24741 \begin_layout Standard
24742 \begin_inset Flex Multiple Columns
24743 status open
24744
24745 \begin_layout Plain Layout
24746
24747 \size footnotesize
24748 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24749  at that time governor of one of the Australian colonies.
24750  Adair's mother had returned from Australia to undergo the operation for
24751  cataract, and she, her son Ronald, and her daughter Hilda were living together
24752  at 427 Park Lane.
24753 \end_layout
24754
24755 \begin_layout Plain Layout
24756 \begin_inset Flex Multiple Columns
24757 status open
24758
24759 \begin_layout Plain Layout
24760
24761 \size footnotesize
24762 The youth moved in the best society–had, so far as was known, no enemies
24763  and no particular vices.
24764  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24765  had been broken off by mutual consent some months before, and there was
24766  no sign that it had left any very profound feeling behind it.
24767  For the rest {sic} the man's life moved in a narrow and conventional circle,
24768  for his habits were quiet and his nature unemotional.
24769  Yet it was upon this easy-going young aristocrat that death came, in most
24770  strange and unexpected form, between the hours of ten and eleven-twenty
24771  on the night of March 30, 1894.
24772 \end_layout
24773
24774 \end_inset
24775
24776
24777 \end_layout
24778
24779 \begin_layout Plain Layout
24780
24781 \size footnotesize
24782 Ronald Adair was fond of cards–playing continually, but never for such stakes
24783  as would hurt him.
24784  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24785  It was shown that, after dinner on the day of his death, he had played
24786  a rubber of whist at the latter club.
24787  He had also played there in the afternoon.
24788
24789 \size default
24790  
24791 \size footnotesize
24792 The evidence of those who had played with him– Mr.
24793  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24794  and that there was a fairly equal fall of the cards.
24795  Adair might have lost five pounds, but not more.
24796  His fortune was a considerable one, and such a loss could not in any way
24797  affect him.
24798  He had played nearly every day at one club or other, but he was a cautious
24799  player, and usually rose a winner.
24800  It came out in evidence that, in partnership with Colonel Moran, he had
24801  actually won as much as four hundred and twenty pounds in a sitting, some
24802  weeks before, from Godfrey Milner and Lord Balmoral.
24803  So much for his recent history as it came out at the inquest.
24804 \end_layout
24805
24806 \end_inset
24807
24808
24809 \end_layout
24810
24811 \begin_layout Subsection
24812 Advanced Examples
24813 \end_layout
24814
24815 \begin_layout Standard
24816 The examples in this section show some more special features of multiple
24817  columns.
24818 \end_layout
24819
24820 \begin_layout Standard
24821 For more features of multiple columns, have a look at the documentation
24822  of the \SpecialChar LaTeX
24823 -package 
24824 \series bold
24825 multicol
24826 \series default
24827
24828 \begin_inset CommandInset citation
24829 LatexCommand cite
24830 key "multicol"
24831 literal "true"
24832
24833 \end_inset
24834
24835 .
24836 \end_layout
24837
24838 \begin_layout Subsubsection
24839 Preface
24840 \end_layout
24841
24842 \begin_layout Standard
24843 To add a preface text for multiple columns, set the cursor into the multicolumn
24844  inset and use the menu 
24845 \family sans
24846 Insert\SpecialChar menuseparator
24847 Preface
24848 \family default
24849 .
24850  Write your preface text into that inset.
24851 \begin_inset Newline newline
24852 \end_inset
24853
24854 This is an example with some preface text:
24855 \end_layout
24856
24857 \begin_layout Standard
24858 \begin_inset VSpace bigskip
24859 \end_inset
24860
24861
24862 \end_layout
24863
24864 \begin_layout Standard
24865 \begin_inset Flex Multiple Columns
24866 status open
24867
24868 \begin_layout Plain Layout
24869 \begin_inset Argument 2
24870 status open
24871
24872 \begin_layout Plain Layout
24873 And the story continues and continues and continues and continues\SpecialChar ldots
24874
24875 \end_layout
24876
24877 \end_inset
24878
24879
24880 \size small
24881 On the evening of the crime, he returned from the club exactly at ten.
24882  His mother and sister were out spending the evening with a relation.
24883  The servant deposed that she heard him enter the front room on the second
24884  floor, generally used as his sitting-room.
24885  She had lit a fire there, and as it smoked she had opened the window.
24886  No sound was heard from the room until eleven-twenty, the hour of the return
24887  of Lady Maynooth and her daughter.
24888  Desiring to say good-night, she attempted to enter her son's room.
24889  The door was locked on the inside, and no answer could be got to their
24890  cries and knocking.
24891  Help was obtained, and the door forced.
24892  The unfortunate young man was found lying near the table.
24893  His head had been horribly mutilated by an expanding revolver bullet, but
24894  no weapon of any sort was to be found in the room.
24895 \end_layout
24896
24897 \end_inset
24898
24899
24900 \end_layout
24901
24902 \begin_layout Standard
24903 You can also use a section heading as the preface if you use a section command
24904  as \SpecialChar TeX
24905  Code.
24906  For example the command
24907 \end_layout
24908
24909 \begin_layout Standard
24910
24911 \series bold
24912
24913 \backslash
24914 subsection{subsection title}
24915 \end_layout
24916
24917 \begin_layout Standard
24918 creates a subsection.
24919  In this example the preface is a subsubsection:
24920 \end_layout
24921
24922 \begin_layout Standard
24923 \begin_inset Flex Multiple Columns
24924 status open
24925
24926 \begin_layout Plain Layout
24927 \begin_inset Argument 2
24928 status open
24929
24930 \begin_layout Plain Layout
24931 \begin_inset ERT
24932 status collapsed
24933
24934 \begin_layout Plain Layout
24935
24936
24937 \backslash
24938 subsubsection{
24939 \end_layout
24940
24941 \end_inset
24942
24943 This is a subsubsection heading as a preface
24944 \begin_inset ERT
24945 status collapsed
24946
24947 \begin_layout Plain Layout
24948
24949 }
24950 \end_layout
24951
24952 \end_inset
24953
24954
24955 \end_layout
24956
24957 \end_inset
24958
24959
24960 \size small
24961 A minute examination of the circumstances served only to make the case more
24962  complex.
24963  In the first place, no reason could be given why the young man should have
24964  fastened the door upon the inside.
24965  There was the possibility that the murderer had done this, and had afterwards
24966  escaped by the window.
24967  The drop was at least twenty feet, however, and a bed of crocuses in full
24968  bloom lay beneath.
24969  Neither the flowers nor the earth showed any sign of having been disturbed,
24970  nor were there any marks upon the narrow strip of grass which separated
24971  the house from the road.
24972  Apparently, therefore, it was the young man himself who had fastened the
24973  door.
24974  But how did he come by his death? No one could have climbed up to the window
24975  without leaving traces.
24976  Suppose a man had fired through the window, he would indeed be a remarkable
24977  shot who could with a revolver inflict so deadly a wound.
24978  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24979  a hundred yards of the house.
24980  No one had heard a shot.
24981 \end_layout
24982
24983 \end_inset
24984
24985
24986 \end_layout
24987
24988 \begin_layout Standard
24989 If there is less vertical space than 6
24990 \begin_inset space ~
24991 \end_inset
24992
24993 text lines is left on the page at the beginning of the multiple columns,
24994  a page break will be inserted before the multiple columns.
24995  Depending on the number of lines of the preface text, you might want to
24996  change this space.
24997  This is done by setting the cursor into the mulitcolumn inset behind the
24998  preface (if there is any) and using the menu 
24999 \family sans
25000 Insert\SpecialChar menuseparator
25001 Space
25002 \begin_inset space ~
25003 \end_inset
25004
25005 Before
25006 \begin_inset space ~
25007 \end_inset
25008
25009 Page
25010 \begin_inset space ~
25011 \end_inset
25012
25013 Break
25014 \family default
25015 .
25016  Insert into that inset the amount of space like e.
25017 \begin_inset space \thinspace{}
25018 \end_inset
25019
25020 g.
25021 \begin_inset space \space{}
25022 \end_inset
25023
25024
25025 \begin_inset Quotes eld
25026 \end_inset
25027
25028 5cm
25029 \begin_inset Quotes erd
25030 \end_inset
25031
25032 .
25033 \begin_inset Newline newline
25034 \end_inset
25035
25036 In this example the space is set to 7
25037 \begin_inset space ~
25038 \end_inset
25039
25040 text lines by using 
25041 \begin_inset Quotes eld
25042 \end_inset
25043
25044 7
25045 \backslash
25046 baselineskip
25047 \begin_inset Quotes erd
25048 \end_inset
25049
25050  (where the command 
25051 \series bold
25052
25053 \backslash
25054 baselineskip
25055 \series default
25056  needs to be inserted as \SpecialChar TeX
25057  code):
25058 \end_layout
25059
25060 \begin_layout Standard
25061 \begin_inset Flex Multiple Columns
25062 status open
25063
25064 \begin_layout Plain Layout
25065 \begin_inset Argument 3
25066 status open
25067
25068 \begin_layout Plain Layout
25069 7
25070 \begin_inset ERT
25071 status collapsed
25072
25073 \begin_layout Plain Layout
25074
25075
25076 \backslash
25077 baselineskip
25078 \end_layout
25079
25080 \end_inset
25081
25082
25083 \end_layout
25084
25085 \end_inset
25086
25087
25088 \size small
25089 On the evening of the crime, he returned from the club exactly at ten.
25090  His mother and sister were out spending the evening with a relation.
25091  The servant deposed that she heard him enter the front room on the second
25092  floor, generally used as his sitting-room.
25093  She had lit a fire there, and as it smoked she had opened the window.
25094  No sound was heard from the room until eleven-twenty, the hour of the return
25095  of Lady Maynooth and her daughter.
25096  Desiring to say good-night, she attempted to enter her son's room.
25097  The door was locked on the inside, and no answer could be got to their
25098  cries and knocking.
25099  Help was obtained, and the door forced.
25100  The unfortunate young man was found lying near the table.
25101  His head had been horribly mutilated by an expanding revolver bullet, but
25102  no weapon of any sort was to be found in the room.
25103 \end_layout
25104
25105 \end_inset
25106
25107
25108 \end_layout
25109
25110 \begin_layout Subsubsection
25111 Surrounding Space
25112 \end_layout
25113
25114 \begin_layout Standard
25115 The amount of space before and after multiple columns can be changed by
25116  changing the length 
25117 \series bold
25118
25119 \backslash
25120 multicolsep
25121 \series default
25122 .
25123  For example the command
25124 \end_layout
25125
25126 \begin_layout Standard
25127
25128 \series bold
25129
25130 \backslash
25131 setlength{
25132 \backslash
25133 multicolsep}{3cm}
25134 \end_layout
25135
25136 \begin_layout Standard
25137 in \SpecialChar TeX
25138  Code changes its value to 3
25139 \begin_inset space \thinspace{}
25140 \end_inset
25141
25142 cm.
25143  The change must be made before the multiple columns' start.
25144  The predefined value is 13
25145 \begin_inset space \thinspace{}
25146 \end_inset
25147
25148 pt.
25149 \end_layout
25150
25151 \begin_layout Standard
25152 For this example 
25153 \series bold
25154
25155 \backslash
25156 multicolsep
25157 \series default
25158  was set to 2.5
25159 \begin_inset space \thinspace{}
25160 \end_inset
25161
25162 cm:
25163 \end_layout
25164
25165 \begin_layout Standard
25166 \begin_inset ERT
25167 status open
25168
25169 \begin_layout Plain Layout
25170
25171
25172 \backslash
25173 setlength{
25174 \backslash
25175 multicolsep}{2.5cm}
25176 \end_layout
25177
25178 \end_inset
25179
25180
25181 \end_layout
25182
25183 \begin_layout Standard
25184 \begin_inset Flex Multiple Columns
25185 status open
25186
25187 \begin_layout Plain Layout
25188
25189 \size small
25190 All day I turned these facts over in my mind, endeavouring to hit upon some
25191  theory which could reconcile them all, and to find that line of least resistanc
25192 e which my poor friend had declared to be the starting-point of every investigat
25193 ion.
25194  I confess that I made little progress.
25195  In the evening I strolled across the Park, and found myself about six o'clock
25196  at the Oxford Street end of Park Lane.
25197  A group of loafers upon the pavements, all staring up at a particular window,
25198  directed me to the house which I had come to see.
25199  A tall, thin man with coloured glasses, whom I strongly suspected of being
25200  a plain-clothes detective, was pointing out some theory of his own, while
25201  the others crowded round to listen to what he said.
25202  I got as near him as I could, but his observations seemed to me to be absurd,
25203  so I withdrew again in some disgust.
25204  As I did so I struck against an elderly, deformed man, who had been behind
25205  me, and I knocked down several books which he was carrying.
25206 \end_layout
25207
25208 \end_inset
25209
25210
25211 \end_layout
25212
25213 \begin_layout Standard
25214 \begin_inset Note Greyedout
25215 status open
25216
25217 \begin_layout Plain Layout
25218
25219 \series bold
25220 Note:
25221 \series default
25222  The values you set with 
25223 \series bold
25224
25225 \backslash
25226 setlength
25227 \series default
25228  will be used for all following multiple columns until you change them again.
25229 \end_layout
25230
25231 \end_inset
25232
25233
25234 \end_layout
25235
25236 \begin_layout Standard
25237 \begin_inset ERT
25238 status collapsed
25239
25240 \begin_layout Plain Layout
25241
25242
25243 \backslash
25244 setlength{
25245 \backslash
25246 multicolsep}{13pt}
25247 \end_layout
25248
25249 \end_inset
25250
25251
25252 \begin_inset Note Note
25253 status collapsed
25254
25255 \begin_layout Plain Layout
25256 go back to the default
25257 \end_layout
25258
25259 \end_inset
25260
25261
25262 \end_layout
25263
25264 \begin_layout Standard
25265 \begin_inset Newpage newpage
25266 \end_inset
25267
25268
25269 \end_layout
25270
25271 \begin_layout Subsubsection
25272 Column Breaks
25273 \end_layout
25274
25275 \begin_layout Standard
25276 A column break can be forced by inserting the command 
25277 \series bold
25278
25279 \backslash
25280 columnbreak{}
25281 \series default
25282  as \SpecialChar TeX
25283  Code to that position in the text where the column should be broken.
25284  Note that this leads in most cases to whitespace in the text.
25285 \begin_inset Newline newline
25286 \end_inset
25287
25288 Here is an example:
25289 \end_layout
25290
25291 \begin_layout Standard
25292 \begin_inset Flex Multiple Columns
25293 status open
25294
25295 \begin_layout Plain Layout
25296
25297 \size small
25298 \begin_inset Quotes eld
25299 \end_inset
25300
25301 You're surprised to see me, sir,
25302 \begin_inset Quotes erd
25303 \end_inset
25304
25305  said he, in a strange, croaking voice.
25306 \end_layout
25307
25308 \begin_layout Plain Layout
25309
25310 \size small
25311 I acknowledged that I was.
25312 \end_layout
25313
25314 \begin_layout Plain Layout
25315
25316 \size small
25317 \begin_inset Quotes eld
25318 \end_inset
25319
25320 Well, I've a conscience, sir, and when I chanced to see you go into this
25321  house, as I came hobbling after you, I thought to myself, I'll just step
25322  in and see that kind gentleman, and tell him that if I was a bit gruff
25323  in my manner there was not any harm meant, and that I am much obliged to
25324  him for picking up my books.
25325 \begin_inset Quotes erd
25326 \end_inset
25327
25328
25329 \end_layout
25330
25331 \begin_layout Plain Layout
25332
25333 \size small
25334 \begin_inset Quotes eld
25335 \end_inset
25336
25337 You make too much of a trifle,
25338 \begin_inset Quotes erd
25339 \end_inset
25340
25341  said I.
25342  
25343 \begin_inset Quotes eld
25344 \end_inset
25345
25346 May I ask how you knew who I was?
25347 \begin_inset Quotes erd
25348 \end_inset
25349
25350  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25351 \begin_inset ERT
25352 status collapsed
25353
25354 \begin_layout Plain Layout
25355
25356
25357 \backslash
25358 columnbreak{}
25359 \end_layout
25360
25361 \end_inset
25362
25363
25364 \end_layout
25365
25366 \begin_layout Plain Layout
25367
25368 \size small
25369 \begin_inset Quotes eld
25370 \end_inset
25371
25372 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25373  you'll find my little bookshop at the corner of Church Street, and very
25374  happy to see you, I am sure.
25375  Maybe you collect yourself, sir.
25376  Here's 
25377 \noun on
25378 British
25379 \begin_inset space ~
25380 \end_inset
25381
25382 Birds
25383 \noun default
25384 , and 
25385 \noun on
25386 Catullus
25387 \noun default
25388 , and 
25389 \noun on
25390 The Holy War
25391 \noun default
25392 –a bargain, every one of them.
25393  With five volumes you could just fill that gap on that second shelf.
25394  It looks untidy, does it not, sir?
25395 \begin_inset Quotes erd
25396 \end_inset
25397
25398
25399 \end_layout
25400
25401 \end_inset
25402
25403
25404 \end_layout
25405
25406 \begin_layout Subsubsection
25407 Column Separation
25408 \end_layout
25409
25410 \begin_layout Standard
25411 The width of the columns is automatically calculated, but you can modify
25412  the space between the columns.
25413  This is done by changing the length 
25414 \series bold
25415
25416 \backslash
25417 columnsep
25418 \series default
25419 .
25420  Its predefined value is 10
25421 \begin_inset space \thinspace{}
25422 \end_inset
25423
25424 pt.
25425  Here is an example where 
25426 \series bold
25427
25428 \backslash
25429 columnsep
25430 \series default
25431  is set to 3
25432 \begin_inset space \thinspace{}
25433 \end_inset
25434
25435 cm:
25436 \end_layout
25437
25438 \begin_layout Standard
25439 \begin_inset ERT
25440 status open
25441
25442 \begin_layout Plain Layout
25443
25444
25445 \backslash
25446 setlength{
25447 \backslash
25448 columnsep}{3cm}
25449 \end_layout
25450
25451 \end_inset
25452
25453
25454 \end_layout
25455
25456 \begin_layout Standard
25457 \begin_inset Flex Multiple Columns
25458 status open
25459
25460 \begin_layout Plain Layout
25461
25462 \size small
25463 My observations of No.
25464 \begin_inset space \space{}
25465 \end_inset
25466
25467 427 Park Lane did little to clear up the problem in which I was interested.
25468  The house was separated from the street by a low wall and railing, the
25469  whole not more than five feet high.
25470  It was perfectly easy, therefore, for anyone to get into the garden, but
25471  the window was entirely inaccessible, since there was no water pipe or
25472  anything which could help the most active man to climb it.
25473  More puzzled than ever, I retraced my steps to Kensington.
25474  I had not been in my study five minutes when the maid entered to say that
25475  a person desired to see me.
25476  To my astonishment it was none other than my strange old book collector,
25477  his sharp, wizened face peering out from a frame of white hair, and his
25478  precious volumes, a dozen of them at least, wedged under his right arm.
25479 \end_layout
25480
25481 \end_inset
25482
25483
25484 \end_layout
25485
25486 \begin_layout Standard
25487 \begin_inset ERT
25488 status collapsed
25489
25490 \begin_layout Plain Layout
25491
25492
25493 \backslash
25494 setlength{
25495 \backslash
25496 columnsep}{10pt}
25497 \end_layout
25498
25499 \end_inset
25500
25501
25502 \begin_inset Note Note
25503 status collapsed
25504
25505 \begin_layout Plain Layout
25506 go back to the default
25507 \end_layout
25508
25509 \end_inset
25510
25511
25512 \end_layout
25513
25514 \begin_layout Subsubsection
25515 Vertical Lines
25516 \end_layout
25517
25518 \begin_layout Standard
25519 Between the columns a rule with a width of the length 
25520 \series bold
25521
25522 \backslash
25523 columnseprule
25524 \series default
25525  is placed.
25526  If this rule width is set to 0
25527 \begin_inset space \thinspace{}
25528 \end_inset
25529
25530 pt (this is the default), the rule is suppressed.
25531  In the following example the rule is 2
25532 \begin_inset space \thinspace{}
25533 \end_inset
25534
25535 pt wide:
25536 \end_layout
25537
25538 \begin_layout Standard
25539 \begin_inset ERT
25540 status open
25541
25542 \begin_layout Plain Layout
25543
25544
25545 \backslash
25546 setlength{
25547 \backslash
25548 columnseprule}{2pt}
25549 \end_layout
25550
25551 \end_inset
25552
25553
25554 \end_layout
25555
25556 \begin_layout Standard
25557 \begin_inset Flex Multiple Columns
25558 status open
25559
25560 \begin_layout Plain Layout
25561
25562 \size small
25563 \begin_inset Quotes eld
25564 \end_inset
25565
25566 You're surprised to see me, sir,
25567 \begin_inset Quotes erd
25568 \end_inset
25569
25570  said he, in a strange, croaking voice.
25571 \end_layout
25572
25573 \begin_layout Plain Layout
25574
25575 \size small
25576 I acknowledged that I was.
25577 \end_layout
25578
25579 \begin_layout Plain Layout
25580
25581 \size small
25582 \begin_inset Quotes eld
25583 \end_inset
25584
25585 Well, I've a conscience, sir, and when I chanced to see you go into this
25586  house, as I came hobbling after you, I thought to myself, I'll just step
25587  in and see that kind gentleman, and tell him that if I was a bit gruff
25588  in my manner there was not any harm meant, and that I am much obliged to
25589  him for picking up my books.
25590 \begin_inset Quotes erd
25591 \end_inset
25592
25593
25594 \end_layout
25595
25596 \begin_layout Plain Layout
25597
25598 \size small
25599 \begin_inset Quotes eld
25600 \end_inset
25601
25602 You make too much of a trifle,
25603 \begin_inset Quotes erd
25604 \end_inset
25605
25606  said I.
25607  
25608 \begin_inset Quotes eld
25609 \end_inset
25610
25611 May I ask how you knew who I was?
25612 \begin_inset Quotes erd
25613 \end_inset
25614
25615
25616 \end_layout
25617
25618 \begin_layout Plain Layout
25619
25620 \size small
25621 \begin_inset Quotes eld
25622 \end_inset
25623
25624 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25625  you'll find my little bookshop at the corner of Church Street, and very
25626  happy to see you, I am sure.
25627  Maybe you collect yourself, sir.
25628  Here's 
25629 \noun on
25630 British
25631 \begin_inset space ~
25632 \end_inset
25633
25634 Birds
25635 \noun default
25636 , and 
25637 \noun on
25638 Catullus
25639 \noun default
25640 , and 
25641 \noun on
25642 The Holy War
25643 \noun default
25644 –a bargain, every one of them.
25645  With five volumes you could just fill that gap on that second shelf.
25646  It looks untidy, does it not, sir?
25647 \begin_inset Quotes erd
25648 \end_inset
25649
25650
25651 \end_layout
25652
25653 \end_inset
25654
25655
25656 \end_layout
25657
25658 \begin_layout Standard
25659 \begin_inset VSpace defskip
25660 \end_inset
25661
25662
25663 \end_layout
25664
25665 \begin_layout Standard
25666 The rule can be colored by redefining the command 
25667 \series bold
25668
25669 \backslash
25670 columnseprulecolor
25671 \series default
25672 .
25673  This is done by inserting the command
25674 \begin_inset Newline newline
25675 \end_inset
25676
25677
25678 \series bold
25679
25680 \backslash
25681 renewcommand{
25682 \backslash
25683 columnseprulecolor}{
25684 \backslash
25685 color{red}}
25686 \series default
25687
25688 \begin_inset Newline newline
25689 \end_inset
25690
25691 as \SpecialChar TeX
25692  Code before the multicolumn inset.
25693  Replace 
25694 \series bold
25695 red
25696 \series default
25697  in this command by a color of your choice.
25698  You can use all pre- and self-defined colors.
25699  See the 
25700 \emph on
25701 EmbeddedObjects
25702 \emph default
25703  manual, section 
25704 \emph on
25705 Colored
25706 \begin_inset space ~
25707 \end_inset
25708
25709 Tables
25710 \emph default
25711  for more information about pre- and self-defined colors.
25712  To go back to the default color insert the command
25713 \begin_inset Newline newline
25714 \end_inset
25715
25716
25717 \series bold
25718
25719 \backslash
25720 renewcommand{
25721 \backslash
25722 columnseprulecolor}{
25723 \backslash
25724 normalcolor}
25725 \series default
25726
25727 \begin_inset Newline newline
25728 \end_inset
25729
25730 Here is the example with a cyan rule and 1
25731 \begin_inset space \thinspace{}
25732 \end_inset
25733
25734 cm column separation:
25735 \end_layout
25736
25737 \begin_layout Standard
25738 \begin_inset ERT
25739 status open
25740
25741 \begin_layout Plain Layout
25742
25743
25744 \backslash
25745 setlength{
25746 \backslash
25747 columnsep}{1cm}
25748 \end_layout
25749
25750 \begin_layout Plain Layout
25751
25752
25753 \backslash
25754 renewcommand{
25755 \backslash
25756 columnseprulecolor}{
25757 \backslash
25758 color{cyan}}
25759 \end_layout
25760
25761 \end_inset
25762
25763
25764 \end_layout
25765
25766 \begin_layout Standard
25767 \begin_inset Flex Multiple Columns
25768 status open
25769
25770 \begin_layout Plain Layout
25771
25772 \size small
25773 \begin_inset Quotes eld
25774 \end_inset
25775
25776 You're surprised to see me, sir,
25777 \begin_inset Quotes erd
25778 \end_inset
25779
25780  said he, in a strange, croaking voice.
25781 \end_layout
25782
25783 \begin_layout Plain Layout
25784
25785 \size small
25786 I acknowledged that I was.
25787 \end_layout
25788
25789 \begin_layout Plain Layout
25790
25791 \size small
25792 \begin_inset Quotes eld
25793 \end_inset
25794
25795 Well, I've a conscience, sir, and when I chanced to see you go into this
25796  house, as I came hobbling after you, I thought to myself, I'll just step
25797  in and see that kind gentleman, and tell him that if I was a bit gruff
25798  in my manner there was not any harm meant, and that I am much obliged to
25799  him for picking up my books.
25800 \begin_inset Quotes erd
25801 \end_inset
25802
25803
25804 \end_layout
25805
25806 \begin_layout Plain Layout
25807
25808 \size small
25809 \begin_inset Quotes eld
25810 \end_inset
25811
25812 You make too much of a trifle,
25813 \begin_inset Quotes erd
25814 \end_inset
25815
25816  said I.
25817  
25818 \begin_inset Quotes eld
25819 \end_inset
25820
25821 May I ask how you knew who I was?
25822 \begin_inset Quotes erd
25823 \end_inset
25824
25825
25826 \end_layout
25827
25828 \begin_layout Plain Layout
25829
25830 \size small
25831 \begin_inset Quotes eld
25832 \end_inset
25833
25834 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25835  you'll find my little bookshop at the corner of Church Street, and very
25836  happy to see you, I am sure.
25837  Maybe you collect yourself, sir.
25838  Here's 
25839 \noun on
25840 British
25841 \begin_inset space ~
25842 \end_inset
25843
25844 Birds
25845 \noun default
25846 , and 
25847 \noun on
25848 Catullus
25849 \noun default
25850 , and 
25851 \noun on
25852 The Holy War
25853 \noun default
25854 –a bargain, every one of them.
25855  With five volumes you could just fill that gap on that second shelf.
25856  It looks untidy, does it not, sir?
25857 \begin_inset Quotes erd
25858 \end_inset
25859
25860
25861 \end_layout
25862
25863 \end_inset
25864
25865
25866 \end_layout
25867
25868 \begin_layout Standard
25869 \begin_inset ERT
25870 status collapsed
25871
25872 \begin_layout Plain Layout
25873
25874
25875 \backslash
25876 setlength{
25877 \backslash
25878 columnseprule}{0pt}
25879 \end_layout
25880
25881 \begin_layout Plain Layout
25882
25883
25884 \backslash
25885 renewcommand{
25886 \backslash
25887 columnseprulecolor}{
25888 \backslash
25889 normalcolor}
25890 \end_layout
25891
25892 \end_inset
25893
25894
25895 \begin_inset Note Note
25896 status collapsed
25897
25898 \begin_layout Plain Layout
25899 go back to the default
25900 \end_layout
25901
25902 \end_inset
25903
25904
25905 \end_layout
25906
25907 \begin_layout Section
25908 Non-standard Paragraph Shapes
25909 \end_layout
25910
25911 \begin_layout Standard
25912 \noindent
25913 \SpecialChar LaTeX
25914  as well as any other text processor uses by default rectangular paragraphs.
25915  For special cases like for example posters, invitation cards or poems you
25916  can modify the paragraph shape to one of your choice.
25917  This can be done by using the \SpecialChar LaTeX
25918 -package 
25919 \series bold
25920 shapepar
25921 \series default
25922  which is loaded by using in the document settings the module 
25923 \family sans
25924 Custom paragraph shapes
25925 \family default
25926 .
25927 \end_layout
25928
25929 \begin_layout Subsection
25930 Predefined shapes
25931 \end_layout
25932
25933 \begin_layout Standard
25934
25935 \series bold
25936 shapepar
25937 \series default
25938  provides the following shapes:
25939 \end_layout
25940
25941 \begin_layout Standard
25942 \begin_inset Tabular
25943 <lyxtabular version="3" rows="13" columns="3">
25944 <features booktabs="true" islongtable="true" longtabularalignment="center">
25945 <column alignment="center" valignment="middle" width="16col%">
25946 <column alignment="center" valignment="middle" width="40col%">
25947 <column alignment="center" valignment="middle" width="35col%">
25948 <row endhead="true">
25949 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25950 \begin_inset Text
25951
25952 \begin_layout Plain Layout
25953 Name
25954 \end_layout
25955
25956 \end_inset
25957 </cell>
25958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25959 \begin_inset Text
25960
25961 \begin_layout Plain Layout
25962 Description
25963 \end_layout
25964
25965 \end_inset
25966 </cell>
25967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25968 \begin_inset Text
25969
25970 \begin_layout Plain Layout
25971 Annotation
25972 \end_layout
25973
25974 \end_inset
25975 </cell>
25976 </row>
25977 <row>
25978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25979 \begin_inset Text
25980
25981 \begin_layout Plain Layout
25982 CDlabel
25983 \end_layout
25984
25985 \end_inset
25986 </cell>
25987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25988 \begin_inset Text
25989
25990 \begin_layout Plain Layout
25991 Circle with circular hole (in the size of a CD/DVD)
25992 \end_layout
25993
25994 \end_inset
25995 </cell>
25996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25997 \begin_inset Text
25998
25999 \begin_layout Plain Layout
26000 Cannot be scaled, take care there is not too much text
26001 \end_layout
26002
26003 \end_inset
26004 </cell>
26005 </row>
26006 <row>
26007 <cell alignment="center" valignment="top" topline="true" usebox="none">
26008 \begin_inset Text
26009
26010 \begin_layout Plain Layout
26011 Circle
26012 \end_layout
26013
26014 \end_inset
26015 </cell>
26016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26017 \begin_inset Text
26018
26019 \begin_layout Plain Layout
26020 Circle
26021 \end_layout
26022
26023 \end_inset
26024 </cell>
26025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26026 \begin_inset Text
26027
26028 \begin_layout Plain Layout
26029 Fragile, calculation might fail
26030 \end_layout
26031
26032 \end_inset
26033 </cell>
26034 </row>
26035 <row>
26036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26037 \begin_inset Text
26038
26039 \begin_layout Plain Layout
26040 Diamond
26041 \end_layout
26042
26043 \end_inset
26044 </cell>
26045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26046 \begin_inset Text
26047
26048 \begin_layout Plain Layout
26049 Rhomboid (symbolizing a 
26050 \begin_inset Quotes eld
26051 \end_inset
26052
26053 diamond
26054 \begin_inset Quotes erd
26055 \end_inset
26056
26057 )
26058 \end_layout
26059
26060 \end_inset
26061 </cell>
26062 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26063 \begin_inset Text
26064
26065 \begin_layout Plain Layout
26066 -
26067 \end_layout
26068
26069 \end_inset
26070 </cell>
26071 </row>
26072 <row>
26073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26074 \begin_inset Text
26075
26076 \begin_layout Plain Layout
26077 Heart
26078 \end_layout
26079
26080 \end_inset
26081 </cell>
26082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26083 \begin_inset Text
26084
26085 \begin_layout Plain Layout
26086 Heart-like shape
26087 \end_layout
26088
26089 \end_inset
26090 </cell>
26091 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26092 \begin_inset Text
26093
26094 \begin_layout Plain Layout
26095 -
26096 \end_layout
26097
26098 \end_inset
26099 </cell>
26100 </row>
26101 <row>
26102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26103 \begin_inset Text
26104
26105 \begin_layout Plain Layout
26106 Hexagon
26107 \end_layout
26108
26109 \end_inset
26110 </cell>
26111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26112 \begin_inset Text
26113
26114 \begin_layout Plain Layout
26115 Hexagon
26116 \end_layout
26117
26118 \end_inset
26119 </cell>
26120 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26121 \begin_inset Text
26122
26123 \begin_layout Plain Layout
26124 -
26125 \end_layout
26126
26127 \end_inset
26128 </cell>
26129 </row>
26130 <row>
26131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26132 \begin_inset Text
26133
26134 \begin_layout Plain Layout
26135 Nut
26136 \end_layout
26137
26138 \end_inset
26139 </cell>
26140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26141 \begin_inset Text
26142
26143 \begin_layout Plain Layout
26144 Nut for bolt (hexagon with circular hole)
26145 \end_layout
26146
26147 \end_inset
26148 </cell>
26149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26150 \begin_inset Text
26151
26152 \begin_layout Plain Layout
26153 -
26154 \end_layout
26155
26156 \end_inset
26157 </cell>
26158 </row>
26159 <row>
26160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26161 \begin_inset Text
26162
26163 \begin_layout Plain Layout
26164 Square
26165 \end_layout
26166
26167 \end_inset
26168 </cell>
26169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26170 \begin_inset Text
26171
26172 \begin_layout Plain Layout
26173 Square
26174 \end_layout
26175
26176 \end_inset
26177 </cell>
26178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26179 \begin_inset Text
26180
26181 \begin_layout Plain Layout
26182 -
26183 \end_layout
26184
26185 \end_inset
26186 </cell>
26187 </row>
26188 <row>
26189 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26190 \begin_inset Text
26191
26192 \begin_layout Plain Layout
26193 Star
26194 \end_layout
26195
26196 \end_inset
26197 </cell>
26198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26199 \begin_inset Text
26200
26201 \begin_layout Plain Layout
26202 Five-point star
26203 \end_layout
26204
26205 \end_inset
26206 </cell>
26207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26208 \begin_inset Text
26209
26210 \begin_layout Plain Layout
26211 -
26212 \end_layout
26213
26214 \end_inset
26215 </cell>
26216 </row>
26217 <row>
26218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26219 \begin_inset Text
26220
26221 \begin_layout Plain Layout
26222 Candle
26223 \end_layout
26224
26225 \end_inset
26226 </cell>
26227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26228 \begin_inset Text
26229
26230 \begin_layout Plain Layout
26231 Burning candle
26232 \end_layout
26233
26234 \end_inset
26235 </cell>
26236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26237 \begin_inset Text
26238
26239 \begin_layout Plain Layout
26240 -
26241 \end_layout
26242
26243 \end_inset
26244 </cell>
26245 </row>
26246 <row>
26247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26248 \begin_inset Text
26249
26250 \begin_layout Plain Layout
26251 Drop down/up
26252 \end_layout
26253
26254 \end_inset
26255 </cell>
26256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26257 \begin_inset Text
26258
26259 \begin_layout Plain Layout
26260 Normal/reversed rain drop
26261 \end_layout
26262
26263 \end_inset
26264 </cell>
26265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26266 \begin_inset Text
26267
26268 \begin_layout Plain Layout
26269 Fragile, calculation might fail
26270 \end_layout
26271
26272 \end_inset
26273 </cell>
26274 </row>
26275 <row>
26276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26277 \begin_inset Text
26278
26279 \begin_layout Plain Layout
26280 \SpecialChar TeX
26281
26282 \end_layout
26283
26284 \end_inset
26285 </cell>
26286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26287 \begin_inset Text
26288
26289 \begin_layout Plain Layout
26290 The \SpecialChar TeX
26291  logo
26292 \end_layout
26293
26294 \end_inset
26295 </cell>
26296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26297 \begin_inset Text
26298
26299 \begin_layout Plain Layout
26300 -
26301 \end_layout
26302
26303 \end_inset
26304 </cell>
26305 </row>
26306 <row>
26307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26308 \begin_inset Text
26309
26310 \begin_layout Plain Layout
26311 Triangle up/down/
26312 \begin_inset Newline newline
26313 \end_inset
26314
26315 left/right
26316 \end_layout
26317
26318 \end_inset
26319 </cell>
26320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26321 \begin_inset Text
26322
26323 \begin_layout Plain Layout
26324 Triangles in different orientations
26325 \end_layout
26326
26327 \end_inset
26328 </cell>
26329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26330 \begin_inset Text
26331
26332 \begin_layout Plain Layout
26333 -
26334 \end_layout
26335
26336 \end_inset
26337 </cell>
26338 </row>
26339 </lyxtabular>
26340
26341 \end_inset
26342
26343
26344 \end_layout
26345
26346 \begin_layout Standard
26347 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26348 's pull-down box
26349  for environments in the toolbar.
26350 \end_layout
26351
26352 \begin_layout Standard
26353 \begin_inset Newpage newpage
26354 \end_inset
26355
26356
26357 \end_layout
26358
26359 \begin_layout Standard
26360 Here is an example paragraph in the shape of a nut:
26361 \end_layout
26362
26363 \begin_layout Standard
26364 \begin_inset VSpace bigskip
26365 \end_inset
26366
26367
26368 \end_layout
26369
26370 \begin_layout Nut
26371
26372 \lang latin
26373 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26374  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26375  voluptua.
26376  At vero eos et accusam et justo duo dolores et ea rebum.
26377  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26378  sit amet.
26379  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26380  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26381  voluptua.
26382 \end_layout
26383
26384 \begin_layout Standard
26385 \begin_inset VSpace bigskip
26386 \end_inset
26387
26388
26389 \end_layout
26390
26391 \begin_layout Standard
26392 \begin_inset Note Greyedout
26393 status open
26394
26395 \begin_layout Plain Layout
26396
26397 \series bold
26398 Note
26399 \series default
26400 : shapepar paragraphs cannot run over a page break.
26401 \end_layout
26402
26403 \end_inset
26404
26405
26406 \end_layout
26407
26408 \begin_layout Standard
26409 \begin_inset VSpace bigskip
26410 \end_inset
26411
26412
26413 \end_layout
26414
26415 \begin_layout Standard
26416
26417 \series bold
26418 shapepar
26419 \series default
26420  takes care that the shape will always be preserved, no matter how much
26421  text is in the paragraph.
26422  Therefore the paragraph size changes with the amount of contained text.
26423  This can lead to paragraph sizes exceeding the page margins.
26424  To demonstrate the size scaling, here is the same example paragraph but
26425  with twice as much text:
26426 \end_layout
26427
26428 \begin_layout Standard
26429 \begin_inset Newpage newpage
26430 \end_inset
26431
26432
26433 \end_layout
26434
26435 \begin_layout Nut
26436
26437 \lang latin
26438 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26439  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26440  voluptua.
26441  At vero eos et accusam et justo duo dolores et ea rebum.
26442  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26443  sit amet.
26444  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26445  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26446  voluptua.
26447  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26448  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26449  voluptua.
26450  At vero eos et accusam et justo duo dolores et ea rebum.
26451  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26452  sit amet.
26453  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26454  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26455  voluptua.
26456 \end_layout
26457
26458 \begin_layout Standard
26459 \begin_inset VSpace bigskip
26460 \end_inset
26461
26462
26463 \end_layout
26464
26465 \begin_layout Standard
26466 An exception is the shape 
26467 \family sans
26468 CDlabel
26469 \family default
26470 .
26471  It cannot be scaled because it must fit the size of a CD/DVD.
26472  Therefore the amount of text that fits into the shape is limited.
26473 \begin_inset Newline newline
26474 \end_inset
26475
26476 The 
26477 \family sans
26478 drop
26479 \family default
26480  shapes and the 
26481 \family sans
26482 circle
26483 \family default
26484  shape are fragile, meaning that the calculation of their size can fail,
26485  depending on the amount of text.
26486  You will then get the \SpecialChar LaTeX
26487  error 
26488 \begin_inset Quotes eld
26489 \end_inset
26490
26491 Arithmetic overflow
26492 \begin_inset Quotes erd
26493 \end_inset
26494
26495 .
26496  In this case one can try to remove or add some text; if nothing works one
26497  has to use another shape.
26498 \end_layout
26499
26500 \begin_layout Standard
26501 \begin_inset VSpace bigskip
26502 \end_inset
26503
26504
26505 \end_layout
26506
26507 \begin_layout Standard
26508 For shapes with tips you will maybe see that \SpecialChar LaTeX
26509 's hyphenation routine fails
26510  for text in the tips.
26511  Therefore it is often necessary to add hyphenation points 
26512 \family sans
26513 (
26514 \begin_inset Info
26515 type  "shortcut"
26516 arg   "specialchar-insert hyphenation"
26517 \end_inset
26518
26519
26520 \family default
26521 ) to the corresponding text parts.
26522 \end_layout
26523
26524 \begin_layout Standard
26525 \begin_inset VSpace bigskip
26526 \end_inset
26527
26528
26529 \end_layout
26530
26531 \begin_layout Standard
26532 Shapepar paragraphs are either always centered or placed on the page so
26533  that their left border touches the left page margin.
26534  You can therefore not use the paragraph dialog to align such paragraphs.
26535  A solution is to put the paragraph into a minipage or parbox and align
26536  the box.
26537  The problem is hereby to find the right width for the box.
26538  Because if it is too wide and you center the box, the paragraph is not
26539  centered too because it sticks at the left side of the box.
26540  So you might have to play a bit with the width until it fits.
26541  Here are two heart-shaped paragraphs, the first one is not aligned, the
26542  second one is right-aligned:
26543 \end_layout
26544
26545 \begin_layout Standard
26546 \begin_inset Newpage newpage
26547 \end_inset
26548
26549
26550 \end_layout
26551
26552 \begin_layout Heart
26553 \noindent
26554
26555 \lang latin
26556 Lo\SpecialChar softhyphen
26557 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26558  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26559  voluptua.
26560  At vero eos et accusam et justo duo dolores et ea rebum.
26561  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26562  sit amet.
26563 \end_layout
26564
26565 \begin_layout Standard
26566 \begin_inset VSpace bigskip
26567 \end_inset
26568
26569
26570 \end_layout
26571
26572 \begin_layout Standard
26573 \noindent
26574 \align right
26575 \begin_inset Box Frameless
26576 position "t"
26577 hor_pos "c"
26578 has_inner_box 1
26579 inner_pos "t"
26580 use_parbox 1
26581 use_makebox 0
26582 width "42col%"
26583 special "none"
26584 height "1in"
26585 height_special "totalheight"
26586 thickness "0.4pt"
26587 separation "3pt"
26588 shadowsize "4pt"
26589 framecolor "black"
26590 backgroundcolor "none"
26591 status open
26592
26593 \begin_layout Heart
26594 \noindent
26595
26596 \lang latin
26597 Lo\SpecialChar softhyphen
26598 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26599  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26600  voluptua.
26601  At vero eos et accusam et justo duo dolores et ea rebum.
26602  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26603  sit amet.
26604 \end_layout
26605
26606 \end_inset
26607
26608
26609 \end_layout
26610
26611 \begin_layout Subsection
26612 Custom shapes
26613 \end_layout
26614
26615 \begin_layout Standard
26616 You can define any shape you want.
26617  Doing this manually is a lot of work because every coordinate must be specified.
26618  But there is a way to let the computer calculate the coordinates:
26619 \end_layout
26620
26621 \begin_layout Enumerate
26622 Install the program 
26623 \begin_inset CommandInset href
26624 LatexCommand href
26625 name "Jpgfdraw"
26626 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26627 literal "false"
26628
26629 \end_inset
26630
26631 .
26632 \end_layout
26633
26634 \begin_layout Enumerate
26635 In 
26636 \family sans
26637 Jpgfdraw
26638 \family default
26639  go to the menu 
26640 \family sans
26641 TeX/LaTeX\SpecialChar menuseparator
26642 Settings\SpecialChar menuseparator
26643 Set Normal Size
26644 \family default
26645  and select the font size you are using in your document.
26646  For example this document uses the size 12
26647 \begin_inset space \thinspace{}
26648 \end_inset
26649
26650 pt.
26651 \end_layout
26652
26653 \begin_layout Enumerate
26654 Draw a shape.
26655 \end_layout
26656
26657 \begin_layout Enumerate
26658 Use the menu 
26659 \family sans
26660 TeX/LaTeX\SpecialChar menuseparator
26661 Shapepar
26662 \family default
26663  to export the shape to coordinates.
26664  In the appearing dialog use either the outline of your shape for the coordinate
26665 s or the path itself.
26666 \begin_inset Foot
26667 status collapsed
26668
26669 \begin_layout Plain Layout
26670 For more information see 
26671 \begin_inset CommandInset href
26672 LatexCommand href
26673 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26674 literal "false"
26675
26676 \end_inset
26677
26678
26679 \end_layout
26680
26681 \end_inset
26682
26683
26684 \end_layout
26685
26686 \begin_layout Standard
26687 The coordinates are written into a \SpecialChar TeX
26688  file.
26689  To use it for your \SpecialChar LyX
26690  document
26691 \end_layout
26692
26693 \begin_layout Enumerate
26694 Place the cursor before the first character of your paragraph (or into a
26695  new empty one).
26696 \end_layout
26697
26698 \begin_layout Enumerate
26699 Open in \SpecialChar LyX
26700  the menu 
26701 \family sans
26702 Insert\SpecialChar menuseparator
26703 File\SpecialChar menuseparator
26704 Child
26705 \begin_inset space ~
26706 \end_inset
26707
26708 Document
26709 \family default
26710 , select the file and use 
26711 \family sans
26712 Input
26713 \family default
26714  as 
26715 \family sans
26716 Include Type.
26717 \end_layout
26718
26719 \begin_layout Standard
26720 \begin_inset VSpace defskip
26721 \end_inset
26722
26723
26724 \end_layout
26725
26726 \begin_layout Standard
26727 \begin_inset Note Greyedout
26728 status open
26729
26730 \begin_layout Plain Layout
26731
26732 \series bold
26733 Note
26734 \series default
26735 : The changed shape only applies to the current paragraph; everything is
26736  reset to normal for the next paragraph.
26737  Therefore the shape definition file must be input into every paragraph
26738  with the desired shape.
26739 \end_layout
26740
26741 \end_inset
26742
26743
26744 \end_layout
26745
26746 \begin_layout Standard
26747 \begin_inset VSpace bigskip
26748 \end_inset
26749
26750
26751 \end_layout
26752
26753 \begin_layout Standard
26754 Here is an example:
26755 \end_layout
26756
26757 \begin_layout Standard
26758 \begin_inset VSpace bigskip
26759 \end_inset
26760
26761
26762 \end_layout
26763
26764 \begin_layout Standard
26765 \begin_inset CommandInset include
26766 LatexCommand input
26767 filename "SpecialParagraphShape.tex"
26768
26769 \end_inset
26770
26771
26772 \lang latin
26773 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26774  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26775  voluptua.
26776  At vero eos et accusam et justo duo dolores et ea rebum.
26777  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26778  sit amet.
26779  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26780  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26781  voluptua.
26782 \end_layout
26783
26784 \begin_layout Standard
26785 \begin_inset VSpace bigskip
26786 \end_inset
26787
26788
26789 \end_layout
26790
26791 \begin_layout Standard
26792
26793 \series bold
26794 A tip:
26795 \series default
26796  to draw complexer shapes in 
26797 \family sans
26798 Jpgfdraw
26799 \family default
26800  you can draw the shape in a program of your choice and import the resulting
26801  image to 
26802 \family sans
26803 Jpgfdraw
26804 \family default
26805 .
26806  Then you only need to draw a line or spline along the outline of the image.
26807 \end_layout
26808
26809 \begin_layout Standard
26810 \begin_inset VSpace bigskip
26811 \end_inset
26812
26813
26814 \end_layout
26815
26816 \begin_layout Standard
26817 The module 
26818 \family sans
26819 Custom paragraph shapes
26820 \family default
26821  also provides the two commands 
26822 \family sans
26823 shapepar
26824 \family default
26825  and 
26826 \family sans
26827 Shapepar
26828 \family default
26829  which can be used to define custom shapes coordinate by coordinate.
26830 \begin_inset Foot
26831 status collapsed
26832
26833 \begin_layout Plain Layout
26834 These commands are internally used for all shapes described here.
26835 \end_layout
26836
26837 \end_inset
26838
26839  For information how these styles are used and about further customization
26840  possibilities, have a look at the documentation of the package 
26841 \series bold
26842 shapepar
26843 \series default
26844
26845 \begin_inset CommandInset citation
26846 LatexCommand cite
26847 key "shapepar"
26848 literal "true"
26849
26850 \end_inset
26851
26852 .
26853 \end_layout
26854
26855 \begin_layout Bibliography
26856 \begin_inset CommandInset bibitem
26857 LatexCommand bibitem
26858 key "multicol"
26859 literal "true"
26860
26861 \end_inset
26862
26863 Documentation of the \SpecialChar LaTeX
26864 -package 
26865 \begin_inset CommandInset href
26866 LatexCommand href
26867 name "multicol"
26868 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26869 literal "false"
26870
26871 \end_inset
26872
26873
26874 \end_layout
26875
26876 \begin_layout Bibliography
26877 \begin_inset CommandInset bibitem
26878 LatexCommand bibitem
26879 key "shapepar"
26880 literal "true"
26881
26882 \end_inset
26883
26884 Documentation of the \SpecialChar LaTeX
26885 -package 
26886 \begin_inset CommandInset href
26887 LatexCommand href
26888 name "shapepar"
26889 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
26890 literal "false"
26891
26892 \end_inset
26893
26894
26895 \end_layout
26896
26897 \end_body
26898 \end_document